@timardex/cluemart-shared 1.5.794 → 1.5.795

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.
@@ -41,13 +41,13 @@ import {
41
41
  vendorStallSize,
42
42
  vendorStartDateFields,
43
43
  vendorTable
44
- } from "../chunk-KKPVTN4B.mjs";
44
+ } from "../chunk-KSFDYCSS.mjs";
45
45
  import {
46
46
  availableCategories,
47
47
  categoryColors
48
- } from "../chunk-HO7KOQ6F.mjs";
49
- import "../chunk-S7C3MFZF.mjs";
48
+ } from "../chunk-B2ID4C66.mjs";
50
49
  import "../chunk-XY5XRXR3.mjs";
50
+ import "../chunk-E7ZEBZ3O.mjs";
51
51
  import "../chunk-LETM2YHF.mjs";
52
52
  export {
53
53
  availableCategories,
@@ -396,6 +396,28 @@ var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
396
396
  var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
397
397
  var import_utc = __toESM(require("dayjs/plugin/utc.js"));
398
398
 
399
+ // src/utils/mapArrayToOptions.ts
400
+ var mapArrayToOptions = (items) => items.map((item) => ({
401
+ label: item,
402
+ value: item
403
+ }));
404
+
405
+ // src/utils/date.ts
406
+ var dateFormat = "DD-MM-YYYY";
407
+ var timeFormat = "HH:mm";
408
+ import_dayjs.default.extend(import_customParseFormat.default);
409
+ import_dayjs.default.extend(import_utc.default);
410
+ import_dayjs.default.extend(import_timezone.default);
411
+ import_dayjs.default.extend(import_isSameOrAfter.default);
412
+ var futureTimePeriods = mapArrayToOptions(
413
+ Object.values(EnumEventDateStatus)
414
+ ).filter(
415
+ (period) => period.value !== "Starting_Soon" /* STARTING_SOON */ && period.value !== "Canceled" /* CANCELED */ && period.value !== "Rescheduled" /* RE_SCHEDULED */ && period.value !== "Started" /* STARTED */ && period.value !== "Ended" /* ENDED */ && period.value !== "Invalid" /* INVALID */
416
+ ).map((period) => ({
417
+ label: period.value.replaceAll("_", " "),
418
+ value: period.value
419
+ }));
420
+
399
421
  // src/sharing/relationShareTypes.ts
400
422
  var RELATION_SHARE_INVITATION = "invitation";
401
423
  var RELATION_SHARE_APPLICATION = "application";
@@ -501,10 +523,6 @@ var TIER_FROM_LICENCE = {
501
523
  };
502
524
 
503
525
  // src/utils/utils.ts
504
- var mapArrayToOptions = (items) => items.map((item) => ({
505
- label: item,
506
- value: item
507
- }));
508
526
  var statusOptions = [
509
527
  ...Object.values(EnumInviteStatus).map((status) => ({
510
528
  label: status,
@@ -574,22 +592,6 @@ var PostTypeLabels = {
574
592
  var CM_SCHOOL_PROMO_CODE = `${PROMO_CODE_PREFIX}SCHOOL`;
575
593
  var CM_AFFILIATE_PROMO_CODE = `${PROMO_CODE_PREFIX}AFFILIATE`;
576
594
 
577
- // src/utils/date.ts
578
- var dateFormat = "DD-MM-YYYY";
579
- var timeFormat = "HH:mm";
580
- import_dayjs.default.extend(import_customParseFormat.default);
581
- import_dayjs.default.extend(import_utc.default);
582
- import_dayjs.default.extend(import_timezone.default);
583
- import_dayjs.default.extend(import_isSameOrAfter.default);
584
- var futureTimePeriods = mapArrayToOptions(
585
- Object.values(EnumEventDateStatus)
586
- ).filter(
587
- (period) => period.value !== "Starting_Soon" /* STARTING_SOON */ && period.value !== "Canceled" /* CANCELED */ && period.value !== "Rescheduled" /* RE_SCHEDULED */ && period.value !== "Started" /* STARTED */ && period.value !== "Ended" /* ENDED */ && period.value !== "Invalid" /* INVALID */
588
- ).map((period) => ({
589
- label: period.value.replaceAll("_", " "),
590
- value: period.value
591
- }));
592
-
593
595
  // src/utils/affiliate.ts
594
596
  var AFFILIATE_REWARDS = {
595
597
  ["NEW_EVENT_REGISTRATION" /* NEW_EVENT_REGISTRATION */]: {