@timardex/cluemart-shared 1.0.28 → 1.0.30
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.
- package/dist/{chunk-GMCWFVU5.mjs → chunk-NWMPRKZ7.mjs} +10 -3
- package/dist/{chunk-GMCWFVU5.mjs.map → chunk-NWMPRKZ7.mjs.map} +1 -1
- package/dist/{chunk-GMOTXE7A.mjs → chunk-OXXSIU3M.mjs} +1 -7
- package/dist/chunk-OXXSIU3M.mjs.map +1 -0
- package/dist/enums/index.cjs +0 -7
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +1 -5
- package/dist/enums/index.d.ts +1 -5
- package/dist/enums/index.mjs +1 -3
- package/dist/formFields/index.cjs +177 -16
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +3 -3
- package/dist/formFields/index.d.ts +3 -3
- package/dist/formFields/index.mjs +178 -14
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/{global-BRfKKan0.d.ts → global-BPTHVdhZ.d.ts} +13 -6
- package/dist/{global-DwhGi-4q.d.mts → global-BXE1MTDE.d.mts} +13 -6
- package/dist/graphql/index.cjs +7 -1
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.mjs +7 -1
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +80 -65
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +57 -49
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +252 -72
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +14 -10
- package/dist/index.d.ts +14 -10
- package/dist/index.mjs +250 -70
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.cjs +8 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +3 -2
- package/dist/utils/index.d.ts +3 -2
- package/dist/utils/index.mjs +4 -2
- package/package.json +1 -1
- package/dist/chunk-GMOTXE7A.mjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -34,7 +34,6 @@ __export(index_exports, {
|
|
|
34
34
|
EnumNotification: () => EnumNotification,
|
|
35
35
|
EnumPaymentMethod: () => EnumPaymentMethod,
|
|
36
36
|
EnumRegions: () => EnumRegions,
|
|
37
|
-
EnumRejectionPolicy: () => EnumRejectionPolicy,
|
|
38
37
|
EnumRelationResource: () => EnumRelationResource,
|
|
39
38
|
EnumResourceType: () => EnumResourceType,
|
|
40
39
|
EnumResourceTypeIcon: () => EnumResourceTypeIcon,
|
|
@@ -69,14 +68,15 @@ __export(index_exports, {
|
|
|
69
68
|
marketInfoPaymentTarget: () => marketInfoPaymentTarget,
|
|
70
69
|
marketPriceByDateFields: () => marketPriceByDateFields,
|
|
71
70
|
marketStartDateFields: () => marketStartDateFields,
|
|
71
|
+
normalizeUrl: () => normalizeUrl,
|
|
72
72
|
packagingOptions: () => packagingOptions,
|
|
73
73
|
paymentMethodOptions: () => paymentMethodOptions,
|
|
74
74
|
producedIngOptions: () => producedIngOptions,
|
|
75
75
|
profileFields: () => profileFields,
|
|
76
76
|
registerFields: () => registerFields,
|
|
77
|
-
rejectionPolicyOptions: () => rejectionPolicyOptions,
|
|
78
77
|
removeTypename: () => removeTypename,
|
|
79
78
|
requestPasswordResetFields: () => requestPasswordResetFields,
|
|
79
|
+
requirementsOptions: () => requirementsOptions,
|
|
80
80
|
resetPasswordFields: () => resetPasswordFields,
|
|
81
81
|
socialMediaFields: () => socialMediaFields,
|
|
82
82
|
sortDatesByProximity: () => sortDatesByProximity,
|
|
@@ -184,18 +184,13 @@ var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus2) => {
|
|
|
184
184
|
EnumInviteStatus2["WAITING"] = "Waiting";
|
|
185
185
|
return EnumInviteStatus2;
|
|
186
186
|
})(EnumInviteStatus || {});
|
|
187
|
-
var
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
EnumPaymentMethod3["EFTPOS"] = "eftpos";
|
|
195
|
-
EnumPaymentMethod3["BANK_TRANSFER"] = "bank_transfer";
|
|
196
|
-
EnumPaymentMethod3["PAYPAL"] = "paypal";
|
|
197
|
-
EnumPaymentMethod3["STRIPE"] = "stripe";
|
|
198
|
-
return EnumPaymentMethod3;
|
|
187
|
+
var EnumPaymentMethod = /* @__PURE__ */ ((EnumPaymentMethod2) => {
|
|
188
|
+
EnumPaymentMethod2["CASH"] = "cash";
|
|
189
|
+
EnumPaymentMethod2["EFTPOS"] = "eftpos";
|
|
190
|
+
EnumPaymentMethod2["BANK_TRANSFER"] = "bank_transfer";
|
|
191
|
+
EnumPaymentMethod2["PAYPAL"] = "paypal";
|
|
192
|
+
EnumPaymentMethod2["STRIPE"] = "stripe";
|
|
193
|
+
return EnumPaymentMethod2;
|
|
199
194
|
})(EnumPaymentMethod || {});
|
|
200
195
|
var EnumResourceType = /* @__PURE__ */ ((EnumResourceType2) => {
|
|
201
196
|
EnumResourceType2["MARKET"] = "market";
|
|
@@ -370,6 +365,12 @@ var availableRegionOptions = mapArrayToOptions(availableRegionTypes);
|
|
|
370
365
|
var paymentMethodOptions = mapArrayToOptions(
|
|
371
366
|
Object.values(EnumPaymentMethod)
|
|
372
367
|
);
|
|
368
|
+
function normalizeUrl(url) {
|
|
369
|
+
if (!url.startsWith("http://") && !url.startsWith("https://")) {
|
|
370
|
+
return `https://${url}`;
|
|
371
|
+
}
|
|
372
|
+
return url;
|
|
373
|
+
}
|
|
373
374
|
|
|
374
375
|
// src/hooks/useLocationSearch.ts
|
|
375
376
|
var handleApiError = (error, message) => {
|
|
@@ -455,6 +456,11 @@ var import_dayjs2 = __toESM(require("dayjs"));
|
|
|
455
456
|
var import_customParseFormat2 = __toESM(require("dayjs/plugin/customParseFormat"));
|
|
456
457
|
var import_isSameOrAfter2 = __toESM(require("dayjs/plugin/isSameOrAfter"));
|
|
457
458
|
var yup = __toESM(require("yup"));
|
|
459
|
+
var normalizedUrlTransform = () => yup.string().trim().transform(
|
|
460
|
+
(value) => typeof value === "string" ? value.toLowerCase() : value
|
|
461
|
+
).transform(
|
|
462
|
+
(value) => typeof value === "string" ? normalizeUrl(value) : value
|
|
463
|
+
);
|
|
458
464
|
var noLeadingZeros = (fieldName, options = {}) => {
|
|
459
465
|
return function(value, context) {
|
|
460
466
|
const original = context.originalValue?.toString() ?? "";
|
|
@@ -551,6 +557,15 @@ var emailSchema = yup.string().email("Invalid email address").required("Email is
|
|
|
551
557
|
(value) => typeof value === "string" ? value.toLowerCase() : value
|
|
552
558
|
);
|
|
553
559
|
var passwordSchema = yup.string().trim().min(8, "Password must be at least 8 characters long").required("Password is required");
|
|
560
|
+
var socialMediaSchema = yup.object({
|
|
561
|
+
name: yup.mixed().oneOf(Object.values(EnumSocialMedia)).optional(),
|
|
562
|
+
link: yup.string().when("name", {
|
|
563
|
+
is: (name) => !!name,
|
|
564
|
+
// If name has a value
|
|
565
|
+
then: () => normalizedUrlTransform().required("Link is required when name is set").url("Link must be a valid URL"),
|
|
566
|
+
otherwise: (schema) => schema.notRequired()
|
|
567
|
+
})
|
|
568
|
+
});
|
|
554
569
|
var globalResourceSchema = yup.object().shape({
|
|
555
570
|
active: yup.boolean().required("Active is required"),
|
|
556
571
|
cover: yup.object({
|
|
@@ -559,7 +574,8 @@ var globalResourceSchema = yup.object().shape({
|
|
|
559
574
|
}),
|
|
560
575
|
description: yup.string().trim().min(3).required("Description is required"),
|
|
561
576
|
name: yup.string().trim().min(3).required("Name is required"),
|
|
562
|
-
region: yup.string().required("Region is required")
|
|
577
|
+
region: yup.string().required("Region is required"),
|
|
578
|
+
socialMedia: yup.array().of(socialMediaSchema).nullable().optional()
|
|
563
579
|
});
|
|
564
580
|
|
|
565
581
|
// src/yupSchema/market.ts
|
|
@@ -572,45 +588,34 @@ var marketSchema = globalResourceSchema.shape({
|
|
|
572
588
|
tags: yup2.array().of(yup2.string().defined()).min(1, "Tags are required").required("Tags are required")
|
|
573
589
|
});
|
|
574
590
|
var paymentTargetSchema = yup2.object({
|
|
575
|
-
paymentMethod: yup2.mixed().oneOf(Object.values(EnumPaymentMethod)).required("Please select a Payment method")
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
"
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
),
|
|
595
|
-
link: yup2.string().transform(
|
|
596
|
-
(value) => typeof value === "string" ? value.toLowerCase() : value
|
|
597
|
-
).notRequired()
|
|
598
|
-
});
|
|
599
|
-
} else {
|
|
600
|
-
return schema.shape({
|
|
601
|
-
accountHolderName: yup2.string().notRequired(),
|
|
602
|
-
accountNumber: yup2.string().notRequired(),
|
|
603
|
-
link: yup2.string().notRequired()
|
|
604
|
-
});
|
|
605
|
-
}
|
|
591
|
+
paymentMethod: yup2.mixed().oneOf(Object.values(EnumPaymentMethod)).required("Please select a Payment method"),
|
|
592
|
+
accountHolderName: yup2.string().when("paymentMethod", {
|
|
593
|
+
is: "bank_transfer" /* BANK_TRANSFER */,
|
|
594
|
+
then: (schema) => schema.required("Account holder name is required for bank transfer").trim(),
|
|
595
|
+
otherwise: (schema) => schema.notRequired()
|
|
596
|
+
}),
|
|
597
|
+
accountNumber: yup2.string().when("paymentMethod", {
|
|
598
|
+
is: "bank_transfer" /* BANK_TRANSFER */,
|
|
599
|
+
then: (schema) => schema.required("Account number is required for bank transfer").matches(
|
|
600
|
+
nzBankAccountRegex,
|
|
601
|
+
"Account number must be in format: XX-XXXX-XXXXXXX-XX"
|
|
602
|
+
).trim(),
|
|
603
|
+
otherwise: (schema) => schema.notRequired()
|
|
604
|
+
}),
|
|
605
|
+
link: yup2.string().when("paymentMethod", {
|
|
606
|
+
is: (val) => val !== "bank_transfer" /* BANK_TRANSFER */,
|
|
607
|
+
then: () => normalizedUrlTransform().url("Link must be a valid URL").required("Link is required for PayPal/Stripe"),
|
|
608
|
+
otherwise: (schema) => schema.notRequired()
|
|
609
|
+
})
|
|
606
610
|
});
|
|
607
611
|
var marketInfoSchema = yup2.object().shape({
|
|
608
|
-
applicationDeadlineHours: yup2.number().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")),
|
|
612
|
+
applicationDeadlineHours: yup2.number().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")),
|
|
609
613
|
dateTime: yup2.array().of(dateTimeWithPriceSchema).required("DateTime is required"),
|
|
610
614
|
marketId: yup2.string().trim().required("Market ID is required"),
|
|
615
|
+
packInTime: yup2.number().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")),
|
|
616
|
+
packOutTime: yup2.number().typeError("Pack out time must be a number").min(1, "Pack out time must be at least 1").required("Pack out time is required").test("no-leading-zeros", "", noLeadingZeros("Pack out time")),
|
|
611
617
|
paymentDueHours: yup2.number().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")),
|
|
612
618
|
paymentTarget: yup2.array().of(paymentTargetSchema).min(1, "At least one payment target is required").required("Payment target is required"),
|
|
613
|
-
rejectionPolicy: yup2.mixed().oneOf(Object.values(EnumRejectionPolicy)).required("Rejection policy is required"),
|
|
614
619
|
stallCapacity: yup2.number().typeError("Stall capacity must be a number").min(1, "Stall capacity must be at least 1").integer("Stall capacity must be a whole number").required("Stall capacity is required").test("no-leading-zeros", "", noLeadingZeros("Stall capacity"))
|
|
615
620
|
});
|
|
616
621
|
|
|
@@ -788,16 +793,13 @@ var defaultMarketInfoFormValues = {
|
|
|
788
793
|
}
|
|
789
794
|
],
|
|
790
795
|
marketId: "",
|
|
796
|
+
packInTime: 0,
|
|
797
|
+
// e.g., 2 hours before market opens
|
|
798
|
+
packOutTime: 0,
|
|
799
|
+
// e.g., 1 hour after market closes
|
|
791
800
|
paymentDueHours: 0,
|
|
792
|
-
paymentTarget: [
|
|
793
|
-
|
|
794
|
-
accountHolderName: "",
|
|
795
|
-
accountNumber: "",
|
|
796
|
-
link: "",
|
|
797
|
-
paymentMethod: ""
|
|
798
|
-
}
|
|
799
|
-
],
|
|
800
|
-
rejectionPolicy: "multi_date_allowed" /* MULTI_DATE_ALLOWED */,
|
|
801
|
+
paymentTarget: [],
|
|
802
|
+
requirements: [],
|
|
801
803
|
stallCapacity: 0
|
|
802
804
|
};
|
|
803
805
|
var defaultStallholderFormValues = {
|
|
@@ -1094,9 +1096,11 @@ function useMarketInfoForm(data) {
|
|
|
1094
1096
|
applicationDeadlineHours: data.applicationDeadlineHours,
|
|
1095
1097
|
dateTime: data.dateTime,
|
|
1096
1098
|
marketId: data.marketId,
|
|
1099
|
+
packInTime: data.packInTime,
|
|
1100
|
+
packOutTime: data.packOutTime,
|
|
1097
1101
|
paymentDueHours: data.paymentDueHours,
|
|
1098
1102
|
paymentTarget: data.paymentTarget,
|
|
1099
|
-
|
|
1103
|
+
requirements: data.requirements,
|
|
1100
1104
|
stallCapacity: data.stallCapacity
|
|
1101
1105
|
});
|
|
1102
1106
|
} else {
|
|
@@ -1108,9 +1112,11 @@ function useMarketInfoForm(data) {
|
|
|
1108
1112
|
applicationDeadlineHours,
|
|
1109
1113
|
dateTime,
|
|
1110
1114
|
marketId,
|
|
1115
|
+
packInTime,
|
|
1116
|
+
packOutTime,
|
|
1111
1117
|
paymentDueHours,
|
|
1112
1118
|
paymentTarget,
|
|
1113
|
-
|
|
1119
|
+
requirements,
|
|
1114
1120
|
stallCapacity
|
|
1115
1121
|
} = getValues();
|
|
1116
1122
|
return {
|
|
@@ -1120,9 +1126,11 @@ function useMarketInfoForm(data) {
|
|
|
1120
1126
|
applicationDeadlineHours,
|
|
1121
1127
|
dateTime,
|
|
1122
1128
|
marketId,
|
|
1129
|
+
packInTime,
|
|
1130
|
+
packOutTime,
|
|
1123
1131
|
paymentDueHours,
|
|
1124
1132
|
paymentTarget,
|
|
1125
|
-
|
|
1133
|
+
requirements,
|
|
1126
1134
|
stallCapacity
|
|
1127
1135
|
},
|
|
1128
1136
|
formState: { errors },
|
|
@@ -1766,6 +1774,8 @@ var MARKET_INFO = import_client8.gql`
|
|
|
1766
1774
|
startTime
|
|
1767
1775
|
}
|
|
1768
1776
|
marketId
|
|
1777
|
+
packInTime
|
|
1778
|
+
packOutTime
|
|
1769
1779
|
paymentDueHours
|
|
1770
1780
|
paymentTarget {
|
|
1771
1781
|
accountHolderName
|
|
@@ -1773,8 +1783,12 @@ var MARKET_INFO = import_client8.gql`
|
|
|
1773
1783
|
link
|
|
1774
1784
|
paymentMethod
|
|
1775
1785
|
}
|
|
1776
|
-
rejectionPolicy
|
|
1777
1786
|
stallCapacity
|
|
1787
|
+
requirements {
|
|
1788
|
+
category
|
|
1789
|
+
label
|
|
1790
|
+
value
|
|
1791
|
+
}
|
|
1778
1792
|
}
|
|
1779
1793
|
`;
|
|
1780
1794
|
var MARKET = import_client8.gql`
|
|
@@ -3254,22 +3268,34 @@ var tagOptions = availableTagTypes.map((tag) => ({
|
|
|
3254
3268
|
// src/formFields/market/marketInfo.ts
|
|
3255
3269
|
var marketInfo = [
|
|
3256
3270
|
{
|
|
3257
|
-
helperText: "Application Deadline
|
|
3271
|
+
helperText: "Application Deadline *",
|
|
3258
3272
|
keyboardType: "number-pad",
|
|
3259
3273
|
name: "applicationDeadlineHours",
|
|
3260
|
-
placeholder: "Application Deadline
|
|
3274
|
+
placeholder: "Application Deadline (in hours)"
|
|
3261
3275
|
},
|
|
3262
3276
|
{
|
|
3263
|
-
helperText: "Stall Capacity
|
|
3277
|
+
helperText: "Stall Capacity *",
|
|
3264
3278
|
keyboardType: "number-pad",
|
|
3265
3279
|
name: "stallCapacity",
|
|
3266
3280
|
placeholder: "Stall Capacity"
|
|
3267
3281
|
},
|
|
3268
3282
|
{
|
|
3269
|
-
helperText: "Payment Due Hours
|
|
3283
|
+
helperText: "Payment Due Hours *",
|
|
3270
3284
|
keyboardType: "number-pad",
|
|
3271
3285
|
name: "paymentDueHours",
|
|
3272
|
-
placeholder: "Payment Due
|
|
3286
|
+
placeholder: "Payment Due (in hours)"
|
|
3287
|
+
},
|
|
3288
|
+
{
|
|
3289
|
+
helperText: "Pack In Time *",
|
|
3290
|
+
keyboardType: "number-pad",
|
|
3291
|
+
name: "packInTime",
|
|
3292
|
+
placeholder: "Pack In Time (in hours)"
|
|
3293
|
+
},
|
|
3294
|
+
{
|
|
3295
|
+
helperText: "Pack Out Time *",
|
|
3296
|
+
keyboardType: "number-pad",
|
|
3297
|
+
name: "packOutTime",
|
|
3298
|
+
placeholder: "Pack Out Time (in hours)"
|
|
3273
3299
|
}
|
|
3274
3300
|
];
|
|
3275
3301
|
var marketInfoPaymentTarget = [
|
|
@@ -3293,14 +3319,168 @@ var marketInfoPaymentTarget = [
|
|
|
3293
3319
|
var marketPriceByDateFields = [
|
|
3294
3320
|
{
|
|
3295
3321
|
helperText: "Market Price for this date *",
|
|
3296
|
-
keyboardType: "
|
|
3322
|
+
keyboardType: "decimal-pad",
|
|
3297
3323
|
name: "marketPrice",
|
|
3298
3324
|
placeholder: "Market Price"
|
|
3299
3325
|
}
|
|
3300
3326
|
];
|
|
3301
|
-
var
|
|
3302
|
-
|
|
3303
|
-
|
|
3327
|
+
var requirementsOptions = [
|
|
3328
|
+
{
|
|
3329
|
+
category: "Environment",
|
|
3330
|
+
label: "All packaging must be eco-friendly or recyclable where possible.",
|
|
3331
|
+
value: false
|
|
3332
|
+
},
|
|
3333
|
+
{
|
|
3334
|
+
category: "Environment",
|
|
3335
|
+
label: "No single-use plastic bags are to be handed out.",
|
|
3336
|
+
value: false
|
|
3337
|
+
},
|
|
3338
|
+
{
|
|
3339
|
+
category: "Environment",
|
|
3340
|
+
label: "Stall area must be left clean with no trace of activity after pack-down.",
|
|
3341
|
+
value: false
|
|
3342
|
+
},
|
|
3343
|
+
{
|
|
3344
|
+
category: "Environment",
|
|
3345
|
+
label: "No disposal of oils, fats, or chemicals in public drains or on grassed areas.",
|
|
3346
|
+
value: false
|
|
3347
|
+
},
|
|
3348
|
+
{
|
|
3349
|
+
category: "Environment",
|
|
3350
|
+
label: "You must provide bins at your site for rubbish and recycling, and take away all bins including rubbish, to dispose of outside of the town centre.",
|
|
3351
|
+
value: false
|
|
3352
|
+
},
|
|
3353
|
+
{
|
|
3354
|
+
category: "Food Safety",
|
|
3355
|
+
label: "Food must be prepared and stored according to your food regulation.",
|
|
3356
|
+
value: false
|
|
3357
|
+
},
|
|
3358
|
+
{
|
|
3359
|
+
category: "Food Safety",
|
|
3360
|
+
label: "The stallholder must display a current food grade certificate.",
|
|
3361
|
+
value: false
|
|
3362
|
+
},
|
|
3363
|
+
{
|
|
3364
|
+
category: "Food Safety",
|
|
3365
|
+
label: "Only licensed food vendors may sell ready-to-eat food items.",
|
|
3366
|
+
value: false
|
|
3367
|
+
},
|
|
3368
|
+
{
|
|
3369
|
+
category: "Food Safety",
|
|
3370
|
+
label: "Handwashing facilities must be available at your stall if preparing food.",
|
|
3371
|
+
value: false
|
|
3372
|
+
},
|
|
3373
|
+
{
|
|
3374
|
+
category: "Food Safety",
|
|
3375
|
+
label: "You must have a food safety plan in place for your stall.",
|
|
3376
|
+
value: false
|
|
3377
|
+
},
|
|
3378
|
+
{
|
|
3379
|
+
category: "Food Safety",
|
|
3380
|
+
label: "Allergens must be clearly listed on packaged and unpackaged food items.",
|
|
3381
|
+
value: false
|
|
3382
|
+
},
|
|
3383
|
+
{
|
|
3384
|
+
category: "Legal & Safety",
|
|
3385
|
+
label: "All stallholders must comply with local council regulations.",
|
|
3386
|
+
value: false
|
|
3387
|
+
},
|
|
3388
|
+
{
|
|
3389
|
+
category: "Legal & Safety",
|
|
3390
|
+
label: "No unauthorised subletting of stall space to other vendors.",
|
|
3391
|
+
value: false
|
|
3392
|
+
},
|
|
3393
|
+
{
|
|
3394
|
+
category: "Legal & Safety",
|
|
3395
|
+
label: "Gas bottles and fuel containers must be secured and in good condition if applicable.",
|
|
3396
|
+
value: false
|
|
3397
|
+
},
|
|
3398
|
+
{
|
|
3399
|
+
category: "Legal & Safety",
|
|
3400
|
+
label: "Fire extinguishers must be available for stalls using cooking or heating equipment.",
|
|
3401
|
+
value: false
|
|
3402
|
+
},
|
|
3403
|
+
{
|
|
3404
|
+
category: "Legal & Safety",
|
|
3405
|
+
label: "Stallholders must not sell items that are illegal or prohibited by law.",
|
|
3406
|
+
value: false
|
|
3407
|
+
},
|
|
3408
|
+
{
|
|
3409
|
+
category: "Legal & Safety",
|
|
3410
|
+
label: "All electrical equipment must be tested and tagged.",
|
|
3411
|
+
value: false
|
|
3412
|
+
},
|
|
3413
|
+
{
|
|
3414
|
+
category: "Legal & Safety",
|
|
3415
|
+
label: "Noise levels must be kept to a minimum unless part of a permitted performance.",
|
|
3416
|
+
value: false
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
category: "Legal & Safety",
|
|
3420
|
+
label: "Pets at the stall must be secured and well-behaved at all times.",
|
|
3421
|
+
value: false
|
|
3422
|
+
},
|
|
3423
|
+
{
|
|
3424
|
+
category: "Legal & Safety",
|
|
3425
|
+
label: "Cables must be secured and not create tripping hazards.",
|
|
3426
|
+
value: false
|
|
3427
|
+
},
|
|
3428
|
+
{
|
|
3429
|
+
category: "Legal & Safety",
|
|
3430
|
+
label: "Stalls must not obstruct emergency access routes.",
|
|
3431
|
+
value: false
|
|
3432
|
+
},
|
|
3433
|
+
{
|
|
3434
|
+
category: "Legal & Safety",
|
|
3435
|
+
label: "First aid kit must be available at the stall for minor injuries.",
|
|
3436
|
+
value: false
|
|
3437
|
+
},
|
|
3438
|
+
{
|
|
3439
|
+
category: "Legal & Safety",
|
|
3440
|
+
label: "Stallholders must hold valid liability insurance where required.",
|
|
3441
|
+
value: false
|
|
3442
|
+
},
|
|
3443
|
+
{
|
|
3444
|
+
category: "Legal & Safety",
|
|
3445
|
+
label: "You must secure your gazebo and equipment to withstand wind or bad weather.",
|
|
3446
|
+
value: false
|
|
3447
|
+
},
|
|
3448
|
+
{
|
|
3449
|
+
category: "Legal & Safety",
|
|
3450
|
+
label: "You are responsible for the safety of your setup and any potential hazards.",
|
|
3451
|
+
value: false
|
|
3452
|
+
},
|
|
3453
|
+
{
|
|
3454
|
+
category: "Operations",
|
|
3455
|
+
label: "Generators must be quiet and pre-approved by the event organiser.",
|
|
3456
|
+
value: false
|
|
3457
|
+
},
|
|
3458
|
+
{
|
|
3459
|
+
category: "Operations",
|
|
3460
|
+
label: "Only approved products or services may be sold \u2014 no last-minute changes.",
|
|
3461
|
+
value: false
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
category: "Operations",
|
|
3465
|
+
label: "Stallholders must arrive and be fully set up by the designated opening time.",
|
|
3466
|
+
value: false
|
|
3467
|
+
},
|
|
3468
|
+
{
|
|
3469
|
+
category: "Operations",
|
|
3470
|
+
label: "You may not pack down your stall before the event officially ends.",
|
|
3471
|
+
value: false
|
|
3472
|
+
},
|
|
3473
|
+
{
|
|
3474
|
+
category: "Operations",
|
|
3475
|
+
label: "You must be self-sufficient in all operations.",
|
|
3476
|
+
value: false
|
|
3477
|
+
},
|
|
3478
|
+
{
|
|
3479
|
+
category: "Operations",
|
|
3480
|
+
label: "Stall layout must be kept within your allocated space.",
|
|
3481
|
+
value: false
|
|
3482
|
+
}
|
|
3483
|
+
];
|
|
3304
3484
|
|
|
3305
3485
|
// src/formFields/auth.ts
|
|
3306
3486
|
var loginFields = [
|
|
@@ -3769,7 +3949,6 @@ var socialMediaFields = socialMedia.map((link) => ({
|
|
|
3769
3949
|
EnumNotification,
|
|
3770
3950
|
EnumPaymentMethod,
|
|
3771
3951
|
EnumRegions,
|
|
3772
|
-
EnumRejectionPolicy,
|
|
3773
3952
|
EnumRelationResource,
|
|
3774
3953
|
EnumResourceType,
|
|
3775
3954
|
EnumResourceTypeIcon,
|
|
@@ -3804,14 +3983,15 @@ var socialMediaFields = socialMedia.map((link) => ({
|
|
|
3804
3983
|
marketInfoPaymentTarget,
|
|
3805
3984
|
marketPriceByDateFields,
|
|
3806
3985
|
marketStartDateFields,
|
|
3986
|
+
normalizeUrl,
|
|
3807
3987
|
packagingOptions,
|
|
3808
3988
|
paymentMethodOptions,
|
|
3809
3989
|
producedIngOptions,
|
|
3810
3990
|
profileFields,
|
|
3811
3991
|
registerFields,
|
|
3812
|
-
rejectionPolicyOptions,
|
|
3813
3992
|
removeTypename,
|
|
3814
3993
|
requestPasswordResetFields,
|
|
3994
|
+
requirementsOptions,
|
|
3815
3995
|
resetPasswordFields,
|
|
3816
3996
|
socialMediaFields,
|
|
3817
3997
|
sortDatesByProximity,
|