@miravo/cli-linux-x64 0.7.10 → 0.8.1
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/console-dist/assets/{api-2XqCNjt9.js → api-5BZroqlO.js} +1 -1
- package/console-dist/assets/api-BwgmLQCC.js +1 -0
- package/console-dist/assets/{catalog-rF7BRyRf.js → catalog-B477tO5a.js} +1 -1
- package/console-dist/assets/catalog-BRYmHbXV.js +1 -0
- package/console-dist/assets/{catalog-source-wSZa7UAP.js → catalog-source-DL6GXE84.js} +1 -1
- package/console-dist/assets/control-Dc6xLiUf.js +1 -0
- package/console-dist/assets/control-HqgjVMLG.js +1 -0
- package/console-dist/assets/events-BvwhACji.js +1 -0
- package/console-dist/assets/{events-B8fp1TQW.js → events-przfMV9x.js} +1 -1
- package/console-dist/assets/{fleet-CHhiI7Fk.js → fleet-C2Ipwzu5.js} +1 -1
- package/console-dist/assets/fleet-D3Y6h1O_.js +1 -0
- package/console-dist/assets/{get-error-message-BanmV5rD.js → get-error-message-CFs0lSQP.js} +1 -1
- package/console-dist/assets/index-AfBFCD9D.js +12 -0
- package/console-dist/assets/{instance-detail-CKgv3XYh.js → instance-detail-CQ6RO9hI.js} +1 -1
- package/console-dist/assets/{login-BaheB47i.js → login-CtfweHfy.js} +1 -1
- package/console-dist/assets/models-C57soXUz.js +1 -0
- package/console-dist/assets/models-CX3jQBRk.js +1 -0
- package/console-dist/assets/platforms-DMUEIKyH.js +1 -0
- package/console-dist/assets/{platforms-BXHQU4vT.js → platforms-nMtu3Mg5.js} +1 -1
- package/console-dist/assets/{query-fetch-error-xB4By0m0.js → query-fetch-error-2yqCNP9X.js} +1 -1
- package/console-dist/assets/spawn-protocol-scope-picker-DUXJ8giB.js +1 -0
- package/console-dist/assets/tabs-D64chVAn.js +1 -0
- package/console-dist/assets/tags-BbNGPS4O.js +1 -0
- package/console-dist/assets/{tags-CeGPTgMJ.js → tags-Cl6Nj2-E.js} +2 -2
- package/console-dist/assets/{transition-nav-link-BtuFK_Y8.js → transition-nav-link-CDSeWWsP.js} +1 -1
- package/console-dist/assets/{use-engine-command-mutation-Ct9NCDug.js → use-engine-command-mutation-CIly3RgV.js} +1 -1
- package/console-dist/assets/{use-platform-stream-BzqGhuJn.js → use-platform-stream-BBDJCrNY.js} +2 -2
- package/console-dist/assets/use-transition-navigate-Bxh77tVE.js +2 -0
- package/console-dist/assets/validation-Bt4EQDja.js +1 -0
- package/console-dist/index.html +21 -20
- package/miravo +0 -0
- package/package.json +1 -1
- package/console-dist/assets/api-DlgMZi_j.js +0 -1
- package/console-dist/assets/catalog-B1GRab9-.js +0 -1
- package/console-dist/assets/control-BOmPym_s.js +0 -1
- package/console-dist/assets/control-RK2dbhks.js +0 -1
- package/console-dist/assets/events-CVYbXGE4.js +0 -1
- package/console-dist/assets/fleet-DxLj0dPT.js +0 -1
- package/console-dist/assets/index-MRs9-toM.js +0 -12
- package/console-dist/assets/models-BygeZ9lv.js +0 -1
- package/console-dist/assets/models-CTVXBFYW.js +0 -1
- package/console-dist/assets/platforms-BHZA9Eg3.js +0 -1
- package/console-dist/assets/tabs-CDS57-lB.js +0 -1
- package/console-dist/assets/tags-CmPY4kaf.js +0 -1
- package/console-dist/assets/use-transition-navigate-D3JSD38W.js +0 -2
- package/console-dist/assets/validation-CCE5LmjQ.js +0 -1
- /package/console-dist/assets/{not-found-BbQLiHmm.js → not-found-Dw4OTZHH.js} +0 -0
- /package/console-dist/assets/{select-display-items-y2L7MHmk.js → select-display-items-Bqb6Sbg6.js} +0 -0
- /package/console-dist/assets/{vendor-table-SVvT6QrW.js → vendor-table-BAHQgdwg.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./rolldown-runtime-COnpUsM8.js";import{c as t}from"./vendor-charts-95ykyDlI.js";import{at as n}from"./vendor-ui-CWUk2ulb.js";import{M as r,O as i,S as a,k as o,o as s,v as ee}from"./api-2XqCNjt9.js";import{i as te,t as c}from"./query-fetch-error-xB4By0m0.js";import{t as l}from"./proxy-Be4WzmcS.js";import{t as u}from"./AnimatePresence-CPmH1DMY.js";import{a as ne,i as re,l as ie,n as ae,o as d,r as f,s as p}from"./copy-button-DnGsXbVV.js";import{C as m,S as h,_ as g,c as oe,d as _,u as v}from"./format-B9CcV2dj.js";import{n as y,t as b}from"./utils-XFKvwlFT.js";import{t as x}from"./activity-Cy_niK56.js";import{M as S,P as C,j as se,n as w,t as T}from"./use-platform-stream-BzqGhuJn.js";import{l as E}from"./select-CMOnuEoT.js";import{i as D,n as O,r as k,t as A}from"./tabs-CDS57-lB.js";import{r as ce}from"./checkbox-C84IyqEB.js";import{a as le,c as j,d as M,i as ue,l as N,n as P,o as F,r as I,s as L,t as de,u as R}from"./catalog-source-wSZa7UAP.js";import{c as z,n as B,r as fe,s as V,t as pe}from"./use-engine-command-mutation-Ct9NCDug.js";import{t as me}from"./triangle-alert-BXrJNk3g.js";import{t as H}from"./badge-i00PiRCo.js";import{t as he}from"./label-DTHSKF2S.js";import{n as ge}from"./get-error-message-BanmV5rD.js";var U=y(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),_e=y(`cog`,[[`path`,{d:`M11 10.27 7 3.34`,key:`16pf9h`}],[`path`,{d:`m11 13.73-4 6.93`,key:`794ttg`}],[`path`,{d:`M12 22v-2`,key:`1osdcq`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M14 12h8`,key:`4f43i9`}],[`path`,{d:`m17 20.66-1-1.73`,key:`eq3orb`}],[`path`,{d:`m17 3.34-1 1.73`,key:`2wel8s`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`m20.66 17-1.73-1`,key:`sg0v6f`}],[`path`,{d:`m20.66 7-1.73 1`,key:`1ow05n`}],[`path`,{d:`m3.34 17 1.73-1`,key:`nuk764`}],[`path`,{d:`m3.34 7 1.73 1`,key:`1ulond`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`circle`,{cx:`12`,cy:`12`,r:`8`,key:`46899m`}]]),W=y(`heart-pulse`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}],[`path`,{d:`M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27`,key:`auskq0`}]]),G=y(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),K=y(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),q=e(t(),1),J=n(),Y=new Set([`fault_active`,`fault_count`,`active_fault_code`,`lifecycle_stage`,`health_state`,`availability_state`]);function X(e){let t=[],n=[],r=[],i=[];for(let[a,o]of Object.entries(e)){let e={name:a,kind:o.kind,dataType:o.dataType,access:o.access,unit:o.unit,euRange:o.euRange};Y.has(a)?i.push(e):o.kind===`property`?t.push(e):o.access===`readwrite`?n.push(e):r.push(e)}let a=[];return t.length>0&&a.push({key:`nameplate`,label:`Nameplate`,icon:(0,J.jsx)(R,{className:`size-3`}),members:t,accentClass:`text-muted-foreground`}),n.length>0&&a.push({key:`commands`,label:`Commands`,icon:(0,J.jsx)(G,{className:`size-3`}),members:n,accentClass:`text-info`}),r.length>0&&a.push({key:`process`,label:`Process Tags`,icon:(0,J.jsx)(x,{className:`size-3`}),members:r,accentClass:`text-primary`}),i.length>0&&a.push({key:`health`,label:`Health & Status`,icon:(0,J.jsx)(W,{className:`size-3`}),members:i,accentClass:`text-success`}),a}function ve({modelName:e,onClose:t}){let[n,r]=(0,q.useState)(new Set([`nameplate`,`process`])),i=te({queryKey:ee.catalog.modelSchema(e??``),queryFn:()=>s(`/catalog/models/${e}`,a.catalogModelDetail),enabled:e!==null}),o=i.data,u=i.isPending&&!o,ne=i.isError,re=ge(i.error,`Failed to load model.`);(0,q.useEffect)(()=>{e&&r(new Set([`nameplate`,`process`]))},[e]);let ae=(0,q.useMemo)(()=>o?X(o.members):[],[o]),d=(0,q.useCallback)(e=>{r(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),f=T(),p=f.status===`running`,m=o?Object.keys(o.members).length:0,h=o?Object.keys(o.methods).length:0;return(0,J.jsx)(le,{open:e!==null,onOpenChange:e=>{if(!e){if(p){ie.message(`Deploy still running. Cancel it or wait before closing.`);return}f.reset(),t()}},children:(0,J.jsx)(F,{side:`right`,showCloseButton:!p,className:`flex w-full flex-col gap-4 touch-manipulation`,children:u?null:ne&&!o?(0,J.jsx)(`div`,{className:`flex flex-1 flex-col justify-center px-2`,children:(0,J.jsx)(c,{message:re,onRetry:()=>void i.refetch(),isRetrying:i.isFetching})}):o?(0,J.jsxs)(l.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.18},className:`flex min-h-0 flex-1 flex-col gap-4`,children:[(0,J.jsxs)(j,{className:`gap-1 pb-0 pe-12`,children:[(0,J.jsx)(N,{className:`font-heading text-base uppercase tracking-wide`,children:_(o.name)}),o.description&&(0,J.jsx)(L,{className:`text-xs leading-relaxed text-foreground/88`,children:o.description}),(0,J.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-2`,children:[(0,J.jsxs)(H,{variant:`outline`,className:`font-mono text-xs`,children:[m,` members`]}),(0,J.jsxs)(H,{variant:`outline`,className:`font-mono text-xs`,children:[h,` methods`]}),(0,J.jsxs)(H,{variant:`outline`,className:`font-mono text-xs`,children:[o.faults.length,` faults`]}),o.lifecycle&&(0,J.jsxs)(H,{variant:`outline`,className:`font-mono text-xs text-primary`,children:[o.lifecycle.stages.length,`-stage lifecycle`]}),(0,J.jsx)(w,{stream:f})]})]}),(0,J.jsxs)(A,{defaultValue:`overview`,className:`flex min-h-0 flex-1 flex-col gap-1 pt-0`,children:[(0,J.jsxs)(k,{variant:`line`,className:`h-8! shrink-0 gap-0.5 border-b-border/60 px-2 py-0.5`,children:[(0,J.jsx)(D,{value:`overview`,className:`min-h-10 px-2 py-1 text-xs text-foreground/82 after:bottom-[-3px] data-active:text-foreground sm:min-h-0 sm:px-2.5 sm:py-1`,children:`Overview`}),(0,J.jsx)(D,{value:`deploy`,className:`min-h-10 px-2 py-1 text-xs text-foreground/82 after:bottom-[-3px] data-active:text-foreground sm:min-h-0 sm:px-2.5 sm:py-1`,children:`Deploy`})]}),(0,J.jsx)(O,{value:`overview`,keepMounted:!0,className:`flex min-h-0 flex-1 flex-col`,children:(0,J.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col px-3 pt-0`,children:(0,J.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto pr-2`,children:(0,J.jsxs)(`div`,{className:`flex flex-col gap-1.5 pb-1 pt-0.5`,children:[ae.map(e=>(0,J.jsx)(Z,{sectionKey:e.key,label:e.label,count:e.members.length,icon:e.icon,accentClass:e.accentClass,expanded:n.has(e.key),onToggle:d,children:(0,J.jsx)(`div`,{className:`flex flex-col gap-1`,children:e.members.map(e=>(0,J.jsx)(Q,{member:e},e.name))})},e.key)),o.faults.length>0&&(0,J.jsx)(Z,{sectionKey:`faults`,label:`Faults`,count:o.faults.length,icon:(0,J.jsx)(me,{className:`size-3`}),accentClass:`text-warning`,expanded:n.has(`faults`),onToggle:d,children:(0,J.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:o.faults.map(e=>(0,J.jsx)(H,{variant:`secondary`,className:`text-[10px] text-warning`,children:g(e)},e))})}),o.lifecycle&&(0,J.jsx)(Z,{sectionKey:`lifecycle`,label:`Lifecycle`,count:o.lifecycle.stages.length,icon:(0,J.jsx)(_e,{className:`size-3`}),accentClass:`text-primary`,expanded:n.has(`lifecycle`),onToggle:d,children:(0,J.jsx)(be,{lifecycle:o.lifecycle})}),h>0&&(0,J.jsx)(Z,{sectionKey:`methods`,label:`Methods`,count:h,icon:(0,J.jsx)(K,{className:`size-3`}),accentClass:`text-info`,expanded:n.has(`methods`),onToggle:d,children:(0,J.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:Object.entries(o.methods).map(([e,t])=>(0,J.jsx)(xe,{name:e,method:t},e))})})]})})})}),(0,J.jsx)(O,{value:`deploy`,keepMounted:!0,className:`flex min-h-0 flex-1 flex-col`,children:(0,J.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col px-3 pt-0`,children:(0,J.jsx)(ue,{kind:`model`,id:o.name,displayName:_(o.name),yamlPath:`/catalog/models/${o.name}/yaml`,yamlFilename:`${o.name}.twin.yaml`,stream:f})})})]})]},o.name):(0,J.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-sm text-muted-foreground`,children:`Model not found`})})})}function Z({sectionKey:e,label:t,count:n,icon:r,accentClass:i,expanded:a,onToggle:o,children:s}){return(0,J.jsxs)(`div`,{className:`rounded-[var(--miravo-radius-tight)] border border-border/50`,children:[(0,J.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 px-2.5 py-1.5 text-left text-xs font-medium transition-colors hover:bg-muted/30`,onClick:()=>o(e),children:[(0,J.jsx)(`span`,{className:i,children:r}),(0,J.jsx)(`span`,{className:`uppercase tracking-wider`,children:t}),(0,J.jsx)(H,{variant:`secondary`,className:`ml-auto text-[10px]`,children:n}),(0,J.jsx)(E,{className:`size-3 text-muted-foreground transition-transform ${a?`rotate-180`:``}`})]}),(0,J.jsx)(u,{initial:!1,children:a&&(0,J.jsx)(l.div,{initial:{height:0,opacity:0},animate:{height:`auto`,opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:`easeOut`},className:`overflow-hidden`,children:(0,J.jsx)(`div`,{className:`border-t px-2.5 py-1.5`,children:s})},`content`)})]})}function Q({member:e}){return(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-0.5 py-0.5 text-xs`,children:[(0,J.jsx)(`span`,{title:e.name,className:`min-w-0 truncate font-mono text-foreground`,children:oe(e.name)}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e.dataType}),e.unit&&(0,J.jsx)(H,{variant:`outline`,className:`px-1 py-0 text-[10px]`,children:e.unit}),e.euRange&&(0,J.jsxs)(`span`,{className:`ml-auto font-mono text-xs text-muted-foreground`,children:[`[`,e.euRange[0],`–`,e.euRange[1],`]`]})]})}var ye={healthy:`bg-success`,normal:`bg-success`,degraded:`bg-warning`,critical:`bg-destructive`,failed:`bg-destructive`};function be({lifecycle:e}){let t=e.stages.length;return(0,J.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,J.jsx)(`div`,{className:`flex h-2.5 w-full overflow-hidden rounded-full bg-muted`,children:e.stages.map((e,n)=>(0,J.jsx)(`div`,{className:`transition-[background-color] ${ye[e]??`bg-chart-1`} ${n===0?`rounded-l-full`:``} ${n===t-1?`rounded-r-full`:``}`,style:{width:`${100/t}%`}},`${e}-${n}`))}),(0,J.jsx)(`div`,{className:`flex items-center gap-3`,children:e.stages.map((e,t)=>(0,J.jsxs)(`div`,{className:`flex items-center gap-1.5 text-xs`,children:[(0,J.jsx)(`span`,{className:`size-2 rounded-full ${ye[e]??`bg-chart-1`}`}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:g(e)})]},`${e}-${t}`))}),(0,J.jsxs)(`span`,{className:`font-mono text-xs text-muted-foreground`,children:[`~`,v(e.totalHours),` total hours`]})]})}function xe({name:e,method:t}){return(0,J.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(`span`,{className:`font-mono text-xs text-foreground`,children:e}),t.inputArguments.length>0&&(0,J.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[`(`,t.inputArguments.map(e=>`${e.name}: ${e.dataType}`).join(`, `),`)`]})]}),t.description&&(0,J.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:t.description})]})}var Se=[`builtin`,`personal`];function Ce(){let[e,t]=(0,q.useState)(``),[n,ie]=(0,q.useState)(`all`),[g,oe]=(0,q.useState)({}),[v,y]=(0,q.useState)(null),[x,S]=(0,q.useState)(null),[C,w]=(0,q.useState)(``),[T,E]=(0,q.useState)(``),[D,O]=(0,q.useState)(null),[k,A]=(0,q.useState)(null),[le,j]=(0,q.useState)(null),M=(0,q.useRef)(null),ue=pe();(0,q.useEffect)(()=>{let e=e=>{if(e.key!==`/`||e.metaKey||e.ctrlKey||e.altKey)return;let t=e.target.tagName;t===`INPUT`||t===`TEXTAREA`||t===`SELECT`||(e.preventDefault(),M.current?.focus())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]);let N=te({queryKey:ee.catalog.models(),queryFn:()=>s(`/catalog/models`,a.catalogModels)}),P=N.data??[],F=N.isPending&&!N.data,L=N.isError&&!N.data,de=N.isError&&!!N.data,R=ge(N.error,`Failed to load models.`),z=e=>g[e]??1,B=(0,q.useCallback)((e,t)=>{oe(n=>({...n,[e]:Math.max(1,Math.min(10,t))}))},[]),V=(0,q.useCallback)(e=>{j(e)},[]),me=(0,q.useCallback)(e=>{S(e),w(``),E(``),O(null),A(null)},[]),U=async e=>{let t=r(C),n=r(T);if(t||n)return O(t),A(n),!1;let i=z(e),a=C.trim(),o=T.trim();y(e);try{return await ue.mutateAsync({type:`spawn`,model:e,count:i,...a?{instanceName:a}:{},...o?{instancePrefix:o}:{}}),!0}catch{return!1}finally{y(null)}},_e=(0,q.useMemo)(()=>{let e={all:P.length};for(let t of Se)e[t]=0;for(let t of P){let n=I(t.source);e[n]=(e[n]??0)+1}return e},[P]),W=e.toLowerCase(),G=P.filter(e=>n===`all`||I(e.source)===n).filter(e=>W?e.name.toLowerCase().includes(W)||(e.description?.toLowerCase().includes(W)??!1):!0),K=x,Y=K?z(K):1,X=K?o(K):``,Z=T.trim()||X,Q=C.trim()||(Z?i(Z,1):``);return(0,J.jsxs)(`div`,{className:`@container/models mx-auto flex w-full max-w-screen-2xl flex-col gap-5 p-4 sm:gap-6 sm:p-6`,children:[(0,J.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,J.jsx)(`h1`,{className:`font-heading text-2xl font-semibold tracking-tight`,children:`Asset Model Library`}),(0,J.jsx)(H,{variant:`outline`,className:`text-xs`,children:L?(0,J.jsx)(`span`,{className:`text-destructive`,children:`Unavailable`}):F&&P.length===0?(0,J.jsx)(J.Fragment,{children:`Loading...`}):(0,J.jsxs)(J.Fragment,{children:[P.length,` models`]})})]}),(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Canonical twin models with realistic physics, lifecycle degradation, and fault modes. Inspect to explore schema, copy YAML, or export.`})]}),L&&(0,J.jsx)(c,{message:R,onRetry:()=>void N.refetch(),isRetrying:N.isFetching}),de&&(0,J.jsx)(c,{message:`${R} Showing cached models.`,onRetry:()=>void N.refetch(),isRetrying:N.isFetching}),!L&&(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,J.jsxs)(`div`,{className:`relative max-w-xs flex-1 min-w-[14rem]`,children:[(0,J.jsx)(se,{className:`absolute left-2.5 top-2.5 size-4 text-muted-foreground`}),(0,J.jsx)(h,{ref:M,placeholder:`Filter models...`,value:e,onChange:e=>t(e.target.value),className:`pl-9 pr-7`}),!e&&(0,J.jsx)(`kbd`,{className:`pointer-events-none absolute top-1/2 right-2 -translate-y-1/2 rounded-[var(--miravo-radius-tight)] border border-border bg-muted px-1 font-mono text-[10px] text-muted-foreground`,children:`/`})]}),(0,J.jsx)(Te,{value:n,counts:_e,onChange:ie})]}),(0,J.jsx)(`div`,{className:`grid grid-cols-1 gap-4 @[720px]/models:grid-cols-2 @[1120px]/models:grid-cols-3`,"aria-busy":F&&!L,children:L?null:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(u,{children:G.map((e,t)=>(0,J.jsx)(l.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,scale:.96,transition:{duration:.15}},transition:{type:`spring`,stiffness:380,damping:30,delay:t*.04},className:`grid`,children:(0,J.jsx)(we,{model:e,count:z(e.name),spawning:v===e.name,onCountChange:B,onInspect:V,onSpawn:me})},e.name))}),G.length===0&&P.length>0&&(0,J.jsx)(`p`,{className:`col-span-full py-8 text-center text-sm text-muted-foreground`,children:`No models match the current filters.`})]})}),P.length>0&&(0,J.jsx)(`div`,{className:b(fe,`p-0`),children:(0,J.jsx)(`div`,{className:`community-teaser relative overflow-hidden rounded-[inherit]`,children:(0,J.jsx)(`div`,{className:`relative z-10 mx-auto max-w-3xl px-5 py-10 sm:px-10 sm:py-12`,children:(0,J.jsxs)(`div`,{className:`grid items-center gap-10 lg:grid-cols-[minmax(0,1fr)_minmax(0,17rem)]`,children:[(0,J.jsxs)(`div`,{className:`order-2 flex min-w-0 flex-col gap-4 lg:order-1`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-3 gap-y-1`,children:[(0,J.jsx)(`p`,{className:`blueprint-title text-primary`,children:`Future channel`}),(0,J.jsx)(`span`,{className:`blueprint-stat text-[10px] text-muted-foreground`,children:`MIRAVO_REGISTRY · NOT_CONNECTED`})]}),(0,J.jsx)(`h2`,{className:`font-heading text-xl font-semibold tracking-tight sm:text-2xl`,children:`Community Models`}),(0,J.jsx)(`p`,{className:`max-w-xl text-sm leading-relaxed text-muted-foreground`,children:`Publish your custom twin models to the Miravo registry. Discover equipment models from other engineers, fork them, and adapt parameters for your use case.`}),(0,J.jsx)(`div`,{children:(0,J.jsx)(H,{variant:`outline`,className:`community-teaser-soon border-primary/35 bg-primary/5 text-[10px] text-primary`,children:`Coming Soon`})})]}),(0,J.jsx)(`div`,{className:`order-1 flex justify-center lg:order-2 lg:justify-end`,children:(0,J.jsxs)(`div`,{className:`community-teaser-module relative flex w-full max-w-[14rem] flex-col items-center justify-center gap-3 border border-primary/15 bg-muted/15 py-8 sm:max-w-[15.5rem] sm:py-10`,"aria-hidden":!0,children:[(0,J.jsx)(`div`,{className:`community-teaser-icon-ring relative z-[1] flex size-[4.25rem] items-center justify-center rounded-[var(--miravo-radius-tight)] border border-primary/35 bg-gradient-to-br from-primary/18 to-primary/5`,children:(0,J.jsx)(ce,{className:`size-9 text-primary`,"aria-hidden":!0})}),(0,J.jsx)(`span`,{className:`blueprint-stat relative z-[1] text-[9px] tracking-[0.18em] text-muted-foreground`,children:`AWAITING SIGNAL`}),(0,J.jsx)(`span`,{className:`blueprint-stat relative z-[1] text-[9px] text-muted-foreground`,children:`Uplink idle`})]})})]})})})}),(0,J.jsx)(ae,{open:x!==null,onOpenChange:e=>{e||S(null)},children:(0,J.jsxs)(f,{className:`min-w-0 sm:max-w-md`,children:[(0,J.jsxs)(d,{children:[(0,J.jsx)(p,{children:`Spawn instances?`}),(0,J.jsx)(re,{children:x!==null&&(0,J.jsxs)(J.Fragment,{children:[`This spawns `,z(x),` instance`,z(x)===1?``:`s`,` of`,` `,(0,J.jsx)(`span`,{className:`font-medium text-foreground`,children:_(x)}),` `,`into the running environment. Set exact ID or generated prefix below if you need custom naming.`]})})]}),(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,J.jsx)(he,{htmlFor:`spawn-instance-name`,className:`text-xs font-medium text-foreground`,children:`Exact instance ID`}),(0,J.jsx)(h,{id:`spawn-instance-name`,value:C,maxLength:120,onChange:e=>{let t=e.target.value;w(t),t&&(E(``),A(null)),O(r(t))},placeholder:Y===1?Q||`pump-001`:`Count must be 1`,disabled:Y!==1,className:b(`min-w-0 font-mono text-xs`,D&&`border-destructive`),"aria-invalid":D!=null,"aria-describedby":`spawn-instance-name-hint`}),(0,J.jsx)(`p`,{id:`spawn-instance-name-hint`,className:`min-w-0 wrap-break-word text-[11px] text-muted-foreground`,children:`Use exact name for one instance only.`}),D?(0,J.jsx)(`p`,{className:`text-[11px] text-destructive`,children:D}):null]}),(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,J.jsx)(he,{htmlFor:`spawn-instance-prefix`,className:`text-xs font-medium text-foreground`,children:`Generated prefix`}),(0,J.jsx)(h,{id:`spawn-instance-prefix`,value:T,maxLength:120,onChange:e=>{let t=e.target.value;E(t),t&&(w(``),O(null)),A(r(t))},placeholder:X||`pump`,className:b(`min-w-0 font-mono text-xs`,k&&`border-destructive`),"aria-invalid":k!=null,"aria-describedby":`spawn-instance-prefix-hint`}),(0,J.jsxs)(`p`,{id:`spawn-instance-prefix-hint`,className:`min-w-0 wrap-break-word text-[11px] text-muted-foreground`,children:[`Preview`,` `,(0,J.jsx)(`span`,{className:`break-all font-mono text-foreground`,children:Q||`${X}-001`})]}),k?(0,J.jsx)(`p`,{className:`text-[11px] text-destructive`,children:k}):null]})]}),(0,J.jsxs)(ne,{children:[(0,J.jsx)(m,{variant:`outline`,disabled:v!==null,onClick:()=>S(null),children:`Cancel`}),(0,J.jsx)(m,{disabled:v!==null||x===null||D!=null||k!=null,onClick:async()=>{x!==null&&await U(x)&&S(null)},children:v===x?`Spawning...`:`Spawn`})]})]})}),(0,J.jsx)(ve,{modelName:le,onClose:()=>j(null)})]})}var we=(0,q.memo)(function({model:e,count:t,spawning:n,onCountChange:r,onInspect:i,onSpawn:a}){return(0,J.jsxs)(`div`,{className:b(V,`flex flex-col gap-4 p-5`),children:[(0,J.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,J.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center rounded-[var(--miravo-radius-stadium-sm)] bg-primary/10 text-primary`,children:(0,J.jsx)(U,{className:`size-4`})}),(0,J.jsxs)(`div`,{className:`min-w-0 flex flex-col gap-0.5`,children:[(0,J.jsx)(`span`,{className:`font-heading text-sm font-semibold uppercase tracking-wide`,children:_(e.name)}),e.description&&(0,J.jsx)(`span`,{className:`line-clamp-2 text-xs leading-relaxed text-muted-foreground`,children:e.description})]})]}),(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-[11px] text-muted-foreground`,children:[(0,J.jsx)($,{label:`mbr`,value:e.memberCount}),(0,J.jsx)($,{label:`mth`,value:e.methodCount}),(0,J.jsx)($,{label:`flt`,value:e.faultCount}),e.hasLifecycle&&(0,J.jsxs)(`span`,{className:`flex items-center gap-1 text-primary`,children:[(0,J.jsx)(`span`,{className:`text-[10px]`,children:`◈`}),(0,J.jsxs)(`span`,{children:[e.lifecycleStageCount,`-stage`]})]}),(0,J.jsx)(H,{variant:`outline`,className:b(`ml-auto shrink-0 font-sans text-[10px] font-medium uppercase tracking-wide`,de(e.source)),children:P(e.source)})]}),(0,J.jsxs)(`div`,{className:`mt-auto flex items-center gap-2 border-t border-border/30 pt-3`,children:[(0,J.jsxs)(`div`,{className:`flex items-center rounded-[var(--miravo-radius-tight)] border bg-muted/30`,children:[(0,J.jsx)(m,{variant:`ghost`,size:`icon`,className:`size-7 rounded-none rounded-l-md`,disabled:t<=1,"aria-label":`Decrease count`,onClick:n=>{n.stopPropagation(),r(e.name,t-1)},children:(0,J.jsx)(M,{className:`size-3`})}),(0,J.jsx)(`span`,{className:`flex size-7 items-center justify-center border-x font-mono text-xs`,children:t}),(0,J.jsx)(m,{variant:`ghost`,size:`icon`,className:`size-7 rounded-none rounded-r-md`,disabled:t>=10,"aria-label":`Increase count`,onClick:n=>{n.stopPropagation(),r(e.name,t+1)},children:(0,J.jsx)(S,{className:`size-3`})})]}),(0,J.jsxs)(m,{type:`button`,variant:`outline`,size:`sm`,onClick:()=>i(e.name),className:B,children:[(0,J.jsx)(C,{className:`size-3.5`,"aria-hidden":!0}),`Inspect`]}),(0,J.jsxs)(m,{size:`sm`,className:`ml-auto`,disabled:n,onClick:()=>a(e.name),children:[(0,J.jsx)(z,{className:`mr-1 size-3`}),n?`...`:`Spawn`]})]})]})});function $({label:e,value:t}){return(0,J.jsxs)(`span`,{children:[(0,J.jsx)(`span`,{className:`text-foreground`,children:t}),` `,(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e})]})}function Te({value:e,counts:t,onChange:n}){return(0,J.jsx)(`div`,{className:`flex flex-wrap items-center gap-1.5`,role:`radiogroup`,"aria-label":`Filter by source`,children:[{id:`all`,label:`All`},...Se.map(e=>({id:e,label:P(e)}))].map(r=>{let i=e===r.id,a=t[r.id]??0,o=r.id!==`all`&&a===0;return(0,J.jsxs)(`label`,{className:b(`inline-flex h-7 items-center gap-1.5 rounded-[var(--miravo-radius-pill)] border px-3 text-xs font-medium transition-colors`,i?`border-primary/60 bg-primary/15 text-primary`:`border-border/60 bg-card/30 text-muted-foreground hover:border-border hover:bg-muted/40 hover:text-foreground`,o?`cursor-not-allowed opacity-40 hover:border-border/60 hover:bg-card/30 hover:text-muted-foreground`:`cursor-pointer`),children:[(0,J.jsx)(`input`,{type:`radio`,name:`models-source-filter`,value:r.id,checked:i,disabled:o,onChange:()=>n(r.id),className:`sr-only`}),(0,J.jsx)(`span`,{children:r.label}),(0,J.jsx)(`span`,{className:`font-mono text-[10px] text-foreground`,children:a})]},r.id)})})}export{U as n,Ce as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./models-BygeZ9lv.js";export{e as ModelsPage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./platforms-BXHQU4vT.js";export{e as PlatformsPage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{at as e,d as t,f as n,m as r,p as i}from"./vendor-ui-CWUk2ulb.js";import{$ as a,B as o,E as s,G as c,H as l,J as u,K as d,L as f,Q as p,U as m,V as h,W as g,X as _,Y as v,Z as y,et as b,q as x}from"./api-2XqCNjt9.js";import{D as ee}from"./format-B9CcV2dj.js";import{n as S,t as C}from"./utils-XFKvwlFT.js";var te=S(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),ne=S(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),re=S(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),ie=S(`radio`,[[`path`,{d:`M16.247 7.761a6 6 0 0 1 0 8.478`,key:`1fwjs5`}],[`path`,{d:`M19.075 4.933a10 10 0 0 1 0 14.134`,key:`ehdyv1`}],[`path`,{d:`M4.925 19.067a10 10 0 0 1 0-14.134`,key:`1q22gi`}],[`path`,{d:`M7.753 16.239a6 6 0 0 1 0-8.478`,key:`r2q7qm`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]);u({path:_().min(1),name:_().min(1),description:_().optional(),memberCount:x().int().nonnegative(),methodCount:x().int().nonnegative(),faultCount:x().int().nonnegative(),hasLifecycle:l(),lifecycleStageCount:x().int().nonnegative()}),u({path:_().min(1),id:_().min(1),name:_().min(1),description:_().optional(),areaCount:x().int().nonnegative(),twinAssignmentCount:x().int().nonnegative(),uniqueModelCount:x().int().nonnegative(),modelNames:h(_().min(1)),totalTwinCount:x().int().nonnegative()});var ae=u({severity:g([`error`,`warning`]),message:_(),fix:_()});u({valid:l(),templatePath:_(),issues:h(ae)});var w=`%.A.Hz.L.L/h.L/min.L/s.N.V.bar.cfm.count.degC.h.kN.kVA.kW.kWh.m.m/s.m3.m3/h.mm.mm/min.mm/s.ppm.pu.rpm.s`.split(`.`),T=g(w);new Set(w);var oe=_().min(1).max(128).regex(/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/),E=g([`Boolean`,`Int32`,`UInt16`,`UInt32`,`Double`,`Float`,`String`]);g([`variable`,`property`]);var D=g([`read`,`readwrite`,`write`]),O=g([`>`,`>=`,`<`,`<=`,`==`,`!=`]),k=`Must be 1-64 chars and contain only letters, numbers, underscores, or hyphens.`,se=m(`type`,[u({type:d(`threshold`),member:_().regex(f,k),operator:O,threshold:x().finite()}).strict(),u({type:d(`lifecycle-stage`)}).strict(),u({type:d(`health-state`)}).strict(),u({type:d(`fault-active`)}).strict(),u({type:d(`fault-count`)}).strict(),u({type:d(`active-fault-code`),fallback:_().default(``)}).strict(),u({type:d(`availability-state`),member:_().regex(f,k),operator:O.default(`>`),threshold:x().finite().default(0),running_state:_().default(`running`),stopped_state:_().default(`stopped`),faulted_state:_().default(`faulted`)}).strict()]),A=`Must be 1-64 chars and contain only letters, numbers, underscores, or hyphens.`,j=h(_().min(1)).min(1),ce=u({data_type:E,unit:T.optional(),description:_().optional(),enum_values:j.optional()}).strict(),le=p([u({member:_().regex(f,A),value:p([x(),_(),l()])}).strict(),u({member:_().regex(f,A),argument:_().regex(f,A)}).strict()]),ue=u({type:d(`set-members`),writes:h(le).min(1)}).strict(),de=p([u({parameter:_().regex(f,A),value:x().finite()}).strict(),u({parameter:_().regex(f,A),argument:_().regex(f,A)}).strict()]),fe=m(`type`,[ue,u({type:d(`set-parameters`),writes:h(de).min(1)}).strict(),u({type:d(`clear-faults`)}).strict()]),pe=u({description:_().optional(),input_arguments:v(_().regex(f,A),ce).optional(),output_arguments:v(_().regex(f,A),ce).optional(),runtime:fe.optional()}).strict(),me=v(_().regex(f,A),pe);function M(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function N(e){if(typeof e==`string`)return o.exec(e)?.[1]}function P(e,t,n){if(!M(e)||e.type!==`weighted-sum`)return;let r=e.terms;if(Array.isArray(r))for(let e=0;e<r.length;e++){let i=r[e];M(i)&&n(i,[...t,`terms`,e])}}function he(e,t,n){if(!M(e))return;let r=[...t,`member`],i=[...t,`previous_member`],a=[...t,`param`],o=[...t,`generator`];typeof e.member==`string`&&n.onMember?.(e.member,r),typeof e.previous_member==`string`&&n.onPreviousMember?.(e.previous_member,i),typeof e.param==`string`&&n.onParam?.(e.param,a),`generator`in e&&n.onGenerator?.(e.generator,o)}function ge(e,t,n,r){return{onMember:e,onPreviousMember:t,onParam:n,onGenerator:r}}function _e(e,t,n,r,i,a){he(e,t,ge(n,r,i,a))}function F(e){return e===`Double`||e===`Float`||e===`Int32`||e===`UInt16`||e===`UInt32`}function ve(e){return e===`Int32`||e===`UInt16`||e===`UInt32`}function I(e,t){switch(t){case`Boolean`:return typeof e==`boolean`;case`String`:return typeof e==`string`;case`Double`:case`Float`:return typeof e==`number`&&Number.isFinite(e);case`Int32`:return typeof e==`number`&&Number.isSafeInteger(e)&&e>=-2147483648&&e<=2147483647;case`UInt16`:return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0&&e<=65535;case`UInt32`:return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0&&e<=4294967295;default:return!1}}function ye(e,t,n){e.unit!==void 0&&(e.data_type===`Boolean`||e.data_type===`String`)&&t.addIssue({code:b.custom,path:[...n,`unit`],message:`Members with data_type "${e.data_type}" must not declare engineering units. Fix: remove the unit or use a numeric data_type.`}),e.enum_values&&e.data_type!==`String`&&t.addIssue({code:b.custom,path:[...n,`enum_values`],message:`enum_values is only valid for String members. Fix: remove enum_values or change data_type to "String".`})}function L(e,t,n,r){if(M(e)&&typeof e.type==`string`)switch(e.type){case`correlated`:typeof e.source==`string`&&n.push({member:e.source,path:[...t,`source`],previousTick:!1}),z(e.factor,[...t,`factor`],r),z(e.offset,[...t,`offset`],r);return;case`sine`:case`noise`:case`waveform`:case`chirp`:z(e.center,[...t,`center`],r);return;case`mean-reverting-noise`:z(e.mean,[...t,`mean`],r);return;case`first-order-lag`:case`second-order`:z(e.gain,[...t,`gain`],r),z(e.bias,[...t,`bias`],r),R(e.input,[...t,`input`],n,r);return;case`transport-delay`:z(e.delay,[...t,`delay`],r),R(e.input,[...t,`input`],n,r);return;case`slew-rate-limiter`:case`integrator`:R(e.input,[...t,`input`],n,r);return;case`hysteresis-relay`:z(e.on_threshold,[...t,`on_threshold`],r),z(e.off_threshold,[...t,`off_threshold`],r),R(e.input,[...t,`input`],n,r);return;case`weighted-sum`:z(e.bias,[...t,`bias`],r),P(e,t,(e,t)=>{z(e.weight,[...t,`weight`],r),R(e.input,[...t,`input`],n,r)});return;case`gate`:n.push({member:String(e.enabled_member),path:[...t,`enabled_member`],previousTick:!1}),R(e.input,[...t,`input`],n,r);return;case`health-dependent`:{let i=e.stages;if(!M(i))return;for(let[e,a]of Object.entries(i))L(a,[...t,`stages`,e],n,r);return}default:return}}function R(e,t,n,r){_e(e,t,(e,t)=>n.push({member:e,path:t,previousTick:!1}),(e,t)=>n.push({member:e,path:t,previousTick:!0}),(e,t)=>r.push({param:e,path:t}),(e,t)=>L(e,t,n,r))}function z(e,t,n){let r=N(e);r!==void 0&&n.push({param:r,path:t})}function be(e,t,n){if(!M(e))return;let r=e.type;(r===`threshold`||r===`availability-state`)&&typeof e.member==`string`&&n.push({member:e.member,path:[...t,`member`],previousTick:!1})}function B(e,t,n){if(!M(e))return;let r=e.type;if(typeof r!=`string`)return;if(r===`integrator`&&e.wrap===!0&&(typeof e.wrap_at!=`number`||!Number.isFinite(e.wrap_at)||e.wrap_at<=0)&&n.addIssue({code:b.custom,path:[...t,`wrap_at`],message:`wrap_at must be a finite number greater than 0 when wrap is true. Fix: Set wrap_at to a positive number, or set wrap to false.`}),r===`health-dependent`){let r=e.stages;if(M(r))for(let[e,i]of Object.entries(r))B(i,[...t,`stages`,e],n)}function i(e,t){!M(e)||!(`generator`in e)||B(e.generator,[...t,`generator`],n)}i(e.input,[...t,`input`]),P(e,t,(e,t)=>{i(e.input,[...t,`input`])})}function xe(e){switch(e){case`Boolean`:return!1;case`String`:return``;case`Double`:case`Float`:case`Int32`:case`UInt16`:case`UInt32`:return 0;default:return 0}}var Se=h(m(`type`,[u({type:d(`white_noise`),strength:x().min(0).max(1),scale:x().positive().optional()}).strict(),u({type:d(`drift`),tau:x().positive(),sigma:x().min(0).max(1),scale:x().positive().optional()}).strict(),u({type:d(`outlier`),probability:x().min(0).max(1),magnitude:x().positive(),scale:x().positive().optional()}).strict(),u({type:d(`gap`),probability:x().min(0).max(1),duration:x().int().positive().default(10)}).strict(),u({type:d(`noise_burst`),probability:x().min(0).max(1),duration:x().int().positive().default(5),strength:x().min(0).max(1),scale:x().positive().optional()}).strict()])).min(1).optional(),V=`Must be 1-64 chars and contain only letters, numbers, underscores, or hyphens.`;g([`float`,`int`,`string`,`bool`]);var Ce=m(`type`,[u({type:d(`float`),default:x().finite(),min:x().finite().optional(),max:x().finite().optional(),unit:T.optional()}),u({type:d(`int`),default:x().int().safe(),min:x().int().safe().optional(),max:x().int().safe().optional(),unit:T.optional()}),u({type:d(`string`),default:_(),unit:T.optional()}),u({type:d(`bool`),default:l(),unit:T.optional()})]),H=p([u({member:_()}).strict(),u({previous_member:_()}).strict(),u({param:_()}).strict(),u({generator:c(()=>We)}).strict()]),U=_().regex(o,`Must be a $param.X parameter reference`),W=p([x(),U]),G=p([x().finite(),U]),K={initial_value:x().default(0),gain:W.default(1),bias:W.default(0),min:x().nullable().default(null),max:x().nullable().default(null),input:H},q=u({type:d(`sine`),center:W,amplitude:x().positive(),period:x().positive()}).strict(),J=u({type:d(`random-walk`),min:x(),max:x(),step:x().positive()}).strict(),we=u({type:d(`noise`),center:W,stddev:x().positive()}).strict(),Te=u({type:d(`step`),values:h(x()).min(1),interval:x().positive()}).strict(),Ee=u({type:d(`correlated`),source:_().regex(f,V),factor:G,offset:G,power:x().int().positive().optional()}).strict(),De=u({from:_(),to:_(),probability:x().min(0).max(1).optional(),on:_().optional()}).strict(),Y=u({type:d(`state-machine`),states:h(_()).min(1),initial:_(),transitions:h(De).min(1)}).strict();function X(e,t){let n=new Set(e.states);n.has(e.initial)||t.addIssue({code:b.custom,path:[`initial`],message:`State machine initial state "${e.initial}" is not in states. Fix: Set initial to one of: ${e.states.join(`, `)}.`});for(let r=0;r<e.transitions.length;r++){let i=e.transitions[r];i&&(n.has(i.from)||t.addIssue({code:b.custom,path:[`transitions`,r,`from`],message:`State machine transition from "${i.from}" references a state that is not in states. Fix: Add "${i.from}" to states or change transition.from to one of: ${e.states.join(`, `)}.`}),n.has(i.to)||t.addIssue({code:b.custom,path:[`transitions`,r,`to`],message:`State machine transition to "${i.to}" references a state that is not in states. Fix: Add "${i.to}" to states or change transition.to to one of: ${e.states.join(`, `)}.`}))}}Y.superRefine(X);var Oe=u({type:d(`ramp`),start_value:x().default(0),rate:x(),duration:x().nonnegative(),start_time:x().default(0),min:x().nullable().default(null),max:x().nullable().default(null)}).strict(),ke=u({type:d(`mean-reverting-noise`),mean:W,tau:x().positive(),sigma:x().positive(),initial_value:x().optional(),min:x().nullable().default(null),max:x().nullable().default(null)}).strict(),Ae=u({time:x().nonnegative(),value:x()}),je=u({type:d(`timetable`),points:h(Ae).min(2),repeat:l().default(!1),interpolation:g([`linear`,`step`]).default(`linear`)}).strict(),Me=u({type:d(`waveform`),shape:g([`sawtooth`,`triangle`,`square`,`pulse`]),center:W,amplitude:x().positive(),period:x().positive(),duty_cycle:x().min(0).max(1).default(.5)}).strict(),Ne=u({type:d(`chirp`),center:W,amplitude:x().positive(),start_freq_hz:x().positive(),end_freq_hz:x().positive(),sweep_duration:x().positive(),sweep:g([`linear`,`exponential`]).default(`linear`),repeat:l().default(!0)}).strict(),Z=u({type:d(`impulse`),baseline:x().default(0),amplitude:x(),probability:x().min(0).max(1).optional(),interval:x().positive().optional(),decay:x().min(0).max(1).optional(),duration:x().int().positive().default(1)}).strict();function Q(e,t){e.probability===void 0&&e.interval===void 0&&t.addIssue({code:b.custom,path:[`probability`],message:`Impulse generator requires either probability or interval. Fix: Add probability: 0.01 (per-tick chance) or interval: 60 (seconds between triggers).`}),e.probability!==void 0&&e.interval!==void 0&&t.addIssue({code:b.custom,path:[`interval`],message:`Impulse generator cannot have both probability and interval. Fix: Remove one: use probability for random triggers, or interval for periodic triggers.`})}Z.superRefine(Q);var Pe=u({type:d(`first-order-lag`),tau:x().positive(),...K}).strict(),Fe=u({type:d(`integrator`),initial_value:x().default(0),gain:x().default(1),bias_rate:x().default(0),min:x().default(-1/0),max:x().default(1/0),wrap:l().default(!1),wrap_at:x().nullable().default(null),input:H}).strict(),Ie=u({type:d(`transport-delay`),delay:p([x().nonnegative(),U]),initial_value:x().default(0),interpolation:g([`linear`,`zoh`]).default(`linear`),input:H}).strict(),Le=u({type:d(`slew-rate-limiter`),rate_up:x().positive(),rate_down:x().positive().optional(),initial_value:x().default(0),min:x().nullable().default(null),max:x().nullable().default(null),input:H}).strict(),Re=u({type:d(`second-order`),natural_freq_hz:x().positive(),damping_ratio:x().positive(),initial_velocity:x().default(0),...K}).strict(),ze=u({type:d(`hysteresis-relay`),on_threshold:W,off_threshold:W,output_on:p([x(),_()]).default(1),output_off:p([x(),_()]).default(0),initial_state:g([`on`,`off`]).default(`off`),mode:g([`rising`,`falling`]).default(`rising`),input:H}).strict(),Be=u({weight:W.default(1),input:H}),Ve=u({type:d(`weighted-sum`),bias:W.default(0),terms:h(Be).min(1),min:x().nullable().default(null),max:x().nullable().default(null)}).strict(),He=u({type:d(`gate`),enabled_member:_().regex(f,V),input:H,disabled_value:p([x(),_(),l()])}).strict(),Ue=m(`type`,[q,J,we,Te,Ee,Y,Oe,ke,je,Me,Ne,Z]).superRefine((e,t)=>{e.type===`state-machine`&&X(e,t),e.type===`impulse`&&Q(e,t)}),We=m(`type`,[q,J,we,Te,Ee,Y,Oe,ke,je,Me,Ne,Z,u({type:d(`health-dependent`),stages:v(_(),Ue)}).strict(),Pe,Fe,Ie,Le,Re,ze,Ve,He]).superRefine((e,t)=>{e.type===`state-machine`&&X(e,t),e.type===`impulse`&&Q(e,t)}),Ge=u({multiplier:x().finite().optional(),offset:x().finite().optional()}).strict(),Ke=u({stages:h(u({name:_().min(1),duration_hours:y([x().nonnegative(),x().nonnegative()]).refine(([e,t])=>e<=t,{message:`duration_hours max must be greater than or equal to min.`}),effects:v(_(),Ge)})).min(1)}).superRefine((e,t)=>{let n=new Set;for(let r=0;r<e.stages.length;r++){let i=e.stages[r];i&&(n.has(i.name)&&t.addIssue({code:b.custom,path:[`stages`,r,`name`],message:`Lifecycle stage names must be unique. Duplicate "${i.name}". Fix: Rename one stage so each lifecycle stage has a unique name.`}),n.add(i.name))}}),qe=u({multiplier:x().finite().optional(),offset:x().finite().optional(),spike:x().finite().optional(),duration_ticks:x().int().positive().optional(),onset_ticks:x().int().positive().optional(),recovery_ticks:x().int().positive().optional()}).strict(),Je=u({condition:_().optional(),lifecycle_stage:_().optional(),probability:x().min(0).max(1)}),Ye=u({name:_().regex(f,V),trigger:Je,effects:v(_(),p([qe,_()]))}),Xe=`Must be 1-64 chars and contain only letters, numbers, underscores, or hyphens.`,Ze=new Set([`enterprise`,`site`,`area`,`line`,`prefix`]),Qe=_().regex(o,`Must be a $param.X parameter reference`),$e=p([x(),_(),l()]),et=u({name:_().regex(f,Xe),description:_().optional(),namespace:_().optional()}).strict(),tt=m(`kind`,[u({kind:d(`variable`),data_type:E,access:D,unit:T.optional(),enum_values:j.optional(),eu_range:y([x(),x()]).refine(([e,t])=>e<=t,{message:`eu_range[0] (min) must be <= eu_range[1] (max).`}).optional(),generator:We.optional(),binding:se.optional(),default:$e.optional(),observation_effects:Se}).strict(),u({kind:d(`property`),data_type:E,access:D,unit:T.optional(),enum_values:j.optional(),default:p([$e,Qe]).optional()}).strict()]);function nt(e){return v(_().regex(f,Xe),tt).refine(e=>Object.keys(e).length>=1,{message:`Members map must have at least 1 member.`}).refine(t=>Object.keys(t).length<=e,{message:`Members map must have at most ${e} members.`}).refine(e=>!Object.keys(e).some(e=>Ze.has(e)),{message:`Member names cannot use reserved env keys: enterprise/site/area/line/prefix`})}function rt(e={}){let t=nt(e.maxMembersPerModel??1e3);return u({schema_version:d(`2`),model:et,parameters:v(_(),Ce).optional(),members:t,methods:me.optional(),lifecycle:Ke.optional(),faults:h(Ye).optional()}).strict().superRefine((e,t)=>{let n=Object.keys(e.members),r=new Map;for(let e=0;e<n.length;e++){let t=n[e];t!==void 0&&r.set(t,e)}let i=new Set(Object.keys(e.parameters??{})),a=new Set(Object.entries(e.parameters??{}).filter(([,e])=>e.type===`float`||e.type===`int`).map(([e])=>e));for(let o=0;o<n.length;o++){let s=n[o];if(s===void 0)continue;let c=e.members[s];if(!c||(ye(c,t,[`members`,s]),c.kind===`variable`&&c.generator!==void 0&&c.binding!==void 0&&t.addIssue({code:b.custom,path:[`members`,s,`binding`],message:`Variable members cannot define both "generator" and "binding". Fix: keep one source of value generation.`}),c.kind===`variable`&&c.binding!==void 0&&c.access!==`read`&&t.addIssue({code:b.custom,path:[`members`,s,`access`],message:`Variable members with a "binding" must use access "read". Fix: change access to "read" or remove the binding.`}),c.kind!==`variable`||!c.generator&&!c.binding))continue;let l=[],u=[],d=[`members`,s,`generator`];if(c.generator&&L(c.generator,d,l,u),c.binding&&be(c.binding,[`members`,s,`binding`],l),c.generator&&(B(c.generator,d,t),c.generator.type===`gate`)){let n=e.members[c.generator.enabled_member];n&&n.data_type!==`Boolean`&&t.addIssue({code:b.custom,path:[`members`,s,`generator`,`enabled_member`],message:`Gate generator for "${s}" references "${c.generator.enabled_member}", but "${c.generator.enabled_member}" is not Boolean. Fix: use a Boolean command/state member for enabled_member.`}),I(c.generator.disabled_value,c.data_type)||t.addIssue({code:b.custom,path:[`members`,s,`generator`,`disabled_value`],message:`Gate generator disabled_value for "${s}" does not match data_type "${c.data_type}". Fix: use a compatible disabled_value literal.`})}for(let e of l){let n=r.get(e.member);if(n===void 0){t.addIssue({code:b.custom,path:[...e.path],message:`Member "${s}" references member "${e.member}", but "${e.member}" is not defined. Fix: Define "${e.member}" in members, or change the reference to a parameter.`});continue}!e.previousTick&&n>=o&&t.addIssue({code:b.custom,path:[...e.path],message:`Member "${s}" references member "${e.member}" which is defined later (or is itself). Members are evaluated in declaration order. Fix: Move "${e.member}" above "${s}".`})}for(let n of u)i.has(n.param)?a.has(n.param)||t.addIssue({code:b.custom,path:[...n.path],message:`Member "${s}" references parameter "${n.param}" in a numeric position, but "${n.param}" has type "${e.parameters?.[n.param]?.type}". Only float and int parameters can be used as generator coefficients or inputs. Fix: Change "${n.param}" to type "float" or "int".`}):t.addIssue({code:b.custom,path:[...n.path],message:`Member "${s}" references parameter "${n.param}", but "${n.param}" is not defined. Fix: Define "${n.param}" under parameters, or replace "$param.${n.param}" with a literal value.`});if(c.binding)switch(c.binding.type){case`threshold`:c.data_type!==`Boolean`&&t.addIssue({code:b.custom,path:[`members`,s,`data_type`],message:`Members using binding.type "threshold" must use data_type "Boolean". Fix: change data_type to "Boolean".`}),it(s,c.binding.member,e,t,[`members`,s,`binding`,`member`]);break;case`availability-state`:c.data_type!==`String`&&t.addIssue({code:b.custom,path:[`members`,s,`data_type`],message:`Members using binding.type "availability-state" must use data_type "String". Fix: change data_type to "String".`}),it(s,c.binding.member,e,t,[`members`,s,`binding`,`member`]);break;case`lifecycle-stage`:case`health-state`:case`active-fault-code`:c.data_type!==`String`&&t.addIssue({code:b.custom,path:[`members`,s,`data_type`],message:`Members using binding.type "${c.binding.type}" must use data_type "String". Fix: change data_type to "String".`});break;case`fault-active`:c.data_type!==`Boolean`&&t.addIssue({code:b.custom,path:[`members`,s,`data_type`],message:`Members using binding.type "fault-active" must use data_type "Boolean". Fix: change data_type to "Boolean".`});break;case`fault-count`:c.data_type!==`Int32`&&c.data_type!==`UInt16`&&c.data_type!==`UInt32`&&t.addIssue({code:b.custom,path:[`members`,s,`data_type`],message:`Members using binding.type "fault-count" must use an integer data_type (Int32, UInt16, or UInt32). Fix: change data_type to an integer type.`});break;default:c.binding}if(c.kind===`variable`&&c.observation_effects){F(c.data_type)||t.addIssue({code:b.custom,path:[`members`,s,`observation_effects`],message:`Observation effects on "${s}" require a numeric data_type (Double, Float, Int32, UInt16, or UInt32). Member has data_type "${c.data_type}", which cannot be degraded by noise, gaps, or drift. Fix: remove observation_effects, or change data_type to a numeric type.`}),c.access!==`read`&&t.addIssue({code:b.custom,path:[`members`,s,`observation_effects`],message:`Observation effects on "${s}" require access "read". Observation effects corrupt values — they must not be applied to command targets or setpoints. Fix: change access to "read" or remove observation_effects.`});for(let e=0;e<c.observation_effects.length;e++){let n=c.observation_effects[e];n&&(n.type===`white_noise`||n.type===`drift`||n.type===`outlier`||n.type===`noise_burst`)&&!(`scale`in n&&n.scale!==void 0)&&!c.eu_range&&t.addIssue({code:b.custom,path:[`members`,s,`observation_effects`,e],message:`Member "${s}" uses relative observation effect "${n.type}" but has no eu_range and no explicit scale. Fix: add eu_range: [min, max] to the member, or add scale: <number> to the effect.`})}}}function o(n,i,a){if(!r.has(n)){t.addIssue({code:b.custom,path:[...i],message:`${a} has effect on "${n}", but "${n}" is not a defined member. Fix: Change "${n}" to a valid member name.`});return}let o=e.members[n];o&&o.kind!==`variable`&&t.addIssue({code:b.custom,path:[...i],message:`${a} has effect on "${n}", but "${n}" is a property (kind: "property"). Effects can only target variable members.`})}if(e.lifecycle){let t=[`lifecycle`,`stages`];for(let n of e.lifecycle.stages)for(let e of Object.keys(n.effects))o(e,t,`Lifecycle stage "${n.name}"`)}if(e.faults){let n=new Set;for(let r=0;r<e.faults.length;r++){let i=e.faults[r];if(!i)continue;n.has(i.name)&&t.addIssue({code:b.custom,path:[`faults`,r,`name`],message:`Fault names must be unique. Duplicate "${i.name}". Fix: Rename one fault so each fault has a unique name.`}),n.add(i.name);let a=[`faults`,r,`effects`];for(let e of Object.keys(i.effects))o(e,a,`Fault "${i.name}"`)}}for(let r of n){let n=e.members[r];if(!n||n.kind!==`property`||typeof n.default!=`string`)continue;let a=N(n.default);a!==void 0&&!i.has(a)&&t.addIssue({code:b.custom,path:[`members`,r,`default`],message:`Property "${r}" default references parameter "${a}", but "${a}" is not defined. Fix: Define "${a}" under parameters, or use a literal value.`})}if(e.methods)for(let[n,r]of Object.entries(e.methods))at(n,r.input_arguments,t,[`methods`,n,`input_arguments`]),at(n,r.output_arguments,t,[`methods`,n,`output_arguments`]),ot(n,r,e,t,[`methods`,n,`runtime`])})}function it(e,t,n,r,i){let a=n.members[t];a&&(F(a.data_type)||r.addIssue({code:b.custom,path:[...i],message:`Member "${e}" binding references "${t}", but "${t}" is not numeric. Fix: bind to a numeric member or change the source member data_type.`}))}function at(e,t,n,r){if(t)for(let[i,a]of Object.entries(t))a.unit!==void 0&&(a.data_type===`Boolean`||a.data_type===`String`)&&n.addIssue({code:b.custom,path:[...r,i,`unit`],message:`Method "${e}" argument "${i}" uses data_type "${a.data_type}" and must not declare an engineering unit. Fix: remove the unit or use a numeric data_type.`}),a.enum_values&&a.data_type!==`String`&&n.addIssue({code:b.custom,path:[...r,i,`enum_values`],message:`Method "${e}" argument "${i}" can only use enum_values with data_type "String". Fix: remove enum_values or change the data_type.`})}function ot(e,t,n,r,i){let a=t.runtime;if(a)switch(a.type){case`clear-faults`:return;case`set-parameters`:for(let o=0;o<a.writes.length;o++){let s=a.writes[o];if(!s)continue;let c=[...i,`writes`,o],l=n.parameters?.[s.parameter];if(!l){r.addIssue({code:b.custom,path:[...c,`parameter`],message:`Method "${e}" runtime targets parameter "${s.parameter}", but "${s.parameter}" is not defined. Fix: target a declared parameter.`});continue}if(l.type!==`float`&&l.type!==`int`){r.addIssue({code:b.custom,path:[...c,`parameter`],message:`Method "${e}" runtime targets parameter "${s.parameter}" of type "${l.type}". Fix: use set-parameters only with float or int parameters.`});continue}if(`argument`in s){let n=t.input_arguments?.[s.argument];if(!n){r.addIssue({code:b.custom,path:[...c,`argument`],message:`Method "${e}" runtime references input argument "${s.argument}", but that argument is not defined. Fix: declare the input argument or use a literal value.`});continue}F(n.data_type)||r.addIssue({code:b.custom,path:[...c,`argument`],message:`Method "${e}" runtime argument "${s.argument}" must be numeric to write parameter "${s.parameter}". Fix: use Double, Float, Int32, UInt16, or UInt32.`}),l.type===`int`&&!ve(n.data_type)&&r.addIssue({code:b.custom,path:[...c,`argument`],message:`Method "${e}" runtime argument "${s.argument}" uses data_type "${n.data_type}" but parameter "${s.parameter}" is type "int". Fix: use Int32, UInt16, or UInt32 so runtime writes stay integer-safe.`});continue}l.type===`int`&&!Number.isSafeInteger(s.value)&&r.addIssue({code:b.custom,path:[...c,`value`],message:`Method "${e}" runtime literal for integer parameter "${s.parameter}" must be a safe integer. Fix: use a whole-number literal.`})}return;case`set-members`:for(let o=0;o<a.writes.length;o++){let s=a.writes[o];if(!s)continue;let c=[...i,`writes`,o],l=n.members[s.member];if(!l){r.addIssue({code:b.custom,path:[...c,`member`],message:`Method "${e}" runtime targets member "${s.member}", but "${s.member}" is not defined. Fix: target a declared member.`});continue}if(l.kind!==`variable`&&r.addIssue({code:b.custom,path:[...c,`member`],message:`Method "${e}" runtime targets "${s.member}", but "${s.member}" is a property. Fix: target a writable variable member.`}),l.access!==`readwrite`&&l.access!==`write`&&r.addIssue({code:b.custom,path:[...c,`member`],message:`Method "${e}" runtime targets "${s.member}", but "${s.member}" is not writable. Fix: set access to "readwrite" or "write".`}),l.kind===`variable`&&l.binding&&r.addIssue({code:b.custom,path:[...c,`member`],message:`Method "${e}" runtime targets "${s.member}", but bound members are computed at runtime. Fix: write to a command/setpoint member without a binding.`}),`argument`in s){let n=t.input_arguments?.[s.argument];if(!n){r.addIssue({code:b.custom,path:[...c,`argument`],message:`Method "${e}" runtime references input argument "${s.argument}", but that argument is not defined. Fix: declare the input argument or use a literal value.`});continue}if(I(xe(n.data_type),l.data_type)||r.addIssue({code:b.custom,path:[...c,`argument`],message:`Method "${e}" runtime argument "${s.argument}" uses data_type "${n.data_type}" which does not match target member "${s.member}" data_type "${l.data_type}". Fix: align the argument and target member data types.`}),n.enum_values&&l.enum_values){let t=n.enum_values.filter(e=>!l.enum_values?.includes(e));t.length>0&&r.addIssue({code:b.custom,path:[...c,`argument`],message:`Method "${e}" runtime argument "${s.argument}" allows values [${t.join(`, `)}] that are not valid for target member "${s.member}". Fix: align enum_values between the argument and target member.`})}continue}I(s.value,l.data_type)||r.addIssue({code:b.custom,path:[...c,`value`],message:`Method "${e}" runtime literal for "${s.member}" does not match data_type "${l.data_type}". Fix: use a compatible literal value.`}),l.enum_values&&typeof s.value==`string`&&!l.enum_values.includes(s.value)&&r.addIssue({code:b.custom,path:[...c,`value`],message:`Method "${e}" runtime literal "${s.value}" is not allowed for member "${s.member}". Fix: use one of [${l.enum_values.join(`, `)}].`})}return;default:}}rt();var st=p([x().finite(),_(),l()]),ct=_().regex(/^[a-f0-9]{64}$/),lt=u({id:_().min(1),model:_().min(1),browsePath:h(_().min(1)).min(1),parameters:v(_(),st),lifecycleStage:_().min(1),operatingHours:x().finite().nonnegative(),activeFaults:h(_().min(1)),templateRunId:x().int().positive().optional(),protocolScope:h(s).min(1).optional(),observationState:v(_(),v(_(),a())).optional().default({}),faultState:v(_(),u({remaining:x().int(),elapsed:x().int(),recovering:l(),recoveryElapsed:x().int(),recoveryTicks:x().int()})).optional().default({})}),ut=u({templateRunId:x().int().positive(),templateName:_().min(1),templatePath:_(),entryHash:ct.optional()}),dt=u({name:_().min(1),enabled:l(),config:v(_(),a())});u({version:d(2),savedAt:_().min(1),environmentName:oe,models:h(_().min(1)),instances:h(lt),templateRuns:h(ut),adapters:h(dt).default([])});var $=e();function ft({className:e,orientation:t=`horizontal`,...n}){return(0,$.jsx)(r,{"data-slot":`tabs`,"data-orientation":t,className:C(`group/tabs flex gap-2 data-horizontal:flex-col`,e),...n})}var pt=ee(`group/tabs-list inline-flex w-fit items-center justify-center rounded-[var(--miravo-radius-stadium-sm)] p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none`,{variants:{variant:{default:`bg-muted`,line:`gap-0 border-b border-border/50 bg-transparent p-0 shadow-none group-data-horizontal/tabs:h-auto group-data-horizontal/tabs:min-h-8`}},defaultVariants:{variant:`default`}});function mt({className:e,variant:n=`default`,...r}){return(0,$.jsx)(t,{"data-slot":`tabs-list`,"data-variant":n,className:C(pt({variant:n}),e),...r})}function ht({className:e,...t}){return(0,$.jsx)(i,{"data-slot":`tabs-trigger`,className:C(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-[var(--miravo-radius-tight)] border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-[color,box-shadow,transform] duration-200 ease-out group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,`group-data-[variant=line]/tabs-list:font-heading group-data-[variant=line]/tabs-list:tracking-tight group-data-[variant=line]/tabs-list:text-sm group-data-[variant=line]/tabs-list:text-muted-foreground group-data-[variant=line]/tabs-list:hover:text-foreground group-data-[variant=line]/tabs-list:data-active:font-semibold group-data-[variant=line]/tabs-list:data-active:text-foreground`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent group-data-[variant=line]/tabs-list:data-active:border-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`group-data-[variant=line]/tabs-list:rounded-none group-data-[variant=line]/tabs-list:px-3 group-data-[variant=line]/tabs-list:py-2`,`data-active:bg-background data-active:text-foreground data-active:border-input data-active:bg-input/30 data-active:text-foreground`,`after:pointer-events-none after:absolute after:bg-foreground after:opacity-0 after:transition-[opacity,transform] after:duration-300 after:ease-out group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5`,`group-data-[variant=line]/tabs-list:after:bg-primary group-data-horizontal/tabs:group-data-[variant=line]/tabs-list:after:bottom-0 group-data-horizontal/tabs:group-data-[variant=line]/tabs-list:after:h-[2px] group-data-horizontal/tabs:group-data-[variant=line]/tabs-list:after:rounded-sm group-data-[variant=line]/tabs-list:data-active:after:opacity-100 group-data-horizontal/tabs:group-data-[variant=line]/tabs-list:data-active:after:shadow-[0_0_14px_-3px_color-mix(in_srgb,var(--primary)_50%,transparent)]`,e),...t})}function gt({className:e,...t}){return(0,$.jsx)(n,{"data-slot":`tabs-content`,className:C(`flex-1 text-sm outline-none py-2`,e),...t})}export{ie as a,te as c,ht as i,gt as n,re as o,mt as r,ne as s,ft as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./tags-CeGPTgMJ.js";export{e as TagsPage};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/fleet-DxLj0dPT.js","assets/fleet-CHhiI7Fk.js","assets/rolldown-runtime-COnpUsM8.js","assets/chunk-OE4NN4TA-DBWZidbW.js","assets/vendor-charts-95ykyDlI.js","assets/api-2XqCNjt9.js","assets/vendor-ui-CWUk2ulb.js","assets/format-B9CcV2dj.js","assets/utils-XFKvwlFT.js","assets/arrow-right-BjBb4z7g.js","assets/arrow-up-down-C1oJAmrw.js","assets/select-CMOnuEoT.js","assets/circle-question-mark-CJvcT6V6.js","assets/dist-xY0pK9Wy.js","assets/shallow-Cin0mLuv.js","assets/badge-i00PiRCo.js","assets/combobox-BJecIYHE.js","assets/select-display-items-y2L7MHmk.js","assets/tooltip-D1ydB4g3.js","assets/transition-types-CPlGtM8w.js","assets/catalog-B1GRab9-.js","assets/catalog-rF7BRyRf.js","assets/query-fetch-error-xB4By0m0.js","assets/AnimatePresence-CPmH1DMY.js","assets/proxy-Be4WzmcS.js","assets/use-platform-stream-BzqGhuJn.js","assets/platform-targets-BIQ1lKOg.js","assets/tabs-CDS57-lB.js","assets/copy-button-DnGsXbVV.js","assets/checkbox-C84IyqEB.js","assets/triangle-alert-BXrJNk3g.js","assets/label-DTHSKF2S.js","assets/get-error-message-BanmV5rD.js","assets/catalog-template-icons-3S8RvUxD.js","assets/catalog-source-wSZa7UAP.js","assets/download-DmUZKo9N.js","assets/use-engine-command-mutation-Ct9NCDug.js","assets/runtime-link-D-uJbw97.js","assets/models-CTVXBFYW.js","assets/models-BygeZ9lv.js","assets/activity-Cy_niK56.js","assets/events-CVYbXGE4.js","assets/events-B8fp1TQW.js","assets/auth-screen-backdrop-CgwRhIbi.js","assets/control-BOmPym_s.js","assets/control-RK2dbhks.js","assets/validation-CCE5LmjQ.js","assets/layers-1figUpjG.js","assets/transition-nav-link-BtuFK_Y8.js","assets/tags-CmPY4kaf.js","assets/tags-CeGPTgMJ.js","assets/vendor-table-SVvT6QrW.js","assets/dropdown-menu-82O7jPU6.js","assets/platforms-BHZA9Eg3.js","assets/platforms-BXHQU4vT.js","assets/instance-detail-CKgv3XYh.js","assets/login-BaheB47i.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{a as e}from"./rolldown-runtime-COnpUsM8.js";import{c as t}from"./vendor-charts-95ykyDlI.js";import{c as n,d as r}from"./chunk-OE4NN4TA-DBWZidbW.js";var i=e(t(),1),a=[{test:e=>e===`/`,load:()=>r(()=>import(`./fleet-DxLj0dPT.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))},{test:e=>e===`/catalog`,load:()=>r(()=>import(`./catalog-B1GRab9-.js`),__vite__mapDeps([20,21,2,5,4,6,22,7,8,23,24,25,11,26,27,12,28,18,29,30,15,31,32,33,34,35,36,37]))},{test:e=>e===`/models`,load:()=>r(()=>import(`./models-CTVXBFYW.js`),__vite__mapDeps([38,39,2,5,4,6,22,7,8,23,24,40,25,11,26,27,12,28,18,29,30,15,31,32,34,35,36,37]))},{test:e=>e===`/events`,load:()=>r(()=>import(`./events-CVYbXGE4.js`),__vite__mapDeps([41,42,2,3,4,5,6,22,7,8,23,24,11,43,15,16,17,32,37,19]))},{test:e=>e===`/control`,load:()=>r(()=>import(`./control-BOmPym_s.js`),__vite__mapDeps([44,45,2,5,4,6,7,8,23,24,40,9,11,27,28,18,46,29,47,36,37,30,13,14,48,3,15,16,31]))},{test:e=>e===`/tags`,load:()=>r(()=>import(`./tags-CmPY4kaf.js`),__vite__mapDeps([49,50,2,3,4,5,6,22,7,8,51,10,11,26,28,18,35,13,43,16,52,31,32]))},{test:e=>e===`/platforms`,load:()=>r(()=>import(`./platforms-BHZA9Eg3.js`),__vite__mapDeps([53,54,2,3,4,5,6,22,7,8,23,24,40,9,25,11,26,27,12,28,18,29,30,15,31,32,33,47,13,52]))},{test:e=>e.startsWith(`/instance/`),load:()=>r(()=>import(`./instance-detail-CKgv3XYh.js`),__vite__mapDeps([55,2,3,4,5,6,22,7,8,24,40,27,28,18,46,36,37,30,13,43,15,32,19]))},{test:e=>e===`/login`,load:()=>r(()=>import(`./login-BaheB47i.js`),__vite__mapDeps([56,2,5,4,6,48,3,32]))}],o=new Set;function s(e){if(!e.startsWith(`/`))return null;let t=e.indexOf(`?`),n=e.indexOf(`#`),r=t===-1?n===-1?e.length:n:n===-1?t:Math.min(t,n);return e.slice(0,r)}function c(e){let t=s(e);if(!t||o.has(t))return;let n=a.find(e=>e.test(t));n&&(o.add(t),n.load().catch(()=>{o.delete(t)}))}function l(){let e=n();return(0,i.useCallback)((t,n)=>{n?.preload!==!1&&c(t),(0,i.startTransition)(()=>{n?.transitionType&&(0,i.addTransitionType)(n.transitionType),e(t,{replace:n?.replace})})},[e])}export{c as n,l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{at as e,et as t}from"./vendor-ui-CWUk2ulb.js";import{J as n,X as r,j as i,q as a}from"./api-2XqCNjt9.js";import{l as o}from"./copy-button-DnGsXbVV.js";import{n as s,t as c}from"./utils-XFKvwlFT.js";import"./tabs-CDS57-lB.js";var l=s(`gauge`,[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]),u=s(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),d=e();function f({className:e,orientation:n=`horizontal`,...r}){return(0,d.jsx)(t,{"data-slot":`separator`,orientation:n,className:c(`shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch`,e),...r})}function p(){return r().trim().optional().refine(e=>e===void 0||e===``||e.length<=120,{message:`Use at most 120 characters.`}).refine(e=>e===void 0||e===``||i(e)===null,{message:`Use letters, numbers, underscores, and hyphens only.`})}var m=n({multiplier:a({message:`Speed multiplier must be a number.`}).positive(`Speed multiplier must be positive.`).finite(`Speed multiplier must be finite.`).max(1e3,`Speed multiplier cannot exceed 1000.`)}),h=n({model:r().min(1,`Model is required.`),count:a({message:`Count must be a number.`}).int(`Count must be a whole number.`).positive(`Count must be at least 1.`).max(100,`Count cannot exceed 100.`),instanceName:p(),instancePrefix:p()}),g=n({instanceId:r().min(1,`Instance is required.`),fault:r().min(1,`Fault name is required.`)}),_=n({instanceId:r().min(1,`Instance is required.`)});function v(e,t,n){if(!t.trim())return o.error(`Argument "${e}" is required.`),null;switch(n){case`Double`:case`Float`:{let n=Number(t);return Number.isFinite(n)?{value:n}:(o.error(`"${e}" must be a valid number.`),null)}case`Int32`:case`UInt16`:case`UInt32`:{let r=Number(t);return!Number.isFinite(r)||!Number.isSafeInteger(r)?(o.error(`"${e}" must be a valid integer.`),null):(n===`UInt16`||n===`UInt32`)&&r<0?(o.error(`"${e}" must be non-negative.`),null):{value:r}}case`Boolean`:return t!==`true`&&t!==`false`?(o.error(`"${e}" must be "true" or "false".`),null):{value:t===`true`};case`String`:return{value:t};default:return{value:t}}}function y(e,t){let n=e.safeParse(t);return n.success?n.data:(o.error(n.error.issues[0]?.message??`Validation error.`),null)}export{y as a,u as c,h as i,l,_ as n,v as o,m as r,f as s,g as t};
|
|
File without changes
|
/package/console-dist/assets/{select-display-items-y2L7MHmk.js → select-display-items-Bqb6Sbg6.js}
RENAMED
|
File without changes
|
|
File without changes
|