@timardex/cluemart-shared 1.5.757 → 1.5.758

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.
@@ -554,815 +554,542 @@ var KNOWN_EVENT_SCHEDULE_STATUSES = /* @__PURE__ */ new Set([
554
554
  "Ended" /* ENDED */
555
555
  ]);
556
556
 
557
- // src/yupSchema/global.ts
558
- var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
559
- var nzbnRegex = /^94\d{11}$/;
560
- var normalizedUrlTransform = () => yup.string().trim().transform(
561
- (value) => typeof value === "string" ? value.toLowerCase() : value
562
- ).transform(
563
- (value) => typeof value === "string" ? normalizeUrl(value) : value
564
- );
565
- var noLeadingZeros = (fieldName, options = {}) => {
566
- return function(value, context) {
567
- const original = context.originalValue;
568
- if (typeof original !== "string") {
569
- return true;
570
- }
571
- if (original === "") {
572
- return true;
573
- }
574
- const regex = options.allowDecimal ? /^0\d+(\.\d+)?$/ : /^0\d+$/;
575
- if (regex.test(original)) {
576
- return context.createError({
577
- message: `${fieldName} must not have leading zeros`
578
- });
579
- }
580
- return true;
581
- };
582
- };
583
- var toOptionalNumber = (originalValue) => {
584
- if (originalValue === "" || originalValue === null || originalValue === void 0) {
585
- return void 0;
586
- }
587
- let parsed;
588
- if (typeof originalValue === "number") {
589
- parsed = originalValue;
590
- } else if (typeof originalValue === "string") {
591
- parsed = Number(originalValue.replace(",", "."));
592
- } else {
593
- parsed = void 0;
557
+ // src/formFields/categories/clothingAndFashion.ts
558
+ var clothingAndFashion = [
559
+ {
560
+ id: "clothing-fashion",
561
+ name: "Clothing & Fashion",
562
+ description: "New, handmade, or upcycled clothing and accessories with a creative twist.",
563
+ subcategories: [
564
+ {
565
+ id: "apparel-babywear",
566
+ name: "Apparel & Babywear",
567
+ items: [
568
+ {
569
+ id: "apparel",
570
+ name: "Apparel",
571
+ description: "Dresses, t-shirts, jumpers, rompers, sets, kidswear."
572
+ },
573
+ {
574
+ id: "baby-toddler-apparel",
575
+ name: "Baby & Toddler Apparel",
576
+ description: "Handmade baby clothes, soft shoes, bibs, hats, knitted sets."
577
+ },
578
+ {
579
+ id: "upcycled-fashion",
580
+ name: "Upcycled Fashion",
581
+ description: "Reworked garments, patchwork pieces, restyled vintage."
582
+ },
583
+ {
584
+ id: "other-wearable-items",
585
+ name: "Other wearable items",
586
+ description: "Unique clothing not listed above."
587
+ }
588
+ ]
589
+ },
590
+ {
591
+ id: "fashion-accessories",
592
+ name: "Fashion Accessories",
593
+ items: [
594
+ {
595
+ id: "accessories",
596
+ name: "Accessories",
597
+ description: "Scarves, belts, gloves, hats, headbands, caps."
598
+ },
599
+ {
600
+ id: "shoes",
601
+ name: "Shoes",
602
+ description: "Handmade shoes, baby booties, sandals, slippers."
603
+ },
604
+ {
605
+ id: "bags-wallets",
606
+ name: "Bags & Wallets",
607
+ description: "Leather bags, fabric purses, wallets, backpacks, totes."
608
+ },
609
+ {
610
+ id: "other-accessories",
611
+ name: "Other accessories",
612
+ description: "Brooches, pins, or hybrid functional items."
613
+ }
614
+ ]
615
+ },
616
+ {
617
+ id: "jewelry-creative-wearables",
618
+ name: "Jewelry & Creative Wearables",
619
+ items: [
620
+ {
621
+ id: "jewelry",
622
+ name: "Jewelry",
623
+ description: "Necklaces, earrings, bracelets, rings, anklets."
624
+ },
625
+ {
626
+ id: "other-creative-wearables",
627
+ name: "Other creative wearables",
628
+ description: "Wearable art, statement pieces, bold handmade designs."
629
+ }
630
+ ]
631
+ },
632
+ {
633
+ id: "traditional-cultural-clothing-accessories",
634
+ name: "Traditional & Cultural Clothing and Accessories",
635
+ items: [
636
+ {
637
+ id: "traditional-clothing-accessories",
638
+ name: "Traditional Clothing & Accessories ",
639
+ description: "raditional clothing, jewellery, accessories and footwear from around the world, including both handmade and non-handmade items."
640
+ },
641
+ {
642
+ id: "other-traditional-cultural-items",
643
+ name: "Other Traditional & Cultural Items",
644
+ description: "traditional or culturally inspired wearables and decorative cultural pieces such as plates, table linens and similar items."
645
+ }
646
+ ]
647
+ }
648
+ ]
594
649
  }
595
- return Number.isNaN(parsed) ? void 0 : parsed;
596
- };
597
- import_dayjs3.default.extend(import_isSameOrAfter2.default);
598
- import_dayjs3.default.extend(import_customParseFormat2.default);
599
- var emailRequiredSchema = yup.string().email("Invalid email address").required("Email is required").label("Email").transform(
600
- (value) => typeof value === "string" ? value.trim().toLowerCase() : value
601
- );
602
- var emailOptionalSchema = yup.string().nullable().notRequired().transform(
603
- (value) => typeof value === "string" ? value.trim().toLowerCase() : value
604
- ).test(
605
- "is-valid-email",
606
- "Invalid email address",
607
- (value) => !value || yup.string().email().isValidSync(value)
608
- ).label("Email");
609
- var mobileRegex = /^02\d{7,9}$/;
610
- var landlineRegex = /^0[34679]\d{7}$/;
611
- var mobilePhoneSchema = yup.string().label("Mobile Phone").nullable().notRequired().test(
612
- "mobile-phone",
613
- "Mobile must start with 02 and be 9\u201311 digits",
614
- (value) => !value || mobileRegex.test(value)
615
- // skip empty values
616
- );
617
- var landlinePhoneSchema = yup.string().label("Landline Phone").nullable().notRequired().test(
618
- "landline-phone",
619
- "Landline must start with 03, 04, 06, 07, or 09 (not 090) and have 7 digits after area code",
620
- (value) => !value || landlineRegex.test(value)
621
- // skip empty values
622
- );
623
- var contactDetailsSchema = yup.object({
624
- email: emailOptionalSchema,
625
- mobilePhone: mobilePhoneSchema,
626
- landlinePhone: landlinePhoneSchema
627
- }).nullable().default(void 0);
628
- var endDateNotInPastTest = yup.string().test("not-in-past", "End date cannot be in the past", (value) => {
629
- const now = (0, import_dayjs3.default)();
630
- return value ? (0, import_dayjs3.default)(value, dateFormat, true).isSameOrAfter(now, "day") : false;
631
- });
632
- var startDateNotInPastTest = yup.string().test("not-in-past", "Start date cannot be in the past", (value) => {
633
- const now = (0, import_dayjs3.default)();
634
- return value ? (0, import_dayjs3.default)(value, dateFormat, true).isSameOrAfter(now, "day") : false;
635
- });
636
- var endDateAfterStartDateTest = yup.string().test(
637
- "end-after-start",
638
- "End date cannot be before start date",
639
- function(value) {
640
- const { startDate } = this.parent;
641
- if (!startDate || !value) return false;
642
- return (0, import_dayjs3.default)(value, dateFormat, true).isSameOrAfter(
643
- (0, import_dayjs3.default)(startDate, dateFormat, true),
644
- "day"
645
- );
646
- }
647
- );
648
- var endTimeMustBeAfterStartTimeTest = yup.string().test(
649
- "valid-end-time",
650
- "End time must be after start time",
651
- function(value) {
652
- const { startDate, endDate, startTime } = this.parent;
653
- if (!startDate || !endDate || !startTime || !value) return false;
654
- const startDateTime = (0, import_dayjs3.default)(
655
- `${startDate} ${startTime}`,
656
- `${dateFormat} ${timeFormat}`,
657
- true
658
- );
659
- const endDateTime = (0, import_dayjs3.default)(
660
- `${endDate} ${value}`,
661
- `${dateFormat} ${timeFormat}`,
662
- true
663
- );
664
- return endDateTime.isAfter(startDateTime);
665
- }
666
- );
667
- var startTimeCannotBeInPastTest = yup.string().test(
668
- "valid-start-time",
669
- "Start time cannot be in the past",
670
- function(value) {
671
- const now = (0, import_dayjs3.default)();
672
- const { startDate } = this.parent;
673
- if (!startDate || !value) return false;
674
- const startDateTime = (0, import_dayjs3.default)(
675
- `${startDate} ${value}`,
676
- `${dateFormat} ${timeFormat}`,
677
- true
678
- );
679
- return startDateTime.isSameOrAfter(now);
680
- }
681
- );
682
- var dateTimeSchema = yup.object().shape({
683
- dateStatus: yup.mixed().oneOf(Object.values(EnumEventDateStatus)).required("Date status is required"),
684
- endDate: yup.string().label("End Date").concat(endDateNotInPastTest).concat(endDateAfterStartDateTest).required("End date is required"),
685
- endTime: yup.string().label("End Time").concat(endTimeMustBeAfterStartTimeTest).required("End time is required"),
686
- startDate: yup.string().label("Start Date").concat(startDateNotInPastTest).required("Start date is required"),
687
- startTime: yup.string().label("Start Time").concat(startTimeCannotBeInPastTest).required("Start time is required")
688
- });
689
- var stallTypesSchema = yup.object({
690
- label: yup.string().trim().label("Stall Type").required("Stall type is required"),
691
- price: yup.number().transform((_, originalValue) => toOptionalNumber(originalValue)).label("Stall Price").min(0.1, "Stall price must be at least 0.1").required("Stall price is required").test(
692
- "no-leading-zeros",
693
- "",
694
- noLeadingZeros("Stall price", { allowDecimal: true })
695
- ),
696
- stallCapacity: yup.number().transform((_, originalValue) => toOptionalNumber(originalValue)).label("Stall Capacity").typeError("Stall capacity must be a number").min(0, "Stall capacity cannot be negative").integer("Stall capacity must be a whole number").required("Stall capacity is required").test("no-leading-zeros", "", noLeadingZeros("Stall capacity"))
697
- });
698
- var dateTimeWithPriceSchema = dateTimeSchema.shape({
699
- stallTypes: yup.array().of(stallTypesSchema).min(1, "At least one stall type is required").required("Stall types are required")
700
- });
701
- var locationSchema = yup.object().shape({
702
- city: yup.string().label("City").required("City is required"),
703
- country: yup.string().label("Country").required("Country is required"),
704
- fullAddress: yup.string().label("Address").required("Address is required"),
705
- geo: yup.object().shape({
706
- coordinates: yup.array().of(yup.number().required("Coordinates must be numbers")).length(
707
- 2,
708
- "Coordinates must contain exactly two numbers (longitude, latitude)"
709
- ).required("Coordinates are required"),
710
- type: yup.string().oneOf(["Point"], "Type must be 'Point'").default("Point").required("Type is required")
711
- }),
712
- latitude: yup.number().label("Latitude").required("Latitude is required"),
713
- longitude: yup.number().label("Longitude").required("Longitude is required"),
714
- region: yup.string().label("Region").required("Region is required")
715
- });
716
- var passwordSchema = yup.string().trim().label("Password").min(8, "Password must be at least 8 characters long").required("Password is required");
717
- var socialMediaSchema = yup.object({
718
- name: yup.mixed().oneOf(Object.values(EnumSocialMedia)).label("Social Media Name").optional(),
719
- link: yup.string().when("name", {
720
- is: (name) => !!name,
721
- // If name has a value
722
- then: () => normalizedUrlTransform().required("Link is required when name is set").url("Link must be a valid URL").label("Social Media Link"),
723
- otherwise: (schema) => schema.notRequired()
724
- })
725
- });
726
- var globalResourceSchema = yup.object().shape({
727
- active: yup.boolean().required("Active is required"),
728
- cover: yup.object({
729
- source: yup.string().label("Cover").required("Cover Image is required"),
730
- title: yup.string().label("Cover Title").required("Cover Title is required")
731
- }),
732
- contactDetails: contactDetailsSchema,
733
- description: yup.string().label("Description").trim().min(50).required("Description is required"),
734
- name: yup.string().label("Name").trim().min(3).required("Name is required"),
735
- region: yup.string().label("Region").required("Region is required"),
736
- socialMedia: yup.array().of(socialMediaSchema).nullable().default(null),
737
- associates: yup.array().of(
738
- yup.object().shape({
739
- email: emailRequiredSchema,
740
- resourceId: yup.string().label("Resource ID").required("Resource ID is required"),
741
- resourceType: yup.mixed().oneOf(Object.values(EnumResourceType)).label("Resource Type").required("Resource Type is required"),
742
- licence: yup.object({
743
- expiryDate: yup.date().required("Expiry Date is required"),
744
- issuedDate: yup.date().required("Issued Date is required"),
745
- licenceType: yup.mixed().oneOf(Object.values(EnumUserLicence)).label("Licence Type").required("Licence Type is required")
746
- })
747
- })
748
- ).nullable().default(null)
749
- });
750
- var categorySchema = yup.array().of(
751
- yup.object().shape({
752
- id: yup.string().required("Category id is required"),
753
- name: yup.string().required("Category name is required"),
754
- subcategories: yup.array().of(
755
- yup.object().shape({
756
- id: yup.string().defined(),
757
- items: yup.array().of(
758
- yup.object().shape({
759
- id: yup.string().defined(),
760
- name: yup.string().defined()
761
- })
762
- ).nullable(),
763
- name: yup.string().defined()
764
- })
765
- ).min(1, "At least one subcategory is required").required("Subcategories are required")
766
- })
767
- );
768
-
769
- // src/yupSchema/event.ts
770
- var yup2 = __toESM(require("yup"));
771
- var eventSchema = globalResourceSchema.shape({
772
- dateTime: yup2.array().of(dateTimeSchema).min(1, "At least one Event date required").max(50, "You can only add up to 50 Event dates").required("DateTime is required").test(
773
- "unique-start-date-time",
774
- "Start Date and Start Time must be unique",
775
- function(value) {
776
- if (!value) return true;
777
- const seen = /* @__PURE__ */ new Set();
778
- for (const item of value) {
779
- if (!item.startDate || !item.startTime) continue;
780
- const key = `${item.startDate}_${item.startTime}`;
781
- if (seen.has(key)) {
782
- return false;
783
- }
784
- seen.add(key);
785
- }
786
- return true;
787
- }
788
- ),
789
- eventType: yup2.mixed().oneOf(Object.values(EnumEventType), "Please select a valid Event type").required("Please select an Event type"),
790
- location: locationSchema,
791
- nzbn: yup2.string().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
792
- rainOrShine: yup2.boolean().label("Rain or Shine").required("Please specify if the event is rain or shine"),
793
- tags: yup2.array().of(yup2.string().defined()).min(1, "Tags are required").required("Tags are required")
794
- });
795
- var paymentInfoSchema = yup2.object({
796
- paymentMethod: yup2.mixed().oneOf(
797
- Object.values(EnumPaymentMethod),
798
- "Please select a valid Payment method"
799
- ).required("Please select a Payment method"),
800
- accountHolderName: yup2.string().when("paymentMethod", {
801
- is: "bank_transfer" /* BANK_TRANSFER */,
802
- then: (schema) => schema.required("Account holder name is required for bank transfer").trim(),
803
- otherwise: (schema) => schema.notRequired()
804
- }),
805
- accountNumber: yup2.string().when("paymentMethod", {
806
- is: "bank_transfer" /* BANK_TRANSFER */,
807
- then: (schema) => schema.required("Account number is required for bank transfer").matches(
808
- nzBankAccountRegex,
809
- "Account number must be in format: XX-XXXX-XXXXXXX-XX"
810
- ).trim(),
811
- otherwise: (schema) => schema.notRequired()
812
- }),
813
- link: yup2.string().when("paymentMethod", {
814
- is: (val) => val === "paypal" /* PAYPAL */ || val === "stripe" /* STRIPE */,
815
- then: () => normalizedUrlTransform().url("Link must be a valid URL").required("Link is required for PayPal/Stripe"),
816
- otherwise: (schema) => schema.notRequired()
817
- })
818
- });
819
- var eventInfoSchema = yup2.object().shape({
820
- applicationDeadlineHours: yup2.number().label("Application Deadline Hours").nullable().transform((value, originalValue) => originalValue === "" ? null : value).typeError("Application deadline hours must be a number").min(1, "Application deadline hours must be at least 1").required("Application deadline hours is required").test("no-leading-zeros", "", noLeadingZeros("Application deadline hours")),
821
- dateTime: yup2.array().of(dateTimeWithPriceSchema).required("DateTime is required"),
822
- eventId: yup2.string().trim().required("Event ID is required"),
823
- packInTime: yup2.number().transform((_, originalValue) => toOptionalNumber(originalValue)).label("Pack In Time").typeError("Pack in time must be a number").min(1, "Pack in time must be at least 1").required("Pack in time is required").test("no-leading-zeros", "", noLeadingZeros("Pack in time")),
824
- paymentDueHours: yup2.number().transform((_, originalValue) => toOptionalNumber(originalValue)).label("Payment Due Hours").typeError("Payment due hours must be a number").min(1, "Payment due hours must be at least 1").required("Payment due hours is required").test("no-leading-zeros", "", noLeadingZeros("Payment due hours")).test(
825
- "payment-before-deadline",
826
- "Payment due hours must be less than application deadline hours",
827
- function(value) {
828
- const { applicationDeadlineHours } = this.parent;
829
- return value < applicationDeadlineHours;
830
- }
831
- ),
832
- paymentInfo: yup2.array().of(paymentInfoSchema).min(1, "At least one payment method is required").required("Payment info is required"),
833
- refundPolicy: yup2.array().of(
834
- yup2.object({
835
- category: yup2.mixed().required("Category is required"),
836
- label: yup2.string().required("Label is required"),
837
- value: yup2.boolean().required("Value is required")
838
- })
839
- ).min(1, "At least one refund policy item is required").test(
840
- "at-least-one-true",
841
- "At least one refund policy option must be selected",
842
- (value) => {
843
- if (!value) return false;
844
- return value.some((item) => item.value === true);
845
- }
846
- ).required("Refund policy is required")
847
- });
848
-
849
- // src/yupSchema/vendor.ts
850
- var yup3 = __toESM(require("yup"));
851
- var vendorMenuSchema = yup3.object({
852
- description: yup3.string().nullable().optional(),
853
- name: yup3.string().nullable().required("Product name is required"),
854
- price: yup3.number().transform((v, o) => o === "" ? null : v).min(1, "Product price must be greater than 0").required("Product price is required"),
855
- priceUnit: yup3.string().required("Product unit is required")
856
- });
857
- var vendorSchema = globalResourceSchema.shape({
858
- categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
859
- foodTruck: yup3.boolean().label("Food Truck").required("Please specify if the vendor is a food truck"),
860
- products: yup3.object().shape({
861
- active: yup3.boolean().nullable().optional(),
862
- productsList: yup3.array().of(vendorMenuSchema).nullable().optional()
863
- }).nullable().optional(),
864
- vendorType: yup3.mixed().oneOf(Object.values(EnumVendorType)).required("Please select a Vendor type")
865
- });
866
- var unregisteredVendorSchema = yup3.object().shape({
867
- categoryIds: yup3.array().of(yup3.string().defined()).min(1, "Category list must contain at least one item").required("Categories are required"),
868
- dateTime: yup3.array().of(dateTimeSchema).min(1, "DateTime list must contain at least one item").required("DateTime is required"),
869
- email: emailOptionalSchema,
870
- inviterId: yup3.string().required("Inviter ID is required"),
871
- name: yup3.string().label("Stallholder Name").trim().min(3, "Name must be at least 3 characters").required("Name is required"),
872
- region: yup3.string().label("Region").required("Region is required")
873
- });
874
- var vendorInfoSchema = yup3.object().shape({
875
- product: yup3.object().shape({
876
- foodFlavors: yup3.array().of(
877
- yup3.mixed().oneOf(Object.values(EnumFoodFlavor), "Invalid flavor selected").required("Flavor is required")
878
- ).min(1, "Food flavors list must contain at least one item").required("Food flavors are required"),
879
- packaging: yup3.array().of(yup3.string().defined()).min(1, "Packaging list must contain at least one item").required("Packaging is required"),
880
- priceRange: yup3.object().shape({
881
- max: yup3.string().required("Max price is required").test(
882
- "is-number",
883
- "Max price must be a valid number",
884
- (value) => value !== void 0 && value !== "" && !isNaN(Number(value))
885
- ).test(
886
- "is-greater",
887
- "Max price must be greater than or equal to Min price",
888
- function(max) {
889
- const { min } = this.parent;
890
- if (!max || !min) return true;
891
- const maxNum = Number(max);
892
- const minNum = Number(min);
893
- if (isNaN(maxNum) || isNaN(minNum)) return true;
894
- return maxNum >= minNum;
895
- }
896
- ),
897
- min: yup3.string().required("Min price is required").test(
898
- "is-number",
899
- "Min price must be a valid number",
900
- (value) => value !== void 0 && value !== "" && !isNaN(Number(value))
901
- )
902
- }),
903
- producedIn: yup3.array().of(yup3.string().defined()).min(1, "Produced in list must contain at least one item").required("Produced in is required")
904
- }),
905
- requirements: yup3.object().shape({
906
- electricity: yup3.object().shape({
907
- details: yup3.string().trim().test(
908
- "details-required",
909
- "Please add electricity details",
910
- function(value) {
911
- return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
912
- }
913
- ).nullable(),
914
- isRequired: yup3.boolean().required("Electricity requirement is required")
915
- }),
916
- gazebo: yup3.object().shape({
917
- details: yup3.string().trim().test(
918
- "details-required",
919
- "Please add gazebo details",
920
- function(value) {
921
- return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
922
- }
923
- ).nullable(),
924
- isRequired: yup3.boolean().required("Gazebo requirement is required")
925
- }),
926
- table: yup3.object().shape({
927
- details: yup3.string().trim().test(
928
- "details-required",
929
- "Please add table details",
930
- function(value) {
931
- return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
932
- }
933
- ).nullable(),
934
- isRequired: yup3.boolean().required("Table requirement is required")
935
- })
936
- }).optional(),
937
- stallInfo: yup3.object().shape({
938
- size: yup3.object().shape({
939
- depth: yup3.string().required("Depth is required").test(
940
- "is-number",
941
- "Depth must be a valid number",
942
- (value) => value !== void 0 && value !== "" && !isNaN(Number(value))
943
- ).test(
944
- "is-positive",
945
- "Depth must be greater than 0",
946
- (value) => value !== void 0 && value !== "" && Number(value) > 0
947
- ),
948
- width: yup3.string().required("Width is required").test(
949
- "is-number",
950
- "Width must be a valid number",
951
- (value) => value !== void 0 && value !== "" && !isNaN(Number(value))
952
- ).test(
953
- "is-positive",
954
- "Width must be greater than 0",
955
- (value) => value !== void 0 && value !== "" && Number(value) > 0
956
- )
957
- })
958
- }),
959
- vendorId: yup3.string().trim().required("Vendor ID is required")
960
- });
961
-
962
- // src/yupSchema/user.ts
963
- var yup4 = __toESM(require("yup"));
964
- var userSchema = yup4.object().shape({
965
- active: yup4.boolean().required("Active is required"),
966
- email: emailRequiredSchema,
967
- firstName: yup4.string().label("First Name").trim().required("First name is required"),
968
- lastName: yup4.string().label("Last Name").trim().required("Last name is required"),
969
- isTester: yup4.boolean().required("Tester status is required"),
970
- password: yup4.string().nullable().trim().label("Password").min(8, "Password must be at least 8 characters long").notRequired(),
971
- preferredRegion: yup4.string().label("Preferred Region").required("Preferred region is required"),
972
- confirmPassword: yup4.string().nullable().trim().label("Confirm Password").when("password", {
973
- is: (val) => !!val,
974
- // only necessary if password typed
975
- then: (schema) => schema.required("Confirm Password is required").oneOf([yup4.ref("password")], "Passwords must match"),
976
- otherwise: (schema) => schema.notRequired()
977
- }),
978
- role: yup4.mixed().oneOf(Object.values(EnumUserRole)).required("Role is required")
979
- });
980
-
981
- // src/yupSchema/auth.ts
982
- var yup5 = __toESM(require("yup"));
983
- var loginSchema = yup5.object().shape({
984
- email: emailRequiredSchema,
985
- password: passwordSchema
986
- });
987
- var registerSchema = yup5.object().shape({
988
- email: emailRequiredSchema,
989
- firstName: yup5.string().label("First Name").required("First Name is required"),
990
- lastName: yup5.string().label("Last Name").required("Last Name is required"),
991
- password: passwordSchema,
992
- preferredRegion: yup5.string().label("Preferred Region").required("Preferred Region is required")
993
- });
994
- var requestPasswordResetSchema = yup5.object().shape({
995
- email: emailRequiredSchema
996
- });
997
- var resetPasswordSchema = yup5.object().shape({
998
- email: emailRequiredSchema,
999
- password: passwordSchema,
1000
- // eslint-disable-next-line sort-keys
1001
- confirmPassword: yup5.string().oneOf([yup5.ref("password")], "Passwords must match").required("Confirm Password is required")
1002
- });
1003
- var validateVerificationTokenSchema = yup5.object().shape({
1004
- email: emailRequiredSchema,
1005
- verificationToken: yup5.string().required("Verification code is required").matches(/^\d{6}$/, "Verification code must be exactly 6 digits")
1006
- });
1007
-
1008
- // src/yupSchema/ad.ts
1009
- var yup6 = __toESM(require("yup"));
1010
- var adResourceSchema = yup6.object({
1011
- adDescription: yup6.string().trim().required("Ad description is required").max(150, "Ad description must be at most 150 characters"),
1012
- adImage: yup6.string().required("Ad image is required"),
1013
- adStyle: yup6.mixed().oneOf(Object.values(EnumAdStyle), "Please select a valid ad style").required("Ad style is required"),
1014
- adTitle: yup6.string().trim().required("Ad title is required").max(30, "Ad title must be at most 30 characters"),
1015
- adType: yup6.mixed().oneOf(Object.values(EnumAdType), "Please select a valid ad type").required("Ad type is required"),
1016
- resourceId: yup6.string().required("Resource ID is required"),
1017
- resourceName: yup6.string().required("Resource name is required"),
1018
- resourceRegion: yup6.string().required("Resource region is required"),
1019
- resourceType: yup6.mixed().oneOf(Object.values(EnumResourceType), "Please select Event or Vendor").required("Resource type is required")
1020
- });
1021
- var adSchema = yup6.object().shape({
1022
- active: yup6.boolean().required("Active status is required"),
1023
- end: yup6.date().required("End date is required").test("is-future-date", "End date must be in the future", (value) => {
1024
- if (!value) return false;
1025
- const endDate = new Date(value);
1026
- const now = /* @__PURE__ */ new Date();
1027
- return endDate > now;
1028
- }).when("start", {
1029
- is: (val) => val && val.length > 0,
1030
- then: (schema) => schema.test(
1031
- "is-after-start",
1032
- "End date must be after start date",
1033
- function(value) {
1034
- const { start } = this.parent;
1035
- if (!value || !start) return false;
1036
- return new Date(value) > new Date(start);
1037
- }
1038
- )
1039
- }),
1040
- resource: adResourceSchema.required("Resource information is required"),
1041
- showOn: yup6.array().of(yup6.mixed().oneOf(Object.values(EnumAdShowOn)).required()).min(1, "At least one display location is required").required("Display location is required"),
1042
- status: yup6.mixed().oneOf(Object.values(EnumAdStatus)).required("Ad status is required"),
1043
- start: yup6.date().when("status", {
1044
- is: (status) => status !== "Active" /* ACTIVE */,
1045
- then: () => yup6.date().required("Start date is required").test("is-future-date", "Start date must be in the future", (value) => {
1046
- if (!value) return false;
1047
- return value > /* @__PURE__ */ new Date();
1048
- }),
1049
- // Keep `start` optional (not null) when ACTIVE to match TS type `start?: Date`.
1050
- otherwise: () => yup6.date().notRequired()
1051
- }),
1052
- targetRegion: yup6.array().of(yup6.string().required()).min(1, "At least one target region is required").required("Target region is required")
1053
- });
1054
-
1055
- // src/yupSchema/partner.ts
1056
- var yup7 = __toESM(require("yup"));
1057
- var partnerSchema = globalResourceSchema.shape({
1058
- location: locationSchema,
1059
- nzbn: yup7.string().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
1060
- partnerType: yup7.mixed().oneOf(Object.values(EnumPartnerType), "Please select a valid Partner type").required("Please select a Partner type")
1061
- });
1062
-
1063
- // src/yupSchema/post.ts
1064
- var yup8 = __toESM(require("yup"));
1065
-
1066
- // src/formFields/vendor/vendorInfo.ts
1067
- var packagingTypes = [
1068
- "Biodegradable",
1069
- "Compostable",
1070
- "Fabric",
1071
- "Glass",
1072
- "Other",
1073
- "Paper",
1074
- "Plastic",
1075
- "Recyclable",
1076
- "Reusable",
1077
- "Single-use",
1078
- "Wood"
1079
- ];
1080
- var producedIngTypes = [
1081
- "Commercial Kitchen",
1082
- "Home Premises",
1083
- "Factory",
1084
- "Farm",
1085
- "Other"
1086
- ];
1087
- var packagingOptions = mapArrayToOptions(packagingTypes);
1088
- var producedIngOptions = mapArrayToOptions(producedIngTypes);
1089
- var foodFlavourOptions = Object.values(
1090
- EnumFoodFlavor
1091
- ).map((flavour) => ({
1092
- label: flavour.replaceAll("_", " "),
1093
- value: flavour
1094
- }));
1095
-
1096
- // src/formFields/event/event.ts
1097
- var availableTagTypes = [
1098
- { icon: "human-male-female-child", label: "All Ages" },
1099
- { icon: "weather-sunny", label: "Day Market" },
1100
- { icon: "account-child", label: "Family Friendly" },
1101
- { icon: "ticket-percent", label: "Free Entry" },
1102
- { icon: "home-city", label: "Indoor Market" },
1103
- { icon: "music", label: "Live Music" },
1104
- { icon: "bus", label: "Near Bustop" },
1105
- { icon: "slide", label: "Near Playground" },
1106
- { icon: "train", label: "Near Train Station" },
1107
- { icon: "weather-night", label: "Night Market" },
1108
- { icon: "tree", label: "Outdoor Market" },
1109
- { icon: "car", label: "Parking Available" },
1110
- { icon: "dog", label: "Pet Friendly" },
1111
- { icon: "ship-wheel", label: "Port Nearby" },
1112
- { icon: "toilet", label: "Toilet Available" },
1113
- { icon: "wheelchair-accessibility", label: "Wheelchair Accessible" }
1114
- ];
1115
- var tagOptions = availableTagTypes.map((tag) => ({
1116
- label: tag.label,
1117
- value: tag.label
1118
- }));
1119
-
1120
- // src/formFields/event/eventInfo.ts
1121
- var stallTypes = [
1122
- "1.8m table only",
1123
- "2x2m mini stall",
1124
- "3x3m tent site",
1125
- "Corner stall",
1126
- "Craft stall with power",
1127
- "Craft stall without power",
1128
- "Double stall (6x3m)",
1129
- "Food truck site",
1130
- "Food vendor with power",
1131
- "Food vendor without power",
1132
- "Inside hall stall",
1133
- "Non-profit/community stall",
1134
- "Outdoor open area",
1135
- "Shared table space",
1136
- "Wall-based vendor",
1137
- "Workshop/seating area"
1138
- ];
1139
- var stallTypeOptions = stallTypes.map((type) => ({
1140
- label: type,
1141
- price: 0,
1142
- stallCapacity: 0
1143
- }));
1144
-
1145
- // src/formFields/global.ts
1146
- var emailField = {
1147
- helperText: "Enter email address",
1148
- keyboardType: "email-address",
1149
- name: "email",
1150
- placeholder: "Email"
1151
- };
1152
- var companyContactFields = [
1153
- {
1154
- ...emailField,
1155
- name: "contactDetails.email"
1156
- },
1157
- {
1158
- helperText: "Enter your mobile phone number",
1159
- keyboardType: "phone-pad",
1160
- name: "contactDetails.mobilePhone",
1161
- placeholder: "Mobile Phone Number"
1162
- },
1163
- {
1164
- helperText: "Enter your landline phone number",
1165
- keyboardType: "phone-pad",
1166
- name: "contactDetails.landlinePhone",
1167
- placeholder: "Landline Phone Number"
1168
- }
1169
- ];
1170
-
1171
- // src/formFields/auth.ts
1172
- var loginFields = [
1173
- {
1174
- ...emailField,
1175
- required: true
1176
- },
1177
- {
1178
- helperText: "Enter password",
1179
- keyboardType: "default",
1180
- name: "password",
1181
- placeholder: "Password",
1182
- required: true,
1183
- secureTextEntry: true
1184
- }
1185
- ];
1186
- var registerFields = [
1187
- {
1188
- helperText: "Enter first name",
1189
- keyboardType: "default",
1190
- name: "firstName",
1191
- placeholder: "First Name",
1192
- required: true
1193
- },
1194
- {
1195
- helperText: "Enter last name",
1196
- keyboardType: "default",
1197
- name: "lastName",
1198
- placeholder: "Last Name",
1199
- required: true
1200
- },
1201
- {
1202
- ...emailField,
1203
- required: true
1204
- },
1205
- {
1206
- helperText: "Enter password",
1207
- keyboardType: "default",
1208
- name: "password",
1209
- placeholder: "Password",
1210
- required: true,
1211
- secureTextEntry: true
1212
- },
1213
- {
1214
- helperText: "Promotional code (optional)",
1215
- keyboardType: "default",
1216
- name: "promoCode",
1217
- placeholder: "Promotional Code",
1218
- required: false
1219
- }
1220
- ];
1221
- var requestPasswordResetFields = [
1222
- {
1223
- ...emailField,
1224
- helperText: "Enter email address to reset your password",
1225
- required: true
1226
- }
1227
- ];
1228
- var validateVerificationTokenFields = [
1229
- {
1230
- ...emailField,
1231
- disabled: true,
1232
- helperText: "Your email address"
1233
- },
1234
- {
1235
- helperText: "Enter the Verification code sent to you by email",
1236
- keyboardType: "number-pad",
1237
- name: "verificationToken",
1238
- placeholder: "Verification code",
1239
- required: true
650
+ ];
651
+
652
+ // src/formFields/categories/electronicsAndTechnology.ts
653
+ var electronicsAndTechnology = [
654
+ {
655
+ id: "electronics-technology",
656
+ name: "Electronics & Technology",
657
+ description: "New, second-hand, or handmade tech and digital items commonly found at markets.",
658
+ subcategories: [
659
+ {
660
+ id: "mobile-everyday-tech",
661
+ name: "Mobile & Everyday Tech",
662
+ items: [
663
+ {
664
+ id: "mobile-phone-accessories",
665
+ name: "Mobile & Phone Accessories",
666
+ description: "Phone cases, holders, screen protectors, charging cables, power banks, grips."
667
+ },
668
+ {
669
+ id: "other-mobile-gadgets",
670
+ name: "Other mobile gadgets",
671
+ description: "Stands, styluses, SIM tools, cleaning kits, wallet accessories."
672
+ }
673
+ ]
674
+ },
675
+ {
676
+ id: "audio-music-creative-tech",
677
+ name: "Audio, Music & Creative Tech",
678
+ items: [
679
+ {
680
+ id: "audio-music-tech",
681
+ name: "Audio & Music Tech",
682
+ description: "Portable speakers, headphones, mini radios, Bluetooth adapters, sound accessories."
683
+ },
684
+ {
685
+ id: "instruments-music-gear",
686
+ name: "Instruments & Music Gear",
687
+ description: "Small electronic instruments, DIY synth kits, drum pads, loop machines."
688
+ },
689
+ {
690
+ id: "recording-creative-devices",
691
+ name: "Recording & Creative Devices",
692
+ description: "USB microphones, podcast tools, voice recorders, mobile lighting, content tools."
693
+ },
694
+ {
695
+ id: "other-audio-music-items",
696
+ name: "Other audio or music-related items",
697
+ description: "Musical gadgets or creative gear not listed above."
698
+ }
699
+ ]
700
+ },
701
+ {
702
+ id: "diy-gadgets-secondhand-finds",
703
+ name: "DIY, Gadgets & Second-Hand Finds",
704
+ items: [
705
+ {
706
+ id: "diy-electronics-tools",
707
+ name: "DIY Electronics & Tools",
708
+ description: "LED lights, USB gadgets, circuit boards, repair kits, tech-themed toys, novelty items."
709
+ },
710
+ {
711
+ id: "other-tech-finds",
712
+ name: "Other Tech Finds",
713
+ description: "Used electronics, smart gadgets, wearable tech, calculators, tablet stands, e-waste upcycles."
714
+ },
715
+ {
716
+ id: "other-technology-innovation-items",
717
+ name: "Other technology or innovation-related items",
718
+ description: "Anything not covered but clearly tech-driven."
719
+ }
720
+ ]
721
+ }
722
+ ]
1240
723
  }
1241
724
  ];
1242
725
 
1243
- // src/formFields/user.ts
1244
- var profileFields = [
1245
- {
1246
- ...emailField,
1247
- disabled: true,
1248
- helperText: "Email cannot be changed"
1249
- },
1250
- {
1251
- helperText: "Enter first name",
1252
- keyboardType: "default",
1253
- name: "firstName",
1254
- placeholder: "First Name"
1255
- },
1256
- {
1257
- helperText: "Enter last name",
1258
- keyboardType: "default",
1259
- name: "lastName",
1260
- placeholder: "Last Name"
1261
- },
1262
- {
1263
- helperText: "Enter your new password",
1264
- keyboardType: "default",
1265
- name: "password",
1266
- placeholder: "Password",
1267
- secureTextEntry: true
1268
- },
726
+ // src/formFields/categories/foodAndBeverages.ts
727
+ var foodAndBeverages = [
1269
728
  {
1270
- helperText: "Confirm your new password",
1271
- keyboardType: "default",
1272
- name: "confirmPassword",
1273
- placeholder: "Confirm Password",
1274
- secureTextEntry: true
729
+ id: "food-beverages",
730
+ name: "Food & Beverages",
731
+ description: "Fresh produce, drinks, sweet and savoury street food, ready-to-eat meals, and packaged goods.",
732
+ subcategories: [
733
+ {
734
+ id: "fresh-food-groceries",
735
+ name: "Fresh Food & Groceries",
736
+ items: [
737
+ {
738
+ id: "fruits-vegetables",
739
+ name: "Fruits & Vegetables",
740
+ description: "Fresh seasonal fruit, organic vegetables, specialty produce, berries, tropical fruit, heritage varieties."
741
+ },
742
+ {
743
+ id: "meat-seafood",
744
+ name: "Meat & Seafood",
745
+ description: "Butcher cuts, fresh fish, smoked meats, sausages, seafood platters, artisanal jerky."
746
+ },
747
+ {
748
+ id: "dairy-eggs",
749
+ name: "Dairy & Eggs",
750
+ description: "Farm eggs, handmade cheeses, yoghurt, fresh milk, goat\u2019s milk products."
751
+ },
752
+ {
753
+ id: "bakery-pastries",
754
+ name: "Bakery & Pastries",
755
+ description: "Freshly baked bread, sourdough, bagels, croissants, focaccia, traditional baked goods."
756
+ },
757
+ {
758
+ id: "spices-condiments",
759
+ name: "Spices & Condiments",
760
+ description: "Dried herbs, spice blends, specialty salts, hot sauces, infused oils, chutneys."
761
+ },
762
+ {
763
+ id: "packaged-specialty-foods",
764
+ name: "Packaged & Specialty Foods",
765
+ description: "Honey, jams, preserves, pickles, nut butters, sauces, pre-packaged snacks."
766
+ },
767
+ {
768
+ id: "other-fresh-food-items",
769
+ name: "Other fresh food items",
770
+ description: "Items that don\u2019t fit above, e.g. fermented foods, plant-based substitutes."
771
+ }
772
+ ]
773
+ },
774
+ {
775
+ id: "beverages-specialty-drinks",
776
+ name: "Beverages & Specialty Drinks",
777
+ items: [
778
+ {
779
+ id: "fresh-juices-smoothies",
780
+ name: "Fresh Juices & Smoothies",
781
+ description: "Cold-pressed juices, detox blends, fruit smoothies, tropical mixes."
782
+ },
783
+ {
784
+ id: "coffee-teas",
785
+ name: "Coffee & Teas",
786
+ description: "Espresso, pour-over coffee, herbal teas, matcha, bubble tea, locally blended tea."
787
+ },
788
+ {
789
+ id: "dairy-plant-based-drinks",
790
+ name: "Dairy & Plant-Based Drinks",
791
+ description: "Milkshakes, lassis, almond/oat milk drinks, coconut water."
792
+ },
793
+ {
794
+ id: "alcoholic-beverages",
795
+ name: "Alcoholic Beverages",
796
+ description: "Local wines, craft beer, mead, cider, infused spirits, cocktail kits."
797
+ },
798
+ {
799
+ id: "other-beverages",
800
+ name: "Other beverages",
801
+ description: "Kombucha, kefir, energy drinks, non-alcoholic wines or beers."
802
+ }
803
+ ]
804
+ },
805
+ {
806
+ id: "savoury-prepared-foods-street-food",
807
+ name: "Savoury Prepared Foods & Street Food",
808
+ items: [
809
+ {
810
+ id: "local-specialties",
811
+ name: "Local Specialties",
812
+ description: "Meat pies, hangi, seafood chowder, fry bread, traditional NZ dishes."
813
+ },
814
+ {
815
+ id: "asian-cuisine",
816
+ name: "Asian Cuisine",
817
+ description: "Sushi, bao buns, dumplings, ramen, satay, spring rolls, fried rice."
818
+ },
819
+ {
820
+ id: "mediterranean-cuisine",
821
+ name: "Mediterranean Cuisine",
822
+ description: "Falafel, hummus wraps, souvlaki, Greek salad, dolma."
823
+ },
824
+ {
825
+ id: "italian-delights",
826
+ name: "Italian Delights",
827
+ description: "Pizza, calzone, focaccia, fresh pasta, arancini."
828
+ },
829
+ {
830
+ id: "bbq-grilled-foods",
831
+ name: "BBQ & Grilled Foods",
832
+ description: "Kebabs, grilled chicken, ribs, burgers, sausages."
833
+ },
834
+ {
835
+ id: "savoury-crepes-pancakes",
836
+ name: "Savoury Crepes & Pancakes",
837
+ description: "Filled savoury crepes, mini savoury pancakes."
838
+ },
839
+ {
840
+ id: "savoury-baked-goods-pastries",
841
+ name: "Savoury Baked Goods & Pastries",
842
+ description: "Quiches, savoury muffins, filled savoury pastries, empanadas."
843
+ },
844
+ {
845
+ id: "vegan-vegetarian-dishes",
846
+ name: "Vegan & Vegetarian Dishes",
847
+ description: "Buddha bowls, plant-based burgers, salads, vegan sushi."
848
+ },
849
+ {
850
+ id: "other-savoury-foods",
851
+ name: "Other Savoury Foods",
852
+ description: "Fusion dishes, mixed platters, savoury meal kits."
853
+ }
854
+ ]
855
+ },
856
+ {
857
+ id: "sweet-prepared-foods",
858
+ name: "Sweet Prepared Foods",
859
+ items: [
860
+ {
861
+ id: "sweet-crepes-pancakes-fried-treats",
862
+ name: "Sweet Crepes, Pancakes & Fried Treats",
863
+ description: "Crepes, waffles, mini pancakes, muffins, doughnuts."
864
+ },
865
+ {
866
+ id: "sweet-baked-goods-desserts",
867
+ name: "Sweet Baked Goods & Desserts",
868
+ description: "Cakes, pastries, slices, trifles, layered desserts."
869
+ },
870
+ {
871
+ id: "fruit-based-snacks",
872
+ name: "Fruit-Based Snacks",
873
+ description: "Fruit skewers, dried fruit packs, chocolate-dipped fruit."
874
+ },
875
+ {
876
+ id: "candy-confectionery",
877
+ name: "Candy & Confectionery",
878
+ description: "Fudge, handmade candies, toffee, nougat, brittle."
879
+ },
880
+ {
881
+ id: "other-sweet-foods",
882
+ name: "Other Sweet Foods",
883
+ description: "Fusion desserts, sweet platters, sweet meal kits."
884
+ }
885
+ ]
886
+ }
887
+ ]
1275
888
  }
1276
889
  ];
1277
890
 
1278
- // src/formFields/categories/clothingAndFashion.ts
1279
- var clothingAndFashion = [
891
+ // src/formFields/categories/handmadeAndLocalProducts.ts
892
+ var handmadeAndLocalProducts = [
1280
893
  {
1281
- id: "clothing-fashion",
1282
- name: "Clothing & Fashion",
1283
- description: "New, handmade, or upcycled clothing and accessories with a creative twist.",
894
+ id: "handmade-local-products",
895
+ name: "Handmade & Local Products",
896
+ description: "Unique, handmade, or locally produced artisan goods.",
1284
897
  subcategories: [
1285
898
  {
1286
- id: "apparel-babywear",
1287
- name: "Apparel & Babywear",
899
+ id: "home-living",
900
+ name: "Home & Living",
1288
901
  items: [
1289
902
  {
1290
- id: "apparel",
1291
- name: "Apparel",
1292
- description: "Dresses, t-shirts, jumpers, rompers, sets, kidswear."
903
+ id: "ceramics-pottery",
904
+ name: "Ceramics & Pottery",
905
+ description: "Handmade mugs, vases, bowls, decorative plates, plant pots."
1293
906
  },
1294
907
  {
1295
- id: "baby-toddler-apparel",
1296
- name: "Baby & Toddler Apparel",
1297
- description: "Handmade baby clothes, soft shoes, bibs, hats, knitted sets."
908
+ id: "candles-home-scents",
909
+ name: "Candles & Home Scents",
910
+ description: "Soy candles, beeswax candles, wax melts, incense sticks, room sprays and herbal sachets."
1298
911
  },
1299
912
  {
1300
- id: "upcycled-fashion",
1301
- name: "Upcycled Fashion",
1302
- description: "Reworked garments, patchwork pieces, restyled vintage."
913
+ id: "botanical-crafts",
914
+ name: "Botanical Crafts",
915
+ description: "Dried-flower d\xE9cor and pressed-flower crafts"
1303
916
  },
1304
917
  {
1305
- id: "other-wearable-items",
1306
- name: "Other wearable items",
1307
- description: "Unique clothing not listed above."
918
+ id: "textiles-embroidery",
919
+ name: "Textiles & Embroidery",
920
+ description: "Handsewn items, embroidered napkins, home linens, aprons, fabric gift wraps, handmade fabric bags, quilted goods, personalized textile gifts."
921
+ },
922
+ {
923
+ id: "woodcraft-metalcraft",
924
+ name: "Woodcraft & Metalcraft",
925
+ description: "Wooden boards, handmade frames, sculptures, metal signs, furniture."
926
+ },
927
+ {
928
+ id: "handmade-soaps-natural-body-goods",
929
+ name: "Handmade Soaps & Natural Body Goods",
930
+ description: "Handmade soaps, balms, oils, bath items"
931
+ },
932
+ {
933
+ id: "seasonal-festive-crafts",
934
+ name: "Seasonal & Festive Crafts",
935
+ description: "Christmas, Easter and seasonal handmade decor"
936
+ },
937
+ {
938
+ id: "other-home-living-products",
939
+ name: "Other home & living products",
940
+ description: "Items that don't fit above but serve home-related purposes."
1308
941
  }
1309
942
  ]
1310
943
  },
1311
944
  {
1312
- id: "fashion-accessories",
1313
- name: "Fashion Accessories",
945
+ id: "art-personal-expression",
946
+ name: "Art & Personal Expression",
1314
947
  items: [
1315
948
  {
1316
- id: "accessories",
1317
- name: "Accessories",
1318
- description: "Scarves, belts, gloves, hats, headbands, caps."
949
+ id: "paintings-illustrations",
950
+ name: "Paintings & Illustrations",
951
+ description: "Paintings, canvas art, hand-drawn illustrations, digital prints, graphic art and calligraphy pieces."
1319
952
  },
1320
953
  {
1321
- id: "shoes",
1322
- name: "Shoes",
1323
- description: "Handmade shoes, baby booties, sandals, slippers."
954
+ id: "sculptures-carvings",
955
+ name: "Sculptures & Carvings ",
956
+ description: "Sculptures made from wood, stone, metal, clay or resin, carved decorative pieces and artistic 3D works."
1324
957
  },
1325
958
  {
1326
- id: "bags-wallets",
1327
- name: "Bags & Wallets",
1328
- description: "Leather bags, fabric purses, wallets, backpacks, totes."
959
+ id: "creative-handmade-alternative-art",
960
+ name: "Creative Handmade & Alternative Art",
961
+ description: "Handmade textile d\xE9cor, fabric ornaments, mixed-media art, creative craft pieces and modern handmade artworks."
1329
962
  },
1330
963
  {
1331
- id: "other-accessories",
1332
- name: "Other accessories",
1333
- description: "Brooches, pins, or hybrid functional items."
964
+ id: "handmade-mini-figures-decor",
965
+ name: "Handmade Mini Figures & D\xE9cor",
966
+ description: "Small handmade figures, tiny houses and crafted mini decorative items."
967
+ },
968
+ {
969
+ id: "other-artistic-expressive-products",
970
+ name: "Other Artistic or Expressive Products",
971
+ description: "Custom artworks, specialty handmade d\xE9cor, unique crafts."
972
+ }
973
+ ]
974
+ },
975
+ {
976
+ id: "handmade-jewellery-accessories-cultural-crafts",
977
+ name: "Handmade Jewellery, Accessories & Cultural Crafts",
978
+ items: [
979
+ {
980
+ id: "jewellery-handmade-items-nz-traditional-materials",
981
+ name: "Jewellery & Handmade Items from NZ Traditional Materials",
982
+ description: "Handmade jewellery and decorative or functional items crafted from pounamu, bone, wood and other traditional New Zealand materials."
983
+ },
984
+ {
985
+ id: "maori-pasifika-cultural-crafts-clothing",
986
+ name: "M\u0101ori & Pasifika Cultural Crafts and Clothing",
987
+ description: "Culturally inspired handmade items, accessories and garments featuring M\u0101ori or Pasifika motifs, traditional patterns and regional craftsmanship."
988
+ },
989
+ {
990
+ id: "traditional-handmade-clothing-jewellery-crafts-global-cultures",
991
+ name: "Traditional Handmade Clothing, Jewellery & Crafts from Global Cultures",
992
+ description: "Handcrafted clothing, jewellery and cultural items from diverse traditions \u2014 including Asian, African, European, Middle Eastern, Indian, Chinese, Japanese, Pacific, and other culturally significant handmade pieces."
993
+ },
994
+ {
995
+ id: "other-handmade-cultural-items",
996
+ name: "Other Handmade Cultural Items",
997
+ description: "Unique or culturally inspired handmade pieces not specifically covered in the categories above."
998
+ }
999
+ ]
1000
+ },
1001
+ {
1002
+ id: "gift-ideas-accessories",
1003
+ name: "Gift Ideas & Accessories",
1004
+ items: [
1005
+ {
1006
+ id: "handmade-pens-keychains-fridge-magnets",
1007
+ name: "Handmade Pens, Keychains and Fridge Magnets",
1008
+ description: null
1009
+ },
1010
+ {
1011
+ id: "gift-packaging-wrapping-accessories",
1012
+ name: "Gift Packaging & Wrapping Accessories",
1013
+ description: null
1014
+ },
1015
+ {
1016
+ id: "handmade-crochet-knitting-fibre-crafts",
1017
+ name: "Handmade Crochet, Knitting & Fibre Crafts",
1018
+ description: "Handmade crochet and knitted items, fabric-based crafts, small decorative pieces, creative fibre artworks and unique handcrafted accessories."
1019
+ },
1020
+ {
1021
+ id: "handmade-toys-mini-play-items",
1022
+ name: "Handmade Toys & Mini Play Items",
1023
+ description: "small handmade toys, soft toys, wooden miniatures, crochet or felt play pieces"
1024
+ },
1025
+ {
1026
+ id: "other-small-handmade-gifts-accessories",
1027
+ name: "Other small handmade gifts or accessories",
1028
+ description: "Compact creative items made to surprise or delight."
1029
+ }
1030
+ ]
1031
+ }
1032
+ ]
1033
+ }
1034
+ ];
1035
+
1036
+ // src/formFields/categories/healthAndWellness.ts
1037
+ var healthAndWellness = [
1038
+ {
1039
+ id: "health-wellness",
1040
+ name: "Health & Wellness",
1041
+ description: "Natural products and services that promote wellbeing, body care, and holistic health.",
1042
+ subcategories: [
1043
+ {
1044
+ id: "body-skincare",
1045
+ name: "Body & Skincare",
1046
+ items: [
1047
+ {
1048
+ id: "skincare-body-products",
1049
+ name: "Skincare & Body Products",
1050
+ description: "Soaps, creams, lip balms, bath salts, bath bombs, body oils, natural deodorants."
1051
+ },
1052
+ {
1053
+ id: "other-body-care-items",
1054
+ name: "Other body care items",
1055
+ description: "Additional handmade or eco-conscious personal care goods."
1334
1056
  }
1335
1057
  ]
1336
1058
  },
1337
1059
  {
1338
- id: "jewelry-creative-wearables",
1339
- name: "Jewelry & Creative Wearables",
1060
+ id: "aromatherapy-herbal-wellness",
1061
+ name: "Aromatherapy & Herbal Wellness",
1340
1062
  items: [
1341
1063
  {
1342
- id: "jewelry",
1343
- name: "Jewelry",
1344
- description: "Necklaces, earrings, bracelets, rings, anklets."
1064
+ id: "aromatherapy-herbal-remedies",
1065
+ name: "Aromatherapy & Herbal Remedies",
1066
+ description: "Essential oils, herbal balms, massage oils, salves, natural teas, rollers."
1345
1067
  },
1346
1068
  {
1347
- id: "other-creative-wearables",
1348
- name: "Other creative wearables",
1349
- description: "Wearable art, statement pieces, bold handmade designs."
1069
+ id: "other-herbal-aroma-products",
1070
+ name: "Other herbal or aroma-based products",
1071
+ description: "Wellness blends, herb sachets, custom infusions."
1350
1072
  }
1351
1073
  ]
1352
1074
  },
1353
1075
  {
1354
- id: "traditional-cultural-clothing-accessories",
1355
- name: "Traditional & Cultural Clothing and Accessories",
1076
+ id: "wellness-tools-accessories",
1077
+ name: "Wellness Tools & Accessories",
1356
1078
  items: [
1357
1079
  {
1358
- id: "traditional-clothing-accessories",
1359
- name: "Traditional Clothing & Accessories ",
1360
- description: "raditional clothing, jewellery, accessories and footwear from around the world, including both handmade and non-handmade items."
1080
+ id: "wellness-accessories",
1081
+ name: "Wellness Accessories",
1082
+ description: "Yoga mats, meditation cushions, eye pillows, incense, smudging sticks, eco water bottles, wellness journals."
1361
1083
  },
1362
1084
  {
1363
- id: "other-traditional-cultural-items",
1364
- name: "Other Traditional & Cultural Items",
1365
- description: "traditional or culturally inspired wearables and decorative cultural pieces such as plates, table linens and similar items."
1085
+ id: "spiritual-tools-crystals",
1086
+ name: "Spiritual Tools & Crystals",
1087
+ description: "Healing crystals, gemstone bracelets, pendulums, sprays, spiritual kits, altar decor."
1088
+ },
1089
+ {
1090
+ id: "other-wellness-spiritual-items",
1091
+ name: "Other wellness or spiritual items",
1092
+ description: "Items that aid relaxation, focus, or inner work."
1366
1093
  }
1367
1094
  ]
1368
1095
  }
@@ -1370,73 +1097,83 @@ var clothingAndFashion = [
1370
1097
  }
1371
1098
  ];
1372
1099
 
1373
- // src/formFields/categories/electronicsAndTechnology.ts
1374
- var electronicsAndTechnology = [
1100
+ // src/formFields/categories/homeGardenHousehold.ts
1101
+ var homeGardenHousehold = [
1375
1102
  {
1376
- id: "electronics-technology",
1377
- name: "Electronics & Technology",
1378
- description: "New, second-hand, or handmade tech and digital items commonly found at markets.",
1103
+ id: "home-garden-household-goods",
1104
+ name: "Home, Garden & Household Goods",
1105
+ description: "Functional, decorative, and eco-conscious products designed for everyday use indoors and outdoors.",
1379
1106
  subcategories: [
1380
1107
  {
1381
- id: "mobile-everyday-tech",
1382
- name: "Mobile & Everyday Tech",
1108
+ id: "home-decor-living",
1109
+ name: "Home Decor & Living",
1383
1110
  items: [
1384
1111
  {
1385
- id: "mobile-phone-accessories",
1386
- name: "Mobile & Phone Accessories",
1387
- description: "Phone cases, holders, screen protectors, charging cables, power banks, grips."
1112
+ id: "home-decor",
1113
+ name: "Home Decor",
1114
+ description: "Cushions, wall art, table runners, vases, trays, mirrors, handmade centerpieces."
1388
1115
  },
1389
1116
  {
1390
- id: "other-mobile-gadgets",
1391
- name: "Other mobile gadgets",
1392
- description: "Stands, styluses, SIM tools, cleaning kits, wallet accessories."
1117
+ id: "kitchenware-dining",
1118
+ name: "Kitchenware & Dining",
1119
+ description: "Mugs, bowls, cutting boards, utensils, jars, coasters, kitchen textiles."
1120
+ },
1121
+ {
1122
+ id: "mini-figures-decor",
1123
+ name: "Mini Figures & D\xE9cor",
1124
+ description: "handmade or non-handmade small figures, tiny houses and miniature decorative items."
1125
+ },
1126
+ {
1127
+ id: "other-indoor-home-items",
1128
+ name: "Other indoor home items",
1129
+ description: "Any decorative or practical household items not listed above."
1393
1130
  }
1394
1131
  ]
1395
1132
  },
1396
1133
  {
1397
- id: "audio-music-creative-tech",
1398
- name: "Audio, Music & Creative Tech",
1134
+ id: "cleaning-eco-essentials",
1135
+ name: "Cleaning & Eco Essentials",
1399
1136
  items: [
1400
1137
  {
1401
- id: "audio-music-tech",
1402
- name: "Audio & Music Tech",
1403
- description: "Portable speakers, headphones, mini radios, Bluetooth adapters, sound accessories."
1404
- },
1405
- {
1406
- id: "instruments-music-gear",
1407
- name: "Instruments & Music Gear",
1408
- description: "Small electronic instruments, DIY synth kits, drum pads, loop machines."
1409
- },
1410
- {
1411
- id: "recording-creative-devices",
1412
- name: "Recording & Creative Devices",
1413
- description: "USB microphones, podcast tools, voice recorders, mobile lighting, content tools."
1138
+ id: "cleaning-eco-supplies",
1139
+ name: "Cleaning & Eco Supplies",
1140
+ description: "Beeswax wraps, reusable cloths, brushes, natural soaps, detergent bars, eco sponges."
1414
1141
  },
1415
1142
  {
1416
- id: "other-audio-music-items",
1417
- name: "Other audio or music-related items",
1418
- description: "Musical gadgets or creative gear not listed above."
1143
+ id: "other-eco-cleaning-items",
1144
+ name: "Other eco or cleaning items",
1145
+ description: "Environmentally friendly goods not listed above."
1419
1146
  }
1420
1147
  ]
1421
1148
  },
1422
1149
  {
1423
- id: "diy-gadgets-secondhand-finds",
1424
- name: "DIY, Gadgets & Second-Hand Finds",
1150
+ id: "garden-outdoor-living",
1151
+ name: "Garden & Outdoor Living",
1425
1152
  items: [
1426
1153
  {
1427
- id: "diy-electronics-tools",
1428
- name: "DIY Electronics & Tools",
1429
- description: "LED lights, USB gadgets, circuit boards, repair kits, tech-themed toys, novelty items."
1154
+ id: "plants-botanical-decor",
1155
+ name: "Plants & Botanical Decor",
1156
+ description: "Potted herbs, succulents, dried flowers, terrariums, plant-based ornaments."
1430
1157
  },
1431
1158
  {
1432
- id: "other-tech-finds",
1433
- name: "Other Tech Finds",
1434
- description: "Used electronics, smart gadgets, wearable tech, calculators, tablet stands, e-waste upcycles."
1159
+ id: "fresh-flowers-botanical-bouquets",
1160
+ name: "Fresh Flowers & Botanical Bouquets",
1161
+ description: "Cut flowers, seasonal bouquets, simple floral arrangements, native flower selections, and other fresh botanical items."
1435
1162
  },
1436
1163
  {
1437
- id: "other-technology-innovation-items",
1438
- name: "Other technology or innovation-related items",
1439
- description: "Anything not covered but clearly tech-driven."
1164
+ id: "natural-decor-nature-inspired-elements",
1165
+ name: "Natural Decor & Nature-Inspired Elements",
1166
+ description: "Seashell d\xE9cor, driftwood pieces, sand ornaments, natural wood accents, stone or mineral decorations, and other nature-based decorative items."
1167
+ },
1168
+ {
1169
+ id: "garden-tools-outdoor-items",
1170
+ name: "Garden Tools & Outdoor Items",
1171
+ description: "Plant markers, garden signs, stakes, small tools, wind chimes, gifts."
1172
+ },
1173
+ {
1174
+ id: "other-outdoor-garden-products",
1175
+ name: "Other outdoor or garden products",
1176
+ description: "Functional or decorative items for outside use."
1440
1177
  }
1441
1178
  ]
1442
1179
  }
@@ -1444,164 +1181,174 @@ var electronicsAndTechnology = [
1444
1181
  }
1445
1182
  ];
1446
1183
 
1447
- // src/formFields/categories/foodAndBeverages.ts
1448
- var foodAndBeverages = [
1184
+ // src/formFields/categories/petProductsAndAnimalGoods.ts
1185
+ var petProductsAndAnimalGoods = [
1449
1186
  {
1450
- id: "food-beverages",
1451
- name: "Food & Beverages",
1452
- description: "Fresh produce, drinks, sweet and savoury street food, ready-to-eat meals, and packaged goods.",
1187
+ id: "pet-products-animal-goods",
1188
+ name: "Pet Products & Animal Goods",
1189
+ description: "Items for pets, pet lovers, or animal-themed market stalls.",
1453
1190
  subcategories: [
1454
1191
  {
1455
- id: "fresh-food-groceries",
1456
- name: "Fresh Food & Groceries",
1192
+ id: "products-for-pets",
1193
+ name: "Products for Pets",
1457
1194
  items: [
1458
1195
  {
1459
- id: "fruits-vegetables",
1460
- name: "Fruits & Vegetables",
1461
- description: "Fresh seasonal fruit, organic vegetables, specialty produce, berries, tropical fruit, heritage varieties."
1462
- },
1463
- {
1464
- id: "meat-seafood",
1465
- name: "Meat & Seafood",
1466
- description: "Butcher cuts, fresh fish, smoked meats, sausages, seafood platters, artisanal jerky."
1467
- },
1468
- {
1469
- id: "dairy-eggs",
1470
- name: "Dairy & Eggs",
1471
- description: "Farm eggs, handmade cheeses, yoghurt, fresh milk, goat\u2019s milk products."
1472
- },
1473
- {
1474
- id: "bakery-pastries",
1475
- name: "Bakery & Pastries",
1476
- description: "Freshly baked bread, sourdough, bagels, croissants, focaccia, traditional baked goods."
1477
- },
1478
- {
1479
- id: "spices-condiments",
1480
- name: "Spices & Condiments",
1481
- description: "Dried herbs, spice blends, specialty salts, hot sauces, infused oils, chutneys."
1196
+ id: "pet-food-treats",
1197
+ name: "Pet Food & Treats",
1198
+ description: "Homemade dog biscuits, cat snacks, natural chews, pet-safe cakes, training treats."
1482
1199
  },
1483
1200
  {
1484
- id: "packaged-specialty-foods",
1485
- name: "Packaged & Specialty Foods",
1486
- description: "Honey, jams, preserves, pickles, nut butters, sauces, pre-packaged snacks."
1201
+ id: "apparel-toys-accessories",
1202
+ name: "Apparel, Toys & Accessories",
1203
+ description: "Leashes, collars, harnesses, toys, grooming tools, beds, travel gear, jumpers, bandanas."
1487
1204
  },
1488
1205
  {
1489
- id: "other-fresh-food-items",
1490
- name: "Other fresh food items",
1491
- description: "Items that don\u2019t fit above, e.g. fermented foods, plant-based substitutes."
1206
+ id: "other-pet-products",
1207
+ name: "Other pet products",
1208
+ description: "Any pet-related items not listed above."
1492
1209
  }
1493
1210
  ]
1494
1211
  },
1495
1212
  {
1496
- id: "beverages-specialty-drinks",
1497
- name: "Beverages & Specialty Drinks",
1213
+ id: "small-pets-birds-exotic-animals",
1214
+ name: "Small Pets, Birds & Exotic Animals",
1498
1215
  items: [
1499
1216
  {
1500
- id: "fresh-juices-smoothies",
1501
- name: "Fresh Juices & Smoothies",
1502
- description: "Cold-pressed juices, detox blends, fruit smoothies, tropical mixes."
1503
- },
1504
- {
1505
- id: "coffee-teas",
1506
- name: "Coffee & Teas",
1507
- description: "Espresso, pour-over coffee, herbal teas, matcha, bubble tea, locally blended tea."
1217
+ id: "products-small-pets-birds-exotics",
1218
+ name: "Products for Small Pets, Birds & Exotics",
1219
+ description: "Toys, enclosures, perches, feeding bowls, bedding, habitat decor, transport gear, and care items for birds, rabbits, hamsters, reptiles, turtles, aquarium pets, and other exotic species."
1508
1220
  },
1509
1221
  {
1510
- id: "dairy-plant-based-drinks",
1511
- name: "Dairy & Plant-Based Drinks",
1512
- description: "Milkshakes, lassis, almond/oat milk drinks, coconut water."
1513
- },
1222
+ id: "other-small-exotic-animal-items",
1223
+ name: "Other small or exotic animal items",
1224
+ description: "Unusual accessories for non-mainstream pets."
1225
+ }
1226
+ ]
1227
+ },
1228
+ {
1229
+ id: "farm-working-animals",
1230
+ name: "Farm & Working Animals",
1231
+ items: [
1514
1232
  {
1515
- id: "alcoholic-beverages",
1516
- name: "Alcoholic Beverages",
1517
- description: "Local wines, craft beer, mead, cider, infused spirits, cocktail kits."
1233
+ id: "goods-for-farm-working-animals",
1234
+ name: "Goods for Farm & Working Animals",
1235
+ description: "Treats, care products, equipment, signage and accessories for chickens, goats, alpacas, horses, and other livestock."
1518
1236
  },
1519
1237
  {
1520
- id: "other-beverages",
1521
- name: "Other beverages",
1522
- description: "Kombucha, kefir, energy drinks, non-alcoholic wines or beers."
1238
+ id: "other-farm-animal-items",
1239
+ name: "Other farm animal-related items",
1240
+ description: "Rural, barnyard, or utility-specific gear not listed above."
1523
1241
  }
1524
1242
  ]
1525
1243
  },
1526
1244
  {
1527
- id: "savoury-prepared-foods-street-food",
1528
- name: "Savoury Prepared Foods & Street Food",
1245
+ id: "animal-themed-gifts-custom-items",
1246
+ name: "Animal-Themed Gifts & Custom Items",
1529
1247
  items: [
1530
1248
  {
1531
- id: "local-specialties",
1532
- name: "Local Specialties",
1533
- description: "Meat pies, hangi, seafood chowder, fry bread, traditional NZ dishes."
1249
+ id: "pet-art-custom-gifts",
1250
+ name: "Pet Art & Custom Gifts",
1251
+ description: "Pet portraits, name tags, personalized bowls, breed-specific items, pet-themed home decor and stationery."
1534
1252
  },
1535
1253
  {
1536
- id: "asian-cuisine",
1537
- name: "Asian Cuisine",
1538
- description: "Sushi, bao buns, dumplings, ramen, satay, spring rolls, fried rice."
1539
- },
1254
+ id: "other-animal-themed-gifts",
1255
+ name: "Other animal-themed gifts",
1256
+ description: "Artistic or sentimental items made for animal lovers."
1257
+ }
1258
+ ]
1259
+ }
1260
+ ]
1261
+ }
1262
+ ];
1263
+
1264
+ // src/formFields/categories/serviceAndExperience.ts
1265
+ var serviceAndExperience = [
1266
+ {
1267
+ id: "services-experiences",
1268
+ name: "Services & Experiences",
1269
+ description: "On-site offerings that provide entertainment, personal care, learning, or interactive activities beyond products.",
1270
+ subcategories: [
1271
+ {
1272
+ id: "personal-care-body-art",
1273
+ name: "Personal Care & Body Art",
1274
+ items: [
1540
1275
  {
1541
- id: "mediterranean-cuisine",
1542
- name: "Mediterranean Cuisine",
1543
- description: "Falafel, hummus wraps, souvlaki, Greek salad, dolma."
1276
+ id: "nails-handcare",
1277
+ name: "Nails & Handcare",
1278
+ description: "Nail painting, decoration, quick manicures, temporary nail extensions."
1544
1279
  },
1545
1280
  {
1546
- id: "italian-delights",
1547
- name: "Italian Delights",
1548
- description: "Pizza, calzone, focaccia, fresh pasta, arancini."
1281
+ id: "hair-styling-braiding",
1282
+ name: "Hair Styling & Braiding",
1283
+ description: "Hair braiding, plaits, child-friendly festival hairstyles."
1549
1284
  },
1550
1285
  {
1551
- id: "bbq-grilled-foods",
1552
- name: "BBQ & Grilled Foods",
1553
- description: "Kebabs, grilled chicken, ribs, burgers, sausages."
1286
+ id: "face-body-decoration",
1287
+ name: "Face & Body Decoration",
1288
+ description: "Henna, glitter tattoos, face painting, light makeup, eyelash styling, professional tattooing (where permitted)."
1554
1289
  },
1555
1290
  {
1556
- id: "savoury-crepes-pancakes",
1557
- name: "Savoury Crepes & Pancakes",
1558
- description: "Filled savoury crepes, mini savoury pancakes."
1559
- },
1291
+ id: "other-beauty-grooming-services",
1292
+ name: "Other beauty or grooming services",
1293
+ description: "Small-scale personal care options offered on-site."
1294
+ }
1295
+ ]
1296
+ },
1297
+ {
1298
+ id: "practical-wellness-services",
1299
+ name: "Practical & Wellness Services",
1300
+ items: [
1560
1301
  {
1561
- id: "savoury-baked-goods-pastries",
1562
- name: "Savoury Baked Goods & Pastries",
1563
- description: "Quiches, savoury muffins, filled savoury pastries, empanadas."
1302
+ id: "mobile-practical-services",
1303
+ name: "Mobile & Practical Services",
1304
+ description: "Shoe repair, phone repairs, knife sharpening, key cutting, battery replacement, bike repairs, engraving."
1564
1305
  },
1565
1306
  {
1566
- id: "vegan-vegetarian-dishes",
1567
- name: "Vegan & Vegetarian Dishes",
1568
- description: "Buddha bowls, plant-based burgers, salads, vegan sushi."
1307
+ id: "wellness-alternative-therapies",
1308
+ name: "Wellness & Alternative Therapies",
1309
+ description: "Massage, aromatherapy, reflexology, energy healing (e.g. Reiki), natural consultations."
1569
1310
  },
1570
1311
  {
1571
- id: "other-savoury-foods",
1572
- name: "Other Savoury Foods",
1573
- description: "Fusion dishes, mixed platters, savoury meal kits."
1312
+ id: "other-service-based-offerings",
1313
+ name: "Other service-based offerings",
1314
+ description: "Wellness or functional services not listed above."
1574
1315
  }
1575
1316
  ]
1576
1317
  },
1577
1318
  {
1578
- id: "sweet-prepared-foods",
1579
- name: "Sweet Prepared Foods",
1319
+ id: "creative-educational-experiences",
1320
+ name: "Creative & Educational Experiences",
1580
1321
  items: [
1581
1322
  {
1582
- id: "sweet-crepes-pancakes-fried-treats",
1583
- name: "Sweet Crepes, Pancakes & Fried Treats",
1584
- description: "Crepes, waffles, mini pancakes, muffins, doughnuts."
1323
+ id: "creative-workshops-maker-services",
1324
+ name: "Creative Workshops & Maker Services",
1325
+ description: "Candle making, pottery, jewelry crafting, soap or balm workshops, calligraphy, seasonal crafts."
1585
1326
  },
1586
1327
  {
1587
- id: "sweet-baked-goods-desserts",
1588
- name: "Sweet Baked Goods & Desserts",
1589
- description: "Cakes, pastries, slices, trifles, layered desserts."
1328
+ id: "education-awareness-stalls",
1329
+ name: "Education & Awareness Stalls",
1330
+ description: "Eco awareness, cultural storytelling, local history, first aid demos, health booths, sustainability education, kids\u2019 science displays."
1590
1331
  },
1591
1332
  {
1592
- id: "fruit-based-snacks",
1593
- name: "Fruit-Based Snacks",
1594
- description: "Fruit skewers, dried fruit packs, chocolate-dipped fruit."
1595
- },
1333
+ id: "other-creative-educational-services",
1334
+ name: "Other creative or educational services",
1335
+ description: "Informal learning, demonstrations, or community-focused sessions."
1336
+ }
1337
+ ]
1338
+ },
1339
+ {
1340
+ id: "kids-activities-family-fun",
1341
+ name: "Kids\u2019 Activities & Family Fun",
1342
+ items: [
1596
1343
  {
1597
- id: "candy-confectionery",
1598
- name: "Candy & Confectionery",
1599
- description: "Fudge, handmade candies, toffee, nougat, brittle."
1344
+ id: "kids-activities-fun",
1345
+ name: "Kids\u2019 Activities & Fun",
1346
+ description: "Face painting, glitter tattoos, pony rides, bouncy castles, small amusement rides, balloon twisting, animal petting zones."
1600
1347
  },
1601
1348
  {
1602
- id: "other-sweet-foods",
1603
- name: "Other Sweet Foods",
1604
- description: "Fusion desserts, sweet platters, sweet meal kits."
1349
+ id: "other-family-oriented-activities",
1350
+ name: "Other family-oriented activities",
1351
+ description: "On-site entertainment that engages children or family groups."
1605
1352
  }
1606
1353
  ]
1607
1354
  }
@@ -1609,666 +1356,919 @@ var foodAndBeverages = [
1609
1356
  }
1610
1357
  ];
1611
1358
 
1612
- // src/formFields/categories/handmadeAndLocalProducts.ts
1613
- var handmadeAndLocalProducts = [
1359
+ // src/formFields/categories/toysChildren.ts
1360
+ var toysChildren = [
1614
1361
  {
1615
- id: "handmade-local-products",
1616
- name: "Handmade & Local Products",
1617
- description: "Unique, handmade, or locally produced artisan goods.",
1362
+ id: "toys-childrens-items",
1363
+ name: "Toys & Children\u2019s Items",
1364
+ description: "Products and services made for or inspired by children.",
1618
1365
  subcategories: [
1619
1366
  {
1620
- id: "home-living",
1621
- name: "Home & Living",
1367
+ id: "toys-playthings",
1368
+ name: "Toys & Playthings",
1622
1369
  items: [
1623
1370
  {
1624
- id: "ceramics-pottery",
1625
- name: "Ceramics & Pottery",
1626
- description: "Handmade mugs, vases, bowls, decorative plates, plant pots."
1627
- },
1628
- {
1629
- id: "candles-home-scents",
1630
- name: "Candles & Home Scents",
1631
- description: "Soy candles, beeswax candles, wax melts, incense sticks, room sprays and herbal sachets."
1632
- },
1633
- {
1634
- id: "botanical-crafts",
1635
- name: "Botanical Crafts",
1636
- description: "Dried-flower d\xE9cor and pressed-flower crafts"
1637
- },
1638
- {
1639
- id: "textiles-embroidery",
1640
- name: "Textiles & Embroidery",
1641
- description: "Handsewn items, embroidered napkins, home linens, aprons, fabric gift wraps, handmade fabric bags, quilted goods, personalized textile gifts."
1371
+ id: "toys-classic-electric-character",
1372
+ name: "Toys \u2013 Classic, Electric & Character-Based",
1373
+ description: "Building blocks, dolls, puzzles, plush animals, toy vehicles, remote-control toys, light-up gadgets, character figurines, themed playsets."
1642
1374
  },
1643
1375
  {
1644
- id: "woodcraft-metalcraft",
1645
- name: "Woodcraft & Metalcraft",
1646
- description: "Wooden boards, handmade frames, sculptures, metal signs, furniture."
1376
+ id: "handmade-toys-crafty-playthings",
1377
+ name: "Handmade Toys & Crafty Playthings",
1378
+ description: "Wooden puzzles, crocheted animals, felt toys, fabric dolls, DIY kits, nature-inspired games, sensory toys."
1647
1379
  },
1648
1380
  {
1649
- id: "handmade-soaps-natural-body-goods",
1650
- name: "Handmade Soaps & Natural Body Goods",
1651
- description: "Handmade soaps, balms, oils, bath items"
1652
- },
1381
+ id: "other-play-items",
1382
+ name: "Other play items",
1383
+ description: "Toys not listed above, including limited-edition or hybrid items."
1384
+ }
1385
+ ]
1386
+ },
1387
+ {
1388
+ id: "educational-developmental",
1389
+ name: "Educational & Developmental",
1390
+ items: [
1653
1391
  {
1654
- id: "seasonal-festive-crafts",
1655
- name: "Seasonal & Festive Crafts",
1656
- description: "Christmas, Easter and seasonal handmade decor"
1392
+ id: "educational-developmental-tools",
1393
+ name: "Educational & Developmental Tools",
1394
+ description: "STEM kits, Montessori toys, storybooks, picture books, flashcards, early learning games, language tools."
1657
1395
  },
1658
1396
  {
1659
- id: "other-home-living-products",
1660
- name: "Other home & living products",
1661
- description: "Items that don't fit above but serve home-related purposes."
1397
+ id: "other-educational-experience-based-items",
1398
+ name: "Other educational or experience-based items",
1399
+ description: "Creative experiences or learning aids not listed above."
1662
1400
  }
1663
1401
  ]
1664
1402
  },
1665
1403
  {
1666
- id: "art-personal-expression",
1667
- name: "Art & Personal Expression",
1404
+ id: "baby-kidswear-accessories",
1405
+ name: "Baby & Kidswear + Accessories",
1668
1406
  items: [
1669
1407
  {
1670
- id: "paintings-illustrations",
1671
- name: "Paintings & Illustrations",
1672
- description: "Paintings, canvas art, hand-drawn illustrations, digital prints, graphic art and calligraphy pieces."
1408
+ id: "baby-kidswear-accessories",
1409
+ name: "Baby & Kidswear + Accessories",
1410
+ description: "Handmade baby clothes, toddler outfits, bibs, hats, headbands, bags, pacifier clips, soft shoes."
1673
1411
  },
1674
1412
  {
1675
- id: "sculptures-carvings",
1676
- name: "Sculptures & Carvings ",
1677
- description: "Sculptures made from wood, stone, metal, clay or resin, carved decorative pieces and artistic 3D works."
1413
+ id: "baby-developmental-soft-toys",
1414
+ name: "Baby Developmental Soft Toys",
1415
+ description: "Sensory toys, rattles, fabric books, teething items, high-contrast cards, and early-skill. Montessori materials designed to support infants\u2019 cognitive and motor development."
1678
1416
  },
1679
1417
  {
1680
- id: "creative-handmade-alternative-art",
1681
- name: "Creative Handmade & Alternative Art",
1682
- description: "Handmade textile d\xE9cor, fabric ornaments, mixed-media art, creative craft pieces and modern handmade artworks."
1683
- },
1418
+ id: "other-childrens-clothing-accessories",
1419
+ name: "Other children\u2019s clothing or accessories",
1420
+ description: "Unique fashion or functional pieces for kids."
1421
+ }
1422
+ ]
1423
+ }
1424
+ ]
1425
+ }
1426
+ ];
1427
+
1428
+ // src/formFields/categories/vintageAndAntique.ts
1429
+ var vintageAndAntique = [
1430
+ {
1431
+ id: "vintage-antique",
1432
+ name: "Vintage & Antique",
1433
+ description: "Unique, historic, or nostalgic items with collectible or decorative value.",
1434
+ subcategories: [
1435
+ {
1436
+ id: "vintage-antique-clothing-accessories",
1437
+ name: "Vintage & Antique Clothing & Accessories",
1438
+ items: [
1684
1439
  {
1685
- id: "handmade-mini-figures-decor",
1686
- name: "Handmade Mini Figures & D\xE9cor",
1687
- description: "Small handmade figures, tiny houses and crafted mini decorative items."
1440
+ id: "clothing-vintage-fashion",
1441
+ name: "Clothing and wearable items from past eras",
1442
+ description: "Vintage dresses, jackets, hats, gloves, belts, bags, shoes, jewellery."
1688
1443
  },
1689
1444
  {
1690
- id: "other-artistic-expressive-products",
1691
- name: "Other Artistic or Expressive Products",
1692
- description: "Custom artworks, specialty handmade d\xE9cor, unique crafts."
1445
+ id: "other-clothing-accessory-items",
1446
+ name: "Other clothing-related items",
1447
+ description: "Hair clips, brooches, pins, scarf rings, small fashion accessories."
1693
1448
  }
1694
1449
  ]
1695
1450
  },
1696
1451
  {
1697
- id: "handmade-jewellery-accessories-cultural-crafts",
1698
- name: "Handmade Jewellery, Accessories & Cultural Crafts",
1452
+ id: "collectibles-memorabilia",
1453
+ name: "Collectibles & Memorabilia",
1699
1454
  items: [
1700
1455
  {
1701
- id: "jewellery-handmade-items-nz-traditional-materials",
1702
- name: "Jewellery & Handmade Items from NZ Traditional Materials",
1703
- description: "Handmade jewellery and decorative or functional items crafted from pounamu, bone, wood and other traditional New Zealand materials."
1456
+ id: "small-collectible-items",
1457
+ name: "Small collectible items with historical or nostalgic significance",
1458
+ description: "Coins, stamps, toys, postcards, comics, sports cards, vintage packaging."
1704
1459
  },
1705
1460
  {
1706
- id: "maori-pasifika-cultural-crafts-clothing",
1707
- name: "M\u0101ori & Pasifika Cultural Crafts and Clothing",
1708
- description: "Culturally inspired handmade items, accessories and garments featuring M\u0101ori or Pasifika motifs, traditional patterns and regional craftsmanship."
1709
- },
1461
+ id: "other-collectible-items",
1462
+ name: "Other collectible items",
1463
+ description: "Rare small objects, miniature figurines, special-edition items."
1464
+ }
1465
+ ]
1466
+ },
1467
+ {
1468
+ id: "homewares-decor-curiosities",
1469
+ name: "Homewares, Decor & Curiosities",
1470
+ items: [
1710
1471
  {
1711
- id: "traditional-handmade-clothing-jewellery-crafts-global-cultures",
1712
- name: "Traditional Handmade Clothing, Jewellery & Crafts from Global Cultures",
1713
- description: "Handcrafted clothing, jewellery and cultural items from diverse traditions \u2014 including Asian, African, European, Middle Eastern, Indian, Chinese, Japanese, Pacific, and other culturally significant handmade pieces."
1472
+ id: "decorative-functional-vintage-items",
1473
+ name: "Decorative or functional items with a vintage or antique aesthetic",
1474
+ description: "Teacups, plates, vases, mirrors, clocks, furniture, old tools, lanterns, typewriters, curiosities."
1714
1475
  },
1715
1476
  {
1716
- id: "other-handmade-cultural-items",
1717
- name: "Other Handmade Cultural Items",
1718
- description: "Unique or culturally inspired handmade pieces not specifically covered in the categories above."
1477
+ id: "handmade-vintage-art",
1478
+ name: "Handmade vintage art",
1479
+ description: "Paintings, sculptures, crafted pieces."
1480
+ },
1481
+ {
1482
+ id: "other-home-decor-items",
1483
+ name: "Other home or decor items",
1484
+ description: "Decorative pieces not listed above, unique household objects."
1719
1485
  }
1720
1486
  ]
1721
1487
  },
1722
1488
  {
1723
- id: "gift-ideas-accessories",
1724
- name: "Gift Ideas & Accessories",
1489
+ id: "vintage-media-printed-nostalgia",
1490
+ name: "Vintage Media & Printed Nostalgia",
1725
1491
  items: [
1726
1492
  {
1727
- id: "handmade-pens-keychains-fridge-magnets",
1728
- name: "Handmade Pens, Keychains and Fridge Magnets",
1729
- description: null
1730
- },
1731
- {
1732
- id: "gift-packaging-wrapping-accessories",
1733
- name: "Gift Packaging & Wrapping Accessories",
1734
- description: null
1735
- },
1736
- {
1737
- id: "handmade-crochet-knitting-fibre-crafts",
1738
- name: "Handmade Crochet, Knitting & Fibre Crafts",
1739
- description: "Handmade crochet and knitted items, fabric-based crafts, small decorative pieces, creative fibre artworks and unique handcrafted accessories."
1493
+ id: "older-media-printed-works",
1494
+ name: "Older media formats and printed works",
1495
+ description: "Vinyl records, cassette tapes, CDs, DVDs, books, magazines, board games, posters."
1740
1496
  },
1741
1497
  {
1742
- id: "handmade-toys-mini-play-items",
1743
- name: "Handmade Toys & Mini Play Items",
1744
- description: "small handmade toys, soft toys, wooden miniatures, crochet or felt play pieces"
1745
- },
1498
+ id: "other-media-printed-items",
1499
+ name: "Other media or printed items",
1500
+ description: "Maps, manuals, leaflets, out-of-print materials."
1501
+ }
1502
+ ]
1503
+ },
1504
+ {
1505
+ id: "other-vintage-antique-items",
1506
+ name: "Other Vintage & Antique Items",
1507
+ items: [
1746
1508
  {
1747
- id: "other-small-handmade-gifts-accessories",
1748
- name: "Other small handmade gifts or accessories",
1749
- description: "Compact creative items made to surprise or delight."
1509
+ id: "any-vintage-antique-items-not-listed",
1510
+ name: "Any vintage or antique items not listed above",
1511
+ description: "Unique, rare or uncategorised pieces."
1750
1512
  }
1751
1513
  ]
1752
1514
  }
1753
- ]
1754
- }
1755
- ];
1515
+ ]
1516
+ }
1517
+ ];
1518
+
1519
+ // src/formFields/categories/index.ts
1520
+ var categoryColors = {
1521
+ "clothing-fashion": "#9D4EDD",
1522
+ "electronics-technology": "#3AF3FF",
1523
+ "food-beverages": "#FF0D1F",
1524
+ "handmade-local-products": "#EE7E54",
1525
+ "health-wellness": "#E23794",
1526
+ "home-garden-household-goods": "#067325",
1527
+ "pet-products-animal-goods": "#68E788",
1528
+ "services-experiences": "#2E16A5",
1529
+ "toys-childrens-items": "#FFF966",
1530
+ "vintage-antique": "#8D6748"
1531
+ };
1532
+ var assignColorToCategories = (categories) => {
1533
+ const result = categories.map((category) => ({
1534
+ ...category,
1535
+ color: categoryColors[category.id]
1536
+ }));
1537
+ return result;
1538
+ };
1539
+ var availableCategories = assignColorToCategories([
1540
+ ...foodAndBeverages,
1541
+ ...handmadeAndLocalProducts,
1542
+ ...clothingAndFashion,
1543
+ ...homeGardenHousehold,
1544
+ ...toysChildren,
1545
+ ...healthAndWellness,
1546
+ ...electronicsAndTechnology,
1547
+ ...vintageAndAntique,
1548
+ ...petProductsAndAnimalGoods,
1549
+ ...serviceAndExperience
1550
+ ]);
1551
+
1552
+ // src/yupSchema/global.ts
1553
+ var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
1554
+ var nzbnRegex = /^94\d{11}$/;
1555
+ var normalizedUrlTransform = () => yup.string().trim().transform(
1556
+ (value) => typeof value === "string" ? value.toLowerCase() : value
1557
+ ).transform(
1558
+ (value) => typeof value === "string" ? normalizeUrl(value) : value
1559
+ );
1560
+ var noLeadingZeros = (fieldName, options = {}) => {
1561
+ return function(value, context) {
1562
+ const original = context.originalValue;
1563
+ if (typeof original !== "string") {
1564
+ return true;
1565
+ }
1566
+ if (original === "") {
1567
+ return true;
1568
+ }
1569
+ const regex = options.allowDecimal ? /^0\d+(\.\d+)?$/ : /^0\d+$/;
1570
+ if (regex.test(original)) {
1571
+ return context.createError({
1572
+ message: `${fieldName} must not have leading zeros`
1573
+ });
1574
+ }
1575
+ return true;
1576
+ };
1577
+ };
1578
+ var toOptionalNumber = (originalValue) => {
1579
+ if (originalValue === "" || originalValue === null || originalValue === void 0) {
1580
+ return void 0;
1581
+ }
1582
+ let parsed;
1583
+ if (typeof originalValue === "number") {
1584
+ parsed = originalValue;
1585
+ } else if (typeof originalValue === "string") {
1586
+ parsed = Number(originalValue.replace(",", "."));
1587
+ } else {
1588
+ parsed = void 0;
1589
+ }
1590
+ return Number.isNaN(parsed) ? void 0 : parsed;
1591
+ };
1592
+ import_dayjs3.default.extend(import_isSameOrAfter2.default);
1593
+ import_dayjs3.default.extend(import_customParseFormat2.default);
1594
+ var emailRequiredSchema = yup.string().email("Invalid email address").required("Email is required").label("Email").transform(
1595
+ (value) => typeof value === "string" ? value.trim().toLowerCase() : value
1596
+ );
1597
+ var emailOptionalSchema = yup.string().nullable().notRequired().transform(
1598
+ (value) => typeof value === "string" ? value.trim().toLowerCase() : value
1599
+ ).test(
1600
+ "is-valid-email",
1601
+ "Invalid email address",
1602
+ (value) => !value || yup.string().email().isValidSync(value)
1603
+ ).label("Email");
1604
+ var mobileRegex = /^02\d{7,9}$/;
1605
+ var landlineRegex = /^0[34679]\d{7}$/;
1606
+ var mobilePhoneSchema = yup.string().label("Mobile Phone").nullable().notRequired().test(
1607
+ "mobile-phone",
1608
+ "Mobile must start with 02 and be 9\u201311 digits",
1609
+ (value) => !value || mobileRegex.test(value)
1610
+ // skip empty values
1611
+ );
1612
+ var landlinePhoneSchema = yup.string().label("Landline Phone").nullable().notRequired().test(
1613
+ "landline-phone",
1614
+ "Landline must start with 03, 04, 06, 07, or 09 (not 090) and have 7 digits after area code",
1615
+ (value) => !value || landlineRegex.test(value)
1616
+ // skip empty values
1617
+ );
1618
+ var contactDetailsSchema = yup.object({
1619
+ email: emailOptionalSchema,
1620
+ mobilePhone: mobilePhoneSchema,
1621
+ landlinePhone: landlinePhoneSchema
1622
+ }).nullable().default(void 0);
1623
+ var endDateNotInPastTest = yup.string().test("not-in-past", "End date cannot be in the past", (value) => {
1624
+ const now = (0, import_dayjs3.default)();
1625
+ return value ? (0, import_dayjs3.default)(value, dateFormat, true).isSameOrAfter(now, "day") : false;
1626
+ });
1627
+ var startDateNotInPastTest = yup.string().test("not-in-past", "Start date cannot be in the past", (value) => {
1628
+ const now = (0, import_dayjs3.default)();
1629
+ return value ? (0, import_dayjs3.default)(value, dateFormat, true).isSameOrAfter(now, "day") : false;
1630
+ });
1631
+ var endDateAfterStartDateTest = yup.string().test(
1632
+ "end-after-start",
1633
+ "End date cannot be before start date",
1634
+ function(value) {
1635
+ const { startDate } = this.parent;
1636
+ if (!startDate || !value) return false;
1637
+ return (0, import_dayjs3.default)(value, dateFormat, true).isSameOrAfter(
1638
+ (0, import_dayjs3.default)(startDate, dateFormat, true),
1639
+ "day"
1640
+ );
1641
+ }
1642
+ );
1643
+ var endTimeMustBeAfterStartTimeTest = yup.string().test(
1644
+ "valid-end-time",
1645
+ "End time must be after start time",
1646
+ function(value) {
1647
+ const { startDate, endDate, startTime } = this.parent;
1648
+ if (!startDate || !endDate || !startTime || !value) return false;
1649
+ const startDateTime = (0, import_dayjs3.default)(
1650
+ `${startDate} ${startTime}`,
1651
+ `${dateFormat} ${timeFormat}`,
1652
+ true
1653
+ );
1654
+ const endDateTime = (0, import_dayjs3.default)(
1655
+ `${endDate} ${value}`,
1656
+ `${dateFormat} ${timeFormat}`,
1657
+ true
1658
+ );
1659
+ return endDateTime.isAfter(startDateTime);
1660
+ }
1661
+ );
1662
+ var startTimeCannotBeInPastTest = yup.string().test(
1663
+ "valid-start-time",
1664
+ "Start time cannot be in the past",
1665
+ function(value) {
1666
+ const now = (0, import_dayjs3.default)();
1667
+ const { startDate } = this.parent;
1668
+ if (!startDate || !value) return false;
1669
+ const startDateTime = (0, import_dayjs3.default)(
1670
+ `${startDate} ${value}`,
1671
+ `${dateFormat} ${timeFormat}`,
1672
+ true
1673
+ );
1674
+ return startDateTime.isSameOrAfter(now);
1675
+ }
1676
+ );
1677
+ var dateTimeSchema = yup.object().shape({
1678
+ dateStatus: yup.mixed().oneOf(Object.values(EnumEventDateStatus)).required("Date status is required"),
1679
+ endDate: yup.string().label("End Date").concat(endDateNotInPastTest).concat(endDateAfterStartDateTest).required("End date is required"),
1680
+ endTime: yup.string().label("End Time").concat(endTimeMustBeAfterStartTimeTest).required("End time is required"),
1681
+ startDate: yup.string().label("Start Date").concat(startDateNotInPastTest).required("Start date is required"),
1682
+ startTime: yup.string().label("Start Time").concat(startTimeCannotBeInPastTest).required("Start time is required")
1683
+ });
1684
+ var stallTypesSchema = yup.object({
1685
+ label: yup.string().trim().label("Stall Type").required("Stall type is required"),
1686
+ price: yup.number().transform((_, originalValue) => toOptionalNumber(originalValue)).label("Stall Price").min(0.1, "Stall price must be at least 0.1").required("Stall price is required").test(
1687
+ "no-leading-zeros",
1688
+ "",
1689
+ noLeadingZeros("Stall price", { allowDecimal: true })
1690
+ ),
1691
+ stallCapacity: yup.number().transform((_, originalValue) => toOptionalNumber(originalValue)).label("Stall Capacity").typeError("Stall capacity must be a number").min(0, "Stall capacity cannot be negative").integer("Stall capacity must be a whole number").required("Stall capacity is required").test("no-leading-zeros", "", noLeadingZeros("Stall capacity"))
1692
+ });
1693
+ var dateTimeWithPriceSchema = dateTimeSchema.shape({
1694
+ stallTypes: yup.array().of(stallTypesSchema).min(1, "At least one stall type is required").required("Stall types are required")
1695
+ });
1696
+ var locationSchema = yup.object().shape({
1697
+ city: yup.string().label("City").required("City is required"),
1698
+ country: yup.string().label("Country").required("Country is required"),
1699
+ fullAddress: yup.string().label("Address").required("Address is required"),
1700
+ geo: yup.object().shape({
1701
+ coordinates: yup.array().of(yup.number().required("Coordinates must be numbers")).length(
1702
+ 2,
1703
+ "Coordinates must contain exactly two numbers (longitude, latitude)"
1704
+ ).required("Coordinates are required"),
1705
+ type: yup.string().oneOf(["Point"], "Type must be 'Point'").default("Point").required("Type is required")
1706
+ }),
1707
+ latitude: yup.number().label("Latitude").required("Latitude is required"),
1708
+ longitude: yup.number().label("Longitude").required("Longitude is required"),
1709
+ region: yup.string().label("Region").required("Region is required")
1710
+ });
1711
+ var passwordSchema = yup.string().trim().label("Password").min(8, "Password must be at least 8 characters long").required("Password is required");
1712
+ var socialMediaSchema = yup.object({
1713
+ name: yup.mixed().oneOf(Object.values(EnumSocialMedia)).label("Social Media Name").optional(),
1714
+ link: yup.string().when("name", {
1715
+ is: (name) => !!name,
1716
+ // If name has a value
1717
+ then: () => normalizedUrlTransform().required("Link is required when name is set").url("Link must be a valid URL").label("Social Media Link"),
1718
+ otherwise: (schema) => schema.notRequired()
1719
+ })
1720
+ });
1721
+ var globalResourceSchema = yup.object().shape({
1722
+ active: yup.boolean().required("Active is required"),
1723
+ cover: yup.object({
1724
+ source: yup.string().label("Cover").required("Cover Image is required"),
1725
+ title: yup.string().label("Cover Title").required("Cover Title is required")
1726
+ }),
1727
+ contactDetails: contactDetailsSchema,
1728
+ description: yup.string().label("Description").trim().min(50).required("Description is required"),
1729
+ name: yup.string().label("Name").trim().min(3).required("Name is required"),
1730
+ region: yup.string().label("Region").required("Region is required"),
1731
+ socialMedia: yup.array().of(socialMediaSchema).nullable().default(null),
1732
+ associates: yup.array().of(
1733
+ yup.object().shape({
1734
+ email: emailRequiredSchema,
1735
+ resourceId: yup.string().label("Resource ID").required("Resource ID is required"),
1736
+ resourceType: yup.mixed().oneOf(Object.values(EnumResourceType)).label("Resource Type").required("Resource Type is required"),
1737
+ licence: yup.object({
1738
+ expiryDate: yup.date().required("Expiry Date is required"),
1739
+ issuedDate: yup.date().required("Issued Date is required"),
1740
+ licenceType: yup.mixed().oneOf(Object.values(EnumUserLicence)).label("Licence Type").required("Licence Type is required")
1741
+ })
1742
+ })
1743
+ ).nullable().default(null)
1744
+ });
1745
+ var categorySchema = yup.array().of(
1746
+ yup.object().shape({
1747
+ id: yup.string().required("Category id is required"),
1748
+ name: yup.string().required("Category name is required"),
1749
+ subcategories: yup.array().of(
1750
+ yup.object().shape({
1751
+ id: yup.string().defined(),
1752
+ items: yup.array().of(
1753
+ yup.object().shape({
1754
+ id: yup.string().defined(),
1755
+ name: yup.string().defined()
1756
+ })
1757
+ ).nullable(),
1758
+ name: yup.string().defined()
1759
+ })
1760
+ ).min(1, "At least one subcategory is required").required("Subcategories are required")
1761
+ })
1762
+ );
1763
+
1764
+ // src/yupSchema/event.ts
1765
+ var yup2 = __toESM(require("yup"));
1766
+ var eventSchema = globalResourceSchema.shape({
1767
+ dateTime: yup2.array().of(dateTimeSchema).min(1, "At least one Event date required").max(50, "You can only add up to 50 Event dates").required("DateTime is required").test(
1768
+ "unique-start-date-time",
1769
+ "Start Date and Start Time must be unique",
1770
+ function(value) {
1771
+ if (!value) return true;
1772
+ const seen = /* @__PURE__ */ new Set();
1773
+ for (const item of value) {
1774
+ if (!item.startDate || !item.startTime) continue;
1775
+ const key = `${item.startDate}_${item.startTime}`;
1776
+ if (seen.has(key)) {
1777
+ return false;
1778
+ }
1779
+ seen.add(key);
1780
+ }
1781
+ return true;
1782
+ }
1783
+ ),
1784
+ eventType: yup2.mixed().oneOf(Object.values(EnumEventType), "Please select a valid Event type").required("Please select an Event type"),
1785
+ location: locationSchema,
1786
+ nzbn: yup2.string().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
1787
+ rainOrShine: yup2.boolean().label("Rain or Shine").required("Please specify if the event is rain or shine"),
1788
+ tags: yup2.array().of(yup2.string().defined()).min(1, "Tags are required").required("Tags are required")
1789
+ });
1790
+ var paymentInfoSchema = yup2.object({
1791
+ paymentMethod: yup2.mixed().oneOf(
1792
+ Object.values(EnumPaymentMethod),
1793
+ "Please select a valid Payment method"
1794
+ ).required("Please select a Payment method"),
1795
+ accountHolderName: yup2.string().when("paymentMethod", {
1796
+ is: "bank_transfer" /* BANK_TRANSFER */,
1797
+ then: (schema) => schema.required("Account holder name is required for bank transfer").trim(),
1798
+ otherwise: (schema) => schema.notRequired()
1799
+ }),
1800
+ accountNumber: yup2.string().when("paymentMethod", {
1801
+ is: "bank_transfer" /* BANK_TRANSFER */,
1802
+ then: (schema) => schema.required("Account number is required for bank transfer").matches(
1803
+ nzBankAccountRegex,
1804
+ "Account number must be in format: XX-XXXX-XXXXXXX-XX"
1805
+ ).trim(),
1806
+ otherwise: (schema) => schema.notRequired()
1807
+ }),
1808
+ link: yup2.string().when("paymentMethod", {
1809
+ is: (val) => val === "paypal" /* PAYPAL */ || val === "stripe" /* STRIPE */,
1810
+ then: () => normalizedUrlTransform().url("Link must be a valid URL").required("Link is required for PayPal/Stripe"),
1811
+ otherwise: (schema) => schema.notRequired()
1812
+ })
1813
+ });
1814
+ var eventInfoSchema = yup2.object().shape({
1815
+ applicationDeadlineHours: yup2.number().label("Application Deadline Hours").nullable().transform((value, originalValue) => originalValue === "" ? null : value).typeError("Application deadline hours must be a number").min(1, "Application deadline hours must be at least 1").required("Application deadline hours is required").test("no-leading-zeros", "", noLeadingZeros("Application deadline hours")),
1816
+ dateTime: yup2.array().of(dateTimeWithPriceSchema).required("DateTime is required"),
1817
+ eventId: yup2.string().trim().required("Event ID is required"),
1818
+ packInTime: yup2.number().transform((_, originalValue) => toOptionalNumber(originalValue)).label("Pack In Time").typeError("Pack in time must be a number").min(1, "Pack in time must be at least 1").required("Pack in time is required").test("no-leading-zeros", "", noLeadingZeros("Pack in time")),
1819
+ paymentDueHours: yup2.number().transform((_, originalValue) => toOptionalNumber(originalValue)).label("Payment Due Hours").typeError("Payment due hours must be a number").min(1, "Payment due hours must be at least 1").required("Payment due hours is required").test("no-leading-zeros", "", noLeadingZeros("Payment due hours")).test(
1820
+ "payment-before-deadline",
1821
+ "Payment due hours must be less than application deadline hours",
1822
+ function(value) {
1823
+ const { applicationDeadlineHours } = this.parent;
1824
+ return value < applicationDeadlineHours;
1825
+ }
1826
+ ),
1827
+ paymentInfo: yup2.array().of(paymentInfoSchema).min(1, "At least one payment method is required").required("Payment info is required"),
1828
+ refundPolicy: yup2.array().of(
1829
+ yup2.object({
1830
+ category: yup2.mixed().required("Category is required"),
1831
+ label: yup2.string().required("Label is required"),
1832
+ value: yup2.boolean().required("Value is required")
1833
+ })
1834
+ ).min(1, "At least one refund policy item is required").test(
1835
+ "at-least-one-true",
1836
+ "At least one refund policy option must be selected",
1837
+ (value) => {
1838
+ if (!value) return false;
1839
+ return value.some((item) => item.value === true);
1840
+ }
1841
+ ).required("Refund policy is required")
1842
+ });
1843
+
1844
+ // src/yupSchema/vendor.ts
1845
+ var yup3 = __toESM(require("yup"));
1846
+ var vendorMenuSchema = yup3.object({
1847
+ description: yup3.string().nullable().optional(),
1848
+ name: yup3.string().nullable().required("Product name is required"),
1849
+ price: yup3.number().transform((v, o) => o === "" ? null : v).min(1, "Product price must be greater than 0").required("Product price is required"),
1850
+ priceUnit: yup3.string().required("Product unit is required")
1851
+ });
1852
+ var vendorSchema = globalResourceSchema.shape({
1853
+ categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
1854
+ foodTruck: yup3.boolean().label("Food Truck").required("Please specify if the vendor is a food truck"),
1855
+ products: yup3.object().shape({
1856
+ active: yup3.boolean().nullable().optional(),
1857
+ productsList: yup3.array().of(vendorMenuSchema).nullable().optional()
1858
+ }).nullable().optional(),
1859
+ vendorType: yup3.mixed().oneOf(Object.values(EnumVendorType)).required("Please select a Vendor type")
1860
+ });
1861
+ var unregisteredVendorSchema = yup3.object().shape({
1862
+ categoryIds: yup3.array().of(yup3.string().defined()).min(1, "Category list must contain at least one item").required("Categories are required"),
1863
+ dateTime: yup3.array().of(dateTimeSchema).min(1, "DateTime list must contain at least one item").required("DateTime is required"),
1864
+ email: emailOptionalSchema,
1865
+ inviterId: yup3.string().required("Inviter ID is required"),
1866
+ name: yup3.string().label("Stallholder Name").trim().min(3, "Name must be at least 3 characters").required("Name is required"),
1867
+ region: yup3.string().label("Region").required("Region is required")
1868
+ });
1869
+ var vendorInfoSchema = yup3.object().shape({
1870
+ product: yup3.object().shape({
1871
+ foodFlavors: yup3.array().of(
1872
+ yup3.mixed().oneOf(Object.values(EnumFoodFlavor), "Invalid flavor selected").required("Flavor is required")
1873
+ ).min(1, "Food flavors list must contain at least one item").required("Food flavors are required"),
1874
+ packaging: yup3.array().of(yup3.string().defined()).min(1, "Packaging list must contain at least one item").required("Packaging is required"),
1875
+ priceRange: yup3.object().shape({
1876
+ max: yup3.string().required("Max price is required").test(
1877
+ "is-number",
1878
+ "Max price must be a valid number",
1879
+ (value) => value !== void 0 && value !== "" && !isNaN(Number(value))
1880
+ ).test(
1881
+ "is-greater",
1882
+ "Max price must be greater than or equal to Min price",
1883
+ function(max) {
1884
+ const { min } = this.parent;
1885
+ if (!max || !min) return true;
1886
+ const maxNum = Number(max);
1887
+ const minNum = Number(min);
1888
+ if (isNaN(maxNum) || isNaN(minNum)) return true;
1889
+ return maxNum >= minNum;
1890
+ }
1891
+ ),
1892
+ min: yup3.string().required("Min price is required").test(
1893
+ "is-number",
1894
+ "Min price must be a valid number",
1895
+ (value) => value !== void 0 && value !== "" && !isNaN(Number(value))
1896
+ )
1897
+ }),
1898
+ producedIn: yup3.array().of(yup3.string().defined()).min(1, "Produced in list must contain at least one item").required("Produced in is required")
1899
+ }),
1900
+ requirements: yup3.object().shape({
1901
+ electricity: yup3.object().shape({
1902
+ details: yup3.string().trim().test(
1903
+ "details-required",
1904
+ "Please add electricity details",
1905
+ function(value) {
1906
+ return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
1907
+ }
1908
+ ).nullable(),
1909
+ isRequired: yup3.boolean().required("Electricity requirement is required")
1910
+ }),
1911
+ gazebo: yup3.object().shape({
1912
+ details: yup3.string().trim().test(
1913
+ "details-required",
1914
+ "Please add gazebo details",
1915
+ function(value) {
1916
+ return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
1917
+ }
1918
+ ).nullable(),
1919
+ isRequired: yup3.boolean().required("Gazebo requirement is required")
1920
+ }),
1921
+ table: yup3.object().shape({
1922
+ details: yup3.string().trim().test(
1923
+ "details-required",
1924
+ "Please add table details",
1925
+ function(value) {
1926
+ return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
1927
+ }
1928
+ ).nullable(),
1929
+ isRequired: yup3.boolean().required("Table requirement is required")
1930
+ })
1931
+ }).optional(),
1932
+ stallInfo: yup3.object().shape({
1933
+ size: yup3.object().shape({
1934
+ depth: yup3.string().required("Depth is required").test(
1935
+ "is-number",
1936
+ "Depth must be a valid number",
1937
+ (value) => value !== void 0 && value !== "" && !isNaN(Number(value))
1938
+ ).test(
1939
+ "is-positive",
1940
+ "Depth must be greater than 0",
1941
+ (value) => value !== void 0 && value !== "" && Number(value) > 0
1942
+ ),
1943
+ width: yup3.string().required("Width is required").test(
1944
+ "is-number",
1945
+ "Width must be a valid number",
1946
+ (value) => value !== void 0 && value !== "" && !isNaN(Number(value))
1947
+ ).test(
1948
+ "is-positive",
1949
+ "Width must be greater than 0",
1950
+ (value) => value !== void 0 && value !== "" && Number(value) > 0
1951
+ )
1952
+ })
1953
+ }),
1954
+ vendorId: yup3.string().trim().required("Vendor ID is required")
1955
+ });
1956
+
1957
+ // src/yupSchema/user.ts
1958
+ var yup4 = __toESM(require("yup"));
1959
+ var userSchema = yup4.object().shape({
1960
+ active: yup4.boolean().required("Active is required"),
1961
+ email: emailRequiredSchema,
1962
+ firstName: yup4.string().label("First Name").trim().required("First name is required"),
1963
+ lastName: yup4.string().label("Last Name").trim().required("Last name is required"),
1964
+ isTester: yup4.boolean().required("Tester status is required"),
1965
+ password: yup4.string().nullable().trim().label("Password").min(8, "Password must be at least 8 characters long").notRequired(),
1966
+ preferredRegion: yup4.string().label("Preferred Region").required("Preferred region is required"),
1967
+ confirmPassword: yup4.string().nullable().trim().label("Confirm Password").when("password", {
1968
+ is: (val) => !!val,
1969
+ // only necessary if password typed
1970
+ then: (schema) => schema.required("Confirm Password is required").oneOf([yup4.ref("password")], "Passwords must match"),
1971
+ otherwise: (schema) => schema.notRequired()
1972
+ }),
1973
+ role: yup4.mixed().oneOf(Object.values(EnumUserRole)).required("Role is required")
1974
+ });
1975
+
1976
+ // src/yupSchema/auth.ts
1977
+ var yup5 = __toESM(require("yup"));
1978
+ var loginSchema = yup5.object().shape({
1979
+ email: emailRequiredSchema,
1980
+ password: passwordSchema
1981
+ });
1982
+ var registerSchema = yup5.object().shape({
1983
+ email: emailRequiredSchema,
1984
+ firstName: yup5.string().label("First Name").required("First Name is required"),
1985
+ lastName: yup5.string().label("Last Name").required("Last Name is required"),
1986
+ password: passwordSchema,
1987
+ preferredRegion: yup5.string().label("Preferred Region").required("Preferred Region is required")
1988
+ });
1989
+ var requestPasswordResetSchema = yup5.object().shape({
1990
+ email: emailRequiredSchema
1991
+ });
1992
+ var resetPasswordSchema = yup5.object().shape({
1993
+ email: emailRequiredSchema,
1994
+ password: passwordSchema,
1995
+ // eslint-disable-next-line sort-keys
1996
+ confirmPassword: yup5.string().oneOf([yup5.ref("password")], "Passwords must match").required("Confirm Password is required")
1997
+ });
1998
+ var validateVerificationTokenSchema = yup5.object().shape({
1999
+ email: emailRequiredSchema,
2000
+ verificationToken: yup5.string().required("Verification code is required").matches(/^\d{6}$/, "Verification code must be exactly 6 digits")
2001
+ });
1756
2002
 
1757
- // src/formFields/categories/healthAndWellness.ts
1758
- var healthAndWellness = [
1759
- {
1760
- id: "health-wellness",
1761
- name: "Health & Wellness",
1762
- description: "Natural products and services that promote wellbeing, body care, and holistic health.",
1763
- subcategories: [
1764
- {
1765
- id: "body-skincare",
1766
- name: "Body & Skincare",
1767
- items: [
1768
- {
1769
- id: "skincare-body-products",
1770
- name: "Skincare & Body Products",
1771
- description: "Soaps, creams, lip balms, bath salts, bath bombs, body oils, natural deodorants."
1772
- },
1773
- {
1774
- id: "other-body-care-items",
1775
- name: "Other body care items",
1776
- description: "Additional handmade or eco-conscious personal care goods."
1777
- }
1778
- ]
1779
- },
1780
- {
1781
- id: "aromatherapy-herbal-wellness",
1782
- name: "Aromatherapy & Herbal Wellness",
1783
- items: [
1784
- {
1785
- id: "aromatherapy-herbal-remedies",
1786
- name: "Aromatherapy & Herbal Remedies",
1787
- description: "Essential oils, herbal balms, massage oils, salves, natural teas, rollers."
1788
- },
1789
- {
1790
- id: "other-herbal-aroma-products",
1791
- name: "Other herbal or aroma-based products",
1792
- description: "Wellness blends, herb sachets, custom infusions."
1793
- }
1794
- ]
1795
- },
1796
- {
1797
- id: "wellness-tools-accessories",
1798
- name: "Wellness Tools & Accessories",
1799
- items: [
1800
- {
1801
- id: "wellness-accessories",
1802
- name: "Wellness Accessories",
1803
- description: "Yoga mats, meditation cushions, eye pillows, incense, smudging sticks, eco water bottles, wellness journals."
1804
- },
1805
- {
1806
- id: "spiritual-tools-crystals",
1807
- name: "Spiritual Tools & Crystals",
1808
- description: "Healing crystals, gemstone bracelets, pendulums, sprays, spiritual kits, altar decor."
1809
- },
1810
- {
1811
- id: "other-wellness-spiritual-items",
1812
- name: "Other wellness or spiritual items",
1813
- description: "Items that aid relaxation, focus, or inner work."
1814
- }
1815
- ]
2003
+ // src/yupSchema/ad.ts
2004
+ var yup6 = __toESM(require("yup"));
2005
+ var adResourceSchema = yup6.object({
2006
+ adDescription: yup6.string().trim().required("Ad description is required").max(150, "Ad description must be at most 150 characters"),
2007
+ adImage: yup6.string().required("Ad image is required"),
2008
+ adStyle: yup6.mixed().oneOf(Object.values(EnumAdStyle), "Please select a valid ad style").required("Ad style is required"),
2009
+ adTitle: yup6.string().trim().required("Ad title is required").max(30, "Ad title must be at most 30 characters"),
2010
+ adType: yup6.mixed().oneOf(Object.values(EnumAdType), "Please select a valid ad type").required("Ad type is required"),
2011
+ resourceId: yup6.string().required("Resource ID is required"),
2012
+ resourceName: yup6.string().required("Resource name is required"),
2013
+ resourceRegion: yup6.string().required("Resource region is required"),
2014
+ resourceType: yup6.mixed().oneOf(Object.values(EnumResourceType), "Please select Event or Vendor").required("Resource type is required")
2015
+ });
2016
+ var adSchema = yup6.object().shape({
2017
+ active: yup6.boolean().required("Active status is required"),
2018
+ end: yup6.date().required("End date is required").test("is-future-date", "End date must be in the future", (value) => {
2019
+ if (!value) return false;
2020
+ const endDate = new Date(value);
2021
+ const now = /* @__PURE__ */ new Date();
2022
+ return endDate > now;
2023
+ }).when("start", {
2024
+ is: (val) => val && val.length > 0,
2025
+ then: (schema) => schema.test(
2026
+ "is-after-start",
2027
+ "End date must be after start date",
2028
+ function(value) {
2029
+ const { start } = this.parent;
2030
+ if (!value || !start) return false;
2031
+ return new Date(value) > new Date(start);
1816
2032
  }
1817
- ]
1818
- }
2033
+ )
2034
+ }),
2035
+ resource: adResourceSchema.required("Resource information is required"),
2036
+ showOn: yup6.array().of(yup6.mixed().oneOf(Object.values(EnumAdShowOn)).required()).min(1, "At least one display location is required").required("Display location is required"),
2037
+ status: yup6.mixed().oneOf(Object.values(EnumAdStatus)).required("Ad status is required"),
2038
+ start: yup6.date().when("status", {
2039
+ is: (status) => status !== "Active" /* ACTIVE */,
2040
+ then: () => yup6.date().required("Start date is required").test("is-future-date", "Start date must be in the future", (value) => {
2041
+ if (!value) return false;
2042
+ return value > /* @__PURE__ */ new Date();
2043
+ }),
2044
+ // Keep `start` optional (not null) when ACTIVE to match TS type `start?: Date`.
2045
+ otherwise: () => yup6.date().notRequired()
2046
+ }),
2047
+ targetRegion: yup6.array().of(yup6.string().required()).min(1, "At least one target region is required").required("Target region is required")
2048
+ });
2049
+
2050
+ // src/yupSchema/partner.ts
2051
+ var yup7 = __toESM(require("yup"));
2052
+ var partnerSchema = globalResourceSchema.shape({
2053
+ location: locationSchema,
2054
+ nzbn: yup7.string().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
2055
+ partnerType: yup7.mixed().oneOf(Object.values(EnumPartnerType), "Please select a valid Partner type").required("Please select a Partner type")
2056
+ });
2057
+
2058
+ // src/yupSchema/post.ts
2059
+ var yup8 = __toESM(require("yup"));
2060
+
2061
+ // src/formFields/vendor/vendorInfo.ts
2062
+ var packagingTypes = [
2063
+ "Biodegradable",
2064
+ "Compostable",
2065
+ "Fabric",
2066
+ "Glass",
2067
+ "Other",
2068
+ "Paper",
2069
+ "Plastic",
2070
+ "Recyclable",
2071
+ "Reusable",
2072
+ "Single-use",
2073
+ "Wood"
2074
+ ];
2075
+ var producedIngTypes = [
2076
+ "Commercial Kitchen",
2077
+ "Home Premises",
2078
+ "Factory",
2079
+ "Farm",
2080
+ "Other"
1819
2081
  ];
2082
+ var packagingOptions = mapArrayToOptions(packagingTypes);
2083
+ var producedIngOptions = mapArrayToOptions(producedIngTypes);
2084
+ var foodFlavourOptions = Object.values(
2085
+ EnumFoodFlavor
2086
+ ).map((flavour) => ({
2087
+ label: flavour.replaceAll("_", " "),
2088
+ value: flavour
2089
+ }));
1820
2090
 
1821
- // src/formFields/categories/homeGardenHousehold.ts
1822
- var homeGardenHousehold = [
1823
- {
1824
- id: "home-garden-household-goods",
1825
- name: "Home, Garden & Household Goods",
1826
- description: "Functional, decorative, and eco-conscious products designed for everyday use indoors and outdoors.",
1827
- subcategories: [
1828
- {
1829
- id: "home-decor-living",
1830
- name: "Home Decor & Living",
1831
- items: [
1832
- {
1833
- id: "home-decor",
1834
- name: "Home Decor",
1835
- description: "Cushions, wall art, table runners, vases, trays, mirrors, handmade centerpieces."
1836
- },
1837
- {
1838
- id: "kitchenware-dining",
1839
- name: "Kitchenware & Dining",
1840
- description: "Mugs, bowls, cutting boards, utensils, jars, coasters, kitchen textiles."
1841
- },
1842
- {
1843
- id: "mini-figures-decor",
1844
- name: "Mini Figures & D\xE9cor",
1845
- description: "handmade or non-handmade small figures, tiny houses and miniature decorative items."
1846
- },
1847
- {
1848
- id: "other-indoor-home-items",
1849
- name: "Other indoor home items",
1850
- description: "Any decorative or practical household items not listed above."
1851
- }
1852
- ]
1853
- },
1854
- {
1855
- id: "cleaning-eco-essentials",
1856
- name: "Cleaning & Eco Essentials",
1857
- items: [
1858
- {
1859
- id: "cleaning-eco-supplies",
1860
- name: "Cleaning & Eco Supplies",
1861
- description: "Beeswax wraps, reusable cloths, brushes, natural soaps, detergent bars, eco sponges."
1862
- },
1863
- {
1864
- id: "other-eco-cleaning-items",
1865
- name: "Other eco or cleaning items",
1866
- description: "Environmentally friendly goods not listed above."
1867
- }
1868
- ]
1869
- },
1870
- {
1871
- id: "garden-outdoor-living",
1872
- name: "Garden & Outdoor Living",
1873
- items: [
1874
- {
1875
- id: "plants-botanical-decor",
1876
- name: "Plants & Botanical Decor",
1877
- description: "Potted herbs, succulents, dried flowers, terrariums, plant-based ornaments."
1878
- },
1879
- {
1880
- id: "fresh-flowers-botanical-bouquets",
1881
- name: "Fresh Flowers & Botanical Bouquets",
1882
- description: "Cut flowers, seasonal bouquets, simple floral arrangements, native flower selections, and other fresh botanical items."
1883
- },
1884
- {
1885
- id: "natural-decor-nature-inspired-elements",
1886
- name: "Natural Decor & Nature-Inspired Elements",
1887
- description: "Seashell d\xE9cor, driftwood pieces, sand ornaments, natural wood accents, stone or mineral decorations, and other nature-based decorative items."
1888
- },
1889
- {
1890
- id: "garden-tools-outdoor-items",
1891
- name: "Garden Tools & Outdoor Items",
1892
- description: "Plant markers, garden signs, stakes, small tools, wind chimes, gifts."
1893
- },
1894
- {
1895
- id: "other-outdoor-garden-products",
1896
- name: "Other outdoor or garden products",
1897
- description: "Functional or decorative items for outside use."
1898
- }
1899
- ]
1900
- }
1901
- ]
1902
- }
2091
+ // src/formFields/event/event.ts
2092
+ var availableTagTypes = [
2093
+ { icon: "human-male-female-child", label: "All Ages" },
2094
+ { icon: "weather-sunny", label: "Day Market" },
2095
+ { icon: "account-child", label: "Family Friendly" },
2096
+ { icon: "ticket-percent", label: "Free Entry" },
2097
+ { icon: "home-city", label: "Indoor Market" },
2098
+ { icon: "music", label: "Live Music" },
2099
+ { icon: "bus", label: "Near Bustop" },
2100
+ { icon: "slide", label: "Near Playground" },
2101
+ { icon: "train", label: "Near Train Station" },
2102
+ { icon: "weather-night", label: "Night Market" },
2103
+ { icon: "tree", label: "Outdoor Market" },
2104
+ { icon: "car", label: "Parking Available" },
2105
+ { icon: "dog", label: "Pet Friendly" },
2106
+ { icon: "ship-wheel", label: "Port Nearby" },
2107
+ { icon: "toilet", label: "Toilet Available" },
2108
+ { icon: "wheelchair-accessibility", label: "Wheelchair Accessible" }
1903
2109
  ];
2110
+ var tagOptions = availableTagTypes.map((tag) => ({
2111
+ label: tag.label,
2112
+ value: tag.label
2113
+ }));
1904
2114
 
1905
- // src/formFields/categories/petProductsAndAnimalGoods.ts
1906
- var petProductsAndAnimalGoods = [
2115
+ // src/formFields/event/eventInfo.ts
2116
+ var stallTypes = [
2117
+ "1.8m table only",
2118
+ "2x2m mini stall",
2119
+ "3x3m tent site",
2120
+ "Corner stall",
2121
+ "Craft stall with power",
2122
+ "Craft stall without power",
2123
+ "Double stall (6x3m)",
2124
+ "Food truck site",
2125
+ "Food vendor with power",
2126
+ "Food vendor without power",
2127
+ "Inside hall stall",
2128
+ "Non-profit/community stall",
2129
+ "Outdoor open area",
2130
+ "Shared table space",
2131
+ "Wall-based vendor",
2132
+ "Workshop/seating area"
2133
+ ];
2134
+ var stallTypeOptions = stallTypes.map((type) => ({
2135
+ label: type,
2136
+ price: 0,
2137
+ stallCapacity: 0
2138
+ }));
2139
+
2140
+ // src/formFields/global.ts
2141
+ var emailField = {
2142
+ helperText: "Enter email address",
2143
+ keyboardType: "email-address",
2144
+ name: "email",
2145
+ placeholder: "Email"
2146
+ };
2147
+ var companyContactFields = [
1907
2148
  {
1908
- id: "pet-products-animal-goods",
1909
- name: "Pet Products & Animal Goods",
1910
- description: "Items for pets, pet lovers, or animal-themed market stalls.",
1911
- subcategories: [
1912
- {
1913
- id: "products-for-pets",
1914
- name: "Products for Pets",
1915
- items: [
1916
- {
1917
- id: "pet-food-treats",
1918
- name: "Pet Food & Treats",
1919
- description: "Homemade dog biscuits, cat snacks, natural chews, pet-safe cakes, training treats."
1920
- },
1921
- {
1922
- id: "apparel-toys-accessories",
1923
- name: "Apparel, Toys & Accessories",
1924
- description: "Leashes, collars, harnesses, toys, grooming tools, beds, travel gear, jumpers, bandanas."
1925
- },
1926
- {
1927
- id: "other-pet-products",
1928
- name: "Other pet products",
1929
- description: "Any pet-related items not listed above."
1930
- }
1931
- ]
1932
- },
1933
- {
1934
- id: "small-pets-birds-exotic-animals",
1935
- name: "Small Pets, Birds & Exotic Animals",
1936
- items: [
1937
- {
1938
- id: "products-small-pets-birds-exotics",
1939
- name: "Products for Small Pets, Birds & Exotics",
1940
- description: "Toys, enclosures, perches, feeding bowls, bedding, habitat decor, transport gear, and care items for birds, rabbits, hamsters, reptiles, turtles, aquarium pets, and other exotic species."
1941
- },
1942
- {
1943
- id: "other-small-exotic-animal-items",
1944
- name: "Other small or exotic animal items",
1945
- description: "Unusual accessories for non-mainstream pets."
1946
- }
1947
- ]
1948
- },
1949
- {
1950
- id: "farm-working-animals",
1951
- name: "Farm & Working Animals",
1952
- items: [
1953
- {
1954
- id: "goods-for-farm-working-animals",
1955
- name: "Goods for Farm & Working Animals",
1956
- description: "Treats, care products, equipment, signage and accessories for chickens, goats, alpacas, horses, and other livestock."
1957
- },
1958
- {
1959
- id: "other-farm-animal-items",
1960
- name: "Other farm animal-related items",
1961
- description: "Rural, barnyard, or utility-specific gear not listed above."
1962
- }
1963
- ]
1964
- },
1965
- {
1966
- id: "animal-themed-gifts-custom-items",
1967
- name: "Animal-Themed Gifts & Custom Items",
1968
- items: [
1969
- {
1970
- id: "pet-art-custom-gifts",
1971
- name: "Pet Art & Custom Gifts",
1972
- description: "Pet portraits, name tags, personalized bowls, breed-specific items, pet-themed home decor and stationery."
1973
- },
1974
- {
1975
- id: "other-animal-themed-gifts",
1976
- name: "Other animal-themed gifts",
1977
- description: "Artistic or sentimental items made for animal lovers."
1978
- }
1979
- ]
1980
- }
1981
- ]
2149
+ ...emailField,
2150
+ name: "contactDetails.email"
2151
+ },
2152
+ {
2153
+ helperText: "Enter your mobile phone number",
2154
+ keyboardType: "phone-pad",
2155
+ name: "contactDetails.mobilePhone",
2156
+ placeholder: "Mobile Phone Number"
2157
+ },
2158
+ {
2159
+ helperText: "Enter your landline phone number",
2160
+ keyboardType: "phone-pad",
2161
+ name: "contactDetails.landlinePhone",
2162
+ placeholder: "Landline Phone Number"
1982
2163
  }
1983
2164
  ];
1984
2165
 
1985
- // src/formFields/categories/serviceAndExperience.ts
1986
- var serviceAndExperience = [
2166
+ // src/formFields/auth.ts
2167
+ var loginFields = [
1987
2168
  {
1988
- id: "services-experiences",
1989
- name: "Services & Experiences",
1990
- description: "On-site offerings that provide entertainment, personal care, learning, or interactive activities beyond products.",
1991
- subcategories: [
1992
- {
1993
- id: "personal-care-body-art",
1994
- name: "Personal Care & Body Art",
1995
- items: [
1996
- {
1997
- id: "nails-handcare",
1998
- name: "Nails & Handcare",
1999
- description: "Nail painting, decoration, quick manicures, temporary nail extensions."
2000
- },
2001
- {
2002
- id: "hair-styling-braiding",
2003
- name: "Hair Styling & Braiding",
2004
- description: "Hair braiding, plaits, child-friendly festival hairstyles."
2005
- },
2006
- {
2007
- id: "face-body-decoration",
2008
- name: "Face & Body Decoration",
2009
- description: "Henna, glitter tattoos, face painting, light makeup, eyelash styling, professional tattooing (where permitted)."
2010
- },
2011
- {
2012
- id: "other-beauty-grooming-services",
2013
- name: "Other beauty or grooming services",
2014
- description: "Small-scale personal care options offered on-site."
2015
- }
2016
- ]
2017
- },
2018
- {
2019
- id: "practical-wellness-services",
2020
- name: "Practical & Wellness Services",
2021
- items: [
2022
- {
2023
- id: "mobile-practical-services",
2024
- name: "Mobile & Practical Services",
2025
- description: "Shoe repair, phone repairs, knife sharpening, key cutting, battery replacement, bike repairs, engraving."
2026
- },
2027
- {
2028
- id: "wellness-alternative-therapies",
2029
- name: "Wellness & Alternative Therapies",
2030
- description: "Massage, aromatherapy, reflexology, energy healing (e.g. Reiki), natural consultations."
2031
- },
2032
- {
2033
- id: "other-service-based-offerings",
2034
- name: "Other service-based offerings",
2035
- description: "Wellness or functional services not listed above."
2036
- }
2037
- ]
2038
- },
2039
- {
2040
- id: "creative-educational-experiences",
2041
- name: "Creative & Educational Experiences",
2042
- items: [
2043
- {
2044
- id: "creative-workshops-maker-services",
2045
- name: "Creative Workshops & Maker Services",
2046
- description: "Candle making, pottery, jewelry crafting, soap or balm workshops, calligraphy, seasonal crafts."
2047
- },
2048
- {
2049
- id: "education-awareness-stalls",
2050
- name: "Education & Awareness Stalls",
2051
- description: "Eco awareness, cultural storytelling, local history, first aid demos, health booths, sustainability education, kids\u2019 science displays."
2052
- },
2053
- {
2054
- id: "other-creative-educational-services",
2055
- name: "Other creative or educational services",
2056
- description: "Informal learning, demonstrations, or community-focused sessions."
2057
- }
2058
- ]
2059
- },
2060
- {
2061
- id: "kids-activities-family-fun",
2062
- name: "Kids\u2019 Activities & Family Fun",
2063
- items: [
2064
- {
2065
- id: "kids-activities-fun",
2066
- name: "Kids\u2019 Activities & Fun",
2067
- description: "Face painting, glitter tattoos, pony rides, bouncy castles, small amusement rides, balloon twisting, animal petting zones."
2068
- },
2069
- {
2070
- id: "other-family-oriented-activities",
2071
- name: "Other family-oriented activities",
2072
- description: "On-site entertainment that engages children or family groups."
2073
- }
2074
- ]
2075
- }
2076
- ]
2169
+ ...emailField,
2170
+ required: true
2171
+ },
2172
+ {
2173
+ helperText: "Enter password",
2174
+ keyboardType: "default",
2175
+ name: "password",
2176
+ placeholder: "Password",
2177
+ required: true,
2178
+ secureTextEntry: true
2179
+ }
2180
+ ];
2181
+ var registerFields = [
2182
+ {
2183
+ helperText: "Enter first name",
2184
+ keyboardType: "default",
2185
+ name: "firstName",
2186
+ placeholder: "First Name",
2187
+ required: true
2188
+ },
2189
+ {
2190
+ helperText: "Enter last name",
2191
+ keyboardType: "default",
2192
+ name: "lastName",
2193
+ placeholder: "Last Name",
2194
+ required: true
2195
+ },
2196
+ {
2197
+ ...emailField,
2198
+ required: true
2199
+ },
2200
+ {
2201
+ helperText: "Enter password",
2202
+ keyboardType: "default",
2203
+ name: "password",
2204
+ placeholder: "Password",
2205
+ required: true,
2206
+ secureTextEntry: true
2207
+ },
2208
+ {
2209
+ helperText: "Promotional code (optional)",
2210
+ keyboardType: "default",
2211
+ name: "promoCode",
2212
+ placeholder: "Promotional Code",
2213
+ required: false
2077
2214
  }
2078
2215
  ];
2079
-
2080
- // src/formFields/categories/toysChildren.ts
2081
- var toysChildren = [
2216
+ var requestPasswordResetFields = [
2082
2217
  {
2083
- id: "toys-childrens-items",
2084
- name: "Toys & Children\u2019s Items",
2085
- description: "Products and services made for or inspired by children.",
2086
- subcategories: [
2087
- {
2088
- id: "toys-playthings",
2089
- name: "Toys & Playthings",
2090
- items: [
2091
- {
2092
- id: "toys-classic-electric-character",
2093
- name: "Toys \u2013 Classic, Electric & Character-Based",
2094
- description: "Building blocks, dolls, puzzles, plush animals, toy vehicles, remote-control toys, light-up gadgets, character figurines, themed playsets."
2095
- },
2096
- {
2097
- id: "handmade-toys-crafty-playthings",
2098
- name: "Handmade Toys & Crafty Playthings",
2099
- description: "Wooden puzzles, crocheted animals, felt toys, fabric dolls, DIY kits, nature-inspired games, sensory toys."
2100
- },
2101
- {
2102
- id: "other-play-items",
2103
- name: "Other play items",
2104
- description: "Toys not listed above, including limited-edition or hybrid items."
2105
- }
2106
- ]
2107
- },
2108
- {
2109
- id: "educational-developmental",
2110
- name: "Educational & Developmental",
2111
- items: [
2112
- {
2113
- id: "educational-developmental-tools",
2114
- name: "Educational & Developmental Tools",
2115
- description: "STEM kits, Montessori toys, storybooks, picture books, flashcards, early learning games, language tools."
2116
- },
2117
- {
2118
- id: "other-educational-experience-based-items",
2119
- name: "Other educational or experience-based items",
2120
- description: "Creative experiences or learning aids not listed above."
2121
- }
2122
- ]
2123
- },
2124
- {
2125
- id: "baby-kidswear-accessories",
2126
- name: "Baby & Kidswear + Accessories",
2127
- items: [
2128
- {
2129
- id: "baby-kidswear-accessories",
2130
- name: "Baby & Kidswear + Accessories",
2131
- description: "Handmade baby clothes, toddler outfits, bibs, hats, headbands, bags, pacifier clips, soft shoes."
2132
- },
2133
- {
2134
- id: "baby-developmental-soft-toys",
2135
- name: "Baby Developmental Soft Toys",
2136
- description: "Sensory toys, rattles, fabric books, teething items, high-contrast cards, and early-skill. Montessori materials designed to support infants\u2019 cognitive and motor development."
2137
- },
2138
- {
2139
- id: "other-childrens-clothing-accessories",
2140
- name: "Other children\u2019s clothing or accessories",
2141
- description: "Unique fashion or functional pieces for kids."
2142
- }
2143
- ]
2144
- }
2145
- ]
2218
+ ...emailField,
2219
+ helperText: "Enter email address to reset your password",
2220
+ required: true
2146
2221
  }
2147
2222
  ];
2148
-
2149
- // src/formFields/categories/vintageAndAntique.ts
2150
- var vintageAndAntique = [
2223
+ var validateVerificationTokenFields = [
2151
2224
  {
2152
- id: "vintage-antique",
2153
- name: "Vintage & Antique",
2154
- description: "Unique, historic, or nostalgic items with collectible or decorative value.",
2155
- subcategories: [
2156
- {
2157
- id: "vintage-antique-clothing-accessories",
2158
- name: "Vintage & Antique Clothing & Accessories",
2159
- items: [
2160
- {
2161
- id: "clothing-vintage-fashion",
2162
- name: "Clothing and wearable items from past eras",
2163
- description: "Vintage dresses, jackets, hats, gloves, belts, bags, shoes, jewellery."
2164
- },
2165
- {
2166
- id: "other-clothing-accessory-items",
2167
- name: "Other clothing-related items",
2168
- description: "Hair clips, brooches, pins, scarf rings, small fashion accessories."
2169
- }
2170
- ]
2171
- },
2172
- {
2173
- id: "collectibles-memorabilia",
2174
- name: "Collectibles & Memorabilia",
2175
- items: [
2176
- {
2177
- id: "small-collectible-items",
2178
- name: "Small collectible items with historical or nostalgic significance",
2179
- description: "Coins, stamps, toys, postcards, comics, sports cards, vintage packaging."
2180
- },
2181
- {
2182
- id: "other-collectible-items",
2183
- name: "Other collectible items",
2184
- description: "Rare small objects, miniature figurines, special-edition items."
2185
- }
2186
- ]
2187
- },
2188
- {
2189
- id: "homewares-decor-curiosities",
2190
- name: "Homewares, Decor & Curiosities",
2191
- items: [
2192
- {
2193
- id: "decorative-functional-vintage-items",
2194
- name: "Decorative or functional items with a vintage or antique aesthetic",
2195
- description: "Teacups, plates, vases, mirrors, clocks, furniture, old tools, lanterns, typewriters, curiosities."
2196
- },
2197
- {
2198
- id: "handmade-vintage-art",
2199
- name: "Handmade vintage art",
2200
- description: "Paintings, sculptures, crafted pieces."
2201
- },
2202
- {
2203
- id: "other-home-decor-items",
2204
- name: "Other home or decor items",
2205
- description: "Decorative pieces not listed above, unique household objects."
2206
- }
2207
- ]
2208
- },
2209
- {
2210
- id: "vintage-media-printed-nostalgia",
2211
- name: "Vintage Media & Printed Nostalgia",
2212
- items: [
2213
- {
2214
- id: "older-media-printed-works",
2215
- name: "Older media formats and printed works",
2216
- description: "Vinyl records, cassette tapes, CDs, DVDs, books, magazines, board games, posters."
2217
- },
2218
- {
2219
- id: "other-media-printed-items",
2220
- name: "Other media or printed items",
2221
- description: "Maps, manuals, leaflets, out-of-print materials."
2222
- }
2223
- ]
2224
- },
2225
- {
2226
- id: "other-vintage-antique-items",
2227
- name: "Other Vintage & Antique Items",
2228
- items: [
2229
- {
2230
- id: "any-vintage-antique-items-not-listed",
2231
- name: "Any vintage or antique items not listed above",
2232
- description: "Unique, rare or uncategorised pieces."
2233
- }
2234
- ]
2235
- }
2236
- ]
2225
+ ...emailField,
2226
+ disabled: true,
2227
+ helperText: "Your email address"
2228
+ },
2229
+ {
2230
+ helperText: "Enter the Verification code sent to you by email",
2231
+ keyboardType: "number-pad",
2232
+ name: "verificationToken",
2233
+ placeholder: "Verification code",
2234
+ required: true
2237
2235
  }
2238
2236
  ];
2239
2237
 
2240
- // src/formFields/categories/index.ts
2241
- var categoryColors = {
2242
- "clothing-fashion": "#9D4EDD",
2243
- "electronics-technology": "#3AF3FF",
2244
- "food-beverages": "#FF0D1F",
2245
- "handmade-local-products": "#EE7E54",
2246
- "health-wellness": "#E23794",
2247
- "home-garden-household-goods": "#067325",
2248
- "pet-products-animal-goods": "#68E788",
2249
- "services-experiences": "#2E16A5",
2250
- "toys-childrens-items": "#FFF966",
2251
- "vintage-antique": "#8D6748"
2252
- };
2253
- var assignColorToCategories = (categories) => {
2254
- const result = categories.map((category) => ({
2255
- ...category,
2256
- color: categoryColors[category.id]
2257
- }));
2258
- return result;
2259
- };
2260
- var availableCategories = assignColorToCategories([
2261
- ...foodAndBeverages,
2262
- ...handmadeAndLocalProducts,
2263
- ...clothingAndFashion,
2264
- ...homeGardenHousehold,
2265
- ...toysChildren,
2266
- ...healthAndWellness,
2267
- ...electronicsAndTechnology,
2268
- ...vintageAndAntique,
2269
- ...petProductsAndAnimalGoods,
2270
- ...serviceAndExperience
2271
- ]);
2238
+ // src/formFields/user.ts
2239
+ var profileFields = [
2240
+ {
2241
+ ...emailField,
2242
+ disabled: true,
2243
+ helperText: "Email cannot be changed"
2244
+ },
2245
+ {
2246
+ helperText: "Enter first name",
2247
+ keyboardType: "default",
2248
+ name: "firstName",
2249
+ placeholder: "First Name"
2250
+ },
2251
+ {
2252
+ helperText: "Enter last name",
2253
+ keyboardType: "default",
2254
+ name: "lastName",
2255
+ placeholder: "Last Name"
2256
+ },
2257
+ {
2258
+ helperText: "Enter your new password",
2259
+ keyboardType: "default",
2260
+ name: "password",
2261
+ placeholder: "Password",
2262
+ secureTextEntry: true
2263
+ },
2264
+ {
2265
+ helperText: "Confirm your new password",
2266
+ keyboardType: "default",
2267
+ name: "confirmPassword",
2268
+ placeholder: "Confirm Password",
2269
+ secureTextEntry: true
2270
+ }
2271
+ ];
2272
2272
 
2273
2273
  // src/formFields/socialMedia.ts
2274
2274
  var socialMedia = [