@myrjfa/state 3.0.3 → 3.0.5

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 (108) hide show
  1. package/dist/lib/actions/adventure.d.ts +1 -1
  2. package/dist/lib/actions/adventure.d.ts.map +1 -1
  3. package/dist/lib/actions/adventure.js +7 -3
  4. package/dist/lib/actions/blog.d.ts +2 -2
  5. package/dist/lib/actions/blog.d.ts.map +1 -1
  6. package/dist/lib/actions/blog.js +3 -3
  7. package/dist/lib/actions/booking.d.ts +17 -0
  8. package/dist/lib/actions/booking.d.ts.map +1 -1
  9. package/dist/lib/actions/booking.js +11 -0
  10. package/dist/lib/actions/chat.d.ts +1 -1
  11. package/dist/lib/actions/chat.d.ts.map +1 -1
  12. package/dist/lib/actions/chat.js +3 -2
  13. package/dist/lib/actions/companion.d.ts +103 -2
  14. package/dist/lib/actions/companion.d.ts.map +1 -1
  15. package/dist/lib/actions/companion.js +109 -6
  16. package/dist/lib/actions/event.d.ts +2 -2
  17. package/dist/lib/actions/event.d.ts.map +1 -1
  18. package/dist/lib/actions/event.js +2 -2
  19. package/dist/lib/actions/fetcher.d.ts +2 -1
  20. package/dist/lib/actions/fetcher.d.ts.map +1 -1
  21. package/dist/lib/actions/fetcher.js +2 -1
  22. package/dist/lib/actions/guide.js +3 -0
  23. package/dist/lib/actions/itinerary.d.ts +5 -0
  24. package/dist/lib/actions/itinerary.d.ts.map +1 -1
  25. package/dist/lib/actions/itinerary.js +9 -0
  26. package/dist/lib/actions/opportunity.d.ts +1 -1
  27. package/dist/lib/actions/opportunity.d.ts.map +1 -1
  28. package/dist/lib/actions/opportunity.js +2 -2
  29. package/dist/lib/actions/package.d.ts +64 -6
  30. package/dist/lib/actions/package.d.ts.map +1 -1
  31. package/dist/lib/actions/package.js +238 -18
  32. package/dist/lib/actions/rental.d.ts +1 -1
  33. package/dist/lib/actions/rental.d.ts.map +1 -1
  34. package/dist/lib/actions/rental.js +7 -3
  35. package/dist/lib/actions/store.d.ts +1 -1
  36. package/dist/lib/actions/store.d.ts.map +1 -1
  37. package/dist/lib/actions/store.js +9 -3
  38. package/dist/lib/companion/discoveryPrefill.d.ts +27 -0
  39. package/dist/lib/companion/discoveryPrefill.d.ts.map +1 -0
  40. package/dist/lib/companion/discoveryPrefill.js +80 -0
  41. package/dist/lib/companion/inspiration.d.ts +9 -0
  42. package/dist/lib/companion/inspiration.d.ts.map +1 -0
  43. package/dist/lib/companion/inspiration.js +15 -0
  44. package/dist/lib/data/event.d.ts +1 -1
  45. package/dist/lib/data/event.d.ts.map +1 -1
  46. package/dist/lib/data/event.js +8 -8
  47. package/dist/lib/data/stay.d.ts +1 -1
  48. package/dist/lib/data/stay.d.ts.map +1 -1
  49. package/dist/lib/data/stay.js +7 -7
  50. package/dist/lib/data/store.js +14 -14
  51. package/dist/lib/forms/adventure.js +1 -1
  52. package/dist/lib/forms/event.js +1 -1
  53. package/dist/lib/forms/rental.js +2 -2
  54. package/dist/lib/forms/travelPackageData.d.ts.map +1 -1
  55. package/dist/lib/forms/travelPackageData.js +0 -2
  56. package/dist/lib/models/adventure.d.ts +2 -0
  57. package/dist/lib/models/adventure.d.ts.map +1 -1
  58. package/dist/lib/models/authorization.d.ts +6 -4
  59. package/dist/lib/models/authorization.d.ts.map +1 -1
  60. package/dist/lib/models/authorization.js +10 -2
  61. package/dist/lib/models/booking.d.ts +6 -0
  62. package/dist/lib/models/booking.d.ts.map +1 -1
  63. package/dist/lib/models/community.d.ts +1 -1
  64. package/dist/lib/models/community.d.ts.map +1 -1
  65. package/dist/lib/models/companion.d.ts +43 -0
  66. package/dist/lib/models/companion.d.ts.map +1 -0
  67. package/dist/lib/models/companion.js +1 -0
  68. package/dist/lib/models/guide.d.ts +2 -0
  69. package/dist/lib/models/guide.d.ts.map +1 -1
  70. package/dist/lib/models/itinerary.d.ts +11 -0
  71. package/dist/lib/models/itinerary.d.ts.map +1 -1
  72. package/dist/lib/models/listingModeration.d.ts +4 -0
  73. package/dist/lib/models/listingModeration.d.ts.map +1 -0
  74. package/dist/lib/models/listingModeration.js +13 -0
  75. package/dist/lib/models/opportunities/freelance.d.ts +6 -0
  76. package/dist/lib/models/opportunities/freelance.d.ts.map +1 -1
  77. package/dist/lib/models/opportunities/internship.d.ts +6 -0
  78. package/dist/lib/models/opportunities/internship.d.ts.map +1 -1
  79. package/dist/lib/models/opportunities/job.d.ts +6 -0
  80. package/dist/lib/models/opportunities/job.d.ts.map +1 -1
  81. package/dist/lib/models/opportunities/opportunity.d.ts +6 -0
  82. package/dist/lib/models/opportunities/opportunity.d.ts.map +1 -1
  83. package/dist/lib/models/opportunities/opportunity.js +2 -0
  84. package/dist/lib/models/opportunities/volunteerJob.d.ts +6 -0
  85. package/dist/lib/models/opportunities/volunteerJob.d.ts.map +1 -1
  86. package/dist/lib/models/package.d.ts +6 -0
  87. package/dist/lib/models/package.d.ts.map +1 -1
  88. package/dist/lib/models/package.js +2 -0
  89. package/dist/lib/models/rental.d.ts +2 -0
  90. package/dist/lib/models/rental.d.ts.map +1 -1
  91. package/dist/lib/models/stay.d.ts +3 -3
  92. package/dist/lib/models/stay.js +1 -1
  93. package/dist/lib/models/store.d.ts +3 -1
  94. package/dist/lib/models/store.d.ts.map +1 -1
  95. package/dist/lib/models/tile.d.ts +3 -0
  96. package/dist/lib/models/tile.d.ts.map +1 -1
  97. package/dist/lib/utils/entityTiles.d.ts.map +1 -1
  98. package/dist/lib/utils/entityTiles.js +7 -0
  99. package/dist/lib/utils/listingCreateOptions.d.ts +16 -0
  100. package/dist/lib/utils/listingCreateOptions.d.ts.map +1 -0
  101. package/dist/lib/utils/listingCreateOptions.js +24 -0
  102. package/dist/lib/utils/listingSort.d.ts +4 -0
  103. package/dist/lib/utils/listingSort.d.ts.map +1 -0
  104. package/dist/lib/utils/listingSort.js +29 -0
  105. package/package.json +1 -1
  106. package/dist/lib/actions/travelPackage.d.ts +0 -108
  107. package/dist/lib/actions/travelPackage.d.ts.map +0 -1
  108. package/dist/lib/actions/travelPackage.js +0 -457
@@ -1,8 +1,14 @@
1
1
  import { get, post } from "./fetcher";
2
- export async function getStoreProducts() {
2
+ export async function getStoreProducts(sort = "featured") {
3
3
  try {
4
- const response = await get("/store?limit=100", false);
5
- return { success: true, data: response.data.products || [], message: response.message };
4
+ const endpoint = (page) => `/store?limit=100&page=${page}&sort=${encodeURIComponent(sort)}`;
5
+ const response = await get(endpoint(1), false);
6
+ const products = [...(response.data.products || [])];
7
+ for (let page = 2; page <= (response.data.totalPages || 1); page += 1) {
8
+ const next = await get(endpoint(page), false);
9
+ products.push(...(next.data.products || []));
10
+ }
11
+ return { success: true, data: products, message: response.message };
6
12
  }
7
13
  catch (error) {
8
14
  return { success: false, data: [], error: error.message };
@@ -0,0 +1,27 @@
1
+ export type CompanionDiscoveryPrefill = Partial<{
2
+ country: string;
3
+ state: string;
4
+ city: string;
5
+ style: string;
6
+ minBudget: string;
7
+ maxBudget: string;
8
+ minDays: string;
9
+ maxDays: string;
10
+ startDate: string;
11
+ endDate: string;
12
+ openSpots: string;
13
+ maxGroupSize: string;
14
+ interest: string;
15
+ }>;
16
+ export interface CompanionDiscoveryLocation {
17
+ name: string;
18
+ state: string;
19
+ country: string;
20
+ }
21
+ type SearchParamsReader = {
22
+ get(name: string): string | null;
23
+ };
24
+ export declare function parseCompanionDiscoveryPrefill(params: SearchParamsReader, locations?: readonly CompanionDiscoveryLocation[]): CompanionDiscoveryPrefill;
25
+ export declare function serializeCompanionDiscoveryPrefill(prefill: CompanionDiscoveryPrefill): URLSearchParams;
26
+ export {};
27
+ //# sourceMappingURL=discoveryPrefill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discoveryPrefill.d.ts","sourceRoot":"","sources":["../../../src/lib/companion/discoveryPrefill.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,KAAK,kBAAkB,GAAG;IAAE,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC;AA0B/D,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,kBAAkB,EAC1B,SAAS,GAAE,SAAS,0BAA0B,EAAO,GACpD,yBAAyB,CA2C3B;AAED,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,yBAAyB,mBAOpF"}
@@ -0,0 +1,80 @@
1
+ const KEYS = [
2
+ "country", "state", "city", "style", "minBudget", "maxBudget", "minDays",
3
+ "maxDays", "startDate", "endDate", "openSpots", "maxGroupSize", "interest",
4
+ ];
5
+ const STYLES = new Set(["budget", "backpacker", "flashpacker", "mid-range", "luxury"]);
6
+ const INTERESTS = new Set(["adventure", "culture", "food", "hiking", "nature", "nightlife", "photography", "wellness"]);
7
+ const SAFE_LABEL = /^[\p{L}\p{M} .'-]{1,80}$/u;
8
+ const exactDate = (value) => {
9
+ if (!value || !/^\d{4}-\d{2}-\d{2}$/.test(value))
10
+ return "";
11
+ const date = new Date(`${value}T00:00:00.000Z`);
12
+ return Number.isNaN(date.getTime()) || date.toISOString().slice(0, 10) !== value ? "" : value;
13
+ };
14
+ const boundedInteger = (value, min, max) => {
15
+ if (!value || !/^\d+$/.test(value))
16
+ return "";
17
+ const number = Number(value);
18
+ return Number.isSafeInteger(number) && number >= min && number <= max ? String(number) : "";
19
+ };
20
+ const findCaseInsensitive = (values, value) => (value ? values.find((candidate) => candidate.toLocaleLowerCase() === value.trim().toLocaleLowerCase()) || "" : "");
21
+ export function parseCompanionDiscoveryPrefill(params, locations = []) {
22
+ const result = {};
23
+ const cityInput = params.get("city")?.trim() || "";
24
+ const countryInput = params.get("country")?.trim() || "";
25
+ const stateInput = params.get("state")?.trim() || "";
26
+ const location = cityInput && SAFE_LABEL.test(cityInput)
27
+ ? locations.find((candidate) => candidate.name.toLocaleLowerCase() === cityInput.toLocaleLowerCase()
28
+ && (!countryInput || candidate.country.toLocaleLowerCase() === countryInput.toLocaleLowerCase())
29
+ && (!stateInput || candidate.state.toLocaleLowerCase() === stateInput.toLocaleLowerCase()))
30
+ : undefined;
31
+ if (location) {
32
+ result.country = location.country;
33
+ result.state = location.state;
34
+ result.city = location.name;
35
+ }
36
+ else {
37
+ const country = findCaseInsensitive([...new Set(locations.map((item) => item.country))], countryInput);
38
+ const states = locations.filter((item) => !country || item.country === country).map((item) => item.state);
39
+ const state = findCaseInsensitive([...new Set(states)], stateInput);
40
+ if (country)
41
+ result.country = country;
42
+ if (state)
43
+ result.state = state;
44
+ }
45
+ const style = params.get("style")?.trim().toLowerCase() || "";
46
+ if (STYLES.has(style))
47
+ result.style = style;
48
+ const interest = params.get("interest")?.trim().toLowerCase() || "";
49
+ if (INTERESTS.has(interest))
50
+ result.interest = interest;
51
+ const numericBounds = {
52
+ minBudget: [0, 10000000], maxBudget: [0, 10000000],
53
+ minDays: [1, 365], maxDays: [1, 365], openSpots: [1, 19], maxGroupSize: [2, 20],
54
+ };
55
+ for (const [key, [min, max]] of Object.entries(numericBounds)) {
56
+ const value = boundedInteger(params.get(key), min, max);
57
+ if (value)
58
+ result[key] = value;
59
+ }
60
+ const startDate = exactDate(params.get("startDate"));
61
+ const endDate = exactDate(params.get("endDate"));
62
+ if (startDate)
63
+ result.startDate = startDate;
64
+ if (endDate && (!startDate || endDate >= startDate))
65
+ result.endDate = endDate;
66
+ if (result.minBudget && result.maxBudget && Number(result.maxBudget) < Number(result.minBudget))
67
+ delete result.maxBudget;
68
+ if (result.minDays && result.maxDays && Number(result.maxDays) < Number(result.minDays))
69
+ delete result.maxDays;
70
+ return result;
71
+ }
72
+ export function serializeCompanionDiscoveryPrefill(prefill) {
73
+ const params = new URLSearchParams();
74
+ for (const key of KEYS) {
75
+ const value = prefill[key];
76
+ if (value)
77
+ params.set(key, value);
78
+ }
79
+ return params;
80
+ }
@@ -0,0 +1,9 @@
1
+ export declare const COMPANION_INSPIRATION_DECISION_INTERVAL = 4;
2
+ export declare function shouldShowTripInspiration({ mode, organicDecisionCount, hasCandidate, shown, }: {
3
+ mode: "trips" | "travelers";
4
+ organicDecisionCount: number;
5
+ hasCandidate: boolean;
6
+ shown: boolean;
7
+ }): boolean;
8
+ export declare function companionInspirationSessionKey(filters: Record<string, string>): string;
9
+ //# sourceMappingURL=inspiration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspiration.d.ts","sourceRoot":"","sources":["../../../src/lib/companion/inspiration.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uCAAuC,IAAI,CAAC;AAEzD,wBAAgB,yBAAyB,CAAC,EACxC,IAAI,EACJ,oBAAoB,EACpB,YAAY,EACZ,KAAK,GACN,EAAE;IACD,IAAI,EAAE,OAAO,GAAG,WAAW,CAAC;IAC5B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,OAAO,CAAC;CAChB,WAKA;AAED,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAO7E"}
@@ -0,0 +1,15 @@
1
+ export const COMPANION_INSPIRATION_DECISION_INTERVAL = 4;
2
+ export function shouldShowTripInspiration({ mode, organicDecisionCount, hasCandidate, shown, }) {
3
+ return mode === "trips"
4
+ && organicDecisionCount >= COMPANION_INSPIRATION_DECISION_INTERVAL
5
+ && hasCandidate
6
+ && !shown;
7
+ }
8
+ export function companionInspirationSessionKey(filters) {
9
+ const signature = Object.entries(filters)
10
+ .filter(([, value]) => Boolean(value))
11
+ .sort(([left], [right]) => left.localeCompare(right))
12
+ .map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`)
13
+ .join("&");
14
+ return `trippeaze:companion-inspiration:v1:${signature || "all"}`;
15
+ }
@@ -40,7 +40,7 @@ export interface LocalEvent {
40
40
  rating: number;
41
41
  ratingCount: number;
42
42
  views: number;
43
- isFeatured: boolean;
43
+ sponsored: boolean;
44
44
  isOnline: boolean;
45
45
  onlineLink?: string;
46
46
  status: string;
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/lib/data/event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,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AC"}
@@ -96,7 +96,7 @@ export const eventsDummyData = [
96
96
  rating: 4.8,
97
97
  ratingCount: 3240,
98
98
  views: 47800,
99
- isFeatured: true,
99
+ sponsored: true,
100
100
  isOnline: false,
101
101
  status: "open",
102
102
  },
@@ -164,7 +164,7 @@ export const eventsDummyData = [
164
164
  rating: 4.6,
165
165
  ratingCount: 1820,
166
166
  views: 22400,
167
- isFeatured: true,
167
+ sponsored: true,
168
168
  isOnline: false,
169
169
  status: "open",
170
170
  },
@@ -240,7 +240,7 @@ export const eventsDummyData = [
240
240
  rating: 4.9,
241
241
  ratingCount: 640,
242
242
  views: 18900,
243
- isFeatured: true,
243
+ sponsored: true,
244
244
  isOnline: false,
245
245
  status: "open",
246
246
  },
@@ -311,7 +311,7 @@ export const eventsDummyData = [
311
311
  rating: 4.7,
312
312
  ratingCount: 280,
313
313
  views: 6700,
314
- isFeatured: false,
314
+ sponsored: false,
315
315
  isOnline: false,
316
316
  status: "open",
317
317
  },
@@ -376,7 +376,7 @@ export const eventsDummyData = [
376
376
  rating: 4.5,
377
377
  ratingCount: 420,
378
378
  views: 11200,
379
- isFeatured: false,
379
+ sponsored: false,
380
380
  isOnline: false,
381
381
  status: "open",
382
382
  },
@@ -459,7 +459,7 @@ export const eventsDummyData = [
459
459
  rating: 4.9,
460
460
  ratingCount: 180,
461
461
  views: 8900,
462
- isFeatured: true,
462
+ sponsored: true,
463
463
  isOnline: false,
464
464
  status: "open",
465
465
  },
@@ -504,7 +504,7 @@ export const eventsDummyData = [
504
504
  rating: 4.4,
505
505
  ratingCount: 890,
506
506
  views: 19600,
507
- isFeatured: false,
507
+ sponsored: false,
508
508
  isOnline: false,
509
509
  status: "open",
510
510
  },
@@ -579,7 +579,7 @@ export const eventsDummyData = [
579
579
  rating: 4.8,
580
580
  ratingCount: 320,
581
581
  views: 12400,
582
- isFeatured: true,
582
+ sponsored: true,
583
583
  isOnline: false,
584
584
  status: "open",
585
585
  },
@@ -42,7 +42,7 @@ export interface StayProperty {
42
42
  instantBook: boolean;
43
43
  rating: number;
44
44
  ratingCount: number;
45
- isFeatured: boolean;
45
+ sponsored: boolean;
46
46
  cheapestRoom?: StayRoom;
47
47
  policies?: {
48
48
  cancellation: string;
@@ -1 +1 @@
1
- {"version":3,"file":"stay.d.ts","sourceRoot":"","sources":["../../../src/lib/data/stay.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC/B,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAA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EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5E,KAAK,CAAC,EAAE;QAAE,cAAc,EAAE,OAAO,CAAC;QAAC,cAAc,EAAE,OAAO,CAAA;KAAE,CAAC;IAC7D,IAAI,CAAC,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;CACvD;AAMD,eAAO,MAAM,cAAc,EAAE,QAAQ,EAuSpC,CAAC;AAMF,eAAO,MAAM,cAAc,EAAE,YAAY,EA8WxC,CAAC;AAIF,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,EAAE,CAElE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,EAAE,CAGxD;AAED,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAOxE;AAID,eAAO,MAAM,mBAAmB;;;;GAW/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAsBnD,CAAC"}
@@ -336,7 +336,7 @@ export const staysDummyData = [
336
336
  instantBook: true,
337
337
  rating: 4.8,
338
338
  ratingCount: 892,
339
- isFeatured: true,
339
+ sponsored: true,
340
340
  policies: {
341
341
  cancellation: "Free cancellation up to 48 hours before check-in",
342
342
  prepayment: "No prepayment needed - pay at the property",
@@ -388,7 +388,7 @@ export const staysDummyData = [
388
388
  instantBook: true,
389
389
  rating: 4.6,
390
390
  ratingCount: 1203,
391
- isFeatured: true,
391
+ sponsored: true,
392
392
  policies: {
393
393
  cancellation: "Free cancellation up to 48 hours before check-in",
394
394
  prepayment: "No prepayment needed - pay at the property",
@@ -439,7 +439,7 @@ export const staysDummyData = [
439
439
  instantBook: true,
440
440
  rating: 4.7,
441
441
  ratingCount: 2340,
442
- isFeatured: true,
442
+ sponsored: true,
443
443
  policies: {
444
444
  cancellation: "Free cancellation up to 48 hours before check-in",
445
445
  prepayment: "No prepayment needed - pay at the property",
@@ -485,7 +485,7 @@ export const staysDummyData = [
485
485
  instantBook: true,
486
486
  rating: 4.8,
487
487
  ratingCount: 3120,
488
- isFeatured: false,
488
+ sponsored: false,
489
489
  policies: {
490
490
  cancellation: "Free cancellation up to 48 hours before check-in",
491
491
  prepayment: "No prepayment needed - pay at the property",
@@ -532,7 +532,7 @@ export const staysDummyData = [
532
532
  instantBook: false,
533
533
  rating: 4.9,
534
534
  ratingCount: 145,
535
- isFeatured: true,
535
+ sponsored: true,
536
536
  policies: {
537
537
  cancellation: "Free cancellation up to 48 hours before check-in",
538
538
  prepayment: "No prepayment needed - pay at the property",
@@ -582,7 +582,7 @@ export const staysDummyData = [
582
582
  instantBook: true,
583
583
  rating: 4.9,
584
584
  ratingCount: 456,
585
- isFeatured: true,
585
+ sponsored: true,
586
586
  policies: {
587
587
  cancellation: "Free cancellation up to 48 hours before check-in",
588
588
  prepayment: "No prepayment needed - pay at the property",
@@ -632,7 +632,7 @@ export const staysDummyData = [
632
632
  instantBook: false,
633
633
  rating: 4.95,
634
634
  ratingCount: 289,
635
- isFeatured: true,
635
+ sponsored: true,
636
636
  policies: {
637
637
  cancellation: "Free cancellation up to 48 hours before check-in",
638
638
  prepayment: "No prepayment needed - pay at the property",
@@ -21,7 +21,7 @@ export const storeDummyData = [
21
21
  rating: 4.7,
22
22
  ratingCount: 234,
23
23
  tags: ["trekking", "hiking", "waterproof"],
24
- isFeatured: true,
24
+ sponsored: true,
25
25
  isDigital: false,
26
26
  status: "active",
27
27
  },
@@ -45,7 +45,7 @@ export const storeDummyData = [
45
45
  rating: 4.9,
46
46
  ratingCount: 189,
47
47
  tags: ["travel", "carry-on", "lightweight"],
48
- isFeatured: true,
48
+ sponsored: true,
49
49
  isDigital: false,
50
50
  status: "active",
51
51
  },
@@ -71,7 +71,7 @@ export const storeDummyData = [
71
71
  rating: 4.5,
72
72
  ratingCount: 456,
73
73
  tags: ["daypack", "hiking", "lightweight"],
74
- isFeatured: false,
74
+ sponsored: false,
75
75
  isDigital: false,
76
76
  status: "active",
77
77
  },
@@ -95,7 +95,7 @@ export const storeDummyData = [
95
95
  rating: 4.8,
96
96
  ratingCount: 1203,
97
97
  tags: ["power-bank", "charging", "essential"],
98
- isFeatured: true,
98
+ sponsored: true,
99
99
  isDigital: false,
100
100
  status: "active",
101
101
  },
@@ -118,7 +118,7 @@ export const storeDummyData = [
118
118
  rating: 4.9,
119
119
  ratingCount: 87,
120
120
  tags: ["camera", "adventure", "waterproof", "rental"],
121
- isFeatured: true,
121
+ sponsored: true,
122
122
  isDigital: false,
123
123
  status: "active",
124
124
  },
@@ -142,7 +142,7 @@ export const storeDummyData = [
142
142
  rating: 4.8,
143
143
  ratingCount: 312,
144
144
  tags: ["headphones", "noise-cancelling", "flights"],
145
- isFeatured: false,
145
+ sponsored: false,
146
146
  isDigital: false,
147
147
  status: "active",
148
148
  },
@@ -163,7 +163,7 @@ export const storeDummyData = [
163
163
  rating: 4.6,
164
164
  ratingCount: 778,
165
165
  tags: ["passport", "security", "wallet"],
166
- isFeatured: false,
166
+ sponsored: false,
167
167
  isDigital: false,
168
168
  status: "active",
169
169
  },
@@ -182,7 +182,7 @@ export const storeDummyData = [
182
182
  rating: 4.7,
183
183
  ratingCount: 523,
184
184
  tags: ["organization", "packing", "luggage"],
185
- isFeatured: false,
185
+ sponsored: false,
186
186
  isDigital: false,
187
187
  status: "active",
188
188
  },
@@ -208,7 +208,7 @@ export const storeDummyData = [
208
208
  rating: 4.6,
209
209
  ratingCount: 145,
210
210
  tags: ["tent", "camping", "waterproof", "rental"],
211
- isFeatured: true,
211
+ sponsored: true,
212
212
  isDigital: false,
213
213
  status: "active",
214
214
  },
@@ -233,7 +233,7 @@ export const storeDummyData = [
233
233
  rating: 4.7,
234
234
  ratingCount: 201,
235
235
  tags: ["sleeping-bag", "camping", "cold-weather"],
236
- isFeatured: false,
236
+ sponsored: false,
237
237
  isDigital: false,
238
238
  status: "active",
239
239
  },
@@ -255,7 +255,7 @@ export const storeDummyData = [
255
255
  rating: 4.9,
256
256
  ratingCount: 1040,
257
257
  tags: ["ebook", "guide", "india", "digital", "offbeat"],
258
- isFeatured: true,
258
+ sponsored: true,
259
259
  isDigital: true,
260
260
  status: "active",
261
261
  },
@@ -276,7 +276,7 @@ export const storeDummyData = [
276
276
  rating: 4.8,
277
277
  ratingCount: 723,
278
278
  tags: ["ladakh", "road-trip", "guide", "digital"],
279
- isFeatured: false,
279
+ sponsored: false,
280
280
  isDigital: true,
281
281
  status: "active",
282
282
  },
@@ -299,7 +299,7 @@ export const storeDummyData = [
299
299
  rating: 4.5,
300
300
  ratingCount: 89,
301
301
  tags: ["helmet", "climbing", "safety", "rental"],
302
- isFeatured: false,
302
+ sponsored: false,
303
303
  isDigital: false,
304
304
  status: "active",
305
305
  },
@@ -319,7 +319,7 @@ export const storeDummyData = [
319
319
  rating: 4.7,
320
320
  ratingCount: 334,
321
321
  tags: ["boots", "trekking", "waterproof", "himalaya"],
322
- isFeatured: true,
322
+ sponsored: true,
323
323
  isDigital: false,
324
324
  status: "active",
325
325
  },
@@ -48,7 +48,7 @@ export function hydrateAdventureForm(adventure) {
48
48
  city: adventure.city || "",
49
49
  state: adventure.state || "",
50
50
  address: adventure.address || "",
51
- locationSearchAddress: adventure.locationSearchAddress || adventure.address || "",
51
+ locationSearchAddress: adventure.locationSearchAddress ?? adventure.address ?? "",
52
52
  pincode: adventure.pincode || "",
53
53
  latitude: adventure.latitude != null ? String(adventure.latitude) : "",
54
54
  longitude: adventure.longitude != null ? String(adventure.longitude) : "",
@@ -59,7 +59,7 @@ export function hydrateEventForm(event) {
59
59
  longitude: event.longitude != null
60
60
  ? String(event.longitude)
61
61
  : event.location?.coordinates?.[0]?.toString() || "",
62
- locationAddress: event.locationAddress || event.address || "",
62
+ locationAddress: event.locationAddress ?? event.address ?? "",
63
63
  totalCapacity: String(event.totalCapacity || 100),
64
64
  isFree: !!event.isFree,
65
65
  pricing: {
@@ -51,7 +51,7 @@ export function hydrateRentalForm(rental) {
51
51
  city: rental.city || "",
52
52
  state: rental.state || "",
53
53
  address,
54
- locationSearchAddress: rental.locationSearchAddress || rental.locationAddress || address,
54
+ locationSearchAddress: rental.locationSearchAddress ?? rental.locationAddress ?? address,
55
55
  pincode: rental.pincode || "",
56
56
  mapLink: "",
57
57
  pricing: normalizePricing(rental),
@@ -89,6 +89,6 @@ export function getRentalLocationData(rental) {
89
89
  city: rental.city || "",
90
90
  state: rental.state || "",
91
91
  postalCode: rental.pincode || "",
92
- searchAddress: rental.locationSearchAddress || rental.locationAddress || address,
92
+ searchAddress: rental.locationSearchAddress ?? rental.locationAddress ?? address,
93
93
  };
94
94
  }
@@ -1 +1 @@
1
- {"version":3,"file":"travelPackageData.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/travelPackageData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE3E,KAAK,YAAY,GAAG;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IACpD,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,YAAY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E,MAAM,EAAE,aAAoB,EAAE,gBAAwB,EAAE,SAAS,EAAE,EAAE,aAAa,YA2DrF"}
@@ -22,8 +22,6 @@ export function buildTravelPackageFormData(values, { status, initialValues = nul
22
22
  Object.entries(values).forEach(([key, value]) => {
23
23
  if (!hasChanged(initialValues, key, value))
24
24
  return;
25
- if (value == null)
26
- return;
27
25
  if (key === "questions" && Array.isArray(value)) {
28
26
  appendJsonSequence(formData, key, value, { question: "start", answer: "start" }, { question: "end", answer: "end" });
29
27
  return;
@@ -58,6 +58,8 @@ export interface Adventure {
58
58
  ratingCount?: number;
59
59
  reviewCount?: number;
60
60
  views?: number;
61
+ sponsored?: boolean;
62
+ trendingScore?: number;
61
63
  status: AdventureStatus;
62
64
  draftStep?: number;
63
65
  adminApproval?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"adventure.d.ts","sourceRoot":"","sources":["../../../src/lib/models/adventure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE9F,MAAM,WAAW,aAAa;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,SAAS;IACtB,GAAG,EAAE,MAAM,CAAC;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CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,cAAc,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CACpB"}
@@ -1,6 +1,6 @@
1
1
  export declare const AUTHORIZATION_ROLES: readonly ["user", "host", "hr", "sales", "developer", "customer_support", "admin"];
2
2
  export type AuthorizationRole = (typeof AUTHORIZATION_ROLES)[number] | string;
3
- export declare const AUTHORIZATION_PERMISSIONS: readonly ["roles.read", "roles.manage", "permissions.read", "permissions.manage", "users.read", "users.manage", "hosts.read", "hosts.manage", "staff.read", "staff.manage", "listings.read", "listings.create", "listings.update.own", "listings.delete.own", "listings.moderate", "content.moderate", "creator.skills.verify", "marketplace.read.all", "marketplace.manage", "marketplace.disputes.manage", "marketplace.payments.manage", "analytics.read.all", "opportunities.applications.read", "opportunities.membership_requirements.approve", "bookings.read.own", "bookings.read.host", "bookings.read.all", "bookings.manage.host", "bookings.manage.all", "pricing.read", "pricing.manage.own", "pricing.manage.platform", "discounts.read", "discounts.manage.own", "discounts.manage.platform", "partner_programs.read", "partner_programs.manage", "rewards.read.own", "rewards.read.all", "rewards.manage", "rewards.adjust", "memberships.read.all", "memberships.manage", "host_performance.read.all", "host_performance.manage", "payouts.read", "payouts.record", "platform.settings.read", "platform.settings.manage", "verification.read", "verification.manage", "support.contacts.read", "audit.read", "developer.diagnostics.read", "database.collections.read"];
3
+ export declare const AUTHORIZATION_PERMISSIONS: readonly ["roles.read", "roles.manage", "permissions.read", "permissions.manage", "users.read", "users.manage", "hosts.read", "hosts.manage", "staff.read", "staff.manage", "listings.read", "listings.create", "listings.update.own", "listings.delete.own", "listings.moderate", "content.moderate", "creator.skills.verify", "marketplace.read.all", "marketplace.manage", "marketplace.disputes.manage", "marketplace.payments.manage", "analytics.read.all", "opportunities.applications.read", "opportunities.applications.manage", "opportunities.membership_requirements.approve", "bookings.read.own", "bookings.read.host", "bookings.read.all", "bookings.manage.host", "bookings.manage.all", "pricing.read", "pricing.manage.own", "pricing.manage.platform", "discounts.read", "discounts.manage.own", "discounts.manage.platform", "partner_programs.read", "partner_programs.manage", "rewards.read.own", "rewards.read.all", "rewards.manage", "rewards.adjust", "memberships.read.all", "memberships.manage", "host_performance.read.all", "host_performance.manage", "payouts.read", "payouts.record", "platform.settings.read", "platform.settings.manage", "verification.read", "verification.manage", "support.contacts.read", "audit.read", "developer.diagnostics.read", "database.collections.read"];
4
4
  export type AuthorizationPermission = (typeof AUTHORIZATION_PERMISSIONS)[number] | string;
5
5
  export type BaseAccountType = "user" | "host";
6
6
  export type AccountType = BaseAccountType | "staff";
@@ -19,10 +19,11 @@ export declare const MODERATION_DASHBOARD_PERMISSIONS: readonly ["listings.moder
19
19
  export declare const PAYOUT_DASHBOARD_PERMISSIONS: readonly ["payouts.read", "payouts.record"];
20
20
  export declare const PLATFORM_DASHBOARD_PERMISSIONS: readonly ["platform.settings.read", "platform.settings.manage", "discounts.manage.platform", "partner_programs.read", "partner_programs.manage", "rewards.read.all", "rewards.manage", "memberships.read.all", "memberships.manage", "host_performance.read.all", "host_performance.manage"];
21
21
  export declare const AUTHORIZATION_DASHBOARD_PERMISSIONS: readonly ["roles.read", "roles.manage", "permissions.read", "permissions.manage"];
22
- export declare const ID_APPROVAL_DASHBOARD_PERMISSIONS: readonly ["verification.read", "verification.manage", "users.manage", "hosts.manage", "staff.manage", "opportunities.applications.read"];
22
+ export declare const AUTHORIZATION_MANAGEMENT_PERMISSIONS: readonly ["roles.manage", "permissions.manage"];
23
+ export declare const ID_APPROVAL_DASHBOARD_PERMISSIONS: readonly ["verification.read", "verification.manage", "users.manage", "hosts.manage", "staff.manage"];
23
24
  export declare const ADMIN_ROUTE_PERMISSION_GROUPS: {
24
25
  readonly applications: readonly ["opportunities.applications.read"];
25
- readonly idApproval: readonly ["verification.read", "verification.manage", "users.manage", "hosts.manage", "staff.manage", "opportunities.applications.read"];
26
+ readonly idApproval: readonly ["verification.read", "verification.manage", "users.manage", "hosts.manage", "staff.manage"];
26
27
  readonly authorization: readonly ["roles.read", "roles.manage", "permissions.read", "permissions.manage"];
27
28
  readonly listingModeration: readonly ["listings.moderate"];
28
29
  readonly contentModeration: readonly ["content.moderate"];
@@ -107,8 +108,9 @@ export declare function canCreateListing(actor: PermissionAwareActor | null | un
107
108
  export declare function canCreateListingForHost(actor: PermissionAwareActor | null | undefined): boolean;
108
109
  export declare function canAccessListingEditor(actor: PermissionAwareActor | null | undefined): boolean;
109
110
  export declare function canAccessOpportunityApplicationReview(actor: PermissionAwareActor | null | undefined): boolean;
111
+ export declare function canManageOpportunityApplicationReview(actor: PermissionAwareActor | null | undefined): boolean;
110
112
  export declare function getOpportunityApplicationApprovalStatus(actor: PermissionAwareActor | null | undefined): "adminApproved" | "approved";
111
- export declare function getAdminDashboardRoutePermissions(pathname: string): readonly ["listings.moderate"] | readonly ["content.moderate"] | readonly ["payouts.read", "payouts.record"] | readonly ["roles.read", "roles.manage", "permissions.read", "permissions.manage"] | readonly ["verification.read", "verification.manage", "users.manage", "hosts.manage", "staff.manage", "opportunities.applications.read"] | readonly ["opportunities.applications.read"] | readonly ["bookings.read.all", "bookings.manage.all"] | readonly ["itinerary_orders.read.all", "itinerary_orders.fulfill", "itinerary_orders.refunds.manage"] | readonly [];
113
+ export declare function getAdminDashboardRoutePermissions(pathname: string): readonly ["listings.moderate"] | readonly ["content.moderate"] | readonly ["payouts.read", "payouts.record"] | readonly ["roles.read", "roles.manage", "permissions.read", "permissions.manage"] | readonly ["verification.read", "verification.manage", "users.manage", "hosts.manage", "staff.manage"] | readonly ["opportunities.applications.read"] | readonly ["bookings.read.all", "bookings.manage.all"] | readonly ["itinerary_orders.read.all", "itinerary_orders.fulfill", "itinerary_orders.refunds.manage"] | readonly [];
112
114
  export declare function hasAdminDashboardRouteAccess(actor: PermissionAwareActor | null | undefined, pathname: string): boolean;
113
115
  export declare function getHostDashboardRoutePermissions(pathname: string): readonly ["listings.moderate"] | readonly ["opportunities.applications.read"] | readonly ["bookings.read.all", "bookings.manage.all"] | readonly [] | readonly ["listings.create"];
114
116
  export declare function hasHostDashboardRouteAccess(actor: PermissionAwareActor | null | undefined, pathname: string): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../../src/lib/models/authorization.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,oFAQtB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAE9E,eAAO,MAAM,yBAAyB,0tCAwD5B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAE1F,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,CAAC;AAC9C,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,OAAO,CAAC;AAEpD,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC9B,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,CAAC;IAC1C,eAAe,CAAC,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,CAAC;IAClD,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,2BAA2B,u6BA2C9B,CAAC;AAEX,eAAO,MAAM,wCAAwC,gCAAiC,CAAC;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