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