Nicholai 1378bff909 updated the following components to use the API instead of hardcoded data:
### 1. __artists-grid.tsx__ (Main Artist Browsing)

- Uses  hook from
- Fetches from  endpoint
- Includes loading states, error handling, and filtering
- __Impact:__ Primary artist browsing experience now fully API-driven

### 2. __artist-portfolio.tsx__ (Individual Artist Pages)

- Uses  hook
- Fetches from  endpoint
- Fixed all TypeScript errors (changed image ID from number to string)
- Added loading/error states
- __Impact:__ Artist detail pages now fully API-driven

### 3. __booking-form.tsx__ (Artist Selection Dropdown)

- Uses  hook for artist selection
- Updated to use API data structure ( array, , etc.)
- Added loading state for dropdown
- __Impact:__ Booking flow now uses real artist data

## ⚠️ REMAINING (Decorative/Marketing Components)

Two complex components still use hardcoded :

### 4. __artists-section.tsx__ (Homepage Hero - 348 lines)

- Homepage marketing section with complex parallax scrolling
- Uses hardcoded artist data for visual cards
- __Non-blocking:__ This is a decorative homepage element

### 5. __artists-page-section.tsx__ (Artists Page Section - 413 lines)

- Full-page artists showcase with parallax effects
- Uses hardcoded artist data for visual layout
- __Non-blocking:__ Alternative to artists-grid.tsx (which IS using API)

##
2025-10-06 04:44:08 -06:00

127 lines
20 KiB
JavaScript

"use strict";(()=>{var e={};e.id=4282,e.ids=[4282,1035],e.modules={72934:e=>{e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},27790:e=>{e.exports=require("assert")},78893:e=>{e.exports=require("buffer")},84770:e=>{e.exports=require("crypto")},17702:e=>{e.exports=require("events")},32615:e=>{e.exports=require("http")},35240:e=>{e.exports=require("https")},86624:e=>{e.exports=require("querystring")},17360:e=>{e.exports=require("url")},21764:e=>{e.exports=require("util")},71568:e=>{e.exports=require("zlib")},33569:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>S,patchFetch:()=>D,requestAsyncStorage:()=>O,routeModule:()=>I,serverHooks:()=>A,staticGenerationAsyncStorage:()=>h});var i={};r.r(i),r.d(i,{DELETE:()=>g,GET:()=>N,POST:()=>T,PUT:()=>R,dynamic:()=>E});var a=r(73278),n=r(45002),s=r(54877),o=r(71309),u=r(18445),l=r(33897),p=r(1035),d=r(93470),c=r(29628);let E="force-dynamic",_=c.z.object({artistId:c.z.string().min(1),clientId:c.z.string().min(1),title:c.z.string().min(1),description:c.z.string().optional(),startTime:c.z.string().datetime(),endTime:c.z.string().datetime(),depositAmount:c.z.number().optional(),totalAmount:c.z.number().optional(),notes:c.z.string().optional()}),m=_.partial().extend({id:c.z.string().min(1),status:c.z.enum(["PENDING","CONFIRMED","IN_PROGRESS","COMPLETED","CANCELLED"]).optional()});function f(){return o.NextResponse.json({error:"Booking disabled"},{status:503})}async function N(e,{params:t}={},r){try{let t=await (0,u.getServerSession)(l.Lz);if(!t?.user)return o.NextResponse.json({error:"Unauthorized"},{status:401});let{searchParams:i}=new URL(e.url),a=i.get("start"),n=i.get("end"),s=i.get("artistId"),d=i.get("status"),c=(0,p.VK)(r?.env),E=`
SELECT
a.*,
ar.name as artist_name,
u.name as client_name,
u.email as client_email
FROM appointments a
JOIN artists ar ON a.artist_id = ar.id
JOIN users u ON a.client_id = u.id
WHERE 1=1
`,_=[];a&&(E+=" AND a.start_time >= ?",_.push(a)),n&&(E+=" AND a.end_time <= ?",_.push(n)),s&&(E+=" AND a.artist_id = ?",_.push(s)),d&&(E+=" AND a.status = ?",_.push(d)),E+=" ORDER BY a.start_time ASC";let m=c.prepare(E),f=await m.bind(..._).all();return o.NextResponse.json({appointments:f.results})}catch(e){return console.error("Error fetching appointments:",e),o.NextResponse.json({error:"Failed to fetch appointments"},{status:500})}}async function T(e,{params:t}={},r){try{if(!d.vU.BOOKING_ENABLED)return f();let t=await (0,u.getServerSession)(l.Lz);if(!t?.user)return o.NextResponse.json({error:"Unauthorized"},{status:401});let i=await e.json(),a=_.parse(i),n=(0,p.VK)(r?.env),s=n.prepare(`
SELECT id FROM appointments
WHERE artist_id = ?
AND status NOT IN ('CANCELLED', 'COMPLETED')
AND (
(start_time <= ? AND end_time > ?) OR
(start_time < ? AND end_time >= ?) OR
(start_time >= ? AND end_time <= ?)
)
`);if((await s.bind(a.artistId,a.startTime,a.startTime,a.endTime,a.endTime,a.startTime,a.endTime).all()).results.length>0)return o.NextResponse.json({error:"Time slot conflicts with existing appointment"},{status:409});let c=crypto.randomUUID(),E=n.prepare(`
INSERT INTO appointments (
id, artist_id, client_id, title, description, start_time, end_time,
status, deposit_amount, total_amount, notes, created_at, updated_at
) VALUES (?, ?, ?, ?, ?, ?, ?, 'PENDING', ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)
`);await E.bind(c,a.artistId,a.clientId,a.title,a.description||null,a.startTime,a.endTime,a.depositAmount||null,a.totalAmount||null,a.notes||null).run();let m=n.prepare(`
SELECT
a.*,
ar.name as artist_name,
u.name as client_name,
u.email as client_email
FROM appointments a
JOIN artists ar ON a.artist_id = ar.id
JOIN users u ON a.client_id = u.id
WHERE a.id = ?
`),N=await m.bind(c).first();return o.NextResponse.json({appointment:N},{status:201})}catch(e){if(console.error("Error creating appointment:",e),e instanceof c.z.ZodError)return o.NextResponse.json({error:"Invalid appointment data",details:e.errors},{status:400});return o.NextResponse.json({error:"Failed to create appointment"},{status:500})}}async function R(e,{params:t}={},r){try{if(!d.vU.BOOKING_ENABLED)return f();let t=await (0,u.getServerSession)(l.Lz);if(!t?.user)return o.NextResponse.json({error:"Unauthorized"},{status:401});let i=await e.json(),a=m.parse(i),n=(0,p.VK)(r?.env),s=n.prepare("SELECT * FROM appointments WHERE id = ?"),c=await s.bind(a.id).first();if(!c)return o.NextResponse.json({error:"Appointment not found"},{status:404});if(a.startTime||a.endTime){let e=a.startTime||c.start_time,t=a.endTime||c.end_time,r=a.artistId||c.artist_id,i=n.prepare(`
SELECT id FROM appointments
WHERE artist_id = ?
AND id != ?
AND status NOT IN ('CANCELLED', 'COMPLETED')
AND (
(start_time <= ? AND end_time > ?) OR
(start_time < ? AND end_time >= ?) OR
(start_time >= ? AND end_time <= ?)
)
`);if((await i.bind(r,a.id,e,e,t,t,e,t).all()).results.length>0)return o.NextResponse.json({error:"Time slot conflicts with existing appointment"},{status:409})}let E=[],_=[];if(Object.entries(a).forEach(([e,t])=>{if("id"!==e&&void 0!==t){let r=e.replace(/([A-Z])/g,"_$1").toLowerCase();E.push(`${r} = ?`),_.push(t)}}),0===E.length)return o.NextResponse.json({error:"No fields to update"},{status:400});E.push("updated_at = CURRENT_TIMESTAMP"),_.push(a.id);let N=n.prepare(`
UPDATE appointments
SET ${E.join(", ")}
WHERE id = ?
`);await N.bind(..._).run();let T=n.prepare(`
SELECT
a.*,
ar.name as artist_name,
u.name as client_name,
u.email as client_email
FROM appointments a
JOIN artists ar ON a.artist_id = ar.id
JOIN users u ON a.client_id = u.id
WHERE a.id = ?
`),R=await T.bind(a.id).first();return o.NextResponse.json({appointment:R})}catch(e){if(console.error("Error updating appointment:",e),e instanceof c.z.ZodError)return o.NextResponse.json({error:"Invalid appointment data",details:e.errors},{status:400});return o.NextResponse.json({error:"Failed to update appointment"},{status:500})}}async function g(e,{params:t}={},r){try{if(!d.vU.BOOKING_ENABLED)return f();let t=await (0,u.getServerSession)(l.Lz);if(!t?.user)return o.NextResponse.json({error:"Unauthorized"},{status:401});let{searchParams:i}=new URL(e.url),a=i.get("id");if(!a)return o.NextResponse.json({error:"Appointment ID is required"},{status:400});let n=(0,p.VK)(r?.env).prepare("DELETE FROM appointments WHERE id = ?"),s=await n.bind(a).run(),c=s?.meta?.changes??s?.meta?.rows_written??0;if(0===c)return o.NextResponse.json({error:"Appointment not found"},{status:404});return o.NextResponse.json({success:!0})}catch(e){return console.error("Error deleting appointment:",e),o.NextResponse.json({error:"Failed to delete appointment"},{status:500})}}let I=new a.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/appointments/route",pathname:"/api/appointments",filename:"route",bundlePath:"app/api/appointments/route"},resolvedPagePath:"/home/Nicholai/Documents/Dev/united_v03/united-tattoo/united-tattoo/app/api/appointments/route.ts",nextConfigOutput:"standalone",userland:i}),{requestAsyncStorage:O,staticGenerationAsyncStorage:h,serverHooks:A}=I,S="/api/appointments/route";function D(){return(0,s.patchFetch)({serverHooks:A,staticGenerationAsyncStorage:h})}},33897:(e,t,r)=>{r.d(t,{Lz:()=>p,KR:()=>_,Z1:()=>d,GJ:()=>E,KN:()=>m,mk:()=>c});var i=r(22571),a=r(43016),n=r(76214),s=r(29628);let o=s.z.object({DATABASE_URL:s.z.string().url(),DIRECT_URL:s.z.string().url().optional(),NEXTAUTH_URL:s.z.string().url(),NEXTAUTH_SECRET:s.z.string().min(1),GOOGLE_CLIENT_ID:s.z.string().optional(),GOOGLE_CLIENT_SECRET:s.z.string().optional(),GITHUB_CLIENT_ID:s.z.string().optional(),GITHUB_CLIENT_SECRET:s.z.string().optional(),AWS_ACCESS_KEY_ID:s.z.string().min(1),AWS_SECRET_ACCESS_KEY:s.z.string().min(1),AWS_REGION:s.z.string().min(1),AWS_BUCKET_NAME:s.z.string().min(1),AWS_ENDPOINT_URL:s.z.string().url().optional(),NODE_ENV:s.z.enum(["development","production","test"]).default("development"),SMTP_HOST:s.z.string().optional(),SMTP_PORT:s.z.string().optional(),SMTP_USER:s.z.string().optional(),SMTP_PASSWORD:s.z.string().optional(),VERCEL_ANALYTICS_ID:s.z.string().optional()}),u=function(){try{return o.parse(process.env)}catch(e){if(e instanceof s.z.ZodError){let t=e.errors.map(e=>e.path.join(".")).join(", ");throw Error(`Missing or invalid environment variables: ${t}`)}throw e}}();var l=r(74725);let p={providers:[(0,n.Z)({name:"credentials",credentials:{email:{label:"Email",type:"email"},password:{label:"Password",type:"password"}},async authorize(e){if(console.log("Authorize called with:",e),!e?.email||!e?.password)return console.log("Missing email or password"),null;if(console.log("Email received:",e.email),console.log("Password received:",e.password?"***":"empty"),"nicholai@biohazardvfx.com"===e.email)return console.log("Admin user recognized!"),{id:"admin-nicholai",email:"nicholai@biohazardvfx.com",name:"Nicholai",role:l.i.SUPER_ADMIN};console.log("Using fallback user creation");let t={id:"dev-user-"+Date.now(),email:e.email,name:e.email.split("@")[0],role:l.i.SUPER_ADMIN};return console.log("Created user:",t),t}}),...u.GOOGLE_CLIENT_ID&&u.GOOGLE_CLIENT_SECRET?[(0,i.Z)({clientId:u.GOOGLE_CLIENT_ID,clientSecret:u.GOOGLE_CLIENT_SECRET})]:[],...u.GITHUB_CLIENT_ID&&u.GITHUB_CLIENT_SECRET?[(0,a.Z)({clientId:u.GITHUB_CLIENT_ID,clientSecret:u.GITHUB_CLIENT_SECRET})]:[]],session:{strategy:"jwt",maxAge:2592e3},callbacks:{jwt:async({token:e,user:t,account:r})=>(t&&(e.role=t.role||l.i.CLIENT,e.userId=t.id),e),session:async({session:e,token:t})=>(t&&(e.user.id=t.userId,e.user.role=t.role),e),signIn:async({user:e,account:t,profile:r})=>!0,redirect:async({url:e,baseUrl:t})=>e.startsWith("/")?`${t}${e}`:new URL(e).origin===t?e:`${t}/admin`},pages:{signIn:"/auth/signin",error:"/auth/error"},events:{async signIn({user:e,account:t,profile:r,isNewUser:i}){console.log(`User ${e.email} signed in`)},async signOut({session:e,token:t}){console.log("User signed out")}},debug:"development"===u.NODE_ENV};async function d(){let{getServerSession:e}=await r.e(4128).then(r.bind(r,4128));return e(p)}async function c(e){let t=await d();if(!t)throw Error("Authentication required");if(e&&!function(e,t){let r={[l.i.CLIENT]:0,[l.i.ARTIST]:1,[l.i.SHOP_ADMIN]:2,[l.i.SUPER_ADMIN]:3};return r[e]>=r[t]}(t.user.role,e))throw Error("Insufficient permissions");return t}function E(e){return e===l.i.SHOP_ADMIN||e===l.i.SUPER_ADMIN}async function _(){let e=await d();if(!e?.user)return null;let t=e.user.role;if(t!==l.i.ARTIST&&!E(t))return null;let{getArtistByUserId:i}=await r.e(1035).then(r.bind(r,1035)),a=await i(e.user.id);return a?{artist:a,user:e.user}:null}async function m(){let e=await _();if(!e)throw Error("Artist authentication required");return e}},1035:(e,t,r)=>{function i(e){if(e?.DB)return e.DB;let t=globalThis[Symbol.for("__cloudflare-context__")],r=t?.env?.DB,i=globalThis.DB||globalThis.env?.DB,a=r||i;if(!a)throw Error("Cloudflare D1 binding (env.DB) is unavailable");return a}async function a(e,t){let r=i(t),a=`
SELECT
a.id,
a.slug,
a.name,
a.bio,
a.specialties,
a.instagram_handle,
a.is_active,
a.hourly_rate
FROM artists a
WHERE a.is_active = 1
`,n=[];e?.specialty&&(a+=" AND a.specialties LIKE ?",n.push(`%${e.specialty}%`)),e?.search&&(a+=" AND (a.name LIKE ? OR a.bio LIKE ?)",n.push(`%${e.search}%`,`%${e.search}%`)),a+=" ORDER BY a.created_at DESC",e?.limit&&(a+=" LIMIT ?",n.push(e.limit)),e?.offset&&(a+=" OFFSET ?",n.push(e.offset));let s=await r.prepare(a).bind(...n).all();return await Promise.all(s.results.map(async e=>{let t=await r.prepare(`
SELECT * FROM portfolio_images
WHERE artist_id = ? AND is_public = 1
ORDER BY order_index ASC, created_at DESC
`).bind(e.id).all();return{id:e.id,slug:e.slug,name:e.name,bio:e.bio,specialties:e.specialties?JSON.parse(e.specialties):[],instagramHandle:e.instagram_handle,isActive:!!e.is_active,hourlyRate:e.hourly_rate,portfolioImages:t.results.map(e=>({id:e.id,artistId:e.artist_id,url:e.url,caption:e.caption,tags:e.tags?JSON.parse(e.tags):[],orderIndex:e.order_index,isPublic:!!e.is_public,createdAt:new Date(e.created_at)}))}}))}async function n(e,t){let r=i(t),a=await r.prepare(`
SELECT
a.*,
u.name as user_name,
u.email as user_email,
u.avatar as user_avatar
FROM artists a
LEFT JOIN users u ON a.user_id = u.id
WHERE a.id = ?
`).bind(e).first();if(!a)return null;let n=await r.prepare(`
SELECT * FROM portfolio_images
WHERE artist_id = ?
ORDER BY order_index ASC, created_at DESC
`).bind(e).all();return{id:a.id,userId:a.user_id,slug:a.slug,name:a.name,bio:a.bio,specialties:a.specialties?JSON.parse(a.specialties):[],instagramHandle:a.instagram_handle,isActive:!!a.is_active,hourlyRate:a.hourly_rate,portfolioImages:n.results.map(e=>({id:e.id,artistId:e.artist_id,url:e.url,caption:e.caption,tags:e.tags?JSON.parse(e.tags):[],orderIndex:e.order_index,isPublic:!!e.is_public,createdAt:new Date(e.created_at)})),availability:[],createdAt:new Date(a.created_at),updatedAt:new Date(a.updated_at),user:{name:a.user_name,email:a.user_email,avatar:a.user_avatar}}}async function s(e,t){let r=i(t),a=await r.prepare(`
SELECT
a.*,
u.name as user_name,
u.email as user_email,
u.avatar as user_avatar
FROM artists a
LEFT JOIN users u ON a.user_id = u.id
WHERE a.slug = ?
`).bind(e).first();return a?n(a.id,t):null}async function o(e,t){let r=i(t),a=await r.prepare(`
SELECT
a.*,
u.name as user_name,
u.email as user_email
FROM artists a
LEFT JOIN users u ON a.user_id = u.id
WHERE a.user_id = ?
`).bind(e).first();return a?{id:a.id,userId:a.user_id,slug:a.slug,name:a.name,bio:a.bio,specialties:a.specialties?JSON.parse(a.specialties):[],instagramHandle:a.instagram_handle,isActive:!!a.is_active,hourlyRate:a.hourly_rate,portfolioImages:[],availability:[],createdAt:new Date(a.created_at),updatedAt:new Date(a.updated_at)}:null}async function u(e,t){let r=i(t),a=crypto.randomUUID(),n=e.userId;if(!n){let t=await r.prepare(`
INSERT INTO users (id, email, name, role)
VALUES (?, ?, ?, 'ARTIST')
RETURNING id
`).bind(crypto.randomUUID(),e.email||`${e.name.toLowerCase().replace(/\s+/g,".")}@unitedtattoo.com`,e.name).first();n=t?.id}return await r.prepare(`
INSERT INTO artists (id, user_id, name, bio, specialties, instagram_handle, hourly_rate, is_active)
VALUES (?, ?, ?, ?, ?, ?, ?, ?)
RETURNING *
`).bind(a,n,e.name,e.bio,JSON.stringify(e.specialties),e.instagramHandle||null,e.hourlyRate||null,!1!==e.isActive).first()}async function l(e,t,r){let a=i(r),n=[],s=[];return void 0!==t.name&&(n.push("name = ?"),s.push(t.name)),void 0!==t.bio&&(n.push("bio = ?"),s.push(t.bio)),void 0!==t.specialties&&(n.push("specialties = ?"),s.push(JSON.stringify(t.specialties))),void 0!==t.instagramHandle&&(n.push("instagram_handle = ?"),s.push(t.instagramHandle)),void 0!==t.hourlyRate&&(n.push("hourly_rate = ?"),s.push(t.hourlyRate)),void 0!==t.isActive&&(n.push("is_active = ?"),s.push(t.isActive)),n.push("updated_at = CURRENT_TIMESTAMP"),s.push(e),await a.prepare(`
UPDATE artists
SET ${n.join(", ")}
WHERE id = ?
RETURNING *
`).bind(...s).first()}async function p(e,t){let r=i(t);await r.prepare("UPDATE artists SET is_active = 0 WHERE id = ?").bind(e).run()}async function d(e,t,r){let a=i(r),n=crypto.randomUUID();return await a.prepare(`
INSERT INTO portfolio_images (id, artist_id, url, caption, tags, order_index, is_public)
VALUES (?, ?, ?, ?, ?, ?, ?)
RETURNING *
`).bind(n,e,t.url,t.caption||null,t.tags?JSON.stringify(t.tags):null,t.orderIndex||0,!1!==t.isPublic).first()}async function c(e,t,r){let a=i(r),n=[],s=[];return void 0!==t.url&&(n.push("url = ?"),s.push(t.url)),void 0!==t.caption&&(n.push("caption = ?"),s.push(t.caption)),void 0!==t.tags&&(n.push("tags = ?"),s.push(t.tags?JSON.stringify(t.tags):null)),void 0!==t.orderIndex&&(n.push("order_index = ?"),s.push(t.orderIndex)),void 0!==t.isPublic&&(n.push("is_public = ?"),s.push(t.isPublic)),s.push(e),await a.prepare(`
UPDATE portfolio_images
SET ${n.join(", ")}
WHERE id = ?
RETURNING *
`).bind(...s).first()}async function E(e,t){let r=i(t);await r.prepare("DELETE FROM portfolio_images WHERE id = ?").bind(e).run()}function _(e){if(e?.R2_BUCKET)return e.R2_BUCKET;let t=globalThis[Symbol.for("__cloudflare-context__")],r=t?.env?.R2_BUCKET,i=globalThis.R2_BUCKET||globalThis.env?.R2_BUCKET,a=r||i;if(!a)throw Error("Cloudflare R2 binding (env.R2_BUCKET) is unavailable");return a}r.d(t,{Hf:()=>a,Ms:()=>_,Rw:()=>u,VK:()=>i,W0:()=>c,cP:()=>E,ce:()=>n,ep:()=>l,ex:()=>s,getArtistByUserId:()=>o,vB:()=>p,xd:()=>d})},93470:(e,t,r)=>{r.d(t,{L6:()=>u,vU:()=>l});let i=Object.freeze({ADMIN_ENABLED:!0,ARTISTS_MODULE_ENABLED:!0,UPLOADS_ADMIN_ENABLED:!0,BOOKING_ENABLED:!0,PUBLIC_APPOINTMENT_REQUESTS_ENABLED:!1,REFERENCE_UPLOADS_PUBLIC_ENABLED:!1,DEPOSITS_ENABLED:!1,PUBLIC_DB_ARTISTS_ENABLED:!1,ADVANCED_NAV_SCROLL_ANIMATIONS_ENABLED:!0,STRICT_CI_GATES_ENABLED:!0,ISR_CACHE_R2_ENABLED:!0}),a=Object.keys(i),n=new Set(a),s=new Set,o=null;function u(e={}){if(e.refresh&&(o=null),o)return o;let t=function(){let e={};for(let t of a){let r=function(e){let t=function(){if("undefined"!=typeof globalThis)return globalThis.__UNITED_TATTOO_RUNTIME_FLAGS__}();return t&&void 0!==t[e]?t[e]:"undefined"!=typeof process&&process.env&&void 0!==process.env[e]?process.env[e]:void 0}(t),a=function(e,t){if("boolean"==typeof e)return e;if("string"==typeof e){let t=e.trim().toLowerCase();if("true"===t||"1"===t)return!0;if("false"===t||"0"===t)return!1}return t}(r,i[t]);null!=r&&("string"!=typeof r||""!==r.trim())||s.has(t)||(s.add(t),"undefined"!=typeof console&&console.warn(`[flags] ${t} not provided; defaulting to ${a}. Set env var to override.`)),e[t]=a}return Object.freeze(e)}();return o=t,t}let l=new Proxy({},{get:(e,t)=>{if(n.has(t))return u()[t]},ownKeys:()=>a,getOwnPropertyDescriptor:(e,t)=>{if(n.has(t))return{configurable:!0,enumerable:!0,value:u()[t]}}})},32482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},18445:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});var i={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}});var a=r(32482);Object.keys(a).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(i,e))&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))});var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(void 0);if(r&&r.has(e))return r.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&({}).hasOwnProperty.call(e,n)){var o=a?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}return i.default=e,r&&r.set(e,i),i}(r(4128));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}Object.keys(n).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(i,e))&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))})},74725:(e,t,r)=>{var i,a;r.d(t,{Z:()=>a,i:()=>i}),function(e){e.SUPER_ADMIN="SUPER_ADMIN",e.SHOP_ADMIN="SHOP_ADMIN",e.ARTIST="ARTIST",e.CLIENT="CLIENT"}(i||(i={})),function(e){e.PENDING="PENDING",e.CONFIRMED="CONFIRMED",e.IN_PROGRESS="IN_PROGRESS",e.COMPLETED="COMPLETED",e.CANCELLED="CANCELLED"}(a||(a={}))}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),i=t.X(0,[9379,3670,4128,4833],()=>r(33569));module.exports=i})();