@extenshi/pay 0.8.0 → 0.11.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 (76) hide show
  1. package/README.md +134 -19
  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 +9 -4
  5. package/dist/api/pay-api.d.ts.map +1 -1
  6. package/dist/core/config.d.ts.map +1 -1
  7. package/dist/core/extenshi-pay.d.ts +60 -5
  8. package/dist/core/extenshi-pay.d.ts.map +1 -1
  9. package/dist/core/index.d.ts +3 -1
  10. package/dist/core/index.d.ts.map +1 -1
  11. package/dist/core/storage.d.ts +6 -0
  12. package/dist/core/storage.d.ts.map +1 -1
  13. package/dist/core.d.mts +280 -27
  14. package/dist/core.d.ts +280 -27
  15. package/dist/core.js +566 -44
  16. package/dist/core.js.map +1 -1
  17. package/dist/core.mjs +562 -45
  18. package/dist/core.mjs.map +1 -1
  19. package/dist/extenshi-pay-lite.js +555 -44
  20. package/dist/extenshi-pay-lite.js.map +1 -1
  21. package/dist/extenshi-pay-lite.min.js +3 -3
  22. package/dist/extenshi-pay-lite.min.js.map +1 -1
  23. package/dist/extenshi-pay-lite.mjs +555 -44
  24. package/dist/extenshi-pay-lite.mjs.map +1 -1
  25. package/dist/extenshi-pay.cjs.js +823 -69
  26. package/dist/extenshi-pay.cjs.js.map +1 -1
  27. package/dist/extenshi-pay.d.ts +11 -1
  28. package/dist/extenshi-pay.d.ts.map +1 -1
  29. package/dist/extenshi-pay.js +823 -69
  30. package/dist/extenshi-pay.js.map +1 -1
  31. package/dist/extenshi-pay.min.js +3 -3
  32. package/dist/extenshi-pay.min.js.map +1 -1
  33. package/dist/extenshi-pay.min.mjs +3 -3
  34. package/dist/extenshi-pay.min.mjs.map +1 -1
  35. package/dist/extenshi-pay.mjs +819 -70
  36. package/dist/extenshi-pay.mjs.map +1 -1
  37. package/dist/index.d.mts +305 -27
  38. package/dist/index.d.ts +305 -27
  39. package/dist/lite.d.mts +224 -14
  40. package/dist/lite.d.ts +224 -14
  41. package/dist/lite.d.ts.map +1 -1
  42. package/dist/payment/cloud-backup.d.ts +35 -0
  43. package/dist/payment/cloud-backup.d.ts.map +1 -0
  44. package/dist/payment/entitlement.d.ts +21 -5
  45. package/dist/payment/entitlement.d.ts.map +1 -1
  46. package/dist/payment/recovery.d.ts +4 -2
  47. package/dist/payment/recovery.d.ts.map +1 -1
  48. package/dist/payment/signature.d.ts +29 -3
  49. package/dist/payment/signature.d.ts.map +1 -1
  50. package/dist/payment/trial.d.ts +55 -0
  51. package/dist/payment/trial.d.ts.map +1 -0
  52. package/dist/paywall/i18n.d.ts +3 -0
  53. package/dist/paywall/i18n.d.ts.map +1 -1
  54. package/dist/paywall/icon.d.ts +18 -0
  55. package/dist/paywall/icon.d.ts.map +1 -0
  56. package/dist/paywall/renderer.d.ts +15 -0
  57. package/dist/paywall/renderer.d.ts.map +1 -1
  58. package/dist/paywall.d.mts +27 -1
  59. package/dist/paywall.d.ts +27 -1
  60. package/dist/paywall.js +131 -25
  61. package/dist/paywall.js.map +1 -1
  62. package/dist/paywall.mjs +131 -25
  63. package/dist/paywall.mjs.map +1 -1
  64. package/dist/types/config.d.ts +27 -1
  65. package/dist/types/config.d.ts.map +1 -1
  66. package/dist/types/contract.d.ts +35 -0
  67. package/dist/types/contract.d.ts.map +1 -1
  68. package/dist/types/entitlement.d.ts +37 -1
  69. package/dist/types/entitlement.d.ts.map +1 -1
  70. package/dist/types/events.d.ts +5 -1
  71. package/dist/types/events.d.ts.map +1 -1
  72. package/dist/types/paywall.d.ts +22 -1
  73. package/dist/types/paywall.d.ts.map +1 -1
  74. package/dist/version.d.ts +1 -1
  75. package/dist/version.d.ts.map +1 -1
  76. package/package.json +3 -2
@@ -1 +1 @@
1
- {"version":3,"file":"paywall.mjs","sources":["../src/core/locale.ts","../src/paywall/i18n.ts","../src/types/contract.ts","../src/payment/withdrawal-waiver.ts","../src/paywall/format.ts","../src/types/errors.ts","../src/paywall/seller-details.ts","../src/paywall/strings.ts","../../extension_templates/paywall-templates/fullscreen/template.html","../../extension_templates/paywall-templates/inline/template.html","../../extension_templates/paywall-templates/minimal/template.html","../../extension_templates/paywall-templates/modal/template.html","../../extension_templates/paywall-templates/sidebar/template.html","../src/paywall/templates.ts","../src/paywall/renderer.ts"],"sourcesContent":["/**\n * The user's language as the SDK sends it. Kept apart from the paywall\n * dictionary (../paywall/i18n.ts) so the Lite and core bundles, which never\n * render UI, do not carry the translations.\n */\n\n/** What the backend (and older backends) accept as a locale: `de`, `pt-BR`, `zh-CN`. */\nconst WIRE_LOCALE_RE = /^[a-z]{2}(-[A-Za-z]{2,4})?$/\n\n/**\n * A browser tag as the SDK sends it: `pt_BR` → `pt-BR`, `es-419` → `es`,\n * `zh-Hant-TW` → `zh-TW`; null for anything that is not a language tag.\n */\nexport function wireLocale(raw: unknown): string | null {\n\tif (typeof raw !== 'string') return null\n\tconst parts = raw.trim().replace(/_/g, '-').split('-').filter(Boolean)\n\tconst lang = parts[0]?.toLowerCase()\n\tif (!lang || !/^[a-z]{2}$/.test(lang)) return null\n\tconst script = parts\n\t\t.slice(1)\n\t\t.find((p) => /^[A-Za-z]{4}$/.test(p))\n\t\t?.toLowerCase()\n\t// zh-Hant without a region is Traditional Chinese: keep that, never let it read as zh-CN.\n\tconst region =\n\t\tparts.slice(1).find((p) => /^[A-Za-z]{2}$/.test(p)) ??\n\t\t(lang === 'zh' && script === 'hant' ? 'TW' : undefined)\n\tconst tag = region ? `${lang}-${region.toUpperCase()}` : lang\n\treturn WIRE_LOCALE_RE.test(tag) ? tag : lang\n}\n\n/** The browser UI language (`chrome.i18n.getUILanguage()`, else `navigator.language`), or null. */\nexport function browserLocale(): string | null {\n\tconst g = globalThis as {\n\t\tchrome?: { i18n?: { getUILanguage?: () => string } }\n\t\tbrowser?: { i18n?: { getUILanguage?: () => string } }\n\t\tnavigator?: { language?: string }\n\t}\n\ttry {\n\t\tconst ui = g.chrome?.i18n?.getUILanguage?.() ?? g.browser?.i18n?.getUILanguage?.()\n\t\tif (ui) return wireLocale(ui)\n\t} catch {\n\t\t/* Not an extension context. */\n\t}\n\treturn wireLocale(g.navigator?.language)\n}\n","/**\n * Every string the SDK shows to the USER of an extension — paywall, license\n * dialog, billing-profile picker, seller details — in the end-user languages\n * (ROADMAP it. 13 T10, stage L2; closes it. 12 T9). Developer-facing error\n * messages stay English.\n *\n * Self-contained on purpose: the SDK ships inside third-party extensions with\n * no runtime dependencies and no remote code, so the dictionary is compiled\n * in. Placeholders are `{name}`, `{date}`, `{status}`. A missing\n * translation falls back to English, never to an empty string. The same\n * languages as the hosted pages (shared-types END_USER_LOCALES); keep the\n * lists in sync.\n */\n\nexport { browserLocale, wireLocale } from '../core/locale.js'\n\nimport { wireLocale } from '../core/locale.js'\n\nexport const SDK_LOCALES = ['en', 'es', 'pt-BR', 'fr', 'de', 'it', 'ru', 'ja', 'ko', 'zh-CN', 'ar'] as const\nexport type SdkLocale = (typeof SDK_LOCALES)[number]\n\nexport const SDK_STRINGS_EN = {\n\ttitle: 'Unlock premium features',\n\tdescription: 'Upgrade to get full access to this extension.',\n\tupgrade: 'Upgrade',\n\tcancel: 'Not now',\n\tdismiss: 'Dismiss',\n\tremindLater: 'Remind me later',\n\tcontinueFree: 'Continue with the free version',\n\tcheckoutUnavailable: 'Purchases are temporarily unavailable',\n\tperiodMonth: '/month',\n\tperiodYear: '/year',\n\tperiodOnce: 'one-time',\n\tfooter: 'Secure checkout opens in a new tab.',\n\trestorePurchase: 'Restore purchase',\n\tfeaturesHeading: 'Premium Features',\n\tplansHeading: 'Choose Your Plan',\n\tfreePlanName: 'Free',\n\tpremiumPlanName: 'Premium',\n\tpopularBadge: 'Most Popular',\n\tunlockHeading: 'Unlock Premium Features',\n\tsimulatePurchase: 'Simulate purchase',\n\tmockNotice: 'Development preview: licenses and payments are simulated. No payment will be taken.',\n\tsellerProvidedBy: 'License provided by {name}',\n\tsellerUnavailable: 'License provider details are unavailable.',\n\tsellerSupport: 'Extension support',\n\tsellerTerms: 'License terms',\n\tsellerRefunds: 'Refund policy',\n\tsellerRole:\n\t\t'The author handles extension functionality and license commitments. Extenshi provides payment and license recovery tools.',\n\tlicenseTitle: 'Your license',\n\tlicenseFallbackName: 'Extension license',\n\tlicenseNone: 'No license found on this installation.',\n\tkindOneTime: 'One-time purchase',\n\tkindLifetime: 'Lifetime',\n\tkindSubscription: 'Subscription',\n\tkindLicense: 'License',\n\tstatusLine: 'Status: {status}',\n\tstatusActive: 'active',\n\tstatusGrace: 'grace period',\n\tstatusExpired: 'expired',\n\tstatusNone: 'no access',\n\taccessEnded: 'Access ended {date}',\n\taccessUntil: 'Access until {date}',\n\taccessRecordedEnd: 'Recorded end date {date}',\n\tsubscriptionLine: 'Subscription: {status}',\n\trenewalCanceled: 'Renewal canceled',\n\tperiodEnds: 'Period ends {date}',\n\tsubActive: 'active',\n\tsubTrialing: 'trial',\n\tsubPastDue: 'payment overdue',\n\tsubCanceled: 'canceled',\n\tsubUnpaid: 'unpaid',\n\tsubIncomplete: 'incomplete',\n\tsubIncompleteExpired: 'payment not completed',\n\tsubPaused: 'paused',\n\tlicenseOffline:\n\t\t'Connect to the internet to verify your license. Paid features are paused after 48 hours without a successful check. Your purchase has not expired.',\n\tlicenseCached: 'Showing saved license information.',\n\tlicenseFresh: 'Subscription information reflects the latest processed payment update.',\n\tactionFailed: 'Unable to complete the request. Please try again or contact extension support.',\n\tmanageBilling: 'Manage billing',\n\tnoPortal: 'No billing portal opened. You can retry or contact extension support.',\n\tclose: 'Close',\n\tpickerTitle: 'Choose a billing profile',\n\tpickerDescription:\n\t\t'Separate purchases can have separate billing profiles. Choose one to manage its subscriptions and payment details.',\n\tpickerFirstRecorded: 'First recorded {date}',\n\tpickerCancel: 'Cancel',\n}\n\nexport type SdkStringKey = keyof typeof SDK_STRINGS_EN\nexport type SdkStrings = Record<SdkStringKey, string>\n\n// BEGIN GENERATED TRANSLATIONS\nconst TRANSLATIONS: Partial<Record<Exclude<SdkLocale, 'en'>, SdkStrings>> = {\n\tes: {\n\t\ttitle: 'Desbloquea las funciones premium',\n\t\tdescription: 'Mejora tu plan para obtener acceso completo a esta extensión.',\n\t\tupgrade: 'Mejorar plan',\n\t\tcancel: 'Ahora no',\n\t\tdismiss: 'Descartar',\n\t\tremindLater: 'Recordármelo más tarde',\n\t\tcontinueFree: 'Seguir con la versión gratuita',\n\t\tcheckoutUnavailable: 'Compras no disponibles temporalmente',\n\t\tperiodMonth: '/mes',\n\t\tperiodYear: '/año',\n\t\tperiodOnce: 'pago único',\n\t\tfooter: 'El pago seguro se abre en una pestaña nueva.',\n\t\trestorePurchase: 'Restaurar compra',\n\t\tfeaturesHeading: 'Funciones premium',\n\t\tplansHeading: 'Elige tu plan',\n\t\tfreePlanName: 'Gratis',\n\t\tpremiumPlanName: 'Premium',\n\t\tpopularBadge: 'Más popular',\n\t\tunlockHeading: 'Desbloquea las funciones premium',\n\t\tsimulatePurchase: 'Simular compra',\n\t\tmockNotice:\n\t\t\t'Vista previa de desarrollo: las licencias y los pagos son simulados. No se realizará ningún cobro.',\n\t\tsellerProvidedBy: 'Licencia proporcionada por {name}',\n\t\tsellerUnavailable: 'Los datos del proveedor de la licencia no están disponibles.',\n\t\tsellerSupport: 'Asistencia de la extensión',\n\t\tsellerTerms: 'Condiciones de licencia',\n\t\tsellerRefunds: 'Política de reembolsos',\n\t\tsellerRole:\n\t\t\t'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.',\n\t\tlicenseTitle: 'Tu licencia',\n\t\tlicenseFallbackName: 'Licencia de la extensión',\n\t\tlicenseNone: 'No se ha encontrado ninguna licencia en esta instalación.',\n\t\tkindOneTime: 'Compra única',\n\t\tkindLifetime: 'Licencia vitalicia',\n\t\tkindSubscription: 'Suscripción',\n\t\tkindLicense: 'Licencia',\n\t\tstatusLine: 'Estado: {status}',\n\t\tstatusActive: 'activo',\n\t\tstatusGrace: 'período de gracia',\n\t\tstatusExpired: 'caducado',\n\t\tstatusNone: 'sin acceso',\n\t\taccessEnded: 'Acceso finalizado el {date}',\n\t\taccessUntil: 'Acceso hasta el {date}',\n\t\taccessRecordedEnd: 'Fecha de finalización registrada: {date}',\n\t\tsubscriptionLine: 'Suscripción: {status}',\n\t\trenewalCanceled: 'Renovación cancelada',\n\t\tperiodEnds: 'El período finaliza el {date}',\n\t\tsubActive: 'activa',\n\t\tsubTrialing: 'en período de prueba',\n\t\tsubPastDue: 'pago vencido',\n\t\tsubCanceled: 'cancelada',\n\t\tsubUnpaid: 'sin pagar',\n\t\tsubIncomplete: 'incompleta',\n\t\tsubIncompleteExpired: 'pago no completado',\n\t\tsubPaused: 'en pausa',\n\t\tlicenseOffline:\n\t\t\t'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.',\n\t\tlicenseCached: 'Se muestra la información de licencia guardada.',\n\t\tlicenseFresh: 'La información de la suscripción refleja la última actualización de pago procesada.',\n\t\tactionFailed:\n\t\t\t'No se pudo completar la solicitud. Inténtalo de nuevo o ponte en contacto con la asistencia de la extensión.',\n\t\tmanageBilling: 'Gestionar facturación',\n\t\tnoPortal:\n\t\t\t'No se abrió ningún portal de facturación. Puedes volver a intentarlo o ponerte en contacto con la asistencia de la extensión.',\n\t\tclose: 'Cerrar',\n\t\tpickerTitle: 'Elige un perfil de facturación',\n\t\tpickerDescription:\n\t\t\t'Las compras independientes pueden tener perfiles de facturación distintos. Elige uno para gestionar sus suscripciones y datos de pago.',\n\t\tpickerFirstRecorded: 'Registrado por primera vez el {date}',\n\t\tpickerCancel: 'Cancelar',\n\t},\n\t'pt-BR': {\n\t\ttitle: 'Desbloqueie os recursos premium',\n\t\tdescription: 'Faça o upgrade para ter acesso completo a esta extensão.',\n\t\tupgrade: 'Fazer upgrade',\n\t\tcancel: 'Agora não',\n\t\tdismiss: 'Dispensar',\n\t\tremindLater: 'Lembrar mais tarde',\n\t\tcontinueFree: 'Continuar com a versão gratuita',\n\t\tcheckoutUnavailable: 'Compras temporariamente indisponíveis',\n\t\tperiodMonth: '/mês',\n\t\tperiodYear: '/ano',\n\t\tperiodOnce: 'pagamento único',\n\t\tfooter: 'O checkout seguro abre em uma nova guia.',\n\t\trestorePurchase: 'Restaurar compra',\n\t\tfeaturesHeading: 'Recursos premium',\n\t\tplansHeading: 'Escolha seu plano',\n\t\tfreePlanName: 'Gratuito',\n\t\tpremiumPlanName: 'Premium',\n\t\tpopularBadge: 'Mais popular',\n\t\tunlockHeading: 'Desbloqueie os recursos premium',\n\t\tsimulatePurchase: 'Simular compra',\n\t\tmockNotice: 'Prévia de desenvolvimento: licenças e pagamentos são simulados. Nenhum valor será cobrado.',\n\t\tsellerProvidedBy: 'Licença fornecida por {name}',\n\t\tsellerUnavailable: 'Os dados do fornecedor da licença não estão disponíveis.',\n\t\tsellerSupport: 'Suporte da extensão',\n\t\tsellerTerms: 'Termos de licença',\n\t\tsellerRefunds: 'Política de reembolso',\n\t\tsellerRole:\n\t\t\t'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.',\n\t\tlicenseTitle: 'Sua licença',\n\t\tlicenseFallbackName: 'Licença da extensão',\n\t\tlicenseNone: 'Nenhuma licença encontrada nesta instalação.',\n\t\tkindOneTime: 'Compra única',\n\t\tkindLifetime: 'Licença vitalícia',\n\t\tkindSubscription: 'Assinatura',\n\t\tkindLicense: 'Licença',\n\t\tstatusLine: 'Status: {status}',\n\t\tstatusActive: 'ativo',\n\t\tstatusGrace: 'período de carência',\n\t\tstatusExpired: 'expirado',\n\t\tstatusNone: 'sem acesso',\n\t\taccessEnded: 'Acesso encerrado em {date}',\n\t\taccessUntil: 'Acesso até {date}',\n\t\taccessRecordedEnd: 'Data de término registrada: {date}',\n\t\tsubscriptionLine: 'Assinatura: {status}',\n\t\trenewalCanceled: 'Renovação cancelada',\n\t\tperiodEnds: 'Período termina em {date}',\n\t\tsubActive: 'ativa',\n\t\tsubTrialing: 'em período de teste',\n\t\tsubPastDue: 'pagamento em atraso',\n\t\tsubCanceled: 'cancelada',\n\t\tsubUnpaid: 'não paga',\n\t\tsubIncomplete: 'incompleta',\n\t\tsubIncompleteExpired: 'pagamento não concluído',\n\t\tsubPaused: 'pausada',\n\t\tlicenseOffline:\n\t\t\t'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.',\n\t\tlicenseCached: 'Exibindo as informações de licença salvas.',\n\t\tlicenseFresh: 'As informações da assinatura refletem a atualização de pagamento processada mais recente.',\n\t\tactionFailed:\n\t\t\t'Não foi possível concluir a solicitação. Tente novamente ou entre em contato com o suporte da extensão.',\n\t\tmanageBilling: 'Gerenciar cobrança',\n\t\tnoPortal:\n\t\t\t'O portal de cobrança não foi aberto. Você pode tentar novamente ou entrar em contato com o suporte da extensão.',\n\t\tclose: 'Fechar',\n\t\tpickerTitle: 'Escolha um perfil de cobrança',\n\t\tpickerDescription:\n\t\t\t'Compras diferentes podem ter perfis de cobrança diferentes. Escolha um perfil para gerenciar as assinaturas e os dados de pagamento vinculados a ele.',\n\t\tpickerFirstRecorded: 'Registrado pela primeira vez em {date}',\n\t\tpickerCancel: 'Cancelar',\n\t},\n\tfr: {\n\t\ttitle: 'Débloquez les fonctionnalités premium',\n\t\tdescription: 'Passez à la version supérieure pour obtenir un accès complet à cette extension.',\n\t\tupgrade: 'Mettre à niveau',\n\t\tcancel: 'Pas maintenant',\n\t\tdismiss: 'Ignorer',\n\t\tremindLater: 'Me le rappeler plus tard',\n\t\tcontinueFree: 'Continuer avec la version gratuite',\n\t\tcheckoutUnavailable: 'Les achats sont temporairement indisponibles',\n\t\tperiodMonth: '/mois',\n\t\tperiodYear: '/an',\n\t\tperiodOnce: 'paiement unique',\n\t\tfooter: 'Le paiement sécurisé s’ouvre dans un nouvel onglet.',\n\t\trestorePurchase: 'Restaurer l’achat',\n\t\tfeaturesHeading: 'Fonctionnalités premium',\n\t\tplansHeading: 'Choisissez votre formule',\n\t\tfreePlanName: 'Gratuit',\n\t\tpremiumPlanName: 'Premium',\n\t\tpopularBadge: 'Le plus populaire',\n\t\tunlockHeading: 'Débloquez les fonctionnalités premium',\n\t\tsimulatePurchase: 'Simuler l’achat',\n\t\tmockNotice:\n\t\t\t'Aperçu de développement : les licences et les paiements sont simulés. Aucun paiement ne sera prélevé.',\n\t\tsellerProvidedBy: 'Licence fournie par {name}',\n\t\tsellerUnavailable: 'Les informations sur le fournisseur de la licence ne sont pas disponibles.',\n\t\tsellerSupport: 'Assistance pour l’extension',\n\t\tsellerTerms: 'Conditions de licence',\n\t\tsellerRefunds: 'Politique de remboursement',\n\t\tsellerRole:\n\t\t\t'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.',\n\t\tlicenseTitle: 'Votre licence',\n\t\tlicenseFallbackName: 'Licence de l’extension',\n\t\tlicenseNone: 'Aucune licence n’a été trouvée pour cette installation.',\n\t\tkindOneTime: 'Achat unique',\n\t\tkindLifetime: 'Licence à vie',\n\t\tkindSubscription: 'Abonnement',\n\t\tkindLicense: 'Licence',\n\t\tstatusLine: 'Statut : {status}',\n\t\tstatusActive: 'actif',\n\t\tstatusGrace: 'période de grâce',\n\t\tstatusExpired: 'expiré',\n\t\tstatusNone: 'aucun accès',\n\t\taccessEnded: 'Accès terminé le {date}',\n\t\taccessUntil: 'Accès jusqu’au {date}',\n\t\taccessRecordedEnd: 'Date de fin enregistrée : {date}',\n\t\tsubscriptionLine: 'Abonnement : {status}',\n\t\trenewalCanceled: 'Renouvellement annulé',\n\t\tperiodEnds: 'Fin de la période le {date}',\n\t\tsubActive: 'actif',\n\t\tsubTrialing: 'en période d’essai',\n\t\tsubPastDue: 'paiement en retard',\n\t\tsubCanceled: 'résilié',\n\t\tsubUnpaid: 'impayé',\n\t\tsubIncomplete: 'incomplet',\n\t\tsubIncompleteExpired: 'paiement non finalisé',\n\t\tsubPaused: 'en pause',\n\t\tlicenseOffline:\n\t\t\t'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é.',\n\t\tlicenseCached: 'Affichage des informations de licence enregistrées.',\n\t\tlicenseFresh: 'Les informations d’abonnement reflètent la dernière mise à jour de paiement traitée.',\n\t\tactionFailed:\n\t\t\t'Impossible de traiter la demande. Veuillez réessayer ou contacter l’assistance de l’extension.',\n\t\tmanageBilling: 'Gérer la facturation',\n\t\tnoPortal:\n\t\t\t'Le portail de facturation ne s’est pas ouvert. Vous pouvez réessayer ou contacter l’assistance de l’extension.',\n\t\tclose: 'Fermer',\n\t\tpickerTitle: 'Choisissez un profil de facturation',\n\t\tpickerDescription:\n\t\t\t'Des achats distincts peuvent avoir des profils de facturation distincts. Choisissez-en un pour gérer ses abonnements et ses informations de paiement.',\n\t\tpickerFirstRecorded: 'Enregistré pour la première fois le {date}',\n\t\tpickerCancel: 'Annuler',\n\t},\n\tde: {\n\t\ttitle: 'Premium-Funktionen freischalten',\n\t\tdescription: 'Hol dir mit einem Upgrade vollen Zugriff auf diese Erweiterung.',\n\t\tupgrade: 'Upgraden',\n\t\tcancel: 'Jetzt nicht',\n\t\tdismiss: 'Ausblenden',\n\t\tremindLater: 'Später erinnern',\n\t\tcontinueFree: 'Mit der kostenlosen Version fortfahren',\n\t\tcheckoutUnavailable: 'Käufe sind vorübergehend nicht möglich',\n\t\tperiodMonth: '/Monat',\n\t\tperiodYear: '/Jahr',\n\t\tperiodOnce: 'einmalig',\n\t\tfooter: 'Der sichere Bezahlvorgang öffnet sich in einem neuen Tab.',\n\t\trestorePurchase: 'Kauf wiederherstellen',\n\t\tfeaturesHeading: 'Premium-Funktionen',\n\t\tplansHeading: 'Wähle deinen Tarif',\n\t\tfreePlanName: 'Kostenlos',\n\t\tpremiumPlanName: 'Premium',\n\t\tpopularBadge: 'Am beliebtesten',\n\t\tunlockHeading: 'Premium-Funktionen freischalten',\n\t\tsimulatePurchase: 'Kauf simulieren',\n\t\tmockNotice:\n\t\t\t'Entwicklungsvorschau: Lizenzen und Zahlungen werden simuliert. Es wird keine Zahlung eingezogen.',\n\t\tsellerProvidedBy: 'Lizenz bereitgestellt von {name}',\n\t\tsellerUnavailable: 'Angaben zum Lizenzgeber sind nicht verfügbar.',\n\t\tsellerSupport: 'Support für die Erweiterung',\n\t\tsellerTerms: 'Lizenzbedingungen',\n\t\tsellerRefunds: 'Rückerstattungen',\n\t\tsellerRole:\n\t\t\t'Der Autor ist für die Funktionen der Erweiterung und die Lizenzzusagen verantwortlich. Extenshi stellt die Werkzeuge für Zahlung und Lizenzwiederherstellung bereit.',\n\t\tlicenseTitle: 'Deine Lizenz',\n\t\tlicenseFallbackName: 'Erweiterungslizenz',\n\t\tlicenseNone: 'Für diese Installation wurde keine Lizenz gefunden.',\n\t\tkindOneTime: 'Einmalkauf',\n\t\tkindLifetime: 'Lebenslange Lizenz',\n\t\tkindSubscription: 'Abonnement',\n\t\tkindLicense: 'Lizenz',\n\t\tstatusLine: 'Status: {status}',\n\t\tstatusActive: 'aktiv',\n\t\tstatusGrace: 'Kulanzfrist',\n\t\tstatusExpired: 'abgelaufen',\n\t\tstatusNone: 'kein Zugriff',\n\t\taccessEnded: 'Zugriff endete am {date}',\n\t\taccessUntil: 'Zugriff bis {date}',\n\t\taccessRecordedEnd: 'Erfasstes Enddatum: {date}',\n\t\tsubscriptionLine: 'Abonnement: {status}',\n\t\trenewalCanceled: 'Wird nicht verlängert',\n\t\tperiodEnds: 'Zeitraum endet am {date}',\n\t\tsubActive: 'aktiv',\n\t\tsubTrialing: 'Testphase',\n\t\tsubPastDue: 'Zahlung überfällig',\n\t\tsubCanceled: 'gekündigt',\n\t\tsubUnpaid: 'unbezahlt',\n\t\tsubIncomplete: 'unvollständig',\n\t\tsubIncompleteExpired: 'Zahlung nicht abgeschlossen',\n\t\tsubPaused: 'pausiert',\n\t\tlicenseOffline:\n\t\t\t'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.',\n\t\tlicenseCached: 'Gespeicherte Lizenzinformationen werden angezeigt.',\n\t\tlicenseFresh: 'Die Abonnementangaben entsprechen dem zuletzt verarbeiteten Zahlungsstand.',\n\t\tactionFailed:\n\t\t\t'Die Anfrage konnte nicht abgeschlossen werden. Bitte versuche es erneut oder wende dich an den Support für die Erweiterung.',\n\t\tmanageBilling: 'Abrechnung verwalten',\n\t\tnoPortal:\n\t\t\t'Das Abrechnungsportal wurde nicht geöffnet. Du kannst es erneut versuchen oder dich an den Support für die Erweiterung wenden.',\n\t\tclose: 'Schließen',\n\t\tpickerTitle: 'Abrechnungsprofil auswählen',\n\t\tpickerDescription:\n\t\t\t'Verschiedene Käufe können eigene Abrechnungsprofile haben. Wähle eines aus, um seine Abonnements und Zahlungsdaten zu verwalten.',\n\t\tpickerFirstRecorded: 'Erstmals erfasst am {date}',\n\t\tpickerCancel: 'Abbrechen',\n\t},\n\tit: {\n\t\ttitle: 'Sblocca le funzionalità premium',\n\t\tdescription: 'Effettua l’upgrade per ottenere l’accesso completo a questa estensione.',\n\t\tupgrade: 'Effettua l’upgrade',\n\t\tcancel: 'Non ora',\n\t\tdismiss: 'Ignora',\n\t\tremindLater: 'Ricordamelo più tardi',\n\t\tcontinueFree: 'Continua con la versione gratuita',\n\t\tcheckoutUnavailable: 'Gli acquisti sono temporaneamente non disponibili',\n\t\tperiodMonth: '/mese',\n\t\tperiodYear: '/anno',\n\t\tperiodOnce: 'una tantum',\n\t\tfooter: 'Il checkout sicuro si apre in una nuova scheda.',\n\t\trestorePurchase: 'Ripristina acquisto',\n\t\tfeaturesHeading: 'Funzionalità premium',\n\t\tplansHeading: 'Scegli il tuo piano',\n\t\tfreePlanName: 'Gratuito',\n\t\tpremiumPlanName: 'Premium',\n\t\tpopularBadge: 'Il più scelto',\n\t\tunlockHeading: 'Sblocca le funzionalità premium',\n\t\tsimulatePurchase: 'Simula acquisto',\n\t\tmockNotice:\n\t\t\t'Anteprima di sviluppo: licenze e pagamenti sono simulati. Non verrà addebitato alcun pagamento.',\n\t\tsellerProvidedBy: 'Licenza fornita da {name}',\n\t\tsellerUnavailable: 'I dettagli del fornitore della licenza non sono disponibili.',\n\t\tsellerSupport: 'Assistenza per l’estensione',\n\t\tsellerTerms: 'Termini di licenza',\n\t\tsellerRefunds: 'Politica di rimborso',\n\t\tsellerRole:\n\t\t\t'L’autore è responsabile delle funzionalità dell’estensione e degli impegni relativi alla licenza. Extenshi fornisce gli strumenti di pagamento e di recupero della licenza.',\n\t\tlicenseTitle: 'La tua licenza',\n\t\tlicenseFallbackName: 'Licenza dell’estensione',\n\t\tlicenseNone: 'Nessuna licenza trovata in questa installazione.',\n\t\tkindOneTime: 'Acquisto una tantum',\n\t\tkindLifetime: 'Licenza a vita',\n\t\tkindSubscription: 'Abbonamento',\n\t\tkindLicense: 'Licenza',\n\t\tstatusLine: 'Stato: {status}',\n\t\tstatusActive: 'attivo',\n\t\tstatusGrace: 'periodo di tolleranza',\n\t\tstatusExpired: 'scaduto',\n\t\tstatusNone: 'nessun accesso',\n\t\taccessEnded: 'Accesso terminato il {date}',\n\t\taccessUntil: 'Accesso fino al {date}',\n\t\taccessRecordedEnd: 'Data di fine registrata: {date}',\n\t\tsubscriptionLine: 'Abbonamento: {status}',\n\t\trenewalCanceled: 'Rinnovo annullato',\n\t\tperiodEnds: 'Il periodo termina il {date}',\n\t\tsubActive: 'attivo',\n\t\tsubTrialing: 'in prova',\n\t\tsubPastDue: 'pagamento in ritardo',\n\t\tsubCanceled: 'disdetto',\n\t\tsubUnpaid: 'non pagato',\n\t\tsubIncomplete: 'incompleto',\n\t\tsubIncompleteExpired: 'pagamento non completato',\n\t\tsubPaused: 'in pausa',\n\t\tlicenseOffline:\n\t\t\t'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.',\n\t\tlicenseCached: 'Vengono mostrate le informazioni salvate sulla licenza.',\n\t\tlicenseFresh:\n\t\t\t'Le informazioni sull’abbonamento riflettono l’ultimo aggiornamento di pagamento elaborato.',\n\t\tactionFailed: 'Impossibile completare la richiesta. Riprova o contatta l’assistenza per l’estensione.',\n\t\tmanageBilling: 'Gestisci fatturazione',\n\t\tnoPortal:\n\t\t\t'Il portale di fatturazione non è stato aperto. Puoi riprovare o contattare l’assistenza per l’estensione.',\n\t\tclose: 'Chiudi',\n\t\tpickerTitle: 'Scegli un profilo di fatturazione',\n\t\tpickerDescription:\n\t\t\t'Acquisti diversi possono avere profili di fatturazione diversi. Scegline uno per gestirne gli abbonamenti e i dati di pagamento.',\n\t\tpickerFirstRecorded: 'Registrato per la prima volta il {date}',\n\t\tpickerCancel: 'Annulla',\n\t},\n\tru: {\n\t\ttitle: 'Откройте доступ к премиум-функциям',\n\t\tdescription: 'Перейдите на премиум, чтобы получить полный доступ к этому расширению.',\n\t\tupgrade: 'Перейти на премиум',\n\t\tcancel: 'Не сейчас',\n\t\tdismiss: 'Скрыть',\n\t\tremindLater: 'Напомнить позже',\n\t\tcontinueFree: 'Продолжить в бесплатной версии',\n\t\tcheckoutUnavailable: 'Покупки временно недоступны',\n\t\tperiodMonth: '/мес.',\n\t\tperiodYear: '/год',\n\t\tperiodOnce: 'разово',\n\t\tfooter: 'Защищённая страница оплаты откроется в новой вкладке.',\n\t\trestorePurchase: 'Восстановить покупку',\n\t\tfeaturesHeading: 'Премиум-функции',\n\t\tplansHeading: 'Выберите тарифный план',\n\t\tfreePlanName: 'Бесплатный',\n\t\tpremiumPlanName: 'Премиум',\n\t\tpopularBadge: 'Самый популярный',\n\t\tunlockHeading: 'Откройте доступ к премиум-функциям',\n\t\tsimulatePurchase: 'Имитировать покупку',\n\t\tmockNotice: 'Режим разработки: лицензии и платежи имитируются. Деньги не будут списаны.',\n\t\tsellerProvidedBy: 'Лицензию предоставляет {name}',\n\t\tsellerUnavailable: 'Сведения о поставщике лицензии недоступны.',\n\t\tsellerSupport: 'Поддержка расширения',\n\t\tsellerTerms: 'Условия лицензии',\n\t\tsellerRefunds: 'Возврат средств',\n\t\tsellerRole:\n\t\t\t'Автор отвечает за работу расширения и обязательства по лицензии. Extenshi предоставляет инструменты для оплаты и восстановления лицензий.',\n\t\tlicenseTitle: 'Ваша лицензия',\n\t\tlicenseFallbackName: 'Лицензия на расширение',\n\t\tlicenseNone: 'Для этой установки лицензия не найдена.',\n\t\tkindOneTime: 'Разовая покупка',\n\t\tkindLifetime: 'Бессрочная лицензия',\n\t\tkindSubscription: 'Подписка',\n\t\tkindLicense: 'Лицензия',\n\t\tstatusLine: 'Статус: {status}',\n\t\tstatusActive: 'действует',\n\t\tstatusGrace: 'льготный период',\n\t\tstatusExpired: 'срок истёк',\n\t\tstatusNone: 'нет доступа',\n\t\taccessEnded: 'Доступ закончился: {date}',\n\t\taccessUntil: 'Доступ до {date}',\n\t\taccessRecordedEnd: 'Зафиксированная дата окончания: {date}',\n\t\tsubscriptionLine: 'Подписка: {status}',\n\t\trenewalCanceled: 'Продление отменено',\n\t\tperiodEnds: 'Период заканчивается: {date}',\n\t\tsubActive: 'активна',\n\t\tsubTrialing: 'пробный период',\n\t\tsubPastDue: 'платёж просрочен',\n\t\tsubCanceled: 'отменена',\n\t\tsubUnpaid: 'не оплачена',\n\t\tsubIncomplete: 'ожидает первого платежа',\n\t\tsubIncompleteExpired: 'платёж не завершён',\n\t\tsubPaused: 'приостановлена',\n\t\tlicenseOffline:\n\t\t\t'Подключитесь к интернету, чтобы проверить лицензию. Если успешной проверки не было 48 часов, платные функции приостанавливаются. Срок действия вашей покупки не истёк.',\n\t\tlicenseCached: 'Показаны сохранённые сведения о лицензии.',\n\t\tlicenseFresh: 'Сведения о подписке соответствуют последнему обработанному обновлению платежа.',\n\t\tactionFailed: 'Не удалось выполнить запрос. Попробуйте ещё раз или обратитесь в поддержку расширения.',\n\t\tmanageBilling: 'Управление оплатой',\n\t\tnoPortal: 'Портал оплаты не открылся. Можно повторить попытку или обратиться в поддержку расширения.',\n\t\tclose: 'Закрыть',\n\t\tpickerTitle: 'Выберите платёжный профиль',\n\t\tpickerDescription:\n\t\t\t'У разных покупок могут быть разные платёжные профили. Выберите профиль, чтобы управлять его подписками и платёжными данными.',\n\t\tpickerFirstRecorded: 'Впервые зафиксирован: {date}',\n\t\tpickerCancel: 'Отмена',\n\t},\n\tja: {\n\t\ttitle: 'プレミアム機能をアンロック',\n\t\tdescription: 'アップグレードすると、この拡張機能のすべての機能をご利用いただけます。',\n\t\tupgrade: 'アップグレード',\n\t\tcancel: '今はしない',\n\t\tdismiss: '非表示にする',\n\t\tremindLater: 'あとで通知する',\n\t\tcontinueFree: '無料版のまま使い続ける',\n\t\tcheckoutUnavailable: '一時的に購入できません',\n\t\tperiodMonth: '/月',\n\t\tperiodYear: '/年',\n\t\tperiodOnce: '買い切り',\n\t\tfooter: '安全なチェックアウト画面が新しいタブで開きます。',\n\t\trestorePurchase: '購入を復元',\n\t\tfeaturesHeading: 'プレミアム機能',\n\t\tplansHeading: 'プランを選択',\n\t\tfreePlanName: '無料',\n\t\tpremiumPlanName: 'プレミアム',\n\t\tpopularBadge: '一番人気',\n\t\tunlockHeading: 'プレミアム機能をアンロック',\n\t\tsimulatePurchase: '購入をシミュレート',\n\t\tmockNotice: '開発用プレビュー:ライセンスと支払いはシミュレーションです。実際の請求は発生しません。',\n\t\tsellerProvidedBy: 'ライセンス提供者:{name}',\n\t\tsellerUnavailable: 'ライセンス提供者の情報を取得できません。',\n\t\tsellerSupport: '拡張機能のサポート',\n\t\tsellerTerms: 'ライセンス条件',\n\t\tsellerRefunds: '返金ポリシー',\n\t\tsellerRole:\n\t\t\t'拡張機能の機能とライセンス上の約束については、開発者が責任を負います。Extenshiは、お支払いとライセンス復元のためのツールを提供します。',\n\t\tlicenseTitle: 'ご利用のライセンス',\n\t\tlicenseFallbackName: '拡張機能のライセンス',\n\t\tlicenseNone: 'このインストール環境ではライセンスが見つかりませんでした。',\n\t\tkindOneTime: '買い切り',\n\t\tkindLifetime: 'ライフタイムライセンス',\n\t\tkindSubscription: 'サブスクリプション',\n\t\tkindLicense: 'ライセンス',\n\t\tstatusLine: 'ステータス:{status}',\n\t\tstatusActive: '有効',\n\t\tstatusGrace: '猶予期間中',\n\t\tstatusExpired: '期限切れ',\n\t\tstatusNone: '利用不可',\n\t\taccessEnded: '利用終了日時:{date}',\n\t\taccessUntil: '利用期限:{date}',\n\t\taccessRecordedEnd: '記録上の終了日時:{date}',\n\t\tsubscriptionLine: 'サブスクリプション:{status}',\n\t\trenewalCanceled: '更新停止済み',\n\t\tperiodEnds: '期間終了日:{date}',\n\t\tsubActive: '有効',\n\t\tsubTrialing: 'トライアル中',\n\t\tsubPastDue: '支払い期限超過',\n\t\tsubCanceled: '解約済み',\n\t\tsubUnpaid: '未払い',\n\t\tsubIncomplete: '手続き未完了',\n\t\tsubIncompleteExpired: '支払い未完了',\n\t\tsubPaused: '一時停止中',\n\t\tlicenseOffline:\n\t\t\t'ライセンスを確認するには、インターネットに接続してください。確認に成功しないまま48時間が経過すると、有料機能は一時停止されます。ご購入が失効したわけではありません。',\n\t\tlicenseCached: '保存済みのライセンス情報を表示しています。',\n\t\tlicenseFresh: 'サブスクリプション情報には、処理済みの最新の支払い情報が反映されています。',\n\t\tactionFailed:\n\t\t\t'リクエストを完了できませんでした。もう一度お試しいただくか、拡張機能のサポートにお問い合わせください。',\n\t\tmanageBilling: '請求情報を管理',\n\t\tnoPortal: '請求ポータルを開けませんでした。再試行するか、拡張機能のサポートにお問い合わせください。',\n\t\tclose: '閉じる',\n\t\tpickerTitle: '請求プロファイルを選択',\n\t\tpickerDescription:\n\t\t\t'購入ごとに別々の請求プロファイルがある場合があります。サブスクリプションと支払い情報を管理するプロファイルを1つ選択してください。',\n\t\tpickerFirstRecorded: '初回記録日:{date}',\n\t\tpickerCancel: 'キャンセル',\n\t},\n\tko: {\n\t\ttitle: '프리미엄 기능 잠금 해제',\n\t\tdescription: '업그레이드하면 이 확장 프로그램의 모든 기능을 이용할 수 있습니다.',\n\t\tupgrade: '업그레이드',\n\t\tcancel: '나중에',\n\t\tdismiss: '닫기',\n\t\tremindLater: '나중에 다시 알림',\n\t\tcontinueFree: '무료 버전으로 계속하기',\n\t\tcheckoutUnavailable: '일시적으로 구매할 수 없습니다',\n\t\tperiodMonth: '/월',\n\t\tperiodYear: '/년',\n\t\tperiodOnce: '일회성',\n\t\tfooter: '안전한 결제 페이지가 새 탭에서 열립니다.',\n\t\trestorePurchase: '구매 복원',\n\t\tfeaturesHeading: '프리미엄 기능',\n\t\tplansHeading: '요금제 선택',\n\t\tfreePlanName: '무료',\n\t\tpremiumPlanName: '프리미엄',\n\t\tpopularBadge: '가장 인기',\n\t\tunlockHeading: '프리미엄 기능 잠금 해제',\n\t\tsimulatePurchase: '구매 시뮬레이션',\n\t\tmockNotice: '개발용 미리보기: 라이선스와 결제는 시뮬레이션됩니다. 실제로 결제되지 않습니다.',\n\t\tsellerProvidedBy: '라이선스 제공자: {name}',\n\t\tsellerUnavailable: '라이선스 제공자 정보를 확인할 수 없습니다.',\n\t\tsellerSupport: '확장 프로그램 지원',\n\t\tsellerTerms: '라이선스 약관',\n\t\tsellerRefunds: '환불 정책',\n\t\tsellerRole:\n\t\t\t'확장 프로그램의 기능과 라이선스 관련 약속은 개발자가 책임집니다. Extenshi는 결제 및 라이선스 복구 도구를 제공합니다.',\n\t\tlicenseTitle: '내 라이선스',\n\t\tlicenseFallbackName: '확장 프로그램 라이선스',\n\t\tlicenseNone: '이 설치 환경에서 라이선스를 찾지 못했습니다.',\n\t\tkindOneTime: '일회성 구매',\n\t\tkindLifetime: '평생 라이선스',\n\t\tkindSubscription: '구독',\n\t\tkindLicense: '라이선스',\n\t\tstatusLine: '상태: {status}',\n\t\tstatusActive: '활성',\n\t\tstatusGrace: '유예 기간 중',\n\t\tstatusExpired: '만료됨',\n\t\tstatusNone: '이용 권한 없음',\n\t\taccessEnded: '이용 종료 일시: {date}',\n\t\taccessUntil: '이용 기한: {date}',\n\t\taccessRecordedEnd: '기록된 종료 일시: {date}',\n\t\tsubscriptionLine: '구독: {status}',\n\t\trenewalCanceled: '갱신 취소됨',\n\t\tperiodEnds: '기간 종료일: {date}',\n\t\tsubActive: '활성',\n\t\tsubTrialing: '체험 중',\n\t\tsubPastDue: '결제 연체',\n\t\tsubCanceled: '해지됨',\n\t\tsubUnpaid: '미결제',\n\t\tsubIncomplete: '미완료',\n\t\tsubIncompleteExpired: '결제 미완료',\n\t\tsubPaused: '일시 중지됨',\n\t\tlicenseOffline:\n\t\t\t'라이선스를 확인하려면 인터넷에 연결해 주세요. 확인에 성공하지 못한 채 48시간이 지나면 유료 기능이 일시 중지됩니다. 구매가 만료된 것은 아닙니다.',\n\t\tlicenseCached: '저장된 라이선스 정보를 표시하고 있습니다.',\n\t\tlicenseFresh: '구독 정보에는 가장 최근에 처리된 결제 내역이 반영되어 있습니다.',\n\t\tactionFailed: '요청을 완료할 수 없습니다. 다시 시도하거나 확장 프로그램 지원 창구에 문의해 주세요.',\n\t\tmanageBilling: '결제 관리',\n\t\tnoPortal: '결제 포털이 열리지 않았습니다. 다시 시도하거나 확장 프로그램 지원 창구에 문의해 주세요.',\n\t\tclose: '닫기',\n\t\tpickerTitle: '결제 프로필 선택',\n\t\tpickerDescription:\n\t\t\t'구매마다 결제 프로필이 다를 수 있습니다. 구독과 결제 정보를 관리할 프로필을 하나 선택해 주세요.',\n\t\tpickerFirstRecorded: '최초 기록일: {date}',\n\t\tpickerCancel: '취소',\n\t},\n\t'zh-CN': {\n\t\ttitle: '解锁高级功能',\n\t\tdescription: '升级即可完整使用此扩展程序。',\n\t\tupgrade: '升级',\n\t\tcancel: '以后再说',\n\t\tdismiss: '忽略',\n\t\tremindLater: '稍后提醒我',\n\t\tcontinueFree: '继续使用免费版',\n\t\tcheckoutUnavailable: '暂时无法购买',\n\t\tperiodMonth: '/月',\n\t\tperiodYear: '/年',\n\t\tperiodOnce: '一次性',\n\t\tfooter: '安全结账页面将在新标签页中打开。',\n\t\trestorePurchase: '恢复购买',\n\t\tfeaturesHeading: '高级功能',\n\t\tplansHeading: '选择您的方案',\n\t\tfreePlanName: '免费版',\n\t\tpremiumPlanName: '高级版',\n\t\tpopularBadge: '最受欢迎',\n\t\tunlockHeading: '解锁高级功能',\n\t\tsimulatePurchase: '模拟购买',\n\t\tmockNotice: '开发预览:许可证和付款均为模拟,不会实际扣款。',\n\t\tsellerProvidedBy: '许可证由 {name} 提供',\n\t\tsellerUnavailable: '无法获取许可证提供方的详细信息。',\n\t\tsellerSupport: '扩展程序支持',\n\t\tsellerTerms: '许可条款',\n\t\tsellerRefunds: '退款政策',\n\t\tsellerRole: '作者负责扩展程序的功能及许可证相关承诺。Extenshi 提供支付及许可证恢复工具。',\n\t\tlicenseTitle: '您的许可证',\n\t\tlicenseFallbackName: '扩展程序许可证',\n\t\tlicenseNone: '此安装中未找到许可证。',\n\t\tkindOneTime: '一次性购买',\n\t\tkindLifetime: '终身许可证',\n\t\tkindSubscription: '订阅',\n\t\tkindLicense: '许可证',\n\t\tstatusLine: '状态:{status}',\n\t\tstatusActive: '有效',\n\t\tstatusGrace: '宽限期',\n\t\tstatusExpired: '已过期',\n\t\tstatusNone: '无使用权限',\n\t\taccessEnded: '使用权限已于 {date} 结束',\n\t\taccessUntil: '可使用至 {date}',\n\t\taccessRecordedEnd: '记录的结束日期:{date}',\n\t\tsubscriptionLine: '订阅:{status}',\n\t\trenewalCanceled: '已取消续订',\n\t\tperiodEnds: '当前计费周期于 {date} 结束',\n\t\tsubActive: '有效',\n\t\tsubTrialing: '试用中',\n\t\tsubPastDue: '付款逾期',\n\t\tsubCanceled: '已取消',\n\t\tsubUnpaid: '未付款',\n\t\tsubIncomplete: '未完成',\n\t\tsubIncompleteExpired: '付款未完成',\n\t\tsubPaused: '已暂停',\n\t\tlicenseOffline:\n\t\t\t'请连接互联网以验证您的许可证。如果连续48小时未能成功验证,付费功能将暂停。您的购买仍然有效。',\n\t\tlicenseCached: '正在显示已保存的许可证信息。',\n\t\tlicenseFresh: '订阅信息反映的是最近一次已处理的付款更新。',\n\t\tactionFailed: '无法完成请求。请重试或联系扩展程序支持。',\n\t\tmanageBilling: '管理账单',\n\t\tnoPortal: '未能打开账单门户。您可以重试或联系扩展程序支持。',\n\t\tclose: '关闭',\n\t\tpickerTitle: '选择账单资料',\n\t\tpickerDescription: '不同的购买可以有各自的账单资料。请选择一个,以管理其订阅和付款信息。',\n\t\tpickerFirstRecorded: '首次记录于 {date}',\n\t\tpickerCancel: '取消',\n\t},\n\tar: {\n\t\ttitle: 'احصل على الميزات المميزة',\n\t\tdescription: 'قم بالترقية للوصول الكامل إلى هذه الإضافة.',\n\t\tupgrade: 'ترقية',\n\t\tcancel: 'ليس الآن',\n\t\tdismiss: 'تجاهل',\n\t\tremindLater: 'ذكّرني لاحقًا',\n\t\tcontinueFree: 'المتابعة بالإصدار المجاني',\n\t\tcheckoutUnavailable: 'عمليات الشراء غير متاحة مؤقتًا',\n\t\tperiodMonth: '/شهر',\n\t\tperiodYear: '/سنة',\n\t\tperiodOnce: 'لمرة واحدة',\n\t\tfooter: 'تُفتح صفحة الدفع الآمن في علامة تبويب جديدة.',\n\t\trestorePurchase: 'استعادة الشراء',\n\t\tfeaturesHeading: 'الميزات المميزة',\n\t\tplansHeading: 'اختر خطتك',\n\t\tfreePlanName: 'مجاني',\n\t\tpremiumPlanName: 'مميز',\n\t\tpopularBadge: 'الأكثر رواجًا',\n\t\tunlockHeading: 'احصل على الميزات المميزة',\n\t\tsimulatePurchase: 'محاكاة الشراء',\n\t\tmockNotice: 'معاينة التطوير: تجري محاكاة التراخيص والمدفوعات، ولن يُحصَّل أي مبلغ.',\n\t\tsellerProvidedBy: 'الترخيص مقدَّم من البائع {name}',\n\t\tsellerUnavailable: 'بيانات مانح الترخيص غير متاحة.',\n\t\tsellerSupport: 'دعم الإضافة',\n\t\tsellerTerms: 'شروط الترخيص',\n\t\tsellerRefunds: 'سياسة استرداد المبالغ',\n\t\tsellerRole:\n\t\t\t'يتحمّل مطوّر الإضافة المسؤولية عن وظائفها وعن التزامات الترخيص، وتوفّر Extenshi أدوات الدفع واستعادة التراخيص.',\n\t\tlicenseTitle: 'ترخيصك',\n\t\tlicenseFallbackName: 'ترخيص الإضافة',\n\t\tlicenseNone: 'لم يُعثر على أي ترخيص في هذا التثبيت.',\n\t\tkindOneTime: 'شراء لمرة واحدة',\n\t\tkindLifetime: 'ترخيص مدى الحياة',\n\t\tkindSubscription: 'اشتراك',\n\t\tkindLicense: 'ترخيص',\n\t\tstatusLine: 'الحالة: {status}',\n\t\tstatusActive: 'نشطة',\n\t\tstatusGrace: 'في فترة السماح',\n\t\tstatusExpired: 'منتهية الصلاحية',\n\t\tstatusNone: 'بلا وصول',\n\t\taccessEnded: 'انتهى الوصول في {date}',\n\t\taccessUntil: 'الوصول متاح حتى {date}',\n\t\taccessRecordedEnd: 'تاريخ الانتهاء المسجَّل: {date}',\n\t\tsubscriptionLine: 'الاشتراك: {status}',\n\t\trenewalCanceled: 'أُلغي التجديد',\n\t\tperiodEnds: 'تنتهي الفترة الحالية في {date}',\n\t\tsubActive: 'نشط',\n\t\tsubTrialing: 'فترة تجريبية',\n\t\tsubPastDue: 'متأخر السداد',\n\t\tsubCanceled: 'ملغى',\n\t\tsubUnpaid: 'غير مدفوع',\n\t\tsubIncomplete: 'غير مكتمل',\n\t\tsubIncompleteExpired: 'لم يكتمل الدفع',\n\t\tsubPaused: 'متوقف مؤقتًا',\n\t\tlicenseOffline:\n\t\t\t'اتصل بالإنترنت للتحقق من ترخيصك. تتوقف الميزات المدفوعة مؤقتًا إذا مرّت 48 ساعة دون تحقق ناجح. لم تنتهِ صلاحية عملية الشراء.',\n\t\tlicenseCached: 'تُعرض معلومات الترخيص المحفوظة.',\n\t\tlicenseFresh: 'تعكس معلومات الاشتراك آخر تحديث للدفع تمت معالجته.',\n\t\tactionFailed: 'تعذّر إكمال الطلب. يُرجى المحاولة مرة أخرى أو التواصل مع دعم الإضافة.',\n\t\tmanageBilling: 'إدارة الفوترة',\n\t\tnoPortal: 'لم تُفتح بوابة الفوترة. يمكنك المحاولة مرة أخرى أو التواصل مع دعم الإضافة.',\n\t\tclose: 'إغلاق',\n\t\tpickerTitle: 'اختر ملف فوترة',\n\t\tpickerDescription:\n\t\t\t'يمكن أن تكون لعمليات الشراء المنفصلة ملفات فوترة منفصلة. اختر ملفًا منها لإدارة اشتراكاته وتفاصيل الدفع الخاصة به.',\n\t\tpickerFirstRecorded: 'سُجِّل لأول مرة في {date}',\n\t\tpickerCancel: 'إلغاء',\n\t},\n}\n// END GENERATED TRANSLATIONS\n\n/** Our dictionary language for a tag: exact, then pt → pt-BR, zh(-CN/SG/Hans) → zh-CN, then the bare language. */\nexport function sdkLocale(locale: string | null | undefined): SdkLocale {\n\tconst tag = wireLocale(locale)\n\tif (!tag) return 'en'\n\tconst exact = SDK_LOCALES.find((l) => l.toLowerCase() === tag.toLowerCase())\n\tif (exact) return exact\n\tconst [lang, region] = tag.split('-')\n\tif (lang === 'pt') return 'pt-BR'\n\t// Traditional-script regions read English rather than Simplified characters.\n\tif (lang === 'zh') return region && ['TW', 'HK', 'MO'].includes(region) ? 'en' : 'zh-CN'\n\treturn SDK_LOCALES.find((l) => l === lang) ?? 'en'\n}\n\nexport function sdkDir(locale: string | null | undefined): 'ltr' | 'rtl' {\n\tconst lang = wireLocale(locale)?.split('-')[0]\n\treturn lang && ['ar', 'he', 'fa', 'ur'].includes(lang) ? 'rtl' : 'ltr'\n}\n\n/** English merged with the translation for `locale`. */\nexport function sdkStrings(locale: string | null | undefined): SdkStrings {\n\tconst tag = sdkLocale(locale)\n\treturn tag === 'en' ? SDK_STRINGS_EN : { ...SDK_STRINGS_EN, ...TRANSLATIONS[tag] }\n}\n\n/** Fill `{placeholders}` once; a value containing braces is inserted literally. */\nexport function fill(message: string, values: Record<string, string>): string {\n\treturn message.replace(/\\{([a-z]+)\\}/g, (whole, key: string) => values[key] ?? whole)\n}\n\n/** The raw translation block, for completeness tests. */\nexport function sdkTranslations(locale: Exclude<SdkLocale, 'en'>): SdkStrings | undefined {\n\treturn TRANSLATIONS[locale]\n}\n","/**\n * Wire contract between the SDK and catalog-bff `pay.*`.\n *\n * SOURCE OF TRUTH: `shared-types/pay.ts` in the extenshi.io monorepo. The SDK\n * ships with zero runtime dependencies and must not import that workspace, so\n * the types and constants it needs are copied here under identical names.\n * `canonicalJson` is copied VERBATIM: the BFF signs its output and the SDK\n * verifies it, so both sides must produce byte-identical strings\n * (pinned by tests/unit/canonical-json.test.ts). When `shared-types/pay.ts`\n * changes, mirror the change here.\n */\n\n/** Bumped only when an older SDK could misread the response. */\nexport const PAY_CONTRACT_VERSION = 1\n\nexport const PAY_GATEWAYS = ['stripe', 'paddle', 'lemonsqueezy'] as const\nexport type PayGatewayId = (typeof PAY_GATEWAYS)[number]\n\n// ─── Publishable key ────────────────────────────────────────────────────────\n\n/**\n * The only credential an extension bundle carries. It is public by\n * construction (anyone can unzip the .crx), so it must grant nothing beyond\n * \"read this project's offer\" and \"start a checkout for this project\".\n */\nexport const PAY_PUBLISHABLE_KEY_PREFIX = 'pk_ext_'\nexport const PAY_PUBLISHABLE_KEY_HEX_LENGTH = 32\nconst PUBLISHABLE_KEY_RE = new RegExp(\n\t`^${PAY_PUBLISHABLE_KEY_PREFIX}[0-9a-f]{${PAY_PUBLISHABLE_KEY_HEX_LENGTH}}$`,\n)\n\nexport function isPayPublishableKey(value: unknown): value is string {\n\treturn typeof value === 'string' && PUBLISHABLE_KEY_RE.test(value)\n}\n\n// ─── Offers ─────────────────────────────────────────────────────────────────\n\nexport const PAY_OFFER_KINDS = ['one_time', 'subscription', 'lifetime'] as const\nexport type PayOfferKind = (typeof PAY_OFFER_KINDS)[number]\n\nexport const PAY_OFFER_INTERVALS = ['month', 'year'] as const\nexport type PayOfferInterval = (typeof PAY_OFFER_INTERVALS)[number]\n\n/** ISO-4217 lowercase, matching what every gateway returns. */\nexport const PAY_CURRENCIES = ['usd', 'eur', 'gbp'] as const\nexport type PayCurrency = (typeof PAY_CURRENCIES)[number]\n\n/** `sku` is author-chosen and stable; it is what `requireFeature()` keys on. */\nexport const PAY_SKU_RE = /^[a-z0-9][a-z0-9_-]{1,39}$/\n\n// ─── Projection ─────────────────────────────────────────────────────────────\n\n/**\n * active — paid and not expired\n * grace — subscription past_due: keep access for a short window so a card\n * hiccup does not lock a paying user out mid-session\n * expired — was active, no longer is\n * none — never had it\n */\nexport const PAY_ENTITLEMENT_STATUSES = ['active', 'grace', 'expired', 'none'] as const\nexport type PayEntitlementStatus = (typeof PAY_ENTITLEMENT_STATUSES)[number]\n\n// ─── SDK-facing DTOs (the `pay.*` tRPC contract) ────────────────────────────\n\nexport interface PayOfferDto {\n\tsku: string\n\tkind: PayOfferKind\n\tinterval: PayOfferInterval | null\n\tamountMinor: number\n\tcurrency: PayCurrency\n\ttitle: string\n\tdescription: string | null\n\tfeatures: string[]\n}\n\nexport interface PayOfferResponse {\n\t/** Optional during rolling upgrades; never infer this from the project name. */\n\tseller?: PaySellerPublic | null\n\n\tv: typeof PAY_CONTRACT_VERSION\n\tprojectName: string\n\tprovider: PayGatewayId\n\t/** False while the seller cannot take money; the SDK renders the offer read-only. */\n\tcheckoutEnabled: boolean\n\t/** Optional for older servers; show recovery only when explicitly enabled. */\n\trecoveryEnabled?: boolean\n\toffers: PayOfferDto[]\n\t/** Base64 Ed25519 public key for `SignedEntitlement.signature`; null when unsigned. */\n\tentitlementPublicKey: string | null\n\t/**\n\t * The language the offers' text is in when the seller translated them\n\t * (it. 13 T10 L2); absent from older servers and for single-language offers.\n\t */\n\tlocale?: string\n\t/**\n\t * Set when the paywall must show an unticked withdrawal-waiver checkbox and\n\t * send the accepted `version` with `createCheckout`. Null when the seller\n\t * attested the extension is not distributed in the EEA/UK; absent from\n\t * older servers (the SDK then shows no checkbox).\n\t */\n\twithdrawalWaiver?: PayWithdrawalWaiver | null\n}\n\n/**\n * Version of the buyer-facing withdrawal waiver text the paywall shows (EU/EEA\n * digital content, Directive 2011/83/EU art. 16(m); UK CCR 2013 reg. 37). The\n * text itself lives in the SDK dictionary under the same version; bump both\n * together so a recorded consent always names the words the buyer saw.\n */\nexport const PAY_WITHDRAWAL_WAIVER_VERSION = '2026-10-v1'\n\nexport interface PayWithdrawalWaiver {\n\tversion: string\n}\n\nexport interface PayEntitlementItem {\n\t/** Optional for old signed caches and older servers. */\n\ttitle?: string\n\tkind?: PayOfferKind\n\tsubscriptions?: Array<{\n\t\tstatus: string\n\t\tcancelAtPeriodEnd: boolean\n\t\tcurrentPeriodEnd: string | null\n\t}>\n\n\tsku: string\n\tstatus: PayEntitlementStatus\n\t/** ISO timestamp; null for lifetime / one-time grants. */\n\texpiresAt: string | null\n\tfeatures: string[]\n}\n\nexport interface PayEntitlementPayload {\n\tv: typeof PAY_CONTRACT_VERSION\n\t/** Signed application scope; prevents moving a grant to another application. */\n\tpublishableKey: string\n\tendUserRef: string\n\tentitlements: PayEntitlementItem[]\n\t/** ISO timestamp the projection was computed at; the SDK uses it for cache age. */\n\tissuedAt: string\n}\n\nexport interface SignedEntitlement {\n\tpayload: PayEntitlementPayload\n\t/** Base64 Ed25519 signature over the canonical JSON of `payload`; null when the server has no key. */\n\tsignature: string | null\n\talg: 'ed25519' | null\n}\n\nexport type PayCheckoutClaim =\n\t| { state: 'pending' }\n\t| { state: 'complete'; entitlement: SignedEntitlement }\n\t| { state: 'expired' }\n\t| { state: 'canceled' }\n\nexport interface PayCheckoutSession {\n\turl: string\n\tsessionId: string\n\t/** ISO timestamp. */\n\texpiresAt: string\n}\n\n/**\n * The `endUserRef` an SDK mints on first run and keeps in `chrome.storage`.\n * Opaque, random, never derived from anything identifying.\n */\nexport const PAY_END_USER_REF_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i\n\n/** Typed error codes the BFF throws; dojo and the SDK match on `cause.code`. */\nexport const PAY_ERRORS = {\n\tSELLER_NOT_CONNECTED: 'PAY_SELLER_NOT_CONNECTED',\n\tSELLER_NOT_ACTIVE: 'PAY_SELLER_NOT_ACTIVE',\n\tAGREEMENT_REQUIRED: 'PAY_AGREEMENT_REQUIRED',\n\tOFFER_NOT_FOUND: 'PAY_OFFER_NOT_FOUND',\n\tOFFER_LIMIT: 'PAY_OFFER_LIMIT',\n\tPRICE_TOO_LOW: 'PAY_PRICE_TOO_LOW',\n\tGATEWAY_UNAVAILABLE: 'PAY_GATEWAY_UNAVAILABLE',\n\tRATE_LIMITED: 'PAY_RATE_LIMITED',\n\tINVALID_KEY: 'PAY_INVALID_KEY',\n\tWITHDRAWAL_WAIVER_REQUIRED: 'PAY_WITHDRAWAL_WAIVER_REQUIRED',\n} as const\nexport type PayErrorCode = (typeof PAY_ERRORS)[keyof typeof PAY_ERRORS]\n\n/**\n * Canonical JSON for signing: keys sorted recursively, no whitespace. Both\n * the BFF (sign) and the SDK (verify) must produce byte-identical output for\n * the same payload, so the rule lives in the shared contract.\n */\nexport function canonicalJson(value: unknown): string {\n\tif (value === null || typeof value !== 'object') return JSON.stringify(value)\n\tif (Array.isArray(value)) return `[${value.map((item) => canonicalJson(item)).join(',')}]`\n\tconst entries = Object.entries(value as Record<string, unknown>)\n\t\t.filter(([, v]) => v !== undefined)\n\t\t.sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))\n\treturn `{${entries.map(([k, v]) => `${JSON.stringify(k)}:${canonicalJson(v)}`).join(',')}}`\n}\n\nexport interface PayRestoreSessionResponse {\n\tsessionId: string\n\texpiresAt: string\n\turl: string\n}\nexport type PayRestoreClaimResponse =\n\t| { state: 'pending' }\n\t| { state: 'complete'; endUserRef: string; entitlement: SignedEntitlement }\n\n/** A project-scoped billing profile; provider identifiers are never exposed. */\nexport interface PayPortalAccount {\n\tid: string\n\tlabel: string\n\tcreatedAt: string\n\tsubscriptions: Array<{\n\t\ttitle: string\n\t\tstatus: string\n\t\tcancelAtPeriodEnd: boolean\n\t\tcurrentPeriodEnd: string | null\n\t}>\n}\n\nexport interface PayPortalResponse {\n\turl: string | null\n\t/** Present when the buyer must choose among multiple billing profiles. */\n\taccounts?: PayPortalAccount[]\n}\n\n/** Public author-provided contact details. Not a claim of identity verification. */\nexport interface PaySellerPublic {\n\tdisplayName: string\n\t/** HTTPS support page or plain email address. */\n\tsupportUrl: string\n\ttermsUrl: string | null\n\t/** Optional for older servers: refunds section of the license terms. */\n\trefundPolicyUrl?: string | null\n}\n","/**\n * Buyer-facing withdrawal-waiver text (EU/EEA digital content, Directive\n * 2011/83/EU art. 16(m); UK CCR 2013 reg. 37), per text version and SDK\n * language. Its own module, not part of the paywall dictionary, so Lite can\n * show it without bundling every paywall string.\n *\n * The recorded consent names the version, so a version's words never change:\n * new wording is a new version here and a new PAY_WITHDRAWAL_WAIVER_VERSION.\n *\n * MIRRORED in shared-types/pay-withdrawal-waiver.ts, which the purchase\n * confirmation email quotes; shared-types/pay-withdrawal-waiver.test.ts fails\n * unless both copies are byte-identical. Change them together.\n */\n\nimport { fill, type SdkLocale, sdkLocale } from '../paywall/i18n.js'\nimport { PAY_WITHDRAWAL_WAIVER_VERSION } from '../types/contract.js'\n\nexport const WITHDRAWAL_WAIVER_TEXTS: Readonly<Record<string, Readonly<Record<SdkLocale, string>>>> = {\n\t[PAY_WITHDRAWAL_WAIVER_VERSION]: {\n\t\ten: 'I agree that {seller} starts supplying the digital content immediately, and I acknowledge that I lose my right of withdrawal once supply has begun.',\n\t\tes: 'Acepto que {seller} comience a suministrar el contenido digital de inmediato y reconozco que pierdo mi derecho de desistimiento una vez iniciado el suministro.',\n\t\t'pt-BR':\n\t\t\t'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.',\n\t\tfr: '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.',\n\t\tde: '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.',\n\t\tit: 'Accetto che {seller} inizi immediatamente la fornitura del contenuto digitale e riconosco di perdere il mio diritto di recesso una volta iniziata la fornitura.',\n\t\tru: 'Я соглашаюсь с тем, что {seller} немедленно начнёт предоставление цифрового контента, и подтверждаю, что утрачиваю право на отказ от договора с момента начала предоставления.',\n\t\tja: '{seller}がデジタルコンテンツの提供を直ちに開始することに同意し、提供の開始後は撤回権を失うことを了承します。',\n\t\tko: '{seller}의 디지털 콘텐츠 제공이 즉시 시작되는 것에 동의하며, 제공이 시작되면 청약철회권을 상실한다는 점을 확인합니다.',\n\t\t'zh-CN': '我同意 {seller} 立即开始提供数字内容,并确认一旦开始提供,我将失去撤回权。',\n\t\tar: 'أوافق على أن يبدأ {seller} فورًا في تقديم المحتوى الرقمي، وأُقرّ بأنني أفقد حقي في العدول عن العقد بمجرد بدء التقديم.',\n\t},\n}\n\n/**\n * The waiver text to show for `serverVersion`, and the version to send with\n * the consent. A version this SDK does not know (a newer server) shows this\n * SDK's current text and sends its version: the consent always names the words\n * actually shown.\n */\nexport function withdrawalWaiverText(\n\tserverVersion: string,\n\tlocale: string | null | undefined,\n\tseller: string,\n): { version: string; text: string } {\n\t// Own keys only: `toString` / `__proto__` from a server are just unknown versions.\n\tconst known = Object.keys(WITHDRAWAL_WAIVER_TEXTS).includes(serverVersion)\n\tconst version = known ? serverVersion : PAY_WITHDRAWAL_WAIVER_VERSION\n\treturn { version, text: fill(WITHDRAWAL_WAIVER_TEXTS[version][sdkLocale(locale)], { seller }) }\n}\n","import type { PayOfferDto } from '../types/contract.js'\nimport type { PaywallStrings } from '../types/paywall.js'\n\nexport interface FormattedPrice {\n\t/** Currency symbol/code as the locale renders it (`$`, `€`, `US$`). */\n\tcurrency: string\n\t/** Numeric part (`9.99`, `9,99`). */\n\tamount: string\n\t/** The whole formatted price (`$9.99`). */\n\tfull: string\n}\n\nexport function formatPrice(amountMinor: number, currency: string, locale?: string | null): FormattedPrice {\n\tconst value = amountMinor / 100\n\tconst code = currency.toUpperCase()\n\ttry {\n\t\tconst formatter = new Intl.NumberFormat(locale ?? undefined, { style: 'currency', currency: code })\n\t\tconst parts = formatter.formatToParts(value)\n\t\treturn {\n\t\t\tcurrency: parts\n\t\t\t\t.filter((part) => part.type === 'currency')\n\t\t\t\t.map((part) => part.value)\n\t\t\t\t.join(''),\n\t\t\tamount: parts\n\t\t\t\t.filter((part) => part.type !== 'currency' && part.type !== 'literal')\n\t\t\t\t.map((part) => part.value)\n\t\t\t\t.join(''),\n\t\t\tfull: formatter.format(value),\n\t\t}\n\t} catch {\n\t\tconst amount = value.toFixed(2)\n\t\treturn { currency: code, amount, full: `${amount} ${code}` }\n\t}\n}\n\nexport function periodLabel(offer: PayOfferDto, strings: PaywallStrings): string {\n\tif (offer.kind !== 'subscription') return strings.periodOnce\n\treturn offer.interval === 'year' ? strings.periodYear : strings.periodMonth\n}\n","export const ERROR_CODES = {\n\tINVALID_CONFIG: 'INVALID_CONFIG',\n\tINVALID_REQUEST: 'INVALID_REQUEST',\n\tNETWORK_ERROR: 'NETWORK_ERROR',\n\tTIMEOUT: 'TIMEOUT',\n\tVERIFICATION_UNAVAILABLE: 'VERIFICATION_UNAVAILABLE',\n\tINVALID_RESPONSE: 'INVALID_RESPONSE',\n\tRATE_LIMITED: 'RATE_LIMITED',\n\tINVALID_KEY: 'INVALID_KEY',\n\tSELLER_NOT_ACTIVE: 'SELLER_NOT_ACTIVE',\n\tOFFER_NOT_FOUND: 'OFFER_NOT_FOUND',\n\tGATEWAY_UNAVAILABLE: 'GATEWAY_UNAVAILABLE',\n\tCHECKOUT_UNAVAILABLE: 'CHECKOUT_UNAVAILABLE',\n\tPAYWALL_UNAVAILABLE: 'PAYWALL_UNAVAILABLE',\n\tWITHDRAWAL_WAIVER_REQUIRED: 'WITHDRAWAL_WAIVER_REQUIRED',\n\tUNKNOWN: 'UNKNOWN',\n} as const\n\nexport type ErrorCode = (typeof ERROR_CODES)[keyof typeof ERROR_CODES]\n\nexport interface ExtenshiPayErrorOptions {\n\tretryAfterSec?: number\n\thttpStatus?: number\n\tcause?: unknown\n}\n\nexport class ExtenshiPayError extends Error {\n\treadonly code: ErrorCode\n\treadonly retryAfterSec: number | undefined\n\treadonly httpStatus: number | undefined\n\treadonly cause: unknown\n\n\tconstructor(code: ErrorCode, message: string, options: ExtenshiPayErrorOptions = {}) {\n\t\tsuper(message)\n\t\tthis.name = 'ExtenshiPayError'\n\t\tthis.code = code\n\t\tthis.retryAfterSec = options.retryAfterSec\n\t\tthis.httpStatus = options.httpStatus\n\t\tthis.cause = options.cause\n\t}\n\n\tstatic from(error: unknown, fallback: ErrorCode = ERROR_CODES.UNKNOWN): ExtenshiPayError {\n\t\tif (error instanceof ExtenshiPayError) return error\n\t\tconst message = error instanceof Error ? error.message : String(error)\n\t\treturn new ExtenshiPayError(fallback, message, { cause: error })\n\t}\n}\n","import type { PaySellerPublic } from '../types/contract.js'\nimport { fill, SDK_STRINGS_EN, type SdkStrings } from './i18n.js'\n\n/** Treat even server-provided links as untrusted; never render executable protocols. */\nexport function publicContactUrl(value: string): string | null {\n\ttry {\n\t\tconst url = new URL(value)\n\t\tif (url.protocol === 'https:' && !url.username && !url.password) return url.href\n\t} catch {\n\t\t/* A plain email address is allowed below. */\n\t}\n\tif (/^[^\\s@?&#:]+@[^\\s@?&#:]+\\.[^\\s@?&#:]+$/.test(value)) return `mailto:${encodeURIComponent(value)}`\n\treturn null\n}\n\nexport function sellerDetails(seller: PaySellerPublic | null, t: SdkStrings = SDK_STRINGS_EN): HTMLElement {\n\tconst section = document.createElement('section')\n\tsection.className = 'extenshi-seller-details'\n\tconst name = document.createElement('p')\n\tname.textContent = seller ? fill(t.sellerProvidedBy, { name: seller.displayName }) : t.sellerUnavailable\n\tsection.append(name)\n\tconst link = (label: string, value: string | null) => {\n\t\tconst href = value ? publicContactUrl(value) : null\n\t\tif (!href) return\n\t\tconst a = document.createElement('a')\n\t\ta.textContent = label\n\t\ta.href = href\n\t\ta.target = '_blank'\n\t\ta.rel = 'noopener noreferrer'\n\t\ta.style.marginRight = '12px'\n\t\tsection.append(a)\n\t}\n\tif (seller) {\n\t\tlink(t.sellerSupport, seller.supportUrl)\n\t\tlink(t.sellerTerms, seller.termsUrl)\n\t\tlink(t.sellerRefunds, seller.refundPolicyUrl ?? null)\n\t}\n\tconst role = document.createElement('p')\n\trole.textContent = t.sellerRole\n\tsection.append(role)\n\treturn section\n}\n","/**\n * The paywall's strings in a locale, from the SDK dictionary (./i18n.ts).\n * Do not add promotional claims without marketing/legal review (see\n * .claude/modules/paywall-templates.md).\n */\n\nimport type { PaywallStrings } from '../types/paywall.js'\nimport { SDK_STRINGS_EN, type SdkStrings, sdkStrings } from './i18n.js'\n\nfunction paywallStrings(t: SdkStrings): PaywallStrings {\n\treturn {\n\t\ttitle: t.title,\n\t\tdescription: t.description,\n\t\tupgrade: t.upgrade,\n\t\tcancel: t.cancel,\n\t\tdismiss: t.dismiss,\n\t\tremindLater: t.remindLater,\n\t\tcontinueFree: t.continueFree,\n\t\tcheckoutUnavailable: t.checkoutUnavailable,\n\t\tperiodMonth: t.periodMonth,\n\t\tperiodYear: t.periodYear,\n\t\tperiodOnce: t.periodOnce,\n\t\tfooter: t.footer,\n\t\trestorePurchase: t.restorePurchase,\n\t\tfeaturesHeading: t.featuresHeading,\n\t\tplansHeading: t.plansHeading,\n\t\tfreePlanName: t.freePlanName,\n\t\tpremiumPlanName: t.premiumPlanName,\n\t\tpopularBadge: t.popularBadge,\n\t\tunlockHeading: t.unlockHeading,\n\t}\n}\n\n/** English (the default and the fallback). */\nexport const DEFAULT_STRINGS: PaywallStrings = paywallStrings(SDK_STRINGS_EN)\n\nexport const MOCK_PAYMENT_NOTICE = SDK_STRINGS_EN.mockNotice\n\n/** The paywall strings for `locale` (English when we have no translation). */\nexport function stringsFor(locale: string | null | undefined): PaywallStrings {\n\treturn paywallStrings(sdkStrings(locale))\n}\n","export const html = \"<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>\";\nexport const css = \".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}}\";\nexport default { html, css };","export const html = \"<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>\";\nexport const css = \".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}}\";\nexport default { html, css };","export const html = \"<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>\";\nexport const css = \".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)}\";\nexport default { html, css };","export const html = \"<div class=\\\"ep-modal-backdrop\\\" id=\\\"paywallModal\\\" role=\\\"dialog\\\" aria-labelledby=\\\"paywall-title\\\" aria-describedby=\\\"paywall-description\\\"><div class=\\\"ep-modal-container\\\"><button class=\\\"ep-modal-close\\\" aria-label=\\\"Close paywall\\\" data-ep-action=\\\"closePaywall\\\"><svg width=\\\"24\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"none\\\" stroke=\\\"currentColor\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"><line x1=\\\"18\\\" y1=\\\"6\\\" x2=\\\"6\\\" y2=\\\"18\\\"></line><line x1=\\\"6\\\" y1=\\\"6\\\" x2=\\\"18\\\" y2=\\\"18\\\"></line></svg></button><div class=\\\"ep-modal-content\\\"><div class=\\\"ep-modal-header\\\"><div class=\\\"ep-modal-icon\\\"><svg width=\\\"48\\\" height=\\\"48\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"none\\\" stroke=\\\"currentColor\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"><rect x=\\\"3\\\" y=\\\"11\\\" width=\\\"18\\\" height=\\\"11\\\" rx=\\\"2\\\" ry=\\\"2\\\"></rect><path d=\\\"m7 11V7a5 5 0 0 1 10 0v4\\\"></path></svg></div><h2 class=\\\"ep-heading-2\\\" id=\\\"paywall-title\\\">{{title}}</h2><p class=\\\"ep-text-body\\\" id=\\\"paywall-description\\\">{{description}}</p></div><div class=\\\"ep-modal-features\\\"><h3 class=\\\"ep-heading-3\\\">{{featuresHeading}}</h3><ul class=\\\"ep-feature-list\\\"><li class=\\\"ep-feature-item\\\"><svg class=\\\"ep-feature-icon\\\" width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"none\\\" stroke=\\\"currentColor\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"><polyline points=\\\"20,6 9,17 4,12\\\"></polyline></svg><span>{{feature1}}</span></li><li class=\\\"ep-feature-item\\\"><svg class=\\\"ep-feature-icon\\\" width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"none\\\" stroke=\\\"currentColor\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"><polyline points=\\\"20,6 9,17 4,12\\\"></polyline></svg><span>{{feature2}}</span></li><li class=\\\"ep-feature-item\\\"><svg class=\\\"ep-feature-icon\\\" width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"none\\\" stroke=\\\"currentColor\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"><polyline points=\\\"20,6 9,17 4,12\\\"></polyline></svg><span>{{feature3}}</span></li></ul></div><div class=\\\"ep-modal-pricing\\\"><div class=\\\"ep-pricing-card\\\"><div class=\\\"ep-pricing-header\\\"><div class=\\\"ep-pricing-price\\\"><span class=\\\"ep-pricing-currency\\\">{{currency}}</span><span class=\\\"ep-pricing-amount\\\">{{price}}</span><span class=\\\"ep-pricing-period\\\">{{period}}</span></div><p class=\\\"ep-pricing-description\\\">{{pricingDescription}}</p></div><div class=\\\"ep-trial-info\\\"><p class=\\\"ep-text-sm\\\">{{trialInfo}}</p></div></div></div><div class=\\\"ep-modal-actions\\\"><button class=\\\"ep-btn ep-btn-primary ep-btn-lg ep-btn-full\\\" data-ep-action=\\\"upgradeNow\\\"> {{upgradeButtonText}} </button><button class=\\\"ep-btn ep-btn-ghost ep-btn-sm\\\" data-ep-action=\\\"closePaywall\\\"> {{cancelButtonText}} </button></div><div class=\\\"ep-modal-footer\\\"><p class=\\\"ep-text-sm\\\">{{footerText}}</p></div></div></div></div>\";\nexport const css = \".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}}\";\nexport default { html, css };","export 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>\";\nexport 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}}\";\nexport default { html, css };","/**\n * The five templates from `@extenshi/paywall-templates`, inlined at build\n * time by build/paywall-templates-plugin.mjs. No runtime fetch, no\n * `web_accessible_resources`, no remote code.\n */\n\nimport sharedCss from 'virtual:extenshi-paywall-shared-css'\nimport * as fullscreen from '@extenshi/paywall-templates/fullscreen'\nimport * as inline from '@extenshi/paywall-templates/inline'\nimport * as minimal from '@extenshi/paywall-templates/minimal'\nimport * as modal from '@extenshi/paywall-templates/modal'\nimport * as sidebar from '@extenshi/paywall-templates/sidebar'\nimport type { PaywallMode } from '../types/paywall.js'\n\nexport interface PaywallTemplate {\n\thtml: string\n\tcss: string\n}\n\nexport const PAYWALL_SHARED_CSS: string = sharedCss\n\nexport const PAYWALL_TEMPLATES: Record<PaywallMode, PaywallTemplate> = {\n\tmodal: { html: modal.html, css: modal.css },\n\tinline: { html: inline.html, css: inline.css },\n\tsidebar: { html: sidebar.html, css: sidebar.css },\n\tfullscreen: { html: fullscreen.html, css: fullscreen.css },\n\tminimal: { html: minimal.html, css: minimal.css },\n}\n\nexport const PAYWALL_MODES = Object.keys(PAYWALL_TEMPLATES) as PaywallMode[]\n","/**\n * The one paywall renderer.\n *\n * Renders a template from `@extenshi/paywall-templates` into a Shadow DOM\n * host so the templates' resets never leak into the extension page (and vice\n * versa). Placeholders (`{{title}}`, `{{price}}` …) are filled from the offer\n * and the strings dictionary, every value HTML-escaped; buttons are bound with\n * `addEventListener` on `data-ep-action` (no inline handlers, no scripts).\n */\n\nimport { withdrawalWaiverText } from '../payment/withdrawal-waiver.js'\nimport type { ThemeConfig } from '../types/config.js'\nimport type { PayOfferDto, PaySellerPublic, PayWithdrawalWaiver } from '../types/contract.js'\nimport type { UpgradeConsent } from '../types/entitlement.js'\nimport { ERROR_CODES, ExtenshiPayError } from '../types/errors.js'\nimport type { PaywallMode, PaywallStrings } from '../types/paywall.js'\nimport { formatPrice, periodLabel } from './format.js'\nimport { sdkDir, sdkLocale, sdkStrings } from './i18n.js'\nimport { sellerDetails } from './seller-details.js'\nimport { stringsFor } from './strings.js'\nimport { PAYWALL_SHARED_CSS, PAYWALL_TEMPLATES } from './templates.js'\n\nexport interface PaywallView {\n\tmode: PaywallMode\n\ttitle: string\n\tdescription: string\n\tfeatures: string[]\n\tfreeFeatures: string[]\n\tbrandName: string\n\toffer: PayOfferDto | null\n\tcheckoutEnabled: boolean\n\tmock?: boolean\n\trecoveryEnabled?: boolean\n\tseller?: PaySellerPublic | null\n\t/**\n\t * From `PayOfferResponse.withdrawalWaiver`: when set (and the offer is\n\t * purchasable) an unticked waiver checkbox gates every upgrade button.\n\t * The waiver text is not overridable through `strings`: it is versioned.\n\t */\n\twithdrawalWaiver?: PayWithdrawalWaiver | null\n\tlocale: string | null\n\ttheme: ThemeConfig\n\tstrings: Partial<PaywallStrings>\n\tcontainer?: HTMLElement\n}\n\nexport interface PaywallRendererCallbacks {\n\t/** `consent` is passed only when the paywall showed the withdrawal waiver (and it was ticked). */\n\tonUpgrade: (sku: string, consent?: UpgradeConsent) => void\n\tonClose: () => void\n\tonRestore?: () => void\n}\n\nexport const PAYWALL_HOST_CLASS = 'extenshi-paywall-host'\n\nconst UPGRADE_ACTIONS: ReadonlySet<string> = new Set(['upgradeNow', 'startUpgrade'])\nconst UPGRADE_SELECTOR = '[data-ep-action=\"upgradeNow\"], [data-ep-action=\"startUpgrade\"]'\nexport const WITHDRAWAL_WAIVER_CLASS = 'extenshi-withdrawal-waiver'\nconst CLOSE_ACTIONS: ReadonlySet<string> = new Set([\n\t'closePaywall',\n\t'closeSidebar',\n\t'closeFullscreen',\n\t'closeMinimal',\n\t'dismissPaywall',\n\t'remindLater',\n\t'continueFree',\n])\n\nconst ROOT_SELECTOR: Record<PaywallMode, string> = {\n\tmodal: '.ep-modal-backdrop',\n\tinline: '.ep-inline-paywall',\n\tsidebar: '.ep-sidebar-paywall',\n\tfullscreen: '.ep-fullscreen-paywall',\n\tminimal: '.ep-minimal-paywall',\n}\n\nconst BACKDROP_SELECTOR: Partial<Record<PaywallMode, string>> = {\n\tmodal: '.ep-modal-backdrop',\n\tsidebar: '.ep-sidebar-backdrop',\n\tminimal: '.ep-minimal-backdrop',\n}\n\nconst VISIBLE_CLASSES: Partial<Record<PaywallMode, Array<[selector: string, className: string]>>> = {\n\tinline: [['.ep-inline-paywall', 'ep-inline-visible']],\n\tsidebar: [\n\t\t['.ep-sidebar-paywall', 'ep-sidebar-visible'],\n\t\t['.ep-sidebar-backdrop', 'ep-sidebar-backdrop-visible'],\n\t],\n\tminimal: [\n\t\t['.ep-minimal-paywall', 'ep-minimal-visible'],\n\t\t['.ep-minimal-backdrop', 'ep-minimal-backdrop-visible'],\n\t],\n}\n\n/** Template blocks the contract has no data for (trials, usage meters). */\nconst PRUNE_SELECTOR = '[class*=\"-trial\"], .ep-sidebar-progress'\n/**\n * Templates stagger their feature rows in with this class from their demo\n * script (sidebar, fullscreen); without it the rows sit at opacity 0.\n */\nconst FEATURE_ITEM_VISIBLE = ['.ep-feature-item', 'ep-feature-item-visible'] as const\n/** Containers of a single feature slot; dropped when the slot's placeholder is empty. */\nconst FEATURE_SLOT_SELECTOR = 'li, .ep-feature-card, .ep-feature-item, .ep-pricing-feature, .ep-feature'\nconst EMPTY_SLOT_MARK = 'data-ep-empty'\nconst FEATURE_KEY_RE = /^(feature\\d+(Title)?|premiumFeature\\d+|freeFeature\\d+)$/\n\nexport function escapeHtml(value: string): string {\n\treturn value\n\t\t.replace(/&/g, '&amp;')\n\t\t.replace(/</g, '&lt;')\n\t\t.replace(/>/g, '&gt;')\n\t\t.replace(/\"/g, '&quot;')\n\t\t.replace(/'/g, '&#039;')\n}\n\nexport function substitute(html: string, content: Record<string, string>): string {\n\treturn html.replace(/\\{\\{(\\w+)\\}\\}/g, (_match, key: string) => {\n\t\tconst value = content[key] ?? ''\n\t\tif (value === '' && FEATURE_KEY_RE.test(key)) return `<i ${EMPTY_SLOT_MARK}></i>`\n\t\treturn escapeHtml(value)\n\t})\n}\n\nexport function buildContent(view: PaywallView, strings: PaywallStrings): Record<string, string> {\n\tconst offer = view.offer\n\tconst price = offer ? formatPrice(offer.amountMinor, offer.currency, view.locale) : null\n\tconst content: Record<string, string> = {\n\t\ttitle: view.title,\n\t\tdescription: view.description,\n\t\tbrandName: view.brandName,\n\t\tcurrency: price?.currency ?? '',\n\t\tprice: price?.amount ?? '',\n\t\tperiod: offer ? periodLabel(offer, strings) : '',\n\t\tpricingDescription: offer?.description ?? '',\n\t\tpriceDescription: offer?.description ?? '',\n\t\tpremiumDescription: offer?.description ?? '',\n\t\tupgradeButtonText: view.checkoutEnabled && offer ? strings.upgrade : strings.checkoutUnavailable,\n\t\tcancelButtonText: strings.cancel,\n\t\tdismissButtonText: strings.dismiss,\n\t\tremindLaterText: strings.remindLater,\n\t\tcontinueButtonText: strings.continueFree,\n\t\tfooterText: strings.footer,\n\t\tfeaturesHeading: strings.featuresHeading,\n\t\tplansHeading: strings.plansHeading,\n\t\tfreePlanName: strings.freePlanName,\n\t\tpremiumPlanName: strings.premiumPlanName,\n\t\tpopularBadge: strings.popularBadge,\n\t\tunlockHeading: strings.unlockHeading,\n\t}\n\tview.features.forEach((feature, index) => {\n\t\tconst n = index + 1\n\t\tcontent[`feature${n}`] = feature\n\t\tcontent[`feature${n}Title`] = feature\n\t\tcontent[`premiumFeature${n}`] = feature\n\t})\n\tview.freeFeatures.forEach((feature, index) => {\n\t\tcontent[`freeFeature${index + 1}`] = feature\n\t})\n\treturn content\n}\n\n/** Who supplies the content: the seller's public name, else the project/brand name. */\nfunction waiverSellerName(view: PaywallView): string {\n\treturn view.seller?.displayName?.trim() || view.brandName.trim() || view.title\n}\n\nconst CSS_VALUE_UNSAFE = /[;{}<>]/g\n\nexport function themeCss(theme: ThemeConfig): string {\n\tconst declarations: string[] = []\n\tconst safe = (value: string) => value.replace(CSS_VALUE_UNSAFE, '')\n\tif (theme.primaryColor) {\n\t\tconst color = safe(theme.primaryColor)\n\t\tdeclarations.push(`--ep-primary-500:${color}`, `--ep-primary-600:${color}`, `--ep-primary-700:${color}`)\n\t}\n\tif (theme.fontFamily) declarations.push(`--ep-font-family-sans:${safe(theme.fontFamily)}`)\n\tif (theme.borderRadius) {\n\t\tconst radius = safe(theme.borderRadius)\n\t\tdeclarations.push(`--ep-radius-md:${radius}`, `--ep-radius-lg:${radius}`, `--ep-radius-xl:${radius}`)\n\t}\n\tconst host = declarations.length > 0 ? `:host{${declarations.join(';')}}` : ''\n\treturn host + (theme.customCss ?? '')\n}\n\nexport function resolveThemeMode(theme: ThemeConfig): 'light' | 'dark' {\n\tconst mode = theme.mode ?? 'auto'\n\tif (mode !== 'auto') return mode\n\tconst matchMedia = (globalThis as { matchMedia?: (query: string) => { matches: boolean } }).matchMedia\n\treturn typeof matchMedia === 'function' &&\n\t\tmatchMedia.call(globalThis, '(prefers-color-scheme: dark)').matches\n\t\t? 'dark'\n\t\t: 'light'\n}\n\nexport class PaywallRenderer {\n\tprivate host: HTMLElement | null = null\n\tprivate keyHandler: ((event: KeyboardEvent) => void) | null = null\n\n\tconstructor(private readonly callbacks: PaywallRendererCallbacks) {}\n\n\tisVisible(): boolean {\n\t\treturn this.host !== null\n\t}\n\n\t/** Returns the host element; its shadow root holds the rendered template. */\n\tshow(view: PaywallView): HTMLElement {\n\t\tthis.hide()\n\t\tconst doc = (globalThis as { document?: Document }).document\n\t\tif (!doc || typeof doc.createElement !== 'function' || !doc.body) {\n\t\t\tthrow new ExtenshiPayError(\n\t\t\t\tERROR_CODES.PAYWALL_UNAVAILABLE,\n\t\t\t\t'The paywall needs a DOM; call showPaywall() from a popup, options page or content script',\n\t\t\t)\n\t\t}\n\t\tconst template = PAYWALL_TEMPLATES[view.mode]\n\t\tif (!template)\n\t\t\tthrow new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, `Unknown paywall mode \"${view.mode}\"`)\n\n\t\tconst t = sdkStrings(view.locale)\n\t\tconst strings: PaywallStrings = { ...stringsFor(view.locale), ...view.strings }\n\t\tif (view.mock) {\n\t\t\tstrings.upgrade = t.simulatePurchase\n\t\t\tstrings.footer = t.mockNotice\n\t\t}\n\t\tconst host = doc.createElement('div')\n\t\thost.className = PAYWALL_HOST_CLASS\n\t\thost.setAttribute('data-theme', resolveThemeMode(view.theme))\n\t\t// The shadow tree inherits the host's language: screen readers and\n\t\t// hyphenation read the strings in the language they are written in.\n\t\thost.setAttribute('lang', sdkLocale(view.locale))\n\t\thost.setAttribute('dir', sdkDir(sdkLocale(view.locale)))\n\t\tconst root: ShadowRoot | HTMLElement =\n\t\t\ttypeof host.attachShadow === 'function' ? host.attachShadow({ mode: 'open' }) : host\n\t\troot.innerHTML =\n\t\t\t`<style>${PAYWALL_SHARED_CSS}${template.css}${themeCss(view.theme)}</style>` +\n\t\t\tsubstitute(template.html, buildContent(view, strings))\n\n\t\tthis.prune(root)\n\t\tconst waiver =\n\t\t\tview.offer && view.checkoutEnabled && view.withdrawalWaiver\n\t\t\t\t? withdrawalWaiverText(view.withdrawalWaiver.version, view.locale, waiverSellerName(view))\n\t\t\t\t: null\n\t\tconst waiverBox = waiver ? doc.createElement('input') : null\n\t\t// undefined: no waiver asked → onUpgrade(sku) exactly as before; null: not ticked yet.\n\t\tconst consent = (): UpgradeConsent | null | undefined => {\n\t\t\tif (!waiver) return undefined\n\t\t\treturn waiverBox?.checked ? { withdrawalWaiver: { version: waiver.version, accepted: true } } : null\n\t\t}\n\t\tthis.bind(root, view, doc, consent)\n\t\tconst sellerMount = root.querySelector(\n\t\t\t'[class*=\"-footer\"], .ep-minimal-actions, .ep-inline-content, .ep-fullscreen-content',\n\t\t)\n\t\tif (sellerMount) {\n\t\t\tconst details = sellerDetails(view.seller ?? null, t)\n\t\t\tdetails.style.cssText =\n\t\t\t\t'font-size:12px;line-height:1.5;margin-top:12px;text-align:left;white-space:normal'\n\t\t\t// In the modal, disclose the provider before the purchase action,\n\t\t\t// instead of below it in the scrollable footer.\n\t\t\tconst modalActions = root.querySelector('.ep-modal-actions')\n\t\t\tif (modalActions) modalActions.before(details)\n\t\t\telse sellerMount.append(details)\n\t\t}\n\t\tif (view.mock) {\n\t\t\tconst upgrade = root.querySelector(UPGRADE_SELECTOR)\n\t\t\tif (upgrade) {\n\t\t\t\tconst notice = doc.createElement('p')\n\t\t\t\tnotice.className = 'extenshi-payment-preview'\n\t\t\t\tnotice.textContent = t.mockNotice\n\t\t\t\tnotice.style.cssText = 'font-size:13px;line-height:1.5;margin:12px 0;white-space:normal'\n\t\t\t\tupgrade.before(notice)\n\t\t\t}\n\t\t}\n\t\tif (waiver && waiverBox) this.mountWaiver(root, doc, waiver.text, waiverBox)\n\t\tif (view.recoveryEnabled && this.callbacks.onRestore) {\n\t\t\tconst footer = root.querySelector(\n\t\t\t\t'[class*=\"-footer\"], .ep-minimal-actions, .ep-inline-content, .ep-fullscreen-content',\n\t\t\t)\n\t\t\tif (footer) {\n\t\t\t\tconst button = doc.createElement('button')\n\t\t\t\tbutton.type = 'button'\n\t\t\t\tbutton.textContent = strings.restorePurchase\n\t\t\t\tbutton.style.cssText =\n\t\t\t\t\t'display:block;margin:12px auto 0;background:none;border:0;color:inherit;font:inherit;text-decoration:underline;cursor:pointer'\n\t\t\t\tbutton.addEventListener('click', () => this.callbacks.onRestore?.())\n\t\t\t\tfooter.appendChild(button)\n\t\t\t}\n\t\t}\n\t\tconst mount = view.mode === 'inline' ? (view.container ?? doc.body) : doc.body\n\t\tmount.appendChild(host)\n\t\tthis.host = host\n\t\tthis.reveal(root, view.mode)\n\t\treturn host\n\t}\n\n\thide(): void {\n\t\tif (!this.host) return\n\t\tif (this.keyHandler) {\n\t\t\tthis.host.ownerDocument.removeEventListener('keydown', this.keyHandler)\n\t\t\tthis.keyHandler = null\n\t\t}\n\t\tthis.host.remove()\n\t\tthis.host = null\n\t}\n\n\tprivate prune(root: ParentNode): void {\n\t\tfor (const element of root.querySelectorAll(PRUNE_SELECTOR)) element.remove()\n\t\tfor (const mark of root.querySelectorAll(`[${EMPTY_SLOT_MARK}]`)) {\n\t\t\tconst slot = mark.parentElement?.closest(FEATURE_SLOT_SELECTOR) ?? mark.parentElement\n\t\t\t;(slot ?? mark).remove()\n\t\t}\n\t\t// A button whose label placeholder the contract does not fill (trial\n\t\t// CTAs on sidebar/fullscreen) would render as an empty pill; icon-only\n\t\t// buttons (close) keep their SVG and stay.\n\t\tfor (const button of root.querySelectorAll('button')) {\n\t\t\tif (!button.textContent?.trim() && !button.querySelector('svg')) button.remove()\n\t\t}\n\t}\n\n\t/**\n\t * Inserts the unticked waiver checkbox right before the first upgrade\n\t * button and keeps every upgrade button disabled until it is ticked.\n\t */\n\tprivate mountWaiver(root: ParentNode, doc: Document, text: string, input: HTMLInputElement): void {\n\t\tconst buttons = Array.from(root.querySelectorAll<HTMLElement>(UPGRADE_SELECTOR))\n\t\tconst first = buttons[0]\n\t\tif (!first) return\n\t\tconst label = doc.createElement('label')\n\t\tlabel.className = WITHDRAWAL_WAIVER_CLASS\n\t\tlabel.style.cssText =\n\t\t\t'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'\n\t\tinput.type = 'checkbox'\n\t\tinput.checked = false\n\t\tinput.style.cssText = 'flex:none;width:16px;height:16px;margin:2px 0 0;cursor:pointer'\n\t\tconst span = doc.createElement('span')\n\t\tspan.textContent = text\n\t\tlabel.append(input, span)\n\t\tfirst.before(label)\n\t\tconst sync = () => {\n\t\t\tfor (const button of buttons) {\n\t\t\t\tif (input.checked) {\n\t\t\t\t\tbutton.removeAttribute('disabled')\n\t\t\t\t\tbutton.removeAttribute('aria-disabled')\n\t\t\t\t} else {\n\t\t\t\t\tbutton.setAttribute('disabled', '')\n\t\t\t\t\tbutton.setAttribute('aria-disabled', 'true')\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tinput.addEventListener('change', sync)\n\t\tsync()\n\t}\n\n\tprivate bind(\n\t\troot: ParentNode,\n\t\tview: PaywallView,\n\t\tdoc: Document,\n\t\tconsent: () => UpgradeConsent | null | undefined,\n\t): void {\n\t\tfor (const element of root.querySelectorAll<HTMLElement>('[data-ep-action]')) {\n\t\t\tconst action = element.getAttribute('data-ep-action') ?? ''\n\t\t\tif (UPGRADE_ACTIONS.has(action)) {\n\t\t\t\tif (view.offer && view.checkoutEnabled) {\n\t\t\t\t\tconst sku = view.offer.sku\n\t\t\t\t\telement.addEventListener('click', (event) => {\n\t\t\t\t\t\tevent.preventDefault()\n\t\t\t\t\t\tconst given = consent()\n\t\t\t\t\t\t// Waiver shown but not ticked: a disabled button cannot be\n\t\t\t\t\t\t// clicked, but never start checkout without consent anyway.\n\t\t\t\t\t\tif (given === null) return\n\t\t\t\t\t\tif (given) this.callbacks.onUpgrade(sku, given)\n\t\t\t\t\t\telse this.callbacks.onUpgrade(sku)\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\telement.setAttribute('disabled', '')\n\t\t\t\t\telement.setAttribute('aria-disabled', 'true')\n\t\t\t\t}\n\t\t\t} else if (CLOSE_ACTIONS.has(action)) {\n\t\t\t\telement.addEventListener('click', (event) => {\n\t\t\t\t\tevent.preventDefault()\n\t\t\t\t\tthis.close()\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\telement.remove()\n\t\t\t}\n\t\t}\n\t\tconst backdropSelector = BACKDROP_SELECTOR[view.mode]\n\t\tif (backdropSelector) {\n\t\t\troot.querySelector(backdropSelector)?.addEventListener('click', (event) => {\n\t\t\t\tif (event.target === event.currentTarget) this.close()\n\t\t\t})\n\t\t}\n\t\tif (view.mode !== 'inline') {\n\t\t\tthis.keyHandler = (event) => {\n\t\t\t\tif (event.key === 'Escape') this.close()\n\t\t\t}\n\t\t\tdoc.addEventListener('keydown', this.keyHandler)\n\t\t}\n\t}\n\n\tprivate reveal(root: ParentNode, mode: PaywallMode): void {\n\t\tconst rootElement = root.querySelector<HTMLElement>(ROOT_SELECTOR[mode])\n\t\tif (rootElement && (mode === 'modal' || mode === 'fullscreen')) rootElement.style.display = 'flex'\n\t\tfor (const [selector, className] of VISIBLE_CLASSES[mode] ?? []) {\n\t\t\troot.querySelector(selector)?.classList.add(className)\n\t\t}\n\t\tfor (const item of root.querySelectorAll(FEATURE_ITEM_VISIBLE[0]))\n\t\t\titem.classList.add(FEATURE_ITEM_VISIBLE[1])\n\t}\n\n\tprivate close(): void {\n\t\tthis.hide()\n\t\tthis.callbacks.onClose()\n\t}\n}\n"],"names":["html","css","modal.html","modal.css","inline.html","inline.css","sidebar.html","sidebar.css","fullscreen.html","fullscreen.css","minimal.html","minimal.css"],"mappings":";;;;;;AAAA;;;;AAIG;AAEH;AACA,MAAM,cAAc,GAAG,6BAA6B;AAEpD;;;AAGG;AACG,SAAU,UAAU,CAAC,GAAY,EAAA;IACtC,IAAI,OAAO,GAAG,KAAK,QAAQ;AAAE,QAAA,OAAO,IAAI;IACxC,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;IACtE,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE;IACpC,IAAI,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;AAAE,QAAA,OAAO,IAAI;IAClD,MAAM,MAAM,GAAG;SACb,KAAK,CAAC,CAAC;AACP,SAAA,IAAI,CAAC,CAAC,CAAC,KAAK,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;UAClC,WAAW,EAAE;;IAEhB,MAAM,MAAM,GACX,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACnD,SAAC,IAAI,KAAK,IAAI,IAAI,MAAM,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AACxD,IAAA,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,IAAI,CAAA,CAAA,EAAI,MAAM,CAAC,WAAW,EAAE,CAAA,CAAE,GAAG,IAAI;AAC7D,I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,SAAS,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE;AAChE,YAAA,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC;QACvD;QACA,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;YAChE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAC7C;IAEQ,KAAK,GAAA;QACZ,IAAI,CAAC,IAAI,EAAE;AACX,QAAA,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE;IACzB;AACA;;"}
1
+ {"version":3,"file":"paywall.mjs","sources":["../src/core/locale.ts","../src/paywall/i18n.ts","../src/types/contract.ts","../src/payment/withdrawal-waiver.ts","../src/paywall/format.ts","../src/types/errors.ts","../src/paywall/seller-details.ts","../src/paywall/strings.ts","../../extension_templates/paywall-templates/fullscreen/template.html","../../extension_templates/paywall-templates/inline/template.html","../../extension_templates/paywall-templates/minimal/template.html","../../extension_templates/paywall-templates/modal/template.html","../../extension_templates/paywall-templates/sidebar/template.html","../src/paywall/templates.ts","../src/paywall/renderer.ts"],"sourcesContent":["/**\n * The user's language as the SDK sends it. Kept apart from the paywall\n * dictionary (../paywall/i18n.ts) so the Lite and core bundles, which never\n * render UI, do not carry the translations.\n */\n\n/** What the backend (and older backends) accept as a locale: `de`, `pt-BR`, `zh-CN`. */\nconst WIRE_LOCALE_RE = /^[a-z]{2}(-[A-Za-z]{2,4})?$/\n\n/**\n * A browser tag as the SDK sends it: `pt_BR` → `pt-BR`, `es-419` → `es`,\n * `zh-Hant-TW` → `zh-TW`; null for anything that is not a language tag.\n */\nexport function wireLocale(raw: unknown): string | null {\n\tif (typeof raw !== 'string') return null\n\tconst parts = raw.trim().replace(/_/g, '-').split('-').filter(Boolean)\n\tconst lang = parts[0]?.toLowerCase()\n\tif (!lang || !/^[a-z]{2}$/.test(lang)) return null\n\tconst script = parts\n\t\t.slice(1)\n\t\t.find((p) => /^[A-Za-z]{4}$/.test(p))\n\t\t?.toLowerCase()\n\t// zh-Hant without a region is Traditional Chinese: keep that, never let it read as zh-CN.\n\tconst region =\n\t\tparts.slice(1).find((p) => /^[A-Za-z]{2}$/.test(p)) ??\n\t\t(lang === 'zh' && script === 'hant' ? 'TW' : undefined)\n\tconst tag = region ? `${lang}-${region.toUpperCase()}` : lang\n\treturn WIRE_LOCALE_RE.test(tag) ? tag : lang\n}\n\n/** The browser UI language (`chrome.i18n.getUILanguage()`, else `navigator.language`), or null. */\nexport function browserLocale(): string | null {\n\tconst g = globalThis as {\n\t\tchrome?: { i18n?: { getUILanguage?: () => string } }\n\t\tbrowser?: { i18n?: { getUILanguage?: () => string } }\n\t\tnavigator?: { language?: string }\n\t}\n\ttry {\n\t\tconst ui = g.chrome?.i18n?.getUILanguage?.() ?? g.browser?.i18n?.getUILanguage?.()\n\t\tif (ui) return wireLocale(ui)\n\t} catch {\n\t\t/* Not an extension context. */\n\t}\n\treturn wireLocale(g.navigator?.language)\n}\n","/**\n * Every string the SDK shows to the USER of an extension — paywall, license\n * dialog, billing-profile picker, seller details — in the end-user languages\n * (ROADMAP it. 13 T10, stage L2; closes it. 12 T9). Developer-facing error\n * messages stay English.\n *\n * Self-contained on purpose: the SDK ships inside third-party extensions with\n * no runtime dependencies and no remote code, so the dictionary is compiled\n * in. Placeholders are `{name}`, `{date}`, `{status}`. A missing\n * translation falls back to English, never to an empty string. The same\n * languages as the hosted pages (shared-types END_USER_LOCALES); keep the\n * lists in sync.\n */\n\nexport { browserLocale, wireLocale } from '../core/locale.js'\n\nimport { wireLocale } from '../core/locale.js'\n\nexport const SDK_LOCALES = ['en', 'es', 'pt-BR', 'fr', 'de', 'it', 'ru', 'ja', 'ko', 'zh-CN', 'ar'] as const\nexport type SdkLocale = (typeof SDK_LOCALES)[number]\n\nexport const SDK_STRINGS_EN = {\n\ttitle: 'Unlock premium features',\n\tdescription: 'Upgrade to get full access to this extension.',\n\tupgrade: 'Upgrade',\n\tcancel: 'Not now',\n\tdismiss: 'Dismiss',\n\tremindLater: 'Remind me later',\n\tcontinueFree: 'Continue with the free version',\n\tcheckoutUnavailable: 'Purchases are temporarily unavailable',\n\tperiodMonth: '/month',\n\tperiodYear: '/year',\n\tperiodOnce: 'one-time',\n\tfooter: 'Secure checkout opens in a new tab.',\n\trestorePurchase: 'Restore purchase',\n\tfeaturesHeading: 'Premium Features',\n\tplansHeading: 'Choose Your Plan',\n\tfreePlanName: 'Free',\n\tpremiumPlanName: 'Premium',\n\tpopularBadge: 'Most Popular',\n\tunlockHeading: 'Unlock Premium Features',\n\tsimulatePurchase: 'Simulate purchase',\n\tmockNotice: 'Development preview: licenses and payments are simulated. No payment will be taken.',\n\tsellerProvidedBy: 'License provided by {name}',\n\tsellerUnavailable: 'License provider details are unavailable.',\n\tsellerSupport: 'Extension support',\n\tsellerTerms: 'License terms',\n\tsellerRefunds: 'Refund policy',\n\tsellerRole:\n\t\t'The author handles extension functionality and license commitments. Extenshi provides payment and license recovery tools.',\n\tlicenseTitle: 'Your license',\n\tlicenseFallbackName: 'Extension license',\n\tlicenseNone: 'No license found on this installation.',\n\tkindOneTime: 'One-time purchase',\n\tkindLifetime: 'Lifetime',\n\tkindSubscription: 'Subscription',\n\tkindLicense: 'License',\n\tstatusLine: 'Status: {status}',\n\tstatusActive: 'active',\n\tstatusGrace: 'grace period',\n\tstatusExpired: 'expired',\n\tstatusNone: 'no access',\n\taccessEnded: 'Access ended {date}',\n\taccessUntil: 'Access until {date}',\n\taccessRecordedEnd: 'Recorded end date {date}',\n\tsubscriptionLine: 'Subscription: {status}',\n\trenewalCanceled: 'Renewal canceled',\n\tperiodEnds: 'Period ends {date}',\n\tsubActive: 'active',\n\tsubTrialing: 'trial',\n\tsubPastDue: 'payment overdue',\n\tsubCanceled: 'canceled',\n\tsubUnpaid: 'unpaid',\n\tsubIncomplete: 'incomplete',\n\tsubIncompleteExpired: 'payment not completed',\n\tsubPaused: 'paused',\n\tlicenseOffline:\n\t\t'Connect to the internet to verify your license. Paid features are paused after 48 hours without a successful check. Your purchase has not expired.',\n\tlicenseCached: 'Showing saved license information.',\n\tlicenseFresh: 'Subscription information reflects the latest processed payment update.',\n\tactionFailed: 'Unable to complete the request. Please try again or contact extension support.',\n\tmanageBilling: 'Manage billing',\n\tnoPortal: 'No billing portal opened. You can retry or contact extension support.',\n\tclose: 'Close',\n\tpickerTitle: 'Choose a billing profile',\n\tpickerDescription:\n\t\t'Separate purchases can have separate billing profiles. Choose one to manage its subscriptions and payment details.',\n\tpickerFirstRecorded: 'First recorded {date}',\n\tpickerCancel: 'Cancel',\n\ttrialEndedTitle: 'Your free trial has ended',\n\ttrialEndedDescription:\n\t\t'The extension’s tools are paused. Your settings are kept and will be there when you upgrade.',\n\ttrialEndedFeedback: 'Share feedback',\n}\n\nexport type SdkStringKey = keyof typeof SDK_STRINGS_EN\nexport type SdkStrings = Record<SdkStringKey, string>\n\n// BEGIN GENERATED TRANSLATIONS\nconst TRANSLATIONS: Partial<Record<Exclude<SdkLocale, 'en'>, SdkStrings>> = {\n\tes: {\n\t\ttitle: 'Desbloquea las funciones premium',\n\t\tdescription: 'Mejora tu plan para obtener acceso completo a esta extensión.',\n\t\tupgrade: 'Mejorar plan',\n\t\tcancel: 'Ahora no',\n\t\tdismiss: 'Descartar',\n\t\tremindLater: 'Recordármelo más tarde',\n\t\tcontinueFree: 'Seguir con la versión gratuita',\n\t\tcheckoutUnavailable: 'Compras no disponibles temporalmente',\n\t\tperiodMonth: '/mes',\n\t\tperiodYear: '/año',\n\t\tperiodOnce: 'pago único',\n\t\tfooter: 'El pago seguro se abre en una pestaña nueva.',\n\t\trestorePurchase: 'Restaurar compra',\n\t\tfeaturesHeading: 'Funciones premium',\n\t\tplansHeading: 'Elige tu plan',\n\t\tfreePlanName: 'Gratis',\n\t\tpremiumPlanName: 'Premium',\n\t\tpopularBadge: 'Más popular',\n\t\tunlockHeading: 'Desbloquea las funciones premium',\n\t\tsimulatePurchase: 'Simular compra',\n\t\tmockNotice:\n\t\t\t'Vista previa de desarrollo: las licencias y los pagos son simulados. No se realizará ningún cobro.',\n\t\tsellerProvidedBy: 'Licencia proporcionada por {name}',\n\t\tsellerUnavailable: 'Los datos del proveedor de la licencia no están disponibles.',\n\t\tsellerSupport: 'Asistencia de la extensión',\n\t\tsellerTerms: 'Condiciones de licencia',\n\t\tsellerRefunds: 'Política de reembolsos',\n\t\tsellerRole:\n\t\t\t'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.',\n\t\tlicenseTitle: 'Tu licencia',\n\t\tlicenseFallbackName: 'Licencia de la extensión',\n\t\tlicenseNone: 'No se ha encontrado ninguna licencia en esta instalación.',\n\t\tkindOneTime: 'Compra única',\n\t\tkindLifetime: 'Licencia vitalicia',\n\t\tkindSubscription: 'Suscripción',\n\t\tkindLicense: 'Licencia',\n\t\tstatusLine: 'Estado: {status}',\n\t\tstatusActive: 'activo',\n\t\tstatusGrace: 'período de gracia',\n\t\tstatusExpired: 'caducado',\n\t\tstatusNone: 'sin acceso',\n\t\taccessEnded: 'Acceso finalizado el {date}',\n\t\taccessUntil: 'Acceso hasta el {date}',\n\t\taccessRecordedEnd: 'Fecha de finalización registrada: {date}',\n\t\tsubscriptionLine: 'Suscripción: {status}',\n\t\trenewalCanceled: 'Renovación cancelada',\n\t\tperiodEnds: 'El período finaliza el {date}',\n\t\tsubActive: 'activa',\n\t\tsubTrialing: 'en período de prueba',\n\t\tsubPastDue: 'pago vencido',\n\t\tsubCanceled: 'cancelada',\n\t\tsubUnpaid: 'sin pagar',\n\t\tsubIncomplete: 'incompleta',\n\t\tsubIncompleteExpired: 'pago no completado',\n\t\tsubPaused: 'en pausa',\n\t\tlicenseOffline:\n\t\t\t'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.',\n\t\tlicenseCached: 'Se muestra la información de licencia guardada.',\n\t\tlicenseFresh: 'La información de la suscripción refleja la última actualización de pago procesada.',\n\t\tactionFailed:\n\t\t\t'No se pudo completar la solicitud. Inténtalo de nuevo o ponte en contacto con la asistencia de la extensión.',\n\t\tmanageBilling: 'Gestionar facturación',\n\t\tnoPortal:\n\t\t\t'No se abrió ningún portal de facturación. Puedes volver a intentarlo o ponerte en contacto con la asistencia de la extensión.',\n\t\tclose: 'Cerrar',\n\t\tpickerTitle: 'Elige un perfil de facturación',\n\t\tpickerDescription:\n\t\t\t'Las compras independientes pueden tener perfiles de facturación distintos. Elige uno para gestionar sus suscripciones y datos de pago.',\n\t\tpickerFirstRecorded: 'Registrado por primera vez el {date}',\n\t\tpickerCancel: 'Cancelar',\n\t\ttrialEndedTitle: 'Tu prueba gratuita ha terminado',\n\t\ttrialEndedDescription:\n\t\t\t'Las herramientas de la extensión están en pausa. Tu configuración se conserva y la encontrarás igual cuando mejores tu plan.',\n\t\ttrialEndedFeedback: 'Enviar comentarios',\n\t},\n\t'pt-BR': {\n\t\ttitle: 'Desbloqueie os recursos premium',\n\t\tdescription: 'Faça o upgrade para ter acesso completo a esta extensão.',\n\t\tupgrade: 'Fazer upgrade',\n\t\tcancel: 'Agora não',\n\t\tdismiss: 'Dispensar',\n\t\tremindLater: 'Lembrar mais tarde',\n\t\tcontinueFree: 'Continuar com a versão gratuita',\n\t\tcheckoutUnavailable: 'Compras temporariamente indisponíveis',\n\t\tperiodMonth: '/mês',\n\t\tperiodYear: '/ano',\n\t\tperiodOnce: 'pagamento único',\n\t\tfooter: 'O checkout seguro abre em uma nova guia.',\n\t\trestorePurchase: 'Restaurar compra',\n\t\tfeaturesHeading: 'Recursos premium',\n\t\tplansHeading: 'Escolha seu plano',\n\t\tfreePlanName: 'Gratuito',\n\t\tpremiumPlanName: 'Premium',\n\t\tpopularBadge: 'Mais popular',\n\t\tunlockHeading: 'Desbloqueie os recursos premium',\n\t\tsimulatePurchase: 'Simular compra',\n\t\tmockNotice: 'Prévia de desenvolvimento: licenças e pagamentos são simulados. Nenhum valor será cobrado.',\n\t\tsellerProvidedBy: 'Licença fornecida por {name}',\n\t\tsellerUnavailable: 'Os dados do fornecedor da licença não estão disponíveis.',\n\t\tsellerSupport: 'Suporte da extensão',\n\t\tsellerTerms: 'Termos de licença',\n\t\tsellerRefunds: 'Política de reembolso',\n\t\tsellerRole:\n\t\t\t'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.',\n\t\tlicenseTitle: 'Sua licença',\n\t\tlicenseFallbackName: 'Licença da extensão',\n\t\tlicenseNone: 'Nenhuma licença encontrada nesta instalação.',\n\t\tkindOneTime: 'Compra única',\n\t\tkindLifetime: 'Licença vitalícia',\n\t\tkindSubscription: 'Assinatura',\n\t\tkindLicense: 'Licença',\n\t\tstatusLine: 'Status: {status}',\n\t\tstatusActive: 'ativo',\n\t\tstatusGrace: 'período de carência',\n\t\tstatusExpired: 'expirado',\n\t\tstatusNone: 'sem acesso',\n\t\taccessEnded: 'Acesso encerrado em {date}',\n\t\taccessUntil: 'Acesso até {date}',\n\t\taccessRecordedEnd: 'Data de término registrada: {date}',\n\t\tsubscriptionLine: 'Assinatura: {status}',\n\t\trenewalCanceled: 'Renovação cancelada',\n\t\tperiodEnds: 'Período termina em {date}',\n\t\tsubActive: 'ativa',\n\t\tsubTrialing: 'em período de teste',\n\t\tsubPastDue: 'pagamento em atraso',\n\t\tsubCanceled: 'cancelada',\n\t\tsubUnpaid: 'não paga',\n\t\tsubIncomplete: 'incompleta',\n\t\tsubIncompleteExpired: 'pagamento não concluído',\n\t\tsubPaused: 'pausada',\n\t\tlicenseOffline:\n\t\t\t'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.',\n\t\tlicenseCached: 'Exibindo as informações de licença salvas.',\n\t\tlicenseFresh: 'As informações da assinatura refletem a atualização de pagamento processada mais recente.',\n\t\tactionFailed:\n\t\t\t'Não foi possível concluir a solicitação. Tente novamente ou entre em contato com o suporte da extensão.',\n\t\tmanageBilling: 'Gerenciar cobrança',\n\t\tnoPortal:\n\t\t\t'O portal de cobrança não foi aberto. Você pode tentar novamente ou entrar em contato com o suporte da extensão.',\n\t\tclose: 'Fechar',\n\t\tpickerTitle: 'Escolha um perfil de cobrança',\n\t\tpickerDescription:\n\t\t\t'Compras diferentes podem ter perfis de cobrança diferentes. Escolha um perfil para gerenciar as assinaturas e os dados de pagamento vinculados a ele.',\n\t\tpickerFirstRecorded: 'Registrado pela primeira vez em {date}',\n\t\tpickerCancel: 'Cancelar',\n\t\ttrialEndedTitle: 'Seu teste gratuito terminou',\n\t\ttrialEndedDescription:\n\t\t\t'As ferramentas da extensão estão pausadas. Suas configurações foram mantidas e estarão lá quando você fizer o upgrade.',\n\t\ttrialEndedFeedback: 'Enviar feedback',\n\t},\n\tfr: {\n\t\ttitle: 'Débloquez les fonctionnalités premium',\n\t\tdescription: 'Passez à la version supérieure pour obtenir un accès complet à cette extension.',\n\t\tupgrade: 'Mettre à niveau',\n\t\tcancel: 'Pas maintenant',\n\t\tdismiss: 'Ignorer',\n\t\tremindLater: 'Me le rappeler plus tard',\n\t\tcontinueFree: 'Continuer avec la version gratuite',\n\t\tcheckoutUnavailable: 'Les achats sont temporairement indisponibles',\n\t\tperiodMonth: '/mois',\n\t\tperiodYear: '/an',\n\t\tperiodOnce: 'paiement unique',\n\t\tfooter: 'Le paiement sécurisé s’ouvre dans un nouvel onglet.',\n\t\trestorePurchase: 'Restaurer l’achat',\n\t\tfeaturesHeading: 'Fonctionnalités premium',\n\t\tplansHeading: 'Choisissez votre formule',\n\t\tfreePlanName: 'Gratuit',\n\t\tpremiumPlanName: 'Premium',\n\t\tpopularBadge: 'Le plus populaire',\n\t\tunlockHeading: 'Débloquez les fonctionnalités premium',\n\t\tsimulatePurchase: 'Simuler l’achat',\n\t\tmockNotice:\n\t\t\t'Aperçu de développement : les licences et les paiements sont simulés. Aucun paiement ne sera prélevé.',\n\t\tsellerProvidedBy: 'Licence fournie par {name}',\n\t\tsellerUnavailable: 'Les informations sur le fournisseur de la licence ne sont pas disponibles.',\n\t\tsellerSupport: 'Assistance pour l’extension',\n\t\tsellerTerms: 'Conditions de licence',\n\t\tsellerRefunds: 'Politique de remboursement',\n\t\tsellerRole:\n\t\t\t'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.',\n\t\tlicenseTitle: 'Votre licence',\n\t\tlicenseFallbackName: 'Licence de l’extension',\n\t\tlicenseNone: 'Aucune licence n’a été trouvée pour cette installation.',\n\t\tkindOneTime: 'Achat unique',\n\t\tkindLifetime: 'Licence à vie',\n\t\tkindSubscription: 'Abonnement',\n\t\tkindLicense: 'Licence',\n\t\tstatusLine: 'Statut : {status}',\n\t\tstatusActive: 'actif',\n\t\tstatusGrace: 'période de grâce',\n\t\tstatusExpired: 'expiré',\n\t\tstatusNone: 'aucun accès',\n\t\taccessEnded: 'Accès terminé le {date}',\n\t\taccessUntil: 'Accès jusqu’au {date}',\n\t\taccessRecordedEnd: 'Date de fin enregistrée : {date}',\n\t\tsubscriptionLine: 'Abonnement : {status}',\n\t\trenewalCanceled: 'Renouvellement annulé',\n\t\tperiodEnds: 'Fin de la période le {date}',\n\t\tsubActive: 'actif',\n\t\tsubTrialing: 'en période d’essai',\n\t\tsubPastDue: 'paiement en retard',\n\t\tsubCanceled: 'résilié',\n\t\tsubUnpaid: 'impayé',\n\t\tsubIncomplete: 'incomplet',\n\t\tsubIncompleteExpired: 'paiement non finalisé',\n\t\tsubPaused: 'en pause',\n\t\tlicenseOffline:\n\t\t\t'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é.',\n\t\tlicenseCached: 'Affichage des informations de licence enregistrées.',\n\t\tlicenseFresh: 'Les informations d’abonnement reflètent la dernière mise à jour de paiement traitée.',\n\t\tactionFailed:\n\t\t\t'Impossible de traiter la demande. Veuillez réessayer ou contacter l’assistance de l’extension.',\n\t\tmanageBilling: 'Gérer la facturation',\n\t\tnoPortal:\n\t\t\t'Le portail de facturation ne s’est pas ouvert. Vous pouvez réessayer ou contacter l’assistance de l’extension.',\n\t\tclose: 'Fermer',\n\t\tpickerTitle: 'Choisissez un profil de facturation',\n\t\tpickerDescription:\n\t\t\t'Des achats distincts peuvent avoir des profils de facturation distincts. Choisissez-en un pour gérer ses abonnements et ses informations de paiement.',\n\t\tpickerFirstRecorded: 'Enregistré pour la première fois le {date}',\n\t\tpickerCancel: 'Annuler',\n\t\ttrialEndedTitle: 'Votre essai gratuit est terminé',\n\t\ttrialEndedDescription:\n\t\t\t'Les outils de l’extension sont en pause. Vos paramètres sont conservés et vous les retrouverez après la mise à niveau.',\n\t\ttrialEndedFeedback: 'Donner votre avis',\n\t},\n\tde: {\n\t\ttitle: 'Premium-Funktionen freischalten',\n\t\tdescription: 'Hol dir mit einem Upgrade vollen Zugriff auf diese Erweiterung.',\n\t\tupgrade: 'Upgraden',\n\t\tcancel: 'Jetzt nicht',\n\t\tdismiss: 'Ausblenden',\n\t\tremindLater: 'Später erinnern',\n\t\tcontinueFree: 'Mit der kostenlosen Version fortfahren',\n\t\tcheckoutUnavailable: 'Käufe sind vorübergehend nicht möglich',\n\t\tperiodMonth: '/Monat',\n\t\tperiodYear: '/Jahr',\n\t\tperiodOnce: 'einmalig',\n\t\tfooter: 'Der sichere Bezahlvorgang öffnet sich in einem neuen Tab.',\n\t\trestorePurchase: 'Kauf wiederherstellen',\n\t\tfeaturesHeading: 'Premium-Funktionen',\n\t\tplansHeading: 'Wähle deinen Tarif',\n\t\tfreePlanName: 'Kostenlos',\n\t\tpremiumPlanName: 'Premium',\n\t\tpopularBadge: 'Am beliebtesten',\n\t\tunlockHeading: 'Premium-Funktionen freischalten',\n\t\tsimulatePurchase: 'Kauf simulieren',\n\t\tmockNotice:\n\t\t\t'Entwicklungsvorschau: Lizenzen und Zahlungen werden simuliert. Es wird keine Zahlung eingezogen.',\n\t\tsellerProvidedBy: 'Lizenz bereitgestellt von {name}',\n\t\tsellerUnavailable: 'Angaben zum Lizenzgeber sind nicht verfügbar.',\n\t\tsellerSupport: 'Support für die Erweiterung',\n\t\tsellerTerms: 'Lizenzbedingungen',\n\t\tsellerRefunds: 'Rückerstattungen',\n\t\tsellerRole:\n\t\t\t'Der Autor ist für die Funktionen der Erweiterung und die Lizenzzusagen verantwortlich. Extenshi stellt die Werkzeuge für Zahlung und Lizenzwiederherstellung bereit.',\n\t\tlicenseTitle: 'Deine Lizenz',\n\t\tlicenseFallbackName: 'Erweiterungslizenz',\n\t\tlicenseNone: 'Für diese Installation wurde keine Lizenz gefunden.',\n\t\tkindOneTime: 'Einmalkauf',\n\t\tkindLifetime: 'Lebenslange Lizenz',\n\t\tkindSubscription: 'Abonnement',\n\t\tkindLicense: 'Lizenz',\n\t\tstatusLine: 'Status: {status}',\n\t\tstatusActive: 'aktiv',\n\t\tstatusGrace: 'Kulanzfrist',\n\t\tstatusExpired: 'abgelaufen',\n\t\tstatusNone: 'kein Zugriff',\n\t\taccessEnded: 'Zugriff endete am {date}',\n\t\taccessUntil: 'Zugriff bis {date}',\n\t\taccessRecordedEnd: 'Erfasstes Enddatum: {date}',\n\t\tsubscriptionLine: 'Abonnement: {status}',\n\t\trenewalCanceled: 'Wird nicht verlängert',\n\t\tperiodEnds: 'Zeitraum endet am {date}',\n\t\tsubActive: 'aktiv',\n\t\tsubTrialing: 'Testphase',\n\t\tsubPastDue: 'Zahlung überfällig',\n\t\tsubCanceled: 'gekündigt',\n\t\tsubUnpaid: 'unbezahlt',\n\t\tsubIncomplete: 'unvollständig',\n\t\tsubIncompleteExpired: 'Zahlung nicht abgeschlossen',\n\t\tsubPaused: 'pausiert',\n\t\tlicenseOffline:\n\t\t\t'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.',\n\t\tlicenseCached: 'Gespeicherte Lizenzinformationen werden angezeigt.',\n\t\tlicenseFresh: 'Die Abonnementangaben entsprechen dem zuletzt verarbeiteten Zahlungsstand.',\n\t\tactionFailed:\n\t\t\t'Die Anfrage konnte nicht abgeschlossen werden. Bitte versuche es erneut oder wende dich an den Support für die Erweiterung.',\n\t\tmanageBilling: 'Abrechnung verwalten',\n\t\tnoPortal:\n\t\t\t'Das Abrechnungsportal wurde nicht geöffnet. Du kannst es erneut versuchen oder dich an den Support für die Erweiterung wenden.',\n\t\tclose: 'Schließen',\n\t\tpickerTitle: 'Abrechnungsprofil auswählen',\n\t\tpickerDescription:\n\t\t\t'Verschiedene Käufe können eigene Abrechnungsprofile haben. Wähle eines aus, um seine Abonnements und Zahlungsdaten zu verwalten.',\n\t\tpickerFirstRecorded: 'Erstmals erfasst am {date}',\n\t\tpickerCancel: 'Abbrechen',\n\t\ttrialEndedTitle: 'Dein kostenloser Testzeitraum ist abgelaufen',\n\t\ttrialEndedDescription:\n\t\t\t'Die Funktionen der Erweiterung sind pausiert. Deine Einstellungen bleiben erhalten und sind nach dem Upgrade wieder da.',\n\t\ttrialEndedFeedback: 'Feedback geben',\n\t},\n\tit: {\n\t\ttitle: 'Sblocca le funzionalità premium',\n\t\tdescription: 'Effettua l’upgrade per ottenere l’accesso completo a questa estensione.',\n\t\tupgrade: 'Effettua l’upgrade',\n\t\tcancel: 'Non ora',\n\t\tdismiss: 'Ignora',\n\t\tremindLater: 'Ricordamelo più tardi',\n\t\tcontinueFree: 'Continua con la versione gratuita',\n\t\tcheckoutUnavailable: 'Gli acquisti sono temporaneamente non disponibili',\n\t\tperiodMonth: '/mese',\n\t\tperiodYear: '/anno',\n\t\tperiodOnce: 'una tantum',\n\t\tfooter: 'Il checkout sicuro si apre in una nuova scheda.',\n\t\trestorePurchase: 'Ripristina acquisto',\n\t\tfeaturesHeading: 'Funzionalità premium',\n\t\tplansHeading: 'Scegli il tuo piano',\n\t\tfreePlanName: 'Gratuito',\n\t\tpremiumPlanName: 'Premium',\n\t\tpopularBadge: 'Il più scelto',\n\t\tunlockHeading: 'Sblocca le funzionalità premium',\n\t\tsimulatePurchase: 'Simula acquisto',\n\t\tmockNotice:\n\t\t\t'Anteprima di sviluppo: licenze e pagamenti sono simulati. Non verrà addebitato alcun pagamento.',\n\t\tsellerProvidedBy: 'Licenza fornita da {name}',\n\t\tsellerUnavailable: 'I dettagli del fornitore della licenza non sono disponibili.',\n\t\tsellerSupport: 'Assistenza per l’estensione',\n\t\tsellerTerms: 'Termini di licenza',\n\t\tsellerRefunds: 'Politica di rimborso',\n\t\tsellerRole:\n\t\t\t'L’autore è responsabile delle funzionalità dell’estensione e degli impegni relativi alla licenza. Extenshi fornisce gli strumenti di pagamento e di recupero della licenza.',\n\t\tlicenseTitle: 'La tua licenza',\n\t\tlicenseFallbackName: 'Licenza dell’estensione',\n\t\tlicenseNone: 'Nessuna licenza trovata in questa installazione.',\n\t\tkindOneTime: 'Acquisto una tantum',\n\t\tkindLifetime: 'Licenza a vita',\n\t\tkindSubscription: 'Abbonamento',\n\t\tkindLicense: 'Licenza',\n\t\tstatusLine: 'Stato: {status}',\n\t\tstatusActive: 'attivo',\n\t\tstatusGrace: 'periodo di tolleranza',\n\t\tstatusExpired: 'scaduto',\n\t\tstatusNone: 'nessun accesso',\n\t\taccessEnded: 'Accesso terminato il {date}',\n\t\taccessUntil: 'Accesso fino al {date}',\n\t\taccessRecordedEnd: 'Data di fine registrata: {date}',\n\t\tsubscriptionLine: 'Abbonamento: {status}',\n\t\trenewalCanceled: 'Rinnovo annullato',\n\t\tperiodEnds: 'Il periodo termina il {date}',\n\t\tsubActive: 'attivo',\n\t\tsubTrialing: 'in prova',\n\t\tsubPastDue: 'pagamento in ritardo',\n\t\tsubCanceled: 'disdetto',\n\t\tsubUnpaid: 'non pagato',\n\t\tsubIncomplete: 'incompleto',\n\t\tsubIncompleteExpired: 'pagamento non completato',\n\t\tsubPaused: 'in pausa',\n\t\tlicenseOffline:\n\t\t\t'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.',\n\t\tlicenseCached: 'Vengono mostrate le informazioni salvate sulla licenza.',\n\t\tlicenseFresh:\n\t\t\t'Le informazioni sull’abbonamento riflettono l’ultimo aggiornamento di pagamento elaborato.',\n\t\tactionFailed: 'Impossibile completare la richiesta. Riprova o contatta l’assistenza per l’estensione.',\n\t\tmanageBilling: 'Gestisci fatturazione',\n\t\tnoPortal:\n\t\t\t'Il portale di fatturazione non è stato aperto. Puoi riprovare o contattare l’assistenza per l’estensione.',\n\t\tclose: 'Chiudi',\n\t\tpickerTitle: 'Scegli un profilo di fatturazione',\n\t\tpickerDescription:\n\t\t\t'Acquisti diversi possono avere profili di fatturazione diversi. Scegline uno per gestirne gli abbonamenti e i dati di pagamento.',\n\t\tpickerFirstRecorded: 'Registrato per la prima volta il {date}',\n\t\tpickerCancel: 'Annulla',\n\t\ttrialEndedTitle: 'La tua prova gratuita è terminata',\n\t\ttrialEndedDescription:\n\t\t\t'Gli strumenti dell’estensione sono in pausa. Le tue impostazioni sono conservate e le ritroverai dopo l’upgrade.',\n\t\ttrialEndedFeedback: 'Invia un feedback',\n\t},\n\tru: {\n\t\ttitle: 'Откройте доступ к премиум-функциям',\n\t\tdescription: 'Перейдите на премиум, чтобы получить полный доступ к этому расширению.',\n\t\tupgrade: 'Перейти на премиум',\n\t\tcancel: 'Не сейчас',\n\t\tdismiss: 'Скрыть',\n\t\tremindLater: 'Напомнить позже',\n\t\tcontinueFree: 'Продолжить в бесплатной версии',\n\t\tcheckoutUnavailable: 'Покупки временно недоступны',\n\t\tperiodMonth: '/мес.',\n\t\tperiodYear: '/год',\n\t\tperiodOnce: 'разово',\n\t\tfooter: 'Защищённая страница оплаты откроется в новой вкладке.',\n\t\trestorePurchase: 'Восстановить покупку',\n\t\tfeaturesHeading: 'Премиум-функции',\n\t\tplansHeading: 'Выберите тарифный план',\n\t\tfreePlanName: 'Бесплатный',\n\t\tpremiumPlanName: 'Премиум',\n\t\tpopularBadge: 'Самый популярный',\n\t\tunlockHeading: 'Откройте доступ к премиум-функциям',\n\t\tsimulatePurchase: 'Имитировать покупку',\n\t\tmockNotice: 'Режим разработки: лицензии и платежи имитируются. Деньги не будут списаны.',\n\t\tsellerProvidedBy: 'Лицензию предоставляет {name}',\n\t\tsellerUnavailable: 'Сведения о поставщике лицензии недоступны.',\n\t\tsellerSupport: 'Поддержка расширения',\n\t\tsellerTerms: 'Условия лицензии',\n\t\tsellerRefunds: 'Возврат средств',\n\t\tsellerRole:\n\t\t\t'Автор отвечает за работу расширения и обязательства по лицензии. Extenshi предоставляет инструменты для оплаты и восстановления лицензий.',\n\t\tlicenseTitle: 'Ваша лицензия',\n\t\tlicenseFallbackName: 'Лицензия на расширение',\n\t\tlicenseNone: 'Для этой установки лицензия не найдена.',\n\t\tkindOneTime: 'Разовая покупка',\n\t\tkindLifetime: 'Бессрочная лицензия',\n\t\tkindSubscription: 'Подписка',\n\t\tkindLicense: 'Лицензия',\n\t\tstatusLine: 'Статус: {status}',\n\t\tstatusActive: 'действует',\n\t\tstatusGrace: 'льготный период',\n\t\tstatusExpired: 'срок истёк',\n\t\tstatusNone: 'нет доступа',\n\t\taccessEnded: 'Доступ закончился: {date}',\n\t\taccessUntil: 'Доступ до {date}',\n\t\taccessRecordedEnd: 'Зафиксированная дата окончания: {date}',\n\t\tsubscriptionLine: 'Подписка: {status}',\n\t\trenewalCanceled: 'Продление отменено',\n\t\tperiodEnds: 'Период заканчивается: {date}',\n\t\tsubActive: 'активна',\n\t\tsubTrialing: 'пробный период',\n\t\tsubPastDue: 'платёж просрочен',\n\t\tsubCanceled: 'отменена',\n\t\tsubUnpaid: 'не оплачена',\n\t\tsubIncomplete: 'ожидает первого платежа',\n\t\tsubIncompleteExpired: 'платёж не завершён',\n\t\tsubPaused: 'приостановлена',\n\t\tlicenseOffline:\n\t\t\t'Подключитесь к интернету, чтобы проверить лицензию. Если успешной проверки не было 48 часов, платные функции приостанавливаются. Срок действия вашей покупки не истёк.',\n\t\tlicenseCached: 'Показаны сохранённые сведения о лицензии.',\n\t\tlicenseFresh: 'Сведения о подписке соответствуют последнему обработанному обновлению платежа.',\n\t\tactionFailed: 'Не удалось выполнить запрос. Попробуйте ещё раз или обратитесь в поддержку расширения.',\n\t\tmanageBilling: 'Управление оплатой',\n\t\tnoPortal: 'Портал оплаты не открылся. Можно повторить попытку или обратиться в поддержку расширения.',\n\t\tclose: 'Закрыть',\n\t\tpickerTitle: 'Выберите платёжный профиль',\n\t\tpickerDescription:\n\t\t\t'У разных покупок могут быть разные платёжные профили. Выберите профиль, чтобы управлять его подписками и платёжными данными.',\n\t\tpickerFirstRecorded: 'Впервые зафиксирован: {date}',\n\t\tpickerCancel: 'Отмена',\n\t\ttrialEndedTitle: 'Бесплатный пробный период закончился',\n\t\ttrialEndedDescription:\n\t\t\t'Инструменты расширения приостановлены. Ваши настройки сохранены и будут на месте после перехода на премиум.',\n\t\ttrialEndedFeedback: 'Оставить отзыв',\n\t},\n\tja: {\n\t\ttitle: 'プレミアム機能をアンロック',\n\t\tdescription: 'アップグレードすると、この拡張機能のすべての機能をご利用いただけます。',\n\t\tupgrade: 'アップグレード',\n\t\tcancel: '今はしない',\n\t\tdismiss: '非表示にする',\n\t\tremindLater: 'あとで通知する',\n\t\tcontinueFree: '無料版のまま使い続ける',\n\t\tcheckoutUnavailable: '一時的に購入できません',\n\t\tperiodMonth: '/月',\n\t\tperiodYear: '/年',\n\t\tperiodOnce: '買い切り',\n\t\tfooter: '安全なチェックアウト画面が新しいタブで開きます。',\n\t\trestorePurchase: '購入を復元',\n\t\tfeaturesHeading: 'プレミアム機能',\n\t\tplansHeading: 'プランを選択',\n\t\tfreePlanName: '無料',\n\t\tpremiumPlanName: 'プレミアム',\n\t\tpopularBadge: '一番人気',\n\t\tunlockHeading: 'プレミアム機能をアンロック',\n\t\tsimulatePurchase: '購入をシミュレート',\n\t\tmockNotice: '開発用プレビュー:ライセンスと支払いはシミュレーションです。実際の請求は発生しません。',\n\t\tsellerProvidedBy: 'ライセンス提供者:{name}',\n\t\tsellerUnavailable: 'ライセンス提供者の情報を取得できません。',\n\t\tsellerSupport: '拡張機能のサポート',\n\t\tsellerTerms: 'ライセンス条件',\n\t\tsellerRefunds: '返金ポリシー',\n\t\tsellerRole:\n\t\t\t'拡張機能の機能とライセンス上の約束については、開発者が責任を負います。Extenshiは、お支払いとライセンス復元のためのツールを提供します。',\n\t\tlicenseTitle: 'ご利用のライセンス',\n\t\tlicenseFallbackName: '拡張機能のライセンス',\n\t\tlicenseNone: 'このインストール環境ではライセンスが見つかりませんでした。',\n\t\tkindOneTime: '買い切り',\n\t\tkindLifetime: 'ライフタイムライセンス',\n\t\tkindSubscription: 'サブスクリプション',\n\t\tkindLicense: 'ライセンス',\n\t\tstatusLine: 'ステータス:{status}',\n\t\tstatusActive: '有効',\n\t\tstatusGrace: '猶予期間中',\n\t\tstatusExpired: '期限切れ',\n\t\tstatusNone: '利用不可',\n\t\taccessEnded: '利用終了日時:{date}',\n\t\taccessUntil: '利用期限:{date}',\n\t\taccessRecordedEnd: '記録上の終了日時:{date}',\n\t\tsubscriptionLine: 'サブスクリプション:{status}',\n\t\trenewalCanceled: '更新停止済み',\n\t\tperiodEnds: '期間終了日:{date}',\n\t\tsubActive: '有効',\n\t\tsubTrialing: 'トライアル中',\n\t\tsubPastDue: '支払い期限超過',\n\t\tsubCanceled: '解約済み',\n\t\tsubUnpaid: '未払い',\n\t\tsubIncomplete: '手続き未完了',\n\t\tsubIncompleteExpired: '支払い未完了',\n\t\tsubPaused: '一時停止中',\n\t\tlicenseOffline:\n\t\t\t'ライセンスを確認するには、インターネットに接続してください。確認に成功しないまま48時間が経過すると、有料機能は一時停止されます。ご購入が失効したわけではありません。',\n\t\tlicenseCached: '保存済みのライセンス情報を表示しています。',\n\t\tlicenseFresh: 'サブスクリプション情報には、処理済みの最新の支払い情報が反映されています。',\n\t\tactionFailed:\n\t\t\t'リクエストを完了できませんでした。もう一度お試しいただくか、拡張機能のサポートにお問い合わせください。',\n\t\tmanageBilling: '請求情報を管理',\n\t\tnoPortal: '請求ポータルを開けませんでした。再試行するか、拡張機能のサポートにお問い合わせください。',\n\t\tclose: '閉じる',\n\t\tpickerTitle: '請求プロファイルを選択',\n\t\tpickerDescription:\n\t\t\t'購入ごとに別々の請求プロファイルがある場合があります。サブスクリプションと支払い情報を管理するプロファイルを1つ選択してください。',\n\t\tpickerFirstRecorded: '初回記録日:{date}',\n\t\tpickerCancel: 'キャンセル',\n\t\ttrialEndedTitle: '無料トライアルが終了しました',\n\t\ttrialEndedDescription:\n\t\t\t'拡張機能のツールは一時停止しています。設定は保存されており、アップグレード後もそのままご利用いただけます。',\n\t\ttrialEndedFeedback: 'フィードバックを送信',\n\t},\n\tko: {\n\t\ttitle: '프리미엄 기능 잠금 해제',\n\t\tdescription: '업그레이드하면 이 확장 프로그램의 모든 기능을 이용할 수 있습니다.',\n\t\tupgrade: '업그레이드',\n\t\tcancel: '나중에',\n\t\tdismiss: '닫기',\n\t\tremindLater: '나중에 다시 알림',\n\t\tcontinueFree: '무료 버전으로 계속하기',\n\t\tcheckoutUnavailable: '일시적으로 구매할 수 없습니다',\n\t\tperiodMonth: '/월',\n\t\tperiodYear: '/년',\n\t\tperiodOnce: '일회성',\n\t\tfooter: '안전한 결제 페이지가 새 탭에서 열립니다.',\n\t\trestorePurchase: '구매 복원',\n\t\tfeaturesHeading: '프리미엄 기능',\n\t\tplansHeading: '요금제 선택',\n\t\tfreePlanName: '무료',\n\t\tpremiumPlanName: '프리미엄',\n\t\tpopularBadge: '가장 인기',\n\t\tunlockHeading: '프리미엄 기능 잠금 해제',\n\t\tsimulatePurchase: '구매 시뮬레이션',\n\t\tmockNotice: '개발용 미리보기: 라이선스와 결제는 시뮬레이션됩니다. 실제로 결제되지 않습니다.',\n\t\tsellerProvidedBy: '라이선스 제공자: {name}',\n\t\tsellerUnavailable: '라이선스 제공자 정보를 확인할 수 없습니다.',\n\t\tsellerSupport: '확장 프로그램 지원',\n\t\tsellerTerms: '라이선스 약관',\n\t\tsellerRefunds: '환불 정책',\n\t\tsellerRole:\n\t\t\t'확장 프로그램의 기능과 라이선스 관련 약속은 개발자가 책임집니다. Extenshi는 결제 및 라이선스 복구 도구를 제공합니다.',\n\t\tlicenseTitle: '내 라이선스',\n\t\tlicenseFallbackName: '확장 프로그램 라이선스',\n\t\tlicenseNone: '이 설치 환경에서 라이선스를 찾지 못했습니다.',\n\t\tkindOneTime: '일회성 구매',\n\t\tkindLifetime: '평생 라이선스',\n\t\tkindSubscription: '구독',\n\t\tkindLicense: '라이선스',\n\t\tstatusLine: '상태: {status}',\n\t\tstatusActive: '활성',\n\t\tstatusGrace: '유예 기간 중',\n\t\tstatusExpired: '만료됨',\n\t\tstatusNone: '이용 권한 없음',\n\t\taccessEnded: '이용 종료 일시: {date}',\n\t\taccessUntil: '이용 기한: {date}',\n\t\taccessRecordedEnd: '기록된 종료 일시: {date}',\n\t\tsubscriptionLine: '구독: {status}',\n\t\trenewalCanceled: '갱신 취소됨',\n\t\tperiodEnds: '기간 종료일: {date}',\n\t\tsubActive: '활성',\n\t\tsubTrialing: '체험 중',\n\t\tsubPastDue: '결제 연체',\n\t\tsubCanceled: '해지됨',\n\t\tsubUnpaid: '미결제',\n\t\tsubIncomplete: '미완료',\n\t\tsubIncompleteExpired: '결제 미완료',\n\t\tsubPaused: '일시 중지됨',\n\t\tlicenseOffline:\n\t\t\t'라이선스를 확인하려면 인터넷에 연결해 주세요. 확인에 성공하지 못한 채 48시간이 지나면 유료 기능이 일시 중지됩니다. 구매가 만료된 것은 아닙니다.',\n\t\tlicenseCached: '저장된 라이선스 정보를 표시하고 있습니다.',\n\t\tlicenseFresh: '구독 정보에는 가장 최근에 처리된 결제 내역이 반영되어 있습니다.',\n\t\tactionFailed: '요청을 완료할 수 없습니다. 다시 시도하거나 확장 프로그램 지원 창구에 문의해 주세요.',\n\t\tmanageBilling: '결제 관리',\n\t\tnoPortal: '결제 포털이 열리지 않았습니다. 다시 시도하거나 확장 프로그램 지원 창구에 문의해 주세요.',\n\t\tclose: '닫기',\n\t\tpickerTitle: '결제 프로필 선택',\n\t\tpickerDescription:\n\t\t\t'구매마다 결제 프로필이 다를 수 있습니다. 구독과 결제 정보를 관리할 프로필을 하나 선택해 주세요.',\n\t\tpickerFirstRecorded: '최초 기록일: {date}',\n\t\tpickerCancel: '취소',\n\t\ttrialEndedTitle: '무료 체험 기간이 종료되었습니다',\n\t\ttrialEndedDescription:\n\t\t\t'확장 프로그램의 도구가 일시 중지되었습니다. 설정은 그대로 저장되어 있으며 업그레이드하면 다시 사용할 수 있습니다.',\n\t\ttrialEndedFeedback: '의견 보내기',\n\t},\n\t'zh-CN': {\n\t\ttitle: '解锁高级功能',\n\t\tdescription: '升级即可完整使用此扩展程序。',\n\t\tupgrade: '升级',\n\t\tcancel: '以后再说',\n\t\tdismiss: '忽略',\n\t\tremindLater: '稍后提醒我',\n\t\tcontinueFree: '继续使用免费版',\n\t\tcheckoutUnavailable: '暂时无法购买',\n\t\tperiodMonth: '/月',\n\t\tperiodYear: '/年',\n\t\tperiodOnce: '一次性',\n\t\tfooter: '安全结账页面将在新标签页中打开。',\n\t\trestorePurchase: '恢复购买',\n\t\tfeaturesHeading: '高级功能',\n\t\tplansHeading: '选择您的方案',\n\t\tfreePlanName: '免费版',\n\t\tpremiumPlanName: '高级版',\n\t\tpopularBadge: '最受欢迎',\n\t\tunlockHeading: '解锁高级功能',\n\t\tsimulatePurchase: '模拟购买',\n\t\tmockNotice: '开发预览:许可证和付款均为模拟,不会实际扣款。',\n\t\tsellerProvidedBy: '许可证由 {name} 提供',\n\t\tsellerUnavailable: '无法获取许可证提供方的详细信息。',\n\t\tsellerSupport: '扩展程序支持',\n\t\tsellerTerms: '许可条款',\n\t\tsellerRefunds: '退款政策',\n\t\tsellerRole: '作者负责扩展程序的功能及许可证相关承诺。Extenshi 提供支付及许可证恢复工具。',\n\t\tlicenseTitle: '您的许可证',\n\t\tlicenseFallbackName: '扩展程序许可证',\n\t\tlicenseNone: '此安装中未找到许可证。',\n\t\tkindOneTime: '一次性购买',\n\t\tkindLifetime: '终身许可证',\n\t\tkindSubscription: '订阅',\n\t\tkindLicense: '许可证',\n\t\tstatusLine: '状态:{status}',\n\t\tstatusActive: '有效',\n\t\tstatusGrace: '宽限期',\n\t\tstatusExpired: '已过期',\n\t\tstatusNone: '无使用权限',\n\t\taccessEnded: '使用权限已于 {date} 结束',\n\t\taccessUntil: '可使用至 {date}',\n\t\taccessRecordedEnd: '记录的结束日期:{date}',\n\t\tsubscriptionLine: '订阅:{status}',\n\t\trenewalCanceled: '已取消续订',\n\t\tperiodEnds: '当前计费周期于 {date} 结束',\n\t\tsubActive: '有效',\n\t\tsubTrialing: '试用中',\n\t\tsubPastDue: '付款逾期',\n\t\tsubCanceled: '已取消',\n\t\tsubUnpaid: '未付款',\n\t\tsubIncomplete: '未完成',\n\t\tsubIncompleteExpired: '付款未完成',\n\t\tsubPaused: '已暂停',\n\t\tlicenseOffline:\n\t\t\t'请连接互联网以验证您的许可证。如果连续48小时未能成功验证,付费功能将暂停。您的购买仍然有效。',\n\t\tlicenseCached: '正在显示已保存的许可证信息。',\n\t\tlicenseFresh: '订阅信息反映的是最近一次已处理的付款更新。',\n\t\tactionFailed: '无法完成请求。请重试或联系扩展程序支持。',\n\t\tmanageBilling: '管理账单',\n\t\tnoPortal: '未能打开账单门户。您可以重试或联系扩展程序支持。',\n\t\tclose: '关闭',\n\t\tpickerTitle: '选择账单资料',\n\t\tpickerDescription: '不同的购买可以有各自的账单资料。请选择一个,以管理其订阅和付款信息。',\n\t\tpickerFirstRecorded: '首次记录于 {date}',\n\t\tpickerCancel: '取消',\n\t\ttrialEndedTitle: '免费试用已结束',\n\t\ttrialEndedDescription: '扩展程序的工具已暂停。您的设置已保留,升级后即可继续使用。',\n\t\ttrialEndedFeedback: '提交反馈',\n\t},\n\tar: {\n\t\ttitle: 'احصل على الميزات المميزة',\n\t\tdescription: 'قم بالترقية للوصول الكامل إلى هذه الإضافة.',\n\t\tupgrade: 'ترقية',\n\t\tcancel: 'ليس الآن',\n\t\tdismiss: 'تجاهل',\n\t\tremindLater: 'ذكّرني لاحقًا',\n\t\tcontinueFree: 'المتابعة بالإصدار المجاني',\n\t\tcheckoutUnavailable: 'عمليات الشراء غير متاحة مؤقتًا',\n\t\tperiodMonth: '/شهر',\n\t\tperiodYear: '/سنة',\n\t\tperiodOnce: 'لمرة واحدة',\n\t\tfooter: 'تُفتح صفحة الدفع الآمن في علامة تبويب جديدة.',\n\t\trestorePurchase: 'استعادة الشراء',\n\t\tfeaturesHeading: 'الميزات المميزة',\n\t\tplansHeading: 'اختر خطتك',\n\t\tfreePlanName: 'مجاني',\n\t\tpremiumPlanName: 'مميز',\n\t\tpopularBadge: 'الأكثر رواجًا',\n\t\tunlockHeading: 'احصل على الميزات المميزة',\n\t\tsimulatePurchase: 'محاكاة الشراء',\n\t\tmockNotice: 'معاينة التطوير: تجري محاكاة التراخيص والمدفوعات، ولن يُحصَّل أي مبلغ.',\n\t\tsellerProvidedBy: 'الترخيص مقدَّم من البائع {name}',\n\t\tsellerUnavailable: 'بيانات مانح الترخيص غير متاحة.',\n\t\tsellerSupport: 'دعم الإضافة',\n\t\tsellerTerms: 'شروط الترخيص',\n\t\tsellerRefunds: 'سياسة استرداد المبالغ',\n\t\tsellerRole:\n\t\t\t'يتحمّل مطوّر الإضافة المسؤولية عن وظائفها وعن التزامات الترخيص، وتوفّر Extenshi أدوات الدفع واستعادة التراخيص.',\n\t\tlicenseTitle: 'ترخيصك',\n\t\tlicenseFallbackName: 'ترخيص الإضافة',\n\t\tlicenseNone: 'لم يُعثر على أي ترخيص في هذا التثبيت.',\n\t\tkindOneTime: 'شراء لمرة واحدة',\n\t\tkindLifetime: 'ترخيص مدى الحياة',\n\t\tkindSubscription: 'اشتراك',\n\t\tkindLicense: 'ترخيص',\n\t\tstatusLine: 'الحالة: {status}',\n\t\tstatusActive: 'نشطة',\n\t\tstatusGrace: 'في فترة السماح',\n\t\tstatusExpired: 'منتهية الصلاحية',\n\t\tstatusNone: 'بلا وصول',\n\t\taccessEnded: 'انتهى الوصول في {date}',\n\t\taccessUntil: 'الوصول متاح حتى {date}',\n\t\taccessRecordedEnd: 'تاريخ الانتهاء المسجَّل: {date}',\n\t\tsubscriptionLine: 'الاشتراك: {status}',\n\t\trenewalCanceled: 'أُلغي التجديد',\n\t\tperiodEnds: 'تنتهي الفترة الحالية في {date}',\n\t\tsubActive: 'نشط',\n\t\tsubTrialing: 'فترة تجريبية',\n\t\tsubPastDue: 'متأخر السداد',\n\t\tsubCanceled: 'ملغى',\n\t\tsubUnpaid: 'غير مدفوع',\n\t\tsubIncomplete: 'غير مكتمل',\n\t\tsubIncompleteExpired: 'لم يكتمل الدفع',\n\t\tsubPaused: 'متوقف مؤقتًا',\n\t\tlicenseOffline:\n\t\t\t'اتصل بالإنترنت للتحقق من ترخيصك. تتوقف الميزات المدفوعة مؤقتًا إذا مرّت 48 ساعة دون تحقق ناجح. لم تنتهِ صلاحية عملية الشراء.',\n\t\tlicenseCached: 'تُعرض معلومات الترخيص المحفوظة.',\n\t\tlicenseFresh: 'تعكس معلومات الاشتراك آخر تحديث للدفع تمت معالجته.',\n\t\tactionFailed: 'تعذّر إكمال الطلب. يُرجى المحاولة مرة أخرى أو التواصل مع دعم الإضافة.',\n\t\tmanageBilling: 'إدارة الفوترة',\n\t\tnoPortal: 'لم تُفتح بوابة الفوترة. يمكنك المحاولة مرة أخرى أو التواصل مع دعم الإضافة.',\n\t\tclose: 'إغلاق',\n\t\tpickerTitle: 'اختر ملف فوترة',\n\t\tpickerDescription:\n\t\t\t'يمكن أن تكون لعمليات الشراء المنفصلة ملفات فوترة منفصلة. اختر ملفًا منها لإدارة اشتراكاته وتفاصيل الدفع الخاصة به.',\n\t\tpickerFirstRecorded: 'سُجِّل لأول مرة في {date}',\n\t\tpickerCancel: 'إلغاء',\n\t\ttrialEndedTitle: 'انتهت فترتك التجريبية المجانية',\n\t\ttrialEndedDescription: 'أدوات الإضافة متوقفة مؤقتًا. إعداداتك محفوظة وستجدها كما هي بعد الترقية.',\n\t\ttrialEndedFeedback: 'إرسال ملاحظات',\n\t},\n}\n// END GENERATED TRANSLATIONS\n\n/** Our dictionary language for a tag: exact, then pt → pt-BR, zh(-CN/SG/Hans) → zh-CN, then the bare language. */\nexport function sdkLocale(locale: string | null | undefined): SdkLocale {\n\tconst tag = wireLocale(locale)\n\tif (!tag) return 'en'\n\tconst exact = SDK_LOCALES.find((l) => l.toLowerCase() === tag.toLowerCase())\n\tif (exact) return exact\n\tconst [lang, region] = tag.split('-')\n\tif (lang === 'pt') return 'pt-BR'\n\t// Traditional-script regions read English rather than Simplified characters.\n\tif (lang === 'zh') return region && ['TW', 'HK', 'MO'].includes(region) ? 'en' : 'zh-CN'\n\treturn SDK_LOCALES.find((l) => l === lang) ?? 'en'\n}\n\nexport function sdkDir(locale: string | null | undefined): 'ltr' | 'rtl' {\n\tconst lang = wireLocale(locale)?.split('-')[0]\n\treturn lang && ['ar', 'he', 'fa', 'ur'].includes(lang) ? 'rtl' : 'ltr'\n}\n\n/** English merged with the translation for `locale`. */\nexport function sdkStrings(locale: string | null | undefined): SdkStrings {\n\tconst tag = sdkLocale(locale)\n\treturn tag === 'en' ? SDK_STRINGS_EN : { ...SDK_STRINGS_EN, ...TRANSLATIONS[tag] }\n}\n\n/** Fill `{placeholders}` once; a value containing braces is inserted literally. */\nexport function fill(message: string, values: Record<string, string>): string {\n\treturn message.replace(/\\{([a-z]+)\\}/g, (whole, key: string) => values[key] ?? whole)\n}\n\n/** The raw translation block, for completeness tests. */\nexport function sdkTranslations(locale: Exclude<SdkLocale, 'en'>): SdkStrings | undefined {\n\treturn TRANSLATIONS[locale]\n}\n","/**\n * Wire contract between the SDK and catalog-bff `pay.*`.\n *\n * SOURCE OF TRUTH: `shared-types/pay.ts` in the extenshi.io monorepo. The SDK\n * ships with zero runtime dependencies and must not import that workspace, so\n * the types and constants it needs are copied here under identical names.\n * `canonicalJson` is copied VERBATIM: the BFF signs its output and the SDK\n * verifies it, so both sides must produce byte-identical strings\n * (pinned by tests/unit/canonical-json.test.ts). When `shared-types/pay.ts`\n * changes, mirror the change here.\n */\n\n/** Bumped only when an older SDK could misread the response. */\nexport const PAY_CONTRACT_VERSION = 1\n\nexport const PAY_GATEWAYS = ['stripe', 'paddle', 'lemonsqueezy'] as const\nexport type PayGatewayId = (typeof PAY_GATEWAYS)[number]\n\n// ─── Publishable key ────────────────────────────────────────────────────────\n\n/**\n * The only credential an extension bundle carries. It is public by\n * construction (anyone can unzip the .crx), so it must grant nothing beyond\n * \"read this project's offer\" and \"start a checkout for this project\".\n */\nexport const PAY_PUBLISHABLE_KEY_PREFIX = 'pk_ext_'\nexport const PAY_PUBLISHABLE_KEY_HEX_LENGTH = 32\nconst PUBLISHABLE_KEY_RE = new RegExp(\n\t`^${PAY_PUBLISHABLE_KEY_PREFIX}[0-9a-f]{${PAY_PUBLISHABLE_KEY_HEX_LENGTH}}$`,\n)\n\nexport function isPayPublishableKey(value: unknown): value is string {\n\treturn typeof value === 'string' && PUBLISHABLE_KEY_RE.test(value)\n}\n\n// ─── Offers ─────────────────────────────────────────────────────────────────\n\nexport const PAY_OFFER_KINDS = ['one_time', 'subscription', 'lifetime'] as const\nexport type PayOfferKind = (typeof PAY_OFFER_KINDS)[number]\n\nexport const PAY_OFFER_INTERVALS = ['month', 'year'] as const\nexport type PayOfferInterval = (typeof PAY_OFFER_INTERVALS)[number]\n\n/** ISO-4217 lowercase, matching what every gateway returns. */\nexport const PAY_CURRENCIES = ['usd', 'eur', 'gbp'] as const\nexport type PayCurrency = (typeof PAY_CURRENCIES)[number]\n\n/** `sku` is author-chosen and stable; it is what `requireFeature()` keys on. */\nexport const PAY_SKU_RE = /^[a-z0-9][a-z0-9_-]{1,39}$/\n\n// ─── Projection ─────────────────────────────────────────────────────────────\n\n/**\n * active — paid and not expired\n * grace — subscription past_due: keep access for a short window so a card\n * hiccup does not lock a paying user out mid-session\n * expired — was active, no longer is\n * none — never had it\n */\nexport const PAY_ENTITLEMENT_STATUSES = ['active', 'grace', 'expired', 'none'] as const\nexport type PayEntitlementStatus = (typeof PAY_ENTITLEMENT_STATUSES)[number]\n\n// ─── SDK-facing DTOs (the `pay.*` tRPC contract) ────────────────────────────\n\nexport interface PayOfferDto {\n\tsku: string\n\tkind: PayOfferKind\n\tinterval: PayOfferInterval | null\n\tamountMinor: number\n\tcurrency: PayCurrency\n\ttitle: string\n\tdescription: string | null\n\tfeatures: string[]\n}\n\nexport interface PayOfferResponse {\n\t/** Optional during rolling upgrades; never infer this from the project name. */\n\tseller?: PaySellerPublic | null\n\n\tv: typeof PAY_CONTRACT_VERSION\n\tprojectName: string\n\tprovider: PayGatewayId\n\t/** False while the seller cannot take money; the SDK renders the offer read-only. */\n\tcheckoutEnabled: boolean\n\t/** Optional for older servers; show recovery only when explicitly enabled. */\n\trecoveryEnabled?: boolean\n\toffers: PayOfferDto[]\n\t/** Base64 Ed25519 public key for `SignedEntitlement.signature`; null when unsigned. */\n\tentitlementPublicKey: string | null\n\t/**\n\t * The language the offers' text is in when the seller translated them\n\t * (it. 13 T10 L2); absent from older servers and for single-language offers.\n\t */\n\tlocale?: string\n\t/**\n\t * Set when the paywall must show an unticked withdrawal-waiver checkbox and\n\t * send the accepted `version` with `createCheckout`. Null when the seller\n\t * attested the extension is not distributed in the EEA/UK; absent from\n\t * older servers (the SDK then shows no checkbox).\n\t */\n\twithdrawalWaiver?: PayWithdrawalWaiver | null\n}\n\n/**\n * Version of the buyer-facing withdrawal waiver text the paywall shows (EU/EEA\n * digital content, Directive 2011/83/EU art. 16(m); UK CCR 2013 reg. 37). The\n * text itself lives in the SDK dictionary under the same version; bump both\n * together so a recorded consent always names the words the buyer saw.\n */\nexport const PAY_WITHDRAWAL_WAIVER_VERSION = '2026-10-v1'\n\nexport interface PayWithdrawalWaiver {\n\tversion: string\n}\n\nexport interface PayEntitlementItem {\n\t/** Optional for old signed caches and older servers. */\n\ttitle?: string\n\tkind?: PayOfferKind\n\tsubscriptions?: Array<{\n\t\tstatus: string\n\t\tcancelAtPeriodEnd: boolean\n\t\tcurrentPeriodEnd: string | null\n\t}>\n\n\tsku: string\n\tstatus: PayEntitlementStatus\n\t/** ISO timestamp; null for lifetime / one-time grants. */\n\texpiresAt: string | null\n\tfeatures: string[]\n}\n\n/**\n * The installation's free trial on the server clock: one per installation per application,\n * started at its first license read. Absent when the application has no trial.\n */\nexport interface PayTrial {\n\t/** ISO time of the first license read while the application had a trial. */\n\tstartedAt: string\n\t/** ISO `startedAt` plus the application's current trial length. */\n\tendsAt: string\n}\n\nexport interface PayEntitlementPayload {\n\tv: typeof PAY_CONTRACT_VERSION\n\t/** Signed application scope; prevents moving a grant to another application. */\n\tpublishableKey: string\n\tendUserRef: string\n\tentitlements: PayEntitlementItem[]\n\t/** ISO timestamp the projection was computed at; the SDK uses it for cache age. */\n\tissuedAt: string\n\t/** Optional: only for an application with a trial, and absent from older servers. */\n\ttrial?: PayTrial\n\t/** Optional: seconds of offline access after `issuedAt`; absent from older servers (48 hours). */\n\tofflineSeconds?: number\n}\n\nexport interface SignedEntitlement {\n\tpayload: PayEntitlementPayload\n\t/** Base64 Ed25519 signature over the canonical JSON of `payload`; null when the server has no key. */\n\tsignature: string | null\n\talg: 'ed25519' | null\n}\n\nexport type PayCheckoutClaim =\n\t| { state: 'pending' }\n\t| { state: 'complete'; entitlement: SignedEntitlement }\n\t| { state: 'expired' }\n\t| { state: 'canceled' }\n\nexport interface PayCheckoutSession {\n\turl: string\n\tsessionId: string\n\t/** ISO timestamp. */\n\texpiresAt: string\n}\n\n/**\n * The `endUserRef` an SDK mints on first run and keeps in `chrome.storage`.\n * Opaque, random, never derived from anything identifying.\n */\nexport const PAY_END_USER_REF_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i\n\n/** Typed error codes the BFF throws; dojo and the SDK match on `cause.code`. */\nexport const PAY_ERRORS = {\n\tSELLER_NOT_CONNECTED: 'PAY_SELLER_NOT_CONNECTED',\n\tSELLER_NOT_ACTIVE: 'PAY_SELLER_NOT_ACTIVE',\n\tAGREEMENT_REQUIRED: 'PAY_AGREEMENT_REQUIRED',\n\tOFFER_NOT_FOUND: 'PAY_OFFER_NOT_FOUND',\n\tOFFER_LIMIT: 'PAY_OFFER_LIMIT',\n\tPRICE_TOO_LOW: 'PAY_PRICE_TOO_LOW',\n\tGATEWAY_UNAVAILABLE: 'PAY_GATEWAY_UNAVAILABLE',\n\tRATE_LIMITED: 'PAY_RATE_LIMITED',\n\tINVALID_KEY: 'PAY_INVALID_KEY',\n\tWITHDRAWAL_WAIVER_REQUIRED: 'PAY_WITHDRAWAL_WAIVER_REQUIRED',\n} as const\nexport type PayErrorCode = (typeof PAY_ERRORS)[keyof typeof PAY_ERRORS]\n\n/**\n * Canonical JSON for signing: keys sorted recursively, no whitespace. Both\n * the BFF (sign) and the SDK (verify) must produce byte-identical output for\n * the same payload, so the rule lives in the shared contract.\n */\nexport function canonicalJson(value: unknown): string {\n\tif (value === null || typeof value !== 'object') return JSON.stringify(value)\n\tif (Array.isArray(value)) return `[${value.map((item) => canonicalJson(item)).join(',')}]`\n\tconst entries = Object.entries(value as Record<string, unknown>)\n\t\t.filter(([, v]) => v !== undefined)\n\t\t.sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))\n\treturn `{${entries.map(([k, v]) => `${JSON.stringify(k)}:${canonicalJson(v)}`).join(',')}}`\n}\n\nexport interface PayRestoreSessionResponse {\n\tsessionId: string\n\texpiresAt: string\n\turl: string\n}\n/**\n * `storage`: the buyer turns on the cloud copy of the extension's settings. The\n * hosted page shows the storage disclosure; the claim records consent. Additive:\n * a session without a purpose is a plain restore.\n */\nexport const PAY_RESTORE_PURPOSES = ['restore', 'storage'] as const\nexport type PayRestorePurpose = (typeof PAY_RESTORE_PURPOSES)[number]\n\n/**\n * Outcome for the cloud copy of settings, present in a complete claim only when\n * the application offers it. A token is returned once; a retried claim rotates it.\n */\nexport type PayStorageGrant =\n\t| { state: 'granted'; token: string }\n\t| { state: 'unavailable'; reason: 'NO_CONSENT' | 'LICENSE_REQUIRED' }\n\n/** From `shared-types/storage.ts`: `est_` + 32 random bytes, base64url. */\nexport const STORAGE_TOKEN_RE = /^est_[A-Za-z0-9_-]{43}$/\n\nexport type PayRestoreClaimResponse =\n\t| { state: 'pending' }\n\t| { state: 'complete'; endUserRef: string; entitlement: SignedEntitlement; storage?: PayStorageGrant }\n\n/** A project-scoped billing profile; provider identifiers are never exposed. */\nexport interface PayPortalAccount {\n\tid: string\n\tlabel: string\n\tcreatedAt: string\n\tsubscriptions: Array<{\n\t\ttitle: string\n\t\tstatus: string\n\t\tcancelAtPeriodEnd: boolean\n\t\tcurrentPeriodEnd: string | null\n\t}>\n}\n\nexport interface PayPortalResponse {\n\turl: string | null\n\t/** Present when the buyer must choose among multiple billing profiles. */\n\taccounts?: PayPortalAccount[]\n}\n\n/** Public author-provided contact details. Not a claim of identity verification. */\nexport interface PaySellerPublic {\n\tdisplayName: string\n\t/** HTTPS support page or plain email address. */\n\tsupportUrl: string\n\ttermsUrl: string | null\n\t/** Optional for older servers: refunds section of the license terms. */\n\trefundPolicyUrl?: string | null\n}\n","/**\n * Buyer-facing withdrawal-waiver text (EU/EEA digital content, Directive\n * 2011/83/EU art. 16(m); UK CCR 2013 reg. 37), per text version and SDK\n * language. Its own module, not part of the paywall dictionary, so Lite can\n * show it without bundling every paywall string.\n *\n * The recorded consent names the version, so a version's words never change:\n * new wording is a new version here and a new PAY_WITHDRAWAL_WAIVER_VERSION.\n *\n * MIRRORED in shared-types/pay-withdrawal-waiver.ts, which the purchase\n * confirmation email quotes; shared-types/pay-withdrawal-waiver.test.ts fails\n * unless both copies are byte-identical. Change them together.\n */\n\nimport { fill, type SdkLocale, sdkLocale } from '../paywall/i18n.js'\nimport { PAY_WITHDRAWAL_WAIVER_VERSION } from '../types/contract.js'\n\nexport const WITHDRAWAL_WAIVER_TEXTS: Readonly<Record<string, Readonly<Record<SdkLocale, string>>>> = {\n\t[PAY_WITHDRAWAL_WAIVER_VERSION]: {\n\t\ten: 'I agree that {seller} starts supplying the digital content immediately, and I acknowledge that I lose my right of withdrawal once supply has begun.',\n\t\tes: 'Acepto que {seller} comience a suministrar el contenido digital de inmediato y reconozco que pierdo mi derecho de desistimiento una vez iniciado el suministro.',\n\t\t'pt-BR':\n\t\t\t'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.',\n\t\tfr: '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.',\n\t\tde: '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.',\n\t\tit: 'Accetto che {seller} inizi immediatamente la fornitura del contenuto digitale e riconosco di perdere il mio diritto di recesso una volta iniziata la fornitura.',\n\t\tru: 'Я соглашаюсь с тем, что {seller} немедленно начнёт предоставление цифрового контента, и подтверждаю, что утрачиваю право на отказ от договора с момента начала предоставления.',\n\t\tja: '{seller}がデジタルコンテンツの提供を直ちに開始することに同意し、提供の開始後は撤回権を失うことを了承します。',\n\t\tko: '{seller}의 디지털 콘텐츠 제공이 즉시 시작되는 것에 동의하며, 제공이 시작되면 청약철회권을 상실한다는 점을 확인합니다.',\n\t\t'zh-CN': '我同意 {seller} 立即开始提供数字内容,并确认一旦开始提供,我将失去撤回权。',\n\t\tar: 'أوافق على أن يبدأ {seller} فورًا في تقديم المحتوى الرقمي، وأُقرّ بأنني أفقد حقي في العدول عن العقد بمجرد بدء التقديم.',\n\t},\n}\n\n/**\n * The waiver text to show for `serverVersion`, and the version to send with\n * the consent. A version this SDK does not know (a newer server) shows this\n * SDK's current text and sends its version: the consent always names the words\n * actually shown.\n */\nexport function withdrawalWaiverText(\n\tserverVersion: string,\n\tlocale: string | null | undefined,\n\tseller: string,\n): { version: string; text: string } {\n\t// Own keys only: `toString` / `__proto__` from a server are just unknown versions.\n\tconst known = Object.keys(WITHDRAWAL_WAIVER_TEXTS).includes(serverVersion)\n\tconst version = known ? serverVersion : PAY_WITHDRAWAL_WAIVER_VERSION\n\treturn { version, text: fill(WITHDRAWAL_WAIVER_TEXTS[version][sdkLocale(locale)], { seller }) }\n}\n","import type { PayOfferDto } from '../types/contract.js'\nimport type { PaywallStrings } from '../types/paywall.js'\n\nexport interface FormattedPrice {\n\t/** Currency symbol/code as the locale renders it (`$`, `€`, `US$`). */\n\tcurrency: string\n\t/** Numeric part (`9.99`, `9,99`). */\n\tamount: string\n\t/** The whole formatted price (`$9.99`). */\n\tfull: string\n}\n\nexport function formatPrice(amountMinor: number, currency: string, locale?: string | null): FormattedPrice {\n\tconst value = amountMinor / 100\n\tconst code = currency.toUpperCase()\n\ttry {\n\t\tconst formatter = new Intl.NumberFormat(locale ?? undefined, { style: 'currency', currency: code })\n\t\tconst parts = formatter.formatToParts(value)\n\t\treturn {\n\t\t\tcurrency: parts\n\t\t\t\t.filter((part) => part.type === 'currency')\n\t\t\t\t.map((part) => part.value)\n\t\t\t\t.join(''),\n\t\t\tamount: parts\n\t\t\t\t.filter((part) => part.type !== 'currency' && part.type !== 'literal')\n\t\t\t\t.map((part) => part.value)\n\t\t\t\t.join(''),\n\t\t\tfull: formatter.format(value),\n\t\t}\n\t} catch {\n\t\tconst amount = value.toFixed(2)\n\t\treturn { currency: code, amount, full: `${amount} ${code}` }\n\t}\n}\n\nexport function periodLabel(offer: PayOfferDto, strings: PaywallStrings): string {\n\tif (offer.kind !== 'subscription') return strings.periodOnce\n\treturn offer.interval === 'year' ? strings.periodYear : strings.periodMonth\n}\n","export const ERROR_CODES = {\n\tINVALID_CONFIG: 'INVALID_CONFIG',\n\tINVALID_REQUEST: 'INVALID_REQUEST',\n\tNETWORK_ERROR: 'NETWORK_ERROR',\n\tTIMEOUT: 'TIMEOUT',\n\tVERIFICATION_UNAVAILABLE: 'VERIFICATION_UNAVAILABLE',\n\tINVALID_RESPONSE: 'INVALID_RESPONSE',\n\tRATE_LIMITED: 'RATE_LIMITED',\n\tINVALID_KEY: 'INVALID_KEY',\n\tSELLER_NOT_ACTIVE: 'SELLER_NOT_ACTIVE',\n\tOFFER_NOT_FOUND: 'OFFER_NOT_FOUND',\n\tGATEWAY_UNAVAILABLE: 'GATEWAY_UNAVAILABLE',\n\tCHECKOUT_UNAVAILABLE: 'CHECKOUT_UNAVAILABLE',\n\tPAYWALL_UNAVAILABLE: 'PAYWALL_UNAVAILABLE',\n\tWITHDRAWAL_WAIVER_REQUIRED: 'WITHDRAWAL_WAIVER_REQUIRED',\n\tUNKNOWN: 'UNKNOWN',\n} as const\n\nexport type ErrorCode = (typeof ERROR_CODES)[keyof typeof ERROR_CODES]\n\nexport interface ExtenshiPayErrorOptions {\n\tretryAfterSec?: number\n\thttpStatus?: number\n\tcause?: unknown\n}\n\nexport class ExtenshiPayError extends Error {\n\treadonly code: ErrorCode\n\treadonly retryAfterSec: number | undefined\n\treadonly httpStatus: number | undefined\n\treadonly cause: unknown\n\n\tconstructor(code: ErrorCode, message: string, options: ExtenshiPayErrorOptions = {}) {\n\t\tsuper(message)\n\t\tthis.name = 'ExtenshiPayError'\n\t\tthis.code = code\n\t\tthis.retryAfterSec = options.retryAfterSec\n\t\tthis.httpStatus = options.httpStatus\n\t\tthis.cause = options.cause\n\t}\n\n\tstatic from(error: unknown, fallback: ErrorCode = ERROR_CODES.UNKNOWN): ExtenshiPayError {\n\t\tif (error instanceof ExtenshiPayError) return error\n\t\tconst message = error instanceof Error ? error.message : String(error)\n\t\treturn new ExtenshiPayError(fallback, message, { cause: error })\n\t}\n}\n","import type { PaySellerPublic } from '../types/contract.js'\nimport { fill, SDK_STRINGS_EN, type SdkStrings } from './i18n.js'\n\n/** Treat even server-provided links as untrusted; never render executable protocols. */\nexport function publicContactUrl(value: string): string | null {\n\ttry {\n\t\tconst url = new URL(value)\n\t\tif (url.protocol === 'https:' && !url.username && !url.password) return url.href\n\t} catch {\n\t\t/* A plain email address is allowed below. */\n\t}\n\tif (/^[^\\s@?&#:]+@[^\\s@?&#:]+\\.[^\\s@?&#:]+$/.test(value)) return `mailto:${encodeURIComponent(value)}`\n\treturn null\n}\n\nexport function sellerDetails(seller: PaySellerPublic | null, t: SdkStrings = SDK_STRINGS_EN): HTMLElement {\n\tconst section = document.createElement('section')\n\tsection.className = 'extenshi-seller-details'\n\tconst name = document.createElement('p')\n\tname.textContent = seller ? fill(t.sellerProvidedBy, { name: seller.displayName }) : t.sellerUnavailable\n\tsection.append(name)\n\tconst link = (label: string, value: string | null) => {\n\t\tconst href = value ? publicContactUrl(value) : null\n\t\tif (!href) return\n\t\tconst a = document.createElement('a')\n\t\ta.textContent = label\n\t\ta.href = href\n\t\ta.target = '_blank'\n\t\ta.rel = 'noopener noreferrer'\n\t\ta.style.marginInlineEnd = '12px'\n\t\tsection.append(a)\n\t}\n\tif (seller) {\n\t\tlink(t.sellerSupport, seller.supportUrl)\n\t\tlink(t.sellerTerms, seller.termsUrl)\n\t\tlink(t.sellerRefunds, seller.refundPolicyUrl ?? null)\n\t}\n\tconst role = document.createElement('p')\n\trole.textContent = t.sellerRole\n\tsection.append(role)\n\treturn section\n}\n","/**\n * The paywall's strings in a locale, from the SDK dictionary (./i18n.ts).\n * Do not add promotional claims without marketing/legal review (see\n * .claude/modules/paywall-templates.md).\n */\n\nimport type { PaywallStrings } from '../types/paywall.js'\nimport { SDK_STRINGS_EN, type SdkStrings, sdkStrings } from './i18n.js'\n\nfunction paywallStrings(t: SdkStrings): PaywallStrings {\n\treturn {\n\t\ttitle: t.title,\n\t\tdescription: t.description,\n\t\tupgrade: t.upgrade,\n\t\tcancel: t.cancel,\n\t\tdismiss: t.dismiss,\n\t\tremindLater: t.remindLater,\n\t\tcontinueFree: t.continueFree,\n\t\tcheckoutUnavailable: t.checkoutUnavailable,\n\t\tperiodMonth: t.periodMonth,\n\t\tperiodYear: t.periodYear,\n\t\tperiodOnce: t.periodOnce,\n\t\tfooter: t.footer,\n\t\trestorePurchase: t.restorePurchase,\n\t\tfeaturesHeading: t.featuresHeading,\n\t\tplansHeading: t.plansHeading,\n\t\tfreePlanName: t.freePlanName,\n\t\tpremiumPlanName: t.premiumPlanName,\n\t\tpopularBadge: t.popularBadge,\n\t\tunlockHeading: t.unlockHeading,\n\t}\n}\n\n/** English (the default and the fallback). */\nexport const DEFAULT_STRINGS: PaywallStrings = paywallStrings(SDK_STRINGS_EN)\n\nexport const MOCK_PAYMENT_NOTICE = SDK_STRINGS_EN.mockNotice\n\n/** The paywall strings for `locale` (English when we have no translation). */\nexport function stringsFor(locale: string | null | undefined): PaywallStrings {\n\treturn paywallStrings(sdkStrings(locale))\n}\n","export const html = \"<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>\";\nexport const css = \".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}}\";\nexport default { html, css };","export const html = \"<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>\";\nexport const css = \".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}}\";\nexport default { html, css };","export const html = \"<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>\";\nexport const css = \".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)}\";\nexport default { html, css };","export const html = \"<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>\";\nexport const css = \".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}}\";\nexport default { html, css };","export 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>\";\nexport 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}}\";\nexport default { html, css };","/**\n * The five templates from `@extenshi/paywall-templates`, inlined at build\n * time by build/paywall-templates-plugin.mjs. No runtime fetch, no\n * `web_accessible_resources`, no remote code.\n */\n\nimport sharedCss from 'virtual:extenshi-paywall-shared-css'\nimport * as fullscreen from '@extenshi/paywall-templates/fullscreen'\nimport * as inline from '@extenshi/paywall-templates/inline'\nimport * as minimal from '@extenshi/paywall-templates/minimal'\nimport * as modal from '@extenshi/paywall-templates/modal'\nimport * as sidebar from '@extenshi/paywall-templates/sidebar'\nimport type { PaywallMode } from '../types/paywall.js'\n\nexport interface PaywallTemplate {\n\thtml: string\n\tcss: string\n}\n\nexport const PAYWALL_SHARED_CSS: string = sharedCss\n\nexport const PAYWALL_TEMPLATES: Record<PaywallMode, PaywallTemplate> = {\n\tmodal: { html: modal.html, css: modal.css },\n\tinline: { html: inline.html, css: inline.css },\n\tsidebar: { html: sidebar.html, css: sidebar.css },\n\tfullscreen: { html: fullscreen.html, css: fullscreen.css },\n\tminimal: { html: minimal.html, css: minimal.css },\n}\n\nexport const PAYWALL_MODES = Object.keys(PAYWALL_TEMPLATES) as PaywallMode[]\n","/**\n * The one paywall renderer.\n *\n * Renders a template from `@extenshi/paywall-templates` into a Shadow DOM\n * host so the templates' resets never leak into the extension page (and vice\n * versa). Placeholders (`{{title}}`, `{{price}}` …) are filled from the offer\n * and the strings dictionary, every value HTML-escaped; buttons are bound with\n * `addEventListener` on `data-ep-action` (no inline handlers, no scripts).\n */\n\nimport { withdrawalWaiverText } from '../payment/withdrawal-waiver.js'\nimport type { ThemeConfig } from '../types/config.js'\nimport type { PayOfferDto, PaySellerPublic, PayWithdrawalWaiver } from '../types/contract.js'\nimport type { UpgradeConsent } from '../types/entitlement.js'\nimport { ERROR_CODES, ExtenshiPayError } from '../types/errors.js'\nimport type { PaywallMode, PaywallStrings } from '../types/paywall.js'\nimport { formatPrice, periodLabel } from './format.js'\nimport { sdkDir, sdkLocale, sdkStrings } from './i18n.js'\nimport { sellerDetails } from './seller-details.js'\nimport { stringsFor } from './strings.js'\nimport { PAYWALL_SHARED_CSS, PAYWALL_TEMPLATES } from './templates.js'\n\nexport interface PaywallView {\n\tmode: PaywallMode\n\ttitle: string\n\tdescription: string\n\tfeatures: string[]\n\tfreeFeatures: string[]\n\t/** Header image URL (./icon.ts) in place of the template's glyph; absent or null keeps the glyph. */\n\ticon?: string | null\n\tbrandName: string\n\toffer: PayOfferDto | null\n\tcheckoutEnabled: boolean\n\tmock?: boolean\n\trecoveryEnabled?: boolean\n\tseller?: PaySellerPublic | null\n\t/**\n\t * From `PayOfferResponse.withdrawalWaiver`: when set (and the offer is\n\t * purchasable) an unticked waiver checkbox gates every upgrade button.\n\t * The waiver text is not overridable through `strings`: it is versioned.\n\t */\n\twithdrawalWaiver?: PayWithdrawalWaiver | null\n\t/** A link-styled button under the plans (trial-ended screen); clicking it calls `onFeedback`. */\n\tfeedback?: { label: string } | null\n\tlocale: string | null\n\ttheme: ThemeConfig\n\tstrings: Partial<PaywallStrings>\n\tcontainer?: HTMLElement\n}\n\nexport interface PaywallRendererCallbacks {\n\t/** `consent` is passed only when the paywall showed the withdrawal waiver (and it was ticked). */\n\tonUpgrade: (sku: string, consent?: UpgradeConsent) => void\n\tonClose: () => void\n\tonRestore?: () => void\n\tonFeedback?: () => void\n}\n\nexport const PAYWALL_HOST_CLASS = 'extenshi-paywall-host'\n\nconst UPGRADE_ACTIONS: ReadonlySet<string> = new Set(['upgradeNow', 'startUpgrade'])\nconst UPGRADE_SELECTOR = '[data-ep-action=\"upgradeNow\"], [data-ep-action=\"startUpgrade\"]'\nexport const WITHDRAWAL_WAIVER_CLASS = 'extenshi-withdrawal-waiver'\nconst CLOSE_ACTIONS: ReadonlySet<string> = new Set([\n\t'closePaywall',\n\t'closeSidebar',\n\t'closeFullscreen',\n\t'closeMinimal',\n\t'dismissPaywall',\n\t'remindLater',\n\t'continueFree',\n])\n\nconst ROOT_SELECTOR: Record<PaywallMode, string> = {\n\tmodal: '.ep-modal-backdrop',\n\tinline: '.ep-inline-paywall',\n\tsidebar: '.ep-sidebar-paywall',\n\tfullscreen: '.ep-fullscreen-paywall',\n\tminimal: '.ep-minimal-paywall',\n}\n\nconst BACKDROP_SELECTOR: Partial<Record<PaywallMode, string>> = {\n\tmodal: '.ep-modal-backdrop',\n\tsidebar: '.ep-sidebar-backdrop',\n\tminimal: '.ep-minimal-backdrop',\n}\n\nconst VISIBLE_CLASSES: Partial<Record<PaywallMode, Array<[selector: string, className: string]>>> = {\n\tinline: [['.ep-inline-paywall', 'ep-inline-visible']],\n\tsidebar: [\n\t\t['.ep-sidebar-paywall', 'ep-sidebar-visible'],\n\t\t['.ep-sidebar-backdrop', 'ep-sidebar-backdrop-visible'],\n\t],\n\tminimal: [\n\t\t['.ep-minimal-paywall', 'ep-minimal-visible'],\n\t\t['.ep-minimal-backdrop', 'ep-minimal-backdrop-visible'],\n\t],\n}\n\n/** Template blocks the contract has no data for (trials, usage meters). */\nconst PRUNE_SELECTOR = '[class*=\"-trial\"], .ep-sidebar-progress'\n/** Glyphs that stand for the product: on a gradient tile, or next to the brand name. */\nconst ICON_TILE_SELECTOR = '.ep-modal-icon, .ep-inline-icon, .ep-minimal-icon, .ep-hero-icon'\nconst ICON_LOGO_SELECTOR = '.ep-fullscreen-logo, .ep-sidebar-logo'\n/**\n * Templates stagger their feature rows in with this class from their demo\n * script (sidebar, fullscreen); without it the rows sit at opacity 0.\n */\nconst FEATURE_ITEM_VISIBLE = ['.ep-feature-item', 'ep-feature-item-visible'] as const\n/** Containers of a single feature slot; dropped when the slot's placeholder is empty. */\nconst FEATURE_SLOT_SELECTOR = 'li, .ep-feature-card, .ep-feature-item, .ep-pricing-feature, .ep-feature'\n/** Feature sections and lists (with their headings); dropped once no slot is left in them. */\nconst FEATURE_BLOCK_SELECTOR = '[class*=\"-features\"]'\nconst EMPTY_SLOT_MARK = 'data-ep-empty'\n/** Placeholders whose element is dropped when empty: feature slots and the price card's copy. */\nconst OPTIONAL_KEY_RE =\n\t/^(feature\\d+(Title)?|premiumFeature\\d+|freeFeature\\d+|pricingDescription|priceDescription|premiumDescription)$/\n\nexport function escapeHtml(value: string): string {\n\treturn value\n\t\t.replace(/&/g, '&amp;')\n\t\t.replace(/</g, '&lt;')\n\t\t.replace(/>/g, '&gt;')\n\t\t.replace(/\"/g, '&quot;')\n\t\t.replace(/'/g, '&#039;')\n}\n\nexport function substitute(html: string, content: Record<string, string>): string {\n\treturn html.replace(/\\{\\{(\\w+)\\}\\}/g, (_match, key: string) => {\n\t\tconst value = content[key] ?? ''\n\t\tif (value === '' && OPTIONAL_KEY_RE.test(key)) return `<i ${EMPTY_SLOT_MARK}></i>`\n\t\treturn escapeHtml(value)\n\t})\n}\n\nexport function buildContent(view: PaywallView, strings: PaywallStrings): Record<string, string> {\n\tconst offer = view.offer\n\tconst price = offer ? formatPrice(offer.amountMinor, offer.currency, view.locale) : null\n\t// Without a `description` option the header already shows the offer's\n\t// description (ExtenshiPay.showPaywall); the price card must not repeat it.\n\tconst offerDescription = offer?.description?.trim() ?? ''\n\tconst priceCopy = offerDescription === view.description.trim() ? '' : offerDescription\n\tconst content: Record<string, string> = {\n\t\ttitle: view.title,\n\t\tdescription: view.description,\n\t\tbrandName: view.brandName,\n\t\tcurrency: price?.currency ?? '',\n\t\tprice: price?.amount ?? '',\n\t\tperiod: offer ? periodLabel(offer, strings) : '',\n\t\tpricingDescription: priceCopy,\n\t\tpriceDescription: priceCopy,\n\t\tpremiumDescription: priceCopy,\n\t\tupgradeButtonText: view.checkoutEnabled && offer ? strings.upgrade : strings.checkoutUnavailable,\n\t\tcancelButtonText: strings.cancel,\n\t\tdismissButtonText: strings.dismiss,\n\t\tremindLaterText: strings.remindLater,\n\t\tcontinueButtonText: strings.continueFree,\n\t\tfooterText: strings.footer,\n\t\tfeaturesHeading: strings.featuresHeading,\n\t\tplansHeading: strings.plansHeading,\n\t\tfreePlanName: strings.freePlanName,\n\t\tpremiumPlanName: strings.premiumPlanName,\n\t\tpopularBadge: strings.popularBadge,\n\t\tunlockHeading: strings.unlockHeading,\n\t}\n\tview.features.forEach((feature, index) => {\n\t\tconst n = index + 1\n\t\tcontent[`feature${n}`] = feature\n\t\tcontent[`feature${n}Title`] = feature\n\t\tcontent[`premiumFeature${n}`] = feature\n\t})\n\tview.freeFeatures.forEach((feature, index) => {\n\t\tcontent[`freeFeature${index + 1}`] = feature\n\t})\n\treturn content\n}\n\n/** Who supplies the content: the seller's public name, else the project/brand name. */\nfunction waiverSellerName(view: PaywallView): string {\n\treturn view.seller?.displayName?.trim() || view.brandName.trim() || view.title\n}\n\nconst CSS_VALUE_UNSAFE = /[;{}<>]/g\n/**\n * The rest of the primary scale, as the share of `primaryColor` mixed with\n * white (tints) or black (shades). Price cards and links use these steps; left\n * at the defaults they stay sky blue next to a button in the author's colour.\n */\nconst PRIMARY_TINTS: ReadonlyArray<[step: number, percent: number]> = [\n\t[50, 8],\n\t[100, 16],\n\t[200, 32],\n\t[300, 52],\n\t[400, 76],\n]\nconst PRIMARY_SHADES: ReadonlyArray<[step: number, percent: number]> = [\n\t[800, 72],\n\t[900, 52],\n]\n\nexport function themeCss(theme: ThemeConfig): string {\n\tconst declarations: string[] = []\n\tconst safe = (value: string) => value.replace(CSS_VALUE_UNSAFE, '')\n\tif (theme.primaryColor) {\n\t\tconst color = safe(theme.primaryColor)\n\t\tdeclarations.push(`--ep-primary-500:${color}`, `--ep-primary-600:${color}`, `--ep-primary-700:${color}`)\n\t\tfor (const [step, percent] of PRIMARY_TINTS)\n\t\t\tdeclarations.push(`--ep-primary-${step}:color-mix(in srgb,${color} ${percent}%,white)`)\n\t\tfor (const [step, percent] of PRIMARY_SHADES)\n\t\t\tdeclarations.push(`--ep-primary-${step}:color-mix(in srgb,${color} ${percent}%,black)`)\n\t}\n\tif (theme.fontFamily) declarations.push(`--ep-font-family-sans:${safe(theme.fontFamily)}`)\n\tif (theme.borderRadius) {\n\t\tconst radius = safe(theme.borderRadius)\n\t\tdeclarations.push(`--ep-radius-md:${radius}`, `--ep-radius-lg:${radius}`, `--ep-radius-xl:${radius}`)\n\t}\n\tconst host = declarations.length > 0 ? `:host{${declarations.join(';')}}` : ''\n\treturn host + (theme.customCss ?? '')\n}\n\nexport function resolveThemeMode(theme: ThemeConfig): 'light' | 'dark' {\n\tconst mode = theme.mode ?? 'auto'\n\tif (mode !== 'auto') return mode\n\tconst matchMedia = (globalThis as { matchMedia?: (query: string) => { matches: boolean } }).matchMedia\n\treturn typeof matchMedia === 'function' &&\n\t\tmatchMedia.call(globalThis, '(prefers-color-scheme: dark)').matches\n\t\t? 'dark'\n\t\t: 'light'\n}\n\nexport class PaywallRenderer {\n\tprivate host: HTMLElement | null = null\n\tprivate keyHandler: ((event: KeyboardEvent) => void) | null = null\n\n\tconstructor(private readonly callbacks: PaywallRendererCallbacks) {}\n\n\tisVisible(): boolean {\n\t\treturn this.host !== null\n\t}\n\n\t/** Returns the host element; its shadow root holds the rendered template. */\n\tshow(view: PaywallView): HTMLElement {\n\t\tthis.hide()\n\t\tconst doc = (globalThis as { document?: Document }).document\n\t\tif (!doc || typeof doc.createElement !== 'function' || !doc.body) {\n\t\t\tthrow new ExtenshiPayError(\n\t\t\t\tERROR_CODES.PAYWALL_UNAVAILABLE,\n\t\t\t\t'The paywall needs a DOM; call showPaywall() from a popup, options page or content script',\n\t\t\t)\n\t\t}\n\t\tconst template = PAYWALL_TEMPLATES[view.mode]\n\t\tif (!template)\n\t\t\tthrow new ExtenshiPayError(ERROR_CODES.INVALID_REQUEST, `Unknown paywall mode \"${view.mode}\"`)\n\n\t\tconst t = sdkStrings(view.locale)\n\t\tconst strings: PaywallStrings = { ...stringsFor(view.locale), ...view.strings }\n\t\tif (view.mock) {\n\t\t\tstrings.upgrade = t.simulatePurchase\n\t\t\tstrings.footer = t.mockNotice\n\t\t}\n\t\tconst host = doc.createElement('div')\n\t\thost.className = PAYWALL_HOST_CLASS\n\t\thost.setAttribute('data-theme', resolveThemeMode(view.theme))\n\t\t// The shadow tree inherits the host's language: screen readers and\n\t\t// hyphenation read the strings in the language they are written in.\n\t\thost.setAttribute('lang', sdkLocale(view.locale))\n\t\thost.setAttribute('dir', sdkDir(sdkLocale(view.locale)))\n\t\tconst root: ShadowRoot | HTMLElement =\n\t\t\ttypeof host.attachShadow === 'function' ? host.attachShadow({ mode: 'open' }) : host\n\t\troot.innerHTML =\n\t\t\t`<style>${PAYWALL_SHARED_CSS}${template.css}${themeCss(view.theme)}</style>` +\n\t\t\tsubstitute(template.html, buildContent(view, strings))\n\n\t\tthis.prune(root)\n\t\tif (view.icon) this.placeIcon(root, doc, view.icon)\n\t\tconst waiver =\n\t\t\tview.offer && view.checkoutEnabled && view.withdrawalWaiver\n\t\t\t\t? withdrawalWaiverText(view.withdrawalWaiver.version, view.locale, waiverSellerName(view))\n\t\t\t\t: null\n\t\tconst waiverBox = waiver ? doc.createElement('input') : null\n\t\t// undefined: no waiver asked → onUpgrade(sku) exactly as before; null: not ticked yet.\n\t\tconst consent = (): UpgradeConsent | null | undefined => {\n\t\t\tif (!waiver) return undefined\n\t\t\treturn waiverBox?.checked ? { withdrawalWaiver: { version: waiver.version, accepted: true } } : null\n\t\t}\n\t\tthis.bind(root, view, doc, consent)\n\t\tconst sellerMount = root.querySelector(\n\t\t\t'[class*=\"-footer\"], .ep-minimal-actions, .ep-inline-content, .ep-fullscreen-content',\n\t\t)\n\t\tif (sellerMount) {\n\t\t\tconst details = sellerDetails(view.seller ?? null, t)\n\t\t\tdetails.style.cssText =\n\t\t\t\t'font-size:12px;line-height:1.5;margin-top:12px;text-align:start;white-space:normal;color:var(--ep-text-secondary)'\n\t\t\t// In the modal, disclose the provider before the purchase action,\n\t\t\t// instead of below it in the scrollable footer.\n\t\t\tconst modalActions = root.querySelector('.ep-modal-actions')\n\t\t\tif (modalActions) modalActions.before(details)\n\t\t\telse sellerMount.append(details)\n\t\t}\n\t\tif (view.mock) {\n\t\t\tconst upgrade = root.querySelector(UPGRADE_SELECTOR)\n\t\t\tif (upgrade) {\n\t\t\t\tconst notice = doc.createElement('p')\n\t\t\t\tnotice.className = 'extenshi-payment-preview'\n\t\t\t\tnotice.textContent = t.mockNotice\n\t\t\t\tnotice.style.cssText = 'font-size:13px;line-height:1.5;margin:12px 0;white-space:normal'\n\t\t\t\tupgrade.before(notice)\n\t\t\t}\n\t\t}\n\t\tif (waiver && waiverBox) this.mountWaiver(root, doc, waiver.text, waiverBox)\n\t\tconst onRestore = this.callbacks.onRestore\n\t\tif (view.recoveryEnabled && onRestore) this.footerLink(root, doc, strings.restorePurchase, onRestore)\n\t\tconst onFeedback = this.callbacks.onFeedback\n\t\tif (view.feedback && onFeedback) this.footerLink(root, doc, view.feedback.label, onFeedback)\n\t\tconst mount = view.mode === 'inline' ? (view.container ?? doc.body) : doc.body\n\t\tmount.appendChild(host)\n\t\tthis.host = host\n\t\tthis.reveal(root, view.mode)\n\t\treturn host\n\t}\n\n\thide(): void {\n\t\tif (!this.host) return\n\t\tif (this.keyHandler) {\n\t\t\tthis.host.ownerDocument.removeEventListener('keydown', this.keyHandler)\n\t\t\tthis.keyHandler = null\n\t\t}\n\t\tthis.host.remove()\n\t\tthis.host = null\n\t}\n\n\t/** A text button at the end of the footer (no `href`: the SDK opens URLs itself). */\n\tprivate footerLink(root: ParentNode, doc: Document, label: string, onClick: () => void): void {\n\t\tconst footer = root.querySelector(\n\t\t\t'[class*=\"-footer\"], .ep-minimal-actions, .ep-inline-content, .ep-fullscreen-content',\n\t\t)\n\t\tif (!footer) return\n\t\tconst button = doc.createElement('button')\n\t\tbutton.type = 'button'\n\t\tbutton.textContent = label\n\t\tbutton.style.cssText =\n\t\t\t'display:block;margin:12px auto 0;background:none;border:0;color:inherit;font:inherit;text-decoration:underline;cursor:pointer'\n\t\tbutton.addEventListener('click', () => onClick())\n\t\tfooter.appendChild(button)\n\t}\n\n\tprivate prune(root: ParentNode): void {\n\t\tfor (const element of root.querySelectorAll(PRUNE_SELECTOR)) element.remove()\n\t\tfor (const mark of root.querySelectorAll(`[${EMPTY_SLOT_MARK}]`)) {\n\t\t\tconst slot = mark.parentElement?.closest(FEATURE_SLOT_SELECTOR) ?? mark.parentElement\n\t\t\t;(slot ?? mark).remove()\n\t\t}\n\t\t// Every slot empty (no `features` passed): drop the section with its\n\t\t// heading, so no \"Premium Features\" title sits over nothing.\n\t\tfor (const block of root.querySelectorAll(FEATURE_BLOCK_SELECTOR)) {\n\t\t\tif (!block.querySelector(FEATURE_SLOT_SELECTOR)) block.remove()\n\t\t}\n\t\t// A button whose label placeholder the contract does not fill (trial\n\t\t// CTAs on sidebar/fullscreen) would render as an empty pill; icon-only\n\t\t// buttons (close) keep their SVG and stay.\n\t\tfor (const button of root.querySelectorAll('button')) {\n\t\t\tif (!button.textContent?.trim() && !button.querySelector('svg')) button.remove()\n\t\t}\n\t}\n\n\t/**\n\t * Swaps the templates' product glyphs for the extension's icon. A tile's\n\t * gradient only backs the white glyph, so it goes too; an image that fails\n\t * to load puts the glyph (and the gradient) back.\n\t */\n\tprivate placeIcon(root: ParentNode, doc: Document, url: string): void {\n\t\tfor (const slot of root.querySelectorAll<HTMLElement>(`${ICON_TILE_SELECTOR}, ${ICON_LOGO_SELECTOR}`)) {\n\t\t\tconst glyph = Array.from(slot.children).find((child) => child.localName === 'svg')\n\t\t\tif (!glyph) continue\n\t\t\tconst tile = slot.matches(ICON_TILE_SELECTOR)\n\t\t\tconst size = Number(glyph.getAttribute('width')) || 32\n\t\t\tconst img = doc.createElement('img')\n\t\t\timg.alt = ''\n\t\t\timg.style.cssText = tile\n\t\t\t\t? 'width:100%;height:100%;object-fit:contain'\n\t\t\t\t: `width:${size}px;height:${size}px;object-fit:contain`\n\t\t\timg.addEventListener('error', () => {\n\t\t\t\timg.replaceWith(glyph)\n\t\t\t\tif (tile) slot.style.removeProperty('background')\n\t\t\t})\n\t\t\timg.src = url\n\t\t\tif (tile) slot.style.background = 'none'\n\t\t\tglyph.replaceWith(img)\n\t\t}\n\t}\n\n\t/**\n\t * Inserts the unticked waiver checkbox right before the first upgrade\n\t * button and keeps every upgrade button disabled until it is ticked.\n\t */\n\tprivate mountWaiver(root: ParentNode, doc: Document, text: string, input: HTMLInputElement): void {\n\t\tconst buttons = Array.from(root.querySelectorAll<HTMLElement>(UPGRADE_SELECTOR))\n\t\tconst first = buttons[0]\n\t\tif (!first) return\n\t\tconst label = doc.createElement('label')\n\t\tlabel.className = WITHDRAWAL_WAIVER_CLASS\n\t\tlabel.style.cssText =\n\t\t\t'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'\n\t\tinput.type = 'checkbox'\n\t\tinput.checked = false\n\t\tinput.style.cssText = 'flex:none;width:16px;height:16px;margin:2px 0 0;cursor:pointer'\n\t\tconst span = doc.createElement('span')\n\t\tspan.textContent = text\n\t\tlabel.append(input, span)\n\t\tfirst.before(label)\n\t\tconst sync = () => {\n\t\t\tfor (const button of buttons) {\n\t\t\t\tif (input.checked) {\n\t\t\t\t\tbutton.removeAttribute('disabled')\n\t\t\t\t\tbutton.removeAttribute('aria-disabled')\n\t\t\t\t} else {\n\t\t\t\t\tbutton.setAttribute('disabled', '')\n\t\t\t\t\tbutton.setAttribute('aria-disabled', 'true')\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tinput.addEventListener('change', sync)\n\t\tsync()\n\t}\n\n\tprivate bind(\n\t\troot: ParentNode,\n\t\tview: PaywallView,\n\t\tdoc: Document,\n\t\tconsent: () => UpgradeConsent | null | undefined,\n\t): void {\n\t\tfor (const element of root.querySelectorAll<HTMLElement>('[data-ep-action]')) {\n\t\t\tconst action = element.getAttribute('data-ep-action') ?? ''\n\t\t\tif (UPGRADE_ACTIONS.has(action)) {\n\t\t\t\tif (view.offer && view.checkoutEnabled) {\n\t\t\t\t\tconst sku = view.offer.sku\n\t\t\t\t\telement.addEventListener('click', (event) => {\n\t\t\t\t\t\tevent.preventDefault()\n\t\t\t\t\t\tconst given = consent()\n\t\t\t\t\t\t// Waiver shown but not ticked: a disabled button cannot be\n\t\t\t\t\t\t// clicked, but never start checkout without consent anyway.\n\t\t\t\t\t\tif (given === null) return\n\t\t\t\t\t\tif (given) this.callbacks.onUpgrade(sku, given)\n\t\t\t\t\t\telse this.callbacks.onUpgrade(sku)\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\telement.setAttribute('disabled', '')\n\t\t\t\t\telement.setAttribute('aria-disabled', 'true')\n\t\t\t\t}\n\t\t\t} else if (CLOSE_ACTIONS.has(action)) {\n\t\t\t\telement.addEventListener('click', (event) => {\n\t\t\t\t\tevent.preventDefault()\n\t\t\t\t\tthis.close()\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\telement.remove()\n\t\t\t}\n\t\t}\n\t\tconst backdropSelector = BACKDROP_SELECTOR[view.mode]\n\t\tif (backdropSelector) {\n\t\t\troot.querySelector(backdropSelector)?.addEventListener('click', (event) => {\n\t\t\t\tif (event.target === event.currentTarget) this.close()\n\t\t\t})\n\t\t}\n\t\tif (view.mode !== 'inline') {\n\t\t\tthis.keyHandler = (event) => {\n\t\t\t\tif (event.key === 'Escape') this.close()\n\t\t\t}\n\t\t\tdoc.addEventListener('keydown', this.keyHandler)\n\t\t}\n\t}\n\n\tprivate reveal(root: ParentNode, mode: PaywallMode): void {\n\t\tconst rootElement = root.querySelector<HTMLElement>(ROOT_SELECTOR[mode])\n\t\tif (rootElement && (mode === 'modal' || mode === 'fullscreen')) rootElement.style.display = 'flex'\n\t\tfor (const [selector, className] of VISIBLE_CLASSES[mode] ?? []) {\n\t\t\troot.querySelector(selector)?.classList.add(className)\n\t\t}\n\t\tfor (const item of root.querySelectorAll(FEATURE_ITEM_VISIBLE[0]))\n\t\t\titem.classList.add(FEATURE_ITEM_VISIBLE[1])\n\t}\n\n\tprivate close(): void {\n\t\tthis.hide()\n\t\tthis.callbacks.onClose()\n\t}\n}\n"],"names":["html","css","modal.html","modal.css","inline.html","inline.css","sidebar.html","sidebar.css","fullscreen.html","fullscreen.css","minimal.html","minimal.css"],"mappings":";;;;;;AAAA;;;;AAIG;AAEH;AACA,MAAM,cAAc,GAAG,6BAA6B;AAEpD;;;AAGG;AACG,SAAU,UAAU,CAAC,GAAY,EAAA;IACtC,IAAI,OAAO,GAAG,KAAK,QAAQ;AAAE,QAAA,OAAO,IAAI;IACxC,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;IACtE,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE;IACpC,IAAI,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;AAAE,QAAA,OAAO,IAAI;IAClD,MAAM,MAAM,GAAG;SACb,KAAK,CAAC,CAAC;AACP,SAAA,IAAI,CAAC,CAAC,CAAC,KAAK,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;UAClC,WAAW,EAAE;;IAEhB,MAAM,MAAM,GACX,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACnD,SAAC,IAAI,KAAK,IAAI,IAAI,MAAM,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AACxD,IAAA,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,IAAI,CAAA,CAAA,EAAI,MAAM,CAAC,WAAW,EAAE,CAAA,CAAE,GAAG,IAAI;AAC7D,IAAA,OAAO,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,IAAI;AAC7C;;AC5BA;;;;;;;;;;;;AAYG;AAMI,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,IAAI,E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