@highstate/designer 0.21.1 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{BdRuKvw2.js → -aI73seg.js} +1 -1
- package/.output/public/_nuxt/39D0VL7r.js +1 -0
- package/.output/public/_nuxt/{rscZxuQ2.js → 3T5CmBSF.js} +1 -1
- package/.output/public/_nuxt/4R6BJ3GI.js +1 -0
- package/.output/public/_nuxt/{sB5TSp0H.js → 77UvFSdd.js} +7 -7
- package/.output/public/_nuxt/{B4FDp1sn.js → B0E2rEnI.js} +1 -1
- package/.output/public/_nuxt/B1x03f8R.js +1 -0
- package/.output/public/_nuxt/B2CVdECd.js +1 -0
- package/.output/public/_nuxt/{CTRkBkra.js → B2_u9ZKl.js} +1 -1
- package/.output/public/_nuxt/{5gjbd9sK.js → B8uKU-iG.js} +1 -1
- package/.output/public/_nuxt/{CemiMtCX.js → B9BJCsIg.js} +1 -1
- package/.output/public/_nuxt/{xnReCuE4.js → BBmoak6l.js} +1 -1
- package/.output/public/_nuxt/BEOSfHJT.js +1 -0
- package/.output/public/_nuxt/{DsG1SoRB.js → BJV0IIsR.js} +1 -1
- package/.output/public/_nuxt/{CPsHsqGU.js → BKaSp7fy.js} +1 -1
- package/.output/public/_nuxt/{DKWXhhCy.js → BOujskTX.js} +1 -1
- package/.output/public/_nuxt/{Fcs-0n6A.js → BPboW4rx.js} +1 -1
- package/.output/public/_nuxt/{Djg8J2AC.js → BR4jrf3-.js} +1 -1
- package/.output/public/_nuxt/{CpGRan2R.js → BSRetNRl.js} +1 -1
- package/.output/public/_nuxt/{CqQg8Ldy.js → Ba9NwIJp.js} +1 -1
- package/.output/public/_nuxt/{CJN4g-3R.js → BbWhHw7B.js} +1 -1
- package/.output/public/_nuxt/Bcyj9glE.js +6 -0
- package/.output/public/_nuxt/{CvSiusML.js → Be4ezMZK.js} +1 -1
- package/.output/public/_nuxt/{DkkrdwgN.js → BgvYz3Nr.js} +1 -1
- package/.output/public/_nuxt/BlGDdimO.js +1 -0
- package/.output/public/_nuxt/{D_wY_uke.js → Bn5R9WlL.js} +1 -1
- package/.output/public/_nuxt/{Bs8TB6Bu.js → BqJDg8iS.js} +1 -1
- package/.output/public/_nuxt/BxD6MFcJ.js +1 -0
- package/.output/public/_nuxt/{CaehGOgh.js → BxvmPvww.js} +1 -1
- package/.output/public/_nuxt/{DEtIJe2u.js → By1Fxx6d.js} +1 -1
- package/.output/public/_nuxt/{CnhVSb6R.js → ByBXn3Vz.js} +1 -1
- package/.output/public/_nuxt/C1bzPMRu.js +14 -0
- package/.output/public/_nuxt/{BIPWeF69.js → C29gnYT3.js} +1 -1
- package/.output/public/_nuxt/{BCJKqJxW.js → C5DRPdxC.js} +1 -1
- package/.output/public/_nuxt/{Cs-GjQ8R.js → C794qwo0.js} +1 -1
- package/.output/public/_nuxt/{DSDbyhpJ.js → C9OJ0gQB.js} +1 -1
- package/.output/public/_nuxt/{EnN6XTXK.js → C9n5vGW7.js} +1 -1
- package/.output/public/_nuxt/{B2SoM2pd.js → CCBTuGSI.js} +2 -2
- package/.output/public/_nuxt/{DTPYfUid.js → CGLWlIpJ.js} +1 -1
- package/.output/public/_nuxt/CI40hKzv.js +2 -0
- package/.output/public/_nuxt/{BTd2ZN65.js → CLsyMJ1X.js} +1 -1
- package/.output/public/_nuxt/{ByE1aAlg.js → CNWyx-82.js} +1 -1
- package/.output/public/_nuxt/CRZrAKrA.js +2 -0
- package/.output/public/_nuxt/{B7RpoNQl.js → CRb2z3Pg.js} +1 -1
- package/.output/public/_nuxt/{BzhaMbyl.js → CWA5Cfde.js} +1 -1
- package/.output/public/_nuxt/{CmJE87KM.js → C_yayEmb.js} +1 -1
- package/.output/public/_nuxt/{BwKAHWnp.js → CaZj7sno.js} +1 -1
- package/.output/public/_nuxt/CiaugisX.js +1 -0
- package/.output/public/_nuxt/Cjs5trkS.js +1 -0
- package/.output/public/_nuxt/CoqwalnO.js +2 -0
- package/.output/public/_nuxt/{OuCcJFrZ.js → CscXh7Vy.js} +1 -1
- package/.output/public/_nuxt/{9OHRRPkh.js → CwWsKBf5.js} +1 -1
- package/.output/public/_nuxt/Cwefpg1x.js +1 -0
- package/.output/public/_nuxt/{DtBrxin9.js → CyFj-Mv9.js} +1 -1
- package/.output/public/_nuxt/{C973_vs5.js → D1BdWMiq.js} +1 -1
- package/.output/public/_nuxt/D1yXAE_w.js +1 -0
- package/.output/public/_nuxt/{Bl_Sz9PU.js → D2lHwbtX.js} +1 -1
- package/.output/public/_nuxt/{Dahes9VH.js → D46u9gXN.js} +1 -1
- package/.output/public/_nuxt/{D-7HtdRe.js → D4H6aUyZ.js} +7 -7
- package/.output/public/_nuxt/D9ITfHnZ.js +269 -0
- package/.output/public/_nuxt/{C2zyO9uX.js → DFwfZeyL.js} +1 -1
- package/.output/public/_nuxt/{UD_auLNX.js → DMM9kDc1.js} +1 -1
- package/.output/public/_nuxt/{wCosSBIO.js → DNVXBFXP.js} +1 -1
- package/.output/public/_nuxt/{DXyfavJr.js → DPQHj1GW.js} +1 -1
- package/.output/public/_nuxt/{CBIEPWAA.js → DRTFVhVr.js} +1 -1
- package/.output/public/_nuxt/{GXzlut8R.js → DTYY2tCY.js} +1 -1
- package/.output/public/_nuxt/{hAFXcJ2_.js → DVKmRHSk.js} +1 -1
- package/.output/public/_nuxt/{DdvHdmGh.js → DYYyOkJe.js} +1 -1
- package/.output/public/_nuxt/{DUHba1vY.js → DcV32yum.js} +1 -1
- package/.output/public/_nuxt/DdhYQ3Tv.js +1 -0
- package/.output/public/_nuxt/DmMgvbsF.js +1 -0
- package/.output/public/_nuxt/{DnpKvmH_.js → DrQCNsTo.js} +1 -1
- package/.output/public/_nuxt/{DSpiceQe.js → DvCXikgN.js} +1 -1
- package/.output/public/_nuxt/DzQULtcW.js +1 -0
- package/.output/public/_nuxt/{BArXRmKu.js → DzowYWbi.js} +1 -1
- package/.output/public/_nuxt/{CtbC3i8L.js → I4u-TRO-.js} +1 -1
- package/.output/public/_nuxt/{y0GN4iGv.js → O3nsZ-Uz.js} +1 -1
- package/.output/public/_nuxt/Qj4UhtaN.js +1 -0
- package/.output/public/_nuxt/{Bdd5S2WL.js → VF7GAmoY.js} +1 -1
- package/.output/public/_nuxt/{Lks7C8cK.js → YpnHruhZ.js} +1 -1
- package/.output/public/_nuxt/_pageId_.C5KTkEfy.css +1 -0
- package/.output/public/_nuxt/_panelId_.CKSHyLNC.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/53add2c3-4d7c-4a4f-a116-e73c3787cf98.json +1 -0
- package/.output/public/_nuxt/components.a-P9dVi2.css +1 -0
- package/.output/public/_nuxt/{entry.Bc0aTA0K.css → entry.DsBbjDm-.css} +1 -1
- package/.output/public/_nuxt/error-404.DnBTUElh.css +1 -0
- package/.output/public/_nuxt/error-500.BNyYF0qG.css +1 -0
- package/.output/public/_nuxt/{CBVcjGJL.js → fbfpKHgl.js} +1 -1
- package/.output/public/_nuxt/{BD_Kvn-W.js → fxmP1KZw.js} +1 -1
- package/.output/public/_nuxt/graph-resolver-DhjyrFRu.js +180 -0
- package/.output/public/_nuxt/{DCK6hB22.js → hunqYsQf.js} +1 -1
- package/.output/public/_nuxt/iJghVVcV.js +1 -0
- package/.output/public/_nuxt/{Bu1xs0Fv.js → m4Sxwg8n.js} +1 -1
- package/.output/public/_nuxt/{C4XpvUuq.js → rpHuDh4d.js} +1 -1
- package/.output/public/_nuxt/{vuetify.BzdWZaIq.css → vuetify.DtnS3-VQ.css} +1 -1
- package/.output/server/index.mjs +2040 -1079
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/ws/lib/buffer-util.js +131 -0
- package/.output/server/node_modules/ws/lib/constants.js +19 -0
- package/.output/server/node_modules/ws/lib/event-target.js +292 -0
- package/.output/server/node_modules/ws/lib/extension.js +203 -0
- package/.output/server/node_modules/ws/lib/limiter.js +55 -0
- package/.output/server/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/.output/server/node_modules/ws/lib/receiver.js +706 -0
- package/.output/server/node_modules/ws/lib/sender.js +602 -0
- package/.output/server/node_modules/ws/lib/stream.js +161 -0
- package/.output/server/node_modules/ws/lib/subprotocol.js +62 -0
- package/.output/server/node_modules/ws/lib/validation.js +152 -0
- package/.output/server/node_modules/ws/lib/websocket-server.js +554 -0
- package/.output/server/node_modules/ws/lib/websocket.js +1393 -0
- package/.output/server/node_modules/ws/package.json +70 -0
- package/.output/server/node_modules/ws/wrapper.mjs +21 -0
- package/.output/server/package.json +2 -1
- package/package.json +4 -4
- package/.output/public/_nuxt/-OnKOwAh.js +0 -1
- package/.output/public/_nuxt/B-dJABhs.js +0 -1
- package/.output/public/_nuxt/BKIVPvZX.js +0 -1
- package/.output/public/_nuxt/BXphdu9w.js +0 -2
- package/.output/public/_nuxt/BYmSxWA_.js +0 -1
- package/.output/public/_nuxt/BhozkjGO.js +0 -1
- package/.output/public/_nuxt/BtrNScOx.js +0 -1
- package/.output/public/_nuxt/BupMEc6X.js +0 -6
- package/.output/public/_nuxt/Bv_vOb-Y.js +0 -14
- package/.output/public/_nuxt/CYL3VlR9.js +0 -1
- package/.output/public/_nuxt/Cz-197mS.js +0 -1
- package/.output/public/_nuxt/DHJ62FKo.js +0 -2
- package/.output/public/_nuxt/DrWe3t51.js +0 -2
- package/.output/public/_nuxt/M0WOzN-S.js +0 -269
- package/.output/public/_nuxt/ZpmLW6rw.js +0 -1
- package/.output/public/_nuxt/builds/meta/d356de5d-6230-4e66-aba2-c48f455ae207.json +0 -1
- package/.output/public/_nuxt/builds/meta/ed797280-2bf0-44e6-a601-2ff2462bfbbc.json +0 -1
- package/.output/public/_nuxt/c6k-jVO-.js +0 -1
- package/.output/public/_nuxt/components.CIe9upZ4.css +0 -1
- package/.output/public/_nuxt/error-404.iOXvqd5J.css +0 -1
- package/.output/public/_nuxt/error-500.D0BgXBui.css +0 -1
- package/.output/public/_nuxt/graph-resolver-E9RSC1Ga.js +0 -180
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as D,t as N}from"#entry";import"./
|
|
1
|
+
import{s as D,t as N}from"#entry";import"./C5DRPdxC.js";import{S as H}from"./DVKmRHSk.js";import{S as E,b as w}from"./CCBTuGSI.js";import{u as J}from"./M3Z1JMP1.js";import{_ as R}from"./BgvYz3Nr.js";import{_ as W}from"./m4Sxwg8n.js";import{E as B,aG as M,w as G,V as b,Y as U,_ as l,W as o,ai as S,aj as F,D as t,aI as $,$ as v,a0 as T,a1 as I,aJ as A,aK as z,at as C,ah as L,aP as P,r as k,aL as K,Z as O,a2 as V,aO as x,J as Y,a as j,aa as Z}from"./77UvFSdd.js";import{_ as q,c as Q}from"./CyFj-Mv9.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./fbfpKHgl.js";import"./B9BJCsIg.js";import"./Bcyj9glE.js";const X=B({__name:"CreateUnlockMethodDialog",props:{visible:{type:Boolean},visibleModifiers:{}},emits:P(["created"],["update:visible"]),setup(r,{emit:g}){const n=M(r,"visible"),s=g,{settingsStore:c}=D(),p=k(!1),u=k(!1),m=k(null),h=k(),e=k({type:"password",title:"",description:"",password:"",confirmPassword:""}),i=()=>{n.value=!1,h.value?.resetForm(),m.value=null},y=async()=>{if(p.value){u.value=!0,m.value=null;try{const a=await Q(e.value);await c.addUnlockMethod(a),n.value=!1,h.value?.resetForm(),m.value=null,s("created")}catch(a){console.error("Failed to create unlock method:",a),m.value="Some error occurred"}finally{u.value=!1}}};return G(n,a=>{a||(h.value?.resetForm(),m.value=null)}),(a,d)=>(b(),U(L,{modelValue:n.value,"onUpdate:modelValue":d[2]||(d[2]=f=>n.value=f),"max-width":"600px"},{default:l(()=>[o(S,{title:"Create Unlock Method"},{default:l(()=>[o(F,null,{default:l(()=>[o(q,{ref_key:"unlockMethodForm",ref:h,"onUpdate:valid":d[0]||(d[0]=f=>p.value=f),"onUpdate:form":d[1]||(d[1]=f=>e.value=f)},null,512),t(m)?(b(),U($,{key:0,type:"error",density:"compact",class:"mb-4"},{default:l(()=>[v(T(t(m)),1)]),_:1})):I("",!0)]),_:1}),o(A,null,{default:l(()=>[o(z),o(C,{disabled:t(u),onClick:i},{default:l(()=>[...d[3]||(d[3]=[v("Cancel",-1)])]),_:1},8,["disabled"]),o(C,{color:"primary",disabled:!t(p),loading:t(u),onClick:y},{default:l(()=>[...d[4]||(d[4]=[v(" Create ",-1)])]),_:1},8,["disabled","loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),_={class:"mb-3"},ee=B({__name:"DeleteUnlockMethodDialog",props:P({unlockMethod:{}},{visible:{type:Boolean},visibleModifiers:{}}),emits:P(["confirm"],["update:visible"]),setup(r,{emit:g}){const n=M(r,"visible"),s=r,c=g,p=k(!1),u=()=>{s.unlockMethod&&c("confirm",s.unlockMethod)},m=()=>{n.value=!1};return(h,e)=>(b(),U(L,{modelValue:n.value,"onUpdate:modelValue":e[0]||(e[0]=i=>n.value=i),"max-width":"500px"},{default:l(()=>[r.unlockMethod?(b(),U(S,{key:0},{default:l(()=>[o(K,{class:"d-flex align-center"},{default:l(()=>[o(O,{class:"mr-2 text-error"},{default:l(()=>[...e[1]||(e[1]=[v("mdi-alert-circle-outline",-1)])]),_:1}),e[2]||(e[2]=v(" Delete Unlock Method ",-1))]),_:1}),o(F,null,{default:l(()=>[V("p",_,[e[3]||(e[3]=v(" Are you sure you want to delete the unlock method ",-1)),V("strong",null,'"'+T(r.unlockMethod.meta.title)+'"',1),e[4]||(e[4]=v(" ? ",-1))]),o($,{type:"warning",density:"compact"},{default:l(()=>[...e[5]||(e[5]=[V("strong",null,"Warning:",-1),v(" Deleting this unlock method will permanently remove your ability to unlock the project using this method. Make sure you have at least one other unlock method configured before proceeding. ",-1)])]),_:1})]),_:1}),o(A,null,{default:l(()=>[o(z),o(C,{disabled:t(p),onClick:m},{default:l(()=>[...e[6]||(e[6]=[v("Cancel",-1)])]),_:1},8,["disabled"]),o(C,{color:"error",loading:t(p),onClick:u},{default:l(()=>[...e[7]||(e[7]=[v("Delete",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})):I("",!0)]),_:1},8,["modelValue"]))}}),te={class:"d-flex align-center gap-1"},ae=B({__name:"UnlockMethodsTable",props:P({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:P(["delete"],["update:search","update:sortBy","update:page","update:itemsPerPage"]),setup(r,{emit:g}){const n=g,s=M(r,"search"),c=M(r,"sortBy"),p=M(r,"page"),u=M(r,"itemsPerPage"),m=[{key:"type",title:"Type"},w.name,w.id,w.createdAt,w.actions];return(h,e)=>(b(),U(t(E),{search:s.value,"onUpdate:search":e[0]||(e[0]=i=>s.value=i),"sort-by":c.value,"onUpdate:sortBy":e[1]||(e[1]=i=>c.value=i),page:p.value,"onUpdate:page":e[2]||(e[2]=i=>p.value=i),"items-per-page":u.value,"onUpdate:itemsPerPage":e[3]||(e[3]=i=>u.value=i),headers:m,data:r.data,loading:r.loading,"hide-header":r.hideHeader,height:r.height},{"item.type":l(({item:i})=>[o(t(R),{status:i.type,"status-map":t(J)},null,8,["status","status-map"])]),"item.actions":l(({item:i})=>[V("div",te,[o(t(W),{"page-name":"settings.unlock-method-details","page-params":{projectId:r.projectId,unlockMethodId:i.id}},null,8,["page-params"]),o(C,{variant:"text",icon:"mdi-delete",size:"small",color:"error",onClick:y=>n("delete",i)},null,8,["onClick"])])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}}),ke=B({__name:"index",async setup(r){let g,n;const{settingsStore:s}=D(),{projectStore:c}=D();c.initializing?([g,n]=x(()=>N(()=>c.initialized).toBe(!0)),await g,n(),c.addLibraryRoot()):([g,n]=x(()=>c.initialize1()),await g,n(),[g,n]=x(()=>c.initialize2()),await g,n()),s.unlockMethods.load();const p=k(!1),u=k(!1),m=k(null),h=k(!1),e=y=>{m.value=y,u.value=!0},i=async y=>{h.value=!0;try{await s.removeUnlockMethod(y.id),u.value=!1,m.value=null}catch(a){console.error("Failed to delete unlock method:",a)}finally{h.value=!1}};return(y,a)=>(b(),Y(Z,null,[o(t(H),{title:"Unlock Methods",icon:"mdi-lock-open-outline",description:"Manage the methods used to unlock and access this project's encrypted data."},{actions:l(()=>[o(C,{color:"primary","prepend-icon":"mdi-plus",onClick:a[0]||(a[0]=d=>p.value=!0)},{default:l(()=>[...a[7]||(a[7]=[v(" Add Unlock Method ",-1)])]),_:1})]),default:l(({height:d})=>[o(t(ae),{search:t(s).unlockMethods.search,"onUpdate:search":a[1]||(a[1]=f=>t(s).unlockMethods.search=f),"sort-by":t(s).unlockMethods.sortBy,"onUpdate:sortBy":a[2]||(a[2]=f=>t(s).unlockMethods.sortBy=f),page:t(s).unlockMethods.page,"onUpdate:page":a[3]||(a[3]=f=>t(s).unlockMethods.page=f),"items-per-page":t(s).unlockMethods.itemsPerPage,"onUpdate:itemsPerPage":a[4]||(a[4]=f=>t(s).unlockMethods.itemsPerPage=f),"project-id":t(c).projectId,data:t(s).unlockMethods.data,loading:t(s).unlockMethods.isLoading,height:d,onDelete:e},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","height"])]),_:1}),o(t(X),{visible:t(p),"onUpdate:visible":a[5]||(a[5]=d=>j(p)?p.value=d:null)},null,8,["visible"]),o(t(ee),{visible:t(u),"onUpdate:visible":a[6]||(a[6]=d=>j(u)?u.value=d:null),"unlock-method":t(m),onConfirm:i},null,8,["visible","unlock-method"])],64))}});export{ke as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as _,i as U,k as H,_ as R}from"#entry";import{_ as A,c as E}from"./
|
|
1
|
+
import{g as _,i as U,k as H,_ as R}from"#entry";import{_ as A,c as E}from"./CyFj-Mv9.js";import{E as F,aG as z,w as D,V,Y as T,_ as s,W as t,ai as $,aH as W,a as k,D as n,aj as L,ak as N,as as B,a2 as d,Z as w,$ as l,aI as Y,aJ as q,aK as J,at as S,ah as K,r as c,j as G,H as Z,M as O,J as P,aL as Q,aM as X,a0 as x,am as ee,ap as C,an as te,aa as I,ab as ae,x as se}from"./77UvFSdd.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./Bcyj9glE.js";const oe={class:"mb-4"},le={class:"text-subtitle-1 font-weight-medium mb-2"},ne=F({__name:"NewProjectDialog",props:{visible:{type:Boolean},visibleModifiers:{}},emits:["update:visible"],setup(j){const p=z(j,"visible"),f=c(!1),y=c(!1),r=c(""),m=c(""),v=c(),g=c({type:"password",title:"",description:"",password:"",confirmPassword:""}),h=[o=>!!o||"Name is required",o=>o&&o.length<=64||"Name must be less than 64 characters",o=>/^[a-z0-9-\.]+$/.test(o)||"Name must be alphanumeric in lowercase with dashes (-) and dots (.)",o=>/^[a-z]/i.test(o)||"Name must start with a letter"],b=_(),a=U(),u=G(()=>f.value&&y.value),M=async()=>{if(!u.value)return;const o=await E(g.value),e=await b.createProject(r.value,{title:m.value},o);a.openProjectPanel(e.id),p.value=!1,r.value="",v.value?.resetForm()};return D(p,o=>{o||(r.value="",v.value?.resetForm())}),D(r,o=>{m.value=H(o)}),(o,e)=>(V(),T(K,{modelValue:p.value,"onUpdate:modelValue":e[6]||(e[6]=i=>p.value=i),"max-width":"600px"},{default:s(()=>[t($,{title:"New project",color:"#2d2d2d"},{default:s(()=>[t(W,{modelValue:n(f),"onUpdate:modelValue":e[5]||(e[5]=i=>k(f)?f.value=i:null)},{default:s(()=>[t(L,null,{default:s(()=>[t(N,{modelValue:n(r),"onUpdate:modelValue":e[0]||(e[0]=i=>k(r)?r.value=i:null),class:"mb-4",variant:"outlined",density:"compact",label:"Name",rules:h,placeholder:"my-awesome-project",hint:"Name must be unique across all repositories connected to the same storage","persistent-hint":""},null,8,["modelValue"]),t(N,{modelValue:n(m),"onUpdate:modelValue":e[1]||(e[1]=i=>k(m)?m.value=i:null),class:"mb-4",variant:"outlined",density:"compact",label:"Title",hint:"A human-readable title for your project","persistent-hint":""},null,8,["modelValue"]),t(B,{class:"my-6"}),d("div",oe,[d("h3",le,[t(w,{class:"mr-2"},{default:s(()=>[...e[7]||(e[7]=[l("mdi-lock-outline",-1)])]),_:1}),e[8]||(e[8]=l(" Unlock Method ",-1))]),e[9]||(e[9]=d("p",{class:"text-body-2 text-medium-emphasis mb-4"}," This method will be used to encrypt your project secrets and state data. You can add more unlock methods later. ",-1))]),t(n(A),{ref_key:"unlockMethodForm",ref:v,"show-type-selector":!0,"show-description":!1,"show-display-name":!1,"display-name-label":"Unlock Method Name","display-name-hint":"A friendly name for your unlock method","password-hint":"Password must be strong enough to resist offline attacks","default-display-name":"Default","default-description":"The initial unlock method configured when creating the project.","onUpdate:valid":e[2]||(e[2]=i=>y.value=i),"onUpdate:form":e[3]||(e[3]=i=>g.value=i)},null,512),t(Y,{type:"warning",density:"compact",class:"mt-4"},{default:s(()=>[...e[10]||(e[10]=[d("div",{class:"ml-2"},[d("strong",null,"Important:"),l(" Losing your unlock method will result in losing control over the created resources! ")],-1)])]),_:1})]),_:1}),t(q,null,{default:s(()=>[t(J),t(S,{onClick:e[4]||(e[4]=i=>p.value=!1)},{default:s(()=>[...e[11]||(e[11]=[l("Cancel",-1)])]),_:1}),t(S,{disabled:!n(u),loading:n(b).loadingCreateProject,onClick:M},{default:s(()=>[...e[12]||(e[12]=[l(" Create ",-1)])]),_:1},8,["disabled","loading"])]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"]))}}),re=""+new URL("hira-1.DuDDiA5P.png",import.meta.url).href,ie=globalThis.setInterval,de={class:"main-menu-container"},ue={class:"content-layout"},me={class:"project-list"},ce={class:"mascot-container"},pe={class:"catchphrase-text text-h6"},fe=F({__name:"index",props:{params:{}},setup(j){const p=_(),f=U(),y=se(),r=c(!1),m=["Let's orchestrate this beautifully!","State is everything!","No infrastructure left behind!","Visual first, code second!","Infrastructure should be as elegant as it is functional!","Time to sync the state!","Ready to deploy some magic?","Every good system starts with a solid foundation!","Building the future, one container at a time!","Kubernetes makes everything better... except debugging!","Your infrastructure deserves some love too!","Who needs sleep when you have perfectly orchestrated deployments?","Configuration drift is my arch-nemesis!","Monitoring dashboards are my happy place!","Clean architecture is the key to digital zen!","Infrastructure as art, code as poetry!","Scaling up? Scaling out? Let's scale with style!","Error 404: Downtime not found!","Highstate слабее ArgoCD и FluxCD, но в цирке не выступает!"],v=c(""),g=()=>{const b=Math.floor(Math.random()*m.length);return m[b]};v.value=g();let h;return Z(()=>{h=ie(()=>{v.value=g()},1e4)}),O(()=>{h&&clearInterval(h)}),(b,a)=>(V(),P(I,null,[d("div",de,[d("div",ue,[t($,{variant:"text",class:"project-card-inner"},{default:s(()=>[t(L,null,{default:s(()=>[t(Q,{class:"text-center text-uppercase text-bold"},{default:s(()=>[...a[3]||(a[3]=[l("Highstate Designer",-1)])]),_:1}),t(X,{class:"text-center"},{default:s(()=>[l(" v"+x(n(y).public.version)+" • Все зонды удалены ",1)]),_:1}),t(B,{class:"mt-4"}),t(ee,{variant:"flat",class:"main-menu-list"},{default:s(()=>[t(C,{class:"list-item list-button",onClick:a[0]||(a[0]=u=>n(f).openDataSettingsPanel())},{default:s(()=>[t(w,{class:"mr-2"},{default:s(()=>[...a[4]||(a[4]=[l("mdi-database-cog",-1)])]),_:1}),a[5]||(a[5]=l(" Data & Settings ",-1))]),_:1}),t(te,{class:"text-uppercase"},{default:s(()=>[...a[6]||(a[6]=[l("Projects",-1)])]),_:1}),d("div",me,[(V(!0),P(I,null,ae(n(p).projects,u=>(V(),T(C,{key:u.id,class:"list-item",onClick:M=>n(f).openProjectPanel(u.id)},{default:s(()=>[t(w,{class:"mr-2"},{default:s(()=>[...a[7]||(a[7]=[l("mdi-folder",-1)])]),_:1}),l(" "+x(u.meta.title),1)]),_:2},1032,["onClick"]))),128))]),t(C,{class:"list-item",onClick:a[1]||(a[1]=u=>r.value=!0)},{default:s(()=>[t(w,{class:"mr-2"},{default:s(()=>[...a[8]||(a[8]=[l("mdi-plus",-1)])]),_:1}),a[9]||(a[9]=l(" Create new project ",-1))]),_:1})]),_:1})]),_:1})]),_:1}),d("div",ce,[a[10]||(a[10]=d("img",{src:re,alt:"Hira Nakamura - Highstate Mascot",class:"mascot-image"},null,-1)),d("div",pe,'"'+x(n(v))+'"',1)])])]),t(n(ne),{visible:n(r),"onUpdate:visible":a[2]||(a[2]=u=>k(r)?r.value=u:null)},null,8,["visible"])],64))}}),ke=R(fe,[["__scopeId","data-v-49de3d73"]]);export{ke as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bc as j,_ as y,bd as w,g as C}from"#entry";import{P as k}from"./DrQCNsTo.js";import{E as _,aU as I,V as i,J as c,W as n,_ as f,a2 as r,a0 as m,D as t,bc as $,ai as O,as as S,a as U,r as h,j as M,aO as P,at as T,aa as A,ab as V,Y as b}from"./77UvFSdd.js";import{a as B,o as D}from"./M3Z1JMP1.js";import{_ as L,a as N}from"./BxD6MFcJ.js";import{_ as v}from"./BgvYz3Nr.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./Bcyj9glE.js";import"./rpHuDh4d.js";const z={class:"d-flex flex-column ga-4"},E={class:"d-flex align-center justify-space-between"},F={class:"text-truncate pr-2",style:{"font-size":"16px","font-weight":"500"}},R={class:"text-caption text-medium-emphasis font-mono text-truncate"},J={class:"d-flex align-center justify-space-between"},W=_({__name:"OperationCard",props:{operation:{},operationsStore:{}},setup(a){const e=h(!1),o=h(!1),s=I("contextMenu"),d=M(()=>!j(a.operation.status)),p=async l=>{s.value&&await s.value.showContextMenu(l)},u=async()=>{if(!(!d.value||o.value)){o.value=!0;try{await a.operationsStore.cancelOperation(a.operation.id),e.value=!1}finally{o.value=!1}}};return(l,x)=>(i(),c("div",null,[n(O,{width:360,class:"operation-card",color:"#2d2d2d",variant:"flat",style:{"border-radius":"4px"},onContextmenu:$(p,["prevent"])},{title:f(()=>[r("div",z,[r("div",E,[r("div",F,m(a.operation.meta.title),1),r("div",R,m(a.operation.id.slice(0,8)),1)]),r("div",J,[n(t(v),{status:a.operation.status,"status-map":t(B)},null,8,["status","status-map"]),n(t(v),{status:a.operation.type,"status-map":t(D)},null,8,["status","status-map"])])])]),_:1}),n(t(N),{ref_key:"contextMenu",ref:s,visible:t(e),"onUpdate:visible":x[0]||(x[0]=g=>U(e)?e.value=g:null),title:a.operation.meta.title,subtitle:a.operation.id},{default:f(()=>[n(S),n(t(L),{title:"Cancel",icon:"mdi-cancel",color:"error",disabled:!t(d)||t(o),loading:t(o),onClick:u},null,8,["disabled","loading"])]),_:1},8,["visible","title","subtitle"])]))}}),Y=y(W,[["__scopeId","data-v-ef13af79"]]),q={class:"d-flex flex-column pl-4 pr-4 gr-4 pt-4 align-center sidebar-container"},G={key:0,class:"d-flex text-disabled text-subtitle-1",style:{"line-height":"1"}},H={key:1,class:"d-flex text-disabled text-subtitle-1",style:{"line-height":"1"}},K={class:"d-flex flex-column gr-4 operation-list-container"},Q=_({__name:"OperationList",props:{projectId:{}},async setup(a){let e,o;const s=([e,o]=P(()=>w.async(a.projectId)),e=await e,o(),e),d=async()=>{await s.launchOperation({projectId:a.projectId,meta:{title:`Auto Update ${s.instancesToAutoUpdate.length} instance(s)`,description:"The operation was started by clicking the auto update button in the operation panel."},type:"update",instanceIds:s.instancesToAutoUpdate.map(p=>p.id)})};return(p,u)=>(i(),c("div",q,[n(T,{"prepend-icon":"mdi-auto-fix",color:"primary",size:"large",width:"360px",disabled:t(s).instancesToAutoUpdate.length===0,title:"Ебанёт?",onClick:d},{default:f(()=>[r("div",null,[u[0]||(u[0]=r("div",{class:"d-flex",style:{"line-height":"1"}},"auto update",-1)),t(s).instancesToAutoUpdate.length>0?(i(),c("div",G,m(t(s).instancesToAutoUpdate.length)+" component(s) ",1)):(i(),c("div",H," nothing to update "))])]),_:1},8,["disabled"]),r("div",K,[(i(!0),c(A,null,V(t(s).operations,l=>(i(),b(Y,{key:l.id,operation:l,"operations-store":t(s)},null,8,["operation","operations-store"]))),128))])]))}}),X=y(Q,[["__scopeId","data-v-35c1dff8"]]),Z={key:1,class:"mt-4 text-center text-uppercase text-disabled"},dt=_({__name:"operations",props:{params:{}},setup(a){const e=C();return(o,s)=>t(e).focusedProjectId?(i(),b(t(k),{key:t(e).focusedProjectId,"project-id":t(e).focusedProjectId},{default:f(()=>[n(t(X),{"project-id":t(e).focusedProjectId},null,8,["project-id"])]),_:1},8,["project-id"])):(i(),c("div",Z,"No active project"))}});export{dt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as x}from"./
|
|
1
|
+
import{C as x}from"./Bn5R9WlL.js";import{E as h,V as g,Y as y,ai as S,a6 as C,D as f,_ as d,a5 as c,W as k,j as p}from"./77UvFSdd.js";const v={done:!1,hasNext:!1};function B(e,...o){let a=e,t=o.map(l=>"lazy"in l?w(l):void 0),n=0;for(;n<o.length;){if(t[n]===void 0||!N(a)){let r=o[n];a=r(a),n+=1;continue}let l=[];for(let r=n;r<o.length;r++){let i=t[r];if(i===void 0||(l.push(i),i.isSingle))break}let s=[];for(let r of a)if(b(r,s,l))break;let{isSingle:u}=l.at(-1);a=u?s[0]:s,n+=l.length}return a}function b(e,o,a){if(a.length===0)return o.push(e),!1;let t=e,n=v,l=!1;for(let[s,u]of a.entries()){let{index:r,items:i}=u;if(i.push(t),n=u(t,r,i),u.index+=1,n.hasNext){if(n.hasMany??!1){for(let m of n.next)if(b(m,o,a.slice(s+1)))return!0;return l}t=n.next}if(!n.hasNext)break;n.done&&(l=!0)}return n.hasNext&&o.push(t),l}function w(e){let{lazy:o,lazyArgs:a}=e,t=o(...a);return Object.assign(t,{isSingle:o.single??!1,index:0,items:[]})}function N(e){return typeof e=="string"||typeof e=="object"&&!!e&&Symbol.iterator in e}const F=h({__name:"ComponentCard",props:{component:{},subtitle:{},text:{},blueprintStatus:{default:"default"},selected:{type:Boolean,default:!1}},setup(e){const o=p(()=>{const t={borderRadius:"4px"};switch(e.blueprintStatus){case"blueprint-valid":return{...t,opacity:"0.7",outline:"2px solid #4CAF50",backgroundColor:"rgba(76, 175, 80, 0.1)",boxShadow:"0 0 10px rgba(76, 175, 80, 0.3)"};case"blueprint-invalid":return{...t,opacity:"0.7",outline:"2px solid #F44336",backgroundColor:"rgba(244, 67, 54, 0.1)",boxShadow:"0 0 10px rgba(244, 67, 54, 0.3)"}}return e.selected?{...t,outline:"2px solid #2196F3",boxShadow:"0 0 8px rgba(33, 150, 243, 0.4)"}:t}),a=p(()=>e.blueprintStatus!=="default"?"#424242":e.component.meta.color??"#2d2d2d");return(t,n)=>(g(),y(S,{width:360,title:e.component.meta.title,subtitle:e.subtitle,text:e.text,color:f(a),style:C(f(o)),variant:"flat"},{prepend:d(()=>[k(x,{meta:e.component.meta},null,8,["meta"])]),append:d(()=>[c(t.$slots,"append")]),default:d(()=>[c(t.$slots,"default")]),_:3},8,["title","subtitle","text","color","style"]))}});export{F as _,v as a,B as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as j,u as T,V as s,J as n,a2 as i,a7 as C,D as g,$ as m,a0 as _,a1 as k,W as l,at as c,Y as b,ah as D,_ as o,ai as F,aL as B,aj as O,aJ as $,aK as h,aa as z,r as p,j as L}from"./
|
|
1
|
+
import{E as j,u as T,V as s,J as n,a2 as i,a7 as C,D as g,$ as m,a0 as _,a1 as k,W as l,at as c,Y as b,ah as D,_ as o,ai as F,aL as B,aj as O,aJ as $,aK as h,aa as z,r as p,j as L}from"./77UvFSdd.js";import"./C5DRPdxC.js";import{_ as A}from"#entry";const E={class:"d-flex align-center gap-2"},q={key:0,class:"text-caption"},K={key:1,class:"secret-placeholder"},R={key:1,class:"d-flex align-center gap-2"},U={class:"text-caption"},W={key:0},Y={class:"json-content"},G=j({__name:"SecretValueField",props:{secretId:{},projectId:{}},setup(S){const x=S,{$client:w}=T(),u=p(!1),d=p(!1),e=p(null),r=p(!1),f=async()=>{if(u.value){u.value=!1,e.value=null;return}try{d.value=!0,e.value=await w.settings.getSecretValue.query({projectId:x.projectId,secretId:x.secretId}),u.value=!0}catch(a){console.error("Failed to reveal secret:",a)}finally{d.value=!1}},N=async()=>{if(!(e.value===void 0||e.value===null))try{let a;typeof e.value=="string"?a=e.value:a=JSON.stringify(e.value,null,2),await navigator.clipboard.writeText(a)}catch(a){console.error("Failed to copy secret:",a)}},J=()=>{e.value===void 0||e.value===null||(r.value=!0)},V=()=>e.value===void 0||e.value===null?"":typeof e.value=="string"?e.value:JSON.stringify(e.value),y=L(()=>e.value!==void 0&&e.value!==null&&typeof e.value!="string"),I=async()=>{try{const a=JSON.stringify(e.value,null,2);await navigator.clipboard.writeText(a)}catch(a){console.error("Failed to copy JSON content:",a)}};return(a,t)=>(s(),n(z,null,[i("div",E,[u.value?(s(),n("div",R,[i("div",{class:C(["secret-revealed",{"secret-clickable":g(y)}]),onClick:t[0]||(t[0]=v=>g(y)?J():f())},[i("code",U,[m(_(V().slice(0,50))+" ",1),V().length>50?(s(),n("span",W,"...")):k("",!0)])],2),l(c,{size:"x-small",variant:"text",icon:"mdi-content-copy",onClick:N}),g(y)?k("",!0):(s(),b(c,{key:0,size:"x-small",variant:"text",icon:"mdi-eye-off",onClick:f}))])):(s(),n("div",{key:0,class:C(["secret-blur",{"secret-loading":d.value}]),onClick:f},[d.value?(s(),n("span",q,"Loading...")):(s(),n("span",K,"••••••••••••"))],2))]),l(D,{modelValue:r.value,"onUpdate:modelValue":t[3]||(t[3]=v=>r.value=v),"max-width":"800"},{default:o(()=>[l(F,null,{default:o(()=>[l(B,{class:"d-flex align-center justify-space-between"},{default:o(()=>[t[4]||(t[4]=i("span",null,"Secret Value",-1)),l(c,{icon:"mdi-close",variant:"text",size:"small",onClick:t[1]||(t[1]=v=>r.value=!1)})]),_:1}),l(O,null,{default:o(()=>[i("pre",Y,_(JSON.stringify(e.value,null,2)),1)]),_:1}),l($,null,{default:o(()=>[l(h),l(c,{variant:"text",onClick:I},{default:o(()=>[...t[5]||(t[5]=[m("Copy",-1)])]),_:1}),l(c,{color:"primary",onClick:t[2]||(t[2]=v=>r.value=!1)},{default:o(()=>[...t[6]||(t[6]=[m("Close",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))}}),Q=A(G,[["__scopeId","data-v-460302a9"]]);export{Q as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as m}from"#entry";import{E as u}from"./
|
|
1
|
+
import{s as m}from"#entry";import{E as u}from"./BxvmPvww.js";import{E as p,V as d,Y as f,D as s,j as a}from"./77UvFSdd.js";const C=p({__name:"InstanceRefChip",props:{item:{}},setup(n){const{instancesStore:r,libraryStore:i,stateStore:c}=m(),t=a(()=>{const e=c.stateIdToStateMap.get(n.item.stateId);return e?r.instances.get(e.instanceId):null}),o=a(()=>t.value?i.library.components[t.value.type]?.meta??null:null),l=a(()=>t.value?{title:t.value.name,icon:o.value?.icon,iconColor:o.value?.iconColor}:null);return(e,I)=>(d(),f(s(u),{id:n.item.stateId,meta:s(l),"fallback-icon":"mdi-cube-outline","page-name":"settings.instance-details","page-params":{stateId:n.item.stateId}},null,8,["id","meta","page-params"]))}});export{C as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as a}from"./
|
|
1
|
+
import{S as a}from"./C5DRPdxC.js";import{E as i,a8 as o,V as c,J as n,W as r,_ as l,a5 as s,a2 as d}from"./77UvFSdd.js";import{_ as p}from"#entry";const _={class:"settings-list-page"},g={class:"table-container"},m="calc(100vh - 285px)",f=i({__name:"SettingsListPage",props:{title:{},icon:{},description:{}},setup(t){return o(),(e,h)=>(c(),n("div",_,[r(a,{title:t.title,"fallback-icon":t.icon,description:t.description},{actions:l(()=>[s(e.$slots,"actions",{},void 0,!0)]),_:3},8,["title","fallback-icon","description"]),d("div",g,[s(e.$slots,"default",{height:m},void 0,!0)])]))}}),v=p(f,[["__scopeId","data-v-a5b16b6a"]]);export{v as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as p,b as s}from"./
|
|
1
|
+
import{S as p,b as s}from"./CCBTuGSI.js";import"#entry";import"./C5DRPdxC.js";import{_ as l}from"./m4Sxwg8n.js";import{E as u,aG as r,V as h,Y as c,D as n,_ as P,W as f,aP as y}from"./77UvFSdd.js";const j=u({__name:"TriggersTable",props:y({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(e){const i=r(e,"search"),o=r(e,"sortBy"),d=r(e,"page"),g=r(e,"itemsPerPage"),m=[s.name,s.id,s.createdAt,s.actions];return(B,t)=>(h(),c(n(p),{search:i.value,"onUpdate:search":t[0]||(t[0]=a=>i.value=a),"sort-by":o.value,"onUpdate:sortBy":t[1]||(t[1]=a=>o.value=a),page:d.value,"onUpdate:page":t[2]||(t[2]=a=>d.value=a),"items-per-page":g.value,"onUpdate:itemsPerPage":t[3]||(t[3]=a=>g.value=a),headers:m,data:e.data,loading:e.loading,"hide-header":e.hideHeader,height:e.height},{"item.actions":P(({item:a})=>[f(n(l),{"page-name":"settings.trigger-details","page-params":{projectId:e.projectId,triggerId:a.id}},null,8,["page-params"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}});export{j as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as n,t as g}from"#entry";import"./
|
|
1
|
+
import{s as n,t as g}from"#entry";import"./C5DRPdxC.js";import{S as d}from"./DVKmRHSk.js";import{_ as l}from"./3T5CmBSF.js";import{E as c,aO as p,Y as u,_ as f,D as e,V as y,W as P}from"./77UvFSdd.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./fbfpKHgl.js";import"./BgvYz3Nr.js";import"./CCBTuGSI.js";import"./B9BJCsIg.js";import"./CWA5Cfde.js";import"./DvCXikgN.js";import"./BxvmPvww.js";import"./DTYY2tCY.js";import"./m4Sxwg8n.js";const I=c({__name:"index",async setup(_){let o,s;const{settingsStore:t}=n(),{projectStore:r}=n();return r.initializing?([o,s]=p(()=>g(()=>r.initialized).toBe(!0)),await o,s(),r.addLibraryRoot()):([o,s]=p(()=>r.initialize1()),await o,s(),[o,s]=p(()=>r.initialize2()),await o,s()),t.pages.load(),(j,a)=>(y(),u(e(d),{title:"Pages",icon:"mdi-file-document-outline",description:"View and manage custom pages generated by your project instances."},{default:f(({height:m})=>[P(e(l),{search:e(t).pages.search,"onUpdate:search":a[0]||(a[0]=i=>e(t).pages.search=i),"sort-by":e(t).pages.sortBy,"onUpdate:sortBy":a[1]||(a[1]=i=>e(t).pages.sortBy=i),page:e(t).pages.page,"onUpdate:page":a[2]||(a[2]=i=>e(t).pages.page=i),"items-per-page":e(t).pages.itemsPerPage,"onUpdate:itemsPerPage":a[3]||(a[3]=i=>e(t).pages.itemsPerPage=i),"project-id":e(r).projectId,data:e(t).pages.data,loading:e(t).pages.isLoading,height:m},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","height"])]),_:1}))}});export{I as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as Y,I as De,bf as je,bg as Ae,_ as be,i as pe,Z as Te,n as ze,P as Ge,ar as ve,a3 as Re,bh as Ee,aa as qe}from"#entry";import{E as z,V as l,Y as $,ai as ce,_ as o,W as n,aj as fe,$ as j,a0 as q,D as e,al as He,a1 as T,j as S,aU as me,J as B,aR as Ve,a2 as O,a7 as Oe,aG as _,aa as A,ab as se,b8 as ye,aP as ee,w as te,ah as we,be as Pe,bf as Fe,bg as ue,ak as We,a as J,aT as Je,as as R,aI as he,aJ as Ie,aK as ke,at as re,Z as de,r as C,a$ as Se,am as xe,an as ge,bh as Ye,ap as Me,m as Ze,M as Ke,a5 as Qe}from"./77UvFSdd.js";import{H as Xe,I as _e}from"./C1bzPMRu.js";import{I as et}from"./CRZrAKrA.js";import{_ as L,a as tt}from"./BxD6MFcJ.js";import{C as nt}from"./Bn5R9WlL.js";import{P as at}from"./D4H6aUyZ.js";const $e=z({__name:"EditorLoader",props:{text:{},value:{}},setup(t){const{instancesStore:a}=Y(),y=S(()=>t.value===-1?t.text:`${t.text} ${t.value}/${a.totalInstanceCount}...`);return(w,i)=>t.text?(l(),$(ce,{key:0,variant:"tonal"},{default:o(()=>[n(fe,{class:"text-overline"},{default:o(()=>[j(q(e(y)),1)]),_:1}),n(He,{indeterminate:t.value===-1,"model-value":t.value,max:e(a).totalInstanceCount,height:4,color:"primary",class:"w-full"},null,8,["indeterminate","model-value","max"])]),_:1})):T("",!0)}}),Rt=z({__name:"EditorLoaderPopup",setup(t){const{instancesStore:a,stateStore:y}=Y(),w=S(()=>a.initializationPhase==="resolving"||y.initializationPhase==="calculating");return(i,v)=>e(w)?(l(),$(ce,{key:0,variant:"tonal"},{default:o(()=>[e(a).initializationPhase==="resolving"?(l(),$($e,{key:0,text:"Resolving instance inputs",value:e(a).resolvedInstanceCount},null,8,["value"])):T("",!0),e(y).initializationPhase==="calculating"?(l(),$($e,{key:1,text:"Detecting instance changes",value:e(y).calculatedInputHashCount},null,8,["value"])):T("",!0)]),_:1})):T("",!0)}}),Et=z({__name:"HubNodeWrapper",props:{id:{},type:{},selected:{type:Boolean},connectable:{type:[Boolean,Number,String,Function]},position:{},dimensions:{},label:{},isValidTargetPos:{type:Function},isValidSourcePos:{type:Function},parent:{},parentNodeId:{},dragging:{type:Boolean},resizing:{type:Boolean},zIndex:{},targetPosition:{},sourcePosition:{},dragHandle:{},data:{},events:{}},setup(t){const{stateStore:a}=Y(),y=me("contextMenu");return(w,i)=>(l(),$(Xe,{hub:t.data.hub,onContextmenu:i[0]||(i[0]=v=>e(y)?.showContextMenu(v))},{default:o(()=>[n(e(Be),{ref_key:"contextMenu",ref:y,title:"Hub",subtitle:t.data.hub.id,"is-deletable":v=>e(a).isNodeDeletable(v)},null,8,["subtitle","is-deletable"])]),_:1},8,["hub"]))}}),st={key:0},ot={class:"d-flex flex-column"},it={key:0,class:"text-caption text-medium-emphasis"},lt={key:1,class:"text-body-2 text-medium-emphasis pa-4"},rt=z({__name:"OperationPlanTree",props:{phases:{}},setup(t){const{instancesStore:a,libraryStore:y}=Y(),w=S(()=>{const p=[];for(const s of t.phases){const d={id:`phase-${s.type}`,title:`${s.type.charAt(0).toUpperCase()+s.type.slice(1)} Phase`,subtitle:`${s.instances.length} instance${s.instances.length===1?"":"s"}`,icon:r(s.type),iconColor:I(s.type),phaseType:s.type,children:[]},c=i(s.instances);d.children=c,p.push(d)}return p}),i=p=>{const s=new Map;for(const c of p)s.has(c.id)||s.set(c.id,{...c,children:[]});for(const c of p)c.parentId&&s.has(c.parentId)&&s.get(c.parentId).children.push(c);return p.filter(c=>!c.parentId||!s.has(c.parentId)).map(c=>v(c,s))},v=(p,s)=>{const d=a.instances.get(p.id),c=d?y.library.components[d.type]:null,h={id:p.id,title:c&&d?`${c.meta.title} "${d.name}"`:p.id,subtitle:p.message,icon:c?.meta.icon??"iconamoon:component",iconColor:c?.meta.iconColor,phaseType:"instance"},g=s.get(p.id);return g&&g.children.length>0&&(h.children=g.children.map(f=>v(f,s))),h},r=p=>{switch(p){case"preview":return"mdi-eye";case"destroy":return"mdi-delete";case"update":return"mdi-update";case"refresh":return"mdi-refresh";default:return"mdi-cog"}},I=p=>{switch(p){case"preview":return"secondary";case"destroy":return"error";case"update":return"primary";case"refresh":return"info";default:return"secondary"}};return(p,s)=>t.phases.length>0?(l(),B("div",st,[n(Ve,{items:e(w),"item-title":"title","item-value":"id",density:"compact","open-all":"","indent-lines":"","bg-color":"#2d2d2d"},{prepend:o(({item:d})=>[n(e(De),{icon:d.icon,color:d.iconColor,width:"20",class:"mr-2"},null,8,["icon","color"])]),title:o(({item:d})=>[O("div",ot,[O("div",{class:Oe(["text-body-2",d.phaseType==="instance"?"font-weight-regular":"font-weight-medium"])},q(d.title),3),d.subtitle?(l(),B("div",it,q(d.subtitle),1)):T("",!0)])]),_:1},8,["items"])])):(l(),B("div",lt," No changes planned for this operation. "))}}),dt={key:0},ct={class:"text-caption"},ut=z({__name:"OperationOptions",props:ee({operation:{},compositeTargetsOnly:{type:Boolean,default:!1}},{options:{default:{}},optionsModifiers:{}}),emits:["update:options"],setup(t){const a=_(t,"options"),y=S(()=>Ue(t.operation,{compositeTargetsOnly:t.compositeTargetsOnly})),w=(i,v)=>{const r=v??!1;i==="forceUpdateDependencies"&&r&&(a.value.ignoreChangedDependencies=!1,a.value.ignoreDependencies=!1),i==="ignoreChangedDependencies"&&r&&(a.value.forceUpdateDependencies=!1,a.value.ignoreDependencies=!1),i==="ignoreDependencies"&&r&&(a.value.forceUpdateDependencies=!1,a.value.ignoreChangedDependencies=!1),i==="onlyDestroyGhosts"&&r&&(a.value.firstDestroyGhosts=!1,a.value.ignoreGhosts=!1),i==="firstDestroyGhosts"&&r&&(a.value.onlyDestroyGhosts=!1,a.value.ignoreGhosts=!1),i==="ignoreGhosts"&&r&&(a.value.onlyDestroyGhosts=!1,a.value.firstDestroyGhosts=!1),a.value[i]=r};return(i,v)=>a.value?(l(),B("div",dt,[(l(!0),B(A,null,se(e(y),r=>(l(),B(A,{key:r.key},[n(ye,{"model-value":a.value[r.key],"onUpdate:modelValue":I=>w(r.key,I),class:Oe(r===e(y)[0]?"mt-2":""),label:r.label,density:"compact","hide-details":""},null,8,["model-value","onUpdate:modelValue","class","label"]),O("div",ct,q(r.description),1)],64))),128))])):T("",!0)}}),pt={class:"metadata-section"},ft={class:"options-header"},mt={class:"text-body-2 text-medium-emphasis mb-4"},vt={class:"options-scrollable"},gt={class:"plan-header"},yt={class:"plan-scrollable"},ht={key:0,class:"plan-warnings"},bt=z({__name:"InstanceOperationDialog",props:ee({instances:{},component:{},operation:{}},{visible:{type:Boolean},visibleModifiers:{}}),emits:["update:visible"],setup(t){const a=_(t,"visible"),{operationsStore:y,projectStore:w}=Y(),i=S(()=>t.instances.length>1),v=S(()=>t.instances[0]),r=C({forceUpdateDependencies:!1,ignoreDependencies:!1,ignoreChangedDependencies:!1,forceUpdateChildren:!1,onlyDestroyGhosts:!1,firstDestroyGhosts:!1,ignoreGhosts:!1,destroyDependentInstances:!1,invokeDestroyTriggers:!0,deleteUnreachableResources:!1,forceDeleteState:!1,allowPartialCompositeInstanceUpdate:!1,allowPartialCompositeInstanceDestruction:!1,refresh:!1}),I=C([]),p=C(!1),s=C(null),d=C(""),c=C(""),h=S(()=>t.instances.every(b=>b.kind==="composite"));te([()=>t.operation,()=>t.instances],()=>{t.instances.length!==0&&(d.value=i.value?je(t.operation,t.instances):Ae(t.operation,v.value),r.value={...r.value,destroyDependentInstances:t.operation==="destroy"})},{immediate:!0}),te(()=>r.value,()=>{g()},{deep:!0}),te(()=>a.value,b=>{b&&g()});const g=async()=>{if(a.value){p.value=!0,s.value=null;try{const b=await y.planOperation({projectId:w.projectId,type:t.operation,instanceIds:t.instances.map(u=>u.id),options:r.value});I.value=b}catch(b){console.error("Failed to load operation plan:",b),s.value=b instanceof Error?b.message:"Unknown error"}finally{p.value=!1}}},f=S(()=>{const b=new Set,u=new Set,U=new Set,ne=new Set,k=new Set;for(const m of I.value)for(const x of m.instances){if(k.add(x.id),m.type==="update"){b.add(x.id);continue}if(m.type==="destroy"){u.add(x.id);continue}if(m.type==="refresh"){U.add(x.id);continue}m.type==="preview"&&ne.add(x.id)}return{update:b.size,destroy:u.size,refresh:U.size,preview:ne.size,unique:k.size}}),M=S(()=>{const b=Ue(t.operation,{compositeTargetsOnly:h.value}).filter(u=>!!u.warning&&!!r.value[u.key]).map(u=>u.warning);return[...new Set(b)]}),D=b=>`${b} instance${b===1?"":"s"}`,P=S(()=>{switch(t.operation){case"update":return"Update";case"preview":return"Preview";case"refresh":return"Refresh";case"destroy":return"Destroy";case"recreate":return"Recreate";default:return"Unknown operation"}}),H=S(()=>{const b=f.value;switch(t.operation){case"update":{const{update:u}=b;return u===0?P.value:`Update ${D(u)}`}case"recreate":return b.unique===0?P.value:`Recreate ${D(b.unique)}`;case"destroy":return b.destroy===0?P.value:`Destroy ${D(b.destroy)}`;case"refresh":return b.refresh===0?P.value:`Refresh ${D(b.refresh)}`;case"preview":return b.preview===0?P.value:`Preview ${D(b.preview)}`;default:return b.unique===0?P.value:`${P.value} ${D(b.unique)}`}}),E=S(()=>{switch(t.operation){case"update":return"primary";case"preview":return"secondary";case"refresh":return"info";case"destroy":return"error";case"recreate":return"warning";default:return"primary"}}),G=C(!1),W=async()=>{G.value=!0;try{await y.launchOperation({projectId:w.projectId,type:t.operation,instanceIds:t.instances.map(b=>b.id),options:r.value,meta:{title:d.value,description:c.value}}),a.value=!1}finally{G.value=!1}},Z=S(()=>i.value?`${P.value} ${t.instances.length} instances`:t.component?`${P.value} ${t.component.meta.title} "${v.value.name}"`:`${P.value} "${v.value.name}"`);return(b,u)=>(l(),$(we,{modelValue:a.value,"onUpdate:modelValue":u[4]||(u[4]=U=>a.value=U),"max-width":"1200px",class:"operation-dialog"},{default:o(()=>[n(ce,{title:e(Z),color:t.component?.meta.color??"#2d2d2d",class:"operation-card"},{prepend:o(()=>[t.component&&!e(i)?(l(),$(e(nt),{key:0,meta:t.component.meta},null,8,["meta"])):e(i)?(l(),$(de,{key:1},{default:o(()=>[...u[5]||(u[5]=[j("mdi-format-list-bulleted",-1)])]),_:1})):(l(),$(de,{key:2},{default:o(()=>[...u[6]||(u[6]=[j("mdi-cube-outline",-1)])]),_:1}))]),default:o(()=>[n(fe,{class:"operation-card-content"},{default:o(()=>[n(Pe,{fluid:"",class:"pa-0 fill-height"},{default:o(()=>[n(Fe,{"no-gutters":"",class:"fill-height"},{default:o(()=>[n(ue,{cols:"12",md:"5",class:"pr-md-4 column-container"},{default:o(()=>[O("div",pt,[u[7]||(u[7]=O("div",{class:"text-overline mb-2"},"Metadata",-1)),n(We,{modelValue:e(d),"onUpdate:modelValue":u[0]||(u[0]=U=>J(d)?d.value=U:null),label:"Title",variant:"outlined",density:"compact",class:"mb-3",hint:"A descriptive title for this operation (optional)","persistent-hint":""},null,8,["modelValue"]),n(Je,{modelValue:e(c),"onUpdate:modelValue":u[1]||(u[1]=U=>J(c)?c.value=U:null),label:"Description",variant:"outlined",density:"compact",rows:"2",hint:"Describe the purpose of this operation (optional)","persistent-hint":""},null,8,["modelValue"])]),n(R,{class:"my-4"}),O("div",ft,[u[10]||(u[10]=O("div",{class:"text-overline mb-2"},"Options",-1)),O("p",mt,[u[8]||(u[8]=j(" Configure how the ",-1)),O("b",null,q(t.operation),1),u[9]||(u[9]=j(" operation should be executed. These options control the behavior and scope of the operation. ",-1))])]),O("div",vt,[n(ut,{options:e(r),"onUpdate:options":u[2]||(u[2]=U=>J(r)?r.value=U:null),operation:t.operation,"composite-targets-only":e(h)},null,8,["options","operation","composite-targets-only"])])]),_:1}),n(R,{vertical:"",class:"d-none d-md-flex"}),n(ue,{cols:"12",md:"7",class:"pl-md-4 column-container"},{default:o(()=>[O("div",gt,[u[11]||(u[11]=O("div",{class:"text-overline mb-2"},"Execution Plan",-1)),u[12]||(u[12]=O("p",{class:"text-body-2 text-medium-emphasis mb-4"}," Preview of instances that will be affected by this operation. The plan shows the execution phases and which instances will be processed. ",-1)),e(s)?(l(),$(he,{key:0,type:"error",variant:"outlined",density:"compact",class:"mb-3"},{default:o(()=>[j(" Failed to load operation plan: "+q(e(s)),1)]),_:1})):T("",!0)]),O("div",yt,[n(rt,{phases:e(I)},null,8,["phases"])]),e(M).length>0?(l(),B("div",ht,[(l(!0),B(A,null,se(e(M),U=>(l(),$(he,{key:U,density:"compact",type:"warning",variant:"outlined"},{default:o(()=>[j(q(U),1)]),_:2},1024))),128))])):T("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),n(Ie,null,{default:o(()=>[n(ke),n(re,{onClick:u[3]||(u[3]=U=>a.value=!1)},{default:o(()=>[...u[13]||(u[13]=[j("Cancel",-1)])]),_:1}),n(re,{color:e(E),loading:e(G),disabled:e(p),onClick:W},{default:o(()=>[j(q(e(H)),1)]),_:1},8,["color","loading","disabled"])]),_:1})]),_:1},8,["title","color"])]),_:1},8,["modelValue"]))}}),wt=be(bt,[["__scopeId","data-v-542509f5"]]),It={class:"tree-scrollable"},kt={class:"d-flex flex-column"},St={class:"text-body-2 font-weight-regular"},xt={class:"text-caption text-medium-emphasis"},Ct=z({__name:"ForgetInstanceStateDialog",props:ee({instances:{}},{visible:{type:Boolean},visibleModifiers:{}}),emits:["update:visible"],setup(t){const a=_(t,"visible"),{stateStore:y,libraryStore:w}=Y(),i=S(()=>t.instances.length>1),v=S(()=>t.instances[0]),r=C(!1),I=C(!1),p=C(!1),s=S(()=>t.instances.map(h=>{const g=w.library.components?.[h.type];return{id:h.id,title:g?`${g.meta.title} "${h.name}"`:`${h.type} "${h.name}"`,subtitle:h.id,icon:g?.meta.icon??"iconamoon:component",iconColor:g?.meta.iconColor}})),d=async()=>{r.value=!0;try{await y.forgetInstanceStates(t.instances.map(h=>h.id),I.value,p.value),a.value=!1}finally{r.value=!1}},c=S(()=>{if(t.instances.length===0)return"Forget state";if(!i.value){const h=v.value,g=w.library.components?.[h.type];return g?`Forget state of ${g.meta.title} "${h.name}"`:`Forget state of ${h.type} "${h.name}"`}return`Forget state of ${t.instances.length} instances`});return(h,g)=>(l(),$(we,{modelValue:a.value,"onUpdate:modelValue":g[3]||(g[3]=f=>a.value=f),"max-width":"1200px",class:"forget-dialog"},{default:o(()=>[n(ce,{title:e(c),color:"#2d2d2d",class:"forget-card"},{default:o(()=>[n(fe,{class:"forget-card-content"},{default:o(()=>[n(Pe,{fluid:"",class:"pa-0 fill-height"},{default:o(()=>[n(Fe,{"no-gutters":"",class:"fill-height"},{default:o(()=>[n(ue,{cols:"12",md:"5",class:"pr-md-4 column-container"},{default:o(()=>[g[5]||(g[5]=O("div",{class:"text-overline mb-2"},"Options",-1)),n(ye,{modelValue:e(I),"onUpdate:modelValue":g[0]||(g[0]=f=>J(I)?I.value=f:null),label:"Delete all secrets associated with this instance",density:"compact","hide-details":""},null,8,["modelValue"]),n(ye,{modelValue:e(p),"onUpdate:modelValue":g[1]||(g[1]=f=>J(p)?p.value=f:null),label:"Clear all terminal data associated with this instance",density:"compact","hide-details":""},null,8,["modelValue"]),n(he,{density:"compact",type:"warning",variant:"outlined",class:"mt-4 alert-auto"},{default:o(()=>[...g[4]||(g[4]=[O("div",null," No destroy operation will be performed, so all resources will be left in place and unreachable by HighState. ",-1),O("div",null," You should only use this operation when the instance is unreachable/unrecoverable and you want to start from scratch. ",-1)])]),_:1})]),_:1}),n(R,{vertical:"",class:"d-none d-md-flex"}),n(ue,{cols:"12",md:"7",class:"pl-md-4 mt-4 mt-md-0 column-container"},{default:o(()=>[g[6]||(g[6]=O("div",{class:"text-overline mb-2"},"Instances",-1)),O("div",It,[n(Ve,{items:e(s),"item-title":"title","item-value":"id",density:"compact","bg-color":"#2d2d2d",class:"forget-instance-tree"},{prepend:o(({item:f})=>[n(e(De),{icon:f.icon,color:f.iconColor,width:"20",class:"mr-2"},null,8,["icon","color"])]),title:o(({item:f})=>[O("div",kt,[O("div",St,q(f.title),1),O("div",xt,q(f.subtitle),1)])]),_:1},8,["items"])])]),_:1})]),_:1})]),_:1})]),_:1}),n(Ie,null,{default:o(()=>[n(ke),n(re,{onClick:g[2]||(g[2]=f=>a.value=!1)},{default:o(()=>[...g[7]||(g[7]=[j("Cancel",-1)])]),_:1}),n(re,{loading:e(r),onClick:d},{default:o(()=>[j(" Forget State"+q(e(i)?` (${t.instances.length})`:""),1)]),_:1},8,["loading"])]),_:1})]),_:1},8,["title"])]),_:1},8,["modelValue"]))}}),$t=be(Ct,[["__scopeId","data-v-7881a32c"]]),Dt={class:"session-list-cointainer"},Tt=z({__name:"TerminalListSubmenu",props:ee({stateId:{},terminalIds:{}},{visible:{type:Boolean},visibleModifiers:{}}),emits:["update:visible"],setup(t){const{instancesStore:a,stateStore:y}=Y(),{state:w,execute:i,isLoading:v}=y.getTerminalsState(S(()=>t.terminalIds)),{state:r,execute:I,isLoading:p}=a.getTerminalSessionsState(S(()=>t.stateId)),s=_(t,"visible");te(s,f=>{f&&(I(),i())});const d=f=>f.finishedAt?`Finished at ${new Date(f.finishedAt).toLocaleString()}`:`Started at ${new Date(f.startedAt).toLocaleString()}`,c=f=>{const M=Ye();return f.finishedAt?"#9E9E9E":M.current.value.colors.success},h=C(null),g=async f=>{h.value=f;try{await a.openTerminal(f,!0)}finally{h.value=null}};return(f,M)=>(l(),$(e(L),{icon:"mdi-console",title:"Terminals"},{append:o(()=>[n(de,{icon:"mdi-menu-right",size:"x-small"})]),default:o(()=>[n(Se,{modelValue:s.value,"onUpdate:modelValue":M[0]||(M[0]=D=>s.value=D),"open-on-focus":!1,"open-on-hover":"","close-on-content-click":!1,submenu:"",activator:"parent"},{default:o(()=>[n(xe,{density:"compact",variant:"text"},{default:o(()=>[n(ge,{class:"text-overline"},{default:o(()=>[...M[1]||(M[1]=[j("Available Terminals",-1)])]),_:1}),(l(!0),B(A,null,se(e(w),D=>(l(),$(e(L),{key:D.id,disabled:!!e(h),title:D.meta.title,subtitle:D.meta.description,"custom-icon":D.meta.icon,loading:e(h)===D.id,icon:"mdi-console",onClick:P=>g(D.id)},null,8,["disabled","title","subtitle","custom-icon","loading","onClick"]))),128)),n(R,{class:"mt-2 mb-2"}),n(ge,{class:"text-overline"},{default:o(()=>[...M[2]||(M[2]=[j("Sessions",-1)])]),_:1}),O("div",Dt,[(l(!0),B(A,null,se(e(r),D=>(l(),$(e(L),{key:D.id,title:D.meta.title,subtitle:d(D),"custom-icon":D.meta.icon,icon:"mdi-console",color:c(D),onClick:P=>e(a).openTerminalSession(D)},null,8,["title","subtitle","custom-icon","color","onClick"]))),128))]),e(r).length===0?(l(),$(ge,{key:0,class:"text-disabled"},{default:o(()=>[...M[3]||(M[3]=[j(" No sessions found ",-1)])]),_:1})):T("",!0)]),_:1})]),_:1},8,["modelValue"])]),_:1}))}}),Vt=be(Tt,[["__scopeId","data-v-7c86584d"]]),Ot=z({__name:"PageListSubmenu",props:ee({pageIds:{}},{visible:{type:Boolean},visibleModifiers:{}}),emits:["update:visible"],setup(t){const{projectStore:a,stateStore:y}=Y(),w=pe(),i=C({}),v=C(!1),r=_(t,"visible");te(r,async p=>{if(p){v.value=!0;try{i.value=await y.getPages(t.pageIds)}finally{v.value=!1}}});const I=async p=>{await w.openPage(a.projectId,p)};return(p,s)=>(l(),$(e(L),{icon:"mdi-file-document",title:"Pages"},{append:o(()=>[n(de,{icon:"mdi-menu-right",size:"x-small"})]),default:o(()=>[n(Se,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=d=>r.value=d),"open-on-focus":!1,"open-on-hover":"","close-on-content-click":!1,submenu:"",activator:"parent"},{default:o(()=>[n(xe,{density:"compact",variant:"text"},{default:o(()=>[(l(!0),B(A,null,se(t.pageIds,d=>(l(),$(e(L),{key:d,title:e(i)[d]?.meta.title??d,subtitle:e(i)[d]?.meta.description,"custom-icon":e(i)[d]?.meta.icon,disabled:!e(i)[d],icon:"mdi-file-document",onClick:c=>I(d)},null,8,["title","subtitle","custom-icon","disabled","onClick"]))),128)),e(v)?(l(),$(Me,{key:0,title:"Loading pages..."})):T("",!0)]),_:1})]),_:1},8,["modelValue"])]),_:1}))}}),Pt=z({__name:"PanelListSubmenu",props:ee({panelIds:{}},{visible:{type:Boolean},visibleModifiers:{}}),emits:["update:visible"],setup(t){const{projectStore:a,stateStore:y}=Y(),w=pe(),i=C([]),v=C(!1),r=_(t,"visible");return te(r,async I=>{if(I){v.value=!0;try{i.value=await y.getPanels(t.panelIds)}finally{v.value=!1}}}),(I,p)=>(l(),$(e(L),{icon:"mdi-view-dashboard-outline",title:"Panels"},{append:o(()=>[n(de,{icon:"mdi-menu-right",size:"x-small"})]),default:o(()=>[n(Se,{modelValue:r.value,"onUpdate:modelValue":p[0]||(p[0]=s=>r.value=s),"open-on-focus":!1,"open-on-hover":"","close-on-content-click":!1,submenu:"",activator:"parent"},{default:o(()=>[n(xe,{density:"compact",variant:"text"},{default:o(()=>[(l(!0),B(A,null,se(e(i),s=>(l(),$(e(L),{key:s.id,title:s.meta.title,subtitle:s.meta.description,"custom-icon":s.meta.icon,icon:"mdi-view-dashboard-outline",onClick:d=>e(w).openPanel(e(a).projectId,s.id)},null,8,["title","subtitle","custom-icon","onClick"]))),128)),e(v)?(l(),$(Me,{key:0,title:"Loading panels..."})):T("",!0)]),_:1})]),_:1},8,["modelValue"])]),_:1}))}}),Ft=z({__name:"InstanceContextMenu",props:{instance:{},component:{},state:{},terminalIds:{},stores:{},operation:{},locked:{type:Boolean},editable:{type:Boolean},ghost:{type:Boolean,default:!1}},setup(t,{expose:a}){const y=S(()=>t.terminalIds??t.state?.terminalIds??[]),{projectStore:w,stateStore:i,operationsStore:v}=t.stores,r=pe(),{selection:I}=Te(),p=C(!1),s=C(!1),d=C("update"),c=C([]),h=C(!1),g=C([]),f=S(()=>I.selectedInstances.length>1&&I.selectedInstances.some(m=>m.id===t.instance.id)?I.selectedInstances:[t.instance]),M=S(()=>f.value.length>1),D=(k,m,x)=>{if(x==="preview"&&(M.value||k.kind!=="unit"))return!1;const K=Ge(m?.lastOperationState?.status);switch(x){case"update":return!K;case"refresh":return ve(m)&&!K;case"preview":return!K;case"recreate":case"destroy":return ve(m)&&!K;default:return!1}},P=k=>t.ghost&&k!=="destroy"?!1:f.value.some(m=>{const x=i.instanceStates.get(m.id);return D(m,x,k)}),H=k=>t.ghost&&k!=="destroy"?!1:f.value.every(m=>{const x=i.instanceStates.get(m.id);return D(m,x,k)}),E=S(()=>f.value.some(k=>{const m=i.instanceStates.get(k.id);return ve(m)})),G=k=>{const m=f.value.length;return m===1?k==="update"?E.value?"Update":"Create":k.charAt(0).toUpperCase()+k.slice(1):k==="update"?`${E.value?"Update":"Create"} selected (${m})`:`${k.charAt(0).toUpperCase()+k.slice(1)} selected (${m})`},W=k=>{if(M.value)return"mdi-format-list-bulleted";switch(k){case"update":return E.value?"mdi-play":"mdi-rocket-launch";case"refresh":return"mdi-reload";case"preview":return"mdi-eye";case"recreate":return"mdi-restart";case"destroy":return"mdi-stop";default:return"mdi-play"}},Z=k=>{d.value=k,c.value=f.value,s.value=!0,p.value=!1,I.clearSelection()},b=()=>{g.value=f.value,h.value=!0,p.value=!1,I.clearSelection()},u=me("contextMenu"),U=async k=>{u.value&&await u.value.showContextMenu(k)},ne=async()=>{if(f.value.length!==1||t.instance.kind!=="unit"){p.value=!1;return}const k=await v.launchInstanceOperation("preview",t.instance);p.value=!1,t.state&&await r.openLogsPanel(w.projectId,k.id,t.state.id)};return a({showContextMenu:U}),(k,m)=>(l(),B(A,null,[n(e(Be),{ref_key:"contextMenu",ref:u,visible:e(p),"onUpdate:visible":m[6]||(m[6]=x=>J(p)?p.value=x:null),title:"Instance",subtitle:t.instance.id,"is-deletable":x=>t.stores.stateStore.isNodeDeletable(x)},{default:o(()=>[P("update")?(l(),$(e(L),{key:0,title:G("update"),icon:W("update"),color:"primary",disabled:t.locked||!H("update"),onClick:m[0]||(m[0]=x=>Z("update"))},null,8,["title","icon","disabled"])):T("",!0),P("refresh")?(l(),$(e(L),{key:1,title:G("refresh"),icon:W("refresh"),color:"primary",disabled:t.locked||!H("refresh"),onClick:m[1]||(m[1]=x=>Z("refresh"))},null,8,["title","icon","disabled"])):T("",!0),P("preview")?(l(),$(e(L),{key:2,title:G("preview"),icon:W("preview"),color:"secondary",disabled:t.locked||!H("preview"),onClick:ne},null,8,["title","icon","disabled"])):T("",!0),t.state?.lastOperationState?(l(),B(A,{key:3},[n(R),n(e(L),{title:"Open Logs",icon:"mdi-text",color:"primary",onClick:m[2]||(m[2]=x=>e(i).openInstanceLogs(t.instance))})],64)):T("",!0),n(R),n(e(L),{title:"View in Settings",icon:"mdi-cog",color:"primary",onClick:m[3]||(m[3]=()=>{const x=e(i).getInstanceState(t.instance.id);x&&("navigateTo"in k?k.navigateTo:e(ze))({name:"settings.instance-details",params:{projectId:e(w).projectId,stateId:x.id}}),p.value=!1})}),t.state?.id&&e(y).length>0?(l(),B(A,{key:4},[n(R),n(Vt,{"state-id":t.state.id,"terminal-ids":e(y)},null,8,["state-id","terminal-ids"])],64)):T("",!0),t.state?.pageIds?.length?(l(),B(A,{key:5},[n(R),n(Ot,{"page-ids":t.state.pageIds},null,8,["page-ids"])],64)):T("",!0),t.state?.panelIds?.length?(l(),B(A,{key:6},[n(R),n(Pt,{"panel-ids":t.state.panelIds},null,8,["panel-ids"])],64)):T("",!0),e(E)||t.ghost?(l(),B(A,{key:7},[n(R),P("recreate")?(l(),$(e(L),{key:0,title:G("recreate"),icon:W("recreate"),color:"warning",disabled:t.locked||!H("recreate"),onClick:m[4]||(m[4]=x=>Z("recreate"))},null,8,["title","icon","disabled"])):T("",!0),P("destroy")?(l(),$(e(L),{key:1,title:G("destroy"),icon:W("destroy"),color:"error",disabled:t.locked||!H("destroy"),onClick:m[5]||(m[5]=x=>Z("destroy"))},null,8,["title","icon","disabled"])):T("",!0),n(e(L),{title:e(M)?`Forget State selected (${e(f).length})`:"Forget State",icon:"mdi-delete-forever",color:"error",disabled:t.locked,onClick:b},null,8,["title","disabled"])],64)):T("",!0)]),_:1},8,["visible","subtitle","is-deletable"]),n(wt,{visible:e(s),"onUpdate:visible":m[7]||(m[7]=x=>J(s)?s.value=x:null),operation:e(d),instances:e(c),component:t.component},null,8,["visible","operation","instances","component"]),n($t,{visible:e(h),"onUpdate:visible":m[8]||(m[8]=x=>J(h)?h.value=x:null),instances:e(g)},null,8,["visible","instances"])],64))}}),Mt=[{key:"forceUpdateDependencies",label:"Force update dependencies",description:"Force update all dependencies regardless of their current state. Bypasses hash-based change detection for dependency chains.",showForOperations:["update"]},{key:"ignoreChangedDependencies",label:"Ignore changed dependencies",description:"Skip only changed dependencies. Failed or undeployed dependencies of selected instances are still included.",showForOperations:["update"]},{key:"ignoreDependencies",label:"Ignore dependencies",description:"Skip all dependencies of selected instances, including failed and undeployed prerequisites. Operate only on explicitly selected instances.",warning:"This is manual mode. The operation may fail unless every required prerequisite instance is selected explicitly.",showForOperations:["update"]},{key:"forceUpdateChildren",label:"Force update children instances",description:"Force update all children of composite instances regardless of their state. Overrides selective child inclusion logic.",showForOperations:["update"]},{key:"onlyDestroyGhosts",label:"Only destroy ghosts",description:"Skip update phase and run only ghost cleanup destroy phase for affected composite instances.",showForOperations:["update"],requiresCompositeTargets:!0},{key:"firstDestroyGhosts",label:"Destroy ghosts before update",description:"Run ghost cleanup destroy phase before update phase for affected composite instances.",showForOperations:["update"],requiresCompositeTargets:!0},{key:"ignoreGhosts",label:"Ignore ghosts",description:"Skip ghost cleanup destroy phase for update operations.",showForOperations:["update"],requiresCompositeTargets:!0},{key:"destroyDependentInstances",label:"Destroy dependent instances",description:"Include dependent instances when destroying instances. Traverses the dependency graph in reverse to prevent orphaned instances.",defaultValue:!0,showForOperations:["destroy","recreate"]},{key:"invokeDestroyTriggers",label:"Invoke destroy triggers",description:"Execute destroy triggers when destroying instances. Controls trigger execution during the destruction phase.",defaultValue:!0},{key:"deleteUnreachableResources",label:"Delete unreachable resources",description:"Delete Pulumi resources that are no longer referenced in the state. Deletes orphaned resources within individual instances.",warning:"All resources that will not be reachable at the moment of the destroy operation will be removed from the state. Only use when you are sure that these resources do not actually exist!"},{key:"forceDeleteState",label:"Force delete state",description:"Force deletion of instance state even if the destroy operation fails. Bypasses normal destroy procedures as emergency fallback.",warning:"This will delete the stack state and all resources in it even if the destroy operation failed. Use only when the stack is unrecoverable and you want to start from scratch.",showForOperations:["destroy","recreate"]},{key:"allowPartialCompositeInstanceUpdate",label:"Allow partial update of composite instances",description:"Allow update of individual composite children without requiring all siblings. When enabled, only necessary children are included.",showForOperations:["update","recreate"]},{key:"allowPartialCompositeInstanceDestruction",label:"Allow partial destruction of composite instances",description:"Allow partial destruction of composite instances during cascade operations. When enabled, cascade destruction includes only directly dependent children.",showForOperations:["destroy","recreate"]},{key:"refresh",label:"Refresh state before operation",description:"Also refresh the state of instances during the operation. Synchronizes state with actual infrastructure."},{key:"debug",label:"Enable debug logging",description:"Enable debug logging for Pulumi engine and resource providers. Sets TF_LOG=DEBUG for Terraform providers.",warning:"Debug mode may expose sensitive information including credentials in the logs. Use only when absolutely necessary for troubleshooting."}],Ue=(t,a)=>Mt.filter(y=>y.requiresCompositeTargets&&!a?.compositeTargetsOnly?!1:y.showForOperations?y.showForOperations.includes(t):!0),Ut=z({__name:"PageDialog",props:ee({meta:{},content:{}},{visible:{type:Boolean},visibleModifiers:{}}),emits:["update:visible"],setup(t){const a=_(t,"visible");return(y,w)=>(l(),$(we,{modelValue:a.value,"onUpdate:modelValue":w[1]||(w[1]=i=>a.value=i),"max-width":"80vh","max-height":"60vh"},{default:o(()=>[n(ce,{title:t.meta.title,color:"#2d2d2d"},{default:o(()=>[n(fe,{style:{"overflow-y":"scroll"}},{default:o(()=>[n(at,{content:t.content},null,8,["content"])]),_:1}),n(Ie,null,{default:o(()=>[n(ke),n(re,{onClick:w[0]||(w[0]=i=>a.value=!1)},{default:o(()=>[...w[2]||(w[2]=[j("Close",-1)])]),_:1})]),_:1})]),_:1},8,["title"])]),_:1},8,["modelValue"]))}}),qt=z({__name:"InstanceNodeWrapper",props:{id:{},type:{},selected:{type:Boolean},connectable:{type:[Boolean,Number,String,Function]},position:{},dimensions:{},label:{},isValidTargetPos:{type:Function},isValidSourcePos:{type:Function},parent:{},parentNodeId:{},dragging:{type:Boolean},resizing:{type:Boolean},zIndex:{},targetPosition:{},sourcePosition:{},dragHandle:{},data:{},events:{}},setup(t){const a=Y(),y=pe(),{projectStore:w,stateStore:i,instancesStore:v,libraryStore:r,operationsStore:I,validationStore:p}=a,s=S(()=>t.data.instance),d=S(()=>{const F=v.getInstanceComponent(s.value);if(!F)throw new Error(`component "${s.value.type}" for instance "${s.value.id}" not found in library`);return F}),c=S(()=>i.instanceStates.get(s.value.id)),h=S(()=>c.value&&i.instanceLocks.get(c.value.id)),g=S(()=>I.getLastInstanceOperation(s.value.id)),f=S(()=>v.isGhostInstance(s.value.id)),M=C(!1),D=C(!1),P=C(),H=C([]),E=C(!1),G=C(!1),W=C({}),Z=async()=>{M.value=!0;try{if(!c.value?.pageIds)return;const F=c.value.pageIds;if(!F.length)return;const V=await i.getPage(F[0]);if(!V)return;P.value=V.meta,H.value=V.content,D.value=!0}finally{M.value=!1}},b=C(!1),u=C(!1),U=S(()=>{const F=c.value?.terminalIds??[];if(d.value.kind!=="composite")return F;const V=new Set,N=new Set,Q=[],ae=X=>{for(const le of X??[])N.has(le)||(N.add(le),Q.push(le))},Ce=X=>{if(V.has(X))return;V.add(X);const le=i.instanceStates.get(X);ae(le?.terminalIds);for(const Le of v.getInstanceChildren(X))Ce(Le.id)};ae(F);for(const X of v.getInstanceChildren(s.value.id))Ce(X.id);return Q}),ne=async()=>{b.value=!0;try{if(U.value.length===0)return;await v.openTerminal(U.value[0])}finally{b.value=!1}},k=async()=>{u.value=!0;try{const F=c.value?.panelIds?.[0];if(!F)return;await y.openPanel(w.projectId,F)}finally{u.value=!1}},m=async()=>{G.value=!0;try{if(!c.value)return;const F=await a.stateStore.getInstanceSecrets(c.value.id);W.value={...F},E.value=!0}finally{G.value=!1}},x=async()=>{const F=c.value?.id??s.value.id;await y.openCompositeInstancePanel(w.projectId,F)},K=me("contextMenu"),oe=Re(),ie=C(null),Ne=F=>f.value?!1:Ee(oe,r.library,v.inputResolverOutputs,F);return te(()=>({ghost:f.value,initialized:oe.areNodesInitialized.value}),({ghost:F,initialized:V})=>{if(!V)return;const N=oe.findNode(t.id);if(N){if(!F){if(ie.value){const{connectable:Q,draggable:ae}=ie.value;oe.updateNode(t.id,()=>({connectable:Q,draggable:ae})),ie.value=null}return}ie.value||(ie.value={connectable:!!N.connectable,draggable:N.draggable??!0}),oe.updateNode(t.id,()=>({connectable:!1,draggable:!0}))}},{immediate:!0}),(F,V)=>(l(),$(_e,{"editing-secrets":e(E),"onUpdate:editingSecrets":V[1]||(V[1]=N=>J(E)?E.value=N:null),"loading-secrets":e(G),"initial-secrets":e(W),"loading-page":e(M),instance:t.data.instance,component:e(d),entities:e(r).library.entities,"project-id":e(w).projectId,"input-resolver-outputs":e(v).inputResolverOutputs,"input-resolver-dependent-map":e(v).inputResolverDependentMap,"is-valid-connection":Ne,"instance-lock":e(h),state:e(c),"terminal-ids":e(U),"loading-panel":e(u),editable:t.data.editable&&!e(f),ghost:e(f),stores:("markRaw"in F?F.markRaw:e(Ze))(e(a)),"workspace-store":e(y),"all-instances":e(v).instances,"onSave:args":V[2]||(V[2]=(N,Q,ae)=>e(v).updateInstance(N,Q,ae)),"onSave:secrets":V[3]||(V[3]=(N,Q)=>e(i).updateInstanceSecrets(N,Q)),"onOpen:secrets":m,"onOpen:terminal":ne,"onOpen:panel":k,"onOperation:launch":V[4]||(V[4]=N=>e(I).launchQuickInstanceOperation(N,t.data.instance)),"onOperation:cancel":V[5]||(V[5]=N=>e(I).cancelInstanceOperation(e(c).lastOperationState.operationId,t.data.instance.id)),onContextmenu:V[6]||(V[6]=N=>e(K)?.showContextMenu(N)),"onOpen:composite":x,"onOpen:page":Z},{status:o(()=>[n(e(et),{state:e(c),operation:e(g),"expected-input-hash":e(i).inputHashOutputs.get(e(s).id)?.inputHash,"validation-output":e(p).validationOutputs.get(e(s).id)},null,8,["state","operation","expected-input-hash","validation-output"])]),default:o(()=>[n(e(Ft),{ref_key:"contextMenu",ref:K,stores:e(a),instance:e(s),component:e(d),state:e(c),"terminal-ids":e(U),editable:t.data.editable&&!e(f),locked:!!e(h),ghost:e(f)},null,8,["stores","instance","component","state","terminal-ids","editable","locked","ghost"]),e(P)?(l(),$(e(Ut),{key:0,visible:e(D),"onUpdate:visible":V[0]||(V[0]=N=>J(D)?D.value=N:null),meta:e(P),content:e(H)},null,8,["visible","meta","content"])):T("",!0)]),_:1},8,["editing-secrets","loading-secrets","initial-secrets","loading-page","instance","component","entities","project-id","input-resolver-outputs","input-resolver-dependent-map","instance-lock","state","terminal-ids","loading-panel","editable","ghost","stores","workspace-store","all-instances"]))}}),Be=z({__name:"NodeContextMenu",props:ee({title:{},subtitle:{},isDeletable:{type:Function}},{visible:{type:Boolean,default:!1},visibleModifiers:{}}),emits:["update:visible"],setup(t,{expose:a}){const{selection:y,vueFlowStore:w,deleteNodes:i}=Te(),v=_(t,"visible"),r=qe(),I=me("contextMenu"),p=async h=>{I.value&&await I.value.showContextMenu(h)},{off:s}=w.onViewportChange(()=>{v.value=!1});Ke(()=>{s(),v.value=!1}),a({showContextMenu:p});const d=S(()=>t.isDeletable(r.node)?y.selectedNodeIds.has(r.id)?Array.from(y.selectedNodes).filter(t.isDeletable):[r.node]:[]),c=S(()=>d.value.length===1?"Delete":`Delete selected (${d.value.length})`);return(h,g)=>(l(),$(tt,{ref_key:"contextMenu",ref:I,visible:v.value,"onUpdate:visible":g[1]||(g[1]=f=>v.value=f),title:t.title,subtitle:t.subtitle},{default:o(()=>[h.$slots.default?(l(),B(A,{key:0},[n(R),Qe(h.$slots,"default")],64)):T("",!0),e(d).length>0?(l(),B(A,{key:1},[n(R),n(L,{title:e(c),icon:"mdi-delete",color:"error",onClick:g[0]||(g[0]=f=>e(i)(e(d)))},null,8,["title"])],64)):T("",!0)]),_:3},8,["visible","title","subtitle"]))}});export{Rt as _,Et as a,qt as b,Ft as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as v,i as k,v as I,t as b}from"#entry";import{_ as A}from"./DvCXikgN.js";import{_ as y}from"./DTYY2tCY.js";import{_ as w}from"./iJghVVcV.js";import{_ as d,I as S}from"./B9BJCsIg.js";import{S as C}from"./C5DRPdxC.js";import{D as P,a as g}from"./hunqYsQf.js";import{E as D,aO as r,Y as V,_ as a,D as e,V as $,W as n,at as x,$ as c,ao as z,a0 as p}from"./77UvFSdd.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./BxvmPvww.js";import"./fbfpKHgl.js";import"./BgvYz3Nr.js";const F=D({__name:"[panelId]",props:{params:{}},async setup(m){let i,o;const{settingsStore:u,projectStore:s}=v(),f=k();s.initializing?([i,o]=r(()=>b(()=>s.initialized).toBe(!0)),await i,o(),s.addLibraryRoot()):([i,o]=r(()=>s.initialize1()),await i,o(),[i,o]=r(()=>s.initialize2()),await i,o());const t=([i,o]=r(()=>u.getPanelDetails(m.params.panelId)),i=await i,o(),i);if(!t)throw I({statusCode:404,statusMessage:"Panel not found"});const _=[{key:"panelId",label:"Panel ID"},{key:"name",label:"Name"},{key:"status",label:"Status"},{key:"instance",label:"Instance"},{key:"serviceAccount",label:"Service Account"},{key:"workerVersion",label:"Worker Version"},{key:"createdAt",label:"Created"},{key:"updatedAt",label:"Last Updated"}];return(B,l)=>($(),V(e(g),null,{default:a(()=>[n(C,{meta:e(t).meta,"fallback-icon":"mdi-view-dashboard-outline",title:e(t).meta.title,description:e(t).meta.description},{actions:a(()=>[n(x,{variant:"outlined","prepend-icon":"mdi-open-in-new",disabled:!e(t).online,onClick:l[0]||(l[0]=O=>e(f).openPanel(m.params.projectId,e(t).id))},{default:a(()=>[...l[1]||(l[1]=[c(" Open Panel ",-1)])]),_:1},8,["disabled"])]),_:1},8,["meta","title","description"]),n(e(P),{title:"Panel Details",items:_},{"item.panelId":a(()=>[n(e(S),{value:e(t).id},null,8,["value"])]),"item.name":a(()=>[c(p(e(t).name),1)]),"item.status":a(()=>[n(z,{color:e(t).online?"success":void 0,"prepend-icon":e(t).online?"mdi-access-point":"mdi-access-point-off",size:"small",variant:"tonal"},{default:a(()=>[c(p(e(t).online?"Online":"Offline"),1)]),_:1},8,["color","prepend-icon"])]),"item.instance":a(()=>[n(e(y),{item:{stateId:e(t).stateId}},null,8,["item"])]),"item.serviceAccount":a(()=>[n(e(A),{item:{serviceAccountId:e(t).serviceAccountId,serviceAccountMeta:e(t).serviceAccountMeta}},null,8,["item"])]),"item.workerVersion":a(()=>[n(e(w),{item:e(t)},null,8,["item"])]),"item.createdAt":a(()=>[n(e(d),{value:e(t).createdAt},null,8,["value"])]),"item.updatedAt":a(()=>[n(e(d),{value:e(t).updatedAt},null,8,["value"])]),_:1})]),_:1}))}});export{F as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as N,
|
|
1
|
+
import{E as N,aU as h,aO as P,H as D,w as E,D as a,V as k,Y as S,_ as t,a5 as J,a3 as L,J as b,W as s,ai as C,aj as I,aL as U,Z as f,$ as r,a2 as m,aV as R,a as W,aJ as $,aK as _,at as T,a1 as q,r as v,n as H,j as M}from"./77UvFSdd.js";import{J as O,i as Y,t as Z,m as g,_ as z}from"#entry";import{_ as G,D as B,a as Q}from"./Bcyj9glE.js";const X=""+new URL("hira-unlock-impossible.B5Pl3pvF.png",import.meta.url).href,ee={key:1,class:"password-prompt-container"},te={key:2,class:"password-prompt-container"},se={key:3,class:"mt-4 text-center text-uppercase text-disabled"},ae=N({__name:"ProjectContainer",props:{projectId:{},canUnlock:{type:Boolean}},async setup(i){let l,y;const x=h("passwordField"),u=v(""),n=v(null),w=v(!1),c=([l,y]=P(()=>O.async(i.projectId)),l=await l,y(),l),A=Y(),p=v(!1),j=async()=>{if(p.value)return;p.value=!0;const o=new B;o.addIdentity(new Q);try{await c.unlock(o)}catch(e){g.error({error:e},"failed to unlock project with passkey"),n.value="An error occurred while unlocking the project with passkey"}finally{p.value=!1}},d=([l,y]=P(()=>Z(()=>c.unlockState).not.toBeUndefined()),l=await l,y(),l);d.type==="locked"&&d.unlockSuite?.hasPasskey&&A.dockview?.activePanel?.params?.projectId===i.projectId&&(g.info('attempting passkey unlock for project "%s"',i.projectId),j()),D(()=>{x.value&&d.type==="locked"&&!d.unlockSuite?.hasPasskey&&x.value.textField?.focus()}),E(u,()=>{n.value=null});const V=async()=>{w.value=!0,await H();try{const o=new B;o.addPassphrase(u.value),await c.unlock(o)||(n.value="The password is incorrect")}catch(o){g.error({error:o},"failed to unlock project"),n.value="An error occurred while unlocking the project"}finally{w.value=!1}},F=M(()=>[o=>!!o||"Password is required"]);return(o,e)=>a(c).unlockState?.type==="unlocked"?(k(),S(L,{key:0},{default:t(()=>[J(o.$slots,"default",{},void 0,!0)]),_:3})):i.canUnlock&&a(c).isUnlockImpossible?(k(),b("div",ee,[s(C,{variant:"text"},{default:t(()=>[s(I,null,{default:t(()=>[s(U,{class:"text-center text-disabled text-uppercase"},{default:t(()=>[s(f,{color:"error"},{default:t(()=>[...e[1]||(e[1]=[r("mdi-lock",-1)])]),_:1}),e[2]||(e[2]=m("br",null,null,-1)),e[3]||(e[3]=r(" No unlock method available! ",-1)),e[4]||(e[4]=m("br",null,null,-1)),e[5]||(e[5]=r(" The decryption of state is impossible! ",-1)),e[6]||(e[6]=m("br",null,null,-1)),e[7]||(e[7]=r(" Try to restore the state from backup or ask for help... ",-1))]),_:1}),e[8]||(e[8]=m("div",{class:"text-center mt-4"},[m("img",{src:X,class:"mascot-image"})],-1))]),_:1})]),_:1})])):i.canUnlock?(k(),b("div",te,[s(C,{width:"460",variant:"text"},{default:t(()=>[s(I,null,{default:t(()=>[s(U,{class:"text-center text-disabled text-uppercase"},{default:t(()=>[s(f,null,{default:t(()=>[...e[9]||(e[9]=[r("mdi-lock",-1)])]),_:1}),e[10]||(e[10]=r(" The project is locked ",-1))]),_:1}),s(a(G),{ref_key:"passwordField",ref:x,modelValue:a(u),"onUpdate:modelValue":e[0]||(e[0]=K=>W(u)?u.value=K:null),class:"mt-4",label:"Password",hint:"Enter the password to unlock the project","persistent-hint":"",rules:a(F),"error-messages":a(n)?[a(n)]:[],onKeydown:R(V,["enter"])},null,8,["modelValue","rules","error-messages"])]),_:1}),s($,null,{default:t(()=>[s(_),a(d).type==="locked"&&a(d).unlockSuite?.hasPasskey?(k(),S(T,{key:0,color:"secondary",loading:a(p),disabled:a(p),onClick:j},{default:t(()=>[s(f,null,{default:t(()=>[...e[11]||(e[11]=[r("mdi-fingerprint",-1)])]),_:1})]),_:1},8,["loading","disabled"])):q("",!0),s(T,{color:"primary",loading:a(w),disabled:a(w),onClick:V},{default:t(()=>[s(f,{class:"mr-2"},{default:t(()=>[...e[12]||(e[12]=[r("mdi-lock-open",-1)])]),_:1}),e[13]||(e[13]=r(" Unlock ",-1))]),_:1},8,["loading","disabled"])]),_:1})]),_:1})])):(k(),b("div",se,[s(f,null,{default:t(()=>[...e[14]||(e[14]=[r("mdi-lock",-1)])]),_:1}),e[15]||(e[15]=r(" The project is locked ",-1))]))}}),ne=z(ae,[["__scopeId","data-v-71f68704"]]);export{ne as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as a}from"#entry";import{E as o}from"./
|
|
1
|
+
import{s as a}from"#entry";import{E as o}from"./BxvmPvww.js";import{E as r,V as i,Y as n,D as c}from"./77UvFSdd.js";const f=r({__name:"ServiceAccountRefChip",props:{item:{}},setup(e){const{projectStore:t}=a();return(s,m)=>(i(),n(c(o),{id:e.item.serviceAccountId,meta:e.item.serviceAccountMeta,"fallback-icon":"mdi-account-circle","page-name":"settings.service-account-details","page-params":{projectId:c(t).projectId,serviceAccountId:e.item.serviceAccountId}},null,8,["id","meta","page-params"]))}});export{f as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{x as H,m as q,y as W,z as $,A as K,B as T,C as Q,s as D,v as M,t as C,n as Y}from"#entry";import{E as z,V as F,Y as L,D as e,_ as n,W as o,n as O,aO as U,at as J,$ as R,a2 as E,a0 as X,ai as Z,aL as _,aj as ee,aQ as te,a1 as ae}from"./77UvFSdd.js";import{I as x}from"./B9BJCsIg.js";import{S as se}from"./C5DRPdxC.js";import{D as oe,a as ie}from"./hunqYsQf.js";import{O as ne}from"./O3nsZ-Uz.js";import{_ as b}from"./BbWhHw7B.js";import{_ as re}from"./BBmoak6l.js";import{_ as le}from"./DzowYWbi.js";import{_ as de}from"./3T5CmBSF.js";import{_ as ue}from"./B1x03f8R.js";import{_ as pe}from"./DYYyOkJe.js";import{_ as me}from"./D2lHwbtX.js";import{_ as ge}from"./B2CVdECd.js";import{G as ve,H as ce,I as fe}from"./C1bzPMRu.js";import{u as ye}from"./CiaugisX.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./fbfpKHgl.js";import"./BgvYz3Nr.js";import"./D1BdWMiq.js";import"./CCBTuGSI.js";import"./M3Z1JMP1.js";import"./CWA5Cfde.js";import"./DvCXikgN.js";import"./BxvmPvww.js";import"./DTYY2tCY.js";import"./m4Sxwg8n.js";import"./DRTFVhVr.js";import"./iJghVVcV.js";import"./DfvKjH24.js";import"./BxAss8Tj.js";import"./Bn5R9WlL.js";import"./DPQHj1GW.js";import"./rpHuDh4d.js";import"./YpnHruhZ.js";const Pe=z({__name:"PreviewCanvas",props:{instances:{},hubs:{default:()=>[]},components:{},entities:{},autoPosition:{type:Boolean,default:!0},interactive:{type:Boolean,default:!1}},emits:["ready"],setup(s,{emit:d}){const u=d,y=H.createId(),w=q.child({customCanvasId:y}),{outputs:B,dependentMap:j,set:P,dispatchInitialNodes:S}=W("InputResolver",w,Q,!0),h=async i=>{i.nodeFactory.createNodesForModels(s.instances,s.hubs,{readonly:!0});for(const r of s.instances){const k=s.components[r.type];P(`instance:${r.id}`,{kind:"instance",instance:r,component:k,entities:s.entities})}for(const r of s.hubs)P(`hub:${r.id}`,{kind:"hub",hub:r,entities:s.entities});const I=[S()];s.autoPosition?I.push($(i.vueFlowStore).then(()=>K(i.vueFlowStore)).then(()=>i.vueFlowStore.fitView()).then(()=>O()).then(()=>T(i.vueFlowStore,i.onNodesMoved,i.edgeEndpointOffsets))):I.push($(i.vueFlowStore).then(()=>i.vueFlowStore.fitView()).then(()=>O()).then(()=>T(i.vueFlowStore,i.onNodesMoved,i.edgeEndpointOffsets))),await Promise.all(I),u("ready")};return(i,I)=>(F(),L(ve,{"canvas-id":["custom",e(y)],onInit:h,"input-resolver-outputs":e(B),components:s.components,entities:s.entities,minimap:!1,interactive:s.interactive},{"node-instance":n(({data:r})=>[o(e(fe),{instance:r.instance,component:s.components[r.instance.type],entities:s.entities,"input-resolver-outputs":e(B),"input-resolver-dependent-map":e(j),editable:""},null,8,["instance","component","entities","input-resolver-outputs","input-resolver-dependent-map"])]),"node-hub":n(({data:r})=>[o(ce,{hub:r.hub},null,8,["hub"])]),_:1},8,["canvas-id","input-resolver-outputs","components","entities","interactive"]))}}),Ie={class:"d-flex ga-6",style:{"min-height":"400px"}},be={class:"text-body-2 text-capitalize"},st=z({__name:"[stateId]",props:{params:{}},async setup(s){let d,u;const{settingsStore:y,instancesStore:w,stateStore:B,libraryStore:j}=D(),{projectStore:P}=D(),S=ye.ensureCreated(s.params.projectId);P.initializing?([d,u]=U(()=>C(()=>P.initialized).toBe(!0)),await d,u(),P.addLibraryRoot()):([d,u]=U(()=>P.initialize1()),await d,u(),[d,u]=U(()=>P.initialize2()),await d,u()),[d,u]=U(()=>C(()=>w.initializationPhase!=="loading").toBe(!0)),await d,u(),[d,u]=U(()=>C(()=>B.statesLoaded).toBe(!0)),await d,u();const h=B.getStateByStateId(s.params.stateId)?.instanceId;if(!h)throw M({statusCode:404,statusMessage:"Instance not found for the given state ID"});const i=w.instances.get(h);if(!i)throw M({statusCode:404,statusMessage:"Instance not found"});const I=j.library.components[i.type],r=I?.meta,k=[{key:"instanceId",label:"Instance ID"},{key:"stateId",label:"State ID"},{key:"type",label:"Component Type"},{key:"kind",label:"Kind"}],A=j.library.components,G=j.library.entities,p=y.terminalsForState(s.params.stateId),m=y.secretsForState(s.params.stateId),g=y.pagesForState(s.params.stateId),v=y.panelsForState(s.params.stateId),c=y.triggersForState(s.params.stateId),f=y.artifactsForState(s.params.stateId),V=B.instanceStates.get(h)?.lastOperationState?.operationId,l=V?y.entitySnapshotsForInstanceOperation(s.params.stateId,V):null;return p.load(),m.load(),g.load(),v.load(),c.load(),f.load(),l&&l.load(),(N,t)=>(F(),L(e(ie),null,{default:n(()=>[o(se,{meta:e(r),"fallback-icon":"mdi-cube-outline",title:e(I).meta.title,description:e(i).name},{actions:n(()=>[o(J,{variant:"outlined","prepend-icon":"mdi-vector-square",onClick:t[0]||(t[0]=()=>{e(S).requestInstanceFocus(e(i).id),("navigateTo"in N?N.navigateTo:e(Y))({name:"project",params:{projectId:s.params.projectId}})})},{default:n(()=>[...t[29]||(t[29]=[R(" View in Canvas ",-1)])]),_:1})]),_:1},8,["meta","title","description"]),E("div",Ie,[o(e(oe),{title:"Instance Details",items:k,style:{flex:"1"}},{"item.instanceId":n(()=>[o(e(x),{truncate:!1,value:e(i).id},null,8,["value"])]),"item.stateId":n(()=>[o(e(x),{truncate:!1,value:s.params.stateId},null,8,["value"])]),"item.type":n(()=>[o(e(x),{truncate:!1,value:e(i).type},null,8,["value"])]),"item.kind":n(()=>[E("div",be,X(e(i).kind),1)]),_:1}),o(Z,{style:{flex:"1",border:"solid 2px #2d2d2d"},elevation:0},{default:n(()=>[o(_,{class:"d-flex align-center"},{default:n(()=>[...t[30]||(t[30]=[R("Preview",-1)])]),_:1}),o(ee,{class:"pa-0",style:{height:"350px"}},{default:n(()=>[o(e(Pe),{instances:[e(i)],hubs:[],components:e(A),entities:e(G),"auto-position":!1},null,8,["instances","components","entities"])]),_:1})]),_:1})]),o(te,{elevation:0},{default:n(()=>[o(e(ne),{title:"Instance Model",data:e(i)},null,8,["data"]),o(e(b),{title:"Terminals",icon:"mdi-console",count:e(p).data.value.total},{default:n(()=>[o(e(re),{search:e(p).search.value,"onUpdate:search":t[1]||(t[1]=a=>e(p).search.value=a),"sort-by":e(p).sortBy.value,"onUpdate:sortBy":t[2]||(t[2]=a=>e(p).sortBy.value=a),page:e(p).page.value,"onUpdate:page":t[3]||(t[3]=a=>e(p).page.value=a),"items-per-page":e(p).itemsPerPage.value,"onUpdate:itemsPerPage":t[4]||(t[4]=a=>e(p).itemsPerPage.value=a),"project-id":s.params.projectId,data:e(p).data.value,loading:e(p).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),o(e(b),{title:"Secrets",icon:"mdi-key-variant",count:e(m).data.value.total},{default:n(()=>[o(e(le),{search:e(m).search.value,"onUpdate:search":t[5]||(t[5]=a=>e(m).search.value=a),"sort-by":e(m).sortBy.value,"onUpdate:sortBy":t[6]||(t[6]=a=>e(m).sortBy.value=a),page:e(m).page.value,"onUpdate:page":t[7]||(t[7]=a=>e(m).page.value=a),"items-per-page":e(m).itemsPerPage.value,"onUpdate:itemsPerPage":t[8]||(t[8]=a=>e(m).itemsPerPage.value=a),"project-id":s.params.projectId,data:e(m).data.value,loading:e(m).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),o(e(b),{title:"Pages",icon:"mdi-file-document-outline",count:e(g).data.value.total},{default:n(()=>[o(e(de),{search:e(g).search.value,"onUpdate:search":t[9]||(t[9]=a=>e(g).search.value=a),"sort-by":e(g).sortBy.value,"onUpdate:sortBy":t[10]||(t[10]=a=>e(g).sortBy.value=a),page:e(g).page.value,"onUpdate:page":t[11]||(t[11]=a=>e(g).page.value=a),"items-per-page":e(g).itemsPerPage.value,"onUpdate:itemsPerPage":t[12]||(t[12]=a=>e(g).itemsPerPage.value=a),"project-id":s.params.projectId,data:e(g).data.value,loading:e(g).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),o(e(b),{title:"Panels",icon:"mdi-view-dashboard-outline",count:e(v).data.value.total},{default:n(()=>[o(e(ue),{search:e(v).search.value,"onUpdate:search":t[13]||(t[13]=a=>e(v).search.value=a),"sort-by":e(v).sortBy.value,"onUpdate:sortBy":t[14]||(t[14]=a=>e(v).sortBy.value=a),page:e(v).page.value,"onUpdate:page":t[15]||(t[15]=a=>e(v).page.value=a),"items-per-page":e(v).itemsPerPage.value,"onUpdate:itemsPerPage":t[16]||(t[16]=a=>e(v).itemsPerPage.value=a),"project-id":s.params.projectId,data:e(v).data.value,loading:e(v).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),o(e(b),{title:"Triggers",icon:"mdi-lightning-bolt",count:e(c).data.value.total},{default:n(()=>[o(e(pe),{search:e(c).search.value,"onUpdate:search":t[17]||(t[17]=a=>e(c).search.value=a),"sort-by":e(c).sortBy.value,"onUpdate:sortBy":t[18]||(t[18]=a=>e(c).sortBy.value=a),page:e(c).page.value,"onUpdate:page":t[19]||(t[19]=a=>e(c).page.value=a),"items-per-page":e(c).itemsPerPage.value,"onUpdate:itemsPerPage":t[20]||(t[20]=a=>e(c).itemsPerPage.value=a),"project-id":s.params.projectId,data:e(c).data.value,loading:e(c).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),o(e(b),{title:"Artifacts",icon:"mdi-package-variant",count:e(f).data.value.total},{default:n(()=>[o(e(me),{search:e(f).search.value,"onUpdate:search":t[21]||(t[21]=a=>e(f).search.value=a),"sort-by":e(f).sortBy.value,"onUpdate:sortBy":t[22]||(t[22]=a=>e(f).sortBy.value=a),page:e(f).page.value,"onUpdate:page":t[23]||(t[23]=a=>e(f).page.value=a),"items-per-page":e(f).itemsPerPage.value,"onUpdate:itemsPerPage":t[24]||(t[24]=a=>e(f).itemsPerPage.value=a),"project-id":s.params.projectId,data:e(f).data.value,loading:e(f).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),e(l)?(F(),L(e(b),{key:0,title:"Entities",icon:"mdi-database",count:e(l).data.value.total},{default:n(()=>[o(e(ge),{search:e(l).search.value,"onUpdate:search":t[25]||(t[25]=a=>e(l).search.value=a),"sort-by":e(l).sortBy.value,"onUpdate:sortBy":t[26]||(t[26]=a=>e(l).sortBy.value=a),page:e(l).page.value,"onUpdate:page":t[27]||(t[27]=a=>e(l).page.value=a),"items-per-page":e(l).itemsPerPage.value,"onUpdate:itemsPerPage":t[28]||(t[28]=a=>e(l).itemsPerPage.value=a),"project-id":s.params.projectId,data:e(l).data.value,loading:e(l).isLoading.value,"fallback-icon-meta":e(r),"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","fallback-icon-meta"])]),_:1},8,["count"])):ae("",!0)]),_:1})]),_:1}))}});export{st as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as r,S as u}from"./
|
|
1
|
+
import{b as r,S as u}from"./CCBTuGSI.js";import"#entry";import{_ as c}from"./CWA5Cfde.js";import"./C5DRPdxC.js";import{_ as h}from"./m4Sxwg8n.js";import{S as f}from"./DRTFVhVr.js";import{E as P,aG as s,V as y,Y as v,D as i,_ as o,W as d,aP as B}from"./77UvFSdd.js";const V=P({__name:"SecretsTable",props:B({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(a){const n=s(a,"search"),m=s(a,"sortBy"),l=s(a,"page"),g=s(a,"itemsPerPage"),p=[{...r.name,headerProps:{defaultPrimaryIcon:"mdi:key"}},r.id,{key:"owner",title:"Owner"},r.createdAt,{title:"Value",key:"value"},r.actions];return(b,t)=>(y(),v(i(u),{search:n.value,"onUpdate:search":t[0]||(t[0]=e=>n.value=e),"sort-by":m.value,"onUpdate:sortBy":t[1]||(t[1]=e=>m.value=e),page:l.value,"onUpdate:page":t[2]||(t[2]=e=>l.value=e),"items-per-page":g.value,"onUpdate:itemsPerPage":t[3]||(t[3]=e=>g.value=e),headers:p,data:a.data,loading:a.loading,"hide-header":a.hideHeader,height:a.height},{"item.owner":o(({item:e})=>[d(i(c),{item:e},null,8,["item"])]),"item.value":o(({item:e})=>[d(i(f),{"secret-id":e.id,"project-id":a.projectId},null,8,["secret-id","project-id"])]),"item.actions":o(({item:e})=>[d(i(h),{"page-name":"settings.secret-details","page-params":{projectId:a.projectId,secretId:e.id}},null,8,["page-params"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}});export{V as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as u,v as y,t as b,_ as C}from"#entry";import{E as I,aO as m,Y as g,_ as s,D as e,V as f,W as o,a2 as _,a0 as A,aQ as k,ai as w,aL as x,$ as V,aj as D,a1 as B}from"./
|
|
1
|
+
import{s as u,v as y,t as b,_ as C}from"#entry";import{E as I,aO as m,Y as g,_ as s,D as e,V as f,W as o,a2 as _,a0 as A,aQ as k,ai as w,aL as x,$ as V,aj as D,a1 as B}from"./77UvFSdd.js";import{_ as j}from"./CWA5Cfde.js";import{_ as v,I as N}from"./B9BJCsIg.js";import{S}from"./C5DRPdxC.js";import{D as U,a as L}from"./hunqYsQf.js";import{_ as $}from"./BbWhHw7B.js";import{_ as h}from"./D2lHwbtX.js";import{P as z}from"./D4H6aUyZ.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./DvCXikgN.js";import"./BxvmPvww.js";import"./fbfpKHgl.js";import"./DTYY2tCY.js";import"./BgvYz3Nr.js";import"./CCBTuGSI.js";import"./m4Sxwg8n.js";const T={class:"text-body-2"},E={class:"page-content-container"},O=I({__name:"[pageId]",props:{params:{}},async setup(p){let t,r;const{settingsStore:c}=u(),{projectStore:d}=u();d.initializing?([t,r]=m(()=>b(()=>d.initialized).toBe(!0)),await t,r(),d.addLibraryRoot()):([t,r]=m(()=>d.initialize1()),await t,r(),[t,r]=m(()=>d.initialize2()),await t,r());const a=([t,r]=m(()=>c.getPageDetails(p.params.pageId)),t=await t,r(),t);if(!a)throw y({statusCode:404,statusMessage:"Page not found"});const i=c.artifactsForPage(p.params.pageId);[t,r]=m(()=>i.load()),await t,r();const P=[{key:"pageId",label:"Page ID"},{key:"name",label:"Name"},{key:"serviceAccount",label:"Owner"},{key:"createdAt",label:"Created"},{key:"updatedAt",label:"Last Updated"}];return(F,n)=>(f(),g(e(L),null,{default:s(()=>[o(S,{meta:e(a).meta,"fallback-icon":"mdi-file-document-outline",title:e(a).meta.title||e(a).name||"Unnamed Page",description:e(a).meta.description},null,8,["meta","title","description"]),o(e(U),{title:"Page Details",items:P},{"item.pageId":s(()=>[o(e(N),{value:e(a).id},null,8,["value"])]),"item.name":s(()=>[_("div",T,A(e(a).name||"N/A"),1)]),"item.serviceAccount":s(()=>[o(e(j),{item:e(a)},null,8,["item"])]),"item.createdAt":s(()=>[o(e(v),{value:e(a).createdAt},null,8,["value"])]),"item.updatedAt":s(()=>[o(e(v),{value:e(a).updatedAt},null,8,["value"])]),_:1}),o(k,{elevation:0},{default:s(()=>[o(e($),{title:"Artifacts",icon:"mdi-package-variant",count:e(i).data.value.total},{default:s(()=>[o(e(h),{search:e(i).search.value,"onUpdate:search":n[0]||(n[0]=l=>e(i).search.value=l),"sort-by":e(i).sortBy.value,"onUpdate:sortBy":n[1]||(n[1]=l=>e(i).sortBy.value=l),page:e(i).page.value,"onUpdate:page":n[2]||(n[2]=l=>e(i).page.value=l),"items-per-page":e(i).itemsPerPage.value,"onUpdate:itemsPerPage":n[3]||(n[3]=l=>e(i).itemsPerPage.value=l),"project-id":p.params.projectId,data:e(i).data.value,loading:e(i).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"])]),_:1}),e(a).content&&e(a).content.length>0?(f(),g(w,{key:0,class:"content-card",color:"#2d2d2d","bg-color":"#1e1e1e"},{default:s(()=>[o(x,null,{default:s(()=>[...n[4]||(n[4]=[V("Page Content",-1)])]),_:1}),o(D,null,{default:s(()=>[_("div",E,[o(e(z),{content:e(a).content},null,8,["content"])])]),_:1})]),_:1})):B("",!0)]),_:1}))}}),re=C(O,[["__scopeId","data-v-a7e23b29"]]);export{re as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as r,s as c}from"./
|
|
1
|
+
import{V as r,s as c}from"./D1BdWMiq.js";import{_ as d}from"#entry";import{E as u,V as g,Y as f,aZ as m,_ as a,a2 as t,W as o,D as n,a6 as h,$ as l,a0 as s,Z as x,j as y}from"./77UvFSdd.js";import"./C5DRPdxC.js";const V={class:"d-flex align-center"},p=u({__name:"ObjectCodeBlock",props:{title:{},data:{},language:{default:"yaml"},height:{default:"400px"},icon:{default:"mdi-code-json"}},setup(e){const i=y(()=>e.language==="json"?JSON.stringify(e.data,null,2):c(e.data,null,2));return(j,k)=>(g(),f(m,{color:"#2d2d2d","bg-color":"#1e1e1e"},{title:a(()=>[t("div",V,[o(x,{class:"mr-2"},{default:a(()=>[l(s(e.icon),1)]),_:1}),l(" "+s(e.title),1)])]),text:a(()=>[t("div",{class:"editor",style:h({height:e.height})},[o(n(r),{value:n(i),language:e.language,theme:"dark-plus",class:"editor",options:{readOnly:!0,tabSize:2,wordWrap:"on",folding:!0,automaticLayout:!0}},null,8,["value","language"])],4)]),_:1}))}}),b=d(p,[["__scopeId","data-v-210f2ea8"]]);export{b as O};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as L,a as N}from"./DfvKjH24.js";import{s as w,N as O,t as _,b8 as H,v as G,_ as K}from"#entry";import{_ as Z,I as R}from"./B9BJCsIg.js";import{S as J}from"./C5DRPdxC.js";import{D as Q,a as W}from"./hunqYsQf.js";import{O as Y}from"./O3nsZ-Uz.js";import{_ as U}from"./BbWhHw7B.js";import{E as z,aG as B,V as h,Y as x,D as t,_ as l,W as r,a2 as f,a1 as P,a0 as E,J as F,aP as q,aO as j,B as C,w as X,j as D,aa as tt,aQ as et,aZ as at,Z as it,$ as T}from"./77UvFSdd.js";import{E as ot}from"./BxvmPvww.js";import{_ as nt}from"./DTYY2tCY.js";import{S as st}from"./CCBTuGSI.js";import{C as $}from"./Bn5R9WlL.js";import{_ as rt}from"./m4Sxwg8n.js";import{_ as lt}from"./B2CVdECd.js";import{_ as dt}from"./YpnHruhZ.js";import"./BxAss8Tj.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./fbfpKHgl.js";import"./BgvYz3Nr.js";import"./D1BdWMiq.js";const pt={class:"d-flex align-center ga-3"},ut={class:"d-flex flex-column"},mt={class:"text-body-2 font-weight-medium"},ct={key:0,class:"text-caption text-medium-emphasis"},yt={class:"d-flex align-center ga-3"},gt={class:"d-flex flex-column"},vt={class:"text-body-2 font-weight-medium"},ft={key:0,class:"text-caption text-medium-emphasis"},V=z({__name:"EntityReferencesTable",props:q({projectId:{},direction:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(s){const c=B(s,"search"),y=B(s,"sortBy"),g=B(s,"page"),S=B(s,"itemsPerPage"),{libraryStore:I}=w(),b=[{key:s.direction==="outgoing"?"to":"from",title:"Entity"},{key:"group",title:"Group"},{key:"actions",title:"Actions",align:"center"}],m=u=>s.direction==="outgoing"?u.toEntityId:u.fromEntityId,d=u=>s.direction==="outgoing"?u.toEntityType:u.fromEntityType,p=u=>s.direction==="outgoing"?u.toEntityMeta:u.fromEntityMeta,i=u=>L({entities:I.library.entities,entityType:d(u),meta:p(u)});return(u,v)=>(h(),x(t(st),{search:c.value,"onUpdate:search":v[0]||(v[0]=o=>c.value=o),"sort-by":y.value,"onUpdate:sortBy":v[1]||(v[1]=o=>y.value=o),page:g.value,"onUpdate:page":v[2]||(v[2]=o=>g.value=o),"items-per-page":S.value,"onUpdate:itemsPerPage":v[3]||(v[3]=o=>S.value=o),headers:b,data:s.data,loading:s.loading,"hide-header":s.hideHeader,height:s.height},{"item.from":l(({item:o})=>[f("div",pt,[i(o).metaForIcon?(h(),x(t($),{key:0,meta:i(o).metaForIcon,size:24},null,8,["meta"])):P("",!0),f("div",ut,[f("div",mt,E(i(o).title),1),i(o).subtitle?(h(),F("div",ct,E(i(o).subtitle),1)):P("",!0)])])]),"item.to":l(({item:o})=>[f("div",yt,[i(o).metaForIcon?(h(),x(t($),{key:0,meta:i(o).metaForIcon,size:24},null,8,["meta"])):P("",!0),f("div",gt,[f("div",vt,E(i(o).title),1),i(o).subtitle?(h(),F("div",ft,E(i(o).subtitle),1)):P("",!0)])])]),"item.actions":l(({item:o})=>[r(t(rt),{"page-name":"settings.entity-details","page-params":{projectId:s.projectId,entityId:m(o)}},null,8,["page-params"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}}),ht={class:"text-body-2"},It={class:"d-flex align-center"},bt={class:"entity-snapshot-editor"},Pt=z({__name:"[snapshotId]",props:{params:{}},async setup(s){let c,y;const{settingsStore:g,libraryStore:S}=w(),{projectStore:I}=w(),M=O(),b=D(()=>String(M.params.snapshotId??s.params.snapshotId));I.initializing?([c,y]=j(()=>_(()=>I.initialized).toBe(!0)),await c,y(),I.addLibraryRoot()):([c,y]=j(()=>I.initialize1()),await c,y(),[c,y]=j(()=>I.initialize2()),await c,y());const m=C(),d=C(g.snapshotsForEntity("",b.value)),p=C(g.outgoingReferencesForEntitySnapshot(b.value)),i=C(g.incomingReferencesForEntitySnapshot(b.value)),u=async a=>{const e=await g.getEntitySnapshotDetails(a);if(!e){H(G({statusCode:404,statusMessage:"Entity snapshot not found"}));return}m.value=e,d.value=g.snapshotsForEntity(e.entity.id,a),p.value=g.outgoingReferencesForEntitySnapshot(a),i.value=g.incomingReferencesForEntitySnapshot(a),await d.value.load(),p.value.load(),i.value.load()};[c,y]=j(()=>u(b.value)),await c,y(),X(b,async a=>{await u(a)});const v=[{key:"entityId",label:"Entity ID"},{key:"type",label:"Type"},{key:"snapshotId",label:"Snapshot ID"},{key:"snapshotCreatedAt",label:"Snapshot Created"},{key:"operationId",label:"Operation ID"},{key:"stateId",label:"State ID"}],o=D(()=>{const a=m.value;if(a)return{snapshotId:a.snapshot.id,entityId:a.entity.id,entityType:a.entity.type,entityIdentity:a.entity.identity,content:a.snapshot.content}}),k=D(()=>{const a=m.value;return a?N({entities:S.library?.entities??{},entityType:a.entity.type,content:a.snapshot.content}):{title:"Unknown",subtitle:void 0,metaForIcon:void 0}}),A=D(()=>{const a=k.value.metaForIcon;if(a?.title)return{title:a.title,...a.icon?{icon:a.icon}:{},...a.iconColor?{iconColor:a.iconColor}:{}}});return(a,e)=>(h(),x(t(W),null,{default:l(()=>[r(J,{meta:t(A),"fallback-icon":"mdi-database",title:t(k).title,description:t(k).subtitle},null,8,["meta","title","description"]),t(m)?(h(),F(tt,{key:0},[r(t(Q),{title:"Entity Snapshot Details",items:v},{"item.entityId":l(()=>[r(t(R),{value:t(m).entity.id},null,8,["value"])]),"item.type":l(()=>[f("div",ht,E(t(m).entity.type),1)]),"item.snapshotId":l(()=>[r(t(R),{value:t(m).snapshot.id},null,8,["value"])]),"item.snapshotCreatedAt":l(()=>[r(t(Z),{value:t(m).snapshot.createdAt},null,8,["value"])]),"item.operationId":l(()=>[r(t(ot),{id:t(m).snapshot.operationId,"fallback-icon":"mdi-history","page-name":"settings.operation-details","page-params":{operationId:t(m).snapshot.operationId},"max-length":28},null,8,["id","page-params"])]),"item.stateId":l(()=>[r(t(nt),{item:{stateId:t(m).snapshot.stateId}},null,8,["item"])]),_:1}),r(et,{elevation:0},{default:l(()=>[r(t(Y),{title:"Identity",data:t(m).entity.identity,language:"yaml",icon:"mdi-identifier"},null,8,["data"]),r(at,{color:"#2d2d2d","bg-color":"#1e1e1e"},{title:l(()=>[f("div",It,[r(it,{class:"mr-2"},{default:l(()=>[...e[12]||(e[12]=[T("mdi-code-json",-1)])]),_:1}),e[13]||(e[13]=T(" Content ",-1))])]),text:l(()=>[f("div",bt,[t(o)?(h(),x(dt,{key:0,entity:t(o),"project-id":s.params.projectId,height:"400px"},null,8,["entity","project-id"])):P("",!0)])]),_:1}),r(t(U),{title:"Other snapshots",icon:"mdi-history",count:t(d).data.value.total},{default:l(()=>[r(t(lt),{search:t(d).search.value,"onUpdate:search":e[0]||(e[0]=n=>t(d).search.value=n),"sort-by":t(d).sortBy.value,"onUpdate:sortBy":e[1]||(e[1]=n=>t(d).sortBy.value=n),page:t(d).page.value,"onUpdate:page":e[2]||(e[2]=n=>t(d).page.value=n),"items-per-page":t(d).itemsPerPage.value,"onUpdate:itemsPerPage":e[3]||(e[3]=n=>t(d).itemsPerPage.value=n),"project-id":s.params.projectId,data:t(d).data.value,loading:t(d).isLoading.value,"fallback-icon-meta":t(k).metaForIcon,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","fallback-icon-meta"])]),_:1},8,["count"]),r(t(U),{title:"References to other entities",icon:"mdi-call-made",count:t(p).data.value.total},{default:l(()=>[r(t(V),{search:t(p).search.value,"onUpdate:search":e[4]||(e[4]=n=>t(p).search.value=n),"sort-by":t(p).sortBy.value,"onUpdate:sortBy":e[5]||(e[5]=n=>t(p).sortBy.value=n),page:t(p).page.value,"onUpdate:page":e[6]||(e[6]=n=>t(p).page.value=n),"items-per-page":t(p).itemsPerPage.value,"onUpdate:itemsPerPage":e[7]||(e[7]=n=>t(p).itemsPerPage.value=n),"project-id":s.params.projectId,data:t(p).data.value,loading:t(p).isLoading.value,direction:"outgoing","hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),r(t(U),{title:"Entities referencing this entity",icon:"mdi-call-received",count:t(i).data.value.total},{default:l(()=>[r(t(V),{search:t(i).search.value,"onUpdate:search":e[8]||(e[8]=n=>t(i).search.value=n),"sort-by":t(i).sortBy.value,"onUpdate:sortBy":e[9]||(e[9]=n=>t(i).sortBy.value=n),page:t(i).page.value,"onUpdate:page":e[10]||(e[10]=n=>t(i).page.value=n),"items-per-page":t(i).itemsPerPage.value,"onUpdate:itemsPerPage":e[11]||(e[11]=n=>t(i).itemsPerPage.value=n),"project-id":s.params.projectId,data:t(i).data.value,loading:t(i).isLoading.value,direction:"incoming","hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"])]),_:1})],64)):P("",!0)]),_:1}))}}),_t=K(Pt,[["__scopeId","data-v-00f1ba90"]]);export{_t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as p,t as c}from"#entry";import"./
|
|
1
|
+
import{s as p,t as c}from"#entry";import"./C5DRPdxC.js";import{S as d}from"./DVKmRHSk.js";import{_ as f}from"./D2lHwbtX.js";import{E as g,aO as n,Y as l,_ as u,D as t,V as y,W as _}from"./77UvFSdd.js";import"./B69Z0Xk1.js";import"./CxoCegAs.js";import"./fbfpKHgl.js";import"./BgvYz3Nr.js";import"./CCBTuGSI.js";import"./B9BJCsIg.js";import"./m4Sxwg8n.js";const V=g({__name:"index",async setup(P){let r,o;const{settingsStore:a}=p(),{projectStore:s}=p();return s.initializing?([r,o]=n(()=>c(()=>s.initialized).toBe(!0)),await r,o(),s.addLibraryRoot()):([r,o]=n(()=>s.initialize1()),await r,o(),[r,o]=n(()=>s.initialize2()),await r,o()),a.artifacts.load(),(j,i)=>(y(),l(t(d),{title:"Artifacts",icon:"mdi-package-variant",description:"Manage the artifacts produced by units or other components in your project."},{default:u(({height:m})=>[_(t(f),{search:t(a).artifacts.search,"onUpdate:search":i[0]||(i[0]=e=>t(a).artifacts.search=e),"sort-by":t(a).artifacts.sortBy,"onUpdate:sortBy":i[1]||(i[1]=e=>t(a).artifacts.sortBy=e),page:t(a).artifacts.page,"onUpdate:page":i[2]||(i[2]=e=>t(a).artifacts.page=e),"items-per-page":t(a).artifacts.itemsPerPage,"onUpdate:itemsPerPage":i[3]||(i[3]=e=>t(a).artifacts.itemsPerPage=e),"project-id":t(s).projectId,data:t(a).artifacts.data,loading:t(a).artifacts.isLoading,height:m},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","height"])]),_:1}))}});export{V as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{s as f,V as w}from"./
|
|
1
|
+
import{s as f,V as w}from"./D1BdWMiq.js";import{b2 as N,al as S,u as L,b3 as V,b4 as D,b5 as x,b6 as Y,b7 as C}from"#entry";import{E as M,w as H,V as W,J as F,a6 as z,W as J,D as $,j as I,n as b,B as P}from"./77UvFSdd.js";let A=!1;function T(t){A||(N("openEntitySnapshot",e=>{if(!e||typeof e!="object")return;const n=e;typeof n.projectId!="string"||n.projectId.length===0||typeof n.snapshotId!="string"||n.snapshotId.length===0||t.push({name:"settings.entity-snapshot-details",params:{projectId:n.projectId,snapshotId:n.snapshotId}})}),A=!0)}const d=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),E=t=>{if(!d(t)||!("$meta"in t))return!1;const e=t.$meta;return d(e)?typeof e.type=="string"&&e.type.length>0:!1},q=t=>Array.isArray(t)&&t.length>0&&t.every(E),g=t=>!d(t)||!(S.Secret in t)||t[S.Secret]!==!0?!1:"value"in t,i=t=>" ".repeat(Math.max(0,t)),h=(t,e)=>{const n=t.trimEnd();return n.length===0?[]:n.split(/\r?\n/).map(s=>s.length>0?`${i(e)}${s}`:s)},G=t=>{const e=t.$meta,n=typeof e.title=="string"&&e.title.length>0?e.title:e.type,s=typeof e.entityId=="string"&&e.entityId.length>0?e.entityId:"unknown";return`${n} [${s}]`},K=t=>{const e=t.$meta.description;if(!(typeof e!="string"||e.length===0))return e},Q=(t,e,n)=>{Object.keys(n).length!==0&&t.push(...h(f(n),e))},y=(t,e=new WeakSet)=>g(t)?!0:Array.isArray(t)?t.some(n=>y(n,e)):!d(t)||e.has(t)?!1:(e.add(t),Object.values(t).some(n=>y(n,e))),R=(t,e,n,s)=>{const a=t.length+1;t.push(`${i(n)}# secret`),t.push(...h(f({value:s}),n));const r=t.length;r>a&&e.push({start:a,end:r})},U=(t,e,n,s)=>{if(s.length===0){t.push(`${i(n)}[]`);return}for(const a of s){if(g(a)){t.push(`${i(n)}-`),R(t,e,n+2,a.value);continue}if(!y(a)){t.push(...h(f([a]),n));continue}t.push(`${i(n)}-`),B(t,e,n+2,a)}},O=(t,e,n,s)=>{for(const[a,r]of Object.entries(s)){if(g(r)){t.push(`${i(n)}${a}:`),R(t,e,n+2,r.value);continue}if(!y(r)){t.push(...h(f({[a]:r}),n));continue}t.push(`${i(n)}${a}:`),B(t,e,n+2,r)}},B=(t,e,n,s)=>{if(g(s)){R(t,e,n,s.value);return}if(Array.isArray(s)){U(t,e,n,s);return}if(d(s)){O(t,e,n,s);return}t.push(...h(f(s),n))},X=(t,e,n,s)=>{if(Object.keys(s).length!==0){if(!y(s)){Q(t,n,s);return}O(t,e,n,s)}},k=t=>{const e=t.lines.length+1,n=G(t.node),s=K(t.node),a=t.node.$meta.snapshotId;typeof a=="string"&&a.length>0&&t.links.push({line:e,snapshotId:a}),t.asListItem?t.lines.push(`${i(t.indent)}- # ${n}`):t.lines.push(`${i(t.indent)}# ${n}`);const r=t.asListItem?t.indent+2:t.indent;s&&t.lines.push(`${i(r)}# ${s}`);const o={},l=()=>{X(t.lines,t.regions,r,o);for(const u of Object.keys(o))delete o[u]};for(const[u,c]of Object.entries(t.node))if(u!=="$meta"){if(g(c)){l(),t.lines.push(`${i(r)}${u}:`);const p=t.lines.length+1;t.lines.push(`${i(r+2)}# secret`),t.lines.push(...h(f({value:c.value}),r+2));const j=t.lines.length;j>p&&t.regions.push({start:p,end:j});continue}if(E(c)||q(c)){if(l(),t.lines.push(`${i(r)}${u}:`),Array.isArray(c)){for(const p of c)k({node:p,indent:r+2,asListItem:!0,lines:t.lines,regions:t.regions,links:t.links,createRegion:!0});continue}k({node:c,indent:r+2,asListItem:!1,lines:t.lines,regions:t.regions,links:t.links,createRegion:!0});continue}o[u]=c}l();const m=t.lines.length;t.createRegion&&m>e&&t.regions.push({start:e,end:m})};function Z(t){if(!E(t))return{yaml:f(t??{}),regions:[],links:[]};const e=[],n=[],s=[];return k({node:t,indent:0,asListItem:!1,lines:e,regions:n,links:s,createRegion:!1}),{yaml:`${e.join(`
|
|
2
2
|
`)}
|
|
3
3
|
`,regions:n,links:s}}const et=M({__name:"EntityExplorerCodeEditor",props:{entity:{},projectId:{},language:{default:"yaml"},theme:{default:"dark-plus"},height:{default:"100%"},foldNestedByDefault:{type:Boolean,default:!0},options:{}},setup(t){const e=I(()=>Z(t.entity.content)),n=I(()=>e.value.yaml),s=I(()=>`entity://${t.entity.snapshotId}`),a=I(()=>({...C(),...t.options??{}})),r=L();T(r);const o=P(null);async function l(){if(!(!t.foldNestedByDefault||!o.value)){if(t.language==="yaml"){V(t.entity.snapshotId,e.value.regions),D({snapshotId:t.entity.snapshotId,projectId:t.projectId,links:e.value.links}),await x(o.value);return}await Y(o.value)}}const m=async(u,c)=>{o.value=u,await b(),await l()};return H(()=>n,async()=>{await b(),await l()}),(u,c)=>(W(),F("div",{style:z({height:t.height})},[J($(w),{value:$(n),language:t.language,theme:t.theme,path:$(s),options:$(a),style:{height:"100%"},onMount:m},null,8,["value","language","theme","path","options"])],4))}});export{et as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.page-container[data-v-9a58c678]{height:100%;overflow:auto;padding:24px;width:100%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.panel-frame-container[data-v-56c2e548]{display:grid;height:100%;overflow:hidden;place-items:center;width:100%}.panel-frame[data-v-56c2e548]{background:#fff;border:0;height:100%;width:100%}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"53add2c3-4d7c-4a4f-a116-e73c3787cf98","timestamp":1787408756351}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"53add2c3-4d7c-4a4f-a116-e73c3787cf98","timestamp":1787408756351,"prerendered":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.version-selector[data-v-44318f39]{width:88px}.sidebar-container[data-v-26fdc1ba]{height:100%}.search[data-v-26fdc1ba]{max-height:40px}.component-list-container[data-v-26fdc1ba]{height:calc(100% - 112px);margin-bottom:-8px;margin-right:-14px;overflow-x:hidden;overflow-y:auto;padding-right:14px}
|