var m=Object.defineProperty;var a=(r,e,t)=>e in r?m(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var n=(r,e,t)=>a(r,typeof e!="symbol"?e+"":e,t);import{A as h}from"./Arr.js?ver=1.5.3";class w{constructor(){n(this,"controlsView",null);n(this,"model",null);n(this,"saver",null);setTimeout(()=>{var e,t;this.controlsView=(e=elementor.getPanelView())==null?void 0:e.getCurrentPageView(),this.model=(t=this.controlsView)==null?void 0:t.model,this.saver=elementor==null?void 0:elementor.saver},100)}setSettings(e,t){var s,i;this.controlsView=(s=elementor.getPanelView())==null?void 0:s.getCurrentPageView(),this.model=(i=this.controlsView)==null?void 0:i.model,this.model&&(this.model.setSetting(e,t),this.triggerSave())}getSettings(e=null,t=null){var i,o,l,g,u;this.controlsView=(i=elementor.getPanelView())==null?void 0:i.getCurrentPageView(),this.model=(o=this.controlsView)==null?void 0:o.model;const s=(u=(g=(l=this.model)==null?void 0:l.attributes)==null?void 0:g.settings)==null?void 0:u.attributes;return s?e?h.get(s,e,t):s:t}triggerSave(){this.saver&&this.saver.setFlagEditorChange(!0)}}function d(){return new w}export{d as u};
