Files
nextcloud-server-mirror/dist/451-451.js
2026-09-10 09:55:28 +00:00

2 lines
677 B
JavaScript

"use strict";(globalThis.webpackChunknextcloud_ui_legacy||=[]).push([[451],{451(n,e,o){o.r(e),o.d(e,{spawnDialog:()=>u});var t=o(99760);function u(n,e={},o={}){let{container:u}=o;"container"in e&&"string"==typeof e.container&&(u??=e.container);const r=("string"==typeof u&&document.querySelector(u)||document.body).appendChild(document.createElement("div"));return new Promise((o,u)=>{const c=(0,t.Ef)(n,{...e,container:null,onClose(...n){const e=n.length>1?n:n[0];c.unmount(),r.remove(),o(e)},"onVue:unmounted":()=>{c.unmount(),r.remove(),u(new Error("Dialog was unmounted without close event"))}});c.mount(r)})}}}]);
//# sourceMappingURL=451-451.js.map?v=b83c54fbb7d43851bdfd