PageSourceSearch

https://cleanroom-production.up.railway.app/assets/SettingsBuilder-MYWRFXRI-Ce3OWfa1.js

js cleanroom-production.up.railway.app collected 2026-10-03 12:11:42 UTC 3,735 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ModelSettings-CKQ5CVAC-UBz_ch6T.js","assets/index-DJ1uWGdt.js","assets/index-DEKCw40W.css","assets/ConnectorSettings-ODC3LVHN-CAU9MgGN.js","assets/SkillSettings-ECH6SHZ7-CKWEzdO_.js","assets/SandboxSettings-HSCPYUOC-Csl-nC9h.js"])))=>i.map(i=>d[i]);
2import{g,i as v,k as y,l as j,m as S,r as t,j as e,I as p,f as _,e as f,_ as u,S as k}from"./index-DJ1uWGdt.js";var w=t.lazy(()=>u(()=>import("./ModelSettings-CKQ5CVAC-UBz_ch6T.js"),__vite__mapDeps([0,1,2]))),E=t.lazy(()=>u(()=>import("./ConnectorSettings-ODC3LVHN-CAU9MgGN.js"),__vite__mapDeps([3,1,2]))),N=t.lazy(()=>u(()=>import("./SkillSettings-ECH6SHZ7-CKWEzdO_.js"),__vite__mapDeps([4,1,2]))),C=t.lazy(()=>u(()=>import("./SandboxSettings-HSCPYUOC-Csl-nC9h.js"),__vite__mapDeps([5,1,2])));function L(){return e.jsxs("div",{className:"flex flex-1 items-center justify-center py-8",role:"status","aria-live":"polite","aria-busy":"true",children:[e.jsx(k,{size:20,className:"text-text-secondary"}),e.jsx("span",{className:"sr-only",children:"Loading"})]})}var O=()=>{const{settingsOpen:n,settingsSection:l,setSettingsOpen:a}=g(),r=v(),d=y(),{refresh:m}=j(),i=S(),o=(r==null?void 0:r.skillCatalog)!=null,c=(r==null?void 0:r.sandboxCatalog)!=null,x=t.useCallback(()=>{a(!1)},[a]);t.useEffect(()=>{if(n)return()=>{m(),d==null||d()}},[n,m,d]),t.useEffect(()=>{!o&&l==="skills"&&a(n,"models"),!c&&l==="sandbox"&&a(n,"models")},[o,c,l,n,a]),t.useEffect(()=>{if(!n)return;const s=b=>{b.key==="Escape"&&(b.stopImmediatePropagation(),x())};return window.addEventListener("keydown",s,!0),()=>window.removeEventListener("keydown",s,!0)},[x,n]);const h=t.useMemo(()=>{const s=[{id:"models",label:"Models",icon:"cpu"},{id:"connectors",label:"Connectors",icon:"plug"}];return o&&s.push({id:"skills",label:"Skills",icon:"lightbulb"}),c&&s.push({id:"sandbox",label:"Sandbox providers",icon:"cube"}),s},[o,c]);return!n||!r?null:e.jsxs("div",{className:"flex h-full min-h-0 w-full flex-col bg-primary-bg",children:[e.jsxs("header",{className:"flex shrink-0 items-center gap-2 border-b border-border px-2 py-1.5",children:[e.jsx("button",{type:"button","aria-label":"Back",title:"Back",className:_({variant:"ghost",size:"icon"}),onClick:x,children:e.jsx(p,{name:"arrow-left"})}),e.jsx("h1",{className:"text-lg font-semibold tracking-tight text-text-primary",children:"Settings"})]}),e.jsxs("div",{className:f("flex min-h-0 flex-1 flex-col",!i&&"md:flex-row"),children:[e.jsx("nav",{"aria-label":"Settings sections",className:f("flex w-full gap-1 border-b border-border bg-secondary-bg/40 p-2",i?"min-w-0":"justify-center md:w-48 md:flex-col md:justify-start md:border-b-0 md:border-r"),children:h.map(s=>e.jsxs("button",{type:"button","aria-current":l===s.id?"page":void 0,...i?{title:s.label}:{},className:f("flex min-h-9 items-center gap-2 rounded-md px-3 text-sm font-medium transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focus-ring",i?"min-w-0 flex-1 justify-center gap-1.5 px-1.5":"shrink-0",l===s.id?"bg-primary-button-bg text-primary-button-text":"text-text-secondary hover:bg-ghost-button-hover/60 hover:text-text-primary"),onClick:()=>{a(!0,s.id)},children:[e.jsx(p,{name:s.icon,className:"h-4 w-4 shrink-0"}),i?e.jsx("span",{className:"truncate",children:s.label}):s.label]},s.id))}),e.jsx("section",{className:"flex flex-col h-full flex-1 overflow-y-hidden px-6 py-4",children:e.jsx("div",{className:"w-full max-w-210 h-full min-h-0 flex flex-col mx-auto",children:e.jsxs(t.Suspense,{fallback:e.jsx(L,{}),children:[l==="models"?e.jsx(w,{}):null,l==="connectors"?e.jsx(E,{}):null,l==="skills"&&o?e.jsx(N,{}):null,l==="sandbox"&&c?e.jsx(C,{}):null]})})})]})]})},I=O;export{I as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.