@solvimon/solvimon-web 0.1.0-alpha.31 → 0.1.0-alpha.32

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 (145) hide show
  1. package/dist/{AddPaymentMethodModal-Bs_aOOCX.mjs → AddPaymentMethodModal-Cx203VXo.mjs} +4 -4
  2. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BMHhLZnu.mjs} +2 -2
  3. package/dist/{Alert.vue.es-xhsk_7Gn.mjs → Alert.vue.es-DHJpiSdR.mjs} +1 -1
  4. package/dist/{Amount.vue.es-DPqHB8Xd.mjs → Amount.vue.es-CofcgmXt.mjs} +1 -1
  5. package/dist/{AuthProvider.handle-CUO6Qj-5.mjs → AuthProvider.handle-BpFblzFx.mjs} +1 -1
  6. package/dist/{Avatar.vue.es-DrbtUiLO.mjs → Avatar.vue.es-CJdXXOiG.mjs} +1 -1
  7. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BD84aBiU.mjs} +4 -4
  8. package/dist/{BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs → BillingInformationForm.vue_vue_type_script_setup_true_lang-F5OVG0kO.mjs} +7 -7
  9. package/dist/{BillingInformationModal-crgTNGf4.mjs → BillingInformationModal-Do3Fuu8A.mjs} +3 -3
  10. package/dist/{Button.vue.es-BHbanjR0.mjs → Button.vue.es-CW7XfMBF.mjs} +1 -1
  11. package/dist/{ChargeOnDemandModal-DYiFtw1n.mjs → ChargeOnDemandModal-B4ShPKLS.mjs} +17 -17
  12. package/dist/{Chip.vue.es-Dc6-PjEn.mjs → Chip.vue.es-CYwWHyAT.mjs} +2 -2
  13. package/dist/{taxId.es-Zu2Ff1gL.mjs → CompanyPurchaseToggle.vue_vue_type_script_setup_true_lang-CVXHCSPb.mjs} +226 -226
  14. package/dist/{Comparators.vue.es-DQBI3f7m.mjs → Comparators.vue.es-DYrKlE8t.mjs} +1 -1
  15. package/dist/{ContextMenu.vue.es-CvX6O2IM.mjs → ContextMenu.vue.es-EXTx0NEt.mjs} +4 -4
  16. package/dist/{CustomerBillingInformation.vue.es-DQWt9osz.mjs → CustomerBillingInformation.vue.es-CSKG6V3T.mjs} +2 -2
  17. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZZuAHIE.mjs} +5 -5
  18. package/dist/{CustomerShippingAddresses-C0c-4D2W.mjs → CustomerShippingAddresses-Bdy4XWjE.mjs} +9 -9
  19. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BEKwWob_.mjs} +1361 -1065
  20. package/dist/{DividerText.vue.es-ChN6fnrH.mjs → DividerText.vue.es-Dq0JzI8C.mjs} +1 -1
  21. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs} +3 -3
  22. package/dist/{ErrorNotification.vue.es-CWIVt5q9.mjs → ErrorNotification.vue.es-Cw7fqCg1.mjs} +2 -2
  23. package/dist/{FormMessage.vue.es-CQ64C8dt.mjs → FormMessage.vue.es-MrzQoSae.mjs} +1 -1
  24. package/dist/{IconButton.vue.es-BXzwMvVk.mjs → IconButton.vue.es-CpQbFw0x.mjs} +2 -2
  25. package/dist/{IconTitle.vue.es-GyanM-JQ.mjs → IconTitle.vue.es-CcOIFjbE.mjs} +3 -3
  26. package/dist/{Input.vue.es-CxiwRZYs.mjs → Input.vue.es-Cd55vQri.mjs} +4 -4
  27. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CqkGCbvg.mjs} +2 -2
  28. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-BUu5M_gx.mjs} +4 -4
  29. package/dist/{InvoicePreview.vue.es-BvnikfEH.mjs → InvoicePreview.vue.es-DHh5wruk.mjs} +5 -5
  30. package/dist/{InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs → InvoicePricingClauseChip.vue.es-ZSOBp1se.mjs} +4 -4
  31. package/dist/{Label.vue.es-3ACRco55.mjs → Label.vue.es-CB6G8Krh.mjs} +3 -3
  32. package/dist/{LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs → LoadFailedNotice.vue_vue_type_script_setup_true_lang-BZCtO2Er.mjs} +2 -2
  33. package/dist/{Modal.vue.es-CDjfZDDx.mjs → Modal.vue.es-CJFTVFSZ.mjs} +5 -5
  34. package/dist/{OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs → OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-D0pwpqIC.mjs} +8 -8
  35. package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-D08Qpgb0.mjs} +2 -2
  36. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-dl52PYcq.mjs} +4 -4
  37. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D0priVnA.mjs} +3 -3
  38. package/dist/{PaymentHistoryBlock-HUazLER6.mjs → PaymentHistoryBlock-BSXlneqM.mjs} +1 -1
  39. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CXy0XGpn.mjs} +5 -5
  40. package/dist/{PaymentIntegrationForm-ZnIjTyda.mjs → PaymentIntegrationForm-Diua0GGJ.mjs} +1 -1
  41. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CLlm_Q2j.mjs} +3 -3
  42. package/dist/{PaymentIntegrationFormAdyen-sbw3AoKS.mjs → PaymentIntegrationFormAdyen-D4FP0Vj5.mjs} +9 -9
  43. package/dist/{PaymentIntegrationFormStripe-4JmKEwbS.mjs → PaymentIntegrationFormStripe-vFzF_sCJ.mjs} +8 -8
  44. package/dist/{PaymentMethod.vue.es-DAabE41t.mjs → PaymentMethod.vue.es-vs6SaZOh.mjs} +197 -149
  45. package/dist/{PaymentMethodForm-MmCUSJLE.mjs → PaymentMethodForm-Buhe0aRQ.mjs} +1 -1
  46. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-RPPdBw_e.mjs} +6 -6
  47. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DprL5TR8.mjs} +7 -7
  48. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BXbevI3r.mjs} +7 -7
  49. package/dist/{PaymentMethodsModal-CjpNw4kX.mjs → PaymentMethodsModal-CnJP9UKp.mjs} +6 -6
  50. package/dist/{PlanCustomizationEditor-BDWm_z2w.mjs → PlanCustomizationEditor-KHLSEUbb.mjs} +12 -12
  51. package/dist/{PortalLinkUnverified-B7YYhv97.mjs → PortalLinkUnverified-DlZAkE93.mjs} +3 -3
  52. package/dist/{PortalNotAvailable-DIyeKrAp.mjs → PortalNotAvailable-CKIomNrm.mjs} +2 -2
  53. package/dist/{PricingGroupRangeInput.vue.es-C6J8C7JS.mjs → PricingGroupRangeInput.vue.es-oHD-IT12.mjs} +8 -8
  54. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-wCW8YZHM.mjs} +9 -9
  55. package/dist/{RadioGroupExtended.vue.es-hDmUAKIA.mjs → RadioGroupExtended.vue.es-DsShmkKZ.mjs} +4 -4
  56. package/dist/Section.vue.es-DYmEtgBj.mjs +88 -0
  57. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CANXYTzu.mjs} +2 -2
  58. package/dist/{ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs → ShippingAddressForm.vue_vue_type_script_setup_true_lang-CJp6ddhZ.mjs} +4 -4
  59. package/dist/{ShippingAddressesModal-CNXxkxnJ.mjs → ShippingAddressesModal-Gxv2KxaW.mjs} +9 -9
  60. package/dist/{StepInput.vue.es-GkrOtOVa.mjs → StepInput.vue.es-sqA-VSsn.mjs} +4 -4
  61. package/dist/{SubscriptionCancellationModal-C_xFPx1I.mjs → SubscriptionCancellationModal-DfAZ_uW6.mjs} +1 -1
  62. package/dist/{SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs → SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-BlbiDNIu.mjs} +7 -7
  63. package/dist/{SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs → SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-C1ko2xvR.mjs} +2 -2
  64. package/dist/{SubscriptionDetails.entry.ce-DuP8TtKu.mjs → SubscriptionDetails.entry.ce-CdWV-8WN.mjs} +23 -23
  65. package/dist/{SubscriptionSchedules-DosBeXD7.mjs → SubscriptionSchedules-BfdVn1XA.mjs} +1 -1
  66. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C8q8Q6h5.mjs +5413 -0
  67. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-qQ9gJOIs.mjs} +3 -3
  68. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DYWjTzPV.mjs} +9 -9
  69. package/dist/{TooltipParagraph.vue.es-4HaXi8RP.mjs → TooltipParagraph.vue.es-Bt-7LHr3.mjs} +1 -1
  70. package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-Cp_sFa52.mjs} +1 -1
  71. package/dist/{TrialChip.vue.es-CUfJ4SK3.mjs → TrialChip.vue.es-VZwQX079.mjs} +3 -3
  72. package/dist/{addonQuantity-BvoYTajN.mjs → addonQuantity-D3bGVqjL.mjs} +2 -2
  73. package/dist/{adyen-D4em6EgU.mjs → adyen-CHgq2l6n.mjs} +1 -1
  74. package/dist/components/BillingInformation/BillingInformation.mjs +5 -5
  75. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +4 -4
  76. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
  77. package/dist/components/Invoice/Invoice.mjs +1084 -1016
  78. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +4 -4
  79. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
  80. package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
  81. package/dist/components/PaymentHistory/PaymentHistory.mjs +4 -4
  82. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
  83. package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +9 -9
  84. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +5 -5
  85. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
  86. package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
  87. package/dist/{customElements-d7Bhfqi_.mjs → customElements-B8c354Nu.mjs} +376 -369
  88. package/dist/{customer-CNCSN_G5.mjs → customer-CP-Wz7JO.mjs} +1 -1
  89. package/dist/{de-DE-wZp39RC-.mjs → de-DE-C9HrzHpE.mjs} +3 -0
  90. package/dist/{de-DE-D-sV3avS.mjs → de-DE-DAQmgEy5.mjs} +75 -15
  91. package/dist/{formControl-BZQLHnOO.mjs → formControl-C18sw44K.mjs} +275 -275
  92. package/dist/{formatting.es-RclXHhKo.mjs → formatting.es-DlJEzreG.mjs} +16 -13
  93. package/dist/{fr-FR-BrNXJ7gR.mjs → fr-FR-CHR3VWvd.mjs} +3 -0
  94. package/dist/{fr-FR-BYHycSxz.mjs → fr-FR-fz51-Ubw.mjs} +76 -16
  95. package/dist/icon-sprite.svg.es-2S3rv8NW.mjs +4 -0
  96. package/dist/{index.es-BEZ2mumY.mjs → index.es-Bv55VtdE.mjs} +8 -8
  97. package/dist/index.mjs +1 -1
  98. package/dist/{invoices-CXvL8KQx.mjs → invoices-I7PghcPV.mjs} +1 -1
  99. package/dist/{it-IT-zpPyT9PH.mjs → it-IT-BpCkTMZL.mjs} +68 -8
  100. package/dist/{it-IT-Bd1qsMVU.mjs → it-IT-Dzc7DmmL.mjs} +3 -0
  101. package/dist/{nl-NL-BOr4MR7L.mjs → nl-NL-22C8OcIM.mjs} +72 -12
  102. package/dist/{nl-NL-C6Y6fqaW.mjs → nl-NL-Dut_QwsY.mjs} +3 -0
  103. package/dist/{paymentIntegrationFormLoaders-wi1vMgf_.mjs → paymentIntegrationFormLoaders-BFMAMpcA.mjs} +3 -3
  104. package/dist/{paymentMethods-CG1fcG2v.mjs → paymentMethods-aGKIi7DS.mjs} +1 -1
  105. package/dist/{paymentOutcome-D59QkGfm.mjs → paymentOutcome-Cv7hTFVu.mjs} +1 -1
  106. package/dist/{payments-Dy81gmkC.mjs → payments-BKoKpoLN.mjs} +1 -1
  107. package/dist/{preloadPaymentIntegrationForms-C_9p7Jbi.mjs → preloadPaymentIntegrationForms-Buwal_JR.mjs} +1 -1
  108. package/dist/{pricing-CBJT8C6L.mjs → pricing-Y-7ELzN-.mjs} +1 -1
  109. package/dist/{pricingItem.es-AYq_hYeD.mjs → pricingItem.es-BafitMMY.mjs} +1 -1
  110. package/dist/{pricingPlanScheduleOverrides-GON_34ep.mjs → pricingPlanScheduleOverrides-CGm_-jJq.mjs} +1 -1
  111. package/dist/screens/Checkout/Checkout.mjs +12 -12
  112. package/dist/screens/CheckoutSession/CheckoutSession.mjs +650 -644
  113. package/dist/screens/CustomerOverview/CustomerOverview.mjs +17 -17
  114. package/dist/screens/PayInvoice/PayInvoice.mjs +22 -22
  115. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +10 -10
  116. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  117. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +29 -29
  118. package/dist/{subscriptions-Bm1eu9wc.mjs → subscriptions-B7dNqi1C.mjs} +1 -1
  119. package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +3 -1
  120. package/dist/types/types/checkoutSession.d.ts +11 -1
  121. package/dist/{useActionDispatchProvider-BWna0S6N.mjs → useActionDispatchProvider-BCtk-FGU.mjs} +1 -1
  122. package/dist/{useAddressFormats-Dw7IEdxg.mjs → useAddressFormats-CtE4QaVU.mjs} +51 -50
  123. package/dist/{useCheckoutForm-BaV2j_ob.mjs → useCheckoutForm-BhXcmnUi.mjs} +1467 -1422
  124. package/dist/{useCustomer-RUtEzDOY.mjs → useCustomer-mQysxUwp.mjs} +2 -2
  125. package/dist/{useExperimentalFeature-DAKAF_a2.mjs → useExperimentalFeature-Bw6bBtay.mjs} +1 -1
  126. package/dist/{useHostEvent-pjoWJ7ZH.mjs → useHostEvent-MtRG6W2B.mjs} +1 -1
  127. package/dist/{useIncrementalLoading-B3gp58X-.mjs → useIncrementalLoading-CJSj1945.mjs} +1 -1
  128. package/dist/{useInvoiceData-Dya4mmvf.mjs → useInvoiceData-BEZIvw32.mjs} +2 -2
  129. package/dist/{useInvoicesList-Dp3c_cb3.mjs → useInvoicesList-CrXjsmei.mjs} +140 -138
  130. package/dist/{sorting.es-kM0f1VX0.mjs → useIsMounted.es-BNPhTTHE.mjs} +11 -10
  131. package/dist/{useLoadInitialData-CwySdYZM.mjs → useLoadInitialData-Bomj_1mo.mjs} +1 -1
  132. package/dist/{usePaymentMethodAvailability-B7NV0ZtX.mjs → usePaymentMethodAvailability-DR_neLeZ.mjs} +4 -4
  133. package/dist/{usePaymentMethodOptions-DDRjVvDJ.mjs → usePaymentMethodOptions-CuHoQx3K.mjs} +2 -2
  134. package/dist/{usePaymentMethods-DBGyQA_I.mjs → usePaymentMethods-BDdetXts.mjs} +2 -2
  135. package/dist/{usePayments-ChGtK_As.mjs → usePayments-B5Z9Kfbv.mjs} +19 -17
  136. package/dist/{usePortal--Uzbpbgr.mjs → usePortal-DuLR5Mid.mjs} +1 -1
  137. package/dist/{useService-DayNZhPh.mjs → useService-2aOFBTxU.mjs} +1 -1
  138. package/dist/{useShippingAddresses-TXVeGFPm.mjs → useShippingAddresses-BvThNpez.mjs} +1 -1
  139. package/dist/{useSubscription-lIGMFLG1.mjs → useSubscription-Dzo-kBpQ.mjs} +2 -2
  140. package/dist/{useSubscriptionActions-BSlJVB4p.mjs → useSubscriptionActions-CWaNRoZ7.mjs} +1 -1
  141. package/dist/{wallets.es-eH2C2ygn.mjs → wallets.es-DRlUVd2R.mjs} +1 -1
  142. package/package.json +31 -8
  143. package/dist/Section.vue.es-CwKTCeZ1.mjs +0 -72
  144. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs +0 -5183
  145. package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +0 -4
@@ -1,56 +1,56 @@
1
- import { defineComponent as se, openBlock as i, createElementBlock as x, createElementVNode as I, createVNode as _, unref as e, withCtx as m, createTextVNode as O, toDisplayString as M, withModifiers as qe, useId as Oa, ref as Q, useModel as Ra, computed as u, reactive as $a, Fragment as G, renderList as ce, createBlock as P, createCommentVNode as N, mergeModels as Ot, renderSlot as Rt, createSlots as $t, resolveComponent as Va, normalizeClass as rt, onMounted as na, watch as Pe, onBeforeUnmount as Ba, nextTick as Re, mergeProps as ve, withDirectives as Da, withKeys as Vt, vShow as Ua, defineAsyncComponent as Bt, isRef as Dt, toValue as nt, getCurrentInstance as Fa, toRaw as qa } from "vue";
2
- import { u as ze, w as ja } from "./pricingPlanScheduleOverrides-GON_34ep.mjs";
3
- import { f as ne } from "./formatting.es-RclXHhKo.mjs";
4
- import { _ as Ie, b as za, a as Be } from "./Button.vue.es-BHbanjR0.mjs";
5
- import { _ as st } from "./ErrorNotification.vue.es-CWIVt5q9.mjs";
6
- import { a as fe, d as Y, e as sa } from "./customElements-d7Bhfqi_.mjs";
7
- import { u as Ya } from "./useHostEvent-pjoWJ7ZH.mjs";
1
+ import { defineComponent as se, openBlock as n, createElementBlock as x, createElementVNode as S, createVNode as b, unref as e, withCtx as g, createTextVNode as D, toDisplayString as N, withModifiers as qe, useId as Oa, ref as ae, useModel as Ra, computed as c, reactive as $a, Fragment as K, renderList as ce, createBlock as w, createCommentVNode as $, mergeModels as Ot, renderSlot as Rt, createSlots as $t, resolveComponent as Va, normalizeClass as ut, onMounted as na, watch as Pe, onBeforeUnmount as Ba, nextTick as Re, mergeProps as ve, withDirectives as Da, withKeys as Vt, vShow as Ua, defineAsyncComponent as Bt, isRef as Dt, toValue as st, getCurrentInstance as Fa, toRaw as qa } from "vue";
2
+ import { u as je, w as za } from "./pricingPlanScheduleOverrides-CGm_-jJq.mjs";
3
+ import { f as ie } from "./formatting.es-DlJEzreG.mjs";
4
+ import { _ as Ie, b as ja, a as Be } from "./Button.vue.es-CW7XfMBF.mjs";
5
+ import { _ as lt } from "./ErrorNotification.vue.es-Cw7fqCg1.mjs";
6
+ import { a as he, d as G, e as sa } from "./customElements-B8c354Nu.mjs";
7
+ import { u as Ya } from "./useHostEvent-MtRG6W2B.mjs";
8
8
  import { g as Ut } from "./getCountryNameByCode.es-OGxn_zT0.mjs";
9
- import { a as Ft, b as Ga, g as Ha, c as qt, d as De, e as jt, _ as Ka, i as Za, s as Wa } from "./OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs";
10
- import { i as je, f as Ja, t as Xa, l as zt, _ as Ue, c as Yt, m as la, g as Fe, u as Qa, d as eo, a as Gt, s as to, e as ao, b as Ht, n as oo, r as lt, h as io, o as Kt } from "./useAddressFormats-Dw7IEdxg.mjs";
9
+ import { a as Ft, b as Ga, g as Ha, c as qt, d as De, e as zt, _ as Ka, i as Za, s as Wa } from "./OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-D0pwpqIC.mjs";
10
+ import { i as ze, f as Ja, t as Xa, l as jt, _ as Ue, c as Yt, m as la, g as Fe, u as Qa, d as eo, a as Gt, s as to, e as ao, b as Ht, n as oo, r as rt, h as io, o as Kt } from "./useAddressFormats-CtE4QaVU.mjs";
11
11
  import { _ as Zt } from "./Expand.vue.es-BleuAfDz.mjs";
12
- import { _ as Ee } from "./Input.vue.es-CxiwRZYs.mjs";
13
- import { _ as Wt, u as no } from "./Label.vue.es-3ACRco55.mjs";
14
- import { _ as he } from "./Section.vue.es-CwKTCeZ1.mjs";
15
- import { _ as so, a as lo, t as ro, o as uo } from "./taxId.es-Zu2Ff1gL.mjs";
16
- import { f as pe, a as re, d as co, u as po, b as Jt, e as mo, r as go } from "./formControl-BZQLHnOO.mjs";
17
- import { a as vo } from "./InvoicePreview.vue.es-BvnikfEH.mjs";
18
- import { _ as ho, T as fo, a as yo } from "./TooltipParagraph.vue.es-4HaXi8RP.mjs";
19
- import { _ as bo, g as _o, a as ko } from "./TrialChip.vue.es-CUfJ4SK3.mjs";
20
- import { _ as Po } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs";
21
- import { _ as Xt } from "./Chip.vue.es-Dc6-PjEn.mjs";
22
- import { _ as Ao } from "./Toggle.vue.es-S2g8WGY_.mjs";
23
- import { S as wo } from "./index.es-BEZ2mumY.mjs";
24
- import { _ as Co } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs";
12
+ import { _ as Me } from "./Input.vue.es-Cd55vQri.mjs";
13
+ import { _ as Wt, u as no } from "./Label.vue.es-CB6G8Krh.mjs";
14
+ import { _ as fe } from "./Section.vue.es-DYmEtgBj.mjs";
15
+ import { _ as so, a as lo, t as ro, o as uo } from "./CompanyPurchaseToggle.vue_vue_type_script_setup_true_lang-CVXHCSPb.mjs";
16
+ import { f as pe, a as re, d as co, u as po, b as Jt, e as mo, r as go } from "./formControl-C18sw44K.mjs";
17
+ import { a as vo } from "./InvoicePreview.vue.es-DHh5wruk.mjs";
18
+ import { _ as fo, T as ho, a as yo } from "./TooltipParagraph.vue.es-Bt-7LHr3.mjs";
19
+ import { _ as bo, g as _o, a as ko } from "./TrialChip.vue.es-VZwQX079.mjs";
20
+ import { _ as Po } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D0priVnA.mjs";
21
+ import { _ as Xt } from "./Chip.vue.es-CYwWHyAT.mjs";
22
+ import { _ as wo } from "./Toggle.vue.es-S2g8WGY_.mjs";
23
+ import { S as Ao } from "./index.es-Bv55VtdE.mjs";
24
+ import { _ as Co } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-qQ9gJOIs.mjs";
25
25
  import { u as ra } from "./useViewport-psZejz_H.mjs";
26
- import { j as ua, e as ut, m as xo, c as Eo, n as Mo } from "./subscription-DQ5mRp_e.mjs";
26
+ import { j as ua, e as ct, m as xo, c as Mo, n as Eo } from "./subscription-DQ5mRp_e.mjs";
27
27
  import { b as Io, s as Lo } from "./paymentRedirect-DaS8Kccc.mjs";
28
- import { _ as Se } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs";
29
- import { _ as Me } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
30
- import { _ as To } from "./DividerText.vue.es-ChN6fnrH.mjs";
31
- import { d as No, c as So, t as Qt } from "./adyen-D4em6EgU.mjs";
28
+ import { _ as Se } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs";
29
+ import { _ as Ee } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
30
+ import { _ as To } from "./DividerText.vue.es-Dq0JzI8C.mjs";
31
+ import { d as No, c as So, t as Qt } from "./adyen-CHgq2l6n.mjs";
32
32
  import { a as ca } from "./adyenSdk-DUTO7xkT.mjs";
33
- import { c as Oo } from "./payments-Dy81gmkC.mjs";
33
+ import { c as Oo } from "./payments-BKoKpoLN.mjs";
34
34
  import { c as Ro } from "./paymentFailure-QZdZHBhf.mjs";
35
- import { a as $o, i as Vo } from "./paymentOutcome-D59QkGfm.mjs";
36
- import { u as Bo } from "./useExperimentalFeature-DAKAF_a2.mjs";
37
- import { b as Do, c as Uo, g as Fo, d as qo } from "./pricing-CBJT8C6L.mjs";
38
- import { g as jo } from "./pricingItem.es-AYq_hYeD.mjs";
39
- import { C as zo } from "./ContentWithAsideLayout-C2kFcft1.mjs";
35
+ import { a as $o, i as Vo } from "./paymentOutcome-Cv7hTFVu.mjs";
36
+ import { u as Bo } from "./useExperimentalFeature-Bw6bBtay.mjs";
37
+ import { b as Do, c as Uo, g as Fo, d as qo } from "./pricing-Y-7ELzN-.mjs";
38
+ import { g as zo } from "./pricingItem.es-BafitMMY.mjs";
39
+ import { C as jo } from "./ContentWithAsideLayout-C2kFcft1.mjs";
40
40
  import { u as Yo } from "./usePaymentFormHold-CYZ4BdOw.mjs";
41
- import { _ as Go } from "./SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs";
41
+ import { _ as Go } from "./SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CANXYTzu.mjs";
42
42
  import { u as Ho } from "./useWatchDebounced-DkXgKe0E.mjs";
43
43
  const Ko = { class: "flex min-h-96 w-full items-center justify-center" }, Zo = { class: "max-w-sm" }, Wo = /* @__PURE__ */ se({
44
44
  __name: "CheckoutNotAvailable",
45
45
  setup(t) {
46
- const { $t: r } = fe(), n = () => {
46
+ const { $t: u } = he(), s = () => {
47
47
  window.location.reload();
48
48
  };
49
- return (h, a) => (i(), x("div", Ko, [
50
- I("div", Zo, [
51
- _(e(Y), { variant: "heading-1" }, {
52
- default: m(() => [
53
- O(M(e(r)({
49
+ return (v, a) => (n(), x("div", Ko, [
50
+ S("div", Zo, [
51
+ b(e(G), { variant: "heading-1" }, {
52
+ default: g(() => [
53
+ D(N(e(u)({
54
54
  defaultMessage: "Checkout not available",
55
55
  id: "checkout.not_available.title",
56
56
  description: "The title of the checkout not available page"
@@ -58,26 +58,26 @@ const Ko = { class: "flex min-h-96 w-full items-center justify-center" }, Zo = {
58
58
  ]),
59
59
  _: 1
60
60
  }),
61
- _(e(Y), {
61
+ b(e(G), {
62
62
  variant: "body-sm",
63
63
  color: "subtle"
64
64
  }, {
65
- default: m(() => [
66
- O(M(e(r)({
65
+ default: g(() => [
66
+ D(N(e(u)({
67
67
  defaultMessage: "The checkout is currently not available.",
68
68
  id: "checkout.not_available.description",
69
69
  description: "The description of the checkout not available page"
70
70
  })) + " ", 1),
71
- I("a", {
71
+ S("a", {
72
72
  href: "#",
73
73
  class: "text-primary-900 hover:underline",
74
- onClick: qe(n, ["prevent"])
75
- }, M(e(r)({
74
+ onClick: qe(s, ["prevent"])
75
+ }, N(e(u)({
76
76
  defaultMessage: "Reload",
77
77
  id: "checkout.not_available.reload_button",
78
78
  description: "The label of the reload button"
79
79
  })), 1),
80
- O(" " + M(e(r)({
80
+ D(" " + N(e(u)({
81
81
  defaultMessage: "this page to try again, or contact customer support.",
82
82
  id: "checkout.not_available.contact_support_message",
83
83
  description: "The message shown when the user wants to contact customer support"
@@ -127,12 +127,12 @@ const Ko = { class: "flex min-h-96 w-full items-center justify-center" }, Zo = {
127
127
  }),
128
128
  emits: /* @__PURE__ */ Ot(["submit"], ["update:modelValue"]),
129
129
  setup(t) {
130
- const r = t, n = Oa(), h = Q(!1), a = Ra(t, "modelValue"), L = u({
130
+ const u = t, s = Oa(), v = ae(!1), a = Ra(t, "modelValue"), I = c({
131
131
  get: () => a.value.type === "ORGANIZATION",
132
- set: (v) => {
133
- a.value.type = v ? "ORGANIZATION" : "INDIVIDUAL";
132
+ set: (m) => {
133
+ a.value.type = m ? "ORGANIZATION" : "INDIVIDUAL";
134
134
  }
135
- }), C = u(() => a.value.type === "ORGANIZATION"), o = $a({
135
+ }), C = c(() => a.value.type === "ORGANIZATION"), o = $a({
136
136
  email: pe(a, "email", re),
137
137
  addressLine1: pe(a, "addressLine1", re),
138
138
  addressLine2: pe(a, "addressLine2", re),
@@ -143,363 +143,363 @@ const Ko = { class: "flex min-h-96 w-full items-center justify-center" }, Zo = {
143
143
  lastName: pe(a, "lastName", re),
144
144
  companyRegistrationNumber: pe(a, "companyRegistrationNumber", re),
145
145
  taxExemptNote: pe(a, "taxExemptNote", re)
146
- }), T = u({
146
+ }), L = c({
147
147
  get: () => !!a.value.taxExempt,
148
- set: (v) => {
149
- a.value.taxExempt = v;
148
+ set: (m) => {
149
+ a.value.taxExempt = m;
150
150
  }
151
- }), b = (v) => la(r.display, v), f = (v) => b(v) === "EDITABLE", V = (v, l) => C.value && !!r.display && b(v) === l, B = u(
151
+ }), y = (m) => la(u.display, m), O = (m) => y(m) === "EDITABLE", j = (m, l) => C.value && !!u.display && y(m) === l, A = c(
152
152
  () => {
153
- var v;
154
- return !C.value && !!((v = r.display) != null && v.customer_details) && b("firstName") !== "HIDDEN";
153
+ var m;
154
+ return !C.value && !!((m = u.display) != null && m.customer_details) && y("firstName") !== "HIDDEN";
155
155
  }
156
- ), U = u({
156
+ ), U = c({
157
157
  get: () => a.value.country,
158
- set: (v) => {
159
- const l = re(v);
160
- a.value.country = l !== void 0 && je(l) ? l : void 0;
158
+ set: (m) => {
159
+ const l = re(m);
160
+ a.value.country = l !== void 0 && ze(l) ? l : void 0;
161
161
  }
162
- }), w = u({
162
+ }), _ = c({
163
163
  get: () => a.value.shippingCountry,
164
- set: (v) => {
165
- const l = re(v);
166
- a.value.shippingCountry = l !== void 0 && je(l) ? l : void 0;
164
+ set: (m) => {
165
+ const l = re(m);
166
+ a.value.shippingCountry = l !== void 0 && ze(l) ? l : void 0;
167
167
  }
168
- }), { $t: A } = fe(), q = Ja(), H = (v) => r.getIsFieldRequired(v) ? "" : " " + A({
168
+ }), { $t: k } = he(), M = Ja(), F = (m) => u.getIsFieldRequired(m) ? "" : " " + k({
169
169
  defaultMessage: "(optional)",
170
170
  id: "checkout.optional_suffix.label",
171
171
  description: "The suffix for optional fields in the checkout form"
172
- }), te = u(
172
+ }), X = c(
173
173
  () => a.value.country ? Ut(a.value.country) : void 0
174
- ), ee = u(
175
- () => ["addressLine1", "postalCode", "city", "state"].some(r.getIsFieldRequired)
176
- ), oe = u(
174
+ ), Z = c(
175
+ () => ["addressLine1", "postalCode", "city", "state"].some(u.getIsFieldRequired)
176
+ ), Q = c(
177
177
  () => [
178
178
  a.value.addressLine1,
179
179
  a.value.addressLine2,
180
180
  [a.value.postalCode, a.value.city].filter(Boolean).join(" "),
181
181
  a.value.state,
182
- te.value
183
- ].filter((v) => !!v)
184
- ), Z = u(
185
- () => A({
182
+ X.value
183
+ ].filter((m) => !!m)
184
+ ), H = c(
185
+ () => k({
186
186
  defaultMessage: "Name",
187
187
  id: "checkout.individual_name.label",
188
188
  description: "Label of the name of a customer who buys as an individual"
189
189
  })
190
- ), c = u(
191
- () => A({
190
+ ), i = c(
191
+ () => k({
192
192
  defaultMessage: "Registration number",
193
193
  id: "checkout.registration_number.label",
194
194
  description: "Label of the company registration number of an organization customer"
195
195
  })
196
- ), $ = u(
197
- () => A({
196
+ ), T = c(
197
+ () => k({
198
198
  defaultMessage: "Tax exempt",
199
199
  id: "checkout.tax_exempt.label",
200
200
  description: "Label of whether an organization customer is exempt from tax"
201
201
  })
202
- ), R = u(
202
+ ), R = c(
203
203
  () => [
204
- C.value && b("companyLegalName") === "READ_ONLY" && {
205
- label: q.legalNameLabel,
204
+ C.value && y("companyLegalName") === "READ_ONLY" && {
205
+ label: M.legalNameLabel,
206
206
  value: a.value.companyLegalName
207
207
  },
208
- C.value && b("companyVatNumber") === "READ_ONLY" && {
209
- label: q.vatNumberLabel,
208
+ C.value && y("companyVatNumber") === "READ_ONLY" && {
209
+ label: M.vatNumberLabel,
210
210
  value: a.value.companyVatNumber
211
211
  },
212
- V("companyRegistrationNumber", "READ_ONLY") && {
213
- label: c.value,
212
+ j("companyRegistrationNumber", "READ_ONLY") && {
213
+ label: i.value,
214
214
  value: a.value.companyRegistrationNumber
215
215
  },
216
- V("taxExempt", "READ_ONLY") && a.value.taxExempt && {
217
- label: $.value,
218
- value: a.value.taxExemptNote || A({
216
+ j("taxExempt", "READ_ONLY") && a.value.taxExempt && {
217
+ label: T.value,
218
+ value: a.value.taxExemptNote || k({
219
219
  defaultMessage: "Yes",
220
220
  id: "checkout.tax_exempt.yes",
221
221
  description: "Shown for an organization customer that is exempt from tax, when no reason is given"
222
222
  })
223
223
  },
224
- B.value && b("firstName") === "READ_ONLY" && {
225
- label: Z.value,
224
+ A.value && y("firstName") === "READ_ONLY" && {
225
+ label: H.value,
226
226
  value: [a.value.firstName, a.value.infix, a.value.lastName].filter(Boolean).join(" ")
227
227
  }
228
- ].filter((v) => !!v && !!v.value)
229
- ), D = u(
230
- () => !r.isTypeLocked || B.value || C.value && (b("companyLegalName") !== "HIDDEN" || b("companyVatNumber") !== "HIDDEN")
231
- ), z = u(() => {
232
- var W, ae;
233
- const { recipient: v, address: l } = Xa(
228
+ ].filter((m) => !!m && !!m.value)
229
+ ), B = c(
230
+ () => !u.isTypeLocked || A.value || C.value && (y("companyLegalName") !== "HIDDEN" || y("companyVatNumber") !== "HIDDEN")
231
+ ), q = c(() => {
232
+ var J, oe;
233
+ const { recipient: m, address: l } = Xa(
234
234
  a.value,
235
235
  "",
236
- r.shippingAddressFormat
237
- ), y = (W = v.individual) == null ? void 0 : W.name;
236
+ u.shippingAddressFormat
237
+ ), p = (J = m.individual) == null ? void 0 : J.name;
238
238
  return [
239
- ((ae = v.organization) == null ? void 0 : ae.attention_name) ?? [y == null ? void 0 : y.first_name, y == null ? void 0 : y.last_name].filter(Boolean).join(" "),
239
+ ((oe = m.organization) == null ? void 0 : oe.attention_name) ?? [p == null ? void 0 : p.first_name, p == null ? void 0 : p.last_name].filter(Boolean).join(" "),
240
240
  l.line1,
241
241
  l.line2,
242
242
  [l.postal_code, l.city].filter(Boolean).join(" "),
243
243
  l.state,
244
244
  l.country && Ut(l.country)
245
- ].filter((ie) => !!ie);
246
- }), d = u({
245
+ ].filter((ne) => !!ne);
246
+ }), d = c({
247
247
  get: () => a.value.billingAddressSameAsShipping,
248
- set: (v) => {
249
- a.value.billingAddressSameAsShipping = v;
248
+ set: (m) => {
249
+ a.value.billingAddressSameAsShipping = m;
250
250
  }
251
- }), j = u(
252
- () => r.title ?? (r.isShippingAddressRequired ? A({
251
+ }), z = c(
252
+ () => u.title ?? (u.isShippingAddressRequired ? k({
253
253
  defaultMessage: "Shipping information",
254
254
  id: "checkout.shipping_information_block.title",
255
255
  description: "The title of the shipping information block in the checkout form"
256
- }) : q.contactInformationTitle)
257
- ), k = u(
258
- () => A({
256
+ }) : M.contactInformationTitle)
257
+ ), P = c(
258
+ () => k({
259
259
  defaultMessage: "Shipping address",
260
260
  id: "checkout.shipping_address.title",
261
261
  description: "Label above the address an order is shipped to in the checkout form"
262
262
  })
263
- ), p = u(
264
- () => A({
263
+ ), h = c(
264
+ () => k({
265
265
  defaultMessage: "Shipping country",
266
266
  id: "checkout.shipping_country.label",
267
267
  description: "Label of the country an order is shipped to in the checkout form"
268
268
  })
269
- ), E = u(
270
- () => A({
269
+ ), E = c(
270
+ () => k({
271
271
  defaultMessage: "Shipping country",
272
272
  id: "checkout.shipping_country.placeholder",
273
273
  description: "Placeholder of the shipping country select while no country is chosen"
274
274
  })
275
275
  );
276
- return (v, l) => (i(), x("form", {
277
- id: e(n),
278
- onSubmit: l[20] || (l[20] = qe((y) => v.$emit("submit", a.value), ["prevent"]))
276
+ return (m, l) => (n(), x("form", {
277
+ id: e(s),
278
+ onSubmit: l[20] || (l[20] = qe((p) => m.$emit("submit", a.value), ["prevent"]))
279
279
  }, [
280
- I("div", Xo, [
281
- _(e(he), { title: j.value }, {
282
- default: m(() => [
283
- t.readOnly ? (i(), x("div", Qo, [
284
- _(e(Y), {
280
+ S("div", Xo, [
281
+ b(e(fe), { title: z.value }, {
282
+ default: g(() => [
283
+ t.readOnly ? (n(), x("div", Qo, [
284
+ b(e(G), {
285
285
  variant: "body",
286
286
  tag: "span",
287
287
  weight: "semibold",
288
288
  "no-spacing": ""
289
289
  }, {
290
- default: m(() => [
291
- O(M(a.value.email), 1)
290
+ default: g(() => [
291
+ D(N(a.value.email), 1)
292
292
  ]),
293
293
  _: 1
294
294
  }),
295
- t.isShippingAddressRequired ? (i(!0), x(G, { key: 0 }, ce(z.value, (y, W) => (i(), P(e(Y), {
296
- key: W,
295
+ t.isShippingAddressRequired ? (n(!0), x(K, { key: 0 }, ce(q.value, (p, J) => (n(), w(e(G), {
296
+ key: J,
297
297
  variant: "body-sm",
298
298
  tag: "span",
299
299
  color: "subtle",
300
300
  "no-spacing": "",
301
301
  class: "sv-checkout__shipping-address-summary"
302
302
  }, {
303
- default: m(() => [
304
- O(M(y), 1)
303
+ default: g(() => [
304
+ D(N(p), 1)
305
305
  ]),
306
306
  _: 2
307
- }, 1024))), 128)) : (i(), P(e(Y), {
307
+ }, 1024))), 128)) : (n(), w(e(G), {
308
308
  key: 1,
309
309
  variant: "body-sm",
310
310
  tag: "span",
311
311
  color: "subtle",
312
312
  "no-spacing": ""
313
313
  }, {
314
- default: m(() => [
315
- O(M(te.value), 1)
314
+ default: g(() => [
315
+ D(N(X.value), 1)
316
316
  ]),
317
317
  _: 1
318
318
  }))
319
- ])) : (i(), x("div", ei, [
320
- b("email") === "READ_ONLY" ? (i(), P(e(Y), {
319
+ ])) : (n(), x("div", ei, [
320
+ y("email") === "READ_ONLY" ? (n(), w(e(G), {
321
321
  key: 0,
322
322
  variant: "body",
323
323
  tag: "span",
324
324
  weight: "semibold",
325
325
  "no-spacing": ""
326
326
  }, {
327
- default: m(() => [
328
- O(M(a.value.email), 1)
327
+ default: g(() => [
328
+ D(N(a.value.email), 1)
329
329
  ]),
330
330
  _: 1
331
- })) : f("email") ? (i(), P(e(Ee), {
331
+ })) : O("email") ? (n(), w(e(Me), {
332
332
  key: 1,
333
333
  modelValue: o.email,
334
- "onUpdate:modelValue": l[0] || (l[0] = (y) => o.email = y),
334
+ "onUpdate:modelValue": l[0] || (l[0] = (p) => o.email = p),
335
335
  required: "",
336
336
  type: "email",
337
337
  name: "email",
338
338
  autocomplete: "email",
339
339
  disabled: !!t.readOnlyEmail,
340
- label: e(q).emailLabel,
341
- placeholder: e(q).emailPlaceholder + H("email"),
340
+ label: e(M).emailLabel,
341
+ placeholder: e(M).emailPlaceholder + F("email"),
342
342
  error: t.validation.value.email.$errors
343
- }, null, 8, ["modelValue", "disabled", "label", "placeholder", "error"])) : N("", !0),
344
- !t.isShippingAddressRequired && b("country") === "READ_ONLY" ? (i(!0), x(G, { key: 2 }, ce(oe.value, (y, W) => (i(), P(e(Y), {
345
- key: W,
343
+ }, null, 8, ["modelValue", "disabled", "label", "placeholder", "error"])) : $("", !0),
344
+ !t.isShippingAddressRequired && y("country") === "READ_ONLY" ? (n(!0), x(K, { key: 2 }, ce(Q.value, (p, J) => (n(), w(e(G), {
345
+ key: J,
346
346
  variant: "body-sm",
347
347
  tag: "span",
348
348
  color: "subtle",
349
349
  "no-spacing": ""
350
350
  }, {
351
- default: m(() => [
352
- O(M(y), 1)
351
+ default: g(() => [
352
+ D(N(p), 1)
353
353
  ]),
354
354
  _: 2
355
- }, 1024))), 128)) : !t.isShippingAddressRequired && f("country") ? (i(), P(e(zt), {
355
+ }, 1024))), 128)) : !t.isShippingAddressRequired && O("country") ? (n(), w(e(jt), {
356
356
  key: 3,
357
357
  "single-model-value": U.value,
358
- "onUpdate:singleModelValue": l[3] || (l[3] = (y) => U.value = y),
359
- i18n: { placeholderDefault: e(q).countryPlaceholder },
358
+ "onUpdate:singleModelValue": l[3] || (l[3] = (p) => U.value = p),
359
+ i18n: { placeholderDefault: e(M).countryPlaceholder },
360
360
  required: "",
361
361
  name: "country",
362
- label: e(q).countryLabel + H("country"),
362
+ label: e(M).countryLabel + F("country"),
363
363
  error: t.validation.value.country.$errors
364
364
  }, {
365
- "label-suffix": m(() => [
366
- !h.value && !t.isBillingInformationMandatory && !ee.value ? (i(), P(e(Ie), {
365
+ "label-suffix": g(() => [
366
+ !v.value && !t.isBillingInformationMandatory && !Z.value ? (n(), w(e(Ie), {
367
367
  key: 0,
368
368
  size: "xs",
369
369
  intent: "subtle",
370
370
  "icon-prefix": "add",
371
371
  class: "py-0.5",
372
- onClick: l[1] || (l[1] = (y) => h.value = !0)
372
+ onClick: l[1] || (l[1] = (p) => v.value = !0)
373
373
  }, {
374
- default: m(() => [
375
- O(M(e(A)({
374
+ default: g(() => [
375
+ D(N(e(k)({
376
376
  defaultMessage: "More billing details",
377
377
  description: "Label of the button in the checkout that lets you fill out all billing details",
378
378
  id: "checkout.billing_details.add_billing_details_button.label"
379
379
  })), 1)
380
380
  ]),
381
381
  _: 1
382
- })) : N("", !0),
383
- h.value && !t.isBillingInformationMandatory && !ee.value ? (i(), P(e(Ie), {
382
+ })) : $("", !0),
383
+ v.value && !t.isBillingInformationMandatory && !Z.value ? (n(), w(e(Ie), {
384
384
  key: 1,
385
385
  size: "sm",
386
386
  intent: "subtle",
387
387
  "icon-prefix": "close",
388
388
  class: "py-0.5",
389
- onClick: l[2] || (l[2] = (y) => h.value = !1)
389
+ onClick: l[2] || (l[2] = (p) => v.value = !1)
390
390
  }, {
391
- default: m(() => [
392
- O(M(e(A)({
391
+ default: g(() => [
392
+ D(N(e(k)({
393
393
  defaultMessage: "Remove billing details",
394
394
  id: "checkout.billing_details.remove_billing_details_button.label",
395
395
  description: "Label of the button in the checkout that lets you remove the billing details"
396
396
  })), 1)
397
397
  ]),
398
398
  _: 1
399
- })) : N("", !0)
399
+ })) : $("", !0)
400
400
  ]),
401
401
  _: 1
402
- }, 8, ["single-model-value", "i18n", "label", "error"])) : N("", !0)
402
+ }, 8, ["single-model-value", "i18n", "label", "error"])) : $("", !0)
403
403
  ])),
404
- !t.isShippingAddressRequired && f("country") ? (i(), P(e(Zt), {
404
+ !t.isShippingAddressRequired && O("country") ? (n(), w(e(Zt), {
405
405
  key: 2,
406
- "is-open": h.value || !!t.isBillingInformationMandatory || ee.value
406
+ "is-open": v.value || !!t.isBillingInformationMandatory || Z.value
407
407
  }, {
408
- default: m(() => [
409
- h.value || t.isBillingInformationMandatory || ee.value ? (i(), x("div", ti, [
410
- I("div", ai, [
411
- _(e(Ee), {
408
+ default: g(() => [
409
+ v.value || t.isBillingInformationMandatory || Z.value ? (n(), x("div", ti, [
410
+ S("div", ai, [
411
+ b(e(Me), {
412
412
  modelValue: o.addressLine1,
413
- "onUpdate:modelValue": l[4] || (l[4] = (y) => o.addressLine1 = y),
413
+ "onUpdate:modelValue": l[4] || (l[4] = (p) => o.addressLine1 = p),
414
414
  name: "address_line_1",
415
415
  autocomplete: "billing address-line1",
416
- label: e(A)({
416
+ label: e(k)({
417
417
  defaultMessage: "Billing address",
418
418
  id: "checkout.address.title",
419
419
  description: "Label of the billing address, above its first line, in the checkout and billing information forms"
420
420
  }),
421
- placeholder: e(A)({
421
+ placeholder: e(k)({
422
422
  defaultMessage: "Address line 1",
423
423
  id: "checkout.address.line1.placeholder",
424
424
  description: "Address line 1 of the customer address in the checkout form"
425
- }) + H("addressLine1"),
425
+ }) + F("addressLine1"),
426
426
  required: "",
427
427
  error: t.validation.value.addressLine1.$errors
428
428
  }, null, 8, ["modelValue", "label", "placeholder", "error"]),
429
- _(Ue, {
429
+ b(Ue, {
430
430
  modelValue: o.addressLine2,
431
- "onUpdate:modelValue": l[5] || (l[5] = (y) => o.addressLine2 = y),
431
+ "onUpdate:modelValue": l[5] || (l[5] = (p) => o.addressLine2 = p),
432
432
  name: "address_line_2",
433
433
  autocomplete: "billing address-line2",
434
- label: e(q).addressLine2Label,
435
- placeholder: e(A)({
434
+ label: e(M).addressLine2Label,
435
+ placeholder: e(k)({
436
436
  defaultMessage: "Address line 2",
437
437
  id: "checkout.address.line2.placeholder",
438
438
  description: "Address line 2 of the customer address in the checkout form"
439
- }) + H("addressLine2")
439
+ }) + F("addressLine2")
440
440
  }, null, 8, ["modelValue", "label", "placeholder"]),
441
- I("div", oi, [
442
- _(Ue, {
441
+ S("div", oi, [
442
+ b(Ue, {
443
443
  modelValue: o.postalCode,
444
- "onUpdate:modelValue": l[6] || (l[6] = (y) => o.postalCode = y),
444
+ "onUpdate:modelValue": l[6] || (l[6] = (p) => o.postalCode = p),
445
445
  name: "postal_code",
446
446
  autocomplete: "billing postal-code",
447
- label: e(q).postalCodeLabel,
448
- placeholder: e(q).postalCodePlaceholder + H("postalCode"),
447
+ label: e(M).postalCodeLabel,
448
+ placeholder: e(M).postalCodePlaceholder + F("postalCode"),
449
449
  error: t.validation.value.postalCode.$errors
450
450
  }, null, 8, ["modelValue", "label", "placeholder", "error"]),
451
- _(Ue, {
451
+ b(Ue, {
452
452
  modelValue: o.city,
453
- "onUpdate:modelValue": l[7] || (l[7] = (y) => o.city = y),
453
+ "onUpdate:modelValue": l[7] || (l[7] = (p) => o.city = p),
454
454
  name: "city",
455
455
  autocomplete: "billing address-level2",
456
- label: e(q).cityLabel,
457
- placeholder: e(q).cityPlaceholder + H("city")
456
+ label: e(M).cityLabel,
457
+ placeholder: e(M).cityPlaceholder + F("city")
458
458
  }, null, 8, ["modelValue", "label", "placeholder"]),
459
- _(Ue, {
459
+ b(Ue, {
460
460
  modelValue: o.state,
461
- "onUpdate:modelValue": l[8] || (l[8] = (y) => o.state = y),
461
+ "onUpdate:modelValue": l[8] || (l[8] = (p) => o.state = p),
462
462
  name: "state",
463
463
  autocomplete: "billing address-level1",
464
- label: e(q).stateLabel,
465
- placeholder: e(q).statePlaceholder + H("state"),
464
+ label: e(M).stateLabel,
465
+ placeholder: e(M).statePlaceholder + F("state"),
466
466
  error: t.validation.value.state.$errors
467
467
  }, null, 8, ["modelValue", "label", "placeholder", "error"])
468
468
  ])
469
469
  ])
470
- ])) : N("", !0)
470
+ ])) : $("", !0)
471
471
  ]),
472
472
  _: 1
473
- }, 8, ["is-open"])) : N("", !0),
474
- t.isShippingAddressRequired && !t.readOnly ? (i(), x("fieldset", ii, [
475
- I("legend", null, [
476
- _(e(Wt), {
473
+ }, 8, ["is-open"])) : $("", !0),
474
+ t.isShippingAddressRequired && !t.readOnly ? (n(), x("fieldset", ii, [
475
+ S("legend", null, [
476
+ b(e(Wt), {
477
477
  tag: "span",
478
478
  required: ""
479
479
  }, {
480
- default: m(() => [
481
- O(M(k.value), 1)
480
+ default: g(() => [
481
+ D(N(P.value), 1)
482
482
  ]),
483
483
  _: 1
484
484
  })
485
485
  ]),
486
- I("div", ni, [
487
- _(e(zt), {
488
- "single-model-value": w.value,
489
- "onUpdate:singleModelValue": l[9] || (l[9] = (y) => w.value = y),
486
+ S("div", ni, [
487
+ b(e(jt), {
488
+ "single-model-value": _.value,
489
+ "onUpdate:singleModelValue": l[9] || (l[9] = (p) => _.value = p),
490
490
  i18n: { placeholderDefault: E.value },
491
491
  required: "",
492
492
  "label-screen-reader-only": "",
493
493
  name: "shipping_country",
494
- label: p.value,
494
+ label: h.value,
495
495
  error: t.validation.value.shippingCountry.$errors
496
496
  }, null, 8, ["single-model-value", "i18n", "label", "error"]),
497
- _(Yt, {
497
+ b(Yt, {
498
498
  modelValue: a.value,
499
- "onUpdate:modelValue": l[10] || (l[10] = (y) => a.value = y),
499
+ "onUpdate:modelValue": l[10] || (l[10] = (p) => a.value = p),
500
500
  variant: "SHIPPING",
501
501
  class: "sv-checkout__shipping-address",
502
- "get-optional-suffix": H,
502
+ "get-optional-suffix": F,
503
503
  format: t.shippingAddressFormat,
504
504
  errors: {
505
505
  addressLine1: t.validation.value.shippingAddressLine1.$errors,
@@ -511,49 +511,49 @@ const Ko = { class: "flex min-h-96 w-full items-center justify-center" }, Zo = {
511
511
  }
512
512
  }, null, 8, ["modelValue", "format", "errors"])
513
513
  ]),
514
- I("div", si, [
515
- _(e(Ft), {
514
+ S("div", si, [
515
+ b(e(Ft), {
516
516
  modelValue: d.value,
517
- "onUpdate:modelValue": l[11] || (l[11] = (y) => d.value = y),
517
+ "onUpdate:modelValue": l[11] || (l[11] = (p) => d.value = p),
518
518
  name: "billing_address_same_as_shipping",
519
519
  class: "sv-checkout__billing-same-as-shipping",
520
- label: e(A)({
520
+ label: e(k)({
521
521
  defaultMessage: "Billing address is the same as shipping address",
522
522
  id: "checkout.billing_address_same_as_shipping.label",
523
523
  description: "Label of the checkbox that bills the order to the address it ships to"
524
524
  })
525
525
  }, null, 8, ["modelValue", "label"])
526
526
  ])
527
- ])) : N("", !0)
527
+ ])) : $("", !0)
528
528
  ]),
529
529
  _: 1
530
530
  }, 8, ["title"]),
531
- t.isShippingAddressRequired && !t.readOnly ? (i(), x(G, { key: 0 }, [
532
- d.value ? N("", !0) : (i(), P(e(he), {
531
+ t.isShippingAddressRequired && !t.readOnly ? (n(), x(K, { key: 0 }, [
532
+ d.value ? $("", !0) : (n(), w(e(fe), {
533
533
  key: 0,
534
534
  class: "sv-checkout__billing-section"
535
535
  }, {
536
- default: m(() => [
537
- I("fieldset", null, [
538
- I("legend", null, [
539
- _(e(Wt), {
536
+ default: g(() => [
537
+ S("fieldset", null, [
538
+ S("legend", null, [
539
+ b(e(Wt), {
540
540
  tag: "span",
541
541
  required: ""
542
542
  }, {
543
- default: m(() => [
544
- O(M(e(q).addressTitle), 1)
543
+ default: g(() => [
544
+ D(N(e(M).addressTitle), 1)
545
545
  ]),
546
546
  _: 1
547
547
  })
548
548
  ]),
549
- _(Yt, {
549
+ b(Yt, {
550
550
  modelValue: a.value,
551
- "onUpdate:modelValue": l[12] || (l[12] = (y) => a.value = y),
551
+ "onUpdate:modelValue": l[12] || (l[12] = (p) => a.value = p),
552
552
  variant: "BILLING",
553
553
  class: "sv-checkout__billing-address",
554
554
  "with-country": "",
555
- "country-label": e(q).countryLabel,
556
- "get-optional-suffix": H,
555
+ "country-label": e(M).countryLabel,
556
+ "get-optional-suffix": F,
557
557
  errors: {
558
558
  addressLine1: t.validation.value.addressLine1.$errors,
559
559
  postalCode: t.validation.value.postalCode.$errors,
@@ -566,139 +566,139 @@ const Ko = { class: "flex min-h-96 w-full items-center justify-center" }, Zo = {
566
566
  ]),
567
567
  _: 1
568
568
  }))
569
- ], 64)) : N("", !0),
570
- !t.readOnly && D.value ? (i(), P(e(he), { key: 1 }, {
571
- default: m(() => [
572
- t.isTypeLocked ? N("", !0) : (i(), P(so, {
569
+ ], 64)) : $("", !0),
570
+ !t.readOnly && B.value ? (n(), w(e(fe), { key: 1 }, {
571
+ default: g(() => [
572
+ t.isTypeLocked ? $("", !0) : (n(), w(so, {
573
573
  key: 0,
574
- modelValue: L.value,
575
- "onUpdate:modelValue": l[13] || (l[13] = (y) => L.value = y),
574
+ modelValue: I.value,
575
+ "onUpdate:modelValue": l[13] || (l[13] = (p) => I.value = p),
576
576
  "no-spacing": "",
577
577
  class: "!flex"
578
578
  }, null, 8, ["modelValue"])),
579
- R.value.length ? (i(), x("div", li, [
580
- (i(!0), x(G, null, ce(R.value, (y) => (i(), x("div", {
581
- key: y.label,
579
+ R.value.length ? (n(), x("div", li, [
580
+ (n(!0), x(K, null, ce(R.value, (p) => (n(), x("div", {
581
+ key: p.label,
582
582
  class: "flex flex-col"
583
583
  }, [
584
- _(e(Y), {
584
+ b(e(G), {
585
585
  variant: "body-sm",
586
586
  tag: "span",
587
587
  color: "subtle",
588
588
  "no-spacing": ""
589
589
  }, {
590
- default: m(() => [
591
- O(M(y.label), 1)
590
+ default: g(() => [
591
+ D(N(p.label), 1)
592
592
  ]),
593
593
  _: 2
594
594
  }, 1024),
595
- _(e(Y), {
595
+ b(e(G), {
596
596
  variant: "body",
597
597
  tag: "span",
598
598
  "no-spacing": ""
599
599
  }, {
600
- default: m(() => [
601
- O(M(y.value), 1)
600
+ default: g(() => [
601
+ D(N(p.value), 1)
602
602
  ]),
603
603
  _: 2
604
604
  }, 1024)
605
605
  ]))), 128))
606
- ])) : N("", !0),
607
- B.value && f("firstName") ? (i(), x("div", ri, [
608
- _(e(Ee), {
606
+ ])) : $("", !0),
607
+ A.value && O("firstName") ? (n(), x("div", ri, [
608
+ b(e(Me), {
609
609
  modelValue: o.firstName,
610
- "onUpdate:modelValue": l[14] || (l[14] = (y) => o.firstName = y),
610
+ "onUpdate:modelValue": l[14] || (l[14] = (p) => o.firstName = p),
611
611
  name: "first_name",
612
612
  required: t.getIsFieldRequired("firstName"),
613
613
  autocomplete: "given-name",
614
- label: e(A)({
614
+ label: e(k)({
615
615
  defaultMessage: "First name",
616
616
  id: "checkout.first_name.label",
617
617
  description: "Label of the first name of a customer who buys as an individual"
618
618
  }),
619
619
  error: t.validation.value.firstName.$errors
620
620
  }, null, 8, ["modelValue", "required", "label", "error"]),
621
- _(e(Ee), {
621
+ b(e(Me), {
622
622
  modelValue: o.lastName,
623
- "onUpdate:modelValue": l[15] || (l[15] = (y) => o.lastName = y),
623
+ "onUpdate:modelValue": l[15] || (l[15] = (p) => o.lastName = p),
624
624
  name: "last_name",
625
625
  required: t.getIsFieldRequired("lastName"),
626
626
  autocomplete: "family-name",
627
- label: e(A)({
627
+ label: e(k)({
628
628
  defaultMessage: "Last name",
629
629
  id: "checkout.last_name.label",
630
630
  description: "Label of the last name of a customer who buys as an individual"
631
631
  }),
632
632
  error: t.validation.value.lastName.$errors
633
633
  }, null, 8, ["modelValue", "required", "label", "error"])
634
- ])) : N("", !0),
635
- _(e(Zt), { "is-open": C.value }, {
636
- default: m(() => [
637
- C.value ? (i(), x("div", ui, [
638
- _(lo, {
634
+ ])) : $("", !0),
635
+ b(e(Zt), { "is-open": C.value }, {
636
+ default: g(() => [
637
+ C.value ? (n(), x("div", ui, [
638
+ b(lo, {
639
639
  modelValue: a.value,
640
- "onUpdate:modelValue": l[16] || (l[16] = (y) => a.value = y),
640
+ "onUpdate:modelValue": l[16] || (l[16] = (p) => a.value = p),
641
641
  class: "mt-2",
642
642
  errors: {
643
643
  companyLegalName: t.validation.value.companyLegalName.$errors,
644
644
  companyVatNumber: t.validation.value.companyVatNumber.$errors
645
645
  },
646
646
  "is-vat-number-invalid": t.validation.value.companyVatNumber.$invalid,
647
- "hides-legal-name": !f("companyLegalName"),
648
- "hides-vat-number": !f("companyVatNumber")
647
+ "hides-legal-name": !O("companyLegalName"),
648
+ "hides-vat-number": !O("companyVatNumber")
649
649
  }, null, 8, ["modelValue", "errors", "is-vat-number-invalid", "hides-legal-name", "hides-vat-number"]),
650
- V("companyRegistrationNumber", "EDITABLE") || V("taxExempt", "EDITABLE") ? (i(), x("div", ci, [
651
- V("companyRegistrationNumber", "EDITABLE") ? (i(), P(e(Ee), {
650
+ j("companyRegistrationNumber", "EDITABLE") || j("taxExempt", "EDITABLE") ? (n(), x("div", ci, [
651
+ j("companyRegistrationNumber", "EDITABLE") ? (n(), w(e(Me), {
652
652
  key: 0,
653
653
  modelValue: o.companyRegistrationNumber,
654
- "onUpdate:modelValue": l[17] || (l[17] = (y) => o.companyRegistrationNumber = y),
654
+ "onUpdate:modelValue": l[17] || (l[17] = (p) => o.companyRegistrationNumber = p),
655
655
  name: "registration_number",
656
656
  autocomplete: "off",
657
657
  required: t.getIsFieldRequired("companyRegistrationNumber"),
658
- label: c.value,
658
+ label: i.value,
659
659
  error: t.validation.value.companyRegistrationNumber.$errors
660
- }, null, 8, ["modelValue", "required", "label", "error"])) : N("", !0),
661
- V("taxExempt", "EDITABLE") ? (i(), x(G, { key: 1 }, [
662
- _(e(Ft), {
663
- modelValue: T.value,
664
- "onUpdate:modelValue": l[18] || (l[18] = (y) => T.value = y),
660
+ }, null, 8, ["modelValue", "required", "label", "error"])) : $("", !0),
661
+ j("taxExempt", "EDITABLE") ? (n(), x(K, { key: 1 }, [
662
+ b(e(Ft), {
663
+ modelValue: L.value,
664
+ "onUpdate:modelValue": l[18] || (l[18] = (p) => L.value = p),
665
665
  name: "tax_exempt",
666
- label: $.value
666
+ label: T.value
667
667
  }, null, 8, ["modelValue", "label"]),
668
- T.value ? (i(), P(e(Ee), {
668
+ L.value ? (n(), w(e(Me), {
669
669
  key: 0,
670
670
  modelValue: o.taxExemptNote,
671
- "onUpdate:modelValue": l[19] || (l[19] = (y) => o.taxExemptNote = y),
671
+ "onUpdate:modelValue": l[19] || (l[19] = (p) => o.taxExemptNote = p),
672
672
  name: "tax_exempt_note",
673
673
  autocomplete: "off",
674
- label: e(A)({
674
+ label: e(k)({
675
675
  defaultMessage: "Reason for tax exemption",
676
676
  id: "checkout.tax_exempt_note.label",
677
677
  description: "Label of the reason an organization customer is exempt from tax"
678
678
  })
679
- }, null, 8, ["modelValue", "label"])) : N("", !0)
680
- ], 64)) : N("", !0)
681
- ])) : N("", !0)
682
- ])) : N("", !0)
679
+ }, null, 8, ["modelValue", "label"])) : $("", !0)
680
+ ], 64)) : $("", !0)
681
+ ])) : $("", !0)
682
+ ])) : $("", !0)
683
683
  ]),
684
684
  _: 1
685
685
  }, 8, ["is-open"])
686
686
  ]),
687
687
  _: 1
688
- })) : N("", !0)
688
+ })) : $("", !0)
689
689
  ])
690
690
  ], 40, Jo));
691
691
  }
692
692
  }), di = (t) => typeof t == "object" && t !== null && typeof Reflect.get(t, "strong") == "string", Te = (t) => ({
693
- strong: t.filter((r) => typeof r == "string").join("")
693
+ strong: t.filter((u) => typeof u == "string").join("")
694
694
  });
695
695
  function pi(t) {
696
- return (Array.isArray(t) ? t : [t]).flatMap((n) => typeof n == "string" ? n ? [{ text: n, strong: !1 }] : [] : di(n) ? [{ text: n.strong, strong: !0 }] : []);
696
+ return (Array.isArray(t) ? t : [t]).flatMap((s) => typeof s == "string" ? s ? [{ text: s, strong: !1 }] : [] : di(s) ? [{ text: s.strong, strong: !0 }] : []);
697
697
  }
698
698
  const mi = {
699
699
  key: 0,
700
700
  class: "flex items-center"
701
- }, gi = { key: 1 }, vi = { key: 0 }, hi = /* @__PURE__ */ se({
701
+ }, gi = { key: 1 }, vi = { key: 0 }, fi = /* @__PURE__ */ se({
702
702
  __name: "CheckoutTitle",
703
703
  props: {
704
704
  trialPeriod: { type: Object },
@@ -715,87 +715,87 @@ const mi = {
715
715
  subscriptionStartDate: { type: Date }
716
716
  },
717
717
  setup(t) {
718
- const r = t, { $t: n } = fe(), { formatTimePeriod: h } = ze(), a = u(
719
- () => h(r.billingPeriod, { short: !0, hideValueForExactPeriods: !0 })
720
- ), L = u(() => {
721
- const T = ne(r.dueTodayAmount), b = () => n(
718
+ const u = t, { $t: s } = he(), { formatTimePeriod: v } = je(), a = c(
719
+ () => v(u.billingPeriod, { short: !0, hideValueForExactPeriods: !0 })
720
+ ), I = c(() => {
721
+ const L = ie(u.dueTodayAmount), y = () => s(
722
722
  {
723
723
  defaultMessage: "You will be billed <strong>{due_today}</strong> today.",
724
724
  id: "checkout.one_off_description",
725
725
  description: "The description of an order that is charged once and does not renew"
726
726
  },
727
727
  // @ts-expect-error formatjs does not support this type yet
728
- { due_today: T, strong: Te }
728
+ { due_today: L, strong: Te }
729
729
  );
730
- if (r.recurringAmount) {
731
- if (Number(r.recurringAmount.quantity) === 0) {
732
- if (r.hasUsageCharges)
733
- return n(
730
+ if (u.recurringAmount) {
731
+ if (Number(u.recurringAmount.quantity) === 0) {
732
+ if (u.hasUsageCharges)
733
+ return s(
734
734
  {
735
735
  defaultMessage: "You will be billed <strong>{due_today}</strong> today. Usage is billed every {period_name}.",
736
736
  id: "checkout.usage_with_one_off_description",
737
737
  description: "The description of a usage-based subscription whose first invoice also charges something only once"
738
738
  },
739
739
  // @ts-expect-error formatjs does not support this type yet
740
- { due_today: T, period_name: a.value, strong: Te }
740
+ { due_today: L, period_name: a.value, strong: Te }
741
741
  );
742
- if (!r.hasRecurringCharge)
743
- return b();
742
+ if (!u.hasRecurringCharge)
743
+ return y();
744
744
  }
745
- const V = ne(r.recurringAmount);
746
- return r.trialStartDate ? n(
745
+ const j = ie(u.recurringAmount);
746
+ return u.trialStartDate ? s(
747
747
  {
748
748
  defaultMessage: "You will be billed <strong>{due_today}</strong> today, then <strong>{price}</strong> per {period_name}, starting {startDate, date, long}.",
749
749
  id: "checkout.trial_period_description_with_one_off",
750
750
  description: "The description of a trial whose first invoice also charges something only once"
751
751
  },
752
752
  {
753
- due_today: T,
754
- price: V,
753
+ due_today: L,
754
+ price: j,
755
755
  period_name: a.value,
756
756
  // @ts-expect-error formatjs does not support this type yet
757
- startDate: r.subscriptionStartDate,
757
+ startDate: u.subscriptionStartDate,
758
758
  // @ts-expect-error formatjs does not support this type yet
759
759
  strong: Te
760
760
  }
761
- ) : n(
761
+ ) : s(
762
762
  {
763
763
  defaultMessage: "You will be billed <strong>{due_today}</strong> today, then <strong>{price}</strong> per {period_name}.",
764
764
  id: "checkout.subscription_description_with_one_off",
765
765
  description: "The description of a subscription whose first invoice also charges something only once"
766
766
  },
767
767
  // @ts-expect-error formatjs does not support this type yet
768
- { due_today: T, price: V, period_name: a.value, strong: Te }
768
+ { due_today: L, price: j, period_name: a.value, strong: Te }
769
769
  );
770
770
  }
771
- if (r.hasOneOffCharges)
772
- return b();
773
- const f = ne(r.amount);
774
- return r.trialStartDate ? n(
771
+ if (u.hasOneOffCharges)
772
+ return y();
773
+ const O = ie(u.amount);
774
+ return u.trialStartDate ? s(
775
775
  {
776
776
  defaultMessage: "You will be billed <strong>{price}</strong> per {period_name}, starting {startDate, date, long}.",
777
777
  id: "checkout.trial_period_description",
778
778
  description: "The description of the trial period"
779
779
  },
780
780
  {
781
- price: f,
781
+ price: O,
782
782
  // @ts-expect-error formatjs does not support this type yet
783
- startDate: r.subscriptionStartDate,
783
+ startDate: u.subscriptionStartDate,
784
784
  period_name: a.value,
785
785
  // @ts-expect-error formatjs does not support this type yet
786
786
  strong: Te
787
787
  }
788
- ) : n(
788
+ ) : s(
789
789
  {
790
790
  defaultMessage: "You will be billed <strong>{price}</strong> per {period_name}, starting today.",
791
791
  id: "checkout.subscription_description",
792
792
  description: "The description of the subscription"
793
793
  },
794
794
  // @ts-expect-error formatjs does not support this type yet
795
- { price: f, period_name: a.value, strong: Te }
795
+ { price: O, period_name: a.value, strong: Te }
796
796
  );
797
- }), C = u(() => pi(L.value)), o = u(
798
- () => r.trialStartDate ? n(
797
+ }), C = c(() => pi(I.value)), o = c(
798
+ () => u.trialStartDate ? s(
799
799
  {
800
800
  defaultMessage: "per {period_name} starting, {startDate, date, long}",
801
801
  id: "checkout.trial_period_description_without_price",
@@ -803,10 +803,10 @@ const mi = {
803
803
  },
804
804
  {
805
805
  // @ts-expect-error formatjs does not support this type yet
806
- startDate: r.subscriptionStartDate,
806
+ startDate: u.subscriptionStartDate,
807
807
  period_name: a.value
808
808
  }
809
- ) : n(
809
+ ) : s(
810
810
  {
811
811
  defaultMessage: "per {period_name}, starting today",
812
812
  id: "checkout.subscription_description_without_price",
@@ -815,48 +815,48 @@ const mi = {
815
815
  { period_name: a.value }
816
816
  )
817
817
  );
818
- return (T, b) => (i(), x("div", null, [
819
- I("div", null, [
820
- _(e(Y), {
818
+ return (L, y) => (n(), x("div", null, [
819
+ S("div", null, [
820
+ b(e(G), {
821
821
  variant: "heading-1",
822
822
  class: "inline-block"
823
823
  }, {
824
- default: m(() => [
825
- O(M(t.trialStartDate ? t.subscriptionName : e(n)({
824
+ default: g(() => [
825
+ D(N(t.trialStartDate ? t.subscriptionName : e(s)({
826
826
  defaultMessage: "Pay and subscribe",
827
827
  id: "checkout.page_title",
828
828
  description: "The title of the checkout page"
829
- })) + M(" "), 1),
830
- t.trialPeriod ? (i(), P(e(bo), {
829
+ })) + N(" "), 1),
830
+ t.trialPeriod ? (n(), w(e(bo), {
831
831
  key: 0,
832
832
  "trial-period": t.trialPeriod,
833
833
  size: "lg",
834
834
  class: "-translate-y-0.5"
835
- }, null, 8, ["trial-period"])) : N("", !0)
835
+ }, null, 8, ["trial-period"])) : $("", !0)
836
836
  ]),
837
837
  _: 1
838
838
  })
839
839
  ]),
840
- _(e(Y), {
840
+ b(e(G), {
841
841
  variant: "body-sm",
842
842
  color: "subtle",
843
843
  "no-spacing": ""
844
844
  }, {
845
- default: m(() => [
846
- t.countryCode ? (i(), x("span", gi, [
847
- (i(!0), x(G, null, ce(C.value, (f, V) => (i(), x(G, { key: V }, [
848
- f.strong ? (i(), x("strong", vi, M(f.text), 1)) : (i(), x(G, { key: 1 }, [
849
- O(M(f.text), 1)
845
+ default: g(() => [
846
+ t.countryCode ? (n(), x("span", gi, [
847
+ (n(!0), x(K, null, ce(C.value, (O, j) => (n(), x(K, { key: j }, [
848
+ O.strong ? (n(), x("strong", vi, N(O.text), 1)) : (n(), x(K, { key: 1 }, [
849
+ D(N(O.text), 1)
850
850
  ], 64))
851
851
  ], 64))), 128))
852
- ])) : (i(), x("span", mi, [
853
- _(e(ho), { "is-dark-mode": "" }, {
854
- tooltip: m(() => [
855
- _(e(fo), null, {
856
- default: m(() => [
857
- _(e(yo), null, {
858
- default: m(() => [
859
- O(M(e(n)({
852
+ ])) : (n(), x("span", mi, [
853
+ b(e(fo), { "is-dark-mode": "" }, {
854
+ tooltip: g(() => [
855
+ b(e(ho), null, {
856
+ default: g(() => [
857
+ b(e(yo), null, {
858
+ default: g(() => [
859
+ D(N(e(s)({
860
860
  defaultMessage: "Will be determined by billing information",
861
861
  description: "Tooltip content for the invoice preview when taxes are not determined by billing information",
862
862
  id: "invoice_preview.taxes_not_determined_by_billing_information_tooltip"
@@ -868,8 +868,8 @@ const mi = {
868
868
  _: 1
869
869
  })
870
870
  ]),
871
- default: m(() => [
872
- _(e(vo), {
871
+ default: g(() => [
872
+ b(e(vo), {
873
873
  "width-class": "w-10",
874
874
  "height-class": "h-4",
875
875
  shade: "darker",
@@ -878,33 +878,33 @@ const mi = {
878
878
  ]),
879
879
  _: 1
880
880
  }),
881
- I("span", null, M(o.value), 1)
881
+ S("span", null, N(o.value), 1)
882
882
  ]))
883
883
  ]),
884
884
  _: 1
885
885
  })
886
886
  ]));
887
887
  }
888
- }), fi = /* @__PURE__ */ se({
888
+ }), hi = /* @__PURE__ */ se({
889
889
  __name: "SubscriptionPaymentCompletedCard",
890
890
  setup(t) {
891
- const { $t: r } = fe();
892
- return (n, h) => (i(), P(Po, {
891
+ const { $t: u } = he();
892
+ return (s, v) => (n(), w(Po, {
893
893
  status: "success",
894
- title: e(r)({
894
+ title: e(u)({
895
895
  defaultMessage: "Payment successful",
896
896
  id: "subscription_payment_completed_card.title",
897
897
  description: "The title for when a payment has been successful"
898
898
  })
899
899
  }, {
900
- default: m(() => [
901
- _(e(Y), {
900
+ default: g(() => [
901
+ b(e(G), {
902
902
  variant: "body-xs",
903
903
  color: "subtle",
904
904
  tag: "span"
905
905
  }, {
906
- default: m(() => [
907
- O(M(e(r)({
906
+ default: g(() => [
907
+ D(N(e(u)({
908
908
  defaultMessage: "Thank you for subscribing.",
909
909
  id: "subscription_payment_completed_card.thank_you_for_subscribing",
910
910
  description: "The text shown after a successful message before a redirect"
@@ -916,100 +916,100 @@ const mi = {
916
916
  _: 1
917
917
  }, 8, ["title"]));
918
918
  }
919
- }), yi = { class: "flex flex-col gap-3" }, bi = { class: "sv-order-summary__usage-price grid grid-cols-2 gap-2" }, _i = /* @__PURE__ */ se({
919
+ }), yi = { class: "flex flex-col gap-3" }, bi = { class: "sv-order-summary__usage-price flex justify-between gap-2" }, _i = /* @__PURE__ */ se({
920
920
  __name: "OrderSummaryUsage",
921
921
  props: {
922
922
  groups: { type: Array }
923
923
  },
924
924
  setup(t) {
925
- const r = t, { $t: n } = fe(), { map: h } = ze(), a = u(
926
- () => n({
925
+ const u = t, { $t: s } = he(), { map: v } = je(), a = c(
926
+ () => s({
927
927
  defaultMessage: "+ Usage",
928
928
  id: "checkout.invoice_preview.usage_based_message",
929
929
  description: "The message shown for the usage based invoice preview"
930
930
  })
931
- ), L = u(() => {
932
- const C = r.groups.flatMap(
933
- (b) => b.prices.map((f) => f.billingPeriod)
931
+ ), I = c(() => {
932
+ const C = u.groups.flatMap(
933
+ (y) => y.prices.map((O) => O.billingPeriod)
934
934
  ), [o] = C;
935
- return !!o && (o.value ?? 1) === 1 && C.every((b) => (b == null ? void 0 : b.type) === o.type && (b.value ?? 1) === 1) ? n(
935
+ return !!o && (o.value ?? 1) === 1 && C.every((y) => (y == null ? void 0 : y.type) === o.type && (y.value ?? 1) === 1) ? s(
936
936
  {
937
937
  defaultMessage: "Billed {period}",
938
938
  id: "checkout.order_summary_block.usage.billed_period",
939
939
  description: 'Next to the usage line of the order summary, how often usage is billed, e.g. "Billed monthly"'
940
940
  },
941
- { period: h.value[o.type].full }
941
+ { period: v.value[o.type].full }
942
942
  ) : void 0;
943
943
  });
944
- return (C, o) => (i(), P(Ga, {
944
+ return (C, o) => (n(), w(Ga, {
945
945
  class: "sv-order-summary__usage",
946
946
  title: a.value,
947
- subtitle: L.value,
947
+ subtitle: I.value,
948
948
  expandable: t.groups.length > 0
949
949
  }, {
950
- default: m(() => [
951
- I("div", yi, [
952
- (i(!0), x(G, null, ce(t.groups, (T, b) => (i(), x("div", {
953
- key: b,
950
+ default: g(() => [
951
+ S("div", yi, [
952
+ (n(!0), x(K, null, ce(t.groups, (L, y) => (n(), x("div", {
953
+ key: y,
954
954
  class: "flex flex-col gap-1.5"
955
955
  }, [
956
- T.name ? (i(), P(e(Y), {
956
+ L.name ? (n(), w(e(G), {
957
957
  key: 0,
958
958
  variant: "caps-heading"
959
959
  }, {
960
- default: m(() => [
961
- O(M(T.name), 1)
960
+ default: g(() => [
961
+ D(N(L.name), 1)
962
962
  ]),
963
963
  _: 2
964
- }, 1024)) : N("", !0),
965
- (i(!0), x(G, null, ce(T.prices, (f, V) => (i(), x(G, { key: V }, [
966
- I("div", bi, [
967
- _(e(Y), {
964
+ }, 1024)) : $("", !0),
965
+ (n(!0), x(K, null, ce(L.prices, (O, j) => (n(), x(K, { key: j }, [
966
+ S("div", bi, [
967
+ b(e(G), {
968
968
  variant: "body-xs",
969
969
  weight: "semibold",
970
970
  tag: "div",
971
- class: "break-words"
971
+ class: "min-w-0 flex-1 break-words"
972
972
  }, {
973
- default: m(() => [
974
- O(M(f.name), 1)
973
+ default: g(() => [
974
+ D(N(O.name), 1)
975
975
  ]),
976
976
  _: 2
977
977
  }, 1024),
978
- _(e(Y), {
978
+ b(e(G), {
979
979
  variant: "body-xs",
980
980
  color: "subtle",
981
981
  tag: "div",
982
- class: "break-words text-right"
982
+ class: "min-w-0 max-w-[50%] break-words text-right"
983
983
  }, {
984
- default: m(() => [
985
- O(M(f.rate), 1)
984
+ default: g(() => [
985
+ D(N(O.rate), 1)
986
986
  ]),
987
987
  _: 2
988
988
  }, 1024)
989
989
  ]),
990
- (i(!0), x(G, null, ce(f.tiers, (B, U) => (i(), x("div", {
991
- key: `${V}-${U}`,
992
- class: "sv-order-summary__usage-price grid grid-cols-2 gap-2"
990
+ (n(!0), x(K, null, ce(O.rows, (A, U) => (n(), x("div", {
991
+ key: `${j}-${U}`,
992
+ class: "sv-order-summary__usage-price flex justify-between gap-2"
993
993
  }, [
994
- _(e(Y), {
994
+ b(e(G), {
995
995
  variant: "body-xs",
996
996
  color: "subtle",
997
997
  tag: "div",
998
- class: "break-words"
998
+ class: "min-w-0 flex-1 break-words"
999
999
  }, {
1000
- default: m(() => [
1001
- O(M(B.range), 1)
1000
+ default: g(() => [
1001
+ D(N(A.label), 1)
1002
1002
  ]),
1003
1003
  _: 2
1004
1004
  }, 1024),
1005
- _(e(Y), {
1005
+ b(e(G), {
1006
1006
  variant: "body-xs",
1007
1007
  color: "subtle",
1008
1008
  tag: "div",
1009
- class: "break-words text-right"
1009
+ class: "min-w-0 max-w-[50%] break-words text-right"
1010
1010
  }, {
1011
- default: m(() => [
1012
- O(M(B.rate), 1)
1011
+ default: g(() => [
1012
+ D(N(A.rate), 1)
1013
1013
  ]),
1014
1014
  _: 2
1015
1015
  }, 1024)
@@ -1021,48 +1021,48 @@ const mi = {
1021
1021
  _: 1
1022
1022
  }, 8, ["title", "subtitle", "expandable"]));
1023
1023
  }
1024
- }), ki = { class: "flex items-start" }, Pi = { class: "flex grow flex-col" }, Ai = { class: "flex items-center gap-1" }, wi = { class: "ml-4 flex items-center self-center" }, Ci = /* @__PURE__ */ se({
1024
+ }), ki = { class: "flex items-start" }, Pi = { class: "flex grow flex-col" }, wi = { class: "flex items-center gap-1" }, Ai = { class: "ml-4 flex items-center self-center" }, Ci = /* @__PURE__ */ se({
1025
1025
  __name: "PricingGroupContent",
1026
1026
  props: {
1027
1027
  name: { type: String },
1028
1028
  description: { type: String }
1029
1029
  },
1030
1030
  setup(t) {
1031
- return (r, n) => (i(), x("div", ki, [
1032
- I("div", Pi, [
1033
- I("div", Ai, [
1034
- _(e(Y), {
1031
+ return (u, s) => (n(), x("div", ki, [
1032
+ S("div", Pi, [
1033
+ S("div", wi, [
1034
+ b(e(G), {
1035
1035
  tag: "span",
1036
1036
  variant: "body-sm",
1037
1037
  weight: "semibold"
1038
1038
  }, {
1039
- default: m(() => [
1040
- O(M(t.name), 1)
1039
+ default: g(() => [
1040
+ D(N(t.name), 1)
1041
1041
  ]),
1042
1042
  _: 1
1043
1043
  }),
1044
- Rt(r.$slots, "badge")
1044
+ Rt(u.$slots, "badge")
1045
1045
  ]),
1046
- _(e(Y), {
1046
+ b(e(G), {
1047
1047
  tag: "span",
1048
1048
  variant: "body-xs",
1049
1049
  color: "subtle"
1050
1050
  }, {
1051
- default: m(() => [
1052
- O(M(t.description), 1)
1051
+ default: g(() => [
1052
+ D(N(t.description), 1)
1053
1053
  ]),
1054
1054
  _: 1
1055
1055
  })
1056
1056
  ]),
1057
- I("div", wi, [
1058
- Rt(r.$slots, "default")
1057
+ S("div", Ai, [
1058
+ Rt(u.$slots, "default")
1059
1059
  ])
1060
1060
  ]));
1061
1061
  }
1062
1062
  }), xi = {
1063
1063
  class: "sv-order-summary__updating",
1064
1064
  role: "status"
1065
- }, Ei = { class: "sr-only" }, Mi = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ii = { class: "px-3 py-2" }, Li = { class: "sv-order-summary__billing-period flex flex-col gap-3" }, Ti = {
1065
+ }, Mi = { class: "sr-only" }, Ei = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ii = { class: "px-3 py-2" }, Li = { class: "sv-order-summary__billing-period flex flex-col gap-3" }, Ti = {
1066
1066
  key: 0,
1067
1067
  class: "sv-order-summary__renewal flex flex-row gap-2 pt-1.5"
1068
1068
  }, ta = /* @__PURE__ */ se({
@@ -1086,35 +1086,35 @@ const mi = {
1086
1086
  isUpdating: { type: Boolean }
1087
1087
  },
1088
1088
  emits: ["billing-period-change"],
1089
- setup(t, { emit: r }) {
1090
- const n = t, h = r, { $t: a } = fe(), { map: L, formatTimePeriod: C } = ze(), { isMobileViewport: o } = ra(), T = u(() => o.value ? "sm" : "xs"), b = (p) => `${p.type}:${p.value}`, f = ["DAY", "WEEK", "MONTH", "YEAR"], V = (p) => f.includes(p), B = (p) => {
1091
- if (!p)
1089
+ setup(t, { emit: u }) {
1090
+ const s = t, v = u, { $t: a } = he(), { map: I, formatTimePeriod: C } = je(), { isMobileViewport: o } = ra(), L = c(() => o.value ? "sm" : "xs"), y = (h) => `${h.type}:${h.value}`, O = ["DAY", "WEEK", "MONTH", "YEAR"], j = (h) => O.includes(h), A = (h) => {
1091
+ if (!h)
1092
1092
  return;
1093
- const [E, v] = p.split(":"), l = Number(v);
1094
- if (!(!l || !V(E)))
1093
+ const [E, m] = h.split(":"), l = Number(m);
1094
+ if (!(!l || !j(E)))
1095
1095
  return { type: E, value: l };
1096
- }, U = u({
1096
+ }, U = c({
1097
1097
  get: () => {
1098
- const p = n.subscription.billing_period;
1099
- return p ? b(p) : void 0;
1098
+ const h = s.subscription.billing_period;
1099
+ return h ? y(h) : void 0;
1100
1100
  },
1101
- set: (p) => {
1102
- const E = B(p);
1103
- E && h("billing-period-change", E);
1101
+ set: (h) => {
1102
+ const E = A(h);
1103
+ E && v("billing-period-change", E);
1104
1104
  }
1105
- }), w = u({
1105
+ }), _ = c({
1106
1106
  get: () => U.value,
1107
- set: (p) => {
1108
- U.value = re(p);
1107
+ set: (h) => {
1108
+ U.value = re(h);
1109
1109
  }
1110
- }), A = (p) => {
1110
+ }), k = (h) => {
1111
1111
  var E;
1112
- return qt((E = n.invoicePreviewByBillingPeriod) == null ? void 0 : E[p]);
1113
- }, q = (p) => {
1114
- const E = A(b(p));
1112
+ return qt((E = s.invoicePreviewByBillingPeriod) == null ? void 0 : E[h]);
1113
+ }, M = (h) => {
1114
+ const E = k(y(h));
1115
1115
  if (!E)
1116
1116
  return;
1117
- const v = p.type === "MONTH" && p.value === 3 ? a({
1117
+ const m = h.type === "MONTH" && h.value === 3 ? a({
1118
1118
  defaultMessage: "/quarter",
1119
1119
  id: "checkout.order_summary_block.billing_period.per_quarter",
1120
1120
  description: "Period label for quarterly billing"
@@ -1125,7 +1125,7 @@ const mi = {
1125
1125
  description: "Period label for billing cycles"
1126
1126
  },
1127
1127
  {
1128
- period: C(p, {
1128
+ period: C(h, {
1129
1129
  prefix: !1,
1130
1130
  hideValueForExactPeriods: !0
1131
1131
  })
@@ -1138,12 +1138,12 @@ const mi = {
1138
1138
  description: "Billing period option sublabel showing price per period"
1139
1139
  },
1140
1140
  {
1141
- amount: ne(E),
1142
- period: v
1141
+ amount: ie(E),
1142
+ period: m
1143
1143
  }
1144
1144
  );
1145
- }, H = (p) => {
1146
- if (!p)
1145
+ }, F = (h) => {
1146
+ if (!h)
1147
1147
  return;
1148
1148
  const E = a(
1149
1149
  {
@@ -1151,31 +1151,31 @@ const mi = {
1151
1151
  id: "checkout.order_summary_block.billing_period.save_badge.prefix",
1152
1152
  description: "First line for the savings badge label"
1153
1153
  },
1154
- { amount: ne(p) }
1155
- ), v = a({
1154
+ { amount: ie(h) }
1155
+ ), m = a({
1156
1156
  defaultMessage: "/year",
1157
1157
  id: "checkout.order_summary_block.billing_period.save_badge.suffix",
1158
1158
  description: "Second line for the savings badge label"
1159
1159
  });
1160
- return `${E}${v}`;
1161
- }, te = u(
1162
- () => n.invoice ? Ha(n.invoice) : { recurring: [], oneOff: [], other: [] }
1163
- ), ee = u(
1164
- () => te.value.recurring.length > 0 && te.value.oneOff.length > 0
1165
- ), oe = u(
1166
- () => ee.value ? qt(n.invoice) : void 0
1167
- ), Z = u(
1168
- () => oe.value && Number(oe.value.quantity) !== 0 ? oe.value : void 0
1169
- ), c = u(() => {
1160
+ return `${E}${m}`;
1161
+ }, X = c(
1162
+ () => s.invoice ? Ha(s.invoice) : { recurring: [], oneOff: [], other: [] }
1163
+ ), Z = c(
1164
+ () => X.value.recurring.length > 0 && X.value.oneOff.length > 0
1165
+ ), Q = c(
1166
+ () => Z.value ? qt(s.invoice) : void 0
1167
+ ), H = c(
1168
+ () => Q.value && Number(Q.value.quantity) !== 0 ? Q.value : void 0
1169
+ ), i = c(() => {
1170
1170
  var me, ye, $e;
1171
- const p = ua({
1172
- pricingPlanScheduleInfos: n.subscription.pricing_plan_schedule_infos ?? [],
1171
+ const h = ua({
1172
+ pricingPlanScheduleInfos: s.subscription.pricing_plan_schedule_infos ?? [],
1173
1173
  type: "DEFAULT"
1174
- }), E = ((ye = (me = p == null ? void 0 : p.pricing_plan_version) == null ? void 0 : me.billing_period_settings) == null ? void 0 : ye.billing_periods) ?? [], v = /* @__PURE__ */ new Map(), l = (X) => {
1175
- X && v.set(b(X), X);
1176
- }, y = (X) => {
1177
- var Ae;
1178
- (Ae = X == null ? void 0 : X.items) == null || Ae.forEach((be) => {
1174
+ }), E = ((ye = (me = h == null ? void 0 : h.pricing_plan_version) == null ? void 0 : me.billing_period_settings) == null ? void 0 : ye.billing_periods) ?? [], m = /* @__PURE__ */ new Map(), l = (te) => {
1175
+ te && m.set(y(te), te);
1176
+ }, p = (te) => {
1177
+ var we;
1178
+ (we = te == null ? void 0 : te.items) == null || we.forEach((be) => {
1179
1179
  var le, _e;
1180
1180
  (le = be.billing_period_configs) == null || le.forEach(
1181
1181
  (ke) => l(ke.billing_period)
@@ -1187,27 +1187,27 @@ const mi = {
1187
1187
  });
1188
1188
  });
1189
1189
  };
1190
- if (((($e = p == null ? void 0 : p.pricing_plan_version) == null ? void 0 : $e.pricing_categories) ?? []).forEach((X) => {
1191
- var Ae, be;
1192
- (Ae = X.pricings) == null || Ae.forEach((le) => y(le)), (be = X.pricing_groups) == null || be.forEach(
1190
+ if (((($e = h == null ? void 0 : h.pricing_plan_version) == null ? void 0 : $e.pricing_categories) ?? []).forEach((te) => {
1191
+ var we, be;
1192
+ (we = te.pricings) == null || we.forEach((le) => p(le)), (be = te.pricing_groups) == null || be.forEach(
1193
1193
  (le) => {
1194
1194
  var _e;
1195
- return (_e = le.pricings) == null ? void 0 : _e.forEach((ke) => y(ke));
1195
+ return (_e = le.pricings) == null ? void 0 : _e.forEach((ke) => p(ke));
1196
1196
  }
1197
1197
  );
1198
- }), !v.size)
1198
+ }), !m.size)
1199
1199
  return [];
1200
- const ae = E.map((X) => v.get(b(X.period))).filter((X) => !!X), ie = new Set(ae.map(b)), J = [...v.values()].filter(
1201
- (X) => !ie.has(b(X))
1200
+ const oe = E.map((te) => m.get(y(te.period))).filter((te) => !!te), ne = new Set(oe.map(y)), ee = [...m.values()].filter(
1201
+ (te) => !ne.has(y(te))
1202
1202
  );
1203
- return [...ae, ...J];
1204
- }), $ = u(() => {
1205
- const p = c.value[c.value.length - 1], E = p ? De(
1206
- p,
1207
- A(b(p))
1203
+ return [...oe, ...ee];
1204
+ }), T = c(() => {
1205
+ const h = i.value[i.value.length - 1], E = h ? De(
1206
+ h,
1207
+ k(y(h))
1208
1208
  ) : void 0;
1209
- return c.value.map((l) => {
1210
- const y = l.type === "MONTH" && l.value === 3 ? a({
1209
+ return i.value.map((l) => {
1210
+ const p = l.type === "MONTH" && l.value === 3 ? a({
1211
1211
  defaultMessage: "Billed quarterly",
1212
1212
  id: "checkout.order_summary_block.billing_period.quarterly",
1213
1213
  description: "Billing period option label for quarterly billing"
@@ -1217,56 +1217,56 @@ const mi = {
1217
1217
  id: "checkout.order_summary_block.billing_period.label",
1218
1218
  description: "Billing period option label for the selected period"
1219
1219
  },
1220
- { period: L.value[l.type].full }
1221
- ), W = A(b(l)), ae = De(l, W), ie = p && l.type === p.type && l.value === p.value ? void 0 : jt(ae, E), J = H(ie);
1220
+ { period: I.value[l.type].full }
1221
+ ), J = k(y(l)), oe = De(l, J), ne = h && l.type === h.type && l.value === h.value ? void 0 : zt(oe, E), ee = F(ne);
1222
1222
  return {
1223
- label: y,
1224
- subLabel: q(l),
1225
- labelSuffixComponent: J ? {
1223
+ label: p,
1224
+ subLabel: M(l),
1225
+ labelSuffixComponent: ee ? {
1226
1226
  component: Xt,
1227
1227
  props: {
1228
1228
  color: "primary",
1229
- content: J,
1230
- size: T.value,
1229
+ content: ee,
1230
+ size: L.value,
1231
1231
  class: "whitespace-nowrap text-left leading-tight"
1232
1232
  }
1233
1233
  } : void 0,
1234
- hidden: U.value === b(l),
1235
- value: b(l)
1234
+ hidden: U.value === y(l),
1235
+ value: y(l)
1236
1236
  };
1237
1237
  });
1238
- }), R = u(() => {
1239
- const p = $.value, E = p[0], v = p[p.length - 1];
1238
+ }), R = c(() => {
1239
+ const h = T.value, E = h[0], m = h[h.length - 1];
1240
1240
  return {
1241
1241
  smallestPeriod: E == null ? void 0 : E.value,
1242
- biggestPeriod: v == null ? void 0 : v.value
1242
+ biggestPeriod: m == null ? void 0 : m.value
1243
1243
  };
1244
- }), D = u(
1245
- () => $.value.find((p) => p.value === R.value.biggestPeriod)
1246
- ), z = u(
1247
- () => $.value.find((p) => p.value === U.value)
1248
- ), d = u(() => {
1249
- const p = $.value, E = p[p.length - 1], v = U.value;
1250
- if (!E || !v || v === E.value)
1244
+ }), B = c(
1245
+ () => T.value.find((h) => h.value === R.value.biggestPeriod)
1246
+ ), q = c(
1247
+ () => T.value.find((h) => h.value === U.value)
1248
+ ), d = c(() => {
1249
+ const h = T.value, E = h[h.length - 1], m = U.value;
1250
+ if (!E || !m || m === E.value)
1251
1251
  return "";
1252
- const l = B(E.value);
1252
+ const l = A(E.value);
1253
1253
  if (!l)
1254
1254
  return "";
1255
- const y = A(E.value), W = B(v), ae = A(v);
1256
- if (!W || !ae)
1255
+ const p = k(E.value), J = A(m), oe = k(m);
1256
+ if (!J || !oe)
1257
1257
  return "";
1258
- const ie = De(W, ae), J = De(l, y);
1259
- return H(jt(ie, J)) ?? "";
1260
- }), j = u(
1258
+ const ne = De(J, oe), ee = De(l, p);
1259
+ return F(zt(ne, ee)) ?? "";
1260
+ }), z = c(
1261
1261
  () => {
1262
- var p;
1263
- return !!((p = n.invoiceSections) != null && p.length) && n.variant !== "products-inline";
1262
+ var h;
1263
+ return !!((h = s.invoiceSections) != null && h.length) && s.variant !== "products-inline";
1264
1264
  }
1265
- ), k = (p) => {
1266
- const { smallestPeriod: E, biggestPeriod: v } = R.value;
1267
- U.value = p ? v : E;
1265
+ ), P = (h) => {
1266
+ const { smallestPeriod: E, biggestPeriod: m } = R.value;
1267
+ U.value = h ? m : E;
1268
1268
  };
1269
- return (p, E) => (i(), P(e(he), {
1269
+ return (h, E) => (n(), w(e(fe), {
1270
1270
  class: "sv-order-summary",
1271
1271
  "no-border": "",
1272
1272
  "no-spacing": "",
@@ -1277,77 +1277,77 @@ const mi = {
1277
1277
  description: "The title of the order summary block that lists the subscription cost in the checkout"
1278
1278
  })
1279
1279
  }, $t({
1280
- default: m(() => [
1281
- I("div", Mi, [
1282
- (i(!0), x(G, null, ce(j.value ? [] : t.subscriptions ?? [t.subscription], (v, l) => (i(), P(e(he), {
1280
+ default: g(() => [
1281
+ S("div", Ei, [
1282
+ (n(!0), x(K, null, ce(z.value ? [] : t.subscriptions ?? [t.subscription], (m, l) => (n(), w(e(fe), {
1283
1283
  key: l,
1284
1284
  "no-spacing": "",
1285
1285
  class: "sv-order-summary__subscription"
1286
1286
  }, {
1287
- default: m(() => [
1288
- v ? (i(), P(Co, {
1287
+ default: g(() => [
1288
+ m ? (n(), w(Co, {
1289
1289
  key: 0,
1290
1290
  avatar: t.avatar,
1291
- subscription: v,
1291
+ subscription: m,
1292
1292
  "enabled-pricing-ids": t.enabledPricingIds
1293
- }, null, 8, ["avatar", "subscription", "enabled-pricing-ids"])) : N("", !0)
1293
+ }, null, 8, ["avatar", "subscription", "enabled-pricing-ids"])) : $("", !0)
1294
1294
  ]),
1295
1295
  _: 2
1296
1296
  }, 1024))), 128)),
1297
- $.value.length === 2 ? (i(), P(e(he), {
1297
+ T.value.length === 2 ? (n(), w(e(fe), {
1298
1298
  key: 0,
1299
1299
  "no-spacing": "",
1300
1300
  "content-classes": U.value === R.value.biggestPeriod ? "border-primary-500" : void 0
1301
1301
  }, {
1302
- default: m(() => {
1303
- var v;
1302
+ default: g(() => {
1303
+ var m;
1304
1304
  return [
1305
- I("div", Ii, [
1306
- I("div", Li, [
1307
- D.value ? (i(), P(Ci, {
1305
+ S("div", Ii, [
1306
+ S("div", Li, [
1307
+ B.value ? (n(), w(Ci, {
1308
1308
  key: 0,
1309
- name: D.value.label,
1310
- description: ((v = z.value) == null ? void 0 : v.subLabel) ?? ""
1309
+ name: B.value.label,
1310
+ description: ((m = q.value) == null ? void 0 : m.subLabel) ?? ""
1311
1311
  }, $t({
1312
- default: m(() => [
1313
- _(e(Ao), {
1312
+ default: g(() => [
1313
+ b(e(wo), {
1314
1314
  "model-value": U.value === R.value.biggestPeriod,
1315
1315
  size: "sm",
1316
- "onUpdate:modelValue": k
1316
+ "onUpdate:modelValue": P
1317
1317
  }, null, 8, ["model-value"])
1318
1318
  ]),
1319
1319
  _: 2
1320
1320
  }, [
1321
1321
  d.value ? {
1322
1322
  name: "badge",
1323
- fn: m(() => [
1324
- _(e(Xt), {
1323
+ fn: g(() => [
1324
+ b(e(Xt), {
1325
1325
  intent: "brand",
1326
1326
  content: d.value,
1327
- size: T.value,
1327
+ size: L.value,
1328
1328
  class: "whitespace-nowrap text-left leading-tight"
1329
1329
  }, null, 8, ["content", "size"])
1330
1330
  ]),
1331
1331
  key: "0"
1332
1332
  } : void 0
1333
- ]), 1032, ["name", "description"])) : N("", !0)
1333
+ ]), 1032, ["name", "description"])) : $("", !0)
1334
1334
  ])
1335
1335
  ])
1336
1336
  ];
1337
1337
  }),
1338
1338
  _: 1
1339
- }, 8, ["content-classes"])) : $.value.length > 2 ? (i(), P(e(wo), {
1339
+ }, 8, ["content-classes"])) : T.value.length > 2 ? (n(), w(e(Ao), {
1340
1340
  key: 1,
1341
- "single-model-value": w.value,
1342
- "onUpdate:singleModelValue": E[0] || (E[0] = (v) => w.value = v),
1341
+ "single-model-value": _.value,
1342
+ "onUpdate:singleModelValue": E[0] || (E[0] = (m) => _.value = m),
1343
1343
  class: "sv-order-summary__billing-period",
1344
- options: $.value,
1344
+ options: T.value,
1345
1345
  size: "xl",
1346
1346
  "has-large-dropdown": "",
1347
1347
  "show-sub-label-in-input": "",
1348
1348
  "show-suffix-in-closed-input": ""
1349
- }, null, 8, ["single-model-value", "options"])) : N("", !0),
1350
- t.invoice ? (i(), P(Ka, {
1349
+ }, null, 8, ["single-model-value", "options"])) : $("", !0),
1350
+ t.invoice ? (n(), w(Ka, {
1351
1351
  key: 2,
1352
1352
  "is-updating": t.isUpdating,
1353
1353
  invoice: t.invoice,
@@ -1358,29 +1358,29 @@ const mi = {
1358
1358
  "is-preview-without-taxes": !t.countryCode,
1359
1359
  variant: t.variant
1360
1360
  }, {
1361
- "before-totals": m(() => [
1362
- t.isUsageBased ? (i(), P(_i, {
1361
+ "before-totals": g(() => [
1362
+ t.isUsageBased ? (n(), w(_i, {
1363
1363
  key: 0,
1364
1364
  groups: t.usagePriceGroups ?? []
1365
- }, null, 8, ["groups"])) : N("", !0)
1365
+ }, null, 8, ["groups"])) : $("", !0)
1366
1366
  ]),
1367
- default: m(() => [
1368
- Z.value ? (i(), x("div", Ti, [
1369
- _(e(Y), {
1367
+ default: g(() => [
1368
+ H.value ? (n(), x("div", Ti, [
1369
+ b(e(G), {
1370
1370
  tag: "span",
1371
1371
  variant: "body-xs",
1372
1372
  color: "subtle",
1373
1373
  class: "grow"
1374
1374
  }, {
1375
- default: m(() => [
1376
- O(M(e(a)(
1375
+ default: g(() => [
1376
+ D(N(e(a)(
1377
1377
  {
1378
1378
  defaultMessage: "Then {amount} per {period}",
1379
1379
  id: "checkout.order_summary_block.renews_at",
1380
1380
  description: "The amount the subscription is charged every period after the first invoice"
1381
1381
  },
1382
1382
  {
1383
- amount: e(ne)(Z.value),
1383
+ amount: e(ie)(H.value),
1384
1384
  period: e(C)(t.subscription.billing_period, {
1385
1385
  prefix: !1,
1386
1386
  singular: !0,
@@ -1391,21 +1391,21 @@ const mi = {
1391
1391
  ]),
1392
1392
  _: 1
1393
1393
  })
1394
- ])) : N("", !0)
1394
+ ])) : $("", !0)
1395
1395
  ]),
1396
1396
  _: 1
1397
- }, 8, ["is-updating", "invoice", "sections", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes", "variant"])) : (i(), P(e(he), {
1397
+ }, 8, ["is-updating", "invoice", "sections", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes", "variant"])) : (n(), w(e(fe), {
1398
1398
  key: 3,
1399
1399
  class: "sv-order-summary__totals"
1400
1400
  }, {
1401
- default: m(() => [
1402
- _(e(Y), {
1401
+ default: g(() => [
1402
+ b(e(G), {
1403
1403
  variant: "body-sm",
1404
1404
  color: "subtle",
1405
1405
  class: "sv-order-summary__empty"
1406
1406
  }, {
1407
- default: m(() => [
1408
- O(M(e(a)({
1407
+ default: g(() => [
1408
+ D(N(e(a)({
1409
1409
  defaultMessage: "Please select a country first",
1410
1410
  description: "The message shown for the invoice preview when no country is set",
1411
1411
  id: "checkout.invoice_preview.no_country_selected_message"
@@ -1422,13 +1422,13 @@ const mi = {
1422
1422
  }, [
1423
1423
  t.isUpdating ? {
1424
1424
  name: "right",
1425
- fn: m(() => [
1426
- I("span", xi, [
1427
- _(e(za), {
1425
+ fn: g(() => [
1426
+ S("span", xi, [
1427
+ b(e(ja), {
1428
1428
  size: "4",
1429
1429
  color: "gray"
1430
1430
  }),
1431
- I("span", Ei, M(e(a)({
1431
+ S("span", Mi, N(e(a)({
1432
1432
  defaultMessage: "Updating the price",
1433
1433
  id: "checkout.order_summary_block.updating",
1434
1434
  description: "Read out while the order summary is priced again after the customer changed the order"
@@ -1445,92 +1445,92 @@ const mi = {
1445
1445
  nodes: { type: Array }
1446
1446
  },
1447
1447
  setup(t) {
1448
- return (r, n) => {
1449
- const h = Va("MarkdownInline", !0);
1450
- return i(!0), x(G, null, ce(t.nodes, (a, L) => (i(), x(G, { key: L }, [
1451
- a.type === "text" ? (i(), x(G, { key: 0 }, [
1452
- O(M(a.value), 1)
1453
- ], 64)) : a.type === "break" ? (i(), x("br", Ni)) : a.type === "bold" ? (i(), x("strong", Si, [
1454
- _(h, {
1448
+ return (u, s) => {
1449
+ const v = Va("MarkdownInline", !0);
1450
+ return n(!0), x(K, null, ce(t.nodes, (a, I) => (n(), x(K, { key: I }, [
1451
+ a.type === "text" ? (n(), x(K, { key: 0 }, [
1452
+ D(N(a.value), 1)
1453
+ ], 64)) : a.type === "break" ? (n(), x("br", Ni)) : a.type === "bold" ? (n(), x("strong", Si, [
1454
+ b(v, {
1455
1455
  nodes: a.children
1456
1456
  }, null, 8, ["nodes"])
1457
- ])) : a.type === "italic" ? (i(), x("em", Oi, [
1458
- _(h, {
1457
+ ])) : a.type === "italic" ? (n(), x("em", Oi, [
1458
+ b(v, {
1459
1459
  nodes: a.children
1460
1460
  }, null, 8, ["nodes"])
1461
- ])) : a.type === "underline" ? (i(), x("u", Ri, [
1462
- _(h, {
1461
+ ])) : a.type === "underline" ? (n(), x("u", Ri, [
1462
+ b(v, {
1463
1463
  nodes: a.children
1464
1464
  }, null, 8, ["nodes"])
1465
- ])) : a.type === "link" ? (i(), x("a", {
1465
+ ])) : a.type === "link" ? (n(), x("a", {
1466
1466
  key: 5,
1467
1467
  href: a.href,
1468
1468
  target: "_blank",
1469
1469
  rel: "noopener noreferrer",
1470
1470
  class: "underline"
1471
1471
  }, [
1472
- _(h, {
1472
+ b(v, {
1473
1473
  nodes: a.children
1474
1474
  }, null, 8, ["nodes"])
1475
- ], 8, $i)) : N("", !0)
1475
+ ], 8, $i)) : $("", !0)
1476
1476
  ], 64))), 128);
1477
1477
  };
1478
1478
  }
1479
- }), Bi = /^<u>([\s\S]*?)<\/u>/i, Di = /^\*\*([\s\S]+?)\*\*/, Ui = /^\*([\s\S]+?)\*/, Fi = /^_([\s\S]+?)_(?![\p{L}\p{N}])/u, qi = /[\p{L}\p{N}]/u, ji = /^\[([^\]]*)\]\(\s*([^)\s]*)\s*\)/, zi = /^<([a-z][a-z0-9+.-]*:[^>\s]+)>/i, Yi = /\n[ \t]*\n/;
1479
+ }), Bi = /^<u>([\s\S]*?)<\/u>/i, Di = /^\*\*([\s\S]+?)\*\*/, Ui = /^\*([\s\S]+?)\*/, Fi = /^_([\s\S]+?)_(?![\p{L}\p{N}])/u, qi = /[\p{L}\p{N}]/u, zi = /^\[([^\]]*)\]\(\s*([^)\s]*)\s*\)/, ji = /^<([a-z][a-z0-9+.-]*:[^>\s]+)>/i, Yi = /\n[ \t]*\n/;
1480
1480
  function Oe(t) {
1481
- const r = [];
1482
- let n = "";
1483
- const h = () => {
1484
- n && (r.push({ type: "text", value: n }), n = "");
1481
+ const u = [];
1482
+ let s = "";
1483
+ const v = () => {
1484
+ s && (u.push({ type: "text", value: s }), s = "");
1485
1485
  };
1486
1486
  let a = 0;
1487
1487
  for (; a < t.length; ) {
1488
- const L = t.slice(a), C = Di.exec(L);
1488
+ const I = t.slice(a), C = Di.exec(I);
1489
1489
  if (C) {
1490
- h(), r.push({ type: "bold", children: Oe(C[1]) }), a += C[0].length;
1490
+ v(), u.push({ type: "bold", children: Oe(C[1]) }), a += C[0].length;
1491
1491
  continue;
1492
1492
  }
1493
- const o = Ui.exec(L) ?? (Gi(t, a) ? Fi.exec(L) : null);
1493
+ const o = Ui.exec(I) ?? (Gi(t, a) ? Fi.exec(I) : null);
1494
1494
  if (o) {
1495
- h(), r.push({ type: "italic", children: Oe(o[1]) }), a += o[0].length;
1495
+ v(), u.push({ type: "italic", children: Oe(o[1]) }), a += o[0].length;
1496
1496
  continue;
1497
1497
  }
1498
- const T = Bi.exec(L);
1499
- if (T) {
1500
- h(), r.push({ type: "underline", children: Oe(T[1]) }), a += T[0].length;
1498
+ const L = Bi.exec(I);
1499
+ if (L) {
1500
+ v(), u.push({ type: "underline", children: Oe(L[1]) }), a += L[0].length;
1501
1501
  continue;
1502
1502
  }
1503
- const b = ji.exec(L);
1504
- if (b) {
1505
- h(), r.push(aa(b[2], Oe(b[1]))), a += b[0].length;
1503
+ const y = zi.exec(I);
1504
+ if (y) {
1505
+ v(), u.push(aa(y[2], Oe(y[1]))), a += y[0].length;
1506
1506
  continue;
1507
1507
  }
1508
- const f = zi.exec(L);
1509
- if (f) {
1510
- h(), r.push(aa(f[1], [{ type: "text", value: f[1] }])), a += f[0].length;
1508
+ const O = ji.exec(I);
1509
+ if (O) {
1510
+ v(), u.push(aa(O[1], [{ type: "text", value: O[1] }])), a += O[0].length;
1511
1511
  continue;
1512
1512
  }
1513
1513
  if (t[a] === `
1514
1514
  `) {
1515
- h(), r.push({ type: "break" }), a += 1;
1515
+ v(), u.push({ type: "break" }), a += 1;
1516
1516
  continue;
1517
1517
  }
1518
- n += t[a], a += 1;
1518
+ s += t[a], a += 1;
1519
1519
  }
1520
- return h(), r;
1520
+ return v(), u;
1521
1521
  }
1522
- function Gi(t, r) {
1523
- return r === 0 || !qi.test(t[r - 1]);
1522
+ function Gi(t, u) {
1523
+ return u === 0 || !qi.test(t[u - 1]);
1524
1524
  }
1525
- function aa(t, r) {
1526
- const n = Io(t);
1527
- return n ? { type: "link", href: n, children: r } : { type: "text", value: da(r) };
1525
+ function aa(t, u) {
1526
+ const s = Io(t);
1527
+ return s ? { type: "link", href: s, children: u } : { type: "text", value: da(u) };
1528
1528
  }
1529
1529
  function da(t) {
1530
- return t.map((r) => r.type === "text" ? r.value : r.type === "break" ? " " : da(r.children)).join("");
1530
+ return t.map((u) => u.type === "text" ? u.value : u.type === "break" ? " " : da(u.children)).join("");
1531
1531
  }
1532
1532
  function Hi(t) {
1533
- return t != null && t.trim() ? t.split(Yi).map((r) => r.trim()).filter(Boolean).map((r) => ({ type: "paragraph", children: Oe(r) })) : [];
1533
+ return t != null && t.trim() ? t.split(Yi).map((u) => u.trim()).filter(Boolean).map((u) => ({ type: "paragraph", children: Oe(u) })) : [];
1534
1534
  }
1535
1535
  const Ki = { key: 0 }, Zi = /* @__PURE__ */ se({
1536
1536
  __name: "MarkdownText",
@@ -1538,52 +1538,52 @@ const Ki = { key: 0 }, Zi = /* @__PURE__ */ se({
1538
1538
  source: { type: [String, null] }
1539
1539
  },
1540
1540
  setup(t) {
1541
- const r = t, n = u(() => Hi(r.source));
1542
- return (h, a) => n.value.length ? (i(), x("div", Ki, [
1543
- (i(!0), x(G, null, ce(n.value, (L, C) => (i(), x("p", {
1541
+ const u = t, s = c(() => Hi(u.source));
1542
+ return (v, a) => s.value.length ? (n(), x("div", Ki, [
1543
+ (n(!0), x(K, null, ce(s.value, (I, C) => (n(), x("p", {
1544
1544
  key: C,
1545
- class: rt({ "mt-2": C > 0 })
1545
+ class: ut({ "mt-2": C > 0 })
1546
1546
  }, [
1547
- _(Vi, {
1548
- nodes: L.children
1547
+ b(Vi, {
1548
+ nodes: I.children
1549
1549
  }, null, 8, ["nodes"])
1550
1550
  ], 2))), 128))
1551
- ])) : N("", !0);
1551
+ ])) : $("", !0);
1552
1552
  }
1553
1553
  });
1554
- async function Wi(t, r, { onSubmit: n } = {}) {
1555
- const { AdyenCheckout: h } = await ca();
1556
- return h(
1554
+ async function Wi(t, u, { onSubmit: s } = {}) {
1555
+ const { AdyenCheckout: v } = await ca();
1556
+ return v(
1557
1557
  No({
1558
1558
  locale: t.locale,
1559
1559
  amount: t.amount,
1560
1560
  countryCode: t.countryCode,
1561
1561
  paymentMethodOptionResponse: t.paymentMethodOptionsResponse,
1562
- logger: r,
1563
- onSubmit: n
1562
+ logger: u,
1563
+ onSubmit: s
1564
1564
  })
1565
1565
  );
1566
1566
  }
1567
1567
  const Ji = /* @__PURE__ */ se({
1568
1568
  __name: "ExpressPaymentMethodButton",
1569
1569
  emits: ["click"],
1570
- setup(t, { emit: r }) {
1571
- const n = r;
1572
- function h() {
1573
- n("click");
1570
+ setup(t, { emit: u }) {
1571
+ const s = u;
1572
+ function v() {
1573
+ s("click");
1574
1574
  }
1575
- return (a, L) => (i(), P(e(Ie), {
1575
+ return (a, I) => (n(), w(e(Ie), {
1576
1576
  size: "lg",
1577
1577
  "aria-label": "Apple Pay",
1578
1578
  class: "!block h-11 w-full !bg-black !py-0",
1579
- onClick: h
1579
+ onClick: v
1580
1580
  }, {
1581
- default: m(() => [...L[0] || (L[0] = [
1582
- I("svg", {
1581
+ default: g(() => [...I[0] || (I[0] = [
1582
+ S("svg", {
1583
1583
  viewBox: "0 0 35 15",
1584
1584
  class: "h-[44px]"
1585
1585
  }, [
1586
- I("svg", {
1586
+ S("svg", {
1587
1587
  x: "0",
1588
1588
  y: "3.85",
1589
1589
  height: "7.3",
@@ -1593,19 +1593,19 @@ const Ji = /* @__PURE__ */ se({
1593
1593
  version: "1.1",
1594
1594
  xmlns: "http://www.w3.org/2000/svg"
1595
1595
  }, [
1596
- I("title", null, "Apple Logo"),
1597
- I("g", {
1596
+ S("title", null, "Apple Logo"),
1597
+ S("g", {
1598
1598
  stroke: "none",
1599
1599
  "stroke-width": "1",
1600
1600
  fill: "none",
1601
1601
  "fill-rule": "evenodd"
1602
1602
  }, [
1603
- I("g", { fill: "#FFF" }, [
1604
- I("path", { d: "M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674" }),
1605
- I("path", { d: "M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926" }),
1606
- I("path", { d: "M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381" }),
1607
- I("path", { d: "M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z" }),
1608
- I("path", { d: "M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345" })
1603
+ S("g", { fill: "#FFF" }, [
1604
+ S("path", { d: "M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674" }),
1605
+ S("path", { d: "M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926" }),
1606
+ S("path", { d: "M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381" }),
1607
+ S("path", { d: "M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z" }),
1608
+ S("path", { d: "M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345" })
1609
1609
  ])
1610
1610
  ])
1611
1611
  ])
@@ -1628,135 +1628,135 @@ const Ji = /* @__PURE__ */ se({
1628
1628
  billingInformation: { type: Object }
1629
1629
  },
1630
1630
  emits: ["ready", "unavailable", "update-billing-information", "payment-success", "payment-failed"],
1631
- setup(t, { emit: r }) {
1632
- const n = t, h = r, a = Q();
1633
- let L, C = 0;
1634
- const o = sa(), { authorizePayment: T } = Oo(), b = n.paymentMethodOptionsResponse.payment_acceptor.id;
1635
- function f(c) {
1631
+ setup(t, { emit: u }) {
1632
+ const s = t, v = u, a = ae();
1633
+ let I, C = 0;
1634
+ const o = sa(), { authorizePayment: L } = Oo(), y = s.paymentMethodOptionsResponse.payment_acceptor.id;
1635
+ function O(i) {
1636
1636
  return Ro({
1637
1637
  gateway: "ADYEN",
1638
- paymentAcceptorId: b,
1638
+ paymentAcceptorId: y,
1639
1639
  paymentMethodType: "applepay",
1640
- ...c
1640
+ ...i
1641
1641
  });
1642
1642
  }
1643
- const V = (c) => {
1644
- var $;
1645
- return c.status === "SUCCESS" && (($ = c.payment) == null ? void 0 : $.result) === "AUTHORIZED";
1646
- }, B = () => Object.assign(new Error("Apple Pay payment could not be confirmed"), {
1643
+ const j = (i) => {
1644
+ var T;
1645
+ return i.status === "SUCCESS" && ((T = i.payment) == null ? void 0 : T.result) === "AUTHORIZED";
1646
+ }, A = () => Object.assign(new Error("Apple Pay payment could not be confirmed"), {
1647
1647
  code: "PAYMENT_OUTCOME_UNCONFIRMED"
1648
- }), U = async (c, $) => {
1649
- var D;
1650
- const R = (z) => {
1651
- $.reject(), h("payment-failed", z);
1648
+ }), U = async (i, T) => {
1649
+ var B;
1650
+ const R = (q) => {
1651
+ T.reject(), v("payment-failed", q);
1652
1652
  };
1653
1653
  try {
1654
- const z = await T({
1655
- payment_acceptor_id: b,
1654
+ const q = await L({
1655
+ payment_acceptor_id: y,
1656
1656
  payment_gateway_variant: Qi,
1657
1657
  adyen: {
1658
- payment_method: Qt(c.data.paymentMethod),
1659
- ...c.data.riskData && {
1660
- risk_data: Qt(c.data.riskData)
1658
+ payment_method: Qt(i.data.paymentMethod),
1659
+ ...i.data.riskData && {
1660
+ risk_data: Qt(i.data.riskData)
1661
1661
  },
1662
1662
  store_payment_method: !0
1663
1663
  // Required for recurring payments
1664
1664
  },
1665
- amount: n.amount,
1666
- ...n.context ? { context: n.context } : {},
1667
- return_url: So({ paymentAcceptorId: b, redirectUrl: window.location.href })
1665
+ amount: s.amount,
1666
+ ...s.context ? { context: s.context } : {},
1667
+ return_url: So({ paymentAcceptorId: y, redirectUrl: window.location.href })
1668
1668
  });
1669
- if (V(z)) {
1670
- $.resolve({ resultCode: "Authorised" }), h("payment-success");
1669
+ if (j(q)) {
1670
+ T.resolve({ resultCode: "Authorised" }), v("payment-success");
1671
1671
  return;
1672
1672
  }
1673
- if ($o(z) === "UNCONFIRMED") {
1673
+ if ($o(q) === "UNCONFIRMED") {
1674
1674
  o.warn(
1675
1675
  "PAYMENT_OUTCOME_UNCONFIRMED",
1676
1676
  "The payment outcome could not be confirmed yet",
1677
- f({
1677
+ O({
1678
1678
  reason: "PAYMENT_PENDING",
1679
1679
  extra: {
1680
- paymentStatus: z.status,
1681
- paymentResult: (D = z.payment) == null ? void 0 : D.result
1680
+ paymentStatus: q.status,
1681
+ paymentResult: (B = q.payment) == null ? void 0 : B.result
1682
1682
  }
1683
1683
  })
1684
- ), R(B());
1684
+ ), R(A());
1685
1685
  return;
1686
1686
  }
1687
1687
  o.error(
1688
1688
  "APPLE_PAY_AUTHORIZATION_FAILED",
1689
1689
  "Payment authorization failed",
1690
- f({
1690
+ O({
1691
1691
  reason: "APPLE_PAY_AUTHORIZATION_REJECTED",
1692
- extra: { paymentStatus: z.status }
1692
+ extra: { paymentStatus: q.status }
1693
1693
  })
1694
- ), R(new Error(`Apple Pay payment was not authorized (${z.status})`));
1695
- } catch (z) {
1694
+ ), R(new Error(`Apple Pay payment was not authorized (${q.status})`));
1695
+ } catch (q) {
1696
1696
  if (o.error(
1697
1697
  "APPLE_PAY_AUTHORIZATION_FAILED",
1698
1698
  "Apple Pay authorization failed",
1699
- f({ reason: "APPLE_PAY_AUTHORIZATION_FAILED", cause: z }),
1700
- z
1701
- ), Vo(z)) {
1702
- R(B());
1699
+ O({ reason: "APPLE_PAY_AUTHORIZATION_FAILED", cause: q }),
1700
+ q
1701
+ ), Vo(q)) {
1702
+ R(A());
1703
1703
  return;
1704
1704
  }
1705
- R(z instanceof Error ? z : new Error("Apple Pay authorization failed"));
1705
+ R(q instanceof Error ? q : new Error("Apple Pay authorization failed"));
1706
1706
  }
1707
- }, w = async () => {
1708
- const c = C, { ApplePay: $ } = await ca(), R = await Wi(n, o, {
1709
- onSubmit: (d, j, k) => void U(d, k)
1710
- }), D = n.billingInformation.regular ? {
1711
- paymentDescription: n.billingInformation.description,
1712
- billingAgreement: n.billingInformation.agreement,
1713
- managementURL: n.billingInformation.managementURL,
1714
- ...n.billingInformation.trial && {
1707
+ }, _ = async () => {
1708
+ const i = C, { ApplePay: T } = await ca(), R = await Wi(s, o, {
1709
+ onSubmit: (d, z, P) => void U(d, P)
1710
+ }), B = s.billingInformation.regular ? {
1711
+ paymentDescription: s.billingInformation.description,
1712
+ billingAgreement: s.billingInformation.agreement,
1713
+ managementURL: s.billingInformation.managementURL,
1714
+ ...s.billingInformation.trial && {
1715
1715
  trialBilling: {
1716
- label: n.billingInformation.trial.label,
1717
- amount: n.billingInformation.trial.amount.quantity.toString(),
1716
+ label: s.billingInformation.trial.label,
1717
+ amount: s.billingInformation.trial.amount.quantity.toString(),
1718
1718
  type: "final",
1719
1719
  paymentTiming: "recurring",
1720
- recurringPaymentStartDate: n.billingInformation.trial.startDate,
1721
- recurringPaymentEndDate: n.billingInformation.trial.endDate
1720
+ recurringPaymentStartDate: s.billingInformation.trial.startDate,
1721
+ recurringPaymentEndDate: s.billingInformation.trial.endDate
1722
1722
  }
1723
1723
  },
1724
1724
  regularBilling: {
1725
- label: n.billingInformation.regular.label,
1726
- amount: n.billingInformation.regular.amount.quantity.toString(),
1725
+ label: s.billingInformation.regular.label,
1726
+ amount: s.billingInformation.regular.amount.quantity.toString(),
1727
1727
  type: "final",
1728
1728
  paymentTiming: "recurring",
1729
- recurringPaymentStartDate: n.billingInformation.regular.startDate,
1730
- ...q(
1731
- n.billingInformation.regular.interval ?? { type: "MONTH", value: 1 }
1729
+ recurringPaymentStartDate: s.billingInformation.regular.startDate,
1730
+ ...M(
1731
+ s.billingInformation.regular.interval ?? { type: "MONTH", value: 1 }
1732
1732
  )
1733
1733
  }
1734
- } : void 0, z = new $(R, {
1734
+ } : void 0, q = new T(R, {
1735
1735
  isExpress: !0,
1736
- ...D && { recurringPaymentRequest: D },
1736
+ ...B && { recurringPaymentRequest: B },
1737
1737
  requiredBillingContactFields: ["postalAddress"],
1738
1738
  requiredShippingContactFields: ["email"],
1739
- onPaymentMethodSelected: async (d, j, k) => {
1740
- var l, y, W, ae, ie, J, me, ye;
1741
- const { invoicePreview: p, trialInvoicePreview: E } = await n.onBillingInformationChange({
1742
- ...((l = k.paymentMethod.billingContact) == null ? void 0 : l.postalCode) && {
1743
- postalCode: k.paymentMethod.billingContact.postalCode
1739
+ onPaymentMethodSelected: async (d, z, P) => {
1740
+ var l, p, J, oe, ne, ee, me, ye;
1741
+ const { invoicePreview: h, trialInvoicePreview: E } = await s.onBillingInformationChange({
1742
+ ...((l = P.paymentMethod.billingContact) == null ? void 0 : l.postalCode) && {
1743
+ postalCode: P.paymentMethod.billingContact.postalCode
1744
1744
  },
1745
- ...((y = k.paymentMethod.billingContact) == null ? void 0 : y.locality) && {
1746
- city: k.paymentMethod.billingContact.locality
1745
+ ...((p = P.paymentMethod.billingContact) == null ? void 0 : p.locality) && {
1746
+ city: P.paymentMethod.billingContact.locality
1747
1747
  },
1748
- ...ee((W = k.paymentMethod.billingContact) == null ? void 0 : W.countryCode) && {
1749
- country: ee((ae = k.paymentMethod.billingContact) == null ? void 0 : ae.countryCode)
1748
+ ...Z((J = P.paymentMethod.billingContact) == null ? void 0 : J.countryCode) && {
1749
+ country: Z((oe = P.paymentMethod.billingContact) == null ? void 0 : oe.countryCode)
1750
1750
  }
1751
- }), v = E ? E.invoice_amount_including_tax.quantity.toString() : p.invoice_amount_including_tax.quantity.toString();
1752
- h("update-billing-information", {
1753
- postal_code: (ie = k.paymentMethod.billingContact) == null ? void 0 : ie.postalCode,
1754
- city: (J = k.paymentMethod.billingContact) == null ? void 0 : J.locality,
1755
- country: (me = k.paymentMethod.billingContact) == null ? void 0 : me.countryCode
1751
+ }), m = E ? E.invoice_amount_including_tax.quantity.toString() : h.invoice_amount_including_tax.quantity.toString();
1752
+ v("update-billing-information", {
1753
+ postal_code: (ne = P.paymentMethod.billingContact) == null ? void 0 : ne.postalCode,
1754
+ city: (ee = P.paymentMethod.billingContact) == null ? void 0 : ee.locality,
1755
+ country: (me = P.paymentMethod.billingContact) == null ? void 0 : me.countryCode
1756
1756
  }), d({
1757
1757
  newTotal: {
1758
- label: ((ye = n.billingInformation.regular) == null ? void 0 : ye.label) ?? n.billingInformation.description,
1759
- amount: v,
1758
+ label: ((ye = s.billingInformation.regular) == null ? void 0 : ye.label) ?? s.billingInformation.description,
1759
+ amount: m,
1760
1760
  type: "final"
1761
1761
  }
1762
1762
  });
@@ -1765,7 +1765,7 @@ const Ji = /* @__PURE__ */ se({
1765
1765
  o.error(
1766
1766
  "APPLE_PAY_ERROR",
1767
1767
  "Apple Pay error",
1768
- f({ reason: "APPLE_PAY_ERROR", cause: d }),
1768
+ O({ reason: "APPLE_PAY_ERROR", cause: d }),
1769
1769
  d
1770
1770
  );
1771
1771
  },
@@ -1775,26 +1775,26 @@ const Ji = /* @__PURE__ */ se({
1775
1775
  * rejection shows the customer an error in the sheet rather than taking their money for a
1776
1776
  * subscription the checkout cannot create.
1777
1777
  */
1778
- onAuthorized: async (d, j) => {
1779
- var k, p, E, v;
1778
+ onAuthorized: async (d, z) => {
1779
+ var P, h, E, m;
1780
1780
  try {
1781
- const l = (k = d.authorizedEvent.payment) == null ? void 0 : k.billingContact, y = l ? H(l) : d.billingAddress ? te(d.billingAddress) : void 0, W = (E = (p = d.authorizedEvent.payment) == null ? void 0 : p.shippingContact) == null ? void 0 : E.emailAddress;
1782
- if ((y || W) && (h("update-billing-information", { ...y, ...W && { email: W } }), await Re()), !(await ((v = n.validateOnSubmit) == null ? void 0 : v.call(n)) ?? !0)) {
1781
+ const l = (P = d.authorizedEvent.payment) == null ? void 0 : P.billingContact, p = l ? F(l) : d.billingAddress ? X(d.billingAddress) : void 0, J = (E = (h = d.authorizedEvent.payment) == null ? void 0 : h.shippingContact) == null ? void 0 : E.emailAddress;
1782
+ if ((p || J) && (v("update-billing-information", { ...p, ...J && { email: J } }), await Re()), !(await ((m = s.validateOnSubmit) == null ? void 0 : m.call(s)) ?? !0)) {
1783
1783
  o.warn(
1784
1784
  "APPLE_PAY_FORM_INCOMPLETE",
1785
1785
  "Apple Pay authorization stopped: the checkout form is incomplete",
1786
- f({ reason: "APPLE_PAY_FORM_INVALID" })
1787
- ), j.reject(), h("payment-failed", new Error("The checkout form is incomplete"));
1786
+ O({ reason: "APPLE_PAY_FORM_INVALID" })
1787
+ ), z.reject(), v("payment-failed", new Error("The checkout form is incomplete"));
1788
1788
  return;
1789
1789
  }
1790
- j.resolve();
1790
+ z.resolve();
1791
1791
  } catch (l) {
1792
1792
  o.error(
1793
1793
  "APPLE_PAY_AUTHORIZATION_FAILED",
1794
1794
  "Apple Pay authorization failed",
1795
- f({ reason: "APPLE_PAY_AUTHORIZATION_FAILED", cause: l }),
1795
+ O({ reason: "APPLE_PAY_AUTHORIZATION_FAILED", cause: l }),
1796
1796
  l
1797
- ), j.reject(), h(
1797
+ ), z.reject(), v(
1798
1798
  "payment-failed",
1799
1799
  l instanceof Error ? l : new Error("Apple Pay authorization failed")
1800
1800
  );
@@ -1806,81 +1806,81 @@ const Ji = /* @__PURE__ */ se({
1806
1806
  return;
1807
1807
  }
1808
1808
  try {
1809
- if (await z.isAvailable(), c !== C)
1809
+ if (await q.isAvailable(), i !== C)
1810
1810
  return;
1811
- z.mount(a.value), L = z, h("ready");
1811
+ q.mount(a.value), I = q, v("ready");
1812
1812
  } catch (d) {
1813
- o.error("APPLE_PAY_ERROR", "Apple Pay not available on this device", {}, d), c === C && h("unavailable");
1813
+ o.error("APPLE_PAY_ERROR", "Apple Pay not available on this device", {}, d), i === C && v("unavailable");
1814
1814
  }
1815
- }, A = () => {
1816
- C += 1, L == null || L.unmount(), L = void 0;
1817
- }, q = (c) => {
1818
- if (!c.value)
1815
+ }, k = () => {
1816
+ C += 1, I == null || I.unmount(), I = void 0;
1817
+ }, M = (i) => {
1818
+ if (!i.value)
1819
1819
  return;
1820
- let $ = c.value ?? 1, R = c.type.toLowerCase();
1821
- if (c.type === "WEEK" && (R = "day", $ = c.value * 7), R === "day" || R === "month" || R === "year" || R === "hour" || R === "minute")
1820
+ let T = i.value ?? 1, R = i.type.toLowerCase();
1821
+ if (i.type === "WEEK" && (R = "day", T = i.value * 7), R === "day" || R === "month" || R === "year" || R === "hour" || R === "minute")
1822
1822
  return {
1823
1823
  recurringPaymentIntervalUnit: R,
1824
- recurringPaymentIntervalCount: $
1824
+ recurringPaymentIntervalCount: T
1825
1825
  };
1826
- }, H = (c) => {
1827
- var $, R;
1826
+ }, F = (i) => {
1827
+ var T, R;
1828
1828
  return {
1829
- ...(($ = c.addressLines) == null ? void 0 : $[0]) && { line1: c.addressLines[0] },
1830
- ...((R = c.addressLines) == null ? void 0 : R[1]) && { line2: c.addressLines[1] },
1831
- ...c.administrativeArea && { state: c.administrativeArea },
1832
- postal_code: c.postalCode,
1833
- city: c.locality,
1834
- country: c.countryCode
1829
+ ...((T = i.addressLines) == null ? void 0 : T[0]) && { line1: i.addressLines[0] },
1830
+ ...((R = i.addressLines) == null ? void 0 : R[1]) && { line2: i.addressLines[1] },
1831
+ ...i.administrativeArea && { state: i.administrativeArea },
1832
+ postal_code: i.postalCode,
1833
+ city: i.locality,
1834
+ country: i.countryCode
1835
1835
  };
1836
- }, te = (c) => ({
1837
- ...c.street && { line1: c.street },
1838
- ...c.houseNumberOrName && { line2: c.houseNumberOrName },
1839
- ...c.stateOrProvince && { state: c.stateOrProvince },
1840
- postal_code: c.postalCode,
1841
- city: c.city,
1842
- country: c.country
1843
- }), ee = (c) => c && je(c) ? c : void 0, oe = () => {
1844
- var $;
1845
- const c = ($ = a.value) == null ? void 0 : $.querySelector("apple-pay-button");
1846
- if (c) {
1836
+ }, X = (i) => ({
1837
+ ...i.street && { line1: i.street },
1838
+ ...i.houseNumberOrName && { line2: i.houseNumberOrName },
1839
+ ...i.stateOrProvince && { state: i.stateOrProvince },
1840
+ postal_code: i.postalCode,
1841
+ city: i.city,
1842
+ country: i.country
1843
+ }), Z = (i) => i && ze(i) ? i : void 0, Q = () => {
1844
+ var T;
1845
+ const i = (T = a.value) == null ? void 0 : T.querySelector("apple-pay-button");
1846
+ if (i) {
1847
1847
  const R = new MouseEvent("click", {
1848
1848
  bubbles: !0,
1849
1849
  cancelable: !0,
1850
1850
  view: window
1851
1851
  });
1852
- c.dispatchEvent(R);
1852
+ i.dispatchEvent(R);
1853
1853
  }
1854
- }, Z = async () => {
1854
+ }, H = async () => {
1855
1855
  try {
1856
- await w();
1857
- } catch (c) {
1856
+ await _();
1857
+ } catch (i) {
1858
1858
  o.error(
1859
1859
  "APPLE_PAY_ERROR",
1860
1860
  "Apple Pay could not be set up",
1861
- f({ reason: "APPLE_PAY_SETUP_FAILED", cause: c }),
1862
- c
1861
+ O({ reason: "APPLE_PAY_SETUP_FAILED", cause: i }),
1862
+ i
1863
1863
  );
1864
1864
  }
1865
1865
  };
1866
1866
  return na(() => {
1867
- Z();
1867
+ H();
1868
1868
  }), Pe(
1869
1869
  // By value: `amount` is rebuilt by every invoice preview, and `onPaymentMethodSelected` asks
1870
1870
  // for one as the sheet opens — comparing objects would tear down the live session.
1871
- () => [n.amount.quantity, n.amount.currency, n.billingInformation.agreement].join(
1871
+ () => [s.amount.quantity, s.amount.currency, s.billingInformation.agreement].join(
1872
1872
  "|"
1873
1873
  ),
1874
1874
  () => {
1875
- A(), Z();
1875
+ k(), H();
1876
1876
  }
1877
- ), Ba(A), (c, $) => (i(), x(G, null, [
1878
- t.isVisible ? (i(), P(Ji, {
1877
+ ), Ba(k), (i, T) => (n(), x(K, null, [
1878
+ t.isVisible ? (n(), w(Ji, {
1879
1879
  key: 0,
1880
- onClick: oe
1881
- })) : N("", !0),
1882
- I("div", Xi, [
1883
- I("div", {
1880
+ onClick: Q
1881
+ })) : $("", !0),
1882
+ S("div", Xi, [
1883
+ S("div", {
1884
1884
  ref_key: "applePayButtonRef",
1885
1885
  ref: a
1886
1886
  }, null, 512)
@@ -1904,199 +1904,247 @@ const Ji = /* @__PURE__ */ se({
1904
1904
  },
1905
1905
  emits: ["update-billing-information", "payment-success", "payment-failed"],
1906
1906
  setup(t) {
1907
- const r = t, { $t: n } = fe(), h = Q(!1), a = Q(!1), L = u(
1907
+ const u = t, { $t: s } = he(), v = ae(!1), a = ae(!1), I = c(
1908
1908
  () => {
1909
1909
  var o;
1910
- return (o = r.paymentMethodsOptionsResponse) == null ? void 0 : o.find(
1911
- (T) => {
1912
- var b;
1913
- return (b = T.options) == null ? void 0 : b.some(
1914
- (f) => f.name.toLowerCase() === "apple pay" && f.payment_gateway_variant === "ADYEN"
1910
+ return (o = u.paymentMethodsOptionsResponse) == null ? void 0 : o.find(
1911
+ (L) => {
1912
+ var y;
1913
+ return (y = L.options) == null ? void 0 : y.some(
1914
+ (O) => O.name.toLowerCase() === "apple pay" && O.payment_gateway_variant === "ADYEN"
1915
1915
  );
1916
1916
  }
1917
1917
  );
1918
1918
  }
1919
- ), C = u(() => a.value ? void 0 : L.value);
1920
- return (o, T) => C.value ? (i(), x("div", tn, [
1921
- I("div", an, [
1922
- h.value ? (i(), P(e(Y), {
1919
+ ), C = c(() => a.value ? void 0 : I.value);
1920
+ return (o, L) => C.value ? (n(), x("div", tn, [
1921
+ S("div", an, [
1922
+ v.value ? (n(), w(e(G), {
1923
1923
  key: 1,
1924
1924
  variant: "heading-3",
1925
1925
  tag: "h2"
1926
1926
  }, {
1927
- default: m(() => [
1928
- O(M(e(n)({
1927
+ default: g(() => [
1928
+ D(N(e(s)({
1929
1929
  defaultMessage: "Subscribe instantly with",
1930
1930
  id: "checkout.express_payment_methods.title",
1931
1931
  description: "The title of the express payment methods block in the checkout form"
1932
1932
  })), 1)
1933
1933
  ]),
1934
1934
  _: 1
1935
- })) : (i(), P(Me, {
1935
+ })) : (n(), w(Ee, {
1936
1936
  key: 0,
1937
1937
  variant: "title"
1938
1938
  }))
1939
1939
  ]),
1940
- I("div", null, [
1941
- h.value ? N("", !0) : (i(), P(Me, {
1940
+ S("div", null, [
1941
+ v.value ? $("", !0) : (n(), w(Ee, {
1942
1942
  key: 0,
1943
1943
  class: "h-11"
1944
1944
  })),
1945
- _(en, {
1945
+ b(en, {
1946
1946
  amount: t.amount,
1947
1947
  "billing-information": t.billingInformation,
1948
1948
  "country-code": t.countryCode,
1949
1949
  locale: t.locale,
1950
- "is-visible": h.value,
1950
+ "is-visible": v.value,
1951
1951
  "payment-method-options-response": C.value,
1952
1952
  "on-billing-information-change": t.onBillingInformationChange,
1953
1953
  context: t.context,
1954
1954
  "validate-on-submit": t.validateOnSubmit,
1955
- onReady: T[0] || (T[0] = (b) => h.value = !0),
1956
- onUnavailable: T[1] || (T[1] = (b) => a.value = !0),
1957
- onUpdateBillingInformation: T[2] || (T[2] = (b) => o.$emit("update-billing-information", b)),
1958
- onPaymentSuccess: T[3] || (T[3] = (b) => o.$emit("payment-success")),
1959
- onPaymentFailed: T[4] || (T[4] = (b) => o.$emit("payment-failed", b))
1955
+ onReady: L[0] || (L[0] = (y) => v.value = !0),
1956
+ onUnavailable: L[1] || (L[1] = (y) => a.value = !0),
1957
+ onUpdateBillingInformation: L[2] || (L[2] = (y) => o.$emit("update-billing-information", y)),
1958
+ onPaymentSuccess: L[3] || (L[3] = (y) => o.$emit("payment-success")),
1959
+ onPaymentFailed: L[4] || (L[4] = (y) => o.$emit("payment-failed", y))
1960
1960
  }, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response", "on-billing-information-change", "context", "validate-on-submit"])
1961
1961
  ]),
1962
- I("div", on, [
1963
- h.value ? (i(), P(e(To), {
1962
+ S("div", on, [
1963
+ v.value ? (n(), w(e(To), {
1964
1964
  key: 1,
1965
- text: e(n)({
1965
+ text: e(s)({
1966
1966
  defaultMessage: "Or",
1967
1967
  id: "checkout.express_payment_methods.divider_text",
1968
1968
  description: "The text of the divider text in the express payment methods block in the checkout form"
1969
1969
  }),
1970
1970
  "text-position": "center"
1971
- }, null, 8, ["text"])) : (i(), P(Me, {
1971
+ }, null, 8, ["text"])) : (n(), w(Ee, {
1972
1972
  key: 0,
1973
1973
  variant: "divider-text"
1974
1974
  }))
1975
1975
  ])
1976
- ])) : N("", !0);
1976
+ ])) : $("", !0);
1977
1977
  }
1978
1978
  });
1979
- function gs(t, r = void 0) {
1980
- const n = r ?? [], h = ut(t);
1981
- for (const a of h)
1979
+ function gs(t, u = void 0) {
1980
+ const s = u ?? [], v = ct(t);
1981
+ for (const a of v)
1982
1982
  if (["EXACTLY_ONE", "AT_LEAST_ONE"].includes(a.selection_constraint)) {
1983
- const L = a.pricings.map((C) => C.id);
1984
- if (r != null && r.some((C) => L.includes(C)))
1983
+ const I = a.pricings.map((C) => C.id);
1984
+ if (u != null && u.some((C) => I.includes(C)))
1985
1985
  continue;
1986
- n.push(a.pricings[0].id);
1986
+ s.push(a.pricings[0].id);
1987
1987
  }
1988
- return n;
1988
+ return s;
1989
1989
  }
1990
1990
  function sn(t) {
1991
- return ut(t).some(
1992
- (n) => n.selection_constraint === "EXACTLY_ONE" || n.selection_constraint === "AT_LEAST_ONE"
1991
+ return ct(t).some(
1992
+ (s) => s.selection_constraint === "EXACTLY_ONE" || s.selection_constraint === "AT_LEAST_ONE"
1993
1993
  );
1994
1994
  }
1995
1995
  function ln(t) {
1996
- const r = Do(t.pricing_plan_schedule_infos), n = ut(t);
1997
- return r.some((h) => h.product_type === "ADDON") || n.some((h) => h.object_type === "ADDON");
1996
+ const u = Do(t.pricing_plan_schedule_infos), s = ct(t);
1997
+ return u.some((v) => v.product_type === "ADDON") || s.some((v) => v.object_type === "ADDON");
1998
1998
  }
1999
1999
  const rn = ["TIERED", "TOP_TIERED", "STAIR_STEP"];
2000
2000
  function un({
2001
2001
  scheduleInfo: t,
2002
- enabledPricingIds: r,
2003
- currency: n,
2004
- billingPeriod: h,
2005
- intl: { $t: a, formatNumber: L }
2002
+ enabledPricingIds: u,
2003
+ currency: s,
2004
+ billingPeriod: v,
2005
+ intl: { $t: a, formatNumber: I }
2006
2006
  }) {
2007
2007
  if (!t) return [];
2008
- const C = (f, V) => {
2009
- const B = Number(f.percentage) !== 0 && f.percentage && L(Number(f.percentage) / 100, {
2008
+ const C = (A, U) => {
2009
+ const _ = Number(A.percentage) !== 0 && A.percentage && I(Number(A.percentage) / 100, {
2010
2010
  style: "percent",
2011
2011
  maximumFractionDigits: 4
2012
- }), U = f.amount && !(B && Number(f.amount.quantity) === 0) && ne(f.amount), w = V ?? a({
2012
+ }), k = A.amount && !(_ && Number(A.amount.quantity) === 0) && ie(A.amount), M = U ?? a({
2013
2013
  defaultMessage: "unit",
2014
2014
  id: "checkout.order_summary_block.usage.unit_fallback",
2015
2015
  description: "The unit a usage price is charged per when its product names none"
2016
2016
  });
2017
- return B && U ? a(
2017
+ return _ && k ? a(
2018
2018
  {
2019
2019
  defaultMessage: "{percentage} + {amount} / {unit}",
2020
2020
  id: "checkout.order_summary_block.usage.rate_percentage_amount",
2021
2021
  description: 'A usage price of a percentage plus an amount per unit, e.g. "1.4% + €0.25 / transaction"'
2022
2022
  },
2023
- { percentage: B, amount: U, unit: w }
2024
- ) : U ? a(
2023
+ { percentage: _, amount: k, unit: M }
2024
+ ) : k ? a(
2025
2025
  {
2026
2026
  defaultMessage: "{amount} / {unit}",
2027
2027
  id: "checkout.order_summary_block.usage.rate_per_unit",
2028
2028
  description: 'A usage price per unit, e.g. "€0.05 / transaction"'
2029
2029
  },
2030
- { amount: U, unit: w }
2031
- ) : B && V ? a(
2030
+ { amount: k, unit: M }
2031
+ ) : _ && U ? a(
2032
2032
  {
2033
2033
  defaultMessage: "{percentage} of {unit} value",
2034
2034
  id: "checkout.order_summary_block.usage.rate_percentage",
2035
2035
  description: 'A usage price as a percentage of what is used, e.g. "1.19% of transaction value"'
2036
2036
  },
2037
- { percentage: B, unit: V }
2038
- ) : B || void 0;
2039
- }, o = (f, V, B) => {
2040
- if (!(f.block_size || f.minimum_amount || f.maximum_amount || f.minimum_number || f.maximum_number))
2041
- return f.fixed_amount ? B && !f.amount && !f.percentage ? ne(f.fixed_amount) : void 0 : B ? void 0 : C(f, V);
2042
- }, T = (f, V, B) => {
2043
- const U = {
2037
+ { percentage: _, unit: U }
2038
+ ) : _ || void 0;
2039
+ }, o = (A, U, _) => {
2040
+ if (!(!A.amount || Number(A.percentage) || A.fixed_amount))
2041
+ return a(
2042
+ {
2043
+ defaultMessage: "{amount} / {blockSize} {unit}",
2044
+ id: "checkout.order_summary_block.usage.rate_per_block",
2045
+ description: 'A usage price per block of units, e.g. "$0.02 / 1M tokens"'
2046
+ },
2047
+ {
2048
+ amount: ie(A.amount),
2049
+ // Compact notation rounds: 1,234,567 must not read as "1.2M".
2050
+ blockSize: I(
2051
+ U,
2052
+ Number(U.toPrecision(3)) === U ? { notation: "compact", maximumSignificantDigits: 3 } : void 0
2053
+ ),
2054
+ unit: _ ?? a({
2055
+ defaultMessage: "units",
2056
+ id: "checkout.order_summary_block.usage.units_fallback",
2057
+ description: "The units a usage price is charged per block of when its product names none"
2058
+ })
2059
+ }
2060
+ );
2061
+ }, L = (A, U, _, k) => {
2062
+ if (!(A.minimum_amount || A.maximum_amount || A.minimum_number || A.maximum_number)) {
2063
+ if (A.block_size) {
2064
+ const M = "number" in A.block_size ? Number(A.block_size.number) : 0;
2065
+ if (M !== 1)
2066
+ return _ || !(M > 1) ? void 0 : o(A, M, k ?? U);
2067
+ }
2068
+ return A.fixed_amount ? _ && !A.amount && !A.percentage ? ie(A.fixed_amount) : void 0 : _ ? void 0 : C(A, U);
2069
+ }
2070
+ }, y = (A, U, _, k) => {
2071
+ const M = {
2044
2072
  infinite: "",
2045
- formatNumber: (w) => L(w),
2046
- formatAmount: ne
2073
+ formatNumber: (F) => I(F),
2074
+ formatAmount: ie
2047
2075
  };
2048
- return f.map((w, A) => {
2049
- const q = String(_o(U)(f[A - 1]) ?? "");
2076
+ return A.map((F, X) => {
2077
+ const Z = String(_o(M)(A[X - 1]) ?? "");
2050
2078
  return {
2051
- range: A === f.length - 1 ? a(
2079
+ label: X === A.length - 1 ? a(
2052
2080
  {
2053
2081
  defaultMessage: "{from}+",
2054
2082
  id: "checkout.order_summary_block.usage.tier_open",
2055
2083
  description: 'The last band of a tiered usage price, which has no upper bound, e.g. "20,000+"'
2056
2084
  },
2057
- { from: q }
2085
+ { from: Z }
2058
2086
  ) : a(
2059
2087
  {
2060
2088
  defaultMessage: "{from} - {to}",
2061
2089
  id: "checkout.order_summary_block.usage.tier_range",
2062
2090
  description: 'The range of a band of a tiered usage price, e.g. "0 - 20,000"'
2063
2091
  },
2064
- { from: q, to: ko(U)(w, f, A) ?? "" }
2092
+ { from: Z, to: ko(M)(F, A, X) ?? "" }
2065
2093
  ),
2066
- rate: o(w, V, B)
2094
+ rate: L(F, U, _, k)
2067
2095
  };
2068
2096
  });
2069
- }, b = /* @__PURE__ */ new Map();
2070
- return Uo(ja(t).pricing_categories, {
2071
- enabledPricingIds: r
2072
- }).forEach(({ category: f, pricing: V }) => {
2073
- (V.items ?? []).forEach((B) => {
2074
- var R, D, z, d, j, k;
2075
- const U = (R = B.product_items) == null ? void 0 : R[0];
2076
- if ((U == null ? void 0 : U.model_type) !== "USAGE_BASED") return;
2077
- const w = jo({ pricingItem: B, currency: n, billingPeriod: h }), A = w == null ? void 0 : w.details;
2078
- if ((A == null ? void 0 : A.pricing_type) === "NONE") return;
2079
- const q = [
2080
- B.configs,
2081
- ...(B.billing_period_configs ?? []).map((p) => p.configs),
2082
- ...(B.pricing_currency_configs ?? []).flatMap((p) => [
2097
+ }, O = (A, U, _) => {
2098
+ var Q, H;
2099
+ const k = [...A].sort((i, T) => i.order - T.order), M = k.filter(({ conditions: i }) => !(i != null && i.name)), F = new Set(
2100
+ M.flatMap(({ conditions: i }) => (i == null ? void 0 : i.meter_properties) ?? []).map(({ id: i }) => i)
2101
+ ), X = M.filter(({ conditions: i }) => {
2102
+ var T;
2103
+ return !((T = i == null ? void 0 : i.meter_properties) != null && T.length);
2104
+ });
2105
+ if (F.size > 1 || X.length > 1) return;
2106
+ const Z = [];
2107
+ for (const { conditions: i, details: T } of k) {
2108
+ const [R, ...B] = (i == null ? void 0 : i.meter_properties) ?? [], q = ((Q = T.bands) == null ? void 0 : Q.length) === 1 ? T.bands[0] : void 0, d = (i == null ? void 0 : i.name) || (R ? !B.length && R.comparator === "EQUALS" ? R.value : void 0 : a({
2109
+ defaultMessage: "Other",
2110
+ id: "checkout.order_summary_block.usage.condition_other",
2111
+ description: 'The row of a usage price set per condition that applies when no condition matches, e.g. below "spot €6.39 / GPU-hour"'
2112
+ })), z = T.pricing_type === "FLAT" && q ? L(q, U, !1, _) : void 0;
2113
+ if (!d || !z || (H = i == null ? void 0 : i.configs) != null && H.length) return;
2114
+ Z.push({ label: d, rate: z });
2115
+ }
2116
+ return Z;
2117
+ }, j = /* @__PURE__ */ new Map();
2118
+ return Uo(za(t).pricing_categories, {
2119
+ enabledPricingIds: u
2120
+ }).forEach(({ category: A, pricing: U }) => {
2121
+ (U.items ?? []).forEach((_) => {
2122
+ var z, P, h, E, m, l;
2123
+ const k = (z = _.product_items) == null ? void 0 : z[0];
2124
+ if ((k == null ? void 0 : k.model_type) !== "USAGE_BASED") return;
2125
+ const M = zo({ pricingItem: _, currency: s, billingPeriod: v }), F = M == null ? void 0 : M.details;
2126
+ if ((F == null ? void 0 : F.pricing_type) === "NONE") return;
2127
+ const Z = [
2128
+ _.configs,
2129
+ ...(_.billing_period_configs ?? []).map((p) => p.configs),
2130
+ ...(_.pricing_currency_configs ?? []).flatMap((p) => [
2083
2131
  p.configs,
2084
- ...(p.billing_period_configs ?? []).map((E) => E.configs)
2132
+ ...(p.billing_period_configs ?? []).map((J) => J.configs)
2085
2133
  ])
2086
- ], H = !!((z = (D = w == null ? void 0 : w.conditions) == null ? void 0 : D.configs) != null && z.length) || (((d = q.find((p) => w && (p == null ? void 0 : p.includes(w)))) == null ? void 0 : d.length) ?? 0) > 1, te = ((j = U.unit_name) == null ? void 0 : j.singular) || void 0, ee = (A == null ? void 0 : A.bands) ?? [], oe = ee[0], Z = {
2087
- name: U.name || Fo(V) || "",
2088
- billingPeriod: (A == null ? void 0 : A.billing_period) ?? h
2089
- }, c = H || A == null ? void 0 : A.pricing_type;
2090
- c && rn.includes(c) ? Z.tiers = T(ee, te, c === "STAIR_STEP") : c === "FLAT" && oe && (Z.rate = o(oe, te, !1));
2091
- const $ = b.get(f.product_category_id) ?? {
2092
- name: ((k = f.product_category) == null ? void 0 : k.name) ?? "",
2134
+ ].find((p) => M && (p == null ? void 0 : p.includes(M))) ?? [], Q = !!((h = (P = M == null ? void 0 : M.conditions) == null ? void 0 : P.configs) != null && h.length) || Z.length > 1, H = ((E = k.unit_name) == null ? void 0 : E.singular) || void 0, i = ((m = k.unit_name) == null ? void 0 : m.plural) || void 0, T = (F == null ? void 0 : F.bands) ?? [], R = T[0], B = {
2135
+ name: k.name || Fo(U) || "",
2136
+ billingPeriod: (F == null ? void 0 : F.billing_period) ?? v
2137
+ }, q = Q || F == null ? void 0 : F.pricing_type;
2138
+ Q ? B.rows = O(Z, H, i) : q && rn.includes(q) ? B.rows = y(T, H, q === "STAIR_STEP", i) : q === "FLAT" && R && (B.rate = L(R, H, !1, i));
2139
+ const d = j.get(A.product_category_id) ?? {
2140
+ name: ((l = A.product_category) == null ? void 0 : l.name) ?? "",
2093
2141
  prices: []
2094
2142
  };
2095
- $.prices.push(Z), b.set(f.product_category_id, $);
2143
+ d.prices.push(B), j.set(A.product_category_id, d);
2096
2144
  });
2097
- }), [...b.values()];
2145
+ }), [...j.values()];
2098
2146
  }
2099
- const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, pn = { class: "flex flex-row items-center gap-2" }, mn = ["onKeydown"], gn = ["aria-label"], vn = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, hn = { class: "flex flex-row items-center gap-2" }, fn = {
2147
+ const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, pn = { class: "flex flex-row items-center gap-2" }, mn = ["onKeydown"], gn = ["aria-label"], vn = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, fn = { class: "flex flex-row items-center gap-2" }, hn = {
2100
2148
  class: "sr-only",
2101
2149
  "aria-live": "polite"
2102
2150
  }, oa = /* @__PURE__ */ se({
@@ -2107,144 +2155,144 @@ const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-po
2107
2155
  isPending: { type: Boolean, default: !1 }
2108
2156
  },
2109
2157
  emits: ["update:appliedCode", "apply", "remove"],
2110
- setup(t, { emit: r }) {
2111
- const { $t: n } = fe(), h = t, a = r, L = Q(!1), C = Q(""), o = Q(""), T = Q(!1), b = Q(null), f = Q(null), V = no("promotion-code-"), B = `${V}-label`, U = `${V}-panel`, w = u({
2158
+ setup(t, { emit: u }) {
2159
+ const { $t: s } = he(), v = t, a = u, I = ae(!1), C = ae(""), o = ae(""), L = ae(!1), y = ae(null), O = ae(null), j = no("promotion-code-"), A = `${j}-label`, U = `${j}-panel`, _ = c({
2112
2160
  get: () => C.value,
2113
2161
  set: (d) => C.value = co(d)
2114
- }), A = u(() => h.promotionCode !== null && h.promotionCode !== ""), q = u(() => C.value.trim().length > 0), H = u(
2115
- () => h.promotionCode ?? n({
2162
+ }), k = c(() => v.promotionCode !== null && v.promotionCode !== ""), M = c(() => C.value.trim().length > 0), F = c(
2163
+ () => v.promotionCode ?? s({
2116
2164
  defaultMessage: "Promotion applied",
2117
2165
  id: "checkout.promotion_code.applied_label",
2118
2166
  description: "Fallback label for an applied promotion code in checkout"
2119
2167
  })
2120
- ), te = u(
2121
- () => L.value ? n({
2168
+ ), X = c(
2169
+ () => I.value ? s({
2122
2170
  defaultMessage: "Collapse promotion code input",
2123
2171
  id: "checkout.promotion_code.collapse_aria_label",
2124
2172
  description: "Aria label for the promotion code toggle button in checkout, while the input is open"
2125
- }) : n({
2173
+ }) : s({
2126
2174
  defaultMessage: "Expand promotion code input",
2127
2175
  id: "checkout.promotion_code.expand_aria_label",
2128
2176
  description: "Aria label for the promotion code toggle button in checkout, while the input is closed"
2129
2177
  })
2130
- ), ee = u(
2131
- () => n({
2178
+ ), Z = c(
2179
+ () => s({
2132
2180
  defaultMessage: "Apply promotion code",
2133
2181
  id: "checkout.promotion_code.apply_aria_label",
2134
2182
  description: "Aria label for the promotion code apply button in checkout"
2135
2183
  })
2136
- ), oe = u(
2137
- () => n({
2184
+ ), Q = c(
2185
+ () => s({
2138
2186
  defaultMessage: "Remove promotion code",
2139
2187
  id: "checkout.promotion_code.remove_aria_label",
2140
2188
  description: "Aria label for the promotion code remove button in checkout"
2141
2189
  })
2142
- ), Z = () => {
2190
+ ), H = () => {
2143
2191
  C.value = "";
2144
- }, c = () => {
2145
- var j;
2146
- const d = (j = f.value) == null ? void 0 : j.querySelector("input");
2192
+ }, i = () => {
2193
+ var z;
2194
+ const d = (z = O.value) == null ? void 0 : z.querySelector("input");
2147
2195
  d instanceof HTMLInputElement && d.focus();
2148
- }, $ = () => {
2149
- L.value && (L.value = !1);
2196
+ }, T = () => {
2197
+ I.value && (I.value = !1);
2150
2198
  }, R = () => {
2151
- A.value || (L.value = !L.value);
2152
- }, D = () => {
2153
- if (!q.value)
2199
+ k.value || (I.value = !I.value);
2200
+ }, B = () => {
2201
+ if (!M.value)
2154
2202
  return;
2155
2203
  const d = C.value.trim();
2156
- o.value = "", T.value = !0, a("update:appliedCode", d), a("apply", d), L.value = !1;
2157
- }, z = () => {
2158
- T.value = !1, a("update:appliedCode", null), a("remove"), o.value = n({
2204
+ o.value = "", L.value = !0, a("update:appliedCode", d), a("apply", d), I.value = !1;
2205
+ }, q = () => {
2206
+ L.value = !1, a("update:appliedCode", null), a("remove"), o.value = s({
2159
2207
  defaultMessage: "Promotion code removed",
2160
2208
  id: "checkout.promotion_code.removed_status",
2161
2209
  description: "Aria live message when a promotion code is removed in checkout"
2162
- }), Z(), Re(() => {
2210
+ }), H(), Re(() => {
2163
2211
  var d;
2164
- (d = b.value) == null || d.focus();
2212
+ (d = y.value) == null || d.focus();
2165
2213
  });
2166
2214
  };
2167
- return Pe(L, (d) => {
2215
+ return Pe(I, (d) => {
2168
2216
  if (!d) {
2169
- Z(), Re(() => {
2170
- var j;
2171
- (j = b.value) == null || j.focus();
2217
+ H(), Re(() => {
2218
+ var z;
2219
+ (z = y.value) == null || z.focus();
2172
2220
  });
2173
2221
  return;
2174
2222
  }
2175
2223
  Re(() => {
2176
- c();
2224
+ i();
2177
2225
  });
2178
2226
  }), Pe(
2179
- () => h.promotionCode,
2227
+ () => v.promotionCode,
2180
2228
  (d) => {
2181
- d || Z();
2229
+ d || H();
2182
2230
  }
2183
2231
  ), Pe(
2184
- () => h.isPending,
2232
+ () => v.isPending,
2185
2233
  (d) => {
2186
- d || !T.value || (T.value = !1, A.value && (o.value = n({
2234
+ d || !L.value || (L.value = !1, k.value && (o.value = s({
2187
2235
  defaultMessage: "Promotion code applied",
2188
2236
  id: "checkout.promotion_code.applied_status",
2189
2237
  description: "Aria live message when a promotion code is applied in checkout"
2190
2238
  })));
2191
2239
  }
2192
- ), (d, j) => (i(), x(G, null, [
2193
- A.value ? (i(), P(e(he), ve({ key: 1 }, d.$attrs, {
2240
+ ), (d, z) => (n(), x(K, null, [
2241
+ k.value ? (n(), w(e(fe), ve({ key: 1 }, d.$attrs, {
2194
2242
  "no-border": "",
2195
2243
  "no-spacing": "",
2196
2244
  "content-background": "none",
2197
2245
  class: "relative w-full"
2198
2246
  }), {
2199
- default: m(() => [
2200
- I("button", {
2247
+ default: g(() => [
2248
+ S("button", {
2201
2249
  type: "button",
2202
2250
  class: "w-full rounded border border-primary-900 bg-white",
2203
- "aria-label": oe.value,
2204
- onClick: z
2251
+ "aria-label": Q.value,
2252
+ onClick: q
2205
2253
  }, [
2206
- I("div", vn, [
2207
- I("div", hn, [
2208
- _(e(Be), { icon: "local_activity" }),
2209
- _(e(Y), {
2254
+ S("div", vn, [
2255
+ S("div", fn, [
2256
+ b(e(Be), { icon: "local_activity" }),
2257
+ b(e(G), {
2210
2258
  variant: "body-sm",
2211
2259
  class: "font-semibold"
2212
2260
  }, {
2213
- default: m(() => [
2214
- O(M(H.value), 1)
2261
+ default: g(() => [
2262
+ D(N(F.value), 1)
2215
2263
  ]),
2216
2264
  _: 1
2217
2265
  })
2218
2266
  ]),
2219
- _(e(Be), { icon: "close" })
2267
+ b(e(Be), { icon: "close" })
2220
2268
  ])
2221
2269
  ], 8, gn)
2222
2270
  ]),
2223
2271
  _: 1
2224
- }, 16)) : (i(), P(e(he), ve({ key: 0 }, d.$attrs, {
2272
+ }, 16)) : (n(), w(e(fe), ve({ key: 0 }, d.$attrs, {
2225
2273
  "no-spacing": "",
2226
2274
  class: "relative w-full"
2227
2275
  }), {
2228
- default: m(() => [
2229
- I("button", {
2276
+ default: g(() => [
2277
+ S("button", {
2230
2278
  ref_key: "toggleRef",
2231
- ref: b,
2279
+ ref: y,
2232
2280
  type: "button",
2233
2281
  class: "w-full",
2234
- "aria-expanded": L.value,
2282
+ "aria-expanded": I.value,
2235
2283
  "aria-controls": U,
2236
- "aria-label": te.value,
2284
+ "aria-label": X.value,
2237
2285
  onClick: R
2238
2286
  }, [
2239
- I("div", dn, [
2240
- I("div", pn, [
2241
- _(e(Be), { icon: "local_activity" }),
2242
- _(e(Y), {
2243
- id: B,
2287
+ S("div", dn, [
2288
+ S("div", pn, [
2289
+ b(e(Be), { icon: "local_activity" }),
2290
+ b(e(G), {
2291
+ id: A,
2244
2292
  variant: "body-sm"
2245
2293
  }, {
2246
- default: m(() => [
2247
- O(M(e(n)({
2294
+ default: g(() => [
2295
+ D(N(e(s)({
2248
2296
  defaultMessage: "Add promotion code",
2249
2297
  id: "checkout.promotion_code.add_label",
2250
2298
  description: "Label for adding a promotion code in checkout"
@@ -2253,45 +2301,45 @@ const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-po
2253
2301
  _: 1
2254
2302
  })
2255
2303
  ]),
2256
- _(e(Be), {
2257
- icon: L.value ? "remove" : "add"
2304
+ b(e(Be), {
2305
+ icon: I.value ? "remove" : "add"
2258
2306
  }, null, 8, ["icon"])
2259
2307
  ])
2260
2308
  ], 8, cn),
2261
- Da(I("div", {
2309
+ Da(S("div", {
2262
2310
  id: U,
2263
2311
  ref_key: "panelRef",
2264
- ref: f,
2312
+ ref: O,
2265
2313
  role: "region",
2266
- "aria-labelledby": B,
2314
+ "aria-labelledby": A,
2267
2315
  class: "flex w-full flex-row items-center gap-2 overflow-hidden border-t px-3 py-2",
2268
- onKeydown: Vt(qe($, ["prevent"]), ["esc"])
2316
+ onKeydown: Vt(qe(T, ["prevent"]), ["esc"])
2269
2317
  }, [
2270
- _(e(Ee), {
2271
- modelValue: w.value,
2272
- "onUpdate:modelValue": j[0] || (j[0] = (k) => w.value = k),
2273
- placeholder: e(n)({
2318
+ b(e(Me), {
2319
+ modelValue: _.value,
2320
+ "onUpdate:modelValue": z[0] || (z[0] = (P) => _.value = P),
2321
+ placeholder: e(s)({
2274
2322
  defaultMessage: "Promotion code",
2275
2323
  id: "checkout.promotion_code.placeholder",
2276
2324
  description: "Placeholder for promotion code input in checkout"
2277
2325
  }),
2278
- "aria-label": e(n)({
2326
+ "aria-label": e(s)({
2279
2327
  defaultMessage: "Promotion code",
2280
2328
  id: "checkout.promotion_code.input_aria_label",
2281
2329
  description: "Aria label for promotion code input in checkout"
2282
2330
  }),
2283
2331
  class: "w-full",
2284
- onKeydown: Vt(qe(D, ["self", "prevent"]), ["enter"])
2332
+ onKeydown: Vt(qe(B, ["self", "prevent"]), ["enter"])
2285
2333
  }, null, 8, ["modelValue", "placeholder", "aria-label", "onKeydown"]),
2286
- _(e(Ie), {
2334
+ b(e(Ie), {
2287
2335
  type: "button",
2288
- disabled: !q.value,
2289
- "aria-label": ee.value,
2290
- "aria-disabled": !q.value,
2291
- onClick: D
2336
+ disabled: !M.value,
2337
+ "aria-label": Z.value,
2338
+ "aria-disabled": !M.value,
2339
+ onClick: B
2292
2340
  }, {
2293
- default: m(() => [
2294
- O(M(e(n)({
2341
+ default: g(() => [
2342
+ D(N(e(s)({
2295
2343
  defaultMessage: "Apply",
2296
2344
  id: "checkout.promotion_code.apply_button",
2297
2345
  description: "Button label for applying a promotion code in checkout"
@@ -2300,12 +2348,12 @@ const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-po
2300
2348
  _: 1
2301
2349
  }, 8, ["disabled", "aria-label", "aria-disabled"])
2302
2350
  ], 40, mn), [
2303
- [Ua, L.value]
2351
+ [Ua, I.value]
2304
2352
  ])
2305
2353
  ]),
2306
2354
  _: 1
2307
2355
  }, 16)),
2308
- I("span", fn, M(o.value), 1)
2356
+ S("span", hn, N(o.value), 1)
2309
2357
  ], 64));
2310
2358
  }
2311
2359
  }), yn = { class: "sv-checkout__header" }, bn = { class: "sv-checkout__payment-methods" }, _n = {
@@ -2314,7 +2362,7 @@ const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-po
2314
2362
  }, kn = {
2315
2363
  key: 4,
2316
2364
  class: "sv-checkout__payment-form"
2317
- }, Pn = { class: "sv-checkout__order-summary" }, An = { class: "flex flex-col gap-4" }, wn = ["href"], vs = /* @__PURE__ */ se({
2365
+ }, Pn = { class: "sv-checkout__order-summary" }, wn = { class: "flex flex-col gap-4" }, An = ["href"], vs = /* @__PURE__ */ se({
2318
2366
  __name: "Checkout",
2319
2367
  props: {
2320
2368
  configuration: { type: Object },
@@ -2322,209 +2370,209 @@ const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-po
2322
2370
  avatar: { type: String }
2323
2371
  },
2324
2372
  setup(t) {
2325
- const r = Bt(
2326
- () => import("./PaymentIntegrationForm-ZnIjTyda.mjs")
2327
- ), n = Bt(
2328
- () => import("./PlanCustomizationEditor-BDWm_z2w.mjs")
2329
- ), h = t, a = Q(), L = sa(), C = fe(), { $t: o, locale: T } = C, { formatTimePeriod: b } = ze(), { isMobileViewport: f } = ra(), V = u(() => {
2330
- var s;
2331
- return ((s = h.source.note.value) == null ? void 0 : s.trim()) || void 0;
2373
+ const u = Bt(
2374
+ () => import("./PaymentIntegrationForm-Diua0GGJ.mjs")
2375
+ ), s = Bt(
2376
+ () => import("./PlanCustomizationEditor-KHLSEUbb.mjs")
2377
+ ), v = t, a = ae(), I = sa(), C = he(), { $t: o, locale: L } = C, { formatTimePeriod: y } = je(), { isMobileViewport: O } = ra(), j = c(() => {
2378
+ var r;
2379
+ return ((r = v.source.note.value) == null ? void 0 : r.trim()) || void 0;
2332
2380
  }), {
2333
- validatedEmail: B,
2381
+ validatedEmail: A,
2334
2382
  validatedCountry: U,
2335
- subscription: w,
2336
- orderMeterValues: A,
2337
- quantityAddonConfigIds: q,
2338
- isInvoicePreviewPending: H,
2339
- isInvoicePreviewStale: te,
2340
- isInvoicePreviewFailed: ee,
2341
- hasSubscriptionLoadFailed: oe,
2342
- settleInvoicePreview: Z,
2343
- checkoutForm: c,
2344
- customerForms: $,
2383
+ subscription: _,
2384
+ orderMeterValues: k,
2385
+ quantityAddonConfigIds: M,
2386
+ isInvoicePreviewPending: F,
2387
+ isInvoicePreviewStale: X,
2388
+ isInvoicePreviewFailed: Z,
2389
+ hasSubscriptionLoadFailed: Q,
2390
+ settleInvoicePreview: H,
2391
+ checkoutForm: i,
2392
+ customerForms: T,
2345
2393
  planCustomizations: R,
2346
- invoicePreview: D,
2347
- invoicePreviewByBillingPeriod: z,
2394
+ invoicePreview: B,
2395
+ invoicePreviewByBillingPeriod: q,
2348
2396
  trialInvoicePreview: d,
2349
- trialPeriod: j,
2350
- payment: k,
2351
- pricingCurrency: p,
2397
+ trialPeriod: z,
2398
+ payment: P,
2399
+ pricingCurrency: h,
2352
2400
  isPaid: E,
2353
- amount: v,
2401
+ amount: m,
2354
2402
  recurringAmount: l,
2355
- hasOneOffCharges: y,
2356
- loadInvoicePreview: W,
2357
- changeBillingPeriod: ae,
2358
- saveFormStateForRedirect: ie,
2359
- clearSavedFormState: J,
2403
+ hasOneOffCharges: p,
2404
+ loadInvoicePreview: J,
2405
+ changeBillingPeriod: oe,
2406
+ saveFormStateForRedirect: ne,
2407
+ clearSavedFormState: ee,
2360
2408
  successUrl: me,
2361
2409
  cancelUrl: ye,
2362
2410
  isShippingAddressRequired: $e
2363
- } = h.source, { dispatch: X, componentName: Ae } = Ya();
2411
+ } = v.source, { dispatch: te, componentName: we } = Ya();
2364
2412
  let be = !1;
2365
2413
  Pe(
2366
- () => !!(w.value && D.value),
2367
- (s) => {
2368
- !s || be || (be = !0, X("solvimon-ready", void 0));
2414
+ () => !!(_.value && B.value),
2415
+ (r) => {
2416
+ !r || be || (be = !0, te("solvimon-ready", void 0));
2369
2417
  },
2370
2418
  { immediate: !0 }
2371
2419
  );
2372
- const le = u(() => (k == null ? void 0 : k.paymentMethodOptions.value) ?? []), _e = u(() => (k == null ? void 0 : k.isPaymentMethodsPending.value) ?? !1), ke = u(
2373
- () => (k == null ? void 0 : k.hasPaymentMethodOptionsError.value) ?? !1
2374
- ), Le = u(() => k == null ? void 0 : k.authorizationContext.value), Ye = () => k == null ? void 0 : k.retryPaymentMethodOptions(), ct = k == null ? void 0 : k.updateInvoicePreviewOnBillingInformationChange, Ge = u(
2375
- () => k != null && k.countryCode ? k.countryCode.value : c.form.value.country
2376
- ), dt = u(() => {
2377
- var s;
2378
- return !!k && (((s = h.source.canPay) == null ? void 0 : s.value) ?? !0);
2379
- }), He = Bo(), pa = u(
2420
+ const le = c(() => (P == null ? void 0 : P.paymentMethodOptions.value) ?? []), _e = c(() => (P == null ? void 0 : P.isPaymentMethodsPending.value) ?? !1), ke = c(
2421
+ () => (P == null ? void 0 : P.hasPaymentMethodOptionsError.value) ?? !1
2422
+ ), Le = c(() => P == null ? void 0 : P.authorizationContext.value), Ye = () => P == null ? void 0 : P.retryPaymentMethodOptions(), dt = P == null ? void 0 : P.updateInvoicePreviewOnBillingInformationChange, Ge = c(
2423
+ () => P != null && P.countryCode ? P.countryCode.value : i.form.value.country
2424
+ ), pt = c(() => {
2425
+ var r;
2426
+ return !!P && (((r = v.source.canPay) == null ? void 0 : r.value) ?? !0);
2427
+ }), He = Bo(), pa = c(
2380
2428
  () => {
2381
- var s;
2382
- return !!((s = He == null ? void 0 : He.value) != null && s["express-checkout"]);
2429
+ var r;
2430
+ return !!((r = He == null ? void 0 : He.value) != null && r["express-checkout"]);
2383
2431
  }
2384
- ), we = Q(!1), { isFormHeld: ma, handleActionRequired: ga } = Yo(we), pt = u(
2385
- () => ($ == null ? void 0 : $.value.map(({ form: s }) => s)) ?? [c]
2386
- ), mt = async () => (await Promise.all(pt.value.map((s) => s.validation.value.$validate())), pt.value.every((s) => !s.validation.value.$invalid)), va = async () => {
2387
- !await mt() || !a.value || (gt(), a.value.submit());
2388
- }, gt = () => {
2389
- we.value = !0, de.value = null, ie == null || ie();
2390
- }, de = Q(null), vt = () => o({
2432
+ ), Ae = ae(!1), { isFormHeld: ma, handleActionRequired: ga } = Yo(Ae), mt = c(
2433
+ () => (T == null ? void 0 : T.value.map(({ form: r }) => r)) ?? [i]
2434
+ ), gt = async () => (await Promise.all(mt.value.map((r) => r.validation.value.$validate())), mt.value.every((r) => !r.validation.value.$invalid)), va = async () => {
2435
+ !await gt() || !a.value || (vt(), a.value.submit());
2436
+ }, vt = () => {
2437
+ Ae.value = !0, de.value = null, ne == null || ne();
2438
+ }, de = ae(null), ft = () => o({
2391
2439
  defaultMessage: "The price changed with your last edit. Check it and pay again.",
2392
2440
  id: "checkout.price_changed",
2393
2441
  description: "Shown when a payment is held back because the customer changed the order while it waited for the price"
2394
- }), ha = () => {
2395
- we.value = !1, ge.value = void 0, J == null || J();
2396
- }, Ke = Q(!1), ht = (s) => {
2397
- var g;
2398
- const S = (g = k == null ? void 0 : k.recoverPaymentFailure) == null ? void 0 : g.call(k, s);
2399
- if (we.value = !1, ge.value = void 0, J == null || J(), (s == null ? void 0 : s.code) === "PAYMENT_OUTCOME_UNCONFIRMED") {
2442
+ }), fa = () => {
2443
+ Ae.value = !1, ge.value = void 0, ee == null || ee();
2444
+ }, Ke = ae(!1), ht = (r) => {
2445
+ var f;
2446
+ const V = (f = P == null ? void 0 : P.recoverPaymentFailure) == null ? void 0 : f.call(P, r);
2447
+ if (Ae.value = !1, ge.value = void 0, ee == null || ee(), (r == null ? void 0 : r.code) === "PAYMENT_OUTCOME_UNCONFIRMED") {
2400
2448
  Ke.value = !0;
2401
2449
  return;
2402
2450
  }
2403
- if (S === "PRICE_CHANGED") {
2404
- de.value = vt();
2451
+ if (V === "PRICE_CHANGED") {
2452
+ de.value = ft();
2405
2453
  return;
2406
2454
  }
2407
- de.value = (s == null ? void 0 : s.message) ?? o({
2455
+ de.value = (r == null ? void 0 : r.message) ?? o({
2408
2456
  defaultMessage: "The payment did not go through. Please try again.",
2409
2457
  id: "checkout.payment_failed",
2410
2458
  description: "Error shown when a payment the customer started did not complete"
2411
2459
  });
2412
- }, fa = (s) => {
2413
- ht(s), (s == null ? void 0 : s.code) === "PAYMENT_OUTCOME_UNCONFIRMED" && (de.value = o({
2460
+ }, ha = (r) => {
2461
+ ht(r), (r == null ? void 0 : r.code) === "PAYMENT_OUTCOME_UNCONFIRMED" && (de.value = o({
2414
2462
  defaultMessage: "Your payment could not be confirmed yet and may still go through, so please do not pay again.",
2415
2463
  id: "checkout.payment_unconfirmed",
2416
2464
  description: "Shown when it is not yet known whether an express payment the customer made went through"
2417
2465
  }));
2418
- }, ge = Q(), Ne = u(() => ge.value ? { inert: !0 } : {}), ft = async () => {
2419
- if (!await mt()) return !1;
2420
- const s = await Z();
2421
- return s === "CHANGED" ? (de.value = vt(), !1) : s === "FAILED" ? (de.value = o({
2466
+ }, ge = ae(), Ne = c(() => ge.value ? { inert: !0 } : {}), yt = async () => {
2467
+ if (!await gt()) return !1;
2468
+ const r = await H();
2469
+ return r === "CHANGED" ? (de.value = ft(), !1) : r === "FAILED" ? (de.value = o({
2422
2470
  defaultMessage: "The price could not be brought up to date. Please try again.",
2423
2471
  id: "checkout.price_not_settled",
2424
2472
  description: "Error shown when a payment is held back because the price of the latest changes could not be loaded"
2425
- }), !1) : dt.value ? (v.value && (ge.value = { amount: v.value, context: Le.value }, await Re()), !0) : !1;
2426
- }, ya = u(() => !!d.value), yt = u(
2473
+ }), !1) : pt.value ? (m.value && (ge.value = { amount: m.value, context: Le.value }, await Re()), !0) : !1;
2474
+ }, ya = c(() => !!d.value), bt = c(
2427
2475
  () => {
2428
- var s, S;
2429
- return ((s = h.source.chargedSchedules) == null ? void 0 : s.value) ?? [
2476
+ var r, V;
2477
+ return ((r = v.source.chargedSchedules) == null ? void 0 : r.value) ?? [
2430
2478
  {
2431
2479
  scheduleInfo: Xe.value,
2432
- enabledPricingIds: c.form.value.enabledPricingIds,
2433
- billingPeriod: (S = w.value) == null ? void 0 : S.billing_period
2480
+ enabledPricingIds: i.form.value.enabledPricingIds,
2481
+ billingPeriod: (V = _.value) == null ? void 0 : V.billing_period
2434
2482
  }
2435
2483
  ];
2436
2484
  }
2437
- ), bt = u(
2485
+ ), _t = c(
2438
2486
  () => new Set(
2439
- yt.value.flatMap((s) => [
2440
- ...qo(s.scheduleInfo, {
2441
- enabledPricingIds: s.enabledPricingIds
2487
+ bt.value.flatMap((r) => [
2488
+ ...qo(r.scheduleInfo, {
2489
+ enabledPricingIds: r.enabledPricingIds
2442
2490
  })
2443
2491
  ])
2444
2492
  )
2445
- ), _t = u(
2446
- () => yt.value.flatMap(
2447
- (s) => un({
2448
- ...s,
2449
- currency: p.value,
2493
+ ), kt = c(
2494
+ () => bt.value.flatMap(
2495
+ (r) => un({
2496
+ ...r,
2497
+ currency: h.value,
2450
2498
  intl: C
2451
2499
  })
2452
2500
  )
2453
- ), ba = u(
2454
- () => [...bt.value].some((s) => s !== "ONE_OFF")
2455
- ), Ze = u(() => bt.value.has("USAGE_BASED")), _a = u(
2456
- () => Ze.value || _t.value.length > 0 || (D.value ? Za(D.value) : !1)
2457
- ), Ce = u(
2501
+ ), ba = c(
2502
+ () => [..._t.value].some((r) => r !== "ONE_OFF")
2503
+ ), Ze = c(() => _t.value.has("USAGE_BASED")), _a = c(
2504
+ () => Ze.value || kt.value.length > 0 || (B.value ? Za(B.value) : !1)
2505
+ ), Ce = c(
2458
2506
  () => {
2459
- var s;
2460
- return l.value ?? ((s = D.value) == null ? void 0 : s.tax_summary.total_amount);
2507
+ var r;
2508
+ return l.value ?? ((r = B.value) == null ? void 0 : r.tax_summary.total_amount);
2461
2509
  }
2462
2510
  );
2463
2511
  Pe(
2464
- () => y.value && !l.value && !!D.value,
2465
- (s) => {
2466
- s && L.warn(
2512
+ () => p.value && !l.value && !!B.value,
2513
+ (r) => {
2514
+ r && I.warn(
2467
2515
  "RECURRING_AMOUNT_UNRESOLVED",
2468
2516
  "Could not tell the recurring part of the invoice from the one-off part; the mandate states the invoice total",
2469
2517
  {
2470
2518
  flow: "CHECKOUT",
2471
- unattributedGroupTypes: D.value ? Wa(D.value).unattributedGroupTypes : []
2519
+ unattributedGroupTypes: B.value ? Wa(B.value).unattributedGroupTypes : []
2472
2520
  }
2473
2521
  );
2474
2522
  }
2475
2523
  );
2476
- const We = u(
2524
+ const We = c(
2477
2525
  () => ba.value || !!Ce.value && Number(Ce.value.quantity) !== 0
2478
- ), ka = u(
2479
- () => y.value ? l.value : void 0
2480
- ), kt = (s) => !!s && ["US", "CA"].includes(s), Pa = u(
2481
- () => kt(c.form.value.country)
2482
- ), Je = u({
2483
- get: () => c.form.value.enabledPricingIds ?? [],
2484
- set: (s) => {
2485
- c.form.value.enabledPricingIds = s;
2526
+ ), ka = c(
2527
+ () => p.value ? l.value : void 0
2528
+ ), Pt = (r) => !!r && ["US", "CA"].includes(r), Pa = c(
2529
+ () => Pt(i.form.value.country)
2530
+ ), Je = c({
2531
+ get: () => i.form.value.enabledPricingIds ?? [],
2532
+ set: (r) => {
2533
+ i.form.value.enabledPricingIds = r;
2486
2534
  }
2487
- }), Xe = u(
2488
- () => w.value ? ua({
2489
- pricingPlanScheduleInfos: w.value.pricing_plan_schedule_infos,
2535
+ }), Xe = c(
2536
+ () => _.value ? ua({
2537
+ pricingPlanScheduleInfos: _.value.pricing_plan_schedule_infos,
2490
2538
  type: "DEFAULT"
2491
2539
  }) : void 0
2492
- ), Pt = u(() => {
2493
- if (!Xe.value || !w.value)
2540
+ ), wt = c(() => {
2541
+ if (!Xe.value || !_.value)
2494
2542
  return /* @__PURE__ */ new Set();
2495
- const s = xo({
2543
+ const r = xo({
2496
2544
  pricingPlanScheduleInfo: Xe.value
2497
- }), S = p.value, g = w.value.billing_period, F = /* @__PURE__ */ new Set();
2498
- return s.forEach((K, ue) => {
2499
- S && K.currency !== S || g && K.billingPeriod && (K.billingPeriod.type !== g.type || K.billingPeriod.value !== g.value) || F.add(ue);
2500
- }), F;
2501
- }), At = (s) => u({
2545
+ }), V = h.value, f = _.value.billing_period, Y = /* @__PURE__ */ new Set();
2546
+ return r.forEach((W, ue) => {
2547
+ V && W.currency !== V || f && W.billingPeriod && (W.billingPeriod.type !== f.type || W.billingPeriod.value !== f.value) || Y.add(ue);
2548
+ }), Y;
2549
+ }), At = (r) => c({
2502
2550
  get: () => {
2503
- const S = c.form.value[s] ?? [], g = Pt.value;
2504
- return g.size ? S.filter(({ pricing_item_config_id: F }) => g.has(F)) : S;
2551
+ const V = i.form.value[r] ?? [], f = wt.value;
2552
+ return f.size ? V.filter(({ pricing_item_config_id: Y }) => f.has(Y)) : V;
2505
2553
  },
2506
- set: (S) => {
2507
- const g = c.form.value[s] ?? [], F = Pt.value;
2508
- if (!F.size) {
2509
- c.form.value[s] = S;
2554
+ set: (V) => {
2555
+ const f = i.form.value[r] ?? [], Y = wt.value;
2556
+ if (!Y.size) {
2557
+ i.form.value[r] = V;
2510
2558
  return;
2511
2559
  }
2512
- const K = g.filter(
2513
- ({ pricing_item_config_id: ue }) => !F.has(ue) && !(q != null && q.value.has(ue))
2560
+ const W = f.filter(
2561
+ ({ pricing_item_config_id: ue }) => !Y.has(ue) && !(M != null && M.value.has(ue))
2514
2562
  );
2515
- c.form.value[s] = K.concat(S);
2563
+ i.form.value[r] = W.concat(V);
2516
2564
  }
2517
- }), Qe = At("seatsValues"), et = At("unitsValues"), Ve = u(
2565
+ }), Qe = At("seatsValues"), et = At("unitsValues"), Ve = c(
2518
2566
  () => {
2519
- var s;
2520
- return b(((s = D.value) == null ? void 0 : s.billing_period) ?? { type: "MONTH", value: 1 }, {
2567
+ var r;
2568
+ return y(((r = B.value) == null ? void 0 : r.billing_period) ?? { type: "MONTH", value: 1 }, {
2521
2569
  short: !0,
2522
2570
  singular: !0,
2523
2571
  hideValueForExactPeriods: !0
2524
2572
  });
2525
2573
  }
2526
- ), Aa = u(() => {
2527
- var s;
2574
+ ), wa = c(() => {
2575
+ var r;
2528
2576
  if (d.value)
2529
2577
  return o(
2530
2578
  {
@@ -2537,9 +2585,9 @@ const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-po
2537
2585
  defaultMessage: "Free",
2538
2586
  id: "checkout.agreement.trial.free",
2539
2587
  description: "The free amount for the trial period"
2540
- }) : ne(d.value.tax_summary.total_amount),
2541
- trial_period: b(j.value, { short: !0 }),
2542
- subscription_amount: ne(
2588
+ }) : ie(d.value.tax_summary.total_amount),
2589
+ trial_period: y(z.value, { short: !0 }),
2590
+ subscription_amount: ie(
2543
2591
  Ce.value ?? {
2544
2592
  quantity: "0.00",
2545
2593
  currency: d.value.tax_summary.total_amount.currency
@@ -2550,9 +2598,9 @@ const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-po
2550
2598
  start_date: new Date(xe.value)
2551
2599
  }
2552
2600
  );
2553
- if (y.value && l.value) {
2554
- const S = ne(
2555
- ((s = D.value) == null ? void 0 : s.tax_summary.total_amount) ?? {
2601
+ if (p.value && l.value) {
2602
+ const V = ie(
2603
+ ((r = B.value) == null ? void 0 : r.tax_summary.total_amount) ?? {
2556
2604
  quantity: "0.00",
2557
2605
  currency: l.value.currency
2558
2606
  }
@@ -2564,7 +2612,7 @@ const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-po
2564
2612
  description: "The agreement for a usage-based subscription whose first invoice also charges something only once"
2565
2613
  },
2566
2614
  {
2567
- due_today: S,
2615
+ due_today: V,
2568
2616
  billing_period: Ve.value
2569
2617
  }
2570
2618
  ) : o(
@@ -2574,8 +2622,8 @@ const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-po
2574
2622
  description: "The agreement for a subscription whose first invoice also charges something only once"
2575
2623
  },
2576
2624
  {
2577
- due_today: S,
2578
- subscription_amount: ne(l.value),
2625
+ due_today: V,
2626
+ subscription_amount: ie(l.value),
2579
2627
  billing_period: Ve.value,
2580
2628
  // @ts-expect-error formatjs does not support this type yet
2581
2629
  start_date: new Date(xe.value)
@@ -2586,7 +2634,7 @@ const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-po
2586
2634
  id: "checkout.agreement.one_off",
2587
2635
  description: "The agreement for an order that is charged once and does not renew"
2588
2636
  },
2589
- { due_today: S }
2637
+ { due_today: V }
2590
2638
  );
2591
2639
  }
2592
2640
  return o(
@@ -2596,38 +2644,38 @@ const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-po
2596
2644
  description: "The agreement for the subscription"
2597
2645
  },
2598
2646
  {
2599
- subscription_amount: Ce.value ? ne(Ce.value) : "",
2647
+ subscription_amount: Ce.value ? ie(Ce.value) : "",
2600
2648
  billing_period: Ve.value,
2601
2649
  // @ts-expect-error formatjs does not support this type yet
2602
2650
  start_date: new Date(xe.value)
2603
2651
  }
2604
2652
  );
2605
- }), wt = u(
2653
+ }), tt = c(
2606
2654
  () => {
2607
- var s, S, g, F;
2608
- return ((S = (s = D.value) == null ? void 0 : s.billing_entity) == null ? void 0 : S.legal_name) || ((F = (g = w.value) == null ? void 0 : g.billing_entity) == null ? void 0 : F.legal_name) || void 0;
2655
+ var r, V, f, Y;
2656
+ return ((V = (r = B.value) == null ? void 0 : r.billing_entity) == null ? void 0 : V.legal_name) || ((Y = (f = _.value) == null ? void 0 : f.billing_entity) == null ? void 0 : Y.legal_name) || void 0;
2609
2657
  }
2610
- ), Ct = u(() => {
2611
- var s;
2658
+ ), Ct = c(() => {
2659
+ var r;
2612
2660
  return {
2613
- subscriptions: R == null ? void 0 : R.value.map((S) => S.subscription),
2614
- invoicePreviewByBillingPeriod: z.value,
2661
+ subscriptions: R == null ? void 0 : R.value.map((V) => V.subscription),
2662
+ invoicePreviewByBillingPeriod: q.value,
2615
2663
  trialInvoice: d.value,
2616
2664
  enabledPricingIds: Je.value,
2617
- countryCode: c.form.value.country,
2618
- avatar: h.avatar,
2665
+ countryCode: i.form.value.country,
2666
+ avatar: v.avatar,
2619
2667
  isPaid: E.value,
2620
2668
  isUsageBased: _a.value,
2621
- usagePriceGroups: _t.value,
2622
- isUpdating: H.value || te.value,
2623
- invoiceSections: (s = h.source.invoiceSections) == null ? void 0 : s.value
2669
+ usagePriceGroups: kt.value,
2670
+ isUpdating: F.value || X.value,
2671
+ invoiceSections: (r = v.source.invoiceSections) == null ? void 0 : r.value
2624
2672
  };
2625
- }), xt = u(() => {
2626
- var S;
2627
- if (!D.value)
2673
+ }), xt = c(() => {
2674
+ var V;
2675
+ if (!B.value)
2628
2676
  return;
2629
- const s = Eo({
2630
- subscription: w.value,
2677
+ const r = Mo({
2678
+ subscription: _.value,
2631
2679
  fallback: o({
2632
2680
  defaultMessage: "Subscription",
2633
2681
  description: "The fallback name for when no subscription name can be determined",
@@ -2635,10 +2683,10 @@ const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-po
2635
2683
  })
2636
2684
  });
2637
2685
  return {
2638
- description: s,
2686
+ description: r,
2639
2687
  managementURL: "https://www.solvimon.com/account/billing",
2640
- agreement: Aa.value,
2641
- ...d.value && j.value && {
2688
+ agreement: wa.value,
2689
+ ...d.value && z.value && {
2642
2690
  trial: {
2643
2691
  label: o({
2644
2692
  defaultMessage: "Trial",
@@ -2646,399 +2694,396 @@ const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-po
2646
2694
  description: "The label of the trial"
2647
2695
  }),
2648
2696
  amount: d.value.tax_summary.total_amount,
2649
- startDate: tt.value ? new Date(tt.value) : void 0,
2650
- endDate: Mt.value ? new Date(Mt.value) : void 0
2697
+ startDate: at.value ? new Date(at.value) : void 0,
2698
+ endDate: Et.value ? new Date(Et.value) : void 0
2651
2699
  }
2652
2700
  },
2653
2701
  // Left off entirely, so the sheet mandates no charge that is never going to be made.
2654
2702
  ...We.value && Ce.value && {
2655
2703
  regular: {
2656
- label: s,
2704
+ label: r,
2657
2705
  amount: Ce.value,
2658
2706
  startDate: xe.value ? new Date(xe.value) : void 0,
2659
- interval: ((S = w.value) == null ? void 0 : S.billing_period) ?? { type: "MONTH", value: 1 }
2707
+ interval: ((V = _.value) == null ? void 0 : V.billing_period) ?? { type: "MONTH", value: 1 }
2660
2708
  }
2661
2709
  }
2662
2710
  };
2663
- }), wa = (s) => {
2664
- const { line1: S, line2: g, postal_code: F, city: K, state: ue, country: it, email: St } = s;
2665
- c.updateInitialState({
2666
- ...S && { addressLine1: S },
2667
- ...g && { addressLine2: g },
2668
- ...F && { postalCode: F },
2669
- ...K && { city: K },
2711
+ }), Aa = (r) => {
2712
+ const { line1: V, line2: f, postal_code: Y, city: W, state: ue, country: nt, email: St } = r;
2713
+ i.updateInitialState({
2714
+ ...V && { addressLine1: V },
2715
+ ...f && { addressLine2: f },
2716
+ ...Y && { postalCode: Y },
2717
+ ...W && { city: W },
2670
2718
  ...ue && { state: ue },
2671
2719
  ...St && { email: St },
2672
- ...it && je(it) ? { country: it } : {}
2720
+ ...nt && ze(nt) ? { country: nt } : {}
2673
2721
  });
2674
- }, Et = u(() => !(B && U)), tt = u(() => {
2675
- var g, F, K;
2676
- const s = (F = (g = d.value) == null ? void 0 : g.periods) == null ? void 0 : F[0], S = (K = at.value) == null ? void 0 : K.trialStartDate;
2677
- return s != null && s.start_at ? new Date(s.start_at) : S;
2678
- }), at = u(() => Mo(w.value)), Mt = u(() => {
2679
- var g, F, K;
2680
- const s = (F = (g = d.value) == null ? void 0 : g.periods) == null ? void 0 : F[0], S = (K = at.value) == null ? void 0 : K.trialEndDate;
2681
- return s != null && s.end_at ? new Date(s.end_at) : S;
2682
- }), xe = u(() => {
2683
- var g, F, K;
2684
- const s = (F = (g = D.value) == null ? void 0 : g.periods) == null ? void 0 : F[0], S = (K = at.value) == null ? void 0 : K.subscriptionStartDate;
2685
- return s != null && s.start_at ? new Date(s.start_at) : S;
2686
- }), Ca = u(() => !!(c.form.value.seatsValues && c.form.value.seatsValues.length > 0 || c.form.value.unitsValues && c.form.value.unitsValues.length > 0 || w.value && sn(w.value) || w.value && ln(w.value))), {
2722
+ }, Mt = c(() => !(A && U)), at = c(() => {
2723
+ var f, Y, W;
2724
+ const r = (Y = (f = d.value) == null ? void 0 : f.periods) == null ? void 0 : Y[0], V = (W = ot.value) == null ? void 0 : W.trialStartDate;
2725
+ return r != null && r.start_at ? new Date(r.start_at) : V;
2726
+ }), ot = c(() => Eo(_.value)), Et = c(() => {
2727
+ var f, Y, W;
2728
+ const r = (Y = (f = d.value) == null ? void 0 : f.periods) == null ? void 0 : Y[0], V = (W = ot.value) == null ? void 0 : W.trialEndDate;
2729
+ return r != null && r.end_at ? new Date(r.end_at) : V;
2730
+ }), xe = c(() => {
2731
+ var f, Y, W;
2732
+ const r = (Y = (f = B.value) == null ? void 0 : f.periods) == null ? void 0 : Y[0], V = (W = ot.value) == null ? void 0 : W.subscriptionStartDate;
2733
+ return r != null && r.start_at ? new Date(r.start_at) : V;
2734
+ }), Ca = c(() => !!(i.form.value.seatsValues && i.form.value.seatsValues.length > 0 || i.form.value.unitsValues && i.form.value.unitsValues.length > 0 || _.value && sn(_.value) || _.value && ln(_.value))), {
2687
2735
  code: It,
2688
2736
  isPending: Lt,
2689
- errorMessage: ot,
2737
+ errorMessage: it,
2690
2738
  apply: xa,
2691
- remove: Ea
2692
- } = h.source.promotionCode, Ma = u(() => {
2693
- var s;
2694
- return ((s = h.source.promotionCode.isAllowed) == null ? void 0 : s.value) ?? !0;
2695
- }), Ia = (s) => {
2696
- It.value = s;
2697
- }, La = (s, S) => {
2698
- s && (s.code.value = S);
2739
+ remove: Ma
2740
+ } = v.source.promotionCode, Ea = c(() => {
2741
+ var r;
2742
+ return ((r = v.source.promotionCode.isAllowed) == null ? void 0 : r.value) ?? !0;
2743
+ }), Ia = (r) => {
2744
+ It.value = r;
2745
+ }, La = (r, V) => {
2746
+ r && (r.code.value = V);
2699
2747
  }, Ta = () => {
2700
2748
  me.value && Lo(me.value);
2701
- }, Tt = Q(!1), Na = u(
2749
+ }, Tt = ae(!1), Na = c(
2702
2750
  () => !Tt.value && !!me.value
2703
2751
  ), Nt = () => {
2704
- var s;
2705
- if (k != null && k.awaitCompletion) {
2706
- we.value = !0, de.value = null, k.awaitCompletion();
2752
+ var r;
2753
+ if (P != null && P.awaitCompletion) {
2754
+ Ae.value = !0, de.value = null, P.awaitCompletion();
2707
2755
  return;
2708
2756
  }
2709
- if (E.value = !0, ge.value = void 0, J == null || J(), ot.value = null, de.value = null, !X("solvimon-payment-succeeded", {
2710
- componentName: Ae,
2711
- subscriptionId: (s = w.value) == null ? void 0 : s.id
2757
+ if (E.value = !0, ge.value = void 0, ee == null || ee(), it.value = null, de.value = null, !te("solvimon-payment-succeeded", {
2758
+ componentName: we,
2759
+ subscriptionId: (r = _.value) == null ? void 0 : r.id
2712
2760
  })) {
2713
2761
  Tt.value = !0;
2714
2762
  return;
2715
2763
  }
2716
2764
  Ta();
2717
- }, Sa = () => W().catch(() => {
2765
+ }, Sa = () => J().catch(() => {
2718
2766
  });
2719
- return (s, S) => e(oe) ? (i(), P(Wo, {
2767
+ return (r, V) => e(Q) ? (n(), w(Wo, {
2720
2768
  key: 0,
2721
2769
  class: "sv-checkout sv-root sv-screen sv-checkout--error"
2722
- })) : (i(), P(e(zo), {
2770
+ })) : (n(), w(e(jo), {
2723
2771
  key: 1,
2724
- class: rt(["sv-checkout sv-root sv-screen", { "sv-checkout--paid": e(E) }])
2772
+ class: ut(["sv-checkout sv-root sv-screen", { "sv-checkout--paid": e(E) }])
2725
2773
  }, {
2726
- header: m(() => [
2727
- I("div", yn, [
2728
- _(Me, { class: "min-h-[52px] w-96" }, {
2729
- default: m(() => {
2730
- var g, F, K, ue;
2774
+ header: g(() => [
2775
+ S("div", yn, [
2776
+ b(Ee, { class: "min-h-[52px] w-96" }, {
2777
+ default: g(() => {
2778
+ var f, Y, W, ue;
2731
2779
  return [
2732
- e(D) && e(w) && xe.value ? (i(), P(hi, {
2780
+ e(B) && e(_) && xe.value ? (n(), w(fi, {
2733
2781
  key: 0,
2734
2782
  class: "sv-checkout__title",
2735
- "trial-start-date": tt.value,
2736
- "trial-period": e(j),
2783
+ "trial-start-date": at.value,
2784
+ "trial-period": e(z),
2737
2785
  "subscription-start-date": xe.value,
2738
- "subscription-name": ((g = e(w)) == null ? void 0 : g.name) ?? "",
2739
- amount: (F = e(D)) == null ? void 0 : F.invoice_amount_including_tax,
2740
- "due-today-amount": e(v) ?? ((K = e(D)) == null ? void 0 : K.invoice_amount_including_tax),
2786
+ "subscription-name": ((f = e(_)) == null ? void 0 : f.name) ?? "",
2787
+ amount: (Y = e(B)) == null ? void 0 : Y.invoice_amount_including_tax,
2788
+ "due-today-amount": e(m) ?? ((W = e(B)) == null ? void 0 : W.invoice_amount_including_tax),
2741
2789
  "recurring-amount": ka.value,
2742
- "has-one-off-charges": e(y),
2790
+ "has-one-off-charges": e(p),
2743
2791
  "has-recurring-charge": We.value,
2744
2792
  "has-usage-charges": Ze.value,
2745
- "billing-period": (ue = e(w)) == null ? void 0 : ue.billing_period,
2746
- "country-code": e(c).form.value.country
2747
- }, null, 8, ["trial-start-date", "trial-period", "subscription-start-date", "subscription-name", "amount", "due-today-amount", "recurring-amount", "has-one-off-charges", "has-recurring-charge", "has-usage-charges", "billing-period", "country-code"])) : N("", !0)
2793
+ "billing-period": (ue = e(_)) == null ? void 0 : ue.billing_period,
2794
+ "country-code": e(i).form.value.country
2795
+ }, null, 8, ["trial-start-date", "trial-period", "subscription-start-date", "subscription-name", "amount", "due-today-amount", "recurring-amount", "has-one-off-charges", "has-recurring-charge", "has-usage-charges", "billing-period", "country-code"])) : $("", !0)
2748
2796
  ];
2749
2797
  }),
2750
2798
  _: 1
2751
2799
  })
2752
2800
  ])
2753
2801
  ]),
2754
- content: m(() => [
2755
- e(E) ? (i(), P(fi, {
2802
+ content: g(() => [
2803
+ e(E) ? (n(), w(hi, {
2756
2804
  key: 0,
2757
2805
  class: "sv-checkout__completed-payment"
2758
- })) : (i(), x(G, { key: 1 }, [
2759
- e(w) && e(f) ? (i(), P(ta, ve({
2806
+ })) : (n(), x(K, { key: 1 }, [
2807
+ e(_) && e(O) ? (n(), w(ta, ve({
2760
2808
  key: 0,
2761
2809
  class: "sv-checkout__mobile-order-summary"
2762
2810
  }, Ct.value, {
2763
- subscription: e(w),
2764
- invoice: e(D),
2811
+ subscription: e(_),
2812
+ invoice: e(B),
2765
2813
  collapsible: "collapsed",
2766
2814
  variant: "products-inline",
2767
- onBillingPeriodChange: e(ae)
2768
- }), null, 16, ["subscription", "invoice", "onBillingPeriodChange"])) : N("", !0),
2769
- e(R) ? (i(!0), x(G, { key: 1 }, ce(e(R), (g) => (i(), x(G, {
2770
- key: g.key
2815
+ onBillingPeriodChange: e(oe)
2816
+ }), null, 16, ["subscription", "invoice", "onBillingPeriodChange"])) : $("", !0),
2817
+ e(R) ? (n(!0), x(K, { key: 1 }, ce(e(R), (f) => (n(), x(K, {
2818
+ key: f.key
2771
2819
  }, [
2772
- g.seatsValues.value.length || g.unitsValues.value.length || g.promotionCode ? (i(), P(e(n), ve({
2820
+ f.seatsValues.value.length || f.unitsValues.value.length || f.promotionCode ? (n(), w(e(s), ve({
2773
2821
  key: 0,
2774
2822
  ref_for: !0
2775
2823
  }, Ne.value, {
2776
- "seats-values": g.seatsValues.value,
2777
- "onUpdate:seatsValues": (F) => g.seatsValues.value = F,
2778
- "units-values": g.unitsValues.value,
2779
- "onUpdate:unitsValues": (F) => g.unitsValues.value = F,
2824
+ "seats-values": f.seatsValues.value,
2825
+ "onUpdate:seatsValues": (Y) => f.seatsValues.value = Y,
2826
+ "units-values": f.unitsValues.value,
2827
+ "onUpdate:unitsValues": (Y) => f.unitsValues.value = Y,
2780
2828
  class: "sv-checkout__plan-customization",
2781
- title: g.title,
2782
- subscription: g.subscription,
2829
+ title: f.title,
2830
+ subscription: f.subscription,
2783
2831
  "enabled-pricing-ids": [],
2784
2832
  "hide-pricing-choices": "",
2785
- "initial-seats-values": g.minimums.seatsValues,
2786
- "initial-units-values": g.minimums.unitsValues,
2787
- "max-seats-values": g.maximums.seatsValues,
2788
- "max-units-values": g.maximums.unitsValues,
2789
- "editable-config-ids": g.editableConfigIds,
2790
- "billing-period": g.subscription.billing_period
2833
+ "initial-seats-values": f.minimums.seatsValues,
2834
+ "initial-units-values": f.minimums.unitsValues,
2835
+ "max-seats-values": f.maximums.seatsValues,
2836
+ "max-units-values": f.maximums.unitsValues,
2837
+ "editable-config-ids": f.editableConfigIds,
2838
+ "billing-period": f.subscription.billing_period
2791
2839
  }), {
2792
- default: m(() => {
2793
- var F, K;
2840
+ default: g(() => {
2841
+ var Y, W;
2794
2842
  return [
2795
- (K = (F = g.promotionCode) == null ? void 0 : F.isAllowed) != null && K.value ? (i(), x(G, { key: 0 }, [
2796
- _(oa, {
2843
+ (W = (Y = f.promotionCode) == null ? void 0 : Y.isAllowed) != null && W.value ? (n(), x(K, { key: 0 }, [
2844
+ b(oa, {
2797
2845
  class: "sv-checkout__promotion-code",
2798
- "promotion-code": g.promotionCode.code.value,
2799
- "is-pending": g.promotionCode.isPending.value,
2800
- "onUpdate:appliedCode": (ue) => La(g.promotionCode, ue),
2801
- onRemove: g.promotionCode.remove,
2802
- onApply: g.promotionCode.apply
2846
+ "promotion-code": f.promotionCode.code.value,
2847
+ "is-pending": f.promotionCode.isPending.value,
2848
+ "onUpdate:appliedCode": (ue) => La(f.promotionCode, ue),
2849
+ onRemove: f.promotionCode.remove,
2850
+ onApply: f.promotionCode.apply
2803
2851
  }, null, 8, ["promotion-code", "is-pending", "onUpdate:appliedCode", "onRemove", "onApply"]),
2804
- g.promotionCode.errorMessage.value ? (i(), P(e(st), {
2852
+ f.promotionCode.errorMessage.value ? (n(), w(e(lt), {
2805
2853
  key: 0,
2806
2854
  class: "sv-checkout__promotion-error",
2807
- title: g.promotionCode.errorMessage.value
2808
- }, null, 8, ["title"])) : N("", !0)
2809
- ], 64)) : N("", !0)
2855
+ title: f.promotionCode.errorMessage.value
2856
+ }, null, 8, ["title"])) : $("", !0)
2857
+ ], 64)) : $("", !0)
2810
2858
  ];
2811
2859
  }),
2812
2860
  _: 2
2813
- }, 1040, ["seats-values", "onUpdate:seatsValues", "units-values", "onUpdate:unitsValues", "title", "subscription", "initial-seats-values", "initial-units-values", "max-seats-values", "max-units-values", "editable-config-ids", "billing-period"])) : N("", !0)
2814
- ], 64))), 128)) : Ca.value && e(w) ? (i(), P(e(n), ve({ key: 2 }, Ne.value, {
2861
+ }, 1040, ["seats-values", "onUpdate:seatsValues", "units-values", "onUpdate:unitsValues", "title", "subscription", "initial-seats-values", "initial-units-values", "max-seats-values", "max-units-values", "editable-config-ids", "billing-period"])) : $("", !0)
2862
+ ], 64))), 128)) : Ca.value && e(_) ? (n(), w(e(s), ve({ key: 2 }, Ne.value, {
2815
2863
  "seats-values": e(Qe),
2816
- "onUpdate:seatsValues": S[0] || (S[0] = (g) => Dt(Qe) ? Qe.value = g : null),
2864
+ "onUpdate:seatsValues": V[0] || (V[0] = (f) => Dt(Qe) ? Qe.value = f : null),
2817
2865
  "units-values": e(et),
2818
- "onUpdate:unitsValues": S[1] || (S[1] = (g) => Dt(et) ? et.value = g : null),
2866
+ "onUpdate:unitsValues": V[1] || (V[1] = (f) => Dt(et) ? et.value = f : null),
2819
2867
  "enabled-pricing-ids": Je.value,
2820
- "onUpdate:enabledPricingIds": S[2] || (S[2] = (g) => Je.value = g),
2868
+ "onUpdate:enabledPricingIds": V[2] || (V[2] = (f) => Je.value = f),
2821
2869
  class: "sv-checkout__plan-customization",
2822
- subscription: e(w),
2823
- "initial-seats-values": e(A).seatsValues,
2824
- "initial-units-values": e(A).unitsValues,
2825
- "billing-period": e(w).billing_period,
2826
- currency: e(p)
2827
- }), null, 16, ["seats-values", "units-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "initial-units-values", "billing-period", "currency"])) : N("", !0),
2828
- e(ct) && pa.value && !Ke.value && e(c).form.value.country && e(v) && xt.value ? (i(), P(nn, {
2870
+ subscription: e(_),
2871
+ "initial-seats-values": e(k).seatsValues,
2872
+ "initial-units-values": e(k).unitsValues,
2873
+ "billing-period": e(_).billing_period,
2874
+ currency: e(h)
2875
+ }), null, 16, ["seats-values", "units-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "initial-units-values", "billing-period", "currency"])) : $("", !0),
2876
+ e(dt) && pa.value && !Ke.value && e(i).form.value.country && e(m) && xt.value ? (n(), w(nn, {
2829
2877
  key: 3,
2830
2878
  class: "sv-checkout__express-payment-methods",
2831
- amount: e(v),
2832
- "country-code": e(c).form.value.country,
2833
- locale: e(T),
2879
+ amount: e(m),
2880
+ "country-code": e(i).form.value.country,
2881
+ locale: e(L),
2834
2882
  "payment-methods-options-response": le.value ?? [],
2835
2883
  "billing-information": xt.value,
2836
- "on-billing-information-change": e(ct),
2884
+ "on-billing-information-change": e(dt),
2837
2885
  context: Le.value,
2838
- "validate-on-submit": ft,
2839
- onUpdateBillingInformation: wa,
2886
+ "validate-on-submit": yt,
2887
+ onUpdateBillingInformation: Aa,
2840
2888
  onPaymentSuccess: Nt,
2841
- onPaymentFailed: fa
2842
- }, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change", "context"])) : N("", !0),
2843
- e($) ? (i(!0), x(G, { key: 4 }, ce(e($), (g) => (i(), P(ea, ve({
2844
- key: g.key,
2845
- modelValue: g.form.form.value,
2846
- "onUpdate:modelValue": (F) => g.form.form.value = F,
2889
+ onPaymentFailed: ha
2890
+ }, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change", "context"])) : $("", !0),
2891
+ e(T) ? (n(!0), x(K, { key: 4 }, ce(e(T), (f) => (n(), w(ea, ve({
2892
+ key: f.key,
2893
+ modelValue: f.form.form.value,
2894
+ "onUpdate:modelValue": (Y) => f.form.form.value = Y,
2847
2895
  class: "sv-checkout__customer-form",
2848
- validation: g.form.validation,
2849
- display: g.display,
2850
- "is-type-locked": g.isTypeLocked,
2851
- title: g.title,
2852
- "show-customer-info-on-top": Et.value || e(E),
2853
- "is-billing-information-mandatory": kt(g.form.form.value.country),
2854
- "get-is-field-required": g.form.getIsFieldRequired,
2855
- "shipping-address-format": g.form.shippingAddressFormat.value,
2896
+ validation: f.form.validation,
2897
+ display: f.display,
2898
+ "is-type-locked": f.isTypeLocked,
2899
+ title: f.title,
2900
+ "show-customer-info-on-top": Mt.value || e(E),
2901
+ "is-billing-information-mandatory": Pt(f.form.form.value.country),
2902
+ "get-is-field-required": f.form.getIsFieldRequired,
2903
+ "shipping-address-format": f.form.shippingAddressFormat.value,
2856
2904
  "read-only": e(E)
2857
- }, { ref_for: !0 }, Ne.value), null, 16, ["modelValue", "onUpdate:modelValue", "validation", "display", "is-type-locked", "title", "show-customer-info-on-top", "is-billing-information-mandatory", "get-is-field-required", "shipping-address-format", "read-only"]))), 128)) : (i(), P(ea, ve({
2905
+ }, { ref_for: !0 }, Ne.value), null, 16, ["modelValue", "onUpdate:modelValue", "validation", "display", "is-type-locked", "title", "show-customer-info-on-top", "is-billing-information-mandatory", "get-is-field-required", "shipping-address-format", "read-only"]))), 128)) : (n(), w(ea, ve({
2858
2906
  key: 5,
2859
- modelValue: e(c).form.value,
2860
- "onUpdate:modelValue": S[3] || (S[3] = (g) => e(c).form.value = g),
2907
+ modelValue: e(i).form.value,
2908
+ "onUpdate:modelValue": V[3] || (V[3] = (f) => e(i).form.value = f),
2861
2909
  class: "sv-checkout__customer-form",
2862
- validation: e(c).validation,
2863
- "read-only-email": e(B),
2864
- "show-customer-info-on-top": Et.value || e(E),
2910
+ validation: e(i).validation,
2911
+ "read-only-email": e(A),
2912
+ "show-customer-info-on-top": Mt.value || e(E),
2865
2913
  "is-billing-information-mandatory": Pa.value,
2866
2914
  "is-shipping-address-required": e($e),
2867
- "get-is-field-required": e(c).getIsFieldRequired,
2868
- "shipping-address-format": e(c).shippingAddressFormat.value,
2915
+ "get-is-field-required": e(i).getIsFieldRequired,
2916
+ "shipping-address-format": e(i).shippingAddressFormat.value,
2869
2917
  "read-only": e(E)
2870
2918
  }, Ne.value), null, 16, ["modelValue", "validation", "read-only-email", "show-customer-info-on-top", "is-billing-information-mandatory", "is-shipping-address-required", "get-is-field-required", "shipping-address-format", "read-only"])),
2871
- I("div", bn, [
2872
- _(Me, {
2919
+ S("div", bn, [
2920
+ b(Ee, {
2873
2921
  variant: "section",
2874
2922
  class: "min-h-[130px]"
2875
2923
  }, {
2876
- default: m(() => {
2877
- var g, F;
2878
- return [
2879
- !_e.value || _e.value && le.value.length > 0 ? (i(), x("div", _n, [
2880
- _(e(Y), {
2881
- variant: "heading-3",
2882
- tag: "h2",
2883
- class: "sv-checkout__payment-methods-title mb-2"
2884
- }, {
2885
- default: m(() => [
2886
- O(M(e(o)({
2887
- defaultMessage: "Payment method",
2888
- id: "checkout.payment_method_block.title",
2889
- description: "The title of the payment method block in the checkout form"
2890
- })), 1)
2891
- ]),
2892
- _: 1
2893
- }),
2894
- e(k) ? Ge.value ? ke.value ? (i(), P(Se, {
2895
- key: 2,
2896
- class: "sv-checkout__payment-methods-error",
2897
- icon: "error"
2898
- }, {
2899
- title: m(() => [
2900
- O(M(e(o)({
2901
- defaultMessage: "Could not load payment methods",
2902
- id: "checkout.payment_method_block.load_failed_title",
2903
- description: "The title shown when the payment methods failed to load"
2904
- })), 1)
2905
- ]),
2906
- message: m(() => [
2907
- O(M(e(o)({
2908
- defaultMessage: "Check your connection and try again.",
2909
- id: "checkout.payment_method_block.load_failed_message",
2910
- description: "The message shown when the payment methods failed to load"
2911
- })), 1)
2912
- ]),
2913
- action: m(() => [
2914
- _(e(Ie), {
2915
- type: "button",
2916
- intent: "secondary",
2917
- size: "sm",
2918
- class: "sv-action sv-action--secondary sv-checkout__payment-methods-retry",
2919
- onClick: Ye
2920
- }, {
2921
- default: m(() => [
2922
- O(M(e(o)({
2923
- defaultMessage: "Try again",
2924
- id: "checkout.payment_method_block.load_failed_retry_button.label",
2925
- description: "The label of the button that loads the payment methods again"
2926
- })), 1)
2927
- ]),
2928
- _: 1
2929
- })
2930
- ]),
2931
- _: 1
2932
- })) : le.value.length === 0 ? (i(), P(Se, {
2933
- key: 3,
2934
- class: "sv-checkout__payment-methods-empty",
2935
- icon: "credit_card_off"
2936
- }, {
2937
- title: m(() => [
2938
- O(M(e(o)({
2939
- defaultMessage: "No payment methods available",
2940
- id: "checkout.payment_method_block.no_payment_methods_available_title",
2941
- description: "The title shown when there are no available payment methods"
2942
- })), 1)
2943
- ]),
2944
- _: 1
2945
- })) : e(v) && Ge.value ? (i(), x("div", kn, [
2946
- I("div", {
2947
- class: rt({ "pointer-events-none opacity-60": e(ma) })
2948
- }, [
2949
- _(e(r), {
2950
- ref_key: "paymentIntegrationFormRef",
2951
- ref: a,
2952
- "country-code": Ge.value,
2953
- context: ge.value ? ge.value.context : Le.value,
2954
- amount: ge.value ? ge.value.amount : e(v),
2955
- email: e(c).form.value.email,
2956
- variant: "AUTHORIZE",
2957
- "payment-method-options": le.value ?? [],
2958
- "validate-on-submit": ft,
2959
- "redirects-on-success": Na.value,
2960
- "force-store-payment-method": "",
2961
- "billing-entity-name": (F = (g = e(w)) == null ? void 0 : g.billing_entity) == null ? void 0 : F.legal_name,
2962
- onPaymentSuccess: Nt,
2963
- onPaymentFailed: ht,
2964
- onInvalid: ha,
2965
- onSubmitting: gt,
2966
- onActionRequired: e(ga)
2967
- }, null, 8, ["country-code", "context", "amount", "email", "payment-method-options", "redirects-on-success", "billing-entity-name", "onActionRequired"])
2968
- ], 2)
2969
- ])) : N("", !0) : (i(), P(Se, {
2970
- key: 1,
2971
- class: "sv-checkout__payment-methods-empty",
2972
- icon: "captive_portal"
2973
- }, {
2974
- title: m(() => [
2975
- O(M(e(o)({
2976
- defaultMessage: "Select your billing country",
2977
- id: "checkout.payment_method_block.no_country_selected_title",
2978
- description: "The title shown when no country is selected"
2979
- })), 1)
2980
- ]),
2981
- message: m(() => [
2982
- O(M(e(o)({
2983
- defaultMessage: "Payment methods will be shown after you select the billing country.",
2984
- id: "checkout.payment_method_block.no_country_selected_message",
2985
- description: "The message shown when no country is selected"
2986
- })), 1)
2987
- ]),
2988
- _: 1
2989
- })) : (i(), P(Se, {
2990
- key: 0,
2991
- class: "sv-checkout__payment-unavailable",
2992
- icon: "credit_card_off"
2993
- }, {
2994
- title: m(() => [
2995
- O(M(e(o)({
2996
- defaultMessage: "Payment is not available yet",
2997
- id: "checkout.payment_method_block.payment_unavailable_title",
2998
- description: "The title shown where the payment methods go when this checkout cannot take a payment yet"
2999
- })), 1)
3000
- ]),
3001
- _: 1
3002
- }))
3003
- ])) : N("", !0)
3004
- ];
3005
- }),
2924
+ default: g(() => [
2925
+ !_e.value || _e.value && le.value.length > 0 ? (n(), x("div", _n, [
2926
+ b(e(G), {
2927
+ variant: "heading-3",
2928
+ tag: "h2",
2929
+ class: "sv-checkout__payment-methods-title mb-2"
2930
+ }, {
2931
+ default: g(() => [
2932
+ D(N(e(o)({
2933
+ defaultMessage: "Payment method",
2934
+ id: "checkout.payment_method_block.title",
2935
+ description: "The title of the payment method block in the checkout form"
2936
+ })), 1)
2937
+ ]),
2938
+ _: 1
2939
+ }),
2940
+ e(P) ? Ge.value ? ke.value ? (n(), w(Se, {
2941
+ key: 2,
2942
+ class: "sv-checkout__payment-methods-error",
2943
+ icon: "error"
2944
+ }, {
2945
+ title: g(() => [
2946
+ D(N(e(o)({
2947
+ defaultMessage: "Could not load payment methods",
2948
+ id: "checkout.payment_method_block.load_failed_title",
2949
+ description: "The title shown when the payment methods failed to load"
2950
+ })), 1)
2951
+ ]),
2952
+ message: g(() => [
2953
+ D(N(e(o)({
2954
+ defaultMessage: "Check your connection and try again.",
2955
+ id: "checkout.payment_method_block.load_failed_message",
2956
+ description: "The message shown when the payment methods failed to load"
2957
+ })), 1)
2958
+ ]),
2959
+ action: g(() => [
2960
+ b(e(Ie), {
2961
+ type: "button",
2962
+ intent: "secondary",
2963
+ size: "sm",
2964
+ class: "sv-action sv-action--secondary sv-checkout__payment-methods-retry",
2965
+ onClick: Ye
2966
+ }, {
2967
+ default: g(() => [
2968
+ D(N(e(o)({
2969
+ defaultMessage: "Try again",
2970
+ id: "checkout.payment_method_block.load_failed_retry_button.label",
2971
+ description: "The label of the button that loads the payment methods again"
2972
+ })), 1)
2973
+ ]),
2974
+ _: 1
2975
+ })
2976
+ ]),
2977
+ _: 1
2978
+ })) : le.value.length === 0 ? (n(), w(Se, {
2979
+ key: 3,
2980
+ class: "sv-checkout__payment-methods-empty",
2981
+ icon: "credit_card_off"
2982
+ }, {
2983
+ title: g(() => [
2984
+ D(N(e(o)({
2985
+ defaultMessage: "No payment methods available",
2986
+ id: "checkout.payment_method_block.no_payment_methods_available_title",
2987
+ description: "The title shown when there are no available payment methods"
2988
+ })), 1)
2989
+ ]),
2990
+ _: 1
2991
+ })) : e(m) && Ge.value ? (n(), x("div", kn, [
2992
+ S("div", {
2993
+ class: ut({ "pointer-events-none opacity-60": e(ma) })
2994
+ }, [
2995
+ b(e(u), {
2996
+ ref_key: "paymentIntegrationFormRef",
2997
+ ref: a,
2998
+ "country-code": Ge.value,
2999
+ context: ge.value ? ge.value.context : Le.value,
3000
+ amount: ge.value ? ge.value.amount : e(m),
3001
+ email: e(i).form.value.email,
3002
+ variant: "AUTHORIZE",
3003
+ "payment-method-options": le.value ?? [],
3004
+ "validate-on-submit": yt,
3005
+ "redirects-on-success": Na.value,
3006
+ "force-store-payment-method": "",
3007
+ "billing-entity-name": tt.value,
3008
+ onPaymentSuccess: Nt,
3009
+ onPaymentFailed: ht,
3010
+ onInvalid: fa,
3011
+ onSubmitting: vt,
3012
+ onActionRequired: e(ga)
3013
+ }, null, 8, ["country-code", "context", "amount", "email", "payment-method-options", "redirects-on-success", "billing-entity-name", "onActionRequired"])
3014
+ ], 2)
3015
+ ])) : $("", !0) : (n(), w(Se, {
3016
+ key: 1,
3017
+ class: "sv-checkout__payment-methods-empty",
3018
+ icon: "captive_portal"
3019
+ }, {
3020
+ title: g(() => [
3021
+ D(N(e(o)({
3022
+ defaultMessage: "Select your billing country",
3023
+ id: "checkout.payment_method_block.no_country_selected_title",
3024
+ description: "The title shown when no country is selected"
3025
+ })), 1)
3026
+ ]),
3027
+ message: g(() => [
3028
+ D(N(e(o)({
3029
+ defaultMessage: "Payment methods will be shown after you select the billing country.",
3030
+ id: "checkout.payment_method_block.no_country_selected_message",
3031
+ description: "The message shown when no country is selected"
3032
+ })), 1)
3033
+ ]),
3034
+ _: 1
3035
+ })) : (n(), w(Se, {
3036
+ key: 0,
3037
+ class: "sv-checkout__payment-unavailable",
3038
+ icon: "credit_card_off"
3039
+ }, {
3040
+ title: g(() => [
3041
+ D(N(e(o)({
3042
+ defaultMessage: "Payment is not available yet",
3043
+ id: "checkout.payment_method_block.payment_unavailable_title",
3044
+ description: "The title shown where the payment methods go when this checkout cannot take a payment yet"
3045
+ })), 1)
3046
+ ]),
3047
+ _: 1
3048
+ }))
3049
+ ])) : $("", !0)
3050
+ ]),
3006
3051
  _: 1
3007
3052
  })
3008
3053
  ])
3009
3054
  ], 64))
3010
3055
  ]),
3011
- aside: m(() => [
3012
- I("div", Pn, [
3013
- e(ee) && !e(D) ? (i(), P(Se, {
3056
+ aside: g(() => [
3057
+ S("div", Pn, [
3058
+ e(Z) && !e(B) ? (n(), w(Se, {
3014
3059
  key: 0,
3015
3060
  class: "sv-checkout__order-summary-error",
3016
3061
  icon: "error"
3017
3062
  }, {
3018
- title: m(() => [
3019
- O(M(e(o)({
3063
+ title: g(() => [
3064
+ D(N(e(o)({
3020
3065
  defaultMessage: "Could not load the price",
3021
3066
  id: "checkout.order_summary.load_failed_title",
3022
3067
  description: "The title shown in the order summary when the price of the order failed to load"
3023
3068
  })), 1)
3024
3069
  ]),
3025
- message: m(() => [
3026
- O(M(e(o)({
3070
+ message: g(() => [
3071
+ D(N(e(o)({
3027
3072
  defaultMessage: "Check your connection and try again.",
3028
3073
  id: "checkout.order_summary.load_failed_message",
3029
3074
  description: "The message shown in the order summary when the price of the order failed to load"
3030
3075
  })), 1)
3031
3076
  ]),
3032
- action: m(() => [
3033
- _(e(Ie), {
3077
+ action: g(() => [
3078
+ b(e(Ie), {
3034
3079
  type: "button",
3035
3080
  intent: "secondary",
3036
3081
  size: "sm",
3037
3082
  class: "sv-action sv-action--secondary sv-checkout__order-summary-retry",
3038
3083
  onClick: Sa
3039
3084
  }, {
3040
- default: m(() => [
3041
- O(M(e(o)({
3085
+ default: g(() => [
3086
+ D(N(e(o)({
3042
3087
  defaultMessage: "Try again",
3043
3088
  id: "checkout.order_summary.load_failed_retry_button.label",
3044
3089
  description: "The label of the button that loads the price of the order again"
@@ -3048,56 +3093,56 @@ const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-po
3048
3093
  })
3049
3094
  ]),
3050
3095
  _: 1
3051
- })) : (i(), P(Me, {
3096
+ })) : (n(), w(Ee, {
3052
3097
  key: 1,
3053
3098
  variant: "section",
3054
3099
  class: "min-h-[220px]"
3055
3100
  }, {
3056
- default: m(() => [
3057
- e(w) && e(D) ? (i(), P(ta, ve({ key: 0 }, Ct.value, {
3058
- subscription: e(w),
3059
- invoice: e(D),
3060
- onBillingPeriodChange: e(ae)
3061
- }), null, 16, ["subscription", "invoice", "onBillingPeriodChange"])) : N("", !0)
3101
+ default: g(() => [
3102
+ e(_) && e(B) ? (n(), w(ta, ve({ key: 0 }, Ct.value, {
3103
+ subscription: e(_),
3104
+ invoice: e(B),
3105
+ onBillingPeriodChange: e(oe)
3106
+ }), null, 16, ["subscription", "invoice", "onBillingPeriodChange"])) : $("", !0)
3062
3107
  ]),
3063
3108
  _: 1
3064
3109
  }))
3065
3110
  ]),
3066
- e(E) ? N("", !0) : (i(), x(G, { key: 0 }, [
3067
- Ma.value ? (i(), P(oa, ve({
3111
+ e(E) ? $("", !0) : (n(), x(K, { key: 0 }, [
3112
+ Ea.value ? (n(), w(oa, ve({
3068
3113
  key: 0,
3069
3114
  class: "sv-checkout__promotion-code"
3070
3115
  }, Ne.value, {
3071
3116
  "promotion-code": e(It),
3072
3117
  "is-pending": e(Lt),
3073
3118
  "onUpdate:appliedCode": Ia,
3074
- onRemove: e(Ea),
3119
+ onRemove: e(Ma),
3075
3120
  onApply: e(xa)
3076
- }), null, 16, ["promotion-code", "is-pending", "onRemove", "onApply"])) : N("", !0),
3077
- e(ot) ? (i(), P(e(st), {
3121
+ }), null, 16, ["promotion-code", "is-pending", "onRemove", "onApply"])) : $("", !0),
3122
+ e(it) ? (n(), w(e(lt), {
3078
3123
  key: 1,
3079
3124
  class: "sv-checkout__promotion-error mt-2",
3080
- title: e(ot)
3081
- }, null, 8, ["title"])) : N("", !0),
3082
- de.value ? (i(), P(e(st), {
3125
+ title: e(it)
3126
+ }, null, 8, ["title"])) : $("", !0),
3127
+ de.value ? (n(), w(e(lt), {
3083
3128
  key: 2,
3084
3129
  class: "sv-checkout__payment-error mt-2",
3085
3130
  title: de.value
3086
- }, null, 8, ["title"])) : N("", !0),
3087
- I("div", An, [
3088
- _(Me, { class: "sv-checkout__submit-skeleton min-h-10" }, {
3089
- default: m(() => [
3090
- e(D) ? (i(), P(e(Ie), {
3131
+ }, null, 8, ["title"])) : $("", !0),
3132
+ S("div", wn, [
3133
+ b(Ee, { class: "sv-checkout__submit-skeleton min-h-10" }, {
3134
+ default: g(() => [
3135
+ e(B) ? (n(), w(e(Ie), {
3091
3136
  key: 0,
3092
3137
  type: "button",
3093
3138
  size: "md",
3094
3139
  class: "sv-action sv-action--primary sv-action--full-width sv-checkout__submit w-full",
3095
- disabled: !dt.value || e(Lt) || e(H) || e(te) || ke.value || le.value.length === 0 || we.value || Ke.value,
3096
- loading: we.value,
3140
+ disabled: !pt.value || e(Lt) || e(F) || e(X) || ke.value || le.value.length === 0 || Ae.value || Ke.value,
3141
+ loading: Ae.value,
3097
3142
  onClick: va
3098
3143
  }, {
3099
- default: m(() => [
3100
- O(M(ya.value ? e(o)({
3144
+ default: g(() => [
3145
+ D(N(ya.value ? e(o)({
3101
3146
  defaultMessage: "Start trial",
3102
3147
  id: "checkout.pay_and_subscribe_button_trial.label",
3103
3148
  description: "The label of the start trial button in the checkout form"
@@ -3108,48 +3153,48 @@ const cn = ["aria-expanded", "aria-label"], dn = { class: "flex w-full cursor-po
3108
3153
  })), 1)
3109
3154
  ]),
3110
3155
  _: 1
3111
- }, 8, ["disabled", "loading"])) : N("", !0)
3156
+ }, 8, ["disabled", "loading"])) : $("", !0)
3112
3157
  ]),
3113
3158
  _: 1
3114
3159
  }),
3115
- e(ye) ? (i(), P(e(Y), {
3160
+ e(ye) ? (n(), w(e(G), {
3116
3161
  key: 0,
3117
3162
  tag: "div",
3118
3163
  variant: "body-xs",
3119
3164
  class: "sv-checkout__cancel text-center"
3120
3165
  }, {
3121
- default: m(() => [
3122
- I("a", {
3166
+ default: g(() => [
3167
+ S("a", {
3123
3168
  href: e(ye),
3124
3169
  class: "text-primary-900 hover:underline"
3125
- }, M(wt.value ? e(o)(
3170
+ }, N(tt.value ? e(o)(
3126
3171
  {
3127
3172
  defaultMessage: "Cancel and return to {name}",
3128
3173
  id: "checkout.cancel_link_to",
3129
3174
  description: "The link under the pay button that leaves the checkout without paying and goes back to the shop named by the seller"
3130
3175
  },
3131
- { name: wt.value }
3176
+ { name: tt.value }
3132
3177
  ) : e(o)({
3133
3178
  defaultMessage: "Cancel and return",
3134
3179
  id: "checkout.cancel_link",
3135
3180
  description: "The link under the pay button that leaves the checkout without paying and goes back to the shop"
3136
- })), 9, wn)
3181
+ })), 9, An)
3137
3182
  ]),
3138
3183
  _: 1
3139
- })) : N("", !0),
3140
- _(Go, { "payment-method-options": le.value }, null, 8, ["payment-method-options"]),
3141
- V.value ? (i(), P(e(Y), {
3184
+ })) : $("", !0),
3185
+ b(Go, { "payment-method-options": le.value }, null, 8, ["payment-method-options"]),
3186
+ j.value ? (n(), w(e(G), {
3142
3187
  key: 1,
3143
3188
  tag: "div",
3144
3189
  variant: "body-xs",
3145
3190
  color: "subtle",
3146
3191
  class: "sv-checkout__terms px-4 text-center"
3147
3192
  }, {
3148
- default: m(() => [
3149
- _(Zi, { source: V.value }, null, 8, ["source"])
3193
+ default: g(() => [
3194
+ b(Zi, { source: j.value }, null, 8, ["source"])
3150
3195
  ]),
3151
3196
  _: 1
3152
- })) : N("", !0)
3197
+ })) : $("", !0)
3153
3198
  ])
3154
3199
  ], 64))
3155
3200
  ]),
@@ -3167,27 +3212,27 @@ function Cn() {
3167
3212
  }
3168
3213
  };
3169
3214
  }
3170
- function hs({
3215
+ function fs({
3171
3216
  initialState: t,
3172
- onRequiredFieldChange: r,
3173
- isShippingAddressRequired: n,
3174
- display: h,
3217
+ onRequiredFieldChange: u,
3218
+ isShippingAddressRequired: s,
3219
+ display: v,
3175
3220
  alsoRequired: a,
3176
- guessCountry: L = !0
3221
+ guessCountry: I = !0
3177
3222
  }) {
3178
- const C = u(() => nt(n) ?? !1), o = Q(Fe(t)), T = Q(Fe(t));
3179
- C.value && !o.value.shippingCountry && (o.value.shippingCountry = o.value.country, T.value.shippingCountry = o.value.country);
3180
- const b = (d) => {
3181
- const j = Fe({ ...qa(o.value), ...d });
3182
- o.value = j, T.value = structuredClone(j);
3183
- }, { formatOf: f } = Qa({
3223
+ const C = c(() => st(s) ?? !1), o = ae(Fe(t)), L = ae(Fe(t));
3224
+ C.value && !o.value.shippingCountry && (o.value.shippingCountry = o.value.country, L.value.shippingCountry = o.value.country);
3225
+ const y = (d) => {
3226
+ const z = Fe({ ...qa(o.value), ...d });
3227
+ o.value = z, L.value = structuredClone(z);
3228
+ }, { formatOf: O } = Qa({
3184
3229
  isNeeded: () => C.value,
3185
3230
  countries: [() => o.value.shippingCountry, () => o.value.country]
3186
- }), V = u(() => f(o.value.shippingCountry)), B = u(
3231
+ }), j = c(() => O(o.value.shippingCountry)), A = c(
3187
3232
  () => C.value && !o.value.billingAddressSameAsShipping
3188
- ), U = u(
3189
- () => B.value ? f(o.value.country) : void 0
3190
- ), w = u(() => {
3233
+ ), U = c(
3234
+ () => A.value ? O(o.value.country) : void 0
3235
+ ), _ = c(() => {
3191
3236
  const d = o.value.type === "ORGANIZATION" ? [] : ["shippingLastName"];
3192
3237
  return [
3193
3238
  ...eo(o.value.country),
@@ -3195,62 +3240,62 @@ function hs({
3195
3240
  ...Gt(
3196
3241
  "SHIPPING",
3197
3242
  o.value.shippingCountry,
3198
- V.value
3243
+ j.value
3199
3244
  ),
3200
3245
  "shippingPhoneNumber",
3201
3246
  ...d
3202
3247
  ] : [],
3203
- ...B.value ? Gt(
3248
+ ...A.value ? Gt(
3204
3249
  "BILLING",
3205
3250
  o.value.country,
3206
3251
  U.value
3207
3252
  ) : [],
3208
- ...nt(a) ?? []
3253
+ ...st(a) ?? []
3209
3254
  ];
3210
- }), A = (d) => w.value.includes(d), q = po(
3211
- u(() => {
3255
+ }), k = (d) => _.value.includes(d), M = po(
3256
+ c(() => {
3212
3257
  const d = {
3213
- ...Ht("BILLING", () => U.value, A),
3214
- ...Ht("SHIPPING", () => V.value, A),
3258
+ ...Ht("BILLING", () => U.value, k),
3259
+ ...Ht("SHIPPING", () => j.value, k),
3215
3260
  email: { required: Jt, email: mo },
3216
3261
  country: { required: Jt },
3217
3262
  companyLegalName: {
3218
3263
  required: go(() => o.value.type === "ORGANIZATION")
3219
3264
  },
3220
- companyRegistrationNumber: lt(
3221
- A,
3265
+ companyRegistrationNumber: rt(
3266
+ k,
3222
3267
  "companyRegistrationNumber"
3223
3268
  ),
3224
- firstName: lt(A, "firstName"),
3225
- lastName: lt(A, "lastName"),
3269
+ firstName: rt(k, "firstName"),
3270
+ lastName: rt(k, "lastName"),
3226
3271
  companyVatNumber: ao(o.value) ? { taxId: ro } : {},
3227
- ...to(A)
3228
- }, j = nt(h);
3229
- return j ? Object.fromEntries(
3230
- Object.entries(d).map(([k, p]) => [
3231
- k,
3232
- ia(k) && la(j, k) !== "EDITABLE" ? {} : p
3272
+ ...to(k)
3273
+ }, z = st(v);
3274
+ return z ? Object.fromEntries(
3275
+ Object.entries(d).map(([P, h]) => [
3276
+ P,
3277
+ ia(P) && la(z, P) !== "EDITABLE" ? {} : h
3233
3278
  ])
3234
3279
  ) : d;
3235
3280
  }),
3236
3281
  o
3237
- ), H = Cn(), te = async () => {
3282
+ ), F = Cn(), X = async () => {
3238
3283
  try {
3239
- const { country: d } = await H.getGeoLocation();
3284
+ const { country: d } = await F.getGeoLocation();
3240
3285
  if (typeof d != "string" || !io(d))
3241
3286
  return;
3242
3287
  o.value.country || (o.value.country = d), C.value && !o.value.shippingCountry && (o.value.shippingCountry = d);
3243
3288
  } catch {
3244
3289
  }
3245
- }, ee = [
3290
+ }, Z = [
3246
3291
  "type",
3247
3292
  "companyVatNumber",
3248
3293
  "seatsValues",
3249
3294
  "unitsValues",
3250
3295
  "enabledPricingIds"
3251
- ], oe = (d) => ee.includes(d) || (C.value ? Kt("SHIPPING", o.value.shippingCountry) : Kt("BILLING", o.value.country)).includes(d), Z = () => JSON.parse(JSON.stringify(o.value));
3252
- let c = Z();
3253
- const $ = (d) => Object.keys(uo({ from: c, to: d })).filter(ia).some(oe);
3296
+ ], Q = (d) => Z.includes(d) || (C.value ? Kt("SHIPPING", o.value.shippingCountry) : Kt("BILLING", o.value.country)).includes(d), H = () => JSON.parse(JSON.stringify(o.value));
3297
+ let i = H();
3298
+ const T = (d) => Object.keys(uo({ from: i, to: d })).filter(ia).some(Q);
3254
3299
  Pe(
3255
3300
  () => [
3256
3301
  C.value,
@@ -3261,41 +3306,41 @@ function hs({
3261
3306
  o.value.shippingCity,
3262
3307
  o.value.shippingState,
3263
3308
  o.value.shippingCountry,
3264
- V.value
3309
+ j.value
3265
3310
  ],
3266
3311
  () => {
3267
3312
  !C.value || !o.value.billingAddressSameAsShipping || Object.assign(
3268
3313
  o.value,
3269
- oo(o.value, V.value)
3314
+ oo(o.value, j.value)
3270
3315
  );
3271
3316
  },
3272
3317
  { immediate: !0 }
3273
3318
  );
3274
- const R = Q(!1), D = (d) => {
3275
- const j = $(d);
3276
- c = d, R.value = !1, j && r(d);
3319
+ const R = ae(!1), B = (d) => {
3320
+ const z = T(d);
3321
+ i = d, R.value = !1, z && u(d);
3277
3322
  };
3278
3323
  Pe(
3279
- Z,
3324
+ H,
3280
3325
  (d) => {
3281
- R.value = $(d);
3326
+ R.value = T(d);
3282
3327
  },
3283
3328
  { flush: "sync" }
3284
3329
  );
3285
- const z = () => {
3286
- R.value && D(Z());
3330
+ const q = () => {
3331
+ R.value && B(H());
3287
3332
  };
3288
- return L && Fa() && na(() => {
3289
- t != null && t.country || te();
3290
- }), Ho(Z, D, { debounce: 200 }), {
3333
+ return I && Fa() && na(() => {
3334
+ t != null && t.country || X();
3335
+ }), Ho(H, B, { debounce: 200 }), {
3291
3336
  form: o,
3292
- validation: q,
3293
- getIsFieldRequired: A,
3294
- shippingAddressFormat: V,
3295
- updateInitialState: b,
3296
- initialState: T,
3337
+ validation: M,
3338
+ getIsFieldRequired: k,
3339
+ shippingAddressFormat: j,
3340
+ updateInitialState: y,
3341
+ initialState: L,
3297
3342
  isPreviewStale: R,
3298
- flushPreviewChange: z
3343
+ flushPreviewChange: q
3299
3344
  };
3300
3345
  }
3301
3346
  function ia(t) {
@@ -3305,6 +3350,6 @@ export {
3305
3350
  Wo as _,
3306
3351
  vs as a,
3307
3352
  Ci as b,
3308
- hs as u,
3353
+ fs as u,
3309
3354
  gs as w
3310
3355
  };