@guardian/support-dotcom-components 7.10.1 → 8.0.0

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 (33) hide show
  1. package/dist/index.esm.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/shared/lib/geolocation.d.ts +20 -10
  4. package/dist/shared/lib/geolocation.d.ts.map +1 -1
  5. package/dist/shared/types/abTests/banner.d.ts +206 -2250
  6. package/dist/shared/types/abTests/banner.d.ts.map +1 -1
  7. package/dist/shared/types/abTests/epic.d.ts +156 -1560
  8. package/dist/shared/types/abTests/epic.d.ts.map +1 -1
  9. package/dist/shared/types/abTests/gutter.d.ts +80 -369
  10. package/dist/shared/types/abTests/gutter.d.ts.map +1 -1
  11. package/dist/shared/types/abTests/header.d.ts +95 -467
  12. package/dist/shared/types/abTests/header.d.ts.map +1 -1
  13. package/dist/shared/types/abTests/shared.d.ts +89 -155
  14. package/dist/shared/types/abTests/shared.d.ts.map +1 -1
  15. package/dist/shared/types/props/banner.d.ts +144 -1675
  16. package/dist/shared/types/props/banner.d.ts.map +1 -1
  17. package/dist/shared/types/props/choiceCards.d.ts +56 -586
  18. package/dist/shared/types/props/choiceCards.d.ts.map +1 -1
  19. package/dist/shared/types/props/design.d.ts +54 -514
  20. package/dist/shared/types/props/design.d.ts.map +1 -1
  21. package/dist/shared/types/props/epic.d.ts +192 -2501
  22. package/dist/shared/types/props/epic.d.ts.map +1 -1
  23. package/dist/shared/types/props/gutter.d.ts +25 -200
  24. package/dist/shared/types/props/gutter.d.ts.map +1 -1
  25. package/dist/shared/types/props/header.d.ts +29 -230
  26. package/dist/shared/types/props/header.d.ts.map +1 -1
  27. package/dist/shared/types/props/shared.d.ts +55 -212
  28. package/dist/shared/types/props/shared.d.ts.map +1 -1
  29. package/dist/shared/types/purchaseInfo.d.ts +11 -2
  30. package/dist/shared/types/purchaseInfo.d.ts.map +1 -1
  31. package/dist/shared/types/targeting/shared.d.ts +5 -15
  32. package/dist/shared/types/targeting/shared.d.ts.map +1 -1
  33. package/package.json +4 -4
@@ -14,109 +14,49 @@ export interface EpicProps {
14
14
  hasConsentForArticleCount?: boolean;
15
15
  stage?: Stage;
16
16
  }
17
- export declare const contributionFrequencySchema: z.ZodEnum<["ONE_OFF", "MONTHLY", "ANNUAL"]>;
17
+ export declare const contributionFrequencySchema: z.ZodEnum<{
18
+ ONE_OFF: "ONE_OFF";
19
+ MONTHLY: "MONTHLY";
20
+ ANNUAL: "ANNUAL";
21
+ }>;
18
22
  export declare const variantSchema: z.ZodObject<{
19
23
  name: z.ZodString;
20
24
  heading: z.ZodOptional<z.ZodString>;
21
- paragraphs: z.ZodArray<z.ZodString, "many">;
25
+ paragraphs: z.ZodArray<z.ZodString>;
22
26
  highlightedText: z.ZodOptional<z.ZodString>;
23
27
  tickerSettings: z.ZodOptional<z.ZodObject<{
24
28
  currencySymbol: z.ZodString;
25
29
  copy: z.ZodObject<{
26
30
  countLabel: z.ZodString;
27
31
  goalCopy: z.ZodOptional<z.ZodString>;
28
- }, "strip", z.ZodTypeAny, {
29
- countLabel: string;
30
- goalCopy?: string | undefined;
31
- }, {
32
- countLabel: string;
33
- goalCopy?: string | undefined;
32
+ }, z.core.$strip>;
33
+ name: z.ZodEnum<{
34
+ global: "global";
35
+ US: "US";
36
+ AU: "AU";
34
37
  }>;
35
- name: z.ZodEnum<["US", "AU", "global"]>;
36
38
  tickerData: z.ZodOptional<z.ZodObject<{
37
39
  total: z.ZodNumber;
38
40
  goal: z.ZodNumber;
39
- }, "strip", z.ZodTypeAny, {
40
- total: number;
41
- goal: number;
42
- }, {
43
- total: number;
44
- goal: number;
45
- }>>;
46
- }, "strip", z.ZodTypeAny, {
47
- name: "global" | "US" | "AU";
48
- copy: {
49
- countLabel: string;
50
- goalCopy?: string | undefined;
51
- };
52
- currencySymbol: string;
53
- tickerData?: {
54
- total: number;
55
- goal: number;
56
- } | undefined;
57
- }, {
58
- name: "global" | "US" | "AU";
59
- copy: {
60
- countLabel: string;
61
- goalCopy?: string | undefined;
62
- };
63
- currencySymbol: string;
64
- tickerData?: {
65
- total: number;
66
- goal: number;
67
- } | undefined;
68
- }>>;
41
+ }, z.core.$strip>>;
42
+ }, z.core.$strip>>;
69
43
  cta: z.ZodOptional<z.ZodObject<{
70
44
  text: z.ZodString;
71
45
  baseUrl: z.ZodString;
72
- }, "strip", z.ZodTypeAny, {
73
- text: string;
74
- baseUrl: string;
75
- }, {
76
- text: string;
77
- baseUrl: string;
78
- }>>;
79
- secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
46
+ }, z.core.$strip>>;
47
+ secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
80
48
  type: z.ZodLiteral<import("./shared").SecondaryCtaType.Custom>;
81
49
  cta: z.ZodObject<{
82
50
  text: z.ZodString;
83
51
  baseUrl: z.ZodString;
84
- }, "strip", z.ZodTypeAny, {
85
- text: string;
86
- baseUrl: string;
87
- }, {
88
- text: string;
89
- baseUrl: string;
90
- }>;
91
- }, "strip", z.ZodTypeAny, {
92
- type: import("./shared").SecondaryCtaType.Custom;
93
- cta: {
94
- text: string;
95
- baseUrl: string;
96
- };
97
- }, {
98
- type: import("./shared").SecondaryCtaType.Custom;
99
- cta: {
100
- text: string;
101
- baseUrl: string;
102
- };
103
- }>, z.ZodObject<{
52
+ }, z.core.$strip>;
53
+ }, z.core.$strip>, z.ZodObject<{
104
54
  type: z.ZodLiteral<import("./shared").SecondaryCtaType.ContributionsReminder>;
105
- }, "strip", z.ZodTypeAny, {
106
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
107
- }, {
108
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
109
- }>]>>;
55
+ }, z.core.$strip>], "type">>;
110
56
  newsletterSignup: z.ZodOptional<z.ZodObject<{
111
57
  newsletterId: z.ZodString;
112
58
  successDescription: z.ZodString;
113
- }, "strip", z.ZodTypeAny, {
114
- newsletterId: string;
115
- successDescription: string;
116
- }, {
117
- newsletterId: string;
118
- successDescription: string;
119
- }>>;
59
+ }, z.core.$strip>>;
120
60
  image: z.ZodOptional<z.ZodObject<{
121
61
  mainUrl: z.ZodString;
122
62
  mobileUrl: z.ZodOptional<z.ZodString>;
@@ -125,63 +65,26 @@ export declare const variantSchema: z.ZodObject<{
125
65
  leftColUrl: z.ZodOptional<z.ZodString>;
126
66
  wideUrl: z.ZodOptional<z.ZodString>;
127
67
  altText: z.ZodString;
128
- }, "strip", z.ZodTypeAny, {
129
- altText: string;
130
- mainUrl: string;
131
- mobileUrl?: string | undefined;
132
- tabletUrl?: string | undefined;
133
- desktopUrl?: string | undefined;
134
- leftColUrl?: string | undefined;
135
- wideUrl?: string | undefined;
136
- }, {
137
- altText: string;
138
- mainUrl: string;
139
- mobileUrl?: string | undefined;
140
- tabletUrl?: string | undefined;
141
- desktopUrl?: string | undefined;
142
- leftColUrl?: string | undefined;
143
- wideUrl?: string | undefined;
144
- }>>;
68
+ }, z.core.$strip>>;
145
69
  showReminderFields: z.ZodOptional<z.ZodObject<{
146
70
  reminderCta: z.ZodString;
147
71
  reminderLabel: z.ZodString;
148
72
  reminderPeriod: z.ZodString;
149
- }, "strip", z.ZodTypeAny, {
150
- reminderCta: string;
151
- reminderLabel: string;
152
- reminderPeriod: string;
153
- }, {
154
- reminderCta: string;
155
- reminderLabel: string;
156
- reminderPeriod: string;
157
- }>>;
73
+ }, z.core.$strip>>;
158
74
  separateArticleCount: z.ZodOptional<z.ZodObject<{
159
75
  type: z.ZodLiteral<"above">;
160
76
  copy: z.ZodOptional<z.ZodString>;
161
- countType: z.ZodOptional<z.ZodEnum<["for52Weeks", "forTargetedWeeks"]>>;
162
- }, "strip", z.ZodTypeAny, {
163
- type: "above";
164
- copy?: string | undefined;
165
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
166
- }, {
167
- type: "above";
168
- copy?: string | undefined;
169
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
170
- }>>;
171
- promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
77
+ countType: z.ZodOptional<z.ZodEnum<{
78
+ for52Weeks: "for52Weeks";
79
+ forTargetedWeeks: "forTargetedWeeks";
80
+ }>>;
81
+ }, z.core.$strip>>;
82
+ promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
172
83
  maxViews: z.ZodOptional<z.ZodObject<{
173
84
  maxViewsCount: z.ZodNumber;
174
85
  maxViewsDays: z.ZodNumber;
175
86
  minDaysBetweenViews: z.ZodNumber;
176
- }, "strip", z.ZodTypeAny, {
177
- maxViewsCount: number;
178
- maxViewsDays: number;
179
- minDaysBetweenViews: number;
180
- }, {
181
- maxViewsCount: number;
182
- maxViewsDays: number;
183
- minDaysBetweenViews: number;
184
- }>>;
87
+ }, z.core.$strip>>;
185
88
  showSignInLink: z.ZodOptional<z.ZodBoolean>;
186
89
  bylineWithImage: z.ZodOptional<z.ZodObject<{
187
90
  name: z.ZodString;
@@ -194,1075 +97,153 @@ export declare const variantSchema: z.ZodObject<{
194
97
  leftColUrl: z.ZodOptional<z.ZodString>;
195
98
  wideUrl: z.ZodOptional<z.ZodString>;
196
99
  altText: z.ZodString;
197
- }, "strip", z.ZodTypeAny, {
198
- altText: string;
199
- mainUrl: string;
200
- mobileUrl?: string | undefined;
201
- tabletUrl?: string | undefined;
202
- desktopUrl?: string | undefined;
203
- leftColUrl?: string | undefined;
204
- wideUrl?: string | undefined;
205
- }, {
206
- altText: string;
207
- mainUrl: string;
208
- mobileUrl?: string | undefined;
209
- tabletUrl?: string | undefined;
210
- desktopUrl?: string | undefined;
211
- leftColUrl?: string | undefined;
212
- wideUrl?: string | undefined;
213
- }>>;
214
- }, "strip", z.ZodTypeAny, {
215
- name: string;
216
- description?: string | undefined;
217
- headshot?: {
218
- altText: string;
219
- mainUrl: string;
220
- mobileUrl?: string | undefined;
221
- tabletUrl?: string | undefined;
222
- desktopUrl?: string | undefined;
223
- leftColUrl?: string | undefined;
224
- wideUrl?: string | undefined;
225
- } | undefined;
226
- }, {
227
- name: string;
228
- description?: string | undefined;
229
- headshot?: {
230
- altText: string;
231
- mainUrl: string;
232
- mobileUrl?: string | undefined;
233
- tabletUrl?: string | undefined;
234
- desktopUrl?: string | undefined;
235
- leftColUrl?: string | undefined;
236
- wideUrl?: string | undefined;
237
- } | undefined;
238
- }>>;
100
+ }, z.core.$strip>>;
101
+ }, z.core.$strip>>;
239
102
  showChoiceCards: z.ZodOptional<z.ZodBoolean>;
240
103
  choiceCardsSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
241
104
  choiceCards: z.ZodArray<z.ZodObject<{
242
- product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
105
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
243
106
  supportTier: z.ZodLiteral<"Contribution">;
244
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
245
- }, "strip", z.ZodTypeAny, {
246
- supportTier: "Contribution";
247
- ratePlan: "Monthly" | "Annual";
248
- }, {
249
- supportTier: "Contribution";
250
- ratePlan: "Monthly" | "Annual";
251
- }>, z.ZodObject<{
107
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
108
+ }, z.core.$strip>, z.ZodObject<{
252
109
  supportTier: z.ZodLiteral<"SupporterPlus">;
253
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
254
- }, "strip", z.ZodTypeAny, {
255
- supportTier: "SupporterPlus";
256
- ratePlan: "Monthly" | "Annual";
257
- }, {
258
- supportTier: "SupporterPlus";
259
- ratePlan: "Monthly" | "Annual";
260
- }>, z.ZodObject<{
110
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
111
+ }, z.core.$strip>, z.ZodObject<{
261
112
  supportTier: z.ZodLiteral<"OneOff">;
262
- }, "strip", z.ZodTypeAny, {
263
- supportTier: "OneOff";
264
- }, {
265
- supportTier: "OneOff";
266
- }>]>;
113
+ }, z.core.$strip>], "supportTier">;
267
114
  label: z.ZodString;
268
115
  isDefault: z.ZodBoolean;
269
116
  benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
117
  benefits: z.ZodArray<z.ZodObject<{
271
118
  copy: z.ZodString;
272
- }, "strip", z.ZodTypeAny, {
273
- copy: string;
274
- }, {
275
- copy: string;
276
- }>, "many">;
119
+ }, z.core.$strip>>;
277
120
  pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
278
121
  copy: z.ZodString;
279
122
  textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
280
- r: z.ZodEffects<z.ZodString, string, string>;
281
- g: z.ZodEffects<z.ZodString, string, string>;
282
- b: z.ZodEffects<z.ZodString, string, string>;
123
+ r: z.ZodString;
124
+ g: z.ZodString;
125
+ b: z.ZodString;
283
126
  kind: z.ZodLiteral<"hex">;
284
- }, "strip", z.ZodTypeAny, {
285
- r: string;
286
- b: string;
287
- g: string;
288
- kind: "hex";
289
- }, {
290
- r: string;
291
- b: string;
292
- g: string;
293
- kind: "hex";
294
- }>>>;
127
+ }, z.core.$strip>>>;
295
128
  backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
296
- r: z.ZodEffects<z.ZodString, string, string>;
297
- g: z.ZodEffects<z.ZodString, string, string>;
298
- b: z.ZodEffects<z.ZodString, string, string>;
129
+ r: z.ZodString;
130
+ g: z.ZodString;
131
+ b: z.ZodString;
299
132
  kind: z.ZodLiteral<"hex">;
300
- }, "strip", z.ZodTypeAny, {
301
- r: string;
302
- b: string;
303
- g: string;
304
- kind: "hex";
305
- }, {
306
- r: string;
307
- b: string;
308
- g: string;
309
- kind: "hex";
310
- }>>>;
311
- }, "strip", z.ZodTypeAny, {
312
- copy: string;
313
- textColour?: {
314
- r: string;
315
- b: string;
316
- g: string;
317
- kind: "hex";
318
- } | null | undefined;
319
- backgroundColour?: {
320
- r: string;
321
- b: string;
322
- g: string;
323
- kind: "hex";
324
- } | null | undefined;
325
- }, {
326
- copy: string;
327
- textColour?: {
328
- r: string;
329
- b: string;
330
- g: string;
331
- kind: "hex";
332
- } | null | undefined;
333
- backgroundColour?: {
334
- r: string;
335
- b: string;
336
- g: string;
337
- kind: "hex";
338
- } | null | undefined;
339
- }>>>;
340
- destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
341
- }, "strip", z.ZodTypeAny, {
342
- product: {
343
- supportTier: "Contribution";
344
- ratePlan: "Monthly" | "Annual";
345
- } | {
346
- supportTier: "SupporterPlus";
347
- ratePlan: "Monthly" | "Annual";
348
- } | {
349
- supportTier: "OneOff";
350
- };
351
- label: string;
352
- isDefault: boolean;
353
- benefits: {
354
- copy: string;
355
- }[];
356
- benefitsLabel?: string | null | undefined;
357
- pill?: {
358
- copy: string;
359
- textColour?: {
360
- r: string;
361
- b: string;
362
- g: string;
363
- kind: "hex";
364
- } | null | undefined;
365
- backgroundColour?: {
366
- r: string;
367
- b: string;
368
- g: string;
369
- kind: "hex";
370
- } | null | undefined;
371
- } | null | undefined;
372
- destination?: "LandingPage" | "Checkout" | null | undefined;
373
- }, {
374
- product: {
375
- supportTier: "Contribution";
376
- ratePlan: "Monthly" | "Annual";
377
- } | {
378
- supportTier: "SupporterPlus";
379
- ratePlan: "Monthly" | "Annual";
380
- } | {
381
- supportTier: "OneOff";
382
- };
383
- label: string;
384
- isDefault: boolean;
385
- benefits: {
386
- copy: string;
387
- }[];
388
- benefitsLabel?: string | null | undefined;
389
- pill?: {
390
- copy: string;
391
- textColour?: {
392
- r: string;
393
- b: string;
394
- g: string;
395
- kind: "hex";
396
- } | null | undefined;
397
- backgroundColour?: {
398
- r: string;
399
- b: string;
400
- g: string;
401
- kind: "hex";
402
- } | null | undefined;
403
- } | null | undefined;
404
- destination?: "LandingPage" | "Checkout" | null | undefined;
405
- }>, "many">;
133
+ }, z.core.$strip>>>;
134
+ }, z.core.$strip>>>;
135
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
136
+ }, z.core.$strip>>;
406
137
  mobileChoiceCards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
407
- product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
138
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
408
139
  supportTier: z.ZodLiteral<"Contribution">;
409
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
410
- }, "strip", z.ZodTypeAny, {
411
- supportTier: "Contribution";
412
- ratePlan: "Monthly" | "Annual";
413
- }, {
414
- supportTier: "Contribution";
415
- ratePlan: "Monthly" | "Annual";
416
- }>, z.ZodObject<{
140
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
141
+ }, z.core.$strip>, z.ZodObject<{
417
142
  supportTier: z.ZodLiteral<"SupporterPlus">;
418
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
419
- }, "strip", z.ZodTypeAny, {
420
- supportTier: "SupporterPlus";
421
- ratePlan: "Monthly" | "Annual";
422
- }, {
423
- supportTier: "SupporterPlus";
424
- ratePlan: "Monthly" | "Annual";
425
- }>, z.ZodObject<{
143
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
144
+ }, z.core.$strip>, z.ZodObject<{
426
145
  supportTier: z.ZodLiteral<"OneOff">;
427
- }, "strip", z.ZodTypeAny, {
428
- supportTier: "OneOff";
429
- }, {
430
- supportTier: "OneOff";
431
- }>]>;
146
+ }, z.core.$strip>], "supportTier">;
432
147
  label: z.ZodString;
433
148
  isDefault: z.ZodBoolean;
434
149
  benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
435
150
  benefits: z.ZodArray<z.ZodObject<{
436
151
  copy: z.ZodString;
437
- }, "strip", z.ZodTypeAny, {
438
- copy: string;
439
- }, {
440
- copy: string;
441
- }>, "many">;
152
+ }, z.core.$strip>>;
442
153
  pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
443
154
  copy: z.ZodString;
444
155
  textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
445
- r: z.ZodEffects<z.ZodString, string, string>;
446
- g: z.ZodEffects<z.ZodString, string, string>;
447
- b: z.ZodEffects<z.ZodString, string, string>;
156
+ r: z.ZodString;
157
+ g: z.ZodString;
158
+ b: z.ZodString;
448
159
  kind: z.ZodLiteral<"hex">;
449
- }, "strip", z.ZodTypeAny, {
450
- r: string;
451
- b: string;
452
- g: string;
453
- kind: "hex";
454
- }, {
455
- r: string;
456
- b: string;
457
- g: string;
458
- kind: "hex";
459
- }>>>;
160
+ }, z.core.$strip>>>;
460
161
  backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
461
- r: z.ZodEffects<z.ZodString, string, string>;
462
- g: z.ZodEffects<z.ZodString, string, string>;
463
- b: z.ZodEffects<z.ZodString, string, string>;
162
+ r: z.ZodString;
163
+ g: z.ZodString;
164
+ b: z.ZodString;
464
165
  kind: z.ZodLiteral<"hex">;
465
- }, "strip", z.ZodTypeAny, {
466
- r: string;
467
- b: string;
468
- g: string;
469
- kind: "hex";
470
- }, {
471
- r: string;
472
- b: string;
473
- g: string;
474
- kind: "hex";
475
- }>>>;
476
- }, "strip", z.ZodTypeAny, {
477
- copy: string;
478
- textColour?: {
479
- r: string;
480
- b: string;
481
- g: string;
482
- kind: "hex";
483
- } | null | undefined;
484
- backgroundColour?: {
485
- r: string;
486
- b: string;
487
- g: string;
488
- kind: "hex";
489
- } | null | undefined;
490
- }, {
491
- copy: string;
492
- textColour?: {
493
- r: string;
494
- b: string;
495
- g: string;
496
- kind: "hex";
497
- } | null | undefined;
498
- backgroundColour?: {
499
- r: string;
500
- b: string;
501
- g: string;
502
- kind: "hex";
503
- } | null | undefined;
504
- }>>>;
505
- destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
506
- }, "strip", z.ZodTypeAny, {
507
- product: {
508
- supportTier: "Contribution";
509
- ratePlan: "Monthly" | "Annual";
510
- } | {
511
- supportTier: "SupporterPlus";
512
- ratePlan: "Monthly" | "Annual";
513
- } | {
514
- supportTier: "OneOff";
515
- };
516
- label: string;
517
- isDefault: boolean;
518
- benefits: {
519
- copy: string;
520
- }[];
521
- benefitsLabel?: string | null | undefined;
522
- pill?: {
523
- copy: string;
524
- textColour?: {
525
- r: string;
526
- b: string;
527
- g: string;
528
- kind: "hex";
529
- } | null | undefined;
530
- backgroundColour?: {
531
- r: string;
532
- b: string;
533
- g: string;
534
- kind: "hex";
535
- } | null | undefined;
536
- } | null | undefined;
537
- destination?: "LandingPage" | "Checkout" | null | undefined;
538
- }, {
539
- product: {
540
- supportTier: "Contribution";
541
- ratePlan: "Monthly" | "Annual";
542
- } | {
543
- supportTier: "SupporterPlus";
544
- ratePlan: "Monthly" | "Annual";
545
- } | {
546
- supportTier: "OneOff";
547
- };
548
- label: string;
549
- isDefault: boolean;
550
- benefits: {
551
- copy: string;
552
- }[];
553
- benefitsLabel?: string | null | undefined;
554
- pill?: {
555
- copy: string;
556
- textColour?: {
557
- r: string;
558
- b: string;
559
- g: string;
560
- kind: "hex";
561
- } | null | undefined;
562
- backgroundColour?: {
563
- r: string;
564
- b: string;
565
- g: string;
566
- kind: "hex";
567
- } | null | undefined;
568
- } | null | undefined;
569
- destination?: "LandingPage" | "Checkout" | null | undefined;
570
- }>, "many">>>;
571
- }, "strip", z.ZodTypeAny, {
572
- choiceCards: {
573
- product: {
574
- supportTier: "Contribution";
575
- ratePlan: "Monthly" | "Annual";
576
- } | {
577
- supportTier: "SupporterPlus";
578
- ratePlan: "Monthly" | "Annual";
579
- } | {
580
- supportTier: "OneOff";
581
- };
582
- label: string;
583
- isDefault: boolean;
584
- benefits: {
585
- copy: string;
586
- }[];
587
- benefitsLabel?: string | null | undefined;
588
- pill?: {
589
- copy: string;
590
- textColour?: {
591
- r: string;
592
- b: string;
593
- g: string;
594
- kind: "hex";
595
- } | null | undefined;
596
- backgroundColour?: {
597
- r: string;
598
- b: string;
599
- g: string;
600
- kind: "hex";
601
- } | null | undefined;
602
- } | null | undefined;
603
- destination?: "LandingPage" | "Checkout" | null | undefined;
604
- }[];
605
- mobileChoiceCards?: {
606
- product: {
607
- supportTier: "Contribution";
608
- ratePlan: "Monthly" | "Annual";
609
- } | {
610
- supportTier: "SupporterPlus";
611
- ratePlan: "Monthly" | "Annual";
612
- } | {
613
- supportTier: "OneOff";
614
- };
615
- label: string;
616
- isDefault: boolean;
617
- benefits: {
618
- copy: string;
619
- }[];
620
- benefitsLabel?: string | null | undefined;
621
- pill?: {
622
- copy: string;
623
- textColour?: {
624
- r: string;
625
- b: string;
626
- g: string;
627
- kind: "hex";
628
- } | null | undefined;
629
- backgroundColour?: {
630
- r: string;
631
- b: string;
632
- g: string;
633
- kind: "hex";
634
- } | null | undefined;
635
- } | null | undefined;
636
- destination?: "LandingPage" | "Checkout" | null | undefined;
637
- }[] | null | undefined;
638
- }, {
639
- choiceCards: {
640
- product: {
641
- supportTier: "Contribution";
642
- ratePlan: "Monthly" | "Annual";
643
- } | {
644
- supportTier: "SupporterPlus";
645
- ratePlan: "Monthly" | "Annual";
646
- } | {
647
- supportTier: "OneOff";
648
- };
649
- label: string;
650
- isDefault: boolean;
651
- benefits: {
652
- copy: string;
653
- }[];
654
- benefitsLabel?: string | null | undefined;
655
- pill?: {
656
- copy: string;
657
- textColour?: {
658
- r: string;
659
- b: string;
660
- g: string;
661
- kind: "hex";
662
- } | null | undefined;
663
- backgroundColour?: {
664
- r: string;
665
- b: string;
666
- g: string;
667
- kind: "hex";
668
- } | null | undefined;
669
- } | null | undefined;
670
- destination?: "LandingPage" | "Checkout" | null | undefined;
671
- }[];
672
- mobileChoiceCards?: {
673
- product: {
674
- supportTier: "Contribution";
675
- ratePlan: "Monthly" | "Annual";
676
- } | {
677
- supportTier: "SupporterPlus";
678
- ratePlan: "Monthly" | "Annual";
679
- } | {
680
- supportTier: "OneOff";
681
- };
682
- label: string;
683
- isDefault: boolean;
684
- benefits: {
685
- copy: string;
686
- }[];
687
- benefitsLabel?: string | null | undefined;
688
- pill?: {
689
- copy: string;
690
- textColour?: {
691
- r: string;
692
- b: string;
693
- g: string;
694
- kind: "hex";
695
- } | null | undefined;
696
- backgroundColour?: {
697
- r: string;
698
- b: string;
699
- g: string;
700
- kind: "hex";
701
- } | null | undefined;
702
- } | null | undefined;
703
- destination?: "LandingPage" | "Checkout" | null | undefined;
704
- }[] | null | undefined;
705
- }>>>;
166
+ }, z.core.$strip>>>;
167
+ }, z.core.$strip>>>;
168
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
169
+ }, z.core.$strip>>>>;
170
+ }, z.core.$strip>>>;
706
171
  choiceCardAmounts: z.ZodOptional<z.ZodObject<{
707
172
  testName: z.ZodString;
708
173
  variantName: z.ZodString;
709
- defaultContributionType: z.ZodEnum<["ONE_OFF", "MONTHLY", "ANNUAL"]>;
710
- displayContributionType: z.ZodArray<z.ZodEnum<["ONE_OFF", "MONTHLY", "ANNUAL"]>, "many">;
174
+ defaultContributionType: z.ZodEnum<{
175
+ ONE_OFF: "ONE_OFF";
176
+ MONTHLY: "MONTHLY";
177
+ ANNUAL: "ANNUAL";
178
+ }>;
179
+ displayContributionType: z.ZodArray<z.ZodEnum<{
180
+ ONE_OFF: "ONE_OFF";
181
+ MONTHLY: "MONTHLY";
182
+ ANNUAL: "ANNUAL";
183
+ }>>;
711
184
  amountsCardData: z.ZodObject<{
712
185
  ONE_OFF: z.ZodObject<{
713
- amounts: z.ZodArray<z.ZodNumber, "many">;
186
+ amounts: z.ZodArray<z.ZodNumber>;
714
187
  defaultAmount: z.ZodNumber;
715
188
  hideChooseYourAmount: z.ZodOptional<z.ZodBoolean>;
716
- }, "strip", z.ZodTypeAny, {
717
- amounts: number[];
718
- defaultAmount: number;
719
- hideChooseYourAmount?: boolean | undefined;
720
- }, {
721
- amounts: number[];
722
- defaultAmount: number;
723
- hideChooseYourAmount?: boolean | undefined;
724
- }>;
189
+ }, z.core.$strip>;
725
190
  MONTHLY: z.ZodObject<{
726
- amounts: z.ZodArray<z.ZodNumber, "many">;
191
+ amounts: z.ZodArray<z.ZodNumber>;
727
192
  defaultAmount: z.ZodNumber;
728
193
  hideChooseYourAmount: z.ZodOptional<z.ZodBoolean>;
729
- }, "strip", z.ZodTypeAny, {
730
- amounts: number[];
731
- defaultAmount: number;
732
- hideChooseYourAmount?: boolean | undefined;
733
- }, {
734
- amounts: number[];
735
- defaultAmount: number;
736
- hideChooseYourAmount?: boolean | undefined;
737
- }>;
194
+ }, z.core.$strip>;
738
195
  ANNUAL: z.ZodObject<{
739
- amounts: z.ZodArray<z.ZodNumber, "many">;
196
+ amounts: z.ZodArray<z.ZodNumber>;
740
197
  defaultAmount: z.ZodNumber;
741
198
  hideChooseYourAmount: z.ZodOptional<z.ZodBoolean>;
742
- }, "strip", z.ZodTypeAny, {
743
- amounts: number[];
744
- defaultAmount: number;
745
- hideChooseYourAmount?: boolean | undefined;
746
- }, {
747
- amounts: number[];
748
- defaultAmount: number;
749
- hideChooseYourAmount?: boolean | undefined;
750
- }>;
751
- }, "strip", z.ZodTypeAny, {
752
- ONE_OFF: {
753
- amounts: number[];
754
- defaultAmount: number;
755
- hideChooseYourAmount?: boolean | undefined;
756
- };
757
- MONTHLY: {
758
- amounts: number[];
759
- defaultAmount: number;
760
- hideChooseYourAmount?: boolean | undefined;
761
- };
762
- ANNUAL: {
763
- amounts: number[];
764
- defaultAmount: number;
765
- hideChooseYourAmount?: boolean | undefined;
766
- };
767
- }, {
768
- ONE_OFF: {
769
- amounts: number[];
770
- defaultAmount: number;
771
- hideChooseYourAmount?: boolean | undefined;
772
- };
773
- MONTHLY: {
774
- amounts: number[];
775
- defaultAmount: number;
776
- hideChooseYourAmount?: boolean | undefined;
777
- };
778
- ANNUAL: {
779
- amounts: number[];
780
- defaultAmount: number;
781
- hideChooseYourAmount?: boolean | undefined;
782
- };
783
- }>;
784
- }, "strip", z.ZodTypeAny, {
785
- testName: string;
786
- variantName: string;
787
- defaultContributionType: "ONE_OFF" | "MONTHLY" | "ANNUAL";
788
- displayContributionType: ("ONE_OFF" | "MONTHLY" | "ANNUAL")[];
789
- amountsCardData: {
790
- ONE_OFF: {
791
- amounts: number[];
792
- defaultAmount: number;
793
- hideChooseYourAmount?: boolean | undefined;
794
- };
795
- MONTHLY: {
796
- amounts: number[];
797
- defaultAmount: number;
798
- hideChooseYourAmount?: boolean | undefined;
799
- };
800
- ANNUAL: {
801
- amounts: number[];
802
- defaultAmount: number;
803
- hideChooseYourAmount?: boolean | undefined;
804
- };
805
- };
806
- }, {
807
- testName: string;
808
- variantName: string;
809
- defaultContributionType: "ONE_OFF" | "MONTHLY" | "ANNUAL";
810
- displayContributionType: ("ONE_OFF" | "MONTHLY" | "ANNUAL")[];
811
- amountsCardData: {
812
- ONE_OFF: {
813
- amounts: number[];
814
- defaultAmount: number;
815
- hideChooseYourAmount?: boolean | undefined;
816
- };
817
- MONTHLY: {
818
- amounts: number[];
819
- defaultAmount: number;
820
- hideChooseYourAmount?: boolean | undefined;
821
- };
822
- ANNUAL: {
823
- amounts: number[];
824
- defaultAmount: number;
825
- hideChooseYourAmount?: boolean | undefined;
826
- };
827
- };
199
+ }, z.core.$strip>;
200
+ }, z.core.$strip>;
201
+ }, z.core.$strip>>;
202
+ defaultChoiceCardFrequency: z.ZodOptional<z.ZodEnum<{
203
+ ONE_OFF: "ONE_OFF";
204
+ MONTHLY: "MONTHLY";
205
+ ANNUAL: "ANNUAL";
828
206
  }>>;
829
- defaultChoiceCardFrequency: z.ZodOptional<z.ZodEnum<["ONE_OFF", "MONTHLY", "ANNUAL"]>>;
830
- }, "strip", z.ZodTypeAny, {
831
- name: string;
832
- paragraphs: string[];
833
- heading?: string | undefined;
834
- highlightedText?: string | undefined;
835
- tickerSettings?: {
836
- name: "global" | "US" | "AU";
837
- copy: {
838
- countLabel: string;
839
- goalCopy?: string | undefined;
840
- };
841
- currencySymbol: string;
842
- tickerData?: {
843
- total: number;
844
- goal: number;
845
- } | undefined;
846
- } | undefined;
847
- cta?: {
848
- text: string;
849
- baseUrl: string;
850
- } | undefined;
851
- secondaryCta?: {
852
- type: import("./shared").SecondaryCtaType.Custom;
853
- cta: {
854
- text: string;
855
- baseUrl: string;
856
- };
857
- } | {
858
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
859
- } | undefined;
860
- newsletterSignup?: {
861
- newsletterId: string;
862
- successDescription: string;
863
- } | undefined;
864
- image?: {
865
- altText: string;
866
- mainUrl: string;
867
- mobileUrl?: string | undefined;
868
- tabletUrl?: string | undefined;
869
- desktopUrl?: string | undefined;
870
- leftColUrl?: string | undefined;
871
- wideUrl?: string | undefined;
872
- } | undefined;
873
- showReminderFields?: {
874
- reminderCta: string;
875
- reminderLabel: string;
876
- reminderPeriod: string;
877
- } | undefined;
878
- separateArticleCount?: {
879
- type: "above";
880
- copy?: string | undefined;
881
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
882
- } | undefined;
883
- promoCodes?: string[] | null | undefined;
884
- maxViews?: {
885
- maxViewsCount: number;
886
- maxViewsDays: number;
887
- minDaysBetweenViews: number;
888
- } | undefined;
889
- showSignInLink?: boolean | undefined;
890
- bylineWithImage?: {
891
- name: string;
892
- description?: string | undefined;
893
- headshot?: {
894
- altText: string;
895
- mainUrl: string;
896
- mobileUrl?: string | undefined;
897
- tabletUrl?: string | undefined;
898
- desktopUrl?: string | undefined;
899
- leftColUrl?: string | undefined;
900
- wideUrl?: string | undefined;
901
- } | undefined;
902
- } | undefined;
903
- showChoiceCards?: boolean | undefined;
904
- choiceCardsSettings?: {
905
- choiceCards: {
906
- product: {
907
- supportTier: "Contribution";
908
- ratePlan: "Monthly" | "Annual";
909
- } | {
910
- supportTier: "SupporterPlus";
911
- ratePlan: "Monthly" | "Annual";
912
- } | {
913
- supportTier: "OneOff";
914
- };
915
- label: string;
916
- isDefault: boolean;
917
- benefits: {
918
- copy: string;
919
- }[];
920
- benefitsLabel?: string | null | undefined;
921
- pill?: {
922
- copy: string;
923
- textColour?: {
924
- r: string;
925
- b: string;
926
- g: string;
927
- kind: "hex";
928
- } | null | undefined;
929
- backgroundColour?: {
930
- r: string;
931
- b: string;
932
- g: string;
933
- kind: "hex";
934
- } | null | undefined;
935
- } | null | undefined;
936
- destination?: "LandingPage" | "Checkout" | null | undefined;
937
- }[];
938
- mobileChoiceCards?: {
939
- product: {
940
- supportTier: "Contribution";
941
- ratePlan: "Monthly" | "Annual";
942
- } | {
943
- supportTier: "SupporterPlus";
944
- ratePlan: "Monthly" | "Annual";
945
- } | {
946
- supportTier: "OneOff";
947
- };
948
- label: string;
949
- isDefault: boolean;
950
- benefits: {
951
- copy: string;
952
- }[];
953
- benefitsLabel?: string | null | undefined;
954
- pill?: {
955
- copy: string;
956
- textColour?: {
957
- r: string;
958
- b: string;
959
- g: string;
960
- kind: "hex";
961
- } | null | undefined;
962
- backgroundColour?: {
963
- r: string;
964
- b: string;
965
- g: string;
966
- kind: "hex";
967
- } | null | undefined;
968
- } | null | undefined;
969
- destination?: "LandingPage" | "Checkout" | null | undefined;
970
- }[] | null | undefined;
971
- } | null | undefined;
972
- choiceCardAmounts?: {
973
- testName: string;
974
- variantName: string;
975
- defaultContributionType: "ONE_OFF" | "MONTHLY" | "ANNUAL";
976
- displayContributionType: ("ONE_OFF" | "MONTHLY" | "ANNUAL")[];
977
- amountsCardData: {
978
- ONE_OFF: {
979
- amounts: number[];
980
- defaultAmount: number;
981
- hideChooseYourAmount?: boolean | undefined;
982
- };
983
- MONTHLY: {
984
- amounts: number[];
985
- defaultAmount: number;
986
- hideChooseYourAmount?: boolean | undefined;
987
- };
988
- ANNUAL: {
989
- amounts: number[];
990
- defaultAmount: number;
991
- hideChooseYourAmount?: boolean | undefined;
992
- };
993
- };
994
- } | undefined;
995
- defaultChoiceCardFrequency?: "ONE_OFF" | "MONTHLY" | "ANNUAL" | undefined;
996
- }, {
997
- name: string;
998
- paragraphs: string[];
999
- heading?: string | undefined;
1000
- highlightedText?: string | undefined;
1001
- tickerSettings?: {
1002
- name: "global" | "US" | "AU";
1003
- copy: {
1004
- countLabel: string;
1005
- goalCopy?: string | undefined;
1006
- };
1007
- currencySymbol: string;
1008
- tickerData?: {
1009
- total: number;
1010
- goal: number;
1011
- } | undefined;
1012
- } | undefined;
1013
- cta?: {
1014
- text: string;
1015
- baseUrl: string;
1016
- } | undefined;
1017
- secondaryCta?: {
1018
- type: import("./shared").SecondaryCtaType.Custom;
1019
- cta: {
1020
- text: string;
1021
- baseUrl: string;
1022
- };
1023
- } | {
1024
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
1025
- } | undefined;
1026
- newsletterSignup?: {
1027
- newsletterId: string;
1028
- successDescription: string;
1029
- } | undefined;
1030
- image?: {
1031
- altText: string;
1032
- mainUrl: string;
1033
- mobileUrl?: string | undefined;
1034
- tabletUrl?: string | undefined;
1035
- desktopUrl?: string | undefined;
1036
- leftColUrl?: string | undefined;
1037
- wideUrl?: string | undefined;
1038
- } | undefined;
1039
- showReminderFields?: {
1040
- reminderCta: string;
1041
- reminderLabel: string;
1042
- reminderPeriod: string;
1043
- } | undefined;
1044
- separateArticleCount?: {
1045
- type: "above";
1046
- copy?: string | undefined;
1047
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
1048
- } | undefined;
1049
- promoCodes?: string[] | null | undefined;
1050
- maxViews?: {
1051
- maxViewsCount: number;
1052
- maxViewsDays: number;
1053
- minDaysBetweenViews: number;
1054
- } | undefined;
1055
- showSignInLink?: boolean | undefined;
1056
- bylineWithImage?: {
1057
- name: string;
1058
- description?: string | undefined;
1059
- headshot?: {
1060
- altText: string;
1061
- mainUrl: string;
1062
- mobileUrl?: string | undefined;
1063
- tabletUrl?: string | undefined;
1064
- desktopUrl?: string | undefined;
1065
- leftColUrl?: string | undefined;
1066
- wideUrl?: string | undefined;
1067
- } | undefined;
1068
- } | undefined;
1069
- showChoiceCards?: boolean | undefined;
1070
- choiceCardsSettings?: {
1071
- choiceCards: {
1072
- product: {
1073
- supportTier: "Contribution";
1074
- ratePlan: "Monthly" | "Annual";
1075
- } | {
1076
- supportTier: "SupporterPlus";
1077
- ratePlan: "Monthly" | "Annual";
1078
- } | {
1079
- supportTier: "OneOff";
1080
- };
1081
- label: string;
1082
- isDefault: boolean;
1083
- benefits: {
1084
- copy: string;
1085
- }[];
1086
- benefitsLabel?: string | null | undefined;
1087
- pill?: {
1088
- copy: string;
1089
- textColour?: {
1090
- r: string;
1091
- b: string;
1092
- g: string;
1093
- kind: "hex";
1094
- } | null | undefined;
1095
- backgroundColour?: {
1096
- r: string;
1097
- b: string;
1098
- g: string;
1099
- kind: "hex";
1100
- } | null | undefined;
1101
- } | null | undefined;
1102
- destination?: "LandingPage" | "Checkout" | null | undefined;
1103
- }[];
1104
- mobileChoiceCards?: {
1105
- product: {
1106
- supportTier: "Contribution";
1107
- ratePlan: "Monthly" | "Annual";
1108
- } | {
1109
- supportTier: "SupporterPlus";
1110
- ratePlan: "Monthly" | "Annual";
1111
- } | {
1112
- supportTier: "OneOff";
1113
- };
1114
- label: string;
1115
- isDefault: boolean;
1116
- benefits: {
1117
- copy: string;
1118
- }[];
1119
- benefitsLabel?: string | null | undefined;
1120
- pill?: {
1121
- copy: string;
1122
- textColour?: {
1123
- r: string;
1124
- b: string;
1125
- g: string;
1126
- kind: "hex";
1127
- } | null | undefined;
1128
- backgroundColour?: {
1129
- r: string;
1130
- b: string;
1131
- g: string;
1132
- kind: "hex";
1133
- } | null | undefined;
1134
- } | null | undefined;
1135
- destination?: "LandingPage" | "Checkout" | null | undefined;
1136
- }[] | null | undefined;
1137
- } | null | undefined;
1138
- choiceCardAmounts?: {
1139
- testName: string;
1140
- variantName: string;
1141
- defaultContributionType: "ONE_OFF" | "MONTHLY" | "ANNUAL";
1142
- displayContributionType: ("ONE_OFF" | "MONTHLY" | "ANNUAL")[];
1143
- amountsCardData: {
1144
- ONE_OFF: {
1145
- amounts: number[];
1146
- defaultAmount: number;
1147
- hideChooseYourAmount?: boolean | undefined;
1148
- };
1149
- MONTHLY: {
1150
- amounts: number[];
1151
- defaultAmount: number;
1152
- hideChooseYourAmount?: boolean | undefined;
1153
- };
1154
- ANNUAL: {
1155
- amounts: number[];
1156
- defaultAmount: number;
1157
- hideChooseYourAmount?: boolean | undefined;
1158
- };
1159
- };
1160
- } | undefined;
1161
- defaultChoiceCardFrequency?: "ONE_OFF" | "MONTHLY" | "ANNUAL" | undefined;
1162
- }>;
207
+ }, z.core.$strip>;
1163
208
  export declare const epicPropsSchema: z.ZodObject<{
1164
209
  variant: z.ZodObject<{
1165
210
  name: z.ZodString;
1166
211
  heading: z.ZodOptional<z.ZodString>;
1167
- paragraphs: z.ZodArray<z.ZodString, "many">;
212
+ paragraphs: z.ZodArray<z.ZodString>;
1168
213
  highlightedText: z.ZodOptional<z.ZodString>;
1169
214
  tickerSettings: z.ZodOptional<z.ZodObject<{
1170
215
  currencySymbol: z.ZodString;
1171
216
  copy: z.ZodObject<{
1172
217
  countLabel: z.ZodString;
1173
218
  goalCopy: z.ZodOptional<z.ZodString>;
1174
- }, "strip", z.ZodTypeAny, {
1175
- countLabel: string;
1176
- goalCopy?: string | undefined;
1177
- }, {
1178
- countLabel: string;
1179
- goalCopy?: string | undefined;
219
+ }, z.core.$strip>;
220
+ name: z.ZodEnum<{
221
+ global: "global";
222
+ US: "US";
223
+ AU: "AU";
1180
224
  }>;
1181
- name: z.ZodEnum<["US", "AU", "global"]>;
1182
225
  tickerData: z.ZodOptional<z.ZodObject<{
1183
226
  total: z.ZodNumber;
1184
227
  goal: z.ZodNumber;
1185
- }, "strip", z.ZodTypeAny, {
1186
- total: number;
1187
- goal: number;
1188
- }, {
1189
- total: number;
1190
- goal: number;
1191
- }>>;
1192
- }, "strip", z.ZodTypeAny, {
1193
- name: "global" | "US" | "AU";
1194
- copy: {
1195
- countLabel: string;
1196
- goalCopy?: string | undefined;
1197
- };
1198
- currencySymbol: string;
1199
- tickerData?: {
1200
- total: number;
1201
- goal: number;
1202
- } | undefined;
1203
- }, {
1204
- name: "global" | "US" | "AU";
1205
- copy: {
1206
- countLabel: string;
1207
- goalCopy?: string | undefined;
1208
- };
1209
- currencySymbol: string;
1210
- tickerData?: {
1211
- total: number;
1212
- goal: number;
1213
- } | undefined;
1214
- }>>;
228
+ }, z.core.$strip>>;
229
+ }, z.core.$strip>>;
1215
230
  cta: z.ZodOptional<z.ZodObject<{
1216
231
  text: z.ZodString;
1217
232
  baseUrl: z.ZodString;
1218
- }, "strip", z.ZodTypeAny, {
1219
- text: string;
1220
- baseUrl: string;
1221
- }, {
1222
- text: string;
1223
- baseUrl: string;
1224
- }>>;
1225
- secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
233
+ }, z.core.$strip>>;
234
+ secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1226
235
  type: z.ZodLiteral<import("./shared").SecondaryCtaType.Custom>;
1227
236
  cta: z.ZodObject<{
1228
237
  text: z.ZodString;
1229
238
  baseUrl: z.ZodString;
1230
- }, "strip", z.ZodTypeAny, {
1231
- text: string;
1232
- baseUrl: string;
1233
- }, {
1234
- text: string;
1235
- baseUrl: string;
1236
- }>;
1237
- }, "strip", z.ZodTypeAny, {
1238
- type: import("./shared").SecondaryCtaType.Custom;
1239
- cta: {
1240
- text: string;
1241
- baseUrl: string;
1242
- };
1243
- }, {
1244
- type: import("./shared").SecondaryCtaType.Custom;
1245
- cta: {
1246
- text: string;
1247
- baseUrl: string;
1248
- };
1249
- }>, z.ZodObject<{
239
+ }, z.core.$strip>;
240
+ }, z.core.$strip>, z.ZodObject<{
1250
241
  type: z.ZodLiteral<import("./shared").SecondaryCtaType.ContributionsReminder>;
1251
- }, "strip", z.ZodTypeAny, {
1252
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
1253
- }, {
1254
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
1255
- }>]>>;
242
+ }, z.core.$strip>], "type">>;
1256
243
  newsletterSignup: z.ZodOptional<z.ZodObject<{
1257
244
  newsletterId: z.ZodString;
1258
245
  successDescription: z.ZodString;
1259
- }, "strip", z.ZodTypeAny, {
1260
- newsletterId: string;
1261
- successDescription: string;
1262
- }, {
1263
- newsletterId: string;
1264
- successDescription: string;
1265
- }>>;
246
+ }, z.core.$strip>>;
1266
247
  image: z.ZodOptional<z.ZodObject<{
1267
248
  mainUrl: z.ZodString;
1268
249
  mobileUrl: z.ZodOptional<z.ZodString>;
@@ -1271,63 +252,26 @@ export declare const epicPropsSchema: z.ZodObject<{
1271
252
  leftColUrl: z.ZodOptional<z.ZodString>;
1272
253
  wideUrl: z.ZodOptional<z.ZodString>;
1273
254
  altText: z.ZodString;
1274
- }, "strip", z.ZodTypeAny, {
1275
- altText: string;
1276
- mainUrl: string;
1277
- mobileUrl?: string | undefined;
1278
- tabletUrl?: string | undefined;
1279
- desktopUrl?: string | undefined;
1280
- leftColUrl?: string | undefined;
1281
- wideUrl?: string | undefined;
1282
- }, {
1283
- altText: string;
1284
- mainUrl: string;
1285
- mobileUrl?: string | undefined;
1286
- tabletUrl?: string | undefined;
1287
- desktopUrl?: string | undefined;
1288
- leftColUrl?: string | undefined;
1289
- wideUrl?: string | undefined;
1290
- }>>;
255
+ }, z.core.$strip>>;
1291
256
  showReminderFields: z.ZodOptional<z.ZodObject<{
1292
257
  reminderCta: z.ZodString;
1293
258
  reminderLabel: z.ZodString;
1294
259
  reminderPeriod: z.ZodString;
1295
- }, "strip", z.ZodTypeAny, {
1296
- reminderCta: string;
1297
- reminderLabel: string;
1298
- reminderPeriod: string;
1299
- }, {
1300
- reminderCta: string;
1301
- reminderLabel: string;
1302
- reminderPeriod: string;
1303
- }>>;
260
+ }, z.core.$strip>>;
1304
261
  separateArticleCount: z.ZodOptional<z.ZodObject<{
1305
262
  type: z.ZodLiteral<"above">;
1306
263
  copy: z.ZodOptional<z.ZodString>;
1307
- countType: z.ZodOptional<z.ZodEnum<["for52Weeks", "forTargetedWeeks"]>>;
1308
- }, "strip", z.ZodTypeAny, {
1309
- type: "above";
1310
- copy?: string | undefined;
1311
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
1312
- }, {
1313
- type: "above";
1314
- copy?: string | undefined;
1315
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
1316
- }>>;
1317
- promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
264
+ countType: z.ZodOptional<z.ZodEnum<{
265
+ for52Weeks: "for52Weeks";
266
+ forTargetedWeeks: "forTargetedWeeks";
267
+ }>>;
268
+ }, z.core.$strip>>;
269
+ promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1318
270
  maxViews: z.ZodOptional<z.ZodObject<{
1319
271
  maxViewsCount: z.ZodNumber;
1320
272
  maxViewsDays: z.ZodNumber;
1321
273
  minDaysBetweenViews: z.ZodNumber;
1322
- }, "strip", z.ZodTypeAny, {
1323
- maxViewsCount: number;
1324
- maxViewsDays: number;
1325
- minDaysBetweenViews: number;
1326
- }, {
1327
- maxViewsCount: number;
1328
- maxViewsDays: number;
1329
- minDaysBetweenViews: number;
1330
- }>>;
274
+ }, z.core.$strip>>;
1331
275
  showSignInLink: z.ZodOptional<z.ZodBoolean>;
1332
276
  bylineWithImage: z.ZodOptional<z.ZodObject<{
1333
277
  name: z.ZodString;
@@ -1340,1399 +284,146 @@ export declare const epicPropsSchema: z.ZodObject<{
1340
284
  leftColUrl: z.ZodOptional<z.ZodString>;
1341
285
  wideUrl: z.ZodOptional<z.ZodString>;
1342
286
  altText: z.ZodString;
1343
- }, "strip", z.ZodTypeAny, {
1344
- altText: string;
1345
- mainUrl: string;
1346
- mobileUrl?: string | undefined;
1347
- tabletUrl?: string | undefined;
1348
- desktopUrl?: string | undefined;
1349
- leftColUrl?: string | undefined;
1350
- wideUrl?: string | undefined;
1351
- }, {
1352
- altText: string;
1353
- mainUrl: string;
1354
- mobileUrl?: string | undefined;
1355
- tabletUrl?: string | undefined;
1356
- desktopUrl?: string | undefined;
1357
- leftColUrl?: string | undefined;
1358
- wideUrl?: string | undefined;
1359
- }>>;
1360
- }, "strip", z.ZodTypeAny, {
1361
- name: string;
1362
- description?: string | undefined;
1363
- headshot?: {
1364
- altText: string;
1365
- mainUrl: string;
1366
- mobileUrl?: string | undefined;
1367
- tabletUrl?: string | undefined;
1368
- desktopUrl?: string | undefined;
1369
- leftColUrl?: string | undefined;
1370
- wideUrl?: string | undefined;
1371
- } | undefined;
1372
- }, {
1373
- name: string;
1374
- description?: string | undefined;
1375
- headshot?: {
1376
- altText: string;
1377
- mainUrl: string;
1378
- mobileUrl?: string | undefined;
1379
- tabletUrl?: string | undefined;
1380
- desktopUrl?: string | undefined;
1381
- leftColUrl?: string | undefined;
1382
- wideUrl?: string | undefined;
1383
- } | undefined;
1384
- }>>;
287
+ }, z.core.$strip>>;
288
+ }, z.core.$strip>>;
1385
289
  showChoiceCards: z.ZodOptional<z.ZodBoolean>;
1386
290
  choiceCardsSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1387
291
  choiceCards: z.ZodArray<z.ZodObject<{
1388
- product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
292
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
1389
293
  supportTier: z.ZodLiteral<"Contribution">;
1390
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
1391
- }, "strip", z.ZodTypeAny, {
1392
- supportTier: "Contribution";
1393
- ratePlan: "Monthly" | "Annual";
1394
- }, {
1395
- supportTier: "Contribution";
1396
- ratePlan: "Monthly" | "Annual";
1397
- }>, z.ZodObject<{
294
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
295
+ }, z.core.$strip>, z.ZodObject<{
1398
296
  supportTier: z.ZodLiteral<"SupporterPlus">;
1399
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
1400
- }, "strip", z.ZodTypeAny, {
1401
- supportTier: "SupporterPlus";
1402
- ratePlan: "Monthly" | "Annual";
1403
- }, {
1404
- supportTier: "SupporterPlus";
1405
- ratePlan: "Monthly" | "Annual";
1406
- }>, z.ZodObject<{
297
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
298
+ }, z.core.$strip>, z.ZodObject<{
1407
299
  supportTier: z.ZodLiteral<"OneOff">;
1408
- }, "strip", z.ZodTypeAny, {
1409
- supportTier: "OneOff";
1410
- }, {
1411
- supportTier: "OneOff";
1412
- }>]>;
300
+ }, z.core.$strip>], "supportTier">;
1413
301
  label: z.ZodString;
1414
302
  isDefault: z.ZodBoolean;
1415
303
  benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1416
304
  benefits: z.ZodArray<z.ZodObject<{
1417
305
  copy: z.ZodString;
1418
- }, "strip", z.ZodTypeAny, {
1419
- copy: string;
1420
- }, {
1421
- copy: string;
1422
- }>, "many">;
306
+ }, z.core.$strip>>;
1423
307
  pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1424
308
  copy: z.ZodString;
1425
309
  textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1426
- r: z.ZodEffects<z.ZodString, string, string>;
1427
- g: z.ZodEffects<z.ZodString, string, string>;
1428
- b: z.ZodEffects<z.ZodString, string, string>;
310
+ r: z.ZodString;
311
+ g: z.ZodString;
312
+ b: z.ZodString;
1429
313
  kind: z.ZodLiteral<"hex">;
1430
- }, "strip", z.ZodTypeAny, {
1431
- r: string;
1432
- b: string;
1433
- g: string;
1434
- kind: "hex";
1435
- }, {
1436
- r: string;
1437
- b: string;
1438
- g: string;
1439
- kind: "hex";
1440
- }>>>;
314
+ }, z.core.$strip>>>;
1441
315
  backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1442
- r: z.ZodEffects<z.ZodString, string, string>;
1443
- g: z.ZodEffects<z.ZodString, string, string>;
1444
- b: z.ZodEffects<z.ZodString, string, string>;
316
+ r: z.ZodString;
317
+ g: z.ZodString;
318
+ b: z.ZodString;
1445
319
  kind: z.ZodLiteral<"hex">;
1446
- }, "strip", z.ZodTypeAny, {
1447
- r: string;
1448
- b: string;
1449
- g: string;
1450
- kind: "hex";
1451
- }, {
1452
- r: string;
1453
- b: string;
1454
- g: string;
1455
- kind: "hex";
1456
- }>>>;
1457
- }, "strip", z.ZodTypeAny, {
1458
- copy: string;
1459
- textColour?: {
1460
- r: string;
1461
- b: string;
1462
- g: string;
1463
- kind: "hex";
1464
- } | null | undefined;
1465
- backgroundColour?: {
1466
- r: string;
1467
- b: string;
1468
- g: string;
1469
- kind: "hex";
1470
- } | null | undefined;
1471
- }, {
1472
- copy: string;
1473
- textColour?: {
1474
- r: string;
1475
- b: string;
1476
- g: string;
1477
- kind: "hex";
1478
- } | null | undefined;
1479
- backgroundColour?: {
1480
- r: string;
1481
- b: string;
1482
- g: string;
1483
- kind: "hex";
1484
- } | null | undefined;
1485
- }>>>;
1486
- destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
1487
- }, "strip", z.ZodTypeAny, {
1488
- product: {
1489
- supportTier: "Contribution";
1490
- ratePlan: "Monthly" | "Annual";
1491
- } | {
1492
- supportTier: "SupporterPlus";
1493
- ratePlan: "Monthly" | "Annual";
1494
- } | {
1495
- supportTier: "OneOff";
1496
- };
1497
- label: string;
1498
- isDefault: boolean;
1499
- benefits: {
1500
- copy: string;
1501
- }[];
1502
- benefitsLabel?: string | null | undefined;
1503
- pill?: {
1504
- copy: string;
1505
- textColour?: {
1506
- r: string;
1507
- b: string;
1508
- g: string;
1509
- kind: "hex";
1510
- } | null | undefined;
1511
- backgroundColour?: {
1512
- r: string;
1513
- b: string;
1514
- g: string;
1515
- kind: "hex";
1516
- } | null | undefined;
1517
- } | null | undefined;
1518
- destination?: "LandingPage" | "Checkout" | null | undefined;
1519
- }, {
1520
- product: {
1521
- supportTier: "Contribution";
1522
- ratePlan: "Monthly" | "Annual";
1523
- } | {
1524
- supportTier: "SupporterPlus";
1525
- ratePlan: "Monthly" | "Annual";
1526
- } | {
1527
- supportTier: "OneOff";
1528
- };
1529
- label: string;
1530
- isDefault: boolean;
1531
- benefits: {
1532
- copy: string;
1533
- }[];
1534
- benefitsLabel?: string | null | undefined;
1535
- pill?: {
1536
- copy: string;
1537
- textColour?: {
1538
- r: string;
1539
- b: string;
1540
- g: string;
1541
- kind: "hex";
1542
- } | null | undefined;
1543
- backgroundColour?: {
1544
- r: string;
1545
- b: string;
1546
- g: string;
1547
- kind: "hex";
1548
- } | null | undefined;
1549
- } | null | undefined;
1550
- destination?: "LandingPage" | "Checkout" | null | undefined;
1551
- }>, "many">;
320
+ }, z.core.$strip>>>;
321
+ }, z.core.$strip>>>;
322
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
323
+ }, z.core.$strip>>;
1552
324
  mobileChoiceCards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1553
- product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
325
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
1554
326
  supportTier: z.ZodLiteral<"Contribution">;
1555
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
1556
- }, "strip", z.ZodTypeAny, {
1557
- supportTier: "Contribution";
1558
- ratePlan: "Monthly" | "Annual";
1559
- }, {
1560
- supportTier: "Contribution";
1561
- ratePlan: "Monthly" | "Annual";
1562
- }>, z.ZodObject<{
327
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
328
+ }, z.core.$strip>, z.ZodObject<{
1563
329
  supportTier: z.ZodLiteral<"SupporterPlus">;
1564
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
1565
- }, "strip", z.ZodTypeAny, {
1566
- supportTier: "SupporterPlus";
1567
- ratePlan: "Monthly" | "Annual";
1568
- }, {
1569
- supportTier: "SupporterPlus";
1570
- ratePlan: "Monthly" | "Annual";
1571
- }>, z.ZodObject<{
330
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
331
+ }, z.core.$strip>, z.ZodObject<{
1572
332
  supportTier: z.ZodLiteral<"OneOff">;
1573
- }, "strip", z.ZodTypeAny, {
1574
- supportTier: "OneOff";
1575
- }, {
1576
- supportTier: "OneOff";
1577
- }>]>;
333
+ }, z.core.$strip>], "supportTier">;
1578
334
  label: z.ZodString;
1579
335
  isDefault: z.ZodBoolean;
1580
336
  benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1581
337
  benefits: z.ZodArray<z.ZodObject<{
1582
338
  copy: z.ZodString;
1583
- }, "strip", z.ZodTypeAny, {
1584
- copy: string;
1585
- }, {
1586
- copy: string;
1587
- }>, "many">;
339
+ }, z.core.$strip>>;
1588
340
  pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1589
341
  copy: z.ZodString;
1590
342
  textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1591
- r: z.ZodEffects<z.ZodString, string, string>;
1592
- g: z.ZodEffects<z.ZodString, string, string>;
1593
- b: z.ZodEffects<z.ZodString, string, string>;
343
+ r: z.ZodString;
344
+ g: z.ZodString;
345
+ b: z.ZodString;
1594
346
  kind: z.ZodLiteral<"hex">;
1595
- }, "strip", z.ZodTypeAny, {
1596
- r: string;
1597
- b: string;
1598
- g: string;
1599
- kind: "hex";
1600
- }, {
1601
- r: string;
1602
- b: string;
1603
- g: string;
1604
- kind: "hex";
1605
- }>>>;
347
+ }, z.core.$strip>>>;
1606
348
  backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1607
- r: z.ZodEffects<z.ZodString, string, string>;
1608
- g: z.ZodEffects<z.ZodString, string, string>;
1609
- b: z.ZodEffects<z.ZodString, string, string>;
349
+ r: z.ZodString;
350
+ g: z.ZodString;
351
+ b: z.ZodString;
1610
352
  kind: z.ZodLiteral<"hex">;
1611
- }, "strip", z.ZodTypeAny, {
1612
- r: string;
1613
- b: string;
1614
- g: string;
1615
- kind: "hex";
1616
- }, {
1617
- r: string;
1618
- b: string;
1619
- g: string;
1620
- kind: "hex";
1621
- }>>>;
1622
- }, "strip", z.ZodTypeAny, {
1623
- copy: string;
1624
- textColour?: {
1625
- r: string;
1626
- b: string;
1627
- g: string;
1628
- kind: "hex";
1629
- } | null | undefined;
1630
- backgroundColour?: {
1631
- r: string;
1632
- b: string;
1633
- g: string;
1634
- kind: "hex";
1635
- } | null | undefined;
1636
- }, {
1637
- copy: string;
1638
- textColour?: {
1639
- r: string;
1640
- b: string;
1641
- g: string;
1642
- kind: "hex";
1643
- } | null | undefined;
1644
- backgroundColour?: {
1645
- r: string;
1646
- b: string;
1647
- g: string;
1648
- kind: "hex";
1649
- } | null | undefined;
1650
- }>>>;
1651
- destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
1652
- }, "strip", z.ZodTypeAny, {
1653
- product: {
1654
- supportTier: "Contribution";
1655
- ratePlan: "Monthly" | "Annual";
1656
- } | {
1657
- supportTier: "SupporterPlus";
1658
- ratePlan: "Monthly" | "Annual";
1659
- } | {
1660
- supportTier: "OneOff";
1661
- };
1662
- label: string;
1663
- isDefault: boolean;
1664
- benefits: {
1665
- copy: string;
1666
- }[];
1667
- benefitsLabel?: string | null | undefined;
1668
- pill?: {
1669
- copy: string;
1670
- textColour?: {
1671
- r: string;
1672
- b: string;
1673
- g: string;
1674
- kind: "hex";
1675
- } | null | undefined;
1676
- backgroundColour?: {
1677
- r: string;
1678
- b: string;
1679
- g: string;
1680
- kind: "hex";
1681
- } | null | undefined;
1682
- } | null | undefined;
1683
- destination?: "LandingPage" | "Checkout" | null | undefined;
1684
- }, {
1685
- product: {
1686
- supportTier: "Contribution";
1687
- ratePlan: "Monthly" | "Annual";
1688
- } | {
1689
- supportTier: "SupporterPlus";
1690
- ratePlan: "Monthly" | "Annual";
1691
- } | {
1692
- supportTier: "OneOff";
1693
- };
1694
- label: string;
1695
- isDefault: boolean;
1696
- benefits: {
1697
- copy: string;
1698
- }[];
1699
- benefitsLabel?: string | null | undefined;
1700
- pill?: {
1701
- copy: string;
1702
- textColour?: {
1703
- r: string;
1704
- b: string;
1705
- g: string;
1706
- kind: "hex";
1707
- } | null | undefined;
1708
- backgroundColour?: {
1709
- r: string;
1710
- b: string;
1711
- g: string;
1712
- kind: "hex";
1713
- } | null | undefined;
1714
- } | null | undefined;
1715
- destination?: "LandingPage" | "Checkout" | null | undefined;
1716
- }>, "many">>>;
1717
- }, "strip", z.ZodTypeAny, {
1718
- choiceCards: {
1719
- product: {
1720
- supportTier: "Contribution";
1721
- ratePlan: "Monthly" | "Annual";
1722
- } | {
1723
- supportTier: "SupporterPlus";
1724
- ratePlan: "Monthly" | "Annual";
1725
- } | {
1726
- supportTier: "OneOff";
1727
- };
1728
- label: string;
1729
- isDefault: boolean;
1730
- benefits: {
1731
- copy: string;
1732
- }[];
1733
- benefitsLabel?: string | null | undefined;
1734
- pill?: {
1735
- copy: string;
1736
- textColour?: {
1737
- r: string;
1738
- b: string;
1739
- g: string;
1740
- kind: "hex";
1741
- } | null | undefined;
1742
- backgroundColour?: {
1743
- r: string;
1744
- b: string;
1745
- g: string;
1746
- kind: "hex";
1747
- } | null | undefined;
1748
- } | null | undefined;
1749
- destination?: "LandingPage" | "Checkout" | null | undefined;
1750
- }[];
1751
- mobileChoiceCards?: {
1752
- product: {
1753
- supportTier: "Contribution";
1754
- ratePlan: "Monthly" | "Annual";
1755
- } | {
1756
- supportTier: "SupporterPlus";
1757
- ratePlan: "Monthly" | "Annual";
1758
- } | {
1759
- supportTier: "OneOff";
1760
- };
1761
- label: string;
1762
- isDefault: boolean;
1763
- benefits: {
1764
- copy: string;
1765
- }[];
1766
- benefitsLabel?: string | null | undefined;
1767
- pill?: {
1768
- copy: string;
1769
- textColour?: {
1770
- r: string;
1771
- b: string;
1772
- g: string;
1773
- kind: "hex";
1774
- } | null | undefined;
1775
- backgroundColour?: {
1776
- r: string;
1777
- b: string;
1778
- g: string;
1779
- kind: "hex";
1780
- } | null | undefined;
1781
- } | null | undefined;
1782
- destination?: "LandingPage" | "Checkout" | null | undefined;
1783
- }[] | null | undefined;
1784
- }, {
1785
- choiceCards: {
1786
- product: {
1787
- supportTier: "Contribution";
1788
- ratePlan: "Monthly" | "Annual";
1789
- } | {
1790
- supportTier: "SupporterPlus";
1791
- ratePlan: "Monthly" | "Annual";
1792
- } | {
1793
- supportTier: "OneOff";
1794
- };
1795
- label: string;
1796
- isDefault: boolean;
1797
- benefits: {
1798
- copy: string;
1799
- }[];
1800
- benefitsLabel?: string | null | undefined;
1801
- pill?: {
1802
- copy: string;
1803
- textColour?: {
1804
- r: string;
1805
- b: string;
1806
- g: string;
1807
- kind: "hex";
1808
- } | null | undefined;
1809
- backgroundColour?: {
1810
- r: string;
1811
- b: string;
1812
- g: string;
1813
- kind: "hex";
1814
- } | null | undefined;
1815
- } | null | undefined;
1816
- destination?: "LandingPage" | "Checkout" | null | undefined;
1817
- }[];
1818
- mobileChoiceCards?: {
1819
- product: {
1820
- supportTier: "Contribution";
1821
- ratePlan: "Monthly" | "Annual";
1822
- } | {
1823
- supportTier: "SupporterPlus";
1824
- ratePlan: "Monthly" | "Annual";
1825
- } | {
1826
- supportTier: "OneOff";
1827
- };
1828
- label: string;
1829
- isDefault: boolean;
1830
- benefits: {
1831
- copy: string;
1832
- }[];
1833
- benefitsLabel?: string | null | undefined;
1834
- pill?: {
1835
- copy: string;
1836
- textColour?: {
1837
- r: string;
1838
- b: string;
1839
- g: string;
1840
- kind: "hex";
1841
- } | null | undefined;
1842
- backgroundColour?: {
1843
- r: string;
1844
- b: string;
1845
- g: string;
1846
- kind: "hex";
1847
- } | null | undefined;
1848
- } | null | undefined;
1849
- destination?: "LandingPage" | "Checkout" | null | undefined;
1850
- }[] | null | undefined;
1851
- }>>>;
353
+ }, z.core.$strip>>>;
354
+ }, z.core.$strip>>>;
355
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
356
+ }, z.core.$strip>>>>;
357
+ }, z.core.$strip>>>;
1852
358
  choiceCardAmounts: z.ZodOptional<z.ZodObject<{
1853
359
  testName: z.ZodString;
1854
360
  variantName: z.ZodString;
1855
- defaultContributionType: z.ZodEnum<["ONE_OFF", "MONTHLY", "ANNUAL"]>;
1856
- displayContributionType: z.ZodArray<z.ZodEnum<["ONE_OFF", "MONTHLY", "ANNUAL"]>, "many">;
361
+ defaultContributionType: z.ZodEnum<{
362
+ ONE_OFF: "ONE_OFF";
363
+ MONTHLY: "MONTHLY";
364
+ ANNUAL: "ANNUAL";
365
+ }>;
366
+ displayContributionType: z.ZodArray<z.ZodEnum<{
367
+ ONE_OFF: "ONE_OFF";
368
+ MONTHLY: "MONTHLY";
369
+ ANNUAL: "ANNUAL";
370
+ }>>;
1857
371
  amountsCardData: z.ZodObject<{
1858
372
  ONE_OFF: z.ZodObject<{
1859
- amounts: z.ZodArray<z.ZodNumber, "many">;
373
+ amounts: z.ZodArray<z.ZodNumber>;
1860
374
  defaultAmount: z.ZodNumber;
1861
375
  hideChooseYourAmount: z.ZodOptional<z.ZodBoolean>;
1862
- }, "strip", z.ZodTypeAny, {
1863
- amounts: number[];
1864
- defaultAmount: number;
1865
- hideChooseYourAmount?: boolean | undefined;
1866
- }, {
1867
- amounts: number[];
1868
- defaultAmount: number;
1869
- hideChooseYourAmount?: boolean | undefined;
1870
- }>;
376
+ }, z.core.$strip>;
1871
377
  MONTHLY: z.ZodObject<{
1872
- amounts: z.ZodArray<z.ZodNumber, "many">;
378
+ amounts: z.ZodArray<z.ZodNumber>;
1873
379
  defaultAmount: z.ZodNumber;
1874
380
  hideChooseYourAmount: z.ZodOptional<z.ZodBoolean>;
1875
- }, "strip", z.ZodTypeAny, {
1876
- amounts: number[];
1877
- defaultAmount: number;
1878
- hideChooseYourAmount?: boolean | undefined;
1879
- }, {
1880
- amounts: number[];
1881
- defaultAmount: number;
1882
- hideChooseYourAmount?: boolean | undefined;
1883
- }>;
381
+ }, z.core.$strip>;
1884
382
  ANNUAL: z.ZodObject<{
1885
- amounts: z.ZodArray<z.ZodNumber, "many">;
383
+ amounts: z.ZodArray<z.ZodNumber>;
1886
384
  defaultAmount: z.ZodNumber;
1887
385
  hideChooseYourAmount: z.ZodOptional<z.ZodBoolean>;
1888
- }, "strip", z.ZodTypeAny, {
1889
- amounts: number[];
1890
- defaultAmount: number;
1891
- hideChooseYourAmount?: boolean | undefined;
1892
- }, {
1893
- amounts: number[];
1894
- defaultAmount: number;
1895
- hideChooseYourAmount?: boolean | undefined;
1896
- }>;
1897
- }, "strip", z.ZodTypeAny, {
1898
- ONE_OFF: {
1899
- amounts: number[];
1900
- defaultAmount: number;
1901
- hideChooseYourAmount?: boolean | undefined;
1902
- };
1903
- MONTHLY: {
1904
- amounts: number[];
1905
- defaultAmount: number;
1906
- hideChooseYourAmount?: boolean | undefined;
1907
- };
1908
- ANNUAL: {
1909
- amounts: number[];
1910
- defaultAmount: number;
1911
- hideChooseYourAmount?: boolean | undefined;
1912
- };
1913
- }, {
1914
- ONE_OFF: {
1915
- amounts: number[];
1916
- defaultAmount: number;
1917
- hideChooseYourAmount?: boolean | undefined;
1918
- };
1919
- MONTHLY: {
1920
- amounts: number[];
1921
- defaultAmount: number;
1922
- hideChooseYourAmount?: boolean | undefined;
1923
- };
1924
- ANNUAL: {
1925
- amounts: number[];
1926
- defaultAmount: number;
1927
- hideChooseYourAmount?: boolean | undefined;
1928
- };
1929
- }>;
1930
- }, "strip", z.ZodTypeAny, {
1931
- testName: string;
1932
- variantName: string;
1933
- defaultContributionType: "ONE_OFF" | "MONTHLY" | "ANNUAL";
1934
- displayContributionType: ("ONE_OFF" | "MONTHLY" | "ANNUAL")[];
1935
- amountsCardData: {
1936
- ONE_OFF: {
1937
- amounts: number[];
1938
- defaultAmount: number;
1939
- hideChooseYourAmount?: boolean | undefined;
1940
- };
1941
- MONTHLY: {
1942
- amounts: number[];
1943
- defaultAmount: number;
1944
- hideChooseYourAmount?: boolean | undefined;
1945
- };
1946
- ANNUAL: {
1947
- amounts: number[];
1948
- defaultAmount: number;
1949
- hideChooseYourAmount?: boolean | undefined;
1950
- };
1951
- };
1952
- }, {
1953
- testName: string;
1954
- variantName: string;
1955
- defaultContributionType: "ONE_OFF" | "MONTHLY" | "ANNUAL";
1956
- displayContributionType: ("ONE_OFF" | "MONTHLY" | "ANNUAL")[];
1957
- amountsCardData: {
1958
- ONE_OFF: {
1959
- amounts: number[];
1960
- defaultAmount: number;
1961
- hideChooseYourAmount?: boolean | undefined;
1962
- };
1963
- MONTHLY: {
1964
- amounts: number[];
1965
- defaultAmount: number;
1966
- hideChooseYourAmount?: boolean | undefined;
1967
- };
1968
- ANNUAL: {
1969
- amounts: number[];
1970
- defaultAmount: number;
1971
- hideChooseYourAmount?: boolean | undefined;
1972
- };
1973
- };
386
+ }, z.core.$strip>;
387
+ }, z.core.$strip>;
388
+ }, z.core.$strip>>;
389
+ defaultChoiceCardFrequency: z.ZodOptional<z.ZodEnum<{
390
+ ONE_OFF: "ONE_OFF";
391
+ MONTHLY: "MONTHLY";
392
+ ANNUAL: "ANNUAL";
1974
393
  }>>;
1975
- defaultChoiceCardFrequency: z.ZodOptional<z.ZodEnum<["ONE_OFF", "MONTHLY", "ANNUAL"]>>;
1976
- }, "strip", z.ZodTypeAny, {
1977
- name: string;
1978
- paragraphs: string[];
1979
- heading?: string | undefined;
1980
- highlightedText?: string | undefined;
1981
- tickerSettings?: {
1982
- name: "global" | "US" | "AU";
1983
- copy: {
1984
- countLabel: string;
1985
- goalCopy?: string | undefined;
1986
- };
1987
- currencySymbol: string;
1988
- tickerData?: {
1989
- total: number;
1990
- goal: number;
1991
- } | undefined;
1992
- } | undefined;
1993
- cta?: {
1994
- text: string;
1995
- baseUrl: string;
1996
- } | undefined;
1997
- secondaryCta?: {
1998
- type: import("./shared").SecondaryCtaType.Custom;
1999
- cta: {
2000
- text: string;
2001
- baseUrl: string;
2002
- };
2003
- } | {
2004
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
2005
- } | undefined;
2006
- newsletterSignup?: {
2007
- newsletterId: string;
2008
- successDescription: string;
2009
- } | undefined;
2010
- image?: {
2011
- altText: string;
2012
- mainUrl: string;
2013
- mobileUrl?: string | undefined;
2014
- tabletUrl?: string | undefined;
2015
- desktopUrl?: string | undefined;
2016
- leftColUrl?: string | undefined;
2017
- wideUrl?: string | undefined;
2018
- } | undefined;
2019
- showReminderFields?: {
2020
- reminderCta: string;
2021
- reminderLabel: string;
2022
- reminderPeriod: string;
2023
- } | undefined;
2024
- separateArticleCount?: {
2025
- type: "above";
2026
- copy?: string | undefined;
2027
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
2028
- } | undefined;
2029
- promoCodes?: string[] | null | undefined;
2030
- maxViews?: {
2031
- maxViewsCount: number;
2032
- maxViewsDays: number;
2033
- minDaysBetweenViews: number;
2034
- } | undefined;
2035
- showSignInLink?: boolean | undefined;
2036
- bylineWithImage?: {
2037
- name: string;
2038
- description?: string | undefined;
2039
- headshot?: {
2040
- altText: string;
2041
- mainUrl: string;
2042
- mobileUrl?: string | undefined;
2043
- tabletUrl?: string | undefined;
2044
- desktopUrl?: string | undefined;
2045
- leftColUrl?: string | undefined;
2046
- wideUrl?: string | undefined;
2047
- } | undefined;
2048
- } | undefined;
2049
- showChoiceCards?: boolean | undefined;
2050
- choiceCardsSettings?: {
2051
- choiceCards: {
2052
- product: {
2053
- supportTier: "Contribution";
2054
- ratePlan: "Monthly" | "Annual";
2055
- } | {
2056
- supportTier: "SupporterPlus";
2057
- ratePlan: "Monthly" | "Annual";
2058
- } | {
2059
- supportTier: "OneOff";
2060
- };
2061
- label: string;
2062
- isDefault: boolean;
2063
- benefits: {
2064
- copy: string;
2065
- }[];
2066
- benefitsLabel?: string | null | undefined;
2067
- pill?: {
2068
- copy: string;
2069
- textColour?: {
2070
- r: string;
2071
- b: string;
2072
- g: string;
2073
- kind: "hex";
2074
- } | null | undefined;
2075
- backgroundColour?: {
2076
- r: string;
2077
- b: string;
2078
- g: string;
2079
- kind: "hex";
2080
- } | null | undefined;
2081
- } | null | undefined;
2082
- destination?: "LandingPage" | "Checkout" | null | undefined;
2083
- }[];
2084
- mobileChoiceCards?: {
2085
- product: {
2086
- supportTier: "Contribution";
2087
- ratePlan: "Monthly" | "Annual";
2088
- } | {
2089
- supportTier: "SupporterPlus";
2090
- ratePlan: "Monthly" | "Annual";
2091
- } | {
2092
- supportTier: "OneOff";
2093
- };
2094
- label: string;
2095
- isDefault: boolean;
2096
- benefits: {
2097
- copy: string;
2098
- }[];
2099
- benefitsLabel?: string | null | undefined;
2100
- pill?: {
2101
- copy: string;
2102
- textColour?: {
2103
- r: string;
2104
- b: string;
2105
- g: string;
2106
- kind: "hex";
2107
- } | null | undefined;
2108
- backgroundColour?: {
2109
- r: string;
2110
- b: string;
2111
- g: string;
2112
- kind: "hex";
2113
- } | null | undefined;
2114
- } | null | undefined;
2115
- destination?: "LandingPage" | "Checkout" | null | undefined;
2116
- }[] | null | undefined;
2117
- } | null | undefined;
2118
- choiceCardAmounts?: {
2119
- testName: string;
2120
- variantName: string;
2121
- defaultContributionType: "ONE_OFF" | "MONTHLY" | "ANNUAL";
2122
- displayContributionType: ("ONE_OFF" | "MONTHLY" | "ANNUAL")[];
2123
- amountsCardData: {
2124
- ONE_OFF: {
2125
- amounts: number[];
2126
- defaultAmount: number;
2127
- hideChooseYourAmount?: boolean | undefined;
2128
- };
2129
- MONTHLY: {
2130
- amounts: number[];
2131
- defaultAmount: number;
2132
- hideChooseYourAmount?: boolean | undefined;
2133
- };
2134
- ANNUAL: {
2135
- amounts: number[];
2136
- defaultAmount: number;
2137
- hideChooseYourAmount?: boolean | undefined;
2138
- };
2139
- };
2140
- } | undefined;
2141
- defaultChoiceCardFrequency?: "ONE_OFF" | "MONTHLY" | "ANNUAL" | undefined;
2142
- }, {
2143
- name: string;
2144
- paragraphs: string[];
2145
- heading?: string | undefined;
2146
- highlightedText?: string | undefined;
2147
- tickerSettings?: {
2148
- name: "global" | "US" | "AU";
2149
- copy: {
2150
- countLabel: string;
2151
- goalCopy?: string | undefined;
2152
- };
2153
- currencySymbol: string;
2154
- tickerData?: {
2155
- total: number;
2156
- goal: number;
2157
- } | undefined;
2158
- } | undefined;
2159
- cta?: {
2160
- text: string;
2161
- baseUrl: string;
2162
- } | undefined;
2163
- secondaryCta?: {
2164
- type: import("./shared").SecondaryCtaType.Custom;
2165
- cta: {
2166
- text: string;
2167
- baseUrl: string;
2168
- };
2169
- } | {
2170
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
2171
- } | undefined;
2172
- newsletterSignup?: {
2173
- newsletterId: string;
2174
- successDescription: string;
2175
- } | undefined;
2176
- image?: {
2177
- altText: string;
2178
- mainUrl: string;
2179
- mobileUrl?: string | undefined;
2180
- tabletUrl?: string | undefined;
2181
- desktopUrl?: string | undefined;
2182
- leftColUrl?: string | undefined;
2183
- wideUrl?: string | undefined;
2184
- } | undefined;
2185
- showReminderFields?: {
2186
- reminderCta: string;
2187
- reminderLabel: string;
2188
- reminderPeriod: string;
2189
- } | undefined;
2190
- separateArticleCount?: {
2191
- type: "above";
2192
- copy?: string | undefined;
2193
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
2194
- } | undefined;
2195
- promoCodes?: string[] | null | undefined;
2196
- maxViews?: {
2197
- maxViewsCount: number;
2198
- maxViewsDays: number;
2199
- minDaysBetweenViews: number;
2200
- } | undefined;
2201
- showSignInLink?: boolean | undefined;
2202
- bylineWithImage?: {
2203
- name: string;
2204
- description?: string | undefined;
2205
- headshot?: {
2206
- altText: string;
2207
- mainUrl: string;
2208
- mobileUrl?: string | undefined;
2209
- tabletUrl?: string | undefined;
2210
- desktopUrl?: string | undefined;
2211
- leftColUrl?: string | undefined;
2212
- wideUrl?: string | undefined;
2213
- } | undefined;
2214
- } | undefined;
2215
- showChoiceCards?: boolean | undefined;
2216
- choiceCardsSettings?: {
2217
- choiceCards: {
2218
- product: {
2219
- supportTier: "Contribution";
2220
- ratePlan: "Monthly" | "Annual";
2221
- } | {
2222
- supportTier: "SupporterPlus";
2223
- ratePlan: "Monthly" | "Annual";
2224
- } | {
2225
- supportTier: "OneOff";
2226
- };
2227
- label: string;
2228
- isDefault: boolean;
2229
- benefits: {
2230
- copy: string;
2231
- }[];
2232
- benefitsLabel?: string | null | undefined;
2233
- pill?: {
2234
- copy: string;
2235
- textColour?: {
2236
- r: string;
2237
- b: string;
2238
- g: string;
2239
- kind: "hex";
2240
- } | null | undefined;
2241
- backgroundColour?: {
2242
- r: string;
2243
- b: string;
2244
- g: string;
2245
- kind: "hex";
2246
- } | null | undefined;
2247
- } | null | undefined;
2248
- destination?: "LandingPage" | "Checkout" | null | undefined;
2249
- }[];
2250
- mobileChoiceCards?: {
2251
- product: {
2252
- supportTier: "Contribution";
2253
- ratePlan: "Monthly" | "Annual";
2254
- } | {
2255
- supportTier: "SupporterPlus";
2256
- ratePlan: "Monthly" | "Annual";
2257
- } | {
2258
- supportTier: "OneOff";
2259
- };
2260
- label: string;
2261
- isDefault: boolean;
2262
- benefits: {
2263
- copy: string;
2264
- }[];
2265
- benefitsLabel?: string | null | undefined;
2266
- pill?: {
2267
- copy: string;
2268
- textColour?: {
2269
- r: string;
2270
- b: string;
2271
- g: string;
2272
- kind: "hex";
2273
- } | null | undefined;
2274
- backgroundColour?: {
2275
- r: string;
2276
- b: string;
2277
- g: string;
2278
- kind: "hex";
2279
- } | null | undefined;
2280
- } | null | undefined;
2281
- destination?: "LandingPage" | "Checkout" | null | undefined;
2282
- }[] | null | undefined;
2283
- } | null | undefined;
2284
- choiceCardAmounts?: {
2285
- testName: string;
2286
- variantName: string;
2287
- defaultContributionType: "ONE_OFF" | "MONTHLY" | "ANNUAL";
2288
- displayContributionType: ("ONE_OFF" | "MONTHLY" | "ANNUAL")[];
2289
- amountsCardData: {
2290
- ONE_OFF: {
2291
- amounts: number[];
2292
- defaultAmount: number;
2293
- hideChooseYourAmount?: boolean | undefined;
2294
- };
2295
- MONTHLY: {
2296
- amounts: number[];
2297
- defaultAmount: number;
2298
- hideChooseYourAmount?: boolean | undefined;
2299
- };
2300
- ANNUAL: {
2301
- amounts: number[];
2302
- defaultAmount: number;
2303
- hideChooseYourAmount?: boolean | undefined;
2304
- };
2305
- };
2306
- } | undefined;
2307
- defaultChoiceCardFrequency?: "ONE_OFF" | "MONTHLY" | "ANNUAL" | undefined;
2308
- }>;
394
+ }, z.core.$strip>;
2309
395
  tracking: z.ZodObject<{
2310
396
  abTestName: z.ZodString;
2311
397
  abTestVariant: z.ZodString;
2312
398
  campaignCode: z.ZodString;
2313
- componentType: z.ZodEnum<["ACQUISITIONS_EPIC", "ACQUISITIONS_ENGAGEMENT_BANNER", "ACQUISITIONS_SUBSCRIPTIONS_BANNER", "ACQUISITIONS_HEADER", "ACQUISITIONS_OTHER"]>;
2314
- products: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["CONTRIBUTION", "MEMBERSHIP_SUPPORTER", "DIGITAL_SUBSCRIPTION", "PRINT_SUBSCRIPTION"]>, "many">>>;
2315
- labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
399
+ componentType: z.ZodEnum<{
400
+ ACQUISITIONS_EPIC: "ACQUISITIONS_EPIC";
401
+ ACQUISITIONS_ENGAGEMENT_BANNER: "ACQUISITIONS_ENGAGEMENT_BANNER";
402
+ ACQUISITIONS_HEADER: "ACQUISITIONS_HEADER";
403
+ ACQUISITIONS_OTHER: "ACQUISITIONS_OTHER";
404
+ ACQUISITIONS_SUBSCRIPTIONS_BANNER: "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
405
+ }>;
406
+ products: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
407
+ CONTRIBUTION: "CONTRIBUTION";
408
+ MEMBERSHIP_SUPPORTER: "MEMBERSHIP_SUPPORTER";
409
+ DIGITAL_SUBSCRIPTION: "DIGITAL_SUBSCRIPTION";
410
+ PRINT_SUBSCRIPTION: "PRINT_SUBSCRIPTION";
411
+ }>>>>;
412
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2316
413
  ophanPageId: z.ZodString;
2317
414
  platformId: z.ZodString;
2318
415
  referrerUrl: z.ZodString;
2319
- }, "strip", z.ZodTypeAny, {
2320
- abTestName: string;
2321
- abTestVariant: string;
2322
- campaignCode: string;
2323
- componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
2324
- ophanPageId: string;
2325
- platformId: string;
2326
- referrerUrl: string;
2327
- products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
2328
- labels?: string[] | null | undefined;
2329
- }, {
2330
- abTestName: string;
2331
- abTestVariant: string;
2332
- campaignCode: string;
2333
- componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
2334
- ophanPageId: string;
2335
- platformId: string;
2336
- referrerUrl: string;
2337
- products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
2338
- labels?: string[] | null | undefined;
2339
- }>;
416
+ }, z.core.$strip>;
2340
417
  countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2341
418
  articleCounts: z.ZodObject<{
2342
419
  for52Weeks: z.ZodNumber;
2343
420
  forTargetedWeeks: z.ZodNumber;
2344
- }, "strip", z.ZodTypeAny, {
2345
- for52Weeks: number;
2346
- forTargetedWeeks: number;
2347
- }, {
2348
- for52Weeks: number;
2349
- forTargetedWeeks: number;
2350
- }>;
421
+ }, z.core.$strip>;
2351
422
  onReminderOpen: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
2352
423
  fetchEmail: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
2353
424
  submitComponentEvent: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
2354
425
  openCmp: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
2355
426
  hasConsentForArticleCount: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2356
427
  stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2357
- }, "strip", z.ZodTypeAny, {
2358
- variant: {
2359
- name: string;
2360
- paragraphs: string[];
2361
- heading?: string | undefined;
2362
- highlightedText?: string | undefined;
2363
- tickerSettings?: {
2364
- name: "global" | "US" | "AU";
2365
- copy: {
2366
- countLabel: string;
2367
- goalCopy?: string | undefined;
2368
- };
2369
- currencySymbol: string;
2370
- tickerData?: {
2371
- total: number;
2372
- goal: number;
2373
- } | undefined;
2374
- } | undefined;
2375
- cta?: {
2376
- text: string;
2377
- baseUrl: string;
2378
- } | undefined;
2379
- secondaryCta?: {
2380
- type: import("./shared").SecondaryCtaType.Custom;
2381
- cta: {
2382
- text: string;
2383
- baseUrl: string;
2384
- };
2385
- } | {
2386
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
2387
- } | undefined;
2388
- newsletterSignup?: {
2389
- newsletterId: string;
2390
- successDescription: string;
2391
- } | undefined;
2392
- image?: {
2393
- altText: string;
2394
- mainUrl: string;
2395
- mobileUrl?: string | undefined;
2396
- tabletUrl?: string | undefined;
2397
- desktopUrl?: string | undefined;
2398
- leftColUrl?: string | undefined;
2399
- wideUrl?: string | undefined;
2400
- } | undefined;
2401
- showReminderFields?: {
2402
- reminderCta: string;
2403
- reminderLabel: string;
2404
- reminderPeriod: string;
2405
- } | undefined;
2406
- separateArticleCount?: {
2407
- type: "above";
2408
- copy?: string | undefined;
2409
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
2410
- } | undefined;
2411
- promoCodes?: string[] | null | undefined;
2412
- maxViews?: {
2413
- maxViewsCount: number;
2414
- maxViewsDays: number;
2415
- minDaysBetweenViews: number;
2416
- } | undefined;
2417
- showSignInLink?: boolean | undefined;
2418
- bylineWithImage?: {
2419
- name: string;
2420
- description?: string | undefined;
2421
- headshot?: {
2422
- altText: string;
2423
- mainUrl: string;
2424
- mobileUrl?: string | undefined;
2425
- tabletUrl?: string | undefined;
2426
- desktopUrl?: string | undefined;
2427
- leftColUrl?: string | undefined;
2428
- wideUrl?: string | undefined;
2429
- } | undefined;
2430
- } | undefined;
2431
- showChoiceCards?: boolean | undefined;
2432
- choiceCardsSettings?: {
2433
- choiceCards: {
2434
- product: {
2435
- supportTier: "Contribution";
2436
- ratePlan: "Monthly" | "Annual";
2437
- } | {
2438
- supportTier: "SupporterPlus";
2439
- ratePlan: "Monthly" | "Annual";
2440
- } | {
2441
- supportTier: "OneOff";
2442
- };
2443
- label: string;
2444
- isDefault: boolean;
2445
- benefits: {
2446
- copy: string;
2447
- }[];
2448
- benefitsLabel?: string | null | undefined;
2449
- pill?: {
2450
- copy: string;
2451
- textColour?: {
2452
- r: string;
2453
- b: string;
2454
- g: string;
2455
- kind: "hex";
2456
- } | null | undefined;
2457
- backgroundColour?: {
2458
- r: string;
2459
- b: string;
2460
- g: string;
2461
- kind: "hex";
2462
- } | null | undefined;
2463
- } | null | undefined;
2464
- destination?: "LandingPage" | "Checkout" | null | undefined;
2465
- }[];
2466
- mobileChoiceCards?: {
2467
- product: {
2468
- supportTier: "Contribution";
2469
- ratePlan: "Monthly" | "Annual";
2470
- } | {
2471
- supportTier: "SupporterPlus";
2472
- ratePlan: "Monthly" | "Annual";
2473
- } | {
2474
- supportTier: "OneOff";
2475
- };
2476
- label: string;
2477
- isDefault: boolean;
2478
- benefits: {
2479
- copy: string;
2480
- }[];
2481
- benefitsLabel?: string | null | undefined;
2482
- pill?: {
2483
- copy: string;
2484
- textColour?: {
2485
- r: string;
2486
- b: string;
2487
- g: string;
2488
- kind: "hex";
2489
- } | null | undefined;
2490
- backgroundColour?: {
2491
- r: string;
2492
- b: string;
2493
- g: string;
2494
- kind: "hex";
2495
- } | null | undefined;
2496
- } | null | undefined;
2497
- destination?: "LandingPage" | "Checkout" | null | undefined;
2498
- }[] | null | undefined;
2499
- } | null | undefined;
2500
- choiceCardAmounts?: {
2501
- testName: string;
2502
- variantName: string;
2503
- defaultContributionType: "ONE_OFF" | "MONTHLY" | "ANNUAL";
2504
- displayContributionType: ("ONE_OFF" | "MONTHLY" | "ANNUAL")[];
2505
- amountsCardData: {
2506
- ONE_OFF: {
2507
- amounts: number[];
2508
- defaultAmount: number;
2509
- hideChooseYourAmount?: boolean | undefined;
2510
- };
2511
- MONTHLY: {
2512
- amounts: number[];
2513
- defaultAmount: number;
2514
- hideChooseYourAmount?: boolean | undefined;
2515
- };
2516
- ANNUAL: {
2517
- amounts: number[];
2518
- defaultAmount: number;
2519
- hideChooseYourAmount?: boolean | undefined;
2520
- };
2521
- };
2522
- } | undefined;
2523
- defaultChoiceCardFrequency?: "ONE_OFF" | "MONTHLY" | "ANNUAL" | undefined;
2524
- };
2525
- tracking: {
2526
- abTestName: string;
2527
- abTestVariant: string;
2528
- campaignCode: string;
2529
- componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
2530
- ophanPageId: string;
2531
- platformId: string;
2532
- referrerUrl: string;
2533
- products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
2534
- labels?: string[] | null | undefined;
2535
- };
2536
- articleCounts: {
2537
- for52Weeks: number;
2538
- forTargetedWeeks: number;
2539
- };
2540
- countryCode?: string | null | undefined;
2541
- onReminderOpen?: any;
2542
- fetchEmail?: any;
2543
- submitComponentEvent?: any;
2544
- openCmp?: any;
2545
- hasConsentForArticleCount?: boolean | null | undefined;
2546
- stage?: string | null | undefined;
2547
- }, {
2548
- variant: {
2549
- name: string;
2550
- paragraphs: string[];
2551
- heading?: string | undefined;
2552
- highlightedText?: string | undefined;
2553
- tickerSettings?: {
2554
- name: "global" | "US" | "AU";
2555
- copy: {
2556
- countLabel: string;
2557
- goalCopy?: string | undefined;
2558
- };
2559
- currencySymbol: string;
2560
- tickerData?: {
2561
- total: number;
2562
- goal: number;
2563
- } | undefined;
2564
- } | undefined;
2565
- cta?: {
2566
- text: string;
2567
- baseUrl: string;
2568
- } | undefined;
2569
- secondaryCta?: {
2570
- type: import("./shared").SecondaryCtaType.Custom;
2571
- cta: {
2572
- text: string;
2573
- baseUrl: string;
2574
- };
2575
- } | {
2576
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
2577
- } | undefined;
2578
- newsletterSignup?: {
2579
- newsletterId: string;
2580
- successDescription: string;
2581
- } | undefined;
2582
- image?: {
2583
- altText: string;
2584
- mainUrl: string;
2585
- mobileUrl?: string | undefined;
2586
- tabletUrl?: string | undefined;
2587
- desktopUrl?: string | undefined;
2588
- leftColUrl?: string | undefined;
2589
- wideUrl?: string | undefined;
2590
- } | undefined;
2591
- showReminderFields?: {
2592
- reminderCta: string;
2593
- reminderLabel: string;
2594
- reminderPeriod: string;
2595
- } | undefined;
2596
- separateArticleCount?: {
2597
- type: "above";
2598
- copy?: string | undefined;
2599
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
2600
- } | undefined;
2601
- promoCodes?: string[] | null | undefined;
2602
- maxViews?: {
2603
- maxViewsCount: number;
2604
- maxViewsDays: number;
2605
- minDaysBetweenViews: number;
2606
- } | undefined;
2607
- showSignInLink?: boolean | undefined;
2608
- bylineWithImage?: {
2609
- name: string;
2610
- description?: string | undefined;
2611
- headshot?: {
2612
- altText: string;
2613
- mainUrl: string;
2614
- mobileUrl?: string | undefined;
2615
- tabletUrl?: string | undefined;
2616
- desktopUrl?: string | undefined;
2617
- leftColUrl?: string | undefined;
2618
- wideUrl?: string | undefined;
2619
- } | undefined;
2620
- } | undefined;
2621
- showChoiceCards?: boolean | undefined;
2622
- choiceCardsSettings?: {
2623
- choiceCards: {
2624
- product: {
2625
- supportTier: "Contribution";
2626
- ratePlan: "Monthly" | "Annual";
2627
- } | {
2628
- supportTier: "SupporterPlus";
2629
- ratePlan: "Monthly" | "Annual";
2630
- } | {
2631
- supportTier: "OneOff";
2632
- };
2633
- label: string;
2634
- isDefault: boolean;
2635
- benefits: {
2636
- copy: string;
2637
- }[];
2638
- benefitsLabel?: string | null | undefined;
2639
- pill?: {
2640
- copy: string;
2641
- textColour?: {
2642
- r: string;
2643
- b: string;
2644
- g: string;
2645
- kind: "hex";
2646
- } | null | undefined;
2647
- backgroundColour?: {
2648
- r: string;
2649
- b: string;
2650
- g: string;
2651
- kind: "hex";
2652
- } | null | undefined;
2653
- } | null | undefined;
2654
- destination?: "LandingPage" | "Checkout" | null | undefined;
2655
- }[];
2656
- mobileChoiceCards?: {
2657
- product: {
2658
- supportTier: "Contribution";
2659
- ratePlan: "Monthly" | "Annual";
2660
- } | {
2661
- supportTier: "SupporterPlus";
2662
- ratePlan: "Monthly" | "Annual";
2663
- } | {
2664
- supportTier: "OneOff";
2665
- };
2666
- label: string;
2667
- isDefault: boolean;
2668
- benefits: {
2669
- copy: string;
2670
- }[];
2671
- benefitsLabel?: string | null | undefined;
2672
- pill?: {
2673
- copy: string;
2674
- textColour?: {
2675
- r: string;
2676
- b: string;
2677
- g: string;
2678
- kind: "hex";
2679
- } | null | undefined;
2680
- backgroundColour?: {
2681
- r: string;
2682
- b: string;
2683
- g: string;
2684
- kind: "hex";
2685
- } | null | undefined;
2686
- } | null | undefined;
2687
- destination?: "LandingPage" | "Checkout" | null | undefined;
2688
- }[] | null | undefined;
2689
- } | null | undefined;
2690
- choiceCardAmounts?: {
2691
- testName: string;
2692
- variantName: string;
2693
- defaultContributionType: "ONE_OFF" | "MONTHLY" | "ANNUAL";
2694
- displayContributionType: ("ONE_OFF" | "MONTHLY" | "ANNUAL")[];
2695
- amountsCardData: {
2696
- ONE_OFF: {
2697
- amounts: number[];
2698
- defaultAmount: number;
2699
- hideChooseYourAmount?: boolean | undefined;
2700
- };
2701
- MONTHLY: {
2702
- amounts: number[];
2703
- defaultAmount: number;
2704
- hideChooseYourAmount?: boolean | undefined;
2705
- };
2706
- ANNUAL: {
2707
- amounts: number[];
2708
- defaultAmount: number;
2709
- hideChooseYourAmount?: boolean | undefined;
2710
- };
2711
- };
2712
- } | undefined;
2713
- defaultChoiceCardFrequency?: "ONE_OFF" | "MONTHLY" | "ANNUAL" | undefined;
2714
- };
2715
- tracking: {
2716
- abTestName: string;
2717
- abTestVariant: string;
2718
- campaignCode: string;
2719
- componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
2720
- ophanPageId: string;
2721
- platformId: string;
2722
- referrerUrl: string;
2723
- products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
2724
- labels?: string[] | null | undefined;
2725
- };
2726
- articleCounts: {
2727
- for52Weeks: number;
2728
- forTargetedWeeks: number;
2729
- };
2730
- countryCode?: string | null | undefined;
2731
- onReminderOpen?: any;
2732
- fetchEmail?: any;
2733
- submitComponentEvent?: any;
2734
- openCmp?: any;
2735
- hasConsentForArticleCount?: boolean | null | undefined;
2736
- stage?: string | null | undefined;
2737
- }>;
428
+ }, z.core.$strip>;
2738
429
  //# sourceMappingURL=epic.d.ts.map