PageSourceSearch

https://blackloafdev-openwebui.hf.space/_app/immutable/nodes/7.19HZlMPG.js

js blackloafdev-openwebui.hf.space collected 2026-10-03 16:44:53 UTC 6,337 bytes, 4 lines download raw bytes

1import"../chunks/CWj6FrbW.js";import"../chunks/69_IOA4Y.js";import{p as oe,g as ie,o as ne,h as le,i as de,a as m,b as pe,s as ce,j as me,k as ve,$ as ue,l as H,e as _,m as fe,c as n,n as x,r as l,t as v,f as u,q as ge,d as I,u as he}from"../chunks/CD8kWLvT.js";import{i as g}from"../chunks/CdIW-EUl.js";import{s as ke}from"../chunks/ByAzvrkO.js";import{h as we}from"../chunks/d1mQnqxV.js";import{s as h,a as b}from"../chunks/DfT_-TQp.js";import{i as _e}from"../chunks/BolXBFGq.js";import{u as xe,W as be,m as $e,s as J}from"../chunks/BywRmzAD.js";import{p as ye}from"../chunks/BzECnBHI.js";import{g as N}from"../chunks/DhOOJEfF.js";import{T as Se}from"../chunks/CKByCqZ4.js";import{S as Ee}from"../chunks/D6CT_Gtf.js";var Me=u('<button id="sidebar-toggle-button" class=" cursor-pointer flex rounded-lg hover:bg-gray-100 dark:hover:bg-gray-850 transition cursor-"><div class=" self-center p-1.5"><!></div></button>'),We=u("<div><!></div>"),qe=u('<a draggable="false" href="/workspace/models"> </a>'),Ae=u('<a draggable="false" href="/workspace/knowledge"> </a>'),Be=u('<a draggable="false" href="/workspace/prompts"> </a>'),Ce=u('<a draggable="false" href="/workspace/skills"> </a>'),Ie=u('<a draggable="false" href="/workspace/tools"> </a>'),Ne=u('<div><nav class="   px-2.5 pt-1.5 backdrop-blur-xl drag-region select-none"><div class=" flex items-center gap-1"><!> <div><div class="flex gap-1 scrollbar-none overflow-x-auto w-fit text-center text-sm font-medium rounded-full bg-transparent py-1 touch-auto pointer-events-auto"><!> <!> <!> <!> <!></div></div></div></nav> <div class="  pb-1 px-3 md:px-[18px] flex-1 max-h-full overflow-y-auto" id="workspace-container"><!></div></div>');function Qe(L,K){oe(K,!1);const o=()=>_(xe,"$user",k),i=()=>_(ye,"$page",k),d=()=>_(X,"$i18n",k),Q=()=>_(be,"$WEBUI_NAME",k),$=()=>_(J,"$showSidebar",k),R=()=>_($e,"$mobile",k),[k,V]=ce(),X=ie("i18n");let z=fe(!1);ne(async()=>{var f,c,w,y,S,T,E,M,W,U,q,O,A,P,B,j;((f=o())==null?void 0:f.role)!=="admin"&&(i().url.pathname.includes("/models")&&!((y=(w=(c=o())==null?void 0:c.permissions)==null?void 0:w.workspace)!=null&&y.models)?N("/"):i().url.pathname.includes("/knowledge")&&!((E=(T=(S=o())==null?void 0:S.permissions)==null?void 0:T.workspace)!=null&&E.knowledge)?N("/"):i().url.pathname.includes("/prompts")&&!((U=(W=(M=o())==null?void 0:M.permissions)==null?void 0:W.workspace)!=null&&U.prompts)?N("/"):i().url.pathname.includes("/tools")&&!((A=(O=(q=o())==null?void 0:q.permissions)==null?void 0:O.workspace)!=null&&A.tools)?N("/"):i().url.pathname.includes("/skills")&&!((j=(B=(P=o())==null?void 0:P.permissions)==null?void 0:B.workspace)!=null&&j.skills)&&N("/")),ve(z,!0)}),_e();var D=le();we("q5mosy",f=>{me(c=>{ue.title=`
2		${c??""} • ${Q()??""}
3	`},[()=>d().t("Workspace")])});var Y=de(D);{var Z=f=>{var c=Ne(),w=n(c),y=n(w),S=n(y);{var T=s=>{var e=We(),a=n(e);{let r=he(()=>$()?d().t("Close Sidebar"):d().t("Open Sidebar"));Se(a,{get content(){return H(r)},interactive:!0,children:(t,p)=>{var C=Me(),G=n(C),te=n(G);Ee(te,{}),l(G),l(C),v(se=>b(C,"aria-label",se),[()=>$()?d().t("Close Sidebar"):d().t("Open Sidebar")]),ge("click",C,()=>{J.set(!$())}),m(t,C)},$$slots:{default:!0}})}l(e),v(()=>h(e,1,`${$()?"md:hidden":""} self-center flex flex-none items-center`)),m(s,e)};g(S,s=>{R()&&s(T)})}var E=x(S,2),M=n(E),W=n(M);{var U=s=>{var e=qe(),a=n(e,!0);l(e),v((r,t,p)=>{b(e,"aria-current",r),h(e,1,`min-w-fit p-1.5 ${t??""} transition select-none`),I(a,p)},[()=>i().url.pathname.includes("/workspace/models")?"page":null,()=>i().url.pathname.includes("/workspace/models")?"":"text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white",()=>d().t("Models")]),m(s,e)};g(W,s=>{var e,a,r,t;(((e=o())==null?void 0:e.role)==="admin"||(t=(r=(a=o())==null?void 0:a.permissions)==null?void 0:r.workspace)!=null&&t.models)&&s(U)})}var q=x(W,2);{var O=s=>{var e=Ae(),a=n(e,!0);l(e),v((r,t,p)=>{b(e,"aria-current",r),h(e,1,`min-w-fit p-1.5 ${t??""} transition select-none`),I(a,p)},[()=>i().url.pathname.includes("/workspace/knowledge")?"page":null,()=>
3i().url.pathname.includes("/workspace/knowledge")?"":"text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white",()=>d().t("Knowledge")]),m(s,e)};g(q,s=>{var e,a,r,t;(((e=o())==null?void 0:e.role)==="admin"||(t=(r=(a=o())==null?void 0:a.permissions)==null?void 0:r.workspace)!=null&&t.knowledge)&&s(O)})}var A=x(q,2);{var P=s=>{var e=Be(),a=n(e,!0);l(e),v((r,t,p)=>{b(e,"aria-current",r),h(e,1,`min-w-fit p-1.5 ${t??""} transition select-none`),I(a,p)},[()=>i().url.pathname.includes("/workspace/prompts")?"page":null,()=>i().url.pathname.includes("/workspace/prompts")?"":"text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white",()=>d().t("Prompts")]),m(s,e)};g(A,s=>{var e,a,r,t;(((e=o())==null?void 0:e.role)==="admin"||(t=(r=(a=o())==null?void 0:a.permissions)==null?void 0:r.workspace)!=null&&t.prompts)&&s(P)})}var B=x(A,2);{var j=s=>{var e=Ce(),a=n(e,!0);l(e),v((r,t,p)=>{b(e,"aria-current",r),h(e,1,`min-w-fit p-1.5 ${t??""} transition select-none`),I(a,p)},[()=>i().url.pathname.includes("/workspace/skills")?"page":null,()=>i().url.pathname.includes("/workspace/skills")?"":"text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white",()=>d().t("Skills")]),m(s,e)};g(B,s=>{var e,a,r,t;(((e=o())==null?void 0:e.role)==="admin"||(t=(r=(a=o())==null?void 0:a.permissions)==null?void 0:r.workspace)!=null&&t.skills)&&s(j)})}var ee=x(B,2);{var ae=s=>{var e=Ie(),a=n(e,!0);l(e),v((r,t,p)=>{b(e,"aria-current",r),h(e,1,`min-w-fit p-1.5 ${t??""} transition select-none`),I(a,p)},[()=>i().url.pathname.includes("/workspace/tools")?"page":null,()=>i().url.pathname.includes("/workspace/tools")?"":"text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white",()=>d().t("Tools")]),m(s,e)};g(ee,s=>{var e,a,r,t;(((e=o())==null?void 0:e.role)==="admin"||(t=(r=(a=o())==null?void 0:a.permissions)==null?void 0:r.workspace)!=null&&t.tools)&&s(ae)})}l(M),l(E),l(y),l(w);var F=x(w,2),re=n(F);ke(re,K,"default",{},null),l(F),l(c),v(()=>h(c,1,` relative flex flex-col w-full h-screen max-h-[100dvh] transition-width duration-200 ease-in-out ${$()?"md:max-w-[calc(100%-var(--sidebar-width))]":""} max-w-full`)),m(f,c)};g(Y,f=>{H(z)&&f(Z)})}m(L,D),pe(),V()}export{Qe as component};
4//# sourceMappingURL=7.19HZlMPG.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.