@solvimon/solvimon-web 0.1.0-alpha.13 → 0.1.0-alpha.15

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 (135) hide show
  1. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CX8vlY2Z.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-ugPPvTKf.mjs} +2 -2
  2. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DGisvmez.js → BillingInformation.vue_vue_type_script_setup_true_lang-xuCWAVgf.js} +1 -1
  3. package/dist/ContentWithAsideLayout-DHpnJfGA.js +1 -0
  4. package/dist/{ContentWithAsideLayout-DhfUkZZg.mjs → ContentWithAsideLayout-Dy9xgxuF.mjs} +6 -3
  5. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BpN9nSMC.js +1 -0
  6. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bus-5gC3.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-D_PE2UbX.mjs} +8 -23
  7. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DU6X3zxr.js +1 -0
  8. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Bc2hkpTb.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-ryvFEQMV.mjs} +1 -1
  9. package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-DdpPrYxi.js +1 -0
  10. package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-bAiAbtMi.mjs +27 -0
  11. package/dist/{PaymentHistoryBlock-BiiFJkpT.js → PaymentHistoryBlock-BGbTy4Se.js} +1 -1
  12. package/dist/{PaymentHistoryBlock-D_B099M7.mjs → PaymentHistoryBlock-BKMttUyk.mjs} +1 -1
  13. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CixdxEGm.js +1 -0
  14. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CaMDtHrL.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-tM7f_fQS.mjs} +1 -1
  15. package/dist/{PaymentIntegrationForm-CkXYj9xs.mjs → PaymentIntegrationForm-BGxjGJGz.mjs} +1 -1
  16. package/dist/{PaymentIntegrationForm-bfGmfwQT.js → PaymentIntegrationForm-liOVNKEG.js} +1 -1
  17. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BxdcIX-Z.js +1 -0
  18. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BnMmcoAu.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-aP-gCq7V.mjs} +736 -162
  19. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DfdaWRO0.js +1 -0
  20. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-h-JUw1DV.mjs +145 -0
  21. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-DxndhDxR.js +1 -0
  22. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-j5VNsyu7.mjs +139 -0
  23. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVoS3ZXS.js +1 -0
  24. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cqk-vonA.mjs +170 -0
  25. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BkzLj8n2.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-Cv6lz35J.mjs} +48 -23
  26. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D6hHXndB.js +1 -0
  27. package/dist/component-B53Df2Rt.js +1 -0
  28. package/dist/component-BSnccqm1.mjs +933 -0
  29. package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
  30. package/dist/components/BillingInformation/BillingInformation.es.js +4 -4
  31. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
  32. package/dist/components/BillingInformationForm/BillingInformationForm.es.js +3 -3
  33. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
  34. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +4 -4
  35. package/dist/components/Invoice/Invoice.cjs.js +1 -1
  36. package/dist/components/Invoice/Invoice.es.js +14 -13
  37. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
  38. package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -3
  39. package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +3 -0
  40. package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +1 -0
  41. package/dist/components/InvoiceHeader/InvoiceHeader.es.js +123 -0
  42. package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
  43. package/dist/components/InvoicesList/InvoicesList.es.js +3 -3
  44. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
  45. package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -3
  46. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
  47. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +11 -110
  48. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
  49. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +5 -5
  50. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
  51. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +5 -5
  52. package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
  53. package/dist/components/WalletBalances/WalletBalances.es.js +3 -3
  54. package/dist/core/action-request.types.d.ts +10 -1
  55. package/dist/core/index.cjs.js +1 -1
  56. package/dist/core/index.es.js +1 -1
  57. package/dist/core/types.d.ts +4 -0
  58. package/dist/{customer-hDxW1Dbp.js → customer-B5b2tLhw.js} +1 -1
  59. package/dist/{customer-B31QzznT.mjs → customer-CANPEYH9.mjs} +1 -1
  60. package/dist/en-US-C0gIE4Q1.js +1 -0
  61. package/dist/{en-US-N3CUCsVy.mjs → en-US-DAgOSlgv.mjs} +33 -18
  62. package/dist/index.cjs.js +1 -1
  63. package/dist/index.es.js +1 -1
  64. package/dist/invoices-BCmE_nnb.js +1 -0
  65. package/dist/{invoices-DIYPN2j_.mjs → invoices-DBv0qkgm.mjs} +22 -3
  66. package/dist/nl-NL-Br7muSHK.js +1 -0
  67. package/dist/{nl-NL-B8U9b85I.mjs → nl-NL-DCsmrA8A.mjs} +33 -14
  68. package/dist/{paymentMethods-67b3UlTZ.mjs → paymentMethods-D-5FNN8W.mjs} +11 -3
  69. package/dist/paymentMethods-u5y9B5ng.js +1 -0
  70. package/dist/{payments-Dq6R37Fz.mjs → payments-BK8yzqJ5.mjs} +1 -1
  71. package/dist/{payments-DkHhTHto.js → payments-BTTtcfyI.js} +1 -1
  72. package/dist/{registry-Df_26rJy.mjs → registry-CMo7X2FD.mjs} +9 -3
  73. package/dist/registry-Cx7p19-6.js +1 -0
  74. package/dist/screens/Checkout/Checkout.cjs.js +1 -1
  75. package/dist/screens/Checkout/Checkout.es.js +330 -414
  76. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
  77. package/dist/screens/CustomerOverview/CustomerOverview.es.js +13 -13
  78. package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -1
  79. package/dist/screens/PayInvoice/PayInvoice.es.js +45 -34
  80. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +3 -0
  81. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +1 -0
  82. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.es.js +231 -0
  83. package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
  84. package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +756 -720
  85. package/dist/solvimon-web.css +1 -1
  86. package/dist/{subscriptions-jelITJcX.js → subscriptions-AMC4DirD.js} +1 -1
  87. package/dist/{subscriptions-ClGIr_aS.mjs → subscriptions-DHjXDyH1.mjs} +2 -2
  88. package/dist/{adyen-Bwewy3HC.mjs → url-1Lbg5Yni.mjs} +35 -35
  89. package/dist/url-B6-3PkW2.js +1 -0
  90. package/dist/{useActionDispatchProvider-rw9kWeE0.js → useActionDispatchProvider-CizNgRwv.js} +1 -1
  91. package/dist/{useActionDispatchProvider-BC57-Ufn.mjs → useActionDispatchProvider-DmhD9mYX.mjs} +1 -1
  92. package/dist/{useCustomer-Ba9WRtuT.mjs → useCustomer-DCPq7eHM.mjs} +2 -2
  93. package/dist/{useCustomer-CUcaeQn_.js → useCustomer-DYc54GVD.js} +1 -1
  94. package/dist/useIncrementalLoading-CuSndpP2.js +1 -0
  95. package/dist/{useIncrementalLoading-Cnzh2mAz.mjs → useIncrementalLoading-DmOT2MXH.mjs} +4 -4
  96. package/dist/{useInvoiceData-lIMEwwMy.js → useInvoiceData-BajCyf-x.js} +1 -1
  97. package/dist/{useInvoiceData-D7YN2SAd.mjs → useInvoiceData-BgtUKbHY.mjs} +2 -2
  98. package/dist/{useInvoicesList-CFzAxyae.mjs → useInvoicesList-DRD5yix0.mjs} +4 -4
  99. package/dist/useInvoicesList-wnvjyB_H.js +1 -0
  100. package/dist/{useLoadInitialData-DjwRHcAH.js → useLoadInitialData-BObRB7Vo.js} +1 -1
  101. package/dist/{useLoadInitialData-5sgImpzc.mjs → useLoadInitialData-IlbmC6p0.mjs} +1 -1
  102. package/dist/{usePaymentMethodOptions-DYO6xr3-.js → usePaymentMethodOptions-CzqsebhN.js} +1 -1
  103. package/dist/{usePaymentMethodOptions-C2k4npCQ.mjs → usePaymentMethodOptions-DRkWBjv6.mjs} +2 -2
  104. package/dist/{usePaymentMethods-CRWbH48K.mjs → usePaymentMethods-DFkRNreh.mjs} +2 -2
  105. package/dist/{usePaymentMethods-ryN_YohI.js → usePaymentMethods-ZPxKg5Y3.js} +1 -1
  106. package/dist/{usePayments-DWXPGFvp.js → usePayments-DwiGafZj.js} +1 -1
  107. package/dist/{usePayments-Cw5PPEJa.mjs → usePayments-E_Jsqo98.mjs} +3 -3
  108. package/dist/{usePortal-CxX4nrE4.js → usePortal-CxTS2TQh.js} +1 -1
  109. package/dist/{usePortal-cmE08vYs.mjs → usePortal-DcOz9FEL.mjs} +1 -1
  110. package/dist/{useService-Bb9r_sOQ.js → useService-CHrkefKd.js} +1 -1
  111. package/dist/{useService-BsSEI8DZ.mjs → useService-DF57xuDd.mjs} +1 -1
  112. package/dist/{useWalletBalanceItems-CpZ1NWPr.js → useWalletBalanceItems-BQEXDCBg.js} +1 -1
  113. package/dist/{useWalletBalanceItems-CkDqmk36.mjs → useWalletBalanceItems-MlHgedWR.mjs} +3 -3
  114. package/dist/{vendor-ui-C0K3osvz.mjs → vendor-ui-B8IlviSs.mjs} +6482 -5866
  115. package/dist/vendor-ui-C3Tq-qY_.js +1 -0
  116. package/package.json +5 -4
  117. package/dist/ContentWithAsideLayout-B5B8Kwaw.js +0 -1
  118. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CkRsyMlJ.js +0 -1
  119. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0vVUHuY.js +0 -1
  120. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DWTEfLrE.js +0 -1
  121. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CiyyUp4z.js +0 -1
  122. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-BChVMzCj.mjs +0 -50
  123. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-Br3bEUlP.js +0 -1
  124. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-AHw3iTfi.js +0 -1
  125. package/dist/adyen-R6aSZ0Yf.js +0 -1
  126. package/dist/component-BOqPDAVk.js +0 -1
  127. package/dist/component-Djrf1L-Z.mjs +0 -889
  128. package/dist/en-US-CgPY97Vq.js +0 -1
  129. package/dist/invoices-DzkA1jDc.js +0 -1
  130. package/dist/nl-NL-qMRaTRrM.js +0 -1
  131. package/dist/paymentMethods-C_sdTkSF.js +0 -1
  132. package/dist/registry-BkViv4tv.js +0 -1
  133. package/dist/useIncrementalLoading-DoTTXM2Y.js +0 -1
  134. package/dist/useInvoicesList-CaBCGs4h.js +0 -1
  135. package/dist/vendor-ui-5pJF5KBP.js +0 -1
@@ -1,21 +1,21 @@
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, withDirectives, withKeys, vShow, defineAsyncComponent } from "vue";
2
- import { U as taxId, k as isEqual, V as convertDateRangeToTimePeriod, H as useValidation, J as objectDiff, W as isEmpty, u as useIntl, X as _sfc_main$q, _ as _sfc_main$r, Y as isEUCountry, Z as isValidCountryCode, $ as getCountryNameByCode, b as _sfc_main$s, M as _sfc_main$t, N as _sfc_main$u, e as _sfc_main$v, a0 as _sfc_main$w, O as _sfc_main$x, a1 as _sfc_main$y, a2 as _sfc_main$z, a3 as _sfc_main$A, a4 as TooltipContent, a5 as _sfc_main$B, a6 as formatBillingPeriod, x as formatAmount, a7 as _sfc_main$D, a8 as useTimePeriod, f as _sfc_main$E, a9 as _sfc_main$G, aa as _sfc_main$H, ab as _sfc_main$I, l as _sfc_main$J, D as _sfc_main$L, ac as _sfc_main$M, ad as usePricingItem, ae as _sfc_main$N, af as _sfc_main$O, ag as uniqueId, B as _sfc_main$P } from "../../vendor-ui-C0K3osvz.mjs";
3
- import { a as useLogger, _ as _sfc_main$Q, d as defineCustomElement, g as getComponentName } from "../../component-Djrf1L-Z.mjs";
4
- import { c as createSubscriptionsService } from "../../subscriptions-ClGIr_aS.mjs";
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-BSnccqm1.mjs";
4
+ import { c as createSubscriptionsService } from "../../subscriptions-DHjXDyH1.mjs";
5
5
  import { A as ApiStatus } from "../../ApiStatus-CyNDp_op.mjs";
6
- import { c as createInvoicesService } from "../../invoices-DIYPN2j_.mjs";
6
+ import { c as createInvoicesService } from "../../invoices-DBv0qkgm.mjs";
7
7
  import { a as requiredIf, r as required, e as email } from "../../index-CzL1ZcGi.mjs";
8
8
  import { u as useWatchDebounced } from "../../useWatchDebounced-Zmxd6InB.mjs";
9
- import { c as createPaymentMethodsService } from "../../paymentMethods-67b3UlTZ.mjs";
10
- import { u as useService } from "../../useService-BsSEI8DZ.mjs";
11
- import { u as usePortal } from "../../usePortal-cmE08vYs.mjs";
12
- import { c as createCustomerService } from "../../customer-B31QzznT.mjs";
13
- import { _ as _sfc_main$C, e as getAdyenExpressCheckoutConfiguration, c as transformObjectToAdyenObject, d as createReturnUrl, s as safeUrlRedirect } from "../../adyen-Bwewy3HC.mjs";
14
- import { _ as _sfc_main$F } from "../../PricingGroupContent.vue_vue_type_script_setup_true_lang-BChVMzCj.mjs";
9
+ import { c as createPaymentMethodsService } from "../../paymentMethods-D-5FNN8W.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-DcOz9FEL.mjs";
13
+ import { c as createCustomerService } from "../../customer-CANPEYH9.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";
15
15
  import { u as useViewport } from "../../useViewport-Bu0cyeSi.mjs";
16
- import { _ as _sfc_main$K } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
17
- import { c as createPaymentsService } from "../../payments-Dq6R37Fz.mjs";
18
- import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-DhfUkZZg.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-BK8yzqJ5.mjs";
18
+ import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
19
19
  function getFirstPricingPlanScheduleOfType({
20
20
  pricingPlanScheduleInfos,
21
21
  type
@@ -802,6 +802,7 @@ function isSubscriptionWithAddonProducts(subscription) {
802
802
  return pricings.some((pricing) => pricing.product_type === "ADDON") || pricingGroups.some((pricingGroup) => pricingGroup.object_type === "ADDON");
803
803
  }
804
804
  const DEFAULT_TAX_IDENTIFIER_TYPE = "GENERIC_TAX_ID";
805
+ const REDIRECT_FORM_STATE_KEY = "solvimon_checkout_redirect_state";
805
806
  function useCheckoutView({
806
807
  initialCountry,
807
808
  initialEmail,
@@ -999,19 +1000,46 @@ function useCheckoutView({
999
1000
  if (!subscription.value || !country || !amountValue) {
1000
1001
  return;
1001
1002
  }
1002
- void loadPaymentMethodOptions({
1003
+ loadPaymentMethodOptions({
1003
1004
  subscriptionId: subscription.value.id,
1004
1005
  country,
1005
1006
  amount: amountValue
1007
+ }).catch((err) => {
1008
+ console.log(err);
1006
1009
  });
1007
1010
  }
1008
1011
  );
1012
+ function saveFormStateForRedirect() {
1013
+ sessionStorage.setItem(REDIRECT_FORM_STATE_KEY, JSON.stringify(checkoutForm.form.value));
1014
+ }
1009
1015
  onMounted(async () => {
1016
+ const redirectStatus = getQueryParam("redirect_status");
1017
+ const hasPaymentAcceptorId = !!getQueryParam(PAYMENT_ACCEPTOR_ID_QUERY_STRING);
1018
+ const hasClientSecret = !!getQueryParam("payment_intent_client_secret") || !!getQueryParam("setup_intent_client_secret");
1019
+ const isSuccessfulRedirect = redirectStatus === "succeeded" && hasPaymentAcceptorId && hasClientSecret;
1020
+ if (isSuccessfulRedirect) {
1021
+ isPaid.value = true;
1022
+ }
1023
+ const raw = sessionStorage.getItem(REDIRECT_FORM_STATE_KEY);
1024
+ let savedFormState = null;
1025
+ if (raw) {
1026
+ try {
1027
+ savedFormState = JSON.parse(raw);
1028
+ } catch {
1029
+ }
1030
+ }
1031
+ if (savedFormState) {
1032
+ checkoutForm.updateInitialState(savedFormState);
1033
+ }
1010
1034
  await loadSubscription();
1011
1035
  try {
1012
1036
  await loadInvoicePreview();
1013
1037
  } catch {
1014
1038
  }
1039
+ if (savedFormState) {
1040
+ checkoutForm.updateInitialState(savedFormState);
1041
+ sessionStorage.removeItem(REDIRECT_FORM_STATE_KEY);
1042
+ }
1015
1043
  });
1016
1044
  watch(
1017
1045
  shouldLoadPaymentMethodOptions,
@@ -1041,7 +1069,8 @@ function useCheckoutView({
1041
1069
  checkoutForm,
1042
1070
  authorizationContext,
1043
1071
  isPaid,
1044
- amount
1072
+ amount,
1073
+ saveFormStateForRedirect
1045
1074
  };
1046
1075
  }
1047
1076
  function usePromotionCode({
@@ -1120,8 +1149,8 @@ function usePromotionCode({
1120
1149
  function isFieldError(error) {
1121
1150
  return typeof error === "object" && error !== null && "field" in error;
1122
1151
  }
1123
- const _hoisted_1$m = { class: "flex items-center gap-2" };
1124
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
1152
+ const _hoisted_1$k = { class: "flex items-center gap-2" };
1153
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1125
1154
  __name: "TaxIDCheckNotice",
1126
1155
  props: {
1127
1156
  taxIdValidationResult: { type: Object }
@@ -1144,13 +1173,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1144
1173
  });
1145
1174
  });
1146
1175
  return (_ctx, _cache) => {
1147
- return openBlock(), createBlock(unref(_sfc_main$q), {
1176
+ return openBlock(), createBlock(unref(_sfc_main$o), {
1148
1177
  type: isTaxIdValid.value ? "success" : "danger",
1149
1178
  icon: false
1150
1179
  }, {
1151
1180
  default: withCtx(() => [
1152
- createElementVNode("div", _hoisted_1$m, [
1153
- createVNode(unref(_sfc_main$r), { variant: "body-xs" }, {
1181
+ createElementVNode("div", _hoisted_1$k, [
1182
+ createVNode(unref(_sfc_main$p), { variant: "body-xs" }, {
1154
1183
  default: withCtx(() => [
1155
1184
  createTextVNode(toDisplayString(taxIdValidationMessage.value), 1)
1156
1185
  ]),
@@ -1215,16 +1244,16 @@ function useTaxIDValidationCheck(form) {
1215
1244
  isSelectedCountryEU
1216
1245
  };
1217
1246
  }
1218
- const _hoisted_1$l = { class: "grid grid-cols-1 gap-1" };
1219
- const _hoisted_2$d = { class: "grid grid-cols-1 gap-2" };
1220
- const _hoisted_3$7 = { key: 0 };
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 };
1221
1250
  const _hoisted_4$5 = { class: "mt-2 flex flex-col gap-3" };
1222
1251
  const _hoisted_5$4 = { class: "grid grid-cols-3 gap-2" };
1223
1252
  const _hoisted_6$2 = { class: "flex grow flex-col" };
1224
1253
  const _hoisted_7$1 = { key: 0 };
1225
1254
  const _hoisted_8$1 = { class: "mt-4 grid grid-cols-1 gap-3" };
1226
1255
  const FORM_ID = "checkout-form";
1227
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
1256
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1228
1257
  __name: "CheckoutForm",
1229
1258
  props: /* @__PURE__ */ mergeModels({
1230
1259
  validation: { type: null },
@@ -1277,8 +1306,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1277
1306
  id: FORM_ID,
1278
1307
  onSubmit: _cache[12] || (_cache[12] = withModifiers(($event) => _ctx.$emit("submit", model.value), ["prevent"]))
1279
1308
  }, [
1280
- createElementVNode("div", _hoisted_1$l, [
1281
- createVNode(unref(_sfc_main$s), {
1309
+ createElementVNode("div", _hoisted_1$j, [
1310
+ createVNode(unref(_sfc_main$q), {
1282
1311
  title: unref($t)({
1283
1312
  defaultMessage: "Customer information",
1284
1313
  id: "checkout.contact_information_block.title",
@@ -1286,9 +1315,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1286
1315
  })
1287
1316
  }, {
1288
1317
  default: withCtx(() => [
1289
- createElementVNode("div", _hoisted_2$d, [
1318
+ createElementVNode("div", _hoisted_2$c, [
1290
1319
  __props.readOnly ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1291
- createVNode(unref(_sfc_main$r), {
1320
+ createVNode(unref(_sfc_main$p), {
1292
1321
  variant: "body",
1293
1322
  tag: "span",
1294
1323
  weight: "semibold",
@@ -1299,7 +1328,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1299
1328
  ]),
1300
1329
  _: 1
1301
1330
  }),
1302
- createVNode(unref(_sfc_main$r), {
1331
+ createVNode(unref(_sfc_main$p), {
1303
1332
  variant: "body-sm",
1304
1333
  tag: "span",
1305
1334
  shade: "lighter",
@@ -1311,7 +1340,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1311
1340
  _: 1
1312
1341
  })
1313
1342
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1314
- createVNode(unref(_sfc_main$t), {
1343
+ createVNode(unref(_sfc_main$r), {
1315
1344
  modelValue: model.value.email,
1316
1345
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value.email = $event),
1317
1346
  required: "",
@@ -1330,7 +1359,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1330
1359
  }) + getOptionalSuffix("email"),
1331
1360
  error: __props.validation.value.email.$errors
1332
1361
  }, null, 8, ["modelValue", "disabled", "label", "placeholder", "error"]),
1333
- createVNode(unref(_sfc_main$u), {
1362
+ createVNode(unref(_sfc_main$s), {
1334
1363
  "single-model-value": country.value,
1335
1364
  "onUpdate:singleModelValue": _cache[3] || (_cache[3] = ($event) => country.value = $event),
1336
1365
  required: "",
@@ -1343,7 +1372,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1343
1372
  error: __props.validation.value.country.$errors
1344
1373
  }, {
1345
1374
  "label-suffix": withCtx(() => [
1346
- !showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$v), {
1375
+ !showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$t), {
1347
1376
  key: 0,
1348
1377
  size: "xs",
1349
1378
  variant: "ghost",
@@ -1360,7 +1389,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1360
1389
  ]),
1361
1390
  _: 1
1362
1391
  })) : createCommentVNode("", true),
1363
- showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$v), {
1392
+ showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$t), {
1364
1393
  key: 1,
1365
1394
  size: "sm",
1366
1395
  variant: "ghost",
@@ -1382,11 +1411,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1382
1411
  }, 8, ["single-model-value", "label", "error"])
1383
1412
  ], 64))
1384
1413
  ]),
1385
- createVNode(unref(_sfc_main$w), null, {
1414
+ createVNode(unref(_sfc_main$u), {
1415
+ "is-open": showBillingDetails.value || !!__props.isBillingInformationMandatory
1416
+ }, {
1386
1417
  default: withCtx(() => [
1387
- showBillingDetails.value || __props.isBillingInformationMandatory ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
1418
+ showBillingDetails.value || __props.isBillingInformationMandatory ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
1388
1419
  createElementVNode("div", _hoisted_4$5, [
1389
- createVNode(unref(_sfc_main$t), {
1420
+ createVNode(unref(_sfc_main$r), {
1390
1421
  modelValue: model.value.addressLine1,
1391
1422
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => model.value.addressLine1 = $event),
1392
1423
  name: "address_line_1",
@@ -1403,7 +1434,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1403
1434
  required: "",
1404
1435
  error: __props.validation.value.addressLine1.$errors
1405
1436
  }, null, 8, ["modelValue", "label", "placeholder", "error"]),
1406
- createVNode(unref(_sfc_main$t), {
1437
+ createVNode(unref(_sfc_main$r), {
1407
1438
  modelValue: model.value.addressLine2,
1408
1439
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => model.value.addressLine2 = $event),
1409
1440
  name: "address_line_2",
@@ -1414,7 +1445,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1414
1445
  }) + getOptionalSuffix("addressLine2")
1415
1446
  }, null, 8, ["modelValue", "placeholder"]),
1416
1447
  createElementVNode("div", _hoisted_5$4, [
1417
- createVNode(unref(_sfc_main$t), {
1448
+ createVNode(unref(_sfc_main$r), {
1418
1449
  modelValue: model.value.postalCode,
1419
1450
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => model.value.postalCode = $event),
1420
1451
  name: "postal_code",
@@ -1425,7 +1456,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1425
1456
  }) + getOptionalSuffix("postalCode"),
1426
1457
  error: __props.validation.value.addressLine1.$errors
1427
1458
  }, null, 8, ["modelValue", "placeholder", "error"]),
1428
- createVNode(unref(_sfc_main$t), {
1459
+ createVNode(unref(_sfc_main$r), {
1429
1460
  modelValue: model.value.city,
1430
1461
  "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => model.value.city = $event),
1431
1462
  name: "city",
@@ -1435,7 +1466,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1435
1466
  description: "City of the customer address in the checkout form"
1436
1467
  }) + getOptionalSuffix("city")
1437
1468
  }, null, 8, ["modelValue", "placeholder"]),
1438
- createVNode(unref(_sfc_main$t), {
1469
+ createVNode(unref(_sfc_main$r), {
1439
1470
  modelValue: model.value.state,
1440
1471
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => model.value.state = $event),
1441
1472
  name: "state",
@@ -1451,13 +1482,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1451
1482
  ])) : createCommentVNode("", true)
1452
1483
  ]),
1453
1484
  _: 1
1454
- })
1485
+ }, 8, ["is-open"])
1455
1486
  ]),
1456
1487
  _: 1
1457
1488
  }, 8, ["title"]),
1458
- !__props.readOnly ? (openBlock(), createBlock(unref(_sfc_main$s), { key: 0 }, {
1489
+ !__props.readOnly ? (openBlock(), createBlock(unref(_sfc_main$q), { key: 0 }, {
1459
1490
  default: withCtx(() => [
1460
- createVNode(unref(_sfc_main$x), {
1491
+ createVNode(unref(_sfc_main$v), {
1461
1492
  modelValue: companyPurchaseModel.value,
1462
1493
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => companyPurchaseModel.value = $event),
1463
1494
  "no-spacing": "",
@@ -1466,7 +1497,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1466
1497
  }, {
1467
1498
  "inline-label": withCtx(() => [
1468
1499
  createElementVNode("div", _hoisted_6$2, [
1469
- createVNode(unref(_sfc_main$r), { tag: "span" }, {
1500
+ createVNode(unref(_sfc_main$p), { tag: "span" }, {
1470
1501
  default: withCtx(() => [
1471
1502
  createTextVNode(toDisplayString(unref($t)({
1472
1503
  defaultMessage: "Company purchase",
@@ -1476,7 +1507,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1476
1507
  ]),
1477
1508
  _: 1
1478
1509
  }),
1479
- createVNode(unref(_sfc_main$r), {
1510
+ createVNode(unref(_sfc_main$p), {
1480
1511
  tag: "span",
1481
1512
  variant: "body-xs",
1482
1513
  shade: "lighter"
@@ -1494,11 +1525,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1494
1525
  ]),
1495
1526
  _: 1
1496
1527
  }, 8, ["modelValue"]),
1497
- createVNode(unref(_sfc_main$w), null, {
1528
+ createVNode(unref(_sfc_main$u), { "is-open": isCompanyPurchase.value }, {
1498
1529
  default: withCtx(() => [
1499
1530
  isCompanyPurchase.value ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
1500
1531
  createElementVNode("div", _hoisted_8$1, [
1501
- createVNode(unref(_sfc_main$t), {
1532
+ createVNode(unref(_sfc_main$r), {
1502
1533
  modelValue: model.value.companyLegalName,
1503
1534
  "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => model.value.companyLegalName = $event),
1504
1535
  required: "",
@@ -1514,7 +1545,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1514
1545
  description: "The legal name of the organization customer in the checkout form"
1515
1546
  })
1516
1547
  }, null, 8, ["modelValue", "label", "placeholder"]),
1517
- showVatIdInput.value ? (openBlock(), createBlock(unref(_sfc_main$t), {
1548
+ showVatIdInput.value ? (openBlock(), createBlock(unref(_sfc_main$r), {
1518
1549
  key: 0,
1519
1550
  modelValue: model.value.companyVatNumber,
1520
1551
  "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => model.value.companyVatNumber = $event),
@@ -1536,7 +1567,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1536
1567
  unref(isEUCountry)(model.value.country ?? "") ? {
1537
1568
  name: "suffix",
1538
1569
  fn: withCtx(() => [
1539
- createVNode(unref(_sfc_main$v), {
1570
+ createVNode(unref(_sfc_main$t), {
1540
1571
  type: "button",
1541
1572
  size: "sm",
1542
1573
  color: "green",
@@ -1560,13 +1591,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1560
1591
  key: 1,
1561
1592
  class: normalizeClass({ "opacity-75": unref(isTaxIDCheckPending) })
1562
1593
  }, [
1563
- createVNode(_sfc_main$p, { "tax-id-validation-result": unref(taxIdValidationData) }, null, 8, ["tax-id-validation-result"])
1594
+ createVNode(_sfc_main$n, { "tax-id-validation-result": unref(taxIdValidationData) }, null, 8, ["tax-id-validation-result"])
1564
1595
  ], 2)) : createCommentVNode("", true)
1565
1596
  ])
1566
1597
  ])) : createCommentVNode("", true)
1567
1598
  ]),
1568
1599
  _: 1
1569
- })
1600
+ }, 8, ["is-open"])
1570
1601
  ]),
1571
1602
  _: 1
1572
1603
  })) : createCommentVNode("", true)
@@ -1575,13 +1606,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1575
1606
  };
1576
1607
  }
1577
1608
  });
1578
- const _hoisted_1$k = {
1609
+ const _hoisted_1$i = {
1579
1610
  key: 0,
1580
1611
  class: "flex items-center"
1581
1612
  };
1582
- const _hoisted_2$c = ["innerHTML"];
1583
- const _hoisted_3$6 = ["innerHTML"];
1584
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
1613
+ const _hoisted_2$b = ["innerHTML"];
1614
+ const _hoisted_3$5 = ["innerHTML"];
1615
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1585
1616
  __name: "CheckoutTitle",
1586
1617
  props: {
1587
1618
  trialPeriod: { type: Object },
@@ -1597,7 +1628,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1597
1628
  return (_ctx, _cache) => {
1598
1629
  return openBlock(), createElementBlock("div", null, [
1599
1630
  createElementVNode("div", null, [
1600
- createVNode(unref(_sfc_main$r), {
1631
+ createVNode(unref(_sfc_main$p), {
1601
1632
  variant: "heading-1",
1602
1633
  class: "inline-block"
1603
1634
  }, {
@@ -1607,7 +1638,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1607
1638
  id: "checkout.page_title",
1608
1639
  description: "The title of the checkout page"
1609
1640
  })) + toDisplayString(" "), 1),
1610
- __props.trialPeriod ? (openBlock(), createBlock(unref(_sfc_main$y), {
1641
+ __props.trialPeriod ? (openBlock(), createBlock(unref(_sfc_main$w), {
1611
1642
  key: 0,
1612
1643
  "trial-period": __props.trialPeriod,
1613
1644
  size: "lg",
@@ -1617,18 +1648,18 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1617
1648
  _: 1
1618
1649
  })
1619
1650
  ]),
1620
- createVNode(unref(_sfc_main$r), {
1651
+ createVNode(unref(_sfc_main$p), {
1621
1652
  variant: "body-sm",
1622
1653
  shade: "lighter",
1623
1654
  "no-spacing": ""
1624
1655
  }, {
1625
1656
  default: withCtx(() => [
1626
- !__props.countryCode ? (openBlock(), createElementBlock("span", _hoisted_1$k, [
1627
- createVNode(unref(_sfc_main$z), { "is-dark-mode": "" }, {
1657
+ !__props.countryCode ? (openBlock(), createElementBlock("span", _hoisted_1$i, [
1658
+ createVNode(unref(_sfc_main$x), { "is-dark-mode": "" }, {
1628
1659
  tooltip: withCtx(() => [
1629
1660
  createVNode(unref(TooltipContent), null, {
1630
1661
  default: withCtx(() => [
1631
- createVNode(unref(_sfc_main$B), null, {
1662
+ createVNode(unref(_sfc_main$z), null, {
1632
1663
  default: withCtx(() => [
1633
1664
  createTextVNode(toDisplayString(unref($t)({
1634
1665
  defaultMessage: "Will be determined by billing information",
@@ -1643,7 +1674,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1643
1674
  })
1644
1675
  ]),
1645
1676
  default: withCtx(() => [
1646
- createVNode(unref(_sfc_main$A), {
1677
+ createVNode(unref(_sfc_main$y), {
1647
1678
  "width-class": "w-10",
1648
1679
  "height-class": "h-4",
1649
1680
  shade: "darker",
@@ -1680,7 +1711,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1680
1711
  })
1681
1712
  }
1682
1713
  )
1683
- }, null, 8, _hoisted_2$c)
1714
+ }, null, 8, _hoisted_2$b)
1684
1715
  ])) : (openBlock(), createElementBlock("span", {
1685
1716
  key: 1,
1686
1717
  innerHTML: __props.trialStartDate ? unref($t)(
@@ -1716,7 +1747,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1716
1747
  strong: (text) => `<strong>${text}</strong>`
1717
1748
  }
1718
1749
  )
1719
- }, null, 8, _hoisted_3$6))
1750
+ }, null, 8, _hoisted_3$5))
1720
1751
  ]),
1721
1752
  _: 1
1722
1753
  })
@@ -1739,9 +1770,9 @@ const isInvoiceUsageBased = (invoice) => {
1739
1770
  )
1740
1771
  )) ?? false;
1741
1772
  };
1742
- const _hoisted_1$j = { class: "flex w-full min-h-96 justify-center items-center" };
1743
- const _hoisted_2$b = { class: "max-w-sm" };
1744
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
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({
1745
1776
  __name: "CheckoutNotAvailable",
1746
1777
  setup(__props) {
1747
1778
  const { $t } = useIntl();
@@ -1749,9 +1780,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1749
1780
  window.location.reload();
1750
1781
  };
1751
1782
  return (_ctx, _cache) => {
1752
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
1753
- createElementVNode("div", _hoisted_2$b, [
1754
- createVNode(unref(_sfc_main$r), { variant: "heading-1" }, {
1783
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
1784
+ createElementVNode("div", _hoisted_2$a, [
1785
+ createVNode(unref(_sfc_main$p), { variant: "heading-1" }, {
1755
1786
  default: withCtx(() => [
1756
1787
  createTextVNode(toDisplayString(unref($t)({
1757
1788
  defaultMessage: "Checkout not available",
@@ -1761,7 +1792,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1761
1792
  ]),
1762
1793
  _: 1
1763
1794
  }),
1764
- createVNode(unref(_sfc_main$r), {
1795
+ createVNode(unref(_sfc_main$p), {
1765
1796
  variant: "body-sm",
1766
1797
  shade: "lighter"
1767
1798
  }, {
@@ -1793,13 +1824,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1793
1824
  };
1794
1825
  }
1795
1826
  });
1796
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
1827
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1797
1828
  __name: "SubscriptionPaymentCompletedCard",
1798
1829
  emits: ["continue-to-merchant"],
1799
1830
  setup(__props) {
1800
1831
  const { $t } = useIntl();
1801
1832
  return (_ctx, _cache) => {
1802
- return openBlock(), createBlock(_sfc_main$C, {
1833
+ return openBlock(), createBlock(_sfc_main$A, {
1803
1834
  status: "success",
1804
1835
  title: unref($t)({
1805
1836
  defaultMessage: "Payment successful",
@@ -1808,7 +1839,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1808
1839
  })
1809
1840
  }, {
1810
1841
  default: withCtx(() => [
1811
- createVNode(unref(_sfc_main$r), {
1842
+ createVNode(unref(_sfc_main$p), {
1812
1843
  variant: "body-xs",
1813
1844
  shade: "lighter",
1814
1845
  tag: "span"
@@ -1821,22 +1852,6 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1821
1852
  })), 1)
1822
1853
  ]),
1823
1854
  _: 1
1824
- }),
1825
- createVNode(unref(_sfc_main$v), {
1826
- color: "gray",
1827
- variant: "outline",
1828
- size: "xs",
1829
- class: "align-center",
1830
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("continue-to-merchant"))
1831
- }, {
1832
- default: withCtx(() => [
1833
- createTextVNode(toDisplayString(unref($t)({
1834
- defaultMessage: "Continue to merchant",
1835
- id: "subscription_payment_completed_card.continue",
1836
- description: "The text for the continue button"
1837
- })), 1)
1838
- ]),
1839
- _: 1
1840
1855
  })
1841
1856
  ]),
1842
1857
  _: 1
@@ -1844,9 +1859,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1844
1859
  };
1845
1860
  }
1846
1861
  });
1847
- const _hoisted_1$i = { class: "flex flex-row gap-3 px-3 py-2" };
1848
- const _hoisted_2$a = { class: "grow" };
1849
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
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({
1850
1865
  __name: "SubscriptionSummary",
1851
1866
  props: {
1852
1867
  subscription: { type: Object },
@@ -1893,15 +1908,15 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1893
1908
  return names;
1894
1909
  });
1895
1910
  return (_ctx, _cache) => {
1896
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
1897
- __props.avatar ? (openBlock(), createBlock(unref(_sfc_main$D), {
1911
+ return openBlock(), createElementBlock("div", _hoisted_1$g, [
1912
+ __props.avatar ? (openBlock(), createBlock(unref(_sfc_main$B), {
1898
1913
  key: 0,
1899
1914
  "image-src": __props.avatar,
1900
1915
  size: "lg",
1901
1916
  class: "my-1"
1902
1917
  }, null, 8, ["image-src"])) : createCommentVNode("", true),
1903
- createElementVNode("div", _hoisted_2$a, [
1904
- createVNode(unref(_sfc_main$r), {
1918
+ createElementVNode("div", _hoisted_2$9, [
1919
+ createVNode(unref(_sfc_main$p), {
1905
1920
  variant: "body",
1906
1921
  weight: "semibold",
1907
1922
  "no-spacing": ""
@@ -1911,7 +1926,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1911
1926
  ]),
1912
1927
  _: 1
1913
1928
  }),
1914
- selectedPricings.value ? (openBlock(), createBlock(unref(_sfc_main$r), {
1929
+ selectedPricings.value ? (openBlock(), createBlock(unref(_sfc_main$p), {
1915
1930
  key: 0,
1916
1931
  variant: "body-xs",
1917
1932
  shade: "lighter",
@@ -1922,7 +1937,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1922
1937
  ]),
1923
1938
  _: 1
1924
1939
  })) : createCommentVNode("", true),
1925
- description.value ? (openBlock(), createBlock(unref(_sfc_main$r), {
1940
+ description.value ? (openBlock(), createBlock(unref(_sfc_main$p), {
1926
1941
  key: 1,
1927
1942
  variant: "body-xs",
1928
1943
  shade: "lighter",
@@ -1941,15 +1956,15 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1941
1956
  };
1942
1957
  }
1943
1958
  });
1944
- const _hoisted_1$h = { class: "sv-order-summary__body grid grid-cols-1 gap-1" };
1945
- const _hoisted_2$9 = { class: "px-3 py-2" };
1946
- const _hoisted_3$5 = { class: "sv-order-summary__billing-period flex flex-col gap-3" };
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" };
1961
+ const _hoisted_3$4 = { class: "sv-order-summary__billing-period flex flex-col gap-3" };
1947
1962
  const _hoisted_4$4 = { class: "px-3 py-2" };
1948
1963
  const _hoisted_5$3 = {
1949
1964
  key: 3,
1950
1965
  class: "sv-order-summary__items"
1951
1966
  };
1952
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
1967
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1953
1968
  __name: "OrderSummary",
1954
1969
  props: {
1955
1970
  subscription: { type: Object },
@@ -2112,15 +2127,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2112
2127
  const registerPeriodsFromPricing = (pricing) => {
2113
2128
  var _a2;
2114
2129
  (_a2 = pricing == null ? void 0 : pricing.items) == null ? void 0 : _a2.forEach((item) => {
2115
- var _a3, _b2, _c2;
2116
- (_a3 = item.configs) == null ? void 0 : _a3.forEach((config) => registerPeriod(config.billing_period));
2117
- (_b2 = item.billing_period_configs) == null ? void 0 : _b2.forEach(
2130
+ var _a3, _b2;
2131
+ (_a3 = item.billing_period_configs) == null ? void 0 : _a3.forEach(
2118
2132
  (periodConfig) => registerPeriod(periodConfig.billing_period)
2119
2133
  );
2120
- (_c2 = item.pricing_currency_configs) == null ? void 0 : _c2.forEach((currencyConfig) => {
2121
- var _a4, _b3;
2122
- (_a4 = currencyConfig.configs) == null ? void 0 : _a4.forEach((config) => registerPeriod(config.billing_period));
2123
- (_b3 = currencyConfig.billing_period_configs) == null ? void 0 : _b3.forEach(
2134
+ (_b2 = item.pricing_currency_configs) == null ? void 0 : _b2.forEach((currencyConfig) => {
2135
+ var _a4;
2136
+ (_a4 = currencyConfig.billing_period_configs) == null ? void 0 : _a4.forEach(
2124
2137
  (periodConfig) => registerPeriod(periodConfig.billing_period)
2125
2138
  );
2126
2139
  });
@@ -2171,7 +2184,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2171
2184
  label,
2172
2185
  subLabel: getSelectedPeriodAmountLabel(period),
2173
2186
  labelSuffixComponent: saveText ? {
2174
- component: _sfc_main$E,
2187
+ component: _sfc_main$C,
2175
2188
  props: {
2176
2189
  color: "primary",
2177
2190
  content: saveText,
@@ -2230,7 +2243,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2230
2243
  selectedBillingPeriodKey.value = checked ? biggestPeriod : smallestPeriod;
2231
2244
  };
2232
2245
  return (_ctx, _cache) => {
2233
- return openBlock(), createBlock(unref(_sfc_main$s), {
2246
+ return openBlock(), createBlock(unref(_sfc_main$q), {
2234
2247
  class: "sv-order-summary",
2235
2248
  "no-border": "",
2236
2249
  "no-spacing": "",
@@ -2242,13 +2255,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2242
2255
  })
2243
2256
  }, {
2244
2257
  default: withCtx(() => [
2245
- createElementVNode("div", _hoisted_1$h, [
2246
- createVNode(unref(_sfc_main$s), {
2258
+ createElementVNode("div", _hoisted_1$f, [
2259
+ createVNode(unref(_sfc_main$q), {
2247
2260
  "no-spacing": "",
2248
2261
  class: "sv-order-summary__subscription"
2249
2262
  }, {
2250
2263
  default: withCtx(() => [
2251
- __props.subscription ? (openBlock(), createBlock(_sfc_main$k, {
2264
+ __props.subscription ? (openBlock(), createBlock(_sfc_main$i, {
2252
2265
  key: 0,
2253
2266
  avatar: __props.avatar,
2254
2267
  invoice: __props.invoice,
@@ -2260,7 +2273,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2260
2273
  ]),
2261
2274
  _: 1
2262
2275
  }),
2263
- billingPeriodOptions.value.length === 2 ? (openBlock(), createBlock(unref(_sfc_main$s), {
2276
+ billingPeriodOptions.value.length === 2 ? (openBlock(), createBlock(unref(_sfc_main$q), {
2264
2277
  key: 0,
2265
2278
  "no-spacing": "",
2266
2279
  "content-classes": selectedBillingPeriodKey.value === periodBounds.value.biggestPeriod ? "border-primary-500" : void 0
@@ -2268,15 +2281,15 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2268
2281
  default: withCtx(() => {
2269
2282
  var _a;
2270
2283
  return [
2271
- createElementVNode("div", _hoisted_2$9, [
2272
- createElementVNode("div", _hoisted_3$5, [
2273
- highOption.value ? (openBlock(), createBlock(_sfc_main$F, {
2284
+ createElementVNode("div", _hoisted_2$8, [
2285
+ createElementVNode("div", _hoisted_3$4, [
2286
+ highOption.value ? (openBlock(), createBlock(_sfc_main$D, {
2274
2287
  key: 0,
2275
2288
  name: highOption.value.label,
2276
2289
  description: ((_a = selectedBillingPeriodOption.value) == null ? void 0 : _a.subLabel) ?? ""
2277
2290
  }, createSlots({
2278
2291
  default: withCtx(() => [
2279
- createVNode(unref(_sfc_main$x), {
2292
+ createVNode(unref(_sfc_main$v), {
2280
2293
  "model-value": selectedBillingPeriodKey.value === periodBounds.value.biggestPeriod,
2281
2294
  "onUpdate:modelValue": handleBinaryBillingToggle
2282
2295
  }, null, 8, ["model-value"])
@@ -2286,7 +2299,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2286
2299
  toggleSaveText.value ? {
2287
2300
  name: "badge",
2288
2301
  fn: withCtx(() => [
2289
- createVNode(unref(_sfc_main$E), {
2302
+ createVNode(unref(_sfc_main$C), {
2290
2303
  color: "primary",
2291
2304
  content: toggleSaveText.value,
2292
2305
  size: saveBadgeSize.value,
@@ -2301,7 +2314,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2301
2314
  ];
2302
2315
  }),
2303
2316
  _: 1
2304
- }, 8, ["content-classes"])) : billingPeriodOptions.value.length > 2 ? (openBlock(), createBlock(unref(_sfc_main$G), {
2317
+ }, 8, ["content-classes"])) : billingPeriodOptions.value.length > 2 ? (openBlock(), createBlock(unref(_sfc_main$E), {
2305
2318
  key: 1,
2306
2319
  "single-model-value": selectedBillingPeriodKey.value,
2307
2320
  "onUpdate:singleModelValue": _cache[0] || (_cache[0] = ($event) => selectedBillingPeriodKey.value = $event),
@@ -2312,14 +2325,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2312
2325
  "show-sub-label-in-input": "",
2313
2326
  "show-suffix-in-closed-input": ""
2314
2327
  }, null, 8, ["single-model-value", "options"])) : createCommentVNode("", true),
2315
- __props.isUsageBased ? (openBlock(), createBlock(unref(_sfc_main$s), {
2328
+ __props.isUsageBased ? (openBlock(), createBlock(unref(_sfc_main$q), {
2316
2329
  key: 2,
2317
2330
  "no-spacing": "",
2318
2331
  class: "sv-order-summary__usage"
2319
2332
  }, {
2320
2333
  default: withCtx(() => [
2321
2334
  createElementVNode("div", _hoisted_4$4, [
2322
- createVNode(unref(_sfc_main$r), {
2335
+ createVNode(unref(_sfc_main$p), {
2323
2336
  "no-spacing": "",
2324
2337
  variant: "body-sm",
2325
2338
  shade: "lighter"
@@ -2338,14 +2351,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2338
2351
  _: 1
2339
2352
  })) : createCommentVNode("", true),
2340
2353
  __props.invoice && __props.variant !== "products-inline" ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
2341
- createVNode(unref(_sfc_main$H), {
2354
+ createVNode(unref(_sfc_main$F), {
2342
2355
  invoice: __props.invoice,
2343
- "wrapper-component": unref(_sfc_main$s)
2356
+ "wrapper-component": unref(_sfc_main$q)
2344
2357
  }, null, 8, ["invoice", "wrapper-component"])
2345
2358
  ])) : createCommentVNode("", true),
2346
- createVNode(unref(_sfc_main$s), { class: "sv-order-summary__totals" }, {
2359
+ createVNode(unref(_sfc_main$q), { class: "sv-order-summary__totals" }, {
2347
2360
  default: withCtx(() => [
2348
- __props.invoice ? (openBlock(), createBlock(unref(_sfc_main$I), {
2361
+ __props.invoice ? (openBlock(), createBlock(unref(_sfc_main$G), {
2349
2362
  key: 0,
2350
2363
  class: "sv-order-summary__invoice-preview",
2351
2364
  variant: __props.variant === "products-inline" ? "default" : "without-products",
@@ -2355,7 +2368,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2355
2368
  collapsible: __props.collapsible,
2356
2369
  "is-preview-without-taxes": !__props.countryCode,
2357
2370
  "is-customer-facing": ""
2358
- }, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (openBlock(), createBlock(unref(_sfc_main$r), {
2371
+ }, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (openBlock(), createBlock(unref(_sfc_main$p), {
2359
2372
  key: 1,
2360
2373
  variant: "body-sm",
2361
2374
  shade: "lighter",
@@ -2380,67 +2393,19 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2380
2393
  };
2381
2394
  }
2382
2395
  });
2383
- const _hoisted_1$g = { class: "sv-empty-state__body flex flex-col items-center justify-center py-4" };
2384
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
2385
- __name: "EmptyStatePlaceholder",
2386
- props: {
2387
- icon: { type: null }
2388
- },
2389
- setup(__props) {
2390
- return (_ctx, _cache) => {
2391
- return openBlock(), createBlock(unref(_sfc_main$s), { class: "sv-empty-state" }, {
2392
- default: withCtx(() => [
2393
- createElementVNode("div", _hoisted_1$g, [
2394
- createVNode(unref(_sfc_main$J), {
2395
- icon: __props.icon,
2396
- size: "lg",
2397
- class: "sv-empty-state__icon text-gray-500"
2398
- }, null, 8, ["icon"]),
2399
- createVNode(unref(_sfc_main$r), {
2400
- center: "",
2401
- tag: "span",
2402
- variant: "body-sm",
2403
- weight: "semibold",
2404
- shade: "lighter",
2405
- class: "sv-empty-state__title mt-2"
2406
- }, {
2407
- default: withCtx(() => [
2408
- renderSlot(_ctx.$slots, "title")
2409
- ]),
2410
- _: 3
2411
- }),
2412
- createVNode(unref(_sfc_main$r), {
2413
- center: "",
2414
- tag: "span",
2415
- variant: "body-xs",
2416
- shade: "lightest",
2417
- class: "sv-empty-state__message mt-1"
2418
- }, {
2419
- default: withCtx(() => [
2420
- renderSlot(_ctx.$slots, "message")
2421
- ]),
2422
- _: 3
2423
- })
2424
- ])
2425
- ]),
2426
- _: 3
2427
- });
2428
- };
2429
- }
2430
- });
2431
- const _hoisted_1$f = {
2396
+ const _hoisted_1$e = {
2432
2397
  key: 0,
2433
2398
  id: "svg-logo",
2434
2399
  viewBox: "0 0 35 15",
2435
2400
  class: "h-[44px]"
2436
2401
  };
2437
- const _hoisted_2$8 = {
2402
+ const _hoisted_2$7 = {
2438
2403
  key: 1,
2439
2404
  src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAxcHgiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxMDEgMzIiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaW5ZTWluIG1lZXQiIHhtbG5zPSJodHRwOiYjeDJGOyYjeDJGO3d3dy53My5vcmcmI3gyRjsyMDAwJiN4MkY7c3ZnIj48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDEyLjIzNyAyLjggTCA0LjQzNyAyLjggQyAzLjkzNyAyLjggMy40MzcgMy4yIDMuMzM3IDMuNyBMIDAuMjM3IDIzLjcgQyAwLjEzNyAyNC4xIDAuNDM3IDI0LjQgMC44MzcgMjQuNCBMIDQuNTM3IDI0LjQgQyA1LjAzNyAyNC40IDUuNTM3IDI0IDUuNjM3IDIzLjUgTCA2LjQzNyAxOC4xIEMgNi41MzcgMTcuNiA2LjkzNyAxNy4yIDcuNTM3IDE3LjIgTCAxMC4wMzcgMTcuMiBDIDE1LjEzNyAxNy4yIDE4LjEzNyAxNC43IDE4LjkzNyA5LjggQyAxOS4yMzcgNy43IDE4LjkzNyA2IDE3LjkzNyA0LjggQyAxNi44MzcgMy41IDE0LjgzNyAyLjggMTIuMjM3IDIuOCBaIE0gMTMuMTM3IDEwLjEgQyAxMi43MzcgMTIuOSAxMC41MzcgMTIuOSA4LjUzNyAxMi45IEwgNy4zMzcgMTIuOSBMIDguMTM3IDcuNyBDIDguMTM3IDcuNCA4LjQzNyA3LjIgOC43MzcgNy4yIEwgOS4yMzcgNy4yIEMgMTAuNjM3IDcuMiAxMS45MzcgNy4yIDEyLjYzNyA4IEMgMTMuMTM3IDguNCAxMy4zMzcgOS4xIDEzLjEzNyAxMC4xIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDM1LjQzNyAxMCBMIDMxLjczNyAxMCBDIDMxLjQzNyAxMCAzMS4xMzcgMTAuMiAzMS4xMzcgMTAuNSBMIDMwLjkzNyAxMS41IEwgMzAuNjM3IDExLjEgQyAyOS44MzcgOS45IDI4LjAzNyA5LjUgMjYuMjM3IDkuNSBDIDIyLjEzNyA5LjUgMTguNjM3IDEyLjYgMTcuOTM3IDE3IEMgMTcuNTM3IDE5LjIgMTguMDM3IDIxLjMgMTkuMzM3IDIyLjcgQyAyMC40MzcgMjQgMjIuMTM3IDI0LjYgMjQuMDM3IDI0LjYgQyAyNy4zMzcgMjQuNiAyOS4yMzcgMjIuNSAyOS4yMzcgMjIuNSBMIDI5LjAzNyAyMy41IEMgMjguOTM3IDIzLjkgMjkuMjM3IDI0LjMgMjkuNjM3IDI0LjMgTCAzMy4wMzcgMjQuMyBDIDMzLjUzNyAyNC4zIDM0LjAzNyAyMy45IDM0LjEzNyAyMy40IEwgMzYuMTM3IDEwLjYgQyAzNi4yMzcgMTAuNCAzNS44MzcgMTAgMzUuNDM3IDEwIFogTSAzMC4zMzcgMTcuMiBDIDI5LjkzNyAxOS4zIDI4LjMzNyAyMC44IDI2LjEzNyAyMC44IEMgMjUuMDM3IDIwLjggMjQuMjM3IDIwLjUgMjMuNjM3IDE5LjggQyAyMy4wMzcgMTkuMSAyMi44MzcgMTguMiAyMy4wMzcgMTcuMiBDIDIzLjMzNyAxNS4xIDI1LjEzNyAxMy42IDI3LjIzNyAxMy42IEMgMjguMzM3IDEzLjYgMjkuMTM3IDE0IDI5LjczNyAxNC42IEMgMzAuMjM3IDE1LjMgMzAuNDM3IDE2LjIgMzAuMzM3IDE3LjIgWiI+PC9wYXRoPjxwYXRoIGZpbGw9IiMwMDMwODciIGQ9Ik0gNTUuMzM3IDEwIEwgNTEuNjM3IDEwIEMgNTEuMjM3IDEwIDUwLjkzNyAxMC4yIDUwLjczNyAxMC41IEwgNDUuNTM3IDE4LjEgTCA0My4zMzcgMTAuOCBDIDQzLjIzNyAxMC4zIDQyLjczNyAxMCA0Mi4zMzcgMTAgTCAzOC42MzcgMTAgQyAzOC4yMzcgMTAgMzcuODM3IDEwLjQgMzguMDM3IDEwLjkgTCA0Mi4xMzcgMjMgTCAzOC4yMzcgMjguNCBDIDM3LjkzNyAyOC44IDM4LjIzNyAyOS40IDM4LjczNyAyOS40IEwgNDIuNDM3IDI5LjQgQyA0Mi44MzcgMjkuNCA0My4xMzcgMjkuMiA0My4zMzcgMjguOSBMIDU1LjgzNyAxMC45IEMgNTYuMTM3IDEwLjYgNTUuODM3IDEwIDU1LjMzNyAxMCBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA2Ny43MzcgMi44IEwgNTkuOTM3IDIuOCBDIDU5LjQzNyAyLjggNTguOTM3IDMuMiA1OC44MzcgMy43IEwgNTUuNzM3IDIzLjYgQyA1NS42MzcgMjQgNTUuOTM3IDI0LjMgNTYuMzM3IDI0LjMgTCA2MC4zMzcgMjQuMyBDIDYwLjczNyAyNC4zIDYxLjAzNyAyNCA2MS4wMzcgMjMuNyBMIDYxLjkzNyAxOCBDIDYyLjAzNyAxNy41IDYyLjQzNyAxNy4xIDYzLjAzNyAxNy4xIEwgNjUuNTM3IDE3LjEgQyA3MC42MzcgMTcuMSA3My42MzcgMTQuNiA3NC40MzcgOS43IEMgNzQuNzM3IDcuNiA3NC40MzcgNS45IDczLjQzNyA0LjcgQyA3Mi4yMzcgMy41IDcwLjMzNyAyLjggNjcuNzM3IDIuOCBaIE0gNjguNjM3IDEwLjEgQyA2OC4yMzcgMTIuOSA2Ni4wMzcgMTIuOSA2NC4wMzcgMTIuOSBMIDYyLjgzNyAxMi45IEwgNjMuNjM3IDcuNyBDIDYzLjYzNyA3LjQgNjMuOTM3IDcuMiA2NC4yMzcgNy4yIEwgNjQuNzM3IDcuMiBDIDY2LjEzNyA3LjIgNjcuNDM3IDcuMiA2OC4xMzcgOCBDIDY4LjYzNyA4LjQgNjguNzM3IDkuMSA2OC42MzcgMTAuMSBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA5MC45MzcgMTAgTCA4Ny4yMzcgMTAgQyA4Ni45MzcgMTAgODYuNjM3IDEwLjIgODYuNjM3IDEwLjUgTCA4Ni40MzcgMTEuNSBMIDg2LjEzNyAxMS4xIEMgODUuMzM3IDkuOSA4My41MzcgOS41IDgxLjczNyA5LjUgQyA3Ny42MzcgOS41IDc0LjEzNyAxMi42IDczLjQzNyAxNyBDIDczLjAzNyAxOS4yIDczLjUzNyAyMS4zIDc0LjgzNyAyMi43IEMgNzUuOTM3IDI0IDc3LjYzNyAyNC42IDc5LjUzNyAyNC42IEMgODIuODM3IDI0LjYgODQuNzM3IDIyLjUgODQuNzM3IDIyLjUgTCA4NC41MzcgMjMuNSBDIDg0LjQzNyAyMy45IDg0LjczNyAyNC4zIDg1LjEzNyAyNC4zIEwgODguNTM3IDI0LjMgQyA4OS4wMzcgMjQuMyA4OS41MzcgMjMuOSA4OS42MzcgMjMuNCBMIDkxLjYzNyAxMC42IEMgOTEuNjM3IDEwLjQgOTEuMzM3IDEwIDkwLjkzNyAxMCBaIE0gODUuNzM3IDE3LjIgQyA4NS4zMzcgMTkuMyA4My43MzcgMjAuOCA4MS41MzcgMjAuOCBDIDgwLjQzNyAyMC44IDc5LjYzNyAyMC41IDc5LjAzNyAxOS44IEMgNzguNDM3IDE5LjEgNzguMjM3IDE4LjIgNzguNDM3IDE3LjIgQyA3OC43MzcgMTUuMSA4MC41MzcgMTMuNiA4Mi42MzcgMTMuNiBDIDgzLjczNyAxMy42IDg0LjUzNyAxNCA4NS4xMzcgMTQuNiBDIDg1LjczNyAxNS4zIDg1LjkzNyAxNi4yIDg1LjczNyAxNy4yIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDA5Y2RlIiBkPSJNIDk1LjMzNyAzLjMgTCA5Mi4xMzcgMjMuNiBDIDkyLjAzNyAyNCA5Mi4zMzcgMjQuMyA5Mi43MzcgMjQuMyBMIDk1LjkzNyAyNC4zIEMgOTYuNDM3IDI0LjMgOTYuOTM3IDIzLjkgOTcuMDM3IDIzLjQgTCAxMDAuMjM3IDMuNSBDIDEwMC4zMzcgMy4xIDEwMC4wMzcgMi44IDk5LjYzNyAyLjggTCA5Ni4wMzcgMi44IEMgOTUuNjM3IDIuOCA5NS40MzcgMyA5NS4zMzcgMy4zIFoiPjwvcGF0aD48L3N2Zz4",
2440
2405
  role: "presentation",
2441
2406
  class: "h-[22px]"
2442
2407
  };
2443
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
2408
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2444
2409
  __name: "ExpressPaymentMethodButton",
2445
2410
  props: {
2446
2411
  type: { type: String }
@@ -2477,14 +2442,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2477
2442
  emit("click");
2478
2443
  }
2479
2444
  return (_ctx, _cache) => {
2480
- return openBlock(), createBlock(unref(_sfc_main$v), {
2445
+ return openBlock(), createBlock(unref(_sfc_main$t), {
2481
2446
  size: "lg",
2482
2447
  "aria-label": ariaLabel.value,
2483
2448
  class: normalizeClass([buttonClasses.value, "!block w-full h-11 bg-center bg-no-repeat"]),
2484
2449
  onClick: handleClick
2485
2450
  }, {
2486
2451
  default: withCtx(() => [
2487
- props.type === "applepay" ? (openBlock(), createElementBlock("svg", _hoisted_1$f, [..._cache[0] || (_cache[0] = [
2452
+ props.type === "applepay" ? (openBlock(), createElementBlock("svg", _hoisted_1$e, [..._cache[0] || (_cache[0] = [
2488
2453
  createElementVNode("svg", {
2489
2454
  id: "svg-logo",
2490
2455
  x: "0",
@@ -2512,16 +2477,16 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2512
2477
  ])
2513
2478
  ])
2514
2479
  ], -1)
2515
- ])])) : props.type === "paypal" ? (openBlock(), createElementBlock("img", _hoisted_2$8)) : createCommentVNode("", true)
2480
+ ])])) : props.type === "paypal" ? (openBlock(), createElementBlock("img", _hoisted_2$7)) : createCommentVNode("", true)
2516
2481
  ]),
2517
2482
  _: 1
2518
2483
  }, 8, ["aria-label", "class"]);
2519
2484
  };
2520
2485
  }
2521
2486
  });
2522
- const _hoisted_1$e = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" };
2487
+ const _hoisted_1$d = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" };
2523
2488
  const PAYMENT_GATEWAY_VARIANT_ADYEN = "ADYEN";
2524
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
2489
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2525
2490
  __name: "ExpressPaymentMethodApplePay",
2526
2491
  props: {
2527
2492
  onBillingInformationChange: { type: Function },
@@ -2756,12 +2721,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2756
2721
  });
2757
2722
  return (_ctx, _cache) => {
2758
2723
  return openBlock(), createElementBlock(Fragment, null, [
2759
- __props.isVisible ? (openBlock(), createBlock(_sfc_main$h, {
2724
+ __props.isVisible ? (openBlock(), createBlock(_sfc_main$g, {
2760
2725
  key: 0,
2761
2726
  type: "applepay",
2762
2727
  onClick: handleClick
2763
2728
  })) : createCommentVNode("", true),
2764
- createElementVNode("div", _hoisted_1$e, [
2729
+ createElementVNode("div", _hoisted_1$d, [
2765
2730
  createElementVNode("div", {
2766
2731
  ref_key: "applePayButtonRef",
2767
2732
  ref: applePayButtonRef
@@ -2771,8 +2736,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2771
2736
  };
2772
2737
  }
2773
2738
  });
2774
- const _hoisted_1$d = { class: "relative overflow-hidden" };
2775
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
2739
+ const _hoisted_1$c = { class: "relative overflow-hidden" };
2740
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
2776
2741
  __name: "ExpressPaymentMethodPaypal",
2777
2742
  props: {
2778
2743
  amount: { type: Object },
@@ -2831,8 +2796,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2831
2796
  void initPaypal();
2832
2797
  });
2833
2798
  return (_ctx, _cache) => {
2834
- return openBlock(), createElementBlock("div", _hoisted_1$d, [
2835
- __props.isVisible ? (openBlock(), createBlock(_sfc_main$h, {
2799
+ return openBlock(), createElementBlock("div", _hoisted_1$c, [
2800
+ __props.isVisible ? (openBlock(), createBlock(_sfc_main$g, {
2836
2801
  key: 0,
2837
2802
  type: "paypal",
2838
2803
  class: "w-full"
@@ -2846,8 +2811,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2846
2811
  };
2847
2812
  }
2848
2813
  });
2849
- const _hoisted_1$c = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" };
2850
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
2814
+ const _hoisted_1$b = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" };
2815
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
2851
2816
  __name: "ExpressPaymentMethodGooglePay",
2852
2817
  props: {
2853
2818
  amount: { type: Object },
@@ -2911,12 +2876,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
2911
2876
  });
2912
2877
  return (_ctx, _cache) => {
2913
2878
  return openBlock(), createElementBlock(Fragment, null, [
2914
- __props.isVisible ? (openBlock(), createBlock(_sfc_main$h, {
2879
+ __props.isVisible ? (openBlock(), createBlock(_sfc_main$g, {
2915
2880
  key: 0,
2916
2881
  type: "googlepay",
2917
2882
  onClick: handleClick
2918
2883
  })) : createCommentVNode("", true),
2919
- createElementVNode("div", _hoisted_1$c, [
2884
+ createElementVNode("div", _hoisted_1$b, [
2920
2885
  createElementVNode("div", {
2921
2886
  ref_key: "googlePayButtonRef",
2922
2887
  ref: googlePayButtonRef
@@ -2926,15 +2891,15 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
2926
2891
  };
2927
2892
  }
2928
2893
  });
2929
- const _hoisted_1$b = {
2894
+ const _hoisted_1$a = {
2930
2895
  key: 0,
2931
2896
  class: "mt-4n"
2932
2897
  };
2933
- const _hoisted_2$7 = { class: "mb-2" };
2934
- const _hoisted_3$4 = { class: "grid grid-cols-6 gap-1 md:gap-2" };
2935
- const _hoisted_4$3 = { class: "h-4 mt-4" };
2898
+ const _hoisted_2$6 = { class: "mb-2" };
2899
+ const _hoisted_3$3 = { class: "grid grid-cols-6 gap-1 md:gap-2" };
2900
+ const _hoisted_4$3 = { class: "mt-4 h-4" };
2936
2901
  const DEFAULT_EXPRESS_PAYMENT_BUTTON_COUNT = 2;
2937
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
2902
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2938
2903
  __name: "ExpressPaymentMethods",
2939
2904
  props: {
2940
2905
  amount: { type: Object },
@@ -2960,7 +2925,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
2960
2925
  return (_a = props.paymentMethodsOptionsResponse) == null ? void 0 : _a.find(
2961
2926
  (entry) => {
2962
2927
  var _a2;
2963
- return (_a2 = entry.options) == null ? void 0 : _a2.some((option) => option.name.toLowerCase() === "apple pay");
2928
+ return (_a2 = entry.options) == null ? void 0 : _a2.some(
2929
+ (option) => option.name.toLowerCase() === "apple pay" && option.payment_gateway_variant === "ADYEN"
2930
+ );
2964
2931
  }
2965
2932
  );
2966
2933
  });
@@ -2972,7 +2939,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
2972
2939
  return (_a = props.paymentMethodsOptionsResponse) == null ? void 0 : _a.find(
2973
2940
  (entry) => {
2974
2941
  var _a2;
2975
- return (_a2 = entry.options) == null ? void 0 : _a2.some((option) => option.name.toLowerCase() === "paypal");
2942
+ return (_a2 = entry.options) == null ? void 0 : _a2.some(
2943
+ (option) => option.name.toLowerCase() === "paypal" && option.payment_gateway_variant === "ADYEN"
2944
+ );
2976
2945
  }
2977
2946
  );
2978
2947
  });
@@ -2984,7 +2953,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
2984
2953
  return (_a = props.paymentMethodsOptionsResponse) == null ? void 0 : _a.find(
2985
2954
  (entry) => {
2986
2955
  var _a2;
2987
- return (_a2 = entry.options) == null ? void 0 : _a2.some((option) => option.name.toLowerCase() === "google pay");
2956
+ return (_a2 = entry.options) == null ? void 0 : _a2.some(
2957
+ (option) => option.name.toLowerCase() === "google pay" && option.payment_gateway_variant === "ADYEN"
2958
+ );
2988
2959
  }
2989
2960
  );
2990
2961
  });
@@ -3008,12 +2979,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3008
2979
  return (paymentMethodOptionsResponseEntryIncludingApplePay.value ? 1 : 0) + (paymentMethodOptionsResponseEntryIncludingGooglePay.value ? 1 : 0) + (paymentMethodOptionsResponseEntryIncludingPayPal.value ? 1 : 0);
3009
2980
  });
3010
2981
  return (_ctx, _cache) => {
3011
- return hasPaymentMethodOptions.value ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
3012
- createElementVNode("div", _hoisted_2$7, [
3013
- !isReady.value ? (openBlock(), createBlock(_sfc_main$K, {
2982
+ return hasPaymentMethodOptions.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
2983
+ createElementVNode("div", _hoisted_2$6, [
2984
+ !isReady.value ? (openBlock(), createBlock(_sfc_main$H, {
3014
2985
  key: 0,
3015
2986
  variant: "title"
3016
- })) : (openBlock(), createBlock(unref(_sfc_main$r), {
2987
+ })) : (openBlock(), createBlock(unref(_sfc_main$p), {
3017
2988
  key: 1,
3018
2989
  variant: "heading-3",
3019
2990
  tag: "h2"
@@ -3028,10 +2999,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3028
2999
  _: 1
3029
3000
  }))
3030
3001
  ]),
3031
- createElementVNode("div", _hoisted_3$4, [
3002
+ createElementVNode("div", _hoisted_3$3, [
3032
3003
  !isReady.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
3033
- createVNode(_sfc_main$K, { class: "h-11 col-span-3" }),
3034
- createVNode(_sfc_main$K, { class: "h-11 col-span-3" })
3004
+ createVNode(_sfc_main$H, { class: "col-span-3 h-11" }),
3005
+ createVNode(_sfc_main$H, { class: "col-span-3 h-11" })
3035
3006
  ], 64)) : createCommentVNode("", true),
3036
3007
  createElementVNode("div", {
3037
3008
  class: normalizeClass(["col-span-3 md:col-span-2", {
@@ -3041,7 +3012,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3041
3012
  "!col-span-6 md:!col-span-2": expressPaymentButtonCount.value === 3
3042
3013
  }])
3043
3014
  }, [
3044
- paymentMethodOptionsResponseEntryIncludingApplePay.value ? (openBlock(), createBlock(_sfc_main$g, {
3015
+ paymentMethodOptionsResponseEntryIncludingApplePay.value ? (openBlock(), createBlock(_sfc_main$f, {
3045
3016
  key: 0,
3046
3017
  amount: __props.amount,
3047
3018
  "billing-information": __props.billingInformation,
@@ -3061,7 +3032,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3061
3032
  "md:!col-span-3": expressPaymentButtonCount.value === 2
3062
3033
  }])
3063
3034
  }, [
3064
- paymentMethodOptionsResponseEntryIncludingGooglePay.value ? (openBlock(), createBlock(_sfc_main$e, {
3035
+ paymentMethodOptionsResponseEntryIncludingGooglePay.value ? (openBlock(), createBlock(_sfc_main$d, {
3065
3036
  key: 0,
3066
3037
  amount: __props.amount,
3067
3038
  "billing-information": __props.billingInformation,
@@ -3079,7 +3050,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3079
3050
  "md:!col-span-3": expressPaymentButtonCount.value === 2
3080
3051
  }])
3081
3052
  }, [
3082
- paymentMethodOptionsResponseEntryIncludingPayPal.value ? (openBlock(), createBlock(_sfc_main$f, {
3053
+ paymentMethodOptionsResponseEntryIncludingPayPal.value ? (openBlock(), createBlock(_sfc_main$e, {
3083
3054
  key: 0,
3084
3055
  amount: __props.amount,
3085
3056
  "billing-information": __props.billingInformation,
@@ -3092,10 +3063,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3092
3063
  ], 2)
3093
3064
  ]),
3094
3065
  createElementVNode("div", _hoisted_4$3, [
3095
- !isReady.value ? (openBlock(), createBlock(_sfc_main$K, {
3066
+ !isReady.value ? (openBlock(), createBlock(_sfc_main$H, {
3096
3067
  key: 0,
3097
3068
  variant: "divider-text"
3098
- })) : (openBlock(), createBlock(unref(_sfc_main$L), {
3069
+ })) : (openBlock(), createBlock(unref(_sfc_main$I), {
3099
3070
  key: 1,
3100
3071
  text: unref($t)({
3101
3072
  defaultMessage: "Or",
@@ -3109,8 +3080,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3109
3080
  };
3110
3081
  }
3111
3082
  });
3112
- const _hoisted_1$a = { class: "grid grid-cols-2 gap-2" };
3113
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
3083
+ const _hoisted_1$9 = { class: "grid grid-cols-2 gap-2" };
3084
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3114
3085
  __name: "TieredTableRow",
3115
3086
  props: {
3116
3087
  band: { type: Object },
@@ -3139,8 +3110,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3139
3110
  return props.band.tier_top_bound.number;
3140
3111
  });
3141
3112
  return (_ctx, _cache) => {
3142
- return openBlock(), createElementBlock("div", _hoisted_1$a, [
3143
- createVNode(unref(_sfc_main$r), {
3113
+ return openBlock(), createElementBlock("div", _hoisted_1$9, [
3114
+ createVNode(unref(_sfc_main$p), {
3144
3115
  variant: "body-xs",
3145
3116
  shade: "lighter",
3146
3117
  tag: "div"
@@ -3173,7 +3144,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3173
3144
  ]),
3174
3145
  _: 1
3175
3146
  }),
3176
- createVNode(unref(_sfc_main$r), {
3147
+ createVNode(unref(_sfc_main$p), {
3177
3148
  variant: "body-xs",
3178
3149
  shade: "lighter",
3179
3150
  tag: "div",
@@ -3201,8 +3172,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3201
3172
  };
3202
3173
  }
3203
3174
  });
3204
- const _hoisted_1$9 = { class: "grid grid-cols-1 gap-0.5 pt-1.5" };
3205
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
3175
+ const _hoisted_1$8 = { class: "grid grid-cols-1 gap-0.5 pt-1.5" };
3176
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3206
3177
  __name: "TieredTable",
3207
3178
  props: {
3208
3179
  bands: { type: Array },
@@ -3210,9 +3181,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3210
3181
  },
3211
3182
  setup(__props) {
3212
3183
  return (_ctx, _cache) => {
3213
- return openBlock(), createElementBlock("div", _hoisted_1$9, [
3184
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
3214
3185
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.bands, (band, index) => {
3215
- return openBlock(), createBlock(_sfc_main$c, {
3186
+ return openBlock(), createBlock(_sfc_main$b, {
3216
3187
  key: index,
3217
3188
  band,
3218
3189
  "is-first": index === 0,
@@ -3245,14 +3216,14 @@ function useSeatBasedPricing({
3245
3216
  pricingItemConfigId
3246
3217
  }) {
3247
3218
  return computed(() => {
3248
- var _a, _b, _c, _d, _e, _f;
3219
+ var _a, _b, _c, _d, _e, _f, _g, _h;
3249
3220
  const { config, productItem } = getPricingItemByPricingConfigId({
3250
3221
  pricings,
3251
3222
  pricingItemConfigId
3252
3223
  });
3253
3224
  return {
3254
3225
  billing: {
3255
- period: config == null ? void 0 : config.billing_period,
3226
+ period: (_b = (_a = config == null ? void 0 : config.billing_period_configs) == null ? void 0 : _a[0]) == null ? void 0 : _b.billing_period,
3256
3227
  billedInAdvance: config == null ? void 0 : config.billing_in_advance
3257
3228
  },
3258
3229
  product: {
@@ -3260,18 +3231,18 @@ function useSeatBasedPricing({
3260
3231
  description: productItem == null ? void 0 : productItem.description
3261
3232
  },
3262
3233
  pricing: {
3263
- ...((_a = config == null ? void 0 : config.details) == null ? void 0 : _a.pricing_type) === "FLAT" && { amount: (_d = (_c = (_b = config.details) == null ? void 0 : _b.bands) == null ? void 0 : _c[0]) == null ? void 0 : _d.amount },
3264
- ...((_e = config == null ? void 0 : config.details) == null ? void 0 : _e.pricing_type) === "TIERED" && { tiered: { bands: (_f = config.details) == null ? void 0 : _f.bands } }
3234
+ ...((_c = config == null ? void 0 : config.details) == null ? void 0 : _c.pricing_type) === "FLAT" && { amount: (_f = (_e = (_d = config.details) == null ? void 0 : _d.bands) == null ? void 0 : _e[0]) == null ? void 0 : _f.amount },
3235
+ ...((_g = config == null ? void 0 : config.details) == null ? void 0 : _g.pricing_type) === "TIERED" && { tiered: { bands: (_h = config.details) == null ? void 0 : _h.bands } }
3265
3236
  }
3266
3237
  };
3267
3238
  });
3268
3239
  }
3269
- const _hoisted_1$8 = { class: "flex flex-row-reverse md:flex-row gap-4" };
3270
- const _hoisted_2$6 = { class: "w-24 md:w-32 shrink-0 justify-start" };
3271
- const _hoisted_3$3 = ["tabindex"];
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" };
3242
+ const _hoisted_3$2 = ["tabindex"];
3272
3243
  const _hoisted_4$2 = { key: 0 };
3273
3244
  const _hoisted_5$2 = { key: 0 };
3274
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
3245
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3275
3246
  __name: "SeatsEditorItem",
3276
3247
  props: /* @__PURE__ */ mergeModels({
3277
3248
  modelValue: { type: Object },
@@ -3308,9 +3279,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3308
3279
  return (_ctx, _cache) => {
3309
3280
  var _a, _b, _c;
3310
3281
  return openBlock(), createElementBlock("div", null, [
3311
- createElementVNode("div", _hoisted_1$8, [
3312
- createElementVNode("div", _hoisted_2$6, [
3313
- createVNode(unref(_sfc_main$M), {
3282
+ createElementVNode("div", _hoisted_1$7, [
3283
+ createElementVNode("div", _hoisted_2$5, [
3284
+ createVNode(unref(_sfc_main$J), {
3314
3285
  modelValue: seatsNumber.value,
3315
3286
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => seatsNumber.value = $event),
3316
3287
  size: "sm",
@@ -3322,7 +3293,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3322
3293
  tabindex: isCollapsible.value ? 0 : void 0,
3323
3294
  onClick: _cache[1] || (_cache[1] = ($event) => isCollapsible.value ? isExpanded.value = !isExpanded.value : void 0)
3324
3295
  }, [
3325
- createVNode(unref(_sfc_main$r), {
3296
+ createVNode(unref(_sfc_main$p), {
3326
3297
  tag: "span",
3327
3298
  variant: "body-sm",
3328
3299
  weight: "semibold"
@@ -3336,7 +3307,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3336
3307
  ]),
3337
3308
  _: 1
3338
3309
  }),
3339
- unref(seats).pricing.amount ? (openBlock(), createBlock(unref(_sfc_main$r), {
3310
+ unref(seats).pricing.amount ? (openBlock(), createBlock(unref(_sfc_main$p), {
3340
3311
  key: 0,
3341
3312
  tag: "span",
3342
3313
  variant: "body-xs",
@@ -3359,7 +3330,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3359
3330
  )), 1)
3360
3331
  ]),
3361
3332
  _: 1
3362
- })) : unref(seats).pricing.tiered ? (openBlock(), createBlock(unref(_sfc_main$r), {
3333
+ })) : unref(seats).pricing.tiered ? (openBlock(), createBlock(unref(_sfc_main$p), {
3363
3334
  key: 1,
3364
3335
  tag: "span",
3365
3336
  variant: "body-xs",
@@ -3371,7 +3342,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3371
3342
  id: "seats.tiered_pricing_label",
3372
3343
  description: "The label indicating tiered pricing structure for seats"
3373
3344
  })) + " ", 1),
3374
- createVNode(unref(_sfc_main$J), {
3345
+ createVNode(unref(_sfc_main$K), {
3375
3346
  icon: "keyboard_arrow_down",
3376
3347
  size: "xs",
3377
3348
  class: normalizeClass(["absolute transition ease-in-out text-gray-400", { "rotate-0": !isExpanded.value, "rotate-180": isExpanded.value }])
@@ -3379,26 +3350,26 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3379
3350
  ]),
3380
3351
  _: 1
3381
3352
  })) : createCommentVNode("", true)
3382
- ], 10, _hoisted_3$3)
3353
+ ], 10, _hoisted_3$2)
3383
3354
  ]),
3384
3355
  ((_c = (_b = unref(seats).pricing) == null ? void 0 : _b.tiered) == null ? void 0 : _c.bands) ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
3385
- createVNode(unref(_sfc_main$w), null, {
3356
+ createVNode(unref(_sfc_main$u), { "is-open": isExpanded.value }, {
3386
3357
  default: withCtx(() => [
3387
3358
  isExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
3388
- createVNode(_sfc_main$b, {
3359
+ createVNode(_sfc_main$a, {
3389
3360
  bands: unref(seats).pricing.tiered.bands,
3390
3361
  period: unref(seats).billing.period
3391
3362
  }, null, 8, ["bands", "period"])
3392
3363
  ])) : createCommentVNode("", true)
3393
3364
  ]),
3394
3365
  _: 1
3395
- })
3366
+ }, 8, ["is-open"])
3396
3367
  ])) : createCommentVNode("", true)
3397
3368
  ]);
3398
3369
  };
3399
3370
  }
3400
3371
  });
3401
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3372
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3402
3373
  __name: "SeatsEditor",
3403
3374
  props: /* @__PURE__ */ mergeModels({
3404
3375
  modelValue: { type: Array },
@@ -3421,11 +3392,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3421
3392
  });
3422
3393
  return (_ctx, _cache) => {
3423
3394
  return openBlock(true), createElementBlock(Fragment, null, renderList(__props.modelValue, (item, index) => {
3424
- return openBlock(), createBlock(unref(_sfc_main$s), { key: index }, {
3395
+ return openBlock(), createBlock(unref(_sfc_main$q), { key: index }, {
3425
3396
  default: withCtx(() => {
3426
3397
  var _a;
3427
3398
  return [
3428
- item.pricing_item_config_id ? (openBlock(), createBlock(_sfc_main$a, {
3399
+ item.pricing_item_config_id ? (openBlock(), createBlock(_sfc_main$9, {
3429
3400
  key: item.pricing_item_config_id,
3430
3401
  modelValue: itemModel(index).value,
3431
3402
  "onUpdate:modelValue": ($event) => itemModel(index).value = $event,
@@ -3440,15 +3411,15 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3440
3411
  };
3441
3412
  }
3442
3413
  });
3443
- const _hoisted_1$7 = { class: "flex gap-4 border-l-2 border-primary-600 px-2" };
3444
- const _hoisted_2$5 = { class: "grow" };
3445
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
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({
3446
3417
  __name: "PricingGroupTitle",
3447
3418
  setup(__props) {
3448
3419
  return (_ctx, _cache) => {
3449
- return openBlock(), createElementBlock("div", _hoisted_1$7, [
3450
- createElementVNode("div", _hoisted_2$5, [
3451
- createVNode(unref(_sfc_main$r), {
3420
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [
3421
+ createElementVNode("div", _hoisted_2$4, [
3422
+ createVNode(unref(_sfc_main$p), {
3452
3423
  tag: "span",
3453
3424
  variant: "body-sm",
3454
3425
  weight: "semibold"
@@ -3460,7 +3431,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3460
3431
  })
3461
3432
  ]),
3462
3433
  createElementVNode("div", null, [
3463
- createVNode(unref(_sfc_main$r), {
3434
+ createVNode(unref(_sfc_main$p), {
3464
3435
  tag: "span",
3465
3436
  variant: "body-xs",
3466
3437
  shade: "lighter"
@@ -3475,9 +3446,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3475
3446
  };
3476
3447
  }
3477
3448
  });
3478
- const _hoisted_1$6 = { class: "p-1" };
3479
- const _hoisted_2$4 = { class: "grid grid-cols-1 gap-1 pt-1" };
3480
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
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({
3481
3452
  __name: "AddonSingleEditor",
3482
3453
  props: /* @__PURE__ */ mergeModels({
3483
3454
  constraint: { type: String },
@@ -3536,10 +3507,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3536
3507
  }
3537
3508
  };
3538
3509
  return (_ctx, _cache) => {
3539
- return openBlock(), createBlock(unref(_sfc_main$s), { "no-spacing": "" }, {
3510
+ return openBlock(), createBlock(unref(_sfc_main$q), { "no-spacing": "" }, {
3540
3511
  default: withCtx(() => [
3541
- createElementVNode("div", _hoisted_1$6, [
3542
- createVNode(_sfc_main$8, null, {
3512
+ createElementVNode("div", _hoisted_1$5, [
3513
+ createVNode(_sfc_main$7, null, {
3543
3514
  title: withCtx(() => [
3544
3515
  createTextVNode(toDisplayString(__props.groupName), 1)
3545
3516
  ]),
@@ -3548,9 +3519,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3548
3519
  ]),
3549
3520
  _: 1
3550
3521
  }),
3551
- createElementVNode("div", _hoisted_2$4, [
3522
+ createElementVNode("div", _hoisted_2$3, [
3552
3523
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.pricings, (pricing) => {
3553
- return openBlock(), createBlock(unref(_sfc_main$s), {
3524
+ return openBlock(), createBlock(unref(_sfc_main$q), {
3554
3525
  key: pricing.id,
3555
3526
  "content-background": "none",
3556
3527
  class: normalizeClass({ "!bg-white": isSelected(pricing.id) })
@@ -3558,7 +3529,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3558
3529
  default: withCtx(() => {
3559
3530
  var _a, _b;
3560
3531
  return [
3561
- createVNode(_sfc_main$F, {
3532
+ createVNode(_sfc_main$D, {
3562
3533
  name: unref(getNameFromPricing)(pricing) ?? "",
3563
3534
  description: ((_a = pricing.items) == null ? void 0 : _a[0]) ? unref(renderPricingForPricingItem)({
3564
3535
  pricingItem: (_b = pricing.items) == null ? void 0 : _b[0]
@@ -3569,7 +3540,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3569
3540
  })
3570
3541
  }, {
3571
3542
  default: withCtx(() => [
3572
- createVNode(unref(_sfc_main$x), {
3543
+ createVNode(unref(_sfc_main$v), {
3573
3544
  "model-value": isSelected(pricing.id),
3574
3545
  "onUpdate:modelValue": ($event) => handleToggle(pricing.id)
3575
3546
  }, null, 8, ["model-value", "onUpdate:modelValue"])
@@ -3589,8 +3560,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3589
3560
  };
3590
3561
  }
3591
3562
  });
3592
- const _hoisted_1$5 = { class: "grid grid-cols-1 gap-1" };
3593
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3563
+ const _hoisted_1$4 = { class: "grid grid-cols-1 gap-1" };
3564
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3594
3565
  __name: "AddonMultipleEditor",
3595
3566
  props: /* @__PURE__ */ mergeModels({
3596
3567
  modelValue: { type: Array },
@@ -3622,7 +3593,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3622
3593
  }
3623
3594
  };
3624
3595
  return (_ctx, _cache) => {
3625
- return openBlock(), createBlock(unref(_sfc_main$s), {
3596
+ return openBlock(), createBlock(unref(_sfc_main$q), {
3626
3597
  "no-spacing": "",
3627
3598
  "no-border": !__props.groupName,
3628
3599
  "content-background": __props.groupName ? "gray" : "none"
@@ -3631,7 +3602,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3631
3602
  createElementVNode("div", {
3632
3603
  class: normalizeClass(["grid grid-cols-1 gap-1", { "p-1": __props.groupName }])
3633
3604
  }, [
3634
- __props.groupName ? (openBlock(), createBlock(_sfc_main$8, { key: 0 }, {
3605
+ __props.groupName ? (openBlock(), createBlock(_sfc_main$7, { key: 0 }, {
3635
3606
  title: withCtx(() => [
3636
3607
  createTextVNode(toDisplayString(__props.groupName), 1)
3637
3608
  ]),
@@ -3644,9 +3615,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3644
3615
  ]),
3645
3616
  _: 1
3646
3617
  })) : createCommentVNode("", true),
3647
- createElementVNode("div", _hoisted_1$5, [
3618
+ createElementVNode("div", _hoisted_1$4, [
3648
3619
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.pricings, (pricing) => {
3649
- return openBlock(), createBlock(unref(_sfc_main$s), {
3620
+ return openBlock(), createBlock(unref(_sfc_main$q), {
3650
3621
  key: pricing.id,
3651
3622
  "content-background": __props.groupName || isSelected(pricing.id) ? "none" : "gray",
3652
3623
  class: normalizeClass({ "!bg-white": isSelected(pricing.id) })
@@ -3654,7 +3625,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3654
3625
  default: withCtx(() => {
3655
3626
  var _a, _b;
3656
3627
  return [
3657
- createVNode(_sfc_main$F, {
3628
+ createVNode(_sfc_main$D, {
3658
3629
  name: unref(getNameFromPricing)(pricing) ?? "",
3659
3630
  description: ((_a = pricing.items) == null ? void 0 : _a[0]) ? unref(renderPricingForPricingItem)({
3660
3631
  pricingItem: (_b = pricing.items) == null ? void 0 : _b[0]
@@ -3665,7 +3636,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3665
3636
  })
3666
3637
  }, {
3667
3638
  default: withCtx(() => [
3668
- isSelected(pricing.id) ? (openBlock(), createBlock(unref(_sfc_main$v), {
3639
+ isSelected(pricing.id) ? (openBlock(), createBlock(unref(_sfc_main$t), {
3669
3640
  key: 0,
3670
3641
  color: "gray",
3671
3642
  variant: "outline",
@@ -3673,7 +3644,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3673
3644
  size: "sm",
3674
3645
  "icon-prefix": "remove_shopping_cart",
3675
3646
  onClick: ($event) => handleToggle(pricing.id)
3676
- }, null, 8, ["onClick"])) : (openBlock(), createBlock(unref(_sfc_main$v), {
3647
+ }, null, 8, ["onClick"])) : (openBlock(), createBlock(unref(_sfc_main$t), {
3677
3648
  key: 1,
3678
3649
  color: "primary",
3679
3650
  "icon-prefix": "add",
@@ -3705,11 +3676,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3705
3676
  };
3706
3677
  }
3707
3678
  });
3708
- const _hoisted_1$4 = { class: "p-1" };
3709
- const _hoisted_2$3 = { class: "pt-1" };
3679
+ const _hoisted_1$3 = { class: "p-1" };
3680
+ const _hoisted_2$2 = { class: "pt-1" };
3710
3681
  const SHOW_RADIO_GROUP_MAX_OPTIONS = 3;
3711
3682
  const SHOW_SELECT_MAX_OPTIONS = 6;
3712
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3683
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3713
3684
  __name: "PricingGroupSingleEditor",
3714
3685
  props: /* @__PURE__ */ mergeModels({
3715
3686
  modelValue: { type: Array },
@@ -3769,31 +3740,31 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3769
3740
  }));
3770
3741
  };
3771
3742
  return (_ctx, _cache) => {
3772
- return openBlock(), createBlock(unref(_sfc_main$s), { "no-spacing": "" }, {
3743
+ return openBlock(), createBlock(unref(_sfc_main$q), { "no-spacing": "" }, {
3773
3744
  default: withCtx(() => [
3774
- createElementVNode("div", _hoisted_1$4, [
3775
- createVNode(_sfc_main$8, null, {
3745
+ createElementVNode("div", _hoisted_1$3, [
3746
+ createVNode(_sfc_main$7, null, {
3776
3747
  title: withCtx(() => [
3777
3748
  createTextVNode(toDisplayString(__props.groupName), 1)
3778
3749
  ]),
3779
3750
  _: 1
3780
3751
  }),
3781
- createElementVNode("div", _hoisted_2$3, [
3782
- options.value.length <= SHOW_RADIO_GROUP_MAX_OPTIONS ? (openBlock(), createBlock(unref(_sfc_main$N), {
3752
+ createElementVNode("div", _hoisted_2$2, [
3753
+ options.value.length <= SHOW_RADIO_GROUP_MAX_OPTIONS ? (openBlock(), createBlock(unref(_sfc_main$L), {
3783
3754
  key: 0,
3784
3755
  modelValue: singleModelValue.value,
3785
3756
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => singleModelValue.value = $event),
3786
3757
  options: getRadioGroupOptions(),
3787
3758
  direction: unref(isMobileViewport) ? "column" : "row",
3788
3759
  "show-radio": false
3789
- }, null, 8, ["modelValue", "options", "direction"])) : options.value.length <= SHOW_SELECT_MAX_OPTIONS ? (openBlock(), createBlock(unref(_sfc_main$G), {
3760
+ }, null, 8, ["modelValue", "options", "direction"])) : options.value.length <= SHOW_SELECT_MAX_OPTIONS ? (openBlock(), createBlock(unref(_sfc_main$E), {
3790
3761
  key: 1,
3791
3762
  "single-model-value": singleModelValue.value,
3792
3763
  "onUpdate:singleModelValue": _cache[1] || (_cache[1] = ($event) => singleModelValue.value = $event),
3793
3764
  options: getSelectOptions(),
3794
3765
  size: "xl",
3795
3766
  "show-sub-label-in-input": ""
3796
- }, null, 8, ["single-model-value", "options"])) : (openBlock(), createBlock(unref(_sfc_main$O), {
3767
+ }, null, 8, ["single-model-value", "options"])) : (openBlock(), createBlock(unref(_sfc_main$M), {
3797
3768
  key: 2,
3798
3769
  modelValue: singleModelValue.value,
3799
3770
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => singleModelValue.value = $event),
@@ -3813,8 +3784,8 @@ function getAllPricingsFromPricingPlanVersion(pricingPlanVersion) {
3813
3784
  const pricings = ((_a = pricingPlanVersion.pricing_categories) == null ? void 0 : _a.flatMap((category) => category.pricings ?? [])) ?? [];
3814
3785
  return pricings.filter((pricing) => pricing !== null);
3815
3786
  }
3816
- const _hoisted_1$3 = { class: "sv-plan-customization__body grid grid-cols-1 gap-1" };
3817
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3787
+ const _hoisted_1$2 = { class: "sv-plan-customization__body grid grid-cols-1 gap-1" };
3788
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3818
3789
  __name: "PlanCustomizationEditor",
3819
3790
  props: /* @__PURE__ */ mergeModels({
3820
3791
  subscription: { type: Object },
@@ -3854,7 +3825,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3854
3825
  () => getPricingGroupsFromExtendedPricingPlanSubscription(props.subscription)
3855
3826
  );
3856
3827
  return (_ctx, _cache) => {
3857
- return openBlock(), createBlock(unref(_sfc_main$s), {
3828
+ return openBlock(), createBlock(unref(_sfc_main$q), {
3858
3829
  class: "sv-plan-customization",
3859
3830
  title: unref($t)({
3860
3831
  defaultMessage: "Customize plan",
@@ -3866,8 +3837,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3866
3837
  "content-background": "none"
3867
3838
  }, {
3868
3839
  default: withCtx(() => [
3869
- createElementVNode("div", _hoisted_1$3, [
3870
- createVNode(_sfc_main$9, {
3840
+ createElementVNode("div", _hoisted_1$2, [
3841
+ createVNode(_sfc_main$8, {
3871
3842
  modelValue: seatsModel.value,
3872
3843
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => seatsModel.value = $event),
3873
3844
  class: "sv-plan-customization__seats",
@@ -3878,7 +3849,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3878
3849
  return openBlock(), createElementBlock(Fragment, {
3879
3850
  key: pricingGroup.id
3880
3851
  }, [
3881
- pricingGroup.product_type === "DEFAULT" && pricingGroup.selection_constraint === "EXACTLY_ONE" ? (openBlock(), createBlock(_sfc_main$5, {
3852
+ pricingGroup.product_type === "DEFAULT" && pricingGroup.selection_constraint === "EXACTLY_ONE" ? (openBlock(), createBlock(_sfc_main$4, {
3882
3853
  key: 0,
3883
3854
  modelValue: enabledPricingIdsModel.value,
3884
3855
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => enabledPricingIdsModel.value = $event),
@@ -3887,7 +3858,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3887
3858
  pricings: pricingGroup.pricings,
3888
3859
  "billing-period": __props.billingPeriod,
3889
3860
  currency: __props.currency
3890
- }, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : pricingGroup.product_type === "ADDON" && pricingGroup.selection_constraint === "AT_MOST_ONE" ? (openBlock(), createBlock(_sfc_main$7, {
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, {
3891
3862
  key: 1,
3892
3863
  modelValue: enabledPricingIdsModel.value,
3893
3864
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => enabledPricingIdsModel.value = $event),
@@ -3897,7 +3868,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3897
3868
  constraint: pricingGroup.selection_constraint,
3898
3869
  "billing-period": __props.billingPeriod,
3899
3870
  currency: __props.currency
3900
- }, null, 8, ["modelValue", "group-name", "pricings", "constraint", "billing-period", "currency"])) : pricingGroup.product_type === "ADDON" && pricingGroup.selection_constraint === "ANY" ? (openBlock(), createBlock(_sfc_main$6, {
3871
+ }, null, 8, ["modelValue", "group-name", "pricings", "constraint", "billing-period", "currency"])) : pricingGroup.product_type === "ADDON" && pricingGroup.selection_constraint === "ANY" ? (openBlock(), createBlock(_sfc_main$5, {
3901
3872
  key: 2,
3902
3873
  modelValue: enabledPricingIdsModel.value,
3903
3874
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => enabledPricingIdsModel.value = $event),
@@ -3909,7 +3880,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3909
3880
  }, null, 8, ["modelValue", "pricings", "group-name", "billing-period", "currency"])) : createCommentVNode("", true)
3910
3881
  ], 64);
3911
3882
  }), 128)),
3912
- createVNode(_sfc_main$6, {
3883
+ createVNode(_sfc_main$5, {
3913
3884
  modelValue: enabledPricingIdsModel.value,
3914
3885
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => enabledPricingIdsModel.value = $event),
3915
3886
  class: "sv-plan-customization__group",
@@ -3924,9 +3895,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3924
3895
  };
3925
3896
  }
3926
3897
  });
3927
- const _hoisted_1$2 = ["aria-expanded", "aria-label"];
3928
- const _hoisted_2$2 = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" };
3929
- const _hoisted_3$2 = { class: "flex flex-row items-center gap-2" };
3898
+ const _hoisted_1$1 = ["aria-expanded", "aria-label"];
3899
+ const _hoisted_2$1 = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" };
3900
+ const _hoisted_3$1 = { class: "flex flex-row items-center gap-2" };
3930
3901
  const _hoisted_4$1 = ["onKeydown"];
3931
3902
  const _hoisted_5$1 = ["aria-label"];
3932
3903
  const _hoisted_6$1 = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" };
@@ -3935,7 +3906,7 @@ const _hoisted_8 = {
3935
3906
  class: "sr-only",
3936
3907
  "aria-live": "polite"
3937
3908
  };
3938
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3909
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3939
3910
  __name: "PromotionCodeSection",
3940
3911
  props: {
3941
3912
  promotionCode: { default: null, type: [String, null] }
@@ -4056,7 +4027,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4056
4027
  );
4057
4028
  return (_ctx, _cache) => {
4058
4029
  return openBlock(), createElementBlock(Fragment, null, [
4059
- !isApplied.value ? (openBlock(), createBlock(unref(_sfc_main$s), {
4030
+ !isApplied.value ? (openBlock(), createBlock(unref(_sfc_main$q), {
4060
4031
  key: 0,
4061
4032
  "no-spacing": "",
4062
4033
  class: "relative w-full"
@@ -4072,10 +4043,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4072
4043
  "aria-label": toggleAriaLabel.value,
4073
4044
  onClick: toggleExpanded
4074
4045
  }, [
4075
- createElementVNode("div", _hoisted_2$2, [
4076
- createElementVNode("div", _hoisted_3$2, [
4077
- createVNode(unref(_sfc_main$J), { icon: "local_activity" }),
4078
- createVNode(unref(_sfc_main$r), {
4046
+ createElementVNode("div", _hoisted_2$1, [
4047
+ createElementVNode("div", _hoisted_3$1, [
4048
+ createVNode(unref(_sfc_main$K), { icon: "local_activity" }),
4049
+ createVNode(unref(_sfc_main$p), {
4079
4050
  id: labelId,
4080
4051
  variant: "body-sm"
4081
4052
  }, {
@@ -4089,11 +4060,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4089
4060
  _: 1
4090
4061
  })
4091
4062
  ]),
4092
- createVNode(unref(_sfc_main$J), {
4063
+ createVNode(unref(_sfc_main$K), {
4093
4064
  icon: isExpanded.value ? "remove" : "add"
4094
4065
  }, null, 8, ["icon"])
4095
4066
  ])
4096
- ], 8, _hoisted_1$2),
4067
+ ], 8, _hoisted_1$1),
4097
4068
  withDirectives(createElementVNode("div", {
4098
4069
  id: panelId,
4099
4070
  ref_key: "panelRef",
@@ -4103,7 +4074,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4103
4074
  class: "flex w-full flex-row items-center gap-2 overflow-hidden border-t px-3 py-2",
4104
4075
  onKeydown: withKeys(withModifiers(collapseExpanded, ["prevent"]), ["esc"])
4105
4076
  }, [
4106
- createVNode(unref(_sfc_main$t), {
4077
+ createVNode(unref(_sfc_main$r), {
4107
4078
  modelValue: inputValue.value,
4108
4079
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
4109
4080
  placeholder: unref($t)({
@@ -4119,7 +4090,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4119
4090
  class: "w-full",
4120
4091
  onKeydown: withKeys(withModifiers(applyCode, ["prevent"]), ["enter"])
4121
4092
  }, null, 8, ["modelValue", "placeholder", "aria-label", "onKeydown"]),
4122
- createVNode(unref(_sfc_main$v), {
4093
+ createVNode(unref(_sfc_main$t), {
4123
4094
  type: "button",
4124
4095
  disabled: !canApply.value,
4125
4096
  "aria-label": applyAriaLabel.value,
@@ -4140,7 +4111,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4140
4111
  ])
4141
4112
  ]),
4142
4113
  _: 1
4143
- })) : (openBlock(), createBlock(unref(_sfc_main$s), {
4114
+ })) : (openBlock(), createBlock(unref(_sfc_main$q), {
4144
4115
  key: 1,
4145
4116
  "no-border": "",
4146
4117
  "no-spacing": "",
@@ -4156,8 +4127,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4156
4127
  }, [
4157
4128
  createElementVNode("div", _hoisted_6$1, [
4158
4129
  createElementVNode("div", _hoisted_7, [
4159
- createVNode(unref(_sfc_main$J), { icon: "local_activity" }),
4160
- createVNode(unref(_sfc_main$r), {
4130
+ createVNode(unref(_sfc_main$K), { icon: "local_activity" }),
4131
+ createVNode(unref(_sfc_main$p), {
4161
4132
  variant: "body-sm",
4162
4133
  class: "font-semibold"
4163
4134
  }, {
@@ -4167,7 +4138,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4167
4138
  _: 1
4168
4139
  })
4169
4140
  ]),
4170
- createVNode(unref(_sfc_main$J), { icon: "close" })
4141
+ createVNode(unref(_sfc_main$K), { icon: "close" })
4171
4142
  ])
4172
4143
  ], 8, _hoisted_5$1)
4173
4144
  ]),
@@ -4178,75 +4149,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4178
4149
  };
4179
4150
  }
4180
4151
  });
4181
- const _hoisted_1$1 = { class: "flex justify-around" };
4182
- const _hoisted_2$1 = { class: "flex items-center gap-0.5" };
4183
- const _hoisted_3$1 = {
4184
- key: 0,
4185
- xmlns: "http://www.w3.org/2000/svg",
4186
- width: "40",
4187
- height: "15",
4188
- fill: "none",
4189
- viewBox: "0 0 40 15",
4190
- class: "inline-block translate-y-[1px]"
4191
- };
4192
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4193
- __name: "SecurePaymentsKPI",
4194
- props: {
4195
- paymentMethodOptions: { type: Array }
4196
- },
4197
- setup(__props) {
4198
- const props = __props;
4199
- const { $t } = useIntl();
4200
- const showAdyen = computed(
4201
- () => props.paymentMethodOptions.find(
4202
- ({ integration }) => {
4203
- var _a;
4204
- return ((_a = integration.payment_gateway) == null ? void 0 : _a.variant) === "ADYEN";
4205
- }
4206
- )
4207
- );
4208
- const securePaymentsText = computed(() => {
4209
- if (showAdyen.value) {
4210
- return $t({
4211
- defaultMessage: "Secure and encrypted payments by",
4212
- description: "Secure encrypted payments KPI for a specific vendor, followed by a vendor logo",
4213
- id: "secure_payments_kpi.specific_vendor"
4214
- });
4215
- }
4216
- return $t({
4217
- defaultMessage: "Secure and encrypted payments",
4218
- description: "Secure encrypted payments KPI",
4219
- id: "secure_payments_kpi.generic"
4220
- });
4221
- });
4222
- return (_ctx, _cache) => {
4223
- return openBlock(), createElementBlock("div", _hoisted_1$1, [
4224
- createElementVNode("div", _hoisted_2$1, [
4225
- createVNode(unref(_sfc_main$J), {
4226
- icon: "lock",
4227
- size: "xs"
4228
- }),
4229
- createVNode(unref(_sfc_main$r), {
4230
- tag: "span",
4231
- variant: "body-xs",
4232
- shade: "lighter"
4233
- }, {
4234
- default: withCtx(() => [
4235
- createTextVNode(toDisplayString(securePaymentsText.value) + " ", 1),
4236
- showAdyen.value ? (openBlock(), createElementBlock("svg", _hoisted_3$1, [..._cache[0] || (_cache[0] = [
4237
- createElementVNode("path", {
4238
- fill: "currentColor",
4239
- d: "M.049 2.917h5.845c.646 0 1.17.522 1.17 1.166v5.834H1.217c-.646 0-1.17-.522-1.17-1.167V5.833h2.924v2.334H4.14v-3.5H.049zM32.784 2.917v7h2.922v-5.25h1.17v5.25h2.922V4.083c0-.644-.523-1.166-1.169-1.166zM16.417 12.833h5.845c.646 0 1.17-.522 1.17-1.166v-8.75h-2.924v5.25H19.34v-5.25h-2.922V8.75c0 .645.523 1.167 1.169 1.167h2.922v1.166h-4.091zM31.614 9.917H25.77c-.646 0-1.17-.522-1.17-1.167V2.917h5.846c.646 0 1.17.522 1.17 1.166V7h-2.923V4.667h-1.17v3.5h4.092zM15.248 0v9.917H9.402c-.646 0-1.17-.522-1.17-1.167V4.083c0-.644.524-1.166 1.17-1.166h1.754v5.25h1.169V0z"
4240
- }, null, -1)
4241
- ])])) : createCommentVNode("", true)
4242
- ]),
4243
- _: 1
4244
- })
4245
- ])
4246
- ]);
4247
- };
4248
- }
4249
- });
4250
4152
  const _hoisted_1 = { class: "sv-checkout__header" };
4251
4153
  const _hoisted_2 = {
4252
4154
  key: 5,
@@ -4271,7 +4173,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4271
4173
  setup(__props, { emit: __emit }) {
4272
4174
  var _a, _b, _c, _d, _e, _f, _g, _h;
4273
4175
  const PaymentIntegrationForm = defineAsyncComponent(
4274
- () => import("../../PaymentIntegrationForm-CkXYj9xs.mjs")
4176
+ () => import("../../PaymentIntegrationForm-BGxjGJGz.mjs")
4275
4177
  );
4276
4178
  const props = __props;
4277
4179
  const emit = __emit;
@@ -4311,21 +4213,28 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4311
4213
  isPaid,
4312
4214
  amount,
4313
4215
  loadInvoicePreview,
4314
- updateInvoicePreviewOnBillingInformationChange
4216
+ updateInvoicePreviewOnBillingInformationChange,
4217
+ saveFormStateForRedirect
4315
4218
  } = useCheckoutView({
4316
4219
  initialCountry: (_f = props.configuration) == null ? void 0 : _f.countryCode,
4317
4220
  initialEmail: (_g = props.configuration) == null ? void 0 : _g.email,
4318
4221
  subscriptionId,
4319
4222
  enabledPricingIds: (_h = props.configuration) == null ? void 0 : _h.enabledPricingIds
4320
4223
  });
4224
+ const isPaymentPending = ref(false);
4321
4225
  const handleSubmit = async () => {
4322
4226
  var _a2;
4323
4227
  await checkoutForm.validation.value.$validate();
4324
4228
  if (checkoutForm.validation.value.$invalid) {
4325
4229
  return;
4326
4230
  }
4231
+ isPaymentPending.value = true;
4232
+ saveFormStateForRedirect();
4327
4233
  (_a2 = paymentIntegrationFormRef.value) == null ? void 0 : _a2.submit();
4328
4234
  };
4235
+ const handlePaymentFailed = () => {
4236
+ isPaymentPending.value = false;
4237
+ };
4329
4238
  const handleValidateOnSubmit = async () => {
4330
4239
  await checkoutForm.validation.value.$validate();
4331
4240
  return !checkoutForm.validation.value.$invalid;
@@ -4585,7 +4494,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4585
4494
  emit("ready");
4586
4495
  });
4587
4496
  return (_ctx, _cache) => {
4588
- return criticalError.value ? (openBlock(), createBlock(_sfc_main$m, {
4497
+ return criticalError.value ? (openBlock(), createBlock(_sfc_main$k, {
4589
4498
  key: 0,
4590
4499
  class: "sv-checkout sv-root sv-screen sv-checkout--error"
4591
4500
  })) : (openBlock(), createBlock(unref(ContentWithAsideLayout), {
@@ -4594,11 +4503,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4594
4503
  }, {
4595
4504
  header: withCtx(() => [
4596
4505
  createElementVNode("div", _hoisted_1, [
4597
- createVNode(_sfc_main$K, { class: "min-h-[52px] w-96" }, {
4506
+ createVNode(_sfc_main$H, { class: "min-h-[52px] w-96" }, {
4598
4507
  default: withCtx(() => {
4599
4508
  var _a2, _b2, _c2;
4600
4509
  return [
4601
- unref(invoicePreview) && unref(subscription) && subscriptionStartDate.value ? (openBlock(), createBlock(_sfc_main$n, {
4510
+ unref(invoicePreview) && unref(subscription) && subscriptionStartDate.value ? (openBlock(), createBlock(_sfc_main$l, {
4602
4511
  key: 0,
4603
4512
  class: "sv-checkout__title",
4604
4513
  "trial-start-date": trialStartDate.value,
@@ -4618,7 +4527,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4618
4527
  content: withCtx(() => {
4619
4528
  var _a2, _b2, _c2;
4620
4529
  return [
4621
- unref(subscription) && unref(isMobileViewport) ? (openBlock(), createBlock(_sfc_main$j, {
4530
+ unref(subscription) && unref(isMobileViewport) ? (openBlock(), createBlock(_sfc_main$h, {
4622
4531
  key: 0,
4623
4532
  class: "sv-checkout__mobile-order-summary",
4624
4533
  subscription: unref(subscription),
@@ -4636,7 +4545,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4636
4545
  variant: "products-inline",
4637
4546
  onBillingPeriodChange: handleBillingPeriodChange
4638
4547
  }, null, 8, ["subscription", "invoice", "invoice-preview-by-billing-period", "trial-invoice", "enabled-pricing-ids", "trial-period", "avatar", "is-paid", "is-usage-based", "is-preview-and-payment-methods-pending", "country-code"])) : createCommentVNode("", true),
4639
- showPlanCustomizationEditor.value && unref(subscription) ? (openBlock(), createBlock(_sfc_main$4, {
4548
+ showPlanCustomizationEditor.value && unref(subscription) ? (openBlock(), createBlock(_sfc_main$3, {
4640
4549
  key: 1,
4641
4550
  "seats-values": seatsValuesModel.value,
4642
4551
  "onUpdate:seatsValues": _cache[0] || (_cache[0] = ($event) => seatsValuesModel.value = $event),
@@ -4648,7 +4557,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4648
4557
  "billing-period": unref(subscription).billing_period,
4649
4558
  currency: activePricingCurrency.value
4650
4559
  }, null, 8, ["seats-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "billing-period", "currency"])) : createCommentVNode("", true),
4651
- !unref(isPaid) && unref(checkoutForm).form.value.country && unref(amount) && expressPaymentMethodBillingInformation.value ? (openBlock(), createBlock(_sfc_main$d, {
4560
+ !unref(isPaid) && unref(checkoutForm).form.value.country && unref(amount) && expressPaymentMethodBillingInformation.value ? (openBlock(), createBlock(_sfc_main$c, {
4652
4561
  key: 2,
4653
4562
  class: "sv-checkout__express-payment-methods",
4654
4563
  amount: unref(amount),
@@ -4659,12 +4568,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4659
4568
  "on-billing-information-change": unref(updateInvoicePreviewOnBillingInformationChange),
4660
4569
  onUpdateBillingInformation: handleUpdateBillingInformation
4661
4570
  }, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change"])) : createCommentVNode("", true),
4662
- unref(isPaid) ? (openBlock(), createBlock(_sfc_main$l, {
4571
+ unref(isPaid) ? (openBlock(), createBlock(_sfc_main$j, {
4663
4572
  key: 3,
4664
4573
  class: "sv-checkout__completed-payment",
4665
4574
  onContinueToMerchant: handleRedirect
4666
4575
  })) : createCommentVNode("", true),
4667
- !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$o, {
4576
+ !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$m, {
4668
4577
  key: 4,
4669
4578
  modelValue: unref(checkoutForm).form.value,
4670
4579
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(checkoutForm).form.value = $event),
@@ -4677,13 +4586,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4677
4586
  "read-only": unref(isPaid)
4678
4587
  }, null, 8, ["modelValue", "validation", "read-only-email", "show-customer-info-on-top", "is-billing-information-mandatory", "get-is-field-required", "read-only"])) : createCommentVNode("", true),
4679
4588
  !unref(isPaid) ? (openBlock(), createElementBlock("div", _hoisted_2, [
4680
- createVNode(_sfc_main$K, {
4589
+ createVNode(_sfc_main$H, {
4681
4590
  variant: "section",
4682
4591
  class: "min-h-[130px]"
4683
4592
  }, {
4684
4593
  default: withCtx(() => [
4685
4594
  !unref(isPaymentMethodsPending) || unref(isPaymentMethodsPending) && unref(paymentMethodOptions).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3, [
4686
- createVNode(unref(_sfc_main$r), {
4595
+ createVNode(unref(_sfc_main$p), {
4687
4596
  variant: "heading-3",
4688
4597
  tag: "h2",
4689
4598
  class: "sv-checkout__payment-methods-title mb-2"
@@ -4697,7 +4606,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4697
4606
  ]),
4698
4607
  _: 1
4699
4608
  }),
4700
- !unref(checkoutForm).form.value.country ? (openBlock(), createBlock(_sfc_main$i, {
4609
+ !unref(checkoutForm).form.value.country ? (openBlock(), createBlock(_sfc_main$P, {
4701
4610
  key: 0,
4702
4611
  class: "sv-checkout__payment-methods-empty",
4703
4612
  icon: "captive_portal"
@@ -4717,7 +4626,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4717
4626
  })), 1)
4718
4627
  ]),
4719
4628
  _: 1
4720
- })) : unref(paymentMethodOptions).length === 0 ? (openBlock(), createBlock(_sfc_main$i, {
4629
+ })) : unref(paymentMethodOptions).length === 0 ? (openBlock(), createBlock(_sfc_main$P, {
4721
4630
  key: 1,
4722
4631
  class: "sv-checkout__payment-methods-empty",
4723
4632
  icon: "credit_card_off"
@@ -4738,19 +4647,25 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4738
4647
  ]),
4739
4648
  _: 1
4740
4649
  })) : unref(amount) && unref(checkoutForm).form.value.country ? (openBlock(), createElementBlock("div", _hoisted_4, [
4741
- createVNode(unref(PaymentIntegrationForm), {
4742
- ref_key: "paymentIntegrationFormRef",
4743
- ref: paymentIntegrationFormRef,
4744
- "country-code": unref(checkoutForm).form.value.country,
4745
- context: unref(authorizationContext),
4746
- amount: unref(amount),
4747
- variant: "AUTHORIZE",
4748
- "payment-method-options": unref(paymentMethodOptions) ?? [],
4749
- "validate-on-submit": handleValidateOnSubmit,
4750
- "force-store-payment-method": "",
4751
- onPaymentSuccess: handlePaymentSuccess,
4752
- onReady: _cache[3] || (_cache[3] = ($event) => emit("ready"))
4753
- }, null, 8, ["country-code", "context", "amount", "payment-method-options"])
4650
+ createElementVNode("div", {
4651
+ class: normalizeClass({ "pointer-events-none opacity-60": isPaymentPending.value })
4652
+ }, [
4653
+ createVNode(unref(PaymentIntegrationForm), {
4654
+ ref_key: "paymentIntegrationFormRef",
4655
+ ref: paymentIntegrationFormRef,
4656
+ "country-code": unref(checkoutForm).form.value.country,
4657
+ context: unref(authorizationContext),
4658
+ amount: unref(amount),
4659
+ email: unref(checkoutForm).form.value.email,
4660
+ variant: "AUTHORIZE",
4661
+ "payment-method-options": unref(paymentMethodOptions) ?? [],
4662
+ "validate-on-submit": handleValidateOnSubmit,
4663
+ "force-store-payment-method": "",
4664
+ onPaymentSuccess: handlePaymentSuccess,
4665
+ onPaymentFailed: handlePaymentFailed,
4666
+ onReady: _cache[3] || (_cache[3] = ($event) => emit("ready"))
4667
+ }, null, 8, ["country-code", "context", "amount", "email", "payment-method-options"])
4668
+ ], 2)
4754
4669
  ])) : createCommentVNode("", true)
4755
4670
  ])) : createCommentVNode("", true)
4756
4671
  ]),
@@ -4761,14 +4676,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4761
4676
  }),
4762
4677
  aside: withCtx(() => [
4763
4678
  createElementVNode("div", _hoisted_5, [
4764
- createVNode(_sfc_main$K, {
4679
+ createVNode(_sfc_main$H, {
4765
4680
  variant: "section",
4766
4681
  class: "min-h-[220px]"
4767
4682
  }, {
4768
4683
  default: withCtx(() => {
4769
4684
  var _a2;
4770
4685
  return [
4771
- unref(subscription) && unref(invoicePreview) ? (openBlock(), createBlock(_sfc_main$j, {
4686
+ unref(subscription) && unref(invoicePreview) ? (openBlock(), createBlock(_sfc_main$h, {
4772
4687
  key: 0,
4773
4688
  subscription: unref(subscription),
4774
4689
  invoice: unref(invoicePreview),
@@ -4788,7 +4703,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4788
4703
  _: 1
4789
4704
  })
4790
4705
  ]),
4791
- !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$3, {
4706
+ !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$2, {
4792
4707
  key: 0,
4793
4708
  class: "sv-checkout__promotion-code",
4794
4709
  "promotion-code": promotionCode.value,
@@ -4796,23 +4711,24 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4796
4711
  onRemove: unref(removePromotionCode),
4797
4712
  onApply: unref(applyPromotionCode)
4798
4713
  }, null, 8, ["promotion-code", "onRemove", "onApply"])) : createCommentVNode("", true),
4799
- unref(promotionCodeErrorMessage) ? (openBlock(), createBlock(unref(_sfc_main$P), {
4714
+ unref(promotionCodeErrorMessage) ? (openBlock(), createBlock(unref(_sfc_main$N), {
4800
4715
  key: 1,
4801
4716
  class: "sv-checkout__promotion-error mt-2",
4802
4717
  title: unref(promotionCodeErrorMessage)
4803
4718
  }, null, 8, ["title"])) : createCommentVNode("", true),
4804
4719
  createElementVNode("div", _hoisted_6, [
4805
- !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$K, {
4720
+ !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$H, {
4806
4721
  key: 0,
4807
4722
  class: "sv-checkout__submit-skeleton min-h-[44px]"
4808
4723
  }, {
4809
4724
  default: withCtx(() => [
4810
- unref(invoicePreview) ? (openBlock(), createBlock(unref(_sfc_main$v), {
4725
+ unref(invoicePreview) ? (openBlock(), createBlock(unref(_sfc_main$t), {
4811
4726
  key: 0,
4812
4727
  type: "button",
4813
4728
  size: "lg",
4814
4729
  class: "sv-action sv-action--primary sv-action--full-width sv-checkout__submit w-full",
4815
- disabled: unref(isPromotionCodePending) || unref(paymentMethodOptions).length === 0,
4730
+ disabled: unref(isPromotionCodePending) || unref(paymentMethodOptions).length === 0 || isPaymentPending.value,
4731
+ loading: isPaymentPending.value,
4816
4732
  onClick: handleSubmit
4817
4733
  }, {
4818
4734
  default: withCtx(() => [
@@ -4827,11 +4743,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4827
4743
  })), 1)
4828
4744
  ]),
4829
4745
  _: 1
4830
- }, 8, ["disabled"])) : createCommentVNode("", true)
4746
+ }, 8, ["disabled", "loading"])) : createCommentVNode("", true)
4831
4747
  ]),
4832
4748
  _: 1
4833
4749
  })) : createCommentVNode("", true),
4834
- createVNode(_sfc_main$2, { "payment-method-options": unref(paymentMethodOptions) }, null, 8, ["payment-method-options"])
4750
+ createVNode(_sfc_main$O, { "payment-method-options": unref(paymentMethodOptions) }, null, 8, ["payment-method-options"])
4835
4751
  ])
4836
4752
  ]),
4837
4753
  _: 1