@timardex/cluemart-shared 2.2.28 → 2.2.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -125,6 +125,7 @@ __export(index_exports, {
125
125
  IOS_URL: () => IOS_URL,
126
126
  ImageTypeEnum: () => ImageTypeEnum,
127
127
  LicenceExpiryDate: () => LicenceExpiryDate,
128
+ MANUAL_DATE_STATUSES: () => MANUAL_DATE_STATUSES,
128
129
  MY_PENDING_VENDOR_CLAIM: () => MY_PENDING_VENDOR_CLAIM,
129
130
  NETWORK_USER_FACING_ERROR: () => NETWORK_USER_FACING_ERROR,
130
131
  OG_DESCRIPTION_LINE_BREAK: () => OG_DESCRIPTION_LINE_BREAK,
@@ -195,6 +196,7 @@ __export(index_exports, {
195
196
  buildInvitationShareDescription: () => buildInvitationShareDescription,
196
197
  buildPublicEventShareDescription: () => buildPublicEventShareDescription,
197
198
  buildPublicVendorShareDescription: () => buildPublicVendorShareDescription,
199
+ buildRelationEligibleEventSchedule: () => buildRelationEligibleEventSchedule,
198
200
  buildShareMessageSections: () => buildShareMessageSections,
199
201
  buildShareOgDescription: () => buildShareOgDescription,
200
202
  buildShareOgDescriptionFromSections: () => buildShareOgDescriptionFromSections,
@@ -1212,6 +1214,12 @@ var MANUAL_DATE_STATUSES = /* @__PURE__ */ new Set([
1212
1214
  "Canceled" /* CANCELED */,
1213
1215
  "Rescheduled" /* RE_SCHEDULED */
1214
1216
  ]);
1217
+ function buildRelationEligibleEventSchedule(liveDateTime, archivedDateTime = []) {
1218
+ const eligible = liveDateTime.filter(
1219
+ (slot) => !slot.dateStatus || !MANUAL_DATE_STATUSES.has(slot.dateStatus)
1220
+ );
1221
+ return [...eligible, ...archivedDateTime];
1222
+ }
1215
1223
  function getFutureEventStatus(startDateTime, now) {
1216
1224
  const hoursUntilStart = startDateTime.diff(now, "hour", true);
1217
1225
  if (hoursUntilStart > 0 && hoursUntilStart <= 4) {
@@ -10382,6 +10390,7 @@ function canAccessAdminPath(roles, pathname) {
10382
10390
  IOS_URL,
10383
10391
  ImageTypeEnum,
10384
10392
  LicenceExpiryDate,
10393
+ MANUAL_DATE_STATUSES,
10385
10394
  MY_PENDING_VENDOR_CLAIM,
10386
10395
  NETWORK_USER_FACING_ERROR,
10387
10396
  OG_DESCRIPTION_LINE_BREAK,
@@ -10452,6 +10461,7 @@ function canAccessAdminPath(roles, pathname) {
10452
10461
  buildInvitationShareDescription,
10453
10462
  buildPublicEventShareDescription,
10454
10463
  buildPublicVendorShareDescription,
10464
+ buildRelationEligibleEventSchedule,
10455
10465
  buildShareMessageSections,
10456
10466
  buildShareOgDescription,
10457
10467
  buildShareOgDescriptionFromSections,