import{a0 as n,ac as m,j as g}from"./app-QjDgb7aF.js";import{r as p,w as l}from"./vue-Cm77DuTi.js";const k=(f,r,s,i)=>{const e=p(s.widget?n(s.widget.data):{}),d=()=>{for(const t of Object.keys(r))typeof e[t]>"u"&&(e[t]=r[t].default)};l(e,()=>{d()},{deep:!0,immediate:!0});const a=m(3e3,()=>{i("updateProps",e)});return{widgetProps:e,save:a,configure:async()=>{const t=n(r);for(const o of Object.keys(t))t[o].default=e[o];const{canceled:u,result:c}=await g(f,t);if(!u){for(const o of Object.keys(c))e[o]=c[o];a()}}}};export{k as u};
//# sourceMappingURL=widget-jbnupkVY.js.map
