@solvimon/solvimon-web 0.1.0-alpha.8 → 0.1.0-alpha.9
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.
- package/README.md +124 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CT0Tjsnw.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CX8vlY2Z.mjs} +6 -4
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DGisvmez.js +1 -0
- package/dist/ContentWithAsideLayout-B5B8Kwaw.js +1 -0
- package/dist/{ContentWithAsideLayout-BTdixy3L.mjs → ContentWithAsideLayout-DhfUkZZg.mjs} +8 -5
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CK73bYUe.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bus-5gC3.mjs} +21 -10
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CkRsyMlJ.js +1 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dt_Vb7Wz.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Bc2hkpTb.mjs} +19 -8
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0vVUHuY.js +1 -0
- package/dist/{PaymentHistoryBlock-DHM-3fh-.js → PaymentHistoryBlock-BiiFJkpT.js} +1 -1
- package/dist/{PaymentHistoryBlock-YzJ6bxKr.mjs → PaymentHistoryBlock-D_B099M7.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D6Cr2Uga.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CaMDtHrL.mjs} +16 -9
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DWTEfLrE.js +1 -0
- package/dist/{PaymentIntegrationForm-Cl5ua8v8.js → PaymentIntegrationForm-D1oJA9mC.js} +1 -1
- package/dist/{PaymentIntegrationForm-ID4QnvA3.mjs → PaymentIntegrationForm-DNkjhqMF.mjs} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CVWPT3Ni.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D37gDtY7.mjs} +70 -17
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D5bxFJ-p.js +1 -0
- package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-CzS32ZUt.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-BChVMzCj.mjs} +1 -1
- package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-CKNMt-JH.js → PricingGroupContent.vue_vue_type_script_setup_true_lang-Br3bEUlP.js} +1 -1
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs → Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs} +9 -6
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js +1 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-AHw3iTfi.js +1 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BIxGqr9U.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BkzLj8n2.mjs} +28 -19
- package/dist/adyen-B_QrYdaC.mjs +4 -0
- package/dist/{adyenLoader-gsbzSjYV.mjs → adyen-Bwewy3HC.mjs} +8 -13
- package/dist/adyen-R6aSZ0Yf.js +1 -0
- package/dist/adyen-mQEEOjgl.js +1 -0
- package/dist/adyen.css +1 -0
- package/dist/component-BOqPDAVk.js +1 -0
- package/dist/{component-CM9g6tbD.mjs → component-Djrf1L-Z.mjs} +294 -209
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +8 -5
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +8 -4
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +10 -6
- package/dist/components/Invoice/Invoice.cjs.js +1 -1
- package/dist/components/Invoice/Invoice.es.js +36 -22
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +10 -6
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +7 -4
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +10 -6
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +15 -11
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +15 -8
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +11 -7
- package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +8 -4
- package/dist/core/index.cjs.js +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.es.js +1 -1
- package/dist/core/types.d.ts +4 -2
- package/dist/{customer-TIi7iZFw.mjs → customer-B31QzznT.mjs} +1 -1
- package/dist/{customer-C_Hz_npf.js → customer-hDxW1Dbp.js} +1 -1
- package/dist/en-US-CgPY97Vq.js +1 -0
- package/dist/{en-US-CBoPxQwX.mjs → en-US-N3CUCsVy.mjs} +5 -25
- package/dist/index-DIFK3mcJ.js +6 -0
- package/dist/index-DyvRdSR7.mjs +9673 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{invoices-BuVOuTOm.mjs → invoices-DIYPN2j_.mjs} +2 -2
- package/dist/{invoices-DbvwXAsm.js → invoices-DzkA1jDc.js} +1 -1
- package/dist/{nl-NL-BB7KbK-h.mjs → nl-NL-B8U9b85I.mjs} +18 -2
- package/dist/nl-NL-qMRaTRrM.js +1 -0
- package/dist/{paymentMethods-Di32oJ39.mjs → paymentMethods-67b3UlTZ.mjs} +2 -2
- package/dist/{paymentMethods-B4AYGf0K.js → paymentMethods-C_sdTkSF.js} +1 -1
- package/dist/{payments-DeutKq9x.js → payments-DkHhTHto.js} +1 -1
- package/dist/{payments-C5fD1PXB.mjs → payments-Dq6R37Fz.mjs} +1 -1
- package/dist/{registry-CMSmkLcy.js → registry-BkViv4tv.js} +1 -1
- package/dist/{registry-BLwMl1bK.mjs → registry-Df_26rJy.mjs} +1 -1
- package/dist/screens/Checkout/Checkout.cjs.js +1 -1
- package/dist/screens/Checkout/Checkout.es.js +276 -214
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +22 -15
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -1
- package/dist/screens/PayInvoice/PayInvoice.es.js +12 -10
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +83 -53
- package/dist/solvimon-web.css +1 -1
- package/dist/{subscriptions-mOgjjzUi.mjs → subscriptions-ClGIr_aS.mjs} +2 -2
- package/dist/{subscriptions-wdMADcQZ.js → subscriptions-jelITJcX.js} +1 -1
- package/dist/{useActionDispatchProvider-B4gszz0Q.mjs → useActionDispatchProvider-BC57-Ufn.mjs} +1 -1
- package/dist/{useActionDispatchProvider-DfS2P0bd.js → useActionDispatchProvider-rw9kWeE0.js} +1 -1
- package/dist/{useCustomer-cbhDyWJL.mjs → useCustomer-Ba9WRtuT.mjs} +2 -2
- package/dist/{useCustomer-DanZzn-l.js → useCustomer-CUcaeQn_.js} +1 -1
- package/dist/{useIncrementalLoading-RRicokf1.mjs → useIncrementalLoading-Cnzh2mAz.mjs} +1 -1
- package/dist/{useIncrementalLoading-DFe5Yh8M.js → useIncrementalLoading-DoTTXM2Y.js} +1 -1
- package/dist/{useInvoiceData-fS6G_244.mjs → useInvoiceData-BJwwDur7.mjs} +2 -2
- package/dist/{useInvoiceData-CxxHa5R2.js → useInvoiceData-D2jkdmlA.js} +1 -1
- package/dist/{useInvoicesList-BQQxcPdz.mjs → useInvoicesList-CFzAxyae.mjs} +22 -18
- package/dist/useInvoicesList-CaBCGs4h.js +1 -0
- package/dist/{useLoadInitialData-Dm48tlSO.mjs → useLoadInitialData-5sgImpzc.mjs} +5 -0
- package/dist/useLoadInitialData-DjwRHcAH.js +1 -0
- package/dist/{usePaymentMethodOptions-2MloZ9bY.mjs → usePaymentMethodOptions-C2k4npCQ.mjs} +2 -2
- package/dist/{usePaymentMethodOptions-D01YWW3G.js → usePaymentMethodOptions-DYO6xr3-.js} +1 -1
- package/dist/{usePaymentMethods-DZvfWSlx.mjs → usePaymentMethods-CRWbH48K.mjs} +2 -2
- package/dist/{usePaymentMethods-Cm9WdSW0.js → usePaymentMethods-ryN_YohI.js} +1 -1
- package/dist/{usePayments-D4uGKBsV.mjs → usePayments-Cw5PPEJa.mjs} +3 -3
- package/dist/{usePayments-B13S_yai.js → usePayments-DWXPGFvp.js} +1 -1
- package/dist/{usePortal-DWJEVkTj.js → usePortal-CxX4nrE4.js} +1 -1
- package/dist/{usePortal-DJDJNLbo.mjs → usePortal-cmE08vYs.mjs} +1 -1
- package/dist/useService-Bb9r_sOQ.js +1 -0
- package/dist/{useService-BuWWE5ND.mjs → useService-BsSEI8DZ.mjs} +1 -16
- package/dist/{useWalletBalanceItems-B53Gkjro.mjs → useWalletBalanceItems-CkDqmk36.mjs} +8 -5
- package/dist/useWalletBalanceItems-CpZ1NWPr.js +1 -0
- package/dist/vendor-ui-5pJF5KBP.js +1 -0
- package/dist/{vendor-ui-BwxuPDg8.mjs → vendor-ui-C0K3osvz.mjs} +13272 -14225
- package/package.json +4 -3
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C-C0i6i6.js +0 -1
- package/dist/ContentWithAsideLayout-oAYVrLvL.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CLU7Yiyx.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B_WLgBur.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DFw8lrDv.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DifRn1ok.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D1Xzfc70.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CpEqDnO3.js +0 -1
- package/dist/adyen-51SvcyqV.mjs +0 -4
- package/dist/adyen-DZsyEXkw.js +0 -1
- package/dist/adyenLoader-CEH4A2b2.js +0 -1
- package/dist/auto-DzZuCneB.mjs +0 -14387
- package/dist/auto-PpnAChnH.js +0 -6
- package/dist/component-C2Gc-wsE.js +0 -1
- package/dist/en-US-DJq-9dD8.js +0 -1
- package/dist/nl-NL-CtU1Lg2F.js +0 -1
- package/dist/source-DKDKBlUm.mjs +0 -179
- package/dist/source-dkMNFWDc.js +0 -1
- package/dist/useInvoicesList-CtJqmblZ.js +0 -1
- package/dist/useLoadInitialData-BRg7IWqW.js +0 -1
- package/dist/useService-9fCKPTmu.js +0 -1
- package/dist/useWalletBalanceItems-BMaVT4TW.js +0 -1
- package/dist/vendor-ui-Ce_Yp7xA.js +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ref, computed, onMounted, watch, defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, useModel, createElementBlock, withModifiers, Fragment, createCommentVNode, createSlots, normalizeClass, mergeModels, renderSlot, renderList, toRef, nextTick, withDirectives, withKeys, vShow, defineAsyncComponent } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { a as useLogger, _ as _sfc_main$Q, d as defineCustomElement, g as getComponentName } from "../../component-
|
|
4
|
-
import { c as createSubscriptionsService } from "../../subscriptions-
|
|
1
|
+
import { ref, computed, onMounted, toRaw, watch, defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, useModel, createElementBlock, withModifiers, Fragment, createCommentVNode, createSlots, normalizeClass, mergeModels, renderSlot, renderList, toRef, nextTick, withDirectives, withKeys, vShow, defineAsyncComponent } from "vue";
|
|
2
|
+
import { U as taxId, k as isEqual, V as convertDateRangeToTimePeriod, H as useValidation, J as objectDiff, W as isEmpty, u as useIntl, X as _sfc_main$q, _ as _sfc_main$r, Y as isEUCountry, Z as isValidCountryCode, $ as getCountryNameByCode, b as _sfc_main$s, M as _sfc_main$t, N as _sfc_main$u, e as _sfc_main$v, a0 as _sfc_main$w, O as _sfc_main$x, a1 as _sfc_main$y, a2 as _sfc_main$z, a3 as _sfc_main$A, a4 as TooltipContent, a5 as _sfc_main$B, a6 as formatBillingPeriod, x as formatAmount, a7 as _sfc_main$D, a8 as useTimePeriod, f as _sfc_main$E, a9 as _sfc_main$G, aa as _sfc_main$H, ab as _sfc_main$I, l as _sfc_main$J, D as _sfc_main$L, ac as _sfc_main$M, ad as usePricingItem, ae as _sfc_main$N, af as _sfc_main$O, ag as uniqueId, B as _sfc_main$P } from "../../vendor-ui-C0K3osvz.mjs";
|
|
3
|
+
import { a as useLogger, _ as _sfc_main$Q, d as defineCustomElement, g as getComponentName } from "../../component-Djrf1L-Z.mjs";
|
|
4
|
+
import { c as createSubscriptionsService } from "../../subscriptions-ClGIr_aS.mjs";
|
|
5
5
|
import { A as ApiStatus } from "../../ApiStatus-CyNDp_op.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import { c as createInvoicesService } from "../../invoices-BuVOuTOm.mjs";
|
|
6
|
+
import { c as createInvoicesService } from "../../invoices-DIYPN2j_.mjs";
|
|
8
7
|
import { a as requiredIf, r as required, e as email } from "../../index-CzL1ZcGi.mjs";
|
|
9
8
|
import { u as useWatchDebounced } from "../../useWatchDebounced-D1xuIX6_.mjs";
|
|
10
|
-
import { c as createPaymentMethodsService } from "../../paymentMethods-
|
|
11
|
-
import { u as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { _ as _sfc_main$
|
|
9
|
+
import { c as createPaymentMethodsService } from "../../paymentMethods-67b3UlTZ.mjs";
|
|
10
|
+
import { u as useService } from "../../useService-BsSEI8DZ.mjs";
|
|
11
|
+
import { u as usePortal } from "../../usePortal-cmE08vYs.mjs";
|
|
12
|
+
import { c as createCustomerService } from "../../customer-B31QzznT.mjs";
|
|
13
|
+
import { _ as _sfc_main$C, e as getAdyenExpressCheckoutConfiguration, c as transformObjectToAdyenObject, d as createReturnUrl, s as safeUrlRedirect } from "../../adyen-Bwewy3HC.mjs";
|
|
14
|
+
import { _ as _sfc_main$F } from "../../PricingGroupContent.vue_vue_type_script_setup_true_lang-BChVMzCj.mjs";
|
|
15
15
|
import { u as useViewport } from "../../useViewport-Bu0cyeSi.mjs";
|
|
16
|
-
import { _ as _sfc_main$K } from "../../Skeleton.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { c as createPaymentsService } from "../../payments-
|
|
18
|
-
import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-
|
|
16
|
+
import { _ as _sfc_main$K } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
|
|
17
|
+
import { c as createPaymentsService } from "../../payments-Dq6R37Fz.mjs";
|
|
18
|
+
import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-DhfUkZZg.mjs";
|
|
19
19
|
function getFirstPricingPlanScheduleOfType({
|
|
20
20
|
pricingPlanScheduleInfos,
|
|
21
21
|
type
|
|
@@ -386,6 +386,7 @@ const EMPTY_LEGAL_ENTITY_NAME = "preview";
|
|
|
386
386
|
const EMPTY_COUNTRY = "NL";
|
|
387
387
|
const useInvoicePreview = () => {
|
|
388
388
|
const { getInvoicePreview } = createInvoicesService();
|
|
389
|
+
const logger = useLogger();
|
|
389
390
|
const trialPeriod = ref();
|
|
390
391
|
const trialInvoicePreview = ref();
|
|
391
392
|
const invoicePreview = ref();
|
|
@@ -529,6 +530,7 @@ const useInvoicePreview = () => {
|
|
|
529
530
|
invoicePreview.value = updatedPreviews[selectedPeriodKey];
|
|
530
531
|
} catch (error) {
|
|
531
532
|
status.value = ApiStatus.Failed;
|
|
533
|
+
logger.error("INVOICE_PREVIEW_FAILED", "Failed to load invoice preview", {}, error);
|
|
532
534
|
throw error;
|
|
533
535
|
} finally {
|
|
534
536
|
status.value = ApiStatus.Done;
|
|
@@ -574,7 +576,7 @@ function useCheckoutForm({
|
|
|
574
576
|
const updateInitialState = (state) => {
|
|
575
577
|
const newState = getInitialState({ ...form.value, ...state });
|
|
576
578
|
form.value = newState;
|
|
577
|
-
initialFormState.value = structuredClone(newState);
|
|
579
|
+
initialFormState.value = structuredClone(toRaw(newState));
|
|
578
580
|
};
|
|
579
581
|
const requiredFields = computed(
|
|
580
582
|
() => getRequiredFieldsForCountry(form.value.country)
|
|
@@ -625,7 +627,9 @@ function useCheckoutForm({
|
|
|
625
627
|
onMounted(async () => {
|
|
626
628
|
await getCountryFromGeoLocationService(initialState == null ? void 0 : initialState.country);
|
|
627
629
|
});
|
|
628
|
-
useWatchDebounced(() => structuredClone(form.value), handleFormChange, {
|
|
630
|
+
useWatchDebounced(() => structuredClone(toRaw(form.value)), handleFormChange, {
|
|
631
|
+
debounce: 200
|
|
632
|
+
});
|
|
629
633
|
return {
|
|
630
634
|
form,
|
|
631
635
|
validation,
|
|
@@ -661,7 +665,11 @@ const usePaymentMethodOptions = () => {
|
|
|
661
665
|
const cachedPayload = ref();
|
|
662
666
|
const { getPaymentMethodOptions } = createPaymentMethodsService();
|
|
663
667
|
const initialValue = [];
|
|
664
|
-
const {
|
|
668
|
+
const {
|
|
669
|
+
data: paymentMethodOptions,
|
|
670
|
+
execute,
|
|
671
|
+
isPending
|
|
672
|
+
} = useService({
|
|
665
673
|
initialValue,
|
|
666
674
|
service: getPaymentMethodOptions
|
|
667
675
|
});
|
|
@@ -1033,11 +1041,11 @@ function useCheckoutView({
|
|
|
1033
1041
|
function usePromotionCode({
|
|
1034
1042
|
checkoutForm,
|
|
1035
1043
|
updateInvoicePreviewOnBillingInformationChange,
|
|
1036
|
-
logger,
|
|
1037
1044
|
formatErrorMessage,
|
|
1038
1045
|
onInvalidPromotionCode,
|
|
1039
1046
|
onApplyError
|
|
1040
1047
|
}) {
|
|
1048
|
+
const logger = useLogger();
|
|
1041
1049
|
const isPromotionCodePending = ref(false);
|
|
1042
1050
|
const promotionCodeErrorMessage = ref(null);
|
|
1043
1051
|
const setErrorMessage = (action, error) => {
|
|
@@ -1059,7 +1067,7 @@ function usePromotionCode({
|
|
|
1059
1067
|
promotionCode: normalizedCode
|
|
1060
1068
|
});
|
|
1061
1069
|
} catch (error) {
|
|
1062
|
-
logger
|
|
1070
|
+
logger.capture(error, {
|
|
1063
1071
|
code: "PROMOTION_CODE_APPLY_FAILED",
|
|
1064
1072
|
message: "Failed to apply promotion code"
|
|
1065
1073
|
});
|
|
@@ -1085,7 +1093,7 @@ function usePromotionCode({
|
|
|
1085
1093
|
try {
|
|
1086
1094
|
await updateInvoicePreviewOnBillingInformationChange({});
|
|
1087
1095
|
} catch (error) {
|
|
1088
|
-
logger
|
|
1096
|
+
logger.capture(error, {
|
|
1089
1097
|
code: "PROMOTION_CODE_REMOVE_FAILED",
|
|
1090
1098
|
message: "Failed to remove promotion code"
|
|
1091
1099
|
});
|
|
@@ -1203,10 +1211,10 @@ function useTaxIDValidationCheck(form) {
|
|
|
1203
1211
|
}
|
|
1204
1212
|
const _hoisted_1$l = { class: "grid grid-cols-1 gap-1" };
|
|
1205
1213
|
const _hoisted_2$d = { class: "grid grid-cols-1 gap-2" };
|
|
1206
|
-
const _hoisted_3$
|
|
1207
|
-
const _hoisted_4$
|
|
1208
|
-
const _hoisted_5$
|
|
1209
|
-
const _hoisted_6$
|
|
1214
|
+
const _hoisted_3$7 = { key: 0 };
|
|
1215
|
+
const _hoisted_4$5 = { class: "mt-2 flex flex-col gap-3" };
|
|
1216
|
+
const _hoisted_5$4 = { class: "grid grid-cols-3 gap-2" };
|
|
1217
|
+
const _hoisted_6$2 = { class: "flex grow flex-col" };
|
|
1210
1218
|
const _hoisted_7$1 = { key: 0 };
|
|
1211
1219
|
const _hoisted_8$1 = { class: "mt-4 grid grid-cols-1 gap-3" };
|
|
1212
1220
|
const FORM_ID = "checkout-form";
|
|
@@ -1370,8 +1378,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1370
1378
|
]),
|
|
1371
1379
|
createVNode(unref(_sfc_main$w), null, {
|
|
1372
1380
|
default: withCtx(() => [
|
|
1373
|
-
showBillingDetails.value || __props.isBillingInformationMandatory ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
1374
|
-
createElementVNode("div", _hoisted_4$
|
|
1381
|
+
showBillingDetails.value || __props.isBillingInformationMandatory ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
1382
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
1375
1383
|
createVNode(unref(_sfc_main$t), {
|
|
1376
1384
|
modelValue: model.value.addressLine1,
|
|
1377
1385
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => model.value.addressLine1 = $event),
|
|
@@ -1399,7 +1407,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1399
1407
|
description: "Address line 2 of the customer address in the checkout form"
|
|
1400
1408
|
}) + getOptionalSuffix("addressLine2")
|
|
1401
1409
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1402
|
-
createElementVNode("div", _hoisted_5$
|
|
1410
|
+
createElementVNode("div", _hoisted_5$4, [
|
|
1403
1411
|
createVNode(unref(_sfc_main$t), {
|
|
1404
1412
|
modelValue: model.value.postalCode,
|
|
1405
1413
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => model.value.postalCode = $event),
|
|
@@ -1451,7 +1459,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1451
1459
|
class: "!flex"
|
|
1452
1460
|
}, {
|
|
1453
1461
|
"inline-label": withCtx(() => [
|
|
1454
|
-
createElementVNode("div", _hoisted_6$
|
|
1462
|
+
createElementVNode("div", _hoisted_6$2, [
|
|
1455
1463
|
createVNode(unref(_sfc_main$r), { tag: "span" }, {
|
|
1456
1464
|
default: withCtx(() => [
|
|
1457
1465
|
createTextVNode(toDisplayString(unref($t)({
|
|
@@ -1566,7 +1574,7 @@ const _hoisted_1$k = {
|
|
|
1566
1574
|
class: "flex items-center"
|
|
1567
1575
|
};
|
|
1568
1576
|
const _hoisted_2$c = ["innerHTML"];
|
|
1569
|
-
const _hoisted_3$
|
|
1577
|
+
const _hoisted_3$6 = ["innerHTML"];
|
|
1570
1578
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
1571
1579
|
__name: "CheckoutTitle",
|
|
1572
1580
|
props: {
|
|
@@ -1581,7 +1589,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1581
1589
|
setup(__props) {
|
|
1582
1590
|
const { $t } = useIntl();
|
|
1583
1591
|
return (_ctx, _cache) => {
|
|
1584
|
-
return openBlock(), createElementBlock(
|
|
1592
|
+
return openBlock(), createElementBlock("div", null, [
|
|
1585
1593
|
createElementVNode("div", null, [
|
|
1586
1594
|
createVNode(unref(_sfc_main$r), {
|
|
1587
1595
|
variant: "heading-1",
|
|
@@ -1702,11 +1710,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1702
1710
|
strong: (text) => `<strong>${text}</strong>`
|
|
1703
1711
|
}
|
|
1704
1712
|
)
|
|
1705
|
-
}, null, 8, _hoisted_3$
|
|
1713
|
+
}, null, 8, _hoisted_3$6))
|
|
1706
1714
|
]),
|
|
1707
1715
|
_: 1
|
|
1708
1716
|
})
|
|
1709
|
-
]
|
|
1717
|
+
]);
|
|
1710
1718
|
};
|
|
1711
1719
|
}
|
|
1712
1720
|
});
|
|
@@ -1927,10 +1935,14 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1927
1935
|
};
|
|
1928
1936
|
}
|
|
1929
1937
|
});
|
|
1930
|
-
const _hoisted_1$h = { class: "grid grid-cols-1 gap-1" };
|
|
1938
|
+
const _hoisted_1$h = { class: "sv-order-summary__body grid grid-cols-1 gap-1" };
|
|
1931
1939
|
const _hoisted_2$9 = { class: "px-3 py-2" };
|
|
1932
|
-
const _hoisted_3$
|
|
1933
|
-
const _hoisted_4$
|
|
1940
|
+
const _hoisted_3$5 = { class: "sv-order-summary__billing-period flex flex-col gap-3" };
|
|
1941
|
+
const _hoisted_4$4 = { class: "px-3 py-2" };
|
|
1942
|
+
const _hoisted_5$3 = {
|
|
1943
|
+
key: 3,
|
|
1944
|
+
class: "sv-order-summary__items"
|
|
1945
|
+
};
|
|
1934
1946
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
1935
1947
|
__name: "OrderSummary",
|
|
1936
1948
|
props: {
|
|
@@ -2213,6 +2225,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2213
2225
|
};
|
|
2214
2226
|
return (_ctx, _cache) => {
|
|
2215
2227
|
return openBlock(), createBlock(unref(_sfc_main$s), {
|
|
2228
|
+
class: "sv-order-summary",
|
|
2216
2229
|
"no-border": "",
|
|
2217
2230
|
"no-spacing": "",
|
|
2218
2231
|
"content-background": "none",
|
|
@@ -2224,7 +2237,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2224
2237
|
}, {
|
|
2225
2238
|
default: withCtx(() => [
|
|
2226
2239
|
createElementVNode("div", _hoisted_1$h, [
|
|
2227
|
-
createVNode(unref(_sfc_main$s), {
|
|
2240
|
+
createVNode(unref(_sfc_main$s), {
|
|
2241
|
+
"no-spacing": "",
|
|
2242
|
+
class: "sv-order-summary__subscription"
|
|
2243
|
+
}, {
|
|
2228
2244
|
default: withCtx(() => [
|
|
2229
2245
|
__props.subscription ? (openBlock(), createBlock(_sfc_main$k, {
|
|
2230
2246
|
key: 0,
|
|
@@ -2247,7 +2263,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2247
2263
|
var _a;
|
|
2248
2264
|
return [
|
|
2249
2265
|
createElementVNode("div", _hoisted_2$9, [
|
|
2250
|
-
createElementVNode("div", _hoisted_3$
|
|
2266
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
2251
2267
|
highOption.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
2252
2268
|
key: 0,
|
|
2253
2269
|
name: highOption.value.label,
|
|
@@ -2283,6 +2299,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2283
2299
|
key: 1,
|
|
2284
2300
|
"single-model-value": selectedBillingPeriodKey.value,
|
|
2285
2301
|
"onUpdate:singleModelValue": _cache[0] || (_cache[0] = ($event) => selectedBillingPeriodKey.value = $event),
|
|
2302
|
+
class: "sv-order-summary__billing-period",
|
|
2286
2303
|
options: billingPeriodOptions.value,
|
|
2287
2304
|
size: "xl",
|
|
2288
2305
|
"has-large-dropdown": "",
|
|
@@ -2291,10 +2308,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2291
2308
|
}, null, 8, ["single-model-value", "options"])) : createCommentVNode("", true),
|
|
2292
2309
|
__props.isUsageBased ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
2293
2310
|
key: 2,
|
|
2294
|
-
"no-spacing": ""
|
|
2311
|
+
"no-spacing": "",
|
|
2312
|
+
class: "sv-order-summary__usage"
|
|
2295
2313
|
}, {
|
|
2296
2314
|
default: withCtx(() => [
|
|
2297
|
-
createElementVNode("div", _hoisted_4$
|
|
2315
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
2298
2316
|
createVNode(unref(_sfc_main$r), {
|
|
2299
2317
|
"no-spacing": "",
|
|
2300
2318
|
variant: "body-sm",
|
|
@@ -2313,15 +2331,17 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2313
2331
|
]),
|
|
2314
2332
|
_: 1
|
|
2315
2333
|
})) : createCommentVNode("", true),
|
|
2316
|
-
__props.invoice && __props.variant !== "products-inline" ? (openBlock(),
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2334
|
+
__props.invoice && __props.variant !== "products-inline" ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
2335
|
+
createVNode(unref(_sfc_main$H), {
|
|
2336
|
+
invoice: __props.invoice,
|
|
2337
|
+
"wrapper-component": unref(_sfc_main$s)
|
|
2338
|
+
}, null, 8, ["invoice", "wrapper-component"])
|
|
2339
|
+
])) : createCommentVNode("", true),
|
|
2340
|
+
createVNode(unref(_sfc_main$s), { class: "sv-order-summary__totals" }, {
|
|
2322
2341
|
default: withCtx(() => [
|
|
2323
2342
|
__props.invoice ? (openBlock(), createBlock(unref(_sfc_main$I), {
|
|
2324
2343
|
key: 0,
|
|
2344
|
+
class: "sv-order-summary__invoice-preview",
|
|
2325
2345
|
variant: __props.variant === "products-inline" ? "default" : "without-products",
|
|
2326
2346
|
invoice: __props.invoice,
|
|
2327
2347
|
"trial-invoice": __props.trialInvoice,
|
|
@@ -2332,7 +2352,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2332
2352
|
}, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (openBlock(), createBlock(unref(_sfc_main$r), {
|
|
2333
2353
|
key: 1,
|
|
2334
2354
|
variant: "body-sm",
|
|
2335
|
-
shade: "lighter"
|
|
2355
|
+
shade: "lighter",
|
|
2356
|
+
class: "sv-order-summary__empty"
|
|
2336
2357
|
}, {
|
|
2337
2358
|
default: withCtx(() => [
|
|
2338
2359
|
createTextVNode(toDisplayString(unref($t)({
|
|
@@ -2353,7 +2374,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2353
2374
|
};
|
|
2354
2375
|
}
|
|
2355
2376
|
});
|
|
2356
|
-
const _hoisted_1$g = { class: "
|
|
2377
|
+
const _hoisted_1$g = { class: "sv-empty-state__body flex flex-col items-center justify-center py-4" };
|
|
2357
2378
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
2358
2379
|
__name: "EmptyStatePlaceholder",
|
|
2359
2380
|
props: {
|
|
@@ -2361,13 +2382,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2361
2382
|
},
|
|
2362
2383
|
setup(__props) {
|
|
2363
2384
|
return (_ctx, _cache) => {
|
|
2364
|
-
return openBlock(), createBlock(unref(_sfc_main$s),
|
|
2385
|
+
return openBlock(), createBlock(unref(_sfc_main$s), { class: "sv-empty-state" }, {
|
|
2365
2386
|
default: withCtx(() => [
|
|
2366
2387
|
createElementVNode("div", _hoisted_1$g, [
|
|
2367
2388
|
createVNode(unref(_sfc_main$J), {
|
|
2368
2389
|
icon: __props.icon,
|
|
2369
2390
|
size: "lg",
|
|
2370
|
-
class: "text-gray-500"
|
|
2391
|
+
class: "sv-empty-state__icon text-gray-500"
|
|
2371
2392
|
}, null, 8, ["icon"]),
|
|
2372
2393
|
createVNode(unref(_sfc_main$r), {
|
|
2373
2394
|
center: "",
|
|
@@ -2375,7 +2396,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2375
2396
|
variant: "body-sm",
|
|
2376
2397
|
weight: "semibold",
|
|
2377
2398
|
shade: "lighter",
|
|
2378
|
-
class: "mt-2"
|
|
2399
|
+
class: "sv-empty-state__title mt-2"
|
|
2379
2400
|
}, {
|
|
2380
2401
|
default: withCtx(() => [
|
|
2381
2402
|
renderSlot(_ctx.$slots, "title")
|
|
@@ -2387,7 +2408,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2387
2408
|
tag: "span",
|
|
2388
2409
|
variant: "body-xs",
|
|
2389
2410
|
shade: "lightest",
|
|
2390
|
-
class: "mt-1"
|
|
2411
|
+
class: "sv-empty-state__message mt-1"
|
|
2391
2412
|
}, {
|
|
2392
2413
|
default: withCtx(() => [
|
|
2393
2414
|
renderSlot(_ctx.$slots, "message")
|
|
@@ -2514,13 +2535,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2514
2535
|
const { authorizePayment } = createPaymentsService();
|
|
2515
2536
|
const paymentAcceptorId = props.paymentMethodOptionsResponse.payment_acceptor.id;
|
|
2516
2537
|
const initApplePay = async () => {
|
|
2517
|
-
const { AdyenCheckout, ApplePay } = await
|
|
2538
|
+
const { AdyenCheckout, ApplePay } = await import("../../index-DyvRdSR7.mjs");
|
|
2518
2539
|
const checkout = await AdyenCheckout(
|
|
2519
2540
|
getAdyenExpressCheckoutConfiguration({
|
|
2520
2541
|
amount: props.amount,
|
|
2521
2542
|
locale: props.locale,
|
|
2522
2543
|
countryCode: props.countryCode,
|
|
2523
|
-
paymentMethodOptionResponse: props.paymentMethodOptionsResponse
|
|
2544
|
+
paymentMethodOptionResponse: props.paymentMethodOptionsResponse,
|
|
2545
|
+
logger
|
|
2524
2546
|
})
|
|
2525
2547
|
);
|
|
2526
2548
|
const applePay = new ApplePay(checkout, {
|
|
@@ -2666,7 +2688,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2666
2688
|
}
|
|
2667
2689
|
});
|
|
2668
2690
|
if (!applePayButtonRef.value) {
|
|
2669
|
-
|
|
2691
|
+
logger.error("APPLE_PAY_ERROR", "Apple Pay button ref not found");
|
|
2670
2692
|
return;
|
|
2671
2693
|
}
|
|
2672
2694
|
try {
|
|
@@ -2674,7 +2696,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2674
2696
|
applePay.mount(applePayButtonRef.value);
|
|
2675
2697
|
emit("ready");
|
|
2676
2698
|
} catch (e) {
|
|
2677
|
-
|
|
2699
|
+
logger.error("APPLE_PAY_ERROR", "Apple Pay not available on this device", {}, e);
|
|
2678
2700
|
}
|
|
2679
2701
|
};
|
|
2680
2702
|
const getAppleIntervalConfigFromTimePeriod = (timePeriod) => {
|
|
@@ -2761,13 +2783,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2761
2783
|
const paypalButtonRef = ref();
|
|
2762
2784
|
const logger = useLogger();
|
|
2763
2785
|
const initPaypal = async () => {
|
|
2764
|
-
const { AdyenCheckout, PayPal } = await
|
|
2786
|
+
const { AdyenCheckout, PayPal } = await import("../../index-DyvRdSR7.mjs");
|
|
2765
2787
|
const checkout = await AdyenCheckout(
|
|
2766
2788
|
getAdyenExpressCheckoutConfiguration({
|
|
2767
2789
|
locale: props.locale,
|
|
2768
2790
|
amount: props.amount,
|
|
2769
2791
|
countryCode: props.countryCode,
|
|
2770
|
-
paymentMethodOptionResponse: props.paymentMethodOptionsResponse
|
|
2792
|
+
paymentMethodOptionResponse: props.paymentMethodOptionsResponse,
|
|
2793
|
+
logger
|
|
2771
2794
|
})
|
|
2772
2795
|
);
|
|
2773
2796
|
const paypal = new PayPal(checkout, {
|
|
@@ -2817,7 +2840,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2817
2840
|
};
|
|
2818
2841
|
}
|
|
2819
2842
|
});
|
|
2820
|
-
const _hoisted_1$c = { class: "
|
|
2843
|
+
const _hoisted_1$c = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" };
|
|
2821
2844
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
2822
2845
|
__name: "ExpressPaymentMethodGooglePay",
|
|
2823
2846
|
props: {
|
|
@@ -2835,13 +2858,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2835
2858
|
const googlePayButtonRef = ref();
|
|
2836
2859
|
const logger = useLogger();
|
|
2837
2860
|
const initGooglePay = async () => {
|
|
2838
|
-
const { AdyenCheckout, GooglePay } = await
|
|
2861
|
+
const { AdyenCheckout, GooglePay } = await import("../../index-DyvRdSR7.mjs");
|
|
2839
2862
|
const checkout = await AdyenCheckout(
|
|
2840
2863
|
getAdyenExpressCheckoutConfiguration({
|
|
2841
2864
|
locale: props.locale,
|
|
2842
2865
|
amount: props.amount,
|
|
2843
2866
|
countryCode: props.countryCode,
|
|
2844
|
-
paymentMethodOptionResponse: props.paymentMethodOptionsResponse
|
|
2867
|
+
paymentMethodOptionResponse: props.paymentMethodOptionsResponse,
|
|
2868
|
+
logger
|
|
2845
2869
|
})
|
|
2846
2870
|
);
|
|
2847
2871
|
const googlePay = new GooglePay(checkout, { isExpress: true });
|
|
@@ -2901,8 +2925,8 @@ const _hoisted_1$b = {
|
|
|
2901
2925
|
class: "mt-4n"
|
|
2902
2926
|
};
|
|
2903
2927
|
const _hoisted_2$7 = { class: "mb-2" };
|
|
2904
|
-
const _hoisted_3$
|
|
2905
|
-
const _hoisted_4$
|
|
2928
|
+
const _hoisted_3$4 = { class: "grid grid-cols-6 gap-1 md:gap-2" };
|
|
2929
|
+
const _hoisted_4$3 = { class: "h-4 mt-4" };
|
|
2906
2930
|
const DEFAULT_EXPRESS_PAYMENT_BUTTON_COUNT = 2;
|
|
2907
2931
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
2908
2932
|
__name: "ExpressPaymentMethods",
|
|
@@ -2998,7 +3022,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2998
3022
|
_: 1
|
|
2999
3023
|
}))
|
|
3000
3024
|
]),
|
|
3001
|
-
createElementVNode("div", _hoisted_3$
|
|
3025
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
3002
3026
|
!isReady.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3003
3027
|
createVNode(_sfc_main$K, { class: "h-11 col-span-3" }),
|
|
3004
3028
|
createVNode(_sfc_main$K, { class: "h-11 col-span-3" })
|
|
@@ -3061,7 +3085,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
3061
3085
|
}, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response"])) : createCommentVNode("", true)
|
|
3062
3086
|
], 2)
|
|
3063
3087
|
]),
|
|
3064
|
-
createElementVNode("div", _hoisted_4$
|
|
3088
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
3065
3089
|
!isReady.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
3066
3090
|
key: 0,
|
|
3067
3091
|
variant: "divider-text"
|
|
@@ -3238,9 +3262,9 @@ function useSeatBasedPricing({
|
|
|
3238
3262
|
}
|
|
3239
3263
|
const _hoisted_1$8 = { class: "flex flex-row-reverse md:flex-row gap-4" };
|
|
3240
3264
|
const _hoisted_2$6 = { class: "w-24 md:w-32 shrink-0 justify-start" };
|
|
3241
|
-
const _hoisted_3$
|
|
3242
|
-
const _hoisted_4$
|
|
3243
|
-
const _hoisted_5$
|
|
3265
|
+
const _hoisted_3$3 = ["tabindex"];
|
|
3266
|
+
const _hoisted_4$2 = { key: 0 };
|
|
3267
|
+
const _hoisted_5$2 = { key: 0 };
|
|
3244
3268
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
3245
3269
|
__name: "SeatsEditorItem",
|
|
3246
3270
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -3349,12 +3373,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
3349
3373
|
]),
|
|
3350
3374
|
_: 1
|
|
3351
3375
|
})) : createCommentVNode("", true)
|
|
3352
|
-
], 10, _hoisted_3$
|
|
3376
|
+
], 10, _hoisted_3$3)
|
|
3353
3377
|
]),
|
|
3354
|
-
((_c = (_b = unref(seats).pricing) == null ? void 0 : _b.tiered) == null ? void 0 : _c.bands) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
3378
|
+
((_c = (_b = unref(seats).pricing) == null ? void 0 : _b.tiered) == null ? void 0 : _c.bands) ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
3355
3379
|
createVNode(unref(_sfc_main$w), null, {
|
|
3356
3380
|
default: withCtx(() => [
|
|
3357
|
-
isExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
3381
|
+
isExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
3358
3382
|
createVNode(_sfc_main$b, {
|
|
3359
3383
|
bands: unref(seats).pricing.tiered.bands,
|
|
3360
3384
|
period: unref(seats).billing.period
|
|
@@ -3783,7 +3807,7 @@ function getAllPricingsFromPricingPlanVersion(pricingPlanVersion) {
|
|
|
3783
3807
|
const pricings = ((_a = pricingPlanVersion.pricing_categories) == null ? void 0 : _a.flatMap((category) => category.pricings ?? [])) ?? [];
|
|
3784
3808
|
return pricings.filter((pricing) => pricing !== null);
|
|
3785
3809
|
}
|
|
3786
|
-
const _hoisted_1$3 = { class: "grid grid-cols-1 gap-1" };
|
|
3810
|
+
const _hoisted_1$3 = { class: "sv-plan-customization__body grid grid-cols-1 gap-1" };
|
|
3787
3811
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
3788
3812
|
__name: "PlanCustomizationEditor",
|
|
3789
3813
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -3825,6 +3849,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3825
3849
|
);
|
|
3826
3850
|
return (_ctx, _cache) => {
|
|
3827
3851
|
return openBlock(), createBlock(unref(_sfc_main$s), {
|
|
3852
|
+
class: "sv-plan-customization",
|
|
3828
3853
|
title: unref($t)({
|
|
3829
3854
|
defaultMessage: "Customize plan",
|
|
3830
3855
|
id: "checkout.customize_plan_block.title",
|
|
@@ -3839,6 +3864,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3839
3864
|
createVNode(_sfc_main$9, {
|
|
3840
3865
|
modelValue: seatsModel.value,
|
|
3841
3866
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => seatsModel.value = $event),
|
|
3867
|
+
class: "sv-plan-customization__seats",
|
|
3842
3868
|
"initial-seats-values": __props.initialSeatsValues,
|
|
3843
3869
|
pricings: pricings.value
|
|
3844
3870
|
}, null, 8, ["modelValue", "initial-seats-values", "pricings"]),
|
|
@@ -3850,6 +3876,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3850
3876
|
key: 0,
|
|
3851
3877
|
modelValue: enabledPricingIdsModel.value,
|
|
3852
3878
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => enabledPricingIdsModel.value = $event),
|
|
3879
|
+
class: "sv-plan-customization__group",
|
|
3853
3880
|
"group-name": pricingGroup.name,
|
|
3854
3881
|
pricings: pricingGroup.pricings,
|
|
3855
3882
|
"billing-period": __props.billingPeriod,
|
|
@@ -3858,6 +3885,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3858
3885
|
key: 1,
|
|
3859
3886
|
modelValue: enabledPricingIdsModel.value,
|
|
3860
3887
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => enabledPricingIdsModel.value = $event),
|
|
3888
|
+
class: "sv-plan-customization__group",
|
|
3861
3889
|
"group-name": pricingGroup.name,
|
|
3862
3890
|
pricings: pricingGroup.pricings,
|
|
3863
3891
|
constraint: pricingGroup.selection_constraint,
|
|
@@ -3867,6 +3895,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3867
3895
|
key: 2,
|
|
3868
3896
|
modelValue: enabledPricingIdsModel.value,
|
|
3869
3897
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => enabledPricingIdsModel.value = $event),
|
|
3898
|
+
class: "sv-plan-customization__group",
|
|
3870
3899
|
pricings: pricingGroup.pricings,
|
|
3871
3900
|
"group-name": pricingGroup.name,
|
|
3872
3901
|
"billing-period": __props.billingPeriod,
|
|
@@ -3877,6 +3906,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3877
3906
|
createVNode(_sfc_main$6, {
|
|
3878
3907
|
modelValue: enabledPricingIdsModel.value,
|
|
3879
3908
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => enabledPricingIdsModel.value = $event),
|
|
3909
|
+
class: "sv-plan-customization__group",
|
|
3880
3910
|
pricings: addonPricings.value,
|
|
3881
3911
|
"billing-period": __props.billingPeriod,
|
|
3882
3912
|
currency: __props.currency
|
|
@@ -3888,15 +3918,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3888
3918
|
};
|
|
3889
3919
|
}
|
|
3890
3920
|
});
|
|
3891
|
-
function uniqueId(prefix = "") {
|
|
3892
|
-
return `${prefix}${crypto.randomUUID()}`;
|
|
3893
|
-
}
|
|
3894
3921
|
const _hoisted_1$2 = ["aria-expanded", "aria-label"];
|
|
3895
3922
|
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$
|
|
3897
|
-
const _hoisted_4 = ["onKeydown"];
|
|
3898
|
-
const _hoisted_5 = ["aria-label"];
|
|
3899
|
-
const _hoisted_6 = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" };
|
|
3923
|
+
const _hoisted_3$2 = { class: "flex flex-row items-center gap-2" };
|
|
3924
|
+
const _hoisted_4$1 = ["onKeydown"];
|
|
3925
|
+
const _hoisted_5$1 = ["aria-label"];
|
|
3926
|
+
const _hoisted_6$1 = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" };
|
|
3900
3927
|
const _hoisted_7 = { class: "flex flex-row items-center gap-2" };
|
|
3901
3928
|
const _hoisted_8 = {
|
|
3902
3929
|
class: "sr-only",
|
|
@@ -4040,7 +4067,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4040
4067
|
onClick: toggleExpanded
|
|
4041
4068
|
}, [
|
|
4042
4069
|
createElementVNode("div", _hoisted_2$2, [
|
|
4043
|
-
createElementVNode("div", _hoisted_3$
|
|
4070
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
4044
4071
|
createVNode(unref(_sfc_main$J), { icon: "local_activity" }),
|
|
4045
4072
|
createVNode(unref(_sfc_main$r), {
|
|
4046
4073
|
id: labelId,
|
|
@@ -4102,7 +4129,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4102
4129
|
]),
|
|
4103
4130
|
_: 1
|
|
4104
4131
|
}, 8, ["disabled", "aria-label", "aria-disabled"])
|
|
4105
|
-
], 40, _hoisted_4), [
|
|
4132
|
+
], 40, _hoisted_4$1), [
|
|
4106
4133
|
[vShow, isExpanded.value]
|
|
4107
4134
|
])
|
|
4108
4135
|
]),
|
|
@@ -4121,7 +4148,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4121
4148
|
"aria-label": removeAriaLabel.value,
|
|
4122
4149
|
onClick: removeCode
|
|
4123
4150
|
}, [
|
|
4124
|
-
createElementVNode("div", _hoisted_6, [
|
|
4151
|
+
createElementVNode("div", _hoisted_6$1, [
|
|
4125
4152
|
createElementVNode("div", _hoisted_7, [
|
|
4126
4153
|
createVNode(unref(_sfc_main$J), { icon: "local_activity" }),
|
|
4127
4154
|
createVNode(unref(_sfc_main$r), {
|
|
@@ -4136,7 +4163,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4136
4163
|
]),
|
|
4137
4164
|
createVNode(unref(_sfc_main$J), { icon: "close" })
|
|
4138
4165
|
])
|
|
4139
|
-
], 8, _hoisted_5)
|
|
4166
|
+
], 8, _hoisted_5$1)
|
|
4140
4167
|
]),
|
|
4141
4168
|
_: 1
|
|
4142
4169
|
})),
|
|
@@ -4147,7 +4174,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4147
4174
|
});
|
|
4148
4175
|
const _hoisted_1$1 = { class: "flex justify-around" };
|
|
4149
4176
|
const _hoisted_2$1 = { class: "flex items-center gap-0.5" };
|
|
4150
|
-
const _hoisted_3 = {
|
|
4177
|
+
const _hoisted_3$1 = {
|
|
4151
4178
|
key: 0,
|
|
4152
4179
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4153
4180
|
width: "40",
|
|
@@ -4200,7 +4227,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4200
4227
|
}, {
|
|
4201
4228
|
default: withCtx(() => [
|
|
4202
4229
|
createTextVNode(toDisplayString(securePaymentsText.value) + " ", 1),
|
|
4203
|
-
showAdyen.value ? (openBlock(), createElementBlock("svg", _hoisted_3, [..._cache[0] || (_cache[0] = [
|
|
4230
|
+
showAdyen.value ? (openBlock(), createElementBlock("svg", _hoisted_3$1, [..._cache[0] || (_cache[0] = [
|
|
4204
4231
|
createElementVNode("path", {
|
|
4205
4232
|
fill: "currentColor",
|
|
4206
4233
|
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"
|
|
@@ -4214,8 +4241,21 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4214
4241
|
};
|
|
4215
4242
|
}
|
|
4216
4243
|
});
|
|
4217
|
-
const _hoisted_1 = {
|
|
4218
|
-
const _hoisted_2 = {
|
|
4244
|
+
const _hoisted_1 = { class: "sv-checkout__header" };
|
|
4245
|
+
const _hoisted_2 = {
|
|
4246
|
+
key: 5,
|
|
4247
|
+
class: "sv-checkout__payment-methods"
|
|
4248
|
+
};
|
|
4249
|
+
const _hoisted_3 = {
|
|
4250
|
+
key: 0,
|
|
4251
|
+
class: "sv-checkout__payment-methods-body"
|
|
4252
|
+
};
|
|
4253
|
+
const _hoisted_4 = {
|
|
4254
|
+
key: 2,
|
|
4255
|
+
class: "sv-checkout__payment-form"
|
|
4256
|
+
};
|
|
4257
|
+
const _hoisted_5 = { class: "sv-checkout__order-summary" };
|
|
4258
|
+
const _hoisted_6 = { class: "flex flex-col gap-2" };
|
|
4219
4259
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
4220
4260
|
__name: "Checkout",
|
|
4221
4261
|
props: {
|
|
@@ -4225,7 +4265,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4225
4265
|
setup(__props, { emit: __emit }) {
|
|
4226
4266
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4227
4267
|
const PaymentIntegrationForm = defineAsyncComponent(
|
|
4228
|
-
() => import("../../PaymentIntegrationForm-
|
|
4268
|
+
() => import("../../PaymentIntegrationForm-DNkjhqMF.mjs")
|
|
4229
4269
|
);
|
|
4230
4270
|
const props = __props;
|
|
4231
4271
|
const emit = __emit;
|
|
@@ -4492,7 +4532,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4492
4532
|
} = usePromotionCode({
|
|
4493
4533
|
checkoutForm,
|
|
4494
4534
|
updateInvoicePreviewOnBillingInformationChange,
|
|
4495
|
-
logger,
|
|
4496
4535
|
formatErrorMessage: ({ action }) => action === "apply" ? $t({
|
|
4497
4536
|
defaultMessage: "Promotion code could not be applied. Please try again.",
|
|
4498
4537
|
id: "checkout.promotion_code.apply_failed",
|
|
@@ -4540,32 +4579,42 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4540
4579
|
emit("ready");
|
|
4541
4580
|
});
|
|
4542
4581
|
return (_ctx, _cache) => {
|
|
4543
|
-
return criticalError.value ? (openBlock(), createBlock(_sfc_main$m, {
|
|
4582
|
+
return criticalError.value ? (openBlock(), createBlock(_sfc_main$m, {
|
|
4583
|
+
key: 0,
|
|
4584
|
+
class: "sv-checkout sv-root sv-screen sv-checkout--error"
|
|
4585
|
+
})) : (openBlock(), createBlock(unref(ContentWithAsideLayout), {
|
|
4586
|
+
key: 1,
|
|
4587
|
+
class: normalizeClass(["sv-checkout sv-root sv-screen", { "sv-checkout--paid": unref(isPaid) }])
|
|
4588
|
+
}, {
|
|
4544
4589
|
header: withCtx(() => [
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4590
|
+
createElementVNode("div", _hoisted_1, [
|
|
4591
|
+
createVNode(_sfc_main$K, { class: "min-h-[52px] w-96" }, {
|
|
4592
|
+
default: withCtx(() => {
|
|
4593
|
+
var _a2, _b2, _c2;
|
|
4594
|
+
return [
|
|
4595
|
+
unref(invoicePreview) && unref(subscription) && subscriptionStartDate.value ? (openBlock(), createBlock(_sfc_main$n, {
|
|
4596
|
+
key: 0,
|
|
4597
|
+
class: "sv-checkout__title",
|
|
4598
|
+
"trial-start-date": trialStartDate.value,
|
|
4599
|
+
"trial-period": unref(trialPeriod),
|
|
4600
|
+
"subscription-start-date": subscriptionStartDate.value,
|
|
4601
|
+
"subscription-name": ((_a2 = unref(subscription)) == null ? void 0 : _a2.name) ?? "",
|
|
4602
|
+
amount: (_b2 = unref(invoicePreview)) == null ? void 0 : _b2.invoice_amount_including_tax,
|
|
4603
|
+
"billing-period": (_c2 = unref(subscription)) == null ? void 0 : _c2.billing_period,
|
|
4604
|
+
"country-code": unref(checkoutForm).form.value.country
|
|
4605
|
+
}, null, 8, ["trial-start-date", "trial-period", "subscription-start-date", "subscription-name", "amount", "billing-period", "country-code"])) : createCommentVNode("", true)
|
|
4606
|
+
];
|
|
4607
|
+
}),
|
|
4608
|
+
_: 1
|
|
4609
|
+
})
|
|
4610
|
+
])
|
|
4563
4611
|
]),
|
|
4564
4612
|
content: withCtx(() => {
|
|
4565
4613
|
var _a2, _b2, _c2;
|
|
4566
4614
|
return [
|
|
4567
4615
|
unref(subscription) && unref(isMobileViewport) ? (openBlock(), createBlock(_sfc_main$j, {
|
|
4568
4616
|
key: 0,
|
|
4617
|
+
class: "sv-checkout__mobile-order-summary",
|
|
4569
4618
|
subscription: unref(subscription),
|
|
4570
4619
|
invoice: unref(invoicePreview),
|
|
4571
4620
|
"invoice-preview-by-billing-period": unref(invoicePreviewByBillingPeriod),
|
|
@@ -4587,6 +4636,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4587
4636
|
"onUpdate:seatsValues": _cache[0] || (_cache[0] = ($event) => seatsValuesModel.value = $event),
|
|
4588
4637
|
"enabled-pricing-ids": enabledPricingIdsModel.value,
|
|
4589
4638
|
"onUpdate:enabledPricingIds": _cache[1] || (_cache[1] = ($event) => enabledPricingIdsModel.value = $event),
|
|
4639
|
+
class: "sv-checkout__plan-customization",
|
|
4590
4640
|
subscription: unref(subscription),
|
|
4591
4641
|
"initial-seats-values": (_b2 = unref(checkoutForm).initialState) == null ? void 0 : _b2.value.seatsValues,
|
|
4592
4642
|
"billing-period": unref(subscription).billing_period,
|
|
@@ -4594,6 +4644,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4594
4644
|
}, null, 8, ["seats-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "billing-period", "currency"])) : createCommentVNode("", true),
|
|
4595
4645
|
!unref(isPaid) && unref(checkoutForm).form.value.country && unref(amount) && expressPaymentMethodBillingInformation.value ? (openBlock(), createBlock(_sfc_main$d, {
|
|
4596
4646
|
key: 2,
|
|
4647
|
+
class: "sv-checkout__express-payment-methods",
|
|
4597
4648
|
amount: unref(amount),
|
|
4598
4649
|
"country-code": unref(checkoutForm).form.value.country,
|
|
4599
4650
|
locale: unref(locale),
|
|
@@ -4604,12 +4655,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4604
4655
|
}, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change"])) : createCommentVNode("", true),
|
|
4605
4656
|
unref(isPaid) ? (openBlock(), createBlock(_sfc_main$l, {
|
|
4606
4657
|
key: 3,
|
|
4658
|
+
class: "sv-checkout__completed-payment",
|
|
4607
4659
|
onContinueToMerchant: handleRedirect
|
|
4608
4660
|
})) : createCommentVNode("", true),
|
|
4609
4661
|
!unref(isPaid) ? (openBlock(), createBlock(_sfc_main$o, {
|
|
4610
4662
|
key: 4,
|
|
4611
4663
|
modelValue: unref(checkoutForm).form.value,
|
|
4612
4664
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(checkoutForm).form.value = $event),
|
|
4665
|
+
class: "sv-checkout__customer-form",
|
|
4613
4666
|
validation: unref(checkoutForm).validation,
|
|
4614
4667
|
"read-only-email": (_c2 = props.configuration) == null ? void 0 : _c2.email,
|
|
4615
4668
|
"show-customer-info-on-top": showCustomerInfoOnTop.value || unref(isPaid),
|
|
@@ -4617,114 +4670,121 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4617
4670
|
"get-is-field-required": unref(checkoutForm).getIsFieldRequired,
|
|
4618
4671
|
"read-only": unref(isPaid)
|
|
4619
4672
|
}, null, 8, ["modelValue", "validation", "read-only-email", "show-customer-info-on-top", "is-billing-information-mandatory", "get-is-field-required", "read-only"])) : createCommentVNode("", true),
|
|
4620
|
-
!unref(isPaid) ? (openBlock(),
|
|
4621
|
-
|
|
4673
|
+
!unref(isPaid) ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
4674
|
+
createVNode(_sfc_main$K, {
|
|
4675
|
+
variant: "section",
|
|
4676
|
+
class: "min-h-[130px]"
|
|
4677
|
+
}, {
|
|
4678
|
+
default: withCtx(() => [
|
|
4679
|
+
!unref(isPaymentMethodsPending) || unref(isPaymentMethodsPending) && unref(paymentMethodOptions).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
4680
|
+
createVNode(unref(_sfc_main$r), {
|
|
4681
|
+
variant: "heading-3",
|
|
4682
|
+
tag: "h2",
|
|
4683
|
+
class: "sv-checkout__payment-methods-title mb-2"
|
|
4684
|
+
}, {
|
|
4685
|
+
default: withCtx(() => [
|
|
4686
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
4687
|
+
defaultMessage: "Payment method",
|
|
4688
|
+
id: "checkout.payment_method_block.title",
|
|
4689
|
+
description: "The title of the payment method block in the checkout form"
|
|
4690
|
+
})), 1)
|
|
4691
|
+
]),
|
|
4692
|
+
_: 1
|
|
4693
|
+
}),
|
|
4694
|
+
!unref(checkoutForm).form.value.country ? (openBlock(), createBlock(_sfc_main$i, {
|
|
4695
|
+
key: 0,
|
|
4696
|
+
class: "sv-checkout__payment-methods-empty",
|
|
4697
|
+
icon: "captive_portal"
|
|
4698
|
+
}, {
|
|
4699
|
+
title: withCtx(() => [
|
|
4700
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
4701
|
+
defaultMessage: "Select your billing country",
|
|
4702
|
+
id: "checkout.payment_method_block.no_country_selected_title",
|
|
4703
|
+
description: "The title shown when no country is selected"
|
|
4704
|
+
})), 1)
|
|
4705
|
+
]),
|
|
4706
|
+
message: withCtx(() => [
|
|
4707
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
4708
|
+
defaultMessage: "Payment methods will be shown after you select the billing country.",
|
|
4709
|
+
id: "checkout.payment_method_block.no_country_selected_message",
|
|
4710
|
+
description: "The message shown when no country is selected"
|
|
4711
|
+
})), 1)
|
|
4712
|
+
]),
|
|
4713
|
+
_: 1
|
|
4714
|
+
})) : unref(paymentMethodOptions).length === 0 ? (openBlock(), createBlock(_sfc_main$i, {
|
|
4715
|
+
key: 1,
|
|
4716
|
+
class: "sv-checkout__payment-methods-empty",
|
|
4717
|
+
icon: "credit_card_off"
|
|
4718
|
+
}, {
|
|
4719
|
+
title: withCtx(() => [
|
|
4720
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
4721
|
+
defaultMessage: "No payment methods available",
|
|
4722
|
+
id: "checkout.payment_method_block.no_payment_methods_available_title",
|
|
4723
|
+
description: "The title shown when there are no available payment methods"
|
|
4724
|
+
})), 1)
|
|
4725
|
+
]),
|
|
4726
|
+
message: withCtx(() => [
|
|
4727
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
4728
|
+
defaultMessage: "There are no available payment methods. Please contact support for more information.",
|
|
4729
|
+
id: "checkout.payment_method_block.no_payment_methods_available_message",
|
|
4730
|
+
description: "The message shown when there are no available payment methods"
|
|
4731
|
+
})), 1)
|
|
4732
|
+
]),
|
|
4733
|
+
_: 1
|
|
4734
|
+
})) : unref(amount) && unref(checkoutForm).form.value.country ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
4735
|
+
createVNode(unref(PaymentIntegrationForm), {
|
|
4736
|
+
ref_key: "paymentIntegrationFormRef",
|
|
4737
|
+
ref: paymentIntegrationFormRef,
|
|
4738
|
+
"country-code": unref(checkoutForm).form.value.country,
|
|
4739
|
+
context: unref(authorizationContext),
|
|
4740
|
+
amount: unref(amount),
|
|
4741
|
+
variant: "AUTHORIZE",
|
|
4742
|
+
"payment-method-options": unref(paymentMethodOptions) ?? [],
|
|
4743
|
+
"validate-on-submit": handleValidateOnSubmit,
|
|
4744
|
+
"force-store-payment-method": "",
|
|
4745
|
+
onPaymentSuccess: handlePaymentSuccess,
|
|
4746
|
+
onReady: _cache[3] || (_cache[3] = ($event) => emit("ready"))
|
|
4747
|
+
}, null, 8, ["country-code", "context", "amount", "payment-method-options"])
|
|
4748
|
+
])) : createCommentVNode("", true)
|
|
4749
|
+
])) : createCommentVNode("", true)
|
|
4750
|
+
]),
|
|
4751
|
+
_: 1
|
|
4752
|
+
})
|
|
4753
|
+
])) : createCommentVNode("", true)
|
|
4754
|
+
];
|
|
4755
|
+
}),
|
|
4756
|
+
aside: withCtx(() => [
|
|
4757
|
+
createElementVNode("div", _hoisted_5, [
|
|
4758
|
+
createVNode(_sfc_main$K, {
|
|
4622
4759
|
variant: "section",
|
|
4623
|
-
class: "min-h-[
|
|
4760
|
+
class: "min-h-[220px]"
|
|
4624
4761
|
}, {
|
|
4625
|
-
default: withCtx(() =>
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
tag: "h2",
|
|
4630
|
-
class: "mb-2"
|
|
4631
|
-
}, {
|
|
4632
|
-
default: withCtx(() => [
|
|
4633
|
-
createTextVNode(toDisplayString(unref($t)({
|
|
4634
|
-
defaultMessage: "Payment method",
|
|
4635
|
-
id: "checkout.payment_method_block.title",
|
|
4636
|
-
description: "The title of the payment method block in the checkout form"
|
|
4637
|
-
})), 1)
|
|
4638
|
-
]),
|
|
4639
|
-
_: 1
|
|
4640
|
-
}),
|
|
4641
|
-
!unref(checkoutForm).form.value.country ? (openBlock(), createBlock(_sfc_main$i, {
|
|
4762
|
+
default: withCtx(() => {
|
|
4763
|
+
var _a2;
|
|
4764
|
+
return [
|
|
4765
|
+
unref(subscription) && unref(invoicePreview) ? (openBlock(), createBlock(_sfc_main$j, {
|
|
4642
4766
|
key: 0,
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
description: "The title shown when no country is selected"
|
|
4650
|
-
})), 1)
|
|
4651
|
-
]),
|
|
4652
|
-
message: withCtx(() => [
|
|
4653
|
-
createTextVNode(toDisplayString(unref($t)({
|
|
4654
|
-
defaultMessage: "Payment methods will be shown after you select the billing country.",
|
|
4655
|
-
id: "checkout.payment_method_block.no_country_selected_message",
|
|
4656
|
-
description: "The message shown when no country is selected"
|
|
4657
|
-
})), 1)
|
|
4658
|
-
]),
|
|
4659
|
-
_: 1
|
|
4660
|
-
})) : unref(paymentMethodOptions).length === 0 ? (openBlock(), createBlock(_sfc_main$i, {
|
|
4661
|
-
key: 1,
|
|
4662
|
-
icon: "credit_card_off"
|
|
4663
|
-
}, {
|
|
4664
|
-
title: withCtx(() => [
|
|
4665
|
-
createTextVNode(toDisplayString(unref($t)({
|
|
4666
|
-
defaultMessage: "No payment methods available",
|
|
4667
|
-
id: "checkout.payment_method_block.no_payment_methods_available_title",
|
|
4668
|
-
description: "The title shown when there are no available payment methods"
|
|
4669
|
-
})), 1)
|
|
4670
|
-
]),
|
|
4671
|
-
message: withCtx(() => [
|
|
4672
|
-
createTextVNode(toDisplayString(unref($t)({
|
|
4673
|
-
defaultMessage: "There are no available payment methods. Please contact support for more information.",
|
|
4674
|
-
id: "checkout.payment_method_block.no_payment_methods_available_message",
|
|
4675
|
-
description: "The message shown when there are no available payment methods"
|
|
4676
|
-
})), 1)
|
|
4677
|
-
]),
|
|
4678
|
-
_: 1
|
|
4679
|
-
})) : unref(amount) && unref(checkoutForm).form.value.country ? (openBlock(), createBlock(unref(PaymentIntegrationForm), {
|
|
4680
|
-
key: 2,
|
|
4681
|
-
ref_key: "paymentIntegrationFormRef",
|
|
4682
|
-
ref: paymentIntegrationFormRef,
|
|
4767
|
+
subscription: unref(subscription),
|
|
4768
|
+
invoice: unref(invoicePreview),
|
|
4769
|
+
"invoice-preview-by-billing-period": unref(invoicePreviewByBillingPeriod),
|
|
4770
|
+
"trial-invoice": unref(trialInvoicePreview),
|
|
4771
|
+
"enabled-pricing-ids": enabledPricingIdsModel.value,
|
|
4772
|
+
"trial-period": unref(trialPeriod),
|
|
4683
4773
|
"country-code": unref(checkoutForm).form.value.country,
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
"payment-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
}, null, 8, ["country-code", "context", "amount", "payment-method-options"])) : createCommentVNode("", true)
|
|
4693
|
-
])) : createCommentVNode("", true)
|
|
4694
|
-
]),
|
|
4774
|
+
avatar: (_a2 = configuration.value) == null ? void 0 : _a2.avatar,
|
|
4775
|
+
"is-paid": unref(isPaid),
|
|
4776
|
+
"is-usage-based": isUsageBased.value,
|
|
4777
|
+
"is-preview-and-payment-methods-pending": unref(isPaymentMethodsPending) || unref(isInvoicePreviewPending),
|
|
4778
|
+
onBillingPeriodChange: handleBillingPeriodChange
|
|
4779
|
+
}, null, 8, ["subscription", "invoice", "invoice-preview-by-billing-period", "trial-invoice", "enabled-pricing-ids", "trial-period", "country-code", "avatar", "is-paid", "is-usage-based", "is-preview-and-payment-methods-pending"])) : createCommentVNode("", true)
|
|
4780
|
+
];
|
|
4781
|
+
}),
|
|
4695
4782
|
_: 1
|
|
4696
|
-
})
|
|
4697
|
-
]
|
|
4698
|
-
}),
|
|
4699
|
-
aside: withCtx(() => [
|
|
4700
|
-
createVNode(_sfc_main$K, {
|
|
4701
|
-
variant: "section",
|
|
4702
|
-
class: "min-h-[220px]"
|
|
4703
|
-
}, {
|
|
4704
|
-
default: withCtx(() => {
|
|
4705
|
-
var _a2;
|
|
4706
|
-
return [
|
|
4707
|
-
unref(subscription) && unref(invoicePreview) ? (openBlock(), createBlock(_sfc_main$j, {
|
|
4708
|
-
key: 0,
|
|
4709
|
-
subscription: unref(subscription),
|
|
4710
|
-
invoice: unref(invoicePreview),
|
|
4711
|
-
"invoice-preview-by-billing-period": unref(invoicePreviewByBillingPeriod),
|
|
4712
|
-
"trial-invoice": unref(trialInvoicePreview),
|
|
4713
|
-
"enabled-pricing-ids": enabledPricingIdsModel.value,
|
|
4714
|
-
"trial-period": unref(trialPeriod),
|
|
4715
|
-
"country-code": unref(checkoutForm).form.value.country,
|
|
4716
|
-
avatar: (_a2 = configuration.value) == null ? void 0 : _a2.avatar,
|
|
4717
|
-
"is-paid": unref(isPaid),
|
|
4718
|
-
"is-usage-based": isUsageBased.value,
|
|
4719
|
-
"is-preview-and-payment-methods-pending": unref(isPaymentMethodsPending) || unref(isInvoicePreviewPending),
|
|
4720
|
-
onBillingPeriodChange: handleBillingPeriodChange
|
|
4721
|
-
}, null, 8, ["subscription", "invoice", "invoice-preview-by-billing-period", "trial-invoice", "enabled-pricing-ids", "trial-period", "country-code", "avatar", "is-paid", "is-usage-based", "is-preview-and-payment-methods-pending"])) : createCommentVNode("", true)
|
|
4722
|
-
];
|
|
4723
|
-
}),
|
|
4724
|
-
_: 1
|
|
4725
|
-
}),
|
|
4783
|
+
})
|
|
4784
|
+
]),
|
|
4726
4785
|
!unref(isPaid) ? (openBlock(), createBlock(_sfc_main$3, {
|
|
4727
4786
|
key: 0,
|
|
4787
|
+
class: "sv-checkout__promotion-code",
|
|
4728
4788
|
"promotion-code": promotionCode.value,
|
|
4729
4789
|
"onUpdate:appliedCode": _cache[4] || (_cache[4] = ($event) => promotionCode.value = $event),
|
|
4730
4790
|
onRemove: unref(removePromotionCode),
|
|
@@ -4732,20 +4792,20 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4732
4792
|
}, null, 8, ["promotion-code", "onRemove", "onApply"])) : createCommentVNode("", true),
|
|
4733
4793
|
unref(promotionCodeErrorMessage) ? (openBlock(), createBlock(unref(_sfc_main$P), {
|
|
4734
4794
|
key: 1,
|
|
4735
|
-
class: "mt-2",
|
|
4795
|
+
class: "sv-checkout__promotion-error mt-2",
|
|
4736
4796
|
title: unref(promotionCodeErrorMessage)
|
|
4737
4797
|
}, null, 8, ["title"])) : createCommentVNode("", true),
|
|
4738
|
-
createElementVNode("div",
|
|
4798
|
+
createElementVNode("div", _hoisted_6, [
|
|
4739
4799
|
!unref(isPaid) ? (openBlock(), createBlock(_sfc_main$K, {
|
|
4740
4800
|
key: 0,
|
|
4741
|
-
class: "min-h-[44px]"
|
|
4801
|
+
class: "sv-checkout__submit-skeleton min-h-[44px]"
|
|
4742
4802
|
}, {
|
|
4743
4803
|
default: withCtx(() => [
|
|
4744
4804
|
unref(invoicePreview) ? (openBlock(), createBlock(unref(_sfc_main$v), {
|
|
4745
4805
|
key: 0,
|
|
4746
4806
|
type: "button",
|
|
4747
4807
|
size: "lg",
|
|
4748
|
-
class: "w-full",
|
|
4808
|
+
class: "sv-action sv-action--primary sv-action--full-width sv-checkout__submit w-full",
|
|
4749
4809
|
disabled: unref(isPromotionCodePending) || unref(paymentMethodOptions).length === 0,
|
|
4750
4810
|
onClick: handleSubmit
|
|
4751
4811
|
}, {
|
|
@@ -4769,7 +4829,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4769
4829
|
])
|
|
4770
4830
|
]),
|
|
4771
4831
|
_: 1
|
|
4772
|
-
}));
|
|
4832
|
+
}, 8, ["class"]));
|
|
4773
4833
|
};
|
|
4774
4834
|
}
|
|
4775
4835
|
});
|
|
@@ -4788,6 +4848,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4788
4848
|
onLog: { type: Function },
|
|
4789
4849
|
allowedPortalTypes: { type: Array },
|
|
4790
4850
|
portalObject: { type: Object },
|
|
4851
|
+
cssOverrides: { type: [String, Array] },
|
|
4791
4852
|
branding: { type: Object },
|
|
4792
4853
|
configuration: { type: Object }
|
|
4793
4854
|
},
|
|
@@ -4832,6 +4893,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4832
4893
|
"experimental-features": __props.experimentalFeatures,
|
|
4833
4894
|
"log-level": __props.logLevel,
|
|
4834
4895
|
"on-log": __props.onLog,
|
|
4896
|
+
"css-overrides": __props.cssOverrides,
|
|
4835
4897
|
onError: _cache[1] || (_cache[1] = (error) => _ctx.$emit("error", error))
|
|
4836
4898
|
}, {
|
|
4837
4899
|
default: withCtx(() => {
|
|
@@ -4857,7 +4919,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4857
4919
|
];
|
|
4858
4920
|
}),
|
|
4859
4921
|
_: 3
|
|
4860
|
-
}, 8, ["custom-element-name", "environment", "locale", "portal-object", "primary-color", "secondary-color", "experimental-features", "log-level", "on-log"]);
|
|
4922
|
+
}, 8, ["custom-element-name", "environment", "locale", "portal-object", "primary-color", "secondary-color", "experimental-features", "log-level", "on-log", "css-overrides"]);
|
|
4861
4923
|
};
|
|
4862
4924
|
}
|
|
4863
4925
|
});
|