@extenshi/pay 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/README.md +13 -9
  2. package/dist/api/mock.d.ts +4 -0
  3. package/dist/api/mock.d.ts.map +1 -1
  4. package/dist/api/pay-api.d.ts +10 -3
  5. package/dist/api/pay-api.d.ts.map +1 -1
  6. package/dist/api/transport.d.ts.map +1 -1
  7. package/dist/core/config.d.ts.map +1 -1
  8. package/dist/core/extenshi-pay.d.ts +21 -2
  9. package/dist/core/extenshi-pay.d.ts.map +1 -1
  10. package/dist/core/locale.d.ts +13 -0
  11. package/dist/core/locale.d.ts.map +1 -0
  12. package/dist/core.d.mts +208 -113
  13. package/dist/core.d.ts +208 -113
  14. package/dist/core.js +204 -14
  15. package/dist/core.js.map +1 -1
  16. package/dist/core.mjs +204 -15
  17. package/dist/core.mjs.map +1 -1
  18. package/dist/extenshi-pay-lite.js +204 -14
  19. package/dist/extenshi-pay-lite.js.map +1 -1
  20. package/dist/extenshi-pay-lite.min.js +3 -2
  21. package/dist/extenshi-pay-lite.min.js.map +1 -1
  22. package/dist/extenshi-pay-lite.mjs +204 -15
  23. package/dist/extenshi-pay-lite.mjs.map +1 -1
  24. package/dist/extenshi-pay.cjs.js +1234 -180
  25. package/dist/extenshi-pay.cjs.js.map +1 -1
  26. package/dist/extenshi-pay.d.ts.map +1 -1
  27. package/dist/extenshi-pay.js +1234 -180
  28. package/dist/extenshi-pay.js.map +1 -1
  29. package/dist/extenshi-pay.min.js +3 -2
  30. package/dist/extenshi-pay.min.js.map +1 -1
  31. package/dist/extenshi-pay.min.mjs +3 -2
  32. package/dist/extenshi-pay.min.mjs.map +1 -1
  33. package/dist/extenshi-pay.mjs +1231 -181
  34. package/dist/extenshi-pay.mjs.map +1 -1
  35. package/dist/index.d.mts +268 -117
  36. package/dist/index.d.ts +268 -117
  37. package/dist/lite.d.mts +176 -82
  38. package/dist/lite.d.ts +176 -82
  39. package/dist/lite.d.ts.map +1 -1
  40. package/dist/payment/checkout.d.ts.map +1 -1
  41. package/dist/payment/recovery.d.ts +2 -0
  42. package/dist/payment/recovery.d.ts.map +1 -1
  43. package/dist/payment/withdrawal-waiver.d.ts +26 -0
  44. package/dist/payment/withdrawal-waiver.d.ts.map +1 -0
  45. package/dist/paywall/billing-profile-picker.d.ts +1 -1
  46. package/dist/paywall/billing-profile-picker.d.ts.map +1 -1
  47. package/dist/paywall/i18n.d.ts +94 -0
  48. package/dist/paywall/i18n.d.ts.map +1 -0
  49. package/dist/paywall/index.d.ts +2 -1
  50. package/dist/paywall/index.d.ts.map +1 -1
  51. package/dist/paywall/license-panel.d.ts +4 -1
  52. package/dist/paywall/license-panel.d.ts.map +1 -1
  53. package/dist/paywall/renderer.d.ts +16 -2
  54. package/dist/paywall/renderer.d.ts.map +1 -1
  55. package/dist/paywall/seller-details.d.ts +2 -1
  56. package/dist/paywall/seller-details.d.ts.map +1 -1
  57. package/dist/paywall/strings.d.ts +6 -4
  58. package/dist/paywall/strings.d.ts.map +1 -1
  59. package/dist/paywall.d.mts +93 -7
  60. package/dist/paywall.d.ts +93 -7
  61. package/dist/paywall.js +992 -41
  62. package/dist/paywall.js.map +1 -1
  63. package/dist/paywall.mjs +990 -42
  64. package/dist/paywall.mjs.map +1 -1
  65. package/dist/types/config.d.ts +6 -1
  66. package/dist/types/config.d.ts.map +1 -1
  67. package/dist/types/contract.d.ts +25 -0
  68. package/dist/types/contract.d.ts.map +1 -1
  69. package/dist/types/entitlement.d.ts +22 -0
  70. package/dist/types/entitlement.d.ts.map +1 -1
  71. package/dist/types/errors.d.ts +1 -0
  72. package/dist/types/errors.d.ts.map +1 -1
  73. package/dist/types/paywall.d.ts +15 -2
  74. package/dist/types/paywall.d.ts.map +1 -1
  75. package/dist/version.d.ts +1 -1
  76. package/package.json +3 -11
  77. package/dist/core.esm.js +0 -1681
  78. package/dist/core.esm.js.map +0 -1
  79. package/dist/extenshi-pay-lite.esm.js +0 -1664
  80. package/dist/extenshi-pay-lite.esm.js.map +0 -1
  81. package/dist/extenshi-pay.esm.js +0 -2496
  82. package/dist/extenshi-pay.esm.js.map +0 -1
  83. package/dist/extenshi-pay.esm.min.js +0 -7
  84. package/dist/extenshi-pay.esm.min.js.map +0 -1
  85. package/dist/paywall.esm.js +0 -442
  86. package/dist/paywall.esm.js.map +0 -1
@@ -1,7 +1,8 @@
1
1
  /*!
2
- * ExtenshiPay SDK v0.7.0
2
+ * ExtenshiPay SDK v0.8.0
3
3
  * (c) 2026 Extenshi.io
4
4
  * Released under the MIT License.
5
+ * commit c6d87d374d371c8ddcb3345a25c72926538c5c05 · built by `rollup -c`
5
6
  */
6
7
  (function (global, factory) {
7
8
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -51,6 +52,13 @@
51
52
  * none — never had it
52
53
  */
53
54
  const PAY_ENTITLEMENT_STATUSES = ['active', 'grace', 'expired', 'none'];
55
+ /**
56
+ * Version of the buyer-facing withdrawal waiver text the paywall shows (EU/EEA
57
+ * digital content, Directive 2011/83/EU art. 16(m); UK CCR 2013 reg. 37). The
58
+ * text itself lives in the SDK dictionary under the same version; bump both
59
+ * together so a recorded consent always names the words the buyer saw.
60
+ */
61
+ const PAY_WITHDRAWAL_WAIVER_VERSION = '2026-10-v1';
54
62
  /**
55
63
  * The `endUserRef` an SDK mints on first run and keeps in `chrome.storage`.
56
64
  * Opaque, random, never derived from anything identifying.
@@ -67,6 +75,7 @@
67
75
  GATEWAY_UNAVAILABLE: 'PAY_GATEWAY_UNAVAILABLE',
68
76
  RATE_LIMITED: 'PAY_RATE_LIMITED',
69
77
  INVALID_KEY: 'PAY_INVALID_KEY',
78
+ WITHDRAWAL_WAIVER_REQUIRED: 'PAY_WITHDRAWAL_WAIVER_REQUIRED',
70
79
  };
71
80
  /**
72
81
  * Canonical JSON for signing: keys sorted recursively, no whitespace. Both
@@ -98,6 +107,7 @@
98
107
  GATEWAY_UNAVAILABLE: 'GATEWAY_UNAVAILABLE',
99
108
  CHECKOUT_UNAVAILABLE: 'CHECKOUT_UNAVAILABLE',
100
109
  PAYWALL_UNAVAILABLE: 'PAYWALL_UNAVAILABLE',
110
+ WITHDRAWAL_WAIVER_REQUIRED: 'WITHDRAWAL_WAIVER_REQUIRED',
101
111
  UNKNOWN: 'UNKNOWN',
102
112
  };
103
113
  class ExtenshiPayError extends Error {
@@ -154,6 +164,13 @@
154
164
  * mock checkout completes after `claimAfterPolls` polls and grants the SKU.
155
165
  */
156
166
  const DAY_MS = 24 * 60 * 60 * 1000;
167
+ /** Accepts the same optional `withdrawalWaiver` input as the BFF; anything else is no consent. */
168
+ function mockConsent(value) {
169
+ const consent = value;
170
+ return consent && typeof consent.version === 'string' && consent.accepted === true
171
+ ? { version: consent.version, accepted: true }
172
+ : null;
173
+ }
157
174
  class MockTransport {
158
175
  constructor(data = {}) {
159
176
  this.sessions = new Map();
@@ -162,13 +179,15 @@
162
179
  this.projectName = data.projectName ?? 'Mock project';
163
180
  this.checkoutEnabled = data.checkoutEnabled ?? true;
164
181
  this.claimAfterPolls = data.claimAfterPolls ?? 1;
182
+ this.withdrawalWaiver =
183
+ data.withdrawalWaiver === undefined ? { version: PAY_WITHDRAWAL_WAIVER_VERSION } : data.withdrawalWaiver;
165
184
  }
166
185
  async call(procedure, _kind, input) {
167
186
  switch (procedure) {
168
187
  case 'pay.getOffer':
169
188
  return this.offerResponse();
170
189
  case 'pay.createCheckout':
171
- return this.createCheckout(String(input.sku));
190
+ return this.createCheckout(String(input.sku), mockConsent(input.withdrawalWaiver));
172
191
  case 'pay.claimSession':
173
192
  return this.claim(String(input.sessionId), String(input.endUserRef), String(input.publishableKey));
174
193
  case 'pay.getEntitlement':
@@ -201,9 +220,10 @@
201
220
  checkoutEnabled: this.checkoutEnabled && this.offers.length > 0,
202
221
  offers: [...this.offers],
203
222
  entitlementPublicKey: null,
223
+ withdrawalWaiver: this.withdrawalWaiver ? { ...this.withdrawalWaiver } : null,
204
224
  };
205
225
  }
206
- createCheckout(sku) {
226
+ createCheckout(sku, withdrawalWaiver) {
207
227
  if (!this.checkoutEnabled) {
208
228
  throw new ExtenshiPayError(ERROR_CODES.SELLER_NOT_ACTIVE, 'Mock seller cannot take payments');
209
229
  }
@@ -211,7 +231,7 @@
211
231
  throw new ExtenshiPayError(ERROR_CODES.OFFER_NOT_FOUND, `Unknown mock offer ${sku}`);
212
232
  }
213
233
  const sessionId = mintEndUserRef();
214
- this.sessions.set(sessionId, { sku, polls: 0, state: 'open' });
234
+ this.sessions.set(sessionId, { sku, polls: 0, state: 'open', withdrawalWaiver });
215
235
  return {
216
236
  url: `https://mock.extenshi.io/checkout/${sessionId}`,
217
237
  sessionId,
@@ -273,10 +293,12 @@
273
293
  this.transport = transport;
274
294
  this.publishableKey = publishableKey;
275
295
  }
276
- createRestoreSession(claimChallenge) {
296
+ /** `locale` opens the hosted recovery page (and its email) in the user's language. */
297
+ createRestoreSession(claimChallenge, locale) {
277
298
  return this.transport.call('pay.createRestoreSession', 'mutation', {
278
299
  publishableKey: this.publishableKey,
279
300
  claimChallenge,
301
+ ...(locale ? { locale } : {}),
280
302
  });
281
303
  }
282
304
  claimRestoreSession(sessionId, claimSecret) {
@@ -292,12 +314,20 @@
292
314
  locale: locale ?? undefined,
293
315
  });
294
316
  }
295
- createCheckout(sku, endUserRef, locale) {
317
+ /**
318
+ * `withdrawalWaiver` is sent only when given. Older BFFs parse the input with
319
+ * a non-strict zod object, which strips the unknown key, so it is safe there.
320
+ * Plain-JS callers passing anything but `accepted: true` send no consent.
321
+ */
322
+ createCheckout(sku, endUserRef, locale, withdrawalWaiver) {
296
323
  return this.transport.call('pay.createCheckout', 'mutation', {
297
324
  publishableKey: this.publishableKey,
298
325
  sku,
299
326
  endUserRef,
300
327
  locale: locale ?? undefined,
328
+ ...(withdrawalWaiver?.accepted === true && typeof withdrawalWaiver.version === 'string'
329
+ ? { withdrawalWaiver: { version: withdrawalWaiver.version, accepted: true } }
330
+ : {}),
301
331
  });
302
332
  }
303
333
  claimSession(sessionId, endUserRef) {
@@ -313,11 +343,12 @@
313
343
  endUserRef,
314
344
  });
315
345
  }
316
- getPortalUrl(endUserRef, customerId) {
346
+ getPortalUrl(endUserRef, customerId, locale) {
317
347
  return this.transport.call('pay.getPortalUrl', 'mutation', {
318
348
  publishableKey: this.publishableKey,
319
349
  endUserRef,
320
350
  ...(customerId ? { customerId } : {}),
351
+ ...(locale ? { locale } : {}),
321
352
  });
322
353
  }
323
354
  }
@@ -383,6 +414,7 @@
383
414
  [PAY_ERRORS.AGREEMENT_REQUIRED]: ERROR_CODES.SELLER_NOT_ACTIVE,
384
415
  [PAY_ERRORS.OFFER_NOT_FOUND]: ERROR_CODES.OFFER_NOT_FOUND,
385
416
  [PAY_ERRORS.GATEWAY_UNAVAILABLE]: ERROR_CODES.GATEWAY_UNAVAILABLE,
417
+ [PAY_ERRORS.WITHDRAWAL_WAIVER_REQUIRED]: ERROR_CODES.WITHDRAWAL_WAIVER_REQUIRED,
386
418
  };
387
419
  function parseRetryAfter(message) {
388
420
  const match = /retry in (\d+)s/i.exec(message);
@@ -412,6 +444,8 @@
412
444
  return new ExtenshiPayError(ERROR_CODES.CHECKOUT_UNAVAILABLE, message, options);
413
445
  return new ExtenshiPayError(ERROR_CODES.OFFER_NOT_FOUND, message, options);
414
446
  case 'PRECONDITION_FAILED':
447
+ if (/withdrawal/i.test(message))
448
+ return new ExtenshiPayError(ERROR_CODES.WITHDRAWAL_WAIVER_REQUIRED, message, options);
415
449
  return new ExtenshiPayError(ERROR_CODES.SELLER_NOT_ACTIVE, message, options);
416
450
  case 'BAD_REQUEST':
417
451
  return new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, message, options);
@@ -594,7 +628,7 @@
594
628
  throw new ExtenshiPayError(ERROR_CODES.CHECKOUT_UNAVAILABLE, 'A checkout is already in progress');
595
629
  }
596
630
  const endUserRef = await this.options.getEndUserRef();
597
- const session = await this.options.api.createCheckout(sku, endUserRef, options.locale ?? this.options.locale);
631
+ const session = await this.options.api.createCheckout(sku, endUserRef, options.locale ?? this.options.locale, options.withdrawalWaiver);
598
632
  this.active = session.sessionId;
599
633
  try {
600
634
  const pending = { sessionId: session.sessionId, sku, expiresAt: session.expiresAt };
@@ -1238,7 +1272,7 @@
1238
1272
  const secret = Array.from(cryptoApi.getRandomValues(new Uint8Array(32)), (b) => b.toString(16).padStart(2, '0')).join('');
1239
1273
  const hash = await cryptoApi.subtle.digest('SHA-256', new TextEncoder().encode(secret));
1240
1274
  const challenge = Array.from(new Uint8Array(hash), (b) => b.toString(16).padStart(2, '0')).join('');
1241
- const created = await this.options.api.createRestoreSession(challenge);
1275
+ const created = await this.options.api.createRestoreSession(challenge, this.options.locale);
1242
1276
  if (!Number.isFinite(Date.parse(created.expiresAt)))
1243
1277
  throw new ExtenshiPayError(ERROR_CODES.INVALID_RESPONSE, 'Invalid recovery expiry');
1244
1278
  const pending = { sessionId: created.sessionId, expiresAt: created.expiresAt, claimSecret: secret };
@@ -1330,7 +1364,49 @@
1330
1364
  const MAX_CACHE_TTL_MS = 7 * 24 * 60 * 60 * 1000;
1331
1365
 
1332
1366
  /** Kept in sync with package.json by tests/unit/version.test.ts. */
1333
- const VERSION = '0.7.0';
1367
+ const VERSION = '0.8.0';
1368
+
1369
+ /**
1370
+ * The user's language as the SDK sends it. Kept apart from the paywall
1371
+ * dictionary (../paywall/i18n.ts) so the Lite and core bundles, which never
1372
+ * render UI, do not carry the translations.
1373
+ */
1374
+ /** What the backend (and older backends) accept as a locale: `de`, `pt-BR`, `zh-CN`. */
1375
+ const WIRE_LOCALE_RE = /^[a-z]{2}(-[A-Za-z]{2,4})?$/;
1376
+ /**
1377
+ * A browser tag as the SDK sends it: `pt_BR` → `pt-BR`, `es-419` → `es`,
1378
+ * `zh-Hant-TW` → `zh-TW`; null for anything that is not a language tag.
1379
+ */
1380
+ function wireLocale(raw) {
1381
+ if (typeof raw !== 'string')
1382
+ return null;
1383
+ const parts = raw.trim().replace(/_/g, '-').split('-').filter(Boolean);
1384
+ const lang = parts[0]?.toLowerCase();
1385
+ if (!lang || !/^[a-z]{2}$/.test(lang))
1386
+ return null;
1387
+ const script = parts
1388
+ .slice(1)
1389
+ .find((p) => /^[A-Za-z]{4}$/.test(p))
1390
+ ?.toLowerCase();
1391
+ // zh-Hant without a region is Traditional Chinese: keep that, never let it read as zh-CN.
1392
+ const region = parts.slice(1).find((p) => /^[A-Za-z]{2}$/.test(p)) ??
1393
+ (lang === 'zh' && script === 'hant' ? 'TW' : undefined);
1394
+ const tag = region ? `${lang}-${region.toUpperCase()}` : lang;
1395
+ return WIRE_LOCALE_RE.test(tag) ? tag : lang;
1396
+ }
1397
+ /** The browser UI language (`chrome.i18n.getUILanguage()`, else `navigator.language`), or null. */
1398
+ function browserLocale() {
1399
+ const g = globalThis;
1400
+ try {
1401
+ const ui = g.chrome?.i18n?.getUILanguage?.() ?? g.browser?.i18n?.getUILanguage?.();
1402
+ if (ui)
1403
+ return wireLocale(ui);
1404
+ }
1405
+ catch {
1406
+ /* Not an extension context. */
1407
+ }
1408
+ return wireLocale(g.navigator?.language);
1409
+ }
1334
1410
 
1335
1411
  const ENVIRONMENTS = new Set(['production', 'sandbox', 'development']);
1336
1412
  const LOG_LEVELS = new Set(['silent', 'error', 'warn', 'info', 'debug']);
@@ -1371,7 +1447,10 @@
1371
1447
  if (!Number.isFinite(cacheTtlMs) || cacheTtlMs < 0 || cacheTtlMs > MAX_CACHE_TTL_MS) {
1372
1448
  errors.push(`cacheTtlMs must be between 0 and ${MAX_CACHE_TTL_MS}`);
1373
1449
  }
1374
- const locale = input.locale ?? null;
1450
+ // Default: the browser UI language, as README promises (it. 13 T10 L2).
1451
+ // `null` still opts out explicitly: prices then use the runtime default
1452
+ // and the paywall reads English.
1453
+ const locale = input.locale === undefined ? browserLocale() : input.locale;
1375
1454
  if (locale !== null && !LOCALE_RE.test(locale))
1376
1455
  errors.push('locale must be a BCP-47 tag such as en or de-DE');
1377
1456
  const theme = input.theme ?? {};
@@ -1442,6 +1521,821 @@
1442
1521
  }
1443
1522
  }
1444
1523
 
1524
+ /**
1525
+ * Every string the SDK shows to the USER of an extension — paywall, license
1526
+ * dialog, billing-profile picker, seller details — in the end-user languages
1527
+ * (ROADMAP it. 13 T10, stage L2; closes it. 12 T9). Developer-facing error
1528
+ * messages stay English.
1529
+ *
1530
+ * Self-contained on purpose: the SDK ships inside third-party extensions with
1531
+ * no runtime dependencies and no remote code, so the dictionary is compiled
1532
+ * in. Placeholders are `{name}`, `{date}`, `{status}`. A missing
1533
+ * translation falls back to English, never to an empty string. The same
1534
+ * languages as the hosted pages (shared-types END_USER_LOCALES); keep the
1535
+ * lists in sync.
1536
+ */
1537
+ const SDK_LOCALES = ['en', 'es', 'pt-BR', 'fr', 'de', 'it', 'ru', 'ja', 'ko', 'zh-CN', 'ar'];
1538
+ const SDK_STRINGS_EN = {
1539
+ title: 'Unlock premium features',
1540
+ description: 'Upgrade to get full access to this extension.',
1541
+ upgrade: 'Upgrade',
1542
+ cancel: 'Not now',
1543
+ dismiss: 'Dismiss',
1544
+ remindLater: 'Remind me later',
1545
+ continueFree: 'Continue with the free version',
1546
+ checkoutUnavailable: 'Purchases are temporarily unavailable',
1547
+ periodMonth: '/month',
1548
+ periodYear: '/year',
1549
+ periodOnce: 'one-time',
1550
+ footer: 'Secure checkout opens in a new tab.',
1551
+ restorePurchase: 'Restore purchase',
1552
+ featuresHeading: 'Premium Features',
1553
+ plansHeading: 'Choose Your Plan',
1554
+ freePlanName: 'Free',
1555
+ premiumPlanName: 'Premium',
1556
+ popularBadge: 'Most Popular',
1557
+ unlockHeading: 'Unlock Premium Features',
1558
+ simulatePurchase: 'Simulate purchase',
1559
+ mockNotice: 'Development preview: licenses and payments are simulated. No payment will be taken.',
1560
+ sellerProvidedBy: 'License provided by {name}',
1561
+ sellerUnavailable: 'License provider details are unavailable.',
1562
+ sellerSupport: 'Extension support',
1563
+ sellerTerms: 'License terms',
1564
+ sellerRefunds: 'Refund policy',
1565
+ sellerRole: 'The author handles extension functionality and license commitments. Extenshi provides payment and license recovery tools.',
1566
+ licenseTitle: 'Your license',
1567
+ licenseFallbackName: 'Extension license',
1568
+ licenseNone: 'No license found on this installation.',
1569
+ kindOneTime: 'One-time purchase',
1570
+ kindLifetime: 'Lifetime',
1571
+ kindSubscription: 'Subscription',
1572
+ kindLicense: 'License',
1573
+ statusLine: 'Status: {status}',
1574
+ statusActive: 'active',
1575
+ statusGrace: 'grace period',
1576
+ statusExpired: 'expired',
1577
+ statusNone: 'no access',
1578
+ accessEnded: 'Access ended {date}',
1579
+ accessUntil: 'Access until {date}',
1580
+ accessRecordedEnd: 'Recorded end date {date}',
1581
+ subscriptionLine: 'Subscription: {status}',
1582
+ renewalCanceled: 'Renewal canceled',
1583
+ periodEnds: 'Period ends {date}',
1584
+ subActive: 'active',
1585
+ subTrialing: 'trial',
1586
+ subPastDue: 'payment overdue',
1587
+ subCanceled: 'canceled',
1588
+ subUnpaid: 'unpaid',
1589
+ subIncomplete: 'incomplete',
1590
+ subIncompleteExpired: 'payment not completed',
1591
+ subPaused: 'paused',
1592
+ licenseOffline: 'Connect to the internet to verify your license. Paid features are paused after 48 hours without a successful check. Your purchase has not expired.',
1593
+ licenseCached: 'Showing saved license information.',
1594
+ licenseFresh: 'Subscription information reflects the latest processed payment update.',
1595
+ actionFailed: 'Unable to complete the request. Please try again or contact extension support.',
1596
+ manageBilling: 'Manage billing',
1597
+ noPortal: 'No billing portal opened. You can retry or contact extension support.',
1598
+ close: 'Close',
1599
+ pickerTitle: 'Choose a billing profile',
1600
+ pickerDescription: 'Separate purchases can have separate billing profiles. Choose one to manage its subscriptions and payment details.',
1601
+ pickerFirstRecorded: 'First recorded {date}',
1602
+ pickerCancel: 'Cancel',
1603
+ };
1604
+ // BEGIN GENERATED TRANSLATIONS
1605
+ const TRANSLATIONS = {
1606
+ es: {
1607
+ title: 'Desbloquea las funciones premium',
1608
+ description: 'Mejora tu plan para obtener acceso completo a esta extensión.',
1609
+ upgrade: 'Mejorar plan',
1610
+ cancel: 'Ahora no',
1611
+ dismiss: 'Descartar',
1612
+ remindLater: 'Recordármelo más tarde',
1613
+ continueFree: 'Seguir con la versión gratuita',
1614
+ checkoutUnavailable: 'Compras no disponibles temporalmente',
1615
+ periodMonth: '/mes',
1616
+ periodYear: '/año',
1617
+ periodOnce: 'pago único',
1618
+ footer: 'El pago seguro se abre en una pestaña nueva.',
1619
+ restorePurchase: 'Restaurar compra',
1620
+ featuresHeading: 'Funciones premium',
1621
+ plansHeading: 'Elige tu plan',
1622
+ freePlanName: 'Gratis',
1623
+ premiumPlanName: 'Premium',
1624
+ popularBadge: 'Más popular',
1625
+ unlockHeading: 'Desbloquea las funciones premium',
1626
+ simulatePurchase: 'Simular compra',
1627
+ mockNotice: 'Vista previa de desarrollo: las licencias y los pagos son simulados. No se realizará ningún cobro.',
1628
+ sellerProvidedBy: 'Licencia proporcionada por {name}',
1629
+ sellerUnavailable: 'Los datos del proveedor de la licencia no están disponibles.',
1630
+ sellerSupport: 'Asistencia de la extensión',
1631
+ sellerTerms: 'Condiciones de licencia',
1632
+ sellerRefunds: 'Política de reembolsos',
1633
+ sellerRole: 'El autor se encarga de las funciones de la extensión y de los compromisos de la licencia. Extenshi proporciona las herramientas de pago y de recuperación de licencias.',
1634
+ licenseTitle: 'Tu licencia',
1635
+ licenseFallbackName: 'Licencia de la extensión',
1636
+ licenseNone: 'No se ha encontrado ninguna licencia en esta instalación.',
1637
+ kindOneTime: 'Compra única',
1638
+ kindLifetime: 'Licencia vitalicia',
1639
+ kindSubscription: 'Suscripción',
1640
+ kindLicense: 'Licencia',
1641
+ statusLine: 'Estado: {status}',
1642
+ statusActive: 'activo',
1643
+ statusGrace: 'período de gracia',
1644
+ statusExpired: 'caducado',
1645
+ statusNone: 'sin acceso',
1646
+ accessEnded: 'Acceso finalizado el {date}',
1647
+ accessUntil: 'Acceso hasta el {date}',
1648
+ accessRecordedEnd: 'Fecha de finalización registrada: {date}',
1649
+ subscriptionLine: 'Suscripción: {status}',
1650
+ renewalCanceled: 'Renovación cancelada',
1651
+ periodEnds: 'El período finaliza el {date}',
1652
+ subActive: 'activa',
1653
+ subTrialing: 'en período de prueba',
1654
+ subPastDue: 'pago vencido',
1655
+ subCanceled: 'cancelada',
1656
+ subUnpaid: 'sin pagar',
1657
+ subIncomplete: 'incompleta',
1658
+ subIncompleteExpired: 'pago no completado',
1659
+ subPaused: 'en pausa',
1660
+ licenseOffline: 'Conéctate a internet para verificar tu licencia. Las funciones de pago se suspenden si pasan 48 horas sin una verificación correcta. Tu compra no ha caducado.',
1661
+ licenseCached: 'Se muestra la información de licencia guardada.',
1662
+ licenseFresh: 'La información de la suscripción refleja la última actualización de pago procesada.',
1663
+ actionFailed: 'No se pudo completar la solicitud. Inténtalo de nuevo o ponte en contacto con la asistencia de la extensión.',
1664
+ manageBilling: 'Gestionar facturación',
1665
+ noPortal: 'No se abrió ningún portal de facturación. Puedes volver a intentarlo o ponerte en contacto con la asistencia de la extensión.',
1666
+ close: 'Cerrar',
1667
+ pickerTitle: 'Elige un perfil de facturación',
1668
+ pickerDescription: 'Las compras independientes pueden tener perfiles de facturación distintos. Elige uno para gestionar sus suscripciones y datos de pago.',
1669
+ pickerFirstRecorded: 'Registrado por primera vez el {date}',
1670
+ pickerCancel: 'Cancelar',
1671
+ },
1672
+ 'pt-BR': {
1673
+ title: 'Desbloqueie os recursos premium',
1674
+ description: 'Faça o upgrade para ter acesso completo a esta extensão.',
1675
+ upgrade: 'Fazer upgrade',
1676
+ cancel: 'Agora não',
1677
+ dismiss: 'Dispensar',
1678
+ remindLater: 'Lembrar mais tarde',
1679
+ continueFree: 'Continuar com a versão gratuita',
1680
+ checkoutUnavailable: 'Compras temporariamente indisponíveis',
1681
+ periodMonth: '/mês',
1682
+ periodYear: '/ano',
1683
+ periodOnce: 'pagamento único',
1684
+ footer: 'O checkout seguro abre em uma nova guia.',
1685
+ restorePurchase: 'Restaurar compra',
1686
+ featuresHeading: 'Recursos premium',
1687
+ plansHeading: 'Escolha seu plano',
1688
+ freePlanName: 'Gratuito',
1689
+ premiumPlanName: 'Premium',
1690
+ popularBadge: 'Mais popular',
1691
+ unlockHeading: 'Desbloqueie os recursos premium',
1692
+ simulatePurchase: 'Simular compra',
1693
+ mockNotice: 'Prévia de desenvolvimento: licenças e pagamentos são simulados. Nenhum valor será cobrado.',
1694
+ sellerProvidedBy: 'Licença fornecida por {name}',
1695
+ sellerUnavailable: 'Os dados do fornecedor da licença não estão disponíveis.',
1696
+ sellerSupport: 'Suporte da extensão',
1697
+ sellerTerms: 'Termos de licença',
1698
+ sellerRefunds: 'Política de reembolso',
1699
+ sellerRole: 'O autor é responsável pelo funcionamento da extensão e pelos compromissos da licença. A Extenshi fornece as ferramentas de pagamento e de recuperação de licenças.',
1700
+ licenseTitle: 'Sua licença',
1701
+ licenseFallbackName: 'Licença da extensão',
1702
+ licenseNone: 'Nenhuma licença encontrada nesta instalação.',
1703
+ kindOneTime: 'Compra única',
1704
+ kindLifetime: 'Licença vitalícia',
1705
+ kindSubscription: 'Assinatura',
1706
+ kindLicense: 'Licença',
1707
+ statusLine: 'Status: {status}',
1708
+ statusActive: 'ativo',
1709
+ statusGrace: 'período de carência',
1710
+ statusExpired: 'expirado',
1711
+ statusNone: 'sem acesso',
1712
+ accessEnded: 'Acesso encerrado em {date}',
1713
+ accessUntil: 'Acesso até {date}',
1714
+ accessRecordedEnd: 'Data de término registrada: {date}',
1715
+ subscriptionLine: 'Assinatura: {status}',
1716
+ renewalCanceled: 'Renovação cancelada',
1717
+ periodEnds: 'Período termina em {date}',
1718
+ subActive: 'ativa',
1719
+ subTrialing: 'em período de teste',
1720
+ subPastDue: 'pagamento em atraso',
1721
+ subCanceled: 'cancelada',
1722
+ subUnpaid: 'não paga',
1723
+ subIncomplete: 'incompleta',
1724
+ subIncompleteExpired: 'pagamento não concluído',
1725
+ subPaused: 'pausada',
1726
+ licenseOffline: 'Conecte-se à internet para verificar sua licença. Os recursos pagos são pausados após 48 horas sem uma verificação bem-sucedida. Sua compra não expirou.',
1727
+ licenseCached: 'Exibindo as informações de licença salvas.',
1728
+ licenseFresh: 'As informações da assinatura refletem a atualização de pagamento processada mais recente.',
1729
+ actionFailed: 'Não foi possível concluir a solicitação. Tente novamente ou entre em contato com o suporte da extensão.',
1730
+ manageBilling: 'Gerenciar cobrança',
1731
+ noPortal: 'O portal de cobrança não foi aberto. Você pode tentar novamente ou entrar em contato com o suporte da extensão.',
1732
+ close: 'Fechar',
1733
+ pickerTitle: 'Escolha um perfil de cobrança',
1734
+ pickerDescription: 'Compras diferentes podem ter perfis de cobrança diferentes. Escolha um perfil para gerenciar as assinaturas e os dados de pagamento vinculados a ele.',
1735
+ pickerFirstRecorded: 'Registrado pela primeira vez em {date}',
1736
+ pickerCancel: 'Cancelar',
1737
+ },
1738
+ fr: {
1739
+ title: 'Débloquez les fonctionnalités premium',
1740
+ description: 'Passez à la version supérieure pour obtenir un accès complet à cette extension.',
1741
+ upgrade: 'Mettre à niveau',
1742
+ cancel: 'Pas maintenant',
1743
+ dismiss: 'Ignorer',
1744
+ remindLater: 'Me le rappeler plus tard',
1745
+ continueFree: 'Continuer avec la version gratuite',
1746
+ checkoutUnavailable: 'Les achats sont temporairement indisponibles',
1747
+ periodMonth: '/mois',
1748
+ periodYear: '/an',
1749
+ periodOnce: 'paiement unique',
1750
+ footer: 'Le paiement sécurisé s’ouvre dans un nouvel onglet.',
1751
+ restorePurchase: 'Restaurer l’achat',
1752
+ featuresHeading: 'Fonctionnalités premium',
1753
+ plansHeading: 'Choisissez votre formule',
1754
+ freePlanName: 'Gratuit',
1755
+ premiumPlanName: 'Premium',
1756
+ popularBadge: 'Le plus populaire',
1757
+ unlockHeading: 'Débloquez les fonctionnalités premium',
1758
+ simulatePurchase: 'Simuler l’achat',
1759
+ mockNotice: 'Aperçu de développement : les licences et les paiements sont simulés. Aucun paiement ne sera prélevé.',
1760
+ sellerProvidedBy: 'Licence fournie par {name}',
1761
+ sellerUnavailable: 'Les informations sur le fournisseur de la licence ne sont pas disponibles.',
1762
+ sellerSupport: 'Assistance pour l’extension',
1763
+ sellerTerms: 'Conditions de licence',
1764
+ sellerRefunds: 'Politique de remboursement',
1765
+ sellerRole: 'L’auteur est responsable des fonctionnalités de l’extension et des engagements liés à la licence. Extenshi fournit les outils de paiement et de restauration des licences.',
1766
+ licenseTitle: 'Votre licence',
1767
+ licenseFallbackName: 'Licence de l’extension',
1768
+ licenseNone: 'Aucune licence n’a été trouvée pour cette installation.',
1769
+ kindOneTime: 'Achat unique',
1770
+ kindLifetime: 'Licence à vie',
1771
+ kindSubscription: 'Abonnement',
1772
+ kindLicense: 'Licence',
1773
+ statusLine: 'Statut : {status}',
1774
+ statusActive: 'actif',
1775
+ statusGrace: 'période de grâce',
1776
+ statusExpired: 'expiré',
1777
+ statusNone: 'aucun accès',
1778
+ accessEnded: 'Accès terminé le {date}',
1779
+ accessUntil: 'Accès jusqu’au {date}',
1780
+ accessRecordedEnd: 'Date de fin enregistrée : {date}',
1781
+ subscriptionLine: 'Abonnement : {status}',
1782
+ renewalCanceled: 'Renouvellement annulé',
1783
+ periodEnds: 'Fin de la période le {date}',
1784
+ subActive: 'actif',
1785
+ subTrialing: 'en période d’essai',
1786
+ subPastDue: 'paiement en retard',
1787
+ subCanceled: 'résilié',
1788
+ subUnpaid: 'impayé',
1789
+ subIncomplete: 'incomplet',
1790
+ subIncompleteExpired: 'paiement non finalisé',
1791
+ subPaused: 'en pause',
1792
+ licenseOffline: 'Connectez-vous à Internet pour vérifier votre licence. Les fonctionnalités payantes sont suspendues après 48 heures sans vérification réussie. Votre achat n’a pas expiré.',
1793
+ licenseCached: 'Affichage des informations de licence enregistrées.',
1794
+ licenseFresh: 'Les informations d’abonnement reflètent la dernière mise à jour de paiement traitée.',
1795
+ actionFailed: 'Impossible de traiter la demande. Veuillez réessayer ou contacter l’assistance de l’extension.',
1796
+ manageBilling: 'Gérer la facturation',
1797
+ noPortal: 'Le portail de facturation ne s’est pas ouvert. Vous pouvez réessayer ou contacter l’assistance de l’extension.',
1798
+ close: 'Fermer',
1799
+ pickerTitle: 'Choisissez un profil de facturation',
1800
+ pickerDescription: 'Des achats distincts peuvent avoir des profils de facturation distincts. Choisissez-en un pour gérer ses abonnements et ses informations de paiement.',
1801
+ pickerFirstRecorded: 'Enregistré pour la première fois le {date}',
1802
+ pickerCancel: 'Annuler',
1803
+ },
1804
+ de: {
1805
+ title: 'Premium-Funktionen freischalten',
1806
+ description: 'Hol dir mit einem Upgrade vollen Zugriff auf diese Erweiterung.',
1807
+ upgrade: 'Upgraden',
1808
+ cancel: 'Jetzt nicht',
1809
+ dismiss: 'Ausblenden',
1810
+ remindLater: 'Später erinnern',
1811
+ continueFree: 'Mit der kostenlosen Version fortfahren',
1812
+ checkoutUnavailable: 'Käufe sind vorübergehend nicht möglich',
1813
+ periodMonth: '/Monat',
1814
+ periodYear: '/Jahr',
1815
+ periodOnce: 'einmalig',
1816
+ footer: 'Der sichere Bezahlvorgang öffnet sich in einem neuen Tab.',
1817
+ restorePurchase: 'Kauf wiederherstellen',
1818
+ featuresHeading: 'Premium-Funktionen',
1819
+ plansHeading: 'Wähle deinen Tarif',
1820
+ freePlanName: 'Kostenlos',
1821
+ premiumPlanName: 'Premium',
1822
+ popularBadge: 'Am beliebtesten',
1823
+ unlockHeading: 'Premium-Funktionen freischalten',
1824
+ simulatePurchase: 'Kauf simulieren',
1825
+ mockNotice: 'Entwicklungsvorschau: Lizenzen und Zahlungen werden simuliert. Es wird keine Zahlung eingezogen.',
1826
+ sellerProvidedBy: 'Lizenz bereitgestellt von {name}',
1827
+ sellerUnavailable: 'Angaben zum Lizenzgeber sind nicht verfügbar.',
1828
+ sellerSupport: 'Support für die Erweiterung',
1829
+ sellerTerms: 'Lizenzbedingungen',
1830
+ sellerRefunds: 'Rückerstattungen',
1831
+ sellerRole: 'Der Autor ist für die Funktionen der Erweiterung und die Lizenzzusagen verantwortlich. Extenshi stellt die Werkzeuge für Zahlung und Lizenzwiederherstellung bereit.',
1832
+ licenseTitle: 'Deine Lizenz',
1833
+ licenseFallbackName: 'Erweiterungslizenz',
1834
+ licenseNone: 'Für diese Installation wurde keine Lizenz gefunden.',
1835
+ kindOneTime: 'Einmalkauf',
1836
+ kindLifetime: 'Lebenslange Lizenz',
1837
+ kindSubscription: 'Abonnement',
1838
+ kindLicense: 'Lizenz',
1839
+ statusLine: 'Status: {status}',
1840
+ statusActive: 'aktiv',
1841
+ statusGrace: 'Kulanzfrist',
1842
+ statusExpired: 'abgelaufen',
1843
+ statusNone: 'kein Zugriff',
1844
+ accessEnded: 'Zugriff endete am {date}',
1845
+ accessUntil: 'Zugriff bis {date}',
1846
+ accessRecordedEnd: 'Erfasstes Enddatum: {date}',
1847
+ subscriptionLine: 'Abonnement: {status}',
1848
+ renewalCanceled: 'Wird nicht verlängert',
1849
+ periodEnds: 'Zeitraum endet am {date}',
1850
+ subActive: 'aktiv',
1851
+ subTrialing: 'Testphase',
1852
+ subPastDue: 'Zahlung überfällig',
1853
+ subCanceled: 'gekündigt',
1854
+ subUnpaid: 'unbezahlt',
1855
+ subIncomplete: 'unvollständig',
1856
+ subIncompleteExpired: 'Zahlung nicht abgeschlossen',
1857
+ subPaused: 'pausiert',
1858
+ licenseOffline: 'Stelle eine Internetverbindung her, um deine Lizenz zu prüfen. Kostenpflichtige Funktionen werden nach 48 Stunden ohne erfolgreiche Prüfung pausiert. Dein Kauf ist nicht abgelaufen.',
1859
+ licenseCached: 'Gespeicherte Lizenzinformationen werden angezeigt.',
1860
+ licenseFresh: 'Die Abonnementangaben entsprechen dem zuletzt verarbeiteten Zahlungsstand.',
1861
+ actionFailed: 'Die Anfrage konnte nicht abgeschlossen werden. Bitte versuche es erneut oder wende dich an den Support für die Erweiterung.',
1862
+ manageBilling: 'Abrechnung verwalten',
1863
+ noPortal: 'Das Abrechnungsportal wurde nicht geöffnet. Du kannst es erneut versuchen oder dich an den Support für die Erweiterung wenden.',
1864
+ close: 'Schließen',
1865
+ pickerTitle: 'Abrechnungsprofil auswählen',
1866
+ pickerDescription: 'Verschiedene Käufe können eigene Abrechnungsprofile haben. Wähle eines aus, um seine Abonnements und Zahlungsdaten zu verwalten.',
1867
+ pickerFirstRecorded: 'Erstmals erfasst am {date}',
1868
+ pickerCancel: 'Abbrechen',
1869
+ },
1870
+ it: {
1871
+ title: 'Sblocca le funzionalità premium',
1872
+ description: 'Effettua l’upgrade per ottenere l’accesso completo a questa estensione.',
1873
+ upgrade: 'Effettua l’upgrade',
1874
+ cancel: 'Non ora',
1875
+ dismiss: 'Ignora',
1876
+ remindLater: 'Ricordamelo più tardi',
1877
+ continueFree: 'Continua con la versione gratuita',
1878
+ checkoutUnavailable: 'Gli acquisti sono temporaneamente non disponibili',
1879
+ periodMonth: '/mese',
1880
+ periodYear: '/anno',
1881
+ periodOnce: 'una tantum',
1882
+ footer: 'Il checkout sicuro si apre in una nuova scheda.',
1883
+ restorePurchase: 'Ripristina acquisto',
1884
+ featuresHeading: 'Funzionalità premium',
1885
+ plansHeading: 'Scegli il tuo piano',
1886
+ freePlanName: 'Gratuito',
1887
+ premiumPlanName: 'Premium',
1888
+ popularBadge: 'Il più scelto',
1889
+ unlockHeading: 'Sblocca le funzionalità premium',
1890
+ simulatePurchase: 'Simula acquisto',
1891
+ mockNotice: 'Anteprima di sviluppo: licenze e pagamenti sono simulati. Non verrà addebitato alcun pagamento.',
1892
+ sellerProvidedBy: 'Licenza fornita da {name}',
1893
+ sellerUnavailable: 'I dettagli del fornitore della licenza non sono disponibili.',
1894
+ sellerSupport: 'Assistenza per l’estensione',
1895
+ sellerTerms: 'Termini di licenza',
1896
+ sellerRefunds: 'Politica di rimborso',
1897
+ sellerRole: 'L’autore è responsabile delle funzionalità dell’estensione e degli impegni relativi alla licenza. Extenshi fornisce gli strumenti di pagamento e di recupero della licenza.',
1898
+ licenseTitle: 'La tua licenza',
1899
+ licenseFallbackName: 'Licenza dell’estensione',
1900
+ licenseNone: 'Nessuna licenza trovata in questa installazione.',
1901
+ kindOneTime: 'Acquisto una tantum',
1902
+ kindLifetime: 'Licenza a vita',
1903
+ kindSubscription: 'Abbonamento',
1904
+ kindLicense: 'Licenza',
1905
+ statusLine: 'Stato: {status}',
1906
+ statusActive: 'attivo',
1907
+ statusGrace: 'periodo di tolleranza',
1908
+ statusExpired: 'scaduto',
1909
+ statusNone: 'nessun accesso',
1910
+ accessEnded: 'Accesso terminato il {date}',
1911
+ accessUntil: 'Accesso fino al {date}',
1912
+ accessRecordedEnd: 'Data di fine registrata: {date}',
1913
+ subscriptionLine: 'Abbonamento: {status}',
1914
+ renewalCanceled: 'Rinnovo annullato',
1915
+ periodEnds: 'Il periodo termina il {date}',
1916
+ subActive: 'attivo',
1917
+ subTrialing: 'in prova',
1918
+ subPastDue: 'pagamento in ritardo',
1919
+ subCanceled: 'disdetto',
1920
+ subUnpaid: 'non pagato',
1921
+ subIncomplete: 'incompleto',
1922
+ subIncompleteExpired: 'pagamento non completato',
1923
+ subPaused: 'in pausa',
1924
+ licenseOffline: 'Connettiti a internet per verificare la tua licenza. Le funzionalità a pagamento vengono sospese dopo 48 ore senza una verifica riuscita. Il tuo acquisto non è scaduto.',
1925
+ licenseCached: 'Vengono mostrate le informazioni salvate sulla licenza.',
1926
+ licenseFresh: 'Le informazioni sull’abbonamento riflettono l’ultimo aggiornamento di pagamento elaborato.',
1927
+ actionFailed: 'Impossibile completare la richiesta. Riprova o contatta l’assistenza per l’estensione.',
1928
+ manageBilling: 'Gestisci fatturazione',
1929
+ noPortal: 'Il portale di fatturazione non è stato aperto. Puoi riprovare o contattare l’assistenza per l’estensione.',
1930
+ close: 'Chiudi',
1931
+ pickerTitle: 'Scegli un profilo di fatturazione',
1932
+ pickerDescription: 'Acquisti diversi possono avere profili di fatturazione diversi. Scegline uno per gestirne gli abbonamenti e i dati di pagamento.',
1933
+ pickerFirstRecorded: 'Registrato per la prima volta il {date}',
1934
+ pickerCancel: 'Annulla',
1935
+ },
1936
+ ru: {
1937
+ title: 'Откройте доступ к премиум-функциям',
1938
+ description: 'Перейдите на премиум, чтобы получить полный доступ к этому расширению.',
1939
+ upgrade: 'Перейти на премиум',
1940
+ cancel: 'Не сейчас',
1941
+ dismiss: 'Скрыть',
1942
+ remindLater: 'Напомнить позже',
1943
+ continueFree: 'Продолжить в бесплатной версии',
1944
+ checkoutUnavailable: 'Покупки временно недоступны',
1945
+ periodMonth: '/мес.',
1946
+ periodYear: '/год',
1947
+ periodOnce: 'разово',
1948
+ footer: 'Защищённая страница оплаты откроется в новой вкладке.',
1949
+ restorePurchase: 'Восстановить покупку',
1950
+ featuresHeading: 'Премиум-функции',
1951
+ plansHeading: 'Выберите тарифный план',
1952
+ freePlanName: 'Бесплатный',
1953
+ premiumPlanName: 'Премиум',
1954
+ popularBadge: 'Самый популярный',
1955
+ unlockHeading: 'Откройте доступ к премиум-функциям',
1956
+ simulatePurchase: 'Имитировать покупку',
1957
+ mockNotice: 'Режим разработки: лицензии и платежи имитируются. Деньги не будут списаны.',
1958
+ sellerProvidedBy: 'Лицензию предоставляет {name}',
1959
+ sellerUnavailable: 'Сведения о поставщике лицензии недоступны.',
1960
+ sellerSupport: 'Поддержка расширения',
1961
+ sellerTerms: 'Условия лицензии',
1962
+ sellerRefunds: 'Возврат средств',
1963
+ sellerRole: 'Автор отвечает за работу расширения и обязательства по лицензии. Extenshi предоставляет инструменты для оплаты и восстановления лицензий.',
1964
+ licenseTitle: 'Ваша лицензия',
1965
+ licenseFallbackName: 'Лицензия на расширение',
1966
+ licenseNone: 'Для этой установки лицензия не найдена.',
1967
+ kindOneTime: 'Разовая покупка',
1968
+ kindLifetime: 'Бессрочная лицензия',
1969
+ kindSubscription: 'Подписка',
1970
+ kindLicense: 'Лицензия',
1971
+ statusLine: 'Статус: {status}',
1972
+ statusActive: 'действует',
1973
+ statusGrace: 'льготный период',
1974
+ statusExpired: 'срок истёк',
1975
+ statusNone: 'нет доступа',
1976
+ accessEnded: 'Доступ закончился: {date}',
1977
+ accessUntil: 'Доступ до {date}',
1978
+ accessRecordedEnd: 'Зафиксированная дата окончания: {date}',
1979
+ subscriptionLine: 'Подписка: {status}',
1980
+ renewalCanceled: 'Продление отменено',
1981
+ periodEnds: 'Период заканчивается: {date}',
1982
+ subActive: 'активна',
1983
+ subTrialing: 'пробный период',
1984
+ subPastDue: 'платёж просрочен',
1985
+ subCanceled: 'отменена',
1986
+ subUnpaid: 'не оплачена',
1987
+ subIncomplete: 'ожидает первого платежа',
1988
+ subIncompleteExpired: 'платёж не завершён',
1989
+ subPaused: 'приостановлена',
1990
+ licenseOffline: 'Подключитесь к интернету, чтобы проверить лицензию. Если успешной проверки не было 48 часов, платные функции приостанавливаются. Срок действия вашей покупки не истёк.',
1991
+ licenseCached: 'Показаны сохранённые сведения о лицензии.',
1992
+ licenseFresh: 'Сведения о подписке соответствуют последнему обработанному обновлению платежа.',
1993
+ actionFailed: 'Не удалось выполнить запрос. Попробуйте ещё раз или обратитесь в поддержку расширения.',
1994
+ manageBilling: 'Управление оплатой',
1995
+ noPortal: 'Портал оплаты не открылся. Можно повторить попытку или обратиться в поддержку расширения.',
1996
+ close: 'Закрыть',
1997
+ pickerTitle: 'Выберите платёжный профиль',
1998
+ pickerDescription: 'У разных покупок могут быть разные платёжные профили. Выберите профиль, чтобы управлять его подписками и платёжными данными.',
1999
+ pickerFirstRecorded: 'Впервые зафиксирован: {date}',
2000
+ pickerCancel: 'Отмена',
2001
+ },
2002
+ ja: {
2003
+ title: 'プレミアム機能をアンロック',
2004
+ description: 'アップグレードすると、この拡張機能のすべての機能をご利用いただけます。',
2005
+ upgrade: 'アップグレード',
2006
+ cancel: '今はしない',
2007
+ dismiss: '非表示にする',
2008
+ remindLater: 'あとで通知する',
2009
+ continueFree: '無料版のまま使い続ける',
2010
+ checkoutUnavailable: '一時的に購入できません',
2011
+ periodMonth: '/月',
2012
+ periodYear: '/年',
2013
+ periodOnce: '買い切り',
2014
+ footer: '安全なチェックアウト画面が新しいタブで開きます。',
2015
+ restorePurchase: '購入を復元',
2016
+ featuresHeading: 'プレミアム機能',
2017
+ plansHeading: 'プランを選択',
2018
+ freePlanName: '無料',
2019
+ premiumPlanName: 'プレミアム',
2020
+ popularBadge: '一番人気',
2021
+ unlockHeading: 'プレミアム機能をアンロック',
2022
+ simulatePurchase: '購入をシミュレート',
2023
+ mockNotice: '開発用プレビュー:ライセンスと支払いはシミュレーションです。実際の請求は発生しません。',
2024
+ sellerProvidedBy: 'ライセンス提供者:{name}',
2025
+ sellerUnavailable: 'ライセンス提供者の情報を取得できません。',
2026
+ sellerSupport: '拡張機能のサポート',
2027
+ sellerTerms: 'ライセンス条件',
2028
+ sellerRefunds: '返金ポリシー',
2029
+ sellerRole: '拡張機能の機能とライセンス上の約束については、開発者が責任を負います。Extenshiは、お支払いとライセンス復元のためのツールを提供します。',
2030
+ licenseTitle: 'ご利用のライセンス',
2031
+ licenseFallbackName: '拡張機能のライセンス',
2032
+ licenseNone: 'このインストール環境ではライセンスが見つかりませんでした。',
2033
+ kindOneTime: '買い切り',
2034
+ kindLifetime: 'ライフタイムライセンス',
2035
+ kindSubscription: 'サブスクリプション',
2036
+ kindLicense: 'ライセンス',
2037
+ statusLine: 'ステータス:{status}',
2038
+ statusActive: '有効',
2039
+ statusGrace: '猶予期間中',
2040
+ statusExpired: '期限切れ',
2041
+ statusNone: '利用不可',
2042
+ accessEnded: '利用終了日時:{date}',
2043
+ accessUntil: '利用期限:{date}',
2044
+ accessRecordedEnd: '記録上の終了日時:{date}',
2045
+ subscriptionLine: 'サブスクリプション:{status}',
2046
+ renewalCanceled: '更新停止済み',
2047
+ periodEnds: '期間終了日:{date}',
2048
+ subActive: '有効',
2049
+ subTrialing: 'トライアル中',
2050
+ subPastDue: '支払い期限超過',
2051
+ subCanceled: '解約済み',
2052
+ subUnpaid: '未払い',
2053
+ subIncomplete: '手続き未完了',
2054
+ subIncompleteExpired: '支払い未完了',
2055
+ subPaused: '一時停止中',
2056
+ licenseOffline: 'ライセンスを確認するには、インターネットに接続してください。確認に成功しないまま48時間が経過すると、有料機能は一時停止されます。ご購入が失効したわけではありません。',
2057
+ licenseCached: '保存済みのライセンス情報を表示しています。',
2058
+ licenseFresh: 'サブスクリプション情報には、処理済みの最新の支払い情報が反映されています。',
2059
+ actionFailed: 'リクエストを完了できませんでした。もう一度お試しいただくか、拡張機能のサポートにお問い合わせください。',
2060
+ manageBilling: '請求情報を管理',
2061
+ noPortal: '請求ポータルを開けませんでした。再試行するか、拡張機能のサポートにお問い合わせください。',
2062
+ close: '閉じる',
2063
+ pickerTitle: '請求プロファイルを選択',
2064
+ pickerDescription: '購入ごとに別々の請求プロファイルがある場合があります。サブスクリプションと支払い情報を管理するプロファイルを1つ選択してください。',
2065
+ pickerFirstRecorded: '初回記録日:{date}',
2066
+ pickerCancel: 'キャンセル',
2067
+ },
2068
+ ko: {
2069
+ title: '프리미엄 기능 잠금 해제',
2070
+ description: '업그레이드하면 이 확장 프로그램의 모든 기능을 이용할 수 있습니다.',
2071
+ upgrade: '업그레이드',
2072
+ cancel: '나중에',
2073
+ dismiss: '닫기',
2074
+ remindLater: '나중에 다시 알림',
2075
+ continueFree: '무료 버전으로 계속하기',
2076
+ checkoutUnavailable: '일시적으로 구매할 수 없습니다',
2077
+ periodMonth: '/월',
2078
+ periodYear: '/년',
2079
+ periodOnce: '일회성',
2080
+ footer: '안전한 결제 페이지가 새 탭에서 열립니다.',
2081
+ restorePurchase: '구매 복원',
2082
+ featuresHeading: '프리미엄 기능',
2083
+ plansHeading: '요금제 선택',
2084
+ freePlanName: '무료',
2085
+ premiumPlanName: '프리미엄',
2086
+ popularBadge: '가장 인기',
2087
+ unlockHeading: '프리미엄 기능 잠금 해제',
2088
+ simulatePurchase: '구매 시뮬레이션',
2089
+ mockNotice: '개발용 미리보기: 라이선스와 결제는 시뮬레이션됩니다. 실제로 결제되지 않습니다.',
2090
+ sellerProvidedBy: '라이선스 제공자: {name}',
2091
+ sellerUnavailable: '라이선스 제공자 정보를 확인할 수 없습니다.',
2092
+ sellerSupport: '확장 프로그램 지원',
2093
+ sellerTerms: '라이선스 약관',
2094
+ sellerRefunds: '환불 정책',
2095
+ sellerRole: '확장 프로그램의 기능과 라이선스 관련 약속은 개발자가 책임집니다. Extenshi는 결제 및 라이선스 복구 도구를 제공합니다.',
2096
+ licenseTitle: '내 라이선스',
2097
+ licenseFallbackName: '확장 프로그램 라이선스',
2098
+ licenseNone: '이 설치 환경에서 라이선스를 찾지 못했습니다.',
2099
+ kindOneTime: '일회성 구매',
2100
+ kindLifetime: '평생 라이선스',
2101
+ kindSubscription: '구독',
2102
+ kindLicense: '라이선스',
2103
+ statusLine: '상태: {status}',
2104
+ statusActive: '활성',
2105
+ statusGrace: '유예 기간 중',
2106
+ statusExpired: '만료됨',
2107
+ statusNone: '이용 권한 없음',
2108
+ accessEnded: '이용 종료 일시: {date}',
2109
+ accessUntil: '이용 기한: {date}',
2110
+ accessRecordedEnd: '기록된 종료 일시: {date}',
2111
+ subscriptionLine: '구독: {status}',
2112
+ renewalCanceled: '갱신 취소됨',
2113
+ periodEnds: '기간 종료일: {date}',
2114
+ subActive: '활성',
2115
+ subTrialing: '체험 중',
2116
+ subPastDue: '결제 연체',
2117
+ subCanceled: '해지됨',
2118
+ subUnpaid: '미결제',
2119
+ subIncomplete: '미완료',
2120
+ subIncompleteExpired: '결제 미완료',
2121
+ subPaused: '일시 중지됨',
2122
+ licenseOffline: '라이선스를 확인하려면 인터넷에 연결해 주세요. 확인에 성공하지 못한 채 48시간이 지나면 유료 기능이 일시 중지됩니다. 구매가 만료된 것은 아닙니다.',
2123
+ licenseCached: '저장된 라이선스 정보를 표시하고 있습니다.',
2124
+ licenseFresh: '구독 정보에는 가장 최근에 처리된 결제 내역이 반영되어 있습니다.',
2125
+ actionFailed: '요청을 완료할 수 없습니다. 다시 시도하거나 확장 프로그램 지원 창구에 문의해 주세요.',
2126
+ manageBilling: '결제 관리',
2127
+ noPortal: '결제 포털이 열리지 않았습니다. 다시 시도하거나 확장 프로그램 지원 창구에 문의해 주세요.',
2128
+ close: '닫기',
2129
+ pickerTitle: '결제 프로필 선택',
2130
+ pickerDescription: '구매마다 결제 프로필이 다를 수 있습니다. 구독과 결제 정보를 관리할 프로필을 하나 선택해 주세요.',
2131
+ pickerFirstRecorded: '최초 기록일: {date}',
2132
+ pickerCancel: '취소',
2133
+ },
2134
+ 'zh-CN': {
2135
+ title: '解锁高级功能',
2136
+ description: '升级即可完整使用此扩展程序。',
2137
+ upgrade: '升级',
2138
+ cancel: '以后再说',
2139
+ dismiss: '忽略',
2140
+ remindLater: '稍后提醒我',
2141
+ continueFree: '继续使用免费版',
2142
+ checkoutUnavailable: '暂时无法购买',
2143
+ periodMonth: '/月',
2144
+ periodYear: '/年',
2145
+ periodOnce: '一次性',
2146
+ footer: '安全结账页面将在新标签页中打开。',
2147
+ restorePurchase: '恢复购买',
2148
+ featuresHeading: '高级功能',
2149
+ plansHeading: '选择您的方案',
2150
+ freePlanName: '免费版',
2151
+ premiumPlanName: '高级版',
2152
+ popularBadge: '最受欢迎',
2153
+ unlockHeading: '解锁高级功能',
2154
+ simulatePurchase: '模拟购买',
2155
+ mockNotice: '开发预览:许可证和付款均为模拟,不会实际扣款。',
2156
+ sellerProvidedBy: '许可证由 {name} 提供',
2157
+ sellerUnavailable: '无法获取许可证提供方的详细信息。',
2158
+ sellerSupport: '扩展程序支持',
2159
+ sellerTerms: '许可条款',
2160
+ sellerRefunds: '退款政策',
2161
+ sellerRole: '作者负责扩展程序的功能及许可证相关承诺。Extenshi 提供支付及许可证恢复工具。',
2162
+ licenseTitle: '您的许可证',
2163
+ licenseFallbackName: '扩展程序许可证',
2164
+ licenseNone: '此安装中未找到许可证。',
2165
+ kindOneTime: '一次性购买',
2166
+ kindLifetime: '终身许可证',
2167
+ kindSubscription: '订阅',
2168
+ kindLicense: '许可证',
2169
+ statusLine: '状态:{status}',
2170
+ statusActive: '有效',
2171
+ statusGrace: '宽限期',
2172
+ statusExpired: '已过期',
2173
+ statusNone: '无使用权限',
2174
+ accessEnded: '使用权限已于 {date} 结束',
2175
+ accessUntil: '可使用至 {date}',
2176
+ accessRecordedEnd: '记录的结束日期:{date}',
2177
+ subscriptionLine: '订阅:{status}',
2178
+ renewalCanceled: '已取消续订',
2179
+ periodEnds: '当前计费周期于 {date} 结束',
2180
+ subActive: '有效',
2181
+ subTrialing: '试用中',
2182
+ subPastDue: '付款逾期',
2183
+ subCanceled: '已取消',
2184
+ subUnpaid: '未付款',
2185
+ subIncomplete: '未完成',
2186
+ subIncompleteExpired: '付款未完成',
2187
+ subPaused: '已暂停',
2188
+ licenseOffline: '请连接互联网以验证您的许可证。如果连续48小时未能成功验证,付费功能将暂停。您的购买仍然有效。',
2189
+ licenseCached: '正在显示已保存的许可证信息。',
2190
+ licenseFresh: '订阅信息反映的是最近一次已处理的付款更新。',
2191
+ actionFailed: '无法完成请求。请重试或联系扩展程序支持。',
2192
+ manageBilling: '管理账单',
2193
+ noPortal: '未能打开账单门户。您可以重试或联系扩展程序支持。',
2194
+ close: '关闭',
2195
+ pickerTitle: '选择账单资料',
2196
+ pickerDescription: '不同的购买可以有各自的账单资料。请选择一个,以管理其订阅和付款信息。',
2197
+ pickerFirstRecorded: '首次记录于 {date}',
2198
+ pickerCancel: '取消',
2199
+ },
2200
+ ar: {
2201
+ title: 'احصل على الميزات المميزة',
2202
+ description: 'قم بالترقية للوصول الكامل إلى هذه الإضافة.',
2203
+ upgrade: 'ترقية',
2204
+ cancel: 'ليس الآن',
2205
+ dismiss: 'تجاهل',
2206
+ remindLater: 'ذكّرني لاحقًا',
2207
+ continueFree: 'المتابعة بالإصدار المجاني',
2208
+ checkoutUnavailable: 'عمليات الشراء غير متاحة مؤقتًا',
2209
+ periodMonth: '/شهر',
2210
+ periodYear: '/سنة',
2211
+ periodOnce: 'لمرة واحدة',
2212
+ footer: 'تُفتح صفحة الدفع الآمن في علامة تبويب جديدة.',
2213
+ restorePurchase: 'استعادة الشراء',
2214
+ featuresHeading: 'الميزات المميزة',
2215
+ plansHeading: 'اختر خطتك',
2216
+ freePlanName: 'مجاني',
2217
+ premiumPlanName: 'مميز',
2218
+ popularBadge: 'الأكثر رواجًا',
2219
+ unlockHeading: 'احصل على الميزات المميزة',
2220
+ simulatePurchase: 'محاكاة الشراء',
2221
+ mockNotice: 'معاينة التطوير: تجري محاكاة التراخيص والمدفوعات، ولن يُحصَّل أي مبلغ.',
2222
+ sellerProvidedBy: 'الترخيص مقدَّم من البائع {name}',
2223
+ sellerUnavailable: 'بيانات مانح الترخيص غير متاحة.',
2224
+ sellerSupport: 'دعم الإضافة',
2225
+ sellerTerms: 'شروط الترخيص',
2226
+ sellerRefunds: 'سياسة استرداد المبالغ',
2227
+ sellerRole: 'يتحمّل مطوّر الإضافة المسؤولية عن وظائفها وعن التزامات الترخيص، وتوفّر Extenshi أدوات الدفع واستعادة التراخيص.',
2228
+ licenseTitle: 'ترخيصك',
2229
+ licenseFallbackName: 'ترخيص الإضافة',
2230
+ licenseNone: 'لم يُعثر على أي ترخيص في هذا التثبيت.',
2231
+ kindOneTime: 'شراء لمرة واحدة',
2232
+ kindLifetime: 'ترخيص مدى الحياة',
2233
+ kindSubscription: 'اشتراك',
2234
+ kindLicense: 'ترخيص',
2235
+ statusLine: 'الحالة: {status}',
2236
+ statusActive: 'نشطة',
2237
+ statusGrace: 'في فترة السماح',
2238
+ statusExpired: 'منتهية الصلاحية',
2239
+ statusNone: 'بلا وصول',
2240
+ accessEnded: 'انتهى الوصول في {date}',
2241
+ accessUntil: 'الوصول متاح حتى {date}',
2242
+ accessRecordedEnd: 'تاريخ الانتهاء المسجَّل: {date}',
2243
+ subscriptionLine: 'الاشتراك: {status}',
2244
+ renewalCanceled: 'أُلغي التجديد',
2245
+ periodEnds: 'تنتهي الفترة الحالية في {date}',
2246
+ subActive: 'نشط',
2247
+ subTrialing: 'فترة تجريبية',
2248
+ subPastDue: 'متأخر السداد',
2249
+ subCanceled: 'ملغى',
2250
+ subUnpaid: 'غير مدفوع',
2251
+ subIncomplete: 'غير مكتمل',
2252
+ subIncompleteExpired: 'لم يكتمل الدفع',
2253
+ subPaused: 'متوقف مؤقتًا',
2254
+ licenseOffline: 'اتصل بالإنترنت للتحقق من ترخيصك. تتوقف الميزات المدفوعة مؤقتًا إذا مرّت 48 ساعة دون تحقق ناجح. لم تنتهِ صلاحية عملية الشراء.',
2255
+ licenseCached: 'تُعرض معلومات الترخيص المحفوظة.',
2256
+ licenseFresh: 'تعكس معلومات الاشتراك آخر تحديث للدفع تمت معالجته.',
2257
+ actionFailed: 'تعذّر إكمال الطلب. يُرجى المحاولة مرة أخرى أو التواصل مع دعم الإضافة.',
2258
+ manageBilling: 'إدارة الفوترة',
2259
+ noPortal: 'لم تُفتح بوابة الفوترة. يمكنك المحاولة مرة أخرى أو التواصل مع دعم الإضافة.',
2260
+ close: 'إغلاق',
2261
+ pickerTitle: 'اختر ملف فوترة',
2262
+ pickerDescription: 'يمكن أن تكون لعمليات الشراء المنفصلة ملفات فوترة منفصلة. اختر ملفًا منها لإدارة اشتراكاته وتفاصيل الدفع الخاصة به.',
2263
+ pickerFirstRecorded: 'سُجِّل لأول مرة في {date}',
2264
+ pickerCancel: 'إلغاء',
2265
+ },
2266
+ };
2267
+ // END GENERATED TRANSLATIONS
2268
+ /** Our dictionary language for a tag: exact, then pt → pt-BR, zh(-CN/SG/Hans) → zh-CN, then the bare language. */
2269
+ function sdkLocale(locale) {
2270
+ const tag = wireLocale(locale);
2271
+ if (!tag)
2272
+ return 'en';
2273
+ const exact = SDK_LOCALES.find((l) => l.toLowerCase() === tag.toLowerCase());
2274
+ if (exact)
2275
+ return exact;
2276
+ const [lang, region] = tag.split('-');
2277
+ if (lang === 'pt')
2278
+ return 'pt-BR';
2279
+ // Traditional-script regions read English rather than Simplified characters.
2280
+ if (lang === 'zh')
2281
+ return region && ['TW', 'HK', 'MO'].includes(region) ? 'en' : 'zh-CN';
2282
+ return SDK_LOCALES.find((l) => l === lang) ?? 'en';
2283
+ }
2284
+ function sdkDir(locale) {
2285
+ const lang = wireLocale(locale)?.split('-')[0];
2286
+ return lang && ['ar', 'he', 'fa', 'ur'].includes(lang) ? 'rtl' : 'ltr';
2287
+ }
2288
+ /** English merged with the translation for `locale`. */
2289
+ function sdkStrings(locale) {
2290
+ const tag = sdkLocale(locale);
2291
+ return tag === 'en' ? SDK_STRINGS_EN : { ...SDK_STRINGS_EN, ...TRANSLATIONS[tag] };
2292
+ }
2293
+ /** Fill `{placeholders}` once; a value containing braces is inserted literally. */
2294
+ function fill(message, values) {
2295
+ return message.replace(/\{([a-z]+)\}/g, (whole, key) => values[key] ?? whole);
2296
+ }
2297
+
2298
+ /**
2299
+ * Buyer-facing withdrawal-waiver text (EU/EEA digital content, Directive
2300
+ * 2011/83/EU art. 16(m); UK CCR 2013 reg. 37), per text version and SDK
2301
+ * language. Its own module, not part of the paywall dictionary, so Lite can
2302
+ * show it without bundling every paywall string.
2303
+ *
2304
+ * The recorded consent names the version, so a version's words never change:
2305
+ * new wording is a new version here and a new PAY_WITHDRAWAL_WAIVER_VERSION.
2306
+ *
2307
+ * MIRRORED in shared-types/pay-withdrawal-waiver.ts, which the purchase
2308
+ * confirmation email quotes; shared-types/pay-withdrawal-waiver.test.ts fails
2309
+ * unless both copies are byte-identical. Change them together.
2310
+ */
2311
+ const WITHDRAWAL_WAIVER_TEXTS = {
2312
+ [PAY_WITHDRAWAL_WAIVER_VERSION]: {
2313
+ en: 'I agree that {seller} starts supplying the digital content immediately, and I acknowledge that I lose my right of withdrawal once supply has begun.',
2314
+ es: 'Acepto que {seller} comience a suministrar el contenido digital de inmediato y reconozco que pierdo mi derecho de desistimiento una vez iniciado el suministro.',
2315
+ 'pt-BR': 'Concordo que {seller} comece a fornecer o conteúdo digital imediatamente e reconheço que perco meu direito de arrependimento assim que o fornecimento tiver início.',
2316
+ fr: 'J’accepte que {seller} commence immédiatement la fourniture du contenu numérique et je reconnais perdre mon droit de rétractation dès le début de la fourniture.',
2317
+ de: 'Ich stimme zu, dass {seller} sofort mit der Bereitstellung der digitalen Inhalte beginnt, und ich nehme zur Kenntnis, dass ich mit Beginn der Bereitstellung mein Widerrufsrecht verliere.',
2318
+ it: 'Accetto che {seller} inizi immediatamente la fornitura del contenuto digitale e riconosco di perdere il mio diritto di recesso una volta iniziata la fornitura.',
2319
+ ru: 'Я соглашаюсь с тем, что {seller} немедленно начнёт предоставление цифрового контента, и подтверждаю, что утрачиваю право на отказ от договора с момента начала предоставления.',
2320
+ ja: '{seller}がデジタルコンテンツの提供を直ちに開始することに同意し、提供の開始後は撤回権を失うことを了承します。',
2321
+ ko: '{seller}의 디지털 콘텐츠 제공이 즉시 시작되는 것에 동의하며, 제공이 시작되면 청약철회권을 상실한다는 점을 확인합니다.',
2322
+ 'zh-CN': '我同意 {seller} 立即开始提供数字内容,并确认一旦开始提供,我将失去撤回权。',
2323
+ ar: 'أوافق على أن يبدأ {seller} فورًا في تقديم المحتوى الرقمي، وأُقرّ بأنني أفقد حقي في العدول عن العقد بمجرد بدء التقديم.',
2324
+ },
2325
+ };
2326
+ /**
2327
+ * The waiver text to show for `serverVersion`, and the version to send with
2328
+ * the consent. A version this SDK does not know (a newer server) shows this
2329
+ * SDK's current text and sends its version: the consent always names the words
2330
+ * actually shown.
2331
+ */
2332
+ function withdrawalWaiverText(serverVersion, locale, seller) {
2333
+ // Own keys only: `toString` / `__proto__` from a server are just unknown versions.
2334
+ const known = Object.keys(WITHDRAWAL_WAIVER_TEXTS).includes(serverVersion);
2335
+ const version = known ? serverVersion : PAY_WITHDRAWAL_WAIVER_VERSION;
2336
+ return { version, text: fill(WITHDRAWAL_WAIVER_TEXTS[version][sdkLocale(locale)], { seller }) };
2337
+ }
2338
+
1445
2339
  /**
1446
2340
  * `ExtenshiPayLite` — entitlement, feature gating and hosted checkout, without
1447
2341
  * the paywall UI. This is what the `lite` bundle exports; the full `ExtenshiPay`
@@ -1498,6 +2392,7 @@
1498
2392
  });
1499
2393
  this.recovery = new RecoveryManager({
1500
2394
  api: this.api,
2395
+ locale: this.config.locale,
1501
2396
  publishableKey: this.config.publishableKey,
1502
2397
  storage: deps.recoveryStorage ?? createRecoveryStorage(),
1503
2398
  openUrl: deps.openUrl,
@@ -1620,12 +2515,44 @@
1620
2515
  async onFeatureLocked(_feature, _options) {
1621
2516
  return false;
1622
2517
  }
1623
- /** Opens hosted checkout for `sku` in a new tab and resolves when the session settles. */
2518
+ /**
2519
+ * The withdrawal waiver this offer asks for, with the exact text to show
2520
+ * next to an unticked checkbox (buyer's language, seller's name filled in),
2521
+ * or null when the seller attested the extension is not distributed in the
2522
+ * EEA/UK. For UIs that call `openCheckout()` themselves — Lite, or a custom
2523
+ * paywall; the full SDK's paywall does this for you.
2524
+ */
2525
+ async getWithdrawalWaiver() {
2526
+ await this.initialize();
2527
+ try {
2528
+ const offer = await this.fetchOffer();
2529
+ if (!offer.withdrawalWaiver)
2530
+ return null;
2531
+ const seller = offer.seller?.displayName?.trim() || offer.projectName;
2532
+ return withdrawalWaiverText(offer.withdrawalWaiver.version, this.config.locale, seller);
2533
+ }
2534
+ catch (error) {
2535
+ throw this.reportError(error);
2536
+ }
2537
+ }
2538
+ /**
2539
+ * Opens hosted checkout for `sku` in a new tab and resolves when the session settles.
2540
+ *
2541
+ * Called directly (not from the paywall), this does NOT collect the EU/UK
2542
+ * withdrawal waiver. If `getWithdrawalWaiver()` returns one, your UI must
2543
+ * collect the buyer's consent and pass it as `options.withdrawalWaiver`;
2544
+ * without it this rejects with `WITHDRAWAL_WAIVER_REQUIRED` (the server
2545
+ * refuses such a checkout too).
2546
+ */
1624
2547
  async openCheckout(sku, options = {}) {
1625
2548
  await this.initialize();
1626
2549
  try {
1627
2550
  if (this.recovery.isActive())
1628
2551
  throw new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, 'Recovery is in progress');
2552
+ // A cold cache is filled here; if the offer cannot be read, the server decides.
2553
+ const offer = await this.fetchOffer().catch(() => null);
2554
+ if (offer?.withdrawalWaiver && options.withdrawalWaiver?.accepted !== true)
2555
+ throw new ExtenshiPayError(ERROR_CODES.WITHDRAWAL_WAIVER_REQUIRED, 'This offer needs the buyer to accept the withdrawal waiver; pass options.withdrawalWaiver');
1629
2556
  return await this.checkout.open(sku, options);
1630
2557
  }
1631
2558
  catch (error) {
@@ -1666,7 +2593,7 @@
1666
2593
  await this.initialize();
1667
2594
  try {
1668
2595
  const endUserRef = await this.getEndUserRef();
1669
- let result = await this.api.getPortalUrl(endUserRef);
2596
+ let result = await this.api.getPortalUrl(endUserRef, undefined, this.config.locale);
1670
2597
  if (this.destroyed)
1671
2598
  return null;
1672
2599
  if (result.accounts?.length) {
@@ -1680,7 +2607,7 @@
1680
2607
  // Recovery may replace this installation while the selector is open.
1681
2608
  if (endUserRef !== (await this.getEndUserRef()))
1682
2609
  throw new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, 'Installation changed; open the portal again');
1683
- result = await this.api.getPortalUrl(endUserRef, customerId);
2610
+ result = await this.api.getPortalUrl(endUserRef, customerId, this.config.locale);
1684
2611
  }
1685
2612
  if (this.destroyed)
1686
2613
  return null;
@@ -1746,97 +2673,6 @@
1746
2673
  }
1747
2674
  ExtenshiPayLite.version = VERSION;
1748
2675
 
1749
- /** Bundled UI only. Native dialog provides modal focus containment and Escape. */
1750
- class BillingProfilePicker {
1751
- constructor() {
1752
- this.dismiss = null;
1753
- }
1754
- hide() {
1755
- this.dismiss?.();
1756
- }
1757
- show(accounts) {
1758
- this.hide();
1759
- if (typeof document === 'undefined')
1760
- throw new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, 'Provide selectAccount outside an extension page');
1761
- const host = document.createElement('div');
1762
- host.className = 'extenshi-billing-profile-host';
1763
- const root = host.attachShadow({ mode: 'open' });
1764
- const style = document.createElement('style');
1765
- style.textContent = `
1766
- dialog{font:15px/1.5 system-ui,sans-serif;color:#172033;background:#fff;border:1px solid #dce1e8;border-radius:16px;padding:24px;width:min(440px,calc(100vw - 64px));max-height:80vh;box-shadow:0 20px 60px #0003}
1767
- dialog::backdrop{background:#10182880}h2{margin:0 0 8px;font-size:22px}p{margin:0 0 16px;color:#526078}
1768
- button{font:inherit;cursor:pointer;border:1px solid #dce1e8;border-radius:8px;background:#fff;color:inherit;padding:12px;text-align:left;width:100%;margin-top:10px}
1769
- button:hover{background:#f3f6fa}button:focus-visible{outline:3px solid #0ea5e9;outline-offset:2px}strong,small{display:block}small{color:#526078;margin-top:4px}
1770
- `;
1771
- const dialog = document.createElement('dialog');
1772
- dialog.setAttribute('aria-labelledby', 'billing-title');
1773
- dialog.setAttribute('aria-describedby', 'billing-description');
1774
- const title = document.createElement('h2');
1775
- title.id = 'billing-title';
1776
- title.textContent = 'Choose a billing profile';
1777
- const description = document.createElement('p');
1778
- description.id = 'billing-description';
1779
- description.textContent =
1780
- 'Separate purchases can have separate billing profiles. Choose one to manage its subscriptions and payment details.';
1781
- dialog.append(title, description);
1782
- root.append(style, dialog);
1783
- document.body.append(host);
1784
- if (typeof dialog.showModal !== 'function') {
1785
- host.remove();
1786
- throw new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, 'This browser needs a custom selectAccount callback');
1787
- }
1788
- return new Promise((resolve, reject) => {
1789
- const finish = (id) => {
1790
- this.dismiss = null;
1791
- dialog.close();
1792
- host.remove();
1793
- resolve(id);
1794
- };
1795
- this.dismiss = () => finish(null);
1796
- dialog.addEventListener('cancel', (event) => {
1797
- event.preventDefault();
1798
- finish(null);
1799
- });
1800
- for (const account of accounts) {
1801
- const button = document.createElement('button');
1802
- button.type = 'button';
1803
- const label = document.createElement('strong');
1804
- label.textContent = account.label;
1805
- const detail = document.createElement('small');
1806
- const recorded = new Date(account.createdAt);
1807
- detail.textContent = Number.isNaN(recorded.getTime())
1808
- ? ''
1809
- : `First recorded ${recorded.toLocaleDateString()}`;
1810
- button.append(label, detail);
1811
- for (const subscription of account.subscriptions) {
1812
- const line = document.createElement('small');
1813
- const end = subscription.currentPeriodEnd ? new Date(subscription.currentPeriodEnd) : null;
1814
- const cancellation = subscription.cancelAtPeriodEnd
1815
- ? ` · Renewal canceled${end && !Number.isNaN(end.getTime()) ? ` · Period ends ${end.toLocaleDateString()}` : ''}`
1816
- : '';
1817
- line.textContent = `${subscription.title} · ${subscription.status.replace(/_/g, ' ')}${cancellation}`;
1818
- button.append(line);
1819
- }
1820
- button.addEventListener('click', () => finish(account.id));
1821
- dialog.append(button);
1822
- }
1823
- const cancel = document.createElement('button');
1824
- cancel.type = 'button';
1825
- cancel.textContent = 'Cancel';
1826
- cancel.addEventListener('click', () => finish(null));
1827
- dialog.append(cancel);
1828
- try {
1829
- dialog.showModal();
1830
- }
1831
- catch (error) {
1832
- this.dismiss = null;
1833
- host.remove();
1834
- reject(error);
1835
- }
1836
- });
1837
- }
1838
- }
1839
-
1840
2676
  /** Treat even server-provided links as untrusted; never render executable protocols. */
1841
2677
  function publicContactUrl(value) {
1842
2678
  try {
@@ -1851,13 +2687,11 @@
1851
2687
  return `mailto:${encodeURIComponent(value)}`;
1852
2688
  return null;
1853
2689
  }
1854
- function sellerDetails(seller) {
2690
+ function sellerDetails(seller, t = SDK_STRINGS_EN) {
1855
2691
  const section = document.createElement('section');
1856
2692
  section.className = 'extenshi-seller-details';
1857
2693
  const name = document.createElement('p');
1858
- name.textContent = seller
1859
- ? `License provided by ${seller.displayName}`
1860
- : 'License provider details are unavailable.';
2694
+ name.textContent = seller ? fill(t.sellerProvidedBy, { name: seller.displayName }) : t.sellerUnavailable;
1861
2695
  section.append(name);
1862
2696
  const link = (label, value) => {
1863
2697
  const href = value ? publicContactUrl(value) : null;
@@ -1872,39 +2706,40 @@
1872
2706
  section.append(a);
1873
2707
  };
1874
2708
  if (seller) {
1875
- link('Extension support', seller.supportUrl);
1876
- link('License terms', seller.termsUrl);
2709
+ link(t.sellerSupport, seller.supportUrl);
2710
+ link(t.sellerTerms, seller.termsUrl);
2711
+ link(t.sellerRefunds, seller.refundPolicyUrl ?? null);
1877
2712
  }
1878
2713
  const role = document.createElement('p');
1879
- role.textContent =
1880
- 'The author handles extension functionality and license commitments. Extenshi provides payment and license recovery tools.';
2714
+ role.textContent = t.sellerRole;
1881
2715
  section.append(role);
1882
2716
  return section;
1883
2717
  }
1884
2718
 
1885
- /**
1886
- * Every string the SDK adds on top of the templates. English only for now;
1887
- * iteration 12 T9 / 13 replaces this dictionary per locale. Do not add
1888
- * promotional claims here without marketing/legal review (see
1889
- * .claude/modules/paywall-templates.md).
1890
- */
1891
- const MOCK_PAYMENT_NOTICE = 'Development preview: licenses and payments are simulated. No payment will be taken.';
1892
- const DEFAULT_STRINGS = {
1893
- title: 'Unlock premium features',
1894
- description: 'Upgrade to get full access to this extension.',
1895
- upgrade: 'Upgrade',
1896
- cancel: 'Not now',
1897
- dismiss: 'Dismiss',
1898
- remindLater: 'Remind me later',
1899
- continueFree: 'Continue with the free version',
1900
- checkoutUnavailable: 'Purchases are temporarily unavailable',
1901
- periodMonth: '/month',
1902
- periodYear: '/year',
1903
- periodOnce: 'one-time',
1904
- footer: 'Secure checkout opens in a new tab.',
1905
- restorePurchase: 'Restore purchase',
1906
- };
1907
-
2719
+ /** A status label in the language, or the raw value for one we do not know. */
2720
+ function statusLabel(t, status) {
2721
+ const map = {
2722
+ active: t.statusActive,
2723
+ grace: t.statusGrace,
2724
+ expired: t.statusExpired,
2725
+ none: t.statusNone,
2726
+ };
2727
+ return map[status] ?? status.replace(/_/g, ' ');
2728
+ }
2729
+ /** A provider subscription status (Stripe vocabulary) in the language. */
2730
+ function subscriptionStatusLabel(t, status) {
2731
+ const map = {
2732
+ active: t.subActive,
2733
+ trialing: t.subTrialing,
2734
+ past_due: t.subPastDue,
2735
+ canceled: t.subCanceled,
2736
+ unpaid: t.subUnpaid,
2737
+ incomplete: t.subIncomplete,
2738
+ incomplete_expired: t.subIncompleteExpired,
2739
+ paused: t.subPaused,
2740
+ };
2741
+ return map[status] ?? status.replace(/_/g, ' ');
2742
+ }
1908
2743
  class LicensePanel {
1909
2744
  constructor() {
1910
2745
  this.dismiss = null;
@@ -1912,30 +2747,34 @@
1912
2747
  hide() {
1913
2748
  this.dismiss?.();
1914
2749
  }
1915
- show(summary, actions) {
2750
+ show(summary, actions, locale = null) {
1916
2751
  this.hide();
1917
2752
  if (typeof document === 'undefined')
1918
2753
  throw new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, 'Use getLicenseSummary outside an extension page');
2754
+ const t = sdkStrings(locale);
2755
+ const lang = sdkLocale(locale);
1919
2756
  const host = document.createElement('div');
1920
2757
  host.className = 'extenshi-license-host';
2758
+ host.setAttribute('lang', lang);
2759
+ host.setAttribute('dir', sdkDir(lang));
1921
2760
  const root = host.attachShadow({ mode: 'open' });
1922
2761
  const style = document.createElement('style');
1923
2762
  style.textContent = `dialog{font:15px/1.5 system-ui,sans-serif;color:#172033;background:#fff;border:1px solid #dce1e8;border-radius:16px;padding:24px;width:min(460px,calc(100vw - 64px));max-height:80vh}dialog::backdrop{background:#10182880}h2{margin:0}h3{font-size:16px;margin:0}article{border-block-end:1px solid #ddd;padding:16px 0}p{margin:8px 0}button{font:inherit;padding:10px 14px;margin:12px 8px 0 0;border:1px solid #cbd5e1;border-radius:8px;cursor:pointer;background:#fff;color:inherit}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #0ea5e9}a{color:#0369a1}.extenshi-seller-details{font-size:13px;margin-top:20px}`;
1924
2763
  const dialog = document.createElement('dialog');
1925
- dialog.setAttribute('aria-label', 'Your license');
2764
+ dialog.setAttribute('aria-label', t.licenseTitle);
1926
2765
  const title = document.createElement('h2');
1927
- title.textContent = 'Your license';
2766
+ title.textContent = t.licenseTitle;
1928
2767
  const content = document.createElement('div');
1929
2768
  const feedback = document.createElement('p');
1930
2769
  feedback.setAttribute('role', 'status');
1931
2770
  const render = (state) => {
1932
2771
  content.replaceChildren();
1933
2772
  const note = document.createElement('p');
1934
- note.textContent = state.projectName ?? 'Extension license';
2773
+ note.textContent = state.projectName ?? t.licenseFallbackName;
1935
2774
  content.append(note);
1936
2775
  if (!state.entitlement.items.length) {
1937
2776
  const empty = document.createElement('p');
1938
- empty.textContent = 'No license found on this installation.';
2777
+ empty.textContent = t.licenseNone;
1939
2778
  content.append(empty);
1940
2779
  }
1941
2780
  for (const item of state.entitlement.items) {
@@ -1945,37 +2784,42 @@
1945
2784
  const status = document.createElement('p');
1946
2785
  const kind = item.kind === 'one_time'
1947
2786
  ? item.expiresAt
1948
- ? 'One-time purchase'
1949
- : 'Lifetime'
2787
+ ? t.kindOneTime
2788
+ : t.kindLifetime
1950
2789
  : item.kind === 'subscription'
1951
- ? 'Subscription'
1952
- : 'License';
1953
- status.textContent = `${kind} · ${item.status}`;
2790
+ ? t.kindSubscription
2791
+ : t.kindLicense;
2792
+ status.textContent = `${kind} · ${fill(t.statusLine, { status: statusLabel(t, item.status) })}`;
1954
2793
  article.append(heading, status);
1955
2794
  if (item.expiresAt) {
1956
2795
  const date = new Date(item.expiresAt);
1957
2796
  if (!Number.isNaN(date.getTime())) {
1958
2797
  const expiry = document.createElement('p');
1959
- expiry.textContent = `${item.status === 'expired' ? 'Access ended' : item.status === 'active' || item.status === 'grace' ? 'Access until' : 'Recorded end date'} ${date.toLocaleString()}`;
2798
+ const when = date.toLocaleString(lang);
2799
+ expiry.textContent = fill(item.status === 'expired'
2800
+ ? t.accessEnded
2801
+ : item.status === 'active' || item.status === 'grace'
2802
+ ? t.accessUntil
2803
+ : t.accessRecordedEnd, { date: when });
1960
2804
  article.append(expiry);
1961
2805
  }
1962
2806
  }
1963
2807
  for (const sub of item.subscriptions ?? []) {
1964
2808
  const row = document.createElement('p');
1965
- row.textContent = `Subscription: ${sub.status.replace(/_/g, ' ')}${sub.cancelAtPeriodEnd ? ' · Renewal canceled' : ''}`;
2809
+ row.textContent = `${fill(t.subscriptionLine, { status: subscriptionStatusLabel(t, sub.status) })}${sub.cancelAtPeriodEnd ? ` · ${t.renewalCanceled}` : ''}`;
1966
2810
  article.append(row);
1967
2811
  }
1968
2812
  content.append(article);
1969
2813
  }
1970
2814
  const freshness = document.createElement('p');
1971
2815
  freshness.textContent = state.entitlement.requiresOnlineCheck
1972
- ? 'Connect to the internet to verify your license. Paid features are paused after 48 hours without a successful check. Your purchase has not expired.'
2816
+ ? t.licenseOffline
1973
2817
  : state.entitlement.source === 'mock'
1974
- ? MOCK_PAYMENT_NOTICE
2818
+ ? t.mockNotice
1975
2819
  : state.entitlement.source === 'cache'
1976
- ? 'Showing saved license information.'
1977
- : 'Subscription information reflects the latest processed payment update.';
1978
- content.append(freshness, sellerDetails(state.seller));
2820
+ ? t.licenseCached
2821
+ : t.licenseFresh;
2822
+ content.append(freshness, sellerDetails(state.seller, t));
1979
2823
  };
1980
2824
  render(summary);
1981
2825
  dialog.append(title, content, feedback);
@@ -2014,8 +2858,7 @@
2014
2858
  }
2015
2859
  catch {
2016
2860
  if (!closed)
2017
- feedback.textContent =
2018
- 'Unable to complete the request. Please try again or contact extension support.';
2861
+ feedback.textContent = t.actionFailed;
2019
2862
  }
2020
2863
  finally {
2021
2864
  if (!closed)
@@ -2028,20 +2871,20 @@
2028
2871
  dialog.append(button);
2029
2872
  };
2030
2873
  if (summary.recoveryEnabled)
2031
- action('Restore purchase', async () => {
2874
+ action(t.restorePurchase, async () => {
2032
2875
  const updated = await actions.restore();
2033
2876
  if (!closed)
2034
2877
  render(updated);
2035
2878
  });
2036
2879
  if (summary.entitlement.source !== 'mock')
2037
- action('Manage billing', async () => {
2880
+ action(t.manageBilling, async () => {
2038
2881
  const url = await actions.manage();
2039
2882
  if (!url && !closed)
2040
- feedback.textContent = 'No billing portal opened. You can retry or contact extension support.';
2883
+ feedback.textContent = t.noPortal;
2041
2884
  });
2042
2885
  const done = document.createElement('button');
2043
2886
  done.type = 'button';
2044
- done.textContent = 'Close';
2887
+ done.textContent = t.close;
2045
2888
  done.addEventListener('click', close);
2046
2889
  dialog.append(done);
2047
2890
  try {
@@ -2056,6 +2899,100 @@
2056
2899
  }
2057
2900
  }
2058
2901
 
2902
+ /** Bundled UI only. Native dialog provides modal focus containment and Escape. */
2903
+ class BillingProfilePicker {
2904
+ constructor() {
2905
+ this.dismiss = null;
2906
+ }
2907
+ hide() {
2908
+ this.dismiss?.();
2909
+ }
2910
+ show(accounts, locale = null) {
2911
+ this.hide();
2912
+ if (typeof document === 'undefined')
2913
+ throw new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, 'Provide selectAccount outside an extension page');
2914
+ const t = sdkStrings(locale);
2915
+ const lang = sdkLocale(locale);
2916
+ const host = document.createElement('div');
2917
+ host.className = 'extenshi-billing-profile-host';
2918
+ host.setAttribute('lang', lang);
2919
+ host.setAttribute('dir', sdkDir(lang));
2920
+ const root = host.attachShadow({ mode: 'open' });
2921
+ const style = document.createElement('style');
2922
+ style.textContent = `
2923
+ dialog{font:15px/1.5 system-ui,sans-serif;color:#172033;background:#fff;border:1px solid #dce1e8;border-radius:16px;padding:24px;width:min(440px,calc(100vw - 64px));max-height:80vh;box-shadow:0 20px 60px #0003}
2924
+ dialog::backdrop{background:#10182880}h2{margin:0 0 8px;font-size:22px}p{margin:0 0 16px;color:#526078}
2925
+ button{font:inherit;cursor:pointer;border:1px solid #dce1e8;border-radius:8px;background:#fff;color:inherit;padding:12px;text-align:left;width:100%;margin-top:10px}
2926
+ button:hover{background:#f3f6fa}button:focus-visible{outline:3px solid #0ea5e9;outline-offset:2px}strong,small{display:block}small{color:#526078;margin-top:4px}
2927
+ `;
2928
+ const dialog = document.createElement('dialog');
2929
+ dialog.setAttribute('aria-labelledby', 'billing-title');
2930
+ dialog.setAttribute('aria-describedby', 'billing-description');
2931
+ const title = document.createElement('h2');
2932
+ title.id = 'billing-title';
2933
+ title.textContent = t.pickerTitle;
2934
+ const description = document.createElement('p');
2935
+ description.id = 'billing-description';
2936
+ description.textContent = t.pickerDescription;
2937
+ dialog.append(title, description);
2938
+ root.append(style, dialog);
2939
+ document.body.append(host);
2940
+ if (typeof dialog.showModal !== 'function') {
2941
+ host.remove();
2942
+ throw new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, 'This browser needs a custom selectAccount callback');
2943
+ }
2944
+ return new Promise((resolve, reject) => {
2945
+ const finish = (id) => {
2946
+ this.dismiss = null;
2947
+ dialog.close();
2948
+ host.remove();
2949
+ resolve(id);
2950
+ };
2951
+ this.dismiss = () => finish(null);
2952
+ dialog.addEventListener('cancel', (event) => {
2953
+ event.preventDefault();
2954
+ finish(null);
2955
+ });
2956
+ for (const account of accounts) {
2957
+ const button = document.createElement('button');
2958
+ button.type = 'button';
2959
+ const label = document.createElement('strong');
2960
+ label.textContent = account.label;
2961
+ const detail = document.createElement('small');
2962
+ const recorded = new Date(account.createdAt);
2963
+ detail.textContent = Number.isNaN(recorded.getTime())
2964
+ ? ''
2965
+ : fill(t.pickerFirstRecorded, { date: recorded.toLocaleDateString(lang) });
2966
+ button.append(label, detail);
2967
+ for (const subscription of account.subscriptions) {
2968
+ const line = document.createElement('small');
2969
+ const end = subscription.currentPeriodEnd ? new Date(subscription.currentPeriodEnd) : null;
2970
+ const cancellation = subscription.cancelAtPeriodEnd
2971
+ ? ` · ${t.renewalCanceled}${end && !Number.isNaN(end.getTime()) ? ` · ${fill(t.periodEnds, { date: end.toLocaleDateString(lang) })}` : ''}`
2972
+ : '';
2973
+ line.textContent = `${subscription.title} · ${subscriptionStatusLabel(t, subscription.status)}${cancellation}`;
2974
+ button.append(line);
2975
+ }
2976
+ button.addEventListener('click', () => finish(account.id));
2977
+ dialog.append(button);
2978
+ }
2979
+ const cancel = document.createElement('button');
2980
+ cancel.type = 'button';
2981
+ cancel.textContent = t.pickerCancel;
2982
+ cancel.addEventListener('click', () => finish(null));
2983
+ dialog.append(cancel);
2984
+ try {
2985
+ dialog.showModal();
2986
+ }
2987
+ catch (error) {
2988
+ this.dismiss = null;
2989
+ host.remove();
2990
+ reject(error);
2991
+ }
2992
+ });
2993
+ }
2994
+ }
2995
+
2059
2996
  function formatPrice(amountMinor, currency, locale) {
2060
2997
  const value = amountMinor / 100;
2061
2998
  const code = currency.toUpperCase();
@@ -2085,21 +3022,57 @@
2085
3022
  return offer.interval === 'year' ? strings.periodYear : strings.periodMonth;
2086
3023
  }
2087
3024
 
3025
+ /**
3026
+ * The paywall's strings in a locale, from the SDK dictionary (./i18n.ts).
3027
+ * Do not add promotional claims without marketing/legal review (see
3028
+ * .claude/modules/paywall-templates.md).
3029
+ */
3030
+ function paywallStrings(t) {
3031
+ return {
3032
+ title: t.title,
3033
+ description: t.description,
3034
+ upgrade: t.upgrade,
3035
+ cancel: t.cancel,
3036
+ dismiss: t.dismiss,
3037
+ remindLater: t.remindLater,
3038
+ continueFree: t.continueFree,
3039
+ checkoutUnavailable: t.checkoutUnavailable,
3040
+ periodMonth: t.periodMonth,
3041
+ periodYear: t.periodYear,
3042
+ periodOnce: t.periodOnce,
3043
+ footer: t.footer,
3044
+ restorePurchase: t.restorePurchase,
3045
+ featuresHeading: t.featuresHeading,
3046
+ plansHeading: t.plansHeading,
3047
+ freePlanName: t.freePlanName,
3048
+ premiumPlanName: t.premiumPlanName,
3049
+ popularBadge: t.popularBadge,
3050
+ unlockHeading: t.unlockHeading,
3051
+ };
3052
+ }
3053
+ /** English (the default and the fallback). */
3054
+ const DEFAULT_STRINGS = paywallStrings(SDK_STRINGS_EN);
3055
+ SDK_STRINGS_EN.mockNotice;
3056
+ /** The paywall strings for `locale` (English when we have no translation). */
3057
+ function stringsFor(locale) {
3058
+ return paywallStrings(sdkStrings(locale));
3059
+ }
3060
+
2088
3061
  var sharedCss = ":host{--ep-primary-50:#f0f9ff;--ep-primary-100:#e0f2fe;--ep-primary-200:#bae6fd;--ep-primary-300:#7dd3fc;--ep-primary-400:#38bdf8;--ep-primary-500:#0ea5e9;--ep-primary-600:#0284c7;--ep-primary-700:#0369a1;--ep-primary-800:#075985;--ep-primary-900:#0c4a6e;--ep-gray-50:#f9fafb;--ep-gray-100:#f3f4f6;--ep-gray-200:#e5e7eb;--ep-gray-300:#d1d5db;--ep-gray-400:#9ca3af;--ep-gray-500:#6b7280;--ep-gray-600:#4b5563;--ep-gray-700:#374151;--ep-gray-800:#1f2937;--ep-gray-900:#111827;--ep-success-500:#10b981;--ep-success-600:#059669;--ep-error-500:#ef4444;--ep-error-600:#dc2626;--ep-warning-500:#f59e0b;--ep-warning-600:#d97706;--ep-bg-primary:var(--ep-gray-50);--ep-bg-secondary:#ffffff;--ep-bg-tertiary:var(--ep-gray-100);--ep-text-primary:var(--ep-gray-900);--ep-text-secondary:var(--ep-gray-600);--ep-text-tertiary:var(--ep-gray-400);--ep-border-primary:var(--ep-gray-200);--ep-border-secondary:var(--ep-gray-300);--ep-shadow-sm:0 1px 2px 0 rgba(0,0,0,0.05);--ep-shadow-md:0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -1px rgba(0,0,0,0.06);--ep-shadow-lg:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -2px rgba(0,0,0,0.05);--ep-shadow-xl:0 20px 25px -5px rgba(0,0,0,0.1),0 10px 10px -5px rgba(0,0,0,0.04);--ep-font-family-sans:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif;--ep-font-family-mono:\"SF Mono\",Monaco,\"Cascadia Code\",\"Roboto Mono\",Consolas,\"Courier New\",monospace;--ep-font-size-xs:0.75rem;--ep-font-size-sm:0.875rem;--ep-font-size-base:1rem;--ep-font-size-lg:1.125rem;--ep-font-size-xl:1.25rem;--ep-font-size-2xl:1.5rem;--ep-font-size-3xl:1.875rem;--ep-font-size-4xl:2.25rem;--ep-font-size-5xl:3rem;--ep-font-weight-normal:400;--ep-font-weight-medium:500;--ep-font-weight-semibold:600;--ep-font-weight-bold:700;--ep-line-height-tight:1.25;--ep-line-height-snug:1.375;--ep-line-height-normal:1.5;--ep-line-height-relaxed:1.625;--ep-space-1:0.25rem;--ep-space-2:0.5rem;--ep-space-3:0.75rem;--ep-space-4:1rem;--ep-space-5:1.25rem;--ep-space-6:1.5rem;--ep-space-8:2rem;--ep-space-10:2.5rem;--ep-space-12:3rem;--ep-space-16:4rem;--ep-space-20:5rem;--ep-space-24:6rem;--ep-radius-sm:0.125rem;--ep-radius-md:0.375rem;--ep-radius-lg:0.5rem;--ep-radius-xl:0.75rem;--ep-radius-2xl:1rem;--ep-radius-full:9999px;--ep-transition-fast:150ms ease-in-out;--ep-transition-normal:300ms ease-in-out;--ep-transition-slow:500ms ease-in-out;--ep-z-backdrop:1000;--ep-z-modal:1010;--ep-z-popover:1020;--ep-z-tooltip:1030}:host([data-theme=\"dark\"]){--ep-bg-primary:var(--ep-gray-900);--ep-bg-secondary:var(--ep-gray-800);--ep-bg-tertiary:var(--ep-gray-700);--ep-text-primary:var(--ep-gray-50);--ep-text-secondary:var(--ep-gray-300);--ep-text-tertiary:var(--ep-gray-400);--ep-border-primary:var(--ep-gray-700);--ep-border-secondary:var(--ep-gray-600);--ep-shadow-sm:0 1px 2px 0 rgba(0,0,0,0.3);--ep-shadow-md:0 4px 6px -1px rgba(0,0,0,0.4),0 2px 4px -1px rgba(0,0,0,0.3);--ep-shadow-lg:0 10px 15px -3px rgba(0,0,0,0.4),0 4px 6px -2px rgba(0,0,0,0.3);--ep-shadow-xl:0 20px 25px -5px rgba(0,0,0,0.4),0 10px 10px -5px rgba(0,0,0,0.3)}@media (prefers-contrast:high){:host{--ep-border-primary:var(--ep-gray-400);--ep-border-secondary:var(--ep-gray-500)}:host([data-theme=\"dark\"]){--ep-border-primary:var(--ep-gray-500);--ep-border-secondary:var(--ep-gray-400)}}@media (prefers-reduced-motion:reduce){:host{--ep-transition-fast:0ms;--ep-transition-normal:0ms;--ep-transition-slow:0ms}}@media print{:host{--ep-bg-primary:white;--ep-bg-secondary:white;--ep-bg-tertiary:white;--ep-text-primary:black;--ep-text-secondary:black;--ep-text-tertiary:black;--ep-shadow-sm:none;--ep-shadow-md:none;--ep-shadow-lg:none;--ep-shadow-xl:none}}*{box-sizing:border-box;margin:0;padding:0}:host{font-family:var(--ep-font-family-sans);font-size:var(--ep-font-size-base);line-height:var(--ep-line-height-normal);color:var(--ep-text-primary);background-color:var(--ep-bg-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*:focus{outline:2px solid var(--ep-primary-500);outline-offset:2px}*:focus:not(:focus-visible){outline:none}.ep-container{max-width:1200px;margin:0 auto;padding:0 var(--ep-space-4)}.ep-card{background-color:var(--ep-bg-secondary);border:1px solid var(--ep-border-primary);border-radius:var(--ep-radius-lg);box-shadow:var(--ep-shadow-sm);padding:var(--ep-space-6)}.ep-card-header{margin-bottom:var(--ep-space-6)}.ep-card-body{margin-bottom:var(--ep-space-6)}.ep-card-footer{margin-top:var(--ep-space-6);padding-top:var(--ep-space-6);border-top:1px solid var(--ep-border-primary)}.ep-heading-1{font-size:var(--ep-font-size-3xl);font-weight:var(--ep-font-weight-bold);line-height:var(--ep-line-height-tight);color:var(--ep-text-primary);margin-bottom:var(--ep-space-4)}.ep-heading-2{font-size:var(--ep-font-size-2xl);font-weight:var(--ep-font-weight-semibold);line-height:var(--ep-line-height-tight);color:var(--ep-text-primary);margin-bottom:var(--ep-space-3)}.ep-heading-3{font-size:var(--ep-font-size-xl);font-weight:var(--ep-font-weight-semibold);line-height:var(--ep-line-height-snug);color:var(--ep-text-primary);margin-bottom:var(--ep-space-2)}.ep-text-body{font-size:var(--ep-font-size-base);line-height:var(--ep-line-height-relaxed);color:var(--ep-text-secondary);margin-bottom:var(--ep-space-4)}.ep-text-sm{font-size:var(--ep-font-size-sm);line-height:var(--ep-line-height-normal);color:var(--ep-text-tertiary)}.ep-text-center{text-align:center}.ep-text-left{text-align:left}.ep-text-right{text-align:right}.ep-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--ep-space-2);padding:var(--ep-space-3) var(--ep-space-6);border:1px solid transparent;border-radius:var(--ep-radius-md);font-family:var(--ep-font-family-sans);font-size:var(--ep-font-size-base);font-weight:var(--ep-font-weight-medium);line-height:var(--ep-line-height-tight);text-decoration:none;cursor:pointer;transition:all var(--ep-transition-fast);user-select:none;white-space:nowrap}.ep-btn:disabled{opacity:0.5;cursor:not-allowed}.ep-btn-primary{background-color:var(--ep-primary-600);color:white;border-color:var(--ep-primary-600)}.ep-btn-primary:hover:not(:disabled){background-color:var(--ep-primary-700);border-color:var(--ep-primary-700)}.ep-btn-primary:active:not(:disabled){background-color:var(--ep-primary-800);border-color:var(--ep-primary-800)}.ep-btn-secondary{background-color:var(--ep-bg-secondary);color:var(--ep-text-primary);border-color:var(--ep-border-secondary)}.ep-btn-secondary:hover:not(:disabled){background-color:var(--ep-bg-tertiary);border-color:var(--ep-border-secondary)}.ep-btn-ghost{background-color:transparent;color:var(--ep-text-secondary);border-color:transparent}.ep-btn-ghost:hover:not(:disabled){background-color:var(--ep-bg-tertiary);color:var(--ep-text-primary)}.ep-btn-sm{padding:var(--ep-space-2) var(--ep-space-4);font-size:var(--ep-font-size-sm)}.ep-btn-lg{padding:var(--ep-space-4) var(--ep-space-8);font-size:var(--ep-font-size-lg)}.ep-btn-full{width:100%}.ep-input{width:100%;padding:var(--ep-space-3);border:1px solid var(--ep-border-primary);border-radius:var(--ep-radius-md);font-family:var(--ep-font-family-sans);font-size:var(--ep-font-size-base);line-height:var(--ep-line-height-normal);color:var(--ep-text-primary);background-color:var(--ep-bg-secondary);transition:border-color var(--ep-transition-fast)}.ep-input:focus{border-color:var(--ep-primary-500);outline:none;box-shadow:0 0 0 3px rgba(14,165,233,0.1)}.ep-input::placeholder{color:var(--ep-text-tertiary)}.ep-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.ep-hidden{display:none}.ep-flex{display:flex}.ep-flex-col{flex-direction:column}.ep-items-center{align-items:center}.ep-justify-center{justify-content:center}.ep-justify-between{justify-content:space-between}.ep-gap-2{gap:var(--ep-space-2)}.ep-gap-4{gap:var(--ep-space-4)}.ep-gap-6{gap:var(--ep-space-6)}.ep-w-full{width:100%}.ep-h-full{height:100%}.ep-mb-4{margin-bottom:var(--ep-space-4)}.ep-mb-6{margin-bottom:var(--ep-space-6)}.ep-p-4{padding:var(--ep-space-4)}.ep-p-6{padding:var(--ep-space-6)}@media (max-width:768px){.ep-container{padding:0 var(--ep-space-3)}.ep-heading-1{font-size:var(--ep-font-size-2xl)}.ep-heading-2{font-size:var(--ep-font-size-xl)}.ep-card{padding:var(--ep-space-4)}.ep-btn{padding:var(--ep-space-4) var(--ep-space-6)}}@media (max-width:480px){.ep-container{padding:0 var(--ep-space-2)}.ep-heading-1{font-size:var(--ep-font-size-xl)}.ep-card{padding:var(--ep-space-3)}}";
2089
3062
 
2090
- const html$4 = "<div class=\"ep-fullscreen-paywall\" id=\"fullscreenPaywall\" role=\"dialog\" aria-labelledby=\"fullscreen-title\"><div class=\"ep-fullscreen-background\"><div class=\"ep-background-pattern\"></div></div><div class=\"ep-fullscreen-header\"><div class=\"ep-fullscreen-logo\"><svg width=\"40\" height=\"40\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 2L2 7l10 5 10-5-10-5z\"></path><path d=\"M2 17l10 5 10-5\"></path><path d=\"M2 12l10 5 10-5\"></path></svg><span class=\"ep-fullscreen-logo-text\">{{brandName}}</span></div><button class=\"ep-fullscreen-close\" aria-label=\"Close paywall\" data-ep-action=\"closeFullscreen\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg></button></div><div class=\"ep-fullscreen-content\"><div class=\"ep-fullscreen-container\"><div class=\"ep-fullscreen-hero\"><div class=\"ep-hero-icon\"><svg width=\"80\" height=\"80\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 2L2 7l10 5 10-5-10-5z\"></path><path d=\"M2 17l10 5 10-5\"></path><path d=\"M2 12l10 5 10-5\"></path></svg></div><h1 class=\"ep-heading-1\" id=\"fullscreen-title\">{{title}}</h1><p class=\"ep-hero-description\">{{description}}</p></div><div class=\"ep-fullscreen-features\"><div class=\"ep-features-grid\"><div class=\"ep-feature-card\"><div class=\"ep-feature-card-icon\"><svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 12h-4l-3 9L9 3l-3 9H2\"></path></svg></div><h3 class=\"ep-feature-card-title\">{{feature1Title}}</h3><p class=\"ep-feature-card-description\">{{feature1Description}}</p></div><div class=\"ep-feature-card\"><div class=\"ep-feature-card-icon\"><svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"></path></svg></div><h3 class=\"ep-feature-card-title\">{{feature2Title}}</h3><p class=\"ep-feature-card-description\">{{feature2Description}}</p></div><div class=\"ep-feature-card\"><div class=\"ep-feature-card-icon\"><svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M13 2L3 14h9l-1 8 10-12h-9l1-8z\"></path></svg></div><h3 class=\"ep-feature-card-title\">{{feature3Title}}</h3><p class=\"ep-feature-card-description\">{{feature3Description}}</p></div><div class=\"ep-feature-card\"><div class=\"ep-feature-card-icon\"><svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z\"></path><polyline points=\"7.5,4.21 12,6.81 16.5,4.21\"></polyline><polyline points=\"7.5,19.79 7.5,14.6 3,12\"></polyline><polyline points=\"21,12 16.5,14.6 16.5,19.79\"></polyline></svg></div><h3 class=\"ep-feature-card-title\">{{feature4Title}}</h3><p class=\"ep-feature-card-description\">{{feature4Description}}</p></div></div></div><div class=\"ep-fullscreen-pricing\"><div class=\"ep-pricing-header\"><h2 class=\"ep-heading-2\">Choose Your Plan</h2><p class=\"ep-pricing-subtitle\">{{pricingSubtitle}}</p></div><div class=\"ep-pricing-plans\"><div class=\"ep-pricing-plan\"><div class=\"ep-pricing-plan-header\"><h3 class=\"ep-pricing-plan-title\">Free</h3><div class=\"ep-pricing-plan-price\"><span class=\"ep-pricing-currency\">{{currency}}</span><span class=\"ep-pricing-amount\">0</span></div><p class=\"ep-pricing-plan-description\">{{freeDescription}}</p></div><ul class=\"ep-pricing-plan-features\"><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{freeFeature1}} </li><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{freeFeature2}} </li><li class=\"ep-pricing-feature ep-pricing-feature-disabled\"><svg class=\"ep-pricing-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg> {{freeFeature3}} </li></ul><button class=\"ep-btn ep-btn-secondary ep-btn-full\" data-ep-action=\"continueFree\"> {{continueButtonText}} </button></div><div class=\"ep-pricing-plan ep-pricing-plan-premium\"><div class=\"ep-pricing-plan-badge\">{{premiumBadge}}</div><div class=\"ep-pricing-plan-header\"><h3 class=\"ep-pricing-plan-title\">Premium</h3><div class=\"ep-pricing-plan-price\"><span class=\"ep-pricing-currency\">{{currency}}</span><span class=\"ep-pricing-amount\">{{price}}</span><span class=\"ep-pricing-period\">{{period}}</span></div><p class=\"ep-pricing-plan-description\">{{premiumDescription}}</p></div><ul class=\"ep-pricing-plan-features\"><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{premiumFeature1}} </li><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{premiumFeature2}} </li><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{premiumFeature3}} </li><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{premiumFeature4}} </li></ul><button class=\"ep-btn ep-btn-primary ep-btn-lg ep-btn-full\" data-ep-action=\"upgradeNow\"> {{upgradeButtonText}} </button></div></div></div><div class=\"ep-fullscreen-trial\"><div class=\"ep-trial-card\"><div class=\"ep-trial-icon\"><svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\"></path><polyline points=\"22,4 12,14.01 9,11.01\"></polyline></svg></div><h3 class=\"ep-trial-title\">{{trialTitle}}</h3><p class=\"ep-trial-description\">{{trialDescription}}</p><button class=\"ep-btn ep-btn-secondary ep-btn-lg\" data-ep-action=\"startTrial\"> {{trialButtonText}} </button></div></div></div></div></div>";
3063
+ const html$4 = "<div class=\"ep-fullscreen-paywall\" id=\"fullscreenPaywall\" role=\"dialog\" aria-labelledby=\"fullscreen-title\"><div class=\"ep-fullscreen-background\"><div class=\"ep-background-pattern\"></div></div><div class=\"ep-fullscreen-header\"><div class=\"ep-fullscreen-logo\"><svg width=\"40\" height=\"40\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 2L2 7l10 5 10-5-10-5z\"></path><path d=\"M2 17l10 5 10-5\"></path><path d=\"M2 12l10 5 10-5\"></path></svg><span class=\"ep-fullscreen-logo-text\">{{brandName}}</span></div><button class=\"ep-fullscreen-close\" aria-label=\"Close paywall\" data-ep-action=\"closeFullscreen\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg></button></div><div class=\"ep-fullscreen-content\"><div class=\"ep-fullscreen-container\"><div class=\"ep-fullscreen-hero\"><div class=\"ep-hero-icon\"><svg width=\"80\" height=\"80\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 2L2 7l10 5 10-5-10-5z\"></path><path d=\"M2 17l10 5 10-5\"></path><path d=\"M2 12l10 5 10-5\"></path></svg></div><h1 class=\"ep-heading-1\" id=\"fullscreen-title\">{{title}}</h1><p class=\"ep-hero-description\">{{description}}</p></div><div class=\"ep-fullscreen-features\"><div class=\"ep-features-grid\"><div class=\"ep-feature-card\"><div class=\"ep-feature-card-icon\"><svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 12h-4l-3 9L9 3l-3 9H2\"></path></svg></div><h3 class=\"ep-feature-card-title\">{{feature1Title}}</h3><p class=\"ep-feature-card-description\">{{feature1Description}}</p></div><div class=\"ep-feature-card\"><div class=\"ep-feature-card-icon\"><svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"></path></svg></div><h3 class=\"ep-feature-card-title\">{{feature2Title}}</h3><p class=\"ep-feature-card-description\">{{feature2Description}}</p></div><div class=\"ep-feature-card\"><div class=\"ep-feature-card-icon\"><svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M13 2L3 14h9l-1 8 10-12h-9l1-8z\"></path></svg></div><h3 class=\"ep-feature-card-title\">{{feature3Title}}</h3><p class=\"ep-feature-card-description\">{{feature3Description}}</p></div><div class=\"ep-feature-card\"><div class=\"ep-feature-card-icon\"><svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z\"></path><polyline points=\"7.5,4.21 12,6.81 16.5,4.21\"></polyline><polyline points=\"7.5,19.79 7.5,14.6 3,12\"></polyline><polyline points=\"21,12 16.5,14.6 16.5,19.79\"></polyline></svg></div><h3 class=\"ep-feature-card-title\">{{feature4Title}}</h3><p class=\"ep-feature-card-description\">{{feature4Description}}</p></div></div></div><div class=\"ep-fullscreen-pricing\"><div class=\"ep-pricing-header\"><h2 class=\"ep-heading-2\">{{plansHeading}}</h2><p class=\"ep-pricing-subtitle\">{{pricingSubtitle}}</p></div><div class=\"ep-pricing-plans\"><div class=\"ep-pricing-plan\"><div class=\"ep-pricing-plan-header\"><h3 class=\"ep-pricing-plan-title\">{{freePlanName}}</h3><div class=\"ep-pricing-plan-price\"><span class=\"ep-pricing-currency\">{{currency}}</span><span class=\"ep-pricing-amount\">0</span></div><p class=\"ep-pricing-plan-description\">{{freeDescription}}</p></div><ul class=\"ep-pricing-plan-features\"><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{freeFeature1}} </li><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{freeFeature2}} </li><li class=\"ep-pricing-feature ep-pricing-feature-disabled\"><svg class=\"ep-pricing-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg> {{freeFeature3}} </li></ul><button class=\"ep-btn ep-btn-secondary ep-btn-full\" data-ep-action=\"continueFree\"> {{continueButtonText}} </button></div><div class=\"ep-pricing-plan ep-pricing-plan-premium\"><div class=\"ep-pricing-plan-badge\">{{premiumBadge}}</div><div class=\"ep-pricing-plan-header\"><h3 class=\"ep-pricing-plan-title\">{{premiumPlanName}}</h3><div class=\"ep-pricing-plan-price\"><span class=\"ep-pricing-currency\">{{currency}}</span><span class=\"ep-pricing-amount\">{{price}}</span><span class=\"ep-pricing-period\">{{period}}</span></div><p class=\"ep-pricing-plan-description\">{{premiumDescription}}</p></div><ul class=\"ep-pricing-plan-features\"><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{premiumFeature1}} </li><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{premiumFeature2}} </li><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{premiumFeature3}} </li><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{premiumFeature4}} </li></ul><button class=\"ep-btn ep-btn-primary ep-btn-lg ep-btn-full\" data-ep-action=\"upgradeNow\"> {{upgradeButtonText}} </button></div></div></div><div class=\"ep-fullscreen-trial\"><div class=\"ep-trial-card\"><div class=\"ep-trial-icon\"><svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\"></path><polyline points=\"22,4 12,14.01 9,11.01\"></polyline></svg></div><h3 class=\"ep-trial-title\">{{trialTitle}}</h3><p class=\"ep-trial-description\">{{trialDescription}}</p><button class=\"ep-btn ep-btn-secondary ep-btn-lg\" data-ep-action=\"startTrial\"> {{trialButtonText}} </button></div></div></div></div></div>";
2091
3064
  const css$4 = ".ep-fullscreen-paywall{position:fixed;top:0;left:0;right:0;bottom:0;background-color:var(--ep-bg-primary);z-index:var(--ep-z-modal);display:flex;flex-direction:column;animation:ep-fullscreen-in var(--ep-transition-slow);overflow-y:auto}.ep-fullscreen-paywall.ep-fullscreen-closing{animation:ep-fullscreen-out var(--ep-transition-slow)}.ep-fullscreen-background{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:-1}.ep-background-pattern{position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:linear-gradient(45deg,transparent 30%,rgba(14,165,233,0.03) 50%,transparent 70%);background-size:60px 60px;animation:ep-background-pattern var(--ep-transition-slow) infinite linear}:host([data-theme=\"dark\"]) .ep-background-pattern{background:linear-gradient(45deg,transparent 30%,rgba(14,165,233,0.05) 50%,transparent 70%)}.ep-fullscreen-header{display:flex;justify-content:space-between;align-items:center;padding:var(--ep-space-6) var(--ep-space-8);border-bottom:1px solid var(--ep-border-primary);background-color:var(--ep-bg-secondary);backdrop-filter:blur(10px);z-index:1}.ep-fullscreen-logo{display:flex;align-items:center;gap:var(--ep-space-3);color:var(--ep-primary-600)}.ep-fullscreen-logo-text{font-size:var(--ep-font-size-xl);font-weight:var(--ep-font-weight-bold);color:var(--ep-text-primary)}.ep-fullscreen-close{background:none;border:none;color:var(--ep-text-tertiary);cursor:pointer;padding:var(--ep-space-2);border-radius:var(--ep-radius-md);transition:all var(--ep-transition-fast)}.ep-fullscreen-close:hover{color:var(--ep-text-primary);background-color:var(--ep-bg-tertiary)}.ep-fullscreen-content{flex:1;padding:var(--ep-space-8);display:flex;align-items:center;justify-content:center}.ep-fullscreen-container{max-width:1200px;width:100%;margin:0 auto}.ep-fullscreen-hero{text-align:center;margin-bottom:var(--ep-space-16)}.ep-hero-icon{width:120px;height:120px;margin:0 auto var(--ep-space-6);background:linear-gradient(135deg,var(--ep-primary-500),var(--ep-primary-600));border-radius:var(--ep-radius-2xl);display:flex;align-items:center;justify-content:center;color:white;box-shadow:var(--ep-shadow-lg);animation:ep-hero-icon-in var(--ep-transition-slow) 0.2s both}.ep-fullscreen-hero .ep-heading-1{font-size:var(--ep-font-size-5xl);margin-bottom:var(--ep-space-6);background:linear-gradient(135deg,var(--ep-primary-600),var(--ep-primary-700));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;animation:ep-hero-title-in var(--ep-transition-slow) 0.3s both}.ep-hero-description{font-size:var(--ep-font-size-xl);color:var(--ep-text-secondary);max-width:600px;margin:0 auto;line-height:var(--ep-line-height-relaxed);animation:ep-hero-description-in var(--ep-transition-slow) 0.4s both}.ep-fullscreen-features{margin-bottom:var(--ep-space-16)}.ep-features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:var(--ep-space-6)}.ep-feature-card{background-color:var(--ep-bg-secondary);border:1px solid var(--ep-border-primary);border-radius:var(--ep-radius-xl);padding:var(--ep-space-8);text-align:center;box-shadow:var(--ep-shadow-sm);transition:all var(--ep-transition-normal);opacity:0;transform:translateY(20px);animation:ep-feature-card-in var(--ep-transition-slow) both}.ep-feature-card:hover{transform:translateY(-4px);box-shadow:var(--ep-shadow-lg)}.ep-feature-card-icon{width:80px;height:80px;margin:0 auto var(--ep-space-4);background:linear-gradient(135deg,var(--ep-primary-500),var(--ep-primary-600));border-radius:var(--ep-radius-xl);display:flex;align-items:center;justify-content:center;color:white}.ep-feature-card-title{font-size:var(--ep-font-size-xl);font-weight:var(--ep-font-weight-semibold);color:var(--ep-text-primary);margin-bottom:var(--ep-space-3)}.ep-feature-card-description{color:var(--ep-text-secondary);line-height:var(--ep-line-height-relaxed);margin:0}.ep-fullscreen-pricing{margin-bottom:var(--ep-space-16)}.ep-pricing-header{text-align:center;margin-bottom:var(--ep-space-10)}.ep-pricing-header .ep-heading-2{font-size:var(--ep-font-size-4xl);margin-bottom:var(--ep-space-4)}.ep-pricing-subtitle{font-size:var(--ep-font-size-lg);color:var(--ep-text-secondary);margin:0}.ep-pricing-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:var(--ep-space-8);max-width:800px;margin:0 auto}.ep-pricing-plan{position:relative;background-color:var(--ep-bg-secondary);border:1px solid var(--ep-border-primary);border-radius:var(--ep-radius-xl);padding:var(--ep-space-8);box-shadow:var(--ep-shadow-md);transition:all var(--ep-transition-normal);opacity:0;transform:translateY(20px);animation:ep-pricing-plan-in var(--ep-transition-slow) both}.ep-pricing-plan:hover{transform:translateY(-4px);box-shadow:var(--ep-shadow-lg)}.ep-pricing-plan-premium{border-color:var(--ep-primary-300);box-shadow:var(--ep-shadow-xl);transform:scale(1.05)}.ep-pricing-plan-premium:hover{transform:scale(1.05) translateY(-4px)}.ep-pricing-plan-badge{position:absolute;top:-16px;left:50%;transform:translateX(-50%);background:linear-gradient(135deg,var(--ep-primary-500),var(--ep-primary-600));color:white;padding:var(--ep-space-2) var(--ep-space-6);border-radius:var(--ep-radius-full);font-size:var(--ep-font-size-sm);font-weight:var(--ep-font-weight-semibold);white-space:nowrap}.ep-pricing-plan-header{text-align:center;margin-bottom:var(--ep-space-8)}.ep-pricing-plan-title{font-size:var(--ep-font-size-2xl);font-weight:var(--ep-font-weight-bold);color:var(--ep-text-primary);margin-bottom:var(--ep-space-4)}.ep-pricing-plan-price{display:flex;align-items:baseline;justify-content:center;gap:var(--ep-space-2);margin-bottom:var(--ep-space-3)}.ep-pricing-currency{font-size:var(--ep-font-size-xl);font-weight:var(--ep-font-weight-medium);color:var(--ep-text-secondary)}.ep-pricing-amount{font-size:var(--ep-font-size-5xl);font-weight:var(--ep-font-weight-bold);color:var(--ep-text-primary)}.ep-pricing-period{font-size:var(--ep-font-size-xl);color:var(--ep-text-secondary)}.ep-pricing-plan-description{color:var(--ep-text-secondary);margin:0}.ep-pricing-plan-features{list-style:none;padding:0;margin:0 0 var(--ep-space-8) 0}.ep-pricing-feature{display:flex;align-items:center;gap:var(--ep-space-3);padding:var(--ep-space-3) 0;color:var(--ep-text-primary);font-size:var(--ep-font-size-base)}.ep-pricing-feature-disabled{color:var(--ep-text-tertiary)}.ep-pricing-feature-icon{color:var(--ep-success-500);flex-shrink:0}.ep-pricing-feature-disabled .ep-pricing-feature-icon{color:var(--ep-text-tertiary)}.ep-fullscreen-trial{text-align:center}.ep-trial-card{background:linear-gradient(135deg,var(--ep-success-50),var(--ep-success-100));border:1px solid var(--ep-success-200);border-radius:var(--ep-radius-xl);padding:var(--ep-space-8);max-width:600px;margin:0 auto;box-shadow:var(--ep-shadow-md)}:host([data-theme=\"dark\"]) .ep-trial-card{background:linear-gradient(135deg,rgba(16,185,129,0.1),rgba(16,185,129,0.15));border-color:rgba(16,185,129,0.3)}.ep-trial-icon{width:80px;height:80px;margin:0 auto var(--ep-space-4);background:linear-gradient(135deg,var(--ep-success-500),var(--ep-success-600));border-radius:var(--ep-radius-xl);display:flex;align-items:center;justify-content:center;color:white}.ep-trial-title{font-size:var(--ep-font-size-2xl);font-weight:var(--ep-font-weight-bold);color:var(--ep-success-700);margin-bottom:var(--ep-space-3)}:host([data-theme=\"dark\"]) .ep-trial-title{color:var(--ep-success-400)}.ep-trial-description{color:var(--ep-success-600);font-size:var(--ep-font-size-lg);line-height:var(--ep-line-height-relaxed);margin-bottom:var(--ep-space-6)}:host([data-theme=\"dark\"]) .ep-trial-description{color:var(--ep-success-300)}.ep-theme-toggle{position:fixed;top:var(--ep-space-4);right:var(--ep-space-4);z-index:var(--ep-z-tooltip)}@keyframes ep-fullscreen-in{from{opacity:0;transform:scale(0.98)}to{opacity:1;transform:scale(1)}}@keyframes ep-fullscreen-out{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0.98)}}@keyframes ep-background-pattern{from{transform:translateX(0) translateY(0)}to{transform:translateX(-60px) translateY(-60px)}}@keyframes ep-hero-icon-in{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:scale(1)}}@keyframes ep-hero-title-in{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes ep-hero-description-in{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes ep-feature-card-in{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes ep-pricing-plan-in{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (max-width:1024px){.ep-fullscreen-content{padding:var(--ep-space-6)}.ep-fullscreen-hero{margin-bottom:var(--ep-space-12)}.ep-fullscreen-features{margin-bottom:var(--ep-space-12)}.ep-fullscreen-pricing{margin-bottom:var(--ep-space-12)}.ep-features-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:var(--ep-space-4)}.ep-pricing-plans{gap:var(--ep-space-6)}}@media (max-width:768px){.ep-fullscreen-header{padding:var(--ep-space-4) var(--ep-space-6)}.ep-fullscreen-content{padding:var(--ep-space-4)}.ep-fullscreen-hero .ep-heading-1{font-size:var(--ep-font-size-3xl)}.ep-hero-description{font-size:var(--ep-font-size-lg)}.ep-hero-icon{width:80px;height:80px}.ep-features-grid{grid-template-columns:1fr}.ep-pricing-plans{grid-template-columns:1fr}.ep-pricing-plan-premium{transform:none}.ep-pricing-plan-premium:hover{transform:translateY(-4px)}.ep-feature-card{padding:var(--ep-space-6)}.ep-feature-card-icon{width:60px;height:60px}.ep-pricing-plan{padding:var(--ep-space-6)}.ep-pricing-amount{font-size:var(--ep-font-size-4xl)}}@media (max-width:480px){.ep-fullscreen-header{padding:var(--ep-space-3) var(--ep-space-4)}.ep-fullscreen-logo-text{font-size:var(--ep-font-size-lg)}.ep-fullscreen-content{padding:var(--ep-space-3)}.ep-fullscreen-hero .ep-heading-1{font-size:var(--ep-font-size-2xl)}.ep-hero-description{font-size:var(--ep-font-size-base)}.ep-hero-icon{width:60px;height:60px}.ep-pricing-header .ep-heading-2{font-size:var(--ep-font-size-2xl)}.ep-pricing-amount{font-size:var(--ep-font-size-3xl)}.ep-feature-card-icon{width:48px;height:48px}.ep-trial-icon{width:60px;height:60px}}@media (prefers-contrast:high){.ep-fullscreen-paywall{background-color:var(--ep-bg-primary)}.ep-feature-card{border:2px solid var(--ep-border-secondary)}.ep-pricing-plan{border:2px solid var(--ep-border-secondary)}.ep-pricing-plan-premium{border:2px solid var(--ep-primary-500)}.ep-trial-card{border:2px solid var(--ep-success-500)}}@media (prefers-reduced-motion:reduce){.ep-fullscreen-paywall{animation:none}.ep-background-pattern{animation:none}.ep-hero-icon{animation:none}.ep-fullscreen-hero .ep-heading-1{animation:none}.ep-hero-description{animation:none}.ep-feature-card{animation:none;opacity:1;transform:none}.ep-pricing-plan{animation:none;opacity:1;transform:none}.ep-pricing-plan-premium{transform:none}.ep-feature-card:hover{transform:none}.ep-pricing-plan:hover{transform:none}}";
2092
3065
 
2093
- const html$3 = "<div class=\"ep-inline-paywall\" id=\"inlinePaywall\" role=\"region\" aria-labelledby=\"paywall-title\"><div class=\"ep-inline-header\"><div class=\"ep-inline-icon\"><svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9 12l2 2 4-4\"></path><path d=\"M21 12c-1 0-3-1-3-3s2-3 3-3 3 1 3 3-2 3-3 3\"></path><path d=\"M3 12c1 0 3-1 3-3s-2-3-3-3-3 1-3 3 2 3 3 3\"></path></svg></div><div class=\"ep-inline-header-content\"><h3 class=\"ep-heading-3\" id=\"paywall-title\">{{title}}</h3><p class=\"ep-text-body\">{{description}}</p></div></div><div class=\"ep-inline-content\"><div class=\"ep-inline-features\"><div class=\"ep-feature-grid\"><div class=\"ep-feature-card\"><div class=\"ep-feature-card-icon\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 12h-4l-3 9L9 3l-3 9H2\"></path></svg></div><h4 class=\"ep-feature-card-title\">{{feature1Title}}</h4><p class=\"ep-feature-card-description\">{{feature1Description}}</p></div><div class=\"ep-feature-card\"><div class=\"ep-feature-card-icon\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"></path></svg></div><h4 class=\"ep-feature-card-title\">{{feature2Title}}</h4><p class=\"ep-feature-card-description\">{{feature2Description}}</p></div><div class=\"ep-feature-card\"><div class=\"ep-feature-card-icon\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M13 2L3 14h9l-1 8 10-12h-9l1-8z\"></path></svg></div><h4 class=\"ep-feature-card-title\">{{feature3Title}}</h4><p class=\"ep-feature-card-description\">{{feature3Description}}</p></div></div></div><div class=\"ep-inline-pricing\"><div class=\"ep-pricing-comparison\"><div class=\"ep-pricing-plan\"><div class=\"ep-pricing-plan-header\"><h4 class=\"ep-pricing-plan-title\">Free</h4><div class=\"ep-pricing-plan-price\"><span class=\"ep-pricing-currency\">{{currency}}</span><span class=\"ep-pricing-amount\">0</span></div></div><ul class=\"ep-pricing-plan-features\"><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{freeFeature1}} </li><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{freeFeature2}} </li><li class=\"ep-pricing-feature ep-pricing-feature-disabled\"><svg class=\"ep-pricing-feature-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg> {{freeFeature3}} </li></ul></div><div class=\"ep-pricing-plan ep-pricing-plan-premium\"><div class=\"ep-pricing-plan-badge\">Most Popular</div><div class=\"ep-pricing-plan-header\"><h4 class=\"ep-pricing-plan-title\">Premium</h4><div class=\"ep-pricing-plan-price\"><span class=\"ep-pricing-currency\">{{currency}}</span><span class=\"ep-pricing-amount\">{{price}}</span><span class=\"ep-pricing-period\">{{period}}</span></div></div><ul class=\"ep-pricing-plan-features\"><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{premiumFeature1}} </li><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{premiumFeature2}} </li><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{premiumFeature3}} </li></ul><button class=\"ep-btn ep-btn-primary ep-btn-full\" data-ep-action=\"upgradeNow\"> {{upgradeButtonText}} </button></div></div></div><div class=\"ep-inline-trial\"><div class=\"ep-trial-content\"><p class=\"ep-trial-text\">{{trialText}}</p><div class=\"ep-trial-actions\"><button class=\"ep-btn ep-btn-secondary\" data-ep-action=\"startTrial\"> {{trialButtonText}} </button><button class=\"ep-btn ep-btn-ghost ep-btn-sm\" data-ep-action=\"dismissPaywall\"> {{dismissButtonText}} </button></div></div></div></div></div>";
3066
+ const html$3 = "<div class=\"ep-inline-paywall\" id=\"inlinePaywall\" role=\"region\" aria-labelledby=\"paywall-title\"><div class=\"ep-inline-header\"><div class=\"ep-inline-icon\"><svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9 12l2 2 4-4\"></path><path d=\"M21 12c-1 0-3-1-3-3s2-3 3-3 3 1 3 3-2 3-3 3\"></path><path d=\"M3 12c1 0 3-1 3-3s-2-3-3-3-3 1-3 3 2 3 3 3\"></path></svg></div><div class=\"ep-inline-header-content\"><h3 class=\"ep-heading-3\" id=\"paywall-title\">{{title}}</h3><p class=\"ep-text-body\">{{description}}</p></div></div><div class=\"ep-inline-content\"><div class=\"ep-inline-features\"><div class=\"ep-feature-grid\"><div class=\"ep-feature-card\"><div class=\"ep-feature-card-icon\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 12h-4l-3 9L9 3l-3 9H2\"></path></svg></div><h4 class=\"ep-feature-card-title\">{{feature1Title}}</h4><p class=\"ep-feature-card-description\">{{feature1Description}}</p></div><div class=\"ep-feature-card\"><div class=\"ep-feature-card-icon\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"></path></svg></div><h4 class=\"ep-feature-card-title\">{{feature2Title}}</h4><p class=\"ep-feature-card-description\">{{feature2Description}}</p></div><div class=\"ep-feature-card\"><div class=\"ep-feature-card-icon\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M13 2L3 14h9l-1 8 10-12h-9l1-8z\"></path></svg></div><h4 class=\"ep-feature-card-title\">{{feature3Title}}</h4><p class=\"ep-feature-card-description\">{{feature3Description}}</p></div></div></div><div class=\"ep-inline-pricing\"><div class=\"ep-pricing-comparison\"><div class=\"ep-pricing-plan\"><div class=\"ep-pricing-plan-header\"><h4 class=\"ep-pricing-plan-title\">{{freePlanName}}</h4><div class=\"ep-pricing-plan-price\"><span class=\"ep-pricing-currency\">{{currency}}</span><span class=\"ep-pricing-amount\">0</span></div></div><ul class=\"ep-pricing-plan-features\"><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{freeFeature1}} </li><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{freeFeature2}} </li><li class=\"ep-pricing-feature ep-pricing-feature-disabled\"><svg class=\"ep-pricing-feature-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg> {{freeFeature3}} </li></ul></div><div class=\"ep-pricing-plan ep-pricing-plan-premium\"><div class=\"ep-pricing-plan-badge\">{{popularBadge}}</div><div class=\"ep-pricing-plan-header\"><h4 class=\"ep-pricing-plan-title\">{{premiumPlanName}}</h4><div class=\"ep-pricing-plan-price\"><span class=\"ep-pricing-currency\">{{currency}}</span><span class=\"ep-pricing-amount\">{{price}}</span><span class=\"ep-pricing-period\">{{period}}</span></div></div><ul class=\"ep-pricing-plan-features\"><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{premiumFeature1}} </li><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{premiumFeature2}} </li><li class=\"ep-pricing-feature\"><svg class=\"ep-pricing-feature-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg> {{premiumFeature3}} </li></ul><button class=\"ep-btn ep-btn-primary ep-btn-full\" data-ep-action=\"upgradeNow\"> {{upgradeButtonText}} </button></div></div></div><div class=\"ep-inline-trial\"><div class=\"ep-trial-content\"><p class=\"ep-trial-text\">{{trialText}}</p><div class=\"ep-trial-actions\"><button class=\"ep-btn ep-btn-secondary\" data-ep-action=\"startTrial\"> {{trialButtonText}} </button><button class=\"ep-btn ep-btn-ghost ep-btn-sm\" data-ep-action=\"dismissPaywall\"> {{dismissButtonText}} </button></div></div></div></div></div>";
2094
3067
  const css$3 = ".ep-inline-paywall{max-width:800px;margin:0 auto;background-color:var(--ep-bg-secondary);border:1px solid var(--ep-border-primary);border-radius:var(--ep-radius-lg);box-shadow:var(--ep-shadow-md);overflow:hidden;opacity:0;transform:translateY(20px);transition:all var(--ep-transition-slow)}.ep-inline-paywall.ep-inline-visible{opacity:1;transform:translateY(0)}.ep-inline-paywall.ep-inline-dismissing{opacity:0;transform:translateY(-20px);transition:all var(--ep-transition-normal)}.ep-inline-header{display:flex;align-items:center;gap:var(--ep-space-4);padding:var(--ep-space-6);background:linear-gradient(135deg,var(--ep-primary-50),var(--ep-primary-100));border-bottom:1px solid var(--ep-border-primary)}:host([data-theme=\"dark\"]) .ep-inline-header{background:linear-gradient(135deg,var(--ep-primary-900),var(--ep-primary-800))}.ep-inline-icon{width:64px;height:64px;background:linear-gradient(135deg,var(--ep-primary-500),var(--ep-primary-600));border-radius:var(--ep-radius-xl);display:flex;align-items:center;justify-content:center;color:white;flex-shrink:0}.ep-inline-header-content{flex:1;min-width:0}.ep-inline-header-content .ep-heading-3{margin-bottom:var(--ep-space-2);color:var(--ep-text-primary)}.ep-inline-header-content .ep-text-body{margin-bottom:0;color:var(--ep-text-secondary)}.ep-inline-content{padding:var(--ep-space-8)}.ep-inline-features{margin-bottom:var(--ep-space-8)}.ep-feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:var(--ep-space-4)}.ep-feature-card{background-color:var(--ep-bg-tertiary);border:1px solid var(--ep-border-primary);border-radius:var(--ep-radius-md);padding:var(--ep-space-4);text-align:center;transition:all var(--ep-transition-normal);opacity:0;transform:translateY(10px);animation:ep-feature-card-in var(--ep-transition-slow) forwards}.ep-feature-card:hover{transform:translateY(-2px);box-shadow:var(--ep-shadow-md)}.ep-feature-card-icon{width:48px;height:48px;margin:0 auto var(--ep-space-3);background:linear-gradient(135deg,var(--ep-primary-500),var(--ep-primary-600));border-radius:var(--ep-radius-lg);display:flex;align-items:center;justify-content:center;color:white}.ep-feature-card-title{font-size:var(--ep-font-size-lg);font-weight:var(--ep-font-weight-semibold);color:var(--ep-text-primary);margin-bottom:var(--ep-space-2)}.ep-feature-card-description{color:var(--ep-text-secondary);font-size:var(--ep-font-size-sm);line-height:var(--ep-line-height-relaxed);margin:0}.ep-inline-pricing{margin-bottom:var(--ep-space-8)}.ep-pricing-comparison{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:var(--ep-space-4);max-width:600px;margin:0 auto}.ep-pricing-plan{position:relative;background-color:var(--ep-bg-secondary);border:1px solid var(--ep-border-primary);border-radius:var(--ep-radius-lg);padding:var(--ep-space-6);transition:all var(--ep-transition-normal)}.ep-pricing-plan:hover{transform:translateY(-2px);box-shadow:var(--ep-shadow-md)}.ep-pricing-plan-premium{border-color:var(--ep-primary-300);box-shadow:var(--ep-shadow-lg)}.ep-pricing-plan-badge{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:linear-gradient(135deg,var(--ep-primary-500),var(--ep-primary-600));color:white;padding:var(--ep-space-1) var(--ep-space-4);border-radius:var(--ep-radius-full);font-size:var(--ep-font-size-sm);font-weight:var(--ep-font-weight-medium);white-space:nowrap}.ep-pricing-plan-header{text-align:center;margin-bottom:var(--ep-space-6)}.ep-pricing-plan-title{font-size:var(--ep-font-size-xl);font-weight:var(--ep-font-weight-semibold);color:var(--ep-text-primary);margin-bottom:var(--ep-space-3)}.ep-pricing-plan-price{display:flex;align-items:baseline;justify-content:center;gap:var(--ep-space-1)}.ep-pricing-currency{font-size:var(--ep-font-size-lg);font-weight:var(--ep-font-weight-medium);color:var(--ep-text-secondary)}.ep-pricing-amount{font-size:var(--ep-font-size-3xl);font-weight:var(--ep-font-weight-bold);color:var(--ep-text-primary)}.ep-pricing-period{font-size:var(--ep-font-size-lg);color:var(--ep-text-secondary)}.ep-pricing-plan-features{list-style:none;padding:0;margin:0 0 var(--ep-space-6) 0}.ep-pricing-feature{display:flex;align-items:center;gap:var(--ep-space-3);padding:var(--ep-space-2) 0;color:var(--ep-text-primary);font-size:var(--ep-font-size-sm)}.ep-pricing-feature-disabled{color:var(--ep-text-tertiary)}.ep-pricing-feature-icon{color:var(--ep-success-500);flex-shrink:0}.ep-pricing-feature-disabled .ep-pricing-feature-icon{color:var(--ep-text-tertiary)}.ep-inline-trial{background:linear-gradient(135deg,var(--ep-gray-50),var(--ep-gray-100));border:1px solid var(--ep-border-primary);border-radius:var(--ep-radius-md);padding:var(--ep-space-6);text-align:center}:host([data-theme=\"dark\"]) .ep-inline-trial{background:linear-gradient(135deg,var(--ep-gray-800),var(--ep-gray-700))}.ep-trial-content{max-width:400px;margin:0 auto}.ep-trial-text{color:var(--ep-text-primary);font-size:var(--ep-font-size-lg);font-weight:var(--ep-font-weight-medium);margin-bottom:var(--ep-space-6)}.ep-trial-actions{display:flex;flex-direction:column;gap:var(--ep-space-3);align-items:center}.ep-theme-toggle{position:fixed;top:var(--ep-space-4);right:var(--ep-space-4);z-index:var(--ep-z-tooltip)}@keyframes ep-feature-card-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media (max-width:768px){.ep-inline-paywall{margin:var(--ep-space-4)}.ep-inline-header{flex-direction:column;text-align:center;gap:var(--ep-space-3)}.ep-inline-content{padding:var(--ep-space-6)}.ep-feature-grid{grid-template-columns:1fr}.ep-pricing-comparison{grid-template-columns:1fr}.ep-pricing-plan{padding:var(--ep-space-4)}.ep-trial-actions{flex-direction:column;width:100%}.ep-trial-actions .ep-btn{width:100%}}@media (max-width:640px){.ep-inline-paywall{margin:var(--ep-space-2);border-radius:var(--ep-radius-md)}.ep-inline-header{padding:var(--ep-space-4)}.ep-inline-content{padding:var(--ep-space-4)}.ep-inline-icon{width:48px;height:48px}.ep-feature-card-icon{width:40px;height:40px}.ep-pricing-plan{padding:var(--ep-space-3)}.ep-pricing-amount{font-size:var(--ep-font-size-2xl)}}@media (prefers-contrast:high){.ep-inline-paywall{border:2px solid var(--ep-border-secondary)}.ep-feature-card{border:2px solid var(--ep-border-secondary)}.ep-pricing-plan{border:2px solid var(--ep-border-secondary)}.ep-pricing-plan-premium{border:2px solid var(--ep-primary-500)}}@media (prefers-reduced-motion:reduce){.ep-inline-paywall{transition:none;opacity:1;transform:none}.ep-feature-card{transition:none;animation:none;opacity:1;transform:none}.ep-feature-card:hover{transform:none}.ep-pricing-plan:hover{transform:none}}";
2095
3068
 
2096
3069
  const html$2 = "<div class=\"ep-minimal-paywall\" id=\"minimalPaywall\" role=\"dialog\" aria-labelledby=\"minimal-title\"><button class=\"ep-minimal-close\" aria-label=\"Close paywall\" data-ep-action=\"closeMinimal\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg></button><div class=\"ep-minimal-content\"><div class=\"ep-minimal-header\"><div class=\"ep-minimal-icon\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9 12l2 2 4-4\"></path><path d=\"M21 12c-1 0-3-1-3-3s2-3 3-3 3 1 3 3-2 3-3 3\"></path><path d=\"M3 12c1 0 3-1 3-3s-2-3-3-3-3 1-3 3 2 3 3 3\"></path></svg></div><h3 class=\"ep-minimal-title\" id=\"minimal-title\">{{title}}</h3><p class=\"ep-minimal-description\">{{description}}</p></div><div class=\"ep-minimal-pricing\"><div class=\"ep-minimal-price\"><span class=\"ep-minimal-currency\">{{currency}}</span><span class=\"ep-minimal-amount\">{{price}}</span><span class=\"ep-minimal-period\">{{period}}</span></div><p class=\"ep-minimal-price-description\">{{priceDescription}}</p></div><div class=\"ep-minimal-features\"><ul class=\"ep-minimal-feature-list\"><li class=\"ep-minimal-feature\"><svg class=\"ep-minimal-feature-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg><span>{{feature1}}</span></li><li class=\"ep-minimal-feature\"><svg class=\"ep-minimal-feature-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg><span>{{feature2}}</span></li><li class=\"ep-minimal-feature\"><svg class=\"ep-minimal-feature-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg><span>{{feature3}}</span></li></ul></div><div class=\"ep-minimal-actions\"><button class=\"ep-btn ep-btn-primary ep-btn-full\" data-ep-action=\"upgradeNow\"> {{upgradeButtonText}} </button><button class=\"ep-btn ep-btn-ghost ep-btn-sm\" data-ep-action=\"closeMinimal\"> {{dismissButtonText}} </button></div><div class=\"ep-minimal-trial\"><p class=\"ep-minimal-trial-text\">{{trialText}}</p></div></div></div><div class=\"ep-minimal-backdrop\" id=\"minimalBackdrop\"></div>";
2097
3070
  const css$2 = ".ep-minimal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.4);z-index:var(--ep-z-backdrop);opacity:0;visibility:hidden;transition:all var(--ep-transition-fast)}.ep-minimal-backdrop.ep-minimal-backdrop-visible{opacity:1;visibility:visible}.ep-minimal-paywall{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%) scale(0.95);background-color:var(--ep-bg-secondary);border:1px solid var(--ep-border-primary);border-radius:var(--ep-radius-lg);box-shadow:var(--ep-shadow-xl);z-index:var(--ep-z-modal);max-width:400px;width:90vw;max-height:90vh;overflow-y:auto;opacity:0;visibility:hidden;transition:all var(--ep-transition-fast)}.ep-minimal-paywall.ep-minimal-visible{opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1)}.ep-minimal-close{position:absolute;top:var(--ep-space-3);right:var(--ep-space-3);background:none;border:none;color:var(--ep-text-tertiary);cursor:pointer;padding:var(--ep-space-2);border-radius:var(--ep-radius-sm);transition:all var(--ep-transition-fast);z-index:1}.ep-minimal-close:hover{color:var(--ep-text-primary);background-color:var(--ep-bg-tertiary)}.ep-minimal-content{padding:var(--ep-space-6);padding-top:var(--ep-space-8)}.ep-minimal-header{text-align:center;margin-bottom:var(--ep-space-6)}.ep-minimal-icon{width:48px;height:48px;margin:0 auto var(--ep-space-3);background:linear-gradient(135deg,var(--ep-primary-500),var(--ep-primary-600));border-radius:var(--ep-radius-lg);display:flex;align-items:center;justify-content:center;color:white}.ep-minimal-title{font-size:var(--ep-font-size-xl);font-weight:var(--ep-font-weight-semibold);color:var(--ep-text-primary);margin-bottom:var(--ep-space-2)}.ep-minimal-description{color:var(--ep-text-secondary);font-size:var(--ep-font-size-sm);line-height:var(--ep-line-height-relaxed);margin:0}.ep-minimal-pricing{text-align:center;margin-bottom:var(--ep-space-6);padding:var(--ep-space-4);background:linear-gradient(135deg,var(--ep-primary-50),var(--ep-primary-100));border:1px solid var(--ep-primary-200);border-radius:var(--ep-radius-md)}:host([data-theme=\"dark\"]) .ep-minimal-pricing{background:linear-gradient(135deg,var(--ep-primary-900),var(--ep-primary-800));border-color:var(--ep-primary-700)}.ep-minimal-price{display:flex;align-items:baseline;justify-content:center;gap:var(--ep-space-1);margin-bottom:var(--ep-space-2)}.ep-minimal-currency{font-size:var(--ep-font-size-base);font-weight:var(--ep-font-weight-medium);color:var(--ep-text-secondary)}.ep-minimal-amount{font-size:var(--ep-font-size-2xl);font-weight:var(--ep-font-weight-bold);color:var(--ep-text-primary)}.ep-minimal-period{font-size:var(--ep-font-size-base);color:var(--ep-text-secondary)}.ep-minimal-price-description{color:var(--ep-text-secondary);font-size:var(--ep-font-size-xs);margin:0}.ep-minimal-features{margin-bottom:var(--ep-space-6)}.ep-minimal-feature-list{list-style:none;padding:0;margin:0}.ep-minimal-feature{display:flex;align-items:center;gap:var(--ep-space-2);padding:var(--ep-space-2) 0;color:var(--ep-text-primary);font-size:var(--ep-font-size-sm);border-bottom:1px solid var(--ep-border-primary)}.ep-minimal-feature:last-child{border-bottom:none}.ep-minimal-feature-icon{color:var(--ep-success-500);flex-shrink:0}.ep-minimal-feature span{font-weight:var(--ep-font-weight-medium)}.ep-minimal-actions{display:flex;flex-direction:column;gap:var(--ep-space-2);margin-bottom:var(--ep-space-4)}.ep-minimal-trial{text-align:center;padding-top:var(--ep-space-4);border-top:1px solid var(--ep-border-primary)}.ep-minimal-trial-text{color:var(--ep-text-tertiary);font-size:var(--ep-font-size-xs);margin:0}.ep-theme-toggle{position:fixed;top:var(--ep-space-4);left:var(--ep-space-4);z-index:var(--ep-z-tooltip);display:flex;flex-direction:column;gap:var(--ep-space-2)}@media (max-width:480px){.ep-minimal-paywall{width:95vw;max-width:none}.ep-minimal-content{padding:var(--ep-space-4);padding-top:var(--ep-space-6)}.ep-minimal-close{top:var(--ep-space-2);right:var(--ep-space-2)}.ep-minimal-icon{width:40px;height:40px}.ep-minimal-title{font-size:var(--ep-font-size-lg)}.ep-minimal-amount{font-size:var(--ep-font-size-xl)}.ep-minimal-pricing{padding:var(--ep-space-3)}}@media (prefers-contrast:high){.ep-minimal-paywall{border:2px solid var(--ep-border-secondary)}.ep-minimal-pricing{border:2px solid var(--ep-primary-500)}.ep-minimal-backdrop{background-color:rgba(0,0,0,0.8)}}@media (prefers-reduced-motion:reduce){.ep-minimal-backdrop{transition:none}.ep-minimal-paywall{transition:none;transform:translate(-50%,-50%)}.ep-minimal-paywall.ep-minimal-visible{transform:translate(-50%,-50%)}}@media print{.ep-minimal-backdrop{display:none}.ep-minimal-paywall{position:static;transform:none;box-shadow:none;border:1px solid black;opacity:1;visibility:visible}.ep-minimal-close{display:none}}.ep-minimal-paywall *:focus{outline:2px solid var(--ep-primary-500);outline-offset:2px}.ep-minimal-paywall *:focus:not(:focus-visible){outline:none}.ep-minimal-paywall{animation:ep-minimal-entrance var(--ep-transition-normal) ease-out}@keyframes ep-minimal-entrance{from{opacity:0;transform:translate(-50%,-50%) scale(0.9)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.ep-minimal-feature:hover{background-color:var(--ep-bg-tertiary);border-radius:var(--ep-radius-sm);margin:0 calc(-1 * var(--ep-space-2));padding:var(--ep-space-2)}.ep-minimal-pricing:hover{background:linear-gradient(135deg,var(--ep-primary-100),var(--ep-primary-200));border-color:var(--ep-primary-300)}:host([data-theme=\"dark\"]) .ep-minimal-pricing:hover{background:linear-gradient(135deg,var(--ep-primary-800),var(--ep-primary-700));border-color:var(--ep-primary-600)}";
2098
3071
 
2099
- const html$1 = "<div class=\"ep-modal-backdrop\" id=\"paywallModal\" role=\"dialog\" aria-labelledby=\"paywall-title\" aria-describedby=\"paywall-description\"><div class=\"ep-modal-container\"><button class=\"ep-modal-close\" aria-label=\"Close paywall\" data-ep-action=\"closePaywall\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg></button><div class=\"ep-modal-content\"><div class=\"ep-modal-header\"><div class=\"ep-modal-icon\"><svg width=\"48\" height=\"48\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"11\" width=\"18\" height=\"11\" rx=\"2\" ry=\"2\"></rect><path d=\"m7 11V7a5 5 0 0 1 10 0v4\"></path></svg></div><h2 class=\"ep-heading-2\" id=\"paywall-title\">{{title}}</h2><p class=\"ep-text-body\" id=\"paywall-description\">{{description}}</p></div><div class=\"ep-modal-features\"><h3 class=\"ep-heading-3\">Premium Features</h3><ul class=\"ep-feature-list\"><li class=\"ep-feature-item\"><svg class=\"ep-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg><span>{{feature1}}</span></li><li class=\"ep-feature-item\"><svg class=\"ep-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg><span>{{feature2}}</span></li><li class=\"ep-feature-item\"><svg class=\"ep-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg><span>{{feature3}}</span></li></ul></div><div class=\"ep-modal-pricing\"><div class=\"ep-pricing-card\"><div class=\"ep-pricing-header\"><div class=\"ep-pricing-price\"><span class=\"ep-pricing-currency\">{{currency}}</span><span class=\"ep-pricing-amount\">{{price}}</span><span class=\"ep-pricing-period\">{{period}}</span></div><p class=\"ep-pricing-description\">{{pricingDescription}}</p></div><div class=\"ep-trial-info\"><p class=\"ep-text-sm\">{{trialInfo}}</p></div></div></div><div class=\"ep-modal-actions\"><button class=\"ep-btn ep-btn-primary ep-btn-lg ep-btn-full\" data-ep-action=\"upgradeNow\"> {{upgradeButtonText}} </button><button class=\"ep-btn ep-btn-ghost ep-btn-sm\" data-ep-action=\"closePaywall\"> {{cancelButtonText}} </button></div><div class=\"ep-modal-footer\"><p class=\"ep-text-sm\">{{footerText}}</p></div></div></div></div>";
3072
+ const html$1 = "<div class=\"ep-modal-backdrop\" id=\"paywallModal\" role=\"dialog\" aria-labelledby=\"paywall-title\" aria-describedby=\"paywall-description\"><div class=\"ep-modal-container\"><button class=\"ep-modal-close\" aria-label=\"Close paywall\" data-ep-action=\"closePaywall\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg></button><div class=\"ep-modal-content\"><div class=\"ep-modal-header\"><div class=\"ep-modal-icon\"><svg width=\"48\" height=\"48\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"11\" width=\"18\" height=\"11\" rx=\"2\" ry=\"2\"></rect><path d=\"m7 11V7a5 5 0 0 1 10 0v4\"></path></svg></div><h2 class=\"ep-heading-2\" id=\"paywall-title\">{{title}}</h2><p class=\"ep-text-body\" id=\"paywall-description\">{{description}}</p></div><div class=\"ep-modal-features\"><h3 class=\"ep-heading-3\">{{featuresHeading}}</h3><ul class=\"ep-feature-list\"><li class=\"ep-feature-item\"><svg class=\"ep-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg><span>{{feature1}}</span></li><li class=\"ep-feature-item\"><svg class=\"ep-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg><span>{{feature2}}</span></li><li class=\"ep-feature-item\"><svg class=\"ep-feature-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"20,6 9,17 4,12\"></polyline></svg><span>{{feature3}}</span></li></ul></div><div class=\"ep-modal-pricing\"><div class=\"ep-pricing-card\"><div class=\"ep-pricing-header\"><div class=\"ep-pricing-price\"><span class=\"ep-pricing-currency\">{{currency}}</span><span class=\"ep-pricing-amount\">{{price}}</span><span class=\"ep-pricing-period\">{{period}}</span></div><p class=\"ep-pricing-description\">{{pricingDescription}}</p></div><div class=\"ep-trial-info\"><p class=\"ep-text-sm\">{{trialInfo}}</p></div></div></div><div class=\"ep-modal-actions\"><button class=\"ep-btn ep-btn-primary ep-btn-lg ep-btn-full\" data-ep-action=\"upgradeNow\"> {{upgradeButtonText}} </button><button class=\"ep-btn ep-btn-ghost ep-btn-sm\" data-ep-action=\"closePaywall\"> {{cancelButtonText}} </button></div><div class=\"ep-modal-footer\"><p class=\"ep-text-sm\">{{footerText}}</p></div></div></div></div>";
2100
3073
  const css$1 = ".ep-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.75);backdrop-filter:blur(4px);z-index:var(--ep-z-modal);display:flex;align-items:center;justify-content:center;padding:var(--ep-space-4);animation:ep-modal-backdrop-in var(--ep-transition-normal)}.ep-modal-backdrop.ep-modal-closing{animation:ep-modal-backdrop-out var(--ep-transition-normal)}.ep-modal-container{position:relative;background-color:var(--ep-bg-secondary);border-radius:var(--ep-radius-xl);box-shadow:var(--ep-shadow-xl);max-width:480px;width:100%;max-height:90vh;overflow-y:auto;animation:ep-modal-container-in var(--ep-transition-normal)}.ep-modal-backdrop.ep-modal-closing .ep-modal-container{animation:ep-modal-container-out var(--ep-transition-normal)}.ep-modal-close{position:absolute;top:var(--ep-space-4);right:var(--ep-space-4);background:none;border:none;color:var(--ep-text-tertiary);cursor:pointer;padding:var(--ep-space-2);border-radius:var(--ep-radius-md);transition:all var(--ep-transition-fast);z-index:1}.ep-modal-close:hover{color:var(--ep-text-primary);background-color:var(--ep-bg-tertiary)}.ep-modal-close:focus{outline:2px solid var(--ep-primary-500);outline-offset:2px}.ep-modal-content{padding:var(--ep-space-8);padding-top:var(--ep-space-12)}.ep-modal-header{text-align:center;margin-bottom:var(--ep-space-8)}.ep-modal-icon{width:80px;height:80px;margin:0 auto var(--ep-space-4);background:linear-gradient(135deg,var(--ep-primary-500),var(--ep-primary-600));border-radius:var(--ep-radius-2xl);display:flex;align-items:center;justify-content:center;color:white}.ep-modal-header .ep-heading-2{margin-bottom:var(--ep-space-3)}.ep-modal-header .ep-text-body{margin-bottom:0;font-size:var(--ep-font-size-lg)}.ep-modal-features{margin-bottom:var(--ep-space-8)}.ep-modal-features .ep-heading-3{margin-bottom:var(--ep-space-4);text-align:center}.ep-feature-list{list-style:none;padding:0;margin:0}.ep-feature-item{display:flex;align-items:center;gap:var(--ep-space-3);padding:var(--ep-space-3) 0;border-bottom:1px solid var(--ep-border-primary)}.ep-feature-item:last-child{border-bottom:none}.ep-feature-icon{color:var(--ep-success-500);flex-shrink:0}.ep-feature-item span{color:var(--ep-text-primary);font-weight:var(--ep-font-weight-medium)}.ep-modal-pricing{margin-bottom:var(--ep-space-8)}.ep-pricing-card{background:linear-gradient(135deg,var(--ep-primary-50),var(--ep-primary-100));border:1px solid var(--ep-primary-200);border-radius:var(--ep-radius-lg);padding:var(--ep-space-6);text-align:center}:host([data-theme=\"dark\"]) .ep-pricing-card{background:linear-gradient(135deg,var(--ep-primary-900),var(--ep-primary-800));border-color:var(--ep-primary-700)}.ep-pricing-header{margin-bottom:var(--ep-space-4)}.ep-pricing-price{display:flex;align-items:baseline;justify-content:center;gap:var(--ep-space-1);margin-bottom:var(--ep-space-2)}.ep-pricing-currency{font-size:var(--ep-font-size-lg);font-weight:var(--ep-font-weight-medium);color:var(--ep-text-secondary)}.ep-pricing-amount{font-size:var(--ep-font-size-4xl);font-weight:var(--ep-font-weight-bold);color:var(--ep-text-primary)}.ep-pricing-period{font-size:var(--ep-font-size-lg);color:var(--ep-text-secondary)}.ep-pricing-description{color:var(--ep-text-secondary);margin:0}.ep-trial-info{background-color:var(--ep-success-50);border:1px solid var(--ep-success-200);border-radius:var(--ep-radius-md);padding:var(--ep-space-3);margin-top:var(--ep-space-4)}:host([data-theme=\"dark\"]) .ep-trial-info{background-color:rgba(16,185,129,0.1);border-color:rgba(16,185,129,0.3)}.ep-trial-info .ep-text-sm{color:var(--ep-success-700);margin:0;font-weight:var(--ep-font-weight-medium)}:host([data-theme=\"dark\"]) .ep-trial-info .ep-text-sm{color:var(--ep-success-400)}.ep-modal-actions{display:flex;flex-direction:column;gap:var(--ep-space-3);margin-bottom:var(--ep-space-6)}.ep-modal-footer{text-align:center;padding-top:var(--ep-space-6);border-top:1px solid var(--ep-border-primary)}.ep-modal-footer .ep-text-sm{margin:0}.ep-theme-toggle{position:fixed;top:var(--ep-space-4);left:var(--ep-space-4);z-index:var(--ep-z-tooltip)}@keyframes ep-modal-backdrop-in{from{opacity:0}to{opacity:1}}@keyframes ep-modal-backdrop-out{from{opacity:1}to{opacity:0}}@keyframes ep-modal-container-in{from{opacity:0;transform:scale(0.95) translateY(-10px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes ep-modal-container-out{from{opacity:1;transform:scale(1) translateY(0)}to{opacity:0;transform:scale(0.95) translateY(-10px)}}@media (max-width:640px){.ep-modal-backdrop{padding:var(--ep-space-2)}.ep-modal-container{max-width:100%;border-radius:var(--ep-radius-lg)}.ep-modal-content{padding:var(--ep-space-6);padding-top:var(--ep-space-10)}.ep-modal-icon{width:60px;height:60px}.ep-modal-header .ep-heading-2{font-size:var(--ep-font-size-xl)}.ep-pricing-amount{font-size:var(--ep-font-size-3xl)}}@media (max-width:480px){.ep-modal-content{padding:var(--ep-space-4);padding-top:var(--ep-space-8)}.ep-modal-close{top:var(--ep-space-3);right:var(--ep-space-3)}}@media (prefers-contrast:high){.ep-modal-backdrop{background-color:rgba(0,0,0,0.9);backdrop-filter:none}.ep-modal-container{border:2px solid var(--ep-border-secondary)}.ep-pricing-card{background:var(--ep-bg-secondary);border:2px solid var(--ep-primary-500)}}@media (prefers-reduced-motion:reduce){.ep-modal-backdrop{animation:none}.ep-modal-container{animation:none}.ep-modal-backdrop.ep-modal-closing{animation:none}.ep-modal-backdrop.ep-modal-closing .ep-modal-container{animation:none}}";
2101
3074
 
2102
- const html = "<div class=\"ep-sidebar-backdrop\" id=\"sidebarBackdrop\"></div><div class=\"ep-sidebar-paywall\" id=\"sidebarPaywall\" role=\"dialog\" aria-labelledby=\"sidebar-title\" aria-describedby=\"sidebar-description\"><div class=\"ep-sidebar-header\"><button class=\"ep-sidebar-close\" aria-label=\"Close paywall\" data-ep-action=\"closeSidebar\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg></button><div class=\"ep-sidebar-logo\"><svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 2L2 7l10 5 10-5-10-5z\"></path><path d=\"M2 17l10 5 10-5\"></path><path d=\"M2 12l10 5 10-5\"></path></svg><span class=\"ep-sidebar-logo-text\">{{brandName}}</span></div></div><div class=\"ep-sidebar-content\"><div class=\"ep-sidebar-title-section\"><h2 class=\"ep-heading-2\" id=\"sidebar-title\">{{title}}</h2><p class=\"ep-text-body\" id=\"sidebar-description\">{{description}}</p></div><div class=\"ep-sidebar-progress\"><div class=\"ep-progress-header\"><span class=\"ep-progress-label\">{{progressLabel}}</span><span class=\"ep-progress-value\">{{usageCount}}/{{usageLimit}}</span></div><div class=\"ep-progress-bar\"><div class=\"ep-progress-fill\" style=\"width: {{progressPercentage}}%\"></div></div><p class=\"ep-progress-text\">{{progressText}}</p></div><div class=\"ep-sidebar-features\"><h3 class=\"ep-heading-3\">Unlock Premium Features</h3><div class=\"ep-feature-list\"><div class=\"ep-feature-item\"><div class=\"ep-feature-icon\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 2L2 7l10 5 10-5-10-5z\"></path><path d=\"M2 17l10 5 10-5\"></path><path d=\"M2 12l10 5 10-5\"></path></svg></div><div class=\"ep-feature-content\"><h4 class=\"ep-feature-title\">{{feature1Title}}</h4><p class=\"ep-feature-description\">{{feature1Description}}</p></div></div><div class=\"ep-feature-item\"><div class=\"ep-feature-icon\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 12h-4l-3 9L9 3l-3 9H2\"></path></svg></div><div class=\"ep-feature-content\"><h4 class=\"ep-feature-title\">{{feature2Title}}</h4><p class=\"ep-feature-description\">{{feature2Description}}</p></div></div><div class=\"ep-feature-item\"><div class=\"ep-feature-icon\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"></path></svg></div><div class=\"ep-feature-content\"><h4 class=\"ep-feature-title\">{{feature3Title}}</h4><p class=\"ep-feature-description\">{{feature3Description}}</p></div></div></div></div><div class=\"ep-sidebar-pricing\"><div class=\"ep-pricing-card\"><div class=\"ep-pricing-header\"><div class=\"ep-pricing-badge\">{{pricingBadge}}</div><div class=\"ep-pricing-price\"><span class=\"ep-pricing-currency\">{{currency}}</span><span class=\"ep-pricing-amount\">{{price}}</span><span class=\"ep-pricing-period\">{{period}}</span></div><p class=\"ep-pricing-description\">{{pricingDescription}}</p></div></div></div><div class=\"ep-sidebar-trial\"><div class=\"ep-trial-info\"><div class=\"ep-trial-icon\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\"></path><polyline points=\"22,4 12,14.01 9,11.01\"></polyline></svg></div><div class=\"ep-trial-content\"><h4 class=\"ep-trial-title\">{{trialTitle}}</h4><p class=\"ep-trial-description\">{{trialDescription}}</p></div></div></div></div><div class=\"ep-sidebar-footer\"><button class=\"ep-btn ep-btn-primary ep-btn-lg ep-btn-full\" data-ep-action=\"startUpgrade\"> {{upgradeButtonText}} </button><button class=\"ep-btn ep-btn-secondary ep-btn-full\" data-ep-action=\"startTrial\"> {{trialButtonText}} </button><button class=\"ep-btn ep-btn-ghost ep-btn-sm\" data-ep-action=\"remindLater\"> {{remindLaterText}} </button></div></div>";
3075
+ const html = "<div class=\"ep-sidebar-backdrop\" id=\"sidebarBackdrop\"></div><div class=\"ep-sidebar-paywall\" id=\"sidebarPaywall\" role=\"dialog\" aria-labelledby=\"sidebar-title\" aria-describedby=\"sidebar-description\"><div class=\"ep-sidebar-header\"><button class=\"ep-sidebar-close\" aria-label=\"Close paywall\" data-ep-action=\"closeSidebar\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg></button><div class=\"ep-sidebar-logo\"><svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 2L2 7l10 5 10-5-10-5z\"></path><path d=\"M2 17l10 5 10-5\"></path><path d=\"M2 12l10 5 10-5\"></path></svg><span class=\"ep-sidebar-logo-text\">{{brandName}}</span></div></div><div class=\"ep-sidebar-content\"><div class=\"ep-sidebar-title-section\"><h2 class=\"ep-heading-2\" id=\"sidebar-title\">{{title}}</h2><p class=\"ep-text-body\" id=\"sidebar-description\">{{description}}</p></div><div class=\"ep-sidebar-progress\"><div class=\"ep-progress-header\"><span class=\"ep-progress-label\">{{progressLabel}}</span><span class=\"ep-progress-value\">{{usageCount}}/{{usageLimit}}</span></div><div class=\"ep-progress-bar\"><div class=\"ep-progress-fill\" style=\"width: {{progressPercentage}}%\"></div></div><p class=\"ep-progress-text\">{{progressText}}</p></div><div class=\"ep-sidebar-features\"><h3 class=\"ep-heading-3\">{{unlockHeading}}</h3><div class=\"ep-feature-list\"><div class=\"ep-feature-item\"><div class=\"ep-feature-icon\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 2L2 7l10 5 10-5-10-5z\"></path><path d=\"M2 17l10 5 10-5\"></path><path d=\"M2 12l10 5 10-5\"></path></svg></div><div class=\"ep-feature-content\"><h4 class=\"ep-feature-title\">{{feature1Title}}</h4><p class=\"ep-feature-description\">{{feature1Description}}</p></div></div><div class=\"ep-feature-item\"><div class=\"ep-feature-icon\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 12h-4l-3 9L9 3l-3 9H2\"></path></svg></div><div class=\"ep-feature-content\"><h4 class=\"ep-feature-title\">{{feature2Title}}</h4><p class=\"ep-feature-description\">{{feature2Description}}</p></div></div><div class=\"ep-feature-item\"><div class=\"ep-feature-icon\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"></path></svg></div><div class=\"ep-feature-content\"><h4 class=\"ep-feature-title\">{{feature3Title}}</h4><p class=\"ep-feature-description\">{{feature3Description}}</p></div></div></div></div><div class=\"ep-sidebar-pricing\"><div class=\"ep-pricing-card\"><div class=\"ep-pricing-header\"><div class=\"ep-pricing-badge\">{{pricingBadge}}</div><div class=\"ep-pricing-price\"><span class=\"ep-pricing-currency\">{{currency}}</span><span class=\"ep-pricing-amount\">{{price}}</span><span class=\"ep-pricing-period\">{{period}}</span></div><p class=\"ep-pricing-description\">{{pricingDescription}}</p></div></div></div><div class=\"ep-sidebar-trial\"><div class=\"ep-trial-info\"><div class=\"ep-trial-icon\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\"></path><polyline points=\"22,4 12,14.01 9,11.01\"></polyline></svg></div><div class=\"ep-trial-content\"><h4 class=\"ep-trial-title\">{{trialTitle}}</h4><p class=\"ep-trial-description\">{{trialDescription}}</p></div></div></div></div><div class=\"ep-sidebar-footer\"><button class=\"ep-btn ep-btn-primary ep-btn-lg ep-btn-full\" data-ep-action=\"startUpgrade\"> {{upgradeButtonText}} </button><button class=\"ep-btn ep-btn-secondary ep-btn-full\" data-ep-action=\"startTrial\"> {{trialButtonText}} </button><button class=\"ep-btn ep-btn-ghost ep-btn-sm\" data-ep-action=\"remindLater\"> {{remindLaterText}} </button></div></div>";
2103
3076
  const css = ".ep-sidebar-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.5);backdrop-filter:blur(2px);z-index:var(--ep-z-backdrop);opacity:0;visibility:hidden;transition:all var(--ep-transition-normal)}.ep-sidebar-backdrop.ep-sidebar-backdrop-visible{opacity:1;visibility:visible}.ep-sidebar-paywall{position:fixed;top:0;right:0;bottom:0;width:400px;max-width:90vw;background-color:var(--ep-bg-secondary);border-left:1px solid var(--ep-border-primary);box-shadow:var(--ep-shadow-xl);z-index:var(--ep-z-modal);display:flex;flex-direction:column;transform:translateX(100%);transition:transform var(--ep-transition-normal)}.ep-sidebar-paywall.ep-sidebar-visible{transform:translateX(0)}.ep-sidebar-header{display:flex;align-items:center;justify-content:space-between;padding:var(--ep-space-4) var(--ep-space-6);border-bottom:1px solid var(--ep-border-primary);background:linear-gradient(135deg,var(--ep-primary-50),var(--ep-primary-100))}:host([data-theme=\"dark\"]) .ep-sidebar-header{background:linear-gradient(135deg,var(--ep-primary-900),var(--ep-primary-800))}.ep-sidebar-close{background:none;border:none;color:var(--ep-text-tertiary);cursor:pointer;padding:var(--ep-space-2);border-radius:var(--ep-radius-md);transition:all var(--ep-transition-fast)}.ep-sidebar-close:hover{color:var(--ep-text-primary);background-color:var(--ep-bg-tertiary)}.ep-sidebar-logo{display:flex;align-items:center;gap:var(--ep-space-2);color:var(--ep-primary-600)}.ep-sidebar-logo-text{font-size:var(--ep-font-size-lg);font-weight:var(--ep-font-weight-semibold);color:var(--ep-text-primary)}.ep-sidebar-content{flex:1;padding:var(--ep-space-6);overflow-y:auto;display:flex;flex-direction:column;gap:var(--ep-space-6)}.ep-sidebar-title-section{text-align:center}.ep-sidebar-title-section .ep-heading-2{margin-bottom:var(--ep-space-3);color:var(--ep-text-primary)}.ep-sidebar-title-section .ep-text-body{margin-bottom:0;color:var(--ep-text-secondary)}.ep-sidebar-progress{background-color:var(--ep-bg-tertiary);border:1px solid var(--ep-border-primary);border-radius:var(--ep-radius-md);padding:var(--ep-space-4)}.ep-progress-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--ep-space-3)}.ep-progress-label{font-size:var(--ep-font-size-sm);font-weight:var(--ep-font-weight-medium);color:var(--ep-text-primary)}.ep-progress-value{font-size:var(--ep-font-size-sm);font-weight:var(--ep-font-weight-semibold);color:var(--ep-primary-600)}.ep-progress-bar{height:8px;background-color:var(--ep-bg-primary);border-radius:var(--ep-radius-full);overflow:hidden;margin-bottom:var(--ep-space-2)}.ep-progress-fill{height:100%;background:linear-gradient(90deg,var(--ep-primary-500),var(--ep-primary-600));border-radius:var(--ep-radius-full);transition:width var(--ep-transition-normal)}.ep-progress-text{font-size:var(--ep-font-size-xs);color:var(--ep-text-tertiary);margin:0}.ep-sidebar-features .ep-heading-3{margin-bottom:var(--ep-space-4);text-align:center}.ep-feature-list{display:flex;flex-direction:column;gap:var(--ep-space-4)}.ep-feature-item{display:flex;align-items:flex-start;gap:var(--ep-space-3);padding:var(--ep-space-3);background-color:var(--ep-bg-tertiary);border:1px solid var(--ep-border-primary);border-radius:var(--ep-radius-md);opacity:0;transform:translateX(20px);transition:all var(--ep-transition-normal)}.ep-feature-item.ep-feature-item-visible{opacity:1;transform:translateX(0)}.ep-feature-icon{width:40px;height:40px;background:linear-gradient(135deg,var(--ep-primary-500),var(--ep-primary-600));border-radius:var(--ep-radius-lg);display:flex;align-items:center;justify-content:center;color:white;flex-shrink:0}.ep-feature-content{flex:1;min-width:0}.ep-feature-title{font-size:var(--ep-font-size-base);font-weight:var(--ep-font-weight-semibold);color:var(--ep-text-primary);margin-bottom:var(--ep-space-1)}.ep-feature-description{font-size:var(--ep-font-size-sm);color:var(--ep-text-secondary);line-height:var(--ep-line-height-relaxed);margin:0}.ep-sidebar-pricing{background:linear-gradient(135deg,var(--ep-primary-50),var(--ep-primary-100));border:1px solid var(--ep-primary-200);border-radius:var(--ep-radius-lg);padding:var(--ep-space-4)}:host([data-theme=\"dark\"]) .ep-sidebar-pricing{background:linear-gradient(135deg,var(--ep-primary-900),var(--ep-primary-800));border-color:var(--ep-primary-700)}.ep-pricing-card{text-align:center}.ep-pricing-header{margin-bottom:var(--ep-space-4)}.ep-pricing-badge{background:linear-gradient(135deg,var(--ep-primary-500),var(--ep-primary-600));color:white;padding:var(--ep-space-1) var(--ep-space-3);border-radius:var(--ep-radius-full);font-size:var(--ep-font-size-xs);font-weight:var(--ep-font-weight-medium);display:inline-block;margin-bottom:var(--ep-space-3)}.ep-pricing-price{display:flex;align-items:baseline;justify-content:center;gap:var(--ep-space-1);margin-bottom:var(--ep-space-2)}.ep-pricing-currency{font-size:var(--ep-font-size-base);font-weight:var(--ep-font-weight-medium);color:var(--ep-text-secondary)}.ep-pricing-amount{font-size:var(--ep-font-size-2xl);font-weight:var(--ep-font-weight-bold);color:var(--ep-text-primary)}.ep-pricing-period{font-size:var(--ep-font-size-base);color:var(--ep-text-secondary)}.ep-pricing-description{font-size:var(--ep-font-size-sm);color:var(--ep-text-secondary);margin:0}.ep-sidebar-trial{background-color:var(--ep-success-50);border:1px solid var(--ep-success-200);border-radius:var(--ep-radius-md);padding:var(--ep-space-4)}:host([data-theme=\"dark\"]) .ep-sidebar-trial{background-color:rgba(16,185,129,0.1);border-color:rgba(16,185,129,0.3)}.ep-trial-info{display:flex;align-items:flex-start;gap:var(--ep-space-3)}.ep-trial-icon{width:32px;height:32px;background:linear-gradient(135deg,var(--ep-success-500),var(--ep-success-600));border-radius:var(--ep-radius-lg);display:flex;align-items:center;justify-content:center;color:white;flex-shrink:0}.ep-trial-content{flex:1;min-width:0}.ep-trial-title{font-size:var(--ep-font-size-base);font-weight:var(--ep-font-weight-semibold);color:var(--ep-success-700);margin-bottom:var(--ep-space-1)}:host([data-theme=\"dark\"]) .ep-trial-title{color:var(--ep-success-400)}.ep-trial-description{font-size:var(--ep-font-size-sm);color:var(--ep-success-600);line-height:var(--ep-line-height-relaxed);margin:0}:host([data-theme=\"dark\"]) .ep-trial-description{color:var(--ep-success-300)}.ep-sidebar-footer{padding:var(--ep-space-6);border-top:1px solid var(--ep-border-primary);background-color:var(--ep-bg-tertiary);display:flex;flex-direction:column;gap:var(--ep-space-3)}.ep-theme-toggle{position:fixed;top:var(--ep-space-4);left:var(--ep-space-4);z-index:var(--ep-z-tooltip);display:flex;flex-direction:column;gap:var(--ep-space-2)}@media (max-width:768px){.ep-sidebar-paywall{width:100%;max-width:100%;border-left:none}.ep-sidebar-content{padding:var(--ep-space-4)}.ep-sidebar-footer{padding:var(--ep-space-4)}}@media (max-width:480px){.ep-sidebar-header{padding:var(--ep-space-3) var(--ep-space-4)}.ep-sidebar-content{padding:var(--ep-space-3);gap:var(--ep-space-4)}.ep-sidebar-footer{padding:var(--ep-space-3)}.ep-feature-item{padding:var(--ep-space-2)}.ep-feature-icon{width:32px;height:32px}.ep-pricing-amount{font-size:var(--ep-font-size-xl)}}@media (prefers-contrast:high){.ep-sidebar-paywall{border-left:2px solid var(--ep-border-secondary)}.ep-feature-item{border:2px solid var(--ep-border-secondary)}.ep-sidebar-pricing{border:2px solid var(--ep-primary-500)}.ep-sidebar-trial{border:2px solid var(--ep-success-500)}}@media (prefers-reduced-motion:reduce){.ep-sidebar-backdrop{transition:none}.ep-sidebar-paywall{transition:none}.ep-feature-item{transition:none;opacity:1;transform:none}.ep-progress-fill{transition:none}}";
2104
3077
 
2105
3078
  /**
@@ -2128,6 +3101,8 @@
2128
3101
  */
2129
3102
  const PAYWALL_HOST_CLASS = 'extenshi-paywall-host';
2130
3103
  const UPGRADE_ACTIONS = new Set(['upgradeNow', 'startUpgrade']);
3104
+ const UPGRADE_SELECTOR = '[data-ep-action="upgradeNow"], [data-ep-action="startUpgrade"]';
3105
+ const WITHDRAWAL_WAIVER_CLASS = 'extenshi-withdrawal-waiver';
2131
3106
  const CLOSE_ACTIONS = new Set([
2132
3107
  'closePaywall',
2133
3108
  'closeSidebar',
@@ -2206,6 +3181,12 @@
2206
3181
  remindLaterText: strings.remindLater,
2207
3182
  continueButtonText: strings.continueFree,
2208
3183
  footerText: strings.footer,
3184
+ featuresHeading: strings.featuresHeading,
3185
+ plansHeading: strings.plansHeading,
3186
+ freePlanName: strings.freePlanName,
3187
+ premiumPlanName: strings.premiumPlanName,
3188
+ popularBadge: strings.popularBadge,
3189
+ unlockHeading: strings.unlockHeading,
2209
3190
  };
2210
3191
  view.features.forEach((feature, index) => {
2211
3192
  const n = index + 1;
@@ -2218,6 +3199,10 @@
2218
3199
  });
2219
3200
  return content;
2220
3201
  }
3202
+ /** Who supplies the content: the seller's public name, else the project/brand name. */
3203
+ function waiverSellerName(view) {
3204
+ return view.seller?.displayName?.trim() || view.brandName.trim() || view.title;
3205
+ }
2221
3206
  const CSS_VALUE_UNSAFE = /[;{}<>]/g;
2222
3207
  function themeCss(theme) {
2223
3208
  const declarations = [];
@@ -2264,23 +3249,38 @@
2264
3249
  const template = PAYWALL_TEMPLATES[view.mode];
2265
3250
  if (!template)
2266
3251
  throw new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, `Unknown paywall mode "${view.mode}"`);
2267
- const strings = { ...DEFAULT_STRINGS, ...view.strings };
3252
+ const t = sdkStrings(view.locale);
3253
+ const strings = { ...stringsFor(view.locale), ...view.strings };
2268
3254
  if (view.mock) {
2269
- strings.upgrade = 'Simulate purchase';
2270
- strings.footer = MOCK_PAYMENT_NOTICE;
3255
+ strings.upgrade = t.simulatePurchase;
3256
+ strings.footer = t.mockNotice;
2271
3257
  }
2272
3258
  const host = doc.createElement('div');
2273
3259
  host.className = PAYWALL_HOST_CLASS;
2274
3260
  host.setAttribute('data-theme', resolveThemeMode(view.theme));
3261
+ // The shadow tree inherits the host's language: screen readers and
3262
+ // hyphenation read the strings in the language they are written in.
3263
+ host.setAttribute('lang', sdkLocale(view.locale));
3264
+ host.setAttribute('dir', sdkDir(sdkLocale(view.locale)));
2275
3265
  const root = typeof host.attachShadow === 'function' ? host.attachShadow({ mode: 'open' }) : host;
2276
3266
  root.innerHTML =
2277
3267
  `<style>${PAYWALL_SHARED_CSS}${template.css}${themeCss(view.theme)}</style>` +
2278
3268
  substitute(template.html, buildContent(view, strings));
2279
3269
  this.prune(root);
2280
- this.bind(root, view, doc);
3270
+ const waiver = view.offer && view.checkoutEnabled && view.withdrawalWaiver
3271
+ ? withdrawalWaiverText(view.withdrawalWaiver.version, view.locale, waiverSellerName(view))
3272
+ : null;
3273
+ const waiverBox = waiver ? doc.createElement('input') : null;
3274
+ // undefined: no waiver asked → onUpgrade(sku) exactly as before; null: not ticked yet.
3275
+ const consent = () => {
3276
+ if (!waiver)
3277
+ return undefined;
3278
+ return waiverBox?.checked ? { withdrawalWaiver: { version: waiver.version, accepted: true } } : null;
3279
+ };
3280
+ this.bind(root, view, doc, consent);
2281
3281
  const sellerMount = root.querySelector('[class*="-footer"], .ep-minimal-actions, .ep-inline-content, .ep-fullscreen-content');
2282
3282
  if (sellerMount) {
2283
- const details = sellerDetails(view.seller ?? null);
3283
+ const details = sellerDetails(view.seller ?? null, t);
2284
3284
  details.style.cssText =
2285
3285
  'font-size:12px;line-height:1.5;margin-top:12px;text-align:left;white-space:normal';
2286
3286
  // In the modal, disclose the provider before the purchase action,
@@ -2292,15 +3292,17 @@
2292
3292
  sellerMount.append(details);
2293
3293
  }
2294
3294
  if (view.mock) {
2295
- const upgrade = root.querySelector('[data-ep-action="upgradeNow"], [data-ep-action="startUpgrade"]');
3295
+ const upgrade = root.querySelector(UPGRADE_SELECTOR);
2296
3296
  if (upgrade) {
2297
3297
  const notice = doc.createElement('p');
2298
3298
  notice.className = 'extenshi-payment-preview';
2299
- notice.textContent = MOCK_PAYMENT_NOTICE;
3299
+ notice.textContent = t.mockNotice;
2300
3300
  notice.style.cssText = 'font-size:13px;line-height:1.5;margin:12px 0;white-space:normal';
2301
3301
  upgrade.before(notice);
2302
3302
  }
2303
3303
  }
3304
+ if (waiver && waiverBox)
3305
+ this.mountWaiver(root, doc, waiver.text, waiverBox);
2304
3306
  if (view.recoveryEnabled && this.callbacks.onRestore) {
2305
3307
  const footer = root.querySelector('[class*="-footer"], .ep-minimal-actions, .ep-inline-content, .ep-fullscreen-content');
2306
3308
  if (footer) {
@@ -2344,7 +3346,42 @@
2344
3346
  button.remove();
2345
3347
  }
2346
3348
  }
2347
- bind(root, view, doc) {
3349
+ /**
3350
+ * Inserts the unticked waiver checkbox right before the first upgrade
3351
+ * button and keeps every upgrade button disabled until it is ticked.
3352
+ */
3353
+ mountWaiver(root, doc, text, input) {
3354
+ const buttons = Array.from(root.querySelectorAll(UPGRADE_SELECTOR));
3355
+ const first = buttons[0];
3356
+ if (!first)
3357
+ return;
3358
+ const label = doc.createElement('label');
3359
+ label.className = WITHDRAWAL_WAIVER_CLASS;
3360
+ label.style.cssText =
3361
+ 'display:flex;align-items:flex-start;gap:8px;margin:12px 0;font-size:13px;line-height:1.5;text-align:start;white-space:normal;color:inherit;cursor:pointer';
3362
+ input.type = 'checkbox';
3363
+ input.checked = false;
3364
+ input.style.cssText = 'flex:none;width:16px;height:16px;margin:2px 0 0;cursor:pointer';
3365
+ const span = doc.createElement('span');
3366
+ span.textContent = text;
3367
+ label.append(input, span);
3368
+ first.before(label);
3369
+ const sync = () => {
3370
+ for (const button of buttons) {
3371
+ if (input.checked) {
3372
+ button.removeAttribute('disabled');
3373
+ button.removeAttribute('aria-disabled');
3374
+ }
3375
+ else {
3376
+ button.setAttribute('disabled', '');
3377
+ button.setAttribute('aria-disabled', 'true');
3378
+ }
3379
+ }
3380
+ };
3381
+ input.addEventListener('change', sync);
3382
+ sync();
3383
+ }
3384
+ bind(root, view, doc, consent) {
2348
3385
  for (const element of root.querySelectorAll('[data-ep-action]')) {
2349
3386
  const action = element.getAttribute('data-ep-action') ?? '';
2350
3387
  if (UPGRADE_ACTIONS.has(action)) {
@@ -2352,7 +3389,15 @@
2352
3389
  const sku = view.offer.sku;
2353
3390
  element.addEventListener('click', (event) => {
2354
3391
  event.preventDefault();
2355
- this.callbacks.onUpgrade(sku);
3392
+ const given = consent();
3393
+ // Waiver shown but not ticked: a disabled button cannot be
3394
+ // clicked, but never start checkout without consent anyway.
3395
+ if (given === null)
3396
+ return;
3397
+ if (given)
3398
+ this.callbacks.onUpgrade(sku, given);
3399
+ else
3400
+ this.callbacks.onUpgrade(sku);
2356
3401
  });
2357
3402
  }
2358
3403
  else {
@@ -2419,7 +3464,7 @@
2419
3464
  async openCustomerPortal(options = {}) {
2420
3465
  return super.openCustomerPortal({
2421
3466
  ...options,
2422
- selectAccount: options.selectAccount ?? ((accounts) => this.billingProfiles.show(accounts)),
3467
+ selectAccount: options.selectAccount ?? ((accounts) => this.billingProfiles.show(accounts, this.config.locale)),
2423
3468
  });
2424
3469
  }
2425
3470
  destroy() {
@@ -2441,7 +3486,7 @@
2441
3486
  return this.getLicenseSummary({ force: true });
2442
3487
  },
2443
3488
  manage: () => this.openCustomerPortal(),
2444
- });
3489
+ }, this.config.locale);
2445
3490
  }
2446
3491
  async getOffer(options = {}) {
2447
3492
  await this.initialize();
@@ -2467,10 +3512,11 @@
2467
3512
  this.reportError(error);
2468
3513
  }
2469
3514
  const selected = pickOffer(offer, options.sku);
3515
+ const defaults = stringsFor(this.config.locale);
2470
3516
  const view = {
2471
3517
  mode: options.mode ?? 'modal',
2472
- title: options.title ?? selected?.title ?? DEFAULT_STRINGS.title,
2473
- description: options.description ?? selected?.description ?? DEFAULT_STRINGS.description,
3518
+ title: options.title ?? selected?.title ?? defaults.title,
3519
+ description: options.description ?? selected?.description ?? defaults.description,
2474
3520
  features: options.features ?? selected?.features ?? [],
2475
3521
  freeFeatures: options.freeFeatures ?? [],
2476
3522
  brandName: offer?.projectName ?? '',
@@ -2479,6 +3525,7 @@
2479
3525
  mock: this.config.mock,
2480
3526
  recoveryEnabled: offer?.recoveryEnabled === true,
2481
3527
  seller: offer?.seller ?? null,
3528
+ withdrawalWaiver: offer?.withdrawalWaiver ?? null,
2482
3529
  locale: this.config.locale,
2483
3530
  theme: { ...this.config.theme, ...options.theme },
2484
3531
  strings: options.strings ?? {},
@@ -2516,7 +3563,7 @@
2516
3563
  renderer() {
2517
3564
  if (!this.paywall) {
2518
3565
  this.paywall = new PaywallRenderer({
2519
- onUpgrade: (sku) => void this.handleUpgrade(sku),
3566
+ onUpgrade: (sku, consent) => void this.handleUpgrade(sku, consent),
2520
3567
  onClose: () => this.settlePaywall(false),
2521
3568
  onRestore: () => void this.handleRestore(),
2522
3569
  });
@@ -2535,10 +3582,13 @@
2535
3582
  /* Reported through the error event; leave the paywall open for retry. */
2536
3583
  }
2537
3584
  }
2538
- async handleUpgrade(sku) {
2539
- this.paywallSession?.options.onUpgrade?.(sku);
3585
+ async handleUpgrade(sku, consent) {
3586
+ if (consent)
3587
+ this.paywallSession?.options.onUpgrade?.(sku, consent);
3588
+ else
3589
+ this.paywallSession?.options.onUpgrade?.(sku);
2540
3590
  try {
2541
- const result = await this.openCheckout(sku);
3591
+ const result = await this.openCheckout(sku, consent?.withdrawalWaiver ? { withdrawalWaiver: consent.withdrawalWaiver } : {});
2542
3592
  if (result.state === 'complete') {
2543
3593
  this.paywall?.hide();
2544
3594
  this.settlePaywall(true);
@@ -2600,11 +3650,14 @@
2600
3650
  exports.PAY_PUBLISHABLE_KEY_HEX_LENGTH = PAY_PUBLISHABLE_KEY_HEX_LENGTH;
2601
3651
  exports.PAY_PUBLISHABLE_KEY_PREFIX = PAY_PUBLISHABLE_KEY_PREFIX;
2602
3652
  exports.PAY_SKU_RE = PAY_SKU_RE;
3653
+ exports.PAY_WITHDRAWAL_WAIVER_VERSION = PAY_WITHDRAWAL_WAIVER_VERSION;
2603
3654
  exports.PayApi = PayApi;
2604
3655
  exports.PaywallRenderer = PaywallRenderer;
2605
3656
  exports.RecoveryManager = RecoveryManager;
2606
3657
  exports.TRPC_PATH = TRPC_PATH;
2607
3658
  exports.VERSION = VERSION;
3659
+ exports.WITHDRAWAL_WAIVER_CLASS = WITHDRAWAL_WAIVER_CLASS;
3660
+ exports.WITHDRAWAL_WAIVER_TEXTS = WITHDRAWAL_WAIVER_TEXTS;
2608
3661
  exports.applyLocalExpiry = applyLocalExpiry;
2609
3662
  exports.base64ToBytes = base64ToBytes;
2610
3663
  exports.buildContent = buildContent;
@@ -2631,6 +3684,7 @@
2631
3684
  exports.themeCss = themeCss;
2632
3685
  exports.trpcErrorToPayError = trpcErrorToPayError;
2633
3686
  exports.verifyEntitlementSignature = verifyEntitlementSignature;
3687
+ exports.withdrawalWaiverText = withdrawalWaiverText;
2634
3688
 
2635
3689
  Object.defineProperty(exports, '__esModule', { value: true });
2636
3690