@timardex/cluemart-shared 1.5.493 → 1.5.494

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.
Files changed (49) hide show
  1. package/dist/{chunk-USQKKCIA.mjs → chunk-534WN2SR.mjs} +7 -3
  2. package/dist/chunk-534WN2SR.mjs.map +1 -0
  3. package/dist/{chunk-4LT5GOOP.mjs → chunk-DXNREXCC.mjs} +3 -3
  4. package/dist/{chunk-GSNFQJBZ.mjs → chunk-KPO6ZYQ4.mjs} +2 -95
  5. package/dist/chunk-KPO6ZYQ4.mjs.map +1 -0
  6. package/dist/chunk-QG5DPPZI.mjs +96 -0
  7. package/dist/chunk-QG5DPPZI.mjs.map +1 -0
  8. package/dist/{chunk-KYDS4REE.mjs → chunk-YTEETYG7.mjs} +95 -17
  9. package/dist/chunk-YTEETYG7.mjs.map +1 -0
  10. package/dist/enums/index.cjs +6 -2
  11. package/dist/enums/index.cjs.map +1 -1
  12. package/dist/enums/index.d.mts +7 -3
  13. package/dist/enums/index.d.ts +7 -3
  14. package/dist/enums/index.mjs +1 -1
  15. package/dist/formFields/index.cjs +8 -5
  16. package/dist/formFields/index.cjs.map +1 -1
  17. package/dist/formFields/index.mjs +4 -3
  18. package/dist/game-DTrJRy_s.d.mts +120 -0
  19. package/dist/game-lvz2AUuu.d.ts +120 -0
  20. package/dist/graphql/index.d.mts +2 -1
  21. package/dist/graphql/index.d.ts +2 -1
  22. package/dist/graphql/index.mjs +1 -1
  23. package/dist/hooks/index.cjs +21 -18
  24. package/dist/hooks/index.cjs.map +1 -1
  25. package/dist/hooks/index.d.mts +2 -1
  26. package/dist/hooks/index.d.ts +2 -1
  27. package/dist/hooks/index.mjs +5 -4
  28. package/dist/hooks/index.mjs.map +1 -1
  29. package/dist/index.cjs +202 -119
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.mts +17 -4
  32. package/dist/index.d.ts +17 -4
  33. package/dist/index.mjs +200 -119
  34. package/dist/index.mjs.map +1 -1
  35. package/dist/{post-C67Q-sXR.d.ts → post-DXOToXeT.d.ts} +3 -119
  36. package/dist/{post-C9rtHepe.d.mts → post-wptsHKVN.d.mts} +3 -119
  37. package/dist/types/index.d.mts +2 -1
  38. package/dist/types/index.d.ts +2 -1
  39. package/dist/types/index.mjs +6 -4
  40. package/dist/utils/index.cjs +171 -14
  41. package/dist/utils/index.cjs.map +1 -1
  42. package/dist/utils/index.d.mts +11 -1
  43. package/dist/utils/index.d.ts +11 -1
  44. package/dist/utils/index.mjs +7 -2
  45. package/package.json +1 -1
  46. package/dist/chunk-GSNFQJBZ.mjs.map +0 -1
  47. package/dist/chunk-KYDS4REE.mjs.map +0 -1
  48. package/dist/chunk-USQKKCIA.mjs.map +0 -1
  49. /package/dist/{chunk-4LT5GOOP.mjs.map → chunk-DXNREXCC.mjs.map} +0 -0
@@ -1,5 +1,6 @@
1
1
  import { EnumUserLicence, EnumSubscriptionStatus, EnumOSPlatform, EnumUserRole, EnumResourceType, EnumPartnerType } from './enums/index.js';
2
- import { A as AssociateType, Q as ResourceImageType, h as UserLicenceType, Y as TermsAgreement, D as DateTimeType, s as CreateFormData, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, y as OwnerType } from './global-B0WdAD-8.js';
2
+ import { A as AssociateType, Q as ResourceImageType, h as UserLicenceType, Y as TermsAgreement, D as DateTimeType, s as CreateFormData, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData } from './global-B0WdAD-8.js';
3
+ import { B as BaseGame } from './game-lvz2AUuu.js';
3
4
 
4
5
  type UserFormData = {
5
6
  _id?: string;
@@ -137,123 +138,6 @@ type AppSettingsType = AppSettingsFormData & {
137
138
  updatedAt: Date | null;
138
139
  };
139
140
 
140
- declare const gameScreenIdentifierList: readonly [{
141
- readonly clue: "Where your actions turn into a timeline.";
142
- readonly id: "activities";
143
- }, {
144
- readonly clue: "Where conversations happen without speaking.";
145
- readonly id: "chat";
146
- }, {
147
- readonly clue: "The place to redefine who you are.";
148
- readonly id: "edit-profile";
149
- }, {
150
- readonly clue: "A single moment worth showing up for.";
151
- readonly id: "event";
152
- }, {
153
- readonly clue: "What’s happening around you, right now.";
154
- readonly id: "events-near-me";
155
- }, {
156
- readonly clue: "A collection of things worth attending.";
157
- readonly id: "events";
158
- }, {
159
- readonly clue: "What’s happening in a wider area—not just nearby.";
160
- readonly id: "events/region";
161
- }, {
162
- readonly clue: "Where fun becomes a challenge.";
163
- readonly id: "games";
164
- }, {
165
- readonly clue: "Your starting point for everything.";
166
- readonly id: "home";
167
- }, {
168
- readonly clue: "Where the app taps you on the shoulder.";
169
- readonly id: "notifications";
170
- }, {
171
- readonly clue: "Where you fine-tune your experience.";
172
- readonly id: "options";
173
- }, {
174
- readonly clue: "A single collaborator in the ecosystem.";
175
- readonly id: "partner";
176
- }, {
177
- readonly clue: "The network behind the scenes.";
178
- readonly id: "partners";
179
- }, {
180
- readonly clue: "Where you share something with everyone.";
181
- readonly id: "post";
182
- }, {
183
- readonly clue: "Your identity, on display.";
184
- readonly id: "profile";
185
- }, {
186
- readonly clue: "One provider offering something valuable.";
187
- readonly id: "vendor";
188
- }, {
189
- readonly clue: "A marketplace of providers.";
190
- readonly id: "vendors";
191
- }, {
192
- readonly clue: "People who stopped by to see you.";
193
- readonly id: "visitors";
194
- }];
195
- type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
196
- type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
197
- declare enum EnumGameType {
198
- DAILY_CLUE = "dailyClue"
199
- }
200
- declare const gameTypeToDisplayName: Record<EnumGameType, string>;
201
- type GameDate = {
202
- startDate: Date;
203
- endDate: Date;
204
- };
205
- type BaseGame = {
206
- gameDate: GameDate;
207
- gameSolution: string;
208
- gameType: EnumGameType;
209
- };
210
- type DailyClueGameData = {
211
- gameFields: BaseGame;
212
- lastFoundDate: Date | null;
213
- points: number;
214
- letterInfo: {
215
- collected: string[] | null;
216
- shuffled: string[];
217
- todaysLetter: string | null;
218
- todaysClue: GamePlacementClue | null;
219
- todaysPlacement: GamePlacement | null;
220
- };
221
- streak: number;
222
- };
223
- type GameDataMap = {
224
- [EnumGameType.DAILY_CLUE]: DailyClueGameData;
225
- };
226
- type GameData = {
227
- [K in keyof GameDataMap]?: GameDataMap[K] | null;
228
- };
229
- declare enum EnumGameStatus {
230
- GAME_COMPLETED = "GAME_COMPLETED",
231
- GAME_LEFT = "GAME_LEFT",
232
- GAME_IN_PROGRESS = "GAME_IN_PROGRESS"
233
- }
234
- type GameHistory = {
235
- gameDate: GameDate;
236
- gameStatus: EnumGameStatus;
237
- gameType: EnumGameType;
238
- pointsEarned: number;
239
- };
240
- type GameType = {
241
- _id: string;
242
- active: boolean;
243
- createdAt: Date;
244
- deletedAt: Date | null;
245
- gameData: GameData | null;
246
- gameHistory: GameHistory[] | null;
247
- owner: OwnerType;
248
- points: number;
249
- updatedAt: Date | null;
250
- };
251
- type GameLeaderboard = {
252
- gameHistory: GameHistory[] | null;
253
- overallPoints: number;
254
- owner: OwnerType;
255
- };
256
-
257
141
  declare enum EnumAdShowOn {
258
142
  EVENTS_PAGE = "Events_page",
259
143
  FRONT_PAGE = "Front_page",
@@ -378,4 +262,4 @@ type PostType = Omit<PostFormData, "content" | "coverUpload"> & {
378
262
  updatedAt: Date | null;
379
263
  };
380
264
 
381
- export { type AdType as A, type BaseGame as B, type CreateUserFormData as C, type DailyClueGameData as D, EnumAdStatus as E, type PostContentData as F, type GameType as G, type PostContentFormData as H, type PostContentGame as I, type PostContentImage as J, type PostContentList as K, type PostContentTextarea as L, type PostContentType as M, type PostContentVideo as N, type PostFileInput as O, type PartnerType as P, type StripeSubscription as Q, type ResourceByUser as R, type SubscriptionPlansResponse as S, type SubscriptionPlanData as T, type UserType as U, type SubscriptionPricingData as V, type UserActivity as W, type UserActivityEvent as X, gameScreenIdentifierList as Y, gameTypeToDisplayName as Z, type SubscriptionStatusData as a, type PostType as b, EnumPostType as c, type AppSettingsType as d, type GameLeaderboard as e, type UserFormData as f, type PartnerFormData as g, type AdFormData as h, type CreateAdFormData as i, type CreatePartnerFormData as j, type PostFormData as k, type CreatePostFormData as l, type AppSettingsFormData as m, type CreateAppSettingsFormData as n, type AdResource as o, EnumAdShowOn as p, EnumAdStyle as q, EnumAdType as r, EnumGameStatus as s, EnumGameType as t, EnumPostContentType as u, type GameData as v, type GameDate as w, type GameHistory as x, type GamePlacement as y, type GamePlacementClue as z };
265
+ export { type AdType as A, type PostFileInput as B, type CreateUserFormData as C, type StripeSubscription as D, EnumAdStatus as E, type SubscriptionPlanData as F, type SubscriptionPricingData as G, type UserActivity as H, type UserActivityEvent as I, type PartnerType as P, type ResourceByUser as R, type SubscriptionPlansResponse as S, type UserType as U, type SubscriptionStatusData as a, type PostType as b, EnumPostType as c, type AppSettingsType as d, type UserFormData as e, type PartnerFormData as f, type AdFormData as g, type CreateAdFormData as h, type CreatePartnerFormData as i, type PostFormData as j, type CreatePostFormData as k, type AppSettingsFormData as l, type CreateAppSettingsFormData as m, type AdResource as n, EnumAdShowOn as o, EnumAdStyle as p, EnumAdType as q, EnumPostContentType as r, type PostContentData as s, type PostContentFormData as t, type PostContentGame as u, type PostContentImage as v, type PostContentList as w, type PostContentTextarea as x, type PostContentType as y, type PostContentVideo as z };
@@ -1,5 +1,6 @@
1
1
  import { EnumUserLicence, EnumSubscriptionStatus, EnumOSPlatform, EnumUserRole, EnumResourceType, EnumPartnerType } from './enums/index.mjs';
2
- import { A as AssociateType, Q as ResourceImageType, h as UserLicenceType, Y as TermsAgreement, D as DateTimeType, s as CreateFormData, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, y as OwnerType } from './global-MMBYi34A.mjs';
2
+ import { A as AssociateType, Q as ResourceImageType, h as UserLicenceType, Y as TermsAgreement, D as DateTimeType, s as CreateFormData, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData } from './global-MMBYi34A.mjs';
3
+ import { B as BaseGame } from './game-DTrJRy_s.mjs';
3
4
 
4
5
  type UserFormData = {
5
6
  _id?: string;
@@ -137,123 +138,6 @@ type AppSettingsType = AppSettingsFormData & {
137
138
  updatedAt: Date | null;
138
139
  };
139
140
 
140
- declare const gameScreenIdentifierList: readonly [{
141
- readonly clue: "Where your actions turn into a timeline.";
142
- readonly id: "activities";
143
- }, {
144
- readonly clue: "Where conversations happen without speaking.";
145
- readonly id: "chat";
146
- }, {
147
- readonly clue: "The place to redefine who you are.";
148
- readonly id: "edit-profile";
149
- }, {
150
- readonly clue: "A single moment worth showing up for.";
151
- readonly id: "event";
152
- }, {
153
- readonly clue: "What’s happening around you, right now.";
154
- readonly id: "events-near-me";
155
- }, {
156
- readonly clue: "A collection of things worth attending.";
157
- readonly id: "events";
158
- }, {
159
- readonly clue: "What’s happening in a wider area—not just nearby.";
160
- readonly id: "events/region";
161
- }, {
162
- readonly clue: "Where fun becomes a challenge.";
163
- readonly id: "games";
164
- }, {
165
- readonly clue: "Your starting point for everything.";
166
- readonly id: "home";
167
- }, {
168
- readonly clue: "Where the app taps you on the shoulder.";
169
- readonly id: "notifications";
170
- }, {
171
- readonly clue: "Where you fine-tune your experience.";
172
- readonly id: "options";
173
- }, {
174
- readonly clue: "A single collaborator in the ecosystem.";
175
- readonly id: "partner";
176
- }, {
177
- readonly clue: "The network behind the scenes.";
178
- readonly id: "partners";
179
- }, {
180
- readonly clue: "Where you share something with everyone.";
181
- readonly id: "post";
182
- }, {
183
- readonly clue: "Your identity, on display.";
184
- readonly id: "profile";
185
- }, {
186
- readonly clue: "One provider offering something valuable.";
187
- readonly id: "vendor";
188
- }, {
189
- readonly clue: "A marketplace of providers.";
190
- readonly id: "vendors";
191
- }, {
192
- readonly clue: "People who stopped by to see you.";
193
- readonly id: "visitors";
194
- }];
195
- type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
196
- type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
197
- declare enum EnumGameType {
198
- DAILY_CLUE = "dailyClue"
199
- }
200
- declare const gameTypeToDisplayName: Record<EnumGameType, string>;
201
- type GameDate = {
202
- startDate: Date;
203
- endDate: Date;
204
- };
205
- type BaseGame = {
206
- gameDate: GameDate;
207
- gameSolution: string;
208
- gameType: EnumGameType;
209
- };
210
- type DailyClueGameData = {
211
- gameFields: BaseGame;
212
- lastFoundDate: Date | null;
213
- points: number;
214
- letterInfo: {
215
- collected: string[] | null;
216
- shuffled: string[];
217
- todaysLetter: string | null;
218
- todaysClue: GamePlacementClue | null;
219
- todaysPlacement: GamePlacement | null;
220
- };
221
- streak: number;
222
- };
223
- type GameDataMap = {
224
- [EnumGameType.DAILY_CLUE]: DailyClueGameData;
225
- };
226
- type GameData = {
227
- [K in keyof GameDataMap]?: GameDataMap[K] | null;
228
- };
229
- declare enum EnumGameStatus {
230
- GAME_COMPLETED = "GAME_COMPLETED",
231
- GAME_LEFT = "GAME_LEFT",
232
- GAME_IN_PROGRESS = "GAME_IN_PROGRESS"
233
- }
234
- type GameHistory = {
235
- gameDate: GameDate;
236
- gameStatus: EnumGameStatus;
237
- gameType: EnumGameType;
238
- pointsEarned: number;
239
- };
240
- type GameType = {
241
- _id: string;
242
- active: boolean;
243
- createdAt: Date;
244
- deletedAt: Date | null;
245
- gameData: GameData | null;
246
- gameHistory: GameHistory[] | null;
247
- owner: OwnerType;
248
- points: number;
249
- updatedAt: Date | null;
250
- };
251
- type GameLeaderboard = {
252
- gameHistory: GameHistory[] | null;
253
- overallPoints: number;
254
- owner: OwnerType;
255
- };
256
-
257
141
  declare enum EnumAdShowOn {
258
142
  EVENTS_PAGE = "Events_page",
259
143
  FRONT_PAGE = "Front_page",
@@ -378,4 +262,4 @@ type PostType = Omit<PostFormData, "content" | "coverUpload"> & {
378
262
  updatedAt: Date | null;
379
263
  };
380
264
 
381
- export { type AdType as A, type BaseGame as B, type CreateUserFormData as C, type DailyClueGameData as D, EnumAdStatus as E, type PostContentData as F, type GameType as G, type PostContentFormData as H, type PostContentGame as I, type PostContentImage as J, type PostContentList as K, type PostContentTextarea as L, type PostContentType as M, type PostContentVideo as N, type PostFileInput as O, type PartnerType as P, type StripeSubscription as Q, type ResourceByUser as R, type SubscriptionPlansResponse as S, type SubscriptionPlanData as T, type UserType as U, type SubscriptionPricingData as V, type UserActivity as W, type UserActivityEvent as X, gameScreenIdentifierList as Y, gameTypeToDisplayName as Z, type SubscriptionStatusData as a, type PostType as b, EnumPostType as c, type AppSettingsType as d, type GameLeaderboard as e, type UserFormData as f, type PartnerFormData as g, type AdFormData as h, type CreateAdFormData as i, type CreatePartnerFormData as j, type PostFormData as k, type CreatePostFormData as l, type AppSettingsFormData as m, type CreateAppSettingsFormData as n, type AdResource as o, EnumAdShowOn as p, EnumAdStyle as q, EnumAdType as r, EnumGameStatus as s, EnumGameType as t, EnumPostContentType as u, type GameData as v, type GameDate as w, type GameHistory as x, type GamePlacement as y, type GamePlacementClue as z };
265
+ export { type AdType as A, type PostFileInput as B, type CreateUserFormData as C, type StripeSubscription as D, EnumAdStatus as E, type SubscriptionPlanData as F, type SubscriptionPricingData as G, type UserActivity as H, type UserActivityEvent as I, type PartnerType as P, type ResourceByUser as R, type SubscriptionPlansResponse as S, type UserType as U, type SubscriptionStatusData as a, type PostType as b, EnumPostType as c, type AppSettingsType as d, type UserFormData as e, type PartnerFormData as f, type AdFormData as g, type CreateAdFormData as h, type CreatePartnerFormData as i, type PostFormData as j, type CreatePostFormData as k, type AppSettingsFormData as l, type CreateAppSettingsFormData as m, type AdResource as n, EnumAdShowOn as o, EnumAdStyle as p, EnumAdType as q, EnumPostContentType as r, type PostContentData as s, type PostContentFormData as t, type PostContentGame as u, type PostContentImage as v, type PostContentList as w, type PostContentTextarea as x, type PostContentType as y, type PostContentVideo as z };
@@ -3,7 +3,8 @@ export { e as ContactUsFormData, f as CreateContactUsFormData, C as CreateLoginF
3
3
  export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-CqrscA5x.mjs';
4
4
  import { c as EventListItemType } from '../global-MMBYi34A.mjs';
5
5
  export { A as AssociateType, r as BaseResourceType, B as BaseResourceTypeFormData, C as Category, n as CreateEventFormData, p as CreateEventInfoFormData, s as CreateFormData, t as CreateUnregisteredVendorFormData, j as CreateVendorFormData, l as CreateVendorInfoFormData, D as DateTimeType, u as DateTimeWithPriceType, v as DeviceInfo, m as EventFormData, o as EventInfoFormData, d as EventInfoType, w as EventStatusType, E as EventType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, x as LocationGeoType, L as LocationType, N as Nullable, O as OptionItem, y as OwnerType, P as PaymentInfoType, z as PosterUsageType, R as RefundPolicy, H as Region, J as RelationDate, e as RelationType, b as Requirement, f as ResourceConnectionsType, K as ResourceContactDetailsType, M as ResourceDetails, Q as ResourceImageType, T as SocialMediaType, S as StallType, W as Subcategory, X as SubcategoryItems, Y as TermsAgreement, q as UnregisteredVendorFormData, Z as UnregisteredVendorInvitationType, U as UnregisteredVendorType, h as UserLicenceType, _ as VendorAttributes, $ as VendorCalendarData, i as VendorFormData, k as VendorInfoFormData, g as VendorInfoType, a0 as VendorProductList, V as VendorType } from '../global-MMBYi34A.mjs';
6
- export { h as AdFormData, o as AdResource, A as AdType, m as AppSettingsFormData, d as AppSettingsType, B as BaseGame, i as CreateAdFormData, n as CreateAppSettingsFormData, j as CreatePartnerFormData, l as CreatePostFormData, C as CreateUserFormData, D as DailyClueGameData, p as EnumAdShowOn, E as EnumAdStatus, q as EnumAdStyle, r as EnumAdType, s as EnumGameStatus, t as EnumGameType, u as EnumPostContentType, c as EnumPostType, v as GameData, w as GameDate, x as GameHistory, e as GameLeaderboard, y as GamePlacement, z as GamePlacementClue, G as GameType, g as PartnerFormData, P as PartnerType, F as PostContentData, H as PostContentFormData, I as PostContentGame, J as PostContentImage, K as PostContentList, L as PostContentTextarea, M as PostContentType, N as PostContentVideo, O as PostFileInput, k as PostFormData, b as PostType, R as ResourceByUser, Q as StripeSubscription, T as SubscriptionPlanData, S as SubscriptionPlansResponse, V as SubscriptionPricingData, a as SubscriptionStatusData, W as UserActivity, X as UserActivityEvent, f as UserFormData, U as UserType, Y as gameScreenIdentifierList, Z as gameTypeToDisplayName } from '../post-C9rtHepe.mjs';
6
+ export { g as AdFormData, n as AdResource, A as AdType, l as AppSettingsFormData, d as AppSettingsType, h as CreateAdFormData, m as CreateAppSettingsFormData, i as CreatePartnerFormData, k as CreatePostFormData, C as CreateUserFormData, o as EnumAdShowOn, E as EnumAdStatus, p as EnumAdStyle, q as EnumAdType, r as EnumPostContentType, c as EnumPostType, f as PartnerFormData, P as PartnerType, s as PostContentData, t as PostContentFormData, u as PostContentGame, v as PostContentImage, w as PostContentList, x as PostContentTextarea, y as PostContentType, z as PostContentVideo, B as PostFileInput, j as PostFormData, b as PostType, R as ResourceByUser, D as StripeSubscription, F as SubscriptionPlanData, S as SubscriptionPlansResponse, G as SubscriptionPricingData, a as SubscriptionStatusData, H as UserActivity, I as UserActivityEvent, e as UserFormData, U as UserType } from '../post-wptsHKVN.mjs';
7
+ export { B as BaseGame, D as DailyClueGameData, E as EnumGameStatus, b as EnumGameType, c as GameData, d as GameDate, e as GameHistory, a as GameLeaderboard, f as GamePlacement, g as GamePlacementClue, G as GameType, h as gameScreenIdentifierList, i as gameTypeToDisplayName } from '../game-DTrJRy_s.mjs';
7
8
  import 'react-hook-form';
8
9
 
9
10
  interface AdminUpdateResourceType {
@@ -3,7 +3,8 @@ export { e as ContactUsFormData, f as CreateContactUsFormData, C as CreateLoginF
3
3
  export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-2FaGRW-i.js';
4
4
  import { c as EventListItemType } from '../global-B0WdAD-8.js';
5
5
  export { A as AssociateType, r as BaseResourceType, B as BaseResourceTypeFormData, C as Category, n as CreateEventFormData, p as CreateEventInfoFormData, s as CreateFormData, t as CreateUnregisteredVendorFormData, j as CreateVendorFormData, l as CreateVendorInfoFormData, D as DateTimeType, u as DateTimeWithPriceType, v as DeviceInfo, m as EventFormData, o as EventInfoFormData, d as EventInfoType, w as EventStatusType, E as EventType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, x as LocationGeoType, L as LocationType, N as Nullable, O as OptionItem, y as OwnerType, P as PaymentInfoType, z as PosterUsageType, R as RefundPolicy, H as Region, J as RelationDate, e as RelationType, b as Requirement, f as ResourceConnectionsType, K as ResourceContactDetailsType, M as ResourceDetails, Q as ResourceImageType, T as SocialMediaType, S as StallType, W as Subcategory, X as SubcategoryItems, Y as TermsAgreement, q as UnregisteredVendorFormData, Z as UnregisteredVendorInvitationType, U as UnregisteredVendorType, h as UserLicenceType, _ as VendorAttributes, $ as VendorCalendarData, i as VendorFormData, k as VendorInfoFormData, g as VendorInfoType, a0 as VendorProductList, V as VendorType } from '../global-B0WdAD-8.js';
6
- export { h as AdFormData, o as AdResource, A as AdType, m as AppSettingsFormData, d as AppSettingsType, B as BaseGame, i as CreateAdFormData, n as CreateAppSettingsFormData, j as CreatePartnerFormData, l as CreatePostFormData, C as CreateUserFormData, D as DailyClueGameData, p as EnumAdShowOn, E as EnumAdStatus, q as EnumAdStyle, r as EnumAdType, s as EnumGameStatus, t as EnumGameType, u as EnumPostContentType, c as EnumPostType, v as GameData, w as GameDate, x as GameHistory, e as GameLeaderboard, y as GamePlacement, z as GamePlacementClue, G as GameType, g as PartnerFormData, P as PartnerType, F as PostContentData, H as PostContentFormData, I as PostContentGame, J as PostContentImage, K as PostContentList, L as PostContentTextarea, M as PostContentType, N as PostContentVideo, O as PostFileInput, k as PostFormData, b as PostType, R as ResourceByUser, Q as StripeSubscription, T as SubscriptionPlanData, S as SubscriptionPlansResponse, V as SubscriptionPricingData, a as SubscriptionStatusData, W as UserActivity, X as UserActivityEvent, f as UserFormData, U as UserType, Y as gameScreenIdentifierList, Z as gameTypeToDisplayName } from '../post-C67Q-sXR.js';
6
+ export { g as AdFormData, n as AdResource, A as AdType, l as AppSettingsFormData, d as AppSettingsType, h as CreateAdFormData, m as CreateAppSettingsFormData, i as CreatePartnerFormData, k as CreatePostFormData, C as CreateUserFormData, o as EnumAdShowOn, E as EnumAdStatus, p as EnumAdStyle, q as EnumAdType, r as EnumPostContentType, c as EnumPostType, f as PartnerFormData, P as PartnerType, s as PostContentData, t as PostContentFormData, u as PostContentGame, v as PostContentImage, w as PostContentList, x as PostContentTextarea, y as PostContentType, z as PostContentVideo, B as PostFileInput, j as PostFormData, b as PostType, R as ResourceByUser, D as StripeSubscription, F as SubscriptionPlanData, S as SubscriptionPlansResponse, G as SubscriptionPricingData, a as SubscriptionStatusData, H as UserActivity, I as UserActivityEvent, e as UserFormData, U as UserType } from '../post-DXOToXeT.js';
7
+ export { B as BaseGame, D as DailyClueGameData, E as EnumGameStatus, b as EnumGameType, c as GameData, d as GameDate, e as GameHistory, a as GameLeaderboard, f as GamePlacement, g as GamePlacementClue, G as GameType, h as gameScreenIdentifierList, i as gameTypeToDisplayName } from '../game-lvz2AUuu.js';
7
8
  import 'react-hook-form';
8
9
 
9
10
  interface AdminUpdateResourceType {
@@ -4,14 +4,16 @@ import {
4
4
  EnumAdStatus,
5
5
  EnumAdStyle,
6
6
  EnumAdType,
7
- EnumGameStatus,
8
- EnumGameType,
9
7
  EnumPostContentType,
10
8
  EnumPostType,
11
- EnumVerificationType,
9
+ EnumVerificationType
10
+ } from "../chunk-KPO6ZYQ4.mjs";
11
+ import {
12
+ EnumGameStatus,
13
+ EnumGameType,
12
14
  gameScreenIdentifierList,
13
15
  gameTypeToDisplayName
14
- } from "../chunk-GSNFQJBZ.mjs";
16
+ } from "../chunk-QG5DPPZI.mjs";
15
17
  export {
16
18
  EnumActivity,
17
19
  EnumAdShowOn,
@@ -36,6 +36,7 @@ __export(utils_exports, {
36
36
  availableRegionTypes: () => availableRegionTypes,
37
37
  capitalizeFirstLetter: () => capitalizeFirstLetter,
38
38
  cluemartSocialMedia: () => cluemartSocialMedia,
39
+ computeDailyClueState: () => computeDailyClueState,
39
40
  dateFormat: () => dateFormat,
40
41
  formatDate: () => formatDate,
41
42
  formatTimestamp: () => formatTimestamp,
@@ -46,6 +47,7 @@ __export(utils_exports, {
46
47
  normalizeUrl: () => normalizeUrl,
47
48
  paymentMethodOptions: () => paymentMethodOptions,
48
49
  removeTypename: () => removeTypename,
50
+ seededShuffle: () => seededShuffle,
49
51
  sortDatesChronologically: () => sortDatesChronologically,
50
52
  statusOptions: () => statusOptions,
51
53
  timeFormat: () => timeFormat,
@@ -53,7 +55,161 @@ __export(utils_exports, {
53
55
  truncateText: () => truncateText
54
56
  });
55
57
  module.exports = __toCommonJS(utils_exports);
58
+
59
+ // src/utils/dailyClueGame.ts
56
60
  var import_dayjs = __toESM(require("dayjs"));
61
+
62
+ // src/types/game.ts
63
+ var gameScreenIdentifierList = [
64
+ {
65
+ clue: "Where your actions turn into a timeline.",
66
+ id: "activities"
67
+ },
68
+ {
69
+ clue: "Where conversations happen without speaking.",
70
+ id: "chat"
71
+ },
72
+ {
73
+ clue: "The place to redefine who you are.",
74
+ id: "edit-profile"
75
+ },
76
+ {
77
+ clue: "A single moment worth showing up for.",
78
+ id: "event"
79
+ },
80
+ {
81
+ clue: "What\u2019s happening around you, right now.",
82
+ id: "events-near-me"
83
+ },
84
+ {
85
+ clue: "A collection of things worth attending.",
86
+ id: "events"
87
+ },
88
+ {
89
+ clue: "What\u2019s happening in a wider area\u2014not just nearby.",
90
+ id: "events/region"
91
+ },
92
+ {
93
+ clue: "Where fun becomes a challenge.",
94
+ id: "games"
95
+ },
96
+ {
97
+ clue: "Your starting point for everything.",
98
+ id: "home"
99
+ },
100
+ {
101
+ clue: "Where the app taps you on the shoulder.",
102
+ id: "notifications"
103
+ },
104
+ {
105
+ clue: "Where you fine-tune your experience.",
106
+ id: "options"
107
+ },
108
+ {
109
+ clue: "A single collaborator in the ecosystem.",
110
+ id: "partner"
111
+ },
112
+ {
113
+ clue: "The network behind the scenes.",
114
+ id: "partners"
115
+ },
116
+ {
117
+ clue: "Where you share something with everyone.",
118
+ id: "post"
119
+ },
120
+ {
121
+ clue: "Your identity, on display.",
122
+ id: "profile"
123
+ },
124
+ {
125
+ clue: "One provider offering something valuable.",
126
+ id: "vendor"
127
+ },
128
+ {
129
+ clue: "A marketplace of providers.",
130
+ id: "vendors"
131
+ },
132
+ {
133
+ clue: "People who stopped by to see you.",
134
+ id: "visitors"
135
+ }
136
+ ];
137
+
138
+ // src/utils/dailyClueGame.ts
139
+ function createSeededRng(seed) {
140
+ let t = seed >>> 0;
141
+ return function random() {
142
+ t += 1831565813;
143
+ let x = t;
144
+ x = Math.imul(x ^ x >>> 15, x | 1);
145
+ x ^= x + Math.imul(x ^ x >>> 7, x | 61);
146
+ return ((x ^ x >>> 14) >>> 0) / 4294967296;
147
+ };
148
+ }
149
+ function hashStringToNumber(seed) {
150
+ let hash = 2166136261;
151
+ for (let i = 0; i < seed.length; i++) {
152
+ hash ^= seed.codePointAt(i) ?? 0;
153
+ hash = Math.imul(hash, 16777619);
154
+ }
155
+ return hash >>> 0;
156
+ }
157
+ function seededShuffle(array, seed) {
158
+ const rng = createSeededRng(hashStringToNumber(seed));
159
+ const result = [...array];
160
+ for (let i = result.length - 1; i > 0; i--) {
161
+ const j = Math.floor(rng() * (i + 1));
162
+ [result[i], result[j]] = [result[j], result[i]];
163
+ }
164
+ return result;
165
+ }
166
+ function getDayIndex(startDate) {
167
+ return (0, import_dayjs.default)().startOf("day").diff((0, import_dayjs.default)(startDate).startOf("day"), "day");
168
+ }
169
+ function computeDailyClueState(dailyClue) {
170
+ const { startDate, endDate } = dailyClue.gameFields.gameDate;
171
+ const { shuffled, collected } = dailyClue.letterInfo;
172
+ const shuffledPlacements = seededShuffle(
173
+ gameScreenIdentifierList,
174
+ startDate.toISOString()
175
+ );
176
+ const today = (0, import_dayjs.default)().startOf("day");
177
+ const start = (0, import_dayjs.default)(startDate).startOf("day");
178
+ const end = (0, import_dayjs.default)(endDate).startOf("day");
179
+ if (today.isBefore(start)) {
180
+ return null;
181
+ }
182
+ if (today.isAfter(end)) {
183
+ return null;
184
+ }
185
+ const index = getDayIndex(startDate);
186
+ if (index < 0 || index >= shuffled.length) return null;
187
+ if (collected?.includes(shuffled[index])) {
188
+ return null;
189
+ }
190
+ if (today.isAfter(end)) {
191
+ return {
192
+ gameHistory: {
193
+ gameDate: dailyClue.gameFields.gameDate,
194
+ gameStatus: "GAME_COMPLETED" /* GAME_COMPLETED */,
195
+ gameType: dailyClue.gameFields.gameType,
196
+ pointsEarned: dailyClue.points
197
+ },
198
+ todaysClue: null,
199
+ todaysLetter: null,
200
+ todaysPlacement: null
201
+ };
202
+ }
203
+ return {
204
+ gameHistory: null,
205
+ todaysClue: shuffledPlacements[index].clue,
206
+ todaysLetter: shuffled[index],
207
+ todaysPlacement: shuffledPlacements[index].id
208
+ };
209
+ }
210
+
211
+ // src/utils/index.ts
212
+ var import_dayjs2 = __toESM(require("dayjs"));
57
213
  var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.js"));
58
214
  var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
59
215
  var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
@@ -98,17 +254,17 @@ var EnumRegions = /* @__PURE__ */ ((EnumRegions2) => {
98
254
  // src/utils/index.ts
99
255
  var dateFormat = "DD-MM-YYYY";
100
256
  var timeFormat = "HH:mm";
101
- import_dayjs.default.extend(import_customParseFormat.default);
102
- import_dayjs.default.extend(import_utc.default);
103
- import_dayjs.default.extend(import_timezone.default);
104
- import_dayjs.default.extend(import_isSameOrAfter.default);
257
+ import_dayjs2.default.extend(import_customParseFormat.default);
258
+ import_dayjs2.default.extend(import_utc.default);
259
+ import_dayjs2.default.extend(import_timezone.default);
260
+ import_dayjs2.default.extend(import_isSameOrAfter.default);
105
261
  var NZ_TZ = "Pacific/Auckland";
106
262
  function toNZTime(date) {
107
- return (0, import_dayjs.default)(date).tz(NZ_TZ).format();
263
+ return (0, import_dayjs2.default)(date).tz(NZ_TZ).format();
108
264
  }
109
265
  var formatDate = (dateStr, display = "datetime", timeStr) => {
110
266
  const dateTimeStr = timeStr ? `${dateStr} ${timeStr}` : dateStr;
111
- const dateTime = timeStr ? (0, import_dayjs.default)(dateTimeStr, `${dateFormat} ${timeFormat}`) : (0, import_dayjs.default)(dateStr, dateFormat);
267
+ const dateTime = timeStr ? (0, import_dayjs2.default)(dateTimeStr, `${dateFormat} ${timeFormat}`) : (0, import_dayjs2.default)(dateStr, dateFormat);
112
268
  const formattedDate = dateTime.format("dddd, D MMMM, YYYY");
113
269
  const formattedTime = dateTime.format("h:mm a");
114
270
  switch (display) {
@@ -123,9 +279,9 @@ var formatDate = (dateStr, display = "datetime", timeStr) => {
123
279
  }
124
280
  };
125
281
  var getCurrentAndFutureDates = (dates) => {
126
- const now = (0, import_dayjs.default)();
282
+ const now = (0, import_dayjs2.default)();
127
283
  return dates.filter((dateObj) => {
128
- const dateTime = (0, import_dayjs.default)(
284
+ const dateTime = (0, import_dayjs2.default)(
129
285
  `${dateObj.startDate} ${dateObj.startTime}`,
130
286
  `${dateFormat} ${timeFormat}`
131
287
  );
@@ -133,16 +289,15 @@ var getCurrentAndFutureDates = (dates) => {
133
289
  });
134
290
  };
135
291
  var isFutureDatesBeforeThreshold = (date, minHoursFromNow) => {
136
- const threshold = minHoursFromNow ? (0, import_dayjs.default)().add(minHoursFromNow, "hour") : (0, import_dayjs.default)().startOf("day");
137
- const dateTime = (0, import_dayjs.default)(
292
+ const threshold = minHoursFromNow ? (0, import_dayjs2.default)().add(minHoursFromNow, "hour") : (0, import_dayjs2.default)().startOf("day");
293
+ const dateTime = (0, import_dayjs2.default)(
138
294
  `${date.startDate} ${date.startTime}`,
139
295
  `${dateFormat} ${timeFormat}`
140
296
  );
141
297
  return dateTime.isSameOrAfter(threshold);
142
298
  };
143
299
  var formatTimestamp = (timestamp) => {
144
- const formattedDate = (0, import_dayjs.default)(timestamp).tz("Pacific/Auckland").format(dateFormat);
145
- const formattedTime = (0, import_dayjs.default)(timestamp).tz("Pacific/Auckland").format(timeFormat);
300
+ const formattedDate = (0, import_dayjs2.default)(timestamp).tz("Pacific/Auckland").format(dateFormat);
146
301
  return formatDate(formattedDate, "date");
147
302
  };
148
303
  var isIsoDateString = (value) => {
@@ -193,8 +348,8 @@ function sortDatesChronologically(dates) {
193
348
  }
194
349
  return [...dates].sort((a, b) => {
195
350
  const dateTimeFormat = `${dateFormat} ${timeFormat}`;
196
- const dateA = (0, import_dayjs.default)(`${a.startDate} ${a.startTime}`, dateTimeFormat);
197
- const dateB = (0, import_dayjs.default)(`${b.startDate} ${b.startTime}`, dateTimeFormat);
351
+ const dateA = (0, import_dayjs2.default)(`${a.startDate} ${a.startTime}`, dateTimeFormat);
352
+ const dateB = (0, import_dayjs2.default)(`${b.startDate} ${b.startTime}`, dateTimeFormat);
198
353
  return dateA.valueOf() - dateB.valueOf();
199
354
  });
200
355
  }
@@ -246,6 +401,7 @@ var ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cl
246
401
  availableRegionTypes,
247
402
  capitalizeFirstLetter,
248
403
  cluemartSocialMedia,
404
+ computeDailyClueState,
249
405
  dateFormat,
250
406
  formatDate,
251
407
  formatTimestamp,
@@ -256,6 +412,7 @@ var ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cl
256
412
  normalizeUrl,
257
413
  paymentMethodOptions,
258
414
  removeTypename,
415
+ seededShuffle,
259
416
  sortDatesChronologically,
260
417
  statusOptions,
261
418
  timeFormat,