PageSourceSearch

https://brandjitsu.com/assets/AdminLayout-CEtuinjK.js

js brandjitsu.com collected 2026-10-04 06:18:59 UTC 4,301 bytes, 1 lines download raw bytes

1import{r as e,j as s,X as a,M as i,a2 as l,U as n,L as r,p as d,a3 as t,a4 as c,a5 as o,m,B as x,S as h,F as j,O as u}from"./vendor-DKpN-gn6.js";import{e as p,u as b,B as g,c as f}from"./index-CjqWG2Gu.js";import"./auth-D0Oxv0aP.js";import"./ui-DbiJ6HOd.js";const y=()=>{const[d,t]=e.useState(!1),{signOut:c,user:o}=p(),{toast:m}=b();return s.jsxs("header",{className:"bg-white shadow-sm py-4 px-6",children:[s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsxs("div",{className:"flex items-center md:hidden",children:[s.jsx("button",{onClick:()=>t(!d),className:"text-gray-500 focus:outline-none",children:d?s.jsx(a,{size:24}):s.jsx(i,{size:24})}),s.jsx("h1",{className:"text-xl font-semibold ml-3 text-gray-800",children:"Admin Panel"})]}),s.jsx("div",{className:"hidden md:block",children:s.jsx("h1",{className:"text-xl font-semibold text-gray-800",children:"Admin Panel"})}),s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx(g,{variant:"ghost",size:"icon",children:s.jsx(l,{size:20})}),s.jsxs("div",{className:"flex items-center",children:[s.jsx("div",{className:"w-8 h-8 rounded-full bg-brand-blue-dark flex items-center justify-center text-white",children:s.jsx(n,{size:16})}),s.jsx("span",{className:"ml-2 hidden md:block text-sm font-medium",children:o?.email?.split("@")[0]||"Admin"})]})]})]}),d&&s.jsx("div",{className:"md:hidden mt-4",children:s.jsx("nav",{children:s.jsxs("ul",{className:"space-y-2",children:[s.jsx("li",{children:s.jsx(r,{to:"/admin",className:"block px-3 py-2 rounded-md hover:bg-gray-100",onClick:()=>t(!1),children:"Dashboard"})}),s.jsx("li",{children:s.jsx(r,{to:"/admin/reviews",className:"block px-3 py-2 rounded-md hover:bg-gray-100",onClick:()=>t(!1),children:"Reviews"})}),s.jsx("li",{children:s.jsx(r,{to:"/admin/bookstores",className:"block px-3 py-2 rounded-md hover:bg-gray-100",onClick:()=>t(!1),children:"Bookstores"})}),s.jsx("li",{children:s.jsx(r,{to:"/admin/store",className:"block px-3 py-2 rounded-md hover:bg-gray-100",onClick:()=>t(!1),children:"Store"})}),s.jsx("li",{children:s.jsx(r,{to:"/admin/resources",className:"block px-3 py-2 rounded-md hover:bg-gray-100",onClick:()=>t(!1),children:"Resources"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>{(async()=>{try{await c(),m({title:"Logged out",description:"You have been successfully logged out."})}catch(e){}})(),t(!1)},className:"block w-full text-left px-3 py-2 rounded-md hover:bg-gray-100",children:"Logout"})})]})})})]})},N=()=>{const e=d(),{signOut:a}=p(),{toast:i}=b(),l=[{name:"Dashboard",path:"/admin",icon:s.jsx(c,{size:20})},{name:"Reviews",path:"/admin/reviews",icon:s.jsx(o,{size:20})},{name:"Bookstores",path:"/admin/bookstores",icon:s.jsx(m,{size:20})},{name:"Store",path:"/admin/store",icon:s.jsx(x,{size:20})},{name:"Orders",path:"/admin/orders",icon:s.jsx(h,{size:20})},{name:"Resources",path:"/admin/resources",icon:s.jsx(j,{size:20})}];return s.jsxs("aside",{className:"w-64 hidden md:flex flex-col bg-white border-r shadow-sm",children:[s.jsx("div",{className:"p-6 border-b",children:s.jsx(r,{to:"/admin",className:"text-xl font-bold text-brand-blue-dark",children:"BrandJitsu™ Admin"})}),s.jsx("nav",{className:"flex-1 overflow-y-auto py-4",children:s.jsx("ul",{className:"space-y-1 px-3",children:l.map((a=>s.jsx("li",{children:s.jsxs(r,{to:a.path,className:f("flex items-center px-3 py-2 rounded-md text-sm font-medium",e.pathname===a.path?"bg-brand-blue-dark text-white":"text-gray-700 hover:bg-gray-100"),children:[s.jsx("span",{className:"mr-3",children:a.icon}),a.name]})},a.name)))})}),s.jsx("div",{className:"p-4 border-t",children:s.jsxs("button",{onClick:async()=>{try{await a(),i({title:"Logged out",description:"You have been successfully logged out."})}catch(e){}},className:"flex w-full items-center text-gray-700 hover:text-brand-blue-dark",children:[s.jsx(t,{size:20,className:"mr-3"}),s.jsx("span",{children:"Logout"})]})})]})},v=()=>{const a=d();return e.useEffect((()=>{window.scrollTo({top:0,behavior:"smooth"})}),[a.pathname]),s.jsxs("div",{className:"min-h-screen flex flex-col md:flex-row bg-gray-50",children:[s.jsx(N,{}),s.jsxs("div",{className:"flex-1 flex flex-col min-h-screen",children:[s.jsx(y,{}),s.jsx("main",{className:"flex-1 p-6",children:s.jsx(u,{})})]})]})};export{v 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.