module.exports=[99142,(a,b,c)=>{"use strict";b.exports=a.r(87198).vendored.contexts.AppRouterContext},58802,(a,b,c)=>{"use strict";b.exports=a.r(87198).vendored.contexts.HooksClientContext},25316,(a,b,c)=>{"use strict";b.exports=a.r(87198).vendored.contexts.ServerInsertedHtml},18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},87198,(a,b,c)=>{"use strict";b.exports=a.r(18622)},48333,(a,b,c)=>{"use strict";b.exports=a.r(87198).vendored["react-ssr"].ReactJsxRuntime},81235,(a,b,c)=>{"use strict";b.exports=a.r(87198).vendored["react-ssr"].React},84036,a=>{"use strict";var b=a.i(48333),c=a.i(81235),d=a.i(93465);function e({children:a}){let e=(0,d.useRouter)(),f=(0,d.usePathname)(),[g,h]=(0,c.useState)(!1),[i,j]=(0,c.useState)(null),[k,l]=(0,c.useState)(null),[m,n]=(0,c.useState)(!1),o=(0,c.useMemo)(()=>i?.name||i?.sellerId||"Seller",[i]);(0,c.useEffect)(()=>{try{let a=localStorage.getItem("seller_session_v1");j(a?JSON.parse(a):null),l(localStorage.getItem("seller_token_v1"))}catch{j(null),l(null)}finally{h(!0)}},[]),(0,c.useEffect)(()=>{!g||"/seller/login"!==f&&(i&&k||e.replace("/seller/login"))},[g,i,k,f,e]),(0,c.useEffect)(()=>{n(!1)},[f]);let p=()=>{localStorage.removeItem("seller_session_v1"),localStorage.removeItem("seller_token_v1"),document.cookie="seller_token_v1=; Max-Age=0; path=/",document.cookie="seller_session_v1=; Max-Age=0; path=/",e.replace("/seller/login")};if(!g)return(0,b.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:"Loading..."});if("/seller/login"===f)return(0,b.jsx)(b.Fragment,{children:a});let q=(0,b.jsxs)("div",{className:"h-full bg-white border-r border-black/10",children:[(0,b.jsxs)("div",{className:"p-2 border-b border-black/10",children:[(0,b.jsx)("div",{className:"text-lg font-bold",children:"Seller Panel"}),(0,b.jsx)("div",{className:"text-xs text-gray-500 mt-1",children:o})]}),(0,b.jsx)("nav",{className:"p-3 space-y-2",children:(0,b.jsx)("a",{href:"/seller/inbox",className:"block px-4 py-3 rounded hover:bg-black hover:text-white transition",children:"📥 Inbox"})}),(0,b.jsx)("div",{className:"p-3",children:(0,b.jsx)("button",{onClick:p,className:"w-full px-4 py-3 rounded border border-black/20 hover:bg-black hover:text-white transition",children:"Logout"})})]});return(0,b.jsxs)("div",{className:"min-h-screen bg-gray-100",children:[(0,b.jsx)("div",{className:"md:hidden sticky top-0 z-40 border-b bg-white",children:(0,b.jsxs)("div",{className:"flex items-center justify-between px-4 py-3",children:[(0,b.jsx)("button",{type:"button",onClick:()=>n(!0),className:"inline-flex items-center gap-2 rounded-md border border-black/10 px-3 py-2 text-sm hover:bg-black hover:text-white transition","aria-label":"Open menu",children:"☰ Menu"}),(0,b.jsx)("div",{className:"text-sm font-semibold",children:"Seller Panel"}),(0,b.jsx)("button",{type:"button",onClick:p,className:"inline-flex items-center gap-2 rounded-md border border-black/10 px-3 py-2 text-sm hover:bg-black hover:text-white transition",children:"Logout"})]})}),m&&(0,b.jsxs)("div",{className:"md:hidden fixed inset-0 z-50",children:[(0,b.jsx)("div",{className:"absolute inset-0 bg-black/40",onClick:()=>n(!1)}),(0,b.jsxs)("div",{className:"absolute left-0 top-0 h-full w-[82%] max-w-[340px] bg-white shadow-xl border-r border-black/10",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-black/10",children:[(0,b.jsx)("div",{className:"text-sm font-semibold",children:"Menu"}),(0,b.jsx)("button",{type:"button",onClick:()=>n(!1),className:"rounded-md border border-black/10 px-3 py-2 text-sm hover:bg-black hover:text-white transition","aria-label":"Close menu",children:"✕"})]}),(0,b.jsx)("div",{className:"h-[calc(100%-52px)] overflow-y-auto",children:q})]})]}),(0,b.jsxs)("div",{className:"grid grid-cols-12",children:[(0,b.jsx)("aside",{className:"hidden md:block md:col-span-3 lg:col-span-2 bg-white border-r border-black/10 min-h-screen sticky top-0",children:(0,b.jsx)("div",{className:"h-screen overflow-y-auto",children:q})}),(0,b.jsx)("main",{className:"col-span-12 md:col-span-9 lg:col-span-10",children:a})]})]})}a.s(["default",()=>e])}];

//# sourceMappingURL=%5Broot-of-the-server%5D__bf592021._.js.map