@timardex/cluemart-shared 2.2.30 → 2.2.41
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/{ad-C4L_-r-4.d.ts → ad-CdehhMyb.d.ts} +2 -2
- package/dist/{ad-XtBAH4rD.d.mts → ad-Drhn_Azy.d.mts} +2 -2
- package/dist/{affiliate-CxZHVZb2.d.ts → affiliate-Cd78p2Fz.d.mts} +3 -3
- package/dist/{affiliate-D-L_UtL8.d.mts → affiliate-CdIL0r2o.d.ts} +3 -3
- package/dist/auth/index.cjs +10 -1
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/auth/index.mjs +2 -2
- package/dist/{chunk-J5N3IEGR.mjs → chunk-2GUAD63W.mjs} +3 -3
- package/dist/{chunk-IKRXLKJ3.mjs → chunk-5AAYX364.mjs} +1 -1
- package/dist/{chunk-IKRXLKJ3.mjs.map → chunk-5AAYX364.mjs.map} +1 -1
- package/dist/{chunk-LLP7OWX5.mjs → chunk-MKHXXZWF.mjs} +2 -2
- package/dist/{chunk-YFFCHTJS.mjs → chunk-PJY7OAQ2.mjs} +18 -23
- package/dist/{chunk-YFFCHTJS.mjs.map → chunk-PJY7OAQ2.mjs.map} +1 -1
- package/dist/{chunk-MQHX5BD6.mjs → chunk-QIF4ZGMY.mjs} +2 -2
- package/dist/{chunk-BR4XNXE7.mjs → chunk-TKSBCN3N.mjs} +11 -2
- package/dist/chunk-TKSBCN3N.mjs.map +1 -0
- package/dist/{chunk-NRNLARYC.mjs → chunk-VHNCSCQU.mjs} +37 -35
- package/dist/chunk-VHNCSCQU.mjs.map +1 -0
- package/dist/{chunk-U3KUTQ43.mjs → chunk-XGGFB7HY.mjs} +11 -2
- package/dist/{chunk-U3KUTQ43.mjs.map → chunk-XGGFB7HY.mjs.map} +1 -1
- package/dist/{contactUs-CwHKoGEt.d.mts → contactUs-BJPQ5nKc.d.mts} +1 -1
- package/dist/{contactUs-CR-nghbk.d.ts → contactUs-ITiB1XV4.d.ts} +1 -1
- package/dist/enums/index.cjs +10 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +8 -1
- package/dist/enums/index.d.ts +8 -1
- package/dist/enums/index.mjs +3 -1
- package/dist/formFields/index.cjs +4 -4
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +5 -5
- package/dist/{global-B4mmQo6R.d.ts → global-DlC7W4p7.d.ts} +9 -0
- package/dist/{global-D1r5ZuQO.d.mts → global-XUBcgjNc.d.mts} +9 -0
- package/dist/graphql/index.cjs +10 -1
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +5 -5
- package/dist/graphql/index.d.ts +5 -5
- package/dist/graphql/index.mjs +3 -3
- package/dist/hooks/index.cjs +14 -5
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +5 -5
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/index.mjs +8 -8
- package/dist/index.cjs +73 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +65 -25
- package/dist/index.d.ts +65 -25
- package/dist/index.mjs +68 -53
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +1 -1
- package/dist/map/index.d.ts +1 -1
- package/dist/region/index.cjs.map +1 -1
- package/dist/region/index.d.mts +1 -1
- package/dist/region/index.d.ts +1 -1
- package/dist/region/index.mjs +1 -1
- package/dist/{resourceActivities-Uz9uavhK.d.ts → resourceActivities-C8eIfpKl.d.ts} +1 -1
- package/dist/{resourceActivities-DUReu_jD.d.mts → resourceActivities-Ci12UkJU.d.mts} +1 -1
- package/dist/sharing/index.cjs +4 -25
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +3 -22
- package/dist/sharing/index.d.ts +3 -22
- package/dist/sharing/index.mjs +3 -9
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.mjs +2 -2
- package/dist/{user-BpR-FTW2.d.mts → user-BSFExFvl.d.ts} +18 -4
- package/dist/{user-IR0bHKFb.d.ts → user-D31zAVuz.d.mts} +18 -4
- package/dist/utils/index.cjs +53 -36
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +36 -7
- package/dist/utils/index.d.ts +36 -7
- package/dist/utils/index.mjs +12 -8
- package/package.json +1 -1
- package/dist/chunk-BR4XNXE7.mjs.map +0 -1
- package/dist/chunk-NRNLARYC.mjs.map +0 -1
- /package/dist/{chunk-J5N3IEGR.mjs.map → chunk-2GUAD63W.mjs.map} +0 -0
- /package/dist/{chunk-LLP7OWX5.mjs.map → chunk-MKHXXZWF.mjs.map} +0 -0
- /package/dist/{chunk-MQHX5BD6.mjs.map → chunk-QIF4ZGMY.mjs.map} +0 -0
package/dist/hooks/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { L as LocationType, q as VendorFormData, r as CreateVendorFormData, s as VendorInfoFormData, t as CreateVendorInfoFormData, u as UnregisteredVendorFormData, v as CreateUnregisteredVendorFormData, w as EventFormData, x as CreateEventFormData, y as EventInfoFormData, z as CreateEventInfoFormData, B as BaseResourceTypeFormData, A as PostFormData, D as CreatePostFormData, H as CouponDefaultsFormData, I as CreateCouponFormData } from '../global-
|
|
2
|
-
import { e as UserFormData, C as CreateUserFormData } from '../user-
|
|
3
|
-
import { C as CreateLoginFormData, g as CreateRegisterFormData, h as CreateRequestPasswordResetFormData, i as CreateValidateVerificationTokenFormData, j as CreateResetPasswordFormData, k as PartnerFormData, l as AdFormData, m as CreateAdFormState, n as CreatePartnerFormData, o as AppSettingsFormData, p as CreateAppSettingsFormData, q as SchoolFormData, r as CreateSchoolFormData } from '../ad-
|
|
4
|
-
import { a as AffiliateFormData, A as AffiliateType, C as CreateAffiliateFormData } from '../affiliate-
|
|
5
|
-
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-
|
|
1
|
+
import { L as LocationType, q as VendorFormData, r as CreateVendorFormData, s as VendorInfoFormData, t as CreateVendorInfoFormData, u as UnregisteredVendorFormData, v as CreateUnregisteredVendorFormData, w as EventFormData, x as CreateEventFormData, y as EventInfoFormData, z as CreateEventInfoFormData, B as BaseResourceTypeFormData, A as PostFormData, D as CreatePostFormData, H as CouponDefaultsFormData, I as CreateCouponFormData } from '../global-XUBcgjNc.mjs';
|
|
2
|
+
import { e as UserFormData, C as CreateUserFormData } from '../user-D31zAVuz.mjs';
|
|
3
|
+
import { C as CreateLoginFormData, g as CreateRegisterFormData, h as CreateRequestPasswordResetFormData, i as CreateValidateVerificationTokenFormData, j as CreateResetPasswordFormData, k as PartnerFormData, l as AdFormData, m as CreateAdFormState, n as CreatePartnerFormData, o as AppSettingsFormData, p as CreateAppSettingsFormData, q as SchoolFormData, r as CreateSchoolFormData } from '../ad-Drhn_Azy.mjs';
|
|
4
|
+
import { a as AffiliateFormData, A as AffiliateType, C as CreateAffiliateFormData } from '../affiliate-Cd78p2Fz.mjs';
|
|
5
|
+
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-BJPQ5nKc.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
import '../enums/index.mjs';
|
|
8
8
|
import '../images/index.mjs';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { L as LocationType, q as VendorFormData, r as CreateVendorFormData, s as VendorInfoFormData, t as CreateVendorInfoFormData, u as UnregisteredVendorFormData, v as CreateUnregisteredVendorFormData, w as EventFormData, x as CreateEventFormData, y as EventInfoFormData, z as CreateEventInfoFormData, B as BaseResourceTypeFormData, A as PostFormData, D as CreatePostFormData, H as CouponDefaultsFormData, I as CreateCouponFormData } from '../global-
|
|
2
|
-
import { e as UserFormData, C as CreateUserFormData } from '../user-
|
|
3
|
-
import { C as CreateLoginFormData, g as CreateRegisterFormData, h as CreateRequestPasswordResetFormData, i as CreateValidateVerificationTokenFormData, j as CreateResetPasswordFormData, k as PartnerFormData, l as AdFormData, m as CreateAdFormState, n as CreatePartnerFormData, o as AppSettingsFormData, p as CreateAppSettingsFormData, q as SchoolFormData, r as CreateSchoolFormData } from '../ad-
|
|
4
|
-
import { a as AffiliateFormData, A as AffiliateType, C as CreateAffiliateFormData } from '../affiliate-
|
|
5
|
-
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-
|
|
1
|
+
import { L as LocationType, q as VendorFormData, r as CreateVendorFormData, s as VendorInfoFormData, t as CreateVendorInfoFormData, u as UnregisteredVendorFormData, v as CreateUnregisteredVendorFormData, w as EventFormData, x as CreateEventFormData, y as EventInfoFormData, z as CreateEventInfoFormData, B as BaseResourceTypeFormData, A as PostFormData, D as CreatePostFormData, H as CouponDefaultsFormData, I as CreateCouponFormData } from '../global-DlC7W4p7.js';
|
|
2
|
+
import { e as UserFormData, C as CreateUserFormData } from '../user-BSFExFvl.js';
|
|
3
|
+
import { C as CreateLoginFormData, g as CreateRegisterFormData, h as CreateRequestPasswordResetFormData, i as CreateValidateVerificationTokenFormData, j as CreateResetPasswordFormData, k as PartnerFormData, l as AdFormData, m as CreateAdFormState, n as CreatePartnerFormData, o as AppSettingsFormData, p as CreateAppSettingsFormData, q as SchoolFormData, r as CreateSchoolFormData } from '../ad-CdehhMyb.js';
|
|
4
|
+
import { a as AffiliateFormData, A as AffiliateType, C as CreateAffiliateFormData } from '../affiliate-CdIL0r2o.js';
|
|
5
|
+
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-ITiB1XV4.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
import '../enums/index.js';
|
|
8
8
|
import '../images/index.js';
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-QIF4ZGMY.mjs";
|
|
2
2
|
import "../chunk-VA5YN2K3.mjs";
|
|
3
3
|
import "../chunk-VPANTTZI.mjs";
|
|
4
4
|
import "../chunk-DWO35OY4.mjs";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-2GUAD63W.mjs";
|
|
6
6
|
import {
|
|
7
7
|
SCHOOL_MIN_STUDENT_COUNT,
|
|
8
8
|
isValidIrdNumber,
|
|
9
9
|
normalizeUrl
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-VHNCSCQU.mjs";
|
|
11
11
|
import "../chunk-RE4NZPYY.mjs";
|
|
12
12
|
import {
|
|
13
13
|
dateFormat,
|
|
14
14
|
timeFormat
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-PJY7OAQ2.mjs";
|
|
16
16
|
import {
|
|
17
17
|
EnumAdShowOn,
|
|
18
18
|
EnumAdStatus,
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
EnumAffiliateParticipantType,
|
|
22
22
|
EnumPostContentType,
|
|
23
23
|
EnumPostType
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-5AAYX364.mjs";
|
|
25
25
|
import "../chunk-RAYUJODN.mjs";
|
|
26
26
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-MKHXXZWF.mjs";
|
|
28
|
+
import "../chunk-TKSBCN3N.mjs";
|
|
29
29
|
import "../chunk-7DQBUZXY.mjs";
|
|
30
30
|
import {
|
|
31
31
|
EnumEventDateStatus,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
EnumResourceType,
|
|
37
37
|
EnumSocialMedia,
|
|
38
38
|
EnumVendorType
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-XGGFB7HY.mjs";
|
|
40
40
|
import "../chunk-NPFJ2CN2.mjs";
|
|
41
41
|
|
|
42
42
|
// src/hooks/useLocationSearch.ts
|
package/dist/index.cjs
CHANGED
|
@@ -83,6 +83,7 @@ __export(index_exports, {
|
|
|
83
83
|
EnumOSPlatform: () => EnumOSPlatform,
|
|
84
84
|
EnumPartnerType: () => EnumPartnerType,
|
|
85
85
|
EnumPaymentMethod: () => EnumPaymentMethod,
|
|
86
|
+
EnumPointType: () => EnumPointType,
|
|
86
87
|
EnumPostContentType: () => EnumPostContentType,
|
|
87
88
|
EnumPostType: () => EnumPostType,
|
|
88
89
|
EnumRegions: () => EnumRegions,
|
|
@@ -192,12 +193,10 @@ __export(index_exports, {
|
|
|
192
193
|
billingCatalogDefinitionMatches: () => billingCatalogDefinitionMatches,
|
|
193
194
|
buildApplicationShareDescription: () => buildApplicationShareDescription,
|
|
194
195
|
buildCalendarSheetContentData: () => buildCalendarSheetContentData,
|
|
195
|
-
buildFacebookShareQuote: () => buildFacebookShareQuote,
|
|
196
196
|
buildInvitationShareDescription: () => buildInvitationShareDescription,
|
|
197
197
|
buildPublicEventShareDescription: () => buildPublicEventShareDescription,
|
|
198
198
|
buildPublicVendorShareDescription: () => buildPublicVendorShareDescription,
|
|
199
199
|
buildRelationEligibleEventSchedule: () => buildRelationEligibleEventSchedule,
|
|
200
|
-
buildShareMessageSections: () => buildShareMessageSections,
|
|
201
200
|
buildShareOgDescription: () => buildShareOgDescription,
|
|
202
201
|
buildShareOgDescriptionFromSections: () => buildShareOgDescriptionFromSections,
|
|
203
202
|
buildSharePagePath: () => buildSharePagePath,
|
|
@@ -210,7 +209,7 @@ __export(index_exports, {
|
|
|
210
209
|
cluiFiles: () => cluiFiles,
|
|
211
210
|
cluiIds: () => cluiIds,
|
|
212
211
|
cluiImages: () => cluiImages,
|
|
213
|
-
|
|
212
|
+
collectStallholderDateTimes: () => collectStallholderDateTimes,
|
|
214
213
|
collectVendorEventRelationDateTimes: () => collectVendorEventRelationDateTimes,
|
|
215
214
|
companyContactFields: () => companyContactFields,
|
|
216
215
|
computeDailyClueState: () => computeDailyClueState,
|
|
@@ -273,7 +272,6 @@ __export(index_exports, {
|
|
|
273
272
|
getDistanceInMeters: () => getDistanceInMeters,
|
|
274
273
|
getErrorMessage: () => getErrorMessage,
|
|
275
274
|
getEventCalendarIsoDates: () => getEventCalendarIsoDates,
|
|
276
|
-
getEventDatesWithStallholders: () => getEventDatesWithStallholders,
|
|
277
275
|
getEventScheduleStatusLabel: () => getEventScheduleStatusLabel,
|
|
278
276
|
getEventScheduleStatusPresentation: () => getEventScheduleStatusPresentation,
|
|
279
277
|
getEventScheduleStatusTone: () => getEventScheduleStatusTone,
|
|
@@ -285,6 +283,8 @@ __export(index_exports, {
|
|
|
285
283
|
getRegisteredVendorStartDates: () => getRegisteredVendorStartDates,
|
|
286
284
|
getStallholderCategoryNames: () => getStallholderCategoryNames,
|
|
287
285
|
getStallholderCategoryOptions: () => getStallholderCategoryOptions,
|
|
286
|
+
getUniqueStallholderStartDates: () => getUniqueStallholderStartDates,
|
|
287
|
+
getUniqueStartDates: () => getUniqueStartDates,
|
|
288
288
|
getUnregisteredVendorCategoryNames: () => getUnregisteredVendorCategoryNames,
|
|
289
289
|
getUnregisteredVendorStartDates: () => getUnregisteredVendorStartDates,
|
|
290
290
|
getUsableAdminContexts: () => getUsableAdminContexts,
|
|
@@ -354,7 +354,6 @@ __export(index_exports, {
|
|
|
354
354
|
resolveResourceImageActive: () => resolveResourceImageActive,
|
|
355
355
|
rewardNiceNames: () => rewardNiceNames,
|
|
356
356
|
seededShuffle: () => seededShuffle,
|
|
357
|
-
shareMessageFooterPlacementForType: () => shareMessageFooterPlacementForType,
|
|
358
357
|
shareSlugResourceId: () => shareSlugResourceId,
|
|
359
358
|
shouldShowEventActionsWithWeather: () => shouldShowEventActionsWithWeather,
|
|
360
359
|
socialMediaFields: () => socialMediaFields,
|
|
@@ -363,6 +362,7 @@ __export(index_exports, {
|
|
|
363
362
|
stallTypeOptions: () => stallTypeOptions,
|
|
364
363
|
statusOptions: () => statusOptions,
|
|
365
364
|
stripOverlaySubtitleSpecialChars: () => stripOverlaySubtitleSpecialChars,
|
|
365
|
+
sumUserOverallPoints: () => sumUserOverallPoints,
|
|
366
366
|
tagOptions: () => tagOptions,
|
|
367
367
|
timeFormat: () => timeFormat,
|
|
368
368
|
toCalendarIsoDate: () => toCalendarIsoDate,
|
|
@@ -815,6 +815,14 @@ var EnumReward = /* @__PURE__ */ ((EnumReward2) => {
|
|
|
815
815
|
EnumReward2["MYSTERY_DELUXE_BOX"] = "mystery_deluxe_box";
|
|
816
816
|
return EnumReward2;
|
|
817
817
|
})(EnumReward || {});
|
|
818
|
+
var EnumPointType = /* @__PURE__ */ ((EnumPointType2) => {
|
|
819
|
+
EnumPointType2["DAILY_CLUE_GAME"] = "daily_clue_game";
|
|
820
|
+
EnumPointType2["EVENT_CHECKIN"] = "event_checkin";
|
|
821
|
+
EnumPointType2["INITIAL"] = "initial";
|
|
822
|
+
EnumPointType2["MINI_QUIZ_GAME"] = "mini_quiz_game";
|
|
823
|
+
EnumPointType2["ODD_ONE_OUT_GAME"] = "odd_one_out_game";
|
|
824
|
+
return EnumPointType2;
|
|
825
|
+
})(EnumPointType || {});
|
|
818
826
|
|
|
819
827
|
// src/formFields/vendor/vendor.ts
|
|
820
828
|
var vendorBasicInfoFields = [
|
|
@@ -1364,6 +1372,18 @@ function sortDatesChronologically(dates) {
|
|
|
1364
1372
|
return 0;
|
|
1365
1373
|
});
|
|
1366
1374
|
}
|
|
1375
|
+
function getUniqueStartDates(dates) {
|
|
1376
|
+
const seenStartDates = /* @__PURE__ */ new Set();
|
|
1377
|
+
const uniqueStartDates = [];
|
|
1378
|
+
for (const { startDate } of sortDatesChronologically(dates ?? [])) {
|
|
1379
|
+
if (!startDate || seenStartDates.has(startDate)) {
|
|
1380
|
+
continue;
|
|
1381
|
+
}
|
|
1382
|
+
seenStartDates.add(startDate);
|
|
1383
|
+
uniqueStartDates.push(startDate);
|
|
1384
|
+
}
|
|
1385
|
+
return uniqueStartDates;
|
|
1386
|
+
}
|
|
1367
1387
|
var futureTimePeriods = FUTURE_EVENT_DATE_STATUSES.filter(
|
|
1368
1388
|
(status) => status !== "Starting_Soon" /* STARTING_SOON */
|
|
1369
1389
|
).map((status) => ({
|
|
@@ -1599,14 +1619,14 @@ var POST_SHARE_RESOURCE_TYPES = [
|
|
|
1599
1619
|
var SHARE_RESOURCE_LABEL = {
|
|
1600
1620
|
[RELATION_SHARE_APPLICATION]: "Application",
|
|
1601
1621
|
[RELATION_SHARE_INVITATION]: "Invitation",
|
|
1622
|
+
affiliate: "Affiliate",
|
|
1602
1623
|
clue_bites: "Clue Bites",
|
|
1603
1624
|
market_faces: "Market Faces",
|
|
1604
|
-
play_and_win: "Play & Win",
|
|
1605
1625
|
market: "Market",
|
|
1606
1626
|
partner: "Partner",
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1627
|
+
play_and_win: "Play & Win",
|
|
1628
|
+
school: "School",
|
|
1629
|
+
stallholder: "Stallholder"
|
|
1610
1630
|
};
|
|
1611
1631
|
function isPostShareResourceType(resourceType) {
|
|
1612
1632
|
return POST_SHARE_RESOURCE_TYPES.includes(
|
|
@@ -1646,16 +1666,6 @@ function normalizeShareText(value) {
|
|
|
1646
1666
|
return leading + rest;
|
|
1647
1667
|
}).join("\n").replace(/\n{3,}/g, "\n\n");
|
|
1648
1668
|
}
|
|
1649
|
-
function shareMessageFooterPlacementForType(_shareType) {
|
|
1650
|
-
return "before-body";
|
|
1651
|
-
}
|
|
1652
|
-
function buildShareMessageSections(input) {
|
|
1653
|
-
const title = normalizeShareText(input.title);
|
|
1654
|
-
const description = normalizeShareText(input.description);
|
|
1655
|
-
return [SHARE_MORE_INFO_LINE, title, description].filter(
|
|
1656
|
-
(section) => section.length > 0
|
|
1657
|
-
);
|
|
1658
|
-
}
|
|
1659
1669
|
function splitShareDescriptionSections(value) {
|
|
1660
1670
|
const trimmed = normalizeShareText(value);
|
|
1661
1671
|
if (!trimmed) {
|
|
@@ -1672,11 +1682,6 @@ function splitShareDescriptionSections(value) {
|
|
|
1672
1682
|
function normalizeShareOgDescription(value) {
|
|
1673
1683
|
return joinShareOgDescriptionSections(splitShareDescriptionSections(value));
|
|
1674
1684
|
}
|
|
1675
|
-
function buildFacebookShareQuote(title, description, shareType) {
|
|
1676
|
-
const sections = buildShareMessageSections({ description, shareType, title });
|
|
1677
|
-
const quote = sections.join(SHARE_DESCRIPTION_SECTION_BREAK).trim();
|
|
1678
|
-
return quote.length > 0 ? quote : void 0;
|
|
1679
|
-
}
|
|
1680
1685
|
function buildShareOgDescriptionFromSections(sections) {
|
|
1681
1686
|
return joinShareOgDescriptionSections(sections);
|
|
1682
1687
|
}
|
|
@@ -2005,6 +2010,14 @@ function isResourceImageActive(image) {
|
|
|
2005
2010
|
var SCHOOL_MIN_STUDENT_COUNT = 300;
|
|
2006
2011
|
var SCHOOL_MAX_STUDENT_COUNT = 0;
|
|
2007
2012
|
|
|
2013
|
+
// src/utils/userPoints.ts
|
|
2014
|
+
function sumUserOverallPoints(points) {
|
|
2015
|
+
return (points ?? []).reduce(
|
|
2016
|
+
(total, entry) => total + (entry?.points ?? 0),
|
|
2017
|
+
0
|
|
2018
|
+
);
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2008
2021
|
// src/calendar/eventCalendar.ts
|
|
2009
2022
|
var import_dayjs3 = __toESM(require("dayjs"));
|
|
2010
2023
|
function toCalendarIsoDate(startDate) {
|
|
@@ -3184,21 +3197,23 @@ function filterUnregisteredVendorsByEventDatesOnly(vendors, eventStartDates) {
|
|
|
3184
3197
|
)
|
|
3185
3198
|
);
|
|
3186
3199
|
}
|
|
3187
|
-
function
|
|
3200
|
+
function collectStallholderDateTimes(registeredVendors, unregisteredVendors = []) {
|
|
3188
3201
|
return [
|
|
3189
|
-
...registeredVendors.flatMap(
|
|
3190
|
-
|
|
3202
|
+
...registeredVendors.flatMap(
|
|
3203
|
+
(vendor) => (vendor.relations ?? []).flatMap(
|
|
3204
|
+
(relation) => (relation.relationDates ?? []).map(
|
|
3205
|
+
(relationDate) => relationDate.dateTime
|
|
3206
|
+
)
|
|
3207
|
+
)
|
|
3208
|
+
),
|
|
3209
|
+
...unregisteredVendors.flatMap(
|
|
3210
|
+
(vendor) => (vendor.invitations ?? []).flatMap((invitation) => invitation.dateTime)
|
|
3211
|
+
)
|
|
3191
3212
|
];
|
|
3192
3213
|
}
|
|
3193
|
-
function
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
}
|
|
3197
|
-
const startDates = new Set(stallholderStartDates);
|
|
3198
|
-
return sortDatesChronologically(
|
|
3199
|
-
eventDateTime.filter(
|
|
3200
|
-
(date) => Boolean(date.startDate) && startDates.has(date.startDate)
|
|
3201
|
-
)
|
|
3214
|
+
function getUniqueStallholderStartDates(registeredVendors, unregisteredVendors = []) {
|
|
3215
|
+
return getUniqueStartDates(
|
|
3216
|
+
collectStallholderDateTimes(registeredVendors, unregisteredVendors)
|
|
3202
3217
|
);
|
|
3203
3218
|
}
|
|
3204
3219
|
function getStallholderCategoryNames(registeredVendors, unregisteredVendors = []) {
|
|
@@ -3254,16 +3269,7 @@ function collectVendorEventRelationDateTimes(events) {
|
|
|
3254
3269
|
);
|
|
3255
3270
|
}
|
|
3256
3271
|
function getVendorEventRelationStartDates(events) {
|
|
3257
|
-
|
|
3258
|
-
collectVendorEventRelationDateTimes(events)
|
|
3259
|
-
);
|
|
3260
|
-
const uniqueStartDates = [];
|
|
3261
|
-
for (const dateTime of sortedDates) {
|
|
3262
|
-
if (dateTime.startDate && !uniqueStartDates.includes(dateTime.startDate)) {
|
|
3263
|
-
uniqueStartDates.push(dateTime.startDate);
|
|
3264
|
-
}
|
|
3265
|
-
}
|
|
3266
|
-
return uniqueStartDates;
|
|
3272
|
+
return getUniqueStartDates(collectVendorEventRelationDateTimes(events));
|
|
3267
3273
|
}
|
|
3268
3274
|
function getVendorEventRelationDateOptions(events) {
|
|
3269
3275
|
return getVendorEventRelationStartDates(events).map((startDate) => ({
|
|
@@ -3528,12 +3534,12 @@ function getEventStallholdersData({
|
|
|
3528
3534
|
registeredForSelectedDate,
|
|
3529
3535
|
unregisteredForSelectedDate
|
|
3530
3536
|
);
|
|
3531
|
-
const futureEventStartDates =
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
).map((
|
|
3535
|
-
label: formatDate(
|
|
3536
|
-
value:
|
|
3537
|
+
const futureEventStartDates = getUniqueStallholderStartDates(
|
|
3538
|
+
registeredForEvent,
|
|
3539
|
+
unregisteredForEvent
|
|
3540
|
+
).map((startDate) => ({
|
|
3541
|
+
label: formatDate(startDate, "date"),
|
|
3542
|
+
value: startDate
|
|
3537
3543
|
}));
|
|
3538
3544
|
const hasDatePills = futureEventStartDates.length > 0;
|
|
3539
3545
|
const hasStallholders = vendorList.length > 0 || unregisteredVendorList.length > 0;
|
|
@@ -4530,7 +4536,7 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
|
|
|
4530
4536
|
...LocationFields
|
|
4531
4537
|
}
|
|
4532
4538
|
partner
|
|
4533
|
-
|
|
4539
|
+
totalOverallPoints
|
|
4534
4540
|
platform
|
|
4535
4541
|
preferredRegion
|
|
4536
4542
|
permissions
|
|
@@ -4560,6 +4566,15 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
|
|
|
4560
4566
|
${REDEEMED_REWARD_FIELDS_FRAGMENT}
|
|
4561
4567
|
${STRIPE_FIELDS_FRAGMENT}
|
|
4562
4568
|
`;
|
|
4569
|
+
var USER_OVERALL_POINTS_FIELDS_FRAGMENT = import_client.gql`
|
|
4570
|
+
fragment UserOverallPointsFields on UserType {
|
|
4571
|
+
overallPoints {
|
|
4572
|
+
createdAt
|
|
4573
|
+
pointType
|
|
4574
|
+
points
|
|
4575
|
+
}
|
|
4576
|
+
}
|
|
4577
|
+
`;
|
|
4563
4578
|
var STALL_TYPE_FIELDS_FRAGMENT = import_client.gql`
|
|
4564
4579
|
fragment StallTypeFields on StallTypeType {
|
|
4565
4580
|
label
|
|
@@ -10348,6 +10363,7 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
10348
10363
|
EnumOSPlatform,
|
|
10349
10364
|
EnumPartnerType,
|
|
10350
10365
|
EnumPaymentMethod,
|
|
10366
|
+
EnumPointType,
|
|
10351
10367
|
EnumPostContentType,
|
|
10352
10368
|
EnumPostType,
|
|
10353
10369
|
EnumRegions,
|
|
@@ -10457,12 +10473,10 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
10457
10473
|
billingCatalogDefinitionMatches,
|
|
10458
10474
|
buildApplicationShareDescription,
|
|
10459
10475
|
buildCalendarSheetContentData,
|
|
10460
|
-
buildFacebookShareQuote,
|
|
10461
10476
|
buildInvitationShareDescription,
|
|
10462
10477
|
buildPublicEventShareDescription,
|
|
10463
10478
|
buildPublicVendorShareDescription,
|
|
10464
10479
|
buildRelationEligibleEventSchedule,
|
|
10465
|
-
buildShareMessageSections,
|
|
10466
10480
|
buildShareOgDescription,
|
|
10467
10481
|
buildShareOgDescriptionFromSections,
|
|
10468
10482
|
buildSharePagePath,
|
|
@@ -10475,7 +10489,7 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
10475
10489
|
cluiFiles,
|
|
10476
10490
|
cluiIds,
|
|
10477
10491
|
cluiImages,
|
|
10478
|
-
|
|
10492
|
+
collectStallholderDateTimes,
|
|
10479
10493
|
collectVendorEventRelationDateTimes,
|
|
10480
10494
|
companyContactFields,
|
|
10481
10495
|
computeDailyClueState,
|
|
@@ -10538,7 +10552,6 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
10538
10552
|
getDistanceInMeters,
|
|
10539
10553
|
getErrorMessage,
|
|
10540
10554
|
getEventCalendarIsoDates,
|
|
10541
|
-
getEventDatesWithStallholders,
|
|
10542
10555
|
getEventScheduleStatusLabel,
|
|
10543
10556
|
getEventScheduleStatusPresentation,
|
|
10544
10557
|
getEventScheduleStatusTone,
|
|
@@ -10550,6 +10563,8 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
10550
10563
|
getRegisteredVendorStartDates,
|
|
10551
10564
|
getStallholderCategoryNames,
|
|
10552
10565
|
getStallholderCategoryOptions,
|
|
10566
|
+
getUniqueStallholderStartDates,
|
|
10567
|
+
getUniqueStartDates,
|
|
10553
10568
|
getUnregisteredVendorCategoryNames,
|
|
10554
10569
|
getUnregisteredVendorStartDates,
|
|
10555
10570
|
getUsableAdminContexts,
|
|
@@ -10619,7 +10634,6 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
10619
10634
|
resolveResourceImageActive,
|
|
10620
10635
|
rewardNiceNames,
|
|
10621
10636
|
seededShuffle,
|
|
10622
|
-
shareMessageFooterPlacementForType,
|
|
10623
10637
|
shareSlugResourceId,
|
|
10624
10638
|
shouldShowEventActionsWithWeather,
|
|
10625
10639
|
socialMediaFields,
|
|
@@ -10628,6 +10642,7 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
10628
10642
|
stallTypeOptions,
|
|
10629
10643
|
statusOptions,
|
|
10630
10644
|
stripOverlaySubtitleSpecialChars,
|
|
10645
|
+
sumUserOverallPoints,
|
|
10631
10646
|
tagOptions,
|
|
10632
10647
|
timeFormat,
|
|
10633
10648
|
toCalendarIsoDate,
|