@camera.ui/server 0.0.12-alpha.4 → 0.0.13-alpha.0

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.
Files changed (74) hide show
  1. package/dist/interface/assets/{Account-CWvLwuSI.js → Account-ztef-k66.js} +1 -1
  2. package/dist/interface/assets/Adminpanel-BEcJey3P.js +2 -0
  3. package/dist/interface/assets/Adminpanel-BVlDKLbx.css +1 -0
  4. package/dist/interface/assets/{Appearance-Bt86BtvT.js → Appearance-CsfsWFip.js} +1 -1
  5. package/dist/interface/assets/{Backup-BoCWS3SS.js → Backup-BwyitGhD.js} +1 -1
  6. package/dist/interface/assets/{Camera-DGGyL9at.js → Camera-C3krHJdP.js} +1 -1
  7. package/dist/interface/assets/{Cameras-BT6tKbp5.js → Cameras-B3CGK5bP.js} +1 -1
  8. package/dist/interface/assets/{Camview-BIiqI_Yj.js → Camview-DYA9NpZ3.js} +1 -1
  9. package/dist/interface/assets/{Config-EHUrVnjH.js → Config-C4Yj-UzO.js} +1 -1
  10. package/dist/interface/assets/{Console-D7qigIrb.js → Console-CqFPXqb4.js} +1 -1
  11. package/dist/interface/assets/FirstSteps-CXJW46_r.css +1 -0
  12. package/dist/interface/assets/FirstSteps-DZRXrwSw.js +1 -0
  13. package/dist/interface/assets/{NewCamera-DrIOe7GH.js → NewCamera-8rlzf_6H.js} +19 -19
  14. package/dist/interface/assets/NewCamera-XducYkxQ.css +1 -0
  15. package/dist/interface/assets/{Plugin-CZN7KLfw.js → Plugin-mw4kghIK.js} +1 -1
  16. package/dist/interface/assets/{Plugins-DJCy47sz.css → Plugins-OYudBc-U.css} +1 -1
  17. package/dist/interface/assets/Plugins-roT2R7G-.js +1 -0
  18. package/dist/interface/assets/{Recordings-BsNa4nl1.js → Recordings-C8o1REyq.js} +1 -1
  19. package/dist/interface/assets/{Recordings-CBmeBTjC.js → Recordings-Cb66bgzd.js} +1 -1
  20. package/dist/interface/assets/Settings-CIMHAESW.js +1 -0
  21. package/dist/interface/assets/Settings-DO7S-9Ob.css +1 -0
  22. package/dist/interface/assets/{System-BeXkfJHe.js → System-D9FiXyM6.js} +2 -2
  23. package/dist/interface/assets/{User-CA1u4oTs.js → User-D97-Rs68.js} +1 -1
  24. package/dist/interface/assets/{VConfigEditor.vue_vue_type_script_setup_true_lang-DzQETeRW.js → VConfigEditor.vue_vue_type_script_setup_true_lang-DE77uadd.js} +1 -1
  25. package/dist/interface/assets/{VConsole-B1XFaB1X.js → VConsole-Bf-WItOk.js} +1 -1
  26. package/dist/interface/assets/VConsole-Ce_ESyGu.css +1 -0
  27. package/dist/interface/assets/{VPlayer-B1HHlrNE.css → VPlayer-BWeNP9xt.css} +1 -1
  28. package/dist/interface/assets/VPlayer-CjBoAE42.js +1 -0
  29. package/dist/interface/assets/{VPluginCard-DxspPu-g.js → VPluginCard-23hHloPd.js} +1 -1
  30. package/dist/interface/assets/{axios--Jv2L996.js → axios-BI2i94Vb.js} +1 -1
  31. package/dist/interface/assets/{main-Uk5-SrnC.css → main-CTF7x7Fg.css} +1 -1
  32. package/dist/interface/assets/{main-g2kR7sEX.js → main-CltTNKYj.js} +8 -8
  33. package/dist/interface/assets/{plugins-S3SjQeRW.js → plugins-BvEiuWHs.js} +1 -1
  34. package/dist/interface/assets/{system-l2HUoPBI.js → system-4fS8k88J.js} +1 -1
  35. package/dist/interface/index.html +3 -3
  36. package/dist/interface/pwa/pwa-120x120.png +0 -0
  37. package/dist/interface/pwa/pwa-144x144.png +0 -0
  38. package/dist/interface/pwa/pwa-152x152.png +0 -0
  39. package/dist/interface/pwa/pwa-167x167.png +0 -0
  40. package/dist/interface/pwa/pwa-192x192.png +0 -0
  41. package/dist/interface/pwa/pwa-24x24.png +0 -0
  42. package/dist/interface/pwa/pwa-36x36.png +0 -0
  43. package/dist/interface/pwa/pwa-48x48.png +0 -0
  44. package/dist/interface/pwa/pwa-50x50.png +0 -0
  45. package/dist/interface/pwa/pwa-64x64.png +0 -0
  46. package/dist/interface/pwa/pwa-72x72.png +0 -0
  47. package/dist/interface/pwa/pwa-88x88.png +0 -0
  48. package/dist/interface/pwa/pwa-96x96.png +0 -0
  49. package/dist/interface/sw.js +1 -1
  50. package/dist/server/bin/cameraui.js +1 -2
  51. package/dist/server/bin/cameraui.js.map +1 -1
  52. package/dist/server/package.json +1 -1
  53. package/dist/server/src/api/controllers/plugins.controller.js +2 -5
  54. package/dist/server/src/api/controllers/plugins.controller.js.map +1 -1
  55. package/dist/server/src/plugins/worker.js +2 -4
  56. package/dist/server/src/plugins/worker.js.map +1 -1
  57. package/dist/server/src/polyglot/python/plugins/plugin_api.py +0 -2
  58. package/dist/server/src/services/logger/index.d.ts +3 -9
  59. package/dist/server/src/services/logger/index.js +3 -21
  60. package/dist/server/src/services/logger/index.js.map +1 -1
  61. package/dist/server/src/utils/pythonInstaller.js +5 -6
  62. package/dist/server/src/utils/pythonInstaller.js.map +1 -1
  63. package/package.json +1 -1
  64. package/dist/interface/assets/Adminpanel-Cp92VRfz.css +0 -1
  65. package/dist/interface/assets/Adminpanel-D1acAd4f.js +0 -2
  66. package/dist/interface/assets/FirstSteps-BdNf60c3.js +0 -1
  67. package/dist/interface/assets/FirstSteps-tMe0mt29.css +0 -1
  68. package/dist/interface/assets/NewCamera-CHMgUDbC.css +0 -1
  69. package/dist/interface/assets/Plugins-DePXhcTc.js +0 -1
  70. package/dist/interface/assets/Settings-HBKa6UiL.js +0 -1
  71. package/dist/interface/assets/Settings-JES2wb8p.css +0 -1
  72. package/dist/interface/assets/VConsole-MV9pQtJj.css +0 -1
  73. package/dist/interface/assets/VPlayer-DpgP5_CU.js +0 -1
  74. package/dist/server/src/polyglot/node/decoder/wasm/test/imageUtils.py +0 -106
@@ -1,4 +1,4 @@
1
- import{z as $,f as E,w as N,B as P,d as h}from"./main-g2kR7sEX.js";import{F as j,r as k,c as S,a3 as L,U as F,e as H,f as q,j as w,M as t,u as o,X as G,R as n,i as J,n as W,m as X,V as f,T as m,q as y}from"./@vue-DMh6qW6s.js";import{$ as Z,a1 as K,a2 as Y,J as oo,I as eo}from"./@mdi-CmcijEFB.js";import{S as to}from"./system-l2HUoPBI.js";import{V as no}from"./VConsole-B1XFaB1X.js";import{u as ao}from"./ui-CyEgSsGE.js";import{s as so}from"./pinia-BQbsPkIS.js";import{P as lo,Q as io,e as g,b as _}from"./vuetify-DYU2dOLI.js";import"./vue-inline-svg-D1BV6A5r.js";import"./vue3-toastify-D8Ru9hkX.js";import"./vue-i18n-DqKZtX1N.js";import"./@intlify-Ck2ZoCVz.js";import"./axios--Jv2L996.js";import"./@tanstack-BvYNCsQh.js";import"./vue-router-Bje-Muh5.js";import"./@vueuse-D76s02Ot.js";import"./nprogress-DSyAi0LF.js";import"./@xterm-B4Ga69iL.js";import"./vee-validate-9vrYaQFq.js";import"./@vee-validate-BY5H7fGS.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-CQrF441D.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CVkp7hgG.js";import"./@popperjs-BQBsAJpH.js";const ro={style:{padding:"0 !important"}},co=j({__name:"Console",setup(mo){const d=new to,V=$(),C=ao(),{mobileActive:x,extraSmallMobileActive:Q}=E(),{uiSettings:i}=so(C),v=k(null),c=k(),u=k(!1),B=S(()=>({fontSize:i.value.console.zoom}));d.toggleQueryActivator("downloadLogQuery",!1);const{data:b,isLoading:T,suspense:M}=d.downloadLogQuery(),{mutate:R,isPending:A}=d.clearLogQuery(),p=S(()=>T.value||A.value),D=async()=>{R(void 0,{onSuccess:()=>{u.value=!1}})},I=async()=>{try{if(d.toggleQueryActivator("downloadLogQuery",!0),await M(),b.value){const a=b.value,e=window.URL.createObjectURL(new Blob([a])),s=document.createElement("a");s.href=e,s.setAttribute("download","camera.ui.log.txt"),document.body.appendChild(s),s.click(),s.remove()}}finally{d.toggleQueryActivator("downloadLogQuery",!1)}},O=()=>{i.value.console.zoom!==8&&i.value.console.zoom--},U=()=>{i.value.console.zoom!==20&&i.value.console.zoom++};return L(()=>{c.value=V.connectToNamespace("/logs")}),L(()=>{var a,e,s,l;(a=c.value)==null||a.socket.on("stdout",r=>{var z;(z=v.value)==null||z.writeTerminal(r)}),(e=c.value)==null||e.socket.on("disconnect",()=>{var r;(r=v.value)==null||r.writeTerminal(`
1
+ import{z as $,f as E,w as N,B as P,d as h}from"./main-CltTNKYj.js";import{F as j,r as k,c as S,a3 as L,U as F,e as H,f as q,j as w,M as t,u as o,X as G,R as n,i as J,n as W,m as X,V as f,T as m,q as y}from"./@vue-DMh6qW6s.js";import{$ as Z,a1 as K,a2 as Y,J as oo,I as eo}from"./@mdi-CmcijEFB.js";import{S as to}from"./system-4fS8k88J.js";import{V as no}from"./VConsole-Bf-WItOk.js";import{u as ao}from"./ui-CyEgSsGE.js";import{s as so}from"./pinia-BQbsPkIS.js";import{P as lo,Q as io,e as g,b as _}from"./vuetify-DYU2dOLI.js";import"./vue-inline-svg-D1BV6A5r.js";import"./vue3-toastify-D8Ru9hkX.js";import"./vue-i18n-DqKZtX1N.js";import"./@intlify-Ck2ZoCVz.js";import"./axios-BI2i94Vb.js";import"./@tanstack-BvYNCsQh.js";import"./vue-router-Bje-Muh5.js";import"./@vueuse-D76s02Ot.js";import"./nprogress-DSyAi0LF.js";import"./@xterm-B4Ga69iL.js";import"./vee-validate-9vrYaQFq.js";import"./@vee-validate-BY5H7fGS.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-CQrF441D.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CVkp7hgG.js";import"./@popperjs-BQBsAJpH.js";const ro={style:{padding:"0 !important"}},co=j({__name:"Console",setup(mo){const d=new to,V=$(),C=ao(),{mobileActive:x,extraSmallMobileActive:Q}=E(),{uiSettings:i}=so(C),v=k(null),c=k(),u=k(!1),B=S(()=>({fontSize:i.value.console.zoom}));d.toggleQueryActivator("downloadLogQuery",!1);const{data:b,isLoading:T,suspense:M}=d.downloadLogQuery(),{mutate:R,isPending:A}=d.clearLogQuery(),p=S(()=>T.value||A.value),D=async()=>{R(void 0,{onSuccess:()=>{u.value=!1}})},I=async()=>{try{if(d.toggleQueryActivator("downloadLogQuery",!0),await M(),b.value){const a=b.value,e=window.URL.createObjectURL(new Blob([a])),s=document.createElement("a");s.href=e,s.setAttribute("download","camera.ui.log.txt"),document.body.appendChild(s),s.click(),s.remove()}}finally{d.toggleQueryActivator("downloadLogQuery",!1)}},O=()=>{i.value.console.zoom!==8&&i.value.console.zoom--},U=()=>{i.value.console.zoom!==20&&i.value.console.zoom++};return L(()=>{c.value=V.connectToNamespace("/logs")}),L(()=>{var a,e,s,l;(a=c.value)==null||a.socket.on("stdout",r=>{var z;(z=v.value)==null||z.writeTerminal(r)}),(e=c.value)==null||e.socket.on("disconnect",()=>{var r;(r=v.value)==null||r.writeTerminal(`
2
2
  \rWebsocket failed to connect! Is the server running?
3
3
  \r
4
4
  \r`)}),(s=c.value)==null||s.socket.on("clear-log",()=>{var r;(r=v.value)==null||r.clearTerminal()}),(l=c.value)==null||l.socket.emit("get-log")}),F(()=>{var a,e;(e=(a=c.value)==null?void 0:a.end)==null||e.call(a)}),(a,e)=>{const s=N;return H(),q("main",ro,[w("div",{class:W(["h-full w-full",{"mb-safe":o(x)}])},[t(no,{ref_key:"consoleRef",ref:v,class:"text-editor",options:o(B)},null,8,["options"]),w("div",{class:"text-editor-buttons flex flex-row justify-center",style:G(o(Q)?`bottom: calc(1rem + ${o(P).HEIGHT}px + env(safe-area-inset-bottom, 0px))`:"bottom: calc(1rem + env(safe-area-inset-bottom, 0px))")},[t(lo,{location:"top center",transition:"fade-transition","close-on-content-click":!1},{activator:n(({props:l})=>[t(io,X(l,{size:"default",icon:""}),{default:n(()=>[t(g,{size:"20"},{default:n(()=>[f(m(o(Z)),1)]),_:1})]),_:2},1040)]),default:n(()=>[t(_,{key:"1",loading:o(p),color:"success",icon:"",onClick:y(I,["prevent"])},{default:n(()=>[t(g,{size:"20"},{default:n(()=>[f(m(o(K)),1)]),_:1})]),_:1},8,["loading"]),t(_,{key:"2",loading:o(p),color:"red",icon:"",onClick:e[0]||(e[0]=y(l=>u.value=!0,["prevent"]))},{default:n(()=>[t(g,{size:"20"},{default:n(()=>[f(m(o(Y)),1)]),_:1})]),_:1},8,["loading"]),t(_,{key:"3",loading:o(p),icon:"",disabled:o(i).console.zoom===20,onClick:y(U,["prevent"])},{default:n(()=>[t(g,{size:"20"},{default:n(()=>[f(m(o(oo)),1)]),_:1})]),_:1},8,["loading","disabled"]),t(_,{key:"4",loading:o(p),disabled:o(i).console.zoom===8,icon:"",onClick:y(O,["prevent"])},{default:n(()=>[t(g,{size:"20"},{default:n(()=>[f(m(o(eo)),1)]),_:1})]),_:1},8,["loading","disabled"])]),_:1})],4),t(s,{modelValue:o(u),"onUpdate:modelValue":e[1]||(e[1]=l=>J(u)?u.value=l:null),title:a.$t("components.dialog.title.confirm"),"confirm-text":"components.form.button.clear",loading:o(p),onConfirm:e[2]||(e[2]=l=>D())},{content:n(()=>[w("span",null,m(a.$t("components.dialog.message.confirm_clear_log")),1)]),_:1},8,["modelValue","title","loading"])],2)])}}}),jo=h(co,[["__scopeId","data-v-aedcf245"]]);export{jo as default};
@@ -0,0 +1 @@
1
+ .window[data-v-88af05ec]{height:100%}.firststeps-progress[data-v-88af05ec]{background:var(--color-primary);position:fixed;height:calc(170px + env(safe-area-inset-top,0px));top:0;left:0;z-index:1}.firststeps-progress-inner[data-v-88af05ec]{max-width:500px}.firststeps-button[data-v-88af05ec]{position:relative;text-transform:none!important;color:#ffffff80!important;font-size:.8rem}.firststeps-next[data-v-88af05ec]{background:var(--color-primary);color:#fff}.firststeps-skip[data-v-88af05ec]{position:relative;right:-10px}.firststeps[data-v-88af05ec]{background:var(--background-login);overflow-y:scroll;top:calc(170px + env(safe-area-inset-top,0px));height:calc(100% - 170px - env(safe-area-inset-top,0px));position:relative}.firststeps-progress-text[data-v-88af05ec]{color:#fff;font-size:1.2rem}.firststeps-progress-text b[data-v-88af05ec]{font-weight:800}.firststeps-progress-text span[data-v-88af05ec]{margin-left:10px;opacity:.5}.firststeps-progress-title[data-v-88af05ec]{color:#fff;font-size:1.5rem;font-weight:800}.firststeps-step-bar[data-v-88af05ec]{height:3px;width:50px;background:#ffffff80;flex:1 1 auto}.firststeps-step-bar-active[data-v-88af05ec]{background:#fff}.firststeps-info[data-v-88af05ec]{color:var(--color-disabled)}.firststeps-form[data-v-88af05ec]{max-width:500px}@media screen and (max-width: 450px){.firststeps-progress[data-v-88af05ec]{width:100dvw}}@keyframes animate-svg-stroke-3-88af05ec{0%{stroke-dashoffset:119.24423783197108px;stroke-dasharray:119.24423783197108px}to{stroke-dashoffset:0;stroke-dasharray:119.24423783197108px}}@keyframes animate-svg-fill-3-88af05ec{0%{fill:transparent}to{fill:#c5c6c8}}div[data-v-88af05ec] .svg-elem-3{animation:animate-svg-stroke-3-88af05ec .5s cubic-bezier(.47,0,.745,.715) .24s both,animate-svg-fill-3-88af05ec .3s cubic-bezier(.47,0,.745,.715) 1s both}@keyframes animate-svg-stroke-4-88af05ec{0%{stroke-dashoffset:72.2947006225586px;stroke-dasharray:72.2947006225586px}to{stroke-dashoffset:0;stroke-dasharray:72.2947006225586px}}@keyframes animate-svg-fill-4-88af05ec{0%{fill:transparent}to{fill:#1a1e21}}div[data-v-88af05ec] .svg-elem-4{animation:animate-svg-stroke-4-88af05ec .5s cubic-bezier(.47,0,.745,.715) .36s both,animate-svg-fill-4-88af05ec .3s cubic-bezier(.47,0,.745,.715) 1.1s both}@keyframes animate-svg-stroke-5-88af05ec{0%{stroke-dashoffset:12.32623871258889px;stroke-dasharray:12.32623871258889px}to{stroke-dashoffset:0;stroke-dasharray:12.32623871258889px}}@keyframes animate-svg-fill-5-88af05ec{0%{fill:transparent}to{fill:#fff}}div[data-v-88af05ec] .svg-elem-5{animation:animate-svg-stroke-5-88af05ec .5s cubic-bezier(.47,0,.745,.715) .48s both,animate-svg-fill-5-88af05ec .3s cubic-bezier(.47,0,.745,.715) 1.2000000000000002s both}@keyframes animate-svg-stroke-6-88af05ec{0%{stroke-dashoffset:12.32623871258889px;stroke-dasharray:12.32623871258889px}to{stroke-dashoffset:0;stroke-dasharray:12.32623871258889px}}@keyframes animate-svg-fill-6-88af05ec{0%{fill:transparent}to{fill:#fff}}div[data-v-88af05ec] .svg-elem-6{animation:animate-svg-stroke-6-88af05ec .5s cubic-bezier(.47,0,.745,.715) .6s both,animate-svg-fill-6-88af05ec .3s cubic-bezier(.47,0,.745,.715) 1.3s both}@keyframes animate-svg-stroke-7-88af05ec{0%{stroke-dashoffset:12.32623871258889px;stroke-dasharray:12.32623871258889px}to{stroke-dashoffset:0;stroke-dasharray:12.32623871258889px}}@keyframes animate-svg-fill-7-88af05ec{0%{fill:transparent}to{fill:#fff}}div[data-v-88af05ec] .svg-elem-7{animation:animate-svg-stroke-7-88af05ec .5s cubic-bezier(.47,0,.745,.715) .72s both,animate-svg-fill-7-88af05ec .3s cubic-bezier(.47,0,.745,.715) 1.4000000000000001s both}@keyframes animate-svg-stroke-8-88af05ec{0%{stroke-dashoffset:12.430087609918113px;stroke-dasharray:12.430087609918113px}to{stroke-dashoffset:0;stroke-dasharray:12.430087609918113px}}@keyframes animate-svg-fill-8-88af05ec{0%{fill:transparent}to{fill:#fff}}div[data-v-88af05ec] .svg-elem-8{animation:animate-svg-stroke-8-88af05ec .5s cubic-bezier(.47,0,.745,.715) .84s both,animate-svg-fill-8-88af05ec .3s cubic-bezier(.47,0,.745,.715) 1.5s both}@keyframes animate-svg-stroke-9-88af05ec{0%{stroke-dashoffset:24.203350067138672px;stroke-dasharray:24.203350067138672px}to{stroke-dashoffset:0;stroke-dasharray:24.203350067138672px}}@keyframes animate-svg-fill-9-88af05ec{0%{fill:transparent}to{fill:#fff}}div[data-v-88af05ec] .svg-elem-9{animation:animate-svg-stroke-9-88af05ec .5s cubic-bezier(.47,0,.745,.715) .96s both,animate-svg-fill-9-88af05ec .3s cubic-bezier(.47,0,.745,.715) 1.6s both}
@@ -0,0 +1 @@
1
+ import{u as ie,a as de,b as me,i as ce,g as pe,c as ue,r as fe,_ as ve,d as he}from"./main-CltTNKYj.js";import{F as ge,r as u,b as be,c as G,w as _e,e as f,f as R,j as s,u as e,O as z,q as B,l as E,T as m,N as we,Q as ye,M as l,R as c,n as xe,i as V,m as S,V as L,ai as ke,aj as Ve}from"./@vue-DMh6qW6s.js";import{m as H,a as J}from"./@mdi-CmcijEFB.js";import{F as b,a as Se}from"./vee-validate-9vrYaQFq.js";import{I as $e}from"./vue-inline-svg-D1BV6A5r.js";import{a as Ce}from"./vue-router-Bje-Muh5.js";import{s as N}from"./pinia-BQbsPkIS.js";import{b as $,w as Fe,x as P,y as K,d as T,c as O,z as X}from"./vuetify-DYU2dOLI.js";import"./vue3-toastify-D8Ru9hkX.js";import"./vue-i18n-DqKZtX1N.js";import"./@intlify-Ck2ZoCVz.js";import"./axios-BI2i94Vb.js";import"./@tanstack-BvYNCsQh.js";import"./@vueuse-D76s02Ot.js";import"./nprogress-DSyAi0LF.js";import"./@xterm-B4Ga69iL.js";import"./@vee-validate-BY5H7fGS.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-CQrF441D.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CVkp7hgG.js";import"./@popperjs-BQBsAJpH.js";const q=_=>(ke("data-v-88af05ec"),_=_(),Ve(),_),Ie={class:"h-full router-view p-2",style:{padding:"0",height:"100dvh"}},Ue={class:"firststeps-progress flex flex-col items-center p-5 w-full"},je={class:"firststeps-progress-inner pt-safe flex flex-col h-full w-full"},Me={class:"flex flex-row items-center"},Re={class:"firststeps-progress-title mt-3"},ze={class:"firststeps-progress-text mt-1"},Be={class:"flex flex-row gap-2 mt-3 mb-3"},Ee={class:"firststeps flex flex-col items-center p-5 w-full h-full hide-scrollbar"},Le={class:"relative"},Ne={for:"theme",class:"v-label"},Pe=q(()=>s("div",{class:"py-2"},null,-1)),Te={class:"ml-auto flex"},Oe=q(()=>s("div",{class:"py-3"},null,-1)),qe={class:"relative"},Ae={for:"language",class:"v-label"},De={class:"flex flex-row relative"},We={class:"w-100 mr-5"},Qe={for:"username",class:"v-label"},Ge={class:"image-upload ml-auto mt-3"},He={for:"file-input"},Je={class:"relative mt-5"},Ke={for:"password",class:"v-label"},Xe={class:"relative"},Ye={for:"password",class:"v-label"},Ze={class:"ml-auto flex"},et=q(()=>s("div",{class:"py-3"},null,-1)),tt={class:"ml-auto flex"},st={class:"w-full flex flex-col justify-center items-center"},at={class:"text-center mt-10 firststeps-info"},ot=ge({__name:"FirstSteps",setup(_){const C=ie(),Y=de(),Z=me(),ee=Ce(),{t:F}=ce.global,{loading:v,loginState:te}=N(C),{locale:I,languages:se}=N(Z),{colors:ae,theme:U,autoMode:w}=N(Y),n=u(0),A=u(),j=u(),y=u(!1),x=u(!1),h=u(),D=u(!1),k=be([{title:F("views.firststeps.step_appearance")},{title:F("views.firststeps.step_account")},{title:F("views.firststeps.step_finish")}]),oe=G(()=>Math.round((n.value+1)/k.length*100)),M=G(()=>n.value===k.length-1);_e(n,a=>{a===0&&(D.value=!1)});const le=async a=>{var d;const t=(d=a.target)==null?void 0:d.files;j.value=t==null?void 0:t[0],A.value=await fe(a)},re=async()=>{var a,t;try{await C.logout()}catch(d){console.error(((t=(a=d.response)==null?void 0:a.data)==null?void 0:t.message)??d.message??d)}},W=async()=>{var a,t,d,o;if(n.value>0){const r=(a=h.value)==null?void 0:a.getValues();if(r&&!r.password){(t=h.value)==null||t.setFieldError("password","Required"),(d=h.value)==null||d.setFieldError("passwordConfirm","Required");return}const i=await((o=h.value)==null?void 0:o.validate());i!=null&&i.valid&&!M.value&&n.value++}else n.value++},ne=async a=>{var t,d;if(D.value=!0,M.value){let o;const r={...a};r.firstLogin=!1,delete r.upload;try{v.value=!0,j.value&&(o=new FormData,o.append("upload",j.value)),await C.updateUser(r,o,!0),ee.push({path:"/cameras"})}catch(i){console.error(((d=(t=i.response)==null?void 0:t.data)==null?void 0:d.message)??i.message??i)}}},Q=()=>{n.value>0&&n.value--};return(a,t)=>{const d=ve;return f(),R("main",Ie,[s("div",Ue,[s("div",je,[s("div",Me,[e(n)>0?(f(),z($,{key:0,density:"compact",class:"firststeps-button no-drag",variant:"tonal",color:"tonal",text:a.$t("components.form.button.previous"),loading:e(v),onClick:t[0]||(t[0]=B(o=>Q(),["prevent"]))},null,8,["text","loading"])):E("",!0),e(n)===0?(f(),z($,{key:1,density:"compact",class:"firststeps-button no-drag",variant:"tonal",color:"white",text:a.$t("components.form.button.logout"),loading:e(v),onClick:t[1]||(t[1]=B(o=>re(),["prevent"]))},null,8,["text","loading"])):E("",!0),e(M)?E("",!0):(f(),z($,{key:2,density:"compact",class:"firststeps-button ml-auto no-drag",variant:"tonal",color:"white",text:a.$t("components.form.button.next"),loading:e(v),onClick:t[2]||(t[2]=B(o=>W(),["prevent"]))},null,8,["text","loading"]))]),s("h1",Re,m(e(k)[e(n)].title),1),s("h1",ze,[s("b",null,m(e(oe))+"%",1),s("span",null,m(a.$t("views.firststeps.complete")),1)]),s("div",Be,[(f(!0),R(we,null,ye(e(k),(o,r)=>(f(),R("div",{key:r,class:xe(["firststeps-step-bar",{"firststeps-step-bar-active":e(n)===r}])},null,2))),128))])])]),s("div",Ee,[l(e(Se),{ref_key:"userForm",ref:h,class:"firststeps-form flex flex-col h-full w-full","validation-schema":e(ue),onSubmit:t[10]||(t[10]=o=>ne(o))},{default:c(()=>[l(Fe,{modelValue:e(n),"onUpdate:modelValue":t[9]||(t[9]=o=>V(n)?n.value=o:null),class:"window",touch:{left:W,right:Q}},{default:c(()=>[l(P,{value:0,transition:"fade","reverse-transition":"fade-reverse",disabled:!1},{default:c(()=>[s("div",Le,[s("label",Ne,m(a.$t("components.form.label.theme")),1),l(K,{modelValue:e(U),"onUpdate:modelValue":t[3]||(t[3]=o=>V(U)?U.value=o:null),variant:"outlined",name:"theme","hide-details":"",density:"compact",items:e(ae),disabled:e(w)},null,8,["modelValue","items","disabled"])]),Pe,s("div",null,[s("div",Te,[l(T,{modelValue:e(w),"onUpdate:modelValue":t[4]||(t[4]=o=>V(w)?w.value=o:null),color:"#df2a4c",type:"checkbox",label:a.$t("components.form.label.system_preference"),"hide-details":""},null,8,["modelValue","label"])])]),Oe,s("div",qe,[s("label",Ae,m(a.$t("components.form.label.language")),1),l(K,{modelValue:e(I),"onUpdate:modelValue":t[5]||(t[5]=o=>V(I)?I.value=o:null),variant:"outlined",name:"language","hide-details":"",density:"compact",items:e(se)},null,8,["modelValue","items"])])]),_:1}),l(P,{value:1,transition:"fade","reverse-transition":"fade-reverse",disabled:!1},{default:c(()=>{var o;return[s("div",De,[s("div",We,[s("label",Qe,m(a.$t("components.form.label.username")),1),l(O,{variant:"outlined",type:"text",disabled:"","hide-details":"",density:"compact",value:(o=e(te).user)==null?void 0:o.username},null,8,["value"])]),s("div",Ge,[s("label",He,[l(d,{src:e(A),size:"4rem",style:{"border-radius":"4rem",border:"1px solid var(--border)"}},null,8,["src"]),l(e(b),{id:"file-input",type:"file",name:"upload",accept:"image/png,image/jpeg,image/jpg",onChange:t[6]||(t[6]=r=>le(r))})])])]),s("div",Je,[s("label",Ke,m(a.$t("components.form.label.new_password")),1),l(e(b),{name:"password"},{default:c(({field:r,errorMessage:i,errors:p})=>[l(O,S({variant:"outlined"},r,{name:"password",type:e(y)?"text":"password",error:p.length>0,"error-messages":i,density:"compact","append-inner-icon":e(y)?e(H):e(J),"onClick:appendInner":t[7]||(t[7]=g=>y.value=!e(y))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),s("div",Xe,[s("label",Ye,m(a.$t("components.form.label.new_password_confirm")),1),l(e(b),{name:"passwordConfirm"},{default:c(({field:r,errorMessage:i,errors:p})=>[l(O,S({variant:"outlined"},r,{name:"passwordConfirm",type:e(x)?"text":"password",error:p.length>0,"error-messages":i,density:"compact","append-inner-icon":e(x)?e(H):e(J),"onClick:appendInner":t[8]||(t[8]=g=>x.value=!e(x))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),s("div",null,[s("div",Ze,[l(e(b),{name:"oneLogin",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:c(({field:r,errorMessage:i,errors:p,value:g})=>[l(T,S(r,{name:"oneLogin",color:"#df2a4c",type:"checkbox",error:p.length>0,"error-messages":i,value:g,label:a.$t("components.form.label.one_login"),"hide-details":""}),null,16,["error","error-messages","value","label"])]),_:1})]),l(X,{theme:"dark",density:"compact",variant:"tonal",style:{"font-size":"0.7rem",color:"var(--color-disabled)"}},{default:c(()=>[L(m(a.$t("components.form.hint.one_login")),1)]),_:1})]),et,s("div",null,[s("div",tt,[l(e(b),{name:"rememberMe",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:c(({field:r,errorMessage:i,errors:p,value:g})=>[l(T,S({name:"rememberMe"},r,{color:"#df2a4c",type:"checkbox",error:p.length>0,"error-messages":i,value:g,label:a.$t("components.form.label.remember_me"),"hide-details":""}),null,16,["error","error-messages","value","label"])]),_:1})]),l(X,{class:"mb-safe",theme:"dark",density:"compact",variant:"tonal",style:{"font-size":"0.7rem",color:"var(--color-disabled)"}},{default:c(()=>[L(m(a.$t("components.form.hint.remember_me")),1)]),_:1})])]}),_:1}),l(P,{value:2,transition:"fade","reverse-transition":"fade-reverse",disabled:!1},{default:c(()=>[s("div",st,[l(e($e),{src:e(pe)("logo_animated.svg"),width:"78px",height:"84px",title:"camera.ui","aria-label":"camera.ui"},null,8,["src"]),s("p",at,m(a.$t("views.firststeps.finish_message")),1),l($,{class:"mt-7 text-white",type:"submit",elevation:"1",color:"#df2a4c",loading:e(v)},{default:c(()=>[L(m(a.$t("views.firststeps.enjoy")),1)]),_:1},8,["loading"])])]),_:1})]),_:1},8,["modelValue","touch"])]),_:1},8,["validation-schema"])])])}}}),Rt=he(ot,[["__scopeId","data-v-88af05ec"]]);export{Rt as default};
@@ -1,4 +1,4 @@
1
- import{C as we,c as _e,_ as ye}from"./VPlayer-DpgP5_CU.js";import{f as xe,w as ke,d as Se}from"./main-g2kR7sEX.js";import{F as Te,r as b,D as Pe,c as Re,w as Ve,y as Ie,e as f,f as P,j as l,M as a,R as s,u as e,i as H,n as K,T as m,V as h,m as _,N as q,Q as J,O as j,q as x,l as Ae,X as Ce}from"./@vue-DMh6qW6s.js";import{H as I,t as He,y as je,j as Ee,p as Ue}from"./highlight.js-TxRCSjhv.js";import{e as X,s as Oe,F as Ge,G as Me,Y as $e,Z as Fe,_ as Le}from"./@mdi-CmcijEFB.js";import{e as We}from"./@vueuse-D76s02Ot.js";import{M as De}from"./markdown-it-DI8MEbma.js";import{F as v,a as Be}from"./vee-validate-9vrYaQFq.js";import{s as ze}from"./utils-BvINh1mj.js";import{a as Ne}from"./vue-router-Bje-Muh5.js";import{b as R,e as k,K as F,L,M as W,N as D,c as S,y as Q,m as Ye,O as Ke,V as Z}from"./vuetify-DYU2dOLI.js";import"./qrcode-SHonoxyK.js";import"./dijkstrajs-D_NXgYpA.js";import"./zod-BaF2dDCd.js";import"./pinia-BQbsPkIS.js";import"./@vee-validate-BY5H7fGS.js";import"./vue3-toastify-D8Ru9hkX.js";import"./plugins-S3SjQeRW.js";import"./@tanstack-BvYNCsQh.js";import"./draggabilly-Arakw9Dk.js";import"./@xterm-B4Ga69iL.js";import"./get-size-D1dS-IaP.js";import"./unidragger-BYtqgAQ0.js";import"./ev-emitter-CXYwG0eJ.js";import"./vue-inline-svg-D1BV6A5r.js";import"./vue-i18n-DqKZtX1N.js";import"./@intlify-Ck2ZoCVz.js";import"./axios--Jv2L996.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-CQrF441D.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CVkp7hgG.js";import"./@popperjs-BQBsAJpH.js";import"./nprogress-DSyAi0LF.js";import"./mdurl-k9Sl0PQj.js";import"./uc.micro-kMc2yuuw.js";import"./entities-C20TfXL6.js";import"./linkify-it-DmNjr4Kv.js";import"./punycode.js-Dj65hjkv.js";const qe=["bubble://","dvrip://","echo:","exec:","expr:","ffmpeg:","gopro://","hass:","homekit://","http://","https://","httpx://","isapi://","ivideon:","kasa://","nest:","onvif://","roborock://","rtmp://","rtsp://","rtspx://","tapo://","tcp://","webrtc:","webtorrent:"],Je=["#backchannel=0","#header=","#media=audio","#media=video","#timeout=10","#timeout=20","#timeout=30","#transport="],ee=["#audio=aac","#audio=aac/16000","#audio=mp3","#audio=opus","#audio=pcm","#audio=pcm/8000","#audio=pcm/16000","#audio=pcm/48000","#audio=pcma","#audio=pcma/8000","#audio=pcma/16000","#audio=pcma/48000","#audio=pcml","#audio=pcml/8000","#audio=pcml/44100","#audio=pcmu","#audio=pcmu/8000","#audio=pcmu/16000","#audio=pcmu/48000","#drawtext","#hardware","#hardware=cuda","#hardware=dxva2","#hardware=rkmpp","#hardware=v4l2m2m","#hardware=vaapi","#hardware=videotoolbox","#height=","#raw=","#rotate=-90","#rotate=90","#rotate=180","#rotate=270","#video=copy","#video=h264","#video=h265","#video=mjpeg","#width="],Xe=["client_id=","client_private=","device_id=","device_public="],Qe=["#header="],Ze=["client_id=","client_secret=","refresh_token=","project_id=","device_id="],eo=["#client_id=","#format=openipc","#format=wyze","#format=kinesis","#ice_servers="],oo="#### Source: Bubble\n\nOther names: [ESeeCloud](http://www.eseecloud.com/), [dvr163](http://help.dvr163.com/).\n\n- you can skip `username`, `password`, `port`, `ch` and `stream` if they are default\n- setup separate streams for different channels and streams\n\n```yaml\nstreams:\n camera1: bubble://username:password@192.168.1.123:34567/bubble/live?ch=0&stream=0\n```\n\n_Source: [Go2Rtc Bubble](https://github.com/AlexxIT/go2rtc#source-bubble)_\n",to="#### Source: DVRIP\n\nOther names: DVR-IP, NetSurveillance, Sofia protocol (NETsurveillance ActiveX plugin XMeye SDK).\n\n- you can skip `username`, `password`, `port`, `channel` and `subtype` if they are default\n- setup separate streams for different channels\n- use `subtype=0` for Main stream, and `subtype=1` for Extra1 stream\n- only the TCP protocol is supported\n\n```yaml\nstreams:\n only_stream: dvrip://username:password@192.168.1.123:34567?channel=0&subtype=0\n only_tts: dvrip://username:password@192.168.1.123:34567?backchannel=1\n two_way_audio:\n - dvrip://username:password@192.168.1.123:34567?channel=0&subtype=0\n - dvrip://username:password@192.168.1.123:34567?backchannel=1\n```\n\n_Source: [Go2Rtc DVRIP](https://github.com/AlexxIT/go2rtc#source-dvrip)_\n",ao=`#### Source: Echo
1
+ import{C as we,c as ve,_ as _e}from"./VPlayer-CjBoAE42.js";import{f as ye,w as xe,d as ke}from"./main-CltTNKYj.js";import{F as Se,r as w,D as Te,c as Pe,w as Re,e as h,f as k,j as m,M as a,R as n,u as t,i as O,n as W,T as l,V as d,m as G,N as D,Q as B,O as A,q as _,l as Ie,X as Ae}from"./@vue-DMh6qW6s.js";import{H as P,t as Ce,y as He,j as Ve,p as je}from"./highlight.js-TxRCSjhv.js";import{e as z,s as Ee,F as Oe,G as Ge,Y as Me,Z as Ue,_ as Fe}from"./@mdi-CmcijEFB.js";import{e as $e}from"./@vueuse-D76s02Ot.js";import{M as Le}from"./markdown-it-DI8MEbma.js";import{F as C,a as We}from"./vee-validate-9vrYaQFq.js";import{s as De}from"./utils-BvINh1mj.js";import{a as Be}from"./vue-router-Bje-Muh5.js";import{b as S,e as y,K as N,L as Y,M as K,N as q,c as J,y as X,m as ze,O as Ne,V as Q}from"./vuetify-DYU2dOLI.js";import"./qrcode-SHonoxyK.js";import"./dijkstrajs-D_NXgYpA.js";import"./zod-BaF2dDCd.js";import"./pinia-BQbsPkIS.js";import"./@vee-validate-BY5H7fGS.js";import"./vue3-toastify-D8Ru9hkX.js";import"./plugins-BvEiuWHs.js";import"./@tanstack-BvYNCsQh.js";import"./draggabilly-Arakw9Dk.js";import"./@xterm-B4Ga69iL.js";import"./get-size-D1dS-IaP.js";import"./unidragger-BYtqgAQ0.js";import"./ev-emitter-CXYwG0eJ.js";import"./vue-inline-svg-D1BV6A5r.js";import"./vue-i18n-DqKZtX1N.js";import"./@intlify-Ck2ZoCVz.js";import"./axios-BI2i94Vb.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-CQrF441D.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CVkp7hgG.js";import"./@popperjs-BQBsAJpH.js";import"./nprogress-DSyAi0LF.js";import"./mdurl-k9Sl0PQj.js";import"./uc.micro-kMc2yuuw.js";import"./entities-C20TfXL6.js";import"./linkify-it-DmNjr4Kv.js";import"./punycode.js-Dj65hjkv.js";const Ye=["bubble://","dvrip://","echo:","exec:","expr:","ffmpeg:","gopro://","hass:","homekit://","http://","https://","httpx://","isapi://","ivideon:","kasa://","nest:","onvif://","roborock://","rtmp://","rtsp://","rtspx://","tapo://","tcp://","webrtc:","webtorrent:"],Ke=["#backchannel=0","#header=","#media=audio","#media=video","#timeout=10","#timeout=20","#timeout=30","#transport="],Z=["#audio=aac","#audio=aac/16000","#audio=mp3","#audio=opus","#audio=pcm","#audio=pcm/8000","#audio=pcm/16000","#audio=pcm/48000","#audio=pcma","#audio=pcma/8000","#audio=pcma/16000","#audio=pcma/48000","#audio=pcml","#audio=pcml/8000","#audio=pcml/44100","#audio=pcmu","#audio=pcmu/8000","#audio=pcmu/16000","#audio=pcmu/48000","#drawtext","#hardware","#hardware=cuda","#hardware=dxva2","#hardware=rkmpp","#hardware=v4l2m2m","#hardware=vaapi","#hardware=videotoolbox","#height=","#raw=","#rotate=-90","#rotate=90","#rotate=180","#rotate=270","#video=copy","#video=h264","#video=h265","#video=mjpeg","#width="],qe=["client_id=","client_private=","device_id=","device_public="],Je=["#header="],Xe=["client_id=","client_secret=","refresh_token=","project_id=","device_id="],Qe=["#client_id=","#format=openipc","#format=wyze","#format=kinesis","#ice_servers="],Ze="#### Source: Bubble\n\nOther names: [ESeeCloud](http://www.eseecloud.com/), [dvr163](http://help.dvr163.com/).\n\n- you can skip `username`, `password`, `port`, `ch` and `stream` if they are default\n- setup separate streams for different channels and streams\n\n```yaml\nstreams:\n camera1: bubble://username:password@192.168.1.123:34567/bubble/live?ch=0&stream=0\n```\n\n_Source: [Go2Rtc Bubble](https://github.com/AlexxIT/go2rtc#source-bubble)_\n",et="#### Source: DVRIP\n\nOther names: DVR-IP, NetSurveillance, Sofia protocol (NETsurveillance ActiveX plugin XMeye SDK).\n\n- you can skip `username`, `password`, `port`, `channel` and `subtype` if they are default\n- setup separate streams for different channels\n- use `subtype=0` for Main stream, and `subtype=1` for Extra1 stream\n- only the TCP protocol is supported\n\n```yaml\nstreams:\n only_stream: dvrip://username:password@192.168.1.123:34567?channel=0&subtype=0\n only_tts: dvrip://username:password@192.168.1.123:34567?backchannel=1\n two_way_audio:\n - dvrip://username:password@192.168.1.123:34567?channel=0&subtype=0\n - dvrip://username:password@192.168.1.123:34567?backchannel=1\n```\n\n_Source: [Go2Rtc DVRIP](https://github.com/AlexxIT/go2rtc#source-dvrip)_\n",tt=`#### Source: Echo
2
2
 
3
3
  Some sources may have a dynamic link. And you will need to get it using a bash or python script. Your script should echo a link to the source. RTSP, FFmpeg or any of the [supported sources](https://github.com/AlexxIT/go2rtc#module-streams).
4
4
 
@@ -11,7 +11,7 @@ streams:
11
11
  \`\`\`
12
12
 
13
13
  _Source: [Go2Rtc Echo](https://github.com/AlexxIT/go2rtc#source-echo)_
14
- `,no=`#### Source: Exec
14
+ `,ot=`#### Source: Exec
15
15
 
16
16
  Exec source can run any external application and expect data from it. Two transports are supported - **pipe** and **RTSP**.
17
17
 
@@ -34,7 +34,7 @@ streams:
34
34
  \`\`\`
35
35
 
36
36
  _Source: [Go2Rtc Exec](https://github.com/AlexxIT/go2rtc#source-exec)_
37
- `,so=`#### Source: Expr
37
+ `,at=`#### Source: Expr
38
38
 
39
39
  [Expr](https://github.com/antonmedv/expr) - expression language and expression evaluation for Go.
40
40
 
@@ -125,7 +125,7 @@ streams:
125
125
  | r.json() | r.json() | await r.json() |
126
126
  | r.headers | r.headers | r.headers |
127
127
  | let m = match(text, "abc") | m = re.search("abc", text) | let m = text.match(/abc/) |
128
- `,ro="#### Source: FFmpeg\n\nYou can get any stream or file or device via FFmpeg and push it to go2rtc. The app will automatically start FFmpeg with the proper arguments when someone starts watching the stream.\n\n- FFmpeg preistalled for **Docker** and **Hass Add-on** users\n- **Hass Add-on** users can target files from [/media](https://www.home-assistant.io/more-info/local-media/setup-media/) folder\n\nFormat: `ffmpeg:{input}#{param1}#{param2}#{param3}`. Examples:\n\n```yaml\nstreams:\n # [FILE] all tracks will be copied without transcoding codecs\n file1: ffmpeg:/media/BigBuckBunny.mp4\n\n # [FILE] video will be transcoded to H264, audio will be skipped\n file2: ffmpeg:/media/BigBuckBunny.mp4#video=h264\n\n # [FILE] video will be copied, audio will be transcoded to pcmu\n file3: ffmpeg:/media/BigBuckBunny.mp4#video=copy#audio=pcmu\n\n # [HLS] video will be copied, audio will be skipped\n hls: ffmpeg:https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/gear5/prog_index.m3u8#video=copy\n\n # [MJPEG] video will be transcoded to H264\n mjpeg: ffmpeg:http://185.97.122.128/cgi-bin/faststream.jpg#video=h264\n\n # [RTSP] video with rotation, should be transcoded, so select H264\n rotate: ffmpeg:rtsp://rtsp:12345678@192.168.1.123/av_stream/ch0#video=h264#rotate=90\n```\n\nAll trascoding formats has [built-in templates](https://github.com/AlexxIT/go2rtc/blob/master/internal/ffmpeg/ffmpeg.go): `h264`, `h265`, `opus`, `pcmu`, `pcmu/16000`, `pcmu/48000`, `pcma`, `pcma/16000`, `pcma/48000`, `aac`, `aac/16000`.\n\nBut you can override them via YAML config. You can also add your own formats to config and use them with source params.\n\n```yaml\nffmpeg:\n bin: ffmpeg # path to ffmpeg binary\n h264: '-codec:v libx264 -g:v 30 -preset:v superfast -tune:v zerolatency -profile:v main -level:v 4.1'\n mycodec: '-any args that supported by ffmpeg...'\n myinput: '-fflags nobuffer -flags low_delay -timeout 5000000 -i {input}'\n myraw: '-ss 00:00:20'\n```\n\n- You can use go2rtc stream name as ffmpeg input (ex. `ffmpeg:camera1#video=h264`)\n- You can use `video` and `audio` params multiple times (ex. `#video=copy#audio=copy#audio=pcmu`)\n- You can use `rotate` param with `90`, `180`, `270` or `-90` values, important with transcoding (ex. `#video=h264#rotate=90`)\n- You can use `width` and/or `height` params, important with transcoding (ex. `#video=h264#width=1280`)\n- You can use `drawtext` to add a timestamp (ex. `drawtext=x=2:y=2:fontsize=12:fontcolor=white:box=1:boxcolor=black`)\n - This will greatly increase the CPU of the server, even with hardware acceleration\n- You can use `raw` param for any additional FFmpeg arguments (ex. `#raw=-vf transpose=1`)\n- You can use `input` param to override default input template (ex. `#input=rtsp/udp` will change RTSP transport from TCP to UDP+TCP)\n - You can use raw input value (ex. `#input=-timeout 5000000 -i {input}`)\n - You can add your own input templates\n\nRead more about [hardware acceleration](https://github.com/AlexxIT/go2rtc/wiki/Hardware-acceleration).\n\n**PS.** It is recommended to check the available hardware in the WebUI add page.\n\n<hr>\n\n#### Source: FFmpeg Device\n\nYou can get video from any USB-camera or Webcam as RTSP or WebRTC stream. This is part of FFmpeg integration.\n\n- check available devices in Web interface\n- `video_size` and `framerate` must be supported by your camera!\n- for Linux supported only video for now\n- for macOS you can stream Facetime camera or whole Desktop!\n- for macOS important to set right framerate\n\nFormat: `ffmpeg:device?{input-params}#{param1}#{param2}#{param3}`\n\n```yaml\nstreams:\n linux_usbcam: ffmpeg:device?video=0&video_size=1280x720#video=h264\n windows_webcam: ffmpeg:device?video=0#video=h264\n macos_facetime: ffmpeg:device?video=0&audio=1&video_size=1280x720&framerate=30#video=h264#audio=pcma\n```\n\n**PS.** It is recommended to check the available devices in the WebUI add page.\n\n_Source: [Go2Rtc FFmpeg](https://github.com/AlexxIT/go2rtc#source-ffmpeg) & [Go2Rtc FFmpeg Device](https://github.com/AlexxIT/go2rtc#source-ffmpeg-device)_\n",io=`#### Source: GoPro
128
+ `,nt="#### Source: FFmpeg\n\nYou can get any stream or file or device via FFmpeg and push it to go2rtc. The app will automatically start FFmpeg with the proper arguments when someone starts watching the stream.\n\n- FFmpeg preistalled for **Docker** and **Hass Add-on** users\n- **Hass Add-on** users can target files from [/media](https://www.home-assistant.io/more-info/local-media/setup-media/) folder\n\nFormat: `ffmpeg:{input}#{param1}#{param2}#{param3}`. Examples:\n\n```yaml\nstreams:\n # [FILE] all tracks will be copied without transcoding codecs\n file1: ffmpeg:/media/BigBuckBunny.mp4\n\n # [FILE] video will be transcoded to H264, audio will be skipped\n file2: ffmpeg:/media/BigBuckBunny.mp4#video=h264\n\n # [FILE] video will be copied, audio will be transcoded to pcmu\n file3: ffmpeg:/media/BigBuckBunny.mp4#video=copy#audio=pcmu\n\n # [HLS] video will be copied, audio will be skipped\n hls: ffmpeg:https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/gear5/prog_index.m3u8#video=copy\n\n # [MJPEG] video will be transcoded to H264\n mjpeg: ffmpeg:http://185.97.122.128/cgi-bin/faststream.jpg#video=h264\n\n # [RTSP] video with rotation, should be transcoded, so select H264\n rotate: ffmpeg:rtsp://rtsp:12345678@192.168.1.123/av_stream/ch0#video=h264#rotate=90\n```\n\nAll trascoding formats has [built-in templates](https://github.com/AlexxIT/go2rtc/blob/master/internal/ffmpeg/ffmpeg.go): `h264`, `h265`, `opus`, `pcmu`, `pcmu/16000`, `pcmu/48000`, `pcma`, `pcma/16000`, `pcma/48000`, `aac`, `aac/16000`.\n\nBut you can override them via YAML config. You can also add your own formats to config and use them with source params.\n\n```yaml\nffmpeg:\n bin: ffmpeg # path to ffmpeg binary\n h264: '-codec:v libx264 -g:v 30 -preset:v superfast -tune:v zerolatency -profile:v main -level:v 4.1'\n mycodec: '-any args that supported by ffmpeg...'\n myinput: '-fflags nobuffer -flags low_delay -timeout 5000000 -i {input}'\n myraw: '-ss 00:00:20'\n```\n\n- You can use go2rtc stream name as ffmpeg input (ex. `ffmpeg:camera1#video=h264`)\n- You can use `video` and `audio` params multiple times (ex. `#video=copy#audio=copy#audio=pcmu`)\n- You can use `rotate` param with `90`, `180`, `270` or `-90` values, important with transcoding (ex. `#video=h264#rotate=90`)\n- You can use `width` and/or `height` params, important with transcoding (ex. `#video=h264#width=1280`)\n- You can use `drawtext` to add a timestamp (ex. `drawtext=x=2:y=2:fontsize=12:fontcolor=white:box=1:boxcolor=black`)\n - This will greatly increase the CPU of the server, even with hardware acceleration\n- You can use `raw` param for any additional FFmpeg arguments (ex. `#raw=-vf transpose=1`)\n- You can use `input` param to override default input template (ex. `#input=rtsp/udp` will change RTSP transport from TCP to UDP+TCP)\n - You can use raw input value (ex. `#input=-timeout 5000000 -i {input}`)\n - You can add your own input templates\n\nRead more about [hardware acceleration](https://github.com/AlexxIT/go2rtc/wiki/Hardware-acceleration).\n\n**PS.** It is recommended to check the available hardware in the WebUI add page.\n\n<hr>\n\n#### Source: FFmpeg Device\n\nYou can get video from any USB-camera or Webcam as RTSP or WebRTC stream. This is part of FFmpeg integration.\n\n- check available devices in Web interface\n- `video_size` and `framerate` must be supported by your camera!\n- for Linux supported only video for now\n- for macOS you can stream Facetime camera or whole Desktop!\n- for macOS important to set right framerate\n\nFormat: `ffmpeg:device?{input-params}#{param1}#{param2}#{param3}`\n\n```yaml\nstreams:\n linux_usbcam: ffmpeg:device?video=0&video_size=1280x720#video=h264\n windows_webcam: ffmpeg:device?video=0#video=h264\n macos_facetime: ffmpeg:device?video=0&audio=1&video_size=1280x720&framerate=30#video=h264#audio=pcma\n```\n\n**PS.** It is recommended to check the available devices in the WebUI add page.\n\n_Source: [Go2Rtc FFmpeg](https://github.com/AlexxIT/go2rtc#source-ffmpeg) & [Go2Rtc FFmpeg Device](https://github.com/AlexxIT/go2rtc#source-ffmpeg-device)_\n",st=`#### Source: GoPro
129
129
 
130
130
  Supported models: HERO9, HERO10, HERO11, HERO12.
131
131
  Supported OS: Linux, Mac, Windows, [HassOS](https://www.home-assistant.io/installation/)
@@ -152,7 +152,7 @@ streams:
152
152
  - https://gopro.github.io/OpenGoPro/
153
153
 
154
154
  _Source: [Go2Rtc Hass](https://github.com/AlexxIT/go2rtc#source-hass)_
155
- `,lo=`#### Source: Hass
155
+ `,rt=`#### Source: Hass
156
156
 
157
157
  Support import camera links from [Home Assistant](https://www.home-assistant.io/) config files:
158
158
 
@@ -189,7 +189,7 @@ streams:
189
189
  By default, the Home Assistant API does not allow you to get dynamic RTSP link to a camera stream. So more cameras, like [Tuya](https://www.home-assistant.io/integrations/tuya/), and possibly others can also be imported by using [this method](https://github.com/felipecrs/hass-expose-camera-stream-source#importing-home-assistant-cameras-to-go2rtc-andor-frigate).
190
190
 
191
191
  _Source: [Go2Rtc Hass](https://github.com/AlexxIT/go2rtc#source-hass)_
192
- `,co=`#### Source: HomeKit
192
+ `,it=`#### Source: HomeKit
193
193
 
194
194
  **Important:**
195
195
 
@@ -223,7 +223,7 @@ RTSP link with "normal" audio for any player: \`rtsp://192.168.1.123:8554/aqara_
223
223
  **This source is in active development!** Tested only with [Aqara Camera Hub G3](https://www.aqara.com/eu/product/camera-hub-g3) (both EU and CN versions).
224
224
 
225
225
  _Source: [Go2Rtc HomeKit](https://github.com/AlexxIT/go2rtc#source-homekit)_
226
- `,mo=`#### Source: HTTP
226
+ `,ct=`#### Source: HTTP
227
227
 
228
228
  Support Content-Type:
229
229
 
@@ -255,7 +255,7 @@ streams:
255
255
  **PS.** Dahua camera has bug: if you select MJPEG codec for RTSP second stream - snapshot won't work.
256
256
 
257
257
  _Source: [Go2Rtc Http](https://github.com/AlexxIT/go2rtc#source-http)_
258
- `,uo=`#### Source: ISAPI
258
+ `,mt=`#### Source: ISAPI
259
259
 
260
260
  This source type support only backchannel audio for Hikvision ISAPI protocol. So it should be used as second source in addition to the RTSP protocol.
261
261
 
@@ -267,7 +267,7 @@ streams:
267
267
  \`\`\`
268
268
 
269
269
  _Source: [Go2Rtc Isapi](https://github.com/AlexxIT/go2rtc#source-isapi)_
270
- `,po=`#### Source: Ivideon
270
+ `,lt=`#### Source: Ivideon
271
271
 
272
272
  Support public cameras from service [Ivideon](https://tv.ivideon.com/).
273
273
 
@@ -277,7 +277,7 @@ streams:
277
277
  \`\`\`
278
278
 
279
279
  _Source: [Go2Rtc Ivideon](https://github.com/AlexxIT/go2rtc#source-ivideon)_
280
- `,ho=`#### Source: Kasa
280
+ `,ut=`#### Source: Kasa
281
281
 
282
282
  [TP-Link Kasa](https://www.kasasmart.com/) non-standard protocol [more info](https://medium.com/@hu3vjeen/reverse-engineering-tp-link-kc100-bac4641bf1cd).
283
283
 
@@ -287,7 +287,7 @@ streams:
287
287
  \`\`\`
288
288
 
289
289
  _Source: [Go2Rtc Kasa](https://github.com/AlexxIT/go2rtc#source-kasa)_
290
- `,fo=`#### Source: Nest
290
+ `,pt=`#### Source: Nest
291
291
 
292
292
  Currently only WebRTC cameras are supported. Stream reconnects every 5 minutes.
293
293
 
@@ -299,7 +299,7 @@ streams:
299
299
  \`\`\`
300
300
 
301
301
  _Source: [Go2Rtc Nest](https://github.com/AlexxIT/go2rtc#source-nest)_
302
- `,go=`#### Source: ONVIF
302
+ `,dt=`#### Source: ONVIF
303
303
 
304
304
  The source is not very useful if you already know RTSP and snapshot links for your camera. But it can be useful if you don't.
305
305
 
@@ -313,7 +313,7 @@ streams:
313
313
  \`\`\`
314
314
 
315
315
  _Source: [Go2Rtc Onvif](https://github.com/AlexxIT/go2rtc#source-onvif)_
316
- `,bo=`#### Source: Roborock
316
+ `,ht=`#### Source: Roborock
317
317
 
318
318
  This source type support Roborock vacuums with cameras. Known working models:
319
319
 
@@ -325,7 +325,7 @@ Source support load Roborock credentials from Home Assistant [custom integration
325
325
  If you have graphic pin for your vacuum - add it as numeric pin (lines: 123, 456, 678) to the end of the roborock-link.
326
326
 
327
327
  _Source: [Go2Rtc Roborock](https://github.com/AlexxIT/go2rtc#source-roborock)_
328
- `,vo=`#### Source: RTMP
328
+ `,gt=`#### Source: RTMP
329
329
 
330
330
  You can get stream from RTMP server, for example [Frigate](https://docs.frigate.video/configuration/rtmp).
331
331
 
@@ -335,7 +335,7 @@ streams:
335
335
  \`\`\`
336
336
 
337
337
  _Source: [Go2Rtc RTMP](https://github.com/AlexxIT/go2rtc#source-rtmp)_
338
- `,wo=`#### Source: RTSP
338
+ `,ft=`#### Source: RTSP
339
339
 
340
340
  \`\`\`yaml
341
341
  streams:
@@ -382,7 +382,7 @@ streams:
382
382
  \`\`\`
383
383
 
384
384
  _Source: [Go2Rtc RTSP](https://github.com/AlexxIT/go2rtc#source-rtsp)_
385
- `,_o=`#### Source: Tapo
385
+ `,bt=`#### Source: Tapo
386
386
 
387
387
  [TP-Link Tapo](https://www.tapo.com/) proprietary camera protocol with **two way audio** support.
388
388
 
@@ -399,7 +399,7 @@ streams:
399
399
  \`\`\`
400
400
 
401
401
  _Source: [Go2Rtc Tapo](https://github.com/AlexxIT/go2rtc#source-tapo)_
402
- `,yo=`#### Source: WebRTC
402
+ `,wt=`#### Source: WebRTC
403
403
 
404
404
  This source type support four connection formats.
405
405
 
@@ -435,7 +435,7 @@ streams:
435
435
  **PS.** For \`kinesis\` sources you can use [echo](https://github.com/AlexxIT/go2rtc#source-echo) to get connection params using \`bash\`/\`python\` or any other script language.
436
436
 
437
437
  _Source: [Go2Rtc WebRTC](https://github.com/AlexxIT/go2rtc#source-webrtc)_
438
- `,xo=`#### Source: WebTorrent
438
+ `,vt=`#### Source: WebTorrent
439
439
 
440
440
  This source can get a stream from another go2rtc via [WebTorrent](https://github.com/AlexxIT/go2rtc#module-webtorrent) protocol.
441
441
 
@@ -445,4 +445,4 @@ streams:
445
445
  \`\`\`
446
446
 
447
447
  _Source: [Go2Rtc Webtorrent](https://github.com/AlexxIT/go2rtc#source-webtorrent)_
448
- `,ko={class:"h-full w-full inline-size mb-safe"},So={class:"page-title"},To={class:"window"},Po={class:"subview-title text-color"},Ro={class:"relative"},Vo={for:"name",class:"v-label"},Io={class:"mt-5"},Ao={class:"subview-title text-color"},Co={class:"relative"},Ho={for:"info.manufacturer",class:"v-label"},jo={class:"relative"},Eo={for:"info.model",class:"v-label"},Uo={class:"relative"},Oo={for:"info.hardware",class:"v-label"},Go={class:"relative"},Mo={for:"info.serialNumber",class:"v-label"},$o={class:"relative"},Fo={for:"info.firmwareVersion",class:"v-label"},Lo={class:"relative"},Wo={for:"info.supportUrl",class:"v-label"},Do={class:"mt-5"},Bo={class:"subview-title text-color"},zo={class:"flex flex-row items-center justify-center ml-auto"},No={class:"relative w-full flex flex-col"},Yo=["for"],Ko=["for"],qo=["for"],Jo={class:"w-full flex flex-row justify-center my-1"},Xo={class:"ml-2 flex items-center justify-center",style:{"max-height":"44px"}},Qo={class:"flex items-center ml-auto"},Zo={class:"flex flex-row w-full items-center justify-center mt-3"},et={key:0,class:"w-full h-full flex items-center justify-center"},ot=["innerHTML"],tt={key:1,class:"w-full h-full flex items-center justify-center"},at={key:0,class:"w-full h-full flex items-center justify-center"},nt=Te({__name:"NewCamera",setup(st){I.registerLanguage("typescript",He),I.registerLanguage("yaml",je),I.registerLanguage("json",Ee),I.registerLanguage("python",Ue);const{smallMobileActive:E}=xe(),oe=Ne(),B=new we,te=b(new Set),ae=b(),ne=b(!1),M=b(0),$=b(),U=b([0]),V=b(),se=b(["high-resolution","mid-resolution","low-resolution","snapshot"]),O=Pe(),A=b(!1),G=b(!1),u=b({disabled:!1,name:"",info:{manufacturer:"",model:"",hardware:"",serialNumber:"",firmwareVersion:"",supportUrl:""},sources:[{name:"",roles:[],urls:[{protocol:"rtsp://",url:[]}]}],recording:{enabled:!1},interface:{streamingMode:"webrtc"},extensions:{hub:[],plugins:[]}}),{mutate:re,isPending:ie}=B.createCameraQuery(),{mutateAsync:le,isPending:ce}=B.previewCameraQuery(),d=Re(()=>ie.value||ne.value),z=De("commonmark",{highlight(n,o){if(o&&I.getLanguage(o))try{return'<pre><code class="hljs">'+I.highlight(n,{language:o,ignoreIllegals:!0}).value+"</code></pre>"}catch{}return'<pre><code class="hljs">'+z.utils.escapeHtml(n)+"</code></pre>"}});Ve(A,n=>{n||setTimeout(()=>{O.value={presets:[],md:void 0}},300)});const me=n=>{u.value.sources[n].urls.push({protocol:"rtsp://",url:[]})},ue=(n,o)=>{u.value.sources[n].urls.splice(o,1)},de=()=>{u.value.sources.push({name:"",roles:[],urls:[{protocol:"rtsp://",url:[]}]}),U.value=[u.value.sources.length]},pe=n=>{u.value.sources.splice(n,1)},N=n=>{let o,c,w;switch(n){case"bubble://":o=[],c=Object.assign({"../markdowns/bubble.md":oo});break;case"dvrip://":o=[],c=Object.assign({"../markdowns/dvrip.md":to});break;case"echo:":o=[],c=Object.assign({"../markdowns/echo.md":ao});break;case"exec:":o=[],c=Object.assign({"../markdowns/exec.md":no});break;case"expr:":o=[],c=Object.assign({"../markdowns/expr.md":so});break;case"ffmpeg:":o=ee,c=Object.assign({"../markdowns/ffmpeg.md":ro});break;case"gopro://":o=ee,c=Object.assign({"../markdowns/gopro.md":io});break;case"hass:":o=[],c=Object.assign({"../markdowns/hass.md":lo});break;case"homekit://":o=Xe,c=Object.assign({"../markdowns/homekit.md":co});break;case"http://":case"https://":case"httpx://":case"tcp://":o=Qe,c=Object.assign({"../markdowns/http.md":mo});break;case"isapi://":o=[],c=Object.assign({"../markdowns/isapi.md":uo});break;case"ivideon:":o=[],c=Object.assign({"../markdowns/ivideon.md":po});break;case"kasa://":o=[],c=Object.assign({"../markdowns/kasa.md":ho});break;case"nest:":o=Ze,c=Object.assign({"../markdowns/nest.md":fo});break;case"onvif://":o=[],c=Object.assign({"../markdowns/onvif.md":go});break;case"roborock://":o=[],c=Object.assign({"../markdowns/roborock.md":bo});break;case"rtmp://":o=[],c=Object.assign({"../markdowns/rtmp.md":vo});break;case"rtsp://":case"rtspx://":o=Je,c=Object.assign({"../markdowns/rtsp.md":wo});break;case"tapo://":o=[],c=Object.assign({"../markdowns/tapo.md":_o});break;case"webrtc:":o=eo,c=Object.assign({"../markdowns/webrtc.md":yo});break;case"webtorrent:":o=[],c=Object.assign({"../markdowns/webtorrent.md":xo});break;default:o=[],c=void 0;break}return c&&(w=Object.values(c)[0]),O.value={presets:o,md:w},{presets:o,md:w}},he=n=>{N(n),A.value=!0},fe=async n=>{V.value=void 0,G.value=!0;const o=n.url.join(""),w={url:o.includes(n.protocol)?o:`${n.protocol}${o}`},t=await le({cameraData:w});V.value=t?`data:image/jpeg;base64,${t}`:"ERROR",V.value!=="ERROR"&&te.value.add(w.url)},ge=n=>({...n,pluginId:"native",type:"camera",isCloud:!1,hasLight:!1,hasSiren:!1,hasBinarySensor:!1,hasBattery:!1,activityZones:[],activitySettings:{motion:{timeout:20},object:{confidence:.7}},frameWorkerSettings:{decoder:"wasm",fps:10,resolution:640},sources:n.sources.map(c=>{let w=c.urls.map(t=>{if(t.url){const i=t.url.join("");return i.includes(t.protocol)?i:`${t.protocol}${i}`}}).filter(Boolean);return{_id:"",...c,urls:w}})}),be=n=>{const{isLoading:o}=We(0,{parent:".topbar"});o.value=!0;let c=ge(n);re({cameraData:c},{onSuccess:async()=>{o.value=!1,await ze(500),oe.push({path:"/cameras"})}})},ve=(n,o)=>{o.protocol=n};return Ie(()=>{}),(n,o)=>{const c=ke,w=ye;return f(),P("main",{class:K({"px-0":e(E)})},[l("div",ko,[a(e(Be),{ref_key:"cameraVeeForm",ref:ae,class:"firststeps-form flex flex-col h-full w-full","validation-schema":e(_e),"initial-values":e(u),onSubmit:o[10]||(o[10]=t=>be(t))},{default:s(()=>[l("div",{class:K(["mb-3 flex items-center",{"mx-2":e(E)}]),style:{height:"30px"}},[l("h1",So,m(n.$t("views.new_camera.title")),1),a(R,{loading:e(d),variant:"text",color:"green",type:"submit",class:"ml-auto"},{default:s(()=>[a(k,{size:"15",class:"mr-1"},{default:s(()=>[h(m(e(X)),1)]),_:1}),h(" "+m(n.$t("components.form.button.add")),1)]),_:1},8,["loading"])],2),l("div",To,[l("div",null,[l("span",Po,m(n.$t("components.form.label.camera")),1),a(F,{modelValue:e(M),"onUpdate:modelValue":o[1]||(o[1]=t=>H(M)?M.value=t:null),class:"inner-component mt-2"},{default:s(()=>[a(L,{elevation:"0",value:1},{default:s(()=>[a(W,{style:{height:"48px"},class:"truncate"},{default:s(()=>[h(m(n.$t("views.new_camera.camera")),1)]),_:1}),a(D,{eager:""},{default:s(()=>[l("div",Ro,[a(e(v),{modelValue:e(u).name,"onUpdate:modelValue":o[0]||(o[0]=t=>e(u).name=t),name:"name"},{default:s(({field:t,errorMessage:i,errors:r})=>[l("label",Vo,m(n.$t("components.form.label.camera_name")),1),a(S,_({loading:e(d),variant:"outlined",name:"name",type:"text",density:"compact"},t,{error:r.length>0,"error-messages":i}),null,16,["loading","error","error-messages"])]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),l("div",Io,[l("span",Ao,m(n.$t("components.form.label.camera_information")),1),a(F,{modelValue:e($),"onUpdate:modelValue":o[8]||(o[8]=t=>H($)?$.value=t:null),class:"inner-component mt-2"},{default:s(()=>[a(L,{elevation:"0",value:1},{default:s(()=>[a(W,{style:{height:"48px"},class:"truncate"},{default:s(()=>[h(m(n.$t("views.new_camera.camera_information")),1)]),_:1}),a(D,{eager:""},{default:s(()=>[l("div",Co,[a(e(v),{modelValue:e(u).info.manufacturer,"onUpdate:modelValue":o[2]||(o[2]=t=>e(u).info.manufacturer=t),name:"info.manufacturer"},{default:s(({field:t,errorMessage:i,errors:r})=>[l("label",Ho,m(n.$t("components.form.label.camera_manufacturer")),1),a(S,_({loading:e(d),variant:"outlined",name:"info.manufacturer",type:"text",density:"compact"},t,{error:r.length>0,"error-messages":i}),null,16,["loading","error","error-messages"])]),_:1},8,["modelValue"])]),l("div",jo,[a(e(v),{modelValue:e(u).info.model,"onUpdate:modelValue":o[3]||(o[3]=t=>e(u).info.model=t),name:"info.model"},{default:s(({field:t,errorMessage:i,errors:r})=>[l("label",Eo,m(n.$t("components.form.label.camera_model")),1),a(S,_({loading:e(d),variant:"outlined",name:"info.model",type:"text",density:"compact"},t,{error:r.length>0,"error-messages":i}),null,16,["loading","error","error-messages"])]),_:1},8,["modelValue"])]),l("div",Uo,[a(e(v),{modelValue:e(u).info.hardware,"onUpdate:modelValue":o[4]||(o[4]=t=>e(u).info.hardware=t),name:"info.hardware"},{default:s(({field:t,errorMessage:i,errors:r})=>[l("label",Oo,m(n.$t("components.form.label.camera_hardware")),1),a(S,_({loading:e(d),variant:"outlined",name:"info.hardware",type:"text",density:"compact"},t,{error:r.length>0,"error-messages":i}),null,16,["loading","error","error-messages"])]),_:1},8,["modelValue"])]),l("div",Go,[a(e(v),{modelValue:e(u).info.serialNumber,"onUpdate:modelValue":o[5]||(o[5]=t=>e(u).info.serialNumber=t),name:"info.serialNumber"},{default:s(({field:t,errorMessage:i,errors:r})=>[l("label",Mo,m(n.$t("components.form.label.camera_serialNumber")),1),a(S,_({loading:e(d),variant:"outlined",name:"info.serialNumber",type:"text",density:"compact"},t,{error:r.length>0,"error-messages":i}),null,16,["loading","error","error-messages"])]),_:1},8,["modelValue"])]),l("div",$o,[a(e(v),{modelValue:e(u).info.firmwareVersion,"onUpdate:modelValue":o[6]||(o[6]=t=>e(u).info.firmwareVersion=t),name:"info.firmwareVersion"},{default:s(({field:t,errorMessage:i,errors:r})=>[l("label",Fo,m(n.$t("components.form.label.camera_firmwareVersion")),1),a(S,_({loading:e(d),variant:"outlined",name:"info.firmwareVersion",type:"text",density:"compact"},t,{error:r.length>0,"error-messages":i}),null,16,["loading","error","error-messages"])]),_:1},8,["modelValue"])]),l("div",Lo,[a(e(v),{modelValue:e(u).info.supportUrl,"onUpdate:modelValue":o[7]||(o[7]=t=>e(u).info.supportUrl=t),name:"info.supportUrl"},{default:s(({field:t,errorMessage:i,errors:r})=>[l("label",Wo,m(n.$t("components.form.label.camera_supportUrl")),1),a(S,_({loading:e(d),variant:"outlined",name:"info.supportUrl",type:"text",density:"compact"},t,{error:r.length>0,"error-messages":i}),null,16,["loading","error","error-messages"])]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),l("div",Do,[l("span",Bo,m(n.$t("components.form.label.camera_sources")),1),a(F,{modelValue:e(U),"onUpdate:modelValue":o[9]||(o[9]=t=>H(U)?U.value=t:null),class:"inner-component mt-2",multiple:"",variant:"accordion"},{default:s(()=>[(f(!0),P(q,null,J(e(u).sources,(t,i)=>(f(),j(L,{key:i,value:i+1,elevation:"0",style:Ce(e(E)?"border-radius: 0px !important":"")},{default:s(()=>[a(W,{style:{height:"48px"},class:"truncate"},{actions:s(({expanded:r})=>[l("div",zo,[a(R,{disabled:e(u).sources.length<2||e(d),size:"22.5",rounded:"",color:"red",variant:"text",class:"mx-2",onClick:x(g=>pe(i),["stop"])},{default:s(()=>[a(k,null,{default:s(()=>[h(m(e(Oe)),1)]),_:1})]),_:2},1032,["disabled","onClick"]),r?(f(),j(k,{key:0,size:"22.5"},{default:s(()=>[h(m(e(Ge)),1)]),_:1})):(f(),j(k,{key:1,size:"22.5"},{default:s(()=>[h(m(e(Me)),1)]),_:1}))])]),default:s(()=>[h(m(n.$t("views.new_camera.source")+": "+i)+" ",1)]),_:2},1024),a(D,{eager:""},{default:s(()=>[l("div",No,[a(e(v),{modelValue:t.name,"onUpdate:modelValue":r=>t.name=r,name:`sources[${i}].name`},{default:s(({field:r,errorMessage:g,errors:p})=>[l("label",{for:`sources[${i}].name`,class:"v-label"},m(n.$t("components.form.label.source_name")),9,Yo),a(S,_({loading:e(d),variant:"outlined",name:`sources[${i}].name`,type:"text",density:"compact",ref_for:!0},r,{error:p.length>0,"error-messages":g}),null,16,["loading","name","error","error-messages"])]),_:2},1032,["modelValue","onUpdate:modelValue","name"]),a(e(v),{modelValue:t.roles,"onUpdate:modelValue":r=>t.roles=r,name:`sources[${i}].roles`},{default:s(({field:r,errorMessage:g,errors:p})=>[l("label",{for:`sources[${i}].roles`,class:"v-label"},m(n.$t("components.form.label.source_role")),9,Ko),a(Q,_({loading:e(d),items:e(se).filter(T=>!e(u).sources.some((C,y)=>{var Y;return((Y=C.roles)==null?void 0:Y.includes(T))&&y!==i})),variant:"outlined",name:`sources[${i}].roles`,type:"text",density:"compact",chips:"",multiple:"",clearable:"",ref_for:!0},r,{error:p.length>0,"error-messages":g,"model-value":r.value,onKeydown:x(()=>null,["prevent"])}),{chip:s(({item:T})=>[a(Ye,{color:"#df2a4c"},{default:s(()=>[h(m(T.title),1)]),_:2},1024)]),_:2},1040,["loading","items","name","error","error-messages","model-value"])]),_:2},1032,["modelValue","onUpdate:modelValue","name"]),l("label",{for:`sources[${i}].urls[].url`,class:"v-label"},m(n.$t("components.form.label.camera_sources")),9,qo),(f(!0),P(q,null,J(t.urls,(r,g)=>(f(),P("div",{key:g},[l("div",Jo,[a(e(v),{modelValue:r.protocol,"onUpdate:modelValue":p=>r.protocol=p,name:`sources[${i}].urls[${g}].protocol`},{default:s(({field:p,errors:T,errorMessage:C})=>[a(Q,_({loading:e(d),items:e(qe),"hide-no-data":"","hide-details":"",variant:"outlined",name:`sources[${i}].urls[${g}].protocol`,type:"text",density:"compact",style:{"min-width":"125px","max-width":"125px","min-height":"40px","max-height":"40px"},class:"camera-protocol",ref_for:!0},p,{error:T.length>0,"error-messages":C,"model-value":p.value,onKeydown:x(()=>null,["prevent"]),"onUpdate:modelValue":y=>ve(y,r)}),null,16,["loading","items","name","error","error-messages","model-value","onUpdate:modelValue"])]),_:2},1032,["modelValue","onUpdate:modelValue","name"]),a(e(v),{modelValue:r.url,"onUpdate:modelValue":p=>r.url=p,name:`sources[${i}].urls[${g}].url`},{default:s(({field:p,errorMessage:T,errors:C})=>[a(Ke,{modelValue:r.url,"onUpdate:modelValue":[y=>r.url=y,y=>p.value=y],loading:e(d),clearable:"",chips:"",multiple:"",items:N(r.protocol).presets,variant:"outlined",name:`sources[${i}].urls[${g}].url`,type:"text",density:"compact",class:"camera-source",error:C.length>0,"error-messages":T},{"append-inner":s(()=>[t.urls.length>1?(f(),j(R,{key:0,size:"28",variant:"text",rounded:"",density:"compact",color:"red",disabled:t.urls.length<2||e(d),onClick:x(y=>ue(i,g),["prevent"])},{default:s(()=>[a(k,{size:"20"},{default:s(()=>[h(m(e($e)),1)]),_:1})]),_:2},1032,["disabled","onClick"])):Ae("",!0)]),_:2},1032,["modelValue","onUpdate:modelValue","loading","items","name","error","error-messages"])]),_:2},1032,["modelValue","onUpdate:modelValue","name"]),l("div",Xo,[a(R,{disabled:!r.protocol||!r.url.length||e(d),color:"#5e5e5e",density:"compact",icon:"",variant:"text",onClick:x(p=>fe(r),["prevent"])},{default:s(()=>[a(k,{size:"20"},{default:s(()=>[h(m(e(Fe)),1)]),_:1})]),_:2},1032,["disabled","onClick"]),a(R,{disabled:e(d),color:"#5e5e5e",density:"compact",icon:"",variant:"text",onClick:x(p=>he(r.protocol),["prevent"])},{default:s(()=>[a(k,{size:"20"},{default:s(()=>[h(m(e(Le)),1)]),_:1})]),_:2},1032,["disabled","onClick"])])])]))),128)),l("div",Qo,[a(R,{disabled:e(d),color:"#df2a4c",variant:"flat",onClick:x(r=>me(i),["prevent"])},{default:s(()=>[h(m(n.$t("components.form.button.add_source")),1)]),_:2},1032,["disabled","onClick"])])])]),_:2},1024)]),_:2},1032,["value","style"]))),128))]),_:1},8,["modelValue"]),l("div",Zo,[a(R,{disabled:e(d),variant:"text",color:"#df2a4c",icon:"",onClick:x(de,["prevent"])},{default:s(()=>[a(k,{size:"30"},{default:s(()=>[h(m(e(X)),1)]),_:1})]),_:1},8,["disabled"])])])])]),_:1},8,["validation-schema","initial-values"])]),a(c,{modelValue:e(A),"onUpdate:modelValue":o[11]||(o[11]=t=>H(A)?A.value=t:null),title:n.$t("components.dialog.title.information"),loading:e(d),"hide-confirm-button":""},{content:s(()=>{var t;return[(t=e(O))!=null&&t.md?(f(),P("div",et,[l("div",{class:"w-full markdown-body",innerHTML:e(z).render(e(O).md)},null,8,ot)])):(f(),P("div",tt,[a(Z,{color:"#df2a4c",indeterminate:""})]))]}),_:1},8,["modelValue","title","loading"]),a(c,{modelValue:e(G),"onUpdate:modelValue":o[12]||(o[12]=t=>H(G)?G.value=t:null),title:n.$t("components.dialog.title.preview"),loading:e(d),"hide-confirm-button":""},{content:s(()=>[!e(V)||e(ce)?(f(),P("div",at,[a(Z,{color:"#df2a4c",indeterminate:""})])):(f(),j(w,{key:1,class:"mt-5 inner-component","show-camera-name":"","current-camera":e(V),"border-radius":e(E)?0:3,border:!1,target:"preview","preview-src":e(V),"button-elevation":"1"},null,8,["current-camera","border-radius","preview-src"]))]),_:1},8,["modelValue","title","loading"])],2)}}}),Jt=Se(nt,[["__scopeId","data-v-c173fa5d"]]);export{Jt as default};
448
+ `,_t={class:"h-full w-full inline-size mb-safe"},yt={class:"page-title"},xt={class:"window"},kt={class:"subview-title text-color"},St={class:"relative"},Tt={for:"name",class:"v-label"},Pt={class:"mt-5"},Rt={class:"subview-title text-color"},It={class:"flex flex-row items-center justify-center ml-auto"},At={class:"relative w-full flex flex-col"},Ct=["for"],Ht=["for"],Vt=["for"],jt={class:"w-full flex flex-row justify-center my-1"},Et={class:"ml-2 flex items-center justify-center",style:{"max-height":"44px"}},Ot={class:"flex items-center ml-auto"},Gt={class:"flex flex-row w-full items-center justify-center mt-3"},Mt={key:0,class:"w-full h-full flex items-center justify-center"},Ut=["innerHTML"],Ft={key:1,class:"w-full h-full flex items-center justify-center"},$t={key:0,class:"w-full h-full flex items-center justify-center"},Lt=Se({__name:"NewCamera",setup(Wt){P.registerLanguage("typescript",Ce),P.registerLanguage("yaml",He),P.registerLanguage("json",Ve),P.registerLanguage("python",je);const{smallMobileActive:H}=ye(),ee=Be(),U=new we,te=w(new Set),oe=w(),ae=w(!1),M=w(0),V=w([0]),T=w(),ne=w(["high-resolution","mid-resolution","low-resolution","snapshot"]),j=Te(),R=w(!1),E=w(!1),g=w({disabled:!1,name:"",info:{manufacturer:"",model:"",hardware:"",serialNumber:"",firmwareVersion:"",supportUrl:""},sources:[{name:"",roles:[],urls:[{protocol:"rtsp://",url:[]}]}],recording:{enabled:!1},interface:{streamingMode:"webrtc"},extensions:{hub:[],plugins:[]}}),{mutate:se,isPending:re}=U.createCameraQuery(),{mutateAsync:ie,isPending:ce}=U.previewCameraQuery(),u=Pe(()=>re.value||ae.value),F=Le("commonmark",{highlight(o,e){if(e&&P.getLanguage(e))try{return'<pre><code class="hljs">'+P.highlight(o,{language:e,ignoreIllegals:!0}).value+"</code></pre>"}catch{}return'<pre><code class="hljs">'+F.utils.escapeHtml(o)+"</code></pre>"}});Re(R,o=>{o||setTimeout(()=>{j.value={presets:[],md:void 0}},300)});const me=o=>{g.value.sources[o].urls.push({protocol:"rtsp://",url:[]})},le=(o,e)=>{g.value.sources[o].urls.splice(e,1)},ue=()=>{g.value.sources.push({name:"",roles:[],urls:[{protocol:"rtsp://",url:[]}]}),V.value=[g.value.sources.length]},pe=o=>{g.value.sources.splice(o,1)},$=o=>{let e,s,b;switch(o){case"bubble://":e=[],s=Object.assign({"../markdowns/bubble.md":Ze});break;case"dvrip://":e=[],s=Object.assign({"../markdowns/dvrip.md":et});break;case"echo:":e=[],s=Object.assign({"../markdowns/echo.md":tt});break;case"exec:":e=[],s=Object.assign({"../markdowns/exec.md":ot});break;case"expr:":e=[],s=Object.assign({"../markdowns/expr.md":at});break;case"ffmpeg:":e=Z,s=Object.assign({"../markdowns/ffmpeg.md":nt});break;case"gopro://":e=Z,s=Object.assign({"../markdowns/gopro.md":st});break;case"hass:":e=[],s=Object.assign({"../markdowns/hass.md":rt});break;case"homekit://":e=qe,s=Object.assign({"../markdowns/homekit.md":it});break;case"http://":case"https://":case"httpx://":case"tcp://":e=Je,s=Object.assign({"../markdowns/http.md":ct});break;case"isapi://":e=[],s=Object.assign({"../markdowns/isapi.md":mt});break;case"ivideon:":e=[],s=Object.assign({"../markdowns/ivideon.md":lt});break;case"kasa://":e=[],s=Object.assign({"../markdowns/kasa.md":ut});break;case"nest:":e=Xe,s=Object.assign({"../markdowns/nest.md":pt});break;case"onvif://":e=[],s=Object.assign({"../markdowns/onvif.md":dt});break;case"roborock://":e=[],s=Object.assign({"../markdowns/roborock.md":ht});break;case"rtmp://":e=[],s=Object.assign({"../markdowns/rtmp.md":gt});break;case"rtsp://":case"rtspx://":e=Ke,s=Object.assign({"../markdowns/rtsp.md":ft});break;case"tapo://":e=[],s=Object.assign({"../markdowns/tapo.md":bt});break;case"webrtc:":e=Qe,s=Object.assign({"../markdowns/webrtc.md":wt});break;case"webtorrent:":e=[],s=Object.assign({"../markdowns/webtorrent.md":vt});break;default:e=[],s=void 0;break}return s&&(b=Object.values(s)[0]),j.value={presets:e,md:b},{presets:e,md:b}},de=o=>{$(o),R.value=!0},he=async o=>{T.value=void 0,E.value=!0;const e=o.url.join(""),b={url:e.includes(o.protocol)?e:`${o.protocol}${e}`},r=await ie({cameraData:b});T.value=r?`data:image/jpeg;base64,${r}`:"ERROR",T.value!=="ERROR"&&te.value.add(b.url)},ge=o=>({...o,pluginId:"native",type:"camera",isCloud:!1,hasLight:!1,hasSiren:!1,hasBinarySensor:!1,hasBattery:!1,activityZones:[],activitySettings:{motion:{timeout:20},object:{confidence:.7}},frameWorkerSettings:{decoder:"wasm",fps:10,resolution:640},sources:o.sources.map(s=>{let b=s.urls.map(r=>{if(r.url){const c=r.url.join("");return c.includes(r.protocol)?c:`${r.protocol}${c}`}}).filter(Boolean);return{_id:"",...s,urls:b}})}),fe=o=>{const{isLoading:e}=$e(0,{parent:".topbar"});e.value=!0;let s=ge(o);se({cameraData:s},{onSuccess:async()=>{e.value=!1,await De(500),ee.push({path:"/cameras"})}})},be=(o,e)=>{e.protocol=o};return(o,e)=>{const s=xe,b=_e;return h(),k("main",{class:W({"px-0":t(H)})},[m("div",_t,[a(t(We),{ref_key:"cameraVeeForm",ref:oe,class:"firststeps-form flex flex-col h-full w-full","validation-schema":t(ve),"initial-values":t(g),onSubmit:e[3]||(e[3]=r=>fe(r))},{default:n(()=>[m("div",{class:W(["mb-3 flex items-center",{"mx-2":t(H)}]),style:{height:"30px"}},[m("h1",yt,l(o.$t("views.new_camera.title")),1),a(S,{loading:t(u),variant:"text",color:"green",type:"submit",class:"ml-auto"},{default:n(()=>[a(y,{size:"15",class:"mr-1"},{default:n(()=>[d(l(t(z)),1)]),_:1}),d(" "+l(o.$t("components.form.button.add")),1)]),_:1},8,["loading"])],2),m("div",xt,[m("div",null,[m("span",kt,l(o.$t("components.form.label.camera")),1),a(N,{modelValue:t(M),"onUpdate:modelValue":e[1]||(e[1]=r=>O(M)?M.value=r:null),class:"inner-component mt-2"},{default:n(()=>[a(Y,{elevation:"0",value:1},{default:n(()=>[a(K,{style:{height:"48px"},class:"truncate"},{default:n(()=>[d(l(o.$t("views.new_camera.camera")),1)]),_:1}),a(q,{eager:""},{default:n(()=>[m("div",St,[a(t(C),{modelValue:t(g).name,"onUpdate:modelValue":e[0]||(e[0]=r=>t(g).name=r),name:"name"},{default:n(({field:r,errorMessage:c,errors:i})=>[m("label",Tt,l(o.$t("components.form.label.camera_name")),1),a(J,G({loading:t(u),variant:"outlined",name:"name",type:"text",density:"compact"},r,{error:i.length>0,"error-messages":c}),null,16,["loading","error","error-messages"])]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),m("div",Pt,[m("span",Rt,l(o.$t("components.form.label.camera_sources")),1),a(N,{modelValue:t(V),"onUpdate:modelValue":e[2]||(e[2]=r=>O(V)?V.value=r:null),class:"inner-component mt-2",multiple:"",variant:"accordion"},{default:n(()=>[(h(!0),k(D,null,B(t(g).sources,(r,c)=>(h(),A(Y,{key:c,value:c+1,elevation:"0",style:Ae(t(H)?"border-radius: 0px !important":"")},{default:n(()=>[a(K,{style:{height:"48px"},class:"truncate"},{actions:n(({expanded:i})=>[m("div",It,[a(S,{disabled:t(g).sources.length<2||t(u),size:"22.5",rounded:"",color:"red",variant:"text",class:"mx-2",onClick:_(f=>pe(c),["stop"])},{default:n(()=>[a(y,null,{default:n(()=>[d(l(t(Ee)),1)]),_:1})]),_:2},1032,["disabled","onClick"]),i?(h(),A(y,{key:0,size:"22.5"},{default:n(()=>[d(l(t(Oe)),1)]),_:1})):(h(),A(y,{key:1,size:"22.5"},{default:n(()=>[d(l(t(Ge)),1)]),_:1}))])]),default:n(()=>[d(l(o.$t("views.new_camera.source")+": "+c)+" ",1)]),_:2},1024),a(q,{eager:""},{default:n(()=>[m("div",At,[a(t(C),{modelValue:r.name,"onUpdate:modelValue":i=>r.name=i,name:`sources[${c}].name`},{default:n(({field:i,errorMessage:f,errors:p})=>[m("label",{for:`sources[${c}].name`,class:"v-label"},l(o.$t("components.form.label.source_name")),9,Ct),a(J,G({loading:t(u),variant:"outlined",name:`sources[${c}].name`,type:"text",density:"compact",ref_for:!0},i,{error:p.length>0,"error-messages":f}),null,16,["loading","name","error","error-messages"])]),_:2},1032,["modelValue","onUpdate:modelValue","name"]),a(t(C),{modelValue:r.roles,"onUpdate:modelValue":i=>r.roles=i,name:`sources[${c}].roles`},{default:n(({field:i,errorMessage:f,errors:p})=>[m("label",{for:`sources[${c}].roles`,class:"v-label"},l(o.$t("components.form.label.source_role")),9,Ht),a(X,G({loading:t(u),items:t(ne).filter(x=>!t(g).sources.some((I,v)=>{var L;return((L=I.roles)==null?void 0:L.includes(x))&&v!==c})),variant:"outlined",name:`sources[${c}].roles`,type:"text",density:"compact",chips:"",multiple:"",clearable:"",ref_for:!0},i,{error:p.length>0,"error-messages":f,"model-value":i.value,onKeydown:_(()=>null,["prevent"])}),{chip:n(({item:x})=>[a(ze,{color:"#df2a4c"},{default:n(()=>[d(l(x.title),1)]),_:2},1024)]),_:2},1040,["loading","items","name","error","error-messages","model-value"])]),_:2},1032,["modelValue","onUpdate:modelValue","name"]),m("label",{for:`sources[${c}].urls[].url`,class:"v-label"},l(o.$t("components.form.label.camera_sources")),9,Vt),(h(!0),k(D,null,B(r.urls,(i,f)=>(h(),k("div",{key:f},[m("div",jt,[a(t(C),{modelValue:i.protocol,"onUpdate:modelValue":p=>i.protocol=p,name:`sources[${c}].urls[${f}].protocol`},{default:n(({field:p,errors:x,errorMessage:I})=>[a(X,G({loading:t(u),items:t(Ye),"hide-no-data":"","hide-details":"",variant:"outlined",name:`sources[${c}].urls[${f}].protocol`,type:"text",density:"compact",style:{"min-width":"125px","max-width":"125px","min-height":"40px","max-height":"40px"},class:"camera-protocol",ref_for:!0},p,{error:x.length>0,"error-messages":I,"model-value":p.value,onKeydown:_(()=>null,["prevent"]),"onUpdate:modelValue":v=>be(v,i)}),null,16,["loading","items","name","error","error-messages","model-value","onUpdate:modelValue"])]),_:2},1032,["modelValue","onUpdate:modelValue","name"]),a(t(C),{modelValue:i.url,"onUpdate:modelValue":p=>i.url=p,name:`sources[${c}].urls[${f}].url`},{default:n(({field:p,errorMessage:x,errors:I})=>[a(Ne,{modelValue:i.url,"onUpdate:modelValue":[v=>i.url=v,v=>p.value=v],loading:t(u),clearable:"",chips:"",multiple:"",items:$(i.protocol).presets,variant:"outlined",name:`sources[${c}].urls[${f}].url`,type:"text",density:"compact",class:"camera-source",error:I.length>0,"error-messages":x},{"append-inner":n(()=>[r.urls.length>1?(h(),A(S,{key:0,size:"28",variant:"text",rounded:"",density:"compact",color:"red",disabled:r.urls.length<2||t(u),onClick:_(v=>le(c,f),["prevent"])},{default:n(()=>[a(y,{size:"20"},{default:n(()=>[d(l(t(Me)),1)]),_:1})]),_:2},1032,["disabled","onClick"])):Ie("",!0)]),_:2},1032,["modelValue","onUpdate:modelValue","loading","items","name","error","error-messages"])]),_:2},1032,["modelValue","onUpdate:modelValue","name"]),m("div",Et,[a(S,{disabled:!i.protocol||!i.url.length||t(u),color:"#5e5e5e",density:"compact",icon:"",variant:"text",onClick:_(p=>he(i),["prevent"])},{default:n(()=>[a(y,{size:"20"},{default:n(()=>[d(l(t(Ue)),1)]),_:1})]),_:2},1032,["disabled","onClick"]),a(S,{disabled:t(u),color:"#5e5e5e",density:"compact",icon:"",variant:"text",onClick:_(p=>de(i.protocol),["prevent"])},{default:n(()=>[a(y,{size:"20"},{default:n(()=>[d(l(t(Fe)),1)]),_:1})]),_:2},1032,["disabled","onClick"])])])]))),128)),m("div",Ot,[a(S,{disabled:t(u),color:"#df2a4c",variant:"flat",onClick:_(i=>me(c),["prevent"])},{default:n(()=>[d(l(o.$t("components.form.button.add_source")),1)]),_:2},1032,["disabled","onClick"])])])]),_:2},1024)]),_:2},1032,["value","style"]))),128))]),_:1},8,["modelValue"]),m("div",Gt,[a(S,{disabled:t(u),variant:"text",color:"#df2a4c",icon:"",onClick:_(ue,["prevent"])},{default:n(()=>[a(y,{size:"30"},{default:n(()=>[d(l(t(z)),1)]),_:1})]),_:1},8,["disabled"])])])])]),_:1},8,["validation-schema","initial-values"])]),a(s,{modelValue:t(R),"onUpdate:modelValue":e[4]||(e[4]=r=>O(R)?R.value=r:null),title:o.$t("components.dialog.title.information"),loading:t(u),"hide-confirm-button":""},{content:n(()=>{var r;return[(r=t(j))!=null&&r.md?(h(),k("div",Mt,[m("div",{class:"w-full markdown-body",innerHTML:t(F).render(t(j).md)},null,8,Ut)])):(h(),k("div",Ft,[a(Q,{color:"#df2a4c",indeterminate:""})]))]}),_:1},8,["modelValue","title","loading"]),a(s,{modelValue:t(E),"onUpdate:modelValue":e[5]||(e[5]=r=>O(E)?E.value=r:null),title:o.$t("components.dialog.title.preview"),loading:t(u),"hide-confirm-button":""},{content:n(()=>[!t(T)||t(ce)?(h(),k("div",$t,[a(Q,{color:"#df2a4c",indeterminate:""})])):(h(),A(b,{key:1,class:"mt-5 inner-component","show-camera-name":"","current-camera":t(T),"border-radius":t(H)?0:3,border:!1,target:"preview","preview-src":t(T),"button-elevation":"1"},null,8,["current-camera","border-radius","preview-src"]))]),_:1},8,["modelValue","title","loading"])],2)}}}),Eo=ke(Lt,[["__scopeId","data-v-0257bb75"]]);export{Eo as default};
@@ -0,0 +1 @@
1
+ div[data-v-0257bb75] .v-expansion-panel-title__overlay,div[data-v-0257bb75] .v-expansion-panel__shadow{background:var(--background-inner-component);border-radius:4px;border:1px solid var(--border-card);box-shadow:none!important}@media screen and (max-width: 639px){div[data-v-0257bb75] .v-expansion-panel-title__overlay,div[data-v-0257bb75] .v-expansion-panel__shadow{border-radius:0}}.new-source-container[data-v-0257bb75]{padding:1rem;background:rgba(var(--color-rgb),.04);border-radius:10px}.camera-protocol[data-v-0257bb75] .v-input__prepend,.camera-source[data-v-0257bb75] .v-input__prepend{margin:0!important}.camera-protocol[data-v-0257bb75] .v-field{border-radius:4px 0 0 4px/4px 0px 0px 4px!important}.camera-source[data-v-0257bb75] .v-field{border-top-left-radius:0;border-bottom-left-radius:0}.camera-source[data-v-0257bb75] .v-input__append{margin-left:5px}.window[data-v-0257bb75]{min-height:calc(100% - 36px)}
@@ -1 +1 @@
1
- import{a as we,b as at,C as lt,d as it,e as rt,g as ut}from"./VPlayer-DpgP5_CU.js";import{_ as ct}from"./VPluginCard-DxspPu-g.js";import{F as $e,t as Ee,r as a,c as H,w as Y,e as l,f as u,j as s,u as e,T as d,l as y,n as X,V as J,M as f,R as g,q as P,z as te,i as fe,a3 as dt,U as ft,X as Qe,O as B,N as Pe,Q as De}from"./@vue-DMh6qW6s.js";import{Y as Fe,k as ce,i as oe,c as Be}from"./@mdi-CmcijEFB.js";import{i as ze}from"./vue3-toastify-D8Ru9hkX.js";import{P as Ie}from"./plugins-S3SjQeRW.js";import{A as Me,M as Ve,i as Ue,d as ke,C as Je,D as je,w as Ye,E as Re,F as Le,z as mt,f as pt,t as vt}from"./main-g2kR7sEX.js";import{e as ae,b as me,V as de,U as gt,W as _t,C as ht,w as yt,G as qe,f as He,I as bt,J as xt,n as wt,x as $t}from"./vuetify-DYU2dOLI.js";import{H as se,t as It,y as kt,j as Ct,p as St}from"./highlight.js-TxRCSjhv.js";import{M as Pt}from"./markdown-it-DI8MEbma.js";import{u as Dt}from"./vue-router-Bje-Muh5.js";import{x as Vt}from"./@vueuse-D76s02Ot.js";import"./qrcode-SHonoxyK.js";import"./dijkstrajs-D_NXgYpA.js";import"./vee-validate-9vrYaQFq.js";import"./zod-BaF2dDCd.js";import"./pinia-BQbsPkIS.js";import"./@vee-validate-BY5H7fGS.js";import"./draggabilly-Arakw9Dk.js";import"./@xterm-B4Ga69iL.js";import"./get-size-D1dS-IaP.js";import"./unidragger-BYtqgAQ0.js";import"./ev-emitter-CXYwG0eJ.js";import"./@tanstack-BvYNCsQh.js";import"./VConfigEditor.vue_vue_type_script_setup_true_lang-DzQETeRW.js";import"./ace-builds-CigWTak4.js";import"./@vueform-B62o9zLe.js";import"./system-l2HUoPBI.js";import"./VConsole-B1XFaB1X.js";import"./vue-inline-svg-D1BV6A5r.js";import"./vue-i18n-DqKZtX1N.js";import"./@intlify-Ck2ZoCVz.js";import"./axios--Jv2L996.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-CQrF441D.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CVkp7hgG.js";import"./@popperjs-BQBsAJpH.js";import"./nprogress-DSyAi0LF.js";import"./mdurl-k9Sl0PQj.js";import"./uc.micro-kMc2yuuw.js";import"./entities-C20TfXL6.js";import"./linkify-it-DmNjr4Kv.js";import"./punycode.js-Dj65hjkv.js";const jt={class:"w-full"},Lt={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"},Tt={key:1,class:"w-full flex flex-col items-center justify-center"},At={class:"relative mb-4 w-full"},Nt=["src","type"],Qt={class:"flex items-center justify-center"},Bt={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"},qt=$e({__name:"VAudioDetectionInterface",props:{pluginName:{}},setup(ne){const O=new Ie,C=ne,{pluginName:T}=Ee(C),i=a([]),x=a(!1),p=a(!1),D=a(!1),b=a(!1),$=a(null),I=a(null),z=a(Me.join(",")),F=a(""),S=a({}),h=a(!1),V=a(),_=a(!0),{mutateAsync:E,isPending:A}=O.detectAudioQuery(),{data:M,isLoading:G}=O.getPluginInterfaceQuery(T.value,{type:"audioDetection"}),R=H(()=>A.value||G.value||h.value),w=n=>{const t=i.value.findIndex(o=>o.name===n);t>-1&&(i.value.splice(t,1),W(),F.value="",V.value=void 0)},j=n=>{if(x.value=!1,p.value=!1,b.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(()=>{k(t)})):t.size>Ve?b.value=!0:p.value=!0}},K=n=>{var o;p.value=!1,b.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(()=>{k(m)})):b.value=!0}}},W=()=>{$.value&&($.value.value="")},Z=n=>n<1024?n+" bytes":n<1048576?(n/1024).toFixed(1)+" KB":(n/1048576).toFixed(1)+" MB",k=n=>{h.value=!0;const t=new Audio;t.src=URL.createObjectURL(n),t.onloadedmetadata=()=>{V.value={mimeType:n.type},h.value=!1}},q=async n=>{if(!i.value.length){D.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(V.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 Y(i,n=>{n.length>0?(D.value=!1,_.value=!1):(F.value="",V.value=void 0,_.value=!0)},{immediate:!0,deep:!0}),(n,t)=>{const o=we;return l(),u("div",jt,[s("div",{class:"file-upload-box p-4",onDrop:t[1]||(t[1]=P(m=>j(m),["prevent"])),onDragover:t[2]||(t[2]=P(m=>x.value=!0,["prevent"])),onDragenter:t[3]||(t[3]=P(m=>x.value=!0,["prevent"])),onDragleave:t[4]||(t[4]=P(m=>x.value=!1,["prevent"]))},[e(i).length?(l(),u("div",Tt,[s("div",At,[s("audio",{ref_key:"audioPlayer",ref:I,controls:"",class:"w-full"},[s("source",{src:e(F),type:e(i)[0].type},null,8,Nt),J(" Your browser does not support the audio element. ")],512)]),s("div",Qt,[f(me,{size:"28",variant:"text",color:"red",rounded:"",onClick:t[0]||(t[0]=P(m=>w(e(i)[0].name),["stop"]))},{default:g(()=>[f(ae,{size:"20"},{default:g(()=>[J(d(e(Fe)),1)]),_:1})]),_:1}),s("b",Bt,d(e(i)[0].name),1),s("span",Mt,"("+d(Z(e(i)[0].size))+")",1)])])):(l(),u("div",Lt,[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(z),onChange:K},null,40,Ft),e(p)?(l(),u("p",Ot,d(n.$t("components.detection_interface.only_one_audio_allowed")),1)):y("",!0),e(D)?(l(),u("p",{key:1,class:X(["text-red text-sm",{"mt-2":e(p)}])},d(n.$t("components.detection_interface.audio_required")),3)):y("",!0),e(b)?(l(),u("p",{key:2,class:X(["text-red text-sm",{"mt-2":e(p)||e(D)}])},d(n.$t("components.detection_interface.file_size_error")),3)):y("",!0)])]))],32),s("div",Ut,[s("div",Jt,d(n.$t("components.detection_interface.interface_config")),1),e(S)&&Object.keys(e(S)).length?y("",!0):(l(),u("div",Rt,d(n.$t("components.detection_interface.no_interface_config")),1)),f(o,{config:e(S),"ui-schema":e(M),loading:e(R),"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"])])])}}}),Ht=ke(qt,[["__scopeId","data-v-299a60c5"]]),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"},Wt=["accept"],Zt={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 O=new Ie,C=ne,{pluginName:T}=Ee(C),i=a([]),x=a(!1),p=a(!1),D=a(!1),b=a(!1),$=a(null),I=a(Je.join(",")),z=a(""),F=a({}),S=a(!1),h=a(),V=a([]),_=a(!1),E=a(!0),{mutateAsync:A,isPending:M}=O.detectObjectsQuery(),{data:G,isLoading:R}=O.getPluginInterfaceQuery(T.value,{type:"objectDetection"}),w=H(()=>M.value||R.value||S.value),j=t=>{const o=i.value.findIndex(m=>m.name===t);o>-1&&(i.value.splice(o,1),Z(),z.value="",h.value=void 0)},K=t=>{if(x.value=!1,p.value=!1,b.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<=je?(i.value.push(o),te(()=>{k(o)})):o.size>je?b.value=!0:p.value=!0}},W=t=>{var m;p.value=!1,b.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<=je?(i.value.push(L),te(()=>{k(L)})):b.value=!0}}},Z=()=>{$.value&&($.value.value="")},k=t=>{S.value=!0;const o=new Image;o.src=URL.createObjectURL(t),o.onload=()=>{z.value=o.src,h.value={width:o.width,height:o.height},S.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){D.value=!0;return}S.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 A({pluginName:T.value,formData:o});_.value=!0,setTimeout(()=>{V.value=m},300)}catch(m){console.error("Error detecting objects",m)}finally{S.value=!1}};return Y(i,t=>{t.length>0?(D.value=!1,E.value=!1):(z.value="",h.value=void 0,E.value=!0)},{immediate:!0,deep:!0}),(t,o)=>{const m=we,L=at,Ce=Ye;return l(),u("div",Yt,[s("div",{class:"file-upload-box p-4",onDrop:o[1]||(o[1]=P(U=>K(U),["prevent"])),onDragover:o[2]||(o[2]=P(U=>x.value=!0,["prevent"])),onDragenter:o[3]||(o[3]=P(U=>x.value=!0,["prevent"])),onDragleave:o[4]||(o[4]=P(U=>x.value=!1,["prevent"]))},[e(i).length?(l(),u("div",en,[s("div",tn,[s("img",{src:e(z),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]=P(U=>j(e(i)[0].name),["stop"]))},{default:g(()=>[f(ae,{size:"20"},{default:g(()=>[J(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)])])):(l(),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(I),onChange:W},null,40,Wt),e(p)?(l(),u("p",Zt,d(t.$t("components.detection_interface.only_one_image_allowed")),1)):y("",!0),e(D)?(l(),u("p",{key:1,class:X(["text-red text-sm",{"mt-2":e(p)}])},d(t.$t("components.detection_interface.image_required")),3)):y("",!0),e(b)?(l(),u("p",{key:2,class:X(["text-red text-sm",{"mt-2":e(p)||e(D)}])},d(t.$t("components.detection_interface.file_size_error")),3)):y("",!0)])]))],32),s("div",ln,[s("div",rn,d(t.$t("components.detection_interface.interface_config")),1),e(F)&&Object.keys(e(F)).length?y("",!0):(l(),u("div",un,d(t.$t("components.detection_interface.no_interface_config")),1)),f(m,{config:e(F),"ui-schema":e(G),loading:e(w),"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"])]),f(Ce,{modelValue:e(_),"onUpdate:modelValue":o[5]||(o[5]=U=>fe(_)?_.value=U:null),title:t.$t("components.dialog.title.result"),"hide-confirm-button":"",width:"auto"},{content:g(()=>[s("div",cn,[f(L,{detections:e(V)},null,8,["detections"]),s("img",{src:e(z),alt:"Preview",class:"w-full"},null,8,dn)])]),_:1},8,["modelValue","title"])])}}}),mn=ke(fn,[["__scopeId","data-v-49843399"]]),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"},In={class:"disabled-text"},kn={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 O=new Ie,C=ne,{pluginName:T}=Ee(C),i=a([]),x=a(!1),p=a(!1),D=a(!1),b=a(!1),$=a(null),I=a(null),z=a(null),F=a(Re.join(",")),S=a({}),h=a(!1),V=a(!1),_=a(!0),{mutateAsync:E,isPending:A}=O.detectMotionQuery(),{data:M,isLoading:G}=O.getPluginInterfaceQuery(T.value,{type:"motionDetection"}),R=H(()=>A.value||G.value||h.value),w=n=>{const t=i.value.findIndex(o=>o.name===n);t>-1&&(i.value.splice(t,1),W(),I.value.src="")},j=n=>{if(x.value=!1,p.value=!1,b.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<=Le?(i.value.push(t),te(()=>{k(t)})):t.size>Le?b.value=!0:p.value=!0}},K=n=>{var o;p.value=!1,b.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<=Le?(i.value.push(m),te(()=>{k(m)})):b.value=!0}}},W=()=>{$.value&&($.value.value="")},Z=n=>n<1024?n+" bytes":n<1048576?(n/1024).toFixed(1)+" KB":(n/1048576).toFixed(1)+" MB",k=n=>{h.value=!0,I.value.src=URL.createObjectURL(n),I.value.load(),I.value.onloadeddata=()=>{h.value=!1}},q=async n=>{if(!i.value.length){D.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"});V.value=!0,setTimeout(()=>{z.value&&(z.value.src=URL.createObjectURL(m),z.value.load())},300)}catch(o){console.error("Error detecting motion",o)}finally{h.value=!1}};return Y(i,n=>{n.length>0?(D.value=!1,_.value=!1):_.value=!0},{immediate:!0,deep:!0}),(n,t)=>{const o=we,m=Ye;return l(),u("div",pn,[s("div",{class:"file-upload-box p-4",onDrop:t[1]||(t[1]=P(L=>j(L),["prevent"])),onDragover:t[2]||(t[2]=P(L=>x.value=!0,["prevent"])),onDragenter:t[3]||(t[3]=P(L=>x.value=!0,["prevent"])),onDragleave:t[4]||(t[4]=P(L=>x.value=!1,["prevent"]))},[e(i).length?(l(),u("div",bn,[s("div",xn,[s("video",{ref_key:"videoPlayer",ref:I,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]=P(L=>w(e(i)[0].name),["stop"]))},{default:g(()=>[f(ae,{size:"20"},{default:g(()=>[J(d(e(Fe)),1)]),_:1})]),_:1}),s("b",$n,d(e(i)[0].name),1),s("span",In,"("+d(Z(e(i)[0].size))+")",1)])])):(l(),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(F),onChange:K},null,40,hn),e(p)?(l(),u("p",yn,d(n.$t("components.detection_interface.only_one_video_allowed")),1)):y("",!0),e(D)?(l(),u("p",{key:1,class:X(["text-red text-sm",{"mt-2":e(p)}])},d(n.$t("components.detection_interface.video_required")),3)):y("",!0),e(b)?(l(),u("p",{key:2,class:X(["text-red text-sm",{"mt-2":e(p)||e(D)}])},d(n.$t("components.detection_interface.file_size_error")),3)):y("",!0)])]))],32),s("div",kn,[s("div",Cn,d(n.$t("components.detection_interface.interface_config")),1),e(S)&&Object.keys(e(S)).length?y("",!0):(l(),u("div",Sn,d(n.$t("components.detection_interface.no_interface_config")),1)),f(o,{config:e(S),"ui-schema":e(M),loading:e(R),"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"])]),f(m,{modelValue:e(V),"onUpdate:modelValue":t[5]||(t[5]=L=>fe(V)?V.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:z,controls:"",class:"w-full"},"Your browser does not support the video tag.",512)])]),_:1},8,["modelValue","title"])])}}}),Vn=ke(Dn,[["__scopeId","data-v-9c8effb8"]]),jn={key:0,class:"flex items-center justify-center w-full h-full"},Ln={key:1,class:"h-full w-full inline-size mb-safe"},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"},Tn={key:1},An={class:"options-segments flex items-center justify-between"},Nn={class:"flex flex-col items-center justify-center"},Qn={class:"options-segments-text mt-2"},Bn={key:1},Mn={key:2},Un={key:3},Jn={key:4},Rn={class:"w-full full-inner-height"},qn={class:"flex flex-col md:flex-row gap-2 h-full"},Hn={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"},Wn=["innerHTML"],Zn={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",It),se.registerLanguage("yaml",kt),se.registerLanguage("json",Ct),se.registerLanguage("python",St);const O=new lt,C=new Ie,T=mt(),i=Dt(),{mobileActive:x,smallMobileActive:p}=pt(),D=a(vt()),b=a(),$=a(!1),I=a([]),z=a(!1),F=a(i.params.scope),S=a(i.params.pluginname),h=a(),V=a([]),_=a({name:"settings",icon:ce,isInterface:!1}),E=a(!1),A=a(),M=a(),[G,R]=Vt(),w=H(()=>F.value?`${F.value}/${S.value}`:S.value);C.toggleQueryActivator("getPluginContractQuery",!1);const{data:j,isLoading:K}=C.getPluginQuery(w),{data:W,isLoading:Z}=C.getPluginConfigJsonQuery(w),{data:k,isLoading:q}=C.getPluginSchemaQuery(w),{data:n}=C.getPluginContractQuery(w),{data:t,isLoading:o}=C.getPluginReadmeQuery(w),{data:m,isLoading:L}=C.getPluginChangelogQuery(w),{mutateAsync:Ce,isPending:U}=C.actionButtonQuery(),{mutate:Xe,isPending:Ge}=C.patchPluginConfigQuery(),{mutate:Ke,isPending:We}=O.addCameraExtensionQuery(),{mutate:Ze,isPending:et}=O.removeCameraExtensionQuery(),Oe=H(()=>!!(K.value||Z.value||q.value||o.value||L.value)),pe=H(()=>!!(We.value||et.value)),le=H(()=>!!($.value||U.value||Ge.value)),ve=H(()=>{var r,c,N;return!!(k.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>"}});Y(()=>i.params.pluginname,()=>{S.value=i.params.pluginname},{deep:!0,immediate:!0}),Y(h,r=>{te(()=>z.value=!!r)}),Y(k,()=>{q.value?C.toggleQueryActivator("getPluginContractQuery",!1):C.toggleQueryActivator("getPluginContractQuery",!0)},{deep:!0,immediate:!0}),Y(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}),k.value&&k.value.schema&&Object.keys(k.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:Be,isInterface:!1}),!c&&!N&&(_.value={name:"cameras",icon:Be,isInterface:!1})),V.value=r,((ie=n.value)!=null&&ie.contract.extension||(re=n.value)!=null&&re.contract.supportAdditionalCameras)&&((ue=n.value)!=null&&ue.cameras.length)&&(I.value=(v=n.value)==null?void 0:v.cameras.filter(ee=>ee.extensions.plugins.includes(w.value)).map(ee=>ee.name))},{deep:!0,immediate:!0}),Y(E,r=>{r||(A.value=void 0,M.value=void 0)});const tt=async r=>{if(!k.value)return;$.value=!0;const c=ut(k.value.schema,r);Xe({pluginName:w.value,configData:c},{onSettled:()=>{$.value=!1}})},nt=async r=>{$.value=!0,await Ce({pluginName:w.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&&(M.value=r.payload,A.value=c,E.value=!0)},onSettled:()=>{$.value=!1}})},ot=async r=>{j.value&&(I.value.includes(r.name)?Ze({cameraname:r.name,pluginname:j.value.pluginName},{onSuccess:()=>{I.value=I.value.filter(c=>c!==r.name)}}):Ke({cameraname:r.name,pluginname:j.value.pluginName},{onSuccess:()=>{I.value=[...I.value,r.name]}}))};return dt(()=>{b.value=T.connectToNamespace("/plugins")}),ft(()=>{var r,c;(c=(r=b.value)==null?void 0:r.end)==null||c.call(r)}),(r,c)=>{var ie,re,ue;const N=we,ge=Vn,_e=mn,he=Ht,ye=ct,be=it,xe=rt;return l(),u("main",{class:X({"px-0":e(p)})},[e(Oe)?(l(),u("div",jn,[f(de,{color:"#df2a4c",indeterminate:""})])):(l(),u("div",Ln,[s("div",{class:X(["mb-3 flex w-full items-center",{"px-2":e(p)}]),style:{height:"30px"}},[s("h1",zn,d((ie=e(j))==null?void 0:ie.displayName),1)],2),f(e(G),null,{default:g(()=>[s("div",{class:"plugin-settings-box flex flex-col gap-2 h-full",style:Qe({width:e(ve)&&!e(x)?"40%":"100%"})},[s("div",En,[s("div",Fn,d(r.$t("views.plugin.plugin_settings")),1),e(j)?(l(),u("div",Tn,[s("div",An,[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(()=>[(l(!0),u(Pe,null,De(e(V),(v,ee)=>(l(),B(_t,{key:ee,value:v,disabled:e(Oe)||v.isInterface&&e(j).disabled,"min-width":"auto"},{default:g(()=>[s("div",Nn,[f(ae,{size:"20"},{default:g(()=>[J(d(v.icon),1)]),_:2},1024),s("span",Qn,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)?(l(),B(ht,{key:0,height:"2",color:"#df2a4c",indeterminate:"",style:{"margin-top":"-2px"}})):y("",!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(()=>[(l(!0),u(Pe,null,De(e(V),(v,ee)=>(l(),B($t,{key:ee,value:{name:v.name,icon:v.icon,isInterface:v.isInterface},disabled:v.isInterface&&e(j).disabled},{default:g(()=>{var Te;return[v.name==="settings"&&e(k)?(l(),B(N,{key:0,config:e(W)||{},"ui-schema":e(k),loading:e(le),onOnFormSubmit:tt,onOnSubmit:nt},null,8,["config","ui-schema","loading"])):y("",!0),v.name==="cameras"?(l(),u("div",Bn,[(l(!0),u(Pe,null,De((Te=e(n))==null?void 0:Te.cameras,Q=>{var Ae,Ne;return l(),u("div",{key:Q.name},[!((Ae=e(n))!=null&&Ae.contract.extension)&&!((Ne=e(n))!=null&&Ne.contract.supportAdditionalCameras)?(l(),B(qe,{key:0,"select-strategy":"classic",class:"py-0",disabled:e(pe)||e(le),"onClick:select":()=>r.$router.push(`/cameras/${Q.name}`)},{default:g(()=>[f(He,{value:Q.name,class:"px-2"},{append:g(()=>[f(me,{class:"ml-auto",size:"28",rounded:"",density:"compact",variant:"text",onClick:P(st=>h.value=Q.name,["stop"])},{default:g(()=>[f(ae,{size:"18"},{default:g(()=>[J(d(e(ce)),1)]),_:1})]),_:2},1032,["onClick"])]),default:g(()=>[J(d(Q.name)+" ",1)]),_:2},1032,["value"])]),_:2},1032,["disabled","onClick:select"])):(l(),B(qe,{key:1,"select-strategy":"classic",class:"py-0",disabled:e(pe)||e(le),"onUpdate:selected":()=>ot(Q)},{default:g(()=>[f(He,{class:"px-2",value:e(j).pluginName,active:e(I).includes(Q.name)},{prepend:g(()=>[f(bt,{start:""},{default:g(()=>[f(xt,{"model-value":e(I).includes(Q.name),color:"#df2a4c"},null,8,["model-value"])]),_:2},1024)]),append:g(()=>[f(me,{class:"ml-auto",size:"28",rounded:"",density:"compact",variant:"text",onClick:P(st=>h.value=Q.name,["stop"])},{default:g(()=>[f(ae,{size:"18"},{default:g(()=>[J(d(e(ce)),1)]),_:1})]),_:2},1032,["onClick"])]),default:g(()=>[J(d(Q.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))])):y("",!0),v.name==="motion_detection"?(l(),u("div",Mn,[f(ge,{"plugin-name":e(w)},null,8,["plugin-name"])])):y("",!0),v.name==="object_detection"?(l(),u("div",Un,[f(_e,{"plugin-name":e(w)},null,8,["plugin-name"])])):y("",!0),v.name==="audio_detection"?(l(),u("div",Jn,[f(he,{"plugin-name":e(w)},null,8,["plugin-name"])])):y("",!0)]}),_:2},1032,["value","disabled"]))),128))]),_:1},8,["modelValue"])])):(l(),u("div",On,[f(de,{color:"#df2a4c",indeterminate:""})]))])],4)]),_:1}),s("div",Rn,[s("div",qn,[s("div",{class:"w-full flex flex-col gap-2 h-full",style:Qe({width:e(ve)&&!e(x)?"60%":"100%"})},[s("div",Hn,[e(j)?(l(),B(ye,{key:1,ref:"pluginRef",plugin:e(j),"min-height":"175px",height:"100%",width:"100%","border-radius":"4px","show-toggle":"","show-settings":"","show-logo":"","show-plugin-status":"","show-logs":"","show-configs":"",truncate:!1,onIsLoading:c[2]||(c[2]=v=>$.value=v)},null,8,["plugin"])):(l(),u("div",Yn,[f(de,{color:"#df2a4c",indeterminate:""})]))]),e(ve)&&e(x)?(l(),B(e(R),{key:0})):y("",!0),s("div",Xn,[s("div",Gn,d(r.$t("views.plugin.readme")),1),e(o)?(l(),u("div",Kn,[f(de,{color:"#df2a4c",indeterminate:""})])):(l(),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,Wn))]),s("div",Zn,[s("div",eo,d(r.$t("views.plugin.changelog")),1),e(L)?(l(),u("div",to,[f(de,{color:"#df2a4c",indeterminate:""})])):(l(),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(x)?(l(),B(e(R),{key:0})):y("",!0)])])])),e(h)?(l(),u("div",{key:2,"data-ignore-id":e(D)},[f(be,{"camera-name":e(h),show:e(z),onClose:c[3]||(c[3]=v=>h.value=void 0)},null,8,["camera-name","show"])],8,oo)):y("",!0),(ue=(re=e(A))==null?void 0:re.schema)!=null&&ue.config?(l(),B(xe,{key:3,modelValue:e(E),"onUpdate:modelValue":c[4]||(c[4]=v=>fe(E)?E.value=v:null),"ui-schema":{schema:e(A).schema},"plugin-config":e(M)||{},"plugin-name":e(w)},null,8,["modelValue","ui-schema","plugin-config","plugin-name"])):y("",!0)],2)}}}),ts=ke(so,[["__scopeId","data-v-6dc083fb"]]);export{ts as default};
1
+ import{a as we,b as at,C as lt,d as it,e as rt,g as ut}from"./VPlayer-CjBoAE42.js";import{_ as ct}from"./VPluginCard-23hHloPd.js";import{F as $e,t as Ee,r as a,c as H,w as Y,e as l,f as u,j as s,u as e,T as d,l as y,n as X,V as J,M as f,R as g,q as P,z as te,i as fe,a3 as dt,U as ft,X as Qe,O as B,N as Pe,Q as De}from"./@vue-DMh6qW6s.js";import{Y as Fe,k as ce,i as oe,c as Be}from"./@mdi-CmcijEFB.js";import{i as ze}from"./vue3-toastify-D8Ru9hkX.js";import{P as Ie}from"./plugins-BvEiuWHs.js";import{A as Me,M as Ve,i as Ue,d as ke,C as Je,D as je,w as Ye,E as Re,F as Le,z as mt,f as pt,t as vt}from"./main-CltTNKYj.js";import{e as ae,b as me,V as de,U as gt,W as _t,C as ht,w as yt,G as qe,f as He,I as bt,J as xt,n as wt,x as $t}from"./vuetify-DYU2dOLI.js";import{H as se,t as It,y as kt,j as Ct,p as St}from"./highlight.js-TxRCSjhv.js";import{M as Pt}from"./markdown-it-DI8MEbma.js";import{u as Dt}from"./vue-router-Bje-Muh5.js";import{x as Vt}from"./@vueuse-D76s02Ot.js";import"./qrcode-SHonoxyK.js";import"./dijkstrajs-D_NXgYpA.js";import"./vee-validate-9vrYaQFq.js";import"./zod-BaF2dDCd.js";import"./pinia-BQbsPkIS.js";import"./@vee-validate-BY5H7fGS.js";import"./draggabilly-Arakw9Dk.js";import"./@xterm-B4Ga69iL.js";import"./get-size-D1dS-IaP.js";import"./unidragger-BYtqgAQ0.js";import"./ev-emitter-CXYwG0eJ.js";import"./@tanstack-BvYNCsQh.js";import"./VConfigEditor.vue_vue_type_script_setup_true_lang-DE77uadd.js";import"./ace-builds-CigWTak4.js";import"./@vueform-B62o9zLe.js";import"./system-4fS8k88J.js";import"./VConsole-Bf-WItOk.js";import"./vue-inline-svg-D1BV6A5r.js";import"./vue-i18n-DqKZtX1N.js";import"./@intlify-Ck2ZoCVz.js";import"./axios-BI2i94Vb.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-CQrF441D.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CVkp7hgG.js";import"./@popperjs-BQBsAJpH.js";import"./nprogress-DSyAi0LF.js";import"./mdurl-k9Sl0PQj.js";import"./uc.micro-kMc2yuuw.js";import"./entities-C20TfXL6.js";import"./linkify-it-DmNjr4Kv.js";import"./punycode.js-Dj65hjkv.js";const jt={class:"w-full"},Lt={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"},Tt={key:1,class:"w-full flex flex-col items-center justify-center"},At={class:"relative mb-4 w-full"},Nt=["src","type"],Qt={class:"flex items-center justify-center"},Bt={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"},qt=$e({__name:"VAudioDetectionInterface",props:{pluginName:{}},setup(ne){const O=new Ie,C=ne,{pluginName:T}=Ee(C),i=a([]),x=a(!1),p=a(!1),D=a(!1),b=a(!1),$=a(null),I=a(null),z=a(Me.join(",")),F=a(""),S=a({}),h=a(!1),V=a(),_=a(!0),{mutateAsync:E,isPending:A}=O.detectAudioQuery(),{data:M,isLoading:G}=O.getPluginInterfaceQuery(T.value,{type:"audioDetection"}),R=H(()=>A.value||G.value||h.value),w=n=>{const t=i.value.findIndex(o=>o.name===n);t>-1&&(i.value.splice(t,1),W(),F.value="",V.value=void 0)},j=n=>{if(x.value=!1,p.value=!1,b.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(()=>{k(t)})):t.size>Ve?b.value=!0:p.value=!0}},K=n=>{var o;p.value=!1,b.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(()=>{k(m)})):b.value=!0}}},W=()=>{$.value&&($.value.value="")},Z=n=>n<1024?n+" bytes":n<1048576?(n/1024).toFixed(1)+" KB":(n/1048576).toFixed(1)+" MB",k=n=>{h.value=!0;const t=new Audio;t.src=URL.createObjectURL(n),t.onloadedmetadata=()=>{V.value={mimeType:n.type},h.value=!1}},q=async n=>{if(!i.value.length){D.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(V.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 Y(i,n=>{n.length>0?(D.value=!1,_.value=!1):(F.value="",V.value=void 0,_.value=!0)},{immediate:!0,deep:!0}),(n,t)=>{const o=we;return l(),u("div",jt,[s("div",{class:"file-upload-box p-4",onDrop:t[1]||(t[1]=P(m=>j(m),["prevent"])),onDragover:t[2]||(t[2]=P(m=>x.value=!0,["prevent"])),onDragenter:t[3]||(t[3]=P(m=>x.value=!0,["prevent"])),onDragleave:t[4]||(t[4]=P(m=>x.value=!1,["prevent"]))},[e(i).length?(l(),u("div",Tt,[s("div",At,[s("audio",{ref_key:"audioPlayer",ref:I,controls:"",class:"w-full"},[s("source",{src:e(F),type:e(i)[0].type},null,8,Nt),J(" Your browser does not support the audio element. ")],512)]),s("div",Qt,[f(me,{size:"28",variant:"text",color:"red",rounded:"",onClick:t[0]||(t[0]=P(m=>w(e(i)[0].name),["stop"]))},{default:g(()=>[f(ae,{size:"20"},{default:g(()=>[J(d(e(Fe)),1)]),_:1})]),_:1}),s("b",Bt,d(e(i)[0].name),1),s("span",Mt,"("+d(Z(e(i)[0].size))+")",1)])])):(l(),u("div",Lt,[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(z),onChange:K},null,40,Ft),e(p)?(l(),u("p",Ot,d(n.$t("components.detection_interface.only_one_audio_allowed")),1)):y("",!0),e(D)?(l(),u("p",{key:1,class:X(["text-red text-sm",{"mt-2":e(p)}])},d(n.$t("components.detection_interface.audio_required")),3)):y("",!0),e(b)?(l(),u("p",{key:2,class:X(["text-red text-sm",{"mt-2":e(p)||e(D)}])},d(n.$t("components.detection_interface.file_size_error")),3)):y("",!0)])]))],32),s("div",Ut,[s("div",Jt,d(n.$t("components.detection_interface.interface_config")),1),e(S)&&Object.keys(e(S)).length?y("",!0):(l(),u("div",Rt,d(n.$t("components.detection_interface.no_interface_config")),1)),f(o,{config:e(S),"ui-schema":e(M),loading:e(R),"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"])])])}}}),Ht=ke(qt,[["__scopeId","data-v-299a60c5"]]),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"},Wt=["accept"],Zt={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 O=new Ie,C=ne,{pluginName:T}=Ee(C),i=a([]),x=a(!1),p=a(!1),D=a(!1),b=a(!1),$=a(null),I=a(Je.join(",")),z=a(""),F=a({}),S=a(!1),h=a(),V=a([]),_=a(!1),E=a(!0),{mutateAsync:A,isPending:M}=O.detectObjectsQuery(),{data:G,isLoading:R}=O.getPluginInterfaceQuery(T.value,{type:"objectDetection"}),w=H(()=>M.value||R.value||S.value),j=t=>{const o=i.value.findIndex(m=>m.name===t);o>-1&&(i.value.splice(o,1),Z(),z.value="",h.value=void 0)},K=t=>{if(x.value=!1,p.value=!1,b.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<=je?(i.value.push(o),te(()=>{k(o)})):o.size>je?b.value=!0:p.value=!0}},W=t=>{var m;p.value=!1,b.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<=je?(i.value.push(L),te(()=>{k(L)})):b.value=!0}}},Z=()=>{$.value&&($.value.value="")},k=t=>{S.value=!0;const o=new Image;o.src=URL.createObjectURL(t),o.onload=()=>{z.value=o.src,h.value={width:o.width,height:o.height},S.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){D.value=!0;return}S.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 A({pluginName:T.value,formData:o});_.value=!0,setTimeout(()=>{V.value=m},300)}catch(m){console.error("Error detecting objects",m)}finally{S.value=!1}};return Y(i,t=>{t.length>0?(D.value=!1,E.value=!1):(z.value="",h.value=void 0,E.value=!0)},{immediate:!0,deep:!0}),(t,o)=>{const m=we,L=at,Ce=Ye;return l(),u("div",Yt,[s("div",{class:"file-upload-box p-4",onDrop:o[1]||(o[1]=P(U=>K(U),["prevent"])),onDragover:o[2]||(o[2]=P(U=>x.value=!0,["prevent"])),onDragenter:o[3]||(o[3]=P(U=>x.value=!0,["prevent"])),onDragleave:o[4]||(o[4]=P(U=>x.value=!1,["prevent"]))},[e(i).length?(l(),u("div",en,[s("div",tn,[s("img",{src:e(z),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]=P(U=>j(e(i)[0].name),["stop"]))},{default:g(()=>[f(ae,{size:"20"},{default:g(()=>[J(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)])])):(l(),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(I),onChange:W},null,40,Wt),e(p)?(l(),u("p",Zt,d(t.$t("components.detection_interface.only_one_image_allowed")),1)):y("",!0),e(D)?(l(),u("p",{key:1,class:X(["text-red text-sm",{"mt-2":e(p)}])},d(t.$t("components.detection_interface.image_required")),3)):y("",!0),e(b)?(l(),u("p",{key:2,class:X(["text-red text-sm",{"mt-2":e(p)||e(D)}])},d(t.$t("components.detection_interface.file_size_error")),3)):y("",!0)])]))],32),s("div",ln,[s("div",rn,d(t.$t("components.detection_interface.interface_config")),1),e(F)&&Object.keys(e(F)).length?y("",!0):(l(),u("div",un,d(t.$t("components.detection_interface.no_interface_config")),1)),f(m,{config:e(F),"ui-schema":e(G),loading:e(w),"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"])]),f(Ce,{modelValue:e(_),"onUpdate:modelValue":o[5]||(o[5]=U=>fe(_)?_.value=U:null),title:t.$t("components.dialog.title.result"),"hide-confirm-button":"",width:"auto"},{content:g(()=>[s("div",cn,[f(L,{detections:e(V)},null,8,["detections"]),s("img",{src:e(z),alt:"Preview",class:"w-full"},null,8,dn)])]),_:1},8,["modelValue","title"])])}}}),mn=ke(fn,[["__scopeId","data-v-49843399"]]),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"},In={class:"disabled-text"},kn={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 O=new Ie,C=ne,{pluginName:T}=Ee(C),i=a([]),x=a(!1),p=a(!1),D=a(!1),b=a(!1),$=a(null),I=a(null),z=a(null),F=a(Re.join(",")),S=a({}),h=a(!1),V=a(!1),_=a(!0),{mutateAsync:E,isPending:A}=O.detectMotionQuery(),{data:M,isLoading:G}=O.getPluginInterfaceQuery(T.value,{type:"motionDetection"}),R=H(()=>A.value||G.value||h.value),w=n=>{const t=i.value.findIndex(o=>o.name===n);t>-1&&(i.value.splice(t,1),W(),I.value.src="")},j=n=>{if(x.value=!1,p.value=!1,b.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<=Le?(i.value.push(t),te(()=>{k(t)})):t.size>Le?b.value=!0:p.value=!0}},K=n=>{var o;p.value=!1,b.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<=Le?(i.value.push(m),te(()=>{k(m)})):b.value=!0}}},W=()=>{$.value&&($.value.value="")},Z=n=>n<1024?n+" bytes":n<1048576?(n/1024).toFixed(1)+" KB":(n/1048576).toFixed(1)+" MB",k=n=>{h.value=!0,I.value.src=URL.createObjectURL(n),I.value.load(),I.value.onloadeddata=()=>{h.value=!1}},q=async n=>{if(!i.value.length){D.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"});V.value=!0,setTimeout(()=>{z.value&&(z.value.src=URL.createObjectURL(m),z.value.load())},300)}catch(o){console.error("Error detecting motion",o)}finally{h.value=!1}};return Y(i,n=>{n.length>0?(D.value=!1,_.value=!1):_.value=!0},{immediate:!0,deep:!0}),(n,t)=>{const o=we,m=Ye;return l(),u("div",pn,[s("div",{class:"file-upload-box p-4",onDrop:t[1]||(t[1]=P(L=>j(L),["prevent"])),onDragover:t[2]||(t[2]=P(L=>x.value=!0,["prevent"])),onDragenter:t[3]||(t[3]=P(L=>x.value=!0,["prevent"])),onDragleave:t[4]||(t[4]=P(L=>x.value=!1,["prevent"]))},[e(i).length?(l(),u("div",bn,[s("div",xn,[s("video",{ref_key:"videoPlayer",ref:I,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]=P(L=>w(e(i)[0].name),["stop"]))},{default:g(()=>[f(ae,{size:"20"},{default:g(()=>[J(d(e(Fe)),1)]),_:1})]),_:1}),s("b",$n,d(e(i)[0].name),1),s("span",In,"("+d(Z(e(i)[0].size))+")",1)])])):(l(),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(F),onChange:K},null,40,hn),e(p)?(l(),u("p",yn,d(n.$t("components.detection_interface.only_one_video_allowed")),1)):y("",!0),e(D)?(l(),u("p",{key:1,class:X(["text-red text-sm",{"mt-2":e(p)}])},d(n.$t("components.detection_interface.video_required")),3)):y("",!0),e(b)?(l(),u("p",{key:2,class:X(["text-red text-sm",{"mt-2":e(p)||e(D)}])},d(n.$t("components.detection_interface.file_size_error")),3)):y("",!0)])]))],32),s("div",kn,[s("div",Cn,d(n.$t("components.detection_interface.interface_config")),1),e(S)&&Object.keys(e(S)).length?y("",!0):(l(),u("div",Sn,d(n.$t("components.detection_interface.no_interface_config")),1)),f(o,{config:e(S),"ui-schema":e(M),loading:e(R),"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"])]),f(m,{modelValue:e(V),"onUpdate:modelValue":t[5]||(t[5]=L=>fe(V)?V.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:z,controls:"",class:"w-full"},"Your browser does not support the video tag.",512)])]),_:1},8,["modelValue","title"])])}}}),Vn=ke(Dn,[["__scopeId","data-v-9c8effb8"]]),jn={key:0,class:"flex items-center justify-center w-full h-full"},Ln={key:1,class:"h-full w-full inline-size mb-safe"},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"},Tn={key:1},An={class:"options-segments flex items-center justify-between"},Nn={class:"flex flex-col items-center justify-center"},Qn={class:"options-segments-text mt-2"},Bn={key:1},Mn={key:2},Un={key:3},Jn={key:4},Rn={class:"w-full full-inner-height"},qn={class:"flex flex-col md:flex-row gap-2 h-full"},Hn={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"},Wn=["innerHTML"],Zn={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",It),se.registerLanguage("yaml",kt),se.registerLanguage("json",Ct),se.registerLanguage("python",St);const O=new lt,C=new Ie,T=mt(),i=Dt(),{mobileActive:x,smallMobileActive:p}=pt(),D=a(vt()),b=a(),$=a(!1),I=a([]),z=a(!1),F=a(i.params.scope),S=a(i.params.pluginname),h=a(),V=a([]),_=a({name:"settings",icon:ce,isInterface:!1}),E=a(!1),A=a(),M=a(),[G,R]=Vt(),w=H(()=>F.value?`${F.value}/${S.value}`:S.value);C.toggleQueryActivator("getPluginContractQuery",!1);const{data:j,isLoading:K}=C.getPluginQuery(w),{data:W,isLoading:Z}=C.getPluginConfigJsonQuery(w),{data:k,isLoading:q}=C.getPluginSchemaQuery(w),{data:n}=C.getPluginContractQuery(w),{data:t,isLoading:o}=C.getPluginReadmeQuery(w),{data:m,isLoading:L}=C.getPluginChangelogQuery(w),{mutateAsync:Ce,isPending:U}=C.actionButtonQuery(),{mutate:Xe,isPending:Ge}=C.patchPluginConfigQuery(),{mutate:Ke,isPending:We}=O.addCameraExtensionQuery(),{mutate:Ze,isPending:et}=O.removeCameraExtensionQuery(),Oe=H(()=>!!(K.value||Z.value||q.value||o.value||L.value)),pe=H(()=>!!(We.value||et.value)),le=H(()=>!!($.value||U.value||Ge.value)),ve=H(()=>{var r,c,N;return!!(k.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>"}});Y(()=>i.params.pluginname,()=>{S.value=i.params.pluginname},{deep:!0,immediate:!0}),Y(h,r=>{te(()=>z.value=!!r)}),Y(k,()=>{q.value?C.toggleQueryActivator("getPluginContractQuery",!1):C.toggleQueryActivator("getPluginContractQuery",!0)},{deep:!0,immediate:!0}),Y(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}),k.value&&k.value.schema&&Object.keys(k.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:Be,isInterface:!1}),!c&&!N&&(_.value={name:"cameras",icon:Be,isInterface:!1})),V.value=r,((ie=n.value)!=null&&ie.contract.extension||(re=n.value)!=null&&re.contract.supportAdditionalCameras)&&((ue=n.value)!=null&&ue.cameras.length)&&(I.value=(v=n.value)==null?void 0:v.cameras.filter(ee=>ee.extensions.plugins.includes(w.value)).map(ee=>ee.name))},{deep:!0,immediate:!0}),Y(E,r=>{r||(A.value=void 0,M.value=void 0)});const tt=async r=>{if(!k.value)return;$.value=!0;const c=ut(k.value.schema,r);Xe({pluginName:w.value,configData:c},{onSettled:()=>{$.value=!1}})},nt=async r=>{$.value=!0,await Ce({pluginName:w.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&&(M.value=r.payload,A.value=c,E.value=!0)},onSettled:()=>{$.value=!1}})},ot=async r=>{j.value&&(I.value.includes(r.name)?Ze({cameraname:r.name,pluginname:j.value.pluginName},{onSuccess:()=>{I.value=I.value.filter(c=>c!==r.name)}}):Ke({cameraname:r.name,pluginname:j.value.pluginName},{onSuccess:()=>{I.value=[...I.value,r.name]}}))};return dt(()=>{b.value=T.connectToNamespace("/plugins")}),ft(()=>{var r,c;(c=(r=b.value)==null?void 0:r.end)==null||c.call(r)}),(r,c)=>{var ie,re,ue;const N=we,ge=Vn,_e=mn,he=Ht,ye=ct,be=it,xe=rt;return l(),u("main",{class:X({"px-0":e(p)})},[e(Oe)?(l(),u("div",jn,[f(de,{color:"#df2a4c",indeterminate:""})])):(l(),u("div",Ln,[s("div",{class:X(["mb-3 flex w-full items-center",{"px-2":e(p)}]),style:{height:"30px"}},[s("h1",zn,d((ie=e(j))==null?void 0:ie.displayName),1)],2),f(e(G),null,{default:g(()=>[s("div",{class:"plugin-settings-box flex flex-col gap-2 h-full",style:Qe({width:e(ve)&&!e(x)?"40%":"100%"})},[s("div",En,[s("div",Fn,d(r.$t("views.plugin.plugin_settings")),1),e(j)?(l(),u("div",Tn,[s("div",An,[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(()=>[(l(!0),u(Pe,null,De(e(V),(v,ee)=>(l(),B(_t,{key:ee,value:v,disabled:e(Oe)||v.isInterface&&e(j).disabled,"min-width":"auto"},{default:g(()=>[s("div",Nn,[f(ae,{size:"20"},{default:g(()=>[J(d(v.icon),1)]),_:2},1024),s("span",Qn,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)?(l(),B(ht,{key:0,height:"2",color:"#df2a4c",indeterminate:"",style:{"margin-top":"-2px"}})):y("",!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(()=>[(l(!0),u(Pe,null,De(e(V),(v,ee)=>(l(),B($t,{key:ee,value:{name:v.name,icon:v.icon,isInterface:v.isInterface},disabled:v.isInterface&&e(j).disabled},{default:g(()=>{var Te;return[v.name==="settings"&&e(k)?(l(),B(N,{key:0,config:e(W)||{},"ui-schema":e(k),loading:e(le),onOnFormSubmit:tt,onOnSubmit:nt},null,8,["config","ui-schema","loading"])):y("",!0),v.name==="cameras"?(l(),u("div",Bn,[(l(!0),u(Pe,null,De((Te=e(n))==null?void 0:Te.cameras,Q=>{var Ae,Ne;return l(),u("div",{key:Q.name},[!((Ae=e(n))!=null&&Ae.contract.extension)&&!((Ne=e(n))!=null&&Ne.contract.supportAdditionalCameras)?(l(),B(qe,{key:0,"select-strategy":"classic",class:"py-0",disabled:e(pe)||e(le),"onClick:select":()=>r.$router.push(`/cameras/${Q.name}`)},{default:g(()=>[f(He,{value:Q.name,class:"px-2"},{append:g(()=>[f(me,{class:"ml-auto",size:"28",rounded:"",density:"compact",variant:"text",onClick:P(st=>h.value=Q.name,["stop"])},{default:g(()=>[f(ae,{size:"18"},{default:g(()=>[J(d(e(ce)),1)]),_:1})]),_:2},1032,["onClick"])]),default:g(()=>[J(d(Q.name)+" ",1)]),_:2},1032,["value"])]),_:2},1032,["disabled","onClick:select"])):(l(),B(qe,{key:1,"select-strategy":"classic",class:"py-0",disabled:e(pe)||e(le),"onUpdate:selected":()=>ot(Q)},{default:g(()=>[f(He,{class:"px-2",value:e(j).pluginName,active:e(I).includes(Q.name)},{prepend:g(()=>[f(bt,{start:""},{default:g(()=>[f(xt,{"model-value":e(I).includes(Q.name),color:"#df2a4c"},null,8,["model-value"])]),_:2},1024)]),append:g(()=>[f(me,{class:"ml-auto",size:"28",rounded:"",density:"compact",variant:"text",onClick:P(st=>h.value=Q.name,["stop"])},{default:g(()=>[f(ae,{size:"18"},{default:g(()=>[J(d(e(ce)),1)]),_:1})]),_:2},1032,["onClick"])]),default:g(()=>[J(d(Q.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))])):y("",!0),v.name==="motion_detection"?(l(),u("div",Mn,[f(ge,{"plugin-name":e(w)},null,8,["plugin-name"])])):y("",!0),v.name==="object_detection"?(l(),u("div",Un,[f(_e,{"plugin-name":e(w)},null,8,["plugin-name"])])):y("",!0),v.name==="audio_detection"?(l(),u("div",Jn,[f(he,{"plugin-name":e(w)},null,8,["plugin-name"])])):y("",!0)]}),_:2},1032,["value","disabled"]))),128))]),_:1},8,["modelValue"])])):(l(),u("div",On,[f(de,{color:"#df2a4c",indeterminate:""})]))])],4)]),_:1}),s("div",Rn,[s("div",qn,[s("div",{class:"w-full flex flex-col gap-2 h-full",style:Qe({width:e(ve)&&!e(x)?"60%":"100%"})},[s("div",Hn,[e(j)?(l(),B(ye,{key:1,ref:"pluginRef",plugin:e(j),"min-height":"175px",height:"100%",width:"100%","border-radius":"4px","show-toggle":"","show-settings":"","show-logo":"","show-plugin-status":"","show-logs":"","show-configs":"",truncate:!1,onIsLoading:c[2]||(c[2]=v=>$.value=v)},null,8,["plugin"])):(l(),u("div",Yn,[f(de,{color:"#df2a4c",indeterminate:""})]))]),e(ve)&&e(x)?(l(),B(e(R),{key:0})):y("",!0),s("div",Xn,[s("div",Gn,d(r.$t("views.plugin.readme")),1),e(o)?(l(),u("div",Kn,[f(de,{color:"#df2a4c",indeterminate:""})])):(l(),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,Wn))]),s("div",Zn,[s("div",eo,d(r.$t("views.plugin.changelog")),1),e(L)?(l(),u("div",to,[f(de,{color:"#df2a4c",indeterminate:""})])):(l(),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(x)?(l(),B(e(R),{key:0})):y("",!0)])])])),e(h)?(l(),u("div",{key:2,"data-ignore-id":e(D)},[f(be,{"camera-name":e(h),show:e(z),onClose:c[3]||(c[3]=v=>h.value=void 0)},null,8,["camera-name","show"])],8,oo)):y("",!0),(ue=(re=e(A))==null?void 0:re.schema)!=null&&ue.config?(l(),B(xe,{key:3,modelValue:e(E),"onUpdate:modelValue":c[4]||(c[4]=v=>fe(E)?E.value=v:null),"ui-schema":{schema:e(A).schema},"plugin-config":e(M)||{},"plugin-name":e(w)},null,8,["modelValue","ui-schema","plugin-config","plugin-name"])):y("",!0)],2)}}}),ts=ke(so,[["__scopeId","data-v-6dc083fb"]]);export{ts as default};
@@ -1 +1 @@
1
- .plugin-card[data-v-bfb0d158]{width:100%;max-height:125px;background:var(--background-inner-component-card);border-radius:4px;box-shadow:0 3px 1px -2px #0000000f,0 2px 2px #00000014,0 1px 5px #0000000d}.grid[data-v-6403aab6]{display:grid;width:100%}div[data-v-6403aab6] .v-skeleton-loader__image{height:175px}
1
+ .plugin-card[data-v-4994d393]{width:100%;max-height:125px;background:var(--background-inner-component-card);border-radius:4px;box-shadow:0 3px 1px -2px #0000000f,0 2px 2px #00000014,0 1px 5px #0000000d}.grid[data-v-6403aab6]{display:grid;width:100%}div[data-v-6403aab6] .v-skeleton-loader__image{height:175px}
@@ -0,0 +1 @@
1
+ import{f as P,d as C,z as D,w as F}from"./main-CltTNKYj.js";import{_ as z}from"./VPluginCard-23hHloPd.js";import{P as B}from"./plugins-BvEiuWHs.js";import{c as R,S as U,m as j,n as A,C as I,b as q,e as E,A as G}from"./vuetify-DYU2dOLI.js";import{F as M,r as g,e as s,f as a,M as l,R as h,j as m,T as f,u as e,i as L,V as N,X as k,N as $,Q as S,O,l as X,a3 as H,U as J,n as V,q as K,aa as W}from"./@vue-DMh6qW6s.js";import{a3 as Y}from"./@mdi-CmcijEFB.js";import"./vue-inline-svg-D1BV6A5r.js";import"./vue3-toastify-D8Ru9hkX.js";import"./vue-i18n-DqKZtX1N.js";import"./@intlify-Ck2ZoCVz.js";import"./axios-BI2i94Vb.js";import"./@tanstack-BvYNCsQh.js";import"./pinia-BQbsPkIS.js";import"./vue-router-Bje-Muh5.js";import"./@vueuse-D76s02Ot.js";import"./nprogress-DSyAi0LF.js";import"./@xterm-B4Ga69iL.js";import"./vee-validate-9vrYaQFq.js";import"./@vee-validate-BY5H7fGS.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-CQrF441D.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CVkp7hgG.js";import"./@popperjs-BQBsAJpH.js";import"./VConfigEditor.vue_vue_type_script_setup_true_lang-DE77uadd.js";import"./ace-builds-CigWTak4.js";import"./@vueform-B62o9zLe.js";import"./system-4fS8k88J.js";import"./VConsole-Bf-WItOk.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"},oe={key:0,class:"my-3"},se=M({__name:"VPluginSearch",setup(Q){const i=new B,{smallMobileActive:x}=P(),b=g({page:1,pageSize:-1}),v=g({}),c=g(""),{data:d,isLoading:r}=i.searchPluginsQuery(v,b),_=u=>{u.preventDefault(),v.value.pluginname=c.value??""};return(u,t)=>{var y,w;const n=z;return s(),a("div",null,[l(U,{class:"ml-auto",onSubmit:_},{default:h(()=>[m("label",Z,f(u.$t("components.form.label.name")),1),l(R,{modelValue:e(c),"onUpdate:modelValue":t[0]||(t[0]=o=>L(c)?c.value=o:null),placeholder:"camera-ui-","hide-details":"",clearable:"",solo:"",variant:"outlined",density:"compact","onClick:clear":_},null,8,["modelValue"])]),_:1}),m("div",ee,[m("h3",null,f(u.$t("components.plugin_search.plugins")),1),l(j,{size:"small",class:"ml-auto",color:"#df2a4c"},{default:h(()=>{var o,p;return[N(f((o=e(d))!=null&&o.result?(p=e(d))==null?void 0:p.result.length:0),1)]}),_:1})]),l(A,{style:{"border-color":"rgba(var(--color-rgb), 0.1)",opacity:"1"},class:"mt-3"}),l(I,{active:e(r),indeterminate:e(r),color:"#df2a4c",height:"2px"},null,8,["active","indeterminate"]),m("div",te,[!e(r)&&!((y=e(d))!=null&&y.result.length)?(s(),a("div",oe,f(u.$t("views.plugins.no_plugins")),1)):(w=e(d))!=null&&w.result?(s(),a("div",{key:1,class:"w-full overflow-scroll hide-scrollbar",style:k(e(x)?"height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 325px)":"height: 370px")},[(s(!0),a($,null,S(e(d).result,(o,p)=>(s(),O(n,{key:p,plugin:o,height:"175px","max-height":"140px",background:"var(--background-inner-component-card)",class:"my-2","show-installed-icon":"","show-install-button":""},null,8,["plugin"]))),128))],4)):X("",!0)])])}}}),le=C(se,[["__scopeId","data-v-4994d393"]]),ae={class:"h-full w-full inline-size mb-safe"},ie={class:"flex flex-row w-full items-center"},ne={class:"page-title"},re=M({__name:"Plugins",setup(Q){const{smallMobileActive:i}=P(),x=D(),b=new B,v=g(null),c=g(),d=g({page:1,pageSize:-1}),r=g(!1),{data:_,isLoading:u}=b.getPluginsQuery(d);return H(()=>{c.value=x.connectToNamespace("/plugins")}),J(()=>{var t,n;(n=(t=c.value)==null?void 0:t.end)==null||n.call(t)}),(t,n)=>{const y=le,w=F;return s(),a("main",{class:V({"px-0":e(i)})},[m("div",ae,[m("div",{class:V(["mb-3 flex w-full items-center",{"px-2":e(i)}]),style:{height:"30px"}},[m("div",ie,[m("h1",ne,f(t.$t(`views.${String(t.$route.name).toLowerCase()}.title`)),1),l(q,{class:"ml-auto",size:"40",rounded:"",density:"compact",variant:"flat",elevation:"1",onClick:n[0]||(n[0]=K(o=>r.value=!0,["prevent"]))},{default:h(()=>[l(E,{size:"20"},{default:h(()=>[N(f(e(Y)),1)]),_:1})]),_:1})])],2),l(W,{name:"fade",tag:"div"},{default:h(()=>{var o;return[e(u)?(s(),a("div",{key:0,class:"grid gap-2",style:k(`grid-template-columns: repeat(auto-fill, minmax(${e(i)?"100%":"450px"}, 1fr))`)},[(s(),a($,null,S(15,p=>l(G,{key:p,elevation:1,type:"image",class:"relative",style:{"border-radius":"8px",overflow:"hidden"},height:175})),64))],4)):(o=e(_))!=null&&o.result.length?(s(),a("div",{key:2,class:"grid gap-2",style:k(`grid-template-columns: repeat(auto-fill, minmax(${e(i)?"100%":"450px"}, 1fr))`)},[(s(!0),a($,null,S(e(_).result,(p,T)=>(s(),a("div",{key:T,class:"relative"},[l(z,{ref_for:!0,ref_key:"pluginRef",ref:v,plugin:p,height:"175px","max-height":"175px",width:"100%","min-width":e(i)?"100%":"450px","border-radius":e(i)?"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(),a("div",{key:1,class:V(["disabled-text",{"px-2":e(i)}])},f(t.$t("views.plugins.no_plugins")),3))]}),_:1}),l(w,{modelValue:e(r),"onUpdate:modelValue":n[1]||(n[1]=o=>L(r)?r.value=o:null),title:t.$t("components.dialog.title.search_plugin"),"hide-confirm-button":"",loading:e(u)},{content:h(()=>[l(y)]),_:1},8,["modelValue","title","loading"])])],2)}}}),Ee=C(re,[["__scopeId","data-v-6403aab6"]]);export{Ee as default};
@@ -1 +1 @@
1
- import{d as r}from"./main-g2kR7sEX.js";import{f as o,e as t}from"./@vue-DMh6qW6s.js";import"./vue-inline-svg-D1BV6A5r.js";import"./vue3-toastify-D8Ru9hkX.js";import"./vue-i18n-DqKZtX1N.js";import"./@intlify-Ck2ZoCVz.js";import"./axios--Jv2L996.js";import"./@tanstack-BvYNCsQh.js";import"./pinia-BQbsPkIS.js";import"./vue-router-Bje-Muh5.js";import"./@vueuse-D76s02Ot.js";import"./nprogress-DSyAi0LF.js";import"./@xterm-B4Ga69iL.js";import"./vuetify-DYU2dOLI.js";import"./@mdi-CmcijEFB.js";import"./vee-validate-9vrYaQFq.js";import"./@vee-validate-BY5H7fGS.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-CQrF441D.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CVkp7hgG.js";import"./@popperjs-BQBsAJpH.js";const i={};function m(p,e){return t(),o("div",null,"Test")}const G=r(i,[["render",m]]);export{G as default};
1
+ import{d as r}from"./main-CltTNKYj.js";import{f as o,e as t}from"./@vue-DMh6qW6s.js";import"./vue-inline-svg-D1BV6A5r.js";import"./vue3-toastify-D8Ru9hkX.js";import"./vue-i18n-DqKZtX1N.js";import"./@intlify-Ck2ZoCVz.js";import"./axios-BI2i94Vb.js";import"./@tanstack-BvYNCsQh.js";import"./pinia-BQbsPkIS.js";import"./vue-router-Bje-Muh5.js";import"./@vueuse-D76s02Ot.js";import"./nprogress-DSyAi0LF.js";import"./@xterm-B4Ga69iL.js";import"./vuetify-DYU2dOLI.js";import"./@mdi-CmcijEFB.js";import"./vee-validate-9vrYaQFq.js";import"./@vee-validate-BY5H7fGS.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-CQrF441D.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CVkp7hgG.js";import"./@popperjs-BQBsAJpH.js";const i={};function m(p,e){return t(),o("div",null,"Test")}const G=r(i,[["render",m]]);export{G as default};
@@ -1 +1 @@
1
- import{f as m}from"./main-g2kR7sEX.js";import{F as p,e as s,f as a,j as t,n as r,u as e,T as l}from"./@vue-DMh6qW6s.js";import"./vue-inline-svg-D1BV6A5r.js";import"./vue3-toastify-D8Ru9hkX.js";import"./vue-i18n-DqKZtX1N.js";import"./@intlify-Ck2ZoCVz.js";import"./axios--Jv2L996.js";import"./@tanstack-BvYNCsQh.js";import"./pinia-BQbsPkIS.js";import"./vue-router-Bje-Muh5.js";import"./@vueuse-D76s02Ot.js";import"./nprogress-DSyAi0LF.js";import"./@xterm-B4Ga69iL.js";import"./vuetify-DYU2dOLI.js";import"./@mdi-CmcijEFB.js";import"./vee-validate-9vrYaQFq.js";import"./@vee-validate-BY5H7fGS.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-CQrF441D.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CVkp7hgG.js";import"./@popperjs-BQBsAJpH.js";const n={class:"h-full w-full inline-size mb-safe"},c={class:"page-title"},H=p({__name:"Recordings",setup(f){const{smallMobileActive:o}=m();return(i,u)=>(s(),a("main",{class:r({"px-0":e(o)})},[t("div",n,[t("div",{class:r(["flex w-full items-center",{"px-2":e(o)}]),style:{height:"30px"}},[t("h1",c,l(i.$t(`views.${String(i.$route.name).toLowerCase()}.title`)),1)],2)])],2))}});export{H as default};
1
+ import{f as m}from"./main-CltTNKYj.js";import{F as p,e as s,f as a,j as t,n as r,u as e,T as l}from"./@vue-DMh6qW6s.js";import"./vue-inline-svg-D1BV6A5r.js";import"./vue3-toastify-D8Ru9hkX.js";import"./vue-i18n-DqKZtX1N.js";import"./@intlify-Ck2ZoCVz.js";import"./axios-BI2i94Vb.js";import"./@tanstack-BvYNCsQh.js";import"./pinia-BQbsPkIS.js";import"./vue-router-Bje-Muh5.js";import"./@vueuse-D76s02Ot.js";import"./nprogress-DSyAi0LF.js";import"./@xterm-B4Ga69iL.js";import"./vuetify-DYU2dOLI.js";import"./@mdi-CmcijEFB.js";import"./vee-validate-9vrYaQFq.js";import"./@vee-validate-BY5H7fGS.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-CQrF441D.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CVkp7hgG.js";import"./@popperjs-BQBsAJpH.js";const n={class:"h-full w-full inline-size mb-safe"},c={class:"page-title"},H=p({__name:"Recordings",setup(f){const{smallMobileActive:o}=m();return(i,u)=>(s(),a("main",{class:r({"px-0":e(o)})},[t("div",n,[t("div",{class:r(["flex w-full items-center",{"px-2":e(o)}]),style:{height:"30px"}},[t("h1",c,l(i.$t(`views.${String(i.$route.name).toLowerCase()}.title`)),1)],2)])],2))}});export{H as default};
@@ -0,0 +1 @@
1
+ import{F as q,t as Y,r as u,c as $,w as b,a3 as U,y as ee,J,e as p,f as h,j as i,N as L,Q as te,O as T,R as S,M as x,V as oe,T as C,u as o,l as V,X as N,W as K,b as ae,n as z,q as se,S as ne}from"./@vue-DMh6qW6s.js";import{f as P,S as O,T as ie,Q as re,d as Z,R as F,h as Q,V as j}from"./main-CltTNKYj.js";import{u as G}from"./vue-router-Bje-Muh5.js";import{o as le,g as ce,h as de}from"./@vueuse-D76s02Ot.js";import{e as ue,b as pe}from"./vuetify-DYU2dOLI.js";import{C as me,H as fe}from"./@mdi-CmcijEFB.js";import"./vue-inline-svg-D1BV6A5r.js";import"./vue3-toastify-D8Ru9hkX.js";import"./vue-i18n-DqKZtX1N.js";import"./@intlify-Ck2ZoCVz.js";import"./axios-BI2i94Vb.js";import"./@tanstack-BvYNCsQh.js";import"./pinia-BQbsPkIS.js";import"./vee-validate-9vrYaQFq.js";import"./@vee-validate-BY5H7fGS.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-CQrF441D.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CVkp7hgG.js";import"./@popperjs-BQBsAJpH.js";import"./nprogress-DSyAi0LF.js";import"./@xterm-B4Ga69iL.js";var B=(f=>(f[f.MAXWIDTH=280]="MAXWIDTH",f))(B||{});const ve={class:"flex flex-col w-full pb-safe"},_e={class:"flex flex-row navigation-text"},be={class:"ml-5"},ge={class:"navigation-title"},he={key:0},Se={key:0,class:"overlay"},xe=q({__name:"VSubNavigation",props:{routes:{},description:{type:Boolean,default:!1},state:{type:Boolean,default:!1}},emits:["inner-sidebar-state"],setup(f,{emit:y}){const{desktopActive:r,mobileActive:M}=P(),l=G(),k=ce(re),w=y,c=f,{routes:I,state:v,description:R}=Y(c),g=u(null),s=u(),m=u(),t=$(()=>{let e=`calc(${a.value}px + env(safe-area-inset-left, 0px))`;return m.value==="closed"&&s.value==="closed"&&(e=`calc(${a.value}px - env(safe-area-inset-left, 0px))`),e}),a=$(()=>{let e=0;switch(m.value){case"opened":e=O.MAXWIDTH;break;case"minified":e=O.MINWIDTH;break;case"closed":e=0;break}return!r.value&&!v.value&&(e-=B.MAXWIDTH),e});return le(g,e=>{if(r.value||s.value==="closed")return;e.target.closest(".no-outside")||(s.value="closed")}),k.on(e=>{e.sidebarState&&(m.value=e.sidebarState)}),b(r,e=>{s.value=e?"opened":"closed"}),b(v,e=>{s.value=e?r.value?"opened":"overlay":"closed"}),b(s,e=>{e&&(k.emit({subNavigationState:e}),w("inner-sidebar-state",e))}),U(()=>{var e;M.value||(e=l.meta)!=null&&e.ui.noMinifiedSidebar?m.value="closed":m.value="minified"}),ee(()=>{var d;s.value=r.value?"opened":"closed";const e=(d=l.name)==null?void 0:d.toString().toLowerCase(),_=document.getElementById(e);_&&setTimeout(()=>{_.scrollIntoView({behavior:"smooth"})},100)}),(e,_)=>{const d=J("router-link");return p(),h(L,null,[i("div",{ref_key:"innerSidebar",ref:g,class:"inner-sidebar-settings pb-safe",style:N({left:o(t),maxWidth:`${o(B).MAXWIDTH}px`,height:`calc(100dvh - ${o(ie).MINHEIGHT}px)`})},[i("div",ve,[(p(!0),h(L,null,te(o(I),(n,A)=>{var D;return p(),T(d,{id:(D=n.name)==null?void 0:D.toString().toLowerCase(),key:A,class:"navigation-inner",to:n.path,style:N({"border-bottom":A!==o(I).length-1?"1px solid var(--border)":void 0})},{default:S(()=>{var H,W,X;return[i("div",_e,[x(ue,{size:((H=n.meta)==null?void 0:H.navigation.iconSize)||"20",class:"navigation-icon"},{default:S(()=>{var E;return[oe(C((E=n.meta)==null?void 0:E.navigation.icon),1)]}),_:2},1032,["size"]),i("div",be,[i("b",ge,C(e.$t(`navigation.${(W=n.meta)==null?void 0:W.name}`)),1),o(R)?(p(),h("p",he,C(e.$t(`navigation_description.${(X=n.meta)==null?void 0:X.description}`)),1)):V("",!0)])])]}),_:2},1032,["id","to","style"])}),128))])],4),x(K,{name:"overlay-fade",mode:"in-out"},{default:S(()=>[o(s)==="overlay"?(p(),h("div",Se)):V("",!0)]),_:1})],64)}}}),ye=Z(xe,[["__scopeId","data-v-7a51011d"]]),ke={class:"flex flex-row",style:{padding:"0 !important"}},we={class:"flex flex-row items-center"},Ie=q({__name:"Settings",setup(f){const y=G(),{desktopActive:r,smallMobileActive:M}=P(),l=u(),k=u(null),w=u(null),c=u(!1),I=u(0),v=ae(F.find(t=>t.name==="Settings").children.filter(t=>Q(t))),R=$(()=>F.find(t=>t.name==="Settings").children.filter(t=>Q(t))),{isSwiping:g,direction:s}=de(w),m=$(()=>{let t="0px";switch(l.value){case"closed":case"overlay":t="0px";break;case"opened":t=`${B.MAXWIDTH}px`;break}return`padding-left: ${t}`});return b([g,s],()=>{if(g.value){const t=v.findIndex(a=>a.path===y.path.split("/settings/")[1]);switch(s.value){case"right":{const a=v[t-1];a&&j.push({path:a.path})}break;case"left":{const a=v[t+1];a&&j.push({path:a.path})}break}}}),b(l,()=>{c.value=l.value!=="closed"}),b(y,()=>{r.value||(c.value=!1)},{deep:!0}),(t,a)=>{var d;const e=ye,_=J("router-view");return p(),h("main",ke,[x(e,{description:"",state:o(c),routes:o(R),onInnerSidebarState:a[0]||(a[0]=n=>l.value=n)},null,8,["state","routes"]),i("div",{class:"router-container",style:N(`transition: 0.2s all ease-in-out;${o(m)};`)},[i("div",{ref_key:"routerContainer",ref:k,class:"router-container-inner h-full w-full flex flex-col"},[i("div",we,[o(r)?V("",!0):(p(),T(pe,{key:0,ref:"innerSidebarButton",density:"compact",icon:o(c)?o(me):o(fe),class:z(["no-outside",{"ml-2":o(M)}]),elevation:"0",style:{border:"1px solid rgba(var(--border-rgb), 0.75)"},onClick:a[1]||(a[1]=se(n=>c.value=!o(c),["prevent"]))},null,8,["icon","class"])),i("h1",{class:z(["page-title text-color",{"mx-3":o(l)!=="opened"}])},C(t.$t(`views.settings.title_${(d=t.$route.meta)==null?void 0:d.name}`)),3)]),i("div",{ref_key:"subviewContainer",ref:w},[x(_,null,{default:S(({Component:n})=>[x(K,{name:"fade",mode:"out-in"},{default:S(()=>[(p(),T(ne(n),{key:o(I),class:"mt-10 pb-5"}))]),_:2},1024)]),_:1})],512)],512)],4)])}}}),et=Z(Ie,[["__scopeId","data-v-602520f5"]]);export{et as default};
@@ -0,0 +1 @@
1
+ .inner-sidebar-settings[data-v-7a51011d]{position:fixed;width:100%;background:var(--background-inner-sidebar);transition:.1s all ease-in-out;left:-500px;border-right:1px solid var(--border);overflow-y:scroll;scrollbar-width:none;z-index:2}.inner-sidebar-settings[data-v-7a51011d]::-webkit-scrollbar{display:none}.bottombar[data-v-7a51011d]{width:100%;max-width:100%;overflow-x:scroll;overflow-y:hidden;scroll-behavior:smooth}.navigation-inner[data-v-7a51011d]{width:100%;height:120px;padding:20px;overflow-wrap:anywhere;transition:.2s all ease-in-out}.navigation-inner-bottombar[data-v-7a51011d]{width:100px;min-width:100px;max-width:100px;transition:.2s all ease-in-out}.navigation-inner-bottombar[data-v-7a51011d] .v-btn{border-radius:0 0 4px 4px/0px 0px 4px 4px!important}.navigation-icon[data-v-7a51011d]{color:var(--color);margin-top:2px;transition:.2s all ease-in-out}.navigation-bottombar-icon[data-v-7a51011d]{color:var(--color-disabled);transition:.2s all ease-in-out}.navigation-text[data-v-7a51011d]{color:var(--color-disabled);font-size:.8rem;transition:.2s all ease-in-out}.navigation-title[data-v-7a51011d]{font-size:.9rem;color:var(--color);transition:.2s all ease-in-out}.navigation-bottombar-title[data-v-7a51011d]{font-size:.7rem;color:var(--color);transition:.2s all ease-in-out}.navigation-inner[data-v-7a51011d]:hover,.router-link-active.navigation-inner[data-v-7a51011d]{background:rgba(var(--color-rgb),.03)}.router-link-active[data-v-7a51011d] .navigation-icon,.router-link-active[data-v-7a51011d] .navigation-bottombar-icon,.router-link-active[data-v-7a51011d] .navigation-title,.router-link-active[data-v-7a51011d] .navigation-bottombar-title{color:var(--color-primary)}.active-link[data-v-7a51011d]{width:100px;height:calc(100% - env(safe-area-inset-bottom,0px));background:var(--background-bottombar-active);position:absolute;left:0;top:0;transition:.1s all ease-in-out}.overlay[data-v-7a51011d]{position:fixed;z-index:1;background:rgba(var(--background-rgb),1)!important;opacity:.5!important;width:100%;height:100%}.router-container[data-v-602520f5]{height:100%;width:100%}.settings-inner[data-v-602520f5]{background:#fff}.router-container-inner[data-v-602520f5]{padding:1rem}@media screen and (max-width: 639px){.router-container-inner[data-v-602520f5]{padding-left:0;padding-right:0;padding-bottom:0}}