@timardex/cluemart-shared 1.4.26 → 1.4.28

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.
@@ -13,7 +13,7 @@ import {
13
13
  dateFormat,
14
14
  normalizeUrl,
15
15
  timeFormat
16
- } from "../chunk-S6G7DNEV.mjs";
16
+ } from "../chunk-XUYZ2LYW.mjs";
17
17
  import {
18
18
  EnumEventDateStatus,
19
19
  EnumEventType,
package/dist/index.cjs CHANGED
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
+ ANDROID_URL: () => ANDROID_URL,
33
34
  EnumActivity: () => EnumActivity,
34
35
  EnumAdShowOn: () => EnumAdShowOn,
35
36
  EnumAdStatus: () => EnumAdStatus,
@@ -59,6 +60,7 @@ __export(index_exports, {
59
60
  EnumUserRole: () => EnumUserRole,
60
61
  EnumVendorType: () => EnumVendorType,
61
62
  EnumVerificationType: () => EnumVerificationType,
63
+ IOS_URL: () => IOS_URL,
62
64
  ImageTypeEnum: () => ImageTypeEnum,
63
65
  OrganizedMarketCount: () => OrganizedMarketCount,
64
66
  OrganizerMarketFrequency: () => OrganizerMarketFrequency,
@@ -82,12 +84,12 @@ __export(index_exports, {
82
84
  defaultEventFormValues: () => defaultEventFormValues,
83
85
  defaultEventInfoFormValues: () => defaultEventInfoFormValues,
84
86
  defaultPartnerFormValues: () => defaultPartnerFormValues,
85
- defaultRegion: () => defaultRegion,
86
87
  defaultUnregisteredVendorFormValues: () => defaultUnregisteredVendorFormValues,
87
88
  defaultVendorFormValues: () => defaultVendorFormValues,
88
89
  defaultVendorInfoFormValues: () => defaultVendorInfoFormValues,
89
90
  emailField: () => emailField,
90
91
  eventBasicInfoFields: () => eventBasicInfoFields,
92
+ eventCancellationOptions: () => eventCancellationOptions,
91
93
  eventEndDateFields: () => eventEndDateFields,
92
94
  eventInfo: () => eventInfo,
93
95
  eventInfoPaymentInfo: () => eventInfoPaymentInfo,
@@ -119,6 +121,7 @@ __export(index_exports, {
119
121
  socialMediaFields: () => socialMediaFields,
120
122
  sortDatesChronologically: () => sortDatesChronologically,
121
123
  stallTypeOptions: () => stallTypeOptions,
124
+ stallholderCancellationOptions: () => stallholderCancellationOptions,
122
125
  statusOptions: () => statusOptions,
123
126
  tagOptions: () => tagOptions,
124
127
  testersFields: () => testersFields,
@@ -760,13 +763,6 @@ var formatTimestamp = (timestamp) => {
760
763
  const formattedTime = (0, import_dayjs.default)(timestamp).tz("Pacific/Auckland").format(timeFormat);
761
764
  return formatDate(formattedDate, "date");
762
765
  };
763
- var defaultRegion = {
764
- latitude: -36.8624942,
765
- // Default: New Zealand
766
- latitudeDelta: 5,
767
- longitude: 174.7450494,
768
- longitudeDelta: 5
769
- };
770
766
  var isIsoDateString = (value) => {
771
767
  return typeof value === "string" && !isNaN(Date.parse(value));
772
768
  };
@@ -858,6 +854,8 @@ var cluemartSocialMedia = [
858
854
  name: "youtube" /* YOUTUBE */
859
855
  }
860
856
  ];
857
+ var IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
858
+ var ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
861
859
 
862
860
  // src/formFields/vendor/vendorInfo.ts
863
861
  var vendorElectricity = {
@@ -1274,6 +1272,34 @@ var stallTypeOptions = stallTypes.map((type) => ({
1274
1272
  price: 0,
1275
1273
  stallCapacity: 0
1276
1274
  }));
1275
+ var stallholderCancellationOptions = [
1276
+ {
1277
+ label: "Full refund if cancelled 30+ days before the event.",
1278
+ value: "full_refund_30_days"
1279
+ },
1280
+ {
1281
+ label: "50% refund if cancelled 14\u201329 days before the event.",
1282
+ value: "half_refund_14_29_days"
1283
+ },
1284
+ {
1285
+ label: "No refund if cancelled less than 14 days before the event.",
1286
+ value: "no_refund_less_than_14_days"
1287
+ }
1288
+ ];
1289
+ var eventCancellationOptions = [
1290
+ {
1291
+ label: "Full refund if the event is cancelled by the organiser.",
1292
+ value: "event_full_refund"
1293
+ },
1294
+ {
1295
+ label: "Credit towards a future event if cancelled by the organiser.",
1296
+ value: "event_credit_only"
1297
+ },
1298
+ {
1299
+ label: "Refund only in cases of force majeure (e.g., natural disasters, government restrictions).",
1300
+ value: "event_force_majeure_only"
1301
+ }
1302
+ ];
1277
1303
 
1278
1304
  // src/formFields/global.ts
1279
1305
  var emailField = {
@@ -8084,6 +8110,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8084
8110
  })(EnumActivity || {});
8085
8111
  // Annotate the CommonJS export names for ESM import in node:
8086
8112
  0 && (module.exports = {
8113
+ ANDROID_URL,
8087
8114
  EnumActivity,
8088
8115
  EnumAdShowOn,
8089
8116
  EnumAdStatus,
@@ -8113,6 +8140,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8113
8140
  EnumUserRole,
8114
8141
  EnumVendorType,
8115
8142
  EnumVerificationType,
8143
+ IOS_URL,
8116
8144
  ImageTypeEnum,
8117
8145
  OrganizedMarketCount,
8118
8146
  OrganizerMarketFrequency,
@@ -8136,12 +8164,12 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8136
8164
  defaultEventFormValues,
8137
8165
  defaultEventInfoFormValues,
8138
8166
  defaultPartnerFormValues,
8139
- defaultRegion,
8140
8167
  defaultUnregisteredVendorFormValues,
8141
8168
  defaultVendorFormValues,
8142
8169
  defaultVendorInfoFormValues,
8143
8170
  emailField,
8144
8171
  eventBasicInfoFields,
8172
+ eventCancellationOptions,
8145
8173
  eventEndDateFields,
8146
8174
  eventInfo,
8147
8175
  eventInfoPaymentInfo,
@@ -8173,6 +8201,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8173
8201
  socialMediaFields,
8174
8202
  sortDatesChronologically,
8175
8203
  stallTypeOptions,
8204
+ stallholderCancellationOptions,
8176
8205
  statusOptions,
8177
8206
  tagOptions,
8178
8207
  testersFields,