@frak-labs/components 1.2.4-beta.c207534b → 1.3.0-beta.86f3adb7

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.CNsPxEu6.js +392 -0
  3. package/cdn/Banner.BkJVyRcn.js +208 -0
  4. package/cdn/ButtonShare.XRvBjti8.js +1 -0
  5. package/cdn/ButtonWallet.efjy4gl3.js +40 -0
  6. package/cdn/GiftIcon.NTATj1WE.js +1 -0
  7. package/cdn/OpenInAppButton.Dv7oAwl1.js +1 -0
  8. package/cdn/PostPurchase.LvokRkHg.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.CLv0qkyM.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 +1810 -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
package/dist/banner.js CHANGED
@@ -1,10 +1,12 @@
1
- import { i as useLang, o as useClientReady, s as registerWebComponent, t as usePlacement } from "./usePlacement-iFDQqtJn.js";
1
+ import { a as useClientReady, o as registerWebComponent, r as useLang } from "./sharedCss-CPNmnpXA.js";
2
2
  import { i as w } from "./rewards-DoVY1pWr.js";
3
- import { t as useGlobalComponents } from "./useGlobalComponents-Cj7uGBwD.js";
4
- import { t as useLightDomStyles } from "./useLightDomStyles-D7bYu-ew.js";
5
- import { t as useReward } from "./useReward-k7RF3DhH.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
6
  import { componentDefaults } from "./i18n/defaults.js";
7
- import { a as ExternalLinkIcon, i as LogoFrakWithName, n as cssSource$5, o as CloseCircleIcon, r as WarningIcon, t as GiftIcon } from "./GiftIcon-BmGGodb2.js";
7
+ import { t as cssSource$5 } from "./sharedBaseCss.css-BkMpQeRx.js";
8
+ import { t as usePlacement } from "./usePlacement-BpaIbzun.js";
9
+ import { a as CloseCircleIcon, i as ExternalLinkIcon, n as WarningIcon, r as LogoFrakWithName, t as GiftIcon } from "./GiftIcon-JVhSFEhP.js";
8
10
  import { isInAppBrowser, redirectToExternalBrowser, sanitizeProductDetailsList, trackEvent } from "@frak-labs/core-sdk";
9
11
  import { REFERRAL_SUCCESS_EVENT, getMergeToken } from "@frak-labs/core-sdk/actions";
10
12
  import { useCallback, useEffect, useMemo, useRef, useState } from "preact/hooks";
@@ -14,119 +16,134 @@ const cssSource$4 = `@keyframes keyframes_fadeIn__mnqmlt0 {
14
16
  from {
15
17
  opacity: 0;
16
18
  }
19
+
17
20
  to {
18
21
  opacity: 1;
19
22
  }
20
23
  }
24
+
21
25
  @keyframes keyframes_fadeOut__mnqmlt1 {
22
26
  from {
23
27
  opacity: 1;
24
28
  }
29
+
25
30
  to {
26
31
  opacity: 0;
27
32
  }
28
33
  }
34
+
29
35
  @keyframes keyframes_fadeInDown__mnqmlt2 {
30
36
  from {
31
37
  opacity: 0;
32
38
  transform: translateY(-4px);
33
39
  }
40
+
34
41
  to {
35
42
  opacity: 1;
36
43
  transform: translateY(0);
37
44
  }
38
- }`;
45
+ }
46
+ `;
39
47
  //#endregion
40
48
  //#region \0ve-inline:../../packages/design-system/src/styles/inAppBanner.css.ts.vanilla.js
41
49
  const cssSource$3 = `.inAppBanner_container__1ibpiy70 {
42
- position: fixed;
43
50
  top: max(8px, var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
44
- left: 16px;
45
- right: 16px;
46
51
  z-index: 1000;
47
- display: flex;
48
- flex-direction: column;
49
- gap: 4px;
50
- padding: 12px 16px;
51
- padding-right: 32px;
52
- border-radius: 12px;
53
- background-color: #000000cc;
54
- backdrop-filter: blur(12px);
55
52
  -webkit-backdrop-filter: blur(12px);
53
+ backdrop-filter: blur(12px);
56
54
  color: var(--text-onAction__pbq4ak6);
57
- animation: keyframes_fadeInDown__mnqmlt2 300ms ease-out;
55
+ background-color: #000c;
56
+ border-radius: 12px;
57
+ flex-direction: column;
58
+ gap: 4px;
59
+ padding: 12px 32px 12px 16px;
60
+ animation: .3s ease-out keyframes_fadeInDown__mnqmlt2;
61
+ display: flex;
62
+ position: fixed;
63
+ left: 16px;
64
+ right: 16px;
58
65
  }
66
+
59
67
  .inAppBanner_header__1ibpiy71 {
60
- display: flex;
61
68
  align-items: center;
62
69
  gap: 8px;
70
+ display: flex;
63
71
  }
72
+
64
73
  .inAppBanner_iconWrapper__1ibpiy72 {
65
- flex-shrink: 0;
66
74
  width: 20px;
67
75
  height: 20px;
68
- display: flex;
69
- align-items: center;
70
- justify-content: center;
71
76
  color: var(--text-onAction__pbq4ak6);
77
+ flex-shrink: 0;
78
+ justify-content: center;
79
+ align-items: center;
80
+ display: flex;
72
81
  }
82
+
73
83
  .inAppBanner_title__1ibpiy73 {
84
+ color: var(--text-onAction__pbq4ak6);
74
85
  margin: 0;
75
86
  padding: 0;
76
87
  font-size: 16px;
77
88
  font-weight: 500;
78
89
  line-height: 26px;
79
- color: var(--text-onAction__pbq4ak6);
80
90
  }
91
+
81
92
  .inAppBanner_body__1ibpiy74 {
82
- display: flex;
83
93
  flex-wrap: wrap;
84
94
  align-items: baseline;
85
95
  gap: 0 4px;
96
+ display: flex;
86
97
  }
98
+
87
99
  .inAppBanner_description__1ibpiy75 {
100
+ color: var(--text-onAction__pbq4ak6);
101
+ opacity: .96;
88
102
  margin: 0;
89
103
  padding: 0;
90
104
  font-size: 14px;
91
- color: var(--text-onAction__pbq4ak6);
92
105
  line-height: 22px;
93
- opacity: 0.96;
94
106
  }
107
+
95
108
  .inAppBanner_cta__1ibpiy76 {
96
109
  all: unset;
97
- display: inline-flex;
110
+ color: #2bb2ff;
111
+ text-underline-offset: 2px;
112
+ cursor: pointer;
98
113
  align-items: center;
99
114
  gap: 4px;
100
- color: #2bb2ff;
101
115
  font-size: 14px;
102
116
  font-weight: 600;
103
117
  text-decoration: underline;
104
- text-underline-offset: 2px;
105
- cursor: pointer;
118
+ display: inline-flex;
106
119
  }
120
+
107
121
  .inAppBanner_cta__1ibpiy76:focus-visible {
108
- outline: 2px solid #2bb2ff;
109
122
  outline-offset: 2px;
110
123
  border-radius: 4px;
124
+ outline: 2px solid #2bb2ff;
111
125
  }
126
+
112
127
  .inAppBanner_closeButton__1ibpiy77 {
113
128
  all: unset;
114
- position: absolute;
115
- top: 8px;
116
- right: 8px;
129
+ color: #fff9;
130
+ cursor: pointer;
131
+ border-radius: 9999px;
132
+ justify-content: center;
133
+ align-items: center;
117
134
  width: 28px;
118
135
  height: 28px;
119
136
  display: flex;
120
- align-items: center;
121
- justify-content: center;
122
- border-radius: 9999px;
123
- color: #ffffff99;
124
- cursor: pointer;
137
+ position: absolute;
138
+ top: 8px;
139
+ right: 8px;
125
140
  }
141
+
126
142
  .inAppBanner_closeButton__1ibpiy77:focus-visible {
127
143
  outline: 2px solid var(--text-onAction__pbq4ak6);
128
144
  outline-offset: 2px;
129
- }`;
145
+ }
146
+ `;
130
147
  //#endregion
131
148
  //#region ../../packages/design-system/src/styles/inAppBanner.css.ts
132
149
  var body = "inAppBanner_body__1ibpiy74";
@@ -189,75 +206,85 @@ function InAppBanner({ title: title$1, description: description$1, cta: cta$1, d
189
206
  //#endregion
190
207
  //#region \0ve-inline:src/components/Banner/Banner.css.ts.vanilla.js
191
208
  const cssSource$1 = `.Banner_rootBase__1gnumzi0 {
192
- position: relative;
209
+ animation: .3s ease-out keyframes_fadeInDown__mnqmlt2;
193
210
  display: flex;
194
- animation: keyframes_fadeInDown__mnqmlt2 300ms ease-out;
211
+ position: relative;
195
212
  }
213
+
196
214
  .Banner_iconSvg__1gnumzi1 {
197
215
  width: 100%;
198
216
  height: 100%;
199
217
  }
218
+
200
219
  .Banner_referral__1gnumzi2 {
220
+ color: var(--text-primary__pbq4ak0);
221
+ border: 1px solid var(--border-default__pbq4akv);
222
+ background-color: #fff;
223
+ border-radius: 12px;
201
224
  flex-direction: row;
202
225
  align-items: center;
203
226
  gap: 16px;
204
227
  padding: 16px;
205
- background-color: #ffffff;
206
- color: var(--text-primary__pbq4ak0);
207
- border: 1px solid var(--border-default__pbq4akv);
208
- border-radius: 12px;
209
228
  }
229
+
210
230
  .Banner_referralIconWrapper__1gnumzi3 {
211
231
  flex-shrink: 0;
232
+ justify-content: center;
212
233
  align-self: flex-start;
213
- display: flex;
214
234
  align-items: center;
215
- justify-content: center;
216
235
  width: 40px;
217
236
  height: 40px;
237
+ display: flex;
218
238
  overflow: hidden;
219
239
  }
240
+
220
241
  .Banner_referralImage__1gnumzi4 {
221
- max-width: 100%;
222
- max-height: 100%;
242
+ object-fit: contain;
223
243
  width: auto;
244
+ max-width: 100%;
224
245
  height: auto;
225
- object-fit: contain;
246
+ max-height: 100%;
226
247
  display: block;
227
248
  }
249
+
228
250
  .Banner_referralBody__1gnumzi5 {
229
251
  flex: 1;
230
252
  min-width: 0;
231
253
  }
254
+
232
255
  .Banner_referralTitle__1gnumzi6 {
256
+ color: var(--text-primary__pbq4ak0);
233
257
  font-size: 16px;
234
258
  font-weight: 600;
235
- color: var(--text-primary__pbq4ak0);
236
259
  line-height: 22px;
237
260
  }
261
+
238
262
  .Banner_referralDescription__1gnumzi7 {
263
+ color: #979797;
239
264
  margin-bottom: 8px;
240
265
  font-size: 14px;
241
- color: #979797;
242
266
  line-height: 22px;
243
267
  }
268
+
244
269
  .Banner_referralCta__1gnumzi8 {
245
- display: inline-block;
246
- padding: 8px 16px;
247
- border: 1px solid #000000;
248
- border-radius: 9999px;
249
270
  color: var(--text-primary__pbq4ak0);
271
+ text-transform: uppercase;
272
+ border: 1px solid #000;
273
+ border-radius: 9999px;
274
+ padding: 8px 16px;
250
275
  font-size: 10px;
251
276
  font-weight: 700;
252
277
  line-height: 12px;
253
- text-transform: uppercase;
278
+ display: inline-block;
254
279
  }
280
+
255
281
  .Banner_frakLogo__1gnumzi9 {
282
+ pointer-events: none;
256
283
  position: absolute;
257
- right: 16px;
258
284
  bottom: 12px;
259
- pointer-events: none;
260
- }`;
285
+ right: 16px;
286
+ }
287
+ `;
261
288
  //#endregion
262
289
  //#region src/components/Banner/Banner.css.ts
263
290
  var frakLogo = "Banner_frakLogo__1gnumzi9";
@@ -1,9 +1,10 @@
1
- import { c as openSharingPage, i as useLang, o as useClientReady, s as registerWebComponent, t as usePlacement } from "./usePlacement-iFDQqtJn.js";
1
+ import { a as useClientReady, o as registerWebComponent, r as useLang, s as openSharingPage } from "./sharedCss-CPNmnpXA.js";
2
2
  import { i as w } from "./rewards-DoVY1pWr.js";
3
- import { t as useGlobalComponents } from "./useGlobalComponents-Cj7uGBwD.js";
4
- import { t as useLightDomStyles } from "./useLightDomStyles-D7bYu-ew.js";
5
- import { t as useReward } from "./useReward-k7RF3DhH.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
6
  import { componentDefaults } from "./i18n/defaults.js";
7
+ import { t as usePlacement } from "./usePlacement-BpaIbzun.js";
7
8
  import { sanitizeSharingProducts, trackEvent } from "@frak-labs/core-sdk";
8
9
  import { useCallback, useEffect, useMemo, useRef } from "preact/hooks";
9
10
  import { jsx } from "preact/jsx-runtime";
@@ -111,7 +112,7 @@ function ButtonShare({ placement: placementId, text, classname = "", noRewardTex
111
112
  has_reward: Boolean(reward),
112
113
  click_action: resolvedClickAction
113
114
  });
114
- openSharingPage(resolvedTargetInteraction, placementId, { products: parsedProducts });
115
+ openSharingPage("share_button", resolvedTargetInteraction, placementId, { products: parsedProducts });
115
116
  }, [
116
117
  isPreview,
117
118
  resolvedClickAction,
@@ -1,6 +1,7 @@
1
- import { c as openSharingPage, i as useLang, n as buildStyleContent, o as useClientReady, s as registerWebComponent, t as usePlacement } from "./usePlacement-iFDQqtJn.js";
2
- import { t as useReward } from "./useReward-k7RF3DhH.js";
1
+ import { a as useClientReady, o as registerWebComponent, r as useLang, s as openSharingPage, t as buildStyleContent } from "./sharedCss-CPNmnpXA.js";
2
+ import { t as useReward } from "./useReward-DEhiMfgl.js";
3
3
  import { componentDefaults } from "./i18n/defaults.js";
4
+ import { t as usePlacement } from "./usePlacement-BpaIbzun.js";
4
5
  import { trackEvent } from "@frak-labs/core-sdk";
5
6
  import { useCallback, useEffect, useRef } from "preact/hooks";
6
7
  import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
@@ -147,7 +148,7 @@ function ButtonWallet({ placement: placementId, classname = "", useReward: rawUs
147
148
  click_action: "sharing-page"
148
149
  });
149
150
  safeVibrate();
150
- openSharingPage(resolvedTargetInteraction, placementId);
151
+ openSharingPage("share_button", resolvedTargetInteraction, placementId);
151
152
  }, [
152
153
  placementId,
153
154
  resolvedTargetInteraction,
@@ -36,19 +36,80 @@ type ComponentCopy = {
36
36
  inappCta: string;
37
37
  dismissLabel: string;
38
38
  };
39
+ ambassador: {
40
+ heroEyebrow: string;
41
+ heroHeadline: string;
42
+ /** `heroLede` never carries a `{REWARD}` token; `heroLedeReward` does. */
43
+ heroLede: string;
44
+ heroLedeReward: string;
45
+ heroCtaLabel: string;
46
+ heroFacesCaption: string;
47
+ heroImageAlt: string;
48
+ heroRewardCaption: string;
49
+ /** Rendered only when a referee reward resolves, never otherwise; `*NoReward` names a percentage reward, which has no figure. */
50
+ heroRewardRefereePill: string;
51
+ heroRewardRefereePillNoReward: string;
52
+ rewardEyebrow: string;
53
+ rewardHeadingReward: string;
54
+ rewardHeadingNoReward: string;
55
+ rewardEstimateCaption: string;
56
+ rewardLede: string;
57
+ rewardCtaLabel: string;
58
+ rewardFooterCaption: string;
59
+ rewardNoBankDetails: string;
60
+ /** The no-reward swap-in text for any amount display; keeps the sentence's subject. */
61
+ rewardFallbackLabel: string;
62
+ explainerTitle: string;
63
+ explainerLede: string;
64
+ explainerStep1Title: string;
65
+ explainerStep1Description: string;
66
+ explainerStep2Title: string;
67
+ explainerStep2Description: string;
68
+ explainerStep3Title: string;
69
+ explainerStep3Description: string;
70
+ winWinHeading: string;
71
+ winWinLede: string;
72
+ winWinCard1Title: string;
73
+ winWinCard1Description: string;
74
+ winWinCard2Title: string;
75
+ winWinCard2Description: string;
76
+ referralHeading: string;
77
+ referralLede: string;
78
+ referralCtaLabel: string;
79
+ storeHeading: string;
80
+ storeLede: string;
81
+ storeAppBadgeAriaLabel: string;
82
+ storePlayBadgeAriaLabel: string;
83
+ storeQrLabel: string;
84
+ storeQrCaption: string;
85
+ faqHeading: string;
86
+ faq1Question: string;
87
+ faq1Answer: string;
88
+ faq2Question: string;
89
+ faq2Answer: string;
90
+ faq3Question: string;
91
+ faq3Answer: string;
92
+ /** Perk-free swap-in when the campaign has no referee reward. */
93
+ faq3AnswerNoReward: string;
94
+ faq4Question: string;
95
+ faq4Answer: string;
96
+ faq5Question: string;
97
+ /** The two frak.id anchors are markup inside plain copy: each is split into
98
+ * before/link-text/after keys so the component can render a real `<a>` around
99
+ * the link text without flattening it to a string (content-spec Rule 5). */
100
+ faq5AnswerBeforeLink: string;
101
+ faq5AnswerLinkText: string;
102
+ faq5AnswerAfterLink: string;
103
+ attributionBeforeLink: string;
104
+ attributionLinkText: string;
105
+ };
39
106
  };
40
107
  /**
41
108
  * Built-in, per-language default copy for the SDK Web Components.
42
109
  *
43
- * These strings are the last-resort fallback, used only when a merchant
44
- * provides neither an HTML attribute override nor a backend-config override.
45
- * They keep the components bilingual out of the box **without** pulling an
46
- * i18n runtime (e.g. i18next) into the size-critical CDN bundle — resolution
47
- * is a plain object lookup keyed by the active language (see `useLang`).
48
- *
49
- * Adding a new language is a matter of adding one entry here plus extending
50
- * the `Language` union in `@frak-labs/core-sdk` — no new dependency, no
51
- * merchant action, no SDK API change.
110
+ * Last-resort fallback, used only when a merchant provides neither an HTML
111
+ * attribute override nor a backend-config override. A plain object lookup
112
+ * keyed by the active language keeps an i18n runtime out of the CDN bundle.
52
113
  */
53
114
  export declare const componentDefaults: Record<Language, ComponentCopy>;
54
115
  //#endregion
@@ -2,15 +2,9 @@
2
2
  /**
3
3
  * Built-in, per-language default copy for the SDK Web Components.
4
4
  *
5
- * These strings are the last-resort fallback, used only when a merchant
6
- * provides neither an HTML attribute override nor a backend-config override.
7
- * They keep the components bilingual out of the box **without** pulling an
8
- * i18n runtime (e.g. i18next) into the size-critical CDN bundle — resolution
9
- * is a plain object lookup keyed by the active language (see `useLang`).
10
- *
11
- * Adding a new language is a matter of adding one entry here plus extending
12
- * the `Language` union in `@frak-labs/core-sdk` — no new dependency, no
13
- * merchant action, no SDK API change.
5
+ * Last-resort fallback, used only when a merchant provides neither an HTML
6
+ * attribute override nor a backend-config override. A plain object lookup
7
+ * keyed by the active language keeps an i18n runtime out of the CDN bundle.
14
8
  */
15
9
  const componentDefaults = {
16
10
  en: {
@@ -37,6 +31,66 @@ const componentDefaults = {
37
31
  inappDescription: "For a better experience and to earn your rewards, open this page in your default browser.",
38
32
  inappCta: "Open browser",
39
33
  dismissLabel: "Dismiss"
34
+ },
35
+ ambassador: {
36
+ heroEyebrow: "Ambassador program",
37
+ heroHeadline: "Become an ambassador for {BRAND}",
38
+ heroLede: "Love our products? Tell the people around you! Earn a reward as soon as someone buys thanks to you.",
39
+ heroLedeReward: "Love our products? Tell the people around you! Earn {REWARD} as soon as someone buys thanks to you.",
40
+ heroCtaLabel: "Become an ambassador",
41
+ heroFacesCaption: "No form, no waiting: anyone can become an ambassador right away.",
42
+ heroImageAlt: "{BRAND} ambassadors",
43
+ heroRewardCaption: "for you, on every sale",
44
+ heroRewardRefereePill: "+ {REWARD} for your friend",
45
+ heroRewardRefereePillNoReward: "+ a perk for your friend",
46
+ rewardEyebrow: "Referral program",
47
+ rewardHeadingReward: "{REWARD} for you on every sale",
48
+ rewardHeadingNoReward: "A reward for you on every sale",
49
+ rewardEstimateCaption: "Estimate: the amount depends on the campaign and your friend's order.",
50
+ rewardLede: "No cap: the more you share, the more sales your link brings in, and the more you earn!",
51
+ rewardCtaLabel: "Get my link",
52
+ rewardFooterCaption: "Free · no commitment · paid to your bank account",
53
+ rewardNoBankDetails: "no bank details needed to start",
54
+ rewardFallbackLabel: "A reward",
55
+ explainerTitle: "How it works",
56
+ explainerLede: "Three steps, nothing more.",
57
+ explainerStep1Title: "I share with the people close to me",
58
+ explainerStep1Description: "On WhatsApp, in an Instagram story, on TikTok… my unique link, generated automatically.",
59
+ explainerStep2Title: "I get paid",
60
+ explainerStep2Description: "Credited automatically to my wallet for every sale made through my referral link.",
61
+ explainerStep3Title: "I collect my money",
62
+ explainerStep3Description: "With the Frak app, I transfer my earnings to my bank account.",
63
+ winWinHeading: "Your friends win too",
64
+ winWinLede: "Recommend {BRAND} to the people close to you: they discover great products, and thanks to your link they get cashback on their first order. They can thank you for it!",
65
+ winWinCard1Title: "You",
66
+ winWinCard1Description: "to your secure wallet, on every sale",
67
+ winWinCard2Title: "Your friend",
68
+ winWinCard2Description: "in cashback to their secure wallet, on their first order",
69
+ referralHeading: "Your ambassador link",
70
+ referralLede: "Finally, a referral program that really pays!",
71
+ referralCtaLabel: "Share my link",
72
+ storeHeading: "Track your earnings in real time",
73
+ storeLede: "The Frak app notifies you as soon as a friend orders, and centralizes your earnings across every partner brand.",
74
+ storeAppBadgeAriaLabel: "Download on the App Store",
75
+ storePlayBadgeAriaLabel: "Get it on Google Play",
76
+ storeQrLabel: "QR code to install the Frak app",
77
+ storeQrCaption: "Scan to install",
78
+ faqHeading: "Frequently asked questions",
79
+ faq1Question: "Is it really free?",
80
+ faq1Answer: "Yes, completely free. No subscription, no hidden fees. Your earnings land in your Frak wallet: real money, transferable to a bank account, with no fees.",
81
+ faq2Question: "When do I get my money?",
82
+ faq2Answer: "For every order generated by your link, your earnings are credited automatically to your Frak wallet. They become transferable once the brand confirms the purchase, with no minimum amount.",
83
+ faq3Question: "Do my friends pay more with my link?",
84
+ faq3Answer: "No, quite the opposite: you win and so do your friends. By ordering through your link, they also get cashback on their purchase.",
85
+ faq3AnswerNoReward: "No. Your link doesn't change the price: your friends pay exactly what everyone else pays.",
86
+ faq4Question: "Do I need to be an influencer?",
87
+ faq4Answer: "No, not at all. No application, no minimum follower count: the program is open to all our customers, whatever the size of your network.",
88
+ faq5Question: "What is Frak?",
89
+ faq5AnswerBeforeLink: "The partner that handles referral tracking and payouts for {BRAND}. ",
90
+ faq5AnswerLinkText: "Frak",
91
+ faq5AnswerAfterLink: " never sells any data to third parties.",
92
+ attributionBeforeLink: "Program powered by ",
93
+ attributionLinkText: "Frak"
40
94
  }
41
95
  },
42
96
  fr: {
@@ -63,6 +117,66 @@ const componentDefaults = {
63
117
  inappDescription: "Pour une meilleure expérience et pour gagner vos récompenses, ouvrez cette page dans votre navigateur par défaut.",
64
118
  inappCta: "Ouvrir le navigateur",
65
119
  dismissLabel: "Fermer"
120
+ },
121
+ ambassador: {
122
+ heroEyebrow: "Programme ambassadeur",
123
+ heroHeadline: "Devenez ambassadeur {BRAND}",
124
+ heroLede: "Vous aimez nos produits\xA0? Parlez-en autour de vous\xA0! Gagnez une récompense dès qu’un achat est réalisé grâce à vous.",
125
+ heroLedeReward: "Vous aimez nos produits\xA0? Parlez-en autour de vous\xA0! Gagnez {REWARD} dès qu’un achat est réalisé grâce à vous.",
126
+ heroCtaLabel: "Devenir ambassadeur",
127
+ heroFacesCaption: "Pas de formulaire, pas d’attente\xA0: tout le monde peut devenir ambassadeur immédiatement.",
128
+ heroImageAlt: "Ambassadrices et ambassadeurs {BRAND}",
129
+ heroRewardCaption: "pour vous, à chaque vente",
130
+ heroRewardRefereePill: "+ {REWARD} offerts à votre filleul",
131
+ heroRewardRefereePillNoReward: "+ un avantage pour votre filleul",
132
+ rewardEyebrow: "Programme de parrainage",
133
+ rewardHeadingReward: "{REWARD} pour vous à chaque vente",
134
+ rewardHeadingNoReward: "Une récompense pour vous à chaque vente",
135
+ rewardEstimateCaption: "Estimation\xA0: le montant dépend de la campagne et du panier de votre proche.",
136
+ rewardLede: "Pas de plafond\xA0: plus vous partagez, plus de ventes sont générées grâce à votre lien, plus vous gagnez\xA0!",
137
+ rewardCtaLabel: "Obtenir mon lien",
138
+ rewardFooterCaption: "Gratuit · sans engagement · versé sur votre compte bancaire",
139
+ rewardNoBankDetails: "sans donnée bancaire pour commencer",
140
+ rewardFallbackLabel: "Une récompense",
141
+ explainerTitle: "Comment ça marche",
142
+ explainerLede: "Trois gestes, rien de plus.",
143
+ explainerStep1Title: "Je partage à mes proches",
144
+ explainerStep1Description: "Via WhatsApp, en story Instagram, sur TikTok… mon lien unique, généré automatiquement.",
145
+ explainerStep2Title: "Je reçois de l’argent",
146
+ explainerStep2Description: "Crédité automatiquement dans mon porte-monnaie à chaque vente générée grâce à mon lien de recommandation.",
147
+ explainerStep3Title: "Je récupère mon argent",
148
+ explainerStep3Description: "En téléchargeant l’app Frak, je transfère mes gains sur mon compte bancaire.",
149
+ winWinHeading: "Vos proches y gagnent aussi",
150
+ winWinLede: "En conseillant {BRAND} à vos proches, non seulement vous leur faites découvrir de super produits, mais en plus, grâce à votre lien, ils bénéficient d’un cashback sur leur première commande\xA0: ils peuvent vous dire merci\xA0!",
151
+ winWinCard1Title: "Vous",
152
+ winWinCard1Description: "sur votre porte-monnaie sécurisé, à chaque vente",
153
+ winWinCard2Title: "Votre filleul",
154
+ winWinCard2Description: "en cashback sur son porte-monnaie sécurisé, à sa première commande",
155
+ referralHeading: "Votre lien d’ambassadeur",
156
+ referralLede: "Enfin un vrai programme de parrainage rémunérateur\xA0!",
157
+ referralCtaLabel: "Partager mon lien",
158
+ storeHeading: "Suivez vos gains en temps réel",
159
+ storeLede: "L’app Frak vous prévient dès qu’un ami commande, et centralise vos gains sur toutes les marques partenaires.",
160
+ storeAppBadgeAriaLabel: "Télécharger dans l’App Store",
161
+ storePlayBadgeAriaLabel: "Disponible sur Google Play",
162
+ storeQrLabel: "QR code pour installer l’app Frak",
163
+ storeQrCaption: "Scannez pour installer",
164
+ faqHeading: "Questions fréquentes",
165
+ faq1Question: "C’est vraiment gratuit\xA0?",
166
+ faq1Answer: "Oui, totalement gratuit. Pas d’abonnement, pas de frais cachés. Vos gains arrivent dans votre porte-monnaie Frak\xA0: de l’argent réel, transférable vers un compte bancaire, sans commission.",
167
+ faq2Question: "Quand est-ce que je reçois mon argent\xA0?",
168
+ faq2Answer: "À chaque commande générée par votre lien, vos gains sont crédités automatiquement dans votre porte-monnaie Frak. Ils deviennent transférables une fois l’achat confirmé par la marque, sans montant minimum.",
169
+ faq3Question: "Mes amis paient-ils plus cher avec mon lien\xA0?",
170
+ faq3Answer: "Non, au contraire\xA0: vous êtes gagnant et vos proches aussi. En commandant via votre lien, ils reçoivent eux aussi un cashback sur leur achat.",
171
+ faq3AnswerNoReward: "Non. Votre lien ne change rien au prix\xA0: vos proches paient exactement le même montant que tout le monde.",
172
+ faq4Question: "Il faut être influenceur\xA0?",
173
+ faq4Answer: "Non, pas du tout. Aucune candidature, aucun minimum de followers\xA0: le programme est ouvert à tous nos clients, quelle que soit la taille de votre réseau.",
174
+ faq5Question: "C’est quoi Frak\xA0?",
175
+ faq5AnswerBeforeLink: "Le partenaire qui gère le suivi des parrainages et le versement des gains pour {BRAND}. ",
176
+ faq5AnswerLinkText: "Frak",
177
+ faq5AnswerAfterLink: " ne vend aucune donnée à des tiers.",
178
+ attributionBeforeLink: "Programme propulsé par ",
179
+ attributionLinkText: "Frak"
66
180
  }
67
181
  }
68
182
  };
package/dist/openInApp.js CHANGED
@@ -1,6 +1,7 @@
1
- import { i as useLang, o as useClientReady, s as registerWebComponent, t as usePlacement } from "./usePlacement-iFDQqtJn.js";
2
- import { t as useLightDomStyles } from "./useLightDomStyles-D7bYu-ew.js";
1
+ import { a as useClientReady, o as registerWebComponent, r as useLang } from "./sharedCss-CPNmnpXA.js";
2
+ import { t as useLightDomStyles } from "./useLightDomStyles-BQ5FvCPi.js";
3
3
  import { componentDefaults } from "./i18n/defaults.js";
4
+ import { t as usePlacement } from "./usePlacement-BpaIbzun.js";
4
5
  import { DEEP_LINK_SCHEME, isMobile, trackEvent, triggerDeepLinkWithFallback } from "@frak-labs/core-sdk";
5
6
  import { jsx } from "preact/jsx-runtime";
6
7
  //#region src/actions/openInApp.ts