This commit implements the core admin dashboard functionality including NextAuth authentication, Cloudflare D1 database integration with complete schema, and Cloudflare R2 file upload system for portfolio images. Features include artist management, appointment scheduling, and data migration capabilities.
1 line
19 KiB
JavaScript
1 line
19 KiB
JavaScript
(()=>{var e={};e.id=8668,e.ids=[8668],e.modules={72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},27790:e=>{"use strict";e.exports=require("assert")},78893:e=>{"use strict";e.exports=require("buffer")},84770:e=>{"use strict";e.exports=require("crypto")},17702:e=>{"use strict";e.exports=require("events")},32615:e=>{"use strict";e.exports=require("http")},35240:e=>{"use strict";e.exports=require("https")},55315:e=>{"use strict";e.exports=require("path")},86624:e=>{"use strict";e.exports=require("querystring")},17360:e=>{"use strict";e.exports=require("url")},21764:e=>{"use strict";e.exports=require("util")},71568:e=>{"use strict";e.exports=require("zlib")},38769:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>i.a,__next_app__:()=>m,originalPathname:()=>u,pages:()=>c,routeModule:()=>p,tree:()=>d}),r(67010),r(49446),r(40656),r(40509),r(70546);var s=r(30170),n=r(45002),a=r(83876),i=r.n(a),o=r(66299),l={};for(let e in o)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>o[e]);r.d(t,l);let d=["",{children:["admin",{children:["analytics",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,67010)),"/home/Nicholai/Documents/Dev/united_v03/united-tattoo/united-tattoo/app/admin/analytics/page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(r.bind(r,49446)),"/home/Nicholai/Documents/Dev/united_v03/united-tattoo/united-tattoo/app/admin/layout.tsx"],metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,57481))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(r.bind(r,40656)),"/home/Nicholai/Documents/Dev/united_v03/united-tattoo/united-tattoo/app/layout.tsx"],error:[()=>Promise.resolve().then(r.bind(r,40509)),"/home/Nicholai/Documents/Dev/united_v03/united-tattoo/united-tattoo/app/error.tsx"],"not-found":[()=>Promise.resolve().then(r.bind(r,70546)),"/home/Nicholai/Documents/Dev/united_v03/united-tattoo/united-tattoo/app/not-found.tsx"],metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,57481))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}],c=["/home/Nicholai/Documents/Dev/united_v03/united-tattoo/united-tattoo/app/admin/analytics/page.tsx"],u="/admin/analytics/page",m={require:r,loadChunk:()=>Promise.resolve()},p=new s.AppPageRouteModule({definition:{kind:n.x.APP_PAGE,page:"/admin/analytics/page",pathname:"/admin/analytics",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},71129:(e,t,r)=>{Promise.resolve().then(r.bind(r,84662))},84662:(e,t,r)=>{"use strict";r.d(t,{Tabs:()=>i,TabsContent:()=>d,TabsList:()=>o,TabsTrigger:()=>l});var s=r(97247);r(28964);var n=r(73664),a=r(25008);function i({className:e,...t}){return s.jsx(n.fC,{"data-slot":"tabs",className:(0,a.cn)("flex flex-col gap-2",e),...t})}function o({className:e,...t}){return s.jsx(n.aV,{"data-slot":"tabs-list",className:(0,a.cn)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function l({className:e,...t}){return s.jsx(n.xz,{"data-slot":"tabs-trigger",className:(0,a.cn)("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function d({className:e,...t}){return s.jsx(n.VY,{"data-slot":"tabs-content",className:(0,a.cn)("flex-1 outline-none",e),...t})}},50820:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});let s=(0,r(26323).Z)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},35216:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});let s=(0,r(26323).Z)("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},56460:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});let s=(0,r(26323).Z)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])},19400:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});let s=(0,r(26323).Z)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]])},72465:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});let s=(0,r(26323).Z)("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]])},17316:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});let s=(0,r(26323).Z)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},69964:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});let s=(0,r(26323).Z)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},57989:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});let s=(0,r(26323).Z)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},67010:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b,metadata:()=>v});var s=r(72051),n=r(33897),a=r(74725),i=r(6669),o=r(45347);let l=(0,o.createProxy)(String.raw`/home/Nicholai/Documents/Dev/united_v03/united-tattoo/united-tattoo/components/ui/tabs.tsx#Tabs`),d=(0,o.createProxy)(String.raw`/home/Nicholai/Documents/Dev/united_v03/united-tattoo/united-tattoo/components/ui/tabs.tsx#TabsList`),c=(0,o.createProxy)(String.raw`/home/Nicholai/Documents/Dev/united_v03/united-tattoo/united-tattoo/components/ui/tabs.tsx#TabsTrigger`),u=(0,o.createProxy)(String.raw`/home/Nicholai/Documents/Dev/united_v03/united-tattoo/united-tattoo/components/ui/tabs.tsx#TabsContent`);var m=r(86449);let p=(0,m.Z)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]),h=(0,m.Z)("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]),x=(0,m.Z)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);function f({title:e,value:t,description:r,trend:n}){let a="up"===n?"text-green-500":"down"===n?"text-red-500":"text-gray-500";return(0,s.jsxs)(i.Zb,{children:[(0,s.jsxs)(i.Ol,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(i.ll,{className:"text-sm font-medium",children:e}),s.jsx("up"===n?p:"down"===n?h:x,{className:`h-4 w-4 ${a}`})]}),(0,s.jsxs)(i.aY,{children:[s.jsx("div",{className:"text-2xl font-bold",children:t}),s.jsx("p",{className:`text-xs ${a}`,children:r})]})]})}let v={title:"Analytics - United Tattoo Studio",description:"Analytics and insights for United Tattoo Studio"},y=[{month:"Jan",bookings:45,revenue:12500},{month:"Feb",bookings:52,revenue:14200},{month:"Mar",bookings:48,revenue:13800},{month:"Apr",bookings:61,revenue:16900},{month:"May",bookings:55,revenue:15200},{month:"Jun",bookings:67,revenue:18500}],g=[{name:"Sarah Chen",bookings:28,revenue:8400},{name:"Marcus Rodriguez",bookings:24,revenue:7200},{name:"Emma Thompson",bookings:22,revenue:6600},{name:"David Kim",bookings:19,revenue:5700}],j=[{name:"Traditional",value:35,color:"#8884d8"},{name:"Realism",value:25,color:"#82ca9d"},{name:"Geometric",value:20,color:"#ffc658"},{name:"Watercolor",value:12,color:"#ff7300"},{name:"Other",value:8,color:"#00ff88"}];async function b(){return await (0,n.mk)(a.i.SHOP_ADMIN),(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:"Analytics"}),s.jsx("p",{className:"text-muted-foreground",children:"Comprehensive insights and analytics for your tattoo studio"})]}),(0,s.jsxs)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:[s.jsx(f,{title:"Total Revenue",value:"$18,500",description:"+12% from last month",trend:"up"}),s.jsx(f,{title:"Total Bookings",value:"67",description:"+8% from last month",trend:"up"}),s.jsx(f,{title:"Active Artists",value:"4",description:"All artists active",trend:"neutral"}),s.jsx(f,{title:"Avg. Session Value",value:"$276",description:"+3% from last month",trend:"up"})]}),(0,s.jsxs)(l,{defaultValue:"overview",className:"space-y-4",children:[(0,s.jsxs)(d,{children:[s.jsx(c,{value:"overview",children:"Overview"}),s.jsx(c,{value:"revenue",children:"Revenue"}),s.jsx(c,{value:"artists",children:"Artists"}),s.jsx(c,{value:"services",children:"Services"})]}),s.jsx(u,{value:"overview",className:"space-y-4",children:(0,s.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,s.jsxs)(i.Zb,{children:[(0,s.jsxs)(i.Ol,{children:[s.jsx(i.ll,{children:"Monthly Bookings"}),s.jsx(i.SZ,{children:"Number of bookings over the last 6 months"})]}),s.jsx(i.aY,{children:s.jsx("div",{className:"space-y-2",children:y.map(e=>(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[s.jsx("span",{className:"font-medium",children:e.month}),(0,s.jsxs)("span",{className:"text-sm text-muted-foreground",children:[e.bookings," bookings"]})]},e.month))})})]}),(0,s.jsxs)(i.Zb,{children:[(0,s.jsxs)(i.Ol,{children:[s.jsx(i.ll,{children:"Service Distribution"}),s.jsx(i.SZ,{children:"Breakdown of tattoo styles and services"})]}),s.jsx(i.aY,{children:s.jsx("div",{className:"space-y-4",children:j.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[s.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:e.color}}),s.jsx("span",{className:"font-medium",children:e.name})]}),(0,s.jsxs)("span",{className:"text-muted-foreground",children:[e.value,"%"]})]},e.name))})})]})]})}),s.jsx(u,{value:"revenue",className:"space-y-4",children:(0,s.jsxs)(i.Zb,{children:[(0,s.jsxs)(i.Ol,{children:[s.jsx(i.ll,{children:"Revenue Trends"}),s.jsx(i.SZ,{children:"Monthly revenue over the last 6 months"})]}),s.jsx(i.aY,{children:s.jsx("div",{className:"space-y-2",children:y.map(e=>(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[s.jsx("span",{className:"font-medium",children:e.month}),(0,s.jsxs)("span",{className:"text-sm text-muted-foreground",children:["$",e.revenue.toLocaleString()]})]},e.month))})})]})}),s.jsx(u,{value:"artists",className:"space-y-4",children:(0,s.jsxs)(i.Zb,{children:[(0,s.jsxs)(i.Ol,{children:[s.jsx(i.ll,{children:"Artist Performance"}),s.jsx(i.SZ,{children:"Bookings and revenue by artist this month"})]}),s.jsx(i.aY,{children:s.jsx("div",{className:"space-y-2",children:g.map(e=>(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[s.jsx("span",{className:"font-medium",children:e.name}),(0,s.jsxs)("div",{className:"text-sm text-muted-foreground",children:[e.bookings," bookings • $",e.revenue.toLocaleString()]})]},e.name))})})]})}),s.jsx(u,{value:"services",className:"space-y-4",children:(0,s.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,s.jsxs)(i.Zb,{children:[(0,s.jsxs)(i.Ol,{children:[s.jsx(i.ll,{children:"Popular Services"}),s.jsx(i.SZ,{children:"Most requested tattoo styles"})]}),s.jsx(i.aY,{children:s.jsx("div",{className:"space-y-4",children:j.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[s.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:e.color}}),s.jsx("span",{className:"font-medium",children:e.name})]}),(0,s.jsxs)("span",{className:"text-muted-foreground",children:[e.value,"%"]})]},e.name))})})]}),(0,s.jsxs)(i.Zb,{children:[(0,s.jsxs)(i.Ol,{children:[s.jsx(i.ll,{children:"Service Trends"}),s.jsx(i.SZ,{children:"How service preferences have changed"})]}),s.jsx(i.aY,{children:s.jsx("div",{className:"space-y-4",children:(0,s.jsxs)("div",{className:"text-sm text-muted-foreground",children:[s.jsx("p",{children:"• Traditional tattoos remain the most popular choice"}),s.jsx("p",{children:"• Realism has grown 15% this quarter"}),s.jsx("p",{children:"• Geometric designs are trending upward"}),s.jsx("p",{children:"• Watercolor requests have stabilized"})]})})})]})]})})]})]})}},6669:(e,t,r)=>{"use strict";r.d(t,{Ol:()=>i,SZ:()=>l,Zb:()=>a,aY:()=>d,ll:()=>o});var s=r(72051);r(26269);var n=r(37170);function a({className:e,...t}){return s.jsx("div",{"data-slot":"card",className:(0,n.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function i({className:e,...t}){return s.jsx("div",{"data-slot":"card-header",className:(0,n.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function o({className:e,...t}){return s.jsx("div",{"data-slot":"card-title",className:(0,n.cn)("leading-none font-semibold",e),...t})}function l({className:e,...t}){return s.jsx("div",{"data-slot":"card-description",className:(0,n.cn)("text-muted-foreground text-sm",e),...t})}function d({className:e,...t}){return s.jsx("div",{"data-slot":"card-content",className:(0,n.cn)("px-6",e),...t})}},37170:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var s=r(36272),n=r(51472);function a(...e){return(0,n.m6)((0,s.W)(e))}},41288:(e,t,r)=>{"use strict";var s=r(71083);r.o(s,"redirect")&&r.d(t,{redirect:function(){return s.redirect}})},71083:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return i},RedirectType:function(){return s.RedirectType},notFound:function(){return n.notFound},permanentRedirect:function(){return s.permanentRedirect},redirect:function(){return s.redirect}});let s=r(1192),n=r(76868);class a extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class i extends URLSearchParams{append(){throw new a}delete(){throw new a}set(){throw new a}sort(){throw new a}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76868:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isNotFoundError:function(){return n},notFound:function(){return s}});let r="NEXT_NOT_FOUND";function s(){let e=Error(r);throw e.digest=r,e}function n(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},83701:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}}),function(e){e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect"}(r||(r={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1192:(e,t,r)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return s},getRedirectError:function(){return l},getRedirectStatusCodeFromError:function(){return h},getRedirectTypeFromError:function(){return p},getURLFromRedirectError:function(){return m},isRedirectError:function(){return u},permanentRedirect:function(){return c},redirect:function(){return d}});let n=r(54580),a=r(72934),i=r(83701),o="NEXT_REDIRECT";function l(e,t,r){void 0===r&&(r=i.RedirectStatusCode.TemporaryRedirect);let s=Error(o);s.digest=o+";"+t+";"+e+";"+r+";";let a=n.requestAsyncStorage.getStore();return a&&(s.mutableCookies=a.mutableCookies),s}function d(e,t){void 0===t&&(t="replace");let r=a.actionAsyncStorage.getStore();throw l(e,t,(null==r?void 0:r.isAction)?i.RedirectStatusCode.SeeOther:i.RedirectStatusCode.TemporaryRedirect)}function c(e,t){void 0===t&&(t="replace");let r=a.actionAsyncStorage.getStore();throw l(e,t,(null==r?void 0:r.isAction)?i.RedirectStatusCode.SeeOther:i.RedirectStatusCode.PermanentRedirect)}function u(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,s,n]=e.digest.split(";",4),a=Number(n);return t===o&&("replace"===r||"push"===r)&&"string"==typeof s&&!isNaN(a)&&a in i.RedirectStatusCode}function m(e){return u(e)?e.digest.split(";",3)[2]:null}function p(e){if(!u(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function h(e){if(!u(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(function(e){e.push="push",e.replace="replace"})(s||(s={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9379,8213,9234,4128,7598,9906,3664,5773,8224],()=>r(38769));module.exports=s})(); |