@camera.ui/server 0.0.22-alpha.4 → 0.0.22
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.8cxg4Ezh.0.0.22.js +1 -0
- package/dist/interface/{@vee-validate.B9vZN9hh.0.0.22-alpha.4.js → @vee-validate.3TlXyEFu.0.0.22.js} +1 -1
- package/dist/interface/{@vue.Bp1OB7S5.0.0.22-alpha.4.js → @vue.t4_VplGD.0.0.22.js} +1 -1
- package/dist/interface/@vueform.CZhC3oEa.0.0.22.js +1 -0
- package/dist/interface/@vueuse.CFu-xP_f.0.0.22.js +1 -0
- package/dist/interface/Account.BIGbAogS.0.0.22.js +1 -0
- package/dist/interface/{Adminpanel.CDa6Gjs7.0.0.22-alpha.4.js → Adminpanel.mqmvuWc8.0.0.22.js} +2 -2
- package/dist/interface/Appearance.DyeM600T.0.0.22.js +1 -0
- package/dist/interface/Backup.BhjSv5wD.0.0.22.js +1 -0
- package/dist/interface/Camera.CNJFGi4U.0.0.22.js +1 -0
- package/dist/interface/Cameras.CRxSguXW.0.0.22.js +1 -0
- package/dist/interface/Camview.VeQzjhHr.0.0.22.js +1 -0
- package/dist/interface/{Config.CeoZuQ_l.0.0.22-alpha.4.js → Config.DUD56nCd.0.0.22.js} +1 -1
- package/dist/interface/Console.D52fM1CC.0.0.22.js +4 -0
- package/dist/interface/FirstSteps.Ca4JzlBc.0.0.22.js +1 -0
- package/dist/interface/{NewCamera.CaL-AYqb.0.0.22-alpha.4.js → NewCamera.BWkB2Y9R.0.0.22.js} +1 -1
- package/dist/interface/Plugin.Dvrh1bJl.0.0.22.js +1 -0
- package/dist/interface/Plugins.CJNXUjzK.0.0.22.js +1 -0
- package/dist/interface/Recordings.BPFDb5vm.0.0.22.js +1 -0
- package/dist/interface/Recordings.MLo0vlLv.0.0.22.js +1 -0
- package/dist/interface/Settings.BRp06NjE.0.0.22.js +1 -0
- package/dist/interface/{System.Bl2VatMS.0.0.22-alpha.4.js → System.CEEx7cFR.0.0.22.js} +1 -1
- package/dist/interface/User.OABPUVE6.0.0.22.js +1 -0
- package/dist/interface/VConfigEditor.vue_vue_type_script_setup_true_lang.Dy1qRiPz.0.0.22.js +2 -0
- package/dist/interface/VConsole.Ba3OxY3l.0.0.22.js +1 -0
- package/dist/interface/{VPlayer.DGqQiqy4.0.0.22-alpha.4.js → VPlayer.C1BK68ga.0.0.22.js} +1 -1
- package/dist/interface/{VPluginCard.DGbd842s.0.0.22-alpha.4.js → VPluginCard.CVRyfm1Z.0.0.22.js} +1 -1
- package/dist/interface/{ace-builds.NNjqr5wI.0.0.22-alpha.4.js → ace-builds.Bm84Xv__.0.0.22.js} +1 -1
- package/dist/interface/{apexcharts.PN5tVMje.0.0.22-alpha.4.js → apexcharts.MTzrv1-S.0.0.22.js} +1 -1
- package/dist/interface/dnd-core.DPXAI-g4.0.0.22.js +1 -0
- package/dist/interface/{draggabilly.Btflh0KQ.0.0.22-alpha.4.js → draggabilly.Cw0HFg_8.0.0.22.js} +1 -1
- package/dist/interface/engine.io-client.BoJFko-q.0.0.22.js +1 -0
- package/dist/interface/ev-emitter.Cf2cOTxF.0.0.22.js +1 -0
- package/dist/interface/fast-deep-equal.D58jhH7_.0.0.22.js +1 -0
- package/dist/interface/{highlight.js.8K562RzZ.0.0.22-alpha.4.js → highlight.js.BK86jnCE.0.0.22.js} +1 -1
- package/dist/interface/index.html +32 -32
- package/dist/interface/linkify-it.CFxoxvSF.0.0.22.js +1 -0
- package/dist/interface/{main.B0K-4JOd.0.0.22-alpha.4.js → main.BIn3WhzV.0.0.22.js} +3 -3
- package/dist/interface/{markdown-it.BsZYeeWx.0.0.22-alpha.4.js → markdown-it.CnnSbTcF.0.0.22.js} +1 -1
- package/dist/interface/{nprogress.B98qIj0x.0.0.22-alpha.4.js → nprogress.D4aOKZe9.0.0.22.js} +1 -1
- package/dist/interface/{pinia.DFj3JtXk.0.0.22-alpha.4.js → pinia.B8mjDN9a.0.0.22.js} +1 -1
- package/dist/interface/plugins.CicpSlvd.0.0.22.js +1 -0
- package/dist/interface/{qrcode.DkMP8cTq.0.0.22-alpha.4.js → qrcode.Bf1UECa1.0.0.22.js} +1 -1
- package/dist/interface/react-dnd-touch-backend.DWeMe503.0.0.22.js +1 -0
- package/dist/interface/{rxjs.B0H79Imk.0.0.22-alpha.4.js → rxjs.CKswiYOf.0.0.22.js} +1 -1
- package/dist/interface/socket.io-client.CBz3VW0u.0.0.22.js +1 -0
- package/dist/interface/socket.io-parser.RupEY681.0.0.22.js +1 -0
- package/dist/interface/sw.js +1 -1
- package/dist/interface/system.DQ4AQopa.0.0.22.js +1 -0
- package/dist/interface/{unidragger.CEgRqN1U.0.0.22-alpha.4.js → unidragger.qTOq9WzY.0.0.22.js} +1 -1
- package/dist/interface/{vee-validate.BPLWdsmG.0.0.22-alpha.4.js → vee-validate.z_-3UlgX.0.0.22.js} +1 -1
- package/dist/interface/{vue-i18n.Bbjcj2Gy.0.0.22-alpha.4.js → vue-i18n.Dc7ll2xg.0.0.22.js} +1 -1
- package/dist/interface/vue-inline-svg.DY9YMNws.0.0.22.js +1 -0
- package/dist/interface/{vue-router.DUnEf2pS.0.0.22-alpha.4.js → vue-router.C_7LowQ-.0.0.22.js} +1 -1
- package/dist/interface/vue3-apexcharts.BW53mOpo.0.0.22.js +1 -0
- package/dist/interface/vue3-dnd.DuKLYQwF.0.0.22.js +1 -0
- package/dist/interface/vue3-toastify.DsXhlqNo.0.0.22.js +1 -0
- package/dist/interface/{vuetify.RJ3sTMIi.0.0.22-alpha.4.js → vuetify.C_t8Njlu.0.0.22.js} +1 -1
- package/dist/server/package.json +1 -1
- package/dist/server/src/api/controllers/system.controller.js +1 -1
- package/dist/server/src/api/controllers/system.controller.js.map +1 -1
- package/package.json +1 -1
- package/dist/interface/@tanstack.BZ6z_pXT.0.0.22-alpha.4.js +0 -1
- package/dist/interface/@vueform.CHroO266.0.0.22-alpha.4.js +0 -1
- package/dist/interface/@vueuse.VjnMnlmr.0.0.22-alpha.4.js +0 -1
- package/dist/interface/Account.zGlso8Cf.0.0.22-alpha.4.js +0 -1
- package/dist/interface/Appearance.BuYBfLNa.0.0.22-alpha.4.js +0 -1
- package/dist/interface/Backup.CzBPeJkx.0.0.22-alpha.4.js +0 -1
- package/dist/interface/Camera.CLSmCOQ3.0.0.22-alpha.4.js +0 -1
- package/dist/interface/Cameras.OXoa4hho.0.0.22-alpha.4.js +0 -1
- package/dist/interface/Camview.4QLGuRV3.0.0.22-alpha.4.js +0 -1
- package/dist/interface/Console.Be8XQzo3.0.0.22-alpha.4.js +0 -4
- package/dist/interface/FirstSteps.BlAKKY3U.0.0.22-alpha.4.js +0 -1
- package/dist/interface/Plugin.BZewtXXG.0.0.22-alpha.4.js +0 -1
- package/dist/interface/Plugins.gZyakiMD.0.0.22-alpha.4.js +0 -1
- package/dist/interface/Recordings.BE_CZwF0.0.0.22-alpha.4.js +0 -1
- package/dist/interface/Recordings.Bm6w_kuy.0.0.22-alpha.4.js +0 -1
- package/dist/interface/Settings.C8_zX5kF.0.0.22-alpha.4.js +0 -1
- package/dist/interface/User.DDPiy4D3.0.0.22-alpha.4.js +0 -1
- package/dist/interface/VConfigEditor.vue_vue_type_script_setup_true_lang.B7v_QaR7.0.0.22-alpha.4.js +0 -2
- package/dist/interface/VConsole.DV2h1LQB.0.0.22-alpha.4.js +0 -1
- package/dist/interface/dnd-core.BoWb_YxW.0.0.22-alpha.4.js +0 -1
- package/dist/interface/engine.io-client.D5CwtIl4.0.0.22-alpha.4.js +0 -1
- package/dist/interface/ev-emitter.DeBiggD4.0.0.22-alpha.4.js +0 -1
- package/dist/interface/fast-deep-equal.BeOGUGKZ.0.0.22-alpha.4.js +0 -1
- package/dist/interface/linkify-it.BXsA74R_.0.0.22-alpha.4.js +0 -1
- package/dist/interface/plugins.BcmR7QWO.0.0.22-alpha.4.js +0 -1
- package/dist/interface/react-dnd-touch-backend.BdTJjJqC.0.0.22-alpha.4.js +0 -1
- package/dist/interface/socket.io-client.DrXsuVXZ.0.0.22-alpha.4.js +0 -1
- package/dist/interface/socket.io-parser.CXIwZ5tn.0.0.22-alpha.4.js +0 -1
- package/dist/interface/system.D3UZ1Y0a.0.0.22-alpha.4.js +0 -1
- package/dist/interface/vue-inline-svg.D-huj11I.0.0.22-alpha.4.js +0 -1
- package/dist/interface/vue3-apexcharts.Bn98zlbc.0.0.22-alpha.4.js +0 -1
- package/dist/interface/vue3-dnd.DWqmChhd.0.0.22-alpha.4.js +0 -1
- package/dist/interface/vue3-toastify.By4kIIkm.0.0.22-alpha.4.js +0 -1
- /package/dist/interface/{@babel.l0sNRNKZ.0.0.22-alpha.4.js → @babel.l0sNRNKZ.0.0.22.js} +0 -0
- /package/dist/interface/{@intlify.DXtFJcML.0.0.22-alpha.4.js → @intlify.DXtFJcML.0.0.22.js} +0 -0
- /package/dist/interface/{@mdi.C1UTQKuc.0.0.22-alpha.4.js → @mdi.C1UTQKuc.0.0.22.js} +0 -0
- /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.22-alpha.4.js → @react-dnd.CcwRs9xb.0.0.22.js} +0 -0
- /package/dist/interface/{@socket.io.Dkula2eQ.0.0.22-alpha.4.js → @socket.io.Dkula2eQ.0.0.22.js} +0 -0
- /package/dist/interface/{@turf.l0sNRNKZ.0.0.22-alpha.4.js → @turf.l0sNRNKZ.0.0.22.js} +0 -0
- /package/dist/interface/{@xterm.C76QGakq.0.0.22-alpha.4.js → @xterm.CR-_keJo.0.0.22.js} +0 -0
- /package/dist/interface/assets/{@vueform.0.0.22-alpha.4.CroAHJs8.css → @vueform.0.0.22.CroAHJs8.css} +0 -0
- /package/dist/interface/assets/{@xterm.0.0.22-alpha.4.CFbL2ovg.css → @xterm.0.0.22.CFbL2ovg.css} +0 -0
- /package/dist/interface/assets/{Account.0.0.22-alpha.4.J7oAjogS.css → Account.0.0.22.J7oAjogS.css} +0 -0
- /package/dist/interface/assets/{Adminpanel.0.0.22-alpha.4.a3t1v3MB.css → Adminpanel.0.0.22.a3t1v3MB.css} +0 -0
- /package/dist/interface/assets/{Backup.0.0.22-alpha.4.CX0rT0QJ.css → Backup.0.0.22.CX0rT0QJ.css} +0 -0
- /package/dist/interface/assets/{Camera.0.0.22-alpha.4.D1I-fW4q.css → Camera.0.0.22.D1I-fW4q.css} +0 -0
- /package/dist/interface/assets/{Cameras.0.0.22-alpha.4.Buf1Dgce.css → Cameras.0.0.22.Buf1Dgce.css} +0 -0
- /package/dist/interface/assets/{Camview.0.0.22-alpha.4.B7Cja2ry.css → Camview.0.0.22.B7Cja2ry.css} +0 -0
- /package/dist/interface/assets/{Config.0.0.22-alpha.4.DNGo2krN.css → Config.0.0.22.DNGo2krN.css} +0 -0
- /package/dist/interface/assets/{Console.0.0.22-alpha.4.Bh8l9QnM.css → Console.0.0.22.Bh8l9QnM.css} +0 -0
- /package/dist/interface/assets/{FirstSteps.0.0.22-alpha.4.sPEcItZ6.css → FirstSteps.0.0.22.sPEcItZ6.css} +0 -0
- /package/dist/interface/assets/{NewCamera.0.0.22-alpha.4.Cq8GzeJ7.css → NewCamera.0.0.22.Cq8GzeJ7.css} +0 -0
- /package/dist/interface/assets/{Plugin.0.0.22-alpha.4.DJbgaQc1.css → Plugin.0.0.22.DJbgaQc1.css} +0 -0
- /package/dist/interface/assets/{Plugins.0.0.22-alpha.4.DXSoO9M1.css → Plugins.0.0.22.DXSoO9M1.css} +0 -0
- /package/dist/interface/assets/{Settings.0.0.22-alpha.4.CVmui2kE.css → Settings.0.0.22.CVmui2kE.css} +0 -0
- /package/dist/interface/assets/{User.0.0.22-alpha.4.BiGtIFqt.css → User.0.0.22.BiGtIFqt.css} +0 -0
- /package/dist/interface/assets/{VConsole.0.0.22-alpha.4.BCqKHpmJ.css → VConsole.0.0.22.BCqKHpmJ.css} +0 -0
- /package/dist/interface/assets/{VPlayer.0.0.22-alpha.4.DNtDNhfg.css → VPlayer.0.0.22.DNtDNhfg.css} +0 -0
- /package/dist/interface/assets/{VPluginCard.0.0.22-alpha.4.C8Lj6X-J.css → VPluginCard.0.0.22.C8Lj6X-J.css} +0 -0
- /package/dist/interface/assets/{highlight.0.0.22-alpha.4.Ch2EwETz.css → highlight.0.0.22.Ch2EwETz.css} +0 -0
- /package/dist/interface/assets/{logo-256.0.0.22-alpha.4.BCQk9H1-.png → logo-256.0.0.22.BCQk9H1-.png} +0 -0
- /package/dist/interface/assets/{logo-512.0.0.22-alpha.4.DLKVOU2S.png → logo-512.0.0.22.DLKVOU2S.png} +0 -0
- /package/dist/interface/assets/{logo.0.0.22-alpha.4.DmEiRk0z.png → logo.0.0.22.DmEiRk0z.png} +0 -0
- /package/dist/interface/assets/{main.0.0.22-alpha.4.DNhh__S1.css → main.0.0.22.DNhh__S1.css} +0 -0
- /package/dist/interface/assets/{mode-json.0.0.22-alpha.4.Br7xisR1.js → mode-json.0.0.22.Br7xisR1.js} +0 -0
- /package/dist/interface/assets/{mode-yaml.0.0.22-alpha.4.CIYL8U3d.js → mode-yaml.0.0.22.CIYL8U3d.js} +0 -0
- /package/dist/interface/assets/{vue3-toastify.0.0.22-alpha.4.DHXAGmwn.css → vue3-toastify.0.0.22.DHXAGmwn.css} +0 -0
- /package/dist/interface/assets/{vuetify.0.0.22-alpha.4.CgGsw6iO.css → vuetify.0.0.22.CgGsw6iO.css} +0 -0
- /package/dist/interface/{axios.C-n2IhIP.0.0.22-alpha.4.js → axios.C-n2IhIP.0.0.22.js} +0 -0
- /package/dist/interface/{birpc.l0sNRNKZ.0.0.22-alpha.4.js → birpc.l0sNRNKZ.0.0.22.js} +0 -0
- /package/dist/interface/{compare-versions.DqEOhma6.0.0.22-alpha.4.js → compare-versions.DqEOhma6.0.0.22.js} +0 -0
- /package/dist/interface/{dijkstrajs.D_NXgYpA.0.0.22-alpha.4.js → dijkstrajs.D_NXgYpA.0.0.22.js} +0 -0
- /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.22-alpha.4.js → engine.io-parser.BiEtp6m2.0.0.22.js} +0 -0
- /package/dist/interface/{entities.C20TfXL6.0.0.22-alpha.4.js → entities.C20TfXL6.0.0.22.js} +0 -0
- /package/dist/interface/{get-size.D1dS-IaP.0.0.22-alpha.4.js → get-size.D1dS-IaP.0.0.22.js} +0 -0
- /package/dist/interface/{hookable.B8xFkYCm.0.0.22-alpha.4.js → hookable.B8xFkYCm.0.0.22.js} +0 -0
- /package/dist/interface/{mdurl.k9Sl0PQj.0.0.22-alpha.4.js → mdurl.k9Sl0PQj.0.0.22.js} +0 -0
- /package/dist/interface/{perfect-debounce.Cp2ysxOb.0.0.22-alpha.4.js → perfect-debounce.Cp2ysxOb.0.0.22.js} +0 -0
- /package/dist/interface/{point-in-polygon-hao.l0sNRNKZ.0.0.22-alpha.4.js → point-in-polygon-hao.l0sNRNKZ.0.0.22.js} +0 -0
- /package/dist/interface/{punycode.js.Dj65hjkv.0.0.22-alpha.4.js → punycode.js.Dj65hjkv.0.0.22.js} +0 -0
- /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.22-alpha.4.js → react-dnd-html5-backend.1HQjlkwI.0.0.22.js} +0 -0
- /package/dist/interface/{redux.CuxFRhX_.0.0.22-alpha.4.js → redux.CuxFRhX_.0.0.22.js} +0 -0
- /package/dist/interface/{sweepline-intersections.l0sNRNKZ.0.0.22-alpha.4.js → sweepline-intersections.l0sNRNKZ.0.0.22.js} +0 -0
- /package/dist/interface/{tslib.9k7AwCpt.0.0.22-alpha.4.js → tslib.9k7AwCpt.0.0.22.js} +0 -0
- /package/dist/interface/{types.Cz9TaZAP.0.0.22-alpha.4.js → types.Cz9TaZAP.0.0.22.js} +0 -0
- /package/dist/interface/{uc.micro.kMc2yuuw.0.0.22-alpha.4.js → uc.micro.kMc2yuuw.0.0.22.js} +0 -0
- /package/dist/interface/{utils.mAKpSMLY.0.0.22-alpha.4.js → utils.mAKpSMLY.0.0.22.js} +0 -0
- /package/dist/interface/{uuid.Ch9TGLTe.0.0.22-alpha.4.js → uuid.Ch9TGLTe.0.0.22.js} +0 -0
- /package/dist/interface/{vue.l0sNRNKZ.0.0.22-alpha.4.js → vue.l0sNRNKZ.0.0.22.js} +0 -0
- /package/dist/interface/{zod.DnW1_kUe.0.0.22-alpha.4.js → zod.DnW1_kUe.0.0.22.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{G as ce,r as f,P as vt,b as r,d as S,f as i,R as n,ab as l,a7 as W,a9 as g,u as e,p as ee,t as pe,c as N,w as J,ac as ge,aa as L,ad as ve,g as ie,Q as fe,_ as ft,k as H,ah as pt,$ as gt,i as ke,m as Re}from"./@vue.Bp1OB7S5.0.0.22-alpha.4.js";import{H as Qe,I as _t,J as wt,s as yt,K as je,D as ht,L as bt,M as xt,N as Vt,O as kt,P as Dt,Q as Ct,R as $t,S as zt,T as Mt,U as Pt,V as St}from"./@mdi.C1UTQKuc.0.0.22-alpha.4.js";import{e as X,b as te,o as $e,F as Oe,G as We,f as ye,j as Be,V as Ft,c as Ee,n as Le,H as It,I as At}from"./vuetify.RJ3sTMIi.0.0.22-alpha.4.js";import{d as de,h as He,s as Ne,f as De,t as he,u as Tt,U as Rt,v as Bt,w as Et}from"./main.B0K-4JOd.0.0.22-alpha.4.js";import{F as Ue,a as Lt}from"./vee-validate.BPLWdsmG.0.0.22-alpha.4.js";import{_ as Pe,C as Ut}from"./VPlayer.DGqQiqy4.0.0.22-alpha.4.js";import{H as Ye}from"./react-dnd-html5-backend.1HQjlkwI.0.0.22-alpha.4.js";import{T as qe}from"./react-dnd-touch-backend.BdTJjJqC.0.0.22-alpha.4.js";import{u as Ge,a as Xe,D as Je}from"./vue3-dnd.DWqmChhd.0.0.22-alpha.4.js";import{s as ze}from"./pinia.DFj3JtXk.0.0.22-alpha.4.js";import{l as Ke,q as Ze,j as et,s as tt,e as Qt}from"./@vueuse.VjnMnlmr.0.0.22-alpha.4.js";import"./perfect-debounce.Cp2ysxOb.0.0.22-alpha.4.js";import"./hookable.B8xFkYCm.0.0.22-alpha.4.js";import"./vue3-toastify.By4kIIkm.0.0.22-alpha.4.js";import"./vue-i18n.Bbjcj2Gy.0.0.22-alpha.4.js";import"./@intlify.DXtFJcML.0.0.22-alpha.4.js";import"./axios.C-n2IhIP.0.0.22-alpha.4.js";import"./@tanstack.BZ6z_pXT.0.0.22-alpha.4.js";import"./vue-router.DUnEf2pS.0.0.22-alpha.4.js";import"./@vee-validate.B9vZN9hh.0.0.22-alpha.4.js";import"./zod.DnW1_kUe.0.0.22-alpha.4.js";import"./uuid.Ch9TGLTe.0.0.22-alpha.4.js";import"./socket.io-client.DrXsuVXZ.0.0.22-alpha.4.js";import"./engine.io-client.D5CwtIl4.0.0.22-alpha.4.js";import"./engine.io-parser.BiEtp6m2.0.0.22-alpha.4.js";import"./@socket.io.Dkula2eQ.0.0.22-alpha.4.js";import"./socket.io-parser.CXIwZ5tn.0.0.22-alpha.4.js";import"./rxjs.B0H79Imk.0.0.22-alpha.4.js";import"./tslib.9k7AwCpt.0.0.22-alpha.4.js";import"./vue-inline-svg.D-huj11I.0.0.22-alpha.4.js";import"./nprogress.B98qIj0x.0.0.22-alpha.4.js";import"./@xterm.C76QGakq.0.0.22-alpha.4.js";import"./qrcode.DkMP8cTq.0.0.22-alpha.4.js";import"./dijkstrajs.D_NXgYpA.0.0.22-alpha.4.js";import"./plugins.BcmR7QWO.0.0.22-alpha.4.js";import"./draggabilly.Btflh0KQ.0.0.22-alpha.4.js";import"./get-size.D1dS-IaP.0.0.22-alpha.4.js";import"./unidragger.CEgRqN1U.0.0.22-alpha.4.js";import"./ev-emitter.DeBiggD4.0.0.22-alpha.4.js";import"./VConsole.DV2h1LQB.0.0.22-alpha.4.js";import"./@react-dnd.CcwRs9xb.0.0.22-alpha.4.js";import"./dnd-core.BoWb_YxW.0.0.22-alpha.4.js";import"./redux.CuxFRhX_.0.0.22-alpha.4.js";import"./fast-deep-equal.BeOGUGKZ.0.0.22-alpha.4.js";const jt={class:"mt-auto flex flex-col"},Ot={class:"relative flex flex-col items-center justify-center"},Wt=ce({__name:"VAudioVisualizer",emits:["listening"],setup(ae,{emit:U}){const q=U,C=f(),$=f(null),B=f(),u=f(!1),d=()=>{var o,s;(o=C.value)==null||o.close(),C.value=void 0,(s=B.value)==null||s.forEach(z=>z.stop()),B.value=void 0,u.value=!1,q("listening",!1)},w=(o,s,z,x,A,j)=>{const k=o.createLinearGradient(s,z,x,A);k.addColorStop(0,"#5b040f"),k.addColorStop(.5,"#b50b21"),k.addColorStop(.9,"#df2a4c"),k.addColorStop(1,"#df6380"),o.lineWidth=j,o.strokeStyle=k,o.beginPath(),o.moveTo(s,z),o.lineTo(x,A),o.stroke(),o.closePath()},y=async()=>{var o;if(u.value)d();else try{C.value&&d();let s;try{s=await navigator.mediaDevices.getUserMedia({audio:!0})}catch(D){console.warn("Can not enable AudioVisualizer",D);return}u.value=!0,q("listening",!0),C.value=new AudioContext;const z=C.value.createAnalyser();z.fftSize=1024,B.value=s.getTracks(),C.value.createMediaStreamSource(s).connect(z);const A=90,j=3;let k;const V=(o=$.value)==null?void 0:o.getContext("2d"),M=()=>{if($.value&&V){const D=[],h=[];V.clearRect(0,0,$.value.width,$.value.height),requestAnimationFrame(M);const m=z.frequencyBinCount,v=new Uint8Array(m);z.getByteFrequencyData(v),D.push(v);for(let P=0;P<D[0].length;P++)h.push(0),D.forEach(R=>{h[P]+=R[P]});const _=$.value.width/2,F=$.value.height/2,T=30;V.beginPath(),V.arc(_,F,T,0,2*Math.PI),V.lineWidth=1,V.stroke(),V.closePath();for(let P=0;P<A;P++){k=h[P]*.4;const R=Math.PI*2/A,E=_+Math.cos(R*P)*T,Y=F+Math.sin(R*P)*T,se=_+Math.cos(R*P)*(T+k),re=F+Math.sin(R*P)*(T+k);w(V,E,Y,se,re,j)}u.value||V.clearRect(0,0,$.value.width,$.value.height)}};M()}catch(s){d(),console.error(s)}};return vt(()=>{d()}),(o,s)=>(r(),S("div",jt,[i("div",Ot,[n(te,{class:"mic-button",variant:"elevated",color:"white",icon:"",size:"60",onClick:ee(y,["prevent"])},{default:l(()=>[n(X,{size:"35"},{default:l(()=>[W(g(e(Qe)),1)]),_:1})]),_:1}),i("canvas",{ref_key:"canvas",ref:$,height:"300",width:"300"},null,512)])]))}}),Ht=de(Wt,[["__scopeId","data-v-0b467b3d"]]),Nt=["data-handler-id"],Yt=ce({__name:"VDnDCard",props:{id:{},index:{},camera:{},moveCard:{type:Function}},setup(ae,{expose:U}){const q=He(),C=ae,{camera:$}=pe(C),{uiSettings:B}=ze(q),u=f(),d=f(),w=f(null);let y=null,o=0,s=0;const z=N(()=>B.value.camview.dragDisabled===!1),{x,y:A,sourceType:j}=Ke(),{top:k,left:V}=Ze(w),[M,D]=Ge({accept:"camera",collect(b){return{handlerId:b.getHandlerId()}},hover(b,oe){var xe;if(!u.value)return;const le=b.index,ue=C.index;if(le===ue)return;const _e=(xe=u.value)==null?void 0:xe.getBoundingClientRect(),K=(_e.bottom-_e.top)/2,be=oe.getClientOffset().y-_e.top;le<ue&&be<K||le>ue&&be>K||(C.moveCard(le,ue),b.index=ue)}}),[h,m]=Xe({type:"camera",canDrag(){return z.value},item:()=>({id:C.id,index:C.index}),collect:b=>({isDragging:b.isDragging()})}),{handlerId:v}=pe(M.value),_=N(()=>h.value.isDragging),F=N(()=>_.value&&j.value==="touch"),T=N(()=>e(_)?0:1);J(F,b=>{b?(y=P(),o=x.value-V.value,s=A.value-k.value):(E(y),y=null)}),J([x,A],()=>{R(y,o,s)});const P=()=>{if(w.value){const b=w.value.cloneNode(!0);return b.classList.add("drag-preview"),document.body.appendChild(b),b}return null},R=(b,oe,le)=>{b&&(b.style.left=`${x.value-oe}px`,b.style.top=`${A.value-le}px`)},E=b=>{b&&document.body.removeChild(b)},Y=b=>{u.value=m(D(b))};return U({togglePlayerMute:b=>{var oe;(oe=d.value)==null||oe.toggleMute(b)},toggleMicrophone:async(b,oe)=>{var le;await((le=d.value)==null?void 0:le.toggleMicrophone(b,oe))}}),(b,oe)=>(r(),S("div",{ref_key:"boxEl",ref:w},[i("div",{ref:Y,class:"camera-card",style:ge({opacity:e(T),color:"#000",cursor:e(B).camview.dragDisabled?"default":"grab"}),"data-handler-id":e(v)},[n(Pe,{ref_key:"playerRef",ref:d,"current-camera":e($).name,"border-radius":0,target:"stream","show-camera-name":"","enable-control":"","auto-hide-control":"","source-role":e($).interface.streamingSource,"show-mode":!1},null,8,["current-camera","source-role"])],12,Nt)],512))}}),qt=de(Yt,[["__scopeId","data-v-f1c0f202"]]),Gt={class:"conference"},Xt=ce({__name:"VDnD",props:{cameras:{},dbCameras:{},noDrag:{type:Boolean}},emits:["drag"],setup(ae,{expose:U,emit:q}){const{isTouch:C}=Ne(),{smallMobileActive:$}=De(),B=q,u=ae,{cameras:d,dbCameras:w,noDrag:y}=pe(u),o=f(null),s=f(null),z=f(2),x=f([]),A=f(),j=f(!1);let k;const V=et(s),{isFullscreen:M,toggle:D}=tt(o),{width:h}=Qt(),m=N(()=>y.value||j.value),v=N(()=>{if($.value)return"100%";const R=V.width.value-z.value*2,E=x.value.length,Y=Math.ceil(Math.sqrt(E)),se=(R-(Y+1)*z.value)/Y;return`${Math.floor(se)}px`});J(h,(R,E)=>{R!==E&&(j.value=!0,clearTimeout(k),k=setTimeout(()=>{j.value=!1},100))}),J(d,R=>{x.value=he(R).sort((E,Y)=>E.index-Y.index)},{immediate:!0,deep:!0});const _=(R,E)=>{const Y=x.value[R];x.value.splice(R,1),x.value.splice(E,0,Y),x.value=x.value.map((se,re)=>(se.index=re,se)).sort((se,re)=>se.index-re.index),B("drag",x.value)};return U({toggleFullscreen:async()=>{await D()},togglePlayerMute:R=>{for(const E of A.value||[])E.togglePlayerMute(R)},togglePlayerMicrophone:async(R,E)=>{for(const Y of A.value||[])await Y.toggleMicrophone(R,E)},isFullscreen:M,selectedCameras:x}),(R,E)=>(r(),L(e(Je),{backend:e(C)?e(qe):e(Ye)},{default:l(()=>[i("div",{ref_key:"cameraDnd",ref:o,class:"scenary"},[i("div",Gt,[n(ft,{ref_key:"dishEl",ref:s,name:"list",tag:"div",class:"dish"},{default:l(()=>[(r(!0),S(fe,null,ve(e(x),(Y,se)=>(r(),L(qt,{id:Y.cameraId,ref_for:!0,ref_key:"dndCards",ref:A,key:Y.cameraId,index:se,camera:e(w).find(re=>re._id===Y.cameraId),"move-card":_,style:ge({width:e(v)}),class:ie(["dnd-card",{"no-transition":e(m)}])},null,8,["id","index","camera","style","class"]))),128))]),_:1},512)])],512)]),_:1},8,["backend"]))}}),Jt=de(Xt,[["__scopeId","data-v-bb21ec2b"]]),Kt={class:"camera-snapshot"},Zt={class:"camera-info flex flex-row items-center"},ea={class:"text-passive truncate"},ta=ce({__name:"VViewDrag",props:{camera:{},isDropped:{type:Boolean},canDrag:{type:Boolean}},setup(ae){const U=ae,{isDropped:q,camera:C,canDrag:$}=pe(U),B=f(null);let u=null,d=0,w=0;const{x:y,y:o,sourceType:s}=Ke(),{top:z,left:x}=Ze(B),[A,j]=Xe(()=>({type:"camera",options:{dropEffect:"copy"},item:C.value,canDrag:$.value,collect:m=>({style:{opacity:m.isDragging()?.4:1},isDragging:m.isDragging()})})),k=N(()=>A.value.isDragging),V=N(()=>k.value&&s.value==="touch");J(V,m=>{m?(u=M(),d=y.value-x.value,w=o.value-z.value):(h(u),u=null)}),J([y,o],()=>{D(u,d,w)});const M=()=>{if(B.value){const m=B.value.cloneNode(!0);return m.classList.add("drag-preview"),document.body.appendChild(m),m}return null},D=(m,v,_)=>{m&&(m.style.left=`${y.value-v}px`,m.style.top=`${o.value-_}px`)},h=m=>{m&&document.body.removeChild(m)};return(m,v)=>{const _=Pe;return r(),S("div",{ref_key:"boxEl",ref:B},[i("div",{ref:e(j),style:ge({...e(A).style,cursor:e(q)?"default":"grab"}),class:"drag-box p-2 flex flex-row items-center relative"},[n(X,{size:"20",class:"text-passive mr-2"},{default:l(()=>[W(g(e(_t)),1)]),_:1}),i("div",Kt,[n(_,{"current-camera":e(C).name,"border-radius":6,target:"snapshot","show-mode":!1},null,8,["current-camera"])]),i("div",Zt,[i("span",ea,g(e(C).name),1),e(q)?(r(),L(X,{key:0,size:"25",class:"ml-auto text-green mr-4"},{default:l(()=>[W(g(e(wt)),1)]),_:1})):H("",!0)])],4)],512)}}}),aa=de(ta,[["__scopeId","data-v-7dfa63f3"]]),Me={WIDTH:400},sa={class:"camera-view-edit flex flex-col p-2"},la={class:"mb-4 text-lg"},oa={class:"text-passive mb-5 mt-5"},ra={class:"camera-container py-3"},na=ce({__name:"VViewSidebar",props:{cameras:{},droppedCameras:{},title:{}},setup(ae){pt(w=>({"7ea40162":e(B)}));const U=ae,{cameras:q,droppedCameras:C,title:$}=pe(U),B=f(`${Me.WIDTH}px`),u=f(!1),d=w=>C.value.some(y=>y.name===w.name);return(w,y)=>{const o=aa;return r(),S("div",sa,[i("b",la,g(e($)),1),i("span",oa,g(w.$t("components.view_box.available_streams")),1),i("div",ra,[(r(!0),S(fe,null,ve(e(q),(s,z)=>(r(),S("div",{key:z,class:"mb-4"},[n(o,{camera:s,"is-dropped":d(s),"can-drag":!d(s),class:ie({shake:e(u)})},null,8,["camera","is-dropped","can-drag","class"])]))),128))])])}}}),ia=de(na,[["__scopeId","data-v-420802a2"]]),ca={key:0,class:"overlay-button-text truncate",color:"#fff"},da={key:1,class:"w-full h-full flex items-center justify-center"},ua=ce({__name:"VViewCard",props:{lastDroppedCamera:{},editMode:{type:Boolean},cameras:{},droppedCameras:{},onDrop:{type:Function}},emits:["drop","remove"],setup(ae,{expose:U,emit:q}){const{desktopActive:C}=De(),$=q,B=ae,{lastDroppedCamera:u,editMode:d,cameras:w,droppedCameras:y}=pe(B),o=f(null),s=f(),{width:z}=et(o),[x,A]=Ge({accept:"camera",drop:B.onDrop,collect:v=>({isOver:v.isOver(),canDrop:v.canDrop()&&u.value===void 0}),canDrop:()=>u.value===void 0}),j=N(()=>x.value.canDrop&&x.value.isOver),k=N(()=>d.value?j.value?"#171717":"#202020":"#000"),V=N(()=>z.value<=200),M=N(()=>w.value.filter(v=>!D(v))),D=v=>y.value.some(_=>_.name===v.name);return U({togglePlayerMute:v=>{var _;(_=s.value)==null||_.toggleMute(v)},toggleMicrophone:async(v,_)=>{var F;await((F=s.value)==null?void 0:F.toggleMicrophone(v,_))}}),(v,_)=>(r(),S("div",{ref:e(A),style:ge({backgroundColor:e(k)}),class:"overflow-hidden"},[e(u)?(r(),S("div",{key:0,ref_key:"container",ref:o,class:"w-full h-full flex items-center justify-center relative"},[e(d)?(r(),L(te,{key:0,icon:e(V),size:e(V)?32:void 0,class:"overlay-button flex items-center justify-center",color:"#df2a4c",onClick:_[0]||(_[0]=ee(F=>$("remove",e(u)),["prevent"]))},{default:l(()=>[n(X,{size:"18"},{default:l(()=>[W(g(e(yt)),1)]),_:1}),e(V)?H("",!0):(r(),S("span",ca,g(e(u).name),1))]),_:1},8,["icon","size"])):H("",!0),n(gt,{name:"fade",mode:"in-out"},{default:l(()=>[e(u)?(r(),L(Pe,{key:0,ref_key:"playerRef",ref:s,class:ie({"camera-overlay":e(d)}),"current-camera":e(u).name,"border-radius":0,target:e(d)?"snapshot":"stream",style:ge({opacity:e(d)?.2:1}),"show-camera-name":!e(d),"enable-control":!e(d),"auto-hide-control":"","source-role":e(u).interface.streamingSource,"show-mode":!1},null,8,["class","current-camera","target","style","show-camera-name","enable-control","source-role"])):H("",!0)]),_:1})],512)):!e(C)&&e(d)?(r(),S("div",da,[n(te,{icon:"",size:"32",color:"#df2a4c"},{default:l(()=>[n(X,{size:"18",color:"#ffff"},{default:l(()=>[W(g(e(je)),1)]),_:1}),n($e,{activator:"parent",class:"select-menu"},{default:l(()=>[n(Oe,{"onClick:select":_[1]||(_[1]=F=>$("drop",F.id))},{default:l(()=>[(r(!0),S(fe,null,ve(e(M),(F,T)=>(r(),L(ye,{key:T,value:F},{default:l(()=>[n(We,null,{default:l(()=>[W(g(F.name),1)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1})])):H("",!0)],4))}}),ma=de(ua,[["__scopeId","data-v-4725d64a"]]),va=ce({__name:"VView",props:{cameras:{},viewSize:{},cards:{},title:{},editMode:{type:Boolean,default:!1}},emits:["drop","remove"],setup(ae,{expose:U,emit:q}){const{isTouch:C}=Ne(),{desktopActive:$}=De(),B=q,u=ae,{cameras:d,editMode:w,viewSize:y,cards:o,title:s}=pe(u),z=f(null),x=f(`${Me.WIDTH}px`),A=f(),{isFullscreen:j,toggle:k}=tt(z),V=N(()=>o.value.filter(m=>m.lastDroppedCamera).map(m=>m.lastDroppedCamera));return U({toggleFullscreen:async()=>{await k()},togglePlayerMute:m=>{for(const v of A.value||[])v.togglePlayerMute(m)},togglePlayerMicrophone:async(m,v)=>{for(const _ of A.value||[])await _.toggleMicrophone(m,v)},isFullscreen:j}),(m,v)=>{const _=ia;return r(),L(e(Je),{backend:e(C)?e(qe):e(Ye)},{default:l(()=>[i("div",{ref_key:"cameraView",ref:z,class:"view-container flex items-center mx-2",style:ge({width:e(w)&&e($)?`calc(100% - ${e(x)})`:void 0})},[i("div",{class:ie(`view-wrap w-full camera-view-${e(y)}`)},[(r(!0),S(fe,null,ve(e(o),(F,T)=>(r(),L(ma,{ref_for:!0,ref_key:"dragContainer",ref:A,key:T,class:ie(`div${T+1}-${e(y)}`),"last-dropped-camera":F.lastDroppedCamera,cameras:e(d),"dropped-cameras":e(V),"edit-mode":e(w),onDrop:P=>B("drop",T,P),onRemove:v[0]||(v[0]=P=>B("remove",P))},null,8,["class","last-dropped-camera","cameras","dropped-cameras","edit-mode","onDrop"]))),128))],2)],4),e(w)&&e($)?(r(),L(_,{key:0,cameras:e(d),"dropped-cameras":e(V),title:e(s),class:"view-box",style:ge({"margin-right":e(w)?"0px":`-${e(Me).WIDTH}px`})},null,8,["cameras","dropped-cameras","title","style"])):H("",!0)]),_:1},8,["backend"])}}}),fa=de(va,[["__scopeId","data-v-8ef83e91"]]),pa={class:"w-full h-full"},ga={class:"camview-topbar p-2 flex flex-row items-center"},_a={class:"flex w-full justify-start items-center"},wa={class:"camview-title truncate"},ya={style:{margin:"5px"}},ha={class:"flex flex-row w-full justify-start items-center"},ba={class:"menu-item"},xa={class:"flex w-full justify-start items-center"},Va={class:"camview-title truncate"},ka={style:{margin:"5px"}},Da={class:"flex flex-row w-full justify-start items-center"},Ca={class:"icon-wrapper"},$a={class:"menu-item ml-2"},za={class:"flex flex-row w-full justify-start items-center"},Ma={class:"icon-wrapper"},Pa={class:"menu-item ml-2"},Sa={key:9,class:"flex flex-row items-center"},Fa={class:"text-white"},Ia={class:"h-full w-full inline-size mb-safe"},Aa={key:0,class:"h-full w-full flex items-center justify-center"},Ta={key:1,class:"w-full h-full"},Ra={key:0,class:"w-full h-full relative"},Ba={key:1,class:"w-full h-full flex flex-row"},Ea={key:2,class:"flex flex-col items-center justify-center w-full h-full"},La={class:"mt-5",style:{color:"#525252"}},Ua={class:"flex flex-col h-full w-full"},Qa={class:"relative"},ja={for:"name",class:"v-label"},Oa={key:0,class:"text-red text-center mb-5"},Wa={class:"view-scroll-container"},Ha={class:"view-select-container"},Na=["onClick"],Ya={class:"flex flex-col h-full w-full"},qa={class:"relative"},Ga={for:"name",class:"v-label"},Xa={key:0,class:"text-red text-center mb-5"},Ja={class:"flex flex-col"},Ka=ce({__name:"Camview",setup(ae){var Se;const U=new Rt,q=new Ut,{smallMobileActive:C}=De(),$=Tt(),B=He(),{uiSettings:u}=ze(B),{loginState:d}=ze($),w=f(),y=f(),o=f(),s=f({}),z=f(!1),x=f({page:1,pageSize:-1}),A=f([1,4,6,7,9,10,12,13,15,16,20,26]),j=f(!1),k=f(!1),V=f(!0),M=f(!1),D=f(!1),h=f(!1),m=f(!1),v=f(!1),_=f(!1),F=f([]),T=f([]),{data:P,isLoading:R}=q.getCamerasQuery(x),{data:E,isLoading:Y}=U.getViewsQuery(((Se=d.value.user)==null?void 0:Se.username)||"",x),{mutate:se,isPending:re}=U.removeViewQuery(),{mutateAsync:b,isPending:oe}=U.createViewQuery(),{mutateAsync:le,isPending:ue}=U.patchViewQuery(),{mutateAsync:_e}=U.patchViewQuerySilent(),K=N(()=>M.value||h.value||D.value),ne=N(()=>R.value||Y.value||re.value||oe.value||ue.value),be=N(()=>{var a,t;return((a=y.value)==null?void 0:a.isFullscreen)||((t=y.value)==null?void 0:t.isFullscreen)||!1}),xe=N(()=>navigator.mediaDevices!==void 0),I=N(()=>{var t,p;const a=((t=E.value)==null?void 0:t.result.find(Q=>Q._id===u.value.camview.viewid))||((p=E.value)==null?void 0:p.result[0]);return a?(s.value=a,u.value.camview.viewid=a._id):s.value={},a}),Ce=N(()=>K.value&&s.value.viewSize>0?s.value.viewSize:I.value?I.value.viewSize:1);J(d,a=>{U.toggleQueryActivator("getUserQuery",a!==null)}),J([Ce,I,P,K,u],()=>{var t,p,Q;if(((t=I.value)==null?void 0:t.type)==="dnd"&&!M.value&&!h.value)return;const a=Array.from({length:Ce.value}).map((O,Z)=>({accept:"camera",index:Z,lastDroppedCamera:void 0}));if(!h.value&&!m.value)for(const O of((p=I.value)==null?void 0:p.cameras)||[])a[O.index].lastDroppedCamera=(Q=P.value)==null?void 0:Q.result.find(Z=>Z._id===O.cameraId);F.value=a},{deep:!0,immediate:!0}),J(s,a=>{var t,p,Q;if(Object.keys(a).length===0)(t=o.value)==null||t.resetForm(),j.value=!1,k.value=!1;else{for(const[O,Z]of Object.entries(a))(p=o.value)==null||p.setFieldValue(O,Z);a.viewSize&&(j.value=!1),(Q=a.cameras)!=null&&Q.length&&(k.value=!1)}},{deep:!0}),J([m,h],([a,t])=>{(!a&&!t||a)&&(s.value={},j.value=!1)}),J([v,D],()=>{D.value||(T.value=[],s.value={},k.value=!1)}),J(v,a=>{a||(D.value=!1)}),J(D,a=>{var t;a?(T.value=((t=P.value)==null?void 0:t.result.filter(p=>{var Q;return(Q=I.value)==null?void 0:Q.cameras.some(O=>O.cameraId===p._id)}))||[],v.value=!0):(T.value=[],v.value=!1)}),J(T,a=>{a.length&&(k.value=!1)}),J(K,a=>{a&&I.value&&!h.value&&(s.value=he(I.value))}),J(d,a=>{a.user?U.toggleQueryActivator("getUserQuery",!0):U.toggleQueryActivator("getUserQuery",!1)},{immediate:!0,deep:!0});const at=async a=>{if(!I.value||!d.value.user)return;const t=he(I.value);t.cameras=a;const p=await _e({username:d.value.user.username,viewid:t._id,viewData:t});we(p)},st=(a,t)=>{F.value[a].lastDroppedCamera=t},lt=a=>{F.value=F.value.map(t=>{var p;return((p=t.lastDroppedCamera)==null?void 0:p.name)===a.name&&(t.lastDroppedCamera=void 0),t})},ot=async()=>{var p;if(!o.value||!d.value.user)return;const a=T.value.map((Q,O)=>({cameraId:Q._id,index:O}));s.value.cameras=a,s.value.type="dnd",s.value.viewSize=1,o.value.setFieldValue("type","dnd"),o.value.setFieldValue("viewSize",1),o.value.setFieldValue("cameras",a);const t=await o.value.validate();if(t){if(((p=E.value)==null?void 0:p.result.find(Z=>Z.name===s.value.name))&&!D.value){o.value.setFieldError("name","View already exists");return}if(a.length===0){k.value=!0;return}if(!t.valid)return;const O=he(s.value);if(O._id){const Z=await le({username:d.value.user.username,viewid:O._id,viewData:O});we(Z)}else{const Z=await b({username:d.value.user.username,viewData:O});we(Z)}v.value=!1}},rt=async()=>{var t,p;if(!o.value)return;s.value.cameras=[],s.value.type="view",o.value.setFieldValue("type","view"),o.value.setFieldValue("cameras",[]);const a=await o.value.validate();if(a){if((t=E.value)==null?void 0:t.result.find(O=>O.name===s.value.name)){o.value.setFieldError("name","View already exists");return}if(!a.valid){((p=a.results.viewSize)==null?void 0:p.valid)===!1&&(j.value=!0);return}m.value=!1,h.value=!0}},nt=async()=>{if(!o.value||!d.value.user||Object.keys(s.value).length===0)return;const a=F.value.filter(p=>p.lastDroppedCamera).map(p=>({cameraId:p.lastDroppedCamera._id,index:p.index})).sort((p,Q)=>p.index-Q.index);if(!a.length)return;o.value.setFieldValue("name",s.value.name),o.value.setFieldValue("cameras",a);const t=await o.value.validate();if(t!=null&&t.valid){const p=he(s.value);if(p.cameras=a,p._id){const Q=await le({username:d.value.user.username,viewid:p._id,viewData:p});we(Q)}else{const Q=await b({username:d.value.user.username,viewData:p});we(Q)}}else console.error("result",t)},we=a=>{u.value.camview.viewid=a._id,m.value=!1,v.value=!1,h.value=!1,M.value=!1},it=()=>{!I.value||!d.value.user||se({username:d.value.user.username,viewid:I.value._id},{onSuccess:a=>{a.length?u.value.camview.viewid=a[0]._id:u.value.camview.viewid=void 0}})},ct=a=>{u.value.camview.viewid=a._id},dt=async()=>{y.value?await y.value.toggleFullscreen():w.value&&await w.value.toggleFullscreen()},ut=()=>{V.value=!V.value,y.value?y.value.togglePlayerMute(V.value):w.value&&w.value.togglePlayerMute(V.value)},mt=async a=>{y.value?await y.value.togglePlayerMicrophone(a):w.value&&await w.value.togglePlayerMicrophone(a)};return(a,t)=>{const p=Et,Q=Ht;return r(),S("main",pa,[n(e(Lt),{ref_key:"viewVeeForm",ref:o,class:"h-full w-full","validation-schema":e(Bt),"initial-values":e(s)},{default:l(()=>{var O,Z,Fe,Ie,Ae,Te;return[i("div",ga,[!e(h)&&e(I)?(r(),L(te,{key:0,size:"small",variant:"flat",style:{background:"rgba(var(--color-rgb), 0.1)","padding-left":"8px"}},{default:l(()=>[i("div",_a,[e(K)?H("",!0):(r(),L(X,{key:0,size:"18",class:"text-color mr-1"},{default:l(()=>[W(g(e(z)?e(ht):e(bt)),1)]),_:1})),i("span",wa,g(e(I).name),1)]),e(K)?H("",!0):(r(),L($e,{key:0,activator:"parent",width:"324",offset:"5",location:"bottom",class:"select-menu","onUpdate:modelValue":t[0]||(t[0]=c=>z.value=c)},{default:l(()=>[n(Be,{width:"200",style:{border:"1px solid var(--background-timeline)","border-radius":"10px"},elevation:"3"},{default:l(()=>{var c;return[i("div",ya,[(r(!0),S(fe,null,ve(((c=e(E))==null?void 0:c.result)||[],(G,me)=>(r(),L(ye,{key:me,active:G._id===e(I)._id,value:G,style:{"border-radius":"5px !important"},disabled:e(ne),onClick:ee(Ve=>ct(G),["prevent"])},{default:l(()=>[i("div",ha,[i("span",ba,g(G.name),1)])]),_:2},1032,["active","value","disabled","onClick"]))),128))])]}),_:1})]),_:1}))]),_:1})):e(h)&&e(s).name?(r(),L(te,{key:1,size:"small",variant:"flat",style:{background:"rgba(var(--color-rgb), 0.1)","padding-left":"8px"}},{default:l(()=>[i("div",xa,[i("span",Va,g(e(s).name),1)])]),_:1})):H("",!0),t[20]||(t[20]=i("div",{class:"ml-auto"},null,-1)),!e(K)&&((O=e(I))==null?void 0:O.type)==="dnd"?(r(),L(te,{key:2,class:"disabled-text mr-2",size:"30",rounded:"",density:"compact",variant:"text",onClick:t[1]||(t[1]=ee(c=>e(u).camview.dragDisabled=!e(u).camview.dragDisabled,["prevent"]))},{default:l(()=>[n(X,{size:"18"},{default:l(()=>[W(g(e(u).camview.dragDisabled?e(xt):e(Vt)),1)]),_:1})]),_:1})):H("",!0),!e(K)&&e(I)?(r(),L(te,{key:3,class:"disabled-text mr-2",size:"30",rounded:"",density:"compact",variant:"text",onClick:t[2]||(t[2]=ee(c=>ut(),["prevent"]))},{default:l(()=>[n(X,{size:"22"},{default:l(()=>[W(g(e(V)?e(kt):e(Dt)),1)]),_:1})]),_:1})):H("",!0),!e(K)&&e(I)&&e(xe)?(r(),L(te,{key:4,class:"disabled-text mr-2",size:"30",rounded:"",density:"compact",variant:"text",onClick:t[3]||(t[3]=ee(c=>_.value=!0,["prevent"]))},{default:l(()=>[n(X,{size:"22"},{default:l(()=>[W(g(e(Qe)),1)]),_:1})]),_:1})):H("",!0),!e(K)&&e(I)?(r(),L(te,{key:5,class:"disabled-text mr-2",size:"30",rounded:"",density:"compact",variant:"text",onClick:t[4]||(t[4]=ee(c=>dt(),["prevent"]))},{default:l(()=>[n(X,{size:"22"},{default:l(()=>[W(g(e(be)?e(Ct):e($t)),1)]),_:1})]),_:1})):H("",!0),!e(K)&&e(I)?(r(),L(te,{key:6,class:"disabled-text mr-2",size:"30",rounded:"",density:"compact",variant:"text",onClick:t[5]||(t[5]=ee(c=>it(),["prevent"]))},{default:l(()=>[n(X,{size:"20"},{default:l(()=>[W(g(e(zt)),1)]),_:1})]),_:1})):H("",!0),!e(D)&&!e(M)&&!e(h)&&e(I)?(r(),L(te,{key:7,class:"disabled-text mr-2",size:"30",rounded:"",density:"compact",variant:"text",onClick:t[6]||(t[6]=ee(c=>{var G;return((G=e(I))==null?void 0:G.type)==="dnd"?D.value=!e(D):M.value=!e(M)},["prevent"]))},{default:l(()=>[n(X,{size:"19"},{default:l(()=>[W(g(e(Mt)),1)]),_:1})]),_:1})):H("",!0),!e(D)&&!e(M)&&!e(h)?(r(),L(te,{key:8,class:"disabled-text mr-2",size:"30",rounded:"",density:"compact",variant:"text"},{default:l(()=>[n(X,{size:"22"},{default:l(()=>[W(g(e(je)),1)]),_:1}),n($e,{activator:"parent",offset:"5",location:"bottom",class:"select-menu"},{default:l(()=>[n(Be,{width:"200",style:{border:"1px solid var(--background-timeline)","border-radius":"10px"},elevation:"3"},{default:l(()=>[i("div",ka,[n(ye,{style:{"border-radius":"5px !important"},disabled:e(ne),onClick:t[7]||(t[7]=ee(c=>m.value=!0,["prevent"]))},{default:l(()=>[i("div",Da,[i("div",Ca,[n(X,{size:"20",class:"text-passive"},{default:l(()=>[W(g(e(Pt)),1)]),_:1})]),i("span",$a,g(a.$t("views.camview.new_view")),1)])]),_:1},8,["disabled"]),t[19]||(t[19]=i("div",{class:"my-1"},null,-1)),n(ye,{style:{"border-radius":"5px !important"},disabled:e(ne),onClick:t[8]||(t[8]=ee(c=>v.value=!0,["prevent"]))},{default:l(()=>[i("div",za,[i("div",Ma,[n(X,{size:"20",class:"text-passive"},{default:l(()=>[W(g(e(St)),1)]),_:1})]),i("span",Pa,g(a.$t("views.camview.new_dnd")),1)])]),_:1},8,["disabled"])])]),_:1})]),_:1})]),_:1})):H("",!0),e(M)||e(h)?(r(),S("div",Sa,[n(te,{class:"disabled-text mr-2",size:"small",variant:"flat",border:"",onClick:t[9]||(t[9]=ee(c=>e(M)?M.value=!1:h.value=!1,["prevent"]))},{default:l(()=>[W(g(a.$t("components.form.button.cancel")),1)]),_:1}),n(te,{disabled:e(F).every(c=>c.lastDroppedCamera===void 0),class:"disabled-text",size:"small",color:"#df2a4c",variant:"flat",border:"",onClick:t[10]||(t[10]=ee(c=>nt(),["prevent"]))},{default:l(()=>[i("span",Fa,g(a.$t("components.form.button.save")),1)]),_:1},8,["disabled"])])):H("",!0)]),i("div",{class:ie(["camview-container",{"px-0":e(C)}])},[i("div",Ia,[e(ne)||!e(E)?(r(),S("div",Aa,[n(Ft,{color:"#df2a4c",indeterminate:""})])):(r(),S("div",Ta,[!e(h)&&!e(M)&&(e(D)||((Z=e(I))==null?void 0:Z.type)==="dnd")?(r(),S("div",Ra,[n(Jt,{ref_key:"dndRef",ref:w,cameras:((Fe=e(I))==null?void 0:Fe.cameras)||[],"db-cameras":((Ie=e(P))==null?void 0:Ie.result)||[],"no-drag":e(u).camview.dragDisabled,onDrag:at},null,8,["cameras","db-cameras","no-drag"])])):!e(D)&&(e(h)||e(M)||((Ae=e(I))==null?void 0:Ae.type)==="view")?(r(),S("div",Ba,[(r(),L(fa,{ref_key:"viewRef",ref:y,key:e(u).camview.viewid+(e(h)?"-new":e(M)?"-edit":"-view"),cameras:((Te=e(P))==null?void 0:Te.result)||[],"edit-mode":e(h)||e(M),"view-size":e(h)?e(s).viewSize:e(Ce),title:e(s).name,cards:e(F),onDrop:st,onRemove:lt},null,8,["cameras","edit-mode","view-size","title","cards"]))])):(r(),S("div",Ea,[i("span",La,g(a.$t("views.camview.no_views_configured")),1)]))]))])],2),n(p,{modelValue:e(m),"onUpdate:modelValue":t[12]||(t[12]=c=>ke(m)?m.value=c:null),title:e(K)?a.$t("components.dialog.title.edit_view"):a.$t("components.dialog.title.new_view"),"confirm-text":"components.form.button.next",loading:e(ne),onConfirm:t[13]||(t[13]=c=>rt())},{content:l(()=>[i("div",Ua,[i("div",Qa,[n(e(Ue),{modelValue:e(s).name,"onUpdate:modelValue":t[11]||(t[11]=c=>e(s).name=c),name:"name"},{default:l(({field:c,errorMessage:G,errors:me})=>[i("label",ja,g(a.$t("components.form.label.name")),1),n(Ee,Re({loading:e(ne),variant:"outlined",name:"name",type:"text",density:"compact"},c,{error:me.length>0,"error-messages":G}),null,16,["loading","error","error-messages"])]),_:1},8,["modelValue"])]),n(Le,{class:"my-5"}),e(j)?(r(),S("span",Oa,g(a.$t("components.form.error.no_view_selected")),1)):H("",!0),i("div",Wa,[i("div",Ha,[(r(!0),S(fe,null,ve(e(A),c=>(r(),S("div",{key:c,class:"view-select-item h-full w-full",onClick:ee(G=>e(s).viewSize=c,["prevent"])},[i("div",{class:ie(["view-select-item-icon w-full h-full p-3",{"selected-view":e(s).viewSize===c}])},[n(X,{class:"disabled-text",style:{width:"100%",height:"100%"}},{default:l(()=>[W(g(`$cuiGrid${c}`),1)]),_:2},1024)],2),i("span",{class:ie(["view-select-item-label disabled-text mt-2 px-2 py-1",{"selected-view-label":e(s).viewSize===c}])},g(c)+" "+g(a.$t("views.camview.cameras")),3)],8,Na))),128))])])])]),_:1},8,["modelValue","title","loading"]),n(p,{modelValue:e(v),"onUpdate:modelValue":t[16]||(t[16]=c=>ke(v)?v.value=c:null),title:e(K)?a.$t("components.dialog.title.edit_dnd"):a.$t("components.dialog.title.new_dnd"),"confirm-text":"components.form.button.save",loading:e(ne),onConfirm:t[17]||(t[17]=c=>ot())},{content:l(()=>[i("div",Ya,[i("div",qa,[n(e(Ue),{modelValue:e(s).name,"onUpdate:modelValue":t[14]||(t[14]=c=>e(s).name=c),name:"name"},{default:l(({field:c,errorMessage:G,errors:me})=>[i("label",Ga,g(a.$t("components.form.label.name")),1),n(Ee,Re({loading:e(ne),variant:"outlined",name:"name",type:"text",density:"compact"},c,{error:me.length>0,"error-messages":G}),null,16,["loading","error","error-messages"])]),_:1},8,["modelValue"])]),n(Le,{class:"mb-10 mt-5"}),e(k)?(r(),S("span",Xa,g(a.$t("components.form.error.no_cameras_selected")),1)):H("",!0),n(Oe,{selected:e(T),"onUpdate:selected":t[15]||(t[15]=c=>ke(T)?T.value=c:null),"select-strategy":"classic",class:"py-0 mb-5",density:"compact"},{default:l(()=>{var c;return[(r(!0),S(fe,null,ve(((c=e(P))==null?void 0:c.result)||[],(G,me)=>(r(),L(ye,{key:me,value:G,active:e(T).some(Ve=>Ve.name===G.name)},{prepend:l(({isActive:Ve})=>[n(It,{start:""},{default:l(()=>[n(At,{"model-value":Ve,color:"#df2a4c"},null,8,["model-value"])]),_:2},1024)]),default:l(()=>[n(We,null,{default:l(()=>[W(g(G.name),1)]),_:2},1024)]),_:2},1032,["value","active"]))),128))]}),_:1},8,["selected"])])]),_:1},8,["modelValue","title","loading"]),n(p,{modelValue:e(_),"onUpdate:modelValue":t[18]||(t[18]=c=>ke(_)?_.value=c:null),title:a.$t("components.dialog.title.intercom"),loading:e(ne),"hide-confirm-button":""},{content:l(()=>[i("div",Ja,[i("span",null,g(a.$t("components.dialog.message.intercom_info")),1),n(Q,{onListening:mt})])]),_:1},8,["modelValue","title","loading"])]}),_:1},8,["validation-schema","initial-values"])])}}}),Os=de(Ka,[["__scopeId","data-v-35de00f9"]]);export{Os as default};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{y as $,h as A,f as E,w as I,B as P,d as U}from"./main.B0K-4JOd.0.0.22-alpha.4.js";import{G as N,r as b,c as z,S as F,P as G,b as H,d as j,R as t,u as o,f as S,ab as a,ac as W,i as Z,e as q,v as J,a7 as u,a9 as m,m as K,p as _}from"./@vue.Bp1OB7S5.0.0.22-alpha.4.js";import{L as X,_ as Y,$ as oo,a0 as eo,F as to,E as ao}from"./@mdi.C1UTQKuc.0.0.22-alpha.4.js";import{S as no}from"./system.D3UZ1Y0a.0.0.22-alpha.4.js";import{V as so}from"./VConsole.DV2h1LQB.0.0.22-alpha.4.js";import{s as lo}from"./pinia.DFj3JtXk.0.0.22-alpha.4.js";import{B as io,O as ro,b as y,e as p,P as co}from"./vuetify.RJ3sTMIi.0.0.22-alpha.4.js";import"./vue3-toastify.By4kIIkm.0.0.22-alpha.4.js";import"./vue-i18n.Bbjcj2Gy.0.0.22-alpha.4.js";import"./@intlify.DXtFJcML.0.0.22-alpha.4.js";import"./axios.C-n2IhIP.0.0.22-alpha.4.js";import"./@tanstack.BZ6z_pXT.0.0.22-alpha.4.js";import"./vue-router.DUnEf2pS.0.0.22-alpha.4.js";import"./@vueuse.VjnMnlmr.0.0.22-alpha.4.js";import"./nprogress.B98qIj0x.0.0.22-alpha.4.js";import"./@xterm.C76QGakq.0.0.22-alpha.4.js";import"./vee-validate.BPLWdsmG.0.0.22-alpha.4.js";import"./@vee-validate.B9vZN9hh.0.0.22-alpha.4.js";import"./zod.DnW1_kUe.0.0.22-alpha.4.js";import"./uuid.Ch9TGLTe.0.0.22-alpha.4.js";import"./socket.io-client.DrXsuVXZ.0.0.22-alpha.4.js";import"./engine.io-client.D5CwtIl4.0.0.22-alpha.4.js";import"./engine.io-parser.BiEtp6m2.0.0.22-alpha.4.js";import"./@socket.io.Dkula2eQ.0.0.22-alpha.4.js";import"./socket.io-parser.CXIwZ5tn.0.0.22-alpha.4.js";import"./rxjs.B0H79Imk.0.0.22-alpha.4.js";import"./tslib.9k7AwCpt.0.0.22-alpha.4.js";import"./vue-inline-svg.D-huj11I.0.0.22-alpha.4.js";import"./perfect-debounce.Cp2ysxOb.0.0.22-alpha.4.js";import"./hookable.B8xFkYCm.0.0.22-alpha.4.js";const mo={class:"w-full h-full"},uo=N({__name:"Console",setup(po){const f=new no,x=$(),L=A(),{extraSmallMobileActive:B}=E(),{uiSettings:r}=lo(L),c=b(null),d=b(),g=b(!1),C=z(()=>({fontSize:r.value.console.zoom}));f.toggleQueryActivator("downloadLogQuery",!1);const{data:w,isLoading:V,suspense:T}=f.downloadLogQuery(),{mutate:h,isPending:Q}=f.clearLogQuery(),v=z(()=>V.value||Q.value),D=async()=>{h(void 0,{onSuccess:()=>{g.value=!1}})},M=async()=>{try{if(f.toggleQueryActivator("downloadLogQuery",!0),await T(),w.value){const n=w.value,e=window.URL.createObjectURL(new Blob([n])),s=document.createElement("a");s.href=e,s.setAttribute("download","camera.ui.log.txt"),document.body.appendChild(s),s.click(),s.remove()}}finally{f.toggleQueryActivator("downloadLogQuery",!1)}},O=()=>{r.value.console.zoom!==8&&r.value.console.zoom--},R=()=>{r.value.console.zoom!==20&&r.value.console.zoom++};return F(()=>{var n,e,s,i;d.value=x.connectToNamespace("/logs"),(n=d.value)==null||n.socket.on("stdout",l=>{var k;(k=c.value)==null||k.writeTerminal(l)}),(e=d.value)==null||e.socket.on("disconnect",()=>{var l;(l=c.value)==null||l.writeTerminal(`\r
|
|
2
|
-
Websocket failed to connect! Is the server running?\r
|
|
3
|
-
\r
|
|
4
|
-
`)}),(s=d.value)==null||s.socket.on("clear-log",()=>{var l;(l=c.value)==null||l.clearTerminal()}),(i=d.value)==null||i.socket.emit("get-all-logs")}),G(()=>{var n,e;(e=(n=d.value)==null?void 0:n.end)==null||e.call(n)}),(n,e)=>{const s=I;return H(),j("main",mo,[t(so,{ref_key:"consoleRef",ref:c,class:"text-editor",options:o(C)},null,8,["options"]),S("div",{class:"text-editor-buttons flex flex-col",style:W({bottom:o(B)&&o(r).interface.showBottomBarOnMobile?`calc(1rem + ${o(P).HEIGHT}px + env(safe-area-inset-bottom, 0px))`:"calc(1rem + env(safe-area-inset-bottom, 0px))"})},[t(io,null,{default:a(()=>[q(t(y,{icon:"",class:"mb-1 hover-box",onClick:e[0]||(e[0]=i=>{var l;return(l=o(c))==null?void 0:l.scrollToBottom()})},{default:a(()=>[t(p,{size:"20"},{default:a(()=>[u(m(o(X)),1)]),_:1})]),_:1},512),[[J,o(c)&&!o(c).atBottom]])]),_:1}),t(ro,{location:"top center",transition:"fade-transition","close-on-content-click":!1},{activator:a(({props:i})=>[t(co,K(i,{size:"default",icon:"",style:{height:"48px !important"},class:"hover-box"}),{default:a(()=>[t(p,{size:"20"},{default:a(()=>[u(m(o(Y)),1)]),_:1})]),_:2},1040)]),default:a(()=>[t(y,{key:"1",loading:o(v),color:"success",icon:"",onClick:_(M,["prevent"])},{default:a(()=>[t(p,{size:"20"},{default:a(()=>[u(m(o(oo)),1)]),_:1})]),_:1},8,["loading"]),t(y,{key:"2",loading:o(v),color:"red",icon:"",onClick:e[1]||(e[1]=_(i=>g.value=!0,["prevent"]))},{default:a(()=>[t(p,{size:"20"},{default:a(()=>[u(m(o(eo)),1)]),_:1})]),_:1},8,["loading"]),t(y,{key:"3",loading:o(v),icon:"",disabled:o(r).console.zoom===20,onClick:_(R,["prevent"])},{default:a(()=>[t(p,{size:"20"},{default:a(()=>[u(m(o(to)),1)]),_:1})]),_:1},8,["loading","disabled"]),t(y,{key:"4",loading:o(v),disabled:o(r).console.zoom===8,icon:"",onClick:_(O,["prevent"])},{default:a(()=>[t(p,{size:"20"},{default:a(()=>[u(m(o(ao)),1)]),_:1})]),_:1},8,["loading","disabled"])]),_:1})],4),t(s,{modelValue:o(g),"onUpdate:modelValue":e[2]||(e[2]=i=>Z(g)?g.value=i:null),title:n.$t("components.dialog.title.confirm"),"confirm-text":"components.form.button.clear",loading:o(v),onConfirm:e[3]||(e[3]=i=>D())},{content:a(()=>[S("span",null,m(n.$t("components.dialog.message.confirm_clear_log")),1)]),_:1},8,["modelValue","title","loading"])])}}}),Go=U(uo,[["__scopeId","data-v-25fca646"]]);export{Go as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as re,a as ne,b as ie,i as de,g as me,c as ue,r as pe,_ as ce,d as fe}from"./main.B0K-4JOd.0.0.22-alpha.4.js";import{G as ve,r as c,E as ge,c as W,w as be,b as v,d as U,f as t,u as s,aa as j,p as h,k as z,a9 as u,Q as he,ad as we,R as l,ab as m,g as _e,i as S,m as w,a7 as B}from"./@vue.Bp1OB7S5.0.0.22-alpha.4.js";import{m as G,a as Q}from"./@mdi.C1UTQKuc.0.0.22-alpha.4.js";import{F as g,a as ye}from"./vee-validate.BPLWdsmG.0.0.22-alpha.4.js";import{I as xe}from"./vue-inline-svg.D-huj11I.0.0.22-alpha.4.js";import{a as ke}from"./vue-router.DUnEf2pS.0.0.22-alpha.4.js";import{s as P}from"./pinia.DFj3JtXk.0.0.22-alpha.4.js";import{b as C,w as Ve,x as N,y as H,d as T,c as q,z as J}from"./vuetify.RJ3sTMIi.0.0.22-alpha.4.js";import"./vue3-toastify.By4kIIkm.0.0.22-alpha.4.js";import"./vue-i18n.Bbjcj2Gy.0.0.22-alpha.4.js";import"./@intlify.DXtFJcML.0.0.22-alpha.4.js";import"./axios.C-n2IhIP.0.0.22-alpha.4.js";import"./@tanstack.BZ6z_pXT.0.0.22-alpha.4.js";import"./@vueuse.VjnMnlmr.0.0.22-alpha.4.js";import"./nprogress.B98qIj0x.0.0.22-alpha.4.js";import"./@xterm.C76QGakq.0.0.22-alpha.4.js";import"./@vee-validate.B9vZN9hh.0.0.22-alpha.4.js";import"./zod.DnW1_kUe.0.0.22-alpha.4.js";import"./uuid.Ch9TGLTe.0.0.22-alpha.4.js";import"./socket.io-client.DrXsuVXZ.0.0.22-alpha.4.js";import"./engine.io-client.D5CwtIl4.0.0.22-alpha.4.js";import"./engine.io-parser.BiEtp6m2.0.0.22-alpha.4.js";import"./@socket.io.Dkula2eQ.0.0.22-alpha.4.js";import"./socket.io-parser.CXIwZ5tn.0.0.22-alpha.4.js";import"./rxjs.B0H79Imk.0.0.22-alpha.4.js";import"./tslib.9k7AwCpt.0.0.22-alpha.4.js";import"./perfect-debounce.Cp2ysxOb.0.0.22-alpha.4.js";import"./hookable.B8xFkYCm.0.0.22-alpha.4.js";const $e={class:"w-full h-full"},Se={class:"firststeps-progress flex flex-col items-center p-5 w-full pt-safe"},Ce={class:"firststeps-progress-inner flex flex-col h-full w-full justify-center"},Fe={class:"flex flex-row items-center"},Ie={class:"firststeps-progress-title mt-3"},Le={class:"firststeps-progress-text mt-1"},Ee={class:"flex flex-row gap-2 mt-3 mb-3"},Me={class:"firststeps flex flex-col items-center p-5 w-full hide-scrollbar"},Re={class:"relative"},Ue={for:"theme",class:"v-label"},je={class:"ml-auto flex"},ze={class:"relative"},Be={for:"language",class:"v-label"},Pe={class:"flex flex-row relative"},Ne={class:"w-100 mr-5"},Te={for:"username",class:"v-label"},qe={class:"image-upload ml-auto mt-3"},Ae={for:"file-input"},De={class:"relative mt-5"},Oe={for:"password",class:"v-label"},Ke={class:"relative"},We={for:"password",class:"v-label"},Ge={class:"ml-auto flex"},Qe={class:"ml-auto flex"},He={class:"w-full flex flex-col justify-center items-center"},Je={class:"text-center mt-10 firststeps-info"},Xe=ve({__name:"FirstSteps",setup(Ye){const F=re(),X=ne(),Y=ie(),Z=ke(),{t:I}=de.global,{loginLoading:b}=P(F),{locale:L,languages:ee}=P(Y),{colors:se,theme:E,autoMode:_}=P(X),i=c(0),A=c(),M=c(),y=c(!1),x=c(!1),f=c(),D=c(!1),k=c(!1),V=c(!1),$=ge([{title:I("views.firststeps.step_appearance")},{title:I("views.firststeps.step_account")},{title:I("views.firststeps.step_finish")}]),te=W(()=>Math.round((i.value+1)/$.length*100)),R=W(()=>i.value===$.length-1);be(i,a=>{a===0&&(D.value=!1)});const oe=async a=>{var d;const e=(d=a.target)==null?void 0:d.files;M.value=e==null?void 0:e[0],A.value=await pe(a)},ae=async()=>{var a,e;try{await F.logout()}catch(d){console.error(((e=(a=d.response)==null?void 0:a.data)==null?void 0:e.message)??d.message??d)}},O=async()=>{var a,e,d,o,r;if(i.value>0){const n=(a=f.value)==null?void 0:a.getValues();if(n){if(!n.password||!n.passwordConfirm){(e=f.value)==null||e.setFieldError("password","Required"),(d=f.value)==null||d.setFieldError("passwordConfirm","Required");return}if(!n.username){(o=f.value)==null||o.setFieldError("username","Required");return}}const p=await((r=f.value)==null?void 0:r.validate());p!=null&&p.valid&&!R.value?i.value++:p!=null&&p.valid||console.error("result",p)}else i.value++},le=async a=>{var e,d;if(D.value=!0,R.value){let o;const r={...a};r.oneLogin=k.value,r.rememberMe=V.value,r.firstLogin=!1,delete r.upload;try{b.value=!0,M.value&&(o=new FormData,o.append("upload",M.value)),await F.updateUser(r,o,!0),Z.push({path:"/cameras"})}catch(n){console.error(((d=(e=n.response)==null?void 0:e.data)==null?void 0:d.message)??n.message??n)}}},K=()=>{i.value>0&&i.value--};return(a,e)=>{const d=ce;return v(),U("main",$e,[t("div",Se,[t("div",Ce,[t("div",Fe,[s(i)>0?(v(),j(C,{key:0,density:"compact",class:"firststeps-button no-drag",variant:"tonal",color:"tonal",text:a.$t("components.form.button.previous"),loading:s(b),onClick:e[0]||(e[0]=h(o=>K(),["prevent"]))},null,8,["text","loading"])):z("",!0),s(i)===0?(v(),j(C,{key:1,density:"compact",class:"firststeps-button no-drag",variant:"tonal",color:"white",text:a.$t("components.form.button.logout"),loading:s(b),onClick:e[1]||(e[1]=h(o=>ae(),["prevent"]))},null,8,["text","loading"])):z("",!0),s(R)?z("",!0):(v(),j(C,{key:2,density:"compact",class:"firststeps-button ml-auto no-drag",variant:"tonal",color:"white",text:a.$t("components.form.button.next"),loading:s(b),onClick:e[2]||(e[2]=h(o=>O(),["prevent"]))},null,8,["text","loading"]))]),t("h1",Ie,u(s($)[s(i)].title),1),t("h1",Le,[t("b",null,u(s(te))+"%",1),t("span",null,u(a.$t("views.firststeps.complete")),1)]),t("div",Ee,[(v(!0),U(he,null,we(s($),(o,r)=>(v(),U("div",{key:r,class:_e(["firststeps-step-bar",{"firststeps-step-bar-active":s(i)===r}])},null,2))),128))])])]),t("div",Me,[l(s(ye),{ref_key:"userForm",ref:f,class:"firststeps-form flex flex-col h-full w-full pb-safe","validation-schema":s(ue),onSubmit:e[12]||(e[12]=o=>le(o))},{default:m(()=>[l(Ve,{modelValue:s(i),"onUpdate:modelValue":e[11]||(e[11]=o=>S(i)?i.value=o:null),class:"window",touch:{left:O,right:K}},{default:m(()=>[l(N,{value:0,transition:"fade","reverse-transition":"fade-reverse",disabled:!1},{default:m(()=>[t("div",Re,[t("label",Ue,u(a.$t("components.form.label.theme")),1),l(H,{modelValue:s(E),"onUpdate:modelValue":e[3]||(e[3]=o=>S(E)?E.value=o:null),variant:"outlined",name:"theme","hide-details":"",density:"compact",items:s(se),disabled:s(_),onKeydown:h(()=>null,["prevent"])},null,8,["modelValue","items","disabled"])]),e[13]||(e[13]=t("div",{class:"py-2"},null,-1)),t("div",null,[t("div",je,[l(T,{modelValue:s(_),"onUpdate:modelValue":e[4]||(e[4]=o=>S(_)?_.value=o:null),color:"#df2a4c",type:"checkbox",label:a.$t("components.form.label.system_preference"),"hide-details":""},null,8,["modelValue","label"])])]),e[14]||(e[14]=t("div",{class:"py-3"},null,-1)),t("div",ze,[t("label",Be,u(a.$t("components.form.label.language")),1),l(H,{modelValue:s(L),"onUpdate:modelValue":e[5]||(e[5]=o=>S(L)?L.value=o:null),variant:"outlined",name:"language","hide-details":"",density:"compact",items:s(ee),onKeydown:h(()=>null,["prevent"])},null,8,["modelValue","items"])])]),_:1}),l(N,{value:1,transition:"fade","reverse-transition":"fade-reverse",disabled:!1},{default:m(()=>[t("div",Pe,[t("div",Ne,[t("label",Te,u(a.$t("components.form.label.username")),1),l(s(g),{name:"username"},{default:m(({field:o,errorMessage:r,errors:n})=>[l(q,w({name:"username",variant:"outlined",density:"compact"},o,{type:"text",error:n.length>0,"error-messages":r}),null,16,["error","error-messages"])]),_:1})]),t("div",qe,[t("label",Ae,[l(d,{src:s(A),size:"4rem",style:{"border-radius":"4rem",border:"1px solid var(--border)"}},null,8,["src"]),l(s(g),{id:"file-input",type:"file",name:"upload",accept:"image/png,image/jpeg,image/jpg",onChange:e[6]||(e[6]=o=>oe(o))})])])]),t("div",De,[t("label",Oe,u(a.$t("components.form.label.new_password")),1),l(s(g),{name:"password"},{default:m(({field:o,errorMessage:r,errors:n})=>[l(q,w({variant:"outlined"},o,{name:"password",type:s(y)?"text":"password",error:n.length>0,"error-messages":r,density:"compact","append-inner-icon":s(y)?s(G):s(Q),"onClick:appendInner":e[7]||(e[7]=p=>y.value=!s(y))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),t("div",Ke,[t("label",We,u(a.$t("components.form.label.new_password_confirm")),1),l(s(g),{name:"passwordConfirm"},{default:m(({field:o,errorMessage:r,errors:n})=>[l(q,w({variant:"outlined"},o,{name:"passwordConfirm",type:s(x)?"text":"password",error:n.length>0,"error-messages":r,density:"compact","append-inner-icon":s(x)?s(G):s(Q),"onClick:appendInner":e[8]||(e[8]=p=>x.value=!s(x))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),t("div",null,[t("div",Ge,[l(s(g),{name:"oneLogin",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:m(({field:o,errorMessage:r,errors:n})=>[l(T,w({"model-value":s(k)},o,{name:"oneLogin",color:"#df2a4c",type:"checkbox",error:n.length>0,"error-messages":r,label:a.$t("components.form.label.one_login"),"hide-details":"",onChange:e[9]||(e[9]=p=>k.value=!s(k))}),null,16,["model-value","error","error-messages","label"])]),_:1})]),l(J,{theme:"dark",density:"compact",variant:"tonal",style:{"font-size":"0.7rem",color:"var(--color-disabled)"}},{default:m(()=>[B(u(a.$t("components.form.hint.one_login")),1)]),_:1})]),e[15]||(e[15]=t("div",{class:"py-3"},null,-1)),t("div",null,[t("div",Qe,[l(s(g),{name:"rememberMe",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:m(({field:o,errorMessage:r,errors:n})=>[l(T,w({"model-value":s(V),name:"rememberMe"},o,{color:"#df2a4c",type:"checkbox",error:n.length>0,"error-messages":r,label:a.$t("components.form.label.remember_me"),"hide-details":"",onChange:e[10]||(e[10]=p=>V.value=!s(V))}),null,16,["model-value","error","error-messages","label"])]),_:1})]),l(J,{theme:"dark",density:"compact",variant:"tonal",style:{"font-size":"0.7rem",color:"var(--color-disabled)"}},{default:m(()=>[B(u(a.$t("components.form.hint.remember_me")),1)]),_:1})])]),_:1}),l(N,{value:2,transition:"fade","reverse-transition":"fade-reverse",disabled:!1},{default:m(()=>[t("div",He,[l(s(xe),{src:s(me)("logo_animated.svg"),width:"78px",height:"84px",title:"camera.ui","aria-label":"camera.ui"},null,8,["src"]),t("p",Je,u(a.$t("views.firststeps.finish_message")),1),l(C,{class:"mt-7 text-white",type:"submit",elevation:"1",color:"#df2a4c",loading:s(b)},{default:m(()=>[B(u(a.$t("views.firststeps.enjoy")),1)]),_:1},8,["loading"])])]),_:1})]),_:1},8,["modelValue","touch"])]),_:1},8,["validation-schema"])])])}}}),Cs=fe(Xe,[["__scopeId","data-v-1a29de45"]]);export{Cs as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as we,b as at,C as lt,d as it,e as rt,g as ut}from"./VPlayer.DGqQiqy4.0.0.22-alpha.4.js";import{_ as ct}from"./VPluginCard.DGbd842s.0.0.22-alpha.4.js";import{G as $e,t as Ee,r as l,c as Y,w as X,b as a,d as u,f as s,u as e,a9 as d,k as w,g as G,a7 as R,R as f,ab as g,p as S,aa as O,n as te,i as fe,S as dt,P as ft,ac as Be,Q as Pe,ad as De}from"./@vue.Bp1OB7S5.0.0.22-alpha.4.js";import{X as Fe,k as ce,i as oe,c as Ne}from"./@mdi.C1UTQKuc.0.0.22-alpha.4.js";import{i as ze}from"./vue3-toastify.By4kIIkm.0.0.22-alpha.4.js";import{P as ke}from"./plugins.BcmR7QWO.0.0.22-alpha.4.js";import{A as Me,M as Ve,i as Ue,d as Ie,z as Je,C as Le,w as Ye,D as Re,E as je,y as mt,f as pt,F as vt}from"./main.B0K-4JOd.0.0.22-alpha.4.js";import{e as ae,b as me,V as de,S as gt,U as _t,C as ht,w as yt,F as He,f as qe,H as bt,I as xt,n as wt,x as $t}from"./vuetify.RJ3sTMIi.0.0.22-alpha.4.js";import{H as se,t as kt,y as It,j as Ct,p as St}from"./highlight.js.8K562RzZ.0.0.22-alpha.4.js";import{M as Pt}from"./markdown-it.BsZYeeWx.0.0.22-alpha.4.js";import{u as Dt}from"./vue-router.DUnEf2pS.0.0.22-alpha.4.js";import{t as Vt}from"./@vueuse.VjnMnlmr.0.0.22-alpha.4.js";import"./qrcode.DkMP8cTq.0.0.22-alpha.4.js";import"./dijkstrajs.D_NXgYpA.0.0.22-alpha.4.js";import"./vee-validate.BPLWdsmG.0.0.22-alpha.4.js";import"./zod.DnW1_kUe.0.0.22-alpha.4.js";import"./pinia.DFj3JtXk.0.0.22-alpha.4.js";import"./@vee-validate.B9vZN9hh.0.0.22-alpha.4.js";import"./draggabilly.Btflh0KQ.0.0.22-alpha.4.js";import"./@xterm.C76QGakq.0.0.22-alpha.4.js";import"./get-size.D1dS-IaP.0.0.22-alpha.4.js";import"./unidragger.CEgRqN1U.0.0.22-alpha.4.js";import"./ev-emitter.DeBiggD4.0.0.22-alpha.4.js";import"./@tanstack.BZ6z_pXT.0.0.22-alpha.4.js";import"./VConsole.DV2h1LQB.0.0.22-alpha.4.js";import"./VConfigEditor.vue_vue_type_script_setup_true_lang.B7v_QaR7.0.0.22-alpha.4.js";import"./ace-builds.NNjqr5wI.0.0.22-alpha.4.js";import"./@vueform.CHroO266.0.0.22-alpha.4.js";import"./types.Cz9TaZAP.0.0.22-alpha.4.js";import"./perfect-debounce.Cp2ysxOb.0.0.22-alpha.4.js";import"./hookable.B8xFkYCm.0.0.22-alpha.4.js";import"./vue-i18n.Bbjcj2Gy.0.0.22-alpha.4.js";import"./@intlify.DXtFJcML.0.0.22-alpha.4.js";import"./axios.C-n2IhIP.0.0.22-alpha.4.js";import"./uuid.Ch9TGLTe.0.0.22-alpha.4.js";import"./socket.io-client.DrXsuVXZ.0.0.22-alpha.4.js";import"./engine.io-client.D5CwtIl4.0.0.22-alpha.4.js";import"./engine.io-parser.BiEtp6m2.0.0.22-alpha.4.js";import"./@socket.io.Dkula2eQ.0.0.22-alpha.4.js";import"./socket.io-parser.CXIwZ5tn.0.0.22-alpha.4.js";import"./rxjs.B0H79Imk.0.0.22-alpha.4.js";import"./tslib.9k7AwCpt.0.0.22-alpha.4.js";import"./vue-inline-svg.D-huj11I.0.0.22-alpha.4.js";import"./nprogress.B98qIj0x.0.0.22-alpha.4.js";import"./mdurl.k9Sl0PQj.0.0.22-alpha.4.js";import"./uc.micro.kMc2yuuw.0.0.22-alpha.4.js";import"./entities.C20TfXL6.0.0.22-alpha.4.js";import"./linkify-it.BXsA74R_.0.0.22-alpha.4.js";import"./punycode.js.Dj65hjkv.0.0.22-alpha.4.js";const Lt={class:"w-full"},jt={key:0,class:"w-full"},zt={class:"flex flex-col justify-center items-center mb-5"},Et={for:"restoreInput",class:"cursor-pointer text-center text-sm"},Ft=["accept"],Ot={key:0,class:"text-red text-sm"},At={key:1,class:"w-full flex flex-col items-center justify-center"},Tt={class:"relative mb-4 w-full"},Qt=["src","type"],Bt={class:"flex items-center justify-center"},Nt={class:"mx-2"},Mt={class:"disabled-text"},Ut={class:"mt-10"},Jt={class:"box-title w-full mb-3"},Rt={key:0,class:"flex items-center justify-center text-sm text-passive mt-5"},Ht=$e({__name:"VAudioDetectionInterface",props:{pluginName:{}},setup(ne){const A=new ke,C=ne,{pluginName:T}=Ee(C),i=l([]),b=l(!1),p=l(!1),P=l(!1),y=l(!1),$=l(null),k=l(null),j=l(Me.join(",")),Q=l(""),z=l({}),h=l(!1),D=l(),_=l(!0),{mutateAsync:E,isPending:B}=A.detectAudioQuery(),{data:F,isLoading:U}=A.getPluginInterfaceQuery(T.value,{type:"audioDetection"}),H=Y(()=>B.value||U.value||h.value),x=n=>{const t=i.value.findIndex(o=>o.name===n);t>-1&&(i.value.splice(t,1),Z(),Q.value="",D.value=void 0)},V=n=>{if(b.value=!1,p.value=!1,y.value=!1,i.value=[],n.dataTransfer)if(n.dataTransfer.files.length>1)p.value=!0;else{const t=n.dataTransfer.files[0];Me.includes(t.type)&&t.size<=Ve?(i.value.push(t),te(()=>{I(t)})):t.size>Ve?y.value=!0:p.value=!0}},K=n=>{var o;p.value=!1,y.value=!1,i.value=[];const t=n.target;if(t&&t.files){if(((o=t.files)==null?void 0:o.length)>1)p.value=!0;else if(t.files.length===1){const m=t.files[0];m.size<=Ve?(i.value.push(m),te(()=>{I(m)})):y.value=!0}}},Z=()=>{$.value&&($.value.value="")},W=n=>n<1024?n+" bytes":n<1048576?(n/1024).toFixed(1)+" KB":(n/1048576).toFixed(1)+" MB",I=n=>{h.value=!0;const t=new Audio;t.src=URL.createObjectURL(n),t.onloadedmetadata=()=>{D.value={mimeType:n.type},h.value=!1}},q=async n=>{if(!i.value.length){P.value=!0;return}h.value=!0;const t=new FormData;t.append("upload",i.value[0]),t.append("config",JSON.stringify(n)),t.append("metadata",JSON.stringify(D.value));try{await E({pluginName:T.value,formData:t})?ze.info(Ue.global.t("components.detection_interface.audio_detected")):ze.info(Ue.global.t("components.detection_interface.audio_not_detected"))}catch(o){console.error("Error detecting audio",o)}finally{h.value=!1}};return X(i,n=>{n.length>0?(P.value=!1,_.value=!1):(Q.value="",D.value=void 0,_.value=!0)},{immediate:!0,deep:!0}),(n,t)=>{const o=we;return a(),u("div",Lt,[s("div",{class:"file-upload-box p-4",onDrop:t[1]||(t[1]=S(m=>V(m),["prevent"])),onDragover:t[2]||(t[2]=S(m=>b.value=!0,["prevent"])),onDragenter:t[3]||(t[3]=S(m=>b.value=!0,["prevent"])),onDragleave:t[4]||(t[4]=S(m=>b.value=!1,["prevent"]))},[e(i).length?(a(),u("div",At,[s("div",Tt,[s("audio",{ref_key:"audioPlayer",ref:k,controls:"",class:"w-full"},[s("source",{src:e(Q),type:e(i)[0].type},null,8,Qt),t[5]||(t[5]=R(" Your browser does not support the audio element. "))],512)]),s("div",Bt,[f(me,{size:"28",variant:"text",color:"red",rounded:"",onClick:t[0]||(t[0]=S(m=>x(e(i)[0].name),["stop"]))},{default:g(()=>[f(ae,{size:"20"},{default:g(()=>[R(d(e(Fe)),1)]),_:1})]),_:1}),s("b",Nt,d(e(i)[0].name),1),s("span",Mt,"("+d(W(e(i)[0].size))+")",1)])])):(a(),u("div",jt,[s("div",zt,[s("label",Et,d(n.$t("components.detection_interface.drop_or_select_audio_to_detect")),1),s("input",{id:"restoreInput",ref_key:"fileInput",ref:$,type:"file",class:"d-none",accept:e(j),onChange:K},null,40,Ft),e(p)?(a(),u("p",Ot,d(n.$t("components.detection_interface.only_one_audio_allowed")),1)):w("",!0),e(P)?(a(),u("p",{key:1,class:G(["text-red text-sm",{"mt-2":e(p)}])},d(n.$t("components.detection_interface.audio_required")),3)):w("",!0),e(y)?(a(),u("p",{key:2,class:G(["text-red text-sm",{"mt-2":e(p)||e(P)}])},d(n.$t("components.detection_interface.file_size_error")),3)):w("",!0)])]))],32),s("div",Ut,[s("div",Jt,d(n.$t("components.detection_interface.interface_config")),1),e(F)&&Object.keys(e(F)).length?(a(),O(o,{key:1,config:e(z),"ui-schema":e(F),loading:e(H),"save-button-label":n.$t("components.detection_interface.detect_audio"),"disable-button":e(_),"save-button-color":"#df2a4c","show-button":"",onOnFormSubmit:q},null,8,["config","ui-schema","loading","save-button-label","disable-button"])):(a(),u("div",Rt,d(n.$t("components.detection_interface.no_interface_config")),1))])])}}}),qt=Ie(Ht,[["__scopeId","data-v-6f1f3d41"]]),Yt={class:"w-full"},Xt={key:0,class:"w-full"},Gt={class:"flex flex-col justify-center items-center mb-5"},Kt={for:"restoreInput",class:"cursor-pointer text-center text-sm"},Zt=["accept"],Wt={key:0,class:"text-red text-sm"},en={key:1,class:"w-full flex flex-col items-center justify-center"},tn={class:"relative mb-4"},nn=["src"],on={class:"flex items-center justify-center"},sn={class:"mx-2"},an={class:"disabled-text"},ln={class:"mt-10"},rn={class:"box-title w-full mb-3"},un={key:0,class:"flex items-center justify-center text-sm text-passive mt-5"},cn={class:"relative"},dn=["src"],fn=$e({__name:"VObjectDetectionInterface",props:{pluginName:{}},setup(ne){const A=new ke,C=ne,{pluginName:T}=Ee(C),i=l([]),b=l(!1),p=l(!1),P=l(!1),y=l(!1),$=l(null),k=l(Je.join(",")),j=l(""),Q=l({}),z=l(!1),h=l(),D=l([]),_=l(!1),E=l(!0),{mutateAsync:B,isPending:F}=A.detectObjectsQuery(),{data:U,isLoading:H}=A.getPluginInterfaceQuery(T.value,{type:"objectDetection"}),x=Y(()=>F.value||H.value||z.value),V=t=>{const o=i.value.findIndex(m=>m.name===t);o>-1&&(i.value.splice(o,1),W(),j.value="",h.value=void 0)},K=t=>{if(b.value=!1,p.value=!1,y.value=!1,i.value=[],t.dataTransfer)if(t.dataTransfer.files.length>1)p.value=!0;else{const o=t.dataTransfer.files[0];Je.includes(o.type)&&o.size<=Le?(i.value.push(o),te(()=>{I(o)})):o.size>Le?y.value=!0:p.value=!0}},Z=t=>{var m;p.value=!1,y.value=!1,i.value=[];const o=t.target;if(o&&o.files){if(((m=o.files)==null?void 0:m.length)>1)p.value=!0;else if(o.files.length===1){const L=o.files[0];L.size<=Le?(i.value.push(L),te(()=>{I(L)})):y.value=!0}}},W=()=>{$.value&&($.value.value="")},I=t=>{z.value=!0;const o=new Image;o.src=URL.createObjectURL(t),o.onload=()=>{j.value=o.src,h.value={width:o.width,height:o.height},z.value=!1}},q=t=>t<1024?t+" bytes":t<1048576?(t/1024).toFixed(1)+" KB":(t/1048576).toFixed(1)+" MB",n=async t=>{if(!i.value.length){P.value=!0;return}z.value=!0;const o=new FormData;o.append("upload",i.value[0]),o.append("config",JSON.stringify(t)),o.append("metadata",JSON.stringify(h.value));try{const m=await B({pluginName:T.value,formData:o});_.value=!0,setTimeout(()=>{D.value=m},300)}catch(m){console.error("Error detecting objects",m)}finally{z.value=!1}};return X(i,t=>{t.length>0?(P.value=!1,E.value=!1):(j.value="",h.value=void 0,E.value=!0)},{immediate:!0,deep:!0}),(t,o)=>{const m=we,L=at,Ce=Ye;return a(),u("div",Yt,[s("div",{class:"file-upload-box p-4",onDrop:o[1]||(o[1]=S(J=>K(J),["prevent"])),onDragover:o[2]||(o[2]=S(J=>b.value=!0,["prevent"])),onDragenter:o[3]||(o[3]=S(J=>b.value=!0,["prevent"])),onDragleave:o[4]||(o[4]=S(J=>b.value=!1,["prevent"]))},[e(i).length?(a(),u("div",en,[s("div",tn,[s("img",{src:e(j),alt:"Preview",class:"w-full"},null,8,nn)]),s("div",on,[f(me,{size:"28",variant:"text",color:"red",rounded:"",onClick:o[0]||(o[0]=S(J=>V(e(i)[0].name),["stop"]))},{default:g(()=>[f(ae,{size:"20"},{default:g(()=>[R(d(e(Fe)),1)]),_:1})]),_:1}),s("b",sn,d(e(i)[0].name),1),s("span",an,"("+d(q(e(i)[0].size))+")",1)])])):(a(),u("div",Xt,[s("div",Gt,[s("label",Kt,d(t.$t("components.detection_interface.drop_or_select_image_to_detect_objects")),1),s("input",{id:"restoreInput",ref_key:"fileInput",ref:$,type:"file",class:"d-none",accept:e(k),onChange:Z},null,40,Zt),e(p)?(a(),u("p",Wt,d(t.$t("components.detection_interface.only_one_image_allowed")),1)):w("",!0),e(P)?(a(),u("p",{key:1,class:G(["text-red text-sm",{"mt-2":e(p)}])},d(t.$t("components.detection_interface.image_required")),3)):w("",!0),e(y)?(a(),u("p",{key:2,class:G(["text-red text-sm",{"mt-2":e(p)||e(P)}])},d(t.$t("components.detection_interface.file_size_error")),3)):w("",!0)])]))],32),s("div",ln,[s("div",rn,d(t.$t("components.detection_interface.interface_config")),1),e(U)&&Object.keys(e(U)).length?(a(),O(m,{key:1,config:e(Q),"ui-schema":e(U),loading:e(x),"save-button-label":t.$t("components.detection_interface.detect_objects"),"disable-button":e(E),"save-button-color":"#df2a4c","show-button":"",onOnFormSubmit:n},null,8,["config","ui-schema","loading","save-button-label","disable-button"])):(a(),u("div",un,d(t.$t("components.detection_interface.no_interface_config")),1))]),f(Ce,{modelValue:e(_),"onUpdate:modelValue":o[5]||(o[5]=J=>fe(_)?_.value=J:null),title:t.$t("components.dialog.title.result"),"hide-confirm-button":"",width:"auto"},{content:g(()=>[s("div",cn,[f(L,{detections:e(D)},null,8,["detections"]),s("img",{src:e(j),alt:"Preview",class:"w-full"},null,8,dn)])]),_:1},8,["modelValue","title"])])}}}),mn=Ie(fn,[["__scopeId","data-v-0c981869"]]),pn={class:"w-full"},vn={key:0,class:"w-full"},gn={class:"flex flex-col justify-center items-center mb-5"},_n={for:"restoreInput",class:"cursor-pointer text-center text-sm"},hn=["accept"],yn={key:0,class:"text-red text-sm"},bn={key:1,class:"w-full flex flex-col items-center justify-center"},xn={class:"relative mb-4 w-full"},wn={class:"flex items-center justify-center"},$n={class:"mx-2"},kn={class:"disabled-text"},In={class:"mt-10"},Cn={class:"box-title w-full mb-3"},Sn={key:0,class:"flex items-center justify-center text-sm text-passive mt-5"},Pn={class:"relative"},Dn=$e({__name:"VMotionDetectionInterface",props:{pluginName:{}},setup(ne){const A=new ke,C=ne,{pluginName:T}=Ee(C),i=l([]),b=l(!1),p=l(!1),P=l(!1),y=l(!1),$=l(null),k=l(null),j=l(null),Q=l(Re.join(",")),z=l({}),h=l(!1),D=l(!1),_=l(!0),{mutateAsync:E,isPending:B}=A.detectMotionQuery(),{data:F,isLoading:U}=A.getPluginInterfaceQuery(T.value,{type:"motionDetection"}),H=Y(()=>B.value||U.value||h.value),x=n=>{const t=i.value.findIndex(o=>o.name===n);t>-1&&(i.value.splice(t,1),Z(),k.value.src="")},V=n=>{if(b.value=!1,p.value=!1,y.value=!1,i.value=[],n.dataTransfer)if(n.dataTransfer.files.length>1)p.value=!0;else{const t=n.dataTransfer.files[0];Re.includes(t.type)&&t.size<=je?(i.value.push(t),te(()=>{I(t)})):t.size>je?y.value=!0:p.value=!0}},K=n=>{var o;p.value=!1,y.value=!1,i.value=[];const t=n.target;if(t&&t.files){if(((o=t.files)==null?void 0:o.length)>1)p.value=!0;else if(t.files.length===1){const m=t.files[0];m.size<=je?(i.value.push(m),te(()=>{I(m)})):y.value=!0}}},Z=()=>{$.value&&($.value.value="")},W=n=>n<1024?n+" bytes":n<1048576?(n/1024).toFixed(1)+" KB":(n/1048576).toFixed(1)+" MB",I=n=>{h.value=!0,k.value.src=URL.createObjectURL(n),k.value.load(),k.value.onloadeddata=()=>{h.value=!1}},q=async n=>{if(!i.value.length){P.value=!0;return}h.value=!0;const t=new FormData;t.append("upload",i.value[0]),t.append("config",JSON.stringify(n));try{const o=await E({pluginName:T.value,formData:t}),m=new Blob([o],{type:"video/mp4"});D.value=!0,setTimeout(()=>{j.value&&(j.value.src=URL.createObjectURL(m),j.value.load())},300)}catch(o){console.error("Error detecting motion",o)}finally{h.value=!1}};return X(i,n=>{n.length>0?(P.value=!1,_.value=!1):_.value=!0},{immediate:!0,deep:!0}),(n,t)=>{const o=we,m=Ye;return a(),u("div",pn,[s("div",{class:"file-upload-box p-4",onDrop:t[1]||(t[1]=S(L=>V(L),["prevent"])),onDragover:t[2]||(t[2]=S(L=>b.value=!0,["prevent"])),onDragenter:t[3]||(t[3]=S(L=>b.value=!0,["prevent"])),onDragleave:t[4]||(t[4]=S(L=>b.value=!1,["prevent"]))},[e(i).length?(a(),u("div",bn,[s("div",xn,[s("video",{ref_key:"videoPlayer",ref:k,controls:"",class:"w-full"},"Your browser does not support the video tag.",512)]),s("div",wn,[f(me,{size:"28",variant:"text",color:"red",rounded:"",onClick:t[0]||(t[0]=S(L=>x(e(i)[0].name),["stop"]))},{default:g(()=>[f(ae,{size:"20"},{default:g(()=>[R(d(e(Fe)),1)]),_:1})]),_:1}),s("b",$n,d(e(i)[0].name),1),s("span",kn,"("+d(W(e(i)[0].size))+")",1)])])):(a(),u("div",vn,[s("div",gn,[s("label",_n,d(n.$t("components.detection_interface.drop_or_select_video_to_detect_motion")),1),s("input",{id:"restoreInput",ref_key:"fileInput",ref:$,type:"file",class:"d-none",accept:e(Q),onChange:K},null,40,hn),e(p)?(a(),u("p",yn,d(n.$t("components.detection_interface.only_one_video_allowed")),1)):w("",!0),e(P)?(a(),u("p",{key:1,class:G(["text-red text-sm",{"mt-2":e(p)}])},d(n.$t("components.detection_interface.video_required")),3)):w("",!0),e(y)?(a(),u("p",{key:2,class:G(["text-red text-sm",{"mt-2":e(p)||e(P)}])},d(n.$t("components.detection_interface.file_size_error")),3)):w("",!0)])]))],32),s("div",In,[s("div",Cn,d(n.$t("components.detection_interface.interface_config")),1),e(F)&&Object.keys(e(F)).length?(a(),O(o,{key:1,config:e(z),"ui-schema":e(F),loading:e(H),"save-button-label":n.$t("components.detection_interface.detect_motion"),"disable-button":e(_),"save-button-color":"#df2a4c","show-button":"",onOnFormSubmit:q},null,8,["config","ui-schema","loading","save-button-label","disable-button"])):(a(),u("div",Sn,d(n.$t("components.detection_interface.no_interface_config")),1))]),f(m,{modelValue:e(D),"onUpdate:modelValue":t[5]||(t[5]=L=>fe(D)?D.value=L:null),title:n.$t("components.dialog.title.result"),"hide-confirm-button":"",width:"auto"},{content:g(()=>[s("div",Pn,[s("video",{ref_key:"videoPlayerResult",ref:j,controls:"",class:"w-full"},"Your browser does not support the video tag.",512)])]),_:1},8,["modelValue","title"])])}}}),Vn=Ie(Dn,[["__scopeId","data-v-18a3da94"]]),Ln={key:0,class:"flex items-center justify-center w-full h-full"},jn={key:1,class:"h-full w-full"},zn={class:"page-title"},En={class:"flex flex-col flex-1 inner-component mt-0 p-4"},Fn={class:"box-title w-full mb-3"},On={key:0,class:"w-full h-full flex items-center justify-center"},An={key:1},Tn={class:"options-segments flex items-center justify-between"},Qn={class:"flex flex-col items-center justify-center"},Bn={class:"options-segments-text mt-2"},Nn={key:1},Mn={key:2},Un={key:3},Jn={key:4},Rn={class:"w-full full-inner-height"},Hn={class:"flex flex-col md:flex-row gap-2 h-full"},qn={class:"flex flex-col flex-1",style:{height:"200px","max-height":"200px"}},Yn={key:0,class:"w-full h-full flex items-center justify-center inner-component mt-0"},Xn={class:"flex flex-col flex-1 inner-component mt-0 p-4"},Gn={class:"box-title w-full mb-3"},Kn={key:0,class:"w-full h-full flex items-center justify-center"},Zn=["innerHTML"],Wn={class:"flex flex-col flex-1 inner-component mt-0 p-4"},eo={class:"box-title w-full mb-3"},to={key:0,class:"w-full h-full flex items-center justify-center"},no=["innerHTML"],oo=["data-ignore-id"],so=$e({__name:"Plugin",setup(ne){se.registerLanguage("typescript",kt),se.registerLanguage("yaml",It),se.registerLanguage("json",Ct),se.registerLanguage("python",St);const A=new lt,C=new ke,T=mt(),i=Dt(),{mobileActive:b,smallMobileActive:p}=pt(),P=l(vt()),y=l(),$=l(!1),k=l([]),j=l(!1),Q=l(i.params.scope),z=l(i.params.pluginname),h=l(),D=l([]),_=l({name:"settings",icon:ce,isInterface:!1}),E=l(!1),B=l(),F=l(),[U,H]=Vt(),x=Y(()=>Q.value?`${Q.value}/${z.value}`:z.value);C.toggleQueryActivator("getPluginContractQuery",!1);const{data:V,isLoading:K}=C.getPluginQuery(x),{data:Z,isLoading:W}=C.getPluginConfigJsonQuery(x),{data:I,isLoading:q}=C.getPluginSchemaQuery(x),{data:n}=C.getPluginContractQuery(x),{data:t,isLoading:o}=C.getPluginReadmeQuery(x),{data:m,isLoading:L}=C.getPluginChangelogQuery(x),{mutateAsync:Ce,isPending:J}=C.actionButtonQuery(),{mutate:Xe,isPending:Ge}=C.patchPluginConfigQuery(),{mutate:Ke,isPending:Ze}=A.addCameraExtensionQuery(),{mutate:We,isPending:et}=A.removeCameraExtensionQuery(),Oe=Y(()=>!!(K.value||W.value||q.value||o.value||L.value)),pe=Y(()=>!!(Ze.value||et.value)),le=Y(()=>!!($.value||J.value||Ge.value)),ve=Y(()=>{var r,c,N;return!!(I.value||(r=n.value)!=null&&r.cameras.length||(c=n.value)!=null&&c.contract.extension||(N=n.value)!=null&&N.contract.supportAdditionalCameras)}),Se=Pt("commonmark",{highlight(r,c){if(c&&se.getLanguage(c))try{return'<pre><code class="hljs">'+se.highlight(r,{language:c,ignoreIllegals:!0}).value+"</code></pre>"}catch{}return'<pre><code class="hljs">'+Se.utils.escapeHtml(r)+"</code></pre>"}});X(()=>i.params.pluginname,()=>{z.value=i.params.pluginname},{deep:!0,immediate:!0}),X(h,r=>{te(()=>j.value=!!r)}),X(I,()=>{q.value?C.toggleQueryActivator("getPluginContractQuery",!1):C.toggleQueryActivator("getPluginContractQuery",!0)},{deep:!0,immediate:!0}),X(n,()=>{var ge,_e,he,ye,be,xe,ie,re,ue,v;const r=[];let c=!1,N=!1;((ge=n.value)==null?void 0:ge.contract.extension)==="motionDetection"&&(N=!0,r.push({name:"motion_detection",icon:oe,isInterface:!0}),_.value={name:"motion_detection",icon:oe,isInterface:!0}),((_e=n.value)==null?void 0:_e.contract.extension)==="objectDetection"&&(N=!0,r.push({name:"object_detection",icon:oe,isInterface:!0}),_.value={name:"object_detection",icon:oe,isInterface:!0}),((he=n.value)==null?void 0:he.contract.extension)==="audioDetection"&&(N=!0,r.push({name:"audio_detection",icon:oe,isInterface:!0}),_.value={name:"audio_detection",icon:oe,isInterface:!0}),I.value&&I.value.schema&&Object.keys(I.value.schema).length&&(r.push({name:"settings",icon:ce,isInterface:!1}),c=!0,N||(_.value={name:"settings",icon:ce,isInterface:!1})),((ye=n.value)!=null&&ye.cameras.length||(be=n.value)!=null&&be.contract.extension||(xe=n.value)!=null&&xe.contract.supportAdditionalCameras)&&(r.push({name:"cameras",icon:Ne,isInterface:!1}),!c&&!N&&(_.value={name:"cameras",icon:Ne,isInterface:!1})),D.value=r,((ie=n.value)!=null&&ie.contract.extension||(re=n.value)!=null&&re.contract.supportAdditionalCameras)&&((ue=n.value)!=null&&ue.cameras.length)&&(k.value=(v=n.value)==null?void 0:v.cameras.filter(ee=>ee.extensions.plugins.includes(x.value)).map(ee=>ee.name))},{deep:!0,immediate:!0}),X(E,r=>{r||(B.value=void 0,F.value=void 0)});const tt=async r=>{if(!I.value)return;$.value=!0;const c=ut(I.value.schema,r);Xe({pluginName:x.value,configData:c},{onSettled:()=>{$.value=!1}})},nt=async r=>{$.value=!0,await Ce({pluginName:x.value,actionId:r.actionId,payload:r.payload},{onSuccess:c=>{c!=null&&c.toast&&ze[c.toast.type](c.toast.message),c!=null&&c.schema&&Object.keys(c.schema).length&&(F.value=r.payload,B.value=c,E.value=!0)},onSettled:()=>{$.value=!1}})},ot=async r=>{V.value&&(k.value.includes(r.name)?We({cameraname:r.name,pluginname:V.value.pluginName},{onSuccess:()=>{k.value=k.value.filter(c=>c!==r.name)}}):Ke({cameraname:r.name,pluginname:V.value.pluginName},{onSuccess:()=>{k.value=[...k.value,r.name]}}))};return dt(()=>{y.value=T.connectToNamespace("/plugins")}),ft(()=>{var r,c;(c=(r=y.value)==null?void 0:r.end)==null||c.call(r)}),(r,c)=>{var ie,re,ue;const N=we,ge=Vn,_e=mn,he=qt,ye=ct,be=it,xe=rt;return a(),u("main",{class:G(["w-full h-full",{"px-0":e(p)}])},[e(Oe)?(a(),u("div",Ln,[f(de,{color:"#df2a4c",indeterminate:""})])):(a(),u("div",jn,[s("div",{class:G(["mb-3 flex w-full items-center",{"px-2":e(p)}]),style:{height:"30px"}},[s("h1",zn,d((ie=e(V))==null?void 0:ie.displayName),1)],2),f(e(U),null,{default:g(()=>[s("div",{class:"plugin-settings-box flex flex-col gap-2 h-full",style:Be({width:e(ve)&&!e(b)?"40%":"100%"})},[s("div",En,[s("div",Fn,d(r.$t("views.plugin.plugin_settings")),1),e(V)?(a(),u("div",An,[s("div",Tn,[f(gt,{modelValue:e(_),"onUpdate:modelValue":c[0]||(c[0]=v=>fe(_)?_.value=v:null),height:"100%",grow:"","slider-color":"#df2a4c","hide-slider":e(pe)||e(le)},{default:g(()=>[(a(!0),u(Pe,null,De(e(D),(v,ee)=>(a(),O(_t,{key:ee,value:v,disabled:e(Oe)||v.isInterface&&e(V).disabled,"min-width":"auto"},{default:g(()=>[s("div",Qn,[f(ae,{size:"20"},{default:g(()=>[R(d(v.icon),1)]),_:2},1024),s("span",Bn,d(v.isInterface?r.$t("views.plugin.segment_tab_interface"):r.$t(`views.plugin.segment_tab_${v.name.toLowerCase()}`)),1)])]),_:2},1032,["value","disabled"]))),128))]),_:1},8,["modelValue","hide-slider"])]),e(pe)||e(le)?(a(),O(ht,{key:0,height:"2",color:"#df2a4c",indeterminate:"",style:{"margin-top":"-2px"}})):w("",!0),f(yt,{modelValue:e(_),"onUpdate:modelValue":c[1]||(c[1]=v=>fe(_)?_.value=v:null),class:"box-content w-full flex-1 mt-3",continuous:""},{default:g(()=>[(a(!0),u(Pe,null,De(e(D),(v,ee)=>(a(),O($t,{key:ee,value:{name:v.name,icon:v.icon,isInterface:v.isInterface},disabled:v.isInterface&&e(V).disabled},{default:g(()=>{var Ae;return[v.name==="settings"&&e(I)?(a(),O(N,{key:0,config:e(Z)||{},"ui-schema":e(I),loading:e(le),onOnFormSubmit:tt,onOnSubmit:nt},null,8,["config","ui-schema","loading"])):w("",!0),v.name==="cameras"?(a(),u("div",Nn,[(a(!0),u(Pe,null,De((Ae=e(n))==null?void 0:Ae.cameras,M=>{var Te,Qe;return a(),u("div",{key:M.name},[!((Te=e(n))!=null&&Te.contract.extension)&&!((Qe=e(n))!=null&&Qe.contract.supportAdditionalCameras)?(a(),O(He,{key:0,"select-strategy":"classic",class:"py-0",disabled:e(pe)||e(le),"onClick:select":()=>r.$router.push(`/cameras/${M.name}`)},{default:g(()=>[f(qe,{value:M.name,class:"px-2"},{append:g(()=>[f(me,{class:"ml-auto",size:"28",rounded:"",density:"compact",variant:"text",onClick:S(st=>h.value=M.name,["stop"])},{default:g(()=>[f(ae,{size:"18"},{default:g(()=>[R(d(e(ce)),1)]),_:1})]),_:2},1032,["onClick"])]),default:g(()=>[R(d(M.name)+" ",1)]),_:2},1032,["value"])]),_:2},1032,["disabled","onClick:select"])):(a(),O(He,{key:1,"select-strategy":"classic",class:"py-0",disabled:e(pe)||e(le),"onUpdate:selected":()=>ot(M)},{default:g(()=>[f(qe,{class:"px-2",value:e(V).pluginName,active:e(k).includes(M.name)},{prepend:g(()=>[f(bt,{start:""},{default:g(()=>[f(xt,{"model-value":e(k).includes(M.name),color:"#df2a4c"},null,8,["model-value"])]),_:2},1024)]),append:g(()=>[f(me,{class:"ml-auto",size:"28",rounded:"",density:"compact",variant:"text",onClick:S(st=>h.value=M.name,["stop"])},{default:g(()=>[f(ae,{size:"18"},{default:g(()=>[R(d(e(ce)),1)]),_:1})]),_:2},1032,["onClick"])]),default:g(()=>[R(d(M.name)+" ",1)]),_:2},1032,["value","active"])]),_:2},1032,["disabled","onUpdate:selected"])),f(wt,{style:{"border-color":"rgba(var(--color-rgb), 0.1)",opacity:"1"},class:"my-1"})])}),128))])):w("",!0),v.name==="motion_detection"?(a(),u("div",Mn,[f(ge,{"plugin-name":e(x)},null,8,["plugin-name"])])):w("",!0),v.name==="object_detection"?(a(),u("div",Un,[f(_e,{"plugin-name":e(x)},null,8,["plugin-name"])])):w("",!0),v.name==="audio_detection"?(a(),u("div",Jn,[f(he,{"plugin-name":e(x)},null,8,["plugin-name"])])):w("",!0)]}),_:2},1032,["value","disabled"]))),128))]),_:1},8,["modelValue"])])):(a(),u("div",On,[f(de,{color:"#df2a4c",indeterminate:""})]))])],4)]),_:1}),s("div",Rn,[s("div",Hn,[s("div",{class:"w-full flex flex-col gap-2 h-full",style:Be({width:e(ve)&&!e(b)?"60%":"100%"})},[s("div",qn,[e(V)?(a(),O(ye,{key:1,ref:"pluginRef",plugin:e(V),"min-height":"175px",height:"100%",width:"100%","border-radius":"4px","show-toggle":"","show-settings":"","show-logo":"","show-plugin-status":"","show-logs":"","show-configs":"",onIsLoading:c[2]||(c[2]=v=>$.value=v)},null,8,["plugin"])):(a(),u("div",Yn,[f(de,{color:"#df2a4c",indeterminate:""})]))]),e(ve)&&e(b)?(a(),O(e(H),{key:0})):w("",!0),s("div",Xn,[s("div",Gn,d(r.$t("views.plugin.readme")),1),e(o)?(a(),u("div",Kn,[f(de,{color:"#df2a4c",indeterminate:""})])):(a(),u("div",{key:1,class:"box-content w-full h-full flex-1 markdown-body pt-1",innerHTML:e(Se).render(e(t)||r.$t("views.plugin.no_readme"))},null,8,Zn))]),s("div",Wn,[s("div",eo,d(r.$t("views.plugin.changelog")),1),e(L)?(a(),u("div",to,[f(de,{color:"#df2a4c",indeterminate:""})])):(a(),u("div",{key:1,class:"box-content w-full h-full flex-1 markdown-body pt-1",innerHTML:e(Se).render(e(m)||r.$t("views.plugin.no_changelog"))},null,8,no))])],4),e(ve)&&!e(b)?(a(),O(e(H),{key:0})):w("",!0)])])])),e(h)?(a(),u("div",{key:2,"data-ignore-id":e(P)},[f(be,{"camera-name":e(h),show:e(j),onClose:c[3]||(c[3]=v=>h.value=void 0)},null,8,["camera-name","show"])],8,oo)):w("",!0),(ue=(re=e(B))==null?void 0:re.schema)!=null&&ue.config?(a(),O(xe,{key:3,modelValue:e(E),"onUpdate:modelValue":c[4]||(c[4]=v=>fe(E)?E.value=v:null),"ui-schema":{schema:e(B).schema},"plugin-config":e(F)||{},"plugin-name":e(x)},null,8,["modelValue","ui-schema","plugin-config","plugin-name"])):w("",!0)],2)}}}),ts=Ie(so,[["__scopeId","data-v-aa826472"]]);export{ts as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as S,d as C,y as I,w as R}from"./main.B0K-4JOd.0.0.22-alpha.4.js";import{_ as Q}from"./VPluginCard.DGbd842s.0.0.22-alpha.4.js";import{P as z}from"./plugins.BcmR7QWO.0.0.22-alpha.4.js";import{c as T,Q as j,m as A,n as F,C as U,b as G,A as q,e as E}from"./vuetify.RJ3sTMIi.0.0.22-alpha.4.js";import{G as B,r,w as H,b as s,d as i,R as l,ab as f,f as n,a9 as c,u as e,i as L,a7 as M,ac as k,Q as P,ad as $,k as J,S as K,P as O,g as V,_ as W,p as X}from"./@vue.Bp1OB7S5.0.0.22-alpha.4.js";import{e as Y}from"./@mdi.C1UTQKuc.0.0.22-alpha.4.js";import"./vue3-toastify.By4kIIkm.0.0.22-alpha.4.js";import"./vue-i18n.Bbjcj2Gy.0.0.22-alpha.4.js";import"./@intlify.DXtFJcML.0.0.22-alpha.4.js";import"./axios.C-n2IhIP.0.0.22-alpha.4.js";import"./@tanstack.BZ6z_pXT.0.0.22-alpha.4.js";import"./pinia.DFj3JtXk.0.0.22-alpha.4.js";import"./vue-router.DUnEf2pS.0.0.22-alpha.4.js";import"./@vueuse.VjnMnlmr.0.0.22-alpha.4.js";import"./nprogress.B98qIj0x.0.0.22-alpha.4.js";import"./@xterm.C76QGakq.0.0.22-alpha.4.js";import"./vee-validate.BPLWdsmG.0.0.22-alpha.4.js";import"./@vee-validate.B9vZN9hh.0.0.22-alpha.4.js";import"./zod.DnW1_kUe.0.0.22-alpha.4.js";import"./uuid.Ch9TGLTe.0.0.22-alpha.4.js";import"./socket.io-client.DrXsuVXZ.0.0.22-alpha.4.js";import"./engine.io-client.D5CwtIl4.0.0.22-alpha.4.js";import"./engine.io-parser.BiEtp6m2.0.0.22-alpha.4.js";import"./@socket.io.Dkula2eQ.0.0.22-alpha.4.js";import"./socket.io-parser.CXIwZ5tn.0.0.22-alpha.4.js";import"./rxjs.B0H79Imk.0.0.22-alpha.4.js";import"./tslib.9k7AwCpt.0.0.22-alpha.4.js";import"./vue-inline-svg.D-huj11I.0.0.22-alpha.4.js";import"./perfect-debounce.Cp2ysxOb.0.0.22-alpha.4.js";import"./hookable.B8xFkYCm.0.0.22-alpha.4.js";import"./VConfigEditor.vue_vue_type_script_setup_true_lang.B7v_QaR7.0.0.22-alpha.4.js";import"./ace-builds.NNjqr5wI.0.0.22-alpha.4.js";import"./@vueform.CHroO266.0.0.22-alpha.4.js";import"./VConsole.DV2h1LQB.0.0.22-alpha.4.js";import"./types.Cz9TaZAP.0.0.22-alpha.4.js";const Z={class:"v-label"},ee={class:"flex flex-row items-center justify-center w-full mt-8"},te={class:"flex flex-col items-center justify-center w-full mt-3"},le={key:0,class:"my-3"},oe={key:1,class:"search-container w-full overflow-scroll hide-scrollbar"},se=B({__name:"VPluginSearch",setup(N){const a=new z,{smallMobileActive:v}=S(),y=r({page:1,pageSize:-1}),w=r({}),u=r(""),d=r([]),{data:g,isLoading:p}=a.searchPluginsQuery(w,y);H(g,t=>{t!=null&&t.result&&(d.value=t.result.filter(o=>!o.installPath))},{immediate:!0,deep:!0});const h=t=>{t.preventDefault(),w.value.pluginname=u.value??""};return(t,o)=>{const x=Q;return s(),i("div",null,[l(j,{class:"ml-auto",onSubmit:h},{default:f(()=>[n("label",Z,c(t.$t("components.form.label.name")),1),l(T,{modelValue:e(u),"onUpdate:modelValue":o[0]||(o[0]=_=>L(u)?u.value=_:null),placeholder:"camera-ui-","hide-details":"",clearable:"",solo:"",variant:"outlined",density:"comfortable","onClick:clear":h},null,8,["modelValue"])]),_:1}),n("div",ee,[n("h3",null,c(t.$t("components.plugin_search.plugins")),1),l(A,{size:"small",class:"ml-auto",color:"#df2a4c"},{default:f(()=>[M(c(e(d).length),1)]),_:1})]),l(F,{style:{"border-color":"rgba(var(--color-rgb), 0.1)",opacity:"1"},class:"mt-3"}),l(U,{active:e(p),indeterminate:e(p),color:"#df2a4c",height:"2px"},null,8,["active","indeterminate"]),n("div",te,[!e(p)&&!e(d).length?(s(),i("div",le,c(t.$t("views.plugins.no_plugins")),1)):e(p)?J("",!0):(s(),i("div",oe,[n("div",{class:"grid gap-2",style:k(`grid-template-columns: repeat(auto-fill, minmax(${e(v)?"100%":"450px"}, 1fr))`)},[(s(!0),i(P,null,$(e(d),(_,m)=>(s(),i("div",{key:m,class:"relative"},[l(x,{plugin:_,height:"200px","max-height":"200px",width:"100%",background:"var(--background-inner-component-card)","min-width":e(v)?"100%":"450px","show-install-button":"","show-plugin-type":!1,"show-plugin-code":!1,"show-full-plugin-name":""},null,8,["plugin","min-width"])]))),128))],4)]))])])}}}),ie=C(se,[["__scopeId","data-v-0d35625b"]]),ae={class:"page-title"},ne={class:"w-full flex justify-center items-center mt-3"},re=B({__name:"Plugins",setup(N){const{smallMobileActive:a}=S(),v=I(),y=new z,w=r(null),u=r(),d=r({page:1,pageSize:-1}),g=r(!1),{data:p,isLoading:h}=y.getPluginsQuery(d);return K(()=>{u.value=v.connectToNamespace("/plugins")}),O(()=>{var t,o;(o=(t=u.value)==null?void 0:t.end)==null||o.call(t)}),(t,o)=>{const x=ie,_=R;return s(),i("main",{class:V(["w-full h-full",{"px-0":e(a)}])},[n("div",{class:V(["mb-3 flex w-full items-center",{"px-2":e(a)}]),style:{height:"30px"}},[n("h1",ae,c(t.$t(`views.${String(t.$route.name).toLowerCase()}.title`)),1)],2),l(W,{name:"fade",tag:"div"},{default:f(()=>{var m;return[e(h)?(s(),i("div",{key:0,class:"grid gap-2",style:k(`grid-template-columns: repeat(auto-fill, minmax(${e(a)?"100%":"450px"}, 1fr))`)},[(s(),i(P,null,$(15,b=>l(q,{key:b,elevation:1,type:"image",class:"relative",style:{"border-radius":"8px",overflow:"hidden"},height:175})),64))],4)):(m=e(p))!=null&&m.result.length?(s(),i("div",{key:2,class:"grid gap-2",style:k(`grid-template-columns: repeat(auto-fill, minmax(${e(a)?"100%":"450px"}, 1fr))`)},[(s(!0),i(P,null,$(e(p).result,(b,D)=>(s(),i("div",{key:D,class:"relative"},[l(Q,{ref_for:!0,ref_key:"pluginRef",ref:w,plugin:b,height:"200px","max-height":"200px",width:"100%","min-width":e(a)?"100%":"450px","border-radius":e(a)?"0px":"8px","show-toggle":"","show-settings":"","show-logo":"","show-plugin-status":"","show-logs":"","show-configs":""},null,8,["plugin","min-width","border-radius"])]))),128))],4)):(s(),i("div",{key:1,class:V(["disabled-text",{"px-2":e(a)}])},c(t.$t("views.plugins.no_plugins")),3))]}),_:1}),n("div",ne,[l(G,{variant:"text",color:"#df2a4c",icon:"",onClick:o[0]||(o[0]=X(m=>g.value=!0,["prevent"]))},{default:f(()=>[l(E,{size:"30"},{default:f(()=>[M(c(e(Y)),1)]),_:1})]),_:1})]),l(_,{modelValue:e(g),"onUpdate:modelValue":o[1]||(o[1]=m=>L(g)?g.value=m:null),title:t.$t("components.dialog.title.search_plugin"),"hide-confirm-button":"",loading:e(h),fullscreen:""},{content:f(()=>[l(x)]),_:1},8,["modelValue","title","loading"])],2)}}}),qe=C(re,[["__scopeId","data-v-8648604f"]]);export{qe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as p}from"./main.B0K-4JOd.0.0.22-alpha.4.js";import{G as m,b as s,d as a,f as r,a9 as l,g as i,u as e}from"./@vue.Bp1OB7S5.0.0.22-alpha.4.js";import"./vue3-toastify.By4kIIkm.0.0.22-alpha.4.js";import"./vue-i18n.Bbjcj2Gy.0.0.22-alpha.4.js";import"./@intlify.DXtFJcML.0.0.22-alpha.4.js";import"./axios.C-n2IhIP.0.0.22-alpha.4.js";import"./@tanstack.BZ6z_pXT.0.0.22-alpha.4.js";import"./pinia.DFj3JtXk.0.0.22-alpha.4.js";import"./vue-router.DUnEf2pS.0.0.22-alpha.4.js";import"./@vueuse.VjnMnlmr.0.0.22-alpha.4.js";import"./nprogress.B98qIj0x.0.0.22-alpha.4.js";import"./@xterm.C76QGakq.0.0.22-alpha.4.js";import"./vuetify.RJ3sTMIi.0.0.22-alpha.4.js";import"./@mdi.C1UTQKuc.0.0.22-alpha.4.js";import"./vee-validate.BPLWdsmG.0.0.22-alpha.4.js";import"./@vee-validate.B9vZN9hh.0.0.22-alpha.4.js";import"./zod.DnW1_kUe.0.0.22-alpha.4.js";import"./uuid.Ch9TGLTe.0.0.22-alpha.4.js";import"./socket.io-client.DrXsuVXZ.0.0.22-alpha.4.js";import"./engine.io-client.D5CwtIl4.0.0.22-alpha.4.js";import"./engine.io-parser.BiEtp6m2.0.0.22-alpha.4.js";import"./@socket.io.Dkula2eQ.0.0.22-alpha.4.js";import"./socket.io-parser.CXIwZ5tn.0.0.22-alpha.4.js";import"./rxjs.B0H79Imk.0.0.22-alpha.4.js";import"./tslib.9k7AwCpt.0.0.22-alpha.4.js";import"./vue-inline-svg.D-huj11I.0.0.22-alpha.4.js";import"./perfect-debounce.Cp2ysxOb.0.0.22-alpha.4.js";import"./hookable.B8xFkYCm.0.0.22-alpha.4.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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as r}from"./main.B0K-4JOd.0.0.22-alpha.4.js";import{b as o,d as t}from"./@vue.Bp1OB7S5.0.0.22-alpha.4.js";import"./vue3-toastify.By4kIIkm.0.0.22-alpha.4.js";import"./vue-i18n.Bbjcj2Gy.0.0.22-alpha.4.js";import"./@intlify.DXtFJcML.0.0.22-alpha.4.js";import"./axios.C-n2IhIP.0.0.22-alpha.4.js";import"./@tanstack.BZ6z_pXT.0.0.22-alpha.4.js";import"./pinia.DFj3JtXk.0.0.22-alpha.4.js";import"./vue-router.DUnEf2pS.0.0.22-alpha.4.js";import"./@vueuse.VjnMnlmr.0.0.22-alpha.4.js";import"./nprogress.B98qIj0x.0.0.22-alpha.4.js";import"./@xterm.C76QGakq.0.0.22-alpha.4.js";import"./vuetify.RJ3sTMIi.0.0.22-alpha.4.js";import"./@mdi.C1UTQKuc.0.0.22-alpha.4.js";import"./vee-validate.BPLWdsmG.0.0.22-alpha.4.js";import"./@vee-validate.B9vZN9hh.0.0.22-alpha.4.js";import"./zod.DnW1_kUe.0.0.22-alpha.4.js";import"./uuid.Ch9TGLTe.0.0.22-alpha.4.js";import"./socket.io-client.DrXsuVXZ.0.0.22-alpha.4.js";import"./engine.io-client.D5CwtIl4.0.0.22-alpha.4.js";import"./engine.io-parser.BiEtp6m2.0.0.22-alpha.4.js";import"./@socket.io.Dkula2eQ.0.0.22-alpha.4.js";import"./socket.io-parser.CXIwZ5tn.0.0.22-alpha.4.js";import"./rxjs.B0H79Imk.0.0.22-alpha.4.js";import"./tslib.9k7AwCpt.0.0.22-alpha.4.js";import"./vue-inline-svg.D-huj11I.0.0.22-alpha.4.js";import"./perfect-debounce.Cp2ysxOb.0.0.22-alpha.4.js";import"./hookable.B8xFkYCm.0.0.22-alpha.4.js";const i={};function m(p,e){return o(),t("div",null,"Test")}const G=r(i,[["render",m]]);export{G as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{G as P,t as te,r,c as g,w as p,S as oe,x as ae,a5 as q,b as l,d as h,f as s,Q as K,ad as se,aa as D,ab as S,R as x,a7 as ne,a9 as R,u as o,k as E,ac as N,$ as J,E as ie,g as Q,p as re,K as le}from"./@vue.Bp1OB7S5.0.0.22-alpha.4.js";import{h as ce,f as U,S as Z,B as ue,T as de,Q as pe,d as Y,R as j,j as F}from"./main.B0K-4JOd.0.0.22-alpha.4.js";import{u as ee,a as me}from"./vue-router.DUnEf2pS.0.0.22-alpha.4.js";import{o as fe,f as ve,g as be}from"./@vueuse.VjnMnlmr.0.0.22-alpha.4.js";import{s as _e}from"./pinia.DFj3JtXk.0.0.22-alpha.4.js";import{e as he,b as ge}from"./vuetify.RJ3sTMIi.0.0.22-alpha.4.js";import{C as Se,G as xe}from"./@mdi.C1UTQKuc.0.0.22-alpha.4.js";import"./perfect-debounce.Cp2ysxOb.0.0.22-alpha.4.js";import"./hookable.B8xFkYCm.0.0.22-alpha.4.js";import"./vue3-toastify.By4kIIkm.0.0.22-alpha.4.js";import"./vue-i18n.Bbjcj2Gy.0.0.22-alpha.4.js";import"./@intlify.DXtFJcML.0.0.22-alpha.4.js";import"./axios.C-n2IhIP.0.0.22-alpha.4.js";import"./@tanstack.BZ6z_pXT.0.0.22-alpha.4.js";import"./vee-validate.BPLWdsmG.0.0.22-alpha.4.js";import"./@vee-validate.B9vZN9hh.0.0.22-alpha.4.js";import"./zod.DnW1_kUe.0.0.22-alpha.4.js";import"./uuid.Ch9TGLTe.0.0.22-alpha.4.js";import"./socket.io-client.DrXsuVXZ.0.0.22-alpha.4.js";import"./engine.io-client.D5CwtIl4.0.0.22-alpha.4.js";import"./engine.io-parser.BiEtp6m2.0.0.22-alpha.4.js";import"./@socket.io.Dkula2eQ.0.0.22-alpha.4.js";import"./socket.io-parser.CXIwZ5tn.0.0.22-alpha.4.js";import"./rxjs.B0H79Imk.0.0.22-alpha.4.js";import"./tslib.9k7AwCpt.0.0.22-alpha.4.js";import"./vue-inline-svg.D-huj11I.0.0.22-alpha.4.js";import"./nprogress.B98qIj0x.0.0.22-alpha.4.js";import"./@xterm.C76QGakq.0.0.22-alpha.4.js";var T=(u=>(u[u.MAXWIDTH=280]="MAXWIDTH",u))(T||{});const ye={class:"flex flex-col w-full pb-safe"},ke={class:"flex flex-row navigation-text"},we={class:"ml-5"},Be={class:"navigation-title"},Ie={key:0},$e={key:0,class:"overlay"},Ce=P({__name:"VSubNavigation",props:{routes:{},description:{type:Boolean,default:!1},state:{type:Boolean,default:!1}},emits:["inner-sidebar-state"],setup(u,{emit:y}){const k=ce(),{desktopActive:n,mobileActive:A,extraSmallMobileActive:c}=U(),m=ee(),f=ve(pe),i=y,H=u,{uiSettings:v}=_e(k),{routes:w,state:b,description:B}=te(H),I=r(null),t=r(),a=r(),V=g(()=>{let e=`calc(${$.value}px + env(safe-area-inset-left, 0px))`;return a.value==="closed"&&t.value==="closed"&&(e=`calc(${$.value}px - env(safe-area-inset-left, 0px))`),e}),$=g(()=>{let e=0;switch(a.value){case"opened":e=Z.MAXWIDTH;break;case"minified":e=Z.MINWIDTH;break;case"closed":e=0;break}return!n.value&&!b.value&&(e-=T.MAXWIDTH),e}),C=g(()=>{var e;return c.value&&((e=m.meta)!=null&&e.navigation.showMobileBottomBar)&&v.value.interface.showBottomBarOnMobile?ue.HEIGHT:0});return fe(I,e=>{if(n.value||t.value==="closed")return;e.target.closest(".no-outside")||(t.value="closed")}),f.on(e=>{e.sidebarState&&(a.value=e.sidebarState)}),p(n,e=>{t.value=e?"opened":"closed"}),p(b,e=>{t.value=e?n.value?"opened":"overlay":"closed"}),p(t,e=>{e&&(f.emit({subNavigationState:e}),i("inner-sidebar-state",e))}),oe(()=>{var e;A.value||(e=m.meta)!=null&&e.ui.noMinifiedSidebar?a.value="closed":a.value="minified"}),ae(()=>{var _;t.value=n.value?"opened":"closed";const e=(_=m.name)==null?void 0:_.toString().toLowerCase(),M=document.getElementById(e);M&&setTimeout(()=>{M.scrollIntoView({behavior:"smooth"})},100)}),(e,M)=>{const _=q("router-link");return l(),h(K,null,[s("div",{ref_key:"innerSidebar",ref:I,class:"inner-sidebar-settings",style:N({left:o(V),maxWidth:`${o(T).MAXWIDTH}px`,height:`calc(100dvh - ${o(de).HEIGHT}px - ${o(C)}px)`})},[s("div",ye,[(l(!0),h(K,null,se(o(w),(d,W)=>{var z;return l(),D(_,{id:(z=d.name)==null?void 0:z.toString().toLowerCase(),key:W,class:"navigation-inner",to:d.path,style:N({"border-bottom":W!==o(w).length-1?"1px solid var(--border)":void 0})},{default:S(()=>{var L,O,X;return[s("div",ke,[x(he,{size:((L=d.meta)==null?void 0:L.navigation.iconSize)||"20",class:"navigation-icon"},{default:S(()=>{var G;return[ne(R((G=d.meta)==null?void 0:G.navigation.icon),1)]}),_:2},1032,["size"]),s("div",we,[s("b",Be,R(e.$t(`navigation.${(O=d.meta)==null?void 0:O.name}`)),1),o(B)?(l(),h("p",Ie,R(e.$t(`navigation_description.${(X=d.meta)==null?void 0:X.description}`)),1)):E("",!0)])])]}),_:2},1032,["id","to","style"])}),128))])],4),x(J,{name:"overlay-fade",mode:"in-out"},{default:S(()=>[o(t)==="overlay"?(l(),h("div",$e)):E("",!0)]),_:1})],64)}}}),Me=Y(Ce,[["__scopeId","data-v-2a952d18"]]),Re={class:"w-full h-full flex flex-row"},Te={class:"flex flex-row items-center"},Ae=P({__name:"Settings",setup(u){const y=ee(),k=me(),{desktopActive:n,smallMobileActive:A}=U(),c=r(),m=r(null),f=r(null),i=r(!1),H=r(0),v=ie(j.find(t=>t.name==="Settings").children.filter(t=>F(t))),w=g(()=>j.find(t=>t.name==="Settings").children.filter(t=>F(t))),{isSwiping:b,direction:B}=be(f),I=g(()=>{let t="0px";switch(c.value){case"closed":case"overlay":t="0px";break;case"opened":t=`${T.MAXWIDTH}px`;break}return`padding-left: ${t}`});return p([b,B],()=>{if(b.value){const t=v.findIndex(a=>a.path===y.path.split("/settings/")[1]);switch(B.value){case"right":{const a=v[t-1];a&&k.push({path:a.path})}break;case"left":{const a=v[t+1];a&&k.push({path:a.path})}break}}}),p(c,()=>{i.value=c.value!=="closed"}),p(y,()=>{n.value||(i.value=!1)},{deep:!0}),(t,a)=>{var C;const V=Me,$=q("router-view");return l(),h("main",Re,[x(V,{description:"",state:o(i),routes:o(w),onInnerSidebarState:a[0]||(a[0]=e=>c.value=e)},null,8,["state","routes"]),s("div",{class:"router-container",style:N(`transition: 0.2s all ease-in-out;${o(I)};`)},[s("div",{ref_key:"routerContainer",ref:m,class:"router-container-inner h-full w-full flex flex-col"},[s("div",Te,[o(n)?E("",!0):(l(),D(ge,{key:0,ref:"innerSidebarButton",density:"compact",icon:o(i)?o(Se):o(xe),class:Q(["no-outside",{"ml-2":o(A)}]),elevation:"0",style:{border:"1px solid rgba(var(--border-rgb), 0.75)"},onClick:a[1]||(a[1]=re(e=>i.value=!o(i),["prevent"]))},null,8,["icon","class"])),s("h1",{class:Q(["page-title text-color",{"mx-3":o(c)!=="opened"}])},R(t.$t(`views.settings.title_${(C=t.$route.meta)==null?void 0:C.name}`)),3)]),s("div",{ref_key:"subviewContainer",ref:f,class:"h-full"},[x($,{class:"mt-10 pb-5",style:{height:"calc(100% - 40px)"}},{default:S(({Component:e})=>[x(J,{name:"fade",mode:"out-in"},{default:S(()=>[(l(),D(le(e),{key:o(H)}))]),_:2},1024)]),_:1})],512)],512)],4)])}}}),rt=Y(Ae,[["__scopeId","data-v-de995e12"]]);export{rt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as ne,f as ie,U as de,w as me,c as ue,W as pe,_ as ce,d as ve}from"./main.B0K-4JOd.0.0.22-alpha.4.js";import{G as fe,r as p,E as ge,c as z,b as _e,d as be,f as a,a9 as d,R as o,u as e,i as M,ab as r,p as b,g as he,m as c,a7 as w}from"./@vue.Bp1OB7S5.0.0.22-alpha.4.js";import{ax as we,aC as ye,S as xe,m as $,a as U}from"./@mdi.C1UTQKuc.0.0.22-alpha.4.js";import{a as Q,F as g}from"./vee-validate.BPLWdsmG.0.0.22-alpha.4.js";import{c as h,a0 as Ce,b as B,o as Ve,e as D,j as $e,f as O,$ as Ue,y as j,m as A}from"./vuetify.RJ3sTMIi.0.0.22-alpha.4.js";import"./vue3-toastify.By4kIIkm.0.0.22-alpha.4.js";import"./vue-i18n.Bbjcj2Gy.0.0.22-alpha.4.js";import"./@intlify.DXtFJcML.0.0.22-alpha.4.js";import"./axios.C-n2IhIP.0.0.22-alpha.4.js";import"./@tanstack.BZ6z_pXT.0.0.22-alpha.4.js";import"./pinia.DFj3JtXk.0.0.22-alpha.4.js";import"./vue-router.DUnEf2pS.0.0.22-alpha.4.js";import"./@vueuse.VjnMnlmr.0.0.22-alpha.4.js";import"./nprogress.B98qIj0x.0.0.22-alpha.4.js";import"./@xterm.C76QGakq.0.0.22-alpha.4.js";import"./@vee-validate.B9vZN9hh.0.0.22-alpha.4.js";import"./zod.DnW1_kUe.0.0.22-alpha.4.js";import"./uuid.Ch9TGLTe.0.0.22-alpha.4.js";import"./socket.io-client.DrXsuVXZ.0.0.22-alpha.4.js";import"./engine.io-client.D5CwtIl4.0.0.22-alpha.4.js";import"./engine.io-parser.BiEtp6m2.0.0.22-alpha.4.js";import"./@socket.io.Dkula2eQ.0.0.22-alpha.4.js";import"./socket.io-parser.CXIwZ5tn.0.0.22-alpha.4.js";import"./rxjs.B0H79Imk.0.0.22-alpha.4.js";import"./tslib.9k7AwCpt.0.0.22-alpha.4.js";import"./vue-inline-svg.D-huj11I.0.0.22-alpha.4.js";import"./perfect-debounce.Cp2ysxOb.0.0.22-alpha.4.js";import"./hookable.B8xFkYCm.0.0.22-alpha.4.js";const ke={class:"subview-title text-color"},Pe={class:"inner-component p-4"},Se={class:"flex flex-row items-center w-full"},ze={class:"flex flex-col"},De={class:"text-base"},Ee={class:"text-disabled"},Fe={class:"ml-auto"},Ie={style:{margin:"5px"}},Le={class:"flex flex-row w-full justify-start items-center"},Ne={class:"icon-wrapper"},Me={class:"menu-item ml-2"},Qe={class:"flex flex-row w-full justify-start items-center"},Be={class:"icon-wrapper"},Oe={class:"menu-item ml-2",style:{color:"#ef4444 !important"}},je={class:"text-center pt-2"},Ae={class:"relative"},Re={for:"username",class:"v-label"},Te={class:"relative"},Je={for:"password",class:"v-label"},Ke={class:"relative"},Ge={for:"passwordConfirm",class:"v-label"},He={class:"relative"},We={for:"role",class:"v-label"},qe={class:"relative"},Xe={for:"username",class:"v-label"},Ye={class:"relative"},Ze={for:"password",class:"v-label"},es={class:"relative"},ss={for:"passwordConfirm",class:"v-label"},as={class:"relative"},os={for:"role",class:"v-label"},ts=fe({__name:"User",setup(ls){const{t:R}=ne.global,{smallMobileActive:T}=ie(),x=new de,u=p({pageSize:5,page:1}),y=p(!1),_=p(),v=p(!1),f=p(!1),E=p(["user","admin"]),k=p(),F=p(),C=p(),J=ge([{title:R("views.settings.title_user"),align:"start",key:"username",value:"username",width:"100%",sortable:!0}]),n=z(()=>G.value||Y.value||q.value||ee.value),K=z(()=>{var l;const s=Math.ceil((((l=I.value)==null?void 0:l.pagination.totalItems)||0)/u.value.pageSize);return s===1&&(u.value.page=1),s}),{data:I,isLoading:G,isPlaceholderData:H}=x.getUsersQuery(u),{mutate:W,isPending:q}=x.createUserQuery(),{mutate:X,isPending:Y}=x.patchUserQuery(),{mutate:Z,isPending:ee}=x.removeUserQuery(),P=z(()=>{if(!_.value)return;const s=JSON.parse(JSON.stringify(_.value));return delete s._id,delete s.avatar,s}),se=()=>{u.value.page=Math.max(u.value.page-1,1)},ae=()=>{H.value||(u.value.page=u.value.page+1)},oe=async()=>{var l,V;const s=await((l=k.value)==null?void 0:l.validate());s!=null&&s.valid?re((V=k.value)==null?void 0:V.values):console.error("result",s)},te=async()=>{var l;if(!_.value||!P.value)throw new Error("No user to edit");const s=await((l=F.value)==null?void 0:l.validate());s!=null&&s.valid?X({username:_.value.username,userData:P.value}):console.error("result",s)},le=async s=>{Z({username:s.username})},re=async s=>{W({userData:s},{onSuccess:()=>{y.value=!1}})};return(s,l)=>{var N;const V=ce,L=me;return _e(),be("div",null,[a("div",null,[a("span",ke,d(s.$t("views.settings.registered_users")),1),a("div",Pe,[o(h,{modelValue:e(C),"onUpdate:modelValue":l[0]||(l[0]=t=>M(C)?C.value=t:null),placeholder:s.$t("views.settings.search_by_name"),type:"text",density:"comfortable",variant:"outlined","hide-details":"",class:"mb-5",loading:e(n)},null,8,["modelValue","placeholder","loading"]),o(Ce,{"items-per-page":e(u).pageSize,headers:e(J),items:(N=e(I))==null?void 0:N.result,class:"elevation-0","item-value":"username","hide-default-footer":"","hide-default-header":"",search:e(C),hover:""},{"item.username":r(({item:t})=>[a("div",Se,[o(V,{src:t.avatar,size:"4rem",style:{"border-radius":"4rem",border:"1px solid var(--border)"},class:"mr-3"},null,8,["src"]),a("div",ze,[a("span",De,d(t.username),1),a("span",Ee,d(t.role),1)]),a("div",Fe,[o(Ve,{offset:"2"},{activator:r(({props:i})=>[o(B,c(i,{disabled:e(n),size:"30",class:"text-disabled",elevation:"0",icon:"",loading:e(n)}),{default:r(()=>[o(D,{size:"22"},{default:r(()=>[w(d(e(we)),1)]),_:1})]),_:2},1040,["disabled","loading"])]),default:r(()=>[o($e,{width:"200",style:{border:"1px solid var(--background-timeline)","border-radius":"10px"},elevation:"3"},{default:r(()=>[a("div",Ie,[o(O,{style:{"border-radius":"5px !important"},disabled:e(n),onClick:b(i=>_.value=t,["prevent"])},{default:r(()=>[a("div",Le,[a("div",Ne,[o(D,{size:"20",class:"text-passive"},{default:r(()=>[w(d(e(ye)),1)]),_:1})]),a("span",Me,d(s.$t("views.settings.edit")),1)])]),_:2},1032,["disabled","onClick"]),l[11]||(l[11]=a("div",{class:"my-1"},null,-1)),o(O,{style:{color:"#ef4444 !important","border-radius":"5px !important"},disabled:e(n),onClick:b(i=>le(t),["prevent"])},{default:r(()=>[a("div",Qe,[a("div",Be,[o(D,{size:"20",color:"red"},{default:r(()=>[w(d(e(xe)),1)]),_:1})]),a("span",Oe,d(s.$t("views.settings.remove")),1)])]),_:2},1032,["disabled","onClick"])])]),_:2},1024)]),_:2},1024)])])]),bottom:r(()=>[a("div",je,[o(Ue,{modelValue:e(u).page,"onUpdate:modelValue":l[1]||(l[1]=t=>e(u).page=t),length:e(K),onPrev:b(se,["prevent"]),onNext:b(ae,["prevent"])},null,8,["modelValue","length"])])]),_:1},8,["items-per-page","headers","items","search"])])]),a("div",{class:he(["flex flex-row my-5",{"mr-3":e(T)}])},[o(B,{color:"success",class:"ml-auto",loading:e(n),onClick:l[2]||(l[2]=b(t=>y.value=!0,["prevent"]))},{default:r(()=>[w(d(s.$t("components.form.button.create_new_user")),1)]),_:1},8,["loading"])],2),o(L,{"model-value":e(_)!==void 0,title:s.$t("components.dialog.title.edit_user"),"confirm-text":"components.form.button.save",loading:e(n),onConfirm:l[5]||(l[5]=t=>te()),onClose:l[6]||(l[6]=t=>_.value=void 0)},{content:r(()=>[o(e(Q),{ref_key:"userVeeFormEdit",ref:F,class:"flex flex-col w-full h-full px-3","validation-schema":e(ue),"initial-values":e(P)},{default:r(()=>[a("div",null,[a("div",Ae,[a("label",Re,d(s.$t("components.form.label.username")),1),o(e(g),{name:"username"},{default:r(({field:t,errorMessage:i,errors:m})=>[o(h,c({name:"username",variant:"outlined",density:"compact"},t,{type:"text",loading:e(n),disabled:e(n),error:m.length>0,"error-messages":i}),null,16,["loading","disabled","error","error-messages"])]),_:1})]),a("div",Te,[a("label",Je,d(s.$t("components.form.label.new_password")),1),o(e(g),{name:"password"},{default:r(({field:t,errorMessage:i,errors:m})=>[o(h,c({name:"password",variant:"outlined",density:"compact"},t,{type:e(v)?"text":"password",loading:e(n),disabled:e(n),error:m.length>0,"error-messages":i,"append-inner-icon":e(v)?e($):e(U),"onClick:appendInner":l[3]||(l[3]=S=>v.value=!e(v))}),null,16,["type","loading","disabled","error","error-messages","append-inner-icon"])]),_:1})]),a("div",Ke,[a("label",Ge,d(s.$t("components.form.label.new_password_confirm")),1),o(e(g),{name:"passwordConfirm"},{default:r(({field:t,errorMessage:i,errors:m})=>[o(h,c({name:"passwordConfirm",variant:"outlined",density:"compact"},t,{type:e(f)?"text":"password",loading:e(n),disabled:e(n),error:m.length>0,"error-messages":i,"append-inner-icon":e(f)?e($):e(U),"onClick:appendInner":l[4]||(l[4]=S=>f.value=!e(f))}),null,16,["type","loading","disabled","error","error-messages","append-inner-icon"])]),_:1})]),a("div",He,[a("label",We,d(s.$t("components.form.label.role")),1),o(e(g),{name:"role"},{default:r(({field:t,errorMessage:i,errors:m})=>[o(j,c({"model-value":t.value,variant:"outlined",density:"compact",name:"role",chips:""},t,{loading:e(n),disabled:e(n),items:e(E),error:m.length>0,"error-messages":i,onKeydown:b(()=>null,["prevent"])}),{chip:r(()=>[o(A,{color:"#df2a4c"},{default:r(()=>[w(d(t.value),1)]),_:2},1024)]),_:2},1040,["model-value","loading","disabled","items","error","error-messages"])]),_:1})])])]),_:1},8,["validation-schema","initial-values"])]),_:1},8,["model-value","title","loading"]),o(L,{modelValue:e(y),"onUpdate:modelValue":l[9]||(l[9]=t=>M(y)?y.value=t:null),title:s.$t("components.dialog.title.create_new_user"),"confirm-text":"components.form.button.add",loading:e(n),onConfirm:l[10]||(l[10]=t=>oe())},{content:r(()=>[o(e(Q),{ref_key:"userVeeForm",ref:k,class:"flex flex-col w-full h-full px-3","validation-schema":e(pe)},{default:r(()=>[a("div",null,[a("div",qe,[a("label",Xe,d(s.$t("components.form.label.username")),1),o(e(g),{name:"username"},{default:r(({field:t,errorMessage:i,errors:m})=>[o(h,c({name:"username",variant:"outlined",density:"compact"},t,{type:"text",loading:e(n),disabled:e(n),error:m.length>0,"error-messages":i}),null,16,["loading","disabled","error","error-messages"])]),_:1})]),a("div",Ye,[a("label",Ze,d(s.$t("components.form.label.new_password")),1),o(e(g),{name:"password"},{default:r(({field:t,errorMessage:i,errors:m})=>[o(h,c({name:"password",variant:"outlined",density:"compact"},t,{type:e(v)?"text":"password",loading:e(n),disabled:e(n),error:m.length>0,"error-messages":i,"append-inner-icon":e(v)?e($):e(U),"onClick:appendInner":l[7]||(l[7]=S=>v.value=!e(v))}),null,16,["type","loading","disabled","error","error-messages","append-inner-icon"])]),_:1})]),a("div",es,[a("label",ss,d(s.$t("components.form.label.new_password_confirm")),1),o(e(g),{name:"passwordConfirm"},{default:r(({field:t,errorMessage:i,errors:m})=>[o(h,c({name:"passwordConfirm",variant:"outlined",density:"compact"},t,{type:e(f)?"text":"password",loading:e(n),disabled:e(n),error:m.length>0,"error-messages":i,"append-inner-icon":e(f)?e($):e(U),"onClick:appendInner":l[8]||(l[8]=S=>f.value=!e(f))}),null,16,["type","loading","disabled","error","error-messages","append-inner-icon"])]),_:1})]),a("div",as,[a("label",os,d(s.$t("components.form.label.role")),1),o(e(g),{name:"role"},{default:r(({field:t,errorMessage:i,errors:m})=>[o(j,c({variant:"outlined",density:"compact",name:"role",chips:""},t,{loading:e(n),disabled:e(n),items:e(E),error:m.length>0,"error-messages":i,onKeydown:b(()=>null,["prevent"])}),{chip:r(()=>[o(A,{color:"#df2a4c"},{default:r(()=>[w(d(t.value),1)]),_:2},1024)]),_:2},1040,["loading","disabled","items","error","error-messages"])]),_:1})])])]),_:1},8,["validation-schema"])]),_:1},8,["modelValue","title","loading"])])}}}),Is=ve(ts,[["__scopeId","data-v-76f26e89"]]);export{Is as default};
|
package/dist/interface/VConfigEditor.vue_vue_type_script_setup_true_lang.B7v_QaR7.0.0.22-alpha.4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["ace-builds.NNjqr5wI.0.0.22-alpha.4.js","@xterm.C76QGakq.0.0.22-alpha.4.js","assets/@xterm.0.0.22-alpha.4.CFbL2ovg.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{N as T}from"./main.B0K-4JOd.0.0.22-alpha.4.js";import{m as k,b as V,t as B,c as L}from"./ace-builds.NNjqr5wI.0.0.22-alpha.4.js";import{z as P}from"./@vueuse.VjnMnlmr.0.0.22-alpha.4.js";import{G as x,ae as b,an as z,af as A,t as C,r as n,w as l,x as R,O as D,b as G,d as N}from"./@vue.Bp1OB7S5.0.0.22-alpha.4.js";const F=x({__name:"VConfigEditor",props:b({lang:{default:"yaml"},readOnly:{type:Boolean,default:!1},printMargin:{type:[Number,Boolean],default:!1},theme:{default:"light"},options:{},placeholder:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:b(["init","blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste","update:value"],["update:modelValue"]),async setup(p,{emit:w}){let s,f;const u=([s,f]=z(()=>T(()=>import("./ace-builds.NNjqr5wI.0.0.22-alpha.4.js").then(e=>e.a),__vite__mapDeps([0,1,2]))),s=await s,f(),s),c=A(p,"modelValue"),o=w,U={useWorker:!1,wrap:!0,showPrintMargin:!1,tabSize:2,highlightGutterLine:!0,useSoftTabs:!0,dragEnabled:!1,showGutter:!0,scrollPastEnd:.1},E=p,{theme:d,readOnly:h,options:g,lang:y,printMargin:_,placeholder:O}=C(E),a=n(),r=n(),i=n(),m=n(!1),v=n("");P(i,()=>{a.value&&a.value.resize(!0)}),l(c,e=>{var t;if(v.value!==e){try{m.value=!0,(t=a.value)==null||t.setValue(e,1)}finally{m.value=!1}v.value=e}}),l(d,()=>{setTimeout(()=>{S()},10)}),l(y,e=>{var t;(t=a.value)==null||t.setOption("mode","ace/mode/"+e),e==="json"?u.config.setModuleUrl("ace/mode/json",k):u.config.setModuleUrl("ace/mode/yaml",V)},{immediate:!0}),l(g,e=>{var t;e&&((t=a.value)==null||t.setOptions(e))}),l(O,e=>{var t;e!==void 0&&((t=a.value)==null||t.setOption("placeholder",e))}),l(h,e=>{var t;(t=a.value)==null||t.setReadOnly(e)}),l(_,e=>{var t;(t=a.value)==null||t.setOption("printMargin",e)});const S=()=>{var M;const e=d.value==="dark"?"twilight":"tomorrow",t=d.value==="dark"?B:L;u.config.setModuleUrl(`ace/theme/${e}`,t),r.value=e,(M=a.value)==null||M.setTheme(`ace/theme/${r.value}`)};return R(()=>{i.value&&(a.value=u.edit(i.value,{placeholder:O.value,readOnly:h.value,value:c.value,mode:"ace/mode/"+y.value,theme:r.value?"ace/theme/"+r.value:void 0,printMargin:_.value,...U,...g.value}),S(),a.value.on("change",()=>{if(m.value)return;const e=a.value.getValue();v.value=e,c.value=e}),a.value.on("blur",e=>{o("blur",e)}),a.value.on("input",()=>{o("input")}),a.value.on("change",e=>{o("change",e)}),a.value.on("changeSelectionStyle",e=>{o("changeSelectionStyle",e)}),a.value.on("changeSession",e=>{o("changeSession",e)}),a.value.on("copy",e=>{o("copy",e)}),a.value.on("focus",e=>{o("focus",e)}),a.value.on("paste",e=>{o("paste",e)}),o("init",a.value))}),D(()=>{var e,t;(e=a.value)==null||e.removeAllListeners(),(t=a.value)==null||t.destroy()}),(e,t)=>(G(),N("div",{ref_key:"editorEl",ref:i},null,512))}});export{F as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{x as y,a as D,b as V}from"./@xterm.C76QGakq.0.0.22-alpha.4.js";import{Q as F,d as O}from"./main.B0K-4JOd.0.0.22-alpha.4.js";import{d as G,e as H,f as Q}from"./@vueuse.VjnMnlmr.0.0.22-alpha.4.js";import{G as R,t as U,r as u,c as j,w as f,x as q,P as J,b as K,d as N}from"./@vue.Bp1OB7S5.0.0.22-alpha.4.js";const X=R({__name:"VConsole",props:{options:{default:()=>({fontSize:14})}},setup(E,{expose:B}){const L=E,g=Q(F),M=G(),p=H({listenOrientation:!1}),{options:d}=U(L),s=u(null),i=u(null),h=u(null),e=u(null),w=u(0);let b,c;const Y=j(()=>{if(!e.value)return!0;const o=e.value.buffer.active.length-e.value.rows;return w.value>=o});f(d,()=>{e.value&&(e.value.options=d.value,r())},{deep:!0}),f(M.orientation,()=>{r()},{deep:!0}),f([p.height,p.width],()=>{r()},{deep:!0}),g.on(t=>{try{t.sidebarState&&(clearTimeout(b),b=setTimeout(()=>{r()},150))}catch{}});const a=()=>{e.value&&(w.value=e.value.buffer.active.viewportY)},x=()=>{var t,o,l;(o=(t=e.value)==null?void 0:t._core)!=null&&o.viewport&&(e.value._core.viewport.scrollBarWidth=0),(l=s.value)==null||l.fit(),a()},r=()=>{setTimeout(()=>{var t;x(),(t=e.value)==null||t.scrollToBottom(),a()})},A=()=>{var t;(t=e.value)==null||t.clear(),a()},C=t=>{var o;(o=e.value)==null||o.write(t),a()},I=()=>{var t;(t=e.value)==null||t.scrollToBottom(),a()},z=()=>{if(!e.value||!e.value.element)return;let t=0,o=0,l=0,n=0,m=!1;const T=1,P=10;e.value.element.addEventListener("touchstart",v=>{clearInterval(c),t=v.touches[0].clientY,o=t,l=0,n=Date.now(),m=!1}),e.value.element.addEventListener("touchmove",v=>{v.preventDefault();const S=v.touches[0].clientY,_=Date.now(),W=S-o,k=_-n;n=_,o=S,l=Math.max(-T,Math.min(W/k,T)),m=!0,a()}),e.value.element.addEventListener("touchend",()=>{m&&Math.abs(l)>.5&&(c=setInterval(()=>{if(!e.value){clearInterval(c);return}e.value.scrollLines(-Math.round(l*P)),l*=.9,a(),Math.abs(l)<.1&&clearInterval(c)},16))})};return q(()=>{var t;e.value=new y.Terminal(d.value),s.value=new D.FitAddon,i.value=new V.WebglAddon,e.value.loadAddon(i.value),e.value.loadAddon(s.value),e.value.open(h.value),s.value.activate(e.value),x(),z(),(t=e.value.element)==null||t.addEventListener("wheel",a),i.value.onContextLoss(()=>{var o;(o=i.value)==null||o.dispose()})}),J(()=>{var t,o,l,n;try{(o=(t=e.value)==null?void 0:t.element)==null||o.removeEventListener("wheel",a),(l=e.value)==null||l.dispose(),(n=s.value)==null||n.dispose()}catch{}}),B({clearTerminal:A,writeTerminal:C,resizeHandler:r,scrollToBottom:I,atBottom:Y}),(t,o)=>(K(),N("div",{ref_key:"terminalContainer",ref:h,class:"console"},null,512))}}),oe=O(X,[["__scopeId","data-v-87ec8e2a"]]);export{oe as V};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as j}from"./redux.CuxFRhX_.0.0.22-alpha.4.js";import{i as s,a as M}from"./@react-dnd.CcwRs9xb.0.0.22-alpha.4.js";function H(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function N(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function L(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,c)=>{o===1&&i.push(c)}),i}function k(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function B(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:c}=n,u=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,u,l);const f=W(r,u);if(f==null){t.dispatch(V);return}let b=null;if(o){if(!c)throw new Error("getSourceClientOffset must be defined");F(c),b=c(f)}t.dispatch(_(o,b));const D=l.getSource(f).beginDrag(u,f);if(D==null)return;X(D),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:D,sourceId:f,clientOffset:o||null,sourceClientOffset:b||null,isSourcePublic:!!i}}}}function q(t,e,r){s(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s(r.getSource(n),"Expected sourceIds to be registered.")})}function F(t){s(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function X(t){s(U(t),"Item must be an object.")}function W(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function z(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function J(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){z(t,i,r[i])})}return t}function Q(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Y(n),ee(n).forEach((c,u)=>{const l=Z(c,u,i,n),f={type:y,payload:{dropResult:J({},r,l)}};t.dispatch(f)})}}function Y(t){s(t.isDragging(),"Cannot call drop while not dragging."),s(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Z(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return K(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function K(t){s(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function ee(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function te(t){return function(){const r=t.getMonitor(),n=t.getRegistry();re(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function re(t){s(t.isDragging(),"Cannot call endDrag while not dragging.")}function T(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function ne(t){return function(r,{clientOffset:n}={}){ie(r);const i=r.slice(0),o=t.getMonitor(),c=t.getRegistry(),u=o.getItemType();return se(i,c,u),oe(i,o,c),ce(i,o,c),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ie(t){s(Array.isArray(t),"Expected targetIds to be an array.")}function oe(t,e,r){s(e.isDragging(),"Cannot call hover while not dragging."),s(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s(o,"Expected targetIds to be registered.")}}function se(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);T(o,r)||t.splice(n,1)}}function ce(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ue(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ae(t){return{beginDrag:B(t),publishDragSource:ue(t),hover:ne(t),drop:Q(t),endDrag:te(t)}}class fe{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...c)=>{const u=o.apply(e,c);typeof u<"u"&&r(u)}}const i=ae(this);return Object.keys(i).reduce((o,c)=>{const u=i[c];return o[c]=n(u),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function le(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function de(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(le(e,n),r)}function ge(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],C=[];g.__IS_NONE__=!0;C.__IS_ALL__=!0;function pe(t,e){return t===g?!1:t===C||typeof e>"u"?!0:k(e,t).length>0}class he{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s(typeof e=="function","listener must be a function."),s(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const c=this.store.getState(),u=c.stateId;try{u===i||u===i+1&&!pe(c.dirtyHandlerIds,n)||e()}finally{i=u}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return T(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!T(i,o))return!1;const c=this.getTargetIds();if(!c.length)return!1;const u=c.indexOf(e);return n?u===c.length-1:u>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return de(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ge(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const R="dnd-core/ADD_SOURCE",v="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function ye(t){return{type:R,payload:{sourceId:t}}}function Se(t){return{type:v,payload:{targetId:t}}}function Oe(t){return{type:x,payload:{sourceId:t}}}function be(t){return{type:O,payload:{targetId:t}}}function De(t){s(typeof t.canDrag=="function","Expected canDrag to be a function."),s(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s(typeof t.endDrag=="function","Expected endDrag to be a function.")}function Te(t){s(typeof t.canDrop=="function","Expected canDrop to be a function."),s(typeof t.hover=="function","Expected hover to be a function."),s(typeof t.drop=="function","Expected beginDrag to be a function.")}function m(t,e){if(e&&Array.isArray(t)){t.forEach(r=>m(r,!1));return}s(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var a;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(a||(a={}));let me=0;function Ee(){return me++}function Ie(t){const e=Ee().toString();switch(t){case a.SOURCE:return`S${e}`;case a.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return a.SOURCE;case"T":return a.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ce{addSource(e,r){m(e),De(r);const n=this.addHandler(a.SOURCE,e,r);return this.store.dispatch(ye(n)),n}addTarget(e,r){m(e,!0),Te(r);const n=this.addHandler(a.TARGET,e,r);return this.store.dispatch(Se(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===a.SOURCE}isTargetId(e){return w(e)===a.TARGET}removeSource(e){s(this.getSource(e),"Expected an existing source."),this.store.dispatch(Oe(e)),M(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(be(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ie(e);return this.types.set(i,r),e===a.SOURCE?this.dragSources.set(i,n):e===a.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Re=(t,e)=>t===e;function ve(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function xe(t,e,r=Re){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function _e(t=g,e){switch(e.type){case h:break;case R:case v:case O:case x:return g;case p:case I:case S:case y:default:return C}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=L(r,n);if(!(i.length>0||!xe(r,n)))return g;const c=n[n.length-1],u=r[r.length-1];return c!==u&&(c&&i.push(c),u&&i.push(u)),i}function we(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){we(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ae(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return ve(t.clientOffset,r.clientOffset)?t:Pe({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ue(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ue(t,i,r[i])})}return t}const Ge={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function $e(t=Ge,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:N(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function je(t=0,e){switch(e.type){case R:case v:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function He(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){He(t,i,r[i])})}return t}function Le(t={},e){return{dirtyHandlerIds:_e(t.dirtyHandlerIds,{type:e.type,payload:Ne({},e.payload,{prevTargetIds:H(t,"dragOperation.targetIds",[])})}),dragOffset:Ae(t.dragOffset,e),refCount:je(t.refCount,e),dragOperation:$e(t.dragOperation,e),stateId:Me(t.stateId)}}function Fe(t,e=void 0,r={},n=!1){const i=ke(n),o=new he(i,new Ce(i)),c=new fe(i,o),u=t(c,e,r);return c.receiveBackend(u),c}function ke(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return j(Le,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}export{Fe as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as L,a as O,e as B,b as H,c as U,f as F,p as x}from"./engine.io-parser.BiEtp6m2.0.0.22-alpha.4.js";import{E as y}from"./@socket.io.Dkula2eQ.0.0.22-alpha.4.js";const _=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),a=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),I="arraybuffer";function E(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}const N=a.setTimeout,A=a.clearTimeout;function w(r,e){e.useNativeTimers?(r.setTimeoutFn=N.bind(a),r.clearTimeoutFn=A.bind(a)):(r.setTimeoutFn=a.setTimeout.bind(a),r.clearTimeoutFn=a.clearTimeout.bind(a))}const W=1.33;function D(r){return typeof r=="string"?M(r):Math.ceil((r.byteLength||r.size)*W)}function M(r){let e=0,t=0;for(let s=0,i=r.length;s<i;s++)e=r.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function R(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function X(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function z(r){let e={},t=r.split("&");for(let s=0,i=t.length;s<i;s++){let o=t[s].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}class J extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class b extends y{constructor(e){super(),this.writable=!1,w(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new J(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=L(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=X(e);return t.length?"?"+t:""}}class V extends b{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};O(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,B(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=R()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let P=!1;try{P=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const j=P;function $(){}class G extends V{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class h extends y{constructor(e,t,s){super(),this.createRequest=e,w(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=E(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=h.requestsCount++,h.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=$,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete h.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}h.requestsCount=0;h.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",k);else if(typeof addEventListener=="function"){const r="onpagehide"in a?"pagehide":"unload";addEventListener(r,k,!1)}}function k(){for(let r in h.requests)h.requests.hasOwnProperty(r)&&h.requests[r].abort()}const K=function(){const r=q({xdomain:!1});return r&&r.responseType!==null}();class Q extends G{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=K&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new h(q,this.uri(),e)}}function q(r){const e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||j))return new XMLHttpRequest}catch{}if(!e)try{return new a[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const C=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Y extends b{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=C?{}:E(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;H(s,this.supportsBinary,o=>{try{this.doWrite(s,o)}catch{}i&&_(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=R()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const m=a.WebSocket||a.MozWebSocket;class Z extends Y{createSocket(e,t,s){return C?new m(e,t,s):t?new m(e,t):new m(e)}doWrite(e,t){this.ws.send(t)}}class ee extends b{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=U(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=F();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const o=()=>{s.read().then(({done:l,value:d})=>{l||(this.onPacket(d),o())}).catch(l=>{})};o();const n={type:"open"};this.query.sid&&(n.data=`{"sid":"${this.query.sid}"}`),this._writer.write(n).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;this._writer.write(s).then(()=>{i&&_(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const te={websocket:Z,webtransport:ee,polling:Q},se=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,re=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function S(r){if(r.length>8e3)throw"URI too long";const e=r,t=r.indexOf("["),s=r.indexOf("]");t!=-1&&s!=-1&&(r=r.substring(0,t)+r.substring(t,s).replace(/:/g,";")+r.substring(s,r.length));let i=se.exec(r||""),o={},n=14;for(;n--;)o[re[n]]=i[n]||"";return t!=-1&&s!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=ie(o,o.path),o.queryKey=oe(o,o.query),o}function ie(r,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function oe(r,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,o){i&&(t[i]=o)}),t}const g=typeof addEventListener=="function"&&typeof removeEventListener=="function",f=[];g&&addEventListener("offline",()=>{f.forEach(r=>r())},!1);class c extends y{constructor(e,t){if(super(),this.binaryType=I,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=S(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=S(t.host).host);w(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const i=s.prototype.name;this.transports.push(i),this._transportsByName[i]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=z(this.opts.query)),g&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},f.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=x,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s<this.writeBuffer.length;s++){const i=this.writeBuffer[s].data;if(i&&(t+=D(i)),s>0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,_(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const o={type:e,data:t,options:s};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(c.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),g&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=f.indexOf(this._offlineEventListener);s!==-1&&f.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}c.protocol=x;class ne extends c{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;c.priorWebsocketSuccess=!1;const i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",p=>{if(!s)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;c.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(T(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const u=new Error("probe error");u.transport=t.name,this.emitReserved("upgradeError",u)}}))};function o(){s||(s=!0,T(),t.close(),t=null)}const n=p=>{const u=new Error("probe error: "+p);u.transport=t.name,o(),this.emitReserved("upgradeError",u)};function l(){n("transport closed")}function d(){n("socket closed")}function v(p){t&&p.name!==t.name&&o()}const T=()=>{t.removeListener("open",i),t.removeListener("error",n),t.removeListener("close",l),this.off("close",d),this.off("upgrading",v)};t.once("open",i),t.once("error",n),t.once("close",l),this.once("close",d),this.once("upgrading",v),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}class ce extends ne{constructor(e,t={}){const s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(i=>te[i]).filter(i=>!!i)),super(e,s)}}export{ce as S,w as i,_ as n,S as p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c}from"./@xterm.C76QGakq.0.0.22-alpha.4.js";var f={exports:{}},u;function p(){return u||(u=1,function(h){(function(r,s){h.exports?h.exports=s():r.EvEmitter=s()})(typeof window<"u"?window:c,function(){function r(){}let s=r.prototype;return s.on=function(e,n){if(!e||!n)return this;let t=this._events=this._events||{},i=t[e]=t[e]||[];return i.includes(n)||i.push(n),this},s.once=function(e,n){if(!e||!n)return this;this.on(e,n);let t=this._onceEvents=this._onceEvents||{},i=t[e]=t[e]||{};return i[n]=!0,this},s.off=function(e,n){let t=this._events&&this._events[e];if(!t||!t.length)return this;let i=t.indexOf(n);return i!=-1&&t.splice(i,1),this},s.emitEvent=function(e,n){let t=this._events&&this._events[e];if(!t||!t.length)return this;t=t.slice(0),n=n||[];let i=this._onceEvents&&this._onceEvents[e];for(let o of t)i&&i[o]&&(this.off(e,o),delete i[o]),o.apply(this,n);return this},s.allOff=function(){return delete this._events,delete this._onceEvents,this},r})}(f)),f.exports}export{p as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as s}from"./@xterm.C76QGakq.0.0.22-alpha.4.js";var c=function u(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var f,e,o;if(Array.isArray(r)){if(f=r.length,f!=t.length)return!1;for(e=f;e--!==0;)if(!u(r[e],t[e]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if(o=Object.keys(r),f=o.length,f!==Object.keys(t).length)return!1;for(e=f;e--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[e]))return!1;for(e=f;e--!==0;){var n=o[e];if(!u(r[n],t[n]))return!1}return!0}return r!==r&&t!==t};const p=s(c);export{p as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as x,C as g,Z as C,P as Z}from"./uc.micro.kMc2yuuw.0.0.22-alpha.4.js";function w(_){const t={};_=_||{},t.src_Any=x.source,t.src_Cc=g.source,t.src_Z=C.source,t.src_P=Z.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const e="[><|]";return t.src_pseudo_letter="(?:(?!"+e+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+e+"|"+t.src_ZPCc+")(?!"+(_["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+e+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(_["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+e+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function p(_){return Array.prototype.slice.call(arguments,1).forEach(function(e){e&&Object.keys(e).forEach(function(r){_[r]=e[r]})}),_}function l(_){return Object.prototype.toString.call(_)}function k(_){return l(_)==="[object String]"}function v(_){return l(_)==="[object Object]"}function E(_){return l(_)==="[object RegExp]"}function f(_){return l(_)==="[object Function]"}function j(_){return _.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const y={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function b(_){return Object.keys(_||{}).reduce(function(t,e){return t||y.hasOwnProperty(e)},!1)}const $={"http:":{validate:function(_,t,e){const r=_.slice(t);return e.re.http||(e.re.http=new RegExp("^\\/\\/"+e.re.src_auth+e.re.src_host_port_strict+e.re.src_path,"i")),e.re.http.test(r)?r.match(e.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(_,t,e){const r=_.slice(t);return e.re.no_http||(e.re.no_http=new RegExp("^"+e.re.src_auth+"(?:localhost|(?:(?:"+e.re.src_domain+")\\.)+"+e.re.src_domain_root+")"+e.re.src_port+e.re.src_host_terminator+e.re.src_path,"i")),e.re.no_http.test(r)?t>=3&&_[t-3]===":"||t>=3&&_[t-3]==="/"?0:r.match(e.re.no_http)[0].length:0}},"mailto:":{validate:function(_,t,e){const r=_.slice(t);return e.re.mailto||(e.re.mailto=new RegExp("^"+e.re.src_email_name+"@"+e.re.src_host_strict,"i")),e.re.mailto.test(r)?r.match(e.re.mailto)[0].length:0}}},A="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",P="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function S(_){_.__index__=-1,_.__text_cache__=""}function R(_){return function(t,e){const r=t.slice(e);return _.test(r)?r.match(_)[0].length:0}}function z(){return function(_,t){t.normalize(_)}}function u(_){const t=_.re=w(_.__opts__),e=_.__tlds__.slice();_.onCompile(),_.__tlds_replaced__||e.push(A),e.push(t.src_xn),t.src_tlds=e.join("|");function r(i){return i.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const c=[];_.__compiled__={};function h(i,s){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+s)}Object.keys(_.__schemas__).forEach(function(i){const s=_.__schemas__[i];if(s===null)return;const a={validate:null,link:null};if(_.__compiled__[i]=a,v(s)){E(s.validate)?a.validate=R(s.validate):f(s.validate)?a.validate=s.validate:h(i,s),f(s.normalize)?a.normalize=s.normalize:s.normalize?h(i,s):a.normalize=z();return}if(k(s)){c.push(i);return}h(i,s)}),c.forEach(function(i){_.__compiled__[_.__schemas__[i]]&&(_.__compiled__[i].validate=_.__compiled__[_.__schemas__[i]].validate,_.__compiled__[i].normalize=_.__compiled__[_.__schemas__[i]].normalize)}),_.__compiled__[""]={validate:null,normalize:z()};const o=Object.keys(_.__compiled__).filter(function(i){return i.length>0&&_.__compiled__[i]}).map(j).join("|");_.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),_.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),_.re.schema_at_start=RegExp("^"+_.re.schema_search.source,"i"),_.re.pretest=RegExp("("+_.re.schema_test.source+")|("+_.re.host_fuzzy_test.source+")|@","i"),S(_)}function L(_,t){const e=_.__index__,r=_.__last_index__,c=_.__text_cache__.slice(e,r);this.schema=_.__schema__.toLowerCase(),this.index=e+t,this.lastIndex=r+t,this.raw=c,this.text=c,this.url=c}function d(_,t){const e=new L(_,t);return _.__compiled__[e.schema].normalize(e,_),e}function n(_,t){if(!(this instanceof n))return new n(_,t);t||b(_)&&(t=_,_={}),this.__opts__=p({},y,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=p({},$,_),this.__compiled__={},this.__tlds__=P,this.__tlds_replaced__=!1,this.re={},u(this)}n.prototype.add=function(t,e){return this.__schemas__[t]=e,u(this),this};n.prototype.set=function(t){return this.__opts__=p(this.__opts__,t),this};n.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let e,r,c,h,o,i,s,a,m;if(this.re.schema_test.test(t)){for(s=this.re.schema_search,s.lastIndex=0;(e=s.exec(t))!==null;)if(h=this.testSchemaAt(t,e[2],s.lastIndex),h){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+h;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(a=t.search(this.re.host_fuzzy_test),a>=0&&(this.__index__<0||a<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=r.index+r[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(m=t.indexOf("@"),m>=0&&(c=t.match(this.re.email_fuzzy))!==null&&(o=c.index+c[1].length,i=c.index+c[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=i))),this.__index__>=0};n.prototype.pretest=function(t){return this.re.pretest.test(t)};n.prototype.testSchemaAt=function(t,e,r){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,r,this):0};n.prototype.match=function(t){const e=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(e.push(d(this,r)),r=this.__last_index__);let c=r?t.slice(r):t;for(;this.test(c);)e.push(d(this,r)),c=c.slice(this.__last_index__),r+=this.__last_index__;return e.length?e:null};n.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const e=this.re.schema_at_start.exec(t);if(!e)return null;const r=this.testSchemaAt(t,e[2],e[0].length);return r?(this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+r,d(this,0)):null};n.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,c,h){return r!==h[c-1]}).reverse(),u(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,u(this),this)};n.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};n.prototype.onCompile=function(){};export{n as L};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var y=Object.defineProperty;var p=(t,n,e)=>n in t?y(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var g=(t,n,e)=>p(t,typeof n!="symbol"?n+"":n,e);import{i as o}from"./vue3-toastify.By4kIIkm.0.0.22-alpha.4.js";import{i as l,x as s}from"./main.B0K-4JOd.0.0.22-alpha.4.js";import{u as d,b as i,a as u}from"./@tanstack.BZ6z_pXT.0.0.22-alpha.4.js";import{r as m,u as r}from"./@vue.Bp1OB7S5.0.0.22-alpha.4.js";const h=async({pluginData:t})=>(await s.post("/plugins",t)).data,Q=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}`,{signal:n})).data,q=async({pluginname:t,signal:n})=>(await s.get(`/plugins/${t}/versions`,{signal:n})).data,P=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/update`,{signal:n})).data,b=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/logo`,{signal:n})).data,F=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/schema`,{signal:n})).data,w=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/config`,{signal:n})).data,f=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/contract`,{signal:n})).data,v=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/readme`,{signal:n})).data,C=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/changelog`,{signal:n})).data,K=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/release`,{signal:n})).data,_=async({pluginName:t,parameter:n,signal:e})=>(await s.get(`/plugins/${t}/interface`,{params:n,signal:e})).data,$=async({parameter:t,signal:n})=>(await s.get("/plugins",{params:t,signal:n})).data,A=async({parameter:t,signal:n})=>(await s.get("/plugins/extensions",{params:t,signal:n})).data,S=async({pluginName:t})=>(await s.delete(`/plugins/${t}/log`)).data,L=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/log/download`,{signal:n})).data,x=async({query:t,parameter:n,signal:e})=>(await s.get("/plugins/search",{params:{...t,...n},signal:e})).data,R=async({pluginName:t})=>(await s.put(`/plugins/${t}/enable`)).data,N=async({pluginName:t,configData:n})=>(await s.patch(`/plugins/${t}/config`,n)).data,I=async({pluginName:t})=>(await s.put(`/plugins/${t}/disable`)).data,J=async({pluginName:t})=>(await s.put(`/plugins/${t}/start`)).data,E=async({pluginName:t})=>(await s.put(`/plugins/${t}/stop`)).data,U=async({pluginName:t})=>(await s.put(`/plugins/${t}/restart`)).data,V=async({pluginName:t,formData:n})=>(await s.post(`/plugins/${t}/detect/motion`,n,{responseType:"arraybuffer"})).data,j=async({pluginName:t,formData:n})=>(await s.post(`/plugins/${t}/detect/objects`,n)).data,D=async({pluginName:t,formData:n})=>(await s.post(`/plugins/${t}/detect/audio`,n)).data,M=async({pluginName:t,actionId:n,payload:e})=>(await s.post(`/plugins/${t}/submit`,{actionId:n,payload:e})).data,B=async({pluginName:t,removeStorage:n})=>(await s.delete(`/plugins/${t}`,{params:{removeStorage:n}})).data,O=async()=>(await s.delete("/plugins")).data;class W{constructor(){g(this,"_queryClient",d());g(this,"queryActivator",m([{name:"getPluginQuery",enabled:!0},{name:"getPluginsQuery",enabled:!0},{name:"getPluginsExtensionsQuery",enabled:!0},{name:"searchPluginsQuery",enabled:!0},{name:"getPluginVersionsQuery",enabled:!0},{name:"getPluginUpdateQuery",enabled:!0},{name:"getPluginLogoQuery",enabled:!0},{name:"getPluginSchemaQuery",enabled:!0},{name:"getPluginConfigJsonQuery",enabled:!0},{name:"getPluginContractQuery",enabled:!0},{name:"getPluginReadmeQuery",enabled:!0},{name:"getPluginReleaseQuery",enabled:!0},{name:"getPluginInterfaceQuery",enabled:!0},{name:"getPluginChangelogQuery",enabled:!0},{name:"downloadLogQuery",enabled:!0}]))}get queryClient(){return this._queryClient}installPluginQuery(){return i({mutationFn:h,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:["pluginsList"]}),await this._queryClient.refetchQueries({queryKey:["plugins"]}),await this._queryClient.refetchQueries({queryKey:["pluginsSearch"]}),o.success(l.global.t("components.toast.plugin_installed"))}})}getPluginQuery(n){return u({queryKey:["plugins",n],queryFn:({signal:e})=>Q({pluginName:r(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginQuery"&&e.enabled)})}getPluginsQuery(n){return u({queryKey:["pluginsList",n],queryFn:({signal:e})=>$({parameter:r(n),signal:e}),placeholderData:e=>e,enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginsQuery"&&e.enabled)})}getPluginsExtensionsQuery(n){return u({queryKey:["extensionsList",n],queryFn:({signal:e})=>A({parameter:r(n),signal:e}),placeholderData:e=>e,enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginsExtensionsQuery"&&e.enabled)})}searchPluginsQuery(n,e){return u({queryKey:["pluginsSearch",n,e],queryFn:({signal:a})=>x({query:r(n),parameter:r(e),signal:a}),placeholderData:a=>a,enabled:()=>this.queryActivator.value.some(a=>a.name==="searchPluginsQuery"&&a.enabled)})}getPluginVersionsQuery(n){return u({queryKey:["plugins",n,"versions"],queryFn:({signal:e})=>q({pluginname:r(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginVersionsQuery"&&e.enabled)})}getPluginUpdateQuery(n){return u({queryKey:["plugins",n,"update"],queryFn:({signal:e})=>P({pluginName:r(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginUpdateQuery"&&e.enabled)})}getPluginLogoQuery(n){return u({queryKey:["plugins",n,"logo"],queryFn:({signal:e})=>b({pluginName:r(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginLogoQuery"&&e.enabled)})}getPluginSchemaQuery(n){return u({queryKey:["plugins",n,"schema"],queryFn:({signal:e})=>F({pluginName:r(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginSchemaQuery"&&e.enabled)})}getPluginConfigJsonQuery(n){return u({queryKey:["plugins",n,"config"],queryFn:({signal:e})=>w({pluginName:r(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginConfigJsonQuery"&&e.enabled)})}getPluginContractQuery(n){return u({queryKey:["plugins",n,"contract"],queryFn:({signal:e})=>f({pluginName:r(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginContractQuery"&&e.enabled)})}getPluginReadmeQuery(n){return u({queryKey:["plugins",n,"readme"],queryFn:({signal:e})=>v({pluginName:r(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginReadmeQuery"&&e.enabled)})}getPluginReleaseQuery(n){return u({queryKey:["plugins",n,"release"],queryFn:({signal:e})=>K({pluginName:r(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginReleaseQuery"&&e.enabled)})}getPluginInterfaceQuery(n,e){return u({queryKey:["plugins",n,"interface",e],queryFn:({signal:a})=>_({pluginName:r(n),parameter:e,signal:a}),enabled:()=>this.queryActivator.value.some(a=>a.name==="getPluginInterfaceQuery"&&a.enabled)})}getPluginChangelogQuery(n){return u({queryKey:["plugins",n,"changelog"],queryFn:({signal:e})=>C({pluginName:r(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginChangelogQuery"&&e.enabled)})}patchPluginConfigQuery(){return i({mutationFn:N,onSuccess:async(n,e)=>{await this._queryClient.refetchQueries({queryKey:["plugins",e.pluginName]}),o.success(l.global.t("components.toast.plugin_config_updated"))}})}startPluginQuery(){return i({mutationFn:J,onSuccess:async(n,e)=>{await this._queryClient.refetchQueries({queryKey:["plugins",e.pluginName]}),o.success(l.global.t("components.toast.plugin_started"))}})}stopPluginQuery(){return i({mutationFn:E,onSuccess:async(n,e)=>{await this._queryClient.refetchQueries({queryKey:["plugins",e.pluginName]}),o.success(l.global.t("components.toast.plugin_stopped"))}})}restartPluginQuery(){return i({mutationFn:U,onSuccess:async(n,e)=>{await this._queryClient.refetchQueries({queryKey:["plugins",e.pluginName]}),o.success(l.global.t("components.toast.plugin_restarted"))}})}detectMotionQuery(){return i({mutationFn:V})}detectObjectsQuery(){return i({mutationFn:j})}detectAudioQuery(){return i({mutationFn:D})}actionButtonQuery(){return i({mutationFn:M,onSuccess:async(n,e)=>{await this._queryClient.refetchQueries({queryKey:["plugins",e.pluginName]}),o.success(l.global.t("components.toast.plugin_request_sent"))}})}enablePluginQuery(){return i({mutationFn:R,onSuccess:async(n,e)=>{await this._queryClient.refetchQueries({queryKey:["pluginsList"]}),await this._queryClient.refetchQueries({queryKey:["plugins",e.pluginName]}),o.success(l.global.t("components.toast.plugin_enabled"))}})}disablePluginQuery(){return i({mutationFn:I,onSuccess:async(n,e)=>{await this._queryClient.refetchQueries({queryKey:["pluginsList"]}),await this._queryClient.refetchQueries({queryKey:["plugins",e.pluginName]}),o.success(l.global.t("components.toast.plugin_disabled"))}})}uninstallPluginQuery(){return i({mutationFn:B,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:["pluginsList"]}),await this._queryClient.refetchQueries({queryKey:["plugins"]}),await this._queryClient.refetchQueries({queryKey:["pluginsSearch"]}),o.success(l.global.t("components.toast.plugin_removed"))}})}uninstallPluginsQuery(){return i({mutationFn:O,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:["pluginsList"]}),await this._queryClient.refetchQueries({queryKey:["plugins"]}),await this._queryClient.refetchQueries({queryKey:["pluginsSearch"]}),o.success(l.global.t("components.toast.plugins_removed"))}})}downloadLogQuery(n){return u({queryKey:["logs",n],queryFn:({signal:e})=>L({pluginName:r(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="downloadLogQuery"&&e.enabled)})}clearLogQuery(){return i({mutationFn:S,onSuccess:async(n,e)=>{await this._queryClient.refetchQueries({queryKey:["logs",e.pluginName],exact:!0}),o.success(l.global.t("components.toast.log_cleared"))}})}toggleQueryActivator(n,e){const a=this.queryActivator.value.find(c=>c.name===n);a&&(a.enabled=e)}}export{W as P};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as O}from"./@react-dnd.CcwRs9xb.0.0.22-alpha.4.js";var l;(function(o){o.mouse="mouse",o.touch="touch",o.keyboard="keyboard"})(l||(l={}));class M{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,s,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&n!==void 0?n:(s=this.args)===null||s===void 0?void 0:s.delay)!==null&&t!==void 0?t:0}get delayMouseStart(){var e,s,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&n!==void 0?n:(s=this.args)===null||s===void 0?void 0:s.delay)!==null&&t!==void 0?t:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,s){this.args=e,this.context=s}}function N(o,e,s,n){return Math.sqrt(Math.pow(Math.abs(s-o),2)+Math.pow(Math.abs(n-e),2))}function w(o,e,s,n,t){if(!t)return!1;const i=Math.atan2(n-e,s-o)*180/Math.PI+180;for(let a=0;a<t.length;++a){const r=t[a];if(r&&(r.start==null||i>=r.start)&&(r.end==null||i<=r.end))return!0}return!1}const C={Left:1,Right:2,Center:4},x={Left:0,Center:1,Right:2};function T(o){return o.button===void 0||o.button===x.Left}function D(o){return o.buttons===void 0||(o.buttons&C.Left)===0}function b(o){return!!o.targetTouches}const L=1;function P(o){const e=o.nodeType===L?o:o.parentElement;if(!e)return;const{top:s,left:n}=e.getBoundingClientRect();return{x:n,y:s}}function _(o,e){if(o.targetTouches.length===1)return S(o.targetTouches[0]);if(e&&o.touches.length===1&&o.touches[0].target===e.target)return S(o.touches[0])}function S(o,e){return b(o)?_(o,e):{x:o.clientX,y:o.clientY}}const v={[l.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[l.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[l.keyboard]:{keydown:"keydown"}};class g{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(O(!g.isSetUp,"Cannot have two Touch backends at the same time."),g.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(g.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,s,n,t=!1){const i=t;this.listenerTypes.forEach(function(a){const r=v[a][s];r&&e.addEventListener(r,n,i)})}removeEventListener(e,s,n,t=!1){const i=t;this.listenerTypes.forEach(function(a){const r=v[a][s];r&&e.removeEventListener(r,n,i)})}connectDragSource(e,s){const n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,s),this.addEventListener(s,"start",n),()=>{this.sourceNodes.delete(e),this.removeEventListener(s,"start",n)}}connectDragPreview(e,s,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,s),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,s){const n=this.options.rootElement;if(!this.document||!n)return()=>{};const t=i=>{if(!this.document||!n||!this.monitor.isDragging())return;let a;switch(i.type){case v.mouse.move:a={x:i.clientX,y:i.clientY};break;case v.touch.move:var r,h;a={x:((r=i.touches[0])===null||r===void 0?void 0:r.clientX)||0,y:((h=i.touches[0])===null||h===void 0?void 0:h.clientY)||0};break}const c=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,f=c&&s.contains(c);if(c===s||f)return this.handleMove(i,e)};return this.addEventListener(this.document.body,"move",t),this.targetNodes.set(e,s),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",t))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,s,n){this.getSourceClientOffset=t=>{const i=this.sourceNodes.get(t);return i&&P(i)},this.handleTopMoveStartCapture=t=>{T(t)&&(this.moveStartSourceIds=[])},this.handleMoveStart=t=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(t)},this.handleTopMoveStart=t=>{if(!T(t))return;const i=S(t);i&&(b(t)&&(this.lastTargetTouchFallback=t.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=t=>{if(!T(t))return;const i=t.type===v.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,t),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(t,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=t=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:a}=this,r=this.options.enableHoverOutsideTarget,h=S(t,this.lastTargetTouchFallback);if(!h)return;if(this._isScrolling||!this.monitor.isDragging()&&w(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,h.x,h.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&N(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,h.x,h.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const c=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(c),this.actions.publishDragSource(),t.cancelable&&t.preventDefault();const f=(a||[]).map(u=>this.targetNodes.get(u)).filter(u=>!!u),E=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(h.x,h.y,f):this.document.elementsFromPoint(h.x,h.y),p=[];for(const u in E){if(!E.hasOwnProperty(u))continue;let d=E[u];for(d!=null&&p.push(d);d;)d=d.parentElement,d&&p.indexOf(d)===-1&&p.push(d)}const m=p.filter(u=>f.indexOf(u)>-1).map(u=>this._getDropTargetId(u)).filter(u=>!!u).filter((u,d,y)=>y.indexOf(u)===d);if(r)for(const u in this.targetNodes){const d=this.targetNodes.get(u);if(c&&d&&d.contains(c)&&m.indexOf(u)===-1){m.unshift(u);break}}m.reverse(),this.actions.hover(m,{clientOffset:h})},this._getDropTargetId=t=>{const i=this.targetNodes.keys();let a=i.next();for(;a.done===!1;){const r=a.value;if(t===this.targetNodes.get(r))return r;a=i.next()}},this.handleTopMoveEndCapture=t=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!D(t)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}t.cancelable&&t.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=t=>{t.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new M(n,s),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(l.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(l.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(l.keyboard)}}const k=function(e,s={},n={}){return new g(e,s,n)};export{k as T};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as k,i as b,S as v,n as E}from"./engine.io-client.D5CwtIl4.0.0.22-alpha.4.js";import"./engine.io-parser.BiEtp6m2.0.0.22-alpha.4.js";import{E as _}from"./@socket.io.Dkula2eQ.0.0.22-alpha.4.js";import{P as c,p as O}from"./socket.io-parser.CXIwZ5tn.0.0.22-alpha.4.js";function w(i,t="",e){let s=i;e=e||typeof location<"u"&&location,i==null&&(i=e.protocol+"//"+e.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=e.protocol+i:i=e.host+i),/^(https?|wss?):\/\//.test(i)||(typeof e<"u"?i=e.protocol+"//"+i:i="https://"+i),s=k(i)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const o=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+o+":"+s.port+t,s.href=s.protocol+"://"+o+(e&&e.port===s.port?"":":"+s.port),s}function a(i,t,e){return i.on(t,e),function(){i.off(t,e)}}const L=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class y extends _{constructor(t,e,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[a(t,"open",this.onopen.bind(this)),a(t,"packet",this.onpacket.bind(this)),a(t,"error",this.onerror.bind(this)),a(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var s,n,o;if(L.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const r={type:c.EVENT,data:e};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const m=this.ids++,g=e.pop();this._registerAckCallback(m,g),r.id=m}const h=(n=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||n===void 0?void 0:n.writable,f=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!h||(f?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,e){var s;const n=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(n===void 0){this.acks[t]=e;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===t&&this.sendBuffer.splice(h,1);e.call(this,new Error("operation has timed out"))},n),r=(...h)=>{this.io.clearTimeoutFn(o),e.apply(this,h)};r.withError=!0,this.acks[t]=r}emitWithAck(t,...e){return new Promise((s,n)=>{const o=(r,h)=>r?n(r):s(h);o.withError=!0,e.push(o),this.emit(t,...e)})}_addToQueue(t){let e;typeof t[t.length-1]=="function"&&(e=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((n,...o)=>s!==this._queue[0]?void 0:(n!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(n)):(this._queue.shift(),e&&e(null,...o)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:c.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(s=>String(s.id)===t)){const s=this.acks[t];delete this.acks[t],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case c.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case c.EVENT:case c.BINARY_EVENT:this.onevent(t);break;case c.ACK:case c.BINARY_ACK:this.onack(t);break;case c.DISCONNECT:this.ondisconnect();break;case c.CONNECT_ERROR:this.destroy();const s=new Error(t.data.message);s.data=t.data.data,this.emitReserved("connect_error",s);break}}onevent(t){const e=t.data||[];t.id!=null&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let s=!1;return function(...n){s||(s=!0,e.packet({type:c.ACK,id:t,data:n}))}}onack(t){const e=this.acks[t.id];typeof e=="function"&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:c.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const e=this._anyOutgoingListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const s of e)s.apply(this,t.data)}}}function u(i){i=i||{},this.ms=i.min||100,this.max=i.max||1e4,this.factor=i.factor||2,this.jitter=i.jitter>0&&i.jitter<=1?i.jitter:0,this.attempts=0}u.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),e=Math.floor(t*this.jitter*i);i=Math.floor(t*10)&1?i+e:i-e}return Math.min(i,this.max)|0};u.prototype.reset=function(){this.attempts=0};u.prototype.setMin=function(i){this.ms=i};u.prototype.setMax=function(i){this.max=i};u.prototype.setJitter=function(i){this.jitter=i};class p extends _{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,b(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((s=e.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new u({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=t;const n=e.parser||O;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(e=this.backoff)===null||e===void 0||e.setMin(t),this)}randomizationFactor(t){var e;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(e=this.backoff)===null||e===void 0||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(e=this.backoff)===null||e===void 0||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new v(this.uri,this.opts);const e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const n=a(e,"open",function(){s.onopen(),t&&t()}),o=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),t?t(h):this.maybeReconnectOnOpen()},r=a(e,"error",o);if(this._timeout!==!1){const h=this._timeout,f=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),e.close()},h);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(n),this.subs.push(r),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(a(t,"ping",this.onping.bind(this)),a(t,"data",this.ondata.bind(this)),a(t,"error",this.onerror.bind(this)),a(t,"close",this.onclose.bind(this)),a(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(e){this.onclose("parse error",e)}}ondecoded(t){E(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new y(this,t,e),this.nsps[t]=s),s}_destroy(t){const e=Object.keys(this.nsps);for(const s of e)if(this.nsps[s].active)return;this._close()}_packet(t){const e=this.encoder.encode(t);for(let s=0;s<e.length;s++)this.engine.write(e[s],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(n=>{n?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",n)):t.onreconnect()}))},e);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const d={};function l(i,t){typeof i=="object"&&(t=i,i=void 0),t=t||{};const e=w(i,t.path||"/socket.io"),s=e.source,n=e.id,o=e.path,r=d[n]&&o in d[n].nsps,h=t.forceNew||t["force new connection"]||t.multiplex===!1||r;let f;return h?f=new p(s,t):(d[n]||(d[n]=new p(s,t)),f=d[n]),e.query&&!t.query&&(t.query=e.queryKey),f.socket(e.path,t)}Object.assign(l,{Manager:p,Socket:y,io:l,connect:l});export{p as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as N}from"./@socket.io.Dkula2eQ.0.0.22-alpha.4.js";const A=typeof ArrayBuffer=="function",E=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,y=Object.prototype.toString,d=typeof Blob=="function"||typeof Blob<"u"&&y.call(Blob)==="[object BlobConstructor]",g=typeof File=="function"||typeof File<"u"&&y.call(File)==="[object FileConstructor]";function a(e){return A&&(e instanceof ArrayBuffer||E(e))||d&&e instanceof Blob||g&&e instanceof File}function u(e,r){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(u(e[t]))return!0;return!1}if(a(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return u(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&u(e[t]))return!0;return!1}function w(e){const r=[],t=e.data,n=e;return n.data=f(t,r),n.attachments=r.length,{packet:n,buffers:r}}function f(e,r){if(!e)return e;if(a(e)){const t={_placeholder:!0,num:r.length};return r.push(e),t}else if(Array.isArray(e)){const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=f(e[n],r);return t}else if(typeof e=="object"&&!(e instanceof Date)){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=f(e[n],r));return t}return e}function B(e,r){return e.data=l(e.data,r),delete e.attachments,e}function l(e,r){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<r.length)return r[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let t=0;t<e.length;t++)e[t]=l(e[t],r);else if(typeof e=="object")for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=l(e[t],r));return e}const C=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],R=5;var i;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(i||(i={}));class O{constructor(r){this.replacer=r}encode(r){return(r.type===i.EVENT||r.type===i.ACK)&&u(r)?this.encodeAsBinary({type:r.type===i.EVENT?i.BINARY_EVENT:i.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let t=""+r.type;return(r.type===i.BINARY_EVENT||r.type===i.BINARY_ACK)&&(t+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(t+=r.nsp+","),r.id!=null&&(t+=r.id),r.data!=null&&(t+=JSON.stringify(r.data,this.replacer)),t}encodeAsBinary(r){const t=w(r),n=this.encodeAsString(t.packet),o=t.buffers;return o.unshift(n),o}}function p(e){return Object.prototype.toString.call(e)==="[object Object]"}class h extends N{constructor(r){super(),this.reviver=r}add(r){let t;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(r);const n=t.type===i.BINARY_EVENT;n||t.type===i.BINARY_ACK?(t.type=n?i.EVENT:i.ACK,this.reconstructor=new m(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(a(r)||r.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(r),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let t=0;const n={type:Number(r.charAt(0))};if(i[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===i.BINARY_EVENT||n.type===i.BINARY_ACK){const s=t+1;for(;r.charAt(++t)!=="-"&&t!=r.length;);const c=r.substring(s,t);if(c!=Number(c)||r.charAt(t)!=="-")throw new Error("Illegal attachments");n.attachments=Number(c)}if(r.charAt(t+1)==="/"){const s=t+1;for(;++t&&!(r.charAt(t)===","||t===r.length););n.nsp=r.substring(s,t)}else n.nsp="/";const o=r.charAt(t+1);if(o!==""&&Number(o)==o){const s=t+1;for(;++t;){const c=r.charAt(t);if(c==null||Number(c)!=c){--t;break}if(t===r.length)break}n.id=Number(r.substring(s,t+1))}if(r.charAt(++t)){const s=this.tryParse(r.substr(t));if(h.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return n}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,t){switch(r){case i.CONNECT:return p(t);case i.DISCONNECT:return t===void 0;case i.CONNECT_ERROR:return typeof t=="string"||p(t);case i.EVENT:case i.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&C.indexOf(t[0])===-1);case i.ACK:case i.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class m{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const t=B(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const V=Object.freeze(Object.defineProperty({__proto__:null,Decoder:h,Encoder:O,get PacketType(){return i},protocol:R},Symbol.toStringTag,{value:"Module"}));export{i as P,V as p};
|