@extenshi/pay 0.7.1 → 0.9.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 (88) hide show
  1. package/README.md +16 -10
  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 +219 -113
  13. package/dist/core.d.ts +219 -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 +1386 -191
  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 +1386 -191
  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 +1383 -192
  34. package/dist/extenshi-pay.mjs.map +1 -1
  35. package/dist/index.d.mts +287 -117
  36. package/dist/index.d.ts +287 -117
  37. package/dist/lite.d.mts +188 -83
  38. package/dist/lite.d.ts +188 -83
  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/icon.d.ts +18 -0
  50. package/dist/paywall/icon.d.ts.map +1 -0
  51. package/dist/paywall/index.d.ts +2 -1
  52. package/dist/paywall/index.d.ts.map +1 -1
  53. package/dist/paywall/license-panel.d.ts +4 -1
  54. package/dist/paywall/license-panel.d.ts.map +1 -1
  55. package/dist/paywall/renderer.d.ts +24 -2
  56. package/dist/paywall/renderer.d.ts.map +1 -1
  57. package/dist/paywall/seller-details.d.ts +2 -1
  58. package/dist/paywall/seller-details.d.ts.map +1 -1
  59. package/dist/paywall/strings.d.ts +6 -4
  60. package/dist/paywall/strings.d.ts.map +1 -1
  61. package/dist/paywall.d.mts +113 -8
  62. package/dist/paywall.d.ts +113 -8
  63. package/dist/paywall.js +1068 -51
  64. package/dist/paywall.js.map +1 -1
  65. package/dist/paywall.mjs +1066 -52
  66. package/dist/paywall.mjs.map +1 -1
  67. package/dist/types/config.d.ts +6 -1
  68. package/dist/types/config.d.ts.map +1 -1
  69. package/dist/types/contract.d.ts +25 -0
  70. package/dist/types/contract.d.ts.map +1 -1
  71. package/dist/types/entitlement.d.ts +22 -0
  72. package/dist/types/entitlement.d.ts.map +1 -1
  73. package/dist/types/errors.d.ts +1 -0
  74. package/dist/types/errors.d.ts.map +1 -1
  75. package/dist/types/paywall.d.ts +27 -3
  76. package/dist/types/paywall.d.ts.map +1 -1
  77. package/dist/version.d.ts +1 -1
  78. package/package.json +2 -2
  79. package/dist/core.esm.js +0 -1681
  80. package/dist/core.esm.js.map +0 -1
  81. package/dist/extenshi-pay-lite.esm.js +0 -1664
  82. package/dist/extenshi-pay-lite.esm.js.map +0 -1
  83. package/dist/extenshi-pay.esm.js +0 -2496
  84. package/dist/extenshi-pay.esm.js.map +0 -1
  85. package/dist/extenshi-pay.esm.min.js +0 -7
  86. package/dist/extenshi-pay.esm.min.js.map +0 -1
  87. package/dist/paywall.esm.js +0 -442
  88. package/dist/paywall.esm.js.map +0 -1
@@ -1,7 +1,8 @@
1
1
  /*!
2
- * ExtenshiPay SDK v0.7.1
2
+ * ExtenshiPay SDK v0.9.0
3
3
  * (c) 2026 Extenshi.io
4
4
  * Released under the MIT License.
5
+ * commit bd166bf9b687f60e965d03acec7a648b42226652 · built by `rollup -c`
5
6
  */
6
7
  'use strict';
7
8
 
@@ -49,6 +50,13 @@ const PAY_SKU_RE = /^[a-z0-9][a-z0-9_-]{1,39}$/;
49
50
  * none — never had it
50
51
  */
51
52
  const PAY_ENTITLEMENT_STATUSES = ['active', 'grace', 'expired', 'none'];
53
+ /**
54
+ * Version of the buyer-facing withdrawal waiver text the paywall shows (EU/EEA
55
+ * digital content, Directive 2011/83/EU art. 16(m); UK CCR 2013 reg. 37). The
56
+ * text itself lives in the SDK dictionary under the same version; bump both
57
+ * together so a recorded consent always names the words the buyer saw.
58
+ */
59
+ const PAY_WITHDRAWAL_WAIVER_VERSION = '2026-10-v1';
52
60
  /**
53
61
  * The `endUserRef` an SDK mints on first run and keeps in `chrome.storage`.
54
62
  * Opaque, random, never derived from anything identifying.
@@ -65,6 +73,7 @@ const PAY_ERRORS = {
65
73
  GATEWAY_UNAVAILABLE: 'PAY_GATEWAY_UNAVAILABLE',
66
74
  RATE_LIMITED: 'PAY_RATE_LIMITED',
67
75
  INVALID_KEY: 'PAY_INVALID_KEY',
76
+ WITHDRAWAL_WAIVER_REQUIRED: 'PAY_WITHDRAWAL_WAIVER_REQUIRED',
68
77
  };
69
78
  /**
70
79
  * Canonical JSON for signing: keys sorted recursively, no whitespace. Both
@@ -96,6 +105,7 @@ const ERROR_CODES = {
96
105
  GATEWAY_UNAVAILABLE: 'GATEWAY_UNAVAILABLE',
97
106
  CHECKOUT_UNAVAILABLE: 'CHECKOUT_UNAVAILABLE',
98
107
  PAYWALL_UNAVAILABLE: 'PAYWALL_UNAVAILABLE',
108
+ WITHDRAWAL_WAIVER_REQUIRED: 'WITHDRAWAL_WAIVER_REQUIRED',
99
109
  UNKNOWN: 'UNKNOWN',
100
110
  };
101
111
  class ExtenshiPayError extends Error {
@@ -152,6 +162,13 @@ async function getOrCreateEndUserRef(storage) {
152
162
  * mock checkout completes after `claimAfterPolls` polls and grants the SKU.
153
163
  */
154
164
  const DAY_MS = 24 * 60 * 60 * 1000;
165
+ /** Accepts the same optional `withdrawalWaiver` input as the BFF; anything else is no consent. */
166
+ function mockConsent(value) {
167
+ const consent = value;
168
+ return consent && typeof consent.version === 'string' && consent.accepted === true
169
+ ? { version: consent.version, accepted: true }
170
+ : null;
171
+ }
155
172
  class MockTransport {
156
173
  constructor(data = {}) {
157
174
  this.sessions = new Map();
@@ -160,13 +177,15 @@ class MockTransport {
160
177
  this.projectName = data.projectName ?? 'Mock project';
161
178
  this.checkoutEnabled = data.checkoutEnabled ?? true;
162
179
  this.claimAfterPolls = data.claimAfterPolls ?? 1;
180
+ this.withdrawalWaiver =
181
+ data.withdrawalWaiver === undefined ? { version: PAY_WITHDRAWAL_WAIVER_VERSION } : data.withdrawalWaiver;
163
182
  }
164
183
  async call(procedure, _kind, input) {
165
184
  switch (procedure) {
166
185
  case 'pay.getOffer':
167
186
  return this.offerResponse();
168
187
  case 'pay.createCheckout':
169
- return this.createCheckout(String(input.sku));
188
+ return this.createCheckout(String(input.sku), mockConsent(input.withdrawalWaiver));
170
189
  case 'pay.claimSession':
171
190
  return this.claim(String(input.sessionId), String(input.endUserRef), String(input.publishableKey));
172
191
  case 'pay.getEntitlement':
@@ -199,9 +218,10 @@ class MockTransport {
199
218
  checkoutEnabled: this.checkoutEnabled && this.offers.length > 0,
200
219
  offers: [...this.offers],
201
220
  entitlementPublicKey: null,
221
+ withdrawalWaiver: this.withdrawalWaiver ? { ...this.withdrawalWaiver } : null,
202
222
  };
203
223
  }
204
- createCheckout(sku) {
224
+ createCheckout(sku, withdrawalWaiver) {
205
225
  if (!this.checkoutEnabled) {
206
226
  throw new ExtenshiPayError(ERROR_CODES.SELLER_NOT_ACTIVE, 'Mock seller cannot take payments');
207
227
  }
@@ -209,7 +229,7 @@ class MockTransport {
209
229
  throw new ExtenshiPayError(ERROR_CODES.OFFER_NOT_FOUND, `Unknown mock offer ${sku}`);
210
230
  }
211
231
  const sessionId = mintEndUserRef();
212
- this.sessions.set(sessionId, { sku, polls: 0, state: 'open' });
232
+ this.sessions.set(sessionId, { sku, polls: 0, state: 'open', withdrawalWaiver });
213
233
  return {
214
234
  url: `https://mock.extenshi.io/checkout/${sessionId}`,
215
235
  sessionId,
@@ -271,10 +291,12 @@ class PayApi {
271
291
  this.transport = transport;
272
292
  this.publishableKey = publishableKey;
273
293
  }
274
- createRestoreSession(claimChallenge) {
294
+ /** `locale` opens the hosted recovery page (and its email) in the user's language. */
295
+ createRestoreSession(claimChallenge, locale) {
275
296
  return this.transport.call('pay.createRestoreSession', 'mutation', {
276
297
  publishableKey: this.publishableKey,
277
298
  claimChallenge,
299
+ ...(locale ? { locale } : {}),
278
300
  });
279
301
  }
280
302
  claimRestoreSession(sessionId, claimSecret) {
@@ -290,12 +312,20 @@ class PayApi {
290
312
  locale: locale ?? undefined,
291
313
  });
292
314
  }
293
- createCheckout(sku, endUserRef, locale) {
315
+ /**
316
+ * `withdrawalWaiver` is sent only when given. Older BFFs parse the input with
317
+ * a non-strict zod object, which strips the unknown key, so it is safe there.
318
+ * Plain-JS callers passing anything but `accepted: true` send no consent.
319
+ */
320
+ createCheckout(sku, endUserRef, locale, withdrawalWaiver) {
294
321
  return this.transport.call('pay.createCheckout', 'mutation', {
295
322
  publishableKey: this.publishableKey,
296
323
  sku,
297
324
  endUserRef,
298
325
  locale: locale ?? undefined,
326
+ ...(withdrawalWaiver?.accepted === true && typeof withdrawalWaiver.version === 'string'
327
+ ? { withdrawalWaiver: { version: withdrawalWaiver.version, accepted: true } }
328
+ : {}),
299
329
  });
300
330
  }
301
331
  claimSession(sessionId, endUserRef) {
@@ -311,11 +341,12 @@ class PayApi {
311
341
  endUserRef,
312
342
  });
313
343
  }
314
- getPortalUrl(endUserRef, customerId) {
344
+ getPortalUrl(endUserRef, customerId, locale) {
315
345
  return this.transport.call('pay.getPortalUrl', 'mutation', {
316
346
  publishableKey: this.publishableKey,
317
347
  endUserRef,
318
348
  ...(customerId ? { customerId } : {}),
349
+ ...(locale ? { locale } : {}),
319
350
  });
320
351
  }
321
352
  }
@@ -381,6 +412,7 @@ const CAUSE_TO_CODE = {
381
412
  [PAY_ERRORS.AGREEMENT_REQUIRED]: ERROR_CODES.SELLER_NOT_ACTIVE,
382
413
  [PAY_ERRORS.OFFER_NOT_FOUND]: ERROR_CODES.OFFER_NOT_FOUND,
383
414
  [PAY_ERRORS.GATEWAY_UNAVAILABLE]: ERROR_CODES.GATEWAY_UNAVAILABLE,
415
+ [PAY_ERRORS.WITHDRAWAL_WAIVER_REQUIRED]: ERROR_CODES.WITHDRAWAL_WAIVER_REQUIRED,
384
416
  };
385
417
  function parseRetryAfter(message) {
386
418
  const match = /retry in (\d+)s/i.exec(message);
@@ -410,6 +442,8 @@ function trpcErrorToPayError(error, httpStatus) {
410
442
  return new ExtenshiPayError(ERROR_CODES.CHECKOUT_UNAVAILABLE, message, options);
411
443
  return new ExtenshiPayError(ERROR_CODES.OFFER_NOT_FOUND, message, options);
412
444
  case 'PRECONDITION_FAILED':
445
+ if (/withdrawal/i.test(message))
446
+ return new ExtenshiPayError(ERROR_CODES.WITHDRAWAL_WAIVER_REQUIRED, message, options);
413
447
  return new ExtenshiPayError(ERROR_CODES.SELLER_NOT_ACTIVE, message, options);
414
448
  case 'BAD_REQUEST':
415
449
  return new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, message, options);
@@ -592,7 +626,7 @@ class CheckoutManager {
592
626
  throw new ExtenshiPayError(ERROR_CODES.CHECKOUT_UNAVAILABLE, 'A checkout is already in progress');
593
627
  }
594
628
  const endUserRef = await this.options.getEndUserRef();
595
- const session = await this.options.api.createCheckout(sku, endUserRef, options.locale ?? this.options.locale);
629
+ const session = await this.options.api.createCheckout(sku, endUserRef, options.locale ?? this.options.locale, options.withdrawalWaiver);
596
630
  this.active = session.sessionId;
597
631
  try {
598
632
  const pending = { sessionId: session.sessionId, sku, expiresAt: session.expiresAt };
@@ -1236,7 +1270,7 @@ class RecoveryManager {
1236
1270
  const secret = Array.from(cryptoApi.getRandomValues(new Uint8Array(32)), (b) => b.toString(16).padStart(2, '0')).join('');
1237
1271
  const hash = await cryptoApi.subtle.digest('SHA-256', new TextEncoder().encode(secret));
1238
1272
  const challenge = Array.from(new Uint8Array(hash), (b) => b.toString(16).padStart(2, '0')).join('');
1239
- const created = await this.options.api.createRestoreSession(challenge);
1273
+ const created = await this.options.api.createRestoreSession(challenge, this.options.locale);
1240
1274
  if (!Number.isFinite(Date.parse(created.expiresAt)))
1241
1275
  throw new ExtenshiPayError(ERROR_CODES.INVALID_RESPONSE, 'Invalid recovery expiry');
1242
1276
  const pending = { sessionId: created.sessionId, expiresAt: created.expiresAt, claimSecret: secret };
@@ -1328,7 +1362,49 @@ const DEFAULT_CACHE_TTL_MS = 60 * 60 * 1000;
1328
1362
  const MAX_CACHE_TTL_MS = 7 * 24 * 60 * 60 * 1000;
1329
1363
 
1330
1364
  /** Kept in sync with package.json by tests/unit/version.test.ts. */
1331
- const VERSION = '0.7.1';
1365
+ const VERSION = '0.9.0';
1366
+
1367
+ /**
1368
+ * The user's language as the SDK sends it. Kept apart from the paywall
1369
+ * dictionary (../paywall/i18n.ts) so the Lite and core bundles, which never
1370
+ * render UI, do not carry the translations.
1371
+ */
1372
+ /** What the backend (and older backends) accept as a locale: `de`, `pt-BR`, `zh-CN`. */
1373
+ const WIRE_LOCALE_RE = /^[a-z]{2}(-[A-Za-z]{2,4})?$/;
1374
+ /**
1375
+ * A browser tag as the SDK sends it: `pt_BR` → `pt-BR`, `es-419` → `es`,
1376
+ * `zh-Hant-TW` → `zh-TW`; null for anything that is not a language tag.
1377
+ */
1378
+ function wireLocale(raw) {
1379
+ if (typeof raw !== 'string')
1380
+ return null;
1381
+ const parts = raw.trim().replace(/_/g, '-').split('-').filter(Boolean);
1382
+ const lang = parts[0]?.toLowerCase();
1383
+ if (!lang || !/^[a-z]{2}$/.test(lang))
1384
+ return null;
1385
+ const script = parts
1386
+ .slice(1)
1387
+ .find((p) => /^[A-Za-z]{4}$/.test(p))
1388
+ ?.toLowerCase();
1389
+ // zh-Hant without a region is Traditional Chinese: keep that, never let it read as zh-CN.
1390
+ const region = parts.slice(1).find((p) => /^[A-Za-z]{2}$/.test(p)) ??
1391
+ (lang === 'zh' && script === 'hant' ? 'TW' : undefined);
1392
+ const tag = region ? `${lang}-${region.toUpperCase()}` : lang;
1393
+ return WIRE_LOCALE_RE.test(tag) ? tag : lang;
1394
+ }
1395
+ /** The browser UI language (`chrome.i18n.getUILanguage()`, else `navigator.language`), or null. */
1396
+ function browserLocale() {
1397
+ const g = globalThis;
1398
+ try {
1399
+ const ui = g.chrome?.i18n?.getUILanguage?.() ?? g.browser?.i18n?.getUILanguage?.();
1400
+ if (ui)
1401
+ return wireLocale(ui);
1402
+ }
1403
+ catch {
1404
+ /* Not an extension context. */
1405
+ }
1406
+ return wireLocale(g.navigator?.language);
1407
+ }
1332
1408
 
1333
1409
  const ENVIRONMENTS = new Set(['production', 'sandbox', 'development']);
1334
1410
  const LOG_LEVELS = new Set(['silent', 'error', 'warn', 'info', 'debug']);
@@ -1369,7 +1445,10 @@ function resolveConfig(input) {
1369
1445
  if (!Number.isFinite(cacheTtlMs) || cacheTtlMs < 0 || cacheTtlMs > MAX_CACHE_TTL_MS) {
1370
1446
  errors.push(`cacheTtlMs must be between 0 and ${MAX_CACHE_TTL_MS}`);
1371
1447
  }
1372
- const locale = input.locale ?? null;
1448
+ // Default: the browser UI language, as README promises (it. 13 T10 L2).
1449
+ // `null` still opts out explicitly: prices then use the runtime default
1450
+ // and the paywall reads English.
1451
+ const locale = input.locale === undefined ? browserLocale() : input.locale;
1373
1452
  if (locale !== null && !LOCALE_RE.test(locale))
1374
1453
  errors.push('locale must be a BCP-47 tag such as en or de-DE');
1375
1454
  const theme = input.theme ?? {};
@@ -1440,6 +1519,821 @@ class EventEmitter {
1440
1519
  }
1441
1520
  }
1442
1521
 
1522
+ /**
1523
+ * Every string the SDK shows to the USER of an extension — paywall, license
1524
+ * dialog, billing-profile picker, seller details — in the end-user languages
1525
+ * (ROADMAP it. 13 T10, stage L2; closes it. 12 T9). Developer-facing error
1526
+ * messages stay English.
1527
+ *
1528
+ * Self-contained on purpose: the SDK ships inside third-party extensions with
1529
+ * no runtime dependencies and no remote code, so the dictionary is compiled
1530
+ * in. Placeholders are `{name}`, `{date}`, `{status}`. A missing
1531
+ * translation falls back to English, never to an empty string. The same
1532
+ * languages as the hosted pages (shared-types END_USER_LOCALES); keep the
1533
+ * lists in sync.
1534
+ */
1535
+ const SDK_LOCALES = ['en', 'es', 'pt-BR', 'fr', 'de', 'it', 'ru', 'ja', 'ko', 'zh-CN', 'ar'];
1536
+ const SDK_STRINGS_EN = {
1537
+ title: 'Unlock premium features',
1538
+ description: 'Upgrade to get full access to this extension.',
1539
+ upgrade: 'Upgrade',
1540
+ cancel: 'Not now',
1541
+ dismiss: 'Dismiss',
1542
+ remindLater: 'Remind me later',
1543
+ continueFree: 'Continue with the free version',
1544
+ checkoutUnavailable: 'Purchases are temporarily unavailable',
1545
+ periodMonth: '/month',
1546
+ periodYear: '/year',
1547
+ periodOnce: 'one-time',
1548
+ footer: 'Secure checkout opens in a new tab.',
1549
+ restorePurchase: 'Restore purchase',
1550
+ featuresHeading: 'Premium Features',
1551
+ plansHeading: 'Choose Your Plan',
1552
+ freePlanName: 'Free',
1553
+ premiumPlanName: 'Premium',
1554
+ popularBadge: 'Most Popular',
1555
+ unlockHeading: 'Unlock Premium Features',
1556
+ simulatePurchase: 'Simulate purchase',
1557
+ mockNotice: 'Development preview: licenses and payments are simulated. No payment will be taken.',
1558
+ sellerProvidedBy: 'License provided by {name}',
1559
+ sellerUnavailable: 'License provider details are unavailable.',
1560
+ sellerSupport: 'Extension support',
1561
+ sellerTerms: 'License terms',
1562
+ sellerRefunds: 'Refund policy',
1563
+ sellerRole: 'The author handles extension functionality and license commitments. Extenshi provides payment and license recovery tools.',
1564
+ licenseTitle: 'Your license',
1565
+ licenseFallbackName: 'Extension license',
1566
+ licenseNone: 'No license found on this installation.',
1567
+ kindOneTime: 'One-time purchase',
1568
+ kindLifetime: 'Lifetime',
1569
+ kindSubscription: 'Subscription',
1570
+ kindLicense: 'License',
1571
+ statusLine: 'Status: {status}',
1572
+ statusActive: 'active',
1573
+ statusGrace: 'grace period',
1574
+ statusExpired: 'expired',
1575
+ statusNone: 'no access',
1576
+ accessEnded: 'Access ended {date}',
1577
+ accessUntil: 'Access until {date}',
1578
+ accessRecordedEnd: 'Recorded end date {date}',
1579
+ subscriptionLine: 'Subscription: {status}',
1580
+ renewalCanceled: 'Renewal canceled',
1581
+ periodEnds: 'Period ends {date}',
1582
+ subActive: 'active',
1583
+ subTrialing: 'trial',
1584
+ subPastDue: 'payment overdue',
1585
+ subCanceled: 'canceled',
1586
+ subUnpaid: 'unpaid',
1587
+ subIncomplete: 'incomplete',
1588
+ subIncompleteExpired: 'payment not completed',
1589
+ subPaused: 'paused',
1590
+ 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.',
1591
+ licenseCached: 'Showing saved license information.',
1592
+ licenseFresh: 'Subscription information reflects the latest processed payment update.',
1593
+ actionFailed: 'Unable to complete the request. Please try again or contact extension support.',
1594
+ manageBilling: 'Manage billing',
1595
+ noPortal: 'No billing portal opened. You can retry or contact extension support.',
1596
+ close: 'Close',
1597
+ pickerTitle: 'Choose a billing profile',
1598
+ pickerDescription: 'Separate purchases can have separate billing profiles. Choose one to manage its subscriptions and payment details.',
1599
+ pickerFirstRecorded: 'First recorded {date}',
1600
+ pickerCancel: 'Cancel',
1601
+ };
1602
+ // BEGIN GENERATED TRANSLATIONS
1603
+ const TRANSLATIONS = {
1604
+ es: {
1605
+ title: 'Desbloquea las funciones premium',
1606
+ description: 'Mejora tu plan para obtener acceso completo a esta extensión.',
1607
+ upgrade: 'Mejorar plan',
1608
+ cancel: 'Ahora no',
1609
+ dismiss: 'Descartar',
1610
+ remindLater: 'Recordármelo más tarde',
1611
+ continueFree: 'Seguir con la versión gratuita',
1612
+ checkoutUnavailable: 'Compras no disponibles temporalmente',
1613
+ periodMonth: '/mes',
1614
+ periodYear: '/año',
1615
+ periodOnce: 'pago único',
1616
+ footer: 'El pago seguro se abre en una pestaña nueva.',
1617
+ restorePurchase: 'Restaurar compra',
1618
+ featuresHeading: 'Funciones premium',
1619
+ plansHeading: 'Elige tu plan',
1620
+ freePlanName: 'Gratis',
1621
+ premiumPlanName: 'Premium',
1622
+ popularBadge: 'Más popular',
1623
+ unlockHeading: 'Desbloquea las funciones premium',
1624
+ simulatePurchase: 'Simular compra',
1625
+ mockNotice: 'Vista previa de desarrollo: las licencias y los pagos son simulados. No se realizará ningún cobro.',
1626
+ sellerProvidedBy: 'Licencia proporcionada por {name}',
1627
+ sellerUnavailable: 'Los datos del proveedor de la licencia no están disponibles.',
1628
+ sellerSupport: 'Asistencia de la extensión',
1629
+ sellerTerms: 'Condiciones de licencia',
1630
+ sellerRefunds: 'Política de reembolsos',
1631
+ 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.',
1632
+ licenseTitle: 'Tu licencia',
1633
+ licenseFallbackName: 'Licencia de la extensión',
1634
+ licenseNone: 'No se ha encontrado ninguna licencia en esta instalación.',
1635
+ kindOneTime: 'Compra única',
1636
+ kindLifetime: 'Licencia vitalicia',
1637
+ kindSubscription: 'Suscripción',
1638
+ kindLicense: 'Licencia',
1639
+ statusLine: 'Estado: {status}',
1640
+ statusActive: 'activo',
1641
+ statusGrace: 'período de gracia',
1642
+ statusExpired: 'caducado',
1643
+ statusNone: 'sin acceso',
1644
+ accessEnded: 'Acceso finalizado el {date}',
1645
+ accessUntil: 'Acceso hasta el {date}',
1646
+ accessRecordedEnd: 'Fecha de finalización registrada: {date}',
1647
+ subscriptionLine: 'Suscripción: {status}',
1648
+ renewalCanceled: 'Renovación cancelada',
1649
+ periodEnds: 'El período finaliza el {date}',
1650
+ subActive: 'activa',
1651
+ subTrialing: 'en período de prueba',
1652
+ subPastDue: 'pago vencido',
1653
+ subCanceled: 'cancelada',
1654
+ subUnpaid: 'sin pagar',
1655
+ subIncomplete: 'incompleta',
1656
+ subIncompleteExpired: 'pago no completado',
1657
+ subPaused: 'en pausa',
1658
+ 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.',
1659
+ licenseCached: 'Se muestra la información de licencia guardada.',
1660
+ licenseFresh: 'La información de la suscripción refleja la última actualización de pago procesada.',
1661
+ actionFailed: 'No se pudo completar la solicitud. Inténtalo de nuevo o ponte en contacto con la asistencia de la extensión.',
1662
+ manageBilling: 'Gestionar facturación',
1663
+ 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.',
1664
+ close: 'Cerrar',
1665
+ pickerTitle: 'Elige un perfil de facturación',
1666
+ pickerDescription: 'Las compras independientes pueden tener perfiles de facturación distintos. Elige uno para gestionar sus suscripciones y datos de pago.',
1667
+ pickerFirstRecorded: 'Registrado por primera vez el {date}',
1668
+ pickerCancel: 'Cancelar',
1669
+ },
1670
+ 'pt-BR': {
1671
+ title: 'Desbloqueie os recursos premium',
1672
+ description: 'Faça o upgrade para ter acesso completo a esta extensão.',
1673
+ upgrade: 'Fazer upgrade',
1674
+ cancel: 'Agora não',
1675
+ dismiss: 'Dispensar',
1676
+ remindLater: 'Lembrar mais tarde',
1677
+ continueFree: 'Continuar com a versão gratuita',
1678
+ checkoutUnavailable: 'Compras temporariamente indisponíveis',
1679
+ periodMonth: '/mês',
1680
+ periodYear: '/ano',
1681
+ periodOnce: 'pagamento único',
1682
+ footer: 'O checkout seguro abre em uma nova guia.',
1683
+ restorePurchase: 'Restaurar compra',
1684
+ featuresHeading: 'Recursos premium',
1685
+ plansHeading: 'Escolha seu plano',
1686
+ freePlanName: 'Gratuito',
1687
+ premiumPlanName: 'Premium',
1688
+ popularBadge: 'Mais popular',
1689
+ unlockHeading: 'Desbloqueie os recursos premium',
1690
+ simulatePurchase: 'Simular compra',
1691
+ mockNotice: 'Prévia de desenvolvimento: licenças e pagamentos são simulados. Nenhum valor será cobrado.',
1692
+ sellerProvidedBy: 'Licença fornecida por {name}',
1693
+ sellerUnavailable: 'Os dados do fornecedor da licença não estão disponíveis.',
1694
+ sellerSupport: 'Suporte da extensão',
1695
+ sellerTerms: 'Termos de licença',
1696
+ sellerRefunds: 'Política de reembolso',
1697
+ 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.',
1698
+ licenseTitle: 'Sua licença',
1699
+ licenseFallbackName: 'Licença da extensão',
1700
+ licenseNone: 'Nenhuma licença encontrada nesta instalação.',
1701
+ kindOneTime: 'Compra única',
1702
+ kindLifetime: 'Licença vitalícia',
1703
+ kindSubscription: 'Assinatura',
1704
+ kindLicense: 'Licença',
1705
+ statusLine: 'Status: {status}',
1706
+ statusActive: 'ativo',
1707
+ statusGrace: 'período de carência',
1708
+ statusExpired: 'expirado',
1709
+ statusNone: 'sem acesso',
1710
+ accessEnded: 'Acesso encerrado em {date}',
1711
+ accessUntil: 'Acesso até {date}',
1712
+ accessRecordedEnd: 'Data de término registrada: {date}',
1713
+ subscriptionLine: 'Assinatura: {status}',
1714
+ renewalCanceled: 'Renovação cancelada',
1715
+ periodEnds: 'Período termina em {date}',
1716
+ subActive: 'ativa',
1717
+ subTrialing: 'em período de teste',
1718
+ subPastDue: 'pagamento em atraso',
1719
+ subCanceled: 'cancelada',
1720
+ subUnpaid: 'não paga',
1721
+ subIncomplete: 'incompleta',
1722
+ subIncompleteExpired: 'pagamento não concluído',
1723
+ subPaused: 'pausada',
1724
+ 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.',
1725
+ licenseCached: 'Exibindo as informações de licença salvas.',
1726
+ licenseFresh: 'As informações da assinatura refletem a atualização de pagamento processada mais recente.',
1727
+ actionFailed: 'Não foi possível concluir a solicitação. Tente novamente ou entre em contato com o suporte da extensão.',
1728
+ manageBilling: 'Gerenciar cobrança',
1729
+ noPortal: 'O portal de cobrança não foi aberto. Você pode tentar novamente ou entrar em contato com o suporte da extensão.',
1730
+ close: 'Fechar',
1731
+ pickerTitle: 'Escolha um perfil de cobrança',
1732
+ 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.',
1733
+ pickerFirstRecorded: 'Registrado pela primeira vez em {date}',
1734
+ pickerCancel: 'Cancelar',
1735
+ },
1736
+ fr: {
1737
+ title: 'Débloquez les fonctionnalités premium',
1738
+ description: 'Passez à la version supérieure pour obtenir un accès complet à cette extension.',
1739
+ upgrade: 'Mettre à niveau',
1740
+ cancel: 'Pas maintenant',
1741
+ dismiss: 'Ignorer',
1742
+ remindLater: 'Me le rappeler plus tard',
1743
+ continueFree: 'Continuer avec la version gratuite',
1744
+ checkoutUnavailable: 'Les achats sont temporairement indisponibles',
1745
+ periodMonth: '/mois',
1746
+ periodYear: '/an',
1747
+ periodOnce: 'paiement unique',
1748
+ footer: 'Le paiement sécurisé s’ouvre dans un nouvel onglet.',
1749
+ restorePurchase: 'Restaurer l’achat',
1750
+ featuresHeading: 'Fonctionnalités premium',
1751
+ plansHeading: 'Choisissez votre formule',
1752
+ freePlanName: 'Gratuit',
1753
+ premiumPlanName: 'Premium',
1754
+ popularBadge: 'Le plus populaire',
1755
+ unlockHeading: 'Débloquez les fonctionnalités premium',
1756
+ simulatePurchase: 'Simuler l’achat',
1757
+ mockNotice: 'Aperçu de développement : les licences et les paiements sont simulés. Aucun paiement ne sera prélevé.',
1758
+ sellerProvidedBy: 'Licence fournie par {name}',
1759
+ sellerUnavailable: 'Les informations sur le fournisseur de la licence ne sont pas disponibles.',
1760
+ sellerSupport: 'Assistance pour l’extension',
1761
+ sellerTerms: 'Conditions de licence',
1762
+ sellerRefunds: 'Politique de remboursement',
1763
+ 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.',
1764
+ licenseTitle: 'Votre licence',
1765
+ licenseFallbackName: 'Licence de l’extension',
1766
+ licenseNone: 'Aucune licence n’a été trouvée pour cette installation.',
1767
+ kindOneTime: 'Achat unique',
1768
+ kindLifetime: 'Licence à vie',
1769
+ kindSubscription: 'Abonnement',
1770
+ kindLicense: 'Licence',
1771
+ statusLine: 'Statut : {status}',
1772
+ statusActive: 'actif',
1773
+ statusGrace: 'période de grâce',
1774
+ statusExpired: 'expiré',
1775
+ statusNone: 'aucun accès',
1776
+ accessEnded: 'Accès terminé le {date}',
1777
+ accessUntil: 'Accès jusqu’au {date}',
1778
+ accessRecordedEnd: 'Date de fin enregistrée : {date}',
1779
+ subscriptionLine: 'Abonnement : {status}',
1780
+ renewalCanceled: 'Renouvellement annulé',
1781
+ periodEnds: 'Fin de la période le {date}',
1782
+ subActive: 'actif',
1783
+ subTrialing: 'en période d’essai',
1784
+ subPastDue: 'paiement en retard',
1785
+ subCanceled: 'résilié',
1786
+ subUnpaid: 'impayé',
1787
+ subIncomplete: 'incomplet',
1788
+ subIncompleteExpired: 'paiement non finalisé',
1789
+ subPaused: 'en pause',
1790
+ 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é.',
1791
+ licenseCached: 'Affichage des informations de licence enregistrées.',
1792
+ licenseFresh: 'Les informations d’abonnement reflètent la dernière mise à jour de paiement traitée.',
1793
+ actionFailed: 'Impossible de traiter la demande. Veuillez réessayer ou contacter l’assistance de l’extension.',
1794
+ manageBilling: 'Gérer la facturation',
1795
+ noPortal: 'Le portail de facturation ne s’est pas ouvert. Vous pouvez réessayer ou contacter l’assistance de l’extension.',
1796
+ close: 'Fermer',
1797
+ pickerTitle: 'Choisissez un profil de facturation',
1798
+ pickerDescription: 'Des achats distincts peuvent avoir des profils de facturation distincts. Choisissez-en un pour gérer ses abonnements et ses informations de paiement.',
1799
+ pickerFirstRecorded: 'Enregistré pour la première fois le {date}',
1800
+ pickerCancel: 'Annuler',
1801
+ },
1802
+ de: {
1803
+ title: 'Premium-Funktionen freischalten',
1804
+ description: 'Hol dir mit einem Upgrade vollen Zugriff auf diese Erweiterung.',
1805
+ upgrade: 'Upgraden',
1806
+ cancel: 'Jetzt nicht',
1807
+ dismiss: 'Ausblenden',
1808
+ remindLater: 'Später erinnern',
1809
+ continueFree: 'Mit der kostenlosen Version fortfahren',
1810
+ checkoutUnavailable: 'Käufe sind vorübergehend nicht möglich',
1811
+ periodMonth: '/Monat',
1812
+ periodYear: '/Jahr',
1813
+ periodOnce: 'einmalig',
1814
+ footer: 'Der sichere Bezahlvorgang öffnet sich in einem neuen Tab.',
1815
+ restorePurchase: 'Kauf wiederherstellen',
1816
+ featuresHeading: 'Premium-Funktionen',
1817
+ plansHeading: 'Wähle deinen Tarif',
1818
+ freePlanName: 'Kostenlos',
1819
+ premiumPlanName: 'Premium',
1820
+ popularBadge: 'Am beliebtesten',
1821
+ unlockHeading: 'Premium-Funktionen freischalten',
1822
+ simulatePurchase: 'Kauf simulieren',
1823
+ mockNotice: 'Entwicklungsvorschau: Lizenzen und Zahlungen werden simuliert. Es wird keine Zahlung eingezogen.',
1824
+ sellerProvidedBy: 'Lizenz bereitgestellt von {name}',
1825
+ sellerUnavailable: 'Angaben zum Lizenzgeber sind nicht verfügbar.',
1826
+ sellerSupport: 'Support für die Erweiterung',
1827
+ sellerTerms: 'Lizenzbedingungen',
1828
+ sellerRefunds: 'Rückerstattungen',
1829
+ sellerRole: 'Der Autor ist für die Funktionen der Erweiterung und die Lizenzzusagen verantwortlich. Extenshi stellt die Werkzeuge für Zahlung und Lizenzwiederherstellung bereit.',
1830
+ licenseTitle: 'Deine Lizenz',
1831
+ licenseFallbackName: 'Erweiterungslizenz',
1832
+ licenseNone: 'Für diese Installation wurde keine Lizenz gefunden.',
1833
+ kindOneTime: 'Einmalkauf',
1834
+ kindLifetime: 'Lebenslange Lizenz',
1835
+ kindSubscription: 'Abonnement',
1836
+ kindLicense: 'Lizenz',
1837
+ statusLine: 'Status: {status}',
1838
+ statusActive: 'aktiv',
1839
+ statusGrace: 'Kulanzfrist',
1840
+ statusExpired: 'abgelaufen',
1841
+ statusNone: 'kein Zugriff',
1842
+ accessEnded: 'Zugriff endete am {date}',
1843
+ accessUntil: 'Zugriff bis {date}',
1844
+ accessRecordedEnd: 'Erfasstes Enddatum: {date}',
1845
+ subscriptionLine: 'Abonnement: {status}',
1846
+ renewalCanceled: 'Wird nicht verlängert',
1847
+ periodEnds: 'Zeitraum endet am {date}',
1848
+ subActive: 'aktiv',
1849
+ subTrialing: 'Testphase',
1850
+ subPastDue: 'Zahlung überfällig',
1851
+ subCanceled: 'gekündigt',
1852
+ subUnpaid: 'unbezahlt',
1853
+ subIncomplete: 'unvollständig',
1854
+ subIncompleteExpired: 'Zahlung nicht abgeschlossen',
1855
+ subPaused: 'pausiert',
1856
+ 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.',
1857
+ licenseCached: 'Gespeicherte Lizenzinformationen werden angezeigt.',
1858
+ licenseFresh: 'Die Abonnementangaben entsprechen dem zuletzt verarbeiteten Zahlungsstand.',
1859
+ actionFailed: 'Die Anfrage konnte nicht abgeschlossen werden. Bitte versuche es erneut oder wende dich an den Support für die Erweiterung.',
1860
+ manageBilling: 'Abrechnung verwalten',
1861
+ noPortal: 'Das Abrechnungsportal wurde nicht geöffnet. Du kannst es erneut versuchen oder dich an den Support für die Erweiterung wenden.',
1862
+ close: 'Schließen',
1863
+ pickerTitle: 'Abrechnungsprofil auswählen',
1864
+ pickerDescription: 'Verschiedene Käufe können eigene Abrechnungsprofile haben. Wähle eines aus, um seine Abonnements und Zahlungsdaten zu verwalten.',
1865
+ pickerFirstRecorded: 'Erstmals erfasst am {date}',
1866
+ pickerCancel: 'Abbrechen',
1867
+ },
1868
+ it: {
1869
+ title: 'Sblocca le funzionalità premium',
1870
+ description: 'Effettua l’upgrade per ottenere l’accesso completo a questa estensione.',
1871
+ upgrade: 'Effettua l’upgrade',
1872
+ cancel: 'Non ora',
1873
+ dismiss: 'Ignora',
1874
+ remindLater: 'Ricordamelo più tardi',
1875
+ continueFree: 'Continua con la versione gratuita',
1876
+ checkoutUnavailable: 'Gli acquisti sono temporaneamente non disponibili',
1877
+ periodMonth: '/mese',
1878
+ periodYear: '/anno',
1879
+ periodOnce: 'una tantum',
1880
+ footer: 'Il checkout sicuro si apre in una nuova scheda.',
1881
+ restorePurchase: 'Ripristina acquisto',
1882
+ featuresHeading: 'Funzionalità premium',
1883
+ plansHeading: 'Scegli il tuo piano',
1884
+ freePlanName: 'Gratuito',
1885
+ premiumPlanName: 'Premium',
1886
+ popularBadge: 'Il più scelto',
1887
+ unlockHeading: 'Sblocca le funzionalità premium',
1888
+ simulatePurchase: 'Simula acquisto',
1889
+ mockNotice: 'Anteprima di sviluppo: licenze e pagamenti sono simulati. Non verrà addebitato alcun pagamento.',
1890
+ sellerProvidedBy: 'Licenza fornita da {name}',
1891
+ sellerUnavailable: 'I dettagli del fornitore della licenza non sono disponibili.',
1892
+ sellerSupport: 'Assistenza per l’estensione',
1893
+ sellerTerms: 'Termini di licenza',
1894
+ sellerRefunds: 'Politica di rimborso',
1895
+ 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.',
1896
+ licenseTitle: 'La tua licenza',
1897
+ licenseFallbackName: 'Licenza dell’estensione',
1898
+ licenseNone: 'Nessuna licenza trovata in questa installazione.',
1899
+ kindOneTime: 'Acquisto una tantum',
1900
+ kindLifetime: 'Licenza a vita',
1901
+ kindSubscription: 'Abbonamento',
1902
+ kindLicense: 'Licenza',
1903
+ statusLine: 'Stato: {status}',
1904
+ statusActive: 'attivo',
1905
+ statusGrace: 'periodo di tolleranza',
1906
+ statusExpired: 'scaduto',
1907
+ statusNone: 'nessun accesso',
1908
+ accessEnded: 'Accesso terminato il {date}',
1909
+ accessUntil: 'Accesso fino al {date}',
1910
+ accessRecordedEnd: 'Data di fine registrata: {date}',
1911
+ subscriptionLine: 'Abbonamento: {status}',
1912
+ renewalCanceled: 'Rinnovo annullato',
1913
+ periodEnds: 'Il periodo termina il {date}',
1914
+ subActive: 'attivo',
1915
+ subTrialing: 'in prova',
1916
+ subPastDue: 'pagamento in ritardo',
1917
+ subCanceled: 'disdetto',
1918
+ subUnpaid: 'non pagato',
1919
+ subIncomplete: 'incompleto',
1920
+ subIncompleteExpired: 'pagamento non completato',
1921
+ subPaused: 'in pausa',
1922
+ 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.',
1923
+ licenseCached: 'Vengono mostrate le informazioni salvate sulla licenza.',
1924
+ licenseFresh: 'Le informazioni sull’abbonamento riflettono l’ultimo aggiornamento di pagamento elaborato.',
1925
+ actionFailed: 'Impossibile completare la richiesta. Riprova o contatta l’assistenza per l’estensione.',
1926
+ manageBilling: 'Gestisci fatturazione',
1927
+ noPortal: 'Il portale di fatturazione non è stato aperto. Puoi riprovare o contattare l’assistenza per l’estensione.',
1928
+ close: 'Chiudi',
1929
+ pickerTitle: 'Scegli un profilo di fatturazione',
1930
+ pickerDescription: 'Acquisti diversi possono avere profili di fatturazione diversi. Scegline uno per gestirne gli abbonamenti e i dati di pagamento.',
1931
+ pickerFirstRecorded: 'Registrato per la prima volta il {date}',
1932
+ pickerCancel: 'Annulla',
1933
+ },
1934
+ ru: {
1935
+ title: 'Откройте доступ к премиум-функциям',
1936
+ description: 'Перейдите на премиум, чтобы получить полный доступ к этому расширению.',
1937
+ upgrade: 'Перейти на премиум',
1938
+ cancel: 'Не сейчас',
1939
+ dismiss: 'Скрыть',
1940
+ remindLater: 'Напомнить позже',
1941
+ continueFree: 'Продолжить в бесплатной версии',
1942
+ checkoutUnavailable: 'Покупки временно недоступны',
1943
+ periodMonth: '/мес.',
1944
+ periodYear: '/год',
1945
+ periodOnce: 'разово',
1946
+ footer: 'Защищённая страница оплаты откроется в новой вкладке.',
1947
+ restorePurchase: 'Восстановить покупку',
1948
+ featuresHeading: 'Премиум-функции',
1949
+ plansHeading: 'Выберите тарифный план',
1950
+ freePlanName: 'Бесплатный',
1951
+ premiumPlanName: 'Премиум',
1952
+ popularBadge: 'Самый популярный',
1953
+ unlockHeading: 'Откройте доступ к премиум-функциям',
1954
+ simulatePurchase: 'Имитировать покупку',
1955
+ mockNotice: 'Режим разработки: лицензии и платежи имитируются. Деньги не будут списаны.',
1956
+ sellerProvidedBy: 'Лицензию предоставляет {name}',
1957
+ sellerUnavailable: 'Сведения о поставщике лицензии недоступны.',
1958
+ sellerSupport: 'Поддержка расширения',
1959
+ sellerTerms: 'Условия лицензии',
1960
+ sellerRefunds: 'Возврат средств',
1961
+ sellerRole: 'Автор отвечает за работу расширения и обязательства по лицензии. Extenshi предоставляет инструменты для оплаты и восстановления лицензий.',
1962
+ licenseTitle: 'Ваша лицензия',
1963
+ licenseFallbackName: 'Лицензия на расширение',
1964
+ licenseNone: 'Для этой установки лицензия не найдена.',
1965
+ kindOneTime: 'Разовая покупка',
1966
+ kindLifetime: 'Бессрочная лицензия',
1967
+ kindSubscription: 'Подписка',
1968
+ kindLicense: 'Лицензия',
1969
+ statusLine: 'Статус: {status}',
1970
+ statusActive: 'действует',
1971
+ statusGrace: 'льготный период',
1972
+ statusExpired: 'срок истёк',
1973
+ statusNone: 'нет доступа',
1974
+ accessEnded: 'Доступ закончился: {date}',
1975
+ accessUntil: 'Доступ до {date}',
1976
+ accessRecordedEnd: 'Зафиксированная дата окончания: {date}',
1977
+ subscriptionLine: 'Подписка: {status}',
1978
+ renewalCanceled: 'Продление отменено',
1979
+ periodEnds: 'Период заканчивается: {date}',
1980
+ subActive: 'активна',
1981
+ subTrialing: 'пробный период',
1982
+ subPastDue: 'платёж просрочен',
1983
+ subCanceled: 'отменена',
1984
+ subUnpaid: 'не оплачена',
1985
+ subIncomplete: 'ожидает первого платежа',
1986
+ subIncompleteExpired: 'платёж не завершён',
1987
+ subPaused: 'приостановлена',
1988
+ licenseOffline: 'Подключитесь к интернету, чтобы проверить лицензию. Если успешной проверки не было 48 часов, платные функции приостанавливаются. Срок действия вашей покупки не истёк.',
1989
+ licenseCached: 'Показаны сохранённые сведения о лицензии.',
1990
+ licenseFresh: 'Сведения о подписке соответствуют последнему обработанному обновлению платежа.',
1991
+ actionFailed: 'Не удалось выполнить запрос. Попробуйте ещё раз или обратитесь в поддержку расширения.',
1992
+ manageBilling: 'Управление оплатой',
1993
+ noPortal: 'Портал оплаты не открылся. Можно повторить попытку или обратиться в поддержку расширения.',
1994
+ close: 'Закрыть',
1995
+ pickerTitle: 'Выберите платёжный профиль',
1996
+ pickerDescription: 'У разных покупок могут быть разные платёжные профили. Выберите профиль, чтобы управлять его подписками и платёжными данными.',
1997
+ pickerFirstRecorded: 'Впервые зафиксирован: {date}',
1998
+ pickerCancel: 'Отмена',
1999
+ },
2000
+ ja: {
2001
+ title: 'プレミアム機能をアンロック',
2002
+ description: 'アップグレードすると、この拡張機能のすべての機能をご利用いただけます。',
2003
+ upgrade: 'アップグレード',
2004
+ cancel: '今はしない',
2005
+ dismiss: '非表示にする',
2006
+ remindLater: 'あとで通知する',
2007
+ continueFree: '無料版のまま使い続ける',
2008
+ checkoutUnavailable: '一時的に購入できません',
2009
+ periodMonth: '/月',
2010
+ periodYear: '/年',
2011
+ periodOnce: '買い切り',
2012
+ footer: '安全なチェックアウト画面が新しいタブで開きます。',
2013
+ restorePurchase: '購入を復元',
2014
+ featuresHeading: 'プレミアム機能',
2015
+ plansHeading: 'プランを選択',
2016
+ freePlanName: '無料',
2017
+ premiumPlanName: 'プレミアム',
2018
+ popularBadge: '一番人気',
2019
+ unlockHeading: 'プレミアム機能をアンロック',
2020
+ simulatePurchase: '購入をシミュレート',
2021
+ mockNotice: '開発用プレビュー:ライセンスと支払いはシミュレーションです。実際の請求は発生しません。',
2022
+ sellerProvidedBy: 'ライセンス提供者:{name}',
2023
+ sellerUnavailable: 'ライセンス提供者の情報を取得できません。',
2024
+ sellerSupport: '拡張機能のサポート',
2025
+ sellerTerms: 'ライセンス条件',
2026
+ sellerRefunds: '返金ポリシー',
2027
+ sellerRole: '拡張機能の機能とライセンス上の約束については、開発者が責任を負います。Extenshiは、お支払いとライセンス復元のためのツールを提供します。',
2028
+ licenseTitle: 'ご利用のライセンス',
2029
+ licenseFallbackName: '拡張機能のライセンス',
2030
+ licenseNone: 'このインストール環境ではライセンスが見つかりませんでした。',
2031
+ kindOneTime: '買い切り',
2032
+ kindLifetime: 'ライフタイムライセンス',
2033
+ kindSubscription: 'サブスクリプション',
2034
+ kindLicense: 'ライセンス',
2035
+ statusLine: 'ステータス:{status}',
2036
+ statusActive: '有効',
2037
+ statusGrace: '猶予期間中',
2038
+ statusExpired: '期限切れ',
2039
+ statusNone: '利用不可',
2040
+ accessEnded: '利用終了日時:{date}',
2041
+ accessUntil: '利用期限:{date}',
2042
+ accessRecordedEnd: '記録上の終了日時:{date}',
2043
+ subscriptionLine: 'サブスクリプション:{status}',
2044
+ renewalCanceled: '更新停止済み',
2045
+ periodEnds: '期間終了日:{date}',
2046
+ subActive: '有効',
2047
+ subTrialing: 'トライアル中',
2048
+ subPastDue: '支払い期限超過',
2049
+ subCanceled: '解約済み',
2050
+ subUnpaid: '未払い',
2051
+ subIncomplete: '手続き未完了',
2052
+ subIncompleteExpired: '支払い未完了',
2053
+ subPaused: '一時停止中',
2054
+ licenseOffline: 'ライセンスを確認するには、インターネットに接続してください。確認に成功しないまま48時間が経過すると、有料機能は一時停止されます。ご購入が失効したわけではありません。',
2055
+ licenseCached: '保存済みのライセンス情報を表示しています。',
2056
+ licenseFresh: 'サブスクリプション情報には、処理済みの最新の支払い情報が反映されています。',
2057
+ actionFailed: 'リクエストを完了できませんでした。もう一度お試しいただくか、拡張機能のサポートにお問い合わせください。',
2058
+ manageBilling: '請求情報を管理',
2059
+ noPortal: '請求ポータルを開けませんでした。再試行するか、拡張機能のサポートにお問い合わせください。',
2060
+ close: '閉じる',
2061
+ pickerTitle: '請求プロファイルを選択',
2062
+ pickerDescription: '購入ごとに別々の請求プロファイルがある場合があります。サブスクリプションと支払い情報を管理するプロファイルを1つ選択してください。',
2063
+ pickerFirstRecorded: '初回記録日:{date}',
2064
+ pickerCancel: 'キャンセル',
2065
+ },
2066
+ ko: {
2067
+ title: '프리미엄 기능 잠금 해제',
2068
+ description: '업그레이드하면 이 확장 프로그램의 모든 기능을 이용할 수 있습니다.',
2069
+ upgrade: '업그레이드',
2070
+ cancel: '나중에',
2071
+ dismiss: '닫기',
2072
+ remindLater: '나중에 다시 알림',
2073
+ continueFree: '무료 버전으로 계속하기',
2074
+ checkoutUnavailable: '일시적으로 구매할 수 없습니다',
2075
+ periodMonth: '/월',
2076
+ periodYear: '/년',
2077
+ periodOnce: '일회성',
2078
+ footer: '안전한 결제 페이지가 새 탭에서 열립니다.',
2079
+ restorePurchase: '구매 복원',
2080
+ featuresHeading: '프리미엄 기능',
2081
+ plansHeading: '요금제 선택',
2082
+ freePlanName: '무료',
2083
+ premiumPlanName: '프리미엄',
2084
+ popularBadge: '가장 인기',
2085
+ unlockHeading: '프리미엄 기능 잠금 해제',
2086
+ simulatePurchase: '구매 시뮬레이션',
2087
+ mockNotice: '개발용 미리보기: 라이선스와 결제는 시뮬레이션됩니다. 실제로 결제되지 않습니다.',
2088
+ sellerProvidedBy: '라이선스 제공자: {name}',
2089
+ sellerUnavailable: '라이선스 제공자 정보를 확인할 수 없습니다.',
2090
+ sellerSupport: '확장 프로그램 지원',
2091
+ sellerTerms: '라이선스 약관',
2092
+ sellerRefunds: '환불 정책',
2093
+ sellerRole: '확장 프로그램의 기능과 라이선스 관련 약속은 개발자가 책임집니다. Extenshi는 결제 및 라이선스 복구 도구를 제공합니다.',
2094
+ licenseTitle: '내 라이선스',
2095
+ licenseFallbackName: '확장 프로그램 라이선스',
2096
+ licenseNone: '이 설치 환경에서 라이선스를 찾지 못했습니다.',
2097
+ kindOneTime: '일회성 구매',
2098
+ kindLifetime: '평생 라이선스',
2099
+ kindSubscription: '구독',
2100
+ kindLicense: '라이선스',
2101
+ statusLine: '상태: {status}',
2102
+ statusActive: '활성',
2103
+ statusGrace: '유예 기간 중',
2104
+ statusExpired: '만료됨',
2105
+ statusNone: '이용 권한 없음',
2106
+ accessEnded: '이용 종료 일시: {date}',
2107
+ accessUntil: '이용 기한: {date}',
2108
+ accessRecordedEnd: '기록된 종료 일시: {date}',
2109
+ subscriptionLine: '구독: {status}',
2110
+ renewalCanceled: '갱신 취소됨',
2111
+ periodEnds: '기간 종료일: {date}',
2112
+ subActive: '활성',
2113
+ subTrialing: '체험 중',
2114
+ subPastDue: '결제 연체',
2115
+ subCanceled: '해지됨',
2116
+ subUnpaid: '미결제',
2117
+ subIncomplete: '미완료',
2118
+ subIncompleteExpired: '결제 미완료',
2119
+ subPaused: '일시 중지됨',
2120
+ licenseOffline: '라이선스를 확인하려면 인터넷에 연결해 주세요. 확인에 성공하지 못한 채 48시간이 지나면 유료 기능이 일시 중지됩니다. 구매가 만료된 것은 아닙니다.',
2121
+ licenseCached: '저장된 라이선스 정보를 표시하고 있습니다.',
2122
+ licenseFresh: '구독 정보에는 가장 최근에 처리된 결제 내역이 반영되어 있습니다.',
2123
+ actionFailed: '요청을 완료할 수 없습니다. 다시 시도하거나 확장 프로그램 지원 창구에 문의해 주세요.',
2124
+ manageBilling: '결제 관리',
2125
+ noPortal: '결제 포털이 열리지 않았습니다. 다시 시도하거나 확장 프로그램 지원 창구에 문의해 주세요.',
2126
+ close: '닫기',
2127
+ pickerTitle: '결제 프로필 선택',
2128
+ pickerDescription: '구매마다 결제 프로필이 다를 수 있습니다. 구독과 결제 정보를 관리할 프로필을 하나 선택해 주세요.',
2129
+ pickerFirstRecorded: '최초 기록일: {date}',
2130
+ pickerCancel: '취소',
2131
+ },
2132
+ 'zh-CN': {
2133
+ title: '解锁高级功能',
2134
+ description: '升级即可完整使用此扩展程序。',
2135
+ upgrade: '升级',
2136
+ cancel: '以后再说',
2137
+ dismiss: '忽略',
2138
+ remindLater: '稍后提醒我',
2139
+ continueFree: '继续使用免费版',
2140
+ checkoutUnavailable: '暂时无法购买',
2141
+ periodMonth: '/月',
2142
+ periodYear: '/年',
2143
+ periodOnce: '一次性',
2144
+ footer: '安全结账页面将在新标签页中打开。',
2145
+ restorePurchase: '恢复购买',
2146
+ featuresHeading: '高级功能',
2147
+ plansHeading: '选择您的方案',
2148
+ freePlanName: '免费版',
2149
+ premiumPlanName: '高级版',
2150
+ popularBadge: '最受欢迎',
2151
+ unlockHeading: '解锁高级功能',
2152
+ simulatePurchase: '模拟购买',
2153
+ mockNotice: '开发预览:许可证和付款均为模拟,不会实际扣款。',
2154
+ sellerProvidedBy: '许可证由 {name} 提供',
2155
+ sellerUnavailable: '无法获取许可证提供方的详细信息。',
2156
+ sellerSupport: '扩展程序支持',
2157
+ sellerTerms: '许可条款',
2158
+ sellerRefunds: '退款政策',
2159
+ sellerRole: '作者负责扩展程序的功能及许可证相关承诺。Extenshi 提供支付及许可证恢复工具。',
2160
+ licenseTitle: '您的许可证',
2161
+ licenseFallbackName: '扩展程序许可证',
2162
+ licenseNone: '此安装中未找到许可证。',
2163
+ kindOneTime: '一次性购买',
2164
+ kindLifetime: '终身许可证',
2165
+ kindSubscription: '订阅',
2166
+ kindLicense: '许可证',
2167
+ statusLine: '状态:{status}',
2168
+ statusActive: '有效',
2169
+ statusGrace: '宽限期',
2170
+ statusExpired: '已过期',
2171
+ statusNone: '无使用权限',
2172
+ accessEnded: '使用权限已于 {date} 结束',
2173
+ accessUntil: '可使用至 {date}',
2174
+ accessRecordedEnd: '记录的结束日期:{date}',
2175
+ subscriptionLine: '订阅:{status}',
2176
+ renewalCanceled: '已取消续订',
2177
+ periodEnds: '当前计费周期于 {date} 结束',
2178
+ subActive: '有效',
2179
+ subTrialing: '试用中',
2180
+ subPastDue: '付款逾期',
2181
+ subCanceled: '已取消',
2182
+ subUnpaid: '未付款',
2183
+ subIncomplete: '未完成',
2184
+ subIncompleteExpired: '付款未完成',
2185
+ subPaused: '已暂停',
2186
+ licenseOffline: '请连接互联网以验证您的许可证。如果连续48小时未能成功验证,付费功能将暂停。您的购买仍然有效。',
2187
+ licenseCached: '正在显示已保存的许可证信息。',
2188
+ licenseFresh: '订阅信息反映的是最近一次已处理的付款更新。',
2189
+ actionFailed: '无法完成请求。请重试或联系扩展程序支持。',
2190
+ manageBilling: '管理账单',
2191
+ noPortal: '未能打开账单门户。您可以重试或联系扩展程序支持。',
2192
+ close: '关闭',
2193
+ pickerTitle: '选择账单资料',
2194
+ pickerDescription: '不同的购买可以有各自的账单资料。请选择一个,以管理其订阅和付款信息。',
2195
+ pickerFirstRecorded: '首次记录于 {date}',
2196
+ pickerCancel: '取消',
2197
+ },
2198
+ ar: {
2199
+ title: 'احصل على الميزات المميزة',
2200
+ description: 'قم بالترقية للوصول الكامل إلى هذه الإضافة.',
2201
+ upgrade: 'ترقية',
2202
+ cancel: 'ليس الآن',
2203
+ dismiss: 'تجاهل',
2204
+ remindLater: 'ذكّرني لاحقًا',
2205
+ continueFree: 'المتابعة بالإصدار المجاني',
2206
+ checkoutUnavailable: 'عمليات الشراء غير متاحة مؤقتًا',
2207
+ periodMonth: '/شهر',
2208
+ periodYear: '/سنة',
2209
+ periodOnce: 'لمرة واحدة',
2210
+ footer: 'تُفتح صفحة الدفع الآمن في علامة تبويب جديدة.',
2211
+ restorePurchase: 'استعادة الشراء',
2212
+ featuresHeading: 'الميزات المميزة',
2213
+ plansHeading: 'اختر خطتك',
2214
+ freePlanName: 'مجاني',
2215
+ premiumPlanName: 'مميز',
2216
+ popularBadge: 'الأكثر رواجًا',
2217
+ unlockHeading: 'احصل على الميزات المميزة',
2218
+ simulatePurchase: 'محاكاة الشراء',
2219
+ mockNotice: 'معاينة التطوير: تجري محاكاة التراخيص والمدفوعات، ولن يُحصَّل أي مبلغ.',
2220
+ sellerProvidedBy: 'الترخيص مقدَّم من البائع {name}',
2221
+ sellerUnavailable: 'بيانات مانح الترخيص غير متاحة.',
2222
+ sellerSupport: 'دعم الإضافة',
2223
+ sellerTerms: 'شروط الترخيص',
2224
+ sellerRefunds: 'سياسة استرداد المبالغ',
2225
+ sellerRole: 'يتحمّل مطوّر الإضافة المسؤولية عن وظائفها وعن التزامات الترخيص، وتوفّر Extenshi أدوات الدفع واستعادة التراخيص.',
2226
+ licenseTitle: 'ترخيصك',
2227
+ licenseFallbackName: 'ترخيص الإضافة',
2228
+ licenseNone: 'لم يُعثر على أي ترخيص في هذا التثبيت.',
2229
+ kindOneTime: 'شراء لمرة واحدة',
2230
+ kindLifetime: 'ترخيص مدى الحياة',
2231
+ kindSubscription: 'اشتراك',
2232
+ kindLicense: 'ترخيص',
2233
+ statusLine: 'الحالة: {status}',
2234
+ statusActive: 'نشطة',
2235
+ statusGrace: 'في فترة السماح',
2236
+ statusExpired: 'منتهية الصلاحية',
2237
+ statusNone: 'بلا وصول',
2238
+ accessEnded: 'انتهى الوصول في {date}',
2239
+ accessUntil: 'الوصول متاح حتى {date}',
2240
+ accessRecordedEnd: 'تاريخ الانتهاء المسجَّل: {date}',
2241
+ subscriptionLine: 'الاشتراك: {status}',
2242
+ renewalCanceled: 'أُلغي التجديد',
2243
+ periodEnds: 'تنتهي الفترة الحالية في {date}',
2244
+ subActive: 'نشط',
2245
+ subTrialing: 'فترة تجريبية',
2246
+ subPastDue: 'متأخر السداد',
2247
+ subCanceled: 'ملغى',
2248
+ subUnpaid: 'غير مدفوع',
2249
+ subIncomplete: 'غير مكتمل',
2250
+ subIncompleteExpired: 'لم يكتمل الدفع',
2251
+ subPaused: 'متوقف مؤقتًا',
2252
+ licenseOffline: 'اتصل بالإنترنت للتحقق من ترخيصك. تتوقف الميزات المدفوعة مؤقتًا إذا مرّت 48 ساعة دون تحقق ناجح. لم تنتهِ صلاحية عملية الشراء.',
2253
+ licenseCached: 'تُعرض معلومات الترخيص المحفوظة.',
2254
+ licenseFresh: 'تعكس معلومات الاشتراك آخر تحديث للدفع تمت معالجته.',
2255
+ actionFailed: 'تعذّر إكمال الطلب. يُرجى المحاولة مرة أخرى أو التواصل مع دعم الإضافة.',
2256
+ manageBilling: 'إدارة الفوترة',
2257
+ noPortal: 'لم تُفتح بوابة الفوترة. يمكنك المحاولة مرة أخرى أو التواصل مع دعم الإضافة.',
2258
+ close: 'إغلاق',
2259
+ pickerTitle: 'اختر ملف فوترة',
2260
+ pickerDescription: 'يمكن أن تكون لعمليات الشراء المنفصلة ملفات فوترة منفصلة. اختر ملفًا منها لإدارة اشتراكاته وتفاصيل الدفع الخاصة به.',
2261
+ pickerFirstRecorded: 'سُجِّل لأول مرة في {date}',
2262
+ pickerCancel: 'إلغاء',
2263
+ },
2264
+ };
2265
+ // END GENERATED TRANSLATIONS
2266
+ /** Our dictionary language for a tag: exact, then pt → pt-BR, zh(-CN/SG/Hans) → zh-CN, then the bare language. */
2267
+ function sdkLocale(locale) {
2268
+ const tag = wireLocale(locale);
2269
+ if (!tag)
2270
+ return 'en';
2271
+ const exact = SDK_LOCALES.find((l) => l.toLowerCase() === tag.toLowerCase());
2272
+ if (exact)
2273
+ return exact;
2274
+ const [lang, region] = tag.split('-');
2275
+ if (lang === 'pt')
2276
+ return 'pt-BR';
2277
+ // Traditional-script regions read English rather than Simplified characters.
2278
+ if (lang === 'zh')
2279
+ return region && ['TW', 'HK', 'MO'].includes(region) ? 'en' : 'zh-CN';
2280
+ return SDK_LOCALES.find((l) => l === lang) ?? 'en';
2281
+ }
2282
+ function sdkDir(locale) {
2283
+ const lang = wireLocale(locale)?.split('-')[0];
2284
+ return lang && ['ar', 'he', 'fa', 'ur'].includes(lang) ? 'rtl' : 'ltr';
2285
+ }
2286
+ /** English merged with the translation for `locale`. */
2287
+ function sdkStrings(locale) {
2288
+ const tag = sdkLocale(locale);
2289
+ return tag === 'en' ? SDK_STRINGS_EN : { ...SDK_STRINGS_EN, ...TRANSLATIONS[tag] };
2290
+ }
2291
+ /** Fill `{placeholders}` once; a value containing braces is inserted literally. */
2292
+ function fill(message, values) {
2293
+ return message.replace(/\{([a-z]+)\}/g, (whole, key) => values[key] ?? whole);
2294
+ }
2295
+
2296
+ /**
2297
+ * Buyer-facing withdrawal-waiver text (EU/EEA digital content, Directive
2298
+ * 2011/83/EU art. 16(m); UK CCR 2013 reg. 37), per text version and SDK
2299
+ * language. Its own module, not part of the paywall dictionary, so Lite can
2300
+ * show it without bundling every paywall string.
2301
+ *
2302
+ * The recorded consent names the version, so a version's words never change:
2303
+ * new wording is a new version here and a new PAY_WITHDRAWAL_WAIVER_VERSION.
2304
+ *
2305
+ * MIRRORED in shared-types/pay-withdrawal-waiver.ts, which the purchase
2306
+ * confirmation email quotes; shared-types/pay-withdrawal-waiver.test.ts fails
2307
+ * unless both copies are byte-identical. Change them together.
2308
+ */
2309
+ const WITHDRAWAL_WAIVER_TEXTS = {
2310
+ [PAY_WITHDRAWAL_WAIVER_VERSION]: {
2311
+ 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.',
2312
+ 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.',
2313
+ '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.',
2314
+ 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.',
2315
+ 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.',
2316
+ 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.',
2317
+ ru: 'Я соглашаюсь с тем, что {seller} немедленно начнёт предоставление цифрового контента, и подтверждаю, что утрачиваю право на отказ от договора с момента начала предоставления.',
2318
+ ja: '{seller}がデジタルコンテンツの提供を直ちに開始することに同意し、提供の開始後は撤回権を失うことを了承します。',
2319
+ ko: '{seller}의 디지털 콘텐츠 제공이 즉시 시작되는 것에 동의하며, 제공이 시작되면 청약철회권을 상실한다는 점을 확인합니다.',
2320
+ 'zh-CN': '我同意 {seller} 立即开始提供数字内容,并确认一旦开始提供,我将失去撤回权。',
2321
+ ar: 'أوافق على أن يبدأ {seller} فورًا في تقديم المحتوى الرقمي، وأُقرّ بأنني أفقد حقي في العدول عن العقد بمجرد بدء التقديم.',
2322
+ },
2323
+ };
2324
+ /**
2325
+ * The waiver text to show for `serverVersion`, and the version to send with
2326
+ * the consent. A version this SDK does not know (a newer server) shows this
2327
+ * SDK's current text and sends its version: the consent always names the words
2328
+ * actually shown.
2329
+ */
2330
+ function withdrawalWaiverText(serverVersion, locale, seller) {
2331
+ // Own keys only: `toString` / `__proto__` from a server are just unknown versions.
2332
+ const known = Object.keys(WITHDRAWAL_WAIVER_TEXTS).includes(serverVersion);
2333
+ const version = known ? serverVersion : PAY_WITHDRAWAL_WAIVER_VERSION;
2334
+ return { version, text: fill(WITHDRAWAL_WAIVER_TEXTS[version][sdkLocale(locale)], { seller }) };
2335
+ }
2336
+
1443
2337
  /**
1444
2338
  * `ExtenshiPayLite` — entitlement, feature gating and hosted checkout, without
1445
2339
  * the paywall UI. This is what the `lite` bundle exports; the full `ExtenshiPay`
@@ -1496,6 +2390,7 @@ class ExtenshiPayLite {
1496
2390
  });
1497
2391
  this.recovery = new RecoveryManager({
1498
2392
  api: this.api,
2393
+ locale: this.config.locale,
1499
2394
  publishableKey: this.config.publishableKey,
1500
2395
  storage: deps.recoveryStorage ?? createRecoveryStorage(),
1501
2396
  openUrl: deps.openUrl,
@@ -1618,12 +2513,44 @@ class ExtenshiPayLite {
1618
2513
  async onFeatureLocked(_feature, _options) {
1619
2514
  return false;
1620
2515
  }
1621
- /** Opens hosted checkout for `sku` in a new tab and resolves when the session settles. */
2516
+ /**
2517
+ * The withdrawal waiver this offer asks for, with the exact text to show
2518
+ * next to an unticked checkbox (buyer's language, seller's name filled in),
2519
+ * or null when the seller attested the extension is not distributed in the
2520
+ * EEA/UK. For UIs that call `openCheckout()` themselves — Lite, or a custom
2521
+ * paywall; the full SDK's paywall does this for you.
2522
+ */
2523
+ async getWithdrawalWaiver() {
2524
+ await this.initialize();
2525
+ try {
2526
+ const offer = await this.fetchOffer();
2527
+ if (!offer.withdrawalWaiver)
2528
+ return null;
2529
+ const seller = offer.seller?.displayName?.trim() || offer.projectName;
2530
+ return withdrawalWaiverText(offer.withdrawalWaiver.version, this.config.locale, seller);
2531
+ }
2532
+ catch (error) {
2533
+ throw this.reportError(error);
2534
+ }
2535
+ }
2536
+ /**
2537
+ * Opens hosted checkout for `sku` in a new tab and resolves when the session settles.
2538
+ *
2539
+ * Called directly (not from the paywall), this does NOT collect the EU/UK
2540
+ * withdrawal waiver. If `getWithdrawalWaiver()` returns one, your UI must
2541
+ * collect the buyer's consent and pass it as `options.withdrawalWaiver`;
2542
+ * without it this rejects with `WITHDRAWAL_WAIVER_REQUIRED` (the server
2543
+ * refuses such a checkout too).
2544
+ */
1622
2545
  async openCheckout(sku, options = {}) {
1623
2546
  await this.initialize();
1624
2547
  try {
1625
2548
  if (this.recovery.isActive())
1626
2549
  throw new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, 'Recovery is in progress');
2550
+ // A cold cache is filled here; if the offer cannot be read, the server decides.
2551
+ const offer = await this.fetchOffer().catch(() => null);
2552
+ if (offer?.withdrawalWaiver && options.withdrawalWaiver?.accepted !== true)
2553
+ throw new ExtenshiPayError(ERROR_CODES.WITHDRAWAL_WAIVER_REQUIRED, 'This offer needs the buyer to accept the withdrawal waiver; pass options.withdrawalWaiver');
1627
2554
  return await this.checkout.open(sku, options);
1628
2555
  }
1629
2556
  catch (error) {
@@ -1664,7 +2591,7 @@ class ExtenshiPayLite {
1664
2591
  await this.initialize();
1665
2592
  try {
1666
2593
  const endUserRef = await this.getEndUserRef();
1667
- let result = await this.api.getPortalUrl(endUserRef);
2594
+ let result = await this.api.getPortalUrl(endUserRef, undefined, this.config.locale);
1668
2595
  if (this.destroyed)
1669
2596
  return null;
1670
2597
  if (result.accounts?.length) {
@@ -1678,7 +2605,7 @@ class ExtenshiPayLite {
1678
2605
  // Recovery may replace this installation while the selector is open.
1679
2606
  if (endUserRef !== (await this.getEndUserRef()))
1680
2607
  throw new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, 'Installation changed; open the portal again');
1681
- result = await this.api.getPortalUrl(endUserRef, customerId);
2608
+ result = await this.api.getPortalUrl(endUserRef, customerId, this.config.locale);
1682
2609
  }
1683
2610
  if (this.destroyed)
1684
2611
  return null;
@@ -1744,97 +2671,6 @@ class ExtenshiPayLite {
1744
2671
  }
1745
2672
  ExtenshiPayLite.version = VERSION;
1746
2673
 
1747
- /** Bundled UI only. Native dialog provides modal focus containment and Escape. */
1748
- class BillingProfilePicker {
1749
- constructor() {
1750
- this.dismiss = null;
1751
- }
1752
- hide() {
1753
- this.dismiss?.();
1754
- }
1755
- show(accounts) {
1756
- this.hide();
1757
- if (typeof document === 'undefined')
1758
- throw new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, 'Provide selectAccount outside an extension page');
1759
- const host = document.createElement('div');
1760
- host.className = 'extenshi-billing-profile-host';
1761
- const root = host.attachShadow({ mode: 'open' });
1762
- const style = document.createElement('style');
1763
- style.textContent = `
1764
- 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}
1765
- dialog::backdrop{background:#10182880}h2{margin:0 0 8px;font-size:22px}p{margin:0 0 16px;color:#526078}
1766
- 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}
1767
- button:hover{background:#f3f6fa}button:focus-visible{outline:3px solid #0ea5e9;outline-offset:2px}strong,small{display:block}small{color:#526078;margin-top:4px}
1768
- `;
1769
- const dialog = document.createElement('dialog');
1770
- dialog.setAttribute('aria-labelledby', 'billing-title');
1771
- dialog.setAttribute('aria-describedby', 'billing-description');
1772
- const title = document.createElement('h2');
1773
- title.id = 'billing-title';
1774
- title.textContent = 'Choose a billing profile';
1775
- const description = document.createElement('p');
1776
- description.id = 'billing-description';
1777
- description.textContent =
1778
- 'Separate purchases can have separate billing profiles. Choose one to manage its subscriptions and payment details.';
1779
- dialog.append(title, description);
1780
- root.append(style, dialog);
1781
- document.body.append(host);
1782
- if (typeof dialog.showModal !== 'function') {
1783
- host.remove();
1784
- throw new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, 'This browser needs a custom selectAccount callback');
1785
- }
1786
- return new Promise((resolve, reject) => {
1787
- const finish = (id) => {
1788
- this.dismiss = null;
1789
- dialog.close();
1790
- host.remove();
1791
- resolve(id);
1792
- };
1793
- this.dismiss = () => finish(null);
1794
- dialog.addEventListener('cancel', (event) => {
1795
- event.preventDefault();
1796
- finish(null);
1797
- });
1798
- for (const account of accounts) {
1799
- const button = document.createElement('button');
1800
- button.type = 'button';
1801
- const label = document.createElement('strong');
1802
- label.textContent = account.label;
1803
- const detail = document.createElement('small');
1804
- const recorded = new Date(account.createdAt);
1805
- detail.textContent = Number.isNaN(recorded.getTime())
1806
- ? ''
1807
- : `First recorded ${recorded.toLocaleDateString()}`;
1808
- button.append(label, detail);
1809
- for (const subscription of account.subscriptions) {
1810
- const line = document.createElement('small');
1811
- const end = subscription.currentPeriodEnd ? new Date(subscription.currentPeriodEnd) : null;
1812
- const cancellation = subscription.cancelAtPeriodEnd
1813
- ? ` · Renewal canceled${end && !Number.isNaN(end.getTime()) ? ` · Period ends ${end.toLocaleDateString()}` : ''}`
1814
- : '';
1815
- line.textContent = `${subscription.title} · ${subscription.status.replace(/_/g, ' ')}${cancellation}`;
1816
- button.append(line);
1817
- }
1818
- button.addEventListener('click', () => finish(account.id));
1819
- dialog.append(button);
1820
- }
1821
- const cancel = document.createElement('button');
1822
- cancel.type = 'button';
1823
- cancel.textContent = 'Cancel';
1824
- cancel.addEventListener('click', () => finish(null));
1825
- dialog.append(cancel);
1826
- try {
1827
- dialog.showModal();
1828
- }
1829
- catch (error) {
1830
- this.dismiss = null;
1831
- host.remove();
1832
- reject(error);
1833
- }
1834
- });
1835
- }
1836
- }
1837
-
1838
2674
  /** Treat even server-provided links as untrusted; never render executable protocols. */
1839
2675
  function publicContactUrl(value) {
1840
2676
  try {
@@ -1849,13 +2685,11 @@ function publicContactUrl(value) {
1849
2685
  return `mailto:${encodeURIComponent(value)}`;
1850
2686
  return null;
1851
2687
  }
1852
- function sellerDetails(seller) {
2688
+ function sellerDetails(seller, t = SDK_STRINGS_EN) {
1853
2689
  const section = document.createElement('section');
1854
2690
  section.className = 'extenshi-seller-details';
1855
2691
  const name = document.createElement('p');
1856
- name.textContent = seller
1857
- ? `License provided by ${seller.displayName}`
1858
- : 'License provider details are unavailable.';
2692
+ name.textContent = seller ? fill(t.sellerProvidedBy, { name: seller.displayName }) : t.sellerUnavailable;
1859
2693
  section.append(name);
1860
2694
  const link = (label, value) => {
1861
2695
  const href = value ? publicContactUrl(value) : null;
@@ -1866,43 +2700,44 @@ function sellerDetails(seller) {
1866
2700
  a.href = href;
1867
2701
  a.target = '_blank';
1868
2702
  a.rel = 'noopener noreferrer';
1869
- a.style.marginRight = '12px';
2703
+ a.style.marginInlineEnd = '12px';
1870
2704
  section.append(a);
1871
2705
  };
1872
2706
  if (seller) {
1873
- link('Extension support', seller.supportUrl);
1874
- link('License terms', seller.termsUrl);
2707
+ link(t.sellerSupport, seller.supportUrl);
2708
+ link(t.sellerTerms, seller.termsUrl);
2709
+ link(t.sellerRefunds, seller.refundPolicyUrl ?? null);
1875
2710
  }
1876
2711
  const role = document.createElement('p');
1877
- role.textContent =
1878
- 'The author handles extension functionality and license commitments. Extenshi provides payment and license recovery tools.';
2712
+ role.textContent = t.sellerRole;
1879
2713
  section.append(role);
1880
2714
  return section;
1881
2715
  }
1882
2716
 
1883
- /**
1884
- * Every string the SDK adds on top of the templates. English only for now;
1885
- * iteration 12 T9 / 13 replaces this dictionary per locale. Do not add
1886
- * promotional claims here without marketing/legal review (see
1887
- * .claude/modules/paywall-templates.md).
1888
- */
1889
- const MOCK_PAYMENT_NOTICE = 'Development preview: licenses and payments are simulated. No payment will be taken.';
1890
- const DEFAULT_STRINGS = {
1891
- title: 'Unlock premium features',
1892
- description: 'Upgrade to get full access to this extension.',
1893
- upgrade: 'Upgrade',
1894
- cancel: 'Not now',
1895
- dismiss: 'Dismiss',
1896
- remindLater: 'Remind me later',
1897
- continueFree: 'Continue with the free version',
1898
- checkoutUnavailable: 'Purchases are temporarily unavailable',
1899
- periodMonth: '/month',
1900
- periodYear: '/year',
1901
- periodOnce: 'one-time',
1902
- footer: 'Secure checkout opens in a new tab.',
1903
- restorePurchase: 'Restore purchase',
1904
- };
1905
-
2717
+ /** A status label in the language, or the raw value for one we do not know. */
2718
+ function statusLabel(t, status) {
2719
+ const map = {
2720
+ active: t.statusActive,
2721
+ grace: t.statusGrace,
2722
+ expired: t.statusExpired,
2723
+ none: t.statusNone,
2724
+ };
2725
+ return map[status] ?? status.replace(/_/g, ' ');
2726
+ }
2727
+ /** A provider subscription status (Stripe vocabulary) in the language. */
2728
+ function subscriptionStatusLabel(t, status) {
2729
+ const map = {
2730
+ active: t.subActive,
2731
+ trialing: t.subTrialing,
2732
+ past_due: t.subPastDue,
2733
+ canceled: t.subCanceled,
2734
+ unpaid: t.subUnpaid,
2735
+ incomplete: t.subIncomplete,
2736
+ incomplete_expired: t.subIncompleteExpired,
2737
+ paused: t.subPaused,
2738
+ };
2739
+ return map[status] ?? status.replace(/_/g, ' ');
2740
+ }
1906
2741
  class LicensePanel {
1907
2742
  constructor() {
1908
2743
  this.dismiss = null;
@@ -1910,30 +2745,34 @@ class LicensePanel {
1910
2745
  hide() {
1911
2746
  this.dismiss?.();
1912
2747
  }
1913
- show(summary, actions) {
2748
+ show(summary, actions, locale = null) {
1914
2749
  this.hide();
1915
2750
  if (typeof document === 'undefined')
1916
2751
  throw new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, 'Use getLicenseSummary outside an extension page');
2752
+ const t = sdkStrings(locale);
2753
+ const lang = sdkLocale(locale);
1917
2754
  const host = document.createElement('div');
1918
2755
  host.className = 'extenshi-license-host';
2756
+ host.setAttribute('lang', lang);
2757
+ host.setAttribute('dir', sdkDir(lang));
1919
2758
  const root = host.attachShadow({ mode: 'open' });
1920
2759
  const style = document.createElement('style');
1921
2760
  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}`;
1922
2761
  const dialog = document.createElement('dialog');
1923
- dialog.setAttribute('aria-label', 'Your license');
2762
+ dialog.setAttribute('aria-label', t.licenseTitle);
1924
2763
  const title = document.createElement('h2');
1925
- title.textContent = 'Your license';
2764
+ title.textContent = t.licenseTitle;
1926
2765
  const content = document.createElement('div');
1927
2766
  const feedback = document.createElement('p');
1928
2767
  feedback.setAttribute('role', 'status');
1929
2768
  const render = (state) => {
1930
2769
  content.replaceChildren();
1931
2770
  const note = document.createElement('p');
1932
- note.textContent = state.projectName ?? 'Extension license';
2771
+ note.textContent = state.projectName ?? t.licenseFallbackName;
1933
2772
  content.append(note);
1934
2773
  if (!state.entitlement.items.length) {
1935
2774
  const empty = document.createElement('p');
1936
- empty.textContent = 'No license found on this installation.';
2775
+ empty.textContent = t.licenseNone;
1937
2776
  content.append(empty);
1938
2777
  }
1939
2778
  for (const item of state.entitlement.items) {
@@ -1943,37 +2782,42 @@ class LicensePanel {
1943
2782
  const status = document.createElement('p');
1944
2783
  const kind = item.kind === 'one_time'
1945
2784
  ? item.expiresAt
1946
- ? 'One-time purchase'
1947
- : 'Lifetime'
2785
+ ? t.kindOneTime
2786
+ : t.kindLifetime
1948
2787
  : item.kind === 'subscription'
1949
- ? 'Subscription'
1950
- : 'License';
1951
- status.textContent = `${kind} · ${item.status}`;
2788
+ ? t.kindSubscription
2789
+ : t.kindLicense;
2790
+ status.textContent = `${kind} · ${fill(t.statusLine, { status: statusLabel(t, item.status) })}`;
1952
2791
  article.append(heading, status);
1953
2792
  if (item.expiresAt) {
1954
2793
  const date = new Date(item.expiresAt);
1955
2794
  if (!Number.isNaN(date.getTime())) {
1956
2795
  const expiry = document.createElement('p');
1957
- expiry.textContent = `${item.status === 'expired' ? 'Access ended' : item.status === 'active' || item.status === 'grace' ? 'Access until' : 'Recorded end date'} ${date.toLocaleString()}`;
2796
+ const when = date.toLocaleString(lang);
2797
+ expiry.textContent = fill(item.status === 'expired'
2798
+ ? t.accessEnded
2799
+ : item.status === 'active' || item.status === 'grace'
2800
+ ? t.accessUntil
2801
+ : t.accessRecordedEnd, { date: when });
1958
2802
  article.append(expiry);
1959
2803
  }
1960
2804
  }
1961
2805
  for (const sub of item.subscriptions ?? []) {
1962
2806
  const row = document.createElement('p');
1963
- row.textContent = `Subscription: ${sub.status.replace(/_/g, ' ')}${sub.cancelAtPeriodEnd ? ' · Renewal canceled' : ''}`;
2807
+ row.textContent = `${fill(t.subscriptionLine, { status: subscriptionStatusLabel(t, sub.status) })}${sub.cancelAtPeriodEnd ? ` · ${t.renewalCanceled}` : ''}`;
1964
2808
  article.append(row);
1965
2809
  }
1966
2810
  content.append(article);
1967
2811
  }
1968
2812
  const freshness = document.createElement('p');
1969
2813
  freshness.textContent = state.entitlement.requiresOnlineCheck
1970
- ? 'Connect to the internet to verify your license. Paid features are paused after 48 hours without a successful check. Your purchase has not expired.'
2814
+ ? t.licenseOffline
1971
2815
  : state.entitlement.source === 'mock'
1972
- ? MOCK_PAYMENT_NOTICE
2816
+ ? t.mockNotice
1973
2817
  : state.entitlement.source === 'cache'
1974
- ? 'Showing saved license information.'
1975
- : 'Subscription information reflects the latest processed payment update.';
1976
- content.append(freshness, sellerDetails(state.seller));
2818
+ ? t.licenseCached
2819
+ : t.licenseFresh;
2820
+ content.append(freshness, sellerDetails(state.seller, t));
1977
2821
  };
1978
2822
  render(summary);
1979
2823
  dialog.append(title, content, feedback);
@@ -2012,8 +2856,7 @@ class LicensePanel {
2012
2856
  }
2013
2857
  catch {
2014
2858
  if (!closed)
2015
- feedback.textContent =
2016
- 'Unable to complete the request. Please try again or contact extension support.';
2859
+ feedback.textContent = t.actionFailed;
2017
2860
  }
2018
2861
  finally {
2019
2862
  if (!closed)
@@ -2026,20 +2869,20 @@ class LicensePanel {
2026
2869
  dialog.append(button);
2027
2870
  };
2028
2871
  if (summary.recoveryEnabled)
2029
- action('Restore purchase', async () => {
2872
+ action(t.restorePurchase, async () => {
2030
2873
  const updated = await actions.restore();
2031
2874
  if (!closed)
2032
2875
  render(updated);
2033
2876
  });
2034
2877
  if (summary.entitlement.source !== 'mock')
2035
- action('Manage billing', async () => {
2878
+ action(t.manageBilling, async () => {
2036
2879
  const url = await actions.manage();
2037
2880
  if (!url && !closed)
2038
- feedback.textContent = 'No billing portal opened. You can retry or contact extension support.';
2881
+ feedback.textContent = t.noPortal;
2039
2882
  });
2040
2883
  const done = document.createElement('button');
2041
2884
  done.type = 'button';
2042
- done.textContent = 'Close';
2885
+ done.textContent = t.close;
2043
2886
  done.addEventListener('click', close);
2044
2887
  dialog.append(done);
2045
2888
  try {
@@ -2054,6 +2897,172 @@ class LicensePanel {
2054
2897
  }
2055
2898
  }
2056
2899
 
2900
+ /** Bundled UI only. Native dialog provides modal focus containment and Escape. */
2901
+ class BillingProfilePicker {
2902
+ constructor() {
2903
+ this.dismiss = null;
2904
+ }
2905
+ hide() {
2906
+ this.dismiss?.();
2907
+ }
2908
+ show(accounts, locale = null) {
2909
+ this.hide();
2910
+ if (typeof document === 'undefined')
2911
+ throw new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, 'Provide selectAccount outside an extension page');
2912
+ const t = sdkStrings(locale);
2913
+ const lang = sdkLocale(locale);
2914
+ const host = document.createElement('div');
2915
+ host.className = 'extenshi-billing-profile-host';
2916
+ host.setAttribute('lang', lang);
2917
+ host.setAttribute('dir', sdkDir(lang));
2918
+ const root = host.attachShadow({ mode: 'open' });
2919
+ const style = document.createElement('style');
2920
+ style.textContent = `
2921
+ 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}
2922
+ dialog::backdrop{background:#10182880}h2{margin:0 0 8px;font-size:22px}p{margin:0 0 16px;color:#526078}
2923
+ 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}
2924
+ button:hover{background:#f3f6fa}button:focus-visible{outline:3px solid #0ea5e9;outline-offset:2px}strong,small{display:block}small{color:#526078;margin-top:4px}
2925
+ `;
2926
+ const dialog = document.createElement('dialog');
2927
+ dialog.setAttribute('aria-labelledby', 'billing-title');
2928
+ dialog.setAttribute('aria-describedby', 'billing-description');
2929
+ const title = document.createElement('h2');
2930
+ title.id = 'billing-title';
2931
+ title.textContent = t.pickerTitle;
2932
+ const description = document.createElement('p');
2933
+ description.id = 'billing-description';
2934
+ description.textContent = t.pickerDescription;
2935
+ dialog.append(title, description);
2936
+ root.append(style, dialog);
2937
+ document.body.append(host);
2938
+ if (typeof dialog.showModal !== 'function') {
2939
+ host.remove();
2940
+ throw new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, 'This browser needs a custom selectAccount callback');
2941
+ }
2942
+ return new Promise((resolve, reject) => {
2943
+ const finish = (id) => {
2944
+ this.dismiss = null;
2945
+ dialog.close();
2946
+ host.remove();
2947
+ resolve(id);
2948
+ };
2949
+ this.dismiss = () => finish(null);
2950
+ dialog.addEventListener('cancel', (event) => {
2951
+ event.preventDefault();
2952
+ finish(null);
2953
+ });
2954
+ for (const account of accounts) {
2955
+ const button = document.createElement('button');
2956
+ button.type = 'button';
2957
+ const label = document.createElement('strong');
2958
+ label.textContent = account.label;
2959
+ const detail = document.createElement('small');
2960
+ const recorded = new Date(account.createdAt);
2961
+ detail.textContent = Number.isNaN(recorded.getTime())
2962
+ ? ''
2963
+ : fill(t.pickerFirstRecorded, { date: recorded.toLocaleDateString(lang) });
2964
+ button.append(label, detail);
2965
+ for (const subscription of account.subscriptions) {
2966
+ const line = document.createElement('small');
2967
+ const end = subscription.currentPeriodEnd ? new Date(subscription.currentPeriodEnd) : null;
2968
+ const cancellation = subscription.cancelAtPeriodEnd
2969
+ ? ` · ${t.renewalCanceled}${end && !Number.isNaN(end.getTime()) ? ` · ${fill(t.periodEnds, { date: end.toLocaleDateString(lang) })}` : ''}`
2970
+ : '';
2971
+ line.textContent = `${subscription.title} · ${subscriptionStatusLabel(t, subscription.status)}${cancellation}`;
2972
+ button.append(line);
2973
+ }
2974
+ button.addEventListener('click', () => finish(account.id));
2975
+ dialog.append(button);
2976
+ }
2977
+ const cancel = document.createElement('button');
2978
+ cancel.type = 'button';
2979
+ cancel.textContent = t.pickerCancel;
2980
+ cancel.addEventListener('click', () => finish(null));
2981
+ dialog.append(cancel);
2982
+ try {
2983
+ dialog.showModal();
2984
+ }
2985
+ catch (error) {
2986
+ this.dismiss = null;
2987
+ host.remove();
2988
+ reject(error);
2989
+ }
2990
+ });
2991
+ }
2992
+ }
2993
+
2994
+ /**
2995
+ * The paywall's header image: the extension's own icon in place of the
2996
+ * templates' generic glyph (lock, layers).
2997
+ *
2998
+ * Only images from the extension package or `data:image/` URLs: a remote
2999
+ * image would be a request to a third party on every paywall view. The
3000
+ * manifest icon is the default on the extension's own pages (popup, options)
3001
+ * only. A content script runs on the site's origin, where the package's files
3002
+ * load only when `web_accessible_resources` lists them, and the SDK never asks
3003
+ * for that.
3004
+ */
3005
+ const DATA_IMAGE_RE = /^data:image\/[\w.+-]+[;,]/i;
3006
+ /** `chrome-extension://<id>/`, `moz-extension://<uuid>/`, `safari-web-extension://<id>/`. */
3007
+ const PACKAGE_BASE_RE = /^[a-z-]+-extension:\/\/[^/]+\/$/;
3008
+ function extensionRuntime() {
3009
+ const g = globalThis;
3010
+ return g.chrome?.runtime ?? g.browser?.runtime;
3011
+ }
3012
+ function packageBase(runtime) {
3013
+ try {
3014
+ const base = runtime?.getURL?.('');
3015
+ return typeof base === 'string' && PACKAGE_BASE_RE.test(base) ? base : null;
3016
+ }
3017
+ catch {
3018
+ return null;
3019
+ }
3020
+ }
3021
+ function onExtensionPage(base) {
3022
+ const href = globalThis.location?.href;
3023
+ return typeof href === 'string' && href.startsWith(base);
3024
+ }
3025
+ function largestIcon(runtime) {
3026
+ let best = null;
3027
+ try {
3028
+ for (const [size, path] of Object.entries(runtime?.getManifest?.().icons ?? {})) {
3029
+ const n = Number(size);
3030
+ if (typeof path === 'string' && path && Number.isFinite(n) && (!best || n > best[0]))
3031
+ best = [n, path];
3032
+ }
3033
+ }
3034
+ catch {
3035
+ /* No manifest to read. */
3036
+ }
3037
+ return best?.[1] ?? '';
3038
+ }
3039
+ /**
3040
+ * The header image for `PaywallOptions.icon`, or null to keep the template's
3041
+ * glyph: `false` opts out, a `data:image/` URL is used anywhere, a package path
3042
+ * (or the manifest's largest icon by default) only on the extension's pages.
3043
+ */
3044
+ function paywallIconUrl(option) {
3045
+ if (option === false)
3046
+ return null;
3047
+ const explicit = typeof option === 'string' ? option.trim() : '';
3048
+ if (DATA_IMAGE_RE.test(explicit))
3049
+ return explicit;
3050
+ const runtime = extensionRuntime();
3051
+ const base = packageBase(runtime);
3052
+ if (!base || !onExtensionPage(base))
3053
+ return null;
3054
+ const path = explicit || largestIcon(runtime);
3055
+ if (!path)
3056
+ return null;
3057
+ try {
3058
+ const url = new URL(path, base).href;
3059
+ return url.startsWith(base) ? url : null;
3060
+ }
3061
+ catch {
3062
+ return null;
3063
+ }
3064
+ }
3065
+
2057
3066
  function formatPrice(amountMinor, currency, locale) {
2058
3067
  const value = amountMinor / 100;
2059
3068
  const code = currency.toUpperCase();
@@ -2083,22 +3092,58 @@ function periodLabel(offer, strings) {
2083
3092
  return offer.interval === 'year' ? strings.periodYear : strings.periodMonth;
2084
3093
  }
2085
3094
 
2086
- 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)}}";
3095
+ /**
3096
+ * The paywall's strings in a locale, from the SDK dictionary (./i18n.ts).
3097
+ * Do not add promotional claims without marketing/legal review (see
3098
+ * .claude/modules/paywall-templates.md).
3099
+ */
3100
+ function paywallStrings(t) {
3101
+ return {
3102
+ title: t.title,
3103
+ description: t.description,
3104
+ upgrade: t.upgrade,
3105
+ cancel: t.cancel,
3106
+ dismiss: t.dismiss,
3107
+ remindLater: t.remindLater,
3108
+ continueFree: t.continueFree,
3109
+ checkoutUnavailable: t.checkoutUnavailable,
3110
+ periodMonth: t.periodMonth,
3111
+ periodYear: t.periodYear,
3112
+ periodOnce: t.periodOnce,
3113
+ footer: t.footer,
3114
+ restorePurchase: t.restorePurchase,
3115
+ featuresHeading: t.featuresHeading,
3116
+ plansHeading: t.plansHeading,
3117
+ freePlanName: t.freePlanName,
3118
+ premiumPlanName: t.premiumPlanName,
3119
+ popularBadge: t.popularBadge,
3120
+ unlockHeading: t.unlockHeading,
3121
+ };
3122
+ }
3123
+ /** English (the default and the fallback). */
3124
+ const DEFAULT_STRINGS = paywallStrings(SDK_STRINGS_EN);
3125
+ SDK_STRINGS_EN.mockNotice;
3126
+ /** The paywall strings for `locale` (English when we have no translation). */
3127
+ function stringsFor(locale) {
3128
+ return paywallStrings(sdkStrings(locale));
3129
+ }
3130
+
3131
+ 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-link:var(--ep-primary-700);--ep-link-hover:var(--ep-primary-800);--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-link:var(--ep-primary-300);--ep-link-hover:var(--ep-primary-200);--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}a,a:visited{color:var(--ep-link);text-decoration:underline;text-underline-offset:2px}a:hover{color:var(--ep-link-hover)}.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)}}";
2087
3132
 
2088
- 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>";
3133
+ 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>";
2089
3134
  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}}";
2090
3135
 
2091
- 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>";
3136
+ 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>";
2092
3137
  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}}";
2093
3138
 
2094
3139
  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>";
2095
3140
  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)}";
2096
3141
 
2097
- 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>";
2098
- 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}}";
3142
+ 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><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>{{feature4}}</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>{{feature5}}</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>{{feature6}}</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>";
3143
+ 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-pricing-header:last-child,.ep-pricing-price:last-child{margin-bottom: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}}";
2099
3144
 
2100
- 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>";
2101
- 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}}";
3145
+ 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>";
3146
+ 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-pricing-header:last-child,.ep-pricing-price:last-child{margin-bottom: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}}";
2102
3147
 
2103
3148
  /**
2104
3149
  * The five templates from `@extenshi/paywall-templates`, inlined at build
@@ -2126,6 +3171,8 @@ const PAYWALL_MODES = Object.keys(PAYWALL_TEMPLATES);
2126
3171
  */
2127
3172
  const PAYWALL_HOST_CLASS = 'extenshi-paywall-host';
2128
3173
  const UPGRADE_ACTIONS = new Set(['upgradeNow', 'startUpgrade']);
3174
+ const UPGRADE_SELECTOR = '[data-ep-action="upgradeNow"], [data-ep-action="startUpgrade"]';
3175
+ const WITHDRAWAL_WAIVER_CLASS = 'extenshi-withdrawal-waiver';
2129
3176
  const CLOSE_ACTIONS = new Set([
2130
3177
  'closePaywall',
2131
3178
  'closeSidebar',
@@ -2160,6 +3207,9 @@ const VISIBLE_CLASSES = {
2160
3207
  };
2161
3208
  /** Template blocks the contract has no data for (trials, usage meters). */
2162
3209
  const PRUNE_SELECTOR = '[class*="-trial"], .ep-sidebar-progress';
3210
+ /** Glyphs that stand for the product: on a gradient tile, or next to the brand name. */
3211
+ const ICON_TILE_SELECTOR = '.ep-modal-icon, .ep-inline-icon, .ep-minimal-icon, .ep-hero-icon';
3212
+ const ICON_LOGO_SELECTOR = '.ep-fullscreen-logo, .ep-sidebar-logo';
2163
3213
  /**
2164
3214
  * Templates stagger their feature rows in with this class from their demo
2165
3215
  * script (sidebar, fullscreen); without it the rows sit at opacity 0.
@@ -2167,8 +3217,11 @@ const PRUNE_SELECTOR = '[class*="-trial"], .ep-sidebar-progress';
2167
3217
  const FEATURE_ITEM_VISIBLE = ['.ep-feature-item', 'ep-feature-item-visible'];
2168
3218
  /** Containers of a single feature slot; dropped when the slot's placeholder is empty. */
2169
3219
  const FEATURE_SLOT_SELECTOR = 'li, .ep-feature-card, .ep-feature-item, .ep-pricing-feature, .ep-feature';
3220
+ /** Feature sections and lists (with their headings); dropped once no slot is left in them. */
3221
+ const FEATURE_BLOCK_SELECTOR = '[class*="-features"]';
2170
3222
  const EMPTY_SLOT_MARK = 'data-ep-empty';
2171
- const FEATURE_KEY_RE = /^(feature\d+(Title)?|premiumFeature\d+|freeFeature\d+)$/;
3223
+ /** Placeholders whose element is dropped when empty: feature slots and the price card's copy. */
3224
+ const OPTIONAL_KEY_RE = /^(feature\d+(Title)?|premiumFeature\d+|freeFeature\d+|pricingDescription|priceDescription|premiumDescription)$/;
2172
3225
  function escapeHtml(value) {
2173
3226
  return value
2174
3227
  .replace(/&/g, '&amp;')
@@ -2180,7 +3233,7 @@ function escapeHtml(value) {
2180
3233
  function substitute(html, content) {
2181
3234
  return html.replace(/\{\{(\w+)\}\}/g, (_match, key) => {
2182
3235
  const value = content[key] ?? '';
2183
- if (value === '' && FEATURE_KEY_RE.test(key))
3236
+ if (value === '' && OPTIONAL_KEY_RE.test(key))
2184
3237
  return `<i ${EMPTY_SLOT_MARK}></i>`;
2185
3238
  return escapeHtml(value);
2186
3239
  });
@@ -2188,6 +3241,10 @@ function substitute(html, content) {
2188
3241
  function buildContent(view, strings) {
2189
3242
  const offer = view.offer;
2190
3243
  const price = offer ? formatPrice(offer.amountMinor, offer.currency, view.locale) : null;
3244
+ // Without a `description` option the header already shows the offer's
3245
+ // description (ExtenshiPay.showPaywall); the price card must not repeat it.
3246
+ const offerDescription = offer?.description?.trim() ?? '';
3247
+ const priceCopy = offerDescription === view.description.trim() ? '' : offerDescription;
2191
3248
  const content = {
2192
3249
  title: view.title,
2193
3250
  description: view.description,
@@ -2195,15 +3252,21 @@ function buildContent(view, strings) {
2195
3252
  currency: price?.currency ?? '',
2196
3253
  price: price?.amount ?? '',
2197
3254
  period: offer ? periodLabel(offer, strings) : '',
2198
- pricingDescription: offer?.description ?? '',
2199
- priceDescription: offer?.description ?? '',
2200
- premiumDescription: offer?.description ?? '',
3255
+ pricingDescription: priceCopy,
3256
+ priceDescription: priceCopy,
3257
+ premiumDescription: priceCopy,
2201
3258
  upgradeButtonText: view.checkoutEnabled && offer ? strings.upgrade : strings.checkoutUnavailable,
2202
3259
  cancelButtonText: strings.cancel,
2203
3260
  dismissButtonText: strings.dismiss,
2204
3261
  remindLaterText: strings.remindLater,
2205
3262
  continueButtonText: strings.continueFree,
2206
3263
  footerText: strings.footer,
3264
+ featuresHeading: strings.featuresHeading,
3265
+ plansHeading: strings.plansHeading,
3266
+ freePlanName: strings.freePlanName,
3267
+ premiumPlanName: strings.premiumPlanName,
3268
+ popularBadge: strings.popularBadge,
3269
+ unlockHeading: strings.unlockHeading,
2207
3270
  };
2208
3271
  view.features.forEach((feature, index) => {
2209
3272
  const n = index + 1;
@@ -2216,13 +3279,37 @@ function buildContent(view, strings) {
2216
3279
  });
2217
3280
  return content;
2218
3281
  }
3282
+ /** Who supplies the content: the seller's public name, else the project/brand name. */
3283
+ function waiverSellerName(view) {
3284
+ return view.seller?.displayName?.trim() || view.brandName.trim() || view.title;
3285
+ }
2219
3286
  const CSS_VALUE_UNSAFE = /[;{}<>]/g;
3287
+ /**
3288
+ * The rest of the primary scale, as the share of `primaryColor` mixed with
3289
+ * white (tints) or black (shades). Price cards and links use these steps; left
3290
+ * at the defaults they stay sky blue next to a button in the author's colour.
3291
+ */
3292
+ const PRIMARY_TINTS = [
3293
+ [50, 8],
3294
+ [100, 16],
3295
+ [200, 32],
3296
+ [300, 52],
3297
+ [400, 76],
3298
+ ];
3299
+ const PRIMARY_SHADES = [
3300
+ [800, 72],
3301
+ [900, 52],
3302
+ ];
2220
3303
  function themeCss(theme) {
2221
3304
  const declarations = [];
2222
3305
  const safe = (value) => value.replace(CSS_VALUE_UNSAFE, '');
2223
3306
  if (theme.primaryColor) {
2224
3307
  const color = safe(theme.primaryColor);
2225
3308
  declarations.push(`--ep-primary-500:${color}`, `--ep-primary-600:${color}`, `--ep-primary-700:${color}`);
3309
+ for (const [step, percent] of PRIMARY_TINTS)
3310
+ declarations.push(`--ep-primary-${step}:color-mix(in srgb,${color} ${percent}%,white)`);
3311
+ for (const [step, percent] of PRIMARY_SHADES)
3312
+ declarations.push(`--ep-primary-${step}:color-mix(in srgb,${color} ${percent}%,black)`);
2226
3313
  }
2227
3314
  if (theme.fontFamily)
2228
3315
  declarations.push(`--ep-font-family-sans:${safe(theme.fontFamily)}`);
@@ -2262,25 +3349,42 @@ class PaywallRenderer {
2262
3349
  const template = PAYWALL_TEMPLATES[view.mode];
2263
3350
  if (!template)
2264
3351
  throw new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, `Unknown paywall mode "${view.mode}"`);
2265
- const strings = { ...DEFAULT_STRINGS, ...view.strings };
3352
+ const t = sdkStrings(view.locale);
3353
+ const strings = { ...stringsFor(view.locale), ...view.strings };
2266
3354
  if (view.mock) {
2267
- strings.upgrade = 'Simulate purchase';
2268
- strings.footer = MOCK_PAYMENT_NOTICE;
3355
+ strings.upgrade = t.simulatePurchase;
3356
+ strings.footer = t.mockNotice;
2269
3357
  }
2270
3358
  const host = doc.createElement('div');
2271
3359
  host.className = PAYWALL_HOST_CLASS;
2272
3360
  host.setAttribute('data-theme', resolveThemeMode(view.theme));
3361
+ // The shadow tree inherits the host's language: screen readers and
3362
+ // hyphenation read the strings in the language they are written in.
3363
+ host.setAttribute('lang', sdkLocale(view.locale));
3364
+ host.setAttribute('dir', sdkDir(sdkLocale(view.locale)));
2273
3365
  const root = typeof host.attachShadow === 'function' ? host.attachShadow({ mode: 'open' }) : host;
2274
3366
  root.innerHTML =
2275
3367
  `<style>${PAYWALL_SHARED_CSS}${template.css}${themeCss(view.theme)}</style>` +
2276
3368
  substitute(template.html, buildContent(view, strings));
2277
3369
  this.prune(root);
2278
- this.bind(root, view, doc);
3370
+ if (view.icon)
3371
+ this.placeIcon(root, doc, view.icon);
3372
+ const waiver = view.offer && view.checkoutEnabled && view.withdrawalWaiver
3373
+ ? withdrawalWaiverText(view.withdrawalWaiver.version, view.locale, waiverSellerName(view))
3374
+ : null;
3375
+ const waiverBox = waiver ? doc.createElement('input') : null;
3376
+ // undefined: no waiver asked → onUpgrade(sku) exactly as before; null: not ticked yet.
3377
+ const consent = () => {
3378
+ if (!waiver)
3379
+ return undefined;
3380
+ return waiverBox?.checked ? { withdrawalWaiver: { version: waiver.version, accepted: true } } : null;
3381
+ };
3382
+ this.bind(root, view, doc, consent);
2279
3383
  const sellerMount = root.querySelector('[class*="-footer"], .ep-minimal-actions, .ep-inline-content, .ep-fullscreen-content');
2280
3384
  if (sellerMount) {
2281
- const details = sellerDetails(view.seller ?? null);
3385
+ const details = sellerDetails(view.seller ?? null, t);
2282
3386
  details.style.cssText =
2283
- 'font-size:12px;line-height:1.5;margin-top:12px;text-align:left;white-space:normal';
3387
+ 'font-size:12px;line-height:1.5;margin-top:12px;text-align:start;white-space:normal;color:var(--ep-text-secondary)';
2284
3388
  // In the modal, disclose the provider before the purchase action,
2285
3389
  // instead of below it in the scrollable footer.
2286
3390
  const modalActions = root.querySelector('.ep-modal-actions');
@@ -2290,15 +3394,17 @@ class PaywallRenderer {
2290
3394
  sellerMount.append(details);
2291
3395
  }
2292
3396
  if (view.mock) {
2293
- const upgrade = root.querySelector('[data-ep-action="upgradeNow"], [data-ep-action="startUpgrade"]');
3397
+ const upgrade = root.querySelector(UPGRADE_SELECTOR);
2294
3398
  if (upgrade) {
2295
3399
  const notice = doc.createElement('p');
2296
3400
  notice.className = 'extenshi-payment-preview';
2297
- notice.textContent = MOCK_PAYMENT_NOTICE;
3401
+ notice.textContent = t.mockNotice;
2298
3402
  notice.style.cssText = 'font-size:13px;line-height:1.5;margin:12px 0;white-space:normal';
2299
3403
  upgrade.before(notice);
2300
3404
  }
2301
3405
  }
3406
+ if (waiver && waiverBox)
3407
+ this.mountWaiver(root, doc, waiver.text, waiverBox);
2302
3408
  if (view.recoveryEnabled && this.callbacks.onRestore) {
2303
3409
  const footer = root.querySelector('[class*="-footer"], .ep-minimal-actions, .ep-inline-content, .ep-fullscreen-content');
2304
3410
  if (footer) {
@@ -2334,6 +3440,12 @@ class PaywallRenderer {
2334
3440
  const slot = mark.parentElement?.closest(FEATURE_SLOT_SELECTOR) ?? mark.parentElement;
2335
3441
  (slot ?? mark).remove();
2336
3442
  }
3443
+ // Every slot empty (no `features` passed): drop the section with its
3444
+ // heading, so no "Premium Features" title sits over nothing.
3445
+ for (const block of root.querySelectorAll(FEATURE_BLOCK_SELECTOR)) {
3446
+ if (!block.querySelector(FEATURE_SLOT_SELECTOR))
3447
+ block.remove();
3448
+ }
2337
3449
  // A button whose label placeholder the contract does not fill (trial
2338
3450
  // CTAs on sidebar/fullscreen) would render as an empty pill; icon-only
2339
3451
  // buttons (close) keep their SVG and stay.
@@ -2342,7 +3454,70 @@ class PaywallRenderer {
2342
3454
  button.remove();
2343
3455
  }
2344
3456
  }
2345
- bind(root, view, doc) {
3457
+ /**
3458
+ * Swaps the templates' product glyphs for the extension's icon. A tile's
3459
+ * gradient only backs the white glyph, so it goes too; an image that fails
3460
+ * to load puts the glyph (and the gradient) back.
3461
+ */
3462
+ placeIcon(root, doc, url) {
3463
+ for (const slot of root.querySelectorAll(`${ICON_TILE_SELECTOR}, ${ICON_LOGO_SELECTOR}`)) {
3464
+ const glyph = Array.from(slot.children).find((child) => child.localName === 'svg');
3465
+ if (!glyph)
3466
+ continue;
3467
+ const tile = slot.matches(ICON_TILE_SELECTOR);
3468
+ const size = Number(glyph.getAttribute('width')) || 32;
3469
+ const img = doc.createElement('img');
3470
+ img.alt = '';
3471
+ img.style.cssText = tile
3472
+ ? 'width:100%;height:100%;object-fit:contain'
3473
+ : `width:${size}px;height:${size}px;object-fit:contain`;
3474
+ img.addEventListener('error', () => {
3475
+ img.replaceWith(glyph);
3476
+ if (tile)
3477
+ slot.style.removeProperty('background');
3478
+ });
3479
+ img.src = url;
3480
+ if (tile)
3481
+ slot.style.background = 'none';
3482
+ glyph.replaceWith(img);
3483
+ }
3484
+ }
3485
+ /**
3486
+ * Inserts the unticked waiver checkbox right before the first upgrade
3487
+ * button and keeps every upgrade button disabled until it is ticked.
3488
+ */
3489
+ mountWaiver(root, doc, text, input) {
3490
+ const buttons = Array.from(root.querySelectorAll(UPGRADE_SELECTOR));
3491
+ const first = buttons[0];
3492
+ if (!first)
3493
+ return;
3494
+ const label = doc.createElement('label');
3495
+ label.className = WITHDRAWAL_WAIVER_CLASS;
3496
+ label.style.cssText =
3497
+ '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';
3498
+ input.type = 'checkbox';
3499
+ input.checked = false;
3500
+ input.style.cssText = 'flex:none;width:16px;height:16px;margin:2px 0 0;cursor:pointer';
3501
+ const span = doc.createElement('span');
3502
+ span.textContent = text;
3503
+ label.append(input, span);
3504
+ first.before(label);
3505
+ const sync = () => {
3506
+ for (const button of buttons) {
3507
+ if (input.checked) {
3508
+ button.removeAttribute('disabled');
3509
+ button.removeAttribute('aria-disabled');
3510
+ }
3511
+ else {
3512
+ button.setAttribute('disabled', '');
3513
+ button.setAttribute('aria-disabled', 'true');
3514
+ }
3515
+ }
3516
+ };
3517
+ input.addEventListener('change', sync);
3518
+ sync();
3519
+ }
3520
+ bind(root, view, doc, consent) {
2346
3521
  for (const element of root.querySelectorAll('[data-ep-action]')) {
2347
3522
  const action = element.getAttribute('data-ep-action') ?? '';
2348
3523
  if (UPGRADE_ACTIONS.has(action)) {
@@ -2350,7 +3525,15 @@ class PaywallRenderer {
2350
3525
  const sku = view.offer.sku;
2351
3526
  element.addEventListener('click', (event) => {
2352
3527
  event.preventDefault();
2353
- this.callbacks.onUpgrade(sku);
3528
+ const given = consent();
3529
+ // Waiver shown but not ticked: a disabled button cannot be
3530
+ // clicked, but never start checkout without consent anyway.
3531
+ if (given === null)
3532
+ return;
3533
+ if (given)
3534
+ this.callbacks.onUpgrade(sku, given);
3535
+ else
3536
+ this.callbacks.onUpgrade(sku);
2354
3537
  });
2355
3538
  }
2356
3539
  else {
@@ -2417,7 +3600,7 @@ class ExtenshiPay extends ExtenshiPayLite {
2417
3600
  async openCustomerPortal(options = {}) {
2418
3601
  return super.openCustomerPortal({
2419
3602
  ...options,
2420
- selectAccount: options.selectAccount ?? ((accounts) => this.billingProfiles.show(accounts)),
3603
+ selectAccount: options.selectAccount ?? ((accounts) => this.billingProfiles.show(accounts, this.config.locale)),
2421
3604
  });
2422
3605
  }
2423
3606
  destroy() {
@@ -2439,7 +3622,7 @@ class ExtenshiPay extends ExtenshiPayLite {
2439
3622
  return this.getLicenseSummary({ force: true });
2440
3623
  },
2441
3624
  manage: () => this.openCustomerPortal(),
2442
- });
3625
+ }, this.config.locale);
2443
3626
  }
2444
3627
  async getOffer(options = {}) {
2445
3628
  await this.initialize();
@@ -2465,18 +3648,23 @@ class ExtenshiPay extends ExtenshiPayLite {
2465
3648
  this.reportError(error);
2466
3649
  }
2467
3650
  const selected = pickOffer(offer, options.sku);
3651
+ const defaults = stringsFor(this.config.locale);
2468
3652
  const view = {
2469
3653
  mode: options.mode ?? 'modal',
2470
- title: options.title ?? selected?.title ?? DEFAULT_STRINGS.title,
2471
- description: options.description ?? selected?.description ?? DEFAULT_STRINGS.description,
2472
- features: options.features ?? selected?.features ?? [],
3654
+ title: options.title ?? selected?.title ?? defaults.title,
3655
+ description: options.description ?? selected?.description ?? defaults.description,
3656
+ // The offer's `features` are entitlement keys ('full'), not display
3657
+ // text: bullets come from the caller only, or the block is dropped.
3658
+ features: options.features ?? [],
2473
3659
  freeFeatures: options.freeFeatures ?? [],
3660
+ icon: paywallIconUrl(options.icon),
2474
3661
  brandName: offer?.projectName ?? '',
2475
3662
  offer: selected,
2476
3663
  checkoutEnabled: offer?.checkoutEnabled === true && selected !== null && offer.seller !== null,
2477
3664
  mock: this.config.mock,
2478
3665
  recoveryEnabled: offer?.recoveryEnabled === true,
2479
3666
  seller: offer?.seller ?? null,
3667
+ withdrawalWaiver: offer?.withdrawalWaiver ?? null,
2480
3668
  locale: this.config.locale,
2481
3669
  theme: { ...this.config.theme, ...options.theme },
2482
3670
  strings: options.strings ?? {},
@@ -2514,7 +3702,7 @@ class ExtenshiPay extends ExtenshiPayLite {
2514
3702
  renderer() {
2515
3703
  if (!this.paywall) {
2516
3704
  this.paywall = new PaywallRenderer({
2517
- onUpgrade: (sku) => void this.handleUpgrade(sku),
3705
+ onUpgrade: (sku, consent) => void this.handleUpgrade(sku, consent),
2518
3706
  onClose: () => this.settlePaywall(false),
2519
3707
  onRestore: () => void this.handleRestore(),
2520
3708
  });
@@ -2533,10 +3721,13 @@ class ExtenshiPay extends ExtenshiPayLite {
2533
3721
  /* Reported through the error event; leave the paywall open for retry. */
2534
3722
  }
2535
3723
  }
2536
- async handleUpgrade(sku) {
2537
- this.paywallSession?.options.onUpgrade?.(sku);
3724
+ async handleUpgrade(sku, consent) {
3725
+ if (consent)
3726
+ this.paywallSession?.options.onUpgrade?.(sku, consent);
3727
+ else
3728
+ this.paywallSession?.options.onUpgrade?.(sku);
2538
3729
  try {
2539
- const result = await this.openCheckout(sku);
3730
+ const result = await this.openCheckout(sku, consent?.withdrawalWaiver ? { withdrawalWaiver: consent.withdrawalWaiver } : {});
2540
3731
  if (result.state === 'complete') {
2541
3732
  this.paywall?.hide();
2542
3733
  this.settlePaywall(true);
@@ -2598,11 +3789,14 @@ exports.PAY_OFFER_KINDS = PAY_OFFER_KINDS;
2598
3789
  exports.PAY_PUBLISHABLE_KEY_HEX_LENGTH = PAY_PUBLISHABLE_KEY_HEX_LENGTH;
2599
3790
  exports.PAY_PUBLISHABLE_KEY_PREFIX = PAY_PUBLISHABLE_KEY_PREFIX;
2600
3791
  exports.PAY_SKU_RE = PAY_SKU_RE;
3792
+ exports.PAY_WITHDRAWAL_WAIVER_VERSION = PAY_WITHDRAWAL_WAIVER_VERSION;
2601
3793
  exports.PayApi = PayApi;
2602
3794
  exports.PaywallRenderer = PaywallRenderer;
2603
3795
  exports.RecoveryManager = RecoveryManager;
2604
3796
  exports.TRPC_PATH = TRPC_PATH;
2605
3797
  exports.VERSION = VERSION;
3798
+ exports.WITHDRAWAL_WAIVER_CLASS = WITHDRAWAL_WAIVER_CLASS;
3799
+ exports.WITHDRAWAL_WAIVER_TEXTS = WITHDRAWAL_WAIVER_TEXTS;
2606
3800
  exports.applyLocalExpiry = applyLocalExpiry;
2607
3801
  exports.base64ToBytes = base64ToBytes;
2608
3802
  exports.buildContent = buildContent;
@@ -2629,4 +3823,5 @@ exports.substitute = substitute;
2629
3823
  exports.themeCss = themeCss;
2630
3824
  exports.trpcErrorToPayError = trpcErrorToPayError;
2631
3825
  exports.verifyEntitlementSignature = verifyEntitlementSignature;
3826
+ exports.withdrawalWaiverText = withdrawalWaiverText;
2632
3827
  //# sourceMappingURL=extenshi-pay.cjs.js.map