1import"../chunks/CWj6FrbW.js";import"../chunks/69_IOA4Y.js";import{p as j,o as q,b as v,s as y,e as b}from"../chunks/DtFjAPax.js";import{i as z}from"../chunks/CWPhcWBV.js";import{g as e}from"../chunks/pzP2z9pO.js";import{u as A,c as B}from"../chunks/BTPG6at6.js";function J(C,h){j(h,!1);const s=()=>b(A,"$user",o),x=()=>b(B,"$config",o),[o,M]=y();q(()=>{var r,t,p,a,i,c,l,n,m,u,f,k,w,g,$,S,d,_;((r=s())==null?void 0:r.role)!=="admin"?(a=(p=(t=s())==null?void 0:t.permissions)==null?void 0:p.workspace)!=null&&a.models?e("/workspace/models",{replaceState:!0}):(l=(c=(i=s())==null?void 0:i.permissions)==null?void 0:c.workspace)!=null&&l.knowledge?e("/workspace/knowledge",{replaceState:!0}):(u=(m=(n=s())==null?void 0:n.permissions)==null?void 0:m.workspace)!=null&&u.prompts?e("/workspace/prompts",{replaceState:!0}):(k=(f=x())==null?void 0:f.features)!=null&&k.enable_plugins&&(($=(g=(w=s())==null?void 0:w.permissions)==null?void 0:g.workspace)!=null&&$.tools)?e("/workspace/tools",{replaceState:!0}):(_=(d=(S=s())==null?void 0:S.permissions)==null?void 0:d.workspace)!=null&&_.skills?e("/workspace/skills",{replaceState:!0}):e("/",{replaceState:!0}):e("/workspace/models",{replaceState:!0})}),z(),v(),M()}export{J as component}; 2//# sourceMappingURL=35.CBTLCyAd.js.map
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.