@frak-labs/components 1.2.4-beta.c207534b → 1.3.0-beta.1979e96f

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 (45) hide show
  1. package/README.md +28 -0
  2. package/cdn/Ambassador.CRPtw_VT.js +392 -0
  3. package/cdn/Banner.gDEO8VKX.js +208 -0
  4. package/cdn/ButtonShare.OuDvPMdk.js +1 -0
  5. package/cdn/ButtonWallet.DNE6ZhkT.js +40 -0
  6. package/cdn/GiftIcon.NTATj1WE.js +1 -0
  7. package/cdn/OpenInAppButton.Dv7oAwl1.js +1 -0
  8. package/cdn/PostPurchase.Co0QSBMO.js +102 -0
  9. package/cdn/components.js +1 -1
  10. package/cdn/jsxRuntime.module.C5UTjP_H.js +58 -0
  11. package/cdn/loader.js +58 -36
  12. package/cdn/qr.vkJgq9pN.js +5 -0
  13. package/cdn/rewards.COyZ6-7W.js +1 -0
  14. package/cdn/useGlobalComponents.DoG1wfeq.js +1 -0
  15. package/cdn/useLightDomStyles.B0_CS0Kq.js +1 -0
  16. package/cdn/usePlacement.B5JX9OU-.js +1 -0
  17. package/cdn/useReward.By-xuybY.js +1 -0
  18. package/dist/{GiftIcon-BmGGodb2.js → GiftIcon-JVhSFEhP.js} +1 -5
  19. package/dist/ambassador.d.ts +165 -0
  20. package/dist/ambassador.js +1814 -0
  21. package/dist/banner.js +89 -62
  22. package/dist/buttonShare.js +6 -5
  23. package/dist/buttonWallet.js +4 -3
  24. package/dist/i18n/defaults.d.ts +70 -9
  25. package/dist/i18n/defaults.js +123 -9
  26. package/dist/openInApp.js +3 -2
  27. package/dist/postPurchase.js +48 -33
  28. package/dist/sharedBaseCss.css-BkMpQeRx.js +5 -0
  29. package/dist/{usePlacement-iFDQqtJn.js → sharedCss-CPNmnpXA.js} +15 -23
  30. package/dist/{useGlobalComponents-Cj7uGBwD.js → useGlobalComponents-B3s2UQFk.js} +1 -1
  31. package/dist/{useLightDomStyles-D7bYu-ew.js → useLightDomStyles-BQ5FvCPi.js} +1 -1
  32. package/dist/usePlacement-BpaIbzun.js +21 -0
  33. package/dist/{useReward-k7RF3DhH.js → useReward-DEhiMfgl.js} +8 -2
  34. package/package.json +16 -6
  35. package/cdn/Banner.DUI-0KQP.js +0 -183
  36. package/cdn/ButtonShare.bYtZAlc0.js +0 -1
  37. package/cdn/ButtonWallet.ENPAuGPm.js +0 -40
  38. package/cdn/GiftIcon.pcCM0-Fr.js +0 -1
  39. package/cdn/OpenInAppButton.BoGl6QtG.js +0 -1
  40. package/cdn/PostPurchase.DGkoI2iK.js +0 -89
  41. package/cdn/defaults.tvSp2rcs.js +0 -58
  42. package/cdn/rewards.0JylBHNY.js +0 -1
  43. package/cdn/useGlobalComponents.DKsas1_6.js +0 -1
  44. package/cdn/useLightDomStyles.DrKjTWoi.js +0 -1
  45. package/cdn/useReward.DwuOhcD2.js +0 -1
@@ -0,0 +1,1814 @@
1
+ import { a as useClientReady, o as registerWebComponent, r as useLang, s as openSharingPage } from "./sharedCss-CPNmnpXA.js";
2
+ import { i as w } from "./rewards-DoVY1pWr.js";
3
+ import { t as useGlobalComponents } from "./useGlobalComponents-B3s2UQFk.js";
4
+ import { t as useLightDomStyles } from "./useLightDomStyles-BQ5FvCPi.js";
5
+ import { t as useReward } from "./useReward-DEhiMfgl.js";
6
+ import { componentDefaults } from "./i18n/defaults.js";
7
+ import { t as cssSource$2 } from "./sharedBaseCss.css-BkMpQeRx.js";
8
+ import { trackEvent } from "@frak-labs/core-sdk";
9
+ import { getInstallUrl } from "@frak-labs/core-sdk/actions";
10
+ import { useCallback, useEffect, useMemo, useRef, useState } from "preact/hooks";
11
+ import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
12
+ //#region src/hooks/useHostTheme.ts
13
+ const QUIET_BORDER_DISTANCE = 120;
14
+ const FLAT_FILL_DISTANCE = 30;
15
+ const READABLE_CONTRAST = 3;
16
+ const VISIBLE_CONTRAST = 1.5;
17
+ const VISIBLE_DISTANCE = 60;
18
+ const DEFAULT_ACCENT = "rgb(17, 17, 17)";
19
+ const DEFAULT_TAG_BG = "rgb(255, 255, 255)";
20
+ const TAG_TINT = .08;
21
+ const RESET_HEADING_RATIO = 1.25;
22
+ const WIDGET_WORDS = /cookie|consent|newsletter|popup|modal|sr-only|visually-hidden|skip-to/i;
23
+ const CHROME = "header,nav,[role=banner]";
24
+ const LOGO_HINT = /logo|brand|site-title|wordmark/i;
25
+ const CLIPPING_OVERFLOW = /* @__PURE__ */ new Set([
26
+ "hidden",
27
+ "clip",
28
+ "auto",
29
+ "scroll"
30
+ ]);
31
+ const FONT_ATTRIBUTE = "data-frak-amb-font";
32
+ const FONT_KNOBS = [
33
+ "h1-family",
34
+ "h1-transform",
35
+ "h2-family",
36
+ "h2-transform"
37
+ ];
38
+ const REFERENCE_HEADINGS = "[data-frak-amb-ref]";
39
+ function alphaOf(value) {
40
+ const slash = /\/\s*([\d.]+)(%?)\s*\)/.exec(value);
41
+ if (slash) return Number(slash[1]) / (slash[2] ? 100 : 1);
42
+ const parts = value.match(/[\d.]+/g);
43
+ if (!parts) return 0;
44
+ if (/^rgba/.test(value) && parts.length >= 4) return Number(parts[3]);
45
+ return 1;
46
+ }
47
+ function isTransparent(value) {
48
+ if (!value || value === "transparent") return true;
49
+ return /^(rgba?|color)\(/.test(value) && alphaOf(value) === 0;
50
+ }
51
+ function rgbOf(value) {
52
+ const parts = (value.match(/[\d.]+/g) ?? []).map(Number);
53
+ if (!/^(rgba?\(|color\(srgb )/.test(value) || parts.length < 3) return [
54
+ NaN,
55
+ NaN,
56
+ NaN
57
+ ];
58
+ const scale = /^color\(/.test(value) ? 255 : 1;
59
+ return [
60
+ parts[0] * scale,
61
+ parts[1] * scale,
62
+ parts[2] * scale
63
+ ];
64
+ }
65
+ function colourDistance(a, b) {
66
+ const [r1, g1, b1] = rgbOf(a);
67
+ const [r2, g2, b2] = rgbOf(b);
68
+ return Math.hypot(r1 - r2, g1 - g2, b1 - b2);
69
+ }
70
+ function luminance(value) {
71
+ const channel = (v) => {
72
+ const s = v / 255;
73
+ return s <= .03928 ? s / 12.92 : ((s + .055) / 1.055) ** 2.4;
74
+ };
75
+ const [r, g, b] = rgbOf(value);
76
+ return .2126 * channel(r) + .7152 * channel(g) + .0722 * channel(b);
77
+ }
78
+ function contrastRatio(a, b) {
79
+ const [hi, lo] = [luminance(a), luminance(b)].sort((x, y) => y - x);
80
+ return (hi + .05) / (lo + .05);
81
+ }
82
+ function composite(fg, bg) {
83
+ const alpha = alphaOf(fg);
84
+ if (alpha >= 1) return fg;
85
+ const [r1, g1, b1] = rgbOf(fg);
86
+ const [r2, g2, b2] = rgbOf(bg);
87
+ const mix = (x, y) => x * alpha + y * (1 - alpha);
88
+ return `rgb(${mix(r1, r2)}, ${mix(g1, g2)}, ${mix(b1, b2)})`;
89
+ }
90
+ function pageBackground() {
91
+ let node = document.body;
92
+ while (node) {
93
+ const bg = getComputedStyle(node).backgroundColor;
94
+ if (!isTransparent(bg)) return bg;
95
+ node = node.parentElement;
96
+ }
97
+ return "rgb(255, 255, 255)";
98
+ }
99
+ function names(el) {
100
+ return `${el.getAttribute("class") ?? ""} ${el.id}`;
101
+ }
102
+ function inCartForm(el) {
103
+ return el.closest("form[action*=\"/cart\"], form[action*=\"/panier\"]") !== null;
104
+ }
105
+ function inSignupForm(el) {
106
+ const form = el.closest("form");
107
+ if (!form || inCartForm(el)) return false;
108
+ return form.querySelector("input[type=\"email\"], input[name*=\"email\" i]") !== null;
109
+ }
110
+ function isOverlayBox(el) {
111
+ const role = el.getAttribute("role");
112
+ if (el.tagName === "DIALOG" || role === "dialog" || role === "alertdialog") return true;
113
+ if (el.getAttribute("aria-modal") === "true") return true;
114
+ return getComputedStyle(el).position === "fixed";
115
+ }
116
+ function insideWidget(el) {
117
+ if (inSignupForm(el)) return true;
118
+ if (el.closest("form[action*=\"/localization\"]")) return true;
119
+ const cart = inCartForm(el);
120
+ let node = el;
121
+ while (node && node !== document.body) {
122
+ if (WIDGET_WORDS.test(names(node))) return true;
123
+ if (!cart && isOverlayBox(node)) return true;
124
+ node = node.parentElement;
125
+ }
126
+ return false;
127
+ }
128
+ function backdropOf(el) {
129
+ let node = el.parentElement;
130
+ while (node) {
131
+ const bg = getComputedStyle(node).backgroundColor;
132
+ if (!isTransparent(bg)) return bg;
133
+ node = node.parentElement;
134
+ }
135
+ return pageBackground();
136
+ }
137
+ function isClippedAway(el, rect) {
138
+ let node = el.parentElement;
139
+ while (node) {
140
+ const style = getComputedStyle(node);
141
+ if (CLIPPING_OVERFLOW.has(style.overflow) || CLIPPING_OVERFLOW.has(style.overflowX) || CLIPPING_OVERFLOW.has(style.overflowY)) {
142
+ const clip = node.getBoundingClientRect();
143
+ if (rect.bottom <= clip.top || rect.top >= clip.bottom || rect.right <= clip.left || rect.left >= clip.right) return true;
144
+ }
145
+ node = node.parentElement;
146
+ }
147
+ return false;
148
+ }
149
+ function isOnScreen(el) {
150
+ const rect = el.getBoundingClientRect();
151
+ if (rect.right <= 0 || rect.left >= window.innerWidth) return false;
152
+ return !isClippedAway(el, rect);
153
+ }
154
+ function isBrandButton(el) {
155
+ if (insideWidget(el)) return false;
156
+ if (el.offsetWidth < 80 || el.offsetHeight < 20) return false;
157
+ if (!isOnScreen(el)) return false;
158
+ const style = getComputedStyle(el);
159
+ if (style.visibility === "hidden") return false;
160
+ if (isTransparent(style.backgroundColor)) return false;
161
+ const backdrop = backdropOf(el);
162
+ return colourDistance(composite(style.backgroundColor, backdrop), backdrop) > FLAT_FILL_DISTANCE;
163
+ }
164
+ function findPrimaryButton(page) {
165
+ const cartSubmit = document.querySelector("form[action*=\"/cart/add\"] [type=\"submit\"], form[action*=\"/cart\"] button[type=\"submit\"]");
166
+ if (cartSubmit && !page.contains(cartSubmit) && isBrandButton(cartSubmit)) return cartSubmit;
167
+ return Array.from(document.querySelectorAll("button, .btn, [type=\"submit\"], a.button, a.wp-block-button__link, a.et_pb_button")).filter((el) => !page.contains(el) && isBrandButton(el)).sort((a, b) => b.offsetWidth * b.offsetHeight - a.offsetWidth * a.offsetHeight)[0];
168
+ }
169
+ function isQuietContainer(el, page, pageBg) {
170
+ if (page.contains(el)) return false;
171
+ const rect = el.getBoundingClientRect();
172
+ if (rect.width < 120 || rect.height < 60) return false;
173
+ if (rect.width * rect.height > 5e5) return false;
174
+ const style = getComputedStyle(el);
175
+ if (style.position === "fixed" || style.position === "sticky") return false;
176
+ const bordered = Number.parseFloat(style.borderTopWidth) > 0 && !isTransparent(style.borderTopColor);
177
+ const filled = !isTransparent(style.backgroundColor) && style.backgroundColor !== pageBg;
178
+ if (!bordered && !filled) return false;
179
+ return !bordered || colourDistance(style.borderTopColor, pageBg) <= QUIET_BORDER_DISTANCE;
180
+ }
181
+ function sampleCardRadius(page) {
182
+ const pageBg = pageBackground();
183
+ const tally = /* @__PURE__ */ new Map();
184
+ for (const el of document.querySelectorAll("div,section,article,li,label")) {
185
+ if (!isQuietContainer(el, page, pageBg)) continue;
186
+ const radius = getComputedStyle(el).borderTopLeftRadius;
187
+ tally.set(radius, (tally.get(radius) ?? 0) + 1);
188
+ }
189
+ return Array.from(tally).sort((a, b) => b[1] - a[1])[0]?.[0];
190
+ }
191
+ function isContentHeading(el) {
192
+ if (el.closest(CHROME)) return false;
193
+ return !LOGO_HINT.test(`${el.className} ${el.id}`);
194
+ }
195
+ function hostElement(page, selector) {
196
+ const theirs = Array.from(document.querySelectorAll(selector)).filter((el) => !page.contains(el));
197
+ const reference = theirs.find((el) => el.closest(REFERENCE_HEADINGS));
198
+ if (reference) return reference;
199
+ return theirs.filter((el) => el.offsetHeight > 0).find(isContentHeading) ?? theirs.find(isContentHeading);
200
+ }
201
+ const MAX_SIZE = {
202
+ h1: "3.2em",
203
+ h2: "2em"
204
+ };
205
+ function typographyOf(el, role, backdrop, withColour) {
206
+ if (!el) return [];
207
+ const s = getComputedStyle(el);
208
+ const max = MAX_SIZE[role];
209
+ const knobs = [
210
+ [`${role}-size`, max ? `min(${s.fontSize}, ${max})` : s.fontSize],
211
+ [`${role}-weight`, s.fontWeight],
212
+ [`${role}-spacing`, s.letterSpacing]
213
+ ];
214
+ const readable = contrastRatio(composite(s.color, backdrop), backdrop) >= READABLE_CONTRAST;
215
+ if (withColour && readable) knobs.push([`${role}-color`, s.color]);
216
+ return knobs;
217
+ }
218
+ function headingKnobs(el, role, source) {
219
+ if (!el) return [];
220
+ const s = getComputedStyle(el);
221
+ const knobs = [
222
+ ...typographyOf(el, role, source.backdrop, true),
223
+ [`${role}-family`, s.fontFamily],
224
+ [`${role}-transform`, s.textTransform]
225
+ ];
226
+ const bodySize = Number.parseFloat(source.bodySize);
227
+ return role === "h1" && Number.parseFloat(s.fontSize) <= RESET_HEADING_RATIO * bodySize ? knobs.filter(([name]) => name !== "h1-size") : knobs;
228
+ }
229
+ function sampleTheme(page) {
230
+ const pageBg = pageBackground();
231
+ const button = findPrimaryButton(page);
232
+ const backdrop = backdropOf(page);
233
+ const ours = getComputedStyle(page);
234
+ return {
235
+ backdrop,
236
+ text: composite(ours.color, backdrop),
237
+ bodySize: ours.fontSize,
238
+ buttonBg: button ? getComputedStyle(button).backgroundColor : pageBg,
239
+ h1: hostElement(page, "h1"),
240
+ h2: hostElement(page, "h2"),
241
+ button,
242
+ radius: sampleCardRadius(page)
243
+ };
244
+ }
245
+ function accentKnobs(source) {
246
+ const from = source.button ? getComputedStyle(source.button) : void 0;
247
+ const fill = composite(from?.backgroundColor ?? DEFAULT_ACCENT, source.backdrop);
248
+ const contrast = contrastRatio(fill, source.backdrop);
249
+ if (contrast < VISIBLE_CONTRAST && colourDistance(fill, source.backdrop) <= VISIBLE_DISTANCE) return [["accent", source.text], ["accent-ink", source.backdrop]];
250
+ if (!from) return [];
251
+ const knobs = [["accent", from.backgroundColor], ["accent-ink", from.color]];
252
+ if (!(contrast >= READABLE_CONTRAST)) knobs.push(["accent-text", "currentColor"]);
253
+ return knobs;
254
+ }
255
+ /** The tag keeps our inherited text colour, so light text needs a dark tag. */
256
+ function tagKnobs(source) {
257
+ if (!(contrastRatio(source.text, DEFAULT_TAG_BG) < READABLE_CONTRAST)) return [];
258
+ const [r, g, b] = rgbOf(source.text);
259
+ return [["tag-bg", composite(`rgba(${r}, ${g}, ${b}, ${TAG_TINT})`, source.backdrop)]];
260
+ }
261
+ function knobsFrom(source) {
262
+ const knobs = [
263
+ ...headingKnobs(source.h1, "h1", source),
264
+ ...headingKnobs(source.h2, "h2", source),
265
+ ...typographyOf(source.button, "cta", source.buttonBg, false)
266
+ ];
267
+ if (source.radius) knobs.push(["radius", source.radius]);
268
+ knobs.push(...accentKnobs(source), ...tagKnobs(source));
269
+ if (source.button) {
270
+ const from = getComputedStyle(source.button);
271
+ knobs.push(["cta-radius", from.borderRadius.split(" ")[0]], ["cta-transform", from.textTransform]);
272
+ }
273
+ return knobs;
274
+ }
275
+ function knobsSignature(knobs) {
276
+ return knobs.map(([name, value]) => `${name}=${value}`).sort().join("|");
277
+ }
278
+ function writeKnobs(anchor, knobs) {
279
+ const current = getComputedStyle(anchor);
280
+ const merchantSet = new Set(knobs.map(([name]) => name).filter((name) => current.getPropertyValue(`--frak-amb-${name}`).trim()));
281
+ for (const [name, value] of knobs) {
282
+ if (!value || isTransparent(value)) continue;
283
+ if (merchantSet.has(name)) continue;
284
+ if (name === "accent-text" && merchantSet.has("accent")) continue;
285
+ anchor.style.setProperty(`--frak-amb-${name}`, value);
286
+ }
287
+ markFontKnobs(anchor);
288
+ }
289
+ /**
290
+ * Heading font rules apply only behind this attribute: an unset `var()` in
291
+ * `font-family` computes to `inherit` and would beat the theme's `h1 {}` rule.
292
+ */
293
+ function markFontKnobs(anchor) {
294
+ const resolved = getComputedStyle(anchor);
295
+ const present = FONT_KNOBS.filter((name) => resolved.getPropertyValue(`--frak-amb-${name}`).trim());
296
+ if (present.length) anchor.setAttribute(FONT_ATTRIBUTE, present.join(" "));
297
+ else anchor.removeAttribute(FONT_ATTRIBUTE);
298
+ }
299
+ function nextFrame() {
300
+ return new Promise((resolve) => {
301
+ requestAnimationFrame(() => resolve());
302
+ });
303
+ }
304
+ async function settled() {
305
+ if (document.fonts?.ready) await document.fonts.ready;
306
+ await nextFrame();
307
+ }
308
+ function useHostTheme(target) {
309
+ useEffect(() => {
310
+ let cancelled = false;
311
+ const run = async () => {
312
+ try {
313
+ await settled();
314
+ if (cancelled) return;
315
+ const anchor = target.current;
316
+ if (!anchor) return;
317
+ const first = knobsFrom(sampleTheme(anchor));
318
+ await nextFrame();
319
+ if (cancelled) return;
320
+ const second = knobsFrom(sampleTheme(anchor));
321
+ if (knobsSignature(first) !== knobsSignature(second)) return;
322
+ writeKnobs(anchor, first);
323
+ } catch {}
324
+ };
325
+ run();
326
+ return () => {
327
+ cancelled = true;
328
+ };
329
+ }, [target]);
330
+ }
331
+ //#endregion
332
+ //#region \0ve-inline:src/components/Ambassador/Ambassador.css.ts.vanilla.js
333
+ const cssSource$1 = `.Ambassador_panel__awpcg00 {
334
+ background-color: var(--frak-amb-surface, #1111110a);
335
+ border: 1px solid var(--frak-amb-border, #11111126);
336
+ border-radius: var(--frak-amb-radius, 12px);
337
+ }
338
+
339
+ .Ambassador_root__awpcg01 {
340
+ text-align: start;
341
+ box-sizing: border-box;
342
+ flex-direction: column;
343
+ gap: clamp(3em, 7vw, 5.5em);
344
+ width: 100%;
345
+ max-width: 100%;
346
+ display: flex;
347
+ }
348
+
349
+ .Ambassador_ctaButton__awpcg02 {
350
+ border-radius: var(--frak-amb-cta-radius, 999px);
351
+ background-color: var(--frak-amb-cta-bg, var(--frak-amb-accent, #111));
352
+ color: var(--frak-amb-accent-ink, #fff);
353
+ font-size: var(--frak-amb-cta-size, .9em);
354
+ font-weight: var(--frak-amb-cta-weight, 700);
355
+ letter-spacing: var(--frak-amb-cta-spacing, .06em);
356
+ text-transform: var(--frak-amb-cta-transform, uppercase);
357
+ cursor: pointer;
358
+ justify-content: center;
359
+ align-items: center;
360
+ padding: .95em 2em;
361
+ text-decoration: none;
362
+ display: inline-flex;
363
+ }
364
+
365
+ .Ambassador_ctaButton__awpcg02:hover {
366
+ opacity: .85;
367
+ }
368
+
369
+ .Ambassador_ctaButton__awpcg02:disabled {
370
+ opacity: .5;
371
+ cursor: default;
372
+ }
373
+
374
+ .Ambassador_ctaButton__awpcg02:focus-visible {
375
+ outline-color: #000;
376
+ box-shadow: 0 0 0 2px #fff;
377
+ }
378
+
379
+ .Ambassador_region__awpcg03 {
380
+ align-content: start;
381
+ gap: .85em;
382
+ min-width: 0;
383
+ margin: 0;
384
+ display: grid;
385
+ }
386
+
387
+ .Ambassador_centeredRegion__awpcg04 {
388
+ text-align: center;
389
+ justify-items: center;
390
+ }
391
+
392
+ .Ambassador_regionTitle__awpcg05 {
393
+ font-size: var(--frak-amb-h2-size, clamp(1.4em, 2.6vw, 2em));
394
+ line-height: 1.2;
395
+ font-weight: var(--frak-amb-h2-weight, inherit);
396
+ letter-spacing: var(--frak-amb-h2-spacing, normal);
397
+ color: var(--frak-amb-h2-color, inherit);
398
+ margin: 0;
399
+ }
400
+
401
+ [data-frak-amb-font~="h2-family"] .Ambassador_regionTitle__awpcg05 {
402
+ font-family: var(--frak-amb-h2-family);
403
+ }
404
+
405
+ [data-frak-amb-font~="h2-transform"] .Ambassador_regionTitle__awpcg05 {
406
+ text-transform: var(--frak-amb-h2-transform);
407
+ }
408
+
409
+ .Ambassador_lede__awpcg06 {
410
+ opacity: .75;
411
+ max-width: 52ch;
412
+ margin: 0;
413
+ }
414
+
415
+ .Ambassador_mutedSmall__awpcg07 {
416
+ opacity: .7;
417
+ margin: 0;
418
+ font-size: .85em;
419
+ }
420
+
421
+ .Ambassador_muted__awpcg08 {
422
+ opacity: .7;
423
+ margin: 0;
424
+ }
425
+
426
+ .Ambassador_card__awpcg09 {
427
+ align-content: start;
428
+ gap: .5em;
429
+ padding: 1.4em;
430
+ display: grid;
431
+ }
432
+
433
+ .Ambassador_amountUnit__awpcg0a {
434
+ letter-spacing: normal;
435
+ font-size: .32em;
436
+ font-weight: 700;
437
+ }
438
+
439
+ .Ambassador_amountWords__awpcg0b {
440
+ letter-spacing: -.02em;
441
+ font-size: .45em;
442
+ line-height: 1.1;
443
+ display: inline-block;
444
+ }
445
+
446
+ .Ambassador_bigFigure__awpcg0c {
447
+ letter-spacing: -.04em;
448
+ color: var(--frak-amb-accent-text, var(--frak-amb-accent, #111));
449
+ font-weight: 800;
450
+ line-height: .85;
451
+ }
452
+
453
+ .Ambassador_hero__awpcg0d {
454
+ grid-template-columns: repeat(auto-fit, minmax(min(18em, 100%), 1fr));
455
+ align-items: center;
456
+ gap: 2.5em;
457
+ }
458
+
459
+ .Ambassador_heroBody__awpcg0e {
460
+ align-content: start;
461
+ justify-items: start;
462
+ gap: 1em;
463
+ min-width: 0;
464
+ display: grid;
465
+ }
466
+
467
+ .Ambassador_heroTitle__awpcg0f {
468
+ font-size: var(--frak-amb-h1-size, clamp(2em, 4.6vw, 3.2em));
469
+ line-height: 1.1;
470
+ font-weight: var(--frak-amb-h1-weight, inherit);
471
+ letter-spacing: var(--frak-amb-h1-spacing, normal);
472
+ color: var(--frak-amb-h1-color, inherit);
473
+ margin: 0;
474
+ }
475
+
476
+ [data-frak-amb-font~="h1-family"] .Ambassador_heroTitle__awpcg0f {
477
+ font-family: var(--frak-amb-h1-family);
478
+ }
479
+
480
+ [data-frak-amb-font~="h1-transform"] .Ambassador_heroTitle__awpcg0f {
481
+ text-transform: var(--frak-amb-h1-transform);
482
+ }
483
+
484
+ .Ambassador_heroArt__awpcg0g {
485
+ background: var(--frak-amb-image, none) center/cover;
486
+ place-items: center;
487
+ padding: 1em;
488
+ display: grid;
489
+ position: relative;
490
+ }
491
+
492
+ .Ambassador_heroArtFramed__awpcg0h {
493
+ aspect-ratio: 4 / 5;
494
+ align-content: end;
495
+ }
496
+
497
+ .Ambassador_heroImage__awpcg0i {
498
+ object-fit: cover;
499
+ position: absolute;
500
+ inset: 0;
501
+ border-radius: var(--frak-amb-radius, 12px) !important;
502
+ border: 0 !important;
503
+ width: 100% !important;
504
+ max-width: none !important;
505
+ height: 100% !important;
506
+ margin: 0 !important;
507
+ }
508
+
509
+ .Ambassador_heroTag__awpcg0j {
510
+ box-sizing: border-box;
511
+ border-radius: var(--frak-amb-radius, 12px);
512
+ background-color: var(--frak-amb-tag-bg, #fff);
513
+ text-align: start;
514
+ flex-wrap: wrap;
515
+ align-items: center;
516
+ gap: .75em;
517
+ width: 100%;
518
+ padding: .9em 1em;
519
+ display: flex;
520
+ position: relative;
521
+ }
522
+
523
+ .Ambassador_heroTagMain__awpcg0k {
524
+ display: grid;
525
+ }
526
+
527
+ .Ambassador_heroAmount__awpcg0l {
528
+ color: var(--frak-amb-accent-text, var(--frak-amb-accent, #111));
529
+ font-size: 1.4em;
530
+ line-height: 1.1;
531
+ }
532
+
533
+ .Ambassador_heroRewardCaption__awpcg0m {
534
+ opacity: .7;
535
+ font-size: .8em;
536
+ }
537
+
538
+ .Ambassador_heroPill__awpcg0n {
539
+ border-radius: var(--frak-amb-cta-radius, 999px);
540
+ background-color: var(--frak-amb-accent, #111);
541
+ color: var(--frak-amb-accent-ink, #fff);
542
+ letter-spacing: .04em;
543
+ margin-inline-start: auto;
544
+ padding: .45em .8em;
545
+ font-size: .72em;
546
+ font-weight: 700;
547
+ }
548
+
549
+ .Ambassador_rewardHeading__awpcg0o {
550
+ font-size: 1em;
551
+ }
552
+
553
+ .Ambassador_rewardHeadingText__awpcg0p {
554
+ font-size: var(--frak-amb-h2-size, clamp(1.4em, 2.6vw, 2em));
555
+ }
556
+
557
+ .Ambassador_rewardAmount__awpcg0q {
558
+ margin-block-end: .12em;
559
+ font-size: clamp(3.5em, 14vw, 7em);
560
+ display: block;
561
+ }
562
+
563
+ .Ambassador_stepsGrid__awpcg0r {
564
+ grid-template-columns: repeat(auto-fit, minmax(min(15em, 100%), 1fr));
565
+ gap: 1.25em;
566
+ display: grid;
567
+ }
568
+
569
+ .Ambassador_stepNumber__awpcg0s {
570
+ border-radius: var(--frak-amb-cta-radius, 999px);
571
+ background-color: var(--frak-amb-accent, #111);
572
+ block-size: 1.9em;
573
+ inline-size: 1.9em;
574
+ color: var(--frak-amb-accent-ink, #fff);
575
+ place-items: center;
576
+ margin: 0;
577
+ font-size: .9em;
578
+ font-weight: 700;
579
+ display: grid;
580
+ }
581
+
582
+ .Ambassador_stepIcon__awpcg0t {
583
+ object-fit: contain;
584
+ width: 40px;
585
+ height: 40px;
586
+ }
587
+
588
+ .Ambassador_stepTitle__awpcg0u {
589
+ margin: 0;
590
+ font-size: 1.05em;
591
+ line-height: 1.3;
592
+ }
593
+
594
+ .Ambassador_winWinCards__awpcg0v {
595
+ grid-template-columns: repeat(auto-fit, minmax(min(15em, 100%), 1fr));
596
+ gap: 1.25em;
597
+ width: 100%;
598
+ max-width: 40em;
599
+ display: grid;
600
+ }
601
+
602
+ .Ambassador_winWinCard__awpcg0w {
603
+ text-align: center;
604
+ justify-items: center;
605
+ }
606
+
607
+ .Ambassador_winWinCardAmount__awpcg0x {
608
+ margin: 0;
609
+ font-size: clamp(2em, 6vw, 3em);
610
+ }
611
+
612
+ .Ambassador_referralCta__awpcg0y {
613
+ justify-self: start;
614
+ }
615
+
616
+ .Ambassador_store__awpcg0z {
617
+ grid-template-columns: repeat(auto-fit, minmax(min(14em, 100%), 1fr));
618
+ align-items: center;
619
+ gap: 1.75em;
620
+ padding: 1.75em;
621
+ display: grid;
622
+ }
623
+
624
+ .Ambassador_storeBody__awpcg010 {
625
+ align-content: start;
626
+ gap: .75em;
627
+ min-width: 0;
628
+ display: grid;
629
+ }
630
+
631
+ .Ambassador_storeQr__awpcg011 {
632
+ text-align: center;
633
+ justify-items: center;
634
+ gap: .5em;
635
+ margin: 0;
636
+ display: grid;
637
+ }
638
+
639
+ .Ambassador_storeBadges__awpcg012 {
640
+ flex-wrap: wrap;
641
+ align-items: center;
642
+ gap: .75em;
643
+ display: flex;
644
+ }
645
+
646
+ .Ambassador_storeBadge__awpcg013 {
647
+ border-radius: 8px;
648
+ align-items: center;
649
+ line-height: 0;
650
+ text-decoration: none;
651
+ display: inline-flex;
652
+ overflow: hidden;
653
+ color: #fff !important;
654
+ background-color: #000 !important;
655
+ }
656
+
657
+ .Ambassador_storeBadge__awpcg013:focus-visible {
658
+ outline-color: #000;
659
+ box-shadow: 0 0 0 2px #fff;
660
+ }
661
+
662
+ .Ambassador_storeBadgeArt__awpcg014 {
663
+ display: block;
664
+ border: 0 !important;
665
+ border-radius: 0 !important;
666
+ width: auto !important;
667
+ max-width: none !important;
668
+ height: 40px !important;
669
+ margin: 0 !important;
670
+ }
671
+
672
+ .Ambassador_faqItem__awpcg015 {
673
+ border-bottom: 1px solid var(--frak-amb-border, #11111126);
674
+ padding: .9em 0;
675
+ }
676
+
677
+ .Ambassador_faqQuestion__awpcg016 {
678
+ cursor: pointer;
679
+ font-weight: 700;
680
+ list-style: none;
681
+ }
682
+
683
+ .Ambassador_faqQuestion__awpcg016::-webkit-details-marker {
684
+ display: none;
685
+ }
686
+
687
+ .Ambassador_faqQuestion__awpcg016:after {
688
+ content: "+";
689
+ float: right;
690
+ color: var(--frak-amb-accent-text, var(--frak-amb-accent, #111));
691
+ margin-inline-start: 1em;
692
+ font-weight: 700;
693
+ }
694
+
695
+ .Ambassador_faqItem__awpcg015[open] .Ambassador_faqQuestion__awpcg016:after {
696
+ content: "–";
697
+ }
698
+
699
+ .Ambassador_faqAnswer__awpcg017 {
700
+ opacity: .75;
701
+ margin: .6em 0 0;
702
+ }
703
+
704
+ .Ambassador_faqAttribution__awpcg018 {
705
+ text-align: center;
706
+ }
707
+
708
+ .Ambassador_frakLink__awpcg019 {
709
+ color: inherit;
710
+ text-underline-offset: .15em;
711
+ text-decoration: underline;
712
+ }
713
+
714
+ @supports (color: color-mix(in srgb, red 4%, transparent)) {
715
+ .Ambassador_panel__awpcg00 {
716
+ background-color: var(--frak-amb-surface, color-mix(in srgb, var(--frak-amb-accent, #111) 4%, transparent));
717
+ border: 1px solid var(--frak-amb-border, color-mix(in srgb, var(--frak-amb-accent, #111) 15%, transparent));
718
+ }
719
+
720
+ .Ambassador_faqItem__awpcg015 {
721
+ border-bottom: 1px solid var(--frak-amb-border, color-mix(in srgb, var(--frak-amb-accent, #111) 15%, transparent));
722
+ }
723
+ }
724
+ `;
725
+ //#endregion
726
+ //#region src/components/Ambassador/Ambassador.css.ts
727
+ var amountUnit = "Ambassador_amountUnit__awpcg0a";
728
+ var amountWords = "Ambassador_amountWords__awpcg0b";
729
+ var faq = "Ambassador_region__awpcg03";
730
+ var faqAnswer = "Ambassador_faqAnswer__awpcg017";
731
+ var faqAttribution = "Ambassador_faqAttribution__awpcg018 Ambassador_mutedSmall__awpcg07";
732
+ var faqItem = "Ambassador_faqItem__awpcg015";
733
+ var faqQuestion = "Ambassador_faqQuestion__awpcg016";
734
+ var faqTitle = "Ambassador_regionTitle__awpcg05";
735
+ var frakLink = "Ambassador_frakLink__awpcg019";
736
+ var hero = "Ambassador_hero__awpcg0d Ambassador_region__awpcg03";
737
+ var heroAmount = "Ambassador_heroAmount__awpcg0l";
738
+ var heroArt = "Ambassador_heroArt__awpcg0g Ambassador_panel__awpcg00";
739
+ var heroArtFramed = "Ambassador_heroArtFramed__awpcg0h";
740
+ var heroBody = "Ambassador_heroBody__awpcg0e";
741
+ var heroCta = "Ambassador_ctaButton__awpcg02 sharedBaseCss_buttonReset__7cswil0";
742
+ var heroEyebrow = "Ambassador_mutedSmall__awpcg07";
743
+ var heroFaces = "Ambassador_mutedSmall__awpcg07";
744
+ var heroImage = "Ambassador_heroImage__awpcg0i";
745
+ var heroLede = "Ambassador_lede__awpcg06";
746
+ var heroPill = "Ambassador_heroPill__awpcg0n";
747
+ var heroRewardCaption = "Ambassador_heroRewardCaption__awpcg0m";
748
+ var heroTag = "Ambassador_heroTag__awpcg0j";
749
+ var heroTagMain = "Ambassador_heroTagMain__awpcg0k";
750
+ var heroTitle = "Ambassador_heroTitle__awpcg0f";
751
+ var referral = "Ambassador_region__awpcg03";
752
+ var referralCta = "Ambassador_referralCta__awpcg0y Ambassador_ctaButton__awpcg02 sharedBaseCss_buttonReset__7cswil0";
753
+ var referralLede = "Ambassador_lede__awpcg06";
754
+ var referralTitle = "Ambassador_regionTitle__awpcg05";
755
+ var reward = "Ambassador_centeredRegion__awpcg04 Ambassador_region__awpcg03";
756
+ var rewardAmount = "Ambassador_rewardAmount__awpcg0q Ambassador_bigFigure__awpcg0c";
757
+ var rewardCaption = "Ambassador_mutedSmall__awpcg07";
758
+ var rewardCta = "Ambassador_ctaButton__awpcg02 sharedBaseCss_buttonReset__7cswil0";
759
+ var rewardEyebrow = "Ambassador_mutedSmall__awpcg07";
760
+ var rewardFooter = "Ambassador_mutedSmall__awpcg07";
761
+ var rewardHeading = "Ambassador_rewardHeading__awpcg0o Ambassador_regionTitle__awpcg05";
762
+ var rewardHeadingText = "Ambassador_rewardHeadingText__awpcg0p";
763
+ var rewardLede = "Ambassador_lede__awpcg06";
764
+ var root = "Ambassador_root__awpcg01";
765
+ var step = "Ambassador_card__awpcg09 Ambassador_panel__awpcg00";
766
+ var stepDescription = "Ambassador_muted__awpcg08";
767
+ var stepIcon = "Ambassador_stepIcon__awpcg0t";
768
+ var stepNumber = "Ambassador_stepNumber__awpcg0s";
769
+ var stepTitle = "Ambassador_stepTitle__awpcg0u";
770
+ var steps = "Ambassador_region__awpcg03";
771
+ var stepsGrid = "Ambassador_stepsGrid__awpcg0r";
772
+ var stepsLede = "Ambassador_lede__awpcg06";
773
+ var stepsTitle = "Ambassador_regionTitle__awpcg05";
774
+ var store = "Ambassador_store__awpcg0z Ambassador_panel__awpcg00";
775
+ var storeBadge = "Ambassador_storeBadge__awpcg013 sharedBaseCss_buttonReset__7cswil0";
776
+ var storeBadgeArt = "Ambassador_storeBadgeArt__awpcg014";
777
+ var storeBadges = "Ambassador_storeBadges__awpcg012";
778
+ var storeBody = "Ambassador_storeBody__awpcg010";
779
+ var storeLede = "Ambassador_lede__awpcg06";
780
+ var storeQr = "Ambassador_storeQr__awpcg011";
781
+ var storeQrCaption = "Ambassador_mutedSmall__awpcg07";
782
+ var storeTitle = "Ambassador_regionTitle__awpcg05";
783
+ var winWin = "Ambassador_centeredRegion__awpcg04 Ambassador_region__awpcg03";
784
+ var winWinCard = "Ambassador_winWinCard__awpcg0w Ambassador_card__awpcg09 Ambassador_panel__awpcg00";
785
+ var winWinCardAmount = "Ambassador_winWinCardAmount__awpcg0x Ambassador_bigFigure__awpcg0c";
786
+ var winWinCardDescription = "Ambassador_muted__awpcg08";
787
+ var winWinCardLabel = "Ambassador_mutedSmall__awpcg07";
788
+ var winWinCards = "Ambassador_winWinCards__awpcg0v";
789
+ var winWinLede = "Ambassador_lede__awpcg06";
790
+ var winWinTitle = "Ambassador_regionTitle__awpcg05";
791
+ const cssSource = cssSource$1;
792
+ //#endregion
793
+ //#region src/components/Ambassador/InstallQr.tsx
794
+ const WIDE_QUERY = "(min-width: 768px)";
795
+ const QUIET_ZONE = 4;
796
+ const ECC = "low";
797
+ const QR_SIZE = 200;
798
+ function InstallQr({ url, label, caption, class: className, captionClass }) {
799
+ const [query] = useState(readWideQuery);
800
+ const [wide, setWide] = useState(() => query?.matches ?? false);
801
+ const [grid, setGrid] = useState(null);
802
+ useEffect(() => {
803
+ if (!query) return;
804
+ const onChange = (event) => setWide(event.matches);
805
+ query.addEventListener("change", onChange);
806
+ return () => query.removeEventListener("change", onChange);
807
+ }, [query]);
808
+ useEffect(() => {
809
+ if (!wide || !url) return;
810
+ let cancelled = false;
811
+ import("qr").then(({ encodeQR }) => {
812
+ if (cancelled) return;
813
+ setGrid(encodeQR(url, "raw", {
814
+ border: QUIET_ZONE,
815
+ ecc: ECC
816
+ }));
817
+ }).catch(() => {});
818
+ return () => {
819
+ cancelled = true;
820
+ };
821
+ }, [wide, url]);
822
+ if (!wide || !url || !grid) return null;
823
+ const edge = grid.length;
824
+ return /* @__PURE__ */ jsxs("figure", {
825
+ class: className,
826
+ children: [/* @__PURE__ */ jsxs("svg", {
827
+ width: QR_SIZE,
828
+ height: QR_SIZE,
829
+ viewBox: `0 0 ${edge} ${edge}`,
830
+ xmlns: "http://www.w3.org/2000/svg",
831
+ role: "img",
832
+ "aria-label": label,
833
+ focusable: "false",
834
+ children: [/* @__PURE__ */ jsx("rect", {
835
+ width: edge,
836
+ height: edge,
837
+ fill: "#fff"
838
+ }), /* @__PURE__ */ jsx("path", {
839
+ d: modulesPath(grid),
840
+ fill: "#000"
841
+ })]
842
+ }), /* @__PURE__ */ jsx("figcaption", {
843
+ class: captionClass,
844
+ children: caption
845
+ })]
846
+ });
847
+ }
848
+ function readWideQuery() {
849
+ if (typeof window === "undefined" || typeof window.matchMedia !== "function") return null;
850
+ return window.matchMedia(WIDE_QUERY);
851
+ }
852
+ function modulesPath(grid) {
853
+ let path = "";
854
+ for (let row = 0; row < grid.length; row++) {
855
+ const cells = grid[row];
856
+ for (let col = 0; col < cells.length; col++) if (cells[col]) path += `M${col},${row}h1v1h-1z`;
857
+ }
858
+ return path;
859
+ }
860
+ //#endregion
861
+ //#region src/components/Ambassador/storeBadges.tsx
862
+ function AppStoreBadgeArtFr(props) {
863
+ return /* @__PURE__ */ jsx("svg", {
864
+ "aria-hidden": "true",
865
+ xmlns: "http://www.w3.org/2000/svg",
866
+ viewBox: "0 0 126.50751 40",
867
+ ...props,
868
+ children: /* @__PURE__ */ jsxs("g", { children: [
869
+ /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("path", {
870
+ d: "M116.97821,0H9.53468c-.3667,0-.729,0-1.09473.002-.30615.002-.60986.00781-.91895.0127A13.21476,13.21476,0,0,0,5.5171.19141a6.66509,6.66509,0,0,0-1.90088.627A6.43779,6.43779,0,0,0,1.99757,1.99707,6.25844,6.25844,0,0,0,.81935,3.61816a6.60119,6.60119,0,0,0-.625,1.90332,12.993,12.993,0,0,0-.1792,2.002C.00587,7.83008.00489,8.1377,0,8.44434V31.5586c.00489.3105.00587.6113.01515.9219a12.99232,12.99232,0,0,0,.1792,2.0019,6.58756,6.58756,0,0,0,.625,1.9043A6.20778,6.20778,0,0,0,1.99757,38.001a6.27445,6.27445,0,0,0,1.61865,1.1787,6.70082,6.70082,0,0,0,1.90088.6308,13.45514,13.45514,0,0,0,2.0039.1768c.30909.0068.6128.0107.91895.0107C8.80567,40,9.168,40,9.53468,40H116.97821c.3594,0,.7246,0,1.084-.002.3047,0,.6172-.0039.9219-.0107a13.279,13.279,0,0,0,2-.1768,6.80432,6.80432,0,0,0,1.9082-.6308,6.27742,6.27742,0,0,0,1.6172-1.1787,6.39482,6.39482,0,0,0,1.1816-1.6143,6.60413,6.60413,0,0,0,.6191-1.9043,13.50641,13.50641,0,0,0,.1856-2.0019c.0039-.3106.0039-.6114.0039-.9219.0078-.3633.0078-.7246.0078-1.0938V9.53613c0-.36621,0-.72949-.0078-1.09179,0-.30664,0-.61426-.0039-.9209a13.50709,13.50709,0,0,0-.1856-2.002,6.6177,6.6177,0,0,0-.6191-1.90332,6.46619,6.46619,0,0,0-2.7988-2.7998,6.76753,6.76753,0,0,0-1.9082-.627,13.04394,13.04394,0,0,0-2-.17676c-.3047-.00488-.6172-.01074-.9219-.01269-.3594-.002-.7246-.002-1.084-.002Z",
871
+ fill: "#a6a6a6"
872
+ }), /* @__PURE__ */ jsx("path", { d: "M8.44482,39.125c-.30467,0-.602-.0039-.90428-.0107a12.68714,12.68714,0,0,1-1.86914-.1631,5.88381,5.88381,0,0,1-1.65674-.5479,5.40573,5.40573,0,0,1-1.397-1.0166,5.32082,5.32082,0,0,1-1.02051-1.3965,5.72186,5.72186,0,0,1-.543-1.6572,12.41351,12.41351,0,0,1-.1665-1.875c-.00634-.2109-.01464-.9131-.01464-.9131V8.44434S.88185,7.75293.8877,7.5498a12.37138,12.37138,0,0,1,.16552-1.87207,5.75577,5.75577,0,0,1,.54347-1.6621A5.37365,5.37365,0,0,1,2.61182,2.61768,5.56562,5.56562,0,0,1,4.01417,1.59521a5.82309,5.82309,0,0,1,1.65332-.54394A12.58579,12.58579,0,0,1,7.543.88721L8.44532.875h109.612l.9131.0127a12.38493,12.38493,0,0,1,1.8584.16259,5.93833,5.93833,0,0,1,1.6709.54785,5.59375,5.59375,0,0,1,2.415,2.41993,5.76267,5.76267,0,0,1,.5352,1.64892,12.995,12.995,0,0,1,.1738,1.88721c.0029.2832.0029.5874.0029.89014.0079.375.0079.73193.0079,1.09179V30.4648c0,.3633,0,.7178-.0079,1.0752,0,.3252,0,.6231-.0039.9297a12.73126,12.73126,0,0,1-.1709,1.8535,5.739,5.739,0,0,1-.54,1.67,5.48029,5.48029,0,0,1-1.0156,1.3857,5.4129,5.4129,0,0,1-1.3994,1.0225,5.86168,5.86168,0,0,1-1.668.5498,12.54218,12.54218,0,0,1-1.8692.1631c-.2929.0068-.5996.0107-.8974.0107l-1.084.002Z" })] }),
873
+ /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("path", {
874
+ d: "M24.7718,20.30068a4.94881,4.94881,0,0,1,2.35656-4.15206,5.06566,5.06566,0,0,0-3.99116-2.15768c-1.67924-.17626-3.30719,1.00483-4.1629,1.00483-.87227,0-2.18977-.98733-3.6085-.95814a5.31529,5.31529,0,0,0-4.47292,2.72787c-1.934,3.34842-.49141,8.26947,1.3612,10.97608.9269,1.32535,2.01018,2.8058,3.42763,2.7533,1.38706-.05753,1.9051-.88448,3.5794-.88448,1.65876,0,2.14479.88448,3.591.8511,1.48838-.02416,2.42613-1.33124,3.32051-2.66914A10.962,10.962,0,0,0,27.691,24.69985,4.78205,4.78205,0,0,1,24.7718,20.30068Z",
875
+ fill: "#fff"
876
+ }), /* @__PURE__ */ jsx("path", {
877
+ d: "M22.04017,12.21089a4.87248,4.87248,0,0,0,1.11452-3.49062,4.95746,4.95746,0,0,0-3.20758,1.65961,4.63634,4.63634,0,0,0-1.14371,3.36139A4.09905,4.09905,0,0,0,22.04017,12.21089Z",
878
+ fill: "#fff"
879
+ })] }) }) }), /* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsxs("g", { children: [
880
+ /* @__PURE__ */ jsx("path", {
881
+ d: "M35.65528,14.70166V9.57813h-1.877V8.73486h4.67676v.84326H36.582v5.12354Z",
882
+ fill: "#fff"
883
+ }),
884
+ /* @__PURE__ */ jsx("path", {
885
+ d: "M42.76466,13.48584a1.828,1.828,0,0,1-1.95117,1.30273,2.04531,2.04531,0,0,1-2.08008-2.32422,2.07685,2.07685,0,0,1,2.07617-2.35254c1.25293,0,2.00879.856,2.00879,2.27v.31006H39.63868v.0498a1.1902,1.1902,0,0,0,1.19922,1.29,1.07934,1.07934,0,0,0,1.07129-.5459Zm-3.126-1.45117H41.9131a1.08647,1.08647,0,0,0-1.1084-1.1665A1.15162,1.15162,0,0,0,39.63868,12.03467ZM40.2754,9.4458l1.03809-1.42236h1.042L41.19337,9.4458Z",
886
+ fill: "#fff"
887
+ }),
888
+ /* @__PURE__ */ jsx("path", {
889
+ d: "M44.05274,8.44092h.88867v6.26074h-.88867Z",
890
+ fill: "#fff"
891
+ }),
892
+ /* @__PURE__ */ jsx("path", {
893
+ d: "M50.208,13.48584a1.828,1.828,0,0,1-1.95117,1.30273,2.04531,2.04531,0,0,1-2.08008-2.32422,2.07685,2.07685,0,0,1,2.07617-2.35254c1.25293,0,2.00879.856,2.00879,2.27v.31006H47.082v.0498a1.1902,1.1902,0,0,0,1.19922,1.29,1.07934,1.07934,0,0,0,1.07129-.5459Zm-3.126-1.45117h2.27441a1.08647,1.08647,0,0,0-1.1084-1.1665A1.15162,1.15162,0,0,0,47.082,12.03467Zm.63672-2.58887,1.03809-1.42236h1.042L48.63673,9.4458Z",
894
+ fill: "#fff"
895
+ }),
896
+ /* @__PURE__ */ jsx("path", {
897
+ d: "M54.40333,11.67041a1.00546,1.00546,0,0,0-1.06348-.76465c-.74414,0-1.19922.57031-1.19922,1.52979,0,.97607.459,1.55908,1.19922,1.55908a.97873.97873,0,0,0,1.06348-.74023h.86426a1.762,1.762,0,0,1-1.92285,1.53418,2.06791,2.06791,0,0,1-2.11328-2.353,2.05305,2.05305,0,0,1,2.1084-2.32373,1.77731,1.77731,0,0,1,1.92773,1.55859Z",
898
+ fill: "#fff"
899
+ }),
900
+ /* @__PURE__ */ jsx("path", {
901
+ d: "M56.44728,8.44092h.88086v2.48145h.07031a1.3856,1.3856,0,0,1,1.373-.80664,1.48339,1.48339,0,0,1,1.55078,1.67871v2.90723h-.88965v-2.688c0-.71924-.335-1.0835-.96289-1.0835a1.05194,1.05194,0,0,0-1.13379,1.1416v2.62988h-.88867Z",
902
+ fill: "#fff"
903
+ }),
904
+ /* @__PURE__ */ jsx("path", {
905
+ d: "M61.43946,13.42822c0-.81055.60352-1.27783,1.6748-1.34424l1.21973-.07031V11.625c0-.47559-.31445-.74414-.92188-.74414-.49609,0-.83984.18213-.93848.50049h-.86035c.09082-.77344.81836-1.26953,1.83984-1.26953,1.12891,0,1.76514.562,1.76514,1.51318v3.07666h-.855v-.63281H64.293a1.515,1.515,0,0,1-1.35254.707A1.36026,1.36026,0,0,1,61.43946,13.42822Zm2.89453-.38477V12.667l-1.09961.07031c-.62012.0415-.90137.25244-.90137.64941,0,.40527.35156.64111.835.64111A1.0615,1.0615,0,0,0,64.334,13.04346Z",
906
+ fill: "#fff"
907
+ }),
908
+ /* @__PURE__ */ jsx("path", {
909
+ d: "M66.60987,10.19873h.85547v.69043h.06641a1.22092,1.22092,0,0,1,1.21582-.76514,1.86836,1.86836,0,0,1,.39648.03711v.877a2.43442,2.43442,0,0,0-.49609-.05371A1.05507,1.05507,0,0,0,67.49855,12.043v2.65869h-.88867Z",
910
+ fill: "#fff"
911
+ }),
912
+ /* @__PURE__ */ jsx("path", {
913
+ d: "M69.96144,15.15234h.90918c.0752.32666.45117.5376,1.05078.5376.74023,0,1.17871-.35156,1.17871-.94678v-.86426H73.0337a1.51433,1.51433,0,0,1-1.38965.75635c-1.14941,0-1.86035-.88867-1.86035-2.23682,0-1.373.71875-2.27441,1.86914-2.27441a1.56045,1.56045,0,0,1,1.41406.79395h.07031v-.71924h.85156v4.54c0,1.02979-.80664,1.68311-2.08008,1.68311C70.7837,16.42188,70.05616,15.91748,69.96144,15.15234Zm3.15527-2.7583c0-.897-.46387-1.47168-1.2207-1.47168-.76465,0-1.19434.57471-1.19434,1.47168,0,.89746.42969,1.47217,1.19434,1.47217C72.65773,13.86621,73.11671,13.2959,73.11671,12.394Z",
914
+ fill: "#fff"
915
+ }),
916
+ /* @__PURE__ */ jsx("path", {
917
+ d: "M79.21241,13.48584a1.828,1.828,0,0,1-1.95117,1.30273,2.04531,2.04531,0,0,1-2.08008-2.32422,2.07685,2.07685,0,0,1,2.07617-2.35254c1.25293,0,2.00879.856,2.00879,2.27v.31006H76.08644v.0498a1.1902,1.1902,0,0,0,1.19922,1.29,1.07934,1.07934,0,0,0,1.07129-.5459Zm-3.126-1.45117h2.27441a1.08647,1.08647,0,0,0-1.1084-1.1665A1.15162,1.15162,0,0,0,76.08644,12.03467Z",
918
+ fill: "#fff"
919
+ }),
920
+ /* @__PURE__ */ jsx("path", {
921
+ d: "M80.45948,10.19873H81.315v.69043h.06641a1.22092,1.22092,0,0,1,1.21582-.76514,1.86836,1.86836,0,0,1,.39648.03711v.877a2.43442,2.43442,0,0,0-.49609-.05371A1.05507,1.05507,0,0,0,81.34815,12.043v2.65869h-.88867Z",
922
+ fill: "#fff"
923
+ }),
924
+ /* @__PURE__ */ jsx("path", {
925
+ d: "M86.19581,12.44824c0-1.42285.73145-2.32422,1.86914-2.32422a1.484,1.484,0,0,1,1.38086.79h.06641V8.44092h.88867v6.26074h-.85156v-.71143H89.479a1.56284,1.56284,0,0,1-1.41406.78564C86.91944,14.77588,86.19581,13.87451,86.19581,12.44824Zm.918,0c0,.95508.4502,1.52979,1.20313,1.52979.749,0,1.21191-.583,1.21191-1.52588,0-.93848-.46777-1.52979-1.21191-1.52979C87.56886,10.92236,87.11378,11.501,87.11378,12.44824Z",
926
+ fill: "#fff"
927
+ }),
928
+ /* @__PURE__ */ jsx("path", {
929
+ d: "M91.60206,13.42822c0-.81055.60352-1.27783,1.6748-1.34424l1.21973-.07031V11.625c0-.47559-.31445-.74414-.92187-.74414-.49609,0-.83984.18213-.93848.50049h-.86035c.09082-.77344.81836-1.26953,1.83984-1.26953,1.12891,0,1.76563.562,1.76563,1.51318v3.07666h-.85547v-.63281h-.07031a1.515,1.515,0,0,1-1.35254.707A1.36026,1.36026,0,0,1,91.60206,13.42822Zm2.89453-.38477V12.667L93.397,12.7373c-.62012.0415-.90137.25244-.90137.64941,0,.40527.35156.64111.835.64111A1.0615,1.0615,0,0,0,94.49659,13.04346Z",
930
+ fill: "#fff"
931
+ }),
932
+ /* @__PURE__ */ jsx("path", {
933
+ d: "M96.773,10.19873h.85547v.71533h.06641a1.348,1.348,0,0,1,1.34375-.80225,1.46456,1.46456,0,0,1,1.55859,1.6748v2.915h-.88867V12.00977c0-.72363-.31445-1.0835-.97168-1.0835a1.03294,1.03294,0,0,0-1.0752,1.14111v2.63428H96.773Z",
934
+ fill: "#fff"
935
+ }),
936
+ /* @__PURE__ */ jsx("path", {
937
+ d: "M103.61769,10.11182c1.0127,0,1.6748.47119,1.76172,1.26514h-.85254c-.082-.33057-.40527-.5415-.90918-.5415-.49609,0-.873.23535-.873.58691,0,.269.22754.43848.71582.55029l.748.17334c.85645.19873,1.25781.56689,1.25781,1.22852,0,.84766-.79,1.41406-1.86523,1.41406-1.07129,0-1.76953-.48389-1.84863-1.28174h.88965a.91365.91365,0,0,0,.97949.562c.55371,0,.94727-.248.94727-.60791,0-.26855-.21094-.44238-.66211-.5498l-.78516-.18213c-.85645-.20264-1.25293-.58691-1.25293-1.25684C101.86866,10.67383,102.60011,10.11182,103.61769,10.11182Z",
938
+ fill: "#fff"
939
+ })
940
+ ] }) })] }),
941
+ /* @__PURE__ */ jsxs("g", { children: [
942
+ /* @__PURE__ */ jsx("path", {
943
+ d: "M35.19825,18.06689h1.85938V30.48535H35.19825Z",
944
+ fill: "#fff"
945
+ }),
946
+ /* @__PURE__ */ jsx("path", {
947
+ d: "M39.29786,22.61084l1.01563-4.54395h1.80664l-1.23047,4.54395Z",
948
+ fill: "#fff"
949
+ }),
950
+ /* @__PURE__ */ jsx("path", {
951
+ d: "M49.14649,27.12891H44.4131l-1.13672,3.35645H41.27149l4.4834-12.41846h2.083l4.4834,12.41846H50.28224Zm-4.24316-1.54883h3.752l-1.84961-5.44775h-.05176Z",
952
+ fill: "#fff"
953
+ }),
954
+ /* @__PURE__ */ jsx("path", {
955
+ d: "M62.00294,25.959c0,2.81348-1.50586,4.62109-3.77832,4.62109a3.0693,3.0693,0,0,1-2.84863-1.584h-.043v4.48438h-1.8584V21.43115h1.79883V22.937h.03418a3.21162,3.21162,0,0,1,2.88281-1.60059C60.48829,21.33643,62.00294,23.15283,62.00294,25.959Zm-1.91016,0c0-1.8335-.94727-3.03857-2.39258-3.03857-1.41992,0-2.375,1.23047-2.375,3.03857,0,1.82422.95508,3.0459,2.375,3.0459C59.14552,29.00488,60.09278,27.80859,60.09278,25.959Z",
956
+ fill: "#fff"
957
+ }),
958
+ /* @__PURE__ */ jsx("path", {
959
+ d: "M71.9673,25.959c0,2.81348-1.50586,4.62109-3.77832,4.62109a3.0693,3.0693,0,0,1-2.84863-1.584h-.043v4.48438H63.43946V21.43115H65.2378V22.937H65.272a3.21162,3.21162,0,0,1,2.88281-1.60059C70.45265,21.33643,71.9673,23.15283,71.9673,25.959Zm-1.91016,0c0-1.8335-.94727-3.03857-2.39258-3.03857-1.41992,0-2.375,1.23047-2.375,3.03857,0,1.82422.95508,3.0459,2.375,3.0459C69.10987,29.00488,70.05714,27.80859,70.05714,25.959Z",
960
+ fill: "#fff"
961
+ }),
962
+ /* @__PURE__ */ jsx("path", {
963
+ d: "M78.55323,27.02539c.1377,1.23145,1.334,2.04,2.96875,2.04,1.56641,0,2.69336-.80859,2.69336-1.91895,0-.96387-.67969-1.541-2.28906-1.93652l-1.60937-.38818C78.03663,24.271,76.978,23.20459,76.978,21.47412c0-2.14258,1.86719-3.61426,4.51855-3.61426,2.624,0,4.42285,1.47168,4.4834,3.61426H84.104c-.1123-1.23926-1.13672-1.9873-2.63379-1.9873s-2.52148.75684-2.52148,1.8584c0,.87793.6543,1.39453,2.25488,1.79l1.36816.33594c2.54785.60254,3.60645,1.62646,3.60645,3.44287,0,2.32324-1.85059,3.77832-4.79395,3.77832-2.75391,0-4.61328-1.4209-4.7334-3.667Z",
964
+ fill: "#fff"
965
+ }),
966
+ /* @__PURE__ */ jsx("path", {
967
+ d: "M90.19,19.28857v2.14258h1.72168v1.47168H90.19v4.9917c0,.77539.34473,1.13672,1.10156,1.13672a5.80752,5.80752,0,0,0,.61133-.043v1.46289a5.10351,5.10351,0,0,1-1.03223.08594c-1.833,0-2.54785-.68848-2.54785-2.44434V22.90283H87.00636V21.43115h1.31641V19.28857Z",
968
+ fill: "#fff"
969
+ }),
970
+ /* @__PURE__ */ jsx("path", {
971
+ d: "M92.90773,25.959c0-2.84912,1.67773-4.63916,4.29395-4.63916,2.625,0,4.29492,1.79,4.29492,4.63916,0,2.85645-1.66113,4.63867-4.29492,4.63867C94.56886,30.59766,92.90773,28.81543,92.90773,25.959Zm6.69531,0c0-1.95459-.89551-3.10791-2.40137-3.10791s-2.40039,1.16211-2.40039,3.10791c0,1.96191.89453,3.10645,2.40039,3.10645S99.603,27.9209,99.603,25.959Z",
972
+ fill: "#fff"
973
+ }),
974
+ /* @__PURE__ */ jsx("path", {
975
+ d: "M103.02882,21.43115h1.77246v1.541h.043a2.1594,2.1594,0,0,1,2.17773-1.63574,2.86616,2.86616,0,0,1,.63672.06934V23.144a2.59794,2.59794,0,0,0-.835-.1123,1.8728,1.8728,0,0,0-1.93652,2.0835v5.37012h-1.8584Z",
976
+ fill: "#fff"
977
+ }),
978
+ /* @__PURE__ */ jsx("path", {
979
+ d: "M116.22608,27.82617c-.25,1.64355-1.85059,2.77148-3.89844,2.77148-2.63379,0-4.26855-1.76465-4.26855-4.5957,0-2.84033,1.64355-4.68213,4.19043-4.68213,2.50488,0,4.08008,1.7207,4.08008,4.46631v.63672h-6.39453v.1123a2.358,2.358,0,0,0,2.43555,2.56445,2.04834,2.04834,0,0,0,2.09082-1.27344ZM109.94386,25.124h4.52637a2.17744,2.17744,0,0,0-2.2207-2.29834A2.29214,2.29214,0,0,0,109.94386,25.124Z",
980
+ fill: "#fff"
981
+ })
982
+ ] })
983
+ ] })
984
+ });
985
+ }
986
+ function AppStoreBadgeArtEn(props) {
987
+ return /* @__PURE__ */ jsx("svg", {
988
+ "aria-hidden": "true",
989
+ xmlns: "http://www.w3.org/2000/svg",
990
+ viewBox: "0 0 119.66407 40",
991
+ ...props,
992
+ children: /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("path", {
993
+ d: "M110.13477,0H9.53468c-.3667,0-.729,0-1.09473.002-.30615.002-.60986.00781-.91895.0127A13.21476,13.21476,0,0,0,5.5171.19141a6.66509,6.66509,0,0,0-1.90088.627A6.43779,6.43779,0,0,0,1.99757,1.99707,6.25844,6.25844,0,0,0,.81935,3.61816a6.60119,6.60119,0,0,0-.625,1.90332,12.993,12.993,0,0,0-.1792,2.002C.00587,7.83008.00489,8.1377,0,8.44434V31.5586c.00489.3105.00587.6113.01515.9219a12.99232,12.99232,0,0,0,.1792,2.0019,6.58756,6.58756,0,0,0,.625,1.9043A6.20778,6.20778,0,0,0,1.99757,38.001a6.27445,6.27445,0,0,0,1.61865,1.1787,6.70082,6.70082,0,0,0,1.90088.6308,13.45514,13.45514,0,0,0,2.0039.1768c.30909.0068.6128.0107.91895.0107C8.80567,40,9.168,40,9.53468,40H110.13477c.3594,0,.7246,0,1.084-.002.3047,0,.6172-.0039.9219-.0107a13.279,13.279,0,0,0,2-.1768,6.80432,6.80432,0,0,0,1.9082-.6308,6.27742,6.27742,0,0,0,1.6172-1.1787,6.39482,6.39482,0,0,0,1.1816-1.6143,6.60413,6.60413,0,0,0,.6191-1.9043,13.50643,13.50643,0,0,0,.1856-2.0019c.0039-.3106.0039-.6114.0039-.9219.0078-.3633.0078-.7246.0078-1.0938V9.53613c0-.36621,0-.72949-.0078-1.09179,0-.30664,0-.61426-.0039-.9209a13.5071,13.5071,0,0,0-.1856-2.002,6.6177,6.6177,0,0,0-.6191-1.90332,6.46619,6.46619,0,0,0-2.7988-2.7998,6.76754,6.76754,0,0,0-1.9082-.627,13.04394,13.04394,0,0,0-2-.17676c-.3047-.00488-.6172-.01074-.9219-.01269-.3594-.002-.7246-.002-1.084-.002Z",
994
+ fill: "#a6a6a6"
995
+ }), /* @__PURE__ */ jsx("path", { d: "M8.44483,39.125c-.30468,0-.602-.0039-.90429-.0107a12.68714,12.68714,0,0,1-1.86914-.1631,5.88381,5.88381,0,0,1-1.65674-.5479,5.40573,5.40573,0,0,1-1.397-1.0166,5.32082,5.32082,0,0,1-1.02051-1.3965,5.72186,5.72186,0,0,1-.543-1.6572,12.41351,12.41351,0,0,1-.1665-1.875c-.00634-.2109-.01464-.9131-.01464-.9131V8.44434S.88185,7.75293.8877,7.5498a12.37039,12.37039,0,0,1,.16553-1.87207,5.7555,5.7555,0,0,1,.54346-1.6621A5.37349,5.37349,0,0,1,2.61183,2.61768,5.56543,5.56543,0,0,1,4.01417,1.59521a5.82309,5.82309,0,0,1,1.65332-.54394A12.58589,12.58589,0,0,1,7.543.88721L8.44532.875H111.21387l.9131.0127a12.38493,12.38493,0,0,1,1.8584.16259,5.93833,5.93833,0,0,1,1.6709.54785,5.59374,5.59374,0,0,1,2.415,2.41993,5.76267,5.76267,0,0,1,.5352,1.64892,12.995,12.995,0,0,1,.1738,1.88721c.0029.2832.0029.5874.0029.89014.0079.375.0079.73193.0079,1.09179V30.4648c0,.3633,0,.7178-.0079,1.0752,0,.3252,0,.6231-.0039.9297a12.73126,12.73126,0,0,1-.1709,1.8535,5.739,5.739,0,0,1-.54,1.67,5.48029,5.48029,0,0,1-1.0156,1.3857,5.4129,5.4129,0,0,1-1.3994,1.0225,5.86168,5.86168,0,0,1-1.668.5498,12.54218,12.54218,0,0,1-1.8692.1631c-.2929.0068-.5996.0107-.8974.0107l-1.084.002Z" })] }), /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("path", {
996
+ d: "M24.76888,20.30068a4.94881,4.94881,0,0,1,2.35656-4.15206,5.06566,5.06566,0,0,0-3.99116-2.15768c-1.67924-.17626-3.30719,1.00483-4.1629,1.00483-.87227,0-2.18977-.98733-3.6085-.95814a5.31529,5.31529,0,0,0-4.47292,2.72787c-1.934,3.34842-.49141,8.26947,1.3612,10.97608.9269,1.32535,2.01018,2.8058,3.42763,2.7533,1.38706-.05753,1.9051-.88448,3.5794-.88448,1.65876,0,2.14479.88448,3.591.8511,1.48838-.02416,2.42613-1.33124,3.32051-2.66914a10.962,10.962,0,0,0,1.51842-3.09251A4.78205,4.78205,0,0,1,24.76888,20.30068Z",
997
+ fill: "#fff"
998
+ }), /* @__PURE__ */ jsx("path", {
999
+ d: "M22.03725,12.21089a4.87248,4.87248,0,0,0,1.11452-3.49062,4.95746,4.95746,0,0,0-3.20758,1.65961,4.63634,4.63634,0,0,0-1.14371,3.36139A4.09905,4.09905,0,0,0,22.03725,12.21089Z",
1000
+ fill: "#fff"
1001
+ })] }) }), /* @__PURE__ */ jsxs("g", { children: [
1002
+ /* @__PURE__ */ jsx("path", {
1003
+ d: "M42.30227,27.13965h-4.7334l-1.13672,3.35645H34.42727l4.4834-12.418h2.083l4.4834,12.418H43.438ZM38.0591,25.59082h3.752l-1.84961-5.44727h-.05176Z",
1004
+ fill: "#fff"
1005
+ }),
1006
+ /* @__PURE__ */ jsx("path", {
1007
+ d: "M55.15969,25.96973c0,2.81348-1.50586,4.62109-3.77832,4.62109a3.0693,3.0693,0,0,1-2.84863-1.584h-.043v4.48438h-1.8584V21.44238H48.4302v1.50586h.03418a3.21162,3.21162,0,0,1,2.88281-1.60059C53.645,21.34766,55.15969,23.16406,55.15969,25.96973Zm-1.91016,0c0-1.833-.94727-3.03809-2.39258-3.03809-1.41992,0-2.375,1.23047-2.375,3.03809,0,1.82422.95508,3.0459,2.375,3.0459C52.30227,29.01563,53.24953,27.81934,53.24953,25.96973Z",
1008
+ fill: "#fff"
1009
+ }),
1010
+ /* @__PURE__ */ jsx("path", {
1011
+ d: "M65.12453,25.96973c0,2.81348-1.50586,4.62109-3.77832,4.62109a3.0693,3.0693,0,0,1-2.84863-1.584h-.043v4.48438h-1.8584V21.44238H58.395v1.50586h.03418A3.21162,3.21162,0,0,1,61.312,21.34766C63.60988,21.34766,65.12453,23.16406,65.12453,25.96973Zm-1.91016,0c0-1.833-.94727-3.03809-2.39258-3.03809-1.41992,0-2.375,1.23047-2.375,3.03809,0,1.82422.95508,3.0459,2.375,3.0459C62.26711,29.01563,63.21438,27.81934,63.21438,25.96973Z",
1012
+ fill: "#fff"
1013
+ }),
1014
+ /* @__PURE__ */ jsx("path", {
1015
+ d: "M71.71047,27.03613c.1377,1.23145,1.334,2.04,2.96875,2.04,1.56641,0,2.69336-.80859,2.69336-1.91895,0-.96387-.67969-1.541-2.28906-1.93652l-1.60937-.3877c-2.28027-.55078-3.33887-1.61719-3.33887-3.34766,0-2.14258,1.86719-3.61426,4.51855-3.61426,2.624,0,4.42285,1.47168,4.4834,3.61426h-1.876c-.1123-1.23926-1.13672-1.9873-2.63379-1.9873s-2.52148.75684-2.52148,1.8584c0,.87793.6543,1.39453,2.25488,1.79l1.36816.33594c2.54785.60254,3.60645,1.626,3.60645,3.44238,0,2.32324-1.85059,3.77832-4.79395,3.77832-2.75391,0-4.61328-1.4209-4.7334-3.667Z",
1016
+ fill: "#fff"
1017
+ }),
1018
+ /* @__PURE__ */ jsx("path", {
1019
+ d: "M83.34621,19.2998v2.14258h1.72168v1.47168H83.34621v4.99121c0,.77539.34473,1.13672,1.10156,1.13672a5.80752,5.80752,0,0,0,.61133-.043v1.46289a5.10351,5.10351,0,0,1-1.03223.08594c-1.833,0-2.54785-.68848-2.54785-2.44434V22.91406H80.16262V21.44238H81.479V19.2998Z",
1020
+ fill: "#fff"
1021
+ }),
1022
+ /* @__PURE__ */ jsx("path", {
1023
+ d: "M86.065,25.96973c0-2.84863,1.67773-4.63867,4.29395-4.63867,2.625,0,4.29492,1.79,4.29492,4.63867,0,2.85645-1.66113,4.63867-4.29492,4.63867C87.72609,30.6084,86.065,28.82617,86.065,25.96973Zm6.69531,0c0-1.9541-.89551-3.10742-2.40137-3.10742s-2.40039,1.16211-2.40039,3.10742c0,1.96191.89453,3.10645,2.40039,3.10645S92.76027,27.93164,92.76027,25.96973Z",
1024
+ fill: "#fff"
1025
+ }),
1026
+ /* @__PURE__ */ jsx("path", {
1027
+ d: "M96.18606,21.44238h1.77246v1.541h.043a2.1594,2.1594,0,0,1,2.17773-1.63574,2.86616,2.86616,0,0,1,.63672.06934v1.73828a2.59794,2.59794,0,0,0-.835-.1123,1.87264,1.87264,0,0,0-1.93652,2.083v5.37012h-1.8584Z",
1028
+ fill: "#fff"
1029
+ }),
1030
+ /* @__PURE__ */ jsx("path", {
1031
+ d: "M109.3843,27.83691c-.25,1.64355-1.85059,2.77148-3.89844,2.77148-2.63379,0-4.26855-1.76465-4.26855-4.5957,0-2.83984,1.64355-4.68164,4.19043-4.68164,2.50488,0,4.08008,1.7207,4.08008,4.46582v.63672h-6.39453v.1123a2.358,2.358,0,0,0,2.43555,2.56445,2.04834,2.04834,0,0,0,2.09082-1.27344Zm-6.28223-2.70215h4.52637a2.1773,2.1773,0,0,0-2.2207-2.29785A2.292,2.292,0,0,0,103.10207,25.13477Z",
1032
+ fill: "#fff"
1033
+ })
1034
+ ] })] })] }), /* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsxs("g", { children: [
1035
+ /* @__PURE__ */ jsx("path", {
1036
+ d: "M37.82619,8.731a2.63964,2.63964,0,0,1,2.80762,2.96484c0,1.90625-1.03027,3.002-2.80762,3.002H35.67092V8.731Zm-1.22852,5.123h1.125a1.87588,1.87588,0,0,0,1.96777-2.146,1.881,1.881,0,0,0-1.96777-2.13379h-1.125Z",
1037
+ fill: "#fff"
1038
+ }),
1039
+ /* @__PURE__ */ jsx("path", {
1040
+ d: "M41.68068,12.44434a2.13323,2.13323,0,1,1,4.24707,0,2.13358,2.13358,0,1,1-4.24707,0Zm3.333,0c0-.97607-.43848-1.54687-1.208-1.54687-.77246,0-1.207.5708-1.207,1.54688,0,.98389.43457,1.55029,1.207,1.55029C44.57522,13.99463,45.01369,13.42432,45.01369,12.44434Z",
1041
+ fill: "#fff"
1042
+ }),
1043
+ /* @__PURE__ */ jsx("path", {
1044
+ d: "M51.57326,14.69775h-.92187l-.93066-3.31641h-.07031l-.92676,3.31641h-.91309l-1.24121-4.50293h.90137l.80664,3.436h.06641l.92578-3.436h.85254l.92578,3.436h.07031l.80273-3.436h.88867Z",
1045
+ fill: "#fff"
1046
+ }),
1047
+ /* @__PURE__ */ jsx("path", {
1048
+ d: "M53.85354,10.19482H54.709v.71533h.06641a1.348,1.348,0,0,1,1.34375-.80225,1.46456,1.46456,0,0,1,1.55859,1.6748v2.915h-.88867V12.00586c0-.72363-.31445-1.0835-.97168-1.0835a1.03294,1.03294,0,0,0-1.0752,1.14111v2.63428h-.88867Z",
1049
+ fill: "#fff"
1050
+ }),
1051
+ /* @__PURE__ */ jsx("path", {
1052
+ d: "M59.09377,8.437h.88867v6.26074h-.88867Z",
1053
+ fill: "#fff"
1054
+ }),
1055
+ /* @__PURE__ */ jsx("path", {
1056
+ d: "M61.21779,12.44434a2.13346,2.13346,0,1,1,4.24756,0,2.1338,2.1338,0,1,1-4.24756,0Zm3.333,0c0-.97607-.43848-1.54687-1.208-1.54687-.77246,0-1.207.5708-1.207,1.54688,0,.98389.43457,1.55029,1.207,1.55029C64.11232,13.99463,64.5508,13.42432,64.5508,12.44434Z",
1057
+ fill: "#fff"
1058
+ }),
1059
+ /* @__PURE__ */ jsx("path", {
1060
+ d: "M66.4009,13.42432c0-.81055.60352-1.27783,1.6748-1.34424l1.21973-.07031v-.38867c0-.47559-.31445-.74414-.92187-.74414-.49609,0-.83984.18213-.93848.50049h-.86035c.09082-.77344.81836-1.26953,1.83984-1.26953,1.12891,0,1.76563.562,1.76563,1.51318v3.07666h-.85547v-.63281h-.07031a1.515,1.515,0,0,1-1.35254.707A1.36026,1.36026,0,0,1,66.4009,13.42432Zm2.89453-.38477v-.37646l-1.09961.07031c-.62012.0415-.90137.25244-.90137.64941,0,.40527.35156.64111.835.64111A1.0615,1.0615,0,0,0,69.29543,13.03955Z",
1061
+ fill: "#fff"
1062
+ }),
1063
+ /* @__PURE__ */ jsx("path", {
1064
+ d: "M71.34816,12.44434c0-1.42285.73145-2.32422,1.86914-2.32422a1.484,1.484,0,0,1,1.38086.79h.06641V8.437h.88867v6.26074h-.85156v-.71143h-.07031a1.56284,1.56284,0,0,1-1.41406.78564C72.0718,14.772,71.34816,13.87061,71.34816,12.44434Zm.918,0c0,.95508.4502,1.52979,1.20313,1.52979.749,0,1.21191-.583,1.21191-1.52588,0-.93848-.46777-1.52979-1.21191-1.52979C72.72121,10.91846,72.26613,11.49707,72.26613,12.44434Z",
1065
+ fill: "#fff"
1066
+ }),
1067
+ /* @__PURE__ */ jsx("path", {
1068
+ d: "M79.23,12.44434a2.13323,2.13323,0,1,1,4.24707,0,2.13358,2.13358,0,1,1-4.24707,0Zm3.333,0c0-.97607-.43848-1.54687-1.208-1.54687-.77246,0-1.207.5708-1.207,1.54688,0,.98389.43457,1.55029,1.207,1.55029C82.12453,13.99463,82.563,13.42432,82.563,12.44434Z",
1069
+ fill: "#fff"
1070
+ }),
1071
+ /* @__PURE__ */ jsx("path", {
1072
+ d: "M84.66945,10.19482h.85547v.71533h.06641a1.348,1.348,0,0,1,1.34375-.80225,1.46456,1.46456,0,0,1,1.55859,1.6748v2.915H87.605V12.00586c0-.72363-.31445-1.0835-.97168-1.0835a1.03294,1.03294,0,0,0-1.0752,1.14111v2.63428h-.88867Z",
1073
+ fill: "#fff"
1074
+ }),
1075
+ /* @__PURE__ */ jsx("path", {
1076
+ d: "M93.51516,9.07373v1.1416h.97559v.74854h-.97559V13.2793c0,.47168.19434.67822.63672.67822a2.96657,2.96657,0,0,0,.33887-.02051v.74023a2.9155,2.9155,0,0,1-.4834.04541c-.98828,0-1.38184-.34766-1.38184-1.21582v-2.543h-.71484v-.74854h.71484V9.07373Z",
1077
+ fill: "#fff"
1078
+ }),
1079
+ /* @__PURE__ */ jsx("path", {
1080
+ d: "M95.70461,8.437h.88086v2.48145h.07031a1.3856,1.3856,0,0,1,1.373-.80664,1.48339,1.48339,0,0,1,1.55078,1.67871v2.90723H98.69v-2.688c0-.71924-.335-1.0835-.96289-1.0835a1.05194,1.05194,0,0,0-1.13379,1.1416v2.62988h-.88867Z",
1081
+ fill: "#fff"
1082
+ }),
1083
+ /* @__PURE__ */ jsx("path", {
1084
+ d: "M104.76125,13.48193a1.828,1.828,0,0,1-1.95117,1.30273A2.04531,2.04531,0,0,1,100.73,12.46045a2.07685,2.07685,0,0,1,2.07617-2.35254c1.25293,0,2.00879.856,2.00879,2.27V12.688h-3.17969v.0498a1.1902,1.1902,0,0,0,1.19922,1.29,1.07934,1.07934,0,0,0,1.07129-.5459Zm-3.126-1.45117h2.27441a1.08647,1.08647,0,0,0-1.1084-1.1665A1.15162,1.15162,0,0,0,101.63527,12.03076Z",
1085
+ fill: "#fff"
1086
+ })
1087
+ ] }) })] })
1088
+ });
1089
+ }
1090
+ /**
1091
+ * Apple's own App Store lockup in the page language; the anchor's aria-label carries the link name.
1092
+ */
1093
+ function AppStoreBadgeArt({ lang, ...props }) {
1094
+ return lang === "fr" ? /* @__PURE__ */ jsx(AppStoreBadgeArtFr, { ...props }) : /* @__PURE__ */ jsx(AppStoreBadgeArtEn, { ...props });
1095
+ }
1096
+ const PLAY_BADGE_SRC_FR = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoYAAADACAMAAACuylITAAABnlBMVEX///9W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NQt443WgBaJSTmzUaIKZWhOM0tYWiNTMNTVAXNCgafgMyM7w5bluZkc7VV+qDBvVRH3+4ufnRg28qW1iekOtmqvvWXq3QgNjUTD0z2b2wAJoJDKG45hxlahN7oQLQ1C/XEDHnTGtDU/QnswAaZdzpJ8LvpM3CNQfDbSxtBaCZVFQZ6N2+d0XXtsg3BmhAAA0IoAEBNCCABrSFoVkCaEDieqIPzTL6702oDJCYvkW4NBea6L/noTJAYnpyZeV4Y6Gxb2XlBlQGSEjfoCbmdgTNDghqQKK6jmC5A0GzHfonkETvtHIbgibqn1Yeg/oAiQ24dzYiaKJMzTWoEFC+bkQD7j40zePon9ehRkCKQJIGNTQRNI0ov3fgGNQJiK+3VgYNTR+axk6gBpSrYwcQJtsaI2ia+4AaUF4QHDFzrhFD01iMwpoDENeAuPHMyrkmBs2AmpVrMPIG0ZuZKEGzsm+xgUPTWIx6KJTlg9wwKBsBf72CtTMJNI3mzv4bKzfO31xbgxYHNAh+19ZuXjswIGPbiJkEGjTyPr4CAjG0bzkhBYOm0VzYB5UDoiKzhHFCQIO0fQdwA0rp3LZFkpIUNFF7s7y0AAINtX25mUHk/6M5ZSkbyULVAAAAAElFTkSuQmCC";
1098
+ /**
1099
+ * Google Play badge PNG in the page language; the anchor's aria-label carries the link name.
1100
+ */
1101
+ function PlayStoreBadgeArt({ lang, ...props }) {
1102
+ return lang === "fr" ? /* @__PURE__ */ jsx("img", {
1103
+ src: PLAY_BADGE_SRC_FR,
1104
+ alt: "",
1105
+ width: "646",
1106
+ height: "192",
1107
+ ...props
1108
+ }) : /* @__PURE__ */ jsx("img", {
1109
+ src: PLAY_BADGE_SRC_EN,
1110
+ alt: "",
1111
+ width: "564",
1112
+ height: "168",
1113
+ ...props
1114
+ });
1115
+ }
1116
+ //#endregion
1117
+ //#region src/components/Ambassador/Ambassador.tsx
1118
+ const FRAK_URL = "https://frak.id";
1119
+ /**
1120
+ * SDK config name first, then `og:site_name`, then the bare hostname with a
1121
+ * leading `www.` stripped. The replacement runs as a function so `$&` in a
1122
+ * merchant's name stays literal instead of reading as a back-reference.
1123
+ */
1124
+ function resolveBrandName() {
1125
+ return window.FrakSetup?.config?.metadata?.name || document.querySelector("meta[property=\"og:site_name\"]")?.getAttribute("content") || window.location.hostname.replace(/^www\./, "");
1126
+ }
1127
+ const FIGURE = /^(\D*?)(\d[\d\s.,\u00A0\u202F]*?)(\D*)$/;
1128
+ /** Draws the currency of a formatted amount smaller; wording without a figure passes through. */
1129
+ function Figure({ amount }) {
1130
+ const parts = FIGURE.exec(amount);
1131
+ if (!parts) return /* @__PURE__ */ jsx("span", {
1132
+ class: `${amountWords} frak-ambassador__amount-words`,
1133
+ children: amount
1134
+ });
1135
+ const [, before, figure, after] = parts;
1136
+ const unit = (text) => text ? /* @__PURE__ */ jsx("small", {
1137
+ class: `${amountUnit} frak-ambassador__amount-unit`,
1138
+ children: text
1139
+ }) : null;
1140
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
1141
+ unit(before),
1142
+ figure,
1143
+ unit(after)
1144
+ ] });
1145
+ }
1146
+ function headingText(text) {
1147
+ return text ? /* @__PURE__ */ jsx("span", {
1148
+ class: `${rewardHeadingText} frak-ambassador__reward-heading-text`,
1149
+ children: text
1150
+ }) : null;
1151
+ }
1152
+ function resolveFallbackLabel(prop, defaults, brand) {
1153
+ return prop ? prop.replaceAll("{BRAND}", () => brand) : defaults.rewardFallbackLabel;
1154
+ }
1155
+ /** A `{REWARD}` override with no figure to fill it would read "earn ."; the default copy wins. */
1156
+ function usableOverride(prop, amount) {
1157
+ if (prop === void 0) return void 0;
1158
+ return amount || !prop.includes("{REWARD}") ? prop : void 0;
1159
+ }
1160
+ /**
1161
+ * Splits the reward heading around its amount slot so the `h2` always renders
1162
+ * as one self-contained sentence: amount token in a span when a reward
1163
+ * resolves, the fallback subject in that same span when none does.
1164
+ */
1165
+ function resolveRewardHeading(defaults, prop, fallbackLabel, reward, brand) {
1166
+ const brandize = (text) => text.replaceAll("{BRAND}", () => brand);
1167
+ const [rewardBefore = "", rewardAfter = ""] = defaults.rewardHeadingReward.split("{REWARD}");
1168
+ const fallbackStart = defaults.rewardHeadingNoReward.indexOf(defaults.rewardFallbackLabel);
1169
+ const override = usableOverride(prop, reward);
1170
+ if (override) return {
1171
+ kind: "override",
1172
+ text: brandize(w(override, reward))
1173
+ };
1174
+ if (reward) return {
1175
+ kind: "parts",
1176
+ before: brandize(rewardBefore),
1177
+ amount: reward,
1178
+ after: brandize(rewardAfter)
1179
+ };
1180
+ return {
1181
+ kind: "parts",
1182
+ before: brandize(fallbackStart >= 0 ? defaults.rewardHeadingNoReward.slice(0, fallbackStart) : defaults.rewardHeadingNoReward),
1183
+ amount: fallbackStart >= 0 ? fallbackLabel : "",
1184
+ after: brandize(fallbackStart >= 0 ? defaults.rewardHeadingNoReward.slice(fallbackStart + defaults.rewardFallbackLabel.length) : "")
1185
+ };
1186
+ }
1187
+ /** A dashboard answer replaces the split one only while no split attribute is set. */
1188
+ function resolveFaq5Answer(dashboardAnswer, splitAttributes, reward, brandize) {
1189
+ if (splitAttributes.some((value) => value !== void 0)) return void 0;
1190
+ const answer = usableOverride(dashboardAnswer, reward);
1191
+ return answer === void 0 ? void 0 : brandize(w(answer, reward));
1192
+ }
1193
+ /** Closed gate means no pill; a `{REWARD}` override without a figure falls back to the words. */
1194
+ function resolveHeroPill(defaults, prop, hasRefereeReward, refereeReward, brand) {
1195
+ if (!hasRefereeReward) return null;
1196
+ const brandize = (text) => text.replaceAll("{BRAND}", () => brand);
1197
+ const override = usableOverride(prop, refereeReward);
1198
+ if (override) return brandize(w(override, refereeReward));
1199
+ return refereeReward ? w(defaults.heroRewardRefereePill, refereeReward) : defaults.heroRewardRefereePillNoReward;
1200
+ }
1201
+ const DASHBOARD_FIELDS = [
1202
+ "heroTitle",
1203
+ "heroLede",
1204
+ "heroRewardCaption",
1205
+ "heroCtaLabel",
1206
+ "heroImageUrl",
1207
+ "rewardHeading",
1208
+ "rewardLede",
1209
+ "rewardCtaLabel",
1210
+ "referralCtaLabel",
1211
+ "faq1Question",
1212
+ "faq1Answer",
1213
+ "faq2Question",
1214
+ "faq2Answer",
1215
+ "faq3Question",
1216
+ "faq3Answer",
1217
+ "faq4Question",
1218
+ "faq4Answer",
1219
+ "faq5Question"
1220
+ ];
1221
+ /**
1222
+ * Full-page ambassador: hero, reward, explainer, win-win, referral, store, FAQ;
1223
+ * `isHidden` alone suppresses it. Theme it with the twenty-two `--frak-amb-*`
1224
+ * properties, which outrank the sampled host theme; classes are best-effort.
1225
+ *
1226
+ * @group components
1227
+ * @example `<frak-ambassador></frak-ambassador>`
1228
+ */
1229
+ function Ambassador(props) {
1230
+ const dashboard = useGlobalComponents()?.ambassador;
1231
+ const merged = {
1232
+ ...props,
1233
+ faq5Answer: dashboard?.faq5Answer
1234
+ };
1235
+ for (const field of DASHBOARD_FIELDS) merged[field] = props[field] ?? dashboard?.[field];
1236
+ return /* @__PURE__ */ jsx(AmbassadorPage, { ...merged });
1237
+ }
1238
+ function AmbassadorPage({ merchantId: propMerchantId, classname = "", heroTitle: propHeroTitle, heroEyebrow: propHeroEyebrow, heroLede: propHeroLede, heroCtaLabel: propHeroCtaLabel, heroFacesCaption: propHeroFacesCaption, heroImageUrl, heroImageAlt: propHeroImageAlt, heroRewardCaption: propHeroRewardCaption, heroRewardRefereePill: propHeroRewardRefereePill, rewardEyebrow: propRewardEyebrow, rewardHeading: propRewardHeading, rewardEstimateCaption: propRewardEstimateCaption, rewardLede: propRewardLede, rewardCtaLabel: propRewardCtaLabel, rewardFooterCaption: propRewardFooterCaption, rewardNoBankDetails: propRewardNoBankDetails, rewardFallbackLabel: propRewardFallbackLabel, explainerTitle: propExplainerTitle, explainerLede: propExplainerLede, step1Title: propStep1Title, step1Description: propStep1Description, step1ImageUrl, step1ImageAlt: propStep1ImageAlt, step2Title: propStep2Title, step2Description: propStep2Description, step2ImageUrl, step2ImageAlt: propStep2ImageAlt, step3Title: propStep3Title, step3Description: propStep3Description, step3ImageUrl, step3ImageAlt: propStep3ImageAlt, winWinHeading: propWinWinHeading, winWinLede: propWinWinLede, winWinCard1Title: propWinWinCard1Title, winWinCard1Description: propWinWinCard1Description, winWinCard2Title: propWinWinCard2Title, winWinCard2Description: propWinWinCard2Description, referralHeading: propReferralHeading, referralLede: propReferralLede, referralCtaLabel: propReferralCtaLabel, storeHeading: propStoreHeading, storeLede: propStoreLede, storeAppBadgeAriaLabel: propStoreAppBadgeAriaLabel, storePlayBadgeAriaLabel: propStorePlayBadgeAriaLabel, storeQrLabel: propStoreQrLabel, storeQrCaption: propStoreQrCaption, faqHeading: propFaqHeading, faq1Question: propFaq1Question, faq1Answer: propFaq1Answer, faq2Question: propFaq2Question, faq2Answer: propFaq2Answer, faq3Question: propFaq3Question, faq3Answer: propFaq3Answer, faq4Question: propFaq4Question, faq4Answer: propFaq4Answer, faq5Question: propFaq5Question, faq5AnswerBeforeLink: propFaq5AnswerBeforeLink, faq5AnswerLinkText: propFaq5AnswerLinkText, faq5AnswerAfterLink: propFaq5AnswerAfterLink, attributionBeforeLink: propAttributionBeforeLink, attributionLinkText: propAttributionLinkText, faq5Answer: dashboardFaq5Answer }) {
1239
+ const { shouldRender, isHidden, isClientReady } = useClientReady();
1240
+ const lang = useLang();
1241
+ const rootRef = useRef(null);
1242
+ useHostTheme(rootRef);
1243
+ useLightDomStyles("frak-ambassador", void 0, void 0, cssSource, cssSource$2);
1244
+ const { reward: reward$1 } = useReward(isClientReady, void 0, "referrer");
1245
+ const { reward: refereeReward, hasReward: hasRefereeReward } = useReward(isClientReady, void 0, "referee");
1246
+ const [installUrl, setInstallUrl] = useState(void 0);
1247
+ const [failedHeroUrl, setFailedHeroUrl] = useState();
1248
+ useEffect(() => {
1249
+ let cancelled = false;
1250
+ getInstallUrl({ merchantId: propMerchantId }).then((url) => {
1251
+ if (!cancelled) setInstallUrl(url);
1252
+ }).catch((error) => console.error("Frak install link failed", error));
1253
+ return () => {
1254
+ cancelled = true;
1255
+ };
1256
+ }, [propMerchantId, isClientReady]);
1257
+ const trackedImpressionRef = useRef(false);
1258
+ useEffect(() => {
1259
+ if (trackedImpressionRef.current) return;
1260
+ if (!isClientReady || !shouldRender || isHidden) return;
1261
+ trackEvent(window.FrakSetup?.client, "ambassador_impression");
1262
+ trackedImpressionRef.current = true;
1263
+ }, [
1264
+ isClientReady,
1265
+ shouldRender,
1266
+ isHidden
1267
+ ]);
1268
+ const handleShare = useCallback(() => {
1269
+ if (!isClientReady) return;
1270
+ openSharingPage("ambassador");
1271
+ }, [isClientReady]);
1272
+ const brand = resolveBrandName();
1273
+ const inert = installUrl === void 0;
1274
+ const texts = useMemo(() => {
1275
+ const defaults = componentDefaults[lang].ambassador;
1276
+ const brandize = (text) => text.replaceAll("{BRAND}", () => brand);
1277
+ const resolve = (prop, fallback) => brandize(w(usableOverride(prop, reward$1) ?? fallback, reward$1));
1278
+ const fallbackLabel = resolveFallbackLabel(propRewardFallbackLabel, defaults, brand);
1279
+ const heroAmountText = reward$1 ?? fallbackLabel;
1280
+ const rewardHeadingResolved = resolveRewardHeading(defaults, propRewardHeading, fallbackLabel, reward$1, brand);
1281
+ const heroPillText = resolveHeroPill(defaults, propHeroRewardRefereePill, hasRefereeReward, refereeReward, brand);
1282
+ const resolveFriend = (prop, fallback) => brandize(w(usableOverride(prop, refereeReward) ?? fallback, refereeReward));
1283
+ const gated = (prop, perk, plain) => hasRefereeReward ? resolveFriend(prop, perk) : resolve(void 0, plain);
1284
+ const steps = [
1285
+ {
1286
+ title: resolve(propStep1Title, defaults.explainerStep1Title),
1287
+ description: resolve(propStep1Description, defaults.explainerStep1Description),
1288
+ imageUrl: step1ImageUrl,
1289
+ imageAlt: propStep1ImageAlt
1290
+ },
1291
+ {
1292
+ title: resolve(propStep2Title, defaults.explainerStep2Title),
1293
+ description: resolve(propStep2Description, defaults.explainerStep2Description),
1294
+ imageUrl: step2ImageUrl,
1295
+ imageAlt: propStep2ImageAlt
1296
+ },
1297
+ {
1298
+ title: resolve(propStep3Title, defaults.explainerStep3Title),
1299
+ description: resolve(propStep3Description, defaults.explainerStep3Description),
1300
+ imageUrl: step3ImageUrl,
1301
+ imageAlt: propStep3ImageAlt
1302
+ }
1303
+ ];
1304
+ const winWinCards = [{
1305
+ title: resolve(propWinWinCard1Title, defaults.winWinCard1Title),
1306
+ amount: heroAmountText,
1307
+ description: resolve(propWinWinCard1Description, defaults.winWinCard1Description)
1308
+ }, {
1309
+ title: resolve(propWinWinCard2Title, defaults.winWinCard2Title),
1310
+ amount: refereeReward ?? fallbackLabel,
1311
+ description: resolveFriend(propWinWinCard2Description, defaults.winWinCard2Description)
1312
+ }];
1313
+ const faqs = [
1314
+ {
1315
+ question: resolve(propFaq1Question, defaults.faq1Question),
1316
+ answer: resolve(propFaq1Answer, defaults.faq1Answer)
1317
+ },
1318
+ {
1319
+ question: resolve(propFaq2Question, defaults.faq2Question),
1320
+ answer: resolve(propFaq2Answer, defaults.faq2Answer)
1321
+ },
1322
+ {
1323
+ question: resolve(propFaq3Question, defaults.faq3Question),
1324
+ answer: gated(propFaq3Answer, defaults.faq3Answer, defaults.faq3AnswerNoReward)
1325
+ },
1326
+ {
1327
+ question: resolve(propFaq4Question, defaults.faq4Question),
1328
+ answer: resolve(propFaq4Answer, defaults.faq4Answer)
1329
+ }
1330
+ ];
1331
+ return {
1332
+ heroEyebrow: resolve(propHeroEyebrow, defaults.heroEyebrow),
1333
+ heroTitle: resolve(propHeroTitle, defaults.heroHeadline),
1334
+ heroLede: resolve(propHeroLede, reward$1 ? defaults.heroLedeReward : defaults.heroLede),
1335
+ heroCtaLabel: resolve(propHeroCtaLabel, defaults.heroCtaLabel),
1336
+ heroFacesCaption: resolve(propHeroFacesCaption, defaults.heroFacesCaption),
1337
+ heroImageAlt: resolve(propHeroImageAlt, defaults.heroImageAlt),
1338
+ heroRewardCaption: resolve(propHeroRewardCaption, defaults.heroRewardCaption),
1339
+ heroAmount: heroAmountText,
1340
+ heroPill: heroPillText,
1341
+ rewardEyebrow: resolve(propRewardEyebrow, defaults.rewardEyebrow),
1342
+ rewardHeading: rewardHeadingResolved,
1343
+ rewardEstimateCaption: resolve(propRewardEstimateCaption, defaults.rewardEstimateCaption),
1344
+ rewardLede: resolve(propRewardLede, defaults.rewardLede),
1345
+ rewardCtaLabel: resolve(propRewardCtaLabel, defaults.rewardCtaLabel),
1346
+ rewardFooterCaption: [resolve(propRewardFooterCaption, defaults.rewardFooterCaption), resolve(propRewardNoBankDetails, defaults.rewardNoBankDetails)].filter(Boolean).join(" · "),
1347
+ explainerTitle: resolve(propExplainerTitle, defaults.explainerTitle),
1348
+ explainerLede: resolve(propExplainerLede, defaults.explainerLede),
1349
+ steps,
1350
+ showWinWin: hasRefereeReward,
1351
+ winWinHeading: resolve(propWinWinHeading, defaults.winWinHeading),
1352
+ winWinLede: resolve(propWinWinLede, defaults.winWinLede),
1353
+ winWinCards,
1354
+ referralHeading: resolve(propReferralHeading, defaults.referralHeading),
1355
+ referralLede: resolve(propReferralLede, defaults.referralLede),
1356
+ referralCtaLabel: resolve(propReferralCtaLabel, defaults.referralCtaLabel),
1357
+ storeHeading: resolve(propStoreHeading, defaults.storeHeading),
1358
+ storeLede: resolve(propStoreLede, defaults.storeLede),
1359
+ storeAppBadgeAriaLabel: resolve(propStoreAppBadgeAriaLabel, defaults.storeAppBadgeAriaLabel),
1360
+ storePlayBadgeAriaLabel: resolve(propStorePlayBadgeAriaLabel, defaults.storePlayBadgeAriaLabel),
1361
+ storeQrLabel: resolve(propStoreQrLabel, defaults.storeQrLabel),
1362
+ storeQrCaption: resolve(propStoreQrCaption, defaults.storeQrCaption),
1363
+ faqHeading: resolve(propFaqHeading, defaults.faqHeading),
1364
+ faqs,
1365
+ faq5Question: resolve(propFaq5Question, defaults.faq5Question),
1366
+ faq5Answer: resolveFaq5Answer(dashboardFaq5Answer, [
1367
+ propFaq5AnswerBeforeLink,
1368
+ propFaq5AnswerLinkText,
1369
+ propFaq5AnswerAfterLink
1370
+ ], reward$1, brandize),
1371
+ faq5AnswerBeforeLink: resolve(propFaq5AnswerBeforeLink, defaults.faq5AnswerBeforeLink),
1372
+ faq5AnswerLinkText: resolve(propFaq5AnswerLinkText, defaults.faq5AnswerLinkText),
1373
+ faq5AnswerAfterLink: resolve(propFaq5AnswerAfterLink, defaults.faq5AnswerAfterLink),
1374
+ attributionBeforeLink: resolve(propAttributionBeforeLink, defaults.attributionBeforeLink),
1375
+ attributionLinkText: resolve(propAttributionLinkText, defaults.attributionLinkText)
1376
+ };
1377
+ }, [
1378
+ lang,
1379
+ reward$1,
1380
+ refereeReward,
1381
+ hasRefereeReward,
1382
+ brand,
1383
+ propHeroTitle,
1384
+ propHeroEyebrow,
1385
+ propHeroLede,
1386
+ propHeroCtaLabel,
1387
+ propHeroFacesCaption,
1388
+ propHeroImageAlt,
1389
+ propHeroRewardCaption,
1390
+ propHeroRewardRefereePill,
1391
+ propRewardEyebrow,
1392
+ propRewardHeading,
1393
+ propRewardEstimateCaption,
1394
+ propRewardLede,
1395
+ propRewardCtaLabel,
1396
+ propRewardFooterCaption,
1397
+ propRewardNoBankDetails,
1398
+ propRewardFallbackLabel,
1399
+ propExplainerTitle,
1400
+ propExplainerLede,
1401
+ propStep1Title,
1402
+ propStep1Description,
1403
+ step1ImageUrl,
1404
+ propStep1ImageAlt,
1405
+ propStep2Title,
1406
+ propStep2Description,
1407
+ step2ImageUrl,
1408
+ propStep2ImageAlt,
1409
+ propStep3Title,
1410
+ propStep3Description,
1411
+ step3ImageUrl,
1412
+ propStep3ImageAlt,
1413
+ propWinWinHeading,
1414
+ propWinWinLede,
1415
+ propWinWinCard1Title,
1416
+ propWinWinCard1Description,
1417
+ propWinWinCard2Title,
1418
+ propWinWinCard2Description,
1419
+ propReferralHeading,
1420
+ propReferralLede,
1421
+ propReferralCtaLabel,
1422
+ propStoreHeading,
1423
+ propStoreLede,
1424
+ propStoreAppBadgeAriaLabel,
1425
+ propStorePlayBadgeAriaLabel,
1426
+ propStoreQrLabel,
1427
+ propStoreQrCaption,
1428
+ propFaqHeading,
1429
+ propFaq1Question,
1430
+ propFaq1Answer,
1431
+ propFaq2Question,
1432
+ propFaq2Answer,
1433
+ propFaq3Question,
1434
+ propFaq3Answer,
1435
+ propFaq4Question,
1436
+ propFaq4Answer,
1437
+ propFaq5Question,
1438
+ propFaq5AnswerBeforeLink,
1439
+ propFaq5AnswerLinkText,
1440
+ propFaq5AnswerAfterLink,
1441
+ propAttributionBeforeLink,
1442
+ propAttributionLinkText,
1443
+ dashboardFaq5Answer
1444
+ ]);
1445
+ if (isHidden) return null;
1446
+ const showHeroImage = Boolean(heroImageUrl) && heroImageUrl !== failedHeroUrl;
1447
+ const rootClass = [
1448
+ root,
1449
+ "frak-ambassador",
1450
+ classname
1451
+ ].filter(Boolean).join(" ");
1452
+ return /* @__PURE__ */ jsxs("div", {
1453
+ ref: rootRef,
1454
+ class: rootClass,
1455
+ lang,
1456
+ children: [
1457
+ /* @__PURE__ */ jsxs("section", {
1458
+ class: `${hero} frak-ambassador__hero`,
1459
+ children: [/* @__PURE__ */ jsxs("div", {
1460
+ class: `${heroBody} frak-ambassador__hero-body`,
1461
+ children: [
1462
+ /* @__PURE__ */ jsx("p", {
1463
+ class: `${heroEyebrow} frak-ambassador__hero-eyebrow`,
1464
+ children: texts.heroEyebrow
1465
+ }),
1466
+ /* @__PURE__ */ jsx("h1", {
1467
+ class: `${heroTitle} frak-ambassador__hero-title`,
1468
+ children: texts.heroTitle
1469
+ }),
1470
+ /* @__PURE__ */ jsx("p", {
1471
+ class: `${heroLede} frak-ambassador__hero-lede`,
1472
+ children: texts.heroLede
1473
+ }),
1474
+ /* @__PURE__ */ jsx("button", {
1475
+ type: "button",
1476
+ class: `${heroCta} frak-ambassador__hero-cta`,
1477
+ disabled: !isClientReady,
1478
+ onClick: handleShare,
1479
+ children: texts.heroCtaLabel
1480
+ }),
1481
+ /* @__PURE__ */ jsx("p", {
1482
+ class: `${heroFaces} frak-ambassador__hero-faces`,
1483
+ children: texts.heroFacesCaption
1484
+ })
1485
+ ]
1486
+ }), /* @__PURE__ */ jsxs("div", {
1487
+ class: showHeroImage ? `${heroArt} ${heroArtFramed} frak-ambassador__hero-art frak-ambassador__hero-art--framed` : `${heroArt} frak-ambassador__hero-art`,
1488
+ children: [showHeroImage ? /* @__PURE__ */ jsx("img", {
1489
+ src: heroImageUrl,
1490
+ alt: texts.heroImageAlt,
1491
+ class: `${heroImage} frak-ambassador__hero-image`,
1492
+ onError: () => setFailedHeroUrl(heroImageUrl)
1493
+ }) : null, /* @__PURE__ */ jsxs("div", {
1494
+ class: `${heroTag} frak-ambassador__hero-tag`,
1495
+ children: [/* @__PURE__ */ jsxs("div", {
1496
+ class: `${heroTagMain} frak-ambassador__hero-tag-main`,
1497
+ children: [
1498
+ /* @__PURE__ */ jsx("b", {
1499
+ class: `${heroAmount} frak-ambassador__hero-amount`,
1500
+ children: texts.heroAmount
1501
+ }),
1502
+ " ",
1503
+ /* @__PURE__ */ jsx("small", {
1504
+ class: `${heroRewardCaption} frak-ambassador__hero-reward-caption`,
1505
+ children: texts.heroRewardCaption
1506
+ })
1507
+ ]
1508
+ }), texts.heroPill ? /* @__PURE__ */ jsx("span", {
1509
+ class: `${heroPill} frak-ambassador__hero-pill`,
1510
+ children: texts.heroPill
1511
+ }) : null]
1512
+ })]
1513
+ })]
1514
+ }),
1515
+ /* @__PURE__ */ jsxs("section", {
1516
+ class: `${reward} frak-ambassador__reward`,
1517
+ children: [
1518
+ /* @__PURE__ */ jsx("p", {
1519
+ class: `${rewardEyebrow} frak-ambassador__reward-eyebrow`,
1520
+ children: texts.rewardEyebrow
1521
+ }),
1522
+ /* @__PURE__ */ jsx("h2", {
1523
+ class: `${rewardHeading} frak-ambassador__reward-heading`,
1524
+ children: texts.rewardHeading.kind === "override" ? headingText(texts.rewardHeading.text) : /* @__PURE__ */ jsxs(Fragment, { children: [
1525
+ headingText(texts.rewardHeading.before),
1526
+ /* @__PURE__ */ jsx("span", {
1527
+ class: `${rewardAmount} frak-ambassador__reward-amount`,
1528
+ children: /* @__PURE__ */ jsx(Figure, { amount: texts.rewardHeading.amount })
1529
+ }),
1530
+ headingText(texts.rewardHeading.after)
1531
+ ] })
1532
+ }),
1533
+ /* @__PURE__ */ jsx("p", {
1534
+ class: `${rewardCaption} frak-ambassador__reward-caption`,
1535
+ children: texts.rewardEstimateCaption
1536
+ }),
1537
+ /* @__PURE__ */ jsx("p", {
1538
+ class: `${rewardLede} frak-ambassador__reward-lede`,
1539
+ children: texts.rewardLede
1540
+ }),
1541
+ /* @__PURE__ */ jsx("button", {
1542
+ type: "button",
1543
+ class: `${rewardCta} frak-ambassador__reward-cta`,
1544
+ disabled: !isClientReady,
1545
+ onClick: handleShare,
1546
+ children: texts.rewardCtaLabel
1547
+ }),
1548
+ /* @__PURE__ */ jsx("p", {
1549
+ class: `${rewardFooter} frak-ambassador__reward-footer`,
1550
+ children: texts.rewardFooterCaption
1551
+ })
1552
+ ]
1553
+ }),
1554
+ /* @__PURE__ */ jsxs("section", {
1555
+ class: `${steps} frak-ambassador__steps`,
1556
+ children: [
1557
+ /* @__PURE__ */ jsx("h2", {
1558
+ class: `${stepsTitle} frak-ambassador__steps-title`,
1559
+ children: texts.explainerTitle
1560
+ }),
1561
+ /* @__PURE__ */ jsx("p", {
1562
+ class: `${stepsLede} frak-ambassador__steps-lede`,
1563
+ children: texts.explainerLede
1564
+ }),
1565
+ /* @__PURE__ */ jsx("div", {
1566
+ class: `${stepsGrid} frak-ambassador__steps-grid`,
1567
+ children: texts.steps.map(({ title, description, imageUrl, imageAlt }, index) => /* @__PURE__ */ jsxs("div", {
1568
+ class: `${step} frak-ambassador__step`,
1569
+ children: [
1570
+ imageUrl ? /* @__PURE__ */ jsx("img", {
1571
+ src: imageUrl,
1572
+ alt: imageAlt ?? title,
1573
+ class: `${stepIcon} frak-ambassador__step-icon`
1574
+ }) : /* @__PURE__ */ jsx("p", {
1575
+ class: `${stepNumber} frak-ambassador__step-number`,
1576
+ "aria-hidden": "true",
1577
+ children: index + 1
1578
+ }),
1579
+ /* @__PURE__ */ jsx("h3", {
1580
+ class: `${stepTitle} frak-ambassador__step-title`,
1581
+ children: title
1582
+ }),
1583
+ /* @__PURE__ */ jsx("p", {
1584
+ class: `${stepDescription} frak-ambassador__step-description`,
1585
+ children: description
1586
+ })
1587
+ ]
1588
+ }, title))
1589
+ })
1590
+ ]
1591
+ }),
1592
+ texts.showWinWin ? /* @__PURE__ */ jsxs("section", {
1593
+ class: `${winWin} frak-ambassador__win-win`,
1594
+ children: [
1595
+ /* @__PURE__ */ jsx("h2", {
1596
+ class: `${winWinTitle} frak-ambassador__win-win-title`,
1597
+ children: texts.winWinHeading
1598
+ }),
1599
+ /* @__PURE__ */ jsx("p", {
1600
+ class: `${winWinLede} frak-ambassador__win-win-lede`,
1601
+ children: texts.winWinLede
1602
+ }),
1603
+ /* @__PURE__ */ jsx("div", {
1604
+ class: `${winWinCards} frak-ambassador__win-win-cards`,
1605
+ children: texts.winWinCards.map(({ title, amount, description }) => /* @__PURE__ */ jsxs("div", {
1606
+ class: `${winWinCard} frak-ambassador__win-win-card`,
1607
+ children: [
1608
+ /* @__PURE__ */ jsx("p", {
1609
+ class: `${winWinCardLabel} frak-ambassador__win-win-card-label`,
1610
+ children: title
1611
+ }),
1612
+ /* @__PURE__ */ jsx("p", {
1613
+ class: `${winWinCardAmount} frak-ambassador__win-win-card-amount`,
1614
+ children: /* @__PURE__ */ jsx(Figure, { amount })
1615
+ }),
1616
+ /* @__PURE__ */ jsx("p", {
1617
+ class: `${winWinCardDescription} frak-ambassador__win-win-card-description`,
1618
+ children: description
1619
+ })
1620
+ ]
1621
+ }, title))
1622
+ })
1623
+ ]
1624
+ }) : null,
1625
+ /* @__PURE__ */ jsxs("section", {
1626
+ class: `${referral} frak-ambassador__referral`,
1627
+ children: [
1628
+ /* @__PURE__ */ jsx("h2", {
1629
+ class: `${referralTitle} frak-ambassador__referral-title`,
1630
+ children: texts.referralHeading
1631
+ }),
1632
+ /* @__PURE__ */ jsx("p", {
1633
+ class: `${referralLede} frak-ambassador__referral-lede`,
1634
+ children: texts.referralLede
1635
+ }),
1636
+ /* @__PURE__ */ jsx("button", {
1637
+ type: "button",
1638
+ class: `${referralCta} frak-ambassador__referral-cta`,
1639
+ disabled: !isClientReady,
1640
+ onClick: handleShare,
1641
+ children: texts.referralCtaLabel
1642
+ })
1643
+ ]
1644
+ }),
1645
+ /* @__PURE__ */ jsxs("section", {
1646
+ class: `${store} frak-ambassador__store`,
1647
+ children: [/* @__PURE__ */ jsxs("div", {
1648
+ class: `${storeBody} frak-ambassador__store-body`,
1649
+ children: [
1650
+ /* @__PURE__ */ jsx("h2", {
1651
+ class: `${storeTitle} frak-ambassador__store-title`,
1652
+ children: texts.storeHeading
1653
+ }),
1654
+ /* @__PURE__ */ jsx("p", {
1655
+ class: `${storeLede} frak-ambassador__store-lede`,
1656
+ children: texts.storeLede
1657
+ }),
1658
+ /* @__PURE__ */ jsxs("div", {
1659
+ class: `${storeBadges} frak-ambassador__store-badges`,
1660
+ children: [/* @__PURE__ */ jsx("a", {
1661
+ class: `${storeBadge} frak-ambassador__store-badge frak-ambassador__store-badge--app`,
1662
+ "aria-label": texts.storeAppBadgeAriaLabel,
1663
+ href: installUrl,
1664
+ role: inert ? "link" : void 0,
1665
+ tabIndex: inert ? 0 : void 0,
1666
+ "aria-disabled": inert ? "true" : void 0,
1667
+ children: /* @__PURE__ */ jsx(AppStoreBadgeArt, {
1668
+ lang,
1669
+ class: `${storeBadgeArt} frak-ambassador__store-badge-art`
1670
+ })
1671
+ }), /* @__PURE__ */ jsx("a", {
1672
+ class: `${storeBadge} frak-ambassador__store-badge frak-ambassador__store-badge--play`,
1673
+ "aria-label": texts.storePlayBadgeAriaLabel,
1674
+ href: installUrl,
1675
+ role: inert ? "link" : void 0,
1676
+ tabIndex: inert ? 0 : void 0,
1677
+ "aria-disabled": inert ? "true" : void 0,
1678
+ children: /* @__PURE__ */ jsx(PlayStoreBadgeArt, {
1679
+ lang,
1680
+ class: `${storeBadgeArt} frak-ambassador__store-badge-art`
1681
+ })
1682
+ })]
1683
+ })
1684
+ ]
1685
+ }), /* @__PURE__ */ jsx(InstallQr, {
1686
+ url: installUrl,
1687
+ label: texts.storeQrLabel,
1688
+ caption: texts.storeQrCaption,
1689
+ class: `${storeQr} frak-ambassador__store-qr`,
1690
+ captionClass: `${storeQrCaption} frak-ambassador__store-qr-caption`
1691
+ })]
1692
+ }),
1693
+ /* @__PURE__ */ jsxs("section", {
1694
+ class: `${faq} frak-ambassador__faq`,
1695
+ children: [
1696
+ /* @__PURE__ */ jsx("h2", {
1697
+ class: `${faqTitle} frak-ambassador__faq-title`,
1698
+ children: texts.faqHeading
1699
+ }),
1700
+ texts.faqs.map((entry, index) => /* @__PURE__ */ jsxs("details", {
1701
+ class: `${faqItem} frak-ambassador__faq-item`,
1702
+ open: index === 0,
1703
+ children: [/* @__PURE__ */ jsx("summary", {
1704
+ class: `${faqQuestion} frak-ambassador__faq-question`,
1705
+ children: entry.question
1706
+ }), /* @__PURE__ */ jsx("p", {
1707
+ class: `${faqAnswer} frak-ambassador__faq-answer`,
1708
+ children: entry.answer
1709
+ })]
1710
+ }, entry.question)),
1711
+ /* @__PURE__ */ jsxs("details", {
1712
+ class: `${faqItem} frak-ambassador__faq-item`,
1713
+ children: [/* @__PURE__ */ jsx("summary", {
1714
+ class: `${faqQuestion} frak-ambassador__faq-question`,
1715
+ children: texts.faq5Question
1716
+ }), /* @__PURE__ */ jsx("p", {
1717
+ class: `${faqAnswer} frak-ambassador__faq-answer`,
1718
+ children: texts.faq5Answer ?? /* @__PURE__ */ jsxs(Fragment, { children: [
1719
+ texts.faq5AnswerBeforeLink,
1720
+ /* @__PURE__ */ jsx("a", {
1721
+ class: `Ambassador_frakLink__awpcg019 frak-ambassador__faq-answer-link frak-link`,
1722
+ href: FRAK_URL,
1723
+ target: "_blank",
1724
+ rel: "noopener",
1725
+ children: texts.faq5AnswerLinkText
1726
+ }),
1727
+ texts.faq5AnswerAfterLink
1728
+ ] })
1729
+ })]
1730
+ }),
1731
+ /* @__PURE__ */ jsxs("p", {
1732
+ class: `${faqAttribution} frak-ambassador__faq-attribution`,
1733
+ children: [texts.attributionBeforeLink, /* @__PURE__ */ jsx("a", {
1734
+ class: `${frakLink} frak-link`,
1735
+ href: FRAK_URL,
1736
+ target: "_blank",
1737
+ rel: "noopener",
1738
+ children: /* @__PURE__ */ jsx("strong", { children: texts.attributionLinkText })
1739
+ })]
1740
+ })
1741
+ ]
1742
+ })
1743
+ ]
1744
+ });
1745
+ }
1746
+ //#endregion
1747
+ //#region src/components/Ambassador/index.ts
1748
+ registerWebComponent(Ambassador, "frak-ambassador", [...[
1749
+ "merchantId",
1750
+ "classname",
1751
+ "heroTitle",
1752
+ "heroEyebrow",
1753
+ "heroLede",
1754
+ "heroCtaLabel",
1755
+ "heroFacesCaption",
1756
+ "heroImageUrl",
1757
+ "heroImageAlt",
1758
+ "heroRewardCaption",
1759
+ "heroRewardRefereePill",
1760
+ "rewardEyebrow",
1761
+ "rewardHeading",
1762
+ "rewardEstimateCaption",
1763
+ "rewardLede",
1764
+ "rewardCtaLabel",
1765
+ "rewardFooterCaption",
1766
+ "rewardNoBankDetails",
1767
+ "rewardFallbackLabel",
1768
+ "explainerTitle",
1769
+ "explainerLede",
1770
+ "step1Title",
1771
+ "step1Description",
1772
+ "step1ImageUrl",
1773
+ "step1ImageAlt",
1774
+ "step2Title",
1775
+ "step2Description",
1776
+ "step2ImageUrl",
1777
+ "step2ImageAlt",
1778
+ "step3Title",
1779
+ "step3Description",
1780
+ "step3ImageUrl",
1781
+ "step3ImageAlt",
1782
+ "winWinHeading",
1783
+ "winWinLede",
1784
+ "winWinCard1Title",
1785
+ "winWinCard1Description",
1786
+ "winWinCard2Title",
1787
+ "winWinCard2Description",
1788
+ "referralHeading",
1789
+ "referralLede",
1790
+ "referralCtaLabel",
1791
+ "storeHeading",
1792
+ "storeLede",
1793
+ "storeAppBadgeAriaLabel",
1794
+ "storePlayBadgeAriaLabel",
1795
+ "storeQrLabel",
1796
+ "storeQrCaption",
1797
+ "faqHeading",
1798
+ "faq1Question",
1799
+ "faq1Answer",
1800
+ "faq2Question",
1801
+ "faq2Answer",
1802
+ "faq3Question",
1803
+ "faq3Answer",
1804
+ "faq4Question",
1805
+ "faq4Answer",
1806
+ "faq5Question",
1807
+ "faq5AnswerBeforeLink",
1808
+ "faq5AnswerLinkText",
1809
+ "faq5AnswerAfterLink",
1810
+ "attributionBeforeLink",
1811
+ "attributionLinkText"
1812
+ ]], { shadow: false });
1813
+ //#endregion
1814
+ export { Ambassador };