camera.ui3 0.0.31-alpha.2 → 0.0.31-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interface/{@tanstack.x_Q3Nj6h.0.0.31-alpha.2.js → @tanstack.BESNofNd.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{@vee-validate.z9o4QOgP.0.0.31-alpha.2.js → @vee-validate.CRR-zynB.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{@vueform.C6mapDfj.0.0.31-alpha.2.js → @vueform.Bc8doccG.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{@vueuse.3bba2al7.0.0.31-alpha.2.js → @vueuse.DilXJfuq.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{Account.D0b6iR5f.0.0.31-alpha.2.js → Account.DUJ2ChYh.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{Adminpanel.3e7Ylz21.0.0.31-alpha.2.js → Adminpanel.Bs5BSHqj.0.0.31-alpha.3.js} +2 -2
- package/dist/interface/{Appearance.BYifp2UX.0.0.31-alpha.2.js → Appearance.px0zfdT6.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{Backup.DyTLSuxS.0.0.31-alpha.2.js → Backup.fnNyl37I.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{Camera.Bi26Q1iM.0.0.31-alpha.2.js → Camera.BxYs0sBu.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{Cameras.uBDPd1DA.0.0.31-alpha.2.js → Cameras.WZcYU7ET.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{Camview.CewbOu75.0.0.31-alpha.2.js → Camview.DdU54VBc.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{Config.CRuEOy3i.0.0.31-alpha.2.js → Config.DcqbW26O.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{Console.wrKA6SV-.0.0.31-alpha.2.js → Console.zg9yV3pk.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{FirstSteps.DmSeEIyY.0.0.31-alpha.2.js → FirstSteps.CtANqbfR.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{NewCamera.DTcV05fX.0.0.31-alpha.2.js → NewCamera.ByScMX1A.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{Plugin.Dr9kr8u0.0.0.31-alpha.2.js → Plugin.BO6pVLjB.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{Plugins.DanHsI2P.0.0.31-alpha.2.js → Plugins.DiwDf7eb.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/Recordings.DWlYo0_z.0.0.31-alpha.3.js +1 -0
- package/dist/interface/Recordings.DX29red_.0.0.31-alpha.3.js +1 -0
- package/dist/interface/{Settings.D20E-DFW.0.0.31-alpha.2.js → Settings.DtCoqTZg.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{System.Bj23UM1d.0.0.31-alpha.2.js → System.QV_J5S2i.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{User.C4CMARUw.0.0.31-alpha.2.js → User.BOiBRofa.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{VConfigEditor.vue_vue_type_script_setup_true_lang.DCkz0ScZ.0.0.31-alpha.2.js → VConfigEditor.vue_vue_type_script_setup_true_lang.DrOIGJs8.0.0.31-alpha.3.js} +2 -2
- package/dist/interface/{VConsole.DxZubA5b.0.0.31-alpha.2.js → VConsole.DpzWvk8_.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/VPlayer.BbnWJq6v.0.0.31-alpha.3.js +1 -0
- package/dist/interface/{VPluginCard.DCBVHiKt.0.0.31-alpha.2.js → VPluginCard.ByhIZRtG.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{ace-builds.BtdsJHeG.0.0.31-alpha.2.js → ace-builds.CiNjpneP.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{apexcharts.CI-IzyYP.0.0.31-alpha.2.js → apexcharts.BC7dHJey.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/assets/{VPlayer.0.0.31-alpha.2.BQMP8JwH.css → VPlayer.0.0.31-alpha.3.6GqQ0F0K.css} +1 -1
- package/dist/interface/{dnd-core.D5pBWNob.0.0.31-alpha.2.js → dnd-core.DGBOJ56p.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{draggabilly.CHohgav6.0.0.31-alpha.2.js → draggabilly.Df44wrEw.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{engine.io-client.DEhtuV4o.0.0.31-alpha.2.js → engine.io-client.BHlY_gPI.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{ev-emitter.BBakFQKp.0.0.31-alpha.2.js → ev-emitter.CaI-eq2c.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{fast-deep-equal.D84cnreE.0.0.31-alpha.2.js → fast-deep-equal.CGteOI15.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{highlight.js.C_JoIJXJ.0.0.31-alpha.2.js → highlight.js.CBE8OK5M.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/index.html +34 -34
- package/dist/interface/{linkify-it.C7EWLmzP.0.0.31-alpha.2.js → linkify-it.D8YmDxfh.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{main.0dhw2k10.0.0.31-alpha.2.js → main.DpuxXIXo.0.0.31-alpha.3.js} +2 -2
- package/dist/interface/{markdown-it.CRy2M8lR.0.0.31-alpha.2.js → markdown-it.BLLBOvQA.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{nprogress.IiPMBi2X.0.0.31-alpha.2.js → nprogress.CYUDEACo.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{pinia.DpM2zEj0.0.0.31-alpha.2.js → pinia.BSjp3AdH.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{plugins.BKAnxV9o.0.0.31-alpha.2.js → plugins.BYw-u_wj.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{qrcode.V95EYEat.0.0.31-alpha.2.js → qrcode.ViEJWv07.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{react-dnd-touch-backend.BgH_R4pT.0.0.31-alpha.2.js → react-dnd-touch-backend.B25g6HMz.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{rxjs.BlXFYoWE.0.0.31-alpha.2.js → rxjs.DAxo7H7n.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{socket.io-client.B54E9c8s.0.0.31-alpha.2.js → socket.io-client.BAvngsQr.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{socket.io-parser.DU0H2ONq.0.0.31-alpha.2.js → socket.io-parser.CtF_-BH9.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/sw.js +1 -1
- package/dist/interface/{system.D6RwZr3K.0.0.31-alpha.2.js → system.Bq8F1liq.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{ui.CsjklSmH.0.0.31-alpha.2.js → ui.DATGy2-L.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{unidragger.DTsyKbBA.0.0.31-alpha.2.js → unidragger.Bhi60qVI.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{v-calendar.8nad-306.0.0.31-alpha.2.js → v-calendar.aXsE30_x.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{vee-validate.DHH7oAn8.0.0.31-alpha.2.js → vee-validate.Cw-ckZ38.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{vue-i18n.DFXDQN1x.0.0.31-alpha.2.js → vue-i18n.BZqluQfO.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{vue-inline-svg.B5DFkaVE.0.0.31-alpha.2.js → vue-inline-svg.DVQ-GYng.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{vue-router.Dwlkeoka.0.0.31-alpha.2.js → vue-router.B7Lhq6-j.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{vue3-apexcharts.m93iPQ1O.0.0.31-alpha.2.js → vue3-apexcharts.Cs1h-kYs.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{vue3-dnd.CSPHLovD.0.0.31-alpha.2.js → vue3-dnd.WByi5z3Y.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{vue3-toastify.B3S_WDRN.0.0.31-alpha.2.js → vue3-toastify.CAYOaBs7.0.0.31-alpha.3.js} +1 -1
- package/dist/interface/{vuetify.DSpravLa.0.0.31-alpha.2.js → vuetify.BSQt06NV.0.0.31-alpha.3.js} +1 -1
- package/dist/server/package.json +2 -2
- package/dist/server/src/api/database/index.d.ts +0 -1
- package/dist/server/src/api/database/index.js +2 -7
- package/dist/server/src/api/database/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/interface/Recordings.Bworv3Rf.0.0.31-alpha.2.js +0 -1
- package/dist/interface/Recordings.Dkh2fRm3.0.0.31-alpha.2.js +0 -1
- package/dist/interface/VPlayer.DVDPrRrw.0.0.31-alpha.2.js +0 -1
- /package/dist/interface/{@babel.l0sNRNKZ.0.0.31-alpha.2.js → @babel.l0sNRNKZ.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{@camera.ui.DiVLAlWa.0.0.31-alpha.2.js → @camera.ui.DiVLAlWa.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{@intlify.D-zKcAzQ.0.0.31-alpha.2.js → @intlify.D-zKcAzQ.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{@mdi.DVdKciOk.0.0.31-alpha.2.js → @mdi.DVdKciOk.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{@popperjs.BQBsAJpH.0.0.31-alpha.2.js → @popperjs.BQBsAJpH.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.31-alpha.2.js → @react-dnd.CcwRs9xb.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{@socket.io.Dkula2eQ.0.0.31-alpha.2.js → @socket.io.Dkula2eQ.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{@vue.DawUEI-_.0.0.31-alpha.2.js → @vue.DawUEI-_.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{@xterm.ByN7UyPo.0.0.31-alpha.2.js → @xterm.BFqH4gFP.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/assets/{@vueform.0.0.31-alpha.2.h7tNX9p6.css → @vueform.0.0.31-alpha.3.h7tNX9p6.css} +0 -0
- /package/dist/interface/assets/{@xterm.0.0.31-alpha.2.CGrrDQr5.css → @xterm.0.0.31-alpha.3.CGrrDQr5.css} +0 -0
- /package/dist/interface/assets/{Account.0.0.31-alpha.2.Ce3OmKrC.css → Account.0.0.31-alpha.3.Ce3OmKrC.css} +0 -0
- /package/dist/interface/assets/{Adminpanel.0.0.31-alpha.2.CXsTAXPL.css → Adminpanel.0.0.31-alpha.3.CXsTAXPL.css} +0 -0
- /package/dist/interface/assets/{Backup.0.0.31-alpha.2.BIwaSlv3.css → Backup.0.0.31-alpha.3.BIwaSlv3.css} +0 -0
- /package/dist/interface/assets/{Camera.0.0.31-alpha.2.BDtUJ-lA.css → Camera.0.0.31-alpha.3.BDtUJ-lA.css} +0 -0
- /package/dist/interface/assets/{Cameras.0.0.31-alpha.2.Djx0F2MM.css → Cameras.0.0.31-alpha.3.Djx0F2MM.css} +0 -0
- /package/dist/interface/assets/{Camview.0.0.31-alpha.2.Ce_V-Nxj.css → Camview.0.0.31-alpha.3.Ce_V-Nxj.css} +0 -0
- /package/dist/interface/assets/{Config.0.0.31-alpha.2.xOTKGJ5Y.css → Config.0.0.31-alpha.3.xOTKGJ5Y.css} +0 -0
- /package/dist/interface/assets/{Console.0.0.31-alpha.2.DWrfRWs9.css → Console.0.0.31-alpha.3.DWrfRWs9.css} +0 -0
- /package/dist/interface/assets/{FirstSteps.0.0.31-alpha.2.CCo2y-sU.css → FirstSteps.0.0.31-alpha.3.CCo2y-sU.css} +0 -0
- /package/dist/interface/assets/{NewCamera.0.0.31-alpha.2.BWK7TkdY.css → NewCamera.0.0.31-alpha.3.BWK7TkdY.css} +0 -0
- /package/dist/interface/assets/{Plugin.0.0.31-alpha.2.BtRA6zDt.css → Plugin.0.0.31-alpha.3.BtRA6zDt.css} +0 -0
- /package/dist/interface/assets/{Plugins.0.0.31-alpha.2.Cwu0aGUO.css → Plugins.0.0.31-alpha.3.Cwu0aGUO.css} +0 -0
- /package/dist/interface/assets/{Settings.0.0.31-alpha.2.DC_-E3CR.css → Settings.0.0.31-alpha.3.DC_-E3CR.css} +0 -0
- /package/dist/interface/assets/{User.0.0.31-alpha.2.DPDcJbx8.css → User.0.0.31-alpha.3.DPDcJbx8.css} +0 -0
- /package/dist/interface/assets/{VConsole.0.0.31-alpha.2.BZT1WyS-.css → VConsole.0.0.31-alpha.3.BZT1WyS-.css} +0 -0
- /package/dist/interface/assets/{VPluginCard.0.0.31-alpha.2.CyNvwFGk.css → VPluginCard.0.0.31-alpha.3.CyNvwFGk.css} +0 -0
- /package/dist/interface/assets/{highlight.0.0.31-alpha.2.DgoK_Xib.css → highlight.0.0.31-alpha.3.DgoK_Xib.css} +0 -0
- /package/dist/interface/assets/{logo-256.0.0.31-alpha.2.BCQk9H1-.png → logo-256.0.0.31-alpha.3.BCQk9H1-.png} +0 -0
- /package/dist/interface/assets/{logo-512.0.0.31-alpha.2.DLKVOU2S.png → logo-512.0.0.31-alpha.3.DLKVOU2S.png} +0 -0
- /package/dist/interface/assets/{logo.0.0.31-alpha.2.DmEiRk0z.png → logo.0.0.31-alpha.3.DmEiRk0z.png} +0 -0
- /package/dist/interface/assets/{main.0.0.31-alpha.2.CqDyfc1x.css → main.0.0.31-alpha.3.CqDyfc1x.css} +0 -0
- /package/dist/interface/assets/{mode-json.0.0.31-alpha.2.Br7xisR1.js → mode-json.0.0.31-alpha.3.Br7xisR1.js} +0 -0
- /package/dist/interface/assets/{mode-yaml.0.0.31-alpha.2.CIYL8U3d.js → mode-yaml.0.0.31-alpha.3.CIYL8U3d.js} +0 -0
- /package/dist/interface/assets/{v-calendar.0.0.31-alpha.2.CtSuDYZU.css → v-calendar.0.0.31-alpha.3.CtSuDYZU.css} +0 -0
- /package/dist/interface/assets/{vue3-toastify.0.0.31-alpha.2.DTY1DMRs.css → vue3-toastify.0.0.31-alpha.3.DTY1DMRs.css} +0 -0
- /package/dist/interface/assets/{vuetify.0.0.31-alpha.2.Cd1awv3t.css → vuetify.0.0.31-alpha.3.Cd1awv3t.css} +0 -0
- /package/dist/interface/{axios.C-n2IhIP.0.0.31-alpha.2.js → axios.C-n2IhIP.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{compare-versions.DqEOhma6.0.0.31-alpha.2.js → compare-versions.DqEOhma6.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{dijkstrajs.D_NXgYpA.0.0.31-alpha.2.js → dijkstrajs.D_NXgYpA.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.31-alpha.2.js → engine.io-parser.BiEtp6m2.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{entities.C20TfXL6.0.0.31-alpha.2.js → entities.C20TfXL6.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{get-size.D1dS-IaP.0.0.31-alpha.2.js → get-size.D1dS-IaP.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{mdurl.k9Sl0PQj.0.0.31-alpha.2.js → mdurl.k9Sl0PQj.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{punycode.js.Dj65hjkv.0.0.31-alpha.2.js → punycode.js.Dj65hjkv.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.31-alpha.2.js → react-dnd-html5-backend.1HQjlkwI.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{redux.CuxFRhX_.0.0.31-alpha.2.js → redux.CuxFRhX_.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{tslib.9k7AwCpt.0.0.31-alpha.2.js → tslib.9k7AwCpt.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{types.Cz9TaZAP.0.0.31-alpha.2.js → types.Cz9TaZAP.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{uc.micro.kMc2yuuw.0.0.31-alpha.2.js → uc.micro.kMc2yuuw.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{utils.mAKpSMLY.0.0.31-alpha.2.js → utils.mAKpSMLY.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{uuid.DvF23Exx.0.0.31-alpha.2.js → uuid.DvF23Exx.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{vue.l0sNRNKZ.0.0.31-alpha.2.js → vue.l0sNRNKZ.0.0.31-alpha.3.js} +0 -0
- /package/dist/interface/{zod.DnW1_kUe.0.0.31-alpha.2.js → zod.DnW1_kUe.0.0.31-alpha.3.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{G as bn,A as ge,c as j,T as On,$ as Vn,a0 as _,u as P,x as pn,Q as Sn,i as Pe,w as Oe,a1 as Ln,r as le,E as we,n as se,B as Wn,F as qn,a as Hn,C as Ne,D as Gn}from"./@vue.DawUEI-_.0.0.31-alpha.
|
|
1
|
+
import{G as bn,A as ge,c as j,T as On,$ as Vn,a0 as _,u as P,x as pn,Q as Sn,i as Pe,w as Oe,a1 as Ln,r as le,E as we,n as se,B as Wn,F as qn,a as Hn,C as Ne,D as Gn}from"./@vue.DawUEI-_.0.0.31-alpha.3.js";/**
|
|
2
2
|
* vee-validate v4.13.2
|
|
3
3
|
* (c) 2024 Abdelrahman Awad
|
|
4
4
|
* @license MIT
|
package/dist/interface/{vue-i18n.DFXDQN1x.0.0.31-alpha.2.js → vue-i18n.BZqluQfO.0.0.31-alpha.3.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as Et,c as pt,D as Ot,u as M,N as It,a as vt,C as Tt,b as Rt,d as ce,e as ue,f as Lt,g as yt,h as Nt,p as ie,t as fe,M as me,i as _e,j as ge,k as be,n as de,l as Ft,m as ht,o as ke,r as St,q as Pt,v as kt,w as Ee,x as Ct,y as Dt}from"./@intlify.D-zKcAzQ.0.0.31-alpha.
|
|
1
|
+
import{s as Et,c as pt,D as Ot,u as M,N as It,a as vt,C as Tt,b as Rt,d as ce,e as ue,f as Lt,g as yt,h as Nt,p as ie,t as fe,M as me,i as _e,j as ge,k as be,n as de,l as Ft,m as ht,o as ke,r as St,q as Pt,v as kt,w as Ee,x as Ct,y as Dt}from"./@intlify.D-zKcAzQ.0.0.31-alpha.3.js";import{G as ee,$ as Ce,z as At,c as V,w as K,O as De,a as Mt,x as Vt,V as wt,i as Ut,C as te,r as xt,D as jt,N as Wt,a2 as Yt}from"./@vue.DawUEI-_.0.0.31-alpha.3.js";/*!
|
|
2
2
|
* shared v10.0.0
|
|
3
3
|
* (c) 2024 kazuya kawaguchi
|
|
4
4
|
* Released under the MIT License.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as l}from"./@vue.DawUEI-_.0.0.31-alpha.
|
|
1
|
+
import{$ as l}from"./@vue.DawUEI-_.0.0.31-alpha.3.js";const i={};function u(e){return Object.keys(e).reduce((r,t)=>(e[t]!==!1&&e[t]!==null&&e[t]!==void 0&&(r[t]=e[t]),r),{})}const c={name:"InlineSvg",inheritAttrs:!1,render(){return this.svgElSource?l("svg",Object.assign({},this.getSvgAttrs(this.svgElSource),u(this.$attrs),{innerHTML:this.getSvgContent(this.svgElSource)})):null},props:{src:{type:String,required:!0},title:{type:String},transformSource:{type:Function,default:e=>e},keepDuringLoading:{type:Boolean,default:!0}},emits:["loaded","unloaded","error"],data(){return{svgElSource:null,request:void 0}},watch:{src(e){this.getSource(e)}},mounted(){this.getSource(this.src)},methods:{getSvgAttrs(e){let r={};const t=e.attributes;if(!t)return r;for(let n=t.length-1;n>=0;n--)r[t[n].name]=t[n].value;return r},getSvgContent(e){return e=e.cloneNode(!0),e=this.transformSource(e),this.title&&a(e,this.title),e.innerHTML},getSource(e){i[e]||(i[e]=this.download(e)),this.svgElSource&&i[e].getIsPending()&&!this.keepDuringLoading&&(this.svgElSource=null,this.$emit("unloaded")),i[e].then(r=>{this.svgElSource=r,this.$nextTick(()=>{this.$emit("loaded",this.$el)})}).catch(r=>{this.svgElSource&&(this.svgElSource=null,this.$emit("unloaded")),delete i[e],this.$emit("error",r)})},download(e){return g(new Promise((r,t)=>{const n=new XMLHttpRequest;n.open("GET",e,!0),this.request=n,n.onload=()=>{if(n.status>=200&&n.status<400)try{let o=new DOMParser().parseFromString(n.responseText,"text/xml").getElementsByTagName("svg")[0];o?r(o):t(new Error('Loaded file is not valid SVG"'))}catch(s){t(s)}else t(new Error("Error loading SVG"))},n.onerror=t,n.send()}))}}};function a(e,r){const t=e.getElementsByTagName("title");if(t.length)t[0].textContent=r;else{const n=document.createElementNS("http://www.w3.org/2000/svg","title");n.textContent=r,e.insertBefore(n,e.firstChild)}}function g(e){if(e.getIsPending)return e;let r=!0,t=e.then(n=>(r=!1,n),n=>{throw r=!1,n});return t.getIsPending=function(){return r},t}export{c as I};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as nt,u as W,s as rt,n as ot,a as q,G as qe,E as st,c as N,$ as ze,Q as le,r as ct,w as it}from"./@vue.DawUEI-_.0.0.31-alpha.
|
|
1
|
+
import{D as nt,u as W,s as rt,n as ot,a as q,G as qe,E as st,c as N,$ as ze,Q as le,r as ct,w as it}from"./@vue.DawUEI-_.0.0.31-alpha.3.js";/*!
|
|
2
2
|
* vue-router v4.4.0
|
|
3
3
|
* (c) 2024 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as S}from"./apexcharts.
|
|
1
|
+
import{w as S}from"./apexcharts.BC7dHJey.0.0.31-alpha.3.js";import{G as Y,r as w,a3 as Z,x as $,C as q,a1 as G,t as J,w as u,$ as F,n as H}from"./@vue.DawUEI-_.0.0.31-alpha.3.js";import"./@xterm.BFqH4gFP.0.0.31-alpha.3.js";const A=["animationEnd","beforeMount","mounted","updated","click","mouseMove","mouseLeave","legendClick","markerClick","selection","dataPointSelection","dataPointMouseEnter","dataPointMouseLeave","beforeZoom","beforeResetZoom","zoomed","scrolled","brushScrolled"],m=Y({name:"apexchart",props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0},width:{default:"100%"},height:{default:"auto"}},emits:A,setup(o,{emit:b}){const g=w(null),n=w(null),v=e=>e&&typeof e=="object"&&!Array.isArray(e)&&e!=null,y=(e,t)=>{typeof Object.assign!="function"&&function(){Object.assign=function(a){if(a==null)throw new TypeError("Cannot convert undefined or null to object");let p=Object(a);for(let r=1;r<arguments.length;r++){let c=arguments[r];if(c!=null)for(let f in c)c.hasOwnProperty(f)&&(p[f]=c[f])}return p}}();let s=Object.assign({},e);return v(e)&&v(t)&&Object.keys(t).forEach(a=>{v(t[a])?a in e?s[a]=y(e[a],t[a]):Object.assign(s,{[a]:t[a]}):Object.assign(s,{[a]:t[a]})}),s},i=async()=>{if(await H(),n.value)return;const e={chart:{type:o.type||o.options.chart.type||"line",height:o.height,width:o.width,events:{}},series:o.series},t=o.options.chart.events;A.forEach(a=>{let p=(...r)=>b(a,...r);e.chart.events[a]=(...r)=>{p(...r),t&&t.hasOwnProperty(a)&&t[a](...r)}});const s=y(o.options,e);return n.value=new S(g.value,s),n.value.render()},d=()=>(h(),i()),h=()=>{n.value.destroy()},O=(e,t)=>n.value.updateSeries(e,t),j=(e,t,s,a)=>n.value.updateOptions(e,t,s,a),x=e=>n.value.toggleSeries(e),P=e=>{n.value.showSeries(e)},C=e=>{n.value.hideSeries(e)},M=(e,t)=>n.value.appendSeries(e,t),k=()=>{n.value.resetSeries()},E=(e,t)=>{n.value.toggleDataPointSelection(e,t)},D=e=>n.value.appendData(e),L=(e,t)=>n.value.zoomX(e,t),R=e=>n.value.dataURI(e),X=e=>n.value.setLocale(e),z=(e,t)=>{n.value.addXaxisAnnotation(e,t)},I=(e,t)=>{n.value.addYaxisAnnotation(e,t)},U=(e,t)=>{n.value.addPointAnnotation(e,t)},B=(e,t)=>{n.value.removeAnnotation(e,t)},T=()=>{n.value.clearAnnotations()};Z(()=>{window.ApexCharts=S}),$(()=>{g.value=q().proxy.$el,i()}),G(()=>{n.value&&h()});const l=J(o);return u(l.options,()=>{!n.value&&o.options?i():n.value.updateOptions(o.options)}),u(l.series,()=>{!n.value&&o.series?i():n.value.updateSeries(o.series)},{deep:!0}),u(l.type,()=>{d()}),u(l.width,()=>{d()}),u(l.height,()=>{d()}),{chart:n,init:i,refresh:d,destroy:h,updateOptions:j,updateSeries:O,toggleSeries:x,showSeries:P,hideSeries:C,resetSeries:k,zoomX:L,toggleDataPointSelection:E,appendData:D,appendSeries:M,addXaxisAnnotation:z,addYaxisAnnotation:I,addPointAnnotation:U,removeAnnotation:B,clearAnnotations:T,setLocale:X,dataURI:R}},render(){return F("div",{class:"vue-apexcharts"})}}),K=o=>{o.component(m.name,m)};m.install=K;export{m as default};
|
package/dist/interface/{vue3-dnd.CSPHLovD.0.0.31-alpha.2.js → vue3-dnd.WByi5z3Y.0.0.31-alpha.3.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as R}from"./dnd-core.D5pBWNob.0.0.31-alpha.2.js";import{Q as E,a as x,G as j,V as N,i as U,u as o,c as l,F as f,r as F,E as V}from"./@vue.DawUEI-_.0.0.31-alpha.2.js";import{i as g,s as C}from"./@react-dnd.CcwRs9xb.0.0.31-alpha.2.js";import{e as P}from"./fast-deep-equal.D84cnreE.0.0.31-alpha.2.js";function b(t,r,e){return Array.isArray(t)?(t.length=Math.max(t.length,r),t.splice(r,1,e),e):(t[r]=e,e)}var M=Symbol.for("DndContextType");function W(t){E(M,t)}function Y(){return x(M)}function T(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function G(t){if(Array.isArray(t))return t}function L(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function B(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function q(t,r){return G(t)||L(t,r)||z(t,r)||B()}function z(t,r){if(t){if(typeof t=="string")return T(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return T(t,r)}}var S=0,p=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function Q(t){return"manager"in t&&t.manager}function X(t){if(Q(t)){var r=t.manager;return[r,!1]}var e=J(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function J(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A(),e=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=r;return i[p]||(i[p]=R(t,r,e,n)),i[p]}function A(){return typeof globalThis<"u"?globalThis:typeof global<"u"?global:window}const rt=j({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(r,e){var n=e.slots,i=q(X(r),2),a=i[0],u=i[1];u&&++S,N(function(){if(u){var s=A();--S===0&&(s[p]=null)}}),W(a);var c;return function(){var s;return(c=(s=n.default)===null||s===void 0?void 0:s.call(n))!==null&&c!==void 0?c:null}}});function K(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var D=!1,y=!1,Z=function(){function t(e){K(this,t),this.sourceId=null,this.internalMonitor=e.getMonitor()}var r=t.prototype;return r.receiveHandlerId=function(n){this.sourceId=n},r.getHandlerId=function(){return this.sourceId},r.canDrag=function(){g(!D,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return D=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{D=!1}},r.isDragging=function(){if(!this.sourceId)return!1;g(!y,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return y=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{y=!1}},r.subscribeToStateChange=function(n,i){return this.internalMonitor.subscribeToStateChange(n,i)},r.isDraggingSource=function(n){return this.internalMonitor.isDraggingSource(n)},r.isOverTarget=function(n,i){return this.internalMonitor.isOverTarget(n,i)},r.getTargetIds=function(){return this.internalMonitor.getTargetIds()},r.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},r.getSourceId=function(){return this.internalMonitor.getSourceId()},r.subscribeToOffsetChange=function(n){return this.internalMonitor.subscribeToOffsetChange(n)},r.canDragSource=function(n){return this.internalMonitor.canDragSource(n)},r.canDropOnTarget=function(n){return this.internalMonitor.canDropOnTarget(n)},r.getItemType=function(){return this.internalMonitor.getItemType()},r.getItem=function(){return this.internalMonitor.getItem()},r.getDropResult=function(){return this.internalMonitor.getDropResult()},r.didDrop=function(){return this.internalMonitor.didDrop()},r.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},r.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},r.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},r.getClientOffset=function(){return this.internalMonitor.getClientOffset()},r.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}();function ee(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var m=!1,te=function(){function t(e){ee(this,t),this.targetId=null,this.internalMonitor=e.getMonitor()}var r=t.prototype;return r.receiveHandlerId=function(n){this.targetId=n},r.getHandlerId=function(){return this.targetId},r.subscribeToStateChange=function(n,i){return this.internalMonitor.subscribeToStateChange(n,i)},r.canDrop=function(){if(!this.targetId)return!1;g(!m,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return m=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{m=!1}},r.isOver=function(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!1},r.getItemType=function(){return this.internalMonitor.getItemType()},r.getItem=function(){return this.internalMonitor.getItem()},r.getDropResult=function(){return this.internalMonitor.getDropResult()},r.didDrop=function(){return this.internalMonitor.didDrop()},r.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},r.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},r.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},r.getClientOffset=function(){return this.internalMonitor.getClientOffset()},r.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}(),re=function(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t};function ne(t){return t?t.__v_isVNode===!0:!1}function ie(t){return t?t.__v_skip:!1}function oe(t){return ne(t)&&re(t.type)!=="symbol"}function ae(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}function ue(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(ie(r)&&ae(),!oe(r)){var n=r;return t(n,e),n}}}function k(t){var r={};return Object.keys(t).forEach(function(e){var n=t[e];if(e.endsWith("Ref"))r[e]=t[e];else{var i=ue(n);r[e]=function(){return i}}}),r}function ce(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function se(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function le(t,r,e){return r&&se(t.prototype,r),t}var fe=function(){function t(e){var n=this;ce(this,t),this.hooks=k({dragSource:function(i,a){n.clearDragSource(),n.dragSourceOptions=a||null,n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,a){n.clearDragPreview(),n.dragPreviewOptions=a||null,n.dragPreviewNode=i,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}var r=t.prototype;return r.receiveHandlerId=function(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())},r.reconnect=function(){var n=this.reconnectDragSource();this.reconnectDragPreview(n)},r.reconnectDragSource=function(){var n=this.dragSource,i=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return i&&this.disconnectDragSource(),this.handlerId?n?(i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions)),i):(this.lastConnectedDragSource=n,i):i},r.reconnectDragPreview=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.dragPreview,a=n||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(a&&this.disconnectDragPreview(),!!this.handlerId){if(!i){this.lastConnectedDragPreview=i;return}a&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=i,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,i,this.dragPreviewOptions))}},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},r.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},r.didDragSourceOptionsChange=function(){return!C(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},r.didDragPreviewOptionsChange=function(){return!C(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},r.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},r.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},r.clearDragSource=function(){this.dragSourceNode=null},r.clearDragPreview=function(){this.dragPreviewNode=null},le(t,[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(n){this.dragSourceOptionsInternal=n}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(n){this.dragPreviewOptionsInternal=n}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}]),t}();function ge(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function de(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function he(t,r,e){return r&&de(t.prototype,r),t}var pe=function(){function t(e){var n=this;ge(this,t),this.hooks=k({dropTarget:function(i,a){n.clearDropTarget(),n.dropTargetOptions=a,U(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}var r=t.prototype;return r.reconnect=function(){var n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();var i=this.dropTarget;if(this.handlerId){if(!i){this.lastConnectedDropTarget=i;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=i,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,i,this.dropTargetOptions))}},r.receiveHandlerId=function(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},r.didOptionsChange=function(){return!C(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},r.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},r.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},he(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(n){this.dropTargetOptionsInternal=n}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}]),t}();function ve(t,r,e){var n=o(e).getRegistry(),i=n.addTarget(o(t),o(r));return[i,function(){return n.removeTarget(i)}]}function De(t,r,e){var n=e.getRegistry(),i=n.addSource(t,r);return[i,function(){return n.removeSource(i)}]}function ye(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var me=function(){function t(e,n,i){ye(this,t),this.spec=e,this.monitor=n,this.connector=i}var r=t.prototype;return r.beginDrag=function(){var n=this.spec,i=this.monitor,a=null;return typeof n.item=="object"?a=n.item:typeof n.item=="function"?a=n.item(i):a={},a??null},r.canDrag=function(){var n=this.spec,i=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(i):!0},r.isDragging=function(n,i){var a=this.spec,u=this.monitor,c=a.isDragging;return c?c(u):i===n.getSourceId()},r.endDrag=function(){var n=this.spec,i=this.monitor,a=this.connector,u=n.end;u&&u(i.getItem(),i),a.reconnect()},t}();function Ce(t,r,e){var n=l(function(){return new me(o(t),o(r),o(e))});return f(function(){n.value.spec=o(t)}),n}function d(){var t=Y();return g(t!=null,"Expected drag drop context"),t}function Ie(t){return l(function(){var r=o(t).type;return g(r!=null,"spec.type must be defined"),r})}function O(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function be(t){if(Array.isArray(t))return t}function Te(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function Se(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Oe(t,r){return be(t)||Te(t,r)||we(t,r)||Se()}function we(t,r){if(t){if(typeof t=="string")return O(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return O(t,r)}}function _e(t,r,e){var n=d(),i=Ce(t,r,e),a=Ie(t);f(function(c){if(o(a)!=null){var s=Oe(De(o(a),o(i),o(n)),2),h=s[0],v=s[1];o(r).receiveHandlerId(h),o(e).receiveHandlerId(h),c(v)}})}function H(t){return l(function(){return typeof t=="function"?t():t})}function Pe(){var t=d();return l(function(){return new Z(o(t))})}function Me(t,r){var e=d(),n=l(function(){return new fe(o(e).getBackend())});return f(function(i){n.value.dragSourceOptions=o(t)||null,o(n).reconnect(),i(function(){n.value.disconnectDragSource()})}),f(function(i){n.value.dragPreviewOptions=o(r)||null,o(n).reconnect(),i(function(){n.value.disconnectDragPreview()})}),n}function Ae(t,r,e){var n=F(o(r)(o(t))),i=function(){var a=o(r)(o(t));P(n.value,a)||(n.value=a,e&&e())};return f(i),[n,i]}function w(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function ke(t){if(Array.isArray(t))return t}function He(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function $e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Re(t,r){return ke(t)||He(t,r)||Ee(t,r)||$e()}function Ee(t,r){if(t){if(typeof t=="string")return w(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return w(t,r)}}function xe(t,r,e){var n=Re(Ae(t,r,e),2),i=n[0],a=n[1];return f(function(c){var s=o(t).getHandlerId();s!=null&&c(o(t).subscribeToStateChange(a,{handlerIds:[s]}))}),i}function $(t,r,e){var n=function(){return{}};return xe(r,t||n,function(){return o(e).reconnect()})}function I(t,r){var e=V({el:null,options:o(r)});f(function(){t(e)},{flush:"post"});var n=function(i,a){b(e,"el",i);var u=o(r)||a;return P(e.options,u)||b(e,"options",u),o(i)};return n}function je(t,r){return I(function(e){o(t).hooks.dragSource()(e.el,e.options)},l(function(){return o(r).options}))}function Ne(t,r){return I(function(e){o(t).hooks.dragPreview()(e.el,e.options)},l(function(){return o(r).previewOptions}))}function nt(t){var r=H(t),e=Pe(),n=Me(l(function(){return o(r).options}),l(function(){return o(r).previewOptions}));return _e(r,e,n),[$(l(function(){return o(r).collect||function(){return{}}}),e,n),je(n,r),Ne(n,r)]}function Ue(t){return l(function(){var r=o(t).accept;return g(r!=null,"accept must be defined"),Array.isArray(r)?r:[r]})}function Fe(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var Ve=function(){function t(e,n){Fe(this,t),this.spec=e,this.monitor=n}var r=t.prototype;return r.canDrop=function(){var n=this.spec,i=this.monitor;return n.canDrop?n.canDrop(i.getItem(),i):!0},r.hover=function(){var n=this.spec,i=this.monitor;n.hover&&n.hover(i.getItem(),i)},r.drop=function(){var n=this.spec,i=this.monitor;if(n.drop)return n.drop(i.getItem(),i)},t}();function We(t,r){var e=l(function(){return new Ve(o(t),o(r))});return f(function(){e.value.spec=o(t)}),e}function _(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function Ye(t){if(Array.isArray(t))return t}function Ge(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function Le(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Be(t,r){return Ye(t)||Ge(t,r)||qe(t,r)||Le()}function qe(t,r){if(t){if(typeof t=="string")return _(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _(t,r)}}function ze(t,r,e){var n=d(),i=We(t,r),a=Ue(t);f(function(c){var s=Be(ve(a,i,n),2),h=s[0],v=s[1];o(r).receiveHandlerId(h),o(e).receiveHandlerId(h),c(v)})}function Qe(){var t=d();return l(function(){return new te(o(t))})}function Xe(t){var r=d(),e=l(function(){return new pe(o(r).getBackend())});return f(function(n){e.value.dropTargetOptions=o(t)||null,e.value.reconnect(),n(function(){return e.value.disconnectDropTarget()})}),e}function Je(t,r){return I(function(e){o(t).hooks.dropTarget()(e.el,e.options)},l(function(){return o(r).options}))}function it(t){var r=H(t),e=Qe(),n=Xe(l(function(){return o(r).options}));return ze(r,e,n),[$(l(function(){return o(r).collect||function(){return{}}}),e,n),Je(n,r)]}export{rt as D,nt as a,it as u};
|
|
1
|
+
import{c as R}from"./dnd-core.DGBOJ56p.0.0.31-alpha.3.js";import{Q as E,a as x,G as j,V as N,i as U,u as o,c as l,F as f,r as F,E as V}from"./@vue.DawUEI-_.0.0.31-alpha.3.js";import{i as g,s as C}from"./@react-dnd.CcwRs9xb.0.0.31-alpha.3.js";import{e as P}from"./fast-deep-equal.CGteOI15.0.0.31-alpha.3.js";function b(t,r,e){return Array.isArray(t)?(t.length=Math.max(t.length,r),t.splice(r,1,e),e):(t[r]=e,e)}var M=Symbol.for("DndContextType");function W(t){E(M,t)}function Y(){return x(M)}function T(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function G(t){if(Array.isArray(t))return t}function L(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function B(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function q(t,r){return G(t)||L(t,r)||z(t,r)||B()}function z(t,r){if(t){if(typeof t=="string")return T(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return T(t,r)}}var S=0,p=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function Q(t){return"manager"in t&&t.manager}function X(t){if(Q(t)){var r=t.manager;return[r,!1]}var e=J(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function J(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A(),e=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=r;return i[p]||(i[p]=R(t,r,e,n)),i[p]}function A(){return typeof globalThis<"u"?globalThis:typeof global<"u"?global:window}const rt=j({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(r,e){var n=e.slots,i=q(X(r),2),a=i[0],u=i[1];u&&++S,N(function(){if(u){var s=A();--S===0&&(s[p]=null)}}),W(a);var c;return function(){var s;return(c=(s=n.default)===null||s===void 0?void 0:s.call(n))!==null&&c!==void 0?c:null}}});function K(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var D=!1,y=!1,Z=function(){function t(e){K(this,t),this.sourceId=null,this.internalMonitor=e.getMonitor()}var r=t.prototype;return r.receiveHandlerId=function(n){this.sourceId=n},r.getHandlerId=function(){return this.sourceId},r.canDrag=function(){g(!D,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return D=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{D=!1}},r.isDragging=function(){if(!this.sourceId)return!1;g(!y,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return y=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{y=!1}},r.subscribeToStateChange=function(n,i){return this.internalMonitor.subscribeToStateChange(n,i)},r.isDraggingSource=function(n){return this.internalMonitor.isDraggingSource(n)},r.isOverTarget=function(n,i){return this.internalMonitor.isOverTarget(n,i)},r.getTargetIds=function(){return this.internalMonitor.getTargetIds()},r.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},r.getSourceId=function(){return this.internalMonitor.getSourceId()},r.subscribeToOffsetChange=function(n){return this.internalMonitor.subscribeToOffsetChange(n)},r.canDragSource=function(n){return this.internalMonitor.canDragSource(n)},r.canDropOnTarget=function(n){return this.internalMonitor.canDropOnTarget(n)},r.getItemType=function(){return this.internalMonitor.getItemType()},r.getItem=function(){return this.internalMonitor.getItem()},r.getDropResult=function(){return this.internalMonitor.getDropResult()},r.didDrop=function(){return this.internalMonitor.didDrop()},r.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},r.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},r.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},r.getClientOffset=function(){return this.internalMonitor.getClientOffset()},r.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}();function ee(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var m=!1,te=function(){function t(e){ee(this,t),this.targetId=null,this.internalMonitor=e.getMonitor()}var r=t.prototype;return r.receiveHandlerId=function(n){this.targetId=n},r.getHandlerId=function(){return this.targetId},r.subscribeToStateChange=function(n,i){return this.internalMonitor.subscribeToStateChange(n,i)},r.canDrop=function(){if(!this.targetId)return!1;g(!m,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return m=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{m=!1}},r.isOver=function(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!1},r.getItemType=function(){return this.internalMonitor.getItemType()},r.getItem=function(){return this.internalMonitor.getItem()},r.getDropResult=function(){return this.internalMonitor.getDropResult()},r.didDrop=function(){return this.internalMonitor.didDrop()},r.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},r.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},r.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},r.getClientOffset=function(){return this.internalMonitor.getClientOffset()},r.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}(),re=function(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t};function ne(t){return t?t.__v_isVNode===!0:!1}function ie(t){return t?t.__v_skip:!1}function oe(t){return ne(t)&&re(t.type)!=="symbol"}function ae(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}function ue(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(ie(r)&&ae(),!oe(r)){var n=r;return t(n,e),n}}}function k(t){var r={};return Object.keys(t).forEach(function(e){var n=t[e];if(e.endsWith("Ref"))r[e]=t[e];else{var i=ue(n);r[e]=function(){return i}}}),r}function ce(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function se(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function le(t,r,e){return r&&se(t.prototype,r),t}var fe=function(){function t(e){var n=this;ce(this,t),this.hooks=k({dragSource:function(i,a){n.clearDragSource(),n.dragSourceOptions=a||null,n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,a){n.clearDragPreview(),n.dragPreviewOptions=a||null,n.dragPreviewNode=i,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}var r=t.prototype;return r.receiveHandlerId=function(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())},r.reconnect=function(){var n=this.reconnectDragSource();this.reconnectDragPreview(n)},r.reconnectDragSource=function(){var n=this.dragSource,i=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return i&&this.disconnectDragSource(),this.handlerId?n?(i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions)),i):(this.lastConnectedDragSource=n,i):i},r.reconnectDragPreview=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.dragPreview,a=n||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(a&&this.disconnectDragPreview(),!!this.handlerId){if(!i){this.lastConnectedDragPreview=i;return}a&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=i,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,i,this.dragPreviewOptions))}},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},r.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},r.didDragSourceOptionsChange=function(){return!C(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},r.didDragPreviewOptionsChange=function(){return!C(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},r.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},r.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},r.clearDragSource=function(){this.dragSourceNode=null},r.clearDragPreview=function(){this.dragPreviewNode=null},le(t,[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(n){this.dragSourceOptionsInternal=n}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(n){this.dragPreviewOptionsInternal=n}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}]),t}();function ge(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function de(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function he(t,r,e){return r&&de(t.prototype,r),t}var pe=function(){function t(e){var n=this;ge(this,t),this.hooks=k({dropTarget:function(i,a){n.clearDropTarget(),n.dropTargetOptions=a,U(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}var r=t.prototype;return r.reconnect=function(){var n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();var i=this.dropTarget;if(this.handlerId){if(!i){this.lastConnectedDropTarget=i;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=i,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,i,this.dropTargetOptions))}},r.receiveHandlerId=function(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},r.didOptionsChange=function(){return!C(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},r.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},r.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},he(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(n){this.dropTargetOptionsInternal=n}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}]),t}();function ve(t,r,e){var n=o(e).getRegistry(),i=n.addTarget(o(t),o(r));return[i,function(){return n.removeTarget(i)}]}function De(t,r,e){var n=e.getRegistry(),i=n.addSource(t,r);return[i,function(){return n.removeSource(i)}]}function ye(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var me=function(){function t(e,n,i){ye(this,t),this.spec=e,this.monitor=n,this.connector=i}var r=t.prototype;return r.beginDrag=function(){var n=this.spec,i=this.monitor,a=null;return typeof n.item=="object"?a=n.item:typeof n.item=="function"?a=n.item(i):a={},a??null},r.canDrag=function(){var n=this.spec,i=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(i):!0},r.isDragging=function(n,i){var a=this.spec,u=this.monitor,c=a.isDragging;return c?c(u):i===n.getSourceId()},r.endDrag=function(){var n=this.spec,i=this.monitor,a=this.connector,u=n.end;u&&u(i.getItem(),i),a.reconnect()},t}();function Ce(t,r,e){var n=l(function(){return new me(o(t),o(r),o(e))});return f(function(){n.value.spec=o(t)}),n}function d(){var t=Y();return g(t!=null,"Expected drag drop context"),t}function Ie(t){return l(function(){var r=o(t).type;return g(r!=null,"spec.type must be defined"),r})}function O(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function be(t){if(Array.isArray(t))return t}function Te(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function Se(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Oe(t,r){return be(t)||Te(t,r)||we(t,r)||Se()}function we(t,r){if(t){if(typeof t=="string")return O(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return O(t,r)}}function _e(t,r,e){var n=d(),i=Ce(t,r,e),a=Ie(t);f(function(c){if(o(a)!=null){var s=Oe(De(o(a),o(i),o(n)),2),h=s[0],v=s[1];o(r).receiveHandlerId(h),o(e).receiveHandlerId(h),c(v)}})}function H(t){return l(function(){return typeof t=="function"?t():t})}function Pe(){var t=d();return l(function(){return new Z(o(t))})}function Me(t,r){var e=d(),n=l(function(){return new fe(o(e).getBackend())});return f(function(i){n.value.dragSourceOptions=o(t)||null,o(n).reconnect(),i(function(){n.value.disconnectDragSource()})}),f(function(i){n.value.dragPreviewOptions=o(r)||null,o(n).reconnect(),i(function(){n.value.disconnectDragPreview()})}),n}function Ae(t,r,e){var n=F(o(r)(o(t))),i=function(){var a=o(r)(o(t));P(n.value,a)||(n.value=a,e&&e())};return f(i),[n,i]}function w(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function ke(t){if(Array.isArray(t))return t}function He(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function $e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Re(t,r){return ke(t)||He(t,r)||Ee(t,r)||$e()}function Ee(t,r){if(t){if(typeof t=="string")return w(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return w(t,r)}}function xe(t,r,e){var n=Re(Ae(t,r,e),2),i=n[0],a=n[1];return f(function(c){var s=o(t).getHandlerId();s!=null&&c(o(t).subscribeToStateChange(a,{handlerIds:[s]}))}),i}function $(t,r,e){var n=function(){return{}};return xe(r,t||n,function(){return o(e).reconnect()})}function I(t,r){var e=V({el:null,options:o(r)});f(function(){t(e)},{flush:"post"});var n=function(i,a){b(e,"el",i);var u=o(r)||a;return P(e.options,u)||b(e,"options",u),o(i)};return n}function je(t,r){return I(function(e){o(t).hooks.dragSource()(e.el,e.options)},l(function(){return o(r).options}))}function Ne(t,r){return I(function(e){o(t).hooks.dragPreview()(e.el,e.options)},l(function(){return o(r).previewOptions}))}function nt(t){var r=H(t),e=Pe(),n=Me(l(function(){return o(r).options}),l(function(){return o(r).previewOptions}));return _e(r,e,n),[$(l(function(){return o(r).collect||function(){return{}}}),e,n),je(n,r),Ne(n,r)]}function Ue(t){return l(function(){var r=o(t).accept;return g(r!=null,"accept must be defined"),Array.isArray(r)?r:[r]})}function Fe(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var Ve=function(){function t(e,n){Fe(this,t),this.spec=e,this.monitor=n}var r=t.prototype;return r.canDrop=function(){var n=this.spec,i=this.monitor;return n.canDrop?n.canDrop(i.getItem(),i):!0},r.hover=function(){var n=this.spec,i=this.monitor;n.hover&&n.hover(i.getItem(),i)},r.drop=function(){var n=this.spec,i=this.monitor;if(n.drop)return n.drop(i.getItem(),i)},t}();function We(t,r){var e=l(function(){return new Ve(o(t),o(r))});return f(function(){e.value.spec=o(t)}),e}function _(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function Ye(t){if(Array.isArray(t))return t}function Ge(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function Le(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Be(t,r){return Ye(t)||Ge(t,r)||qe(t,r)||Le()}function qe(t,r){if(t){if(typeof t=="string")return _(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _(t,r)}}function ze(t,r,e){var n=d(),i=We(t,r),a=Ue(t);f(function(c){var s=Be(ve(a,i,n),2),h=s[0],v=s[1];o(r).receiveHandlerId(h),o(e).receiveHandlerId(h),c(v)})}function Qe(){var t=d();return l(function(){return new te(o(t))})}function Xe(t){var r=d(),e=l(function(){return new pe(o(r).getBackend())});return f(function(n){e.value.dropTargetOptions=o(t)||null,e.value.reconnect(),n(function(){return e.value.disconnectDropTarget()})}),e}function Je(t,r){return I(function(e){o(t).hooks.dropTarget()(e.el,e.options)},l(function(){return o(r).options}))}function it(t){var r=H(t),e=Qe(),n=Xe(l(function(){return o(r).options}));return ze(r,e,n),[$(l(function(){return o(r).collect||function(){return{}}}),e,n),Je(n,r)]}export{rt as D,nt as a,it as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as F,G as J,N as u,n as at,J as T,m as b,a4 as ut,a5 as Tt,c as f,x as dt,V as ct,O as _t,r as $,$ as H,F as z,a6 as At}from"./@vue.DawUEI-_.0.0.31-alpha.2.js";const x={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},M={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},m={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},ht={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},pt={dangerouslyHTMLString:!1,multiple:!0,position:x.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},Nt={rtl:!1,newestOnTop:!1,toastClassName:""},ft={...pt,...Nt};({...pt,type:m.DEFAULT});var s=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(s||{}),Q=(t=>(t.ENTRANCE_ANIMATION_END="d",t))(Q||{});const It={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},Lt={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},Ot={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},bt={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},rt="Toastify--animate Toastify__none-enter";function mt(t,e=!1){var n;let o=It;if(!t||typeof t=="string")switch(t){case"flip":o=bt;break;case"zoom":o=Ot;break;case"slide":o=Lt;break}else o=t;if(e)o.enter=rt;else if(o.enter===rt){const i=(n=o.exit.split("__")[1])==null?void 0:n.split("-")[0];o.enter=`Toastify--animate Toastify__${i}-enter`}return o}function Pt(t){return t.containerId||String(t.position)}const W="will-unmount";function qt(t=x.TOP_RIGHT){return!!document.querySelector(`.${s.CSS_NAMESPACE}__toast-container--${t}`)}function $t(t=x.TOP_RIGHT){return`${s.CSS_NAMESPACE}__toast-container--${t}`}function Bt(t,e,n=!1){const o=[`${s.CSS_NAMESPACE}__toast-container`,`${s.CSS_NAMESPACE}__toast-container--${t}`,n?`${s.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return B(e)?e({position:t,rtl:n,defaultClassName:o}):`${o} ${e||""}`}function Mt(t){var e;const{position:n,containerClassName:o,rtl:i=!1,style:a={}}=t,c=s.CSS_NAMESPACE,g=$t(n),l=document.querySelector(`.${c}`),S=document.querySelector(`.${g}`),y=!!S&&!((e=S.className)!=null&&e.includes(W)),A=l||document.createElement("div"),p=document.createElement("div");p.className=Bt(n,o,i),p.dataset.testid=`${s.CSS_NAMESPACE}__toast-container--${n}`,p.id=Pt(t);for(const C in a)if(Object.prototype.hasOwnProperty.call(a,C)){const h=a[C];p.style[C]=h}return l||(A.className=s.CSS_NAMESPACE,document.body.appendChild(A)),y||A.appendChild(p),p}function tt(t){var e,n,o;const i=typeof t=="string"?t:((e=t.currentTarget)==null?void 0:e.id)||((n=t.target)==null?void 0:n.id),a=document.getElementById(i);a&&a.removeEventListener("animationend",tt,!1);try{k[i].unmount(),(o=document.getElementById(i))==null||o.remove(),delete k[i],delete d[i]}catch{}}const k=F({});function wt(t,e){const n=document.getElementById(String(e));n&&(k[n.id]=t)}function et(t,e=!0){const n=String(t);if(!k[n])return;const o=document.getElementById(n);o&&o.classList.add(W),e?(Rt(t),o&&o.addEventListener("animationend",tt,!1)):tt(n),_.items=_.items.filter(i=>i.containerId!==t)}function Ft(t){for(const e in k)et(e,t);_.items=[]}function vt(t,e){const n=document.getElementById(t.toastId);if(n){let o=t;o={...o,...mt(o.transition)};const i=o.appendPosition?`${o.exit}--${o.position}`:o.exit;n.className+=` ${i}`,e&&e(n)}}function Rt(t){for(const e in d)if(e===t)for(const n of d[e]||[])vt(n)}function Ut(t){const e=w().find(n=>n.toastId===t);return e==null?void 0:e.containerId}function st(t){return document.getElementById(t)}function Dt(t){const e=st(t.containerId);return e&&e.classList.contains(W)}function lt(t){var e;const n=ut(t.content)?T(t.content.props):null;return n??T((e=t.data)!=null?e:{})}function kt(t){return t?_.items.filter(e=>e.containerId===t).length>0:_.items.length>0}function xt(){if(_.items.length>0){const t=_.items.shift();j(t==null?void 0:t.toastContent,t==null?void 0:t.toastProps)}}const d=F({}),_=F({items:[]});function w(){const t=T(d);return Object.values(t).reduce((e,n)=>[...e,...n],[])}function Ht(t){return w().find(e=>e.toastId===t)}function j(t,e={}){if(Dt(e)){const n=st(e.containerId);n&&n.addEventListener("animationend",nt.bind(null,t,e),!1)}else nt(t,e)}function nt(t,e={}){const n=st(e.containerId);n&&n.removeEventListener("animationend",nt.bind(null,t,e),!1);const o=d[e.containerId]||[],i=o.length>0;if(!i&&!qt(e.position)){const a=Mt(e),c=Tt(re,e);c.mount(a),wt(c,a.id)}i&&!e.updateId&&(e.position=o[0].position),at(()=>{e.updateId?v.update(e):v.add(t,e)})}const v={add(t,e){const{containerId:n=""}=e;n&&(d[n]=d[n]||[],d[n].find(o=>o.toastId===e.toastId)||setTimeout(()=>{var o,i;e.newestOnTop?(o=d[n])==null||o.unshift(e):(i=d[n])==null||i.push(e),e.onOpen&&e.onOpen(lt(e))},e.delay||0))},remove(t){if(t){const e=Ut(t);if(e){const n=d[e];let o=n.find(i=>i.toastId===t);d[e]=n.filter(i=>i.toastId!==t),!d[e].length&&!kt(e)&&et(e,!1),xt(),at(()=>{o!=null&&o.onClose&&(o.onClose(lt(o)),o=void 0)})}}},update(t={}){const{containerId:e=""}=t;if(e&&t.updateId){d[e]=d[e]||[];const n=d[e].find(a=>a.toastId===t.toastId),o=(n==null?void 0:n.position)!==t.position||(n==null?void 0:n.transition)!==t.transition,i={...t,disabledEnterTransition:!o,updateId:void 0};v.dismissForce(t==null?void 0:t.toastId),setTimeout(()=>{r(i.content,i)},t.delay||0)}},clear(t,e=!0){t?et(t,e):Ft(e)},dismissCallback(t){var e;const n=(e=t.currentTarget)==null?void 0:e.id,o=document.getElementById(n);o&&(o.removeEventListener("animationend",v.dismissCallback,!1),setTimeout(()=>{v.remove(n)}))},dismiss(t){if(t){const e=w();for(const n of e)if(n.toastId===t){vt(n,o=>{o.addEventListener("animationend",v.dismissCallback,!1)});break}}},dismissForce(t){if(t){const e=w();for(const n of e)if(n.toastId===t){const o=document.getElementById(t);o&&(o.remove(),o.removeEventListener("animationend",v.dismissCallback,!1),v.remove(t));break}}}},yt=F({}),K=F({});function Et(){return Math.random().toString(36).substring(2,9)}function zt(t){return typeof t=="number"&&!isNaN(t)}function ot(t){return typeof t=="string"}function B(t){return typeof t=="function"}function X(...t){return b(...t)}function G(t){return typeof t=="object"&&(!!(t!=null&&t.render)||!!(t!=null&&t.setup)||typeof(t==null?void 0:t.type)=="object")}function jt(t={}){yt[`${s.CSS_NAMESPACE}-default-options`]=t}function Gt(){return yt[`${s.CSS_NAMESPACE}-default-options`]||ft}function Vt(){return document.documentElement.classList.contains("dark")?"dark":"light"}var V=(t=>(t[t.Enter=0]="Enter",t[t.Exit=1]="Exit",t))(V||{});const gt={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:x.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:M.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:m.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""}},Kt={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:m.DEFAULT},theme:{type:String,required:!1,default:M.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},Jt=J({name:"ProgressBar",props:Kt,setup(t,{attrs:e}){const n=$(),o=f(()=>t.hide?"true":"false"),i=f(()=>({...e.style||{},animationDuration:`${t.autoClose===!0?5e3:t.autoClose}ms`,animationPlayState:t.isRunning?"running":"paused",opacity:t.hide||t.autoClose===!1?0:1,transform:t.controlledProgress?`scaleX(${t.progress})`:"none"})),a=f(()=>[`${s.CSS_NAMESPACE}__progress-bar`,t.controlledProgress?`${s.CSS_NAMESPACE}__progress-bar--controlled`:`${s.CSS_NAMESPACE}__progress-bar--animated`,`${s.CSS_NAMESPACE}__progress-bar-theme--${t.theme}`,`${s.CSS_NAMESPACE}__progress-bar--${t.type}`,t.rtl?`${s.CSS_NAMESPACE}__progress-bar--rtl`:null].filter(Boolean).join(" ")),c=f(()=>`${a.value} ${(e==null?void 0:e.class)||""}`),g=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},l=()=>{t.isIn&&t.closeToast&&t.autoClose!==!1&&(t.closeToast(),g())},S=f(()=>t.controlledProgress?null:l),y=f(()=>t.controlledProgress?l:null);return z(()=>{n.value&&(g(),n.value.onanimationend=S.value,n.value.ontransitionend=y.value)}),()=>u("div",{ref:n,role:"progressbar","aria-hidden":o.value,"aria-label":"notification timer",class:c.value,style:i.value},null)}}),Wt=J({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:M.AUTO},type:{type:String,required:!1,default:M.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(t){return()=>u("button",{class:`${s.CSS_NAMESPACE}__close-button ${s.CSS_NAMESPACE}__close-button--${t.theme}`,type:"button",onClick:e=>{e.stopPropagation(),t.closeToast&&t.closeToast(e)},"aria-label":t.ariaLabel},[u("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[u("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),Y=({theme:t,type:e,path:n,...o})=>u("svg",b({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${e})`},o),[u("path",{d:n},null)]);function Xt(t){return u(Y,b(t,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function Yt(t){return u(Y,b(t,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function Zt(t){return u(Y,b(t,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function Qt(t){return u(Y,b(t,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function te(){return u("div",{class:`${s.CSS_NAMESPACE}__spinner`},null)}const it={info:Yt,warning:Xt,success:Zt,error:Qt,spinner:te},ee=t=>t in it;function ne({theme:t,type:e,isLoading:n,icon:o}){let i;const a={theme:t,type:e};return n?i=it.spinner():o===!1?i=void 0:G(o)?i=T(o):B(o)?i=o(a):ut(o)?i=At(o,a):ot(o)||zt(o)?i=o:ee(e)&&(i=it[e](a)),i}const oe=()=>{};function ie(t,e,n=s.COLLAPSE_DURATION){const{scrollHeight:o,style:i}=t,a=n;requestAnimationFrame(()=>{i.minHeight="initial",i.height=o+"px",i.transition=`all ${a}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,a)})})}function ae(t){const e=$(!1),n=$(!1),o=$(!1),i=$(V.Enter),a=F({...t,appendPosition:t.appendPosition||!1,collapse:typeof t.collapse>"u"?!0:t.collapse,collapseDuration:t.collapseDuration||s.COLLAPSE_DURATION}),c=a.done||oe,g=f(()=>a.appendPosition?`${a.enter}--${a.position}`:a.enter),l=f(()=>a.appendPosition?`${a.exit}--${a.position}`:a.exit),S=f(()=>t.pauseOnHover?{onMouseenter:I,onMouseleave:N}:{});function y(){const E=g.value.split(" ");p().addEventListener(Q.ENTRANCE_ANIMATION_END,N,{once:!0});const L=q=>{const U=p();q.target===U&&(U.dispatchEvent(new Event(Q.ENTRANCE_ANIMATION_END)),U.removeEventListener("animationend",L),U.removeEventListener("animationcancel",L),i.value===V.Enter&&q.type!=="animationcancel"&&U.classList.remove(...E))},O=()=>{const q=p();q.classList.add(...E),q.addEventListener("animationend",L),q.addEventListener("animationcancel",L)};t.pauseOnFocusLoss&&C(),O()}function A(){if(!p())return;const E=()=>{const O=p();O.removeEventListener("animationend",E),a.collapse?ie(O,c,a.collapseDuration):c()},L=()=>{const O=p();i.value=V.Exit,O&&(O.className+=` ${l.value}`,O.addEventListener("animationend",E))};n.value||(o.value?E():setTimeout(L))}function p(){return t.toastRef.value}function C(){document.hasFocus()||I(),window.addEventListener("focus",N),window.addEventListener("blur",I)}function h(){window.removeEventListener("focus",N),window.removeEventListener("blur",I)}function N(){(!t.loading.value||t.isLoading===void 0)&&(e.value=!0)}function I(){e.value=!1}function R(E){E&&(E.stopPropagation(),E.preventDefault()),n.value=!1}return z(A),z(()=>{const E=w();n.value=E.findIndex(L=>L.toastId===a.toastId)>-1}),z(()=>{t.isLoading!==void 0&&(t.loading.value?I():N())}),dt(y),ct(()=>{t.pauseOnFocusLoss&&h()}),{isIn:n,isRunning:e,hideToast:R,eventHandlers:S}}const se=J({name:"ToastItem",inheritAttrs:!1,props:gt,setup(t){const e=$(),n=f(()=>!!t.isLoading),o=f(()=>t.progress!==void 0&&t.progress!==null),i=f(()=>ne(t)),a=f(()=>[`${s.CSS_NAMESPACE}__toast`,`${s.CSS_NAMESPACE}__toast-theme--${t.theme}`,`${s.CSS_NAMESPACE}__toast--${t.type}`,t.rtl?`${s.CSS_NAMESPACE}__toast--rtl`:void 0,t.toastClassName||""].filter(Boolean).join(" ")),{isRunning:c,isIn:g,hideToast:l,eventHandlers:S}=ae({toastRef:e,loading:n,done:()=>{v.remove(t.toastId)},...mt(t.transition,t.disabledEnterTransition),...t});return()=>u("div",b({id:t.toastId,class:a.value,style:t.toastStyle||{},ref:e,"data-testid":`toast-item-${t.toastId}`,onClick:y=>{t.closeOnClick&&l(),t.onClick&&t.onClick(y)}},S.value),[u("div",{role:t.role,"data-testid":"toast-body",class:`${s.CSS_NAMESPACE}__toast-body ${t.bodyClassName||""}`},[i.value!=null&&u("div",{"data-testid":`toast-icon-${t.type}`,class:[`${s.CSS_NAMESPACE}__toast-icon`,t.isLoading?"":`${s.CSS_NAMESPACE}--animate-icon ${s.CSS_NAMESPACE}__zoom-enter`].join(" ")},[G(i.value)?H(T(i.value),{theme:t.theme,type:t.type}):B(i.value)?i.value({theme:t.theme,type:t.type}):i.value]),u("div",{"data-testid":"toast-content"},[G(t.content)?H(T(t.content),{toastProps:T(t),closeToast:l,data:t.data}):B(t.content)?t.content({toastProps:T(t),closeToast:l,data:t.data}):t.dangerouslyHTMLString?H("div",{innerHTML:t.content}):t.content])]),(t.closeButton===void 0||t.closeButton===!0)&&u(Wt,{theme:t.theme,closeToast:y=>{y.stopPropagation(),y.preventDefault(),l()}},null),G(t.closeButton)?H(T(t.closeButton),{closeToast:l,type:t.type,theme:t.theme}):B(t.closeButton)?t.closeButton({closeToast:l,type:t.type,theme:t.theme}):null,u(Jt,{className:t.progressClassName,style:t.progressStyle,rtl:t.rtl,theme:t.theme,isIn:g.value,type:t.type,hide:t.hideProgressBar,isRunning:c.value,autoClose:t.autoClose,controlledProgress:o.value,progress:t.progress,closeToast:t.isLoading?void 0:l},null)])}});let D=0;function St(){typeof window>"u"||(D&&window.cancelAnimationFrame(D),D=window.requestAnimationFrame(St),K.lastUrl!==window.location.href&&(K.lastUrl=window.location.href,v.clear()))}const re=J({name:"ToastifyContainer",inheritAttrs:!1,props:gt,setup(t){const e=f(()=>t.containerId),n=f(()=>d[e.value]||[]),o=f(()=>n.value.filter(i=>i.position===t.position));return dt(()=>{typeof window<"u"&&t.clearOnUrlChange&&window.requestAnimationFrame(St)}),ct(()=>{typeof window<"u"&&D&&(window.cancelAnimationFrame(D),K.lastUrl="")}),()=>u(_t,null,[o.value.map(i=>{const{toastId:a=""}=i;return u(se,b({key:a},i),null)})])}});let Z=!1;function Ct(){const t=[];return w().forEach(e=>{const n=document.getElementById(e.containerId);n&&!n.classList.contains(W)&&t.push(e)}),t}function le(t){const e=Ct().length,n=t??0;return n>0&&e+_.items.length>=n}function ue(t){le(t.limit)&&!t.updateId&&_.items.push({toastId:t.toastId,containerId:t.containerId,toastContent:t.content,toastProps:t})}function P(t,e,n={}){if(Z)return;n=X(Gt(),{type:e},T(n)),(!n.toastId||typeof n.toastId!="string"&&typeof n.toastId!="number")&&(n.toastId=Et()),n={...n,content:t,containerId:n.containerId||String(n.position)};const o=Number(n==null?void 0:n.progress);return o<0&&(n.progress=0),o>1&&(n.progress=1),n.theme==="auto"&&(n.theme=Vt()),ue(n),K.lastUrl=window.location.href,n.multiple?_.items.length?n.updateId&&j(t,n):j(t,n):(Z=!0,r.clearAll(void 0,!1),setTimeout(()=>{j(t,n)},0),setTimeout(()=>{Z=!1},390)),n.toastId}const r=(t,e)=>P(t,m.DEFAULT,e);r.info=(t,e)=>P(t,m.DEFAULT,{...e,type:m.INFO});r.error=(t,e)=>P(t,m.DEFAULT,{...e,type:m.ERROR});r.warning=(t,e)=>P(t,m.DEFAULT,{...e,type:m.WARNING});r.warn=r.warning;r.success=(t,e)=>P(t,m.DEFAULT,{...e,type:m.SUCCESS});r.loading=(t,e)=>P(t,m.DEFAULT,X(e,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1}));r.dark=(t,e)=>P(t,m.DEFAULT,X(e,{theme:M.DARK}));r.remove=t=>{t?v.dismiss(t):v.clear()};r.clearAll=(t,e)=>{at(()=>{v.clear(t,e)})};r.isActive=t=>{let e=!1;return e=Ct().findIndex(n=>n.toastId===t)>-1,e};r.update=(t,e={})=>{setTimeout(()=>{const n=Ht(t);if(n){const o=T(n),{content:i}=o,a={...o,...e,toastId:e.toastId||t,updateId:Et()},c=a.render||i;delete a.render,P(c,a.type,a)}},0)};r.done=t=>{r.update(t,{isLoading:!1,progress:1})};r.promise=de;function de(t,{pending:e,error:n,success:o},i){var a,c,g;let l;const S={...i||{},autoClose:!1};e&&(l=ot(e)?r.loading(e,S):r.loading(e.render,{...S,...e}));const y={autoClose:(a=i==null?void 0:i.autoClose)!=null?a:!0,closeOnClick:(c=i==null?void 0:i.closeOnClick)!=null?c:!0,closeButton:(g=i==null?void 0:i.autoClose)!=null?g:null,isLoading:void 0,draggable:null,delay:100},A=(C,h,N)=>{if(h==null){r.remove(l);return}const I={type:C,...y,...i,data:N},R=ot(h)?{render:h}:h;return l?r.update(l,{...I,...R,isLoading:!1}):r(R.render,{...I,...R,isLoading:!1}),N},p=B(t)?t():t;return p.then(C=>{A("success",o,C)}).catch(C=>{A("error",n,C)}),p}r.POSITION=x;r.THEME=M;r.TYPE=m;r.TRANSITIONS=ht;const ce={install(t,e={}){pe(e)}};typeof window<"u"&&(window.Vue3Toastify=ce);function pe(t={}){const e=X(ft,t);jt(e)}export{ce as c,pe as f,r as i};
|
|
1
|
+
import{E as F,G as J,N as u,n as at,J as T,m as b,a4 as ut,a5 as Tt,c as f,x as dt,V as ct,O as _t,r as $,$ as H,F as z,a6 as At}from"./@vue.DawUEI-_.0.0.31-alpha.3.js";const x={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},M={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},m={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},ht={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},pt={dangerouslyHTMLString:!1,multiple:!0,position:x.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},Nt={rtl:!1,newestOnTop:!1,toastClassName:""},ft={...pt,...Nt};({...pt,type:m.DEFAULT});var s=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(s||{}),Q=(t=>(t.ENTRANCE_ANIMATION_END="d",t))(Q||{});const It={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},Lt={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},Ot={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},bt={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},rt="Toastify--animate Toastify__none-enter";function mt(t,e=!1){var n;let o=It;if(!t||typeof t=="string")switch(t){case"flip":o=bt;break;case"zoom":o=Ot;break;case"slide":o=Lt;break}else o=t;if(e)o.enter=rt;else if(o.enter===rt){const i=(n=o.exit.split("__")[1])==null?void 0:n.split("-")[0];o.enter=`Toastify--animate Toastify__${i}-enter`}return o}function Pt(t){return t.containerId||String(t.position)}const W="will-unmount";function qt(t=x.TOP_RIGHT){return!!document.querySelector(`.${s.CSS_NAMESPACE}__toast-container--${t}`)}function $t(t=x.TOP_RIGHT){return`${s.CSS_NAMESPACE}__toast-container--${t}`}function Bt(t,e,n=!1){const o=[`${s.CSS_NAMESPACE}__toast-container`,`${s.CSS_NAMESPACE}__toast-container--${t}`,n?`${s.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return B(e)?e({position:t,rtl:n,defaultClassName:o}):`${o} ${e||""}`}function Mt(t){var e;const{position:n,containerClassName:o,rtl:i=!1,style:a={}}=t,c=s.CSS_NAMESPACE,g=$t(n),l=document.querySelector(`.${c}`),S=document.querySelector(`.${g}`),y=!!S&&!((e=S.className)!=null&&e.includes(W)),A=l||document.createElement("div"),p=document.createElement("div");p.className=Bt(n,o,i),p.dataset.testid=`${s.CSS_NAMESPACE}__toast-container--${n}`,p.id=Pt(t);for(const C in a)if(Object.prototype.hasOwnProperty.call(a,C)){const h=a[C];p.style[C]=h}return l||(A.className=s.CSS_NAMESPACE,document.body.appendChild(A)),y||A.appendChild(p),p}function tt(t){var e,n,o;const i=typeof t=="string"?t:((e=t.currentTarget)==null?void 0:e.id)||((n=t.target)==null?void 0:n.id),a=document.getElementById(i);a&&a.removeEventListener("animationend",tt,!1);try{k[i].unmount(),(o=document.getElementById(i))==null||o.remove(),delete k[i],delete d[i]}catch{}}const k=F({});function wt(t,e){const n=document.getElementById(String(e));n&&(k[n.id]=t)}function et(t,e=!0){const n=String(t);if(!k[n])return;const o=document.getElementById(n);o&&o.classList.add(W),e?(Rt(t),o&&o.addEventListener("animationend",tt,!1)):tt(n),_.items=_.items.filter(i=>i.containerId!==t)}function Ft(t){for(const e in k)et(e,t);_.items=[]}function vt(t,e){const n=document.getElementById(t.toastId);if(n){let o=t;o={...o,...mt(o.transition)};const i=o.appendPosition?`${o.exit}--${o.position}`:o.exit;n.className+=` ${i}`,e&&e(n)}}function Rt(t){for(const e in d)if(e===t)for(const n of d[e]||[])vt(n)}function Ut(t){const e=w().find(n=>n.toastId===t);return e==null?void 0:e.containerId}function st(t){return document.getElementById(t)}function Dt(t){const e=st(t.containerId);return e&&e.classList.contains(W)}function lt(t){var e;const n=ut(t.content)?T(t.content.props):null;return n??T((e=t.data)!=null?e:{})}function kt(t){return t?_.items.filter(e=>e.containerId===t).length>0:_.items.length>0}function xt(){if(_.items.length>0){const t=_.items.shift();j(t==null?void 0:t.toastContent,t==null?void 0:t.toastProps)}}const d=F({}),_=F({items:[]});function w(){const t=T(d);return Object.values(t).reduce((e,n)=>[...e,...n],[])}function Ht(t){return w().find(e=>e.toastId===t)}function j(t,e={}){if(Dt(e)){const n=st(e.containerId);n&&n.addEventListener("animationend",nt.bind(null,t,e),!1)}else nt(t,e)}function nt(t,e={}){const n=st(e.containerId);n&&n.removeEventListener("animationend",nt.bind(null,t,e),!1);const o=d[e.containerId]||[],i=o.length>0;if(!i&&!qt(e.position)){const a=Mt(e),c=Tt(re,e);c.mount(a),wt(c,a.id)}i&&!e.updateId&&(e.position=o[0].position),at(()=>{e.updateId?v.update(e):v.add(t,e)})}const v={add(t,e){const{containerId:n=""}=e;n&&(d[n]=d[n]||[],d[n].find(o=>o.toastId===e.toastId)||setTimeout(()=>{var o,i;e.newestOnTop?(o=d[n])==null||o.unshift(e):(i=d[n])==null||i.push(e),e.onOpen&&e.onOpen(lt(e))},e.delay||0))},remove(t){if(t){const e=Ut(t);if(e){const n=d[e];let o=n.find(i=>i.toastId===t);d[e]=n.filter(i=>i.toastId!==t),!d[e].length&&!kt(e)&&et(e,!1),xt(),at(()=>{o!=null&&o.onClose&&(o.onClose(lt(o)),o=void 0)})}}},update(t={}){const{containerId:e=""}=t;if(e&&t.updateId){d[e]=d[e]||[];const n=d[e].find(a=>a.toastId===t.toastId),o=(n==null?void 0:n.position)!==t.position||(n==null?void 0:n.transition)!==t.transition,i={...t,disabledEnterTransition:!o,updateId:void 0};v.dismissForce(t==null?void 0:t.toastId),setTimeout(()=>{r(i.content,i)},t.delay||0)}},clear(t,e=!0){t?et(t,e):Ft(e)},dismissCallback(t){var e;const n=(e=t.currentTarget)==null?void 0:e.id,o=document.getElementById(n);o&&(o.removeEventListener("animationend",v.dismissCallback,!1),setTimeout(()=>{v.remove(n)}))},dismiss(t){if(t){const e=w();for(const n of e)if(n.toastId===t){vt(n,o=>{o.addEventListener("animationend",v.dismissCallback,!1)});break}}},dismissForce(t){if(t){const e=w();for(const n of e)if(n.toastId===t){const o=document.getElementById(t);o&&(o.remove(),o.removeEventListener("animationend",v.dismissCallback,!1),v.remove(t));break}}}},yt=F({}),K=F({});function Et(){return Math.random().toString(36).substring(2,9)}function zt(t){return typeof t=="number"&&!isNaN(t)}function ot(t){return typeof t=="string"}function B(t){return typeof t=="function"}function X(...t){return b(...t)}function G(t){return typeof t=="object"&&(!!(t!=null&&t.render)||!!(t!=null&&t.setup)||typeof(t==null?void 0:t.type)=="object")}function jt(t={}){yt[`${s.CSS_NAMESPACE}-default-options`]=t}function Gt(){return yt[`${s.CSS_NAMESPACE}-default-options`]||ft}function Vt(){return document.documentElement.classList.contains("dark")?"dark":"light"}var V=(t=>(t[t.Enter=0]="Enter",t[t.Exit=1]="Exit",t))(V||{});const gt={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:x.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:M.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:m.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""}},Kt={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:m.DEFAULT},theme:{type:String,required:!1,default:M.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},Jt=J({name:"ProgressBar",props:Kt,setup(t,{attrs:e}){const n=$(),o=f(()=>t.hide?"true":"false"),i=f(()=>({...e.style||{},animationDuration:`${t.autoClose===!0?5e3:t.autoClose}ms`,animationPlayState:t.isRunning?"running":"paused",opacity:t.hide||t.autoClose===!1?0:1,transform:t.controlledProgress?`scaleX(${t.progress})`:"none"})),a=f(()=>[`${s.CSS_NAMESPACE}__progress-bar`,t.controlledProgress?`${s.CSS_NAMESPACE}__progress-bar--controlled`:`${s.CSS_NAMESPACE}__progress-bar--animated`,`${s.CSS_NAMESPACE}__progress-bar-theme--${t.theme}`,`${s.CSS_NAMESPACE}__progress-bar--${t.type}`,t.rtl?`${s.CSS_NAMESPACE}__progress-bar--rtl`:null].filter(Boolean).join(" ")),c=f(()=>`${a.value} ${(e==null?void 0:e.class)||""}`),g=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},l=()=>{t.isIn&&t.closeToast&&t.autoClose!==!1&&(t.closeToast(),g())},S=f(()=>t.controlledProgress?null:l),y=f(()=>t.controlledProgress?l:null);return z(()=>{n.value&&(g(),n.value.onanimationend=S.value,n.value.ontransitionend=y.value)}),()=>u("div",{ref:n,role:"progressbar","aria-hidden":o.value,"aria-label":"notification timer",class:c.value,style:i.value},null)}}),Wt=J({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:M.AUTO},type:{type:String,required:!1,default:M.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(t){return()=>u("button",{class:`${s.CSS_NAMESPACE}__close-button ${s.CSS_NAMESPACE}__close-button--${t.theme}`,type:"button",onClick:e=>{e.stopPropagation(),t.closeToast&&t.closeToast(e)},"aria-label":t.ariaLabel},[u("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[u("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),Y=({theme:t,type:e,path:n,...o})=>u("svg",b({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${e})`},o),[u("path",{d:n},null)]);function Xt(t){return u(Y,b(t,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function Yt(t){return u(Y,b(t,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function Zt(t){return u(Y,b(t,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function Qt(t){return u(Y,b(t,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function te(){return u("div",{class:`${s.CSS_NAMESPACE}__spinner`},null)}const it={info:Yt,warning:Xt,success:Zt,error:Qt,spinner:te},ee=t=>t in it;function ne({theme:t,type:e,isLoading:n,icon:o}){let i;const a={theme:t,type:e};return n?i=it.spinner():o===!1?i=void 0:G(o)?i=T(o):B(o)?i=o(a):ut(o)?i=At(o,a):ot(o)||zt(o)?i=o:ee(e)&&(i=it[e](a)),i}const oe=()=>{};function ie(t,e,n=s.COLLAPSE_DURATION){const{scrollHeight:o,style:i}=t,a=n;requestAnimationFrame(()=>{i.minHeight="initial",i.height=o+"px",i.transition=`all ${a}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,a)})})}function ae(t){const e=$(!1),n=$(!1),o=$(!1),i=$(V.Enter),a=F({...t,appendPosition:t.appendPosition||!1,collapse:typeof t.collapse>"u"?!0:t.collapse,collapseDuration:t.collapseDuration||s.COLLAPSE_DURATION}),c=a.done||oe,g=f(()=>a.appendPosition?`${a.enter}--${a.position}`:a.enter),l=f(()=>a.appendPosition?`${a.exit}--${a.position}`:a.exit),S=f(()=>t.pauseOnHover?{onMouseenter:I,onMouseleave:N}:{});function y(){const E=g.value.split(" ");p().addEventListener(Q.ENTRANCE_ANIMATION_END,N,{once:!0});const L=q=>{const U=p();q.target===U&&(U.dispatchEvent(new Event(Q.ENTRANCE_ANIMATION_END)),U.removeEventListener("animationend",L),U.removeEventListener("animationcancel",L),i.value===V.Enter&&q.type!=="animationcancel"&&U.classList.remove(...E))},O=()=>{const q=p();q.classList.add(...E),q.addEventListener("animationend",L),q.addEventListener("animationcancel",L)};t.pauseOnFocusLoss&&C(),O()}function A(){if(!p())return;const E=()=>{const O=p();O.removeEventListener("animationend",E),a.collapse?ie(O,c,a.collapseDuration):c()},L=()=>{const O=p();i.value=V.Exit,O&&(O.className+=` ${l.value}`,O.addEventListener("animationend",E))};n.value||(o.value?E():setTimeout(L))}function p(){return t.toastRef.value}function C(){document.hasFocus()||I(),window.addEventListener("focus",N),window.addEventListener("blur",I)}function h(){window.removeEventListener("focus",N),window.removeEventListener("blur",I)}function N(){(!t.loading.value||t.isLoading===void 0)&&(e.value=!0)}function I(){e.value=!1}function R(E){E&&(E.stopPropagation(),E.preventDefault()),n.value=!1}return z(A),z(()=>{const E=w();n.value=E.findIndex(L=>L.toastId===a.toastId)>-1}),z(()=>{t.isLoading!==void 0&&(t.loading.value?I():N())}),dt(y),ct(()=>{t.pauseOnFocusLoss&&h()}),{isIn:n,isRunning:e,hideToast:R,eventHandlers:S}}const se=J({name:"ToastItem",inheritAttrs:!1,props:gt,setup(t){const e=$(),n=f(()=>!!t.isLoading),o=f(()=>t.progress!==void 0&&t.progress!==null),i=f(()=>ne(t)),a=f(()=>[`${s.CSS_NAMESPACE}__toast`,`${s.CSS_NAMESPACE}__toast-theme--${t.theme}`,`${s.CSS_NAMESPACE}__toast--${t.type}`,t.rtl?`${s.CSS_NAMESPACE}__toast--rtl`:void 0,t.toastClassName||""].filter(Boolean).join(" ")),{isRunning:c,isIn:g,hideToast:l,eventHandlers:S}=ae({toastRef:e,loading:n,done:()=>{v.remove(t.toastId)},...mt(t.transition,t.disabledEnterTransition),...t});return()=>u("div",b({id:t.toastId,class:a.value,style:t.toastStyle||{},ref:e,"data-testid":`toast-item-${t.toastId}`,onClick:y=>{t.closeOnClick&&l(),t.onClick&&t.onClick(y)}},S.value),[u("div",{role:t.role,"data-testid":"toast-body",class:`${s.CSS_NAMESPACE}__toast-body ${t.bodyClassName||""}`},[i.value!=null&&u("div",{"data-testid":`toast-icon-${t.type}`,class:[`${s.CSS_NAMESPACE}__toast-icon`,t.isLoading?"":`${s.CSS_NAMESPACE}--animate-icon ${s.CSS_NAMESPACE}__zoom-enter`].join(" ")},[G(i.value)?H(T(i.value),{theme:t.theme,type:t.type}):B(i.value)?i.value({theme:t.theme,type:t.type}):i.value]),u("div",{"data-testid":"toast-content"},[G(t.content)?H(T(t.content),{toastProps:T(t),closeToast:l,data:t.data}):B(t.content)?t.content({toastProps:T(t),closeToast:l,data:t.data}):t.dangerouslyHTMLString?H("div",{innerHTML:t.content}):t.content])]),(t.closeButton===void 0||t.closeButton===!0)&&u(Wt,{theme:t.theme,closeToast:y=>{y.stopPropagation(),y.preventDefault(),l()}},null),G(t.closeButton)?H(T(t.closeButton),{closeToast:l,type:t.type,theme:t.theme}):B(t.closeButton)?t.closeButton({closeToast:l,type:t.type,theme:t.theme}):null,u(Jt,{className:t.progressClassName,style:t.progressStyle,rtl:t.rtl,theme:t.theme,isIn:g.value,type:t.type,hide:t.hideProgressBar,isRunning:c.value,autoClose:t.autoClose,controlledProgress:o.value,progress:t.progress,closeToast:t.isLoading?void 0:l},null)])}});let D=0;function St(){typeof window>"u"||(D&&window.cancelAnimationFrame(D),D=window.requestAnimationFrame(St),K.lastUrl!==window.location.href&&(K.lastUrl=window.location.href,v.clear()))}const re=J({name:"ToastifyContainer",inheritAttrs:!1,props:gt,setup(t){const e=f(()=>t.containerId),n=f(()=>d[e.value]||[]),o=f(()=>n.value.filter(i=>i.position===t.position));return dt(()=>{typeof window<"u"&&t.clearOnUrlChange&&window.requestAnimationFrame(St)}),ct(()=>{typeof window<"u"&&D&&(window.cancelAnimationFrame(D),K.lastUrl="")}),()=>u(_t,null,[o.value.map(i=>{const{toastId:a=""}=i;return u(se,b({key:a},i),null)})])}});let Z=!1;function Ct(){const t=[];return w().forEach(e=>{const n=document.getElementById(e.containerId);n&&!n.classList.contains(W)&&t.push(e)}),t}function le(t){const e=Ct().length,n=t??0;return n>0&&e+_.items.length>=n}function ue(t){le(t.limit)&&!t.updateId&&_.items.push({toastId:t.toastId,containerId:t.containerId,toastContent:t.content,toastProps:t})}function P(t,e,n={}){if(Z)return;n=X(Gt(),{type:e},T(n)),(!n.toastId||typeof n.toastId!="string"&&typeof n.toastId!="number")&&(n.toastId=Et()),n={...n,content:t,containerId:n.containerId||String(n.position)};const o=Number(n==null?void 0:n.progress);return o<0&&(n.progress=0),o>1&&(n.progress=1),n.theme==="auto"&&(n.theme=Vt()),ue(n),K.lastUrl=window.location.href,n.multiple?_.items.length?n.updateId&&j(t,n):j(t,n):(Z=!0,r.clearAll(void 0,!1),setTimeout(()=>{j(t,n)},0),setTimeout(()=>{Z=!1},390)),n.toastId}const r=(t,e)=>P(t,m.DEFAULT,e);r.info=(t,e)=>P(t,m.DEFAULT,{...e,type:m.INFO});r.error=(t,e)=>P(t,m.DEFAULT,{...e,type:m.ERROR});r.warning=(t,e)=>P(t,m.DEFAULT,{...e,type:m.WARNING});r.warn=r.warning;r.success=(t,e)=>P(t,m.DEFAULT,{...e,type:m.SUCCESS});r.loading=(t,e)=>P(t,m.DEFAULT,X(e,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1}));r.dark=(t,e)=>P(t,m.DEFAULT,X(e,{theme:M.DARK}));r.remove=t=>{t?v.dismiss(t):v.clear()};r.clearAll=(t,e)=>{at(()=>{v.clear(t,e)})};r.isActive=t=>{let e=!1;return e=Ct().findIndex(n=>n.toastId===t)>-1,e};r.update=(t,e={})=>{setTimeout(()=>{const n=Ht(t);if(n){const o=T(n),{content:i}=o,a={...o,...e,toastId:e.toastId||t,updateId:Et()},c=a.render||i;delete a.render,P(c,a.type,a)}},0)};r.done=t=>{r.update(t,{isLoading:!1,progress:1})};r.promise=de;function de(t,{pending:e,error:n,success:o},i){var a,c,g;let l;const S={...i||{},autoClose:!1};e&&(l=ot(e)?r.loading(e,S):r.loading(e.render,{...S,...e}));const y={autoClose:(a=i==null?void 0:i.autoClose)!=null?a:!0,closeOnClick:(c=i==null?void 0:i.closeOnClick)!=null?c:!0,closeButton:(g=i==null?void 0:i.autoClose)!=null?g:null,isLoading:void 0,draggable:null,delay:100},A=(C,h,N)=>{if(h==null){r.remove(l);return}const I={type:C,...y,...i,data:N},R=ot(h)?{render:h}:h;return l?r.update(l,{...I,...R,isLoading:!1}):r(R.render,{...I,...R,isLoading:!1}),N},p=B(t)?t():t;return p.then(C=>{A("success",o,C)}).catch(C=>{A("error",n,C)}),p}r.POSITION=x;r.THEME=M;r.TYPE=m;r.TRANSITIONS=ht;const ce={install(t,e={}){pe(e)}};typeof window<"u"&&(window.Vue3Toastify=ce);function pe(t={}){const e=X(ft,t);jt(e)}export{ce as c,pe as f,r as i};
|
package/dist/interface/{vuetify.DSpravLa.0.0.31-alpha.2.js → vuetify.BSQt06NV.0.0.31-alpha.3.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{O as oe,a4 as Ir,a7 as Lr,E as It,c as b,F as De,t as Dn,a8 as Ia,D as Z,u as _e,C as Ar,r as W,a as ue,Q as Se,G as Tr,a9 as hi,$ as Nt,N as u,i as Mt,m as j,aa as La,X as wt,A as O,w as Q,a3 as yi,n as ke,a1 as Qe,e as we,Z as it,v as Je,B as Aa,o as Oe,z as Ta,J as ye,x as Ht,ab as _r,a2 as Er,T as Br,H as Mr,a6 as Dr,ac as bi,ad as Fr,ae as Or,K as $r,af as Si,W as kn,ag as Rr,p as ul,U as Nr}from"./@vue.DawUEI-_.0.0.31-alpha.2.js";function D(e,n){return t=>Object.keys(e).reduce((a,l)=>{const o=typeof e[l]=="object"&&e[l]!=null&&!Array.isArray(e[l])?e[l]:{type:e[l]};return t&&l in t?a[l]={...o,default:t[l]}:a[l]=o,n&&!a[l].source&&(a[l].source=n),a},{})}const ee=D({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component"),ce=typeof window<"u",_a=ce&&"IntersectionObserver"in window,Hr=ce&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function Ci(e,n,t){const a=n.length-1;if(a<0)return e===void 0?t:e;for(let l=0;l<a;l++){if(e==null)return t;e=e[n[l]]}return e==null||e[n[a]]===void 0?t:e[n[a]]}function vt(e,n){if(e===n)return!0;if(e instanceof Date&&n instanceof Date&&e.getTime()!==n.getTime()||e!==Object(e)||n!==Object(n))return!1;const t=Object.keys(e);return t.length!==Object.keys(n).length?!1:t.every(a=>vt(e[a],n[a]))}function Vt(e,n,t){return e==null||!n||typeof n!="string"?t:e[n]!==void 0?e[n]:(n=n.replace(/\[(\w+)\]/g,".$1"),n=n.replace(/^\./,""),Ci(e,n.split("."),t))}function Me(e,n,t){if(n===!0)return e===void 0?t:e;if(n==null||typeof n=="boolean")return t;if(e!==Object(e)){if(typeof n!="function")return t;const l=n(e,t);return typeof l>"u"?t:l}if(typeof n=="string")return Vt(e,n,t);if(Array.isArray(n))return Ci(e,n,t);if(typeof n!="function")return t;const a=n(e,t);return typeof a>"u"?t:a}function St(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(t,a)=>n+a)}function K(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${n}`:void 0}function Ea(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function cl(e){let n;return e!==null&&typeof e=="object"&&((n=Object.getPrototypeOf(e))===Object.prototype||n===null)}function xi(e){if(e&&"$el"in e){const n=e.$el;return(n==null?void 0:n.nodeType)===Node.TEXT_NODE?n.nextElementSibling:n}return e}const dl=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),da=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function ki(e){return Object.keys(e)}function Jn(e,n){return n.every(t=>e.hasOwnProperty(t))}function Ba(e,n){const t={},a=new Set(Object.keys(e));for(const l of n)a.has(l)&&(t[l]=e[l]);return t}function fa(e,n,t){const a=Object.create(null),l=Object.create(null);for(const i in e)n.some(o=>o instanceof RegExp?o.test(i):o===i)&&!(t!=null&&t.some(o=>o===i))?a[i]=e[i]:l[i]=e[i];return[a,l]}function ze(e,n){const t={...e};return n.forEach(a=>delete t[a]),t}function zr(e,n){const t={};return n.forEach(a=>t[a]=e[a]),t}const wi=/^on[^a-z]/,Fn=e=>wi.test(e),Wr=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],jr=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function Gr(e){return e.isComposing&&jr.includes(e.key)}function Ma(e){const[n,t]=fa(e,[wi]),a=ze(n,Wr),[l,i]=fa(t,["class","style","id",/^data-/]);return Object.assign(l,n),Object.assign(i,a),[l,i]}function pe(e){return e==null?[]:Array.isArray(e)?e:[e]}function Ur(e,n){let t=0;const a=function(){for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout(()=>e(...i),_e(n))};return a.clear=()=>{clearTimeout(t)},a.immediate=e,a}function Ae(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(n,Math.min(t,e))}function wn(e){const n=e.toString().trim();return n.includes(".")?n.length-n.indexOf(".")-1:0}function fl(e,n){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+t.repeat(Math.max(0,n-e.length))}function vl(e,n){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,n-e.length))+e}function Kr(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const t=[];let a=0;for(;a<e.length;)t.push(e.substr(a,n)),a+=n;return t}function Le(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;const a={};for(const l in e)a[l]=e[l];for(const l in n){const i=e[l],o=n[l];if(cl(i)&&cl(o)){a[l]=Le(i,o,t);continue}if(t&&Array.isArray(i)&&Array.isArray(o)){a[l]=t(i,o);continue}a[l]=o}return a}function Vi(e){return e.map(n=>n.type===oe?Vi(n.children):n).flat()}function xt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(xt.cache.has(e))return xt.cache.get(e);const n=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return xt.cache.set(e,n),n}xt.cache=new Map;function Yt(e,n){if(!n||typeof n!="object")return[];if(Array.isArray(n))return n.map(t=>Yt(e,t)).flat(1);if(n.suspense)return Yt(e,n.ssContent);if(Array.isArray(n.children))return n.children.map(t=>Yt(e,t)).flat(1);if(n.component){if(Object.getOwnPropertySymbols(n.component.provides).includes(e))return[n.component];if(n.component.subTree)return Yt(e,n.component.subTree).flat(1)}return[]}function Da(e){const n=It({}),t=b(e);return De(()=>{for(const a in t.value)n[a]=t.value[a]},{flush:"sync"}),Dn(n)}function Vn(e,n){return e.includes(n)}function pi(e){return e[2].toLowerCase()+e.slice(3)}const Pe=()=>[Function,Array];function ml(e,n){return n="on"+Ia(n),!!(e[n]||e[`${n}Once`]||e[`${n}Capture`]||e[`${n}OnceCapture`]||e[`${n}CaptureOnce`])}function Yr(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];if(Array.isArray(e))for(const l of e)l(...t);else typeof e=="function"&&e(...t)}function qt(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const t=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(a=>`${a}${n?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(t)]}function Pi(e,n,t){let a,l=e.indexOf(document.activeElement);const i=n==="next"?1:-1;do l+=i,a=e[l];while((!a||a.offsetParent==null||!((t==null?void 0:t(a))??!0))&&l<e.length&&l>=0);return a}function Zt(e,n){var a,l,i,o;const t=qt(e);if(!n)(e===document.activeElement||!e.contains(document.activeElement))&&((a=t[0])==null||a.focus());else if(n==="first")(l=t[0])==null||l.focus();else if(n==="last")(i=t.at(-1))==null||i.focus();else if(typeof n=="number")(o=t[n])==null||o.focus();else{const r=Pi(t,n);r?r.focus():Zt(e,n==="next"?"first":"last")}}function mn(e){return e==null||typeof e=="string"&&e.trim()===""}function Zr(){}function pn(e,n){if(!(ce&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${n})`)))return null;try{return!!e&&e.matches(n)}catch{return null}}function Fa(e){return e.some(n=>Ir(n)?n.type===Lr?!1:n.type!==oe||Fa(n.children):!0)?e:null}function qr(e,n){if(!ce||e===0)return n(),()=>{};const t=window.setTimeout(n,e);return()=>window.clearTimeout(t)}function Xr(e,n){const t=e.clientX,a=e.clientY,l=n.getBoundingClientRect(),i=l.left,o=l.top,r=l.right,s=l.bottom;return t>=i&&t<=r&&a>=o&&a<=s}function va(){const e=Z(),n=t=>{e.value=t};return Object.defineProperty(n,"value",{enumerable:!0,get:()=>e.value,set:t=>e.value=t}),Object.defineProperty(n,"el",{enumerable:!0,get:()=>xi(e.value)}),n}function ma(e){const n=e.key.length===1,t=!e.ctrlKey&&!e.metaKey&&!e.altKey;return n&&t}const Ii=["top","bottom"],Qr=["start","end","left","right"];function ga(e,n){let[t,a]=e.split(" ");return a||(a=Vn(Ii,t)?"start":Vn(Qr,t)?"top":"center"),{side:gl(t,n),align:gl(a,n)}}function gl(e,n){return e==="start"?n?"right":"left":e==="end"?n?"left":"right":e}function ea(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function ta(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function hl(e){return{side:e.align,align:e.side}}function yl(e){return Vn(Ii,e.side)?"y":"x"}class kt{constructor(n){let{x:t,y:a,width:l,height:i}=n;this.x=t,this.y=a,this.width=l,this.height=i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function bl(e,n){return{x:{before:Math.max(0,n.left-e.left),after:Math.max(0,e.right-n.right)},y:{before:Math.max(0,n.top-e.top),after:Math.max(0,e.bottom-n.bottom)}}}function Li(e){return Array.isArray(e)?new kt({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function Oa(e){const n=e.getBoundingClientRect(),t=getComputedStyle(e),a=t.transform;if(a){let l,i,o,r,s;if(a.startsWith("matrix3d("))l=a.slice(9,-1).split(/, /),i=+l[0],o=+l[5],r=+l[12],s=+l[13];else if(a.startsWith("matrix("))l=a.slice(7,-1).split(/, /),i=+l[0],o=+l[3],r=+l[4],s=+l[5];else return new kt(n);const c=t.transformOrigin,d=n.x-r-(1-i)*parseFloat(c),m=n.y-s-(1-o)*parseFloat(c.slice(c.indexOf(" ")+1)),f=i?n.width/i:e.offsetWidth+1,v=o?n.height/o:e.offsetHeight+1;return new kt({x:d,y:m,width:f,height:v})}else return new kt(n)}function Ct(e,n,t){if(typeof e.animate>"u")return{finished:Promise.resolve()};let a;try{a=e.animate(n,t)}catch{return{finished:Promise.resolve()}}return typeof a.finished>"u"&&(a.finished=new Promise(l=>{a.onfinish=()=>{l(a)}})),a}const Sn=new WeakMap;function Jr(e,n){Object.keys(n).forEach(t=>{if(Fn(t)){const a=pi(t),l=Sn.get(e);if(n[t]==null)l==null||l.forEach(i=>{const[o,r]=i;o===a&&(e.removeEventListener(a,r),l.delete(i))});else if(!l||![...l].some(i=>i[0]===a&&i[1]===n[t])){e.addEventListener(a,n[t]);const i=l||new Set;i.add([a,n[t]]),Sn.has(e)||Sn.set(e,i)}}else n[t]==null?e.removeAttribute(t):e.setAttribute(t,n[t])})}function es(e,n){Object.keys(n).forEach(t=>{if(Fn(t)){const a=pi(t),l=Sn.get(e);l==null||l.forEach(i=>{const[o,r]=i;o===a&&(e.removeEventListener(a,r),l.delete(i))})}else e.removeAttribute(t)})}const _t=2.4,Sl=.2126729,Cl=.7151522,xl=.072175,ts=.55,ns=.58,as=.57,ls=.62,gn=.03,kl=1.45,is=5e-4,os=1.25,rs=1.25,wl=.078,Vl=12.82051282051282,hn=.06,pl=.001;function Pl(e,n){const t=(e.r/255)**_t,a=(e.g/255)**_t,l=(e.b/255)**_t,i=(n.r/255)**_t,o=(n.g/255)**_t,r=(n.b/255)**_t;let s=t*Sl+a*Cl+l*xl,c=i*Sl+o*Cl+r*xl;if(s<=gn&&(s+=(gn-s)**kl),c<=gn&&(c+=(gn-c)**kl),Math.abs(c-s)<is)return 0;let d;if(c>s){const m=(c**ts-s**ns)*os;d=m<pl?0:m<wl?m-m*Vl*hn:m-hn}else{const m=(c**ls-s**as)*rs;d=m>-pl?0:m>-wl?m-m*Vl*hn:m+hn}return d*100}function ss(e,n){n=Array.isArray(n)?n.slice(0,-1).map(t=>`'${t}'`).join(", ")+` or '${n.at(-1)}'`:`'${n}'`}const Pn=.20689655172413793,us=e=>e>Pn**3?Math.cbrt(e):e/(3*Pn**2)+4/29,cs=e=>e>Pn?e**3:3*Pn**2*(e-4/29);function Ai(e){const n=us,t=n(e[1]);return[116*t-16,500*(n(e[0]/.95047)-t),200*(t-n(e[2]/1.08883))]}function Ti(e){const n=cs,t=(e[0]+16)/116;return[n(t+e[1]/500)*.95047,n(t),n(t-e[2]/200)*1.08883]}const ds=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],fs=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,vs=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],ms=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function _i(e){const n=Array(3),t=fs,a=ds;for(let l=0;l<3;++l)n[l]=Math.round(Ae(t(a[l][0]*e[0]+a[l][1]*e[1]+a[l][2]*e[2]))*255);return{r:n[0],g:n[1],b:n[2]}}function $a(e){let{r:n,g:t,b:a}=e;const l=[0,0,0],i=ms,o=vs;n=i(n/255),t=i(t/255),a=i(a/255);for(let r=0;r<3;++r)l[r]=o[r][0]*n+o[r][1]*t+o[r][2]*a;return l}function ha(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function gs(e){return ha(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const Il=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,hs={rgb:(e,n,t,a)=>({r:e,g:n,b:t,a}),rgba:(e,n,t,a)=>({r:e,g:n,b:t,a}),hsl:(e,n,t,a)=>Ll({h:e,s:n,l:t,a}),hsla:(e,n,t,a)=>Ll({h:e,s:n,l:t,a}),hsv:(e,n,t,a)=>Xt({h:e,s:n,v:t,a}),hsva:(e,n,t,a)=>Xt({h:e,s:n,v:t,a})};function lt(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&Il.test(e)){const{groups:n}=e.match(Il),{fn:t,values:a}=n,l=a.split(/,\s*/).map(i=>i.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(t)?parseFloat(i)/100:parseFloat(i));return hs[t](...l)}else if(typeof e=="string"){let n=e.startsWith("#")?e.slice(1):e;return[3,4].includes(n.length)?n=n.split("").map(t=>t+t).join(""):[6,8].includes(n.length),bs(n)}else if(typeof e=="object"){if(Jn(e,["r","g","b"]))return e;if(Jn(e,["h","s","l"]))return Xt(Ei(e));if(Jn(e,["h","s","v"]))return Xt(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}
|
|
1
|
+
import{O as oe,a4 as Ir,a7 as Lr,E as It,c as b,F as De,t as Dn,a8 as Ia,D as Z,u as _e,C as Ar,r as W,a as ue,Q as Se,G as Tr,a9 as hi,$ as Nt,N as u,i as Mt,m as j,aa as La,X as wt,A as O,w as Q,a3 as yi,n as ke,a1 as Qe,e as we,Z as it,v as Je,B as Aa,o as Oe,z as Ta,J as ye,x as Ht,ab as _r,a2 as Er,T as Br,H as Mr,a6 as Dr,ac as bi,ad as Fr,ae as Or,K as $r,af as Si,W as kn,ag as Rr,p as ul,U as Nr}from"./@vue.DawUEI-_.0.0.31-alpha.3.js";function D(e,n){return t=>Object.keys(e).reduce((a,l)=>{const o=typeof e[l]=="object"&&e[l]!=null&&!Array.isArray(e[l])?e[l]:{type:e[l]};return t&&l in t?a[l]={...o,default:t[l]}:a[l]=o,n&&!a[l].source&&(a[l].source=n),a},{})}const ee=D({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component"),ce=typeof window<"u",_a=ce&&"IntersectionObserver"in window,Hr=ce&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function Ci(e,n,t){const a=n.length-1;if(a<0)return e===void 0?t:e;for(let l=0;l<a;l++){if(e==null)return t;e=e[n[l]]}return e==null||e[n[a]]===void 0?t:e[n[a]]}function vt(e,n){if(e===n)return!0;if(e instanceof Date&&n instanceof Date&&e.getTime()!==n.getTime()||e!==Object(e)||n!==Object(n))return!1;const t=Object.keys(e);return t.length!==Object.keys(n).length?!1:t.every(a=>vt(e[a],n[a]))}function Vt(e,n,t){return e==null||!n||typeof n!="string"?t:e[n]!==void 0?e[n]:(n=n.replace(/\[(\w+)\]/g,".$1"),n=n.replace(/^\./,""),Ci(e,n.split("."),t))}function Me(e,n,t){if(n===!0)return e===void 0?t:e;if(n==null||typeof n=="boolean")return t;if(e!==Object(e)){if(typeof n!="function")return t;const l=n(e,t);return typeof l>"u"?t:l}if(typeof n=="string")return Vt(e,n,t);if(Array.isArray(n))return Ci(e,n,t);if(typeof n!="function")return t;const a=n(e,t);return typeof a>"u"?t:a}function St(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(t,a)=>n+a)}function K(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${n}`:void 0}function Ea(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function cl(e){let n;return e!==null&&typeof e=="object"&&((n=Object.getPrototypeOf(e))===Object.prototype||n===null)}function xi(e){if(e&&"$el"in e){const n=e.$el;return(n==null?void 0:n.nodeType)===Node.TEXT_NODE?n.nextElementSibling:n}return e}const dl=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),da=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function ki(e){return Object.keys(e)}function Jn(e,n){return n.every(t=>e.hasOwnProperty(t))}function Ba(e,n){const t={},a=new Set(Object.keys(e));for(const l of n)a.has(l)&&(t[l]=e[l]);return t}function fa(e,n,t){const a=Object.create(null),l=Object.create(null);for(const i in e)n.some(o=>o instanceof RegExp?o.test(i):o===i)&&!(t!=null&&t.some(o=>o===i))?a[i]=e[i]:l[i]=e[i];return[a,l]}function ze(e,n){const t={...e};return n.forEach(a=>delete t[a]),t}function zr(e,n){const t={};return n.forEach(a=>t[a]=e[a]),t}const wi=/^on[^a-z]/,Fn=e=>wi.test(e),Wr=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],jr=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function Gr(e){return e.isComposing&&jr.includes(e.key)}function Ma(e){const[n,t]=fa(e,[wi]),a=ze(n,Wr),[l,i]=fa(t,["class","style","id",/^data-/]);return Object.assign(l,n),Object.assign(i,a),[l,i]}function pe(e){return e==null?[]:Array.isArray(e)?e:[e]}function Ur(e,n){let t=0;const a=function(){for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout(()=>e(...i),_e(n))};return a.clear=()=>{clearTimeout(t)},a.immediate=e,a}function Ae(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(n,Math.min(t,e))}function wn(e){const n=e.toString().trim();return n.includes(".")?n.length-n.indexOf(".")-1:0}function fl(e,n){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+t.repeat(Math.max(0,n-e.length))}function vl(e,n){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,n-e.length))+e}function Kr(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const t=[];let a=0;for(;a<e.length;)t.push(e.substr(a,n)),a+=n;return t}function Le(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;const a={};for(const l in e)a[l]=e[l];for(const l in n){const i=e[l],o=n[l];if(cl(i)&&cl(o)){a[l]=Le(i,o,t);continue}if(t&&Array.isArray(i)&&Array.isArray(o)){a[l]=t(i,o);continue}a[l]=o}return a}function Vi(e){return e.map(n=>n.type===oe?Vi(n.children):n).flat()}function xt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(xt.cache.has(e))return xt.cache.get(e);const n=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return xt.cache.set(e,n),n}xt.cache=new Map;function Yt(e,n){if(!n||typeof n!="object")return[];if(Array.isArray(n))return n.map(t=>Yt(e,t)).flat(1);if(n.suspense)return Yt(e,n.ssContent);if(Array.isArray(n.children))return n.children.map(t=>Yt(e,t)).flat(1);if(n.component){if(Object.getOwnPropertySymbols(n.component.provides).includes(e))return[n.component];if(n.component.subTree)return Yt(e,n.component.subTree).flat(1)}return[]}function Da(e){const n=It({}),t=b(e);return De(()=>{for(const a in t.value)n[a]=t.value[a]},{flush:"sync"}),Dn(n)}function Vn(e,n){return e.includes(n)}function pi(e){return e[2].toLowerCase()+e.slice(3)}const Pe=()=>[Function,Array];function ml(e,n){return n="on"+Ia(n),!!(e[n]||e[`${n}Once`]||e[`${n}Capture`]||e[`${n}OnceCapture`]||e[`${n}CaptureOnce`])}function Yr(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];if(Array.isArray(e))for(const l of e)l(...t);else typeof e=="function"&&e(...t)}function qt(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const t=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(a=>`${a}${n?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(t)]}function Pi(e,n,t){let a,l=e.indexOf(document.activeElement);const i=n==="next"?1:-1;do l+=i,a=e[l];while((!a||a.offsetParent==null||!((t==null?void 0:t(a))??!0))&&l<e.length&&l>=0);return a}function Zt(e,n){var a,l,i,o;const t=qt(e);if(!n)(e===document.activeElement||!e.contains(document.activeElement))&&((a=t[0])==null||a.focus());else if(n==="first")(l=t[0])==null||l.focus();else if(n==="last")(i=t.at(-1))==null||i.focus();else if(typeof n=="number")(o=t[n])==null||o.focus();else{const r=Pi(t,n);r?r.focus():Zt(e,n==="next"?"first":"last")}}function mn(e){return e==null||typeof e=="string"&&e.trim()===""}function Zr(){}function pn(e,n){if(!(ce&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${n})`)))return null;try{return!!e&&e.matches(n)}catch{return null}}function Fa(e){return e.some(n=>Ir(n)?n.type===Lr?!1:n.type!==oe||Fa(n.children):!0)?e:null}function qr(e,n){if(!ce||e===0)return n(),()=>{};const t=window.setTimeout(n,e);return()=>window.clearTimeout(t)}function Xr(e,n){const t=e.clientX,a=e.clientY,l=n.getBoundingClientRect(),i=l.left,o=l.top,r=l.right,s=l.bottom;return t>=i&&t<=r&&a>=o&&a<=s}function va(){const e=Z(),n=t=>{e.value=t};return Object.defineProperty(n,"value",{enumerable:!0,get:()=>e.value,set:t=>e.value=t}),Object.defineProperty(n,"el",{enumerable:!0,get:()=>xi(e.value)}),n}function ma(e){const n=e.key.length===1,t=!e.ctrlKey&&!e.metaKey&&!e.altKey;return n&&t}const Ii=["top","bottom"],Qr=["start","end","left","right"];function ga(e,n){let[t,a]=e.split(" ");return a||(a=Vn(Ii,t)?"start":Vn(Qr,t)?"top":"center"),{side:gl(t,n),align:gl(a,n)}}function gl(e,n){return e==="start"?n?"right":"left":e==="end"?n?"left":"right":e}function ea(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function ta(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function hl(e){return{side:e.align,align:e.side}}function yl(e){return Vn(Ii,e.side)?"y":"x"}class kt{constructor(n){let{x:t,y:a,width:l,height:i}=n;this.x=t,this.y=a,this.width=l,this.height=i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function bl(e,n){return{x:{before:Math.max(0,n.left-e.left),after:Math.max(0,e.right-n.right)},y:{before:Math.max(0,n.top-e.top),after:Math.max(0,e.bottom-n.bottom)}}}function Li(e){return Array.isArray(e)?new kt({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function Oa(e){const n=e.getBoundingClientRect(),t=getComputedStyle(e),a=t.transform;if(a){let l,i,o,r,s;if(a.startsWith("matrix3d("))l=a.slice(9,-1).split(/, /),i=+l[0],o=+l[5],r=+l[12],s=+l[13];else if(a.startsWith("matrix("))l=a.slice(7,-1).split(/, /),i=+l[0],o=+l[3],r=+l[4],s=+l[5];else return new kt(n);const c=t.transformOrigin,d=n.x-r-(1-i)*parseFloat(c),m=n.y-s-(1-o)*parseFloat(c.slice(c.indexOf(" ")+1)),f=i?n.width/i:e.offsetWidth+1,v=o?n.height/o:e.offsetHeight+1;return new kt({x:d,y:m,width:f,height:v})}else return new kt(n)}function Ct(e,n,t){if(typeof e.animate>"u")return{finished:Promise.resolve()};let a;try{a=e.animate(n,t)}catch{return{finished:Promise.resolve()}}return typeof a.finished>"u"&&(a.finished=new Promise(l=>{a.onfinish=()=>{l(a)}})),a}const Sn=new WeakMap;function Jr(e,n){Object.keys(n).forEach(t=>{if(Fn(t)){const a=pi(t),l=Sn.get(e);if(n[t]==null)l==null||l.forEach(i=>{const[o,r]=i;o===a&&(e.removeEventListener(a,r),l.delete(i))});else if(!l||![...l].some(i=>i[0]===a&&i[1]===n[t])){e.addEventListener(a,n[t]);const i=l||new Set;i.add([a,n[t]]),Sn.has(e)||Sn.set(e,i)}}else n[t]==null?e.removeAttribute(t):e.setAttribute(t,n[t])})}function es(e,n){Object.keys(n).forEach(t=>{if(Fn(t)){const a=pi(t),l=Sn.get(e);l==null||l.forEach(i=>{const[o,r]=i;o===a&&(e.removeEventListener(a,r),l.delete(i))})}else e.removeAttribute(t)})}const _t=2.4,Sl=.2126729,Cl=.7151522,xl=.072175,ts=.55,ns=.58,as=.57,ls=.62,gn=.03,kl=1.45,is=5e-4,os=1.25,rs=1.25,wl=.078,Vl=12.82051282051282,hn=.06,pl=.001;function Pl(e,n){const t=(e.r/255)**_t,a=(e.g/255)**_t,l=(e.b/255)**_t,i=(n.r/255)**_t,o=(n.g/255)**_t,r=(n.b/255)**_t;let s=t*Sl+a*Cl+l*xl,c=i*Sl+o*Cl+r*xl;if(s<=gn&&(s+=(gn-s)**kl),c<=gn&&(c+=(gn-c)**kl),Math.abs(c-s)<is)return 0;let d;if(c>s){const m=(c**ts-s**ns)*os;d=m<pl?0:m<wl?m-m*Vl*hn:m-hn}else{const m=(c**ls-s**as)*rs;d=m>-pl?0:m>-wl?m-m*Vl*hn:m+hn}return d*100}function ss(e,n){n=Array.isArray(n)?n.slice(0,-1).map(t=>`'${t}'`).join(", ")+` or '${n.at(-1)}'`:`'${n}'`}const Pn=.20689655172413793,us=e=>e>Pn**3?Math.cbrt(e):e/(3*Pn**2)+4/29,cs=e=>e>Pn?e**3:3*Pn**2*(e-4/29);function Ai(e){const n=us,t=n(e[1]);return[116*t-16,500*(n(e[0]/.95047)-t),200*(t-n(e[2]/1.08883))]}function Ti(e){const n=cs,t=(e[0]+16)/116;return[n(t+e[1]/500)*.95047,n(t),n(t-e[2]/200)*1.08883]}const ds=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],fs=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,vs=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],ms=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function _i(e){const n=Array(3),t=fs,a=ds;for(let l=0;l<3;++l)n[l]=Math.round(Ae(t(a[l][0]*e[0]+a[l][1]*e[1]+a[l][2]*e[2]))*255);return{r:n[0],g:n[1],b:n[2]}}function $a(e){let{r:n,g:t,b:a}=e;const l=[0,0,0],i=ms,o=vs;n=i(n/255),t=i(t/255),a=i(a/255);for(let r=0;r<3;++r)l[r]=o[r][0]*n+o[r][1]*t+o[r][2]*a;return l}function ha(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function gs(e){return ha(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const Il=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,hs={rgb:(e,n,t,a)=>({r:e,g:n,b:t,a}),rgba:(e,n,t,a)=>({r:e,g:n,b:t,a}),hsl:(e,n,t,a)=>Ll({h:e,s:n,l:t,a}),hsla:(e,n,t,a)=>Ll({h:e,s:n,l:t,a}),hsv:(e,n,t,a)=>Xt({h:e,s:n,v:t,a}),hsva:(e,n,t,a)=>Xt({h:e,s:n,v:t,a})};function lt(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&Il.test(e)){const{groups:n}=e.match(Il),{fn:t,values:a}=n,l=a.split(/,\s*/).map(i=>i.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(t)?parseFloat(i)/100:parseFloat(i));return hs[t](...l)}else if(typeof e=="string"){let n=e.startsWith("#")?e.slice(1):e;return[3,4].includes(n.length)?n=n.split("").map(t=>t+t).join(""):[6,8].includes(n.length),bs(n)}else if(typeof e=="object"){if(Jn(e,["r","g","b"]))return e;if(Jn(e,["h","s","l"]))return Xt(Ei(e));if(Jn(e,["h","s","v"]))return Xt(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}
|
|
2
2
|
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function Xt(e){const{h:n,s:t,v:a,a:l}=e,i=r=>{const s=(r+n/60)%6;return a-a*t*Math.max(Math.min(s,4-s,1),0)},o=[i(5),i(3),i(1)].map(r=>Math.round(r*255));return{r:o[0],g:o[1],b:o[2],a:l}}function Ll(e){return Xt(Ei(e))}function Ei(e){const{h:n,s:t,l:a,a:l}=e,i=a+t*Math.min(a,1-a),o=i===0?0:2-2*a/i;return{h:n,s:o,v:i,a:l}}function yn(e){const n=Math.round(e).toString(16);return("00".substr(0,2-n.length)+n).toUpperCase()}function ys(e){let{r:n,g:t,b:a,a:l}=e;return`#${[yn(n),yn(t),yn(a),l!==void 0?yn(Math.round(l*255)):""].join("")}`}function bs(e){e=Ss(e);let[n,t,a,l]=Kr(e,2).map(i=>parseInt(i,16));return l=l===void 0?l:l/255,{r:n,g:t,b:a,a:l}}function Ss(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(n=>n+n).join("")),e.length!==6&&(e=fl(fl(e,6),8,"F")),e}function Cs(e,n){const t=Ai($a(e));return t[0]=t[0]+n*10,_i(Ti(t))}function xs(e,n){const t=Ai($a(e));return t[0]=t[0]-n*10,_i(Ti(t))}function ks(e){const n=lt(e);return $a(n)[1]}function Bi(e){const n=Math.abs(Pl(lt(0),lt(e)));return Math.abs(Pl(lt(16777215),lt(e)))>Math.min(n,50)?"#fff":"#000"}function Ce(e,n){const t=Ar();if(!t)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return t}function ot(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const n=Ce(e).type;return xt((n==null?void 0:n.aliasName)||(n==null?void 0:n.name))}let Mi=0,Cn=new WeakMap;function We(){const e=Ce("getUid");if(Cn.has(e))return Cn.get(e);{const n=Mi++;return Cn.set(e,n),n}}We.reset=()=>{Mi=0,Cn=new WeakMap};function ws(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ce("injectSelf");const{provides:t}=n;if(t&&e in t)return t[e]}const Dt=Symbol.for("vuetify:defaults");function Vs(e){return W(e)}function Ra(){const e=ue(Dt);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Xe(e,n){const t=Ra(),a=W(e),l=b(()=>{if(_e(n==null?void 0:n.disabled))return t.value;const o=_e(n==null?void 0:n.scoped),r=_e(n==null?void 0:n.reset),s=_e(n==null?void 0:n.root);if(a.value==null&&!(o||r||s))return t.value;let c=Le(a.value,{prev:t.value});if(o)return c;if(r||s){const d=Number(r||1/0);for(let m=0;m<=d&&!(!c||!("prev"in c));m++)c=c.prev;return c&&typeof s=="string"&&s in c&&(c=Le(Le(c,{prev:c}),c[s])),c}return c.prev?Le(c.prev,c):c});return Se(Dt,l),l}function ps(e,n){var t,a;return typeof((t=e.props)==null?void 0:t[n])<"u"||typeof((a=e.props)==null?void 0:a[xt(n)])<"u"}function Ps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ra();const a=Ce("useDefaults");if(n=n??a.type.name??a.type.__name,!n)throw new Error("[Vuetify] Could not determine component name");const l=b(()=>{var s;return(s=t.value)==null?void 0:s[e._as??n]}),i=new Proxy(e,{get(s,c){var m,f,v,h,g,y,S;const d=Reflect.get(s,c);return c==="class"||c==="style"?[(m=l.value)==null?void 0:m[c],d].filter(C=>C!=null):typeof c=="string"&&!ps(a.vnode,c)?((f=l.value)==null?void 0:f[c])!==void 0?(v=l.value)==null?void 0:v[c]:((g=(h=t.value)==null?void 0:h.global)==null?void 0:g[c])!==void 0?(S=(y=t.value)==null?void 0:y.global)==null?void 0:S[c]:d:d}}),o=Z();De(()=>{if(l.value){const s=Object.entries(l.value).filter(c=>{let[d]=c;return d.startsWith(d[0].toUpperCase())});o.value=s.length?Object.fromEntries(s):void 0}else o.value=void 0});function r(){const s=ws(Dt,a);Se(Dt,b(()=>o.value?Le((s==null?void 0:s.value)??{},o.value):s==null?void 0:s.value))}return{props:i,provideSubDefaults:r}}function zt(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=D(e.props??{},e.name)();const n=Object.keys(e.props).filter(t=>t!=="class"&&t!=="style");e.filterProps=function(a){return Ba(a,n)},e.props._as=String,e.setup=function(a,l){const i=Ra();if(!i.value)return e._setup(a,l);const{props:o,provideSubDefaults:r}=Ps(a,a._as??e.name,i),s=e._setup(o,l);return r(),s}}return e}function H(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n=>(e?zt:Tr)(n)}function Is(e,n){return n.props=e,n}function Na(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",t=arguments.length>2?arguments[2]:void 0;return H()({name:t??Ia(hi(e.replace(/__/g,"-"))),props:{tag:{type:String,default:n},...ee()},setup(a,l){let{slots:i}=l;return()=>{var o;return Nt(a.tag,{class:[e,a.class],style:a.style},(o=i.default)==null?void 0:o.call(i))}}})}function Di(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const n=e.getRootNode();return n!==document&&n.getRootNode({composed:!0})!==document?null:n}const Qt="cubic-bezier(0.4, 0, 0.2, 1)",Ls="cubic-bezier(0.0, 0, 0.2, 1)",As="cubic-bezier(0.4, 0, 1, 1)";function Al(e,n,t){return Object.keys(e).filter(a=>Fn(a)&&a.endsWith(n)).reduce((a,l)=>(a[l.slice(0,-n.length)]=i=>e[l](i,t(i)),a),{})}function Fi(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(n?Ts(e):Ha(e))return e;e=e.parentElement}return document.scrollingElement}function In(e,n){const t=[];if(n&&e&&!n.contains(e))return t;for(;e&&(Ha(e)&&t.push(e),e!==n);)e=e.parentElement;return t}function Ha(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const n=window.getComputedStyle(e);return n.overflowY==="scroll"||n.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function Ts(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const n=window.getComputedStyle(e);return["scroll","auto"].includes(n.overflowY)}function _s(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function G(e){const n=Ce("useRender");n.render=e}const et=D({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function tt(e){return{dimensionStyles:b(()=>{const t={},a=K(e.height),l=K(e.maxHeight),i=K(e.maxWidth),o=K(e.minHeight),r=K(e.minWidth),s=K(e.width);return a!=null&&(t.height=a),l!=null&&(t.maxHeight=l),i!=null&&(t.maxWidth=i),o!=null&&(t.minHeight=o),r!=null&&(t.minWidth=r),s!=null&&(t.width=s),t})}}function Es(e){return{aspectStyles:b(()=>{const n=Number(e.aspectRatio);return n?{paddingBottom:String(1/n*100)+"%"}:void 0})}}const Oi=D({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...ee(),...et()},"VResponsive"),Tl=H()({name:"VResponsive",props:Oi(),setup(e,n){let{slots:t}=n;const{aspectStyles:a}=Es(e),{dimensionStyles:l}=tt(e);return G(()=>{var i;return u("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[l.value,e.style]},[u("div",{class:"v-responsive__sizer",style:a.value},null),(i=t.additional)==null?void 0:i.call(t),t.default&&u("div",{class:["v-responsive__content",e.contentClass]},[t.default()])])}),{}}});function za(e){return Da(()=>{const n=[],t={};if(e.value.background)if(ha(e.value.background)){if(t.backgroundColor=e.value.background,!e.value.text&&gs(e.value.background)){const a=lt(e.value.background);if(a.a==null||a.a===1){const l=Bi(a);t.color=l,t.caretColor=l}}}else n.push(`bg-${e.value.background}`);return e.value.text&&(ha(e.value.text)?(t.color=e.value.text,t.caretColor=e.value.text):n.push(`text-${e.value.text}`)),{colorClasses:n,colorStyles:t}})}function Fe(e,n){const t=b(()=>({text:Mt(e)?e.value:n?e[n]:null})),{colorClasses:a,colorStyles:l}=za(t);return{textColorClasses:a,textColorStyles:l}}function Te(e,n){const t=b(()=>({background:Mt(e)?e.value:n?e[n]:null})),{colorClasses:a,colorStyles:l}=za(t);return{backgroundColorClasses:a,backgroundColorStyles:l}}const Ee=D({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function $e(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ot();return{roundedClasses:b(()=>{const a=Mt(e)?e.value:e.rounded,l=Mt(e)?e.value:e.tile,i=[];if(a===!0||a==="")i.push(`${n}--rounded`);else if(typeof a=="string"||a===0)for(const o of String(a).split(" "))i.push(`rounded-${o}`);else(l||a===!1)&&i.push("rounded-0");return i})}}const mt=D({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Ze=(e,n)=>{let{slots:t}=n;const{transition:a,disabled:l,group:i,...o}=e,{component:r=i?La:wt,...s}=typeof a=="object"?a:{};return Nt(r,j(typeof a=="string"?{name:l?"":a}:s,typeof a=="string"?{}:Object.fromEntries(Object.entries({disabled:l,group:i}).filter(c=>{let[d,m]=c;return m!==void 0})),o),t)};function Bs(e,n){if(!_a)return;const t=n.modifiers||{},a=n.value,{handler:l,options:i}=typeof a=="object"?a:{handler:a,options:{}},o=new IntersectionObserver(function(){var m;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;const c=(m=e._observe)==null?void 0:m[n.instance.$.uid];if(!c)return;const d=r.some(f=>f.isIntersecting);l&&(!t.quiet||c.init)&&(!t.once||d||c.init)&&l(d,r,s),d&&t.once?$i(e,n):c.init=!0},i);e._observe=Object(e._observe),e._observe[n.instance.$.uid]={init:!1,observer:o},o.observe(e)}function $i(e,n){var a;const t=(a=e._observe)==null?void 0:a[n.instance.$.uid];t&&(t.observer.unobserve(e),delete e._observe[n.instance.$.uid])}const Ri={mounted:Bs,unmounted:$i},Ms=D({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...Oi(),...ee(),...Ee(),...mt()},"VImg"),Ni=H()({name:"VImg",directives:{intersect:Ri},props:Ms(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,n){let{emit:t,slots:a}=n;const{backgroundColorClasses:l,backgroundColorStyles:i}=Te(O(e,"color")),{roundedClasses:o}=$e(e),r=Ce("VImg"),s=Z(""),c=W(),d=Z(e.eager?"loading":"idle"),m=Z(),f=Z(),v=b(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),h=b(()=>v.value.aspect||m.value/f.value||0);Q(()=>e.src,()=>{g(d.value!=="idle")}),Q(h,(w,M)=>{!w&&M&&c.value&&P(c.value)}),yi(()=>g());function g(w){if(!(e.eager&&w)&&!(_a&&!w&&!e.eager)){if(d.value="loading",v.value.lazySrc){const M=new Image;M.src=v.value.lazySrc,P(M,null)}v.value.src&&ke(()=>{var M;t("loadstart",((M=c.value)==null?void 0:M.currentSrc)||v.value.src),setTimeout(()=>{var $;if(!r.isUnmounted)if(($=c.value)!=null&&$.complete){if(c.value.naturalWidth||S(),d.value==="error")return;h.value||P(c.value,null),d.value==="loading"&&y()}else h.value||P(c.value),C()})})}}function y(){var w;r.isUnmounted||(C(),P(c.value),d.value="loaded",t("load",((w=c.value)==null?void 0:w.currentSrc)||v.value.src))}function S(){var w;r.isUnmounted||(d.value="error",t("error",((w=c.value)==null?void 0:w.currentSrc)||v.value.src))}function C(){const w=c.value;w&&(s.value=w.currentSrc||w.src)}let T=-1;Qe(()=>{clearTimeout(T)});function P(w){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const $=()=>{if(clearTimeout(T),r.isUnmounted)return;const{naturalHeight:R,naturalWidth:U}=w;R||U?(m.value=U,f.value=R):!w.complete&&d.value==="loading"&&M!=null?T=window.setTimeout($,M):(w.currentSrc.endsWith(".svg")||w.currentSrc.startsWith("data:image/svg+xml"))&&(m.value=1,f.value=1)};$()}const p=b(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),V=()=>{var $;if(!v.value.src||d.value==="idle")return null;const w=u("img",{class:["v-img__img",p.value],style:{objectPosition:e.position},src:v.value.src,srcset:v.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:c,onLoad:y,onError:S},null),M=($=a.sources)==null?void 0:$.call(a);return u(Ze,{transition:e.transition,appear:!0},{default:()=>[we(M?u("picture",{class:"v-img__picture"},[M,w]):w,[[Je,d.value==="loaded"]])]})},_=()=>u(Ze,{transition:e.transition},{default:()=>[v.value.lazySrc&&d.value!=="loaded"&&u("img",{class:["v-img__img","v-img__img--preload",p.value],style:{objectPosition:e.position},src:v.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),x=()=>a.placeholder?u(Ze,{transition:e.transition,appear:!0},{default:()=>[(d.value==="loading"||d.value==="error"&&!a.error)&&u("div",{class:"v-img__placeholder"},[a.placeholder()])]}):null,k=()=>a.error?u(Ze,{transition:e.transition,appear:!0},{default:()=>[d.value==="error"&&u("div",{class:"v-img__error"},[a.error()])]}):null,L=()=>e.gradient?u("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,I=Z(!1);{const w=Q(h,M=>{M&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{I.value=!0})}),w())})}return G(()=>{const w=Tl.filterProps(e);return we(u(Tl,j({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!I.value},l.value,o.value,e.class],style:[{width:K(e.width==="auto"?m.value:e.width)},i.value,e.style]},w,{aspectRatio:h.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>u(oe,null,[u(V,null,null),u(_,null,null),u(L,null,null),u(x,null,null),u(k,null,null)]),default:a.default}),[[it("intersect"),{handler:g,options:e.options},null,{once:!0}]])}),{currentSrc:s,image:c,state:d,naturalWidth:m,naturalHeight:f}}});function Hi(e,n){const t=W(),a=Z(!1);if(_a){const l=new IntersectionObserver(i=>{a.value=!!i.find(o=>o.isIntersecting)},n);Qe(()=>{l.disconnect()}),Q(t,(i,o)=>{o&&(l.unobserve(o),a.value=!1),i&&l.observe(i)},{flush:"post"})}return{intersectionRef:t,isIntersecting:a}}function pt(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const t=va(),a=W();if(ce){const l=new ResizeObserver(i=>{e==null||e(i,l),i.length&&(n==="content"?a.value=i[0].contentRect:a.value=i[0].target.getBoundingClientRect())});Qe(()=>{l.disconnect()}),Q(()=>t.el,(i,o)=>{o&&(l.unobserve(o),a.value=void 0),i&&l.observe(i)},{flush:"post"})}return{resizeRef:t,contentRect:Aa(a)}}const Ds=["x-small","small","default","large","x-large"],Wt=D({size:{type:[String,Number],default:"default"}},"size");function on(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ot();return Da(()=>{let t,a;return Vn(Ds,e.size)?t=`${n}--size-${e.size}`:e.size&&(a={width:K(e.size),height:K(e.size)}),{sizeClasses:t,sizeStyles:a}})}const ge=D({tag:{type:String,default:"div"}},"tag"),Jt=Symbol.for("vuetify:theme"),be=D({theme:String},"theme");function _l(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function Fs(){var a,l;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_l();const n=_l();if(!e)return{...n,isDisabled:!0};const t={};for(const[i,o]of Object.entries(e.themes??{})){const r=o.dark||i==="dark"?(a=n.themes)==null?void 0:a.dark:(l=n.themes)==null?void 0:l.light;t[i]=Le(r,o)}return Le(n,{...e,themes:t})}function Os(e){const n=Fs(e),t=W(n.defaultTheme),a=W(n.themes),l=b(()=>{const d={};for(const[m,f]of Object.entries(a.value)){const v=d[m]={...f,colors:{...f.colors}};if(n.variations)for(const h of n.variations.colors){const g=v.colors[h];if(g)for(const y of["lighten","darken"]){const S=y==="lighten"?Cs:xs;for(const C of St(n.variations[y],1))v.colors[`${h}-${y}-${C}`]=ys(S(lt(g),C))}}for(const h of Object.keys(v.colors)){if(/^on-[a-z]/.test(h)||v.colors[`on-${h}`])continue;const g=`on-${h}`,y=lt(v.colors[h]);v.colors[g]=Bi(y)}}return d}),i=b(()=>l.value[t.value]),o=b(()=>{var h;const d=[];(h=i.value)!=null&&h.dark&&bt(d,":root",["color-scheme: dark"]),bt(d,":root",El(i.value));for(const[g,y]of Object.entries(l.value))bt(d,`.v-theme--${g}`,[`color-scheme: ${y.dark?"dark":"normal"}`,...El(y)]);const m=[],f=[],v=new Set(Object.values(l.value).flatMap(g=>Object.keys(g.colors)));for(const g of v)/^on-[a-z]/.test(g)?bt(f,`.${g}`,[`color: rgb(var(--v-theme-${g})) !important`]):(bt(m,`.bg-${g}`,[`--v-theme-overlay-multiplier: var(--v-theme-${g}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${g})) !important`,`color: rgb(var(--v-theme-on-${g})) !important`]),bt(f,`.text-${g}`,[`color: rgb(var(--v-theme-${g})) !important`]),bt(f,`.border-${g}`,[`--v-border-color: var(--v-theme-${g})`]));return d.push(...m,...f),d.map((g,y)=>y===0?g:` ${g}`).join("")});function r(){return{style:[{children:o.value,id:"vuetify-theme-stylesheet",nonce:n.cspNonce||!1}]}}function s(d){if(n.isDisabled)return;const m=d._context.provides.usehead;if(m)if(m.push){const f=m.push(r);ce&&Q(o,()=>{f.patch(r)})}else ce?(m.addHeadObjs(b(r)),De(()=>m.updateDOM())):m.addHeadObjs(r());else{let v=function(){if(typeof document<"u"&&!f){const h=document.createElement("style");h.type="text/css",h.id="vuetify-theme-stylesheet",n.cspNonce&&h.setAttribute("nonce",n.cspNonce),f=h,document.head.appendChild(f)}f&&(f.innerHTML=o.value)},f=ce?document.getElementById("vuetify-theme-stylesheet"):null;ce?Q(o,v,{immediate:!0}):v()}}const c=b(()=>n.isDisabled?void 0:`v-theme--${t.value}`);return{install:s,isDisabled:n.isDisabled,name:t,themes:a,current:i,computedThemes:l,themeClasses:c,styles:o,global:{name:t,current:i}}}function Ve(e){Ce("provideTheme");const n=ue(Jt,null);if(!n)throw new Error("Could not find Vuetify theme injection");const t=b(()=>e.theme??n.name.value),a=b(()=>n.themes.value[t.value]),l=b(()=>n.isDisabled?void 0:`v-theme--${t.value}`),i={...n,name:t,current:a,themeClasses:l};return Se(Jt,i),i}function $s(){Ce("useTheme");const e=ue(Jt,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function bt(e,n,t){e.push(`${n} {
|
|
3
3
|
`,...t.map(a=>` ${a};
|
|
4
4
|
`),`}
|
package/dist/server/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "camera.ui3",
|
|
3
|
-
"version": "0.0.31-alpha.
|
|
3
|
+
"version": "0.0.31-alpha.3",
|
|
4
4
|
"description": "camera.ui",
|
|
5
5
|
"author": "seydx (https://github.com/seydx/camera.ui)",
|
|
6
6
|
"bin": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@camera.ui/common": "^0.0.15",
|
|
33
33
|
"@camera.ui/go2rtc": "^0.0.23",
|
|
34
34
|
"@camera.ui/nats": "^0.0.12",
|
|
35
|
-
"@camera.ui/plugineer": "^0.0.
|
|
35
|
+
"@camera.ui/plugineer": "^0.0.12",
|
|
36
36
|
"@camera.ui/types": "^0.0.71",
|
|
37
37
|
"@fastify/cors": "^9.0.1",
|
|
38
38
|
"@fastify/formbody": "^7.4.0",
|
|
@@ -157,12 +157,12 @@ export class Database {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
async ensureAdmin() {
|
|
160
|
-
|
|
160
|
+
let users = this.usersDB.get('users') || [];
|
|
161
161
|
const adminId = await this.getRootAdminId();
|
|
162
162
|
const admin = users.find((user) => user._id === adminId);
|
|
163
163
|
if (!adminId || !admin) {
|
|
164
164
|
this.logger.attention('No root admin found! Creating new root admin...');
|
|
165
|
-
|
|
165
|
+
users = users.filter((user) => !user.root);
|
|
166
166
|
const rootAdmin = await this.initializeRootAdmin();
|
|
167
167
|
users.push(rootAdmin);
|
|
168
168
|
await this.usersDB.put('users', users);
|
|
@@ -173,11 +173,6 @@ export class Database {
|
|
|
173
173
|
await this.saveRootAdminSecret(admin._id);
|
|
174
174
|
return admin;
|
|
175
175
|
}
|
|
176
|
-
async removeOldRootAdmin() {
|
|
177
|
-
let users = this.usersDB.get('users') || [];
|
|
178
|
-
users = users.filter((user) => user.root !== true);
|
|
179
|
-
await this.usersDB.put('users', users);
|
|
180
|
-
}
|
|
181
176
|
generateAdmin() {
|
|
182
177
|
const salt = randomBytes(16).toString('base64');
|
|
183
178
|
const hash = createHmac('sha512', salt).update('admin').digest('base64');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/database/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC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mBAAmB,CAAC,EAAE,CAAC;wBAClE,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,mBAAmB,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;wBACpF,6EAA6E;wBAC7E,uHAAuH;wBACvH,KAAK;oBACP,CAAC;oBAED,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAC;wBACnE,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,oBAAoB,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;wBACtF,8EAA8E;wBAC9E,wHAAwH;wBACxH,KAAK;oBACP,CAAC;oBAED,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAC;wBACnE,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,oBAAoB,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;wBACtF,8EAA8E;wBAC9E,wHAAwH;wBACxH,KAAK;oBACP,CAAC;gBACH,CAAC;YACH,CAAC;YAED,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,CAAC;QACvC,CAAC;QAED,MAAM,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAE7C,wEAAwE;QACxE,IAAI,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;IAC7C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "camera.ui3",
|
|
3
|
-
"version": "0.0.31-alpha.
|
|
3
|
+
"version": "0.0.31-alpha.3",
|
|
4
4
|
"description": "camera.ui",
|
|
5
5
|
"author": "seydx (https://github.com/seydx/camera.ui)",
|
|
6
6
|
"bin": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@camera.ui/common": "^0.0.15",
|
|
33
33
|
"@camera.ui/go2rtc": "^0.0.23",
|
|
34
34
|
"@camera.ui/nats": "^0.0.12",
|
|
35
|
-
"@camera.ui/plugineer": "^0.0.
|
|
35
|
+
"@camera.ui/plugineer": "^0.0.12",
|
|
36
36
|
"@camera.ui/types": "^0.0.71",
|
|
37
37
|
"@fastify/cors": "^9.0.1",
|
|
38
38
|
"@fastify/formbody": "^7.4.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as r}from"./main.0dhw2k10.0.0.31-alpha.2.js";import{d as o,b as t}from"./@vue.DawUEI-_.0.0.31-alpha.2.js";import"./vue3-toastify.B3S_WDRN.0.0.31-alpha.2.js";import"./vue-i18n.DFXDQN1x.0.0.31-alpha.2.js";import"./@intlify.D-zKcAzQ.0.0.31-alpha.2.js";import"./axios.C-n2IhIP.0.0.31-alpha.2.js";import"./@tanstack.x_Q3Nj6h.0.0.31-alpha.2.js";import"./@camera.ui.DiVLAlWa.0.0.31-alpha.2.js";import"./pinia.DpM2zEj0.0.0.31-alpha.2.js";import"./vue-router.Dwlkeoka.0.0.31-alpha.2.js";import"./@vueuse.3bba2al7.0.0.31-alpha.2.js";import"./nprogress.IiPMBi2X.0.0.31-alpha.2.js";import"./@xterm.ByN7UyPo.0.0.31-alpha.2.js";import"./vuetify.DSpravLa.0.0.31-alpha.2.js";import"./@mdi.DVdKciOk.0.0.31-alpha.2.js";import"./vee-validate.DHH7oAn8.0.0.31-alpha.2.js";import"./@vee-validate.z9o4QOgP.0.0.31-alpha.2.js";import"./zod.DnW1_kUe.0.0.31-alpha.2.js";import"./uuid.DvF23Exx.0.0.31-alpha.2.js";import"./socket.io-client.B54E9c8s.0.0.31-alpha.2.js";import"./engine.io-client.DEhtuV4o.0.0.31-alpha.2.js";import"./engine.io-parser.BiEtp6m2.0.0.31-alpha.2.js";import"./@socket.io.Dkula2eQ.0.0.31-alpha.2.js";import"./socket.io-parser.DU0H2ONq.0.0.31-alpha.2.js";import"./rxjs.BlXFYoWE.0.0.31-alpha.2.js";import"./tslib.9k7AwCpt.0.0.31-alpha.2.js";import"./vue-inline-svg.B5DFkaVE.0.0.31-alpha.2.js";import"./v-calendar.8nad-306.0.0.31-alpha.2.js";import"./@popperjs.BQBsAJpH.0.0.31-alpha.2.js";const i={};function m(p,e){return t(),o("div",null,"Test")}const H=r(i,[["render",m]]);export{H as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as p}from"./main.0dhw2k10.0.0.31-alpha.2.js";import{G as m,b as s,d as a,f as r,U as l,g as i,u as e}from"./@vue.DawUEI-_.0.0.31-alpha.2.js";import"./vue3-toastify.B3S_WDRN.0.0.31-alpha.2.js";import"./vue-i18n.DFXDQN1x.0.0.31-alpha.2.js";import"./@intlify.D-zKcAzQ.0.0.31-alpha.2.js";import"./axios.C-n2IhIP.0.0.31-alpha.2.js";import"./@tanstack.x_Q3Nj6h.0.0.31-alpha.2.js";import"./@camera.ui.DiVLAlWa.0.0.31-alpha.2.js";import"./pinia.DpM2zEj0.0.0.31-alpha.2.js";import"./vue-router.Dwlkeoka.0.0.31-alpha.2.js";import"./@vueuse.3bba2al7.0.0.31-alpha.2.js";import"./nprogress.IiPMBi2X.0.0.31-alpha.2.js";import"./@xterm.ByN7UyPo.0.0.31-alpha.2.js";import"./vuetify.DSpravLa.0.0.31-alpha.2.js";import"./@mdi.DVdKciOk.0.0.31-alpha.2.js";import"./vee-validate.DHH7oAn8.0.0.31-alpha.2.js";import"./@vee-validate.z9o4QOgP.0.0.31-alpha.2.js";import"./zod.DnW1_kUe.0.0.31-alpha.2.js";import"./uuid.DvF23Exx.0.0.31-alpha.2.js";import"./socket.io-client.B54E9c8s.0.0.31-alpha.2.js";import"./engine.io-client.DEhtuV4o.0.0.31-alpha.2.js";import"./engine.io-parser.BiEtp6m2.0.0.31-alpha.2.js";import"./@socket.io.Dkula2eQ.0.0.31-alpha.2.js";import"./socket.io-parser.DU0H2ONq.0.0.31-alpha.2.js";import"./rxjs.BlXFYoWE.0.0.31-alpha.2.js";import"./tslib.9k7AwCpt.0.0.31-alpha.2.js";import"./vue-inline-svg.B5DFkaVE.0.0.31-alpha.2.js";import"./v-calendar.8nad-306.0.0.31-alpha.2.js";import"./@popperjs.BQBsAJpH.0.0.31-alpha.2.js";const n={class:"page-title"},H=m({__name:"Recordings",setup(c){const{smallMobileActive:t}=p();return(o,f)=>(s(),a("main",{class:i(["w-full h-full",{"px-0":e(t)}])},[r("div",{class:i(["flex w-full items-center",{"px-2":e(t)}]),style:{height:"30px"}},[r("h1",n,l(o.$t(`views.${String(o.$route.name).toLowerCase()}.title`)),1)],2)],2))}});export{H as default};
|