unisi 0.3.23__py3-none-any.whl → 0.3.24__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
unisi/llmrag.py CHANGED
@@ -184,7 +184,7 @@ def setup_llmrag():
184
184
  temperature = getattr(config, 'temperature', 0.0)
185
185
  if config.llm:
186
186
  api_key_config = None
187
- model = None
187
+ model = ''
188
188
  match config.llm:
189
189
  case ['host', address]:
190
190
  type = 'host' #provider type is openai for local llms
unisi/tables.py CHANGED
@@ -221,7 +221,7 @@ class Table(Unit):
221
221
  if context:
222
222
  async def assign(index, fld, context):
223
223
  self.rows[index][self.headers.index(fld)] = await get_property(fld, context)
224
- context = ','.join(f'{fld}:{val}' for fld, val in context.items())
224
+ context = ','.join(f'{fld}: {val}' for fld, val in context.items())
225
225
  tasks.append(asyncio.create_task(assign(index, fld, context)))
226
226
  if tasks:
227
227
  await asyncio.gather(*tasks)
unisi/users.py CHANGED
@@ -19,10 +19,13 @@ class User:
19
19
  self.last_message = None
20
20
  self.changed_units = set()
21
21
  self.voice = None
22
+ self.screen_module = None
22
23
 
23
24
  if share:
24
- self.screens = share.screens
25
- self.screen_module = share.screen_module if share.screens else []
25
+ self.screens = share.screens
26
+ if share.screens:
27
+ self.screen_module = share.screens[0] if config.mirror else share.screen_module
28
+
26
29
  self.handlers = share.handlers
27
30
 
28
31
  if share.reflections:
@@ -32,8 +35,7 @@ class User:
32
35
  self.reflections = share.reflections
33
36
  else:
34
37
  self.screens = []
35
- self.reflections = []
36
- self.screen_module = None
38
+ self.reflections = []
37
39
  self.handlers = {}
38
40
 
39
41
  User.last_user = self
unisi/utils.py CHANGED
@@ -58,7 +58,8 @@ Screen.defaults = dict(
58
58
  toolbar = [],
59
59
  order = 0,
60
60
  reload = config.hot_reload,
61
- lang = config.lang
61
+ lang = config.lang,
62
+ voice = not config.mirror,
62
63
  )
63
64
 
64
65
  if config.froze_time == 0:
unisi/web/index.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><base href=/ ><title>UNISI</title><meta charset=utf-8><meta name=description content="UNISI on Quasar"><meta name=format-detection content="telephone=no"><meta name=msapplication-tap-highlight content=no><meta name=viewport content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width"><link rel=icon type=image/png sizes=128x128 href=icons/favicon-128x128.png><link rel=icon type=image/png sizes=96x96 href=icons/favicon-96x96.png><link rel=icon type=image/png sizes=32x32 href=icons/favicon-32x32.png><link rel=icon type=image/png sizes=16x16 href=icons/favicon-16x16.png><link rel=icon type=image/ico href=favicon.ico><script defer src=/js/vendor.6a64dcc5.js></script><script defer src=/js/app.82c275be.js></script><link href=/css/app.36cc37f3.css rel=stylesheet></head><body><div id=q-app></div></body></html>
1
+ <!DOCTYPE html><html><head><base href=/ ><title>UNISI</title><meta charset=utf-8><meta name=description content="UNISI on Quasar"><meta name=format-detection content="telephone=no"><meta name=msapplication-tap-highlight content=no><meta name=viewport content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width"><link rel=icon type=image/png sizes=128x128 href=icons/favicon-128x128.png><link rel=icon type=image/png sizes=96x96 href=icons/favicon-96x96.png><link rel=icon type=image/png sizes=32x32 href=icons/favicon-32x32.png><link rel=icon type=image/png sizes=16x16 href=icons/favicon-16x16.png><link rel=icon type=image/ico href=favicon.ico><script defer src=/js/vendor.6a64dcc5.js></script><script defer src=/js/app.783ad6ba.js></script><link href=/css/app.36cc37f3.css rel=stylesheet></head><body><div id=q-app></div></body></html>
@@ -1,3 +1,3 @@
1
- "use strict";(globalThis["webpackChunkuniqua"]=globalThis["webpackChunkuniqua"]||[]).push([[391],{3952:(e,t,a)=>{a.d(t,{DK:()=>E,FP:()=>p,JB:()=>f,Jk:()=>A,KG:()=>y,MP:()=>u,NP:()=>m,PP:()=>Q,Q$:()=>$,QJ:()=>S,RF:()=>q,RX:()=>v,Rl:()=>d,S4:()=>w,Yt:()=>g,Zp:()=>s,fn:()=>c,nc:()=>C,q1:()=>x,rn:()=>X,sn:()=>k,tN:()=>b});a(7781),a(6186),a(4718),a(65),a(8499);var l=a(1576),i=a(3436);let s=null,n={};var o;const r=!1;let d=r;const c=["graph","chart","block","text"],u=["tree","table","list","text","graph","chart"];const h=window.location.host,p=`${window.location.protocol}//${h}`;let m={},g={},f={};function y(e){let t=window.location.href,a=t.split("?"),l=2==a.length?a[1]:null;l&&(a=l.split("#"),2==a.length&&(l=a[0]));let i=r?"ws://localhost:8000/ws":`ws://${h}/ws`;l&&(i+="?"+l),o=new WebSocket(i),o.onopen=()=>e.statusConnect=!0,o.onmessage=t=>{d&&console.log("incoming message",t.data),s.designCycle=0;let a=JSON.parse(t.data);a?e.processMessage(a):e.closeProgress(a)},o.onerror=t=>e.error(t),o.onclose=t=>{t.wasClean?e.info("Connection was finished by the server."):e.error("Connection suddenly closed!"),e.statusConnect=!1,d&&console.info("close code : "+t.code+" reason: "+t.reason)},s=e}function b(e){let t={block:e[0],element:e[1],event:e[2],value:e[3]};d&&console.log("sended",t),o.send(JSON.stringify(t))}let k=!0;function v(e){k=e,e||(f={})}function w(e){if(k){let t=f[e.fullname];if(t)return t.styleSize;k=!1}return null}function A(e,t,a,l="complete"){let i=[e.pdata.name,e.data.name,l,t];b(i),n[i.toString()]=a}function C(e,t,a,l,i){let s=[e,t,i,a];b(s),n[s.toString()]=l}function x(){m={},f=g,k=!0,g={}}function _(e,t,a=null){let l=null;for(let i=0;i<e.length;i++)if(Array.isArray(e[i])){if(l=_(e[i],t,a),l)return l}else if(e[i].name==t)return a&&(e[i]=a),e[i];return null}function q(e){for(let t of e){let e=t.path,a=s.screen.blocks,l=null;e.length>1?(l=_(a,e[0],null),l&&(l=_(l.value,e[1],t.data))):l=_(a,e[0],t.data),l||s.error("Invalid path: "+name)}}function S(e){let t=`${e.element}@${e.block}`,a=g[t];a.update?a.update(e):console.error()}function X(e){let t=[e.message.block,e.message.element,e.type,e.message.value].toString();if("string"==typeof e.value)s.error(e.value);else if(n[t]){let a=n[t];delete n[t],a(e.value,e.message)}else s.error(t+" doesnt exist in queryMap!")}function W(e){let t=[];for(let a of e)a instanceof Array?t.push(a):t.push([a]);let a=t.shift();return t.reduce(((e,t)=>e.flatMap((e=>t.map((t=>e instanceof Array?[...e,t]:[e,t]))))),a)}function $(e=!1){requestAnimationFrame((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{Q(document.documentElement.scrollWidth>window.innerWidth)}))}))}))}let E=(0,i.debounce)($,50);function Q(e){if(s.designCycle>=1)return;d&&console.log(`------------------recalc design ${s.designCycle}`),s.designCycle++;const t=F(e),a=D(e);for(let[e,l]of Object.entries(t)){let t=g[e],i=a[e];const[s,n]=i||[0,1];let o,r=t.geom(),d=r.el,c=t.pdata?t.pdata.name:t.name,u=m[c];for(let e of u.data.value.slice(1))if(Array.isArray(e)){if(e.find((e=>e.name==t.data.name))){let t=e[e.length-1],a=`${t.name}@${c}`;o=g[a];break}}else if(e.name==t.data.name){o=t;break}let h=s;h/=n;let p=t.only_fixed_elems?"":`width:${Math.ceil(d.clientWidth+h)}px`;"text"==t.type&&(l-=t.showname?50:6);let f=`height:${Math.floor(l+t.he)}px;${p}`;f!=t.styleSize&&(t.styleSize=f),t.has_recalc=!1}}function F(e){const t=s.screen.blocks;let a=window.innerHeight-60,i={},n=new Map,o=[];for(let e of t){const t=[];let s=e instanceof Array,r=s?W(e):[[e]],d={};for(let[e,t]of Object.entries(m)){let a=t.$el.getBoundingClientRect(),l=a.bottom;d[e]=l-a.top}for(let e of r){let t=0,a=!0;Array.isArray(e)||(e=[e]);for(let l of e)t+=d[l.name],m[l.name].only_fixed_elems||(a=!1);if(a){let t=m[e.slice(-1)[0].name];g[t.fullname]=t}o.push([t+8*e.length,e])}o.sort(((e,t)=>e[0]>t[0]?-1:e[0]==t[0]?0:1));for(let e of o){let a=e[1];(0,l.vA)(Array.isArray(a));const i=[];for(let[e,t]of Object.entries(g))if(t.expanding_height){let[l,s]=e.split("@");if(a.find((e=>e.name==s))){let e=!0;const a=t.geom();for(let[l,s]of i.entries()){let o=s.geom();e&&s!==t&&o.top==a.top&&(o.scrollHeight<a.scrollHeight&&(i[l]=t),e=!1,n.set(t.fullname,s.fullname))}e&&i.push(t)}}i.length&&t.push([e[0],i])}for(let[e,l]of t){let t=0,s=[];for(let a of l)if(a.fullname in i)e+=i[a.fullname];else{let l=a.geom(),i=l.bottom-l.top;i<100&&(e+=100-i,i=100),a.he=i,t+=a.he,s.push(a)}let n=(t+a-e)/s.length,o=0;for(let e of s){let t,a=n-e.he;if(1==s.length)t=a;else if(t=Math.floor(a),a-t){o+=a-t;let e=Math.round(o)-o;e<.001&&e>-.001&&(t+=Math.round(o),o=0)}i[e.fullname]=t}}}let r=Array.from(n.entries());r.sort(((e,t)=>e[0]in i||e[1]in i?-1:1));for(let[e,t]of r)t in i?(i[e]=i[t],g[e].he=g[t].he):(i[t]=i[e],g[t].he=g[e].he);return i}function D(e){let t=null;const a=t?[t]:s.screen.blocks;let l=window.innerWidth-20,i=[],n={};for(let e of a)if(0==i.length)if(Array.isArray(e))for(let t of e)i.push(Array.isArray(t)?t:[t]);else i=[[e]];else{let t=[];if(Array.isArray(e))for(let a of e)for(let e of i)t.push(Array.isArray(a)?e.concat(a):[...e,a]);else for(let a of i)t.push([...a,e]);i=t}const o=[];for(let e of i){let t=0;for(let a of e){let e=m[a.name].$el.getBoundingClientRect();t+=e.right-e.left+5}let a=l-t,i=[[]];for(let t of e){let e=[],a=m[t.name].hlevelements;if(a.length){for(let t of a)for(let a of i)e.push([...a,...t]);i=e}}for(let e of i)o.push([a,e])}o.sort(((e,t)=>t[1].length-e[1].length));for(let[t,a]of o){let l=new Map;for(let e=0;e<a.length;e++){let i=a[e],s=i.parent_name,o=s||i.name,r=i.geom(),d=(i.data.width?i.data.width:r.scrollWidth)-(r.right-r.left);if(d>1&&!c.includes(i.type)&&t>0&&!n[i.fullname]){let e=t>d?d:t;t-=e,n[i.fullname]=[e,1]}if(o=i.parent_name,o){let e=m[o],t=e.$el.getBoundingClientRect().right-6,a=e.free_right_delta4(i,r.right),s=t-a;a&&s>0&&(!l.has(o)||l.get(o)>s)&&l.set(o,s)}}for(let e of l.values())t+=e;let i=[];for(let l of a)if(l.expanding_width&&(e||c.includes(l.type)))if(n[l.fullname]){let[e,a]=n[l.fullname];t-=e/a}else i.push(l);let s=i.length;const o=t/s;for(let e of i)n[e.fullname]||(n[e.fullname]=[Math.floor(o),1]);for(let e of a)n[e.fullname]||(n[e.fullname]=[0,1])}return n}},3772:(e,t,a)=>{a.r(t),a.d(t,{default:()=>pt});var l=a(1758),i=a(8790);function s(e,t,a,s,n,o){const r=(0,l.g2)("q-item-label"),d=(0,l.g2)("element"),c=(0,l.g2)("q-tab"),u=(0,l.g2)("q-tabs"),h=(0,l.g2)("q-space"),p=(0,l.g2)("q-tooltip"),m=(0,l.g2)("q-btn"),g=(0,l.g2)("q-toolbar"),f=(0,l.g2)("q-header"),y=(0,l.g2)("zone"),b=(0,l.g2)("q-page"),k=(0,l.g2)("q-page-container"),v=(0,l.g2)("q-layout");return(0,l.uX)(),(0,l.Wv)(v,{view:"lHh Lpr lFf"},{default:(0,l.k6)((()=>[(0,l.bF)(f,{elevated:"",class:(0,i.C4)({"bg-deep-purple-9":e.Dark.isActive,"bg-blue-grey-9":!e.Dark.isActive})},{default:(0,l.k6)((()=>[(0,l.bF)(g,null,{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-h5"},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.screen.header?e.screen.header:""),1)])),_:1}),t[2]||(t[2]=(0,l.Lk)("div",{class:"q-pa-md"},null,-1)),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.left_toolbar,(t=>((0,l.uX)(),(0,l.Wv)(d,{class:(0,i.C4)(["q-ma-xs",{"bg-blue-grey-9":e.Dark.isActive}]),data:t,pdata:e.tooldata},null,8,["class","data","pdata"])))),256)),t[3]||(t[3]=(0,l.Lk)("div",{class:"q-pa-md"},null,-1)),(0,l.bF)(u,{class:"bold-tabs",align:"center","inline-label":"",dense:"",modelValue:e.tab,"onUpdate:modelValue":t[0]||(t[0]=t=>e.tab=t),style:{float:"center"}},{default:(0,l.k6)((()=>[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.menu,(t=>((0,l.uX)(),(0,l.CE)("div",null,[t.icon?((0,l.uX)(),(0,l.Wv)(c,{key:0,class:"justify-center text-white shadow-2","no-caps":"",name:t.name,icon:t.icon,label:t.name,onClick:a=>e.tabclick(t.name)},null,8,["name","icon","label","onClick"])):(0,l.Q3)("",!0),t.icon?(0,l.Q3)("",!0):((0,l.uX)(),(0,l.Wv)(c,{key:1,class:"justify-center text-white shadow-2","no-caps":"",name:t.name,label:t.name,onClick:a=>e.tabclick(t.name)},null,8,["name","label","onClick"]))])))),256))])),_:1},8,["modelValue"]),(0,l.bF)(h),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.right_toolbar,(t=>((0,l.uX)(),(0,l.Wv)(d,{class:(0,i.C4)(["q-ma-xs",{"bg-blue-grey-9":e.Dark.isActive}]),data:t,pdata:e.tooldata},null,8,["class","data","pdata"])))),256)),e.voice_button?((0,l.uX)(),(0,l.Wv)(m,{key:0,class:(0,i.C4)(["q-ma-xs",{"bg-blue-grey-9":e.Dark.isActive}]),dense:"",round:"",icon:e.isListening?"record_voice_over":"voice_over_off",onClick:e.toggleListening},{default:(0,l.k6)((()=>[(0,l.bF)(p,{class:"text-body2"},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.isListening?"Stop Voice Mate":"Start Voice Mate"),1)])),_:1})])),_:1},8,["class","icon","onClick"])):(0,l.Q3)("",!0),(0,l.bF)(m,{class:(0,i.C4)(["q-ma-xs",{"bg-blue-grey-9":e.Dark.isActive}]),dense:"",round:"",icon:e.Dark.isActive?"light_mode":"dark_mode",onClick:e.switchTheme},{default:(0,l.k6)((()=>[(0,l.bF)(p,{class:"text-body2"},{default:(0,l.k6)((()=>t[1]||(t[1]=[(0,l.eW)("Dark/Light mode")]))),_:1})])),_:1},8,["class","icon","onClick"])])),_:1})])),_:1},8,["class"]),(0,l.bF)(k,{class:"content"},{default:(0,l.k6)((()=>[(0,l.bF)(b,{class:"flex justify-center centers"},{default:(0,l.k6)((()=>[(0,l.bF)(y,{data:e.screen.blocks,ref:"page"},null,8,["data"])])),_:1})])),_:1})])),_:1})}a(7781),a(4739),a(8499);function n(e,t,a,s,n,o){const r=(0,l.g2)("q-icon"),d=(0,l.g2)("q-item-section"),c=(0,l.g2)("q-item-label"),u=(0,l.g2)("q-item");return(0,l.uX)(),(0,l.Wv)(u,{clickable:"",tag:"a",target:"_blank",onClick:e.send},{default:(0,l.k6)((()=>[(0,l.bF)(d,{avatar:""},{default:(0,l.k6)((()=>[(0,l.bF)(r,{name:e.icon},null,8,["name"])])),_:1}),(0,l.bF)(d,null,{default:(0,l.k6)((()=>[(0,l.bF)(c,null,{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.name),1)])),_:1})])),_:1})])),_:1},8,["onClick"])}var o=a(3952);const r=(0,l.pM)({name:"menubar",methods:{send(){(0,o.tN)(["root",null,"changed",this.name])}},props:{name:{type:String,required:!0},icon:{type:String,default:""}}});var d=a(2807),c=a(124),u=a(5173),h=a(492),p=a(3796),m=a(8582),g=a.n(m);const f=(0,d.A)(r,[["render",n]]),y=f;g()(r,"components",{QItem:c.A,QItemSection:u.A,QIcon:h.A,QItemLabel:p.A});const b={key:0,class:"row q-col-gutter-xs q-py-xs"},k={class:"q-col-gutter-xs"},v={key:0,class:"column q-col-gutter-xs"};function w(e,t,a,i,s,n){const o=(0,l.g2)("zone",!0),r=(0,l.g2)("block");return e.data instanceof Array?((0,l.uX)(),(0,l.CE)("div",b,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.data,(e=>((0,l.uX)(),(0,l.CE)("div",k,[e instanceof Array?((0,l.uX)(),(0,l.CE)("div",v,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e,(e=>((0,l.uX)(),(0,l.Wv)(o,{class:"q-col-gutter-xs q-py-xs",data:e},null,8,["data"])))),256))])):((0,l.uX)(),(0,l.Wv)(r,{key:1,data:e},null,8,["data"]))])))),256))])):((0,l.uX)(),(0,l.Wv)(r,{key:1,data:e.data},null,8,["data"]))}const A={class:"row no-wrap"},C={key:0,class:"frame"},x=["data","pdata"],_={key:0,class:"row"},q=["data","pdata"],S={key:0,class:"row no-wrap"};function X(e,t,a,s,n,o){const r=(0,l.g2)("element"),d=(0,l.g2)("q-icon"),c=(0,l.g2)("q-space"),u=(0,l.g2)("q-tooltip"),h=(0,l.g2)("q-btn"),p=(0,l.g2)("q-scroll-area"),m=(0,l.g2)("q-card");return(0,l.uX)(),(0,l.Wv)(m,{class:"my-card q-ma-xs container",style:(0,i.Tr)(e.only_fixed_elems?e.styleSize:null),key:e.name},{default:(0,l.k6)((()=>[(0,l.Lk)("div",A,[e.data.active?((0,l.uX)(),(0,l.CE)("div",C)):(0,l.Q3)("",!0),e.data.logo?((0,l.uX)(),(0,l.Wv)(r,{key:1,class:"q-ma-sm",data:e.data.logo,pdata:e.data},null,8,["data","pdata"])):e.data.icon?((0,l.uX)(),(0,l.Wv)(d,{key:2,class:"q-mt-sm q-ml-sm",style:{"padding-top":"6px"},size:"sm",name:e.data.icon},null,8,["name"])):(0,l.Q3)("",!0),"_"!=e.name[0]?((0,l.uX)(),(0,l.CE)("p",{key:3,class:(0,i.C4)(["q-ma-sm",{"text-info":e.Dark.isActive,"text-cyan-10":!e.Dark.isActive}]),style:{"padding-top":"6px","font-size":"18px"}},(0,i.v_)(e.name),3)):(0,l.Q3)("",!0),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.tops,(t=>((0,l.uX)(),(0,l.Wv)(r,{class:"q-ma-sm",data:t,pdata:e.data},null,8,["data","pdata"])))),256)),(0,l.bF)(c),"close"in e.data?((0,l.uX)(),(0,l.Wv)(h,{key:4,class:(0,i.C4)(["q-ma-xs",{"bg-blue-grey-9":e.Dark.isActive}]),rounded:"",dense:"",flat:"",size:"14px",icon:"cancel",onClick:e.close},{default:(0,l.k6)((()=>[(0,l.bF)(u,{class:"text-body2"},{default:(0,l.k6)((()=>t[0]||(t[0]=[(0,l.eW)("Close")]))),_:1})])),_:1},8,["class","onClick"])):(0,l.Q3)("",!0)]),e.data.scroll?((0,l.uX)(),(0,l.Wv)(p,{key:0,style:(0,i.Tr)(e.styleSize),"thumb-style":e.thumbStyle,"bar-style":e.barStyle},{default:(0,l.k6)((()=>[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.data.value.slice(1),(t=>((0,l.uX)(),(0,l.CE)("div",{class:"column",data:t,pdata:e.data},[t instanceof Array?((0,l.uX)(),(0,l.CE)("div",_,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(t,(t=>((0,l.uX)(),(0,l.Wv)(r,{class:"q-ma-xs",data:t,pdata:e.data},null,8,["data","pdata"])))),256))])):((0,l.uX)(),(0,l.Wv)(r,{key:1,class:"q-ma-xs",data:t,pdata:e.data},null,8,["data","pdata"]))],8,x)))),256))])),_:1},8,["style","thumb-style","bar-style"])):((0,l.uX)(!0),(0,l.CE)(l.FK,{key:1},(0,l.pI)(e.data.value.slice(1),(t=>((0,l.uX)(),(0,l.CE)("div",{class:"column",data:t,pdata:e.data},[t instanceof Array?((0,l.uX)(),(0,l.CE)("div",S,[t[0]&&t[0].space?((0,l.uX)(),(0,l.Wv)(c,{key:0})):(0,l.Q3)("",!0),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(t,(t=>((0,l.uX)(),(0,l.Wv)(r,{class:"q-ma-xs",data:t,pdata:e.data},null,8,["data","pdata"])))),256))])):((0,l.uX)(),(0,l.Wv)(r,{key:1,class:"q-ma-xs",data:t,pdata:e.data},null,8,["data","pdata"]))],8,q)))),256))])),_:1},8,["style"])}var W=a(9104);const $={class:"container"},E={key:5,class:"{'bg-blue-grey-9': Dark.isActive}"},Q=["width","height"],F=["src"],D={class:"camera-button"},R={key:0},L={key:1},M={class:"camera-loading"},K={ref:"camera",width:450,height:337.5,autoplay:""},I={id:"photoTaken",ref:"canvas",width:450,height:337.5},V={key:1,class:"camera-shoot"},T={key:2,class:"camera-download"},z={key:21},P={key:24,class:"frame"};function O(e,t,a,s,n,o){const r=(0,l.g2)("q-icon"),d=(0,l.g2)("q-img"),c=(0,l.g2)("q-select"),u=(0,l.g2)("q-checkbox"),h=(0,l.g2)("q-toggle"),p=(0,l.g2)("q-badge"),m=(0,l.g2)("q-slider"),g=(0,l.g2)("q-btn"),f=(0,l.g2)("q-btn-toggle"),y=(0,l.g2)("utable"),b=(0,l.g2)("asyncLinechart"),k=(0,l.g2)("q-input"),v=(0,l.g2)("q-tree"),w=(0,l.g2)("q-scroll-area"),A=(0,l.g2)("q-separator"),C=(0,l.g2)("q-uploader"),x=(0,l.g2)("asyncSgraph"),_=(0,l.g2)("htmlcomponent"),q=(0,l.g2)("q-tooltip"),S=(0,l.g2)("q-spinner-ios");return(0,l.uX)(),(0,l.CE)("div",$,["image"==e.type?((0,l.uX)(),(0,l.Wv)(d,{key:e.key,src:e.data.url,"spinner-color":"blue",onClick:(0,W.D$)(e.switchValue,["stop"]),fit:"cover",style:(0,i.Tr)(e.elemSize)},{default:(0,l.k6)((()=>[e.data.label?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"absolute-bottom-right text-subtitle2 custom-caption",onClick:t[0]||(t[0]=(0,W.D$)(((...t)=>e.lens&&e.lens(...t)),["stop"]))},(0,i.v_)(e.data.label),1)):(0,l.Q3)("",!0),e.value?((0,l.uX)(),(0,l.Wv)(r,{key:1,class:"absolute all-pointer-events",size:"32px",name:"check_circle",color:"light-blue-2",style:{"font-size":"2em",top:"8px",left:"8px"}})):(0,l.Q3)("",!0)])),_:1},8,["src","onClick","style"])):"select"==e.type?((0,l.uX)(),(0,l.Wv)(c,{key:e.key,ref:"inputRef","transition-show":"flip-up",readonly:0==e.data.edit,"transition-hide":"flip-down",dense:"",modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=t=>e.value=t),options:e.data.options},(0,l.eX)({_:2},[e.showname?{name:"prepend",fn:(0,l.k6)((()=>[(0,l.Lk)("p",{class:(0,i.C4)(["text-subtitle1 q-ma-sm",{white:e.Dark.isActive,black:!e.Dark.isActive}])},(0,i.v_)(e.name),3)])),key:"0"}:void 0]),1032,["readonly","modelValue","options"])):"check"==e.type?((0,l.uX)(),(0,l.Wv)(u,{key:e.key,ref:"inputRef","left-label":"",disable:0==e.data.edit,modelValue:e.value,"onUpdate:modelValue":t[2]||(t[2]=t=>e.value=t),label:e.nameLabel,"checked-icon":"task_alt","unchecked-icon":"highlight_off"},null,8,["disable","modelValue","label"])):"switch"==e.type?((0,l.uX)(),(0,l.Wv)(h,{key:e.key,ref:"inputRef",modelValue:e.value,"onUpdate:modelValue":t[3]||(t[3]=t=>e.value=t),disable:0==e.data.edit,color:"primary",label:e.nameLabel,"left-label":""},null,8,["modelValue","disable","label"])):"range"==e.type?((0,l.uX)(),(0,l.CE)("div",{key:e.key},[(0,l.bF)(p,{outline:"",dense:"",color:e.Dark.isActive?"blue-3":"blue-9"},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.name)+": "+(0,i.v_)(e.value)+" ("+(0,i.v_)(e.data.options[0])+" to "+(0,i.v_)(e.data.options[1])+", Δ "+(0,i.v_)(e.data.options[2])+")",1)])),_:1},8,["color"]),(0,l.bF)(m,{class:"q-pl-sm",dense:"",modelValue:e.value,"onUpdate:modelValue":t[4]||(t[4]=t=>e.value=t),min:e.data.options[0],max:e.data.options[1],step:e.data.options[2],color:"primary"},null,8,["modelValue","min","max","step"])])):"radio"==e.type?((0,l.uX)(),(0,l.CE)("div",E,[e.showname?((0,l.uX)(),(0,l.Wv)(g,{key:0,ripple:!1,color:"indigo-10",disable:"",label:e.name,"no-caps":""},null,8,["label"])):(0,l.Q3)("",!0),(0,l.bF)(f,{ref:"inputRef",modelValue:e.value,"onUpdate:modelValue":t[5]||(t[5]=t=>e.value=t),readonly:0==e.data.edit,class:(0,i.C4)({"bg-blue-grey-9":e.Dark.isActive}),"no-caps":"",options:e.data.options.map((e=>({label:e,value:e})))},null,8,["modelValue","readonly","class","options"])])):"table"==e.type?((0,l.uX)(),(0,l.Wv)(y,{key:e.key,data:e.data,pdata:e.pdata,styleSize:e.styleSize},null,8,["data","pdata","styleSize"])):"chart"==e.type?((0,l.uX)(),(0,l.Wv)(b,{key:e.key,data:e.data,pdata:e.pdata,styleSize:e.styleSize},null,8,["data","pdata","styleSize"])):"string"==e.type&&e.data.hasOwnProperty("complete")?((0,l.uX)(),(0,l.Wv)(c,{key:e.key,ref:"inputRef",dense:"",readonly:0==e.data.edit,modelValue:e.value,"onUpdate:modelValue":t[6]||(t[6]=t=>e.value=t),"use-input":"","hide-selected":"",borderless:"",outlined:"","hide-bottom-space":"","fill-input":"","input-debounce":"0",options:e.options,onFilter:e.complete,label:e.name,onKeydown:(0,W.jR)(e.pressedEnter,["enter"])},null,8,["readonly","modelValue","options","onFilter","label","onKeydown"])):"string"==e.type&&0==e.data.edit?((0,l.uX)(),(0,l.CE)("div",{key:e.key},[(0,l.Lk)("p",{class:(0,i.C4)(["q-ma-sm",{white:e.Dark.isActive,black:!e.Dark.isActive}])},(0,i.v_)(e.value),3)])):"string"==e.type?((0,l.uX)(),(0,l.Wv)(k,{key:e.key,modelValue:e.value,"onUpdate:modelValue":t[7]||(t[7]=t=>e.value=t),label:e.name2show,ref:"inputRef",autogrow:e.data.autogrow,dense:"",onKeydown:(0,W.jR)(e.pressedEnter,["enter"]),readonly:0==e.data.edit},null,8,["modelValue","label","autogrow","onKeydown","readonly"])):"number"==e.type?((0,l.uX)(),(0,l.Wv)(k,{key:e.key,modelValue:e.value,"onUpdate:modelValue":t[8]||(t[8]=t=>e.value=t),modelModifiers:{number:!0},label:e.name2show,ref:"inputRef",dense:"",onKeydown:(0,W.jR)(e.pressedEnter,["enter"]),type:"number",readonly:0==e.data.edit},null,8,["modelValue","label","onKeydown","readonly"])):"tree"==e.type||"list"==e.type?((0,l.uX)(),(0,l.CE)("div",{key:e.key},[e.showname?((0,l.uX)(),(0,l.CE)("p",{key:0,class:(0,i.C4)(["text-subtitle1 q-ma-sm text-grey-7",{"text-white":e.Dark.isActive,"text-indigo-10":!e.Dark.isActive}])},(0,i.v_)(e.name),3)):(0,l.Q3)("",!0),(0,l.bF)(w,{style:(0,i.Tr)(e.styleSize),"thumb-style":e.thumbStyle,"bar-style":e.barStyle,ref:"scroller"},{default:(0,l.k6)((()=>[(0,l.bF)(v,{nodes:e.treeNodes,"selected-color":e.Dark.isActive?"blue-3":"blue-9",dense:e.data.dense,ref:"tree",selected:e.value,"onUpdate:selected":t[9]||(t[9]=t=>e.value=t),expanded:e.expandedKeys,"onUpdate:expanded":t[10]||(t[10]=t=>e.expandedKeys=t),"node-key":"label","default-expand-all":""},null,8,["nodes","selected-color","dense","selected","expanded"])])),_:1},8,["style","thumb-style","bar-style"])])):"text"==e.type?((0,l.uX)(),(0,l.CE)("div",{key:e.key},[e.showname?((0,l.uX)(),(0,l.CE)("p",{key:0,class:(0,i.C4)(["text-subtitle1 q-ma-sm",{"text-white":e.Dark.isActive,"text-indigo-10":!e.Dark.isActive}])},(0,i.v_)(e.name),3)):(0,l.Q3)("",!0),(0,l.bo)((0,l.Lk)("textarea",{class:(0,i.C4)(["textarea",{"bg-grey-10":e.Dark.isActive,"text-white":e.Dark.isActive}]),"onUpdate:modelValue":t[11]||(t[11]=t=>e.value=t),ref:"inputRef",filled:"",type:"textarea",style:(0,i.Tr)(e.elemSize),onKeydown:t[12]||(t[12]=(0,W.jR)(((...t)=>e.pressedEnter&&e.pressedEnter(...t)),["enter"]))},null,38),[[W.Jo,e.value]])])):"line"==e.type?((0,l.uX)(),(0,l.Wv)(A,{key:14,color:"green"})):"video"==e.type?((0,l.uX)(),(0,l.CE)("video",{key:e.key,controls:"",width:e.data.width,height:e.data.height},[(0,l.Lk)("source",{src:e.data.url,type:"video/mp4"},null,8,F)],8,Q)):"uploader"==e.type?((0,l.uX)(),(0,l.Wv)(C,{key:e.key,label:e.name,"auto-upload":"",thumbnails:"",url:e.host_path,onUploaded:e.updateDom,onAdded:e.onAdded,style:(0,i.Tr)(e.elemSize),ref:"uploaderRef",flat:"",class:(0,i.C4)({"bg-grey-10":e.Dark.isActive}),color:e.Dark.isActive?"purple-10":"blue"},null,8,["label","url","onUploaded","onAdded","style","class","color"])):"image_uploader"==e.type?((0,l.uX)(),(0,l.Wv)(C,{key:e.key,label:e.name,"auto-upload":"",thumbnails:"",url:e.host_path,onUploaded:e.updateDom,onAdded:e.onAdded,ref:"uploaderRef",flat:"",class:(0,i.C4)({"bg-grey-10":e.Dark.isActive}),color:e.Dark.isActive?"purple-10":"blue"},null,8,["label","url","onUploaded","onAdded","class","color"])):"graph"==e.type?((0,l.uX)(),(0,l.Wv)(x,{key:e.key,data:e.data,pdata:e.pdata,styleSize:e.elemSize},null,8,["data","pdata","styleSize"])):"camera"==e.type?((0,l.uX)(),(0,l.CE)("div",{class:"web-camera-container",key:e.key},[(0,l.Lk)("div",D,[(0,l.Lk)("button",{class:(0,i.C4)(["button is-rounded",{"is-primary":!e.isCameraOpen,"is-danger":e.isCameraOpen}]),type:"button",onClick:t[13]||(t[13]=(...t)=>e.toggleCamera&&e.toggleCamera(...t))},[e.isCameraOpen?((0,l.uX)(),(0,l.CE)("span",L,"Close Camera")):((0,l.uX)(),(0,l.CE)("span",R,"Open Camera"))],2)]),(0,l.bo)((0,l.Lk)("div",M,t[15]||(t[15]=[(0,l.Lk)("ul",{class:"loader-circle"},[(0,l.Lk)("li"),(0,l.Lk)("li"),(0,l.Lk)("li")],-1)]),512),[[W.aG,e.isCameraOpen&&e.isLoading]]),e.isCameraOpen?(0,l.bo)(((0,l.uX)(),(0,l.CE)("div",{key:0,class:(0,i.C4)(["camera-box",{flash:e.isShotPhoto}])},[(0,l.Lk)("div",{class:(0,i.C4)(["camera-shutter",{flash:e.isShotPhoto}])},null,2),(0,l.bo)((0,l.Lk)("video",K,null,512),[[W.aG,!e.isPhotoTaken]]),(0,l.bo)((0,l.Lk)("canvas",I,null,512),[[W.aG,e.isPhotoTaken]])],2)),[[W.aG,!e.isLoading]]):(0,l.Q3)("",!0),e.isCameraOpen&&!e.isLoading?((0,l.uX)(),(0,l.CE)("div",V,[(0,l.Lk)("button",{class:"button",type:"button",onClick:t[14]||(t[14]=(...t)=>e.takePhoto&&e.takePhoto(...t))},t[16]||(t[16]=[(0,l.Lk)("img",{src:"https://img.icons8.com/material-outlined/50/000000/camera--v2.png"},null,-1)]))])):(0,l.Q3)("",!0),e.isPhotoTaken&&e.isCameraOpen?((0,l.uX)(),(0,l.CE)("div",T,[(0,l.bF)(g,{onClick:e.downloadImage,label:"Send"},null,8,["onClick"])])):(0,l.Q3)("",!0)])):"html"==e.type?((0,l.uX)(),(0,l.Wv)(_,{key:e.key,data:e.data,pdata:e.pdata,style:(0,i.Tr)(e.elemSize)},null,8,["data","pdata","style"])):""!=e.showname?((0,l.uX)(),(0,l.CE)("div",z,[((0,l.uX)(),(0,l.Wv)(g,{key:e.key,ref:"inputRef","no-caps":"",disable:0==e.data.edit,class:(0,i.C4)({"bg-blue-grey-8":e.Dark.isActive}),style:(0,i.Tr)(e.button_style),color:e.data.color,label:e.name,icon:e.data.icon,onClick:e.sendValue},{default:(0,l.k6)((()=>[e.data.tooltip?((0,l.uX)(),(0,l.Wv)(q,{key:0,class:"text-body2"},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.data.tooltip),1)])),_:1})):(0,l.Q3)("",!0)])),_:1},8,["disable","class","style","color","label","icon","onClick"]))])):e.data.spinner?((0,l.uX)(),(0,l.Wv)(g,{key:e.key,ref:"inputRef","no-caps":"",dense:"",disable:0==e.data.edit,round:"",class:(0,i.C4)({"bg-blue-grey-8":e.Dark.isActive}),color:e.data.color,onClick:e.sendValue},{default:(0,l.k6)((()=>[(0,l.bF)(S,{color:e.Dark.isActive?"white":"black"},null,8,["color"]),e.data.tooltip?((0,l.uX)(),(0,l.Wv)(q,{key:0,class:"text-body2"},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.data.tooltip),1)])),_:1})):(0,l.Q3)("",!0)])),_:1},8,["disable","class","color","onClick"])):((0,l.uX)(),(0,l.Wv)(g,{key:e.key,ref:"inputRef","no-caps":"",disable:0==e.data.edit,dense:"",round:"",class:(0,i.C4)({"bg-blue-grey-8":e.Dark.isActive}),color:e.data.color,icon:e.data.icon,onClick:e.sendValue},{default:(0,l.k6)((()=>[e.data.tooltip?((0,l.uX)(),(0,l.Wv)(q,{key:0,class:"text-body2"},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.data.tooltip),1)])),_:1})):(0,l.Q3)("",!0)])),_:1},8,["disable","class","color","icon","onClick"])),e.data.active?((0,l.uX)(),(0,l.CE)("div",P)):(0,l.Q3)("",!0)])}a(9526);var U=a(8734);const j={class:"text-h6"},B={key:0},H={class:"row"},N=["onClick"],Y=["onClick"];function J(e,t,a,s,n,o){const r=(0,l.g2)("q-tooltip"),d=(0,l.g2)("q-btn"),c=(0,l.g2)("q-icon"),u=(0,l.g2)("q-input"),h=(0,l.g2)("q-th"),p=(0,l.g2)("q-tr"),m=(0,l.g2)("q-checkbox"),g=(0,l.g2)("q-select"),f=(0,l.g2)("q-td"),y=(0,l.g2)("q-table");return(0,l.uX)(),(0,l.Wv)(y,{"virtual-scroll":"",dense:e.data.dense,style:(0,i.Tr)(e.styleSize?e.styleSize:e.currentStyle()),flat:"",filter:e.data.id?"":e.search,ref:"table",virtualScrollSliceSize:"100",pagination:e.pagination,"virtual-scroll-item-size":"100",onVirtualScroll:e.onScroll,"rows-per-page-options":[0],"virtual-scroll-sticky-size-start":100,"row-key":"iiid",title:e.name,rows:e.rows,columns:e.columns,selection:e.singleMode?"single":"multiple",selected:e.selected,"onUpdate:selected":t[2]||(t[2]=t=>e.selected=t)},{"top-left":(0,l.k6)((()=>["link"in e.data?((0,l.uX)(),(0,l.Wv)(d,{key:0,class:(0,i.C4)(["q-ml-xs",{"bg-blue-grey-8":e.Dark.isActive}]),dense:"",outline:"",color:"primary",icon:e.data.filter?"filter_alt":"filter_alt_off","no-caps":"",onClick:e.switchFilter},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.data.filter?"Turn off filter":"Turn on filter"),1)])),_:1})])),_:1},8,["class","icon","onClick"])):(0,l.Q3)("",!0),(0,l.Lk)("div",j,(0,i.v_)(e.name),1)])),"top-right":(0,l.k6)((()=>[!1!==e.data.tools?((0,l.uX)(),(0,l.CE)("div",B,[(0,l.Lk)("div",H,[(0,l.bF)(u,{modelValue:e.search,"onUpdate:modelValue":t[1]||(t[1]=t=>e.search=t),label:"Search",dense:"",ref:"searchField"},(0,l.eX)({append:(0,l.k6)((()=>[""!=e.search?((0,l.uX)(),(0,l.Wv)(c,{key:0,class:"cursor-pointer",name:"close",size:"xs",onClick:t[0]||(t[0]=t=>{e.search="",e.$refs.searchField.focus()})},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>t[3]||(t[3]=[(0,l.eW)("Reset search ")]))),_:1})])),_:1})):(0,l.Q3)("",!0)])),_:2},[""==e.search?{name:"prepend",fn:(0,l.k6)((()=>[(0,l.bF)(c,{name:"search",size:"xs"})])),key:"0"}:void 0]),1032,["modelValue"]),(0,l.Lk)("div",null,[(0,l.bF)(d,{class:(0,i.C4)(["q-ml-xs",{"bg-blue-grey-8":e.Dark.isActive}]),dense:"",rounded:"",icon:"select_all","no-caps":"",onClick:e.showSelected},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>t[4]||(t[4]=[(0,l.eW)("Show selected ")]))),_:1})])),_:1},8,["class","onClick"]),(0,l.bF)(d,{class:(0,i.C4)(["q-ml-xs",{"bg-blue-grey-8":e.Dark.isActive}]),dense:"",rounded:"",icon:"deselect","no-caps":"",onClick:e.deselectAll},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>t[5]||(t[5]=[(0,l.eW)("Deselect all")]))),_:1})])),_:1},8,["class","onClick"]),!1!==e.data.multimode?((0,l.uX)(),(0,l.Wv)(d,{key:0,class:(0,i.C4)(["q-ml-xs",{"bg-blue-grey-8":e.Dark.isActive}]),dense:"",rounded:"",icon:e.singleMode?"looks_one":"grain","no-caps":"",onClick:e.switchMode},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>t[6]||(t[6]=[(0,l.eW)("Multi-single select mode ")]))),_:1})])),_:1},8,["class","icon","onClick"])):(0,l.Q3)("",!0),e.editable?((0,l.uX)(),(0,l.Wv)(d,{key:1,class:(0,i.C4)(["q-ml-xs",{"bg-blue-grey-8":e.Dark.isActive}]),dense:"",rounded:"",icon:e.data.editing?"cancel":"edit","no-caps":"",onClick:e.switchEdit},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>t[7]||(t[7]=[(0,l.eW)("Edit mode")]))),_:1})])),_:1},8,["class","icon","onClick"])):(0,l.Q3)("",!0),e.editable&&"append"in e.data?((0,l.uX)(),(0,l.Wv)(d,{key:2,class:(0,i.C4)(["q-ml-xs",{"bg-blue-grey-8":e.Dark.isActive}]),dense:"",rounded:"",icon:"add","no-caps":"",onClick:e.append},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.data.filter?"Add a new entity+link":"Add a new row"),1)])),_:1})])),_:1},8,["class","onClick"])):(0,l.Q3)("",!0),"delete"in e.data?((0,l.uX)(),(0,l.Wv)(d,{key:3,class:(0,i.C4)(["q-ml-xs",{"bg-blue-grey-8":e.Dark.isActive}]),dense:"",rounded:"",icon:"delete_forever","no-caps":"",onClick:e.delSelected},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>t[8]||(t[8]=[(0,l.eW)("Delete selected ")]))),_:1})])),_:1},8,["class","onClick"])):(0,l.Q3)("",!0),"view"in e.data?((0,l.uX)(),(0,l.Wv)(d,{key:4,class:(0,i.C4)(["q-ml-xs",{"bg-blue-grey-8":e.Dark.isActive}]),dense:"",rounded:"",icon:"insights","no-caps":"",onClick:e.chart},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>t[9]||(t[9]=[(0,l.eW)("Draw the chart")]))),_:1})])),_:1},8,["class","onClick"])):(0,l.Q3)("",!0)])])])):(0,l.Q3)("",!0)])),header:(0,l.k6)((t=>[(0,l.bF)(p,{props:t},{default:(0,l.k6)((()=>[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(t.cols,(a=>((0,l.uX)(),(0,l.Wv)(h,{class:(0,i.C4)(["text-italic",{"text-grey-9":!e.Dark.isActive,"text-teal-3":e.Dark.isActive}]),key:a.name,props:t},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(a.label),1)])),_:2},1032,["class","props"])))),128))])),_:2},1032,["props"])])),body:(0,l.k6)((t=>[(0,l.bF)(p,{props:t,onClick:e=>t.selected=!t.selected},{default:(0,l.k6)((()=>[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.columns,((a,s)=>((0,l.uX)(),(0,l.Wv)(f,{key:a.name,props:t},{default:(0,l.k6)((()=>["boolean"==typeof t.row[a.name]?((0,l.uX)(),(0,l.Wv)(m,{key:0,modelValue:t.row[a.name],"onUpdate:modelValue":[e=>t.row[a.name]=e,l=>e.change_switcher(t.row,a.name,s)],dense:"",disable:!e.data.editing},null,8,["modelValue","onUpdate:modelValue","disable"])):e.data.editing&&"complete"in e.data&&s==e.cedit&&e.redit==t.row.iiid?((0,l.uX)(),(0,l.Wv)(g,{key:1,dense:"","model-value":t.row[a.name],"use-input":"","hide-selected":"","fill-input":"",autofocus:"",outlined:"",borderless:"",onInputValue:e.change,"hide-dropdown-icon":"","input-debounce":"0",options:e.options,onKeydown:e.keyInput,onFilter:e.complete},null,8,["model-value","onInputValue","options","onKeydown","onFilter"])):e.data.editing&&s==e.cedit&&e.redit==t.row.iiid?((0,l.uX)(),(0,l.Wv)(u,{key:2,modelValue:t.row[a.name],"onUpdate:modelValue":[e=>t.row[a.name]=e,e.change],dense:"",onKeydown:e.keyInput,autofocus:""},null,8,["modelValue","onUpdate:modelValue","onKeydown"])):void 0==t.row[a.name]?((0,l.uX)(),(0,l.CE)("div",{key:3,onClick:a=>e.select(t.row,s)},"-- ",8,N)):((0,l.uX)(),(0,l.CE)("div",{key:4,onClick:a=>e.select(t.row,s)},(0,i.v_)(t.row[a.name]),9,Y))])),_:2},1032,["props"])))),128))])),_:2},1032,["props","onClick"])])),_:1},8,["dense","style","filter","pagination","onVirtualScroll","title","rows","columns","selection","selected"])}a(6186);var Z=a(411);function G(e,t){return e.length===t.length&&e.every(((e,a)=>t[a]&&e.iiid==t[a].iiid))}let ee="✘";function te(e,t){let a=[];const l=e.headers,i=l.length,s=t.length;for(var n=0;n<s;n++){const s={},r=t[n];for(var o=0;o<i;o++)null!=r[o]&&void 0!=r[o]&&(s[l[o]]=r[o]);let d=r.length;s.iiid=i<d||e.id?r[d-1]:n,a.push(s)}return a}function ae(e,t){let a=[],{limit:l,length:i,data:s}=t.rows;i&&a.splice(0,0,...te(t,s)),a.length=i,a=(0,U.Kh)(a);let n=[];function r(l,i){switch(l.update){case"update":a[l.index]=te(t,[l.data])[0];break;case"updates":if(l.data){let e=l.data.length;a.splice(l.index,e,...te(t,l.data))}if("length"in l&&(a.length=l.length),i){let a=n.indexOf(i.value);-1!=a&&n.splice(a,1),n.length&&(0,o.nc)(e,t.name,n[n.length-1],r,"get")}break;case"delete":this.length--,a.splice(l.index,1);break;case"add":a[this.length]=te(t,[l.data])[0],this.length++;break;case"adds":a.splice(l.index,0,...te(t,l.data)),this.length+=l.data.length}}function d(a){-1==n.indexOf(a)&&(n.length>5&&n.splice(0,1),n.push(a),1==n.length&&(0,o.nc)(e,t.name,a,r,"get"))}return t.update=r,a.add2quered=d,a}const le=(0,l.pM)({name:"utable",setup(e){const{data:t,pdata:a}=(0,U.QW)(e),i=(0,U.KR)(null);let s,n=t.value;s=n.id?(0,U.KR)(ae(a.value.name,n)):(0,U.KR)(te(n,n.rows));let r=()=>{let e=t.value,a=null===e.value||0==s.value.length?[]:Array.isArray(e.value)?s.value.filter((t=>e.value.includes(t.iiid))):s.value.filter((t=>e.value==t.iiid));return a},d=r(),c=(0,U.KR)(d),u=(0,U.KR)(d),h=(0,U.KR)(!Array.isArray(t.value.value)),p=(e,l)=>{(0,o.tN)([a.value.name,t.value.name,e,l])},m=(0,l.EW)((()=>t.value.value));return(0,l.wB)(s,((e,t)=>{u.value=r(),c.value=u.value})),(0,l.wB)(t,((e,l)=>{o.Rl&&console.log("data update",l.name),n.id?s.value=ae(a.value.name,e):s.value=te(e,e.rows),u.value=r(),c.value=u.value,h.value=!Array.isArray(t.value.value),i.value.scrollTo(0)})),{rows:s,selected:u,singleMode:h,sendMessage:p,datavalue:m,updated:c,table:i,onScroll(e){let t=n.rows.limit,a=(e.from/t|0)*t,l=(e.to/t|0)*t;for(let e=a;e<=l;e+=t)s.value[e]||s.value.add2quered(e)}}},data(){return{Dark:Z.A,search:"",options:[],prevSelectedId:void 0,cedit:null,pagination:{rowsPerPage:0}}},methods:{switchFilter(){let e=this.data;e.filter=!e.filter,this.sendMessage("filter",e.filter)},currentStyle(){let e=this.data.tablerect;if(e){let t=e.width,a=e.height;return`width: ${t}px; height: ${a}px`}return null},select(e,t){if(this.data.editing){let a=this.headers[t];"ID"!=a&&"ⓇID"!=a&&(this.cedit=t,o.Rl&&console.log("selected",e.iiid,this.cedit))}},change_switcher(e,t,a){if(this.data.editing){let a=this.data.headers.indexOf(t),l=this.rows.findIndex((t=>t?.iiid==e.iiid));this.sendMessage("modify",{value:e[t],id:e.iiid,delta:l,cell:a})}},change(e){let t=this.headers[this.cedit],a=this.data.headers.indexOf(t);if(o.Rl&&console.log("changed",t,e),this.data.editing&&this.selected.length){const l=this.selected[0];l[t]=e;this.rows;let i=this.rows.findIndex((e=>e?.iiid==l.iiid));if(-1==i)return void console.log("cannot find a row!");this.sendMessage("modify",{value:e,delta:i,id:l.iiid,cell:a})}},keyInput(e){if("Control"==e.key)return;let t=!1;switch(e.key){case"Enter":"update"in this.data&&this.sendMessage("update",[this.rows[this.redit][this.headers[this.cedit]],[this.redit,this.cedit]]),t=!0;case"ArrowRight":if(e.ctrlKey||t)for(let e=this.cedit+1;e<this.headers.length;){let t=this.headers[e],a=this.selected[0][t],l=typeof a;if("boolean"!=l&&"ⓇID"!=t&&"ID"!=t){this.cedit=e;break}}break;case"Escape":this.switchEdit();break;case"ArrowLeft":if(e.ctrlKey)for(let e=this.cedit-1;e>=0;e--){let t=this.headers[e],a=typeof this.selected[0][t];if("boolean"!=a&&"ⓇID"!=t&&"ID"!=t){this.cedit=e;break}}break;case"ArrowUp":if(e.ctrlKey&&this.redit>0){let e=this.redit-1,t=this.data,a=typeof t.rows[e][this.cedit];"string"!=a&&"number"!=a||(t.value=e),this.selected=[this.rows[e]]}break;case"ArrowDown":if(e.ctrlKey&&this.redit+1<this.rows.length){let e=this.redit+1,t=this.data,a=typeof t.rows[e][this.cedit];"string"!=a&&"number"!=a||(t.value=e),this.selected=[this.rows[e]]}break}},complete(e,t,a){(0,o.Jk)(this,[e,[this.redit,this.cedit]],(e=>t((()=>{this.options=e}))))},append(){let e=this.rows,t=e.length,a=this;"append"in this.data&&(0,o.Jk)(this,this.search,(function(l){if(!Array.isArray(l))return o.Zp.error(l);o.Rl&&console.log("added row",l),a.search="",l=te(a.data,[l])[0],l.iiid=Math.random(),e.push(l),setTimeout((()=>{let e=a.rows;a.selected=[e[t]],a.showSelected(),a.data.editing||a.switchEdit(),a.select(e[t],0)}),100)}),"append")},showSelected(){if(this.selected.length){let e=this.$refs.table,t=this.rows,a=this.selected[0];if(void 0!=this.prevSelectedId){let e=this.selected.findIndex((e=>e?.iiid==this.prevSelectedId));-1!=e&&(++e>=this.selected.length&&(e=0),a=this.selected[e])}let i=a.iiid;this.prevSelectedId=i;let s=t.findIndex((e=>e?.iiid==i));e.scrollTo(s),(0,l.dY)((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{e.scrollTo(s)}))}))}))}))}))}))}))}},deselectAll(){this.selected=[],this.sendMessage("changed",this.value)},chart(){let e=this.data;e.type="chart",e.tablerect=this.$refs.table.$el.getBoundingClientRect(),o.Yt[this.fullname].styleSize=this.currentStyle()},switchMode(){this.singleMode=!this.singleMode,this.singleMode&&this.selected.length>1&&this.selected.splice(1)},switchEdit(){let e=this.data;e.editing=!e.editing,this.sendMessage("editing",this.data.editing)},delSelected(){if(this.selected.length){if(this.sendMessage("delete",this.value),this.singleMode)this.rows.splice(this.value,1);else{let e=this.value;e.sort((function(e,t){return t-e}));for(let t of e)this.rows.splice(t,1)}this.selected=[]}else o.Zp.error("Rows are not selected!")}},watch:{selected(e){const t=this.data;G(this.updated,this.selected)||(this.sendMessage("changed",this.value),this.updated=this.selected),t.show&&(this.showSelected(),t.show=!1)},search(e){this.data.id&&this.sendMessage("search",e)}},computed:{fullname(){return`${this.data.name}@${this.pdata.name}`},redit(){return this.data.editing&&this.selected.length?this.selected[0].iiid:null},editable(){return 0!=this.data["edit"]},value(){let e=this.selected.map((e=>this.rows.findIndex((t=>t?.iiid===e.iiid))));return-1!=e.indexOf(-1)&&console.error("selected row in a table did not found!"),this.singleMode?1==e.length?e[0]:null:e},name(){return"_"==this.data.name?"":this.data.name},headers(){let e=this.data;return e.headers.filter((e=>!e.startsWith(ee)))},columns(){let e=!this.data.id;return this.headers.map((t=>({name:t,label:t,align:"left",sortable:e,field:t})))}},props:{data:Object,pdata:Object,styleSize:String}});var ie=a(8098),se=a(6384),ne=a(7410),oe=a(9270),re=a(4488),de=a(7722),ce=a(5262),ue=a(460),he=a(9183);const pe=(0,d.A)(le,[["render",J]]),me=pe;g()(le,"components",{QTable:ie.A,QBtn:se.A,QTooltip:ne.A,QInput:oe.A,QIcon:h.A,QTr:re.A,QTh:de.A,QTd:ce.A,QCheckbox:ue.A,QSelect:he.A});const ge=["innerHTML"];function fe(e,t,a,s,n,o){return(0,l.uX)(),(0,l.CE)("div",{ref:"htmlContainer",innerHTML:a.data.value,onClick:t[0]||(t[0]=(...e)=>s.handleClick&&s.handleClick(...e)),style:(0,i.Tr)(s.styleObject)},null,12,ge)}const ye={props:{pdata:{type:Object,required:!0},data:{type:Object,required:!0},style:{type:[String,Object,Array],default:""}},setup(e){const t=(0,U.KR)(null),a=t=>{if(e.data.changed){const a=t.target,l={tagName:a.tagName,id:a.id,classList:[...a.classList],attributes:{},value:a.value||null};Array.from(a.attributes).forEach((e=>{l.attributes[e.name]=e.value})),(0,o.tN)([e.pdata["name"],e.data["name"],"changed",{type:t.type,target:l}])}},i=["click","mouseover","mouseout","change","focus","blur","submit","input","keydown","keyup"],s=()=>{t.value&&i.forEach((e=>{t.value.addEventListener(e,a)}))},n=()=>{t.value&&i.forEach((e=>{t.value.removeEventListener(e,a)}))};(0,l.sV)((()=>{s()})),(0,l.xo)((()=>{n()}));const r=(0,l.EW)((()=>e.style));return{htmlContainer:t,handleClick:a,styleObject:r}}},be=(0,d.A)(ye,[["render",fe]]),ke=be,ve=(0,l.$V)((()=>a.e(72).then(a.bind(a,72)))),we=(0,l.$V)((()=>Promise.all([a.e(121),a.e(260)]).then(a.bind(a,4260))));let Ae={right:"4px",borderRadius:"7px",backgroundColor:"#027be3",width:"4px",opacity:.75},Ce={right:"2px",borderRadius:"9px",backgroundColor:"#027be3",width:"8px",opacity:.2},xe=0;function _e(e){let t=new FormData;t.append("image",e);let a=new XMLHttpRequest;a.open("POST",o.FP,!0),a.onload=function(){200===this.status?console.log(this.response):console.error(a)},a.send(t)}const qe=(0,l.pM)({name:"element",components:{utable:me,asyncSgraph:ve,asyncLinechart:we,htmlcomponent:ke},setup(){const e=(0,U.KR)(xe);xe++;const t=()=>{e.value=xe,xe++};return{forceUpdate:t,key:e}},methods:{log(e){console.log(e)},showSelected(){if("tree"==this.type||"list"==this.type){let e=this.value;e&&requestAnimationFrame((()=>{requestAnimationFrame((()=>{if(this.$refs.tree){let t=this.$refs.tree.$el,a=this.$refs.scroller.$el;for(let l of t.getElementsByTagName("div"))if(l.innerHTML==e){const{bottom:e,height:t,top:i}=l.getBoundingClientRect();if(i){const l=a.getBoundingClientRect();(i<=l.top?l.top-i<=t:e-l.bottom<=t)||this.$refs.scroller.setScrollPosition("vertical",i-l.top);break}}}}))}))}},onAdded(e){0!==e.length&&(0!==this.fileArr.length?(this.$refs.uploaderRef.removeFile(this.fileArr[0]),this.fileArr.splice(0,1,e[0])):this.fileArr.push(e[0]))},sendMessage(e,t){(0,o.tN)([this.pdata["name"],this.data["name"],e,t])},pressedEnter(){"update"in this.data&&this.sendMessage("update",this.value)},updateDom(e){let t=e.files.length;t&&this.sendMessage("changed",e.xhr.responseText)},sendValue(){
1
+ "use strict";(globalThis["webpackChunkuniqua"]=globalThis["webpackChunkuniqua"]||[]).push([[513],{3952:(e,t,a)=>{a.d(t,{DK:()=>E,FP:()=>p,JB:()=>f,Jk:()=>A,KG:()=>y,MP:()=>u,NP:()=>m,PP:()=>Q,Q$:()=>$,QJ:()=>S,RF:()=>q,RX:()=>k,Rl:()=>d,S4:()=>w,Yt:()=>g,Zp:()=>s,fn:()=>c,nc:()=>C,q1:()=>x,rn:()=>X,sn:()=>v,tN:()=>b});a(7781),a(6186),a(4718),a(65),a(8499);var l=a(1576),i=a(3436);let s=null,n={};var o;const r=!1;let d=r;const c=["graph","chart","block","text"],u=["tree","table","list","text","graph","chart"];const h=window.location.host,p=`${window.location.protocol}//${h}`;let m={},g={},f={};function y(e){let t=window.location.href,a=t.split("?"),l=2==a.length?a[1]:null;l&&(a=l.split("#"),2==a.length&&(l=a[0]));let i=r?"ws://localhost:8000/ws":`ws://${h}/ws`;l&&(i+="?"+l),o=new WebSocket(i),o.onopen=()=>e.statusConnect=!0,o.onmessage=t=>{d&&console.log("incoming message",t.data),s.designCycle=0;let a=JSON.parse(t.data);a?e.processMessage(a):e.closeProgress(a)},o.onerror=t=>e.error(t),o.onclose=t=>{t.wasClean?e.info("Connection was finished by the server."):e.error("Connection suddenly closed!"),e.statusConnect=!1,d&&console.info("close code : "+t.code+" reason: "+t.reason)},s=e}function b(e){let t={block:e[0],element:e[1],event:e[2],value:e[3]};d&&console.log("sended",t),o.send(JSON.stringify(t))}let v=!0;function k(e){v=e,e||(f={})}function w(e){if(v){let t=f[e.fullname];if(t)return t.styleSize;v=!1}return null}function A(e,t,a,l="complete"){let i=[e.pdata.name,e.data.name,l,t];b(i),n[i.toString()]=a}function C(e,t,a,l,i){let s=[e,t,i,a];b(s),n[s.toString()]=l}function x(){m={},f=g,v=!0,g={}}function _(e,t,a=null){let l=null;for(let i=0;i<e.length;i++)if(Array.isArray(e[i])){if(l=_(e[i],t,a),l)return l}else if(e[i].name==t)return a&&(e[i]=a),e[i];return null}function q(e){for(let t of e){let e=t.path,a=s.screen.blocks,l=null;e.length>1?(l=_(a,e[0],null),l&&(l=_(l.value,e[1],t.data))):l=_(a,e[0],t.data),l||s.error("Invalid path: "+name)}}function S(e){let t=`${e.element}@${e.block}`,a=g[t];a.update?a.update(e):console.error()}function X(e){let t=[e.message.block,e.message.element,e.type,e.message.value].toString();if("string"==typeof e.value)s.error(e.value);else if(n[t]){let a=n[t];delete n[t],a(e.value,e.message)}else s.error(t+" doesnt exist in queryMap!")}function W(e){let t=[];for(let a of e)a instanceof Array?t.push(a):t.push([a]);let a=t.shift();return t.reduce(((e,t)=>e.flatMap((e=>t.map((t=>e instanceof Array?[...e,t]:[e,t]))))),a)}function $(e=!1){requestAnimationFrame((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{Q(document.documentElement.scrollWidth>window.innerWidth)}))}))}))}let E=(0,i.debounce)($,50);function Q(e){if(s.designCycle>=1)return;d&&console.log(`------------------recalc design ${s.designCycle}`),s.designCycle++;const t=F(e),a=D(e);for(let[e,l]of Object.entries(t)){let t=g[e],i=a[e];const[s,n]=i||[0,1];let o,r=t.geom(),d=r.el,c=t.pdata?t.pdata.name:t.name,u=m[c];for(let e of u.data.value.slice(1))if(Array.isArray(e)){if(e.find((e=>e.name==t.data.name))){let t=e[e.length-1],a=`${t.name}@${c}`;o=g[a];break}}else if(e.name==t.data.name){o=t;break}let h=s;h/=n;let p=t.only_fixed_elems?"":`width:${Math.ceil(d.clientWidth+h)}px`;"text"==t.type&&(l-=t.showname?50:6);let f=`height:${Math.floor(l+t.he)}px;${p}`;f!=t.styleSize&&(t.styleSize=f),t.has_recalc=!1}}function F(e){const t=s.screen.blocks;let a=window.innerHeight-60,i={},n=new Map,o=[];for(let e of t){const t=[];let s=e instanceof Array,r=s?W(e):[[e]],d={};for(let[e,t]of Object.entries(m)){let a=t.$el.getBoundingClientRect(),l=a.bottom;d[e]=l-a.top}for(let e of r){let t=0,a=!0;Array.isArray(e)||(e=[e]);for(let l of e)t+=d[l.name],m[l.name].only_fixed_elems||(a=!1);if(a){let t=m[e.slice(-1)[0].name];g[t.fullname]=t}o.push([t+8*e.length,e])}o.sort(((e,t)=>e[0]>t[0]?-1:e[0]==t[0]?0:1));for(let e of o){let a=e[1];(0,l.vA)(Array.isArray(a));const i=[];for(let[e,t]of Object.entries(g))if(t.expanding_height){let[l,s]=e.split("@");if(a.find((e=>e.name==s))){let e=!0;const a=t.geom();for(let[l,s]of i.entries()){let o=s.geom();e&&s!==t&&o.top==a.top&&(o.scrollHeight<a.scrollHeight&&(i[l]=t),e=!1,n.set(t.fullname,s.fullname))}e&&i.push(t)}}i.length&&t.push([e[0],i])}for(let[e,l]of t){let t=0,s=[];for(let a of l)if(a.fullname in i)e+=i[a.fullname];else{let l=a.geom(),i=l.bottom-l.top;i<100&&(e+=100-i,i=100),a.he=i,t+=a.he,s.push(a)}let n=(t+a-e)/s.length,o=0;for(let e of s){let t,a=n-e.he;if(1==s.length)t=a;else if(t=Math.floor(a),a-t){o+=a-t;let e=Math.round(o)-o;e<.001&&e>-.001&&(t+=Math.round(o),o=0)}i[e.fullname]=t}}}let r=Array.from(n.entries());r.sort(((e,t)=>e[0]in i||e[1]in i?-1:1));for(let[e,t]of r)t in i?(i[e]=i[t],g[e].he=g[t].he):(i[t]=i[e],g[t].he=g[e].he);return i}function D(e){let t=null;const a=t?[t]:s.screen.blocks;let l=window.innerWidth-20,i=[],n={};for(let e of a)if(0==i.length)if(Array.isArray(e))for(let t of e)i.push(Array.isArray(t)?t:[t]);else i=[[e]];else{let t=[];if(Array.isArray(e))for(let a of e)for(let e of i)t.push(Array.isArray(a)?e.concat(a):[...e,a]);else for(let a of i)t.push([...a,e]);i=t}const o=[];for(let e of i){let t=0;for(let a of e){let e=m[a.name].$el.getBoundingClientRect();t+=e.right-e.left+5}let a=l-t,i=[[]];for(let t of e){let e=[],a=m[t.name].hlevelements;if(a.length){for(let t of a)for(let a of i)e.push([...a,...t]);i=e}}for(let e of i)o.push([a,e])}o.sort(((e,t)=>t[1].length-e[1].length));for(let[t,a]of o){let l=new Map;for(let e=0;e<a.length;e++){let i=a[e],s=i.parent_name,o=s||i.name,r=i.geom(),d=(i.data.width?i.data.width:r.scrollWidth)-(r.right-r.left);if(d>1&&!c.includes(i.type)&&t>0&&!n[i.fullname]){let e=t>d?d:t;t-=e,n[i.fullname]=[e,1]}if(o=i.parent_name,o){let e=m[o],t=e.$el.getBoundingClientRect().right-6,a=e.free_right_delta4(i,r.right),s=t-a;a&&s>0&&(!l.has(o)||l.get(o)>s)&&l.set(o,s)}}for(let e of l.values())t+=e;let i=[];for(let l of a)if(l.expanding_width&&(e||c.includes(l.type)))if(n[l.fullname]){let[e,a]=n[l.fullname];t-=e/a}else i.push(l);let s=i.length;const o=t/s;for(let e of i)n[e.fullname]||(n[e.fullname]=[Math.floor(o),1]);for(let e of a)n[e.fullname]||(n[e.fullname]=[0,1])}return n}},2513:(e,t,a)=>{a.r(t),a.d(t,{default:()=>pt});var l=a(1758),i=a(8790);function s(e,t,a,s,n,o){const r=(0,l.g2)("q-item-label"),d=(0,l.g2)("element"),c=(0,l.g2)("q-tab"),u=(0,l.g2)("q-tabs"),h=(0,l.g2)("q-space"),p=(0,l.g2)("q-tooltip"),m=(0,l.g2)("q-btn"),g=(0,l.g2)("q-toolbar"),f=(0,l.g2)("q-header"),y=(0,l.g2)("zone"),b=(0,l.g2)("q-page"),v=(0,l.g2)("q-page-container"),k=(0,l.g2)("q-layout");return(0,l.uX)(),(0,l.Wv)(k,{view:"lHh Lpr lFf"},{default:(0,l.k6)((()=>[(0,l.bF)(f,{elevated:"",class:(0,i.C4)({"bg-deep-purple-9":e.Dark.isActive,"bg-blue-grey-9":!e.Dark.isActive})},{default:(0,l.k6)((()=>[(0,l.bF)(g,null,{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-h5"},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.screen.header?e.screen.header:""),1)])),_:1}),t[2]||(t[2]=(0,l.Lk)("div",{class:"q-pa-md"},null,-1)),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.left_toolbar,(t=>((0,l.uX)(),(0,l.Wv)(d,{class:(0,i.C4)(["q-ma-xs",{"bg-blue-grey-9":e.Dark.isActive}]),data:t,pdata:e.tooldata},null,8,["class","data","pdata"])))),256)),t[3]||(t[3]=(0,l.Lk)("div",{class:"q-pa-md"},null,-1)),(0,l.bF)(u,{class:"bold-tabs",align:"center","inline-label":"",dense:"",modelValue:e.tab,"onUpdate:modelValue":t[0]||(t[0]=t=>e.tab=t),style:{float:"center"}},{default:(0,l.k6)((()=>[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.menu,(t=>((0,l.uX)(),(0,l.CE)("div",null,[t.icon?((0,l.uX)(),(0,l.Wv)(c,{key:0,class:"justify-center text-white shadow-2","no-caps":"",name:t.name,icon:t.icon,label:t.name,onClick:a=>e.tabclick(t.name)},null,8,["name","icon","label","onClick"])):(0,l.Q3)("",!0),t.icon?(0,l.Q3)("",!0):((0,l.uX)(),(0,l.Wv)(c,{key:1,class:"justify-center text-white shadow-2","no-caps":"",name:t.name,label:t.name,onClick:a=>e.tabclick(t.name)},null,8,["name","label","onClick"]))])))),256))])),_:1},8,["modelValue"]),(0,l.bF)(h),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.right_toolbar,(t=>((0,l.uX)(),(0,l.Wv)(d,{class:(0,i.C4)(["q-ma-xs",{"bg-blue-grey-9":e.Dark.isActive}]),data:t,pdata:e.tooldata},null,8,["class","data","pdata"])))),256)),e.voice_button?((0,l.uX)(),(0,l.Wv)(m,{key:0,class:(0,i.C4)(["q-ma-xs",{"bg-blue-grey-9":e.Dark.isActive}]),dense:"",round:"",icon:e.isListening?"record_voice_over":"voice_over_off",onClick:e.toggleListening},{default:(0,l.k6)((()=>[(0,l.bF)(p,{class:"text-body2"},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.isListening?"Stop Voice Mate":"Start Voice Mate"),1)])),_:1})])),_:1},8,["class","icon","onClick"])):(0,l.Q3)("",!0),(0,l.bF)(m,{class:(0,i.C4)(["q-ma-xs",{"bg-blue-grey-9":e.Dark.isActive}]),dense:"",round:"",icon:e.Dark.isActive?"light_mode":"dark_mode",onClick:e.switchTheme},{default:(0,l.k6)((()=>[(0,l.bF)(p,{class:"text-body2"},{default:(0,l.k6)((()=>t[1]||(t[1]=[(0,l.eW)("Dark/Light mode")]))),_:1})])),_:1},8,["class","icon","onClick"])])),_:1})])),_:1},8,["class"]),(0,l.bF)(v,{class:"content"},{default:(0,l.k6)((()=>[(0,l.bF)(b,{class:"flex justify-center centers"},{default:(0,l.k6)((()=>[(0,l.bF)(y,{data:e.screen.blocks,ref:"page"},null,8,["data"])])),_:1})])),_:1})])),_:1})}a(7781),a(4739),a(8499);function n(e,t,a,s,n,o){const r=(0,l.g2)("q-icon"),d=(0,l.g2)("q-item-section"),c=(0,l.g2)("q-item-label"),u=(0,l.g2)("q-item");return(0,l.uX)(),(0,l.Wv)(u,{clickable:"",tag:"a",target:"_blank",onClick:e.send},{default:(0,l.k6)((()=>[(0,l.bF)(d,{avatar:""},{default:(0,l.k6)((()=>[(0,l.bF)(r,{name:e.icon},null,8,["name"])])),_:1}),(0,l.bF)(d,null,{default:(0,l.k6)((()=>[(0,l.bF)(c,null,{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.name),1)])),_:1})])),_:1})])),_:1},8,["onClick"])}var o=a(3952);const r=(0,l.pM)({name:"menubar",methods:{send(){(0,o.tN)(["root",null,"changed",this.name])}},props:{name:{type:String,required:!0},icon:{type:String,default:""}}});var d=a(2807),c=a(124),u=a(5173),h=a(492),p=a(3796),m=a(8582),g=a.n(m);const f=(0,d.A)(r,[["render",n]]),y=f;g()(r,"components",{QItem:c.A,QItemSection:u.A,QIcon:h.A,QItemLabel:p.A});const b={key:0,class:"row q-col-gutter-xs q-py-xs"},v={class:"q-col-gutter-xs"},k={key:0,class:"column q-col-gutter-xs"};function w(e,t,a,i,s,n){const o=(0,l.g2)("zone",!0),r=(0,l.g2)("block");return e.data instanceof Array?((0,l.uX)(),(0,l.CE)("div",b,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.data,(e=>((0,l.uX)(),(0,l.CE)("div",v,[e instanceof Array?((0,l.uX)(),(0,l.CE)("div",k,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e,(e=>((0,l.uX)(),(0,l.Wv)(o,{class:"q-col-gutter-xs q-py-xs",data:e},null,8,["data"])))),256))])):((0,l.uX)(),(0,l.Wv)(r,{key:1,data:e},null,8,["data"]))])))),256))])):((0,l.uX)(),(0,l.Wv)(r,{key:1,data:e.data},null,8,["data"]))}const A={class:"row no-wrap"},C={key:0,class:"frame"},x=["data","pdata"],_={key:0,class:"row"},q=["data","pdata"],S={key:0,class:"row no-wrap"};function X(e,t,a,s,n,o){const r=(0,l.g2)("element"),d=(0,l.g2)("q-icon"),c=(0,l.g2)("q-space"),u=(0,l.g2)("q-tooltip"),h=(0,l.g2)("q-btn"),p=(0,l.g2)("q-scroll-area"),m=(0,l.g2)("q-card");return(0,l.uX)(),(0,l.Wv)(m,{class:"my-card q-ma-xs container",style:(0,i.Tr)(e.only_fixed_elems?e.styleSize:null),key:e.name},{default:(0,l.k6)((()=>[(0,l.Lk)("div",A,[e.data.active?((0,l.uX)(),(0,l.CE)("div",C)):(0,l.Q3)("",!0),e.data.logo?((0,l.uX)(),(0,l.Wv)(r,{key:1,class:"q-ma-sm",data:e.data.logo,pdata:e.data},null,8,["data","pdata"])):e.data.icon?((0,l.uX)(),(0,l.Wv)(d,{key:2,class:"q-mt-sm q-ml-sm",style:{"padding-top":"6px"},size:"sm",name:e.data.icon},null,8,["name"])):(0,l.Q3)("",!0),"_"!=e.name[0]?((0,l.uX)(),(0,l.CE)("p",{key:3,class:(0,i.C4)(["q-ma-sm",{"text-info":e.Dark.isActive,"text-cyan-10":!e.Dark.isActive}]),style:{"padding-top":"6px","font-size":"18px"}},(0,i.v_)(e.name),3)):(0,l.Q3)("",!0),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.tops,(t=>((0,l.uX)(),(0,l.Wv)(r,{class:"q-ma-sm",data:t,pdata:e.data},null,8,["data","pdata"])))),256)),(0,l.bF)(c),"close"in e.data?((0,l.uX)(),(0,l.Wv)(h,{key:4,class:(0,i.C4)(["q-ma-xs",{"bg-blue-grey-9":e.Dark.isActive}]),rounded:"",dense:"",flat:"",size:"14px",icon:"cancel",onClick:e.close},{default:(0,l.k6)((()=>[(0,l.bF)(u,{class:"text-body2"},{default:(0,l.k6)((()=>t[0]||(t[0]=[(0,l.eW)("Close")]))),_:1})])),_:1},8,["class","onClick"])):(0,l.Q3)("",!0)]),e.data.scroll?((0,l.uX)(),(0,l.Wv)(p,{key:0,style:(0,i.Tr)(e.styleSize),"thumb-style":e.thumbStyle,"bar-style":e.barStyle},{default:(0,l.k6)((()=>[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.data.value.slice(1),(t=>((0,l.uX)(),(0,l.CE)("div",{class:"column",data:t,pdata:e.data},[t instanceof Array?((0,l.uX)(),(0,l.CE)("div",_,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(t,(t=>((0,l.uX)(),(0,l.Wv)(r,{class:"q-ma-xs",data:t,pdata:e.data},null,8,["data","pdata"])))),256))])):((0,l.uX)(),(0,l.Wv)(r,{key:1,class:"q-ma-xs",data:t,pdata:e.data},null,8,["data","pdata"]))],8,x)))),256))])),_:1},8,["style","thumb-style","bar-style"])):((0,l.uX)(!0),(0,l.CE)(l.FK,{key:1},(0,l.pI)(e.data.value.slice(1),(t=>((0,l.uX)(),(0,l.CE)("div",{class:"column",data:t,pdata:e.data},[t instanceof Array?((0,l.uX)(),(0,l.CE)("div",S,[t[0]&&t[0].space?((0,l.uX)(),(0,l.Wv)(c,{key:0})):(0,l.Q3)("",!0),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(t,(t=>((0,l.uX)(),(0,l.Wv)(r,{class:"q-ma-xs",data:t,pdata:e.data},null,8,["data","pdata"])))),256))])):((0,l.uX)(),(0,l.Wv)(r,{key:1,class:"q-ma-xs",data:t,pdata:e.data},null,8,["data","pdata"]))],8,q)))),256))])),_:1},8,["style"])}var W=a(9104);const $={class:"container"},E={key:5,class:"{'bg-blue-grey-9': Dark.isActive}"},Q=["width","height"],F=["src"],D={class:"camera-button"},R={key:0},L={key:1},M={class:"camera-loading"},K={ref:"camera",width:450,height:337.5,autoplay:""},I={id:"photoTaken",ref:"canvas",width:450,height:337.5},V={key:1,class:"camera-shoot"},T={key:2,class:"camera-download"},z={key:21},P={key:24,class:"frame"};function O(e,t,a,s,n,o){const r=(0,l.g2)("q-icon"),d=(0,l.g2)("q-img"),c=(0,l.g2)("q-select"),u=(0,l.g2)("q-checkbox"),h=(0,l.g2)("q-toggle"),p=(0,l.g2)("q-badge"),m=(0,l.g2)("q-slider"),g=(0,l.g2)("q-btn"),f=(0,l.g2)("q-btn-toggle"),y=(0,l.g2)("utable"),b=(0,l.g2)("asyncLinechart"),v=(0,l.g2)("q-input"),k=(0,l.g2)("q-tree"),w=(0,l.g2)("q-scroll-area"),A=(0,l.g2)("q-separator"),C=(0,l.g2)("q-uploader"),x=(0,l.g2)("asyncSgraph"),_=(0,l.g2)("htmlcomponent"),q=(0,l.g2)("q-tooltip"),S=(0,l.g2)("q-spinner-ios");return(0,l.uX)(),(0,l.CE)("div",$,["image"==e.type?((0,l.uX)(),(0,l.Wv)(d,{key:e.key,src:e.data.url,"spinner-color":"blue",onClick:(0,W.D$)(e.switchValue,["stop"]),fit:"cover",style:(0,i.Tr)(e.elemSize)},{default:(0,l.k6)((()=>[e.data.label?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"absolute-bottom-right text-subtitle2 custom-caption",onClick:t[0]||(t[0]=(0,W.D$)(((...t)=>e.lens&&e.lens(...t)),["stop"]))},(0,i.v_)(e.data.label),1)):(0,l.Q3)("",!0),e.value?((0,l.uX)(),(0,l.Wv)(r,{key:1,class:"absolute all-pointer-events",size:"32px",name:"check_circle",color:"light-blue-2",style:{"font-size":"2em",top:"8px",left:"8px"}})):(0,l.Q3)("",!0)])),_:1},8,["src","onClick","style"])):"select"==e.type?((0,l.uX)(),(0,l.Wv)(c,{key:e.key,ref:"inputRef","transition-show":"flip-up",readonly:0==e.data.edit,"transition-hide":"flip-down",dense:"",modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=t=>e.value=t),options:e.data.options},(0,l.eX)({_:2},[e.showname?{name:"prepend",fn:(0,l.k6)((()=>[(0,l.Lk)("p",{class:(0,i.C4)(["text-subtitle1 q-ma-sm",{white:e.Dark.isActive,black:!e.Dark.isActive}])},(0,i.v_)(e.name),3)])),key:"0"}:void 0]),1032,["readonly","modelValue","options"])):"check"==e.type?((0,l.uX)(),(0,l.Wv)(u,{key:e.key,ref:"inputRef","left-label":"",disable:0==e.data.edit,modelValue:e.value,"onUpdate:modelValue":t[2]||(t[2]=t=>e.value=t),label:e.nameLabel,"checked-icon":"task_alt","unchecked-icon":"highlight_off"},null,8,["disable","modelValue","label"])):"switch"==e.type?((0,l.uX)(),(0,l.Wv)(h,{key:e.key,ref:"inputRef",modelValue:e.value,"onUpdate:modelValue":t[3]||(t[3]=t=>e.value=t),disable:0==e.data.edit,color:"primary",label:e.nameLabel,"left-label":""},null,8,["modelValue","disable","label"])):"range"==e.type?((0,l.uX)(),(0,l.CE)("div",{key:e.key},[(0,l.bF)(p,{outline:"",dense:"",color:e.Dark.isActive?"blue-3":"blue-9"},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.name)+": "+(0,i.v_)(e.value)+" ("+(0,i.v_)(e.data.options[0])+" to "+(0,i.v_)(e.data.options[1])+", Δ "+(0,i.v_)(e.data.options[2])+")",1)])),_:1},8,["color"]),(0,l.bF)(m,{class:"q-pl-sm",dense:"",modelValue:e.value,"onUpdate:modelValue":t[4]||(t[4]=t=>e.value=t),min:e.data.options[0],max:e.data.options[1],step:e.data.options[2],color:"primary"},null,8,["modelValue","min","max","step"])])):"radio"==e.type?((0,l.uX)(),(0,l.CE)("div",E,[e.showname?((0,l.uX)(),(0,l.Wv)(g,{key:0,ripple:!1,color:"indigo-10",disable:"",label:e.name,"no-caps":""},null,8,["label"])):(0,l.Q3)("",!0),(0,l.bF)(f,{ref:"inputRef",modelValue:e.value,"onUpdate:modelValue":t[5]||(t[5]=t=>e.value=t),readonly:0==e.data.edit,class:(0,i.C4)({"bg-blue-grey-9":e.Dark.isActive}),"no-caps":"",options:e.data.options.map((e=>({label:e,value:e})))},null,8,["modelValue","readonly","class","options"])])):"table"==e.type?((0,l.uX)(),(0,l.Wv)(y,{key:e.key,data:e.data,pdata:e.pdata,styleSize:e.styleSize},null,8,["data","pdata","styleSize"])):"chart"==e.type?((0,l.uX)(),(0,l.Wv)(b,{key:e.key,data:e.data,pdata:e.pdata,styleSize:e.styleSize},null,8,["data","pdata","styleSize"])):"string"==e.type&&e.data.hasOwnProperty("complete")?((0,l.uX)(),(0,l.Wv)(c,{key:e.key,ref:"inputRef",dense:"",readonly:0==e.data.edit,modelValue:e.value,"onUpdate:modelValue":t[6]||(t[6]=t=>e.value=t),"use-input":"","hide-selected":"",borderless:"",outlined:"","hide-bottom-space":"","fill-input":"","input-debounce":"0",options:e.options,onFilter:e.complete,label:e.name,onKeydown:(0,W.jR)(e.pressedEnter,["enter"])},null,8,["readonly","modelValue","options","onFilter","label","onKeydown"])):"string"==e.type&&0==e.data.edit?((0,l.uX)(),(0,l.CE)("div",{key:e.key},[(0,l.Lk)("p",{class:(0,i.C4)(["q-ma-sm",{white:e.Dark.isActive,black:!e.Dark.isActive}])},(0,i.v_)(e.value),3)])):"string"==e.type?((0,l.uX)(),(0,l.Wv)(v,{key:e.key,modelValue:e.value,"onUpdate:modelValue":t[7]||(t[7]=t=>e.value=t),label:e.name2show,ref:"inputRef",autogrow:e.data.autogrow,dense:"",onKeydown:(0,W.jR)(e.pressedEnter,["enter"]),readonly:0==e.data.edit},null,8,["modelValue","label","autogrow","onKeydown","readonly"])):"number"==e.type?((0,l.uX)(),(0,l.Wv)(v,{key:e.key,modelValue:e.value,"onUpdate:modelValue":t[8]||(t[8]=t=>e.value=t),modelModifiers:{number:!0},label:e.name2show,ref:"inputRef",dense:"",onKeydown:(0,W.jR)(e.pressedEnter,["enter"]),type:"number",readonly:0==e.data.edit},null,8,["modelValue","label","onKeydown","readonly"])):"tree"==e.type||"list"==e.type?((0,l.uX)(),(0,l.CE)("div",{key:e.key},[e.showname?((0,l.uX)(),(0,l.CE)("p",{key:0,class:(0,i.C4)(["text-subtitle1 q-ma-sm text-grey-7",{"text-white":e.Dark.isActive,"text-indigo-10":!e.Dark.isActive}])},(0,i.v_)(e.name),3)):(0,l.Q3)("",!0),(0,l.bF)(w,{style:(0,i.Tr)(e.styleSize),"thumb-style":e.thumbStyle,"bar-style":e.barStyle,ref:"scroller"},{default:(0,l.k6)((()=>[(0,l.bF)(k,{nodes:e.treeNodes,"selected-color":e.Dark.isActive?"blue-3":"blue-9",dense:e.data.dense,ref:"tree",selected:e.value,"onUpdate:selected":t[9]||(t[9]=t=>e.value=t),expanded:e.expandedKeys,"onUpdate:expanded":t[10]||(t[10]=t=>e.expandedKeys=t),"node-key":"label","default-expand-all":""},null,8,["nodes","selected-color","dense","selected","expanded"])])),_:1},8,["style","thumb-style","bar-style"])])):"text"==e.type?((0,l.uX)(),(0,l.CE)("div",{key:e.key},[e.showname?((0,l.uX)(),(0,l.CE)("p",{key:0,class:(0,i.C4)(["text-subtitle1 q-ma-sm",{"text-white":e.Dark.isActive,"text-indigo-10":!e.Dark.isActive}])},(0,i.v_)(e.name),3)):(0,l.Q3)("",!0),(0,l.bo)((0,l.Lk)("textarea",{class:(0,i.C4)(["textarea",{"bg-grey-10":e.Dark.isActive,"text-white":e.Dark.isActive}]),"onUpdate:modelValue":t[11]||(t[11]=t=>e.value=t),ref:"inputRef",filled:"",type:"textarea",style:(0,i.Tr)(e.elemSize),onKeydown:t[12]||(t[12]=(0,W.jR)(((...t)=>e.pressedEnter&&e.pressedEnter(...t)),["enter"]))},null,38),[[W.Jo,e.value]])])):"line"==e.type?((0,l.uX)(),(0,l.Wv)(A,{key:14,color:"green"})):"video"==e.type?((0,l.uX)(),(0,l.CE)("video",{key:e.key,controls:"",width:e.data.width,height:e.data.height},[(0,l.Lk)("source",{src:e.data.url,type:"video/mp4"},null,8,F)],8,Q)):"uploader"==e.type?((0,l.uX)(),(0,l.Wv)(C,{key:e.key,label:e.name,"auto-upload":"",thumbnails:"",url:e.host_path,onUploaded:e.updateDom,onAdded:e.onAdded,style:(0,i.Tr)(e.elemSize),ref:"uploaderRef",flat:"",class:(0,i.C4)({"bg-grey-10":e.Dark.isActive}),color:e.Dark.isActive?"purple-10":"blue"},null,8,["label","url","onUploaded","onAdded","style","class","color"])):"image_uploader"==e.type?((0,l.uX)(),(0,l.Wv)(C,{key:e.key,label:e.name,"auto-upload":"",thumbnails:"",url:e.host_path,onUploaded:e.updateDom,onAdded:e.onAdded,ref:"uploaderRef",flat:"",class:(0,i.C4)({"bg-grey-10":e.Dark.isActive}),color:e.Dark.isActive?"purple-10":"blue"},null,8,["label","url","onUploaded","onAdded","class","color"])):"graph"==e.type?((0,l.uX)(),(0,l.Wv)(x,{key:e.key,data:e.data,pdata:e.pdata,styleSize:e.elemSize},null,8,["data","pdata","styleSize"])):"camera"==e.type?((0,l.uX)(),(0,l.CE)("div",{class:"web-camera-container",key:e.key},[(0,l.Lk)("div",D,[(0,l.Lk)("button",{class:(0,i.C4)(["button is-rounded",{"is-primary":!e.isCameraOpen,"is-danger":e.isCameraOpen}]),type:"button",onClick:t[13]||(t[13]=(...t)=>e.toggleCamera&&e.toggleCamera(...t))},[e.isCameraOpen?((0,l.uX)(),(0,l.CE)("span",L,"Close Camera")):((0,l.uX)(),(0,l.CE)("span",R,"Open Camera"))],2)]),(0,l.bo)((0,l.Lk)("div",M,t[15]||(t[15]=[(0,l.Lk)("ul",{class:"loader-circle"},[(0,l.Lk)("li"),(0,l.Lk)("li"),(0,l.Lk)("li")],-1)]),512),[[W.aG,e.isCameraOpen&&e.isLoading]]),e.isCameraOpen?(0,l.bo)(((0,l.uX)(),(0,l.CE)("div",{key:0,class:(0,i.C4)(["camera-box",{flash:e.isShotPhoto}])},[(0,l.Lk)("div",{class:(0,i.C4)(["camera-shutter",{flash:e.isShotPhoto}])},null,2),(0,l.bo)((0,l.Lk)("video",K,null,512),[[W.aG,!e.isPhotoTaken]]),(0,l.bo)((0,l.Lk)("canvas",I,null,512),[[W.aG,e.isPhotoTaken]])],2)),[[W.aG,!e.isLoading]]):(0,l.Q3)("",!0),e.isCameraOpen&&!e.isLoading?((0,l.uX)(),(0,l.CE)("div",V,[(0,l.Lk)("button",{class:"button",type:"button",onClick:t[14]||(t[14]=(...t)=>e.takePhoto&&e.takePhoto(...t))},t[16]||(t[16]=[(0,l.Lk)("img",{src:"https://img.icons8.com/material-outlined/50/000000/camera--v2.png"},null,-1)]))])):(0,l.Q3)("",!0),e.isPhotoTaken&&e.isCameraOpen?((0,l.uX)(),(0,l.CE)("div",T,[(0,l.bF)(g,{onClick:e.downloadImage,label:"Send"},null,8,["onClick"])])):(0,l.Q3)("",!0)])):"html"==e.type?((0,l.uX)(),(0,l.Wv)(_,{key:e.key,data:e.data,pdata:e.pdata,style:(0,i.Tr)(e.elemSize)},null,8,["data","pdata","style"])):""!=e.showname?((0,l.uX)(),(0,l.CE)("div",z,[((0,l.uX)(),(0,l.Wv)(g,{key:e.key,ref:"inputRef","no-caps":"",disable:0==e.data.edit,class:(0,i.C4)({"bg-blue-grey-8":e.Dark.isActive}),style:(0,i.Tr)(e.button_style),color:e.data.color,label:e.name,icon:e.data.icon,onClick:e.sendValue},{default:(0,l.k6)((()=>[e.data.tooltip?((0,l.uX)(),(0,l.Wv)(q,{key:0,class:"text-body2"},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.data.tooltip),1)])),_:1})):(0,l.Q3)("",!0)])),_:1},8,["disable","class","style","color","label","icon","onClick"]))])):e.data.spinner?((0,l.uX)(),(0,l.Wv)(g,{key:e.key,ref:"inputRef","no-caps":"",dense:"",disable:0==e.data.edit,round:"",class:(0,i.C4)({"bg-blue-grey-8":e.Dark.isActive}),color:e.data.color,onClick:e.sendValue},{default:(0,l.k6)((()=>[(0,l.bF)(S,{color:e.Dark.isActive?"white":"black"},null,8,["color"]),e.data.tooltip?((0,l.uX)(),(0,l.Wv)(q,{key:0,class:"text-body2"},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.data.tooltip),1)])),_:1})):(0,l.Q3)("",!0)])),_:1},8,["disable","class","color","onClick"])):((0,l.uX)(),(0,l.Wv)(g,{key:e.key,ref:"inputRef","no-caps":"",disable:0==e.data.edit,dense:"",round:"",class:(0,i.C4)({"bg-blue-grey-8":e.Dark.isActive}),color:e.data.color,icon:e.data.icon,onClick:e.sendValue},{default:(0,l.k6)((()=>[e.data.tooltip?((0,l.uX)(),(0,l.Wv)(q,{key:0,class:"text-body2"},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.data.tooltip),1)])),_:1})):(0,l.Q3)("",!0)])),_:1},8,["disable","class","color","icon","onClick"])),e.data.active?((0,l.uX)(),(0,l.CE)("div",P)):(0,l.Q3)("",!0)])}a(9526);var U=a(8734);const j={class:"text-h6"},B={key:0},H={class:"row"},N=["onClick"],Y=["onClick"];function J(e,t,a,s,n,o){const r=(0,l.g2)("q-tooltip"),d=(0,l.g2)("q-btn"),c=(0,l.g2)("q-icon"),u=(0,l.g2)("q-input"),h=(0,l.g2)("q-th"),p=(0,l.g2)("q-tr"),m=(0,l.g2)("q-checkbox"),g=(0,l.g2)("q-select"),f=(0,l.g2)("q-td"),y=(0,l.g2)("q-table");return(0,l.uX)(),(0,l.Wv)(y,{"virtual-scroll":"",dense:e.data.dense,style:(0,i.Tr)(e.styleSize?e.styleSize:e.currentStyle()),flat:"",filter:e.data.id?"":e.search,ref:"table",virtualScrollSliceSize:"100",pagination:e.pagination,"virtual-scroll-item-size":"100",onVirtualScroll:e.onScroll,"rows-per-page-options":[0],"virtual-scroll-sticky-size-start":100,"row-key":"iiid",title:e.name,rows:e.rows,columns:e.columns,selection:e.singleMode?"single":"multiple",selected:e.selected,"onUpdate:selected":t[2]||(t[2]=t=>e.selected=t)},{"top-left":(0,l.k6)((()=>["link"in e.data?((0,l.uX)(),(0,l.Wv)(d,{key:0,class:(0,i.C4)(["q-ml-xs",{"bg-blue-grey-8":e.Dark.isActive}]),dense:"",outline:"",color:"primary",icon:e.data.filter?"filter_alt":"filter_alt_off","no-caps":"",onClick:e.switchFilter},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.data.filter?"Turn off filter":"Turn on filter"),1)])),_:1})])),_:1},8,["class","icon","onClick"])):(0,l.Q3)("",!0),(0,l.Lk)("div",j,(0,i.v_)(e.name),1)])),"top-right":(0,l.k6)((()=>[!1!==e.data.tools?((0,l.uX)(),(0,l.CE)("div",B,[(0,l.Lk)("div",H,[(0,l.bF)(u,{modelValue:e.search,"onUpdate:modelValue":t[1]||(t[1]=t=>e.search=t),label:"Search",dense:"",ref:"searchField"},(0,l.eX)({append:(0,l.k6)((()=>[""!=e.search?((0,l.uX)(),(0,l.Wv)(c,{key:0,class:"cursor-pointer",name:"close",size:"xs",onClick:t[0]||(t[0]=t=>{e.search="",e.$refs.searchField.focus()})},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>t[3]||(t[3]=[(0,l.eW)("Reset search ")]))),_:1})])),_:1})):(0,l.Q3)("",!0)])),_:2},[""==e.search?{name:"prepend",fn:(0,l.k6)((()=>[(0,l.bF)(c,{name:"search",size:"xs"})])),key:"0"}:void 0]),1032,["modelValue"]),(0,l.Lk)("div",null,[(0,l.bF)(d,{class:(0,i.C4)(["q-ml-xs",{"bg-blue-grey-8":e.Dark.isActive}]),dense:"",rounded:"",icon:"select_all","no-caps":"",onClick:e.showSelected},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>t[4]||(t[4]=[(0,l.eW)("Show selected ")]))),_:1})])),_:1},8,["class","onClick"]),(0,l.bF)(d,{class:(0,i.C4)(["q-ml-xs",{"bg-blue-grey-8":e.Dark.isActive}]),dense:"",rounded:"",icon:"deselect","no-caps":"",onClick:e.deselectAll},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>t[5]||(t[5]=[(0,l.eW)("Deselect all")]))),_:1})])),_:1},8,["class","onClick"]),!1!==e.data.multimode?((0,l.uX)(),(0,l.Wv)(d,{key:0,class:(0,i.C4)(["q-ml-xs",{"bg-blue-grey-8":e.Dark.isActive}]),dense:"",rounded:"",icon:e.singleMode?"looks_one":"grain","no-caps":"",onClick:e.switchMode},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>t[6]||(t[6]=[(0,l.eW)("Multi-single select mode ")]))),_:1})])),_:1},8,["class","icon","onClick"])):(0,l.Q3)("",!0),e.editable?((0,l.uX)(),(0,l.Wv)(d,{key:1,class:(0,i.C4)(["q-ml-xs",{"bg-blue-grey-8":e.Dark.isActive}]),dense:"",rounded:"",icon:e.data.editing?"cancel":"edit","no-caps":"",onClick:e.switchEdit},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>t[7]||(t[7]=[(0,l.eW)("Edit mode")]))),_:1})])),_:1},8,["class","icon","onClick"])):(0,l.Q3)("",!0),e.editable&&"append"in e.data?((0,l.uX)(),(0,l.Wv)(d,{key:2,class:(0,i.C4)(["q-ml-xs",{"bg-blue-grey-8":e.Dark.isActive}]),dense:"",rounded:"",icon:"add","no-caps":"",onClick:e.append},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(e.data.filter?"Add a new entity+link":"Add a new row"),1)])),_:1})])),_:1},8,["class","onClick"])):(0,l.Q3)("",!0),"delete"in e.data?((0,l.uX)(),(0,l.Wv)(d,{key:3,class:(0,i.C4)(["q-ml-xs",{"bg-blue-grey-8":e.Dark.isActive}]),dense:"",rounded:"",icon:"delete_forever","no-caps":"",onClick:e.delSelected},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>t[8]||(t[8]=[(0,l.eW)("Delete selected ")]))),_:1})])),_:1},8,["class","onClick"])):(0,l.Q3)("",!0),"view"in e.data?((0,l.uX)(),(0,l.Wv)(d,{key:4,class:(0,i.C4)(["q-ml-xs",{"bg-blue-grey-8":e.Dark.isActive}]),dense:"",rounded:"",icon:"insights","no-caps":"",onClick:e.chart},{default:(0,l.k6)((()=>[(0,l.bF)(r,{class:"text-body2"},{default:(0,l.k6)((()=>t[9]||(t[9]=[(0,l.eW)("Draw the chart")]))),_:1})])),_:1},8,["class","onClick"])):(0,l.Q3)("",!0)])])])):(0,l.Q3)("",!0)])),header:(0,l.k6)((t=>[(0,l.bF)(p,{props:t},{default:(0,l.k6)((()=>[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(t.cols,(a=>((0,l.uX)(),(0,l.Wv)(h,{class:(0,i.C4)(["text-italic",{"text-grey-9":!e.Dark.isActive,"text-teal-3":e.Dark.isActive}]),key:a.name,props:t},{default:(0,l.k6)((()=>[(0,l.eW)((0,i.v_)(a.label),1)])),_:2},1032,["class","props"])))),128))])),_:2},1032,["props"])])),body:(0,l.k6)((t=>[(0,l.bF)(p,{props:t,onClick:e=>t.selected=!t.selected},{default:(0,l.k6)((()=>[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.columns,((a,s)=>((0,l.uX)(),(0,l.Wv)(f,{key:a.name,props:t},{default:(0,l.k6)((()=>["boolean"==typeof t.row[a.name]?((0,l.uX)(),(0,l.Wv)(m,{key:0,modelValue:t.row[a.name],"onUpdate:modelValue":[e=>t.row[a.name]=e,l=>e.change_switcher(t.row,a.name,s)],dense:"",disable:!e.data.editing},null,8,["modelValue","onUpdate:modelValue","disable"])):e.data.editing&&"complete"in e.data&&s==e.cedit&&e.redit==t.row.iiid?((0,l.uX)(),(0,l.Wv)(g,{key:1,dense:"","model-value":t.row[a.name],"use-input":"","hide-selected":"","fill-input":"",autofocus:"",outlined:"",borderless:"",onInputValue:e.change,"hide-dropdown-icon":"","input-debounce":"0",options:e.options,onKeydown:e.keyInput,onFilter:e.complete},null,8,["model-value","onInputValue","options","onKeydown","onFilter"])):e.data.editing&&s==e.cedit&&e.redit==t.row.iiid?((0,l.uX)(),(0,l.Wv)(u,{key:2,modelValue:t.row[a.name],"onUpdate:modelValue":[e=>t.row[a.name]=e,e.change],dense:"",onKeydown:e.keyInput,autofocus:""},null,8,["modelValue","onUpdate:modelValue","onKeydown"])):void 0==t.row[a.name]?((0,l.uX)(),(0,l.CE)("div",{key:3,onClick:a=>e.select(t.row,s)},"-- ",8,N)):((0,l.uX)(),(0,l.CE)("div",{key:4,onClick:a=>e.select(t.row,s)},(0,i.v_)(t.row[a.name]),9,Y))])),_:2},1032,["props"])))),128))])),_:2},1032,["props","onClick"])])),_:1},8,["dense","style","filter","pagination","onVirtualScroll","title","rows","columns","selection","selected"])}a(6186);var Z=a(411);function G(e,t){return e.length===t.length&&e.every(((e,a)=>t[a]&&e.iiid==t[a].iiid))}let ee="✘";function te(e,t){let a=[];const l=e.headers,i=l.length,s=t.length;for(var n=0;n<s;n++){const s={},r=t[n];for(var o=0;o<i;o++)null!=r[o]&&void 0!=r[o]&&(s[l[o]]=r[o]);let d=r.length;s.iiid=i<d||e.id?r[d-1]:n,a.push(s)}return a}function ae(e,t){let a=[],{limit:l,length:i,data:s}=t.rows;i&&a.splice(0,0,...te(t,s)),a.length=i,a=(0,U.Kh)(a);let n=[];function r(l,i){switch(l.update){case"update":a[l.index]=te(t,[l.data])[0];break;case"updates":if(l.data){let e=l.data.length;a.splice(l.index,e,...te(t,l.data))}if("length"in l&&(a.length=l.length),i){let a=n.indexOf(i.value);-1!=a&&n.splice(a,1),n.length&&(0,o.nc)(e,t.name,n[n.length-1],r,"get")}break;case"delete":this.length--,a.splice(l.index,1);break;case"add":a[this.length]=te(t,[l.data])[0],this.length++;break;case"adds":a.splice(l.index,0,...te(t,l.data)),this.length+=l.data.length}}function d(a){-1==n.indexOf(a)&&(n.length>5&&n.splice(0,1),n.push(a),1==n.length&&(0,o.nc)(e,t.name,a,r,"get"))}return t.update=r,a.add2quered=d,a}const le=(0,l.pM)({name:"utable",setup(e){const{data:t,pdata:a}=(0,U.QW)(e),i=(0,U.KR)(null);let s,n=t.value;s=n.id?(0,U.KR)(ae(a.value.name,n)):(0,U.KR)(te(n,n.rows));let r=()=>{let e=t.value,a=null===e.value||0==s.value.length?[]:Array.isArray(e.value)?s.value.filter((t=>e.value.includes(t.iiid))):s.value.filter((t=>e.value==t.iiid));return a},d=r(),c=(0,U.KR)(d),u=(0,U.KR)(d),h=(0,U.KR)(!Array.isArray(t.value.value)),p=(e,l)=>{(0,o.tN)([a.value.name,t.value.name,e,l])},m=(0,l.EW)((()=>t.value.value));return(0,l.wB)(s,((e,t)=>{u.value=r(),c.value=u.value})),(0,l.wB)(t,((e,l)=>{o.Rl&&console.log("data update",l.name),n.id?s.value=ae(a.value.name,e):s.value=te(e,e.rows),u.value=r(),c.value=u.value,h.value=!Array.isArray(t.value.value),i.value.scrollTo(0)})),{rows:s,selected:u,singleMode:h,sendMessage:p,datavalue:m,updated:c,table:i,onScroll(e){let t=n.rows.limit,a=(e.from/t|0)*t,l=(e.to/t|0)*t;for(let e=a;e<=l;e+=t)s.value[e]||s.value.add2quered(e)}}},data(){return{Dark:Z.A,search:"",options:[],prevSelectedId:void 0,cedit:null,pagination:{rowsPerPage:0}}},methods:{switchFilter(){let e=this.data;e.filter=!e.filter,this.sendMessage("filter",e.filter)},currentStyle(){let e=this.data.tablerect;if(e){let t=e.width,a=e.height;return`width: ${t}px; height: ${a}px`}return null},select(e,t){if(this.data.editing){let a=this.headers[t];"ID"!=a&&"ⓇID"!=a&&(this.cedit=t,o.Rl&&console.log("selected",e.iiid,this.cedit))}},change_switcher(e,t,a){if(this.data.editing){let a=this.data.headers.indexOf(t),l=this.rows.findIndex((t=>t?.iiid==e.iiid));this.sendMessage("modify",{value:e[t],id:e.iiid,delta:l,cell:a})}},change(e){let t=this.headers[this.cedit],a=this.data.headers.indexOf(t);if(o.Rl&&console.log("changed",t,e),this.data.editing&&this.selected.length){const l=this.selected[0];l[t]=e;this.rows;let i=this.rows.findIndex((e=>e?.iiid==l.iiid));if(-1==i)return void console.log("cannot find a row!");this.sendMessage("modify",{value:e,delta:i,id:l.iiid,cell:a})}},keyInput(e){if("Control"==e.key)return;let t=!1;switch(e.key){case"Enter":"update"in this.data&&this.sendMessage("update",[this.rows[this.redit][this.headers[this.cedit]],[this.redit,this.cedit]]),t=!0;case"ArrowRight":if(e.ctrlKey||t)for(let e=this.cedit+1;e<this.headers.length;){let t=this.headers[e],a=this.selected[0][t],l=typeof a;if("boolean"!=l&&"ⓇID"!=t&&"ID"!=t){this.cedit=e;break}}break;case"Escape":this.switchEdit();break;case"ArrowLeft":if(e.ctrlKey)for(let e=this.cedit-1;e>=0;e--){let t=this.headers[e],a=typeof this.selected[0][t];if("boolean"!=a&&"ⓇID"!=t&&"ID"!=t){this.cedit=e;break}}break;case"ArrowUp":if(e.ctrlKey&&this.redit>0){let e=this.redit-1,t=this.data,a=typeof t.rows[e][this.cedit];"string"!=a&&"number"!=a||(t.value=e),this.selected=[this.rows[e]]}break;case"ArrowDown":if(e.ctrlKey&&this.redit+1<this.rows.length){let e=this.redit+1,t=this.data,a=typeof t.rows[e][this.cedit];"string"!=a&&"number"!=a||(t.value=e),this.selected=[this.rows[e]]}break}},complete(e,t,a){(0,o.Jk)(this,[e,[this.redit,this.cedit]],(e=>t((()=>{this.options=e}))))},append(){let e=this.rows,t=e.length,a=this;"append"in this.data&&(0,o.Jk)(this,this.search,(function(l){if(!Array.isArray(l))return o.Zp.error(l);o.Rl&&console.log("added row",l),a.search="",l=te(a.data,[l])[0],l.iiid=Math.random(),e.push(l),setTimeout((()=>{let e=a.rows;a.selected=[e[t]],a.showSelected(),a.data.editing||a.switchEdit(),a.select(e[t],0)}),100)}),"append")},showSelected(){if(this.selected.length){let e=this.$refs.table,t=this.rows,a=this.selected[0];if(void 0!=this.prevSelectedId){let e=this.selected.findIndex((e=>e?.iiid==this.prevSelectedId));-1!=e&&(++e>=this.selected.length&&(e=0),a=this.selected[e])}let i=a.iiid;this.prevSelectedId=i;let s=t.findIndex((e=>e?.iiid==i));e.scrollTo(s),(0,l.dY)((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{e.scrollTo(s)}))}))}))}))}))}))}))}},deselectAll(){this.selected=[],this.sendMessage("changed",this.value)},chart(){let e=this.data;e.type="chart",e.tablerect=this.$refs.table.$el.getBoundingClientRect(),o.Yt[this.fullname].styleSize=this.currentStyle()},switchMode(){this.singleMode=!this.singleMode,this.singleMode&&this.selected.length>1&&this.selected.splice(1)},switchEdit(){let e=this.data;e.editing=!e.editing,this.sendMessage("editing",this.data.editing)},delSelected(){if(this.selected.length){if(this.sendMessage("delete",this.value),this.singleMode)this.rows.splice(this.value,1);else{let e=this.value;e.sort((function(e,t){return t-e}));for(let t of e)this.rows.splice(t,1)}this.selected=[]}else o.Zp.error("Rows are not selected!")}},watch:{selected(e){const t=this.data;G(this.updated,this.selected)||(this.sendMessage("changed",this.value),this.updated=this.selected),t.show&&(this.showSelected(),t.show=!1)},search(e){this.data.id&&this.sendMessage("search",e)}},computed:{fullname(){return`${this.data.name}@${this.pdata.name}`},redit(){return this.data.editing&&this.selected.length?this.selected[0].iiid:null},editable(){return 0!=this.data["edit"]},value(){let e=this.selected.map((e=>this.rows.findIndex((t=>t?.iiid===e.iiid))));return-1!=e.indexOf(-1)&&console.error("selected row in a table did not found!"),this.singleMode?1==e.length?e[0]:null:e},name(){return"_"==this.data.name?"":this.data.name},headers(){let e=this.data;return e.headers.filter((e=>!e.startsWith(ee)))},columns(){let e=!this.data.id;return this.headers.map((t=>({name:t,label:t,align:"left",sortable:e,field:t})))}},props:{data:Object,pdata:Object,styleSize:String}});var ie=a(8098),se=a(6384),ne=a(7410),oe=a(9270),re=a(4488),de=a(7722),ce=a(5262),ue=a(460),he=a(9183);const pe=(0,d.A)(le,[["render",J]]),me=pe;g()(le,"components",{QTable:ie.A,QBtn:se.A,QTooltip:ne.A,QInput:oe.A,QIcon:h.A,QTr:re.A,QTh:de.A,QTd:ce.A,QCheckbox:ue.A,QSelect:he.A});const ge=["innerHTML"];function fe(e,t,a,s,n,o){return(0,l.uX)(),(0,l.CE)("div",{ref:"htmlContainer",innerHTML:a.data.value,onClick:t[0]||(t[0]=(...e)=>s.handleClick&&s.handleClick(...e)),style:(0,i.Tr)(s.styleObject)},null,12,ge)}const ye={props:{pdata:{type:Object,required:!0},data:{type:Object,required:!0},style:{type:[String,Object,Array],default:""}},setup(e){const t=(0,U.KR)(null),a=t=>{if(e.data.changed){const a=t.target,l={tagName:a.tagName,id:a.id,classList:[...a.classList],attributes:{},value:a.value||null};Array.from(a.attributes).forEach((e=>{l.attributes[e.name]=e.value})),(0,o.tN)([e.pdata["name"],e.data["name"],"changed",{type:t.type,target:l}])}},i=["click","mouseover","mouseout","change","focus","blur","submit","input","keydown","keyup"],s=()=>{t.value&&i.forEach((e=>{t.value.addEventListener(e,a)}))},n=()=>{t.value&&i.forEach((e=>{t.value.removeEventListener(e,a)}))};(0,l.sV)((()=>{s()})),(0,l.xo)((()=>{n()}));const r=(0,l.EW)((()=>e.style));return{htmlContainer:t,handleClick:a,styleObject:r}}},be=(0,d.A)(ye,[["render",fe]]),ve=be,ke=(0,l.$V)((()=>a.e(72).then(a.bind(a,72)))),we=(0,l.$V)((()=>Promise.all([a.e(121),a.e(260)]).then(a.bind(a,4260))));let Ae={right:"4px",borderRadius:"7px",backgroundColor:"#027be3",width:"4px",opacity:.75},Ce={right:"2px",borderRadius:"9px",backgroundColor:"#027be3",width:"8px",opacity:.2},xe=0;function _e(e){let t=new FormData;t.append("image",e);let a=new XMLHttpRequest;a.open("POST",o.FP,!0),a.onload=function(){200===this.status?console.log(this.response):console.error(a)},a.send(t)}const qe=(0,l.pM)({name:"element",components:{utable:me,asyncSgraph:ke,asyncLinechart:we,htmlcomponent:ve},setup(){const e=(0,U.KR)(xe);xe++;const t=()=>{e.value=xe,xe++};return{forceUpdate:t,key:e}},methods:{log(e){console.log(e)},showSelected(){if("tree"==this.type||"list"==this.type){let e=this.value;e&&requestAnimationFrame((()=>{requestAnimationFrame((()=>{if(this.$refs.tree){let t=this.$refs.tree.$el,a=this.$refs.scroller.$el;for(let l of t.getElementsByTagName("div"))if(l.innerHTML==e){const{bottom:e,height:t,top:i}=l.getBoundingClientRect();if(i){const l=a.getBoundingClientRect();(i<=l.top?l.top-i<=t:e-l.bottom<=t)||this.$refs.scroller.setScrollPosition("vertical",i-l.top);break}}}}))}))}},onAdded(e){0!==e.length&&(0!==this.fileArr.length?(this.$refs.uploaderRef.removeFile(this.fileArr[0]),this.fileArr.splice(0,1,e[0])):this.fileArr.push(e[0]))},sendMessage(e,t){(0,o.tN)([this.pdata["name"],this.data["name"],e,t])},pressedEnter(){"update"in this.data&&this.sendMessage("update",this.value)},updateDom(e){let t=e.files.length;t&&this.sendMessage("changed",e.xhr.responseText)},sendValue(){
2
2
  //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! add emit close
3
- this.sendMessage("changed",this.value)},switchValue(){this.value=!this.value},setValue(e){this.value=e},focus_position(){if(this.data.focus&&this.$refs.inputRef){let e=this.$refs.inputRef;try{e.focus()}catch(e){}"text"!=this.data.type&&(e=e.$el.querySelector("input")),"x"in this.data&&-1!=this.data.x&&e.querySelector&&"number"!=this.data.type&&e.setSelectionRange(this.data.x,this.data.x)}},complete(e,t,a){(0,o.Jk)(this,e,(e=>t((()=>{this.options=e}))))},lens(){o.Zp.lens(this.data)},toggleCamera(){this.isCameraOpen?(this.isCameraOpen=!1,this.isPhotoTaken=!1,this.isShotPhoto=!1,this.stopCameraStream()):(this.isCameraOpen=!0,this.createCameraElement())},createCameraElement(){this.isLoading=!0;const e=window.constraints={audio:!1,video:!0};navigator.mediaDevices.getUserMedia(e).then((e=>{this.isLoading=!1,this.$refs.camera.srcObject=e})).catch((e=>{this.isLoading=!1,alert("May the browser didn't support or there are some errors.")}))},stopCameraStream(){let e=this.$refs.camera.srcObject.getTracks();e.forEach((e=>{e.stop()}))},takePhoto(){if(!this.isPhotoTaken){this.isShotPhoto=!0;const e=50;setTimeout((()=>{this.isShotPhoto=!1}),e)}this.isPhotoTaken=!this.isPhotoTaken;const e=this.$refs.canvas.getContext("2d");e.drawImage(this.$refs.camera,0,0,450,337.5)},downloadImage(){document.getElementById("downloadPhoto"),document.getElementById("photoTaken").toBlob(_e,"image/jpeg")},rect(){let e="clientHeight"in this.$el?this.$el:this.$el.nextElementSibling;return e.getBoundingClientRect()},geom(){let e=this.type,t=this.$el;t="tree"==e||"list"==e?t.querySelector(".scroll"):"clientHeight"in t?t:t.nextElementSibling,t||(t=this.$el.previousElementSibling,t="clientHeight"in t?t:t.nextElementSibling);const a="text"==e||"graph"==e||"chart"==e?t:t.querySelector("table"==e?".scroll":".q-tree"),l=t.getBoundingClientRect();return{el:t,inner:a,left:l.left,right:l.right,top:l.top,bottom:l.bottom,scrollHeight:a.scrollHeight,scrollWidth:a.scrollWidth}}},updated(){o.Yt[this.fullname]=this,this.showSelected(),this.focus_position(),o.Rl&&console.log("updated",this.fullname)},mounted(){let e=this.data;o.Yt[this.fullname]=this,e.id&&"table"==e.type&&!e.filter&&(this.update=e.update),this.focus_position(),this.showSelected(),o.Rl&&console.log("mounted",this.fullname)},data(){return{Dark:Z.A,value:this.data.value,styleSize:o.sn?(0,o.S4)(this):null,has_recalc:!0,host_path:o.FP,options:[],expandedKeys:[],thumbStyle:Ae,barStyle:Ce,updated:"#027be3sds",isCameraOpen:!1,isPhotoTaken:!1,isShotPhoto:!1,isLoading:!1,link:"#",fileArr:[]}},computed:{button_style(){return this.data.width?`width:${this.data.width}px`:""},elemSize(){let e="";return this.data.width&&(e=`width:${this.data.width}px`),this.data.height&&(""!=e&&(e+="; "),e+=`height:${this.data.height}px`),""==e?this.styleSize:e},parent_name(){return this.pdata?this.pdata.name:null},name(){return this.data.name},fullname(){return`${this.data.name}@${this.pdata.name}`},showname(){let e=this.data.name;return e&&"_"!=e[0]},name2show(){let e=this.data.name;return e&&"_"!=e[0]?e:""},nameLabel(){return this.data.label?this.data.label:"_"!=this.data.name[0]?this.data.name:""},text(){return this.data.text},expanding(){return o.MP.includes(this.type)},expanding_width(){return!this.data.width&&(this.expanding&&"list"!=this.type)},expanding_height(){return!this.data.height&&this.expanding},selection(){return this.data.selection},icon(){return this.data.icon},type(){return this.data.type},treeNodes(){var e=[];if("list"==this.type)return this.data.options.map((e=>({label:e,children:[]})));var t={};for(const[i,s]of Object.entries(this.data.options)){var a=t[i];if(a||(a={label:i,children:[]},t[i]=a),s){var l=t[s];l||(l={label:s,children:[]},t[s]=l),l.children.push(a)}else e.push(a)}return e}},props:{data:{type:Object,required:!0},pdata:{type:Object,required:!0}},watch:{value(e,t){"tree"!=this.type&&"list"!=this.type||(this.data.options[e]==t&&this.expandedKeys.indexOf(t)<0&&this.expandedKeys.push(t),this.showSelected()),e!==this.updated&&(o.Rl&&console.log("value changed",e,t),this.sendValue(),this.updated=e)},selection(e){o.Rl&&console.log("selection changed",e,this.$refs.inputRef),Array.isArray(e)||(e=[0,0]);let t=this.$refs.inputRef.$el;t.focus_position();let a=t.getElementsByTagName("textarea");0==a.length&&(a=t.getElementsByTagName("input")),a[0].setSelectionRange(e[0],e[1])},data(e,t){o.Rl&&console.log("data update",this.fullname,t.name),this.styleSize||(this.styleSize=null),o.Zp.screen.reload&&"tree"==this.type&&this.$refs.tree&&this.$refs.tree.expandAll();let a=this.data;this.value=a.value,this.updated=this.value,o.Yt[this.fullname]=this}}});var Se=a(2665),Xe=a(6908),We=a(3954),$e=a(1444),Ee=a(6939),Qe=a(8958),Fe=a(7567),De=a(386),Re=a(1298),Le=a(2157);const Me=(0,d.A)(qe,[["render",O],["__scopeId","data-v-6398f67f"]]),Ke=Me;g()(qe,"components",{QImg:Se.A,QIcon:h.A,QSelect:he.A,QCheckbox:ue.A,QToggle:Xe.A,QBadge:We.A,QSlider:$e.A,QBtn:se.A,QBtnToggle:Ee.A,QInput:oe.A,QScrollArea:Qe.A,QTree:Fe.A,QSeparator:De.A,QUploader:Re.A,QTooltip:ne.A,QSpinnerIos:Le.A});const Ie=(0,l.pM)({name:"block",components:{element:Ke},data(){return{Dark:Z.A,styleSize:null,thumbStyle:{right:"4px",borderRadius:"7px",backgroundColor:"#027be3",width:"4px",opacity:.75},barStyle:{right:"2px",borderRadius:"9px",backgroundColor:"#027be3",width:"8px",opacity:.2}}},methods:{log(){console.log(Object.keys(o.NP).length,this.name,this.$el.getBoundingClientRect())},close(){(0,o.tN)([this.data.name,null,"close",!0])},geom(){let e="clientHeight"in this.$el?this.$el:this.$el.nextElementSibling,t=e.querySelector(".q-scrollarea");t||(t=e);const a=t.getBoundingClientRect();return{el:e,inner:t,left:a.left,right:a.right,top:a.top,bottom:a.bottom,scrollHeight:window.innerHeight,scrollWidth:window.innerWidth}},free_right_delta4(e,t){for(let a of this.data.value)if(Array.isArray(a)){for(let l of a)if(l==e.data){let l=a[a.length-1];return l==e.data?t:o.fn.includes(l.type)?0:o.Yt[`${l.name}@${this.name}`].$el.getBoundingClientRect().right}}else if(a===e)return t;return 0}},mounted(){o.NP[this.data.name]=this,(this.expanding||this.data.width)&&(o.Yt[this.fullname]=this)},computed:{name(){return this.data.name},fullname(){return`${this.data.scroll?"_scroll":"_space"}@${this.name}`},icon(){return this.data.icon},type(){return this.data.type},expanding(){return this.data.scroll&&!this.data.width},expanding_width(){return this.expanding&&!this.data.width},name_elements(){if(this.expanding)return[this.fullname];let e=[];for(let t of this.data.value)if(Array.isArray(t))for(let a of t)e.push(`${a.name}@${this.name}`);else e.push(`${t.name}@${this.name}`);return e},hlevelements(){if(this.expanding)return[[o.Yt[this.fullname]]];let e=[];for(let t of this.data.value)if(Array.isArray(t)){let a=t.map((e=>o.Yt[`${e.name}@${this.name}`])).filter((e=>e.expanding));a.length&&e.push(a)}else{let a=o.Yt[`${t.name}@${this.name}`];a.expanding&&e.push([a])}return e},only_fixed_elems(){if(this.expanding)return!1;for(let e of this.data.value)if(Array.isArray(e)){for(let t of e)if(o.MP.includes(t.type))return!1}else if(o.MP.includes(e.type))return!1;return!0},expanding_height(){return!this.data.height&&(this.expanding||this.only_fixed_elems)},tops(){let e=this.data.value;return e.length?Array.isArray(e[0])?e[0]:[e[0]]:[]}},props:{data:{type:Object,required:!0}},watch:{data(e){o.Rl&&console.log("data update",this.name),o.NP[this.name]=this,this.expanding&&(o.Yt[this.fullname]=this)}}});var Ve=a(3316),Te=a(3676);const ze=(0,d.A)(Ie,[["render",X],["__scopeId","data-v-575181f9"]]),Pe=ze;function Oe(){let e=o.sn&&o.Yt.size==o.JB.size;if(e)for(let[t,a]of Object.entries(o.Yt))if(!o.JB[t]){e=!1;break}e||((0,o.PP)(document.documentElement.scrollWidth>window.innerWidth),(0,l.dY)((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{o.Zp.visible(!0)}))}))})))}g()(Ie,"components",{QCard:Ve.A,QIcon:h.A,QSpace:Te.A,QBtn:se.A,QTooltip:ne.A,QScrollArea:Qe.A});const Ue=(0,l.pM)({name:"zone",components:{block:Pe},props:{data:Object},updated(e){(0,l.dY)((()=>{requestAnimationFrame((()=>{requestAnimationFrame(Oe)}))}))}}),je=(0,d.A)(Ue,[["render",w]]),Be=je;function He(e,t,a,s,n,o){const r=(0,l.g2)("block"),d=(0,l.g2)("q-card"),c=(0,l.g2)("q-dialog");return(0,l.uX)(),(0,l.Wv)(c,{ref:"dialog",onHide:o.onDialogHide,onKeyup:(0,W.jR)(o.pressedEnter,["enter"])},{default:(0,l.k6)((()=>[(0,l.bF)(d,{class:"q-dialog-plugin q-pa-md items-start q-gutter-md",bordered:"",style:(0,i.Tr)(a.data.internal?"width: 800px; max-width: 80vw;":"")},{default:(0,l.k6)((()=>[a.data?((0,l.uX)(),(0,l.Wv)(r,{key:0,data:a.data},null,8,["data"])):(0,l.Q3)("",!0)])),_:1},8,["style"])])),_:1},8,["onHide","onKeyup"])}const Ne={props:{data:Object,commands:Array},components:{block:Pe},emits:["ok","hide"],data(){return{closed:!1}},methods:{show(){this.$refs.dialog.show(),o.Zp.dialog=this},message4(e){return[this.data["name"],null,"changed",e]},sendMessage(e){this.data.internal||(0,o.tN)(this.message4(e)),this.closed=!0,this.hide()},hide(){this.$refs.dialog.hide(),o.Zp.dialog=null},onDialogHide(){this.$emit("hide"),this.closed||this.data.internal||(0,o.tN)(this.message4(null))},pressedEnter(){this.sendMessage(this.commands[0])},onOKClick(){this.$emit("ok"),this.hide()},onCancelClick(){this.hide()}}};var Ye=a(558);const Je=(0,d.A)(Ne,[["render",He]]),Ze=Je;g()(Ne,"components",{QDialog:Ye.A,QCard:Ve.A,QItemLabel:p.A,QSpace:Te.A,QBtn:se.A});var Ge=a(8993);let et="theme";try{Z.A.set(Ge.A.getItem(et))}catch(e){}let tt=null,at=["complete","append","get"],lt=null;const it=(0,l.pM)({name:"MainLayout",data(){return{leftDrawerOpen:!1,Dark:Z.A,menu:[],tab:"",tooldata:{name:"toolbar"},localServer:!0,statusConnect:!1,screen:{blocks:[],toolbar:[]},visibility:!0,designCycle:0,shiftKey:!1,isListening:!1,voice_button:!0,voice_str_length:0,dialog:null}},components:{menubar:y,zone:Be,element:Ke},created(){(0,o.KG)(this)},unmounted(){window.removeEventListener("resize",this.onResize),lt&&lt.stop()},computed:{left_toolbar(){return this.screen.toolbar.filter((e=>!e.right))},right_toolbar(){return this.screen.toolbar.filter((e=>e.right))}},methods:{toggleListening(){if(this.isListening=!this.isListening,this.isListening){if(!lt){const e=window.webkitSpeechRecognition;e?(lt=new e,lt.lang=this.screen.lang||"en-US",lt.continuous=!0,lt.interimResults=!0,lt.onresult=e=>{let t="";for(const a of e.results)a.isFinal&&(t+=a[0].transcript);let a=t.substring(this.voice_str_length).trim();this.voice_str_length=t.length,a&&(0,o.tN)(["voice",null,"changed",a])},lt.onerror=e=>{this.voice_str_length=0},lt.onend=()=>{this.isListening&&lt.start()}):(this.error("Speech Recognition not supported by this browser."),this.voice_button=!1)}lt.start()}else lt.stop();(0,o.tN)(["voice",null,"listen",this.isListening])},switchTheme(){Z.A.set(!Z.A.isActive),Ge.A.set(et,Z.A.isActive)},toggleLeftDrawer(){this.leftDrawerOpen=!this.leftDrawerOpen},tabclick(e){(0,o.tN)(["root",null,"changed",e])},visible(e){this.visibility!=e&&(this.$refs.page.$el.style.visibility=e?"":"hidden",this.visibility=e)},handleKeyDown(e){"Shift"==e.key&&(this.shiftKey=!0)},handleKeyUp(e){"Shift"==e.key&&(this.shiftKey=!1)},onResize(e){o.Rl&&console.log(`window has been resized w = ${window.innerWidth}, h=${window.innerHeight}`),this.designCycle=0,(0,o.DK)()},lens(e){let t={title:"Photo lens",message:e.text,cancel:!0,persistent:!0,component:Ze},{height:a,...l}=e;l.width=750;let i={name:`Picture lens of ${e.name}`,value:[[],l],internal:!0};t.componentProps={data:i,commands:["Close"]},this.dialog=this.$q.dialog(t)},notify(e,t){let a=t,l={message:e,type:t,position:"top",icon:a};"progress"==t?null==tt?(l={group:!1,timeout:0,spinner:!0,type:"info",message:e||"Progress..",position:"top",color:"secondary"},tt=this.$q.notify(l)):null==e?(tt(),tt=null):(l={caption:e},tt(l)):("error"==t&&l.type,this.$q.notify(l))},error(e){this.notify(e,"error")},info(e){this.notify(e,"info")},processMessage(e){if("screen"==e.type){if(this.screen.name!=e.name)(0,o.RX)(!1),(0,o.q1)(),o.Rl||this.visible(!1);else if(e.reload){this.designCycle=0,this.visible(!1);for(let e of Object.values(o.Yt))e.has_recalc=!0,e.styleSize=null;(0,o.Q$)()}this.screen=e,this.menu=e.menu.map((e=>({name:e[0],icon:e[1],order:e[2]}))),this.tab=this.screen.name}else if("dialog"==e.type){let t={title:e.name,message:e.text,cancel:!0,persistent:!0};t.component=Ze,t.componentProps={data:e,commands:e.commands},this.dialog=this.$q.dialog(t)}else if(at.includes(e.type))(0,o.rn)(e);else{if("action"==e.type)return this.dialog&&"close"==e.value?(this.dialog.data.internal=!0,this.dialog.hide(),void(this.dialog=null)):void(0,o.QJ)(e);let t=e.updates&&e.updates.length;t&&(0,o.RF)(e.updates);let a=!1;["error","progress","warning","info"].includes(e.type)&&(this.notify(e.value,e.type),a=!0),a||t||(this.error("Invalid data came from the server! Look the console."),console.log(`Invalid data came from the server! ${e}`))}this.closeProgress(e)},closeProgress(e){!tt||e&&"progress"==e.type||this.notify(null,"progress")}},mounted(){window.addEventListener("resize",this.onResize);const e=new ResizeObserver((e=>{let t=document.documentElement.scrollWidth>window.innerWidth||document.documentElement.scrollHeight>window.innerHeight;t&&(0,o.Q$)(!1)}));let t=this.$refs.page.$el;e.observe(t),window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("keyup",this.handleKeyUp)},beforeUnmount(){window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("keyup",this.handleKeyUp)}});var st=a(2008),nt=a(8416),ot=a(6914),rt=a(2980),dt=a(327),ct=a(5205),ut=a(7716);const ht=(0,d.A)(it,[["render",s]]),pt=ht;g()(it,"components",{QLayout:st.A,QHeader:nt.A,QToolbar:ot.A,QBtn:se.A,QItemLabel:p.A,QTabs:rt.A,QTab:dt.A,QSpace:Te.A,QTooltip:ne.A,QPageContainer:ct.A,QPage:ut.A})}}]);
3
+ this.sendMessage("changed",this.value)},switchValue(){this.value=!this.value},setValue(e){this.value=e},focus_position(){if(this.data.focus&&this.$refs.inputRef){let e=this.$refs.inputRef;try{e.focus()}catch(e){}"text"!=this.data.type&&(e=e.$el.querySelector("input")),"x"in this.data&&-1!=this.data.x&&e.querySelector&&"number"!=this.data.type&&e.setSelectionRange(this.data.x,this.data.x)}},complete(e,t,a){(0,o.Jk)(this,e,(e=>t((()=>{this.options=e}))))},lens(){o.Zp.lens(this.data)},toggleCamera(){this.isCameraOpen?(this.isCameraOpen=!1,this.isPhotoTaken=!1,this.isShotPhoto=!1,this.stopCameraStream()):(this.isCameraOpen=!0,this.createCameraElement())},createCameraElement(){this.isLoading=!0;const e=window.constraints={audio:!1,video:!0};navigator.mediaDevices.getUserMedia(e).then((e=>{this.isLoading=!1,this.$refs.camera.srcObject=e})).catch((e=>{this.isLoading=!1,alert("May the browser didn't support or there are some errors.")}))},stopCameraStream(){let e=this.$refs.camera.srcObject.getTracks();e.forEach((e=>{e.stop()}))},takePhoto(){if(!this.isPhotoTaken){this.isShotPhoto=!0;const e=50;setTimeout((()=>{this.isShotPhoto=!1}),e)}this.isPhotoTaken=!this.isPhotoTaken;const e=this.$refs.canvas.getContext("2d");e.drawImage(this.$refs.camera,0,0,450,337.5)},downloadImage(){document.getElementById("downloadPhoto"),document.getElementById("photoTaken").toBlob(_e,"image/jpeg")},rect(){let e="clientHeight"in this.$el?this.$el:this.$el.nextElementSibling;return e.getBoundingClientRect()},geom(){let e=this.type,t=this.$el;t="tree"==e||"list"==e?t.querySelector(".scroll"):"clientHeight"in t?t:t.nextElementSibling,t||(t=this.$el.previousElementSibling,t="clientHeight"in t?t:t.nextElementSibling);const a="text"==e||"graph"==e||"chart"==e?t:t.querySelector("table"==e?".scroll":".q-tree"),l=t.getBoundingClientRect();return{el:t,inner:a,left:l.left,right:l.right,top:l.top,bottom:l.bottom,scrollHeight:a.scrollHeight,scrollWidth:a.scrollWidth}}},updated(){o.Yt[this.fullname]=this,this.showSelected(),this.focus_position(),o.Rl&&console.log("updated",this.fullname)},mounted(){let e=this.data;o.Yt[this.fullname]=this,e.id&&"table"==e.type&&!e.filter&&(this.update=e.update),this.focus_position(),this.showSelected(),o.Rl&&console.log("mounted",this.fullname)},data(){return{Dark:Z.A,value:this.data.value,styleSize:o.sn?(0,o.S4)(this):null,has_recalc:!0,host_path:o.FP,options:[],expandedKeys:[],thumbStyle:Ae,barStyle:Ce,updated:"#027be3sds",isCameraOpen:!1,isPhotoTaken:!1,isShotPhoto:!1,isLoading:!1,link:"#",fileArr:[]}},computed:{button_style(){return this.data.width?`width:${this.data.width}px`:""},elemSize(){let e="";return this.data.width&&(e=`width:${this.data.width}px`),this.data.height&&(""!=e&&(e+="; "),e+=`height:${this.data.height}px`),""==e?this.styleSize:e},parent_name(){return this.pdata?this.pdata.name:null},name(){return this.data.name},fullname(){return`${this.data.name}@${this.pdata.name}`},showname(){let e=this.data.name;return e&&"_"!=e[0]},name2show(){let e=this.data.name;return e&&"_"!=e[0]?e:""},nameLabel(){return this.data.label?this.data.label:"_"!=this.data.name[0]?this.data.name:""},text(){return this.data.text},expanding(){return o.MP.includes(this.type)},expanding_width(){return!this.data.width&&(this.expanding&&"list"!=this.type)},expanding_height(){return!this.data.height&&this.expanding},selection(){return this.data.selection},icon(){return this.data.icon},type(){return this.data.type},treeNodes(){var e=[];if("list"==this.type)return this.data.options.map((e=>({label:e,children:[]})));var t={};for(const[i,s]of Object.entries(this.data.options)){var a=t[i];if(a||(a={label:i,children:[]},t[i]=a),s){var l=t[s];l||(l={label:s,children:[]},t[s]=l),l.children.push(a)}else e.push(a)}return e}},props:{data:{type:Object,required:!0},pdata:{type:Object,required:!0}},watch:{value(e,t){"tree"!=this.type&&"list"!=this.type||(this.data.options[e]==t&&this.expandedKeys.indexOf(t)<0&&this.expandedKeys.push(t),this.showSelected()),e!==this.updated&&(o.Rl&&console.log("value changed",e,t),this.sendValue(),this.updated=e)},selection(e){o.Rl&&console.log("selection changed",e,this.$refs.inputRef),Array.isArray(e)||(e=[0,0]);let t=this.$refs.inputRef.$el;t.focus_position();let a=t.getElementsByTagName("textarea");0==a.length&&(a=t.getElementsByTagName("input")),a[0].setSelectionRange(e[0],e[1])},data(e,t){o.Rl&&console.log("data update",this.fullname,t.name),this.styleSize||(this.styleSize=null),o.Zp.screen.reload&&"tree"==this.type&&this.$refs.tree&&this.$refs.tree.expandAll();let a=this.data;this.value=a.value,this.updated=this.value,o.Yt[this.fullname]=this}}});var Se=a(2665),Xe=a(6908),We=a(3954),$e=a(1444),Ee=a(6939),Qe=a(8958),Fe=a(7567),De=a(386),Re=a(1298),Le=a(2157);const Me=(0,d.A)(qe,[["render",O],["__scopeId","data-v-6398f67f"]]),Ke=Me;g()(qe,"components",{QImg:Se.A,QIcon:h.A,QSelect:he.A,QCheckbox:ue.A,QToggle:Xe.A,QBadge:We.A,QSlider:$e.A,QBtn:se.A,QBtnToggle:Ee.A,QInput:oe.A,QScrollArea:Qe.A,QTree:Fe.A,QSeparator:De.A,QUploader:Re.A,QTooltip:ne.A,QSpinnerIos:Le.A});const Ie=(0,l.pM)({name:"block",components:{element:Ke},data(){return{Dark:Z.A,styleSize:null,thumbStyle:{right:"4px",borderRadius:"7px",backgroundColor:"#027be3",width:"4px",opacity:.75},barStyle:{right:"2px",borderRadius:"9px",backgroundColor:"#027be3",width:"8px",opacity:.2}}},methods:{log(){console.log(Object.keys(o.NP).length,this.name,this.$el.getBoundingClientRect())},close(){(0,o.tN)([this.data.name,null,"close",!0])},geom(){let e="clientHeight"in this.$el?this.$el:this.$el.nextElementSibling,t=e.querySelector(".q-scrollarea");t||(t=e);const a=t.getBoundingClientRect();return{el:e,inner:t,left:a.left,right:a.right,top:a.top,bottom:a.bottom,scrollHeight:window.innerHeight,scrollWidth:window.innerWidth}},free_right_delta4(e,t){for(let a of this.data.value)if(Array.isArray(a)){for(let l of a)if(l==e.data){let l=a[a.length-1];return l==e.data?t:o.fn.includes(l.type)?0:o.Yt[`${l.name}@${this.name}`].$el.getBoundingClientRect().right}}else if(a===e)return t;return 0}},mounted(){o.NP[this.data.name]=this,(this.expanding||this.data.width)&&(o.Yt[this.fullname]=this)},computed:{name(){return this.data.name},fullname(){return`${this.data.scroll?"_scroll":"_space"}@${this.name}`},icon(){return this.data.icon},type(){return this.data.type},expanding(){return this.data.scroll&&!this.data.width},expanding_width(){return this.expanding&&!this.data.width},name_elements(){if(this.expanding)return[this.fullname];let e=[];for(let t of this.data.value)if(Array.isArray(t))for(let a of t)e.push(`${a.name}@${this.name}`);else e.push(`${t.name}@${this.name}`);return e},hlevelements(){if(this.expanding)return[[o.Yt[this.fullname]]];let e=[];for(let t of this.data.value)if(Array.isArray(t)){let a=t.map((e=>o.Yt[`${e.name}@${this.name}`])).filter((e=>e.expanding));a.length&&e.push(a)}else{let a=o.Yt[`${t.name}@${this.name}`];a.expanding&&e.push([a])}return e},only_fixed_elems(){if(this.expanding)return!1;for(let e of this.data.value)if(Array.isArray(e)){for(let t of e)if(o.MP.includes(t.type))return!1}else if(o.MP.includes(e.type))return!1;return!0},expanding_height(){return!this.data.height&&(this.expanding||this.only_fixed_elems)},tops(){let e=this.data.value;return e.length?Array.isArray(e[0])?e[0]:[e[0]]:[]}},props:{data:{type:Object,required:!0}},watch:{data(e){o.Rl&&console.log("data update",this.name),o.NP[this.name]=this,this.expanding&&(o.Yt[this.fullname]=this)}}});var Ve=a(3316),Te=a(3676);const ze=(0,d.A)(Ie,[["render",X],["__scopeId","data-v-575181f9"]]),Pe=ze;function Oe(){let e=o.sn&&o.Yt.size==o.JB.size;if(e)for(let[t,a]of Object.entries(o.Yt))if(!o.JB[t]){e=!1;break}e||((0,o.PP)(document.documentElement.scrollWidth>window.innerWidth),(0,l.dY)((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{o.Zp.visible(!0)}))}))})))}g()(Ie,"components",{QCard:Ve.A,QIcon:h.A,QSpace:Te.A,QBtn:se.A,QTooltip:ne.A,QScrollArea:Qe.A});const Ue=(0,l.pM)({name:"zone",components:{block:Pe},props:{data:Object},updated(e){(0,l.dY)((()=>{requestAnimationFrame((()=>{requestAnimationFrame(Oe)}))}))}}),je=(0,d.A)(Ue,[["render",w]]),Be=je;function He(e,t,a,s,n,o){const r=(0,l.g2)("block"),d=(0,l.g2)("q-card"),c=(0,l.g2)("q-dialog");return(0,l.uX)(),(0,l.Wv)(c,{ref:"dialog",onHide:o.onDialogHide,onKeyup:(0,W.jR)(o.pressedEnter,["enter"])},{default:(0,l.k6)((()=>[(0,l.bF)(d,{class:"q-dialog-plugin q-pa-md items-start q-gutter-md",bordered:"",style:(0,i.Tr)(a.data.internal?"width: 800px; max-width: 80vw;":"")},{default:(0,l.k6)((()=>[a.data?((0,l.uX)(),(0,l.Wv)(r,{key:0,data:a.data},null,8,["data"])):(0,l.Q3)("",!0)])),_:1},8,["style"])])),_:1},8,["onHide","onKeyup"])}const Ne={props:{data:Object,commands:Array},components:{block:Pe},emits:["ok","hide"],data(){return{closed:!1}},methods:{show(){this.$refs.dialog.show(),o.Zp.dialog=this},message4(e){return[this.data["name"],null,"changed",e]},sendMessage(e){this.data.internal||(0,o.tN)(this.message4(e)),this.closed=!0,this.hide()},hide(){this.$refs.dialog.hide(),o.Zp.dialog=null},onDialogHide(){this.$emit("hide"),this.closed||this.data.internal||(0,o.tN)(this.message4(null))},pressedEnter(){this.sendMessage(this.commands[0])},onOKClick(){this.$emit("ok"),this.hide()},onCancelClick(){this.hide()}}};var Ye=a(558);const Je=(0,d.A)(Ne,[["render",He]]),Ze=Je;g()(Ne,"components",{QDialog:Ye.A,QCard:Ve.A,QItemLabel:p.A,QSpace:Te.A,QBtn:se.A});var Ge=a(8993);let et="theme";try{Z.A.set(Ge.A.getItem(et))}catch(e){}let tt=null,at=["complete","append","get"],lt=null;const it=(0,l.pM)({name:"MainLayout",data(){return{leftDrawerOpen:!1,Dark:Z.A,menu:[],tab:"",tooldata:{name:"toolbar"},localServer:!0,statusConnect:!1,screen:{blocks:[],toolbar:[]},visibility:!0,designCycle:0,shiftKey:!1,isListening:!1,voice_button:!0,voice_str_length:0,dialog:null}},components:{menubar:y,zone:Be,element:Ke},created(){(0,o.KG)(this)},unmounted(){window.removeEventListener("resize",this.onResize),lt&&lt.stop()},computed:{left_toolbar(){return this.screen.toolbar.filter((e=>!e.right))},right_toolbar(){return this.screen.toolbar.filter((e=>e.right))}},methods:{toggleListening(){if(this.isListening=!this.isListening,this.isListening){if(!lt){const e=window.webkitSpeechRecognition;e?(lt=new e,lt.lang=this.screen.lang||"en-US",lt.continuous=!0,lt.interimResults=!0,lt.onresult=e=>{let t="";for(const a of e.results)a.isFinal&&(t+=a[0].transcript);let a=t.substring(this.voice_str_length).trim();this.voice_str_length=t.length,a&&(0,o.tN)(["voice",null,"changed",a])},lt.onerror=e=>{this.voice_str_length=0},lt.onend=()=>{this.isListening&&lt.start()}):(this.error("Speech Recognition not supported by this browser."),this.voice_button=!1)}lt.start()}else lt.stop();(0,o.tN)(["voice",null,"listen",this.isListening])},switchTheme(){Z.A.set(!Z.A.isActive),Ge.A.set(et,Z.A.isActive)},toggleLeftDrawer(){this.leftDrawerOpen=!this.leftDrawerOpen},tabclick(e){(0,o.tN)(["root",null,"changed",e])},visible(e){console.log(`visibility changed to ${e}`),this.visibility!=e&&(this.$refs.page.$el.style.visibility=e?"":"hidden",this.visibility=e)},handleKeyDown(e){"Shift"==e.key&&(this.shiftKey=!0)},handleKeyUp(e){"Shift"==e.key&&(this.shiftKey=!1)},onResize(e){o.Rl&&console.log(`window has been resized w = ${window.innerWidth}, h=${window.innerHeight}`),this.designCycle=0,(0,o.DK)()},lens(e){let t={title:"Photo lens",message:e.text,cancel:!0,persistent:!0,component:Ze},{height:a,...l}=e;l.width=750;let i={name:`Picture lens of ${e.name}`,value:[[],l],internal:!0};t.componentProps={data:i,commands:["Close"]},this.dialog=this.$q.dialog(t)},notify(e,t){let a=t,l={message:e,type:t,position:"top",icon:a};"progress"==t?null==tt?(l={group:!1,timeout:0,spinner:!0,type:"info",message:e||"Progress..",position:"top",color:"secondary"},tt=this.$q.notify(l)):null==e?(tt(),tt=null):(l={caption:e},tt(l)):("error"==t&&l.type,this.$q.notify(l))},error(e){this.notify(e,"error")},info(e){this.notify(e,"info")},processMessage(e){if("screen"==e.type){if(this.screen.name!=e.name)(0,o.RX)(!1),(0,o.q1)(),this.visible(!1),this.voice_button=e.voice;else if(e.reload){this.designCycle=0,this.visible(!1);for(let e of Object.values(o.Yt))e.has_recalc=!0,e.styleSize=null;(0,o.Q$)()}this.screen=e,this.menu=e.menu.map((e=>({name:e[0],icon:e[1],order:e[2]}))),this.tab=this.screen.name}else if("dialog"==e.type){let t={title:e.name,message:e.text,cancel:!0,persistent:!0};t.component=Ze,t.componentProps={data:e,commands:e.commands},this.dialog=this.$q.dialog(t)}else if(at.includes(e.type))(0,o.rn)(e);else{if("action"==e.type)return this.dialog&&"close"==e.value?(this.dialog.data.internal=!0,this.dialog.hide(),void(this.dialog=null)):void(0,o.QJ)(e);let t=e.updates&&e.updates.length;t&&(0,o.RF)(e.updates);let a=!1;["error","progress","warning","info"].includes(e.type)&&(this.notify(e.value,e.type),a=!0),a||t||(this.error("Invalid data came from the server! Look the console."),console.log(`Invalid data came from the server! ${e}`))}this.closeProgress(e)},closeProgress(e){!tt||e&&"progress"==e.type||this.notify(null,"progress")}},mounted(){window.addEventListener("resize",this.onResize);const e=new ResizeObserver((e=>{let t=document.documentElement.scrollWidth>window.innerWidth||document.documentElement.scrollHeight>window.innerHeight;t&&(0,o.Q$)(!1)}));let t=this.$refs.page.$el;e.observe(t),window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("keyup",this.handleKeyUp)},beforeUnmount(){window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("keyup",this.handleKeyUp)}});var st=a(2008),nt=a(8416),ot=a(6914),rt=a(2980),dt=a(327),ct=a(5205),ut=a(7716);const ht=(0,d.A)(it,[["render",s]]),pt=ht;g()(it,"components",{QLayout:st.A,QHeader:nt.A,QToolbar:ot.A,QBtn:se.A,QItemLabel:p.A,QTabs:rt.A,QTab:dt.A,QSpace:Te.A,QTooltip:ne.A,QPageContainer:ct.A,QPage:ut.A})}}]);
Binary file
@@ -1 +1 @@
1
- (()=>{"use strict";var e={8260:(e,t,r)=>{r(7781),r(4739),r(8499);var o=r(9104),n=r(6501),a=r(8734),i=r(1758);const l={id:"q-app"};function u(e,t,r,o,n,a){const u=(0,i.g2)("router-view");return(0,i.uX)(),(0,i.CE)("div",l,[(0,i.bF)(u)])}const s=(0,i.pM)({name:"App"});var c=r(2807);const d=(0,c.A)(s,[["render",u]]),f=d;var p=r(1573),h=r(455);const v=[{path:"/",component:()=>Promise.all([r.e(121),r.e(391)]).then(r.bind(r,3772)),children:[{path:"",component:()=>Promise.all([r.e(121),r.e(935)]).then(r.bind(r,2935))}]},{path:"/:catchAll(.*)*",component:()=>Promise.all([r.e(121),r.e(609)]).then(r.bind(r,1609))}],b=v,m=(0,p.wE)((function(){const e=h.LA,t=(0,h.aE)({scrollBehavior:()=>({left:0,top:0}),routes:b,history:e("/")});return t}));async function g(e,t){const r=e(f);r.use(n.A,t);const o=(0,a.IG)("function"===typeof m?await m({}):m);return{app:r,router:o}}var y=r(1627),w=r(8292),O=r(8993),j=r(1903);const A={config:{notify:{}},plugins:{Notify:y.A,Dialog:w.A,LocalStorage:O.A,SessionStorage:j.A}},P="/";async function E({app:e,router:t},r){let o=!1;const n=e=>{try{return t.resolve(e).href}catch(e){}return Object(e)===e?null:e},a=e=>{if(o=!0,"string"===typeof e&&/^https?:\/\//.test(e))return void(window.location.href=e);const t=n(e);null!==t&&(window.location.href=t)},i=window.location.href.replace(window.location.origin,"");for(let n=0;!1===o&&n<r.length;n++)try{await r[n]({app:e,router:t,ssrContext:null,redirect:a,urlPath:i,publicPath:P})}catch(e){return e&&e.url?void a(e.url):void console.error("[Quasar] boot error:",e)}!0!==o&&(e.use(t),e.mount("#q-app"))}g(o.Ef,A).then((e=>{const[t,o]=void 0!==Promise.allSettled?["allSettled",e=>e.map((e=>{if("rejected"!==e.status)return e.value.default;console.error("[Quasar] boot error:",e.reason)}))]:["all",e=>e.map((e=>e.default))];return Promise[t]([Promise.resolve().then(r.bind(r,6598))]).then((t=>{const r=o(t).filter((e=>"function"===typeof e));E(e,r)}))}))},6598:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});var o=r(1573);const n=(0,o.zj)((async({app:e})=>{}))}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={id:o,loaded:!1,exports:{}};return e[o].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.m=e,(()=>{var e=[];r.O=(t,o,n,a)=>{if(!o){var i=1/0;for(c=0;c<e.length;c++){for(var[o,n,a]=e[c],l=!0,u=0;u<o.length;u++)(!1&a||i>=a)&&Object.keys(r.O).every((e=>r.O[e](o[u])))?o.splice(u--,1):(l=!1,a<i&&(i=a));if(l){e.splice(c--,1);var s=n();void 0!==s&&(t=s)}}return t}a=a||0;for(var c=e.length;c>0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[o,n,a]}})(),(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return r.d(t,{a:t}),t}})(),(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"===typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"===typeof o.then)return o}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&n&&o;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>i[e]=()=>o[e]));return i["default"]=()=>o,r.d(a,i),a}})(),(()=>{r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}})(),(()=>{r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,o)=>(r.f[o](e,t),t)),[]))})(),(()=>{r.u=e=>"js/"+({324:"sigma",464:"echart"}[e]||e)+"."+{72:"f1673470",260:"1d50abd6",324:"ce21336a",391:"b5136d82",464:"8f773fb7",609:"a5c4177e",935:"a10cb1a0"}[e]+".js"})(),(()=>{r.miniCssF=e=>"css/"+e+"."+{72:"9393078c",391:"48762077"}[e]+".css"})(),(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="uniqua:";r.l=(o,n,a,i)=>{if(e[o])e[o].push(n);else{var l,u;if(void 0!==a)for(var s=document.getElementsByTagName("script"),c=0;c<s.length;c++){var d=s[c];if(d.getAttribute("src")==o||d.getAttribute("data-webpack")==t+a){l=d;break}}l||(u=!0,l=document.createElement("script"),l.charset="utf-8",l.timeout=120,r.nc&&l.setAttribute("nonce",r.nc),l.setAttribute("data-webpack",t+a),l.src=o),e[o]=[n];var f=(t,r)=>{l.onerror=l.onload=null,clearTimeout(p);var n=e[o];if(delete e[o],l.parentNode&&l.parentNode.removeChild(l),n&&n.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.bind(null,l.onload),u&&document.head.appendChild(l)}}})(),(()=>{r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e)})(),(()=>{r.p="/"})(),(()=>{if("undefined"!==typeof document){var e=(e,t,o,n,a)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",r.nc&&(i.nonce=r.nc);var l=r=>{if(i.onerror=i.onload=null,"load"===r.type)n();else{var o=r&&r.type,l=r&&r.target&&r.target.href||t,u=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+l+")");u.name="ChunkLoadError",u.code="CSS_CHUNK_LOAD_FAILED",u.type=o,u.request=l,i.parentNode&&i.parentNode.removeChild(i),a(u)}};return i.onerror=i.onload=l,i.href=t,o?o.parentNode.insertBefore(i,o.nextSibling):document.head.appendChild(i),i},t=(e,t)=>{for(var r=document.getElementsByTagName("link"),o=0;o<r.length;o++){var n=r[o],a=n.getAttribute("data-href")||n.getAttribute("href");if("stylesheet"===n.rel&&(a===e||a===t))return n}var i=document.getElementsByTagName("style");for(o=0;o<i.length;o++){n=i[o],a=n.getAttribute("data-href");if(a===e||a===t)return n}},o=o=>new Promise(((n,a)=>{var i=r.miniCssF(o),l=r.p+i;if(t(i,l))return n();e(o,l,null,n,a)})),n={524:0};r.f.miniCss=(e,t)=>{var r={72:1,391:1};n[e]?t.push(n[e]):0!==n[e]&&r[e]&&t.push(n[e]=o(e).then((()=>{n[e]=0}),(t=>{throw delete n[e],t})))}}})(),(()=>{var e={524:0};r.f.j=(t,o)=>{var n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)o.push(n[2]);else{var a=new Promise(((r,o)=>n=e[t]=[r,o]));o.push(n[2]=a);var i=r.p+r.u(t),l=new Error,u=o=>{if(r.o(e,t)&&(n=e[t],0!==n&&(e[t]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,n[1](l)}};r.l(i,u,"chunk-"+t,t)}},r.O.j=t=>0===e[t];var t=(t,o)=>{var n,a,[i,l,u]=o,s=0;if(i.some((t=>0!==e[t]))){for(n in l)r.o(l,n)&&(r.m[n]=l[n]);if(u)var c=u(r)}for(t&&t(o);s<i.length;s++)a=i[s],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(c)},o=globalThis["webpackChunkuniqua"]=globalThis["webpackChunkuniqua"]||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var o=r.O(void 0,[121],(()=>r(8260)));o=r.O(o)})();
1
+ (()=>{"use strict";var e={8260:(e,t,r)=>{r(7781),r(4739),r(8499);var o=r(9104),n=r(6501),a=r(8734),i=r(1758);const l={id:"q-app"};function u(e,t,r,o,n,a){const u=(0,i.g2)("router-view");return(0,i.uX)(),(0,i.CE)("div",l,[(0,i.bF)(u)])}const s=(0,i.pM)({name:"App"});var c=r(2807);const d=(0,c.A)(s,[["render",u]]),f=d;var p=r(1573),h=r(455);const v=[{path:"/",component:()=>Promise.all([r.e(121),r.e(513)]).then(r.bind(r,2513)),children:[{path:"",component:()=>Promise.all([r.e(121),r.e(935)]).then(r.bind(r,2935))}]},{path:"/:catchAll(.*)*",component:()=>Promise.all([r.e(121),r.e(609)]).then(r.bind(r,1609))}],b=v,m=(0,p.wE)((function(){const e=h.LA,t=(0,h.aE)({scrollBehavior:()=>({left:0,top:0}),routes:b,history:e("/")});return t}));async function g(e,t){const r=e(f);r.use(n.A,t);const o=(0,a.IG)("function"===typeof m?await m({}):m);return{app:r,router:o}}var y=r(1627),w=r(8292),O=r(8993),j=r(1903);const A={config:{notify:{}},plugins:{Notify:y.A,Dialog:w.A,LocalStorage:O.A,SessionStorage:j.A}},P="/";async function E({app:e,router:t},r){let o=!1;const n=e=>{try{return t.resolve(e).href}catch(e){}return Object(e)===e?null:e},a=e=>{if(o=!0,"string"===typeof e&&/^https?:\/\//.test(e))return void(window.location.href=e);const t=n(e);null!==t&&(window.location.href=t)},i=window.location.href.replace(window.location.origin,"");for(let n=0;!1===o&&n<r.length;n++)try{await r[n]({app:e,router:t,ssrContext:null,redirect:a,urlPath:i,publicPath:P})}catch(e){return e&&e.url?void a(e.url):void console.error("[Quasar] boot error:",e)}!0!==o&&(e.use(t),e.mount("#q-app"))}g(o.Ef,A).then((e=>{const[t,o]=void 0!==Promise.allSettled?["allSettled",e=>e.map((e=>{if("rejected"!==e.status)return e.value.default;console.error("[Quasar] boot error:",e.reason)}))]:["all",e=>e.map((e=>e.default))];return Promise[t]([Promise.resolve().then(r.bind(r,6598))]).then((t=>{const r=o(t).filter((e=>"function"===typeof e));E(e,r)}))}))},6598:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});var o=r(1573);const n=(0,o.zj)((async({app:e})=>{}))}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={id:o,loaded:!1,exports:{}};return e[o].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.m=e,(()=>{var e=[];r.O=(t,o,n,a)=>{if(!o){var i=1/0;for(c=0;c<e.length;c++){for(var[o,n,a]=e[c],l=!0,u=0;u<o.length;u++)(!1&a||i>=a)&&Object.keys(r.O).every((e=>r.O[e](o[u])))?o.splice(u--,1):(l=!1,a<i&&(i=a));if(l){e.splice(c--,1);var s=n();void 0!==s&&(t=s)}}return t}a=a||0;for(var c=e.length;c>0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[o,n,a]}})(),(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return r.d(t,{a:t}),t}})(),(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"===typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"===typeof o.then)return o}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&n&&o;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>i[e]=()=>o[e]));return i["default"]=()=>o,r.d(a,i),a}})(),(()=>{r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}})(),(()=>{r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,o)=>(r.f[o](e,t),t)),[]))})(),(()=>{r.u=e=>"js/"+({324:"sigma",464:"echart"}[e]||e)+"."+{72:"f1673470",260:"1d50abd6",324:"ce21336a",464:"8f773fb7",513:"595d6a72",609:"a5c4177e",935:"a10cb1a0"}[e]+".js"})(),(()=>{r.miniCssF=e=>"css/"+e+"."+{72:"9393078c",513:"48762077"}[e]+".css"})(),(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="uniqua:";r.l=(o,n,a,i)=>{if(e[o])e[o].push(n);else{var l,u;if(void 0!==a)for(var s=document.getElementsByTagName("script"),c=0;c<s.length;c++){var d=s[c];if(d.getAttribute("src")==o||d.getAttribute("data-webpack")==t+a){l=d;break}}l||(u=!0,l=document.createElement("script"),l.charset="utf-8",l.timeout=120,r.nc&&l.setAttribute("nonce",r.nc),l.setAttribute("data-webpack",t+a),l.src=o),e[o]=[n];var f=(t,r)=>{l.onerror=l.onload=null,clearTimeout(p);var n=e[o];if(delete e[o],l.parentNode&&l.parentNode.removeChild(l),n&&n.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.bind(null,l.onload),u&&document.head.appendChild(l)}}})(),(()=>{r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e)})(),(()=>{r.p="/"})(),(()=>{if("undefined"!==typeof document){var e=(e,t,o,n,a)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",r.nc&&(i.nonce=r.nc);var l=r=>{if(i.onerror=i.onload=null,"load"===r.type)n();else{var o=r&&r.type,l=r&&r.target&&r.target.href||t,u=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+l+")");u.name="ChunkLoadError",u.code="CSS_CHUNK_LOAD_FAILED",u.type=o,u.request=l,i.parentNode&&i.parentNode.removeChild(i),a(u)}};return i.onerror=i.onload=l,i.href=t,o?o.parentNode.insertBefore(i,o.nextSibling):document.head.appendChild(i),i},t=(e,t)=>{for(var r=document.getElementsByTagName("link"),o=0;o<r.length;o++){var n=r[o],a=n.getAttribute("data-href")||n.getAttribute("href");if("stylesheet"===n.rel&&(a===e||a===t))return n}var i=document.getElementsByTagName("style");for(o=0;o<i.length;o++){n=i[o],a=n.getAttribute("data-href");if(a===e||a===t)return n}},o=o=>new Promise(((n,a)=>{var i=r.miniCssF(o),l=r.p+i;if(t(i,l))return n();e(o,l,null,n,a)})),n={524:0};r.f.miniCss=(e,t)=>{var r={72:1,513:1};n[e]?t.push(n[e]):0!==n[e]&&r[e]&&t.push(n[e]=o(e).then((()=>{n[e]=0}),(t=>{throw delete n[e],t})))}}})(),(()=>{var e={524:0};r.f.j=(t,o)=>{var n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)o.push(n[2]);else{var a=new Promise(((r,o)=>n=e[t]=[r,o]));o.push(n[2]=a);var i=r.p+r.u(t),l=new Error,u=o=>{if(r.o(e,t)&&(n=e[t],0!==n&&(e[t]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,n[1](l)}};r.l(i,u,"chunk-"+t,t)}},r.O.j=t=>0===e[t];var t=(t,o)=>{var n,a,[i,l,u]=o,s=0;if(i.some((t=>0!==e[t]))){for(n in l)r.o(l,n)&&(r.m[n]=l[n]);if(u)var c=u(r)}for(t&&t(o);s<i.length;s++)a=i[s],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(c)},o=globalThis["webpackChunkuniqua"]=globalThis["webpackChunkuniqua"]||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var o=r.O(void 0,[121],(()=>r(8260)));o=r.O(o)})();
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unisi
3
- Version: 0.3.23
3
+ Version: 0.3.24
4
4
  Summary: Unified System Interface, GUI and Remote API
5
5
  Author-Email: UNISI Tech <g.dernovoy@gmail.com>
6
6
  License: Apache-2.0
@@ -1,7 +1,7 @@
1
- unisi-0.3.23.dist-info/METADATA,sha256=Ep_TT9GSF_oRgXAGi_DClaKG-fVaroxN9dP0QglK3pE,27266
2
- unisi-0.3.23.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
- unisi-0.3.23.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
- unisi-0.3.23.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1
+ unisi-0.3.24.dist-info/METADATA,sha256=FZV-jvimA6DUipEBz81Q6gBC4w5B4qujYGIVIyChh0c,27266
2
+ unisi-0.3.24.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
+ unisi-0.3.24.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
+ unisi-0.3.24.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
5
5
  unisi/__init__.py,sha256=prG4FwJzpNJRX1trto0x_4Bne3kkpEX1dUxcRnIxWVw,301
6
6
  unisi/autotest.py,sha256=DFhGPbXwNjN0dZByLTns0voBEsKccU1DfetfEIhmK6U,8753
7
7
  unisi/common.py,sha256=QHSS-pQDtLZxeZls0eDl8-EmYJZuaRmYO1M9izCly-Y,5791
@@ -14,17 +14,17 @@ unisi/jsoncomparison/config.py,sha256=LbdLJE1KIebFq_tX7zcERhPvopKhnzcTqMCnS3jN12
14
14
  unisi/jsoncomparison/errors.py,sha256=wqphE1Xn7K6n16uvUhDC45m2BxbsMUhIF2olPbhqf4o,1192
15
15
  unisi/jsoncomparison/ignore.py,sha256=xfF0a_BBEyGdZBoq-ovpCpawgcX8SRwwp7IrGnu1c2w,2634
16
16
  unisi/kdb.py,sha256=K-Lqc3e9hLTwO0i1ilTC6qrwZp90tXjLm7HFb_lM1Os,13621
17
- unisi/llmrag.py,sha256=nSU1IHrsZG4h7kQCbBk8LOg828HeA1jHJs8FtNJMVZs,9895
17
+ unisi/llmrag.py,sha256=ORITYgC--_QPyBRumoacQmUIsQG5d7UO10956l5Fg2c,9893
18
18
  unisi/multimon.py,sha256=YKwCuvMsMfdgOGkJoqiqh_9wywXMeo9bUhHmbAIUeSE,4060
19
19
  unisi/proxy.py,sha256=QMHSSFJtmVZIexIMAsuFNlF5JpnYNG90rkTM3PYJhY4,7750
20
20
  unisi/reloader.py,sha256=t7z0NgaeJX52044ue_LxITa99WMuE5Jra9qkMEeGhTg,6941
21
21
  unisi/server.py,sha256=owUV_siimohV-PZwMkkIRTnynY0wxpia2la3Vjqy9g8,6658
22
- unisi/tables.py,sha256=IBuN9f4AF0SkN9uRPf2WWwdXgAzDnj46y0_C09iC2h4,13809
22
+ unisi/tables.py,sha256=1ZjR_eJ_vf0h26kdv2PjLV3t2cPMoqCV17MQjfilTX0,13810
23
23
  unisi/units.py,sha256=p-3Mg1piS6ZITWEvJylZygWTDqUqInZtjjVq0Cj32ko,11342
24
- unisi/users.py,sha256=H5_3n9C-Uhxs_bEPh6_UpfWp7GOh3D9Jhkl2yBbkWqM,16365
25
- unisi/utils.py,sha256=yNhDKCTjHL1H2Suk9DRQkXAZKYy6nqub-dNSdwPwl9I,2625
24
+ unisi/users.py,sha256=3SzB2jeJ4fTl9AMKdEymV4wGiYKMb0OgWRrFzLJRKyU,16425
25
+ unisi/utils.py,sha256=I5UF97kH5Xsx3ZtU-7tJNhOAKtdf7TMO0KyhaH9I8gc,2657
26
26
  unisi/voicecom.py,sha256=QzS1gIrBeGLO5dEwiu7KIEdJIIVbPBZFGb5nY632Ws8,16707
27
- unisi/web/css/391.48762077.css,sha256=aOo9lXY-uR9oG-gbOfnptThEJA7q-slO-aqS0hSioIk,3297
27
+ unisi/web/css/513.48762077.css,sha256=aOo9lXY-uR9oG-gbOfnptThEJA7q-slO-aqS0hSioIk,3297
28
28
  unisi/web/css/72.9393078c.css,sha256=diM_iNZeZIrFnuweFtJHQdpbanQWIZe3_YkT_O78sEk,211
29
29
  unisi/web/css/app.36cc37f3.css,sha256=ZNMlQAyImK3KpY8ZXlFfu-BMMBNXhzaHtkmiyxCvQWA,220958
30
30
  unisi/web/css/app.36cc37f3.css.gz,sha256=2_wIvwaUsEIb4wkmGZgrSd3_Tefxwz1ERJwgJtH-18M,37873
@@ -41,18 +41,18 @@ unisi/web/icons/favicon-128x128.png,sha256=zmGg0n6RZ5OM4gg-E5HeHuUUtA2KD1w2AqegT
41
41
  unisi/web/icons/favicon-16x16.png,sha256=3ynBFHJjwaUFKcZVC2rBs27b82r64dmcvfFzEo52-sU,859
42
42
  unisi/web/icons/favicon-32x32.png,sha256=lhGXZOqIhjcKDymmbKyo4mrVmKY055LMD5GO9eW2Qjk,2039
43
43
  unisi/web/icons/favicon-96x96.png,sha256=0PbP5YF01VHbwwP8z7z8jjltQ0q343C1wpjxWjj47rY,9643
44
- unisi/web/index.html,sha256=9_fC8QXr8ndUha2QiGTNkDxegKIWMi4BIakjk-_EpCk,872
44
+ unisi/web/index.html,sha256=Cl2TMdJlo_iA1ijtGQFCejbwaP6X4AlUhBEP6M20WFo,872
45
45
  unisi/web/js/260.1d50abd6.js,sha256=Y3glfRfsahbxw92v5p7GBLunwmijBEA-MzpEltyuXXw,3974
46
- unisi/web/js/391.b5136d82.js,sha256=zXLu1bNWn2NvR-P5w2-z3xfRjA3kiTlN0kF029qGOck,54438
47
- unisi/web/js/391.b5136d82.js.gz,sha256=2B5WGi_CAZMximvgFO5pEXyJiLjbO3Pt3kB845FJs58,16076
46
+ unisi/web/js/513.595d6a72.js,sha256=zWzLuD8Kr5huoo-msdWQf-TAaAk0DkI_Kn1_DTygztk,54500
47
+ unisi/web/js/513.595d6a72.js.gz,sha256=ILKXV7IgyQpC1ic-U6PkCwqHBC1rUef4R6fILZOqDQ8,16090
48
48
  unisi/web/js/609.a5c4177e.js,sha256=ZLvK0hbPJlYy31mNdZwVwAdHm82sag8s65L1dYPmTI4,784
49
49
  unisi/web/js/72.f1673470.js,sha256=_zrZ_eHnqa7Uk-MH6OaX5nzIoVopAFn4_fYOSTUYLNQ,8408
50
50
  unisi/web/js/935.a10cb1a0.js,sha256=kV6NPK3If2rU_RGC9j8cDwlIqtX6tG9dDw-HBomt5sU,6564
51
- unisi/web/js/app.82c275be.js,sha256=4CeNFPFQNzfRuCAfd-ecwxF9CZUt6jbY_4bSlQ3Zh2A,6762
51
+ unisi/web/js/app.783ad6ba.js,sha256=__-P5PBpt2GPaRT-ExWQOFqJVqExFRYryN9moCXrdFU,6762
52
52
  unisi/web/js/echart.8f773fb7.js,sha256=UuN8ztwQwrxJjDtRnmTiBBIou2EOaJIC3at4rOXAV9U,868894
53
53
  unisi/web/js/echart.8f773fb7.js.gz,sha256=aqFB-EafIUafObxoFTXcHXTCIF8WRrCnsbqhah0mLZA,277623
54
54
  unisi/web/js/sigma.ce21336a.js,sha256=ngST-065XWOdnR_Xn7U6oGNHTL8fyiOEI9V8-BWRvlI,216444
55
55
  unisi/web/js/sigma.ce21336a.js.gz,sha256=zv6oToZZFCfmrZ4G4fw0sOncVe8-dyYNWh2v5QLKZp4,51965
56
56
  unisi/web/js/vendor.6a64dcc5.js,sha256=OSNK2nadU2DnSOEYQQcAmelybITOFZXMxnRyaDoT3yU,747104
57
57
  unisi/web/js/vendor.6a64dcc5.js.gz,sha256=nmtqRzQRWaToxgHxI9hfJd3UrUCg2-fd-0Fjc4H4wu8,245827
58
- unisi-0.3.23.dist-info/RECORD,,
58
+ unisi-0.3.24.dist-info/RECORD,,
Binary file
File without changes
File without changes