angular.module("app").controller("FrontendEditorWizardModalController",["$modalScope","core","utils","state","drop","url",function(o,n,t,i,s,l){o.utils=t,o.state=i,o.core=n,o.conditionSuggestions=null,o.conditionalSettings=[];!function(t){if(!angular.isString(t))return;let i=n.shopURL+t.replace(n.shopURL,"");$.ajax({type:"POST",dataType:"JSON",url:i,data:{kk_dropper_condition_suggestions:"true",kk_dropper_admin_pass:n.adminSecret},success:function(n){n&&n.length&&(console.log("suggestions",n),o.$apply((function(){o.conditionalSettings=angular.fromJson(angular.toJson(n)),o.conditionSuggestions={url:i,conditionals:angular.fromJson(angular.toJson(n))}})))},error:function(n){console.log("could not fetch condition suggestions"),o.$apply((function(){o.conditionSuggestions=null}))}})}(l)}]);