@timardex/cluemart-shared 2.2.22 → 2.2.23

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.
@@ -1,18 +1,18 @@
1
- import "../chunk-YKJAOTF7.mjs";
1
+ import "../chunk-6O6TRUOV.mjs";
2
2
  import "../chunk-VA5YN2K3.mjs";
3
3
  import "../chunk-VPANTTZI.mjs";
4
4
  import "../chunk-DWO35OY4.mjs";
5
- import "../chunk-JWWUTS56.mjs";
5
+ import "../chunk-6NGXF4G7.mjs";
6
6
  import {
7
7
  SCHOOL_MIN_STUDENT_COUNT,
8
8
  isValidIrdNumber,
9
9
  normalizeUrl
10
- } from "../chunk-64RGRFSO.mjs";
10
+ } from "../chunk-OWEIH2ME.mjs";
11
11
  import "../chunk-RE4NZPYY.mjs";
12
12
  import {
13
13
  dateFormat,
14
14
  timeFormat
15
- } from "../chunk-MTBH5LMV.mjs";
15
+ } from "../chunk-MUDAYKZ6.mjs";
16
16
  import {
17
17
  EnumAdShowOn,
18
18
  EnumAdStatus,
package/dist/index.cjs CHANGED
@@ -1148,6 +1148,19 @@ var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.j
1148
1148
  var import_isoWeek = __toESM(require("dayjs/plugin/isoWeek.js"));
1149
1149
  import_dayjs.default.extend(import_customParseFormat.default);
1150
1150
  import_dayjs.default.extend(import_isoWeek.default);
1151
+ var EVENT_DATE_STATUS_LABELS = {
1152
+ ["Starting_Soon" /* STARTING_SOON */]: "Starting Soon",
1153
+ ["Started" /* STARTED */]: "Started",
1154
+ ["Today" /* TODAY */]: "Today",
1155
+ ["Tomorrow" /* TOMORROW */]: "Tomorrow",
1156
+ ["This_Week" /* THIS_WEEK */]: "This Week",
1157
+ ["Next_Week" /* NEXT_WEEK */]: "Next Week",
1158
+ ["Upcoming" /* UPCOMING */]: "Upcoming",
1159
+ ["Ended" /* ENDED */]: "Ended",
1160
+ ["Rescheduled" /* RE_SCHEDULED */]: "Rescheduled",
1161
+ ["Canceled" /* CANCELED */]: "Canceled",
1162
+ ["Invalid" /* INVALID */]: "Invalid"
1163
+ };
1151
1164
  var EVENT_DATE_STATUS_PERIOD_MAP = {
1152
1165
  ["Today" /* TODAY */]: [
1153
1166
  "Started" /* STARTED */,
@@ -1339,7 +1352,7 @@ function sortDatesChronologically(dates) {
1339
1352
  var futureTimePeriods = FUTURE_EVENT_DATE_STATUSES.filter(
1340
1353
  (status) => status !== "Starting_Soon" /* STARTING_SOON */
1341
1354
  ).map((status) => ({
1342
- label: status.replaceAll("_", " "),
1355
+ label: EVENT_DATE_STATUS_LABELS[status],
1343
1356
  value: status
1344
1357
  }));
1345
1358
 
@@ -1953,19 +1966,6 @@ var SCHOOL_MAX_STUDENT_COUNT = 0;
1953
1966
 
1954
1967
  // src/calendar/eventCalendar.ts
1955
1968
  var import_dayjs3 = __toESM(require("dayjs"));
1956
- var EVENT_DATE_STATUS_LABELS = {
1957
- ["Starting_Soon" /* STARTING_SOON */]: "Starting Soon",
1958
- ["Started" /* STARTED */]: "Started",
1959
- ["Today" /* TODAY */]: "Today",
1960
- ["Tomorrow" /* TOMORROW */]: "Tomorrow",
1961
- ["This_Week" /* THIS_WEEK */]: "This Week",
1962
- ["Next_Week" /* NEXT_WEEK */]: "Next Week",
1963
- ["Upcoming" /* UPCOMING */]: "Upcoming",
1964
- ["Ended" /* ENDED */]: "Ended",
1965
- ["Rescheduled" /* RE_SCHEDULED */]: "Rescheduled",
1966
- ["Canceled" /* CANCELED */]: "Canceled",
1967
- ["Invalid" /* INVALID */]: "Invalid"
1968
- };
1969
1969
  function toCalendarIsoDate(startDate) {
1970
1970
  const formatted = (0, import_dayjs3.default)(startDate, dateFormat).format("YYYY-MM-DD");
1971
1971
  return (0, import_dayjs3.default)(formatted, "YYYY-MM-DD", true).isValid() ? formatted : null;