@solvimon/solvimon-web 0.1.0-alpha.21 → 0.1.0-alpha.22

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 (216) hide show
  1. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B9WTpz0k.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Co3XAxaY.js} +1 -1
  2. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DJCMa2Lz.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DFv-awxb.mjs} +6 -6
  3. package/dist/{Avatar.vue.es-CJw5z7Uu.js → Avatar.vue.es-D42J_izE.js} +1 -1
  4. package/dist/{Avatar.vue.es-ChcLSNaN.mjs → Avatar.vue.es-DNJ-jexx.mjs} +1 -1
  5. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CTQ5RMtx.js → BillingInformation.vue_vue_type_script_setup_true_lang-BEVkWJXT.js} +1 -1
  6. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DApMAncl.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-D1uVidXk.mjs} +4 -4
  7. package/dist/{Button.vue.es-VQCd3V3C.mjs → Button.vue.es-Dz-2L8dJ.mjs} +1 -1
  8. package/dist/{Button.vue.es-BWl37nzm.js → Button.vue.es-M_jXZda4.js} +1 -1
  9. package/dist/{Checkout.entry.ce-DRHqEFd7.mjs → Checkout.entry.ce-B5-0AM67.mjs} +1298 -1225
  10. package/dist/Checkout.entry.ce-C52gkrNZ.js +1 -0
  11. package/dist/{Chip.vue.es-CXG8o1Qf.mjs → Chip.vue.es-DMK9C78d.mjs} +2 -2
  12. package/dist/{Chip.vue.es-DUgjuRWm.js → Chip.vue.es-G8doKsZb.js} +1 -1
  13. package/dist/{ContextMenu.vue.es-BllxeDTt.js → ContextMenu.vue.es-B3Rz6Ojk.js} +1 -1
  14. package/dist/{ContextMenu.vue.es-C6TKlSXs.mjs → ContextMenu.vue.es-CzkkNoJG.mjs} +4 -4
  15. package/dist/{CustomerBillingInformation.vue.es-CMCZ-lIM.js → CustomerBillingInformation.vue.es-BmtU9Pk0.js} +1 -1
  16. package/dist/{CustomerBillingInformation.vue.es-CKQH_ds0.mjs → CustomerBillingInformation.vue.es-Db6bN2RZ.mjs} +2 -2
  17. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-n097Xf1H.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BGHaTx1A.js} +1 -1
  18. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BxwllXwU.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-fESZVyPe.mjs} +5 -5
  19. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Cnlbp0om.js +1 -0
  20. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CtaoLbrM.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DdMHG1_Y.mjs} +485 -501
  21. package/dist/{DividerText.vue.es-BBdydUy_.js → DividerText.vue.es-D-QxT2OD.js} +1 -1
  22. package/dist/{DividerText.vue.es-Bomiy4if.mjs → DividerText.vue.es-IK2fns6f.mjs} +1 -1
  23. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DXO9xpFT.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CM_8Asmw.js} +1 -1
  24. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C9elbdbF.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-lhJnqrrh.mjs} +4 -4
  25. package/dist/{ErrorNotification.vue.es-C6ngWAVU.mjs → ErrorNotification.vue.es-BGckEwHf.mjs} +2 -2
  26. package/dist/{ErrorNotification.vue.es-0ZC_DozN.js → ErrorNotification.vue.es-Cd2UKPAz.js} +1 -1
  27. package/dist/{IconButton.vue.es-DGLIdHkR.js → IconButton.vue.es-BTAkuFsm.js} +1 -1
  28. package/dist/{IconButton.vue.es-DAR7e8NA.mjs → IconButton.vue.es-C4dQEQAc.mjs} +2 -2
  29. package/dist/{IconTitle.vue.es-Bbusc4wK.mjs → IconTitle.vue.es-BmX68uJx.mjs} +3 -3
  30. package/dist/{IconTitle.vue.es-D-q6w2E-.js → IconTitle.vue.es-CmR2xoeu.js} +1 -1
  31. package/dist/{Input.vue.es-AY1c0Rui.mjs → Input.vue.es-BGPELaZU.mjs} +2 -2
  32. package/dist/{Input.vue.es-BN95nPBw.js → Input.vue.es-CTOrmrcB.js} +1 -1
  33. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-1WjSbPEP.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CMEOOuSU.mjs} +2 -2
  34. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-qiBCPY8l.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-bheNAKzK.js} +1 -1
  35. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Xo9BR6AD.js +1 -0
  36. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-D99nuBRE.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-avhwysNq.mjs} +3 -3
  37. package/dist/{InvoiceSummary.vue.es-Bs5c2Ovx.mjs → InvoiceSummary.vue.es-BWLiwlNs.mjs} +692 -705
  38. package/dist/InvoiceSummary.vue.es-hpG8Tq1D.js +1 -0
  39. package/dist/{Modal.vue.es-Chi6_MH_.js → Modal.vue.es-BD4vUaOQ.js} +1 -1
  40. package/dist/{Modal.vue.es-DSkC4eMv.mjs → Modal.vue.es-B_G8NQS2.mjs} +5 -5
  41. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-vD88j_U7.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BnilyGBO.mjs} +3 -3
  42. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-Draz_8Ts.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-CSv-Luvz.js} +1 -1
  43. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Db6jAkqD.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DIJbzWMV.js} +1 -1
  44. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DVif_ME8.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DuorCFo9.mjs} +3 -3
  45. package/dist/{PaymentHistoryBlock-budeR7ep.mjs → PaymentHistoryBlock-ComJzB3H.mjs} +1 -1
  46. package/dist/{PaymentHistoryBlock-DGJ_PiVq.js → PaymentHistoryBlock-DSHW_eW1.js} +1 -1
  47. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dv-3suBX.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DUN0Hf2v.js} +1 -1
  48. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C28ofG7N.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-hjtksV2D.mjs} +4 -4
  49. package/dist/{PaymentIntegrationForm-Crrhar96.mjs → PaymentIntegrationForm-CH5B6BY5.mjs} +1 -1
  50. package/dist/{PaymentIntegrationForm-DqqGcEP1.js → PaymentIntegrationForm-CwfCLnKt.js} +1 -1
  51. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C4bk0m8g.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BqYk4_T9.mjs} +3 -3
  52. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CcEEdHQJ.js → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DzSQC951.js} +1 -1
  53. package/dist/{PaymentIntegrationFormAdyen-DM-xMcm0.mjs → PaymentIntegrationFormAdyen-DfN7cPYZ.mjs} +5 -5
  54. package/dist/{PaymentIntegrationFormAdyen-DronjwO3.js → PaymentIntegrationFormAdyen-Q48aDXR7.js} +1 -1
  55. package/dist/{PaymentIntegrationFormStripe-ybM6wirp.js → PaymentIntegrationFormStripe-BSEqarl7.js} +1 -1
  56. package/dist/{PaymentIntegrationFormStripe-yBm4KnpV.mjs → PaymentIntegrationFormStripe-CBsXDuhy.mjs} +4 -4
  57. package/dist/{PaymentMethod.vue.es-Ctw9Es1g.js → PaymentMethod.vue.es-D18g-QB4.js} +1 -1
  58. package/dist/{PaymentMethod.vue.es-BdMcKq8_.mjs → PaymentMethod.vue.es-DkQdPXfk.mjs} +3 -3
  59. package/dist/{PaymentMethodForm-C1bIGX10.mjs → PaymentMethodForm-CpIZKfPH.mjs} +1 -1
  60. package/dist/{PaymentMethodForm-BQ5TVHlS.js → PaymentMethodForm-DK8ntFA0.js} +1 -1
  61. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-5KKkuVt5.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-C1tGJsay.mjs} +5 -5
  62. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-V88bCeDt.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-D7fDguwa.js} +1 -1
  63. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CnmZ9dvP.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-C6BcIkEV.mjs} +6 -6
  64. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-B_207kq5.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-H3vrPllf.js} +1 -1
  65. package/dist/PlanCustomizationEditor-0zCXN-cv.mjs +877 -0
  66. package/dist/PlanCustomizationEditor-XpofGULc.js +1 -0
  67. package/dist/{PricingGroupRangeInput.vue.es-Bnb-ARie.mjs → PricingGroupRangeInput.vue.es-8_5nfZDI.mjs} +4 -4
  68. package/dist/{PricingGroupRangeInput.vue.es-D82XvoC_.js → PricingGroupRangeInput.vue.es-QnpfHxaY.js} +1 -1
  69. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CxMkCmti.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CGJhKKNL.js} +1 -1
  70. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-skQMgHEL.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-t6h1j6WD.mjs} +5 -5
  71. package/dist/{RadioGroupExtended.vue.es-WDbo_yj1.mjs → RadioGroupExtended.vue.es-C92xlCFQ.mjs} +3 -3
  72. package/dist/{RadioGroupExtended.vue.es-B1YtLNKG.js → RadioGroupExtended.vue.es-Cb1iD73r.js} +1 -1
  73. package/dist/{Section.vue.es-DuK52y67.js → Section.vue.es-Btff-cLY.js} +1 -1
  74. package/dist/{Section.vue.es-By1JltGi.mjs → Section.vue.es-DQ5H7mqW.mjs} +1 -1
  75. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Ct3ZNq-j.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BfvX14E3.js} +1 -1
  76. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CS3KIkPL.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DKsunuGT.mjs} +6 -6
  77. package/dist/{SubscriptionSchedules-DDCjVEbG.mjs → SubscriptionSchedules-Dc0rUnnf.mjs} +1 -1
  78. package/dist/{SubscriptionSchedules-DEjIERyF.js → SubscriptionSchedules-pzNsego6.js} +1 -1
  79. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-JAedXFzq.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Brs9qDs5.mjs} +1655 -1620
  80. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-nmVRb6hj.js +1 -0
  81. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DVMS4gJQ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-C1mkIPMr.mjs} +3 -3
  82. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-D-Fa54M6.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-s5_uhyuB.js} +1 -1
  83. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DiXmEjUD.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-CFmCJK8M.js} +1 -1
  84. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BckZJtOc.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DSoNs7Xx.mjs} +7 -7
  85. package/dist/{TooltipParagraph.vue.es-sTgWAgcd.js → TooltipParagraph.vue.es-BaqCDjl8.js} +1 -1
  86. package/dist/{TooltipParagraph.vue.es-DYu2ReL7.mjs → TooltipParagraph.vue.es-CIedcXGT.mjs} +1 -1
  87. package/dist/{TrialChip.vue.es-Cl-9_pdr.js → TrialChip.vue.es-BzNI94k0.js} +1 -1
  88. package/dist/{TrialChip.vue.es-DX53r0ku.mjs → TrialChip.vue.es-DkBuMNr_.mjs} +2 -2
  89. package/dist/{cn.es-DjnGlmqV.mjs → cn.es-BGqYNPM3.mjs} +2 -2
  90. package/dist/{cn.es-CNvIP217.js → cn.es-CvmLj7KH.js} +1 -1
  91. package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
  92. package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
  93. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
  94. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +6 -6
  95. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
  96. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
  97. package/dist/components/Invoice/Invoice.cjs +1 -1
  98. package/dist/components/Invoice/Invoice.mjs +9 -9
  99. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
  100. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +3 -3
  101. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
  102. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
  103. package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
  104. package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
  105. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
  106. package/dist/components/PaymentHistory/PaymentHistory.mjs +3 -3
  107. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
  108. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
  109. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
  110. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
  111. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
  112. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
  113. package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
  114. package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
  115. package/dist/{customElements-Com2NiGU.mjs → customElements-CSE7dwUr.mjs} +312 -282
  116. package/dist/{customElements-Bt8PbjIn.js → customElements-Vox1PB6G.js} +42 -18
  117. package/dist/{customer-CKgMJEgv.mjs → customer-5krPxZ8i.mjs} +1 -1
  118. package/dist/{customer-Q4JGfVfq.js → customer-Dsq-Moea.js} +1 -1
  119. package/dist/{de-DE-DqLD4IX2.js → de-DE-BSlbAnPE.js} +1 -1
  120. package/dist/{de-DE-Ds_yJLS3.js → de-DE-C3DzP1nj.js} +1 -1
  121. package/dist/{de-DE-DBO5f-Eu.mjs → de-DE-DXsG-vXA.mjs} +13 -8
  122. package/dist/{de-DE-CVCmzlNH.mjs → de-DE-DsFtpLsx.mjs} +2 -0
  123. package/dist/{en-US-CvFmmI_O.js → en-US-9xdcz3T5.js} +1 -1
  124. package/dist/{en-US-3UmnS23B.mjs → en-US-C939IZ5i.mjs} +13 -8
  125. package/dist/{en-US-DVR9O7b_.mjs → en-US-DvkvbV0p.mjs} +2 -0
  126. package/dist/{en-US-C51ILrVv.js → en-US-X_pSFsNm.js} +1 -1
  127. package/dist/index.cjs +1 -1
  128. package/dist/index.mjs +1 -1
  129. package/dist/{invoices-CV9iAUHf.mjs → invoices-DRgfpkJ6.mjs} +8 -5
  130. package/dist/invoices-xOV2YaEV.js +1 -0
  131. package/dist/{it-IT-CxBRisRm.mjs → it-IT-BxpwB3oJ.mjs} +8 -3
  132. package/dist/it-IT-DT3rfjOY.js +1 -0
  133. package/dist/{it-IT-CDMnnFKZ.mjs → it-IT-TE7oqvXa.mjs} +2 -0
  134. package/dist/{it-IT-Dxw59eR_.js → it-IT-YBtHAao1.js} +1 -1
  135. package/dist/{nl-NL-Btbfd9p2.js → nl-NL-C8wnyKju.js} +1 -1
  136. package/dist/nl-NL-DfkhOJKc.js +1 -0
  137. package/dist/{nl-NL-o3UvtSNg.mjs → nl-NL-Di3-JArV.mjs} +2 -0
  138. package/dist/{nl-NL-BWGkVweu.mjs → nl-NL-na2I4aiP.mjs} +8 -3
  139. package/dist/{paymentMethods-ChWAwDSF.js → paymentMethods-CRDIw9lz.js} +1 -1
  140. package/dist/{paymentMethods-BuwoJ1y9.mjs → paymentMethods-PmkHYomw.mjs} +1 -1
  141. package/dist/{payments-C_cMXQzE.mjs → payments-Dvqh6CGW.mjs} +1 -1
  142. package/dist/{payments-DGckugN0.js → payments-jAgXhdp_.js} +1 -1
  143. package/dist/pricingItemConfigs.es-D4aYkYcf.js +1 -0
  144. package/dist/{pricingItemConfigs.es-DMf1e6y7.mjs → pricingItemConfigs.es-ORxsk_YS.mjs} +23 -22
  145. package/dist/pricingPlanSchedule-BM8vsKkV.js +1 -0
  146. package/dist/pricingPlanSchedule-BPrS2WRd.mjs +132 -0
  147. package/dist/screens/Checkout/Checkout.cjs +1 -1
  148. package/dist/screens/Checkout/Checkout.mjs +2 -2
  149. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
  150. package/dist/screens/CustomerOverview/CustomerOverview.mjs +11 -11
  151. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
  152. package/dist/screens/PayInvoice/PayInvoice.mjs +13 -13
  153. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
  154. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
  155. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
  156. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +20 -20
  157. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
  158. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +19 -19
  159. package/dist/{subscription-CvfAEJeP.mjs → subscription-CrVOr5MF.mjs} +1 -1
  160. package/dist/{subscription-9GORG-Gt.js → subscription-ZA62t4E9.js} +1 -1
  161. package/dist/{subscriptions-B5VqRayX.mjs → subscriptions-XDyI2Cqm.mjs} +1 -1
  162. package/dist/{subscriptions-X0Ciw8z3.js → subscriptions-fJcj88X9.js} +1 -1
  163. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +1 -0
  164. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +1 -0
  165. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +6 -0
  166. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +6 -0
  167. package/dist/types/composables/useInvoicePreview.types.d.ts +1 -0
  168. package/dist/types/public/components/Invoice/Invoice.types.d.ts +1 -1
  169. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +1 -1
  170. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +1 -1
  171. package/dist/{useActionDispatchProvider-e2lQXTid.mjs → useActionDispatchProvider-B8-oycQk.mjs} +1 -1
  172. package/dist/{useActionDispatchProvider-B54GYEY7.js → useActionDispatchProvider-CNAuaHdm.js} +1 -1
  173. package/dist/{useCustomer-CC9zxV6c.mjs → useCustomer-CP8eWUZV.mjs} +1 -1
  174. package/dist/{useCustomer-BJwJ9BkJ.js → useCustomer-DSx-wN-6.js} +1 -1
  175. package/dist/useCustomerFormLabels-DW6jnDYH.mjs +968 -0
  176. package/dist/useCustomerFormLabels-TVTgy0MT.js +1 -0
  177. package/dist/{useExperimentalFeature-B0IFn3Uw.mjs → useExperimentalFeature-BvE_EOX-.mjs} +1 -1
  178. package/dist/{useExperimentalFeature-8Mzpj5wc.js → useExperimentalFeature-CC-DrIcL.js} +1 -1
  179. package/dist/{useInvoiceData-Bblwdl0f.js → useInvoiceData-CRRPdXc6.js} +1 -1
  180. package/dist/{useInvoiceData-6mHUZC9a.mjs → useInvoiceData-D8ds05CX.mjs} +2 -2
  181. package/dist/{useInvoicesList-_U1-tn9_.js → useInvoicesList-DIfQcvER.js} +1 -1
  182. package/dist/{useInvoicesList-B5H5JfvY.mjs → useInvoicesList-SJU5YWBQ.mjs} +7 -7
  183. package/dist/{useLoadInitialData-CezlvhBV.js → useLoadInitialData-DsabgMLZ.js} +1 -1
  184. package/dist/{useLoadInitialData-ux_wpNiR.mjs → useLoadInitialData-MUljS38K.mjs} +1 -1
  185. package/dist/{usePaymentMethodAvailability-DRwrBdto.js → usePaymentMethodAvailability-Bt7P9InI.js} +1 -1
  186. package/dist/{usePaymentMethodAvailability-CkR4TwoV.mjs → usePaymentMethodAvailability-D0NUanyF.mjs} +4 -4
  187. package/dist/{usePaymentMethodOptions-BfnLBZOo.mjs → usePaymentMethodOptions-B7JYkGsw.mjs} +1 -1
  188. package/dist/{usePaymentMethodOptions-B6GIM9q4.js → usePaymentMethodOptions-cT1o-BA1.js} +1 -1
  189. package/dist/{usePaymentMethods-C3QfLSrP.mjs → usePaymentMethods-CpzqXQUT.mjs} +1 -1
  190. package/dist/{usePaymentMethods-GFmQRp0X.js → usePaymentMethods-DNVw2eVg.js} +1 -1
  191. package/dist/{usePayments-SQF_V7oL.js → usePayments-D9Eo-uBk.js} +1 -1
  192. package/dist/{usePayments-BkwGyZT0.mjs → usePayments-Gx9kBvNB.mjs} +6 -6
  193. package/dist/{usePortal-DDG9b6FI.mjs → usePortal-3VCZwSUE.mjs} +1 -1
  194. package/dist/{usePortal-BdM7hDge.js → usePortal-DsebXdhx.js} +1 -1
  195. package/dist/{useSubscription-BJJYHYgr.mjs → useSubscription-DnL1wVh1.mjs} +1 -1
  196. package/dist/{useSubscription-Q4C2DPhw.js → useSubscription-K_gP9TeX.js} +1 -1
  197. package/dist/{useTimePeriod.es-pepm2TpV.js → useTimePeriod.es-CmltiTE-.js} +1 -1
  198. package/dist/{useTimePeriod.es-9tZvAhyb.mjs → useTimePeriod.es-DMtKzcoB.mjs} +1 -1
  199. package/dist/wallets.es-CNIMW5ay.js +1 -0
  200. package/dist/wallets.es-eH2C2ygn.mjs +102 -0
  201. package/package.json +1 -1
  202. package/dist/Checkout.entry.ce-BTVuGyNq.js +0 -1
  203. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C_yKvYtG.js +0 -1
  204. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-BXTInmf9.js +0 -1
  205. package/dist/InvoiceSummary.vue.es-B0MPR0oI.js +0 -1
  206. package/dist/PlanCustomizationEditor-CCOTD6Qu.mjs +0 -769
  207. package/dist/PlanCustomizationEditor-CiZnVCM6.js +0 -1
  208. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BlX0W6lw.js +0 -1
  209. package/dist/invoices-CvpL4rv5.js +0 -1
  210. package/dist/it-IT-CFEfSpPH.js +0 -1
  211. package/dist/nl-NL-jtVgF3jx.js +0 -1
  212. package/dist/pricingItemConfigs.es-DlybwIh1.js +0 -1
  213. package/dist/pricingPlanSchedule-COfmWv_o.js +0 -1
  214. package/dist/pricingPlanSchedule-J1nb9pCu.mjs +0 -129
  215. package/dist/useCustomerFormLabels-72Pxw8X5.js +0 -1
  216. package/dist/useCustomerFormLabels-V2YuYMLU.mjs +0 -930
@@ -1,46 +1,46 @@
1
- import { unref as t, inject as Zt, ref as V, computed as b, onMounted as Te, toRaw as Xt, watch as Le, defineComponent as se, openBlock as g, createBlock as k, withCtx as I, createElementVNode as w, createVNode as D, createTextVNode as K, toDisplayString as F, useModel as Wt, createElementBlock as Z, withModifiers as $e, Fragment as fe, createCommentVNode as B, createSlots as qe, normalizeClass as he, mergeModels as yt, renderSlot as Xe, nextTick as Qe, mergeProps as vt, withDirectives as qt, withKeys as ft, vShow as Jt, defineAsyncComponent as _t } from "vue";
2
- import { I as ei, b as _e, u as ge, _ as le, d as ti, e as ii } from "./customElements-Com2NiGU.mjs";
3
- import { u as xt } from "./useTimePeriod.es-9tZvAhyb.mjs";
4
- import { b as Oe, f as be } from "./formatting.es-RclXHhKo.mjs";
5
- import { _ as Ie, a as ze } from "./Button.vue.es-VQCd3V3C.mjs";
6
- import { _ as oi } from "./ErrorNotification.vue.es-C6ngWAVU.mjs";
7
- import { c as ni } from "./countryData.es-BegoD-cZ.mjs";
8
- import { c as ai } from "./subscriptions-B5VqRayX.mjs";
9
- import { A as Pe } from "./error-BHVZJGwD.mjs";
10
- import { c as ri, _ as li } from "./TrialChip.vue.es-DX53r0ku.mjs";
11
- import { a as si } from "./useService-Bh47bllz.mjs";
12
- import { c as ci } from "./invoices-CV9iAUHf.mjs";
13
- import { g as De, b as Lt, e as ui } from "./pricingPlanSchedule-J1nb9pCu.mjs";
14
- import { u as di, r as Mt, e as pi, a as je, _ as mi } from "./index-BPU8tIml.mjs";
15
- import { o as gi, u as yi, _ as vi, a as fi } from "./useCustomerFormLabels-V2YuYMLU.mjs";
16
- import { u as _i } from "./useWatchDebounced-DT5IicPp.mjs";
17
- import { u as Mi } from "./usePaymentMethodOptions-BfnLBZOo.mjs";
18
- import { c as Je, a as hi, d as bi } from "./subscription-CvfAEJeP.mjs";
19
- import { a as Ii, b as Ai } from "./pricing-DLOeiAIB.mjs";
20
- import { g as xe, s as Pi } from "./url-DwiuKYpu.mjs";
21
- import { P as Di, e as Ni, c as ht, d as Ei } from "./adyen-CvsH5fok.mjs";
22
- import { u as Ci } from "./usePortal-DDG9b6FI.mjs";
23
- import { g as xi } from "./getCountryNameByCode.es-BDHua7VM.mjs";
24
- import { _ as bt } from "./Expand.vue.es-BleuAfDz.mjs";
25
- import { _ as me } from "./Input.vue.es-AY1c0Rui.mjs";
26
- import { _ as pe } from "./Section.vue.es-By1JltGi.mjs";
27
- import { _ as Li } from "./IconButton.vue.es-DAR7e8NA.mjs";
28
- import { c as wi } from "./customer-CKgMJEgv.mjs";
29
- import { b as Ti, c as Si, a as ki, _ as He } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C9elbdbF.mjs";
30
- import { _ as Oi, T as zi, a as ji } from "./TooltipParagraph.vue.es-DYu2ReL7.mjs";
31
- import { _ as Ri } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DVif_ME8.mjs";
32
- import { _ as It } from "./Chip.vue.es-CXG8o1Qf.mjs";
33
- import { _ as $i, a as Bi } from "./SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CS3KIkPL.mjs";
34
- import { _ as Ui } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-DVMS4gJQ.mjs";
35
- import { u as wt } from "./useViewport-BgdA2PPt.mjs";
36
- import { _ as ve } from "./Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs";
37
- import { _ as Fi } from "./DividerText.vue.es-Bomiy4if.mjs";
38
- import { l as Ue } from "./adyenSdk-B01MB9Ia.mjs";
39
- import { c as Vi } from "./payments-C_cMXQzE.mjs";
40
- import { C as Gi } from "./ContentWithAsideLayout-Bnbsq8_5.mjs";
41
- import { u as Yi } from "./cn.es-DjnGlmqV.mjs";
42
- import { g as Ki } from "./component-5wqcK7yz.mjs";
43
- const Qi = {
1
+ import { unref as t, inject as qt, ref as F, computed as b, onMounted as ke, toRaw as Jt, watch as Te, defineComponent as ce, openBlock as v, createBlock as O, withCtx as I, createElementVNode as w, createVNode as E, createTextVNode as G, toDisplayString as V, useModel as ei, createElementBlock as W, withModifiers as $e, Fragment as _e, createCommentVNode as B, createSlots as Je, normalizeClass as be, mergeModels as vt, renderSlot as We, nextTick as He, mergeProps as ft, withDirectives as ti, withKeys as _t, vShow as ii, defineAsyncComponent as Mt } from "vue";
2
+ import { I as oi, b as Me, u as ve, _ as se, d as ni, e as ai } from "./customElements-CSE7dwUr.mjs";
3
+ import { u as Lt } from "./useTimePeriod.es-DMtKzcoB.mjs";
4
+ import { b as ze, f as Ie } from "./formatting.es-RclXHhKo.mjs";
5
+ import { _ as Ae, a as je } from "./Button.vue.es-Dz-2L8dJ.mjs";
6
+ import { _ as ri } from "./ErrorNotification.vue.es-BGckEwHf.mjs";
7
+ import { c as li } from "./countryData.es-BegoD-cZ.mjs";
8
+ import { c as si } from "./subscriptions-XDyI2Cqm.mjs";
9
+ import { A as De } from "./error-BHVZJGwD.mjs";
10
+ import { c as ci, _ as ui } from "./TrialChip.vue.es-DkBuMNr_.mjs";
11
+ import { a as di } from "./useService-Bh47bllz.mjs";
12
+ import { c as pi } from "./invoices-DRgfpkJ6.mjs";
13
+ import { g as Ne, b as wt, e as mi } from "./pricingPlanSchedule-BPrS2WRd.mjs";
14
+ import { u as gi, r as ht, e as yi, a as Re, _ as vi } from "./index-BPU8tIml.mjs";
15
+ import { o as fi, u as _i, _ as Mi, a as hi } from "./useCustomerFormLabels-DW6jnDYH.mjs";
16
+ import { u as bi } from "./useWatchDebounced-DT5IicPp.mjs";
17
+ import { u as Ii } from "./usePaymentMethodOptions-B7JYkGsw.mjs";
18
+ import { c as et, a as Ai, d as Pi } from "./subscription-CrVOr5MF.mjs";
19
+ import { a as Di, b as Tt } from "./pricing-DLOeiAIB.mjs";
20
+ import { g as we, s as Ni } from "./url-DwiuKYpu.mjs";
21
+ import { P as Ei, e as Ci, c as bt, d as xi } from "./adyen-CvsH5fok.mjs";
22
+ import { u as Li } from "./usePortal-3VCZwSUE.mjs";
23
+ import { g as wi } from "./getCountryNameByCode.es-BDHua7VM.mjs";
24
+ import { _ as It } from "./Expand.vue.es-BleuAfDz.mjs";
25
+ import { _ as ye } from "./Input.vue.es-BGPELaZU.mjs";
26
+ import { _ as ge } from "./Section.vue.es-DQ5H7mqW.mjs";
27
+ import { _ as Ti } from "./IconButton.vue.es-C4dQEQAc.mjs";
28
+ import { c as Si } from "./customer-5krPxZ8i.mjs";
29
+ import { b as ki, c as Oi, a as zi, _ as Ze } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-lhJnqrrh.mjs";
30
+ import { _ as ji, T as Ri, a as Bi } from "./TooltipParagraph.vue.es-CIedcXGT.mjs";
31
+ import { _ as $i } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DuorCFo9.mjs";
32
+ import { _ as At } from "./Chip.vue.es-DMK9C78d.mjs";
33
+ import { _ as Ui, a as Vi } from "./SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DKsunuGT.mjs";
34
+ import { _ as Fi } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-C1mkIPMr.mjs";
35
+ import { u as St } from "./useViewport-BgdA2PPt.mjs";
36
+ import { _ as fe } from "./Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs";
37
+ import { _ as Gi } from "./DividerText.vue.es-IK2fns6f.mjs";
38
+ import { l as Ve } from "./adyenSdk-B01MB9Ia.mjs";
39
+ import { c as Yi } from "./payments-Dvqh6CGW.mjs";
40
+ import { C as Ki } from "./ContentWithAsideLayout-Bnbsq8_5.mjs";
41
+ import { u as Qi } from "./cn.es-BGqYNPM3.mjs";
42
+ import { g as Hi } from "./component-5wqcK7yz.mjs";
43
+ const Zi = {
44
44
  AT: "Austria",
45
45
  BE: "Belgium",
46
46
  BG: "Bulgaria",
@@ -69,10 +69,10 @@ const Qi = {
69
69
  SI: "Slovenia",
70
70
  SK: "Slovakia"
71
71
  };
72
- function Tt(e) {
73
- return Object.keys(Qi).includes(e);
72
+ function kt(e) {
73
+ return Object.keys(Zi).includes(e);
74
74
  }
75
- function At(e, i) {
75
+ function Pt(e, i) {
76
76
  var o = Object.keys(e);
77
77
  if (Object.getOwnPropertySymbols) {
78
78
  var n = Object.getOwnPropertySymbols(e);
@@ -82,18 +82,18 @@ function At(e, i) {
82
82
  }
83
83
  return o;
84
84
  }
85
- function we(e) {
85
+ function Se(e) {
86
86
  for (var i = 1; i < arguments.length; i++) {
87
87
  var o = arguments[i] != null ? arguments[i] : {};
88
- i % 2 ? At(Object(o), !0).forEach(function(n) {
89
- Hi(e, n, o[n]);
90
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : At(Object(o)).forEach(function(n) {
88
+ i % 2 ? Pt(Object(o), !0).forEach(function(n) {
89
+ Xi(e, n, o[n]);
90
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : Pt(Object(o)).forEach(function(n) {
91
91
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
92
92
  });
93
93
  }
94
94
  return e;
95
95
  }
96
- function Hi(e, i, o) {
96
+ function Xi(e, i, o) {
97
97
  return i in e ? Object.defineProperty(e, i, {
98
98
  value: o,
99
99
  enumerable: !0,
@@ -101,87 +101,87 @@ function Hi(e, i, o) {
101
101
  writable: !0
102
102
  }) : e[i] = o, e;
103
103
  }
104
- function Be(e) {
104
+ function Ue(e) {
105
105
  return typeof e == "function";
106
106
  }
107
- function We(e) {
107
+ function qe(e) {
108
108
  return e !== null && typeof e == "object" && !Array.isArray(e);
109
109
  }
110
110
  function Fe(e) {
111
- return Be(e.$validator) ? we({}, e) : {
111
+ return Ue(e.$validator) ? Se({}, e) : {
112
112
  $validator: e
113
113
  };
114
114
  }
115
- function St(e) {
115
+ function Ot(e) {
116
116
  return typeof e == "object" ? e.$valid : e;
117
117
  }
118
- function kt(e) {
118
+ function zt(e) {
119
119
  return e.$validator || e;
120
120
  }
121
- function Zi(e, i) {
122
- if (!We(e)) throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);
123
- if (!We(i) && !Be(i)) throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
121
+ function Wi(e, i) {
122
+ if (!qe(e)) throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);
123
+ if (!qe(i) && !Ue(i)) throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
124
124
  const o = Fe(i);
125
- return o.$params = we(we({}, o.$params || {}), e), o;
125
+ return o.$params = Se(Se({}, o.$params || {}), e), o;
126
126
  }
127
- function Xi(e, i) {
128
- if (!Be(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}`);
129
- if (!We(i) && !Be(i)) throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
127
+ function qi(e, i) {
128
+ if (!Ue(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}`);
129
+ if (!qe(i) && !Ue(i)) throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
130
130
  const o = Fe(i);
131
131
  return o.$message = e, o;
132
132
  }
133
- function Wi(e) {
133
+ function Ji(e) {
134
134
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
135
135
  const o = Fe(e);
136
- return we(we({}, o), {}, {
136
+ return Se(Se({}, o), {}, {
137
137
  $async: !0,
138
138
  $watchTargets: i
139
139
  });
140
140
  }
141
- function qi(e) {
141
+ function eo(e) {
142
142
  return {
143
143
  $validator(i) {
144
144
  for (var o = arguments.length, n = new Array(o > 1 ? o - 1 : 0), a = 1; a < o; a++)
145
145
  n[a - 1] = arguments[a];
146
- return t(i).reduce((l, s, M) => {
147
- const p = Object.entries(s).reduce((E, y) => {
148
- let [_, A] = y;
149
- const c = e[_] || {}, C = Object.entries(c).reduce((m, x) => {
150
- let [P, N] = x;
151
- const R = kt(N).call(this, A, s, M, ...n), u = St(R);
152
- if (m.$data[P] = R, m.$data.$invalid = !u || !!m.$data.$invalid, m.$data.$error = m.$data.$invalid, !u) {
153
- let T = N.$message || "";
154
- const Q = N.$params || {};
155
- typeof T == "function" && (T = T({
146
+ return t(i).reduce((r, s, g) => {
147
+ const d = Object.entries(s).reduce((N, y) => {
148
+ let [M, A] = y;
149
+ const c = e[M] || {}, x = Object.entries(c).reduce((f, L) => {
150
+ let [P, T] = L;
151
+ const j = zt(T).call(this, A, s, g, ...n), p = Ot(j);
152
+ if (f.$data[P] = j, f.$data.$invalid = !p || !!f.$data.$invalid, f.$data.$error = f.$data.$invalid, !p) {
153
+ let C = T.$message || "";
154
+ const J = T.$params || {};
155
+ typeof C == "function" && (C = C({
156
156
  $pending: !1,
157
- $invalid: !u,
158
- $params: Q,
157
+ $invalid: !p,
158
+ $params: J,
159
159
  $model: A,
160
- $response: R
161
- })), m.$errors.push({
162
- $property: _,
163
- $message: T,
164
- $params: Q,
165
- $response: R,
160
+ $response: j
161
+ })), f.$errors.push({
162
+ $property: M,
163
+ $message: C,
164
+ $params: J,
165
+ $response: j,
166
166
  $model: A,
167
167
  $pending: !1,
168
168
  $validator: P
169
169
  });
170
170
  }
171
171
  return {
172
- $valid: m.$valid && u,
173
- $data: m.$data,
174
- $errors: m.$errors
172
+ $valid: f.$valid && p,
173
+ $data: f.$data,
174
+ $errors: f.$errors
175
175
  };
176
176
  }, {
177
177
  $valid: !0,
178
178
  $data: {},
179
179
  $errors: []
180
180
  });
181
- return E.$data[_] = C.$data, E.$errors[_] = C.$errors, {
182
- $valid: E.$valid && C.$valid,
183
- $data: E.$data,
184
- $errors: E.$errors
181
+ return N.$data[M] = x.$data, N.$errors[M] = x.$errors, {
182
+ $valid: N.$valid && x.$valid,
183
+ $data: N.$data,
184
+ $errors: N.$errors
185
185
  };
186
186
  }, {
187
187
  $valid: !0,
@@ -189,9 +189,9 @@ function qi(e) {
189
189
  $errors: {}
190
190
  });
191
191
  return {
192
- $valid: l.$valid && p.$valid,
193
- $data: l.$data.concat(p.$data),
194
- $errors: l.$errors.concat(p.$errors)
192
+ $valid: r.$valid && d.$valid,
193
+ $data: r.$data.concat(d.$data),
194
+ $errors: r.$errors.concat(d.$errors)
195
195
  };
196
196
  }, {
197
197
  $valid: !0,
@@ -203,11 +203,11 @@ function qi(e) {
203
203
  let {
204
204
  $response: o
205
205
  } = i;
206
- return o ? o.$errors.map((n) => Object.values(n).map((a) => a.map((l) => l.$message)).reduce((a, l) => a.concat(l), [])) : [];
206
+ return o ? o.$errors.map((n) => Object.values(n).map((a) => a.map((r) => r.$message)).reduce((a, r) => a.concat(r), [])) : [];
207
207
  }
208
208
  };
209
209
  }
210
- const Ot = (e) => {
210
+ const jt = (e) => {
211
211
  if (e = t(e), Array.isArray(e)) return !!e.length;
212
212
  if (e == null)
213
213
  return !1;
@@ -220,39 +220,39 @@ const Ot = (e) => {
220
220
  return !1;
221
221
  }
222
222
  return !!String(e).length;
223
- }, Ji = (e) => (e = t(e), Array.isArray(e) ? e.length : typeof e == "object" ? Object.keys(e).length : String(e).length);
224
- function Me() {
223
+ }, to = (e) => (e = t(e), Array.isArray(e) ? e.length : typeof e == "object" ? Object.keys(e).length : String(e).length);
224
+ function he() {
225
225
  for (var e = arguments.length, i = new Array(e), o = 0; o < e; o++)
226
226
  i[o] = arguments[o];
227
- return (n) => (n = t(n), !Ot(n) || i.every((a) => (a.lastIndex = 0, a.test(n))));
227
+ return (n) => (n = t(n), !jt(n) || i.every((a) => (a.lastIndex = 0, a.test(n))));
228
228
  }
229
- var eo = /* @__PURE__ */ Object.freeze({
229
+ var io = /* @__PURE__ */ Object.freeze({
230
230
  __proto__: null,
231
- forEach: qi,
232
- len: Ji,
231
+ forEach: eo,
232
+ len: to,
233
233
  normalizeValidatorObject: Fe,
234
- regex: Me,
235
- req: Ot,
234
+ regex: he,
235
+ req: jt,
236
236
  unwrap: t,
237
- unwrapNormalizedValidator: kt,
238
- unwrapValidatorResponse: St,
239
- withAsync: Wi,
240
- withMessage: Xi,
241
- withParams: Zi
237
+ unwrapNormalizedValidator: zt,
238
+ unwrapValidatorResponse: Ot,
239
+ withAsync: Ji,
240
+ withMessage: qi,
241
+ withParams: Wi
242
242
  });
243
- Me(/^[a-zA-Z]*$/);
244
- Me(/^[a-zA-Z0-9]*$/);
245
- Me(/^\d*(\.\d+)?$/);
246
- const to = /^(?:[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;
247
- Me(to);
248
- const io = /^(?:(?:(?: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;
249
- Me(io);
250
- Me(/(^[0-9]*$)|(^-[0-9]+$)/);
251
- Me(/^[-]?\d*(\.\d+)?$/);
252
- function Ve(e) {
253
- return !!ni.find((i) => i.key === e);
243
+ he(/^[a-zA-Z]*$/);
244
+ he(/^[a-zA-Z0-9]*$/);
245
+ he(/^\d*(\.\d+)?$/);
246
+ const oo = /^(?:[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;
247
+ he(oo);
248
+ const no = /^(?:(?:(?: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;
249
+ he(no);
250
+ he(/(^[0-9]*$)|(^-[0-9]+$)/);
251
+ he(/^[-]?\d*(\.\d+)?$/);
252
+ function Ge(e) {
253
+ return !!li.find((i) => i.key === e);
254
254
  }
255
- const zt = {
255
+ const Rt = {
256
256
  AT: {
257
257
  regex: /^ATU\d{8}$/,
258
258
  prefix: "AT",
@@ -423,13 +423,13 @@ const zt = {
423
423
  prefix: "XI",
424
424
  example: "XI123456789"
425
425
  }
426
- }, oo = (e) => !e || typeof e != "string" || e.trim() === "" ? !0 : Object.values(zt).some((i) => i.regex.test(e)), no = ({ $model: e }) => {
426
+ }, ao = (e) => !e || typeof e != "string" || e.trim() === "" ? !0 : Object.values(Rt).some((i) => i.regex.test(e)), ro = ({ $model: e }) => {
427
427
  if (!e || typeof e != "string" || e.trim() === "")
428
428
  return "";
429
- const i = Zt(ei, null);
429
+ const i = qt(oi, null);
430
430
  if (!i)
431
431
  return "Invalid tax ID";
432
- const { formatMessage: o } = i, n = Object.values(zt).find(
432
+ const { formatMessage: o } = i, n = Object.values(Rt).find(
433
433
  (a) => e.toUpperCase().startsWith(a.prefix.toUpperCase())
434
434
  );
435
435
  return n ? o(
@@ -444,34 +444,34 @@ const zt = {
444
444
  id: "taxId.invalid",
445
445
  description: "Error message when tax ID is invalid"
446
446
  });
447
- }, et = eo.withMessage(no, oo), ao = "preview", ro = "NL", jt = (e) => {
447
+ }, tt = io.withMessage(ro, ao), lo = "preview", so = "NL", Bt = (e) => {
448
448
  var i, o;
449
449
  if ("organization" in e)
450
450
  return (i = e.organization) == null ? void 0 : i.registered_address;
451
451
  if ("individual" in e)
452
452
  return (o = e.individual) == null ? void 0 : o.residential_address;
453
- }, lo = (e) => {
454
- const i = jt(e);
453
+ }, co = (e) => {
454
+ const i = Bt(e);
455
455
  return {
456
456
  ...(i == null ? void 0 : i.line1) && { line1: i.line1 },
457
457
  ...(i == null ? void 0 : i.line2) && { line2: i.line2 },
458
458
  ...(i == null ? void 0 : i.city) && { city: i.city },
459
459
  ...(i == null ? void 0 : i.state) && { state: i.state },
460
- country: (i == null ? void 0 : i.country) || ro,
460
+ country: (i == null ? void 0 : i.country) || so,
461
461
  ...(i == null ? void 0 : i.postal_code) && { postal_code: i.postal_code }
462
462
  };
463
- }, so = (e) => {
463
+ }, uo = (e) => {
464
464
  var n, a;
465
- const i = lo(e), o = e.type ?? "INDIVIDUAL";
465
+ const i = co(e), o = e.type ?? "INDIVIDUAL";
466
466
  if (o === "ORGANIZATION") {
467
- const l = "organization" in e ? e.organization : void 0, s = (a = (n = l == null ? void 0 : l.tax_ids) == null ? void 0 : n[0]) == null ? void 0 : a.id;
467
+ const r = "organization" in e ? e.organization : void 0, s = (a = (n = r == null ? void 0 : r.tax_ids) == null ? void 0 : n[0]) == null ? void 0 : a.id;
468
468
  return {
469
469
  type: o,
470
470
  organization: {
471
- legal_name: (l == null ? void 0 : l.legal_name) || ao,
471
+ legal_name: (r == null ? void 0 : r.legal_name) || lo,
472
472
  registered_address: i,
473
473
  ...s && {
474
- tax_id: et.$validator(s, {}, {}) ? s : void 0
474
+ tax_id: tt.$validator(s, {}, {}) ? s : void 0
475
475
  }
476
476
  }
477
477
  };
@@ -482,7 +482,7 @@ const zt = {
482
482
  residential_address: i
483
483
  }
484
484
  };
485
- }, co = {
485
+ }, po = {
486
486
  AD: "EUR",
487
487
  AE: "AED",
488
488
  AF: "AFN",
@@ -730,121 +730,123 @@ const zt = {
730
730
  ZA: "ZAR",
731
731
  ZM: "ZMW",
732
732
  ZW: "ZWL"
733
- }, uo = (e) => {
733
+ }, mo = (e) => {
734
734
  if (e)
735
- return co[e];
736
- }, Rt = ({
735
+ return po[e];
736
+ }, $t = ({
737
737
  country: e,
738
738
  pricingCurrencySettings: i,
739
739
  fallbackCurrency: o
740
740
  }) => {
741
- const n = uo(e), a = (i == null ? void 0 : i.pricing_currencies) ?? [];
741
+ const n = mo(e), a = (i == null ? void 0 : i.pricing_currencies) ?? [];
742
742
  return n && a.includes(n) ? n : (i == null ? void 0 : i.default_pricing_currency) ?? o ?? n;
743
- }, po = () => {
744
- const { getInvoicePreview: e } = ci(), i = _e(), o = V(), n = V(), a = V(), l = V({}), s = V(Pe.Initial), M = V({}), p = V(), E = (_) => `${_.type}:${_.value}`;
743
+ }, go = () => {
744
+ const { getInvoicePreview: e } = pi(), i = Me(), o = F(), n = F(), a = F(), r = F({}), s = F(De.Initial), g = F({}), d = F(), N = (M) => `${M.type}:${M.value}`;
745
745
  return {
746
746
  loadInvoicePreview: async ({
747
- subscription: _,
747
+ subscription: M,
748
748
  subscriptionStartAt: A,
749
749
  customer: c = {},
750
- seatsValues: C,
751
- enabledPricingIds: m,
752
- promotionCode: x
750
+ seatsValues: x,
751
+ unitsValues: f,
752
+ enabledPricingIds: L,
753
+ promotionCode: P
753
754
  }) => {
754
- var r, d, h, S, O, H;
755
- const P = so(c);
756
- s.value = Pe.Loading;
757
- const N = De({
758
- pricingPlanScheduleInfos: _.pricing_plan_schedule_infos,
755
+ var m, h, S, R, H, K;
756
+ const T = uo(c);
757
+ s.value = De.Loading;
758
+ const $ = Ne({
759
+ pricingPlanScheduleInfos: M.pricing_plan_schedule_infos,
759
760
  type: "DEFAULT"
760
- }), G = (r = N == null ? void 0 : N.pricing_plan_version) == null ? void 0 : r.pricing_currency_settings, R = (((d = G == null ? void 0 : G.pricing_currencies) == null ? void 0 : d.length) ?? 0) > 1, u = ((S = (h = N == null ? void 0 : N.pricing_plan_version) == null ? void 0 : h.billing_period_settings) == null ? void 0 : S.billing_periods) ?? [], T = u.length > 1, Q = u.length > 0 ? u.map(({ period: $ }) => $) : _.billing_period ? [_.billing_period] : [], te = Rt({
761
- country: (O = jt(c)) == null ? void 0 : O.country,
762
- pricingCurrencySettings: G,
763
- fallbackCurrency: _.billing_currency
761
+ }), j = (m = $ == null ? void 0 : $.pricing_plan_version) == null ? void 0 : m.pricing_currency_settings, p = (((h = j == null ? void 0 : j.pricing_currencies) == null ? void 0 : h.length) ?? 0) > 1, C = ((R = (S = $ == null ? void 0 : $.pricing_plan_version) == null ? void 0 : S.billing_period_settings) == null ? void 0 : R.billing_periods) ?? [], J = C.length > 1, te = C.length > 0 ? C.map(({ period: Y }) => Y) : M.billing_period ? [M.billing_period] : [], u = $t({
762
+ country: (H = Bt(c)) == null ? void 0 : H.country,
763
+ pricingCurrencySettings: j,
764
+ fallbackCurrency: M.billing_currency
764
765
  });
765
- if (!Q.length) {
766
+ if (!te.length) {
766
767
  i.warn("INVOICE_PREVIEW_SKIPPED", "No billing period to preview an invoice for", {
767
- subscriptionId: _.id
768
- }), s.value = Pe.Done;
768
+ subscriptionId: M.id
769
+ }), s.value = De.Done;
769
770
  return;
770
771
  }
771
- const v = _.billing_period ? E(_.billing_period) : E(Q[0]), f = Q.map(async ($) => {
772
- var U;
773
- const ie = E($), J = Lt({
774
- enabledPricings: m == null ? void 0 : m.map((X) => ({
775
- pricing_id: X
772
+ const _ = M.billing_period ? N(M.billing_period) : N(te[0]), l = te.map(async (Y) => {
773
+ var ie;
774
+ const ae = N(Y), Z = wt({
775
+ enabledPricings: L == null ? void 0 : L.map((q) => ({
776
+ pricing_id: q
776
777
  })),
777
- seatsValues: C,
778
- pricingPlanScheduleInfos: _.pricing_plan_schedule_infos,
779
- pricingCurrency: R ? te : void 0,
780
- billingPeriod: T ? $ : void 0
778
+ seatsValues: x,
779
+ unitsValues: f,
780
+ pricingPlanScheduleInfos: M.pricing_plan_schedule_infos,
781
+ pricingCurrency: p ? u : void 0,
782
+ billingPeriod: J ? Y : void 0
781
783
  }) ?? [];
782
- if (x) {
783
- const X = (U = _.pricing_plan_schedule_infos.find(
784
- ({ pricing_plan_schedule: W }) => W.type === "DEFAULT"
785
- )) == null ? void 0 : U.id;
786
- if (X) {
787
- const W = J.find(
788
- ({ pricing_plan_schedule_id: ne }) => ne === X
784
+ if (P) {
785
+ const q = (ie = M.pricing_plan_schedule_infos.find(
786
+ ({ pricing_plan_schedule: ee }) => ee.type === "DEFAULT"
787
+ )) == null ? void 0 : ie.id;
788
+ if (q) {
789
+ const ee = Z.find(
790
+ ({ pricing_plan_schedule_id: oe }) => oe === q
789
791
  );
790
- W ? W.promotion_codes = [x] : J.push({
791
- pricing_plan_schedule_id: X,
792
- promotion_codes: [x]
792
+ ee ? ee.promotion_codes = [P] : Z.push({
793
+ pricing_plan_schedule_id: q,
794
+ promotion_codes: [P]
793
795
  });
794
796
  }
795
797
  }
796
- const ee = {
797
- pricingPlanSubscriptionId: _.id,
798
+ const re = {
799
+ pricingPlanSubscriptionId: M.id,
798
800
  startAt: A,
799
- customizations: J,
800
- customer: P
801
- }, oe = M.value[ie];
802
- if (oe && si(ee, oe))
803
- return { periodKey: ie, response: void 0 };
804
- M.value = {
805
- ...M.value,
806
- [ie]: ee
801
+ customizations: Z,
802
+ customer: T
803
+ }, ne = g.value[ae];
804
+ if (ne && di(re, ne))
805
+ return { periodKey: ae, response: void 0 };
806
+ g.value = {
807
+ ...g.value,
808
+ [ae]: re
807
809
  };
808
- const ae = await e(ee);
809
- return { periodKey: ie, response: ae };
810
+ const U = await e(re);
811
+ return { periodKey: ae, response: U };
810
812
  });
811
813
  try {
812
- const $ = {
813
- ...l.value
814
- }, ie = await Promise.all(f), J = _.pricing_plan_schedule_infos.find(
815
- ({ pricing_plan_schedule: oe }) => oe.type === "TRIAL"
816
- ), ee = (H = _.pricing_plan_schedule_infos.find(
817
- ({ pricing_plan_schedule: oe }) => oe.type === "DEFAULT"
818
- )) == null ? void 0 : H.id;
819
- ie.forEach(({ periodKey: oe, response: ae }) => {
820
- var W;
821
- if (!ae) return;
822
- p.value = (W = ae.invoice_infos.at(-1)) == null ? void 0 : W.pricing_plan_schedule_id, J && (n.value = ae.first_invoice, J.start_at && J.end_at && (o.value = ri(
823
- new Date(J.start_at),
824
- new Date(J.end_at)
814
+ const Y = {
815
+ ...r.value
816
+ }, ae = await Promise.all(l), Z = M.pricing_plan_schedule_infos.find(
817
+ ({ pricing_plan_schedule: ne }) => ne.type === "TRIAL"
818
+ ), re = (K = M.pricing_plan_schedule_infos.find(
819
+ ({ pricing_plan_schedule: ne }) => ne.type === "DEFAULT"
820
+ )) == null ? void 0 : K.id;
821
+ ae.forEach(({ periodKey: ne, response: U }) => {
822
+ var ee;
823
+ if (!U) return;
824
+ d.value = (ee = U.invoice_infos.at(-1)) == null ? void 0 : ee.pricing_plan_schedule_id, Z && (n.value = U.first_invoice, Z.start_at && Z.end_at && (o.value = ci(
825
+ new Date(Z.start_at),
826
+ new Date(Z.end_at)
825
827
  )));
826
- const U = ae.invoice_infos.find(
827
- ({ pricing_plan_schedule_id: ne }) => ne === ee
828
- ), X = U == null ? void 0 : U.invoices[0];
829
- X && ($[oe] = X);
830
- }), l.value = $, a.value = $[v];
831
- } catch ($) {
832
- throw s.value = Pe.Failed, i.error("INVOICE_PREVIEW_FAILED", "Failed to load invoice preview", {}, $), $;
828
+ const ie = U.invoice_infos.find(
829
+ ({ pricing_plan_schedule_id: oe }) => oe === re
830
+ ), q = ie == null ? void 0 : ie.invoices[0];
831
+ q && (Y[ne] = q);
832
+ }), r.value = Y, a.value = Y[_];
833
+ } catch (Y) {
834
+ throw s.value = De.Failed, i.error("INVOICE_PREVIEW_FAILED", "Failed to load invoice preview", {}, Y), Y;
833
835
  } finally {
834
- s.value = Pe.Done;
836
+ s.value = De.Done;
835
837
  }
836
838
  },
837
839
  invoicePreview: a,
838
- invoicePreviewByBillingPeriod: l,
840
+ invoicePreviewByBillingPeriod: r,
839
841
  trialInvoicePreview: n,
840
842
  trialPeriod: o,
841
- lastPreviewScheduleId: p,
842
- isPending: b(() => s.value === Pe.Loading)
843
+ lastPreviewScheduleId: d,
844
+ isPending: b(() => s.value === De.Loading)
843
845
  };
844
- }, Pt = ["email", "country"], $t = "GENERIC_TAX_ID", Dt = {
846
+ }, Dt = ["email", "country"], Ut = "GENERIC_TAX_ID", Nt = {
845
847
  US: ["addressLine1", "postalCode"],
846
848
  CA: ["state"]
847
- }, mo = (e) => !e || !Dt[e] ? Pt : [...Dt[e], ...Pt], Nt = (e) => {
849
+ }, yo = (e) => !e || !Nt[e] ? Dt : [...Nt[e], ...Dt], Et = (e) => {
848
850
  const i = {
849
851
  ...e.addressLine1 && { line1: e.addressLine1 },
850
852
  ...e.addressLine2 && { line2: e.addressLine2 },
@@ -859,7 +861,7 @@ const zt = {
859
861
  legal_name: e.companyLegalName ?? "",
860
862
  registered_address: i,
861
863
  ...e.companyVatNumber && {
862
- tax_ids: [{ id: e.companyVatNumber, type: $t }]
864
+ tax_ids: [{ id: e.companyVatNumber, type: Ut }]
863
865
  }
864
866
  }
865
867
  } : {
@@ -869,7 +871,7 @@ const zt = {
869
871
  }
870
872
  };
871
873
  };
872
- function go() {
874
+ function vo() {
873
875
  return {
874
876
  /**
875
877
  * Get geolocation information from the user
@@ -879,32 +881,32 @@ function go() {
879
881
  }
880
882
  };
881
883
  }
882
- function yo({
884
+ function fo({
883
885
  initialState: e,
884
886
  onRequiredFieldChange: i
885
887
  }) {
886
- const o = V(Re(e)), n = V(Re(e)), a = (y) => {
887
- const _ = Re({ ...Xt(o.value), ...y });
888
- o.value = _, n.value = structuredClone(_);
889
- }, l = b(
890
- () => mo(o.value.country)
891
- ), s = (y) => l.value.includes(y), M = di(
888
+ const o = F(Be(e)), n = F(Be(e)), a = (y) => {
889
+ const M = Be({ ...Jt(o.value), ...y });
890
+ o.value = M, n.value = structuredClone(M);
891
+ }, r = b(
892
+ () => yo(o.value.country)
893
+ ), s = (y) => r.value.includes(y), g = gi(
892
894
  {
893
- email: { required: Mt, email: pi },
894
- country: { required: Mt },
895
- state: { required: je(() => s("state")) },
896
- addressLine1: { required: je(() => s("addressLine1")) },
897
- postalCode: { required: je(() => s("postalCode")) },
898
- companyLegalName: je(o.value.type === "ORGANIZATION"),
899
- companyVatNumber: { taxId: et }
895
+ email: { required: ht, email: yi },
896
+ country: { required: ht },
897
+ state: { required: Re(() => s("state")) },
898
+ addressLine1: { required: Re(() => s("addressLine1")) },
899
+ postalCode: { required: Re(() => s("postalCode")) },
900
+ companyLegalName: Re(o.value.type === "ORGANIZATION"),
901
+ companyVatNumber: { taxId: tt }
900
902
  },
901
903
  o
902
- ), p = (y) => {
903
- y || go().getGeoLocation().then(({ country: _ }) => {
904
- o.value.country = _;
904
+ ), d = (y) => {
905
+ y || vo().getGeoLocation().then(({ country: M }) => {
906
+ o.value.country = M;
905
907
  });
906
- }, E = (y, _) => {
907
- const A = gi({ from: _, to: y }), c = Object.keys(A).find(vo);
908
+ }, N = (y, M) => {
909
+ const A = fi({ from: M, to: y }), c = Object.keys(A).find(_o);
908
910
  if (c) {
909
911
  if (["type", "companyVatNumber"].includes(c)) {
910
912
  i(y);
@@ -914,6 +916,10 @@ function yo({
914
916
  i(y);
915
917
  return;
916
918
  }
919
+ if (c === "unitsValues") {
920
+ i(y);
921
+ return;
922
+ }
917
923
  if (c === "enabledPricingIds") {
918
924
  i(y);
919
925
  return;
@@ -924,21 +930,21 @@ function yo({
924
930
  }
925
931
  }
926
932
  };
927
- return Te(async () => {
928
- await p(e == null ? void 0 : e.country);
929
- }), _i(
933
+ return ke(async () => {
934
+ await d(e == null ? void 0 : e.country);
935
+ }), bi(
930
936
  () => JSON.parse(JSON.stringify(o.value)),
931
- E,
937
+ N,
932
938
  { debounce: 200 }
933
939
  ), {
934
940
  form: o,
935
- validation: M,
941
+ validation: g,
936
942
  getIsFieldRequired: s,
937
943
  updateInitialState: a,
938
944
  initialState: n
939
945
  };
940
946
  }
941
- const Re = (e = {}) => ({
947
+ const Be = (e = {}) => ({
942
948
  email: void 0,
943
949
  country: void 0,
944
950
  type: "INDIVIDUAL",
@@ -953,44 +959,60 @@ const Re = (e = {}) => ({
953
959
  state: void 0,
954
960
  companyVatNumber: void 0,
955
961
  seatsValues: void 0,
962
+ unitsValues: void 0,
956
963
  enabledPricingIds: void 0,
957
964
  ...e
958
965
  });
959
- function vo(e) {
960
- return e in Re();
966
+ function _o(e) {
967
+ return e in Be();
961
968
  }
962
- function fo(e, i = void 0) {
963
- const o = i ?? [], n = Je(e);
969
+ function Mo(e, i = void 0) {
970
+ const o = i ?? [], n = et(e);
964
971
  for (const a of n)
965
972
  if (["EXACTLY_ONE", "AT_LEAST_ONE"].includes(a.selection_constraint)) {
966
- const l = a.pricings.map((s) => s.id);
967
- if (i != null && i.some((s) => l.includes(s)))
973
+ const r = a.pricings.map((s) => s.id);
974
+ if (i != null && i.some((s) => r.includes(s)))
968
975
  continue;
969
976
  o.push(a.pricings[0].id);
970
977
  }
971
978
  return o;
972
979
  }
973
- function _o(e) {
974
- return Je(e).some(
980
+ function ho(e) {
981
+ return et(e).some(
975
982
  (o) => o.selection_constraint === "EXACTLY_ONE" || o.selection_constraint === "AT_LEAST_ONE"
976
983
  );
977
984
  }
978
- function Mo(e) {
979
- const i = Ii(e.pricing_plan_schedule_infos), o = Je(e);
985
+ function bo(e) {
986
+ const i = Di(e.pricing_plan_schedule_infos), o = et(e);
980
987
  return i.some((n) => n.product_type === "ADDON") || o.some((n) => n.object_type === "ADDON");
981
988
  }
982
- const ho = "1", Et = (e) => (e ?? []).flatMap(
989
+ const Ct = (e) => (e ?? []).flatMap(
983
990
  (i) => i.configs ?? []
984
- ), bo = (e) => [
991
+ ), Vt = (e) => [
985
992
  ...e.configs ?? [],
986
- ...Et(e.billing_period_configs),
993
+ ...Ct(e.billing_period_configs),
987
994
  ...(e.pricing_currency_configs ?? []).flatMap((i) => [
988
995
  ...i.configs ?? [],
989
- ...Et(i.billing_period_configs)
996
+ ...Ct(i.billing_period_configs)
990
997
  ])
991
998
  ];
992
- function Io(e) {
993
- const i = Ai(e).flatMap((o) => o.items ?? []).flatMap(bo);
999
+ function La({
1000
+ pricings: e,
1001
+ pricingItemConfigId: i
1002
+ }) {
1003
+ var r, s;
1004
+ const o = e.flatMap((g) => g.items ?? []).find((g) => {
1005
+ var d;
1006
+ return (d = g.configs) == null ? void 0 : d.some((N) => N.id === i);
1007
+ }), n = (r = o == null ? void 0 : o.configs) == null ? void 0 : r.find((g) => g.id === i), a = (s = o == null ? void 0 : o.product_items) == null ? void 0 : s[0];
1008
+ return {
1009
+ config: n,
1010
+ productItem: a
1011
+ };
1012
+ }
1013
+ const Io = "1";
1014
+ function Ao(e) {
1015
+ const i = Tt(e).flatMap((o) => o.items ?? []).flatMap(Vt);
994
1016
  return new Map(
995
1017
  i.flatMap(
996
1018
  (o) => {
@@ -1000,27 +1022,50 @@ function Io(e) {
1000
1022
  )
1001
1023
  );
1002
1024
  }
1003
- function Ao(e) {
1025
+ function Po(e) {
1004
1026
  var n;
1005
1027
  const i = (n = e == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : n.seats_values;
1006
1028
  if (!e || !(i != null && i.length))
1007
1029
  return;
1008
- const o = e.pricing_plan_version ? Io(e) : /* @__PURE__ */ new Map();
1009
- return i.map(({ pricing_item_config_id: a, number: l }) => ({
1030
+ const o = e.pricing_plan_version ? Ao(e) : /* @__PURE__ */ new Map();
1031
+ return i.map(({ pricing_item_config_id: a, number: r }) => ({
1010
1032
  pricing_item_config_id: a,
1011
- number: l || o.get(a) || ho
1033
+ number: r || o.get(a) || Io
1012
1034
  }));
1013
1035
  }
1014
- const Ze = "solvimon_checkout_redirect_state";
1015
- function Po({
1036
+ const Do = "1";
1037
+ function No(e) {
1038
+ const i = Tt(e).flatMap((o) => o.items ?? []).flatMap(Vt);
1039
+ return new Map(
1040
+ i.flatMap(
1041
+ (o) => {
1042
+ var n;
1043
+ return (n = o.default_units) != null && n.number ? [[o.id, o.default_units.number]] : [];
1044
+ }
1045
+ )
1046
+ );
1047
+ }
1048
+ function Eo(e) {
1049
+ var n;
1050
+ const i = (n = e == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : n.units;
1051
+ if (!e || !(i != null && i.length))
1052
+ return;
1053
+ const o = e.pricing_plan_version ? No(e) : /* @__PURE__ */ new Map();
1054
+ return i.map(({ pricing_item_config_id: a, number: r }) => ({
1055
+ pricing_item_config_id: a,
1056
+ number: r || o.get(a) || Do
1057
+ }));
1058
+ }
1059
+ const Xe = "solvimon_checkout_redirect_state";
1060
+ function Co({
1016
1061
  initialCountry: e,
1017
1062
  initialEmail: i,
1018
1063
  subscriptionId: o,
1019
1064
  enabledPricingIds: n
1020
1065
  }) {
1021
- const a = _e(), l = (() => {
1066
+ const a = Me(), r = (() => {
1022
1067
  if (e) {
1023
- if (Ve(e)) return e;
1068
+ if (Ge(e)) return e;
1024
1069
  a.error("INVALID_COUNTRY_CODE", `invalid country code provided: "${e}"`);
1025
1070
  }
1026
1071
  })(), s = (() => {
@@ -1028,160 +1073,167 @@ function Po({
1028
1073
  if (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)) return i;
1029
1074
  a.error("INVALID_EMAIL", `invalid email provided: "${i}"`);
1030
1075
  }
1031
- })(), M = V(!1), p = V(), { getSubscription: E } = ai(), y = po(), _ = b(() => p.value && u.form.value.country && te.value), {
1076
+ })(), g = F(!1), d = F(), { getSubscription: N } = si(), y = go(), M = b(() => d.value && p.form.value.country && te.value), {
1032
1077
  paymentMethodOptions: A,
1033
1078
  get: c,
1034
- isPending: C,
1035
- error: m
1036
- } = Mi(), x = async (f, r) => {
1079
+ isPending: x,
1080
+ error: f
1081
+ } = Ii(), L = async (_, l) => {
1037
1082
  try {
1038
1083
  await c({
1039
- subscriptionId: p.value.id,
1040
- country: f,
1041
- amount: r
1084
+ subscriptionId: d.value.id,
1085
+ country: _,
1086
+ amount: l
1042
1087
  });
1043
1088
  } catch {
1044
1089
  a.error(
1045
1090
  "PAYMENT_METHOD_OPTIONS_LOAD_FAILED",
1046
1091
  "Failed to load the payment methods the checkout can offer",
1047
1092
  {},
1048
- m.value
1093
+ f.value
1049
1094
  );
1050
1095
  }
1051
- }, P = b(() => m.value !== null), N = () => {
1052
- const { country: f } = u.form.value;
1053
- !p.value || !f || !te.value || x(f, te.value);
1054
- }, G = () => {
1055
- const f = u.form.value;
1096
+ }, P = b(() => f.value !== null), T = () => {
1097
+ const { country: _ } = p.form.value;
1098
+ !d.value || !_ || !te.value || L(_, te.value);
1099
+ }, $ = () => {
1100
+ const _ = p.form.value;
1056
1101
  return y.loadInvoicePreview({
1057
- subscription: p.value,
1058
- customer: Nt(f),
1059
- seatsValues: f.seatsValues,
1060
- enabledPricingIds: f.enabledPricingIds ?? n,
1061
- promotionCode: f.promotionCode
1102
+ subscription: d.value,
1103
+ customer: Et(_),
1104
+ seatsValues: _.seatsValues,
1105
+ unitsValues: _.unitsValues,
1106
+ enabledPricingIds: _.enabledPricingIds ?? n,
1107
+ promotionCode: _.promotionCode
1062
1108
  });
1063
- }, R = async (f) => {
1064
- const r = f.promotionCode ?? u.form.value.promotionCode, d = f.enabledPricingIds ?? u.form.value.enabledPricingIds, h = { ...u.form.value, ...f };
1109
+ }, j = async (_) => {
1110
+ const l = _.promotionCode ?? p.form.value.promotionCode, m = _.enabledPricingIds ?? p.form.value.enabledPricingIds, h = { ...p.form.value, ..._ };
1065
1111
  return await y.loadInvoicePreview({
1066
- subscription: p.value,
1067
- customer: Nt(h),
1112
+ subscription: d.value,
1113
+ customer: Et(h),
1068
1114
  seatsValues: h.seatsValues,
1069
- enabledPricingIds: d,
1070
- promotionCode: r
1115
+ unitsValues: h.unitsValues,
1116
+ enabledPricingIds: m,
1117
+ promotionCode: l
1071
1118
  }), {
1072
1119
  trialInvoicePreview: y.trialInvoicePreview.value,
1073
1120
  invoicePreview: y.invoicePreview.value
1074
1121
  };
1075
- }, u = yo({
1122
+ }, p = fo({
1076
1123
  initialState: {
1077
- country: l,
1124
+ country: r,
1078
1125
  email: s
1079
1126
  },
1080
1127
  onRequiredFieldChange: () => {
1081
- p.value && G().catch(() => {
1128
+ d.value && $().catch(() => {
1082
1129
  });
1083
1130
  }
1084
- }), T = async () => {
1085
- var S, O, H, $;
1086
- const f = await E({
1131
+ }), C = async () => {
1132
+ var R, H, K, Y;
1133
+ const _ = await N({
1087
1134
  id: o,
1088
1135
  expanded: !0
1089
- }), r = De({
1090
- pricingPlanScheduleInfos: f.pricing_plan_schedule_infos,
1136
+ }), l = Ne({
1137
+ pricingPlanScheduleInfos: _.pricing_plan_schedule_infos,
1091
1138
  type: "DEFAULT"
1092
- }), d = ($ = (H = (O = (S = r == null ? void 0 : r.pricing_plan_version) == null ? void 0 : S.billing_period_settings) == null ? void 0 : O.billing_periods) == null ? void 0 : H[0]) == null ? void 0 : $.period;
1093
- p.value = {
1094
- ...f,
1095
- billing_period: d ?? f.billing_period
1139
+ }), m = (Y = (K = (H = (R = l == null ? void 0 : l.pricing_plan_version) == null ? void 0 : R.billing_period_settings) == null ? void 0 : H.billing_periods) == null ? void 0 : K[0]) == null ? void 0 : Y.period;
1140
+ d.value = {
1141
+ ..._,
1142
+ billing_period: m ?? _.billing_period
1096
1143
  };
1097
- const h = Ao(r);
1098
- u.updateInitialState({
1099
- ...u.form.value,
1100
- enabledPricingIds: fo(f, n),
1101
- ...h ? { seatsValues: h } : {}
1144
+ const h = Po(l), S = Eo(l);
1145
+ p.updateInitialState({
1146
+ ...p.form.value,
1147
+ enabledPricingIds: Mo(_, n),
1148
+ ...h ? { seatsValues: h } : {},
1149
+ ...S ? { unitsValues: S } : {}
1102
1150
  });
1103
- }, Q = b(() => {
1104
- var ee, oe, ae, U, X, W, ne, re, ce;
1105
- const f = u.form.value.firstName || u.form.value.infix || u.form.value.lastName ? {
1106
- ...u.form.value.firstName ? { first_name: u.form.value.firstName } : {},
1107
- ...u.form.value.infix ? { infix: u.form.value.infix } : {},
1108
- ...u.form.value.lastName ? { last_name: u.form.value.lastName } : {}
1109
- } : {}, r = {
1110
- ...u.form.value.addressLine1 && {
1111
- line1: u.form.value.addressLine1
1151
+ }, J = b(() => {
1152
+ var Z, re, ne, U, ie, q, ee, oe, ue;
1153
+ const _ = p.form.value.firstName || p.form.value.infix || p.form.value.lastName ? {
1154
+ ...p.form.value.firstName ? { first_name: p.form.value.firstName } : {},
1155
+ ...p.form.value.infix ? { infix: p.form.value.infix } : {},
1156
+ ...p.form.value.lastName ? { last_name: p.form.value.lastName } : {}
1157
+ } : {}, l = {
1158
+ ...p.form.value.addressLine1 && {
1159
+ line1: p.form.value.addressLine1
1112
1160
  },
1113
- ...u.form.value.addressLine2 && {
1114
- line2: u.form.value.addressLine2
1161
+ ...p.form.value.addressLine2 && {
1162
+ line2: p.form.value.addressLine2
1115
1163
  },
1116
- ...u.form.value.city && { city: u.form.value.city },
1117
- ...u.form.value.postalCode && {
1118
- postal_code: u.form.value.postalCode
1164
+ ...p.form.value.city && { city: p.form.value.city },
1165
+ ...p.form.value.postalCode && {
1166
+ postal_code: p.form.value.postalCode
1119
1167
  },
1120
- ...u.form.value.state && { state: u.form.value.state },
1121
- country: u.form.value.country ?? ""
1122
- }, d = De({
1123
- pricingPlanScheduleInfos: ((ee = p.value) == null ? void 0 : ee.pricing_plan_schedule_infos) ?? [],
1168
+ ...p.form.value.state && { state: p.form.value.state },
1169
+ country: p.form.value.country ?? ""
1170
+ }, m = Ne({
1171
+ pricingPlanScheduleInfos: ((Z = d.value) == null ? void 0 : Z.pricing_plan_schedule_infos) ?? [],
1124
1172
  type: "DEFAULT"
1125
- }), h = (oe = d == null ? void 0 : d.pricing_plan_version) == null ? void 0 : oe.pricing_currency_settings, S = (((ae = h == null ? void 0 : h.pricing_currencies) == null ? void 0 : ae.length) ?? 0) > 1, H = (((X = (U = d == null ? void 0 : d.pricing_plan_version) == null ? void 0 : U.billing_period_settings) == null ? void 0 : X.billing_periods) ?? []).length > 1, $ = Lt({
1126
- enabledPricings: (W = u.form.value.enabledPricingIds) == null ? void 0 : W.map((ue) => ({
1127
- pricing_id: ue
1173
+ }), h = (re = m == null ? void 0 : m.pricing_plan_version) == null ? void 0 : re.pricing_currency_settings, S = (((ne = h == null ? void 0 : h.pricing_currencies) == null ? void 0 : ne.length) ?? 0) > 1, H = (((ie = (U = m == null ? void 0 : m.pricing_plan_version) == null ? void 0 : U.billing_period_settings) == null ? void 0 : ie.billing_periods) ?? []).length > 1, K = wt({
1174
+ enabledPricings: (q = p.form.value.enabledPricingIds) == null ? void 0 : q.map((de) => ({
1175
+ pricing_id: de
1128
1176
  })),
1129
- seatsValues: u.form.value.seatsValues,
1130
- pricingPlanScheduleInfos: ((ne = p.value) == null ? void 0 : ne.pricing_plan_schedule_infos) ?? [],
1131
- pricingCurrency: S ? (re = p.value) == null ? void 0 : re.billing_currency : void 0,
1132
- billingPeriod: H ? (ce = p.value) == null ? void 0 : ce.billing_period : void 0
1133
- }), ie = u.form.value.promotionCode, J = ie && p.value ? (() => {
1134
- var Se, Ee, ke;
1135
- const ue = $ ? [...$] : [], ye = ((Se = ue[0]) == null ? void 0 : Se.pricing_plan_schedule_id) ?? ((ke = De({
1136
- pricingPlanScheduleInfos: ((Ee = p.value) == null ? void 0 : Ee.pricing_plan_schedule_infos) ?? [],
1177
+ seatsValues: p.form.value.seatsValues,
1178
+ unitsValues: p.form.value.unitsValues,
1179
+ pricingPlanScheduleInfos: ((ee = d.value) == null ? void 0 : ee.pricing_plan_schedule_infos) ?? [],
1180
+ pricingCurrency: S ? (oe = d.value) == null ? void 0 : oe.billing_currency : void 0,
1181
+ billingPeriod: H ? (ue = d.value) == null ? void 0 : ue.billing_period : void 0
1182
+ }), Y = p.form.value.promotionCode, ae = Y && d.value ? (() => {
1183
+ var Ce, Oe, xe;
1184
+ const de = K ? [...K] : [], pe = ((Ce = de[0]) == null ? void 0 : Ce.pricing_plan_schedule_id) ?? ((xe = Ne({
1185
+ pricingPlanScheduleInfos: ((Oe = d.value) == null ? void 0 : Oe.pricing_plan_schedule_infos) ?? [],
1137
1186
  type: "DEFAULT"
1138
- })) == null ? void 0 : ke.id);
1139
- if (!ye)
1140
- return $;
1141
- const Ne = ue.find(
1142
- ({ pricing_plan_schedule_id: de }) => de === ye
1187
+ })) == null ? void 0 : xe.id);
1188
+ if (!pe)
1189
+ return K;
1190
+ const Ee = de.find(
1191
+ ({ pricing_plan_schedule_id: le }) => le === pe
1143
1192
  );
1144
- if (Ne)
1145
- Ne.promotion_codes = [ie];
1193
+ if (Ee)
1194
+ Ee.promotion_codes = [Y];
1146
1195
  else {
1147
- const de = $ == null ? void 0 : $[0];
1148
- ue.push({
1149
- pricing_plan_schedule_id: ye,
1150
- ...(de == null ? void 0 : de.enabled_pricings) && {
1151
- enabled_pricings: de.enabled_pricings
1196
+ const le = K == null ? void 0 : K[0];
1197
+ de.push({
1198
+ pricing_plan_schedule_id: pe,
1199
+ ...(le == null ? void 0 : le.enabled_pricings) && {
1200
+ enabled_pricings: le.enabled_pricings
1201
+ },
1202
+ ...(le == null ? void 0 : le.seats_values) && {
1203
+ seats_values: le.seats_values
1152
1204
  },
1153
- ...(de == null ? void 0 : de.seats_values) && {
1154
- seats_values: de.seats_values
1205
+ ...(le == null ? void 0 : le.units) && {
1206
+ units: le.units
1155
1207
  },
1156
- promotion_codes: [ie]
1208
+ promotion_codes: [Y]
1157
1209
  });
1158
1210
  }
1159
- return ue;
1160
- })() : $;
1211
+ return de;
1212
+ })() : K;
1161
1213
  return {
1162
1214
  type: "INIT_PRICING_PLAN_SUBSCRIPTION",
1163
1215
  init_pricing_plan_subscription: {
1164
1216
  template_pricing_plan_subscription_id: o,
1165
- ...J && {
1166
- pricing_plan_schedule_customizations: J
1217
+ ...ae && {
1218
+ pricing_plan_schedule_customizations: ae
1167
1219
  },
1168
1220
  customer_details: {
1169
- email: u.form.value.email ?? "",
1170
- type: u.form.value.type,
1171
- ...u.form.value.type === "INDIVIDUAL" ? {
1221
+ email: p.form.value.email ?? "",
1222
+ type: p.form.value.type,
1223
+ ...p.form.value.type === "INDIVIDUAL" ? {
1172
1224
  individual: {
1173
- residential_address: r,
1174
- ...f ? { name: f } : {}
1225
+ residential_address: l,
1226
+ ..._ ? { name: _ } : {}
1175
1227
  }
1176
1228
  } : {
1177
1229
  organization: {
1178
- registered_address: r,
1179
- legal_name: u.form.value.companyLegalName ?? "",
1180
- ...u.form.value.companyVatNumber && et.$validator(u.form.value.companyVatNumber, {}, {}) ? {
1230
+ registered_address: l,
1231
+ legal_name: p.form.value.companyLegalName ?? "",
1232
+ ...p.form.value.companyVatNumber && tt.$validator(p.form.value.companyVatNumber, {}, {}) ? {
1181
1233
  tax_ids: [
1182
1234
  {
1183
- id: u.form.value.companyVatNumber,
1184
- type: $t
1235
+ id: p.form.value.companyVatNumber,
1236
+ type: Ut
1185
1237
  }
1186
1238
  ]
1187
1239
  } : {}
@@ -1191,31 +1243,31 @@ function Po({
1191
1243
  }
1192
1244
  };
1193
1245
  }), te = b(() => {
1194
- var f, r;
1195
- return ((f = y.trialInvoicePreview.value) == null ? void 0 : f.invoice_amount_including_tax) ?? ((r = y.invoicePreview.value) == null ? void 0 : r.invoice_amount_including_tax);
1246
+ var _, l;
1247
+ return ((_ = y.trialInvoicePreview.value) == null ? void 0 : _.invoice_amount_including_tax) ?? ((l = y.invoicePreview.value) == null ? void 0 : l.invoice_amount_including_tax);
1196
1248
  });
1197
- Le(
1198
- [() => u.form.value.country, te],
1199
- ([f, r]) => {
1200
- !p.value || !f || !r || x(f, r);
1249
+ Te(
1250
+ [() => p.form.value.country, te],
1251
+ ([_, l]) => {
1252
+ !d.value || !_ || !l || L(_, l);
1201
1253
  }
1202
1254
  );
1203
- function v() {
1204
- sessionStorage.setItem(Ze, JSON.stringify(u.form.value));
1255
+ function u() {
1256
+ sessionStorage.setItem(Xe, JSON.stringify(p.form.value));
1205
1257
  }
1206
- return Te(async () => {
1207
- const f = xe("redirect_status"), r = !!xe(Di), d = !!xe("payment_intent_client_secret") || !!xe("setup_intent_client_secret");
1208
- f === "succeeded" && r && d && (M.value = !0);
1209
- const S = sessionStorage.getItem(Ze);
1210
- let O = null;
1258
+ return ke(async () => {
1259
+ const _ = we("redirect_status"), l = !!we(Ei), m = !!we("payment_intent_client_secret") || !!we("setup_intent_client_secret");
1260
+ _ === "succeeded" && l && m && (g.value = !0);
1261
+ const S = sessionStorage.getItem(Xe);
1262
+ let R = null;
1211
1263
  if (S)
1212
1264
  try {
1213
- O = JSON.parse(S);
1265
+ R = JSON.parse(S);
1214
1266
  } catch {
1215
1267
  }
1216
- O && u.updateInitialState(O);
1268
+ R && p.updateInitialState(R);
1217
1269
  try {
1218
- await T();
1270
+ await C();
1219
1271
  } catch (H) {
1220
1272
  throw a.error(
1221
1273
  "SUBSCRIPTION_LOAD_FAILED",
@@ -1225,99 +1277,99 @@ function Po({
1225
1277
  ), H;
1226
1278
  }
1227
1279
  try {
1228
- await G();
1280
+ await $();
1229
1281
  } catch {
1230
1282
  }
1231
- O && (u.updateInitialState(O), sessionStorage.removeItem(Ze));
1232
- }), Le(
1233
- _,
1234
- (f) => {
1235
- f && N();
1283
+ R && (p.updateInitialState(R), sessionStorage.removeItem(Xe));
1284
+ }), Te(
1285
+ M,
1286
+ (_) => {
1287
+ _ && T();
1236
1288
  },
1237
1289
  { once: !0 }
1238
1290
  ), {
1239
1291
  /** What the host configured, once anything unusable has been dropped and reported. */
1240
1292
  validatedEmail: s,
1241
- validatedCountry: l,
1293
+ validatedCountry: r,
1242
1294
  invoicePreview: y.invoicePreview,
1243
1295
  invoicePreviewByBillingPeriod: y.invoicePreviewByBillingPeriod,
1244
1296
  trialInvoicePreview: y.trialInvoicePreview,
1245
1297
  trialPeriod: y.trialPeriod,
1246
- loadInvoicePreview: G,
1247
- updateInvoicePreviewOnBillingInformationChange: R,
1298
+ loadInvoicePreview: $,
1299
+ updateInvoicePreviewOnBillingInformationChange: j,
1248
1300
  lastPreviewScheduleId: y.lastPreviewScheduleId,
1249
1301
  paymentMethodOptions: A,
1250
1302
  hasPaymentMethodOptionsError: P,
1251
- retryPaymentMethodOptions: N,
1252
- isPaymentMethodsPending: C,
1303
+ retryPaymentMethodOptions: T,
1304
+ isPaymentMethodsPending: x,
1253
1305
  isInvoicePreviewPending: y.isPending,
1254
- subscription: p,
1255
- checkoutForm: u,
1256
- authorizationContext: Q,
1257
- isPaid: M,
1306
+ subscription: d,
1307
+ checkoutForm: p,
1308
+ authorizationContext: J,
1309
+ isPaid: g,
1258
1310
  amount: te,
1259
- saveFormStateForRedirect: v
1311
+ saveFormStateForRedirect: u
1260
1312
  };
1261
1313
  }
1262
- function Do({
1314
+ function xo({
1263
1315
  checkoutForm: e,
1264
1316
  updateInvoicePreviewOnBillingInformationChange: i,
1265
1317
  formatErrorMessage: o,
1266
1318
  onInvalidPromotionCode: n,
1267
1319
  onApplyError: a
1268
1320
  }) {
1269
- const l = _e(), s = V(!1), M = V(null), p = (A, c) => {
1270
- M.value = o ? o({ action: A, error: c }) : A === "apply" ? "Promotion code could not be applied. Please try again." : "Promotion code could not be removed. Please try again.";
1271
- }, E = (A) => No(A) && A.field === "promotion_codes", y = async (A) => {
1321
+ const r = Me(), s = F(!1), g = F(null), d = (A, c) => {
1322
+ g.value = o ? o({ action: A, error: c }) : A === "apply" ? "Promotion code could not be applied. Please try again." : "Promotion code could not be removed. Please try again.";
1323
+ }, N = (A) => Lo(A) && A.field === "promotion_codes", y = async (A) => {
1272
1324
  const c = A == null ? void 0 : A.trim();
1273
1325
  if (c) {
1274
- M.value = null, e.form.value.promotionCode = c, s.value = !0;
1326
+ g.value = null, e.form.value.promotionCode = c, s.value = !0;
1275
1327
  try {
1276
1328
  await i({
1277
1329
  promotionCode: c
1278
1330
  });
1279
- } catch (C) {
1280
- l.capture(C, {
1331
+ } catch (x) {
1332
+ r.capture(x, {
1281
1333
  code: "PROMOTION_CODE_APPLY_FAILED",
1282
1334
  message: "Failed to apply promotion code"
1283
- }), p("apply", C), a == null || a(), E(C) && (n == null || n()), await _({ suppressError: !0, preserveErrorMessage: !0 });
1335
+ }), d("apply", x), a == null || a(), N(x) && (n == null || n()), await M({ suppressError: !0, preserveErrorMessage: !0 });
1284
1336
  } finally {
1285
1337
  s.value = !1;
1286
1338
  }
1287
1339
  }
1288
- }, _ = async ({
1340
+ }, M = async ({
1289
1341
  suppressError: A = !1,
1290
1342
  preserveErrorMessage: c = !1
1291
1343
  } = {}) => {
1292
- c || (M.value = null), delete e.form.value.promotionCode, s.value = !0;
1344
+ c || (g.value = null), delete e.form.value.promotionCode, s.value = !0;
1293
1345
  try {
1294
1346
  await i({});
1295
- } catch (C) {
1296
- l.capture(C, {
1347
+ } catch (x) {
1348
+ r.capture(x, {
1297
1349
  code: "PROMOTION_CODE_REMOVE_FAILED",
1298
1350
  message: "Failed to remove promotion code"
1299
- }), A || p("remove", C);
1351
+ }), A || d("remove", x);
1300
1352
  } finally {
1301
1353
  s.value = !1;
1302
1354
  }
1303
1355
  };
1304
1356
  return {
1305
1357
  applyPromotionCode: y,
1306
- removePromotionCode: _,
1358
+ removePromotionCode: M,
1307
1359
  isPromotionCodePending: s,
1308
- promotionCodeErrorMessage: M
1360
+ promotionCodeErrorMessage: g
1309
1361
  };
1310
1362
  }
1311
- function No(e) {
1363
+ function Lo(e) {
1312
1364
  return typeof e == "object" && e !== null && "field" in e;
1313
1365
  }
1314
- function Eo({
1366
+ function wo({
1315
1367
  subscription: e,
1316
1368
  promotionCode: i,
1317
1369
  appliedPromotionCode: o,
1318
1370
  applyPromotionCode: n
1319
1371
  }) {
1320
- Le(
1372
+ Te(
1321
1373
  e,
1322
1374
  (a) => {
1323
1375
  a && i && (o.value = i, n(i));
@@ -1325,13 +1377,13 @@ function Eo({
1325
1377
  { once: !0 }
1326
1378
  );
1327
1379
  }
1328
- const Co = { class: "flex items-center gap-2" }, xo = /* @__PURE__ */ se({
1380
+ const To = { class: "flex items-center gap-2" }, So = /* @__PURE__ */ ce({
1329
1381
  __name: "TaxIDCheckNotice",
1330
1382
  props: {
1331
1383
  taxIdValidationResult: { type: Object }
1332
1384
  },
1333
1385
  setup(e) {
1334
- const i = e, { formatMessage: o } = ge(), n = b(() => i.taxIdValidationResult.valid === "VALID"), a = b(() => n.value ? o({
1386
+ const i = e, { formatMessage: o } = ve(), n = b(() => i.taxIdValidationResult.valid === "VALID"), a = b(() => n.value ? o({
1335
1387
  defaultMessage: "VAT number is valid.",
1336
1388
  id: "tax_check.valid_vat_number",
1337
1389
  description: "The message shown when the VAT number is valid"
@@ -1340,15 +1392,15 @@ const Co = { class: "flex items-center gap-2" }, xo = /* @__PURE__ */ se({
1340
1392
  id: "tax_check.invalid_vat_number",
1341
1393
  description: "The message shown when the VAT number is invalid"
1342
1394
  }));
1343
- return (l, s) => (g(), k(t(Li), {
1395
+ return (r, s) => (v(), O(t(Ti), {
1344
1396
  type: n.value ? "success" : "danger",
1345
1397
  icon: !1
1346
1398
  }, {
1347
1399
  default: I(() => [
1348
- w("div", Co, [
1349
- D(t(le), { variant: "body-xs" }, {
1400
+ w("div", To, [
1401
+ E(t(se), { variant: "body-xs" }, {
1350
1402
  default: I(() => [
1351
- K(F(a.value), 1)
1403
+ G(V(a.value), 1)
1352
1404
  ]),
1353
1405
  _: 1
1354
1406
  })
@@ -1358,16 +1410,16 @@ const Co = { class: "flex items-center gap-2" }, xo = /* @__PURE__ */ se({
1358
1410
  }, 8, ["type"]));
1359
1411
  }
1360
1412
  });
1361
- function Lo(e) {
1362
- const { checkTaxID: i } = wi(), o = V(void 0), n = b(() => {
1363
- var _;
1364
- return ((_ = e.value.companyVatNumber) == null ? void 0 : _.trim()) ?? "";
1365
- }), a = b(() => e.value.companyLegalName ?? ""), l = b(() => e.value.country), s = V(!1), M = b(() => Tt(l.value ?? "")), p = b(
1366
- () => !!(n.value && a.value && l.value)
1367
- ), E = b(() => M.value && n.value);
1413
+ function ko(e) {
1414
+ const { checkTaxID: i } = Si(), o = F(void 0), n = b(() => {
1415
+ var M;
1416
+ return ((M = e.value.companyVatNumber) == null ? void 0 : M.trim()) ?? "";
1417
+ }), a = b(() => e.value.companyLegalName ?? ""), r = b(() => e.value.country), s = F(!1), g = b(() => kt(r.value ?? "")), d = b(
1418
+ () => !!(n.value && a.value && r.value)
1419
+ ), N = b(() => g.value && n.value);
1368
1420
  async function y() {
1369
- var _;
1370
- if (!(!p.value || !M.value || !l.value)) {
1421
+ var M;
1422
+ if (!(!d.value || !g.value || !r.value)) {
1371
1423
  s.value = !0;
1372
1424
  try {
1373
1425
  const A = await i({
@@ -1376,11 +1428,11 @@ function Lo(e) {
1376
1428
  legal_name: a.value,
1377
1429
  tax_ids: [{ id: n.value, type: "GENERIC_TAX_ID" }],
1378
1430
  registered_address: {
1379
- country: l.value
1431
+ country: r.value
1380
1432
  }
1381
1433
  }
1382
1434
  });
1383
- (_ = A == null ? void 0 : A.data) != null && _.length ? o.value = A.data[0] : o.value = void 0;
1435
+ (M = A == null ? void 0 : A.data) != null && M.length ? o.value = A.data[0] : o.value = void 0;
1384
1436
  } finally {
1385
1437
  s.value = !1;
1386
1438
  }
@@ -1390,14 +1442,14 @@ function Lo(e) {
1390
1442
  runTaxIDCheck: y,
1391
1443
  taxIdValidationData: o,
1392
1444
  isTaxIDCheckPending: s,
1393
- isTaxIDCheckEnabled: p,
1394
- showViesCheckNotice: E,
1395
- isSelectedCountryEU: M
1445
+ isTaxIDCheckEnabled: d,
1446
+ showViesCheckNotice: N,
1447
+ isSelectedCountryEU: g
1396
1448
  };
1397
1449
  }
1398
- const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1 gap-2" }, So = { key: 0 }, ko = { class: "mt-2 flex flex-col gap-3" }, Oo = { class: "grid grid-cols-3 gap-2" }, zo = { key: 0 }, jo = { class: "mt-4 grid grid-cols-1 gap-3" }, Ro = "checkout-form", $o = /* @__PURE__ */ se({
1450
+ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1 gap-2" }, jo = { key: 0 }, Ro = { class: "mt-2 flex flex-col gap-3" }, Bo = { class: "grid grid-cols-3 gap-2" }, $o = { key: 0 }, Uo = { class: "mt-4 grid grid-cols-1 gap-3" }, Vo = "checkout-form", Fo = /* @__PURE__ */ ce({
1399
1451
  __name: "CheckoutForm",
1400
- props: /* @__PURE__ */ yt({
1452
+ props: /* @__PURE__ */ vt({
1401
1453
  validation: { type: null },
1402
1454
  initialState: { type: Object },
1403
1455
  readOnlyEmail: { type: String },
@@ -1409,89 +1461,89 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1409
1461
  modelValue: { required: !0 },
1410
1462
  modelModifiers: {}
1411
1463
  }),
1412
- emits: /* @__PURE__ */ yt(["submit"], ["update:modelValue"]),
1464
+ emits: /* @__PURE__ */ vt(["submit"], ["update:modelValue"]),
1413
1465
  setup(e) {
1414
- const i = e, o = V(!1), n = Wt(e, "modelValue"), a = b({
1466
+ const i = e, o = F(!1), n = ei(e, "modelValue"), a = b({
1415
1467
  get: () => n.value.type === "ORGANIZATION",
1416
- set: (x) => {
1417
- n.value.type = x ? "ORGANIZATION" : "INDIVIDUAL";
1468
+ set: (L) => {
1469
+ n.value.type = L ? "ORGANIZATION" : "INDIVIDUAL";
1418
1470
  }
1419
- }), l = b(() => n.value.type === "ORGANIZATION"), s = b({
1471
+ }), r = b(() => n.value.type === "ORGANIZATION"), s = b({
1420
1472
  get: () => n.value.country,
1421
- set: (x) => {
1422
- n.value.country = x && Ve(x) ? x : void 0;
1473
+ set: (L) => {
1474
+ n.value.country = L && Ge(L) ? L : void 0;
1423
1475
  }
1424
- }), M = b(() => n.value.country !== "US"), { isTaxIDCheckEnabled: p, isTaxIDCheckPending: E, taxIdValidationData: y, runTaxIDCheck: _ } = Lo(n), { $t: A } = ge(), c = yi(), C = (x) => i.getIsFieldRequired(x) ? "" : " " + A({
1476
+ }), g = b(() => n.value.country !== "US"), { isTaxIDCheckEnabled: d, isTaxIDCheckPending: N, taxIdValidationData: y, runTaxIDCheck: M } = ko(n), { $t: A } = ve(), c = _i(), x = (L) => i.getIsFieldRequired(L) ? "" : " " + A({
1425
1477
  defaultMessage: "(optional)",
1426
1478
  id: "checkout.optional_suffix.label",
1427
1479
  description: "The suffix for optional fields in the checkout form"
1428
- }), m = b(
1429
- () => n.value.country ? xi(n.value.country) : void 0
1480
+ }), f = b(
1481
+ () => n.value.country ? wi(n.value.country) : void 0
1430
1482
  );
1431
- return (x, P) => (g(), Z("form", {
1432
- id: Ro,
1433
- onSubmit: P[12] || (P[12] = $e((N) => x.$emit("submit", n.value), ["prevent"]))
1483
+ return (L, P) => (v(), W("form", {
1484
+ id: Vo,
1485
+ onSubmit: P[12] || (P[12] = $e((T) => L.$emit("submit", n.value), ["prevent"]))
1434
1486
  }, [
1435
- w("div", wo, [
1436
- D(t(pe), {
1487
+ w("div", Oo, [
1488
+ E(t(ge), {
1437
1489
  title: t(c).contactInformationTitle
1438
1490
  }, {
1439
1491
  default: I(() => [
1440
- w("div", To, [
1441
- e.readOnly ? (g(), Z(fe, { key: 0 }, [
1442
- D(t(le), {
1492
+ w("div", zo, [
1493
+ e.readOnly ? (v(), W(_e, { key: 0 }, [
1494
+ E(t(se), {
1443
1495
  variant: "body",
1444
1496
  tag: "span",
1445
1497
  weight: "semibold",
1446
1498
  "no-spacing": ""
1447
1499
  }, {
1448
1500
  default: I(() => [
1449
- K(F(n.value.email), 1)
1501
+ G(V(n.value.email), 1)
1450
1502
  ]),
1451
1503
  _: 1
1452
1504
  }),
1453
- D(t(le), {
1505
+ E(t(se), {
1454
1506
  variant: "body-sm",
1455
1507
  tag: "span",
1456
1508
  color: "subtle",
1457
1509
  "no-spacing": ""
1458
1510
  }, {
1459
1511
  default: I(() => [
1460
- K(F(m.value), 1)
1512
+ G(V(f.value), 1)
1461
1513
  ]),
1462
1514
  _: 1
1463
1515
  })
1464
- ], 64)) : (g(), Z(fe, { key: 1 }, [
1465
- D(t(me), {
1516
+ ], 64)) : (v(), W(_e, { key: 1 }, [
1517
+ E(t(ye), {
1466
1518
  modelValue: n.value.email,
1467
- "onUpdate:modelValue": P[0] || (P[0] = (N) => n.value.email = N),
1519
+ "onUpdate:modelValue": P[0] || (P[0] = (T) => n.value.email = T),
1468
1520
  required: "",
1469
1521
  type: "email",
1470
1522
  name: "email",
1471
1523
  disabled: !!e.readOnlyEmail,
1472
1524
  label: t(c).emailLabel,
1473
- placeholder: t(c).emailPlaceholder + C("email"),
1525
+ placeholder: t(c).emailPlaceholder + x("email"),
1474
1526
  error: e.validation.value.email.$errors
1475
1527
  }, null, 8, ["modelValue", "disabled", "label", "placeholder", "error"]),
1476
- D(t(vi), {
1528
+ E(t(Mi), {
1477
1529
  "single-model-value": s.value,
1478
- "onUpdate:singleModelValue": P[3] || (P[3] = (N) => s.value = N),
1530
+ "onUpdate:singleModelValue": P[3] || (P[3] = (T) => s.value = T),
1479
1531
  required: "",
1480
1532
  name: "country",
1481
- label: t(c).countryLabel + C("country"),
1533
+ label: t(c).countryLabel + x("country"),
1482
1534
  error: e.validation.value.country.$errors
1483
1535
  }, {
1484
1536
  "label-suffix": I(() => [
1485
- !o.value && !e.isBillingInformationMandatory ? (g(), k(t(Ie), {
1537
+ !o.value && !e.isBillingInformationMandatory ? (v(), O(t(Ae), {
1486
1538
  key: 0,
1487
1539
  size: "xs",
1488
1540
  intent: "subtle",
1489
1541
  "icon-prefix": "add",
1490
1542
  class: "py-0.5",
1491
- onClick: P[1] || (P[1] = (N) => o.value = !0)
1543
+ onClick: P[1] || (P[1] = (T) => o.value = !0)
1492
1544
  }, {
1493
1545
  default: I(() => [
1494
- K(F(t(A)({
1546
+ G(V(t(A)({
1495
1547
  defaultMessage: "More billing details",
1496
1548
  description: "Label of the button in the checkout that lets you fill out all billing details",
1497
1549
  id: "checkout.billing_details.add_billing_details_button.label"
@@ -1499,16 +1551,16 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1499
1551
  ]),
1500
1552
  _: 1
1501
1553
  })) : B("", !0),
1502
- o.value && !e.isBillingInformationMandatory ? (g(), k(t(Ie), {
1554
+ o.value && !e.isBillingInformationMandatory ? (v(), O(t(Ae), {
1503
1555
  key: 1,
1504
1556
  size: "sm",
1505
1557
  intent: "subtle",
1506
1558
  "icon-prefix": "close",
1507
1559
  class: "py-0.5",
1508
- onClick: P[2] || (P[2] = (N) => o.value = !1)
1560
+ onClick: P[2] || (P[2] = (T) => o.value = !1)
1509
1561
  }, {
1510
1562
  default: I(() => [
1511
- K(F(t(A)({
1563
+ G(V(t(A)({
1512
1564
  defaultMessage: "Remove billing details",
1513
1565
  id: "checkout.billing_details.remove_billing_details_button.label",
1514
1566
  description: "Label of the button in the checkout that lets you remove the billing details"
@@ -1521,15 +1573,15 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1521
1573
  }, 8, ["single-model-value", "label", "error"])
1522
1574
  ], 64))
1523
1575
  ]),
1524
- D(t(bt), {
1576
+ E(t(It), {
1525
1577
  "is-open": o.value || !!e.isBillingInformationMandatory
1526
1578
  }, {
1527
1579
  default: I(() => [
1528
- o.value || e.isBillingInformationMandatory ? (g(), Z("div", So, [
1529
- w("div", ko, [
1530
- D(t(me), {
1580
+ o.value || e.isBillingInformationMandatory ? (v(), W("div", jo, [
1581
+ w("div", Ro, [
1582
+ E(t(ye), {
1531
1583
  modelValue: n.value.addressLine1,
1532
- "onUpdate:modelValue": P[4] || (P[4] = (N) => n.value.addressLine1 = N),
1584
+ "onUpdate:modelValue": P[4] || (P[4] = (T) => n.value.addressLine1 = T),
1533
1585
  name: "address_line_1",
1534
1586
  label: t(A)({
1535
1587
  defaultMessage: "Billing address",
@@ -1540,39 +1592,39 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1540
1592
  defaultMessage: "Address line 1...",
1541
1593
  id: "checkout.address.line1.placeholder",
1542
1594
  description: "Address line 1 of the customer address in the checkout form"
1543
- }) + C("addressLine1"),
1595
+ }) + x("addressLine1"),
1544
1596
  required: "",
1545
1597
  error: e.validation.value.addressLine1.$errors
1546
1598
  }, null, 8, ["modelValue", "label", "placeholder", "error"]),
1547
- D(t(me), {
1599
+ E(t(ye), {
1548
1600
  modelValue: n.value.addressLine2,
1549
- "onUpdate:modelValue": P[5] || (P[5] = (N) => n.value.addressLine2 = N),
1601
+ "onUpdate:modelValue": P[5] || (P[5] = (T) => n.value.addressLine2 = T),
1550
1602
  name: "address_line_2",
1551
1603
  placeholder: t(A)({
1552
1604
  defaultMessage: "Address line 2...",
1553
1605
  id: "checkout.address.line2.placeholder",
1554
1606
  description: "Address line 2 of the customer address in the checkout form"
1555
- }) + C("addressLine2")
1607
+ }) + x("addressLine2")
1556
1608
  }, null, 8, ["modelValue", "placeholder"]),
1557
- w("div", Oo, [
1558
- D(t(me), {
1609
+ w("div", Bo, [
1610
+ E(t(ye), {
1559
1611
  modelValue: n.value.postalCode,
1560
- "onUpdate:modelValue": P[6] || (P[6] = (N) => n.value.postalCode = N),
1612
+ "onUpdate:modelValue": P[6] || (P[6] = (T) => n.value.postalCode = T),
1561
1613
  name: "postal_code",
1562
- placeholder: t(c).postalCodePlaceholder + C("postalCode"),
1614
+ placeholder: t(c).postalCodePlaceholder + x("postalCode"),
1563
1615
  error: e.validation.value.addressLine1.$errors
1564
1616
  }, null, 8, ["modelValue", "placeholder", "error"]),
1565
- D(t(me), {
1617
+ E(t(ye), {
1566
1618
  modelValue: n.value.city,
1567
- "onUpdate:modelValue": P[7] || (P[7] = (N) => n.value.city = N),
1619
+ "onUpdate:modelValue": P[7] || (P[7] = (T) => n.value.city = T),
1568
1620
  name: "city",
1569
- placeholder: t(c).cityPlaceholder + C("city")
1621
+ placeholder: t(c).cityPlaceholder + x("city")
1570
1622
  }, null, 8, ["modelValue", "placeholder"]),
1571
- D(t(me), {
1623
+ E(t(ye), {
1572
1624
  modelValue: n.value.state,
1573
- "onUpdate:modelValue": P[8] || (P[8] = (N) => n.value.state = N),
1625
+ "onUpdate:modelValue": P[8] || (P[8] = (T) => n.value.state = T),
1574
1626
  name: "state",
1575
- placeholder: t(c).statePlaceholder + C("state"),
1627
+ placeholder: t(c).statePlaceholder + x("state"),
1576
1628
  error: e.validation.value.state.$errors
1577
1629
  }, null, 8, ["modelValue", "placeholder", "error"])
1578
1630
  ])
@@ -1584,49 +1636,49 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1584
1636
  ]),
1585
1637
  _: 1
1586
1638
  }, 8, ["title"]),
1587
- e.readOnly ? B("", !0) : (g(), k(t(pe), { key: 0 }, {
1639
+ e.readOnly ? B("", !0) : (v(), O(t(ge), { key: 0 }, {
1588
1640
  default: I(() => [
1589
- D(fi, {
1641
+ E(hi, {
1590
1642
  modelValue: a.value,
1591
- "onUpdate:modelValue": P[9] || (P[9] = (N) => a.value = N),
1643
+ "onUpdate:modelValue": P[9] || (P[9] = (T) => a.value = T),
1592
1644
  "no-spacing": "",
1593
1645
  class: "!flex"
1594
1646
  }, null, 8, ["modelValue"]),
1595
- D(t(bt), { "is-open": l.value }, {
1647
+ E(t(It), { "is-open": r.value }, {
1596
1648
  default: I(() => [
1597
- l.value ? (g(), Z("div", zo, [
1598
- w("div", jo, [
1599
- D(t(me), {
1649
+ r.value ? (v(), W("div", $o, [
1650
+ w("div", Uo, [
1651
+ E(t(ye), {
1600
1652
  modelValue: n.value.companyLegalName,
1601
- "onUpdate:modelValue": P[10] || (P[10] = (N) => n.value.companyLegalName = N),
1653
+ "onUpdate:modelValue": P[10] || (P[10] = (T) => n.value.companyLegalName = T),
1602
1654
  required: "",
1603
1655
  name: "legal_name",
1604
1656
  label: t(c).legalNameLabel,
1605
1657
  placeholder: t(c).legalNamePlaceholder
1606
1658
  }, null, 8, ["modelValue", "label", "placeholder"]),
1607
- M.value ? (g(), k(t(me), {
1659
+ g.value ? (v(), O(t(ye), {
1608
1660
  key: 0,
1609
1661
  modelValue: n.value.companyVatNumber,
1610
- "onUpdate:modelValue": P[11] || (P[11] = (N) => n.value.companyVatNumber = N),
1662
+ "onUpdate:modelValue": P[11] || (P[11] = (T) => n.value.companyVatNumber = T),
1611
1663
  name: "vat_number",
1612
1664
  "input-class": "focus:outline-none focus:ring-0",
1613
1665
  label: t(c).vatNumberLabel,
1614
1666
  placeholder: t(c).vatNumberPlaceholder,
1615
1667
  error: e.validation.value.companyVatNumber.$errors,
1616
1668
  "suffix-class": "px-2 border-l-0"
1617
- }, qe({ _: 2 }, [
1618
- t(Tt)(n.value.country ?? "") ? {
1669
+ }, Je({ _: 2 }, [
1670
+ t(kt)(n.value.country ?? "") ? {
1619
1671
  name: "suffix",
1620
1672
  fn: I(() => [
1621
- D(t(Ie), {
1673
+ E(t(Ae), {
1622
1674
  type: "button",
1623
1675
  size: "sm",
1624
1676
  intent: "secondary",
1625
- disabled: !t(p) || t(E) || e.validation.value.companyVatNumber.$invalid,
1626
- onClick: t(_)
1677
+ disabled: !t(d) || t(N) || e.validation.value.companyVatNumber.$invalid,
1678
+ onClick: t(M)
1627
1679
  }, {
1628
1680
  default: I(() => [
1629
- K(F(t(A)({
1681
+ G(V(t(A)({
1630
1682
  defaultMessage: "Check",
1631
1683
  id: "checkout.vat_number.check_button.label",
1632
1684
  description: "The label for the check button in the checkout form"
@@ -1638,11 +1690,11 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1638
1690
  key: "0"
1639
1691
  } : void 0
1640
1692
  ]), 1032, ["modelValue", "label", "placeholder", "error"])) : B("", !0),
1641
- t(y) ? (g(), Z("div", {
1693
+ t(y) ? (v(), W("div", {
1642
1694
  key: 1,
1643
- class: he({ "opacity-75": t(E) })
1695
+ class: be({ "opacity-75": t(N) })
1644
1696
  }, [
1645
- D(xo, { "tax-id-validation-result": t(y) }, null, 8, ["tax-id-validation-result"])
1697
+ E(So, { "tax-id-validation-result": t(y) }, null, 8, ["tax-id-validation-result"])
1646
1698
  ], 2)) : B("", !0)
1647
1699
  ])
1648
1700
  ])) : B("", !0)
@@ -1655,10 +1707,10 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1655
1707
  ])
1656
1708
  ], 32));
1657
1709
  }
1658
- }), Bo = {
1710
+ }), Go = {
1659
1711
  key: 0,
1660
1712
  class: "flex items-center"
1661
- }, Uo = ["innerHTML"], Fo = ["innerHTML"], Vo = /* @__PURE__ */ se({
1713
+ }, Yo = ["innerHTML"], Ko = ["innerHTML"], Qo = /* @__PURE__ */ ce({
1662
1714
  __name: "CheckoutTitle",
1663
1715
  props: {
1664
1716
  trialPeriod: { type: Object },
@@ -1670,20 +1722,20 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1670
1722
  subscriptionStartDate: { type: Date }
1671
1723
  },
1672
1724
  setup(e) {
1673
- const { $t: i } = ge();
1674
- return (o, n) => (g(), Z("div", null, [
1725
+ const { $t: i } = ve();
1726
+ return (o, n) => (v(), W("div", null, [
1675
1727
  w("div", null, [
1676
- D(t(le), {
1728
+ E(t(se), {
1677
1729
  variant: "heading-1",
1678
1730
  class: "inline-block"
1679
1731
  }, {
1680
1732
  default: I(() => [
1681
- K(F(e.trialStartDate ? e.subscriptionName : t(i)({
1733
+ G(V(e.trialStartDate ? e.subscriptionName : t(i)({
1682
1734
  defaultMessage: "Pay and subscribe",
1683
1735
  id: "checkout.page_title",
1684
1736
  description: "The title of the checkout page"
1685
- })) + F(" "), 1),
1686
- e.trialPeriod ? (g(), k(t(li), {
1737
+ })) + V(" "), 1),
1738
+ e.trialPeriod ? (v(), O(t(ui), {
1687
1739
  key: 0,
1688
1740
  "trial-period": e.trialPeriod,
1689
1741
  size: "lg",
@@ -1693,13 +1745,13 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1693
1745
  _: 1
1694
1746
  })
1695
1747
  ]),
1696
- D(t(le), {
1748
+ E(t(se), {
1697
1749
  variant: "body-sm",
1698
1750
  color: "subtle",
1699
1751
  "no-spacing": ""
1700
1752
  }, {
1701
1753
  default: I(() => [
1702
- e.countryCode ? (g(), Z("span", {
1754
+ e.countryCode ? (v(), W("span", {
1703
1755
  key: 1,
1704
1756
  innerHTML: e.trialStartDate ? t(i)(
1705
1757
  {
@@ -1708,10 +1760,10 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1708
1760
  description: "The description of the trial period"
1709
1761
  },
1710
1762
  {
1711
- price: t(be)(e.amount),
1763
+ price: t(Ie)(e.amount),
1712
1764
  // @ts-expect-error formatjs does not support this type yet
1713
1765
  startDate: e.subscriptionStartDate,
1714
- period_name: t(Oe)(e.billingPeriod, {
1766
+ period_name: t(ze)(e.billingPeriod, {
1715
1767
  short: !0,
1716
1768
  hideValueForExactPeriods: !0
1717
1769
  }),
@@ -1725,8 +1777,8 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1725
1777
  description: "The description of the subscription"
1726
1778
  },
1727
1779
  {
1728
- price: t(be)(e.amount),
1729
- period_name: t(Oe)(e.billingPeriod, {
1780
+ price: t(Ie)(e.amount),
1781
+ period_name: t(ze)(e.billingPeriod, {
1730
1782
  short: !0,
1731
1783
  hideValueForExactPeriods: !0
1732
1784
  }),
@@ -1734,14 +1786,14 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1734
1786
  strong: (a) => `<strong>${a}</strong>`
1735
1787
  }
1736
1788
  )
1737
- }, null, 8, Fo)) : (g(), Z("span", Bo, [
1738
- D(t(Oi), { "is-dark-mode": "" }, {
1789
+ }, null, 8, Ko)) : (v(), W("span", Go, [
1790
+ E(t(ji), { "is-dark-mode": "" }, {
1739
1791
  tooltip: I(() => [
1740
- D(t(zi), null, {
1792
+ E(t(Ri), null, {
1741
1793
  default: I(() => [
1742
- D(t(ji), null, {
1794
+ E(t(Bi), null, {
1743
1795
  default: I(() => [
1744
- K(F(t(i)({
1796
+ G(V(t(i)({
1745
1797
  defaultMessage: "Will be determined by billing information",
1746
1798
  description: "Tooltip content for the invoice preview when taxes are not determined by billing information",
1747
1799
  id: "invoice_preview.taxes_not_determined_by_billing_information_tooltip"
@@ -1754,7 +1806,7 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1754
1806
  })
1755
1807
  ]),
1756
1808
  default: I(() => [
1757
- D(t(Ti), {
1809
+ E(t(ki), {
1758
1810
  "width-class": "w-10",
1759
1811
  "height-class": "h-4",
1760
1812
  shade: "darker",
@@ -1773,7 +1825,7 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1773
1825
  {
1774
1826
  // @ts-expect-error formatjs does not support this type yet
1775
1827
  startDate: e.subscriptionStartDate,
1776
- period_name: t(Oe)(e.billingPeriod, {
1828
+ period_name: t(ze)(e.billingPeriod, {
1777
1829
  short: !0,
1778
1830
  hideValueForExactPeriods: !0
1779
1831
  })
@@ -1785,44 +1837,44 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1785
1837
  description: "The description of the subscription, while the price is still being determined"
1786
1838
  },
1787
1839
  {
1788
- period_name: t(Oe)(e.billingPeriod, {
1840
+ period_name: t(ze)(e.billingPeriod, {
1789
1841
  short: !0,
1790
1842
  hideValueForExactPeriods: !0
1791
1843
  })
1792
1844
  }
1793
1845
  )
1794
- }, null, 8, Uo)
1846
+ }, null, 8, Yo)
1795
1847
  ]))
1796
1848
  ]),
1797
1849
  _: 1
1798
1850
  })
1799
1851
  ]));
1800
1852
  }
1801
- }), Go = (e) => {
1853
+ }), Ho = (e) => {
1802
1854
  var i;
1803
1855
  return ((i = e.periods) == null ? void 0 : i.some(
1804
1856
  (o) => o.groups.some(
1805
1857
  (n) => {
1806
1858
  var a;
1807
1859
  return (a = n.lines) == null ? void 0 : a.some(
1808
- (l) => l.product_items.some(
1860
+ (r) => r.product_items.some(
1809
1861
  (s) => s.model_type === "USAGE_BASED"
1810
1862
  )
1811
1863
  );
1812
1864
  }
1813
1865
  )
1814
1866
  )) ?? !1;
1815
- }, Yo = { class: "flex min-h-96 w-full items-center justify-center" }, Ko = { class: "max-w-sm" }, Qo = /* @__PURE__ */ se({
1867
+ }, Zo = { class: "flex min-h-96 w-full items-center justify-center" }, Xo = { class: "max-w-sm" }, Wo = /* @__PURE__ */ ce({
1816
1868
  __name: "CheckoutNotAvailable",
1817
1869
  setup(e) {
1818
- const { $t: i } = ge(), o = () => {
1870
+ const { $t: i } = ve(), o = () => {
1819
1871
  window.location.reload();
1820
1872
  };
1821
- return (n, a) => (g(), Z("div", Yo, [
1822
- w("div", Ko, [
1823
- D(t(le), { variant: "heading-1" }, {
1873
+ return (n, a) => (v(), W("div", Zo, [
1874
+ w("div", Xo, [
1875
+ E(t(se), { variant: "heading-1" }, {
1824
1876
  default: I(() => [
1825
- K(F(t(i)({
1877
+ G(V(t(i)({
1826
1878
  defaultMessage: "Checkout not available",
1827
1879
  id: "checkout.not_available.title",
1828
1880
  description: "The title of the checkout not available page"
@@ -1830,12 +1882,12 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1830
1882
  ]),
1831
1883
  _: 1
1832
1884
  }),
1833
- D(t(le), {
1885
+ E(t(se), {
1834
1886
  variant: "body-sm",
1835
1887
  color: "subtle"
1836
1888
  }, {
1837
1889
  default: I(() => [
1838
- K(F(t(i)({
1890
+ G(V(t(i)({
1839
1891
  defaultMessage: "The checkout is currently not available.",
1840
1892
  id: "checkout.not_available.description",
1841
1893
  description: "The description of the checkout not available page"
@@ -1844,12 +1896,12 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1844
1896
  href: "#",
1845
1897
  class: "text-primary-900 hover:underline",
1846
1898
  onClick: $e(o, ["prevent"])
1847
- }, F(t(i)({
1899
+ }, V(t(i)({
1848
1900
  defaultMessage: "Reload",
1849
1901
  id: "checkout.not_available.reload_button",
1850
1902
  description: "The label of the reload button"
1851
1903
  })), 1),
1852
- K(" " + F(t(i)({
1904
+ G(" " + V(t(i)({
1853
1905
  defaultMessage: "this page to try again, or contact customer support.",
1854
1906
  id: "checkout.not_available.contact_support_message",
1855
1907
  description: "The message shown when the user wants to contact customer support"
@@ -1860,12 +1912,12 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1860
1912
  ])
1861
1913
  ]));
1862
1914
  }
1863
- }), Ho = /* @__PURE__ */ se({
1915
+ }), qo = /* @__PURE__ */ ce({
1864
1916
  __name: "SubscriptionPaymentCompletedCard",
1865
1917
  emits: ["continue-to-merchant"],
1866
1918
  setup(e) {
1867
- const { $t: i } = ge();
1868
- return (o, n) => (g(), k(Ri, {
1919
+ const { $t: i } = ve();
1920
+ return (o, n) => (v(), O($i, {
1869
1921
  status: "success",
1870
1922
  title: t(i)({
1871
1923
  defaultMessage: "Payment successful",
@@ -1874,13 +1926,13 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1874
1926
  })
1875
1927
  }, {
1876
1928
  default: I(() => [
1877
- D(t(le), {
1929
+ E(t(se), {
1878
1930
  variant: "body-xs",
1879
1931
  color: "subtle",
1880
1932
  tag: "span"
1881
1933
  }, {
1882
1934
  default: I(() => [
1883
- K(F(t(i)({
1935
+ G(V(t(i)({
1884
1936
  defaultMessage: "Thank you for subscribing.",
1885
1937
  id: "subscription_payment_completed_card.thank_you_for_subscribing",
1886
1938
  description: "The text shown after a successful message before a redirect"
@@ -1892,48 +1944,48 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1892
1944
  _: 1
1893
1945
  }, 8, ["title"]));
1894
1946
  }
1895
- }), Zo = { class: "flex items-start" }, Xo = { class: "flex grow flex-col" }, Wo = { class: "flex items-center gap-1" }, qo = { class: "ml-4 flex items-center self-center" }, Jo = /* @__PURE__ */ se({
1947
+ }), Jo = { class: "flex items-start" }, en = { class: "flex grow flex-col" }, tn = { class: "flex items-center gap-1" }, on = { class: "ml-4 flex items-center self-center" }, nn = /* @__PURE__ */ ce({
1896
1948
  __name: "PricingGroupContent",
1897
1949
  props: {
1898
1950
  name: { type: String },
1899
1951
  description: { type: String }
1900
1952
  },
1901
1953
  setup(e) {
1902
- return (i, o) => (g(), Z("div", Zo, [
1903
- w("div", Xo, [
1904
- w("div", Wo, [
1905
- D(t(le), {
1954
+ return (i, o) => (v(), W("div", Jo, [
1955
+ w("div", en, [
1956
+ w("div", tn, [
1957
+ E(t(se), {
1906
1958
  tag: "span",
1907
1959
  variant: "body-sm",
1908
1960
  weight: "semibold"
1909
1961
  }, {
1910
1962
  default: I(() => [
1911
- K(F(e.name), 1)
1963
+ G(V(e.name), 1)
1912
1964
  ]),
1913
1965
  _: 1
1914
1966
  }),
1915
- Xe(i.$slots, "badge")
1967
+ We(i.$slots, "badge")
1916
1968
  ]),
1917
- D(t(le), {
1969
+ E(t(se), {
1918
1970
  tag: "span",
1919
1971
  variant: "body-xs",
1920
1972
  color: "subtle"
1921
1973
  }, {
1922
1974
  default: I(() => [
1923
- K(F(e.description), 1)
1975
+ G(V(e.description), 1)
1924
1976
  ]),
1925
1977
  _: 1
1926
1978
  })
1927
1979
  ]),
1928
- w("div", qo, [
1929
- Xe(i.$slots, "default")
1980
+ w("div", on, [
1981
+ We(i.$slots, "default")
1930
1982
  ])
1931
1983
  ]));
1932
1984
  }
1933
- }), en = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, tn = { class: "px-3 py-2" }, on = { class: "sv-order-summary__billing-period flex flex-col gap-3" }, nn = { class: "px-3 py-2" }, an = {
1985
+ }), an = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, rn = { class: "px-3 py-2" }, ln = { class: "sv-order-summary__billing-period flex flex-col gap-3" }, sn = { class: "px-3 py-2" }, cn = {
1934
1986
  key: 3,
1935
1987
  class: "sv-order-summary__items"
1936
- }, Ct = /* @__PURE__ */ se({
1988
+ }, xt = /* @__PURE__ */ ce({
1937
1989
  __name: "OrderSummary",
1938
1990
  props: {
1939
1991
  subscription: { type: Object },
@@ -1953,28 +2005,28 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1953
2005
  },
1954
2006
  emits: ["billing-period-change"],
1955
2007
  setup(e, { emit: i }) {
1956
- const o = e, n = i, { $t: a } = ge(), { map: l, formatTimePeriod: s } = xt(), { isMobileViewport: M } = wt(), p = b(() => M.value ? "sm" : "xs"), E = (r) => `${r.type}:${r.value}`, y = ["DAY", "WEEK", "MONTH", "YEAR"], _ = (r) => y.includes(r), A = (r) => {
1957
- if (!r)
2008
+ const o = e, n = i, { $t: a } = ve(), { map: r, formatTimePeriod: s } = Lt(), { isMobileViewport: g } = St(), d = b(() => g.value ? "sm" : "xs"), N = (l) => `${l.type}:${l.value}`, y = ["DAY", "WEEK", "MONTH", "YEAR"], M = (l) => y.includes(l), A = (l) => {
2009
+ if (!l)
1958
2010
  return;
1959
- const [d, h] = r.split(":"), S = Number(h);
1960
- if (!(!S || !_(d)))
1961
- return { type: d, value: S };
2011
+ const [m, h] = l.split(":"), S = Number(h);
2012
+ if (!(!S || !M(m)))
2013
+ return { type: m, value: S };
1962
2014
  }, c = b({
1963
2015
  get: () => {
1964
- const r = o.subscription.billing_period;
1965
- return r ? `${r.type}:${r.value}` : void 0;
2016
+ const l = o.subscription.billing_period;
2017
+ return l ? `${l.type}:${l.value}` : void 0;
1966
2018
  },
1967
- set: (r) => {
1968
- if (!r) return;
1969
- const [d, h] = r.split(":"), S = Number(h);
1970
- S && _(d) && n("billing-period-change", { type: d, value: S });
2019
+ set: (l) => {
2020
+ if (!l) return;
2021
+ const [m, h] = l.split(":"), S = Number(h);
2022
+ S && M(m) && n("billing-period-change", { type: m, value: S });
1971
2023
  }
1972
- }), C = (r) => {
1973
- var S, O, H, $;
1974
- const d = ($ = (H = (O = (S = o.invoicePreviewByBillingPeriod) == null ? void 0 : S[E(r)]) == null ? void 0 : O.periods) == null ? void 0 : H[0]) == null ? void 0 : $.amount_including_tax;
1975
- if (!d)
2024
+ }), x = (l) => {
2025
+ var S, R, H, K;
2026
+ const m = (K = (H = (R = (S = o.invoicePreviewByBillingPeriod) == null ? void 0 : S[N(l)]) == null ? void 0 : R.periods) == null ? void 0 : H[0]) == null ? void 0 : K.amount_including_tax;
2027
+ if (!m)
1976
2028
  return;
1977
- const h = r.type === "MONTH" && r.value === 3 ? a({
2029
+ const h = l.type === "MONTH" && l.value === 3 ? a({
1978
2030
  defaultMessage: "/quarter",
1979
2031
  id: "checkout.order_summary_block.billing_period.per_quarter",
1980
2032
  description: "Period label for quarterly billing"
@@ -1985,7 +2037,7 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1985
2037
  description: "Period label for billing cycles"
1986
2038
  },
1987
2039
  {
1988
- period: s(r, {
2040
+ period: s(l, {
1989
2041
  prefix: !1,
1990
2042
  hideValueForExactPeriods: !0
1991
2043
  })
@@ -1998,91 +2050,91 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
1998
2050
  description: "Billing period option sublabel showing price per period"
1999
2051
  },
2000
2052
  {
2001
- amount: be(d),
2053
+ amount: Ie(m),
2002
2054
  period: h
2003
2055
  }
2004
2056
  );
2005
- }, m = (r) => {
2006
- var d, h, S, O;
2007
- return (O = (S = (h = (d = o.invoicePreviewByBillingPeriod) == null ? void 0 : d[E(r)]) == null ? void 0 : h.periods) == null ? void 0 : S[0]) == null ? void 0 : O.amount_including_tax;
2008
- }, x = (r) => Number(r.quantity), P = (r, d) => {
2009
- if (!d)
2057
+ }, f = (l) => {
2058
+ var m, h, S, R;
2059
+ return (R = (S = (h = (m = o.invoicePreviewByBillingPeriod) == null ? void 0 : m[N(l)]) == null ? void 0 : h.periods) == null ? void 0 : S[0]) == null ? void 0 : R.amount_including_tax;
2060
+ }, L = (l) => Number(l.quantity), P = (l, m) => {
2061
+ if (!m)
2010
2062
  return;
2011
2063
  const S = {
2012
2064
  DAY: 365,
2013
2065
  WEEK: 52,
2014
2066
  MONTH: 12,
2015
2067
  YEAR: 1
2016
- }[r.type] / Math.max(r.value ?? 1, 1), O = x(d) * S;
2017
- if (Number.isFinite(O))
2068
+ }[l.type] / Math.max(l.value ?? 1, 1), R = L(m) * S;
2069
+ if (Number.isFinite(R))
2018
2070
  return {
2019
- quantity: O.toFixed(2),
2020
- currency: d.currency
2071
+ quantity: R.toFixed(2),
2072
+ currency: m.currency
2021
2073
  };
2022
- }, N = (r, d) => {
2023
- if (!r || !d)
2074
+ }, T = (l, m) => {
2075
+ if (!l || !m)
2024
2076
  return;
2025
- const h = x(r) - x(d);
2077
+ const h = L(l) - L(m);
2026
2078
  if (!(!Number.isFinite(h) || h <= 0))
2027
2079
  return {
2028
2080
  quantity: h.toFixed(2),
2029
- currency: r.currency
2081
+ currency: l.currency
2030
2082
  };
2031
- }, G = (r) => {
2032
- if (!r)
2083
+ }, $ = (l) => {
2084
+ if (!l)
2033
2085
  return;
2034
- const d = a(
2086
+ const m = a(
2035
2087
  {
2036
2088
  defaultMessage: "Save {amount}",
2037
2089
  id: "checkout.order_summary_block.billing_period.save_badge.prefix",
2038
2090
  description: "First line for the savings badge label"
2039
2091
  },
2040
- { amount: be(r) }
2092
+ { amount: Ie(l) }
2041
2093
  ), h = a({
2042
2094
  defaultMessage: "/year",
2043
2095
  id: "checkout.order_summary_block.billing_period.save_badge.suffix",
2044
2096
  description: "Second line for the savings badge label"
2045
2097
  });
2046
- return `${d}${h}`;
2047
- }, R = b(() => {
2048
- var ee, oe, ae;
2049
- const r = De({
2098
+ return `${m}${h}`;
2099
+ }, j = b(() => {
2100
+ var Z, re, ne;
2101
+ const l = Ne({
2050
2102
  pricingPlanScheduleInfos: o.subscription.pricing_plan_schedule_infos ?? [],
2051
2103
  type: "DEFAULT"
2052
- }), d = ((oe = (ee = r == null ? void 0 : r.pricing_plan_version) == null ? void 0 : ee.billing_period_settings) == null ? void 0 : oe.billing_periods) ?? [], h = /* @__PURE__ */ new Map(), S = (U) => {
2053
- U && h.set(E(U), U);
2054
- }, O = (U) => {
2055
- var X;
2056
- (X = U == null ? void 0 : U.items) == null || X.forEach((W) => {
2057
- var ne, re;
2058
- (ne = W.billing_period_configs) == null || ne.forEach(
2059
- (ce) => S(ce.billing_period)
2060
- ), (re = W.pricing_currency_configs) == null || re.forEach((ce) => {
2061
- var ue;
2062
- (ue = ce.billing_period_configs) == null || ue.forEach(
2063
- (ye) => S(ye.billing_period)
2104
+ }), m = ((re = (Z = l == null ? void 0 : l.pricing_plan_version) == null ? void 0 : Z.billing_period_settings) == null ? void 0 : re.billing_periods) ?? [], h = /* @__PURE__ */ new Map(), S = (U) => {
2105
+ U && h.set(N(U), U);
2106
+ }, R = (U) => {
2107
+ var ie;
2108
+ (ie = U == null ? void 0 : U.items) == null || ie.forEach((q) => {
2109
+ var ee, oe;
2110
+ (ee = q.billing_period_configs) == null || ee.forEach(
2111
+ (ue) => S(ue.billing_period)
2112
+ ), (oe = q.pricing_currency_configs) == null || oe.forEach((ue) => {
2113
+ var de;
2114
+ (de = ue.billing_period_configs) == null || de.forEach(
2115
+ (pe) => S(pe.billing_period)
2064
2116
  );
2065
2117
  });
2066
2118
  });
2067
2119
  };
2068
- if ((((ae = r == null ? void 0 : r.pricing_plan_version) == null ? void 0 : ae.pricing_categories) ?? []).forEach((U) => {
2069
- var X, W;
2070
- (X = U.pricings) == null || X.forEach((ne) => O(ne)), (W = U.pricing_groups) == null || W.forEach(
2071
- (ne) => {
2072
- var re;
2073
- return (re = ne.pricings) == null ? void 0 : re.forEach((ce) => O(ce));
2120
+ if ((((ne = l == null ? void 0 : l.pricing_plan_version) == null ? void 0 : ne.pricing_categories) ?? []).forEach((U) => {
2121
+ var ie, q;
2122
+ (ie = U.pricings) == null || ie.forEach((ee) => R(ee)), (q = U.pricing_groups) == null || q.forEach(
2123
+ (ee) => {
2124
+ var oe;
2125
+ return (oe = ee.pricings) == null ? void 0 : oe.forEach((ue) => R(ue));
2074
2126
  }
2075
2127
  );
2076
2128
  }), !h.size)
2077
2129
  return [];
2078
- const $ = d.map((U) => h.get(E(U.period))).filter((U) => !!U), ie = new Set($.map(E)), J = [...h.values()].filter(
2079
- (U) => !ie.has(E(U))
2130
+ const K = m.map((U) => h.get(N(U.period))).filter((U) => !!U), Y = new Set(K.map(N)), ae = [...h.values()].filter(
2131
+ (U) => !Y.has(N(U))
2080
2132
  );
2081
- return [...$, ...J];
2082
- }), u = b(() => {
2083
- const r = R.value[R.value.length - 1], d = r ? P(r, m(r)) : void 0;
2084
- return R.value.map((S) => {
2085
- const O = S.type === "MONTH" && S.value === 3 ? a({
2133
+ return [...K, ...ae];
2134
+ }), p = b(() => {
2135
+ const l = j.value[j.value.length - 1], m = l ? P(l, f(l)) : void 0;
2136
+ return j.value.map((S) => {
2137
+ const R = S.type === "MONTH" && S.value === 3 ? a({
2086
2138
  defaultMessage: "Billed quarterly",
2087
2139
  id: "checkout.order_summary_block.billing_period.quarterly",
2088
2140
  description: "Billing period option label for quarterly billing"
@@ -2092,17 +2144,17 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
2092
2144
  id: "checkout.order_summary_block.billing_period.label",
2093
2145
  description: "Billing period option label for the selected period"
2094
2146
  },
2095
- { period: l.value[S.type].full }
2096
- ), H = m(S), $ = P(S, H), ie = r && S.type === r.type && S.value === r.value ? void 0 : N($, d), J = G(ie);
2147
+ { period: r.value[S.type].full }
2148
+ ), H = f(S), K = P(S, H), Y = l && S.type === l.type && S.value === l.value ? void 0 : T(K, m), ae = $(Y);
2097
2149
  return {
2098
- label: O,
2099
- subLabel: C(S),
2100
- labelSuffixComponent: J ? {
2101
- component: It,
2150
+ label: R,
2151
+ subLabel: x(S),
2152
+ labelSuffixComponent: ae ? {
2153
+ component: At,
2102
2154
  props: {
2103
2155
  color: "primary",
2104
- content: J,
2105
- size: p.value,
2156
+ content: ae,
2157
+ size: d.value,
2106
2158
  class: "whitespace-nowrap text-left leading-tight"
2107
2159
  }
2108
2160
  } : void 0,
@@ -2110,34 +2162,34 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
2110
2162
  value: `${S.type}:${S.value}`
2111
2163
  };
2112
2164
  });
2113
- }), T = b(() => {
2114
- const r = u.value, d = r[0], h = r[r.length - 1];
2165
+ }), C = b(() => {
2166
+ const l = p.value, m = l[0], h = l[l.length - 1];
2115
2167
  return {
2116
- smallestPeriod: d == null ? void 0 : d.value,
2168
+ smallestPeriod: m == null ? void 0 : m.value,
2117
2169
  biggestPeriod: h == null ? void 0 : h.value
2118
2170
  };
2119
- }), Q = b(
2120
- () => u.value.find((r) => r.value === T.value.biggestPeriod)
2171
+ }), J = b(
2172
+ () => p.value.find((l) => l.value === C.value.biggestPeriod)
2121
2173
  ), te = b(
2122
- () => u.value.find((r) => r.value === c.value)
2123
- ), v = b(() => {
2124
- var ee, oe, ae, U, X, W, ne, re;
2125
- const r = u.value, d = r[r.length - 1], h = c.value;
2126
- if (!d || !h || h === d.value)
2174
+ () => p.value.find((l) => l.value === c.value)
2175
+ ), u = b(() => {
2176
+ var Z, re, ne, U, ie, q, ee, oe;
2177
+ const l = p.value, m = l[l.length - 1], h = c.value;
2178
+ if (!m || !h || h === m.value)
2127
2179
  return "";
2128
- const S = A(d.value);
2180
+ const S = A(m.value);
2129
2181
  if (!S)
2130
2182
  return "";
2131
- const O = (U = (ae = (oe = (ee = o.invoicePreviewByBillingPeriod) == null ? void 0 : ee[d.value]) == null ? void 0 : oe.periods) == null ? void 0 : ae[0]) == null ? void 0 : U.amount_including_tax, H = A(h), $ = (re = (ne = (W = (X = o.invoicePreviewByBillingPeriod) == null ? void 0 : X[h]) == null ? void 0 : W.periods) == null ? void 0 : ne[0]) == null ? void 0 : re.amount_including_tax;
2132
- if (!H || !$)
2183
+ const R = (U = (ne = (re = (Z = o.invoicePreviewByBillingPeriod) == null ? void 0 : Z[m.value]) == null ? void 0 : re.periods) == null ? void 0 : ne[0]) == null ? void 0 : U.amount_including_tax, H = A(h), K = (oe = (ee = (q = (ie = o.invoicePreviewByBillingPeriod) == null ? void 0 : ie[h]) == null ? void 0 : q.periods) == null ? void 0 : ee[0]) == null ? void 0 : oe.amount_including_tax;
2184
+ if (!H || !K)
2133
2185
  return "";
2134
- const ie = P(H, $), J = P(S, O);
2135
- return G(N(ie, J)) ?? "";
2136
- }), f = (r) => {
2137
- const { smallestPeriod: d, biggestPeriod: h } = T.value;
2138
- c.value = r ? h : d;
2186
+ const Y = P(H, K), ae = P(S, R);
2187
+ return $(T(Y, ae)) ?? "";
2188
+ }), _ = (l) => {
2189
+ const { smallestPeriod: m, biggestPeriod: h } = C.value;
2190
+ c.value = l ? h : m;
2139
2191
  };
2140
- return (r, d) => (g(), k(t(pe), {
2192
+ return (l, m) => (v(), O(t(ge), {
2141
2193
  class: "sv-order-summary",
2142
2194
  "no-border": "",
2143
2195
  "no-spacing": "",
@@ -2149,13 +2201,13 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
2149
2201
  })
2150
2202
  }, {
2151
2203
  default: I(() => [
2152
- w("div", en, [
2153
- D(t(pe), {
2204
+ w("div", an, [
2205
+ E(t(ge), {
2154
2206
  "no-spacing": "",
2155
2207
  class: "sv-order-summary__subscription"
2156
2208
  }, {
2157
2209
  default: I(() => [
2158
- e.subscription ? (g(), k(Ui, {
2210
+ e.subscription ? (v(), O(Fi, {
2159
2211
  key: 0,
2160
2212
  avatar: e.avatar,
2161
2213
  invoice: e.invoice,
@@ -2167,36 +2219,36 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
2167
2219
  ]),
2168
2220
  _: 1
2169
2221
  }),
2170
- u.value.length === 2 ? (g(), k(t(pe), {
2222
+ p.value.length === 2 ? (v(), O(t(ge), {
2171
2223
  key: 0,
2172
2224
  "no-spacing": "",
2173
- "content-classes": c.value === T.value.biggestPeriod ? "border-primary-500" : void 0
2225
+ "content-classes": c.value === C.value.biggestPeriod ? "border-primary-500" : void 0
2174
2226
  }, {
2175
2227
  default: I(() => {
2176
2228
  var h;
2177
2229
  return [
2178
- w("div", tn, [
2179
- w("div", on, [
2180
- Q.value ? (g(), k(Jo, {
2230
+ w("div", rn, [
2231
+ w("div", ln, [
2232
+ J.value ? (v(), O(nn, {
2181
2233
  key: 0,
2182
- name: Q.value.label,
2234
+ name: J.value.label,
2183
2235
  description: ((h = te.value) == null ? void 0 : h.subLabel) ?? ""
2184
- }, qe({
2236
+ }, Je({
2185
2237
  default: I(() => [
2186
- D(t(mi), {
2187
- "model-value": c.value === T.value.biggestPeriod,
2188
- "onUpdate:modelValue": f
2238
+ E(t(vi), {
2239
+ "model-value": c.value === C.value.biggestPeriod,
2240
+ "onUpdate:modelValue": _
2189
2241
  }, null, 8, ["model-value"])
2190
2242
  ]),
2191
2243
  _: 2
2192
2244
  }, [
2193
- v.value ? {
2245
+ u.value ? {
2194
2246
  name: "badge",
2195
2247
  fn: I(() => [
2196
- D(t(It), {
2248
+ E(t(At), {
2197
2249
  intent: "brand",
2198
- content: v.value,
2199
- size: p.value,
2250
+ content: u.value,
2251
+ size: d.value,
2200
2252
  class: "whitespace-nowrap text-left leading-tight"
2201
2253
  }, null, 8, ["content", "size"])
2202
2254
  ]),
@@ -2208,31 +2260,31 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
2208
2260
  ];
2209
2261
  }),
2210
2262
  _: 1
2211
- }, 8, ["content-classes"])) : u.value.length > 2 ? (g(), k(t($i), {
2263
+ }, 8, ["content-classes"])) : p.value.length > 2 ? (v(), O(t(Ui), {
2212
2264
  key: 1,
2213
2265
  "single-model-value": c.value,
2214
- "onUpdate:singleModelValue": d[0] || (d[0] = (h) => c.value = h),
2266
+ "onUpdate:singleModelValue": m[0] || (m[0] = (h) => c.value = h),
2215
2267
  class: "sv-order-summary__billing-period",
2216
- options: u.value,
2268
+ options: p.value,
2217
2269
  size: "xl",
2218
2270
  "has-large-dropdown": "",
2219
2271
  "show-sub-label-in-input": "",
2220
2272
  "show-suffix-in-closed-input": ""
2221
2273
  }, null, 8, ["single-model-value", "options"])) : B("", !0),
2222
- e.isUsageBased ? (g(), k(t(pe), {
2274
+ e.isUsageBased ? (v(), O(t(ge), {
2223
2275
  key: 2,
2224
2276
  "no-spacing": "",
2225
2277
  class: "sv-order-summary__usage"
2226
2278
  }, {
2227
2279
  default: I(() => [
2228
- w("div", nn, [
2229
- D(t(le), {
2280
+ w("div", sn, [
2281
+ E(t(se), {
2230
2282
  "no-spacing": "",
2231
2283
  variant: "body-sm",
2232
2284
  color: "subtle"
2233
2285
  }, {
2234
2286
  default: I(() => [
2235
- K(F(t(a)({
2287
+ G(V(t(a)({
2236
2288
  defaultMessage: "+ Usage",
2237
2289
  id: "checkout.invoice_preview.usage_based_message",
2238
2290
  description: "The message shown for the usage based invoice preview"
@@ -2244,15 +2296,15 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
2244
2296
  ]),
2245
2297
  _: 1
2246
2298
  })) : B("", !0),
2247
- e.invoice && e.variant !== "products-inline" ? (g(), Z("div", an, [
2248
- D(t(Si), {
2299
+ e.invoice && e.variant !== "products-inline" ? (v(), W("div", cn, [
2300
+ E(t(Oi), {
2249
2301
  invoice: e.invoice,
2250
- "wrapper-component": t(pe)
2302
+ "wrapper-component": t(ge)
2251
2303
  }, null, 8, ["invoice", "wrapper-component"])
2252
2304
  ])) : B("", !0),
2253
- D(t(pe), { class: "sv-order-summary__totals" }, {
2305
+ E(t(ge), { class: "sv-order-summary__totals" }, {
2254
2306
  default: I(() => [
2255
- e.invoice ? (g(), k(t(ki), {
2307
+ e.invoice ? (v(), O(t(zi), {
2256
2308
  key: 0,
2257
2309
  class: "sv-order-summary__invoice-preview",
2258
2310
  variant: e.variant === "products-inline" ? "default" : "without-products",
@@ -2262,14 +2314,14 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
2262
2314
  collapsible: e.collapsible,
2263
2315
  "is-preview-without-taxes": !e.countryCode,
2264
2316
  "is-customer-facing": ""
2265
- }, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (g(), k(t(le), {
2317
+ }, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (v(), O(t(se), {
2266
2318
  key: 1,
2267
2319
  variant: "body-sm",
2268
2320
  color: "subtle",
2269
2321
  class: "sv-order-summary__empty"
2270
2322
  }, {
2271
2323
  default: I(() => [
2272
- K(F(t(a)({
2324
+ G(V(t(a)({
2273
2325
  defaultMessage: "Please select a country first",
2274
2326
  description: "The message shown for the invoice preview when no country is set",
2275
2327
  id: "checkout.invoice_preview.no_country_selected_message"
@@ -2286,10 +2338,10 @@ const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1
2286
2338
  }, 8, ["title"]));
2287
2339
  }
2288
2340
  });
2289
- async function Bt(e, i) {
2290
- const { AdyenCheckout: o } = await Ue();
2341
+ async function Ft(e, i) {
2342
+ const { AdyenCheckout: o } = await Ve();
2291
2343
  return o(
2292
- Ni({
2344
+ Ci({
2293
2345
  locale: e.locale,
2294
2346
  amount: e.amount,
2295
2347
  countryCode: e.countryCode,
@@ -2298,40 +2350,40 @@ async function Bt(e, i) {
2298
2350
  })
2299
2351
  );
2300
2352
  }
2301
- function Ut({
2353
+ function Gt({
2302
2354
  props: e,
2303
2355
  create: i,
2304
2356
  onMissingButton: o,
2305
2357
  onMountFailed: n,
2306
2358
  afterMount: a
2307
2359
  }) {
2308
- const l = V(), s = _e(), M = async () => {
2309
- const p = await Bt(e, s), E = await i(p);
2310
- if (!l.value) {
2360
+ const r = F(), s = Me(), g = async () => {
2361
+ const d = await Ft(e, s), N = await i(d);
2362
+ if (!r.value) {
2311
2363
  o();
2312
2364
  return;
2313
2365
  }
2314
2366
  try {
2315
- await E.isAvailable(), E.mount(l.value), a == null || a();
2367
+ await N.isAvailable(), N.mount(r.value), a == null || a();
2316
2368
  } catch (y) {
2317
2369
  n(y);
2318
2370
  }
2319
2371
  };
2320
- return Te(() => {
2321
- M();
2322
- }), { buttonRef: l };
2372
+ return ke(() => {
2373
+ g();
2374
+ }), { buttonRef: r };
2323
2375
  }
2324
- const rn = {
2376
+ const un = {
2325
2377
  key: 0,
2326
2378
  id: "svg-logo",
2327
2379
  viewBox: "0 0 35 15",
2328
2380
  class: "h-[44px]"
2329
- }, ln = {
2381
+ }, dn = {
2330
2382
  key: 1,
2331
2383
  src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAxcHgiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxMDEgMzIiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaW5ZTWluIG1lZXQiIHhtbG5zPSJodHRwOiYjeDJGOyYjeDJGO3d3dy53My5vcmcmI3gyRjsyMDAwJiN4MkY7c3ZnIj48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDEyLjIzNyAyLjggTCA0LjQzNyAyLjggQyAzLjkzNyAyLjggMy40MzcgMy4yIDMuMzM3IDMuNyBMIDAuMjM3IDIzLjcgQyAwLjEzNyAyNC4xIDAuNDM3IDI0LjQgMC44MzcgMjQuNCBMIDQuNTM3IDI0LjQgQyA1LjAzNyAyNC40IDUuNTM3IDI0IDUuNjM3IDIzLjUgTCA2LjQzNyAxOC4xIEMgNi41MzcgMTcuNiA2LjkzNyAxNy4yIDcuNTM3IDE3LjIgTCAxMC4wMzcgMTcuMiBDIDE1LjEzNyAxNy4yIDE4LjEzNyAxNC43IDE4LjkzNyA5LjggQyAxOS4yMzcgNy43IDE4LjkzNyA2IDE3LjkzNyA0LjggQyAxNi44MzcgMy41IDE0LjgzNyAyLjggMTIuMjM3IDIuOCBaIE0gMTMuMTM3IDEwLjEgQyAxMi43MzcgMTIuOSAxMC41MzcgMTIuOSA4LjUzNyAxMi45IEwgNy4zMzcgMTIuOSBMIDguMTM3IDcuNyBDIDguMTM3IDcuNCA4LjQzNyA3LjIgOC43MzcgNy4yIEwgOS4yMzcgNy4yIEMgMTAuNjM3IDcuMiAxMS45MzcgNy4yIDEyLjYzNyA4IEMgMTMuMTM3IDguNCAxMy4zMzcgOS4xIDEzLjEzNyAxMC4xIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDM1LjQzNyAxMCBMIDMxLjczNyAxMCBDIDMxLjQzNyAxMCAzMS4xMzcgMTAuMiAzMS4xMzcgMTAuNSBMIDMwLjkzNyAxMS41IEwgMzAuNjM3IDExLjEgQyAyOS44MzcgOS45IDI4LjAzNyA5LjUgMjYuMjM3IDkuNSBDIDIyLjEzNyA5LjUgMTguNjM3IDEyLjYgMTcuOTM3IDE3IEMgMTcuNTM3IDE5LjIgMTguMDM3IDIxLjMgMTkuMzM3IDIyLjcgQyAyMC40MzcgMjQgMjIuMTM3IDI0LjYgMjQuMDM3IDI0LjYgQyAyNy4zMzcgMjQuNiAyOS4yMzcgMjIuNSAyOS4yMzcgMjIuNSBMIDI5LjAzNyAyMy41IEMgMjguOTM3IDIzLjkgMjkuMjM3IDI0LjMgMjkuNjM3IDI0LjMgTCAzMy4wMzcgMjQuMyBDIDMzLjUzNyAyNC4zIDM0LjAzNyAyMy45IDM0LjEzNyAyMy40IEwgMzYuMTM3IDEwLjYgQyAzNi4yMzcgMTAuNCAzNS44MzcgMTAgMzUuNDM3IDEwIFogTSAzMC4zMzcgMTcuMiBDIDI5LjkzNyAxOS4zIDI4LjMzNyAyMC44IDI2LjEzNyAyMC44IEMgMjUuMDM3IDIwLjggMjQuMjM3IDIwLjUgMjMuNjM3IDE5LjggQyAyMy4wMzcgMTkuMSAyMi44MzcgMTguMiAyMy4wMzcgMTcuMiBDIDIzLjMzNyAxNS4xIDI1LjEzNyAxMy42IDI3LjIzNyAxMy42IEMgMjguMzM3IDEzLjYgMjkuMTM3IDE0IDI5LjczNyAxNC42IEMgMzAuMjM3IDE1LjMgMzAuNDM3IDE2LjIgMzAuMzM3IDE3LjIgWiI+PC9wYXRoPjxwYXRoIGZpbGw9IiMwMDMwODciIGQ9Ik0gNTUuMzM3IDEwIEwgNTEuNjM3IDEwIEMgNTEuMjM3IDEwIDUwLjkzNyAxMC4yIDUwLjczNyAxMC41IEwgNDUuNTM3IDE4LjEgTCA0My4zMzcgMTAuOCBDIDQzLjIzNyAxMC4zIDQyLjczNyAxMCA0Mi4zMzcgMTAgTCAzOC42MzcgMTAgQyAzOC4yMzcgMTAgMzcuODM3IDEwLjQgMzguMDM3IDEwLjkgTCA0Mi4xMzcgMjMgTCAzOC4yMzcgMjguNCBDIDM3LjkzNyAyOC44IDM4LjIzNyAyOS40IDM4LjczNyAyOS40IEwgNDIuNDM3IDI5LjQgQyA0Mi44MzcgMjkuNCA0My4xMzcgMjkuMiA0My4zMzcgMjguOSBMIDU1LjgzNyAxMC45IEMgNTYuMTM3IDEwLjYgNTUuODM3IDEwIDU1LjMzNyAxMCBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA2Ny43MzcgMi44IEwgNTkuOTM3IDIuOCBDIDU5LjQzNyAyLjggNTguOTM3IDMuMiA1OC44MzcgMy43IEwgNTUuNzM3IDIzLjYgQyA1NS42MzcgMjQgNTUuOTM3IDI0LjMgNTYuMzM3IDI0LjMgTCA2MC4zMzcgMjQuMyBDIDYwLjczNyAyNC4zIDYxLjAzNyAyNCA2MS4wMzcgMjMuNyBMIDYxLjkzNyAxOCBDIDYyLjAzNyAxNy41IDYyLjQzNyAxNy4xIDYzLjAzNyAxNy4xIEwgNjUuNTM3IDE3LjEgQyA3MC42MzcgMTcuMSA3My42MzcgMTQuNiA3NC40MzcgOS43IEMgNzQuNzM3IDcuNiA3NC40MzcgNS45IDczLjQzNyA0LjcgQyA3Mi4yMzcgMy41IDcwLjMzNyAyLjggNjcuNzM3IDIuOCBaIE0gNjguNjM3IDEwLjEgQyA2OC4yMzcgMTIuOSA2Ni4wMzcgMTIuOSA2NC4wMzcgMTIuOSBMIDYyLjgzNyAxMi45IEwgNjMuNjM3IDcuNyBDIDYzLjYzNyA3LjQgNjMuOTM3IDcuMiA2NC4yMzcgNy4yIEwgNjQuNzM3IDcuMiBDIDY2LjEzNyA3LjIgNjcuNDM3IDcuMiA2OC4xMzcgOCBDIDY4LjYzNyA4LjQgNjguNzM3IDkuMSA2OC42MzcgMTAuMSBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA5MC45MzcgMTAgTCA4Ny4yMzcgMTAgQyA4Ni45MzcgMTAgODYuNjM3IDEwLjIgODYuNjM3IDEwLjUgTCA4Ni40MzcgMTEuNSBMIDg2LjEzNyAxMS4xIEMgODUuMzM3IDkuOSA4My41MzcgOS41IDgxLjczNyA5LjUgQyA3Ny42MzcgOS41IDc0LjEzNyAxMi42IDczLjQzNyAxNyBDIDczLjAzNyAxOS4yIDczLjUzNyAyMS4zIDc0LjgzNyAyMi43IEMgNzUuOTM3IDI0IDc3LjYzNyAyNC42IDc5LjUzNyAyNC42IEMgODIuODM3IDI0LjYgODQuNzM3IDIyLjUgODQuNzM3IDIyLjUgTCA4NC41MzcgMjMuNSBDIDg0LjQzNyAyMy45IDg0LjczNyAyNC4zIDg1LjEzNyAyNC4zIEwgODguNTM3IDI0LjMgQyA4OS4wMzcgMjQuMyA4OS41MzcgMjMuOSA4OS42MzcgMjMuNCBMIDkxLjYzNyAxMC42IEMgOTEuNjM3IDEwLjQgOTEuMzM3IDEwIDkwLjkzNyAxMCBaIE0gODUuNzM3IDE3LjIgQyA4NS4zMzcgMTkuMyA4My43MzcgMjAuOCA4MS41MzcgMjAuOCBDIDgwLjQzNyAyMC44IDc5LjYzNyAyMC41IDc5LjAzNyAxOS44IEMgNzguNDM3IDE5LjEgNzguMjM3IDE4LjIgNzguNDM3IDE3LjIgQyA3OC43MzcgMTUuMSA4MC41MzcgMTMuNiA4Mi42MzcgMTMuNiBDIDgzLjczNyAxMy42IDg0LjUzNyAxNCA4NS4xMzcgMTQuNiBDIDg1LjczNyAxNS4zIDg1LjkzNyAxNi4yIDg1LjczNyAxNy4yIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDA5Y2RlIiBkPSJNIDk1LjMzNyAzLjMgTCA5Mi4xMzcgMjMuNiBDIDkyLjAzNyAyNCA5Mi4zMzcgMjQuMyA5Mi43MzcgMjQuMyBMIDk1LjkzNyAyNC4zIEMgOTYuNDM3IDI0LjMgOTYuOTM3IDIzLjkgOTcuMDM3IDIzLjQgTCAxMDAuMjM3IDMuNSBDIDEwMC4zMzcgMy4xIDEwMC4wMzcgMi44IDk5LjYzNyAyLjggTCA5Ni4wMzcgMi44IEMgOTUuNjM3IDIuOCA5NS40MzcgMyA5NS4zMzcgMy4zIFoiPjwvcGF0aD48L3N2Zz4",
2332
2384
  role: "presentation",
2333
2385
  class: "h-[22px]"
2334
- }, tt = /* @__PURE__ */ se({
2386
+ }, it = /* @__PURE__ */ ce({
2335
2387
  __name: "ExpressPaymentMethodButton",
2336
2388
  props: {
2337
2389
  type: { type: String }
@@ -2349,7 +2401,7 @@ const rn = {
2349
2401
  default:
2350
2402
  return;
2351
2403
  }
2352
- }), l = b(() => {
2404
+ }), r = b(() => {
2353
2405
  switch (o.type) {
2354
2406
  case "applepay":
2355
2407
  return "!bg-black !py-0";
@@ -2364,14 +2416,14 @@ const rn = {
2364
2416
  function s() {
2365
2417
  n("click");
2366
2418
  }
2367
- return (M, p) => (g(), k(t(Ie), {
2419
+ return (g, d) => (v(), O(t(Ae), {
2368
2420
  size: "lg",
2369
2421
  "aria-label": a.value,
2370
- class: he([l.value, "!block h-11 w-full bg-center bg-no-repeat"]),
2422
+ class: be([r.value, "!block h-11 w-full bg-center bg-no-repeat"]),
2371
2423
  onClick: s
2372
2424
  }, {
2373
2425
  default: I(() => [
2374
- o.type === "applepay" ? (g(), Z("svg", rn, [...p[0] || (p[0] = [
2426
+ o.type === "applepay" ? (v(), W("svg", un, [...d[0] || (d[0] = [
2375
2427
  w("svg", {
2376
2428
  id: "svg-logo",
2377
2429
  x: "0",
@@ -2399,12 +2451,12 @@ const rn = {
2399
2451
  ])
2400
2452
  ])
2401
2453
  ], -1)
2402
- ])])) : o.type === "paypal" ? (g(), Z("img", ln)) : B("", !0)
2454
+ ])])) : o.type === "paypal" ? (v(), W("img", dn)) : B("", !0)
2403
2455
  ]),
2404
2456
  _: 1
2405
2457
  }, 8, ["aria-label", "class"]));
2406
2458
  }
2407
- }), sn = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" }, cn = "ADYEN", un = /* @__PURE__ */ se({
2459
+ }), pn = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" }, mn = "ADYEN", gn = /* @__PURE__ */ ce({
2408
2460
  __name: "ExpressPaymentMethodApplePay",
2409
2461
  props: {
2410
2462
  onBillingInformationChange: { type: Function },
@@ -2417,8 +2469,8 @@ const rn = {
2417
2469
  },
2418
2470
  emits: ["ready", "update-billing-information"],
2419
2471
  setup(e, { emit: i }) {
2420
- const o = e, n = i, a = V(), l = _e(), { authorizePayment: s } = Vi(), M = o.paymentMethodOptionsResponse.payment_acceptor.id, p = async () => {
2421
- const { ApplePay: m } = await Ue(), x = await Bt(o, l), P = new m(x, {
2472
+ const o = e, n = i, a = F(), r = Me(), { authorizePayment: s } = Yi(), g = o.paymentMethodOptionsResponse.payment_acceptor.id, d = async () => {
2473
+ const { ApplePay: f } = await Ve(), L = await Ft(o, r), P = new f(L, {
2422
2474
  isExpress: !0,
2423
2475
  recurringPaymentRequest: {
2424
2476
  paymentDescription: o.billingInformation.description,
@@ -2443,7 +2495,7 @@ const rn = {
2443
2495
  type: "final",
2444
2496
  paymentTiming: "recurring",
2445
2497
  recurringPaymentStartDate: o.billingInformation.regular.startDate,
2446
- ...E(
2498
+ ...N(
2447
2499
  o.billingInformation.regular.interval ?? { type: "MONTH", value: 1 }
2448
2500
  )
2449
2501
  }
@@ -2451,150 +2503,150 @@ const rn = {
2451
2503
  },
2452
2504
  requiredBillingContactFields: ["postalAddress"],
2453
2505
  requiredShippingContactFields: ["email"],
2454
- onPaymentMethodSelected: async (N, G, R) => {
2455
- var te, v, f, r, d, h, S;
2456
- const { invoicePreview: u, trialInvoicePreview: T } = await o.onBillingInformationChange({
2457
- ...((te = R.paymentMethod.billingContact) == null ? void 0 : te.postalCode) && {
2458
- postal_code: R.paymentMethod.billingContact.postalCode
2506
+ onPaymentMethodSelected: async (T, $, j) => {
2507
+ var te, u, _, l, m, h, S;
2508
+ const { invoicePreview: p, trialInvoicePreview: C } = await o.onBillingInformationChange({
2509
+ ...((te = j.paymentMethod.billingContact) == null ? void 0 : te.postalCode) && {
2510
+ postal_code: j.paymentMethod.billingContact.postalCode
2459
2511
  },
2460
- ...((v = R.paymentMethod.billingContact) == null ? void 0 : v.locality) && {
2461
- city: R.paymentMethod.billingContact.locality
2512
+ ...((u = j.paymentMethod.billingContact) == null ? void 0 : u.locality) && {
2513
+ city: j.paymentMethod.billingContact.locality
2462
2514
  },
2463
- ...A((f = R.paymentMethod.billingContact) == null ? void 0 : f.countryCode) && {
2464
- country: A((r = R.paymentMethod.billingContact) == null ? void 0 : r.countryCode)
2515
+ ...A((_ = j.paymentMethod.billingContact) == null ? void 0 : _.countryCode) && {
2516
+ country: A((l = j.paymentMethod.billingContact) == null ? void 0 : l.countryCode)
2465
2517
  }
2466
- }), Q = T ? T.invoice_amount_including_tax.quantity.toString() : u.invoice_amount_including_tax.quantity.toString();
2518
+ }), J = C ? C.invoice_amount_including_tax.quantity.toString() : p.invoice_amount_including_tax.quantity.toString();
2467
2519
  n("update-billing-information", {
2468
- postal_code: (d = R.paymentMethod.billingContact) == null ? void 0 : d.postalCode,
2469
- city: (h = R.paymentMethod.billingContact) == null ? void 0 : h.locality,
2470
- country: (S = R.paymentMethod.billingContact) == null ? void 0 : S.countryCode
2471
- }), N({
2520
+ postal_code: (m = j.paymentMethod.billingContact) == null ? void 0 : m.postalCode,
2521
+ city: (h = j.paymentMethod.billingContact) == null ? void 0 : h.locality,
2522
+ country: (S = j.paymentMethod.billingContact) == null ? void 0 : S.countryCode
2523
+ }), T({
2472
2524
  newTotal: {
2473
2525
  label: o.billingInformation.regular.label,
2474
- amount: Q,
2526
+ amount: J,
2475
2527
  type: "final"
2476
2528
  }
2477
2529
  });
2478
2530
  },
2479
- onError: (N) => {
2480
- l.error("APPLE_PAY_ERROR", "Apple Pay error", { error: N });
2531
+ onError: (T) => {
2532
+ r.error("APPLE_PAY_ERROR", "Apple Pay error", { error: T });
2481
2533
  },
2482
- onAuthorized: async (N, G) => {
2534
+ onAuthorized: async (T, $) => {
2483
2535
  try {
2484
- l.info("APPLE_PAY_AUTHORIZED", "Apple Pay authorized", { data: N });
2485
- const R = N.authorizedEvent;
2486
- l.info("APPLE_PAY_EVENT_DATA", "Apple Pay event data structure", {
2487
- eventData: R,
2488
- hasPaymentMethod: !!R.payment.token.paymentMethod,
2489
- hasBrowserInfo: !!R.payment.token.paymentData,
2490
- billingAddress: N.billingAddress
2536
+ r.info("APPLE_PAY_AUTHORIZED", "Apple Pay authorized", { data: T });
2537
+ const j = T.authorizedEvent;
2538
+ r.info("APPLE_PAY_EVENT_DATA", "Apple Pay event data structure", {
2539
+ eventData: j,
2540
+ hasPaymentMethod: !!j.payment.token.paymentMethod,
2541
+ hasBrowserInfo: !!j.payment.token.paymentData,
2542
+ billingAddress: T.billingAddress
2491
2543
  });
2492
- const u = R.payment.billingContact, T = N.billingAddress;
2493
- u ? n(
2544
+ const p = j.payment.billingContact, C = T.billingAddress;
2545
+ p ? n(
2494
2546
  "update-billing-information",
2495
- y(u)
2496
- ) : T && n(
2547
+ y(p)
2548
+ ) : C && n(
2497
2549
  "update-billing-information",
2498
- _(T)
2550
+ M(C)
2499
2551
  );
2500
- const Q = {
2501
- payment_method: ht(
2502
- R.payment.token.paymentMethod
2552
+ const J = {
2553
+ payment_method: bt(
2554
+ j.payment.token.paymentMethod
2503
2555
  ),
2504
- browser_info: ht(
2505
- R.payment.token.paymentData
2556
+ browser_info: bt(
2557
+ j.payment.token.paymentData
2506
2558
  )
2507
2559
  };
2508
- l.info("APPLE_PAY_ADYEN_PAYLOAD", "Adyen payload prepared", { adyen: Q });
2509
- const te = Ei({
2510
- paymentAcceptorId: M,
2560
+ r.info("APPLE_PAY_ADYEN_PAYLOAD", "Adyen payload prepared", { adyen: J });
2561
+ const te = xi({
2562
+ paymentAcceptorId: g,
2511
2563
  redirectUrl: window.location.href
2512
2564
  });
2513
- l.info("APPLE_PAY_CALLING_API", "Calling authorizePayment API", {
2514
- paymentAcceptorId: M,
2565
+ r.info("APPLE_PAY_CALLING_API", "Calling authorizePayment API", {
2566
+ paymentAcceptorId: g,
2515
2567
  amount: o.amount
2516
2568
  });
2517
- const v = await s({
2518
- payment_acceptor_id: M,
2519
- payment_gateway_variant: cn,
2569
+ const u = await s({
2570
+ payment_acceptor_id: g,
2571
+ payment_gateway_variant: mn,
2520
2572
  adyen: {
2521
- ...Q,
2573
+ ...J,
2522
2574
  store_payment_method: !0
2523
2575
  // Required for recurring payments
2524
2576
  },
2525
2577
  amount: o.amount,
2526
2578
  return_url: te
2527
2579
  });
2528
- if (l.info("APPLE_PAY_API_RESPONSE", "Payment API response received", {
2529
- status: v.status,
2530
- paymentResult: v
2531
- }), v.status === "FAILURE") {
2532
- l.error("APPLE_PAY_AUTHORIZATION_FAILED", "Payment authorization failed", {
2533
- error: v
2534
- }), G.reject();
2580
+ if (r.info("APPLE_PAY_API_RESPONSE", "Payment API response received", {
2581
+ status: u.status,
2582
+ paymentResult: u
2583
+ }), u.status === "FAILURE") {
2584
+ r.error("APPLE_PAY_AUTHORIZATION_FAILED", "Payment authorization failed", {
2585
+ error: u
2586
+ }), $.reject();
2535
2587
  return;
2536
2588
  }
2537
- if (v.status === "ACTION_REQUIRED") {
2538
- l.warn("APPLE_PAY_ACTION_REQUIRED", "Payment requires additional action", {
2539
- action: v.action
2540
- }), G.reject();
2589
+ if (u.status === "ACTION_REQUIRED") {
2590
+ r.warn("APPLE_PAY_ACTION_REQUIRED", "Payment requires additional action", {
2591
+ action: u.action
2592
+ }), $.reject();
2541
2593
  return;
2542
2594
  }
2543
- l.info("APPLE_PAY_SUCCESS", "Apple Pay payment successful, resolving"), G.resolve();
2544
- } catch (R) {
2545
- l.error("APPLE_PAY_AUTHORIZATION_FAILED", "Apple Pay authorization failed", {
2546
- error: R
2547
- }), G.reject();
2595
+ r.info("APPLE_PAY_SUCCESS", "Apple Pay payment successful, resolving"), $.resolve();
2596
+ } catch (j) {
2597
+ r.error("APPLE_PAY_AUTHORIZATION_FAILED", "Apple Pay authorization failed", {
2598
+ error: j
2599
+ }), $.reject();
2548
2600
  }
2549
2601
  }
2550
2602
  });
2551
2603
  if (!a.value) {
2552
- l.error("APPLE_PAY_ERROR", "Apple Pay button ref not found");
2604
+ r.error("APPLE_PAY_ERROR", "Apple Pay button ref not found");
2553
2605
  return;
2554
2606
  }
2555
2607
  try {
2556
2608
  await P.isAvailable(), P.mount(a.value), n("ready");
2557
- } catch (N) {
2558
- l.error("APPLE_PAY_ERROR", "Apple Pay not available on this device", {}, N);
2609
+ } catch (T) {
2610
+ r.error("APPLE_PAY_ERROR", "Apple Pay not available on this device", {}, T);
2559
2611
  }
2560
- }, E = (m) => {
2561
- if (!m.value)
2612
+ }, N = (f) => {
2613
+ if (!f.value)
2562
2614
  return;
2563
- let x = m.value ?? 1, P = m.type.toLowerCase();
2564
- if (m.type === "WEEK" && (P = "day", x = m.value * 7), P === "day" || P === "month" || P === "year" || P === "hour" || P === "minute")
2615
+ let L = f.value ?? 1, P = f.type.toLowerCase();
2616
+ if (f.type === "WEEK" && (P = "day", L = f.value * 7), P === "day" || P === "month" || P === "year" || P === "hour" || P === "minute")
2565
2617
  return {
2566
2618
  recurringPaymentIntervalUnit: P,
2567
- recurringPaymentIntervalCount: x
2619
+ recurringPaymentIntervalCount: L
2568
2620
  };
2569
- }, y = (m) => ({
2570
- postal_code: m.postalCode,
2571
- city: m.locality,
2572
- country: m.countryCode
2573
- }), _ = (m) => ({
2574
- postal_code: m.postalCode,
2575
- city: m.city,
2576
- country: m.country
2577
- }), A = (m) => m && c(m) ? m : void 0, c = (m) => Ve(m), C = () => {
2578
- var x;
2579
- const m = (x = a.value) == null ? void 0 : x.querySelector("apple-pay-button");
2580
- if (m) {
2621
+ }, y = (f) => ({
2622
+ postal_code: f.postalCode,
2623
+ city: f.locality,
2624
+ country: f.countryCode
2625
+ }), M = (f) => ({
2626
+ postal_code: f.postalCode,
2627
+ city: f.city,
2628
+ country: f.country
2629
+ }), A = (f) => f && c(f) ? f : void 0, c = (f) => Ge(f), x = () => {
2630
+ var L;
2631
+ const f = (L = a.value) == null ? void 0 : L.querySelector("apple-pay-button");
2632
+ if (f) {
2581
2633
  const P = new MouseEvent("click", {
2582
2634
  bubbles: !0,
2583
2635
  cancelable: !0,
2584
2636
  view: window
2585
2637
  });
2586
- m.dispatchEvent(P);
2638
+ f.dispatchEvent(P);
2587
2639
  }
2588
2640
  };
2589
- return Te(() => {
2590
- p();
2591
- }), (m, x) => (g(), Z(fe, null, [
2592
- e.isVisible ? (g(), k(tt, {
2641
+ return ke(() => {
2642
+ d();
2643
+ }), (f, L) => (v(), W(_e, null, [
2644
+ e.isVisible ? (v(), O(it, {
2593
2645
  key: 0,
2594
2646
  type: "applepay",
2595
- onClick: C
2647
+ onClick: x
2596
2648
  })) : B("", !0),
2597
- w("div", sn, [
2649
+ w("div", pn, [
2598
2650
  w("div", {
2599
2651
  ref_key: "applePayButtonRef",
2600
2652
  ref: a
@@ -2602,7 +2654,7 @@ const rn = {
2602
2654
  ])
2603
2655
  ], 64));
2604
2656
  }
2605
- }), dn = { class: "relative overflow-hidden" }, pn = /* @__PURE__ */ se({
2657
+ }), yn = { class: "relative overflow-hidden" }, vn = /* @__PURE__ */ ce({
2606
2658
  __name: "ExpressPaymentMethodPaypal",
2607
2659
  props: {
2608
2660
  amount: { type: Object },
@@ -2614,7 +2666,7 @@ const rn = {
2614
2666
  },
2615
2667
  emits: ["ready", "update-billing-information"],
2616
2668
  setup(e, { emit: i }) {
2617
- const o = e, n = i, a = _e(), { buttonRef: l } = Ut({
2669
+ const o = e, n = i, a = Me(), { buttonRef: r } = Gt({
2618
2670
  props: o,
2619
2671
  onMissingButton: () => a.error(
2620
2672
  "EXPRESS_CHECKOUT_PAYPAL_ERROR",
@@ -2624,8 +2676,8 @@ const rn = {
2624
2676
  error: s
2625
2677
  }),
2626
2678
  create: async (s) => {
2627
- const { PayPal: M } = await Ue();
2628
- return new M(s, {
2679
+ const { PayPal: g } = await Ve();
2680
+ return new g(s, {
2629
2681
  isExpress: !0,
2630
2682
  blockPayPalPayLaterButton: !0,
2631
2683
  blockPayPalCreditButton: !0,
@@ -2639,20 +2691,20 @@ const rn = {
2639
2691
  });
2640
2692
  }
2641
2693
  });
2642
- return (s, M) => (g(), Z("div", dn, [
2643
- e.isVisible ? (g(), k(tt, {
2694
+ return (s, g) => (v(), W("div", yn, [
2695
+ e.isVisible ? (v(), O(it, {
2644
2696
  key: 0,
2645
2697
  type: "paypal",
2646
2698
  class: "w-full"
2647
2699
  })) : B("", !0),
2648
2700
  w("div", {
2649
2701
  ref_key: "paypalButtonRef",
2650
- ref: l,
2702
+ ref: r,
2651
2703
  class: "absolute inset-0 opacity-[0.0001]"
2652
2704
  }, null, 512)
2653
2705
  ]));
2654
2706
  }
2655
- }), mn = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" }, gn = /* @__PURE__ */ se({
2707
+ }), fn = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" }, _n = /* @__PURE__ */ ce({
2656
2708
  __name: "ExpressPaymentMethodGooglePay",
2657
2709
  props: {
2658
2710
  amount: { type: Object },
@@ -2664,52 +2716,52 @@ const rn = {
2664
2716
  },
2665
2717
  emits: ["ready", "update-billing-information"],
2666
2718
  setup(e, { emit: i }) {
2667
- const o = e, n = i, a = _e(), { buttonRef: l } = Ut({
2719
+ const o = e, n = i, a = Me(), { buttonRef: r } = Gt({
2668
2720
  props: o,
2669
2721
  onMissingButton: () => a.error(
2670
2722
  "EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
2671
2723
  "The Google Pay button reference is not found and cannot be mounted"
2672
2724
  ),
2673
- onMountFailed: (M) => a.error(
2725
+ onMountFailed: (g) => a.error(
2674
2726
  "EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
2675
2727
  "Failed mounting Google Pay express button",
2676
- { error: M }
2728
+ { error: g }
2677
2729
  ),
2678
- create: async (M) => {
2679
- const { GooglePay: p } = await Ue();
2680
- return new p(M, { isExpress: !0 });
2730
+ create: async (g) => {
2731
+ const { GooglePay: d } = await Ve();
2732
+ return new d(g, { isExpress: !0 });
2681
2733
  },
2682
2734
  afterMount: () => n("ready")
2683
2735
  }), s = () => {
2684
- var p;
2685
- const M = (p = l.value) == null ? void 0 : p.querySelector("#gpay-button-online-api-id");
2686
- if (M) {
2687
- const E = new MouseEvent("click", {
2736
+ var d;
2737
+ const g = (d = r.value) == null ? void 0 : d.querySelector("#gpay-button-online-api-id");
2738
+ if (g) {
2739
+ const N = new MouseEvent("click", {
2688
2740
  bubbles: !0,
2689
2741
  cancelable: !0,
2690
2742
  view: window
2691
2743
  });
2692
- M.dispatchEvent(E);
2744
+ g.dispatchEvent(N);
2693
2745
  }
2694
2746
  };
2695
- return (M, p) => (g(), Z(fe, null, [
2696
- e.isVisible ? (g(), k(tt, {
2747
+ return (g, d) => (v(), W(_e, null, [
2748
+ e.isVisible ? (v(), O(it, {
2697
2749
  key: 0,
2698
2750
  type: "googlepay",
2699
2751
  onClick: s
2700
2752
  })) : B("", !0),
2701
- w("div", mn, [
2753
+ w("div", fn, [
2702
2754
  w("div", {
2703
2755
  ref_key: "googlePayButtonRef",
2704
- ref: l
2756
+ ref: r
2705
2757
  }, null, 512)
2706
2758
  ])
2707
2759
  ], 64));
2708
2760
  }
2709
- }), yn = {
2761
+ }), Mn = {
2710
2762
  key: 0,
2711
2763
  class: "mt-4n"
2712
- }, vn = { class: "mb-2" }, fn = { class: "grid grid-cols-6 gap-1 md:gap-2" }, _n = { class: "mt-4 h-4" }, Mn = 2, hn = /* @__PURE__ */ se({
2764
+ }, hn = { class: "mb-2" }, bn = { class: "grid grid-cols-6 gap-1 md:gap-2" }, In = { class: "mt-4 h-4" }, An = 2, Pn = /* @__PURE__ */ ce({
2713
2765
  __name: "ExpressPaymentMethods",
2714
2766
  props: {
2715
2767
  amount: { type: Object },
@@ -2721,131 +2773,131 @@ const rn = {
2721
2773
  },
2722
2774
  emits: ["update-billing-information"],
2723
2775
  setup(e) {
2724
- const i = ["applepay"], o = e, { $t: n } = ge(), a = V(!1), l = V(!1), s = V(!1), M = b(() => {
2776
+ const i = ["applepay"], o = e, { $t: n } = ve(), a = F(!1), r = F(!1), s = F(!1), g = b(() => {
2725
2777
  var c;
2726
2778
  if (i.includes("applepay"))
2727
2779
  return (c = o.paymentMethodsOptionsResponse) == null ? void 0 : c.find(
2728
- (C) => {
2729
- var m;
2730
- return (m = C.options) == null ? void 0 : m.some(
2731
- (x) => x.name.toLowerCase() === "apple pay" && x.payment_gateway_variant === "ADYEN"
2780
+ (x) => {
2781
+ var f;
2782
+ return (f = x.options) == null ? void 0 : f.some(
2783
+ (L) => L.name.toLowerCase() === "apple pay" && L.payment_gateway_variant === "ADYEN"
2732
2784
  );
2733
2785
  }
2734
2786
  );
2735
- }), p = b(() => {
2787
+ }), d = b(() => {
2736
2788
  var c;
2737
2789
  if (i.includes("paypal"))
2738
2790
  return (c = o.paymentMethodsOptionsResponse) == null ? void 0 : c.find(
2739
- (C) => {
2740
- var m;
2741
- return (m = C.options) == null ? void 0 : m.some(
2742
- (x) => x.name.toLowerCase() === "paypal" && x.payment_gateway_variant === "ADYEN"
2791
+ (x) => {
2792
+ var f;
2793
+ return (f = x.options) == null ? void 0 : f.some(
2794
+ (L) => L.name.toLowerCase() === "paypal" && L.payment_gateway_variant === "ADYEN"
2743
2795
  );
2744
2796
  }
2745
2797
  );
2746
- }), E = b(() => {
2798
+ }), N = b(() => {
2747
2799
  var c;
2748
2800
  if (i.includes("googlepay"))
2749
2801
  return (c = o.paymentMethodsOptionsResponse) == null ? void 0 : c.find(
2750
- (C) => {
2751
- var m;
2752
- return (m = C.options) == null ? void 0 : m.some(
2753
- (x) => x.name.toLowerCase() === "google pay" && x.payment_gateway_variant === "ADYEN"
2802
+ (x) => {
2803
+ var f;
2804
+ return (f = x.options) == null ? void 0 : f.some(
2805
+ (L) => L.name.toLowerCase() === "google pay" && L.payment_gateway_variant === "ADYEN"
2754
2806
  );
2755
2807
  }
2756
2808
  );
2757
- }), y = b(() => !!(M.value || E.value || p.value)), _ = b(() => {
2758
- var x;
2759
- if (((x = o.paymentMethodsOptionsResponse) == null ? void 0 : x.length) === 0)
2809
+ }), y = b(() => !!(g.value || N.value || d.value)), M = b(() => {
2810
+ var L;
2811
+ if (((L = o.paymentMethodsOptionsResponse) == null ? void 0 : L.length) === 0)
2760
2812
  return !1;
2761
- const c = !M.value || a.value, C = !E.value || l.value, m = !p.value || s.value;
2762
- return c && C && m;
2763
- }), A = b(() => _.value ? (M.value ? 1 : 0) + (E.value ? 1 : 0) + (p.value ? 1 : 0) : Mn);
2764
- return (c, C) => y.value ? (g(), Z("div", yn, [
2765
- w("div", vn, [
2766
- _.value ? (g(), k(t(le), {
2813
+ const c = !g.value || a.value, x = !N.value || r.value, f = !d.value || s.value;
2814
+ return c && x && f;
2815
+ }), A = b(() => M.value ? (g.value ? 1 : 0) + (N.value ? 1 : 0) + (d.value ? 1 : 0) : An);
2816
+ return (c, x) => y.value ? (v(), W("div", Mn, [
2817
+ w("div", hn, [
2818
+ M.value ? (v(), O(t(se), {
2767
2819
  key: 1,
2768
2820
  variant: "heading-3",
2769
2821
  tag: "h2"
2770
2822
  }, {
2771
2823
  default: I(() => [
2772
- K(F(t(n)({
2824
+ G(V(t(n)({
2773
2825
  defaultMessage: "Subscribe instantly with",
2774
2826
  id: "checkout.express_payment_methods.title",
2775
2827
  description: "The title of the express payment methods block in the checkout form"
2776
2828
  })), 1)
2777
2829
  ]),
2778
2830
  _: 1
2779
- })) : (g(), k(ve, {
2831
+ })) : (v(), O(fe, {
2780
2832
  key: 0,
2781
2833
  variant: "title"
2782
2834
  }))
2783
2835
  ]),
2784
- w("div", fn, [
2785
- _.value ? B("", !0) : (g(), Z(fe, { key: 0 }, [
2786
- D(ve, { class: "col-span-3 h-11" }),
2787
- D(ve, { class: "col-span-3 h-11" })
2836
+ w("div", bn, [
2837
+ M.value ? B("", !0) : (v(), W(_e, { key: 0 }, [
2838
+ E(fe, { class: "col-span-3 h-11" }),
2839
+ E(fe, { class: "col-span-3 h-11" })
2788
2840
  ], 64)),
2789
2841
  w("div", {
2790
- class: he(["col-span-3 md:col-span-2", {
2791
- hidden: !M.value,
2842
+ class: be(["col-span-3 md:col-span-2", {
2843
+ hidden: !g.value,
2792
2844
  "!col-span-6": A.value === 1,
2793
2845
  "md:!col-span-3": A.value === 2,
2794
2846
  "!col-span-6 md:!col-span-2": A.value === 3
2795
2847
  }])
2796
2848
  }, [
2797
- M.value ? (g(), k(un, {
2849
+ g.value ? (v(), O(gn, {
2798
2850
  key: 0,
2799
2851
  amount: e.amount,
2800
2852
  "billing-information": e.billingInformation,
2801
2853
  "country-code": e.countryCode,
2802
2854
  locale: e.locale,
2803
- "is-visible": _.value,
2804
- "payment-method-options-response": M.value,
2855
+ "is-visible": M.value,
2856
+ "payment-method-options-response": g.value,
2805
2857
  "on-billing-information-change": e.onBillingInformationChange,
2806
- onReady: C[0] || (C[0] = (m) => a.value = !0),
2807
- onUpdateBillingInformation: C[1] || (C[1] = (m) => c.$emit("update-billing-information", m))
2858
+ onReady: x[0] || (x[0] = (f) => a.value = !0),
2859
+ onUpdateBillingInformation: x[1] || (x[1] = (f) => c.$emit("update-billing-information", f))
2808
2860
  }, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response", "on-billing-information-change"])) : B("", !0)
2809
2861
  ], 2),
2810
2862
  w("div", {
2811
- class: he(["col-span-3 md:col-span-2", {
2812
- hidden: !E.value,
2863
+ class: be(["col-span-3 md:col-span-2", {
2864
+ hidden: !N.value,
2813
2865
  "col-span-6 md:col-span-6": A.value === 1,
2814
2866
  "md:!col-span-3": A.value === 2
2815
2867
  }])
2816
2868
  }, [
2817
- E.value ? (g(), k(gn, {
2869
+ N.value ? (v(), O(_n, {
2818
2870
  key: 0,
2819
2871
  amount: e.amount,
2820
2872
  "billing-information": e.billingInformation,
2821
2873
  "country-code": e.countryCode,
2822
2874
  locale: e.locale,
2823
- "is-visible": _.value,
2824
- "payment-method-options-response": E.value,
2825
- onReady: C[2] || (C[2] = (m) => l.value = !0)
2875
+ "is-visible": M.value,
2876
+ "payment-method-options-response": N.value,
2877
+ onReady: x[2] || (x[2] = (f) => r.value = !0)
2826
2878
  }, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response"])) : B("", !0)
2827
2879
  ], 2),
2828
2880
  w("div", {
2829
- class: he(["col-span-3 md:col-span-2", {
2830
- hidden: !p.value,
2881
+ class: be(["col-span-3 md:col-span-2", {
2882
+ hidden: !d.value,
2831
2883
  "col-span-6 md:col-span-6": A.value === 1,
2832
2884
  "md:!col-span-3": A.value === 2
2833
2885
  }])
2834
2886
  }, [
2835
- p.value ? (g(), k(pn, {
2887
+ d.value ? (v(), O(vn, {
2836
2888
  key: 0,
2837
2889
  amount: e.amount,
2838
2890
  "billing-information": e.billingInformation,
2839
2891
  "country-code": e.countryCode,
2840
2892
  locale: e.locale,
2841
- "is-visible": _.value,
2842
- "payment-method-options-response": p.value,
2843
- onReady: C[3] || (C[3] = (m) => s.value = !0)
2893
+ "is-visible": M.value,
2894
+ "payment-method-options-response": d.value,
2895
+ onReady: x[3] || (x[3] = (f) => s.value = !0)
2844
2896
  }, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response"])) : B("", !0)
2845
2897
  ], 2)
2846
2898
  ]),
2847
- w("div", _n, [
2848
- _.value ? (g(), k(t(Fi), {
2899
+ w("div", In, [
2900
+ M.value ? (v(), O(t(Gi), {
2849
2901
  key: 1,
2850
2902
  text: t(n)({
2851
2903
  defaultMessage: "Or",
@@ -2853,17 +2905,17 @@ const rn = {
2853
2905
  description: "The text of the divider text in the express payment methods block in the checkout form"
2854
2906
  }),
2855
2907
  "text-position": "center"
2856
- }, null, 8, ["text"])) : (g(), k(ve, {
2908
+ }, null, 8, ["text"])) : (v(), O(fe, {
2857
2909
  key: 0,
2858
2910
  variant: "divider-text"
2859
2911
  }))
2860
2912
  ])
2861
2913
  ])) : B("", !0);
2862
2914
  }
2863
- }), bn = ["aria-expanded", "aria-label"], In = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, An = { class: "flex flex-row items-center gap-2" }, Pn = ["onKeydown"], Dn = ["aria-label"], Nn = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, En = { class: "flex flex-row items-center gap-2" }, Cn = {
2915
+ }), Dn = ["aria-expanded", "aria-label"], Nn = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, En = { class: "flex flex-row items-center gap-2" }, Cn = ["onKeydown"], xn = ["aria-label"], Ln = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, wn = { class: "flex flex-row items-center gap-2" }, Tn = {
2864
2916
  class: "sr-only",
2865
2917
  "aria-live": "polite"
2866
- }, xn = /* @__PURE__ */ se({
2918
+ }, Sn = /* @__PURE__ */ ce({
2867
2919
  inheritAttrs: !1,
2868
2920
  __name: "PromotionCodeSection",
2869
2921
  props: {
@@ -2871,14 +2923,14 @@ const rn = {
2871
2923
  },
2872
2924
  emits: ["update:appliedCode", "apply", "remove"],
2873
2925
  setup(e, { emit: i }) {
2874
- const { $t: o } = ge(), n = e, a = i, l = V(!1), s = V(""), M = V(""), p = V(null), E = V(null), y = Yi("promotion-code-"), _ = `${y}-label`, A = `${y}-panel`, c = b(() => n.promotionCode !== null && n.promotionCode !== ""), C = b(() => s.value.trim().length > 0), m = b(
2926
+ const { $t: o } = ve(), n = e, a = i, r = F(!1), s = F(""), g = F(""), d = F(null), N = F(null), y = Qi("promotion-code-"), M = `${y}-label`, A = `${y}-panel`, c = b(() => n.promotionCode !== null && n.promotionCode !== ""), x = b(() => s.value.trim().length > 0), f = b(
2875
2927
  () => n.promotionCode ?? o({
2876
2928
  defaultMessage: "Promotion applied",
2877
2929
  id: "checkout.promotion_code.applied_label",
2878
2930
  description: "Fallback label for an applied promotion code in checkout"
2879
2931
  })
2880
- ), x = b(
2881
- () => l.value ? o({
2932
+ ), L = b(
2933
+ () => r.value ? o({
2882
2934
  defaultMessage: "Collapse promotion code input",
2883
2935
  id: "checkout.promotion_code.collapse_aria_label",
2884
2936
  description: "Aria label for the promotion code toggle button in checkout, while the input is open"
@@ -2893,59 +2945,59 @@ const rn = {
2893
2945
  id: "checkout.promotion_code.apply_aria_label",
2894
2946
  description: "Aria label for the promotion code apply button in checkout"
2895
2947
  })
2896
- ), N = b(
2948
+ ), T = b(
2897
2949
  () => o({
2898
2950
  defaultMessage: "Remove promotion code",
2899
2951
  id: "checkout.promotion_code.remove_aria_label",
2900
2952
  description: "Aria label for the promotion code remove button in checkout"
2901
2953
  })
2902
- ), G = () => {
2954
+ ), $ = () => {
2903
2955
  s.value = "";
2904
- }, R = () => {
2905
- var f;
2906
- const v = (f = E.value) == null ? void 0 : f.querySelector("input");
2907
- v instanceof HTMLInputElement && v.focus();
2908
- }, u = () => {
2909
- l.value && (l.value = !1);
2910
- }, T = () => {
2911
- c.value || (l.value = !l.value);
2912
- }, Q = () => {
2913
- if (!C.value)
2956
+ }, j = () => {
2957
+ var _;
2958
+ const u = (_ = N.value) == null ? void 0 : _.querySelector("input");
2959
+ u instanceof HTMLInputElement && u.focus();
2960
+ }, p = () => {
2961
+ r.value && (r.value = !1);
2962
+ }, C = () => {
2963
+ c.value || (r.value = !r.value);
2964
+ }, J = () => {
2965
+ if (!x.value)
2914
2966
  return;
2915
- const v = s.value.trim();
2916
- a("update:appliedCode", v), a("apply", v), M.value = o({
2967
+ const u = s.value.trim();
2968
+ a("update:appliedCode", u), a("apply", u), g.value = o({
2917
2969
  defaultMessage: "Promotion code applied",
2918
2970
  id: "checkout.promotion_code.applied_status",
2919
2971
  description: "Aria live message when a promotion code is applied in checkout"
2920
- }), l.value = !1;
2972
+ }), r.value = !1;
2921
2973
  }, te = () => {
2922
- a("update:appliedCode", null), a("remove"), M.value = o({
2974
+ a("update:appliedCode", null), a("remove"), g.value = o({
2923
2975
  defaultMessage: "Promotion code removed",
2924
2976
  id: "checkout.promotion_code.removed_status",
2925
2977
  description: "Aria live message when a promotion code is removed in checkout"
2926
- }), G(), Qe(() => {
2927
- var v;
2928
- (v = p.value) == null || v.focus();
2978
+ }), $(), He(() => {
2979
+ var u;
2980
+ (u = d.value) == null || u.focus();
2929
2981
  });
2930
2982
  };
2931
- return Le(l, (v) => {
2932
- if (!v) {
2933
- G(), Qe(() => {
2934
- var f;
2935
- (f = p.value) == null || f.focus();
2983
+ return Te(r, (u) => {
2984
+ if (!u) {
2985
+ $(), He(() => {
2986
+ var _;
2987
+ (_ = d.value) == null || _.focus();
2936
2988
  });
2937
2989
  return;
2938
2990
  }
2939
- Qe(() => {
2940
- R();
2991
+ He(() => {
2992
+ j();
2941
2993
  });
2942
- }), Le(
2994
+ }), Te(
2943
2995
  () => n.promotionCode,
2944
- (v) => {
2945
- v || G();
2996
+ (u) => {
2997
+ u || $();
2946
2998
  }
2947
- ), (v, f) => (g(), Z(fe, null, [
2948
- c.value ? (g(), k(t(pe), vt({ key: 1 }, v.$attrs, {
2999
+ ), (u, _) => (v(), W(_e, null, [
3000
+ c.value ? (v(), O(t(ge), ft({ key: 1 }, u.$attrs, {
2949
3001
  "no-border": "",
2950
3002
  "no-spacing": "",
2951
3003
  "content-background": "none",
@@ -2955,51 +3007,51 @@ const rn = {
2955
3007
  w("button", {
2956
3008
  type: "button",
2957
3009
  class: "w-full rounded border border-primary-900 bg-white",
2958
- "aria-label": N.value,
3010
+ "aria-label": T.value,
2959
3011
  onClick: te
2960
3012
  }, [
2961
- w("div", Nn, [
2962
- w("div", En, [
2963
- D(t(ze), { icon: "local_activity" }),
2964
- D(t(le), {
3013
+ w("div", Ln, [
3014
+ w("div", wn, [
3015
+ E(t(je), { icon: "local_activity" }),
3016
+ E(t(se), {
2965
3017
  variant: "body-sm",
2966
3018
  class: "font-semibold"
2967
3019
  }, {
2968
3020
  default: I(() => [
2969
- K(F(m.value), 1)
3021
+ G(V(f.value), 1)
2970
3022
  ]),
2971
3023
  _: 1
2972
3024
  })
2973
3025
  ]),
2974
- D(t(ze), { icon: "close" })
3026
+ E(t(je), { icon: "close" })
2975
3027
  ])
2976
- ], 8, Dn)
3028
+ ], 8, xn)
2977
3029
  ]),
2978
3030
  _: 1
2979
- }, 16)) : (g(), k(t(pe), vt({ key: 0 }, v.$attrs, {
3031
+ }, 16)) : (v(), O(t(ge), ft({ key: 0 }, u.$attrs, {
2980
3032
  "no-spacing": "",
2981
3033
  class: "relative w-full"
2982
3034
  }), {
2983
3035
  default: I(() => [
2984
3036
  w("button", {
2985
3037
  ref_key: "toggleRef",
2986
- ref: p,
3038
+ ref: d,
2987
3039
  type: "button",
2988
3040
  class: "w-full",
2989
- "aria-expanded": l.value,
3041
+ "aria-expanded": r.value,
2990
3042
  "aria-controls": A,
2991
- "aria-label": x.value,
2992
- onClick: T
3043
+ "aria-label": L.value,
3044
+ onClick: C
2993
3045
  }, [
2994
- w("div", In, [
2995
- w("div", An, [
2996
- D(t(ze), { icon: "local_activity" }),
2997
- D(t(le), {
2998
- id: _,
3046
+ w("div", Nn, [
3047
+ w("div", En, [
3048
+ E(t(je), { icon: "local_activity" }),
3049
+ E(t(se), {
3050
+ id: M,
2999
3051
  variant: "body-sm"
3000
3052
  }, {
3001
3053
  default: I(() => [
3002
- K(F(t(o)({
3054
+ G(V(t(o)({
3003
3055
  defaultMessage: "Add promotion code",
3004
3056
  id: "checkout.promotion_code.add_label",
3005
3057
  description: "Label for adding a promotion code in checkout"
@@ -3008,23 +3060,23 @@ const rn = {
3008
3060
  _: 1
3009
3061
  })
3010
3062
  ]),
3011
- D(t(ze), {
3012
- icon: l.value ? "remove" : "add"
3063
+ E(t(je), {
3064
+ icon: r.value ? "remove" : "add"
3013
3065
  }, null, 8, ["icon"])
3014
3066
  ])
3015
- ], 8, bn),
3016
- qt(w("div", {
3067
+ ], 8, Dn),
3068
+ ti(w("div", {
3017
3069
  id: A,
3018
3070
  ref_key: "panelRef",
3019
- ref: E,
3071
+ ref: N,
3020
3072
  role: "region",
3021
- "aria-labelledby": _,
3073
+ "aria-labelledby": M,
3022
3074
  class: "flex w-full flex-row items-center gap-2 overflow-hidden border-t px-3 py-2",
3023
- onKeydown: ft($e(u, ["prevent"]), ["esc"])
3075
+ onKeydown: _t($e(p, ["prevent"]), ["esc"])
3024
3076
  }, [
3025
- D(t(me), {
3077
+ E(t(ye), {
3026
3078
  modelValue: s.value,
3027
- "onUpdate:modelValue": f[0] || (f[0] = (r) => s.value = r),
3079
+ "onUpdate:modelValue": _[0] || (_[0] = (l) => s.value = l),
3028
3080
  placeholder: t(o)({
3029
3081
  defaultMessage: "Promotion code",
3030
3082
  id: "checkout.promotion_code.placeholder",
@@ -3036,17 +3088,17 @@ const rn = {
3036
3088
  description: "Aria label for promotion code input in checkout"
3037
3089
  }),
3038
3090
  class: "w-full",
3039
- onKeydown: ft($e(Q, ["prevent"]), ["enter"])
3091
+ onKeydown: _t($e(J, ["prevent"]), ["enter"])
3040
3092
  }, null, 8, ["modelValue", "placeholder", "aria-label", "onKeydown"]),
3041
- D(t(Ie), {
3093
+ E(t(Ae), {
3042
3094
  type: "button",
3043
- disabled: !C.value,
3095
+ disabled: !x.value,
3044
3096
  "aria-label": P.value,
3045
- "aria-disabled": !C.value,
3046
- onClick: Q
3097
+ "aria-disabled": !x.value,
3098
+ onClick: J
3047
3099
  }, {
3048
3100
  default: I(() => [
3049
- K(F(t(o)({
3101
+ G(V(t(o)({
3050
3102
  defaultMessage: "Apply",
3051
3103
  id: "checkout.promotion_code.apply_button",
3052
3104
  description: "Button label for applying a promotion code in checkout"
@@ -3054,146 +3106,162 @@ const rn = {
3054
3106
  ]),
3055
3107
  _: 1
3056
3108
  }, 8, ["disabled", "aria-label", "aria-disabled"])
3057
- ], 40, Pn), [
3058
- [Jt, l.value]
3109
+ ], 40, Cn), [
3110
+ [ii, r.value]
3059
3111
  ])
3060
3112
  ]),
3061
3113
  _: 1
3062
3114
  }, 16)),
3063
- w("span", Cn, F(M.value), 1)
3115
+ w("span", Tn, V(g.value), 1)
3064
3116
  ], 64));
3065
3117
  }
3066
- }), Ln = { class: "sv-checkout__header" }, wn = { class: "sv-checkout__payment-methods" }, Tn = {
3118
+ }), kn = { class: "sv-checkout__header" }, On = { class: "sv-checkout__payment-methods" }, zn = {
3067
3119
  key: 0,
3068
3120
  class: "sv-checkout__payment-methods-body"
3069
- }, Sn = {
3121
+ }, jn = {
3070
3122
  key: 3,
3071
3123
  class: "sv-checkout__payment-form"
3072
- }, kn = { class: "sv-checkout__order-summary" }, On = { class: "flex flex-col gap-2" }, zn = /* @__PURE__ */ se({
3124
+ }, Rn = { class: "sv-checkout__order-summary" }, Bn = { class: "flex flex-col gap-2" }, $n = /* @__PURE__ */ ce({
3073
3125
  __name: "Checkout",
3074
3126
  props: {
3075
3127
  configuration: { type: Object }
3076
3128
  },
3077
3129
  emits: ["error", "ready"],
3078
3130
  setup(e, { emit: i }) {
3079
- var rt, lt, st, ct, ut, dt, pt, mt, gt;
3080
- const o = _t(
3081
- () => import("./PaymentIntegrationForm-Crrhar96.mjs")
3082
- ), n = _t(
3083
- () => import("./PlanCustomizationEditor-CCOTD6Qu.mjs")
3084
- ), a = e, l = i, s = b(() => a.configuration), M = V(), p = V(), E = _e(), { $t: y, locale: _ } = ge(), { formatTimePeriod: A } = xt(), c = Ci(), { isMobileViewport: C } = wt();
3085
- if (E.info("COMPONENT_INITIALIZED", "Checkout component initialized"), ((rt = c.value) == null ? void 0 : rt.type) !== "INIT_PRICING_PLAN_SUBSCRIPTION")
3086
- throw E.error("INVALID_TOKEN", "Invalid token"), Error("Invalid token");
3087
- c.value.status === "REVOKED" && (M.value = {
3131
+ var lt, st, ct, ut, dt, pt, mt, gt, yt;
3132
+ const o = Mt(
3133
+ () => import("./PaymentIntegrationForm-CH5B6BY5.mjs")
3134
+ ), n = Mt(
3135
+ () => import("./PlanCustomizationEditor-0zCXN-cv.mjs")
3136
+ ), a = e, r = i, s = b(() => a.configuration), g = F(), d = F(), N = Me(), { $t: y, locale: M } = ve(), { formatTimePeriod: A } = Lt(), c = Li(), { isMobileViewport: x } = St();
3137
+ if (N.info("COMPONENT_INITIALIZED", "Checkout component initialized"), ((lt = c.value) == null ? void 0 : lt.type) !== "INIT_PRICING_PLAN_SUBSCRIPTION")
3138
+ throw N.error("INVALID_TOKEN", "Invalid token"), Error("Invalid token");
3139
+ c.value.status === "REVOKED" && (g.value = {
3088
3140
  code: "RESOURCE_REVOKED",
3089
3141
  message: `Portal url with resource id "${c.value.id}" is revoked`
3090
- }, E.error("RESOURCE_REVOKED", `Portal url with resource id "${c.value.id}" is revoked`));
3091
- const m = (st = (lt = c.value) == null ? void 0 : lt.init_pricing_plan_subscription) == null ? void 0 : st.pricing_plan_subscription_id, x = (ut = (ct = c.value) == null ? void 0 : ct.init_pricing_plan_subscription) == null ? void 0 : ut.success_url, {
3142
+ }, N.error("RESOURCE_REVOKED", `Portal url with resource id "${c.value.id}" is revoked`));
3143
+ const f = (ct = (st = c.value) == null ? void 0 : st.init_pricing_plan_subscription) == null ? void 0 : ct.pricing_plan_subscription_id, L = (dt = (ut = c.value) == null ? void 0 : ut.init_pricing_plan_subscription) == null ? void 0 : dt.success_url, {
3092
3144
  validatedEmail: P,
3093
- validatedCountry: N,
3094
- paymentMethodOptions: G,
3095
- hasPaymentMethodOptionsError: R,
3096
- retryPaymentMethodOptions: u,
3097
- subscription: T,
3098
- isPaymentMethodsPending: Q,
3145
+ validatedCountry: T,
3146
+ paymentMethodOptions: $,
3147
+ hasPaymentMethodOptionsError: j,
3148
+ retryPaymentMethodOptions: p,
3149
+ subscription: C,
3150
+ isPaymentMethodsPending: J,
3099
3151
  isInvoicePreviewPending: te,
3100
- checkoutForm: v,
3101
- invoicePreview: f,
3102
- invoicePreviewByBillingPeriod: r,
3103
- trialInvoicePreview: d,
3152
+ checkoutForm: u,
3153
+ invoicePreview: _,
3154
+ invoicePreviewByBillingPeriod: l,
3155
+ trialInvoicePreview: m,
3104
3156
  trialPeriod: h,
3105
3157
  authorizationContext: S,
3106
- isPaid: O,
3158
+ isPaid: R,
3107
3159
  amount: H,
3108
- loadInvoicePreview: $,
3109
- updateInvoicePreviewOnBillingInformationChange: ie,
3110
- saveFormStateForRedirect: J
3111
- } = Po({
3112
- initialCountry: (dt = a.configuration) == null ? void 0 : dt.countryCode,
3113
- initialEmail: (pt = a.configuration) == null ? void 0 : pt.email,
3114
- subscriptionId: m,
3115
- enabledPricingIds: (mt = a.configuration) == null ? void 0 : mt.enabledPricingIds
3116
- }), ee = V(!1), oe = async () => {
3117
- var L;
3118
- await v.validation.value.$validate(), !v.validation.value.$invalid && (ee.value = !0, J(), (L = p.value) == null || L.submit());
3119
- }, ae = () => {
3120
- ee.value = !1;
3121
- }, U = async () => (await v.validation.value.$validate(), !v.validation.value.$invalid), X = b(() => !!d.value), W = b(
3122
- () => f.value ? Go(f.value) : !1
3123
- ), ne = b(
3124
- () => v.form.value.country && ["US", "CA"].includes(v.form.value.country) || !1
3125
- ), re = b({
3126
- get: () => v.form.value.enabledPricingIds ?? [],
3127
- set: (L) => {
3128
- v.form.value.enabledPricingIds = L;
3160
+ loadInvoicePreview: K,
3161
+ updateInvoicePreviewOnBillingInformationChange: Y,
3162
+ saveFormStateForRedirect: ae
3163
+ } = Co({
3164
+ initialCountry: (pt = a.configuration) == null ? void 0 : pt.countryCode,
3165
+ initialEmail: (mt = a.configuration) == null ? void 0 : mt.email,
3166
+ subscriptionId: f,
3167
+ enabledPricingIds: (gt = a.configuration) == null ? void 0 : gt.enabledPricingIds
3168
+ }), Z = F(!1), re = async () => {
3169
+ var D;
3170
+ await u.validation.value.$validate(), !u.validation.value.$invalid && (Z.value = !0, ae(), (D = d.value) == null || D.submit());
3171
+ }, ne = () => {
3172
+ Z.value = !1;
3173
+ }, U = async () => (await u.validation.value.$validate(), !u.validation.value.$invalid), ie = b(() => !!m.value), q = b(
3174
+ () => _.value ? Ho(_.value) : !1
3175
+ ), ee = b(
3176
+ () => u.form.value.country && ["US", "CA"].includes(u.form.value.country) || !1
3177
+ ), oe = b({
3178
+ get: () => u.form.value.enabledPricingIds ?? [],
3179
+ set: (D) => {
3180
+ u.form.value.enabledPricingIds = D;
3129
3181
  }
3130
- }), ce = b(
3131
- () => T.value ? De({
3132
- pricingPlanScheduleInfos: T.value.pricing_plan_schedule_infos,
3182
+ }), ue = b(
3183
+ () => C.value ? Ne({
3184
+ pricingPlanScheduleInfos: C.value.pricing_plan_schedule_infos,
3133
3185
  type: "DEFAULT"
3134
3186
  }) : void 0
3135
- ), ue = b(() => {
3136
- var z, j;
3137
- if (!T.value)
3187
+ ), de = b(() => {
3188
+ var k, z;
3189
+ if (!C.value)
3138
3190
  return;
3139
- const L = (j = (z = ce.value) == null ? void 0 : z.pricing_plan_version) == null ? void 0 : j.pricing_currency_settings;
3140
- return Rt({
3141
- country: v.form.value.country,
3142
- pricingCurrencySettings: L,
3143
- fallbackCurrency: T.value.billing_currency
3191
+ const D = (z = (k = ue.value) == null ? void 0 : k.pricing_plan_version) == null ? void 0 : z.pricing_currency_settings;
3192
+ return $t({
3193
+ country: u.form.value.country,
3194
+ pricingCurrencySettings: D,
3195
+ fallbackCurrency: C.value.billing_currency
3144
3196
  });
3145
- }), ye = b(() => {
3146
- if (!ce.value || !T.value)
3197
+ }), pe = b(() => {
3198
+ if (!ue.value || !C.value)
3147
3199
  return /* @__PURE__ */ new Set();
3148
- const L = ui({
3149
- pricingPlanScheduleInfo: ce.value
3150
- }), z = ue.value, j = T.value.billing_period, q = /* @__PURE__ */ new Set();
3151
- return L.forEach((Y, Ht) => {
3152
- z && Y.currency !== z || j && Y.billingPeriod && (Y.billingPeriod.type !== j.type || Y.billingPeriod.value !== j.value) || q.add(Ht);
3153
- }), q;
3154
- }), Ne = b({
3200
+ const D = mi({
3201
+ pricingPlanScheduleInfo: ue.value
3202
+ }), k = de.value, z = C.value.billing_period, X = /* @__PURE__ */ new Set();
3203
+ return D.forEach((Q, me) => {
3204
+ k && Q.currency !== k || z && Q.billingPeriod && (Q.billingPeriod.type !== z.type || Q.billingPeriod.value !== z.value) || X.add(me);
3205
+ }), X;
3206
+ }), Ee = b({
3155
3207
  get: () => {
3156
- const L = v.form.value.seatsValues ?? [], z = ye.value;
3157
- return z.size ? L.filter(({ pricing_item_config_id: j }) => z.has(j)) : L;
3208
+ const D = u.form.value.seatsValues ?? [], k = pe.value;
3209
+ return k.size ? D.filter(({ pricing_item_config_id: z }) => k.has(z)) : D;
3158
3210
  },
3159
- set: (L) => {
3160
- const z = v.form.value.seatsValues ?? [], j = ye.value;
3161
- if (!j.size) {
3162
- v.form.value.seatsValues = L;
3211
+ set: (D) => {
3212
+ const k = u.form.value.seatsValues ?? [], z = pe.value;
3213
+ if (!z.size) {
3214
+ u.form.value.seatsValues = D;
3215
+ return;
3216
+ }
3217
+ const X = k.filter(
3218
+ ({ pricing_item_config_id: Q }) => !z.has(Q)
3219
+ );
3220
+ u.form.value.seatsValues = X.concat(D);
3221
+ }
3222
+ }), Ce = b({
3223
+ get: () => {
3224
+ const D = u.form.value.unitsValues ?? [], k = pe.value;
3225
+ return k.size ? D.filter(({ pricing_item_config_id: z }) => k.has(z)) : D;
3226
+ },
3227
+ set: (D) => {
3228
+ const k = u.form.value.unitsValues ?? [], z = pe.value;
3229
+ if (!z.size) {
3230
+ u.form.value.unitsValues = D;
3163
3231
  return;
3164
3232
  }
3165
- const q = z.filter(
3166
- ({ pricing_item_config_id: Y }) => !j.has(Y)
3233
+ const X = k.filter(
3234
+ ({ pricing_item_config_id: Q }) => !z.has(Q)
3167
3235
  );
3168
- v.form.value.seatsValues = q.concat(L);
3236
+ u.form.value.unitsValues = X.concat(D);
3169
3237
  }
3170
- }), Se = b(() => {
3171
- var L, z, j, q, Y;
3172
- return d.value ? y(
3238
+ }), Oe = b(() => {
3239
+ var D, k, z, X, Q;
3240
+ return m.value ? y(
3173
3241
  {
3174
3242
  defaultMessage: "{discounted_amount} for {trial_period}, then {subscription_amount}/{billing_period} until canceled, starting {start_date, date, ::MMMMd}.",
3175
3243
  id: "checkout.agreement.trial",
3176
3244
  description: "The agreement for the trial period"
3177
3245
  },
3178
3246
  {
3179
- discounted_amount: d.value.tax_summary.total_amount.quantity === "0.00" ? y({
3247
+ discounted_amount: m.value.tax_summary.total_amount.quantity === "0.00" ? y({
3180
3248
  defaultMessage: "Free",
3181
3249
  id: "checkout.agreement.trial.free",
3182
3250
  description: "The free amount for the trial period"
3183
- }) : be(d.value.tax_summary.total_amount),
3251
+ }) : Ie(m.value.tax_summary.total_amount),
3184
3252
  trial_period: A(h.value, { short: !0 }),
3185
- subscription_amount: be(
3186
- ((L = f.value) == null ? void 0 : L.tax_summary.total_amount) ?? {
3253
+ subscription_amount: Ie(
3254
+ ((D = _.value) == null ? void 0 : D.tax_summary.total_amount) ?? {
3187
3255
  quantity: "0.00",
3188
3256
  currency: "EUR"
3189
3257
  }
3190
3258
  ),
3191
3259
  billing_period: A(
3192
- ((z = f.value) == null ? void 0 : z.billing_period) ?? { type: "MONTH", value: 1 },
3260
+ ((k = _.value) == null ? void 0 : k.billing_period) ?? { type: "MONTH", value: 1 },
3193
3261
  { short: !0, singular: !0, hideValueForExactPeriods: !0 }
3194
3262
  ),
3195
3263
  // @ts-expect-error formatjs does not support this type yet
3196
- start_date: new Date(Ae.value)
3264
+ start_date: new Date(Pe.value)
3197
3265
  }
3198
3266
  ) : y(
3199
3267
  {
@@ -3202,21 +3270,21 @@ const rn = {
3202
3270
  description: "The agreement for the subscription"
3203
3271
  },
3204
3272
  {
3205
- subscription_amount: (j = f.value) != null && j.tax_summary.total_amount ? be((q = f.value) == null ? void 0 : q.tax_summary.total_amount) : "",
3273
+ subscription_amount: (z = _.value) != null && z.tax_summary.total_amount ? Ie((X = _.value) == null ? void 0 : X.tax_summary.total_amount) : "",
3206
3274
  billing_period: A(
3207
- ((Y = f.value) == null ? void 0 : Y.billing_period) ?? { type: "MONTH", value: 1 },
3275
+ ((Q = _.value) == null ? void 0 : Q.billing_period) ?? { type: "MONTH", value: 1 },
3208
3276
  { short: !0, singular: !0, hideValueForExactPeriods: !0 }
3209
3277
  ),
3210
3278
  // @ts-expect-error formatjs does not support this type yet
3211
- start_date: new Date(Ae.value)
3279
+ start_date: new Date(Pe.value)
3212
3280
  }
3213
3281
  );
3214
- }), Ee = b(() => {
3215
- var z;
3216
- if (!f.value)
3282
+ }), xe = b(() => {
3283
+ var k;
3284
+ if (!_.value)
3217
3285
  return;
3218
- const L = hi({
3219
- subscription: T.value,
3286
+ const D = Ai({
3287
+ subscription: C.value,
3220
3288
  fallback: y({
3221
3289
  defaultMessage: "Subscription",
3222
3290
  description: "The fallback name for when no subscription name can be determined",
@@ -3224,55 +3292,55 @@ const rn = {
3224
3292
  })
3225
3293
  });
3226
3294
  return {
3227
- description: L,
3295
+ description: D,
3228
3296
  managementURL: "https://www.solvimon.com/account/billing",
3229
- agreement: Se.value,
3230
- ...d.value && h.value && {
3297
+ agreement: Oe.value,
3298
+ ...m.value && h.value && {
3231
3299
  trial: {
3232
3300
  label: y({
3233
3301
  defaultMessage: "Trial",
3234
3302
  id: "checkout.trial.label",
3235
3303
  description: "The label of the trial"
3236
3304
  }),
3237
- amount: d.value.tax_summary.total_amount,
3238
- startDate: Ge.value ? new Date(Ge.value) : void 0,
3239
- endDate: it.value ? new Date(it.value) : void 0
3305
+ amount: m.value.tax_summary.total_amount,
3306
+ startDate: Ye.value ? new Date(Ye.value) : void 0,
3307
+ endDate: ot.value ? new Date(ot.value) : void 0
3240
3308
  }
3241
3309
  },
3242
3310
  regular: {
3243
- label: L,
3244
- amount: f.value.tax_summary.total_amount,
3245
- startDate: Ae.value ? new Date(Ae.value) : void 0,
3246
- interval: ((z = T.value) == null ? void 0 : z.billing_period) ?? { type: "MONTH", value: 1 }
3311
+ label: D,
3312
+ amount: _.value.tax_summary.total_amount,
3313
+ startDate: Pe.value ? new Date(Pe.value) : void 0,
3314
+ interval: ((k = C.value) == null ? void 0 : k.billing_period) ?? { type: "MONTH", value: 1 }
3247
3315
  }
3248
3316
  };
3249
- }), ke = (L) => Ve(L), de = (L) => {
3250
- const { country: z, ...j } = L;
3251
- v.updateInitialState({
3252
- ...j,
3253
- ...z && ke(z) ? { country: z } : {}
3317
+ }), le = (D) => Ge(D), Yt = (D) => {
3318
+ const { country: k, ...z } = D;
3319
+ u.updateInitialState({
3320
+ ...z,
3321
+ ...k && le(k) ? { country: k } : {}
3254
3322
  });
3255
- }, Ft = b(() => !(P && N)), Ge = b(() => {
3256
- var j, q, Y;
3257
- const L = (q = (j = d.value) == null ? void 0 : j.periods) == null ? void 0 : q[0], z = (Y = Ye.value) == null ? void 0 : Y.trialStartDate;
3258
- return L != null && L.start_at ? new Date(L.start_at) : z;
3259
- }), Ye = b(() => bi(T.value)), it = b(() => {
3260
- var j, q, Y;
3261
- const L = (q = (j = d.value) == null ? void 0 : j.periods) == null ? void 0 : q[0], z = (Y = Ye.value) == null ? void 0 : Y.trialEndDate;
3262
- return L != null && L.end_at ? new Date(L.end_at) : z;
3263
- }), Ae = b(() => {
3264
- var j, q, Y;
3265
- const L = (q = (j = f.value) == null ? void 0 : j.periods) == null ? void 0 : q[0], z = (Y = Ye.value) == null ? void 0 : Y.subscriptionStartDate;
3266
- return L != null && L.start_at ? new Date(L.start_at) : z;
3267
- }), Vt = b(() => !!(v.form.value.seatsValues && v.form.value.seatsValues.length > 0 || T.value && _o(T.value) || T.value && Mo(T.value))), Ce = V(null), {
3268
- applyPromotionCode: ot,
3269
- removePromotionCode: Gt,
3270
- isPromotionCodePending: Yt,
3271
- promotionCodeErrorMessage: Ke
3272
- } = Do({
3273
- checkoutForm: v,
3274
- updateInvoicePreviewOnBillingInformationChange: ie,
3275
- formatErrorMessage: ({ action: L }) => y(L === "apply" ? {
3323
+ }, Kt = b(() => !(P && T)), Ye = b(() => {
3324
+ var z, X, Q;
3325
+ const D = (X = (z = m.value) == null ? void 0 : z.periods) == null ? void 0 : X[0], k = (Q = Ke.value) == null ? void 0 : Q.trialStartDate;
3326
+ return D != null && D.start_at ? new Date(D.start_at) : k;
3327
+ }), Ke = b(() => Pi(C.value)), ot = b(() => {
3328
+ var z, X, Q;
3329
+ const D = (X = (z = m.value) == null ? void 0 : z.periods) == null ? void 0 : X[0], k = (Q = Ke.value) == null ? void 0 : Q.trialEndDate;
3330
+ return D != null && D.end_at ? new Date(D.end_at) : k;
3331
+ }), Pe = b(() => {
3332
+ var z, X, Q;
3333
+ const D = (X = (z = _.value) == null ? void 0 : z.periods) == null ? void 0 : X[0], k = (Q = Ke.value) == null ? void 0 : Q.subscriptionStartDate;
3334
+ return D != null && D.start_at ? new Date(D.start_at) : k;
3335
+ }), Qt = b(() => !!(u.form.value.seatsValues && u.form.value.seatsValues.length > 0 || u.form.value.unitsValues && u.form.value.unitsValues.length > 0 || C.value && ho(C.value) || C.value && bo(C.value))), Le = F(null), {
3336
+ applyPromotionCode: nt,
3337
+ removePromotionCode: Ht,
3338
+ isPromotionCodePending: Zt,
3339
+ promotionCodeErrorMessage: Qe
3340
+ } = xo({
3341
+ checkoutForm: u,
3342
+ updateInvoicePreviewOnBillingInformationChange: Y,
3343
+ formatErrorMessage: ({ action: D }) => y(D === "apply" ? {
3276
3344
  defaultMessage: "Promotion code could not be applied. Please try again.",
3277
3345
  id: "checkout.promotion_code.apply_failed",
3278
3346
  description: "Error message when applying a promotion code in checkout failed"
@@ -3282,66 +3350,66 @@ const rn = {
3282
3350
  description: "Error message when removing a promotion code in checkout failed"
3283
3351
  }),
3284
3352
  onInvalidPromotionCode: () => {
3285
- Ce.value = null;
3353
+ Le.value = null;
3286
3354
  },
3287
3355
  onApplyError: () => {
3288
- Ce.value = null;
3356
+ Le.value = null;
3289
3357
  }
3290
3358
  });
3291
- Eo({
3292
- subscription: T,
3293
- promotionCode: (gt = a.configuration) == null ? void 0 : gt.couponCode,
3294
- appliedPromotionCode: Ce,
3295
- applyPromotionCode: ot
3359
+ wo({
3360
+ subscription: C,
3361
+ promotionCode: (yt = a.configuration) == null ? void 0 : yt.couponCode,
3362
+ appliedPromotionCode: Le,
3363
+ applyPromotionCode: nt
3296
3364
  });
3297
- const nt = () => {
3298
- x && Pi(x);
3299
- }, Kt = b(
3365
+ const at = () => {
3366
+ L && Ni(L);
3367
+ }, Xt = b(
3300
3368
  () => {
3301
- var L;
3302
- return !((L = a.configuration) != null && L.onPaymentSuccess) && !!x;
3369
+ var D;
3370
+ return !((D = a.configuration) != null && D.onPaymentSuccess) && !!L;
3303
3371
  }
3304
- ), Qt = () => {
3305
- var L;
3306
- if (O.value = !0, Ke.value = null, (L = a.configuration) != null && L.onPaymentSuccess) {
3372
+ ), Wt = () => {
3373
+ var D;
3374
+ if (R.value = !0, Qe.value = null, (D = a.configuration) != null && D.onPaymentSuccess) {
3307
3375
  a.configuration.onPaymentSuccess();
3308
3376
  return;
3309
3377
  }
3310
- if (x) {
3311
- nt();
3378
+ if (L) {
3379
+ at();
3312
3380
  return;
3313
3381
  }
3314
- }, at = (L) => {
3315
- T.value && (T.value = {
3316
- ...T.value,
3317
- billing_period: L
3318
- }, $());
3382
+ }, rt = (D) => {
3383
+ C.value && (C.value = {
3384
+ ...C.value,
3385
+ billing_period: D
3386
+ }, K());
3319
3387
  };
3320
- return Te(() => {
3321
- l("ready");
3322
- }), (L, z) => M.value ? (g(), k(Qo, {
3388
+ return ke(() => {
3389
+ r("ready");
3390
+ }), (D, k) => g.value ? (v(), O(Wo, {
3323
3391
  key: 0,
3324
3392
  class: "sv-checkout sv-root sv-screen sv-checkout--error"
3325
- })) : (g(), k(t(Gi), {
3393
+ })) : (v(), O(t(Ki), {
3326
3394
  key: 1,
3327
- class: he(["sv-checkout sv-root sv-screen", { "sv-checkout--paid": t(O) }])
3395
+ class: be(["sv-checkout sv-root sv-screen", { "sv-checkout--paid": t(R) }])
3328
3396
  }, {
3329
3397
  header: I(() => [
3330
- w("div", Ln, [
3331
- D(ve, { class: "min-h-[52px] w-96" }, {
3398
+ w("div", kn, [
3399
+ E(fe, { class: "min-h-[52px] w-96" }, {
3332
3400
  default: I(() => {
3333
- var j, q, Y;
3401
+ var z, X, Q;
3334
3402
  return [
3335
- t(f) && t(T) && Ae.value ? (g(), k(Vo, {
3403
+ t(_) && t(C) && Pe.value ? (v(), O(Qo, {
3336
3404
  key: 0,
3337
3405
  class: "sv-checkout__title",
3338
- "trial-start-date": Ge.value,
3406
+ "trial-start-date": Ye.value,
3339
3407
  "trial-period": t(h),
3340
- "subscription-start-date": Ae.value,
3341
- "subscription-name": ((j = t(T)) == null ? void 0 : j.name) ?? "",
3342
- amount: (q = t(f)) == null ? void 0 : q.invoice_amount_including_tax,
3343
- "billing-period": (Y = t(T)) == null ? void 0 : Y.billing_period,
3344
- "country-code": t(v).form.value.country
3408
+ "subscription-start-date": Pe.value,
3409
+ "subscription-name": ((z = t(C)) == null ? void 0 : z.name) ?? "",
3410
+ amount: (X = t(_)) == null ? void 0 : X.invoice_amount_including_tax,
3411
+ "billing-period": (Q = t(C)) == null ? void 0 : Q.billing_period,
3412
+ "country-code": t(u).form.value.country
3345
3413
  }, null, 8, ["trial-start-date", "trial-period", "subscription-start-date", "subscription-name", "amount", "billing-period", "country-code"])) : B("", !0)
3346
3414
  ];
3347
3415
  }),
@@ -3350,79 +3418,82 @@ const rn = {
3350
3418
  ])
3351
3419
  ]),
3352
3420
  content: I(() => {
3353
- var j, q;
3421
+ var z, X, Q;
3354
3422
  return [
3355
- t(O) ? (g(), k(Ho, {
3423
+ t(R) ? (v(), O(qo, {
3356
3424
  key: 0,
3357
3425
  class: "sv-checkout__completed-payment",
3358
- onContinueToMerchant: nt
3359
- })) : (g(), Z(fe, { key: 1 }, [
3360
- t(T) && t(C) ? (g(), k(Ct, {
3426
+ onContinueToMerchant: at
3427
+ })) : (v(), W(_e, { key: 1 }, [
3428
+ t(C) && t(x) ? (v(), O(xt, {
3361
3429
  key: 0,
3362
3430
  class: "sv-checkout__mobile-order-summary",
3363
- subscription: t(T),
3364
- invoice: t(f),
3365
- "invoice-preview-by-billing-period": t(r),
3366
- "trial-invoice": t(d),
3367
- "enabled-pricing-ids": re.value,
3431
+ subscription: t(C),
3432
+ invoice: t(_),
3433
+ "invoice-preview-by-billing-period": t(l),
3434
+ "trial-invoice": t(m),
3435
+ "enabled-pricing-ids": oe.value,
3368
3436
  "trial-period": t(h),
3369
- avatar: (j = s.value) == null ? void 0 : j.avatar,
3370
- "is-paid": t(O),
3371
- "is-usage-based": W.value,
3372
- "is-preview-and-payment-methods-pending": t(Q) || t(te),
3373
- "country-code": t(v).form.value.country,
3437
+ avatar: (z = s.value) == null ? void 0 : z.avatar,
3438
+ "is-paid": t(R),
3439
+ "is-usage-based": q.value,
3440
+ "is-preview-and-payment-methods-pending": t(J) || t(te),
3441
+ "country-code": t(u).form.value.country,
3374
3442
  collapsible: "collapsed",
3375
3443
  variant: "products-inline",
3376
- onBillingPeriodChange: at
3444
+ onBillingPeriodChange: rt
3377
3445
  }, 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"])) : B("", !0),
3378
- Vt.value && t(T) ? (g(), k(t(n), {
3446
+ Qt.value && t(C) ? (v(), O(t(n), {
3379
3447
  key: 1,
3380
- "seats-values": Ne.value,
3381
- "onUpdate:seatsValues": z[0] || (z[0] = (Y) => Ne.value = Y),
3382
- "enabled-pricing-ids": re.value,
3383
- "onUpdate:enabledPricingIds": z[1] || (z[1] = (Y) => re.value = Y),
3448
+ "seats-values": Ee.value,
3449
+ "onUpdate:seatsValues": k[0] || (k[0] = (me) => Ee.value = me),
3450
+ "units-values": Ce.value,
3451
+ "onUpdate:unitsValues": k[1] || (k[1] = (me) => Ce.value = me),
3452
+ "enabled-pricing-ids": oe.value,
3453
+ "onUpdate:enabledPricingIds": k[2] || (k[2] = (me) => oe.value = me),
3384
3454
  class: "sv-checkout__plan-customization",
3385
- subscription: t(T),
3386
- "initial-seats-values": (q = t(v).initialState) == null ? void 0 : q.value.seatsValues,
3387
- "billing-period": t(T).billing_period,
3388
- currency: ue.value
3389
- }, null, 8, ["seats-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "billing-period", "currency"])) : B("", !0),
3390
- t(v).form.value.country && t(H) && Ee.value ? (g(), k(hn, {
3455
+ subscription: t(C),
3456
+ "initial-seats-values": (X = t(u).initialState) == null ? void 0 : X.value.seatsValues,
3457
+ "initial-units-values": (Q = t(u).initialState) == null ? void 0 : Q.value.unitsValues,
3458
+ "billing-period": t(C).billing_period,
3459
+ currency: de.value
3460
+ }, null, 8, ["seats-values", "units-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "initial-units-values", "billing-period", "currency"])) : B("", !0),
3461
+ t(u).form.value.country && t(H) && xe.value ? (v(), O(Pn, {
3391
3462
  key: 2,
3392
3463
  class: "sv-checkout__express-payment-methods",
3393
3464
  amount: t(H),
3394
- "country-code": t(v).form.value.country,
3395
- locale: t(_),
3396
- "payment-methods-options-response": t(G) ?? [],
3397
- "billing-information": Ee.value,
3398
- "on-billing-information-change": t(ie),
3399
- onUpdateBillingInformation: de
3465
+ "country-code": t(u).form.value.country,
3466
+ locale: t(M),
3467
+ "payment-methods-options-response": t($) ?? [],
3468
+ "billing-information": xe.value,
3469
+ "on-billing-information-change": t(Y),
3470
+ onUpdateBillingInformation: Yt
3400
3471
  }, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change"])) : B("", !0),
3401
- D($o, {
3402
- modelValue: t(v).form.value,
3403
- "onUpdate:modelValue": z[2] || (z[2] = (Y) => t(v).form.value = Y),
3472
+ E(Fo, {
3473
+ modelValue: t(u).form.value,
3474
+ "onUpdate:modelValue": k[3] || (k[3] = (me) => t(u).form.value = me),
3404
3475
  class: "sv-checkout__customer-form",
3405
- validation: t(v).validation,
3476
+ validation: t(u).validation,
3406
3477
  "read-only-email": t(P),
3407
- "show-customer-info-on-top": Ft.value || t(O),
3408
- "is-billing-information-mandatory": ne.value,
3409
- "get-is-field-required": t(v).getIsFieldRequired,
3410
- "read-only": t(O)
3478
+ "show-customer-info-on-top": Kt.value || t(R),
3479
+ "is-billing-information-mandatory": ee.value,
3480
+ "get-is-field-required": t(u).getIsFieldRequired,
3481
+ "read-only": t(R)
3411
3482
  }, null, 8, ["modelValue", "validation", "read-only-email", "show-customer-info-on-top", "is-billing-information-mandatory", "get-is-field-required", "read-only"]),
3412
- w("div", wn, [
3413
- D(ve, {
3483
+ w("div", On, [
3484
+ E(fe, {
3414
3485
  variant: "section",
3415
3486
  class: "min-h-[130px]"
3416
3487
  }, {
3417
3488
  default: I(() => [
3418
- !t(Q) || t(Q) && t(G).length > 0 ? (g(), Z("div", Tn, [
3419
- D(t(le), {
3489
+ !t(J) || t(J) && t($).length > 0 ? (v(), W("div", zn, [
3490
+ E(t(se), {
3420
3491
  variant: "heading-3",
3421
3492
  tag: "h2",
3422
3493
  class: "sv-checkout__payment-methods-title mb-2"
3423
3494
  }, {
3424
3495
  default: I(() => [
3425
- K(F(t(y)({
3496
+ G(V(t(y)({
3426
3497
  defaultMessage: "Payment method",
3427
3498
  id: "checkout.payment_method_block.title",
3428
3499
  description: "The title of the payment method block in the checkout form"
@@ -3430,35 +3501,35 @@ const rn = {
3430
3501
  ]),
3431
3502
  _: 1
3432
3503
  }),
3433
- t(v).form.value.country ? t(R) ? (g(), k(He, {
3504
+ t(u).form.value.country ? t(j) ? (v(), O(Ze, {
3434
3505
  key: 1,
3435
3506
  class: "sv-checkout__payment-methods-error",
3436
3507
  icon: "error"
3437
3508
  }, {
3438
3509
  title: I(() => [
3439
- K(F(t(y)({
3510
+ G(V(t(y)({
3440
3511
  defaultMessage: "Could not load payment methods",
3441
3512
  id: "checkout.payment_method_block.load_failed_title",
3442
3513
  description: "The title shown when the payment methods failed to load"
3443
3514
  })), 1)
3444
3515
  ]),
3445
3516
  message: I(() => [
3446
- K(F(t(y)({
3517
+ G(V(t(y)({
3447
3518
  defaultMessage: "Check your connection and try again.",
3448
3519
  id: "checkout.payment_method_block.load_failed_message",
3449
3520
  description: "The message shown when the payment methods failed to load"
3450
3521
  })), 1)
3451
3522
  ]),
3452
3523
  action: I(() => [
3453
- D(t(Ie), {
3524
+ E(t(Ae), {
3454
3525
  type: "button",
3455
3526
  intent: "secondary",
3456
3527
  size: "sm",
3457
3528
  class: "sv-action sv-action--secondary sv-checkout__payment-methods-retry",
3458
- onClick: t(u)
3529
+ onClick: t(p)
3459
3530
  }, {
3460
3531
  default: I(() => [
3461
- K(F(t(y)({
3532
+ G(V(t(y)({
3462
3533
  defaultMessage: "Try again",
3463
3534
  id: "checkout.payment_method_block.load_failed_retry_button.label",
3464
3535
  description: "The label of the button that loads the payment methods again"
@@ -3468,54 +3539,54 @@ const rn = {
3468
3539
  }, 8, ["onClick"])
3469
3540
  ]),
3470
3541
  _: 1
3471
- })) : t(G).length === 0 ? (g(), k(He, {
3542
+ })) : t($).length === 0 ? (v(), O(Ze, {
3472
3543
  key: 2,
3473
3544
  class: "sv-checkout__payment-methods-empty",
3474
3545
  icon: "credit_card_off"
3475
3546
  }, {
3476
3547
  title: I(() => [
3477
- K(F(t(y)({
3548
+ G(V(t(y)({
3478
3549
  defaultMessage: "No payment methods available",
3479
3550
  id: "checkout.payment_method_block.no_payment_methods_available_title",
3480
3551
  description: "The title shown when there are no available payment methods"
3481
3552
  })), 1)
3482
3553
  ]),
3483
3554
  _: 1
3484
- })) : t(H) && t(v).form.value.country ? (g(), Z("div", Sn, [
3555
+ })) : t(H) && t(u).form.value.country ? (v(), W("div", jn, [
3485
3556
  w("div", {
3486
- class: he({ "pointer-events-none opacity-60": ee.value })
3557
+ class: be({ "pointer-events-none opacity-60": Z.value })
3487
3558
  }, [
3488
- D(t(o), {
3559
+ E(t(o), {
3489
3560
  ref_key: "paymentIntegrationFormRef",
3490
- ref: p,
3491
- "country-code": t(v).form.value.country,
3561
+ ref: d,
3562
+ "country-code": t(u).form.value.country,
3492
3563
  context: t(S),
3493
3564
  amount: t(H),
3494
- email: t(v).form.value.email,
3565
+ email: t(u).form.value.email,
3495
3566
  variant: "AUTHORIZE",
3496
- "payment-method-options": t(G) ?? [],
3567
+ "payment-method-options": t($) ?? [],
3497
3568
  "validate-on-submit": U,
3498
- "redirects-on-success": Kt.value,
3569
+ "redirects-on-success": Xt.value,
3499
3570
  "force-store-payment-method": "",
3500
- onPaymentSuccess: Qt,
3501
- onPaymentFailed: ae,
3502
- onReady: z[3] || (z[3] = (Y) => l("ready"))
3571
+ onPaymentSuccess: Wt,
3572
+ onPaymentFailed: ne,
3573
+ onReady: k[4] || (k[4] = (me) => r("ready"))
3503
3574
  }, null, 8, ["country-code", "context", "amount", "email", "payment-method-options", "redirects-on-success"])
3504
3575
  ], 2)
3505
- ])) : B("", !0) : (g(), k(He, {
3576
+ ])) : B("", !0) : (v(), O(Ze, {
3506
3577
  key: 0,
3507
3578
  class: "sv-checkout__payment-methods-empty",
3508
3579
  icon: "captive_portal"
3509
3580
  }, {
3510
3581
  title: I(() => [
3511
- K(F(t(y)({
3582
+ G(V(t(y)({
3512
3583
  defaultMessage: "Select your billing country",
3513
3584
  id: "checkout.payment_method_block.no_country_selected_title",
3514
3585
  description: "The title shown when no country is selected"
3515
3586
  })), 1)
3516
3587
  ]),
3517
3588
  message: I(() => [
3518
- K(F(t(y)({
3589
+ G(V(t(y)({
3519
3590
  defaultMessage: "Payment methods will be shown after you select the billing country.",
3520
3591
  id: "checkout.payment_method_block.no_country_selected_message",
3521
3592
  description: "The message shown when no country is selected"
@@ -3532,61 +3603,61 @@ const rn = {
3532
3603
  ];
3533
3604
  }),
3534
3605
  aside: I(() => [
3535
- w("div", kn, [
3536
- D(ve, {
3606
+ w("div", Rn, [
3607
+ E(fe, {
3537
3608
  variant: "section",
3538
3609
  class: "min-h-[220px]"
3539
3610
  }, {
3540
3611
  default: I(() => {
3541
- var j;
3612
+ var z;
3542
3613
  return [
3543
- t(T) && t(f) ? (g(), k(Ct, {
3614
+ t(C) && t(_) ? (v(), O(xt, {
3544
3615
  key: 0,
3545
- subscription: t(T),
3546
- invoice: t(f),
3547
- "invoice-preview-by-billing-period": t(r),
3548
- "trial-invoice": t(d),
3549
- "enabled-pricing-ids": re.value,
3616
+ subscription: t(C),
3617
+ invoice: t(_),
3618
+ "invoice-preview-by-billing-period": t(l),
3619
+ "trial-invoice": t(m),
3620
+ "enabled-pricing-ids": oe.value,
3550
3621
  "trial-period": t(h),
3551
- "country-code": t(v).form.value.country,
3552
- avatar: (j = s.value) == null ? void 0 : j.avatar,
3553
- "is-paid": t(O),
3554
- "is-usage-based": W.value,
3555
- "is-preview-and-payment-methods-pending": t(Q) || t(te),
3556
- onBillingPeriodChange: at
3622
+ "country-code": t(u).form.value.country,
3623
+ avatar: (z = s.value) == null ? void 0 : z.avatar,
3624
+ "is-paid": t(R),
3625
+ "is-usage-based": q.value,
3626
+ "is-preview-and-payment-methods-pending": t(J) || t(te),
3627
+ onBillingPeriodChange: rt
3557
3628
  }, 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"])) : B("", !0)
3558
3629
  ];
3559
3630
  }),
3560
3631
  _: 1
3561
3632
  })
3562
3633
  ]),
3563
- t(O) ? B("", !0) : (g(), Z(fe, { key: 0 }, [
3564
- D(xn, {
3634
+ t(R) ? B("", !0) : (v(), W(_e, { key: 0 }, [
3635
+ E(Sn, {
3565
3636
  class: "sv-checkout__promotion-code",
3566
- "promotion-code": Ce.value,
3567
- "onUpdate:appliedCode": z[4] || (z[4] = (j) => Ce.value = j),
3568
- onRemove: t(Gt),
3569
- onApply: t(ot)
3637
+ "promotion-code": Le.value,
3638
+ "onUpdate:appliedCode": k[5] || (k[5] = (z) => Le.value = z),
3639
+ onRemove: t(Ht),
3640
+ onApply: t(nt)
3570
3641
  }, null, 8, ["promotion-code", "onRemove", "onApply"]),
3571
- t(Ke) ? (g(), k(t(oi), {
3642
+ t(Qe) ? (v(), O(t(ri), {
3572
3643
  key: 0,
3573
3644
  class: "sv-checkout__promotion-error mt-2",
3574
- title: t(Ke)
3645
+ title: t(Qe)
3575
3646
  }, null, 8, ["title"])) : B("", !0),
3576
- w("div", On, [
3577
- D(ve, { class: "sv-checkout__submit-skeleton min-h-[44px]" }, {
3647
+ w("div", Bn, [
3648
+ E(fe, { class: "sv-checkout__submit-skeleton min-h-[44px]" }, {
3578
3649
  default: I(() => [
3579
- t(f) ? (g(), k(t(Ie), {
3650
+ t(_) ? (v(), O(t(Ae), {
3580
3651
  key: 0,
3581
3652
  type: "button",
3582
3653
  size: "lg",
3583
3654
  class: "sv-action sv-action--primary sv-action--full-width sv-checkout__submit w-full",
3584
- disabled: t(Yt) || t(G).length === 0 || ee.value,
3585
- loading: ee.value,
3586
- onClick: oe
3655
+ disabled: t(Zt) || t($).length === 0 || Z.value,
3656
+ loading: Z.value,
3657
+ onClick: re
3587
3658
  }, {
3588
3659
  default: I(() => [
3589
- K(F(X.value ? t(y)({
3660
+ G(V(ie.value ? t(y)({
3590
3661
  defaultMessage: "Start trial",
3591
3662
  id: "checkout.pay_and_subscribe_button_trial.label",
3592
3663
  description: "The label of the start trial button in the checkout form"
@@ -3601,14 +3672,14 @@ const rn = {
3601
3672
  ]),
3602
3673
  _: 1
3603
3674
  }),
3604
- D(Bi, { "payment-method-options": t(G) }, null, 8, ["payment-method-options"])
3675
+ E(Vi, { "payment-method-options": t($) }, null, 8, ["payment-method-options"])
3605
3676
  ])
3606
3677
  ], 64))
3607
3678
  ]),
3608
3679
  _: 1
3609
3680
  }, 8, ["class"]));
3610
3681
  }
3611
- }), jn = /* @__PURE__ */ se({
3682
+ }), Un = /* @__PURE__ */ ce({
3612
3683
  __name: "Checkout.entry",
3613
3684
  props: {
3614
3685
  environment: { type: String },
@@ -3630,30 +3701,30 @@ const rn = {
3630
3701
  emits: ["error", "ready"],
3631
3702
  setup(e, { emit: i }) {
3632
3703
  var s;
3633
- const o = Ki("checkout"), n = e, a = i, l = ((s = n.configuration) == null ? void 0 : s.couponCode) ?? xe("coupon_code") ?? void 0;
3634
- return (M, p) => (g(), k(t(ti), {
3635
- entry: M.$props,
3704
+ const o = Hi("checkout"), n = e, a = i, r = ((s = n.configuration) == null ? void 0 : s.couponCode) ?? we("coupon_code") ?? void 0;
3705
+ return (g, d) => (v(), O(t(ni), {
3706
+ entry: g.$props,
3636
3707
  "component-name": t(o),
3637
3708
  "allowed-portal-types": ["INIT_PRICING_PLAN_SUBSCRIPTION"],
3638
- onError: p[1] || (p[1] = (E) => M.$emit("error", E))
3709
+ onError: d[1] || (d[1] = (N) => g.$emit("error", N))
3639
3710
  }, {
3640
3711
  default: I(() => {
3641
- var E, y, _, A, c;
3712
+ var N, y, M, A, c;
3642
3713
  return [
3643
- D(zn, {
3714
+ E($n, {
3644
3715
  configuration: {
3645
- avatar: (y = (E = e.branding) == null ? void 0 : E.emblem) == null ? void 0 : y.public_url,
3646
- email: (_ = e.configuration) == null ? void 0 : _.email,
3716
+ avatar: (y = (N = e.branding) == null ? void 0 : N.emblem) == null ? void 0 : y.public_url,
3717
+ email: (M = e.configuration) == null ? void 0 : M.email,
3647
3718
  countryCode: (A = e.configuration) == null ? void 0 : A.countryCode,
3648
3719
  enabledPricingIds: (c = e.configuration) == null ? void 0 : c.enabledPricingIds,
3649
- couponCode: t(l)
3720
+ couponCode: t(r)
3650
3721
  },
3651
- onReady: p[0] || (p[0] = (C) => a("ready"))
3652
- }, qe({ _: 2 }, [
3653
- M.$slots["terms-and-conditions"] ? {
3722
+ onReady: d[0] || (d[0] = (x) => a("ready"))
3723
+ }, Je({ _: 2 }, [
3724
+ g.$slots["terms-and-conditions"] ? {
3654
3725
  name: "terms-and-conditions",
3655
3726
  fn: I(() => [
3656
- Xe(M.$slots, "terms-and-conditions")
3727
+ We(g.$slots, "terms-and-conditions")
3657
3728
  ]),
3658
3729
  key: "0"
3659
3730
  } : void 0
@@ -3663,12 +3734,14 @@ const rn = {
3663
3734
  _: 3
3664
3735
  }, 8, ["entry", "component-name"]));
3665
3736
  }
3666
- }), { define: Na } = ii(
3667
- jn,
3737
+ }), { define: wa } = ai(
3738
+ Un,
3668
3739
  "checkout"
3669
3740
  );
3670
3741
  export {
3671
- ho as F,
3672
- Jo as _,
3673
- Na as d
3742
+ Io as F,
3743
+ nn as _,
3744
+ Do as a,
3745
+ wa as d,
3746
+ La as g
3674
3747
  };