@runeya/runeya 2.0.165 → 2.0.166
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/package.json +1 -1
- package/web/assets/{AgentScalarChatInterface.vue-XwKooHuS.js → AgentScalarChatInterface.vue-CYJZI7hJ.js} +1 -1
- package/web/assets/{AgentTerminalPage-yRB_ecJI.js → AgentTerminalPage-B_25Ru_P.js} +1 -1
- package/web/assets/{AiChatModals-D1yRQMh8.js → AiChatModals-DhEPCgEd.js} +1 -1
- package/web/assets/{AppLayout-D_DMmcQ_.js → AppLayout-BJjT5mUx.js} +1 -1
- package/web/assets/{AuditPage-CTfXPJXj.js → AuditPage-BLExhUwk.js} +1 -1
- package/web/assets/{CloudAccountPage-69TgsAkH.js → CloudAccountPage-C9-TRXM_.js} +1 -1
- package/web/assets/{CloudMessagingPage-CUc4VuBI.js → CloudMessagingPage-BE7appy3.js} +1 -1
- package/web/assets/{DashboardPage-CxvT8kYn.js → DashboardPage-CWVZknDb.js} +1 -1
- package/web/assets/{DirectoryPickerDialog-B12uXo7l.js → DirectoryPickerDialog-B_sqOvvQ.js} +1 -1
- package/web/assets/{EnvironmentForm-CopKlo6q.js → EnvironmentForm-DkPFdKVl.js} +1 -1
- package/web/assets/{EnvironmentFormPage-Cz6YAx-U.js → EnvironmentFormPage-CnAWhgGv.js} +1 -1
- package/web/assets/{EnvironmentListPage-BS40ed1P.js → EnvironmentListPage-C-0aTCzo.js} +1 -1
- package/web/assets/{KanbanListPage-oCMzi-up.js → KanbanListPage-D37YsUAb.js} +1 -1
- package/web/assets/{KnowledgeListPage-DXc22GWH.js → KnowledgeListPage-DthYH9EF.js} +1 -1
- package/web/assets/{KnowledgePagePage-CNbOVHck.js → KnowledgePagePage-BkGQ_r-4.js} +1 -1
- package/web/assets/{LaunchProjectPage-AIYk8dGc.js → LaunchProjectPage-Cqy8nG4U.js} +1 -1
- package/web/assets/{LaunchServicesPage-CZhKFYNl.js → LaunchServicesPage-CFmOOVc-.js} +1 -1
- package/web/assets/{LaunchShell-D_XB2573.js → LaunchShell-Di6efBI8.js} +1 -1
- package/web/assets/{LogViewer-CbMt1k2q.js → LogViewer-J6WqFztM.js} +1 -1
- package/web/assets/{OrgKeyPrompt-DIVl9Gty.js → OrgKeyPrompt-DdX9Cbaq.js} +1 -1
- package/web/assets/{ProcessControls-xb3eKh_B.js → ProcessControls-CqhQS1mu.js} +1 -1
- package/web/assets/{ProcessDetailPage-DmUYI53O.js → ProcessDetailPage-NjL5SUfL.js} +1 -1
- package/web/assets/{ProjectCreateDialog-B4CxGj-L.js → ProjectCreateDialog-pHdtF62n.js} +1 -1
- package/web/assets/{ProjectLocationGate-U5Bui-hK.js → ProjectLocationGate-rsnJG10A.js} +1 -1
- package/web/assets/{ProjectPublishDialog-CWIDRZjr.js → ProjectPublishDialog-FcH0t_XC.js} +1 -1
- package/web/assets/{RandomJobTestPage-8e9DnxU1.js → RandomJobTestPage-BdO6FEk1.js} +1 -1
- package/web/assets/{ScenarioEditorPage-Avu3w8g_.js → ScenarioEditorPage-ChJY1Dul.js} +1 -1
- package/web/assets/{SendToChatDialog-BMtNa_QR.js → SendToChatDialog-BIR41blV.js} +1 -1
- package/web/assets/{ServiceControlsBar-C1_QRdUe.js → ServiceControlsBar-D78juk1_.js} +1 -1
- package/web/assets/{ServiceDetailPage-B8Vg-PRp.js → ServiceDetailPage-p5fyxW95.js} +1 -1
- package/web/assets/{ServiceFormPage-C7OwEHJX.js → ServiceFormPage-DDVJ6Lvj.js} +1 -1
- package/web/assets/{SettingsPage-Bdn2BbwW.js → SettingsPage-CWe69iTZ.js} +3 -3
- package/web/assets/{UnlockPage-DUbZyfro.js → UnlockPage-D9RaGCdS.js} +1 -1
- package/web/assets/{VaultMigrationPage-BRZ_EUuH.js → VaultMigrationPage-Wd_ZQkpk.js} +1 -1
- package/web/assets/{VersionBadge-DN2Ho-8Q.js → VersionBadge-f8ekCUTV.js} +1 -1
- package/web/assets/{WikiPage-BT8PeGYT.js → WikiPage-C9tawVpT.js} +1 -1
- package/web/assets/{WikiView-DWl168iH.js → WikiView-0eBBSU1_.js} +1 -1
- package/web/assets/{agent.store-BrQmTiUs.js → agent.store-D2JRzoy4.js} +1 -1
- package/web/assets/{auth-Bn1t6v9Z.js → auth-BJnC0IgZ.js} +2 -2
- package/web/assets/{cloud-chat.store-PQ_0vP9-.js → cloud-chat.store-BM-UYC64.js} +1 -1
- package/web/assets/{cloud-client-C3E2yyUu.js → cloud-client-BtgYZuNG.js} +2 -2
- package/web/assets/{cloud-session-BGrDhQyl.js → cloud-session-Bhm8ajyD.js} +2 -2
- package/web/assets/{index-DPyBKb-x.css → index-BsoCoZZ8.css} +1 -1
- package/web/assets/{index-CJqaFgn7.js → index-mw_aqDEg.js} +4 -4
- package/web/assets/{knowledge-host-CkkSWmXA.js → knowledge-host-CaDRqJ8i.js} +3 -3
- package/web/assets/{notification.store-ChNT9swL.js → notification.store-DOOI3MjO.js} +1 -1
- package/web/assets/{project-launch.store-uVIdI1FE.js → project-launch.store-BSRFtV56.js} +1 -1
- package/web/assets/{project.store-BGgsly35.js → project.store-BNtSmm00.js} +1 -1
- package/web/assets/{scenario.store-BOxwE9Nf.js → scenario.store-DlePkebV.js} +1 -1
- package/web/assets/{service.store-BUl1mZ8r.js → service.store-BUGRO57M.js} +1 -1
- package/web/assets/{settings-scope-DPiKHU9X.js → settings-scope-BjDZPZ3N.js} +1 -1
- package/web/assets/{settings.store-CFW7A0nw.js → settings.store-D6KDkvnS.js} +1 -1
- package/web/assets/{src-EQeZO9eV.css → src-BdEmIwU1.css} +1 -1
- package/web/assets/{src-D6Id_6yT.js → src-C3l-wx83.js} +2 -2
- package/web/assets/src-CWoId-05.js +525 -0
- package/web/assets/{src-zpuGtnBZ.css → src-DjsvCWRW.css} +1 -1
- package/web/assets/{trpc-_B70IpnV.js → trpc-Bjh9h1Bw.js} +3 -3
- package/web/assets/{useEnvVarAutocomplete-Cr7IlfC5.js → useEnvVarAutocomplete-DTCWr2MV.js} +1 -1
- package/web/assets/{useProjectCatalog-BLPIZIFK.js → useProjectCatalog-CwkmZ3WO.js} +1 -1
- package/web/assets/{useProjectCloudOrg-eL8syIRO.js → useProjectCloudOrg-Pjawbsyf.js} +1 -1
- package/web/assets/{useServiceUrlHost-DkHZRri8.js → useServiceUrlHost-BtxxJxKQ.js} +1 -1
- package/web/index.html +21 -21
- package/web/assets/src-CVBn8NuP.js +0 -525
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,C as t}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{Ct as n,D as r,E as i,Ht as a,Rt as o,Yt as s,_ as c,b as l,bt as u,ct as ee,en as d,g as f,it as p,k as m,mt as h,nn as g,o as _,qt as v,rn as y,tt as te,v as b,y as x}from"./runtime-core.esm-bundler-DujKY9QV.js";import{C as S,w as ne}from"./runtime-dom.esm-bundler-CyEVRK6B.js";import{n as re}from"./vue-i18n-o7yraQpR.js";import{n as C}from"./project-launch.store-uVIdI1FE.js";import{F as ie,J as w,M as T,T as ae,U as E,W as D,Y as oe,a as se,dt as ce,ft as O,i as k,n as le,r as A,t as j}from"./src-q8L6Eojs.js";import{t as ue}from"./uuid-B2pLMyOM.js";import{t as de}from"./src-BQgMiizJ.js";import{n as fe,r as pe}from"./project.store-BGgsly35.js";import{h as me,l as M,t as he,u as N}from"./dist-DWtN-uEL.js";import{t as P}from"./service.store-BUl1mZ8r.js";import{t as F}from"./agent.store-BrQmTiUs.js";import{U as ge}from"./index-CJqaFgn7.js";import{t as I}from"./useServiceUrlHost-DkHZRri8.js";import"./uuid-DA_69zxD.js";import{t as _e}from"./FlagChip-CM65ij7k.js";var L={key:0,class:`env-badge`},R={class:`env-badge__name`},ve=O(m({__name:`EnvironmentBadge`,props:{environmentId:{}},setup(e){let t=e,n=pe(),r=f(()=>n.getById(t.environmentId));function i(e){if(e)return e.startsWith(`#`)?e:`#${e}`}return(e,t)=>r.value?(h(),l(`span`,L,[c(`span`,{class:`env-badge__swatch`,style:g({backgroundColor:i(r.value.bgColor)||i(r.value.color)||`var(--r-primary)`})},null,4),c(`span`,R,y(r.value.name),1)])):x(``,!0)}}),[[`__scopeId`,`data-v-968d7caa`]]),z=150,ye=m({__name:`TagsInput`,props:{modelValue:{},options:{default:()=>[]},placeholder:{default:void 0},inputId:{default:void 0},disabled:{type:Boolean,default:!1}},emits:[`update:modelValue`,`change`],setup(n,{emit:r}){let i=n,a=r,o=t([]);function s(e){let t=e.query.trim().toLowerCase(),n=new Set(i.modelValue);o.value=i.options.filter(e=>!n.has(e)&&(!t||e.toLowerCase().includes(t)))}function c(e){a(`update:modelValue`,e),a(`change`,e)}function l(e){c(Array.isArray(e)?e.map(String):[])}function u(e){let t=e.trim();t&&!i.modelValue.includes(t)&&c([...i.modelValue,t])}function ee(e){let t=e.target;u(t.value),t.value=``,o.value=[]}function d(e){let t=e.target;t&&typeof t.value==`string`&&t.value.trim()&&setTimeout(()=>{u(t.value),t.value=``},z)}return(t,r)=>(h(),b(e(k),{"model-value":n.modelValue,multiple:``,suggestions:o.value,"complete-on-focus":!0,placeholder:n.placeholder,"input-id":n.inputId,disabled:n.disabled,"onUpdate:modelValue":l,onComplete:s,onKeydown:S(ee,[`enter`]),onBlur:d},null,8,[`model-value`,`suggestions`,`placeholder`,`input-id`,`disabled`]))}}),be=/^\{\{([^{}]+)\}\}$/,B=/\{\{([^}]+)\}\}/g,V=`environment.`;function xe(e,t){return e.startsWith(V)?t.resolvedEnv[e.slice(12)]||null:t.serviceBuiltins[e]||null}function Se(e,t){let n=e.match(be);return n?xe(n[1],t):null}function Ce(e,t){return e.replace(B,(e,n)=>xe(n,t)??e)}var H={class:`ref-group`},we={class:`ref-option`},U={key:0,class:`ti ti-lock ref-option-secret`},Te={key:1,class:`ref-option-preview`},Ee=40,W=O(m({__name:`VariableRefInput`,props:{modelValue:{},inputId:{},placeholder:{default:``},disabled:{type:Boolean,default:!1},envKeys:{default:()=>[]},meta:{default:()=>({})},resolvedEnv:{default:()=>({})},serviceBuiltins:{default:()=>({})}},emits:[`update:modelValue`,`search`,`focus`,`blur`,`picked`],setup(n,{emit:i}){let o=/\{\{([^}]*)$/,s=n,u=i,{t:ee}=re(),d=t(``),f=t(``),p=t([]);function m(){let e=d.value.toLowerCase(),t=Object.keys(s.serviceBuiltins).filter(t=>t.toLowerCase().includes(e)).map(e=>`{{${e}}}`),n=s.envKeys.map(e=>`{{environment.${e}}}`);return[...t.length?[{label:ee(`variableRefInput.groupBuiltins`),items:t}]:[],...n.length?[{label:ee(`variableRefInput.groupEnvironment`),items:n}]:[]]}function g(){p.value=m()}a(()=>[s.envKeys,s.serviceBuiltins],g,{deep:!0});function _(e){let t=e.match(be);return t?t[1].replace(/^environment\./,``):e}function te(e){let t=e.match(be);return!t||!t[1].startsWith(`environment.`)?!1:s.meta[t[1].slice(12)]?.isSecret??!1}function S(e){let t=e.match(be);if(!t)return null;let n=t[1];if(n.startsWith(`environment.`)){let e=s.meta[n.slice(12)];if(!e||e.isSecret)return null}let r=xe(n,{resolvedEnv:s.resolvedEnv,serviceBuiltins:s.serviceBuiltins});return r?ne(r):null}function ne(e){return e.length>Ee?`${e.slice(0,Ee)}…`:e}function C(e){if(f.value=e.query,ie)ie=!1,d.value=``;else{let t=e.query.match(o),n=t?t[1]:e.query;d.value=n.replace(/^(environment|service)\./,``).trim()}u(`search`,d.value),g()}let ie=!1;function w(){ie=!0,u(`focus`)}function T(e){let t=f.value,n=t.lastIndexOf(`{{`);u(`update:modelValue`,n===-1?e:t.slice(0,n)+e),u(`picked`)}return(t,i)=>(h(),b(e(k),{"input-id":n.inputId,"model-value":n.modelValue,suggestions:p.value,"option-group-label":`label`,"option-group-children":`items`,placeholder:n.placeholder,class:`w-full`,"complete-on-focus":``,disabled:n.disabled,"onUpdate:modelValue":i[0]||=e=>u(`update:modelValue`,e),onComplete:C,onItemSelect:i[1]||=e=>T(e.value),onFocus:w,onBlur:i[2]||=e=>u(`blur`)},{optiongroup:v(({option:e})=>[c(`span`,H,y(e.label),1)]),option:v(({option:t})=>[c(`span`,we,[r(e(E),{severity:`secondary`,value:_(t)},null,8,[`value`]),te(t)?(h(),l(`i`,U)):S(t)?(h(),l(`span`,Te,y(S(t)),1)):x(``,!0)])]),_:1},8,[`input-id`,`model-value`,`suggestions`,`placeholder`,`disabled`]))}}),[[`__scopeId`,`data-v-2247bb09`]]);function De(e){let t=!1,n=!1;return async function r(){if(t){n=!0;return}t=!0;try{await e()}finally{t=!1,n&&(n=!1,await r())}}}var G={class:`key-row`},Oe={class:`expansion-field expansion-field--key`},ke=[`for`],Ae={key:2,class:`value-display`},je={key:0,class:`key-row-delete`},Me={key:0,class:`flags-row`},Ne={key:1,class:`expansion-field expansion-field--tags`},Pe={class:`expansion-label`,for:`varrow-tags-input`},Fe={key:1,class:`tags-display`},Ie={key:2,class:`not-secret-warning`},Le={key:4,class:`expansion-field expansion-field--description`},Re={class:`expansion-label`},ze={key:5,class:`not-secret-warning`},Be={key:7,class:`expansion-section`},Ve={class:`section-header`},He={class:`section-title`},Ue={class:`section-fields`},We={class:`expansion-field expansion-field--prepost`},Ge={class:`expansion-label`,for:`varrow-prefix`},Ke={key:2,class:`value-display`},qe={class:`expansion-field expansion-field--value`},Je=[`for`],Ye=[`aria-label`],Xe={class:`value-help`},Ze={class:`value-help__title`},Qe={class:`value-help__line`},$e={class:`value-help__line value-help__line--muted`},et={class:`value-help__subtitle`},tt={class:`value-help__builtins`},nt={class:`value-help__line value-help__line--muted`},rt={key:0,class:`secret-input-wrap`},it=[`disabled`],at=[`title`],ot={key:1,class:`value-display value-display--with-actions`},st={key:0,class:`value-actions`},ct={key:0},lt={key:1},ut={class:`expansion-field expansion-field--prepost`},dt={class:`expansion-label`,for:`varrow-suffix`},ft={key:2,class:`value-display`},pt={key:0,class:`preview-value`},mt={key:0,class:`prepost-part prepost-part--pre`},ht={key:1,class:`prepost-part prepost-part--interpolation`},gt={class:`prepost-part--value prepost-resolved-inline`},_t=[`title`],vt={key:2,class:`prepost-part prepost-part--value`},yt={key:3,class:`prepost-part prepost-part--post`},bt={key:9,class:`expansion-section expansion-section--override`},xt={class:`section-header`},St={class:`section-title`},Ct={class:`ti ti-info-circle section-title__info`},wt={class:`section-fields`},Tt={class:`expansion-field expansion-field--prepost`},Et={class:`expansion-label`,for:`varrow-override-prefix`},Dt={class:`expansion-field expansion-field--value`},Ot=[`for`],kt={key:0,class:`secret-input-wrap`},At=[`disabled`],jt=[`title`],Mt={class:`expansion-field expansion-field--prepost`},Nt={class:`expansion-label`,for:`varrow-override-suffix`},Pt={key:1,class:`override-view`},Ft={key:0,class:`value-display--with-actions`},It={class:`value-actions`},Lt={key:0,class:`override-value-masked`},Rt={key:1,class:`override-value`},zt={key:1,class:`override-value`},Bt={key:1,class:`override-empty`},Vt={key:0,class:`preview-value preview-value--override`},Ht={key:0,class:`prepost-part prepost-part--pre`},Ut={key:1,class:`prepost-part prepost-part--interpolation`},Wt={key:0,class:`prepost-part--value prepost-resolved-inline`},Gt={key:2,class:`prepost-part prepost-part--value`},Kt={key:3,class:`prepost-part prepost-part--post`},qt=`{{environment.KEY}}`,Jt=O(m({__name:`VariableRowEditor`,props:{environmentId:{},variableId:{},overrides:{},editable:{type:Boolean,default:!0},showOverrides:{type:Boolean,default:!1},canEditSource:{type:Boolean,default:!1},showDelete:{type:Boolean,default:!0},showOverrideBadge:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},resolvedEnv:{default:()=>({})},autocompleteEnabled:{type:Boolean,default:!1},autocompleteSuggestions:{default:()=>[]},autocompleteMeta:{default:()=>({})},serviceBuiltins:{default:()=>({})},isPending:{type:Boolean,default:!1},knownTags:{default:()=>[]}},emits:[`deleted`,`saved`,`autocomplete-search`,`override-changed`,`edit-source`],setup(p,{emit:m}){let g=p,S=m,C=pe(),ae=ie(),{t:D}=re(),oe=t(!1),se=t(!1),O=t(!1),le=t(!1),A=t(!1),j=t(!1),ue=t(null);function fe(e,t){navigator.clipboard.writeText(t),ue.value=e,setTimeout(()=>{ue.value===e&&(ue.value=null)},1500)}let me=f(()=>C.getById(g.environmentId)?.variables?.[g.variableId]),M=t(``),N=t(``),P=t(``),F=t(``),I=t(!1),L=t(!1),R=t(!1),ve=t(!1),z=t(!1),B=t(``),V=t([]),xe=t(!1),H=t(!1),we=t(!1),U=f(()=>xe.value||!!B.value),Te=o(`descriptionEditor`);async function Ee(){xe.value=!0,await te(),Te.value?.focus?.()}let Jt=f(()=>Z(N.value)),K=f(()=>I.value&&!Jt.value),Yt=f({get:()=>L.value||R.value,set:e=>{L.value=e}}),Xt=f(()=>R.value?D(`variableRowEditor.shareWithAiHintInjected`):K.value?D(`variableRowEditor.shareWithAiHint`):D(`variableRowEditor.shareWithAiHintPublic`)),Zt=f(()=>g.disabled||z.value);function Qt(){let e=me.value;M.value=e?.key??``,N.value=e?.value?.value??``,P.value=e?.value?.pre??``,F.value=e?.value?.post??``,I.value=e?.value?.isSecret??!1,L.value=e?.value?.shareWithAi??!1,R.value=e?.value?.injectIntoAi??!1,ve.value=e?.value?.required??!1,z.value=e?.value?.overrideOnly??!1,xe.value=!1,H.value=!1,we.value=!1,B.value=e?.value?.description??``,V.value=[...e?.tags??[]]}function $t(){z.value&&(N.value=``),Q()}ee(Qt),a(me,(e,t)=>{!t&&e&&Qt()});let q=f(()=>g.overrides[g.variableId]??null),en=f(()=>!q.value||H.value),tn=f(()=>!g.editable||!!q.value||z.value||we.value);async function nn(){we.value=!0,await te(),document.querySelector(`#varrow-override-value-secret, #varrow-override-value-plain`)?.focus()}let J=t(``),Y=t(``),X=t(``);function rn(){let e=q.value;J.value=e?.pre??``,Y.value=e?.value??``,X.value=e?.post??``}ee(rn),a(q,rn);function Z(e){return be.test(e)}function an(e){let t=e.match(be);return t?t[1].replace(/^environment\./,``):e}let on=f(()=>({resolvedEnv:g.resolvedEnv,serviceBuiltins:g.serviceBuiltins}));function sn(e){return Ce(e,on.value)}function cn(e){return Se(e,on.value)}function ln(e){let t=e.value;M.value=t,N.value=`{{environment.${t}}}`,I.value=!1;let n=g.autocompleteMeta?.[t];n&&(P.value=n.pre,F.value=n.post),Q()}let un=t(null),dn=f(()=>he.map(e=>({ref:`{{${e.name}}}`,desc:D(`builtins.${e.descriptionKey}`)}))),Q=De(async()=>{if(se.value)return;let e=M.value.trim();if(e){oe.value=!0;try{await C.upsertVariable(g.environmentId,g.variableId,{key:e,...V.value.length?{tags:V.value}:{},value:{value:N.value,pre:P.value,post:F.value,isSecret:K.value,shareWithAi:L.value,injectIntoAi:R.value,required:ve.value,overrideOnly:z.value,description:B.value}}),g.isPending&&S(`saved`)}catch(e){ae.add({severity:`error`,summary:D(`common.error`),detail:e.message??D(`variableRowEditor.saveError`),life:4e3})}finally{oe.value=!1}}});async function fn(){if(se.value=!0,g.isPending){S(`deleted`);return}oe.value=!0;try{q.value&&await C.removeOverride(g.variableId),await C.removeVariable(g.environmentId,g.variableId),S(`deleted`)}catch(e){se.value=!1,ae.add({severity:`error`,summary:D(`common.error`),detail:e.message??D(`variableRowEditor.deleteError`),life:4e3})}finally{oe.value=!1}}async function $(){let e=J.value||Y.value||X.value;try{if(!e){q.value&&(await C.removeOverride(g.variableId),S(`override-changed`));return}await C.setOverride(g.variableId,{value:{value:Y.value,pre:J.value,post:X.value}}),S(`override-changed`)}catch(e){ae.add({severity:`error`,summary:D(`common.error`),detail:e.message??D(`variableRowEditor.overrideError`),life:4e3})}}async function pn(){try{await C.removeOverride(g.variableId),S(`override-changed`)}catch(e){ae.add({severity:`error`,summary:D(`common.error`),detail:e.message??D(`variableRowEditor.clearOverrideError`),life:4e3})}}function mn(e){let t=e.relatedTarget;(!t||!e.currentTarget.contains(t))&&Q()}return(t,a)=>{let o=n(`tooltip`);return h(),l(`div`,{class:`expansion-form`,onFocusout:mn},[c(`div`,G,[c(`div`,Oe,[c(`label`,{class:`expansion-label`,for:p.editable&&p.autocompleteEnabled?`varrow-key-ac`:`varrow-key-input`},y(e(D)(`common.key`)),9,ke),p.editable&&p.autocompleteEnabled?(h(),b(e(k),{key:0,"input-id":`varrow-key-ac`,modelValue:M.value,"onUpdate:modelValue":a[0]||=e=>M.value=e,suggestions:p.autocompleteSuggestions,placeholder:e(D)(`variableRowEditor.variableNamePlaceholder`),class:`w-full`,disabled:p.disabled,onComplete:a[1]||=e=>S(`autocomplete-search`,e.query),onItemSelect:ln,onBlur:e(Q)},null,8,[`modelValue`,`suggestions`,`placeholder`,`disabled`,`onBlur`])):p.editable?(h(),b(e(w),{key:1,id:`varrow-key-input`,modelValue:M.value,"onUpdate:modelValue":a[2]||=e=>M.value=e,placeholder:e(D)(`variableRowEditor.variableNamePlaceholder`),class:`w-full`,disabled:p.disabled,onBlur:e(Q)},null,8,[`modelValue`,`placeholder`,`disabled`,`onBlur`])):(h(),l(`code`,Ae,y(M.value),1))]),p.showDelete&&p.editable?(h(),l(`div`,je,[r(e(ce),{icon:`ti ti-trash`,severity:`danger`,variant:`text`,rounded:``,size:`small`,disabled:p.disabled||oe.value,onClick:fn},null,8,[`disabled`])])):x(``,!0)]),p.editable?(h(),l(`div`,Me,[Jt.value?x(``,!0):(h(),b(_e,{key:0,modelValue:I.value,"onUpdate:modelValue":[a[3]||=e=>I.value=e,e(Q)],label:e(D)(`variableRowEditor.secret`),icon:`ti ti-lock`,hint:e(D)(`variableRowEditor.secretHint`),disabled:p.disabled},null,8,[`modelValue`,`label`,`hint`,`disabled`,`onUpdate:modelValue`])),r(_e,{modelValue:Yt.value,"onUpdate:modelValue":[a[4]||=e=>Yt.value=e,e(Q)],label:e(D)(`variableRowEditor.shareWithAi`),icon:`ti ti-eye`,hint:Xt.value,locked:R.value,disabled:p.disabled},null,8,[`modelValue`,`label`,`hint`,`locked`,`disabled`,`onUpdate:modelValue`]),r(_e,{modelValue:R.value,"onUpdate:modelValue":[a[5]||=e=>R.value=e,e(Q)],label:e(D)(`variableRowEditor.injectIntoAi`),icon:`ti ti-login`,hint:e(D)(`variableRowEditor.injectIntoAiHint`),disabled:p.disabled},null,8,[`modelValue`,`label`,`hint`,`disabled`,`onUpdate:modelValue`]),r(_e,{modelValue:ve.value,"onUpdate:modelValue":[a[6]||=e=>ve.value=e,e(Q)],label:e(D)(`variableRowEditor.required`),icon:`ti ti-asterisk`,hint:e(D)(`variableRowEditor.requiredHint`),disabled:p.disabled},null,8,[`modelValue`,`label`,`hint`,`disabled`,`onUpdate:modelValue`]),r(_e,{modelValue:z.value,"onUpdate:modelValue":[a[7]||=e=>z.value=e,$t],label:e(D)(`variableRowEditor.overrideOnly`),icon:`ti ti-device-desktop`,hint:e(D)(`variableRowEditor.overrideOnlyHint`),disabled:p.disabled},null,8,[`modelValue`,`label`,`hint`,`disabled`])])):x(``,!0),p.editable||V.value.length?(h(),l(`div`,Ne,[c(`label`,Pe,y(e(D)(`variableRowEditor.tags`)),1),p.editable?(h(),b(ye,{key:0,modelValue:V.value,"onUpdate:modelValue":a[8]||=e=>V.value=e,"input-id":`varrow-tags-input`,options:p.knownTags,placeholder:e(D)(`variableRowEditor.tagsPlaceholder`),disabled:p.disabled,onChange:e(Q)},null,8,[`modelValue`,`options`,`placeholder`,`disabled`,`onChange`])):(h(),l(`div`,Fe,[(h(!0),l(_,null,u(V.value,t=>(h(),b(e(E),{key:t,severity:`secondary`,value:t},null,8,[`value`]))),128))]))])):x(``,!0),p.editable&&!I.value&&!Z(N.value)?(h(),l(`div`,Ie,[a[60]||=c(`i`,{class:`ti ti-info-circle`},null,-1),c(`span`,null,y(e(D)(`variableRowEditor.notSecretWarning`)),1)])):x(``,!0),p.editable&&!U.value?(h(),l(`button`,{key:3,type:`button`,class:`add-section-btn`,onClick:Ee},[a[61]||=c(`i`,{class:`ti ti-plus`},null,-1),c(`span`,null,y(e(D)(`variableRowEditor.addDescription`)),1)])):x(``,!0),U.value?(h(),l(`div`,Le,[c(`label`,Re,y(e(D)(`variableRowEditor.description`)),1),r(e(de),{ref_key:`descriptionEditor`,ref:Te,modelValue:B.value,"onUpdate:modelValue":a[9]||=e=>B.value=e,markdown:``,"min-height":`4rem`,"max-height":`14rem`,editable:p.editable&&!p.disabled,placeholder:e(D)(`variableRowEditor.descriptionPlaceholder`),onLinkClick:e(ge)},null,8,[`modelValue`,`editable`,`placeholder`,`onLinkClick`])])):x(``,!0),p.editable&&z.value?(h(),l(`div`,ze,[a[62]||=c(`i`,{class:`ti ti-info-circle`},null,-1),c(`span`,null,y(e(D)(`variableRowEditor.overrideOnlyNotice`)),1)])):x(``,!0),en.value?x(``,!0):(h(),l(`button`,{key:6,type:`button`,class:`add-section-btn`,onClick:a[10]||=e=>H.value=!0},[a[63]||=c(`i`,{class:`ti ti-chevron-right`},null,-1),c(`span`,null,y(e(D)(`variableRowEditor.showSharedValue`)),1)])),en.value?(h(),l(`div`,Be,[c(`div`,Ve,[c(`div`,He,y(e(D)(`variableRowEditor.value`)),1),q.value?(h(),l(`button`,{key:0,type:`button`,class:`add-section-btn`,onClick:a[11]||=e=>H.value=!1},[a[64]||=c(`i`,{class:`ti ti-chevron-up`},null,-1),c(`span`,null,y(e(D)(`variableRowEditor.hideSharedValue`)),1)])):x(``,!0)]),c(`div`,Ue,[c(`div`,We,[c(`label`,Ge,y(e(D)(`variableRowEditor.prefix`)),1),p.editable&&p.autocompleteEnabled?(h(),b(W,{key:0,"input-id":`varrow-prefix`,modelValue:P.value,"onUpdate:modelValue":a[12]||=e=>P.value=e,placeholder:e(D)(`variableRowEditor.prefixPlaceholder`),"env-keys":p.autocompleteSuggestions,meta:p.autocompleteMeta,"resolved-env":p.resolvedEnv,"service-builtins":p.serviceBuiltins,disabled:p.disabled,onSearch:a[13]||=e=>S(`autocomplete-search`,e),onBlur:a[14]||=t=>e(Q)(),onPicked:a[15]||=t=>e(Q)()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):p.editable?(h(),b(e(w),{key:1,id:`varrow-prefix`,modelValue:P.value,"onUpdate:modelValue":a[16]||=e=>P.value=e,placeholder:e(D)(`variableRowEditor.prefixPlaceholder`),class:`w-full`,disabled:p.disabled,onBlur:e(Q)},null,8,[`modelValue`,`placeholder`,`disabled`,`onBlur`])):(h(),l(`code`,Ke,y(P.value||`—`),1))]),c(`div`,qe,[c(`label`,{class:`expansion-label`,for:K.value?`varrow-value-secret`:`varrow-value-plain`},[i(y(e(D)(`variableRowEditor.value`))+` `,1),p.editable?(h(),l(`button`,{key:0,type:`button`,class:`value-help-btn`,"aria-label":e(D)(`variableRowEditor.helpTitle`),onClick:a[17]||=ne(e=>un.value?.toggle(e),[`prevent`,`stop`])},[...a[65]||=[c(`i`,{class:`ti ti-info-circle`},null,-1)]],8,Ye)):x(``,!0)],8,Je),r(e(T),{ref_key:`valueHelp`,ref:un},{default:v(()=>[c(`div`,Xe,[c(`div`,Ze,y(e(D)(`variableRowEditor.helpTitle`)),1),c(`p`,Qe,[i(y(e(D)(`variableRowEditor.helpReference`))+` `,1),c(`code`,null,y(qt))]),c(`p`,$e,y(e(D)(`variableRowEditor.helpAutocomplete`)),1),c(`div`,et,y(e(D)(`variableRowEditor.helpBuiltinsTitle`)),1),c(`ul`,tt,[(h(!0),l(_,null,u(dn.value,e=>(h(),l(`li`,{key:e.ref},[c(`code`,null,y(e.ref),1),c(`span`,null,y(e.desc),1)]))),128))]),c(`p`,nt,y(e(D)(`variableRowEditor.helpPrePost`)),1)])]),_:1},512),p.editable?(h(),l(_,{key:0},[K.value?(h(),l(`div`,rt,[r(e(w),{id:`varrow-value-secret`,modelValue:N.value,"onUpdate:modelValue":a[18]||=e=>N.value=e,type:A.value?`text`:`password`,placeholder:e(D)(`variableRowEditor.valuePlaceholder`),class:`w-full`,disabled:Zt.value,onBlur:e(Q)},null,8,[`modelValue`,`type`,`placeholder`,`disabled`,`onBlur`]),c(`button`,{type:`button`,class:`secret-toggle`,disabled:p.disabled,onClick:a[19]||=e=>A.value=!A.value,tabindex:`-1`},[c(`i`,{class:d(A.value?`ti ti-eye-off`:`ti ti-eye`)},null,2)],8,it)])):Z(N.value)&&!O.value?(h(),l(`span`,{key:1,class:`interpolation-badge`,title:N.value,onClick:a[20]||=e=>O.value=!0},[r(e(E),{severity:`secondary`,value:an(N.value)},null,8,[`value`]),a[66]||=c(`i`,{class:`ti ti-pencil interpolation-edit-icon`},null,-1)],8,at)):p.autocompleteEnabled?(h(),b(W,{key:2,"input-id":`varrow-value-plain`,modelValue:N.value,"onUpdate:modelValue":a[21]||=e=>N.value=e,placeholder:e(D)(`variableRowEditor.valuePlaceholder`),"env-keys":p.autocompleteSuggestions,meta:p.autocompleteMeta,"resolved-env":p.resolvedEnv,"service-builtins":p.serviceBuiltins,disabled:Zt.value,onSearch:a[22]||=e=>S(`autocomplete-search`,e),onFocus:a[23]||=e=>O.value=!0,onBlur:a[24]||=t=>{O.value=!1,e(Q)()},onPicked:a[25]||=t=>e(Q)()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):(h(),b(e(w),{key:3,id:`varrow-value-plain`,modelValue:N.value,"onUpdate:modelValue":a[26]||=e=>N.value=e,placeholder:e(D)(`variableRowEditor.valuePlaceholder`),class:`w-full`,disabled:Zt.value,onFocus:a[27]||=e=>O.value=!0,onBlur:a[28]||=t=>{O.value=!1,e(Q)()}},null,8,[`modelValue`,`placeholder`,`disabled`]))],64)):(h(),l(`span`,ot,[N.value?(h(),l(`span`,st,[K.value?(h(),l(`i`,{key:0,class:d([A.value?`ti ti-eye-off`:`ti ti-eye`,`action-icon`]),onClick:a[29]||=e=>A.value=!A.value},null,2)):x(``,!0),c(`i`,{class:d([ue.value===`val`?`ti ti-check`:`ti ti-copy`,`action-icon`]),onClick:a[30]||=e=>fe(`val`,P.value+N.value+F.value)},null,2)])):x(``,!0),Z(N.value)?(h(),b(e(E),{key:1,severity:`secondary`,value:an(N.value)},null,8,[`value`])):K.value?(h(),l(_,{key:2},[A.value?(h(),l(`span`,lt,y(N.value),1)):(h(),l(`span`,ct,`***`))],64)):(h(),l(_,{key:3},[i(y(N.value),1)],64))]))]),c(`div`,ut,[c(`label`,dt,y(e(D)(`variableRowEditor.suffix`)),1),p.editable&&p.autocompleteEnabled?(h(),b(W,{key:0,"input-id":`varrow-suffix`,modelValue:F.value,"onUpdate:modelValue":a[31]||=e=>F.value=e,placeholder:e(D)(`variableRowEditor.suffixPlaceholder`),"env-keys":p.autocompleteSuggestions,meta:p.autocompleteMeta,"resolved-env":p.resolvedEnv,"service-builtins":p.serviceBuiltins,disabled:p.disabled,onSearch:a[32]||=e=>S(`autocomplete-search`,e),onBlur:a[33]||=t=>e(Q)(),onPicked:a[34]||=t=>e(Q)()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):p.editable?(h(),b(e(w),{key:1,id:`varrow-suffix`,modelValue:F.value,"onUpdate:modelValue":a[35]||=e=>F.value=e,placeholder:e(D)(`variableRowEditor.suffixPlaceholder`),class:`w-full`,disabled:p.disabled,onBlur:e(Q)},null,8,[`modelValue`,`placeholder`,`disabled`,`onBlur`])):(h(),l(`code`,ft,y(F.value||`—`),1))])]),K.value?x(``,!0):(h(),l(`code`,pt,[P.value?(h(),l(`span`,mt,y(sn(P.value)),1)):x(``,!0),Z(N.value)?(h(),l(`span`,ht,[cn(N.value)==null?(h(),l(_,{key:1},[r(e(E),{severity:`secondary`,value:an(N.value),style:{"font-size":`0.7rem`}},null,8,[`value`]),a[67]||=c(`span`,{class:`prepost-unresolved`},`(?)`,-1)],64)):(h(),l(_,{key:0},[c(`span`,gt,y(cn(N.value)),1),p.canEditSource?(h(),l(`i`,{key:0,class:`ti ti-pencil edit-source-icon`,title:e(D)(`variablesTable.editParentTitle`),onClick:a[36]||=ne(e=>S(`edit-source`),[`stop`])},null,8,_t)):x(``,!0)],64))])):(h(),l(`span`,vt,y(sn(N.value)||`…`),1)),F.value?(h(),l(`span`,yt,y(sn(F.value)),1)):x(``,!0)]))])):x(``,!0),p.showOverrides&&M.value?.trim()&&p.editable&&!tn.value?(h(),l(`button`,{key:8,type:`button`,class:`add-section-btn`,onClick:nn},[a[68]||=c(`i`,{class:`ti ti-plus`},null,-1),c(`span`,null,y(e(D)(`variableRowEditor.addOverride`)),1)])):x(``,!0),p.showOverrides&&M.value?.trim()&&tn.value?(h(),l(`div`,bt,[c(`div`,xt,[c(`div`,St,[i(y(e(D)(`variableRowEditor.localOverride`))+` `,1),s(c(`i`,Ct,null,512),[[o,{value:e(D)(`variableRowEditor.localOverrideHint`),showDelay:0,hideDelay:0},void 0,{top:!0}]])]),p.editable&&q.value?(h(),b(e(ce),{key:0,icon:`ti ti-x`,variant:`text`,rounded:``,size:`small`,severity:`danger`,title:e(D)(`variableRowEditor.clearOverride`),disabled:p.disabled,onClick:pn},null,8,[`title`,`disabled`])):x(``,!0)]),c(`div`,wt,[p.editable?(h(),l(_,{key:0},[c(`div`,Tt,[c(`label`,Et,y(e(D)(`variableRowEditor.prefix`)),1),p.autocompleteEnabled?(h(),b(W,{key:0,"input-id":`varrow-override-prefix`,modelValue:J.value,"onUpdate:modelValue":a[37]||=e=>J.value=e,placeholder:e(D)(`variableRowEditor.prefixPlaceholder`),"env-keys":p.autocompleteSuggestions,meta:p.autocompleteMeta,"resolved-env":p.resolvedEnv,"service-builtins":p.serviceBuiltins,disabled:p.disabled,onSearch:a[38]||=e=>S(`autocomplete-search`,e),onBlur:a[39]||=e=>$(),onPicked:a[40]||=e=>$()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):(h(),b(e(w),{key:1,id:`varrow-override-prefix`,modelValue:J.value,"onUpdate:modelValue":a[41]||=e=>J.value=e,placeholder:e(D)(`variableRowEditor.prefixPlaceholder`),class:`w-full`,disabled:p.disabled,onBlur:$},null,8,[`modelValue`,`placeholder`,`disabled`]))]),c(`div`,Dt,[c(`label`,{class:`expansion-label`,for:K.value?`varrow-override-value-secret`:`varrow-override-value-plain`},y(e(D)(`variableRowEditor.value`)),9,Ot),K.value?(h(),l(`div`,kt,[r(e(w),{id:`varrow-override-value-secret`,modelValue:Y.value,"onUpdate:modelValue":a[42]||=e=>Y.value=e,type:j.value?`text`:`password`,placeholder:e(D)(`variableRowEditor.overrideValuePlaceholder`),class:`w-full`,disabled:p.disabled,onBlur:$},null,8,[`modelValue`,`type`,`placeholder`,`disabled`]),c(`button`,{type:`button`,class:`secret-toggle`,disabled:p.disabled,onClick:a[43]||=e=>j.value=!j.value,tabindex:`-1`},[c(`i`,{class:d(j.value?`ti ti-eye-off`:`ti ti-eye`)},null,2)],8,At)])):Z(Y.value)&&!le.value?(h(),l(`span`,{key:1,class:`interpolation-badge`,title:Y.value,onClick:a[44]||=e=>le.value=!0},[r(e(E),{severity:`secondary`,value:an(Y.value)},null,8,[`value`]),a[69]||=c(`i`,{class:`ti ti-pencil interpolation-edit-icon`},null,-1)],8,jt)):p.autocompleteEnabled?(h(),b(W,{key:2,"input-id":`varrow-override-value-plain`,modelValue:Y.value,"onUpdate:modelValue":a[45]||=e=>Y.value=e,placeholder:e(D)(`variableRowEditor.overrideValuePlaceholder`),"env-keys":p.autocompleteSuggestions,meta:p.autocompleteMeta,"resolved-env":p.resolvedEnv,"service-builtins":p.serviceBuiltins,disabled:p.disabled,onSearch:a[46]||=e=>S(`autocomplete-search`,e),onFocus:a[47]||=e=>le.value=!0,onBlur:a[48]||=e=>{le.value=!1,$()},onPicked:a[49]||=e=>$()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):(h(),b(e(w),{key:3,id:`varrow-override-value-plain`,modelValue:Y.value,"onUpdate:modelValue":a[50]||=e=>Y.value=e,placeholder:e(D)(`variableRowEditor.overrideValuePlaceholder`),class:`w-full`,disabled:p.disabled,onFocus:a[51]||=e=>le.value=!0,onBlur:a[52]||=e=>{le.value=!1,$()}},null,8,[`modelValue`,`placeholder`,`disabled`]))]),c(`div`,Mt,[c(`label`,Nt,y(e(D)(`variableRowEditor.suffix`)),1),p.autocompleteEnabled?(h(),b(W,{key:0,"input-id":`varrow-override-suffix`,modelValue:X.value,"onUpdate:modelValue":a[53]||=e=>X.value=e,placeholder:e(D)(`variableRowEditor.suffixPlaceholder`),"env-keys":p.autocompleteSuggestions,meta:p.autocompleteMeta,"resolved-env":p.resolvedEnv,"service-builtins":p.serviceBuiltins,disabled:p.disabled,onSearch:a[54]||=e=>S(`autocomplete-search`,e),onBlur:a[55]||=e=>$(),onPicked:a[56]||=e=>$()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):(h(),b(e(w),{key:1,id:`varrow-override-suffix`,modelValue:X.value,"onUpdate:modelValue":a[57]||=e=>X.value=e,placeholder:e(D)(`variableRowEditor.suffixPlaceholder`),class:`w-full`,disabled:p.disabled,onBlur:$},null,8,[`modelValue`,`placeholder`,`disabled`]))])],64)):(h(),l(`div`,Pt,[q.value?(h(),l(`span`,Ft,[c(`span`,It,[K.value||q.value.isSecret?(h(),l(`i`,{key:0,class:d([j.value?`ti ti-eye-off`:`ti ti-eye`,`action-icon`]),onClick:a[58]||=e=>j.value=!j.value},null,2)):x(``,!0),c(`i`,{class:d([ue.value===`ovr`?`ti ti-check`:`ti ti-copy`,`action-icon`]),onClick:a[59]||=e=>fe(`ovr`,q.value.pre+q.value.value+q.value.post)},null,2)]),K.value||q.value.isSecret?(h(),l(_,{key:0},[j.value?(h(),l(`code`,Rt,y(q.value.pre)+y(q.value.value)+y(q.value.post),1)):(h(),l(`span`,Lt,`***`))],64)):(h(),l(`code`,zt,y(q.value.pre)+y(q.value.value)+y(q.value.post),1))])):(h(),l(`span`,Bt,`—`))]))]),p.editable&&!K.value&&(J.value||Y.value||X.value)?(h(),l(`code`,Vt,[J.value?(h(),l(`span`,Ht,y(sn(J.value)),1)):x(``,!0),Z(Y.value)?(h(),l(`span`,Ut,[cn(Y.value)==null?(h(),l(_,{key:1},[r(e(E),{severity:`secondary`,value:an(Y.value),style:{"font-size":`0.7rem`}},null,8,[`value`]),a[70]||=c(`span`,{class:`prepost-unresolved`},`(?)`,-1)],64)):(h(),l(`span`,Wt,y(cn(Y.value)),1))])):(h(),l(`span`,Gt,y(sn(Y.value)||`…`),1)),X.value?(h(),l(`span`,Kt,y(sn(X.value)),1)):x(``,!0)])):x(``,!0)])):x(``,!0)],32)}}}),[[`__scopeId`,`data-v-88b44eb7`]]);function K(e){return e.tags?.length?[...e.tags].sort((e,t)=>e.localeCompare(t))[0]:null}function Yt(e,t){if(!e.key||!t.key)return Number(!e.key)-Number(!t.key);let n=K(e),r=K(t);return n===r?e.key.localeCompare(t.key):n===null?1:r===null?-1:n.localeCompare(r)}function Xt(e,t){return!t.length||!!e?.some(e=>t.includes(e))}var Zt=/\{\{environment\.([^}]+)\}\}/g;function Qt(e){let t=new Set;for(let n of e)for(let e of n.matchAll(Zt))t.add(e[1]);return[...t]}function $t(e,t,n=[]){let r=new Set;for(let i of Qt(e))for(let e of t[i]??[])n.includes(e)||r.add(e);return[...r].sort((e,t)=>e.localeCompare(t))}function q(e,t){let n=e.filter(e=>t.includes(e));return n.length===e.length?e:n}var en={class:`table-toolbar`},tn={key:1,class:`overrides-filter`},nn={for:`overrides-filter`},J={class:`text-center py-4 text-gray-500`},Y={class:`row-key-cell`},X={class:`row-key-line`},rn={class:`row-key`},Z=[`title`],an=[`title`],on={key:0,class:`row-tags`},sn={key:2,class:`resolved-from-line`},cn={class:`row-value`},ln=[`title`,`onClick`],un=[`title`,`onClick`],dn={key:1,class:`value-levels`},Q={class:`resolved-level`},fn={key:0,class:`secret-mask`},$=[`title`],pn={key:0,class:`secret-mask`},mn=[`title`],hn=[`title`],gn={key:6,class:`empty-value`},_n={key:0,class:`override-indicator`},vn=[`title`,`onClick`],yn=[`title`,`onClick`],bn={key:0,class:`override-value-masked`},xn=[`title`],Sn=[`title`],Cn={key:0,class:`parent-edit`},wn={class:`parent-edit__field`},Tn={class:`parent-edit__label`,for:`parent-edit-value`},En={class:`parent-edit__usages`},Dn={class:`parent-edit__usages-title`},On={key:0,class:`parent-edit__usages-loading`},kn={key:0,class:`parent-edit__usage-list`},An={class:`parent-edit__usage-env`},jn={key:0,class:`parent-edit__usage-svc`},Mn={key:1,class:`parent-edit__usages-empty`},Nn=40,Pn=200,Fn=24,In=O(m({__name:`VariablesTable`,props:{environmentId:{},resolvedEnv:{default:()=>({})},sources:{default:()=>({})},editable:{type:Boolean,default:!0},showOverrides:{type:Boolean,default:!1},showOverrideBadge:{type:Boolean,default:!1},showDelete:{type:Boolean,default:!0},showAddButton:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},autocompleteEnabled:{type:Boolean,default:!1},autocompleteSuggestions:{default:()=>[]},autocompleteMeta:{default:()=>({})},serviceBuiltins:{},scrollHeight:{default:`auto`},resolvedVariables:{default:()=>({})}},emits:[`autocomplete-search`,`variables-changed`],setup(n,{emit:m}){let g=be,S=/^\{\{environment\.([^{}]+)\}\}$/,C=Object.fromEntries(he.map(e=>[e.name,``])),T=n,O=m,{t:k}=re(),de=pe(),fe=f(()=>Object.keys(T.sources).length>0),me=f(()=>Object.keys(T.resolvedEnv).length>0),M=o(`rootRef`),N=t(null),P=f(()=>T.scrollHeight===`auto`?N.value??`460px`:T.scrollHeight);function F(){if(T.scrollHeight!==`auto`)return;let e=M.value;if(!e)return;let t=(e.querySelector(`.r-datatable__container`)??e).getBoundingClientRect().top,n=window.innerHeight-t-Fn;N.value=`${Math.max(Pn,Math.round(n))}px`}let ge=null;ee(()=>{te(F),window.addEventListener(`resize`,F),typeof ResizeObserver<`u`&&M.value&&(ge=new ResizeObserver(()=>F()),ge.observe(document.body))}),p(()=>{window.removeEventListener(`resize`,F),ge?.disconnect(),ge=null});let I=t(``),_e=t(!1),L=t([]),R=t({});async function z(){if(T.showOverrides)try{let e=await de.getOverrides(),t={};for(let[n,r]of Object.entries(e)){let e=r;t[n]={value:e.value.value,pre:e.value.pre,post:e.value.post,isSecret:e.value.isSecret}}R.value=t}catch{}}ee(z);let ye=f(()=>de.getById(T.environmentId));function B(e){return ye.value?.variables?.[e]}let V=f(()=>{let e=new Set;for(let t of de.environments)for(let n of Object.values(t.variables??{}))for(let t of n.tags??[])e.add(t);return[...e].sort((e,t)=>e.localeCompare(t))}),xe=f(()=>{let e={...Se.value};for(let t of Object.values(ye.value?.variables??{}))e[t.key]=t.tags??[];return e}),Se=f(()=>{let e=ye.value?.variables??{},t={};for(let[n,r]of Object.entries(T.resolvedVariables))n in e||(t[r.key]=r.tags??[]);return t});function Ce(e){let t=B(e);if(!t)return[];let n=R.value[e],r=[t.value?.value??``,t.value?.pre??``,t.value?.post??``];return n&&r.push(n.value,n.pre,n.post),$t(r,{...xe.value,[t.key]:Se.value[t.key]??[]},t.tags??[])}function H(e){return[...B(e)?.tags??[],...Ce(e)]}let we=f(()=>{let e=new Set;for(let t of Object.keys(ye.value?.variables??{}))for(let n of H(t))e.add(n);return[...e].sort((e,t)=>e.localeCompare(t))});a(we,e=>{L.value=q(L.value,e)});let U=t([]),Te=f(()=>{let e=Object.keys(ye.value?.variables??{}).map(e=>({variableId:e})),t=new Set(e.map(e=>e.variableId)),n=U.value.filter(e=>!t.has(e)).map(e=>({variableId:e}));return[...e,...n]}),Ee=o(`tableRef`),W=t({}),De=t([]),G=t(new Set);function Oe(e){let t=new Set(G.value);t.has(e)?t.delete(e):t.add(e),G.value=t}let ke=t(null);function Ae(e,t){navigator.clipboard.writeText(t),ke.value=e,setTimeout(()=>{ke.value===e&&(ke.value=null)},1500)}function je(e){let t=B(e);if(!t)return``;let n=t.value?.value??``;return Ye(n)?Ze(n)??n:(t.value?.pre??``)+n+(t.value?.post??``)}let Me=ie(),Ne=t(null),Pe=t(!1),Fe=t(!1),Ie=t(!1),Le=0,Re=t([]);async function ze(e){let t=T.sources[e]?.resolvedFrom,n=B(e)?.value?.value??``;if(!t||!n)return;let r=Xe(n),i=de.getById(t.environmentId),a=Object.entries(i?.variables??{}).find(([,e])=>e.key===r);if(!a){Me.add({severity:`warn`,summary:k(`variablesTable.editParentNotFound`),life:4e3});return}let[o,s]=a;Ne.value={key:r,environmentId:t.environmentId,environmentName:t.environmentName,variableId:o,value:s.value?.value??``,pre:s.value?.pre??``,post:s.value?.post??``,isSecret:s.value?.isSecret??!1,shareWithAi:s.value?.shareWithAi??!1,injectIntoAi:s.value?.injectIntoAi??!1,...s.tags?.length?{tags:s.tags}:{}},Re.value=[],Pe.value=!0,Be(r,t.environmentId)}async function Be(e,t){let n=++Le;Ie.value=!0;try{let r=de.currentProjectId;if(!r)return;let i=await de.keyUsages(r,e,t);if(n!==Le)return;Re.value=[...i.inheritedBy.map(e=>({kind:`inherits`,environmentName:e.environmentName,...e.serviceName?{serviceName:e.serviceName}:{}})),...i.definedIn.map(e=>({kind:`defines`,environmentName:e.environmentName,...e.serviceName?{serviceName:e.serviceName}:{}})),...i.referencedBy.map(e=>({kind:`references`,environmentName:e.environmentName,...e.serviceName?{serviceName:e.serviceName}:{},viaKey:e.key}))]}catch{n===Le&&(Re.value=[])}finally{n===Le&&(Ie.value=!1)}}async function Ve(){let e=Ne.value;if(e){Fe.value=!0;try{await de.upsertVariable(e.environmentId,e.variableId,{key:e.key,...e.tags?{tags:e.tags}:{},value:{value:e.value,pre:e.pre,post:e.post,isSecret:e.isSecret,shareWithAi:e.shareWithAi,injectIntoAi:e.injectIntoAi}}),Pe.value=!1,O(`variables-changed`)}catch(e){Me.add({severity:`error`,summary:k(`common.error`),detail:e.message,life:4e3})}finally{Fe.value=!1}}}function He(e){let t=R.value[e];return t?t.pre+t.value+t.post:``}let Ue=f(()=>{let e=[...Te.value];if(_e.value&&(e=e.filter(e=>!!R.value[e.variableId])),L.value.length&&(e=e.filter(e=>U.value.includes(e.variableId)||Xt(H(e.variableId),L.value))),I.value.trim()){let t=I.value.toLowerCase();e=e.filter(e=>{let n=B(e.variableId);if(!n)return!1;if(n.key.toLowerCase().includes(t)||H(e.variableId).some(e=>e.toLowerCase().includes(t))||(n.value?.value??``).toLowerCase().includes(t))return!0;let r=R.value[e.variableId];return!!(r&&r.value.toLowerCase().includes(t))})}if(De.value.length>0)e.sort((e,t)=>{let n=De.value.indexOf(e.variableId),r=De.value.indexOf(t.variableId);return n===-1?1:r===-1?-1:n-r});else{let t=e=>({key:B(e)?.key??``,tags:H(e)});e.sort((e,n)=>Yt(t(e.variableId),t(n.variableId)))}return e});function We(e){let t=e.data.variableId;W.value[t]?(W.value={},De.value=[],Ge(t)):(De.value=Ue.value.map(e=>e.variableId),W.value={[t]:!0})}function Ge(e){te(()=>{let t=Ee.value?.$el;if(!t)return;let n=Ue.value.findIndex(t=>t.variableId===e);n<0||t.querySelectorAll(`tbody tr[data-index]`)[n]?.scrollIntoView({block:`nearest`,behavior:`smooth`})})}function Ke(e){U.value=U.value.filter(t=>t!==e),W.value[e]&&(W.value={},De.value=[])}function qe(e){U.value=U.value.filter(t=>t!==e)}function Je(){let e=ue();U.value=[...U.value,e],De.value=[...Te.value.map(e=>e.variableId),e],te(()=>{W.value={[e]:!0},te(()=>{let e=document.querySelector(`.variables-expand-table .r-datatable__row-expansion:last-of-type`);e&&e.scrollIntoView({block:`nearest`,behavior:`smooth`})})})}function Ye(e){return g.test(e)}function Xe(e){let t=e.match(g);return t?t[1].replace(/^(?:environment|service)\./,``):e}function Ze(e){let t=e.match(S);if(t)return T.resolvedEnv[t[1]]??null;let n=e.match(g);if(n){let e={...C,...T.serviceBuiltins};if(e[n[1]])return e[n[1]]}return null}function Qe(e){return e.length<=Nn?e:e.substring(0,Nn)+`…`}return(t,a)=>(h(),l(_,null,[c(`div`,{ref_key:`rootRef`,ref:M,class:`variables-table`},[c(`div`,en,[r(e(w),{modelValue:I.value,"onUpdate:modelValue":a[0]||=e=>I.value=e,placeholder:`Search variables...`,class:`search-input`,size:`small`},null,8,[`modelValue`]),we.value.length?(h(),b(e(se),{key:0,modelValue:L.value,"onUpdate:modelValue":a[1]||=e=>L.value=e,options:we.value,placeholder:e(k)(`variablesTable.filterByTag`),display:`chip`,"max-selected-labels":2,"show-clear":``,size:`small`,class:`tag-filter`},null,8,[`modelValue`,`options`,`placeholder`])):x(``,!0),n.showOverrides?(h(),l(`div`,tn,[r(e(ae),{modelValue:_e.value,"onUpdate:modelValue":a[2]||=e=>_e.value=e,"input-id":`overrides-filter`},null,8,[`modelValue`]),c(`label`,nn,y(e(k)(`variablesTable.overriddenOnly`)),1)])):x(``,!0)]),r(e(le),{ref_key:`tableRef`,ref:Ee,"expanded-rows":W.value,"onUpdate:expandedRows":a[6]||=e=>W.value=e,value:Ue.value,"data-key":`variableId`,size:`small`,class:`variables-expand-table`,scrollable:``,"scroll-height":P.value,onRowClick:We},{empty:v(()=>[c(`div`,J,y(n.showAddButton?e(k)(`variablesTable.empty`):e(k)(`variablesTable.emptyReadonly`)),1)]),expansion:v(({data:t})=>[r(Jt,{"environment-id":n.environmentId,"variable-id":t.variableId,overrides:R.value,editable:n.editable,"show-overrides":n.showOverrides,"show-delete":n.showDelete,"show-override-badge":n.showOverrideBadge,disabled:n.disabled,"resolved-env":n.resolvedEnv,"autocomplete-enabled":n.autocompleteEnabled,"autocomplete-suggestions":n.autocompleteSuggestions,"autocomplete-meta":n.autocompleteMeta,"service-builtins":{...e(C),...n.serviceBuiltins},"is-pending":U.value.includes(t.variableId),"known-tags":V.value,onDeleted:e=>Ke(t.variableId),onSaved:e=>qe(t.variableId),onAutocompleteSearch:a[5]||=e=>O(`autocomplete-search`,e),onOverrideChanged:z,"can-edit-source":!!n.sources[t.variableId]?.resolvedFrom,onEditSource:e=>ze(t.variableId)},null,8,[`environment-id`,`variable-id`,`overrides`,`editable`,`show-overrides`,`show-delete`,`show-override-badge`,`disabled`,`resolved-env`,`autocomplete-enabled`,`autocomplete-suggestions`,`autocomplete-meta`,`service-builtins`,`is-pending`,`known-tags`,`onDeleted`,`onSaved`,`can-edit-source`,`onEditSource`])]),default:v(()=>[r(e(A),{expander:``,style:{width:`2.5rem`}}),r(e(A),{field:`variableId`,header:e(k)(`common.key`)},{body:v(({data:t})=>[c(`div`,Y,[c(`span`,X,[c(`code`,rn,y(B(t.variableId)?.key||`(new variable)`),1),n.sources[t.variableId]?.overriddenBy?(h(),l(`span`,{key:0,class:`overridden-badge overridden-badge--local`,title:e(k)(`variablesTable.localOverrideTooltip`,{env:n.sources[t.variableId].overriddenBy.environmentName})},[a[10]||=c(`i`,{class:`ti ti-device-desktop`},null,-1),i(` `+y(e(k)(`variablesTable.localOverride`)),1)],8,Z)):n.showOverrideBadge&&n.sources[t.variableId]?.overridden&&!Ye(B(t.variableId)?.value?.value??``)?(h(),l(`span`,{key:1,class:`overridden-badge`,title:e(k)(`variablesTable.overrideTooltip`)},[a[11]||=c(`i`,{class:`ti ti-alert-triangle`},null,-1),i(` `+y(e(k)(`variablesTable.override`)),1)],8,an)):x(``,!0)]),H(t.variableId).length?(h(),l(`span`,on,[(h(!0),l(_,null,u(B(t.variableId)?.tags??[],t=>(h(),b(e(E),{key:t,severity:`secondary`,value:t,class:`row-tag`},null,8,[`value`]))),128)),(h(!0),l(_,null,u(Ce(t.variableId),t=>s((h(),b(e(E),{key:`inherited:`+t,severity:`secondary`,value:t,class:`row-tag row-tag--inherited`},null,8,[`value`])),[[e(j),e(k)(`variablesTable.inheritedTag`),void 0,{top:!0}]])),128))])):x(``,!0),fe.value&&n.sources[t.variableId]?(h(),b(ve,{key:1,"environment-id":n.sources[t.variableId].environmentId,class:`source-badge`},null,8,[`environment-id`])):x(``,!0),fe.value&&n.sources[t.variableId]?.resolvedFrom?(h(),l(`span`,sn,[a[12]||=c(`i`,{class:`ti ti-arrow-right resolved-from-arrow`},null,-1),r(ve,{"environment-id":n.sources[t.variableId].resolvedFrom.environmentId,class:`source-badge`},null,8,[`environment-id`])])):x(``,!0)])]),_:1},8,[`header`]),r(e(A),{header:e(k)(`common.value`)},{body:v(({data:t})=>[c(`span`,cn,[je(t.variableId)?(h(),l(`span`,{key:0,class:`value-actions`,onClick:a[3]||=ne(()=>{},[`stop`])},[B(t.variableId)?.value?.isSecret?(h(),l(`i`,{key:0,class:d([G.value.has(t.variableId)?`ti ti-eye-off`:`ti ti-eye`,`action-icon`]),title:e(k)(`variablesTable.reveal`),onClick:e=>Oe(t.variableId)},null,10,ln)):x(``,!0),c(`i`,{class:d([ke.value===t.variableId?`ti ti-check`:`ti ti-copy`,`action-icon`]),title:e(k)(`actions.copy`),onClick:e=>Ae(t.variableId,je(t.variableId))},null,10,un)])):x(``,!0),Ye(B(t.variableId)?.value?.value??``)&&Ze(B(t.variableId)?.value?.value??``)!=null?(h(),l(`span`,dn,[r(e(E),{severity:`secondary`,value:Xe(B(t.variableId)?.value?.value??``),class:`interpolation-hint-tag`},null,8,[`value`]),c(`span`,Q,[B(t.variableId)?.value?.isSecret&&!G.value.has(t.variableId)?(h(),l(`span`,fn,`***`)):(h(),l(`code`,{key:1,class:`resolved-final`,title:Ze(B(t.variableId)?.value?.value??``)},y(Qe(Ze(B(t.variableId)?.value?.value??``))),9,$))])])):Ye(B(t.variableId)?.value?.value??``)&&me.value&&Ze(B(t.variableId)?.value?.value??``)==null?(h(),l(_,{key:2},[a[13]||=c(`i`,{class:`ti ti-alert-triangle unresolved-icon`},null,-1),r(e(E),{severity:`secondary`,value:Xe(B(t.variableId)?.value?.value??``)},null,8,[`value`]),a[14]||=c(`span`,{class:`unresolved-msg`},`Variable not found in this environment`,-1)],64)):Ye(B(t.variableId)?.value?.value??``)?(h(),b(e(E),{key:3,severity:`secondary`,value:Xe(B(t.variableId)?.value?.value??``)},null,8,[`value`])):B(t.variableId)?.value?.isSecret?(h(),l(_,{key:4},[G.value.has(t.variableId)?(h(),l(`code`,{key:1,title:je(t.variableId)},y(Qe(je(t.variableId))),9,mn)):(h(),l(`span`,pn,`***`))],64)):B(t.variableId)?.value?.value||B(t.variableId)?.value?.pre||B(t.variableId)?.value?.post?(h(),l(`code`,{key:5,title:je(t.variableId)},y(Qe(je(t.variableId))),9,hn)):(h(),l(`span`,gn,`(empty)`))]),n.showOverrides&&!Ye(B(t.variableId)?.value?.value??``)&&R.value[t.variableId]?(h(),l(`span`,_n,[a[15]||=c(`i`,{class:`ti ti-arrow-right`,style:{"font-size":`0.7rem`}},null,-1),c(`span`,{class:`value-actions`,onClick:a[4]||=ne(()=>{},[`stop`])},[B(t.variableId)?.value?.isSecret||R.value[t.variableId].isSecret?(h(),l(`i`,{key:0,class:d([G.value.has(`ovr:`+t.variableId)?`ti ti-eye-off`:`ti ti-eye`,`action-icon`]),title:e(k)(`variablesTable.reveal`),onClick:e=>Oe(`ovr:`+t.variableId)},null,10,vn)):x(``,!0),c(`i`,{class:d([ke.value===`ovr:`+t.variableId?`ti ti-check`:`ti ti-copy`,`action-icon`]),title:e(k)(`actions.copy`),onClick:e=>Ae(`ovr:`+t.variableId,He(t.variableId))},null,10,yn)]),B(t.variableId)?.value?.isSecret||R.value[t.variableId].isSecret?(h(),l(_,{key:0},[G.value.has(`ovr:`+t.variableId)?(h(),l(`code`,{key:1,class:`override-value`,title:He(t.variableId)},y(Qe(He(t.variableId))),9,xn)):(h(),l(`span`,bn,`***`))],64)):(h(),l(`code`,{key:1,class:`override-value`,title:He(t.variableId)},y(Qe(He(t.variableId))),9,Sn))])):x(``,!0)]),_:1},8,[`header`])]),_:1},8,[`expanded-rows`,`value`,`scroll-height`]),n.showAddButton?(h(),b(e(ce),{key:0,type:`button`,label:e(k)(`variablesTable.addVariable`),icon:`ti ti-plus`,variant:`text`,disabled:n.disabled,class:`mt-3`,onClick:Je},null,8,[`label`,`disabled`])):x(``,!0)],512),r(e(oe),{visible:Pe.value,"onUpdate:visible":a[9]||=e=>Pe.value=e,modal:``,header:e(k)(`variablesTable.editParentHeader`),style:{width:`38rem`,maxWidth:`95vw`}},{footer:v(()=>[r(e(ce),{label:e(k)(`actions.cancel`),variant:`text`,disabled:Fe.value,onClick:a[8]||=e=>Pe.value=!1},null,8,[`label`,`disabled`]),r(e(ce),{label:e(k)(`variablesTable.editParentConfirm`),severity:`warn`,loading:Fe.value,onClick:Ve},null,8,[`label`,`loading`])]),default:v(()=>[Ne.value?(h(),l(`div`,Cn,[r(e(D),{severity:`warn`,class:`parent-edit__warning`},{default:v(()=>[i(y(e(k)(`variablesTable.editParentWarning`,{key:Ne.value.key,env:Ne.value.environmentName})),1)]),_:1}),c(`div`,wn,[c(`label`,Tn,y(e(k)(`common.value`)),1),r(e(w),{id:`parent-edit-value`,modelValue:Ne.value.value,"onUpdate:modelValue":a[7]||=e=>Ne.value.value=e,class:`w-full`,disabled:Fe.value},null,8,[`modelValue`,`disabled`])]),c(`div`,En,[c(`div`,Dn,[a[16]||=c(`i`,{class:`ti ti-sitemap`},null,-1),i(` `+y(e(k)(`variablesTable.editParentImpact`)),1)]),Ie.value?(h(),l(`div`,On,[a[17]||=c(`i`,{class:`ti ti-spin ti-loader-2`},null,-1),c(`span`,null,y(e(k)(`variablesTable.editParentLoading`)),1)])):(h(),l(_,{key:1},[Re.value.length?(h(),l(`ul`,kn,[(h(!0),l(_,null,u(Re.value,(t,n)=>(h(),l(`li`,{key:n},[r(e(E),{severity:t.kind===`references`?`info`:`secondary`,value:t.kind===`references`?t.viaKey:t.kind===`inherits`?e(k)(`variablesTable.editParentInherits`):e(k)(`variablesTable.editParentDefines`)},null,8,[`severity`,`value`]),c(`span`,An,y(t.environmentName),1),t.serviceName?(h(),l(`span`,jn,y(t.serviceName),1)):x(``,!0)]))),128))])):(h(),l(`div`,Mn,y(e(k)(`variablesTable.editParentNoUsage`)),1))],64))])])):x(``,!0)]),_:1},8,[`visible`,`header`])],64))}}),[[`__scopeId`,`data-v-1d1460fd`]]);function Ln(e,t){let n=fe(),r=C(),i=P(),a=f(()=>{let t=n.getByRef({id:e(),orgId:r.activeOrgId});return t?t.serviceIds.map(e=>i.getById(e)).filter(e=>!!e):[]});return f(()=>{let e=M(a.value.map(e=>e.name)),n={};for(let r of a.value){let i=me(r.name);i&&!e.has(i)&&Object.assign(n,N({name:r.name,id:r.id,ports:r.ports,localUrls:r.localUrls,url:r.url},t()))}return n})}function Rn(e){let t=F(),n=pe(),r=fe(),i=C(),a=f(()=>{let r=e.environmentId()?n.getById(e.environmentId())?.agentId:void 0,i=e.agentId?.()??r;return i?t.getById(i):t.agents.find(e=>e.isLocal)??null}),{urlHost:o,serverHost:s}=I(()=>a.value?.config.id),c=Ln(e.projectId,()=>o.value);return{values:f(()=>{let t={};for(let e of he)t[e.name]=``;t[`runeya.HOST`]=s.value;let o=a.value?.status;o?.lanIp&&(t[`agent.HOST_LAN`]=o.lanIp),o?.os&&(t[`agent.OS`]=o.os),o?.home&&(t[`agent.HOME`]=o.home),a.value&&(t[`agent.NAME`]=a.value.config.name);let l=r.getByRef({id:e.projectId(),orgId:i.activeOrgId});l&&(t[`project.NAME`]=l.name);let u=e.environmentId()?n.getById(e.environmentId()):null;return u&&(t[`runeya.ENV_NAME`]=u.name),Object.assign(t,c.value),t}),agentEntry:a,urlHost:o}}function zn(e){let n=t([]),r=t({});function i(t){let i=e();if(!i)return;let a=t.toLowerCase(),o=Object.keys(i.env).filter(e=>e.toLowerCase().includes(a));n.value=o;let s=i.variables,c={};if(s)for(let e of o){let t=Object.values(s).find(t=>t.key===e);t&&(c[e]={key:e,isSecret:t.value?.isSecret??!1,pre:t.value?.pre??``,post:t.value?.post??``})}r.value=c}return{suggestions:n,meta:r,search:i}}export{ve as a,ye as i,Rn as n,In as r,zn as t};
|
|
1
|
+
import{B as e,C as t}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{Ct as n,D as r,E as i,Ht as a,Rt as o,Yt as s,_ as c,b as l,bt as u,ct as ee,en as d,g as f,it as p,k as m,mt as h,nn as g,o as _,qt as v,rn as y,tt as te,v as b,y as x}from"./runtime-core.esm-bundler-DujKY9QV.js";import{C as S,w as ne}from"./runtime-dom.esm-bundler-CyEVRK6B.js";import{n as re}from"./vue-i18n-o7yraQpR.js";import{n as C}from"./project-launch.store-BSRFtV56.js";import{F as ie,J as w,M as T,T as ae,U as E,W as D,Y as oe,a as se,dt as ce,ft as O,i as k,n as le,r as A,t as j}from"./src-q8L6Eojs.js";import{t as ue}from"./uuid-B2pLMyOM.js";import{t as de}from"./src-BQgMiizJ.js";import{n as fe,r as pe}from"./project.store-BNtSmm00.js";import{h as me,l as M,t as he,u as N}from"./dist-DWtN-uEL.js";import{t as P}from"./service.store-BUGRO57M.js";import{t as F}from"./agent.store-D2JRzoy4.js";import{U as ge}from"./index-mw_aqDEg.js";import{t as I}from"./useServiceUrlHost-BtxxJxKQ.js";import"./uuid-DA_69zxD.js";import{t as _e}from"./FlagChip-CM65ij7k.js";var L={key:0,class:`env-badge`},R={class:`env-badge__name`},ve=O(m({__name:`EnvironmentBadge`,props:{environmentId:{}},setup(e){let t=e,n=pe(),r=f(()=>n.getById(t.environmentId));function i(e){if(e)return e.startsWith(`#`)?e:`#${e}`}return(e,t)=>r.value?(h(),l(`span`,L,[c(`span`,{class:`env-badge__swatch`,style:g({backgroundColor:i(r.value.bgColor)||i(r.value.color)||`var(--r-primary)`})},null,4),c(`span`,R,y(r.value.name),1)])):x(``,!0)}}),[[`__scopeId`,`data-v-968d7caa`]]),z=150,ye=m({__name:`TagsInput`,props:{modelValue:{},options:{default:()=>[]},placeholder:{default:void 0},inputId:{default:void 0},disabled:{type:Boolean,default:!1}},emits:[`update:modelValue`,`change`],setup(n,{emit:r}){let i=n,a=r,o=t([]);function s(e){let t=e.query.trim().toLowerCase(),n=new Set(i.modelValue);o.value=i.options.filter(e=>!n.has(e)&&(!t||e.toLowerCase().includes(t)))}function c(e){a(`update:modelValue`,e),a(`change`,e)}function l(e){c(Array.isArray(e)?e.map(String):[])}function u(e){let t=e.trim();t&&!i.modelValue.includes(t)&&c([...i.modelValue,t])}function ee(e){let t=e.target;u(t.value),t.value=``,o.value=[]}function d(e){let t=e.target;t&&typeof t.value==`string`&&t.value.trim()&&setTimeout(()=>{u(t.value),t.value=``},z)}return(t,r)=>(h(),b(e(k),{"model-value":n.modelValue,multiple:``,suggestions:o.value,"complete-on-focus":!0,placeholder:n.placeholder,"input-id":n.inputId,disabled:n.disabled,"onUpdate:modelValue":l,onComplete:s,onKeydown:S(ee,[`enter`]),onBlur:d},null,8,[`model-value`,`suggestions`,`placeholder`,`input-id`,`disabled`]))}}),be=/^\{\{([^{}]+)\}\}$/,B=/\{\{([^}]+)\}\}/g,V=`environment.`;function xe(e,t){return e.startsWith(V)?t.resolvedEnv[e.slice(12)]||null:t.serviceBuiltins[e]||null}function Se(e,t){let n=e.match(be);return n?xe(n[1],t):null}function Ce(e,t){return e.replace(B,(e,n)=>xe(n,t)??e)}var H={class:`ref-group`},we={class:`ref-option`},U={key:0,class:`ti ti-lock ref-option-secret`},Te={key:1,class:`ref-option-preview`},Ee=40,W=O(m({__name:`VariableRefInput`,props:{modelValue:{},inputId:{},placeholder:{default:``},disabled:{type:Boolean,default:!1},envKeys:{default:()=>[]},meta:{default:()=>({})},resolvedEnv:{default:()=>({})},serviceBuiltins:{default:()=>({})}},emits:[`update:modelValue`,`search`,`focus`,`blur`,`picked`],setup(n,{emit:i}){let o=/\{\{([^}]*)$/,s=n,u=i,{t:ee}=re(),d=t(``),f=t(``),p=t([]);function m(){let e=d.value.toLowerCase(),t=Object.keys(s.serviceBuiltins).filter(t=>t.toLowerCase().includes(e)).map(e=>`{{${e}}}`),n=s.envKeys.map(e=>`{{environment.${e}}}`);return[...t.length?[{label:ee(`variableRefInput.groupBuiltins`),items:t}]:[],...n.length?[{label:ee(`variableRefInput.groupEnvironment`),items:n}]:[]]}function g(){p.value=m()}a(()=>[s.envKeys,s.serviceBuiltins],g,{deep:!0});function _(e){let t=e.match(be);return t?t[1].replace(/^environment\./,``):e}function te(e){let t=e.match(be);return!t||!t[1].startsWith(`environment.`)?!1:s.meta[t[1].slice(12)]?.isSecret??!1}function S(e){let t=e.match(be);if(!t)return null;let n=t[1];if(n.startsWith(`environment.`)){let e=s.meta[n.slice(12)];if(!e||e.isSecret)return null}let r=xe(n,{resolvedEnv:s.resolvedEnv,serviceBuiltins:s.serviceBuiltins});return r?ne(r):null}function ne(e){return e.length>Ee?`${e.slice(0,Ee)}…`:e}function C(e){if(f.value=e.query,ie)ie=!1,d.value=``;else{let t=e.query.match(o),n=t?t[1]:e.query;d.value=n.replace(/^(environment|service)\./,``).trim()}u(`search`,d.value),g()}let ie=!1;function w(){ie=!0,u(`focus`)}function T(e){let t=f.value,n=t.lastIndexOf(`{{`);u(`update:modelValue`,n===-1?e:t.slice(0,n)+e),u(`picked`)}return(t,i)=>(h(),b(e(k),{"input-id":n.inputId,"model-value":n.modelValue,suggestions:p.value,"option-group-label":`label`,"option-group-children":`items`,placeholder:n.placeholder,class:`w-full`,"complete-on-focus":``,disabled:n.disabled,"onUpdate:modelValue":i[0]||=e=>u(`update:modelValue`,e),onComplete:C,onItemSelect:i[1]||=e=>T(e.value),onFocus:w,onBlur:i[2]||=e=>u(`blur`)},{optiongroup:v(({option:e})=>[c(`span`,H,y(e.label),1)]),option:v(({option:t})=>[c(`span`,we,[r(e(E),{severity:`secondary`,value:_(t)},null,8,[`value`]),te(t)?(h(),l(`i`,U)):S(t)?(h(),l(`span`,Te,y(S(t)),1)):x(``,!0)])]),_:1},8,[`input-id`,`model-value`,`suggestions`,`placeholder`,`disabled`]))}}),[[`__scopeId`,`data-v-2247bb09`]]);function De(e){let t=!1,n=!1;return async function r(){if(t){n=!0;return}t=!0;try{await e()}finally{t=!1,n&&(n=!1,await r())}}}var G={class:`key-row`},Oe={class:`expansion-field expansion-field--key`},ke=[`for`],Ae={key:2,class:`value-display`},je={key:0,class:`key-row-delete`},Me={key:0,class:`flags-row`},Ne={key:1,class:`expansion-field expansion-field--tags`},Pe={class:`expansion-label`,for:`varrow-tags-input`},Fe={key:1,class:`tags-display`},Ie={key:2,class:`not-secret-warning`},Le={key:4,class:`expansion-field expansion-field--description`},Re={class:`expansion-label`},ze={key:5,class:`not-secret-warning`},Be={key:7,class:`expansion-section`},Ve={class:`section-header`},He={class:`section-title`},Ue={class:`section-fields`},We={class:`expansion-field expansion-field--prepost`},Ge={class:`expansion-label`,for:`varrow-prefix`},Ke={key:2,class:`value-display`},qe={class:`expansion-field expansion-field--value`},Je=[`for`],Ye=[`aria-label`],Xe={class:`value-help`},Ze={class:`value-help__title`},Qe={class:`value-help__line`},$e={class:`value-help__line value-help__line--muted`},et={class:`value-help__subtitle`},tt={class:`value-help__builtins`},nt={class:`value-help__line value-help__line--muted`},rt={key:0,class:`secret-input-wrap`},it=[`disabled`],at=[`title`],ot={key:1,class:`value-display value-display--with-actions`},st={key:0,class:`value-actions`},ct={key:0},lt={key:1},ut={class:`expansion-field expansion-field--prepost`},dt={class:`expansion-label`,for:`varrow-suffix`},ft={key:2,class:`value-display`},pt={key:0,class:`preview-value`},mt={key:0,class:`prepost-part prepost-part--pre`},ht={key:1,class:`prepost-part prepost-part--interpolation`},gt={class:`prepost-part--value prepost-resolved-inline`},_t=[`title`],vt={key:2,class:`prepost-part prepost-part--value`},yt={key:3,class:`prepost-part prepost-part--post`},bt={key:9,class:`expansion-section expansion-section--override`},xt={class:`section-header`},St={class:`section-title`},Ct={class:`ti ti-info-circle section-title__info`},wt={class:`section-fields`},Tt={class:`expansion-field expansion-field--prepost`},Et={class:`expansion-label`,for:`varrow-override-prefix`},Dt={class:`expansion-field expansion-field--value`},Ot=[`for`],kt={key:0,class:`secret-input-wrap`},At=[`disabled`],jt=[`title`],Mt={class:`expansion-field expansion-field--prepost`},Nt={class:`expansion-label`,for:`varrow-override-suffix`},Pt={key:1,class:`override-view`},Ft={key:0,class:`value-display--with-actions`},It={class:`value-actions`},Lt={key:0,class:`override-value-masked`},Rt={key:1,class:`override-value`},zt={key:1,class:`override-value`},Bt={key:1,class:`override-empty`},Vt={key:0,class:`preview-value preview-value--override`},Ht={key:0,class:`prepost-part prepost-part--pre`},Ut={key:1,class:`prepost-part prepost-part--interpolation`},Wt={key:0,class:`prepost-part--value prepost-resolved-inline`},Gt={key:2,class:`prepost-part prepost-part--value`},Kt={key:3,class:`prepost-part prepost-part--post`},qt=`{{environment.KEY}}`,Jt=O(m({__name:`VariableRowEditor`,props:{environmentId:{},variableId:{},overrides:{},editable:{type:Boolean,default:!0},showOverrides:{type:Boolean,default:!1},canEditSource:{type:Boolean,default:!1},showDelete:{type:Boolean,default:!0},showOverrideBadge:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},resolvedEnv:{default:()=>({})},autocompleteEnabled:{type:Boolean,default:!1},autocompleteSuggestions:{default:()=>[]},autocompleteMeta:{default:()=>({})},serviceBuiltins:{default:()=>({})},isPending:{type:Boolean,default:!1},knownTags:{default:()=>[]}},emits:[`deleted`,`saved`,`autocomplete-search`,`override-changed`,`edit-source`],setup(p,{emit:m}){let g=p,S=m,C=pe(),ae=ie(),{t:D}=re(),oe=t(!1),se=t(!1),O=t(!1),le=t(!1),A=t(!1),j=t(!1),ue=t(null);function fe(e,t){navigator.clipboard.writeText(t),ue.value=e,setTimeout(()=>{ue.value===e&&(ue.value=null)},1500)}let me=f(()=>C.getById(g.environmentId)?.variables?.[g.variableId]),M=t(``),N=t(``),P=t(``),F=t(``),I=t(!1),L=t(!1),R=t(!1),ve=t(!1),z=t(!1),B=t(``),V=t([]),xe=t(!1),H=t(!1),we=t(!1),U=f(()=>xe.value||!!B.value),Te=o(`descriptionEditor`);async function Ee(){xe.value=!0,await te(),Te.value?.focus?.()}let Jt=f(()=>Z(N.value)),K=f(()=>I.value&&!Jt.value),Yt=f({get:()=>L.value||R.value,set:e=>{L.value=e}}),Xt=f(()=>R.value?D(`variableRowEditor.shareWithAiHintInjected`):K.value?D(`variableRowEditor.shareWithAiHint`):D(`variableRowEditor.shareWithAiHintPublic`)),Zt=f(()=>g.disabled||z.value);function Qt(){let e=me.value;M.value=e?.key??``,N.value=e?.value?.value??``,P.value=e?.value?.pre??``,F.value=e?.value?.post??``,I.value=e?.value?.isSecret??!1,L.value=e?.value?.shareWithAi??!1,R.value=e?.value?.injectIntoAi??!1,ve.value=e?.value?.required??!1,z.value=e?.value?.overrideOnly??!1,xe.value=!1,H.value=!1,we.value=!1,B.value=e?.value?.description??``,V.value=[...e?.tags??[]]}function $t(){z.value&&(N.value=``),Q()}ee(Qt),a(me,(e,t)=>{!t&&e&&Qt()});let q=f(()=>g.overrides[g.variableId]??null),en=f(()=>!q.value||H.value),tn=f(()=>!g.editable||!!q.value||z.value||we.value);async function nn(){we.value=!0,await te(),document.querySelector(`#varrow-override-value-secret, #varrow-override-value-plain`)?.focus()}let J=t(``),Y=t(``),X=t(``);function rn(){let e=q.value;J.value=e?.pre??``,Y.value=e?.value??``,X.value=e?.post??``}ee(rn),a(q,rn);function Z(e){return be.test(e)}function an(e){let t=e.match(be);return t?t[1].replace(/^environment\./,``):e}let on=f(()=>({resolvedEnv:g.resolvedEnv,serviceBuiltins:g.serviceBuiltins}));function sn(e){return Ce(e,on.value)}function cn(e){return Se(e,on.value)}function ln(e){let t=e.value;M.value=t,N.value=`{{environment.${t}}}`,I.value=!1;let n=g.autocompleteMeta?.[t];n&&(P.value=n.pre,F.value=n.post),Q()}let un=t(null),dn=f(()=>he.map(e=>({ref:`{{${e.name}}}`,desc:D(`builtins.${e.descriptionKey}`)}))),Q=De(async()=>{if(se.value)return;let e=M.value.trim();if(e){oe.value=!0;try{await C.upsertVariable(g.environmentId,g.variableId,{key:e,...V.value.length?{tags:V.value}:{},value:{value:N.value,pre:P.value,post:F.value,isSecret:K.value,shareWithAi:L.value,injectIntoAi:R.value,required:ve.value,overrideOnly:z.value,description:B.value}}),g.isPending&&S(`saved`)}catch(e){ae.add({severity:`error`,summary:D(`common.error`),detail:e.message??D(`variableRowEditor.saveError`),life:4e3})}finally{oe.value=!1}}});async function fn(){if(se.value=!0,g.isPending){S(`deleted`);return}oe.value=!0;try{q.value&&await C.removeOverride(g.variableId),await C.removeVariable(g.environmentId,g.variableId),S(`deleted`)}catch(e){se.value=!1,ae.add({severity:`error`,summary:D(`common.error`),detail:e.message??D(`variableRowEditor.deleteError`),life:4e3})}finally{oe.value=!1}}async function $(){let e=J.value||Y.value||X.value;try{if(!e){q.value&&(await C.removeOverride(g.variableId),S(`override-changed`));return}await C.setOverride(g.variableId,{value:{value:Y.value,pre:J.value,post:X.value}}),S(`override-changed`)}catch(e){ae.add({severity:`error`,summary:D(`common.error`),detail:e.message??D(`variableRowEditor.overrideError`),life:4e3})}}async function pn(){try{await C.removeOverride(g.variableId),S(`override-changed`)}catch(e){ae.add({severity:`error`,summary:D(`common.error`),detail:e.message??D(`variableRowEditor.clearOverrideError`),life:4e3})}}function mn(e){let t=e.relatedTarget;(!t||!e.currentTarget.contains(t))&&Q()}return(t,a)=>{let o=n(`tooltip`);return h(),l(`div`,{class:`expansion-form`,onFocusout:mn},[c(`div`,G,[c(`div`,Oe,[c(`label`,{class:`expansion-label`,for:p.editable&&p.autocompleteEnabled?`varrow-key-ac`:`varrow-key-input`},y(e(D)(`common.key`)),9,ke),p.editable&&p.autocompleteEnabled?(h(),b(e(k),{key:0,"input-id":`varrow-key-ac`,modelValue:M.value,"onUpdate:modelValue":a[0]||=e=>M.value=e,suggestions:p.autocompleteSuggestions,placeholder:e(D)(`variableRowEditor.variableNamePlaceholder`),class:`w-full`,disabled:p.disabled,onComplete:a[1]||=e=>S(`autocomplete-search`,e.query),onItemSelect:ln,onBlur:e(Q)},null,8,[`modelValue`,`suggestions`,`placeholder`,`disabled`,`onBlur`])):p.editable?(h(),b(e(w),{key:1,id:`varrow-key-input`,modelValue:M.value,"onUpdate:modelValue":a[2]||=e=>M.value=e,placeholder:e(D)(`variableRowEditor.variableNamePlaceholder`),class:`w-full`,disabled:p.disabled,onBlur:e(Q)},null,8,[`modelValue`,`placeholder`,`disabled`,`onBlur`])):(h(),l(`code`,Ae,y(M.value),1))]),p.showDelete&&p.editable?(h(),l(`div`,je,[r(e(ce),{icon:`ti ti-trash`,severity:`danger`,variant:`text`,rounded:``,size:`small`,disabled:p.disabled||oe.value,onClick:fn},null,8,[`disabled`])])):x(``,!0)]),p.editable?(h(),l(`div`,Me,[Jt.value?x(``,!0):(h(),b(_e,{key:0,modelValue:I.value,"onUpdate:modelValue":[a[3]||=e=>I.value=e,e(Q)],label:e(D)(`variableRowEditor.secret`),icon:`ti ti-lock`,hint:e(D)(`variableRowEditor.secretHint`),disabled:p.disabled},null,8,[`modelValue`,`label`,`hint`,`disabled`,`onUpdate:modelValue`])),r(_e,{modelValue:Yt.value,"onUpdate:modelValue":[a[4]||=e=>Yt.value=e,e(Q)],label:e(D)(`variableRowEditor.shareWithAi`),icon:`ti ti-eye`,hint:Xt.value,locked:R.value,disabled:p.disabled},null,8,[`modelValue`,`label`,`hint`,`locked`,`disabled`,`onUpdate:modelValue`]),r(_e,{modelValue:R.value,"onUpdate:modelValue":[a[5]||=e=>R.value=e,e(Q)],label:e(D)(`variableRowEditor.injectIntoAi`),icon:`ti ti-login`,hint:e(D)(`variableRowEditor.injectIntoAiHint`),disabled:p.disabled},null,8,[`modelValue`,`label`,`hint`,`disabled`,`onUpdate:modelValue`]),r(_e,{modelValue:ve.value,"onUpdate:modelValue":[a[6]||=e=>ve.value=e,e(Q)],label:e(D)(`variableRowEditor.required`),icon:`ti ti-asterisk`,hint:e(D)(`variableRowEditor.requiredHint`),disabled:p.disabled},null,8,[`modelValue`,`label`,`hint`,`disabled`,`onUpdate:modelValue`]),r(_e,{modelValue:z.value,"onUpdate:modelValue":[a[7]||=e=>z.value=e,$t],label:e(D)(`variableRowEditor.overrideOnly`),icon:`ti ti-device-desktop`,hint:e(D)(`variableRowEditor.overrideOnlyHint`),disabled:p.disabled},null,8,[`modelValue`,`label`,`hint`,`disabled`])])):x(``,!0),p.editable||V.value.length?(h(),l(`div`,Ne,[c(`label`,Pe,y(e(D)(`variableRowEditor.tags`)),1),p.editable?(h(),b(ye,{key:0,modelValue:V.value,"onUpdate:modelValue":a[8]||=e=>V.value=e,"input-id":`varrow-tags-input`,options:p.knownTags,placeholder:e(D)(`variableRowEditor.tagsPlaceholder`),disabled:p.disabled,onChange:e(Q)},null,8,[`modelValue`,`options`,`placeholder`,`disabled`,`onChange`])):(h(),l(`div`,Fe,[(h(!0),l(_,null,u(V.value,t=>(h(),b(e(E),{key:t,severity:`secondary`,value:t},null,8,[`value`]))),128))]))])):x(``,!0),p.editable&&!I.value&&!Z(N.value)?(h(),l(`div`,Ie,[a[60]||=c(`i`,{class:`ti ti-info-circle`},null,-1),c(`span`,null,y(e(D)(`variableRowEditor.notSecretWarning`)),1)])):x(``,!0),p.editable&&!U.value?(h(),l(`button`,{key:3,type:`button`,class:`add-section-btn`,onClick:Ee},[a[61]||=c(`i`,{class:`ti ti-plus`},null,-1),c(`span`,null,y(e(D)(`variableRowEditor.addDescription`)),1)])):x(``,!0),U.value?(h(),l(`div`,Le,[c(`label`,Re,y(e(D)(`variableRowEditor.description`)),1),r(e(de),{ref_key:`descriptionEditor`,ref:Te,modelValue:B.value,"onUpdate:modelValue":a[9]||=e=>B.value=e,markdown:``,"min-height":`4rem`,"max-height":`14rem`,editable:p.editable&&!p.disabled,placeholder:e(D)(`variableRowEditor.descriptionPlaceholder`),onLinkClick:e(ge)},null,8,[`modelValue`,`editable`,`placeholder`,`onLinkClick`])])):x(``,!0),p.editable&&z.value?(h(),l(`div`,ze,[a[62]||=c(`i`,{class:`ti ti-info-circle`},null,-1),c(`span`,null,y(e(D)(`variableRowEditor.overrideOnlyNotice`)),1)])):x(``,!0),en.value?x(``,!0):(h(),l(`button`,{key:6,type:`button`,class:`add-section-btn`,onClick:a[10]||=e=>H.value=!0},[a[63]||=c(`i`,{class:`ti ti-chevron-right`},null,-1),c(`span`,null,y(e(D)(`variableRowEditor.showSharedValue`)),1)])),en.value?(h(),l(`div`,Be,[c(`div`,Ve,[c(`div`,He,y(e(D)(`variableRowEditor.value`)),1),q.value?(h(),l(`button`,{key:0,type:`button`,class:`add-section-btn`,onClick:a[11]||=e=>H.value=!1},[a[64]||=c(`i`,{class:`ti ti-chevron-up`},null,-1),c(`span`,null,y(e(D)(`variableRowEditor.hideSharedValue`)),1)])):x(``,!0)]),c(`div`,Ue,[c(`div`,We,[c(`label`,Ge,y(e(D)(`variableRowEditor.prefix`)),1),p.editable&&p.autocompleteEnabled?(h(),b(W,{key:0,"input-id":`varrow-prefix`,modelValue:P.value,"onUpdate:modelValue":a[12]||=e=>P.value=e,placeholder:e(D)(`variableRowEditor.prefixPlaceholder`),"env-keys":p.autocompleteSuggestions,meta:p.autocompleteMeta,"resolved-env":p.resolvedEnv,"service-builtins":p.serviceBuiltins,disabled:p.disabled,onSearch:a[13]||=e=>S(`autocomplete-search`,e),onBlur:a[14]||=t=>e(Q)(),onPicked:a[15]||=t=>e(Q)()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):p.editable?(h(),b(e(w),{key:1,id:`varrow-prefix`,modelValue:P.value,"onUpdate:modelValue":a[16]||=e=>P.value=e,placeholder:e(D)(`variableRowEditor.prefixPlaceholder`),class:`w-full`,disabled:p.disabled,onBlur:e(Q)},null,8,[`modelValue`,`placeholder`,`disabled`,`onBlur`])):(h(),l(`code`,Ke,y(P.value||`—`),1))]),c(`div`,qe,[c(`label`,{class:`expansion-label`,for:K.value?`varrow-value-secret`:`varrow-value-plain`},[i(y(e(D)(`variableRowEditor.value`))+` `,1),p.editable?(h(),l(`button`,{key:0,type:`button`,class:`value-help-btn`,"aria-label":e(D)(`variableRowEditor.helpTitle`),onClick:a[17]||=ne(e=>un.value?.toggle(e),[`prevent`,`stop`])},[...a[65]||=[c(`i`,{class:`ti ti-info-circle`},null,-1)]],8,Ye)):x(``,!0)],8,Je),r(e(T),{ref_key:`valueHelp`,ref:un},{default:v(()=>[c(`div`,Xe,[c(`div`,Ze,y(e(D)(`variableRowEditor.helpTitle`)),1),c(`p`,Qe,[i(y(e(D)(`variableRowEditor.helpReference`))+` `,1),c(`code`,null,y(qt))]),c(`p`,$e,y(e(D)(`variableRowEditor.helpAutocomplete`)),1),c(`div`,et,y(e(D)(`variableRowEditor.helpBuiltinsTitle`)),1),c(`ul`,tt,[(h(!0),l(_,null,u(dn.value,e=>(h(),l(`li`,{key:e.ref},[c(`code`,null,y(e.ref),1),c(`span`,null,y(e.desc),1)]))),128))]),c(`p`,nt,y(e(D)(`variableRowEditor.helpPrePost`)),1)])]),_:1},512),p.editable?(h(),l(_,{key:0},[K.value?(h(),l(`div`,rt,[r(e(w),{id:`varrow-value-secret`,modelValue:N.value,"onUpdate:modelValue":a[18]||=e=>N.value=e,type:A.value?`text`:`password`,placeholder:e(D)(`variableRowEditor.valuePlaceholder`),class:`w-full`,disabled:Zt.value,onBlur:e(Q)},null,8,[`modelValue`,`type`,`placeholder`,`disabled`,`onBlur`]),c(`button`,{type:`button`,class:`secret-toggle`,disabled:p.disabled,onClick:a[19]||=e=>A.value=!A.value,tabindex:`-1`},[c(`i`,{class:d(A.value?`ti ti-eye-off`:`ti ti-eye`)},null,2)],8,it)])):Z(N.value)&&!O.value?(h(),l(`span`,{key:1,class:`interpolation-badge`,title:N.value,onClick:a[20]||=e=>O.value=!0},[r(e(E),{severity:`secondary`,value:an(N.value)},null,8,[`value`]),a[66]||=c(`i`,{class:`ti ti-pencil interpolation-edit-icon`},null,-1)],8,at)):p.autocompleteEnabled?(h(),b(W,{key:2,"input-id":`varrow-value-plain`,modelValue:N.value,"onUpdate:modelValue":a[21]||=e=>N.value=e,placeholder:e(D)(`variableRowEditor.valuePlaceholder`),"env-keys":p.autocompleteSuggestions,meta:p.autocompleteMeta,"resolved-env":p.resolvedEnv,"service-builtins":p.serviceBuiltins,disabled:Zt.value,onSearch:a[22]||=e=>S(`autocomplete-search`,e),onFocus:a[23]||=e=>O.value=!0,onBlur:a[24]||=t=>{O.value=!1,e(Q)()},onPicked:a[25]||=t=>e(Q)()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):(h(),b(e(w),{key:3,id:`varrow-value-plain`,modelValue:N.value,"onUpdate:modelValue":a[26]||=e=>N.value=e,placeholder:e(D)(`variableRowEditor.valuePlaceholder`),class:`w-full`,disabled:Zt.value,onFocus:a[27]||=e=>O.value=!0,onBlur:a[28]||=t=>{O.value=!1,e(Q)()}},null,8,[`modelValue`,`placeholder`,`disabled`]))],64)):(h(),l(`span`,ot,[N.value?(h(),l(`span`,st,[K.value?(h(),l(`i`,{key:0,class:d([A.value?`ti ti-eye-off`:`ti ti-eye`,`action-icon`]),onClick:a[29]||=e=>A.value=!A.value},null,2)):x(``,!0),c(`i`,{class:d([ue.value===`val`?`ti ti-check`:`ti ti-copy`,`action-icon`]),onClick:a[30]||=e=>fe(`val`,P.value+N.value+F.value)},null,2)])):x(``,!0),Z(N.value)?(h(),b(e(E),{key:1,severity:`secondary`,value:an(N.value)},null,8,[`value`])):K.value?(h(),l(_,{key:2},[A.value?(h(),l(`span`,lt,y(N.value),1)):(h(),l(`span`,ct,`***`))],64)):(h(),l(_,{key:3},[i(y(N.value),1)],64))]))]),c(`div`,ut,[c(`label`,dt,y(e(D)(`variableRowEditor.suffix`)),1),p.editable&&p.autocompleteEnabled?(h(),b(W,{key:0,"input-id":`varrow-suffix`,modelValue:F.value,"onUpdate:modelValue":a[31]||=e=>F.value=e,placeholder:e(D)(`variableRowEditor.suffixPlaceholder`),"env-keys":p.autocompleteSuggestions,meta:p.autocompleteMeta,"resolved-env":p.resolvedEnv,"service-builtins":p.serviceBuiltins,disabled:p.disabled,onSearch:a[32]||=e=>S(`autocomplete-search`,e),onBlur:a[33]||=t=>e(Q)(),onPicked:a[34]||=t=>e(Q)()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):p.editable?(h(),b(e(w),{key:1,id:`varrow-suffix`,modelValue:F.value,"onUpdate:modelValue":a[35]||=e=>F.value=e,placeholder:e(D)(`variableRowEditor.suffixPlaceholder`),class:`w-full`,disabled:p.disabled,onBlur:e(Q)},null,8,[`modelValue`,`placeholder`,`disabled`,`onBlur`])):(h(),l(`code`,ft,y(F.value||`—`),1))])]),K.value?x(``,!0):(h(),l(`code`,pt,[P.value?(h(),l(`span`,mt,y(sn(P.value)),1)):x(``,!0),Z(N.value)?(h(),l(`span`,ht,[cn(N.value)==null?(h(),l(_,{key:1},[r(e(E),{severity:`secondary`,value:an(N.value),style:{"font-size":`0.7rem`}},null,8,[`value`]),a[67]||=c(`span`,{class:`prepost-unresolved`},`(?)`,-1)],64)):(h(),l(_,{key:0},[c(`span`,gt,y(cn(N.value)),1),p.canEditSource?(h(),l(`i`,{key:0,class:`ti ti-pencil edit-source-icon`,title:e(D)(`variablesTable.editParentTitle`),onClick:a[36]||=ne(e=>S(`edit-source`),[`stop`])},null,8,_t)):x(``,!0)],64))])):(h(),l(`span`,vt,y(sn(N.value)||`…`),1)),F.value?(h(),l(`span`,yt,y(sn(F.value)),1)):x(``,!0)]))])):x(``,!0),p.showOverrides&&M.value?.trim()&&p.editable&&!tn.value?(h(),l(`button`,{key:8,type:`button`,class:`add-section-btn`,onClick:nn},[a[68]||=c(`i`,{class:`ti ti-plus`},null,-1),c(`span`,null,y(e(D)(`variableRowEditor.addOverride`)),1)])):x(``,!0),p.showOverrides&&M.value?.trim()&&tn.value?(h(),l(`div`,bt,[c(`div`,xt,[c(`div`,St,[i(y(e(D)(`variableRowEditor.localOverride`))+` `,1),s(c(`i`,Ct,null,512),[[o,{value:e(D)(`variableRowEditor.localOverrideHint`),showDelay:0,hideDelay:0},void 0,{top:!0}]])]),p.editable&&q.value?(h(),b(e(ce),{key:0,icon:`ti ti-x`,variant:`text`,rounded:``,size:`small`,severity:`danger`,title:e(D)(`variableRowEditor.clearOverride`),disabled:p.disabled,onClick:pn},null,8,[`title`,`disabled`])):x(``,!0)]),c(`div`,wt,[p.editable?(h(),l(_,{key:0},[c(`div`,Tt,[c(`label`,Et,y(e(D)(`variableRowEditor.prefix`)),1),p.autocompleteEnabled?(h(),b(W,{key:0,"input-id":`varrow-override-prefix`,modelValue:J.value,"onUpdate:modelValue":a[37]||=e=>J.value=e,placeholder:e(D)(`variableRowEditor.prefixPlaceholder`),"env-keys":p.autocompleteSuggestions,meta:p.autocompleteMeta,"resolved-env":p.resolvedEnv,"service-builtins":p.serviceBuiltins,disabled:p.disabled,onSearch:a[38]||=e=>S(`autocomplete-search`,e),onBlur:a[39]||=e=>$(),onPicked:a[40]||=e=>$()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):(h(),b(e(w),{key:1,id:`varrow-override-prefix`,modelValue:J.value,"onUpdate:modelValue":a[41]||=e=>J.value=e,placeholder:e(D)(`variableRowEditor.prefixPlaceholder`),class:`w-full`,disabled:p.disabled,onBlur:$},null,8,[`modelValue`,`placeholder`,`disabled`]))]),c(`div`,Dt,[c(`label`,{class:`expansion-label`,for:K.value?`varrow-override-value-secret`:`varrow-override-value-plain`},y(e(D)(`variableRowEditor.value`)),9,Ot),K.value?(h(),l(`div`,kt,[r(e(w),{id:`varrow-override-value-secret`,modelValue:Y.value,"onUpdate:modelValue":a[42]||=e=>Y.value=e,type:j.value?`text`:`password`,placeholder:e(D)(`variableRowEditor.overrideValuePlaceholder`),class:`w-full`,disabled:p.disabled,onBlur:$},null,8,[`modelValue`,`type`,`placeholder`,`disabled`]),c(`button`,{type:`button`,class:`secret-toggle`,disabled:p.disabled,onClick:a[43]||=e=>j.value=!j.value,tabindex:`-1`},[c(`i`,{class:d(j.value?`ti ti-eye-off`:`ti ti-eye`)},null,2)],8,At)])):Z(Y.value)&&!le.value?(h(),l(`span`,{key:1,class:`interpolation-badge`,title:Y.value,onClick:a[44]||=e=>le.value=!0},[r(e(E),{severity:`secondary`,value:an(Y.value)},null,8,[`value`]),a[69]||=c(`i`,{class:`ti ti-pencil interpolation-edit-icon`},null,-1)],8,jt)):p.autocompleteEnabled?(h(),b(W,{key:2,"input-id":`varrow-override-value-plain`,modelValue:Y.value,"onUpdate:modelValue":a[45]||=e=>Y.value=e,placeholder:e(D)(`variableRowEditor.overrideValuePlaceholder`),"env-keys":p.autocompleteSuggestions,meta:p.autocompleteMeta,"resolved-env":p.resolvedEnv,"service-builtins":p.serviceBuiltins,disabled:p.disabled,onSearch:a[46]||=e=>S(`autocomplete-search`,e),onFocus:a[47]||=e=>le.value=!0,onBlur:a[48]||=e=>{le.value=!1,$()},onPicked:a[49]||=e=>$()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):(h(),b(e(w),{key:3,id:`varrow-override-value-plain`,modelValue:Y.value,"onUpdate:modelValue":a[50]||=e=>Y.value=e,placeholder:e(D)(`variableRowEditor.overrideValuePlaceholder`),class:`w-full`,disabled:p.disabled,onFocus:a[51]||=e=>le.value=!0,onBlur:a[52]||=e=>{le.value=!1,$()}},null,8,[`modelValue`,`placeholder`,`disabled`]))]),c(`div`,Mt,[c(`label`,Nt,y(e(D)(`variableRowEditor.suffix`)),1),p.autocompleteEnabled?(h(),b(W,{key:0,"input-id":`varrow-override-suffix`,modelValue:X.value,"onUpdate:modelValue":a[53]||=e=>X.value=e,placeholder:e(D)(`variableRowEditor.suffixPlaceholder`),"env-keys":p.autocompleteSuggestions,meta:p.autocompleteMeta,"resolved-env":p.resolvedEnv,"service-builtins":p.serviceBuiltins,disabled:p.disabled,onSearch:a[54]||=e=>S(`autocomplete-search`,e),onBlur:a[55]||=e=>$(),onPicked:a[56]||=e=>$()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):(h(),b(e(w),{key:1,id:`varrow-override-suffix`,modelValue:X.value,"onUpdate:modelValue":a[57]||=e=>X.value=e,placeholder:e(D)(`variableRowEditor.suffixPlaceholder`),class:`w-full`,disabled:p.disabled,onBlur:$},null,8,[`modelValue`,`placeholder`,`disabled`]))])],64)):(h(),l(`div`,Pt,[q.value?(h(),l(`span`,Ft,[c(`span`,It,[K.value||q.value.isSecret?(h(),l(`i`,{key:0,class:d([j.value?`ti ti-eye-off`:`ti ti-eye`,`action-icon`]),onClick:a[58]||=e=>j.value=!j.value},null,2)):x(``,!0),c(`i`,{class:d([ue.value===`ovr`?`ti ti-check`:`ti ti-copy`,`action-icon`]),onClick:a[59]||=e=>fe(`ovr`,q.value.pre+q.value.value+q.value.post)},null,2)]),K.value||q.value.isSecret?(h(),l(_,{key:0},[j.value?(h(),l(`code`,Rt,y(q.value.pre)+y(q.value.value)+y(q.value.post),1)):(h(),l(`span`,Lt,`***`))],64)):(h(),l(`code`,zt,y(q.value.pre)+y(q.value.value)+y(q.value.post),1))])):(h(),l(`span`,Bt,`—`))]))]),p.editable&&!K.value&&(J.value||Y.value||X.value)?(h(),l(`code`,Vt,[J.value?(h(),l(`span`,Ht,y(sn(J.value)),1)):x(``,!0),Z(Y.value)?(h(),l(`span`,Ut,[cn(Y.value)==null?(h(),l(_,{key:1},[r(e(E),{severity:`secondary`,value:an(Y.value),style:{"font-size":`0.7rem`}},null,8,[`value`]),a[70]||=c(`span`,{class:`prepost-unresolved`},`(?)`,-1)],64)):(h(),l(`span`,Wt,y(cn(Y.value)),1))])):(h(),l(`span`,Gt,y(sn(Y.value)||`…`),1)),X.value?(h(),l(`span`,Kt,y(sn(X.value)),1)):x(``,!0)])):x(``,!0)])):x(``,!0)],32)}}}),[[`__scopeId`,`data-v-88b44eb7`]]);function K(e){return e.tags?.length?[...e.tags].sort((e,t)=>e.localeCompare(t))[0]:null}function Yt(e,t){if(!e.key||!t.key)return Number(!e.key)-Number(!t.key);let n=K(e),r=K(t);return n===r?e.key.localeCompare(t.key):n===null?1:r===null?-1:n.localeCompare(r)}function Xt(e,t){return!t.length||!!e?.some(e=>t.includes(e))}var Zt=/\{\{environment\.([^}]+)\}\}/g;function Qt(e){let t=new Set;for(let n of e)for(let e of n.matchAll(Zt))t.add(e[1]);return[...t]}function $t(e,t,n=[]){let r=new Set;for(let i of Qt(e))for(let e of t[i]??[])n.includes(e)||r.add(e);return[...r].sort((e,t)=>e.localeCompare(t))}function q(e,t){let n=e.filter(e=>t.includes(e));return n.length===e.length?e:n}var en={class:`table-toolbar`},tn={key:1,class:`overrides-filter`},nn={for:`overrides-filter`},J={class:`text-center py-4 text-gray-500`},Y={class:`row-key-cell`},X={class:`row-key-line`},rn={class:`row-key`},Z=[`title`],an=[`title`],on={key:0,class:`row-tags`},sn={key:2,class:`resolved-from-line`},cn={class:`row-value`},ln=[`title`,`onClick`],un=[`title`,`onClick`],dn={key:1,class:`value-levels`},Q={class:`resolved-level`},fn={key:0,class:`secret-mask`},$=[`title`],pn={key:0,class:`secret-mask`},mn=[`title`],hn=[`title`],gn={key:6,class:`empty-value`},_n={key:0,class:`override-indicator`},vn=[`title`,`onClick`],yn=[`title`,`onClick`],bn={key:0,class:`override-value-masked`},xn=[`title`],Sn=[`title`],Cn={key:0,class:`parent-edit`},wn={class:`parent-edit__field`},Tn={class:`parent-edit__label`,for:`parent-edit-value`},En={class:`parent-edit__usages`},Dn={class:`parent-edit__usages-title`},On={key:0,class:`parent-edit__usages-loading`},kn={key:0,class:`parent-edit__usage-list`},An={class:`parent-edit__usage-env`},jn={key:0,class:`parent-edit__usage-svc`},Mn={key:1,class:`parent-edit__usages-empty`},Nn=40,Pn=200,Fn=24,In=O(m({__name:`VariablesTable`,props:{environmentId:{},resolvedEnv:{default:()=>({})},sources:{default:()=>({})},editable:{type:Boolean,default:!0},showOverrides:{type:Boolean,default:!1},showOverrideBadge:{type:Boolean,default:!1},showDelete:{type:Boolean,default:!0},showAddButton:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},autocompleteEnabled:{type:Boolean,default:!1},autocompleteSuggestions:{default:()=>[]},autocompleteMeta:{default:()=>({})},serviceBuiltins:{},scrollHeight:{default:`auto`},resolvedVariables:{default:()=>({})}},emits:[`autocomplete-search`,`variables-changed`],setup(n,{emit:m}){let g=be,S=/^\{\{environment\.([^{}]+)\}\}$/,C=Object.fromEntries(he.map(e=>[e.name,``])),T=n,O=m,{t:k}=re(),de=pe(),fe=f(()=>Object.keys(T.sources).length>0),me=f(()=>Object.keys(T.resolvedEnv).length>0),M=o(`rootRef`),N=t(null),P=f(()=>T.scrollHeight===`auto`?N.value??`460px`:T.scrollHeight);function F(){if(T.scrollHeight!==`auto`)return;let e=M.value;if(!e)return;let t=(e.querySelector(`.r-datatable__container`)??e).getBoundingClientRect().top,n=window.innerHeight-t-Fn;N.value=`${Math.max(Pn,Math.round(n))}px`}let ge=null;ee(()=>{te(F),window.addEventListener(`resize`,F),typeof ResizeObserver<`u`&&M.value&&(ge=new ResizeObserver(()=>F()),ge.observe(document.body))}),p(()=>{window.removeEventListener(`resize`,F),ge?.disconnect(),ge=null});let I=t(``),_e=t(!1),L=t([]),R=t({});async function z(){if(T.showOverrides)try{let e=await de.getOverrides(),t={};for(let[n,r]of Object.entries(e)){let e=r;t[n]={value:e.value.value,pre:e.value.pre,post:e.value.post,isSecret:e.value.isSecret}}R.value=t}catch{}}ee(z);let ye=f(()=>de.getById(T.environmentId));function B(e){return ye.value?.variables?.[e]}let V=f(()=>{let e=new Set;for(let t of de.environments)for(let n of Object.values(t.variables??{}))for(let t of n.tags??[])e.add(t);return[...e].sort((e,t)=>e.localeCompare(t))}),xe=f(()=>{let e={...Se.value};for(let t of Object.values(ye.value?.variables??{}))e[t.key]=t.tags??[];return e}),Se=f(()=>{let e=ye.value?.variables??{},t={};for(let[n,r]of Object.entries(T.resolvedVariables))n in e||(t[r.key]=r.tags??[]);return t});function Ce(e){let t=B(e);if(!t)return[];let n=R.value[e],r=[t.value?.value??``,t.value?.pre??``,t.value?.post??``];return n&&r.push(n.value,n.pre,n.post),$t(r,{...xe.value,[t.key]:Se.value[t.key]??[]},t.tags??[])}function H(e){return[...B(e)?.tags??[],...Ce(e)]}let we=f(()=>{let e=new Set;for(let t of Object.keys(ye.value?.variables??{}))for(let n of H(t))e.add(n);return[...e].sort((e,t)=>e.localeCompare(t))});a(we,e=>{L.value=q(L.value,e)});let U=t([]),Te=f(()=>{let e=Object.keys(ye.value?.variables??{}).map(e=>({variableId:e})),t=new Set(e.map(e=>e.variableId)),n=U.value.filter(e=>!t.has(e)).map(e=>({variableId:e}));return[...e,...n]}),Ee=o(`tableRef`),W=t({}),De=t([]),G=t(new Set);function Oe(e){let t=new Set(G.value);t.has(e)?t.delete(e):t.add(e),G.value=t}let ke=t(null);function Ae(e,t){navigator.clipboard.writeText(t),ke.value=e,setTimeout(()=>{ke.value===e&&(ke.value=null)},1500)}function je(e){let t=B(e);if(!t)return``;let n=t.value?.value??``;return Ye(n)?Ze(n)??n:(t.value?.pre??``)+n+(t.value?.post??``)}let Me=ie(),Ne=t(null),Pe=t(!1),Fe=t(!1),Ie=t(!1),Le=0,Re=t([]);async function ze(e){let t=T.sources[e]?.resolvedFrom,n=B(e)?.value?.value??``;if(!t||!n)return;let r=Xe(n),i=de.getById(t.environmentId),a=Object.entries(i?.variables??{}).find(([,e])=>e.key===r);if(!a){Me.add({severity:`warn`,summary:k(`variablesTable.editParentNotFound`),life:4e3});return}let[o,s]=a;Ne.value={key:r,environmentId:t.environmentId,environmentName:t.environmentName,variableId:o,value:s.value?.value??``,pre:s.value?.pre??``,post:s.value?.post??``,isSecret:s.value?.isSecret??!1,shareWithAi:s.value?.shareWithAi??!1,injectIntoAi:s.value?.injectIntoAi??!1,...s.tags?.length?{tags:s.tags}:{}},Re.value=[],Pe.value=!0,Be(r,t.environmentId)}async function Be(e,t){let n=++Le;Ie.value=!0;try{let r=de.currentProjectId;if(!r)return;let i=await de.keyUsages(r,e,t);if(n!==Le)return;Re.value=[...i.inheritedBy.map(e=>({kind:`inherits`,environmentName:e.environmentName,...e.serviceName?{serviceName:e.serviceName}:{}})),...i.definedIn.map(e=>({kind:`defines`,environmentName:e.environmentName,...e.serviceName?{serviceName:e.serviceName}:{}})),...i.referencedBy.map(e=>({kind:`references`,environmentName:e.environmentName,...e.serviceName?{serviceName:e.serviceName}:{},viaKey:e.key}))]}catch{n===Le&&(Re.value=[])}finally{n===Le&&(Ie.value=!1)}}async function Ve(){let e=Ne.value;if(e){Fe.value=!0;try{await de.upsertVariable(e.environmentId,e.variableId,{key:e.key,...e.tags?{tags:e.tags}:{},value:{value:e.value,pre:e.pre,post:e.post,isSecret:e.isSecret,shareWithAi:e.shareWithAi,injectIntoAi:e.injectIntoAi}}),Pe.value=!1,O(`variables-changed`)}catch(e){Me.add({severity:`error`,summary:k(`common.error`),detail:e.message,life:4e3})}finally{Fe.value=!1}}}function He(e){let t=R.value[e];return t?t.pre+t.value+t.post:``}let Ue=f(()=>{let e=[...Te.value];if(_e.value&&(e=e.filter(e=>!!R.value[e.variableId])),L.value.length&&(e=e.filter(e=>U.value.includes(e.variableId)||Xt(H(e.variableId),L.value))),I.value.trim()){let t=I.value.toLowerCase();e=e.filter(e=>{let n=B(e.variableId);if(!n)return!1;if(n.key.toLowerCase().includes(t)||H(e.variableId).some(e=>e.toLowerCase().includes(t))||(n.value?.value??``).toLowerCase().includes(t))return!0;let r=R.value[e.variableId];return!!(r&&r.value.toLowerCase().includes(t))})}if(De.value.length>0)e.sort((e,t)=>{let n=De.value.indexOf(e.variableId),r=De.value.indexOf(t.variableId);return n===-1?1:r===-1?-1:n-r});else{let t=e=>({key:B(e)?.key??``,tags:H(e)});e.sort((e,n)=>Yt(t(e.variableId),t(n.variableId)))}return e});function We(e){let t=e.data.variableId;W.value[t]?(W.value={},De.value=[],Ge(t)):(De.value=Ue.value.map(e=>e.variableId),W.value={[t]:!0})}function Ge(e){te(()=>{let t=Ee.value?.$el;if(!t)return;let n=Ue.value.findIndex(t=>t.variableId===e);n<0||t.querySelectorAll(`tbody tr[data-index]`)[n]?.scrollIntoView({block:`nearest`,behavior:`smooth`})})}function Ke(e){U.value=U.value.filter(t=>t!==e),W.value[e]&&(W.value={},De.value=[])}function qe(e){U.value=U.value.filter(t=>t!==e)}function Je(){let e=ue();U.value=[...U.value,e],De.value=[...Te.value.map(e=>e.variableId),e],te(()=>{W.value={[e]:!0},te(()=>{let e=document.querySelector(`.variables-expand-table .r-datatable__row-expansion:last-of-type`);e&&e.scrollIntoView({block:`nearest`,behavior:`smooth`})})})}function Ye(e){return g.test(e)}function Xe(e){let t=e.match(g);return t?t[1].replace(/^(?:environment|service)\./,``):e}function Ze(e){let t=e.match(S);if(t)return T.resolvedEnv[t[1]]??null;let n=e.match(g);if(n){let e={...C,...T.serviceBuiltins};if(e[n[1]])return e[n[1]]}return null}function Qe(e){return e.length<=Nn?e:e.substring(0,Nn)+`…`}return(t,a)=>(h(),l(_,null,[c(`div`,{ref_key:`rootRef`,ref:M,class:`variables-table`},[c(`div`,en,[r(e(w),{modelValue:I.value,"onUpdate:modelValue":a[0]||=e=>I.value=e,placeholder:`Search variables...`,class:`search-input`,size:`small`},null,8,[`modelValue`]),we.value.length?(h(),b(e(se),{key:0,modelValue:L.value,"onUpdate:modelValue":a[1]||=e=>L.value=e,options:we.value,placeholder:e(k)(`variablesTable.filterByTag`),display:`chip`,"max-selected-labels":2,"show-clear":``,size:`small`,class:`tag-filter`},null,8,[`modelValue`,`options`,`placeholder`])):x(``,!0),n.showOverrides?(h(),l(`div`,tn,[r(e(ae),{modelValue:_e.value,"onUpdate:modelValue":a[2]||=e=>_e.value=e,"input-id":`overrides-filter`},null,8,[`modelValue`]),c(`label`,nn,y(e(k)(`variablesTable.overriddenOnly`)),1)])):x(``,!0)]),r(e(le),{ref_key:`tableRef`,ref:Ee,"expanded-rows":W.value,"onUpdate:expandedRows":a[6]||=e=>W.value=e,value:Ue.value,"data-key":`variableId`,size:`small`,class:`variables-expand-table`,scrollable:``,"scroll-height":P.value,onRowClick:We},{empty:v(()=>[c(`div`,J,y(n.showAddButton?e(k)(`variablesTable.empty`):e(k)(`variablesTable.emptyReadonly`)),1)]),expansion:v(({data:t})=>[r(Jt,{"environment-id":n.environmentId,"variable-id":t.variableId,overrides:R.value,editable:n.editable,"show-overrides":n.showOverrides,"show-delete":n.showDelete,"show-override-badge":n.showOverrideBadge,disabled:n.disabled,"resolved-env":n.resolvedEnv,"autocomplete-enabled":n.autocompleteEnabled,"autocomplete-suggestions":n.autocompleteSuggestions,"autocomplete-meta":n.autocompleteMeta,"service-builtins":{...e(C),...n.serviceBuiltins},"is-pending":U.value.includes(t.variableId),"known-tags":V.value,onDeleted:e=>Ke(t.variableId),onSaved:e=>qe(t.variableId),onAutocompleteSearch:a[5]||=e=>O(`autocomplete-search`,e),onOverrideChanged:z,"can-edit-source":!!n.sources[t.variableId]?.resolvedFrom,onEditSource:e=>ze(t.variableId)},null,8,[`environment-id`,`variable-id`,`overrides`,`editable`,`show-overrides`,`show-delete`,`show-override-badge`,`disabled`,`resolved-env`,`autocomplete-enabled`,`autocomplete-suggestions`,`autocomplete-meta`,`service-builtins`,`is-pending`,`known-tags`,`onDeleted`,`onSaved`,`can-edit-source`,`onEditSource`])]),default:v(()=>[r(e(A),{expander:``,style:{width:`2.5rem`}}),r(e(A),{field:`variableId`,header:e(k)(`common.key`)},{body:v(({data:t})=>[c(`div`,Y,[c(`span`,X,[c(`code`,rn,y(B(t.variableId)?.key||`(new variable)`),1),n.sources[t.variableId]?.overriddenBy?(h(),l(`span`,{key:0,class:`overridden-badge overridden-badge--local`,title:e(k)(`variablesTable.localOverrideTooltip`,{env:n.sources[t.variableId].overriddenBy.environmentName})},[a[10]||=c(`i`,{class:`ti ti-device-desktop`},null,-1),i(` `+y(e(k)(`variablesTable.localOverride`)),1)],8,Z)):n.showOverrideBadge&&n.sources[t.variableId]?.overridden&&!Ye(B(t.variableId)?.value?.value??``)?(h(),l(`span`,{key:1,class:`overridden-badge`,title:e(k)(`variablesTable.overrideTooltip`)},[a[11]||=c(`i`,{class:`ti ti-alert-triangle`},null,-1),i(` `+y(e(k)(`variablesTable.override`)),1)],8,an)):x(``,!0)]),H(t.variableId).length?(h(),l(`span`,on,[(h(!0),l(_,null,u(B(t.variableId)?.tags??[],t=>(h(),b(e(E),{key:t,severity:`secondary`,value:t,class:`row-tag`},null,8,[`value`]))),128)),(h(!0),l(_,null,u(Ce(t.variableId),t=>s((h(),b(e(E),{key:`inherited:`+t,severity:`secondary`,value:t,class:`row-tag row-tag--inherited`},null,8,[`value`])),[[e(j),e(k)(`variablesTable.inheritedTag`),void 0,{top:!0}]])),128))])):x(``,!0),fe.value&&n.sources[t.variableId]?(h(),b(ve,{key:1,"environment-id":n.sources[t.variableId].environmentId,class:`source-badge`},null,8,[`environment-id`])):x(``,!0),fe.value&&n.sources[t.variableId]?.resolvedFrom?(h(),l(`span`,sn,[a[12]||=c(`i`,{class:`ti ti-arrow-right resolved-from-arrow`},null,-1),r(ve,{"environment-id":n.sources[t.variableId].resolvedFrom.environmentId,class:`source-badge`},null,8,[`environment-id`])])):x(``,!0)])]),_:1},8,[`header`]),r(e(A),{header:e(k)(`common.value`)},{body:v(({data:t})=>[c(`span`,cn,[je(t.variableId)?(h(),l(`span`,{key:0,class:`value-actions`,onClick:a[3]||=ne(()=>{},[`stop`])},[B(t.variableId)?.value?.isSecret?(h(),l(`i`,{key:0,class:d([G.value.has(t.variableId)?`ti ti-eye-off`:`ti ti-eye`,`action-icon`]),title:e(k)(`variablesTable.reveal`),onClick:e=>Oe(t.variableId)},null,10,ln)):x(``,!0),c(`i`,{class:d([ke.value===t.variableId?`ti ti-check`:`ti ti-copy`,`action-icon`]),title:e(k)(`actions.copy`),onClick:e=>Ae(t.variableId,je(t.variableId))},null,10,un)])):x(``,!0),Ye(B(t.variableId)?.value?.value??``)&&Ze(B(t.variableId)?.value?.value??``)!=null?(h(),l(`span`,dn,[r(e(E),{severity:`secondary`,value:Xe(B(t.variableId)?.value?.value??``),class:`interpolation-hint-tag`},null,8,[`value`]),c(`span`,Q,[B(t.variableId)?.value?.isSecret&&!G.value.has(t.variableId)?(h(),l(`span`,fn,`***`)):(h(),l(`code`,{key:1,class:`resolved-final`,title:Ze(B(t.variableId)?.value?.value??``)},y(Qe(Ze(B(t.variableId)?.value?.value??``))),9,$))])])):Ye(B(t.variableId)?.value?.value??``)&&me.value&&Ze(B(t.variableId)?.value?.value??``)==null?(h(),l(_,{key:2},[a[13]||=c(`i`,{class:`ti ti-alert-triangle unresolved-icon`},null,-1),r(e(E),{severity:`secondary`,value:Xe(B(t.variableId)?.value?.value??``)},null,8,[`value`]),a[14]||=c(`span`,{class:`unresolved-msg`},`Variable not found in this environment`,-1)],64)):Ye(B(t.variableId)?.value?.value??``)?(h(),b(e(E),{key:3,severity:`secondary`,value:Xe(B(t.variableId)?.value?.value??``)},null,8,[`value`])):B(t.variableId)?.value?.isSecret?(h(),l(_,{key:4},[G.value.has(t.variableId)?(h(),l(`code`,{key:1,title:je(t.variableId)},y(Qe(je(t.variableId))),9,mn)):(h(),l(`span`,pn,`***`))],64)):B(t.variableId)?.value?.value||B(t.variableId)?.value?.pre||B(t.variableId)?.value?.post?(h(),l(`code`,{key:5,title:je(t.variableId)},y(Qe(je(t.variableId))),9,hn)):(h(),l(`span`,gn,`(empty)`))]),n.showOverrides&&!Ye(B(t.variableId)?.value?.value??``)&&R.value[t.variableId]?(h(),l(`span`,_n,[a[15]||=c(`i`,{class:`ti ti-arrow-right`,style:{"font-size":`0.7rem`}},null,-1),c(`span`,{class:`value-actions`,onClick:a[4]||=ne(()=>{},[`stop`])},[B(t.variableId)?.value?.isSecret||R.value[t.variableId].isSecret?(h(),l(`i`,{key:0,class:d([G.value.has(`ovr:`+t.variableId)?`ti ti-eye-off`:`ti ti-eye`,`action-icon`]),title:e(k)(`variablesTable.reveal`),onClick:e=>Oe(`ovr:`+t.variableId)},null,10,vn)):x(``,!0),c(`i`,{class:d([ke.value===`ovr:`+t.variableId?`ti ti-check`:`ti ti-copy`,`action-icon`]),title:e(k)(`actions.copy`),onClick:e=>Ae(`ovr:`+t.variableId,He(t.variableId))},null,10,yn)]),B(t.variableId)?.value?.isSecret||R.value[t.variableId].isSecret?(h(),l(_,{key:0},[G.value.has(`ovr:`+t.variableId)?(h(),l(`code`,{key:1,class:`override-value`,title:He(t.variableId)},y(Qe(He(t.variableId))),9,xn)):(h(),l(`span`,bn,`***`))],64)):(h(),l(`code`,{key:1,class:`override-value`,title:He(t.variableId)},y(Qe(He(t.variableId))),9,Sn))])):x(``,!0)]),_:1},8,[`header`])]),_:1},8,[`expanded-rows`,`value`,`scroll-height`]),n.showAddButton?(h(),b(e(ce),{key:0,type:`button`,label:e(k)(`variablesTable.addVariable`),icon:`ti ti-plus`,variant:`text`,disabled:n.disabled,class:`mt-3`,onClick:Je},null,8,[`label`,`disabled`])):x(``,!0)],512),r(e(oe),{visible:Pe.value,"onUpdate:visible":a[9]||=e=>Pe.value=e,modal:``,header:e(k)(`variablesTable.editParentHeader`),style:{width:`38rem`,maxWidth:`95vw`}},{footer:v(()=>[r(e(ce),{label:e(k)(`actions.cancel`),variant:`text`,disabled:Fe.value,onClick:a[8]||=e=>Pe.value=!1},null,8,[`label`,`disabled`]),r(e(ce),{label:e(k)(`variablesTable.editParentConfirm`),severity:`warn`,loading:Fe.value,onClick:Ve},null,8,[`label`,`loading`])]),default:v(()=>[Ne.value?(h(),l(`div`,Cn,[r(e(D),{severity:`warn`,class:`parent-edit__warning`},{default:v(()=>[i(y(e(k)(`variablesTable.editParentWarning`,{key:Ne.value.key,env:Ne.value.environmentName})),1)]),_:1}),c(`div`,wn,[c(`label`,Tn,y(e(k)(`common.value`)),1),r(e(w),{id:`parent-edit-value`,modelValue:Ne.value.value,"onUpdate:modelValue":a[7]||=e=>Ne.value.value=e,class:`w-full`,disabled:Fe.value},null,8,[`modelValue`,`disabled`])]),c(`div`,En,[c(`div`,Dn,[a[16]||=c(`i`,{class:`ti ti-sitemap`},null,-1),i(` `+y(e(k)(`variablesTable.editParentImpact`)),1)]),Ie.value?(h(),l(`div`,On,[a[17]||=c(`i`,{class:`ti ti-spin ti-loader-2`},null,-1),c(`span`,null,y(e(k)(`variablesTable.editParentLoading`)),1)])):(h(),l(_,{key:1},[Re.value.length?(h(),l(`ul`,kn,[(h(!0),l(_,null,u(Re.value,(t,n)=>(h(),l(`li`,{key:n},[r(e(E),{severity:t.kind===`references`?`info`:`secondary`,value:t.kind===`references`?t.viaKey:t.kind===`inherits`?e(k)(`variablesTable.editParentInherits`):e(k)(`variablesTable.editParentDefines`)},null,8,[`severity`,`value`]),c(`span`,An,y(t.environmentName),1),t.serviceName?(h(),l(`span`,jn,y(t.serviceName),1)):x(``,!0)]))),128))])):(h(),l(`div`,Mn,y(e(k)(`variablesTable.editParentNoUsage`)),1))],64))])])):x(``,!0)]),_:1},8,[`visible`,`header`])],64))}}),[[`__scopeId`,`data-v-1d1460fd`]]);function Ln(e,t){let n=fe(),r=C(),i=P(),a=f(()=>{let t=n.getByRef({id:e(),orgId:r.activeOrgId});return t?t.serviceIds.map(e=>i.getById(e)).filter(e=>!!e):[]});return f(()=>{let e=M(a.value.map(e=>e.name)),n={};for(let r of a.value){let i=me(r.name);i&&!e.has(i)&&Object.assign(n,N({name:r.name,id:r.id,ports:r.ports,localUrls:r.localUrls,url:r.url},t()))}return n})}function Rn(e){let t=F(),n=pe(),r=fe(),i=C(),a=f(()=>{let r=e.environmentId()?n.getById(e.environmentId())?.agentId:void 0,i=e.agentId?.()??r;return i?t.getById(i):t.agents.find(e=>e.isLocal)??null}),{urlHost:o,serverHost:s}=I(()=>a.value?.config.id),c=Ln(e.projectId,()=>o.value);return{values:f(()=>{let t={};for(let e of he)t[e.name]=``;t[`runeya.HOST`]=s.value;let o=a.value?.status;o?.lanIp&&(t[`agent.HOST_LAN`]=o.lanIp),o?.os&&(t[`agent.OS`]=o.os),o?.home&&(t[`agent.HOME`]=o.home),a.value&&(t[`agent.NAME`]=a.value.config.name);let l=r.getByRef({id:e.projectId(),orgId:i.activeOrgId});l&&(t[`project.NAME`]=l.name);let u=e.environmentId()?n.getById(e.environmentId()):null;return u&&(t[`runeya.ENV_NAME`]=u.name),Object.assign(t,c.value),t}),agentEntry:a,urlHost:o}}function zn(e){let n=t([]),r=t({});function i(t){let i=e();if(!i)return;let a=t.toLowerCase(),o=Object.keys(i.env).filter(e=>e.toLowerCase().includes(a));n.value=o;let s=i.variables,c={};if(s)for(let e of o){let t=Object.values(s).find(t=>t.key===e);t&&(c[e]={key:e,isSecret:t.value?.isSecret??!1,pre:t.value?.pre??``,post:t.value?.post??``})}r.value=c}return{suggestions:n,meta:r,search:i}}export{ve as a,ye as i,Rn as n,In as r,zn as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{g as t}from"./runtime-core.esm-bundler-DujKY9QV.js";import{n}from"./vue-i18n-o7yraQpR.js";import{r}from"./trpc-
|
|
1
|
+
import{C as e}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{g as t}from"./runtime-core.esm-bundler-DujKY9QV.js";import{n}from"./vue-i18n-o7yraQpR.js";import{r}from"./trpc-Bjh9h1Bw.js";import{n as i}from"./project.store-BNtSmm00.js";import{n as a}from"./cloud-auth-D_am4FlK.js";import{n as o,r as s}from"./cloud-session-Bhm8ajyD.js";import{n as c}from"./cloud-client-BtgYZuNG.js";var l=e({}),u=null;function d(){return u??=r.cloudSync.orgClouds.query().then(e=>{l.value=e}).catch(()=>{}),l}var f=e({}),p=null;function m(){return p??=r.cloudSync.orgLogos.query().then(e=>{f.value=e}).catch(()=>{}),f}async function h(e){if(e.length)try{await r.cloudSync.cacheOrgLogos.mutate({orgIds:e}),f.value=await r.cloudSync.orgLogos.query()}catch{}}function g(e,t){return`${(t??a()).replace(/\/+$/,``)}/api/org-logo/${encodeURIComponent(e)}`}function _(){let{t:l}=n(),u=i(),{accounts:d,orgAccounts:f,isLinked:p,refresh:m}=s(),g=e([]),_=e(!1),v=e(``),y=e({});async function b(){try{y.value=await r.cloudSync.orgNames.query()}catch{}}b();let x=t(()=>{let e=new Map;for(let t of u.projects){if(!t.orgId)continue;let n=f.value[t.orgId],r=e.get(t.orgId)??{orgId:t.orgId,name:``,projects:[],...n?{accountId:n}:{}};r.projects.push({projectId:t.id,name:t.name,local:!0}),e.set(t.orgId,r)}for(let t of g.value){let n=e.get(t.orgId)??{orgId:t.orgId,name:t.name,projects:[]};n.name=t.name,t.accountId&&(n.accountId=t.accountId),n.canDelete=t.canDelete;for(let e of t.projects)n.projects.some(t=>t.projectId===e.projectId)||n.projects.push(e);e.set(t.orgId,n)}for(let t of e.values())t.name||=y.value[t.orgId]??``,t.name||=l(`projectSwitcher.unknownOrg`,{id:t.orgId.slice(0,8)}),t.projects.sort((e,t)=>e.name.localeCompare(t.name));return[...e.values()]});async function S(){if(v.value=``,!p.value){g.value=[];return}_.value=!0;try{let e=new Set(u.projects.map(e=>e.id)),t;try{t=await o()}catch{throw Error(l(`projectSwitcher.orgsFailed`))}h(t.map(e=>e.id)),g.value=await Promise.all(t.map(async t=>{let n=await c.$fetch(`/project/list`,{method:`GET`,query:{organizationId:t.id},accountId:t.accountId});return{orgId:t.id,name:t.name,accountId:t.accountId,canDelete:n.data?.canDelete??!0,projects:(n.data?.projects??[]).map(t=>({projectId:t.projectId,name:t.name,local:e.has(t.projectId)}))}}))}catch(e){v.value=e instanceof Error?e.message:String(e)}finally{_.value=!1}}async function C(e,t,n){if(u.getByRef({id:t,orgId:e}))return;let i=d.value.find(e=>e.id===n),o=await r.cloudSync.trackProject.mutate({orgId:e,cloudUrl:i?.cloudUrl??a(),projectId:t,...n?{accountId:n}:{}});await w(e,t,o.state,o.pulled),await m()}async function w(e,t,n,r){if(!r&&n!==`live`)throw Object.assign(Error(T(n)),{syncState:n});for(let n=0;n<20;n++){if(await u.fetchAll(),u.getByRef({id:t,orgId:e}))return;await new Promise(e=>setTimeout(e,250))}throw Object.assign(Error(T(n)),{syncState:n})}function T(e){return l(e===`unauthenticated`?`projectSwitcher.syncPaused`:e===`outdated`?`projectSwitcher.syncOutdated`:e===`key-mismatch`?`projectSwitcher.syncKeyMismatch`:`projectSwitcher.pullTimeout`)}function E(e,t){let n=g.value.find(t=>t.orgId===e)?.projects.find(e=>e.projectId===t);n&&(n.local=!1)}return{orgGroups:x,loading:_,error:v,refreshCloud:S,pullProject:C,markUntracked:E}}export{m as i,g as n,d as r,_ as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as e}from"./runtime-core.esm-bundler-DujKY9QV.js";import{n as t}from"./project-launch.store-
|
|
1
|
+
import{g as e}from"./runtime-core.esm-bundler-DujKY9QV.js";import{n as t}from"./project-launch.store-BSRFtV56.js";import{n}from"./project.store-BNtSmm00.js";import{t as r}from"./open-project-org-BNDadG2_.js";import{r as i}from"./cloud-session-Bhm8ajyD.js";function a(){let{user:a,currentAccount:o,loading:s,accountPending:c}=i(),l=n(),u=t(),d=e(()=>r(u,l)),f=e(()=>!!d.value&&o.value!==null),p=e(()=>f.value?d.value:``),m=e(()=>!!d.value&&!f.value&&(s.value||c.value)),h=e(()=>!!p.value||m.value);return{orgId:p,available:h,unavailability:e(()=>h.value?null:d.value?`not-member`:`local-project`),cloudUser:a}}export{a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{ct as t,g as n}from"./runtime-core.esm-bundler-DujKY9QV.js";import{r}from"./trpc-
|
|
1
|
+
import{C as e}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{ct as t,g as n}from"./runtime-core.esm-bundler-DujKY9QV.js";import{r}from"./trpc-Bjh9h1Bw.js";import{_ as i}from"./dist-DWtN-uEL.js";import{t as a}from"./agent.store-D2JRzoy4.js";function o(o){let s=a(),c=n(()=>{let e=o?.();return e?s.getById(e):s.agents.find(e=>e.isLocal)??null}),l=e(`localhost`);return t(async()=>{try{l.value=(await r.settings.getNetwork.query()).host}catch{}}),{serverHost:l,urlHost:n(()=>i(l.value)||(c.value?.status.lanIp??`localhost`)),agent:c}}export{o as t};
|
package/web/index.html
CHANGED
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
content="width=device-width, initial-scale=1.0, interactive-widget=resizes-content"
|
|
16
16
|
/>
|
|
17
17
|
<title>Runeya</title>
|
|
18
|
-
<script type="module" crossorigin src="/assets/index-
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-mw_aqDEg.js"></script>
|
|
19
19
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-Dd_uD5pT.js">
|
|
20
20
|
<link rel="modulepreload" crossorigin href="/assets/reactivity.esm-bundler-BQ9SB2vv.js">
|
|
21
21
|
<link rel="modulepreload" crossorigin href="/assets/runtime-core.esm-bundler-DujKY9QV.js">
|
|
22
22
|
<link rel="modulepreload" crossorigin href="/assets/runtime-dom.esm-bundler-CyEVRK6B.js">
|
|
23
23
|
<link rel="modulepreload" crossorigin href="/assets/vue-i18n-o7yraQpR.js">
|
|
24
24
|
<link rel="modulepreload" crossorigin href="/assets/preload-helper-BZ1Pz5am.js">
|
|
25
|
-
<link rel="modulepreload" crossorigin href="/assets/auth-
|
|
26
|
-
<link rel="modulepreload" crossorigin href="/assets/trpc-
|
|
27
|
-
<link rel="modulepreload" crossorigin href="/assets/project-launch.store-
|
|
25
|
+
<link rel="modulepreload" crossorigin href="/assets/auth-BJnC0IgZ.js">
|
|
26
|
+
<link rel="modulepreload" crossorigin href="/assets/trpc-Bjh9h1Bw.js">
|
|
27
|
+
<link rel="modulepreload" crossorigin href="/assets/project-launch.store-BSRFtV56.js">
|
|
28
28
|
<link rel="modulepreload" crossorigin href="/assets/i18n-YdGGLQ4Z.js">
|
|
29
29
|
<link rel="modulepreload" crossorigin href="/assets/useApi-s_02lHjl-DZYO2tHU.js">
|
|
30
30
|
<link rel="modulepreload" crossorigin href="/assets/devtools-DCoWQoU_-D2vs4YXr.js">
|
|
@@ -32,44 +32,44 @@
|
|
|
32
32
|
<link rel="modulepreload" crossorigin href="/assets/floating-ui.dom-DF3oyfHd.js">
|
|
33
33
|
<link rel="modulepreload" crossorigin href="/assets/src-q8L6Eojs.js">
|
|
34
34
|
<link rel="modulepreload" crossorigin href="/assets/error-DpF7X5iu.js">
|
|
35
|
-
<link rel="modulepreload" crossorigin href="/assets/project.store-
|
|
35
|
+
<link rel="modulepreload" crossorigin href="/assets/project.store-BNtSmm00.js">
|
|
36
36
|
<link rel="modulepreload" crossorigin href="/assets/use-polling-CEkhIY_9.js">
|
|
37
37
|
<link rel="modulepreload" crossorigin href="/assets/useAiChatDrawer-D_ofn8Eo.js">
|
|
38
|
-
<link rel="modulepreload" crossorigin href="/assets/settings-scope-
|
|
38
|
+
<link rel="modulepreload" crossorigin href="/assets/settings-scope-BjDZPZ3N.js">
|
|
39
39
|
<link rel="modulepreload" crossorigin href="/assets/schemas-68I2iCLF.js">
|
|
40
40
|
<link rel="modulepreload" crossorigin href="/assets/dist-DWtN-uEL.js">
|
|
41
|
-
<link rel="modulepreload" crossorigin href="/assets/service.store-
|
|
42
|
-
<link rel="modulepreload" crossorigin href="/assets/notification.store-
|
|
43
|
-
<link rel="modulepreload" crossorigin href="/assets/scenario.store-
|
|
41
|
+
<link rel="modulepreload" crossorigin href="/assets/service.store-BUGRO57M.js">
|
|
42
|
+
<link rel="modulepreload" crossorigin href="/assets/notification.store-DOOI3MjO.js">
|
|
43
|
+
<link rel="modulepreload" crossorigin href="/assets/scenario.store-DlePkebV.js">
|
|
44
44
|
<link rel="modulepreload" crossorigin href="/assets/app-mode-BVpTuh0i.js">
|
|
45
45
|
<link rel="modulepreload" crossorigin href="/assets/w3c-keyname-BOAvb0qz.js">
|
|
46
46
|
<link rel="modulepreload" crossorigin href="/assets/src-BQgMiizJ.js">
|
|
47
47
|
<link rel="modulepreload" crossorigin href="/assets/cloud-auth-D_am4FlK.js">
|
|
48
48
|
<link rel="modulepreload" crossorigin href="/assets/open-project-org-BNDadG2_.js">
|
|
49
|
-
<link rel="modulepreload" crossorigin href="/assets/cloud-session-
|
|
50
|
-
<link rel="modulepreload" crossorigin href="/assets/cloud-client-
|
|
51
|
-
<link rel="modulepreload" crossorigin href="/assets/useProjectCatalog-
|
|
49
|
+
<link rel="modulepreload" crossorigin href="/assets/cloud-session-Bhm8ajyD.js">
|
|
50
|
+
<link rel="modulepreload" crossorigin href="/assets/cloud-client-BtgYZuNG.js">
|
|
51
|
+
<link rel="modulepreload" crossorigin href="/assets/useProjectCatalog-CwkmZ3WO.js">
|
|
52
52
|
<link rel="modulepreload" crossorigin href="/assets/uuid-B2pLMyOM.js">
|
|
53
|
-
<link rel="modulepreload" crossorigin href="/assets/src-
|
|
53
|
+
<link rel="modulepreload" crossorigin href="/assets/src-C3l-wx83.js">
|
|
54
54
|
<link rel="modulepreload" crossorigin href="/assets/editor.api-Bef3xeth.js">
|
|
55
55
|
<link rel="modulepreload" crossorigin href="/assets/toggleHighContrast-Dqz1Qao1.js">
|
|
56
56
|
<link rel="modulepreload" crossorigin href="/assets/register-BLGIM2pN.js">
|
|
57
|
-
<link rel="modulepreload" crossorigin href="/assets/agent.store-
|
|
58
|
-
<link rel="modulepreload" crossorigin href="/assets/AiChatModals-
|
|
59
|
-
<link rel="modulepreload" crossorigin href="/assets/useProjectCloudOrg-
|
|
60
|
-
<link rel="modulepreload" crossorigin href="/assets/src-
|
|
61
|
-
<link rel="modulepreload" crossorigin href="/assets/SendToChatDialog-
|
|
57
|
+
<link rel="modulepreload" crossorigin href="/assets/agent.store-D2JRzoy4.js">
|
|
58
|
+
<link rel="modulepreload" crossorigin href="/assets/AiChatModals-DhEPCgEd.js">
|
|
59
|
+
<link rel="modulepreload" crossorigin href="/assets/useProjectCloudOrg-Pjawbsyf.js">
|
|
60
|
+
<link rel="modulepreload" crossorigin href="/assets/src-CWoId-05.js">
|
|
61
|
+
<link rel="modulepreload" crossorigin href="/assets/SendToChatDialog-BIR41blV.js">
|
|
62
62
|
<link rel="modulepreload" crossorigin href="/assets/process-C53v1rNU.js">
|
|
63
63
|
<link rel="modulepreload" crossorigin href="/assets/theme-BZCAxfJD.js">
|
|
64
64
|
<link rel="stylesheet" crossorigin href="/assets/src-D9bzjqzP.css">
|
|
65
65
|
<link rel="stylesheet" crossorigin href="/assets/scenario-DOeZsRCE.css">
|
|
66
66
|
<link rel="stylesheet" crossorigin href="/assets/src-ByZ6iA0V.css">
|
|
67
|
-
<link rel="stylesheet" crossorigin href="/assets/src-
|
|
67
|
+
<link rel="stylesheet" crossorigin href="/assets/src-BdEmIwU1.css">
|
|
68
68
|
<link rel="stylesheet" crossorigin href="/assets/editor-8AbsNvUX.css">
|
|
69
69
|
<link rel="stylesheet" crossorigin href="/assets/toggleHighContrast--ixms01u.css">
|
|
70
70
|
<link rel="stylesheet" crossorigin href="/assets/AiChatModals-DS5R3Oz1.css">
|
|
71
|
-
<link rel="stylesheet" crossorigin href="/assets/src-
|
|
72
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
71
|
+
<link rel="stylesheet" crossorigin href="/assets/src-DjsvCWRW.css">
|
|
72
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BsoCoZZ8.css">
|
|
73
73
|
</head>
|
|
74
74
|
<body>
|
|
75
75
|
<div id="app"></div>
|