window.addEventListener("elementor/init",function(){const a=elementor.modules.controls.BaseData.extend({onReady(){function a(a){const b=document.getElementById("sl-ei-iconbox-elementor-value");b.value=a,b.dispatchEvent(new Event("change"))}function b(a){let b=e.container.getSetting(a)?.split("attsafelayoutatt");if(2<b?.length)return JSON.parse(decodeURIComponent(b[2]))}function c(){const c=SLEImceIcons.attIconBox,d=document.createElement("div");SLEImceIcons.iconBox(d,c);const e=encodeURIComponent(JSON.stringify(c));setTimeout(function(){const f=d.innerHTML,g=f+"attsafelayoutatt"+c?.boxTitle+"attsafelayoutatt"+c?.boxDescription+"attsafelayoutatt"+e;let h=b("boxbutton"),i=b("ribbon");if(i?.key<SLEImceIcons.attRibbon?.key||h?.key<SLEImceIcons.attButton?.key){const b=SLEImceIcons.attRibbon,c=document.createElement("div");SLEImceIcons.ribbon(c,b);const d=encodeURIComponent(JSON.stringify(b));setTimeout(function(){const e=c.innerHTML,f="attsafelayoutatt"+e+"attsafelayoutatt"+b?.key+"attsafelayoutatt"+d,h=SLEImceIcons.attButton,i=document.createElement("div");SLEImceIcons.boxButton(i,h);const j=encodeURIComponent(JSON.stringify(h));setTimeout(function(){const b=i.innerHTML,c="attsafelayoutatt"+b+"attsafelayoutatt"+h?.key+"attsafelayoutatt"+j;a(g+f+c)},2)},2)}else a(g)},2)}function d(){let a={},d={},f={},g=e.control_iconbox.val().split("attsafelayoutatt");if(3<g?.length&&(a=JSON.parse(decodeURIComponent(g[3]))),d=b("ribbon"),f=b("boxbutton"),10==g?.length){let a=JSON.parse(decodeURIComponent(g[6])),b=JSON.parse(decodeURIComponent(g[9]));a?.key&&a?.key>d?.key&&(d=a),b?.key&&b?.key>f?.key&&(f=b)}SLEImceIcons.attRibbon=d,SLEImceIcons.attButton=f;let h={hasC:!0,popoverOffset:-150,callBack:c};setTimeout(function(){SLEImceIcons.menuIconBox(document.getElementById("sl-ei-iconbox-elementor-body"),a,h)},10)}this.control_iconbox=this.$el.find("#sl-ei-iconbox-elementor-value");var e=this;d(),this.control_iconbox.on("change",()=>{SLEImceIcons.elementorAction=1,this.saveValue()}),this.control_iconbox.on("click",()=>{d()})},saveValue(){this.setValue(this.control_iconbox.val())}});elementor.addControlView("Safelayout_iconbox_control",a)});