window.addEventListener("elementor/init",function(){const a=elementor.modules.controls.BaseData.extend({onReady(){function a(){const a=SLEImceIcons.attRibbon,b=document.createElement("div");SLEImceIcons.ribbon(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-ribbon-elementor-value");f.value=e,f.dispatchEvent(new Event("change"))},2)}function b(){let b={},d={},e=c.control_ribbon.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[6])),d?.key&&d?.key>b?.key&&(b=d));let g={hasC:!0,popoverOffset:-150,hasRibbon:JSON.parse(decodeURIComponent(f[3]))?.hasRibbon,callBack:a};setTimeout(function(){SLEImceIcons.menuRibbon(document.getElementById("sl-ei-ribbon-elementor-body"),b,g)},10)}this.control_ribbon=this.$el.find("#sl-ei-ribbon-elementor-value");var c=this;b(),this.control_ribbon.on("change",()=>{SLEImceIcons.elementorAction=1,this.saveValue()}),this.control_ribbon.on("click",()=>{b()})},saveValue(){this.setValue(this.control_ribbon.val())}});elementor.addControlView("Safelayout_ribbon_control",a)});