(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86909,e=>{"use strict";let t="admin_api_key";e.s(["clearAdminApiKey",0,function(){window.localStorage.removeItem(t)},"getAdminApiKey",0,function(){let e=window.localStorage.getItem(t);return e&&e.trim().length>0?e.trim():null},"setAdminApiKey",0,function(e){window.localStorage.setItem(t,e.trim())}])},18566,(e,t,i)=>{t.exports=e.r(76562)},52683,e=>{"use strict";var t=e.i(43476),i=e.i(71645),n=e.i(18566),o=e.i(86909);e.s(["default",0,function(){let e=(0,n.useRouter)();return(0,i.useEffect)(()=>{let t=(0,o.getAdminApiKey)();e.replace(t?"/admin/books":"/login")},[e]),(0,t.jsx)("div",{className:"flex min-h-dvh items-center justify-center bg-zinc-950",children:(0,t.jsx)("div",{className:"text-sm text-zinc-300",children:"Loading…"})})}])}]);