@solvimon/solvimon-web 0.1.0-alpha.24 → 0.1.0-alpha.26

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 (286) hide show
  1. package/README.md +14 -11
  2. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DW10rozs.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DcrLNA_x.mjs} +6 -6
  3. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jWthTJk-.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js} +1 -1
  4. package/dist/{Avatar.vue.es-nr8srGuK.js → Avatar.vue.es-Bm6MCMAL.js} +1 -1
  5. package/dist/{Avatar.vue.es-DzjFvLuK.mjs → Avatar.vue.es-BqQHvLGA.mjs} +1 -1
  6. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-C1prOJay.js → BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js} +1 -1
  7. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BptcwJMr.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs} +8 -8
  8. package/dist/{Button.vue.es-PbJFK8z7.mjs → Button.vue.es-C32_baQN.mjs} +1 -1
  9. package/dist/{Button.vue.es-TCF-bvDF.js → Button.vue.es-qGvnOKnK.js} +1 -1
  10. package/dist/ChargeOnDemandModal-CIiI74ls.mjs +983 -0
  11. package/dist/ChargeOnDemandModal-DIQaGnRs.js +1 -0
  12. package/dist/Checkout.entry.ce-8EcavNgT.js +2 -0
  13. package/dist/{Checkout.entry.ce-DHFx5Vnb.mjs → Checkout.entry.ce-BA5ljKj8.mjs} +1562 -1538
  14. package/dist/{Chip.vue.es-DpcOM3Ai.mjs → Chip.vue.es-CKCOY5T6.mjs} +2 -2
  15. package/dist/{Chip.vue.es-CAoisngJ.js → Chip.vue.es-D60gTbfe.js} +1 -1
  16. package/dist/{ContextMenu.vue.es-kzZ3JJHG.js → ContextMenu.vue.es-C7KI8Gz6.js} +1 -1
  17. package/dist/{ContextMenu.vue.es-tAuFp-6i.mjs → ContextMenu.vue.es-Da-lAmTl.mjs} +10 -10
  18. package/dist/{CustomerBillingInformation.vue.es-BQSl9q6W.mjs → CustomerBillingInformation.vue.es-BxBQt4Q0.mjs} +2 -2
  19. package/dist/{CustomerBillingInformation.vue.es-Nac6HgLo.js → CustomerBillingInformation.vue.es-bFUx81Ig.js} +1 -1
  20. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-R47ln7Wb.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs} +6 -6
  21. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BOLf-U0A.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js} +1 -1
  22. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CaNXS48v.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DkbQ2MiR.mjs} +908 -891
  23. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-hBo2Y2mJ.js +1 -0
  24. package/dist/{DividerText.vue.es-LJ2kZakb.js → DividerText.vue.es-BF3gnr4e.js} +1 -1
  25. package/dist/{DividerText.vue.es-CSE7a-T0.mjs → DividerText.vue.es-DKl3FnDJ.mjs} +1 -1
  26. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DeotDsFP.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs} +4 -4
  27. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-GNPyrcAQ.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js} +1 -1
  28. package/dist/{ErrorNotification.vue.es-BF6swP7o.js → ErrorNotification.vue.es-BX9dHEc-.js} +1 -1
  29. package/dist/{ErrorNotification.vue.es-CVUuIt8Z.mjs → ErrorNotification.vue.es-rRKgmkzV.mjs} +1 -1
  30. package/dist/{IconButton.vue.es-CB1lIPao.js → IconButton.vue.es-Bwdfu-jm.js} +1 -1
  31. package/dist/{IconButton.vue.es-DGflbWFk.mjs → IconButton.vue.es-UlqwNPAX.mjs} +2 -2
  32. package/dist/{IconTitle.vue.es-BsdjyGlQ.mjs → IconTitle.vue.es-CK9k69tV.mjs} +3 -3
  33. package/dist/{IconTitle.vue.es-CMO8EyQl.js → IconTitle.vue.es-Cei98MBw.js} +1 -1
  34. package/dist/{Input.vue.es-CREdT4nB.js → Input.vue.es-B47l_feL.js} +1 -1
  35. package/dist/{Input.vue.es-BFbiFXsU.mjs → Input.vue.es-D9IjIWc-.mjs} +2 -2
  36. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BZ4D_-7E.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DKlPrxQS.js} +1 -1
  37. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Btv0rRk4.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DUfJl07Y.mjs} +2 -2
  38. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-CrZq0d1M.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-D9Rtgapa.mjs} +2 -2
  39. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-j-cNIRD_.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DlJ6lELc.js} +1 -1
  40. package/dist/InvoiceSummary.vue.es-DBnR9Hs7.js +1 -0
  41. package/dist/{InvoiceSummary.vue.es-JtOIQ6SJ.mjs → InvoiceSummary.vue.es-DQ4KvTaw.mjs} +576 -565
  42. package/dist/{Modal.vue.es-BbdtdxsO.js → Modal.vue.es-8LN4gBh0.js} +1 -1
  43. package/dist/{Modal.vue.es-jT61xK_A.mjs → Modal.vue.es-B9xMiyn3.mjs} +5 -5
  44. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BBoZVnsK.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-B1yGKkWN.js} +1 -1
  45. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dan29qmH.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs} +4 -4
  46. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D34fD3Io.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js} +1 -1
  47. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BJZHkTqA.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs} +3 -3
  48. package/dist/{PaymentHistoryBlock-quvnCSFV.mjs → PaymentHistoryBlock-DYa99P1M.mjs} +1 -1
  49. package/dist/{PaymentHistoryBlock-Dw2wOiAI.js → PaymentHistoryBlock-Ds93gNvh.js} +1 -1
  50. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C0XIdBbx.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CBZhXQfC.js} +1 -1
  51. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-5ckQd9eQ.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D0KnSy0y.mjs} +4 -4
  52. package/dist/{PaymentIntegrationForm-D1oJREmH.js → PaymentIntegrationForm-B_Db4DG1.js} +1 -1
  53. package/dist/{PaymentIntegrationForm-CQjUZi22.mjs → PaymentIntegrationForm-UWoyZgsR.mjs} +1 -1
  54. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js +1 -0
  55. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs +154 -0
  56. package/dist/{PaymentIntegrationFormAdyen-CyZk9ofV.mjs → PaymentIntegrationFormAdyen-D4qfNtZ_.mjs} +217 -197
  57. package/dist/PaymentIntegrationFormAdyen-HeA9XIj-.js +98 -0
  58. package/dist/{PaymentIntegrationFormStripe-D-GaLHwc.mjs → PaymentIntegrationFormStripe-BIiMCWlV.mjs} +247 -220
  59. package/dist/PaymentIntegrationFormStripe-DUCJTIAq.js +102 -0
  60. package/dist/PaymentMethod.vue.es-CJcSZ9lN.js +1 -0
  61. package/dist/{PaymentMethod.vue.es-C0j580g7.mjs → PaymentMethod.vue.es-CKu5nApX.mjs} +168 -148
  62. package/dist/{PaymentMethodForm-CDV5LR8i.js → PaymentMethodForm-1d0YIGOu.js} +1 -1
  63. package/dist/{PaymentMethodForm-Bf2Ps6eV.mjs → PaymentMethodForm-B05sHWcW.mjs} +1 -1
  64. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BDm8l_6N.js +1 -0
  65. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-BqPu7CYA.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs} +45 -41
  66. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BIX0k7-q.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js} +1 -1
  67. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-9MUPbgWM.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DGpXRtp4.mjs} +6 -6
  68. package/dist/PlanCustomizationEditor-CEMP_Dhz.js +1 -0
  69. package/dist/PlanCustomizationEditor-CpZeilm5.mjs +694 -0
  70. package/dist/{PricingGroupRangeInput.vue.es-CP7-dmxS.mjs → PricingGroupRangeInput.vue.es-CJpvUP3-.mjs} +4 -4
  71. package/dist/{PricingGroupRangeInput.vue.es-BchXhunH.js → PricingGroupRangeInput.vue.es-DZSJ5Mz0.js} +1 -1
  72. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DJ81eUJX.mjs +141 -0
  73. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-jrkraJMu.js +1 -0
  74. package/dist/{RadioGroupExtended.vue.es-_QMReyZ8.mjs → RadioGroupExtended.vue.es-BalV7gwp.mjs} +2 -2
  75. package/dist/{RadioGroupExtended.vue.es-Cf5R1P9a.js → RadioGroupExtended.vue.es-Dt6LH9Yh.js} +1 -1
  76. package/dist/{Section.vue.es-KRsHeFoT.mjs → Section.vue.es-D7eiXUbk.mjs} +1 -1
  77. package/dist/{Section.vue.es-CBZx5x53.js → Section.vue.es-zVXBHAL6.js} +1 -1
  78. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-UdGQMJGY.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js} +1 -1
  79. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVELHoUj.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.mjs} +6 -6
  80. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js +1 -0
  81. package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs → Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs} +5 -5
  82. package/dist/StepInput.vue.es-C3Zm6Wc9.mjs +199 -0
  83. package/dist/StepInput.vue.es-mAnuCuDQ.js +1 -0
  84. package/dist/SubscriptionDetails.entry.ce-D4CsSoR9.js +1 -0
  85. package/dist/SubscriptionDetails.entry.ce-WEimiOex.mjs +1057 -0
  86. package/dist/{SubscriptionSchedules-1ikoGncQ.js → SubscriptionSchedules-Cm5Dt-1H.js} +1 -1
  87. package/dist/{SubscriptionSchedules-B6b6xf-E.mjs → SubscriptionSchedules-DrrEAPlx.mjs} +1 -1
  88. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dv2bP9vv.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DHp_KtbF.mjs} +2284 -2341
  89. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-t2Awijf5.js +1 -0
  90. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DvYZvTV9.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs} +3 -3
  91. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DZKl0Zxp.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-B41qZmcL.js} +1 -1
  92. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DTjZcOhj.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js} +1 -1
  93. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DmeIKMYI.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DFU0IULg.mjs} +8 -8
  94. package/dist/{TooltipParagraph.vue.es-nGFfHF1A.mjs → TooltipParagraph.vue.es-BXbOJmjr.mjs} +3 -3
  95. package/dist/TooltipParagraph.vue.es-Cph6zT31.js +1 -0
  96. package/dist/{TrialChip.vue.es-DhC5Bpmy.js → TrialChip.vue.es-C_wgHGuN.js} +1 -1
  97. package/dist/{TrialChip.vue.es-eKgO6an3.mjs → TrialChip.vue.es-C_yRujip.mjs} +2 -2
  98. package/dist/{cn.es-BD7Afj5Q.mjs → cn.es-CGa6b2Lt.mjs} +2 -2
  99. package/dist/{cn.es-BLE3T5Rx.js → cn.es-D9YMDvG2.js} +1 -1
  100. package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
  101. package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
  102. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
  103. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +246 -230
  104. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
  105. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
  106. package/dist/components/Invoice/Invoice.cjs +1 -1
  107. package/dist/components/Invoice/Invoice.mjs +201 -212
  108. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
  109. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +4 -4
  110. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
  111. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
  112. package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
  113. package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
  114. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
  115. package/dist/components/PaymentHistory/PaymentHistory.mjs +4 -4
  116. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
  117. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
  118. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
  119. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
  120. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
  121. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
  122. package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
  123. package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
  124. package/dist/{customElements-CSzbVZIH.js → customElements-C963-LtW.js} +36 -32
  125. package/dist/{customElements-DT1YyL4O.mjs → customElements-D5DAoHRI.mjs} +231 -196
  126. package/dist/{customer-Cq4fF__H.mjs → customer-DKa1B2vp.mjs} +4 -4
  127. package/dist/{customer-CJonIvSm.js → customer-TE1FnGT0.js} +1 -1
  128. package/dist/{de-DE-BSlbAnPE.js → de-DE-B4TUdnUf.js} +1 -1
  129. package/dist/{de-DE-CyvjSD9b.mjs → de-DE-CLfzTbbX.mjs} +39 -6
  130. package/dist/de-DE-DaBBl-Ak.js +1 -0
  131. package/dist/{de-DE-DXsG-vXA.mjs → de-DE-jkW2dJrX.mjs} +28 -14
  132. package/dist/en-US-BNevqm0M.js +1 -0
  133. package/dist/{en-US-xQrWj8qI.mjs → en-US-D6SGRAch.mjs} +39 -6
  134. package/dist/en-US-J85TQRI8.js +1 -0
  135. package/dist/{en-US-C939IZ5i.mjs → en-US-SDhjlY_v.mjs} +20 -5
  136. package/dist/formControl-ODrpUvcA.js +1 -0
  137. package/dist/{index-BPU8tIml.mjs → formControl-dX7l8o3c.mjs} +160 -143
  138. package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +4 -0
  139. package/dist/icon-sprite.svg.es-Ds6lDf5p.js +1 -0
  140. package/dist/index.cjs +1 -1
  141. package/dist/index.mjs +4 -4
  142. package/dist/{invoices-EamWI_jz.js → invoices-ClqTWYF9.js} +1 -1
  143. package/dist/{invoices-CVZOfEOY.mjs → invoices-DJTwftJv.mjs} +1 -1
  144. package/dist/it-IT-BkPbTueL.js +1 -0
  145. package/dist/{it-IT-DT3rfjOY.js → it-IT-CSYvGmpT.js} +1 -1
  146. package/dist/{it-IT-BxpwB3oJ.mjs → it-IT-CaaFToGB.mjs} +20 -6
  147. package/dist/{it-IT-C09oObBM.mjs → it-IT-Cym1UvvK.mjs} +39 -6
  148. package/dist/{nl-NL-DfkhOJKc.js → nl-NL-CpE4IgwO.js} +1 -1
  149. package/dist/{nl-NL-na2I4aiP.mjs → nl-NL-D0MQKaql.mjs} +34 -20
  150. package/dist/{nl-NL-BhNND_yi.mjs → nl-NL-D0c4x5C0.mjs} +39 -6
  151. package/dist/nl-NL-jIfAVGv0.js +1 -0
  152. package/dist/paymentMethods-AL2U_byg.js +1 -0
  153. package/dist/{paymentMethods-By1SebnO.mjs → paymentMethods-CWzJhcWK.mjs} +16 -14
  154. package/dist/{payments-Dnjg9Se4.js → payments-BmiHMlQt.js} +1 -1
  155. package/dist/{payments-BYZLQTJ-.mjs → payments-aXyfylwk.mjs} +6 -6
  156. package/dist/pricing.es-C07bgEZx.js +1 -0
  157. package/dist/pricing.es-QYWrKMUJ.mjs +30 -0
  158. package/dist/pricingPlanSchedules-BD4GIP_F.mjs +32 -0
  159. package/dist/pricingPlanSchedules-BfsMSvN0.js +1 -0
  160. package/dist/screens/Checkout/Checkout.cjs +1 -1
  161. package/dist/screens/Checkout/Checkout.mjs +2 -2
  162. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
  163. package/dist/screens/CustomerOverview/CustomerOverview.mjs +10 -10
  164. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
  165. package/dist/screens/PayInvoice/PayInvoice.mjs +57 -55
  166. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
  167. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
  168. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
  169. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +3 -769
  170. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
  171. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +243 -270
  172. package/dist/{subscription-CrVOr5MF.mjs → subscription-D1yHKUNc.mjs} +2 -2
  173. package/dist/{subscriptions-BKER9RUc.js → subscriptions-Cm83ckfl.js} +1 -1
  174. package/dist/{subscriptions-Gj3KgCZz.mjs → subscriptions-cnR5fnf7.mjs} +1 -1
  175. package/dist/types/components/{wallets/WalletModalShell.types.d.ts → payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts} +3 -3
  176. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +5 -0
  177. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +5 -9
  178. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +7 -11
  179. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -11
  180. package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +7 -11
  181. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +7 -11
  182. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +7 -11
  183. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +7 -11
  184. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +7 -11
  185. package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +7 -11
  186. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  187. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +7 -11
  188. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +7 -11
  189. package/dist/types/components/providers/Provider/Provider.vue.d.ts +7 -11
  190. package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +7 -11
  191. package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +7 -11
  192. package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +7 -11
  193. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +21 -0
  194. package/dist/types/components/subscriptions/OnDemandItemsCard/OnDemandItemsCard.types.d.ts +7 -0
  195. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +27 -0
  196. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +1 -1
  197. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +6 -5
  198. package/dist/types/services/paymentMethods.types.d.ts +4 -2
  199. package/dist/types/services/requests.types.d.ts +5 -0
  200. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +5 -0
  201. package/dist/types/vendor/@solvimon/solvimon-types/types/AgentContext.d.ts +3 -0
  202. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +6 -1
  203. package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +23 -0
  204. package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +16 -4
  205. package/dist/types/vendor/@solvimon/solvimon-types/types/Embeddable.d.ts +8 -0
  206. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +21 -6
  207. package/dist/types/vendor/@solvimon/solvimon-types/types/OAuth.d.ts +28 -0
  208. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +2 -1
  209. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
  210. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +6 -1
  211. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +5 -0
  212. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +5 -0
  213. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanGroups.d.ts +31 -0
  214. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +9 -1
  215. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +1 -1
  216. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +3 -3
  217. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +3 -0
  218. package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +2 -0
  219. package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +2 -0
  220. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +2 -0
  221. package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +1 -1
  222. package/dist/types/vendor/@solvimon/solvimon-types/types/SeatAssignment.d.ts +22 -0
  223. package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +6 -0
  224. package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +128 -1
  225. package/dist/{useActionDispatchProvider-DDHrhy3i.js → useActionDispatchProvider-CHkVQMaE.js} +1 -1
  226. package/dist/{useActionDispatchProvider-MjTckd4f.mjs → useActionDispatchProvider-DDYqIh3r.mjs} +1 -1
  227. package/dist/{useCustomer-BW0DBEJh.js → useCustomer-DGYtowRy.js} +1 -1
  228. package/dist/{useCustomer-CxnF7r8Z.mjs → useCustomer-XZKWsolE.mjs} +1 -1
  229. package/dist/{useCustomerFormLabels-zPc8QrwJ.mjs → useCustomerFormLabels-CcnkJLcB.mjs} +6 -6
  230. package/dist/useCustomerFormLabels-DAZziqYt.js +1 -0
  231. package/dist/{useExperimentalFeature-9teNYGuP.js → useExperimentalFeature-COOU6IZd.js} +1 -1
  232. package/dist/{useExperimentalFeature-NsSDg-e3.mjs → useExperimentalFeature-ierhOt9Q.mjs} +1 -1
  233. package/dist/{useInvoiceData-GQwk6fl4.mjs → useInvoiceData-BEK-7msA.mjs} +3 -3
  234. package/dist/{useInvoiceData-DvV2AsgC.js → useInvoiceData-CQRn8l9C.js} +1 -1
  235. package/dist/{useInvoicesList-Xnth6s6U.js → useInvoicesList-BQkKyyXa.js} +1 -1
  236. package/dist/{useInvoicesList-CGmFSQSg.mjs → useInvoicesList-C4I118KM.mjs} +7 -7
  237. package/dist/{useLoadInitialData-BvvaWeAe.mjs → useLoadInitialData-CR0kbYw8.mjs} +1 -1
  238. package/dist/{useLoadInitialData-Cjkc70u-.js → useLoadInitialData-CrKnBZs_.js} +1 -1
  239. package/dist/{usePaymentMethodAvailability-DKyscbom.js → usePaymentMethodAvailability-Ci6LeYKt.js} +1 -1
  240. package/dist/{usePaymentMethodAvailability-BWaaj3N3.mjs → usePaymentMethodAvailability-ZH-m3B-A.mjs} +12 -12
  241. package/dist/{usePaymentMethodOptions-l-wVAmIW.mjs → usePaymentMethodOptions-Ciifjo6c.mjs} +15 -13
  242. package/dist/usePaymentMethodOptions-Cqe92ZBn.js +1 -0
  243. package/dist/{usePaymentMethods-DvQVnsSV.mjs → usePaymentMethods-B-OKRyKd.mjs} +1 -1
  244. package/dist/{usePaymentMethods-BDFVB-kK.js → usePaymentMethods-BKwrl82-.js} +1 -1
  245. package/dist/usePayments-Bauj16B-.js +1 -0
  246. package/dist/{usePayments-D_dyuf6S.mjs → usePayments-CV85OV8V.mjs} +46 -41
  247. package/dist/{usePortal-BU4ibdWq.js → usePortal-DSLImEfr.js} +1 -1
  248. package/dist/{usePortal-Br5lYuPT.mjs → usePortal-H8Tv2TnZ.mjs} +1 -1
  249. package/dist/{useSubscription-DRBUt9H5.js → useSubscription-BiYNJT2e.js} +1 -1
  250. package/dist/{useSubscription-CqRae2I9.mjs → useSubscription-DqnxWNKg.mjs} +1 -1
  251. package/dist/{useTimePeriod.es-BxIGnCAP.mjs → useTimePeriod.es-B22-fno3.mjs} +1 -1
  252. package/dist/{useTimePeriod.es-DDos3-EH.js → useTimePeriod.es-D2aiyfd-.js} +1 -1
  253. package/dist/useWatchDebounced-B8iX7ykx.js +1 -0
  254. package/dist/useWatchDebounced-BHlBPcXB.mjs +20 -0
  255. package/package.json +11 -8
  256. package/dist/Checkout.entry.ce-D8O4qJ24.js +0 -2
  257. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D_jcV7VG.js +0 -1
  258. package/dist/InvoiceSummary.vue.es-BOnvORpf.js +0 -1
  259. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-De7h9-fH.js +0 -1
  260. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DnBLj1wZ.mjs +0 -141
  261. package/dist/PaymentIntegrationFormAdyen-BQXXwpUK.js +0 -98
  262. package/dist/PaymentIntegrationFormStripe-Bs4F7oK_.js +0 -102
  263. package/dist/PaymentMethod.vue.es-CXV_ThBY.js +0 -1
  264. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BwsRDlQJ.js +0 -1
  265. package/dist/PlanCustomizationEditor-0kEXoOcM.js +0 -1
  266. package/dist/PlanCustomizationEditor-Dv69xPbX.mjs +0 -877
  267. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DmVJ2JQE.mjs +0 -131
  268. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-YsI__d0V.js +0 -1
  269. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js +0 -1
  270. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cd56tuZb.js +0 -1
  271. package/dist/TooltipParagraph.vue.es-7IQdU3Tf.js +0 -1
  272. package/dist/de-DE-DXsDvO5y.js +0 -1
  273. package/dist/en-US-9xdcz3T5.js +0 -1
  274. package/dist/en-US-DHdI11k9.js +0 -1
  275. package/dist/icon-sprite.svg.es-Bt21fMEt.mjs +0 -4
  276. package/dist/icon-sprite.svg.es-Dauis9LS.js +0 -1
  277. package/dist/index-DwueOtPi.js +0 -1
  278. package/dist/it-IT-CcRIzP1A.js +0 -1
  279. package/dist/nl-NL-5PrgQl8q.js +0 -1
  280. package/dist/paymentMethods-Bwym8l9a.js +0 -1
  281. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +0 -47
  282. package/dist/useCustomerFormLabels-C773h3J0.js +0 -1
  283. package/dist/usePaymentMethodOptions-DuXKS36F.js +0 -1
  284. package/dist/usePayments-CIJocDhR.js +0 -1
  285. package/dist/useWatchDebounced-CAU1WI1P.js +0 -1
  286. package/dist/useWatchDebounced-DT5IicPp.mjs +0 -14
@@ -1,47 +1,47 @@
1
- import { unref as t, inject as li, ref as Y, computed as M, onMounted as Oe, toRaw as si, watch as Se, defineComponent as ce, openBlock as d, createBlock as S, withCtx as b, createElementVNode as L, createVNode as _, createTextVNode as Q, toDisplayString as $, useModel as ci, createElementBlock as z, withModifiers as Ue, Fragment as me, createCommentVNode as j, createSlots as Fe, normalizeClass as he, mergeModels as bt, renderSlot as Je, resolveComponent as ui, renderList as zt, nextTick as Xe, mergeProps as It, withDirectives as di, withKeys as At, vShow as pi, defineAsyncComponent as Pt } from "vue";
2
- import { I as mi, b as Me, u as ve, _ as se, d as gi, e as yi } from "./customElements-DT1YyL4O.mjs";
3
- import { u as jt } from "./useTimePeriod.es-BxIGnCAP.mjs";
4
- import { b as je, f as Ae } from "./formatting.es-RclXHhKo.mjs";
5
- import { _ as Pe, a as Re } from "./Button.vue.es-PbJFK8z7.mjs";
6
- import { _ as vi } from "./ErrorNotification.vue.es-CVUuIt8Z.mjs";
7
- import { c as fi } from "./countryData.es-BegoD-cZ.mjs";
8
- import { c as _i } from "./subscriptions-Gj3KgCZz.mjs";
9
- import { A as Ne } from "./error-BHVZJGwD.mjs";
10
- import { c as hi, _ as Mi } from "./TrialChip.vue.es-eKgO6an3.mjs";
11
- import { a as bi } from "./useService-Bh47bllz.mjs";
12
- import { c as Ii } from "./invoices-CVZOfEOY.mjs";
13
- import { g as Ee, b as Rt, e as Ai } from "./pricingPlanSchedule-BPrS2WRd.mjs";
14
- import { u as Pi, r as Dt, e as Di, a as $e, _ as Ni } from "./index-BPU8tIml.mjs";
15
- import { o as Ei, u as Ci, _ as xi, a as Li } from "./useCustomerFormLabels-zPc8QrwJ.mjs";
16
- import { u as Ti } from "./useWatchDebounced-DT5IicPp.mjs";
17
- import { u as wi } from "./usePaymentMethodOptions-l-wVAmIW.mjs";
18
- import { c as tt, a as Si, d as ki } from "./subscription-CrVOr5MF.mjs";
19
- import { a as Oi, b as $t } from "./pricing-DLOeiAIB.mjs";
20
- import { g as Te, a as zi, s as ji } from "./url-TNRgVI8A.mjs";
21
- import { P as Ri, e as $i, c as Nt, d as Bi } from "./adyen-CvsH5fok.mjs";
22
- import { u as Ui } from "./usePortal-Br5lYuPT.mjs";
23
- import { g as Vi } from "./getCountryNameByCode.es-BDHua7VM.mjs";
24
- import { _ as Et } from "./Expand.vue.es-BleuAfDz.mjs";
25
- import { _ as ye } from "./Input.vue.es-BFbiFXsU.mjs";
26
- import { _ as ge } from "./Section.vue.es-KRsHeFoT.mjs";
27
- import { _ as Fi } from "./Alert.vue.es-lIiAWf2S.mjs";
28
- import { c as Gi } from "./customer-Cq4fF__H.mjs";
29
- import { b as Yi, c as Ki, a as Hi, _ as We } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DeotDsFP.mjs";
30
- import { _ as Qi, T as Zi, a as Xi } from "./TooltipParagraph.vue.es-nGFfHF1A.mjs";
31
- import { _ as Wi } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BJZHkTqA.mjs";
32
- import { _ as Ct } from "./Chip.vue.es-DpcOM3Ai.mjs";
33
- import { _ as qi, a as Ji } from "./SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVELHoUj.mjs";
34
- import { _ as en } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-DvYZvTV9.mjs";
35
- import { u as Bt } from "./useViewport-BgdA2PPt.mjs";
36
- import { _ as _e } from "./Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs";
37
- import { _ as tn } from "./DividerText.vue.es-CSE7a-T0.mjs";
38
- import { l as Ge } from "./adyenSdk-B01MB9Ia.mjs";
39
- import { c as nn } from "./payments-BYZLQTJ-.mjs";
40
- import { c as on } from "./paymentFailure-Bh60UhxA.mjs";
41
- import { C as an } from "./ContentWithAsideLayout-BCM8tmZN.mjs";
42
- import { u as rn } from "./cn.es-BD7Afj5Q.mjs";
43
- import { a as ln } from "./sessionReference-3h-6FdrC.mjs";
44
- const sn = {
1
+ import { unref as t, inject as ci, ref as Y, computed as _, onMounted as je, toRaw as ui, watch as Oe, defineComponent as se, openBlock as p, createBlock as O, withCtx as b, createElementVNode as w, createVNode as M, createTextVNode as K, toDisplayString as V, useModel as di, reactive as pi, createElementBlock as $, withModifiers as Fe, Fragment as me, createCommentVNode as U, createSlots as Ye, normalizeClass as Ie, mergeModels as At, renderSlot as tt, resolveComponent as mi, renderList as Rt, nextTick as qe, mergeProps as Pt, withDirectives as gi, withKeys as Dt, vShow as yi, defineAsyncComponent as Nt } from "vue";
2
+ import { I as vi, b as Ae, a as he, _ as le, d as fi, e as _i } from "./customElements-D5DAoHRI.mjs";
3
+ import { u as $t } from "./useTimePeriod.es-B22-fno3.mjs";
4
+ import { b as $e, f as De } from "./formatting.es-RclXHhKo.mjs";
5
+ import { _ as Ne, a as Be } from "./Button.vue.es-C32_baQN.mjs";
6
+ import { _ as hi } from "./ErrorNotification.vue.es-rRKgmkzV.mjs";
7
+ import { c as Mi } from "./countryData.es-BegoD-cZ.mjs";
8
+ import { c as bi } from "./subscriptions-cnR5fnf7.mjs";
9
+ import { A as Ce } from "./error-BHVZJGwD.mjs";
10
+ import { c as Ii, _ as Ai } from "./TrialChip.vue.es-C_yRujip.mjs";
11
+ import { a as Pi } from "./useService-Bh47bllz.mjs";
12
+ import { c as Di } from "./invoices-DJTwftJv.mjs";
13
+ import { g as xe, b as Bt, e as Ni } from "./pricingPlanSchedule-BPrS2WRd.mjs";
14
+ import { u as Ei, r as Et, e as Ci, d as Ue, f as Me, b as ge, _ as xi, a as Li } from "./formControl-dX7l8o3c.mjs";
15
+ import { o as Ti, u as wi, _ as Si, a as ki } from "./useCustomerFormLabels-CcnkJLcB.mjs";
16
+ import { u as Oi } from "./useWatchDebounced-BHlBPcXB.mjs";
17
+ import { u as zi } from "./usePaymentMethodOptions-Ciifjo6c.mjs";
18
+ import { b as nt, a as ji, d as Ri } from "./subscription-D1yHKUNc.mjs";
19
+ import { a as $i, b as Ut } from "./pricing-DLOeiAIB.mjs";
20
+ import { g as Se, a as Bi, s as Ui } from "./url-TNRgVI8A.mjs";
21
+ import { P as Vi, e as Fi, c as Ct, d as Gi } from "./adyen-CvsH5fok.mjs";
22
+ import { u as Yi } from "./usePortal-H8Tv2TnZ.mjs";
23
+ import { g as Ki } from "./getCountryNameByCode.es-BDHua7VM.mjs";
24
+ import { _ as xt } from "./Expand.vue.es-BleuAfDz.mjs";
25
+ import { _ as _e } from "./Input.vue.es-D9IjIWc-.mjs";
26
+ import { _ as ye } from "./Section.vue.es-D7eiXUbk.mjs";
27
+ import { _ as Hi } from "./Alert.vue.es-lIiAWf2S.mjs";
28
+ import { c as Qi } from "./customer-DKa1B2vp.mjs";
29
+ import { b as Zi, c as Xi, a as Wi, _ as Je } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs";
30
+ import { _ as qi, T as Ji, a as en } from "./TooltipParagraph.vue.es-BXbOJmjr.mjs";
31
+ import { _ as tn } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs";
32
+ import { _ as Lt } from "./Chip.vue.es-CKCOY5T6.mjs";
33
+ import { _ as nn, a as on } from "./SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.mjs";
34
+ import { _ as an } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs";
35
+ import { u as Vt } from "./useViewport-BgdA2PPt.mjs";
36
+ import { _ as be } from "./Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs";
37
+ import { _ as rn } from "./DividerText.vue.es-DKl3FnDJ.mjs";
38
+ import { l as Ke } from "./adyenSdk-B01MB9Ia.mjs";
39
+ import { c as ln } from "./payments-aXyfylwk.mjs";
40
+ import { c as sn } from "./paymentFailure-Bh60UhxA.mjs";
41
+ import { C as cn } from "./ContentWithAsideLayout-BCM8tmZN.mjs";
42
+ import { u as un } from "./cn.es-CGa6b2Lt.mjs";
43
+ import { a as dn } from "./sessionReference-3h-6FdrC.mjs";
44
+ const pn = {
45
45
  AT: "Austria",
46
46
  BE: "Belgium",
47
47
  BG: "Bulgaria",
@@ -70,31 +70,31 @@ const sn = {
70
70
  SI: "Slovenia",
71
71
  SK: "Slovakia"
72
72
  };
73
- function Ut(e) {
74
- return Object.keys(sn).includes(e);
73
+ function Ft(e) {
74
+ return Object.keys(pn).includes(e);
75
75
  }
76
- function xt(e, i) {
76
+ function Tt(e, i) {
77
77
  var n = Object.keys(e);
78
78
  if (Object.getOwnPropertySymbols) {
79
- var o = Object.getOwnPropertySymbols(e);
80
- i && (o = o.filter(function(a) {
81
- return Object.getOwnPropertyDescriptor(e, a).enumerable;
82
- })), n.push.apply(n, o);
79
+ var a = Object.getOwnPropertySymbols(e);
80
+ i && (a = a.filter(function(o) {
81
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
82
+ })), n.push.apply(n, a);
83
83
  }
84
84
  return n;
85
85
  }
86
- function ke(e) {
86
+ function ze(e) {
87
87
  for (var i = 1; i < arguments.length; i++) {
88
88
  var n = arguments[i] != null ? arguments[i] : {};
89
- i % 2 ? xt(Object(n), !0).forEach(function(o) {
90
- cn(e, o, n[o]);
91
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xt(Object(n)).forEach(function(o) {
92
- Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
89
+ i % 2 ? Tt(Object(n), !0).forEach(function(a) {
90
+ mn(e, a, n[a]);
91
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Tt(Object(n)).forEach(function(a) {
92
+ Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
93
93
  });
94
94
  }
95
95
  return e;
96
96
  }
97
- function cn(e, i, n) {
97
+ function mn(e, i, n) {
98
98
  return i in e ? Object.defineProperty(e, i, {
99
99
  value: n,
100
100
  enumerable: !0,
@@ -102,85 +102,85 @@ function cn(e, i, n) {
102
102
  writable: !0
103
103
  }) : e[i] = n, e;
104
104
  }
105
- function Ve(e) {
105
+ function Ge(e) {
106
106
  return typeof e == "function";
107
107
  }
108
- function et(e) {
108
+ function it(e) {
109
109
  return e !== null && typeof e == "object" && !Array.isArray(e);
110
110
  }
111
- function Ye(e) {
112
- return Ve(e.$validator) ? ke({}, e) : {
111
+ function He(e) {
112
+ return Ge(e.$validator) ? ze({}, e) : {
113
113
  $validator: e
114
114
  };
115
115
  }
116
- function Vt(e) {
116
+ function Gt(e) {
117
117
  return typeof e == "object" ? e.$valid : e;
118
118
  }
119
- function Ft(e) {
119
+ function Yt(e) {
120
120
  return e.$validator || e;
121
121
  }
122
- function un(e, i) {
123
- if (!et(e)) throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);
124
- if (!et(i) && !Ve(i)) throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
125
- const n = Ye(i);
126
- return n.$params = ke(ke({}, n.$params || {}), e), n;
122
+ function gn(e, i) {
123
+ if (!it(e)) throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);
124
+ if (!it(i) && !Ge(i)) throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
125
+ const n = He(i);
126
+ return n.$params = ze(ze({}, n.$params || {}), e), n;
127
127
  }
128
- function dn(e, i) {
129
- if (!Ve(e) && typeof t(e) != "string") throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);
130
- if (!et(i) && !Ve(i)) throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
131
- const n = Ye(i);
128
+ function yn(e, i) {
129
+ if (!Ge(e) && typeof t(e) != "string") throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);
130
+ if (!it(i) && !Ge(i)) throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
131
+ const n = He(i);
132
132
  return n.$message = e, n;
133
133
  }
134
- function pn(e) {
134
+ function vn(e) {
135
135
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
136
- const n = Ye(e);
137
- return ke(ke({}, n), {}, {
136
+ const n = He(e);
137
+ return ze(ze({}, n), {}, {
138
138
  $async: !0,
139
139
  $watchTargets: i
140
140
  });
141
141
  }
142
- function mn(e) {
142
+ function fn(e) {
143
143
  return {
144
144
  $validator(i) {
145
- for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
146
- o[a - 1] = arguments[a];
147
- return t(i).reduce((l, c, g) => {
148
- const u = Object.entries(c).reduce((I, y) => {
149
- let [h, P] = y;
150
- const m = e[h] || {}, x = Object.entries(m).reduce((k, v) => {
151
- let [N, E] = v;
152
- const F = Ft(E).call(this, P, c, g, ...o), p = Vt(F);
153
- if (k.$data[N] = F, k.$data.$invalid = !p || !!k.$data.$invalid, k.$data.$error = k.$data.$invalid, !p) {
154
- let B = E.$message || "";
155
- const T = E.$params || {};
145
+ for (var n = arguments.length, a = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
146
+ a[o - 1] = arguments[o];
147
+ return t(i).reduce((r, u, s) => {
148
+ const d = Object.entries(u).reduce((I, g) => {
149
+ let [h, C] = g;
150
+ const f = e[h] || {}, L = Object.entries(f).reduce((x, v) => {
151
+ let [H, z] = v;
152
+ const E = Yt(z).call(this, C, u, s, ...a), m = Gt(E);
153
+ if (x.$data[H] = E, x.$data.$invalid = !m || !!x.$data.$invalid, x.$data.$error = x.$data.$invalid, !m) {
154
+ let B = z.$message || "";
155
+ const S = z.$params || {};
156
156
  typeof B == "function" && (B = B({
157
157
  $pending: !1,
158
- $invalid: !p,
159
- $params: T,
160
- $model: P,
161
- $response: F
162
- })), k.$errors.push({
158
+ $invalid: !m,
159
+ $params: S,
160
+ $model: C,
161
+ $response: E
162
+ })), x.$errors.push({
163
163
  $property: h,
164
164
  $message: B,
165
- $params: T,
166
- $response: F,
167
- $model: P,
165
+ $params: S,
166
+ $response: E,
167
+ $model: C,
168
168
  $pending: !1,
169
- $validator: N
169
+ $validator: H
170
170
  });
171
171
  }
172
172
  return {
173
- $valid: k.$valid && p,
174
- $data: k.$data,
175
- $errors: k.$errors
173
+ $valid: x.$valid && m,
174
+ $data: x.$data,
175
+ $errors: x.$errors
176
176
  };
177
177
  }, {
178
178
  $valid: !0,
179
179
  $data: {},
180
180
  $errors: []
181
181
  });
182
- return I.$data[h] = x.$data, I.$errors[h] = x.$errors, {
183
- $valid: I.$valid && x.$valid,
182
+ return I.$data[h] = L.$data, I.$errors[h] = L.$errors, {
183
+ $valid: I.$valid && L.$valid,
184
184
  $data: I.$data,
185
185
  $errors: I.$errors
186
186
  };
@@ -190,9 +190,9 @@ function mn(e) {
190
190
  $errors: {}
191
191
  });
192
192
  return {
193
- $valid: l.$valid && u.$valid,
194
- $data: l.$data.concat(u.$data),
195
- $errors: l.$errors.concat(u.$errors)
193
+ $valid: r.$valid && d.$valid,
194
+ $data: r.$data.concat(d.$data),
195
+ $errors: r.$errors.concat(d.$errors)
196
196
  };
197
197
  }, {
198
198
  $valid: !0,
@@ -204,11 +204,11 @@ function mn(e) {
204
204
  let {
205
205
  $response: n
206
206
  } = i;
207
- return n ? n.$errors.map((o) => Object.values(o).map((a) => a.map((l) => l.$message)).reduce((a, l) => a.concat(l), [])) : [];
207
+ return n ? n.$errors.map((a) => Object.values(a).map((o) => o.map((r) => r.$message)).reduce((o, r) => o.concat(r), [])) : [];
208
208
  }
209
209
  };
210
210
  }
211
- const Gt = (e) => {
211
+ const Kt = (e) => {
212
212
  if (e = t(e), Array.isArray(e)) return !!e.length;
213
213
  if (e == null)
214
214
  return !1;
@@ -221,39 +221,39 @@ const Gt = (e) => {
221
221
  return !1;
222
222
  }
223
223
  return !!String(e).length;
224
- }, gn = (e) => (e = t(e), Array.isArray(e) ? e.length : typeof e == "object" ? Object.keys(e).length : String(e).length);
225
- function be() {
224
+ }, _n = (e) => (e = t(e), Array.isArray(e) ? e.length : typeof e == "object" ? Object.keys(e).length : String(e).length);
225
+ function Pe() {
226
226
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
227
227
  i[n] = arguments[n];
228
- return (o) => (o = t(o), !Gt(o) || i.every((a) => (a.lastIndex = 0, a.test(o))));
228
+ return (a) => (a = t(a), !Kt(a) || i.every((o) => (o.lastIndex = 0, o.test(a))));
229
229
  }
230
- var yn = /* @__PURE__ */ Object.freeze({
230
+ var hn = /* @__PURE__ */ Object.freeze({
231
231
  __proto__: null,
232
- forEach: mn,
233
- len: gn,
234
- normalizeValidatorObject: Ye,
235
- regex: be,
236
- req: Gt,
232
+ forEach: fn,
233
+ len: _n,
234
+ normalizeValidatorObject: He,
235
+ regex: Pe,
236
+ req: Kt,
237
237
  unwrap: t,
238
- unwrapNormalizedValidator: Ft,
239
- unwrapValidatorResponse: Vt,
240
- withAsync: pn,
241
- withMessage: dn,
242
- withParams: un
238
+ unwrapNormalizedValidator: Yt,
239
+ unwrapValidatorResponse: Gt,
240
+ withAsync: vn,
241
+ withMessage: yn,
242
+ withParams: gn
243
243
  });
244
- be(/^[a-zA-Z]*$/);
245
- be(/^[a-zA-Z0-9]*$/);
246
- be(/^\d*(\.\d+)?$/);
247
- const vn = /^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
248
- be(vn);
249
- const fn = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;
250
- be(fn);
251
- be(/(^[0-9]*$)|(^-[0-9]+$)/);
252
- be(/^[-]?\d*(\.\d+)?$/);
253
- function Ke(e) {
254
- return !!fi.find((i) => i.key === e);
244
+ Pe(/^[a-zA-Z]*$/);
245
+ Pe(/^[a-zA-Z0-9]*$/);
246
+ Pe(/^\d*(\.\d+)?$/);
247
+ const Mn = /^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
248
+ Pe(Mn);
249
+ const bn = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;
250
+ Pe(bn);
251
+ Pe(/(^[0-9]*$)|(^-[0-9]+$)/);
252
+ Pe(/^[-]?\d*(\.\d+)?$/);
253
+ function Qe(e) {
254
+ return !!Mi.find((i) => i.key === e);
255
255
  }
256
- const Yt = {
256
+ const Ht = {
257
257
  AT: {
258
258
  regex: /^ATU\d{8}$/,
259
259
  prefix: "AT",
@@ -424,55 +424,55 @@ const Yt = {
424
424
  prefix: "XI",
425
425
  example: "XI123456789"
426
426
  }
427
- }, _n = (e) => !e || typeof e != "string" || e.trim() === "" ? !0 : Object.values(Yt).some((i) => i.regex.test(e)), hn = ({ $model: e }) => {
427
+ }, In = (e) => !e || typeof e != "string" || e.trim() === "" ? !0 : Object.values(Ht).some((i) => i.regex.test(e)), An = ({ $model: e }) => {
428
428
  if (!e || typeof e != "string" || e.trim() === "")
429
429
  return "";
430
- const i = li(mi, null);
430
+ const i = ci(vi, null);
431
431
  if (!i)
432
432
  return "Invalid tax ID";
433
- const { formatMessage: n } = i, o = Object.values(Yt).find(
434
- (a) => e.toUpperCase().startsWith(a.prefix.toUpperCase())
433
+ const { formatMessage: n } = i, a = Object.values(Ht).find(
434
+ (o) => e.toUpperCase().startsWith(o.prefix.toUpperCase())
435
435
  );
436
- return o ? n(
436
+ return a ? n(
437
437
  {
438
438
  defaultMessage: "Invalid tax ID format. Example: {example}",
439
439
  id: "form_validation.tax_id.invalid_format",
440
440
  description: "Error message when tax ID format is invalid but prefix matches"
441
441
  },
442
- { example: o.example }
442
+ { example: a.example }
443
443
  ) : n({
444
444
  defaultMessage: "Invalid tax ID",
445
445
  id: "taxId.invalid",
446
446
  description: "Error message when tax ID is invalid"
447
447
  });
448
- }, it = yn.withMessage(hn, _n), Mn = "preview", bn = "NL", Kt = (e) => {
448
+ }, ot = hn.withMessage(An, In), Pn = "preview", Dn = "NL", Qt = (e) => {
449
449
  var i, n;
450
450
  if ("organization" in e)
451
451
  return (i = e.organization) == null ? void 0 : i.registered_address;
452
452
  if ("individual" in e)
453
453
  return (n = e.individual) == null ? void 0 : n.residential_address;
454
- }, In = (e) => {
455
- const i = Kt(e);
454
+ }, Nn = (e) => {
455
+ const i = Qt(e);
456
456
  return {
457
457
  ...(i == null ? void 0 : i.line1) && { line1: i.line1 },
458
458
  ...(i == null ? void 0 : i.line2) && { line2: i.line2 },
459
459
  ...(i == null ? void 0 : i.city) && { city: i.city },
460
460
  ...(i == null ? void 0 : i.state) && { state: i.state },
461
- country: (i == null ? void 0 : i.country) || bn,
461
+ country: (i == null ? void 0 : i.country) || Dn,
462
462
  ...(i == null ? void 0 : i.postal_code) && { postal_code: i.postal_code }
463
463
  };
464
- }, An = (e) => {
465
- var o, a;
466
- const i = In(e), n = e.type ?? "INDIVIDUAL";
464
+ }, En = (e) => {
465
+ var a, o;
466
+ const i = Nn(e), n = e.type ?? "INDIVIDUAL";
467
467
  if (n === "ORGANIZATION") {
468
- const l = "organization" in e ? e.organization : void 0, c = (a = (o = l == null ? void 0 : l.tax_ids) == null ? void 0 : o[0]) == null ? void 0 : a.id;
468
+ const r = "organization" in e ? e.organization : void 0, u = (o = (a = r == null ? void 0 : r.tax_ids) == null ? void 0 : a[0]) == null ? void 0 : o.id;
469
469
  return {
470
470
  type: n,
471
471
  organization: {
472
- legal_name: (l == null ? void 0 : l.legal_name) || Mn,
472
+ legal_name: (r == null ? void 0 : r.legal_name) || Pn,
473
473
  registered_address: i,
474
- ...c && {
475
- tax_id: it.$validator(c, {}, {}) ? c : void 0
474
+ ...u && {
475
+ tax_id: ot.$validator(u, {}, {}) ? u : void 0
476
476
  }
477
477
  }
478
478
  };
@@ -483,7 +483,7 @@ const Yt = {
483
483
  residential_address: i
484
484
  }
485
485
  };
486
- }, Pn = {
486
+ }, Cn = {
487
487
  AD: "EUR",
488
488
  AE: "AED",
489
489
  AF: "AFN",
@@ -731,123 +731,128 @@ const Yt = {
731
731
  ZA: "ZAR",
732
732
  ZM: "ZMW",
733
733
  ZW: "ZWL"
734
- }, Dn = (e) => {
734
+ }, xn = (e) => {
735
735
  if (e)
736
- return Pn[e];
737
- }, Ht = ({
736
+ return Cn[e];
737
+ }, Zt = ({
738
738
  country: e,
739
739
  pricingCurrencySettings: i,
740
740
  fallbackCurrency: n
741
741
  }) => {
742
- const o = Dn(e), a = (i == null ? void 0 : i.pricing_currencies) ?? [];
743
- return o && a.includes(o) ? o : (i == null ? void 0 : i.default_pricing_currency) ?? n ?? o;
744
- }, Nn = () => {
745
- const { getInvoicePreview: e } = Ii(), i = Me(), n = Y(), o = Y(), a = Y(), l = Y({}), c = Y(Ne.Initial), g = Y({}), u = Y(), I = (h) => `${h.type}:${h.value}`;
742
+ const a = xn(e), o = (i == null ? void 0 : i.pricing_currencies) ?? [];
743
+ return a && o.includes(a) ? a : (i == null ? void 0 : i.default_pricing_currency) ?? n ?? a;
744
+ }, Ln = () => {
745
+ const { getInvoicePreview: e } = Di(), i = Ae(), n = Y(), a = Y(), o = Y(), r = Y({}), u = Y(Ce.Initial), s = Y({}), d = Y(), I = (h) => `${h.type}:${h.value}`;
746
746
  return {
747
747
  loadInvoicePreview: async ({
748
748
  subscription: h,
749
- subscriptionStartAt: P,
750
- customer: m = {},
751
- seatsValues: x,
752
- unitsValues: k,
749
+ subscriptionStartAt: C,
750
+ customer: f = {},
751
+ seatsValues: L,
752
+ unitsValues: x,
753
753
  enabledPricingIds: v,
754
- promotionCode: N
754
+ promotionCode: H
755
755
  }) => {
756
- var A, f, C, R, K, H;
757
- const E = An(m);
758
- c.value = Ne.Loading;
759
- const V = Ee({
756
+ var c, y, D, T, R, Q;
757
+ const z = En(f);
758
+ u.value = Ce.Loading;
759
+ const A = xe({
760
760
  pricingPlanScheduleInfos: h.pricing_plan_schedule_infos,
761
761
  type: "DEFAULT"
762
- }), F = (A = V == null ? void 0 : V.pricing_plan_version) == null ? void 0 : A.pricing_currency_settings, p = (((f = F == null ? void 0 : F.pricing_currencies) == null ? void 0 : f.length) ?? 0) > 1, B = ((R = (C = V == null ? void 0 : V.pricing_plan_version) == null ? void 0 : C.billing_period_settings) == null ? void 0 : R.billing_periods) ?? [], T = B.length > 1, q = B.length > 0 ? B.map(({ period: Z }) => Z) : h.billing_period ? [h.billing_period] : [], G = Ht({
763
- country: (K = Kt(m)) == null ? void 0 : K.country,
764
- pricingCurrencySettings: F,
762
+ }), E = (c = A == null ? void 0 : A.pricing_plan_version) == null ? void 0 : c.pricing_currency_settings, m = (((y = E == null ? void 0 : E.pricing_currencies) == null ? void 0 : y.length) ?? 0) > 1, B = ((T = (D = A == null ? void 0 : A.pricing_plan_version) == null ? void 0 : D.billing_period_settings) == null ? void 0 : T.billing_periods) ?? [], S = B.length > 1, X = B.length > 0 ? B.map(({ period: F }) => F) : h.billing_period ? [h.billing_period] : [], de = Zt({
763
+ country: (R = Qt(f)) == null ? void 0 : R.country,
764
+ pricingCurrencySettings: E,
765
765
  fallbackCurrency: h.billing_currency
766
766
  });
767
- if (!q.length) {
767
+ if (!X.length) {
768
768
  i.warn("INVOICE_PREVIEW_SKIPPED", "No billing period to preview an invoice for", {
769
769
  subscriptionId: h.id
770
- }), c.value = Ne.Done;
770
+ }), u.value = Ce.Done;
771
771
  return;
772
772
  }
773
- const s = h.billing_period ? I(h.billing_period) : I(q[0]), r = q.map(async (Z) => {
774
- var ne;
775
- const oe = I(Z), te = Rt({
776
- enabledPricings: v == null ? void 0 : v.map((ee) => ({
777
- pricing_id: ee
773
+ const l = h.billing_period ? I(h.billing_period) : I(X[0]), P = X.map(async (F) => {
774
+ var G;
775
+ const ne = I(F), ee = Bt({
776
+ enabledPricings: v == null ? void 0 : v.map((q) => ({
777
+ pricing_id: q
778
778
  })),
779
- seatsValues: x,
780
- unitsValues: k,
779
+ seatsValues: L,
780
+ unitsValues: x,
781
781
  pricingPlanScheduleInfos: h.pricing_plan_schedule_infos,
782
- pricingCurrency: p ? G : void 0,
783
- billingPeriod: T ? Z : void 0
782
+ pricingCurrency: m ? de : void 0,
783
+ billingPeriod: S ? F : void 0
784
784
  }) ?? [];
785
- if (N) {
786
- const ee = (ne = h.pricing_plan_schedule_infos.find(
785
+ if (H) {
786
+ const q = (G = h.pricing_plan_schedule_infos.find(
787
787
  ({ pricing_plan_schedule: J }) => J.type === "DEFAULT"
788
- )) == null ? void 0 : ne.id;
789
- if (ee) {
790
- const J = te.find(
791
- ({ pricing_plan_schedule_id: re }) => re === ee
788
+ )) == null ? void 0 : G.id;
789
+ if (q) {
790
+ const J = ee.find(
791
+ ({ pricing_plan_schedule_id: ae }) => ae === q
792
792
  );
793
- J ? J.promotion_codes = [N] : te.push({
794
- pricing_plan_schedule_id: ee,
795
- promotion_codes: [N]
793
+ J ? J.promotion_codes = [H] : ee.push({
794
+ pricing_plan_schedule_id: q,
795
+ promotion_codes: [H]
796
796
  });
797
797
  }
798
798
  }
799
- const ie = {
799
+ const te = {
800
800
  pricingPlanSubscriptionId: h.id,
801
- startAt: P,
802
- customizations: te,
803
- customer: E
804
- }, ae = g.value[oe];
805
- if (ae && bi(ie, ae))
806
- return { periodKey: oe, response: void 0 };
807
- g.value = {
808
- ...g.value,
809
- [oe]: ie
801
+ startAt: C,
802
+ customizations: ee,
803
+ customer: z
804
+ }, ie = s.value[ne];
805
+ if (ie && Pi(te, ie))
806
+ return { periodKey: ne, response: void 0 };
807
+ s.value = {
808
+ ...s.value,
809
+ [ne]: te
810
810
  };
811
- const U = await e(ie);
812
- return { periodKey: oe, response: U };
811
+ const oe = await e(te);
812
+ return { periodKey: ne, response: oe };
813
813
  });
814
814
  try {
815
- const Z = {
816
- ...l.value
817
- }, oe = await Promise.all(r), te = h.pricing_plan_schedule_infos.find(
818
- ({ pricing_plan_schedule: ae }) => ae.type === "TRIAL"
819
- ), ie = (H = h.pricing_plan_schedule_infos.find(
820
- ({ pricing_plan_schedule: ae }) => ae.type === "DEFAULT"
821
- )) == null ? void 0 : H.id;
822
- oe.forEach(({ periodKey: ae, response: U }) => {
815
+ const F = {
816
+ ...r.value
817
+ }, ne = await Promise.all(P), ee = h.pricing_plan_schedule_infos.find(
818
+ ({ pricing_plan_schedule: ie }) => ie.type === "TRIAL"
819
+ ), te = (Q = h.pricing_plan_schedule_infos.find(
820
+ ({ pricing_plan_schedule: ie }) => ie.type === "DEFAULT"
821
+ )) == null ? void 0 : Q.id;
822
+ ne.forEach(({ periodKey: ie, response: oe }) => {
823
823
  var J;
824
- if (!U) return;
825
- u.value = (J = U.invoice_infos.at(-1)) == null ? void 0 : J.pricing_plan_schedule_id, te && (o.value = U.first_invoice, te.start_at && te.end_at && (n.value = hi(
826
- new Date(te.start_at),
827
- new Date(te.end_at)
824
+ if (!oe) return;
825
+ d.value = (J = oe.invoice_infos.at(-1)) == null ? void 0 : J.pricing_plan_schedule_id, ee && (a.value = oe.first_invoice, ee.start_at && ee.end_at && (n.value = Ii(
826
+ new Date(ee.start_at),
827
+ new Date(ee.end_at)
828
828
  )));
829
- const ne = U.invoice_infos.find(
830
- ({ pricing_plan_schedule_id: re }) => re === ie
831
- ), ee = ne == null ? void 0 : ne.invoices[0];
832
- ee && (Z[ae] = ee);
833
- }), l.value = Z, a.value = Z[s];
834
- } catch (Z) {
835
- throw c.value = Ne.Failed, i.error("INVOICE_PREVIEW_FAILED", "Failed to load invoice preview", {}, Z), Z;
829
+ const G = oe.invoice_infos.find(
830
+ ({ pricing_plan_schedule_id: ae }) => ae === te
831
+ ), q = G == null ? void 0 : G.invoices[0];
832
+ q && (F[ie] = q);
833
+ }), r.value = F, o.value = F[l];
834
+ } catch (F) {
835
+ throw u.value = Ce.Failed, i.error(
836
+ "INVOICE_PREVIEW_FAILED",
837
+ "Failed to load the invoice preview",
838
+ { preview: "CHECKOUT" },
839
+ F
840
+ ), F;
836
841
  } finally {
837
- c.value = Ne.Done;
842
+ u.value = Ce.Done;
838
843
  }
839
844
  },
840
- invoicePreview: a,
841
- invoicePreviewByBillingPeriod: l,
842
- trialInvoicePreview: o,
845
+ invoicePreview: o,
846
+ invoicePreviewByBillingPeriod: r,
847
+ trialInvoicePreview: a,
843
848
  trialPeriod: n,
844
- lastPreviewScheduleId: u,
845
- isPending: M(() => c.value === Ne.Loading)
849
+ lastPreviewScheduleId: d,
850
+ isPending: _(() => u.value === Ce.Loading)
846
851
  };
847
- }, Lt = ["email", "country"], Qt = "GENERIC_TAX_ID", Tt = {
852
+ }, wt = ["email", "country"], Xt = "GENERIC_TAX_ID", St = {
848
853
  US: ["addressLine1", "postalCode"],
849
854
  CA: ["state"]
850
- }, En = (e) => !e || !Tt[e] ? Lt : [...Tt[e], ...Lt], wt = (e) => {
855
+ }, Tn = (e) => !e || !St[e] ? wt : [...St[e], ...wt], kt = (e) => {
851
856
  const i = {
852
857
  ...e.addressLine1 && { line1: e.addressLine1 },
853
858
  ...e.addressLine2 && { line2: e.addressLine2 },
@@ -862,7 +867,7 @@ const Yt = {
862
867
  legal_name: e.companyLegalName ?? "",
863
868
  registered_address: i,
864
869
  ...e.companyVatNumber && {
865
- tax_ids: [{ id: e.companyVatNumber, type: Qt }]
870
+ tax_ids: [{ id: e.companyVatNumber, type: Xt }]
866
871
  }
867
872
  }
868
873
  } : {
@@ -872,7 +877,7 @@ const Yt = {
872
877
  }
873
878
  };
874
879
  };
875
- function Cn() {
880
+ function wn() {
876
881
  return {
877
882
  /**
878
883
  * Get geolocation information from the user
@@ -882,70 +887,70 @@ function Cn() {
882
887
  }
883
888
  };
884
889
  }
885
- function xn({
890
+ function Sn({
886
891
  initialState: e,
887
892
  onRequiredFieldChange: i
888
893
  }) {
889
- const n = Y(Be(e)), o = Y(Be(e)), a = (y) => {
890
- const h = Be({ ...si(n.value), ...y });
891
- n.value = h, o.value = structuredClone(h);
892
- }, l = M(
893
- () => En(n.value.country)
894
- ), c = (y) => l.value.includes(y), g = Pi(
894
+ const n = Y(Ve(e)), a = Y(Ve(e)), o = (g) => {
895
+ const h = Ve({ ...ui(n.value), ...g });
896
+ n.value = h, a.value = structuredClone(h);
897
+ }, r = _(
898
+ () => Tn(n.value.country)
899
+ ), u = (g) => r.value.includes(g), s = Ei(
895
900
  {
896
- email: { required: Dt, email: Di },
897
- country: { required: Dt },
898
- state: { required: $e(() => c("state")) },
899
- addressLine1: { required: $e(() => c("addressLine1")) },
900
- postalCode: { required: $e(() => c("postalCode")) },
901
- companyLegalName: $e(n.value.type === "ORGANIZATION"),
902
- companyVatNumber: { taxId: it }
901
+ email: { required: Et, email: Ci },
902
+ country: { required: Et },
903
+ state: { required: Ue(() => u("state")) },
904
+ addressLine1: { required: Ue(() => u("addressLine1")) },
905
+ postalCode: { required: Ue(() => u("postalCode")) },
906
+ companyLegalName: Ue(n.value.type === "ORGANIZATION"),
907
+ companyVatNumber: { taxId: ot }
903
908
  },
904
909
  n
905
- ), u = (y) => {
906
- y || Cn().getGeoLocation().then(({ country: h }) => {
910
+ ), d = (g) => {
911
+ g || wn().getGeoLocation().then(({ country: h }) => {
907
912
  n.value.country = h;
908
913
  });
909
- }, I = (y, h) => {
910
- const P = Ei({ from: h, to: y }), m = Object.keys(P).find(Ln);
911
- if (m) {
912
- if (["type", "companyVatNumber"].includes(m)) {
913
- i(y);
914
+ }, I = (g, h) => {
915
+ const C = Ti({ from: h, to: g }), f = Object.keys(C).find(kn);
916
+ if (f) {
917
+ if (["type", "companyVatNumber"].includes(f)) {
918
+ i(g);
914
919
  return;
915
920
  }
916
- if (m === "seatsValues") {
917
- i(y);
921
+ if (f === "seatsValues") {
922
+ i(g);
918
923
  return;
919
924
  }
920
- if (m === "unitsValues") {
921
- i(y);
925
+ if (f === "unitsValues") {
926
+ i(g);
922
927
  return;
923
928
  }
924
- if (m === "enabledPricingIds") {
925
- i(y);
929
+ if (f === "enabledPricingIds") {
930
+ i(g);
926
931
  return;
927
932
  }
928
- if (m !== "email" && c(m)) {
929
- i(y);
933
+ if (f !== "email" && u(f)) {
934
+ i(g);
930
935
  return;
931
936
  }
932
937
  }
933
938
  };
934
- return Oe(async () => {
935
- await u(e == null ? void 0 : e.country);
936
- }), Ti(
939
+ return je(async () => {
940
+ await d(e == null ? void 0 : e.country);
941
+ }), Oi(
937
942
  () => JSON.parse(JSON.stringify(n.value)),
938
943
  I,
939
944
  { debounce: 200 }
940
945
  ), {
941
946
  form: n,
942
- validation: g,
943
- getIsFieldRequired: c,
944
- updateInitialState: a,
945
- initialState: o
947
+ validation: s,
948
+ getIsFieldRequired: u,
949
+ updateInitialState: o,
950
+ initialState: a
946
951
  };
947
952
  }
948
- const Be = (e = {}) => ({
953
+ const Ve = (e = {}) => ({
949
954
  email: void 0,
950
955
  country: void 0,
951
956
  type: "INDIVIDUAL",
@@ -964,277 +969,277 @@ const Be = (e = {}) => ({
964
969
  enabledPricingIds: void 0,
965
970
  ...e
966
971
  });
967
- function Ln(e) {
968
- return e in Be();
972
+ function kn(e) {
973
+ return e in Ve();
969
974
  }
970
- function Tn(e, i = void 0) {
971
- const n = i ?? [], o = tt(e);
972
- for (const a of o)
973
- if (["EXACTLY_ONE", "AT_LEAST_ONE"].includes(a.selection_constraint)) {
974
- const l = a.pricings.map((c) => c.id);
975
- if (i != null && i.some((c) => l.includes(c)))
975
+ function On(e, i = void 0) {
976
+ const n = i ?? [], a = nt(e);
977
+ for (const o of a)
978
+ if (["EXACTLY_ONE", "AT_LEAST_ONE"].includes(o.selection_constraint)) {
979
+ const r = o.pricings.map((u) => u.id);
980
+ if (i != null && i.some((u) => r.includes(u)))
976
981
  continue;
977
- n.push(a.pricings[0].id);
982
+ n.push(o.pricings[0].id);
978
983
  }
979
984
  return n;
980
985
  }
981
- function wn(e) {
982
- return tt(e).some(
986
+ function zn(e) {
987
+ return nt(e).some(
983
988
  (n) => n.selection_constraint === "EXACTLY_ONE" || n.selection_constraint === "AT_LEAST_ONE"
984
989
  );
985
990
  }
986
- function Sn(e) {
987
- const i = Oi(e.pricing_plan_schedule_infos), n = tt(e);
988
- return i.some((o) => o.product_type === "ADDON") || n.some((o) => o.object_type === "ADDON");
991
+ function jn(e) {
992
+ const i = $i(e.pricing_plan_schedule_infos), n = nt(e);
993
+ return i.some((a) => a.product_type === "ADDON") || n.some((a) => a.object_type === "ADDON");
989
994
  }
990
- const St = (e) => (e ?? []).flatMap(
995
+ const Ot = (e) => (e ?? []).flatMap(
991
996
  (i) => i.configs ?? []
992
- ), Zt = (e) => [
997
+ ), Wt = (e) => [
993
998
  ...e.configs ?? [],
994
- ...St(e.billing_period_configs),
999
+ ...Ot(e.billing_period_configs),
995
1000
  ...(e.pricing_currency_configs ?? []).flatMap((i) => [
996
1001
  ...i.configs ?? [],
997
- ...St(i.billing_period_configs)
1002
+ ...Ot(i.billing_period_configs)
998
1003
  ])
999
1004
  ];
1000
- function rr({
1005
+ function ur({
1001
1006
  pricings: e,
1002
1007
  pricingItemConfigId: i
1003
1008
  }) {
1004
- var l, c;
1005
- const n = e.flatMap((g) => g.items ?? []).find((g) => {
1006
- var u;
1007
- return (u = g.configs) == null ? void 0 : u.some((I) => I.id === i);
1008
- }), o = (l = n == null ? void 0 : n.configs) == null ? void 0 : l.find((g) => g.id === i), a = (c = n == null ? void 0 : n.product_items) == null ? void 0 : c[0];
1009
+ var r, u;
1010
+ const n = e.flatMap((s) => s.items ?? []).find((s) => {
1011
+ var d;
1012
+ return (d = s.configs) == null ? void 0 : d.some((I) => I.id === i);
1013
+ }), a = (r = n == null ? void 0 : n.configs) == null ? void 0 : r.find((s) => s.id === i), o = (u = n == null ? void 0 : n.product_items) == null ? void 0 : u[0];
1009
1014
  return {
1010
- config: o,
1011
- productItem: a
1015
+ config: a,
1016
+ productItem: o
1012
1017
  };
1013
1018
  }
1014
- const kn = "1";
1015
- function On(e) {
1016
- const i = $t(e).flatMap((n) => n.items ?? []).flatMap(Zt);
1019
+ const Rn = "1";
1020
+ function $n(e) {
1021
+ const i = Ut(e).flatMap((n) => n.items ?? []).flatMap(Wt);
1017
1022
  return new Map(
1018
1023
  i.flatMap(
1019
1024
  (n) => {
1020
- var o;
1021
- return (o = n.default_seats_value) != null && o.number ? [[n.id, n.default_seats_value.number]] : [];
1025
+ var a;
1026
+ return (a = n.default_seats_value) != null && a.number ? [[n.id, n.default_seats_value.number]] : [];
1022
1027
  }
1023
1028
  )
1024
1029
  );
1025
1030
  }
1026
- function zn(e) {
1027
- var o;
1028
- const i = (o = e == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : o.seats_values;
1031
+ function Bn(e) {
1032
+ var a;
1033
+ const i = (a = e == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : a.seats_values;
1029
1034
  if (!e || !(i != null && i.length))
1030
1035
  return;
1031
- const n = e.pricing_plan_version ? On(e) : /* @__PURE__ */ new Map();
1032
- return i.map(({ pricing_item_config_id: a, number: l }) => ({
1033
- pricing_item_config_id: a,
1034
- number: l || n.get(a) || kn
1036
+ const n = e.pricing_plan_version ? $n(e) : /* @__PURE__ */ new Map();
1037
+ return i.map(({ pricing_item_config_id: o, number: r }) => ({
1038
+ pricing_item_config_id: o,
1039
+ number: r || n.get(o) || Rn
1035
1040
  }));
1036
1041
  }
1037
- const jn = "1";
1038
- function Rn(e) {
1039
- const i = $t(e).flatMap((n) => n.items ?? []).flatMap(Zt);
1042
+ const Un = "1";
1043
+ function Vn(e) {
1044
+ const i = Ut(e).flatMap((n) => n.items ?? []).flatMap(Wt);
1040
1045
  return new Map(
1041
1046
  i.flatMap(
1042
1047
  (n) => {
1043
- var o;
1044
- return (o = n.default_units) != null && o.number ? [[n.id, n.default_units.number]] : [];
1048
+ var a;
1049
+ return (a = n.default_units) != null && a.number ? [[n.id, n.default_units.number]] : [];
1045
1050
  }
1046
1051
  )
1047
1052
  );
1048
1053
  }
1049
- function $n(e) {
1050
- var o;
1051
- const i = (o = e == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : o.units;
1054
+ function Fn(e) {
1055
+ var a;
1056
+ const i = (a = e == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : a.units;
1052
1057
  if (!e || !(i != null && i.length))
1053
1058
  return;
1054
- const n = e.pricing_plan_version ? Rn(e) : /* @__PURE__ */ new Map();
1055
- return i.map(({ pricing_item_config_id: a, number: l }) => ({
1056
- pricing_item_config_id: a,
1057
- number: l || n.get(a) || jn
1059
+ const n = e.pricing_plan_version ? Vn(e) : /* @__PURE__ */ new Map();
1060
+ return i.map(({ pricing_item_config_id: o, number: r }) => ({
1061
+ pricing_item_config_id: o,
1062
+ number: r || n.get(o) || Un
1058
1063
  }));
1059
1064
  }
1060
- const qe = "solvimon_checkout_redirect_state";
1061
- function Bn({
1065
+ const et = "solvimon_checkout_redirect_state";
1066
+ function Gn({
1062
1067
  initialCountry: e,
1063
1068
  initialEmail: i,
1064
1069
  subscriptionId: n,
1065
- enabledPricingIds: o
1070
+ enabledPricingIds: a
1066
1071
  }) {
1067
- const a = Me(), l = (() => {
1072
+ const o = Ae(), r = (() => {
1068
1073
  if (e) {
1069
- if (Ke(e)) return e;
1070
- a.error("INVALID_COUNTRY_CODE", `invalid country code provided: "${e}"`);
1074
+ if (Qe(e)) return e;
1075
+ o.error("INVALID_COUNTRY_CODE", `invalid country code provided: "${e}"`);
1071
1076
  }
1072
- })(), c = (() => {
1077
+ })(), u = (() => {
1073
1078
  if (i) {
1074
1079
  if (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)) return i;
1075
- a.error("INVALID_EMAIL", `invalid email provided: "${i}"`);
1080
+ o.error("INVALID_EMAIL", `invalid email provided: "${i}"`);
1076
1081
  }
1077
- })(), g = Y(!1), u = Y(), { getSubscription: I } = _i(), y = Nn(), h = M(() => u.value && p.form.value.country && q.value), {
1078
- paymentMethodOptions: P,
1079
- get: m,
1080
- isPending: x,
1081
- error: k
1082
- } = wi(), v = async (s, r) => {
1082
+ })(), s = Y(!1), d = Y(), { getSubscription: I } = bi(), g = Ln(), h = _(() => d.value && m.form.value.country && X.value), {
1083
+ paymentMethodOptions: C,
1084
+ get: f,
1085
+ isPending: L,
1086
+ error: x
1087
+ } = zi(), v = async (l, P) => {
1083
1088
  try {
1084
- await m({
1085
- subscriptionId: u.value.id,
1086
- country: s,
1087
- amount: r
1089
+ await f({
1090
+ subscriptionId: d.value.id,
1091
+ country: l,
1092
+ amount: P
1088
1093
  });
1089
1094
  } catch {
1090
- a.error(
1095
+ o.error(
1091
1096
  "PAYMENT_METHOD_OPTIONS_LOAD_FAILED",
1092
- "Failed to load the payment methods the checkout can offer",
1093
- {},
1094
- k.value
1097
+ "Failed to load the payment methods that can be offered",
1098
+ { flow: "CHECKOUT" },
1099
+ x.value
1095
1100
  );
1096
1101
  }
1097
- }, N = M(() => k.value !== null), E = () => {
1098
- const { country: s } = p.form.value;
1099
- !u.value || !s || !q.value || v(s, q.value);
1100
- }, V = () => {
1101
- const s = p.form.value;
1102
- return y.loadInvoicePreview({
1103
- subscription: u.value,
1104
- customer: wt(s),
1105
- seatsValues: s.seatsValues,
1106
- unitsValues: s.unitsValues,
1107
- enabledPricingIds: s.enabledPricingIds ?? o,
1108
- promotionCode: s.promotionCode
1102
+ }, H = _(() => x.value !== null), z = () => {
1103
+ const { country: l } = m.form.value;
1104
+ !d.value || !l || !X.value || v(l, X.value);
1105
+ }, A = () => {
1106
+ const l = m.form.value;
1107
+ return g.loadInvoicePreview({
1108
+ subscription: d.value,
1109
+ customer: kt(l),
1110
+ seatsValues: l.seatsValues,
1111
+ unitsValues: l.unitsValues,
1112
+ enabledPricingIds: l.enabledPricingIds ?? a,
1113
+ promotionCode: l.promotionCode
1109
1114
  });
1110
- }, F = async (s) => {
1111
- const r = s.promotionCode ?? p.form.value.promotionCode, A = s.enabledPricingIds ?? p.form.value.enabledPricingIds, f = { ...p.form.value, ...s };
1112
- return await y.loadInvoicePreview({
1113
- subscription: u.value,
1114
- customer: wt(f),
1115
- seatsValues: f.seatsValues,
1116
- unitsValues: f.unitsValues,
1117
- enabledPricingIds: A,
1118
- promotionCode: r
1115
+ }, E = async (l) => {
1116
+ const P = l.promotionCode ?? m.form.value.promotionCode, c = l.enabledPricingIds ?? m.form.value.enabledPricingIds, y = { ...m.form.value, ...l };
1117
+ return await g.loadInvoicePreview({
1118
+ subscription: d.value,
1119
+ customer: kt(y),
1120
+ seatsValues: y.seatsValues,
1121
+ unitsValues: y.unitsValues,
1122
+ enabledPricingIds: c,
1123
+ promotionCode: P
1119
1124
  }), {
1120
- trialInvoicePreview: y.trialInvoicePreview.value,
1121
- invoicePreview: y.invoicePreview.value
1125
+ trialInvoicePreview: g.trialInvoicePreview.value,
1126
+ invoicePreview: g.invoicePreview.value
1122
1127
  };
1123
- }, p = xn({
1128
+ }, m = Sn({
1124
1129
  initialState: {
1125
- country: l,
1126
- email: c
1130
+ country: r,
1131
+ email: u
1127
1132
  },
1128
1133
  onRequiredFieldChange: () => {
1129
- u.value && V().catch(() => {
1134
+ d.value && A().catch(() => {
1130
1135
  });
1131
1136
  }
1132
1137
  }), B = async () => {
1133
- var R, K, H, Z;
1134
- const s = await I({
1138
+ var T, R, Q, F;
1139
+ const l = await I({
1135
1140
  id: n,
1136
1141
  expanded: !0
1137
- }), r = Ee({
1138
- pricingPlanScheduleInfos: s.pricing_plan_schedule_infos,
1142
+ }), P = xe({
1143
+ pricingPlanScheduleInfos: l.pricing_plan_schedule_infos,
1139
1144
  type: "DEFAULT"
1140
- }), A = (Z = (H = (K = (R = r == null ? void 0 : r.pricing_plan_version) == null ? void 0 : R.billing_period_settings) == null ? void 0 : K.billing_periods) == null ? void 0 : H[0]) == null ? void 0 : Z.period;
1141
- u.value = {
1142
- ...s,
1143
- billing_period: A ?? s.billing_period
1145
+ }), c = (F = (Q = (R = (T = P == null ? void 0 : P.pricing_plan_version) == null ? void 0 : T.billing_period_settings) == null ? void 0 : R.billing_periods) == null ? void 0 : Q[0]) == null ? void 0 : F.period;
1146
+ d.value = {
1147
+ ...l,
1148
+ billing_period: c ?? l.billing_period
1144
1149
  };
1145
- const f = zn(r), C = $n(r);
1146
- p.updateInitialState({
1147
- ...p.form.value,
1148
- enabledPricingIds: Tn(s, o),
1149
- ...f ? { seatsValues: f } : {},
1150
- ...C ? { unitsValues: C } : {}
1150
+ const y = Bn(P), D = Fn(P);
1151
+ m.updateInitialState({
1152
+ ...m.form.value,
1153
+ enabledPricingIds: On(l, a),
1154
+ ...y ? { seatsValues: y } : {},
1155
+ ...D ? { unitsValues: D } : {}
1151
1156
  });
1152
- }, T = M(() => {
1153
- var te, ie, ae, U, ne, ee, J, re, ue;
1154
- const s = p.form.value.firstName || p.form.value.infix || p.form.value.lastName ? {
1155
- ...p.form.value.firstName ? { first_name: p.form.value.firstName } : {},
1156
- ...p.form.value.infix ? { infix: p.form.value.infix } : {},
1157
- ...p.form.value.lastName ? { last_name: p.form.value.lastName } : {}
1158
- } : {}, r = {
1159
- ...p.form.value.addressLine1 && {
1160
- line1: p.form.value.addressLine1
1157
+ }, S = _(() => {
1158
+ var ee, te, ie, oe, G, q, J, ae, ce;
1159
+ const l = m.form.value.firstName || m.form.value.infix || m.form.value.lastName ? {
1160
+ ...m.form.value.firstName ? { first_name: m.form.value.firstName } : {},
1161
+ ...m.form.value.infix ? { infix: m.form.value.infix } : {},
1162
+ ...m.form.value.lastName ? { last_name: m.form.value.lastName } : {}
1163
+ } : {}, P = {
1164
+ ...m.form.value.addressLine1 && {
1165
+ line1: m.form.value.addressLine1
1161
1166
  },
1162
- ...p.form.value.addressLine2 && {
1163
- line2: p.form.value.addressLine2
1167
+ ...m.form.value.addressLine2 && {
1168
+ line2: m.form.value.addressLine2
1164
1169
  },
1165
- ...p.form.value.city && { city: p.form.value.city },
1166
- ...p.form.value.postalCode && {
1167
- postal_code: p.form.value.postalCode
1170
+ ...m.form.value.city && { city: m.form.value.city },
1171
+ ...m.form.value.postalCode && {
1172
+ postal_code: m.form.value.postalCode
1168
1173
  },
1169
- ...p.form.value.state && { state: p.form.value.state },
1170
- country: p.form.value.country ?? ""
1171
- }, A = Ee({
1172
- pricingPlanScheduleInfos: ((te = u.value) == null ? void 0 : te.pricing_plan_schedule_infos) ?? [],
1174
+ ...m.form.value.state && { state: m.form.value.state },
1175
+ country: m.form.value.country ?? ""
1176
+ }, c = xe({
1177
+ pricingPlanScheduleInfos: ((ee = d.value) == null ? void 0 : ee.pricing_plan_schedule_infos) ?? [],
1173
1178
  type: "DEFAULT"
1174
- }), f = (ie = A == null ? void 0 : A.pricing_plan_version) == null ? void 0 : ie.pricing_currency_settings, C = (((ae = f == null ? void 0 : f.pricing_currencies) == null ? void 0 : ae.length) ?? 0) > 1, K = (((ne = (U = A == null ? void 0 : A.pricing_plan_version) == null ? void 0 : U.billing_period_settings) == null ? void 0 : ne.billing_periods) ?? []).length > 1, H = Rt({
1175
- enabledPricings: (ee = p.form.value.enabledPricingIds) == null ? void 0 : ee.map((de) => ({
1176
- pricing_id: de
1179
+ }), y = (te = c == null ? void 0 : c.pricing_plan_version) == null ? void 0 : te.pricing_currency_settings, D = (((ie = y == null ? void 0 : y.pricing_currencies) == null ? void 0 : ie.length) ?? 0) > 1, R = (((G = (oe = c == null ? void 0 : c.pricing_plan_version) == null ? void 0 : oe.billing_period_settings) == null ? void 0 : G.billing_periods) ?? []).length > 1, Q = Bt({
1180
+ enabledPricings: (q = m.form.value.enabledPricingIds) == null ? void 0 : q.map((ue) => ({
1181
+ pricing_id: ue
1177
1182
  })),
1178
- seatsValues: p.form.value.seatsValues,
1179
- unitsValues: p.form.value.unitsValues,
1180
- pricingPlanScheduleInfos: ((J = u.value) == null ? void 0 : J.pricing_plan_schedule_infos) ?? [],
1181
- pricingCurrency: C ? (re = u.value) == null ? void 0 : re.billing_currency : void 0,
1182
- billingPeriod: K ? (ue = u.value) == null ? void 0 : ue.billing_period : void 0
1183
- }), Z = p.form.value.promotionCode, oe = Z && u.value ? (() => {
1184
- var Ce, xe, ze;
1185
- const de = H ? [...H] : [], fe = ((Ce = de[0]) == null ? void 0 : Ce.pricing_plan_schedule_id) ?? ((ze = Ee({
1186
- pricingPlanScheduleInfos: ((xe = u.value) == null ? void 0 : xe.pricing_plan_schedule_infos) ?? [],
1183
+ seatsValues: m.form.value.seatsValues,
1184
+ unitsValues: m.form.value.unitsValues,
1185
+ pricingPlanScheduleInfos: ((J = d.value) == null ? void 0 : J.pricing_plan_schedule_infos) ?? [],
1186
+ pricingCurrency: D ? (ae = d.value) == null ? void 0 : ae.billing_currency : void 0,
1187
+ billingPeriod: R ? (ce = d.value) == null ? void 0 : ce.billing_period : void 0
1188
+ }), F = m.form.value.promotionCode, ne = F && d.value ? (() => {
1189
+ var Le, Te, Re;
1190
+ const ue = Q ? [...Q] : [], ve = ((Le = ue[0]) == null ? void 0 : Le.pricing_plan_schedule_id) ?? ((Re = xe({
1191
+ pricingPlanScheduleInfos: ((Te = d.value) == null ? void 0 : Te.pricing_plan_schedule_infos) ?? [],
1187
1192
  type: "DEFAULT"
1188
- })) == null ? void 0 : ze.id);
1189
- if (!fe)
1190
- return H;
1191
- const Ie = de.find(
1192
- ({ pricing_plan_schedule_id: le }) => le === fe
1193
+ })) == null ? void 0 : Re.id);
1194
+ if (!ve)
1195
+ return Q;
1196
+ const fe = ue.find(
1197
+ ({ pricing_plan_schedule_id: re }) => re === ve
1193
1198
  );
1194
- if (Ie)
1195
- Ie.promotion_codes = [Z];
1199
+ if (fe)
1200
+ fe.promotion_codes = [F];
1196
1201
  else {
1197
- const le = H == null ? void 0 : H[0];
1198
- de.push({
1199
- pricing_plan_schedule_id: fe,
1200
- ...(le == null ? void 0 : le.enabled_pricings) && {
1201
- enabled_pricings: le.enabled_pricings
1202
+ const re = Q == null ? void 0 : Q[0];
1203
+ ue.push({
1204
+ pricing_plan_schedule_id: ve,
1205
+ ...(re == null ? void 0 : re.enabled_pricings) && {
1206
+ enabled_pricings: re.enabled_pricings
1202
1207
  },
1203
- ...(le == null ? void 0 : le.seats_values) && {
1204
- seats_values: le.seats_values
1208
+ ...(re == null ? void 0 : re.seats_values) && {
1209
+ seats_values: re.seats_values
1205
1210
  },
1206
- ...(le == null ? void 0 : le.units) && {
1207
- units: le.units
1211
+ ...(re == null ? void 0 : re.units) && {
1212
+ units: re.units
1208
1213
  },
1209
- promotion_codes: [Z]
1214
+ promotion_codes: [F]
1210
1215
  });
1211
1216
  }
1212
- return de;
1213
- })() : H;
1217
+ return ue;
1218
+ })() : Q;
1214
1219
  return {
1215
1220
  type: "INIT_PRICING_PLAN_SUBSCRIPTION",
1216
1221
  init_pricing_plan_subscription: {
1217
1222
  template_pricing_plan_subscription_id: n,
1218
- ...oe && {
1219
- pricing_plan_schedule_customizations: oe
1223
+ ...ne && {
1224
+ pricing_plan_schedule_customizations: ne
1220
1225
  },
1221
1226
  customer_details: {
1222
- email: p.form.value.email ?? "",
1223
- type: p.form.value.type,
1224
- ...p.form.value.type === "INDIVIDUAL" ? {
1227
+ email: m.form.value.email ?? "",
1228
+ type: m.form.value.type,
1229
+ ...m.form.value.type === "INDIVIDUAL" ? {
1225
1230
  individual: {
1226
- residential_address: r,
1227
- ...s ? { name: s } : {}
1231
+ residential_address: P,
1232
+ ...l ? { name: l } : {}
1228
1233
  }
1229
1234
  } : {
1230
1235
  organization: {
1231
- registered_address: r,
1232
- legal_name: p.form.value.companyLegalName ?? "",
1233
- ...p.form.value.companyVatNumber && it.$validator(p.form.value.companyVatNumber, {}, {}) ? {
1236
+ registered_address: P,
1237
+ legal_name: m.form.value.companyLegalName ?? "",
1238
+ ...m.form.value.companyVatNumber && ot.$validator(m.form.value.companyVatNumber, {}, {}) ? {
1234
1239
  tax_ids: [
1235
1240
  {
1236
- id: p.form.value.companyVatNumber,
1237
- type: Qt
1241
+ id: m.form.value.companyVatNumber,
1242
+ type: Xt
1238
1243
  }
1239
1244
  ]
1240
1245
  } : {}
@@ -1243,148 +1248,148 @@ function Bn({
1243
1248
  }
1244
1249
  }
1245
1250
  };
1246
- }), q = M(() => {
1247
- var s, r;
1248
- return ((s = y.trialInvoicePreview.value) == null ? void 0 : s.invoice_amount_including_tax) ?? ((r = y.invoicePreview.value) == null ? void 0 : r.invoice_amount_including_tax);
1251
+ }), X = _(() => {
1252
+ var l, P;
1253
+ return ((l = g.trialInvoicePreview.value) == null ? void 0 : l.invoice_amount_including_tax) ?? ((P = g.invoicePreview.value) == null ? void 0 : P.invoice_amount_including_tax);
1249
1254
  });
1250
- Se(
1251
- [() => p.form.value.country, q],
1252
- ([s, r]) => {
1253
- !u.value || !s || !r || v(s, r);
1255
+ Oe(
1256
+ [() => m.form.value.country, X],
1257
+ ([l, P]) => {
1258
+ !d.value || !l || !P || v(l, P);
1254
1259
  }
1255
1260
  );
1256
- function G() {
1257
- sessionStorage.setItem(qe, JSON.stringify(p.form.value));
1261
+ function de() {
1262
+ sessionStorage.setItem(et, JSON.stringify(m.form.value));
1258
1263
  }
1259
- return Oe(async () => {
1260
- const s = Te("redirect_status"), r = !!Te(Ri), A = !!Te("payment_intent_client_secret") || !!Te("setup_intent_client_secret");
1261
- s === "succeeded" && r && A && (g.value = !0);
1262
- const C = sessionStorage.getItem(qe);
1263
- let R = null;
1264
- if (C)
1264
+ return je(async () => {
1265
+ const l = Se("redirect_status"), P = !!Se(Vi), c = !!Se("payment_intent_client_secret") || !!Se("setup_intent_client_secret");
1266
+ l === "succeeded" && P && c && (s.value = !0);
1267
+ const D = sessionStorage.getItem(et);
1268
+ let T = null;
1269
+ if (D)
1265
1270
  try {
1266
- R = JSON.parse(C);
1271
+ T = JSON.parse(D);
1267
1272
  } catch {
1268
1273
  }
1269
- R && p.updateInitialState(R);
1274
+ T && m.updateInitialState(T);
1270
1275
  try {
1271
1276
  await B();
1272
- } catch (K) {
1273
- throw a.error(
1277
+ } catch (R) {
1278
+ throw o.error(
1274
1279
  "SUBSCRIPTION_LOAD_FAILED",
1275
1280
  "Failed to load the subscription the checkout prices",
1276
1281
  {},
1277
- K
1278
- ), K;
1282
+ R
1283
+ ), R;
1279
1284
  }
1280
1285
  try {
1281
- await V();
1286
+ await A();
1282
1287
  } catch {
1283
1288
  }
1284
- R && (p.updateInitialState(R), sessionStorage.removeItem(qe));
1285
- }), Se(
1289
+ T && (m.updateInitialState(T), sessionStorage.removeItem(et));
1290
+ }), Oe(
1286
1291
  h,
1287
- (s) => {
1288
- s && E();
1292
+ (l) => {
1293
+ l && z();
1289
1294
  },
1290
1295
  { once: !0 }
1291
1296
  ), {
1292
1297
  /** What the host configured, once anything unusable has been dropped and reported. */
1293
- validatedEmail: c,
1294
- validatedCountry: l,
1295
- invoicePreview: y.invoicePreview,
1296
- invoicePreviewByBillingPeriod: y.invoicePreviewByBillingPeriod,
1297
- trialInvoicePreview: y.trialInvoicePreview,
1298
- trialPeriod: y.trialPeriod,
1299
- loadInvoicePreview: V,
1300
- updateInvoicePreviewOnBillingInformationChange: F,
1301
- lastPreviewScheduleId: y.lastPreviewScheduleId,
1302
- paymentMethodOptions: P,
1303
- hasPaymentMethodOptionsError: N,
1304
- retryPaymentMethodOptions: E,
1305
- isPaymentMethodsPending: x,
1306
- isInvoicePreviewPending: y.isPending,
1307
- subscription: u,
1308
- checkoutForm: p,
1309
- authorizationContext: T,
1310
- isPaid: g,
1311
- amount: q,
1312
- saveFormStateForRedirect: G
1298
+ validatedEmail: u,
1299
+ validatedCountry: r,
1300
+ invoicePreview: g.invoicePreview,
1301
+ invoicePreviewByBillingPeriod: g.invoicePreviewByBillingPeriod,
1302
+ trialInvoicePreview: g.trialInvoicePreview,
1303
+ trialPeriod: g.trialPeriod,
1304
+ loadInvoicePreview: A,
1305
+ updateInvoicePreviewOnBillingInformationChange: E,
1306
+ lastPreviewScheduleId: g.lastPreviewScheduleId,
1307
+ paymentMethodOptions: C,
1308
+ hasPaymentMethodOptionsError: H,
1309
+ retryPaymentMethodOptions: z,
1310
+ isPaymentMethodsPending: L,
1311
+ isInvoicePreviewPending: g.isPending,
1312
+ subscription: d,
1313
+ checkoutForm: m,
1314
+ authorizationContext: S,
1315
+ isPaid: s,
1316
+ amount: X,
1317
+ saveFormStateForRedirect: de
1313
1318
  };
1314
1319
  }
1315
- function Un({
1320
+ function Yn({
1316
1321
  checkoutForm: e,
1317
1322
  updateInvoicePreviewOnBillingInformationChange: i,
1318
1323
  formatErrorMessage: n,
1319
- onInvalidPromotionCode: o,
1320
- onApplyError: a
1324
+ onInvalidPromotionCode: a,
1325
+ onApplyError: o
1321
1326
  }) {
1322
- const l = Me(), c = Y(!1), g = Y(null), u = (P, m) => {
1323
- g.value = n ? n({ action: P, error: m }) : P === "apply" ? "Promotion code could not be applied. Please try again." : "Promotion code could not be removed. Please try again.";
1324
- }, I = (P) => Vn(P) && P.field === "promotion_codes", y = async (P) => {
1325
- const m = P == null ? void 0 : P.trim();
1326
- if (m) {
1327
- g.value = null, e.form.value.promotionCode = m, c.value = !0;
1327
+ const r = Ae(), u = Y(!1), s = Y(null), d = (C, f) => {
1328
+ s.value = n ? n({ action: C, error: f }) : C === "apply" ? "Promotion code could not be applied. Please try again." : "Promotion code could not be removed. Please try again.";
1329
+ }, I = (C) => Kn(C) && C.field === "promotion_codes", g = async (C) => {
1330
+ const f = C == null ? void 0 : C.trim();
1331
+ if (f) {
1332
+ s.value = null, e.form.value.promotionCode = f, u.value = !0;
1328
1333
  try {
1329
1334
  await i({
1330
- promotionCode: m
1335
+ promotionCode: f
1331
1336
  });
1332
- } catch (x) {
1333
- l.capture(x, {
1337
+ } catch (L) {
1338
+ r.capture(L, {
1334
1339
  code: "PROMOTION_CODE_APPLY_FAILED",
1335
1340
  message: "Failed to apply promotion code"
1336
- }), u("apply", x), a == null || a(), I(x) && (o == null || o()), await h({ suppressError: !0, preserveErrorMessage: !0 });
1341
+ }), d("apply", L), o == null || o(), I(L) && (a == null || a()), await h({ suppressError: !0, preserveErrorMessage: !0 });
1337
1342
  } finally {
1338
- c.value = !1;
1343
+ u.value = !1;
1339
1344
  }
1340
1345
  }
1341
1346
  }, h = async ({
1342
- suppressError: P = !1,
1343
- preserveErrorMessage: m = !1
1347
+ suppressError: C = !1,
1348
+ preserveErrorMessage: f = !1
1344
1349
  } = {}) => {
1345
- m || (g.value = null), delete e.form.value.promotionCode, c.value = !0;
1350
+ f || (s.value = null), delete e.form.value.promotionCode, u.value = !0;
1346
1351
  try {
1347
1352
  await i({});
1348
- } catch (x) {
1349
- l.capture(x, {
1353
+ } catch (L) {
1354
+ r.capture(L, {
1350
1355
  code: "PROMOTION_CODE_REMOVE_FAILED",
1351
1356
  message: "Failed to remove promotion code"
1352
- }), P || u("remove", x);
1357
+ }), C || d("remove", L);
1353
1358
  } finally {
1354
- c.value = !1;
1359
+ u.value = !1;
1355
1360
  }
1356
1361
  };
1357
1362
  return {
1358
- applyPromotionCode: y,
1363
+ applyPromotionCode: g,
1359
1364
  removePromotionCode: h,
1360
- isPromotionCodePending: c,
1361
- promotionCodeErrorMessage: g
1365
+ isPromotionCodePending: u,
1366
+ promotionCodeErrorMessage: s
1362
1367
  };
1363
1368
  }
1364
- function Vn(e) {
1369
+ function Kn(e) {
1365
1370
  return typeof e == "object" && e !== null && "field" in e;
1366
1371
  }
1367
- function Fn({
1372
+ function Hn({
1368
1373
  subscription: e,
1369
1374
  promotionCode: i,
1370
1375
  appliedPromotionCode: n,
1371
- applyPromotionCode: o
1376
+ applyPromotionCode: a
1372
1377
  }) {
1373
- Se(
1378
+ Oe(
1374
1379
  e,
1375
- (a) => {
1376
- a && i && (n.value = i, o(i));
1380
+ (o) => {
1381
+ o && i && (n.value = i, a(i));
1377
1382
  },
1378
1383
  { once: !0 }
1379
1384
  );
1380
1385
  }
1381
- const Gn = { class: "flex items-center gap-2" }, Yn = /* @__PURE__ */ ce({
1386
+ const Qn = { class: "flex items-center gap-2" }, Zn = /* @__PURE__ */ se({
1382
1387
  __name: "TaxIDCheckNotice",
1383
1388
  props: {
1384
1389
  taxIdValidationResult: { type: Object }
1385
1390
  },
1386
1391
  setup(e) {
1387
- const i = e, { formatMessage: n } = ve(), o = M(() => i.taxIdValidationResult.valid === "VALID"), a = M(() => o.value ? n({
1392
+ const i = e, { formatMessage: n } = he(), a = _(() => i.taxIdValidationResult.valid === "VALID"), o = _(() => a.value ? n({
1388
1393
  defaultMessage: "VAT number is valid.",
1389
1394
  id: "tax_check.valid_vat_number",
1390
1395
  description: "The message shown when the VAT number is valid"
@@ -1393,15 +1398,15 @@ const Gn = { class: "flex items-center gap-2" }, Yn = /* @__PURE__ */ ce({
1393
1398
  id: "tax_check.invalid_vat_number",
1394
1399
  description: "The message shown when the VAT number is invalid"
1395
1400
  }));
1396
- return (l, c) => (d(), S(t(Fi), {
1397
- type: o.value ? "success" : "danger",
1401
+ return (r, u) => (p(), O(t(Hi), {
1402
+ type: a.value ? "success" : "danger",
1398
1403
  icon: !1
1399
1404
  }, {
1400
1405
  default: b(() => [
1401
- L("div", Gn, [
1402
- _(t(se), { variant: "body-xs" }, {
1406
+ w("div", Qn, [
1407
+ M(t(le), { variant: "body-xs" }, {
1403
1408
  default: b(() => [
1404
- Q($(a.value), 1)
1409
+ K(V(o.value), 1)
1405
1410
  ]),
1406
1411
  _: 1
1407
1412
  })
@@ -1411,46 +1416,46 @@ const Gn = { class: "flex items-center gap-2" }, Yn = /* @__PURE__ */ ce({
1411
1416
  }, 8, ["type"]));
1412
1417
  }
1413
1418
  });
1414
- function Kn(e) {
1415
- const { checkTaxID: i } = Gi(), n = Y(void 0), o = M(() => {
1419
+ function Xn(e) {
1420
+ const { checkTaxID: i } = Qi(), n = Y(void 0), a = _(() => {
1416
1421
  var h;
1417
1422
  return ((h = e.value.companyVatNumber) == null ? void 0 : h.trim()) ?? "";
1418
- }), a = M(() => e.value.companyLegalName ?? ""), l = M(() => e.value.country), c = Y(!1), g = M(() => Ut(l.value ?? "")), u = M(
1419
- () => !!(o.value && a.value && l.value)
1420
- ), I = M(() => g.value && o.value);
1421
- async function y() {
1423
+ }), o = _(() => e.value.companyLegalName ?? ""), r = _(() => e.value.country), u = Y(!1), s = _(() => Ft(r.value ?? "")), d = _(
1424
+ () => !!(a.value && o.value && r.value)
1425
+ ), I = _(() => s.value && a.value);
1426
+ async function g() {
1422
1427
  var h;
1423
- if (!(!u.value || !g.value || !l.value)) {
1424
- c.value = !0;
1428
+ if (!(!d.value || !s.value || !r.value)) {
1429
+ u.value = !0;
1425
1430
  try {
1426
- const P = await i({
1431
+ const C = await i({
1427
1432
  type: "ORGANIZATION",
1428
1433
  organization: {
1429
- legal_name: a.value,
1430
- tax_ids: [{ id: o.value, type: "GENERIC_TAX_ID" }],
1434
+ legal_name: o.value,
1435
+ tax_ids: [{ id: a.value, type: "GENERIC_TAX_ID" }],
1431
1436
  registered_address: {
1432
- country: l.value
1437
+ country: r.value
1433
1438
  }
1434
1439
  }
1435
1440
  });
1436
- (h = P == null ? void 0 : P.data) != null && h.length ? n.value = P.data[0] : n.value = void 0;
1441
+ (h = C == null ? void 0 : C.data) != null && h.length ? n.value = C.data[0] : n.value = void 0;
1437
1442
  } finally {
1438
- c.value = !1;
1443
+ u.value = !1;
1439
1444
  }
1440
1445
  }
1441
1446
  }
1442
1447
  return {
1443
- runTaxIDCheck: y,
1448
+ runTaxIDCheck: g,
1444
1449
  taxIdValidationData: n,
1445
- isTaxIDCheckPending: c,
1446
- isTaxIDCheckEnabled: u,
1450
+ isTaxIDCheckPending: u,
1451
+ isTaxIDCheckEnabled: d,
1447
1452
  showViesCheckNotice: I,
1448
- isSelectedCountryEU: g
1453
+ isSelectedCountryEU: s
1449
1454
  };
1450
1455
  }
1451
- const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1 gap-2" }, Zn = { key: 0 }, Xn = { class: "mt-2 flex flex-col gap-3" }, Wn = { class: "grid grid-cols-3 gap-2" }, qn = { key: 0 }, Jn = { class: "mt-4 grid grid-cols-1 gap-3" }, eo = "checkout-form", to = /* @__PURE__ */ ce({
1456
+ const Wn = { class: "grid grid-cols-1 gap-1" }, qn = { class: "grid grid-cols-1 gap-2" }, Jn = { key: 0 }, eo = { class: "mt-2 flex flex-col gap-3" }, to = { class: "grid grid-cols-3 gap-2" }, io = { key: 0 }, no = { class: "mt-4 grid grid-cols-1 gap-3" }, oo = "checkout-form", ao = /* @__PURE__ */ se({
1452
1457
  __name: "CheckoutForm",
1453
- props: /* @__PURE__ */ bt({
1458
+ props: /* @__PURE__ */ At({
1454
1459
  validation: { type: null },
1455
1460
  initialState: { type: Object },
1456
1461
  readOnlyEmail: { type: String },
@@ -1462,224 +1467,234 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
1462
1467
  modelValue: { required: !0 },
1463
1468
  modelModifiers: {}
1464
1469
  }),
1465
- emits: /* @__PURE__ */ bt(["submit"], ["update:modelValue"]),
1470
+ emits: /* @__PURE__ */ At(["submit"], ["update:modelValue"]),
1466
1471
  setup(e) {
1467
- const i = e, n = Y(!1), o = ci(e, "modelValue"), a = M({
1472
+ const i = (z) => Qe(z), n = e, a = Y(!1), o = di(e, "modelValue"), r = _({
1468
1473
  get: () => o.value.type === "ORGANIZATION",
1469
- set: (v) => {
1470
- o.value.type = v ? "ORGANIZATION" : "INDIVIDUAL";
1474
+ set: (z) => {
1475
+ o.value.type = z ? "ORGANIZATION" : "INDIVIDUAL";
1471
1476
  }
1472
- }), l = M(() => o.value.type === "ORGANIZATION"), c = M({
1477
+ }), u = _(() => o.value.type === "ORGANIZATION"), s = pi({
1478
+ email: Me(o, "email", ge),
1479
+ addressLine1: Me(o, "addressLine1", ge),
1480
+ addressLine2: Me(o, "addressLine2", ge),
1481
+ postalCode: Me(o, "postalCode", ge),
1482
+ city: Me(o, "city", ge),
1483
+ state: Me(o, "state", ge),
1484
+ companyLegalName: Me(o, "companyLegalName", ge),
1485
+ companyVatNumber: Me(o, "companyVatNumber", ge)
1486
+ }), d = _({
1473
1487
  get: () => o.value.country,
1474
- set: (v) => {
1475
- o.value.country = v && Ke(v) ? v : void 0;
1488
+ set: (z) => {
1489
+ const A = ge(z);
1490
+ o.value.country = A !== void 0 && i(A) ? A : void 0;
1476
1491
  }
1477
- }), g = M(() => o.value.country !== "US"), { isTaxIDCheckEnabled: u, isTaxIDCheckPending: I, taxIdValidationData: y, runTaxIDCheck: h } = Kn(o), { $t: P } = ve(), m = Ci(), x = (v) => i.getIsFieldRequired(v) ? "" : " " + P({
1492
+ }), I = _(() => o.value.country !== "US"), { isTaxIDCheckEnabled: g, isTaxIDCheckPending: h, taxIdValidationData: C, runTaxIDCheck: f } = Xn(o), { $t: L } = he(), x = wi(), v = (z) => n.getIsFieldRequired(z) ? "" : " " + L({
1478
1493
  defaultMessage: "(optional)",
1479
1494
  id: "checkout.optional_suffix.label",
1480
1495
  description: "The suffix for optional fields in the checkout form"
1481
- }), k = M(
1482
- () => o.value.country ? Vi(o.value.country) : void 0
1496
+ }), H = _(
1497
+ () => o.value.country ? Ki(o.value.country) : void 0
1483
1498
  );
1484
- return (v, N) => (d(), z("form", {
1485
- id: eo,
1486
- onSubmit: N[12] || (N[12] = Ue((E) => v.$emit("submit", o.value), ["prevent"]))
1499
+ return (z, A) => (p(), $("form", {
1500
+ id: oo,
1501
+ onSubmit: A[12] || (A[12] = Fe((E) => z.$emit("submit", o.value), ["prevent"]))
1487
1502
  }, [
1488
- L("div", Hn, [
1489
- _(t(ge), {
1490
- title: t(m).contactInformationTitle
1503
+ w("div", Wn, [
1504
+ M(t(ye), {
1505
+ title: t(x).contactInformationTitle
1491
1506
  }, {
1492
1507
  default: b(() => [
1493
- L("div", Qn, [
1494
- e.readOnly ? (d(), z(me, { key: 0 }, [
1495
- _(t(se), {
1508
+ w("div", qn, [
1509
+ e.readOnly ? (p(), $(me, { key: 0 }, [
1510
+ M(t(le), {
1496
1511
  variant: "body",
1497
1512
  tag: "span",
1498
1513
  weight: "semibold",
1499
1514
  "no-spacing": ""
1500
1515
  }, {
1501
1516
  default: b(() => [
1502
- Q($(o.value.email), 1)
1517
+ K(V(o.value.email), 1)
1503
1518
  ]),
1504
1519
  _: 1
1505
1520
  }),
1506
- _(t(se), {
1521
+ M(t(le), {
1507
1522
  variant: "body-sm",
1508
1523
  tag: "span",
1509
1524
  color: "subtle",
1510
1525
  "no-spacing": ""
1511
1526
  }, {
1512
1527
  default: b(() => [
1513
- Q($(k.value), 1)
1528
+ K(V(H.value), 1)
1514
1529
  ]),
1515
1530
  _: 1
1516
1531
  })
1517
- ], 64)) : (d(), z(me, { key: 1 }, [
1518
- _(t(ye), {
1519
- modelValue: o.value.email,
1520
- "onUpdate:modelValue": N[0] || (N[0] = (E) => o.value.email = E),
1532
+ ], 64)) : (p(), $(me, { key: 1 }, [
1533
+ M(t(_e), {
1534
+ modelValue: s.email,
1535
+ "onUpdate:modelValue": A[0] || (A[0] = (E) => s.email = E),
1521
1536
  required: "",
1522
1537
  type: "email",
1523
1538
  name: "email",
1524
1539
  disabled: !!e.readOnlyEmail,
1525
- label: t(m).emailLabel,
1526
- placeholder: t(m).emailPlaceholder + x("email"),
1540
+ label: t(x).emailLabel,
1541
+ placeholder: t(x).emailPlaceholder + v("email"),
1527
1542
  error: e.validation.value.email.$errors
1528
1543
  }, null, 8, ["modelValue", "disabled", "label", "placeholder", "error"]),
1529
- _(t(xi), {
1530
- "single-model-value": c.value,
1531
- "onUpdate:singleModelValue": N[3] || (N[3] = (E) => c.value = E),
1544
+ M(t(Si), {
1545
+ "single-model-value": d.value,
1546
+ "onUpdate:singleModelValue": A[3] || (A[3] = (E) => d.value = E),
1532
1547
  required: "",
1533
1548
  name: "country",
1534
- label: t(m).countryLabel + x("country"),
1549
+ label: t(x).countryLabel + v("country"),
1535
1550
  error: e.validation.value.country.$errors
1536
1551
  }, {
1537
1552
  "label-suffix": b(() => [
1538
- !n.value && !e.isBillingInformationMandatory ? (d(), S(t(Pe), {
1553
+ !a.value && !e.isBillingInformationMandatory ? (p(), O(t(Ne), {
1539
1554
  key: 0,
1540
1555
  size: "xs",
1541
1556
  intent: "subtle",
1542
1557
  "icon-prefix": "add",
1543
1558
  class: "py-0.5",
1544
- onClick: N[1] || (N[1] = (E) => n.value = !0)
1559
+ onClick: A[1] || (A[1] = (E) => a.value = !0)
1545
1560
  }, {
1546
1561
  default: b(() => [
1547
- Q($(t(P)({
1562
+ K(V(t(L)({
1548
1563
  defaultMessage: "More billing details",
1549
1564
  description: "Label of the button in the checkout that lets you fill out all billing details",
1550
1565
  id: "checkout.billing_details.add_billing_details_button.label"
1551
1566
  })), 1)
1552
1567
  ]),
1553
1568
  _: 1
1554
- })) : j("", !0),
1555
- n.value && !e.isBillingInformationMandatory ? (d(), S(t(Pe), {
1569
+ })) : U("", !0),
1570
+ a.value && !e.isBillingInformationMandatory ? (p(), O(t(Ne), {
1556
1571
  key: 1,
1557
1572
  size: "sm",
1558
1573
  intent: "subtle",
1559
1574
  "icon-prefix": "close",
1560
1575
  class: "py-0.5",
1561
- onClick: N[2] || (N[2] = (E) => n.value = !1)
1576
+ onClick: A[2] || (A[2] = (E) => a.value = !1)
1562
1577
  }, {
1563
1578
  default: b(() => [
1564
- Q($(t(P)({
1579
+ K(V(t(L)({
1565
1580
  defaultMessage: "Remove billing details",
1566
1581
  id: "checkout.billing_details.remove_billing_details_button.label",
1567
1582
  description: "Label of the button in the checkout that lets you remove the billing details"
1568
1583
  })), 1)
1569
1584
  ]),
1570
1585
  _: 1
1571
- })) : j("", !0)
1586
+ })) : U("", !0)
1572
1587
  ]),
1573
1588
  _: 1
1574
1589
  }, 8, ["single-model-value", "label", "error"])
1575
1590
  ], 64))
1576
1591
  ]),
1577
- _(t(Et), {
1578
- "is-open": n.value || !!e.isBillingInformationMandatory
1592
+ M(t(xt), {
1593
+ "is-open": a.value || !!e.isBillingInformationMandatory
1579
1594
  }, {
1580
1595
  default: b(() => [
1581
- n.value || e.isBillingInformationMandatory ? (d(), z("div", Zn, [
1582
- L("div", Xn, [
1583
- _(t(ye), {
1584
- modelValue: o.value.addressLine1,
1585
- "onUpdate:modelValue": N[4] || (N[4] = (E) => o.value.addressLine1 = E),
1596
+ a.value || e.isBillingInformationMandatory ? (p(), $("div", Jn, [
1597
+ w("div", eo, [
1598
+ M(t(_e), {
1599
+ modelValue: s.addressLine1,
1600
+ "onUpdate:modelValue": A[4] || (A[4] = (E) => s.addressLine1 = E),
1586
1601
  name: "address_line_1",
1587
- label: t(P)({
1602
+ label: t(L)({
1588
1603
  defaultMessage: "Billing address",
1589
1604
  id: "checkout.address.title",
1590
1605
  description: "Address line 1 of the customer address in the checkout form"
1591
1606
  }),
1592
- placeholder: t(P)({
1607
+ placeholder: t(L)({
1593
1608
  defaultMessage: "Address line 1...",
1594
1609
  id: "checkout.address.line1.placeholder",
1595
1610
  description: "Address line 1 of the customer address in the checkout form"
1596
- }) + x("addressLine1"),
1611
+ }) + v("addressLine1"),
1597
1612
  required: "",
1598
1613
  error: e.validation.value.addressLine1.$errors
1599
1614
  }, null, 8, ["modelValue", "label", "placeholder", "error"]),
1600
- _(t(ye), {
1601
- modelValue: o.value.addressLine2,
1602
- "onUpdate:modelValue": N[5] || (N[5] = (E) => o.value.addressLine2 = E),
1615
+ M(t(_e), {
1616
+ modelValue: s.addressLine2,
1617
+ "onUpdate:modelValue": A[5] || (A[5] = (E) => s.addressLine2 = E),
1603
1618
  name: "address_line_2",
1604
- placeholder: t(P)({
1619
+ placeholder: t(L)({
1605
1620
  defaultMessage: "Address line 2...",
1606
1621
  id: "checkout.address.line2.placeholder",
1607
1622
  description: "Address line 2 of the customer address in the checkout form"
1608
- }) + x("addressLine2")
1623
+ }) + v("addressLine2")
1609
1624
  }, null, 8, ["modelValue", "placeholder"]),
1610
- L("div", Wn, [
1611
- _(t(ye), {
1612
- modelValue: o.value.postalCode,
1613
- "onUpdate:modelValue": N[6] || (N[6] = (E) => o.value.postalCode = E),
1625
+ w("div", to, [
1626
+ M(t(_e), {
1627
+ modelValue: s.postalCode,
1628
+ "onUpdate:modelValue": A[6] || (A[6] = (E) => s.postalCode = E),
1614
1629
  name: "postal_code",
1615
- placeholder: t(m).postalCodePlaceholder + x("postalCode"),
1630
+ placeholder: t(x).postalCodePlaceholder + v("postalCode"),
1616
1631
  error: e.validation.value.addressLine1.$errors
1617
1632
  }, null, 8, ["modelValue", "placeholder", "error"]),
1618
- _(t(ye), {
1619
- modelValue: o.value.city,
1620
- "onUpdate:modelValue": N[7] || (N[7] = (E) => o.value.city = E),
1633
+ M(t(_e), {
1634
+ modelValue: s.city,
1635
+ "onUpdate:modelValue": A[7] || (A[7] = (E) => s.city = E),
1621
1636
  name: "city",
1622
- placeholder: t(m).cityPlaceholder + x("city")
1637
+ placeholder: t(x).cityPlaceholder + v("city")
1623
1638
  }, null, 8, ["modelValue", "placeholder"]),
1624
- _(t(ye), {
1625
- modelValue: o.value.state,
1626
- "onUpdate:modelValue": N[8] || (N[8] = (E) => o.value.state = E),
1639
+ M(t(_e), {
1640
+ modelValue: s.state,
1641
+ "onUpdate:modelValue": A[8] || (A[8] = (E) => s.state = E),
1627
1642
  name: "state",
1628
- placeholder: t(m).statePlaceholder + x("state"),
1643
+ placeholder: t(x).statePlaceholder + v("state"),
1629
1644
  error: e.validation.value.state.$errors
1630
1645
  }, null, 8, ["modelValue", "placeholder", "error"])
1631
1646
  ])
1632
1647
  ])
1633
- ])) : j("", !0)
1648
+ ])) : U("", !0)
1634
1649
  ]),
1635
1650
  _: 1
1636
1651
  }, 8, ["is-open"])
1637
1652
  ]),
1638
1653
  _: 1
1639
1654
  }, 8, ["title"]),
1640
- e.readOnly ? j("", !0) : (d(), S(t(ge), { key: 0 }, {
1655
+ e.readOnly ? U("", !0) : (p(), O(t(ye), { key: 0 }, {
1641
1656
  default: b(() => [
1642
- _(Li, {
1643
- modelValue: a.value,
1644
- "onUpdate:modelValue": N[9] || (N[9] = (E) => a.value = E),
1657
+ M(ki, {
1658
+ modelValue: r.value,
1659
+ "onUpdate:modelValue": A[9] || (A[9] = (E) => r.value = E),
1645
1660
  "no-spacing": "",
1646
1661
  class: "!flex"
1647
1662
  }, null, 8, ["modelValue"]),
1648
- _(t(Et), { "is-open": l.value }, {
1663
+ M(t(xt), { "is-open": u.value }, {
1649
1664
  default: b(() => [
1650
- l.value ? (d(), z("div", qn, [
1651
- L("div", Jn, [
1652
- _(t(ye), {
1653
- modelValue: o.value.companyLegalName,
1654
- "onUpdate:modelValue": N[10] || (N[10] = (E) => o.value.companyLegalName = E),
1665
+ u.value ? (p(), $("div", io, [
1666
+ w("div", no, [
1667
+ M(t(_e), {
1668
+ modelValue: s.companyLegalName,
1669
+ "onUpdate:modelValue": A[10] || (A[10] = (E) => s.companyLegalName = E),
1655
1670
  required: "",
1656
1671
  name: "legal_name",
1657
- label: t(m).legalNameLabel,
1658
- placeholder: t(m).legalNamePlaceholder
1672
+ label: t(x).legalNameLabel,
1673
+ placeholder: t(x).legalNamePlaceholder
1659
1674
  }, null, 8, ["modelValue", "label", "placeholder"]),
1660
- g.value ? (d(), S(t(ye), {
1675
+ I.value ? (p(), O(t(_e), {
1661
1676
  key: 0,
1662
- modelValue: o.value.companyVatNumber,
1663
- "onUpdate:modelValue": N[11] || (N[11] = (E) => o.value.companyVatNumber = E),
1677
+ modelValue: s.companyVatNumber,
1678
+ "onUpdate:modelValue": A[11] || (A[11] = (E) => s.companyVatNumber = E),
1664
1679
  name: "vat_number",
1665
1680
  "input-class": "focus:outline-none focus:ring-0",
1666
- label: t(m).vatNumberLabel,
1667
- placeholder: t(m).vatNumberPlaceholder,
1681
+ label: t(x).vatNumberLabel,
1682
+ placeholder: t(x).vatNumberPlaceholder,
1668
1683
  error: e.validation.value.companyVatNumber.$errors,
1669
1684
  "suffix-class": "px-2 border-l-0"
1670
- }, Fe({ _: 2 }, [
1671
- t(Ut)(o.value.country ?? "") ? {
1685
+ }, Ye({ _: 2 }, [
1686
+ t(Ft)(o.value.country ?? "") ? {
1672
1687
  name: "suffix",
1673
1688
  fn: b(() => [
1674
- _(t(Pe), {
1689
+ M(t(Ne), {
1675
1690
  type: "button",
1676
1691
  size: "sm",
1677
1692
  intent: "secondary",
1678
- disabled: !t(u) || t(I) || e.validation.value.companyVatNumber.$invalid,
1679
- onClick: t(h)
1693
+ disabled: !t(g) || t(h) || e.validation.value.companyVatNumber.$invalid,
1694
+ onClick: t(f)
1680
1695
  }, {
1681
1696
  default: b(() => [
1682
- Q($(t(P)({
1697
+ K(V(t(L)({
1683
1698
  defaultMessage: "Check",
1684
1699
  id: "checkout.vat_number.check_button.label",
1685
1700
  description: "The label for the check button in the checkout form"
@@ -1690,15 +1705,15 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
1690
1705
  ]),
1691
1706
  key: "0"
1692
1707
  } : void 0
1693
- ]), 1032, ["modelValue", "label", "placeholder", "error"])) : j("", !0),
1694
- t(y) ? (d(), z("div", {
1708
+ ]), 1032, ["modelValue", "label", "placeholder", "error"])) : U("", !0),
1709
+ t(C) ? (p(), $("div", {
1695
1710
  key: 1,
1696
- class: he({ "opacity-75": t(I) })
1711
+ class: Ie({ "opacity-75": t(h) })
1697
1712
  }, [
1698
- _(Yn, { "tax-id-validation-result": t(y) }, null, 8, ["tax-id-validation-result"])
1699
- ], 2)) : j("", !0)
1713
+ M(Zn, { "tax-id-validation-result": t(C) }, null, 8, ["tax-id-validation-result"])
1714
+ ], 2)) : U("", !0)
1700
1715
  ])
1701
- ])) : j("", !0)
1716
+ ])) : U("", !0)
1702
1717
  ]),
1703
1718
  _: 1
1704
1719
  }, 8, ["is-open"])
@@ -1708,10 +1723,10 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
1708
1723
  ])
1709
1724
  ], 32));
1710
1725
  }
1711
- }), io = {
1726
+ }), ro = {
1712
1727
  key: 0,
1713
1728
  class: "flex items-center"
1714
- }, no = ["innerHTML"], oo = ["innerHTML"], ao = /* @__PURE__ */ ce({
1729
+ }, lo = ["innerHTML"], so = ["innerHTML"], co = /* @__PURE__ */ se({
1715
1730
  __name: "CheckoutTitle",
1716
1731
  props: {
1717
1732
  trialPeriod: { type: Object },
@@ -1723,36 +1738,36 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
1723
1738
  subscriptionStartDate: { type: Date }
1724
1739
  },
1725
1740
  setup(e) {
1726
- const { $t: i } = ve();
1727
- return (n, o) => (d(), z("div", null, [
1728
- L("div", null, [
1729
- _(t(se), {
1741
+ const { $t: i } = he();
1742
+ return (n, a) => (p(), $("div", null, [
1743
+ w("div", null, [
1744
+ M(t(le), {
1730
1745
  variant: "heading-1",
1731
1746
  class: "inline-block"
1732
1747
  }, {
1733
1748
  default: b(() => [
1734
- Q($(e.trialStartDate ? e.subscriptionName : t(i)({
1749
+ K(V(e.trialStartDate ? e.subscriptionName : t(i)({
1735
1750
  defaultMessage: "Pay and subscribe",
1736
1751
  id: "checkout.page_title",
1737
1752
  description: "The title of the checkout page"
1738
- })) + $(" "), 1),
1739
- e.trialPeriod ? (d(), S(t(Mi), {
1753
+ })) + V(" "), 1),
1754
+ e.trialPeriod ? (p(), O(t(Ai), {
1740
1755
  key: 0,
1741
1756
  "trial-period": e.trialPeriod,
1742
1757
  size: "lg",
1743
1758
  class: "-translate-y-0.5"
1744
- }, null, 8, ["trial-period"])) : j("", !0)
1759
+ }, null, 8, ["trial-period"])) : U("", !0)
1745
1760
  ]),
1746
1761
  _: 1
1747
1762
  })
1748
1763
  ]),
1749
- _(t(se), {
1764
+ M(t(le), {
1750
1765
  variant: "body-sm",
1751
1766
  color: "subtle",
1752
1767
  "no-spacing": ""
1753
1768
  }, {
1754
1769
  default: b(() => [
1755
- e.countryCode ? (d(), z("span", {
1770
+ e.countryCode ? (p(), $("span", {
1756
1771
  key: 1,
1757
1772
  innerHTML: e.trialStartDate ? t(i)(
1758
1773
  {
@@ -1761,15 +1776,15 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
1761
1776
  description: "The description of the trial period"
1762
1777
  },
1763
1778
  {
1764
- price: t(Ae)(e.amount),
1779
+ price: t(De)(e.amount),
1765
1780
  // @ts-expect-error formatjs does not support this type yet
1766
1781
  startDate: e.subscriptionStartDate,
1767
- period_name: t(je)(e.billingPeriod, {
1782
+ period_name: t($e)(e.billingPeriod, {
1768
1783
  short: !0,
1769
1784
  hideValueForExactPeriods: !0
1770
1785
  }),
1771
1786
  // @ts-ignore
1772
- strong: (a) => `<strong>${a}</strong>`
1787
+ strong: (o) => `<strong>${o}</strong>`
1773
1788
  }
1774
1789
  ) : t(i)(
1775
1790
  {
@@ -1778,23 +1793,23 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
1778
1793
  description: "The description of the subscription"
1779
1794
  },
1780
1795
  {
1781
- price: t(Ae)(e.amount),
1782
- period_name: t(je)(e.billingPeriod, {
1796
+ price: t(De)(e.amount),
1797
+ period_name: t($e)(e.billingPeriod, {
1783
1798
  short: !0,
1784
1799
  hideValueForExactPeriods: !0
1785
1800
  }),
1786
1801
  // @ts-ignore
1787
- strong: (a) => `<strong>${a}</strong>`
1802
+ strong: (o) => `<strong>${o}</strong>`
1788
1803
  }
1789
1804
  )
1790
- }, null, 8, oo)) : (d(), z("span", io, [
1791
- _(t(Qi), { "is-dark-mode": "" }, {
1805
+ }, null, 8, so)) : (p(), $("span", ro, [
1806
+ M(t(qi), { "is-dark-mode": "" }, {
1792
1807
  tooltip: b(() => [
1793
- _(t(Zi), null, {
1808
+ M(t(Ji), null, {
1794
1809
  default: b(() => [
1795
- _(t(Xi), null, {
1810
+ M(t(en), null, {
1796
1811
  default: b(() => [
1797
- Q($(t(i)({
1812
+ K(V(t(i)({
1798
1813
  defaultMessage: "Will be determined by billing information",
1799
1814
  description: "Tooltip content for the invoice preview when taxes are not determined by billing information",
1800
1815
  id: "invoice_preview.taxes_not_determined_by_billing_information_tooltip"
@@ -1807,7 +1822,7 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
1807
1822
  })
1808
1823
  ]),
1809
1824
  default: b(() => [
1810
- _(t(Yi), {
1825
+ M(t(Zi), {
1811
1826
  "width-class": "w-10",
1812
1827
  "height-class": "h-4",
1813
1828
  shade: "darker",
@@ -1816,7 +1831,7 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
1816
1831
  ]),
1817
1832
  _: 1
1818
1833
  }),
1819
- L("span", {
1834
+ w("span", {
1820
1835
  innerHTML: e.trialStartDate ? t(i)(
1821
1836
  {
1822
1837
  defaultMessage: "per {period_name} starting, {startDate, date, long}",
@@ -1826,7 +1841,7 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
1826
1841
  {
1827
1842
  // @ts-expect-error formatjs does not support this type yet
1828
1843
  startDate: e.subscriptionStartDate,
1829
- period_name: t(je)(e.billingPeriod, {
1844
+ period_name: t($e)(e.billingPeriod, {
1830
1845
  short: !0,
1831
1846
  hideValueForExactPeriods: !0
1832
1847
  })
@@ -1838,44 +1853,44 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
1838
1853
  description: "The description of the subscription, while the price is still being determined"
1839
1854
  },
1840
1855
  {
1841
- period_name: t(je)(e.billingPeriod, {
1856
+ period_name: t($e)(e.billingPeriod, {
1842
1857
  short: !0,
1843
1858
  hideValueForExactPeriods: !0
1844
1859
  })
1845
1860
  }
1846
1861
  )
1847
- }, null, 8, no)
1862
+ }, null, 8, lo)
1848
1863
  ]))
1849
1864
  ]),
1850
1865
  _: 1
1851
1866
  })
1852
1867
  ]));
1853
1868
  }
1854
- }), ro = (e) => {
1869
+ }), uo = (e) => {
1855
1870
  var i;
1856
1871
  return ((i = e.periods) == null ? void 0 : i.some(
1857
1872
  (n) => n.groups.some(
1858
- (o) => {
1859
- var a;
1860
- return (a = o.lines) == null ? void 0 : a.some(
1861
- (l) => l.product_items.some(
1862
- (c) => c.model_type === "USAGE_BASED"
1873
+ (a) => {
1874
+ var o;
1875
+ return (o = a.lines) == null ? void 0 : o.some(
1876
+ (r) => r.product_items.some(
1877
+ (u) => u.model_type === "USAGE_BASED"
1863
1878
  )
1864
1879
  );
1865
1880
  }
1866
1881
  )
1867
1882
  )) ?? !1;
1868
- }, lo = { class: "flex min-h-96 w-full items-center justify-center" }, so = { class: "max-w-sm" }, co = /* @__PURE__ */ ce({
1883
+ }, po = { class: "flex min-h-96 w-full items-center justify-center" }, mo = { class: "max-w-sm" }, go = /* @__PURE__ */ se({
1869
1884
  __name: "CheckoutNotAvailable",
1870
1885
  setup(e) {
1871
- const { $t: i } = ve(), n = () => {
1886
+ const { $t: i } = he(), n = () => {
1872
1887
  window.location.reload();
1873
1888
  };
1874
- return (o, a) => (d(), z("div", lo, [
1875
- L("div", so, [
1876
- _(t(se), { variant: "heading-1" }, {
1889
+ return (a, o) => (p(), $("div", po, [
1890
+ w("div", mo, [
1891
+ M(t(le), { variant: "heading-1" }, {
1877
1892
  default: b(() => [
1878
- Q($(t(i)({
1893
+ K(V(t(i)({
1879
1894
  defaultMessage: "Checkout not available",
1880
1895
  id: "checkout.not_available.title",
1881
1896
  description: "The title of the checkout not available page"
@@ -1883,26 +1898,26 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
1883
1898
  ]),
1884
1899
  _: 1
1885
1900
  }),
1886
- _(t(se), {
1901
+ M(t(le), {
1887
1902
  variant: "body-sm",
1888
1903
  color: "subtle"
1889
1904
  }, {
1890
1905
  default: b(() => [
1891
- Q($(t(i)({
1906
+ K(V(t(i)({
1892
1907
  defaultMessage: "The checkout is currently not available.",
1893
1908
  id: "checkout.not_available.description",
1894
1909
  description: "The description of the checkout not available page"
1895
1910
  })) + " ", 1),
1896
- L("a", {
1911
+ w("a", {
1897
1912
  href: "#",
1898
1913
  class: "text-primary-900 hover:underline",
1899
- onClick: Ue(n, ["prevent"])
1900
- }, $(t(i)({
1914
+ onClick: Fe(n, ["prevent"])
1915
+ }, V(t(i)({
1901
1916
  defaultMessage: "Reload",
1902
1917
  id: "checkout.not_available.reload_button",
1903
1918
  description: "The label of the reload button"
1904
1919
  })), 1),
1905
- Q(" " + $(t(i)({
1920
+ K(" " + V(t(i)({
1906
1921
  defaultMessage: "this page to try again, or contact customer support.",
1907
1922
  id: "checkout.not_available.contact_support_message",
1908
1923
  description: "The message shown when the user wants to contact customer support"
@@ -1913,12 +1928,12 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
1913
1928
  ])
1914
1929
  ]));
1915
1930
  }
1916
- }), uo = /* @__PURE__ */ ce({
1931
+ }), yo = /* @__PURE__ */ se({
1917
1932
  __name: "SubscriptionPaymentCompletedCard",
1918
1933
  emits: ["continue-to-merchant"],
1919
1934
  setup(e) {
1920
- const { $t: i } = ve();
1921
- return (n, o) => (d(), S(Wi, {
1935
+ const { $t: i } = he();
1936
+ return (n, a) => (p(), O(tn, {
1922
1937
  status: "success",
1923
1938
  title: t(i)({
1924
1939
  defaultMessage: "Payment successful",
@@ -1927,13 +1942,13 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
1927
1942
  })
1928
1943
  }, {
1929
1944
  default: b(() => [
1930
- _(t(se), {
1945
+ M(t(le), {
1931
1946
  variant: "body-xs",
1932
1947
  color: "subtle",
1933
1948
  tag: "span"
1934
1949
  }, {
1935
1950
  default: b(() => [
1936
- Q($(t(i)({
1951
+ K(V(t(i)({
1937
1952
  defaultMessage: "Thank you for subscribing.",
1938
1953
  id: "subscription_payment_completed_card.thank_you_for_subscribing",
1939
1954
  description: "The text shown after a successful message before a redirect"
@@ -1945,48 +1960,48 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
1945
1960
  _: 1
1946
1961
  }, 8, ["title"]));
1947
1962
  }
1948
- }), po = { class: "flex items-start" }, mo = { class: "flex grow flex-col" }, go = { class: "flex items-center gap-1" }, yo = { class: "ml-4 flex items-center self-center" }, vo = /* @__PURE__ */ ce({
1963
+ }), vo = { class: "flex items-start" }, fo = { class: "flex grow flex-col" }, _o = { class: "flex items-center gap-1" }, ho = { class: "ml-4 flex items-center self-center" }, Mo = /* @__PURE__ */ se({
1949
1964
  __name: "PricingGroupContent",
1950
1965
  props: {
1951
1966
  name: { type: String },
1952
1967
  description: { type: String }
1953
1968
  },
1954
1969
  setup(e) {
1955
- return (i, n) => (d(), z("div", po, [
1956
- L("div", mo, [
1957
- L("div", go, [
1958
- _(t(se), {
1970
+ return (i, n) => (p(), $("div", vo, [
1971
+ w("div", fo, [
1972
+ w("div", _o, [
1973
+ M(t(le), {
1959
1974
  tag: "span",
1960
1975
  variant: "body-sm",
1961
1976
  weight: "semibold"
1962
1977
  }, {
1963
1978
  default: b(() => [
1964
- Q($(e.name), 1)
1979
+ K(V(e.name), 1)
1965
1980
  ]),
1966
1981
  _: 1
1967
1982
  }),
1968
- Je(i.$slots, "badge")
1983
+ tt(i.$slots, "badge")
1969
1984
  ]),
1970
- _(t(se), {
1985
+ M(t(le), {
1971
1986
  tag: "span",
1972
1987
  variant: "body-xs",
1973
1988
  color: "subtle"
1974
1989
  }, {
1975
1990
  default: b(() => [
1976
- Q($(e.description), 1)
1991
+ K(V(e.description), 1)
1977
1992
  ]),
1978
1993
  _: 1
1979
1994
  })
1980
1995
  ]),
1981
- L("div", yo, [
1982
- Je(i.$slots, "default")
1996
+ w("div", ho, [
1997
+ tt(i.$slots, "default")
1983
1998
  ])
1984
1999
  ]));
1985
2000
  }
1986
- }), fo = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, _o = { class: "px-3 py-2" }, ho = { class: "sv-order-summary__billing-period flex flex-col gap-3" }, Mo = { class: "px-3 py-2" }, bo = {
2001
+ }), bo = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Io = { class: "px-3 py-2" }, Ao = { class: "sv-order-summary__billing-period flex flex-col gap-3" }, Po = { class: "px-3 py-2" }, Do = {
1987
2002
  key: 3,
1988
2003
  class: "sv-order-summary__items"
1989
- }, kt = /* @__PURE__ */ ce({
2004
+ }, zt = /* @__PURE__ */ se({
1990
2005
  __name: "OrderSummary",
1991
2006
  props: {
1992
2007
  subscription: { type: Object },
@@ -2006,209 +2021,214 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
2006
2021
  },
2007
2022
  emits: ["billing-period-change"],
2008
2023
  setup(e, { emit: i }) {
2009
- const n = e, o = i, { $t: a } = ve(), { map: l, formatTimePeriod: c } = jt(), { isMobileViewport: g } = Bt(), u = M(() => g.value ? "sm" : "xs"), I = (r) => `${r.type}:${r.value}`, y = ["DAY", "WEEK", "MONTH", "YEAR"], h = (r) => y.includes(r), P = (r) => {
2010
- if (!r)
2024
+ const n = e, a = i, { $t: o } = he(), { map: r, formatTimePeriod: u } = $t(), { isMobileViewport: s } = Vt(), d = _(() => s.value ? "sm" : "xs"), I = (c) => `${c.type}:${c.value}`, g = ["DAY", "WEEK", "MONTH", "YEAR"], h = (c) => g.includes(c), C = (c) => {
2025
+ if (!c)
2011
2026
  return;
2012
- const [A, f] = r.split(":"), C = Number(f);
2013
- if (!(!C || !h(A)))
2014
- return { type: A, value: C };
2015
- }, m = M({
2027
+ const [y, D] = c.split(":"), T = Number(D);
2028
+ if (!(!T || !h(y)))
2029
+ return { type: y, value: T };
2030
+ }, f = _({
2016
2031
  get: () => {
2017
- const r = n.subscription.billing_period;
2018
- return r ? `${r.type}:${r.value}` : void 0;
2032
+ const c = n.subscription.billing_period;
2033
+ return c ? `${c.type}:${c.value}` : void 0;
2019
2034
  },
2020
- set: (r) => {
2021
- if (!r) return;
2022
- const [A, f] = r.split(":"), C = Number(f);
2023
- C && h(A) && o("billing-period-change", { type: A, value: C });
2035
+ set: (c) => {
2036
+ if (!c) return;
2037
+ const [y, D] = c.split(":"), T = Number(D);
2038
+ T && h(y) && a("billing-period-change", { type: y, value: T });
2024
2039
  }
2025
- }), x = (r) => {
2026
- var C, R, K, H;
2027
- const A = (H = (K = (R = (C = n.invoicePreviewByBillingPeriod) == null ? void 0 : C[I(r)]) == null ? void 0 : R.periods) == null ? void 0 : K[0]) == null ? void 0 : H.amount_including_tax;
2028
- if (!A)
2040
+ }), L = _({
2041
+ get: () => f.value,
2042
+ set: (c) => {
2043
+ f.value = ge(c);
2044
+ }
2045
+ }), x = (c) => {
2046
+ var T, R, Q, F;
2047
+ const y = (F = (Q = (R = (T = n.invoicePreviewByBillingPeriod) == null ? void 0 : T[I(c)]) == null ? void 0 : R.periods) == null ? void 0 : Q[0]) == null ? void 0 : F.amount_including_tax;
2048
+ if (!y)
2029
2049
  return;
2030
- const f = r.type === "MONTH" && r.value === 3 ? a({
2050
+ const D = c.type === "MONTH" && c.value === 3 ? o({
2031
2051
  defaultMessage: "/quarter",
2032
2052
  id: "checkout.order_summary_block.billing_period.per_quarter",
2033
2053
  description: "Period label for quarterly billing"
2034
- }) : a(
2054
+ }) : o(
2035
2055
  {
2036
2056
  defaultMessage: "/{period}",
2037
2057
  id: "checkout.order_summary_block.billing_period.per_label",
2038
2058
  description: "Period label for billing cycles"
2039
2059
  },
2040
2060
  {
2041
- period: c(r, {
2061
+ period: u(c, {
2042
2062
  prefix: !1,
2043
2063
  hideValueForExactPeriods: !0
2044
2064
  })
2045
2065
  }
2046
2066
  );
2047
- return a(
2067
+ return o(
2048
2068
  {
2049
2069
  defaultMessage: "{amount}{period}",
2050
2070
  id: "checkout.order_summary_block.billing_period.sub_label",
2051
2071
  description: "Billing period option sublabel showing price per period"
2052
2072
  },
2053
2073
  {
2054
- amount: Ae(A),
2055
- period: f
2074
+ amount: De(y),
2075
+ period: D
2056
2076
  }
2057
2077
  );
2058
- }, k = (r) => {
2059
- var A, f, C, R;
2060
- return (R = (C = (f = (A = n.invoicePreviewByBillingPeriod) == null ? void 0 : A[I(r)]) == null ? void 0 : f.periods) == null ? void 0 : C[0]) == null ? void 0 : R.amount_including_tax;
2061
- }, v = (r) => Number(r.quantity), N = (r, A) => {
2062
- if (!A)
2078
+ }, v = (c) => {
2079
+ var y, D, T, R;
2080
+ return (R = (T = (D = (y = n.invoicePreviewByBillingPeriod) == null ? void 0 : y[I(c)]) == null ? void 0 : D.periods) == null ? void 0 : T[0]) == null ? void 0 : R.amount_including_tax;
2081
+ }, H = (c) => Number(c.quantity), z = (c, y) => {
2082
+ if (!y)
2063
2083
  return;
2064
- const C = {
2084
+ const T = {
2065
2085
  DAY: 365,
2066
2086
  WEEK: 52,
2067
2087
  MONTH: 12,
2068
2088
  YEAR: 1
2069
- }[r.type] / Math.max(r.value ?? 1, 1), R = v(A) * C;
2089
+ }[c.type] / Math.max(c.value ?? 1, 1), R = H(y) * T;
2070
2090
  if (Number.isFinite(R))
2071
2091
  return {
2072
2092
  quantity: R.toFixed(2),
2073
- currency: A.currency
2093
+ currency: y.currency
2074
2094
  };
2075
- }, E = (r, A) => {
2076
- if (!r || !A)
2095
+ }, A = (c, y) => {
2096
+ if (!c || !y)
2077
2097
  return;
2078
- const f = v(r) - v(A);
2079
- if (!(!Number.isFinite(f) || f <= 0))
2098
+ const D = H(c) - H(y);
2099
+ if (!(!Number.isFinite(D) || D <= 0))
2080
2100
  return {
2081
- quantity: f.toFixed(2),
2082
- currency: r.currency
2101
+ quantity: D.toFixed(2),
2102
+ currency: c.currency
2083
2103
  };
2084
- }, V = (r) => {
2085
- if (!r)
2104
+ }, E = (c) => {
2105
+ if (!c)
2086
2106
  return;
2087
- const A = a(
2107
+ const y = o(
2088
2108
  {
2089
2109
  defaultMessage: "Save {amount}",
2090
2110
  id: "checkout.order_summary_block.billing_period.save_badge.prefix",
2091
2111
  description: "First line for the savings badge label"
2092
2112
  },
2093
- { amount: Ae(r) }
2094
- ), f = a({
2113
+ { amount: De(c) }
2114
+ ), D = o({
2095
2115
  defaultMessage: "/year",
2096
2116
  id: "checkout.order_summary_block.billing_period.save_badge.suffix",
2097
2117
  description: "Second line for the savings badge label"
2098
2118
  });
2099
- return `${A}${f}`;
2100
- }, F = M(() => {
2101
- var te, ie, ae;
2102
- const r = Ee({
2119
+ return `${y}${D}`;
2120
+ }, m = _(() => {
2121
+ var te, ie, oe;
2122
+ const c = xe({
2103
2123
  pricingPlanScheduleInfos: n.subscription.pricing_plan_schedule_infos ?? [],
2104
2124
  type: "DEFAULT"
2105
- }), A = ((ie = (te = r == null ? void 0 : r.pricing_plan_version) == null ? void 0 : te.billing_period_settings) == null ? void 0 : ie.billing_periods) ?? [], f = /* @__PURE__ */ new Map(), C = (U) => {
2106
- U && f.set(I(U), U);
2107
- }, R = (U) => {
2108
- var ne;
2109
- (ne = U == null ? void 0 : U.items) == null || ne.forEach((ee) => {
2110
- var J, re;
2111
- (J = ee.billing_period_configs) == null || J.forEach(
2112
- (ue) => C(ue.billing_period)
2113
- ), (re = ee.pricing_currency_configs) == null || re.forEach((ue) => {
2114
- var de;
2115
- (de = ue.billing_period_configs) == null || de.forEach(
2116
- (fe) => C(fe.billing_period)
2125
+ }), y = ((ie = (te = c == null ? void 0 : c.pricing_plan_version) == null ? void 0 : te.billing_period_settings) == null ? void 0 : ie.billing_periods) ?? [], D = /* @__PURE__ */ new Map(), T = (G) => {
2126
+ G && D.set(I(G), G);
2127
+ }, R = (G) => {
2128
+ var q;
2129
+ (q = G == null ? void 0 : G.items) == null || q.forEach((J) => {
2130
+ var ae, ce;
2131
+ (ae = J.billing_period_configs) == null || ae.forEach(
2132
+ (ue) => T(ue.billing_period)
2133
+ ), (ce = J.pricing_currency_configs) == null || ce.forEach((ue) => {
2134
+ var ve;
2135
+ (ve = ue.billing_period_configs) == null || ve.forEach(
2136
+ (fe) => T(fe.billing_period)
2117
2137
  );
2118
2138
  });
2119
2139
  });
2120
2140
  };
2121
- if ((((ae = r == null ? void 0 : r.pricing_plan_version) == null ? void 0 : ae.pricing_categories) ?? []).forEach((U) => {
2122
- var ne, ee;
2123
- (ne = U.pricings) == null || ne.forEach((J) => R(J)), (ee = U.pricing_groups) == null || ee.forEach(
2124
- (J) => {
2125
- var re;
2126
- return (re = J.pricings) == null ? void 0 : re.forEach((ue) => R(ue));
2141
+ if ((((oe = c == null ? void 0 : c.pricing_plan_version) == null ? void 0 : oe.pricing_categories) ?? []).forEach((G) => {
2142
+ var q, J;
2143
+ (q = G.pricings) == null || q.forEach((ae) => R(ae)), (J = G.pricing_groups) == null || J.forEach(
2144
+ (ae) => {
2145
+ var ce;
2146
+ return (ce = ae.pricings) == null ? void 0 : ce.forEach((ue) => R(ue));
2127
2147
  }
2128
2148
  );
2129
- }), !f.size)
2149
+ }), !D.size)
2130
2150
  return [];
2131
- const H = A.map((U) => f.get(I(U.period))).filter((U) => !!U), Z = new Set(H.map(I)), oe = [...f.values()].filter(
2132
- (U) => !Z.has(I(U))
2151
+ const F = y.map((G) => D.get(I(G.period))).filter((G) => !!G), ne = new Set(F.map(I)), ee = [...D.values()].filter(
2152
+ (G) => !ne.has(I(G))
2133
2153
  );
2134
- return [...H, ...oe];
2135
- }), p = M(() => {
2136
- const r = F.value[F.value.length - 1], A = r ? N(r, k(r)) : void 0;
2137
- return F.value.map((C) => {
2138
- const R = C.type === "MONTH" && C.value === 3 ? a({
2154
+ return [...F, ...ee];
2155
+ }), B = _(() => {
2156
+ const c = m.value[m.value.length - 1], y = c ? z(c, v(c)) : void 0;
2157
+ return m.value.map((T) => {
2158
+ const R = T.type === "MONTH" && T.value === 3 ? o({
2139
2159
  defaultMessage: "Billed quarterly",
2140
2160
  id: "checkout.order_summary_block.billing_period.quarterly",
2141
2161
  description: "Billing period option label for quarterly billing"
2142
- }) : a(
2162
+ }) : o(
2143
2163
  {
2144
2164
  defaultMessage: "Billed {period}",
2145
2165
  id: "checkout.order_summary_block.billing_period.label",
2146
2166
  description: "Billing period option label for the selected period"
2147
2167
  },
2148
- { period: l.value[C.type].full }
2149
- ), K = k(C), H = N(C, K), Z = r && C.type === r.type && C.value === r.value ? void 0 : E(H, A), oe = V(Z);
2168
+ { period: r.value[T.type].full }
2169
+ ), Q = v(T), F = z(T, Q), ne = c && T.type === c.type && T.value === c.value ? void 0 : A(F, y), ee = E(ne);
2150
2170
  return {
2151
2171
  label: R,
2152
- subLabel: x(C),
2153
- labelSuffixComponent: oe ? {
2154
- component: Ct,
2172
+ subLabel: x(T),
2173
+ labelSuffixComponent: ee ? {
2174
+ component: Lt,
2155
2175
  props: {
2156
2176
  color: "primary",
2157
- content: oe,
2158
- size: u.value,
2177
+ content: ee,
2178
+ size: d.value,
2159
2179
  class: "whitespace-nowrap text-left leading-tight"
2160
2180
  }
2161
2181
  } : void 0,
2162
- hidden: m.value === `${C.type}:${C.value}`,
2163
- value: `${C.type}:${C.value}`
2182
+ hidden: f.value === `${T.type}:${T.value}`,
2183
+ value: `${T.type}:${T.value}`
2164
2184
  };
2165
2185
  });
2166
- }), B = M(() => {
2167
- const r = p.value, A = r[0], f = r[r.length - 1];
2186
+ }), S = _(() => {
2187
+ const c = B.value, y = c[0], D = c[c.length - 1];
2168
2188
  return {
2169
- smallestPeriod: A == null ? void 0 : A.value,
2170
- biggestPeriod: f == null ? void 0 : f.value
2189
+ smallestPeriod: y == null ? void 0 : y.value,
2190
+ biggestPeriod: D == null ? void 0 : D.value
2171
2191
  };
2172
- }), T = M(
2173
- () => p.value.find((r) => r.value === B.value.biggestPeriod)
2174
- ), q = M(
2175
- () => p.value.find((r) => r.value === m.value)
2176
- ), G = M(() => {
2177
- var te, ie, ae, U, ne, ee, J, re;
2178
- const r = p.value, A = r[r.length - 1], f = m.value;
2179
- if (!A || !f || f === A.value)
2192
+ }), X = _(
2193
+ () => B.value.find((c) => c.value === S.value.biggestPeriod)
2194
+ ), de = _(
2195
+ () => B.value.find((c) => c.value === f.value)
2196
+ ), l = _(() => {
2197
+ var te, ie, oe, G, q, J, ae, ce;
2198
+ const c = B.value, y = c[c.length - 1], D = f.value;
2199
+ if (!y || !D || D === y.value)
2180
2200
  return "";
2181
- const C = P(A.value);
2182
- if (!C)
2201
+ const T = C(y.value);
2202
+ if (!T)
2183
2203
  return "";
2184
- const R = (U = (ae = (ie = (te = n.invoicePreviewByBillingPeriod) == null ? void 0 : te[A.value]) == null ? void 0 : ie.periods) == null ? void 0 : ae[0]) == null ? void 0 : U.amount_including_tax, K = P(f), H = (re = (J = (ee = (ne = n.invoicePreviewByBillingPeriod) == null ? void 0 : ne[f]) == null ? void 0 : ee.periods) == null ? void 0 : J[0]) == null ? void 0 : re.amount_including_tax;
2185
- if (!K || !H)
2204
+ const R = (G = (oe = (ie = (te = n.invoicePreviewByBillingPeriod) == null ? void 0 : te[y.value]) == null ? void 0 : ie.periods) == null ? void 0 : oe[0]) == null ? void 0 : G.amount_including_tax, Q = C(D), F = (ce = (ae = (J = (q = n.invoicePreviewByBillingPeriod) == null ? void 0 : q[D]) == null ? void 0 : J.periods) == null ? void 0 : ae[0]) == null ? void 0 : ce.amount_including_tax;
2205
+ if (!Q || !F)
2186
2206
  return "";
2187
- const Z = N(K, H), oe = N(C, R);
2188
- return V(E(Z, oe)) ?? "";
2189
- }), s = (r) => {
2190
- const { smallestPeriod: A, biggestPeriod: f } = B.value;
2191
- m.value = r ? f : A;
2207
+ const ne = z(Q, F), ee = z(T, R);
2208
+ return E(A(ne, ee)) ?? "";
2209
+ }), P = (c) => {
2210
+ const { smallestPeriod: y, biggestPeriod: D } = S.value;
2211
+ f.value = c ? D : y;
2192
2212
  };
2193
- return (r, A) => (d(), S(t(ge), {
2213
+ return (c, y) => (p(), O(t(ye), {
2194
2214
  class: "sv-order-summary",
2195
2215
  "no-border": "",
2196
2216
  "no-spacing": "",
2197
2217
  "content-background": "none",
2198
- title: e.noTitle ? void 0 : t(a)({
2218
+ title: e.noTitle ? void 0 : t(o)({
2199
2219
  defaultMessage: "Order summary",
2200
2220
  id: "checkout.order_summary_block.title",
2201
2221
  description: "The title of the order summary block that lists the subscription cost in the checkout"
2202
2222
  })
2203
2223
  }, {
2204
2224
  default: b(() => [
2205
- L("div", fo, [
2206
- _(t(ge), {
2225
+ w("div", bo, [
2226
+ M(t(ye), {
2207
2227
  "no-spacing": "",
2208
2228
  class: "sv-order-summary__subscription"
2209
2229
  }, {
2210
2230
  default: b(() => [
2211
- e.subscription ? (d(), S(en, {
2231
+ e.subscription ? (p(), O(an, {
2212
2232
  key: 0,
2213
2233
  avatar: e.avatar,
2214
2234
  invoice: e.invoice,
@@ -2216,76 +2236,76 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
2216
2236
  "enabled-pricing-ids": e.enabledPricingIds,
2217
2237
  loading: e.isPreviewAndPaymentMethodsPending,
2218
2238
  "trial-period": e.trialPeriod
2219
- }, null, 8, ["avatar", "invoice", "subscription", "enabled-pricing-ids", "loading", "trial-period"])) : j("", !0)
2239
+ }, null, 8, ["avatar", "invoice", "subscription", "enabled-pricing-ids", "loading", "trial-period"])) : U("", !0)
2220
2240
  ]),
2221
2241
  _: 1
2222
2242
  }),
2223
- p.value.length === 2 ? (d(), S(t(ge), {
2243
+ B.value.length === 2 ? (p(), O(t(ye), {
2224
2244
  key: 0,
2225
2245
  "no-spacing": "",
2226
- "content-classes": m.value === B.value.biggestPeriod ? "border-primary-500" : void 0
2246
+ "content-classes": f.value === S.value.biggestPeriod ? "border-primary-500" : void 0
2227
2247
  }, {
2228
2248
  default: b(() => {
2229
- var f;
2249
+ var D;
2230
2250
  return [
2231
- L("div", _o, [
2232
- L("div", ho, [
2233
- T.value ? (d(), S(vo, {
2251
+ w("div", Io, [
2252
+ w("div", Ao, [
2253
+ X.value ? (p(), O(Mo, {
2234
2254
  key: 0,
2235
- name: T.value.label,
2236
- description: ((f = q.value) == null ? void 0 : f.subLabel) ?? ""
2237
- }, Fe({
2255
+ name: X.value.label,
2256
+ description: ((D = de.value) == null ? void 0 : D.subLabel) ?? ""
2257
+ }, Ye({
2238
2258
  default: b(() => [
2239
- _(t(Ni), {
2240
- "model-value": m.value === B.value.biggestPeriod,
2241
- "onUpdate:modelValue": s
2259
+ M(t(xi), {
2260
+ "model-value": f.value === S.value.biggestPeriod,
2261
+ "onUpdate:modelValue": P
2242
2262
  }, null, 8, ["model-value"])
2243
2263
  ]),
2244
2264
  _: 2
2245
2265
  }, [
2246
- G.value ? {
2266
+ l.value ? {
2247
2267
  name: "badge",
2248
2268
  fn: b(() => [
2249
- _(t(Ct), {
2269
+ M(t(Lt), {
2250
2270
  intent: "brand",
2251
- content: G.value,
2252
- size: u.value,
2271
+ content: l.value,
2272
+ size: d.value,
2253
2273
  class: "whitespace-nowrap text-left leading-tight"
2254
2274
  }, null, 8, ["content", "size"])
2255
2275
  ]),
2256
2276
  key: "0"
2257
2277
  } : void 0
2258
- ]), 1032, ["name", "description"])) : j("", !0)
2278
+ ]), 1032, ["name", "description"])) : U("", !0)
2259
2279
  ])
2260
2280
  ])
2261
2281
  ];
2262
2282
  }),
2263
2283
  _: 1
2264
- }, 8, ["content-classes"])) : p.value.length > 2 ? (d(), S(t(qi), {
2284
+ }, 8, ["content-classes"])) : B.value.length > 2 ? (p(), O(t(nn), {
2265
2285
  key: 1,
2266
- "single-model-value": m.value,
2267
- "onUpdate:singleModelValue": A[0] || (A[0] = (f) => m.value = f),
2286
+ "single-model-value": L.value,
2287
+ "onUpdate:singleModelValue": y[0] || (y[0] = (D) => L.value = D),
2268
2288
  class: "sv-order-summary__billing-period",
2269
- options: p.value,
2289
+ options: B.value,
2270
2290
  size: "xl",
2271
2291
  "has-large-dropdown": "",
2272
2292
  "show-sub-label-in-input": "",
2273
2293
  "show-suffix-in-closed-input": ""
2274
- }, null, 8, ["single-model-value", "options"])) : j("", !0),
2275
- e.isUsageBased ? (d(), S(t(ge), {
2294
+ }, null, 8, ["single-model-value", "options"])) : U("", !0),
2295
+ e.isUsageBased ? (p(), O(t(ye), {
2276
2296
  key: 2,
2277
2297
  "no-spacing": "",
2278
2298
  class: "sv-order-summary__usage"
2279
2299
  }, {
2280
2300
  default: b(() => [
2281
- L("div", Mo, [
2282
- _(t(se), {
2301
+ w("div", Po, [
2302
+ M(t(le), {
2283
2303
  "no-spacing": "",
2284
2304
  variant: "body-sm",
2285
2305
  color: "subtle"
2286
2306
  }, {
2287
2307
  default: b(() => [
2288
- Q($(t(a)({
2308
+ K(V(t(o)({
2289
2309
  defaultMessage: "+ Usage",
2290
2310
  id: "checkout.invoice_preview.usage_based_message",
2291
2311
  description: "The message shown for the usage based invoice preview"
@@ -2296,16 +2316,16 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
2296
2316
  ])
2297
2317
  ]),
2298
2318
  _: 1
2299
- })) : j("", !0),
2300
- e.invoice && e.variant !== "products-inline" ? (d(), z("div", bo, [
2301
- _(t(Ki), {
2319
+ })) : U("", !0),
2320
+ e.invoice && e.variant !== "products-inline" ? (p(), $("div", Do, [
2321
+ M(t(Xi), {
2302
2322
  invoice: e.invoice,
2303
- "wrapper-component": t(ge)
2323
+ "wrapper-component": t(ye)
2304
2324
  }, null, 8, ["invoice", "wrapper-component"])
2305
- ])) : j("", !0),
2306
- _(t(ge), { class: "sv-order-summary__totals" }, {
2325
+ ])) : U("", !0),
2326
+ M(t(ye), { class: "sv-order-summary__totals" }, {
2307
2327
  default: b(() => [
2308
- e.invoice ? (d(), S(t(Hi), {
2328
+ e.invoice ? (p(), O(t(Wi), {
2309
2329
  key: 0,
2310
2330
  class: "sv-order-summary__invoice-preview",
2311
2331
  variant: e.variant === "products-inline" ? "default" : "without-products",
@@ -2315,14 +2335,14 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
2315
2335
  collapsible: e.collapsible,
2316
2336
  "is-preview-without-taxes": !e.countryCode,
2317
2337
  "is-customer-facing": ""
2318
- }, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (d(), S(t(se), {
2338
+ }, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (p(), O(t(le), {
2319
2339
  key: 1,
2320
2340
  variant: "body-sm",
2321
2341
  color: "subtle",
2322
2342
  class: "sv-order-summary__empty"
2323
2343
  }, {
2324
2344
  default: b(() => [
2325
- Q($(t(a)({
2345
+ K(V(t(o)({
2326
2346
  defaultMessage: "Please select a country first",
2327
2347
  description: "The message shown for the invoice preview when no country is set",
2328
2348
  id: "checkout.invoice_preview.no_country_selected_message"
@@ -2338,119 +2358,119 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
2338
2358
  _: 1
2339
2359
  }, 8, ["title"]));
2340
2360
  }
2341
- }), Io = { key: 1 }, Ao = { key: 2 }, Po = { key: 3 }, Do = { key: 4 }, No = ["href"], Eo = /* @__PURE__ */ ce({
2361
+ }), No = { key: 1 }, Eo = { key: 2 }, Co = { key: 3 }, xo = { key: 4 }, Lo = ["href"], To = /* @__PURE__ */ se({
2342
2362
  __name: "MarkdownInline",
2343
2363
  props: {
2344
2364
  nodes: { type: Array }
2345
2365
  },
2346
2366
  setup(e) {
2347
2367
  return (i, n) => {
2348
- const o = ui("MarkdownInline", !0);
2349
- return d(!0), z(me, null, zt(e.nodes, (a, l) => (d(), z(me, { key: l }, [
2350
- a.type === "text" ? (d(), z(me, { key: 0 }, [
2351
- Q($(a.value), 1)
2352
- ], 64)) : a.type === "break" ? (d(), z("br", Io)) : a.type === "bold" ? (d(), z("strong", Ao, [
2353
- _(o, {
2354
- nodes: a.children
2368
+ const a = mi("MarkdownInline", !0);
2369
+ return p(!0), $(me, null, Rt(e.nodes, (o, r) => (p(), $(me, { key: r }, [
2370
+ o.type === "text" ? (p(), $(me, { key: 0 }, [
2371
+ K(V(o.value), 1)
2372
+ ], 64)) : o.type === "break" ? (p(), $("br", No)) : o.type === "bold" ? (p(), $("strong", Eo, [
2373
+ M(a, {
2374
+ nodes: o.children
2355
2375
  }, null, 8, ["nodes"])
2356
- ])) : a.type === "italic" ? (d(), z("em", Po, [
2357
- _(o, {
2358
- nodes: a.children
2376
+ ])) : o.type === "italic" ? (p(), $("em", Co, [
2377
+ M(a, {
2378
+ nodes: o.children
2359
2379
  }, null, 8, ["nodes"])
2360
- ])) : a.type === "underline" ? (d(), z("u", Do, [
2361
- _(o, {
2362
- nodes: a.children
2380
+ ])) : o.type === "underline" ? (p(), $("u", xo, [
2381
+ M(a, {
2382
+ nodes: o.children
2363
2383
  }, null, 8, ["nodes"])
2364
- ])) : a.type === "link" ? (d(), z("a", {
2384
+ ])) : o.type === "link" ? (p(), $("a", {
2365
2385
  key: 5,
2366
- href: a.href,
2386
+ href: o.href,
2367
2387
  target: "_blank",
2368
2388
  rel: "noopener noreferrer",
2369
2389
  class: "underline"
2370
2390
  }, [
2371
- _(o, {
2372
- nodes: a.children
2391
+ M(a, {
2392
+ nodes: o.children
2373
2393
  }, null, 8, ["nodes"])
2374
- ], 8, No)) : j("", !0)
2394
+ ], 8, Lo)) : U("", !0)
2375
2395
  ], 64))), 128);
2376
2396
  };
2377
2397
  }
2378
- }), Co = /^<u>([\s\S]*?)<\/u>/i, xo = /^\*\*([\s\S]+?)\*\*/, Lo = /^\*([\s\S]+?)\*/, To = /^_([\s\S]+?)_/, wo = /^\[([^\]]*)\]\(\s*([^)\s]*)\s*\)/, So = /^<([a-z][a-z0-9+.-]*:[^>\s]+)>/i, ko = /\n[ \t]*\n/;
2379
- function we(e) {
2398
+ }), wo = /^<u>([\s\S]*?)<\/u>/i, So = /^\*\*([\s\S]+?)\*\*/, ko = /^\*([\s\S]+?)\*/, Oo = /^_([\s\S]+?)_/, zo = /^\[([^\]]*)\]\(\s*([^)\s]*)\s*\)/, jo = /^<([a-z][a-z0-9+.-]*:[^>\s]+)>/i, Ro = /\n[ \t]*\n/;
2399
+ function ke(e) {
2380
2400
  const i = [];
2381
2401
  let n = "";
2382
- const o = () => {
2402
+ const a = () => {
2383
2403
  n && (i.push({ type: "text", value: n }), n = "");
2384
2404
  };
2385
- let a = 0;
2386
- for (; a < e.length; ) {
2387
- const l = e.slice(a), c = xo.exec(l);
2388
- if (c) {
2389
- o(), i.push({ type: "bold", children: we(c[1]) }), a += c[0].length;
2405
+ let o = 0;
2406
+ for (; o < e.length; ) {
2407
+ const r = e.slice(o), u = So.exec(r);
2408
+ if (u) {
2409
+ a(), i.push({ type: "bold", children: ke(u[1]) }), o += u[0].length;
2390
2410
  continue;
2391
2411
  }
2392
- const g = Lo.exec(l) ?? To.exec(l);
2393
- if (g) {
2394
- o(), i.push({ type: "italic", children: we(g[1]) }), a += g[0].length;
2412
+ const s = ko.exec(r) ?? Oo.exec(r);
2413
+ if (s) {
2414
+ a(), i.push({ type: "italic", children: ke(s[1]) }), o += s[0].length;
2395
2415
  continue;
2396
2416
  }
2397
- const u = Co.exec(l);
2398
- if (u) {
2399
- o(), i.push({ type: "underline", children: we(u[1]) }), a += u[0].length;
2417
+ const d = wo.exec(r);
2418
+ if (d) {
2419
+ a(), i.push({ type: "underline", children: ke(d[1]) }), o += d[0].length;
2400
2420
  continue;
2401
2421
  }
2402
- const I = wo.exec(l);
2422
+ const I = zo.exec(r);
2403
2423
  if (I) {
2404
- o(), i.push(Ot(I[2], we(I[1]))), a += I[0].length;
2424
+ a(), i.push(jt(I[2], ke(I[1]))), o += I[0].length;
2405
2425
  continue;
2406
2426
  }
2407
- const y = So.exec(l);
2408
- if (y) {
2409
- o(), i.push(Ot(y[1], [{ type: "text", value: y[1] }])), a += y[0].length;
2427
+ const g = jo.exec(r);
2428
+ if (g) {
2429
+ a(), i.push(jt(g[1], [{ type: "text", value: g[1] }])), o += g[0].length;
2410
2430
  continue;
2411
2431
  }
2412
- if (e[a] === `
2432
+ if (e[o] === `
2413
2433
  `) {
2414
- o(), i.push({ type: "break" }), a += 1;
2434
+ a(), i.push({ type: "break" }), o += 1;
2415
2435
  continue;
2416
2436
  }
2417
- n += e[a], a += 1;
2437
+ n += e[o], o += 1;
2418
2438
  }
2419
- return o(), i;
2439
+ return a(), i;
2420
2440
  }
2421
- function Ot(e, i) {
2422
- const n = zi(e);
2423
- return n ? { type: "link", href: n, children: i } : { type: "text", value: Xt(i) };
2441
+ function jt(e, i) {
2442
+ const n = Bi(e);
2443
+ return n ? { type: "link", href: n, children: i } : { type: "text", value: qt(i) };
2424
2444
  }
2425
- function Xt(e) {
2426
- return e.map((i) => i.type === "text" ? i.value : i.type === "break" ? " " : Xt(i.children)).join("");
2445
+ function qt(e) {
2446
+ return e.map((i) => i.type === "text" ? i.value : i.type === "break" ? " " : qt(i.children)).join("");
2427
2447
  }
2428
- function Oo(e) {
2429
- return e != null && e.trim() ? e.split(ko).map((i) => i.trim()).filter(Boolean).map((i) => ({ type: "paragraph", children: we(i) })) : [];
2448
+ function $o(e) {
2449
+ return e != null && e.trim() ? e.split(Ro).map((i) => i.trim()).filter(Boolean).map((i) => ({ type: "paragraph", children: ke(i) })) : [];
2430
2450
  }
2431
- const zo = { key: 0 }, jo = /* @__PURE__ */ ce({
2451
+ const Bo = { key: 0 }, Uo = /* @__PURE__ */ se({
2432
2452
  __name: "MarkdownText",
2433
2453
  props: {
2434
2454
  source: { type: [String, null] }
2435
2455
  },
2436
2456
  setup(e) {
2437
- const i = e, n = M(() => Oo(i.source));
2438
- return (o, a) => n.value.length ? (d(), z("div", zo, [
2439
- (d(!0), z(me, null, zt(n.value, (l, c) => (d(), z("p", {
2440
- key: c,
2441
- class: he({ "mt-2": c > 0 })
2457
+ const i = e, n = _(() => $o(i.source));
2458
+ return (a, o) => n.value.length ? (p(), $("div", Bo, [
2459
+ (p(!0), $(me, null, Rt(n.value, (r, u) => (p(), $("p", {
2460
+ key: u,
2461
+ class: Ie({ "mt-2": u > 0 })
2442
2462
  }, [
2443
- _(Eo, {
2444
- nodes: l.children
2463
+ M(To, {
2464
+ nodes: r.children
2445
2465
  }, null, 8, ["nodes"])
2446
2466
  ], 2))), 128))
2447
- ])) : j("", !0);
2467
+ ])) : U("", !0);
2448
2468
  }
2449
2469
  });
2450
- async function Wt(e, i) {
2451
- const { AdyenCheckout: n } = await Ge();
2470
+ async function Jt(e, i) {
2471
+ const { AdyenCheckout: n } = await Ke();
2452
2472
  return n(
2453
- $i({
2473
+ Fi({
2454
2474
  locale: e.locale,
2455
2475
  amount: e.amount,
2456
2476
  countryCode: e.countryCode,
@@ -2459,47 +2479,47 @@ async function Wt(e, i) {
2459
2479
  })
2460
2480
  );
2461
2481
  }
2462
- function qt({
2482
+ function ei({
2463
2483
  props: e,
2464
2484
  create: i,
2465
2485
  onMissingButton: n,
2466
- onMountFailed: o,
2467
- afterMount: a
2486
+ onMountFailed: a,
2487
+ afterMount: o
2468
2488
  }) {
2469
- const l = Y(), c = Me(), g = async () => {
2470
- const u = await Wt(e, c), I = await i(u);
2471
- if (!l.value) {
2489
+ const r = Y(), u = Ae(), s = async () => {
2490
+ const d = await Jt(e, u), I = await i(d);
2491
+ if (!r.value) {
2472
2492
  n();
2473
2493
  return;
2474
2494
  }
2475
2495
  try {
2476
- await I.isAvailable(), I.mount(l.value), a == null || a();
2477
- } catch (y) {
2478
- o(y);
2496
+ await I.isAvailable(), I.mount(r.value), o == null || o();
2497
+ } catch (g) {
2498
+ a(g);
2479
2499
  }
2480
2500
  };
2481
- return Oe(() => {
2482
- g();
2483
- }), { buttonRef: l };
2501
+ return je(() => {
2502
+ s();
2503
+ }), { buttonRef: r };
2484
2504
  }
2485
- const Ro = {
2505
+ const Vo = {
2486
2506
  key: 0,
2487
2507
  id: "svg-logo",
2488
2508
  viewBox: "0 0 35 15",
2489
2509
  class: "h-[44px]"
2490
- }, $o = {
2510
+ }, Fo = {
2491
2511
  key: 1,
2492
2512
  src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAxcHgiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxMDEgMzIiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaW5ZTWluIG1lZXQiIHhtbG5zPSJodHRwOiYjeDJGOyYjeDJGO3d3dy53My5vcmcmI3gyRjsyMDAwJiN4MkY7c3ZnIj48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDEyLjIzNyAyLjggTCA0LjQzNyAyLjggQyAzLjkzNyAyLjggMy40MzcgMy4yIDMuMzM3IDMuNyBMIDAuMjM3IDIzLjcgQyAwLjEzNyAyNC4xIDAuNDM3IDI0LjQgMC44MzcgMjQuNCBMIDQuNTM3IDI0LjQgQyA1LjAzNyAyNC40IDUuNTM3IDI0IDUuNjM3IDIzLjUgTCA2LjQzNyAxOC4xIEMgNi41MzcgMTcuNiA2LjkzNyAxNy4yIDcuNTM3IDE3LjIgTCAxMC4wMzcgMTcuMiBDIDE1LjEzNyAxNy4yIDE4LjEzNyAxNC43IDE4LjkzNyA5LjggQyAxOS4yMzcgNy43IDE4LjkzNyA2IDE3LjkzNyA0LjggQyAxNi44MzcgMy41IDE0LjgzNyAyLjggMTIuMjM3IDIuOCBaIE0gMTMuMTM3IDEwLjEgQyAxMi43MzcgMTIuOSAxMC41MzcgMTIuOSA4LjUzNyAxMi45IEwgNy4zMzcgMTIuOSBMIDguMTM3IDcuNyBDIDguMTM3IDcuNCA4LjQzNyA3LjIgOC43MzcgNy4yIEwgOS4yMzcgNy4yIEMgMTAuNjM3IDcuMiAxMS45MzcgNy4yIDEyLjYzNyA4IEMgMTMuMTM3IDguNCAxMy4zMzcgOS4xIDEzLjEzNyAxMC4xIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDM1LjQzNyAxMCBMIDMxLjczNyAxMCBDIDMxLjQzNyAxMCAzMS4xMzcgMTAuMiAzMS4xMzcgMTAuNSBMIDMwLjkzNyAxMS41IEwgMzAuNjM3IDExLjEgQyAyOS44MzcgOS45IDI4LjAzNyA5LjUgMjYuMjM3IDkuNSBDIDIyLjEzNyA5LjUgMTguNjM3IDEyLjYgMTcuOTM3IDE3IEMgMTcuNTM3IDE5LjIgMTguMDM3IDIxLjMgMTkuMzM3IDIyLjcgQyAyMC40MzcgMjQgMjIuMTM3IDI0LjYgMjQuMDM3IDI0LjYgQyAyNy4zMzcgMjQuNiAyOS4yMzcgMjIuNSAyOS4yMzcgMjIuNSBMIDI5LjAzNyAyMy41IEMgMjguOTM3IDIzLjkgMjkuMjM3IDI0LjMgMjkuNjM3IDI0LjMgTCAzMy4wMzcgMjQuMyBDIDMzLjUzNyAyNC4zIDM0LjAzNyAyMy45IDM0LjEzNyAyMy40IEwgMzYuMTM3IDEwLjYgQyAzNi4yMzcgMTAuNCAzNS44MzcgMTAgMzUuNDM3IDEwIFogTSAzMC4zMzcgMTcuMiBDIDI5LjkzNyAxOS4zIDI4LjMzNyAyMC44IDI2LjEzNyAyMC44IEMgMjUuMDM3IDIwLjggMjQuMjM3IDIwLjUgMjMuNjM3IDE5LjggQyAyMy4wMzcgMTkuMSAyMi44MzcgMTguMiAyMy4wMzcgMTcuMiBDIDIzLjMzNyAxNS4xIDI1LjEzNyAxMy42IDI3LjIzNyAxMy42IEMgMjguMzM3IDEzLjYgMjkuMTM3IDE0IDI5LjczNyAxNC42IEMgMzAuMjM3IDE1LjMgMzAuNDM3IDE2LjIgMzAuMzM3IDE3LjIgWiI+PC9wYXRoPjxwYXRoIGZpbGw9IiMwMDMwODciIGQ9Ik0gNTUuMzM3IDEwIEwgNTEuNjM3IDEwIEMgNTEuMjM3IDEwIDUwLjkzNyAxMC4yIDUwLjczNyAxMC41IEwgNDUuNTM3IDE4LjEgTCA0My4zMzcgMTAuOCBDIDQzLjIzNyAxMC4zIDQyLjczNyAxMCA0Mi4zMzcgMTAgTCAzOC42MzcgMTAgQyAzOC4yMzcgMTAgMzcuODM3IDEwLjQgMzguMDM3IDEwLjkgTCA0Mi4xMzcgMjMgTCAzOC4yMzcgMjguNCBDIDM3LjkzNyAyOC44IDM4LjIzNyAyOS40IDM4LjczNyAyOS40IEwgNDIuNDM3IDI5LjQgQyA0Mi44MzcgMjkuNCA0My4xMzcgMjkuMiA0My4zMzcgMjguOSBMIDU1LjgzNyAxMC45IEMgNTYuMTM3IDEwLjYgNTUuODM3IDEwIDU1LjMzNyAxMCBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA2Ny43MzcgMi44IEwgNTkuOTM3IDIuOCBDIDU5LjQzNyAyLjggNTguOTM3IDMuMiA1OC44MzcgMy43IEwgNTUuNzM3IDIzLjYgQyA1NS42MzcgMjQgNTUuOTM3IDI0LjMgNTYuMzM3IDI0LjMgTCA2MC4zMzcgMjQuMyBDIDYwLjczNyAyNC4zIDYxLjAzNyAyNCA2MS4wMzcgMjMuNyBMIDYxLjkzNyAxOCBDIDYyLjAzNyAxNy41IDYyLjQzNyAxNy4xIDYzLjAzNyAxNy4xIEwgNjUuNTM3IDE3LjEgQyA3MC42MzcgMTcuMSA3My42MzcgMTQuNiA3NC40MzcgOS43IEMgNzQuNzM3IDcuNiA3NC40MzcgNS45IDczLjQzNyA0LjcgQyA3Mi4yMzcgMy41IDcwLjMzNyAyLjggNjcuNzM3IDIuOCBaIE0gNjguNjM3IDEwLjEgQyA2OC4yMzcgMTIuOSA2Ni4wMzcgMTIuOSA2NC4wMzcgMTIuOSBMIDYyLjgzNyAxMi45IEwgNjMuNjM3IDcuNyBDIDYzLjYzNyA3LjQgNjMuOTM3IDcuMiA2NC4yMzcgNy4yIEwgNjQuNzM3IDcuMiBDIDY2LjEzNyA3LjIgNjcuNDM3IDcuMiA2OC4xMzcgOCBDIDY4LjYzNyA4LjQgNjguNzM3IDkuMSA2OC42MzcgMTAuMSBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA5MC45MzcgMTAgTCA4Ny4yMzcgMTAgQyA4Ni45MzcgMTAgODYuNjM3IDEwLjIgODYuNjM3IDEwLjUgTCA4Ni40MzcgMTEuNSBMIDg2LjEzNyAxMS4xIEMgODUuMzM3IDkuOSA4My41MzcgOS41IDgxLjczNyA5LjUgQyA3Ny42MzcgOS41IDc0LjEzNyAxMi42IDczLjQzNyAxNyBDIDczLjAzNyAxOS4yIDczLjUzNyAyMS4zIDc0LjgzNyAyMi43IEMgNzUuOTM3IDI0IDc3LjYzNyAyNC42IDc5LjUzNyAyNC42IEMgODIuODM3IDI0LjYgODQuNzM3IDIyLjUgODQuNzM3IDIyLjUgTCA4NC41MzcgMjMuNSBDIDg0LjQzNyAyMy45IDg0LjczNyAyNC4zIDg1LjEzNyAyNC4zIEwgODguNTM3IDI0LjMgQyA4OS4wMzcgMjQuMyA4OS41MzcgMjMuOSA4OS42MzcgMjMuNCBMIDkxLjYzNyAxMC42IEMgOTEuNjM3IDEwLjQgOTEuMzM3IDEwIDkwLjkzNyAxMCBaIE0gODUuNzM3IDE3LjIgQyA4NS4zMzcgMTkuMyA4My43MzcgMjAuOCA4MS41MzcgMjAuOCBDIDgwLjQzNyAyMC44IDc5LjYzNyAyMC41IDc5LjAzNyAxOS44IEMgNzguNDM3IDE5LjEgNzguMjM3IDE4LjIgNzguNDM3IDE3LjIgQyA3OC43MzcgMTUuMSA4MC41MzcgMTMuNiA4Mi42MzcgMTMuNiBDIDgzLjczNyAxMy42IDg0LjUzNyAxNCA4NS4xMzcgMTQuNiBDIDg1LjczNyAxNS4zIDg1LjkzNyAxNi4yIDg1LjczNyAxNy4yIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDA5Y2RlIiBkPSJNIDk1LjMzNyAzLjMgTCA5Mi4xMzcgMjMuNiBDIDkyLjAzNyAyNCA5Mi4zMzcgMjQuMyA5Mi43MzcgMjQuMyBMIDk1LjkzNyAyNC4zIEMgOTYuNDM3IDI0LjMgOTYuOTM3IDIzLjkgOTcuMDM3IDIzLjQgTCAxMDAuMjM3IDMuNSBDIDEwMC4zMzcgMy4xIDEwMC4wMzcgMi44IDk5LjYzNyAyLjggTCA5Ni4wMzcgMi44IEMgOTUuNjM3IDIuOCA5NS40MzcgMyA5NS4zMzcgMy4zIFoiPjwvcGF0aD48L3N2Zz4",
2493
2513
  role: "presentation",
2494
2514
  class: "h-[22px]"
2495
- }, nt = /* @__PURE__ */ ce({
2515
+ }, at = /* @__PURE__ */ se({
2496
2516
  __name: "ExpressPaymentMethodButton",
2497
2517
  props: {
2498
2518
  type: { type: String }
2499
2519
  },
2500
2520
  emits: ["click"],
2501
2521
  setup(e, { emit: i }) {
2502
- const n = e, o = i, a = M(() => {
2522
+ const n = e, a = i, o = _(() => {
2503
2523
  switch (n.type) {
2504
2524
  case "applepay":
2505
2525
  return "Apple Pay";
@@ -2510,7 +2530,7 @@ const Ro = {
2510
2530
  default:
2511
2531
  return;
2512
2532
  }
2513
- }), l = M(() => {
2533
+ }), r = _(() => {
2514
2534
  switch (n.type) {
2515
2535
  case "applepay":
2516
2536
  return "!bg-black !py-0";
@@ -2522,18 +2542,18 @@ const Ro = {
2522
2542
  return;
2523
2543
  }
2524
2544
  });
2525
- function c() {
2526
- o("click");
2545
+ function u() {
2546
+ a("click");
2527
2547
  }
2528
- return (g, u) => (d(), S(t(Pe), {
2548
+ return (s, d) => (p(), O(t(Ne), {
2529
2549
  size: "lg",
2530
- "aria-label": a.value,
2531
- class: he([l.value, "!block h-11 w-full bg-center bg-no-repeat"]),
2532
- onClick: c
2550
+ "aria-label": o.value,
2551
+ class: Ie([r.value, "!block h-11 w-full bg-center bg-no-repeat"]),
2552
+ onClick: u
2533
2553
  }, {
2534
2554
  default: b(() => [
2535
- n.type === "applepay" ? (d(), z("svg", Ro, [...u[0] || (u[0] = [
2536
- L("svg", {
2555
+ n.type === "applepay" ? (p(), $("svg", Vo, [...d[0] || (d[0] = [
2556
+ w("svg", {
2537
2557
  id: "svg-logo",
2538
2558
  x: "0",
2539
2559
  y: "3.85",
@@ -2544,28 +2564,28 @@ const Ro = {
2544
2564
  version: "1.1",
2545
2565
  xmlns: "http://www.w3.org/2000/svg"
2546
2566
  }, [
2547
- L("title", null, "Apple Logo"),
2548
- L("g", {
2567
+ w("title", null, "Apple Logo"),
2568
+ w("g", {
2549
2569
  stroke: "none",
2550
2570
  "stroke-width": "1",
2551
2571
  fill: "none",
2552
2572
  "fill-rule": "evenodd"
2553
2573
  }, [
2554
- L("g", { fill: "#FFF" }, [
2555
- L("path", { d: "M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674" }),
2556
- L("path", { d: "M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926" }),
2557
- L("path", { d: "M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381" }),
2558
- L("path", { d: "M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z" }),
2559
- L("path", { d: "M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345" })
2574
+ w("g", { fill: "#FFF" }, [
2575
+ w("path", { d: "M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674" }),
2576
+ w("path", { d: "M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926" }),
2577
+ w("path", { d: "M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381" }),
2578
+ w("path", { d: "M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z" }),
2579
+ w("path", { d: "M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345" })
2560
2580
  ])
2561
2581
  ])
2562
2582
  ], -1)
2563
- ])])) : n.type === "paypal" ? (d(), z("img", $o)) : j("", !0)
2583
+ ])])) : n.type === "paypal" ? (p(), $("img", Fo)) : U("", !0)
2564
2584
  ]),
2565
2585
  _: 1
2566
2586
  }, 8, ["aria-label", "class"]));
2567
2587
  }
2568
- }), Bo = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" }, Uo = "ADYEN", Vo = /* @__PURE__ */ ce({
2588
+ }), Go = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" }, Yo = "ADYEN", Ko = /* @__PURE__ */ se({
2569
2589
  __name: "ExpressPaymentMethodApplePay",
2570
2590
  props: {
2571
2591
  onBillingInformationChange: { type: Function },
@@ -2578,17 +2598,17 @@ const Ro = {
2578
2598
  },
2579
2599
  emits: ["ready", "update-billing-information"],
2580
2600
  setup(e, { emit: i }) {
2581
- const n = e, o = i, a = Y(), l = Me(), { authorizePayment: c } = nn(), g = n.paymentMethodOptionsResponse.payment_acceptor.id;
2582
- function u(v) {
2583
- return on({
2601
+ const n = e, a = i, o = Y(), r = Ae(), { authorizePayment: u } = ln(), s = n.paymentMethodOptionsResponse.payment_acceptor.id;
2602
+ function d(v) {
2603
+ return sn({
2584
2604
  gateway: "ADYEN",
2585
- paymentAcceptorId: g,
2605
+ paymentAcceptorId: s,
2586
2606
  paymentMethodType: "applepay",
2587
2607
  ...v
2588
2608
  });
2589
2609
  }
2590
2610
  const I = async () => {
2591
- const { ApplePay: v } = await Ge(), N = await Wt(n, l), E = new v(N, {
2611
+ const { ApplePay: v } = await Ke(), H = await Jt(n, r), z = new v(H, {
2592
2612
  isExpress: !0,
2593
2613
  recurringPaymentRequest: {
2594
2614
  paymentDescription: n.billingInformation.description,
@@ -2613,7 +2633,7 @@ const Ro = {
2613
2633
  type: "final",
2614
2634
  paymentTiming: "recurring",
2615
2635
  recurringPaymentStartDate: n.billingInformation.regular.startDate,
2616
- ...y(
2636
+ ...g(
2617
2637
  n.billingInformation.regular.interval ?? { type: "MONTH", value: 1 }
2618
2638
  )
2619
2639
  }
@@ -2621,169 +2641,169 @@ const Ro = {
2621
2641
  },
2622
2642
  requiredBillingContactFields: ["postalAddress"],
2623
2643
  requiredShippingContactFields: ["email"],
2624
- onPaymentMethodSelected: async (V, F, p) => {
2625
- var G, s, r, A, f, C, R;
2626
- const { invoicePreview: B, trialInvoicePreview: T } = await n.onBillingInformationChange({
2627
- ...((G = p.paymentMethod.billingContact) == null ? void 0 : G.postalCode) && {
2628
- postal_code: p.paymentMethod.billingContact.postalCode
2644
+ onPaymentMethodSelected: async (A, E, m) => {
2645
+ var de, l, P, c, y, D, T;
2646
+ const { invoicePreview: B, trialInvoicePreview: S } = await n.onBillingInformationChange({
2647
+ ...((de = m.paymentMethod.billingContact) == null ? void 0 : de.postalCode) && {
2648
+ postal_code: m.paymentMethod.billingContact.postalCode
2629
2649
  },
2630
- ...((s = p.paymentMethod.billingContact) == null ? void 0 : s.locality) && {
2631
- city: p.paymentMethod.billingContact.locality
2650
+ ...((l = m.paymentMethod.billingContact) == null ? void 0 : l.locality) && {
2651
+ city: m.paymentMethod.billingContact.locality
2632
2652
  },
2633
- ...m((r = p.paymentMethod.billingContact) == null ? void 0 : r.countryCode) && {
2634
- country: m((A = p.paymentMethod.billingContact) == null ? void 0 : A.countryCode)
2653
+ ...f((P = m.paymentMethod.billingContact) == null ? void 0 : P.countryCode) && {
2654
+ country: f((c = m.paymentMethod.billingContact) == null ? void 0 : c.countryCode)
2635
2655
  }
2636
- }), q = T ? T.invoice_amount_including_tax.quantity.toString() : B.invoice_amount_including_tax.quantity.toString();
2637
- o("update-billing-information", {
2638
- postal_code: (f = p.paymentMethod.billingContact) == null ? void 0 : f.postalCode,
2639
- city: (C = p.paymentMethod.billingContact) == null ? void 0 : C.locality,
2640
- country: (R = p.paymentMethod.billingContact) == null ? void 0 : R.countryCode
2641
- }), V({
2656
+ }), X = S ? S.invoice_amount_including_tax.quantity.toString() : B.invoice_amount_including_tax.quantity.toString();
2657
+ a("update-billing-information", {
2658
+ postal_code: (y = m.paymentMethod.billingContact) == null ? void 0 : y.postalCode,
2659
+ city: (D = m.paymentMethod.billingContact) == null ? void 0 : D.locality,
2660
+ country: (T = m.paymentMethod.billingContact) == null ? void 0 : T.countryCode
2661
+ }), A({
2642
2662
  newTotal: {
2643
2663
  label: n.billingInformation.regular.label,
2644
- amount: q,
2664
+ amount: X,
2645
2665
  type: "final"
2646
2666
  }
2647
2667
  });
2648
2668
  },
2649
- onError: (V) => {
2650
- l.error(
2669
+ onError: (A) => {
2670
+ r.error(
2651
2671
  "APPLE_PAY_ERROR",
2652
2672
  "Apple Pay error",
2653
- u({ reason: "APPLE_PAY_ERROR", cause: V }),
2654
- V
2673
+ d({ reason: "APPLE_PAY_ERROR", cause: A }),
2674
+ A
2655
2675
  );
2656
2676
  },
2657
- onAuthorized: async (V, F) => {
2658
- var p;
2677
+ onAuthorized: async (A, E) => {
2678
+ var m;
2659
2679
  try {
2660
- const B = V.authorizedEvent;
2661
- l.info("APPLE_PAY_AUTHORIZED", "Apple Pay authorized", {
2662
- paymentAcceptorId: g,
2680
+ const B = A.authorizedEvent;
2681
+ r.info("APPLE_PAY_AUTHORIZED", "Apple Pay authorized", {
2682
+ paymentAcceptorId: s,
2663
2683
  hasPaymentMethod: !!B.payment.token.paymentMethod,
2664
2684
  hasPaymentData: !!B.payment.token.paymentData,
2665
2685
  hasBillingContact: !!B.payment.billingContact
2666
2686
  });
2667
- const T = B.payment.billingContact, q = V.billingAddress;
2668
- T ? o(
2687
+ const S = B.payment.billingContact, X = A.billingAddress;
2688
+ S ? a(
2669
2689
  "update-billing-information",
2670
- h(T)
2671
- ) : q && o(
2690
+ h(S)
2691
+ ) : X && a(
2672
2692
  "update-billing-information",
2673
- P(q)
2693
+ C(X)
2674
2694
  );
2675
- const G = {
2676
- payment_method: Nt(
2695
+ const de = {
2696
+ payment_method: Ct(
2677
2697
  B.payment.token.paymentMethod
2678
2698
  ),
2679
- browser_info: Nt(
2699
+ browser_info: Ct(
2680
2700
  B.payment.token.paymentData
2681
2701
  )
2682
- }, s = Bi({
2683
- paymentAcceptorId: g,
2702
+ }, l = Gi({
2703
+ paymentAcceptorId: s,
2684
2704
  redirectUrl: window.location.href
2685
- }), r = await c({
2686
- payment_acceptor_id: g,
2687
- payment_gateway_variant: Uo,
2705
+ }), P = await u({
2706
+ payment_acceptor_id: s,
2707
+ payment_gateway_variant: Yo,
2688
2708
  adyen: {
2689
- ...G,
2709
+ ...de,
2690
2710
  store_payment_method: !0
2691
2711
  // Required for recurring payments
2692
2712
  },
2693
2713
  amount: n.amount,
2694
- return_url: s
2714
+ return_url: l
2695
2715
  });
2696
- if (l.info("APPLE_PAY_API_RESPONSE", "Payment API response received", {
2697
- paymentAcceptorId: g,
2698
- status: r.status
2699
- }), r.status === "FAILURE") {
2700
- l.error(
2716
+ if (r.info("APPLE_PAY_API_RESPONSE", "Payment API response received", {
2717
+ paymentAcceptorId: s,
2718
+ status: P.status
2719
+ }), P.status === "FAILURE") {
2720
+ r.error(
2701
2721
  "APPLE_PAY_AUTHORIZATION_FAILED",
2702
2722
  "Payment authorization failed",
2703
- u({
2723
+ d({
2704
2724
  reason: "APPLE_PAY_AUTHORIZATION_REJECTED",
2705
- extra: { paymentStatus: r.status }
2725
+ extra: { paymentStatus: P.status }
2706
2726
  })
2707
- ), F.reject();
2727
+ ), E.reject();
2708
2728
  return;
2709
2729
  }
2710
- if (r.status === "ACTION_REQUIRED") {
2711
- l.warn(
2730
+ if (P.status === "ACTION_REQUIRED") {
2731
+ r.warn(
2712
2732
  "APPLE_PAY_ACTION_REQUIRED",
2713
2733
  "Payment requires additional action",
2714
- u({
2734
+ d({
2715
2735
  reason: "APPLE_PAY_ACTION_REQUIRED",
2716
- extra: { actionType: (p = r.action) == null ? void 0 : p.method }
2736
+ extra: { actionType: (m = P.action) == null ? void 0 : m.method }
2717
2737
  })
2718
- ), F.reject();
2738
+ ), E.reject();
2719
2739
  return;
2720
2740
  }
2721
- l.info("APPLE_PAY_SUCCESS", "Apple Pay payment successful, resolving"), F.resolve();
2741
+ r.info("APPLE_PAY_SUCCESS", "Apple Pay payment successful, resolving"), E.resolve();
2722
2742
  } catch (B) {
2723
- l.error(
2743
+ r.error(
2724
2744
  "APPLE_PAY_AUTHORIZATION_FAILED",
2725
2745
  "Apple Pay authorization failed",
2726
- u({ reason: "APPLE_PAY_AUTHORIZATION_FAILED", cause: B }),
2746
+ d({ reason: "APPLE_PAY_AUTHORIZATION_FAILED", cause: B }),
2727
2747
  B
2728
- ), F.reject();
2748
+ ), E.reject();
2729
2749
  }
2730
2750
  }
2731
2751
  });
2732
- if (!a.value) {
2733
- l.error("APPLE_PAY_ERROR", "Apple Pay button ref not found");
2752
+ if (!o.value) {
2753
+ r.error("APPLE_PAY_ERROR", "Apple Pay button ref not found");
2734
2754
  return;
2735
2755
  }
2736
2756
  try {
2737
- await E.isAvailable(), E.mount(a.value), o("ready");
2738
- } catch (V) {
2739
- l.error("APPLE_PAY_ERROR", "Apple Pay not available on this device", {}, V);
2757
+ await z.isAvailable(), z.mount(o.value), a("ready");
2758
+ } catch (A) {
2759
+ r.error("APPLE_PAY_ERROR", "Apple Pay not available on this device", {}, A);
2740
2760
  }
2741
- }, y = (v) => {
2761
+ }, g = (v) => {
2742
2762
  if (!v.value)
2743
2763
  return;
2744
- let N = v.value ?? 1, E = v.type.toLowerCase();
2745
- if (v.type === "WEEK" && (E = "day", N = v.value * 7), E === "day" || E === "month" || E === "year" || E === "hour" || E === "minute")
2764
+ let H = v.value ?? 1, z = v.type.toLowerCase();
2765
+ if (v.type === "WEEK" && (z = "day", H = v.value * 7), z === "day" || z === "month" || z === "year" || z === "hour" || z === "minute")
2746
2766
  return {
2747
- recurringPaymentIntervalUnit: E,
2748
- recurringPaymentIntervalCount: N
2767
+ recurringPaymentIntervalUnit: z,
2768
+ recurringPaymentIntervalCount: H
2749
2769
  };
2750
2770
  }, h = (v) => ({
2751
2771
  postal_code: v.postalCode,
2752
2772
  city: v.locality,
2753
2773
  country: v.countryCode
2754
- }), P = (v) => ({
2774
+ }), C = (v) => ({
2755
2775
  postal_code: v.postalCode,
2756
2776
  city: v.city,
2757
2777
  country: v.country
2758
- }), m = (v) => v && x(v) ? v : void 0, x = (v) => Ke(v), k = () => {
2759
- var N;
2760
- const v = (N = a.value) == null ? void 0 : N.querySelector("apple-pay-button");
2778
+ }), f = (v) => v && L(v) ? v : void 0, L = (v) => Qe(v), x = () => {
2779
+ var H;
2780
+ const v = (H = o.value) == null ? void 0 : H.querySelector("apple-pay-button");
2761
2781
  if (v) {
2762
- const E = new MouseEvent("click", {
2782
+ const z = new MouseEvent("click", {
2763
2783
  bubbles: !0,
2764
2784
  cancelable: !0,
2765
2785
  view: window
2766
2786
  });
2767
- v.dispatchEvent(E);
2787
+ v.dispatchEvent(z);
2768
2788
  }
2769
2789
  };
2770
- return Oe(() => {
2790
+ return je(() => {
2771
2791
  I();
2772
- }), (v, N) => (d(), z(me, null, [
2773
- e.isVisible ? (d(), S(nt, {
2792
+ }), (v, H) => (p(), $(me, null, [
2793
+ e.isVisible ? (p(), O(at, {
2774
2794
  key: 0,
2775
2795
  type: "applepay",
2776
- onClick: k
2777
- })) : j("", !0),
2778
- L("div", Bo, [
2779
- L("div", {
2796
+ onClick: x
2797
+ })) : U("", !0),
2798
+ w("div", Go, [
2799
+ w("div", {
2780
2800
  ref_key: "applePayButtonRef",
2781
- ref: a
2801
+ ref: o
2782
2802
  }, null, 512)
2783
2803
  ])
2784
2804
  ], 64));
2785
2805
  }
2786
- }), Fo = { class: "relative overflow-hidden" }, Go = /* @__PURE__ */ ce({
2806
+ }), Ho = { class: "relative overflow-hidden" }, Qo = /* @__PURE__ */ se({
2787
2807
  __name: "ExpressPaymentMethodPaypal",
2788
2808
  props: {
2789
2809
  amount: { type: Object },
@@ -2795,18 +2815,18 @@ const Ro = {
2795
2815
  },
2796
2816
  emits: ["ready", "update-billing-information"],
2797
2817
  setup(e, { emit: i }) {
2798
- const n = e, o = i, a = Me(), { buttonRef: l } = qt({
2818
+ const n = e, a = i, o = Ae(), { buttonRef: r } = ei({
2799
2819
  props: n,
2800
- onMissingButton: () => a.error(
2820
+ onMissingButton: () => o.error(
2801
2821
  "EXPRESS_CHECKOUT_PAYPAL_ERROR",
2802
2822
  "The PayPal button reference is not found and cannot be mounted"
2803
2823
  ),
2804
- onMountFailed: (c) => a.error("EXPRESS_CHECKOUT_PAYPAL_ERROR", "Failed mounting PayPal express button", {
2805
- error: c
2824
+ onMountFailed: (u) => o.error("EXPRESS_CHECKOUT_PAYPAL_ERROR", "Failed mounting PayPal express button", {
2825
+ error: u
2806
2826
  }),
2807
- create: async (c) => {
2808
- const { PayPal: g } = await Ge();
2809
- return new g(c, {
2827
+ create: async (u) => {
2828
+ const { PayPal: s } = await Ke();
2829
+ return new s(u, {
2810
2830
  isExpress: !0,
2811
2831
  blockPayPalPayLaterButton: !0,
2812
2832
  blockPayPalCreditButton: !0,
@@ -2815,25 +2835,25 @@ const Ro = {
2815
2835
  height: 55
2816
2836
  },
2817
2837
  onInit: () => {
2818
- o("ready");
2838
+ a("ready");
2819
2839
  }
2820
2840
  });
2821
2841
  }
2822
2842
  });
2823
- return (c, g) => (d(), z("div", Fo, [
2824
- e.isVisible ? (d(), S(nt, {
2843
+ return (u, s) => (p(), $("div", Ho, [
2844
+ e.isVisible ? (p(), O(at, {
2825
2845
  key: 0,
2826
2846
  type: "paypal",
2827
2847
  class: "w-full"
2828
- })) : j("", !0),
2829
- L("div", {
2848
+ })) : U("", !0),
2849
+ w("div", {
2830
2850
  ref_key: "paypalButtonRef",
2831
- ref: l,
2851
+ ref: r,
2832
2852
  class: "absolute inset-0 opacity-[0.0001]"
2833
2853
  }, null, 512)
2834
2854
  ]));
2835
2855
  }
2836
- }), Yo = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" }, Ko = /* @__PURE__ */ ce({
2856
+ }), Zo = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" }, Xo = /* @__PURE__ */ se({
2837
2857
  __name: "ExpressPaymentMethodGooglePay",
2838
2858
  props: {
2839
2859
  amount: { type: Object },
@@ -2845,53 +2865,53 @@ const Ro = {
2845
2865
  },
2846
2866
  emits: ["ready", "update-billing-information"],
2847
2867
  setup(e, { emit: i }) {
2848
- const n = e, o = i, a = Me(), { buttonRef: l } = qt({
2868
+ const n = e, a = i, o = Ae(), { buttonRef: r } = ei({
2849
2869
  props: n,
2850
- onMissingButton: () => a.error(
2870
+ onMissingButton: () => o.error(
2851
2871
  "EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
2852
2872
  "The Google Pay button reference is not found and cannot be mounted"
2853
2873
  ),
2854
- onMountFailed: (g) => a.error(
2874
+ onMountFailed: (s) => o.error(
2855
2875
  "EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
2856
2876
  "Failed mounting Google Pay express button",
2857
2877
  {},
2858
- g
2878
+ s
2859
2879
  ),
2860
- create: async (g) => {
2861
- const { GooglePay: u } = await Ge();
2862
- return new u(g, { isExpress: !0 });
2880
+ create: async (s) => {
2881
+ const { GooglePay: d } = await Ke();
2882
+ return new d(s, { isExpress: !0 });
2863
2883
  },
2864
- afterMount: () => o("ready")
2865
- }), c = () => {
2866
- var u;
2867
- const g = (u = l.value) == null ? void 0 : u.querySelector("#gpay-button-online-api-id");
2868
- if (g) {
2884
+ afterMount: () => a("ready")
2885
+ }), u = () => {
2886
+ var d;
2887
+ const s = (d = r.value) == null ? void 0 : d.querySelector("#gpay-button-online-api-id");
2888
+ if (s) {
2869
2889
  const I = new MouseEvent("click", {
2870
2890
  bubbles: !0,
2871
2891
  cancelable: !0,
2872
2892
  view: window
2873
2893
  });
2874
- g.dispatchEvent(I);
2894
+ s.dispatchEvent(I);
2875
2895
  }
2876
2896
  };
2877
- return (g, u) => (d(), z(me, null, [
2878
- e.isVisible ? (d(), S(nt, {
2897
+ return (s, d) => (p(), $(me, null, [
2898
+ e.isVisible ? (p(), O(at, {
2879
2899
  key: 0,
2880
2900
  type: "googlepay",
2881
- onClick: c
2882
- })) : j("", !0),
2883
- L("div", Yo, [
2884
- L("div", {
2901
+ onClick: u
2902
+ })) : U("", !0),
2903
+ w("div", Zo, [
2904
+ w("div", {
2885
2905
  ref_key: "googlePayButtonRef",
2886
- ref: l
2906
+ ref: r
2887
2907
  }, null, 512)
2888
2908
  ])
2889
2909
  ], 64));
2890
2910
  }
2891
- }), Ho = {
2911
+ }), Wo = {
2892
2912
  key: 0,
2893
2913
  class: "mt-4n"
2894
- }, Qo = { class: "mb-2" }, Zo = { class: "grid grid-cols-6 gap-1 md:gap-2" }, Xo = { class: "mt-4 h-4" }, Wo = 2, qo = /* @__PURE__ */ ce({
2914
+ }, qo = { class: "mb-2" }, Jo = { class: "grid grid-cols-6 gap-1 md:gap-2" }, ea = { class: "mt-4 h-4" }, ta = 2, ia = /* @__PURE__ */ se({
2895
2915
  __name: "ExpressPaymentMethods",
2896
2916
  props: {
2897
2917
  amount: { type: Object },
@@ -2903,100 +2923,100 @@ const Ro = {
2903
2923
  },
2904
2924
  emits: ["update-billing-information"],
2905
2925
  setup(e) {
2906
- const i = ["applepay"], n = e, { $t: o } = ve(), a = Y(!1), l = Y(!1), c = Y(!1), g = M(() => {
2907
- var m;
2926
+ const i = ["applepay"], n = e, { $t: a } = he(), o = Y(!1), r = Y(!1), u = Y(!1), s = _(() => {
2927
+ var f;
2908
2928
  if (i.includes("applepay"))
2909
- return (m = n.paymentMethodsOptionsResponse) == null ? void 0 : m.find(
2910
- (x) => {
2911
- var k;
2912
- return (k = x.options) == null ? void 0 : k.some(
2929
+ return (f = n.paymentMethodsOptionsResponse) == null ? void 0 : f.find(
2930
+ (L) => {
2931
+ var x;
2932
+ return (x = L.options) == null ? void 0 : x.some(
2913
2933
  (v) => v.name.toLowerCase() === "apple pay" && v.payment_gateway_variant === "ADYEN"
2914
2934
  );
2915
2935
  }
2916
2936
  );
2917
- }), u = M(() => {
2918
- var m;
2937
+ }), d = _(() => {
2938
+ var f;
2919
2939
  if (i.includes("paypal"))
2920
- return (m = n.paymentMethodsOptionsResponse) == null ? void 0 : m.find(
2921
- (x) => {
2922
- var k;
2923
- return (k = x.options) == null ? void 0 : k.some(
2940
+ return (f = n.paymentMethodsOptionsResponse) == null ? void 0 : f.find(
2941
+ (L) => {
2942
+ var x;
2943
+ return (x = L.options) == null ? void 0 : x.some(
2924
2944
  (v) => v.name.toLowerCase() === "paypal" && v.payment_gateway_variant === "ADYEN"
2925
2945
  );
2926
2946
  }
2927
2947
  );
2928
- }), I = M(() => {
2929
- var m;
2948
+ }), I = _(() => {
2949
+ var f;
2930
2950
  if (i.includes("googlepay"))
2931
- return (m = n.paymentMethodsOptionsResponse) == null ? void 0 : m.find(
2932
- (x) => {
2933
- var k;
2934
- return (k = x.options) == null ? void 0 : k.some(
2951
+ return (f = n.paymentMethodsOptionsResponse) == null ? void 0 : f.find(
2952
+ (L) => {
2953
+ var x;
2954
+ return (x = L.options) == null ? void 0 : x.some(
2935
2955
  (v) => v.name.toLowerCase() === "google pay" && v.payment_gateway_variant === "ADYEN"
2936
2956
  );
2937
2957
  }
2938
2958
  );
2939
- }), y = M(() => !!(g.value || I.value || u.value)), h = M(() => {
2959
+ }), g = _(() => !!(s.value || I.value || d.value)), h = _(() => {
2940
2960
  var v;
2941
2961
  if (((v = n.paymentMethodsOptionsResponse) == null ? void 0 : v.length) === 0)
2942
2962
  return !1;
2943
- const m = !g.value || a.value, x = !I.value || l.value, k = !u.value || c.value;
2944
- return m && x && k;
2945
- }), P = M(() => h.value ? (g.value ? 1 : 0) + (I.value ? 1 : 0) + (u.value ? 1 : 0) : Wo);
2946
- return (m, x) => y.value ? (d(), z("div", Ho, [
2947
- L("div", Qo, [
2948
- h.value ? (d(), S(t(se), {
2963
+ const f = !s.value || o.value, L = !I.value || r.value, x = !d.value || u.value;
2964
+ return f && L && x;
2965
+ }), C = _(() => h.value ? (s.value ? 1 : 0) + (I.value ? 1 : 0) + (d.value ? 1 : 0) : ta);
2966
+ return (f, L) => g.value ? (p(), $("div", Wo, [
2967
+ w("div", qo, [
2968
+ h.value ? (p(), O(t(le), {
2949
2969
  key: 1,
2950
2970
  variant: "heading-3",
2951
2971
  tag: "h2"
2952
2972
  }, {
2953
2973
  default: b(() => [
2954
- Q($(t(o)({
2974
+ K(V(t(a)({
2955
2975
  defaultMessage: "Subscribe instantly with",
2956
2976
  id: "checkout.express_payment_methods.title",
2957
2977
  description: "The title of the express payment methods block in the checkout form"
2958
2978
  })), 1)
2959
2979
  ]),
2960
2980
  _: 1
2961
- })) : (d(), S(_e, {
2981
+ })) : (p(), O(be, {
2962
2982
  key: 0,
2963
2983
  variant: "title"
2964
2984
  }))
2965
2985
  ]),
2966
- L("div", Zo, [
2967
- h.value ? j("", !0) : (d(), z(me, { key: 0 }, [
2968
- _(_e, { class: "col-span-3 h-11" }),
2969
- _(_e, { class: "col-span-3 h-11" })
2986
+ w("div", Jo, [
2987
+ h.value ? U("", !0) : (p(), $(me, { key: 0 }, [
2988
+ M(be, { class: "col-span-3 h-11" }),
2989
+ M(be, { class: "col-span-3 h-11" })
2970
2990
  ], 64)),
2971
- L("div", {
2972
- class: he(["col-span-3 md:col-span-2", {
2973
- hidden: !g.value,
2974
- "!col-span-6": P.value === 1,
2975
- "md:!col-span-3": P.value === 2,
2976
- "!col-span-6 md:!col-span-2": P.value === 3
2991
+ w("div", {
2992
+ class: Ie(["col-span-3 md:col-span-2", {
2993
+ hidden: !s.value,
2994
+ "!col-span-6": C.value === 1,
2995
+ "md:!col-span-3": C.value === 2,
2996
+ "!col-span-6 md:!col-span-2": C.value === 3
2977
2997
  }])
2978
2998
  }, [
2979
- g.value ? (d(), S(Vo, {
2999
+ s.value ? (p(), O(Ko, {
2980
3000
  key: 0,
2981
3001
  amount: e.amount,
2982
3002
  "billing-information": e.billingInformation,
2983
3003
  "country-code": e.countryCode,
2984
3004
  locale: e.locale,
2985
3005
  "is-visible": h.value,
2986
- "payment-method-options-response": g.value,
3006
+ "payment-method-options-response": s.value,
2987
3007
  "on-billing-information-change": e.onBillingInformationChange,
2988
- onReady: x[0] || (x[0] = (k) => a.value = !0),
2989
- onUpdateBillingInformation: x[1] || (x[1] = (k) => m.$emit("update-billing-information", k))
2990
- }, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response", "on-billing-information-change"])) : j("", !0)
3008
+ onReady: L[0] || (L[0] = (x) => o.value = !0),
3009
+ onUpdateBillingInformation: L[1] || (L[1] = (x) => f.$emit("update-billing-information", x))
3010
+ }, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response", "on-billing-information-change"])) : U("", !0)
2991
3011
  ], 2),
2992
- L("div", {
2993
- class: he(["col-span-3 md:col-span-2", {
3012
+ w("div", {
3013
+ class: Ie(["col-span-3 md:col-span-2", {
2994
3014
  hidden: !I.value,
2995
- "col-span-6 md:col-span-6": P.value === 1,
2996
- "md:!col-span-3": P.value === 2
3015
+ "col-span-6 md:col-span-6": C.value === 1,
3016
+ "md:!col-span-3": C.value === 2
2997
3017
  }])
2998
3018
  }, [
2999
- I.value ? (d(), S(Ko, {
3019
+ I.value ? (p(), O(Xo, {
3000
3020
  key: 0,
3001
3021
  amount: e.amount,
3002
3022
  "billing-information": e.billingInformation,
@@ -3004,48 +3024,48 @@ const Ro = {
3004
3024
  locale: e.locale,
3005
3025
  "is-visible": h.value,
3006
3026
  "payment-method-options-response": I.value,
3007
- onReady: x[2] || (x[2] = (k) => l.value = !0)
3008
- }, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response"])) : j("", !0)
3027
+ onReady: L[2] || (L[2] = (x) => r.value = !0)
3028
+ }, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response"])) : U("", !0)
3009
3029
  ], 2),
3010
- L("div", {
3011
- class: he(["col-span-3 md:col-span-2", {
3012
- hidden: !u.value,
3013
- "col-span-6 md:col-span-6": P.value === 1,
3014
- "md:!col-span-3": P.value === 2
3030
+ w("div", {
3031
+ class: Ie(["col-span-3 md:col-span-2", {
3032
+ hidden: !d.value,
3033
+ "col-span-6 md:col-span-6": C.value === 1,
3034
+ "md:!col-span-3": C.value === 2
3015
3035
  }])
3016
3036
  }, [
3017
- u.value ? (d(), S(Go, {
3037
+ d.value ? (p(), O(Qo, {
3018
3038
  key: 0,
3019
3039
  amount: e.amount,
3020
3040
  "billing-information": e.billingInformation,
3021
3041
  "country-code": e.countryCode,
3022
3042
  locale: e.locale,
3023
3043
  "is-visible": h.value,
3024
- "payment-method-options-response": u.value,
3025
- onReady: x[3] || (x[3] = (k) => c.value = !0)
3026
- }, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response"])) : j("", !0)
3044
+ "payment-method-options-response": d.value,
3045
+ onReady: L[3] || (L[3] = (x) => u.value = !0)
3046
+ }, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response"])) : U("", !0)
3027
3047
  ], 2)
3028
3048
  ]),
3029
- L("div", Xo, [
3030
- h.value ? (d(), S(t(tn), {
3049
+ w("div", ea, [
3050
+ h.value ? (p(), O(t(rn), {
3031
3051
  key: 1,
3032
- text: t(o)({
3052
+ text: t(a)({
3033
3053
  defaultMessage: "Or",
3034
3054
  id: "checkout.express_payment_methods.divider_text",
3035
3055
  description: "The text of the divider text in the express payment methods block in the checkout form"
3036
3056
  }),
3037
3057
  "text-position": "center"
3038
- }, null, 8, ["text"])) : (d(), S(_e, {
3058
+ }, null, 8, ["text"])) : (p(), O(be, {
3039
3059
  key: 0,
3040
3060
  variant: "divider-text"
3041
3061
  }))
3042
3062
  ])
3043
- ])) : j("", !0);
3063
+ ])) : U("", !0);
3044
3064
  }
3045
- }), Jo = ["aria-expanded", "aria-label"], ea = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, ta = { class: "flex flex-row items-center gap-2" }, ia = ["onKeydown"], na = ["aria-label"], oa = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, aa = { class: "flex flex-row items-center gap-2" }, ra = {
3065
+ }), na = ["aria-expanded", "aria-label"], oa = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, aa = { class: "flex flex-row items-center gap-2" }, ra = ["onKeydown"], la = ["aria-label"], sa = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, ca = { class: "flex flex-row items-center gap-2" }, ua = {
3046
3066
  class: "sr-only",
3047
3067
  "aria-live": "polite"
3048
- }, la = /* @__PURE__ */ ce({
3068
+ }, da = /* @__PURE__ */ se({
3049
3069
  inheritAttrs: !1,
3050
3070
  __name: "PromotionCodeSection",
3051
3071
  props: {
@@ -3053,14 +3073,17 @@ const Ro = {
3053
3073
  },
3054
3074
  emits: ["update:appliedCode", "apply", "remove"],
3055
3075
  setup(e, { emit: i }) {
3056
- const { $t: n } = ve(), o = e, a = i, l = Y(!1), c = Y(""), g = Y(""), u = Y(null), I = Y(null), y = rn("promotion-code-"), h = `${y}-label`, P = `${y}-panel`, m = M(() => o.promotionCode !== null && o.promotionCode !== ""), x = M(() => c.value.trim().length > 0), k = M(
3057
- () => o.promotionCode ?? n({
3076
+ const { $t: n } = he(), a = e, o = i, r = Y(!1), u = Y(""), s = Y(""), d = Y(null), I = Y(null), g = un("promotion-code-"), h = `${g}-label`, C = `${g}-panel`, f = _({
3077
+ get: () => u.value,
3078
+ set: (l) => u.value = Li(l)
3079
+ }), L = _(() => a.promotionCode !== null && a.promotionCode !== ""), x = _(() => u.value.trim().length > 0), v = _(
3080
+ () => a.promotionCode ?? n({
3058
3081
  defaultMessage: "Promotion applied",
3059
3082
  id: "checkout.promotion_code.applied_label",
3060
3083
  description: "Fallback label for an applied promotion code in checkout"
3061
3084
  })
3062
- ), v = M(
3063
- () => l.value ? n({
3085
+ ), H = _(
3086
+ () => r.value ? n({
3064
3087
  defaultMessage: "Collapse promotion code input",
3065
3088
  id: "checkout.promotion_code.collapse_aria_label",
3066
3089
  description: "Aria label for the promotion code toggle button in checkout, while the input is open"
@@ -3069,119 +3092,119 @@ const Ro = {
3069
3092
  id: "checkout.promotion_code.expand_aria_label",
3070
3093
  description: "Aria label for the promotion code toggle button in checkout, while the input is closed"
3071
3094
  })
3072
- ), N = M(
3095
+ ), z = _(
3073
3096
  () => n({
3074
3097
  defaultMessage: "Apply promotion code",
3075
3098
  id: "checkout.promotion_code.apply_aria_label",
3076
3099
  description: "Aria label for the promotion code apply button in checkout"
3077
3100
  })
3078
- ), E = M(
3101
+ ), A = _(
3079
3102
  () => n({
3080
3103
  defaultMessage: "Remove promotion code",
3081
3104
  id: "checkout.promotion_code.remove_aria_label",
3082
3105
  description: "Aria label for the promotion code remove button in checkout"
3083
3106
  })
3084
- ), V = () => {
3085
- c.value = "";
3086
- }, F = () => {
3087
- var s;
3088
- const G = (s = I.value) == null ? void 0 : s.querySelector("input");
3089
- G instanceof HTMLInputElement && G.focus();
3090
- }, p = () => {
3091
- l.value && (l.value = !1);
3107
+ ), E = () => {
3108
+ u.value = "";
3109
+ }, m = () => {
3110
+ var P;
3111
+ const l = (P = I.value) == null ? void 0 : P.querySelector("input");
3112
+ l instanceof HTMLInputElement && l.focus();
3092
3113
  }, B = () => {
3093
- m.value || (l.value = !l.value);
3094
- }, T = () => {
3114
+ r.value && (r.value = !1);
3115
+ }, S = () => {
3116
+ L.value || (r.value = !r.value);
3117
+ }, X = () => {
3095
3118
  if (!x.value)
3096
3119
  return;
3097
- const G = c.value.trim();
3098
- a("update:appliedCode", G), a("apply", G), g.value = n({
3120
+ const l = u.value.trim();
3121
+ o("update:appliedCode", l), o("apply", l), s.value = n({
3099
3122
  defaultMessage: "Promotion code applied",
3100
3123
  id: "checkout.promotion_code.applied_status",
3101
3124
  description: "Aria live message when a promotion code is applied in checkout"
3102
- }), l.value = !1;
3103
- }, q = () => {
3104
- a("update:appliedCode", null), a("remove"), g.value = n({
3125
+ }), r.value = !1;
3126
+ }, de = () => {
3127
+ o("update:appliedCode", null), o("remove"), s.value = n({
3105
3128
  defaultMessage: "Promotion code removed",
3106
3129
  id: "checkout.promotion_code.removed_status",
3107
3130
  description: "Aria live message when a promotion code is removed in checkout"
3108
- }), V(), Xe(() => {
3109
- var G;
3110
- (G = u.value) == null || G.focus();
3131
+ }), E(), qe(() => {
3132
+ var l;
3133
+ (l = d.value) == null || l.focus();
3111
3134
  });
3112
3135
  };
3113
- return Se(l, (G) => {
3114
- if (!G) {
3115
- V(), Xe(() => {
3116
- var s;
3117
- (s = u.value) == null || s.focus();
3136
+ return Oe(r, (l) => {
3137
+ if (!l) {
3138
+ E(), qe(() => {
3139
+ var P;
3140
+ (P = d.value) == null || P.focus();
3118
3141
  });
3119
3142
  return;
3120
3143
  }
3121
- Xe(() => {
3122
- F();
3144
+ qe(() => {
3145
+ m();
3123
3146
  });
3124
- }), Se(
3125
- () => o.promotionCode,
3126
- (G) => {
3127
- G || V();
3147
+ }), Oe(
3148
+ () => a.promotionCode,
3149
+ (l) => {
3150
+ l || E();
3128
3151
  }
3129
- ), (G, s) => (d(), z(me, null, [
3130
- m.value ? (d(), S(t(ge), It({ key: 1 }, G.$attrs, {
3152
+ ), (l, P) => (p(), $(me, null, [
3153
+ L.value ? (p(), O(t(ye), Pt({ key: 1 }, l.$attrs, {
3131
3154
  "no-border": "",
3132
3155
  "no-spacing": "",
3133
3156
  "content-background": "none",
3134
3157
  class: "relative w-full"
3135
3158
  }), {
3136
3159
  default: b(() => [
3137
- L("button", {
3160
+ w("button", {
3138
3161
  type: "button",
3139
3162
  class: "w-full rounded border border-primary-900 bg-white",
3140
- "aria-label": E.value,
3141
- onClick: q
3163
+ "aria-label": A.value,
3164
+ onClick: de
3142
3165
  }, [
3143
- L("div", oa, [
3144
- L("div", aa, [
3145
- _(t(Re), { icon: "local_activity" }),
3146
- _(t(se), {
3166
+ w("div", sa, [
3167
+ w("div", ca, [
3168
+ M(t(Be), { icon: "local_activity" }),
3169
+ M(t(le), {
3147
3170
  variant: "body-sm",
3148
3171
  class: "font-semibold"
3149
3172
  }, {
3150
3173
  default: b(() => [
3151
- Q($(k.value), 1)
3174
+ K(V(v.value), 1)
3152
3175
  ]),
3153
3176
  _: 1
3154
3177
  })
3155
3178
  ]),
3156
- _(t(Re), { icon: "close" })
3179
+ M(t(Be), { icon: "close" })
3157
3180
  ])
3158
- ], 8, na)
3181
+ ], 8, la)
3159
3182
  ]),
3160
3183
  _: 1
3161
- }, 16)) : (d(), S(t(ge), It({ key: 0 }, G.$attrs, {
3184
+ }, 16)) : (p(), O(t(ye), Pt({ key: 0 }, l.$attrs, {
3162
3185
  "no-spacing": "",
3163
3186
  class: "relative w-full"
3164
3187
  }), {
3165
3188
  default: b(() => [
3166
- L("button", {
3189
+ w("button", {
3167
3190
  ref_key: "toggleRef",
3168
- ref: u,
3191
+ ref: d,
3169
3192
  type: "button",
3170
3193
  class: "w-full",
3171
- "aria-expanded": l.value,
3172
- "aria-controls": P,
3173
- "aria-label": v.value,
3174
- onClick: B
3194
+ "aria-expanded": r.value,
3195
+ "aria-controls": C,
3196
+ "aria-label": H.value,
3197
+ onClick: S
3175
3198
  }, [
3176
- L("div", ea, [
3177
- L("div", ta, [
3178
- _(t(Re), { icon: "local_activity" }),
3179
- _(t(se), {
3199
+ w("div", oa, [
3200
+ w("div", aa, [
3201
+ M(t(Be), { icon: "local_activity" }),
3202
+ M(t(le), {
3180
3203
  id: h,
3181
3204
  variant: "body-sm"
3182
3205
  }, {
3183
3206
  default: b(() => [
3184
- Q($(t(n)({
3207
+ K(V(t(n)({
3185
3208
  defaultMessage: "Add promotion code",
3186
3209
  id: "checkout.promotion_code.add_label",
3187
3210
  description: "Label for adding a promotion code in checkout"
@@ -3190,23 +3213,23 @@ const Ro = {
3190
3213
  _: 1
3191
3214
  })
3192
3215
  ]),
3193
- _(t(Re), {
3194
- icon: l.value ? "remove" : "add"
3216
+ M(t(Be), {
3217
+ icon: r.value ? "remove" : "add"
3195
3218
  }, null, 8, ["icon"])
3196
3219
  ])
3197
- ], 8, Jo),
3198
- di(L("div", {
3199
- id: P,
3220
+ ], 8, na),
3221
+ gi(w("div", {
3222
+ id: C,
3200
3223
  ref_key: "panelRef",
3201
3224
  ref: I,
3202
3225
  role: "region",
3203
3226
  "aria-labelledby": h,
3204
3227
  class: "flex w-full flex-row items-center gap-2 overflow-hidden border-t px-3 py-2",
3205
- onKeydown: At(Ue(p, ["prevent"]), ["esc"])
3228
+ onKeydown: Dt(Fe(B, ["prevent"]), ["esc"])
3206
3229
  }, [
3207
- _(t(ye), {
3208
- modelValue: c.value,
3209
- "onUpdate:modelValue": s[0] || (s[0] = (r) => c.value = r),
3230
+ M(t(_e), {
3231
+ modelValue: f.value,
3232
+ "onUpdate:modelValue": P[0] || (P[0] = (c) => f.value = c),
3210
3233
  placeholder: t(n)({
3211
3234
  defaultMessage: "Promotion code",
3212
3235
  id: "checkout.promotion_code.placeholder",
@@ -3218,17 +3241,17 @@ const Ro = {
3218
3241
  description: "Aria label for promotion code input in checkout"
3219
3242
  }),
3220
3243
  class: "w-full",
3221
- onKeydown: At(Ue(T, ["prevent"]), ["enter"])
3244
+ onKeydown: Dt(Fe(X, ["prevent"]), ["enter"])
3222
3245
  }, null, 8, ["modelValue", "placeholder", "aria-label", "onKeydown"]),
3223
- _(t(Pe), {
3246
+ M(t(Ne), {
3224
3247
  type: "button",
3225
3248
  disabled: !x.value,
3226
- "aria-label": N.value,
3249
+ "aria-label": z.value,
3227
3250
  "aria-disabled": !x.value,
3228
- onClick: T
3251
+ onClick: X
3229
3252
  }, {
3230
3253
  default: b(() => [
3231
- Q($(t(n)({
3254
+ K(V(t(n)({
3232
3255
  defaultMessage: "Apply",
3233
3256
  id: "checkout.promotion_code.apply_button",
3234
3257
  description: "Button label for applying a promotion code in checkout"
@@ -3236,241 +3259,241 @@ const Ro = {
3236
3259
  ]),
3237
3260
  _: 1
3238
3261
  }, 8, ["disabled", "aria-label", "aria-disabled"])
3239
- ], 40, ia), [
3240
- [pi, l.value]
3262
+ ], 40, ra), [
3263
+ [yi, r.value]
3241
3264
  ])
3242
3265
  ]),
3243
3266
  _: 1
3244
3267
  }, 16)),
3245
- L("span", ra, $(g.value), 1)
3268
+ w("span", ua, V(s.value), 1)
3246
3269
  ], 64));
3247
3270
  }
3248
- }), sa = { class: "sv-checkout__header" }, ca = { class: "sv-checkout__payment-methods" }, ua = {
3271
+ }), pa = { class: "sv-checkout__header" }, ma = { class: "sv-checkout__payment-methods" }, ga = {
3249
3272
  key: 0,
3250
3273
  class: "sv-checkout__payment-methods-body"
3251
- }, da = {
3274
+ }, ya = {
3252
3275
  key: 3,
3253
3276
  class: "sv-checkout__payment-form"
3254
- }, pa = { class: "sv-checkout__order-summary" }, ma = { class: "flex flex-col gap-2" }, ga = /* @__PURE__ */ ce({
3277
+ }, va = { class: "sv-checkout__order-summary" }, fa = { class: "flex flex-col gap-2" }, _a = /* @__PURE__ */ se({
3255
3278
  __name: "Checkout",
3256
3279
  props: {
3257
3280
  configuration: { type: Object }
3258
3281
  },
3259
3282
  emits: ["error", "ready"],
3260
3283
  setup(e, { emit: i }) {
3261
- var st, ct, ut, dt, pt, mt, gt, yt, vt, ft, _t, ht;
3262
- const n = Pt(
3263
- () => import("./PaymentIntegrationForm-CQjUZi22.mjs")
3264
- ), o = Pt(
3265
- () => import("./PlanCustomizationEditor-Dv69xPbX.mjs")
3266
- ), a = e, l = i, c = M(() => a.configuration), g = Y(), u = Y(), I = Me(), { $t: y, locale: h } = ve(), { formatTimePeriod: P } = jt(), m = Ui(), { isMobileViewport: x } = Bt();
3267
- if (I.info("COMPONENT_INITIALIZED", "Checkout component initialized"), ((st = m.value) == null ? void 0 : st.type) !== "INIT_PRICING_PLAN_SUBSCRIPTION")
3284
+ var ut, dt, pt, mt, gt, yt, vt, ft, _t, ht, Mt, bt;
3285
+ const n = Nt(
3286
+ () => import("./PaymentIntegrationForm-UWoyZgsR.mjs")
3287
+ ), a = Nt(
3288
+ () => import("./PlanCustomizationEditor-CpZeilm5.mjs")
3289
+ ), o = e, r = i, u = _(() => o.configuration), s = Y(), d = Y(), I = Ae(), { $t: g, locale: h } = he(), { formatTimePeriod: C } = $t(), f = Yi(), { isMobileViewport: L } = Vt();
3290
+ if (I.info("COMPONENT_INITIALIZED", "Checkout component initialized"), ((ut = f.value) == null ? void 0 : ut.type) !== "INIT_PRICING_PLAN_SUBSCRIPTION")
3268
3291
  throw I.error("INVALID_TOKEN", "Invalid token"), Error("Invalid token");
3269
- m.value.status === "REVOKED" && (g.value = {
3292
+ f.value.status === "REVOKED" && (s.value = {
3270
3293
  code: "RESOURCE_REVOKED",
3271
- message: `Portal url with resource id "${m.value.id}" is revoked`
3272
- }, I.error("RESOURCE_REVOKED", `Portal url with resource id "${m.value.id}" is revoked`));
3273
- const k = (ut = (ct = m.value) == null ? void 0 : ct.init_pricing_plan_subscription) == null ? void 0 : ut.pricing_plan_subscription_id, v = (pt = (dt = m.value) == null ? void 0 : dt.init_pricing_plan_subscription) == null ? void 0 : pt.success_url, N = ((yt = (gt = (mt = m.value) == null ? void 0 : mt.init_pricing_plan_subscription) == null ? void 0 : gt.note) == null ? void 0 : yt.trim()) || void 0, {
3274
- validatedEmail: E,
3275
- validatedCountry: V,
3276
- paymentMethodOptions: F,
3277
- hasPaymentMethodOptionsError: p,
3294
+ message: `Portal url with resource id "${f.value.id}" is revoked`
3295
+ }, I.error("RESOURCE_REVOKED", `Portal url with resource id "${f.value.id}" is revoked`));
3296
+ const x = (pt = (dt = f.value) == null ? void 0 : dt.init_pricing_plan_subscription) == null ? void 0 : pt.pricing_plan_subscription_id, v = (gt = (mt = f.value) == null ? void 0 : mt.init_pricing_plan_subscription) == null ? void 0 : gt.success_url, H = ((ft = (vt = (yt = f.value) == null ? void 0 : yt.init_pricing_plan_subscription) == null ? void 0 : vt.note) == null ? void 0 : ft.trim()) || void 0, {
3297
+ validatedEmail: z,
3298
+ validatedCountry: A,
3299
+ paymentMethodOptions: E,
3300
+ hasPaymentMethodOptionsError: m,
3278
3301
  retryPaymentMethodOptions: B,
3279
- subscription: T,
3280
- isPaymentMethodsPending: q,
3281
- isInvoicePreviewPending: G,
3282
- checkoutForm: s,
3283
- invoicePreview: r,
3284
- invoicePreviewByBillingPeriod: A,
3285
- trialInvoicePreview: f,
3286
- trialPeriod: C,
3287
- authorizationContext: R,
3288
- isPaid: K,
3289
- amount: H,
3290
- loadInvoicePreview: Z,
3291
- updateInvoicePreviewOnBillingInformationChange: oe,
3292
- saveFormStateForRedirect: te
3293
- } = Bn({
3294
- initialCountry: (vt = a.configuration) == null ? void 0 : vt.countryCode,
3295
- initialEmail: (ft = a.configuration) == null ? void 0 : ft.email,
3296
- subscriptionId: k,
3297
- enabledPricingIds: (_t = a.configuration) == null ? void 0 : _t.enabledPricingIds
3298
- }), ie = Y(!1), ae = async () => {
3299
- var D;
3300
- await s.validation.value.$validate(), !s.validation.value.$invalid && (ie.value = !0, te(), (D = u.value) == null || D.submit());
3301
- }, U = () => {
3302
- ie.value = !1;
3303
- }, ne = async () => (await s.validation.value.$validate(), !s.validation.value.$invalid), ee = M(() => !!f.value), J = M(
3304
- () => r.value ? ro(r.value) : !1
3305
- ), re = M(
3306
- () => s.form.value.country && ["US", "CA"].includes(s.form.value.country) || !1
3307
- ), ue = M({
3308
- get: () => s.form.value.enabledPricingIds ?? [],
3309
- set: (D) => {
3310
- s.form.value.enabledPricingIds = D;
3302
+ subscription: S,
3303
+ isPaymentMethodsPending: X,
3304
+ isInvoicePreviewPending: de,
3305
+ checkoutForm: l,
3306
+ invoicePreview: P,
3307
+ invoicePreviewByBillingPeriod: c,
3308
+ trialInvoicePreview: y,
3309
+ trialPeriod: D,
3310
+ authorizationContext: T,
3311
+ isPaid: R,
3312
+ amount: Q,
3313
+ loadInvoicePreview: F,
3314
+ updateInvoicePreviewOnBillingInformationChange: ne,
3315
+ saveFormStateForRedirect: ee
3316
+ } = Gn({
3317
+ initialCountry: (_t = o.configuration) == null ? void 0 : _t.countryCode,
3318
+ initialEmail: (ht = o.configuration) == null ? void 0 : ht.email,
3319
+ subscriptionId: x,
3320
+ enabledPricingIds: (Mt = o.configuration) == null ? void 0 : Mt.enabledPricingIds
3321
+ }), te = Y(!1), ie = async () => {
3322
+ var N;
3323
+ await l.validation.value.$validate(), !l.validation.value.$invalid && (te.value = !0, ee(), (N = d.value) == null || N.submit());
3324
+ }, oe = () => {
3325
+ te.value = !1;
3326
+ }, G = async () => (await l.validation.value.$validate(), !l.validation.value.$invalid), q = _(() => !!y.value), J = _(
3327
+ () => P.value ? uo(P.value) : !1
3328
+ ), ae = _(
3329
+ () => l.form.value.country && ["US", "CA"].includes(l.form.value.country) || !1
3330
+ ), ce = _({
3331
+ get: () => l.form.value.enabledPricingIds ?? [],
3332
+ set: (N) => {
3333
+ l.form.value.enabledPricingIds = N;
3311
3334
  }
3312
- }), de = M(
3313
- () => T.value ? Ee({
3314
- pricingPlanScheduleInfos: T.value.pricing_plan_schedule_infos,
3335
+ }), ue = _(
3336
+ () => S.value ? xe({
3337
+ pricingPlanScheduleInfos: S.value.pricing_plan_schedule_infos,
3315
3338
  type: "DEFAULT"
3316
3339
  }) : void 0
3317
- ), fe = M(() => {
3318
- var w, O;
3319
- if (!T.value)
3340
+ ), ve = _(() => {
3341
+ var k, j;
3342
+ if (!S.value)
3320
3343
  return;
3321
- const D = (O = (w = de.value) == null ? void 0 : w.pricing_plan_version) == null ? void 0 : O.pricing_currency_settings;
3322
- return Ht({
3323
- country: s.form.value.country,
3324
- pricingCurrencySettings: D,
3325
- fallbackCurrency: T.value.billing_currency
3344
+ const N = (j = (k = ue.value) == null ? void 0 : k.pricing_plan_version) == null ? void 0 : j.pricing_currency_settings;
3345
+ return Zt({
3346
+ country: l.form.value.country,
3347
+ pricingCurrencySettings: N,
3348
+ fallbackCurrency: S.value.billing_currency
3326
3349
  });
3327
- }), Ie = M(() => {
3328
- if (!de.value || !T.value)
3350
+ }), fe = _(() => {
3351
+ if (!ue.value || !S.value)
3329
3352
  return /* @__PURE__ */ new Set();
3330
- const D = Ai({
3331
- pricingPlanScheduleInfo: de.value
3332
- }), w = fe.value, O = T.value.billing_period, W = /* @__PURE__ */ new Set();
3333
- return D.forEach((X, pe) => {
3334
- w && X.currency !== w || O && X.billingPeriod && (X.billingPeriod.type !== O.type || X.billingPeriod.value !== O.value) || W.add(pe);
3353
+ const N = Ni({
3354
+ pricingPlanScheduleInfo: ue.value
3355
+ }), k = ve.value, j = S.value.billing_period, W = /* @__PURE__ */ new Set();
3356
+ return N.forEach((Z, pe) => {
3357
+ k && Z.currency !== k || j && Z.billingPeriod && (Z.billingPeriod.type !== j.type || Z.billingPeriod.value !== j.value) || W.add(pe);
3335
3358
  }), W;
3336
- }), Ce = M({
3359
+ }), Le = _({
3337
3360
  get: () => {
3338
- const D = s.form.value.seatsValues ?? [], w = Ie.value;
3339
- return w.size ? D.filter(({ pricing_item_config_id: O }) => w.has(O)) : D;
3361
+ const N = l.form.value.seatsValues ?? [], k = fe.value;
3362
+ return k.size ? N.filter(({ pricing_item_config_id: j }) => k.has(j)) : N;
3340
3363
  },
3341
- set: (D) => {
3342
- const w = s.form.value.seatsValues ?? [], O = Ie.value;
3343
- if (!O.size) {
3344
- s.form.value.seatsValues = D;
3364
+ set: (N) => {
3365
+ const k = l.form.value.seatsValues ?? [], j = fe.value;
3366
+ if (!j.size) {
3367
+ l.form.value.seatsValues = N;
3345
3368
  return;
3346
3369
  }
3347
- const W = w.filter(
3348
- ({ pricing_item_config_id: X }) => !O.has(X)
3370
+ const W = k.filter(
3371
+ ({ pricing_item_config_id: Z }) => !j.has(Z)
3349
3372
  );
3350
- s.form.value.seatsValues = W.concat(D);
3373
+ l.form.value.seatsValues = W.concat(N);
3351
3374
  }
3352
- }), xe = M({
3375
+ }), Te = _({
3353
3376
  get: () => {
3354
- const D = s.form.value.unitsValues ?? [], w = Ie.value;
3355
- return w.size ? D.filter(({ pricing_item_config_id: O }) => w.has(O)) : D;
3377
+ const N = l.form.value.unitsValues ?? [], k = fe.value;
3378
+ return k.size ? N.filter(({ pricing_item_config_id: j }) => k.has(j)) : N;
3356
3379
  },
3357
- set: (D) => {
3358
- const w = s.form.value.unitsValues ?? [], O = Ie.value;
3359
- if (!O.size) {
3360
- s.form.value.unitsValues = D;
3380
+ set: (N) => {
3381
+ const k = l.form.value.unitsValues ?? [], j = fe.value;
3382
+ if (!j.size) {
3383
+ l.form.value.unitsValues = N;
3361
3384
  return;
3362
3385
  }
3363
- const W = w.filter(
3364
- ({ pricing_item_config_id: X }) => !O.has(X)
3386
+ const W = k.filter(
3387
+ ({ pricing_item_config_id: Z }) => !j.has(Z)
3365
3388
  );
3366
- s.form.value.unitsValues = W.concat(D);
3389
+ l.form.value.unitsValues = W.concat(N);
3367
3390
  }
3368
- }), ze = M(() => {
3369
- var D, w, O, W, X;
3370
- return f.value ? y(
3391
+ }), Re = _(() => {
3392
+ var N, k, j, W, Z;
3393
+ return y.value ? g(
3371
3394
  {
3372
3395
  defaultMessage: "{discounted_amount} for {trial_period}, then {subscription_amount}/{billing_period} until canceled, starting {start_date, date, ::MMMMd}.",
3373
3396
  id: "checkout.agreement.trial",
3374
3397
  description: "The agreement for the trial period"
3375
3398
  },
3376
3399
  {
3377
- discounted_amount: f.value.tax_summary.total_amount.quantity === "0.00" ? y({
3400
+ discounted_amount: y.value.tax_summary.total_amount.quantity === "0.00" ? g({
3378
3401
  defaultMessage: "Free",
3379
3402
  id: "checkout.agreement.trial.free",
3380
3403
  description: "The free amount for the trial period"
3381
- }) : Ae(f.value.tax_summary.total_amount),
3382
- trial_period: P(C.value, { short: !0 }),
3383
- subscription_amount: Ae(
3384
- ((D = r.value) == null ? void 0 : D.tax_summary.total_amount) ?? {
3404
+ }) : De(y.value.tax_summary.total_amount),
3405
+ trial_period: C(D.value, { short: !0 }),
3406
+ subscription_amount: De(
3407
+ ((N = P.value) == null ? void 0 : N.tax_summary.total_amount) ?? {
3385
3408
  quantity: "0.00",
3386
3409
  currency: "EUR"
3387
3410
  }
3388
3411
  ),
3389
- billing_period: P(
3390
- ((w = r.value) == null ? void 0 : w.billing_period) ?? { type: "MONTH", value: 1 },
3412
+ billing_period: C(
3413
+ ((k = P.value) == null ? void 0 : k.billing_period) ?? { type: "MONTH", value: 1 },
3391
3414
  { short: !0, singular: !0, hideValueForExactPeriods: !0 }
3392
3415
  ),
3393
3416
  // @ts-expect-error formatjs does not support this type yet
3394
- start_date: new Date(De.value)
3417
+ start_date: new Date(Ee.value)
3395
3418
  }
3396
- ) : y(
3419
+ ) : g(
3397
3420
  {
3398
3421
  defaultMessage: "{subscription_amount}/{billing_period} until canceled, starting {start_date, date, long}.",
3399
3422
  id: "checkout.agreement.subscription",
3400
3423
  description: "The agreement for the subscription"
3401
3424
  },
3402
3425
  {
3403
- subscription_amount: (O = r.value) != null && O.tax_summary.total_amount ? Ae((W = r.value) == null ? void 0 : W.tax_summary.total_amount) : "",
3404
- billing_period: P(
3405
- ((X = r.value) == null ? void 0 : X.billing_period) ?? { type: "MONTH", value: 1 },
3426
+ subscription_amount: (j = P.value) != null && j.tax_summary.total_amount ? De((W = P.value) == null ? void 0 : W.tax_summary.total_amount) : "",
3427
+ billing_period: C(
3428
+ ((Z = P.value) == null ? void 0 : Z.billing_period) ?? { type: "MONTH", value: 1 },
3406
3429
  { short: !0, singular: !0, hideValueForExactPeriods: !0 }
3407
3430
  ),
3408
3431
  // @ts-expect-error formatjs does not support this type yet
3409
- start_date: new Date(De.value)
3432
+ start_date: new Date(Ee.value)
3410
3433
  }
3411
3434
  );
3412
- }), le = M(() => {
3413
- var w;
3414
- if (!r.value)
3435
+ }), re = _(() => {
3436
+ var k;
3437
+ if (!P.value)
3415
3438
  return;
3416
- const D = Si({
3417
- subscription: T.value,
3418
- fallback: y({
3439
+ const N = ji({
3440
+ subscription: S.value,
3441
+ fallback: g({
3419
3442
  defaultMessage: "Subscription",
3420
3443
  description: "The fallback name for when no subscription name can be determined",
3421
3444
  id: "customer_overview.subscriptions_block.fallback_subscription_name"
3422
3445
  })
3423
3446
  });
3424
3447
  return {
3425
- description: D,
3448
+ description: N,
3426
3449
  managementURL: "https://www.solvimon.com/account/billing",
3427
- agreement: ze.value,
3428
- ...f.value && C.value && {
3450
+ agreement: Re.value,
3451
+ ...y.value && D.value && {
3429
3452
  trial: {
3430
- label: y({
3453
+ label: g({
3431
3454
  defaultMessage: "Trial",
3432
3455
  id: "checkout.trial.label",
3433
3456
  description: "The label of the trial"
3434
3457
  }),
3435
- amount: f.value.tax_summary.total_amount,
3436
- startDate: He.value ? new Date(He.value) : void 0,
3437
- endDate: ot.value ? new Date(ot.value) : void 0
3458
+ amount: y.value.tax_summary.total_amount,
3459
+ startDate: Ze.value ? new Date(Ze.value) : void 0,
3460
+ endDate: rt.value ? new Date(rt.value) : void 0
3438
3461
  }
3439
3462
  },
3440
3463
  regular: {
3441
- label: D,
3442
- amount: r.value.tax_summary.total_amount,
3443
- startDate: De.value ? new Date(De.value) : void 0,
3444
- interval: ((w = T.value) == null ? void 0 : w.billing_period) ?? { type: "MONTH", value: 1 }
3464
+ label: N,
3465
+ amount: P.value.tax_summary.total_amount,
3466
+ startDate: Ee.value ? new Date(Ee.value) : void 0,
3467
+ interval: ((k = S.value) == null ? void 0 : k.billing_period) ?? { type: "MONTH", value: 1 }
3445
3468
  }
3446
3469
  };
3447
- }), Jt = (D) => Ke(D), ei = (D) => {
3448
- const { country: w, ...O } = D;
3449
- s.updateInitialState({
3450
- ...O,
3451
- ...w && Jt(w) ? { country: w } : {}
3470
+ }), ti = (N) => Qe(N), ii = (N) => {
3471
+ const { country: k, ...j } = N;
3472
+ l.updateInitialState({
3473
+ ...j,
3474
+ ...k && ti(k) ? { country: k } : {}
3452
3475
  });
3453
- }, ti = M(() => !(E && V)), He = M(() => {
3454
- var O, W, X;
3455
- const D = (W = (O = f.value) == null ? void 0 : O.periods) == null ? void 0 : W[0], w = (X = Qe.value) == null ? void 0 : X.trialStartDate;
3456
- return D != null && D.start_at ? new Date(D.start_at) : w;
3457
- }), Qe = M(() => ki(T.value)), ot = M(() => {
3458
- var O, W, X;
3459
- const D = (W = (O = f.value) == null ? void 0 : O.periods) == null ? void 0 : W[0], w = (X = Qe.value) == null ? void 0 : X.trialEndDate;
3460
- return D != null && D.end_at ? new Date(D.end_at) : w;
3461
- }), De = M(() => {
3462
- var O, W, X;
3463
- const D = (W = (O = r.value) == null ? void 0 : O.periods) == null ? void 0 : W[0], w = (X = Qe.value) == null ? void 0 : X.subscriptionStartDate;
3464
- return D != null && D.start_at ? new Date(D.start_at) : w;
3465
- }), ii = M(() => !!(s.form.value.seatsValues && s.form.value.seatsValues.length > 0 || s.form.value.unitsValues && s.form.value.unitsValues.length > 0 || T.value && wn(T.value) || T.value && Sn(T.value))), Le = Y(null), {
3466
- applyPromotionCode: at,
3467
- removePromotionCode: ni,
3468
- isPromotionCodePending: oi,
3469
- promotionCodeErrorMessage: Ze
3470
- } = Un({
3471
- checkoutForm: s,
3472
- updateInvoicePreviewOnBillingInformationChange: oe,
3473
- formatErrorMessage: ({ action: D }) => y(D === "apply" ? {
3476
+ }, ni = _(() => !(z && A)), Ze = _(() => {
3477
+ var j, W, Z;
3478
+ const N = (W = (j = y.value) == null ? void 0 : j.periods) == null ? void 0 : W[0], k = (Z = Xe.value) == null ? void 0 : Z.trialStartDate;
3479
+ return N != null && N.start_at ? new Date(N.start_at) : k;
3480
+ }), Xe = _(() => Ri(S.value)), rt = _(() => {
3481
+ var j, W, Z;
3482
+ const N = (W = (j = y.value) == null ? void 0 : j.periods) == null ? void 0 : W[0], k = (Z = Xe.value) == null ? void 0 : Z.trialEndDate;
3483
+ return N != null && N.end_at ? new Date(N.end_at) : k;
3484
+ }), Ee = _(() => {
3485
+ var j, W, Z;
3486
+ const N = (W = (j = P.value) == null ? void 0 : j.periods) == null ? void 0 : W[0], k = (Z = Xe.value) == null ? void 0 : Z.subscriptionStartDate;
3487
+ return N != null && N.start_at ? new Date(N.start_at) : k;
3488
+ }), oi = _(() => !!(l.form.value.seatsValues && l.form.value.seatsValues.length > 0 || l.form.value.unitsValues && l.form.value.unitsValues.length > 0 || S.value && zn(S.value) || S.value && jn(S.value))), we = Y(null), {
3489
+ applyPromotionCode: lt,
3490
+ removePromotionCode: ai,
3491
+ isPromotionCodePending: ri,
3492
+ promotionCodeErrorMessage: We
3493
+ } = Yn({
3494
+ checkoutForm: l,
3495
+ updateInvoicePreviewOnBillingInformationChange: ne,
3496
+ formatErrorMessage: ({ action: N }) => g(N === "apply" ? {
3474
3497
  defaultMessage: "Promotion code could not be applied. Please try again.",
3475
3498
  id: "checkout.promotion_code.apply_failed",
3476
3499
  description: "Error message when applying a promotion code in checkout failed"
@@ -3480,67 +3503,67 @@ const Ro = {
3480
3503
  description: "Error message when removing a promotion code in checkout failed"
3481
3504
  }),
3482
3505
  onInvalidPromotionCode: () => {
3483
- Le.value = null;
3506
+ we.value = null;
3484
3507
  },
3485
3508
  onApplyError: () => {
3486
- Le.value = null;
3509
+ we.value = null;
3487
3510
  }
3488
3511
  });
3489
- Fn({
3490
- subscription: T,
3491
- promotionCode: (ht = a.configuration) == null ? void 0 : ht.couponCode,
3492
- appliedPromotionCode: Le,
3493
- applyPromotionCode: at
3512
+ Hn({
3513
+ subscription: S,
3514
+ promotionCode: (bt = o.configuration) == null ? void 0 : bt.couponCode,
3515
+ appliedPromotionCode: we,
3516
+ applyPromotionCode: lt
3494
3517
  });
3495
- const rt = () => {
3496
- v && ji(v);
3497
- }, ai = M(
3518
+ const st = () => {
3519
+ v && Ui(v);
3520
+ }, li = _(
3498
3521
  () => {
3499
- var D;
3500
- return !((D = a.configuration) != null && D.onPaymentSuccess) && !!v;
3522
+ var N;
3523
+ return !((N = o.configuration) != null && N.onPaymentSuccess) && !!v;
3501
3524
  }
3502
- ), ri = () => {
3503
- var D;
3504
- if (K.value = !0, Ze.value = null, (D = a.configuration) != null && D.onPaymentSuccess) {
3505
- a.configuration.onPaymentSuccess();
3525
+ ), si = () => {
3526
+ var N;
3527
+ if (R.value = !0, We.value = null, (N = o.configuration) != null && N.onPaymentSuccess) {
3528
+ o.configuration.onPaymentSuccess();
3506
3529
  return;
3507
3530
  }
3508
3531
  if (v) {
3509
- rt();
3532
+ st();
3510
3533
  return;
3511
3534
  }
3512
- }, lt = (D) => {
3513
- T.value && (T.value = {
3514
- ...T.value,
3515
- billing_period: D
3516
- }, Z());
3535
+ }, ct = (N) => {
3536
+ S.value && (S.value = {
3537
+ ...S.value,
3538
+ billing_period: N
3539
+ }, F());
3517
3540
  };
3518
- return Oe(() => {
3519
- l("ready");
3520
- }), (D, w) => g.value ? (d(), S(co, {
3541
+ return je(() => {
3542
+ r("ready");
3543
+ }), (N, k) => s.value ? (p(), O(go, {
3521
3544
  key: 0,
3522
3545
  class: "sv-checkout sv-root sv-screen sv-checkout--error"
3523
- })) : (d(), S(t(an), {
3546
+ })) : (p(), O(t(cn), {
3524
3547
  key: 1,
3525
- class: he(["sv-checkout sv-root sv-screen", { "sv-checkout--paid": t(K) }])
3526
- }, Fe({
3548
+ class: Ie(["sv-checkout sv-root sv-screen", { "sv-checkout--paid": t(R) }])
3549
+ }, Ye({
3527
3550
  header: b(() => [
3528
- L("div", sa, [
3529
- _(_e, { class: "min-h-[52px] w-96" }, {
3551
+ w("div", pa, [
3552
+ M(be, { class: "min-h-[52px] w-96" }, {
3530
3553
  default: b(() => {
3531
- var O, W, X;
3554
+ var j, W, Z;
3532
3555
  return [
3533
- t(r) && t(T) && De.value ? (d(), S(ao, {
3556
+ t(P) && t(S) && Ee.value ? (p(), O(co, {
3534
3557
  key: 0,
3535
3558
  class: "sv-checkout__title",
3536
- "trial-start-date": He.value,
3537
- "trial-period": t(C),
3538
- "subscription-start-date": De.value,
3539
- "subscription-name": ((O = t(T)) == null ? void 0 : O.name) ?? "",
3540
- amount: (W = t(r)) == null ? void 0 : W.invoice_amount_including_tax,
3541
- "billing-period": (X = t(T)) == null ? void 0 : X.billing_period,
3542
- "country-code": t(s).form.value.country
3543
- }, null, 8, ["trial-start-date", "trial-period", "subscription-start-date", "subscription-name", "amount", "billing-period", "country-code"])) : j("", !0)
3559
+ "trial-start-date": Ze.value,
3560
+ "trial-period": t(D),
3561
+ "subscription-start-date": Ee.value,
3562
+ "subscription-name": ((j = t(S)) == null ? void 0 : j.name) ?? "",
3563
+ amount: (W = t(P)) == null ? void 0 : W.invoice_amount_including_tax,
3564
+ "billing-period": (Z = t(S)) == null ? void 0 : Z.billing_period,
3565
+ "country-code": t(l).form.value.country
3566
+ }, null, 8, ["trial-start-date", "trial-period", "subscription-start-date", "subscription-name", "amount", "billing-period", "country-code"])) : U("", !0)
3544
3567
  ];
3545
3568
  }),
3546
3569
  _: 1
@@ -3548,84 +3571,84 @@ const Ro = {
3548
3571
  ])
3549
3572
  ]),
3550
3573
  content: b(() => {
3551
- var O, W, X;
3574
+ var j, W, Z;
3552
3575
  return [
3553
- t(K) ? (d(), S(uo, {
3576
+ t(R) ? (p(), O(yo, {
3554
3577
  key: 0,
3555
3578
  class: "sv-checkout__completed-payment",
3556
- onContinueToMerchant: rt
3557
- })) : (d(), z(me, { key: 1 }, [
3558
- t(T) && t(x) ? (d(), S(kt, {
3579
+ onContinueToMerchant: st
3580
+ })) : (p(), $(me, { key: 1 }, [
3581
+ t(S) && t(L) ? (p(), O(zt, {
3559
3582
  key: 0,
3560
3583
  class: "sv-checkout__mobile-order-summary",
3561
- subscription: t(T),
3562
- invoice: t(r),
3563
- "invoice-preview-by-billing-period": t(A),
3564
- "trial-invoice": t(f),
3565
- "enabled-pricing-ids": ue.value,
3566
- "trial-period": t(C),
3567
- avatar: (O = c.value) == null ? void 0 : O.avatar,
3568
- "is-paid": t(K),
3584
+ subscription: t(S),
3585
+ invoice: t(P),
3586
+ "invoice-preview-by-billing-period": t(c),
3587
+ "trial-invoice": t(y),
3588
+ "enabled-pricing-ids": ce.value,
3589
+ "trial-period": t(D),
3590
+ avatar: (j = u.value) == null ? void 0 : j.avatar,
3591
+ "is-paid": t(R),
3569
3592
  "is-usage-based": J.value,
3570
- "is-preview-and-payment-methods-pending": t(q) || t(G),
3571
- "country-code": t(s).form.value.country,
3593
+ "is-preview-and-payment-methods-pending": t(X) || t(de),
3594
+ "country-code": t(l).form.value.country,
3572
3595
  collapsible: "collapsed",
3573
3596
  variant: "products-inline",
3574
- onBillingPeriodChange: lt
3575
- }, null, 8, ["subscription", "invoice", "invoice-preview-by-billing-period", "trial-invoice", "enabled-pricing-ids", "trial-period", "avatar", "is-paid", "is-usage-based", "is-preview-and-payment-methods-pending", "country-code"])) : j("", !0),
3576
- ii.value && t(T) ? (d(), S(t(o), {
3597
+ onBillingPeriodChange: ct
3598
+ }, null, 8, ["subscription", "invoice", "invoice-preview-by-billing-period", "trial-invoice", "enabled-pricing-ids", "trial-period", "avatar", "is-paid", "is-usage-based", "is-preview-and-payment-methods-pending", "country-code"])) : U("", !0),
3599
+ oi.value && t(S) ? (p(), O(t(a), {
3577
3600
  key: 1,
3578
- "seats-values": Ce.value,
3579
- "onUpdate:seatsValues": w[0] || (w[0] = (pe) => Ce.value = pe),
3580
- "units-values": xe.value,
3581
- "onUpdate:unitsValues": w[1] || (w[1] = (pe) => xe.value = pe),
3582
- "enabled-pricing-ids": ue.value,
3583
- "onUpdate:enabledPricingIds": w[2] || (w[2] = (pe) => ue.value = pe),
3601
+ "seats-values": Le.value,
3602
+ "onUpdate:seatsValues": k[0] || (k[0] = (pe) => Le.value = pe),
3603
+ "units-values": Te.value,
3604
+ "onUpdate:unitsValues": k[1] || (k[1] = (pe) => Te.value = pe),
3605
+ "enabled-pricing-ids": ce.value,
3606
+ "onUpdate:enabledPricingIds": k[2] || (k[2] = (pe) => ce.value = pe),
3584
3607
  class: "sv-checkout__plan-customization",
3585
- subscription: t(T),
3586
- "initial-seats-values": (W = t(s).initialState) == null ? void 0 : W.value.seatsValues,
3587
- "initial-units-values": (X = t(s).initialState) == null ? void 0 : X.value.unitsValues,
3588
- "billing-period": t(T).billing_period,
3589
- currency: fe.value
3590
- }, null, 8, ["seats-values", "units-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "initial-units-values", "billing-period", "currency"])) : j("", !0),
3591
- t(s).form.value.country && t(H) && le.value ? (d(), S(qo, {
3608
+ subscription: t(S),
3609
+ "initial-seats-values": (W = t(l).initialState) == null ? void 0 : W.value.seatsValues,
3610
+ "initial-units-values": (Z = t(l).initialState) == null ? void 0 : Z.value.unitsValues,
3611
+ "billing-period": t(S).billing_period,
3612
+ currency: ve.value
3613
+ }, null, 8, ["seats-values", "units-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "initial-units-values", "billing-period", "currency"])) : U("", !0),
3614
+ t(l).form.value.country && t(Q) && re.value ? (p(), O(ia, {
3592
3615
  key: 2,
3593
3616
  class: "sv-checkout__express-payment-methods",
3594
- amount: t(H),
3595
- "country-code": t(s).form.value.country,
3617
+ amount: t(Q),
3618
+ "country-code": t(l).form.value.country,
3596
3619
  locale: t(h),
3597
- "payment-methods-options-response": t(F) ?? [],
3598
- "billing-information": le.value,
3599
- "on-billing-information-change": t(oe),
3600
- onUpdateBillingInformation: ei
3601
- }, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change"])) : j("", !0),
3602
- _(to, {
3603
- modelValue: t(s).form.value,
3604
- "onUpdate:modelValue": w[3] || (w[3] = (pe) => t(s).form.value = pe),
3620
+ "payment-methods-options-response": t(E) ?? [],
3621
+ "billing-information": re.value,
3622
+ "on-billing-information-change": t(ne),
3623
+ onUpdateBillingInformation: ii
3624
+ }, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change"])) : U("", !0),
3625
+ M(ao, {
3626
+ modelValue: t(l).form.value,
3627
+ "onUpdate:modelValue": k[3] || (k[3] = (pe) => t(l).form.value = pe),
3605
3628
  class: "sv-checkout__customer-form",
3606
- validation: t(s).validation,
3607
- "read-only-email": t(E),
3608
- "show-customer-info-on-top": ti.value || t(K),
3609
- "is-billing-information-mandatory": re.value,
3610
- "get-is-field-required": t(s).getIsFieldRequired,
3611
- "read-only": t(K)
3629
+ validation: t(l).validation,
3630
+ "read-only-email": t(z),
3631
+ "show-customer-info-on-top": ni.value || t(R),
3632
+ "is-billing-information-mandatory": ae.value,
3633
+ "get-is-field-required": t(l).getIsFieldRequired,
3634
+ "read-only": t(R)
3612
3635
  }, null, 8, ["modelValue", "validation", "read-only-email", "show-customer-info-on-top", "is-billing-information-mandatory", "get-is-field-required", "read-only"]),
3613
- L("div", ca, [
3614
- _(_e, {
3636
+ w("div", ma, [
3637
+ M(be, {
3615
3638
  variant: "section",
3616
3639
  class: "min-h-[130px]"
3617
3640
  }, {
3618
3641
  default: b(() => {
3619
- var pe, Mt;
3642
+ var pe, It;
3620
3643
  return [
3621
- !t(q) || t(q) && t(F).length > 0 ? (d(), z("div", ua, [
3622
- _(t(se), {
3644
+ !t(X) || t(X) && t(E).length > 0 ? (p(), $("div", ga, [
3645
+ M(t(le), {
3623
3646
  variant: "heading-3",
3624
3647
  tag: "h2",
3625
3648
  class: "sv-checkout__payment-methods-title mb-2"
3626
3649
  }, {
3627
3650
  default: b(() => [
3628
- Q($(t(y)({
3651
+ K(V(t(g)({
3629
3652
  defaultMessage: "Payment method",
3630
3653
  id: "checkout.payment_method_block.title",
3631
3654
  description: "The title of the payment method block in the checkout form"
@@ -3633,27 +3656,27 @@ const Ro = {
3633
3656
  ]),
3634
3657
  _: 1
3635
3658
  }),
3636
- t(s).form.value.country ? t(p) ? (d(), S(We, {
3659
+ t(l).form.value.country ? t(m) ? (p(), O(Je, {
3637
3660
  key: 1,
3638
3661
  class: "sv-checkout__payment-methods-error",
3639
3662
  icon: "error"
3640
3663
  }, {
3641
3664
  title: b(() => [
3642
- Q($(t(y)({
3665
+ K(V(t(g)({
3643
3666
  defaultMessage: "Could not load payment methods",
3644
3667
  id: "checkout.payment_method_block.load_failed_title",
3645
3668
  description: "The title shown when the payment methods failed to load"
3646
3669
  })), 1)
3647
3670
  ]),
3648
3671
  message: b(() => [
3649
- Q($(t(y)({
3672
+ K(V(t(g)({
3650
3673
  defaultMessage: "Check your connection and try again.",
3651
3674
  id: "checkout.payment_method_block.load_failed_message",
3652
3675
  description: "The message shown when the payment methods failed to load"
3653
3676
  })), 1)
3654
3677
  ]),
3655
3678
  action: b(() => [
3656
- _(t(Pe), {
3679
+ M(t(Ne), {
3657
3680
  type: "button",
3658
3681
  intent: "secondary",
3659
3682
  size: "sm",
@@ -3661,7 +3684,7 @@ const Ro = {
3661
3684
  onClick: t(B)
3662
3685
  }, {
3663
3686
  default: b(() => [
3664
- Q($(t(y)({
3687
+ K(V(t(g)({
3665
3688
  defaultMessage: "Try again",
3666
3689
  id: "checkout.payment_method_block.load_failed_retry_button.label",
3667
3690
  description: "The label of the button that loads the payment methods again"
@@ -3671,55 +3694,56 @@ const Ro = {
3671
3694
  }, 8, ["onClick"])
3672
3695
  ]),
3673
3696
  _: 1
3674
- })) : t(F).length === 0 ? (d(), S(We, {
3697
+ })) : t(E).length === 0 ? (p(), O(Je, {
3675
3698
  key: 2,
3676
3699
  class: "sv-checkout__payment-methods-empty",
3677
3700
  icon: "credit_card_off"
3678
3701
  }, {
3679
3702
  title: b(() => [
3680
- Q($(t(y)({
3703
+ K(V(t(g)({
3681
3704
  defaultMessage: "No payment methods available",
3682
3705
  id: "checkout.payment_method_block.no_payment_methods_available_title",
3683
3706
  description: "The title shown when there are no available payment methods"
3684
3707
  })), 1)
3685
3708
  ]),
3686
3709
  _: 1
3687
- })) : t(H) && t(s).form.value.country ? (d(), z("div", da, [
3688
- L("div", {
3689
- class: he({ "pointer-events-none opacity-60": ie.value })
3710
+ })) : t(Q) && t(l).form.value.country ? (p(), $("div", ya, [
3711
+ w("div", {
3712
+ class: Ie({ "pointer-events-none opacity-60": te.value })
3690
3713
  }, [
3691
- _(t(n), {
3714
+ M(t(n), {
3692
3715
  ref_key: "paymentIntegrationFormRef",
3693
- ref: u,
3694
- "country-code": t(s).form.value.country,
3695
- context: t(R),
3696
- amount: t(H),
3697
- email: t(s).form.value.email,
3716
+ ref: d,
3717
+ "country-code": t(l).form.value.country,
3718
+ context: t(T),
3719
+ amount: t(Q),
3720
+ email: t(l).form.value.email,
3698
3721
  variant: "AUTHORIZE",
3699
- "payment-method-options": t(F) ?? [],
3700
- "validate-on-submit": ne,
3701
- "redirects-on-success": ai.value,
3722
+ "payment-method-options": t(E) ?? [],
3723
+ "validate-on-submit": G,
3724
+ "redirects-on-success": li.value,
3702
3725
  "force-store-payment-method": "",
3703
- "billing-entity-name": (Mt = (pe = t(T)) == null ? void 0 : pe.billing_entity) == null ? void 0 : Mt.legal_name,
3704
- onPaymentSuccess: ri,
3705
- onPaymentFailed: U,
3706
- onReady: w[4] || (w[4] = (va) => l("ready"))
3726
+ "billing-entity-name": (It = (pe = t(S)) == null ? void 0 : pe.billing_entity) == null ? void 0 : It.legal_name,
3727
+ onPaymentSuccess: si,
3728
+ onPaymentFailed: oe,
3729
+ onInvalid: oe,
3730
+ onReady: k[4] || (k[4] = (Ma) => r("ready"))
3707
3731
  }, null, 8, ["country-code", "context", "amount", "email", "payment-method-options", "redirects-on-success", "billing-entity-name"])
3708
3732
  ], 2)
3709
- ])) : j("", !0) : (d(), S(We, {
3733
+ ])) : U("", !0) : (p(), O(Je, {
3710
3734
  key: 0,
3711
3735
  class: "sv-checkout__payment-methods-empty",
3712
3736
  icon: "captive_portal"
3713
3737
  }, {
3714
3738
  title: b(() => [
3715
- Q($(t(y)({
3739
+ K(V(t(g)({
3716
3740
  defaultMessage: "Select your billing country",
3717
3741
  id: "checkout.payment_method_block.no_country_selected_title",
3718
3742
  description: "The title shown when no country is selected"
3719
3743
  })), 1)
3720
3744
  ]),
3721
3745
  message: b(() => [
3722
- Q($(t(y)({
3746
+ K(V(t(g)({
3723
3747
  defaultMessage: "Payment methods will be shown after you select the billing country.",
3724
3748
  id: "checkout.payment_method_block.no_country_selected_message",
3725
3749
  description: "The message shown when no country is selected"
@@ -3727,7 +3751,7 @@ const Ro = {
3727
3751
  ]),
3728
3752
  _: 1
3729
3753
  }))
3730
- ])) : j("", !0)
3754
+ ])) : U("", !0)
3731
3755
  ];
3732
3756
  }),
3733
3757
  _: 1
@@ -3737,85 +3761,85 @@ const Ro = {
3737
3761
  ];
3738
3762
  }),
3739
3763
  aside: b(() => [
3740
- L("div", pa, [
3741
- _(_e, {
3764
+ w("div", va, [
3765
+ M(be, {
3742
3766
  variant: "section",
3743
3767
  class: "min-h-[220px]"
3744
3768
  }, {
3745
3769
  default: b(() => {
3746
- var O;
3770
+ var j;
3747
3771
  return [
3748
- t(T) && t(r) ? (d(), S(kt, {
3772
+ t(S) && t(P) ? (p(), O(zt, {
3749
3773
  key: 0,
3750
- subscription: t(T),
3751
- invoice: t(r),
3752
- "invoice-preview-by-billing-period": t(A),
3753
- "trial-invoice": t(f),
3754
- "enabled-pricing-ids": ue.value,
3755
- "trial-period": t(C),
3756
- "country-code": t(s).form.value.country,
3757
- avatar: (O = c.value) == null ? void 0 : O.avatar,
3758
- "is-paid": t(K),
3774
+ subscription: t(S),
3775
+ invoice: t(P),
3776
+ "invoice-preview-by-billing-period": t(c),
3777
+ "trial-invoice": t(y),
3778
+ "enabled-pricing-ids": ce.value,
3779
+ "trial-period": t(D),
3780
+ "country-code": t(l).form.value.country,
3781
+ avatar: (j = u.value) == null ? void 0 : j.avatar,
3782
+ "is-paid": t(R),
3759
3783
  "is-usage-based": J.value,
3760
- "is-preview-and-payment-methods-pending": t(q) || t(G),
3761
- onBillingPeriodChange: lt
3762
- }, null, 8, ["subscription", "invoice", "invoice-preview-by-billing-period", "trial-invoice", "enabled-pricing-ids", "trial-period", "country-code", "avatar", "is-paid", "is-usage-based", "is-preview-and-payment-methods-pending"])) : j("", !0)
3784
+ "is-preview-and-payment-methods-pending": t(X) || t(de),
3785
+ onBillingPeriodChange: ct
3786
+ }, null, 8, ["subscription", "invoice", "invoice-preview-by-billing-period", "trial-invoice", "enabled-pricing-ids", "trial-period", "country-code", "avatar", "is-paid", "is-usage-based", "is-preview-and-payment-methods-pending"])) : U("", !0)
3763
3787
  ];
3764
3788
  }),
3765
3789
  _: 1
3766
3790
  })
3767
3791
  ]),
3768
- t(K) ? j("", !0) : (d(), z(me, { key: 0 }, [
3769
- _(la, {
3792
+ t(R) ? U("", !0) : (p(), $(me, { key: 0 }, [
3793
+ M(da, {
3770
3794
  class: "sv-checkout__promotion-code",
3771
- "promotion-code": Le.value,
3772
- "onUpdate:appliedCode": w[5] || (w[5] = (O) => Le.value = O),
3773
- onRemove: t(ni),
3774
- onApply: t(at)
3795
+ "promotion-code": we.value,
3796
+ "onUpdate:appliedCode": k[5] || (k[5] = (j) => we.value = j),
3797
+ onRemove: t(ai),
3798
+ onApply: t(lt)
3775
3799
  }, null, 8, ["promotion-code", "onRemove", "onApply"]),
3776
- t(Ze) ? (d(), S(t(vi), {
3800
+ t(We) ? (p(), O(t(hi), {
3777
3801
  key: 0,
3778
3802
  class: "sv-checkout__promotion-error mt-2",
3779
- title: t(Ze)
3780
- }, null, 8, ["title"])) : j("", !0),
3781
- L("div", ma, [
3782
- _(_e, { class: "sv-checkout__submit-skeleton min-h-[44px]" }, {
3803
+ title: t(We)
3804
+ }, null, 8, ["title"])) : U("", !0),
3805
+ w("div", fa, [
3806
+ M(be, { class: "sv-checkout__submit-skeleton min-h-[44px]" }, {
3783
3807
  default: b(() => [
3784
- t(r) ? (d(), S(t(Pe), {
3808
+ t(P) ? (p(), O(t(Ne), {
3785
3809
  key: 0,
3786
3810
  type: "button",
3787
3811
  size: "lg",
3788
3812
  class: "sv-action sv-action--primary sv-action--full-width sv-checkout__submit w-full",
3789
- disabled: t(oi) || t(F).length === 0 || ie.value,
3790
- loading: ie.value,
3791
- onClick: ae
3813
+ disabled: t(ri) || t(E).length === 0 || te.value,
3814
+ loading: te.value,
3815
+ onClick: ie
3792
3816
  }, {
3793
3817
  default: b(() => [
3794
- Q($(ee.value ? t(y)({
3818
+ K(V(q.value ? t(g)({
3795
3819
  defaultMessage: "Start trial",
3796
3820
  id: "checkout.pay_and_subscribe_button_trial.label",
3797
3821
  description: "The label of the start trial button in the checkout form"
3798
- }) : t(y)({
3822
+ }) : t(g)({
3799
3823
  defaultMessage: "Pay and subscribe",
3800
3824
  id: "checkout.pay_and_subscribe_button.label",
3801
3825
  description: "The label of the pay and subscribe button in the checkout form"
3802
3826
  })), 1)
3803
3827
  ]),
3804
3828
  _: 1
3805
- }, 8, ["disabled", "loading"])) : j("", !0)
3829
+ }, 8, ["disabled", "loading"])) : U("", !0)
3806
3830
  ]),
3807
3831
  _: 1
3808
3832
  }),
3809
- _(Ji, { "payment-method-options": t(F) }, null, 8, ["payment-method-options"])
3833
+ M(on, { "payment-method-options": t(E) }, null, 8, ["payment-method-options"])
3810
3834
  ])
3811
3835
  ], 64))
3812
3836
  ]),
3813
3837
  _: 2
3814
3838
  }, [
3815
- t(N) && !t(K) ? {
3839
+ t(H) && !t(R) ? {
3816
3840
  name: "footer",
3817
3841
  fn: b(() => [
3818
- _(t(se), {
3842
+ M(t(le), {
3819
3843
  tag: "div",
3820
3844
  variant: "body-xs",
3821
3845
  color: "subtle",
@@ -3823,7 +3847,7 @@ const Ro = {
3823
3847
  "data-testid": "checkout-terms"
3824
3848
  }, {
3825
3849
  default: b(() => [
3826
- _(jo, { source: t(N) }, null, 8, ["source"])
3850
+ M(Uo, { source: t(H) }, null, 8, ["source"])
3827
3851
  ]),
3828
3852
  _: 1
3829
3853
  })
@@ -3832,7 +3856,7 @@ const Ro = {
3832
3856
  } : void 0
3833
3857
  ]), 1032, ["class"]));
3834
3858
  }
3835
- }), ya = /* @__PURE__ */ ce({
3859
+ }), ha = /* @__PURE__ */ se({
3836
3860
  __name: "Checkout.entry",
3837
3861
  props: {
3838
3862
  environment: { type: String },
@@ -3853,31 +3877,31 @@ const Ro = {
3853
3877
  },
3854
3878
  emits: ["error", "ready"],
3855
3879
  setup(e, { emit: i }) {
3856
- var c;
3857
- const n = ln("checkout"), o = e, a = i, l = ((c = o.configuration) == null ? void 0 : c.couponCode) ?? Te("coupon_code") ?? void 0;
3858
- return (g, u) => (d(), S(t(gi), {
3859
- entry: g.$props,
3880
+ var u;
3881
+ const n = dn("checkout"), a = e, o = i, r = ((u = a.configuration) == null ? void 0 : u.couponCode) ?? Se("coupon_code") ?? void 0;
3882
+ return (s, d) => (p(), O(t(fi), {
3883
+ entry: s.$props,
3860
3884
  "component-name": t(n),
3861
3885
  "allowed-portal-types": ["INIT_PRICING_PLAN_SUBSCRIPTION"],
3862
- onError: u[1] || (u[1] = (I) => g.$emit("error", I))
3886
+ onError: d[1] || (d[1] = (I) => s.$emit("error", I))
3863
3887
  }, {
3864
3888
  default: b(() => {
3865
- var I, y, h, P, m;
3889
+ var I, g, h, C, f;
3866
3890
  return [
3867
- _(ga, {
3891
+ M(_a, {
3868
3892
  configuration: {
3869
- avatar: (y = (I = e.branding) == null ? void 0 : I.emblem) == null ? void 0 : y.public_url,
3893
+ avatar: (g = (I = e.branding) == null ? void 0 : I.emblem) == null ? void 0 : g.public_url,
3870
3894
  email: (h = e.configuration) == null ? void 0 : h.email,
3871
- countryCode: (P = e.configuration) == null ? void 0 : P.countryCode,
3872
- enabledPricingIds: (m = e.configuration) == null ? void 0 : m.enabledPricingIds,
3873
- couponCode: t(l)
3895
+ countryCode: (C = e.configuration) == null ? void 0 : C.countryCode,
3896
+ enabledPricingIds: (f = e.configuration) == null ? void 0 : f.enabledPricingIds,
3897
+ couponCode: t(r)
3874
3898
  },
3875
- onReady: u[0] || (u[0] = (x) => a("ready"))
3876
- }, Fe({ _: 2 }, [
3877
- g.$slots["terms-and-conditions"] ? {
3899
+ onReady: d[0] || (d[0] = (L) => o("ready"))
3900
+ }, Ye({ _: 2 }, [
3901
+ s.$slots["terms-and-conditions"] ? {
3878
3902
  name: "terms-and-conditions",
3879
3903
  fn: b(() => [
3880
- Je(g.$slots, "terms-and-conditions")
3904
+ tt(s.$slots, "terms-and-conditions")
3881
3905
  ]),
3882
3906
  key: "0"
3883
3907
  } : void 0
@@ -3887,14 +3911,14 @@ const Ro = {
3887
3911
  _: 3
3888
3912
  }, 8, ["entry", "component-name"]));
3889
3913
  }
3890
- }), { define: lr } = yi(
3891
- ya,
3914
+ }), { define: dr } = _i(
3915
+ ha,
3892
3916
  "checkout"
3893
3917
  );
3894
3918
  export {
3895
- kn as F,
3896
- vo as _,
3897
- jn as a,
3898
- lr as d,
3899
- rr as g
3919
+ Rn as F,
3920
+ Mo as _,
3921
+ Un as a,
3922
+ dr as d,
3923
+ ur as g
3900
3924
  };