@solvimon/solvimon-web 0.1.0-alpha.6 → 0.1.0-alpha.8

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 (160) hide show
  1. package/dist/ApiStatus-CyNDp_op.mjs +9 -0
  2. package/dist/ApiStatus-oqvUEWJx.js +1 -0
  3. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C-C0i6i6.js +1 -0
  4. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DZ1XkSJ3.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CT0Tjsnw.mjs} +4 -4
  5. package/dist/{ContentWithAsideLayout-D_T137tN.mjs → ContentWithAsideLayout-BTdixy3L.mjs} +2 -11
  6. package/dist/ContentWithAsideLayout-oAYVrLvL.js +1 -0
  7. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DK6tiecN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CK73bYUe.mjs} +11 -11
  8. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CLU7Yiyx.js +1 -0
  9. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B_WLgBur.js +1 -0
  10. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BWXmZmGZ.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dt_Vb7Wz.mjs} +2 -2
  11. package/dist/PaymentHistoryBlock-DHM-3fh-.js +1 -0
  12. package/dist/PaymentHistoryBlock-YzJ6bxKr.mjs +4 -0
  13. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BSn_Zy0Y.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D6Cr2Uga.mjs} +5 -5
  14. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DFw8lrDv.js +1 -0
  15. package/dist/PaymentIntegrationForm-Cl5ua8v8.js +1 -0
  16. package/dist/PaymentIntegrationForm-ID4QnvA3.mjs +4 -0
  17. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CVWPT3Ni.mjs +910 -0
  18. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DifRn1ok.js +1 -0
  19. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CKNMt-JH.js +1 -0
  20. package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-X7-dfeZP.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-CzS32ZUt.mjs} +5 -30
  21. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-AxYjVFUM.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BIxGqr9U.mjs} +20 -20
  22. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CpEqDnO3.js +1 -0
  23. package/dist/adyen-51SvcyqV.mjs +4 -0
  24. package/dist/adyen-DZsyEXkw.js +1 -0
  25. package/dist/adyenLoader-CEH4A2b2.js +1 -0
  26. package/dist/adyenLoader-gsbzSjYV.mjs +177 -0
  27. package/dist/component-C2Gc-wsE.js +1 -0
  28. package/dist/component-CM9g6tbD.mjs +804 -0
  29. package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -1
  30. package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
  31. package/dist/components/BillingInformation/BillingInformation.es.js +14 -14
  32. package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -1
  33. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
  34. package/dist/components/BillingInformationForm/BillingInformationForm.es.js +28 -32
  35. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -1
  36. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
  37. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +3 -7
  38. package/dist/components/Invoice/Invoice.ce.d.ts +1 -1
  39. package/dist/components/Invoice/Invoice.cjs.js +1 -1
  40. package/dist/components/Invoice/Invoice.es.js +42 -75
  41. package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -1
  42. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
  43. package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -7
  44. package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -1
  45. package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
  46. package/dist/components/InvoicesList/InvoicesList.es.js +2 -6
  47. package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -1
  48. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
  49. package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -7
  50. package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -1
  51. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
  52. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +10 -34
  53. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -1
  54. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
  55. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +7 -10
  56. package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -1
  57. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
  58. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +4 -8
  59. package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -1
  60. package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
  61. package/dist/components/WalletBalances/WalletBalances.es.js +3 -7
  62. package/dist/core/index.cjs.js +1 -1
  63. package/dist/core/index.es.js +1 -1
  64. package/dist/core/types.d.ts +2 -0
  65. package/dist/customer-C_Hz_npf.js +1 -0
  66. package/dist/customer-TIi7iZFw.mjs +32 -0
  67. package/dist/en-US-CBoPxQwX.mjs +199 -0
  68. package/dist/en-US-DJq-9dD8.js +1 -0
  69. package/dist/index.cjs.js +1 -1
  70. package/dist/index.d.ts +1 -0
  71. package/dist/index.es.js +4 -1
  72. package/dist/{invoices-C7BHqB0g.mjs → invoices-BuVOuTOm.mjs} +2 -1
  73. package/dist/invoices-DbvwXAsm.js +1 -0
  74. package/dist/nl-NL-BB7KbK-h.mjs +181 -0
  75. package/dist/nl-NL-CtU1Lg2F.js +1 -0
  76. package/dist/paymentMethods-B4AYGf0K.js +1 -0
  77. package/dist/{paymentMethods-BA7Kt8ti.mjs → paymentMethods-Di32oJ39.mjs} +2 -1
  78. package/dist/{payments-NTHUh5je.mjs → payments-C5fD1PXB.mjs} +1 -1
  79. package/dist/{payments-B8W0W6wZ.js → payments-DeutKq9x.js} +1 -1
  80. package/dist/{registry-DgRnFEVF.mjs → registry-BLwMl1bK.mjs} +6 -5
  81. package/dist/registry-CMSmkLcy.js +1 -0
  82. package/dist/screens/Checkout/Checkout.ce.d.ts +1 -1
  83. package/dist/screens/Checkout/Checkout.cjs.js +1 -1
  84. package/dist/screens/Checkout/Checkout.es.js +589 -857
  85. package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -1
  86. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
  87. package/dist/screens/CustomerOverview/CustomerOverview.es.js +13 -14
  88. package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +3 -0
  89. package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -0
  90. package/dist/screens/PayInvoice/PayInvoice.es.js +456 -0
  91. package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +1 -1
  92. package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
  93. package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +81 -57
  94. package/dist/solvimon-web.css +1 -1
  95. package/dist/source-DKDKBlUm.mjs +179 -0
  96. package/dist/source-dkMNFWDc.js +1 -0
  97. package/dist/{subscriptions-BEoXaAHw.mjs → subscriptions-mOgjjzUi.mjs} +2 -1
  98. package/dist/subscriptions-wdMADcQZ.js +1 -0
  99. package/dist/{useActionDispatchProvider-zSXRlc2S.mjs → useActionDispatchProvider-B4gszz0Q.mjs} +1 -1
  100. package/dist/{useActionDispatchProvider-DmTJ_bqE.js → useActionDispatchProvider-DfS2P0bd.js} +1 -1
  101. package/dist/useCustomer-DanZzn-l.js +1 -0
  102. package/dist/useCustomer-cbhDyWJL.mjs +25 -0
  103. package/dist/useIncrementalLoading-DFe5Yh8M.js +1 -0
  104. package/dist/{useIncrementalLoading-Bgs0mqyb.mjs → useIncrementalLoading-RRicokf1.mjs} +3 -4
  105. package/dist/useInvoiceData-CxxHa5R2.js +1 -0
  106. package/dist/{useInvoiceData-B6P2VShe.mjs → useInvoiceData-fS6G_244.mjs} +6 -12
  107. package/dist/{useInvoicesList-23Ra-23Z.mjs → useInvoicesList-BQQxcPdz.mjs} +22 -22
  108. package/dist/useInvoicesList-CtJqmblZ.js +1 -0
  109. package/dist/usePaymentMethodOptions-2MloZ9bY.mjs +26 -0
  110. package/dist/usePaymentMethodOptions-D01YWW3G.js +1 -0
  111. package/dist/{usePaymentMethods-BK4unvj2.js → usePaymentMethods-Cm9WdSW0.js} +1 -1
  112. package/dist/{usePaymentMethods-B8Nft16c.mjs → usePaymentMethods-DZvfWSlx.mjs} +2 -2
  113. package/dist/usePayments-B13S_yai.js +1 -0
  114. package/dist/usePayments-D4uGKBsV.mjs +36 -0
  115. package/dist/usePortal-DJDJNLbo.mjs +12 -0
  116. package/dist/usePortal-DWJEVkTj.js +1 -0
  117. package/dist/useService-9fCKPTmu.js +1 -0
  118. package/dist/useService-BuWWE5ND.mjs +68 -0
  119. package/dist/useViewport-Bu0cyeSi.mjs +38 -0
  120. package/dist/useViewport-CKRY1CKR.js +1 -0
  121. package/dist/{useWalletBalanceItems-DreHuOra.mjs → useWalletBalanceItems-B53Gkjro.mjs} +8 -7
  122. package/dist/useWalletBalanceItems-BMaVT4TW.js +1 -0
  123. package/dist/useWatchDebounced-2ZLnfgvG.js +1 -0
  124. package/dist/useWatchDebounced-D1xuIX6_.mjs +12 -0
  125. package/dist/vendor-ui-BwxuPDg8.mjs +28598 -0
  126. package/dist/vendor-ui-Ce_Yp7xA.js +1 -0
  127. package/package.json +30 -17
  128. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-eRGZRjmq.js +0 -1
  129. package/dist/ContentWithAsideLayout-BZJPhvLh.js +0 -1
  130. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BvmKLc2H.js +0 -1
  131. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DNWspHtC.js +0 -1
  132. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Cx4c8E4i.js +0 -1
  133. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Ct26TY0a.js +0 -1
  134. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-WRXecMCj.mjs +0 -6568
  135. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-KnhKv07X.js +0 -1
  136. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D9_G7CyE.js +0 -1
  137. package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
  138. package/dist/_Uint8Array-DxISR7XF.js +0 -1
  139. package/dist/cloneDeep-DranHQkY.js +0 -1
  140. package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
  141. package/dist/component-DI3AxwdD.mjs +0 -58733
  142. package/dist/component-yWF07boR.js +0 -1
  143. package/dist/index-2jo9BSPM.js +0 -1
  144. package/dist/index-BFZ0dPh9.mjs +0 -179
  145. package/dist/index-CWSXne1Q.js +0 -1
  146. package/dist/index-D3v7hAtc.mjs +0 -253
  147. package/dist/invoices-CjBHfDXp.js +0 -1
  148. package/dist/paymentMethods-A-5SBmy1.js +0 -1
  149. package/dist/registry-SwmYGFn7.js +0 -1
  150. package/dist/sprite-DZD704h3-CCc3Mz1x.js +0 -1
  151. package/dist/sprite-DZD704h3-DZD704h3.mjs +0 -4
  152. package/dist/subscriptions-DSi93KpN.js +0 -1
  153. package/dist/useCustomer-DkrBNt5f.mjs +0 -45
  154. package/dist/useCustomer-fK-w7ifj.js +0 -1
  155. package/dist/useIncrementalLoading-BK6N8sYW.js +0 -1
  156. package/dist/useInvoiceData-CS7hLTea.js +0 -1
  157. package/dist/useInvoicesList-CIFGVsDj.js +0 -1
  158. package/dist/useService-B4qv5N2D.mjs +0 -281
  159. package/dist/useService-D-CUtlp3.js +0 -1
  160. package/dist/useWalletBalanceItems-NlFk6jPD.js +0 -1
@@ -1,500 +1,21 @@
1
- import { unref, inject, ref, computed, onMounted, watch, defineComponent, useModel, openBlock, createElementBlock, withModifiers, createElementVNode, createVNode, withCtx, Fragment, createTextVNode, toDisplayString, createBlock, createCommentVNode, mergeModels, createSlots, renderSlot, normalizeClass, renderList, toRef, nextTick, withDirectives, withKeys, vShow } from "vue";
2
- import { a2 as I18N_INJECTION_KEY, a3 as convertDateRangeToTimePeriod, F as useValidation, G as objectDiff, b as useIntl, a4 as getCountryNameByCode, d as _sfc_main$1g, _ as _sfc_main$2$1, J as _sfc_main$2a, K as _sfc_main$1$, l as _sfc_main$2H, a5 as _sfc_main$2j, L as _sfc_main$20, a6 as _sfc_main$15, a7 as _sfc_main$2e, a8 as _sfc_main$14, a9 as TooltipContent, aa as _sfc_main$1s, ab as formatBillingPeriod, N as formatAmount, ac as _sfc_main$2K, ad as useTimePeriod, e as _sfc_main$3$1, ae as _sfc_main$1T, af as _sfc_main$a$1, ag as _sfc_main$9$1, m as _sfc_main$4$1, ah as isValidCountryCode, R as _sfc_main$2q, ai as _sfc_main$1Y, aj as usePricingItem, ak as _sfc_main$1X, al as _sfc_main$1L, C as _sfc_main$16, o as _sfc_main$t, p as defineCustomElement, n as getComponentName } from "../../component-DI3AxwdD.mjs";
3
- import { c as createSubscriptionsService } from "../../subscriptions-BEoXaAHw.mjs";
4
- import { S as Symbol$1, m as isArrayLike, d as isArray, i as isBuffer, c as isTypedArray, p as isArguments, a as getTag, k as isPrototype, q as baseKeys, A as ApiStatus } from "../../_Uint8Array-DHE03FZr.mjs";
5
- import { l as lodashExports, a as _sfc_main$o, u as useLogger, g as getAdyenExpressCheckoutConfiguration, t as transformObjectToAdyenObject, c as createReturnUrl, _ as _sfc_main$s } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-WRXecMCj.mjs";
6
- import { c as createInvoicesService } from "../../invoices-C7BHqB0g.mjs";
1
+ import { ref, computed, onMounted, watch, defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, useModel, createElementBlock, withModifiers, Fragment, createCommentVNode, createSlots, normalizeClass, mergeModels, renderSlot, renderList, toRef, nextTick, withDirectives, withKeys, vShow, defineAsyncComponent } from "vue";
2
+ import { $ as taxId, a0 as convertDateRangeToTimePeriod, H as useValidation, J as objectDiff, u as useIntl, a1 as _sfc_main$q, _ as _sfc_main$r, a2 as isEUCountry, a3 as isValidCountryCode, a4 as getCountryNameByCode, b as _sfc_main$s, M as _sfc_main$t, N as _sfc_main$u, e as _sfc_main$v, a5 as _sfc_main$w, O as _sfc_main$x, a6 as _sfc_main$y, a7 as _sfc_main$z, a8 as _sfc_main$A, a9 as TooltipContent, aa as _sfc_main$B, ab as formatBillingPeriod, v as formatAmount, ac as _sfc_main$D, ad as useTimePeriod, f as _sfc_main$E, ae as _sfc_main$G, af as _sfc_main$H, ag as _sfc_main$I, t as _sfc_main$J, D as _sfc_main$L, ah as _sfc_main$M, ai as usePricingItem, aj as _sfc_main$N, ak as _sfc_main$O, A as _sfc_main$P } from "../../vendor-ui-BwxuPDg8.mjs";
3
+ import { a as useLogger, _ as _sfc_main$Q, d as defineCustomElement, g as getComponentName } from "../../component-CM9g6tbD.mjs";
4
+ import { c as createSubscriptionsService } from "../../subscriptions-mOgjjzUi.mjs";
5
+ import { A as ApiStatus } from "../../ApiStatus-CyNDp_op.mjs";
6
+ import { i as isEqual, u as useService, a as isEmpty } from "../../useService-BuWWE5ND.mjs";
7
+ import { c as createInvoicesService } from "../../invoices-BuVOuTOm.mjs";
7
8
  import { a as requiredIf, r as required, e as email } from "../../index-CzL1ZcGi.mjs";
8
- import { w as watchDebounced, f as watchOnce } from "../../index-BFZ0dPh9.mjs";
9
- import { c as cloneDeep } from "../../cloneDeep-sm9cY-u2.mjs";
10
- import { c as createPaymentMethodsService } from "../../paymentMethods-BA7Kt8ti.mjs";
11
- import { u as useService } from "../../useService-B4qv5N2D.mjs";
12
- import { u as usePortal, C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-D_T137tN.mjs";
13
- import { _ as _sfc_main$p, a as _sfc_main$r } from "../../PricingGroupContent.vue_vue_type_script_setup_true_lang-X7-dfeZP.mjs";
14
- import { a as useBreakpoints, b as breakpointsTailwind } from "../../index-D3v7hAtc.mjs";
15
- import { _ as _sfc_main$q } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs";
16
- import { c as createPaymentsService } from "../../payments-NTHUh5je.mjs";
17
- var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0;
18
- symbolProto ? symbolProto.toString : void 0;
19
- function baseToString(value) {
20
- {
21
- return value;
22
- }
23
- }
24
- function toString(value) {
25
- return baseToString(value);
26
- }
27
- var mapTag = "[object Map]", setTag = "[object Set]";
28
- var objectProto = Object.prototype;
29
- var hasOwnProperty = objectProto.hasOwnProperty;
30
- function isEmpty(value) {
31
- if (value == null) {
32
- return true;
33
- }
34
- if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value))) {
35
- return !value.length;
36
- }
37
- var tag = getTag(value);
38
- if (tag == mapTag || tag == setTag) {
39
- return !value.size;
40
- }
41
- if (isPrototype(value)) {
42
- return !baseKeys(value).length;
43
- }
44
- for (var key in value) {
45
- if (hasOwnProperty.call(value, key)) {
46
- return false;
47
- }
48
- }
49
- return true;
50
- }
51
- var idCounter = 0;
52
- function uniqueId(prefix) {
53
- var id = ++idCounter;
54
- return toString(prefix) + id;
55
- }
56
- function ownKeys(object, enumerableOnly) {
57
- var keys = Object.keys(object);
58
- if (Object.getOwnPropertySymbols) {
59
- var symbols = Object.getOwnPropertySymbols(object);
60
- enumerableOnly && (symbols = symbols.filter(function(sym) {
61
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
62
- })), keys.push.apply(keys, symbols);
63
- }
64
- return keys;
65
- }
66
- function _objectSpread2(target) {
67
- for (var i = 1; i < arguments.length; i++) {
68
- var source = null != arguments[i] ? arguments[i] : {};
69
- i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
70
- _defineProperty(target, key, source[key]);
71
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
72
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
73
- });
74
- }
75
- return target;
76
- }
77
- function _defineProperty(obj, key, value) {
78
- if (key in obj) {
79
- Object.defineProperty(obj, key, {
80
- value,
81
- enumerable: true,
82
- configurable: true,
83
- writable: true
84
- });
85
- } else {
86
- obj[key] = value;
87
- }
88
- return obj;
89
- }
90
- function isFunction(val) {
91
- return typeof val === "function";
92
- }
93
- function isObject(o) {
94
- return o !== null && typeof o === "object" && !Array.isArray(o);
95
- }
96
- function normalizeValidatorObject(validator) {
97
- return isFunction(validator.$validator) ? _objectSpread2({}, validator) : {
98
- $validator: validator
99
- };
100
- }
101
- function unwrapValidatorResponse(result) {
102
- if (typeof result === "object") return result.$valid;
103
- return result;
104
- }
105
- function unwrapNormalizedValidator(validator) {
106
- return validator.$validator || validator;
107
- }
108
- function withParams($params, $validator) {
109
- if (!isObject($params)) throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof $params}`);
110
- if (!isObject($validator) && !isFunction($validator)) throw new Error(`[@vuelidate/validators]: Validator must be a function or object with $validator parameter`);
111
- const validatorObj = normalizeValidatorObject($validator);
112
- validatorObj.$params = _objectSpread2(_objectSpread2({}, validatorObj.$params || {}), $params);
113
- return validatorObj;
114
- }
115
- function withMessage($message, $validator) {
116
- if (!isFunction($message) && typeof unref($message) !== "string") throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof $message}`);
117
- if (!isObject($validator) && !isFunction($validator)) throw new Error(`[@vuelidate/validators]: Validator must be a function or object with $validator parameter`);
118
- const validatorObj = normalizeValidatorObject($validator);
119
- validatorObj.$message = $message;
120
- return validatorObj;
121
- }
122
- function withAsync($validator) {
123
- let $watchTargets = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
124
- const validatorObj = normalizeValidatorObject($validator);
125
- return _objectSpread2(_objectSpread2({}, validatorObj), {}, {
126
- $async: true,
127
- $watchTargets
128
- });
129
- }
130
- function forEach(validators) {
131
- return {
132
- $validator(collection) {
133
- for (var _len = arguments.length, others = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
134
- others[_key - 1] = arguments[_key];
135
- }
136
- return unref(collection).reduce((previous, collectionItem, index) => {
137
- const collectionEntryResult = Object.entries(collectionItem).reduce((all, _ref) => {
138
- let [property, $model] = _ref;
139
- const innerValidators = validators[property] || {};
140
- const propertyResult = Object.entries(innerValidators).reduce((all2, _ref2) => {
141
- let [validatorName, currentValidator] = _ref2;
142
- const validatorFunction = unwrapNormalizedValidator(currentValidator);
143
- const $response = validatorFunction.call(this, $model, collectionItem, index, ...others);
144
- const $valid = unwrapValidatorResponse($response);
145
- all2.$data[validatorName] = $response;
146
- all2.$data.$invalid = !$valid || !!all2.$data.$invalid;
147
- all2.$data.$error = all2.$data.$invalid;
148
- if (!$valid) {
149
- let $message = currentValidator.$message || "";
150
- const $params = currentValidator.$params || {};
151
- if (typeof $message === "function") {
152
- $message = $message({
153
- $pending: false,
154
- $invalid: !$valid,
155
- $params,
156
- $model,
157
- $response
158
- });
159
- }
160
- all2.$errors.push({
161
- $property: property,
162
- $message,
163
- $params,
164
- $response,
165
- $model,
166
- $pending: false,
167
- $validator: validatorName
168
- });
169
- }
170
- return {
171
- $valid: all2.$valid && $valid,
172
- $data: all2.$data,
173
- $errors: all2.$errors
174
- };
175
- }, {
176
- $valid: true,
177
- $data: {},
178
- $errors: []
179
- });
180
- all.$data[property] = propertyResult.$data;
181
- all.$errors[property] = propertyResult.$errors;
182
- return {
183
- $valid: all.$valid && propertyResult.$valid,
184
- $data: all.$data,
185
- $errors: all.$errors
186
- };
187
- }, {
188
- $valid: true,
189
- $data: {},
190
- $errors: {}
191
- });
192
- return {
193
- $valid: previous.$valid && collectionEntryResult.$valid,
194
- $data: previous.$data.concat(collectionEntryResult.$data),
195
- $errors: previous.$errors.concat(collectionEntryResult.$errors)
196
- };
197
- }, {
198
- $valid: true,
199
- $data: [],
200
- $errors: []
201
- });
202
- },
203
- $message: (_ref3) => {
204
- let {
205
- $response
206
- } = _ref3;
207
- return $response ? $response.$errors.map((context) => {
208
- return Object.values(context).map((errors) => errors.map((error) => error.$message)).reduce((a, b) => a.concat(b), []);
209
- }) : [];
210
- }
211
- };
212
- }
213
- const req = (value) => {
214
- value = unref(value);
215
- if (Array.isArray(value)) return !!value.length;
216
- if (value === void 0 || value === null) {
217
- return false;
218
- }
219
- if (value === false) {
220
- return true;
221
- }
222
- if (value instanceof Date) {
223
- return !isNaN(value.getTime());
224
- }
225
- if (typeof value === "object") {
226
- for (let _ in value) return true;
227
- return false;
228
- }
229
- return !!String(value).length;
230
- };
231
- const len = (value) => {
232
- value = unref(value);
233
- if (Array.isArray(value)) return value.length;
234
- if (typeof value === "object") {
235
- return Object.keys(value).length;
236
- }
237
- return String(value).length;
238
- };
239
- function regex() {
240
- for (var _len = arguments.length, expr = new Array(_len), _key = 0; _key < _len; _key++) {
241
- expr[_key] = arguments[_key];
242
- }
243
- return (value) => {
244
- value = unref(value);
245
- return !req(value) || expr.every((reg) => {
246
- reg.lastIndex = 0;
247
- return reg.test(value);
248
- });
249
- };
250
- }
251
- var common = /* @__PURE__ */ Object.freeze({
252
- __proto__: null,
253
- forEach,
254
- len,
255
- normalizeValidatorObject,
256
- regex,
257
- req,
258
- unwrap: unref,
259
- unwrapNormalizedValidator,
260
- unwrapValidatorResponse,
261
- withAsync,
262
- withMessage,
263
- withParams
264
- });
265
- regex(/^[a-zA-Z]*$/);
266
- regex(/^[a-zA-Z0-9]*$/);
267
- regex(/^\d*(\.\d+)?$/);
268
- const emailRegex = /^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
269
- regex(emailRegex);
270
- const urlRegex = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;
271
- regex(urlRegex);
272
- regex(/(^[0-9]*$)|(^-[0-9]+$)/);
273
- regex(/^[-]?\d*(\.\d+)?$/);
274
- const taxIdMap = {
275
- AT: {
276
- regex: /^ATU\d{8}$/,
277
- prefix: "AT",
278
- example: "ATU12345678"
279
- },
280
- BE: {
281
- regex: /^BE0?\d{9}$/,
282
- prefix: "BE",
283
- example: "BE0123456789"
284
- },
285
- BG: {
286
- regex: /^BG\d{9,10}$/,
287
- prefix: "BG",
288
- example: "BG123456789"
289
- },
290
- HR: {
291
- regex: /^HR\d{11}$/,
292
- prefix: "HR",
293
- example: "HR12345678901"
294
- },
295
- CY: {
296
- regex: /^CY\d{8}[A-Z]$/,
297
- prefix: "CY",
298
- example: "CY12345678X"
299
- },
300
- CZ: {
301
- regex: /^CZ\d{8,10}$/,
302
- prefix: "CZ",
303
- example: "CZ12345678"
304
- },
305
- DE: {
306
- regex: /^DE\d{9}$/,
307
- prefix: "DE",
308
- example: "DE123456789"
309
- },
310
- DK: {
311
- regex: /^DK\d{8}$/,
312
- prefix: "DK",
313
- example: "DK12345678"
314
- },
315
- EE: {
316
- regex: /^EE\d{9}$/,
317
- prefix: "EE",
318
- example: "EE123456789"
319
- },
320
- GR: {
321
- regex: /^(EL|GR)\d{9}$/,
322
- prefix: "GR",
323
- example: "GR123456789"
324
- },
325
- ES: {
326
- regex: /^ES[A-Z0-9]\d{7}[A-Z0-9]$/,
327
- prefix: "ES",
328
- example: "ESX1234567X"
329
- },
330
- FI: {
331
- regex: /^FI\d{8}$/,
332
- prefix: "FI",
333
- example: "FI12345678"
334
- },
335
- FR: {
336
- regex: /^FR[0-9A-Z]{2}\d{9}$/,
337
- prefix: "FR",
338
- example: "FRXX123456789"
339
- },
340
- HU: {
341
- regex: /^HU\d{8}$/,
342
- prefix: "HU",
343
- example: "HU12345678"
344
- },
345
- IE: {
346
- regex: /^IE[0-9A-Z]{8,9}$/,
347
- prefix: "IE",
348
- example: "IE1234567A"
349
- },
350
- IS: {
351
- regex: /^IS\d{5}$/,
352
- prefix: "IS",
353
- example: "IS12345"
354
- },
355
- IT: {
356
- regex: /^IT\d{11}$/,
357
- prefix: "IT",
358
- example: "IT12345678901"
359
- },
360
- LT: {
361
- regex: /^LT(\d{9}|\d{12})$/,
362
- prefix: "LT",
363
- example: "LT123456789 or LT123456789012"
364
- },
365
- LU: {
366
- regex: /^LU\d{8}$/,
367
- prefix: "LU",
368
- example: "LU12345678"
369
- },
370
- LV: {
371
- regex: /^LV\d{11}$/,
372
- prefix: "LV",
373
- example: "LV12345678901"
374
- },
375
- ME: {
376
- regex: /^ME\d{9}$/,
377
- prefix: "ME",
378
- example: "ME123456789"
379
- },
380
- MT: {
381
- regex: /^MT\d{8}$/,
382
- prefix: "MT",
383
- example: "MT12345678"
384
- },
385
- NL: {
386
- regex: /^NL\d{9}B\d{2}$/,
387
- prefix: "NL",
388
- example: "NL123456789B01"
389
- },
390
- PL: {
391
- regex: /^PL\d{10}$/,
392
- prefix: "PL",
393
- example: "PL1234567890"
394
- },
395
- PT: {
396
- regex: /^PT\d{9}$/,
397
- prefix: "PT",
398
- example: "PT123456789"
399
- },
400
- RO: {
401
- regex: /^RO\d{2,10}$/,
402
- prefix: "RO",
403
- example: "RO1234567890"
404
- },
405
- RU: {
406
- regex: /^RU(\d{9}|\d{10}|\d{12})$/,
407
- prefix: "RU",
408
- example: "RU123456789 or RU1234567890 or RU123456789012"
409
- },
410
- SE: {
411
- regex: /^SE\d{10}01$/,
412
- prefix: "SE",
413
- example: "SE123456789001"
414
- },
415
- SI: {
416
- regex: /^SI\d{8}$/,
417
- prefix: "SI",
418
- example: "SI12345678"
419
- },
420
- SK: {
421
- regex: /^SK\d{10}$/,
422
- prefix: "SK",
423
- example: "SK1234567890"
424
- },
425
- CH: {
426
- regex: /^CHE\d{9}(MWST|TVA|IVA)?$/,
427
- prefix: "CHE",
428
- example: "CHE123456789MWST"
429
- },
430
- NO: {
431
- regex: /^NO\d{9}MVA$/,
432
- prefix: "NO",
433
- example: "NO123456789MVA"
434
- },
435
- GB: {
436
- regex: /^GB(\d{9}|\d{12}|GD\d{3}|HA\d{3})$/,
437
- prefix: "GB",
438
- example: "GB123456789"
439
- },
440
- XI: {
441
- regex: /^XI(\d{9}|\d{12})$/,
442
- prefix: "XI",
443
- example: "XI123456789"
444
- }
445
- };
446
- const taxIdValidator = (value) => {
447
- if (!value || typeof value !== "string" || value.trim() === "") {
448
- return true;
449
- }
450
- return Object.values(taxIdMap).some((entry) => entry.regex.test(value));
451
- };
452
- const getTaxIdMessage = ({ $model }) => {
453
- if (!$model || typeof $model !== "string" || $model.trim() === "") {
454
- return "";
455
- }
456
- const intl = inject(I18N_INJECTION_KEY, null);
457
- if (!intl) {
458
- return "Invalid tax ID";
459
- }
460
- const { formatMessage } = intl;
461
- const matchingEntry = Object.values(taxIdMap).find(
462
- (entry) => $model.toUpperCase().startsWith(entry.prefix.toUpperCase())
463
- );
464
- if (matchingEntry) {
465
- return formatMessage(
466
- {
467
- defaultMessage: "Invalid tax ID format. Example: {example}",
468
- id: "form_validation.tax_id.invalid_format",
469
- description: "Error message when tax ID format is invalid but prefix matches"
470
- },
471
- { example: matchingEntry.example }
472
- );
473
- }
474
- return formatMessage({
475
- defaultMessage: "Invalid tax ID",
476
- id: "taxId.invalid",
477
- description: "Error message when tax ID is invalid"
478
- });
479
- };
480
- const taxId = common.withMessage(getTaxIdMessage, taxIdValidator);
481
- const everythingButWhitespaceOrEmptyValidator = (value) => {
482
- if (value === null || value === void 0) return false;
483
- const str = String(value);
484
- return /^\S+$/.test(str);
485
- };
486
- common.withMessage(
487
- "Everything but whitespace",
488
- everythingButWhitespaceOrEmptyValidator
489
- );
490
- const everythingButWhitespaceValidator = (value) => {
491
- if (!common.req(value)) return true;
492
- return everythingButWhitespaceOrEmptyValidator(String(value));
493
- };
494
- common.withMessage(
495
- "Everything but whitespace",
496
- everythingButWhitespaceValidator
497
- );
9
+ import { u as useWatchDebounced } from "../../useWatchDebounced-D1xuIX6_.mjs";
10
+ import { c as createPaymentMethodsService } from "../../paymentMethods-Di32oJ39.mjs";
11
+ import { u as usePortal } from "../../usePortal-DJDJNLbo.mjs";
12
+ import { c as createCustomerService } from "../../customer-TIi7iZFw.mjs";
13
+ import { _ as _sfc_main$C, l as loadAdyen, e as getAdyenExpressCheckoutConfiguration, c as transformObjectToAdyenObject, d as createReturnUrl, s as safeUrlRedirect } from "../../adyenLoader-gsbzSjYV.mjs";
14
+ import { _ as _sfc_main$F } from "../../PricingGroupContent.vue_vue_type_script_setup_true_lang-CzS32ZUt.mjs";
15
+ import { u as useViewport } from "../../useViewport-Bu0cyeSi.mjs";
16
+ import { _ as _sfc_main$K } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs";
17
+ import { c as createPaymentsService } from "../../payments-C5fD1PXB.mjs";
18
+ import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-BTdixy3L.mjs";
498
19
  function getFirstPricingPlanScheduleOfType({
499
20
  pricingPlanScheduleInfos,
500
21
  type
@@ -513,9 +34,37 @@ function getPricingItemConfigMetaById({
513
34
  (_a = category.pricings) == null ? void 0 : _a.forEach((pricing) => {
514
35
  var _a2;
515
36
  (_a2 = pricing.items) == null ? void 0 : _a2.forEach((item) => {
516
- var _a3;
517
- (_a3 = item.pricing_currency_configs) == null ? void 0 : _a3.forEach((currencyConfig) => {
518
- var _a4, _b;
37
+ var _a3, _b, _c;
38
+ (_a3 = item.billing_period_configs) == null ? void 0 : _a3.forEach((billingConfig) => {
39
+ var _a4;
40
+ (_a4 = billingConfig.configs) == null ? void 0 : _a4.forEach((config) => {
41
+ var _a5, _b2, _c2, _d;
42
+ if (config.id) {
43
+ const currency = (_d = (_c2 = (_b2 = (_a5 = config.details) == null ? void 0 : _a5.bands) == null ? void 0 : _b2.find((band) => {
44
+ var _a6;
45
+ return (_a6 = band.amount) == null ? void 0 : _a6.currency;
46
+ })) == null ? void 0 : _c2.amount) == null ? void 0 : _d.currency;
47
+ metaById.set(config.id, {
48
+ ...currency && { currency },
49
+ billingPeriod: billingConfig.billing_period
50
+ });
51
+ }
52
+ });
53
+ });
54
+ (_b = item.configs) == null ? void 0 : _b.forEach((config) => {
55
+ var _a4, _b2, _c2, _d;
56
+ if (config.id) {
57
+ const currency = (_d = (_c2 = (_b2 = (_a4 = config.details) == null ? void 0 : _a4.bands) == null ? void 0 : _b2.find((band) => {
58
+ var _a5;
59
+ return (_a5 = band.amount) == null ? void 0 : _a5.currency;
60
+ })) == null ? void 0 : _c2.amount) == null ? void 0 : _d.currency;
61
+ metaById.set(config.id, {
62
+ ...currency && { currency }
63
+ });
64
+ }
65
+ });
66
+ (_c = item.pricing_currency_configs) == null ? void 0 : _c.forEach((currencyConfig) => {
67
+ var _a4, _b2;
519
68
  const currency = currencyConfig.currency;
520
69
  (_a4 = currencyConfig.billing_period_configs) == null ? void 0 : _a4.forEach((billingConfig) => {
521
70
  var _a5;
@@ -528,7 +77,7 @@ function getPricingItemConfigMetaById({
528
77
  }
529
78
  });
530
79
  });
531
- (_b = currencyConfig.configs) == null ? void 0 : _b.forEach((config) => {
80
+ (_b2 = currencyConfig.configs) == null ? void 0 : _b2.forEach((config) => {
532
81
  if (config.id) {
533
82
  metaById.set(config.id, { currency });
534
83
  }
@@ -934,7 +483,7 @@ const useInvoicePreview = () => {
934
483
  }
935
484
  };
936
485
  const cachedPayload = cachedPreviewPayloads.value[periodKey];
937
- if (cachedPayload && lodashExports.isEqual(payload, cachedPayload)) {
486
+ if (cachedPayload && isEqual(payload, cachedPayload)) {
938
487
  return { periodKey, response: void 0 };
939
488
  }
940
489
  cachedPreviewPayloads.value = {
@@ -1025,7 +574,7 @@ function useCheckoutForm({
1025
574
  const updateInitialState = (state) => {
1026
575
  const newState = getInitialState({ ...form.value, ...state });
1027
576
  form.value = newState;
1028
- initialFormState.value = cloneDeep(newState);
577
+ initialFormState.value = structuredClone(newState);
1029
578
  };
1030
579
  const requiredFields = computed(
1031
580
  () => getRequiredFieldsForCountry(form.value.country)
@@ -1076,9 +625,7 @@ function useCheckoutForm({
1076
625
  onMounted(async () => {
1077
626
  await getCountryFromGeoLocationService(initialState == null ? void 0 : initialState.country);
1078
627
  });
1079
- watchDebounced(() => cloneDeep(form.value), handleFormChange, {
1080
- debounce: 200
1081
- });
628
+ useWatchDebounced(() => structuredClone(form.value), handleFormChange, { debounce: 200 });
1082
629
  return {
1083
630
  form,
1084
631
  validation,
@@ -1128,7 +675,7 @@ const usePaymentMethodOptions = () => {
1128
675
  country,
1129
676
  amount
1130
677
  };
1131
- if (lodashExports.isEqual(payload, cachedPayload.value)) {
678
+ if (isEqual(payload, cachedPayload.value)) {
1132
679
  return;
1133
680
  }
1134
681
  cachedPayload.value = payload;
@@ -1456,7 +1003,7 @@ function useCheckoutView({
1456
1003
  } catch {
1457
1004
  }
1458
1005
  });
1459
- watchOnce(shouldLoadPaymentMethodOptions, (shouldLoad) => {
1006
+ watch(shouldLoadPaymentMethodOptions, (shouldLoad) => {
1460
1007
  if (shouldLoad) {
1461
1008
  void loadPaymentMethodOptions({
1462
1009
  subscriptionId: subscription.value.id,
@@ -1464,7 +1011,7 @@ function useCheckoutView({
1464
1011
  amount: amount.value
1465
1012
  });
1466
1013
  }
1467
- });
1014
+ }, { once: true });
1468
1015
  return {
1469
1016
  invoicePreview: invoicePreview.invoicePreview,
1470
1017
  invoicePreviewByBillingPeriod: invoicePreview.invoicePreviewByBillingPeriod,
@@ -1559,16 +1106,111 @@ function usePromotionCode({
1559
1106
  function isFieldError(error) {
1560
1107
  return typeof error === "object" && error !== null && "field" in error;
1561
1108
  }
1562
- const _hoisted_1$k = { class: "grid grid-cols-1 gap-1" };
1563
- const _hoisted_2$b = { class: "grid grid-cols-1 gap-2" };
1564
- const _hoisted_3$5 = { key: 0 };
1109
+ const _hoisted_1$m = { class: "flex items-center gap-2" };
1110
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1111
+ __name: "TaxIDCheckNotice",
1112
+ props: {
1113
+ taxIdValidationResult: { type: Object }
1114
+ },
1115
+ setup(__props) {
1116
+ const props = __props;
1117
+ const { formatMessage } = useIntl();
1118
+ const isTaxIdValid = computed(() => {
1119
+ return props.taxIdValidationResult.valid === "VALID";
1120
+ });
1121
+ const taxIdValidationMessage = computed(() => {
1122
+ return isTaxIdValid.value ? formatMessage({
1123
+ defaultMessage: "VAT number is valid.",
1124
+ id: "tax_check.valid_vat_number",
1125
+ description: "The message shown when the VAT number is valid"
1126
+ }) : formatMessage({
1127
+ defaultMessage: "VAT number is invalid.",
1128
+ id: "tax_check.invalid_vat_number",
1129
+ description: "The message shown when the VAT number is invalid"
1130
+ });
1131
+ });
1132
+ return (_ctx, _cache) => {
1133
+ return openBlock(), createBlock(unref(_sfc_main$q), {
1134
+ type: isTaxIdValid.value ? "success" : "danger",
1135
+ icon: false
1136
+ }, {
1137
+ default: withCtx(() => [
1138
+ createElementVNode("div", _hoisted_1$m, [
1139
+ createVNode(unref(_sfc_main$r), { variant: "body-xs" }, {
1140
+ default: withCtx(() => [
1141
+ createTextVNode(toDisplayString(taxIdValidationMessage.value), 1)
1142
+ ]),
1143
+ _: 1
1144
+ })
1145
+ ])
1146
+ ]),
1147
+ _: 1
1148
+ }, 8, ["type"]);
1149
+ };
1150
+ }
1151
+ });
1152
+ function useTaxIDValidationCheck(form) {
1153
+ const { checkTaxID } = createCustomerService();
1154
+ const taxIdValidationData = ref(void 0);
1155
+ const taxId2 = computed(() => {
1156
+ var _a;
1157
+ return ((_a = form.value.companyVatNumber) == null ? void 0 : _a.trim()) ?? "";
1158
+ });
1159
+ const legalName = computed(() => form.value.companyLegalName ?? "");
1160
+ const countryCode = computed(() => form.value.country);
1161
+ const isTaxIDCheckPending = ref(false);
1162
+ const isSelectedCountryEU = computed(() => {
1163
+ return isEUCountry(countryCode.value ?? "");
1164
+ });
1165
+ const isTaxIDCheckEnabled = computed(() => !!(taxId2.value && legalName.value && countryCode.value));
1166
+ const showViesCheckNotice = computed(() => {
1167
+ return isSelectedCountryEU.value && taxId2.value;
1168
+ });
1169
+ async function runTaxIDCheck() {
1170
+ var _a;
1171
+ if (!isTaxIDCheckEnabled.value || !isSelectedCountryEU.value || !countryCode.value) {
1172
+ return;
1173
+ }
1174
+ isTaxIDCheckPending.value = true;
1175
+ try {
1176
+ const result = await checkTaxID({
1177
+ type: "ORGANIZATION",
1178
+ organization: {
1179
+ legal_name: legalName.value,
1180
+ tax_ids: [{ id: taxId2.value, type: "GENERIC_TAX_ID" }],
1181
+ registered_address: {
1182
+ country: countryCode.value
1183
+ }
1184
+ }
1185
+ });
1186
+ if ((_a = result == null ? void 0 : result.data) == null ? void 0 : _a.length) {
1187
+ taxIdValidationData.value = result.data[0];
1188
+ } else {
1189
+ taxIdValidationData.value = void 0;
1190
+ }
1191
+ } finally {
1192
+ isTaxIDCheckPending.value = false;
1193
+ }
1194
+ }
1195
+ return {
1196
+ runTaxIDCheck,
1197
+ taxIdValidationData,
1198
+ isTaxIDCheckPending,
1199
+ isTaxIDCheckEnabled,
1200
+ showViesCheckNotice,
1201
+ isSelectedCountryEU
1202
+ };
1203
+ }
1204
+ const _hoisted_1$l = { class: "grid grid-cols-1 gap-1" };
1205
+ const _hoisted_2$d = { class: "grid grid-cols-1 gap-2" };
1206
+ const _hoisted_3$6 = { key: 0 };
1565
1207
  const _hoisted_4$4 = { class: "mt-2 flex flex-col gap-3" };
1566
1208
  const _hoisted_5$2 = { class: "grid grid-cols-3 gap-2" };
1567
1209
  const _hoisted_6$1 = { class: "flex grow flex-col" };
1568
1210
  const _hoisted_7$1 = { key: 0 };
1569
1211
  const _hoisted_8$1 = { class: "mt-4 grid grid-cols-1 gap-3" };
1570
1212
  const FORM_ID = "checkout-form";
1571
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
1213
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1572
1214
  __name: "CheckoutForm",
1573
1215
  props: /* @__PURE__ */ mergeModels({
1574
1216
  validation: { type: null },
@@ -1594,7 +1236,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1594
1236
  }
1595
1237
  });
1596
1238
  const isCompanyPurchase = computed(() => model.value.type === "ORGANIZATION");
1239
+ const country = computed({
1240
+ get: () => model.value.country,
1241
+ set: (value) => {
1242
+ model.value.country = value && isValidCountryCode(value) ? value : void 0;
1243
+ }
1244
+ });
1597
1245
  const showVatIdInput = computed(() => model.value.country !== "US");
1246
+ const { isTaxIDCheckEnabled, isTaxIDCheckPending, taxIdValidationData, runTaxIDCheck } = useTaxIDValidationCheck(model);
1598
1247
  const { $t } = useIntl();
1599
1248
  const getOptionalSuffix = (field) => {
1600
1249
  if (props.getIsFieldRequired(field)) {
@@ -1614,8 +1263,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1614
1263
  id: FORM_ID,
1615
1264
  onSubmit: _cache[12] || (_cache[12] = withModifiers(($event) => _ctx.$emit("submit", model.value), ["prevent"]))
1616
1265
  }, [
1617
- createElementVNode("div", _hoisted_1$k, [
1618
- createVNode(unref(_sfc_main$1g), {
1266
+ createElementVNode("div", _hoisted_1$l, [
1267
+ createVNode(unref(_sfc_main$s), {
1619
1268
  title: unref($t)({
1620
1269
  defaultMessage: "Customer information",
1621
1270
  id: "checkout.contact_information_block.title",
@@ -1623,9 +1272,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1623
1272
  })
1624
1273
  }, {
1625
1274
  default: withCtx(() => [
1626
- createElementVNode("div", _hoisted_2$b, [
1275
+ createElementVNode("div", _hoisted_2$d, [
1627
1276
  __props.readOnly ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1628
- createVNode(unref(_sfc_main$2$1), {
1277
+ createVNode(unref(_sfc_main$r), {
1629
1278
  variant: "body",
1630
1279
  tag: "span",
1631
1280
  weight: "semibold",
@@ -1636,7 +1285,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1636
1285
  ]),
1637
1286
  _: 1
1638
1287
  }),
1639
- createVNode(unref(_sfc_main$2$1), {
1288
+ createVNode(unref(_sfc_main$r), {
1640
1289
  variant: "body-sm",
1641
1290
  tag: "span",
1642
1291
  shade: "lighter",
@@ -1648,7 +1297,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1648
1297
  _: 1
1649
1298
  })
1650
1299
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1651
- createVNode(unref(_sfc_main$2a), {
1300
+ createVNode(unref(_sfc_main$t), {
1652
1301
  modelValue: model.value.email,
1653
1302
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value.email = $event),
1654
1303
  required: "",
@@ -1667,9 +1316,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1667
1316
  }) + getOptionalSuffix("email"),
1668
1317
  error: __props.validation.value.email.$errors
1669
1318
  }, null, 8, ["modelValue", "disabled", "label", "placeholder", "error"]),
1670
- createVNode(unref(_sfc_main$1$), {
1671
- "single-model-value": model.value.country,
1672
- "onUpdate:singleModelValue": _cache[3] || (_cache[3] = ($event) => model.value.country = $event),
1319
+ createVNode(unref(_sfc_main$u), {
1320
+ "single-model-value": country.value,
1321
+ "onUpdate:singleModelValue": _cache[3] || (_cache[3] = ($event) => country.value = $event),
1673
1322
  required: "",
1674
1323
  name: "country",
1675
1324
  label: unref($t)({
@@ -1680,7 +1329,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1680
1329
  error: __props.validation.value.country.$errors
1681
1330
  }, {
1682
1331
  "label-suffix": withCtx(() => [
1683
- !showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$2H), {
1332
+ !showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$v), {
1684
1333
  key: 0,
1685
1334
  size: "xs",
1686
1335
  variant: "ghost",
@@ -1697,7 +1346,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1697
1346
  ]),
1698
1347
  _: 1
1699
1348
  })) : createCommentVNode("", true),
1700
- showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$2H), {
1349
+ showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$v), {
1701
1350
  key: 1,
1702
1351
  size: "sm",
1703
1352
  variant: "ghost",
@@ -1719,11 +1368,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1719
1368
  }, 8, ["single-model-value", "label", "error"])
1720
1369
  ], 64))
1721
1370
  ]),
1722
- createVNode(unref(_sfc_main$2j), null, {
1371
+ createVNode(unref(_sfc_main$w), null, {
1723
1372
  default: withCtx(() => [
1724
- showBillingDetails.value || __props.isBillingInformationMandatory ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
1373
+ showBillingDetails.value || __props.isBillingInformationMandatory ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
1725
1374
  createElementVNode("div", _hoisted_4$4, [
1726
- createVNode(unref(_sfc_main$2a), {
1375
+ createVNode(unref(_sfc_main$t), {
1727
1376
  modelValue: model.value.addressLine1,
1728
1377
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => model.value.addressLine1 = $event),
1729
1378
  name: "address_line_1",
@@ -1740,7 +1389,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1740
1389
  required: "",
1741
1390
  error: __props.validation.value.addressLine1.$errors
1742
1391
  }, null, 8, ["modelValue", "label", "placeholder", "error"]),
1743
- createVNode(unref(_sfc_main$2a), {
1392
+ createVNode(unref(_sfc_main$t), {
1744
1393
  modelValue: model.value.addressLine2,
1745
1394
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => model.value.addressLine2 = $event),
1746
1395
  name: "address_line_2",
@@ -1751,7 +1400,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1751
1400
  }) + getOptionalSuffix("addressLine2")
1752
1401
  }, null, 8, ["modelValue", "placeholder"]),
1753
1402
  createElementVNode("div", _hoisted_5$2, [
1754
- createVNode(unref(_sfc_main$2a), {
1403
+ createVNode(unref(_sfc_main$t), {
1755
1404
  modelValue: model.value.postalCode,
1756
1405
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => model.value.postalCode = $event),
1757
1406
  name: "postal_code",
@@ -1762,7 +1411,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1762
1411
  }) + getOptionalSuffix("postalCode"),
1763
1412
  error: __props.validation.value.addressLine1.$errors
1764
1413
  }, null, 8, ["modelValue", "placeholder", "error"]),
1765
- createVNode(unref(_sfc_main$2a), {
1414
+ createVNode(unref(_sfc_main$t), {
1766
1415
  modelValue: model.value.city,
1767
1416
  "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => model.value.city = $event),
1768
1417
  name: "city",
@@ -1772,7 +1421,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1772
1421
  description: "City of the customer address in the checkout form"
1773
1422
  }) + getOptionalSuffix("city")
1774
1423
  }, null, 8, ["modelValue", "placeholder"]),
1775
- createVNode(unref(_sfc_main$2a), {
1424
+ createVNode(unref(_sfc_main$t), {
1776
1425
  modelValue: model.value.state,
1777
1426
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => model.value.state = $event),
1778
1427
  name: "state",
@@ -1792,9 +1441,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1792
1441
  ]),
1793
1442
  _: 1
1794
1443
  }, 8, ["title"]),
1795
- !__props.readOnly ? (openBlock(), createBlock(unref(_sfc_main$1g), { key: 0 }, {
1444
+ !__props.readOnly ? (openBlock(), createBlock(unref(_sfc_main$s), { key: 0 }, {
1796
1445
  default: withCtx(() => [
1797
- createVNode(unref(_sfc_main$20), {
1446
+ createVNode(unref(_sfc_main$x), {
1798
1447
  modelValue: companyPurchaseModel.value,
1799
1448
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => companyPurchaseModel.value = $event),
1800
1449
  "no-spacing": "",
@@ -1803,7 +1452,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1803
1452
  }, {
1804
1453
  "inline-label": withCtx(() => [
1805
1454
  createElementVNode("div", _hoisted_6$1, [
1806
- createVNode(unref(_sfc_main$2$1), { tag: "span" }, {
1455
+ createVNode(unref(_sfc_main$r), { tag: "span" }, {
1807
1456
  default: withCtx(() => [
1808
1457
  createTextVNode(toDisplayString(unref($t)({
1809
1458
  defaultMessage: "Company purchase",
@@ -1813,7 +1462,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1813
1462
  ]),
1814
1463
  _: 1
1815
1464
  }),
1816
- createVNode(unref(_sfc_main$2$1), {
1465
+ createVNode(unref(_sfc_main$r), {
1817
1466
  tag: "span",
1818
1467
  variant: "body-xs",
1819
1468
  shade: "lighter"
@@ -1831,30 +1480,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1831
1480
  ]),
1832
1481
  _: 1
1833
1482
  }, 8, ["modelValue"]),
1834
- createVNode(unref(_sfc_main$2j), null, {
1483
+ createVNode(unref(_sfc_main$w), null, {
1835
1484
  default: withCtx(() => [
1836
1485
  isCompanyPurchase.value ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
1837
1486
  createElementVNode("div", _hoisted_8$1, [
1838
- showVatIdInput.value ? (openBlock(), createBlock(unref(_sfc_main$2a), {
1839
- key: 0,
1840
- modelValue: model.value.companyVatNumber,
1841
- "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => model.value.companyVatNumber = $event),
1842
- name: "vat_number",
1843
- label: unref($t)({
1844
- defaultMessage: "VAT number",
1845
- id: "checkout.vat_number.label",
1846
- description: "The label for the vat number in the checkout form"
1847
- }),
1848
- placeholder: unref($t)({
1849
- defaultMessage: "VAT number...",
1850
- id: "checkout.vat_number.placeholder",
1851
- description: "The label for the vat number in the checkout form"
1852
- }),
1853
- error: __props.validation.value.companyVatNumber.$errors
1854
- }, null, 8, ["modelValue", "label", "placeholder", "error"])) : createCommentVNode("", true),
1855
- createVNode(unref(_sfc_main$2a), {
1487
+ createVNode(unref(_sfc_main$t), {
1856
1488
  modelValue: model.value.companyLegalName,
1857
- "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => model.value.companyLegalName = $event),
1489
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => model.value.companyLegalName = $event),
1858
1490
  required: "",
1859
1491
  name: "legal_name",
1860
1492
  label: unref($t)({
@@ -1867,7 +1499,55 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1867
1499
  id: "checkout.legal_name.placeholder",
1868
1500
  description: "The legal name of the organization customer in the checkout form"
1869
1501
  })
1870
- }, null, 8, ["modelValue", "label", "placeholder"])
1502
+ }, null, 8, ["modelValue", "label", "placeholder"]),
1503
+ showVatIdInput.value ? (openBlock(), createBlock(unref(_sfc_main$t), {
1504
+ key: 0,
1505
+ modelValue: model.value.companyVatNumber,
1506
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => model.value.companyVatNumber = $event),
1507
+ name: "vat_number",
1508
+ "input-class": "focus:outline-none focus:ring-0",
1509
+ label: unref($t)({
1510
+ defaultMessage: "VAT number",
1511
+ id: "checkout.vat_number.label",
1512
+ description: "The label for the vat number in the checkout form"
1513
+ }),
1514
+ placeholder: unref($t)({
1515
+ defaultMessage: "VAT number...",
1516
+ id: "checkout.vat_number.placeholder",
1517
+ description: "The label for the vat number in the checkout form"
1518
+ }),
1519
+ error: __props.validation.value.companyVatNumber.$errors,
1520
+ "suffix-class": "px-2 border-l-0"
1521
+ }, createSlots({ _: 2 }, [
1522
+ unref(isEUCountry)(model.value.country ?? "") ? {
1523
+ name: "suffix",
1524
+ fn: withCtx(() => [
1525
+ createVNode(unref(_sfc_main$v), {
1526
+ type: "button",
1527
+ size: "sm",
1528
+ color: "green",
1529
+ disabled: !unref(isTaxIDCheckEnabled) || unref(isTaxIDCheckPending) || __props.validation.value.companyVatNumber.$invalid,
1530
+ onClick: unref(runTaxIDCheck)
1531
+ }, {
1532
+ default: withCtx(() => [
1533
+ createTextVNode(toDisplayString(unref($t)({
1534
+ defaultMessage: "Check",
1535
+ id: "checkout.vat_number.check_button.label",
1536
+ description: "The label for the check button in the checkout form"
1537
+ })), 1)
1538
+ ]),
1539
+ _: 1
1540
+ }, 8, ["disabled", "onClick"])
1541
+ ]),
1542
+ key: "0"
1543
+ } : void 0
1544
+ ]), 1032, ["modelValue", "label", "placeholder", "error"])) : createCommentVNode("", true),
1545
+ unref(taxIdValidationData) ? (openBlock(), createElementBlock("div", {
1546
+ key: 1,
1547
+ class: normalizeClass({ "opacity-75": unref(isTaxIDCheckPending) })
1548
+ }, [
1549
+ createVNode(_sfc_main$p, { "tax-id-validation-result": unref(taxIdValidationData) }, null, 8, ["tax-id-validation-result"])
1550
+ ], 2)) : createCommentVNode("", true)
1871
1551
  ])
1872
1552
  ])) : createCommentVNode("", true)
1873
1553
  ]),
@@ -1881,13 +1561,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1881
1561
  };
1882
1562
  }
1883
1563
  });
1884
- const _hoisted_1$j = {
1564
+ const _hoisted_1$k = {
1885
1565
  key: 0,
1886
1566
  class: "flex items-center"
1887
1567
  };
1888
- const _hoisted_2$a = ["innerHTML"];
1889
- const _hoisted_3$4 = ["innerHTML"];
1890
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
1568
+ const _hoisted_2$c = ["innerHTML"];
1569
+ const _hoisted_3$5 = ["innerHTML"];
1570
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1891
1571
  __name: "CheckoutTitle",
1892
1572
  props: {
1893
1573
  trialPeriod: { type: Object },
@@ -1903,7 +1583,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1903
1583
  return (_ctx, _cache) => {
1904
1584
  return openBlock(), createElementBlock(Fragment, null, [
1905
1585
  createElementVNode("div", null, [
1906
- createVNode(unref(_sfc_main$2$1), {
1586
+ createVNode(unref(_sfc_main$r), {
1907
1587
  variant: "heading-1",
1908
1588
  class: "inline-block"
1909
1589
  }, {
@@ -1913,7 +1593,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1913
1593
  id: "checkout.page_title",
1914
1594
  description: "The title of the checkout page"
1915
1595
  })) + toDisplayString(" "), 1),
1916
- __props.trialPeriod ? (openBlock(), createBlock(unref(_sfc_main$15), {
1596
+ __props.trialPeriod ? (openBlock(), createBlock(unref(_sfc_main$y), {
1917
1597
  key: 0,
1918
1598
  "trial-period": __props.trialPeriod,
1919
1599
  size: "lg",
@@ -1923,18 +1603,18 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1923
1603
  _: 1
1924
1604
  })
1925
1605
  ]),
1926
- createVNode(unref(_sfc_main$2$1), {
1606
+ createVNode(unref(_sfc_main$r), {
1927
1607
  variant: "body-sm",
1928
1608
  shade: "lighter",
1929
1609
  "no-spacing": ""
1930
1610
  }, {
1931
1611
  default: withCtx(() => [
1932
- !__props.countryCode ? (openBlock(), createElementBlock("span", _hoisted_1$j, [
1933
- createVNode(unref(_sfc_main$2e), { "is-dark-mode": "" }, {
1612
+ !__props.countryCode ? (openBlock(), createElementBlock("span", _hoisted_1$k, [
1613
+ createVNode(unref(_sfc_main$z), { "is-dark-mode": "" }, {
1934
1614
  tooltip: withCtx(() => [
1935
1615
  createVNode(unref(TooltipContent), null, {
1936
1616
  default: withCtx(() => [
1937
- createVNode(unref(_sfc_main$1s), null, {
1617
+ createVNode(unref(_sfc_main$B), null, {
1938
1618
  default: withCtx(() => [
1939
1619
  createTextVNode(toDisplayString(unref($t)({
1940
1620
  defaultMessage: "Will be determined by billing information",
@@ -1949,7 +1629,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1949
1629
  })
1950
1630
  ]),
1951
1631
  default: withCtx(() => [
1952
- createVNode(unref(_sfc_main$14), {
1632
+ createVNode(unref(_sfc_main$A), {
1953
1633
  "width-class": "w-10",
1954
1634
  "height-class": "h-4",
1955
1635
  shade: "darker",
@@ -1986,7 +1666,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1986
1666
  })
1987
1667
  }
1988
1668
  )
1989
- }, null, 8, _hoisted_2$a)
1669
+ }, null, 8, _hoisted_2$c)
1990
1670
  ])) : (openBlock(), createElementBlock("span", {
1991
1671
  key: 1,
1992
1672
  innerHTML: __props.trialStartDate ? unref($t)(
@@ -2022,7 +1702,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2022
1702
  strong: (text) => `<strong>${text}</strong>`
2023
1703
  }
2024
1704
  )
2025
- }, null, 8, _hoisted_3$4))
1705
+ }, null, 8, _hoisted_3$5))
2026
1706
  ]),
2027
1707
  _: 1
2028
1708
  })
@@ -2045,9 +1725,9 @@ const isInvoiceUsageBased = (invoice) => {
2045
1725
  )
2046
1726
  )) ?? false;
2047
1727
  };
2048
- const _hoisted_1$i = { class: "flex w-full min-h-96 justify-center items-center" };
2049
- const _hoisted_2$9 = { class: "max-w-sm" };
2050
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
1728
+ const _hoisted_1$j = { class: "flex w-full min-h-96 justify-center items-center" };
1729
+ const _hoisted_2$b = { class: "max-w-sm" };
1730
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2051
1731
  __name: "CheckoutNotAvailable",
2052
1732
  setup(__props) {
2053
1733
  const { $t } = useIntl();
@@ -2055,9 +1735,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
2055
1735
  window.location.reload();
2056
1736
  };
2057
1737
  return (_ctx, _cache) => {
2058
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
2059
- createElementVNode("div", _hoisted_2$9, [
2060
- createVNode(unref(_sfc_main$2$1), { variant: "heading-1" }, {
1738
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
1739
+ createElementVNode("div", _hoisted_2$b, [
1740
+ createVNode(unref(_sfc_main$r), { variant: "heading-1" }, {
2061
1741
  default: withCtx(() => [
2062
1742
  createTextVNode(toDisplayString(unref($t)({
2063
1743
  defaultMessage: "Checkout not available",
@@ -2067,7 +1747,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
2067
1747
  ]),
2068
1748
  _: 1
2069
1749
  }),
2070
- createVNode(unref(_sfc_main$2$1), {
1750
+ createVNode(unref(_sfc_main$r), {
2071
1751
  variant: "body-sm",
2072
1752
  shade: "lighter"
2073
1753
  }, {
@@ -2099,22 +1779,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
2099
1779
  };
2100
1780
  }
2101
1781
  });
2102
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
1782
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
2103
1783
  __name: "SubscriptionPaymentCompletedCard",
2104
- props: {
2105
- redirectUrl: { type: String }
2106
- },
1784
+ emits: ["continue-to-merchant"],
2107
1785
  setup(__props) {
2108
- const props = __props;
2109
1786
  const { $t } = useIntl();
2110
- onMounted(() => {
2111
- if (!props.redirectUrl) {
2112
- return;
2113
- }
2114
- window.location.replace(props.redirectUrl);
2115
- });
2116
1787
  return (_ctx, _cache) => {
2117
- return openBlock(), createBlock(_sfc_main$o, {
1788
+ return openBlock(), createBlock(_sfc_main$C, {
2118
1789
  status: "success",
2119
1790
  title: unref($t)({
2120
1791
  defaultMessage: "Payment successful",
@@ -2123,7 +1794,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2123
1794
  })
2124
1795
  }, {
2125
1796
  default: withCtx(() => [
2126
- createVNode(unref(_sfc_main$2$1), {
1797
+ createVNode(unref(_sfc_main$r), {
2127
1798
  variant: "body-xs",
2128
1799
  shade: "lighter",
2129
1800
  tag: "span"
@@ -2137,14 +1808,12 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2137
1808
  ]),
2138
1809
  _: 1
2139
1810
  }),
2140
- __props.redirectUrl ? (openBlock(), createBlock(unref(_sfc_main$2H), {
2141
- key: 0,
2142
- tag: "a",
2143
- href: __props.redirectUrl,
1811
+ createVNode(unref(_sfc_main$v), {
2144
1812
  color: "gray",
2145
1813
  variant: "outline",
2146
1814
  size: "xs",
2147
- class: "align-center"
1815
+ class: "align-center",
1816
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("continue-to-merchant"))
2148
1817
  }, {
2149
1818
  default: withCtx(() => [
2150
1819
  createTextVNode(toDisplayString(unref($t)({
@@ -2154,16 +1823,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2154
1823
  })), 1)
2155
1824
  ]),
2156
1825
  _: 1
2157
- }, 8, ["href"])) : createCommentVNode("", true)
1826
+ })
2158
1827
  ]),
2159
1828
  _: 1
2160
1829
  }, 8, ["title"]);
2161
1830
  };
2162
1831
  }
2163
1832
  });
2164
- const _hoisted_1$h = { class: "flex flex-row gap-3 px-3 py-2" };
2165
- const _hoisted_2$8 = { class: "grow" };
2166
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
1833
+ const _hoisted_1$i = { class: "flex flex-row gap-3 px-3 py-2" };
1834
+ const _hoisted_2$a = { class: "grow" };
1835
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2167
1836
  __name: "SubscriptionSummary",
2168
1837
  props: {
2169
1838
  subscription: { type: Object },
@@ -2210,15 +1879,15 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2210
1879
  return names;
2211
1880
  });
2212
1881
  return (_ctx, _cache) => {
2213
- return openBlock(), createElementBlock("div", _hoisted_1$h, [
2214
- __props.avatar ? (openBlock(), createBlock(unref(_sfc_main$2K), {
1882
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
1883
+ __props.avatar ? (openBlock(), createBlock(unref(_sfc_main$D), {
2215
1884
  key: 0,
2216
1885
  "image-src": __props.avatar,
2217
1886
  size: "lg",
2218
1887
  class: "my-1"
2219
1888
  }, null, 8, ["image-src"])) : createCommentVNode("", true),
2220
- createElementVNode("div", _hoisted_2$8, [
2221
- createVNode(unref(_sfc_main$2$1), {
1889
+ createElementVNode("div", _hoisted_2$a, [
1890
+ createVNode(unref(_sfc_main$r), {
2222
1891
  variant: "body",
2223
1892
  weight: "semibold",
2224
1893
  "no-spacing": ""
@@ -2228,7 +1897,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2228
1897
  ]),
2229
1898
  _: 1
2230
1899
  }),
2231
- selectedPricings.value ? (openBlock(), createBlock(unref(_sfc_main$2$1), {
1900
+ selectedPricings.value ? (openBlock(), createBlock(unref(_sfc_main$r), {
2232
1901
  key: 0,
2233
1902
  variant: "body-xs",
2234
1903
  shade: "lighter",
@@ -2239,7 +1908,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2239
1908
  ]),
2240
1909
  _: 1
2241
1910
  })) : createCommentVNode("", true),
2242
- description.value ? (openBlock(), createBlock(unref(_sfc_main$2$1), {
1911
+ description.value ? (openBlock(), createBlock(unref(_sfc_main$r), {
2243
1912
  key: 1,
2244
1913
  variant: "body-xs",
2245
1914
  shade: "lighter",
@@ -2258,11 +1927,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2258
1927
  };
2259
1928
  }
2260
1929
  });
2261
- const _hoisted_1$g = { class: "grid grid-cols-1 gap-1" };
2262
- const _hoisted_2$7 = { class: "px-3 py-2" };
2263
- const _hoisted_3$3 = { class: "flex flex-col gap-3" };
1930
+ const _hoisted_1$h = { class: "grid grid-cols-1 gap-1" };
1931
+ const _hoisted_2$9 = { class: "px-3 py-2" };
1932
+ const _hoisted_3$4 = { class: "flex flex-col gap-3" };
2264
1933
  const _hoisted_4$3 = { class: "px-3 py-2" };
2265
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
1934
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2266
1935
  __name: "OrderSummary",
2267
1936
  props: {
2268
1937
  subscription: { type: Object },
@@ -2286,9 +1955,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2286
1955
  const emit = __emit;
2287
1956
  const { $t } = useIntl();
2288
1957
  const { map, formatTimePeriod } = useTimePeriod();
2289
- const breakpoints = useBreakpoints(breakpointsTailwind);
2290
- const isMobile = breakpoints.smaller("md");
2291
- const saveBadgeSize = computed(() => isMobile.value ? "sm" : "xs");
1958
+ const { isMobileViewport } = useViewport();
1959
+ const saveBadgeSize = computed(() => isMobileViewport.value ? "sm" : "xs");
2292
1960
  const getBillingPeriodKey = (period) => `${period.type}:${period.value}`;
2293
1961
  const BILLING_PERIOD_TYPES = ["DAY", "WEEK", "MONTH", "YEAR"];
2294
1962
  const isBillingPeriodType = (value) => BILLING_PERIOD_TYPES.includes(value);
@@ -2485,7 +2153,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2485
2153
  label,
2486
2154
  subLabel: getSelectedPeriodAmountLabel(period),
2487
2155
  labelSuffixComponent: saveText ? {
2488
- component: _sfc_main$3$1,
2156
+ component: _sfc_main$E,
2489
2157
  props: {
2490
2158
  color: "primary",
2491
2159
  content: saveText,
@@ -2544,7 +2212,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2544
2212
  selectedBillingPeriodKey.value = checked ? biggestPeriod : smallestPeriod;
2545
2213
  };
2546
2214
  return (_ctx, _cache) => {
2547
- return openBlock(), createBlock(unref(_sfc_main$1g), {
2215
+ return openBlock(), createBlock(unref(_sfc_main$s), {
2548
2216
  "no-border": "",
2549
2217
  "no-spacing": "",
2550
2218
  "content-background": "none",
@@ -2555,10 +2223,10 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2555
2223
  })
2556
2224
  }, {
2557
2225
  default: withCtx(() => [
2558
- createElementVNode("div", _hoisted_1$g, [
2559
- createVNode(unref(_sfc_main$1g), { "no-spacing": "" }, {
2226
+ createElementVNode("div", _hoisted_1$h, [
2227
+ createVNode(unref(_sfc_main$s), { "no-spacing": "" }, {
2560
2228
  default: withCtx(() => [
2561
- __props.subscription ? (openBlock(), createBlock(_sfc_main$j, {
2229
+ __props.subscription ? (openBlock(), createBlock(_sfc_main$k, {
2562
2230
  key: 0,
2563
2231
  avatar: __props.avatar,
2564
2232
  invoice: __props.invoice,
@@ -2570,7 +2238,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2570
2238
  ]),
2571
2239
  _: 1
2572
2240
  }),
2573
- billingPeriodOptions.value.length === 2 ? (openBlock(), createBlock(unref(_sfc_main$1g), {
2241
+ billingPeriodOptions.value.length === 2 ? (openBlock(), createBlock(unref(_sfc_main$s), {
2574
2242
  key: 0,
2575
2243
  "no-spacing": "",
2576
2244
  "content-classes": selectedBillingPeriodKey.value === periodBounds.value.biggestPeriod ? "border-primary-500" : void 0
@@ -2578,15 +2246,15 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2578
2246
  default: withCtx(() => {
2579
2247
  var _a;
2580
2248
  return [
2581
- createElementVNode("div", _hoisted_2$7, [
2582
- createElementVNode("div", _hoisted_3$3, [
2583
- highOption.value ? (openBlock(), createBlock(_sfc_main$p, {
2249
+ createElementVNode("div", _hoisted_2$9, [
2250
+ createElementVNode("div", _hoisted_3$4, [
2251
+ highOption.value ? (openBlock(), createBlock(_sfc_main$F, {
2584
2252
  key: 0,
2585
2253
  name: highOption.value.label,
2586
2254
  description: ((_a = selectedBillingPeriodOption.value) == null ? void 0 : _a.subLabel) ?? ""
2587
2255
  }, createSlots({
2588
2256
  default: withCtx(() => [
2589
- createVNode(unref(_sfc_main$20), {
2257
+ createVNode(unref(_sfc_main$x), {
2590
2258
  "model-value": selectedBillingPeriodKey.value === periodBounds.value.biggestPeriod,
2591
2259
  "onUpdate:modelValue": handleBinaryBillingToggle
2592
2260
  }, null, 8, ["model-value"])
@@ -2596,7 +2264,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2596
2264
  toggleSaveText.value ? {
2597
2265
  name: "badge",
2598
2266
  fn: withCtx(() => [
2599
- createVNode(unref(_sfc_main$3$1), {
2267
+ createVNode(unref(_sfc_main$E), {
2600
2268
  color: "primary",
2601
2269
  content: toggleSaveText.value,
2602
2270
  size: saveBadgeSize.value,
@@ -2611,7 +2279,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2611
2279
  ];
2612
2280
  }),
2613
2281
  _: 1
2614
- }, 8, ["content-classes"])) : billingPeriodOptions.value.length > 2 ? (openBlock(), createBlock(unref(_sfc_main$1T), {
2282
+ }, 8, ["content-classes"])) : billingPeriodOptions.value.length > 2 ? (openBlock(), createBlock(unref(_sfc_main$G), {
2615
2283
  key: 1,
2616
2284
  "single-model-value": selectedBillingPeriodKey.value,
2617
2285
  "onUpdate:singleModelValue": _cache[0] || (_cache[0] = ($event) => selectedBillingPeriodKey.value = $event),
@@ -2621,13 +2289,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2621
2289
  "show-sub-label-in-input": "",
2622
2290
  "show-suffix-in-closed-input": ""
2623
2291
  }, null, 8, ["single-model-value", "options"])) : createCommentVNode("", true),
2624
- __props.isUsageBased ? (openBlock(), createBlock(unref(_sfc_main$1g), {
2292
+ __props.isUsageBased ? (openBlock(), createBlock(unref(_sfc_main$s), {
2625
2293
  key: 2,
2626
2294
  "no-spacing": ""
2627
2295
  }, {
2628
2296
  default: withCtx(() => [
2629
2297
  createElementVNode("div", _hoisted_4$3, [
2630
- createVNode(unref(_sfc_main$2$1), {
2298
+ createVNode(unref(_sfc_main$r), {
2631
2299
  "no-spacing": "",
2632
2300
  variant: "body-sm",
2633
2301
  shade: "lighter"
@@ -2645,14 +2313,14 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2645
2313
  ]),
2646
2314
  _: 1
2647
2315
  })) : createCommentVNode("", true),
2648
- __props.invoice && __props.variant !== "products-inline" ? (openBlock(), createBlock(unref(_sfc_main$a$1), {
2316
+ __props.invoice && __props.variant !== "products-inline" ? (openBlock(), createBlock(unref(_sfc_main$H), {
2649
2317
  key: 3,
2650
2318
  invoice: __props.invoice,
2651
- "wrapper-component": unref(_sfc_main$1g)
2319
+ "wrapper-component": unref(_sfc_main$s)
2652
2320
  }, null, 8, ["invoice", "wrapper-component"])) : createCommentVNode("", true),
2653
- createVNode(unref(_sfc_main$1g), null, {
2321
+ createVNode(unref(_sfc_main$s), null, {
2654
2322
  default: withCtx(() => [
2655
- __props.invoice ? (openBlock(), createBlock(unref(_sfc_main$9$1), {
2323
+ __props.invoice ? (openBlock(), createBlock(unref(_sfc_main$I), {
2656
2324
  key: 0,
2657
2325
  variant: __props.variant === "products-inline" ? "default" : "without-products",
2658
2326
  invoice: __props.invoice,
@@ -2661,7 +2329,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2661
2329
  collapsible: __props.collapsible,
2662
2330
  "is-preview-without-taxes": !__props.countryCode,
2663
2331
  "is-customer-facing": ""
2664
- }, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (openBlock(), createBlock(unref(_sfc_main$2$1), {
2332
+ }, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (openBlock(), createBlock(unref(_sfc_main$r), {
2665
2333
  key: 1,
2666
2334
  variant: "body-sm",
2667
2335
  shade: "lighter"
@@ -2685,23 +2353,23 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2685
2353
  };
2686
2354
  }
2687
2355
  });
2688
- const _hoisted_1$f = { class: "py-4 flex flex-col items-center justify-center" };
2689
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
2356
+ const _hoisted_1$g = { class: "py-4 flex flex-col items-center justify-center" };
2357
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2690
2358
  __name: "EmptyStatePlaceholder",
2691
2359
  props: {
2692
2360
  icon: { type: null }
2693
2361
  },
2694
2362
  setup(__props) {
2695
2363
  return (_ctx, _cache) => {
2696
- return openBlock(), createBlock(unref(_sfc_main$1g), null, {
2364
+ return openBlock(), createBlock(unref(_sfc_main$s), null, {
2697
2365
  default: withCtx(() => [
2698
- createElementVNode("div", _hoisted_1$f, [
2699
- createVNode(unref(_sfc_main$4$1), {
2366
+ createElementVNode("div", _hoisted_1$g, [
2367
+ createVNode(unref(_sfc_main$J), {
2700
2368
  icon: __props.icon,
2701
2369
  size: "lg",
2702
2370
  class: "text-gray-500"
2703
2371
  }, null, 8, ["icon"]),
2704
- createVNode(unref(_sfc_main$2$1), {
2372
+ createVNode(unref(_sfc_main$r), {
2705
2373
  center: "",
2706
2374
  tag: "span",
2707
2375
  variant: "body-sm",
@@ -2714,7 +2382,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2714
2382
  ]),
2715
2383
  _: 3
2716
2384
  }),
2717
- createVNode(unref(_sfc_main$2$1), {
2385
+ createVNode(unref(_sfc_main$r), {
2718
2386
  center: "",
2719
2387
  tag: "span",
2720
2388
  variant: "body-xs",
@@ -2733,19 +2401,19 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2733
2401
  };
2734
2402
  }
2735
2403
  });
2736
- const _hoisted_1$e = {
2404
+ const _hoisted_1$f = {
2737
2405
  key: 0,
2738
2406
  id: "svg-logo",
2739
2407
  viewBox: "0 0 35 15",
2740
2408
  class: "h-[44px]"
2741
2409
  };
2742
- const _hoisted_2$6 = {
2410
+ const _hoisted_2$8 = {
2743
2411
  key: 1,
2744
2412
  src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAxcHgiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxMDEgMzIiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaW5ZTWluIG1lZXQiIHhtbG5zPSJodHRwOiYjeDJGOyYjeDJGO3d3dy53My5vcmcmI3gyRjsyMDAwJiN4MkY7c3ZnIj48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDEyLjIzNyAyLjggTCA0LjQzNyAyLjggQyAzLjkzNyAyLjggMy40MzcgMy4yIDMuMzM3IDMuNyBMIDAuMjM3IDIzLjcgQyAwLjEzNyAyNC4xIDAuNDM3IDI0LjQgMC44MzcgMjQuNCBMIDQuNTM3IDI0LjQgQyA1LjAzNyAyNC40IDUuNTM3IDI0IDUuNjM3IDIzLjUgTCA2LjQzNyAxOC4xIEMgNi41MzcgMTcuNiA2LjkzNyAxNy4yIDcuNTM3IDE3LjIgTCAxMC4wMzcgMTcuMiBDIDE1LjEzNyAxNy4yIDE4LjEzNyAxNC43IDE4LjkzNyA5LjggQyAxOS4yMzcgNy43IDE4LjkzNyA2IDE3LjkzNyA0LjggQyAxNi44MzcgMy41IDE0LjgzNyAyLjggMTIuMjM3IDIuOCBaIE0gMTMuMTM3IDEwLjEgQyAxMi43MzcgMTIuOSAxMC41MzcgMTIuOSA4LjUzNyAxMi45IEwgNy4zMzcgMTIuOSBMIDguMTM3IDcuNyBDIDguMTM3IDcuNCA4LjQzNyA3LjIgOC43MzcgNy4yIEwgOS4yMzcgNy4yIEMgMTAuNjM3IDcuMiAxMS45MzcgNy4yIDEyLjYzNyA4IEMgMTMuMTM3IDguNCAxMy4zMzcgOS4xIDEzLjEzNyAxMC4xIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDM1LjQzNyAxMCBMIDMxLjczNyAxMCBDIDMxLjQzNyAxMCAzMS4xMzcgMTAuMiAzMS4xMzcgMTAuNSBMIDMwLjkzNyAxMS41IEwgMzAuNjM3IDExLjEgQyAyOS44MzcgOS45IDI4LjAzNyA5LjUgMjYuMjM3IDkuNSBDIDIyLjEzNyA5LjUgMTguNjM3IDEyLjYgMTcuOTM3IDE3IEMgMTcuNTM3IDE5LjIgMTguMDM3IDIxLjMgMTkuMzM3IDIyLjcgQyAyMC40MzcgMjQgMjIuMTM3IDI0LjYgMjQuMDM3IDI0LjYgQyAyNy4zMzcgMjQuNiAyOS4yMzcgMjIuNSAyOS4yMzcgMjIuNSBMIDI5LjAzNyAyMy41IEMgMjguOTM3IDIzLjkgMjkuMjM3IDI0LjMgMjkuNjM3IDI0LjMgTCAzMy4wMzcgMjQuMyBDIDMzLjUzNyAyNC4zIDM0LjAzNyAyMy45IDM0LjEzNyAyMy40IEwgMzYuMTM3IDEwLjYgQyAzNi4yMzcgMTAuNCAzNS44MzcgMTAgMzUuNDM3IDEwIFogTSAzMC4zMzcgMTcuMiBDIDI5LjkzNyAxOS4zIDI4LjMzNyAyMC44IDI2LjEzNyAyMC44IEMgMjUuMDM3IDIwLjggMjQuMjM3IDIwLjUgMjMuNjM3IDE5LjggQyAyMy4wMzcgMTkuMSAyMi44MzcgMTguMiAyMy4wMzcgMTcuMiBDIDIzLjMzNyAxNS4xIDI1LjEzNyAxMy42IDI3LjIzNyAxMy42IEMgMjguMzM3IDEzLjYgMjkuMTM3IDE0IDI5LjczNyAxNC42IEMgMzAuMjM3IDE1LjMgMzAuNDM3IDE2LjIgMzAuMzM3IDE3LjIgWiI+PC9wYXRoPjxwYXRoIGZpbGw9IiMwMDMwODciIGQ9Ik0gNTUuMzM3IDEwIEwgNTEuNjM3IDEwIEMgNTEuMjM3IDEwIDUwLjkzNyAxMC4yIDUwLjczNyAxMC41IEwgNDUuNTM3IDE4LjEgTCA0My4zMzcgMTAuOCBDIDQzLjIzNyAxMC4zIDQyLjczNyAxMCA0Mi4zMzcgMTAgTCAzOC42MzcgMTAgQyAzOC4yMzcgMTAgMzcuODM3IDEwLjQgMzguMDM3IDEwLjkgTCA0Mi4xMzcgMjMgTCAzOC4yMzcgMjguNCBDIDM3LjkzNyAyOC44IDM4LjIzNyAyOS40IDM4LjczNyAyOS40IEwgNDIuNDM3IDI5LjQgQyA0Mi44MzcgMjkuNCA0My4xMzcgMjkuMiA0My4zMzcgMjguOSBMIDU1LjgzNyAxMC45IEMgNTYuMTM3IDEwLjYgNTUuODM3IDEwIDU1LjMzNyAxMCBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA2Ny43MzcgMi44IEwgNTkuOTM3IDIuOCBDIDU5LjQzNyAyLjggNTguOTM3IDMuMiA1OC44MzcgMy43IEwgNTUuNzM3IDIzLjYgQyA1NS42MzcgMjQgNTUuOTM3IDI0LjMgNTYuMzM3IDI0LjMgTCA2MC4zMzcgMjQuMyBDIDYwLjczNyAyNC4zIDYxLjAzNyAyNCA2MS4wMzcgMjMuNyBMIDYxLjkzNyAxOCBDIDYyLjAzNyAxNy41IDYyLjQzNyAxNy4xIDYzLjAzNyAxNy4xIEwgNjUuNTM3IDE3LjEgQyA3MC42MzcgMTcuMSA3My42MzcgMTQuNiA3NC40MzcgOS43IEMgNzQuNzM3IDcuNiA3NC40MzcgNS45IDczLjQzNyA0LjcgQyA3Mi4yMzcgMy41IDcwLjMzNyAyLjggNjcuNzM3IDIuOCBaIE0gNjguNjM3IDEwLjEgQyA2OC4yMzcgMTIuOSA2Ni4wMzcgMTIuOSA2NC4wMzcgMTIuOSBMIDYyLjgzNyAxMi45IEwgNjMuNjM3IDcuNyBDIDYzLjYzNyA3LjQgNjMuOTM3IDcuMiA2NC4yMzcgNy4yIEwgNjQuNzM3IDcuMiBDIDY2LjEzNyA3LjIgNjcuNDM3IDcuMiA2OC4xMzcgOCBDIDY4LjYzNyA4LjQgNjguNzM3IDkuMSA2OC42MzcgMTAuMSBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA5MC45MzcgMTAgTCA4Ny4yMzcgMTAgQyA4Ni45MzcgMTAgODYuNjM3IDEwLjIgODYuNjM3IDEwLjUgTCA4Ni40MzcgMTEuNSBMIDg2LjEzNyAxMS4xIEMgODUuMzM3IDkuOSA4My41MzcgOS41IDgxLjczNyA5LjUgQyA3Ny42MzcgOS41IDc0LjEzNyAxMi42IDczLjQzNyAxNyBDIDczLjAzNyAxOS4yIDczLjUzNyAyMS4zIDc0LjgzNyAyMi43IEMgNzUuOTM3IDI0IDc3LjYzNyAyNC42IDc5LjUzNyAyNC42IEMgODIuODM3IDI0LjYgODQuNzM3IDIyLjUgODQuNzM3IDIyLjUgTCA4NC41MzcgMjMuNSBDIDg0LjQzNyAyMy45IDg0LjczNyAyNC4zIDg1LjEzNyAyNC4zIEwgODguNTM3IDI0LjMgQyA4OS4wMzcgMjQuMyA4OS41MzcgMjMuOSA4OS42MzcgMjMuNCBMIDkxLjYzNyAxMC42IEMgOTEuNjM3IDEwLjQgOTEuMzM3IDEwIDkwLjkzNyAxMCBaIE0gODUuNzM3IDE3LjIgQyA4NS4zMzcgMTkuMyA4My43MzcgMjAuOCA4MS41MzcgMjAuOCBDIDgwLjQzNyAyMC44IDc5LjYzNyAyMC41IDc5LjAzNyAxOS44IEMgNzguNDM3IDE5LjEgNzguMjM3IDE4LjIgNzguNDM3IDE3LjIgQyA3OC43MzcgMTUuMSA4MC41MzcgMTMuNiA4Mi42MzcgMTMuNiBDIDgzLjczNyAxMy42IDg0LjUzNyAxNCA4NS4xMzcgMTQuNiBDIDg1LjczNyAxNS4zIDg1LjkzNyAxNi4yIDg1LjczNyAxNy4yIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDA5Y2RlIiBkPSJNIDk1LjMzNyAzLjMgTCA5Mi4xMzcgMjMuNiBDIDkyLjAzNyAyNCA5Mi4zMzcgMjQuMyA5Mi43MzcgMjQuMyBMIDk1LjkzNyAyNC4zIEMgOTYuNDM3IDI0LjMgOTYuOTM3IDIzLjkgOTcuMDM3IDIzLjQgTCAxMDAuMjM3IDMuNSBDIDEwMC4zMzcgMy4xIDEwMC4wMzcgMi44IDk5LjYzNyAyLjggTCA5Ni4wMzcgMi44IEMgOTUuNjM3IDIuOCA5NS40MzcgMyA5NS4zMzcgMy4zIFoiPjwvcGF0aD48L3N2Zz4",
2745
2413
  role: "presentation",
2746
2414
  class: "h-[22px]"
2747
2415
  };
2748
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
2416
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2749
2417
  __name: "ExpressPaymentMethodButton",
2750
2418
  props: {
2751
2419
  type: { type: String }
@@ -2782,14 +2450,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2782
2450
  emit("click");
2783
2451
  }
2784
2452
  return (_ctx, _cache) => {
2785
- return openBlock(), createBlock(unref(_sfc_main$2H), {
2453
+ return openBlock(), createBlock(unref(_sfc_main$v), {
2786
2454
  size: "lg",
2787
2455
  "aria-label": ariaLabel.value,
2788
2456
  class: normalizeClass([buttonClasses.value, "!block w-full h-11 bg-center bg-no-repeat"]),
2789
2457
  onClick: handleClick
2790
2458
  }, {
2791
2459
  default: withCtx(() => [
2792
- props.type === "applepay" ? (openBlock(), createElementBlock("svg", _hoisted_1$e, [..._cache[0] || (_cache[0] = [
2460
+ props.type === "applepay" ? (openBlock(), createElementBlock("svg", _hoisted_1$f, [..._cache[0] || (_cache[0] = [
2793
2461
  createElementVNode("svg", {
2794
2462
  id: "svg-logo",
2795
2463
  x: "0",
@@ -2817,16 +2485,16 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2817
2485
  ])
2818
2486
  ])
2819
2487
  ], -1)
2820
- ])])) : props.type === "paypal" ? (openBlock(), createElementBlock("img", _hoisted_2$6)) : createCommentVNode("", true)
2488
+ ])])) : props.type === "paypal" ? (openBlock(), createElementBlock("img", _hoisted_2$8)) : createCommentVNode("", true)
2821
2489
  ]),
2822
2490
  _: 1
2823
2491
  }, 8, ["aria-label", "class"]);
2824
2492
  };
2825
2493
  }
2826
2494
  });
2827
- const _hoisted_1$d = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" };
2495
+ const _hoisted_1$e = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" };
2828
2496
  const PAYMENT_GATEWAY_VARIANT_ADYEN = "ADYEN";
2829
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
2497
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2830
2498
  __name: "ExpressPaymentMethodApplePay",
2831
2499
  props: {
2832
2500
  onBillingInformationChange: { type: Function },
@@ -2846,7 +2514,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2846
2514
  const { authorizePayment } = createPaymentsService();
2847
2515
  const paymentAcceptorId = props.paymentMethodOptionsResponse.payment_acceptor.id;
2848
2516
  const initApplePay = async () => {
2849
- const { AdyenCheckout, ApplePay } = await import("../../auto-DzZuCneB.mjs");
2517
+ const { AdyenCheckout, ApplePay } = await loadAdyen();
2850
2518
  const checkout = await AdyenCheckout(
2851
2519
  getAdyenExpressCheckoutConfiguration({
2852
2520
  amount: props.amount,
@@ -3060,12 +2728,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
3060
2728
  });
3061
2729
  return (_ctx, _cache) => {
3062
2730
  return openBlock(), createElementBlock(Fragment, null, [
3063
- __props.isVisible ? (openBlock(), createBlock(_sfc_main$g, {
2731
+ __props.isVisible ? (openBlock(), createBlock(_sfc_main$h, {
3064
2732
  key: 0,
3065
2733
  type: "applepay",
3066
2734
  onClick: handleClick
3067
2735
  })) : createCommentVNode("", true),
3068
- createElementVNode("div", _hoisted_1$d, [
2736
+ createElementVNode("div", _hoisted_1$e, [
3069
2737
  createElementVNode("div", {
3070
2738
  ref_key: "applePayButtonRef",
3071
2739
  ref: applePayButtonRef
@@ -3075,8 +2743,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
3075
2743
  };
3076
2744
  }
3077
2745
  });
3078
- const _hoisted_1$c = { class: "relative overflow-hidden" };
3079
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
2746
+ const _hoisted_1$d = { class: "relative overflow-hidden" };
2747
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
3080
2748
  __name: "ExpressPaymentMethodPaypal",
3081
2749
  props: {
3082
2750
  amount: { type: Object },
@@ -3093,7 +2761,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3093
2761
  const paypalButtonRef = ref();
3094
2762
  const logger = useLogger();
3095
2763
  const initPaypal = async () => {
3096
- const { AdyenCheckout, PayPal } = await import("../../auto-DzZuCneB.mjs");
2764
+ const { AdyenCheckout, PayPal } = await loadAdyen();
3097
2765
  const checkout = await AdyenCheckout(
3098
2766
  getAdyenExpressCheckoutConfiguration({
3099
2767
  locale: props.locale,
@@ -3134,8 +2802,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3134
2802
  void initPaypal();
3135
2803
  });
3136
2804
  return (_ctx, _cache) => {
3137
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
3138
- __props.isVisible ? (openBlock(), createBlock(_sfc_main$g, {
2805
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
2806
+ __props.isVisible ? (openBlock(), createBlock(_sfc_main$h, {
3139
2807
  key: 0,
3140
2808
  type: "paypal",
3141
2809
  class: "w-full"
@@ -3149,8 +2817,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3149
2817
  };
3150
2818
  }
3151
2819
  });
3152
- const _hoisted_1$b = { class: "w-[1px] h-[1px] overflow-hidden opacity-0 absolute" };
3153
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
2820
+ const _hoisted_1$c = { class: "w-[1px] h-[1px] overflow-hidden opacity-0 absolute" };
2821
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3154
2822
  __name: "ExpressPaymentMethodGooglePay",
3155
2823
  props: {
3156
2824
  amount: { type: Object },
@@ -3167,7 +2835,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3167
2835
  const googlePayButtonRef = ref();
3168
2836
  const logger = useLogger();
3169
2837
  const initGooglePay = async () => {
3170
- const { AdyenCheckout, GooglePay } = await import("../../auto-DzZuCneB.mjs");
2838
+ const { AdyenCheckout, GooglePay } = await loadAdyen();
3171
2839
  const checkout = await AdyenCheckout(
3172
2840
  getAdyenExpressCheckoutConfiguration({
3173
2841
  locale: props.locale,
@@ -3213,12 +2881,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3213
2881
  });
3214
2882
  return (_ctx, _cache) => {
3215
2883
  return openBlock(), createElementBlock(Fragment, null, [
3216
- __props.isVisible ? (openBlock(), createBlock(_sfc_main$g, {
2884
+ __props.isVisible ? (openBlock(), createBlock(_sfc_main$h, {
3217
2885
  key: 0,
3218
2886
  type: "googlepay",
3219
2887
  onClick: handleClick
3220
2888
  })) : createCommentVNode("", true),
3221
- createElementVNode("div", _hoisted_1$b, [
2889
+ createElementVNode("div", _hoisted_1$c, [
3222
2890
  createElementVNode("div", {
3223
2891
  ref_key: "googlePayButtonRef",
3224
2892
  ref: googlePayButtonRef
@@ -3228,15 +2896,15 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3228
2896
  };
3229
2897
  }
3230
2898
  });
3231
- const _hoisted_1$a = {
2899
+ const _hoisted_1$b = {
3232
2900
  key: 0,
3233
2901
  class: "mt-4n"
3234
2902
  };
3235
- const _hoisted_2$5 = { class: "mb-2" };
3236
- const _hoisted_3$2 = { class: "grid grid-cols-6 gap-1 md:gap-2" };
2903
+ const _hoisted_2$7 = { class: "mb-2" };
2904
+ const _hoisted_3$3 = { class: "grid grid-cols-6 gap-1 md:gap-2" };
3237
2905
  const _hoisted_4$2 = { class: "h-4 mt-4" };
3238
2906
  const DEFAULT_EXPRESS_PAYMENT_BUTTON_COUNT = 2;
3239
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
2907
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3240
2908
  __name: "ExpressPaymentMethods",
3241
2909
  props: {
3242
2910
  amount: { type: Object },
@@ -3310,12 +2978,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3310
2978
  return (paymentMethodOptionsResponseEntryIncludingApplePay.value ? 1 : 0) + (paymentMethodOptionsResponseEntryIncludingGooglePay.value ? 1 : 0) + (paymentMethodOptionsResponseEntryIncludingPayPal.value ? 1 : 0);
3311
2979
  });
3312
2980
  return (_ctx, _cache) => {
3313
- return hasPaymentMethodOptions.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
3314
- createElementVNode("div", _hoisted_2$5, [
3315
- !isReady.value ? (openBlock(), createBlock(_sfc_main$q, {
2981
+ return hasPaymentMethodOptions.value ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
2982
+ createElementVNode("div", _hoisted_2$7, [
2983
+ !isReady.value ? (openBlock(), createBlock(_sfc_main$K, {
3316
2984
  key: 0,
3317
2985
  variant: "title"
3318
- })) : (openBlock(), createBlock(unref(_sfc_main$2$1), {
2986
+ })) : (openBlock(), createBlock(unref(_sfc_main$r), {
3319
2987
  key: 1,
3320
2988
  variant: "heading-3",
3321
2989
  tag: "h2"
@@ -3330,10 +2998,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3330
2998
  _: 1
3331
2999
  }))
3332
3000
  ]),
3333
- createElementVNode("div", _hoisted_3$2, [
3001
+ createElementVNode("div", _hoisted_3$3, [
3334
3002
  !isReady.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
3335
- createVNode(_sfc_main$q, { class: "h-11 col-span-3" }),
3336
- createVNode(_sfc_main$q, { class: "h-11 col-span-3" })
3003
+ createVNode(_sfc_main$K, { class: "h-11 col-span-3" }),
3004
+ createVNode(_sfc_main$K, { class: "h-11 col-span-3" })
3337
3005
  ], 64)) : createCommentVNode("", true),
3338
3006
  createElementVNode("div", {
3339
3007
  class: normalizeClass(["col-span-3 md:col-span-2", {
@@ -3343,7 +3011,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3343
3011
  "!col-span-6 md:!col-span-2": expressPaymentButtonCount.value === 3
3344
3012
  }])
3345
3013
  }, [
3346
- paymentMethodOptionsResponseEntryIncludingApplePay.value ? (openBlock(), createBlock(_sfc_main$f, {
3014
+ paymentMethodOptionsResponseEntryIncludingApplePay.value ? (openBlock(), createBlock(_sfc_main$g, {
3347
3015
  key: 0,
3348
3016
  amount: __props.amount,
3349
3017
  "billing-information": __props.billingInformation,
@@ -3363,7 +3031,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3363
3031
  "md:!col-span-3": expressPaymentButtonCount.value === 2
3364
3032
  }])
3365
3033
  }, [
3366
- paymentMethodOptionsResponseEntryIncludingGooglePay.value ? (openBlock(), createBlock(_sfc_main$d, {
3034
+ paymentMethodOptionsResponseEntryIncludingGooglePay.value ? (openBlock(), createBlock(_sfc_main$e, {
3367
3035
  key: 0,
3368
3036
  amount: __props.amount,
3369
3037
  "billing-information": __props.billingInformation,
@@ -3381,7 +3049,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3381
3049
  "md:!col-span-3": expressPaymentButtonCount.value === 2
3382
3050
  }])
3383
3051
  }, [
3384
- paymentMethodOptionsResponseEntryIncludingPayPal.value ? (openBlock(), createBlock(_sfc_main$e, {
3052
+ paymentMethodOptionsResponseEntryIncludingPayPal.value ? (openBlock(), createBlock(_sfc_main$f, {
3385
3053
  key: 0,
3386
3054
  amount: __props.amount,
3387
3055
  "billing-information": __props.billingInformation,
@@ -3394,10 +3062,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3394
3062
  ], 2)
3395
3063
  ]),
3396
3064
  createElementVNode("div", _hoisted_4$2, [
3397
- !isReady.value ? (openBlock(), createBlock(_sfc_main$q, {
3065
+ !isReady.value ? (openBlock(), createBlock(_sfc_main$K, {
3398
3066
  key: 0,
3399
3067
  variant: "divider-text"
3400
- })) : (openBlock(), createBlock(unref(_sfc_main$2q), {
3068
+ })) : (openBlock(), createBlock(unref(_sfc_main$L), {
3401
3069
  key: 1,
3402
3070
  text: unref($t)({
3403
3071
  defaultMessage: "Or",
@@ -3411,8 +3079,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3411
3079
  };
3412
3080
  }
3413
3081
  });
3414
- const _hoisted_1$9 = { class: "grid grid-cols-2 gap-2" };
3415
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
3082
+ const _hoisted_1$a = { class: "grid grid-cols-2 gap-2" };
3083
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3416
3084
  __name: "TieredTableRow",
3417
3085
  props: {
3418
3086
  band: { type: Object },
@@ -3441,8 +3109,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3441
3109
  return props.band.tier_top_bound.number;
3442
3110
  });
3443
3111
  return (_ctx, _cache) => {
3444
- return openBlock(), createElementBlock("div", _hoisted_1$9, [
3445
- createVNode(unref(_sfc_main$2$1), {
3112
+ return openBlock(), createElementBlock("div", _hoisted_1$a, [
3113
+ createVNode(unref(_sfc_main$r), {
3446
3114
  variant: "body-xs",
3447
3115
  shade: "lighter",
3448
3116
  tag: "div"
@@ -3475,7 +3143,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3475
3143
  ]),
3476
3144
  _: 1
3477
3145
  }),
3478
- createVNode(unref(_sfc_main$2$1), {
3146
+ createVNode(unref(_sfc_main$r), {
3479
3147
  variant: "body-xs",
3480
3148
  shade: "lighter",
3481
3149
  tag: "div",
@@ -3503,8 +3171,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3503
3171
  };
3504
3172
  }
3505
3173
  });
3506
- const _hoisted_1$8 = { class: "grid grid-cols-1 gap-0.5 pt-1.5" };
3507
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
3174
+ const _hoisted_1$9 = { class: "grid grid-cols-1 gap-0.5 pt-1.5" };
3175
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3508
3176
  __name: "TieredTable",
3509
3177
  props: {
3510
3178
  bands: { type: Array },
@@ -3512,9 +3180,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3512
3180
  },
3513
3181
  setup(__props) {
3514
3182
  return (_ctx, _cache) => {
3515
- return openBlock(), createElementBlock("div", _hoisted_1$8, [
3183
+ return openBlock(), createElementBlock("div", _hoisted_1$9, [
3516
3184
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.bands, (band, index) => {
3517
- return openBlock(), createBlock(_sfc_main$b, {
3185
+ return openBlock(), createBlock(_sfc_main$c, {
3518
3186
  key: index,
3519
3187
  band,
3520
3188
  "is-first": index === 0,
@@ -3547,7 +3215,7 @@ function useSeatBasedPricing({
3547
3215
  pricingItemConfigId
3548
3216
  }) {
3549
3217
  return computed(() => {
3550
- var _a, _b;
3218
+ var _a, _b, _c, _d, _e, _f;
3551
3219
  const { config, productItem } = getPricingItemByPricingConfigId({
3552
3220
  pricings,
3553
3221
  pricingItemConfigId
@@ -3562,18 +3230,18 @@ function useSeatBasedPricing({
3562
3230
  description: productItem == null ? void 0 : productItem.description
3563
3231
  },
3564
3232
  pricing: {
3565
- ...(config == null ? void 0 : config.type) === "FLAT" && { amount: (_b = (_a = config.bands) == null ? void 0 : _a[0]) == null ? void 0 : _b.amount },
3566
- ...(config == null ? void 0 : config.type) === "TIERED" && { tiered: { bands: config.bands } }
3233
+ ...((_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 },
3234
+ ...((_e = config == null ? void 0 : config.details) == null ? void 0 : _e.pricing_type) === "TIERED" && { tiered: { bands: (_f = config.details) == null ? void 0 : _f.bands } }
3567
3235
  }
3568
3236
  };
3569
3237
  });
3570
3238
  }
3571
- const _hoisted_1$7 = { class: "flex flex-row-reverse md:flex-row gap-4" };
3572
- const _hoisted_2$4 = { class: "w-24 md:w-32 shrink-0 justify-start" };
3573
- const _hoisted_3$1 = ["tabindex"];
3239
+ const _hoisted_1$8 = { class: "flex flex-row-reverse md:flex-row gap-4" };
3240
+ const _hoisted_2$6 = { class: "w-24 md:w-32 shrink-0 justify-start" };
3241
+ const _hoisted_3$2 = ["tabindex"];
3574
3242
  const _hoisted_4$1 = { key: 0 };
3575
3243
  const _hoisted_5$1 = { key: 0 };
3576
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3244
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3577
3245
  __name: "SeatsEditorItem",
3578
3246
  props: /* @__PURE__ */ mergeModels({
3579
3247
  modelValue: { type: Object },
@@ -3610,9 +3278,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3610
3278
  return (_ctx, _cache) => {
3611
3279
  var _a, _b, _c;
3612
3280
  return openBlock(), createElementBlock("div", null, [
3613
- createElementVNode("div", _hoisted_1$7, [
3614
- createElementVNode("div", _hoisted_2$4, [
3615
- createVNode(unref(_sfc_main$1Y), {
3281
+ createElementVNode("div", _hoisted_1$8, [
3282
+ createElementVNode("div", _hoisted_2$6, [
3283
+ createVNode(unref(_sfc_main$M), {
3616
3284
  modelValue: seatsNumber.value,
3617
3285
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => seatsNumber.value = $event),
3618
3286
  size: "sm",
@@ -3624,7 +3292,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3624
3292
  tabindex: isCollapsible.value ? 0 : void 0,
3625
3293
  onClick: _cache[1] || (_cache[1] = ($event) => isCollapsible.value ? isExpanded.value = !isExpanded.value : void 0)
3626
3294
  }, [
3627
- createVNode(unref(_sfc_main$2$1), {
3295
+ createVNode(unref(_sfc_main$r), {
3628
3296
  tag: "span",
3629
3297
  variant: "body-sm",
3630
3298
  weight: "semibold"
@@ -3638,7 +3306,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3638
3306
  ]),
3639
3307
  _: 1
3640
3308
  }),
3641
- unref(seats).pricing.amount ? (openBlock(), createBlock(unref(_sfc_main$2$1), {
3309
+ unref(seats).pricing.amount ? (openBlock(), createBlock(unref(_sfc_main$r), {
3642
3310
  key: 0,
3643
3311
  tag: "span",
3644
3312
  variant: "body-xs",
@@ -3661,7 +3329,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3661
3329
  )), 1)
3662
3330
  ]),
3663
3331
  _: 1
3664
- })) : unref(seats).pricing.tiered ? (openBlock(), createBlock(unref(_sfc_main$2$1), {
3332
+ })) : unref(seats).pricing.tiered ? (openBlock(), createBlock(unref(_sfc_main$r), {
3665
3333
  key: 1,
3666
3334
  tag: "span",
3667
3335
  variant: "body-xs",
@@ -3673,7 +3341,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3673
3341
  id: "seats.tiered_pricing_label",
3674
3342
  description: "The label indicating tiered pricing structure for seats"
3675
3343
  })) + " ", 1),
3676
- createVNode(unref(_sfc_main$4$1), {
3344
+ createVNode(unref(_sfc_main$J), {
3677
3345
  icon: "keyboard_arrow_down",
3678
3346
  size: "xs",
3679
3347
  class: normalizeClass(["absolute transition ease-in-out text-gray-400", { "rotate-0": !isExpanded.value, "rotate-180": isExpanded.value }])
@@ -3681,13 +3349,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3681
3349
  ]),
3682
3350
  _: 1
3683
3351
  })) : createCommentVNode("", true)
3684
- ], 10, _hoisted_3$1)
3352
+ ], 10, _hoisted_3$2)
3685
3353
  ]),
3686
3354
  ((_c = (_b = unref(seats).pricing) == null ? void 0 : _b.tiered) == null ? void 0 : _c.bands) ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
3687
- createVNode(unref(_sfc_main$2j), null, {
3355
+ createVNode(unref(_sfc_main$w), null, {
3688
3356
  default: withCtx(() => [
3689
3357
  isExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
3690
- createVNode(_sfc_main$a, {
3358
+ createVNode(_sfc_main$b, {
3691
3359
  bands: unref(seats).pricing.tiered.bands,
3692
3360
  period: unref(seats).billing.period
3693
3361
  }, null, 8, ["bands", "period"])
@@ -3700,7 +3368,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3700
3368
  };
3701
3369
  }
3702
3370
  });
3703
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3371
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3704
3372
  __name: "SeatsEditor",
3705
3373
  props: /* @__PURE__ */ mergeModels({
3706
3374
  modelValue: { type: Array },
@@ -3723,11 +3391,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3723
3391
  });
3724
3392
  return (_ctx, _cache) => {
3725
3393
  return openBlock(true), createElementBlock(Fragment, null, renderList(__props.modelValue, (item, index) => {
3726
- return openBlock(), createBlock(unref(_sfc_main$1g), { key: index }, {
3394
+ return openBlock(), createBlock(unref(_sfc_main$s), { key: index }, {
3727
3395
  default: withCtx(() => {
3728
3396
  var _a;
3729
3397
  return [
3730
- item.pricing_item_config_id ? (openBlock(), createBlock(_sfc_main$9, {
3398
+ item.pricing_item_config_id ? (openBlock(), createBlock(_sfc_main$a, {
3731
3399
  key: item.pricing_item_config_id,
3732
3400
  modelValue: itemModel(index).value,
3733
3401
  "onUpdate:modelValue": ($event) => itemModel(index).value = $event,
@@ -3742,15 +3410,15 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3742
3410
  };
3743
3411
  }
3744
3412
  });
3745
- const _hoisted_1$6 = { class: "flex gap-4 border-l-2 border-primary-600 px-2" };
3746
- const _hoisted_2$3 = { class: "grow" };
3747
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3413
+ const _hoisted_1$7 = { class: "flex gap-4 border-l-2 border-primary-600 px-2" };
3414
+ const _hoisted_2$5 = { class: "grow" };
3415
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3748
3416
  __name: "PricingGroupTitle",
3749
3417
  setup(__props) {
3750
3418
  return (_ctx, _cache) => {
3751
- return openBlock(), createElementBlock("div", _hoisted_1$6, [
3752
- createElementVNode("div", _hoisted_2$3, [
3753
- createVNode(unref(_sfc_main$2$1), {
3419
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
3420
+ createElementVNode("div", _hoisted_2$5, [
3421
+ createVNode(unref(_sfc_main$r), {
3754
3422
  tag: "span",
3755
3423
  variant: "body-sm",
3756
3424
  weight: "semibold"
@@ -3762,7 +3430,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3762
3430
  })
3763
3431
  ]),
3764
3432
  createElementVNode("div", null, [
3765
- createVNode(unref(_sfc_main$2$1), {
3433
+ createVNode(unref(_sfc_main$r), {
3766
3434
  tag: "span",
3767
3435
  variant: "body-xs",
3768
3436
  shade: "lighter"
@@ -3777,9 +3445,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3777
3445
  };
3778
3446
  }
3779
3447
  });
3780
- const _hoisted_1$5 = { class: "p-1" };
3781
- const _hoisted_2$2 = { class: "grid grid-cols-1 gap-1 pt-1" };
3782
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3448
+ const _hoisted_1$6 = { class: "p-1" };
3449
+ const _hoisted_2$4 = { class: "grid grid-cols-1 gap-1 pt-1" };
3450
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3783
3451
  __name: "AddonSingleEditor",
3784
3452
  props: /* @__PURE__ */ mergeModels({
3785
3453
  constraint: { type: String },
@@ -3838,10 +3506,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3838
3506
  }
3839
3507
  };
3840
3508
  return (_ctx, _cache) => {
3841
- return openBlock(), createBlock(unref(_sfc_main$1g), { "no-spacing": "" }, {
3509
+ return openBlock(), createBlock(unref(_sfc_main$s), { "no-spacing": "" }, {
3842
3510
  default: withCtx(() => [
3843
- createElementVNode("div", _hoisted_1$5, [
3844
- createVNode(_sfc_main$7, null, {
3511
+ createElementVNode("div", _hoisted_1$6, [
3512
+ createVNode(_sfc_main$8, null, {
3845
3513
  title: withCtx(() => [
3846
3514
  createTextVNode(toDisplayString(__props.groupName), 1)
3847
3515
  ]),
@@ -3850,9 +3518,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3850
3518
  ]),
3851
3519
  _: 1
3852
3520
  }),
3853
- createElementVNode("div", _hoisted_2$2, [
3521
+ createElementVNode("div", _hoisted_2$4, [
3854
3522
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.pricings, (pricing) => {
3855
- return openBlock(), createBlock(unref(_sfc_main$1g), {
3523
+ return openBlock(), createBlock(unref(_sfc_main$s), {
3856
3524
  key: pricing.id,
3857
3525
  "content-background": "none",
3858
3526
  class: normalizeClass({ "!bg-white": isSelected(pricing.id) })
@@ -3860,7 +3528,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3860
3528
  default: withCtx(() => {
3861
3529
  var _a, _b;
3862
3530
  return [
3863
- createVNode(_sfc_main$p, {
3531
+ createVNode(_sfc_main$F, {
3864
3532
  name: unref(getNameFromPricing)(pricing) ?? "",
3865
3533
  description: ((_a = pricing.items) == null ? void 0 : _a[0]) ? unref(renderPricingForPricingItem)({
3866
3534
  pricingItem: (_b = pricing.items) == null ? void 0 : _b[0]
@@ -3871,7 +3539,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3871
3539
  })
3872
3540
  }, {
3873
3541
  default: withCtx(() => [
3874
- createVNode(unref(_sfc_main$20), {
3542
+ createVNode(unref(_sfc_main$x), {
3875
3543
  "model-value": isSelected(pricing.id),
3876
3544
  "onUpdate:modelValue": ($event) => handleToggle(pricing.id)
3877
3545
  }, null, 8, ["model-value", "onUpdate:modelValue"])
@@ -3891,8 +3559,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3891
3559
  };
3892
3560
  }
3893
3561
  });
3894
- const _hoisted_1$4 = { class: "grid grid-cols-1 gap-1" };
3895
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3562
+ const _hoisted_1$5 = { class: "grid grid-cols-1 gap-1" };
3563
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3896
3564
  __name: "AddonMultipleEditor",
3897
3565
  props: /* @__PURE__ */ mergeModels({
3898
3566
  modelValue: { type: Array },
@@ -3924,7 +3592,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3924
3592
  }
3925
3593
  };
3926
3594
  return (_ctx, _cache) => {
3927
- return openBlock(), createBlock(unref(_sfc_main$1g), {
3595
+ return openBlock(), createBlock(unref(_sfc_main$s), {
3928
3596
  "no-spacing": "",
3929
3597
  "no-border": !__props.groupName,
3930
3598
  "content-background": __props.groupName ? "gray" : "none"
@@ -3933,7 +3601,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3933
3601
  createElementVNode("div", {
3934
3602
  class: normalizeClass(["grid grid-cols-1 gap-1", { "p-1": __props.groupName }])
3935
3603
  }, [
3936
- __props.groupName ? (openBlock(), createBlock(_sfc_main$7, { key: 0 }, {
3604
+ __props.groupName ? (openBlock(), createBlock(_sfc_main$8, { key: 0 }, {
3937
3605
  title: withCtx(() => [
3938
3606
  createTextVNode(toDisplayString(__props.groupName), 1)
3939
3607
  ]),
@@ -3946,9 +3614,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3946
3614
  ]),
3947
3615
  _: 1
3948
3616
  })) : createCommentVNode("", true),
3949
- createElementVNode("div", _hoisted_1$4, [
3617
+ createElementVNode("div", _hoisted_1$5, [
3950
3618
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.pricings, (pricing) => {
3951
- return openBlock(), createBlock(unref(_sfc_main$1g), {
3619
+ return openBlock(), createBlock(unref(_sfc_main$s), {
3952
3620
  key: pricing.id,
3953
3621
  "content-background": __props.groupName || isSelected(pricing.id) ? "none" : "gray",
3954
3622
  class: normalizeClass({ "!bg-white": isSelected(pricing.id) })
@@ -3956,7 +3624,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3956
3624
  default: withCtx(() => {
3957
3625
  var _a, _b;
3958
3626
  return [
3959
- createVNode(_sfc_main$p, {
3627
+ createVNode(_sfc_main$F, {
3960
3628
  name: unref(getNameFromPricing)(pricing) ?? "",
3961
3629
  description: ((_a = pricing.items) == null ? void 0 : _a[0]) ? unref(renderPricingForPricingItem)({
3962
3630
  pricingItem: (_b = pricing.items) == null ? void 0 : _b[0]
@@ -3967,7 +3635,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3967
3635
  })
3968
3636
  }, {
3969
3637
  default: withCtx(() => [
3970
- isSelected(pricing.id) ? (openBlock(), createBlock(unref(_sfc_main$2H), {
3638
+ isSelected(pricing.id) ? (openBlock(), createBlock(unref(_sfc_main$v), {
3971
3639
  key: 0,
3972
3640
  color: "gray",
3973
3641
  variant: "outline",
@@ -3975,7 +3643,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3975
3643
  size: "sm",
3976
3644
  "icon-prefix": "remove_shopping_cart",
3977
3645
  onClick: ($event) => handleToggle(pricing.id)
3978
- }, null, 8, ["onClick"])) : (openBlock(), createBlock(unref(_sfc_main$2H), {
3646
+ }, null, 8, ["onClick"])) : (openBlock(), createBlock(unref(_sfc_main$v), {
3979
3647
  key: 1,
3980
3648
  color: "primary",
3981
3649
  "icon-prefix": "add",
@@ -4007,16 +3675,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4007
3675
  };
4008
3676
  }
4009
3677
  });
4010
- function useViewport() {
4011
- const breakpoints = useBreakpoints(breakpointsTailwind);
4012
- const isMobileViewport = breakpoints.smallerOrEqual("sm");
4013
- return { isMobileViewport };
4014
- }
4015
- const _hoisted_1$3 = { class: "p-1" };
4016
- const _hoisted_2$1 = { class: "pt-1" };
3678
+ const _hoisted_1$4 = { class: "p-1" };
3679
+ const _hoisted_2$3 = { class: "pt-1" };
4017
3680
  const SHOW_RADIO_GROUP_MAX_OPTIONS = 3;
4018
3681
  const SHOW_SELECT_MAX_OPTIONS = 6;
4019
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3682
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4020
3683
  __name: "PricingGroupSingleEditor",
4021
3684
  props: /* @__PURE__ */ mergeModels({
4022
3685
  modelValue: { type: Array },
@@ -4076,31 +3739,31 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4076
3739
  }));
4077
3740
  };
4078
3741
  return (_ctx, _cache) => {
4079
- return openBlock(), createBlock(unref(_sfc_main$1g), { "no-spacing": "" }, {
3742
+ return openBlock(), createBlock(unref(_sfc_main$s), { "no-spacing": "" }, {
4080
3743
  default: withCtx(() => [
4081
- createElementVNode("div", _hoisted_1$3, [
4082
- createVNode(_sfc_main$7, null, {
3744
+ createElementVNode("div", _hoisted_1$4, [
3745
+ createVNode(_sfc_main$8, null, {
4083
3746
  title: withCtx(() => [
4084
3747
  createTextVNode(toDisplayString(__props.groupName), 1)
4085
3748
  ]),
4086
3749
  _: 1
4087
3750
  }),
4088
- createElementVNode("div", _hoisted_2$1, [
4089
- options.value.length <= SHOW_RADIO_GROUP_MAX_OPTIONS ? (openBlock(), createBlock(unref(_sfc_main$1X), {
3751
+ createElementVNode("div", _hoisted_2$3, [
3752
+ options.value.length <= SHOW_RADIO_GROUP_MAX_OPTIONS ? (openBlock(), createBlock(unref(_sfc_main$N), {
4090
3753
  key: 0,
4091
3754
  modelValue: singleModelValue.value,
4092
3755
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => singleModelValue.value = $event),
4093
3756
  options: getRadioGroupOptions(),
4094
3757
  direction: unref(isMobileViewport) ? "column" : "row",
4095
3758
  "show-radio": false
4096
- }, null, 8, ["modelValue", "options", "direction"])) : options.value.length <= SHOW_SELECT_MAX_OPTIONS ? (openBlock(), createBlock(unref(_sfc_main$1T), {
3759
+ }, null, 8, ["modelValue", "options", "direction"])) : options.value.length <= SHOW_SELECT_MAX_OPTIONS ? (openBlock(), createBlock(unref(_sfc_main$G), {
4097
3760
  key: 1,
4098
3761
  "single-model-value": singleModelValue.value,
4099
3762
  "onUpdate:singleModelValue": _cache[1] || (_cache[1] = ($event) => singleModelValue.value = $event),
4100
3763
  options: getSelectOptions(),
4101
3764
  size: "xl",
4102
3765
  "show-sub-label-in-input": ""
4103
- }, null, 8, ["single-model-value", "options"])) : (openBlock(), createBlock(unref(_sfc_main$1L), {
3766
+ }, null, 8, ["single-model-value", "options"])) : (openBlock(), createBlock(unref(_sfc_main$O), {
4104
3767
  key: 2,
4105
3768
  modelValue: singleModelValue.value,
4106
3769
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => singleModelValue.value = $event),
@@ -4120,8 +3783,8 @@ function getAllPricingsFromPricingPlanVersion(pricingPlanVersion) {
4120
3783
  const pricings = ((_a = pricingPlanVersion.pricing_categories) == null ? void 0 : _a.flatMap((category) => category.pricings ?? [])) ?? [];
4121
3784
  return pricings.filter((pricing) => pricing !== null);
4122
3785
  }
4123
- const _hoisted_1$2 = { class: "grid grid-cols-1 gap-1" };
4124
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3786
+ const _hoisted_1$3 = { class: "grid grid-cols-1 gap-1" };
3787
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4125
3788
  __name: "PlanCustomizationEditor",
4126
3789
  props: /* @__PURE__ */ mergeModels({
4127
3790
  subscription: { type: Object },
@@ -4161,7 +3824,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4161
3824
  () => getPricingGroupsFromExtendedPricingPlanSubscription(props.subscription)
4162
3825
  );
4163
3826
  return (_ctx, _cache) => {
4164
- return openBlock(), createBlock(unref(_sfc_main$1g), {
3827
+ return openBlock(), createBlock(unref(_sfc_main$s), {
4165
3828
  title: unref($t)({
4166
3829
  defaultMessage: "Customize plan",
4167
3830
  id: "checkout.customize_plan_block.title",
@@ -4172,8 +3835,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4172
3835
  "content-background": "none"
4173
3836
  }, {
4174
3837
  default: withCtx(() => [
4175
- createElementVNode("div", _hoisted_1$2, [
4176
- createVNode(_sfc_main$8, {
3838
+ createElementVNode("div", _hoisted_1$3, [
3839
+ createVNode(_sfc_main$9, {
4177
3840
  modelValue: seatsModel.value,
4178
3841
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => seatsModel.value = $event),
4179
3842
  "initial-seats-values": __props.initialSeatsValues,
@@ -4183,7 +3846,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4183
3846
  return openBlock(), createElementBlock(Fragment, {
4184
3847
  key: pricingGroup.id
4185
3848
  }, [
4186
- pricingGroup.product_type === "DEFAULT" && pricingGroup.selection_constraint === "EXACTLY_ONE" ? (openBlock(), createBlock(_sfc_main$4, {
3849
+ pricingGroup.product_type === "DEFAULT" && pricingGroup.selection_constraint === "EXACTLY_ONE" ? (openBlock(), createBlock(_sfc_main$5, {
4187
3850
  key: 0,
4188
3851
  modelValue: enabledPricingIdsModel.value,
4189
3852
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => enabledPricingIdsModel.value = $event),
@@ -4191,7 +3854,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4191
3854
  pricings: pricingGroup.pricings,
4192
3855
  "billing-period": __props.billingPeriod,
4193
3856
  currency: __props.currency
4194
- }, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : pricingGroup.product_type === "ADDON" && pricingGroup.selection_constraint === "AT_MOST_ONE" ? (openBlock(), createBlock(_sfc_main$6, {
3857
+ }, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : pricingGroup.product_type === "ADDON" && pricingGroup.selection_constraint === "AT_MOST_ONE" ? (openBlock(), createBlock(_sfc_main$7, {
4195
3858
  key: 1,
4196
3859
  modelValue: enabledPricingIdsModel.value,
4197
3860
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => enabledPricingIdsModel.value = $event),
@@ -4200,7 +3863,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4200
3863
  constraint: pricingGroup.selection_constraint,
4201
3864
  "billing-period": __props.billingPeriod,
4202
3865
  currency: __props.currency
4203
- }, null, 8, ["modelValue", "group-name", "pricings", "constraint", "billing-period", "currency"])) : pricingGroup.product_type === "ADDON" && pricingGroup.selection_constraint === "ANY" ? (openBlock(), createBlock(_sfc_main$5, {
3866
+ }, null, 8, ["modelValue", "group-name", "pricings", "constraint", "billing-period", "currency"])) : pricingGroup.product_type === "ADDON" && pricingGroup.selection_constraint === "ANY" ? (openBlock(), createBlock(_sfc_main$6, {
4204
3867
  key: 2,
4205
3868
  modelValue: enabledPricingIdsModel.value,
4206
3869
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => enabledPricingIdsModel.value = $event),
@@ -4211,7 +3874,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4211
3874
  }, null, 8, ["modelValue", "pricings", "group-name", "billing-period", "currency"])) : createCommentVNode("", true)
4212
3875
  ], 64);
4213
3876
  }), 128)),
4214
- createVNode(_sfc_main$5, {
3877
+ createVNode(_sfc_main$6, {
4215
3878
  modelValue: enabledPricingIdsModel.value,
4216
3879
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => enabledPricingIdsModel.value = $event),
4217
3880
  pricings: addonPricings.value,
@@ -4225,18 +3888,21 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4225
3888
  };
4226
3889
  }
4227
3890
  });
4228
- const _hoisted_1$1 = ["aria-expanded", "aria-label"];
4229
- const _hoisted_2 = { class: "flex flex-row items-center justify-between w-full gap-3 px-3 py-2 cursor-pointer" };
4230
- const _hoisted_3 = { class: "flex flex-row gap-2 items-center" };
3891
+ function uniqueId(prefix = "") {
3892
+ return `${prefix}${crypto.randomUUID()}`;
3893
+ }
3894
+ const _hoisted_1$2 = ["aria-expanded", "aria-label"];
3895
+ const _hoisted_2$2 = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" };
3896
+ const _hoisted_3$1 = { class: "flex flex-row items-center gap-2" };
4231
3897
  const _hoisted_4 = ["onKeydown"];
4232
3898
  const _hoisted_5 = ["aria-label"];
4233
- const _hoisted_6 = { class: "flex flex-row items-center justify-between w-full gap-3 px-3 py-2 cursor-pointer" };
4234
- const _hoisted_7 = { class: "flex flex-row gap-2 items-center" };
3899
+ const _hoisted_6 = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" };
3900
+ const _hoisted_7 = { class: "flex flex-row items-center gap-2" };
4235
3901
  const _hoisted_8 = {
4236
3902
  class: "sr-only",
4237
3903
  "aria-live": "polite"
4238
3904
  };
4239
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3905
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4240
3906
  __name: "PromotionCodeSection",
4241
3907
  props: {
4242
3908
  promotionCode: { default: null, type: [String, null] }
@@ -4357,10 +4023,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4357
4023
  );
4358
4024
  return (_ctx, _cache) => {
4359
4025
  return openBlock(), createElementBlock(Fragment, null, [
4360
- !isApplied.value ? (openBlock(), createBlock(unref(_sfc_main$1g), {
4026
+ !isApplied.value ? (openBlock(), createBlock(unref(_sfc_main$s), {
4361
4027
  key: 0,
4362
4028
  "no-spacing": "",
4363
- class: "w-full relative"
4029
+ class: "relative w-full"
4364
4030
  }, {
4365
4031
  default: withCtx(() => [
4366
4032
  createElementVNode("button", {
@@ -4373,10 +4039,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4373
4039
  "aria-label": toggleAriaLabel.value,
4374
4040
  onClick: toggleExpanded
4375
4041
  }, [
4376
- createElementVNode("div", _hoisted_2, [
4377
- createElementVNode("div", _hoisted_3, [
4378
- createVNode(unref(_sfc_main$4$1), { icon: "local_activity" }),
4379
- createVNode(unref(_sfc_main$2$1), {
4042
+ createElementVNode("div", _hoisted_2$2, [
4043
+ createElementVNode("div", _hoisted_3$1, [
4044
+ createVNode(unref(_sfc_main$J), { icon: "local_activity" }),
4045
+ createVNode(unref(_sfc_main$r), {
4380
4046
  id: labelId,
4381
4047
  variant: "body-sm"
4382
4048
  }, {
@@ -4390,21 +4056,21 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4390
4056
  _: 1
4391
4057
  })
4392
4058
  ]),
4393
- createVNode(unref(_sfc_main$4$1), {
4059
+ createVNode(unref(_sfc_main$J), {
4394
4060
  icon: isExpanded.value ? "remove" : "add"
4395
4061
  }, null, 8, ["icon"])
4396
4062
  ])
4397
- ], 8, _hoisted_1$1),
4063
+ ], 8, _hoisted_1$2),
4398
4064
  withDirectives(createElementVNode("div", {
4399
4065
  id: panelId,
4400
4066
  ref_key: "panelRef",
4401
4067
  ref: panelRef,
4402
4068
  role: "region",
4403
4069
  "aria-labelledby": labelId,
4404
- class: "w-full border-t px-3 py-2 flex flex-row gap-2 items-center overflow-hidden",
4070
+ class: "flex w-full flex-row items-center gap-2 overflow-hidden border-t px-3 py-2",
4405
4071
  onKeydown: withKeys(withModifiers(collapseExpanded, ["prevent"]), ["esc"])
4406
4072
  }, [
4407
- createVNode(unref(_sfc_main$2a), {
4073
+ createVNode(unref(_sfc_main$t), {
4408
4074
  modelValue: inputValue.value,
4409
4075
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
4410
4076
  placeholder: unref($t)({
@@ -4420,7 +4086,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4420
4086
  class: "w-full",
4421
4087
  onKeydown: withKeys(withModifiers(applyCode, ["prevent"]), ["enter"])
4422
4088
  }, null, 8, ["modelValue", "placeholder", "aria-label", "onKeydown"]),
4423
- createVNode(unref(_sfc_main$2H), {
4089
+ createVNode(unref(_sfc_main$v), {
4424
4090
  type: "button",
4425
4091
  disabled: !canApply.value,
4426
4092
  "aria-label": applyAriaLabel.value,
@@ -4441,24 +4107,24 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4441
4107
  ])
4442
4108
  ]),
4443
4109
  _: 1
4444
- })) : (openBlock(), createBlock(unref(_sfc_main$1g), {
4110
+ })) : (openBlock(), createBlock(unref(_sfc_main$s), {
4445
4111
  key: 1,
4446
4112
  "no-border": "",
4447
4113
  "no-spacing": "",
4448
4114
  "content-background": "none",
4449
- class: "w-full relative"
4115
+ class: "relative w-full"
4450
4116
  }, {
4451
4117
  default: withCtx(() => [
4452
4118
  createElementVNode("button", {
4453
4119
  type: "button",
4454
- class: "w-full bg-white border border-primary-900 rounded",
4120
+ class: "w-full rounded border border-primary-900 bg-white",
4455
4121
  "aria-label": removeAriaLabel.value,
4456
4122
  onClick: removeCode
4457
4123
  }, [
4458
4124
  createElementVNode("div", _hoisted_6, [
4459
4125
  createElementVNode("div", _hoisted_7, [
4460
- createVNode(unref(_sfc_main$4$1), { icon: "local_activity" }),
4461
- createVNode(unref(_sfc_main$2$1), {
4126
+ createVNode(unref(_sfc_main$J), { icon: "local_activity" }),
4127
+ createVNode(unref(_sfc_main$r), {
4462
4128
  variant: "body-sm",
4463
4129
  class: "font-semibold"
4464
4130
  }, {
@@ -4468,7 +4134,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4468
4134
  _: 1
4469
4135
  })
4470
4136
  ]),
4471
- createVNode(unref(_sfc_main$4$1), { icon: "close" })
4137
+ createVNode(unref(_sfc_main$J), { icon: "close" })
4472
4138
  ])
4473
4139
  ], 8, _hoisted_5)
4474
4140
  ]),
@@ -4479,7 +4145,77 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4479
4145
  };
4480
4146
  }
4481
4147
  });
4148
+ const _hoisted_1$1 = { class: "flex justify-around" };
4149
+ const _hoisted_2$1 = { class: "flex items-center gap-0.5" };
4150
+ const _hoisted_3 = {
4151
+ key: 0,
4152
+ xmlns: "http://www.w3.org/2000/svg",
4153
+ width: "40",
4154
+ height: "15",
4155
+ fill: "none",
4156
+ viewBox: "0 0 40 15",
4157
+ class: "inline-block translate-y-[1px]"
4158
+ };
4159
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4160
+ __name: "SecurePaymentsKPI",
4161
+ props: {
4162
+ paymentMethodOptions: { type: Array }
4163
+ },
4164
+ setup(__props) {
4165
+ const props = __props;
4166
+ const { $t } = useIntl();
4167
+ const showAdyen = computed(
4168
+ () => props.paymentMethodOptions.find(
4169
+ ({ integration }) => {
4170
+ var _a;
4171
+ return ((_a = integration.payment_gateway) == null ? void 0 : _a.variant) === "ADYEN";
4172
+ }
4173
+ )
4174
+ );
4175
+ const securePaymentsText = computed(() => {
4176
+ if (showAdyen.value) {
4177
+ return $t({
4178
+ defaultMessage: "Secure and encrypted payments by",
4179
+ description: "Secure encrypted payments KPI for a specific vendor, followed by a vendor logo",
4180
+ id: "secure_payments_kpi.specific_vendor"
4181
+ });
4182
+ }
4183
+ return $t({
4184
+ defaultMessage: "Secure and encrypted payments",
4185
+ description: "Secure encrypted payments KPI",
4186
+ id: "secure_payments_kpi.generic"
4187
+ });
4188
+ });
4189
+ return (_ctx, _cache) => {
4190
+ return openBlock(), createElementBlock("div", _hoisted_1$1, [
4191
+ createElementVNode("div", _hoisted_2$1, [
4192
+ createVNode(unref(_sfc_main$J), {
4193
+ icon: "lock",
4194
+ size: "xs"
4195
+ }),
4196
+ createVNode(unref(_sfc_main$r), {
4197
+ tag: "span",
4198
+ variant: "body-xs",
4199
+ shade: "lighter"
4200
+ }, {
4201
+ default: withCtx(() => [
4202
+ createTextVNode(toDisplayString(securePaymentsText.value) + " ", 1),
4203
+ showAdyen.value ? (openBlock(), createElementBlock("svg", _hoisted_3, [..._cache[0] || (_cache[0] = [
4204
+ createElementVNode("path", {
4205
+ fill: "currentColor",
4206
+ 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"
4207
+ }, null, -1)
4208
+ ])])) : createCommentVNode("", true)
4209
+ ]),
4210
+ _: 1
4211
+ })
4212
+ ])
4213
+ ]);
4214
+ };
4215
+ }
4216
+ });
4482
4217
  const _hoisted_1 = { key: 0 };
4218
+ const _hoisted_2 = { class: "flex flex-col gap-2" };
4483
4219
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4484
4220
  __name: "Checkout",
4485
4221
  props: {
@@ -4488,6 +4224,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4488
4224
  emits: ["error", "ready"],
4489
4225
  setup(__props, { emit: __emit }) {
4490
4226
  var _a, _b, _c, _d, _e, _f, _g, _h;
4227
+ const PaymentIntegrationForm = defineAsyncComponent(
4228
+ () => import("../../PaymentIntegrationForm-ID4QnvA3.mjs")
4229
+ );
4491
4230
  const props = __props;
4492
4231
  const emit = __emit;
4493
4232
  const configuration = computed(() => props.configuration);
@@ -4754,17 +4493,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4754
4493
  checkoutForm,
4755
4494
  updateInvoicePreviewOnBillingInformationChange,
4756
4495
  logger,
4757
- formatErrorMessage: ({ action }) => $t(
4758
- action === "apply" ? {
4759
- defaultMessage: "Promotion code could not be applied. Please try again.",
4760
- id: "checkout.promotion_code.apply_failed",
4761
- description: "Error message when applying a promotion code in checkout failed"
4762
- } : {
4763
- defaultMessage: "Promotion code could not be removed. Please try again.",
4764
- id: "checkout.promotion_code.remove_failed",
4765
- description: "Error message when removing a promotion code in checkout failed"
4766
- }
4767
- ),
4496
+ formatErrorMessage: ({ action }) => action === "apply" ? $t({
4497
+ defaultMessage: "Promotion code could not be applied. Please try again.",
4498
+ id: "checkout.promotion_code.apply_failed",
4499
+ description: "Error message when applying a promotion code in checkout failed"
4500
+ }) : $t({
4501
+ defaultMessage: "Promotion code could not be removed. Please try again.",
4502
+ id: "checkout.promotion_code.remove_failed",
4503
+ description: "Error message when removing a promotion code in checkout failed"
4504
+ }),
4768
4505
  onInvalidPromotionCode: () => {
4769
4506
  promotionCode.value = null;
4770
4507
  },
@@ -4772,9 +4509,22 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4772
4509
  promotionCode.value = null;
4773
4510
  }
4774
4511
  });
4512
+ const handleRedirect = () => {
4513
+ if (!successRedirectUrl) return;
4514
+ safeUrlRedirect(successRedirectUrl);
4515
+ };
4775
4516
  const handlePaymentSuccess = () => {
4517
+ var _a2;
4776
4518
  isPaid.value = true;
4777
4519
  promotionCodeErrorMessage.value = null;
4520
+ if ((_a2 = props.configuration) == null ? void 0 : _a2.onPaymentSuccess) {
4521
+ props.configuration.onPaymentSuccess();
4522
+ return;
4523
+ }
4524
+ if (successRedirectUrl) {
4525
+ handleRedirect();
4526
+ return;
4527
+ }
4778
4528
  };
4779
4529
  const handleBillingPeriodChange = (billingPeriod) => {
4780
4530
  if (!subscription.value) {
@@ -4790,13 +4540,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4790
4540
  emit("ready");
4791
4541
  });
4792
4542
  return (_ctx, _cache) => {
4793
- return criticalError.value ? (openBlock(), createBlock(_sfc_main$l, { key: 0 })) : (openBlock(), createBlock(unref(ContentWithAsideLayout), { key: 1 }, {
4543
+ return criticalError.value ? (openBlock(), createBlock(_sfc_main$m, { key: 0 })) : (openBlock(), createBlock(unref(ContentWithAsideLayout), { key: 1 }, {
4794
4544
  header: withCtx(() => [
4795
- createVNode(_sfc_main$q, { class: "min-h-[52px] w-96" }, {
4545
+ createVNode(_sfc_main$K, { class: "min-h-[52px] w-96" }, {
4796
4546
  default: withCtx(() => {
4797
4547
  var _a2, _b2, _c2;
4798
4548
  return [
4799
- unref(invoicePreview) && unref(subscription) && subscriptionStartDate.value ? (openBlock(), createBlock(_sfc_main$m, {
4549
+ unref(invoicePreview) && unref(subscription) && subscriptionStartDate.value ? (openBlock(), createBlock(_sfc_main$n, {
4800
4550
  key: 0,
4801
4551
  "trial-start-date": trialStartDate.value,
4802
4552
  "trial-period": unref(trialPeriod),
@@ -4814,7 +4564,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4814
4564
  content: withCtx(() => {
4815
4565
  var _a2, _b2, _c2;
4816
4566
  return [
4817
- unref(subscription) && unref(isMobileViewport) ? (openBlock(), createBlock(_sfc_main$i, {
4567
+ unref(subscription) && unref(isMobileViewport) ? (openBlock(), createBlock(_sfc_main$j, {
4818
4568
  key: 0,
4819
4569
  subscription: unref(subscription),
4820
4570
  invoice: unref(invoicePreview),
@@ -4831,7 +4581,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4831
4581
  variant: "products-inline",
4832
4582
  onBillingPeriodChange: handleBillingPeriodChange
4833
4583
  }, 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),
4834
- showPlanCustomizationEditor.value && unref(subscription) ? (openBlock(), createBlock(_sfc_main$3, {
4584
+ showPlanCustomizationEditor.value && unref(subscription) ? (openBlock(), createBlock(_sfc_main$4, {
4835
4585
  key: 1,
4836
4586
  "seats-values": seatsValuesModel.value,
4837
4587
  "onUpdate:seatsValues": _cache[0] || (_cache[0] = ($event) => seatsValuesModel.value = $event),
@@ -4842,7 +4592,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4842
4592
  "billing-period": unref(subscription).billing_period,
4843
4593
  currency: activePricingCurrency.value
4844
4594
  }, null, 8, ["seats-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "billing-period", "currency"])) : createCommentVNode("", true),
4845
- !unref(isPaid) && unref(checkoutForm).form.value.country && unref(amount) && expressPaymentMethodBillingInformation.value ? (openBlock(), createBlock(_sfc_main$c, {
4595
+ !unref(isPaid) && unref(checkoutForm).form.value.country && unref(amount) && expressPaymentMethodBillingInformation.value ? (openBlock(), createBlock(_sfc_main$d, {
4846
4596
  key: 2,
4847
4597
  amount: unref(amount),
4848
4598
  "country-code": unref(checkoutForm).form.value.country,
@@ -4852,11 +4602,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4852
4602
  "on-billing-information-change": unref(updateInvoicePreviewOnBillingInformationChange),
4853
4603
  onUpdateBillingInformation: handleUpdateBillingInformation
4854
4604
  }, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change"])) : createCommentVNode("", true),
4855
- unref(isPaid) ? (openBlock(), createBlock(_sfc_main$k, {
4605
+ unref(isPaid) ? (openBlock(), createBlock(_sfc_main$l, {
4856
4606
  key: 3,
4857
- "redirect-url": unref(successRedirectUrl)
4858
- }, null, 8, ["redirect-url"])) : createCommentVNode("", true),
4859
- !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$n, {
4607
+ onContinueToMerchant: handleRedirect
4608
+ })) : createCommentVNode("", true),
4609
+ !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$o, {
4860
4610
  key: 4,
4861
4611
  modelValue: unref(checkoutForm).form.value,
4862
4612
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(checkoutForm).form.value = $event),
@@ -4867,14 +4617,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4867
4617
  "get-is-field-required": unref(checkoutForm).getIsFieldRequired,
4868
4618
  "read-only": unref(isPaid)
4869
4619
  }, null, 8, ["modelValue", "validation", "read-only-email", "show-customer-info-on-top", "is-billing-information-mandatory", "get-is-field-required", "read-only"])) : createCommentVNode("", true),
4870
- !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$q, {
4620
+ !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$K, {
4871
4621
  key: 5,
4872
4622
  variant: "section",
4873
4623
  class: "min-h-[130px]"
4874
4624
  }, {
4875
4625
  default: withCtx(() => [
4876
4626
  !unref(isPaymentMethodsPending) || unref(isPaymentMethodsPending) && unref(paymentMethodOptions).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1, [
4877
- createVNode(unref(_sfc_main$2$1), {
4627
+ createVNode(unref(_sfc_main$r), {
4878
4628
  variant: "heading-3",
4879
4629
  tag: "h2",
4880
4630
  class: "mb-2"
@@ -4888,7 +4638,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4888
4638
  ]),
4889
4639
  _: 1
4890
4640
  }),
4891
- !unref(checkoutForm).form.value.country ? (openBlock(), createBlock(_sfc_main$h, {
4641
+ !unref(checkoutForm).form.value.country ? (openBlock(), createBlock(_sfc_main$i, {
4892
4642
  key: 0,
4893
4643
  icon: "captive_portal"
4894
4644
  }, {
@@ -4907,7 +4657,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4907
4657
  })), 1)
4908
4658
  ]),
4909
4659
  _: 1
4910
- })) : unref(paymentMethodOptions).length === 0 ? (openBlock(), createBlock(_sfc_main$h, {
4660
+ })) : unref(paymentMethodOptions).length === 0 ? (openBlock(), createBlock(_sfc_main$i, {
4911
4661
  key: 1,
4912
4662
  icon: "credit_card_off"
4913
4663
  }, {
@@ -4926,7 +4676,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4926
4676
  })), 1)
4927
4677
  ]),
4928
4678
  _: 1
4929
- })) : unref(amount) && unref(checkoutForm).form.value.country ? (openBlock(), createBlock(_sfc_main$s, {
4679
+ })) : unref(amount) && unref(checkoutForm).form.value.country ? (openBlock(), createBlock(unref(PaymentIntegrationForm), {
4930
4680
  key: 2,
4931
4681
  ref_key: "paymentIntegrationFormRef",
4932
4682
  ref: paymentIntegrationFormRef,
@@ -4935,12 +4685,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4935
4685
  amount: unref(amount),
4936
4686
  variant: "AUTHORIZE",
4937
4687
  "payment-method-options": unref(paymentMethodOptions) ?? [],
4938
- "success-redirect-url": unref(successRedirectUrl),
4939
4688
  "validate-on-submit": handleValidateOnSubmit,
4940
4689
  "force-store-payment-method": "",
4941
4690
  onPaymentSuccess: handlePaymentSuccess,
4942
4691
  onReady: _cache[3] || (_cache[3] = ($event) => emit("ready"))
4943
- }, null, 8, ["country-code", "context", "amount", "payment-method-options", "success-redirect-url"])) : createCommentVNode("", true)
4692
+ }, null, 8, ["country-code", "context", "amount", "payment-method-options"])) : createCommentVNode("", true)
4944
4693
  ])) : createCommentVNode("", true)
4945
4694
  ]),
4946
4695
  _: 1
@@ -4948,14 +4697,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4948
4697
  ];
4949
4698
  }),
4950
4699
  aside: withCtx(() => [
4951
- createVNode(_sfc_main$q, {
4700
+ createVNode(_sfc_main$K, {
4952
4701
  variant: "section",
4953
4702
  class: "min-h-[220px]"
4954
4703
  }, {
4955
4704
  default: withCtx(() => {
4956
4705
  var _a2;
4957
4706
  return [
4958
- unref(subscription) && unref(invoicePreview) ? (openBlock(), createBlock(_sfc_main$i, {
4707
+ unref(subscription) && unref(invoicePreview) ? (openBlock(), createBlock(_sfc_main$j, {
4959
4708
  key: 0,
4960
4709
  subscription: unref(subscription),
4961
4710
  invoice: unref(invoicePreview),
@@ -4974,65 +4723,50 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4974
4723
  }),
4975
4724
  _: 1
4976
4725
  }),
4977
- !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$2, {
4726
+ !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$3, {
4978
4727
  key: 0,
4979
4728
  "promotion-code": promotionCode.value,
4980
4729
  "onUpdate:appliedCode": _cache[4] || (_cache[4] = ($event) => promotionCode.value = $event),
4981
4730
  onRemove: unref(removePromotionCode),
4982
4731
  onApply: unref(applyPromotionCode)
4983
4732
  }, null, 8, ["promotion-code", "onRemove", "onApply"])) : createCommentVNode("", true),
4984
- unref(promotionCodeErrorMessage) ? (openBlock(), createBlock(unref(_sfc_main$16), {
4733
+ unref(promotionCodeErrorMessage) ? (openBlock(), createBlock(unref(_sfc_main$P), {
4985
4734
  key: 1,
4986
4735
  class: "mt-2",
4987
4736
  title: unref(promotionCodeErrorMessage)
4988
4737
  }, null, 8, ["title"])) : createCommentVNode("", true),
4989
- !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$q, {
4990
- key: 2,
4991
- class: "min-h-[44px]"
4992
- }, {
4993
- default: withCtx(() => [
4994
- unref(invoicePreview) ? (openBlock(), createBlock(unref(_sfc_main$2H), {
4995
- key: 0,
4996
- type: "button",
4997
- size: "lg",
4998
- class: "full-width",
4999
- disabled: unref(isPromotionCodePending) || unref(paymentMethodOptions).length === 0,
5000
- onClick: handleSubmit
5001
- }, {
5002
- default: withCtx(() => [
5003
- createTextVNode(toDisplayString(hasTrialPeriod.value ? unref($t)({
5004
- defaultMessage: "Start trial",
5005
- id: "checkout.pay_and_subscribe_button_trial.label",
5006
- description: "The label of the start trial button in the checkout form"
5007
- }) : unref($t)({
5008
- defaultMessage: "Pay and subscribe",
5009
- id: "checkout.pay_and_subscribe_button.label",
5010
- description: "The label of the pay and subscribe button in the checkout form"
5011
- })), 1)
5012
- ]),
5013
- _: 1
5014
- }, 8, ["disabled"])) : createCommentVNode("", true)
5015
- ]),
5016
- _: 1
5017
- })) : createCommentVNode("", true),
5018
- createVNode(unref(_sfc_main$2$1), {
5019
- tag: "div",
5020
- variant: "body-sm",
5021
- shade: "lighter",
5022
- class: "flex grow justify-center"
5023
- }, {
5024
- default: withCtx(() => [
5025
- createVNode(_sfc_main$r, {
5026
- icon: "lock",
5027
- kpi: unref($t)({
5028
- defaultMessage: "Secure and encrypted payments",
5029
- id: "checkout.kpi.encrypted_payments.label",
5030
- description: "The encrypted payments KPI shown in the checkout"
5031
- })
5032
- }, null, 8, ["kpi"])
5033
- ]),
5034
- _: 1
5035
- })
4738
+ createElementVNode("div", _hoisted_2, [
4739
+ !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$K, {
4740
+ key: 0,
4741
+ class: "min-h-[44px]"
4742
+ }, {
4743
+ default: withCtx(() => [
4744
+ unref(invoicePreview) ? (openBlock(), createBlock(unref(_sfc_main$v), {
4745
+ key: 0,
4746
+ type: "button",
4747
+ size: "lg",
4748
+ class: "w-full",
4749
+ disabled: unref(isPromotionCodePending) || unref(paymentMethodOptions).length === 0,
4750
+ onClick: handleSubmit
4751
+ }, {
4752
+ default: withCtx(() => [
4753
+ createTextVNode(toDisplayString(hasTrialPeriod.value ? unref($t)({
4754
+ defaultMessage: "Start trial",
4755
+ id: "checkout.pay_and_subscribe_button_trial.label",
4756
+ description: "The label of the start trial button in the checkout form"
4757
+ }) : unref($t)({
4758
+ defaultMessage: "Pay and subscribe",
4759
+ id: "checkout.pay_and_subscribe_button.label",
4760
+ description: "The label of the pay and subscribe button in the checkout form"
4761
+ })), 1)
4762
+ ]),
4763
+ _: 1
4764
+ }, 8, ["disabled"])) : createCommentVNode("", true)
4765
+ ]),
4766
+ _: 1
4767
+ })) : createCommentVNode("", true),
4768
+ createVNode(_sfc_main$2, { "payment-method-options": unref(paymentMethodOptions) }, null, 8, ["payment-method-options"])
4769
+ ])
5036
4770
  ]),
5037
4771
  _: 1
5038
4772
  }));
@@ -5046,7 +4780,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
5046
4780
  locale: { type: String },
5047
4781
  dateLocale: { type: String },
5048
4782
  messages: { type: Object },
5049
- showTimezones: { type: Boolean },
5050
4783
  primaryColor: { type: String },
5051
4784
  secondaryColor: { type: String },
5052
4785
  isShadowRoot: { type: Boolean },
@@ -5055,7 +4788,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
5055
4788
  onLog: { type: Function },
5056
4789
  allowedPortalTypes: { type: Array },
5057
4790
  portalObject: { type: Object },
5058
- customElementName: { type: String },
5059
4791
  branding: { type: Object },
5060
4792
  configuration: { type: Object }
5061
4793
  },
@@ -5089,7 +4821,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
5089
4821
  const validEmail = getValidEmail((_b = props.configuration) == null ? void 0 : _b.email);
5090
4822
  return (_ctx, _cache) => {
5091
4823
  var _a2, _b2, _c, _d;
5092
- return openBlock(), createBlock(_sfc_main$t, {
4824
+ return openBlock(), createBlock(_sfc_main$Q, {
5093
4825
  "custom-element-name": unref(COMPONENT_NAME),
5094
4826
  environment: __props.environment,
5095
4827
  locale: __props.locale,