@codeperate/app-asset
Version:
Codeperate App Asset
1 lines • 698 B
JavaScript
import{c as o}from"./p-58253349.js";let n;const s=n;let t;function f(){n=o({modals:[]}),t=n.state}function c(o){for(const n of o)t.modals.splice(n,1);t.modals=[...t.modals]}function a(o){t.modals=[...t.modals,o]}function i(){t.modals=t.modals.filter(((o,n)=>n!=t.modals.length-1))}function u(){t.modals=[]}function e(){t.modals[t.modals.length-1]&&(t.modals[t.modals.length-1].close=!0),t.modals=[...t.modals]}function r(){for(const o of t.modals)o.close=!0;t.modals=[...t.modals]}function l(o){for(let n=0;n<t.modals.length;n++)Object.values(t.modals[n].content).includes(o)&&t.modals.splice(n,1);t.modals=[...t.modals]}export{c as a,u as b,s as c,i as d,l as e,r as f,e as g,f as i,a as p,t as s}