PageSourceSearch

https://www.basilica.ai/_next/static/chunks/app/(openclaw)/layout-…?dpl=dpl_27bV38u6yDnaXJ4HknG9Dqm6Ua5o

js basilica.ai collected 2026-10-03 23:52:19 UTC 23,465 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1158],{4115:function(e,r,t){Promise.resolve().then(t.bind(t,516)),Promise.resolve().then(t.t.bind(t,4562,23)),Promise.resolve().then(t.t.bind(t,7861,23)),Promise.resolve().then(t.t.bind(t,6050,23))},516:function(e,r,t){"use strict";t.d(r,{default:function(){return V}});var s=t(7437),o=t(5074),a=t(2265),n=t(9818),i=t(2617),c=t(6800),l=t(3420),d=t(4519);function m(e){let{children:r,apiReady:t}=e,{isAuthenticated:a,isLoading:n,loginWithRedirect:i}=(0,o.useAuth0)();return a&&t?r:n||a&&!t?(0,s.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,s.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,s.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-oc-muted border-t-red-light"}),(0,s.jsx)("p",{className:"text-sm text-oc-muted",children:"Signing you in..."})]})}):(0,s.jsxs)("div",{className:"relative h-full w-full",children:[(0,s.jsx)("div",{className:"pointer-events-none select-none blur-sm brightness-50",children:(0,s.jsx)(h,{})}),(0,s.jsx)("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-oc-base/60 backdrop-blur-sm",children:(0,s.jsx)("div",{className:"w-full max-w-md px-6",children:(0,s.jsxs)("div",{className:"rounded-2xl border border-oc-border bg-oc-surface p-10 shadow-xl",children:[(0,s.jsx)("div",{className:"mb-8 flex justify-center",children:(0,s.jsx)(d.Z,{src:"/svg/logo.svg",width:200,height:30,alt:"Basilica Logo",className:"h-auto w-40"})}),(0,s.jsx)("h2",{className:"text-center text-2xl font-medium text-oc-primary",children:"Welcome to OpenClaw"}),(0,s.jsx)("p",{className:"mt-2 text-center text-sm text-oc-muted",children:"Sign in to deploy and manage your AI gateway."}),(0,s.jsxs)("div",{className:"mt-8 flex flex-col gap-3",children:[(0,s.jsxs)("button",{onClick:()=>i(),className:"flex w-full items-center justify-center gap-2 rounded-xl bg-red-light px-6 py-3.5 text-base font-medium text-white-0 transition-all duration-200 hover:bg-red-dark active:scale-[0.98]",children:[(0,s.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"})}),"Sign In / Sign Up"]}),(0,s.jsxs)("div",{className:"flex items-center gap-4 py-1",children:[(0,s.jsx)("div",{className:"h-px flex-1 bg-oc-border"}),(0,s.jsx)("span",{className:"text-xs uppercase tracking-widest text-oc-muted",children:"or"}),(0,s.jsx)("div",{className:"h-px flex-1 bg-oc-border"})]}),(0,s.jsx)("a",{href:"/",className:"flex w-full items-center justify-center gap-2 rounded-xl border border-oc-border px-6 py-3 text-sm font-medium text-oc-muted transition-all duration-200 hover:border-oc-primary hover:text-oc-primary",children:"← Back to Homepage"})]}),(0,s.jsx)("p",{className:"mt-6 text-center text-xs text-oc-muted",children:"Powered by Basilica — Decentralized GPU Compute"})]})})})]})}function h(){return(0,s.jsxs)("div",{className:"mx-auto max-w-[96rem] space-y-6 md:space-y-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-[2rem] font-medium leading-1 text-oc-primary md:text-[2.8rem]",children:"OpenClaw"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-oc-muted md:text-[1.5rem]",children:"Deploy and manage your OpenClaw AI gateway instances."})]}),(0,s.jsxs)("div",{className:"grid gap-4 md:gap-6 lg:grid-cols-2",children:[(0,s.jsxs)("div",{className:"rounded-xl border border-oc-border bg-oc-surface p-6",children:[(0,s.jsx)("p",{className:"font-aeonik text-[1.1rem] uppercase tracking-[0.1em] text-oc-muted",children:"Credit Balance"}),(0,s.jsx)("div",{className:"mt-4 h-10 w-32 rounded bg-oc-raised"})]}),(0,s.jsxs)("div",{className:"rounded-xl border border-oc-border bg-oc-surface p-6",children:[(0,s.jsx)("p",{className:"font-aeonik text-[1.1rem] uppercase tracking-[0.1em] text-oc-muted",children:"Deploy OpenClaw"}),(0,s.jsx)("p",{className:"mt-2 text-[1.4rem] text-oc-muted",children:"One-click deploy an OpenClaw gateway instance."}),(0,s.jsx)("div",{className:"mt-4 h-12 w-48 rounded-lg bg-red-light/30"})]})]}),(0,s.jsxs)("div",{className:"rounded-xl border border-oc-border bg-oc-surface p-6",children:[(0,s.jsx)("p",{className:"font-aeonik text-[1.1rem] uppercase tracking-[0.1em] text-oc-muted",children:"Deployments"}),(0,s.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,s.jsx)("div",{className:"h-16 rounded-lg bg-oc-raised"}),(0,s.jsx)("div",{className:"h-16 rounded-lg bg-oc-raised"})]})]})]})}var x=t(7648),u=t(2936);function p(e){let{user:r,onLogout:t}=e,[o,n]=(0,a.useState)(!1);return(0,s.jsxs)("header",{className:"relative flex h-14 shrink-0 items-center justify-between border-b border-oc-border bg-oc-base px-4 md:h-[6rem] md:px-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4 md:gap-8",children:[(0,s.jsx)(x.default,{href:"/",className:"flex items-center gap-3",children:(0,s.jsx)(d.Z,{src:"/svg/logo.svg",width:160,height:24,alt:"Basilica Logo",className:"h-auto w-24 md:w-[14rem]"})}),(0,s.jsxs)("nav",{className:"hidden items-center gap-6 md:flex",children:[(0,s.jsx)(x.default,{href:"/openclaw",className:"text-sm font-medium text-oc-muted transition-colors hover:text-oc-primary",children:"OpenClaw"}),(0,s.jsx)("a",{href:"https://docs.basilica.ai/",target:"_blank",rel:"noopener noreferrer",className:"text-sm font-medium text-oc-muted transition-colors hover:text-oc-primary",children:"Docs"})]})]}),(0,s.jsxs)("div",{className:"hidden items-center gap-4 md:flex",children:[r&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"hidden text-[1.3rem] text-oc-muted sm:inline",children:r.email}),r.picture&&(0,s.jsx)("img",{src:r.picture,alt:r.name||"User",className:"h-8 w-8 rounded-full"})]}),(0,s.jsx)(u.Z,{}),(0,s.jsx)("button",{onClick:t,className:"font-aeonik text-[1.1rem] uppercase tracking-[0.08em] text-oc-muted transition-colors duration-200 hover:text-oc-primary",children:"Logout"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 md:hidden",children:[(null==r?void 0:r.picture)&&(0,s.jsx)("img",{src:r.picture,alt:r.name||"User",className:"h-7 w-7 rounded-full"}),(0,s.jsx)("button",{onClick:()=>n(!o),className:"flex h-9 w-9 items-center justify-center rounded-lg text-oc-muted transition-colors hover:bg-oc-surface hover:text-oc-primary","aria-label":"Toggle menu",children:o?(0,s.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}):(0,s.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})})]}),o&&(0,s.jsxs)("div",{className:"absolute left-0 right-0 top-14 z-50 border-b border-oc-border bg-oc-base p-4 shadow-lg md:hidden",children:[(0,s.jsxs)("nav",{className:"flex flex-col gap-1",children:[(0,s.jsxs)(x.default,{href:"/openclaw",onClick:()=>n(!1),className:"flex items-center gap-3 rounded-lg px-4 py-3 text-sm font-medium text-oc-muted transition-colors hover:bg-oc-surface hover:text-oc-primary",children:[(0,s.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 002.25-2.25V6.75a2.25 2.25 0 00-2.25-2.25H6.75A2.25 2.25 0 004.5 6.75v10.5a2.25 2.25 0 002.25 2.25z"})}),"Dashboard"]}),(0,s.jsxs)(x.default,{href:"/openclaw/fund",onClick:()=>n(!1),className:"flex items-center gap-3 rounded-lg px-4 py-3 text-sm font-medium text-oc-muted transition-colors hover:bg-oc-surface hover:text-oc-primary",children:[(0,s.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0115.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 013 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 00-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 01-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 003 15h-.75M15 10.5a3 3 0 11-6 0 3 3 0 016 0zm3 0h.008v.008H18V10.5zm-12 0h.008v.008H6V10.5z"})}),"Fund"]}),(0,s.jsx)("div",{className:"my-1 h-px bg-oc-border"}),(0,s.jsxs)("a",{href:"https://docs.basilica.ai/",target:"_blank",rel:"noopener noreferrer",onClick:()=>n(!1),className:"flex items-center gap-3 rounded-lg px-4 py-3 text-sm font-medium text-oc-muted transition-colors hover:bg-oc-surface hover:text-oc-primary",children:[(0,s.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"})}),"Docs"]})]}),(0,s.jsxs)("div",{className:"mt-3 border-t border-oc-border pt-3",children:[r&&(0,s.jsx)("p",{className:"mb-2 px-4 text-xs text-oc-muted",children:r.email}),(0,s.jsxs)("div",{className:"flex items-center justify-between px-4",children:[(0,s.jsx)(u.Z,{}),(0,s.jsx)("button",{onClick:()=>{n(!1),t()},className:"font-aeonik text-xs uppercase tracking-[0.08em] text-oc-muted transition-colors hover:text-oc-primary",children:"Logout"})]})]})]})]})}function f(){let{useAuth0:e}=t(5074),{user:r,logout:o}=e();return(0,s.jsx)(p,{user:r,onLogout:()=>o({logoutParams:{returnTo:window.location.origin}})})}function g(){return(0,s.jsx)(p,{user:c.nI,onLogout:()=>alert("Logout disabled in mock mode")})}function v(){return c.vD?(0,s.jsx)(g,{}):(0,s.jsx)(f,{})}var j=t(9376),b=t(7062),k=t(639);t(7365);let N=(0,a.createContext)(null);function w(e){let{children:r}=e,[t,o]=(0,a.useState)(null),[n,l]=(0,a.useState)({webSearch:!0,scraping:!0,audio:!0,video:!0}),{selectedAccount:d,balance:m,initClient:h,fetchBalance:x}=(0,k.Os)();(0,a.useEffect)(()=>{i.hi.getBalance().then(e=>o(e.balance)).catch(()=>{})},[]),(0,a.useEffect)(()=>{d&&h().then(()=>x())},[d,h,x]);let u=m?(0,k.zF)(m):null,p=c.vD?c.nI.email:"";return(0,s.jsx)(N.Provider,{value:{balance:t,walletBalanceTao:u,services:n,toggleService:e=>l(r=>({...r,[e]:!r[e]})),userEmail:p},children:r})}function y(){return(0,a.useContext)(N)}function L(){let{balance:e,walletBalanceTao:r,userEmail:t}=y(),[o,n]=(0,a.useState)(!1);return(0,s.jsxs)("aside",{className:"hidden shrink-0 flex-col border-r border-oc-border bg-oc-base overflow-y-auto transition-all duration-300 xl:flex ".concat(o?"w-16":"w-[22rem] 2xl:w-[26rem]"),children:[(0,s.jsx)("button",{onClick:()=>n(!o),"aria-label":o?"Expand sidebar":"Collapse sidebar",className:"flex h-10 w-full items-center justify-center border-b border-oc-border text-oc-muted transition-colors hover:bg-oc-surface hover:text-oc-primary",children:(0,s.jsx)("svg",{className:"h-4 w-4 transition-transform duration-300 ".concat(o?"rotate-180":""),fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})})}),o?(0,s.jsxs)("div",{className:"flex flex-col items-center gap-3 p-3",children:[(0,s.jsx)(x.default,{href:"/openclaw/fund",t
1itle:"$".concat(parseFloat(e||0).toFixed(2)),className:"flex h-10 w-10 items-center justify-center rounded-lg text-oc-muted transition-colors hover:bg-oc-surface hover:text-oc-primary",children:(0,s.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m-3-2.818l.879.659c1.171.879 3.07.879 4.242 0 1.172-.879 1.172-2.303 0-3.182C13.536 12.219 12.768 12 12 12c-.725 0-1.45-.22-2.003-.659-1.106-.879-1.106-2.303 0-3.182s2.9-.879 4.006 0l.415.33M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),(0,s.jsx)(x.default,{href:"/openclaw",title:"Back to Dashboard",className:"flex h-10 w-10 items-center justify-center rounded-lg text-oc-muted transition-colors hover:bg-oc-surface hover:text-oc-primary",children:(0,s.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"})})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"border-b border-oc-border p-5",children:[(0,s.jsx)("p",{className:"font-aeonik text-[1rem] uppercase tracking-[0.1em] text-oc-muted",children:"Balance"}),(0,s.jsxs)("div",{className:"mt-2 flex items-center gap-3",children:[(0,s.jsxs)("p",{className:"text-[2.4rem] font-medium leading-1 text-oc-primary",children:["$",parseFloat(e||0).toFixed(2)]}),(0,s.jsx)(x.default,{href:"/openclaw/fund",className:"rounded-full bg-red-light px-3 py-1 text-[1.1rem] font-medium text-white-0 transition-colors hover:bg-red-dark",children:"+ Add Credits"})]}),r&&(0,s.jsxs)("p",{className:"mt-2 text-[1.1rem] text-oc-muted",children:["Wallet: ",parseFloat(r).toFixed(4)," TAO"]})]}),(0,s.jsxs)("div",{className:"mt-auto border-t border-oc-border p-5",children:[t&&(0,s.jsx)("p",{className:"mb-3 text-[1.2rem] text-oc-muted",children:t}),(0,s.jsxs)(x.default,{href:"/openclaw",className:"flex items-center gap-2 text-[1.2rem] text-oc-muted transition-colors hover:text-oc-primary",children:[(0,s.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"})}),"Back to Dashboard"]})]})]})]})}function M(){let{balance:e}=y();return(0,s.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-b border-oc-border bg-oc-base px-3 py-2 xl:hidden",children:[(0,s.jsxs)(x.default,{href:"/openclaw",className:"flex shrink-0 items-center gap-1.5 rounded-full border border-oc-border px-3 py-2.5 text-xs text-oc-muted transition-colors hover:border-oc-primary hover:text-oc-primary",children:[(0,s.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"})}),"Back"]}),(0,s.jsx)("div",{className:"h-5 w-px shrink-0 bg-oc-border"}),(0,s.jsxs)("div",{className:"flex shrink-0 items-center gap-2 rounded-full border border-oc-border bg-oc-surface px-3 py-1.5",children:[(0,s.jsxs)("span",{className:"text-xs font-medium text-oc-primary",children:["$",parseFloat(e||0).toFixed(2)]}),(0,s.jsx)(x.default,{href:"/openclaw/fund",className:"rounded-full bg-red-light px-2 py-0.5 text-[0.6rem] font-medium text-white-0 transition-colors hover:bg-red-dark",children:"+"})]})]})}function C(){return(0,s.jsx)(w,{children:(0,s.jsx)(L,{})})}function _(){return(0,s.jsx)(w,{children:(0,s.jsx)(M,{})})}let B=[{label:"OpenClaw",href:"/openclaw",icon:(0,s.jsx)("svg",{className:"h-5 w-5 shrink-0",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 002.25-2.25V6.75a2.25 2.25 0 00-2.25-2.25H6.75A2.25 2.25 0 004.5 6.75v10.5a2.25 2.25 0 002.25 2.25z"})})},{label:"Fund",href:"/openclaw/fund",icon:(0,s.jsx)("svg",{className:"h-5 w-5 shrink-0",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0115.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 013 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 00-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 01-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 003 15h-.75M15 10.5a3 3 0 11-6 0 3 3 0 016 0zm3 0h.008v.008H18V10.5zm-12 0h.008v.008H6V10.5z"})})}];function A(e){let{item:r,isActive:t}=e;return(0,s.jsxs)(x.default,{href:r.href,children:[(0,s.jsxs)("span",{className:(0,b.cn)("hidden items-center gap-3 rounded-lg px-4 py-3 text-[1.4rem] transition-all duration-200 md:flex",t?"bg-oc-surface text-oc-primary":"text-oc-muted hover:bg-oc-surface/50 hover:text-oc-secondary"),children:[r.icon,(0,s.jsx)("span",{children:r.label})]}),(0,s.jsxs)("span",{className:(0,b.cn)("flex items-center gap-1.5 rounded-full px-3.5 py-2 text-xs font-medium transition-all duration-200 md:hidden",t?"bg-oc-surface text-oc-primary shadow-sm":"text-oc-muted hover:text-oc-secondary"),children:[r.icon,(0,s.jsx)("span",{children:r.label})]})]},r.href)}function S(){let e=(0,j.usePathname)();return e.startsWith("/openclaw/chat/")?(0,s.jsx)(C,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flex shrink-0 items-center gap-1 overflow-x-auto border-b border-oc-border bg-oc-base px-3 py-2 md:hidden",children:B.map(r=>{let t="/openclaw"===r.href?"/openclaw"===e:e.startsWith(r.href);return(0,s.jsx)(A,{item:r,isActive:t},r.href)})}
1),(0,s.jsxs)("aside",{className:"hidden w-[24rem] shrink-0 flex-col border-r border-oc-border bg-oc-base md:flex",children:[(0,s.jsx)("nav",{className:"flex flex-col gap-1 p-4",children:B.map(r=>{let t="/openclaw"===r.href?"/openclaw"===e:e.startsWith(r.href);return(0,s.jsx)(A,{item:r,isActive:t},r.href)})}),(0,s.jsx)("div",{className:"mt-auto border-t border-oc-border p-4",children:(0,s.jsx)("p",{className:"font-aeonik text-[1rem] uppercase tracking-[0.1em] text-oc-muted",children:"Powered by Basilica"})})]})]})}function W(){return(0,j.usePathname)().startsWith("/openclaw/chat/")?(0,s.jsx)(_,{}):null}function F(e){let{children:r}=e,{hydrate:t}=(0,l.F)();return(0,a.useEffect)(()=>{t()},[t]),(0,s.jsxs)("div",{className:"flex h-screen flex-col bg-oc-base",children:[(0,s.jsx)(v,{}),(0,s.jsx)(W,{}),(0,s.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col md:flex-row md:overflow-hidden",children:[(0,s.jsx)(S,{}),(0,s.jsx)("main",{className:"relative flex-1 overflow-y-auto bg-oc-base p-4 md:p-8",children:r})]})]})}function z(e){let{children:r}=e,{isAuthenticated:t,getAccessTokenSilently:c,loginWithRedirect:l,logout:d}=(0,o.useAuth0)(),[h,x]=(0,a.useState)(!1),u=(0,a.useCallback)(()=>{console.warn("[auth] Auth error — clearing stale tokens and prompting re-login");try{for(let e of Object.keys(localStorage))(e.startsWith("@@auth0spajs@@")||e.startsWith("a0.spajs."))&&localStorage.removeItem(e)}catch(e){}setTimeout(()=>{l({authorizationParams:{audience:n.y.audience,scope:"openid profile email offline_access keys:create",prompt:"login"}})},500)},[l]);return(0,a.useEffect)(()=>{t&&((0,i.g8)(()=>c({authorizationParams:{audience:n.y.audience,scope:"openid profile email offline_access keys:create"}}),{onAuthError:u}),x(!0))},[t,c,u]),(0,s.jsx)(F,{children:(0,s.jsx)(m,{apiReady:h,children:r})})}function H(e){let{children:r}=e;return(0,a.useEffect)(()=>{(0,i.g8)(()=>Promise.resolve("mock-token"))},[]),(0,s.jsx)(F,{children:r})}function V(e){let{children:r}=e;return c.vD?(0,s.jsx)(H,{children:r}):(0,s.jsx)(o.Auth0Provider,{domain:n.y.domain,clientId:n.y.clientId,authorizationParams:{redirect_uri:n.y.redirectUri,audience:n.y.audience,scope:"openid profile email offline_access keys:create"},cacheLocation:"localstorage",useRefreshTokens:!0,useRefreshTokensFallback:!0,children:(0,s.jsx)(z,{children:r})})}},2936:function(e,r,t){"use strict";t.d(r,{Z:function(){return a}});var s=t(7437),o=t(3420);function a(){let{theme:e,toggleTheme:r}=(0,o.F)();return(0,s.jsx)("button",{onClick:r,className:"flex h-10 w-10 items-center justify-center rounded-md text-oc-muted transition-colors hover:text-oc-primary","aria-label":"dark"===e?"Switch to light mode":"Switch to dark mode",title:"dark"===e?"Switch to light mode":"Switch to dark mode",children:"dark"===e?(0,s.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"})}):(0,s.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.718 9.718 0 0118 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 003 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 009.002-5.998z"})})})}},7365:function(e,r,t){"use strict";t.d(r,{D:function(){return i},a:function(){return o}});var s=t(3011);let o=[{id:"minimax",label:"MiniMax M2.5",model:"MiniMax-M2.5"},{id:"moonshot",label:"Kimi K2.5",model:"kimi-k2.5"},{id:"openai",label:"OpenAI",model:"gpt-5.2-pro"},{id:"anthropic",label:"Anthropic",model:"claude-opus-4-1-20250805"}],a="openclaw-provider-settings";function n(e){try{localStorage.setItem(a,JSON.stringify({provider:e.provider,apiKeys:e.apiKeys}))}catch(e){}}let i=(0,s.U)((e,r)=>({provider:"minimax",apiKeys:{openai:"",anthropic:"",minimax:"",moonshot:""},setProvider:t=>{e({provider:t}),n(r())},setApiKey:(t,s)=>{e(e=>({apiKeys:{...e.apiKeys,[t]:s}})),n(r())},hydrate:()=>{let t=function(){try{let e=localStorage.getItem(a);return e?JSON.parse(e):{}}catch(e){return{}}}();(t.provider||t.apiKeys)&&e({...t.provider?{provider:t.provider}:{},...t.apiKeys?{apiKeys:{...r().apiKeys,...t.apiKeys}}:{}})}}))},3420:function(e,r,t){"use strict";t.d(r,{F:function(){return a}});var s=t(3011);let o=()=>{let e=localStorage.getItem("basilica-theme");return"light"===e||"dark"===e?e:"light"},a=(0,s.U)(e=>({theme:"light",setTheme:r=>{localStorage.setItem("basilica-theme",r),document.documentElement.classList.toggle("dark","dark"===r),e({theme:r})},toggleTheme:()=>{e(e=>{let r="dark"===e.theme?"light":"dark";return localStorage.setItem("basilica-theme",r),document.documentElement.classList.toggle("dark","dark"===r),{theme:r}})},hydrate:()=>{let r=o();document.documentElement.classList.toggle("dark","dark"===r),e({theme:r})}}))},4519:function(e,r,t){"use strict";var s=t(7437);let o=(0,t(2265).forwardRef)((e,r)=>{let{className:t="",src:o,width:a,height:n,alt:i}=e;return(0,s.jsx)("img",{src:o,alt:i||"No alt text",width:a,height:n,ref:r,className:t})});o.displayName="SVG",r.Z=o},6050:function(){},4562:function(e){e.exports={style:{fontFamily:"'__aeonik_e2d852', '__aeonik_Fallback_e2d852'"},className:"__className_e2d852",variable:"__variable_e2d852"}},7861:function(e){e.exports={style:{fontFamily:"'__montreal_161473', '__montreal_Fallback_161473'"}
1,className:"__className_161473",variable:"__variable_161473"}}},function(e){e.O(0,[8181,4387,4170,118,257,9421,2971,2117,1744],function(){return e(e.s=4115)}),_N_E=e.O()}]);

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.