diff --git a/public/CHANGELOG.md b/public/CHANGELOG.md index 6a1ccb7a..6e4ec820 100644 --- a/public/CHANGELOG.md +++ b/public/CHANGELOG.md @@ -1,3 +1,8 @@ +# v4.0.40-beta (25.04.2024) +## Core +- loading of standard templates optimised +## Panel +- bug fix in case of maximize panels # v4.0.39-beta (24.04.2024) ## Panel Status - truncate long titles diff --git a/public/templates/templates.json b/public/templates/templates.json deleted file mode 100644 index 84c4e132..00000000 --- a/public/templates/templates.json +++ /dev/null @@ -1,15 +0,0 @@ -[ - "switch", - "light", - "dimmer", - "contact", - "blind", - "thermostat", - "temperatur", - "smokedetector", - "motiondetector", - "sonosplayer", - "proplanta", - "lightscene", - "chart" -] \ No newline at end of file diff --git a/src/components/PanelCard.vue b/src/components/PanelCard.vue index d24c4f96..250c9882 100644 --- a/src/components/PanelCard.vue +++ b/src/components/PanelCard.vue @@ -63,12 +63,14 @@ if(init) { opts.activeLevels = levelsActive(item.panel.main) + if(/=maximized$/.test(fhem.app.currentView)) opts.expanded = true } else { if(opts.expandable) opts.expanded = !opts.expanded if(opts.maximizable) { if(opts.expanded) { router.push({ name: 'devices', params: { view: 'panel=' + item.panel.name + '=maximized' }, query: router.currentRoute.value.query }) } else { + fhem.app.currentView = fhem.app.currentView.replace(/=maximized$/, '') router.back() } } diff --git a/src/components/SettingsPropsList.vue b/src/components/SettingsPropsList.vue index 39173a19..5419ecab 100644 --- a/src/components/SettingsPropsList.vue +++ b/src/components/SettingsPropsList.vue @@ -118,7 +118,8 @@ :disabled="templates.length === 0" density="compact" variant="outlined" - class="pt-3"> + class="pt-3" + @update:model-value="fhem.loadTemplates()"> { panelList: [], navigation: [], threads: [], - distTemplates: [], + distTemplates: [ + 'blind', + 'chart', + 'contact', + 'dimmer', + 'light', + 'lightscene', + 'motiondetector', + 'proplanta', + 'smokedetector', + 'sonosplayer', + 'switch', + 'temperatur', + 'thermostat' + ], noConfig: null, configLoaded: false, isReady: false, @@ -392,23 +406,28 @@ export const useFhemStore = defineStore('fhem', () => { return true } - //coreFunction load default all Templates - async function loadDefaultTemplates() { - let distTemplate + //coreFunction load default Templates if needed + async function loadTemplates() { + let templateList = [], + distTemplate, + threadId = thread() - app.distTemplates = await getJsonFile('./templates/templates.json') - app.distTemplates.sort((a, b) => (a > b) ? 1 : (b > a) ? -1 : 0) - - for(const template of app.distTemplates) { - if(app.config.templates.map((e) => e.name).indexOf(template) === -1) { - distTemplate = await getJsonFile('./templates/' + template + '.json') - if(distTemplate) { - distTemplate.dist = true - app.config.templates.push(distTemplate) - } + for(const panel of app.config.panels) { + if(panel.template && app.config.templates.map((e) => e.name).indexOf(panel.template) === -1) { + if(app.distTemplates.indexOf(panel.template) !== -1 && templateList.indexOf(panel.template) === -1) templateList.push(panel.template) } } + for(const template of templateList) { + distTemplate = await getJsonFile('./templates/' + template + '.json') + if(distTemplate) { + distTemplate.dist = true + app.config.templates.push(distTemplate) + } + } + + thread(threadId) + return true } @@ -974,7 +993,7 @@ export const useFhemStore = defineStore('fhem', () => { if(res && connect) res = await getToken() if(res && connect) res = openEventWatcher() if(res) res = await loadConfig() - if(res) res = await loadDefaultTemplates() + if(res) res = await loadTemplates() if(res) res = createPanelList() if(res) res = await initialLoad() if(res) res = createNavigation() @@ -1015,5 +1034,5 @@ export const useFhemStore = defineStore('fhem', () => { //FHEMApp entryPoint router.isReady().then(init()) - return { app, getEl, handleDefs, getIcon, replacer, createSession, request, thread, stringToJson, log, help, changeDarkMode, appUpdate } + return { app, getEl, handleDefs, getIcon, replacer, createSession, request, thread, stringToJson, log, help, changeDarkMode, appUpdate, loadTemplates } }) \ No newline at end of file diff --git a/www/fhemapp4/CHANGELOG.md b/www/fhemapp4/CHANGELOG.md index 6a1ccb7a..6e4ec820 100644 --- a/www/fhemapp4/CHANGELOG.md +++ b/www/fhemapp4/CHANGELOG.md @@ -1,3 +1,8 @@ +# v4.0.40-beta (25.04.2024) +## Core +- loading of standard templates optimised +## Panel +- bug fix in case of maximize panels # v4.0.39-beta (24.04.2024) ## Panel Status - truncate long titles diff --git a/www/fhemapp4/assets/DevicesView-a7d8a71d.js b/www/fhemapp4/assets/DevicesView-1c41c764.js similarity index 86% rename from www/fhemapp4/assets/DevicesView-a7d8a71d.js rename to www/fhemapp4/assets/DevicesView-1c41c764.js index 68e64b27..fed8759d 100644 --- a/www/fhemapp4/assets/DevicesView-a7d8a71d.js +++ b/www/fhemapp4/assets/DevicesView-1c41c764.js @@ -1 +1 @@ -import{u as f,c,r as p,o as n,a as u,w as i,b as d,d as h,F as v,e as w}from"./index-ae1cfcb8.js";import{_ as x}from"./PanelCard-bd815089.js";const V={__name:"DevicesView",setup(g){const s=f(),m=c(()=>{let e=[];if(s.app.panelMaximized)e.push(s.app.panelMaximized);else{for(const t of s.app.panelView)s.handleDefs(s.app.panelList[t].panel.show,["show"],[!0]).show&&e.push(s.app.panelList[t]);e.sort((t,o)=>a(t)>a(o)?1:a(o)>a(t)?-1:0)}return e}),l=c(()=>{let e={cols:12,sm:6,lg:4};return/=maximized$/.test(s.app.currentView)&&(e={cols:12}),e});function a(e){return s.handleDefs(e.panel.sortby,["sortby"],[null]).sortby||"999"}return(e,t)=>{const o=p("v-col"),_=p("v-row");return n(),u(_,{"no-gutters":""},{default:i(()=>[(n(!0),d(v,null,h(m.value,r=>(n(),u(o,{cols:l.value.cols,sm:l.value.sm,lg:l.value.lg,key:r.name,class:"pa-1"},{default:i(()=>[w(x,{panel:r},null,8,["panel"])]),_:2},1032,["cols","sm","lg"]))),128))]),_:1})}}};export{V as default}; +import{u as f,c,r as p,o as n,a as u,w as i,b as d,d as h,F as v,e as w}from"./index-e6e38008.js";import{_ as x}from"./PanelCard-ca7331d5.js";const V={__name:"DevicesView",setup(g){const s=f(),m=c(()=>{let e=[];if(s.app.panelMaximized)e.push(s.app.panelMaximized);else{for(const t of s.app.panelView)s.handleDefs(s.app.panelList[t].panel.show,["show"],[!0]).show&&e.push(s.app.panelList[t]);e.sort((t,o)=>a(t)>a(o)?1:a(o)>a(t)?-1:0)}return e}),l=c(()=>{let e={cols:12,sm:6,lg:4};return/=maximized$/.test(s.app.currentView)&&(e={cols:12}),e});function a(e){return s.handleDefs(e.panel.sortby,["sortby"],[null]).sortby||"999"}return(e,t)=>{const o=p("v-col"),_=p("v-row");return n(),u(_,{"no-gutters":""},{default:i(()=>[(n(!0),d(v,null,h(m.value,r=>(n(),u(o,{cols:l.value.cols,sm:l.value.sm,lg:l.value.lg,key:r.name,class:"pa-1"},{default:i(()=>[w(x,{panel:r},null,8,["panel"])]),_:2},1032,["cols","sm","lg"]))),128))]),_:1})}}};export{V as default}; diff --git a/www/fhemapp4/assets/InternalsView-a225fe16.js b/www/fhemapp4/assets/InternalsView-9e589dca.js similarity index 90% rename from www/fhemapp4/assets/InternalsView-a225fe16.js rename to www/fhemapp4/assets/InternalsView-9e589dca.js index 108330bd..b4beb2e6 100644 --- a/www/fhemapp4/assets/InternalsView-a225fe16.js +++ b/www/fhemapp4/assets/InternalsView-9e589dca.js @@ -1 +1 @@ -import{u as y,V as C}from"./index-ae372c55.js";import{f as k,u as B,r as e,o as N,a as S,w as o,e as t,j as p,t as i,x as $,h as r}from"./index-ae1cfcb8.js";const O={__name:"InternalsView",setup(I){const n=k(!0),a=B(),{toClipboard:u}=y();function d(){u(JSON.stringify(n.value?a.app.config:a.app,null," "))}return(l,c)=>{const m=e("v-toolbar-title"),v=e("v-toolbar"),f=e("v-switch"),_=e("v-col"),b=e("v-btn"),g=e("v-snackbar"),h=e("v-row"),w=e("v-divider"),V=e("v-card-text"),x=e("v-card");return N(),S(x,null,{default:o(()=>[t(v,null,{default:o(()=>[t(m,null,{default:o(()=>[p(i(l.$t("_app.internals.title")),1)]),_:1})]),_:1}),t(V,null,{default:o(()=>[t(h,{"no-gutters":"",class:"align-center pb-2"},{default:o(()=>[t(_,null,{default:o(()=>[t(f,{label:l.$t("_app.internals.onlyConfig"),modelValue:n.value,"onUpdate:modelValue":c[0]||(c[0]=s=>n.value=s),color:"blue",density:"comfortable","hide-details":""},null,8,["label","modelValue"])]),_:1}),t(_,{cols:"1",class:"text-right"},{default:o(()=>[t(g,{timeout:2e3,rounded:"pill"},{activator:o(({props:s})=>[t(b,$(s,{variant:"text",icon:"mdi-clipboard-multiple-outline",size:"small",onClick:d}),null,16)]),default:o(()=>[p(" "+i(l.$t("_app.messages.clipboard.text")),1)]),_:1})]),_:1})]),_:1}),t(w,{class:"pb-3"}),t(r(C),{data:n.value?r(a).app.config:r(a).app,deep:1,showLine:!1,showIcon:!0,showLength:!0},null,8,["data"])]),_:1})]),_:1})}}};export{O as default}; +import{u as y,V as C}from"./index-2d4633de.js";import{f as k,u as B,r as e,o as N,a as S,w as o,e as t,j as p,t as i,x as $,h as r}from"./index-e6e38008.js";const O={__name:"InternalsView",setup(I){const n=k(!0),a=B(),{toClipboard:u}=y();function d(){u(JSON.stringify(n.value?a.app.config:a.app,null," "))}return(l,c)=>{const m=e("v-toolbar-title"),v=e("v-toolbar"),f=e("v-switch"),_=e("v-col"),b=e("v-btn"),g=e("v-snackbar"),h=e("v-row"),w=e("v-divider"),V=e("v-card-text"),x=e("v-card");return N(),S(x,null,{default:o(()=>[t(v,null,{default:o(()=>[t(m,null,{default:o(()=>[p(i(l.$t("_app.internals.title")),1)]),_:1})]),_:1}),t(V,null,{default:o(()=>[t(h,{"no-gutters":"",class:"align-center pb-2"},{default:o(()=>[t(_,null,{default:o(()=>[t(f,{label:l.$t("_app.internals.onlyConfig"),modelValue:n.value,"onUpdate:modelValue":c[0]||(c[0]=s=>n.value=s),color:"blue",density:"comfortable","hide-details":""},null,8,["label","modelValue"])]),_:1}),t(_,{cols:"1",class:"text-right"},{default:o(()=>[t(g,{timeout:2e3,rounded:"pill"},{activator:o(({props:s})=>[t(b,$(s,{variant:"text",icon:"mdi-clipboard-multiple-outline",size:"small",onClick:d}),null,16)]),default:o(()=>[p(" "+i(l.$t("_app.messages.clipboard.text")),1)]),_:1})]),_:1})]),_:1}),t(w,{class:"pb-3"}),t(r(C),{data:n.value?r(a).app.config:r(a).app,deep:1,showLine:!1,showIcon:!0,showLength:!0},null,8,["data"])]),_:1})]),_:1})}}};export{O as default}; diff --git a/www/fhemapp4/assets/PanelCard-bd815089.js b/www/fhemapp4/assets/PanelCard-ca7331d5.js similarity index 83% rename from www/fhemapp4/assets/PanelCard-bd815089.js rename to www/fhemapp4/assets/PanelCard-ca7331d5.js index 71840c19..2417724c 100644 --- a/www/fhemapp4/assets/PanelCard-bd815089.js +++ b/www/fhemapp4/assets/PanelCard-ca7331d5.js @@ -1,4 +1,4 @@ -import{u as G,c as S,r as y,o as p,b as P,y as q,t as I,k as b,a as E,w as z,j as J,z as ge,F as Y,e as w,s as Q,f as N,q as ee,x as ae,d as _e,l as Ae,A as ie,B as le,C as Me,D as Ve,E as ke,G as xe,H as Le,m as Se,I as Pe,J as Te,h as B,K as je,L as Ie,i as Fe,p as Ne,M as Ue,N as He,O as qe,P as Be}from"./index-ae1cfcb8.js";const We={__name:"PanelMainInfo",props:{el:Object,iconmap:Array,devices:Object,height:String},setup(e){const t=e,n=G(),i=S(()=>n.handleDefs(t.el.text,["text","format"],["",!t.el.text2&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),s=S(()=>n.handleDefs(t.el.text2,["text","format"],["",t.el.text&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),o=S(()=>n.handleDefs(t.el.text3,["text","format"],["","text-caption"])),u=S(()=>{let a=n.handleDefs(t.el.icon,["icon","color","size"],["","","x-large"]);return a.icon&&(a.icon=n.getIcon(a.icon,t.iconmap)),a}),r=S(()=>{let a=n.handleDefs(t.el.status,["level","color","min","max","reverse","linear"],[0,"success",0,100,!1,!1]);return a.level=Math.round((a.level-a.min)/(a.max-a.min)*100),a.reverse=!!a.reverse,a});return(a,l)=>{const c=y("v-icon"),v=y("v-progress-circular"),x=y("v-progress-linear");return p(),P(Y,null,[e.el.text?(p(),P("div",{key:0,class:q(i.value.format)},I(i.value.text),3)):b("",!0),e.el.icon?(p(),E(c,{key:1,color:u.value.color,size:u.value.size},{default:z(()=>[J(I(u.value.icon),1)]),_:1},8,["color","size"])):b("",!0),e.el.status&&!r.value.linear?(p(),E(v,{key:2,width:"4",modelValue:r.value.level,"onUpdate:modelValue":l[0]||(l[0]=C=>r.value.level=C),color:r.value.color,reverse:r.value.reverse},null,8,["modelValue","color","reverse"])):b("",!0),e.el.status&&r.value.linear?(p(),E(x,{key:3,height:"7",rounded:"",modelValue:r.value.level,"onUpdate:modelValue":l[1]||(l[1]=C=>r.value.level=C),color:r.value.color,reverse:r.value.reverse},null,8,["modelValue","color","reverse"])):b("",!0),ge("div",{class:q(e.el.text2?s.value.format:o.value.format)},[e.el.text2?(p(),P("span",{key:0,class:q(s.value.format)},I(s.value.text),3)):b("",!0),e.el.text3?(p(),P("span",{key:1,class:q(o.value.format)},I(o.value.text),3)):b("",!0)],2)],64)}}},Ke={__name:"PanelMainBtn",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),i=S(()=>{let a=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["",!1,"","text"]);return a.icon&&(a.icon=n.getIcon(a.icon,t.iconmap)),a}),s=S(()=>{let a=n.handleDefs(t.el.status,["level","color","min","max","reverse"],[0,"success",0,100,!1]);return a.level=Math.round((a.level-a.min)/(a.max-a.min)*100),a.reverse=!!a.reverse,a}),o={timer:!1,long:!1};function u(a){let l=[],c=a.cmd,v;if(a.type==="cmd"){for(const x of t.devices)l=x.split(":"),v=RegExp(l[0],"g"),v.test(c)&&(c=c.replace(v,l[1]));n.request("text",c)}a.type==="route"&&Q.push({name:"devices",params:{view:a.cmd},query:Q.currentRoute.value.query}),a.type==="url"&&window.open(a.cmd,"_self")}function r(a){let l=n.handleDefs(t.el.click,["cmd","type"],["","cmd"],!1,null,!0),c=n.handleDefs(t.el.longClick,["cmd","type"],["","cmd"],!1,null,!0),v=n.handleDefs(t.el.longRelease,["cmd","type"],["","cmd"],!1,null,!0);a==="mouseStart"&&(o.timer=setTimeout(()=>{o.long=!0,c.cmd&&u(c)},1e3)),a==="mouseEnd"&&(o.long?v.cmd&&u(v):l.cmd&&u(l),clearTimeout(o.timer),o.long=!1)}return(a,l)=>{const c=y("v-progress-linear"),v=y("v-icon"),x=y("v-btn");return p(),P(Y,null,[e.el.status?(p(),E(c,{key:0,height:"4",modelValue:s.value.level,"onUpdate:modelValue":l[0]||(l[0]=C=>s.value.level=C),color:s.value.color,reverse:s.value.reverse},null,8,["modelValue","color","reverse"])):b("",!0),w(x,{icon:"",variant:i.value.variant,disabled:i.value.disabled,color:i.value.color,onMousedown:l[1]||(l[1]=C=>r("mouseStart")),onMouseup:l[2]||(l[2]=C=>r("mouseEnd")),class:"my-2"},{default:z(()=>[w(v,{size:"large"},{default:z(()=>[J(I(i.value.icon),1)]),_:1})]),_:1},8,["variant","disabled","color"])],64)}}},Je={class:"text-white"},Ge={__name:"PanelMainSlider",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),i=N();function s(a){i.value=a}const o=S(()=>{let a=n.handleDefs(t.el.slider,["cmd","current","color","min","max","steps","reverse","size","vertical"],["",0,"",0,100,10,!1,4,!1],!1,null,!0);return/%v/.test(a.current)&&(a.current=a.current.replace("%v",i.value)),s(a.current),a});let u=null;function r(a){let l=o.value.cmd,c=/\./.exec(o.value.steps),v=0,x=[];c&&(v=o.value.steps.slice(c.index).length-1),l=l.replace("%v",a.toFixed(v));for(const C of t.devices)x=C.split(":"),RegExp(x[0]).test(l)&&(l=l.replace(x[0],x[1]));clearTimeout(u),u=setTimeout(()=>{n.request("text",l)},500)}return(a,l)=>{const c=y("v-slider");return p(),E(c,{modelValue:i.value,"onUpdate:modelValue":[l[0]||(l[0]=v=>i.value=v),l[1]||(l[1]=v=>r(v))],min:o.value.min,max:o.value.max,step:o.value.steps,reverse:o.value.reverse,direction:o.value.vertical?"vertical":"horizontal","track-size":o.value.size,color:o.value.color,"hide-details":"","thumb-label":""},{"thumb-label":z(({modelValue:v})=>[ge("div",Je,I(v),1)]),_:1},8,["modelValue","min","max","step","reverse","direction","track-size","color"])}}},Ze={__name:"PanelMainImage",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),i=N(!1),s=S(()=>n.handleDefs(t.el.image,["source","height"],["",null]));return(o,u)=>{const r=y("v-skeleton-loader"),a=y("v-img");return p(),P(Y,null,[i.value?b("",!0):(p(),E(r,{key:0,type:"image"})),w(a,{src:s.value.source,height:s.value.height,onLoad:u[0]||(u[0]=l=>i.value=!0)},null,8,["src","height"])],64)}}},$e={__name:"PanelMainMenu",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),i=N([]);ee(t.el,r=>{o()});const s=S(()=>{let r=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["mdi-dots-vertical",!1,"","text"]);return r.icon&&(r.icon=n.getIcon(r.icon,t.iconmap)),r});async function o(){let r=n.handleDefs(t.el.menu,["name","cmd","convert"],["","",null],!0,","),a,l,c;for(const v of r){a=/^get/.test(v.name)?await u(v.name):v.name;for(const x of[",","|",` +import{u as $,c as S,r as y,o as p,b as P,y as q,t as I,k as b,a as E,w as z,j as J,z as ge,F as Y,e as w,s as Q,f as N,q as ee,x as ae,d as _e,l as Ae,A as ie,B as le,C as Me,D as Ve,E as ke,G as xe,H as Le,m as Se,I as Pe,J as Te,h as B,K as je,L as Ie,i as Fe,p as Ne,M as Ue,N as He,O as qe,P as Be}from"./index-e6e38008.js";const We={__name:"PanelMainInfo",props:{el:Object,iconmap:Array,devices:Object,height:String},setup(e){const t=e,n=$(),i=S(()=>n.handleDefs(t.el.text,["text","format"],["",!t.el.text2&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),s=S(()=>n.handleDefs(t.el.text2,["text","format"],["",t.el.text&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),o=S(()=>n.handleDefs(t.el.text3,["text","format"],["","text-caption"])),u=S(()=>{let a=n.handleDefs(t.el.icon,["icon","color","size"],["","","x-large"]);return a.icon&&(a.icon=n.getIcon(a.icon,t.iconmap)),a}),r=S(()=>{let a=n.handleDefs(t.el.status,["level","color","min","max","reverse","linear"],[0,"success",0,100,!1,!1]);return a.level=Math.round((a.level-a.min)/(a.max-a.min)*100),a.reverse=!!a.reverse,a});return(a,l)=>{const c=y("v-icon"),v=y("v-progress-circular"),x=y("v-progress-linear");return p(),P(Y,null,[e.el.text?(p(),P("div",{key:0,class:q(i.value.format)},I(i.value.text),3)):b("",!0),e.el.icon?(p(),E(c,{key:1,color:u.value.color,size:u.value.size},{default:z(()=>[J(I(u.value.icon),1)]),_:1},8,["color","size"])):b("",!0),e.el.status&&!r.value.linear?(p(),E(v,{key:2,width:"4",modelValue:r.value.level,"onUpdate:modelValue":l[0]||(l[0]=C=>r.value.level=C),color:r.value.color,reverse:r.value.reverse},null,8,["modelValue","color","reverse"])):b("",!0),e.el.status&&r.value.linear?(p(),E(x,{key:3,height:"7",rounded:"",modelValue:r.value.level,"onUpdate:modelValue":l[1]||(l[1]=C=>r.value.level=C),color:r.value.color,reverse:r.value.reverse},null,8,["modelValue","color","reverse"])):b("",!0),ge("div",{class:q(e.el.text2?s.value.format:o.value.format)},[e.el.text2?(p(),P("span",{key:0,class:q(s.value.format)},I(s.value.text),3)):b("",!0),e.el.text3?(p(),P("span",{key:1,class:q(o.value.format)},I(o.value.text),3)):b("",!0)],2)],64)}}},Ke={__name:"PanelMainBtn",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=$(),i=S(()=>{let a=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["",!1,"","text"]);return a.icon&&(a.icon=n.getIcon(a.icon,t.iconmap)),a}),s=S(()=>{let a=n.handleDefs(t.el.status,["level","color","min","max","reverse"],[0,"success",0,100,!1]);return a.level=Math.round((a.level-a.min)/(a.max-a.min)*100),a.reverse=!!a.reverse,a}),o={timer:!1,long:!1};function u(a){let l=[],c=a.cmd,v;if(a.type==="cmd"){for(const x of t.devices)l=x.split(":"),v=RegExp(l[0],"g"),v.test(c)&&(c=c.replace(v,l[1]));n.request("text",c)}a.type==="route"&&Q.push({name:"devices",params:{view:a.cmd},query:Q.currentRoute.value.query}),a.type==="url"&&window.open(a.cmd,"_self")}function r(a){let l=n.handleDefs(t.el.click,["cmd","type"],["","cmd"],!1,null,!0),c=n.handleDefs(t.el.longClick,["cmd","type"],["","cmd"],!1,null,!0),v=n.handleDefs(t.el.longRelease,["cmd","type"],["","cmd"],!1,null,!0);a==="mouseStart"&&(o.timer=setTimeout(()=>{o.long=!0,c.cmd&&u(c)},1e3)),a==="mouseEnd"&&(o.long?v.cmd&&u(v):l.cmd&&u(l),clearTimeout(o.timer),o.long=!1)}return(a,l)=>{const c=y("v-progress-linear"),v=y("v-icon"),x=y("v-btn");return p(),P(Y,null,[e.el.status?(p(),E(c,{key:0,height:"4",modelValue:s.value.level,"onUpdate:modelValue":l[0]||(l[0]=C=>s.value.level=C),color:s.value.color,reverse:s.value.reverse},null,8,["modelValue","color","reverse"])):b("",!0),w(x,{icon:"",variant:i.value.variant,disabled:i.value.disabled,color:i.value.color,onMousedown:l[1]||(l[1]=C=>r("mouseStart")),onMouseup:l[2]||(l[2]=C=>r("mouseEnd")),class:"my-2"},{default:z(()=>[w(v,{size:"large"},{default:z(()=>[J(I(i.value.icon),1)]),_:1})]),_:1},8,["variant","disabled","color"])],64)}}},Je={class:"text-white"},$e={__name:"PanelMainSlider",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=$(),i=N();function s(a){i.value=a}const o=S(()=>{let a=n.handleDefs(t.el.slider,["cmd","current","color","min","max","steps","reverse","size","vertical"],["",0,"",0,100,10,!1,4,!1],!1,null,!0);return/%v/.test(a.current)&&(a.current=a.current.replace("%v",i.value)),s(a.current),a});let u=null;function r(a){let l=o.value.cmd,c=/\./.exec(o.value.steps),v=0,x=[];c&&(v=o.value.steps.slice(c.index).length-1),l=l.replace("%v",a.toFixed(v));for(const C of t.devices)x=C.split(":"),RegExp(x[0]).test(l)&&(l=l.replace(x[0],x[1]));clearTimeout(u),u=setTimeout(()=>{n.request("text",l)},500)}return(a,l)=>{const c=y("v-slider");return p(),E(c,{modelValue:i.value,"onUpdate:modelValue":[l[0]||(l[0]=v=>i.value=v),l[1]||(l[1]=v=>r(v))],min:o.value.min,max:o.value.max,step:o.value.steps,reverse:o.value.reverse,direction:o.value.vertical?"vertical":"horizontal","track-size":o.value.size,color:o.value.color,"hide-details":"","thumb-label":""},{"thumb-label":z(({modelValue:v})=>[ge("div",Je,I(v),1)]),_:1},8,["modelValue","min","max","step","reverse","direction","track-size","color"])}}},Ge={__name:"PanelMainImage",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=$(),i=N(!1),s=S(()=>n.handleDefs(t.el.image,["source","height"],["",null]));return(o,u)=>{const r=y("v-skeleton-loader"),a=y("v-img");return p(),P(Y,null,[i.value?b("",!0):(p(),E(r,{key:0,type:"image"})),w(a,{src:s.value.source,height:s.value.height,onLoad:u[0]||(u[0]=l=>i.value=!0)},null,8,["src","height"])],64)}}},Ze={__name:"PanelMainMenu",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=$(),i=N([]);ee(t.el,r=>{o()});const s=S(()=>{let r=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["mdi-dots-vertical",!1,"","text"]);return r.icon&&(r.icon=n.getIcon(r.icon,t.iconmap)),r});async function o(){let r=n.handleDefs(t.el.menu,["name","cmd","convert"],["","",null],!0,","),a,l,c;for(const v of r){a=/^get/.test(v.name)?await u(v.name):v.name;for(const x of[",","|",` `])RegExp(x).test(a)&&(l=x);for(const x of a.split(l))x&&(c=x,/%v/.test(v.cmd)&&v.convert==="regExp"&&(c=RegExp(x.replace(/[^a-z,^A-Z]/g,"."))),i.value.push({name:x,cmd:v.cmd.replace(/%v/g,c)}))}}async function u(r){let a=[];for(const l of t.devices)a=l.split(":"),RegExp(a[0]).test(r)&&(r=r.replace(a[0],a[1]));return n.request("text",r)}return o(),(r,a)=>{const l=y("v-icon"),c=y("v-btn"),v=y("v-list-item-title"),x=y("v-list-item"),C=y("v-list"),g=y("v-menu");return p(),E(g,null,{activator:z(({props:_})=>[w(c,ae(_,{icon:"",variant:s.value.variant,disabled:s.value.disabled||i.value.length<1,color:s.value.color,class:"my-2"}),{default:z(()=>[w(l,{size:"large"},{default:z(()=>[J(I(s.value.icon),1)]),_:1})]),_:2},1040,["variant","disabled","color"])]),default:z(()=>[w(C,null,{default:z(()=>[(p(!0),P(Y,null,_e(i.value,(_,h)=>(p(),E(x,{key:h,value:h,onClick:f=>u(_.cmd)},{default:z(()=>[w(v,null,{default:z(()=>[J(I(_.name),1)]),_:2},1024)]),_:2},1032,["value","onClick"]))),128))]),_:1})]),_:1})}}};var ve=null;function Ye(e){return ve||(ve=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),ve(e)}var fe=null;function Xe(e){fe||(fe=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),fe(e)}function Qe(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}function oe(e,t){t===void 0&&(t={});var n=document.createElement(e);return Object.keys(t).forEach(function(i){n[i]=t[i]}),n}function Oe(e,t,n){var i=window.getComputedStyle(e,n||null)||{display:"none"};return i[t]}function pe(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if(Oe(t,"display")==="none")return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var et='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',he=0,ue=null;function tt(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=rt.bind(e));var n=e.__resize_listeners__;if(!n){if(e.__resize_listeners__=[],window.ResizeObserver){var i=e.offsetWidth,s=e.offsetHeight,o=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===i&&e.offsetHeight===s)||ce(e)}),u=pe(e),r=u.detached,a=u.rendered;e.__resize_observer_triggered__=r===!1&&a===!1,e.__resize_observer__=o,o.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){ce(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(he||(ue=Qe(et)),it(e),e.__resize_rendered__=pe(e).rendered,window.MutationObserver){var l=new MutationObserver(e.__resize_mutation_handler__);l.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=l}}e.__resize_listeners__.push(t),he++}function nt(e,t){var n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener){e.detachEvent("onresize",e.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);return}e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",ye),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--he&&ue&&ue.parentNode.removeChild(ue)}}function at(e){var t=e.__resize_last__,n=t.width,i=t.height,s=e.offsetWidth,o=e.offsetHeight;return s!==n||o!==i?{width:s,height:o}:null}function rt(){var e=pe(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(be(this),this.addEventListener("scroll",ye,!0)),this.__resize_rendered__=t,ce(this))}function ye(){var e=this;be(this),this.__resize_raf__&&Xe(this.__resize_raf__),this.__resize_raf__=Ye(function(){var t=at(e);t&&(e.__resize_last__=t,ce(e))})}function ce(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(t){t.call(e,e)})}function it(e){var t=Oe(e,"position");(!t||t==="static")&&(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var n=oe("div",{className:"resize-triggers"}),i=oe("div",{className:"resize-expand-trigger"}),s=oe("div"),o=oe("div",{className:"resize-contract-trigger"});i.appendChild(s),n.appendChild(i),n.appendChild(o),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:i,expandChild:s,contract:o},be(e),e.addEventListener("scroll",ye,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function be(e){var t=e.__resize_triggers__,n=t.expand,i=t.expandChild,s=t.contract,o=s.scrollWidth,u=s.scrollHeight,r=n.offsetWidth,a=n.offsetHeight,l=n.scrollWidth,c=n.scrollHeight;s.scrollLeft=o,s.scrollTop=u,i.style.width=r+1+"px",i.style.height=a+1+"px",n.scrollLeft=l,n.scrollTop=c}var K=function(){return K=Object.assign||function(e){for(var t,n=1,i=arguments.length;n"u"||typeof customElements>"u")return te=!1;try{new Function("tag",`class EChartsElement extends HTMLElement { __dispose = null; @@ -14,5 +14,5 @@ import{u as G,c as S,r as y,o as p,b as P,y as q,t as I,k as b,a as E,w as z,j a if (customElements.get(tag) == null) { customElements.define(tag, EChartsElement); } -`)(Re)}catch{return te=!1}return te=!0}(),mt="ecTheme",_t="ecInitOptions",pt="ecUpdateOptions",ht=Ae({name:"echarts",props:K(K({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},st),vt),emits:{},inheritAttrs:!1,setup:function(e,t){var n=t.attrs,i=ie(),s=ie(),o=ie(),u=ie(),r=le(mt,null),a=le(_t,null),l=le(pt,null),c=Me(e),v=c.autoresize,x=c.manualUpdate,C=c.loading,g=c.loadingOptions,_=S(function(){return u.value||e.option||null}),h=S(function(){return e.theme||se(r,{})}),f=S(function(){return e.initOptions||se(a,{})}),A=S(function(){return e.updateOptions||se(l,{})}),m=S(function(){return function(L){var R={};for(var j in L)ct(j)||(R[j]=L[j]);return R}(n)}),V=Ve().proxy.$listeners;function k(L){if(s.value){var R=o.value=Pe(s.value,h.value,f.value);e.group&&(R.group=e.group);var j=V;j||(j={},Object.keys(n).filter(function(T){return T.indexOf("on")===0&&T.length>2}).forEach(function(T){var M=T.charAt(2).toLowerCase()+T.slice(3);M.substring(M.length-4)==="Once"&&(M="~".concat(M.substring(0,M.length-4))),j[M]=n[T]})),Object.keys(j).forEach(function(T){var M=j[T];if(M){var U=T.toLowerCase();U.charAt(0)==="~"&&(U=U.substring(1),M.__once__=!0);var F=R;if(U.indexOf("zr:")===0&&(F=R.getZr(),U=U.substring(3)),M.__once__){delete M.__once__;var X=M;M=function(){for(var Z=[],W=0;W(C(),"height: "+(/=maximized$/.test(n.app.currentView)?window.innerHeight-250+"px":t.height)));function c(g){return o.d(g,{dateStyle:s.value?"short":"long"})}function v(g,_){let h;return r.value.from&&_&&(h=r.value.from),r.value.to&&!_&&(h=r.value.to),!h&&!isNaN(g)&&(h=(f=>new Date(f.setDate(f.getDate()+(Number(g)||0))))(new Date)),h||(h=new Date(/.*T.*/.test(g)?g:g+"T00:00:00")),!r.value.from&&_&&(r.value.from=h),!r.value.to&&!_&&(r.value.to=h),h=new Date(h.getTime()-h.getTimezoneOffset()*60*1e3),h.toISOString().split("T")[0]}async function x(){let g=n.handleDefs(t.el.serie,["data","name","digits","suffix","type"],[null,"",0,"","line"],!0),_,h,f=[],A,m,V,k,O,d=[];if(g.length>0)for(const D of g){if(/^get.*/.test(D.data)){O="time",_=D.data.split(" ");for(const L of t.devices)L.split(":")[0]===_[1]&&(_[1]=L.split(":")[1]);if(_[4]=v(_[4],!0),_[5]=v(_[5],!1),h=await n.request("text",_.join(" ")),k=[],f=h.split(` -`),f.length>0)for(const L of f)A=L.split(" "),A.length>1&&(m=new Date(A[0].replace("_","T")),V=parseFloat(A[1]).toFixed(D.digits),k.push([m,V]))}else/^\[.*\]/.test(D.data)?k=n.stringToJson(D.data):k=[n.replacer("%n("+D.digits+")",D.data,!0)];d.push({xAxisType:O,type:D.type,name:D.name,digits:D.digits,suffix:D.suffix,data:k})}return d}async function C(){let g={tooltip:{trigger:"axis"},legend:{data:[],bottom:10},backgroundColor:"rgba(255, 255, 255, 0)",grid:{top:30,bottom:60,left:60,right:60},animationDuration:300,series:[],yAxis:[],xAxis:{}},_=JSON.parse(JSON.stringify(n.getEl(t.el,["options"])||{})),h=JSON.parse(JSON.stringify(n.getEl(t.el,["options2"])||{})),f=Object.assign(g,/=maximized$/.test(n.app.currentView)&&Object.keys(h).length>0?h:_),A;r.value.fromMenu=!1,r.value.toMenu=!1,r.value.loaded=!1,a=await x();for(const[m,V]of Object.entries(a))A={formatter:k=>k.toLocaleString(o.locale.value,{minimumFractionDigits:V.digits,maximumFractionDigits:V.digits})+V.suffix},f.series[m]||(f.series[m]={}),f.yAxis[m]||(f.yAxis[m]={}),f.legend.data||(f.legend.data=[]),f.xAxis.type||(f.xAxis.type=V.xAxisType),f.yAxis[m].type||(f.yAxis[m].type="value"),f.yAxis[m].axisLabel||(f.yAxis[m].axisLabel={}),f.yAxis[m].axisLabel.formatter||(f.yAxis[m].axisLabel.formatter=A.formatter),f.legend.data[m]||(f.legend.data[m]=V.name),f.series[m].name||(f.series[m].name=V.name),f.series[m].type||(f.series[m].type=V.type),f.series[m].data||(f.series[m].data=V.data),f.series[m].detail||(f.series[m].detail={}),f.series[m].detail.formatter||(f.series[m].detail.formatter=A.formatter),f.series[m].tooltip||(f.series[m].tooltip={}),f.series[m].tooltip.valueFormatter||(f.series[m].tooltip.valueFormatter=A.formatter);n.log(7,"Chartdata chart.loaded.",f),u.value=Object.assign({},f),r.value.loaded=!0}return(g,_)=>{const h=y("v-btn"),f=y("v-date-picker"),A=y("v-locale-provider"),m=y("v-menu"),V=y("v-skeleton-loader");return p(),P(Y,null,[/=maximized$/.test(B(n).app.currentView)?(p(),P("div",gt,[w(m,{modelValue:r.value.fromMenu,"onUpdate:modelValue":_[2]||(_[2]=k=>r.value.fromMenu=k),"close-on-content-click":!1},{activator:z(({props:k})=>[w(h,ae(k,{variant:"outlined","append-icon":"mdi-calendar",class:"mr-2"}),{default:z(()=>[J(I(c(r.value.from)),1)]),_:2},1040)]),default:z(()=>[w(A,{locale:B(o).locale.value},{default:z(()=>[w(f,{modelValue:r.value.from,"onUpdate:modelValue":[_[0]||(_[0]=k=>r.value.from=k),_[1]||(_[1]=k=>C())],color:"secondary"},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1},8,["modelValue"]),J(" - "),w(m,{modelValue:r.value.toMenu,"onUpdate:modelValue":_[5]||(_[5]=k=>r.value.toMenu=k),"close-on-content-click":!1},{activator:z(({props:k})=>[w(h,ae(k,{variant:"outlined","append-icon":"mdi-calendar",class:"ml-2"}),{default:z(()=>[J(I(c(r.value.to)),1)]),_:2},1040)]),default:z(()=>[w(A,{locale:B(o).locale.value},{default:z(()=>[w(f,{modelValue:r.value.to,"onUpdate:modelValue":[_[3]||(_[3]=k=>r.value.to=k),_[4]||(_[4]=k=>C())],color:"secondary"},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1},8,["modelValue"])])):b("",!0),ge("div",{style:Ue(l.value)},[r.value.loaded?b("",!0):(p(),E(V,{key:0,type:"text, image, text"})),r.value.loaded?(p(),E(B(ht),{key:1,option:u.value,theme:B(i).global.name.value==="dark"?"dark":"light",autoresize:""},null,8,["option","theme"])):b("",!0)],4)],64)}}},yt=180/Math.PI,Ee=e=>{const t=e%360;return t<0?360+t:t},bt=({x:e,y:t},n)=>{const i=n.left+n.width/2,s=n.top+n.height/2;return Math.atan2(t-s,e-i)*yt},me=()=>{};class wt{constructor(t,n){this.active=!1,this.element=t,this.element.style.willChange="transform",this.initOptions(n),this.updateCSS(),this.bindHandlers(),this.addListeners()}get angle(){return this._angle}set angle(t){this._angle!==t&&(this._angle=Ee(t),this.updateCSS())}initOptions(t){t=t||{},this.onRotate=t.onRotate||me,this.onDragStart=t.onDragStart||me,this.onDragStop=t.onDragStop||me,this._angle=t.angle||0}bindHandlers(){this.onRotationStart=this.onRotationStart.bind(this),this.onRotated=this.onRotated.bind(this),this.onRotationStop=this.onRotationStop.bind(this)}addListeners(){this.element.addEventListener("touchstart",this.onRotationStart,{passive:!0}),document.addEventListener("touchmove",this.onRotated,{passive:!1}),document.addEventListener("touchend",this.onRotationStop,{passive:!0}),document.addEventListener("touchcancel",this.onRotationStop,{passive:!0}),this.element.addEventListener("mousedown",this.onRotationStart,{passive:!0}),document.addEventListener("mousemove",this.onRotated,{passive:!1}),document.addEventListener("mouseup",this.onRotationStop,{passive:!0}),document.addEventListener("mouseleave",this.onRotationStop,{passive:!1})}removeListeners(){this.element.removeEventListener("touchstart",this.onRotationStart),document.removeEventListener("touchmove",this.onRotated),document.removeEventListener("touchend",this.onRotationStop),document.removeEventListener("touchcancel",this.onRotationStop),this.element.removeEventListener("mousedown",this.onRotationStart),document.removeEventListener("mousemove",this.onRotated),document.removeEventListener("mouseup",this.onRotationStop),document.removeEventListener("mouseleave",this.onRotationStop)}destroy(){this.onRotationStop(),this.removeListeners()}onRotationStart(t){(t.type==="touchstart"||t.button===0)&&(this.active=!0,this.onDragStart(t),this.setAngleFromEvent(t))}onRotationStop(){this.active&&(this.active=!1,this.onDragStop()),this.active=!1}onRotated(t){this.active&&(t.preventDefault(),this.setAngleFromEvent(t))}setAngleFromEvent(t){const n=t.targetTouches?t.targetTouches[0]:t,i=bt({x:n.clientX,y:n.clientY},this.element.getBoundingClientRect());this._angle=Ee(i+90),this.updateCSS(),this.onRotate(this._angle)}updateCSS(){this.element.style.transform="rotate("+this._angle+"deg)"}}const zt=["red","yellow","green","cyan","blue","magenta","red"],De={ArrowUp:(e,t)=>e+t,ArrowRight:(e,t)=>e+t,ArrowDown:(e,t)=>e-t,ArrowLeft:(e,t)=>e-t,PageUp:(e,t)=>e+t*10,PageDown:(e,t)=>e-t*10,Home:()=>0,End:()=>359},de={name:"ColorPicker",emits:["select","input","change"],props:{hue:{default:0},saturation:{default:100},luminosity:{default:50},alpha:{default:1},step:{default:1},mouseScroll:{default:!1},variant:{default:"collapsible"},disabled:{default:!1},initiallyCollapsed:{default:!1},ariaLabel:{default:"color picker"},ariaRoledescription:{default:"radial slider"},ariaValuetext:{default:""},ariaLabelColorWell:{default:"color well"}},setup(e,{emit:t}){const n=N(null),i=N(null);let s=null;const o=e.hue+"deg",u=N(e.hue),r=N(!e.initiallyCollapsed),a=N(!e.initiallyCollapsed),l=N(!1),c=N(!1),v=N(!1),x=S(()=>`hsla(${u.value}, ${e.saturation}%, ${e.luminosity}%, ${e.alpha})`),C=S(()=>zt[Math.round(u.value/60)]);return ee(()=>e.hue,m=>{u.value=m,s.angle=m}),xe(()=>{s=new wt(i.value,{angle:u.value,onRotate(m){u.value=m,t("input",u.value)},onDragStart(){v.value=!0},onDragStop(){v.value=!1,t("change",u.value)}})}),Le(()=>{s.destroy(),s=null}),{rcp:s,el:n,rotator:i,initialAngle:o,angle:u,isPaletteIn:r,isKnobIn:a,isDragging:v,isRippling:c,isPressed:l,color:x,valuetext:C,onKeyDown:m=>{e.disabled||l.value||!a.value||!(m.key in De)||(m.preventDefault(),s.angle=De[m.key](s.angle,e.step),u.value=s.angle,t("input",u.value),t("change",u.value))},onScroll:m=>{l.value||!a.value||(m.preventDefault(),m.deltaY>0?s.angle+=e.step:s.angle-=e.step,u.value=s.angle,t("input",u.value),t("change",u.value))},selectColor:()=>{l.value=!0,r.value&&a.value?(t("select",u.value),c.value=!0):r.value=!0},togglePicker:()=>{e.variant!=="persistent"&&(a.value?a.value=!1:(a.value=!0,r.value=!0)),c.value=!1,l.value=!1},hidePalette:()=>{a.value||(r.value=!1)}}}};function kt(e,t,n,i,s,o){return p(),E("div",{ref:"el",role:"slider","aria-roledescription":n.ariaRoledescription,"aria-label":n.ariaLabel,"aria-expanded":i.isPaletteIn,"aria-valuemin":"0","aria-valuemax":"359","aria-valuenow":i.angle,"aria-valuetext":n.ariaValuetext||i.valuetext,"aria-disabled":n.disabled,class:["rcp",{dragging:i.isDragging,disabled:n.disabled}],tabindex:n.disabled?-1:0,style:{"--rcp-initial-angle":i.initialAngle},onKeyup:t[4]||(t[4]=qe((...u)=>i.selectColor&&i.selectColor(...u),["enter"])),onKeydown:t[5]||(t[5]=(...u)=>i.onKeyDown&&i.onKeyDown(...u))},[w("div",{class:["rcp__palette",i.isPaletteIn?"in":"out"]},null,2),w("div",ae({class:"rcp__rotator",style:{"pointer-events":n.disabled||i.isPressed||!i.isKnobIn?"none":null}},He(n.mouseScroll?{wheel:i.onScroll}:{}),{ref:"rotator"}),[w("div",{class:["rcp__knob",i.isKnobIn?"in":"out"],onTransitionend:t[1]||(t[1]=(...u)=>i.hidePalette&&i.hidePalette(...u))},null,34)],16),w("div",{class:["rcp__ripple",{rippling:i.isRippling}],style:{borderColor:i.color}},null,6),w("button",{type:"button",class:["rcp__well",{pressed:i.isPressed}],"aria-label":n.ariaLabelColorWell,disabled:n.disabled,tabindex:n.disabled?-1:0,style:{backgroundColor:i.color},onAnimationend:t[2]||(t[2]=(...u)=>i.togglePicker&&i.togglePicker(...u)),onClick:t[3]||(t[3]=(...u)=>i.selectColor&&i.selectColor(...u))},null,46,["aria-label","disabled","tabindex"])],46,["aria-roledescription","aria-label","aria-expanded","aria-valuenow","aria-valuetext","aria-disabled","tabindex"])}de.render=kt;de.install=function(e){e.component("ColorPicker",de)};const St={class:"mt-4 mb-2"},Ct={__name:"PanelMainColorpicker",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),i=S(()=>n.handleDefs(t.el.picker,["cmd","current"],["",!1]));function s(r){let a=o(r,50,100),l=i.value.cmd,c=[];l=l.replace("%v",a);for(const v of t.devices)c=v.split(":"),RegExp(c[0]).test(l)&&(l=l.replace(c[0],c[1]));n.request("text",l)}function o(r,a,l){a/=100;const c=l*Math.min(a,1-a)/100,v=x=>{const C=(x+r/30)%12,g=a-c*Math.max(Math.min(C-3,9-C,1),-1);return Math.round(255*g).toString(16).padStart(2,"0")};return`${v(0)}${v(8)}${v(4)}`}function u(r){r.split(" ").length>1&&(r=r.split(" ").slice(-1)[0]),r=r.replace(/^#/,"");let a=parseInt(r,16),l=a>>16&255,c=a>>8&255,v=a&255;l/=255,c/=255,v/=255;let x=Math.max(l,c,v),C=Math.min(l,c,v),g=x-C,_=(x+C)/2,h=0,f=0;return g!==0&&(x===l?h=((c-v)/g+(c(p(),P("div",St,[w(B(de),ae(u(i.value.current),{variant:"persistent",onChange:a[0]||(a[0]=l=>s(l))}),null,16)]))}},Et={__name:"PanelMain",props:{main:Object,levels:Array,iconmap:Object,devices:Object},setup(e){const t=G();function n(r,a){return t.handleDefs(r[a].size,["size"],[!1]).size}function i(r){let a="";return["info"].indexOf(r)!==-1&&(a="mx-2"),a}function s(r,a){return r[a]?t.handleDefs(r[a].divider,["show"],[!1]).show:!1}function o(r){return r.level?t.handleDefs(r.level.height,["height"],["64px"]).height:"64px"}function u(r){if(r==="info")return We;if(r==="btn")return Ke;if(r==="slider")return Ge;if(r==="image")return Ze;if(r==="menu")return $e;if(r==="chart")return xt;if(r==="colorpicker")return Ct}return(r,a)=>{const l=y("v-sheet"),c=y("v-col"),v=y("v-divider"),x=y("v-row"),C=y("v-expand-transition");return p(!0),P(Y,null,_e(e.main,(g,_)=>(p(),P("div",{key:_},[w(C,null,{default:z(()=>[e.levels.indexOf(_)!==-1?(p(),E(x,{key:0,"no-gutters":"",class:"text-center align-center"},{default:z(()=>[w(l,{height:o(g,"level")},null,8,["height"]),(p(),P(Y,null,_e(["left1","left2","mid","right1","right2"],h=>(p(),P(Y,{key:h},[g.level[h]?(p(),E(c,{key:0,cols:n(g,h),class:q(i(g.level[h]))},{default:z(()=>[(p(),E(Be(u(g.level[h])),{el:g[h],iconmap:e.iconmap,devices:e.devices,height:o(g,"level")},null,8,["el","iconmap","devices","height"]))]),_:2},1032,["cols","class"])):b("",!0),s(g,h)?(p(),E(v,{key:1,vertical:""})):b("",!0)],64))),64)),s(g,"level")?(p(),E(v,{key:0})):b("",!0)]),_:2},1024)):b("",!0)]),_:2},1024)]))),128)}}},Dt={key:1,class:"mx-2"},Ot={__name:"PanelCard",props:{panel:Object},setup(e){const t=e,n=G();let i=n.thread();xe(()=>n.thread(i));function s(O){let d=n.handleDefs(t.panel.status[O],["level","color","min","max","reverse"],[0,"success",0,100,!1]);return d.level=Math.round((d.level-d.min)/(d.max-d.min)*100),d}const o=S(()=>s("bar")),u=S(()=>s("bar2")),r=S(()=>n.handleDefs(t.panel.status.imageUrl,["url"],[""])),a=S(()=>n.handleDefs(t.panel.panel.sortby,["sortby"],[null])),l=S(()=>n.handleDefs(t.panel.status.title,["title"],[""])),c=N(n.handleDefs(t.panel.panel.expandable,["expandable","expanded","maximizable"],[!1,!1,!1]));ee(t.panel.main,O=>{let d=v(O);c.value.activeLevels.join("-")!==d.join("-")&&(c.value.activeLevels=d,x(!0))});function v(O){let d=[];for(const[D,L]of Object.entries(O))n.handleDefs(L.level.show,["show"],[!0]).show&&d.push(Number(D));return d}function x(O){let d=c.value,D;O?d.activeLevels=v(t.panel.main):(d.expandable&&(d.expanded=!d.expanded),d.maximizable&&(d.expanded?Q.push({name:"devices",params:{view:"panel="+t.panel.name+"=maximized"},query:Q.currentRoute.value.query}):Q.back())),d.expanded?d.levels=d.activeLevels:d.expandable||O?d.levels=[d.activeLevels[0]]:(D=d.activeLevels.indexOf(d.levels[0]),d.levels=[d.activeLevels[D+1]>=0?d.activeLevels[D+1]:d.activeLevels[0]]),d.activeLevels.length>1||d.maximizable?d.icon=d.expandable?d.expanded?"mdi-arrow-collapse":"mdi-arrow-expand":d.expanded?"":"mdi-swap-vertical":d.icon=""}function C(O){Q.push({name:"settings",params:{tab:"panels",item:O},query:Q.currentRoute.value.query})}function g(O){let d=n.handleDefs(t.panel.info[O],["text","icon","color"],["","",""]);return d.icon&&(d.icon=n.getIcon(d.icon,t.panel.panel.iconmap)),d}function _(O){let d=["left1","left2","mid1","mid2","right1","right2"],D=g(O);return g(d[d.indexOf(O)-1]).text&&D.text&&!D.icon?"ml-1 text-truncate":D.text?"text-truncate":""}const h=S(()=>g("left1")),f=S(()=>g("left2")),A=S(()=>g("mid1")),m=S(()=>g("mid2")),V=S(()=>g("right1")),k=S(()=>g("right2"));return x(!0),(O,d)=>{const D=y("v-progress-linear"),L=y("v-col"),R=y("v-row"),j=y("v-btn"),H=y("v-card-title"),T=y("v-img"),M=y("v-sheet"),U=y("v-card-text"),F=y("v-icon"),X=y("v-spacer"),Z=y("v-system-bar"),W=y("v-layout"),re=y("v-card");return B(n).app.isReady?(p(),E(re,{key:0,variant:"tonal"},{default:z(()=>[w(R,{"no-gutters":""},{default:z(()=>[e.panel.status.bar?(p(),E(L,{key:0},{default:z(()=>[w(D,{height:"7",modelValue:o.value.level,"onUpdate:modelValue":d[0]||(d[0]=$=>o.value.level=$),color:o.value.color,reverse:o.value.reverse},null,8,["modelValue","color","reverse"])]),_:1})):b("",!0),e.panel.status.bar2?(p(),E(L,{key:1},{default:z(()=>[w(D,{height:"7",modelValue:u.value.level,"onUpdate:modelValue":d[1]||(d[1]=$=>u.value.level=$),color:u.value.color,reverse:u.value.reverse},null,8,["modelValue","color","reverse"])]),_:1})):b("",!0)]),_:1}),w(M,{color:"primary"},{default:z(()=>[w(T,{src:r.value.url,gradient:r.value.url?B(n).app.header.imageGradient:"",height:"48",cover:""},{default:z(()=>[w(H,null,{default:z(()=>[w(R,{"no-gutters":"",class:"align-center"},{default:z(()=>[e.panel.status.title?(p(),E(L,{key:0,class:"text-truncate"},{default:z(()=>[J(I(l.value.title),1)]),_:1})):b("",!0),B(n).app.settings.loglevel>6?(p(),P("span",Dt,I(a.value.sortby),1)):b("",!0),B(n).app.settings.loglevel>6?(p(),E(j,{key:2,icon:"mdi-pencil",size:"small",variant:"plain",density:"compact",onClick:d[2]||(d[2]=$=>C(e.panel.name))})):b("",!0),c.value.icon?(p(),E(j,{key:3,icon:c.value.icon,size:"small",variant:"plain",density:"compact",onClick:d[3]||(d[3]=$=>x())},null,8,["icon"])):b("",!0)]),_:1})]),_:1})]),_:1},8,["src","gradient"])]),_:1}),w(Et,{main:e.panel.main,levels:c.value.levels,iconmap:e.panel.panel.iconmap,devices:e.panel.panel.devices},null,8,["main","levels","iconmap","devices"]),t.panel.internals?(p(),E(U,{key:0},{default:z(()=>[J(I(t.panel.internals),1)]),_:1})):b("",!0),w(W,{style:{height:"24px"}},{default:z(()=>[w(Z,{color:"secondary"},{default:z(()=>[h.value.icon?(p(),E(F,{key:0,icon:h.value.icon,color:h.value.color},null,8,["icon","color"])):b("",!0),h.value.text?(p(),P("span",{key:1,class:q(_("left1"))},I(h.value.text),3)):b("",!0),f.value.icon?(p(),E(F,{key:2,icon:f.value.icon,color:f.value.color},null,8,["icon","color"])):b("",!0),f.value.text?(p(),P("span",{key:3,class:q(_("left2"))},I(f.value.text),3)):b("",!0),w(X),A.value.icon?(p(),E(F,{key:4,icon:A.value.icon,color:A.value.color},null,8,["icon","color"])):b("",!0),A.value.text?(p(),P("span",{key:5,class:q(_("mid1"))},I(A.value.text),3)):b("",!0),m.value.icon?(p(),E(F,{key:6,icon:m.value.icon,color:m.value.color},null,8,["icon","color"])):b("",!0),m.value.text?(p(),P("span",{key:7,class:q(_("mid2"))},I(m.value.text),3)):b("",!0),w(X),V.value.icon?(p(),E(F,{key:8,icon:V.value.icon,color:V.value.color},null,8,["icon","color"])):b("",!0),V.value.text?(p(),P("span",{key:9,class:q(_("right1"))},I(V.value.text),3)):b("",!0),k.value.icon?(p(),E(F,{key:10,icon:k.value.icon,color:k.value.color},null,8,["icon","color"])):b("",!0),k.value.text?(p(),P("span",{key:11,class:q(_("right2"))},I(k.value.text),3)):b("",!0)]),_:1})]),_:1})]),_:1})):b("",!0)}}};export{Ot as _}; +`)(Re)}catch{return te=!1}return te=!0}(),mt="ecTheme",_t="ecInitOptions",pt="ecUpdateOptions",ht=Ae({name:"echarts",props:K(K({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},st),vt),emits:{},inheritAttrs:!1,setup:function(e,t){var n=t.attrs,i=ie(),s=ie(),o=ie(),u=ie(),r=le(mt,null),a=le(_t,null),l=le(pt,null),c=Me(e),v=c.autoresize,x=c.manualUpdate,C=c.loading,g=c.loadingOptions,_=S(function(){return u.value||e.option||null}),h=S(function(){return e.theme||se(r,{})}),f=S(function(){return e.initOptions||se(a,{})}),A=S(function(){return e.updateOptions||se(l,{})}),m=S(function(){return function(L){var R={};for(var j in L)ct(j)||(R[j]=L[j]);return R}(n)}),V=Ve().proxy.$listeners;function k(L){if(s.value){var R=o.value=Pe(s.value,h.value,f.value);e.group&&(R.group=e.group);var j=V;j||(j={},Object.keys(n).filter(function(T){return T.indexOf("on")===0&&T.length>2}).forEach(function(T){var M=T.charAt(2).toLowerCase()+T.slice(3);M.substring(M.length-4)==="Once"&&(M="~".concat(M.substring(0,M.length-4))),j[M]=n[T]})),Object.keys(j).forEach(function(T){var M=j[T];if(M){var U=T.toLowerCase();U.charAt(0)==="~"&&(U=U.substring(1),M.__once__=!0);var F=R;if(U.indexOf("zr:")===0&&(F=R.getZr(),U=U.substring(3)),M.__once__){delete M.__once__;var X=M;M=function(){for(var G=[],W=0;W(C(),"height: "+(/=maximized$/.test(n.app.currentView)?window.innerHeight-250+"px":t.height)));function c(g){return o.d(g,{dateStyle:s.value?"short":"long"})}function v(g,_){let h;return r.value.from&&_&&(h=r.value.from),r.value.to&&!_&&(h=r.value.to),!h&&!isNaN(g)&&(h=(f=>new Date(f.setDate(f.getDate()+(Number(g)||0))))(new Date)),h||(h=new Date(/.*T.*/.test(g)?g:g+"T00:00:00")),!r.value.from&&_&&(r.value.from=h),!r.value.to&&!_&&(r.value.to=h),h=new Date(h.getTime()-h.getTimezoneOffset()*60*1e3),h.toISOString().split("T")[0]}async function x(){let g=n.handleDefs(t.el.serie,["data","name","digits","suffix","type"],[null,"",0,"","line"],!0),_,h,f=[],A,m,V,k,O,d=[];if(g.length>0)for(const D of g){if(/^get.*/.test(D.data)){O="time",_=D.data.split(" ");for(const L of t.devices)L.split(":")[0]===_[1]&&(_[1]=L.split(":")[1]);if(_[4]=v(_[4],!0),_[5]=v(_[5],!1),h=await n.request("text",_.join(" ")),k=[],f=h.split(` +`),f.length>0)for(const L of f)A=L.split(" "),A.length>1&&(m=new Date(A[0].replace("_","T")),V=parseFloat(A[1]).toFixed(D.digits),k.push([m,V]))}else/^\[.*\]/.test(D.data)?k=n.stringToJson(D.data):k=[n.replacer("%n("+D.digits+")",D.data,!0)];d.push({xAxisType:O,type:D.type,name:D.name,digits:D.digits,suffix:D.suffix,data:k})}return d}async function C(){let g={tooltip:{trigger:"axis"},legend:{data:[],bottom:10},backgroundColor:"rgba(255, 255, 255, 0)",grid:{top:30,bottom:60,left:60,right:60},animationDuration:300,series:[],yAxis:[],xAxis:{}},_=JSON.parse(JSON.stringify(n.getEl(t.el,["options"])||{})),h=JSON.parse(JSON.stringify(n.getEl(t.el,["options2"])||{})),f=Object.assign(g,/=maximized$/.test(n.app.currentView)&&Object.keys(h).length>0?h:_),A;r.value.fromMenu=!1,r.value.toMenu=!1,r.value.loaded=!1,a=await x();for(const[m,V]of Object.entries(a))A={formatter:k=>k.toLocaleString(o.locale.value,{minimumFractionDigits:V.digits,maximumFractionDigits:V.digits})+V.suffix},f.series[m]||(f.series[m]={}),f.yAxis[m]||(f.yAxis[m]={}),f.legend.data||(f.legend.data=[]),f.xAxis.type||(f.xAxis.type=V.xAxisType),f.yAxis[m].type||(f.yAxis[m].type="value"),f.yAxis[m].axisLabel||(f.yAxis[m].axisLabel={}),f.yAxis[m].axisLabel.formatter||(f.yAxis[m].axisLabel.formatter=A.formatter),f.legend.data[m]||(f.legend.data[m]=V.name),f.series[m].name||(f.series[m].name=V.name),f.series[m].type||(f.series[m].type=V.type),f.series[m].data||(f.series[m].data=V.data),f.series[m].detail||(f.series[m].detail={}),f.series[m].detail.formatter||(f.series[m].detail.formatter=A.formatter),f.series[m].tooltip||(f.series[m].tooltip={}),f.series[m].tooltip.valueFormatter||(f.series[m].tooltip.valueFormatter=A.formatter);n.log(7,"Chartdata chart.loaded.",f),u.value=Object.assign({},f),r.value.loaded=!0}return(g,_)=>{const h=y("v-btn"),f=y("v-date-picker"),A=y("v-locale-provider"),m=y("v-menu"),V=y("v-skeleton-loader");return p(),P(Y,null,[/=maximized$/.test(B(n).app.currentView)?(p(),P("div",gt,[w(m,{modelValue:r.value.fromMenu,"onUpdate:modelValue":_[2]||(_[2]=k=>r.value.fromMenu=k),"close-on-content-click":!1},{activator:z(({props:k})=>[w(h,ae(k,{variant:"outlined","append-icon":"mdi-calendar",class:"mr-2"}),{default:z(()=>[J(I(c(r.value.from)),1)]),_:2},1040)]),default:z(()=>[w(A,{locale:B(o).locale.value},{default:z(()=>[w(f,{modelValue:r.value.from,"onUpdate:modelValue":[_[0]||(_[0]=k=>r.value.from=k),_[1]||(_[1]=k=>C())],color:"secondary"},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1},8,["modelValue"]),J(" - "),w(m,{modelValue:r.value.toMenu,"onUpdate:modelValue":_[5]||(_[5]=k=>r.value.toMenu=k),"close-on-content-click":!1},{activator:z(({props:k})=>[w(h,ae(k,{variant:"outlined","append-icon":"mdi-calendar",class:"ml-2"}),{default:z(()=>[J(I(c(r.value.to)),1)]),_:2},1040)]),default:z(()=>[w(A,{locale:B(o).locale.value},{default:z(()=>[w(f,{modelValue:r.value.to,"onUpdate:modelValue":[_[3]||(_[3]=k=>r.value.to=k),_[4]||(_[4]=k=>C())],color:"secondary"},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1},8,["modelValue"])])):b("",!0),ge("div",{style:Ue(l.value)},[r.value.loaded?b("",!0):(p(),E(V,{key:0,type:"text, image, text"})),r.value.loaded?(p(),E(B(ht),{key:1,option:u.value,theme:B(i).global.name.value==="dark"?"dark":"light",autoresize:""},null,8,["option","theme"])):b("",!0)],4)],64)}}},yt=180/Math.PI,Ee=e=>{const t=e%360;return t<0?360+t:t},bt=({x:e,y:t},n)=>{const i=n.left+n.width/2,s=n.top+n.height/2;return Math.atan2(t-s,e-i)*yt},me=()=>{};class wt{constructor(t,n){this.active=!1,this.element=t,this.element.style.willChange="transform",this.initOptions(n),this.updateCSS(),this.bindHandlers(),this.addListeners()}get angle(){return this._angle}set angle(t){this._angle!==t&&(this._angle=Ee(t),this.updateCSS())}initOptions(t){t=t||{},this.onRotate=t.onRotate||me,this.onDragStart=t.onDragStart||me,this.onDragStop=t.onDragStop||me,this._angle=t.angle||0}bindHandlers(){this.onRotationStart=this.onRotationStart.bind(this),this.onRotated=this.onRotated.bind(this),this.onRotationStop=this.onRotationStop.bind(this)}addListeners(){this.element.addEventListener("touchstart",this.onRotationStart,{passive:!0}),document.addEventListener("touchmove",this.onRotated,{passive:!1}),document.addEventListener("touchend",this.onRotationStop,{passive:!0}),document.addEventListener("touchcancel",this.onRotationStop,{passive:!0}),this.element.addEventListener("mousedown",this.onRotationStart,{passive:!0}),document.addEventListener("mousemove",this.onRotated,{passive:!1}),document.addEventListener("mouseup",this.onRotationStop,{passive:!0}),document.addEventListener("mouseleave",this.onRotationStop,{passive:!1})}removeListeners(){this.element.removeEventListener("touchstart",this.onRotationStart),document.removeEventListener("touchmove",this.onRotated),document.removeEventListener("touchend",this.onRotationStop),document.removeEventListener("touchcancel",this.onRotationStop),this.element.removeEventListener("mousedown",this.onRotationStart),document.removeEventListener("mousemove",this.onRotated),document.removeEventListener("mouseup",this.onRotationStop),document.removeEventListener("mouseleave",this.onRotationStop)}destroy(){this.onRotationStop(),this.removeListeners()}onRotationStart(t){(t.type==="touchstart"||t.button===0)&&(this.active=!0,this.onDragStart(t),this.setAngleFromEvent(t))}onRotationStop(){this.active&&(this.active=!1,this.onDragStop()),this.active=!1}onRotated(t){this.active&&(t.preventDefault(),this.setAngleFromEvent(t))}setAngleFromEvent(t){const n=t.targetTouches?t.targetTouches[0]:t,i=bt({x:n.clientX,y:n.clientY},this.element.getBoundingClientRect());this._angle=Ee(i+90),this.updateCSS(),this.onRotate(this._angle)}updateCSS(){this.element.style.transform="rotate("+this._angle+"deg)"}}const zt=["red","yellow","green","cyan","blue","magenta","red"],De={ArrowUp:(e,t)=>e+t,ArrowRight:(e,t)=>e+t,ArrowDown:(e,t)=>e-t,ArrowLeft:(e,t)=>e-t,PageUp:(e,t)=>e+t*10,PageDown:(e,t)=>e-t*10,Home:()=>0,End:()=>359},de={name:"ColorPicker",emits:["select","input","change"],props:{hue:{default:0},saturation:{default:100},luminosity:{default:50},alpha:{default:1},step:{default:1},mouseScroll:{default:!1},variant:{default:"collapsible"},disabled:{default:!1},initiallyCollapsed:{default:!1},ariaLabel:{default:"color picker"},ariaRoledescription:{default:"radial slider"},ariaValuetext:{default:""},ariaLabelColorWell:{default:"color well"}},setup(e,{emit:t}){const n=N(null),i=N(null);let s=null;const o=e.hue+"deg",u=N(e.hue),r=N(!e.initiallyCollapsed),a=N(!e.initiallyCollapsed),l=N(!1),c=N(!1),v=N(!1),x=S(()=>`hsla(${u.value}, ${e.saturation}%, ${e.luminosity}%, ${e.alpha})`),C=S(()=>zt[Math.round(u.value/60)]);return ee(()=>e.hue,m=>{u.value=m,s.angle=m}),xe(()=>{s=new wt(i.value,{angle:u.value,onRotate(m){u.value=m,t("input",u.value)},onDragStart(){v.value=!0},onDragStop(){v.value=!1,t("change",u.value)}})}),Le(()=>{s.destroy(),s=null}),{rcp:s,el:n,rotator:i,initialAngle:o,angle:u,isPaletteIn:r,isKnobIn:a,isDragging:v,isRippling:c,isPressed:l,color:x,valuetext:C,onKeyDown:m=>{e.disabled||l.value||!a.value||!(m.key in De)||(m.preventDefault(),s.angle=De[m.key](s.angle,e.step),u.value=s.angle,t("input",u.value),t("change",u.value))},onScroll:m=>{l.value||!a.value||(m.preventDefault(),m.deltaY>0?s.angle+=e.step:s.angle-=e.step,u.value=s.angle,t("input",u.value),t("change",u.value))},selectColor:()=>{l.value=!0,r.value&&a.value?(t("select",u.value),c.value=!0):r.value=!0},togglePicker:()=>{e.variant!=="persistent"&&(a.value?a.value=!1:(a.value=!0,r.value=!0)),c.value=!1,l.value=!1},hidePalette:()=>{a.value||(r.value=!1)}}}};function kt(e,t,n,i,s,o){return p(),E("div",{ref:"el",role:"slider","aria-roledescription":n.ariaRoledescription,"aria-label":n.ariaLabel,"aria-expanded":i.isPaletteIn,"aria-valuemin":"0","aria-valuemax":"359","aria-valuenow":i.angle,"aria-valuetext":n.ariaValuetext||i.valuetext,"aria-disabled":n.disabled,class:["rcp",{dragging:i.isDragging,disabled:n.disabled}],tabindex:n.disabled?-1:0,style:{"--rcp-initial-angle":i.initialAngle},onKeyup:t[4]||(t[4]=qe((...u)=>i.selectColor&&i.selectColor(...u),["enter"])),onKeydown:t[5]||(t[5]=(...u)=>i.onKeyDown&&i.onKeyDown(...u))},[w("div",{class:["rcp__palette",i.isPaletteIn?"in":"out"]},null,2),w("div",ae({class:"rcp__rotator",style:{"pointer-events":n.disabled||i.isPressed||!i.isKnobIn?"none":null}},He(n.mouseScroll?{wheel:i.onScroll}:{}),{ref:"rotator"}),[w("div",{class:["rcp__knob",i.isKnobIn?"in":"out"],onTransitionend:t[1]||(t[1]=(...u)=>i.hidePalette&&i.hidePalette(...u))},null,34)],16),w("div",{class:["rcp__ripple",{rippling:i.isRippling}],style:{borderColor:i.color}},null,6),w("button",{type:"button",class:["rcp__well",{pressed:i.isPressed}],"aria-label":n.ariaLabelColorWell,disabled:n.disabled,tabindex:n.disabled?-1:0,style:{backgroundColor:i.color},onAnimationend:t[2]||(t[2]=(...u)=>i.togglePicker&&i.togglePicker(...u)),onClick:t[3]||(t[3]=(...u)=>i.selectColor&&i.selectColor(...u))},null,46,["aria-label","disabled","tabindex"])],46,["aria-roledescription","aria-label","aria-expanded","aria-valuenow","aria-valuetext","aria-disabled","tabindex"])}de.render=kt;de.install=function(e){e.component("ColorPicker",de)};const St={class:"mt-4 mb-2"},Ct={__name:"PanelMainColorpicker",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=$(),i=S(()=>n.handleDefs(t.el.picker,["cmd","current"],["",!1]));function s(r){let a=o(r,50,100),l=i.value.cmd,c=[];l=l.replace("%v",a);for(const v of t.devices)c=v.split(":"),RegExp(c[0]).test(l)&&(l=l.replace(c[0],c[1]));n.request("text",l)}function o(r,a,l){a/=100;const c=l*Math.min(a,1-a)/100,v=x=>{const C=(x+r/30)%12,g=a-c*Math.max(Math.min(C-3,9-C,1),-1);return Math.round(255*g).toString(16).padStart(2,"0")};return`${v(0)}${v(8)}${v(4)}`}function u(r){r.split(" ").length>1&&(r=r.split(" ").slice(-1)[0]),r=r.replace(/^#/,"");let a=parseInt(r,16),l=a>>16&255,c=a>>8&255,v=a&255;l/=255,c/=255,v/=255;let x=Math.max(l,c,v),C=Math.min(l,c,v),g=x-C,_=(x+C)/2,h=0,f=0;return g!==0&&(x===l?h=((c-v)/g+(c(p(),P("div",St,[w(B(de),ae(u(i.value.current),{variant:"persistent",onChange:a[0]||(a[0]=l=>s(l))}),null,16)]))}},Et={__name:"PanelMain",props:{main:Object,levels:Array,iconmap:Object,devices:Object},setup(e){const t=$();function n(r,a){return t.handleDefs(r[a].size,["size"],[!1]).size}function i(r){let a="";return["info"].indexOf(r)!==-1&&(a="mx-2"),a}function s(r,a){return r[a]?t.handleDefs(r[a].divider,["show"],[!1]).show:!1}function o(r){return r.level?t.handleDefs(r.level.height,["height"],["64px"]).height:"64px"}function u(r){if(r==="info")return We;if(r==="btn")return Ke;if(r==="slider")return $e;if(r==="image")return Ge;if(r==="menu")return Ze;if(r==="chart")return xt;if(r==="colorpicker")return Ct}return(r,a)=>{const l=y("v-sheet"),c=y("v-col"),v=y("v-divider"),x=y("v-row"),C=y("v-expand-transition");return p(!0),P(Y,null,_e(e.main,(g,_)=>(p(),P("div",{key:_},[w(C,null,{default:z(()=>[e.levels.indexOf(_)!==-1?(p(),E(x,{key:0,"no-gutters":"",class:"text-center align-center"},{default:z(()=>[w(l,{height:o(g,"level")},null,8,["height"]),(p(),P(Y,null,_e(["left1","left2","mid","right1","right2"],h=>(p(),P(Y,{key:h},[g.level[h]?(p(),E(c,{key:0,cols:n(g,h),class:q(i(g.level[h]))},{default:z(()=>[(p(),E(Be(u(g.level[h])),{el:g[h],iconmap:e.iconmap,devices:e.devices,height:o(g,"level")},null,8,["el","iconmap","devices","height"]))]),_:2},1032,["cols","class"])):b("",!0),s(g,h)?(p(),E(v,{key:1,vertical:""})):b("",!0)],64))),64)),s(g,"level")?(p(),E(v,{key:0})):b("",!0)]),_:2},1024)):b("",!0)]),_:2},1024)]))),128)}}},Dt={key:1,class:"mx-2"},Ot={__name:"PanelCard",props:{panel:Object},setup(e){const t=e,n=$();let i=n.thread();xe(()=>n.thread(i));function s(O){let d=n.handleDefs(t.panel.status[O],["level","color","min","max","reverse"],[0,"success",0,100,!1]);return d.level=Math.round((d.level-d.min)/(d.max-d.min)*100),d}const o=S(()=>s("bar")),u=S(()=>s("bar2")),r=S(()=>n.handleDefs(t.panel.status.imageUrl,["url"],[""])),a=S(()=>n.handleDefs(t.panel.panel.sortby,["sortby"],[null])),l=S(()=>n.handleDefs(t.panel.status.title,["title"],[""])),c=N(n.handleDefs(t.panel.panel.expandable,["expandable","expanded","maximizable"],[!1,!1,!1]));ee(t.panel.main,O=>{let d=v(O);c.value.activeLevels.join("-")!==d.join("-")&&(c.value.activeLevels=d,x(!0))});function v(O){let d=[];for(const[D,L]of Object.entries(O))n.handleDefs(L.level.show,["show"],[!0]).show&&d.push(Number(D));return d}function x(O){let d=c.value,D;O?(d.activeLevels=v(t.panel.main),/=maximized$/.test(n.app.currentView)&&(d.expanded=!0)):(d.expandable&&(d.expanded=!d.expanded),d.maximizable&&(d.expanded?Q.push({name:"devices",params:{view:"panel="+t.panel.name+"=maximized"},query:Q.currentRoute.value.query}):(n.app.currentView=n.app.currentView.replace(/=maximized$/,""),Q.back()))),d.expanded?d.levels=d.activeLevels:d.expandable||O?d.levels=[d.activeLevels[0]]:(D=d.activeLevels.indexOf(d.levels[0]),d.levels=[d.activeLevels[D+1]>=0?d.activeLevels[D+1]:d.activeLevels[0]]),d.activeLevels.length>1||d.maximizable?d.icon=d.expandable?d.expanded?"mdi-arrow-collapse":"mdi-arrow-expand":d.expanded?"":"mdi-swap-vertical":d.icon=""}function C(O){Q.push({name:"settings",params:{tab:"panels",item:O},query:Q.currentRoute.value.query})}function g(O){let d=n.handleDefs(t.panel.info[O],["text","icon","color"],["","",""]);return d.icon&&(d.icon=n.getIcon(d.icon,t.panel.panel.iconmap)),d}function _(O){let d=["left1","left2","mid1","mid2","right1","right2"],D=g(O);return g(d[d.indexOf(O)-1]).text&&D.text&&!D.icon?"ml-1 text-truncate":D.text?"text-truncate":""}const h=S(()=>g("left1")),f=S(()=>g("left2")),A=S(()=>g("mid1")),m=S(()=>g("mid2")),V=S(()=>g("right1")),k=S(()=>g("right2"));return x(!0),(O,d)=>{const D=y("v-progress-linear"),L=y("v-col"),R=y("v-row"),j=y("v-btn"),H=y("v-card-title"),T=y("v-img"),M=y("v-sheet"),U=y("v-card-text"),F=y("v-icon"),X=y("v-spacer"),G=y("v-system-bar"),W=y("v-layout"),re=y("v-card");return B(n).app.isReady?(p(),E(re,{key:0,variant:"tonal"},{default:z(()=>[w(R,{"no-gutters":""},{default:z(()=>[e.panel.status.bar?(p(),E(L,{key:0},{default:z(()=>[w(D,{height:"7",modelValue:o.value.level,"onUpdate:modelValue":d[0]||(d[0]=Z=>o.value.level=Z),color:o.value.color,reverse:o.value.reverse},null,8,["modelValue","color","reverse"])]),_:1})):b("",!0),e.panel.status.bar2?(p(),E(L,{key:1},{default:z(()=>[w(D,{height:"7",modelValue:u.value.level,"onUpdate:modelValue":d[1]||(d[1]=Z=>u.value.level=Z),color:u.value.color,reverse:u.value.reverse},null,8,["modelValue","color","reverse"])]),_:1})):b("",!0)]),_:1}),w(M,{color:"primary"},{default:z(()=>[w(T,{src:r.value.url,gradient:r.value.url?B(n).app.header.imageGradient:"",height:"48",cover:""},{default:z(()=>[w(H,null,{default:z(()=>[w(R,{"no-gutters":"",class:"align-center"},{default:z(()=>[e.panel.status.title?(p(),E(L,{key:0,class:"text-truncate"},{default:z(()=>[J(I(l.value.title),1)]),_:1})):b("",!0),B(n).app.settings.loglevel>6?(p(),P("span",Dt,I(a.value.sortby),1)):b("",!0),B(n).app.settings.loglevel>6?(p(),E(j,{key:2,icon:"mdi-pencil",size:"small",variant:"plain",density:"compact",onClick:d[2]||(d[2]=Z=>C(e.panel.name))})):b("",!0),c.value.icon?(p(),E(j,{key:3,icon:c.value.icon,size:"small",variant:"plain",density:"compact",onClick:d[3]||(d[3]=Z=>x())},null,8,["icon"])):b("",!0)]),_:1})]),_:1})]),_:1},8,["src","gradient"])]),_:1}),w(Et,{main:e.panel.main,levels:c.value.levels,iconmap:e.panel.panel.iconmap,devices:e.panel.panel.devices},null,8,["main","levels","iconmap","devices"]),t.panel.internals?(p(),E(U,{key:0},{default:z(()=>[J(I(t.panel.internals),1)]),_:1})):b("",!0),w(W,{style:{height:"24px"}},{default:z(()=>[w(G,{color:"secondary"},{default:z(()=>[h.value.icon?(p(),E(F,{key:0,icon:h.value.icon,color:h.value.color},null,8,["icon","color"])):b("",!0),h.value.text?(p(),P("span",{key:1,class:q(_("left1"))},I(h.value.text),3)):b("",!0),f.value.icon?(p(),E(F,{key:2,icon:f.value.icon,color:f.value.color},null,8,["icon","color"])):b("",!0),f.value.text?(p(),P("span",{key:3,class:q(_("left2"))},I(f.value.text),3)):b("",!0),w(X),A.value.icon?(p(),E(F,{key:4,icon:A.value.icon,color:A.value.color},null,8,["icon","color"])):b("",!0),A.value.text?(p(),P("span",{key:5,class:q(_("mid1"))},I(A.value.text),3)):b("",!0),m.value.icon?(p(),E(F,{key:6,icon:m.value.icon,color:m.value.color},null,8,["icon","color"])):b("",!0),m.value.text?(p(),P("span",{key:7,class:q(_("mid2"))},I(m.value.text),3)):b("",!0),w(X),V.value.icon?(p(),E(F,{key:8,icon:V.value.icon,color:V.value.color},null,8,["icon","color"])):b("",!0),V.value.text?(p(),P("span",{key:9,class:q(_("right1"))},I(V.value.text),3)):b("",!0),k.value.icon?(p(),E(F,{key:10,icon:k.value.icon,color:k.value.color},null,8,["icon","color"])):b("",!0),k.value.text?(p(),P("span",{key:11,class:q(_("right2"))},I(k.value.text),3)):b("",!0)]),_:1})]),_:1})]),_:1})):b("",!0)}}};export{Ot as _}; diff --git a/www/fhemapp4/assets/SettingsView-44d68367.js b/www/fhemapp4/assets/SettingsView-a6a3e3d5.js similarity index 79% rename from www/fhemapp4/assets/SettingsView-44d68367.js rename to www/fhemapp4/assets/SettingsView-a6a3e3d5.js index 4ef32c2f..7d388fa3 100644 --- a/www/fhemapp4/assets/SettingsView-44d68367.js +++ b/www/fhemapp4/assets/SettingsView-a6a3e3d5.js @@ -1,4 +1,4 @@ -import{u as qe,f as Ve,g as lr,r as R,o as H,a as W,w as E,e as h,h as k,b as Me,F as Ke,d as Ze,i as Mn,j as Ae,t as $e,k as ee,l as wr,m as mt,c as we,n as Dr,v as Tr,p as ir,q as sr,s as Gt,x as ur}from"./index-ae1cfcb8.js";import{c as $n,g as Pr,r as Ar,a as $r,u as Vr,V as Fr}from"./index-ae372c55.js";import{_ as Rr}from"./PanelCard-bd815089.js";const ue="_app.settings.header.",jr={__name:"SettingsHeader",setup(u){const e=qe(),n={required:r=>!!r||e.replacer("%t(_app.settings.rules.required)")},l=Ve(),a=lr({name:"",title:"",icon:"",cmd:""});function i(){e.app.config.header.commands||(e.app.config.header.commands=[]),e.app.config.header.commands.push(JSON.parse(JSON.stringify(a))),l.value.reset()}function t(r){e.app.config.header.commands.splice(r,1)}return(r,o)=>{const s=R("v-btn"),c=R("v-list-item"),p=R("v-text-field"),m=R("v-col"),f=R("v-checkbox"),d=R("v-row"),g=R("v-divider"),y=R("v-form"),S=R("v-list");return H(),W(S,null,{default:E(()=>[h(c,{title:r.$t(ue+"barTitle")},{append:E(()=>[h(s,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:o[0]||(o[0]=v=>k(e).help("kopfzeile"))})]),_:1},8,["title"]),h(c,null,{default:E(()=>[h(d,{"no-gutters":""},{default:E(()=>[h(m,{cols:"12",lg:"4",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"imageUrlPlaceholder"),label:r.$t(ue+"imageUrl"),modelValue:k(e).app.config.header.imageUrl,"onUpdate:modelValue":o[1]||(o[1]=v=>k(e).app.config.header.imageUrl=v)},null,8,["placeholder","label","modelValue"])]),_:1}),h(m,{cols:"12",lg:"4",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"imageGradientPlaceholder"),label:r.$t(ue+"imageGradient"),modelValue:k(e).app.config.header.imageGradient,"onUpdate:modelValue":o[2]||(o[2]=v=>k(e).app.config.header.imageGradient=v)},null,8,["placeholder","label","modelValue"])]),_:1}),h(m,{cols:"6",lg:"",class:"pt-1"},{default:E(()=>[h(f,{hint:r.$t(ue+"showTimeHint"),label:r.$t(ue+"showTime"),modelValue:k(e).app.config.header.showTime,"onUpdate:modelValue":o[3]||(o[3]=v=>k(e).app.config.header.showTime=v)},null,8,["hint","label","modelValue"])]),_:1}),h(m,{cols:"6",lg:"",class:"pt-1"},{default:E(()=>[h(f,{hint:r.$t(ue+"showDateHint"),label:r.$t(ue+"showDate"),modelValue:k(e).app.config.header.showDate,"onUpdate:modelValue":o[4]||(o[4]=v=>k(e).app.config.header.showDate=v)},null,8,["hint","label","modelValue"])]),_:1}),h(m,{cols:"6",lg:"",class:"pt-1"},{default:E(()=>[h(f,{hint:r.$t(ue+"showTitleHint"),label:r.$t(ue+"showTitle"),modelValue:k(e).app.config.header.showTitle,"onUpdate:modelValue":o[5]||(o[5]=v=>k(e).app.config.header.showTitle=v)},null,8,["hint","label","modelValue"])]),_:1})]),_:1})]),_:1}),h(g),h(c,{title:r.$t(ue+"darkModeOverFhem")},{append:E(()=>[h(s,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:o[6]||(o[6]=v=>k(e).help("farbschema"))})]),_:1},8,["title"]),h(c,null,{default:E(()=>[h(d,{"no-gutters":""},{default:E(()=>[h(m,{cols:"12",md:"4",class:"pt-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:"device-reading:value",label:"Definition",modelValue:k(e).app.config.header.darkModeOverFhem,"onUpdate:modelValue":o[7]||(o[7]=v=>k(e).app.config.header.darkModeOverFhem=v)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),h(g),h(c,{title:r.$t(ue+"optionsTitle")},{append:E(()=>[h(s,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:o[8]||(o[8]=v=>k(e).help("optionsmenü"))})]),_:1},8,["title"]),h(c,null,{default:E(()=>[h(d,{"no-gutters":""},{default:E(()=>[h(m,{cols:"6",lg:""},{default:E(()=>[h(f,{label:r.$t(ue+"showDarkMode"),modelValue:k(e).app.config.header.showDarkMode,"onUpdate:modelValue":o[9]||(o[9]=v=>k(e).app.config.header.showDarkMode=v)},null,8,["label","modelValue"])]),_:1}),h(m,{cols:"6",lg:""},{default:E(()=>[h(f,{label:r.$t(ue+"showReloadPage"),modelValue:k(e).app.config.header.showReloadPage,"onUpdate:modelValue":o[10]||(o[10]=v=>k(e).app.config.header.showReloadPage=v)},null,8,["label","modelValue"])]),_:1}),h(m,{cols:"6",lg:""},{default:E(()=>[h(f,{label:r.$t(ue+"showSettings"),modelValue:k(e).app.config.header.showSettings,"onUpdate:modelValue":o[11]||(o[11]=v=>k(e).app.config.header.showSettings=v)},null,8,["label","modelValue"])]),_:1}),h(m,{cols:"6",lg:""},{default:E(()=>[h(f,{label:r.$t(ue+"showUpdate"),modelValue:k(e).app.config.header.showUpdate,"onUpdate:modelValue":o[12]||(o[12]=v=>k(e).app.config.header.showUpdate=v)},null,8,["label","modelValue"])]),_:1}),h(m,{cols:"6",lg:""},{default:E(()=>[h(f,{label:r.$t(ue+"showLanguages"),modelValue:k(e).app.config.header.showLanguages,"onUpdate:modelValue":o[13]||(o[13]=v=>k(e).app.config.header.showLanguages=v)},null,8,["label","modelValue"])]),_:1})]),_:1})]),_:1}),h(g),h(c,{title:r.$t(ue+"optionsCommandTitle")},{append:E(()=>[h(s,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:o[14]||(o[14]=v=>k(e).help("optionsmenü-fhem-befehle"))})]),_:1},8,["title"]),(H(!0),Me(Ke,null,Ze(k(e).app.config.header.commands,(v,b)=>(H(),W(c,{key:b},{default:E(()=>[h(d,{"no-gutters":""},{default:E(()=>[h(m,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"commandNamePlaceholder"),label:r.$t(ue+"commandName"),rules:[n.required],modelValue:v.name,"onUpdate:modelValue":x=>v.name=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),h(m,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"commandTitlePlaceholder"),label:r.$t(ue+"commandTitle"),rules:[n.required],modelValue:v.title,"onUpdate:modelValue":x=>v.title=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),h(m,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"commandIconPlaceholder"),label:r.$t(ue+"commandIcon"),"append-inner-icon":v.icon,modelValue:v.icon,"onUpdate:modelValue":x=>v.icon=x},null,8,["placeholder","label","append-inner-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),h(m,{cols:"10",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"commandCmdPlaceholder"),label:r.$t(ue+"commandCmd"),rules:[n.required],modelValue:v.cmd,"onUpdate:modelValue":x=>v.cmd=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),h(m,{class:"pt-3 text-right"},{default:E(()=>[h(s,{variant:"text",icon:"mdi-delete",onClick:x=>t(b)},null,8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)),h(c,null,{default:E(()=>[h(y,{ref_key:"form",ref:l},{default:E(()=>[h(d,{"no-gutters":""},{default:E(()=>[h(m,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"commandNamePlaceholder"),label:r.$t(ue+"commandName"),rules:[n.required],modelValue:a.name,"onUpdate:modelValue":o[15]||(o[15]=v=>a.name=v)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),h(m,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"commandTitlePlaceholder"),label:r.$t(ue+"commandTitle"),rules:[n.required],modelValue:a.title,"onUpdate:modelValue":o[16]||(o[16]=v=>a.title=v)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),h(m,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"commandIconPlaceholder"),label:r.$t(ue+"commandIcon"),"append-inner-icon":a.icon,modelValue:a.icon,"onUpdate:modelValue":o[17]||(o[17]=v=>a.icon=v)},null,8,["placeholder","label","append-inner-icon","modelValue"])]),_:1}),h(m,{cols:"9",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"commandCmdPlaceholder"),label:r.$t(ue+"commandCmd"),rules:[n.required],modelValue:a.cmd,"onUpdate:modelValue":o[18]||(o[18]=v=>a.cmd=v)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),h(m,{class:"pt-3 text-right"},{default:E(()=>[h(s,{variant:"text",icon:"mdi-cancel",onClick:o[19]||(o[19]=v=>l.value.reset())}),h(s,{variant:"text",icon:"mdi-plus",disabled:!a.name||!a.title||!a.cmd,onClick:o[20]||(o[20]=v=>i())},null,8,["disabled"])]),_:1})]),_:1})]),_:1},512)]),_:1})]),_:1})}}},ye="_app.settings.navigation.",Nr={__name:"SettingsNavigation",setup(u){const{mobile:e}=Mn(),n=qe(),l=lr({path:[],route:["navigation"],items:[],newItem:{name:null,title:null,icon:null,divider:!1,groupAsChips:!1,sort:!1,group:[]}}),a=Ve(),i={required:p=>!!p||n.replacer("%t(_app.settings.rules.required)")};function t(p){typeof p<"u"&&(l.path.push(p,"group"),l.route.push(l.items[p].name)),l.items=n.getEl(n.app.config.navigation,l.path)}function r(){let p=JSON.parse(JSON.stringify(l.newItem));n.getEl(n.app.config.navigation,l.path).push(p),t(),a.value.reset()}function o(p){n.getEl(n.app.config.navigation,l.path).splice(p,1)}function s(p){return(n.getEl(l.items[p],["group"])||[]).length}function c(){l.route.pop(),l.path.splice(-2,2),t()}return t(),(p,m)=>{const f=R("v-btn"),d=R("v-list-item"),g=R("v-text-field"),y=R("v-col"),S=R("v-checkbox"),v=R("v-icon"),b=R("v-badge"),x=R("v-row"),O=R("v-divider"),I=R("v-form"),V=R("v-list");return H(),W(V,null,{default:E(()=>[h(d,{title:p.$t(ye+"title")},{append:E(()=>[h(f,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:m[0]||(m[0]=T=>k(n).help("navigation"))})]),_:1},8,["title"]),l.path.length>0?(H(),W(d,{key:0},{default:E(()=>[h(f,{variant:"text",icon:"mdi-arrow-up-left",onClick:m[1]||(m[1]=T=>c())}),Ae(" "+$e(l.route.join(" > ")),1)]),_:1})):ee("",!0),(H(!0),Me(Ke,null,Ze(l.items,(T,C)=>(H(),W(d,{key:C},{default:E(()=>[h(x,{"no-gutters":""},{default:E(()=>[h(y,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:E(()=>[h(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:p.$t(ye+"namePlaceholder"),label:p.$t(ye+"name"),rules:[i.required],modelValue:T.name,"onUpdate:modelValue":w=>T.name=w},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),h(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:p.$t(ye+"title1Placeholder"),label:p.$t(ye+"title1"),modelValue:T.title,"onUpdate:modelValue":w=>T.title=w},null,8,["placeholder","label","modelValue","onUpdate:modelValue"])]),_:2},1024),h(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:p.$t(ye+"iconPlaceholder"),label:p.$t(ye+"icon"),"append-inner-icon":T.icon,modelValue:T.icon,"onUpdate:modelValue":w=>T.icon=w},null,8,["placeholder","label","append-inner-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),h(y,{cols:4,lg:"",class:"pt-1"},{default:E(()=>[h(S,{hint:p.$t(ye+"groupAsChipsHint"),label:p.$t(ye+"groupAsChips"),modelValue:T.groupAsChips,"onUpdate:modelValue":w=>T.groupAsChips=w},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),h(y,{cols:4,lg:"",class:"pt-1"},{default:E(()=>[h(S,{hint:p.$t(ye+"sortHint"),label:p.$t(ye+"sort"),modelValue:T.sort,"onUpdate:modelValue":w=>T.sort=w},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),h(y,{cols:"4",lg:"",class:"pt-1"},{default:E(()=>[h(S,{hint:p.$t(ye+"dividerHint"),label:p.$t(ye+"divider"),modelValue:T.divider,"onUpdate:modelValue":w=>T.divider=w},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),h(y,{class:"pt-3 text-right"},{default:E(()=>[h(f,{variant:"text",icon:"",onClick:w=>t(C)},{default:E(()=>[s(C)>0?(H(),W(b,{key:0,color:"success",content:s(C)},{default:E(()=>[h(v,{icon:"mdi-arrow-down-right"})]),_:2},1032,["content"])):ee("",!0),s(C)===0?(H(),W(v,{key:1,icon:"mdi-arrow-down-right"})):ee("",!0)]),_:2},1032,["onClick"]),h(f,{variant:"text",icon:"mdi-delete",onClick:w=>o(C)},null,8,["onClick"])]),_:2},1024)]),_:2},1024),k(e)?(H(),W(O,{key:0})):ee("",!0)]),_:2},1024))),128)),h(d,null,{default:E(()=>[h(I,{ref_key:"form",ref:a},{default:E(()=>[h(x,{"no-gutters":""},{default:E(()=>[h(y,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:E(()=>[h(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:p.$t(ye+"namePlaceholder"),label:p.$t(ye+"name"),rules:[i.required],modelValue:l.newItem.name,"onUpdate:modelValue":m[2]||(m[2]=T=>l.newItem.name=T)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),h(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:p.$t(ye+"title1Placeholder"),label:p.$t(ye+"title1"),modelValue:l.newItem.title,"onUpdate:modelValue":m[3]||(m[3]=T=>l.newItem.title=T)},null,8,["placeholder","label","modelValue"])]),_:1}),h(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:p.$t(ye+"iconPlaceholder"),label:p.$t(ye+"icon"),"append-inner-icon":l.newItem.icon,modelValue:l.newItem.icon,"onUpdate:modelValue":m[4]||(m[4]=T=>l.newItem.icon=T)},null,8,["placeholder","label","append-inner-icon","modelValue"])]),_:1}),h(y,{cols:"4",lg:"",class:"pt-1"},{default:E(()=>[h(S,{hint:p.$t(ye+"groupAsChipsHint"),label:p.$t(ye+"groupAsChips"),modelValue:l.newItem.groupAsChips,"onUpdate:modelValue":m[5]||(m[5]=T=>l.newItem.groupAsChips=T)},null,8,["hint","label","modelValue"])]),_:1}),h(y,{cols:"4",lg:"",class:"pt-1"},{default:E(()=>[h(S,{hint:p.$t(ye+"sortHint"),label:p.$t(ye+"sort"),modelValue:l.newItem.sort,"onUpdate:modelValue":m[6]||(m[6]=T=>l.newItem.sort=T)},null,8,["hint","label","modelValue"])]),_:1}),h(y,{cols:"4",lg:"",class:"pt-1"},{default:E(()=>[h(S,{hint:p.$t(ye+"dividerHint"),label:p.$t(ye+"divider"),modelValue:l.newItem.divider,"onUpdate:modelValue":m[7]||(m[7]=T=>l.newItem.divider=T)},null,8,["hint","label","modelValue"])]),_:1}),h(y,{class:"pt-3 text-right"},{default:E(()=>[h(f,{variant:"text",icon:"mdi-cancel",onClick:m[8]||(m[8]=T=>a.value.reset())}),h(f,{variant:"text",icon:"mdi-plus",disabled:!l.newItem.name,onClick:m[9]||(m[9]=T=>r())},null,8,["disabled"])]),_:1})]),_:1})]),_:1},512)]),_:1})]),_:1})}}};function Ht(){return Ht=Object.assign||function(u){for(var e=1;e";return e},lineNumbersCount:function(){var e=this.codeData.split(/\r\n|\n/).length;return e}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(!(!this.lineNumbers||!this.autoStyleLineNumbers)){var e=this.$refs.pre,n=this.$el.querySelector(".prism-editor__line-numbers"),l=window.getComputedStyle(e);this.$nextTick(function(){var a="border-top-left-radius",i="border-bottom-left-radius";if(n){n.style[a]=l[a],n.style[i]=l[i],e.style[a]="0",e.style[i]="0";var t=["background-color","margin-top","padding-top","font-family","font-size","line-height"];t.forEach(function(r){n.style[r]=l[r]}),n.style["margin-bottom"]="-"+l["padding-top"]}})}},_recordCurrentState:function(){var e=this.$refs.textarea;if(e){var n=e.value,l=e.selectionStart,a=e.selectionEnd;this._recordChange({value:n,selectionStart:l,selectionEnd:a})}},_getLines:function(e,n){return e.substring(0,n).split(` +import{u as qe,f as Ve,g as lr,r as R,o as H,a as W,w as E,e as h,h as k,b as Me,F as Ke,d as Ze,i as Mn,j as Ae,t as $e,k as ee,l as wr,m as mt,c as we,n as Dr,v as Tr,p as ir,q as sr,s as Gt,x as ur}from"./index-e6e38008.js";import{c as $n,g as Pr,r as Ar,a as $r,u as Vr,V as Fr}from"./index-2d4633de.js";import{_ as Rr}from"./PanelCard-ca7331d5.js";const ue="_app.settings.header.",jr={__name:"SettingsHeader",setup(u){const e=qe(),n={required:r=>!!r||e.replacer("%t(_app.settings.rules.required)")},l=Ve(),a=lr({name:"",title:"",icon:"",cmd:""});function i(){e.app.config.header.commands||(e.app.config.header.commands=[]),e.app.config.header.commands.push(JSON.parse(JSON.stringify(a))),l.value.reset()}function t(r){e.app.config.header.commands.splice(r,1)}return(r,o)=>{const s=R("v-btn"),c=R("v-list-item"),p=R("v-text-field"),m=R("v-col"),f=R("v-checkbox"),d=R("v-row"),g=R("v-divider"),y=R("v-form"),S=R("v-list");return H(),W(S,null,{default:E(()=>[h(c,{title:r.$t(ue+"barTitle")},{append:E(()=>[h(s,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:o[0]||(o[0]=v=>k(e).help("kopfzeile"))})]),_:1},8,["title"]),h(c,null,{default:E(()=>[h(d,{"no-gutters":""},{default:E(()=>[h(m,{cols:"12",lg:"4",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"imageUrlPlaceholder"),label:r.$t(ue+"imageUrl"),modelValue:k(e).app.config.header.imageUrl,"onUpdate:modelValue":o[1]||(o[1]=v=>k(e).app.config.header.imageUrl=v)},null,8,["placeholder","label","modelValue"])]),_:1}),h(m,{cols:"12",lg:"4",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"imageGradientPlaceholder"),label:r.$t(ue+"imageGradient"),modelValue:k(e).app.config.header.imageGradient,"onUpdate:modelValue":o[2]||(o[2]=v=>k(e).app.config.header.imageGradient=v)},null,8,["placeholder","label","modelValue"])]),_:1}),h(m,{cols:"6",lg:"",class:"pt-1"},{default:E(()=>[h(f,{hint:r.$t(ue+"showTimeHint"),label:r.$t(ue+"showTime"),modelValue:k(e).app.config.header.showTime,"onUpdate:modelValue":o[3]||(o[3]=v=>k(e).app.config.header.showTime=v)},null,8,["hint","label","modelValue"])]),_:1}),h(m,{cols:"6",lg:"",class:"pt-1"},{default:E(()=>[h(f,{hint:r.$t(ue+"showDateHint"),label:r.$t(ue+"showDate"),modelValue:k(e).app.config.header.showDate,"onUpdate:modelValue":o[4]||(o[4]=v=>k(e).app.config.header.showDate=v)},null,8,["hint","label","modelValue"])]),_:1}),h(m,{cols:"6",lg:"",class:"pt-1"},{default:E(()=>[h(f,{hint:r.$t(ue+"showTitleHint"),label:r.$t(ue+"showTitle"),modelValue:k(e).app.config.header.showTitle,"onUpdate:modelValue":o[5]||(o[5]=v=>k(e).app.config.header.showTitle=v)},null,8,["hint","label","modelValue"])]),_:1})]),_:1})]),_:1}),h(g),h(c,{title:r.$t(ue+"darkModeOverFhem")},{append:E(()=>[h(s,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:o[6]||(o[6]=v=>k(e).help("farbschema"))})]),_:1},8,["title"]),h(c,null,{default:E(()=>[h(d,{"no-gutters":""},{default:E(()=>[h(m,{cols:"12",md:"4",class:"pt-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:"device-reading:value",label:"Definition",modelValue:k(e).app.config.header.darkModeOverFhem,"onUpdate:modelValue":o[7]||(o[7]=v=>k(e).app.config.header.darkModeOverFhem=v)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),h(g),h(c,{title:r.$t(ue+"optionsTitle")},{append:E(()=>[h(s,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:o[8]||(o[8]=v=>k(e).help("optionsmenü"))})]),_:1},8,["title"]),h(c,null,{default:E(()=>[h(d,{"no-gutters":""},{default:E(()=>[h(m,{cols:"6",lg:""},{default:E(()=>[h(f,{label:r.$t(ue+"showDarkMode"),modelValue:k(e).app.config.header.showDarkMode,"onUpdate:modelValue":o[9]||(o[9]=v=>k(e).app.config.header.showDarkMode=v)},null,8,["label","modelValue"])]),_:1}),h(m,{cols:"6",lg:""},{default:E(()=>[h(f,{label:r.$t(ue+"showReloadPage"),modelValue:k(e).app.config.header.showReloadPage,"onUpdate:modelValue":o[10]||(o[10]=v=>k(e).app.config.header.showReloadPage=v)},null,8,["label","modelValue"])]),_:1}),h(m,{cols:"6",lg:""},{default:E(()=>[h(f,{label:r.$t(ue+"showSettings"),modelValue:k(e).app.config.header.showSettings,"onUpdate:modelValue":o[11]||(o[11]=v=>k(e).app.config.header.showSettings=v)},null,8,["label","modelValue"])]),_:1}),h(m,{cols:"6",lg:""},{default:E(()=>[h(f,{label:r.$t(ue+"showUpdate"),modelValue:k(e).app.config.header.showUpdate,"onUpdate:modelValue":o[12]||(o[12]=v=>k(e).app.config.header.showUpdate=v)},null,8,["label","modelValue"])]),_:1}),h(m,{cols:"6",lg:""},{default:E(()=>[h(f,{label:r.$t(ue+"showLanguages"),modelValue:k(e).app.config.header.showLanguages,"onUpdate:modelValue":o[13]||(o[13]=v=>k(e).app.config.header.showLanguages=v)},null,8,["label","modelValue"])]),_:1})]),_:1})]),_:1}),h(g),h(c,{title:r.$t(ue+"optionsCommandTitle")},{append:E(()=>[h(s,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:o[14]||(o[14]=v=>k(e).help("optionsmenü-fhem-befehle"))})]),_:1},8,["title"]),(H(!0),Me(Ke,null,Ze(k(e).app.config.header.commands,(v,b)=>(H(),W(c,{key:b},{default:E(()=>[h(d,{"no-gutters":""},{default:E(()=>[h(m,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"commandNamePlaceholder"),label:r.$t(ue+"commandName"),rules:[n.required],modelValue:v.name,"onUpdate:modelValue":x=>v.name=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),h(m,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"commandTitlePlaceholder"),label:r.$t(ue+"commandTitle"),rules:[n.required],modelValue:v.title,"onUpdate:modelValue":x=>v.title=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),h(m,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"commandIconPlaceholder"),label:r.$t(ue+"commandIcon"),"append-inner-icon":v.icon,modelValue:v.icon,"onUpdate:modelValue":x=>v.icon=x},null,8,["placeholder","label","append-inner-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),h(m,{cols:"10",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"commandCmdPlaceholder"),label:r.$t(ue+"commandCmd"),rules:[n.required],modelValue:v.cmd,"onUpdate:modelValue":x=>v.cmd=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),h(m,{class:"pt-3 text-right"},{default:E(()=>[h(s,{variant:"text",icon:"mdi-delete",onClick:x=>t(b)},null,8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)),h(c,null,{default:E(()=>[h(y,{ref_key:"form",ref:l},{default:E(()=>[h(d,{"no-gutters":""},{default:E(()=>[h(m,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"commandNamePlaceholder"),label:r.$t(ue+"commandName"),rules:[n.required],modelValue:a.name,"onUpdate:modelValue":o[15]||(o[15]=v=>a.name=v)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),h(m,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"commandTitlePlaceholder"),label:r.$t(ue+"commandTitle"),rules:[n.required],modelValue:a.title,"onUpdate:modelValue":o[16]||(o[16]=v=>a.title=v)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),h(m,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"commandIconPlaceholder"),label:r.$t(ue+"commandIcon"),"append-inner-icon":a.icon,modelValue:a.icon,"onUpdate:modelValue":o[17]||(o[17]=v=>a.icon=v)},null,8,["placeholder","label","append-inner-icon","modelValue"])]),_:1}),h(m,{cols:"9",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(p,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(ue+"commandCmdPlaceholder"),label:r.$t(ue+"commandCmd"),rules:[n.required],modelValue:a.cmd,"onUpdate:modelValue":o[18]||(o[18]=v=>a.cmd=v)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),h(m,{class:"pt-3 text-right"},{default:E(()=>[h(s,{variant:"text",icon:"mdi-cancel",onClick:o[19]||(o[19]=v=>l.value.reset())}),h(s,{variant:"text",icon:"mdi-plus",disabled:!a.name||!a.title||!a.cmd,onClick:o[20]||(o[20]=v=>i())},null,8,["disabled"])]),_:1})]),_:1})]),_:1},512)]),_:1})]),_:1})}}},ye="_app.settings.navigation.",Nr={__name:"SettingsNavigation",setup(u){const{mobile:e}=Mn(),n=qe(),l=lr({path:[],route:["navigation"],items:[],newItem:{name:null,title:null,icon:null,divider:!1,groupAsChips:!1,sort:!1,group:[]}}),a=Ve(),i={required:p=>!!p||n.replacer("%t(_app.settings.rules.required)")};function t(p){typeof p<"u"&&(l.path.push(p,"group"),l.route.push(l.items[p].name)),l.items=n.getEl(n.app.config.navigation,l.path)}function r(){let p=JSON.parse(JSON.stringify(l.newItem));n.getEl(n.app.config.navigation,l.path).push(p),t(),a.value.reset()}function o(p){n.getEl(n.app.config.navigation,l.path).splice(p,1)}function s(p){return(n.getEl(l.items[p],["group"])||[]).length}function c(){l.route.pop(),l.path.splice(-2,2),t()}return t(),(p,m)=>{const f=R("v-btn"),d=R("v-list-item"),g=R("v-text-field"),y=R("v-col"),S=R("v-checkbox"),v=R("v-icon"),b=R("v-badge"),x=R("v-row"),O=R("v-divider"),I=R("v-form"),V=R("v-list");return H(),W(V,null,{default:E(()=>[h(d,{title:p.$t(ye+"title")},{append:E(()=>[h(f,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:m[0]||(m[0]=T=>k(n).help("navigation"))})]),_:1},8,["title"]),l.path.length>0?(H(),W(d,{key:0},{default:E(()=>[h(f,{variant:"text",icon:"mdi-arrow-up-left",onClick:m[1]||(m[1]=T=>c())}),Ae(" "+$e(l.route.join(" > ")),1)]),_:1})):ee("",!0),(H(!0),Me(Ke,null,Ze(l.items,(T,C)=>(H(),W(d,{key:C},{default:E(()=>[h(x,{"no-gutters":""},{default:E(()=>[h(y,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:E(()=>[h(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:p.$t(ye+"namePlaceholder"),label:p.$t(ye+"name"),rules:[i.required],modelValue:T.name,"onUpdate:modelValue":w=>T.name=w},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),h(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:p.$t(ye+"title1Placeholder"),label:p.$t(ye+"title1"),modelValue:T.title,"onUpdate:modelValue":w=>T.title=w},null,8,["placeholder","label","modelValue","onUpdate:modelValue"])]),_:2},1024),h(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:p.$t(ye+"iconPlaceholder"),label:p.$t(ye+"icon"),"append-inner-icon":T.icon,modelValue:T.icon,"onUpdate:modelValue":w=>T.icon=w},null,8,["placeholder","label","append-inner-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),h(y,{cols:4,lg:"",class:"pt-1"},{default:E(()=>[h(S,{hint:p.$t(ye+"groupAsChipsHint"),label:p.$t(ye+"groupAsChips"),modelValue:T.groupAsChips,"onUpdate:modelValue":w=>T.groupAsChips=w},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),h(y,{cols:4,lg:"",class:"pt-1"},{default:E(()=>[h(S,{hint:p.$t(ye+"sortHint"),label:p.$t(ye+"sort"),modelValue:T.sort,"onUpdate:modelValue":w=>T.sort=w},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),h(y,{cols:"4",lg:"",class:"pt-1"},{default:E(()=>[h(S,{hint:p.$t(ye+"dividerHint"),label:p.$t(ye+"divider"),modelValue:T.divider,"onUpdate:modelValue":w=>T.divider=w},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),h(y,{class:"pt-3 text-right"},{default:E(()=>[h(f,{variant:"text",icon:"",onClick:w=>t(C)},{default:E(()=>[s(C)>0?(H(),W(b,{key:0,color:"success",content:s(C)},{default:E(()=>[h(v,{icon:"mdi-arrow-down-right"})]),_:2},1032,["content"])):ee("",!0),s(C)===0?(H(),W(v,{key:1,icon:"mdi-arrow-down-right"})):ee("",!0)]),_:2},1032,["onClick"]),h(f,{variant:"text",icon:"mdi-delete",onClick:w=>o(C)},null,8,["onClick"])]),_:2},1024)]),_:2},1024),k(e)?(H(),W(O,{key:0})):ee("",!0)]),_:2},1024))),128)),h(d,null,{default:E(()=>[h(I,{ref_key:"form",ref:a},{default:E(()=>[h(x,{"no-gutters":""},{default:E(()=>[h(y,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:E(()=>[h(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:p.$t(ye+"namePlaceholder"),label:p.$t(ye+"name"),rules:[i.required],modelValue:l.newItem.name,"onUpdate:modelValue":m[2]||(m[2]=T=>l.newItem.name=T)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),h(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:p.$t(ye+"title1Placeholder"),label:p.$t(ye+"title1"),modelValue:l.newItem.title,"onUpdate:modelValue":m[3]||(m[3]=T=>l.newItem.title=T)},null,8,["placeholder","label","modelValue"])]),_:1}),h(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:E(()=>[h(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:p.$t(ye+"iconPlaceholder"),label:p.$t(ye+"icon"),"append-inner-icon":l.newItem.icon,modelValue:l.newItem.icon,"onUpdate:modelValue":m[4]||(m[4]=T=>l.newItem.icon=T)},null,8,["placeholder","label","append-inner-icon","modelValue"])]),_:1}),h(y,{cols:"4",lg:"",class:"pt-1"},{default:E(()=>[h(S,{hint:p.$t(ye+"groupAsChipsHint"),label:p.$t(ye+"groupAsChips"),modelValue:l.newItem.groupAsChips,"onUpdate:modelValue":m[5]||(m[5]=T=>l.newItem.groupAsChips=T)},null,8,["hint","label","modelValue"])]),_:1}),h(y,{cols:"4",lg:"",class:"pt-1"},{default:E(()=>[h(S,{hint:p.$t(ye+"sortHint"),label:p.$t(ye+"sort"),modelValue:l.newItem.sort,"onUpdate:modelValue":m[6]||(m[6]=T=>l.newItem.sort=T)},null,8,["hint","label","modelValue"])]),_:1}),h(y,{cols:"4",lg:"",class:"pt-1"},{default:E(()=>[h(S,{hint:p.$t(ye+"dividerHint"),label:p.$t(ye+"divider"),modelValue:l.newItem.divider,"onUpdate:modelValue":m[7]||(m[7]=T=>l.newItem.divider=T)},null,8,["hint","label","modelValue"])]),_:1}),h(y,{class:"pt-3 text-right"},{default:E(()=>[h(f,{variant:"text",icon:"mdi-cancel",onClick:m[8]||(m[8]=T=>a.value.reset())}),h(f,{variant:"text",icon:"mdi-plus",disabled:!l.newItem.name,onClick:m[9]||(m[9]=T=>r())},null,8,["disabled"])]),_:1})]),_:1})]),_:1},512)]),_:1})]),_:1})}}};function Ht(){return Ht=Object.assign||function(u){for(var e=1;e";return e},lineNumbersCount:function(){var e=this.codeData.split(/\r\n|\n/).length;return e}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(!(!this.lineNumbers||!this.autoStyleLineNumbers)){var e=this.$refs.pre,n=this.$el.querySelector(".prism-editor__line-numbers"),l=window.getComputedStyle(e);this.$nextTick(function(){var a="border-top-left-radius",i="border-bottom-left-radius";if(n){n.style[a]=l[a],n.style[i]=l[i],e.style[a]="0",e.style[i]="0";var t=["background-color","margin-top","padding-top","font-family","font-size","line-height"];t.forEach(function(r){n.style[r]=l[r]}),n.style["margin-bottom"]="-"+l["padding-top"]}})}},_recordCurrentState:function(){var e=this.$refs.textarea;if(e){var n=e.value,l=e.selectionStart,a=e.selectionEnd;this._recordChange({value:n,selectionStart:l,selectionEnd:a})}},_getLines:function(e,n){return e.substring(0,n).split(` `)},_applyEdits:function(e){var n=this.$refs.textarea,l=this.history.stack[this.history.offset];l&&n&&(this.history.stack[this.history.offset]=Ht({},l,{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),this._recordChange(e),this._updateInput(e)},_recordChange:function(e,n){n===void 0&&(n=!1);var l=this.history,a=l.stack,i=l.offset;if(a.length&&i>-1){this.history.stack=a.slice(0,i+1);var t=this.history.stack.length;if(t>Wn){var r=t-Wn;this.history.stack=a.slice(r,t),this.history.offset=Math.max(this.history.offset-r,0)}}var o=Date.now();if(n){var s=this.history.stack[this.history.offset];if(s&&o-s.timestamp=p&&j<=m&&L.startsWith(s)?L.substring(s.length):L}).join(` `);if(t!==f){var d=c[p];this._applyEdits({value:f,selectionStart:d.startsWith(s)?r-s.length:r,selectionEnd:o-(t.length-f.length)})}}else if(r!==o){var g=this._getLines(t,r),y=g.length-1,S=this._getLines(t,o).length-1,v=g[y];this._applyEdits({value:t.split(` @@ -20,4 +20,4 @@ import{u as qe,f as Ve,g as lr,r as R,o as H,a as W,w as E,e as h,h as k,b as Me In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _r="1.14.0";function st(u){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(u)}var ut=st(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Xt=st(/Edge/i),Xn=st(/firefox/i),Bt=st(/safari/i)&&!st(/chrome/i)&&!st(/android/i),fr=st(/iP(ad|od|hone)/i),ea=st(/chrome/i)&&st(/android/i),vr={capture:!1,passive:!1};function ie(u,e,n){u.addEventListener(e,n,!ut&&vr)}function oe(u,e,n){u.removeEventListener(e,n,!ut&&vr)}function cn(u,e){if(e){if(e[0]===">"&&(e=e.substring(1)),u)try{if(u.matches)return u.matches(e);if(u.msMatchesSelector)return u.msMatchesSelector(e);if(u.webkitMatchesSelector)return u.webkitMatchesSelector(e)}catch{return!1}return!1}}function ta(u){return u.host&&u!==document&&u.host.nodeType?u.host:u.parentNode}function nt(u,e,n,l){if(u){n=n||document;do{if(e!=null&&(e[0]===">"?u.parentNode===n&&cn(u,e):cn(u,e))||l&&u===n)return u;if(u===n)break}while(u=ta(u))}return null}var Jn=/\s+/g;function Ee(u,e,n){if(u&&e)if(u.classList)u.classList[n?"add":"remove"](e);else{var l=(" "+u.className+" ").replace(Jn," ").replace(" "+e+" "," ");u.className=(l+(n?" "+e:"")).replace(Jn," ")}}function Y(u,e,n){var l=u&&u.style;if(l){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(u,""):u.currentStyle&&(n=u.currentStyle),e===void 0?n:n[e];!(e in l)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),l[e]=n+(typeof n=="string"?"":"px")}}function xt(u,e){var n="";if(typeof u=="string")n=u;else do{var l=Y(u,"transform");l&&l!=="none"&&(n=l+" "+n)}while(!e&&(u=u.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function mr(u,e,n){if(u){var l=u.getElementsByTagName(e),a=0,i=l.length;if(n)for(;a=i:t=a<=i,!t)return l;if(l===lt())break;l=ft(l,!1)}return!1}function Dt(u,e,n,l){for(var a=0,i=0,t=u.children;i2&&arguments[2]!==void 0?arguments[2]:{},a=l.evt,i=Yr(l,sa);Jt.pluginEvent.bind(Q)(e,n,it({dragEl:G,parentEl:Ie,ghostEl:re,rootEl:be,nextEl:bt,lastDownEl:ln,cloneEl:Oe,cloneHidden:ct,dragStarted:Ut,putSortable:Ne,activeSortable:Q.active,originalEvent:a,oldIndex:wt,oldDraggableIndex:zt,newIndex:Ye,newDraggableIndex:pt,hideGhostForTarget:Sr,unhideGhostForTarget:Er,cloneNowHidden:function(){ct=!0},cloneNowShown:function(){ct=!1},dispatchSortableEvent:function(r){Ge({sortable:n,name:r,originalEvent:a})}},i))};function Ge(u){Mt(it({putSortable:Ne,cloneEl:Oe,targetEl:G,rootEl:be,oldIndex:wt,oldDraggableIndex:zt,newIndex:Ye,newDraggableIndex:pt},u))}var G,Ie,re,be,bt,ln,Oe,ct,wt,Ye,zt,pt,_t,Ne,Ct=!1,fn=!1,vn=[],gt,et,On,Cn,_n,er,Ut,It,Wt,Yt=!1,en=!1,sn,Ue,wn=[],Fn=!1,mn=[],hn=typeof document<"u",tn=fr,tr=Xt||ut?"cssFloat":"float",ua=hn&&!ea&&!fr&&"draggable"in document.createElement("div"),yr=function(){if(hn){if(ut)return!1;var u=document.createElement("x");return u.style.cssText="pointer-events:auto",u.style.pointerEvents==="auto"}}(),br=function(e,n){var l=Y(e),a=parseInt(l.width)-parseInt(l.paddingLeft)-parseInt(l.paddingRight)-parseInt(l.borderLeftWidth)-parseInt(l.borderRightWidth),i=Dt(e,0,n),t=Dt(e,1,n),r=i&&Y(i),o=t&&Y(t),s=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+xe(i).width,c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+xe(t).width;if(l.display==="flex")return l.flexDirection==="column"||l.flexDirection==="column-reverse"?"vertical":"horizontal";if(l.display==="grid")return l.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&r.float&&r.float!=="none"){var p=r.float==="left"?"left":"right";return t&&(o.clear==="both"||o.clear===p)?"vertical":"horizontal"}return i&&(r.display==="block"||r.display==="flex"||r.display==="table"||r.display==="grid"||s>=a&&l[tr]==="none"||t&&l[tr]==="none"&&s+c>a)?"vertical":"horizontal"},da=function(e,n,l){var a=l?e.left:e.top,i=l?e.right:e.bottom,t=l?e.width:e.height,r=l?n.left:n.top,o=l?n.right:n.bottom,s=l?n.width:n.height;return a===r||i===o||a+t/2===r+s/2},pa=function(e,n){var l;return vn.some(function(a){var i=a[Le].options.emptyInsertThreshold;if(!(!i||Un(a))){var t=xe(a),r=e>=t.left-i&&e<=t.right+i,o=n>=t.top-i&&n<=t.bottom+i;if(r&&o)return l=a}}),l},xr=function(e){function n(i,t){return function(r,o,s,c){var p=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(i==null&&(t||p))return!0;if(i==null||i===!1)return!1;if(t&&i==="clone")return i;if(typeof i=="function")return n(i(r,o,s,c),t)(r,o,s,c);var m=(t?r:o).options.group.name;return i===!0||typeof i=="string"&&i===m||i.join&&i.indexOf(m)>-1}}var l={},a=e.group;(!a||on(a)!="object")&&(a={name:a}),l.name=a.name,l.checkPull=n(a.pull,!0),l.checkPut=n(a.put),l.revertClone=a.revertClone,e.group=l},Sr=function(){!yr&&re&&Y(re,"display","none")},Er=function(){!yr&&re&&Y(re,"display","")};hn&&document.addEventListener("click",function(u){if(fn)return u.preventDefault(),u.stopPropagation&&u.stopPropagation(),u.stopImmediatePropagation&&u.stopImmediatePropagation(),fn=!1,!1},!0);var ht=function(e){if(G){e=e.touches?e.touches[0]:e;var n=pa(e.clientX,e.clientY);if(n){var l={};for(var a in e)e.hasOwnProperty(a)&&(l[a]=e[a]);l.target=l.rootEl=n,l.preventDefault=void 0,l.stopPropagation=void 0,n[Le]._onDragOver(l)}}},ca=function(e){G&&G.parentNode[Le]._isOutsideThisEl(e.target)};function Q(u,e){if(!(u&&u.nodeType&&u.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(u));this.el=u,this.options=e=Qe({},e),u[Le]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(u.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return br(u,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,r){t.setData("Text",r.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Q.supportPointer!==!1&&"PointerEvent"in window&&!Bt,emptyInsertThreshold:5};Jt.initializePlugins(this,u,n);for(var l in n)!(l in e)&&(e[l]=n[l]);xr(e);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=e.forceFallback?!1:ua,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?ie(u,"pointerdown",this._onTapStart):(ie(u,"mousedown",this._onTapStart),ie(u,"touchstart",this._onTapStart)),this.nativeDraggable&&(ie(u,"dragover",this),ie(u,"dragenter",this)),vn.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Qe(this,oa())}Q.prototype={constructor:Q,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(It=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,G):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,l=this.el,a=this.options,i=a.preventOnFilter,t=e.type,r=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,o=(r||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||o,c=a.filter;if(xa(l),!G&&!(/mousedown|pointerdown/.test(t)&&e.button!==0||a.disabled)&&!s.isContentEditable&&!(!this.nativeDraggable&&Bt&&o&&o.tagName.toUpperCase()==="SELECT")&&(o=nt(o,a.draggable,l,!1),!(o&&o.animated)&&ln!==o)){if(wt=Ce(o),zt=Ce(o,a.draggable),typeof c=="function"){if(c.call(this,e,o,this)){Ge({sortable:n,rootEl:s,name:"filter",targetEl:o,toEl:l,fromEl:l}),Be("filter",n,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(p){if(p=nt(s,p.trim(),l,!1),p)return Ge({sortable:n,rootEl:p,name:"filter",targetEl:o,fromEl:l,toEl:l}),Be("filter",n,{evt:e}),!0}),c)){i&&e.cancelable&&e.preventDefault();return}a.handle&&!nt(s,a.handle,l,!1)||this._prepareDragStart(e,r,o)}}},_prepareDragStart:function(e,n,l){var a=this,i=a.el,t=a.options,r=i.ownerDocument,o;if(l&&!G&&l.parentNode===i){var s=xe(l);if(be=i,G=l,Ie=G.parentNode,bt=G.nextSibling,ln=l,_t=t.group,Q.dragged=G,gt={target:G,clientX:(n||e).clientX,clientY:(n||e).clientY},_n=gt.clientX-s.left,er=gt.clientY-s.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,G.style["will-change"]="all",o=function(){if(Be("delayEnded",a,{evt:e}),Q.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Xn&&a.nativeDraggable&&(G.draggable=!0),a._triggerDragStart(e,n),Ge({sortable:a,name:"choose",originalEvent:e}),Ee(G,t.chosenClass,!0)},t.ignore.split(",").forEach(function(c){mr(G,c.trim(),Dn)}),ie(r,"dragover",ht),ie(r,"mousemove",ht),ie(r,"touchmove",ht),ie(r,"mouseup",a._onDrop),ie(r,"touchend",a._onDrop),ie(r,"touchcancel",a._onDrop),Xn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,G.draggable=!0),Be("delayStart",this,{evt:e}),t.delay&&(!t.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Xt||ut))){if(Q.eventCanceled){this._onDrop();return}ie(r,"mouseup",a._disableDelayedDrag),ie(r,"touchend",a._disableDelayedDrag),ie(r,"touchcancel",a._disableDelayedDrag),ie(r,"mousemove",a._delayedDragTouchMoveHandler),ie(r,"touchmove",a._delayedDragTouchMoveHandler),t.supportPointer&&ie(r,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(o,t.delay)}else o()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){G&&Dn(G),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;oe(e,"mouseup",this._disableDelayedDrag),oe(e,"touchend",this._disableDelayedDrag),oe(e,"touchcancel",this._disableDelayedDrag),oe(e,"mousemove",this._delayedDragTouchMoveHandler),oe(e,"touchmove",this._delayedDragTouchMoveHandler),oe(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?ie(document,"pointermove",this._onTouchMove):n?ie(document,"touchmove",this._onTouchMove):ie(document,"mousemove",this._onTouchMove):(ie(G,"dragend",this),ie(be,"dragstart",this._onDragStart));try{document.selection?un(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(Ct=!1,be&&G){Be("dragStarted",this,{evt:n}),this.nativeDraggable&&ie(document,"dragover",ca);var l=this.options;!e&&Ee(G,l.dragClass,!1),Ee(G,l.ghostClass,!0),Q.active=this,e&&this._appendGhost(),Ge({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(et){this._lastX=et.clientX,this._lastY=et.clientY,Sr();for(var e=document.elementFromPoint(et.clientX,et.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(et.clientX,et.clientY),e!==n);)n=e;if(G.parentNode[Le]._isOutsideThisEl(e),n)do{if(n[Le]){var l=void 0;if(l=n[Le]._onDragOver({clientX:et.clientX,clientY:et.clientY,target:e,rootEl:n}),l&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);Er()}},_onTouchMove:function(e){if(gt){var n=this.options,l=n.fallbackTolerance,a=n.fallbackOffset,i=e.touches?e.touches[0]:e,t=re&&xt(re,!0),r=re&&t&&t.a,o=re&&t&&t.d,s=tn&&Ue&&Qn(Ue),c=(i.clientX-gt.clientX+a.x)/(r||1)+(s?s[0]-wn[0]:0)/(r||1),p=(i.clientY-gt.clientY+a.y)/(o||1)+(s?s[1]-wn[1]:0)/(o||1);if(!Q.active&&!Ct){if(l&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(Ge({rootEl:Ie,name:"add",toEl:Ie,fromEl:be,originalEvent:e}),Ge({sortable:this,name:"remove",toEl:Ie,originalEvent:e}),Ge({rootEl:Ie,name:"sort",toEl:Ie,fromEl:be,originalEvent:e}),Ge({sortable:this,name:"sort",toEl:Ie,originalEvent:e})),Ne&&Ne.save()):Ye!==wt&&Ye>=0&&(Ge({sortable:this,name:"update",toEl:Ie,originalEvent:e}),Ge({sortable:this,name:"sort",toEl:Ie,originalEvent:e})),Q.active&&((Ye==null||Ye===-1)&&(Ye=wt,pt=zt),Ge({sortable:this,name:"end",toEl:Ie,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Be("nulling",this),be=G=Ie=re=bt=Oe=ln=ct=gt=et=Ut=Ye=pt=wt=zt=It=Wt=Ne=_t=Q.dragged=Q.ghost=Q.clone=Q.active=null,mn.forEach(function(e){e.checked=!0}),mn.length=On=Cn=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":G&&(this._onDragOver(e),fa(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,l=this.el.children,a=0,i=l.length,t=this.options;al.right+a||u.clientX<=l.right&&u.clientY>l.bottom&&u.clientX>=l.left:u.clientX>l.right&&u.clientY>l.top||u.clientX<=l.right&&u.clientY>l.bottom+a}function ha(u,e,n,l,a,i,t,r){var o=l?u.clientY:u.clientX,s=l?n.height:n.width,c=l?n.top:n.left,p=l?n.bottom:n.right,m=!1;if(!t){if(r&&snc+s*i/2:op-sn)return-Wt}else if(o>c+s*(1-a)/2&&op-s*i/2)?o>c+s/2?1:-1:0}function ya(u){return Ce(G)1&&(ne.forEach(function(r){i.addAnimationState({target:r,rect:ke?xe(r):t}),En(r),r.fromRect=t,l.removeAnimationState(r)}),ke=!1,Ca(!this.options.removeCloneOnHide,a))},dragOverCompleted:function(n){var l=n.sortable,a=n.isOwner,i=n.insertion,t=n.activeSortable,r=n.parentEl,o=n.putSortable,s=this.options;if(i){if(a&&t._hideClone(),jt=!1,s.animation&&ne.length>1&&(ke||!a&&!t.options.sort&&!o)){var c=xe(he,!1,!0,!0);ne.forEach(function(m){m!==he&&(qn(m,c),r.appendChild(m))}),ke=!0}if(!a)if(ke||an(),ne.length>1){var p=rn;t._showClone(l),t.options.animation&&!rn&&p&&We.forEach(function(m){t.addAnimationState({target:m,rect:Nt}),m.fromRect=Nt,m.thisAnimationDuration=null})}else t._showClone(l)}},dragOverAnimationCapture:function(n){var l=n.dragRect,a=n.isOwner,i=n.activeSortable;if(ne.forEach(function(r){r.thisAnimationDuration=null}),i.options.animation&&!a&&i.multiDrag.isMultiDrag){Nt=Qe({},l);var t=xt(he,!0);Nt.top-=t.f,Nt.left-=t.e}},dragOverAnimationComplete:function(){ke&&(ke=!1,an())},drop:function(n){var l=n.originalEvent,a=n.rootEl,i=n.parentEl,t=n.sortable,r=n.dispatchSortableEvent,o=n.oldIndex,s=n.putSortable,c=s||this.sortable;if(l){var p=this.options,m=i.children;if(!Ot)if(p.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ee(he,p.selectedClass,!~ne.indexOf(he)),~ne.indexOf(he))ne.splice(ne.indexOf(he),1),Rt=null,Mt({sortable:t,rootEl:a,name:"deselect",targetEl:he,originalEvt:l});else{if(ne.push(he),Mt({sortable:t,rootEl:a,name:"select",targetEl:he,originalEvt:l}),l.shiftKey&&Rt&&t.el.contains(Rt)){var f=Ce(Rt),d=Ce(he);if(~f&&~d&&f!==d){var g,y;for(d>f?(y=f,g=d):(y=d,g=f+1);y1){var S=xe(he),v=Ce(he,":not(."+this.options.selectedClass+")");if(!jt&&p.animation&&(he.thisAnimationDuration=null),c.captureAnimationState(),!jt&&(p.animation&&(he.fromRect=S,ne.forEach(function(x){if(x.thisAnimationDuration=null,x!==he){var O=ke?xe(x):S;x.fromRect=O,c.addAnimationState({target:x,rect:O})}})),an(),ne.forEach(function(x){m[v]?i.insertBefore(x,m[v]):i.appendChild(x),v++}),o===Ce(he))){var b=!1;ne.forEach(function(x){if(x.sortableIndex!==Ce(x)){b=!0;return}}),b&&r("update")}ne.forEach(function(x){En(x)}),c.animateAll()}tt=c}(a===i||s&&s.lastPutMode!=="clone")&&We.forEach(function(x){x.parentNode&&x.parentNode.removeChild(x)})}},nullingGlobal:function(){this.isMultiDrag=Ot=!1,We.length=0},destroyGlobal:function(){this._deselectMultiDrag(),oe(document,"pointerup",this._deselectMultiDrag),oe(document,"mouseup",this._deselectMultiDrag),oe(document,"touchend",this._deselectMultiDrag),oe(document,"keydown",this._checkKeyDown),oe(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Ot<"u"&&Ot)&&tt===this.sortable&&!(n&&nt(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;ne.length;){var l=ne[0];Ee(l,this.options.selectedClass,!1),ne.shift(),Mt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:l,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Qe(u,{pluginName:"multiDrag",utils:{select:function(n){var l=n.parentNode[Le];!l||!l.options.multiDrag||~ne.indexOf(n)||(tt&&tt!==l&&(tt.multiDrag._deselectMultiDrag(),tt=l),Ee(n,l.options.selectedClass,!0),ne.push(n))},deselect:function(n){var l=n.parentNode[Le],a=ne.indexOf(n);!l||!l.options.multiDrag||!~a||(Ee(n,l.options.selectedClass,!1),ne.splice(a,1))}},eventProperties:function(){var n=this,l=[],a=[];return ne.forEach(function(i){l.push({multiDragElement:i,index:i.sortableIndex});var t;ke&&i!==he?t=-1:ke?t=Ce(i,":not(."+n.options.selectedClass+")"):t=Ce(i),a.push({multiDragElement:i,index:t})}),{items:Xr(ne),clones:[].concat(We),oldIndicies:l,newIndicies:a}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function Ca(u,e){ne.forEach(function(n,l){var a=e.children[n.sortableIndex+(u?Number(l):0)];a?e.insertBefore(n,a):e.appendChild(n)})}function rr(u,e){We.forEach(function(n,l){var a=e.children[n.sortableIndex+(u?Number(l):0)];a?e.insertBefore(n,a):e.appendChild(n)})}function an(){ne.forEach(function(u){u!==he&&u.parentNode&&u.parentNode.removeChild(u)})}Q.mount(new Sa);Q.mount(Gn,Kn);const wa=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:Oa,Sortable:Q,Swap:Ea,default:Q},Symbol.toStringTag,{value:"Module"})),Da=Pr(wa);(function(u,e){(function(l,a){u.exports=a(Ar,Da)})(typeof self<"u"?self:$n,function(n,l){return function(a){var i={};function t(r){if(i[r])return i[r].exports;var o=i[r]={i:r,l:!1,exports:{}};return a[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=a,t.c=i,t.d=function(r,o,s){t.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:s})},t.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,o){if(o&1&&(r=t(r)),o&8||o&4&&typeof r=="object"&&r&&r.__esModule)return r;var s=Object.create(null);if(t.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:r}),o&2&&typeof r!="string")for(var c in r)t.d(s,c,(function(p){return r[p]}).bind(null,c));return s},t.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(o,"a",o),o},t.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},t.p="",t(t.s="fb15")}({"00ee":function(a,i,t){var r=t("b622"),o=r("toStringTag"),s={};s[o]="z",a.exports=String(s)==="[object z]"},"0366":function(a,i,t){var r=t("1c0b");a.exports=function(o,s,c){if(r(o),s===void 0)return o;switch(c){case 0:return function(){return o.call(s)};case 1:return function(p){return o.call(s,p)};case 2:return function(p,m){return o.call(s,p,m)};case 3:return function(p,m,f){return o.call(s,p,m,f)}}return function(){return o.apply(s,arguments)}}},"057f":function(a,i,t){var r=t("fc6a"),o=t("241c").f,s={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(m){try{return o(m)}catch{return c.slice()}};a.exports.f=function(f){return c&&s.call(f)=="[object Window]"?p(f):o(r(f))}},"06cf":function(a,i,t){var r=t("83ab"),o=t("d1e7"),s=t("5c6c"),c=t("fc6a"),p=t("c04e"),m=t("5135"),f=t("0cfb"),d=Object.getOwnPropertyDescriptor;i.f=r?d:function(y,S){if(y=c(y),S=p(S,!0),f)try{return d(y,S)}catch{}if(m(y,S))return s(!o.f.call(y,S),y[S])}},"0cfb":function(a,i,t){var r=t("83ab"),o=t("d039"),s=t("cc12");a.exports=!r&&!o(function(){return Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(a,i,t){var r=t("23e7"),o=t("d58f").left,s=t("a640"),c=t("ae40"),p=s("reduce"),m=c("reduce",{1:0});r({target:"Array",proto:!0,forced:!p||!m},{reduce:function(d){return o(this,d,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(a,i,t){var r=t("c6b6"),o=t("9263");a.exports=function(s,c){var p=s.exec;if(typeof p=="function"){var m=p.call(s,c);if(typeof m!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return m}if(r(s)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return o.call(s,c)}},"159b":function(a,i,t){var r=t("da84"),o=t("fdbc"),s=t("17c2"),c=t("9112");for(var p in o){var m=r[p],f=m&&m.prototype;if(f&&f.forEach!==s)try{c(f,"forEach",s)}catch{f.forEach=s}}},"17c2":function(a,i,t){var r=t("b727").forEach,o=t("a640"),s=t("ae40"),c=o("forEach"),p=s("forEach");a.exports=!c||!p?function(f){return r(this,f,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(a,i,t){var r=t("d066");a.exports=r("document","documentElement")},"1c0b":function(a,i){a.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(a,i,t){var r=t("b622"),o=r("iterator"),s=!1;try{var c=0,p={next:function(){return{done:!!c++}},return:function(){s=!0}};p[o]=function(){return this},Array.from(p,function(){throw 2})}catch{}a.exports=function(m,f){if(!f&&!s)return!1;var d=!1;try{var g={};g[o]=function(){return{next:function(){return{done:d=!0}}}},m(g)}catch{}return d}},"1d80":function(a,i){a.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"1dde":function(a,i,t){var r=t("d039"),o=t("b622"),s=t("2d00"),c=o("species");a.exports=function(p){return s>=51||!r(function(){var m=[],f=m.constructor={};return f[c]=function(){return{foo:1}},m[p](Boolean).foo!==1})}},"23cb":function(a,i,t){var r=t("a691"),o=Math.max,s=Math.min;a.exports=function(c,p){var m=r(c);return m<0?o(m+p,0):s(m,p)}},"23e7":function(a,i,t){var r=t("da84"),o=t("06cf").f,s=t("9112"),c=t("6eeb"),p=t("ce4e"),m=t("e893"),f=t("94ca");a.exports=function(d,g){var y=d.target,S=d.global,v=d.stat,b,x,O,I,V,T;if(S?x=r:v?x=r[y]||p(y,{}):x=(r[y]||{}).prototype,x)for(O in g){if(V=g[O],d.noTargetGet?(T=o(x,O),I=T&&T.value):I=x[O],b=f(S?O:y+(v?".":"#")+O,d.forced),!b&&I!==void 0){if(typeof V==typeof I)continue;m(V,I)}(d.sham||I&&I.sham)&&s(V,"sham",!0),c(x,O,V,d)}}},"241c":function(a,i,t){var r=t("ca84"),o=t("7839"),s=o.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(p){return r(p,s)}},"25f0":function(a,i,t){var r=t("6eeb"),o=t("825a"),s=t("d039"),c=t("ad6d"),p="toString",m=RegExp.prototype,f=m[p],d=s(function(){return f.call({source:"a",flags:"b"})!="/a/b"}),g=f.name!=p;(d||g)&&r(RegExp.prototype,p,function(){var S=o(this),v=String(S.source),b=S.flags,x=String(b===void 0&&S instanceof RegExp&&!("flags"in m)?c.call(S):b);return"/"+v+"/"+x},{unsafe:!0})},"2ca0":function(a,i,t){var r=t("23e7"),o=t("06cf").f,s=t("50c4"),c=t("5a34"),p=t("1d80"),m=t("ab13"),f=t("c430"),d="".startsWith,g=Math.min,y=m("startsWith"),S=!f&&!y&&!!function(){var v=o(String.prototype,"startsWith");return v&&!v.writable}();r({target:"String",proto:!0,forced:!S&&!y},{startsWith:function(b){var x=String(p(this));c(b);var O=s(g(arguments.length>1?arguments[1]:void 0,x.length)),I=String(b);return d?d.call(x,I,O):x.slice(O,O+I.length)===I}})},"2d00":function(a,i,t){var r=t("da84"),o=t("342f"),s=r.process,c=s&&s.versions,p=c&&c.v8,m,f;p?(m=p.split("."),f=m[0]+m[1]):o&&(m=o.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=o.match(/Chrome\/(\d+)/),m&&(f=m[1]))),a.exports=f&&+f},"342f":function(a,i,t){var r=t("d066");a.exports=r("navigator","userAgent")||""},"35a1":function(a,i,t){var r=t("f5df"),o=t("3f8c"),s=t("b622"),c=s("iterator");a.exports=function(p){if(p!=null)return p[c]||p["@@iterator"]||o[r(p)]}},"37e8":function(a,i,t){var r=t("83ab"),o=t("9bf2"),s=t("825a"),c=t("df75");a.exports=r?Object.defineProperties:function(m,f){s(m);for(var d=c(f),g=d.length,y=0,S;g>y;)o.f(m,S=d[y++],f[S]);return m}},"3bbe":function(a,i,t){var r=t("861d");a.exports=function(o){if(!r(o)&&o!==null)throw TypeError("Can't set "+String(o)+" as a prototype");return o}},"3ca3":function(a,i,t){var r=t("6547").charAt,o=t("69f3"),s=t("7dd0"),c="String Iterator",p=o.set,m=o.getterFor(c);s(String,"String",function(f){p(this,{type:c,string:String(f),index:0})},function(){var d=m(this),g=d.string,y=d.index,S;return y>=g.length?{value:void 0,done:!0}:(S=r(g,y),d.index+=S.length,{value:S,done:!1})})},"3f8c":function(a,i){a.exports={}},4160:function(a,i,t){var r=t("23e7"),o=t("17c2");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"428f":function(a,i,t){var r=t("da84");a.exports=r},"44ad":function(a,i,t){var r=t("d039"),o=t("c6b6"),s="".split;a.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return o(c)=="String"?s.call(c,""):Object(c)}:Object},"44d2":function(a,i,t){var r=t("b622"),o=t("7c73"),s=t("9bf2"),c=r("unscopables"),p=Array.prototype;p[c]==null&&s.f(p,c,{configurable:!0,value:o(null)}),a.exports=function(m){p[c][m]=!0}},"44e7":function(a,i,t){var r=t("861d"),o=t("c6b6"),s=t("b622"),c=s("match");a.exports=function(p){var m;return r(p)&&((m=p[c])!==void 0?!!m:o(p)=="RegExp")}},4930:function(a,i,t){var r=t("d039");a.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"4d64":function(a,i,t){var r=t("fc6a"),o=t("50c4"),s=t("23cb"),c=function(p){return function(m,f,d){var g=r(m),y=o(g.length),S=s(d,y),v;if(p&&f!=f){for(;y>S;)if(v=g[S++],v!=v)return!0}else for(;y>S;S++)if((p||S in g)&&g[S]===f)return p||S||0;return!p&&-1}};a.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(a,i,t){var r=t("23e7"),o=t("b727").filter,s=t("1dde"),c=t("ae40"),p=s("filter"),m=c("filter");r({target:"Array",proto:!0,forced:!p||!m},{filter:function(d){return o(this,d,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(a,i,t){var r=t("0366"),o=t("7b0b"),s=t("9bdd"),c=t("e95a"),p=t("50c4"),m=t("8418"),f=t("35a1");a.exports=function(g){var y=o(g),S=typeof this=="function"?this:Array,v=arguments.length,b=v>1?arguments[1]:void 0,x=b!==void 0,O=f(y),I=0,V,T,C,w,D,L;if(x&&(b=r(b,v>2?arguments[2]:void 0,2)),O!=null&&!(S==Array&&c(O)))for(w=O.call(y),D=w.next,T=new S;!(C=D.call(w)).done;I++)L=x?s(w,b,[C.value,I],!0):C.value,m(T,I,L);else for(V=p(y.length),T=new S(V);V>I;I++)L=x?b(y[I],I):y[I],m(T,I,L);return T.length=I,T}},"4fad":function(a,i,t){var r=t("23e7"),o=t("6f53").entries;r({target:"Object",stat:!0},{entries:function(c){return o(c)}})},"50c4":function(a,i,t){var r=t("a691"),o=Math.min;a.exports=function(s){return s>0?o(r(s),9007199254740991):0}},5135:function(a,i){var t={}.hasOwnProperty;a.exports=function(r,o){return t.call(r,o)}},5319:function(a,i,t){var r=t("d784"),o=t("825a"),s=t("7b0b"),c=t("50c4"),p=t("a691"),m=t("1d80"),f=t("8aa5"),d=t("14c3"),g=Math.max,y=Math.min,S=Math.floor,v=/\$([$&'`]|\d\d?|<[^>]*>)/g,b=/\$([$&'`]|\d\d?)/g,x=function(O){return O===void 0?O:String(O)};r("replace",2,function(O,I,V,T){var C=T.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,w=T.REPLACE_KEEPS_$0,D=C?"$":"$0";return[function(N,K){var M=m(this),P=N==null?void 0:N[O];return P!==void 0?P.call(N,M,K):I.call(String(M),N,K)},function(j,N){if(!C&&w||typeof N=="string"&&N.indexOf(D)===-1){var K=V(I,j,this,N);if(K.done)return K.value}var M=o(j),P=String(this),B=typeof N=="function";B||(N=String(N));var te=M.global;if(te){var ge=M.unicode;M.lastIndex=0}for(var fe=[];;){var le=d(M,P);if(le===null||(fe.push(le),!te))break;var Se=String(le[0]);Se===""&&(M.lastIndex=f(P,c(M.lastIndex),ge))}for(var ve="",J=0,pe=0;pe=J&&(ve+=P.slice(J,Re)+De,J=Re+me.length)}return ve+P.slice(J)}];function L(j,N,K,M,P,B){var te=K+j.length,ge=M.length,fe=b;return P!==void 0&&(P=s(P),fe=v),I.call(B,fe,function(le,Se){var ve;switch(Se.charAt(0)){case"$":return"$";case"&":return j;case"`":return N.slice(0,K);case"'":return N.slice(te);case"<":ve=P[Se.slice(1,-1)];break;default:var J=+Se;if(J===0)return le;if(J>ge){var pe=S(J/10);return pe===0?le:pe<=ge?M[pe-1]===void 0?Se.charAt(1):M[pe-1]+Se.charAt(1):le}ve=M[J-1]}return ve===void 0?"":ve})}})},5692:function(a,i,t){var r=t("c430"),o=t("c6cd");(a.exports=function(s,c){return o[s]||(o[s]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(a,i,t){var r=t("d066"),o=t("241c"),s=t("7418"),c=t("825a");a.exports=r("Reflect","ownKeys")||function(m){var f=o.f(c(m)),d=s.f;return d?f.concat(d(m)):f}},"5a34":function(a,i,t){var r=t("44e7");a.exports=function(o){if(r(o))throw TypeError("The method doesn't accept regular expressions");return o}},"5c6c":function(a,i){a.exports=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}}},"5db7":function(a,i,t){var r=t("23e7"),o=t("a2bf"),s=t("7b0b"),c=t("50c4"),p=t("1c0b"),m=t("65f0");r({target:"Array",proto:!0},{flatMap:function(d){var g=s(this),y=c(g.length),S;return p(d),S=m(g,0),S.length=o(S,g,g,y,0,1,d,arguments.length>1?arguments[1]:void 0),S}})},6547:function(a,i,t){var r=t("a691"),o=t("1d80"),s=function(c){return function(p,m){var f=String(o(p)),d=r(m),g=f.length,y,S;return d<0||d>=g?c?"":void 0:(y=f.charCodeAt(d),y<55296||y>56319||d+1===g||(S=f.charCodeAt(d+1))<56320||S>57343?c?f.charAt(d):y:c?f.slice(d,d+2):(y-55296<<10)+(S-56320)+65536)}};a.exports={codeAt:s(!1),charAt:s(!0)}},"65f0":function(a,i,t){var r=t("861d"),o=t("e8b5"),s=t("b622"),c=s("species");a.exports=function(p,m){var f;return o(p)&&(f=p.constructor,typeof f=="function"&&(f===Array||o(f.prototype))?f=void 0:r(f)&&(f=f[c],f===null&&(f=void 0))),new(f===void 0?Array:f)(m===0?0:m)}},"69f3":function(a,i,t){var r=t("7f9a"),o=t("da84"),s=t("861d"),c=t("9112"),p=t("5135"),m=t("f772"),f=t("d012"),d=o.WeakMap,g,y,S,v=function(C){return S(C)?y(C):g(C,{})},b=function(C){return function(w){var D;if(!s(w)||(D=y(w)).type!==C)throw TypeError("Incompatible receiver, "+C+" required");return D}};if(r){var x=new d,O=x.get,I=x.has,V=x.set;g=function(C,w){return V.call(x,C,w),w},y=function(C){return O.call(x,C)||{}},S=function(C){return I.call(x,C)}}else{var T=m("state");f[T]=!0,g=function(C,w){return c(C,T,w),w},y=function(C){return p(C,T)?C[T]:{}},S=function(C){return p(C,T)}}a.exports={set:g,get:y,has:S,enforce:v,getterFor:b}},"6eeb":function(a,i,t){var r=t("da84"),o=t("9112"),s=t("5135"),c=t("ce4e"),p=t("8925"),m=t("69f3"),f=m.get,d=m.enforce,g=String(String).split("String");(a.exports=function(y,S,v,b){var x=b?!!b.unsafe:!1,O=b?!!b.enumerable:!1,I=b?!!b.noTargetGet:!1;if(typeof v=="function"&&(typeof S=="string"&&!s(v,"name")&&o(v,"name",S),d(v).source=g.join(typeof S=="string"?S:"")),y===r){O?y[S]=v:c(S,v);return}else x?!I&&y[S]&&(O=!0):delete y[S];O?y[S]=v:o(y,S,v)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||p(this)})},"6f53":function(a,i,t){var r=t("83ab"),o=t("df75"),s=t("fc6a"),c=t("d1e7").f,p=function(m){return function(f){for(var d=s(f),g=o(d),y=g.length,S=0,v=[],b;y>S;)b=g[S++],(!r||c.call(d,b))&&v.push(m?[b,d[b]]:d[b]);return v}};a.exports={entries:p(!0),values:p(!1)}},"73d9":function(a,i,t){var r=t("44d2");r("flatMap")},7418:function(a,i){i.f=Object.getOwnPropertySymbols},"746f":function(a,i,t){var r=t("428f"),o=t("5135"),s=t("e538"),c=t("9bf2").f;a.exports=function(p){var m=r.Symbol||(r.Symbol={});o(m,p)||c(m,p,{value:s.f(p)})}},7839:function(a,i){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(a,i,t){var r=t("1d80");a.exports=function(o){return Object(r(o))}},"7c73":function(a,i,t){var r=t("825a"),o=t("37e8"),s=t("7839"),c=t("d012"),p=t("1be4"),m=t("cc12"),f=t("f772"),d=">",g="<",y="prototype",S="script",v=f("IE_PROTO"),b=function(){},x=function(C){return g+S+d+C+g+"/"+S+d},O=function(C){C.write(x("")),C.close();var w=C.parentWindow.Object;return C=null,w},I=function(){var C=m("iframe"),w="java"+S+":",D;return C.style.display="none",p.appendChild(C),C.src=String(w),D=C.contentWindow.document,D.open(),D.write(x("document.F=Object")),D.close(),D.F},V,T=function(){try{V=document.domain&&new ActiveXObject("htmlfile")}catch{}T=V?O(V):I();for(var C=s.length;C--;)delete T[y][s[C]];return T()};c[v]=!0,a.exports=Object.create||function(w,D){var L;return w!==null?(b[y]=r(w),L=new b,b[y]=null,L[v]=w):L=T(),D===void 0?L:o(L,D)}},"7dd0":function(a,i,t){var r=t("23e7"),o=t("9ed3"),s=t("e163"),c=t("d2bb"),p=t("d44e"),m=t("9112"),f=t("6eeb"),d=t("b622"),g=t("c430"),y=t("3f8c"),S=t("ae93"),v=S.IteratorPrototype,b=S.BUGGY_SAFARI_ITERATORS,x=d("iterator"),O="keys",I="values",V="entries",T=function(){return this};a.exports=function(C,w,D,L,j,N,K){o(D,w,L);var M=function(pe){if(pe===j&&fe)return fe;if(!b&&pe in te)return te[pe];switch(pe){case O:return function(){return new D(this,pe)};case I:return function(){return new D(this,pe)};case V:return function(){return new D(this,pe)}}return function(){return new D(this)}},P=w+" Iterator",B=!1,te=C.prototype,ge=te[x]||te["@@iterator"]||j&&te[j],fe=!b&&ge||M(j),le=w=="Array"&&te.entries||ge,Se,ve,J;if(le&&(Se=s(le.call(new C)),v!==Object.prototype&&Se.next&&(!g&&s(Se)!==v&&(c?c(Se,v):typeof Se[x]!="function"&&m(Se,x,T)),p(Se,P,!0,!0),g&&(y[P]=T))),j==I&&ge&&ge.name!==I&&(B=!0,fe=function(){return ge.call(this)}),(!g||K)&&te[x]!==fe&&m(te,x,fe),y[w]=fe,j)if(ve={values:M(I),keys:N?fe:M(O),entries:M(V)},K)for(J in ve)(b||B||!(J in te))&&f(te,J,ve[J]);else r({target:w,proto:!0,forced:b||B},ve);return ve}},"7f9a":function(a,i,t){var r=t("da84"),o=t("8925"),s=r.WeakMap;a.exports=typeof s=="function"&&/native code/.test(o(s))},"825a":function(a,i,t){var r=t("861d");a.exports=function(o){if(!r(o))throw TypeError(String(o)+" is not an object");return o}},"83ab":function(a,i,t){var r=t("d039");a.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(a,i,t){var r=t("c04e"),o=t("9bf2"),s=t("5c6c");a.exports=function(c,p,m){var f=r(p);f in c?o.f(c,f,s(0,m)):c[f]=m}},"861d":function(a,i){a.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},8875:function(a,i,t){var r,o,s;(function(c,p){o=[],r=p,s=typeof r=="function"?r.apply(i,o):r,s!==void 0&&(a.exports=s)})(typeof self<"u"?self:this,function(){function c(){var p=Object.getOwnPropertyDescriptor(document,"currentScript");if(!p&&"currentScript"in document&&document.currentScript||p&&p.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(V){var m=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,f=/@([^@]*):(\d+):(\d+)\s*$/ig,d=m.exec(V.stack)||f.exec(V.stack),g=d&&d[1]||!1,y=d&&d[2]||!1,S=document.location.href.replace(document.location.hash,""),v,b,x,O=document.getElementsByTagName("script");g===S&&(v=document.documentElement.outerHTML,b=new RegExp("(?:[^\\n]+?\\n){0,"+(y-2)+"}[^<]* + diff --git a/www/fhemapp4/templates/templates.json b/www/fhemapp4/templates/templates.json deleted file mode 100644 index 84c4e132..00000000 --- a/www/fhemapp4/templates/templates.json +++ /dev/null @@ -1,15 +0,0 @@ -[ - "switch", - "light", - "dimmer", - "contact", - "blind", - "thermostat", - "temperatur", - "smokedetector", - "motiondetector", - "sonosplayer", - "proplanta", - "lightscene", - "chart" -] \ No newline at end of file