@timardex/cluemart-shared 1.0.16 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/{auth-CdcH8nqw.d.mts → auth-CAeHx-BM.d.mts} +1 -1
  2. package/dist/{auth-TM_XttY3.d.ts → auth-gmfsaSPo.d.ts} +1 -1
  3. package/dist/{chat-NGx5Emrr.d.mts → chat-BUVCf9Tu.d.mts} +1 -1
  4. package/dist/{chat-NGx5Emrr.d.ts → chat-BUVCf9Tu.d.ts} +1 -1
  5. package/dist/formFields/index.cjs +49 -47
  6. package/dist/formFields/index.cjs.map +1 -1
  7. package/dist/formFields/index.d.mts +5 -4
  8. package/dist/formFields/index.d.ts +5 -4
  9. package/dist/formFields/index.mjs +49 -47
  10. package/dist/formFields/index.mjs.map +1 -1
  11. package/dist/{global-B7gB8cvC.d.ts → global-Cj-4jtsW.d.ts} +38 -9
  12. package/dist/{global-B8kYikwQ.d.mts → global-zKCLfUmA.d.mts} +38 -9
  13. package/dist/graphql/index.cjs +96 -16
  14. package/dist/graphql/index.cjs.map +1 -1
  15. package/dist/graphql/index.d.mts +19 -3
  16. package/dist/graphql/index.d.ts +19 -3
  17. package/dist/graphql/index.mjs +93 -16
  18. package/dist/graphql/index.mjs.map +1 -1
  19. package/dist/hooks/index.cjs +164 -82
  20. package/dist/hooks/index.cjs.map +1 -1
  21. package/dist/hooks/index.d.mts +12 -3
  22. package/dist/hooks/index.d.ts +12 -3
  23. package/dist/hooks/index.mjs +162 -82
  24. package/dist/hooks/index.mjs.map +1 -1
  25. package/dist/index.cjs +309 -145
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +66 -11
  28. package/dist/index.d.ts +66 -11
  29. package/dist/index.mjs +304 -145
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/types/index.d.mts +3 -3
  32. package/dist/types/index.d.ts +3 -3
  33. package/dist/utils/index.d.mts +1 -1
  34. package/dist/utils/index.d.ts +1 -1
  35. package/package.json +1 -1
@@ -81,4 +81,4 @@ interface CreateValidateTokenFormData {
81
81
  watch: UseFormWatch<ValidateTokenFormData>;
82
82
  }
83
83
 
84
- export type { CreateLoginFormData as C, LoginFormData as L, RegisterFormData as R, ValidateTokenFormData as V, CreateRegisterFormData as a, RequestPasswordResetFormData as b, CreateRequestPasswordResetFormData as c, ResetPasswordFormData as d, CreateResetPasswordFormData as e, CreateValidateTokenFormData as f };
84
+ export type { CreateLoginFormData as C, LoginFormData as L, RegisterFormData as R, ValidateTokenFormData as V, CreateRegisterFormData as a, CreateRequestPasswordResetFormData as b, CreateValidateTokenFormData as c, CreateResetPasswordFormData as d, RequestPasswordResetFormData as e, ResetPasswordFormData as f };
@@ -81,4 +81,4 @@ interface CreateValidateTokenFormData {
81
81
  watch: UseFormWatch<ValidateTokenFormData>;
82
82
  }
83
83
 
84
- export type { CreateLoginFormData as C, LoginFormData as L, RegisterFormData as R, ValidateTokenFormData as V, CreateRegisterFormData as a, RequestPasswordResetFormData as b, CreateRequestPasswordResetFormData as c, ResetPasswordFormData as d, CreateResetPasswordFormData as e, CreateValidateTokenFormData as f };
84
+ export type { CreateLoginFormData as C, LoginFormData as L, RegisterFormData as R, ValidateTokenFormData as V, CreateRegisterFormData as a, CreateRequestPasswordResetFormData as b, CreateValidateTokenFormData as c, CreateResetPasswordFormData as d, RequestPasswordResetFormData as e, ResetPasswordFormData as f };
@@ -24,4 +24,4 @@ interface ChatType {
24
24
  updatedAt: string;
25
25
  }
26
26
 
27
- export type { ChatInput as C, ChatMessageInput as a, ChatMessageType as b, ChatType as c };
27
+ export type { ChatType as C, ChatInput as a, ChatMessageInput as b, ChatMessageType as c };
@@ -24,4 +24,4 @@ interface ChatType {
24
24
  updatedAt: string;
25
25
  }
26
26
 
27
- export type { ChatInput as C, ChatMessageInput as a, ChatMessageType as b, ChatType as c };
27
+ export type { ChatType as C, ChatInput as a, ChatMessageInput as b, ChatMessageType as c };
@@ -138,7 +138,7 @@ var paymentMethodOptions = mapArrayToOptions(
138
138
  Object.values(EnumPaymentMethod)
139
139
  );
140
140
 
141
- // src/formFields/stallholder/createEditStallholder.ts
141
+ // src/formFields/stallholder/stallholder.ts
142
142
  var stallholderBasicInfoFields = [
143
143
  {
144
144
  helperText: "Business Name of the Stallholder *",
@@ -307,7 +307,7 @@ var producedIngTypes = [
307
307
  var packagingOptions = mapArrayToOptions(packagingTypes);
308
308
  var producedIngOptions = mapArrayToOptions(producedIngTypes);
309
309
 
310
- // src/formFields/market.ts
310
+ // src/formFields/market/market.ts
311
311
  var marketBasicInfoFields = [
312
312
  {
313
313
  helperText: "Name of the Market *",
@@ -331,43 +331,6 @@ var marketBasicInfoFields = [
331
331
  placeholder: "Promo code"
332
332
  }
333
333
  ];
334
- var stallApplicationInfo = [
335
- {
336
- helperText: "Application Deadline of the Market *",
337
- keyboardType: "number-pad",
338
- name: "stallApplicationInfo.applicationDeadlineHours",
339
- placeholder: "Application Deadline Hours"
340
- },
341
- {
342
- helperText: "Stall Capacity of the Market *",
343
- keyboardType: "number-pad",
344
- name: "stallApplicationInfo.stallCapacity",
345
- placeholder: "Stall Capacity"
346
- },
347
- {
348
- helperText: "Payment Due Hours of the Market *",
349
- keyboardType: "number-pad",
350
- name: "stallApplicationInfo.paymentDueHours",
351
- placeholder: "Payment Due Hours"
352
- }
353
- ];
354
- var stallApplicationInfoPaymentTarget = [
355
- {
356
- helperText: "Account holder name *",
357
- name: "stallApplicationInfo.paymentTarget.accountHolderName",
358
- placeholder: "Account holder name"
359
- },
360
- {
361
- helperText: "Account number *",
362
- name: "stallApplicationInfo.paymentTarget.accountNumber",
363
- placeholder: "Account number"
364
- },
365
- {
366
- helperText: "Link to payment target *",
367
- name: "stallApplicationInfo.paymentTarget.link",
368
- placeholder: "Link to payment target"
369
- }
370
- ];
371
334
  var marketStartDateFields = [
372
335
  {
373
336
  dateMode: "date",
@@ -382,14 +345,6 @@ var marketStartDateFields = [
382
345
  placeholder: "Start Time"
383
346
  }
384
347
  ];
385
- var marketPriceByDateFields = [
386
- {
387
- helperText: "Market Price for this date *",
388
- keyboardType: "number-pad",
389
- name: "marketPrice",
390
- placeholder: "Market Price"
391
- }
392
- ];
393
348
  var marketEndDateFields = [
394
349
  {
395
350
  dateMode: "date",
@@ -423,6 +378,53 @@ var availableTagTypes = [
423
378
  "Port Nearby"
424
379
  ];
425
380
  var tagOptions = mapArrayToOptions(availableTagTypes);
381
+
382
+ // src/formFields/market/marketInfo.ts
383
+ var stallApplicationInfo = [
384
+ {
385
+ helperText: "Application Deadline of the Market *",
386
+ keyboardType: "number-pad",
387
+ name: "stallApplicationInfo.applicationDeadlineHours",
388
+ placeholder: "Application Deadline Hours"
389
+ },
390
+ {
391
+ helperText: "Stall Capacity of the Market *",
392
+ keyboardType: "number-pad",
393
+ name: "stallApplicationInfo.stallCapacity",
394
+ placeholder: "Stall Capacity"
395
+ },
396
+ {
397
+ helperText: "Payment Due Hours of the Market *",
398
+ keyboardType: "number-pad",
399
+ name: "stallApplicationInfo.paymentDueHours",
400
+ placeholder: "Payment Due Hours"
401
+ }
402
+ ];
403
+ var stallApplicationInfoPaymentTarget = [
404
+ {
405
+ helperText: "Account holder name *",
406
+ name: "stallApplicationInfo.paymentTarget.accountHolderName",
407
+ placeholder: "Account holder name"
408
+ },
409
+ {
410
+ helperText: "Account number *",
411
+ name: "stallApplicationInfo.paymentTarget.accountNumber",
412
+ placeholder: "Account number"
413
+ },
414
+ {
415
+ helperText: "Link to payment target *",
416
+ name: "stallApplicationInfo.paymentTarget.link",
417
+ placeholder: "Link to payment target"
418
+ }
419
+ ];
420
+ var marketPriceByDateFields = [
421
+ {
422
+ helperText: "Market Price for this date *",
423
+ keyboardType: "number-pad",
424
+ name: "marketPrice",
425
+ placeholder: "Market Price"
426
+ }
427
+ ];
426
428
  var rejectionPolicyOptions = mapArrayToOptions(
427
429
  Object.values(EnumRejectionPolicy)
428
430
  );
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/formFields/index.ts","../../src/utils/index.ts","../../src/enums/index.ts","../../src/formFields/stallholder/createEditStallholder.ts","../../src/formFields/stallholder/stallholderApplyForm.ts","../../src/formFields/market.ts","../../src/formFields/auth.ts","../../src/formFields/user.ts","../../src/formFields/categories.ts"],"sourcesContent":["export * from \"./stallholder\";\nexport * from \"./market\";\nexport * from \"./auth\";\nexport * from \"./user\";\nexport * from \"./categories\";\n","import dayjs, { extend } from \"dayjs\";\nimport customParseFormat from \"dayjs/plugin/customParseFormat\";\nimport isSameOrAfter from \"dayjs/plugin/isSameOrAfter\";\nimport timezone from \"dayjs/plugin/timezone\";\nimport utc from \"dayjs/plugin/utc\";\n\nimport { EnumInviteStatus, EnumPaymentMethod, EnumRegions } from \"../enums\";\nimport { OptionItem, Region } from \"../types/global\";\n\nexport const dateFormat = \"DD-MM-YYYY\";\nexport const timeFormat = \"HH:mm\";\n\n// Enable custom format parsing\nextend(customParseFormat);\nextend(utc);\nextend(timezone);\nextend(isSameOrAfter);\n\ntype DateFormat = \"date\" | \"time\" | \"datetime\";\n\n/**\n * Format a date string to a more readable format.\n * @param dateStr - the date string\n * @param timeStr - optional time string\n * @param display - 'date' | 'time' | 'datetime'\n * @returns formatted string based on display option\n */\nexport const formatDate = (\n dateStr: string,\n display: DateFormat = \"datetime\",\n timeStr?: string,\n) => {\n // Combine date and time into a single string if time is provided\n const dateTimeStr = timeStr ? `${dateStr} ${timeStr}` : dateStr;\n\n // Parse with formats\n const dateTime = timeStr\n ? dayjs(dateTimeStr, `${dateFormat} ${timeFormat}`)\n : dayjs(dateStr, dateFormat);\n\n // Format parts\n const formattedDate = dateTime.format(\"dddd, D MMMM, YYYY\");\n const formattedTime = dateTime.format(\"h:mm a\");\n\n // Return based on display option\n switch (display) {\n case \"date\":\n return formattedDate;\n case \"time\":\n return formattedTime;\n case \"datetime\":\n return `${formattedDate} at ${formattedTime}`;\n default:\n return formattedDate;\n }\n};\n\nexport const getCurrentAndFutureDates = <\n T extends { startDate: string; startTime: string },\n>(\n dates: T[],\n): T[] => {\n const today = dayjs().startOf(\"day\");\n return dates.filter((dateObj) => {\n const dateTime = dayjs(dateObj.startDate, dateFormat);\n return dateTime.isSameOrAfter(today);\n });\n};\n\nexport const getFutureDatesAfterThreshold = (\n dates: {\n startDate: string;\n startTime: string;\n }[],\n minHoursFromNow?: number, // Optional\n) => {\n const threshold = minHoursFromNow\n ? dayjs().add(minHoursFromNow, \"hour\")\n : dayjs().startOf(\"day\");\n\n return dates.filter((dateObj) => {\n const dateTime = dayjs(\n `${dateObj.startDate} ${dateObj.startTime}`,\n `${dateFormat} ${timeFormat}`,\n );\n return dateTime.isSameOrAfter(threshold);\n });\n};\n\nexport const formatTimestamp = (timestamp: string) => {\n const formattedDate = dayjs(timestamp)\n .tz(\"Pacific/Auckland\")\n .format(dateFormat);\n\n const formattedTime = dayjs(timestamp)\n .tz(\"Pacific/Auckland\")\n .format(timeFormat);\n\n return formatDate(formattedDate, \"date\");\n};\n\nexport const defaultRegion: Region = {\n latitude: -36.8624942, // Default: New Zealand\n latitudeDelta: 5.0,\n longitude: 174.7450494,\n longitudeDelta: 5.0,\n};\n\n/**\n * Function to remove __typename from an object or array of objects.\n * @param obj - The object or array to clean.\n * @returns - The cleaned object or array.\n */\nexport const removeTypename = (obj: any): any => {\n if (Array.isArray(obj)) {\n return obj.map((item) => removeTypename(item)); // Recursively clean arrays\n } else if (obj !== null && typeof obj === \"object\") {\n const { __typename, ...cleanedObj } = obj; // Remove __typename\n return Object.keys(cleanedObj).reduce(\n (acc: { [key: string]: any }, key) => {\n acc[key] = removeTypename(cleanedObj[key]); // Recursively clean nested objects\n return acc;\n },\n {},\n );\n }\n return obj; // Return value as-is if it's not an object/array\n};\n\n/**\n * Truncate text to a specified length and append ellipsis if necessary.\n * @param text\n * @param maxLength\n * @returns\n */\nexport const truncateText = (text: string, maxLength: number = 30): string => {\n return text.length > maxLength ? text.substring(0, maxLength) + \"...\" : text;\n};\n\n/**\n * Convert an array of strings to an array of objects with label and value properties.\n * @param items - The array of strings to convert.\n * @returns - The converted array of objects.\n */\nexport const mapArrayToOptions = (items: string[]): OptionItem[] =>\n items.map((item) => ({\n label: item.replace(/_/g, \" \"),\n value: item.replace(/\\s+/g, \"_\").toLowerCase(),\n }));\n\nexport const capitalizeFirstLetter = (str: string): string => {\n return str\n .split(\" \")\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())\n .join(\" \");\n};\n\nexport const statusOptions = [\n ...Object.values(EnumInviteStatus)\n .map((status) => ({\n label: status,\n value: status,\n }))\n .sort((a, b) => a.label.localeCompare(b.label)), // Sort the options alphabetically\n];\n\n/**\n * Sort an array of date strings by their proximity to the current date.\n * @param dates - The array of date strings to sort.\n * @returns - The sorted array of date strings.\n */\nexport function sortDatesByProximity<\n T extends { startDate: string; startTime: string },\n>(dates: T[]): T[] {\n if (!dates || !dates.length) {\n return [];\n }\n const reference = dayjs();\n return [...dates].sort((a, b) => {\n const dateA = dayjs(a.startDate, dateFormat);\n const dateB = dayjs(b.startDate, dateFormat);\n const diffA = Math.abs(dateA.diff(reference));\n const diffB = Math.abs(dateB.diff(reference));\n return diffA - diffB;\n });\n}\n\nexport const availableRegionTypes = Object.values(EnumRegions);\nexport const availableRegionOptions: OptionItem[] =\n mapArrayToOptions(availableRegionTypes);\n\nexport const paymentMethodOptions: OptionItem[] = mapArrayToOptions(\n Object.values(EnumPaymentMethod),\n);\n","export enum EnumInviteStatus {\n ACCEPTED = \"Accepted\",\n COMPLETED = \"Completed\",\n EXPIRED = \"Expired\",\n NO_STATUS = \"No_Status\",\n PENDING = \"Pending\",\n REJECTED = \"Rejected\",\n WAITING = \"Waiting\",\n}\n\nexport enum EnumRejectionPolicy {\n SINGLE_DATE_ALLOWED = \"single_date_allowed\",\n MULTI_DATE_ALLOWED = \"multi_date_allowed\",\n}\n\nexport enum EnumPaymentMethod {\n CASH = \"cash\",\n EFTPOS = \"eftpos\",\n BANK_TRANSFER = \"bank_transfer\",\n PAYPAL = \"paypal\",\n STRIPE = \"stripe\",\n}\n\nexport enum EnumResourceType {\n MARKET = \"market\",\n STALLHOLDER = \"stallholder\",\n}\n\nexport enum EnumRelationResource {\n MARKET_INVITE_STALLHOLDER = \"market_invite_stallholder\",\n STALLHOLDER_APPLICATION_TO_MARKET = \"stallholder_application_to_market\",\n}\n\nexport enum EnumNotification {\n CREATED_MARKET = \"created_market\",\n CREATED_STALLHOLDER = \"created_stallholder\",\n NEW_CHAT_MESSAGE = \"new_chat_message\",\n MARKET_INVITE_STALLHOLDER = EnumRelationResource.MARKET_INVITE_STALLHOLDER,\n STALLHOLDER_APPLICATION_TO_MARKET = EnumRelationResource.STALLHOLDER_APPLICATION_TO_MARKET,\n}\n\nexport enum EnumResourceTypeIcon {\n MARKET = \"compass\",\n STALLHOLDER = \"store\",\n}\n\nexport enum EnumRegions {\n Auckland = \"Auckland\",\n BayOfPlenty = \"Bay of Plenty\",\n Canterbury = \"Canterbury\",\n Gisborne = \"Gisborne\",\n HawkesBay = \"Hawke's Bay\",\n ManawatuWanganui = \"Manawatu-Wanganui\",\n Marlborough = \"Marlborough\",\n Nelson = \"Nelson\",\n Northland = \"Northland\",\n Otago = \"Otago\",\n Southland = \"Southland\",\n Taranaki = \"Taranaki\",\n Waikato = \"Waikato\",\n Wellington = \"Wellington\",\n}\n\nexport enum ImageTypeEnum {\n AVATAR = \"avatar\",\n COVER = \"cover\",\n IMAGE = \"image\",\n LOGO = \"logo\",\n}\n\nexport enum EnumUserLicence {\n ENTERPRISE_MARKET = \"enterprise_market\",\n ENTERPRISE_STALLHOLDER = \"enterprise_stallholder\",\n PRO_MARKET = \"pro_market\",\n PRO_STALLHOLDER = \"pro_stallholder\",\n STANDARD_MARKET = \"standard_market\",\n STANDARD_STALLHOLDER = \"standard_stallholder\",\n}\n\nexport enum EnumUserRole {\n ADMIN = \"admin\",\n CUSTOMER = \"customer\",\n}\n","import { EnumRegions } from \"src/enums\";\n\nimport { FormDateField, FormField, OptionItem } from \"../../types/global\";\nimport { mapArrayToOptions } from \"../../utils\";\n\nexport const stallholderBasicInfoFields: FormField[] = [\n {\n helperText: \"Business Name of the Stallholder *\",\n name: \"name\",\n placeholder: \"Business Name\",\n },\n {\n helperText: \"Description of the Stallholder *\",\n isTextArea: true,\n name: \"description\",\n placeholder: \"Description\",\n },\n {\n helperText: \"Enter Promo code if you have one.\",\n name: \"promoCode\",\n placeholder: \"Promo code\",\n },\n];\n\nexport const stallholderMultiLocation: FormField = {\n helperText:\n \"Usefull when you are not only selling products on Markets but also providing services at other locations.\",\n name: \"multiLocation\",\n placeholder: \"Enable multi location\",\n};\n\nexport const stallholderFullAddress: FormField = {\n helperText: \"Enter address\",\n name: \"fullAddress\",\n placeholder: \"Start typing to find address\",\n};\n\nexport const stallholderStartDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"Start Date\",\n name: \"startDate\",\n placeholder: \"Start Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"Start Time\",\n name: \"startTime\",\n placeholder: \"Start Time\",\n },\n];\n\nexport const stallholderEndDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"End Date\",\n name: \"endDate\",\n placeholder: \"End Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"End Time\",\n name: \"endTime\",\n placeholder: \"End Time\",\n },\n];\n\nexport const stallholderLocationDescription: FormField = {\n helperText: \"Description\",\n isTextArea: true,\n name: \"description\",\n placeholder: \"Description\",\n};\n\nconst availableCityTypes = [\n \"Auckland\",\n \"Christchurch\",\n \"Hamilton\",\n \"Wellington\",\n];\n\nconst nzRegionsWithCities = [\n {\n cities: [\"Auckland\"],\n region: \"Auckland\",\n },\n {\n cities: [\"Tauranga\", \"Whakatāne\", \"Rotorua\"],\n region: \"Bay of Plenty\",\n },\n {\n cities: [\"Christchurch\", \"Timaru\", \"Ashburton\"],\n region: \"Canterbury\",\n },\n {\n cities: [\"Gisborne\"],\n region: \"Gisborne\",\n },\n {\n cities: [\"Napier\", \"Hastings\"],\n region: \"Hawke's Bay\",\n },\n {\n cities: [\"Palmerston North\", \"Whanganui\", \"Levin\"],\n region: \"Manawatū-Whanganui\",\n },\n {\n cities: [\"Blenheim\", \"Picton\"],\n region: \"Marlborough\",\n },\n {\n cities: [\"Nelson\"],\n region: \"Nelson Tasman\",\n },\n {\n cities: [\"Whangārei\", \"Kerikeri\", \"Kaitaia\"],\n region: \"Northland\",\n },\n {\n cities: [\"Dunedin\", \"Queenstown\"],\n region: \"Otago\",\n },\n {\n cities: [\"Invercargill\", \"Gore\"],\n region: \"Southland\",\n },\n {\n cities: [\"New Plymouth\", \"Hāwera\"],\n region: \"Taranaki\",\n },\n {\n cities: [\"Hamilton\", \"Taupō\", \"Cambridge\"],\n region: \"Waikato\",\n },\n {\n cities: [\"Wellington\", \"Lower Hutt\", \"Upper Hutt\", \"Porirua\"],\n region: \"Wellington\",\n },\n];\n\nexport const availableCityOptions: OptionItem[] =\n mapArrayToOptions(availableCityTypes);\n","import { FormField, OptionItem } from \"../../types\";\nimport { mapArrayToOptions } from \"../../utils\";\n\nexport const stallholderElectricity: {\n details: FormField;\n isRequired: FormField;\n} = {\n details: {\n helperText: \"Please describe details e.g. amps, voltage, etc.\",\n isTextArea: true,\n name: \"electricity.details\",\n placeholder: \"Electricity requirements\",\n },\n isRequired: {\n name: \"electricity.isRequired\",\n placeholder: \"Do you require electricity?\",\n },\n};\n\nexport const stallholderGazebo: {\n details: FormField;\n isRequired: FormField;\n} = {\n details: {\n helperText: \"Please describe details e.g. size, etc.\",\n isTextArea: true,\n name: \"gazebo.details\",\n placeholder: \"Gazebo requirements\",\n },\n isRequired: {\n name: \"gazebo.isRequired\",\n placeholder: \"Do you require Gazebo?\",\n },\n};\n\nexport const stallholderTable: {\n details: FormField;\n isRequired: FormField;\n} = {\n details: {\n helperText: \"Please describe details e.g. size, etc.\",\n isTextArea: true,\n name: \"table.details\",\n placeholder: \"Table requirements\",\n },\n isRequired: {\n name: \"table.isRequired\",\n placeholder: \"Do you require Table?\",\n },\n};\n\nexport const stallholderPriceRange: {\n max: FormField;\n min: FormField;\n} = {\n max: {\n helperText: \"Product maximum price\",\n name: \"priceRange.max\",\n placeholder: \"Maximum price: \",\n },\n min: {\n helperText: \"Product minimum price\",\n name: \"priceRange.min\",\n placeholder: \"Minimum price: \",\n },\n};\n\nexport const stallholderStallSize: {\n depth: FormField;\n width: FormField;\n} = {\n depth: {\n helperText: \"Stall size in depth\",\n name: \"stallSize.depth\",\n placeholder: \"Stall Depth: \",\n },\n width: {\n helperText: \"Stall size in width\",\n name: \"stallSize.width\",\n placeholder: \"Stall Width: \",\n },\n};\n\nexport const stallholderPackaging: FormField = {\n helperText: \"Select packaging type, you can select more than one\",\n name: \"packaging\",\n placeholder: \"Packaging type\",\n};\n\nexport const stallholderPaymentMethod: FormField = {\n helperText: \"Select payment method\",\n name: \"paymentMethod\",\n placeholder: \"Payment Method type\",\n};\n\nexport const stallholderProducedIn: FormField = {\n helperText:\n \"Select where the product is produced, you can select more than one\",\n name: \"producedIn\",\n placeholder: \"Produced type\",\n};\n\nconst packagingTypes = [\n \"Biodegradable\",\n \"Compostable\",\n \"Recyclable\",\n \"Reusable\",\n \"Single-use\",\n \"Glass\",\n \"Paper\",\n \"Plastic\",\n \"Wood\",\n \"Other\",\n];\n\nconst producedIngTypes = [\n \"Commercial Kitchen\",\n \"Home Premises\",\n \"Factory\",\n \"Farm\",\n \"Other\",\n];\n\nexport const packagingOptions: OptionItem[] = mapArrayToOptions(packagingTypes);\nexport const producedIngOptions: OptionItem[] =\n mapArrayToOptions(producedIngTypes);\n","import { EnumRejectionPolicy } from \"../enums\";\nimport { FormDateField, FormField, OptionItem } from \"../types/global\";\nimport { mapArrayToOptions } from \"../utils\";\n\nexport const marketBasicInfoFields: FormField[] = [\n {\n helperText: \"Name of the Market *\",\n name: \"name\",\n placeholder: \"Name\",\n },\n {\n helperText: \"Name of the Provider *\",\n name: \"provider\",\n placeholder: \"Provider\",\n },\n {\n helperText: \"Description of the Market *\",\n isTextArea: true,\n name: \"description\",\n placeholder: \"Description\",\n },\n {\n helperText: \"Enter Promo code if you have one.\",\n name: \"promoCode\",\n placeholder: \"Promo code\",\n },\n];\n\nexport const stallApplicationInfo: FormField[] = [\n {\n helperText: \"Application Deadline of the Market *\",\n keyboardType: \"number-pad\",\n name: \"stallApplicationInfo.applicationDeadlineHours\",\n placeholder: \"Application Deadline Hours\",\n },\n {\n helperText: \"Stall Capacity of the Market *\",\n keyboardType: \"number-pad\",\n name: \"stallApplicationInfo.stallCapacity\",\n placeholder: \"Stall Capacity\",\n },\n {\n helperText: \"Payment Due Hours of the Market *\",\n keyboardType: \"number-pad\",\n name: \"stallApplicationInfo.paymentDueHours\",\n placeholder: \"Payment Due Hours\",\n },\n];\n\nexport const stallApplicationInfoPaymentTarget: FormField[] = [\n {\n helperText: \"Account holder name *\",\n name: \"stallApplicationInfo.paymentTarget.accountHolderName\",\n placeholder: \"Account holder name\",\n },\n {\n helperText: \"Account number *\",\n name: \"stallApplicationInfo.paymentTarget.accountNumber\",\n placeholder: \"Account number\",\n },\n {\n helperText: \"Link to payment target *\",\n name: \"stallApplicationInfo.paymentTarget.link\",\n placeholder: \"Link to payment target\",\n },\n];\n\nexport const marketStartDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"Start Date of the Market *\",\n name: \"startDate\",\n placeholder: \"Start Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"Start Time of the Market *\",\n name: \"startTime\",\n placeholder: \"Start Time\",\n },\n];\n\nexport const marketPriceByDateFields: FormField[] = [\n {\n helperText: \"Market Price for this date *\",\n keyboardType: \"number-pad\",\n name: \"marketPrice\",\n placeholder: \"Market Price\",\n },\n];\n\nexport const marketEndDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"End Date of the Market *\",\n name: \"endDate\",\n placeholder: \"End Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"End Time of the Market *\",\n name: \"endTime\",\n placeholder: \"End Time\",\n },\n];\n\nexport const availableTagTypes = [\n \"All Ages\",\n \"Day Market\",\n \"Family Friendly\",\n \"Free Entry\",\n \"Indoor Market\",\n \"Live Music\",\n \"Night Market\",\n \"Outdoor Market\",\n \"Pet Friendly\",\n \"Near Bustop\",\n \"Near Train Station\",\n \"Parking Available\",\n \"Toilet Available\",\n \"Wheelchair Accessible\",\n \"Near Playground\",\n \"Port Nearby\",\n];\n\nexport const tagOptions: OptionItem[] = mapArrayToOptions(availableTagTypes);\n\nexport const rejectionPolicyOptions: OptionItem[] = mapArrayToOptions(\n Object.values(EnumRejectionPolicy),\n);\n","import { FormField } from \"../types/global\";\n\nexport const loginFields: FormField[] = [\n {\n helperText: \"Enter your email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n {\n helperText: \"Enter your password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n];\n\nexport const registerFields: FormField[] = [\n {\n helperText: \"Enter your first name\",\n keyboardType: \"default\",\n name: \"firstName\",\n placeholder: \"First Name\",\n },\n {\n helperText: \"Enter your last name\",\n keyboardType: \"default\",\n name: \"lastName\",\n placeholder: \"Last Name\",\n },\n {\n helperText: \"Enter your email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n {\n helperText: \"Enter your password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n];\n\nexport const requestPasswordResetFields: FormField[] = [\n {\n helperText: \"Enter your email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n];\n\nexport const resetPasswordFields: FormField[] = [\n {\n helperText: \"Enter your new password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n {\n helperText: \"Confirm your new password\",\n keyboardType: \"default\",\n name: \"confirmPassword\",\n placeholder: \"Confirm Password\",\n secureTextEntry: true,\n },\n];\n\nexport const validateTokenFields: FormField[] = [\n {\n disabled: true,\n helperText: \"Your email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n {\n helperText: \"Enter the Verification code sent to your email\",\n keyboardType: \"number-pad\",\n name: \"token\",\n placeholder: \"Verification code\",\n },\n];\n","import { FormField } from \"../types/global\";\n\nexport const profileFields: FormField[] = [\n {\n disabled: true,\n helperText: \"Email cannot be changed\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n {\n helperText: \"Enter your first name\",\n keyboardType: \"default\",\n name: \"firstName\",\n placeholder: \"First Name\",\n },\n {\n helperText: \"Enter your last name\",\n keyboardType: \"default\",\n name: \"lastName\",\n placeholder: \"Last Name\",\n },\n {\n helperText: \"Enter your new password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n {\n helperText: \"Confirm your new password\",\n keyboardType: \"default\",\n name: \"confirmPassword\",\n placeholder: \"Confirm Password\",\n secureTextEntry: true,\n },\n];\n","import { Category } from \"../types/global\";\n\nexport const availableCategories: Category[] = [\n {\n id: \"food-drinks\",\n name: \"Food & Drinks\",\n subcategories: [\n {\n id: \"fresh-food-groceries\",\n items: [\n \"Fruits & Vegetables\",\n \"Meat & Seafood\",\n \"Dairy & Eggs\",\n \"Bakery & Desserts\",\n \"Spices & Condiments\",\n \"Packaged & Specialty Foods\",\n \"Other\",\n ],\n name: \"Fresh Food & Groceries\",\n },\n {\n id: \"beverages-specialty-drinks\",\n items: [\n \"Fresh Juices & Smoothies\",\n \"Coffee & Teas\",\n \"Dairy & Plant-Based Drinks\",\n \"Alcoholic Beverages\",\n \"Other\",\n ],\n name: \"Beverages & Specialty Drinks\",\n },\n {\n id: \"prepared-street-foods\",\n items: [\n \"Local & International Specialties\",\n \"Vegan & Vegetarian Options\",\n \"Candies & Sweets\",\n \"BBQ & Grilled Foods\",\n \"Other\",\n ],\n name: \"Prepared & Street Foods\",\n },\n ],\n },\n {\n id: \"handmade-local-products\",\n name: \"Handmade & Local Products\",\n subcategories: [\n {\n id: \"home-lifestyle\",\n items: [\n \"Textiles & Home Decor\",\n \"Pottery & Ceramics\",\n \"Woodwork & Carving\",\n \"Handwoven Baskets & Bags\",\n \"Other\",\n ],\n name: \"Home & Lifestyle\",\n },\n {\n id: \"fashion-accessories\",\n items: [\n \"Leather & Hand-Stitched Items\",\n \"Handcrafted Jewelry & Accessories\",\n \"Traditional & Cultural Clothing\",\n \"Other\",\n ],\n name: \"Fashion & Accessories\",\n },\n {\n id: \"eco-friendly-products\",\n items: [\n \"Recycled Goods\",\n \"Eco-Packaging\",\n \"Sustainable Fashion & Accessories\",\n \"Other\",\n ],\n name: \"Eco-Friendly & Sustainable Products\",\n },\n {\n id: \"arts-crafts\",\n items: [\"Art & Crafts\", \"Traditional & Cultural Items\", \"Other\"],\n name: \"Arts & Crafts\",\n },\n ],\n },\n {\n id: \"clothing-fashion\",\n name: \"Clothing & Fashion\",\n subcategories: [\n {\n id: \"casual-modern-wear\",\n items: [\n \"Modern & Casual Clothes\",\n \"Jackets & Outerwear\",\n \"Baby & Kids Clothing\",\n \"Scarves & Shawls\",\n \"Second-Hand Designer Clothes\",\n \"Underwear\",\n \"Other\",\n ],\n name: \"Casual & Modern Wear\",\n },\n {\n id: \"footwear\",\n items: [\n \"Everyday Shoes\",\n \"Formal Shoes\",\n \"Handmade & Leather Shoes\",\n \"Other\",\n ],\n name: \"Footwear\",\n },\n {\n id: \"bags-accessories\",\n items: [\n \"Bags, Belts, Hats, Sunglasses, Watches\",\n \"Retro and Vintage Accessories\",\n \"Other\",\n ],\n name: \"Bags & Accessories\",\n },\n {\n id: \"luxury-designer-brands\",\n items: [\n \"Luxury Clothing\",\n \"Designer Shoes\",\n \"Exclusive Accessories\",\n \"Other\",\n ],\n name: \"Luxury & Designer Brands\",\n },\n ],\n },\n {\n id: \"home-garden-household\",\n name: \"Home, Garden & Household Goods\",\n subcategories: [\n {\n id: \"home-essentials-kitchenware\",\n items: [\n \"Kitchenware & Dining\",\n \"Sustainable & Eco-Friendly Items\",\n \"Handmade & Artisan Home Goods\",\n \"Other\",\n ],\n name: \"Home Essentials & Kitchenware\",\n },\n {\n id: \"furniture-decor-organization\",\n items: [\n \"Furniture & Home Decor\",\n \"Textiles & Bedding\",\n \"Storage & Organization\",\n \"Other\",\n ],\n name: \"Furniture, Decor & Organization\",\n },\n {\n id: \"outdoor-cleaning-essentials\",\n items: [\n \"Garden, Plants & Decorations\",\n \"DIY & Home Improvement\",\n \"Cleaning Supplies & Household Essentials\",\n \"Other\",\n ],\n name: \"Outdoor & Cleaning Essentials\",\n },\n ],\n },\n {\n id: \"toys-pets\",\n name: \"Toys & Pets\",\n subcategories: [\n {\n id: \"handmade-eco-friendly-kids\",\n items: [\"Handmade & Local Toys\", \"Eco-Friendly Kids Products\", \"Other\"],\n name: \"Handmade & Eco-Friendly Kids Products\",\n },\n {\n id: \"toys-all-ages\",\n items: [\n \"Classic & Interactive Toys\",\n \"Building Blocks & Board Games\",\n \"Balloons & Party Accessories\",\n \"Other\",\n ],\n name: \"Toys for All Ages\",\n },\n {\n id: \"pet-products-animal-goods\",\n items: [\n \"Natural Pet Foods\",\n \"Handmade Pet Accessories\",\n \"Livestock & Farm Supplies\",\n \"Other\",\n ],\n name: \"Pet Products & Animal Goods\",\n },\n ],\n },\n {\n id: \"health-wellness-selfcare\",\n name: \"Health, Wellness & Self-Care\",\n subcategories: [\n {\n id: \"natural-remedies-supplements\",\n items: [\n \"Vitamins, Minerals & Herbal Remedies\",\n \"Superfoods, Probiotics & Detox Teas\",\n \"Other\",\n ],\n name: \"Natural Remedies & Supplements\",\n },\n {\n id: \"organic-natural-products\",\n items: [\n \"Organic Produce, Honey, Nuts & Seeds\",\n \"Gluten-Free & Specialty Items\",\n \"Other\",\n ],\n name: \"Organic & Natural Products\",\n },\n {\n id: \"fitness-sports-nutrition\",\n items: [\"Protein Powders & Bars\", \"Sports & Energy Drinks\", \"Other\"],\n name: \"Fitness & Sports Nutrition\",\n },\n {\n id: \"mental-wellbeing-relaxation\",\n items: [\n \"Yoga, Meditation & Stress-Relief Tools\",\n \"Massage & Muscle Relaxers\",\n \"Motivational Books & Tools\",\n \"Other\",\n ],\n name: \"Mental Wellbeing & Relaxation\",\n },\n ],\n },\n {\n id: \"electronics-technology\",\n name: \"Electronics & Technology\",\n subcategories: [\n {\n id: \"electronic-devices-accessories\",\n items: [\n \"Refurbished & Used Electronics\",\n \"Smartphones & Gadgets\",\n \"Computers & Gaming Gear\",\n \"Photography & Audio Equipment\",\n \"Other\",\n ],\n name: \"Electronic Devices & Accessories\",\n },\n ],\n },\n {\n id: \"antiques-collectibles\",\n name: \"Antiques & Collectibles\",\n subcategories: [\n {\n id: \"antiques-vintage-furniture\",\n items: [\n \"Old Clocks, Paintings & Sculptures\",\n \"Coins, Stamps & Rare Books\",\n \"Antique & Vintage Furniture & Home Decor\",\n \"Other\",\n ],\n name: \"Antiques & Vintage Furniture\",\n },\n {\n id: \"historical-rare-items\",\n items: [\n \"War Relics & Military Medals\",\n \"Limited Edition Artworks & Memorabilia\",\n \"Other\",\n ],\n name: \"Historical & Rare Items\",\n },\n {\n id: \"collectible-toys-games\",\n items: [\n \"Limited Edition Figures & Retro Board Games\",\n \"Pop Culture & Sports Memorabilia\",\n \"Other\",\n ],\n name: \"Collectible Toys & Games\",\n },\n ],\n },\n];\n\nexport const categoryColors: Record<string, string> = {\n \"antiques-collectibles\": \"#DE630A\",\n \"clothing-fashion\": \"#6A08C5\",\n \"electronics-technology\": \"#0303BE\",\n \"food-drinks\": \"#FF004D\",\n \"handmade-local-products\": \"#8E4827\",\n \"health-wellness-selfcare\": \"#7DFB03\",\n \"home-garden-household\": \"#006400\",\n \"toys-pets\": \"#3357FF\",\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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AA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,QACA,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,eAAe;AAAA,MACb;AAAA,QACE,IAAI;AAAA,QACJ,OAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,QACA,MAAM;AAAA,MACR;AAAA,MACA;AAAA,QACE,IAAI;AAAA,QACJ,OAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,QACA,MAAM;AAAA,MACR;AAAA,MACA;AAAA,QACE,IAAI;AAAA,QACJ,OAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,QACA,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;AAEO,IAAM,iBAAyC;AAAA,EACpD,yBAAyB;AAAA,EACzB,oBAAoB;AAAA,EACpB,0BAA0B;AAAA,EAC1B,eAAe;AAAA,EACf,2BAA2B;AAAA,EAC3B,4BAA4B;AAAA,EAC5B,yBAAyB;AAAA,EACzB,aAAa;AACf;","names":["EnumInviteStatus","EnumRejectionPolicy","EnumPaymentMethod","EnumRegions","customParseFormat","utc","timezone","isSameOrAfter"]}
1
+ {"version":3,"sources":["../../src/formFields/index.ts","../../src/utils/index.ts","../../src/enums/index.ts","../../src/formFields/stallholder/stallholder.ts","../../src/formFields/stallholder/stallholderApplyForm.ts","../../src/formFields/market/market.ts","../../src/formFields/market/marketInfo.ts","../../src/formFields/auth.ts","../../src/formFields/user.ts","../../src/formFields/categories.ts"],"sourcesContent":["export * from \"./stallholder\";\nexport * from \"./market\";\nexport * from \"./auth\";\nexport * from \"./user\";\nexport * from \"./categories\";\n","import dayjs, { extend } from \"dayjs\";\nimport customParseFormat from \"dayjs/plugin/customParseFormat\";\nimport isSameOrAfter from \"dayjs/plugin/isSameOrAfter\";\nimport timezone from \"dayjs/plugin/timezone\";\nimport utc from \"dayjs/plugin/utc\";\n\nimport { EnumInviteStatus, EnumPaymentMethod, EnumRegions } from \"../enums\";\nimport { OptionItem, Region } from \"../types/global\";\n\nexport const dateFormat = \"DD-MM-YYYY\";\nexport const timeFormat = \"HH:mm\";\n\n// Enable custom format parsing\nextend(customParseFormat);\nextend(utc);\nextend(timezone);\nextend(isSameOrAfter);\n\ntype DateFormat = \"date\" | \"time\" | \"datetime\";\n\n/**\n * Format a date string to a more readable format.\n * @param dateStr - the date string\n * @param timeStr - optional time string\n * @param display - 'date' | 'time' | 'datetime'\n * @returns formatted string based on display option\n */\nexport const formatDate = (\n dateStr: string,\n display: DateFormat = \"datetime\",\n timeStr?: string,\n) => {\n // Combine date and time into a single string if time is provided\n const dateTimeStr = timeStr ? `${dateStr} ${timeStr}` : dateStr;\n\n // Parse with formats\n const dateTime = timeStr\n ? dayjs(dateTimeStr, `${dateFormat} ${timeFormat}`)\n : dayjs(dateStr, dateFormat);\n\n // Format parts\n const formattedDate = dateTime.format(\"dddd, D MMMM, YYYY\");\n const formattedTime = dateTime.format(\"h:mm a\");\n\n // Return based on display option\n switch (display) {\n case \"date\":\n return formattedDate;\n case \"time\":\n return formattedTime;\n case \"datetime\":\n return `${formattedDate} at ${formattedTime}`;\n default:\n return formattedDate;\n }\n};\n\nexport const getCurrentAndFutureDates = <\n T extends { startDate: string; startTime: string },\n>(\n dates: T[],\n): T[] => {\n const today = dayjs().startOf(\"day\");\n return dates.filter((dateObj) => {\n const dateTime = dayjs(dateObj.startDate, dateFormat);\n return dateTime.isSameOrAfter(today);\n });\n};\n\nexport const getFutureDatesAfterThreshold = (\n dates: {\n startDate: string;\n startTime: string;\n }[],\n minHoursFromNow?: number, // Optional\n) => {\n const threshold = minHoursFromNow\n ? dayjs().add(minHoursFromNow, \"hour\")\n : dayjs().startOf(\"day\");\n\n return dates.filter((dateObj) => {\n const dateTime = dayjs(\n `${dateObj.startDate} ${dateObj.startTime}`,\n `${dateFormat} ${timeFormat}`,\n );\n return dateTime.isSameOrAfter(threshold);\n });\n};\n\nexport const formatTimestamp = (timestamp: string) => {\n const formattedDate = dayjs(timestamp)\n .tz(\"Pacific/Auckland\")\n .format(dateFormat);\n\n const formattedTime = dayjs(timestamp)\n .tz(\"Pacific/Auckland\")\n .format(timeFormat);\n\n return formatDate(formattedDate, \"date\");\n};\n\nexport const defaultRegion: Region = {\n latitude: -36.8624942, // Default: New Zealand\n latitudeDelta: 5.0,\n longitude: 174.7450494,\n longitudeDelta: 5.0,\n};\n\n/**\n * Function to remove __typename from an object or array of objects.\n * @param obj - The object or array to clean.\n * @returns - The cleaned object or array.\n */\nexport const removeTypename = (obj: any): any => {\n if (Array.isArray(obj)) {\n return obj.map((item) => removeTypename(item)); // Recursively clean arrays\n } else if (obj !== null && typeof obj === \"object\") {\n const { __typename, ...cleanedObj } = obj; // Remove __typename\n return Object.keys(cleanedObj).reduce(\n (acc: { [key: string]: any }, key) => {\n acc[key] = removeTypename(cleanedObj[key]); // Recursively clean nested objects\n return acc;\n },\n {},\n );\n }\n return obj; // Return value as-is if it's not an object/array\n};\n\n/**\n * Truncate text to a specified length and append ellipsis if necessary.\n * @param text\n * @param maxLength\n * @returns\n */\nexport const truncateText = (text: string, maxLength: number = 30): string => {\n return text.length > maxLength ? text.substring(0, maxLength) + \"...\" : text;\n};\n\n/**\n * Convert an array of strings to an array of objects with label and value properties.\n * @param items - The array of strings to convert.\n * @returns - The converted array of objects.\n */\nexport const mapArrayToOptions = (items: string[]): OptionItem[] =>\n items.map((item) => ({\n label: item.replace(/_/g, \" \"),\n value: item.replace(/\\s+/g, \"_\").toLowerCase(),\n }));\n\nexport const capitalizeFirstLetter = (str: string): string => {\n return str\n .split(\" \")\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())\n .join(\" \");\n};\n\nexport const statusOptions = [\n ...Object.values(EnumInviteStatus)\n .map((status) => ({\n label: status,\n value: status,\n }))\n .sort((a, b) => a.label.localeCompare(b.label)), // Sort the options alphabetically\n];\n\n/**\n * Sort an array of date strings by their proximity to the current date.\n * @param dates - The array of date strings to sort.\n * @returns - The sorted array of date strings.\n */\nexport function sortDatesByProximity<\n T extends { startDate: string; startTime: string },\n>(dates: T[]): T[] {\n if (!dates || !dates.length) {\n return [];\n }\n const reference = dayjs();\n return [...dates].sort((a, b) => {\n const dateA = dayjs(a.startDate, dateFormat);\n const dateB = dayjs(b.startDate, dateFormat);\n const diffA = Math.abs(dateA.diff(reference));\n const diffB = Math.abs(dateB.diff(reference));\n return diffA - diffB;\n });\n}\n\nexport const availableRegionTypes = Object.values(EnumRegions);\nexport const availableRegionOptions: OptionItem[] =\n mapArrayToOptions(availableRegionTypes);\n\nexport const paymentMethodOptions: OptionItem[] = mapArrayToOptions(\n Object.values(EnumPaymentMethod),\n);\n","export enum EnumInviteStatus {\n ACCEPTED = \"Accepted\",\n COMPLETED = \"Completed\",\n EXPIRED = \"Expired\",\n NO_STATUS = \"No_Status\",\n PENDING = \"Pending\",\n REJECTED = \"Rejected\",\n WAITING = \"Waiting\",\n}\n\nexport enum EnumRejectionPolicy {\n SINGLE_DATE_ALLOWED = \"single_date_allowed\",\n MULTI_DATE_ALLOWED = \"multi_date_allowed\",\n}\n\nexport enum EnumPaymentMethod {\n CASH = \"cash\",\n EFTPOS = \"eftpos\",\n BANK_TRANSFER = \"bank_transfer\",\n PAYPAL = \"paypal\",\n STRIPE = \"stripe\",\n}\n\nexport enum EnumResourceType {\n MARKET = \"market\",\n STALLHOLDER = \"stallholder\",\n}\n\nexport enum EnumRelationResource {\n MARKET_INVITE_STALLHOLDER = \"market_invite_stallholder\",\n STALLHOLDER_APPLICATION_TO_MARKET = \"stallholder_application_to_market\",\n}\n\nexport enum EnumNotification {\n CREATED_MARKET = \"created_market\",\n CREATED_STALLHOLDER = \"created_stallholder\",\n NEW_CHAT_MESSAGE = \"new_chat_message\",\n MARKET_INVITE_STALLHOLDER = EnumRelationResource.MARKET_INVITE_STALLHOLDER,\n STALLHOLDER_APPLICATION_TO_MARKET = EnumRelationResource.STALLHOLDER_APPLICATION_TO_MARKET,\n}\n\nexport enum EnumResourceTypeIcon {\n MARKET = \"compass\",\n STALLHOLDER = \"store\",\n}\n\nexport enum EnumRegions {\n Auckland = \"Auckland\",\n BayOfPlenty = \"Bay of Plenty\",\n Canterbury = \"Canterbury\",\n Gisborne = \"Gisborne\",\n HawkesBay = \"Hawke's Bay\",\n ManawatuWanganui = \"Manawatu-Wanganui\",\n Marlborough = \"Marlborough\",\n Nelson = \"Nelson\",\n Northland = \"Northland\",\n Otago = \"Otago\",\n Southland = \"Southland\",\n Taranaki = \"Taranaki\",\n Waikato = \"Waikato\",\n Wellington = \"Wellington\",\n}\n\nexport enum ImageTypeEnum {\n AVATAR = \"avatar\",\n COVER = \"cover\",\n IMAGE = \"image\",\n LOGO = \"logo\",\n}\n\nexport enum EnumUserLicence {\n ENTERPRISE_MARKET = \"enterprise_market\",\n ENTERPRISE_STALLHOLDER = \"enterprise_stallholder\",\n PRO_MARKET = \"pro_market\",\n PRO_STALLHOLDER = \"pro_stallholder\",\n STANDARD_MARKET = \"standard_market\",\n STANDARD_STALLHOLDER = \"standard_stallholder\",\n}\n\nexport enum EnumUserRole {\n ADMIN = \"admin\",\n CUSTOMER = \"customer\",\n}\n","import { FormDateField, FormField, OptionItem } from \"../../types/global\";\nimport { mapArrayToOptions } from \"../../utils\";\n\nexport const stallholderBasicInfoFields: FormField[] = [\n {\n helperText: \"Business Name of the Stallholder *\",\n name: \"name\",\n placeholder: \"Business Name\",\n },\n {\n helperText: \"Description of the Stallholder *\",\n isTextArea: true,\n name: \"description\",\n placeholder: \"Description\",\n },\n {\n helperText: \"Enter Promo code if you have one.\",\n name: \"promoCode\",\n placeholder: \"Promo code\",\n },\n];\n\nexport const stallholderMultiLocation: FormField = {\n helperText:\n \"Usefull when you are not only selling products on Markets but also providing services at other locations.\",\n name: \"multiLocation\",\n placeholder: \"Enable multi location\",\n};\n\nexport const stallholderFullAddress: FormField = {\n helperText: \"Enter address\",\n name: \"fullAddress\",\n placeholder: \"Start typing to find address\",\n};\n\nexport const stallholderStartDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"Start Date\",\n name: \"startDate\",\n placeholder: \"Start Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"Start Time\",\n name: \"startTime\",\n placeholder: \"Start Time\",\n },\n];\n\nexport const stallholderEndDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"End Date\",\n name: \"endDate\",\n placeholder: \"End Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"End Time\",\n name: \"endTime\",\n placeholder: \"End Time\",\n },\n];\n\nexport const stallholderLocationDescription: FormField = {\n helperText: \"Description\",\n isTextArea: true,\n name: \"description\",\n placeholder: \"Description\",\n};\n\nconst availableCityTypes = [\n \"Auckland\",\n \"Christchurch\",\n \"Hamilton\",\n \"Wellington\",\n];\n\nconst nzRegionsWithCities = [\n {\n cities: [\"Auckland\"],\n region: \"Auckland\",\n },\n {\n cities: [\"Tauranga\", \"Whakatāne\", \"Rotorua\"],\n region: \"Bay of Plenty\",\n },\n {\n cities: [\"Christchurch\", \"Timaru\", \"Ashburton\"],\n region: \"Canterbury\",\n },\n {\n cities: [\"Gisborne\"],\n region: \"Gisborne\",\n },\n {\n cities: [\"Napier\", \"Hastings\"],\n region: \"Hawke's Bay\",\n },\n {\n cities: [\"Palmerston North\", \"Whanganui\", \"Levin\"],\n region: \"Manawatū-Whanganui\",\n },\n {\n cities: [\"Blenheim\", \"Picton\"],\n region: \"Marlborough\",\n },\n {\n cities: [\"Nelson\"],\n region: \"Nelson Tasman\",\n },\n {\n cities: [\"Whangārei\", \"Kerikeri\", \"Kaitaia\"],\n region: \"Northland\",\n },\n {\n cities: [\"Dunedin\", \"Queenstown\"],\n region: \"Otago\",\n },\n {\n cities: [\"Invercargill\", \"Gore\"],\n region: \"Southland\",\n },\n {\n cities: [\"New Plymouth\", \"Hāwera\"],\n region: \"Taranaki\",\n },\n {\n cities: [\"Hamilton\", \"Taupō\", \"Cambridge\"],\n region: \"Waikato\",\n },\n {\n cities: [\"Wellington\", \"Lower Hutt\", \"Upper Hutt\", \"Porirua\"],\n region: \"Wellington\",\n },\n];\n\nexport const availableCityOptions: OptionItem[] =\n mapArrayToOptions(availableCityTypes);\n","import { FormField, OptionItem } from \"../../types\";\nimport { mapArrayToOptions } from \"../../utils\";\n\nexport const stallholderElectricity: {\n details: FormField;\n isRequired: FormField;\n} = {\n details: {\n helperText: \"Please describe details e.g. amps, voltage, etc.\",\n isTextArea: true,\n name: \"electricity.details\",\n placeholder: \"Electricity requirements\",\n },\n isRequired: {\n name: \"electricity.isRequired\",\n placeholder: \"Do you require electricity?\",\n },\n};\n\nexport const stallholderGazebo: {\n details: FormField;\n isRequired: FormField;\n} = {\n details: {\n helperText: \"Please describe details e.g. size, etc.\",\n isTextArea: true,\n name: \"gazebo.details\",\n placeholder: \"Gazebo requirements\",\n },\n isRequired: {\n name: \"gazebo.isRequired\",\n placeholder: \"Do you require Gazebo?\",\n },\n};\n\nexport const stallholderTable: {\n details: FormField;\n isRequired: FormField;\n} = {\n details: {\n helperText: \"Please describe details e.g. size, etc.\",\n isTextArea: true,\n name: \"table.details\",\n placeholder: \"Table requirements\",\n },\n isRequired: {\n name: \"table.isRequired\",\n placeholder: \"Do you require Table?\",\n },\n};\n\nexport const stallholderPriceRange: {\n max: FormField;\n min: FormField;\n} = {\n max: {\n helperText: \"Product maximum price\",\n name: \"priceRange.max\",\n placeholder: \"Maximum price: \",\n },\n min: {\n helperText: \"Product minimum price\",\n name: \"priceRange.min\",\n placeholder: \"Minimum price: \",\n },\n};\n\nexport const stallholderStallSize: {\n depth: FormField;\n width: FormField;\n} = {\n depth: {\n helperText: \"Stall size in depth\",\n name: \"stallSize.depth\",\n placeholder: \"Stall Depth: \",\n },\n width: {\n helperText: \"Stall size in width\",\n name: \"stallSize.width\",\n placeholder: \"Stall Width: \",\n },\n};\n\nexport const stallholderPackaging: FormField = {\n helperText: \"Select packaging type, you can select more than one\",\n name: \"packaging\",\n placeholder: \"Packaging type\",\n};\n\nexport const stallholderPaymentMethod: FormField = {\n helperText: \"Select payment method\",\n name: \"paymentMethod\",\n placeholder: \"Payment Method type\",\n};\n\nexport const stallholderProducedIn: FormField = {\n helperText:\n \"Select where the product is produced, you can select more than one\",\n name: \"producedIn\",\n placeholder: \"Produced type\",\n};\n\nconst packagingTypes = [\n \"Biodegradable\",\n \"Compostable\",\n \"Recyclable\",\n \"Reusable\",\n \"Single-use\",\n \"Glass\",\n \"Paper\",\n \"Plastic\",\n \"Wood\",\n \"Other\",\n];\n\nconst producedIngTypes = [\n \"Commercial Kitchen\",\n \"Home Premises\",\n \"Factory\",\n \"Farm\",\n \"Other\",\n];\n\nexport const packagingOptions: OptionItem[] = mapArrayToOptions(packagingTypes);\nexport const producedIngOptions: OptionItem[] =\n mapArrayToOptions(producedIngTypes);\n","import { FormDateField, FormField, OptionItem } from \"../../types/global\";\nimport { mapArrayToOptions } from \"../../utils\";\n\nexport const marketBasicInfoFields: FormField[] = [\n {\n helperText: \"Name of the Market *\",\n name: \"name\",\n placeholder: \"Name\",\n },\n {\n helperText: \"Name of the Provider *\",\n name: \"provider\",\n placeholder: \"Provider\",\n },\n {\n helperText: \"Description of the Market *\",\n isTextArea: true,\n name: \"description\",\n placeholder: \"Description\",\n },\n {\n helperText: \"Enter Promo code if you have one.\",\n name: \"promoCode\",\n placeholder: \"Promo code\",\n },\n];\n\nexport const marketStartDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"Start Date of the Market *\",\n name: \"startDate\",\n placeholder: \"Start Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"Start Time of the Market *\",\n name: \"startTime\",\n placeholder: \"Start Time\",\n },\n];\n\nexport const marketEndDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"End Date of the Market *\",\n name: \"endDate\",\n placeholder: \"End Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"End Time of the Market *\",\n name: \"endTime\",\n placeholder: \"End Time\",\n },\n];\n\nexport const availableTagTypes = [\n \"All Ages\",\n \"Day Market\",\n \"Family Friendly\",\n \"Free Entry\",\n \"Indoor Market\",\n \"Live Music\",\n \"Night Market\",\n \"Outdoor Market\",\n \"Pet Friendly\",\n \"Near Bustop\",\n \"Near Train Station\",\n \"Parking Available\",\n \"Toilet Available\",\n \"Wheelchair Accessible\",\n \"Near Playground\",\n \"Port Nearby\",\n];\n\nexport const tagOptions: OptionItem[] = mapArrayToOptions(availableTagTypes);\n","import { EnumRejectionPolicy } from \"../../enums\";\nimport { FormField, OptionItem } from \"../../types/global\";\nimport { mapArrayToOptions } from \"../../utils\";\n\nexport const stallApplicationInfo: FormField[] = [\n {\n helperText: \"Application Deadline of the Market *\",\n keyboardType: \"number-pad\",\n name: \"stallApplicationInfo.applicationDeadlineHours\",\n placeholder: \"Application Deadline Hours\",\n },\n {\n helperText: \"Stall Capacity of the Market *\",\n keyboardType: \"number-pad\",\n name: \"stallApplicationInfo.stallCapacity\",\n placeholder: \"Stall Capacity\",\n },\n {\n helperText: \"Payment Due Hours of the Market *\",\n keyboardType: \"number-pad\",\n name: \"stallApplicationInfo.paymentDueHours\",\n placeholder: \"Payment Due Hours\",\n },\n];\n\nexport const stallApplicationInfoPaymentTarget: FormField[] = [\n {\n helperText: \"Account holder name *\",\n name: \"stallApplicationInfo.paymentTarget.accountHolderName\",\n placeholder: \"Account holder name\",\n },\n {\n helperText: \"Account number *\",\n name: \"stallApplicationInfo.paymentTarget.accountNumber\",\n placeholder: \"Account number\",\n },\n {\n helperText: \"Link to payment target *\",\n name: \"stallApplicationInfo.paymentTarget.link\",\n placeholder: \"Link to payment target\",\n },\n];\n\nexport const marketPriceByDateFields: FormField[] = [\n {\n helperText: \"Market Price for this date *\",\n keyboardType: \"number-pad\",\n name: \"marketPrice\",\n placeholder: \"Market Price\",\n },\n];\n\nexport const rejectionPolicyOptions: OptionItem[] = mapArrayToOptions(\n Object.values(EnumRejectionPolicy),\n);\n","import { FormField } from \"../types/global\";\n\nexport const loginFields: FormField[] = [\n {\n helperText: \"Enter your email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n {\n helperText: \"Enter your password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n];\n\nexport const registerFields: FormField[] = [\n {\n helperText: \"Enter your first name\",\n keyboardType: \"default\",\n name: \"firstName\",\n placeholder: \"First Name\",\n },\n {\n helperText: \"Enter your last name\",\n keyboardType: \"default\",\n name: \"lastName\",\n placeholder: \"Last Name\",\n },\n {\n helperText: \"Enter your email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n {\n helperText: \"Enter your password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n];\n\nexport const requestPasswordResetFields: FormField[] = [\n {\n helperText: \"Enter your email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n];\n\nexport const resetPasswordFields: FormField[] = [\n {\n helperText: \"Enter your new password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n {\n helperText: \"Confirm your new password\",\n keyboardType: \"default\",\n name: \"confirmPassword\",\n placeholder: \"Confirm Password\",\n secureTextEntry: true,\n },\n];\n\nexport const validateTokenFields: FormField[] = [\n {\n disabled: true,\n helperText: \"Your email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n {\n helperText: \"Enter the Verification code sent to your email\",\n keyboardType: \"number-pad\",\n name: \"token\",\n placeholder: \"Verification code\",\n },\n];\n","import { FormField } from \"../types/global\";\n\nexport const profileFields: FormField[] = [\n {\n disabled: true,\n helperText: \"Email cannot be changed\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n {\n helperText: \"Enter your first name\",\n keyboardType: \"default\",\n name: \"firstName\",\n placeholder: \"First Name\",\n },\n {\n helperText: \"Enter your last name\",\n keyboardType: \"default\",\n name: \"lastName\",\n placeholder: \"Last Name\",\n },\n {\n helperText: \"Enter your new password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n {\n helperText: \"Confirm your new password\",\n keyboardType: \"default\",\n name: \"confirmPassword\",\n placeholder: \"Confirm Password\",\n secureTextEntry: true,\n },\n];\n","import { Category } from \"../types/global\";\n\nexport const availableCategories: Category[] = [\n {\n id: \"food-drinks\",\n name: \"Food & Drinks\",\n subcategories: [\n {\n id: \"fresh-food-groceries\",\n items: [\n \"Fruits & Vegetables\",\n \"Meat & Seafood\",\n \"Dairy & Eggs\",\n \"Bakery & Desserts\",\n \"Spices & Condiments\",\n \"Packaged & Specialty Foods\",\n \"Other\",\n ],\n name: \"Fresh Food & Groceries\",\n },\n {\n id: \"beverages-specialty-drinks\",\n items: [\n \"Fresh Juices & Smoothies\",\n \"Coffee & Teas\",\n \"Dairy & Plant-Based Drinks\",\n \"Alcoholic Beverages\",\n \"Other\",\n ],\n name: \"Beverages & Specialty Drinks\",\n },\n {\n id: \"prepared-street-foods\",\n items: [\n \"Local & International Specialties\",\n \"Vegan & Vegetarian Options\",\n \"Candies & Sweets\",\n \"BBQ & Grilled Foods\",\n \"Other\",\n ],\n name: \"Prepared & Street Foods\",\n },\n ],\n },\n {\n id: \"handmade-local-products\",\n name: \"Handmade & Local Products\",\n subcategories: [\n {\n id: \"home-lifestyle\",\n items: [\n \"Textiles & Home Decor\",\n \"Pottery & Ceramics\",\n \"Woodwork & Carving\",\n \"Handwoven Baskets & Bags\",\n \"Other\",\n ],\n name: \"Home & Lifestyle\",\n },\n {\n id: \"fashion-accessories\",\n items: [\n \"Leather & Hand-Stitched Items\",\n \"Handcrafted Jewelry & Accessories\",\n \"Traditional & Cultural Clothing\",\n \"Other\",\n ],\n name: \"Fashion & Accessories\",\n },\n {\n id: \"eco-friendly-products\",\n items: [\n \"Recycled Goods\",\n \"Eco-Packaging\",\n \"Sustainable Fashion & Accessories\",\n \"Other\",\n ],\n name: \"Eco-Friendly & Sustainable Products\",\n },\n {\n id: \"arts-crafts\",\n items: [\"Art & Crafts\", \"Traditional & Cultural Items\", \"Other\"],\n name: \"Arts & Crafts\",\n },\n ],\n },\n {\n id: \"clothing-fashion\",\n name: \"Clothing & Fashion\",\n subcategories: [\n {\n id: \"casual-modern-wear\",\n items: [\n \"Modern & Casual Clothes\",\n \"Jackets & Outerwear\",\n \"Baby & Kids Clothing\",\n \"Scarves & Shawls\",\n \"Second-Hand Designer Clothes\",\n \"Underwear\",\n \"Other\",\n ],\n name: \"Casual & Modern Wear\",\n },\n {\n id: \"footwear\",\n items: [\n \"Everyday Shoes\",\n \"Formal Shoes\",\n \"Handmade & Leather Shoes\",\n \"Other\",\n ],\n name: \"Footwear\",\n },\n {\n id: \"bags-accessories\",\n items: [\n \"Bags, Belts, Hats, Sunglasses, Watches\",\n \"Retro and Vintage Accessories\",\n \"Other\",\n ],\n name: \"Bags & Accessories\",\n },\n {\n id: \"luxury-designer-brands\",\n items: [\n \"Luxury Clothing\",\n \"Designer Shoes\",\n \"Exclusive Accessories\",\n \"Other\",\n ],\n name: \"Luxury & Designer Brands\",\n },\n ],\n },\n {\n id: \"home-garden-household\",\n name: \"Home, Garden & Household Goods\",\n subcategories: [\n {\n id: \"home-essentials-kitchenware\",\n items: [\n \"Kitchenware & Dining\",\n \"Sustainable & Eco-Friendly Items\",\n \"Handmade & Artisan Home Goods\",\n \"Other\",\n ],\n name: \"Home Essentials & Kitchenware\",\n },\n {\n id: \"furniture-decor-organization\",\n items: [\n \"Furniture & Home Decor\",\n \"Textiles & Bedding\",\n \"Storage & Organization\",\n \"Other\",\n ],\n name: \"Furniture, Decor & Organization\",\n },\n {\n id: \"outdoor-cleaning-essentials\",\n items: [\n \"Garden, Plants & Decorations\",\n \"DIY & Home Improvement\",\n \"Cleaning Supplies & Household Essentials\",\n \"Other\",\n ],\n name: \"Outdoor & Cleaning Essentials\",\n },\n ],\n },\n {\n id: \"toys-pets\",\n name: \"Toys & Pets\",\n subcategories: [\n {\n id: \"handmade-eco-friendly-kids\",\n items: [\"Handmade & Local Toys\", \"Eco-Friendly Kids Products\", \"Other\"],\n name: \"Handmade & Eco-Friendly Kids Products\",\n },\n {\n id: \"toys-all-ages\",\n items: [\n \"Classic & Interactive Toys\",\n \"Building Blocks & Board Games\",\n \"Balloons & Party Accessories\",\n \"Other\",\n ],\n name: \"Toys for All Ages\",\n },\n {\n id: \"pet-products-animal-goods\",\n items: [\n \"Natural Pet Foods\",\n \"Handmade Pet Accessories\",\n \"Livestock & Farm Supplies\",\n \"Other\",\n ],\n name: \"Pet Products & Animal Goods\",\n },\n ],\n },\n {\n id: \"health-wellness-selfcare\",\n name: \"Health, Wellness & Self-Care\",\n subcategories: [\n {\n id: \"natural-remedies-supplements\",\n items: [\n \"Vitamins, Minerals & Herbal Remedies\",\n \"Superfoods, Probiotics & Detox Teas\",\n \"Other\",\n ],\n name: \"Natural Remedies & Supplements\",\n },\n {\n id: \"organic-natural-products\",\n items: [\n \"Organic Produce, Honey, Nuts & Seeds\",\n \"Gluten-Free & Specialty Items\",\n \"Other\",\n ],\n name: \"Organic & Natural Products\",\n },\n {\n id: \"fitness-sports-nutrition\",\n items: [\"Protein Powders & Bars\", \"Sports & Energy Drinks\", \"Other\"],\n name: \"Fitness & Sports Nutrition\",\n },\n {\n id: \"mental-wellbeing-relaxation\",\n items: [\n \"Yoga, Meditation & Stress-Relief Tools\",\n \"Massage & Muscle Relaxers\",\n \"Motivational Books & Tools\",\n \"Other\",\n ],\n name: \"Mental Wellbeing & Relaxation\",\n },\n ],\n },\n {\n id: \"electronics-technology\",\n name: \"Electronics & Technology\",\n subcategories: [\n {\n id: \"electronic-devices-accessories\",\n items: [\n \"Refurbished & Used Electronics\",\n \"Smartphones & Gadgets\",\n \"Computers & Gaming Gear\",\n \"Photography & Audio Equipment\",\n \"Other\",\n ],\n name: \"Electronic Devices & Accessories\",\n },\n ],\n },\n {\n id: \"antiques-collectibles\",\n name: \"Antiques & Collectibles\",\n subcategories: [\n {\n id: \"antiques-vintage-furniture\",\n items: [\n \"Old Clocks, Paintings & Sculptures\",\n \"Coins, Stamps & Rare Books\",\n \"Antique & Vintage Furniture & Home Decor\",\n \"Other\",\n ],\n name: \"Antiques & Vintage Furniture\",\n },\n {\n id: \"historical-rare-items\",\n items: [\n \"War Relics & Military Medals\",\n \"Limited Edition Artworks & Memorabilia\",\n \"Other\",\n ],\n name: \"Historical & Rare Items\",\n },\n {\n id: \"collectible-toys-games\",\n items: [\n \"Limited Edition Figures & Retro Board Games\",\n \"Pop Culture & Sports Memorabilia\",\n \"Other\",\n ],\n name: \"Collectible Toys & Games\",\n },\n ],\n },\n];\n\nexport const categoryColors: Record<string, string> = {\n \"antiques-collectibles\": \"#DE630A\",\n \"clothing-fashion\": \"#6A08C5\",\n \"electronics-technology\": \"#0303BE\",\n \"food-drinks\": \"#FF004D\",\n \"handmade-local-products\": \"#8E4827\",\n \"health-wellness-selfcare\": \"#7DFB03\",\n \"home-garden-household\": \"#006400\",\n \"toys-pets\": \"#3357FF\",\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAA8B;AAC9B,+BAA8B;AAC9B,2BAA0B;AAC1B,sBAAqB;AACrB,iBAAgB;;;ACJT,IAAK,mBAAL,kBAAKA,sBAAL;AACL,EAAAA,kBAAA,cAAW;AACX,EAAAA,kBAAA,eAAY;AACZ,EAAAA,kBAAA,aAAU;AACV,EAAAA,kBAAA,eAAY;AACZ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OAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,QACA,MAAM;AAAA,MACR;AAAA,MACA;AAAA,QACE,IAAI;AAAA,QACJ,OAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,QACA,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;AAEO,IAAM,iBAAyC;AAAA,EACpD,yBAAyB;AAAA,EACzB,oBAAoB;AAAA,EACpB,0BAA0B;AAAA,EAC1B,eAAe;AAAA,EACf,2BAA2B;AAAA,EAC3B,4BAA4B;AAAA,EAC5B,yBAAyB;AAAA,EACzB,aAAa;AACf;","names":["EnumInviteStatus","EnumRejectionPolicy","EnumPaymentMethod","EnumRegions","customParseFormat","utc","timezone","isSameOrAfter"]}
@@ -1,4 +1,4 @@
1
- import { F as FormField, c as FormDateField, O as OptionItem, C as Category } from '../global-B8kYikwQ.mjs';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, C as Category } from '../global-zKCLfUmA.mjs';
2
2
  import '../enums/index.mjs';
3
3
  import 'react-hook-form';
4
4
 
@@ -37,13 +37,14 @@ declare const packagingOptions: OptionItem[];
37
37
  declare const producedIngOptions: OptionItem[];
38
38
 
39
39
  declare const marketBasicInfoFields: FormField[];
40
- declare const stallApplicationInfo: FormField[];
41
- declare const stallApplicationInfoPaymentTarget: FormField[];
42
40
  declare const marketStartDateFields: FormDateField[];
43
- declare const marketPriceByDateFields: FormField[];
44
41
  declare const marketEndDateFields: FormDateField[];
45
42
  declare const availableTagTypes: string[];
46
43
  declare const tagOptions: OptionItem[];
44
+
45
+ declare const stallApplicationInfo: FormField[];
46
+ declare const stallApplicationInfoPaymentTarget: FormField[];
47
+ declare const marketPriceByDateFields: FormField[];
47
48
  declare const rejectionPolicyOptions: OptionItem[];
48
49
 
49
50
  declare const loginFields: FormField[];
@@ -1,4 +1,4 @@
1
- import { F as FormField, c as FormDateField, O as OptionItem, C as Category } from '../global-B7gB8cvC.js';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, C as Category } from '../global-Cj-4jtsW.js';
2
2
  import '../enums/index.js';
3
3
  import 'react-hook-form';
4
4
 
@@ -37,13 +37,14 @@ declare const packagingOptions: OptionItem[];
37
37
  declare const producedIngOptions: OptionItem[];
38
38
 
39
39
  declare const marketBasicInfoFields: FormField[];
40
- declare const stallApplicationInfo: FormField[];
41
- declare const stallApplicationInfoPaymentTarget: FormField[];
42
40
  declare const marketStartDateFields: FormDateField[];
43
- declare const marketPriceByDateFields: FormField[];
44
41
  declare const marketEndDateFields: FormDateField[];
45
42
  declare const availableTagTypes: string[];
46
43
  declare const tagOptions: OptionItem[];
44
+
45
+ declare const stallApplicationInfo: FormField[];
46
+ declare const stallApplicationInfoPaymentTarget: FormField[];
47
+ declare const marketPriceByDateFields: FormField[];
47
48
  declare const rejectionPolicyOptions: OptionItem[];
48
49
 
49
50
  declare const loginFields: FormField[];
@@ -5,7 +5,7 @@ import {
5
5
  EnumRejectionPolicy
6
6
  } from "../chunk-L2H5WFGC.mjs";
7
7
 
8
- // src/formFields/stallholder/createEditStallholder.ts
8
+ // src/formFields/stallholder/stallholder.ts
9
9
  var stallholderBasicInfoFields = [
10
10
  {
11
11
  helperText: "Business Name of the Stallholder *",
@@ -174,7 +174,7 @@ var producedIngTypes = [
174
174
  var packagingOptions = mapArrayToOptions(packagingTypes);
175
175
  var producedIngOptions = mapArrayToOptions(producedIngTypes);
176
176
 
177
- // src/formFields/market.ts
177
+ // src/formFields/market/market.ts
178
178
  var marketBasicInfoFields = [
179
179
  {
180
180
  helperText: "Name of the Market *",
@@ -198,43 +198,6 @@ var marketBasicInfoFields = [
198
198
  placeholder: "Promo code"
199
199
  }
200
200
  ];
201
- var stallApplicationInfo = [
202
- {
203
- helperText: "Application Deadline of the Market *",
204
- keyboardType: "number-pad",
205
- name: "stallApplicationInfo.applicationDeadlineHours",
206
- placeholder: "Application Deadline Hours"
207
- },
208
- {
209
- helperText: "Stall Capacity of the Market *",
210
- keyboardType: "number-pad",
211
- name: "stallApplicationInfo.stallCapacity",
212
- placeholder: "Stall Capacity"
213
- },
214
- {
215
- helperText: "Payment Due Hours of the Market *",
216
- keyboardType: "number-pad",
217
- name: "stallApplicationInfo.paymentDueHours",
218
- placeholder: "Payment Due Hours"
219
- }
220
- ];
221
- var stallApplicationInfoPaymentTarget = [
222
- {
223
- helperText: "Account holder name *",
224
- name: "stallApplicationInfo.paymentTarget.accountHolderName",
225
- placeholder: "Account holder name"
226
- },
227
- {
228
- helperText: "Account number *",
229
- name: "stallApplicationInfo.paymentTarget.accountNumber",
230
- placeholder: "Account number"
231
- },
232
- {
233
- helperText: "Link to payment target *",
234
- name: "stallApplicationInfo.paymentTarget.link",
235
- placeholder: "Link to payment target"
236
- }
237
- ];
238
201
  var marketStartDateFields = [
239
202
  {
240
203
  dateMode: "date",
@@ -249,14 +212,6 @@ var marketStartDateFields = [
249
212
  placeholder: "Start Time"
250
213
  }
251
214
  ];
252
- var marketPriceByDateFields = [
253
- {
254
- helperText: "Market Price for this date *",
255
- keyboardType: "number-pad",
256
- name: "marketPrice",
257
- placeholder: "Market Price"
258
- }
259
- ];
260
215
  var marketEndDateFields = [
261
216
  {
262
217
  dateMode: "date",
@@ -290,6 +245,53 @@ var availableTagTypes = [
290
245
  "Port Nearby"
291
246
  ];
292
247
  var tagOptions = mapArrayToOptions(availableTagTypes);
248
+
249
+ // src/formFields/market/marketInfo.ts
250
+ var stallApplicationInfo = [
251
+ {
252
+ helperText: "Application Deadline of the Market *",
253
+ keyboardType: "number-pad",
254
+ name: "stallApplicationInfo.applicationDeadlineHours",
255
+ placeholder: "Application Deadline Hours"
256
+ },
257
+ {
258
+ helperText: "Stall Capacity of the Market *",
259
+ keyboardType: "number-pad",
260
+ name: "stallApplicationInfo.stallCapacity",
261
+ placeholder: "Stall Capacity"
262
+ },
263
+ {
264
+ helperText: "Payment Due Hours of the Market *",
265
+ keyboardType: "number-pad",
266
+ name: "stallApplicationInfo.paymentDueHours",
267
+ placeholder: "Payment Due Hours"
268
+ }
269
+ ];
270
+ var stallApplicationInfoPaymentTarget = [
271
+ {
272
+ helperText: "Account holder name *",
273
+ name: "stallApplicationInfo.paymentTarget.accountHolderName",
274
+ placeholder: "Account holder name"
275
+ },
276
+ {
277
+ helperText: "Account number *",
278
+ name: "stallApplicationInfo.paymentTarget.accountNumber",
279
+ placeholder: "Account number"
280
+ },
281
+ {
282
+ helperText: "Link to payment target *",
283
+ name: "stallApplicationInfo.paymentTarget.link",
284
+ placeholder: "Link to payment target"
285
+ }
286
+ ];
287
+ var marketPriceByDateFields = [
288
+ {
289
+ helperText: "Market Price for this date *",
290
+ keyboardType: "number-pad",
291
+ name: "marketPrice",
292
+ placeholder: "Market Price"
293
+ }
294
+ ];
293
295
  var rejectionPolicyOptions = mapArrayToOptions(
294
296
  Object.values(EnumRejectionPolicy)
295
297
  );