@solvimon/solvimon-web 0.1.0-alpha.16 → 0.1.0-alpha.17

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 (151) hide show
  1. package/README.md +5 -5
  2. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BYBAO4Au.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BrPsTuoW.mjs} +2 -2
  3. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BI3Lg7nO.js → BillingInformation.vue_vue_type_script_setup_true_lang-BuQ8bzar.js} +1 -1
  4. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C_uHr21N.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-1Op9GjGZ.js} +1 -1
  5. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CTnn1gkW.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CuWrBcoK.mjs} +3 -3
  6. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C66beqgf.js +1 -0
  7. package/dist/{useWalletBalanceItems-COQDLfoZ.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D2BhuXsh.mjs} +24 -56
  8. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BbuEBiY3.js +1 -0
  9. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3cqlbGY.mjs +147 -0
  10. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DU6X3zxr.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-dwIv_xxf.js} +1 -1
  11. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-ryvFEQMV.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-wxP5IaGt.mjs} +1 -1
  12. package/dist/{InvoiceHeader.vue_vue_type_script_setup_true_lang-DdpPrYxi.js → InvoiceHeader.vue_vue_type_script_setup_true_lang-05NKI2A0.js} +1 -1
  13. package/dist/{InvoiceHeader.vue_vue_type_script_setup_true_lang-bAiAbtMi.mjs → InvoiceHeader.vue_vue_type_script_setup_true_lang-17v07F58.mjs} +1 -1
  14. package/dist/{PaymentHistoryBlock-BKMttUyk.mjs → PaymentHistoryBlock-BitwS9Re.mjs} +1 -1
  15. package/dist/{PaymentHistoryBlock-BGbTy4Se.js → PaymentHistoryBlock-ZtmPXXwI.js} +1 -1
  16. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-tM7f_fQS.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3ZUDUdw.mjs} +1 -1
  17. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CixdxEGm.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CMGK71zZ.js} +1 -1
  18. package/dist/{PaymentIntegrationForm-CypW6fZY.mjs → PaymentIntegrationForm-BK2aLPCo.mjs} +1 -1
  19. package/dist/{PaymentIntegrationForm-D4QupHWl.js → PaymentIntegrationForm-BZTzCUiu.js} +1 -1
  20. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CrGSfZZs.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B_yDNGK8.mjs} +5 -5
  21. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-GN3WAr10.js +1 -0
  22. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-B8eNptZp.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-CIQ0vsko.mjs} +25 -14
  23. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-zRr8iihy.js +1 -0
  24. package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-BQIN3zuf.mjs +156 -0
  25. package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DyL2-vV0.js +1 -0
  26. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BUTqn4Ey.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DVeB_mqK.mjs} +5 -5
  27. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-Be_fF-R_.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-OvGGejpX.js} +1 -1
  28. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BxqIfmkK.js +1 -0
  29. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cqk-vonA.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-D1TcP9PR.mjs} +115 -68
  30. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BKz2QQn9.js +1 -0
  31. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BMXr26gF.mjs +37 -0
  32. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DB1p61kZ.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BDqX6OaE.mjs} +22 -119
  33. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CyAFjCh7.js +1 -0
  34. package/dist/component-CUJ_G2Nw.mjs +962 -0
  35. package/dist/component-CiKxWtdx.js +1 -0
  36. package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
  37. package/dist/components/BillingInformation/BillingInformation.es.js +4 -4
  38. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
  39. package/dist/components/BillingInformationForm/BillingInformationForm.es.js +3 -3
  40. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
  41. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +4 -4
  42. package/dist/components/Invoice/Invoice.cjs.js +1 -1
  43. package/dist/components/Invoice/Invoice.es.js +7 -7
  44. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
  45. package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -3
  46. package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +1 -1
  47. package/dist/components/InvoiceHeader/InvoiceHeader.es.js +4 -4
  48. package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
  49. package/dist/components/InvoicesList/InvoicesList.es.js +3 -3
  50. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
  51. package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -3
  52. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
  53. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +6 -6
  54. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
  55. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +7 -58
  56. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
  57. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +5 -5
  58. package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
  59. package/dist/components/WalletBalances/WalletBalances.es.js +8 -6
  60. package/dist/core/action-request.types.d.ts +3 -3
  61. package/dist/core/index.cjs.js +1 -1
  62. package/dist/core/index.es.js +1 -1
  63. package/dist/core/types.d.ts +4 -2
  64. package/dist/{customer-_W8gIX5m.js → customer-AfRcAZ5P.js} +1 -1
  65. package/dist/{customer-Bv_fqXzO.mjs → customer-DAgdegIW.mjs} +1 -1
  66. package/dist/{en-US-DAgOSlgv.mjs → en-US-DSzSbgL5.mjs} +68 -36
  67. package/dist/en-US-QzQnGXP1.js +1 -0
  68. package/dist/index.cjs.js +1 -1
  69. package/dist/index.d.ts +2 -1
  70. package/dist/index.es.js +7 -4
  71. package/dist/invoices-BHgajZHq.js +1 -0
  72. package/dist/{invoices-BGb0AwVF.mjs → invoices-BXDgW8ch.mjs} +32 -16
  73. package/dist/nl-NL-C4rr-1tr.js +1 -0
  74. package/dist/{nl-NL-DCsmrA8A.mjs → nl-NL-Li7RW89R.mjs} +72 -40
  75. package/dist/{paymentMethods-DIbB759g.js → paymentMethods-BMcc-eTl.js} +1 -1
  76. package/dist/{paymentMethods-DvqlWe96.mjs → paymentMethods-xzFD2L30.mjs} +2 -2
  77. package/dist/{payments-DMDDI3MK.js → payments-DMvmB5vg.js} +1 -1
  78. package/dist/{payments-CpzTVrQM.mjs → payments-DV6csRej.mjs} +1 -1
  79. package/dist/pricing-B1uImUm4.mjs +19 -0
  80. package/dist/pricing-BEjY_5wb.js +1 -0
  81. package/dist/pricingPlanSchedule-B9HFiXy-.js +1 -0
  82. package/dist/pricingPlanSchedule-C_cqUyTk.mjs +144 -0
  83. package/dist/registry-CeMxLjwU.js +1 -0
  84. package/dist/{registry-B-If1W_u.mjs → registry-CyENvS6l.mjs} +7 -4
  85. package/dist/screens/Checkout/Checkout.cjs.js +1 -1
  86. package/dist/screens/Checkout/Checkout.es.js +414 -675
  87. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
  88. package/dist/screens/CustomerOverview/CustomerOverview.es.js +65 -19
  89. package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -1
  90. package/dist/screens/PayInvoice/PayInvoice.es.js +10 -9
  91. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +1 -1
  92. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.es.js +8 -8
  93. package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +3 -0
  94. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs.js +1 -0
  95. package/dist/screens/SubscriptionDetails/SubscriptionDetails.es.js +542 -0
  96. package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +3 -0
  97. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs.js +1 -0
  98. package/dist/screens/SubscriptionManagement/SubscriptionManagement.es.js +725 -0
  99. package/dist/solvimon-web.css +1 -1
  100. package/dist/subscription-B4dBAY9C.mjs +89 -0
  101. package/dist/subscription-b0OPx8Du.js +1 -0
  102. package/dist/{subscriptions-BPYyv09M.mjs → subscriptions-CrNDM9qa.mjs} +6 -2
  103. package/dist/{subscriptions-CC61I6Nj.js → subscriptions-DC-mxa17.js} +1 -1
  104. package/dist/{url-1Lbg5Yni.mjs → url-BjZ1Pg0l.mjs} +1 -1
  105. package/dist/url-D8GJi5rF.js +1 -0
  106. package/dist/{useActionDispatchProvider-BHTknMoH.js → useActionDispatchProvider-bqR_FeM4.js} +1 -1
  107. package/dist/{useActionDispatchProvider-Dz8-e4gZ.mjs → useActionDispatchProvider-zB_GKeUR.mjs} +1 -1
  108. package/dist/{useCustomer-VVJi8z2w.mjs → useCustomer-VfeQ6rG2.mjs} +2 -2
  109. package/dist/{useCustomer-Z24KchWC.js → useCustomer-bO4D6e4Z.js} +1 -1
  110. package/dist/{useIncrementalLoading-CuSndpP2.js → useIncrementalLoading-BgWuwoMo.js} +1 -1
  111. package/dist/{useIncrementalLoading-DmOT2MXH.mjs → useIncrementalLoading-C59FXHzp.mjs} +1 -1
  112. package/dist/{useInvoiceData-Bl87gzIS.js → useInvoiceData-CxxkBTGY.js} +1 -1
  113. package/dist/{useInvoiceData-Di5pLPM0.mjs → useInvoiceData-Dhg-hx8C.mjs} +2 -2
  114. package/dist/useInvoicesList-BXZ9uV9i.js +1 -0
  115. package/dist/{useInvoicesList-z19cteaD.mjs → useInvoicesList-DBz7T7sM.mjs} +4 -4
  116. package/dist/{useLoadInitialData-CkpryfjF.mjs → useLoadInitialData-BhpIg7OF.mjs} +1 -1
  117. package/dist/{useLoadInitialData-CTqfiMTN.js → useLoadInitialData-BqiAFNFi.js} +1 -1
  118. package/dist/{usePaymentMethodOptions-BsCZnCQW.js → usePaymentMethodOptions-DszFvgKX.js} +1 -1
  119. package/dist/{usePaymentMethodOptions-BoGHJjng.mjs → usePaymentMethodOptions-PcMjtMSF.mjs} +2 -2
  120. package/dist/{usePaymentMethods-ocHmNoP7.mjs → usePaymentMethods-B5AbGWsn.mjs} +2 -2
  121. package/dist/{usePaymentMethods-AC-4rrR9.js → usePaymentMethods-Bb1Xbads.js} +1 -1
  122. package/dist/{usePayments-D85eB5l4.mjs → usePayments-DgoZoBZh.mjs} +3 -3
  123. package/dist/{usePayments-CgXZeWrU.js → usePayments-is5c66Z6.js} +1 -1
  124. package/dist/{usePortal-DVD7PcWI.js → usePortal-C4qWsJeq.js} +1 -1
  125. package/dist/{usePortal-B1O1zgdV.mjs → usePortal-DWLtNqBB.mjs} +1 -1
  126. package/dist/{useService-DF57xuDd.mjs → useService-BZqFkz7p.mjs} +1 -1
  127. package/dist/{useService-CHrkefKd.js → useService-DKm3QtT4.js} +1 -1
  128. package/dist/useSubscription-CEZJw6wZ.mjs +23 -0
  129. package/dist/useSubscription-DuUNc1_l.js +1 -0
  130. package/dist/useTopUpModal-DNyWrHDv.mjs +1012 -0
  131. package/dist/useTopUpModal-DeF-cfCK.js +1 -0
  132. package/dist/{vendor-ui-B8IlviSs.mjs → vendor-ui-BoGKOJ36.mjs} +8642 -7077
  133. package/dist/vendor-ui-BuRqLx74.js +1 -0
  134. package/package.json +14 -7
  135. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BBEM-YPz.js +0 -1
  136. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-eWmC5GOT.js +0 -1
  137. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVoS3ZXS.js +0 -1
  138. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-56vu59V4.js +0 -1
  139. package/dist/component-Bg2JVC_O.mjs +0 -933
  140. package/dist/component-Bs8oszfD.js +0 -1
  141. package/dist/en-US-C0gIE4Q1.js +0 -1
  142. package/dist/invoices-D-OKipCg.js +0 -1
  143. package/dist/nl-NL-Br7muSHK.js +0 -1
  144. package/dist/registry-uG2isab0.js +0 -1
  145. package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +0 -3
  146. package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +0 -1
  147. package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +0 -1102
  148. package/dist/url-B6-3PkW2.js +0 -1
  149. package/dist/useInvoicesList-CFk-_oVK.js +0 -1
  150. package/dist/useWalletBalanceItems-BL-R5foK.js +0 -1
  151. package/dist/vendor-ui-C3Tq-qY_.js +0 -1
@@ -1,120 +1,73 @@
1
- import { ref, computed, onMounted, watch, defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, useModel, createElementBlock, withModifiers, Fragment, createCommentVNode, createSlots, normalizeClass, mergeModels, renderList, renderSlot, toRef, nextTick, withDirectives, withKeys, vShow, defineAsyncComponent } from "vue";
2
- import { X as taxId, n as isEqual, Y as convertDateRangeToTimePeriod, M as useValidation, N as objectDiff, Z as isEmpty, u as useIntl, $ as _sfc_main$o, e as _sfc_main$p, a0 as isEUCountry, a1 as isValidCountryCode, a2 as getCountryNameByCode, _ as _sfc_main$q, R as _sfc_main$r, S as _sfc_main$s, c as _sfc_main$t, a3 as _sfc_main$u, U as _sfc_main$v, a4 as _sfc_main$w, a5 as _sfc_main$x, a6 as _sfc_main$y, a7 as TooltipContent, a8 as _sfc_main$z, a9 as formatBillingPeriod, B as formatAmount, aa as _sfc_main$B, ab as useTimePeriod, k as _sfc_main$C, ac as _sfc_main$E, ad as _sfc_main$F, F as _sfc_main$G, H as _sfc_main$I, ae as _sfc_main$J, A as _sfc_main$K, af as usePricingItem, ag as _sfc_main$L, ah as _sfc_main$M, ai as uniqueId, E as _sfc_main$N } from "../../vendor-ui-B8IlviSs.mjs";
3
- import { a as useLogger, _ as _sfc_main$Q, d as defineCustomElement, g as getComponentName } from "../../component-Bg2JVC_O.mjs";
4
- import { c as createSubscriptionsService } from "../../subscriptions-BPYyv09M.mjs";
1
+ import { ref, computed, onMounted, watch, defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, useModel, createElementBlock, withModifiers, Fragment, createCommentVNode, createSlots, normalizeClass, mergeModels, renderSlot, renderList, toRef, nextTick, mergeProps, withDirectives, withKeys, vShow, defineAsyncComponent } from "vue";
2
+ import { a9 as taxId, r as isEqual, aa as convertDateRangeToTimePeriod, R as useValidation, S as objectDiff, u as useIntl, ab as _sfc_main$m, e as _sfc_main$n, ac as isEUCountry, ad as isValidCountryCode, ae as getCountryNameByCode, _ as _sfc_main$o, W as _sfc_main$p, X as _sfc_main$q, c as _sfc_main$r, a2 as _sfc_main$s, Y as _sfc_main$t, af as _sfc_main$u, ag as _sfc_main$v, ah as _sfc_main$w, ai as TooltipContent, aj as _sfc_main$x, $ as formatBillingPeriod, E as formatAmount, ak as useTimePeriod, l as _sfc_main$z, H as _sfc_main$B, al as _sfc_main$C, a4 as _sfc_main$D, K as _sfc_main$F, am as _sfc_main$G, q as _sfc_main$H, G as usePricingItem, an as uniqueId, t as _sfc_main$K } from "../../vendor-ui-BoGKOJ36.mjs";
3
+ import { a as useLogger, _ as _sfc_main$N, d as defineCustomElement, g as getComponentName } from "../../component-CUJ_G2Nw.mjs";
4
+ import { c as createSubscriptionsService } from "../../subscriptions-CrNDM9qa.mjs";
5
5
  import { A as ApiStatus } from "../../ApiStatus-CyNDp_op.mjs";
6
- import { c as createInvoicesService } from "../../invoices-BGb0AwVF.mjs";
7
- import { a as requiredIf, r as required, e as email } from "../../index-CzL1ZcGi.mjs";
6
+ import { c as createInvoicesService } from "../../invoices-BXDgW8ch.mjs";
7
+ import { g as getFirstPricingPlanScheduleOfType, b as getScheduleCustomizations, e as getPricingItemConfigMetaById } from "../../pricingPlanSchedule-C_cqUyTk.mjs";
8
+ import { r as required, e as email, a as requiredIf } from "../../index-CzL1ZcGi.mjs";
8
9
  import { u as useWatchDebounced } from "../../useWatchDebounced-Zmxd6InB.mjs";
9
- import { c as createPaymentMethodsService } from "../../paymentMethods-DvqlWe96.mjs";
10
- import { u as useService } from "../../useService-DF57xuDd.mjs";
11
- import { g as getQueryParam, P as PAYMENT_ACCEPTOR_ID_QUERY_STRING, _ as _sfc_main$A, e as getAdyenExpressCheckoutConfiguration, d as transformObjectToAdyenObject, c as createReturnUrl, s as safeUrlRedirect } from "../../url-1Lbg5Yni.mjs";
12
- import { u as usePortal } from "../../usePortal-B1O1zgdV.mjs";
13
- import { c as createCustomerService } from "../../customer-Bv_fqXzO.mjs";
14
- import { _ as _sfc_main$D, a as _sfc_main$O, b as _sfc_main$P } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cqk-vonA.mjs";
10
+ import { c as createPaymentMethodsService } from "../../paymentMethods-xzFD2L30.mjs";
11
+ import { u as useService } from "../../useService-BZqFkz7p.mjs";
12
+ import { c as getPricingGroupsFromExtendedPricingPlanSubscription, a as getSubscriptionName, d as getFallbackTrialAndSubscriptionStartAndEndDates } from "../../subscription-B4dBAY9C.mjs";
13
+ import { a as getAllPricingsFromScheduleInfos, g as getNameFromPricing } from "../../pricing-B1uImUm4.mjs";
14
+ import { g as getQueryParam, P as PAYMENT_ACCEPTOR_ID_QUERY_STRING, _ as _sfc_main$y, e as getAdyenExpressCheckoutConfiguration, d as transformObjectToAdyenObject, c as createReturnUrl, s as safeUrlRedirect } from "../../url-BjZ1Pg0l.mjs";
15
+ import { u as usePortal } from "../../usePortal-DWLtNqBB.mjs";
16
+ import { c as createCustomerService } from "../../customer-DAgdegIW.mjs";
17
+ import { _ as _sfc_main$A, a as _sfc_main$M } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3cqlbGY.mjs";
15
18
  import { u as useViewport } from "../../useViewport-Bu0cyeSi.mjs";
16
- import { _ as _sfc_main$H } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
17
- import { c as createPaymentsService } from "../../payments-CpzTVrQM.mjs";
19
+ import { _ as _sfc_main$E } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
20
+ import { c as createPaymentsService } from "../../payments-DV6csRej.mjs";
21
+ import { b as _sfc_main$I, _ as _sfc_main$J, a as _sfc_main$L } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-D1TcP9PR.mjs";
18
22
  import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
19
- function getFirstPricingPlanScheduleOfType({
20
- pricingPlanScheduleInfos,
21
- type
22
- }) {
23
- return pricingPlanScheduleInfos.find(
24
- (scheduleInfo) => scheduleInfo.pricing_plan_schedule.type === type
25
- );
26
- }
27
- function getPricingItemConfigMetaById({
28
- pricingPlanScheduleInfo
29
- }) {
30
- const metaById = /* @__PURE__ */ new Map();
31
- const categories = pricingPlanScheduleInfo.pricing_plan_version.pricing_categories ?? [];
32
- categories.forEach((category) => {
33
- var _a;
34
- (_a = category.pricings) == null ? void 0 : _a.forEach((pricing) => {
35
- var _a2;
36
- (_a2 = pricing.items) == null ? void 0 : _a2.forEach((item) => {
37
- var _a3, _b, _c;
38
- (_a3 = item.billing_period_configs) == null ? void 0 : _a3.forEach((billingConfig) => {
39
- var _a4;
40
- (_a4 = billingConfig.configs) == null ? void 0 : _a4.forEach((config) => {
41
- var _a5, _b2, _c2, _d;
42
- if (config.id) {
43
- const currency = (_d = (_c2 = (_b2 = (_a5 = config.details) == null ? void 0 : _a5.bands) == null ? void 0 : _b2.find((band) => {
44
- var _a6;
45
- return (_a6 = band.amount) == null ? void 0 : _a6.currency;
46
- })) == null ? void 0 : _c2.amount) == null ? void 0 : _d.currency;
47
- metaById.set(config.id, {
48
- ...currency && { currency },
49
- billingPeriod: billingConfig.billing_period
50
- });
51
- }
52
- });
53
- });
54
- (_b = item.configs) == null ? void 0 : _b.forEach((config) => {
55
- var _a4, _b2, _c2, _d;
56
- if (config.id) {
57
- const currency = (_d = (_c2 = (_b2 = (_a4 = config.details) == null ? void 0 : _a4.bands) == null ? void 0 : _b2.find((band) => {
58
- var _a5;
59
- return (_a5 = band.amount) == null ? void 0 : _a5.currency;
60
- })) == null ? void 0 : _c2.amount) == null ? void 0 : _d.currency;
61
- metaById.set(config.id, {
62
- ...currency && { currency }
63
- });
64
- }
65
- });
66
- (_c = item.pricing_currency_configs) == null ? void 0 : _c.forEach((currencyConfig) => {
67
- var _a4, _b2;
68
- const currency = currencyConfig.currency;
69
- (_a4 = currencyConfig.billing_period_configs) == null ? void 0 : _a4.forEach((billingConfig) => {
70
- var _a5;
71
- (_a5 = billingConfig.configs) == null ? void 0 : _a5.forEach((config) => {
72
- if (config.id) {
73
- metaById.set(config.id, {
74
- currency,
75
- billingPeriod: billingConfig.billing_period
76
- });
77
- }
78
- });
79
- });
80
- (_b2 = currencyConfig.configs) == null ? void 0 : _b2.forEach((config) => {
81
- if (config.id) {
82
- metaById.set(config.id, { currency });
83
- }
84
- });
85
- });
86
- });
87
- });
88
- });
89
- return metaById;
90
- }
91
- function getScheduleCustomizations({
92
- enabledPricings,
93
- seatsValues,
94
- pricingPlanScheduleInfos,
95
- pricingCurrency,
96
- billingPeriod
97
- }) {
98
- const subscriptionSchedule = getFirstPricingPlanScheduleOfType({
99
- pricingPlanScheduleInfos,
100
- type: "DEFAULT"
101
- });
102
- if (!subscriptionSchedule || !enabledPricings && !seatsValues) {
103
- return void 0;
23
+ const EMPTY_LEGAL_ENTITY_NAME = "preview";
24
+ const EMPTY_COUNTRY = "NL";
25
+ const getCustomerAddress = (customer) => {
26
+ var _a, _b;
27
+ if ("organization" in customer) {
28
+ return (_a = customer.organization) == null ? void 0 : _a.registered_address;
104
29
  }
105
- return [
106
- {
107
- pricing_plan_schedule_id: subscriptionSchedule.id,
108
- enabled_pricings: enabledPricings,
109
- seats_values: seatsValues == null ? void 0 : seatsValues.map(({ pricing_item_config_id, number }) => ({
110
- pricing_item_config_id,
111
- number
112
- })),
113
- ...pricingCurrency && { pricing_currency: pricingCurrency },
114
- ...billingPeriod && { billing_period: billingPeriod }
30
+ if ("individual" in customer) {
31
+ return (_b = customer.individual) == null ? void 0 : _b.residential_address;
32
+ }
33
+ return void 0;
34
+ };
35
+ const buildAddress = (customer) => {
36
+ const address = getCustomerAddress(customer);
37
+ return {
38
+ ...(address == null ? void 0 : address.line1) && { line1: address.line1 },
39
+ ...(address == null ? void 0 : address.line2) && { line2: address.line2 },
40
+ ...(address == null ? void 0 : address.city) && { city: address.city },
41
+ ...(address == null ? void 0 : address.state) && { state: address.state },
42
+ country: (address == null ? void 0 : address.country) || EMPTY_COUNTRY,
43
+ ...(address == null ? void 0 : address.postal_code) && { postal_code: address.postal_code }
44
+ };
45
+ };
46
+ const buildCustomerPayload = (customer) => {
47
+ var _a, _b;
48
+ const address = buildAddress(customer);
49
+ const type = customer.type ?? "INDIVIDUAL";
50
+ if (type === "ORGANIZATION") {
51
+ const organization = "organization" in customer ? customer.organization : void 0;
52
+ const organizationTaxId = (_b = (_a = organization == null ? void 0 : organization.tax_ids) == null ? void 0 : _a[0]) == null ? void 0 : _b.id;
53
+ return {
54
+ type,
55
+ organization: {
56
+ legal_name: (organization == null ? void 0 : organization.legal_name) || EMPTY_LEGAL_ENTITY_NAME,
57
+ registered_address: address,
58
+ ...organizationTaxId && {
59
+ tax_id: taxId.$validator(organizationTaxId, {}, {}) ? organizationTaxId : void 0
60
+ }
61
+ }
62
+ };
63
+ }
64
+ return {
65
+ type,
66
+ individual: {
67
+ residential_address: address
115
68
  }
116
- ];
117
- }
69
+ };
70
+ };
118
71
  const COUNTRY_CURRENCY_MAP = {
119
72
  AD: "EUR",
120
73
  AE: "AED",
@@ -382,8 +335,6 @@ const getPricingCurrencyForCountry = ({
382
335
  }
383
336
  return (pricingCurrencySettings == null ? void 0 : pricingCurrencySettings.default_pricing_currency) ?? fallbackCurrency ?? countryCurrency;
384
337
  };
385
- const EMPTY_LEGAL_ENTITY_NAME = "preview";
386
- const EMPTY_COUNTRY = "NL";
387
338
  const useInvoicePreview = () => {
388
339
  const { getInvoicePreview } = createInvoicesService();
389
340
  const logger = useLogger();
@@ -398,19 +349,13 @@ const useInvoicePreview = () => {
398
349
  const loadInvoicePreview = async ({
399
350
  subscription,
400
351
  subscriptionStartAt,
401
- checkoutForm,
352
+ customer = {},
353
+ seatsValues,
402
354
  enabledPricingIds,
403
355
  promotionCode
404
356
  }) => {
405
- var _a, _b, _c, _d, _e;
406
- const address = {
407
- ...checkoutForm.addressLine1 && { line1: checkoutForm.addressLine1 },
408
- ...checkoutForm.addressLine2 && { line2: checkoutForm.addressLine2 },
409
- ...checkoutForm.city && { city: checkoutForm.city },
410
- ...checkoutForm.state && { state: checkoutForm.state },
411
- ...checkoutForm.country ? { country: checkoutForm.country || EMPTY_COUNTRY } : { country: EMPTY_COUNTRY },
412
- ...checkoutForm.postalCode && { postal_code: checkoutForm.postalCode }
413
- };
357
+ var _a, _b, _c, _d, _e, _f;
358
+ const customerPayload = buildCustomerPayload(customer);
414
359
  status.value = ApiStatus.Loading;
415
360
  const scheduleInfo = getFirstPricingPlanScheduleOfType({
416
361
  pricingPlanScheduleInfos: subscription.pricing_plan_schedule_infos,
@@ -422,11 +367,14 @@ const useInvoicePreview = () => {
422
367
  const hasMultipleBillingPeriods = billingPeriods.length > 1;
423
368
  const periodsForPreview = billingPeriods.length > 0 ? billingPeriods.map(({ period }) => period) : subscription.billing_period ? [subscription.billing_period] : [];
424
369
  const pricingCurrency = getPricingCurrencyForCountry({
425
- country: checkoutForm.country,
370
+ country: (_e = getCustomerAddress(customer)) == null ? void 0 : _e.country,
426
371
  pricingCurrencySettings,
427
372
  fallbackCurrency: subscription.billing_currency
428
373
  });
429
374
  if (!periodsForPreview.length) {
375
+ logger.warn("INVOICE_PREVIEW_SKIPPED", "No billing period to preview an invoice for", {
376
+ subscriptionId: subscription.id
377
+ });
430
378
  status.value = ApiStatus.Done;
431
379
  return;
432
380
  }
@@ -438,7 +386,7 @@ const useInvoicePreview = () => {
438
386
  enabledPricings: enabledPricingIds == null ? void 0 : enabledPricingIds.map((enabledPricingId) => ({
439
387
  pricing_id: enabledPricingId
440
388
  })),
441
- seatsValues: checkoutForm.seatsValues,
389
+ seatsValues,
442
390
  pricingPlanScheduleInfos: subscription.pricing_plan_schedule_infos,
443
391
  pricingCurrency: hasMultiplePricingCurrencies ? pricingCurrency : void 0,
444
392
  billingPeriod: hasMultipleBillingPeriods ? period : void 0
@@ -465,23 +413,7 @@ const useInvoicePreview = () => {
465
413
  pricingPlanSubscriptionId: subscription.id,
466
414
  startAt: subscriptionStartAt,
467
415
  customizations: scheduleCustomizations,
468
- customer: {
469
- type: checkoutForm.type || "INDIVIDUAL",
470
- ...checkoutForm.type === "INDIVIDUAL" && {
471
- individual: {
472
- residential_address: address
473
- }
474
- },
475
- ...checkoutForm.type === "ORGANIZATION" && {
476
- organization: {
477
- legal_name: checkoutForm.companyLegalName || EMPTY_LEGAL_ENTITY_NAME,
478
- registered_address: address,
479
- ...checkoutForm.companyVatNumber && {
480
- tax_id: taxId.$validator(checkoutForm.companyVatNumber, {}, {}) ? checkoutForm.companyVatNumber : void 0
481
- }
482
- }
483
- }
484
- }
416
+ customer: customerPayload
485
417
  };
486
418
  const cachedPayload = cachedPreviewPayloads.value[periodKey];
487
419
  if (cachedPayload && isEqual(payload, cachedPayload)) {
@@ -502,9 +434,9 @@ const useInvoicePreview = () => {
502
434
  const trialSchedule = subscription.pricing_plan_schedule_infos.find(
503
435
  ({ pricing_plan_schedule }) => pricing_plan_schedule.type === "TRIAL"
504
436
  );
505
- const invoiceScheduleId = (_e = subscription.pricing_plan_schedule_infos.find(
437
+ const invoiceScheduleId = (_f = subscription.pricing_plan_schedule_infos.find(
506
438
  ({ pricing_plan_schedule }) => pricing_plan_schedule.type === "DEFAULT"
507
- )) == null ? void 0 : _e.id;
439
+ )) == null ? void 0 : _f.id;
508
440
  results.forEach(({ periodKey, response }) => {
509
441
  var _a2;
510
442
  if (!response) return;
@@ -547,6 +479,7 @@ const useInvoicePreview = () => {
547
479
  };
548
480
  };
549
481
  const DEFAULT_REQUIRED_FIELDS = ["email", "country"];
482
+ const DEFAULT_TAX_IDENTIFIER_TYPE = "GENERIC_TAX_ID";
550
483
  const countrySpecificRequiredFieldsMap = {
551
484
  US: ["addressLine1", "postalCode"],
552
485
  CA: ["state"]
@@ -557,6 +490,34 @@ const getRequiredFieldsForCountry = (country) => {
557
490
  }
558
491
  return [...countrySpecificRequiredFieldsMap[country], ...DEFAULT_REQUIRED_FIELDS];
559
492
  };
493
+ const toCustomer = (state) => {
494
+ const address = {
495
+ ...state.addressLine1 && { line1: state.addressLine1 },
496
+ ...state.addressLine2 && { line2: state.addressLine2 },
497
+ ...state.city && { city: state.city },
498
+ ...state.state && { state: state.state },
499
+ ...state.postalCode && { postal_code: state.postalCode },
500
+ country: state.country ?? ""
501
+ };
502
+ if (state.type === "ORGANIZATION") {
503
+ return {
504
+ type: "ORGANIZATION",
505
+ organization: {
506
+ legal_name: state.companyLegalName ?? "",
507
+ registered_address: address,
508
+ ...state.companyVatNumber && {
509
+ tax_ids: [{ id: state.companyVatNumber, type: DEFAULT_TAX_IDENTIFIER_TYPE }]
510
+ }
511
+ }
512
+ };
513
+ }
514
+ return {
515
+ type: "INDIVIDUAL",
516
+ individual: {
517
+ residential_address: address
518
+ }
519
+ };
520
+ };
560
521
  function createGeoLocationService() {
561
522
  return {
562
523
  /**
@@ -697,85 +658,6 @@ const usePaymentMethodOptions = () => {
697
658
  isPending
698
659
  };
699
660
  };
700
- function findPricingsByIds(data, ids) {
701
- const results = [];
702
- function recurse(obj) {
703
- if (Array.isArray(obj)) {
704
- obj.forEach(recurse);
705
- } else if (obj && typeof obj === "object") {
706
- if (obj.object_type === "PRICING" && ids.includes(obj.id)) {
707
- results.push(obj);
708
- }
709
- Object.values(obj).forEach(recurse);
710
- }
711
- }
712
- recurse(data);
713
- return results;
714
- }
715
- function getPricingGroupsFromExtendedPricingPlanSubscription(subscription) {
716
- return subscription.pricing_plan_schedule_infos.flatMap(
717
- (info) => {
718
- var _a;
719
- return ((_a = info.pricing_plan_version.pricing_categories) == null ? void 0 : _a.flatMap(
720
- (category) => category.pricing_groups ?? []
721
- )) ?? [];
722
- }
723
- );
724
- }
725
- function getFallbackTrialAndSubscriptionStartAndEndDates(subscription) {
726
- var _a;
727
- const result = {
728
- trialStartDate: void 0,
729
- trialEndDate: void 0,
730
- subscriptionStartDate: void 0,
731
- subscriptionEndDate: void 0
732
- };
733
- if (!((_a = subscription == null ? void 0 : subscription.pricing_plan_schedule_infos) == null ? void 0 : _a.length)) {
734
- return result;
735
- }
736
- const now = /* @__PURE__ */ new Date();
737
- const trialSchedule = getFirstPricingPlanScheduleOfType({
738
- type: "TRIAL",
739
- pricingPlanScheduleInfos: subscription.pricing_plan_schedule_infos
740
- });
741
- if (trialSchedule == null ? void 0 : trialSchedule.start_at) {
742
- result.trialStartDate = now;
743
- if (trialSchedule.end_at) {
744
- const diff = new Date(trialSchedule.end_at).getTime() - new Date(trialSchedule.start_at).getTime();
745
- result.trialEndDate = new Date(now.getTime() + diff);
746
- }
747
- }
748
- const subscriptionSchedule = getFirstPricingPlanScheduleOfType({
749
- type: "DEFAULT",
750
- pricingPlanScheduleInfos: subscription.pricing_plan_schedule_infos
751
- });
752
- if (subscriptionSchedule == null ? void 0 : subscriptionSchedule.start_at) {
753
- if (result.trialEndDate) {
754
- result.subscriptionStartDate = result.trialEndDate;
755
- } else {
756
- result.subscriptionStartDate = now;
757
- }
758
- if (subscriptionSchedule.end_at) {
759
- const diff = new Date(subscriptionSchedule.end_at).getTime() - new Date(subscriptionSchedule.start_at).getTime();
760
- result.subscriptionEndDate = new Date(now.getTime() + diff);
761
- }
762
- }
763
- return result;
764
- }
765
- function getAllPricingsFromScheduleInfos(scheduleInfos) {
766
- return scheduleInfos.flatMap(
767
- (scheduleInfo) => {
768
- var _a;
769
- return ((_a = scheduleInfo.pricing_plan_version.pricing_categories) == null ? void 0 : _a.flatMap(
770
- (category) => category.pricings ?? []
771
- )) ?? [];
772
- }
773
- );
774
- }
775
- function getNameFromPricing(pricing) {
776
- var _a, _b;
777
- return !isEmpty(pricing.name) ? pricing.name : (_b = (_a = pricing.products) == null ? void 0 : _a[0]) == null ? void 0 : _b.name;
778
- }
779
661
  function withPreselectedEnabledPricings(subscription, enabledPricingIds = void 0) {
780
662
  const result = enabledPricingIds ?? [];
781
663
  const pricingGroups = getPricingGroupsFromExtendedPricingPlanSubscription(subscription);
@@ -801,7 +683,6 @@ function isSubscriptionWithAddonProducts(subscription) {
801
683
  const pricingGroups = getPricingGroupsFromExtendedPricingPlanSubscription(subscription);
802
684
  return pricings.some((pricing) => pricing.product_type === "ADDON") || pricingGroups.some((pricingGroup) => pricingGroup.object_type === "ADDON");
803
685
  }
804
- const DEFAULT_TAX_IDENTIFIER_TYPE = "GENERIC_TAX_ID";
805
686
  const REDIRECT_FORM_STATE_KEY = "solvimon_checkout_redirect_state";
806
687
  function useCheckoutView({
807
688
  initialCountry,
@@ -809,6 +690,7 @@ function useCheckoutView({
809
690
  subscriptionId,
810
691
  enabledPricingIds
811
692
  }) {
693
+ const logger = useLogger();
812
694
  const isPaid = ref(false);
813
695
  const subscription = ref();
814
696
  const { getSubscription } = createSubscriptionsService();
@@ -822,23 +704,23 @@ function useCheckoutView({
822
704
  isPending: isPaymentMethodsPending
823
705
  } = usePaymentMethodOptions();
824
706
  const loadInvoicePreview = () => {
825
- const payload = {
707
+ const formState = checkoutForm.form.value;
708
+ return invoicePreview.loadInvoicePreview({
826
709
  subscription: subscription.value,
827
- checkoutForm: checkoutForm.form.value,
828
- enabledPricingIds,
829
- promotionCode: checkoutForm.form.value.promotionCode
830
- };
831
- if (checkoutForm.form.value.enabledPricingIds) {
832
- payload.enabledPricingIds = checkoutForm.form.value.enabledPricingIds;
833
- }
834
- return invoicePreview.loadInvoicePreview(payload);
710
+ customer: toCustomer(formState),
711
+ seatsValues: formState.seatsValues,
712
+ enabledPricingIds: formState.enabledPricingIds ?? enabledPricingIds,
713
+ promotionCode: formState.promotionCode
714
+ });
835
715
  };
836
716
  const updateInvoicePreviewOnBillingInformationChange = async (formState) => {
837
717
  const promotionCode = formState.promotionCode ?? checkoutForm.form.value.promotionCode;
838
718
  const enabledPricingIds2 = formState.enabledPricingIds ?? checkoutForm.form.value.enabledPricingIds;
719
+ const mergedState = { ...checkoutForm.form.value, ...formState };
839
720
  await invoicePreview.loadInvoicePreview({
840
721
  subscription: subscription.value,
841
- checkoutForm: { ...checkoutForm.form.value, ...formState },
722
+ customer: toCustomer(mergedState),
723
+ seatsValues: mergedState.seatsValues,
842
724
  enabledPricingIds: enabledPricingIds2,
843
725
  promotionCode
844
726
  });
@@ -1031,7 +913,17 @@ function useCheckoutView({
1031
913
  if (savedFormState) {
1032
914
  checkoutForm.updateInitialState(savedFormState);
1033
915
  }
1034
- await loadSubscription();
916
+ try {
917
+ await loadSubscription();
918
+ } catch (error) {
919
+ logger.error(
920
+ "SUBSCRIPTION_LOAD_FAILED",
921
+ "Failed to load the subscription the checkout prices",
922
+ {},
923
+ error
924
+ );
925
+ throw error;
926
+ }
1035
927
  try {
1036
928
  await loadInvoicePreview();
1037
929
  } catch {
@@ -1149,8 +1041,25 @@ function usePromotionCode({
1149
1041
  function isFieldError(error) {
1150
1042
  return typeof error === "object" && error !== null && "field" in error;
1151
1043
  }
1152
- const _hoisted_1$k = { class: "flex items-center gap-2" };
1153
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
1044
+ function useAutoApplyPromotionCode({
1045
+ subscription,
1046
+ promotionCode,
1047
+ appliedPromotionCode,
1048
+ applyPromotionCode
1049
+ }) {
1050
+ watch(
1051
+ subscription,
1052
+ (loadedSubscription) => {
1053
+ if (loadedSubscription && promotionCode) {
1054
+ appliedPromotionCode.value = promotionCode;
1055
+ void applyPromotionCode(promotionCode);
1056
+ }
1057
+ },
1058
+ { once: true }
1059
+ );
1060
+ }
1061
+ const _hoisted_1$j = { class: "flex items-center gap-2" };
1062
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1154
1063
  __name: "TaxIDCheckNotice",
1155
1064
  props: {
1156
1065
  taxIdValidationResult: { type: Object }
@@ -1173,13 +1082,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1173
1082
  });
1174
1083
  });
1175
1084
  return (_ctx, _cache) => {
1176
- return openBlock(), createBlock(unref(_sfc_main$o), {
1085
+ return openBlock(), createBlock(unref(_sfc_main$m), {
1177
1086
  type: isTaxIdValid.value ? "success" : "danger",
1178
1087
  icon: false
1179
1088
  }, {
1180
1089
  default: withCtx(() => [
1181
- createElementVNode("div", _hoisted_1$k, [
1182
- createVNode(unref(_sfc_main$p), { variant: "body-xs" }, {
1090
+ createElementVNode("div", _hoisted_1$j, [
1091
+ createVNode(unref(_sfc_main$n), { variant: "body-xs" }, {
1183
1092
  default: withCtx(() => [
1184
1093
  createTextVNode(toDisplayString(taxIdValidationMessage.value), 1)
1185
1094
  ]),
@@ -1244,16 +1153,16 @@ function useTaxIDValidationCheck(form) {
1244
1153
  isSelectedCountryEU
1245
1154
  };
1246
1155
  }
1247
- const _hoisted_1$j = { class: "grid grid-cols-1 gap-1" };
1248
- const _hoisted_2$c = { class: "grid grid-cols-1 gap-2" };
1249
- const _hoisted_3$6 = { key: 0 };
1250
- const _hoisted_4$5 = { class: "mt-2 flex flex-col gap-3" };
1156
+ const _hoisted_1$i = { class: "grid grid-cols-1 gap-1" };
1157
+ const _hoisted_2$a = { class: "grid grid-cols-1 gap-2" };
1158
+ const _hoisted_3$7 = { key: 0 };
1159
+ const _hoisted_4$6 = { class: "mt-2 flex flex-col gap-3" };
1251
1160
  const _hoisted_5$4 = { class: "grid grid-cols-3 gap-2" };
1252
1161
  const _hoisted_6$2 = { class: "flex grow flex-col" };
1253
1162
  const _hoisted_7$1 = { key: 0 };
1254
1163
  const _hoisted_8$1 = { class: "mt-4 grid grid-cols-1 gap-3" };
1255
1164
  const FORM_ID = "checkout-form";
1256
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
1165
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1257
1166
  __name: "CheckoutForm",
1258
1167
  props: /* @__PURE__ */ mergeModels({
1259
1168
  validation: { type: null },
@@ -1306,8 +1215,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1306
1215
  id: FORM_ID,
1307
1216
  onSubmit: _cache[12] || (_cache[12] = withModifiers(($event) => _ctx.$emit("submit", model.value), ["prevent"]))
1308
1217
  }, [
1309
- createElementVNode("div", _hoisted_1$j, [
1310
- createVNode(unref(_sfc_main$q), {
1218
+ createElementVNode("div", _hoisted_1$i, [
1219
+ createVNode(unref(_sfc_main$o), {
1311
1220
  title: unref($t)({
1312
1221
  defaultMessage: "Customer information",
1313
1222
  id: "checkout.contact_information_block.title",
@@ -1315,9 +1224,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1315
1224
  })
1316
1225
  }, {
1317
1226
  default: withCtx(() => [
1318
- createElementVNode("div", _hoisted_2$c, [
1227
+ createElementVNode("div", _hoisted_2$a, [
1319
1228
  __props.readOnly ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1320
- createVNode(unref(_sfc_main$p), {
1229
+ createVNode(unref(_sfc_main$n), {
1321
1230
  variant: "body",
1322
1231
  tag: "span",
1323
1232
  weight: "semibold",
@@ -1328,7 +1237,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1328
1237
  ]),
1329
1238
  _: 1
1330
1239
  }),
1331
- createVNode(unref(_sfc_main$p), {
1240
+ createVNode(unref(_sfc_main$n), {
1332
1241
  variant: "body-sm",
1333
1242
  tag: "span",
1334
1243
  shade: "lighter",
@@ -1340,7 +1249,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1340
1249
  _: 1
1341
1250
  })
1342
1251
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1343
- createVNode(unref(_sfc_main$r), {
1252
+ createVNode(unref(_sfc_main$p), {
1344
1253
  modelValue: model.value.email,
1345
1254
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value.email = $event),
1346
1255
  required: "",
@@ -1359,7 +1268,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1359
1268
  }) + getOptionalSuffix("email"),
1360
1269
  error: __props.validation.value.email.$errors
1361
1270
  }, null, 8, ["modelValue", "disabled", "label", "placeholder", "error"]),
1362
- createVNode(unref(_sfc_main$s), {
1271
+ createVNode(unref(_sfc_main$q), {
1363
1272
  "single-model-value": country.value,
1364
1273
  "onUpdate:singleModelValue": _cache[3] || (_cache[3] = ($event) => country.value = $event),
1365
1274
  required: "",
@@ -1372,7 +1281,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1372
1281
  error: __props.validation.value.country.$errors
1373
1282
  }, {
1374
1283
  "label-suffix": withCtx(() => [
1375
- !showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$t), {
1284
+ !showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$r), {
1376
1285
  key: 0,
1377
1286
  size: "xs",
1378
1287
  variant: "ghost",
@@ -1389,7 +1298,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1389
1298
  ]),
1390
1299
  _: 1
1391
1300
  })) : createCommentVNode("", true),
1392
- showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$t), {
1301
+ showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$r), {
1393
1302
  key: 1,
1394
1303
  size: "sm",
1395
1304
  variant: "ghost",
@@ -1411,13 +1320,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1411
1320
  }, 8, ["single-model-value", "label", "error"])
1412
1321
  ], 64))
1413
1322
  ]),
1414
- createVNode(unref(_sfc_main$u), {
1323
+ createVNode(unref(_sfc_main$s), {
1415
1324
  "is-open": showBillingDetails.value || !!__props.isBillingInformationMandatory
1416
1325
  }, {
1417
1326
  default: withCtx(() => [
1418
- showBillingDetails.value || __props.isBillingInformationMandatory ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
1419
- createElementVNode("div", _hoisted_4$5, [
1420
- createVNode(unref(_sfc_main$r), {
1327
+ showBillingDetails.value || __props.isBillingInformationMandatory ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
1328
+ createElementVNode("div", _hoisted_4$6, [
1329
+ createVNode(unref(_sfc_main$p), {
1421
1330
  modelValue: model.value.addressLine1,
1422
1331
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => model.value.addressLine1 = $event),
1423
1332
  name: "address_line_1",
@@ -1434,7 +1343,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1434
1343
  required: "",
1435
1344
  error: __props.validation.value.addressLine1.$errors
1436
1345
  }, null, 8, ["modelValue", "label", "placeholder", "error"]),
1437
- createVNode(unref(_sfc_main$r), {
1346
+ createVNode(unref(_sfc_main$p), {
1438
1347
  modelValue: model.value.addressLine2,
1439
1348
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => model.value.addressLine2 = $event),
1440
1349
  name: "address_line_2",
@@ -1445,7 +1354,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1445
1354
  }) + getOptionalSuffix("addressLine2")
1446
1355
  }, null, 8, ["modelValue", "placeholder"]),
1447
1356
  createElementVNode("div", _hoisted_5$4, [
1448
- createVNode(unref(_sfc_main$r), {
1357
+ createVNode(unref(_sfc_main$p), {
1449
1358
  modelValue: model.value.postalCode,
1450
1359
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => model.value.postalCode = $event),
1451
1360
  name: "postal_code",
@@ -1456,7 +1365,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1456
1365
  }) + getOptionalSuffix("postalCode"),
1457
1366
  error: __props.validation.value.addressLine1.$errors
1458
1367
  }, null, 8, ["modelValue", "placeholder", "error"]),
1459
- createVNode(unref(_sfc_main$r), {
1368
+ createVNode(unref(_sfc_main$p), {
1460
1369
  modelValue: model.value.city,
1461
1370
  "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => model.value.city = $event),
1462
1371
  name: "city",
@@ -1466,7 +1375,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1466
1375
  description: "City of the customer address in the checkout form"
1467
1376
  }) + getOptionalSuffix("city")
1468
1377
  }, null, 8, ["modelValue", "placeholder"]),
1469
- createVNode(unref(_sfc_main$r), {
1378
+ createVNode(unref(_sfc_main$p), {
1470
1379
  modelValue: model.value.state,
1471
1380
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => model.value.state = $event),
1472
1381
  name: "state",
@@ -1486,9 +1395,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1486
1395
  ]),
1487
1396
  _: 1
1488
1397
  }, 8, ["title"]),
1489
- !__props.readOnly ? (openBlock(), createBlock(unref(_sfc_main$q), { key: 0 }, {
1398
+ !__props.readOnly ? (openBlock(), createBlock(unref(_sfc_main$o), { key: 0 }, {
1490
1399
  default: withCtx(() => [
1491
- createVNode(unref(_sfc_main$v), {
1400
+ createVNode(unref(_sfc_main$t), {
1492
1401
  modelValue: companyPurchaseModel.value,
1493
1402
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => companyPurchaseModel.value = $event),
1494
1403
  "no-spacing": "",
@@ -1497,7 +1406,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1497
1406
  }, {
1498
1407
  "inline-label": withCtx(() => [
1499
1408
  createElementVNode("div", _hoisted_6$2, [
1500
- createVNode(unref(_sfc_main$p), { tag: "span" }, {
1409
+ createVNode(unref(_sfc_main$n), { tag: "span" }, {
1501
1410
  default: withCtx(() => [
1502
1411
  createTextVNode(toDisplayString(unref($t)({
1503
1412
  defaultMessage: "Company purchase",
@@ -1507,7 +1416,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1507
1416
  ]),
1508
1417
  _: 1
1509
1418
  }),
1510
- createVNode(unref(_sfc_main$p), {
1419
+ createVNode(unref(_sfc_main$n), {
1511
1420
  tag: "span",
1512
1421
  variant: "body-xs",
1513
1422
  shade: "lighter"
@@ -1525,11 +1434,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1525
1434
  ]),
1526
1435
  _: 1
1527
1436
  }, 8, ["modelValue"]),
1528
- createVNode(unref(_sfc_main$u), { "is-open": isCompanyPurchase.value }, {
1437
+ createVNode(unref(_sfc_main$s), { "is-open": isCompanyPurchase.value }, {
1529
1438
  default: withCtx(() => [
1530
1439
  isCompanyPurchase.value ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
1531
1440
  createElementVNode("div", _hoisted_8$1, [
1532
- createVNode(unref(_sfc_main$r), {
1441
+ createVNode(unref(_sfc_main$p), {
1533
1442
  modelValue: model.value.companyLegalName,
1534
1443
  "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => model.value.companyLegalName = $event),
1535
1444
  required: "",
@@ -1545,7 +1454,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1545
1454
  description: "The legal name of the organization customer in the checkout form"
1546
1455
  })
1547
1456
  }, null, 8, ["modelValue", "label", "placeholder"]),
1548
- showVatIdInput.value ? (openBlock(), createBlock(unref(_sfc_main$r), {
1457
+ showVatIdInput.value ? (openBlock(), createBlock(unref(_sfc_main$p), {
1549
1458
  key: 0,
1550
1459
  modelValue: model.value.companyVatNumber,
1551
1460
  "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => model.value.companyVatNumber = $event),
@@ -1567,7 +1476,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1567
1476
  unref(isEUCountry)(model.value.country ?? "") ? {
1568
1477
  name: "suffix",
1569
1478
  fn: withCtx(() => [
1570
- createVNode(unref(_sfc_main$t), {
1479
+ createVNode(unref(_sfc_main$r), {
1571
1480
  type: "button",
1572
1481
  size: "sm",
1573
1482
  color: "green",
@@ -1591,7 +1500,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1591
1500
  key: 1,
1592
1501
  class: normalizeClass({ "opacity-75": unref(isTaxIDCheckPending) })
1593
1502
  }, [
1594
- createVNode(_sfc_main$n, { "tax-id-validation-result": unref(taxIdValidationData) }, null, 8, ["tax-id-validation-result"])
1503
+ createVNode(_sfc_main$l, { "tax-id-validation-result": unref(taxIdValidationData) }, null, 8, ["tax-id-validation-result"])
1595
1504
  ], 2)) : createCommentVNode("", true)
1596
1505
  ])
1597
1506
  ])) : createCommentVNode("", true)
@@ -1606,13 +1515,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1606
1515
  };
1607
1516
  }
1608
1517
  });
1609
- const _hoisted_1$i = {
1518
+ const _hoisted_1$h = {
1610
1519
  key: 0,
1611
1520
  class: "flex items-center"
1612
1521
  };
1613
- const _hoisted_2$b = ["innerHTML"];
1614
- const _hoisted_3$5 = ["innerHTML"];
1615
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
1522
+ const _hoisted_2$9 = ["innerHTML"];
1523
+ const _hoisted_3$6 = ["innerHTML"];
1524
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1616
1525
  __name: "CheckoutTitle",
1617
1526
  props: {
1618
1527
  trialPeriod: { type: Object },
@@ -1628,7 +1537,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1628
1537
  return (_ctx, _cache) => {
1629
1538
  return openBlock(), createElementBlock("div", null, [
1630
1539
  createElementVNode("div", null, [
1631
- createVNode(unref(_sfc_main$p), {
1540
+ createVNode(unref(_sfc_main$n), {
1632
1541
  variant: "heading-1",
1633
1542
  class: "inline-block"
1634
1543
  }, {
@@ -1638,7 +1547,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1638
1547
  id: "checkout.page_title",
1639
1548
  description: "The title of the checkout page"
1640
1549
  })) + toDisplayString(" "), 1),
1641
- __props.trialPeriod ? (openBlock(), createBlock(unref(_sfc_main$w), {
1550
+ __props.trialPeriod ? (openBlock(), createBlock(unref(_sfc_main$u), {
1642
1551
  key: 0,
1643
1552
  "trial-period": __props.trialPeriod,
1644
1553
  size: "lg",
@@ -1648,18 +1557,18 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1648
1557
  _: 1
1649
1558
  })
1650
1559
  ]),
1651
- createVNode(unref(_sfc_main$p), {
1560
+ createVNode(unref(_sfc_main$n), {
1652
1561
  variant: "body-sm",
1653
1562
  shade: "lighter",
1654
1563
  "no-spacing": ""
1655
1564
  }, {
1656
1565
  default: withCtx(() => [
1657
- !__props.countryCode ? (openBlock(), createElementBlock("span", _hoisted_1$i, [
1658
- createVNode(unref(_sfc_main$x), { "is-dark-mode": "" }, {
1566
+ !__props.countryCode ? (openBlock(), createElementBlock("span", _hoisted_1$h, [
1567
+ createVNode(unref(_sfc_main$v), { "is-dark-mode": "" }, {
1659
1568
  tooltip: withCtx(() => [
1660
1569
  createVNode(unref(TooltipContent), null, {
1661
1570
  default: withCtx(() => [
1662
- createVNode(unref(_sfc_main$z), null, {
1571
+ createVNode(unref(_sfc_main$x), null, {
1663
1572
  default: withCtx(() => [
1664
1573
  createTextVNode(toDisplayString(unref($t)({
1665
1574
  defaultMessage: "Will be determined by billing information",
@@ -1674,7 +1583,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1674
1583
  })
1675
1584
  ]),
1676
1585
  default: withCtx(() => [
1677
- createVNode(unref(_sfc_main$y), {
1586
+ createVNode(unref(_sfc_main$w), {
1678
1587
  "width-class": "w-10",
1679
1588
  "height-class": "h-4",
1680
1589
  shade: "darker",
@@ -1711,7 +1620,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1711
1620
  })
1712
1621
  }
1713
1622
  )
1714
- }, null, 8, _hoisted_2$b)
1623
+ }, null, 8, _hoisted_2$9)
1715
1624
  ])) : (openBlock(), createElementBlock("span", {
1716
1625
  key: 1,
1717
1626
  innerHTML: __props.trialStartDate ? unref($t)(
@@ -1747,7 +1656,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1747
1656
  strong: (text) => `<strong>${text}</strong>`
1748
1657
  }
1749
1658
  )
1750
- }, null, 8, _hoisted_3$5))
1659
+ }, null, 8, _hoisted_3$6))
1751
1660
  ]),
1752
1661
  _: 1
1753
1662
  })
@@ -1770,9 +1679,9 @@ const isInvoiceUsageBased = (invoice) => {
1770
1679
  )
1771
1680
  )) ?? false;
1772
1681
  };
1773
- const _hoisted_1$h = { class: "flex w-full min-h-96 justify-center items-center" };
1774
- const _hoisted_2$a = { class: "max-w-sm" };
1775
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
1682
+ const _hoisted_1$g = { class: "flex w-full min-h-96 justify-center items-center" };
1683
+ const _hoisted_2$8 = { class: "max-w-sm" };
1684
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1776
1685
  __name: "CheckoutNotAvailable",
1777
1686
  setup(__props) {
1778
1687
  const { $t } = useIntl();
@@ -1780,9 +1689,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1780
1689
  window.location.reload();
1781
1690
  };
1782
1691
  return (_ctx, _cache) => {
1783
- return openBlock(), createElementBlock("div", _hoisted_1$h, [
1784
- createElementVNode("div", _hoisted_2$a, [
1785
- createVNode(unref(_sfc_main$p), { variant: "heading-1" }, {
1692
+ return openBlock(), createElementBlock("div", _hoisted_1$g, [
1693
+ createElementVNode("div", _hoisted_2$8, [
1694
+ createVNode(unref(_sfc_main$n), { variant: "heading-1" }, {
1786
1695
  default: withCtx(() => [
1787
1696
  createTextVNode(toDisplayString(unref($t)({
1788
1697
  defaultMessage: "Checkout not available",
@@ -1792,7 +1701,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1792
1701
  ]),
1793
1702
  _: 1
1794
1703
  }),
1795
- createVNode(unref(_sfc_main$p), {
1704
+ createVNode(unref(_sfc_main$n), {
1796
1705
  variant: "body-sm",
1797
1706
  shade: "lighter"
1798
1707
  }, {
@@ -1824,13 +1733,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1824
1733
  };
1825
1734
  }
1826
1735
  });
1827
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
1736
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1828
1737
  __name: "SubscriptionPaymentCompletedCard",
1829
1738
  emits: ["continue-to-merchant"],
1830
1739
  setup(__props) {
1831
1740
  const { $t } = useIntl();
1832
1741
  return (_ctx, _cache) => {
1833
- return openBlock(), createBlock(_sfc_main$A, {
1742
+ return openBlock(), createBlock(_sfc_main$y, {
1834
1743
  status: "success",
1835
1744
  title: unref($t)({
1836
1745
  defaultMessage: "Payment successful",
@@ -1839,7 +1748,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1839
1748
  })
1840
1749
  }, {
1841
1750
  default: withCtx(() => [
1842
- createVNode(unref(_sfc_main$p), {
1751
+ createVNode(unref(_sfc_main$n), {
1843
1752
  variant: "body-xs",
1844
1753
  shade: "lighter",
1845
1754
  tag: "span"
@@ -1859,112 +1768,60 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1859
1768
  };
1860
1769
  }
1861
1770
  });
1862
- const _hoisted_1$g = { class: "flex flex-row gap-3 px-3 py-2" };
1863
- const _hoisted_2$9 = { class: "grow" };
1864
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
1865
- __name: "SubscriptionSummary",
1771
+ const _hoisted_1$f = { class: "flex items-start" };
1772
+ const _hoisted_2$7 = { class: "flex flex-col grow" };
1773
+ const _hoisted_3$5 = { class: "flex items-center gap-1" };
1774
+ const _hoisted_4$5 = { class: "flex items-center ml-4 self-center" };
1775
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1776
+ __name: "PricingGroupContent",
1866
1777
  props: {
1867
- subscription: { type: Object },
1868
- invoice: { type: Object },
1869
- loading: { type: Boolean },
1870
- enabledPricingIds: { type: Array },
1871
- avatar: { type: String },
1872
- trialPeriod: { type: Object }
1778
+ name: { type: String },
1779
+ description: { type: String }
1873
1780
  },
1874
1781
  setup(__props) {
1875
- const props = __props;
1876
- const { $t } = useIntl();
1877
- const mostRecentPricingPlan = computed(
1878
- () => {
1879
- var _a, _b;
1880
- return (_b = (_a = props.subscription.pricing_plan_schedule_infos) == null ? void 0 : _a.at(-1)) == null ? void 0 : _b.pricing_plan_version.pricing_plan;
1881
- }
1882
- );
1883
- const name = computed(
1884
- () => {
1885
- var _a;
1886
- return ((_a = mostRecentPricingPlan.value) == null ? void 0 : _a.name) || props.subscription.name || $t({
1887
- defaultMessage: "Subscription",
1888
- description: "The fallback name for when no subscription name can be determined",
1889
- id: "customer_overview.subscriptions_block.fallback_subscription_name"
1890
- });
1891
- }
1892
- );
1893
- const description = computed(
1894
- () => {
1895
- var _a;
1896
- return props.subscription.description || ((_a = mostRecentPricingPlan.value) == null ? void 0 : _a.description);
1897
- }
1898
- );
1899
- const selectedPricings = computed(() => {
1900
- if (!props.subscription || !props.enabledPricingIds) {
1901
- return void 0;
1902
- }
1903
- const pricings = findPricingsByIds(props.subscription, props.enabledPricingIds);
1904
- const names = pricings == null ? void 0 : pricings.map((pricing) => {
1905
- var _a, _b;
1906
- return pricing.name ?? ((_b = (_a = pricing.products) == null ? void 0 : _a[0]) == null ? void 0 : _b.name);
1907
- }).join(" - ");
1908
- return names;
1909
- });
1910
1782
  return (_ctx, _cache) => {
1911
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
1912
- __props.avatar ? (openBlock(), createBlock(unref(_sfc_main$B), {
1913
- key: 0,
1914
- "image-src": __props.avatar,
1915
- size: "lg",
1916
- class: "my-1"
1917
- }, null, 8, ["image-src"])) : createCommentVNode("", true),
1918
- createElementVNode("div", _hoisted_2$9, [
1919
- createVNode(unref(_sfc_main$p), {
1920
- variant: "body",
1921
- weight: "semibold",
1922
- "no-spacing": ""
1923
- }, {
1924
- default: withCtx(() => [
1925
- createTextVNode(toDisplayString(name.value), 1)
1926
- ]),
1927
- _: 1
1928
- }),
1929
- selectedPricings.value ? (openBlock(), createBlock(unref(_sfc_main$p), {
1930
- key: 0,
1931
- variant: "body-xs",
1932
- shade: "lighter",
1933
- "no-spacing": ""
1934
- }, {
1935
- default: withCtx(() => [
1936
- createTextVNode(toDisplayString(selectedPricings.value), 1)
1937
- ]),
1938
- _: 1
1939
- })) : createCommentVNode("", true),
1940
- description.value ? (openBlock(), createBlock(unref(_sfc_main$p), {
1941
- key: 1,
1783
+ return openBlock(), createElementBlock("div", _hoisted_1$f, [
1784
+ createElementVNode("div", _hoisted_2$7, [
1785
+ createElementVNode("div", _hoisted_3$5, [
1786
+ createVNode(unref(_sfc_main$n), {
1787
+ tag: "span",
1788
+ variant: "body-sm",
1789
+ weight: "semibold"
1790
+ }, {
1791
+ default: withCtx(() => [
1792
+ createTextVNode(toDisplayString(__props.name), 1)
1793
+ ]),
1794
+ _: 1
1795
+ }),
1796
+ renderSlot(_ctx.$slots, "badge")
1797
+ ]),
1798
+ createVNode(unref(_sfc_main$n), {
1799
+ tag: "span",
1942
1800
  variant: "body-xs",
1943
- shade: "lighter",
1944
- "no-spacing": ""
1801
+ shade: "lighter"
1945
1802
  }, {
1946
1803
  default: withCtx(() => [
1947
- selectedPricings.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1948
- createTextVNode(" • ")
1949
- ], 64)) : createCommentVNode("", true),
1950
- createTextVNode(" " + toDisplayString(description.value), 1)
1804
+ createTextVNode(toDisplayString(__props.description), 1)
1951
1805
  ]),
1952
1806
  _: 1
1953
- })) : createCommentVNode("", true)
1807
+ })
1808
+ ]),
1809
+ createElementVNode("div", _hoisted_4$5, [
1810
+ renderSlot(_ctx.$slots, "default")
1954
1811
  ])
1955
1812
  ]);
1956
1813
  };
1957
1814
  }
1958
1815
  });
1959
- const _hoisted_1$f = { class: "sv-order-summary__body grid grid-cols-1 gap-1" };
1960
- const _hoisted_2$8 = { class: "px-3 py-2" };
1816
+ const _hoisted_1$e = { class: "sv-order-summary__body grid grid-cols-1 gap-1" };
1817
+ const _hoisted_2$6 = { class: "px-3 py-2" };
1961
1818
  const _hoisted_3$4 = { class: "sv-order-summary__billing-period flex flex-col gap-3" };
1962
1819
  const _hoisted_4$4 = { class: "px-3 py-2" };
1963
1820
  const _hoisted_5$3 = {
1964
1821
  key: 3,
1965
1822
  class: "sv-order-summary__items"
1966
1823
  };
1967
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
1824
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1968
1825
  __name: "OrderSummary",
1969
1826
  props: {
1970
1827
  subscription: { type: Object },
@@ -2184,7 +2041,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2184
2041
  label,
2185
2042
  subLabel: getSelectedPeriodAmountLabel(period),
2186
2043
  labelSuffixComponent: saveText ? {
2187
- component: _sfc_main$C,
2044
+ component: _sfc_main$z,
2188
2045
  props: {
2189
2046
  color: "primary",
2190
2047
  content: saveText,
@@ -2243,7 +2100,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2243
2100
  selectedBillingPeriodKey.value = checked ? biggestPeriod : smallestPeriod;
2244
2101
  };
2245
2102
  return (_ctx, _cache) => {
2246
- return openBlock(), createBlock(unref(_sfc_main$q), {
2103
+ return openBlock(), createBlock(unref(_sfc_main$o), {
2247
2104
  class: "sv-order-summary",
2248
2105
  "no-border": "",
2249
2106
  "no-spacing": "",
@@ -2255,13 +2112,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2255
2112
  })
2256
2113
  }, {
2257
2114
  default: withCtx(() => [
2258
- createElementVNode("div", _hoisted_1$f, [
2259
- createVNode(unref(_sfc_main$q), {
2115
+ createElementVNode("div", _hoisted_1$e, [
2116
+ createVNode(unref(_sfc_main$o), {
2260
2117
  "no-spacing": "",
2261
2118
  class: "sv-order-summary__subscription"
2262
2119
  }, {
2263
2120
  default: withCtx(() => [
2264
- __props.subscription ? (openBlock(), createBlock(_sfc_main$i, {
2121
+ __props.subscription ? (openBlock(), createBlock(_sfc_main$A, {
2265
2122
  key: 0,
2266
2123
  avatar: __props.avatar,
2267
2124
  invoice: __props.invoice,
@@ -2273,7 +2130,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2273
2130
  ]),
2274
2131
  _: 1
2275
2132
  }),
2276
- billingPeriodOptions.value.length === 2 ? (openBlock(), createBlock(unref(_sfc_main$q), {
2133
+ billingPeriodOptions.value.length === 2 ? (openBlock(), createBlock(unref(_sfc_main$o), {
2277
2134
  key: 0,
2278
2135
  "no-spacing": "",
2279
2136
  "content-classes": selectedBillingPeriodKey.value === periodBounds.value.biggestPeriod ? "border-primary-500" : void 0
@@ -2281,15 +2138,15 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2281
2138
  default: withCtx(() => {
2282
2139
  var _a;
2283
2140
  return [
2284
- createElementVNode("div", _hoisted_2$8, [
2141
+ createElementVNode("div", _hoisted_2$6, [
2285
2142
  createElementVNode("div", _hoisted_3$4, [
2286
- highOption.value ? (openBlock(), createBlock(_sfc_main$D, {
2143
+ highOption.value ? (openBlock(), createBlock(_sfc_main$g, {
2287
2144
  key: 0,
2288
2145
  name: highOption.value.label,
2289
2146
  description: ((_a = selectedBillingPeriodOption.value) == null ? void 0 : _a.subLabel) ?? ""
2290
2147
  }, createSlots({
2291
2148
  default: withCtx(() => [
2292
- createVNode(unref(_sfc_main$v), {
2149
+ createVNode(unref(_sfc_main$t), {
2293
2150
  "model-value": selectedBillingPeriodKey.value === periodBounds.value.biggestPeriod,
2294
2151
  "onUpdate:modelValue": handleBinaryBillingToggle
2295
2152
  }, null, 8, ["model-value"])
@@ -2299,7 +2156,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2299
2156
  toggleSaveText.value ? {
2300
2157
  name: "badge",
2301
2158
  fn: withCtx(() => [
2302
- createVNode(unref(_sfc_main$C), {
2159
+ createVNode(unref(_sfc_main$z), {
2303
2160
  color: "primary",
2304
2161
  content: toggleSaveText.value,
2305
2162
  size: saveBadgeSize.value,
@@ -2314,7 +2171,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2314
2171
  ];
2315
2172
  }),
2316
2173
  _: 1
2317
- }, 8, ["content-classes"])) : billingPeriodOptions.value.length > 2 ? (openBlock(), createBlock(unref(_sfc_main$E), {
2174
+ }, 8, ["content-classes"])) : billingPeriodOptions.value.length > 2 ? (openBlock(), createBlock(unref(_sfc_main$B), {
2318
2175
  key: 1,
2319
2176
  "single-model-value": selectedBillingPeriodKey.value,
2320
2177
  "onUpdate:singleModelValue": _cache[0] || (_cache[0] = ($event) => selectedBillingPeriodKey.value = $event),
@@ -2325,14 +2182,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2325
2182
  "show-sub-label-in-input": "",
2326
2183
  "show-suffix-in-closed-input": ""
2327
2184
  }, null, 8, ["single-model-value", "options"])) : createCommentVNode("", true),
2328
- __props.isUsageBased ? (openBlock(), createBlock(unref(_sfc_main$q), {
2185
+ __props.isUsageBased ? (openBlock(), createBlock(unref(_sfc_main$o), {
2329
2186
  key: 2,
2330
2187
  "no-spacing": "",
2331
2188
  class: "sv-order-summary__usage"
2332
2189
  }, {
2333
2190
  default: withCtx(() => [
2334
2191
  createElementVNode("div", _hoisted_4$4, [
2335
- createVNode(unref(_sfc_main$p), {
2192
+ createVNode(unref(_sfc_main$n), {
2336
2193
  "no-spacing": "",
2337
2194
  variant: "body-sm",
2338
2195
  shade: "lighter"
@@ -2351,14 +2208,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2351
2208
  _: 1
2352
2209
  })) : createCommentVNode("", true),
2353
2210
  __props.invoice && __props.variant !== "products-inline" ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
2354
- createVNode(unref(_sfc_main$F), {
2211
+ createVNode(unref(_sfc_main$C), {
2355
2212
  invoice: __props.invoice,
2356
- "wrapper-component": unref(_sfc_main$q)
2213
+ "wrapper-component": unref(_sfc_main$o)
2357
2214
  }, null, 8, ["invoice", "wrapper-component"])
2358
2215
  ])) : createCommentVNode("", true),
2359
- createVNode(unref(_sfc_main$q), { class: "sv-order-summary__totals" }, {
2216
+ createVNode(unref(_sfc_main$o), { class: "sv-order-summary__totals" }, {
2360
2217
  default: withCtx(() => [
2361
- __props.invoice ? (openBlock(), createBlock(unref(_sfc_main$G), {
2218
+ __props.invoice ? (openBlock(), createBlock(unref(_sfc_main$D), {
2362
2219
  key: 0,
2363
2220
  class: "sv-order-summary__invoice-preview",
2364
2221
  variant: __props.variant === "products-inline" ? "default" : "without-products",
@@ -2368,7 +2225,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2368
2225
  collapsible: __props.collapsible,
2369
2226
  "is-preview-without-taxes": !__props.countryCode,
2370
2227
  "is-customer-facing": ""
2371
- }, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (openBlock(), createBlock(unref(_sfc_main$p), {
2228
+ }, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (openBlock(), createBlock(unref(_sfc_main$n), {
2372
2229
  key: 1,
2373
2230
  variant: "body-sm",
2374
2231
  shade: "lighter",
@@ -2393,19 +2250,19 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2393
2250
  };
2394
2251
  }
2395
2252
  });
2396
- const _hoisted_1$e = {
2253
+ const _hoisted_1$d = {
2397
2254
  key: 0,
2398
2255
  id: "svg-logo",
2399
2256
  viewBox: "0 0 35 15",
2400
2257
  class: "h-[44px]"
2401
2258
  };
2402
- const _hoisted_2$7 = {
2259
+ const _hoisted_2$5 = {
2403
2260
  key: 1,
2404
2261
  src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAxcHgiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxMDEgMzIiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaW5ZTWluIG1lZXQiIHhtbG5zPSJodHRwOiYjeDJGOyYjeDJGO3d3dy53My5vcmcmI3gyRjsyMDAwJiN4MkY7c3ZnIj48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDEyLjIzNyAyLjggTCA0LjQzNyAyLjggQyAzLjkzNyAyLjggMy40MzcgMy4yIDMuMzM3IDMuNyBMIDAuMjM3IDIzLjcgQyAwLjEzNyAyNC4xIDAuNDM3IDI0LjQgMC44MzcgMjQuNCBMIDQuNTM3IDI0LjQgQyA1LjAzNyAyNC40IDUuNTM3IDI0IDUuNjM3IDIzLjUgTCA2LjQzNyAxOC4xIEMgNi41MzcgMTcuNiA2LjkzNyAxNy4yIDcuNTM3IDE3LjIgTCAxMC4wMzcgMTcuMiBDIDE1LjEzNyAxNy4yIDE4LjEzNyAxNC43IDE4LjkzNyA5LjggQyAxOS4yMzcgNy43IDE4LjkzNyA2IDE3LjkzNyA0LjggQyAxNi44MzcgMy41IDE0LjgzNyAyLjggMTIuMjM3IDIuOCBaIE0gMTMuMTM3IDEwLjEgQyAxMi43MzcgMTIuOSAxMC41MzcgMTIuOSA4LjUzNyAxMi45IEwgNy4zMzcgMTIuOSBMIDguMTM3IDcuNyBDIDguMTM3IDcuNCA4LjQzNyA3LjIgOC43MzcgNy4yIEwgOS4yMzcgNy4yIEMgMTAuNjM3IDcuMiAxMS45MzcgNy4yIDEyLjYzNyA4IEMgMTMuMTM3IDguNCAxMy4zMzcgOS4xIDEzLjEzNyAxMC4xIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDM1LjQzNyAxMCBMIDMxLjczNyAxMCBDIDMxLjQzNyAxMCAzMS4xMzcgMTAuMiAzMS4xMzcgMTAuNSBMIDMwLjkzNyAxMS41IEwgMzAuNjM3IDExLjEgQyAyOS44MzcgOS45IDI4LjAzNyA5LjUgMjYuMjM3IDkuNSBDIDIyLjEzNyA5LjUgMTguNjM3IDEyLjYgMTcuOTM3IDE3IEMgMTcuNTM3IDE5LjIgMTguMDM3IDIxLjMgMTkuMzM3IDIyLjcgQyAyMC40MzcgMjQgMjIuMTM3IDI0LjYgMjQuMDM3IDI0LjYgQyAyNy4zMzcgMjQuNiAyOS4yMzcgMjIuNSAyOS4yMzcgMjIuNSBMIDI5LjAzNyAyMy41IEMgMjguOTM3IDIzLjkgMjkuMjM3IDI0LjMgMjkuNjM3IDI0LjMgTCAzMy4wMzcgMjQuMyBDIDMzLjUzNyAyNC4zIDM0LjAzNyAyMy45IDM0LjEzNyAyMy40IEwgMzYuMTM3IDEwLjYgQyAzNi4yMzcgMTAuNCAzNS44MzcgMTAgMzUuNDM3IDEwIFogTSAzMC4zMzcgMTcuMiBDIDI5LjkzNyAxOS4zIDI4LjMzNyAyMC44IDI2LjEzNyAyMC44IEMgMjUuMDM3IDIwLjggMjQuMjM3IDIwLjUgMjMuNjM3IDE5LjggQyAyMy4wMzcgMTkuMSAyMi44MzcgMTguMiAyMy4wMzcgMTcuMiBDIDIzLjMzNyAxNS4xIDI1LjEzNyAxMy42IDI3LjIzNyAxMy42IEMgMjguMzM3IDEzLjYgMjkuMTM3IDE0IDI5LjczNyAxNC42IEMgMzAuMjM3IDE1LjMgMzAuNDM3IDE2LjIgMzAuMzM3IDE3LjIgWiI+PC9wYXRoPjxwYXRoIGZpbGw9IiMwMDMwODciIGQ9Ik0gNTUuMzM3IDEwIEwgNTEuNjM3IDEwIEMgNTEuMjM3IDEwIDUwLjkzNyAxMC4yIDUwLjczNyAxMC41IEwgNDUuNTM3IDE4LjEgTCA0My4zMzcgMTAuOCBDIDQzLjIzNyAxMC4zIDQyLjczNyAxMCA0Mi4zMzcgMTAgTCAzOC42MzcgMTAgQyAzOC4yMzcgMTAgMzcuODM3IDEwLjQgMzguMDM3IDEwLjkgTCA0Mi4xMzcgMjMgTCAzOC4yMzcgMjguNCBDIDM3LjkzNyAyOC44IDM4LjIzNyAyOS40IDM4LjczNyAyOS40IEwgNDIuNDM3IDI5LjQgQyA0Mi44MzcgMjkuNCA0My4xMzcgMjkuMiA0My4zMzcgMjguOSBMIDU1LjgzNyAxMC45IEMgNTYuMTM3IDEwLjYgNTUuODM3IDEwIDU1LjMzNyAxMCBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA2Ny43MzcgMi44IEwgNTkuOTM3IDIuOCBDIDU5LjQzNyAyLjggNTguOTM3IDMuMiA1OC44MzcgMy43IEwgNTUuNzM3IDIzLjYgQyA1NS42MzcgMjQgNTUuOTM3IDI0LjMgNTYuMzM3IDI0LjMgTCA2MC4zMzcgMjQuMyBDIDYwLjczNyAyNC4zIDYxLjAzNyAyNCA2MS4wMzcgMjMuNyBMIDYxLjkzNyAxOCBDIDYyLjAzNyAxNy41IDYyLjQzNyAxNy4xIDYzLjAzNyAxNy4xIEwgNjUuNTM3IDE3LjEgQyA3MC42MzcgMTcuMSA3My42MzcgMTQuNiA3NC40MzcgOS43IEMgNzQuNzM3IDcuNiA3NC40MzcgNS45IDczLjQzNyA0LjcgQyA3Mi4yMzcgMy41IDcwLjMzNyAyLjggNjcuNzM3IDIuOCBaIE0gNjguNjM3IDEwLjEgQyA2OC4yMzcgMTIuOSA2Ni4wMzcgMTIuOSA2NC4wMzcgMTIuOSBMIDYyLjgzNyAxMi45IEwgNjMuNjM3IDcuNyBDIDYzLjYzNyA3LjQgNjMuOTM3IDcuMiA2NC4yMzcgNy4yIEwgNjQuNzM3IDcuMiBDIDY2LjEzNyA3LjIgNjcuNDM3IDcuMiA2OC4xMzcgOCBDIDY4LjYzNyA4LjQgNjguNzM3IDkuMSA2OC42MzcgMTAuMSBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA5MC45MzcgMTAgTCA4Ny4yMzcgMTAgQyA4Ni45MzcgMTAgODYuNjM3IDEwLjIgODYuNjM3IDEwLjUgTCA4Ni40MzcgMTEuNSBMIDg2LjEzNyAxMS4xIEMgODUuMzM3IDkuOSA4My41MzcgOS41IDgxLjczNyA5LjUgQyA3Ny42MzcgOS41IDc0LjEzNyAxMi42IDczLjQzNyAxNyBDIDczLjAzNyAxOS4yIDczLjUzNyAyMS4zIDc0LjgzNyAyMi43IEMgNzUuOTM3IDI0IDc3LjYzNyAyNC42IDc5LjUzNyAyNC42IEMgODIuODM3IDI0LjYgODQuNzM3IDIyLjUgODQuNzM3IDIyLjUgTCA4NC41MzcgMjMuNSBDIDg0LjQzNyAyMy45IDg0LjczNyAyNC4zIDg1LjEzNyAyNC4zIEwgODguNTM3IDI0LjMgQyA4OS4wMzcgMjQuMyA4OS41MzcgMjMuOSA4OS42MzcgMjMuNCBMIDkxLjYzNyAxMC42IEMgOTEuNjM3IDEwLjQgOTEuMzM3IDEwIDkwLjkzNyAxMCBaIE0gODUuNzM3IDE3LjIgQyA4NS4zMzcgMTkuMyA4My43MzcgMjAuOCA4MS41MzcgMjAuOCBDIDgwLjQzNyAyMC44IDc5LjYzNyAyMC41IDc5LjAzNyAxOS44IEMgNzguNDM3IDE5LjEgNzguMjM3IDE4LjIgNzguNDM3IDE3LjIgQyA3OC43MzcgMTUuMSA4MC41MzcgMTMuNiA4Mi42MzcgMTMuNiBDIDgzLjczNyAxMy42IDg0LjUzNyAxNCA4NS4xMzcgMTQuNiBDIDg1LjczNyAxNS4zIDg1LjkzNyAxNi4yIDg1LjczNyAxNy4yIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDA5Y2RlIiBkPSJNIDk1LjMzNyAzLjMgTCA5Mi4xMzcgMjMuNiBDIDkyLjAzNyAyNCA5Mi4zMzcgMjQuMyA5Mi43MzcgMjQuMyBMIDk1LjkzNyAyNC4zIEMgOTYuNDM3IDI0LjMgOTYuOTM3IDIzLjkgOTcuMDM3IDIzLjQgTCAxMDAuMjM3IDMuNSBDIDEwMC4zMzcgMy4xIDEwMC4wMzcgMi44IDk5LjYzNyAyLjggTCA5Ni4wMzcgMi44IEMgOTUuNjM3IDIuOCA5NS40MzcgMyA5NS4zMzcgMy4zIFoiPjwvcGF0aD48L3N2Zz4",
2405
2262
  role: "presentation",
2406
2263
  class: "h-[22px]"
2407
2264
  };
2408
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
2265
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
2409
2266
  __name: "ExpressPaymentMethodButton",
2410
2267
  props: {
2411
2268
  type: { type: String }
@@ -2442,14 +2299,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2442
2299
  emit("click");
2443
2300
  }
2444
2301
  return (_ctx, _cache) => {
2445
- return openBlock(), createBlock(unref(_sfc_main$t), {
2302
+ return openBlock(), createBlock(unref(_sfc_main$r), {
2446
2303
  size: "lg",
2447
2304
  "aria-label": ariaLabel.value,
2448
2305
  class: normalizeClass([buttonClasses.value, "!block w-full h-11 bg-center bg-no-repeat"]),
2449
2306
  onClick: handleClick
2450
2307
  }, {
2451
2308
  default: withCtx(() => [
2452
- props.type === "applepay" ? (openBlock(), createElementBlock("svg", _hoisted_1$e, [..._cache[0] || (_cache[0] = [
2309
+ props.type === "applepay" ? (openBlock(), createElementBlock("svg", _hoisted_1$d, [..._cache[0] || (_cache[0] = [
2453
2310
  createElementVNode("svg", {
2454
2311
  id: "svg-logo",
2455
2312
  x: "0",
@@ -2477,16 +2334,16 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2477
2334
  ])
2478
2335
  ])
2479
2336
  ], -1)
2480
- ])])) : props.type === "paypal" ? (openBlock(), createElementBlock("img", _hoisted_2$7)) : createCommentVNode("", true)
2337
+ ])])) : props.type === "paypal" ? (openBlock(), createElementBlock("img", _hoisted_2$5)) : createCommentVNode("", true)
2481
2338
  ]),
2482
2339
  _: 1
2483
2340
  }, 8, ["aria-label", "class"]);
2484
2341
  };
2485
2342
  }
2486
2343
  });
2487
- const _hoisted_1$d = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" };
2344
+ const _hoisted_1$c = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" };
2488
2345
  const PAYMENT_GATEWAY_VARIANT_ADYEN = "ADYEN";
2489
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
2346
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
2490
2347
  __name: "ExpressPaymentMethodApplePay",
2491
2348
  props: {
2492
2349
  onBillingInformationChange: { type: Function },
@@ -2721,12 +2578,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2721
2578
  });
2722
2579
  return (_ctx, _cache) => {
2723
2580
  return openBlock(), createElementBlock(Fragment, null, [
2724
- __props.isVisible ? (openBlock(), createBlock(_sfc_main$g, {
2581
+ __props.isVisible ? (openBlock(), createBlock(_sfc_main$e, {
2725
2582
  key: 0,
2726
2583
  type: "applepay",
2727
2584
  onClick: handleClick
2728
2585
  })) : createCommentVNode("", true),
2729
- createElementVNode("div", _hoisted_1$d, [
2586
+ createElementVNode("div", _hoisted_1$c, [
2730
2587
  createElementVNode("div", {
2731
2588
  ref_key: "applePayButtonRef",
2732
2589
  ref: applePayButtonRef
@@ -2736,8 +2593,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2736
2593
  };
2737
2594
  }
2738
2595
  });
2739
- const _hoisted_1$c = { class: "relative overflow-hidden" };
2740
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
2596
+ const _hoisted_1$b = { class: "relative overflow-hidden" };
2597
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2741
2598
  __name: "ExpressPaymentMethodPaypal",
2742
2599
  props: {
2743
2600
  amount: { type: Object },
@@ -2796,8 +2653,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
2796
2653
  void initPaypal();
2797
2654
  });
2798
2655
  return (_ctx, _cache) => {
2799
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
2800
- __props.isVisible ? (openBlock(), createBlock(_sfc_main$g, {
2656
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
2657
+ __props.isVisible ? (openBlock(), createBlock(_sfc_main$e, {
2801
2658
  key: 0,
2802
2659
  type: "paypal",
2803
2660
  class: "w-full"
@@ -2811,8 +2668,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
2811
2668
  };
2812
2669
  }
2813
2670
  });
2814
- const _hoisted_1$b = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" };
2815
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
2671
+ const _hoisted_1$a = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" };
2672
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2816
2673
  __name: "ExpressPaymentMethodGooglePay",
2817
2674
  props: {
2818
2675
  amount: { type: Object },
@@ -2876,12 +2733,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
2876
2733
  });
2877
2734
  return (_ctx, _cache) => {
2878
2735
  return openBlock(), createElementBlock(Fragment, null, [
2879
- __props.isVisible ? (openBlock(), createBlock(_sfc_main$g, {
2736
+ __props.isVisible ? (openBlock(), createBlock(_sfc_main$e, {
2880
2737
  key: 0,
2881
2738
  type: "googlepay",
2882
2739
  onClick: handleClick
2883
2740
  })) : createCommentVNode("", true),
2884
- createElementVNode("div", _hoisted_1$b, [
2741
+ createElementVNode("div", _hoisted_1$a, [
2885
2742
  createElementVNode("div", {
2886
2743
  ref_key: "googlePayButtonRef",
2887
2744
  ref: googlePayButtonRef
@@ -2891,15 +2748,15 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
2891
2748
  };
2892
2749
  }
2893
2750
  });
2894
- const _hoisted_1$a = {
2751
+ const _hoisted_1$9 = {
2895
2752
  key: 0,
2896
2753
  class: "mt-4n"
2897
2754
  };
2898
- const _hoisted_2$6 = { class: "mb-2" };
2755
+ const _hoisted_2$4 = { class: "mb-2" };
2899
2756
  const _hoisted_3$3 = { class: "grid grid-cols-6 gap-1 md:gap-2" };
2900
2757
  const _hoisted_4$3 = { class: "mt-4 h-4" };
2901
2758
  const DEFAULT_EXPRESS_PAYMENT_BUTTON_COUNT = 2;
2902
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
2759
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2903
2760
  __name: "ExpressPaymentMethods",
2904
2761
  props: {
2905
2762
  amount: { type: Object },
@@ -2979,12 +2836,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2979
2836
  return (paymentMethodOptionsResponseEntryIncludingApplePay.value ? 1 : 0) + (paymentMethodOptionsResponseEntryIncludingGooglePay.value ? 1 : 0) + (paymentMethodOptionsResponseEntryIncludingPayPal.value ? 1 : 0);
2980
2837
  });
2981
2838
  return (_ctx, _cache) => {
2982
- return hasPaymentMethodOptions.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
2983
- createElementVNode("div", _hoisted_2$6, [
2984
- !isReady.value ? (openBlock(), createBlock(_sfc_main$H, {
2839
+ return hasPaymentMethodOptions.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
2840
+ createElementVNode("div", _hoisted_2$4, [
2841
+ !isReady.value ? (openBlock(), createBlock(_sfc_main$E, {
2985
2842
  key: 0,
2986
2843
  variant: "title"
2987
- })) : (openBlock(), createBlock(unref(_sfc_main$p), {
2844
+ })) : (openBlock(), createBlock(unref(_sfc_main$n), {
2988
2845
  key: 1,
2989
2846
  variant: "heading-3",
2990
2847
  tag: "h2"
@@ -3001,8 +2858,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3001
2858
  ]),
3002
2859
  createElementVNode("div", _hoisted_3$3, [
3003
2860
  !isReady.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
3004
- createVNode(_sfc_main$H, { class: "col-span-3 h-11" }),
3005
- createVNode(_sfc_main$H, { class: "col-span-3 h-11" })
2861
+ createVNode(_sfc_main$E, { class: "col-span-3 h-11" }),
2862
+ createVNode(_sfc_main$E, { class: "col-span-3 h-11" })
3006
2863
  ], 64)) : createCommentVNode("", true),
3007
2864
  createElementVNode("div", {
3008
2865
  class: normalizeClass(["col-span-3 md:col-span-2", {
@@ -3012,7 +2869,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3012
2869
  "!col-span-6 md:!col-span-2": expressPaymentButtonCount.value === 3
3013
2870
  }])
3014
2871
  }, [
3015
- paymentMethodOptionsResponseEntryIncludingApplePay.value ? (openBlock(), createBlock(_sfc_main$f, {
2872
+ paymentMethodOptionsResponseEntryIncludingApplePay.value ? (openBlock(), createBlock(_sfc_main$d, {
3016
2873
  key: 0,
3017
2874
  amount: __props.amount,
3018
2875
  "billing-information": __props.billingInformation,
@@ -3032,7 +2889,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3032
2889
  "md:!col-span-3": expressPaymentButtonCount.value === 2
3033
2890
  }])
3034
2891
  }, [
3035
- paymentMethodOptionsResponseEntryIncludingGooglePay.value ? (openBlock(), createBlock(_sfc_main$d, {
2892
+ paymentMethodOptionsResponseEntryIncludingGooglePay.value ? (openBlock(), createBlock(_sfc_main$b, {
3036
2893
  key: 0,
3037
2894
  amount: __props.amount,
3038
2895
  "billing-information": __props.billingInformation,
@@ -3050,7 +2907,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3050
2907
  "md:!col-span-3": expressPaymentButtonCount.value === 2
3051
2908
  }])
3052
2909
  }, [
3053
- paymentMethodOptionsResponseEntryIncludingPayPal.value ? (openBlock(), createBlock(_sfc_main$e, {
2910
+ paymentMethodOptionsResponseEntryIncludingPayPal.value ? (openBlock(), createBlock(_sfc_main$c, {
3054
2911
  key: 0,
3055
2912
  amount: __props.amount,
3056
2913
  "billing-information": __props.billingInformation,
@@ -3063,10 +2920,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3063
2920
  ], 2)
3064
2921
  ]),
3065
2922
  createElementVNode("div", _hoisted_4$3, [
3066
- !isReady.value ? (openBlock(), createBlock(_sfc_main$H, {
2923
+ !isReady.value ? (openBlock(), createBlock(_sfc_main$E, {
3067
2924
  key: 0,
3068
2925
  variant: "divider-text"
3069
- })) : (openBlock(), createBlock(unref(_sfc_main$I), {
2926
+ })) : (openBlock(), createBlock(unref(_sfc_main$F), {
3070
2927
  key: 1,
3071
2928
  text: unref($t)({
3072
2929
  defaultMessage: "Or",
@@ -3080,8 +2937,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3080
2937
  };
3081
2938
  }
3082
2939
  });
3083
- const _hoisted_1$9 = { class: "grid grid-cols-2 gap-2" };
3084
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
2940
+ const _hoisted_1$8 = { class: "grid grid-cols-2 gap-2" };
2941
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3085
2942
  __name: "TieredTableRow",
3086
2943
  props: {
3087
2944
  band: { type: Object },
@@ -3110,8 +2967,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3110
2967
  return props.band.tier_top_bound.number;
3111
2968
  });
3112
2969
  return (_ctx, _cache) => {
3113
- return openBlock(), createElementBlock("div", _hoisted_1$9, [
3114
- createVNode(unref(_sfc_main$p), {
2970
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
2971
+ createVNode(unref(_sfc_main$n), {
3115
2972
  variant: "body-xs",
3116
2973
  shade: "lighter",
3117
2974
  tag: "div"
@@ -3144,7 +3001,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3144
3001
  ]),
3145
3002
  _: 1
3146
3003
  }),
3147
- createVNode(unref(_sfc_main$p), {
3004
+ createVNode(unref(_sfc_main$n), {
3148
3005
  variant: "body-xs",
3149
3006
  shade: "lighter",
3150
3007
  tag: "div",
@@ -3172,8 +3029,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3172
3029
  };
3173
3030
  }
3174
3031
  });
3175
- const _hoisted_1$8 = { class: "grid grid-cols-1 gap-0.5 pt-1.5" };
3176
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
3032
+ const _hoisted_1$7 = { class: "grid grid-cols-1 gap-0.5 pt-1.5" };
3033
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3177
3034
  __name: "TieredTable",
3178
3035
  props: {
3179
3036
  bands: { type: Array },
@@ -3181,9 +3038,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3181
3038
  },
3182
3039
  setup(__props) {
3183
3040
  return (_ctx, _cache) => {
3184
- return openBlock(), createElementBlock("div", _hoisted_1$8, [
3041
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
3185
3042
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.bands, (band, index) => {
3186
- return openBlock(), createBlock(_sfc_main$b, {
3043
+ return openBlock(), createBlock(_sfc_main$9, {
3187
3044
  key: index,
3188
3045
  band,
3189
3046
  "is-first": index === 0,
@@ -3237,12 +3094,12 @@ function useSeatBasedPricing({
3237
3094
  };
3238
3095
  });
3239
3096
  }
3240
- const _hoisted_1$7 = { class: "flex flex-row-reverse md:flex-row gap-4" };
3241
- const _hoisted_2$5 = { class: "w-24 md:w-32 shrink-0 justify-start" };
3097
+ const _hoisted_1$6 = { class: "flex flex-row-reverse md:flex-row gap-4" };
3098
+ const _hoisted_2$3 = { class: "w-24 md:w-32 shrink-0 justify-start" };
3242
3099
  const _hoisted_3$2 = ["tabindex"];
3243
3100
  const _hoisted_4$2 = { key: 0 };
3244
3101
  const _hoisted_5$2 = { key: 0 };
3245
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3102
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3246
3103
  __name: "SeatsEditorItem",
3247
3104
  props: /* @__PURE__ */ mergeModels({
3248
3105
  modelValue: { type: Object },
@@ -3279,9 +3136,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3279
3136
  return (_ctx, _cache) => {
3280
3137
  var _a, _b, _c;
3281
3138
  return openBlock(), createElementBlock("div", null, [
3282
- createElementVNode("div", _hoisted_1$7, [
3283
- createElementVNode("div", _hoisted_2$5, [
3284
- createVNode(unref(_sfc_main$J), {
3139
+ createElementVNode("div", _hoisted_1$6, [
3140
+ createElementVNode("div", _hoisted_2$3, [
3141
+ createVNode(unref(_sfc_main$G), {
3285
3142
  modelValue: seatsNumber.value,
3286
3143
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => seatsNumber.value = $event),
3287
3144
  size: "sm",
@@ -3293,7 +3150,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3293
3150
  tabindex: isCollapsible.value ? 0 : void 0,
3294
3151
  onClick: _cache[1] || (_cache[1] = ($event) => isCollapsible.value ? isExpanded.value = !isExpanded.value : void 0)
3295
3152
  }, [
3296
- createVNode(unref(_sfc_main$p), {
3153
+ createVNode(unref(_sfc_main$n), {
3297
3154
  tag: "span",
3298
3155
  variant: "body-sm",
3299
3156
  weight: "semibold"
@@ -3307,7 +3164,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3307
3164
  ]),
3308
3165
  _: 1
3309
3166
  }),
3310
- unref(seats).pricing.amount ? (openBlock(), createBlock(unref(_sfc_main$p), {
3167
+ unref(seats).pricing.amount ? (openBlock(), createBlock(unref(_sfc_main$n), {
3311
3168
  key: 0,
3312
3169
  tag: "span",
3313
3170
  variant: "body-xs",
@@ -3330,7 +3187,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3330
3187
  )), 1)
3331
3188
  ]),
3332
3189
  _: 1
3333
- })) : unref(seats).pricing.tiered ? (openBlock(), createBlock(unref(_sfc_main$p), {
3190
+ })) : unref(seats).pricing.tiered ? (openBlock(), createBlock(unref(_sfc_main$n), {
3334
3191
  key: 1,
3335
3192
  tag: "span",
3336
3193
  variant: "body-xs",
@@ -3342,7 +3199,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3342
3199
  id: "seats.tiered_pricing_label",
3343
3200
  description: "The label indicating tiered pricing structure for seats"
3344
3201
  })) + " ", 1),
3345
- createVNode(unref(_sfc_main$K), {
3202
+ createVNode(unref(_sfc_main$H), {
3346
3203
  icon: "keyboard_arrow_down",
3347
3204
  size: "xs",
3348
3205
  class: normalizeClass(["absolute transition ease-in-out text-gray-400", { "rotate-0": !isExpanded.value, "rotate-180": isExpanded.value }])
@@ -3353,10 +3210,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3353
3210
  ], 10, _hoisted_3$2)
3354
3211
  ]),
3355
3212
  ((_c = (_b = unref(seats).pricing) == null ? void 0 : _b.tiered) == null ? void 0 : _c.bands) ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
3356
- createVNode(unref(_sfc_main$u), { "is-open": isExpanded.value }, {
3213
+ createVNode(unref(_sfc_main$s), { "is-open": isExpanded.value }, {
3357
3214
  default: withCtx(() => [
3358
3215
  isExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
3359
- createVNode(_sfc_main$a, {
3216
+ createVNode(_sfc_main$8, {
3360
3217
  bands: unref(seats).pricing.tiered.bands,
3361
3218
  period: unref(seats).billing.period
3362
3219
  }, null, 8, ["bands", "period"])
@@ -3369,7 +3226,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3369
3226
  };
3370
3227
  }
3371
3228
  });
3372
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3229
+ const _hoisted_1$5 = {
3230
+ key: 0,
3231
+ class: "grid grid-cols-1 gap-1"
3232
+ };
3233
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3373
3234
  __name: "SeatsEditor",
3374
3235
  props: /* @__PURE__ */ mergeModels({
3375
3236
  modelValue: { type: Array },
@@ -3391,64 +3252,31 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3391
3252
  }
3392
3253
  });
3393
3254
  return (_ctx, _cache) => {
3394
- return openBlock(true), createElementBlock(Fragment, null, renderList(__props.modelValue, (item, index) => {
3395
- return openBlock(), createBlock(unref(_sfc_main$q), { key: index }, {
3396
- default: withCtx(() => {
3397
- var _a;
3398
- return [
3399
- item.pricing_item_config_id ? (openBlock(), createBlock(_sfc_main$9, {
3400
- key: item.pricing_item_config_id,
3401
- modelValue: itemModel(index).value,
3402
- "onUpdate:modelValue": ($event) => itemModel(index).value = $event,
3403
- "default-value": (_a = __props.initialSeatsValues) == null ? void 0 : _a[index],
3404
- pricings: __props.pricings
3405
- }, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "pricings"])) : createCommentVNode("", true)
3406
- ];
3407
- }),
3408
- _: 2
3409
- }, 1024);
3410
- }), 128);
3411
- };
3412
- }
3413
- });
3414
- const _hoisted_1$6 = { class: "flex gap-4 border-l-2 border-primary-600 px-2" };
3415
- const _hoisted_2$4 = { class: "grow" };
3416
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3417
- __name: "PricingGroupTitle",
3418
- setup(__props) {
3419
- return (_ctx, _cache) => {
3420
- return openBlock(), createElementBlock("div", _hoisted_1$6, [
3421
- createElementVNode("div", _hoisted_2$4, [
3422
- createVNode(unref(_sfc_main$p), {
3423
- tag: "span",
3424
- variant: "body-sm",
3425
- weight: "semibold"
3426
- }, {
3427
- default: withCtx(() => [
3428
- renderSlot(_ctx.$slots, "title")
3429
- ]),
3430
- _: 3
3431
- })
3432
- ]),
3433
- createElementVNode("div", null, [
3434
- createVNode(unref(_sfc_main$p), {
3435
- tag: "span",
3436
- variant: "body-xs",
3437
- shade: "lighter"
3438
- }, {
3439
- default: withCtx(() => [
3440
- renderSlot(_ctx.$slots, "description")
3441
- ]),
3442
- _: 3
3443
- })
3444
- ])
3445
- ]);
3255
+ return __props.modelValue.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
3256
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.modelValue, (item, index) => {
3257
+ return openBlock(), createBlock(unref(_sfc_main$o), { key: index }, {
3258
+ default: withCtx(() => {
3259
+ var _a;
3260
+ return [
3261
+ item.pricing_item_config_id ? (openBlock(), createBlock(_sfc_main$7, {
3262
+ key: item.pricing_item_config_id,
3263
+ modelValue: itemModel(index).value,
3264
+ "onUpdate:modelValue": ($event) => itemModel(index).value = $event,
3265
+ "default-value": (_a = __props.initialSeatsValues) == null ? void 0 : _a[index],
3266
+ pricings: __props.pricings
3267
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "pricings"])) : createCommentVNode("", true)
3268
+ ];
3269
+ }),
3270
+ _: 2
3271
+ }, 1024);
3272
+ }), 128))
3273
+ ])) : createCommentVNode("", true);
3446
3274
  };
3447
3275
  }
3448
3276
  });
3449
- const _hoisted_1$5 = { class: "p-1" };
3450
- const _hoisted_2$3 = { class: "grid grid-cols-1 gap-1 pt-1" };
3451
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3277
+ const _hoisted_1$4 = { class: "p-1" };
3278
+ const _hoisted_2$2 = { class: "grid grid-cols-1 gap-1 pt-1" };
3279
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3452
3280
  __name: "AddonSingleEditor",
3453
3281
  props: /* @__PURE__ */ mergeModels({
3454
3282
  constraint: { type: String },
@@ -3507,10 +3335,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3507
3335
  }
3508
3336
  };
3509
3337
  return (_ctx, _cache) => {
3510
- return openBlock(), createBlock(unref(_sfc_main$q), { "no-spacing": "" }, {
3338
+ return openBlock(), createBlock(unref(_sfc_main$o), { "no-spacing": "" }, {
3511
3339
  default: withCtx(() => [
3512
- createElementVNode("div", _hoisted_1$5, [
3513
- createVNode(_sfc_main$7, null, {
3340
+ createElementVNode("div", _hoisted_1$4, [
3341
+ createVNode(_sfc_main$I, null, {
3514
3342
  title: withCtx(() => [
3515
3343
  createTextVNode(toDisplayString(__props.groupName), 1)
3516
3344
  ]),
@@ -3519,9 +3347,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3519
3347
  ]),
3520
3348
  _: 1
3521
3349
  }),
3522
- createElementVNode("div", _hoisted_2$3, [
3350
+ createElementVNode("div", _hoisted_2$2, [
3523
3351
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.pricings, (pricing) => {
3524
- return openBlock(), createBlock(unref(_sfc_main$q), {
3352
+ return openBlock(), createBlock(unref(_sfc_main$o), {
3525
3353
  key: pricing.id,
3526
3354
  "content-background": "none",
3527
3355
  class: normalizeClass({ "!bg-white": isSelected(pricing.id) })
@@ -3529,7 +3357,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3529
3357
  default: withCtx(() => {
3530
3358
  var _a, _b;
3531
3359
  return [
3532
- createVNode(_sfc_main$D, {
3360
+ createVNode(_sfc_main$g, {
3533
3361
  name: unref(getNameFromPricing)(pricing) ?? "",
3534
3362
  description: ((_a = pricing.items) == null ? void 0 : _a[0]) ? unref(renderPricingForPricingItem)({
3535
3363
  pricingItem: (_b = pricing.items) == null ? void 0 : _b[0]
@@ -3540,7 +3368,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3540
3368
  })
3541
3369
  }, {
3542
3370
  default: withCtx(() => [
3543
- createVNode(unref(_sfc_main$v), {
3371
+ createVNode(unref(_sfc_main$t), {
3544
3372
  "model-value": isSelected(pricing.id),
3545
3373
  "onUpdate:modelValue": ($event) => handleToggle(pricing.id)
3546
3374
  }, null, 8, ["model-value", "onUpdate:modelValue"])
@@ -3560,8 +3388,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3560
3388
  };
3561
3389
  }
3562
3390
  });
3563
- const _hoisted_1$4 = { class: "grid grid-cols-1 gap-1" };
3564
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3391
+ const _hoisted_1$3 = { class: "grid grid-cols-1 gap-1" };
3392
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3565
3393
  __name: "AddonMultipleEditor",
3566
3394
  props: /* @__PURE__ */ mergeModels({
3567
3395
  modelValue: { type: Array },
@@ -3593,7 +3421,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3593
3421
  }
3594
3422
  };
3595
3423
  return (_ctx, _cache) => {
3596
- return openBlock(), createBlock(unref(_sfc_main$q), {
3424
+ return openBlock(), createBlock(unref(_sfc_main$o), {
3597
3425
  "no-spacing": "",
3598
3426
  "no-border": !__props.groupName,
3599
3427
  "content-background": __props.groupName ? "gray" : "none"
@@ -3602,7 +3430,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3602
3430
  createElementVNode("div", {
3603
3431
  class: normalizeClass(["grid grid-cols-1 gap-1", { "p-1": __props.groupName }])
3604
3432
  }, [
3605
- __props.groupName ? (openBlock(), createBlock(_sfc_main$7, { key: 0 }, {
3433
+ __props.groupName ? (openBlock(), createBlock(_sfc_main$I, { key: 0 }, {
3606
3434
  title: withCtx(() => [
3607
3435
  createTextVNode(toDisplayString(__props.groupName), 1)
3608
3436
  ]),
@@ -3615,9 +3443,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3615
3443
  ]),
3616
3444
  _: 1
3617
3445
  })) : createCommentVNode("", true),
3618
- createElementVNode("div", _hoisted_1$4, [
3446
+ createElementVNode("div", _hoisted_1$3, [
3619
3447
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.pricings, (pricing) => {
3620
- return openBlock(), createBlock(unref(_sfc_main$q), {
3448
+ return openBlock(), createBlock(unref(_sfc_main$o), {
3621
3449
  key: pricing.id,
3622
3450
  "content-background": __props.groupName || isSelected(pricing.id) ? "none" : "gray",
3623
3451
  class: normalizeClass({ "!bg-white": isSelected(pricing.id) })
@@ -3625,7 +3453,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3625
3453
  default: withCtx(() => {
3626
3454
  var _a, _b;
3627
3455
  return [
3628
- createVNode(_sfc_main$D, {
3456
+ createVNode(_sfc_main$g, {
3629
3457
  name: unref(getNameFromPricing)(pricing) ?? "",
3630
3458
  description: ((_a = pricing.items) == null ? void 0 : _a[0]) ? unref(renderPricingForPricingItem)({
3631
3459
  pricingItem: (_b = pricing.items) == null ? void 0 : _b[0]
@@ -3636,7 +3464,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3636
3464
  })
3637
3465
  }, {
3638
3466
  default: withCtx(() => [
3639
- isSelected(pricing.id) ? (openBlock(), createBlock(unref(_sfc_main$t), {
3467
+ isSelected(pricing.id) ? (openBlock(), createBlock(unref(_sfc_main$r), {
3640
3468
  key: 0,
3641
3469
  color: "gray",
3642
3470
  variant: "outline",
@@ -3644,7 +3472,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3644
3472
  size: "sm",
3645
3473
  "icon-prefix": "remove_shopping_cart",
3646
3474
  onClick: ($event) => handleToggle(pricing.id)
3647
- }, null, 8, ["onClick"])) : (openBlock(), createBlock(unref(_sfc_main$t), {
3475
+ }, null, 8, ["onClick"])) : (openBlock(), createBlock(unref(_sfc_main$r), {
3648
3476
  key: 1,
3649
3477
  color: "primary",
3650
3478
  "icon-prefix": "add",
@@ -3676,109 +3504,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3676
3504
  };
3677
3505
  }
3678
3506
  });
3679
- const _hoisted_1$3 = { class: "p-1" };
3680
- const _hoisted_2$2 = { class: "pt-1" };
3681
- const SHOW_RADIO_GROUP_MAX_OPTIONS = 3;
3682
- const SHOW_SELECT_MAX_OPTIONS = 6;
3683
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3684
- __name: "PricingGroupSingleEditor",
3685
- props: /* @__PURE__ */ mergeModels({
3686
- modelValue: { type: Array },
3687
- pricings: { type: Array },
3688
- billingPeriod: { type: Object },
3689
- currency: { type: String },
3690
- groupName: { type: String }
3691
- }, {
3692
- "modelValue": {
3693
- required: true
3694
- },
3695
- "modelModifiers": {}
3696
- }),
3697
- emits: ["update:modelValue"],
3698
- setup(__props) {
3699
- const props = __props;
3700
- const model = useModel(__props, "modelValue");
3701
- const { $t } = useIntl();
3702
- const { renderPricingForPricingItem } = usePricingItem({
3703
- currency: toRef(props, "currency"),
3704
- billingPeriod: toRef(props, "billingPeriod")
3705
- });
3706
- const { isMobileViewport } = useViewport();
3707
- const groupPricingIds = computed(() => props.pricings.map((pricing) => pricing.id));
3708
- const singleModelValue = computed({
3709
- get: () => {
3710
- return model.value.find((id) => groupPricingIds.value.includes(id)) ?? void 0;
3711
- },
3712
- set: (value) => {
3713
- const filteredPricingIds = model.value.filter((id) => !groupPricingIds.value.includes(id));
3714
- model.value = value ? [...filteredPricingIds, value] : filteredPricingIds;
3715
- }
3716
- });
3717
- const options = computed(() => {
3718
- return props.pricings.map((pricing) => {
3719
- var _a;
3720
- const pricingItem = (_a = pricing.items) == null ? void 0 : _a[0];
3721
- return {
3722
- label: getNameFromPricing(pricing) ?? "",
3723
- value: pricing.id,
3724
- description: pricingItem ? renderPricingForPricingItem({ pricingItem }) : $t({
3725
- defaultMessage: "Unsupported pricing",
3726
- id: "pricing_item_pricing.unsupported_pricing_error",
3727
- description: "Text displayed when the pricing item pricing is unsupported"
3728
- })
3729
- };
3730
- });
3731
- });
3732
- const getRadioGroupOptions = () => {
3733
- return options.value.slice(0, SHOW_RADIO_GROUP_MAX_OPTIONS);
3734
- };
3735
- const getSelectOptions = () => {
3736
- return options.value.map(({ value, label, description: subLabel }) => ({
3737
- label,
3738
- subLabel,
3739
- value
3740
- }));
3741
- };
3742
- return (_ctx, _cache) => {
3743
- return openBlock(), createBlock(unref(_sfc_main$q), { "no-spacing": "" }, {
3744
- default: withCtx(() => [
3745
- createElementVNode("div", _hoisted_1$3, [
3746
- createVNode(_sfc_main$7, null, {
3747
- title: withCtx(() => [
3748
- createTextVNode(toDisplayString(__props.groupName), 1)
3749
- ]),
3750
- _: 1
3751
- }),
3752
- createElementVNode("div", _hoisted_2$2, [
3753
- options.value.length <= SHOW_RADIO_GROUP_MAX_OPTIONS ? (openBlock(), createBlock(unref(_sfc_main$L), {
3754
- key: 0,
3755
- modelValue: singleModelValue.value,
3756
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => singleModelValue.value = $event),
3757
- options: getRadioGroupOptions(),
3758
- direction: unref(isMobileViewport) ? "column" : "row",
3759
- "show-radio": false
3760
- }, null, 8, ["modelValue", "options", "direction"])) : options.value.length <= SHOW_SELECT_MAX_OPTIONS ? (openBlock(), createBlock(unref(_sfc_main$E), {
3761
- key: 1,
3762
- "single-model-value": singleModelValue.value,
3763
- "onUpdate:singleModelValue": _cache[1] || (_cache[1] = ($event) => singleModelValue.value = $event),
3764
- options: getSelectOptions(),
3765
- size: "xl",
3766
- "show-sub-label-in-input": ""
3767
- }, null, 8, ["single-model-value", "options"])) : (openBlock(), createBlock(unref(_sfc_main$M), {
3768
- key: 2,
3769
- modelValue: singleModelValue.value,
3770
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => singleModelValue.value = $event),
3771
- options: options.value,
3772
- name: `pricing-group-range-input-${__props.groupName}`
3773
- }, null, 8, ["modelValue", "options", "name"]))
3774
- ])
3775
- ])
3776
- ]),
3777
- _: 1
3778
- });
3779
- };
3780
- }
3781
- });
3782
3507
  function getAllPricingsFromPricingPlanVersion(pricingPlanVersion) {
3783
3508
  var _a;
3784
3509
  const pricings = ((_a = pricingPlanVersion.pricing_categories) == null ? void 0 : _a.flatMap((category) => category.pricings ?? [])) ?? [];
@@ -3825,7 +3550,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3825
3550
  () => getPricingGroupsFromExtendedPricingPlanSubscription(props.subscription)
3826
3551
  );
3827
3552
  return (_ctx, _cache) => {
3828
- return openBlock(), createBlock(unref(_sfc_main$q), {
3553
+ return openBlock(), createBlock(unref(_sfc_main$o), {
3829
3554
  class: "sv-plan-customization",
3830
3555
  title: unref($t)({
3831
3556
  defaultMessage: "Customize plan",
@@ -3838,7 +3563,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3838
3563
  }, {
3839
3564
  default: withCtx(() => [
3840
3565
  createElementVNode("div", _hoisted_1$2, [
3841
- createVNode(_sfc_main$8, {
3566
+ createVNode(_sfc_main$6, {
3842
3567
  modelValue: seatsModel.value,
3843
3568
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => seatsModel.value = $event),
3844
3569
  class: "sv-plan-customization__seats",
@@ -3849,7 +3574,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3849
3574
  return openBlock(), createElementBlock(Fragment, {
3850
3575
  key: pricingGroup.id
3851
3576
  }, [
3852
- pricingGroup.product_type === "DEFAULT" && pricingGroup.selection_constraint === "EXACTLY_ONE" ? (openBlock(), createBlock(_sfc_main$4, {
3577
+ pricingGroup.product_type === "DEFAULT" && pricingGroup.selection_constraint === "EXACTLY_ONE" ? (openBlock(), createBlock(_sfc_main$J, {
3853
3578
  key: 0,
3854
3579
  modelValue: enabledPricingIdsModel.value,
3855
3580
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => enabledPricingIdsModel.value = $event),
@@ -3858,7 +3583,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3858
3583
  pricings: pricingGroup.pricings,
3859
3584
  "billing-period": __props.billingPeriod,
3860
3585
  currency: __props.currency
3861
- }, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : pricingGroup.product_type === "ADDON" && pricingGroup.selection_constraint === "AT_MOST_ONE" ? (openBlock(), createBlock(_sfc_main$6, {
3586
+ }, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : pricingGroup.product_type === "ADDON" && pricingGroup.selection_constraint === "AT_MOST_ONE" ? (openBlock(), createBlock(_sfc_main$5, {
3862
3587
  key: 1,
3863
3588
  modelValue: enabledPricingIdsModel.value,
3864
3589
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => enabledPricingIdsModel.value = $event),
@@ -3868,7 +3593,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3868
3593
  constraint: pricingGroup.selection_constraint,
3869
3594
  "billing-period": __props.billingPeriod,
3870
3595
  currency: __props.currency
3871
- }, null, 8, ["modelValue", "group-name", "pricings", "constraint", "billing-period", "currency"])) : pricingGroup.product_type === "ADDON" && pricingGroup.selection_constraint === "ANY" ? (openBlock(), createBlock(_sfc_main$5, {
3596
+ }, null, 8, ["modelValue", "group-name", "pricings", "constraint", "billing-period", "currency"])) : pricingGroup.product_type === "ADDON" && pricingGroup.selection_constraint === "ANY" ? (openBlock(), createBlock(_sfc_main$4, {
3872
3597
  key: 2,
3873
3598
  modelValue: enabledPricingIdsModel.value,
3874
3599
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => enabledPricingIdsModel.value = $event),
@@ -3880,7 +3605,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3880
3605
  }, null, 8, ["modelValue", "pricings", "group-name", "billing-period", "currency"])) : createCommentVNode("", true)
3881
3606
  ], 64);
3882
3607
  }), 128)),
3883
- createVNode(_sfc_main$5, {
3608
+ createVNode(_sfc_main$4, {
3884
3609
  modelValue: enabledPricingIdsModel.value,
3885
3610
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => enabledPricingIdsModel.value = $event),
3886
3611
  class: "sv-plan-customization__group",
@@ -3907,6 +3632,7 @@ const _hoisted_8 = {
3907
3632
  "aria-live": "polite"
3908
3633
  };
3909
3634
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3635
+ ...{ inheritAttrs: false },
3910
3636
  __name: "PromotionCodeSection",
3911
3637
  props: {
3912
3638
  promotionCode: { default: null, type: [String, null] }
@@ -4027,11 +3753,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4027
3753
  );
4028
3754
  return (_ctx, _cache) => {
4029
3755
  return openBlock(), createElementBlock(Fragment, null, [
4030
- !isApplied.value ? (openBlock(), createBlock(unref(_sfc_main$q), {
4031
- key: 0,
3756
+ !isApplied.value ? (openBlock(), createBlock(unref(_sfc_main$o), mergeProps({ key: 0 }, _ctx.$attrs, {
4032
3757
  "no-spacing": "",
4033
3758
  class: "relative w-full"
4034
- }, {
3759
+ }), {
4035
3760
  default: withCtx(() => [
4036
3761
  createElementVNode("button", {
4037
3762
  ref_key: "toggleRef",
@@ -4045,8 +3770,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4045
3770
  }, [
4046
3771
  createElementVNode("div", _hoisted_2$1, [
4047
3772
  createElementVNode("div", _hoisted_3$1, [
4048
- createVNode(unref(_sfc_main$K), { icon: "local_activity" }),
4049
- createVNode(unref(_sfc_main$p), {
3773
+ createVNode(unref(_sfc_main$H), { icon: "local_activity" }),
3774
+ createVNode(unref(_sfc_main$n), {
4050
3775
  id: labelId,
4051
3776
  variant: "body-sm"
4052
3777
  }, {
@@ -4060,7 +3785,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4060
3785
  _: 1
4061
3786
  })
4062
3787
  ]),
4063
- createVNode(unref(_sfc_main$K), {
3788
+ createVNode(unref(_sfc_main$H), {
4064
3789
  icon: isExpanded.value ? "remove" : "add"
4065
3790
  }, null, 8, ["icon"])
4066
3791
  ])
@@ -4074,7 +3799,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4074
3799
  class: "flex w-full flex-row items-center gap-2 overflow-hidden border-t px-3 py-2",
4075
3800
  onKeydown: withKeys(withModifiers(collapseExpanded, ["prevent"]), ["esc"])
4076
3801
  }, [
4077
- createVNode(unref(_sfc_main$r), {
3802
+ createVNode(unref(_sfc_main$p), {
4078
3803
  modelValue: inputValue.value,
4079
3804
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
4080
3805
  placeholder: unref($t)({
@@ -4090,7 +3815,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4090
3815
  class: "w-full",
4091
3816
  onKeydown: withKeys(withModifiers(applyCode, ["prevent"]), ["enter"])
4092
3817
  }, null, 8, ["modelValue", "placeholder", "aria-label", "onKeydown"]),
4093
- createVNode(unref(_sfc_main$t), {
3818
+ createVNode(unref(_sfc_main$r), {
4094
3819
  type: "button",
4095
3820
  disabled: !canApply.value,
4096
3821
  "aria-label": applyAriaLabel.value,
@@ -4111,13 +3836,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4111
3836
  ])
4112
3837
  ]),
4113
3838
  _: 1
4114
- })) : (openBlock(), createBlock(unref(_sfc_main$q), {
4115
- key: 1,
3839
+ }, 16)) : (openBlock(), createBlock(unref(_sfc_main$o), mergeProps({ key: 1 }, _ctx.$attrs, {
4116
3840
  "no-border": "",
4117
3841
  "no-spacing": "",
4118
3842
  "content-background": "none",
4119
3843
  class: "relative w-full"
4120
- }, {
3844
+ }), {
4121
3845
  default: withCtx(() => [
4122
3846
  createElementVNode("button", {
4123
3847
  type: "button",
@@ -4127,8 +3851,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4127
3851
  }, [
4128
3852
  createElementVNode("div", _hoisted_6$1, [
4129
3853
  createElementVNode("div", _hoisted_7, [
4130
- createVNode(unref(_sfc_main$K), { icon: "local_activity" }),
4131
- createVNode(unref(_sfc_main$p), {
3854
+ createVNode(unref(_sfc_main$H), { icon: "local_activity" }),
3855
+ createVNode(unref(_sfc_main$n), {
4132
3856
  variant: "body-sm",
4133
3857
  class: "font-semibold"
4134
3858
  }, {
@@ -4138,12 +3862,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4138
3862
  _: 1
4139
3863
  })
4140
3864
  ]),
4141
- createVNode(unref(_sfc_main$K), { icon: "close" })
3865
+ createVNode(unref(_sfc_main$H), { icon: "close" })
4142
3866
  ])
4143
3867
  ], 8, _hoisted_5$1)
4144
3868
  ]),
4145
3869
  _: 1
4146
- })),
3870
+ }, 16)),
4147
3871
  createElementVNode("span", _hoisted_8, toDisplayString(statusMessage.value), 1)
4148
3872
  ], 64);
4149
3873
  };
@@ -4171,9 +3895,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4171
3895
  },
4172
3896
  emits: ["error", "ready"],
4173
3897
  setup(__props, { emit: __emit }) {
4174
- var _a, _b, _c, _d, _e, _f, _g, _h;
3898
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
4175
3899
  const PaymentIntegrationForm = defineAsyncComponent(
4176
- () => import("../../PaymentIntegrationForm-CypW6fZY.mjs")
3900
+ () => import("../../PaymentIntegrationForm-BK2aLPCo.mjs")
4177
3901
  );
4178
3902
  const props = __props;
4179
3903
  const emit = __emit;
@@ -4362,11 +4086,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4362
4086
  );
4363
4087
  });
4364
4088
  const expressPaymentMethodBillingInformation = computed(() => {
4365
- var _a2, _b2, _c2, _d2, _e2, _f2;
4089
+ var _a2;
4366
4090
  if (!invoicePreview.value) {
4367
4091
  return void 0;
4368
4092
  }
4369
- const subscriptionName = ((_a2 = subscription.value) == null ? void 0 : _a2.name) ?? ((_e2 = (_d2 = (_c2 = (_b2 = subscription.value) == null ? void 0 : _b2.pricing_plan_schedule_infos) == null ? void 0 : _c2.at(-1)) == null ? void 0 : _d2.pricing_plan_version.pricing_plan) == null ? void 0 : _e2.name) ?? "Subscription";
4093
+ const subscriptionName = getSubscriptionName({
4094
+ subscription: subscription.value,
4095
+ fallback: $t({
4096
+ defaultMessage: "Subscription",
4097
+ description: "The fallback name for when no subscription name can be determined",
4098
+ id: "customer_overview.subscriptions_block.fallback_subscription_name"
4099
+ })
4100
+ });
4370
4101
  return {
4371
4102
  description: subscriptionName,
4372
4103
  managementURL: "https://www.solvimon.com/account/billing",
@@ -4387,7 +4118,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4387
4118
  label: subscriptionName,
4388
4119
  amount: invoicePreview.value.tax_summary.total_amount,
4389
4120
  startDate: subscriptionStartDate.value ? new Date(subscriptionStartDate.value) : void 0,
4390
- interval: ((_f2 = subscription.value) == null ? void 0 : _f2.billing_period) ?? { type: "MONTH", value: 1 }
4121
+ interval: ((_a2 = subscription.value) == null ? void 0 : _a2.billing_period) ?? { type: "MONTH", value: 1 }
4391
4122
  }
4392
4123
  };
4393
4124
  });
@@ -4463,6 +4194,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4463
4194
  promotionCode.value = null;
4464
4195
  }
4465
4196
  });
4197
+ useAutoApplyPromotionCode({
4198
+ subscription,
4199
+ promotionCode: (_i = props.configuration) == null ? void 0 : _i.couponCode,
4200
+ appliedPromotionCode: promotionCode,
4201
+ applyPromotionCode
4202
+ });
4466
4203
  const handleRedirect = () => {
4467
4204
  if (!successRedirectUrl) return;
4468
4205
  safeUrlRedirect(successRedirectUrl);
@@ -4494,7 +4231,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4494
4231
  emit("ready");
4495
4232
  });
4496
4233
  return (_ctx, _cache) => {
4497
- return criticalError.value ? (openBlock(), createBlock(_sfc_main$k, {
4234
+ return criticalError.value ? (openBlock(), createBlock(_sfc_main$i, {
4498
4235
  key: 0,
4499
4236
  class: "sv-checkout sv-root sv-screen sv-checkout--error"
4500
4237
  })) : (openBlock(), createBlock(unref(ContentWithAsideLayout), {
@@ -4503,11 +4240,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4503
4240
  }, {
4504
4241
  header: withCtx(() => [
4505
4242
  createElementVNode("div", _hoisted_1, [
4506
- createVNode(_sfc_main$H, { class: "min-h-[52px] w-96" }, {
4243
+ createVNode(_sfc_main$E, { class: "min-h-[52px] w-96" }, {
4507
4244
  default: withCtx(() => {
4508
4245
  var _a2, _b2, _c2;
4509
4246
  return [
4510
- unref(invoicePreview) && unref(subscription) && subscriptionStartDate.value ? (openBlock(), createBlock(_sfc_main$l, {
4247
+ unref(invoicePreview) && unref(subscription) && subscriptionStartDate.value ? (openBlock(), createBlock(_sfc_main$j, {
4511
4248
  key: 0,
4512
4249
  class: "sv-checkout__title",
4513
4250
  "trial-start-date": trialStartDate.value,
@@ -4527,7 +4264,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4527
4264
  content: withCtx(() => {
4528
4265
  var _a2, _b2, _c2;
4529
4266
  return [
4530
- unref(subscription) && unref(isMobileViewport) ? (openBlock(), createBlock(_sfc_main$h, {
4267
+ unref(subscription) && unref(isMobileViewport) ? (openBlock(), createBlock(_sfc_main$f, {
4531
4268
  key: 0,
4532
4269
  class: "sv-checkout__mobile-order-summary",
4533
4270
  subscription: unref(subscription),
@@ -4557,7 +4294,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4557
4294
  "billing-period": unref(subscription).billing_period,
4558
4295
  currency: activePricingCurrency.value
4559
4296
  }, null, 8, ["seats-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "billing-period", "currency"])) : createCommentVNode("", true),
4560
- !unref(isPaid) && unref(checkoutForm).form.value.country && unref(amount) && expressPaymentMethodBillingInformation.value ? (openBlock(), createBlock(_sfc_main$c, {
4297
+ !unref(isPaid) && unref(checkoutForm).form.value.country && unref(amount) && expressPaymentMethodBillingInformation.value ? (openBlock(), createBlock(_sfc_main$a, {
4561
4298
  key: 2,
4562
4299
  class: "sv-checkout__express-payment-methods",
4563
4300
  amount: unref(amount),
@@ -4568,12 +4305,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4568
4305
  "on-billing-information-change": unref(updateInvoicePreviewOnBillingInformationChange),
4569
4306
  onUpdateBillingInformation: handleUpdateBillingInformation
4570
4307
  }, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change"])) : createCommentVNode("", true),
4571
- unref(isPaid) ? (openBlock(), createBlock(_sfc_main$j, {
4308
+ unref(isPaid) ? (openBlock(), createBlock(_sfc_main$h, {
4572
4309
  key: 3,
4573
4310
  class: "sv-checkout__completed-payment",
4574
4311
  onContinueToMerchant: handleRedirect
4575
4312
  })) : createCommentVNode("", true),
4576
- !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$m, {
4313
+ !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$k, {
4577
4314
  key: 4,
4578
4315
  modelValue: unref(checkoutForm).form.value,
4579
4316
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(checkoutForm).form.value = $event),
@@ -4586,13 +4323,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4586
4323
  "read-only": unref(isPaid)
4587
4324
  }, null, 8, ["modelValue", "validation", "read-only-email", "show-customer-info-on-top", "is-billing-information-mandatory", "get-is-field-required", "read-only"])) : createCommentVNode("", true),
4588
4325
  !unref(isPaid) ? (openBlock(), createElementBlock("div", _hoisted_2, [
4589
- createVNode(_sfc_main$H, {
4326
+ createVNode(_sfc_main$E, {
4590
4327
  variant: "section",
4591
4328
  class: "min-h-[130px]"
4592
4329
  }, {
4593
4330
  default: withCtx(() => [
4594
4331
  !unref(isPaymentMethodsPending) || unref(isPaymentMethodsPending) && unref(paymentMethodOptions).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3, [
4595
- createVNode(unref(_sfc_main$p), {
4332
+ createVNode(unref(_sfc_main$n), {
4596
4333
  variant: "heading-3",
4597
4334
  tag: "h2",
4598
4335
  class: "sv-checkout__payment-methods-title mb-2"
@@ -4606,7 +4343,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4606
4343
  ]),
4607
4344
  _: 1
4608
4345
  }),
4609
- !unref(checkoutForm).form.value.country ? (openBlock(), createBlock(_sfc_main$P, {
4346
+ !unref(checkoutForm).form.value.country ? (openBlock(), createBlock(_sfc_main$M, {
4610
4347
  key: 0,
4611
4348
  class: "sv-checkout__payment-methods-empty",
4612
4349
  icon: "captive_portal"
@@ -4626,7 +4363,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4626
4363
  })), 1)
4627
4364
  ]),
4628
4365
  _: 1
4629
- })) : unref(paymentMethodOptions).length === 0 ? (openBlock(), createBlock(_sfc_main$P, {
4366
+ })) : unref(paymentMethodOptions).length === 0 ? (openBlock(), createBlock(_sfc_main$M, {
4630
4367
  key: 1,
4631
4368
  class: "sv-checkout__payment-methods-empty",
4632
4369
  icon: "credit_card_off"
@@ -4676,14 +4413,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4676
4413
  }),
4677
4414
  aside: withCtx(() => [
4678
4415
  createElementVNode("div", _hoisted_5, [
4679
- createVNode(_sfc_main$H, {
4416
+ createVNode(_sfc_main$E, {
4680
4417
  variant: "section",
4681
4418
  class: "min-h-[220px]"
4682
4419
  }, {
4683
4420
  default: withCtx(() => {
4684
4421
  var _a2;
4685
4422
  return [
4686
- unref(subscription) && unref(invoicePreview) ? (openBlock(), createBlock(_sfc_main$h, {
4423
+ unref(subscription) && unref(invoicePreview) ? (openBlock(), createBlock(_sfc_main$f, {
4687
4424
  key: 0,
4688
4425
  subscription: unref(subscription),
4689
4426
  invoice: unref(invoicePreview),
@@ -4711,18 +4448,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4711
4448
  onRemove: unref(removePromotionCode),
4712
4449
  onApply: unref(applyPromotionCode)
4713
4450
  }, null, 8, ["promotion-code", "onRemove", "onApply"])) : createCommentVNode("", true),
4714
- unref(promotionCodeErrorMessage) ? (openBlock(), createBlock(unref(_sfc_main$N), {
4451
+ unref(promotionCodeErrorMessage) ? (openBlock(), createBlock(unref(_sfc_main$K), {
4715
4452
  key: 1,
4716
4453
  class: "sv-checkout__promotion-error mt-2",
4717
4454
  title: unref(promotionCodeErrorMessage)
4718
4455
  }, null, 8, ["title"])) : createCommentVNode("", true),
4719
4456
  createElementVNode("div", _hoisted_6, [
4720
- !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$H, {
4457
+ !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$E, {
4721
4458
  key: 0,
4722
4459
  class: "sv-checkout__submit-skeleton min-h-[44px]"
4723
4460
  }, {
4724
4461
  default: withCtx(() => [
4725
- unref(invoicePreview) ? (openBlock(), createBlock(unref(_sfc_main$t), {
4462
+ unref(invoicePreview) ? (openBlock(), createBlock(unref(_sfc_main$r), {
4726
4463
  key: 0,
4727
4464
  type: "button",
4728
4465
  size: "lg",
@@ -4747,7 +4484,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4747
4484
  ]),
4748
4485
  _: 1
4749
4486
  })) : createCommentVNode("", true),
4750
- createVNode(_sfc_main$O, { "payment-method-options": unref(paymentMethodOptions) }, null, 8, ["payment-method-options"])
4487
+ createVNode(_sfc_main$L, { "payment-method-options": unref(paymentMethodOptions) }, null, 8, ["payment-method-options"])
4751
4488
  ])
4752
4489
  ]),
4753
4490
  _: 1
@@ -4776,7 +4513,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4776
4513
  },
4777
4514
  emits: ["error", "ready"],
4778
4515
  setup(__props, { emit: __emit }) {
4779
- var _a, _b;
4516
+ var _a, _b, _c;
4780
4517
  const props = __props;
4781
4518
  const emit = __emit;
4782
4519
  const logger = useLogger();
@@ -4802,16 +4539,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4802
4539
  };
4803
4540
  const validCountryCode = getValidCountryCode((_a = props.configuration) == null ? void 0 : _a.countryCode);
4804
4541
  const validEmail = getValidEmail((_b = props.configuration) == null ? void 0 : _b.email);
4542
+ const couponCode = ((_c = props.configuration) == null ? void 0 : _c.couponCode) ?? getQueryParam("coupon_code") ?? void 0;
4805
4543
  return (_ctx, _cache) => {
4806
- var _a2, _b2, _c, _d;
4807
- return openBlock(), createBlock(_sfc_main$Q, {
4544
+ var _a2, _b2, _c2, _d;
4545
+ return openBlock(), createBlock(_sfc_main$N, {
4808
4546
  "custom-element-name": unref(COMPONENT_NAME),
4809
4547
  environment: __props.environment,
4810
4548
  locale: __props.locale,
4811
4549
  "portal-object": __props.portalObject,
4812
4550
  "allowed-portal-types": ["INIT_PRICING_PLAN_SUBSCRIPTION"],
4813
4551
  "primary-color": (_b2 = (_a2 = __props.branding) == null ? void 0 : _a2.colors) == null ? void 0 : _b2.primary,
4814
- "secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
4552
+ "secondary-color": (_d = (_c2 = __props.branding) == null ? void 0 : _c2.colors) == null ? void 0 : _d.secondary,
4815
4553
  "experimental-features": __props.experimentalFeatures,
4816
4554
  "log-level": __props.logLevel,
4817
4555
  "on-log": __props.onLog,
@@ -4819,14 +4557,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4819
4557
  onError: _cache[1] || (_cache[1] = (error) => _ctx.$emit("error", error))
4820
4558
  }, {
4821
4559
  default: withCtx(() => {
4822
- var _a3, _b3, _c2;
4560
+ var _a3, _b3, _c3;
4823
4561
  return [
4824
4562
  createVNode(_sfc_main$1, {
4825
4563
  configuration: {
4826
4564
  avatar: (_b3 = (_a3 = __props.branding) == null ? void 0 : _a3.emblem) == null ? void 0 : _b3.public_url,
4827
4565
  email: unref(validEmail),
4828
4566
  countryCode: unref(validCountryCode),
4829
- enabledPricingIds: (_c2 = __props.configuration) == null ? void 0 : _c2.enabledPricingIds
4567
+ enabledPricingIds: (_c3 = __props.configuration) == null ? void 0 : _c3.enabledPricingIds,
4568
+ couponCode: unref(couponCode)
4830
4569
  },
4831
4570
  onReady: _cache[0] || (_cache[0] = ($event) => emit("ready"))
4832
4571
  }, createSlots({ _: 2 }, [