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
39 KiB
JavaScript
1 line
39 KiB
JavaScript
(()=>{var e={};e.id=6140,e.ids=[6140],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")},3730:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>a.a,__next_app__:()=>h,originalPathname:()=>u,pages:()=>c,routeModule:()=>p,tree:()=>d}),r(9092),r(49446),r(40656),r(40509),r(70546);var n=r(30170),s=r(45002),i=r(83876),a=r.n(i),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:["settings",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,9092)),"/home/Nicholai/Documents/Dev/united_v03/united-tattoo/united-tattoo/app/admin/settings/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/settings/page.tsx"],u="/admin/settings/page",h={require:r,loadChunk:()=>Promise.resolve()},p=new n.AppPageRouteModule({definition:{kind:s.x.APP_PAGE,page:"/admin/settings/page",pathname:"/admin/settings",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},76244:(e,t,r)=>{Promise.resolve().then(r.bind(r,60985)),Promise.resolve().then(r.bind(r,70099))},70099:(e,t,r)=>{"use strict";r.d(t,{SettingsManager:()=>z});var n=r(97247),s=r(28964),i=r(27757),a=r(58053),o=r(70170),l=r(22394),d=r(44494),c=r(67036),u=r(84662),h=r(94049);function p(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}r(46817);var f=s.forwardRef((e,t)=>{let{children:r,...i}=e,a=s.Children.toArray(r),o=a.find(g);if(o){let e=o.props.children,r=a.map(t=>t!==o?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,n.jsx)(m,{...i,ref:t,children:s.isValidElement(e)?s.cloneElement(e,void 0,r):null})}return(0,n.jsx)(m,{...i,ref:t,children:r})});f.displayName="Slot";var m=s.forwardRef((e,t)=>{let{children:r,...n}=e;if(s.isValidElement(r)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(r);return s.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let s=e[n],i=t[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...e)=>{i(...e),s(...e)}:s&&(r[n]=s):"style"===n?r[n]={...s,...i}:"className"===n&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?function(...e){return t=>{let r=!1,n=e.map(e=>{let n=p(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():p(e[t],null)}}}}(t,e):e})}return s.Children.count(r)>1?s.Children.only(null):null});m.displayName="SlotClone";var x=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});function g(e){return s.isValidElement(e)&&e.type===x}var v=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=s.forwardRef((e,r)=>{let{asChild:s,...i}=e,a=s?f:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(a,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),j="horizontal",y=["horizontal","vertical"],b=s.forwardRef((e,t)=>{let{decorative:r,orientation:s=j,...i}=e,a=y.includes(s)?s:j;return(0,n.jsx)(v.div,{"data-orientation":a,...r?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"},...i,ref:t})});b.displayName="Separator";var k=r(25008);function w({className:e,orientation:t="horizontal",decorative:r=!0,...s}){return n.jsx(b,{"data-slot":"separator",decorative:r,orientation:t,className:(0,k.cn)("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...s})}var N=r(10906),C=r(60985),_=r(60782),S=r(26323);let M=(0,S.Z)("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);var P=r(17712);let R=(0,S.Z)("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);var T=r(57989),E=r(72465),O=r(17316);let Z=(0,S.Z)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);function z(){let[e,t]=(0,s.useState)({}),[r,p]=(0,s.useState)(!0),[f,m]=(0,s.useState)(!1),[x,g]=(0,s.useState)("general"),{toast:v}=(0,N.pm)(),j=async()=>{m(!0);try{if(!(await fetch("/api/settings",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok)throw Error("Failed to save settings");v({title:"Success",description:"Settings saved successfully"})}catch(e){v({title:"Error",description:"Failed to save settings",variant:"destructive"})}finally{m(!1)}},y=(e,r)=>{t(t=>({...t,[e]:r}))},b=(e,r,n)=>{t(t=>({...t,[e]:{...t[e],[r]:n}}))},k=(t,r,n)=>{let s=[...e.businessHours||[]];s[t]||(s[t]={dayOfWeek:t,openTime:"09:00",closeTime:"17:00",isClosed:!1}),s[t]={...s[t],[r]:n},y("businessHours",s)};return r?n.jsx(C.LoadingSpinner,{}):n.jsx(_.SV,{children:(0,n.jsxs)("div",{className:"space-y-6",children:[(0,n.jsxs)(u.Tabs,{value:x,onValueChange:g,className:"space-y-6",children:[(0,n.jsxs)(u.TabsList,{className:"grid w-full grid-cols-6",children:[(0,n.jsxs)(u.TabsTrigger,{value:"general",children:[n.jsx(M,{className:"mr-2 h-4 w-4"}),"General"]}),(0,n.jsxs)(u.TabsTrigger,{value:"business",children:[n.jsx(P.Z,{className:"mr-2 h-4 w-4"}),"Business"]}),(0,n.jsxs)(u.TabsTrigger,{value:"booking",children:[n.jsx(R,{className:"mr-2 h-4 w-4"}),"Booking"]}),(0,n.jsxs)(u.TabsTrigger,{value:"users",children:[n.jsx(T.Z,{className:"mr-2 h-4 w-4"}),"Users"]}),(0,n.jsxs)(u.TabsTrigger,{value:"appearance",children:[n.jsx(E.Z,{className:"mr-2 h-4 w-4"}),"Appearance"]}),(0,n.jsxs)(u.TabsTrigger,{value:"advanced",children:[n.jsx(O.Z,{className:"mr-2 h-4 w-4"}),"Advanced"]})]}),(0,n.jsxs)(u.TabsContent,{value:"general",className:"space-y-6",children:[(0,n.jsxs)(i.Zb,{children:[(0,n.jsxs)(i.Ol,{children:[n.jsx(i.ll,{children:"Studio Information"}),n.jsx(i.SZ,{children:"Basic information about your tattoo studio."})]}),(0,n.jsxs)(i.aY,{className:"space-y-4",children:[(0,n.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,n.jsxs)("div",{children:[n.jsx(l._,{htmlFor:"studioName",children:"Studio Name"}),n.jsx(o.I,{id:"studioName",value:e.studioName||"",onChange:e=>y("studioName",e.target.value),placeholder:"United Tattoo Studio"})]}),(0,n.jsxs)("div",{children:[n.jsx(l._,{htmlFor:"phone",children:"Phone Number"}),n.jsx(o.I,{id:"phone",value:e.phone||"",onChange:e=>y("phone",e.target.value),placeholder:"+1 (555) 123-4567"})]})]}),(0,n.jsxs)("div",{children:[n.jsx(l._,{htmlFor:"description",children:"Description"}),n.jsx(d.g,{id:"description",value:e.description||"",onChange:e=>y("description",e.target.value),placeholder:"Describe your studio...",rows:3})]}),(0,n.jsxs)("div",{children:[n.jsx(l._,{htmlFor:"address",children:"Address"}),n.jsx(d.g,{id:"address",value:e.address||"",onChange:e=>y("address",e.target.value),placeholder:"123 Main St, City, State 12345",rows:2})]}),(0,n.jsxs)("div",{children:[n.jsx(l._,{htmlFor:"email",children:"Contact Email"}),n.jsx(o.I,{id:"email",type:"email",value:e.email||"",onChange:e=>y("email",e.target.value),placeholder:"contact@unitedtattoo.com"})]})]})]}),(0,n.jsxs)(i.Zb,{children:[(0,n.jsxs)(i.Ol,{children:[n.jsx(i.ll,{children:"Social Media"}),n.jsx(i.SZ,{children:"Connect your social media accounts."})]}),n.jsx(i.aY,{className:"space-y-4",children:(0,n.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,n.jsxs)("div",{children:[n.jsx(l._,{htmlFor:"instagram",children:"Instagram"}),n.jsx(o.I,{id:"instagram",value:e.socialMedia?.instagram||"",onChange:e=>b("socialMedia","instagram",e.target.value),placeholder:"@unitedtattoo"})]}),(0,n.jsxs)("div",{children:[n.jsx(l._,{htmlFor:"facebook",children:"Facebook"}),n.jsx(o.I,{id:"facebook",value:e.socialMedia?.facebook||"",onChange:e=>b("socialMedia","facebook",e.target.value),placeholder:"facebook.com/unitedtattoo"})]}),(0,n.jsxs)("div",{children:[n.jsx(l._,{htmlFor:"twitter",children:"Twitter"}),n.jsx(o.I,{id:"twitter",value:e.socialMedia?.twitter||"",onChange:e=>b("socialMedia","twitter",e.target.value),placeholder:"@unitedtattoo"})]}),(0,n.jsxs)("div",{children:[n.jsx(l._,{htmlFor:"tiktok",children:"TikTok"}),n.jsx(o.I,{id:"tiktok",value:e.socialMedia?.tiktok||"",onChange:e=>b("socialMedia","tiktok",e.target.value),placeholder:"@unitedtattoo"})]})]})})]})]}),n.jsx(u.TabsContent,{value:"business",className:"space-y-6",children:(0,n.jsxs)(i.Zb,{children:[(0,n.jsxs)(i.Ol,{children:[n.jsx(i.ll,{children:"Business Hours"}),n.jsx(i.SZ,{children:"Set your studio's operating hours for each day of the week."})]}),n.jsx(i.aY,{className:"space-y-4",children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t,r)=>(0,n.jsxs)("div",{className:"flex items-center space-x-4",children:[n.jsx("div",{className:"w-24",children:n.jsx(l._,{children:t})}),(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[n.jsx(c.r,{checked:!e.businessHours?.[r]?.isClosed,onCheckedChange:e=>k(r,"isClosed",!e)}),n.jsx("span",{className:"text-sm text-muted-foreground",children:"Open"})]}),!e.businessHours?.[r]?.isClosed&&(0,n.jsxs)(n.Fragment,{children:[n.jsx(o.I,{type:"time",value:e.businessHours?.[r]?.openTime||"09:00",onChange:e=>k(r,"openTime",e.target.value),className:"w-32"}),n.jsx("span",{className:"text-muted-foreground",children:"to"}),n.jsx(o.I,{type:"time",value:e.businessHours?.[r]?.closeTime||"17:00",onChange:e=>k(r,"closeTime",e.target.value),className:"w-32"})]})]},r))})]})}),(0,n.jsxs)(u.TabsContent,{value:"booking",className:"space-y-6",children:[(0,n.jsxs)(i.Zb,{children:[(0,n.jsxs)(i.Ol,{children:[n.jsx(i.ll,{children:"Booking Configuration"}),n.jsx(i.SZ,{children:"Configure how customers can book appointments."})]}),(0,n.jsxs)(i.aY,{className:"space-y-6",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{children:[n.jsx(l._,{children:"Online Booking"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Allow customers to book appointments online"})]}),n.jsx(c.r,{checked:e.bookingEnabled||!1,onCheckedChange:e=>y("bookingEnabled",e)})]}),n.jsx(w,{}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{children:[n.jsx(l._,{children:"Online Payments"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Accept payments through the website"})]}),n.jsx(c.r,{checked:e.onlinePayments||!1,onCheckedChange:e=>y("onlinePayments",e)})]}),n.jsx(w,{}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{children:[n.jsx(l._,{children:"Require Deposit"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Require a deposit for all bookings"})]}),n.jsx(c.r,{checked:e.requireDeposit||!1,onCheckedChange:e=>y("requireDeposit",e)})]}),e.requireDeposit&&(0,n.jsxs)("div",{children:[n.jsx(l._,{htmlFor:"depositAmount",children:"Deposit Amount ($)"}),n.jsx(o.I,{id:"depositAmount",type:"number",value:e.depositAmount||50,onChange:e=>y("depositAmount",parseInt(e.target.value)),className:"w-32"})]}),(0,n.jsxs)("div",{children:[n.jsx(l._,{htmlFor:"cancellationPolicy",children:"Cancellation Policy"}),n.jsx(d.g,{id:"cancellationPolicy",value:e.cancellationPolicy||"",onChange:e=>y("cancellationPolicy",e.target.value),placeholder:"Describe your cancellation policy...",rows:3})]})]})]}),(0,n.jsxs)(i.Zb,{children:[(0,n.jsxs)(i.Ol,{children:[n.jsx(i.ll,{children:"Notifications"}),n.jsx(i.SZ,{children:"Configure how you receive booking notifications."})]}),(0,n.jsxs)(i.aY,{className:"space-y-4",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{children:[n.jsx(l._,{children:"Email Notifications"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive booking notifications via email"})]}),n.jsx(c.r,{checked:e.emailNotifications||!1,onCheckedChange:e=>y("emailNotifications",e)})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{children:[n.jsx(l._,{children:"SMS Notifications"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive booking notifications via SMS"})]}),n.jsx(c.r,{checked:e.smsNotifications||!1,onCheckedChange:e=>y("smsNotifications",e)})]})]})]})]}),n.jsx(u.TabsContent,{value:"users",className:"space-y-6",children:(0,n.jsxs)(i.Zb,{children:[(0,n.jsxs)(i.Ol,{children:[n.jsx(i.ll,{children:"User Management"}),n.jsx(i.SZ,{children:"Manage user roles and permissions."})]}),n.jsx(i.aY,{children:n.jsx("p",{className:"text-muted-foreground",children:"User management features will be implemented in a future update. This will include role-based access control, user invitations, and permission management."})})]})}),n.jsx(u.TabsContent,{value:"appearance",className:"space-y-6",children:(0,n.jsxs)(i.Zb,{children:[(0,n.jsxs)(i.Ol,{children:[n.jsx(i.ll,{children:"Theme & Appearance"}),n.jsx(i.SZ,{children:"Customize the look and feel of your admin dashboard."})]}),(0,n.jsxs)(i.aY,{className:"space-y-4",children:[(0,n.jsxs)("div",{children:[n.jsx(l._,{htmlFor:"theme",children:"Theme"}),(0,n.jsxs)(h.Ph,{value:e.theme||"system",onValueChange:e=>y("theme",e),children:[n.jsx(h.i4,{className:"w-48",children:n.jsx(h.ki,{})}),(0,n.jsxs)(h.Bw,{children:[n.jsx(h.Ql,{value:"light",children:"Light"}),n.jsx(h.Ql,{value:"dark",children:"Dark"}),n.jsx(h.Ql,{value:"system",children:"System"})]})]})]}),(0,n.jsxs)("div",{children:[n.jsx(l._,{htmlFor:"language",children:"Language"}),(0,n.jsxs)(h.Ph,{value:e.language||"en",onValueChange:e=>y("language",e),children:[n.jsx(h.i4,{className:"w-48",children:n.jsx(h.ki,{})}),(0,n.jsxs)(h.Bw,{children:[n.jsx(h.Ql,{value:"en",children:"English"}),n.jsx(h.Ql,{value:"es",children:"Spanish"}),n.jsx(h.Ql,{value:"fr",children:"French"})]})]})]}),(0,n.jsxs)("div",{children:[n.jsx(l._,{htmlFor:"timezone",children:"Timezone"}),(0,n.jsxs)(h.Ph,{value:e.timezone||"America/New_York",onValueChange:e=>y("timezone",e),children:[n.jsx(h.i4,{className:"w-64",children:n.jsx(h.ki,{})}),(0,n.jsxs)(h.Bw,{children:[n.jsx(h.Ql,{value:"America/New_York",children:"Eastern Time"}),n.jsx(h.Ql,{value:"America/Chicago",children:"Central Time"}),n.jsx(h.Ql,{value:"America/Denver",children:"Mountain Time"}),n.jsx(h.Ql,{value:"America/Los_Angeles",children:"Pacific Time"})]})]})]})]})]})}),n.jsx(u.TabsContent,{value:"advanced",className:"space-y-6",children:(0,n.jsxs)(i.Zb,{children:[(0,n.jsxs)(i.Ol,{children:[n.jsx(i.ll,{children:"Advanced Settings"}),n.jsx(i.SZ,{children:"Advanced configuration options for your studio."})]}),n.jsx(i.aY,{children:n.jsx("p",{className:"text-muted-foreground",children:"Advanced settings such as API configurations, integrations, and system preferences will be available in future updates."})})]})})]}),n.jsx("div",{className:"flex justify-end",children:n.jsx(a.z,{onClick:j,disabled:f,children:f?(0,n.jsxs)(n.Fragment,{children:[n.jsx(C.LoadingSpinner,{}),"Saving..."]}):(0,n.jsxs)(n.Fragment,{children:[n.jsx(Z,{className:"mr-2 h-4 w-4"}),"Save Settings"]})})})]})})}},94049:(e,t,r)=>{"use strict";r.d(t,{Bw:()=>h,Ph:()=>d,Ql:()=>p,i4:()=>u,ki:()=>c});var n=r(97247),s=r(54576),i=r(62513),a=r(48799),o=r(45370),l=r(25008);function d({...e}){return n.jsx(s.fC,{"data-slot":"select",...e})}function c({...e}){return n.jsx(s.B4,{"data-slot":"select-value",...e})}function u({className:e,size:t="default",children:r,...a}){return(0,n.jsxs)(s.xz,{"data-slot":"select-trigger","data-size":t,className:(0,l.cn)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a,children:[r,n.jsx(s.JO,{asChild:!0,children:n.jsx(i.Z,{className:"size-4 opacity-50"})})]})}function h({className:e,children:t,position:r="popper",...i}){return n.jsx(s.h_,{children:(0,n.jsxs)(s.VY,{"data-slot":"select-content",className:(0,l.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...i,children:[n.jsx(f,{}),n.jsx(s.l_,{className:(0,l.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),n.jsx(m,{})]})})}function p({className:e,children:t,...r}){return(0,n.jsxs)(s.ck,{"data-slot":"select-item",className:(0,l.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[n.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:n.jsx(s.wU,{children:n.jsx(a.Z,{className:"size-4"})})}),n.jsx(s.eT,{children:t})]})}function f({className:e,...t}){return n.jsx(s.u_,{"data-slot":"select-scroll-up-button",className:(0,l.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:n.jsx(o.Z,{className:"size-4"})})}function m({className:e,...t}){return n.jsx(s.$G,{"data-slot":"select-scroll-down-button",className:(0,l.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:n.jsx(i.Z,{className:"size-4"})})}},67036:(e,t,r)=>{"use strict";r.d(t,{r:()=>C});var n=r(97247),s=r(28964);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let r=!1,n=e.map(e=>{let n=i(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():i(e[t],null)}}}}function o(e){let t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...e)=>t.current?.(...e),[])}var l=globalThis?.document?s.useLayoutEffect:()=>{};r(46817);var d=s.forwardRef((e,t)=>{let{children:r,...i}=e,a=s.Children.toArray(r),o=a.find(h);if(o){let e=o.props.children,r=a.map(t=>t!==o?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,n.jsx)(c,{...i,ref:t,children:s.isValidElement(e)?s.cloneElement(e,void 0,r):null})}return(0,n.jsx)(c,{...i,ref:t,children:r})});d.displayName="Slot";var c=s.forwardRef((e,t)=>{let{children:r,...n}=e;if(s.isValidElement(r)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(r);return s.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let s=e[n],i=t[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...e)=>{i(...e),s(...e)}:s&&(r[n]=s):"style"===n?r[n]={...s,...i}:"className"===n&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?a(t,e):e})}return s.Children.count(r)>1?s.Children.only(null):null});c.displayName="SlotClone";var u=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});function h(e){return s.isValidElement(e)&&e.type===u}var p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=s.forwardRef((e,r)=>{let{asChild:s,...i}=e,a=s?d:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(a,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),f="Switch",[m,x]=function(e,t=[]){let r=[],i=()=>{let t=r.map(e=>s.createContext(e));return function(r){let n=r?.[e]||t;return s.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return i.scopeName=e,[function(t,i){let a=s.createContext(i),o=r.length;r=[...r,i];let l=t=>{let{scope:r,children:i,...l}=t,d=r?.[e]?.[o]||a,c=s.useMemo(()=>l,Object.values(l));return(0,n.jsx)(d.Provider,{value:c,children:i})};return l.displayName=t+"Provider",[l,function(r,n){let l=n?.[e]?.[o]||a,d=s.useContext(l);if(d)return d;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let s=r(e)[`__scope${n}`];return{...t,...s}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(i,...t)]}(f),[g,v]=m(f),j=s.forwardRef((e,t)=>{let{__scopeSwitch:r,name:i,checked:l,defaultChecked:d,required:c,disabled:u,value:h="on",onCheckedChange:f,form:m,...x}=e,[v,j]=s.useState(null),y=function(...e){return s.useCallback(a(...e),e)}(t,e=>j(e)),b=s.useRef(!1),N=!v||m||!!v.closest("form"),[C=!1,_]=function({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=function({defaultProp:e,onChange:t}){let r=s.useState(e),[n]=r,i=s.useRef(n),a=o(t);return s.useEffect(()=>{i.current!==n&&(a(n),i.current=n)},[n,i,a]),r}({defaultProp:t,onChange:r}),a=void 0!==e,l=a?e:n,d=o(r);return[l,s.useCallback(t=>{if(a){let r="function"==typeof t?t(e):t;r!==e&&d(r)}else i(t)},[a,e,i,d])]}({prop:l,defaultProp:d,onChange:f});return(0,n.jsxs)(g,{scope:r,checked:C,disabled:u,children:[(0,n.jsx)(p.button,{type:"button",role:"switch","aria-checked":C,"aria-required":c,"data-state":w(C),"data-disabled":u?"":void 0,disabled:u,value:h,...x,ref:y,onClick:function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}(e.onClick,e=>{_(e=>!e),N&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})}),N&&(0,n.jsx)(k,{control:v,bubbles:!b.current,name:i,value:h,checked:C,required:c,disabled:u,form:m,style:{transform:"translateX(-100%)"}})]})});j.displayName=f;var y="SwitchThumb",b=s.forwardRef((e,t)=>{let{__scopeSwitch:r,...s}=e,i=v(y,r);return(0,n.jsx)(p.span,{"data-state":w(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t})});b.displayName=y;var k=e=>{let{control:t,checked:r,bubbles:i=!0,...a}=e,o=s.useRef(null),d=function(e){let t=s.useRef({value:e,previous:e});return s.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(r),c=function(e){let[t,r]=s.useState(void 0);return l(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,s;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,s=t.blockSize}else n=e.offsetWidth,s=e.offsetHeight;r({width:n,height:s})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(t);return s.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(d!==r&&t){let n=new Event("click",{bubbles:i});t.call(e,r),e.dispatchEvent(n)}},[d,r,i]),(0,n.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:o,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function w(e){return e?"checked":"unchecked"}var N=r(25008);function C({className:e,...t}){return n.jsx(j,{"data-slot":"switch",className:(0,N.cn)("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:n.jsx(b,{"data-slot":"switch-thumb",className:(0,N.cn)("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}},84662:(e,t,r)=>{"use strict";r.d(t,{Tabs:()=>a,TabsContent:()=>d,TabsList:()=>o,TabsTrigger:()=>l});var n=r(97247);r(28964);var s=r(73664),i=r(25008);function a({className:e,...t}){return n.jsx(s.fC,{"data-slot":"tabs",className:(0,i.cn)("flex flex-col gap-2",e),...t})}function o({className:e,...t}){return n.jsx(s.aV,{"data-slot":"tabs-list",className:(0,i.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 n.jsx(s.xz,{"data-slot":"tabs-trigger",className:(0,i.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 n.jsx(s.VY,{"data-slot":"tabs-content",className:(0,i.cn)("flex-1 outline-none",e),...t})}},44494:(e,t,r)=>{"use strict";r.d(t,{g:()=>i});var n=r(97247);r(28964);var s=r(25008);function i({className:e,...t}){return n.jsx("textarea",{"data-slot":"textarea",className:(0,s.cn)("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}},35216:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=(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"}]])},17712:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=(0,r(26323).Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},56460:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=(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"}]])},8749:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=(0,r(26323).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},19400:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=(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:()=>n});let n=(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"}]])},28339:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=(0,r(26323).Z)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},17316:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=(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"}]])},35921:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=(0,r(26323).Z)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},69964:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=(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:()=>n});let n=(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"}]])},9092:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l,metadata:()=>o});var n=r(72051),s=r(26269);let i=(0,r(45347).createProxy)(String.raw`/home/Nicholai/Documents/Dev/united_v03/united-tattoo/united-tattoo/components/admin/settings-manager.tsx#SettingsManager`);var a=r(15487);let o={title:"Settings | United Tattoo Admin",description:"Manage studio settings and configuration"};function l(){return(0,n.jsxs)("div",{className:"space-y-6",children:[(0,n.jsxs)("div",{children:[n.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:"Settings"}),n.jsx("p",{className:"text-muted-foreground",children:"Manage studio settings, user permissions, and system configuration."})]}),n.jsx(s.Suspense,{fallback:n.jsx(a.TK,{}),children:n.jsx(i,{})})]})}},41288:(e,t,r)=>{"use strict";var n=r(71083);r.o(n,"redirect")&&r.d(t,{redirect:function(){return n.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 a},RedirectType:function(){return n.RedirectType},notFound:function(){return s.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect}});let n=r(1192),s=r(76868);class i extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class a extends URLSearchParams{append(){throw new i}delete(){throw new i}set(){throw new i}sort(){throw new i}}("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 s},notFound:function(){return n}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function s(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 n;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 n},getRedirectError:function(){return l},getRedirectStatusCodeFromError:function(){return f},getRedirectTypeFromError:function(){return p},getURLFromRedirectError:function(){return h},isRedirectError:function(){return u},permanentRedirect:function(){return c},redirect:function(){return d}});let s=r(54580),i=r(72934),a=r(83701),o="NEXT_REDIRECT";function l(e,t,r){void 0===r&&(r=a.RedirectStatusCode.TemporaryRedirect);let n=Error(o);n.digest=o+";"+t+";"+e+";"+r+";";let i=s.requestAsyncStorage.getStore();return i&&(n.mutableCookies=i.mutableCookies),n}function d(e,t){void 0===t&&(t="replace");let r=i.actionAsyncStorage.getStore();throw l(e,t,(null==r?void 0:r.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function c(e,t){void 0===t&&(t="replace");let r=i.actionAsyncStorage.getStore();throw l(e,t,(null==r?void 0:r.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function u(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,n,s]=e.digest.split(";",4),i=Number(s);return t===o&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(i)&&i in a.RedirectStatusCode}function h(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 f(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"})(n||(n={})),("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)},94056:(e,t,r)=>{"use strict";r.d(t,{f:()=>h});var n=r(28964);function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}r(46817);var i=r(97247),a=n.forwardRef((e,t)=>{let{children:r,...s}=e,a=n.Children.toArray(r),l=a.find(d);if(l){let e=l.props.children,r=a.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(o,{...s,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,i.jsx)(o,{...s,ref:t,children:r})});a.displayName="Slot";var o=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(r);return n.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let s=e[n],i=t[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...e)=>{i(...e),s(...e)}:s&&(r[n]=s):"style"===n?r[n]={...s,...i}:"className"===n&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props),ref:t?function(...e){return t=>{let r=!1,n=e.map(e=>{let n=s(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():s(e[t],null)}}}}(t,e):e})}return n.Children.count(r)>1?n.Children.only(null):null});o.displayName="SlotClone";var l=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});function d(e){return n.isValidElement(e)&&e.type===l}var c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...s}=e,o=n?a:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o,{...s,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),u=n.forwardRef((e,t)=>(0,i.jsx)(c.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));u.displayName="Label";var h=u}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[9379,8213,9234,4128,7598,9906,8472,3630,8328,3664,8224,4926],()=>r(3730));module.exports=n})(); |