@timardex/cluemart-shared 1.0.28 → 1.0.29
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-BDJVSBRT.mjs} +2 -2
- 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 +97 -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 +98 -14
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/{global-DwhGi-4q.d.mts → global-BwS9p10K.d.mts} +11 -4
- package/dist/{global-BRfKKan0.d.ts → global-lB32aPz_.d.ts} +11 -4
- 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 +62 -57
- 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 -48
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +166 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +11 -8
- package/dist/index.d.ts +11 -8
- package/dist/index.mjs +165 -69
- 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.map +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-GMOTXE7A.mjs.map +0 -1
- /package/dist/{chunk-GMCWFVU5.mjs.map → chunk-BDJVSBRT.mjs.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
EnumInviteStatus,
|
|
3
3
|
EnumPaymentMethod,
|
|
4
4
|
EnumRegions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OXXSIU3M.mjs";
|
|
6
6
|
|
|
7
7
|
// src/utils/index.ts
|
|
8
8
|
import dayjs, { extend } from "dayjs";
|
|
@@ -130,4 +130,4 @@ export {
|
|
|
130
130
|
availableRegionOptions,
|
|
131
131
|
paymentMethodOptions
|
|
132
132
|
};
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
133
|
+
//# sourceMappingURL=chunk-BDJVSBRT.mjs.map
|
|
@@ -9,11 +9,6 @@ var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus2) => {
|
|
|
9
9
|
EnumInviteStatus2["WAITING"] = "Waiting";
|
|
10
10
|
return EnumInviteStatus2;
|
|
11
11
|
})(EnumInviteStatus || {});
|
|
12
|
-
var EnumRejectionPolicy = /* @__PURE__ */ ((EnumRejectionPolicy2) => {
|
|
13
|
-
EnumRejectionPolicy2["SINGLE_DATE_ALLOWED"] = "single_date_allowed";
|
|
14
|
-
EnumRejectionPolicy2["MULTI_DATE_ALLOWED"] = "multi_date_allowed";
|
|
15
|
-
return EnumRejectionPolicy2;
|
|
16
|
-
})(EnumRejectionPolicy || {});
|
|
17
12
|
var EnumPaymentMethod = /* @__PURE__ */ ((EnumPaymentMethod2) => {
|
|
18
13
|
EnumPaymentMethod2["CASH"] = "cash";
|
|
19
14
|
EnumPaymentMethod2["EFTPOS"] = "eftpos";
|
|
@@ -95,7 +90,6 @@ var EnumSocialMedia = /* @__PURE__ */ ((EnumSocialMedia2) => {
|
|
|
95
90
|
|
|
96
91
|
export {
|
|
97
92
|
EnumInviteStatus,
|
|
98
|
-
EnumRejectionPolicy,
|
|
99
93
|
EnumPaymentMethod,
|
|
100
94
|
EnumResourceType,
|
|
101
95
|
EnumRelationResource,
|
|
@@ -107,4 +101,4 @@ export {
|
|
|
107
101
|
EnumUserRole,
|
|
108
102
|
EnumSocialMedia
|
|
109
103
|
};
|
|
110
|
-
//# sourceMappingURL=chunk-
|
|
104
|
+
//# sourceMappingURL=chunk-OXXSIU3M.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/enums/index.ts"],"sourcesContent":["export enum EnumInviteStatus {\n ACCEPTED = \"Accepted\",\n COMPLETED = \"Completed\",\n EXPIRED = \"Expired\",\n NO_STATUS = \"No_Status\",\n PENDING = \"Pending\",\n REJECTED = \"Rejected\",\n WAITING = \"Waiting\",\n}\n\nexport enum EnumPaymentMethod {\n CASH = \"cash\",\n EFTPOS = \"eftpos\",\n BANK_TRANSFER = \"bank_transfer\",\n PAYPAL = \"paypal\",\n STRIPE = \"stripe\",\n}\n\nexport enum EnumResourceType {\n MARKET = \"market\",\n STALLHOLDER = \"stallholder\",\n}\n\nexport enum EnumRelationResource {\n MARKET_INVITE_STALLHOLDER = \"market_invite_stallholder\",\n STALLHOLDER_APPLICATION_TO_MARKET = \"stallholder_application_to_market\",\n}\n\nexport enum EnumNotification {\n CREATED_MARKET = \"created_market\",\n CREATED_STALLHOLDER = \"created_stallholder\",\n NEW_CHAT_MESSAGE = \"new_chat_message\",\n MARKET_INVITE_STALLHOLDER = EnumRelationResource.MARKET_INVITE_STALLHOLDER,\n STALLHOLDER_APPLICATION_TO_MARKET = EnumRelationResource.STALLHOLDER_APPLICATION_TO_MARKET,\n}\n\nexport enum EnumResourceTypeIcon {\n MARKET = \"compass\",\n STALLHOLDER = \"store\",\n}\n\nexport enum EnumRegions {\n Auckland = \"Auckland\",\n BayOfPlenty = \"Bay of Plenty\",\n Canterbury = \"Canterbury\",\n Gisborne = \"Gisborne\",\n HawkesBay = \"Hawke's Bay\",\n ManawatuWanganui = \"Manawatu-Wanganui\",\n Marlborough = \"Marlborough\",\n Nelson = \"Nelson\",\n Northland = \"Northland\",\n Otago = \"Otago\",\n Southland = \"Southland\",\n Taranaki = \"Taranaki\",\n Waikato = \"Waikato\",\n Wellington = \"Wellington\",\n}\n\nexport enum ImageTypeEnum {\n AVATAR = \"avatar\",\n COVER = \"cover\",\n IMAGE = \"image\",\n LOGO = \"logo\",\n}\n\nexport enum EnumUserLicence {\n ENTERPRISE_MARKET = \"enterprise_market\",\n ENTERPRISE_STALLHOLDER = \"enterprise_stallholder\",\n PRO_MARKET = \"pro_market\",\n PRO_STALLHOLDER = \"pro_stallholder\",\n STANDARD_MARKET = \"standard_market\",\n STANDARD_STALLHOLDER = \"standard_stallholder\",\n}\n\nexport enum EnumUserRole {\n ADMIN = \"admin\",\n CUSTOMER = \"customer\",\n}\n\nexport enum EnumSocialMedia {\n FACEBOOK = \"facebook\",\n INSTAGRAM = \"instagram\",\n TIKTOK = \"tiktok\",\n TWITTER = \"twitter\",\n WEBSITE = \"website\",\n YOUTUBE = \"youtube\",\n}\n"],"mappings":";AAAO,IAAK,mBAAL,kBAAKA,sBAAL;AACL,EAAAA,kBAAA,cAAW;AACX,EAAAA,kBAAA,eAAY;AACZ,EAAAA,kBAAA,aAAU;AACV,EAAAA,kBAAA,eAAY;AACZ,EAAAA,kBAAA,aAAU;AACV,EAAAA,kBAAA,cAAW;AACX,EAAAA,kBAAA,aAAU;AAPA,SAAAA;AAAA,GAAA;AAUL,IAAK,oBAAL,kBAAKC,uBAAL;AACL,EAAAA,mBAAA,UAAO;AACP,EAAAA,mBAAA,YAAS;AACT,EAAAA,mBAAA,mBAAgB;AAChB,EAAAA,mBAAA,YAAS;AACT,EAAAA,mBAAA,YAAS;AALC,SAAAA;AAAA,GAAA;AAQL,IAAK,mBAAL,kBAAKC,sBAAL;AACL,EAAAA,kBAAA,YAAS;AACT,EAAAA,kBAAA,iBAAc;AAFJ,SAAAA;AAAA,GAAA;AA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;AASL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,WAAQ;AACR,EAAAA,cAAA,cAAW;AAFD,SAAAA;AAAA,GAAA;AAKL,IAAK,kBAAL,kBAAKC,qBAAL;AACL,EAAAA,iBAAA,cAAW;AACX,EAAAA,iBAAA,eAAY;AACZ,EAAAA,iBAAA,YAAS;AACT,EAAAA,iBAAA,aAAU;AACV,EAAAA,iBAAA,aAAU;AACV,EAAAA,iBAAA,aAAU;AANA,SAAAA;AAAA,GAAA;","names":["EnumInviteStatus","EnumPaymentMethod","EnumResourceType","EnumRelationResource","EnumNotification","EnumResourceTypeIcon","EnumRegions","ImageTypeEnum","EnumUserLicence","EnumUserRole","EnumSocialMedia"]}
|
package/dist/enums/index.cjs
CHANGED
|
@@ -24,7 +24,6 @@ __export(enums_exports, {
|
|
|
24
24
|
EnumNotification: () => EnumNotification,
|
|
25
25
|
EnumPaymentMethod: () => EnumPaymentMethod,
|
|
26
26
|
EnumRegions: () => EnumRegions,
|
|
27
|
-
EnumRejectionPolicy: () => EnumRejectionPolicy,
|
|
28
27
|
EnumRelationResource: () => EnumRelationResource,
|
|
29
28
|
EnumResourceType: () => EnumResourceType,
|
|
30
29
|
EnumResourceTypeIcon: () => EnumResourceTypeIcon,
|
|
@@ -44,11 +43,6 @@ var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus2) => {
|
|
|
44
43
|
EnumInviteStatus2["WAITING"] = "Waiting";
|
|
45
44
|
return EnumInviteStatus2;
|
|
46
45
|
})(EnumInviteStatus || {});
|
|
47
|
-
var EnumRejectionPolicy = /* @__PURE__ */ ((EnumRejectionPolicy2) => {
|
|
48
|
-
EnumRejectionPolicy2["SINGLE_DATE_ALLOWED"] = "single_date_allowed";
|
|
49
|
-
EnumRejectionPolicy2["MULTI_DATE_ALLOWED"] = "multi_date_allowed";
|
|
50
|
-
return EnumRejectionPolicy2;
|
|
51
|
-
})(EnumRejectionPolicy || {});
|
|
52
46
|
var EnumPaymentMethod = /* @__PURE__ */ ((EnumPaymentMethod2) => {
|
|
53
47
|
EnumPaymentMethod2["CASH"] = "cash";
|
|
54
48
|
EnumPaymentMethod2["EFTPOS"] = "eftpos";
|
|
@@ -133,7 +127,6 @@ var EnumSocialMedia = /* @__PURE__ */ ((EnumSocialMedia2) => {
|
|
|
133
127
|
EnumNotification,
|
|
134
128
|
EnumPaymentMethod,
|
|
135
129
|
EnumRegions,
|
|
136
|
-
EnumRejectionPolicy,
|
|
137
130
|
EnumRelationResource,
|
|
138
131
|
EnumResourceType,
|
|
139
132
|
EnumResourceTypeIcon,
|
package/dist/enums/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/enums/index.ts"],"sourcesContent":["export enum EnumInviteStatus {\n ACCEPTED = \"Accepted\",\n COMPLETED = \"Completed\",\n EXPIRED = \"Expired\",\n NO_STATUS = \"No_Status\",\n PENDING = \"Pending\",\n REJECTED = \"Rejected\",\n WAITING = \"Waiting\",\n}\n\nexport enum
|
|
1
|
+
{"version":3,"sources":["../../src/enums/index.ts"],"sourcesContent":["export enum EnumInviteStatus {\n ACCEPTED = \"Accepted\",\n COMPLETED = \"Completed\",\n EXPIRED = \"Expired\",\n NO_STATUS = \"No_Status\",\n PENDING = \"Pending\",\n REJECTED = \"Rejected\",\n WAITING = \"Waiting\",\n}\n\nexport enum EnumPaymentMethod {\n CASH = \"cash\",\n EFTPOS = \"eftpos\",\n BANK_TRANSFER = \"bank_transfer\",\n PAYPAL = \"paypal\",\n STRIPE = \"stripe\",\n}\n\nexport enum EnumResourceType {\n MARKET = \"market\",\n STALLHOLDER = \"stallholder\",\n}\n\nexport enum EnumRelationResource {\n MARKET_INVITE_STALLHOLDER = \"market_invite_stallholder\",\n STALLHOLDER_APPLICATION_TO_MARKET = \"stallholder_application_to_market\",\n}\n\nexport enum EnumNotification {\n CREATED_MARKET = \"created_market\",\n CREATED_STALLHOLDER = \"created_stallholder\",\n NEW_CHAT_MESSAGE = \"new_chat_message\",\n MARKET_INVITE_STALLHOLDER = EnumRelationResource.MARKET_INVITE_STALLHOLDER,\n STALLHOLDER_APPLICATION_TO_MARKET = EnumRelationResource.STALLHOLDER_APPLICATION_TO_MARKET,\n}\n\nexport enum EnumResourceTypeIcon {\n MARKET = \"compass\",\n STALLHOLDER = \"store\",\n}\n\nexport enum EnumRegions {\n Auckland = \"Auckland\",\n BayOfPlenty = \"Bay of Plenty\",\n Canterbury = \"Canterbury\",\n Gisborne = \"Gisborne\",\n HawkesBay = \"Hawke's Bay\",\n ManawatuWanganui = \"Manawatu-Wanganui\",\n Marlborough = \"Marlborough\",\n Nelson = \"Nelson\",\n Northland = \"Northland\",\n Otago = \"Otago\",\n Southland = \"Southland\",\n Taranaki = \"Taranaki\",\n Waikato = \"Waikato\",\n Wellington = \"Wellington\",\n}\n\nexport enum ImageTypeEnum {\n AVATAR = \"avatar\",\n COVER = \"cover\",\n IMAGE = \"image\",\n LOGO = \"logo\",\n}\n\nexport enum EnumUserLicence {\n ENTERPRISE_MARKET = \"enterprise_market\",\n ENTERPRISE_STALLHOLDER = \"enterprise_stallholder\",\n PRO_MARKET = \"pro_market\",\n PRO_STALLHOLDER = \"pro_stallholder\",\n STANDARD_MARKET = \"standard_market\",\n STANDARD_STALLHOLDER = \"standard_stallholder\",\n}\n\nexport enum EnumUserRole {\n ADMIN = \"admin\",\n CUSTOMER = \"customer\",\n}\n\nexport enum EnumSocialMedia {\n FACEBOOK = \"facebook\",\n INSTAGRAM = \"instagram\",\n TIKTOK = \"tiktok\",\n TWITTER = \"twitter\",\n WEBSITE = \"website\",\n YOUTUBE = \"youtube\",\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAK,mBAAL,kBAAKA,sBAAL;AACL,EAAAA,kBAAA,cAAW;AACX,EAAAA,kBAAA,eAAY;AACZ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AAA,aAAA,aAAU;AACV,EAAAA,aAAA,gBAAa;AAdH,SAAAA;AAAA,GAAA;AAiBL,IAAK,gBAAL,kBAAKC,mBAAL;AACL,EAAAA,eAAA,YAAS;AACT,EAAAA,eAAA,WAAQ;AACR,EAAAA,eAAA,WAAQ;AACR,EAAAA,eAAA,UAAO;AAJG,SAAAA;AAAA,GAAA;AAOL,IAAK,kBAAL,kBAAKC,qBAAL;AACL,EAAAA,iBAAA,uBAAoB;AACpB,EAAAA,iBAAA,4BAAyB;AACzB,EAAAA,iBAAA,gBAAa;AACb,EAAAA,iBAAA,qBAAkB;AAClB,EAAAA,iBAAA,qBAAkB;AAClB,EAAAA,iBAAA,0BAAuB;AANb,SAAAA;AAAA,GAAA;AASL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,WAAQ;AACR,EAAAA,cAAA,cAAW;AAFD,SAAAA;AAAA,GAAA;AAKL,IAAK,kBAAL,kBAAKC,qBAAL;AACL,EAAAA,iBAAA,cAAW;AACX,EAAAA,iBAAA,eAAY;AACZ,EAAAA,iBAAA,YAAS;AACT,EAAAA,iBAAA,aAAU;AACV,EAAAA,iBAAA,aAAU;AACV,EAAAA,iBAAA,aAAU;AANA,SAAAA;AAAA,GAAA;","names":["EnumInviteStatus","EnumPaymentMethod","EnumResourceType","EnumRelationResource","EnumNotification","EnumResourceTypeIcon","EnumRegions","ImageTypeEnum","EnumUserLicence","EnumUserRole","EnumSocialMedia"]}
|
package/dist/enums/index.d.mts
CHANGED
|
@@ -7,10 +7,6 @@ declare enum EnumInviteStatus {
|
|
|
7
7
|
REJECTED = "Rejected",
|
|
8
8
|
WAITING = "Waiting"
|
|
9
9
|
}
|
|
10
|
-
declare enum EnumRejectionPolicy {
|
|
11
|
-
SINGLE_DATE_ALLOWED = "single_date_allowed",
|
|
12
|
-
MULTI_DATE_ALLOWED = "multi_date_allowed"
|
|
13
|
-
}
|
|
14
10
|
declare enum EnumPaymentMethod {
|
|
15
11
|
CASH = "cash",
|
|
16
12
|
EFTPOS = "eftpos",
|
|
@@ -80,4 +76,4 @@ declare enum EnumSocialMedia {
|
|
|
80
76
|
YOUTUBE = "youtube"
|
|
81
77
|
}
|
|
82
78
|
|
|
83
|
-
export { EnumInviteStatus, EnumNotification, EnumPaymentMethod, EnumRegions,
|
|
79
|
+
export { EnumInviteStatus, EnumNotification, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, ImageTypeEnum };
|
package/dist/enums/index.d.ts
CHANGED
|
@@ -7,10 +7,6 @@ declare enum EnumInviteStatus {
|
|
|
7
7
|
REJECTED = "Rejected",
|
|
8
8
|
WAITING = "Waiting"
|
|
9
9
|
}
|
|
10
|
-
declare enum EnumRejectionPolicy {
|
|
11
|
-
SINGLE_DATE_ALLOWED = "single_date_allowed",
|
|
12
|
-
MULTI_DATE_ALLOWED = "multi_date_allowed"
|
|
13
|
-
}
|
|
14
10
|
declare enum EnumPaymentMethod {
|
|
15
11
|
CASH = "cash",
|
|
16
12
|
EFTPOS = "eftpos",
|
|
@@ -80,4 +76,4 @@ declare enum EnumSocialMedia {
|
|
|
80
76
|
YOUTUBE = "youtube"
|
|
81
77
|
}
|
|
82
78
|
|
|
83
|
-
export { EnumInviteStatus, EnumNotification, EnumPaymentMethod, EnumRegions,
|
|
79
|
+
export { EnumInviteStatus, EnumNotification, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, ImageTypeEnum };
|
package/dist/enums/index.mjs
CHANGED
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
EnumNotification,
|
|
4
4
|
EnumPaymentMethod,
|
|
5
5
|
EnumRegions,
|
|
6
|
-
EnumRejectionPolicy,
|
|
7
6
|
EnumRelationResource,
|
|
8
7
|
EnumResourceType,
|
|
9
8
|
EnumResourceTypeIcon,
|
|
@@ -11,13 +10,12 @@ import {
|
|
|
11
10
|
EnumUserLicence,
|
|
12
11
|
EnumUserRole,
|
|
13
12
|
ImageTypeEnum
|
|
14
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-OXXSIU3M.mjs";
|
|
15
14
|
export {
|
|
16
15
|
EnumInviteStatus,
|
|
17
16
|
EnumNotification,
|
|
18
17
|
EnumPaymentMethod,
|
|
19
18
|
EnumRegions,
|
|
20
|
-
EnumRejectionPolicy,
|
|
21
19
|
EnumRelationResource,
|
|
22
20
|
EnumResourceType,
|
|
23
21
|
EnumResourceTypeIcon,
|
|
@@ -45,8 +45,8 @@ __export(formFields_exports, {
|
|
|
45
45
|
producedIngOptions: () => producedIngOptions,
|
|
46
46
|
profileFields: () => profileFields,
|
|
47
47
|
registerFields: () => registerFields,
|
|
48
|
-
rejectionPolicyOptions: () => rejectionPolicyOptions,
|
|
49
48
|
requestPasswordResetFields: () => requestPasswordResetFields,
|
|
49
|
+
requirementsOptions: () => requirementsOptions,
|
|
50
50
|
resetPasswordFields: () => resetPasswordFields,
|
|
51
51
|
socialMediaFields: () => socialMediaFields,
|
|
52
52
|
stallholderBasicInfoFields: () => stallholderBasicInfoFields,
|
|
@@ -86,11 +86,6 @@ var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus2) => {
|
|
|
86
86
|
EnumInviteStatus2["WAITING"] = "Waiting";
|
|
87
87
|
return EnumInviteStatus2;
|
|
88
88
|
})(EnumInviteStatus || {});
|
|
89
|
-
var EnumRejectionPolicy = /* @__PURE__ */ ((EnumRejectionPolicy2) => {
|
|
90
|
-
EnumRejectionPolicy2["SINGLE_DATE_ALLOWED"] = "single_date_allowed";
|
|
91
|
-
EnumRejectionPolicy2["MULTI_DATE_ALLOWED"] = "multi_date_allowed";
|
|
92
|
-
return EnumRejectionPolicy2;
|
|
93
|
-
})(EnumRejectionPolicy || {});
|
|
94
89
|
var EnumPaymentMethod = /* @__PURE__ */ ((EnumPaymentMethod2) => {
|
|
95
90
|
EnumPaymentMethod2["CASH"] = "cash";
|
|
96
91
|
EnumPaymentMethod2["EFTPOS"] = "eftpos";
|
|
@@ -386,22 +381,34 @@ var tagOptions = availableTagTypes.map((tag) => ({
|
|
|
386
381
|
// src/formFields/market/marketInfo.ts
|
|
387
382
|
var marketInfo = [
|
|
388
383
|
{
|
|
389
|
-
helperText: "Application Deadline
|
|
384
|
+
helperText: "Application Deadline *",
|
|
390
385
|
keyboardType: "number-pad",
|
|
391
386
|
name: "applicationDeadlineHours",
|
|
392
|
-
placeholder: "Application Deadline
|
|
387
|
+
placeholder: "Application Deadline (in hours)"
|
|
393
388
|
},
|
|
394
389
|
{
|
|
395
|
-
helperText: "Stall Capacity
|
|
390
|
+
helperText: "Stall Capacity *",
|
|
396
391
|
keyboardType: "number-pad",
|
|
397
392
|
name: "stallCapacity",
|
|
398
393
|
placeholder: "Stall Capacity"
|
|
399
394
|
},
|
|
400
395
|
{
|
|
401
|
-
helperText: "Payment Due Hours
|
|
396
|
+
helperText: "Payment Due Hours *",
|
|
402
397
|
keyboardType: "number-pad",
|
|
403
398
|
name: "paymentDueHours",
|
|
404
|
-
placeholder: "Payment Due
|
|
399
|
+
placeholder: "Payment Due (in hours)"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
helperText: "Pack In Time *",
|
|
403
|
+
keyboardType: "number-pad",
|
|
404
|
+
name: "packInTime",
|
|
405
|
+
placeholder: "Pack In Time (in hours)"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
helperText: "Pack Out Time *",
|
|
409
|
+
keyboardType: "number-pad",
|
|
410
|
+
name: "packOutTime",
|
|
411
|
+
placeholder: "Pack Out Time (in hours)"
|
|
405
412
|
}
|
|
406
413
|
];
|
|
407
414
|
var marketInfoPaymentTarget = [
|
|
@@ -425,14 +432,88 @@ var marketInfoPaymentTarget = [
|
|
|
425
432
|
var marketPriceByDateFields = [
|
|
426
433
|
{
|
|
427
434
|
helperText: "Market Price for this date *",
|
|
428
|
-
keyboardType: "
|
|
435
|
+
keyboardType: "decimal-pad",
|
|
429
436
|
name: "marketPrice",
|
|
430
437
|
placeholder: "Market Price"
|
|
431
438
|
}
|
|
432
439
|
];
|
|
433
|
-
var
|
|
434
|
-
|
|
435
|
-
|
|
440
|
+
var requirementsOptions = [
|
|
441
|
+
{
|
|
442
|
+
category: "Food Safety",
|
|
443
|
+
label: "The stallholder must display a current food grade certificate",
|
|
444
|
+
value: "food_grade_certificate"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
category: "Food Safety",
|
|
448
|
+
label: "Food must be prepared and stored according to your food regulation",
|
|
449
|
+
value: "food_preparation_regulations"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
category: "Legal & Safety",
|
|
453
|
+
label: "All electrical equipment must be tested and tagged",
|
|
454
|
+
value: "electrical_safety"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
category: "Operations",
|
|
458
|
+
label: "You must be self-sufficient in all operations",
|
|
459
|
+
value: "self_sufficient_operations"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
category: "Environment",
|
|
463
|
+
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",
|
|
464
|
+
value: "rubbish_and_recycling_responsibility"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
category: "Legal & Safety",
|
|
468
|
+
label: "You must secure your gazebo and equipment to withstand wind or bad weather",
|
|
469
|
+
value: "stall_safety_and_weather_protection"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
category: "Legal & Safety",
|
|
473
|
+
label: "You are responsible for the safety of your setup and any potential hazards",
|
|
474
|
+
value: "stallholder_safety_responsibility"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
category: "Operations",
|
|
478
|
+
label: "Stallholders must arrive and be fully set up by the designated opening time",
|
|
479
|
+
value: "setup_on_time"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
category: "Operations",
|
|
483
|
+
label: "You may not pack down your stall before the event officially ends",
|
|
484
|
+
value: "no_early_packdown"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
category: "Environment",
|
|
488
|
+
label: "All packaging must be eco-friendly or recyclable where possible",
|
|
489
|
+
value: "eco_friendly_packaging"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
category: "Legal & Safety",
|
|
493
|
+
label: "Stallholders must hold valid liability insurance where required",
|
|
494
|
+
value: "liability_insurance_required"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
category: "Environment",
|
|
498
|
+
label: "No single-use plastic bags are to be handed out",
|
|
499
|
+
value: "no_single_use_plastics"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
category: "Legal & Safety",
|
|
503
|
+
label: "Noise levels must be kept to a minimum unless part of a permitted performance",
|
|
504
|
+
value: "noise_restrictions"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
category: "Operations",
|
|
508
|
+
label: "Generators must be quiet and pre-approved by the event organiser",
|
|
509
|
+
value: "generator_policy"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
category: "Legal & Safety",
|
|
513
|
+
label: "Pets at the stall must be secured and well-behaved at all times",
|
|
514
|
+
value: "pets_policy"
|
|
515
|
+
}
|
|
516
|
+
];
|
|
436
517
|
|
|
437
518
|
// src/formFields/auth.ts
|
|
438
519
|
var loginFields = [
|
|
@@ -912,8 +993,8 @@ var socialMediaFields = socialMedia.map((link) => ({
|
|
|
912
993
|
producedIngOptions,
|
|
913
994
|
profileFields,
|
|
914
995
|
registerFields,
|
|
915
|
-
rejectionPolicyOptions,
|
|
916
996
|
requestPasswordResetFields,
|
|
997
|
+
requirementsOptions,
|
|
917
998
|
resetPasswordFields,
|
|
918
999
|
socialMediaFields,
|
|
919
1000
|
stallholderBasicInfoFields,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/formFields/index.ts","../../src/utils/index.ts","../../src/enums/index.ts","../../src/formFields/stallholder/stallholder.ts","../../src/formFields/stallholder/stallholderApplyForm.ts","../../src/formFields/market/market.ts","../../src/formFields/market/marketInfo.ts","../../src/formFields/auth.ts","../../src/formFields/user.ts","../../src/formFields/categories.ts","../../src/formFields/socialMedia.ts"],"sourcesContent":["export * from \"./stallholder\";\nexport * from \"./market\";\nexport * from \"./auth\";\nexport * from \"./user\";\nexport * from \"./categories\";\nexport * from \"./socialMedia\";\n","import dayjs, { extend } from \"dayjs\";\nimport customParseFormat from \"dayjs/plugin/customParseFormat\";\nimport isSameOrAfter from \"dayjs/plugin/isSameOrAfter\";\nimport timezone from \"dayjs/plugin/timezone\";\nimport utc from \"dayjs/plugin/utc\";\n\nimport { EnumInviteStatus, EnumPaymentMethod, EnumRegions } from \"../enums\";\nimport { OptionItem, Region } from \"../types/global\";\n\nexport const dateFormat = \"DD-MM-YYYY\";\nexport const timeFormat = \"HH:mm\";\n\n// Enable custom format parsing\nextend(customParseFormat);\nextend(utc);\nextend(timezone);\nextend(isSameOrAfter);\n\ntype DateFormat = \"date\" | \"time\" | \"datetime\";\n\n/**\n * Format a date string to a more readable format.\n * @param dateStr - the date string\n * @param timeStr - optional time string\n * @param display - 'date' | 'time' | 'datetime'\n * @returns formatted string based on display option\n */\nexport const formatDate = (\n dateStr: string,\n display: DateFormat = \"datetime\",\n timeStr?: string,\n) => {\n // Combine date and time into a single string if time is provided\n const dateTimeStr = timeStr ? `${dateStr} ${timeStr}` : dateStr;\n\n // Parse with formats\n const dateTime = timeStr\n ? dayjs(dateTimeStr, `${dateFormat} ${timeFormat}`)\n : dayjs(dateStr, dateFormat);\n\n // Format parts\n const formattedDate = dateTime.format(\"dddd, D MMMM, YYYY\");\n const formattedTime = dateTime.format(\"h:mm a\");\n\n // Return based on display option\n switch (display) {\n case \"date\":\n return formattedDate;\n case \"time\":\n return formattedTime;\n case \"datetime\":\n return `${formattedDate} at ${formattedTime}`;\n default:\n return formattedDate;\n }\n};\n\nexport const getCurrentAndFutureDates = <\n T extends { startDate: string; startTime: string },\n>(\n dates: T[],\n): T[] => {\n const today = dayjs().startOf(\"day\");\n return dates.filter((dateObj) => {\n const dateTime = dayjs(dateObj.startDate, dateFormat);\n return dateTime.isSameOrAfter(today);\n });\n};\n\nexport const getFutureDatesAfterThreshold = (\n dates: {\n startDate: string;\n startTime: string;\n }[],\n minHoursFromNow?: number, // Optional\n) => {\n const threshold = minHoursFromNow\n ? dayjs().add(minHoursFromNow, \"hour\")\n : dayjs().startOf(\"day\");\n\n return dates.filter((dateObj) => {\n const dateTime = dayjs(\n `${dateObj.startDate} ${dateObj.startTime}`,\n `${dateFormat} ${timeFormat}`,\n );\n return dateTime.isSameOrAfter(threshold);\n });\n};\n\nexport const formatTimestamp = (timestamp: string) => {\n const formattedDate = dayjs(timestamp)\n .tz(\"Pacific/Auckland\")\n .format(dateFormat);\n\n const formattedTime = dayjs(timestamp)\n .tz(\"Pacific/Auckland\")\n .format(timeFormat);\n\n return formatDate(formattedDate, \"date\");\n};\n\nexport const defaultRegion: Region = {\n latitude: -36.8624942, // Default: New Zealand\n latitudeDelta: 5.0,\n longitude: 174.7450494,\n longitudeDelta: 5.0,\n};\n\n/**\n * Function to remove __typename from an object or array of objects.\n * @param obj - The object or array to clean.\n * @returns - The cleaned object or array.\n */\nexport const removeTypename = (obj: any): any => {\n if (Array.isArray(obj)) {\n return obj.map((item) => removeTypename(item)); // Recursively clean arrays\n } else if (obj !== null && typeof obj === \"object\") {\n const { __typename, ...cleanedObj } = obj; // Remove __typename\n return Object.keys(cleanedObj).reduce(\n (acc: { [key: string]: any }, key) => {\n acc[key] = removeTypename(cleanedObj[key]); // Recursively clean nested objects\n return acc;\n },\n {},\n );\n }\n return obj; // Return value as-is if it's not an object/array\n};\n\n/**\n * Truncate text to a specified length and append ellipsis if necessary.\n * @param text\n * @param maxLength\n * @returns\n */\nexport const truncateText = (text: string, maxLength: number = 30): string => {\n return text.length > maxLength ? text.substring(0, maxLength) + \"...\" : text;\n};\n\n/**\n * Convert an array of strings to an array of objects with label and value properties.\n * @param items - The array of strings to convert.\n * @returns - The converted array of objects.\n */\nexport const mapArrayToOptions = (items: string[]): OptionItem[] =>\n items.map((item) => ({\n label: item.replace(/_/g, \" \"),\n value: item.replace(/\\s+/g, \"_\").toLowerCase(),\n }));\n\nexport const capitalizeFirstLetter = (str: string): string => {\n return str\n .split(\" \")\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())\n .join(\" \");\n};\n\nexport const statusOptions = [\n ...Object.values(EnumInviteStatus)\n .map((status) => ({\n label: status,\n value: status,\n }))\n .sort((a, b) => a.label.localeCompare(b.label)), // Sort the options alphabetically\n];\n\n/**\n * Sort an array of date strings by their proximity to the current date.\n * @param dates - The array of date strings to sort.\n * @returns - The sorted array of date strings.\n */\nexport function sortDatesByProximity<\n T extends { startDate: string; startTime: string },\n>(dates: T[]): T[] {\n if (!dates || !dates.length) {\n return [];\n }\n const reference = dayjs();\n return [...dates].sort((a, b) => {\n const dateA = dayjs(a.startDate, dateFormat);\n const dateB = dayjs(b.startDate, dateFormat);\n const diffA = Math.abs(dateA.diff(reference));\n const diffB = Math.abs(dateB.diff(reference));\n return diffA - diffB;\n });\n}\n\nexport const availableRegionTypes = Object.values(EnumRegions);\nexport const availableRegionOptions: OptionItem[] =\n mapArrayToOptions(availableRegionTypes);\n\nexport const paymentMethodOptions: OptionItem[] = mapArrayToOptions(\n Object.values(EnumPaymentMethod),\n);\n","export enum EnumInviteStatus {\n ACCEPTED = \"Accepted\",\n COMPLETED = \"Completed\",\n EXPIRED = \"Expired\",\n NO_STATUS = \"No_Status\",\n PENDING = \"Pending\",\n REJECTED = \"Rejected\",\n WAITING = \"Waiting\",\n}\n\nexport enum EnumRejectionPolicy {\n SINGLE_DATE_ALLOWED = \"single_date_allowed\",\n MULTI_DATE_ALLOWED = \"multi_date_allowed\",\n}\n\nexport enum EnumPaymentMethod {\n CASH = \"cash\",\n EFTPOS = \"eftpos\",\n BANK_TRANSFER = \"bank_transfer\",\n PAYPAL = \"paypal\",\n STRIPE = \"stripe\",\n}\n\nexport enum EnumResourceType {\n MARKET = \"market\",\n STALLHOLDER = \"stallholder\",\n}\n\nexport enum EnumRelationResource {\n MARKET_INVITE_STALLHOLDER = \"market_invite_stallholder\",\n STALLHOLDER_APPLICATION_TO_MARKET = \"stallholder_application_to_market\",\n}\n\nexport enum EnumNotification {\n CREATED_MARKET = \"created_market\",\n CREATED_STALLHOLDER = \"created_stallholder\",\n NEW_CHAT_MESSAGE = \"new_chat_message\",\n MARKET_INVITE_STALLHOLDER = EnumRelationResource.MARKET_INVITE_STALLHOLDER,\n STALLHOLDER_APPLICATION_TO_MARKET = EnumRelationResource.STALLHOLDER_APPLICATION_TO_MARKET,\n}\n\nexport enum EnumResourceTypeIcon {\n MARKET = \"compass\",\n STALLHOLDER = \"store\",\n}\n\nexport enum EnumRegions {\n Auckland = \"Auckland\",\n BayOfPlenty = \"Bay of Plenty\",\n Canterbury = \"Canterbury\",\n Gisborne = \"Gisborne\",\n HawkesBay = \"Hawke's Bay\",\n ManawatuWanganui = \"Manawatu-Wanganui\",\n Marlborough = \"Marlborough\",\n Nelson = \"Nelson\",\n Northland = \"Northland\",\n Otago = \"Otago\",\n Southland = \"Southland\",\n Taranaki = \"Taranaki\",\n Waikato = \"Waikato\",\n Wellington = \"Wellington\",\n}\n\nexport enum ImageTypeEnum {\n AVATAR = \"avatar\",\n COVER = \"cover\",\n IMAGE = \"image\",\n LOGO = \"logo\",\n}\n\nexport enum EnumUserLicence {\n ENTERPRISE_MARKET = \"enterprise_market\",\n ENTERPRISE_STALLHOLDER = \"enterprise_stallholder\",\n PRO_MARKET = \"pro_market\",\n PRO_STALLHOLDER = \"pro_stallholder\",\n STANDARD_MARKET = \"standard_market\",\n STANDARD_STALLHOLDER = \"standard_stallholder\",\n}\n\nexport enum EnumUserRole {\n ADMIN = \"admin\",\n CUSTOMER = \"customer\",\n}\n\nexport enum EnumSocialMedia {\n FACEBOOK = \"facebook\",\n INSTAGRAM = \"instagram\",\n TIKTOK = \"tiktok\",\n TWITTER = \"twitter\",\n WEBSITE = \"website\",\n YOUTUBE = \"youtube\",\n}\n","import { FormDateField, FormField, OptionItem } from \"../../types/global\";\nimport { mapArrayToOptions } from \"../../utils\";\n\nexport const stallholderBasicInfoFields: FormField[] = [\n {\n helperText: \"Business Name of the Stallholder *\",\n name: \"name\",\n placeholder: \"Business Name\",\n },\n {\n helperText: \"Description of the Stallholder *\",\n isTextArea: true,\n name: \"description\",\n placeholder: \"Description\",\n },\n {\n helperText: \"Enter Promo code if you have one.\",\n name: \"promoCode\",\n placeholder: \"Promo code\",\n },\n];\n\nexport const stallholderMultiLocation: FormField = {\n helperText:\n \"Usefull when you are not only selling products on Markets but also providing services at other locations.\",\n name: \"multiLocation\",\n placeholder: \"Enable multi location\",\n};\n\nexport const stallholderFullAddress: FormField = {\n helperText: \"Enter address\",\n name: \"fullAddress\",\n placeholder: \"Start typing to find address\",\n};\n\nexport const stallholderStartDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"Start Date\",\n name: \"startDate\",\n placeholder: \"Start Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"Start Time\",\n name: \"startTime\",\n placeholder: \"Start Time\",\n },\n];\n\nexport const stallholderEndDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"End Date\",\n name: \"endDate\",\n placeholder: \"End Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"End Time\",\n name: \"endTime\",\n placeholder: \"End Time\",\n },\n];\n\nexport const stallholderLocationDescription: FormField = {\n helperText: \"Description\",\n isTextArea: true,\n name: \"description\",\n placeholder: \"Description\",\n};\n\nconst availableCityTypes = [\n \"Auckland\",\n \"Christchurch\",\n \"Hamilton\",\n \"Wellington\",\n];\n\nconst nzRegionsWithCities = [\n {\n cities: [\"Auckland\"],\n region: \"Auckland\",\n },\n {\n cities: [\"Tauranga\", \"Whakatāne\", \"Rotorua\"],\n region: \"Bay of Plenty\",\n },\n {\n cities: [\"Christchurch\", \"Timaru\", \"Ashburton\"],\n region: \"Canterbury\",\n },\n {\n cities: [\"Gisborne\"],\n region: \"Gisborne\",\n },\n {\n cities: [\"Napier\", \"Hastings\"],\n region: \"Hawke's Bay\",\n },\n {\n cities: [\"Palmerston North\", \"Whanganui\", \"Levin\"],\n region: \"Manawatū-Whanganui\",\n },\n {\n cities: [\"Blenheim\", \"Picton\"],\n region: \"Marlborough\",\n },\n {\n cities: [\"Nelson\"],\n region: \"Nelson Tasman\",\n },\n {\n cities: [\"Whangārei\", \"Kerikeri\", \"Kaitaia\"],\n region: \"Northland\",\n },\n {\n cities: [\"Dunedin\", \"Queenstown\"],\n region: \"Otago\",\n },\n {\n cities: [\"Invercargill\", \"Gore\"],\n region: \"Southland\",\n },\n {\n cities: [\"New Plymouth\", \"Hāwera\"],\n region: \"Taranaki\",\n },\n {\n cities: [\"Hamilton\", \"Taupō\", \"Cambridge\"],\n region: \"Waikato\",\n },\n {\n cities: [\"Wellington\", \"Lower Hutt\", \"Upper Hutt\", \"Porirua\"],\n region: \"Wellington\",\n },\n];\n\nexport const availableCityOptions: OptionItem[] =\n mapArrayToOptions(availableCityTypes);\n","import { FormField, OptionItem } from \"../../types\";\nimport { mapArrayToOptions } from \"../../utils\";\n\nexport const stallholderElectricity: {\n details: FormField;\n isRequired: FormField;\n} = {\n details: {\n helperText: \"Please describe details e.g. amps, voltage, etc.\",\n isTextArea: true,\n name: \"electricity.details\",\n placeholder: \"Electricity requirements\",\n },\n isRequired: {\n name: \"electricity.isRequired\",\n placeholder: \"Do you require electricity?\",\n },\n};\n\nexport const stallholderGazebo: {\n details: FormField;\n isRequired: FormField;\n} = {\n details: {\n helperText: \"Please describe details e.g. size, etc.\",\n isTextArea: true,\n name: \"gazebo.details\",\n placeholder: \"Gazebo requirements\",\n },\n isRequired: {\n name: \"gazebo.isRequired\",\n placeholder: \"Do you require Gazebo?\",\n },\n};\n\nexport const stallholderTable: {\n details: FormField;\n isRequired: FormField;\n} = {\n details: {\n helperText: \"Please describe details e.g. size, etc.\",\n isTextArea: true,\n name: \"table.details\",\n placeholder: \"Table requirements\",\n },\n isRequired: {\n name: \"table.isRequired\",\n placeholder: \"Do you require Table?\",\n },\n};\n\nexport const stallholderPriceRange: {\n max: FormField;\n min: FormField;\n} = {\n max: {\n helperText: \"Product maximum price\",\n name: \"priceRange.max\",\n placeholder: \"Maximum price: \",\n },\n min: {\n helperText: \"Product minimum price\",\n name: \"priceRange.min\",\n placeholder: \"Minimum price: \",\n },\n};\n\nexport const stallholderStallSize: {\n depth: FormField;\n width: FormField;\n} = {\n depth: {\n helperText: \"Stall size in depth\",\n name: \"stallSize.depth\",\n placeholder: \"Stall Depth: \",\n },\n width: {\n helperText: \"Stall size in width\",\n name: \"stallSize.width\",\n placeholder: \"Stall Width: \",\n },\n};\n\nexport const stallholderPackaging: FormField = {\n helperText: \"Select packaging type, you can select more than one\",\n name: \"packaging\",\n placeholder: \"Packaging type\",\n};\n\nexport const stallholderPaymentMethod: FormField = {\n helperText: \"Select payment method\",\n name: \"paymentMethod\",\n placeholder: \"Payment Method type\",\n};\n\nexport const stallholderProducedIn: FormField = {\n helperText:\n \"Select where the product is produced, you can select more than one\",\n name: \"producedIn\",\n placeholder: \"Produced type\",\n};\n\nconst packagingTypes = [\n \"Biodegradable\",\n \"Compostable\",\n \"Recyclable\",\n \"Reusable\",\n \"Single-use\",\n \"Glass\",\n \"Paper\",\n \"Plastic\",\n \"Wood\",\n \"Other\",\n];\n\nconst producedIngTypes = [\n \"Commercial Kitchen\",\n \"Home Premises\",\n \"Factory\",\n \"Farm\",\n \"Other\",\n];\n\nexport const packagingOptions: OptionItem[] = mapArrayToOptions(packagingTypes);\nexport const producedIngOptions: OptionItem[] =\n mapArrayToOptions(producedIngTypes);\n","import { FormDateField, FormField, OptionItem } from \"../../types/global\";\nimport { mapArrayToOptions } from \"../../utils\";\n\nexport const marketBasicInfoFields: FormField[] = [\n {\n helperText: \"Name of the Market *\",\n name: \"name\",\n placeholder: \"Name\",\n },\n {\n helperText: \"Name of the Provider *\",\n name: \"provider\",\n placeholder: \"Provider\",\n },\n {\n helperText: \"Description of the Market *\",\n isTextArea: true,\n name: \"description\",\n placeholder: \"Description\",\n },\n {\n helperText: \"Enter Promo code if you have one.\",\n name: \"promoCode\",\n placeholder: \"Promo code\",\n },\n];\n\nexport const marketStartDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"Start Date of the Market *\",\n name: \"startDate\",\n placeholder: \"Start Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"Start Time of the Market *\",\n name: \"startTime\",\n placeholder: \"Start Time\",\n },\n];\n\nexport const marketEndDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"End Date of the Market *\",\n name: \"endDate\",\n placeholder: \"End Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"End Time of the Market *\",\n name: \"endTime\",\n placeholder: \"End Time\",\n },\n];\n\nexport const availableTagTypes = [\n { icon: \"human-male-female-child\", label: \"All Ages\" },\n { icon: \"weather-sunny\", label: \"Day Market\" },\n { icon: \"account-child\", label: \"Family Friendly\" },\n { icon: \"ticket-percent\", label: \"Free Entry\" },\n { icon: \"home-city\", label: \"Indoor Market\" },\n { icon: \"music\", label: \"Live Music\" },\n { icon: \"bus\", label: \"Near Bustop\" },\n { icon: \"slide\", label: \"Near Playground\" },\n { icon: \"train\", label: \"Near Train Station\" },\n { icon: \"weather-night\", label: \"Night Market\" },\n { icon: \"tree\", label: \"Outdoor Market\" },\n { icon: \"car\", label: \"Parking Available\" },\n { icon: \"dog\", label: \"Pet Friendly\" },\n { icon: \"ship-wheel\", label: \"Port Nearby\" },\n { icon: \"toilet\", label: \"Toilet Available\" },\n { icon: \"wheelchair-accessibility\", label: \"Wheelchair Accessible\" },\n];\n\nexport const tagOptions: OptionItem[] = availableTagTypes.map((tag) => ({\n label: tag.label,\n value: tag.label,\n}));\n","import { EnumRejectionPolicy } from \"../../enums\";\nimport { FormField, OptionItem } from \"../../types/global\";\nimport { mapArrayToOptions } from \"../../utils\";\n\nexport const marketInfo: FormField[] = [\n {\n helperText: \"Application Deadline of the Market *\",\n keyboardType: \"number-pad\",\n name: \"applicationDeadlineHours\",\n placeholder: \"Application Deadline Hours\",\n },\n {\n helperText: \"Stall Capacity of the Market *\",\n keyboardType: \"number-pad\",\n name: \"stallCapacity\",\n placeholder: \"Stall Capacity\",\n },\n {\n helperText: \"Payment Due Hours of the Market *\",\n keyboardType: \"number-pad\",\n name: \"paymentDueHours\",\n placeholder: \"Payment Due Hours\",\n },\n];\n\nexport const marketInfoPaymentTarget: FormField[] = [\n {\n helperText: \"Account holder name *\",\n name: \"accountHolderName\",\n placeholder: \"Account holder name\",\n },\n {\n helperText: \"Account number *\",\n name: \"accountNumber\",\n placeholder: \"Account number\",\n },\n {\n helperText: \"Link to payment target *\",\n keyboardType: \"url\",\n name: \"link\",\n placeholder: \"Link to payment target\",\n },\n];\n\nexport const marketPriceByDateFields: FormField[] = [\n {\n helperText: \"Market Price for this date *\",\n keyboardType: \"number-pad\",\n name: \"marketPrice\",\n placeholder: \"Market Price\",\n },\n];\n\nexport const rejectionPolicyOptions: OptionItem[] = mapArrayToOptions(\n Object.values(EnumRejectionPolicy),\n);\n","import { FormField } from \"../types/global\";\n\nexport const loginFields: FormField[] = [\n {\n helperText: \"Enter your email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n {\n helperText: \"Enter your password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n];\n\nexport const registerFields: FormField[] = [\n {\n helperText: \"Enter your first name\",\n keyboardType: \"default\",\n name: \"firstName\",\n placeholder: \"First Name\",\n },\n {\n helperText: \"Enter your last name\",\n keyboardType: \"default\",\n name: \"lastName\",\n placeholder: \"Last Name\",\n },\n {\n helperText: \"Enter your email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n {\n helperText: \"Enter your password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n];\n\nexport const requestPasswordResetFields: FormField[] = [\n {\n helperText: \"Enter your email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n];\n\nexport const resetPasswordFields: FormField[] = [\n {\n helperText: \"Enter your new password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n {\n helperText: \"Confirm your new password\",\n keyboardType: \"default\",\n name: \"confirmPassword\",\n placeholder: \"Confirm Password\",\n secureTextEntry: true,\n },\n];\n\nexport const validateTokenFields: FormField[] = [\n {\n disabled: true,\n helperText: \"Your email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n {\n helperText: \"Enter the Verification code sent to your email\",\n keyboardType: \"number-pad\",\n name: \"token\",\n placeholder: \"Verification code\",\n },\n];\n","import { FormField } from \"../types/global\";\n\nexport const profileFields: FormField[] = [\n {\n disabled: true,\n helperText: \"Email cannot be changed\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n {\n helperText: \"Enter your first name\",\n keyboardType: \"default\",\n name: \"firstName\",\n placeholder: \"First Name\",\n },\n {\n helperText: \"Enter your last name\",\n keyboardType: \"default\",\n name: \"lastName\",\n placeholder: \"Last Name\",\n },\n {\n helperText: \"Enter your new password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n {\n helperText: \"Confirm your new password\",\n keyboardType: \"default\",\n name: \"confirmPassword\",\n placeholder: \"Confirm Password\",\n secureTextEntry: true,\n },\n];\n","import { Category } from \"../types/global\";\n\nexport const availableCategories: Category[] = [\n {\n id: \"food-drinks\",\n name: \"Food & Drinks\",\n subcategories: [\n {\n id: \"fresh-food-groceries\",\n items: [\n \"Fruits & Vegetables\",\n \"Meat & Seafood\",\n \"Dairy & Eggs\",\n \"Bakery & Desserts\",\n \"Spices & Condiments\",\n \"Packaged & Specialty Foods\",\n \"Other\",\n ],\n name: \"Fresh Food & Groceries\",\n },\n {\n id: \"beverages-specialty-drinks\",\n items: [\n \"Fresh Juices & Smoothies\",\n \"Coffee & Teas\",\n \"Dairy & Plant-Based Drinks\",\n \"Alcoholic Beverages\",\n \"Other\",\n ],\n name: \"Beverages & Specialty Drinks\",\n },\n {\n id: \"prepared-street-foods\",\n items: [\n \"Local & International Specialties\",\n \"Vegan & Vegetarian Options\",\n \"Candies & Sweets\",\n \"BBQ & Grilled Foods\",\n \"Other\",\n ],\n name: \"Prepared & Street Foods\",\n },\n ],\n },\n {\n id: \"handmade-local-products\",\n name: \"Handmade & Local Products\",\n subcategories: [\n {\n id: \"home-lifestyle\",\n items: [\n \"Textiles & Home Decor\",\n \"Pottery & Ceramics\",\n \"Woodwork & Carving\",\n \"Handwoven Baskets & Bags\",\n \"Other\",\n ],\n name: \"Home & Lifestyle\",\n },\n {\n id: \"fashion-accessories\",\n items: [\n \"Leather & Hand-Stitched Items\",\n \"Handcrafted Jewelry & Accessories\",\n \"Traditional & Cultural Clothing\",\n \"Other\",\n ],\n name: \"Fashion & Accessories\",\n },\n {\n id: \"eco-friendly-products\",\n items: [\n \"Recycled Goods\",\n \"Eco-Packaging\",\n \"Sustainable Fashion & Accessories\",\n \"Other\",\n ],\n name: \"Eco-Friendly & Sustainable Products\",\n },\n {\n id: \"arts-crafts\",\n items: [\"Art & Crafts\", \"Traditional & Cultural Items\", \"Other\"],\n name: \"Arts & Crafts\",\n },\n ],\n },\n {\n id: \"clothing-fashion\",\n name: \"Clothing & Fashion\",\n subcategories: [\n {\n id: \"casual-modern-wear\",\n items: [\n \"Modern & Casual Clothes\",\n \"Jackets & Outerwear\",\n \"Baby & Kids Clothing\",\n \"Scarves & Shawls\",\n \"Second-Hand Designer Clothes\",\n \"Underwear\",\n \"Other\",\n ],\n name: \"Casual & Modern Wear\",\n },\n {\n id: \"footwear\",\n items: [\n \"Everyday Shoes\",\n \"Formal Shoes\",\n \"Handmade & Leather Shoes\",\n \"Other\",\n ],\n name: \"Footwear\",\n },\n {\n id: \"bags-accessories\",\n items: [\n \"Bags, Belts, Hats, Sunglasses, Watches\",\n \"Retro and Vintage Accessories\",\n \"Other\",\n ],\n name: \"Bags & Accessories\",\n },\n {\n id: \"luxury-designer-brands\",\n items: [\n \"Luxury Clothing\",\n \"Designer Shoes\",\n \"Exclusive Accessories\",\n \"Other\",\n ],\n name: \"Luxury & Designer Brands\",\n },\n ],\n },\n {\n id: \"home-garden-household\",\n name: \"Home, Garden & Household Goods\",\n subcategories: [\n {\n id: \"home-essentials-kitchenware\",\n items: [\n \"Kitchenware & Dining\",\n \"Sustainable & Eco-Friendly Items\",\n \"Handmade & Artisan Home Goods\",\n \"Other\",\n ],\n name: \"Home Essentials & Kitchenware\",\n },\n {\n id: \"furniture-decor-organization\",\n items: [\n \"Furniture & Home Decor\",\n \"Textiles & Bedding\",\n \"Storage & Organization\",\n \"Other\",\n ],\n name: \"Furniture, Decor & Organization\",\n },\n {\n id: \"outdoor-cleaning-essentials\",\n items: [\n \"Garden, Plants & Decorations\",\n \"DIY & Home Improvement\",\n \"Cleaning Supplies & Household Essentials\",\n \"Other\",\n ],\n name: \"Outdoor & Cleaning Essentials\",\n },\n ],\n },\n {\n id: \"toys-pets\",\n name: \"Toys & Pets\",\n subcategories: [\n {\n id: \"handmade-eco-friendly-kids\",\n items: [\"Handmade & Local Toys\", \"Eco-Friendly Kids Products\", \"Other\"],\n name: \"Handmade & Eco-Friendly Kids Products\",\n },\n {\n id: \"toys-all-ages\",\n items: [\n \"Classic & Interactive Toys\",\n \"Building Blocks & Board Games\",\n \"Balloons & Party Accessories\",\n \"Other\",\n ],\n name: \"Toys for All Ages\",\n },\n {\n id: \"pet-products-animal-goods\",\n items: [\n \"Natural Pet Foods\",\n \"Handmade Pet Accessories\",\n \"Livestock & Farm Supplies\",\n \"Other\",\n ],\n name: \"Pet Products & Animal Goods\",\n },\n ],\n },\n {\n id: \"health-wellness-selfcare\",\n name: \"Health, Wellness & Self-Care\",\n subcategories: [\n {\n id: \"natural-remedies-supplements\",\n items: [\n \"Vitamins, Minerals & Herbal Remedies\",\n \"Superfoods, Probiotics & Detox Teas\",\n \"Other\",\n ],\n name: \"Natural Remedies & Supplements\",\n },\n {\n id: \"organic-natural-products\",\n items: [\n \"Organic Produce, Honey, Nuts & Seeds\",\n \"Gluten-Free & Specialty Items\",\n \"Other\",\n ],\n name: \"Organic & Natural Products\",\n },\n {\n id: \"fitness-sports-nutrition\",\n items: [\"Protein Powders & Bars\", \"Sports & Energy Drinks\", \"Other\"],\n name: \"Fitness & Sports Nutrition\",\n },\n {\n id: \"mental-wellbeing-relaxation\",\n items: [\n \"Yoga, Meditation & Stress-Relief Tools\",\n \"Massage & Muscle Relaxers\",\n \"Motivational Books & Tools\",\n \"Other\",\n ],\n name: \"Mental Wellbeing & Relaxation\",\n },\n ],\n },\n {\n id: \"electronics-technology\",\n name: \"Electronics & Technology\",\n subcategories: [\n {\n id: \"electronic-devices-accessories\",\n items: [\n \"Refurbished & Used Electronics\",\n \"Smartphones & Gadgets\",\n \"Computers & Gaming Gear\",\n \"Photography & Audio Equipment\",\n \"Other\",\n ],\n name: \"Electronic Devices & Accessories\",\n },\n ],\n },\n {\n id: \"antiques-collectibles\",\n name: \"Antiques & Collectibles\",\n subcategories: [\n {\n id: \"antiques-vintage-furniture\",\n items: [\n \"Old Clocks, Paintings & Sculptures\",\n \"Coins, Stamps & Rare Books\",\n \"Antique & Vintage Furniture & Home Decor\",\n \"Other\",\n ],\n name: \"Antiques & Vintage Furniture\",\n },\n {\n id: \"historical-rare-items\",\n items: [\n \"War Relics & Military Medals\",\n \"Limited Edition Artworks & Memorabilia\",\n \"Other\",\n ],\n name: \"Historical & Rare Items\",\n },\n {\n id: \"collectible-toys-games\",\n items: [\n \"Limited Edition Figures & Retro Board Games\",\n \"Pop Culture & Sports Memorabilia\",\n \"Other\",\n ],\n name: \"Collectible Toys & Games\",\n },\n ],\n },\n];\n\nexport const categoryColors: Record<string, string> = {\n \"antiques-collectibles\": \"#DE630A\",\n \"clothing-fashion\": \"#6A08C5\",\n \"electronics-technology\": \"#0303BE\",\n \"food-drinks\": \"#FF004D\",\n \"handmade-local-products\": \"#8E4827\",\n \"health-wellness-selfcare\": \"#7DFB03\",\n \"home-garden-household\": \"#006400\",\n \"toys-pets\": \"#3357FF\",\n};\n","import { FormField } from \"../types/global\";\n\nconst socialMedia = [\n {\n key: \"facebook\",\n name: \"Facebook\",\n placeholder: \"https://www.facebook.com/your-page\",\n },\n {\n key: \"instagram\",\n name: \"Instagram\",\n placeholder: \"https://www.instagram.com/your-profile\",\n },\n {\n key: \"tiktok\",\n name: \"TikTok\",\n placeholder: \"https://www.tiktok.com/@your-profile\",\n },\n {\n key: \"twitter\",\n name: \"Twitter\",\n placeholder: \"https://twitter.com/your-profile\",\n },\n {\n key: \"website\",\n name: \"Website\",\n placeholder: \"https://www.yourwebsite.com\",\n },\n {\n key: \"youtube\",\n name: \"YouTube\",\n placeholder: \"https://www.youtube.com/channel/your-channel\",\n },\n];\nexport const socialMediaFields: FormField[] = socialMedia.map((link) => ({\n helperText: link.name,\n keyboardType: \"url\",\n name: link.key,\n placeholder: link.placeholder,\n}));\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAA8B;AAC9B,+BAA8B;AAC9B,2BAA0B;AAC1B,sBAAqB;AACrB,iBAAgB;;;ACJT,IAAK,mBAAL,kBAAKA,sBAAL;AACL,EAAAA,kBAAA,cAAW;AACX,EAAAA,kBAAA,eAAY;AACZ,EAAAA,kBAAA,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f;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AACF;AACO,IAAM,oBAAiC,YAAY,IAAI,CAAC,UAAU;AAAA,EACvE,YAAY,KAAK;AAAA,EACjB,cAAc;AAAA,EACd,MAAM,KAAK;AAAA,EACX,aAAa,KAAK;AACpB,EAAE;","names":["EnumInviteStatus","EnumRejectionPolicy","EnumPaymentMethod","EnumRegions","customParseFormat","utc","timezone","isSameOrAfter"]}
|
|
1
|
+
{"version":3,"sources":["../../src/formFields/index.ts","../../src/utils/index.ts","../../src/enums/index.ts","../../src/formFields/stallholder/stallholder.ts","../../src/formFields/stallholder/stallholderApplyForm.ts","../../src/formFields/market/market.ts","../../src/formFields/market/marketInfo.ts","../../src/formFields/auth.ts","../../src/formFields/user.ts","../../src/formFields/categories.ts","../../src/formFields/socialMedia.ts"],"sourcesContent":["export * from \"./stallholder\";\nexport * from \"./market\";\nexport * from \"./auth\";\nexport * from \"./user\";\nexport * from \"./categories\";\nexport * from \"./socialMedia\";\n","import dayjs, { extend } from \"dayjs\";\nimport customParseFormat from \"dayjs/plugin/customParseFormat\";\nimport isSameOrAfter from \"dayjs/plugin/isSameOrAfter\";\nimport timezone from \"dayjs/plugin/timezone\";\nimport utc from \"dayjs/plugin/utc\";\n\nimport { EnumInviteStatus, EnumPaymentMethod, EnumRegions } from \"../enums\";\nimport { OptionItem, Region } from \"../types/global\";\n\nexport const dateFormat = \"DD-MM-YYYY\";\nexport const timeFormat = \"HH:mm\";\n\n// Enable custom format parsing\nextend(customParseFormat);\nextend(utc);\nextend(timezone);\nextend(isSameOrAfter);\n\ntype DateFormat = \"date\" | \"time\" | \"datetime\";\n\n/**\n * Format a date string to a more readable format.\n * @param dateStr - the date string\n * @param timeStr - optional time string\n * @param display - 'date' | 'time' | 'datetime'\n * @returns formatted string based on display option\n */\nexport const formatDate = (\n dateStr: string,\n display: DateFormat = \"datetime\",\n timeStr?: string,\n) => {\n // Combine date and time into a single string if time is provided\n const dateTimeStr = timeStr ? `${dateStr} ${timeStr}` : dateStr;\n\n // Parse with formats\n const dateTime = timeStr\n ? dayjs(dateTimeStr, `${dateFormat} ${timeFormat}`)\n : dayjs(dateStr, dateFormat);\n\n // Format parts\n const formattedDate = dateTime.format(\"dddd, D MMMM, YYYY\");\n const formattedTime = dateTime.format(\"h:mm a\");\n\n // Return based on display option\n switch (display) {\n case \"date\":\n return formattedDate;\n case \"time\":\n return formattedTime;\n case \"datetime\":\n return `${formattedDate} at ${formattedTime}`;\n default:\n return formattedDate;\n }\n};\n\nexport const getCurrentAndFutureDates = <\n T extends { startDate: string; startTime: string },\n>(\n dates: T[],\n): T[] => {\n const today = dayjs().startOf(\"day\");\n return dates.filter((dateObj) => {\n const dateTime = dayjs(dateObj.startDate, dateFormat);\n return dateTime.isSameOrAfter(today);\n });\n};\n\nexport const getFutureDatesAfterThreshold = (\n dates: {\n startDate: string;\n startTime: string;\n }[],\n minHoursFromNow?: number, // Optional\n) => {\n const threshold = minHoursFromNow\n ? dayjs().add(minHoursFromNow, \"hour\")\n : dayjs().startOf(\"day\");\n\n return dates.filter((dateObj) => {\n const dateTime = dayjs(\n `${dateObj.startDate} ${dateObj.startTime}`,\n `${dateFormat} ${timeFormat}`,\n );\n return dateTime.isSameOrAfter(threshold);\n });\n};\n\nexport const formatTimestamp = (timestamp: string) => {\n const formattedDate = dayjs(timestamp)\n .tz(\"Pacific/Auckland\")\n .format(dateFormat);\n\n const formattedTime = dayjs(timestamp)\n .tz(\"Pacific/Auckland\")\n .format(timeFormat);\n\n return formatDate(formattedDate, \"date\");\n};\n\nexport const defaultRegion: Region = {\n latitude: -36.8624942, // Default: New Zealand\n latitudeDelta: 5.0,\n longitude: 174.7450494,\n longitudeDelta: 5.0,\n};\n\n/**\n * Function to remove __typename from an object or array of objects.\n * @param obj - The object or array to clean.\n * @returns - The cleaned object or array.\n */\nexport const removeTypename = (obj: any): any => {\n if (Array.isArray(obj)) {\n return obj.map((item) => removeTypename(item)); // Recursively clean arrays\n } else if (obj !== null && typeof obj === \"object\") {\n const { __typename, ...cleanedObj } = obj; // Remove __typename\n return Object.keys(cleanedObj).reduce(\n (acc: { [key: string]: any }, key) => {\n acc[key] = removeTypename(cleanedObj[key]); // Recursively clean nested objects\n return acc;\n },\n {},\n );\n }\n return obj; // Return value as-is if it's not an object/array\n};\n\n/**\n * Truncate text to a specified length and append ellipsis if necessary.\n * @param text\n * @param maxLength\n * @returns\n */\nexport const truncateText = (text: string, maxLength: number = 30): string => {\n return text.length > maxLength ? text.substring(0, maxLength) + \"...\" : text;\n};\n\n/**\n * Convert an array of strings to an array of objects with label and value properties.\n * @param items - The array of strings to convert.\n * @returns - The converted array of objects.\n */\nexport const mapArrayToOptions = (items: string[]): OptionItem[] =>\n items.map((item) => ({\n label: item.replace(/_/g, \" \"),\n value: item.replace(/\\s+/g, \"_\").toLowerCase(),\n }));\n\nexport const capitalizeFirstLetter = (str: string): string => {\n return str\n .split(\" \")\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())\n .join(\" \");\n};\n\nexport const statusOptions = [\n ...Object.values(EnumInviteStatus)\n .map((status) => ({\n label: status,\n value: status,\n }))\n .sort((a, b) => a.label.localeCompare(b.label)), // Sort the options alphabetically\n];\n\n/**\n * Sort an array of date strings by their proximity to the current date.\n * @param dates - The array of date strings to sort.\n * @returns - The sorted array of date strings.\n */\nexport function sortDatesByProximity<\n T extends { startDate: string; startTime: string },\n>(dates: T[]): T[] {\n if (!dates || !dates.length) {\n return [];\n }\n const reference = dayjs();\n return [...dates].sort((a, b) => {\n const dateA = dayjs(a.startDate, dateFormat);\n const dateB = dayjs(b.startDate, dateFormat);\n const diffA = Math.abs(dateA.diff(reference));\n const diffB = Math.abs(dateB.diff(reference));\n return diffA - diffB;\n });\n}\n\nexport const availableRegionTypes = Object.values(EnumRegions);\nexport const availableRegionOptions: OptionItem[] =\n mapArrayToOptions(availableRegionTypes);\n\nexport const paymentMethodOptions: OptionItem[] = mapArrayToOptions(\n Object.values(EnumPaymentMethod),\n);\n","export enum EnumInviteStatus {\n ACCEPTED = \"Accepted\",\n COMPLETED = \"Completed\",\n EXPIRED = \"Expired\",\n NO_STATUS = \"No_Status\",\n PENDING = \"Pending\",\n REJECTED = \"Rejected\",\n WAITING = \"Waiting\",\n}\n\nexport enum EnumPaymentMethod {\n CASH = \"cash\",\n EFTPOS = \"eftpos\",\n BANK_TRANSFER = \"bank_transfer\",\n PAYPAL = \"paypal\",\n STRIPE = \"stripe\",\n}\n\nexport enum EnumResourceType {\n MARKET = \"market\",\n STALLHOLDER = \"stallholder\",\n}\n\nexport enum EnumRelationResource {\n MARKET_INVITE_STALLHOLDER = \"market_invite_stallholder\",\n STALLHOLDER_APPLICATION_TO_MARKET = \"stallholder_application_to_market\",\n}\n\nexport enum EnumNotification {\n CREATED_MARKET = \"created_market\",\n CREATED_STALLHOLDER = \"created_stallholder\",\n NEW_CHAT_MESSAGE = \"new_chat_message\",\n MARKET_INVITE_STALLHOLDER = EnumRelationResource.MARKET_INVITE_STALLHOLDER,\n STALLHOLDER_APPLICATION_TO_MARKET = EnumRelationResource.STALLHOLDER_APPLICATION_TO_MARKET,\n}\n\nexport enum EnumResourceTypeIcon {\n MARKET = \"compass\",\n STALLHOLDER = \"store\",\n}\n\nexport enum EnumRegions {\n Auckland = \"Auckland\",\n BayOfPlenty = \"Bay of Plenty\",\n Canterbury = \"Canterbury\",\n Gisborne = \"Gisborne\",\n HawkesBay = \"Hawke's Bay\",\n ManawatuWanganui = \"Manawatu-Wanganui\",\n Marlborough = \"Marlborough\",\n Nelson = \"Nelson\",\n Northland = \"Northland\",\n Otago = \"Otago\",\n Southland = \"Southland\",\n Taranaki = \"Taranaki\",\n Waikato = \"Waikato\",\n Wellington = \"Wellington\",\n}\n\nexport enum ImageTypeEnum {\n AVATAR = \"avatar\",\n COVER = \"cover\",\n IMAGE = \"image\",\n LOGO = \"logo\",\n}\n\nexport enum EnumUserLicence {\n ENTERPRISE_MARKET = \"enterprise_market\",\n ENTERPRISE_STALLHOLDER = \"enterprise_stallholder\",\n PRO_MARKET = \"pro_market\",\n PRO_STALLHOLDER = \"pro_stallholder\",\n STANDARD_MARKET = \"standard_market\",\n STANDARD_STALLHOLDER = \"standard_stallholder\",\n}\n\nexport enum EnumUserRole {\n ADMIN = \"admin\",\n CUSTOMER = \"customer\",\n}\n\nexport enum EnumSocialMedia {\n FACEBOOK = \"facebook\",\n INSTAGRAM = \"instagram\",\n TIKTOK = \"tiktok\",\n TWITTER = \"twitter\",\n WEBSITE = \"website\",\n YOUTUBE = \"youtube\",\n}\n","import { FormDateField, FormField, OptionItem } from \"../../types/global\";\nimport { mapArrayToOptions } from \"../../utils\";\n\nexport const stallholderBasicInfoFields: FormField[] = [\n {\n helperText: \"Business Name of the Stallholder *\",\n name: \"name\",\n placeholder: \"Business Name\",\n },\n {\n helperText: \"Description of the Stallholder *\",\n isTextArea: true,\n name: \"description\",\n placeholder: \"Description\",\n },\n {\n helperText: \"Enter Promo code if you have one.\",\n name: \"promoCode\",\n placeholder: \"Promo code\",\n },\n];\n\nexport const stallholderMultiLocation: FormField = {\n helperText:\n \"Usefull when you are not only selling products on Markets but also providing services at other locations.\",\n name: \"multiLocation\",\n placeholder: \"Enable multi location\",\n};\n\nexport const stallholderFullAddress: FormField = {\n helperText: \"Enter address\",\n name: \"fullAddress\",\n placeholder: \"Start typing to find address\",\n};\n\nexport const stallholderStartDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"Start Date\",\n name: \"startDate\",\n placeholder: \"Start Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"Start Time\",\n name: \"startTime\",\n placeholder: \"Start Time\",\n },\n];\n\nexport const stallholderEndDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"End Date\",\n name: \"endDate\",\n placeholder: \"End Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"End Time\",\n name: \"endTime\",\n placeholder: \"End Time\",\n },\n];\n\nexport const stallholderLocationDescription: FormField = {\n helperText: \"Description\",\n isTextArea: true,\n name: \"description\",\n placeholder: \"Description\",\n};\n\nconst availableCityTypes = [\n \"Auckland\",\n \"Christchurch\",\n \"Hamilton\",\n \"Wellington\",\n];\n\nconst nzRegionsWithCities = [\n {\n cities: [\"Auckland\"],\n region: \"Auckland\",\n },\n {\n cities: [\"Tauranga\", \"Whakatāne\", \"Rotorua\"],\n region: \"Bay of Plenty\",\n },\n {\n cities: [\"Christchurch\", \"Timaru\", \"Ashburton\"],\n region: \"Canterbury\",\n },\n {\n cities: [\"Gisborne\"],\n region: \"Gisborne\",\n },\n {\n cities: [\"Napier\", \"Hastings\"],\n region: \"Hawke's Bay\",\n },\n {\n cities: [\"Palmerston North\", \"Whanganui\", \"Levin\"],\n region: \"Manawatū-Whanganui\",\n },\n {\n cities: [\"Blenheim\", \"Picton\"],\n region: \"Marlborough\",\n },\n {\n cities: [\"Nelson\"],\n region: \"Nelson Tasman\",\n },\n {\n cities: [\"Whangārei\", \"Kerikeri\", \"Kaitaia\"],\n region: \"Northland\",\n },\n {\n cities: [\"Dunedin\", \"Queenstown\"],\n region: \"Otago\",\n },\n {\n cities: [\"Invercargill\", \"Gore\"],\n region: \"Southland\",\n },\n {\n cities: [\"New Plymouth\", \"Hāwera\"],\n region: \"Taranaki\",\n },\n {\n cities: [\"Hamilton\", \"Taupō\", \"Cambridge\"],\n region: \"Waikato\",\n },\n {\n cities: [\"Wellington\", \"Lower Hutt\", \"Upper Hutt\", \"Porirua\"],\n region: \"Wellington\",\n },\n];\n\nexport const availableCityOptions: OptionItem[] =\n mapArrayToOptions(availableCityTypes);\n","import { FormField, OptionItem } from \"../../types\";\nimport { mapArrayToOptions } from \"../../utils\";\n\nexport const stallholderElectricity: {\n details: FormField;\n isRequired: FormField;\n} = {\n details: {\n helperText: \"Please describe details e.g. amps, voltage, etc.\",\n isTextArea: true,\n name: \"electricity.details\",\n placeholder: \"Electricity requirements\",\n },\n isRequired: {\n name: \"electricity.isRequired\",\n placeholder: \"Do you require electricity?\",\n },\n};\n\nexport const stallholderGazebo: {\n details: FormField;\n isRequired: FormField;\n} = {\n details: {\n helperText: \"Please describe details e.g. size, etc.\",\n isTextArea: true,\n name: \"gazebo.details\",\n placeholder: \"Gazebo requirements\",\n },\n isRequired: {\n name: \"gazebo.isRequired\",\n placeholder: \"Do you require Gazebo?\",\n },\n};\n\nexport const stallholderTable: {\n details: FormField;\n isRequired: FormField;\n} = {\n details: {\n helperText: \"Please describe details e.g. size, etc.\",\n isTextArea: true,\n name: \"table.details\",\n placeholder: \"Table requirements\",\n },\n isRequired: {\n name: \"table.isRequired\",\n placeholder: \"Do you require Table?\",\n },\n};\n\nexport const stallholderPriceRange: {\n max: FormField;\n min: FormField;\n} = {\n max: {\n helperText: \"Product maximum price\",\n name: \"priceRange.max\",\n placeholder: \"Maximum price: \",\n },\n min: {\n helperText: \"Product minimum price\",\n name: \"priceRange.min\",\n placeholder: \"Minimum price: \",\n },\n};\n\nexport const stallholderStallSize: {\n depth: FormField;\n width: FormField;\n} = {\n depth: {\n helperText: \"Stall size in depth\",\n name: \"stallSize.depth\",\n placeholder: \"Stall Depth: \",\n },\n width: {\n helperText: \"Stall size in width\",\n name: \"stallSize.width\",\n placeholder: \"Stall Width: \",\n },\n};\n\nexport const stallholderPackaging: FormField = {\n helperText: \"Select packaging type, you can select more than one\",\n name: \"packaging\",\n placeholder: \"Packaging type\",\n};\n\nexport const stallholderPaymentMethod: FormField = {\n helperText: \"Select payment method\",\n name: \"paymentMethod\",\n placeholder: \"Payment Method type\",\n};\n\nexport const stallholderProducedIn: FormField = {\n helperText:\n \"Select where the product is produced, you can select more than one\",\n name: \"producedIn\",\n placeholder: \"Produced type\",\n};\n\nconst packagingTypes = [\n \"Biodegradable\",\n \"Compostable\",\n \"Recyclable\",\n \"Reusable\",\n \"Single-use\",\n \"Glass\",\n \"Paper\",\n \"Plastic\",\n \"Wood\",\n \"Other\",\n];\n\nconst producedIngTypes = [\n \"Commercial Kitchen\",\n \"Home Premises\",\n \"Factory\",\n \"Farm\",\n \"Other\",\n];\n\nexport const packagingOptions: OptionItem[] = mapArrayToOptions(packagingTypes);\nexport const producedIngOptions: OptionItem[] =\n mapArrayToOptions(producedIngTypes);\n","import { FormDateField, FormField, OptionItem } from \"../../types/global\";\nimport { mapArrayToOptions } from \"../../utils\";\n\nexport const marketBasicInfoFields: FormField[] = [\n {\n helperText: \"Name of the Market *\",\n name: \"name\",\n placeholder: \"Name\",\n },\n {\n helperText: \"Name of the Provider *\",\n name: \"provider\",\n placeholder: \"Provider\",\n },\n {\n helperText: \"Description of the Market *\",\n isTextArea: true,\n name: \"description\",\n placeholder: \"Description\",\n },\n {\n helperText: \"Enter Promo code if you have one.\",\n name: \"promoCode\",\n placeholder: \"Promo code\",\n },\n];\n\nexport const marketStartDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"Start Date of the Market *\",\n name: \"startDate\",\n placeholder: \"Start Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"Start Time of the Market *\",\n name: \"startTime\",\n placeholder: \"Start Time\",\n },\n];\n\nexport const marketEndDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"End Date of the Market *\",\n name: \"endDate\",\n placeholder: \"End Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"End Time of the Market *\",\n name: \"endTime\",\n placeholder: \"End Time\",\n },\n];\n\nexport const availableTagTypes = [\n { icon: \"human-male-female-child\", label: \"All Ages\" },\n { icon: \"weather-sunny\", label: \"Day Market\" },\n { icon: \"account-child\", label: \"Family Friendly\" },\n { icon: \"ticket-percent\", label: \"Free Entry\" },\n { icon: \"home-city\", label: \"Indoor Market\" },\n { icon: \"music\", label: \"Live Music\" },\n { icon: \"bus\", label: \"Near Bustop\" },\n { icon: \"slide\", label: \"Near Playground\" },\n { icon: \"train\", label: \"Near Train Station\" },\n { icon: \"weather-night\", label: \"Night Market\" },\n { icon: \"tree\", label: \"Outdoor Market\" },\n { icon: \"car\", label: \"Parking Available\" },\n { icon: \"dog\", label: \"Pet Friendly\" },\n { icon: \"ship-wheel\", label: \"Port Nearby\" },\n { icon: \"toilet\", label: \"Toilet Available\" },\n { icon: \"wheelchair-accessibility\", label: \"Wheelchair Accessible\" },\n];\n\nexport const tagOptions: OptionItem[] = availableTagTypes.map((tag) => ({\n label: tag.label,\n value: tag.label,\n}));\n","import { FormField } from \"../../types/global\";\nimport { Requirement } from \"../../types/market\";\n\nexport const marketInfo: FormField[] = [\n {\n helperText: \"Application Deadline *\",\n keyboardType: \"number-pad\",\n name: \"applicationDeadlineHours\",\n placeholder: \"Application Deadline (in hours)\",\n },\n {\n helperText: \"Stall Capacity *\",\n keyboardType: \"number-pad\",\n name: \"stallCapacity\",\n placeholder: \"Stall Capacity\",\n },\n {\n helperText: \"Payment Due Hours *\",\n keyboardType: \"number-pad\",\n name: \"paymentDueHours\",\n placeholder: \"Payment Due (in hours)\",\n },\n {\n helperText: \"Pack In Time *\",\n keyboardType: \"number-pad\",\n name: \"packInTime\",\n placeholder: \"Pack In Time (in hours)\",\n },\n {\n helperText: \"Pack Out Time *\",\n keyboardType: \"number-pad\",\n name: \"packOutTime\",\n placeholder: \"Pack Out Time (in hours)\",\n },\n];\n\nexport const marketInfoPaymentTarget: FormField[] = [\n {\n helperText: \"Account holder name *\",\n name: \"accountHolderName\",\n placeholder: \"Account holder name\",\n },\n {\n helperText: \"Account number *\",\n name: \"accountNumber\",\n placeholder: \"Account number\",\n },\n {\n helperText: \"Link to payment target *\",\n keyboardType: \"url\",\n name: \"link\",\n placeholder: \"Link to payment target\",\n },\n];\n\nexport const marketPriceByDateFields: FormField[] = [\n {\n helperText: \"Market Price for this date *\",\n keyboardType: \"decimal-pad\",\n name: \"marketPrice\",\n placeholder: \"Market Price\",\n },\n];\n\nexport const requirementsOptions: Requirement[] = [\n {\n category: \"Food Safety\",\n label: \"The stallholder must display a current food grade certificate\",\n value: \"food_grade_certificate\",\n },\n {\n category: \"Food Safety\",\n label: \"Food must be prepared and stored according to your food regulation\",\n value: \"food_preparation_regulations\",\n },\n {\n category: \"Legal & Safety\",\n label: \"All electrical equipment must be tested and tagged\",\n value: \"electrical_safety\",\n },\n {\n category: \"Operations\",\n label: \"You must be self-sufficient in all operations\",\n value: \"self_sufficient_operations\",\n },\n {\n category: \"Environment\",\n label:\n \"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\",\n value: \"rubbish_and_recycling_responsibility\",\n },\n {\n category: \"Legal & Safety\",\n label:\n \"You must secure your gazebo and equipment to withstand wind or bad weather\",\n value: \"stall_safety_and_weather_protection\",\n },\n {\n category: \"Legal & Safety\",\n label:\n \"You are responsible for the safety of your setup and any potential hazards\",\n value: \"stallholder_safety_responsibility\",\n },\n {\n category: \"Operations\",\n label:\n \"Stallholders must arrive and be fully set up by the designated opening time\",\n value: \"setup_on_time\",\n },\n {\n category: \"Operations\",\n label: \"You may not pack down your stall before the event officially ends\",\n value: \"no_early_packdown\",\n },\n {\n category: \"Environment\",\n label: \"All packaging must be eco-friendly or recyclable where possible\",\n value: \"eco_friendly_packaging\",\n },\n {\n category: \"Legal & Safety\",\n label: \"Stallholders must hold valid liability insurance where required\",\n value: \"liability_insurance_required\",\n },\n {\n category: \"Environment\",\n label: \"No single-use plastic bags are to be handed out\",\n value: \"no_single_use_plastics\",\n },\n {\n category: \"Legal & Safety\",\n label:\n \"Noise levels must be kept to a minimum unless part of a permitted performance\",\n value: \"noise_restrictions\",\n },\n {\n category: \"Operations\",\n label: \"Generators must be quiet and pre-approved by the event organiser\",\n value: \"generator_policy\",\n },\n {\n category: \"Legal & Safety\",\n label: \"Pets at the stall must be secured and well-behaved at all times\",\n value: \"pets_policy\",\n },\n];\n","import { FormField } from \"../types/global\";\n\nexport const loginFields: FormField[] = [\n {\n helperText: \"Enter your email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n {\n helperText: \"Enter your password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n];\n\nexport const registerFields: FormField[] = [\n {\n helperText: \"Enter your first name\",\n keyboardType: \"default\",\n name: \"firstName\",\n placeholder: \"First Name\",\n },\n {\n helperText: \"Enter your last name\",\n keyboardType: \"default\",\n name: \"lastName\",\n placeholder: \"Last Name\",\n },\n {\n helperText: \"Enter your email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n {\n helperText: \"Enter your password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n];\n\nexport const requestPasswordResetFields: FormField[] = [\n {\n helperText: \"Enter your email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n];\n\nexport const resetPasswordFields: FormField[] = [\n {\n helperText: \"Enter your new password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n {\n helperText: \"Confirm your new password\",\n keyboardType: \"default\",\n name: \"confirmPassword\",\n placeholder: \"Confirm Password\",\n secureTextEntry: true,\n },\n];\n\nexport const validateTokenFields: FormField[] = [\n {\n disabled: true,\n helperText: \"Your email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n {\n helperText: \"Enter the Verification code sent to your email\",\n keyboardType: \"number-pad\",\n name: \"token\",\n placeholder: \"Verification code\",\n },\n];\n","import { FormField } from \"../types/global\";\n\nexport const profileFields: FormField[] = [\n {\n disabled: true,\n helperText: \"Email cannot be changed\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n },\n {\n helperText: \"Enter your first name\",\n keyboardType: \"default\",\n name: \"firstName\",\n placeholder: \"First Name\",\n },\n {\n helperText: \"Enter your last name\",\n keyboardType: \"default\",\n name: \"lastName\",\n placeholder: \"Last Name\",\n },\n {\n helperText: \"Enter your new password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n {\n helperText: \"Confirm your new password\",\n keyboardType: \"default\",\n name: \"confirmPassword\",\n placeholder: \"Confirm Password\",\n secureTextEntry: true,\n },\n];\n","import { Category } from \"../types/global\";\n\nexport const availableCategories: Category[] = [\n {\n id: \"food-drinks\",\n name: \"Food & Drinks\",\n subcategories: [\n {\n id: \"fresh-food-groceries\",\n items: [\n \"Fruits & Vegetables\",\n \"Meat & Seafood\",\n \"Dairy & Eggs\",\n \"Bakery & Desserts\",\n \"Spices & Condiments\",\n \"Packaged & Specialty Foods\",\n \"Other\",\n ],\n name: \"Fresh Food & Groceries\",\n },\n {\n id: \"beverages-specialty-drinks\",\n items: [\n \"Fresh Juices & Smoothies\",\n \"Coffee & Teas\",\n \"Dairy & Plant-Based Drinks\",\n \"Alcoholic Beverages\",\n \"Other\",\n ],\n name: \"Beverages & Specialty Drinks\",\n },\n {\n id: \"prepared-street-foods\",\n items: [\n \"Local & International Specialties\",\n \"Vegan & Vegetarian Options\",\n \"Candies & Sweets\",\n \"BBQ & Grilled Foods\",\n \"Other\",\n ],\n name: \"Prepared & Street Foods\",\n },\n ],\n },\n {\n id: \"handmade-local-products\",\n name: \"Handmade & Local Products\",\n subcategories: [\n {\n id: \"home-lifestyle\",\n items: [\n \"Textiles & Home Decor\",\n \"Pottery & Ceramics\",\n \"Woodwork & Carving\",\n \"Handwoven Baskets & Bags\",\n \"Other\",\n ],\n name: \"Home & Lifestyle\",\n },\n {\n id: \"fashion-accessories\",\n items: [\n \"Leather & Hand-Stitched Items\",\n \"Handcrafted Jewelry & Accessories\",\n \"Traditional & Cultural Clothing\",\n \"Other\",\n ],\n name: \"Fashion & Accessories\",\n },\n {\n id: \"eco-friendly-products\",\n items: [\n \"Recycled Goods\",\n \"Eco-Packaging\",\n \"Sustainable Fashion & Accessories\",\n \"Other\",\n ],\n name: \"Eco-Friendly & Sustainable Products\",\n },\n {\n id: \"arts-crafts\",\n items: [\"Art & Crafts\", \"Traditional & Cultural Items\", \"Other\"],\n name: \"Arts & Crafts\",\n },\n ],\n },\n {\n id: \"clothing-fashion\",\n name: \"Clothing & Fashion\",\n subcategories: [\n {\n id: \"casual-modern-wear\",\n items: [\n \"Modern & Casual Clothes\",\n \"Jackets & Outerwear\",\n \"Baby & Kids Clothing\",\n \"Scarves & Shawls\",\n \"Second-Hand Designer Clothes\",\n \"Underwear\",\n \"Other\",\n ],\n name: \"Casual & Modern Wear\",\n },\n {\n id: \"footwear\",\n items: [\n \"Everyday Shoes\",\n \"Formal Shoes\",\n \"Handmade & Leather Shoes\",\n \"Other\",\n ],\n name: \"Footwear\",\n },\n {\n id: \"bags-accessories\",\n items: [\n \"Bags, Belts, Hats, Sunglasses, Watches\",\n \"Retro and Vintage Accessories\",\n \"Other\",\n ],\n name: \"Bags & Accessories\",\n },\n {\n id: \"luxury-designer-brands\",\n items: [\n \"Luxury Clothing\",\n \"Designer Shoes\",\n \"Exclusive Accessories\",\n \"Other\",\n ],\n name: \"Luxury & Designer Brands\",\n },\n ],\n },\n {\n id: \"home-garden-household\",\n name: \"Home, Garden & Household Goods\",\n subcategories: [\n {\n id: \"home-essentials-kitchenware\",\n items: [\n \"Kitchenware & Dining\",\n \"Sustainable & Eco-Friendly Items\",\n \"Handmade & Artisan Home Goods\",\n \"Other\",\n ],\n name: \"Home Essentials & Kitchenware\",\n },\n {\n id: \"furniture-decor-organization\",\n items: [\n \"Furniture & Home Decor\",\n \"Textiles & Bedding\",\n \"Storage & Organization\",\n \"Other\",\n ],\n name: \"Furniture, Decor & Organization\",\n },\n {\n id: \"outdoor-cleaning-essentials\",\n items: [\n \"Garden, Plants & Decorations\",\n \"DIY & Home Improvement\",\n \"Cleaning Supplies & Household Essentials\",\n \"Other\",\n ],\n name: \"Outdoor & Cleaning Essentials\",\n },\n ],\n },\n {\n id: \"toys-pets\",\n name: \"Toys & Pets\",\n subcategories: [\n {\n id: \"handmade-eco-friendly-kids\",\n items: [\"Handmade & Local Toys\", \"Eco-Friendly Kids Products\", \"Other\"],\n name: \"Handmade & Eco-Friendly Kids Products\",\n },\n {\n id: \"toys-all-ages\",\n items: [\n \"Classic & Interactive Toys\",\n \"Building Blocks & Board Games\",\n \"Balloons & Party Accessories\",\n \"Other\",\n ],\n name: \"Toys for All Ages\",\n },\n {\n id: \"pet-products-animal-goods\",\n items: [\n \"Natural Pet Foods\",\n \"Handmade Pet Accessories\",\n \"Livestock & Farm Supplies\",\n \"Other\",\n ],\n name: \"Pet Products & Animal Goods\",\n },\n ],\n },\n {\n id: \"health-wellness-selfcare\",\n name: \"Health, Wellness & Self-Care\",\n subcategories: [\n {\n id: \"natural-remedies-supplements\",\n items: [\n \"Vitamins, Minerals & Herbal Remedies\",\n \"Superfoods, Probiotics & Detox Teas\",\n \"Other\",\n ],\n name: \"Natural Remedies & Supplements\",\n },\n {\n id: \"organic-natural-products\",\n items: [\n \"Organic Produce, Honey, Nuts & Seeds\",\n \"Gluten-Free & Specialty Items\",\n \"Other\",\n ],\n name: \"Organic & Natural Products\",\n },\n {\n id: \"fitness-sports-nutrition\",\n items: [\"Protein Powders & Bars\", \"Sports & Energy Drinks\", \"Other\"],\n name: \"Fitness & Sports Nutrition\",\n },\n {\n id: \"mental-wellbeing-relaxation\",\n items: [\n \"Yoga, Meditation & Stress-Relief Tools\",\n \"Massage & Muscle Relaxers\",\n \"Motivational Books & Tools\",\n \"Other\",\n ],\n name: \"Mental Wellbeing & Relaxation\",\n },\n ],\n },\n {\n id: \"electronics-technology\",\n name: \"Electronics & Technology\",\n subcategories: [\n {\n id: \"electronic-devices-accessories\",\n items: [\n \"Refurbished & Used Electronics\",\n \"Smartphones & Gadgets\",\n \"Computers & Gaming Gear\",\n \"Photography & Audio Equipment\",\n \"Other\",\n ],\n name: \"Electronic Devices & Accessories\",\n },\n ],\n },\n {\n id: \"antiques-collectibles\",\n name: \"Antiques & Collectibles\",\n subcategories: [\n {\n id: \"antiques-vintage-furniture\",\n items: [\n \"Old Clocks, Paintings & Sculptures\",\n \"Coins, Stamps & Rare Books\",\n \"Antique & Vintage Furniture & Home Decor\",\n \"Other\",\n ],\n name: \"Antiques & Vintage Furniture\",\n },\n {\n id: \"historical-rare-items\",\n items: [\n \"War Relics & Military Medals\",\n \"Limited Edition Artworks & Memorabilia\",\n \"Other\",\n ],\n name: \"Historical & Rare Items\",\n },\n {\n id: \"collectible-toys-games\",\n items: [\n \"Limited Edition Figures & Retro Board Games\",\n \"Pop Culture & Sports Memorabilia\",\n \"Other\",\n ],\n name: \"Collectible Toys & Games\",\n },\n ],\n },\n];\n\nexport const categoryColors: Record<string, string> = {\n \"antiques-collectibles\": \"#DE630A\",\n \"clothing-fashion\": \"#6A08C5\",\n \"electronics-technology\": \"#0303BE\",\n \"food-drinks\": \"#FF004D\",\n \"handmade-local-products\": \"#8E4827\",\n \"health-wellness-selfcare\": \"#7DFB03\",\n \"home-garden-household\": \"#006400\",\n \"toys-pets\": \"#3357FF\",\n};\n","import { FormField } from \"../types/global\";\n\nconst socialMedia = [\n {\n key: \"facebook\",\n name: \"Facebook\",\n placeholder: \"https://www.facebook.com/your-page\",\n },\n {\n key: \"instagram\",\n name: \"Instagram\",\n placeholder: \"https://www.instagram.com/your-profile\",\n },\n {\n key: \"tiktok\",\n name: \"TikTok\",\n placeholder: \"https://www.tiktok.com/@your-profile\",\n },\n {\n key: \"twitter\",\n name: \"Twitter\",\n placeholder: \"https://twitter.com/your-profile\",\n },\n {\n key: \"website\",\n name: \"Website\",\n placeholder: \"https://www.yourwebsite.com\",\n },\n {\n key: \"youtube\",\n name: \"YouTube\",\n placeholder: \"https://www.youtube.com/channel/your-channel\",\n },\n];\nexport const socialMediaFields: FormField[] = socialMedia.map((link) => ({\n helperText: link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MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;AAEO,IAAM,iBAAyC;AAAA,EACpD,yBAAyB;AAAA,EACzB,oBAAoB;AAAA,EACpB,0BAA0B;AAAA,EAC1B,eAAe;AAAA,EACf,2BAA2B;AAAA,EAC3B,4BAA4B;AAAA,EAC5B,yBAAyB;AAAA,EACzB,aAAa;AACf;;;AC5SA,IAAM,cAAc;AAAA,EAClB;AAAA,IACE,KAAK;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,KAAK;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AACF;AACO,IAAM,oBAAiC,YAAY,IAAI,CAAC,UAAU;AAAA,EACvE,YAAY,KAAK;AAAA,EACjB,cAAc;AAAA,EACd,MAAM,KAAK;AAAA,EACX,aAAa,KAAK;AACpB,EAAE;","names":["EnumInviteStatus","EnumPaymentMethod","EnumRegions","customParseFormat","utc","timezone","isSameOrAfter"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FormField, a as FormDateField, O as OptionItem, C as Category } from '../global-
|
|
1
|
+
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, C as Category } from '../global-BwS9p10K.mjs';
|
|
2
2
|
import '../enums/index.mjs';
|
|
3
3
|
import 'react-hook-form';
|
|
4
4
|
|
|
@@ -48,7 +48,7 @@ declare const tagOptions: OptionItem[];
|
|
|
48
48
|
declare const marketInfo: FormField[];
|
|
49
49
|
declare const marketInfoPaymentTarget: FormField[];
|
|
50
50
|
declare const marketPriceByDateFields: FormField[];
|
|
51
|
-
declare const
|
|
51
|
+
declare const requirementsOptions: Requirement[];
|
|
52
52
|
|
|
53
53
|
declare const loginFields: FormField[];
|
|
54
54
|
declare const registerFields: FormField[];
|
|
@@ -63,4 +63,4 @@ declare const categoryColors: Record<string, string>;
|
|
|
63
63
|
|
|
64
64
|
declare const socialMediaFields: FormField[];
|
|
65
65
|
|
|
66
|
-
export { availableCategories, availableCityOptions, availableTagTypes, categoryColors, loginFields, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentTarget, marketPriceByDateFields, marketStartDateFields, packagingOptions, producedIngOptions, profileFields, registerFields,
|
|
66
|
+
export { availableCategories, availableCityOptions, availableTagTypes, categoryColors, loginFields, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentTarget, marketPriceByDateFields, marketStartDateFields, packagingOptions, producedIngOptions, profileFields, registerFields, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, tagOptions, validateTokenFields };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FormField, a as FormDateField, O as OptionItem, C as Category } from '../global-
|
|
1
|
+
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, C as Category } from '../global-lB32aPz_.js';
|
|
2
2
|
import '../enums/index.js';
|
|
3
3
|
import 'react-hook-form';
|
|
4
4
|
|
|
@@ -48,7 +48,7 @@ declare const tagOptions: OptionItem[];
|
|
|
48
48
|
declare const marketInfo: FormField[];
|
|
49
49
|
declare const marketInfoPaymentTarget: FormField[];
|
|
50
50
|
declare const marketPriceByDateFields: FormField[];
|
|
51
|
-
declare const
|
|
51
|
+
declare const requirementsOptions: Requirement[];
|
|
52
52
|
|
|
53
53
|
declare const loginFields: FormField[];
|
|
54
54
|
declare const registerFields: FormField[];
|
|
@@ -63,4 +63,4 @@ declare const categoryColors: Record<string, string>;
|
|
|
63
63
|
|
|
64
64
|
declare const socialMediaFields: FormField[];
|
|
65
65
|
|
|
66
|
-
export { availableCategories, availableCityOptions, availableTagTypes, categoryColors, loginFields, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentTarget, marketPriceByDateFields, marketStartDateFields, packagingOptions, producedIngOptions, profileFields, registerFields,
|
|
66
|
+
export { availableCategories, availableCityOptions, availableTagTypes, categoryColors, loginFields, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentTarget, marketPriceByDateFields, marketStartDateFields, packagingOptions, producedIngOptions, profileFields, registerFields, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, tagOptions, validateTokenFields };
|