p3x-redis-ui-material
Version:
💿 P3X Redis UI triple frontend — Angular + React/MUI + Vue/Vuetify with 54 languages, 7 themes, Socket.IO, desktop notifications, and full feature parity
2 lines • 19.8 kB
JavaScript
import{A as e,C as t,D as n,E as r,I as i,M as a,Nt as o,T as s,Tt as c,Y as l,Zt as u,_t as d,at as f,k as p,lt as m,rt as ee,t as te,w as h,y as g}from"./i18n.store-Bn0-vXNV.js";import{lt as _,o as v,x as y}from"./_plugin-vue_export-helper-CSr60JSh.js";import{n as ne,t as re}from"./redis-state.store-CQLjozNg.js";import{t as b}from"./common.store-DX84iTfT.js";import{t as x}from"./overlay.store-B2xgCPPX.js";import{i as S}from"./socket.service-CjKV3Am8.js";import{b as C,f as w,h as T,r as ie,x as E}from"./index-fkAw1zcW.js";import{d as D}from"./key-type-base-Cl54f8nF.js";import{t as ae}from"./redis-version-D5h1AGvN.js";import{n as oe,t as se}from"./JsonEditorDialog-_ApfiRxv.js";import{t as ce}from"./JsonViewDialog-CH8iHsQ5.js";i(),m(),o();var le={key:7,class:`p3xr-flex-row`},ue={key:9,class:`p3xr-flex-row`},de={key:10,class:`p3xr-flex-row`},fe={key:12,class:`p3xr-flex-row`},pe={style:{display:`flex`,"flex-wrap":`wrap`,gap:`4px`,margin:`8px 0`}},me={key:0},he={key:0},ge={key:0},_e={key:0},ve={key:0},ye={class:`p3xr-flex-row`},O={key:0,class:`p3xr-flex-row`},k={key:0},A={key:0,style:{opacity:`0.5`,"font-size":`12px`,"margin-bottom":`8px`}},j=a({__name:`KeyNewOrSetDialog`,props:{open:{type:Boolean},data:{}},emits:[`close`],setup(i,{emit:a}){let o=i,m=a,j=te(),M=re(),N=ne(),P=b(),F=x(),{width:be}=_(),I=t(()=>j.strings),L=t(()=>be.value>=720),xe=t(()=>M.connection?.readonly===!0),R=d(!1),z=d(!1),B=d(!1),V=d(),H=d(!1),U=d(``),W=d(``),G=d(``),K=null,q=d({}),J=t(()=>[`bloom`,`cuckoo`,`topk`,`cms`,`tdigest`].includes(q.value.type)),Y=t(()=>q.value.type===`vectorset`),Se=t(()=>{let e=I.value,t=[`string`,`list`,`hash`,`set`,`zset`,`stream`];return M.hasTimeSeries&&t.push(`timeseries`),M.hasReJSON&&t.push(`json`),M.hasBloom&&t.push(`bloom`,`cuckoo`,`topk`,`cms`,`tdigest`),t.push(`vectorset`),ae(M.info?.server?.redis_version).isAtLeast(8,8)&&t.push(`array`),t.map(t=>({value:t,title:e?.redisTypes?.[t]??t}))});ee(()=>o.open,e=>{if(!e||!o.data)return;let t=N.redisTreeDivider,n={type:`string`,key:o.data.node?.key?o.data.node.key+t:``,value:``,score:``,streamTimestamp:`*`,tsTimestamp:`*`,tsRetention:0,tsDuplicatePolicy:`LAST`,tsLabels:``,tsBulkMode:!1,tsSpread:6e4,tsFormula:``,tsFormulaPoints:25,tsFormulaAmplitude:100,tsFormulaOffset:0,tsEditAll:!1,hashKey:``,index:void 0,bloomErrorRate:.01,bloomCapacity:100,cuckooCapacity:1024,topkK:10,topkWidth:2e3,topkDepth:7,topkDecay:.9,cmsWidth:2e3,cmsDepth:7,tdigestCompression:100,vectorElement:``,vectorValues:``};o.data.model&&Object.assign(n,o.data.model),q.value=n,R.value=!1});let X=t(()=>o.data?.type===`add`),Ce=t(()=>o.data?.type===`edit`?D(I.value?.form?.key?.label?.formName?.edit):o.data?.type===`append`?D(I.value?.form?.key?.label?.formName?.append):D(I.value?.form?.key?.label?.formName?.add));function Z(e,t){q.value={...q.value,[e]:t}}function we(){let e=q.value.value;q.value.type===`timeseries`&&(e=`TS.ADD ${q.value.key} ${q.value.tsTimestamp} ${q.value.value}`),navigator.clipboard.writeText(String(e??``)).catch(()=>{}),P.toast(D(I.value?.status?.dataCopied))}function Q(){try{Z(`value`,JSON.stringify(JSON.parse(q.value.value),null,N.jsonFormat||2))}catch{P.toast(D(I.value?.label?.jsonViewNotParsable))}}function Te(e){let t=e.target,n=t.files?.[0];if(!n)return;let r=new FileReader;r.onload=async e=>{try{await P.confirm({message:D(I.value?.confirm?.uploadBuffer)}),Z(`value`,e.target.result),P.toast(D(I.value?.confirm?.uploadBufferDone))}catch{}},r.readAsArrayBuffer(n),t.value=``}function Ee(){let e=Math.min(Math.max(parseInt(String(q.value.tsFormulaPoints))||25,1),1e4),t=parseFloat(String(q.value.tsFormulaAmplitude))||100,n=parseFloat(String(q.value.tsFormulaOffset))||0,r=q.value.tsFormula,i=[];for(let a=0;a<e;a++){let o=a/e,s;switch(r){case`sin`:s=Math.sin(o*Math.PI*2)*t+n;break;case`cos`:s=Math.cos(o*Math.PI*2)*t+n;break;case`linear`:s=o*t+n;break;case`random`:s=Math.random()*t+n;break;case`sawtooth`:s=o%.25*4*t+n;break;default:s=n}i.push(`* ${parseFloat(s.toFixed(4))}`)}Z(`value`,i.join(`
`))}function De(e){B.value=!1,e?.obj&&Z(`value`,e.obj)}async function Oe(){if(!q.value.key?.trim()){P.toast(D(I.value?.form?.key?.error?.key));return}if(R.value)try{JSON.parse(q.value.value)}catch{P.toast(D(I.value?.label?.jsonViewNotParsable));return}if(!(o.data?.model?.value!==void 0&&o.data.model.value!==q.value.value&&N.showDiffBeforeSave&&(U.value=String(o.data.model.value),W.value=String(q.value.value),G.value=q.value.hashKey||``,H.value=!0,!await new Promise(e=>{K=e}))))try{F.show({message:D(I.value?.label?.saving)});let e=await S({action:`key/new-or-set`,payload:{type:o.data?.type,originalValue:o.data?.model?.value,originalHashKey:o.data?.model?.hashKey,originalIndex:o.data?.model?.index,model:structuredClone(q.value)}});P.toast(D(I.value?.status?.set)),m(`close`,e)}catch(e){P.generalHandleError(e)}finally{F.hide()}}function $(){m(`close`)}return(t,a)=>(l(),n(g,null,[i.open&&i.data?(l(),s(ie,{key:0,open:!0,title:Ce.value,onClose:$},{actions:f(()=>[e(v,{variant:`flat`,color:`error`,size:`small`,onClick:$},{default:f(()=>[e(y,{class:`mr-1`},{default:f(()=>[...a[48]||=[p(`mdi-close-circle`,-1)]]),_:1}),h(`span`,null,u(c(D)(I.value?.intention?.cancel)),1)]),_:1}),xe.value?r(``,!0):(l(),s(v,{key:0,variant:`flat`,color:`primary`,size:`small`,onClick:Oe},{default:f(()=>[e(y,{class:`mr-1`},{default:f(()=>[p(u(i.data?.type===`edit`?`mdi-pencil`:`mdi-plus`),1)]),_:1}),h(`span`,null,u(i.data?.type===`edit`?c(D)(I.value?.intention?.save):c(D)(I.value?.intention?.add)),1)]),_:1}))]),default:f(()=>[e(E,{modelValue:q.value.key,"onUpdate:modelValue":a[0]||=e=>q.value.key=e,label:c(D)(I.value?.form?.key?.field?.key),required:``,disabled:!X.value,variant:`outlined`,density:`comfortable`,"hide-details":``,class:`mb-3`},null,8,[`modelValue`,`label`,`disabled`]),e(C,{modelValue:q.value.type,"onUpdate:modelValue":a[1]||=e=>q.value.type=e,label:c(D)(I.value?.form?.key?.field?.type),items:Se.value,disabled:!X.value,variant:`outlined`,density:`comfortable`,"hide-details":``,class:`mb-3`},null,8,[`modelValue`,`label`,`items`,`disabled`]),q.value.type===`list`?(l(),s(E,{key:0,modelValue:q.value.index,"onUpdate:modelValue":a[2]||=e=>q.value.index=e,label:c(D)(I.value?.form?.key?.field?.index),type:`number`,variant:`outlined`,density:`comfortable`,hint:c(D)(I.value?.label?.redisListIndexInfo),"persistent-hint":``,class:`mb-3`},null,8,[`modelValue`,`label`,`hint`])):r(``,!0),q.value.type===`array`?(l(),s(E,{key:1,modelValue:q.value.index,"onUpdate:modelValue":a[3]||=e=>q.value.index=e,label:c(D)(I.value?.form?.key?.field?.index),type:`number`,variant:`outlined`,density:`comfortable`,hint:c(D)(I.value?.label?.redisArrayIndexInfo),"persistent-hint":``,class:`mb-3`},null,8,[`modelValue`,`label`,`hint`])):r(``,!0),q.value.type===`hash`?(l(),s(E,{key:2,modelValue:q.value.hashKey,"onUpdate:modelValue":a[4]||=e=>q.value.hashKey=e,label:c(D)(I.value?.form?.key?.field?.hashKey),required:``,variant:`outlined`,density:`comfortable`,"hide-details":``,class:`mb-3`},null,8,[`modelValue`,`label`])):r(``,!0),q.value.type===`zset`?(l(),s(E,{key:3,modelValue:q.value.score,"onUpdate:modelValue":a[5]||=e=>q.value.score=e,label:c(D)(I.value?.form?.key?.field?.score),type:`number`,required:``,variant:`outlined`,density:`comfortable`,"hide-details":``,class:`mb-3`},null,8,[`modelValue`,`label`])):r(``,!0),q.value.type===`stream`?(l(),s(E,{key:4,modelValue:q.value.streamTimestamp,"onUpdate:modelValue":a[6]||=e=>q.value.streamTimestamp=e,label:c(D)(I.value?.form?.key?.field?.streamTimestamp),required:``,variant:`outlined`,density:`comfortable`,hint:c(D)(I.value?.label?.streamTimestampId),"persistent-hint":``,class:`mb-3`},null,8,[`modelValue`,`label`,`hint`])):r(``,!0),q.value.type===`timeseries`&&X.value?(l(),n(g,{key:5},[e(E,{modelValue:q.value.tsRetention,"onUpdate:modelValue":a[7]||=e=>q.value.tsRetention=e,modelModifiers:{number:!0},label:`${c(D)(I.value?.page?.key?.timeseries?.retention)} (ms)`,type:`number`,variant:`outlined`,density:`comfortable`,hint:c(D)(I.value?.page?.key?.timeseries?.retentionHint),"persistent-hint":``,class:`mb-3`},null,8,[`modelValue`,`label`,`hint`]),e(C,{modelValue:q.value.tsDuplicatePolicy,"onUpdate:modelValue":a[8]||=e=>q.value.tsDuplicatePolicy=e,label:c(D)(I.value?.page?.key?.timeseries?.duplicatePolicy),items:[`LAST`,`FIRST`,`MIN`,`MAX`,`SUM`,`BLOCK`],variant:`outlined`,density:`comfortable`,"hide-details":``,class:`mb-3`},null,8,[`modelValue`,`label`])],64)):r(``,!0),q.value.type===`timeseries`?(l(),n(g,{key:6},[e(E,{modelValue:q.value.tsLabels,"onUpdate:modelValue":a[9]||=e=>q.value.tsLabels=e,label:c(D)(I.value?.page?.key?.timeseries?.labels),variant:`outlined`,density:`comfortable`,hint:c(D)(I.value?.page?.key?.timeseries?.labelsHint),"persistent-hint":``,class:`mb-3`},null,8,[`modelValue`,`label`,`hint`]),q.value.tsBulkMode?r(``,!0):(l(),s(E,{key:0,modelValue:q.value.tsTimestamp,"onUpdate:modelValue":a[10]||=e=>q.value.tsTimestamp=e,label:c(D)(I.value?.page?.key?.timeseries?.timestamp),disabled:q.value.originalTimestamp!==void 0,variant:`outlined`,density:`comfortable`,hint:c(D)(I.value?.page?.key?.timeseries?.timestampHint),"persistent-hint":``,class:`mb-3`},null,8,[`modelValue`,`label`,`disabled`,`hint`])),q.value.originalTimestamp===void 0?(l(),s(T,{key:1,modelValue:q.value.tsBulkMode,"onUpdate:modelValue":a[11]||=e=>q.value.tsBulkMode=e,label:c(D)(I.value?.page?.key?.timeseries?.bulkMode),density:`compact`,"hide-details":``,class:`mb-3`},null,8,[`modelValue`,`label`])):r(``,!0)],64)):r(``,!0),q.value.type===`bloom`?(l(),n(`div`,le,[e(E,{modelValue:q.value.bloomErrorRate,"onUpdate:modelValue":a[12]||=e=>q.value.bloomErrorRate=e,modelModifiers:{number:!0},label:c(D)(I.value?.form?.key?.field?.errorRate),type:`number`,step:`0.001`,placeholder:`0.01 = 1%`,variant:`outlined`,density:`comfortable`,"hide-details":``,style:{flex:`1`,"min-width":`140px`}},null,8,[`modelValue`,`label`]),e(E,{modelValue:q.value.bloomCapacity,"onUpdate:modelValue":a[13]||=e=>q.value.bloomCapacity=e,modelModifiers:{number:!0},label:c(D)(I.value?.form?.key?.field?.capacity),type:`number`,variant:`outlined`,density:`comfortable`,"hide-details":``,style:{flex:`1`,"min-width":`140px`}},null,8,[`modelValue`,`label`])])):r(``,!0),q.value.type===`cuckoo`?(l(),s(E,{key:8,modelValue:q.value.cuckooCapacity,"onUpdate:modelValue":a[14]||=e=>q.value.cuckooCapacity=e,modelModifiers:{number:!0},label:c(D)(I.value?.form?.key?.field?.capacity),type:`number`,variant:`outlined`,density:`comfortable`,"hide-details":``,class:`mb-3`},null,8,[`modelValue`,`label`])):r(``,!0),q.value.type===`topk`?(l(),n(`div`,ue,[e(E,{modelValue:q.value.topkK,"onUpdate:modelValue":a[15]||=e=>q.value.topkK=e,modelModifiers:{number:!0},label:`Top K`,type:`number`,variant:`outlined`,density:`comfortable`,"hide-details":``,style:{flex:`1`,"min-width":`100px`}},null,8,[`modelValue`]),e(E,{modelValue:q.value.topkWidth,"onUpdate:modelValue":a[16]||=e=>q.value.topkWidth=e,modelModifiers:{number:!0},label:c(D)(I.value?.form?.key?.field?.width),type:`number`,variant:`outlined`,density:`comfortable`,"hide-details":``,style:{flex:`1`,"min-width":`100px`}},null,8,[`modelValue`,`label`]),e(E,{modelValue:q.value.topkDepth,"onUpdate:modelValue":a[17]||=e=>q.value.topkDepth=e,modelModifiers:{number:!0},label:c(D)(I.value?.form?.key?.field?.depth),type:`number`,variant:`outlined`,density:`comfortable`,"hide-details":``,style:{flex:`1`,"min-width":`100px`}},null,8,[`modelValue`,`label`]),e(E,{modelValue:q.value.topkDecay,"onUpdate:modelValue":a[18]||=e=>q.value.topkDecay=e,modelModifiers:{number:!0},label:c(D)(I.value?.form?.key?.field?.decay),type:`number`,step:`0.1`,variant:`outlined`,density:`comfortable`,"hide-details":``,style:{flex:`1`,"min-width":`100px`}},null,8,[`modelValue`,`label`])])):r(``,!0),q.value.type===`cms`?(l(),n(`div`,de,[e(E,{modelValue:q.value.cmsWidth,"onUpdate:modelValue":a[19]||=e=>q.value.cmsWidth=e,modelModifiers:{number:!0},label:c(D)(I.value?.form?.key?.field?.width),type:`number`,variant:`outlined`,density:`comfortable`,"hide-details":``,style:{flex:`1`,"min-width":`140px`}},null,8,[`modelValue`,`label`]),e(E,{modelValue:q.value.cmsDepth,"onUpdate:modelValue":a[20]||=e=>q.value.cmsDepth=e,modelModifiers:{number:!0},label:c(D)(I.value?.form?.key?.field?.depth),type:`number`,variant:`outlined`,density:`comfortable`,"hide-details":``,style:{flex:`1`,"min-width":`140px`}},null,8,[`modelValue`,`label`])])):r(``,!0),q.value.type===`tdigest`?(l(),s(E,{key:11,modelValue:q.value.tdigestCompression,"onUpdate:modelValue":a[21]||=e=>q.value.tdigestCompression=e,modelModifiers:{number:!0},label:c(D)(I.value?.form?.key?.field?.compression),type:`number`,variant:`outlined`,density:`comfortable`,"hide-details":``,class:`mb-3`},null,8,[`modelValue`,`label`])):r(``,!0),q.value.type===`vectorset`?(l(),n(`div`,fe,[e(E,{modelValue:q.value.vectorElement,"onUpdate:modelValue":a[22]||=e=>q.value.vectorElement=e,label:c(D)(I.value?.page?.key?.vectorset?.elementName),variant:`outlined`,density:`comfortable`,"hide-details":``,style:{flex:`1`,"min-width":`200px`}},null,8,[`modelValue`,`label`]),e(E,{modelValue:q.value.vectorValues,"onUpdate:modelValue":a[23]||=e=>q.value.vectorValues=e,label:c(D)(I.value?.page?.key?.vectorset?.vectorValues),placeholder:`0.1, 0.2, 0.3`,variant:`outlined`,density:`comfortable`,"hide-details":``,style:{flex:`1`,"min-width":`200px`}},null,8,[`modelValue`,`label`])])):r(``,!0),h(`input`,{ref_key:`fileInputRef`,ref:V,type:`file`,style:{display:`none`},onChange:Te},null,544),h(`div`,pe,[q.value.type!==`stream`&&q.value.type!==`timeseries`&&!J.value&&!Y.value?(l(),s(v,{key:0,variant:`flat`,color:`primary`,size:`small`,onClick:a[24]||=e=>V.value?.click(),style:{gap:`3px`}},{default:f(()=>[e(y,{size:`small`},{default:f(()=>[...a[42]||=[p(`mdi-upload`,-1)]]),_:1}),L.value?(l(),n(`span`,me,u(c(D)(I.value?.intention?.setBuffer)),1)):r(``,!0)]),_:1})):r(``,!0),q.value.type!==`timeseries`&&!J.value&&!Y.value?(l(),n(g,{key:1},[e(v,{variant:`flat`,color:`primary`,size:`small`,onClick:a[25]||=e=>B.value=!0,style:{gap:`3px`}},{default:f(()=>[e(y,{size:`small`},{default:f(()=>[...a[43]||=[p(`mdi-file-document-outline`,-1)]]),_:1}),L.value?(l(),n(`span`,he,u(c(D)(I.value?.intention?.jsonViewEditor)),1)):r(``,!0)]),_:1}),e(v,{variant:`flat`,color:`primary`,size:`small`,onClick:a[26]||=e=>Q(),style:{gap:`3px`}},{default:f(()=>[e(y,{size:`small`},{default:f(()=>[...a[44]||=[p(`mdi-format-line-spacing`,-1)]]),_:1}),L.value?(l(),n(`span`,ge,u(c(D)(I.value?.intention?.formatJson)),1)):r(``,!0)]),_:1}),e(v,{variant:`flat`,color:`secondary`,size:`small`,onClick:a[27]||=e=>z.value=!0,style:{gap:`3px`}},{default:f(()=>[e(y,{size:`small`},{default:f(()=>[...a[45]||=[p(`mdi-file-tree`,-1)]]),_:1}),L.value?(l(),n(`span`,_e,u(c(D)(I.value?.intention?.jsonViewShow)),1)):r(``,!0)]),_:1})],64)):r(``,!0),e(v,{variant:`flat`,color:`secondary`,size:`small`,onClick:a[28]||=e=>we(),style:{gap:`3px`}},{default:f(()=>[e(y,{size:`small`},{default:f(()=>[...a[46]||=[p(`mdi-content-copy`,-1)]]),_:1}),L.value?(l(),n(`span`,ve,u(c(D)(I.value?.intention?.copy)),1)):r(``,!0)]),_:1})]),q.value.type!==`timeseries`&&!J.value&&!Y.value?(l(),s(T,{key:13,modelValue:R.value,"onUpdate:modelValue":a[29]||=e=>R.value=e,label:c(D)(I.value?.label?.validateJson),color:`secondary`,density:`compact`,"hide-details":``,class:`mb-3`},null,8,[`modelValue`,`label`])):r(``,!0),q.value.type===`timeseries`&&(q.value.tsEditAll||q.value.tsBulkMode)?(l(),n(g,{key:14},[h(`div`,ye,[e(C,{modelValue:q.value.tsSpread,"onUpdate:modelValue":a[30]||=e=>q.value.tsSpread=e,label:c(D)(I.value?.page?.key?.timeseries?.autoSpread),items:[{value:1e3,title:`1 ${c(D)(I.value?.time?.second)}`},{value:3e4,title:`30 ${c(D)(I.value?.time?.seconds)}`},{value:6e4,title:`1 ${c(D)(I.value?.time?.minute)}`},{value:18e5,title:`30 ${c(D)(I.value?.time?.minutes)}`},{value:36e5,title:`1 ${c(D)(I.value?.time?.hour)}`},{value:864e5,title:`24 ${c(D)(I.value?.time?.hours)}`}],"item-value":`value`,"item-title":`title`,variant:`outlined`,density:`comfortable`,"hide-details":``,style:{flex:`1`,"min-width":`140px`}},null,8,[`modelValue`,`label`,`items`]),e(C,{modelValue:q.value.tsFormula,"onUpdate:modelValue":a[31]||=e=>q.value.tsFormula=e,label:c(D)(I.value?.page?.key?.timeseries?.formula),items:[{value:``,title:c(D)(I.value?.page?.key?.timeseries?.none)},{value:`sin`,title:`sin`},{value:`cos`,title:`cos`},{value:`linear`,title:c(D)(I.value?.page?.key?.timeseries?.formulaLinear)},{value:`random`,title:c(D)(I.value?.page?.key?.timeseries?.formulaRandom)},{value:`sawtooth`,title:c(D)(I.value?.page?.key?.timeseries?.formulaSawtooth)}],"item-value":`value`,"item-title":`title`,variant:`outlined`,density:`comfortable`,"hide-details":``,style:{flex:`1`,"min-width":`120px`}},null,8,[`modelValue`,`label`,`items`])]),q.value.tsFormula?(l(),n(`div`,O,[e(E,{modelValue:q.value.tsFormulaPoints,"onUpdate:modelValue":a[32]||=e=>q.value.tsFormulaPoints=e,modelModifiers:{number:!0},label:c(D)(I.value?.page?.key?.timeseries?.formulaPoints),type:`number`,min:1,max:1e4,variant:`outlined`,density:`comfortable`,"hide-details":``,style:{flex:`1`,"min-width":`80px`}},null,8,[`modelValue`,`label`]),e(E,{modelValue:q.value.tsFormulaAmplitude,"onUpdate:modelValue":a[33]||=e=>q.value.tsFormulaAmplitude=e,modelModifiers:{number:!0},label:c(D)(I.value?.page?.key?.timeseries?.formulaAmplitude),type:`number`,variant:`outlined`,density:`comfortable`,"hide-details":``,style:{flex:`1`,"min-width":`80px`}},null,8,[`modelValue`,`label`]),e(E,{modelValue:q.value.tsFormulaOffset,"onUpdate:modelValue":a[34]||=e=>q.value.tsFormulaOffset=e,modelModifiers:{number:!0},label:c(D)(I.value?.page?.key?.timeseries?.formulaOffset),type:`number`,variant:`outlined`,density:`comfortable`,"hide-details":``,style:{flex:`1`,"min-width":`80px`}},null,8,[`modelValue`,`label`]),e(v,{variant:`flat`,color:`secondary`,size:`small`,onClick:a[35]||=e=>Ee(),style:{gap:`3px`}},{default:f(()=>[e(y,{size:`small`},{default:f(()=>[...a[47]||=[p(`mdi-chart-line`,-1)]]),_:1}),L.value?(l(),n(`span`,k,u(c(D)(I.value?.page?.key?.timeseries?.generate)),1)):r(``,!0)]),_:1})])):r(``,!0)],64)):r(``,!0),!J.value&&!Y.value?(l(),n(g,{key:15},[q.value.type===`timeseries`&&(q.value.tsEditAll||q.value.tsBulkMode)?(l(),s(w,{key:0,modelValue:q.value.value,"onUpdate:modelValue":a[36]||=e=>q.value.value=e,label:c(D)(I.value?.page?.key?.timeseries?.dataPoints),required:``,rows:`10`,hint:c(D)(I.value?.page?.key?.timeseries?.editAllHint),"persistent-hint":``,variant:`outlined`,density:`comfortable`,style:{"font-family":`'Roboto Mono', monospace`,"font-size":`13px`}},null,8,[`modelValue`,`label`,`hint`])):q.value.type===`timeseries`&&!q.value.tsBulkMode?(l(),s(E,{key:1,modelValue:q.value.value,"onUpdate:modelValue":a[37]||=e=>q.value.value=e,label:c(D)(I.value?.page?.key?.timeseries?.value),type:`number`,required:``,variant:`outlined`,density:`comfortable`,"hide-details":``},null,8,[`modelValue`,`label`])):(l(),n(g,{key:2},[q.value.type===`stream`?(l(),n(`div`,A,u(c(D)(I.value?.label?.streamValue)),1)):r(``,!0),e(w,{modelValue:q.value.value,"onUpdate:modelValue":a[38]||=e=>q.value.value=e,label:c(D)(I.value?.form?.key?.field?.value),required:``,rows:`5`,variant:`outlined`,density:`comfortable`,"hide-details":``},null,8,[`modelValue`,`label`])],64))],64)):r(``,!0)]),_:1},8,[`title`])):r(``,!0),e(ce,{open:z.value,value:String(q.value.value??``),onClose:a[39]||=e=>z.value=!1},null,8,[`open`,`value`]),e(se,{open:B.value,value:String(q.value.value??``),onClose:De},null,8,[`open`,`value`]),e(oe,{open:H.value,"key-name":q.value.key||``,"field-name":G.value||void 0,"old-value":U.value,"new-value":W.value,onConfirm:a[40]||=e=>{H.value=!1,c(K)?.(!0)},onCancel:a[41]||=e=>{H.value=!1,c(K)?.(!1)}},null,8,[`open`,`key-name`,`field-name`,`old-value`,`new-value`])],64))}});export{j as t};