@solvimon/solvimon-web 0.1.0-alpha.16 → 0.1.0-alpha.18
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 +33 -31
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-C2IRj-FB.mjs +238 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Rub9ifBk.js +1 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BYBAO4Au.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BWnZ98RQ.mjs} +2 -2
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BI3Lg7nO.js → BillingInformation.vue_vue_type_script_setup_true_lang-DurgWlLC.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CTnn1gkW.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-D7gL7dZX.mjs} +3 -3
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Df7CsbiW.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-OUg4yv7r.mjs +2654 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-mM5udvi8.js +1 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BIpg-MSJ.mjs +53 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BM3p8Pk8.js +1 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D5eSNYH2.js +1 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-ryvFEQMV.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DbY35gE_.mjs} +1 -1
- package/dist/{InvoiceHeader.vue_vue_type_script_setup_true_lang-DdpPrYxi.js → InvoiceHeader.vue_vue_type_script_setup_true_lang-Ci8r6tuC.js} +1 -1
- package/dist/{InvoiceHeader.vue_vue_type_script_setup_true_lang-bAiAbtMi.mjs → InvoiceHeader.vue_vue_type_script_setup_true_lang-jshby9pF.mjs} +1 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-CNKxTtO7.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-DBMgilG2.mjs +153 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CupZFJSF.mjs +52 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D6lpD1zo.js +1 -0
- package/dist/{PaymentHistoryBlock-BKMttUyk.mjs → PaymentHistoryBlock-Bxr8lUGs.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-BGbTy4Se.js → PaymentHistoryBlock-COjIVYX4.js} +1 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Bmgx7PSt.js +1 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-tM7f_fQS.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CDjGab5p.mjs} +1 -1
- package/dist/{PaymentIntegrationForm-D4QupHWl.js → PaymentIntegrationForm-BSauhuKv.js} +1 -1
- package/dist/{PaymentIntegrationForm-CypW6fZY.mjs → PaymentIntegrationForm-PIT8gHYN.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-5XKz3kop.js +1 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-COO2ZUhN.mjs +148 -0
- package/dist/PaymentIntegrationFormAdyen-B-Jbu2hU.js +1 -0
- package/dist/PaymentIntegrationFormAdyen-Cjj9aK0E.mjs +729 -0
- package/dist/PaymentIntegrationFormStripe-Bnn8S1o5.js +1 -0
- package/dist/PaymentIntegrationFormStripe-arpua_ZT.mjs +545 -0
- package/dist/PaymentMethodForm-B7T5rrNz.mjs +4 -0
- package/dist/PaymentMethodForm-CLz3ZS-b.js +1 -0
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-B8eNptZp.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-C4Zf92QP.mjs} +25 -14
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-UH9AVXnG.js +1 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BUTqn4Ey.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIIt6fGp.mjs} +77 -31
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-ifai5HVr.js +1 -0
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cqk-vonA.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DaWlLor0.mjs} +115 -68
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DdUoeTUL.js +1 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CyYhYYRp.mjs +37 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DdjYVNku.js +1 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cu55ZvCH.js +1 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-z8P1u1Gi.mjs +100 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-BKDMwuyh.js +1 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DB1p61kZ.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BOUSk2ZB.mjs} +22 -119
- package/dist/adyen-BMDZQBUG.js +1 -0
- package/dist/{url-1Lbg5Yni.mjs → adyen-Ba-mF3Jy.mjs} +31 -73
- package/dist/component--Y7Igv5i.mjs +1022 -0
- package/dist/component-DIy1hvJM.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +4 -4
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +4 -4
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +4 -4
- package/dist/components/Invoice/Invoice.cjs.js +1 -1
- package/dist/components/Invoice/Invoice.es.js +7 -7
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -3
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.es.js +4 -4
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +3 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +6 -6
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +7 -58
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +5 -5
- package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +25 -9
- package/dist/core/action-request.types.d.ts +3 -15
- package/dist/core/index.cjs.js +1 -1
- package/dist/core/index.es.js +1 -1
- package/dist/core/types.d.ts +4 -2
- package/dist/{customer-Bv_fqXzO.mjs → customer-DovIxTG1.mjs} +1 -1
- package/dist/{customer-_W8gIX5m.js → customer-brfznoHY.js} +1 -1
- package/dist/en-US-BvOHPudj.js +1 -0
- package/dist/{en-US-DAgOSlgv.mjs → en-US-CXDO3qhq.mjs} +121 -36
- package/dist/index-BMWWP8xj.js +1 -0
- package/dist/index-Do7kzLpg.mjs +265 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +7 -4
- package/dist/invoices-Cf3dSYSj.js +1 -0
- package/dist/{invoices-BGb0AwVF.mjs → invoices-Dk-z04lg.mjs} +32 -16
- package/dist/{nl-NL-DCsmrA8A.mjs → nl-NL-BgL_PuBn.mjs} +126 -40
- package/dist/nl-NL-COGUFg60.js +1 -0
- package/dist/{paymentMethods-DvqlWe96.mjs → paymentMethods-BnF1XYS1.mjs} +21 -5
- package/dist/paymentMethods-DVDC_WfL.js +1 -0
- package/dist/{payments-DMDDI3MK.js → payments-DVZFO5yb.js} +1 -1
- package/dist/{payments-CpzTVrQM.mjs → payments-TnRjtlOw.mjs} +1 -1
- package/dist/pricing-CuYndX6t.js +1 -0
- package/dist/pricing-GwLCiSzs.mjs +19 -0
- package/dist/pricingPlanSchedule-B9HFiXy-.js +1 -0
- package/dist/pricingPlanSchedule-CXG3CQ61.mjs +146 -0
- package/dist/{registry-B-If1W_u.mjs → registry-Ck0Gb6rj.mjs} +7 -4
- package/dist/registry-Cra6yoB4.js +1 -0
- package/dist/screens/Checkout/Checkout.cjs.js +1 -1
- package/dist/screens/Checkout/Checkout.es.js +429 -689
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +61 -39
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -1
- package/dist/screens/PayInvoice/PayInvoice.es.js +30 -13
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.es.js +28 -18
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +3 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs.js +1 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.es.js +889 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +3 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs.js +1 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.es.js +716 -0
- package/dist/solvimon-web.css +1 -1
- package/dist/subscription-C41lG-rH.mjs +89 -0
- package/dist/subscription-b0OPx8Du.js +1 -0
- package/dist/subscriptions-BFCKVHnP.js +1 -0
- package/dist/subscriptions-vEE4Y7qm.mjs +58 -0
- package/dist/{useActionDispatchProvider-Dz8-e4gZ.mjs → useActionDispatchProvider-BlEf-RZ5.mjs} +1 -1
- package/dist/{useActionDispatchProvider-BHTknMoH.js → useActionDispatchProvider-aJOy3kr1.js} +1 -1
- package/dist/{useCustomer-Z24KchWC.js → useCustomer-C1XTqmrQ.js} +1 -1
- package/dist/{useCustomer-VVJi8z2w.mjs → useCustomer-Cw8LXT6S.mjs} +2 -2
- package/dist/{useIncrementalLoading-DmOT2MXH.mjs → useIncrementalLoading-8WtKZ-mP.mjs} +2 -2
- package/dist/useIncrementalLoading-CkY2klIW.js +1 -0
- package/dist/{useInvoiceData-Bl87gzIS.js → useInvoiceData-BrxMo4Zt.js} +1 -1
- package/dist/{useInvoiceData-Di5pLPM0.mjs → useInvoiceData-Cy_ysMsq.mjs} +2 -2
- package/dist/{useInvoicesList-z19cteaD.mjs → useInvoicesList-DMsZn1tE.mjs} +4 -4
- package/dist/useInvoicesList-DmisMQzy.js +1 -0
- package/dist/{useLoadInitialData-CkpryfjF.mjs → useLoadInitialData-BP1v7qhd.mjs} +1 -1
- package/dist/{useLoadInitialData-CTqfiMTN.js → useLoadInitialData-_BjCD0Jc.js} +1 -1
- package/dist/{usePaymentMethodOptions-BoGHJjng.mjs → usePaymentMethodOptions-CWfGvW0U.mjs} +9 -3
- package/dist/{usePaymentMethodOptions-BsCZnCQW.js → usePaymentMethodOptions-xeSTmaVo.js} +1 -1
- package/dist/{usePaymentMethods-AC-4rrR9.js → usePaymentMethods-CAFMvSOr.js} +1 -1
- package/dist/{usePaymentMethods-ocHmNoP7.mjs → usePaymentMethods-Cyk4cjoE.mjs} +2 -2
- package/dist/{usePayments-CgXZeWrU.js → usePayments-BieVBaz-.js} +1 -1
- package/dist/{usePayments-D85eB5l4.mjs → usePayments-D88XSZfS.mjs} +10 -4
- package/dist/{usePortal-B1O1zgdV.mjs → usePortal-0NDlbFr9.mjs} +1 -1
- package/dist/{usePortal-DVD7PcWI.js → usePortal-B954nyEB.js} +1 -1
- package/dist/{useService-CHrkefKd.js → useService-BiljI7XA.js} +1 -1
- package/dist/{useService-DF57xuDd.mjs → useService-CqfJi5ST.mjs} +1 -1
- package/dist/useSubscription-9rJpFNUF.mjs +29 -0
- package/dist/useSubscription-k3limdu_.js +1 -0
- package/dist/vendor-ui-Dfh3_g4q.js +1 -0
- package/dist/{vendor-ui-B8IlviSs.mjs → vendor-ui-ItGf7wJV.mjs} +8006 -6329
- package/package.json +23 -9
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C_uHr21N.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DU6X3zxr.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CixdxEGm.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BBEM-YPz.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CrGSfZZs.mjs +0 -1537
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-eWmC5GOT.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-Be_fF-R_.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVoS3ZXS.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-56vu59V4.js +0 -1
- package/dist/component-Bg2JVC_O.mjs +0 -933
- package/dist/component-Bs8oszfD.js +0 -1
- package/dist/en-US-C0gIE4Q1.js +0 -1
- package/dist/index-CzL1ZcGi.mjs +0 -85
- package/dist/index-DRdBmZ2-.js +0 -1
- package/dist/invoices-D-OKipCg.js +0 -1
- package/dist/nl-NL-Br7muSHK.js +0 -1
- package/dist/paymentMethods-DIbB759g.js +0 -1
- package/dist/registry-uG2isab0.js +0 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +0 -3
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +0 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +0 -1102
- package/dist/subscriptions-BPYyv09M.mjs +0 -75
- package/dist/subscriptions-CC61I6Nj.js +0 -1
- package/dist/url-B6-3PkW2.js +0 -1
- package/dist/useIncrementalLoading-CuSndpP2.js +0 -1
- package/dist/useInvoicesList-CFk-_oVK.js +0 -1
- package/dist/useWalletBalanceItems-BL-R5foK.js +0 -1
- package/dist/useWalletBalanceItems-COQDLfoZ.mjs +0 -109
- package/dist/vendor-ui-C3Tq-qY_.js +0 -1
|
@@ -1,120 +1,75 @@
|
|
|
1
|
-
import { ref, computed, onMounted, watch, defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, useModel, createElementBlock, withModifiers, Fragment, createCommentVNode, createSlots, normalizeClass, mergeModels,
|
|
2
|
-
import {
|
|
3
|
-
import { a as useLogger, _ as _sfc_main$
|
|
4
|
-
import { c as createSubscriptionsService } from "../../subscriptions-
|
|
1
|
+
import { ref, computed, onMounted, watch, defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, useModel, createElementBlock, withModifiers, Fragment, createCommentVNode, createSlots, normalizeClass, mergeModels, renderSlot, renderList, toRef, nextTick, mergeProps, withDirectives, withKeys, vShow, defineAsyncComponent } from "vue";
|
|
2
|
+
import { aa as taxId, q as isEqual, ab as convertDateRangeToTimePeriod, R as useValidation, S as objectDiff, u as useIntl, a3 as _sfc_main$m, a as _sfc_main$n, ac as isEUCountry, ad as isValidCountryCode, ae as getCountryNameByCode, b as _sfc_main$o, W as _sfc_main$p, X as _sfc_main$q, k as _sfc_main$r, a7 as _sfc_main$s, Y as _sfc_main$t, af as _sfc_main$u, ag as _sfc_main$v, ah as _sfc_main$w, ai as TooltipContent, aj as _sfc_main$x, a2 as formatBillingPeriod, E as formatAmount, ak as useTimePeriod, l as _sfc_main$z, H as _sfc_main$B, al as _sfc_main$C, a1 as _sfc_main$D, K as _sfc_main$F, am as _sfc_main$G, c as _sfc_main$H, G as usePricingItem, an as uniqueId, D as _sfc_main$K } from "../../vendor-ui-ItGf7wJV.mjs";
|
|
3
|
+
import { a as useLogger, _ as _sfc_main$N, d as defineCustomElement, g as getComponentName } from "../../component--Y7Igv5i.mjs";
|
|
4
|
+
import { c as createSubscriptionsService } from "../../subscriptions-vEE4Y7qm.mjs";
|
|
5
5
|
import { A as ApiStatus } from "../../ApiStatus-CyNDp_op.mjs";
|
|
6
|
-
import { c as createInvoicesService } from "../../invoices-
|
|
7
|
-
import {
|
|
6
|
+
import { c as createInvoicesService } from "../../invoices-Dk-z04lg.mjs";
|
|
7
|
+
import { g as getFirstPricingPlanScheduleOfType, b as getScheduleCustomizations, e as getPricingItemConfigMetaById } from "../../pricingPlanSchedule-CXG3CQ61.mjs";
|
|
8
|
+
import { r as required, e as email, a as requiredIf } from "../../index-Do7kzLpg.mjs";
|
|
8
9
|
import { u as useWatchDebounced } from "../../useWatchDebounced-Zmxd6InB.mjs";
|
|
9
|
-
import { c as createPaymentMethodsService } from "../../paymentMethods-
|
|
10
|
-
import { u as useService } from "../../useService-
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { c as
|
|
14
|
-
import {
|
|
10
|
+
import { c as createPaymentMethodsService } from "../../paymentMethods-BnF1XYS1.mjs";
|
|
11
|
+
import { u as useService } from "../../useService-CqfJi5ST.mjs";
|
|
12
|
+
import { c as getPricingGroupsFromExtendedPricingPlanSubscription, a as getSubscriptionName, d as getFallbackTrialAndSubscriptionStartAndEndDates } from "../../subscription-C41lG-rH.mjs";
|
|
13
|
+
import { a as getAllPricingsFromScheduleInfos, g as getNameFromPricing } from "../../pricing-GwLCiSzs.mjs";
|
|
14
|
+
import { g as getQueryParam, P as PAYMENT_ACCEPTOR_ID_QUERY_STRING, e as getAdyenExpressCheckoutConfiguration, c as transformObjectToAdyenObject, d as createReturnUrl, s as safeUrlRedirect } from "../../adyen-Ba-mF3Jy.mjs";
|
|
15
|
+
import { u as usePortal } from "../../usePortal-0NDlbFr9.mjs";
|
|
16
|
+
import { c as createCustomerService } from "../../customer-DovIxTG1.mjs";
|
|
17
|
+
import { _ as _sfc_main$y } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CupZFJSF.mjs";
|
|
18
|
+
import { _ as _sfc_main$A } from "../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-z8P1u1Gi.mjs";
|
|
15
19
|
import { u as useViewport } from "../../useViewport-Bu0cyeSi.mjs";
|
|
16
|
-
import { _ as _sfc_main$
|
|
17
|
-
import {
|
|
20
|
+
import { _ as _sfc_main$M } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BIpg-MSJ.mjs";
|
|
21
|
+
import { _ as _sfc_main$E } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
|
|
22
|
+
import { c as createPaymentsService } from "../../payments-TnRjtlOw.mjs";
|
|
23
|
+
import { b as _sfc_main$I, _ as _sfc_main$J, a as _sfc_main$L } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DaWlLor0.mjs";
|
|
18
24
|
import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
(
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
function getPricingItemConfigMetaById({
|
|
28
|
-
pricingPlanScheduleInfo
|
|
29
|
-
}) {
|
|
30
|
-
const metaById = /* @__PURE__ */ new Map();
|
|
31
|
-
const categories = pricingPlanScheduleInfo.pricing_plan_version.pricing_categories ?? [];
|
|
32
|
-
categories.forEach((category) => {
|
|
33
|
-
var _a;
|
|
34
|
-
(_a = category.pricings) == null ? void 0 : _a.forEach((pricing) => {
|
|
35
|
-
var _a2;
|
|
36
|
-
(_a2 = pricing.items) == null ? void 0 : _a2.forEach((item) => {
|
|
37
|
-
var _a3, _b, _c;
|
|
38
|
-
(_a3 = item.billing_period_configs) == null ? void 0 : _a3.forEach((billingConfig) => {
|
|
39
|
-
var _a4;
|
|
40
|
-
(_a4 = billingConfig.configs) == null ? void 0 : _a4.forEach((config) => {
|
|
41
|
-
var _a5, _b2, _c2, _d;
|
|
42
|
-
if (config.id) {
|
|
43
|
-
const currency = (_d = (_c2 = (_b2 = (_a5 = config.details) == null ? void 0 : _a5.bands) == null ? void 0 : _b2.find((band) => {
|
|
44
|
-
var _a6;
|
|
45
|
-
return (_a6 = band.amount) == null ? void 0 : _a6.currency;
|
|
46
|
-
})) == null ? void 0 : _c2.amount) == null ? void 0 : _d.currency;
|
|
47
|
-
metaById.set(config.id, {
|
|
48
|
-
...currency && { currency },
|
|
49
|
-
billingPeriod: billingConfig.billing_period
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
(_b = item.configs) == null ? void 0 : _b.forEach((config) => {
|
|
55
|
-
var _a4, _b2, _c2, _d;
|
|
56
|
-
if (config.id) {
|
|
57
|
-
const currency = (_d = (_c2 = (_b2 = (_a4 = config.details) == null ? void 0 : _a4.bands) == null ? void 0 : _b2.find((band) => {
|
|
58
|
-
var _a5;
|
|
59
|
-
return (_a5 = band.amount) == null ? void 0 : _a5.currency;
|
|
60
|
-
})) == null ? void 0 : _c2.amount) == null ? void 0 : _d.currency;
|
|
61
|
-
metaById.set(config.id, {
|
|
62
|
-
...currency && { currency }
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
(_c = item.pricing_currency_configs) == null ? void 0 : _c.forEach((currencyConfig) => {
|
|
67
|
-
var _a4, _b2;
|
|
68
|
-
const currency = currencyConfig.currency;
|
|
69
|
-
(_a4 = currencyConfig.billing_period_configs) == null ? void 0 : _a4.forEach((billingConfig) => {
|
|
70
|
-
var _a5;
|
|
71
|
-
(_a5 = billingConfig.configs) == null ? void 0 : _a5.forEach((config) => {
|
|
72
|
-
if (config.id) {
|
|
73
|
-
metaById.set(config.id, {
|
|
74
|
-
currency,
|
|
75
|
-
billingPeriod: billingConfig.billing_period
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
(_b2 = currencyConfig.configs) == null ? void 0 : _b2.forEach((config) => {
|
|
81
|
-
if (config.id) {
|
|
82
|
-
metaById.set(config.id, { currency });
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
return metaById;
|
|
90
|
-
}
|
|
91
|
-
function getScheduleCustomizations({
|
|
92
|
-
enabledPricings,
|
|
93
|
-
seatsValues,
|
|
94
|
-
pricingPlanScheduleInfos,
|
|
95
|
-
pricingCurrency,
|
|
96
|
-
billingPeriod
|
|
97
|
-
}) {
|
|
98
|
-
const subscriptionSchedule = getFirstPricingPlanScheduleOfType({
|
|
99
|
-
pricingPlanScheduleInfos,
|
|
100
|
-
type: "DEFAULT"
|
|
101
|
-
});
|
|
102
|
-
if (!subscriptionSchedule || !enabledPricings && !seatsValues) {
|
|
103
|
-
return void 0;
|
|
25
|
+
const EMPTY_LEGAL_ENTITY_NAME = "preview";
|
|
26
|
+
const EMPTY_COUNTRY = "NL";
|
|
27
|
+
const getCustomerAddress = (customer) => {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
if ("organization" in customer) {
|
|
30
|
+
return (_a = customer.organization) == null ? void 0 : _a.registered_address;
|
|
104
31
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
32
|
+
if ("individual" in customer) {
|
|
33
|
+
return (_b = customer.individual) == null ? void 0 : _b.residential_address;
|
|
34
|
+
}
|
|
35
|
+
return void 0;
|
|
36
|
+
};
|
|
37
|
+
const buildAddress = (customer) => {
|
|
38
|
+
const address = getCustomerAddress(customer);
|
|
39
|
+
return {
|
|
40
|
+
...(address == null ? void 0 : address.line1) && { line1: address.line1 },
|
|
41
|
+
...(address == null ? void 0 : address.line2) && { line2: address.line2 },
|
|
42
|
+
...(address == null ? void 0 : address.city) && { city: address.city },
|
|
43
|
+
...(address == null ? void 0 : address.state) && { state: address.state },
|
|
44
|
+
country: (address == null ? void 0 : address.country) || EMPTY_COUNTRY,
|
|
45
|
+
...(address == null ? void 0 : address.postal_code) && { postal_code: address.postal_code }
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
const buildCustomerPayload = (customer) => {
|
|
49
|
+
var _a, _b;
|
|
50
|
+
const address = buildAddress(customer);
|
|
51
|
+
const type = customer.type ?? "INDIVIDUAL";
|
|
52
|
+
if (type === "ORGANIZATION") {
|
|
53
|
+
const organization = "organization" in customer ? customer.organization : void 0;
|
|
54
|
+
const organizationTaxId = (_b = (_a = organization == null ? void 0 : organization.tax_ids) == null ? void 0 : _a[0]) == null ? void 0 : _b.id;
|
|
55
|
+
return {
|
|
56
|
+
type,
|
|
57
|
+
organization: {
|
|
58
|
+
legal_name: (organization == null ? void 0 : organization.legal_name) || EMPTY_LEGAL_ENTITY_NAME,
|
|
59
|
+
registered_address: address,
|
|
60
|
+
...organizationTaxId && {
|
|
61
|
+
tax_id: taxId.$validator(organizationTaxId, {}, {}) ? organizationTaxId : void 0
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
type,
|
|
68
|
+
individual: {
|
|
69
|
+
residential_address: address
|
|
115
70
|
}
|
|
116
|
-
|
|
117
|
-
}
|
|
71
|
+
};
|
|
72
|
+
};
|
|
118
73
|
const COUNTRY_CURRENCY_MAP = {
|
|
119
74
|
AD: "EUR",
|
|
120
75
|
AE: "AED",
|
|
@@ -382,8 +337,6 @@ const getPricingCurrencyForCountry = ({
|
|
|
382
337
|
}
|
|
383
338
|
return (pricingCurrencySettings == null ? void 0 : pricingCurrencySettings.default_pricing_currency) ?? fallbackCurrency ?? countryCurrency;
|
|
384
339
|
};
|
|
385
|
-
const EMPTY_LEGAL_ENTITY_NAME = "preview";
|
|
386
|
-
const EMPTY_COUNTRY = "NL";
|
|
387
340
|
const useInvoicePreview = () => {
|
|
388
341
|
const { getInvoicePreview } = createInvoicesService();
|
|
389
342
|
const logger = useLogger();
|
|
@@ -398,19 +351,13 @@ const useInvoicePreview = () => {
|
|
|
398
351
|
const loadInvoicePreview = async ({
|
|
399
352
|
subscription,
|
|
400
353
|
subscriptionStartAt,
|
|
401
|
-
|
|
354
|
+
customer = {},
|
|
355
|
+
seatsValues,
|
|
402
356
|
enabledPricingIds,
|
|
403
357
|
promotionCode
|
|
404
358
|
}) => {
|
|
405
|
-
var _a, _b, _c, _d, _e;
|
|
406
|
-
const
|
|
407
|
-
...checkoutForm.addressLine1 && { line1: checkoutForm.addressLine1 },
|
|
408
|
-
...checkoutForm.addressLine2 && { line2: checkoutForm.addressLine2 },
|
|
409
|
-
...checkoutForm.city && { city: checkoutForm.city },
|
|
410
|
-
...checkoutForm.state && { state: checkoutForm.state },
|
|
411
|
-
...checkoutForm.country ? { country: checkoutForm.country || EMPTY_COUNTRY } : { country: EMPTY_COUNTRY },
|
|
412
|
-
...checkoutForm.postalCode && { postal_code: checkoutForm.postalCode }
|
|
413
|
-
};
|
|
359
|
+
var _a, _b, _c, _d, _e, _f;
|
|
360
|
+
const customerPayload = buildCustomerPayload(customer);
|
|
414
361
|
status.value = ApiStatus.Loading;
|
|
415
362
|
const scheduleInfo = getFirstPricingPlanScheduleOfType({
|
|
416
363
|
pricingPlanScheduleInfos: subscription.pricing_plan_schedule_infos,
|
|
@@ -422,11 +369,14 @@ const useInvoicePreview = () => {
|
|
|
422
369
|
const hasMultipleBillingPeriods = billingPeriods.length > 1;
|
|
423
370
|
const periodsForPreview = billingPeriods.length > 0 ? billingPeriods.map(({ period }) => period) : subscription.billing_period ? [subscription.billing_period] : [];
|
|
424
371
|
const pricingCurrency = getPricingCurrencyForCountry({
|
|
425
|
-
country:
|
|
372
|
+
country: (_e = getCustomerAddress(customer)) == null ? void 0 : _e.country,
|
|
426
373
|
pricingCurrencySettings,
|
|
427
374
|
fallbackCurrency: subscription.billing_currency
|
|
428
375
|
});
|
|
429
376
|
if (!periodsForPreview.length) {
|
|
377
|
+
logger.warn("INVOICE_PREVIEW_SKIPPED", "No billing period to preview an invoice for", {
|
|
378
|
+
subscriptionId: subscription.id
|
|
379
|
+
});
|
|
430
380
|
status.value = ApiStatus.Done;
|
|
431
381
|
return;
|
|
432
382
|
}
|
|
@@ -438,7 +388,7 @@ const useInvoicePreview = () => {
|
|
|
438
388
|
enabledPricings: enabledPricingIds == null ? void 0 : enabledPricingIds.map((enabledPricingId) => ({
|
|
439
389
|
pricing_id: enabledPricingId
|
|
440
390
|
})),
|
|
441
|
-
seatsValues
|
|
391
|
+
seatsValues,
|
|
442
392
|
pricingPlanScheduleInfos: subscription.pricing_plan_schedule_infos,
|
|
443
393
|
pricingCurrency: hasMultiplePricingCurrencies ? pricingCurrency : void 0,
|
|
444
394
|
billingPeriod: hasMultipleBillingPeriods ? period : void 0
|
|
@@ -465,23 +415,7 @@ const useInvoicePreview = () => {
|
|
|
465
415
|
pricingPlanSubscriptionId: subscription.id,
|
|
466
416
|
startAt: subscriptionStartAt,
|
|
467
417
|
customizations: scheduleCustomizations,
|
|
468
|
-
customer:
|
|
469
|
-
type: checkoutForm.type || "INDIVIDUAL",
|
|
470
|
-
...checkoutForm.type === "INDIVIDUAL" && {
|
|
471
|
-
individual: {
|
|
472
|
-
residential_address: address
|
|
473
|
-
}
|
|
474
|
-
},
|
|
475
|
-
...checkoutForm.type === "ORGANIZATION" && {
|
|
476
|
-
organization: {
|
|
477
|
-
legal_name: checkoutForm.companyLegalName || EMPTY_LEGAL_ENTITY_NAME,
|
|
478
|
-
registered_address: address,
|
|
479
|
-
...checkoutForm.companyVatNumber && {
|
|
480
|
-
tax_id: taxId.$validator(checkoutForm.companyVatNumber, {}, {}) ? checkoutForm.companyVatNumber : void 0
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
}
|
|
418
|
+
customer: customerPayload
|
|
485
419
|
};
|
|
486
420
|
const cachedPayload = cachedPreviewPayloads.value[periodKey];
|
|
487
421
|
if (cachedPayload && isEqual(payload, cachedPayload)) {
|
|
@@ -502,9 +436,9 @@ const useInvoicePreview = () => {
|
|
|
502
436
|
const trialSchedule = subscription.pricing_plan_schedule_infos.find(
|
|
503
437
|
({ pricing_plan_schedule }) => pricing_plan_schedule.type === "TRIAL"
|
|
504
438
|
);
|
|
505
|
-
const invoiceScheduleId = (
|
|
439
|
+
const invoiceScheduleId = (_f = subscription.pricing_plan_schedule_infos.find(
|
|
506
440
|
({ pricing_plan_schedule }) => pricing_plan_schedule.type === "DEFAULT"
|
|
507
|
-
)) == null ? void 0 :
|
|
441
|
+
)) == null ? void 0 : _f.id;
|
|
508
442
|
results.forEach(({ periodKey, response }) => {
|
|
509
443
|
var _a2;
|
|
510
444
|
if (!response) return;
|
|
@@ -547,6 +481,7 @@ const useInvoicePreview = () => {
|
|
|
547
481
|
};
|
|
548
482
|
};
|
|
549
483
|
const DEFAULT_REQUIRED_FIELDS = ["email", "country"];
|
|
484
|
+
const DEFAULT_TAX_IDENTIFIER_TYPE = "GENERIC_TAX_ID";
|
|
550
485
|
const countrySpecificRequiredFieldsMap = {
|
|
551
486
|
US: ["addressLine1", "postalCode"],
|
|
552
487
|
CA: ["state"]
|
|
@@ -557,6 +492,34 @@ const getRequiredFieldsForCountry = (country) => {
|
|
|
557
492
|
}
|
|
558
493
|
return [...countrySpecificRequiredFieldsMap[country], ...DEFAULT_REQUIRED_FIELDS];
|
|
559
494
|
};
|
|
495
|
+
const toCustomer = (state) => {
|
|
496
|
+
const address = {
|
|
497
|
+
...state.addressLine1 && { line1: state.addressLine1 },
|
|
498
|
+
...state.addressLine2 && { line2: state.addressLine2 },
|
|
499
|
+
...state.city && { city: state.city },
|
|
500
|
+
...state.state && { state: state.state },
|
|
501
|
+
...state.postalCode && { postal_code: state.postalCode },
|
|
502
|
+
country: state.country ?? ""
|
|
503
|
+
};
|
|
504
|
+
if (state.type === "ORGANIZATION") {
|
|
505
|
+
return {
|
|
506
|
+
type: "ORGANIZATION",
|
|
507
|
+
organization: {
|
|
508
|
+
legal_name: state.companyLegalName ?? "",
|
|
509
|
+
registered_address: address,
|
|
510
|
+
...state.companyVatNumber && {
|
|
511
|
+
tax_ids: [{ id: state.companyVatNumber, type: DEFAULT_TAX_IDENTIFIER_TYPE }]
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
return {
|
|
517
|
+
type: "INDIVIDUAL",
|
|
518
|
+
individual: {
|
|
519
|
+
residential_address: address
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
};
|
|
560
523
|
function createGeoLocationService() {
|
|
561
524
|
return {
|
|
562
525
|
/**
|
|
@@ -697,85 +660,6 @@ const usePaymentMethodOptions = () => {
|
|
|
697
660
|
isPending
|
|
698
661
|
};
|
|
699
662
|
};
|
|
700
|
-
function findPricingsByIds(data, ids) {
|
|
701
|
-
const results = [];
|
|
702
|
-
function recurse(obj) {
|
|
703
|
-
if (Array.isArray(obj)) {
|
|
704
|
-
obj.forEach(recurse);
|
|
705
|
-
} else if (obj && typeof obj === "object") {
|
|
706
|
-
if (obj.object_type === "PRICING" && ids.includes(obj.id)) {
|
|
707
|
-
results.push(obj);
|
|
708
|
-
}
|
|
709
|
-
Object.values(obj).forEach(recurse);
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
recurse(data);
|
|
713
|
-
return results;
|
|
714
|
-
}
|
|
715
|
-
function getPricingGroupsFromExtendedPricingPlanSubscription(subscription) {
|
|
716
|
-
return subscription.pricing_plan_schedule_infos.flatMap(
|
|
717
|
-
(info) => {
|
|
718
|
-
var _a;
|
|
719
|
-
return ((_a = info.pricing_plan_version.pricing_categories) == null ? void 0 : _a.flatMap(
|
|
720
|
-
(category) => category.pricing_groups ?? []
|
|
721
|
-
)) ?? [];
|
|
722
|
-
}
|
|
723
|
-
);
|
|
724
|
-
}
|
|
725
|
-
function getFallbackTrialAndSubscriptionStartAndEndDates(subscription) {
|
|
726
|
-
var _a;
|
|
727
|
-
const result = {
|
|
728
|
-
trialStartDate: void 0,
|
|
729
|
-
trialEndDate: void 0,
|
|
730
|
-
subscriptionStartDate: void 0,
|
|
731
|
-
subscriptionEndDate: void 0
|
|
732
|
-
};
|
|
733
|
-
if (!((_a = subscription == null ? void 0 : subscription.pricing_plan_schedule_infos) == null ? void 0 : _a.length)) {
|
|
734
|
-
return result;
|
|
735
|
-
}
|
|
736
|
-
const now = /* @__PURE__ */ new Date();
|
|
737
|
-
const trialSchedule = getFirstPricingPlanScheduleOfType({
|
|
738
|
-
type: "TRIAL",
|
|
739
|
-
pricingPlanScheduleInfos: subscription.pricing_plan_schedule_infos
|
|
740
|
-
});
|
|
741
|
-
if (trialSchedule == null ? void 0 : trialSchedule.start_at) {
|
|
742
|
-
result.trialStartDate = now;
|
|
743
|
-
if (trialSchedule.end_at) {
|
|
744
|
-
const diff = new Date(trialSchedule.end_at).getTime() - new Date(trialSchedule.start_at).getTime();
|
|
745
|
-
result.trialEndDate = new Date(now.getTime() + diff);
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
const subscriptionSchedule = getFirstPricingPlanScheduleOfType({
|
|
749
|
-
type: "DEFAULT",
|
|
750
|
-
pricingPlanScheduleInfos: subscription.pricing_plan_schedule_infos
|
|
751
|
-
});
|
|
752
|
-
if (subscriptionSchedule == null ? void 0 : subscriptionSchedule.start_at) {
|
|
753
|
-
if (result.trialEndDate) {
|
|
754
|
-
result.subscriptionStartDate = result.trialEndDate;
|
|
755
|
-
} else {
|
|
756
|
-
result.subscriptionStartDate = now;
|
|
757
|
-
}
|
|
758
|
-
if (subscriptionSchedule.end_at) {
|
|
759
|
-
const diff = new Date(subscriptionSchedule.end_at).getTime() - new Date(subscriptionSchedule.start_at).getTime();
|
|
760
|
-
result.subscriptionEndDate = new Date(now.getTime() + diff);
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
return result;
|
|
764
|
-
}
|
|
765
|
-
function getAllPricingsFromScheduleInfos(scheduleInfos) {
|
|
766
|
-
return scheduleInfos.flatMap(
|
|
767
|
-
(scheduleInfo) => {
|
|
768
|
-
var _a;
|
|
769
|
-
return ((_a = scheduleInfo.pricing_plan_version.pricing_categories) == null ? void 0 : _a.flatMap(
|
|
770
|
-
(category) => category.pricings ?? []
|
|
771
|
-
)) ?? [];
|
|
772
|
-
}
|
|
773
|
-
);
|
|
774
|
-
}
|
|
775
|
-
function getNameFromPricing(pricing) {
|
|
776
|
-
var _a, _b;
|
|
777
|
-
return !isEmpty(pricing.name) ? pricing.name : (_b = (_a = pricing.products) == null ? void 0 : _a[0]) == null ? void 0 : _b.name;
|
|
778
|
-
}
|
|
779
663
|
function withPreselectedEnabledPricings(subscription, enabledPricingIds = void 0) {
|
|
780
664
|
const result = enabledPricingIds ?? [];
|
|
781
665
|
const pricingGroups = getPricingGroupsFromExtendedPricingPlanSubscription(subscription);
|
|
@@ -801,7 +685,6 @@ function isSubscriptionWithAddonProducts(subscription) {
|
|
|
801
685
|
const pricingGroups = getPricingGroupsFromExtendedPricingPlanSubscription(subscription);
|
|
802
686
|
return pricings.some((pricing) => pricing.product_type === "ADDON") || pricingGroups.some((pricingGroup) => pricingGroup.object_type === "ADDON");
|
|
803
687
|
}
|
|
804
|
-
const DEFAULT_TAX_IDENTIFIER_TYPE = "GENERIC_TAX_ID";
|
|
805
688
|
const REDIRECT_FORM_STATE_KEY = "solvimon_checkout_redirect_state";
|
|
806
689
|
function useCheckoutView({
|
|
807
690
|
initialCountry,
|
|
@@ -809,6 +692,7 @@ function useCheckoutView({
|
|
|
809
692
|
subscriptionId,
|
|
810
693
|
enabledPricingIds
|
|
811
694
|
}) {
|
|
695
|
+
const logger = useLogger();
|
|
812
696
|
const isPaid = ref(false);
|
|
813
697
|
const subscription = ref();
|
|
814
698
|
const { getSubscription } = createSubscriptionsService();
|
|
@@ -822,23 +706,23 @@ function useCheckoutView({
|
|
|
822
706
|
isPending: isPaymentMethodsPending
|
|
823
707
|
} = usePaymentMethodOptions();
|
|
824
708
|
const loadInvoicePreview = () => {
|
|
825
|
-
const
|
|
709
|
+
const formState = checkoutForm.form.value;
|
|
710
|
+
return invoicePreview.loadInvoicePreview({
|
|
826
711
|
subscription: subscription.value,
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
payload.enabledPricingIds = checkoutForm.form.value.enabledPricingIds;
|
|
833
|
-
}
|
|
834
|
-
return invoicePreview.loadInvoicePreview(payload);
|
|
712
|
+
customer: toCustomer(formState),
|
|
713
|
+
seatsValues: formState.seatsValues,
|
|
714
|
+
enabledPricingIds: formState.enabledPricingIds ?? enabledPricingIds,
|
|
715
|
+
promotionCode: formState.promotionCode
|
|
716
|
+
});
|
|
835
717
|
};
|
|
836
718
|
const updateInvoicePreviewOnBillingInformationChange = async (formState) => {
|
|
837
719
|
const promotionCode = formState.promotionCode ?? checkoutForm.form.value.promotionCode;
|
|
838
720
|
const enabledPricingIds2 = formState.enabledPricingIds ?? checkoutForm.form.value.enabledPricingIds;
|
|
721
|
+
const mergedState = { ...checkoutForm.form.value, ...formState };
|
|
839
722
|
await invoicePreview.loadInvoicePreview({
|
|
840
723
|
subscription: subscription.value,
|
|
841
|
-
|
|
724
|
+
customer: toCustomer(mergedState),
|
|
725
|
+
seatsValues: mergedState.seatsValues,
|
|
842
726
|
enabledPricingIds: enabledPricingIds2,
|
|
843
727
|
promotionCode
|
|
844
728
|
});
|
|
@@ -1031,7 +915,17 @@ function useCheckoutView({
|
|
|
1031
915
|
if (savedFormState) {
|
|
1032
916
|
checkoutForm.updateInitialState(savedFormState);
|
|
1033
917
|
}
|
|
1034
|
-
|
|
918
|
+
try {
|
|
919
|
+
await loadSubscription();
|
|
920
|
+
} catch (error) {
|
|
921
|
+
logger.error(
|
|
922
|
+
"SUBSCRIPTION_LOAD_FAILED",
|
|
923
|
+
"Failed to load the subscription the checkout prices",
|
|
924
|
+
{},
|
|
925
|
+
error
|
|
926
|
+
);
|
|
927
|
+
throw error;
|
|
928
|
+
}
|
|
1035
929
|
try {
|
|
1036
930
|
await loadInvoicePreview();
|
|
1037
931
|
} catch {
|
|
@@ -1149,8 +1043,25 @@ function usePromotionCode({
|
|
|
1149
1043
|
function isFieldError(error) {
|
|
1150
1044
|
return typeof error === "object" && error !== null && "field" in error;
|
|
1151
1045
|
}
|
|
1152
|
-
|
|
1153
|
-
|
|
1046
|
+
function useAutoApplyPromotionCode({
|
|
1047
|
+
subscription,
|
|
1048
|
+
promotionCode,
|
|
1049
|
+
appliedPromotionCode,
|
|
1050
|
+
applyPromotionCode
|
|
1051
|
+
}) {
|
|
1052
|
+
watch(
|
|
1053
|
+
subscription,
|
|
1054
|
+
(loadedSubscription) => {
|
|
1055
|
+
if (loadedSubscription && promotionCode) {
|
|
1056
|
+
appliedPromotionCode.value = promotionCode;
|
|
1057
|
+
void applyPromotionCode(promotionCode);
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
{ once: true }
|
|
1061
|
+
);
|
|
1062
|
+
}
|
|
1063
|
+
const _hoisted_1$j = { class: "flex items-center gap-2" };
|
|
1064
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
1154
1065
|
__name: "TaxIDCheckNotice",
|
|
1155
1066
|
props: {
|
|
1156
1067
|
taxIdValidationResult: { type: Object }
|
|
@@ -1173,13 +1084,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1173
1084
|
});
|
|
1174
1085
|
});
|
|
1175
1086
|
return (_ctx, _cache) => {
|
|
1176
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1087
|
+
return openBlock(), createBlock(unref(_sfc_main$m), {
|
|
1177
1088
|
type: isTaxIdValid.value ? "success" : "danger",
|
|
1178
1089
|
icon: false
|
|
1179
1090
|
}, {
|
|
1180
1091
|
default: withCtx(() => [
|
|
1181
|
-
createElementVNode("div", _hoisted_1$
|
|
1182
|
-
createVNode(unref(_sfc_main$
|
|
1092
|
+
createElementVNode("div", _hoisted_1$j, [
|
|
1093
|
+
createVNode(unref(_sfc_main$n), { variant: "body-xs" }, {
|
|
1183
1094
|
default: withCtx(() => [
|
|
1184
1095
|
createTextVNode(toDisplayString(taxIdValidationMessage.value), 1)
|
|
1185
1096
|
]),
|
|
@@ -1205,7 +1116,9 @@ function useTaxIDValidationCheck(form) {
|
|
|
1205
1116
|
const isSelectedCountryEU = computed(() => {
|
|
1206
1117
|
return isEUCountry(countryCode.value ?? "");
|
|
1207
1118
|
});
|
|
1208
|
-
const isTaxIDCheckEnabled = computed(
|
|
1119
|
+
const isTaxIDCheckEnabled = computed(
|
|
1120
|
+
() => !!(taxId2.value && legalName.value && countryCode.value)
|
|
1121
|
+
);
|
|
1209
1122
|
const showViesCheckNotice = computed(() => {
|
|
1210
1123
|
return isSelectedCountryEU.value && taxId2.value;
|
|
1211
1124
|
});
|
|
@@ -1244,16 +1157,16 @@ function useTaxIDValidationCheck(form) {
|
|
|
1244
1157
|
isSelectedCountryEU
|
|
1245
1158
|
};
|
|
1246
1159
|
}
|
|
1247
|
-
const _hoisted_1$
|
|
1248
|
-
const _hoisted_2$
|
|
1249
|
-
const _hoisted_3$
|
|
1250
|
-
const _hoisted_4$
|
|
1160
|
+
const _hoisted_1$i = { class: "grid grid-cols-1 gap-1" };
|
|
1161
|
+
const _hoisted_2$a = { class: "grid grid-cols-1 gap-2" };
|
|
1162
|
+
const _hoisted_3$7 = { key: 0 };
|
|
1163
|
+
const _hoisted_4$6 = { class: "mt-2 flex flex-col gap-3" };
|
|
1251
1164
|
const _hoisted_5$4 = { class: "grid grid-cols-3 gap-2" };
|
|
1252
1165
|
const _hoisted_6$2 = { class: "flex grow flex-col" };
|
|
1253
1166
|
const _hoisted_7$1 = { key: 0 };
|
|
1254
1167
|
const _hoisted_8$1 = { class: "mt-4 grid grid-cols-1 gap-3" };
|
|
1255
1168
|
const FORM_ID = "checkout-form";
|
|
1256
|
-
const _sfc_main$
|
|
1169
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
1257
1170
|
__name: "CheckoutForm",
|
|
1258
1171
|
props: /* @__PURE__ */ mergeModels({
|
|
1259
1172
|
validation: { type: null },
|
|
@@ -1306,8 +1219,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1306
1219
|
id: FORM_ID,
|
|
1307
1220
|
onSubmit: _cache[12] || (_cache[12] = withModifiers(($event) => _ctx.$emit("submit", model.value), ["prevent"]))
|
|
1308
1221
|
}, [
|
|
1309
|
-
createElementVNode("div", _hoisted_1$
|
|
1310
|
-
createVNode(unref(_sfc_main$
|
|
1222
|
+
createElementVNode("div", _hoisted_1$i, [
|
|
1223
|
+
createVNode(unref(_sfc_main$o), {
|
|
1311
1224
|
title: unref($t)({
|
|
1312
1225
|
defaultMessage: "Customer information",
|
|
1313
1226
|
id: "checkout.contact_information_block.title",
|
|
@@ -1315,9 +1228,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1315
1228
|
})
|
|
1316
1229
|
}, {
|
|
1317
1230
|
default: withCtx(() => [
|
|
1318
|
-
createElementVNode("div", _hoisted_2$
|
|
1231
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
1319
1232
|
__props.readOnly ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1320
|
-
createVNode(unref(_sfc_main$
|
|
1233
|
+
createVNode(unref(_sfc_main$n), {
|
|
1321
1234
|
variant: "body",
|
|
1322
1235
|
tag: "span",
|
|
1323
1236
|
weight: "semibold",
|
|
@@ -1328,7 +1241,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1328
1241
|
]),
|
|
1329
1242
|
_: 1
|
|
1330
1243
|
}),
|
|
1331
|
-
createVNode(unref(_sfc_main$
|
|
1244
|
+
createVNode(unref(_sfc_main$n), {
|
|
1332
1245
|
variant: "body-sm",
|
|
1333
1246
|
tag: "span",
|
|
1334
1247
|
shade: "lighter",
|
|
@@ -1340,7 +1253,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1340
1253
|
_: 1
|
|
1341
1254
|
})
|
|
1342
1255
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1343
|
-
createVNode(unref(_sfc_main$
|
|
1256
|
+
createVNode(unref(_sfc_main$p), {
|
|
1344
1257
|
modelValue: model.value.email,
|
|
1345
1258
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value.email = $event),
|
|
1346
1259
|
required: "",
|
|
@@ -1359,7 +1272,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1359
1272
|
}) + getOptionalSuffix("email"),
|
|
1360
1273
|
error: __props.validation.value.email.$errors
|
|
1361
1274
|
}, null, 8, ["modelValue", "disabled", "label", "placeholder", "error"]),
|
|
1362
|
-
createVNode(unref(_sfc_main$
|
|
1275
|
+
createVNode(unref(_sfc_main$q), {
|
|
1363
1276
|
"single-model-value": country.value,
|
|
1364
1277
|
"onUpdate:singleModelValue": _cache[3] || (_cache[3] = ($event) => country.value = $event),
|
|
1365
1278
|
required: "",
|
|
@@ -1372,7 +1285,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1372
1285
|
error: __props.validation.value.country.$errors
|
|
1373
1286
|
}, {
|
|
1374
1287
|
"label-suffix": withCtx(() => [
|
|
1375
|
-
!showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$
|
|
1288
|
+
!showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$r), {
|
|
1376
1289
|
key: 0,
|
|
1377
1290
|
size: "xs",
|
|
1378
1291
|
variant: "ghost",
|
|
@@ -1389,7 +1302,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1389
1302
|
]),
|
|
1390
1303
|
_: 1
|
|
1391
1304
|
})) : createCommentVNode("", true),
|
|
1392
|
-
showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$
|
|
1305
|
+
showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$r), {
|
|
1393
1306
|
key: 1,
|
|
1394
1307
|
size: "sm",
|
|
1395
1308
|
variant: "ghost",
|
|
@@ -1411,13 +1324,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1411
1324
|
}, 8, ["single-model-value", "label", "error"])
|
|
1412
1325
|
], 64))
|
|
1413
1326
|
]),
|
|
1414
|
-
createVNode(unref(_sfc_main$
|
|
1327
|
+
createVNode(unref(_sfc_main$s), {
|
|
1415
1328
|
"is-open": showBillingDetails.value || !!__props.isBillingInformationMandatory
|
|
1416
1329
|
}, {
|
|
1417
1330
|
default: withCtx(() => [
|
|
1418
|
-
showBillingDetails.value || __props.isBillingInformationMandatory ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
1419
|
-
createElementVNode("div", _hoisted_4$
|
|
1420
|
-
createVNode(unref(_sfc_main$
|
|
1331
|
+
showBillingDetails.value || __props.isBillingInformationMandatory ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
1332
|
+
createElementVNode("div", _hoisted_4$6, [
|
|
1333
|
+
createVNode(unref(_sfc_main$p), {
|
|
1421
1334
|
modelValue: model.value.addressLine1,
|
|
1422
1335
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => model.value.addressLine1 = $event),
|
|
1423
1336
|
name: "address_line_1",
|
|
@@ -1434,7 +1347,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1434
1347
|
required: "",
|
|
1435
1348
|
error: __props.validation.value.addressLine1.$errors
|
|
1436
1349
|
}, null, 8, ["modelValue", "label", "placeholder", "error"]),
|
|
1437
|
-
createVNode(unref(_sfc_main$
|
|
1350
|
+
createVNode(unref(_sfc_main$p), {
|
|
1438
1351
|
modelValue: model.value.addressLine2,
|
|
1439
1352
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => model.value.addressLine2 = $event),
|
|
1440
1353
|
name: "address_line_2",
|
|
@@ -1445,7 +1358,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1445
1358
|
}) + getOptionalSuffix("addressLine2")
|
|
1446
1359
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1447
1360
|
createElementVNode("div", _hoisted_5$4, [
|
|
1448
|
-
createVNode(unref(_sfc_main$
|
|
1361
|
+
createVNode(unref(_sfc_main$p), {
|
|
1449
1362
|
modelValue: model.value.postalCode,
|
|
1450
1363
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => model.value.postalCode = $event),
|
|
1451
1364
|
name: "postal_code",
|
|
@@ -1456,7 +1369,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1456
1369
|
}) + getOptionalSuffix("postalCode"),
|
|
1457
1370
|
error: __props.validation.value.addressLine1.$errors
|
|
1458
1371
|
}, null, 8, ["modelValue", "placeholder", "error"]),
|
|
1459
|
-
createVNode(unref(_sfc_main$
|
|
1372
|
+
createVNode(unref(_sfc_main$p), {
|
|
1460
1373
|
modelValue: model.value.city,
|
|
1461
1374
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => model.value.city = $event),
|
|
1462
1375
|
name: "city",
|
|
@@ -1466,7 +1379,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1466
1379
|
description: "City of the customer address in the checkout form"
|
|
1467
1380
|
}) + getOptionalSuffix("city")
|
|
1468
1381
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1469
|
-
createVNode(unref(_sfc_main$
|
|
1382
|
+
createVNode(unref(_sfc_main$p), {
|
|
1470
1383
|
modelValue: model.value.state,
|
|
1471
1384
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => model.value.state = $event),
|
|
1472
1385
|
name: "state",
|
|
@@ -1486,9 +1399,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1486
1399
|
]),
|
|
1487
1400
|
_: 1
|
|
1488
1401
|
}, 8, ["title"]),
|
|
1489
|
-
!__props.readOnly ? (openBlock(), createBlock(unref(_sfc_main$
|
|
1402
|
+
!__props.readOnly ? (openBlock(), createBlock(unref(_sfc_main$o), { key: 0 }, {
|
|
1490
1403
|
default: withCtx(() => [
|
|
1491
|
-
createVNode(unref(_sfc_main$
|
|
1404
|
+
createVNode(unref(_sfc_main$t), {
|
|
1492
1405
|
modelValue: companyPurchaseModel.value,
|
|
1493
1406
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => companyPurchaseModel.value = $event),
|
|
1494
1407
|
"no-spacing": "",
|
|
@@ -1497,7 +1410,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1497
1410
|
}, {
|
|
1498
1411
|
"inline-label": withCtx(() => [
|
|
1499
1412
|
createElementVNode("div", _hoisted_6$2, [
|
|
1500
|
-
createVNode(unref(_sfc_main$
|
|
1413
|
+
createVNode(unref(_sfc_main$n), { tag: "span" }, {
|
|
1501
1414
|
default: withCtx(() => [
|
|
1502
1415
|
createTextVNode(toDisplayString(unref($t)({
|
|
1503
1416
|
defaultMessage: "Company purchase",
|
|
@@ -1507,7 +1420,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1507
1420
|
]),
|
|
1508
1421
|
_: 1
|
|
1509
1422
|
}),
|
|
1510
|
-
createVNode(unref(_sfc_main$
|
|
1423
|
+
createVNode(unref(_sfc_main$n), {
|
|
1511
1424
|
tag: "span",
|
|
1512
1425
|
variant: "body-xs",
|
|
1513
1426
|
shade: "lighter"
|
|
@@ -1525,11 +1438,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1525
1438
|
]),
|
|
1526
1439
|
_: 1
|
|
1527
1440
|
}, 8, ["modelValue"]),
|
|
1528
|
-
createVNode(unref(_sfc_main$
|
|
1441
|
+
createVNode(unref(_sfc_main$s), { "is-open": isCompanyPurchase.value }, {
|
|
1529
1442
|
default: withCtx(() => [
|
|
1530
1443
|
isCompanyPurchase.value ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
|
|
1531
1444
|
createElementVNode("div", _hoisted_8$1, [
|
|
1532
|
-
createVNode(unref(_sfc_main$
|
|
1445
|
+
createVNode(unref(_sfc_main$p), {
|
|
1533
1446
|
modelValue: model.value.companyLegalName,
|
|
1534
1447
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => model.value.companyLegalName = $event),
|
|
1535
1448
|
required: "",
|
|
@@ -1545,7 +1458,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1545
1458
|
description: "The legal name of the organization customer in the checkout form"
|
|
1546
1459
|
})
|
|
1547
1460
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1548
|
-
showVatIdInput.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
1461
|
+
showVatIdInput.value ? (openBlock(), createBlock(unref(_sfc_main$p), {
|
|
1549
1462
|
key: 0,
|
|
1550
1463
|
modelValue: model.value.companyVatNumber,
|
|
1551
1464
|
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => model.value.companyVatNumber = $event),
|
|
@@ -1567,7 +1480,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1567
1480
|
unref(isEUCountry)(model.value.country ?? "") ? {
|
|
1568
1481
|
name: "suffix",
|
|
1569
1482
|
fn: withCtx(() => [
|
|
1570
|
-
createVNode(unref(_sfc_main$
|
|
1483
|
+
createVNode(unref(_sfc_main$r), {
|
|
1571
1484
|
type: "button",
|
|
1572
1485
|
size: "sm",
|
|
1573
1486
|
color: "green",
|
|
@@ -1591,7 +1504,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1591
1504
|
key: 1,
|
|
1592
1505
|
class: normalizeClass({ "opacity-75": unref(isTaxIDCheckPending) })
|
|
1593
1506
|
}, [
|
|
1594
|
-
createVNode(_sfc_main$
|
|
1507
|
+
createVNode(_sfc_main$l, { "tax-id-validation-result": unref(taxIdValidationData) }, null, 8, ["tax-id-validation-result"])
|
|
1595
1508
|
], 2)) : createCommentVNode("", true)
|
|
1596
1509
|
])
|
|
1597
1510
|
])) : createCommentVNode("", true)
|
|
@@ -1606,13 +1519,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1606
1519
|
};
|
|
1607
1520
|
}
|
|
1608
1521
|
});
|
|
1609
|
-
const _hoisted_1$
|
|
1522
|
+
const _hoisted_1$h = {
|
|
1610
1523
|
key: 0,
|
|
1611
1524
|
class: "flex items-center"
|
|
1612
1525
|
};
|
|
1613
|
-
const _hoisted_2$
|
|
1614
|
-
const _hoisted_3$
|
|
1615
|
-
const _sfc_main$
|
|
1526
|
+
const _hoisted_2$9 = ["innerHTML"];
|
|
1527
|
+
const _hoisted_3$6 = ["innerHTML"];
|
|
1528
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
1616
1529
|
__name: "CheckoutTitle",
|
|
1617
1530
|
props: {
|
|
1618
1531
|
trialPeriod: { type: Object },
|
|
@@ -1628,7 +1541,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1628
1541
|
return (_ctx, _cache) => {
|
|
1629
1542
|
return openBlock(), createElementBlock("div", null, [
|
|
1630
1543
|
createElementVNode("div", null, [
|
|
1631
|
-
createVNode(unref(_sfc_main$
|
|
1544
|
+
createVNode(unref(_sfc_main$n), {
|
|
1632
1545
|
variant: "heading-1",
|
|
1633
1546
|
class: "inline-block"
|
|
1634
1547
|
}, {
|
|
@@ -1638,7 +1551,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1638
1551
|
id: "checkout.page_title",
|
|
1639
1552
|
description: "The title of the checkout page"
|
|
1640
1553
|
})) + toDisplayString(" "), 1),
|
|
1641
|
-
__props.trialPeriod ? (openBlock(), createBlock(unref(_sfc_main$
|
|
1554
|
+
__props.trialPeriod ? (openBlock(), createBlock(unref(_sfc_main$u), {
|
|
1642
1555
|
key: 0,
|
|
1643
1556
|
"trial-period": __props.trialPeriod,
|
|
1644
1557
|
size: "lg",
|
|
@@ -1648,18 +1561,18 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1648
1561
|
_: 1
|
|
1649
1562
|
})
|
|
1650
1563
|
]),
|
|
1651
|
-
createVNode(unref(_sfc_main$
|
|
1564
|
+
createVNode(unref(_sfc_main$n), {
|
|
1652
1565
|
variant: "body-sm",
|
|
1653
1566
|
shade: "lighter",
|
|
1654
1567
|
"no-spacing": ""
|
|
1655
1568
|
}, {
|
|
1656
1569
|
default: withCtx(() => [
|
|
1657
|
-
!__props.countryCode ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1658
|
-
createVNode(unref(_sfc_main$
|
|
1570
|
+
!__props.countryCode ? (openBlock(), createElementBlock("span", _hoisted_1$h, [
|
|
1571
|
+
createVNode(unref(_sfc_main$v), { "is-dark-mode": "" }, {
|
|
1659
1572
|
tooltip: withCtx(() => [
|
|
1660
1573
|
createVNode(unref(TooltipContent), null, {
|
|
1661
1574
|
default: withCtx(() => [
|
|
1662
|
-
createVNode(unref(_sfc_main$
|
|
1575
|
+
createVNode(unref(_sfc_main$x), null, {
|
|
1663
1576
|
default: withCtx(() => [
|
|
1664
1577
|
createTextVNode(toDisplayString(unref($t)({
|
|
1665
1578
|
defaultMessage: "Will be determined by billing information",
|
|
@@ -1674,11 +1587,11 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1674
1587
|
})
|
|
1675
1588
|
]),
|
|
1676
1589
|
default: withCtx(() => [
|
|
1677
|
-
createVNode(unref(_sfc_main$
|
|
1590
|
+
createVNode(unref(_sfc_main$w), {
|
|
1678
1591
|
"width-class": "w-10",
|
|
1679
1592
|
"height-class": "h-4",
|
|
1680
1593
|
shade: "darker",
|
|
1681
|
-
class: "
|
|
1594
|
+
class: "mr-1.5 inline-block"
|
|
1682
1595
|
})
|
|
1683
1596
|
]),
|
|
1684
1597
|
_: 1
|
|
@@ -1711,7 +1624,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1711
1624
|
})
|
|
1712
1625
|
}
|
|
1713
1626
|
)
|
|
1714
|
-
}, null, 8, _hoisted_2$
|
|
1627
|
+
}, null, 8, _hoisted_2$9)
|
|
1715
1628
|
])) : (openBlock(), createElementBlock("span", {
|
|
1716
1629
|
key: 1,
|
|
1717
1630
|
innerHTML: __props.trialStartDate ? unref($t)(
|
|
@@ -1747,7 +1660,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1747
1660
|
strong: (text) => `<strong>${text}</strong>`
|
|
1748
1661
|
}
|
|
1749
1662
|
)
|
|
1750
|
-
}, null, 8, _hoisted_3$
|
|
1663
|
+
}, null, 8, _hoisted_3$6))
|
|
1751
1664
|
]),
|
|
1752
1665
|
_: 1
|
|
1753
1666
|
})
|
|
@@ -1770,9 +1683,9 @@ const isInvoiceUsageBased = (invoice) => {
|
|
|
1770
1683
|
)
|
|
1771
1684
|
)) ?? false;
|
|
1772
1685
|
};
|
|
1773
|
-
const _hoisted_1$
|
|
1774
|
-
const _hoisted_2$
|
|
1775
|
-
const _sfc_main$
|
|
1686
|
+
const _hoisted_1$g = { class: "flex min-h-96 w-full items-center justify-center" };
|
|
1687
|
+
const _hoisted_2$8 = { class: "max-w-sm" };
|
|
1688
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1776
1689
|
__name: "CheckoutNotAvailable",
|
|
1777
1690
|
setup(__props) {
|
|
1778
1691
|
const { $t } = useIntl();
|
|
@@ -1780,9 +1693,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1780
1693
|
window.location.reload();
|
|
1781
1694
|
};
|
|
1782
1695
|
return (_ctx, _cache) => {
|
|
1783
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1784
|
-
createElementVNode("div", _hoisted_2$
|
|
1785
|
-
createVNode(unref(_sfc_main$
|
|
1696
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
1697
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
1698
|
+
createVNode(unref(_sfc_main$n), { variant: "heading-1" }, {
|
|
1786
1699
|
default: withCtx(() => [
|
|
1787
1700
|
createTextVNode(toDisplayString(unref($t)({
|
|
1788
1701
|
defaultMessage: "Checkout not available",
|
|
@@ -1792,7 +1705,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1792
1705
|
]),
|
|
1793
1706
|
_: 1
|
|
1794
1707
|
}),
|
|
1795
|
-
createVNode(unref(_sfc_main$
|
|
1708
|
+
createVNode(unref(_sfc_main$n), {
|
|
1796
1709
|
variant: "body-sm",
|
|
1797
1710
|
shade: "lighter"
|
|
1798
1711
|
}, {
|
|
@@ -1824,13 +1737,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1824
1737
|
};
|
|
1825
1738
|
}
|
|
1826
1739
|
});
|
|
1827
|
-
const _sfc_main$
|
|
1740
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1828
1741
|
__name: "SubscriptionPaymentCompletedCard",
|
|
1829
1742
|
emits: ["continue-to-merchant"],
|
|
1830
1743
|
setup(__props) {
|
|
1831
1744
|
const { $t } = useIntl();
|
|
1832
1745
|
return (_ctx, _cache) => {
|
|
1833
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1746
|
+
return openBlock(), createBlock(_sfc_main$y, {
|
|
1834
1747
|
status: "success",
|
|
1835
1748
|
title: unref($t)({
|
|
1836
1749
|
defaultMessage: "Payment successful",
|
|
@@ -1839,7 +1752,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1839
1752
|
})
|
|
1840
1753
|
}, {
|
|
1841
1754
|
default: withCtx(() => [
|
|
1842
|
-
createVNode(unref(_sfc_main$
|
|
1755
|
+
createVNode(unref(_sfc_main$n), {
|
|
1843
1756
|
variant: "body-xs",
|
|
1844
1757
|
shade: "lighter",
|
|
1845
1758
|
tag: "span"
|
|
@@ -1859,112 +1772,60 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1859
1772
|
};
|
|
1860
1773
|
}
|
|
1861
1774
|
});
|
|
1862
|
-
const _hoisted_1$
|
|
1863
|
-
const _hoisted_2$
|
|
1864
|
-
const
|
|
1865
|
-
|
|
1775
|
+
const _hoisted_1$f = { class: "flex items-start" };
|
|
1776
|
+
const _hoisted_2$7 = { class: "flex grow flex-col" };
|
|
1777
|
+
const _hoisted_3$5 = { class: "flex items-center gap-1" };
|
|
1778
|
+
const _hoisted_4$5 = { class: "ml-4 flex items-center self-center" };
|
|
1779
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
1780
|
+
__name: "PricingGroupContent",
|
|
1866
1781
|
props: {
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
loading: { type: Boolean },
|
|
1870
|
-
enabledPricingIds: { type: Array },
|
|
1871
|
-
avatar: { type: String },
|
|
1872
|
-
trialPeriod: { type: Object }
|
|
1782
|
+
name: { type: String },
|
|
1783
|
+
description: { type: String }
|
|
1873
1784
|
},
|
|
1874
1785
|
setup(__props) {
|
|
1875
|
-
const props = __props;
|
|
1876
|
-
const { $t } = useIntl();
|
|
1877
|
-
const mostRecentPricingPlan = computed(
|
|
1878
|
-
() => {
|
|
1879
|
-
var _a, _b;
|
|
1880
|
-
return (_b = (_a = props.subscription.pricing_plan_schedule_infos) == null ? void 0 : _a.at(-1)) == null ? void 0 : _b.pricing_plan_version.pricing_plan;
|
|
1881
|
-
}
|
|
1882
|
-
);
|
|
1883
|
-
const name = computed(
|
|
1884
|
-
() => {
|
|
1885
|
-
var _a;
|
|
1886
|
-
return ((_a = mostRecentPricingPlan.value) == null ? void 0 : _a.name) || props.subscription.name || $t({
|
|
1887
|
-
defaultMessage: "Subscription",
|
|
1888
|
-
description: "The fallback name for when no subscription name can be determined",
|
|
1889
|
-
id: "customer_overview.subscriptions_block.fallback_subscription_name"
|
|
1890
|
-
});
|
|
1891
|
-
}
|
|
1892
|
-
);
|
|
1893
|
-
const description = computed(
|
|
1894
|
-
() => {
|
|
1895
|
-
var _a;
|
|
1896
|
-
return props.subscription.description || ((_a = mostRecentPricingPlan.value) == null ? void 0 : _a.description);
|
|
1897
|
-
}
|
|
1898
|
-
);
|
|
1899
|
-
const selectedPricings = computed(() => {
|
|
1900
|
-
if (!props.subscription || !props.enabledPricingIds) {
|
|
1901
|
-
return void 0;
|
|
1902
|
-
}
|
|
1903
|
-
const pricings = findPricingsByIds(props.subscription, props.enabledPricingIds);
|
|
1904
|
-
const names = pricings == null ? void 0 : pricings.map((pricing) => {
|
|
1905
|
-
var _a, _b;
|
|
1906
|
-
return pricing.name ?? ((_b = (_a = pricing.products) == null ? void 0 : _a[0]) == null ? void 0 : _b.name);
|
|
1907
|
-
}).join(" - ");
|
|
1908
|
-
return names;
|
|
1909
|
-
});
|
|
1910
1786
|
return (_ctx, _cache) => {
|
|
1911
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
}),
|
|
1929
|
-
selectedPricings.value ? (openBlock(), createBlock(unref(_sfc_main$p), {
|
|
1930
|
-
key: 0,
|
|
1931
|
-
variant: "body-xs",
|
|
1932
|
-
shade: "lighter",
|
|
1933
|
-
"no-spacing": ""
|
|
1934
|
-
}, {
|
|
1935
|
-
default: withCtx(() => [
|
|
1936
|
-
createTextVNode(toDisplayString(selectedPricings.value), 1)
|
|
1937
|
-
]),
|
|
1938
|
-
_: 1
|
|
1939
|
-
})) : createCommentVNode("", true),
|
|
1940
|
-
description.value ? (openBlock(), createBlock(unref(_sfc_main$p), {
|
|
1941
|
-
key: 1,
|
|
1787
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
1788
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
1789
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
1790
|
+
createVNode(unref(_sfc_main$n), {
|
|
1791
|
+
tag: "span",
|
|
1792
|
+
variant: "body-sm",
|
|
1793
|
+
weight: "semibold"
|
|
1794
|
+
}, {
|
|
1795
|
+
default: withCtx(() => [
|
|
1796
|
+
createTextVNode(toDisplayString(__props.name), 1)
|
|
1797
|
+
]),
|
|
1798
|
+
_: 1
|
|
1799
|
+
}),
|
|
1800
|
+
renderSlot(_ctx.$slots, "badge")
|
|
1801
|
+
]),
|
|
1802
|
+
createVNode(unref(_sfc_main$n), {
|
|
1803
|
+
tag: "span",
|
|
1942
1804
|
variant: "body-xs",
|
|
1943
|
-
shade: "lighter"
|
|
1944
|
-
"no-spacing": ""
|
|
1805
|
+
shade: "lighter"
|
|
1945
1806
|
}, {
|
|
1946
1807
|
default: withCtx(() => [
|
|
1947
|
-
|
|
1948
|
-
createTextVNode(" • ")
|
|
1949
|
-
], 64)) : createCommentVNode("", true),
|
|
1950
|
-
createTextVNode(" " + toDisplayString(description.value), 1)
|
|
1808
|
+
createTextVNode(toDisplayString(__props.description), 1)
|
|
1951
1809
|
]),
|
|
1952
1810
|
_: 1
|
|
1953
|
-
})
|
|
1811
|
+
})
|
|
1812
|
+
]),
|
|
1813
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
1814
|
+
renderSlot(_ctx.$slots, "default")
|
|
1954
1815
|
])
|
|
1955
1816
|
]);
|
|
1956
1817
|
};
|
|
1957
1818
|
}
|
|
1958
1819
|
});
|
|
1959
|
-
const _hoisted_1$
|
|
1960
|
-
const _hoisted_2$
|
|
1820
|
+
const _hoisted_1$e = { class: "sv-order-summary__body grid grid-cols-1 gap-1" };
|
|
1821
|
+
const _hoisted_2$6 = { class: "px-3 py-2" };
|
|
1961
1822
|
const _hoisted_3$4 = { class: "sv-order-summary__billing-period flex flex-col gap-3" };
|
|
1962
1823
|
const _hoisted_4$4 = { class: "px-3 py-2" };
|
|
1963
1824
|
const _hoisted_5$3 = {
|
|
1964
1825
|
key: 3,
|
|
1965
1826
|
class: "sv-order-summary__items"
|
|
1966
1827
|
};
|
|
1967
|
-
const _sfc_main$
|
|
1828
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
1968
1829
|
__name: "OrderSummary",
|
|
1969
1830
|
props: {
|
|
1970
1831
|
subscription: { type: Object },
|
|
@@ -2184,7 +2045,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2184
2045
|
label,
|
|
2185
2046
|
subLabel: getSelectedPeriodAmountLabel(period),
|
|
2186
2047
|
labelSuffixComponent: saveText ? {
|
|
2187
|
-
component: _sfc_main$
|
|
2048
|
+
component: _sfc_main$z,
|
|
2188
2049
|
props: {
|
|
2189
2050
|
color: "primary",
|
|
2190
2051
|
content: saveText,
|
|
@@ -2243,7 +2104,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2243
2104
|
selectedBillingPeriodKey.value = checked ? biggestPeriod : smallestPeriod;
|
|
2244
2105
|
};
|
|
2245
2106
|
return (_ctx, _cache) => {
|
|
2246
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2107
|
+
return openBlock(), createBlock(unref(_sfc_main$o), {
|
|
2247
2108
|
class: "sv-order-summary",
|
|
2248
2109
|
"no-border": "",
|
|
2249
2110
|
"no-spacing": "",
|
|
@@ -2255,13 +2116,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2255
2116
|
})
|
|
2256
2117
|
}, {
|
|
2257
2118
|
default: withCtx(() => [
|
|
2258
|
-
createElementVNode("div", _hoisted_1$
|
|
2259
|
-
createVNode(unref(_sfc_main$
|
|
2119
|
+
createElementVNode("div", _hoisted_1$e, [
|
|
2120
|
+
createVNode(unref(_sfc_main$o), {
|
|
2260
2121
|
"no-spacing": "",
|
|
2261
2122
|
class: "sv-order-summary__subscription"
|
|
2262
2123
|
}, {
|
|
2263
2124
|
default: withCtx(() => [
|
|
2264
|
-
__props.subscription ? (openBlock(), createBlock(_sfc_main$
|
|
2125
|
+
__props.subscription ? (openBlock(), createBlock(_sfc_main$A, {
|
|
2265
2126
|
key: 0,
|
|
2266
2127
|
avatar: __props.avatar,
|
|
2267
2128
|
invoice: __props.invoice,
|
|
@@ -2273,7 +2134,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2273
2134
|
]),
|
|
2274
2135
|
_: 1
|
|
2275
2136
|
}),
|
|
2276
|
-
billingPeriodOptions.value.length === 2 ? (openBlock(), createBlock(unref(_sfc_main$
|
|
2137
|
+
billingPeriodOptions.value.length === 2 ? (openBlock(), createBlock(unref(_sfc_main$o), {
|
|
2277
2138
|
key: 0,
|
|
2278
2139
|
"no-spacing": "",
|
|
2279
2140
|
"content-classes": selectedBillingPeriodKey.value === periodBounds.value.biggestPeriod ? "border-primary-500" : void 0
|
|
@@ -2281,15 +2142,15 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2281
2142
|
default: withCtx(() => {
|
|
2282
2143
|
var _a;
|
|
2283
2144
|
return [
|
|
2284
|
-
createElementVNode("div", _hoisted_2$
|
|
2145
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
2285
2146
|
createElementVNode("div", _hoisted_3$4, [
|
|
2286
|
-
highOption.value ? (openBlock(), createBlock(_sfc_main$
|
|
2147
|
+
highOption.value ? (openBlock(), createBlock(_sfc_main$g, {
|
|
2287
2148
|
key: 0,
|
|
2288
2149
|
name: highOption.value.label,
|
|
2289
2150
|
description: ((_a = selectedBillingPeriodOption.value) == null ? void 0 : _a.subLabel) ?? ""
|
|
2290
2151
|
}, createSlots({
|
|
2291
2152
|
default: withCtx(() => [
|
|
2292
|
-
createVNode(unref(_sfc_main$
|
|
2153
|
+
createVNode(unref(_sfc_main$t), {
|
|
2293
2154
|
"model-value": selectedBillingPeriodKey.value === periodBounds.value.biggestPeriod,
|
|
2294
2155
|
"onUpdate:modelValue": handleBinaryBillingToggle
|
|
2295
2156
|
}, null, 8, ["model-value"])
|
|
@@ -2299,7 +2160,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2299
2160
|
toggleSaveText.value ? {
|
|
2300
2161
|
name: "badge",
|
|
2301
2162
|
fn: withCtx(() => [
|
|
2302
|
-
createVNode(unref(_sfc_main$
|
|
2163
|
+
createVNode(unref(_sfc_main$z), {
|
|
2303
2164
|
color: "primary",
|
|
2304
2165
|
content: toggleSaveText.value,
|
|
2305
2166
|
size: saveBadgeSize.value,
|
|
@@ -2314,7 +2175,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2314
2175
|
];
|
|
2315
2176
|
}),
|
|
2316
2177
|
_: 1
|
|
2317
|
-
}, 8, ["content-classes"])) : billingPeriodOptions.value.length > 2 ? (openBlock(), createBlock(unref(_sfc_main$
|
|
2178
|
+
}, 8, ["content-classes"])) : billingPeriodOptions.value.length > 2 ? (openBlock(), createBlock(unref(_sfc_main$B), {
|
|
2318
2179
|
key: 1,
|
|
2319
2180
|
"single-model-value": selectedBillingPeriodKey.value,
|
|
2320
2181
|
"onUpdate:singleModelValue": _cache[0] || (_cache[0] = ($event) => selectedBillingPeriodKey.value = $event),
|
|
@@ -2325,14 +2186,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2325
2186
|
"show-sub-label-in-input": "",
|
|
2326
2187
|
"show-suffix-in-closed-input": ""
|
|
2327
2188
|
}, null, 8, ["single-model-value", "options"])) : createCommentVNode("", true),
|
|
2328
|
-
__props.isUsageBased ? (openBlock(), createBlock(unref(_sfc_main$
|
|
2189
|
+
__props.isUsageBased ? (openBlock(), createBlock(unref(_sfc_main$o), {
|
|
2329
2190
|
key: 2,
|
|
2330
2191
|
"no-spacing": "",
|
|
2331
2192
|
class: "sv-order-summary__usage"
|
|
2332
2193
|
}, {
|
|
2333
2194
|
default: withCtx(() => [
|
|
2334
2195
|
createElementVNode("div", _hoisted_4$4, [
|
|
2335
|
-
createVNode(unref(_sfc_main$
|
|
2196
|
+
createVNode(unref(_sfc_main$n), {
|
|
2336
2197
|
"no-spacing": "",
|
|
2337
2198
|
variant: "body-sm",
|
|
2338
2199
|
shade: "lighter"
|
|
@@ -2351,14 +2212,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2351
2212
|
_: 1
|
|
2352
2213
|
})) : createCommentVNode("", true),
|
|
2353
2214
|
__props.invoice && __props.variant !== "products-inline" ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
2354
|
-
createVNode(unref(_sfc_main$
|
|
2215
|
+
createVNode(unref(_sfc_main$C), {
|
|
2355
2216
|
invoice: __props.invoice,
|
|
2356
|
-
"wrapper-component": unref(_sfc_main$
|
|
2217
|
+
"wrapper-component": unref(_sfc_main$o)
|
|
2357
2218
|
}, null, 8, ["invoice", "wrapper-component"])
|
|
2358
2219
|
])) : createCommentVNode("", true),
|
|
2359
|
-
createVNode(unref(_sfc_main$
|
|
2220
|
+
createVNode(unref(_sfc_main$o), { class: "sv-order-summary__totals" }, {
|
|
2360
2221
|
default: withCtx(() => [
|
|
2361
|
-
__props.invoice ? (openBlock(), createBlock(unref(_sfc_main$
|
|
2222
|
+
__props.invoice ? (openBlock(), createBlock(unref(_sfc_main$D), {
|
|
2362
2223
|
key: 0,
|
|
2363
2224
|
class: "sv-order-summary__invoice-preview",
|
|
2364
2225
|
variant: __props.variant === "products-inline" ? "default" : "without-products",
|
|
@@ -2368,7 +2229,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2368
2229
|
collapsible: __props.collapsible,
|
|
2369
2230
|
"is-preview-without-taxes": !__props.countryCode,
|
|
2370
2231
|
"is-customer-facing": ""
|
|
2371
|
-
}, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
2232
|
+
}, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (openBlock(), createBlock(unref(_sfc_main$n), {
|
|
2372
2233
|
key: 1,
|
|
2373
2234
|
variant: "body-sm",
|
|
2374
2235
|
shade: "lighter",
|
|
@@ -2393,19 +2254,19 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2393
2254
|
};
|
|
2394
2255
|
}
|
|
2395
2256
|
});
|
|
2396
|
-
const _hoisted_1$
|
|
2257
|
+
const _hoisted_1$d = {
|
|
2397
2258
|
key: 0,
|
|
2398
2259
|
id: "svg-logo",
|
|
2399
2260
|
viewBox: "0 0 35 15",
|
|
2400
2261
|
class: "h-[44px]"
|
|
2401
2262
|
};
|
|
2402
|
-
const _hoisted_2$
|
|
2263
|
+
const _hoisted_2$5 = {
|
|
2403
2264
|
key: 1,
|
|
2404
2265
|
src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAxcHgiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxMDEgMzIiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaW5ZTWluIG1lZXQiIHhtbG5zPSJodHRwOiYjeDJGOyYjeDJGO3d3dy53My5vcmcmI3gyRjsyMDAwJiN4MkY7c3ZnIj48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDEyLjIzNyAyLjggTCA0LjQzNyAyLjggQyAzLjkzNyAyLjggMy40MzcgMy4yIDMuMzM3IDMuNyBMIDAuMjM3IDIzLjcgQyAwLjEzNyAyNC4xIDAuNDM3IDI0LjQgMC44MzcgMjQuNCBMIDQuNTM3IDI0LjQgQyA1LjAzNyAyNC40IDUuNTM3IDI0IDUuNjM3IDIzLjUgTCA2LjQzNyAxOC4xIEMgNi41MzcgMTcuNiA2LjkzNyAxNy4yIDcuNTM3IDE3LjIgTCAxMC4wMzcgMTcuMiBDIDE1LjEzNyAxNy4yIDE4LjEzNyAxNC43IDE4LjkzNyA5LjggQyAxOS4yMzcgNy43IDE4LjkzNyA2IDE3LjkzNyA0LjggQyAxNi44MzcgMy41IDE0LjgzNyAyLjggMTIuMjM3IDIuOCBaIE0gMTMuMTM3IDEwLjEgQyAxMi43MzcgMTIuOSAxMC41MzcgMTIuOSA4LjUzNyAxMi45IEwgNy4zMzcgMTIuOSBMIDguMTM3IDcuNyBDIDguMTM3IDcuNCA4LjQzNyA3LjIgOC43MzcgNy4yIEwgOS4yMzcgNy4yIEMgMTAuNjM3IDcuMiAxMS45MzcgNy4yIDEyLjYzNyA4IEMgMTMuMTM3IDguNCAxMy4zMzcgOS4xIDEzLjEzNyAxMC4xIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDM1LjQzNyAxMCBMIDMxLjczNyAxMCBDIDMxLjQzNyAxMCAzMS4xMzcgMTAuMiAzMS4xMzcgMTAuNSBMIDMwLjkzNyAxMS41IEwgMzAuNjM3IDExLjEgQyAyOS44MzcgOS45IDI4LjAzNyA5LjUgMjYuMjM3IDkuNSBDIDIyLjEzNyA5LjUgMTguNjM3IDEyLjYgMTcuOTM3IDE3IEMgMTcuNTM3IDE5LjIgMTguMDM3IDIxLjMgMTkuMzM3IDIyLjcgQyAyMC40MzcgMjQgMjIuMTM3IDI0LjYgMjQuMDM3IDI0LjYgQyAyNy4zMzcgMjQuNiAyOS4yMzcgMjIuNSAyOS4yMzcgMjIuNSBMIDI5LjAzNyAyMy41IEMgMjguOTM3IDIzLjkgMjkuMjM3IDI0LjMgMjkuNjM3IDI0LjMgTCAzMy4wMzcgMjQuMyBDIDMzLjUzNyAyNC4zIDM0LjAzNyAyMy45IDM0LjEzNyAyMy40IEwgMzYuMTM3IDEwLjYgQyAzNi4yMzcgMTAuNCAzNS44MzcgMTAgMzUuNDM3IDEwIFogTSAzMC4zMzcgMTcuMiBDIDI5LjkzNyAxOS4zIDI4LjMzNyAyMC44IDI2LjEzNyAyMC44IEMgMjUuMDM3IDIwLjggMjQuMjM3IDIwLjUgMjMuNjM3IDE5LjggQyAyMy4wMzcgMTkuMSAyMi44MzcgMTguMiAyMy4wMzcgMTcuMiBDIDIzLjMzNyAxNS4xIDI1LjEzNyAxMy42IDI3LjIzNyAxMy42IEMgMjguMzM3IDEzLjYgMjkuMTM3IDE0IDI5LjczNyAxNC42IEMgMzAuMjM3IDE1LjMgMzAuNDM3IDE2LjIgMzAuMzM3IDE3LjIgWiI+PC9wYXRoPjxwYXRoIGZpbGw9IiMwMDMwODciIGQ9Ik0gNTUuMzM3IDEwIEwgNTEuNjM3IDEwIEMgNTEuMjM3IDEwIDUwLjkzNyAxMC4yIDUwLjczNyAxMC41IEwgNDUuNTM3IDE4LjEgTCA0My4zMzcgMTAuOCBDIDQzLjIzNyAxMC4zIDQyLjczNyAxMCA0Mi4zMzcgMTAgTCAzOC42MzcgMTAgQyAzOC4yMzcgMTAgMzcuODM3IDEwLjQgMzguMDM3IDEwLjkgTCA0Mi4xMzcgMjMgTCAzOC4yMzcgMjguNCBDIDM3LjkzNyAyOC44IDM4LjIzNyAyOS40IDM4LjczNyAyOS40IEwgNDIuNDM3IDI5LjQgQyA0Mi44MzcgMjkuNCA0My4xMzcgMjkuMiA0My4zMzcgMjguOSBMIDU1LjgzNyAxMC45IEMgNTYuMTM3IDEwLjYgNTUuODM3IDEwIDU1LjMzNyAxMCBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA2Ny43MzcgMi44IEwgNTkuOTM3IDIuOCBDIDU5LjQzNyAyLjggNTguOTM3IDMuMiA1OC44MzcgMy43IEwgNTUuNzM3IDIzLjYgQyA1NS42MzcgMjQgNTUuOTM3IDI0LjMgNTYuMzM3IDI0LjMgTCA2MC4zMzcgMjQuMyBDIDYwLjczNyAyNC4zIDYxLjAzNyAyNCA2MS4wMzcgMjMuNyBMIDYxLjkzNyAxOCBDIDYyLjAzNyAxNy41IDYyLjQzNyAxNy4xIDYzLjAzNyAxNy4xIEwgNjUuNTM3IDE3LjEgQyA3MC42MzcgMTcuMSA3My42MzcgMTQuNiA3NC40MzcgOS43IEMgNzQuNzM3IDcuNiA3NC40MzcgNS45IDczLjQzNyA0LjcgQyA3Mi4yMzcgMy41IDcwLjMzNyAyLjggNjcuNzM3IDIuOCBaIE0gNjguNjM3IDEwLjEgQyA2OC4yMzcgMTIuOSA2Ni4wMzcgMTIuOSA2NC4wMzcgMTIuOSBMIDYyLjgzNyAxMi45IEwgNjMuNjM3IDcuNyBDIDYzLjYzNyA3LjQgNjMuOTM3IDcuMiA2NC4yMzcgNy4yIEwgNjQuNzM3IDcuMiBDIDY2LjEzNyA3LjIgNjcuNDM3IDcuMiA2OC4xMzcgOCBDIDY4LjYzNyA4LjQgNjguNzM3IDkuMSA2OC42MzcgMTAuMSBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA5MC45MzcgMTAgTCA4Ny4yMzcgMTAgQyA4Ni45MzcgMTAgODYuNjM3IDEwLjIgODYuNjM3IDEwLjUgTCA4Ni40MzcgMTEuNSBMIDg2LjEzNyAxMS4xIEMgODUuMzM3IDkuOSA4My41MzcgOS41IDgxLjczNyA5LjUgQyA3Ny42MzcgOS41IDc0LjEzNyAxMi42IDczLjQzNyAxNyBDIDczLjAzNyAxOS4yIDczLjUzNyAyMS4zIDc0LjgzNyAyMi43IEMgNzUuOTM3IDI0IDc3LjYzNyAyNC42IDc5LjUzNyAyNC42IEMgODIuODM3IDI0LjYgODQuNzM3IDIyLjUgODQuNzM3IDIyLjUgTCA4NC41MzcgMjMuNSBDIDg0LjQzNyAyMy45IDg0LjczNyAyNC4zIDg1LjEzNyAyNC4zIEwgODguNTM3IDI0LjMgQyA4OS4wMzcgMjQuMyA4OS41MzcgMjMuOSA4OS42MzcgMjMuNCBMIDkxLjYzNyAxMC42IEMgOTEuNjM3IDEwLjQgOTEuMzM3IDEwIDkwLjkzNyAxMCBaIE0gODUuNzM3IDE3LjIgQyA4NS4zMzcgMTkuMyA4My43MzcgMjAuOCA4MS41MzcgMjAuOCBDIDgwLjQzNyAyMC44IDc5LjYzNyAyMC41IDc5LjAzNyAxOS44IEMgNzguNDM3IDE5LjEgNzguMjM3IDE4LjIgNzguNDM3IDE3LjIgQyA3OC43MzcgMTUuMSA4MC41MzcgMTMuNiA4Mi42MzcgMTMuNiBDIDgzLjczNyAxMy42IDg0LjUzNyAxNCA4NS4xMzcgMTQuNiBDIDg1LjczNyAxNS4zIDg1LjkzNyAxNi4yIDg1LjczNyAxNy4yIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDA5Y2RlIiBkPSJNIDk1LjMzNyAzLjMgTCA5Mi4xMzcgMjMuNiBDIDkyLjAzNyAyNCA5Mi4zMzcgMjQuMyA5Mi43MzcgMjQuMyBMIDk1LjkzNyAyNC4zIEMgOTYuNDM3IDI0LjMgOTYuOTM3IDIzLjkgOTcuMDM3IDIzLjQgTCAxMDAuMjM3IDMuNSBDIDEwMC4zMzcgMy4xIDEwMC4wMzcgMi44IDk5LjYzNyAyLjggTCA5Ni4wMzcgMi44IEMgOTUuNjM3IDIuOCA5NS40MzcgMyA5NS4zMzcgMy4zIFoiPjwvcGF0aD48L3N2Zz4",
|
|
2405
2266
|
role: "presentation",
|
|
2406
2267
|
class: "h-[22px]"
|
|
2407
2268
|
};
|
|
2408
|
-
const _sfc_main$
|
|
2269
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
2409
2270
|
__name: "ExpressPaymentMethodButton",
|
|
2410
2271
|
props: {
|
|
2411
2272
|
type: { type: String }
|
|
@@ -2442,14 +2303,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2442
2303
|
emit("click");
|
|
2443
2304
|
}
|
|
2444
2305
|
return (_ctx, _cache) => {
|
|
2445
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2306
|
+
return openBlock(), createBlock(unref(_sfc_main$r), {
|
|
2446
2307
|
size: "lg",
|
|
2447
2308
|
"aria-label": ariaLabel.value,
|
|
2448
|
-
class: normalizeClass([buttonClasses.value, "!block w-full
|
|
2309
|
+
class: normalizeClass([buttonClasses.value, "!block h-11 w-full bg-center bg-no-repeat"]),
|
|
2449
2310
|
onClick: handleClick
|
|
2450
2311
|
}, {
|
|
2451
2312
|
default: withCtx(() => [
|
|
2452
|
-
props.type === "applepay" ? (openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2313
|
+
props.type === "applepay" ? (openBlock(), createElementBlock("svg", _hoisted_1$d, [..._cache[0] || (_cache[0] = [
|
|
2453
2314
|
createElementVNode("svg", {
|
|
2454
2315
|
id: "svg-logo",
|
|
2455
2316
|
x: "0",
|
|
@@ -2477,16 +2338,16 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2477
2338
|
])
|
|
2478
2339
|
])
|
|
2479
2340
|
], -1)
|
|
2480
|
-
])])) : props.type === "paypal" ? (openBlock(), createElementBlock("img", _hoisted_2$
|
|
2341
|
+
])])) : props.type === "paypal" ? (openBlock(), createElementBlock("img", _hoisted_2$5)) : createCommentVNode("", true)
|
|
2481
2342
|
]),
|
|
2482
2343
|
_: 1
|
|
2483
2344
|
}, 8, ["aria-label", "class"]);
|
|
2484
2345
|
};
|
|
2485
2346
|
}
|
|
2486
2347
|
});
|
|
2487
|
-
const _hoisted_1$
|
|
2348
|
+
const _hoisted_1$c = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" };
|
|
2488
2349
|
const PAYMENT_GATEWAY_VARIANT_ADYEN = "ADYEN";
|
|
2489
|
-
const _sfc_main$
|
|
2350
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
2490
2351
|
__name: "ExpressPaymentMethodApplePay",
|
|
2491
2352
|
props: {
|
|
2492
2353
|
onBillingInformationChange: { type: Function },
|
|
@@ -2721,12 +2582,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2721
2582
|
});
|
|
2722
2583
|
return (_ctx, _cache) => {
|
|
2723
2584
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2724
|
-
__props.isVisible ? (openBlock(), createBlock(_sfc_main$
|
|
2585
|
+
__props.isVisible ? (openBlock(), createBlock(_sfc_main$e, {
|
|
2725
2586
|
key: 0,
|
|
2726
2587
|
type: "applepay",
|
|
2727
2588
|
onClick: handleClick
|
|
2728
2589
|
})) : createCommentVNode("", true),
|
|
2729
|
-
createElementVNode("div", _hoisted_1$
|
|
2590
|
+
createElementVNode("div", _hoisted_1$c, [
|
|
2730
2591
|
createElementVNode("div", {
|
|
2731
2592
|
ref_key: "applePayButtonRef",
|
|
2732
2593
|
ref: applePayButtonRef
|
|
@@ -2736,8 +2597,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2736
2597
|
};
|
|
2737
2598
|
}
|
|
2738
2599
|
});
|
|
2739
|
-
const _hoisted_1$
|
|
2740
|
-
const _sfc_main$
|
|
2600
|
+
const _hoisted_1$b = { class: "relative overflow-hidden" };
|
|
2601
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
2741
2602
|
__name: "ExpressPaymentMethodPaypal",
|
|
2742
2603
|
props: {
|
|
2743
2604
|
amount: { type: Object },
|
|
@@ -2796,8 +2657,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2796
2657
|
void initPaypal();
|
|
2797
2658
|
});
|
|
2798
2659
|
return (_ctx, _cache) => {
|
|
2799
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2800
|
-
__props.isVisible ? (openBlock(), createBlock(_sfc_main$
|
|
2660
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
2661
|
+
__props.isVisible ? (openBlock(), createBlock(_sfc_main$e, {
|
|
2801
2662
|
key: 0,
|
|
2802
2663
|
type: "paypal",
|
|
2803
2664
|
class: "w-full"
|
|
@@ -2811,8 +2672,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2811
2672
|
};
|
|
2812
2673
|
}
|
|
2813
2674
|
});
|
|
2814
|
-
const _hoisted_1$
|
|
2815
|
-
const _sfc_main$
|
|
2675
|
+
const _hoisted_1$a = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" };
|
|
2676
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
2816
2677
|
__name: "ExpressPaymentMethodGooglePay",
|
|
2817
2678
|
props: {
|
|
2818
2679
|
amount: { type: Object },
|
|
@@ -2876,12 +2737,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2876
2737
|
});
|
|
2877
2738
|
return (_ctx, _cache) => {
|
|
2878
2739
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2879
|
-
__props.isVisible ? (openBlock(), createBlock(_sfc_main$
|
|
2740
|
+
__props.isVisible ? (openBlock(), createBlock(_sfc_main$e, {
|
|
2880
2741
|
key: 0,
|
|
2881
2742
|
type: "googlepay",
|
|
2882
2743
|
onClick: handleClick
|
|
2883
2744
|
})) : createCommentVNode("", true),
|
|
2884
|
-
createElementVNode("div", _hoisted_1$
|
|
2745
|
+
createElementVNode("div", _hoisted_1$a, [
|
|
2885
2746
|
createElementVNode("div", {
|
|
2886
2747
|
ref_key: "googlePayButtonRef",
|
|
2887
2748
|
ref: googlePayButtonRef
|
|
@@ -2891,15 +2752,15 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2891
2752
|
};
|
|
2892
2753
|
}
|
|
2893
2754
|
});
|
|
2894
|
-
const _hoisted_1$
|
|
2755
|
+
const _hoisted_1$9 = {
|
|
2895
2756
|
key: 0,
|
|
2896
2757
|
class: "mt-4n"
|
|
2897
2758
|
};
|
|
2898
|
-
const _hoisted_2$
|
|
2759
|
+
const _hoisted_2$4 = { class: "mb-2" };
|
|
2899
2760
|
const _hoisted_3$3 = { class: "grid grid-cols-6 gap-1 md:gap-2" };
|
|
2900
2761
|
const _hoisted_4$3 = { class: "mt-4 h-4" };
|
|
2901
2762
|
const DEFAULT_EXPRESS_PAYMENT_BUTTON_COUNT = 2;
|
|
2902
|
-
const _sfc_main$
|
|
2763
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
2903
2764
|
__name: "ExpressPaymentMethods",
|
|
2904
2765
|
props: {
|
|
2905
2766
|
amount: { type: Object },
|
|
@@ -2979,12 +2840,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2979
2840
|
return (paymentMethodOptionsResponseEntryIncludingApplePay.value ? 1 : 0) + (paymentMethodOptionsResponseEntryIncludingGooglePay.value ? 1 : 0) + (paymentMethodOptionsResponseEntryIncludingPayPal.value ? 1 : 0);
|
|
2980
2841
|
});
|
|
2981
2842
|
return (_ctx, _cache) => {
|
|
2982
|
-
return hasPaymentMethodOptions.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2983
|
-
createElementVNode("div", _hoisted_2$
|
|
2984
|
-
!isReady.value ? (openBlock(), createBlock(_sfc_main$
|
|
2843
|
+
return hasPaymentMethodOptions.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
2844
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
2845
|
+
!isReady.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
2985
2846
|
key: 0,
|
|
2986
2847
|
variant: "title"
|
|
2987
|
-
})) : (openBlock(), createBlock(unref(_sfc_main$
|
|
2848
|
+
})) : (openBlock(), createBlock(unref(_sfc_main$n), {
|
|
2988
2849
|
key: 1,
|
|
2989
2850
|
variant: "heading-3",
|
|
2990
2851
|
tag: "h2"
|
|
@@ -3001,8 +2862,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3001
2862
|
]),
|
|
3002
2863
|
createElementVNode("div", _hoisted_3$3, [
|
|
3003
2864
|
!isReady.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3004
|
-
createVNode(_sfc_main$
|
|
3005
|
-
createVNode(_sfc_main$
|
|
2865
|
+
createVNode(_sfc_main$E, { class: "col-span-3 h-11" }),
|
|
2866
|
+
createVNode(_sfc_main$E, { class: "col-span-3 h-11" })
|
|
3006
2867
|
], 64)) : createCommentVNode("", true),
|
|
3007
2868
|
createElementVNode("div", {
|
|
3008
2869
|
class: normalizeClass(["col-span-3 md:col-span-2", {
|
|
@@ -3012,7 +2873,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3012
2873
|
"!col-span-6 md:!col-span-2": expressPaymentButtonCount.value === 3
|
|
3013
2874
|
}])
|
|
3014
2875
|
}, [
|
|
3015
|
-
paymentMethodOptionsResponseEntryIncludingApplePay.value ? (openBlock(), createBlock(_sfc_main$
|
|
2876
|
+
paymentMethodOptionsResponseEntryIncludingApplePay.value ? (openBlock(), createBlock(_sfc_main$d, {
|
|
3016
2877
|
key: 0,
|
|
3017
2878
|
amount: __props.amount,
|
|
3018
2879
|
"billing-information": __props.billingInformation,
|
|
@@ -3032,7 +2893,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3032
2893
|
"md:!col-span-3": expressPaymentButtonCount.value === 2
|
|
3033
2894
|
}])
|
|
3034
2895
|
}, [
|
|
3035
|
-
paymentMethodOptionsResponseEntryIncludingGooglePay.value ? (openBlock(), createBlock(_sfc_main$
|
|
2896
|
+
paymentMethodOptionsResponseEntryIncludingGooglePay.value ? (openBlock(), createBlock(_sfc_main$b, {
|
|
3036
2897
|
key: 0,
|
|
3037
2898
|
amount: __props.amount,
|
|
3038
2899
|
"billing-information": __props.billingInformation,
|
|
@@ -3050,7 +2911,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3050
2911
|
"md:!col-span-3": expressPaymentButtonCount.value === 2
|
|
3051
2912
|
}])
|
|
3052
2913
|
}, [
|
|
3053
|
-
paymentMethodOptionsResponseEntryIncludingPayPal.value ? (openBlock(), createBlock(_sfc_main$
|
|
2914
|
+
paymentMethodOptionsResponseEntryIncludingPayPal.value ? (openBlock(), createBlock(_sfc_main$c, {
|
|
3054
2915
|
key: 0,
|
|
3055
2916
|
amount: __props.amount,
|
|
3056
2917
|
"billing-information": __props.billingInformation,
|
|
@@ -3063,10 +2924,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3063
2924
|
], 2)
|
|
3064
2925
|
]),
|
|
3065
2926
|
createElementVNode("div", _hoisted_4$3, [
|
|
3066
|
-
!isReady.value ? (openBlock(), createBlock(_sfc_main$
|
|
2927
|
+
!isReady.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
3067
2928
|
key: 0,
|
|
3068
2929
|
variant: "divider-text"
|
|
3069
|
-
})) : (openBlock(), createBlock(unref(_sfc_main$
|
|
2930
|
+
})) : (openBlock(), createBlock(unref(_sfc_main$F), {
|
|
3070
2931
|
key: 1,
|
|
3071
2932
|
text: unref($t)({
|
|
3072
2933
|
defaultMessage: "Or",
|
|
@@ -3080,8 +2941,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3080
2941
|
};
|
|
3081
2942
|
}
|
|
3082
2943
|
});
|
|
3083
|
-
const _hoisted_1$
|
|
3084
|
-
const _sfc_main$
|
|
2944
|
+
const _hoisted_1$8 = { class: "grid grid-cols-2 gap-2" };
|
|
2945
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
3085
2946
|
__name: "TieredTableRow",
|
|
3086
2947
|
props: {
|
|
3087
2948
|
band: { type: Object },
|
|
@@ -3110,8 +2971,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
3110
2971
|
return props.band.tier_top_bound.number;
|
|
3111
2972
|
});
|
|
3112
2973
|
return (_ctx, _cache) => {
|
|
3113
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3114
|
-
createVNode(unref(_sfc_main$
|
|
2974
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
2975
|
+
createVNode(unref(_sfc_main$n), {
|
|
3115
2976
|
variant: "body-xs",
|
|
3116
2977
|
shade: "lighter",
|
|
3117
2978
|
tag: "div"
|
|
@@ -3144,7 +3005,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
3144
3005
|
]),
|
|
3145
3006
|
_: 1
|
|
3146
3007
|
}),
|
|
3147
|
-
createVNode(unref(_sfc_main$
|
|
3008
|
+
createVNode(unref(_sfc_main$n), {
|
|
3148
3009
|
variant: "body-xs",
|
|
3149
3010
|
shade: "lighter",
|
|
3150
3011
|
tag: "div",
|
|
@@ -3172,8 +3033,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
3172
3033
|
};
|
|
3173
3034
|
}
|
|
3174
3035
|
});
|
|
3175
|
-
const _hoisted_1$
|
|
3176
|
-
const _sfc_main$
|
|
3036
|
+
const _hoisted_1$7 = { class: "grid grid-cols-1 gap-0.5 pt-1.5" };
|
|
3037
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
3177
3038
|
__name: "TieredTable",
|
|
3178
3039
|
props: {
|
|
3179
3040
|
bands: { type: Array },
|
|
@@ -3181,9 +3042,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
3181
3042
|
},
|
|
3182
3043
|
setup(__props) {
|
|
3183
3044
|
return (_ctx, _cache) => {
|
|
3184
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3045
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
3185
3046
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.bands, (band, index) => {
|
|
3186
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3047
|
+
return openBlock(), createBlock(_sfc_main$9, {
|
|
3187
3048
|
key: index,
|
|
3188
3049
|
band,
|
|
3189
3050
|
"is-first": index === 0,
|
|
@@ -3231,18 +3092,22 @@ function useSeatBasedPricing({
|
|
|
3231
3092
|
description: productItem == null ? void 0 : productItem.description
|
|
3232
3093
|
},
|
|
3233
3094
|
pricing: {
|
|
3234
|
-
...((_c = config == null ? void 0 : config.details) == null ? void 0 : _c.pricing_type) === "FLAT" && {
|
|
3235
|
-
|
|
3095
|
+
...((_c = config == null ? void 0 : config.details) == null ? void 0 : _c.pricing_type) === "FLAT" && {
|
|
3096
|
+
amount: (_f = (_e = (_d = config.details) == null ? void 0 : _d.bands) == null ? void 0 : _e[0]) == null ? void 0 : _f.amount
|
|
3097
|
+
},
|
|
3098
|
+
...((_g = config == null ? void 0 : config.details) == null ? void 0 : _g.pricing_type) === "TIERED" && {
|
|
3099
|
+
tiered: { bands: (_h = config.details) == null ? void 0 : _h.bands }
|
|
3100
|
+
}
|
|
3236
3101
|
}
|
|
3237
3102
|
};
|
|
3238
3103
|
});
|
|
3239
3104
|
}
|
|
3240
|
-
const _hoisted_1$
|
|
3241
|
-
const _hoisted_2$
|
|
3105
|
+
const _hoisted_1$6 = { class: "flex flex-row-reverse gap-4 md:flex-row" };
|
|
3106
|
+
const _hoisted_2$3 = { class: "w-24 shrink-0 justify-start md:w-32" };
|
|
3242
3107
|
const _hoisted_3$2 = ["tabindex"];
|
|
3243
3108
|
const _hoisted_4$2 = { key: 0 };
|
|
3244
3109
|
const _hoisted_5$2 = { key: 0 };
|
|
3245
|
-
const _sfc_main$
|
|
3110
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
3246
3111
|
__name: "SeatsEditorItem",
|
|
3247
3112
|
props: /* @__PURE__ */ mergeModels({
|
|
3248
3113
|
modelValue: { type: Object },
|
|
@@ -3279,9 +3144,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
3279
3144
|
return (_ctx, _cache) => {
|
|
3280
3145
|
var _a, _b, _c;
|
|
3281
3146
|
return openBlock(), createElementBlock("div", null, [
|
|
3282
|
-
createElementVNode("div", _hoisted_1$
|
|
3283
|
-
createElementVNode("div", _hoisted_2$
|
|
3284
|
-
createVNode(unref(_sfc_main$
|
|
3147
|
+
createElementVNode("div", _hoisted_1$6, [
|
|
3148
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
3149
|
+
createVNode(unref(_sfc_main$G), {
|
|
3285
3150
|
modelValue: seatsNumber.value,
|
|
3286
3151
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => seatsNumber.value = $event),
|
|
3287
3152
|
size: "sm",
|
|
@@ -3289,11 +3154,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
3289
3154
|
}, null, 8, ["modelValue", "min"])
|
|
3290
3155
|
]),
|
|
3291
3156
|
createElementVNode("div", {
|
|
3292
|
-
class: normalizeClass(["flex flex-col
|
|
3157
|
+
class: normalizeClass(["flex grow flex-col", { "hover:cursor-pointer": isCollapsible.value }]),
|
|
3293
3158
|
tabindex: isCollapsible.value ? 0 : void 0,
|
|
3294
3159
|
onClick: _cache[1] || (_cache[1] = ($event) => isCollapsible.value ? isExpanded.value = !isExpanded.value : void 0)
|
|
3295
3160
|
}, [
|
|
3296
|
-
createVNode(unref(_sfc_main$
|
|
3161
|
+
createVNode(unref(_sfc_main$n), {
|
|
3297
3162
|
tag: "span",
|
|
3298
3163
|
variant: "body-sm",
|
|
3299
3164
|
weight: "semibold"
|
|
@@ -3307,7 +3172,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
3307
3172
|
]),
|
|
3308
3173
|
_: 1
|
|
3309
3174
|
}),
|
|
3310
|
-
unref(seats).pricing.amount ? (openBlock(), createBlock(unref(_sfc_main$
|
|
3175
|
+
unref(seats).pricing.amount ? (openBlock(), createBlock(unref(_sfc_main$n), {
|
|
3311
3176
|
key: 0,
|
|
3312
3177
|
tag: "span",
|
|
3313
3178
|
variant: "body-xs",
|
|
@@ -3330,7 +3195,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
3330
3195
|
)), 1)
|
|
3331
3196
|
]),
|
|
3332
3197
|
_: 1
|
|
3333
|
-
})) : unref(seats).pricing.tiered ? (openBlock(), createBlock(unref(_sfc_main$
|
|
3198
|
+
})) : unref(seats).pricing.tiered ? (openBlock(), createBlock(unref(_sfc_main$n), {
|
|
3334
3199
|
key: 1,
|
|
3335
3200
|
tag: "span",
|
|
3336
3201
|
variant: "body-xs",
|
|
@@ -3342,10 +3207,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
3342
3207
|
id: "seats.tiered_pricing_label",
|
|
3343
3208
|
description: "The label indicating tiered pricing structure for seats"
|
|
3344
3209
|
})) + " ", 1),
|
|
3345
|
-
createVNode(unref(_sfc_main$
|
|
3210
|
+
createVNode(unref(_sfc_main$H), {
|
|
3346
3211
|
icon: "keyboard_arrow_down",
|
|
3347
3212
|
size: "xs",
|
|
3348
|
-
class: normalizeClass(["absolute transition ease-in-out
|
|
3213
|
+
class: normalizeClass(["absolute text-gray-400 transition ease-in-out", { "rotate-0": !isExpanded.value, "rotate-180": isExpanded.value }])
|
|
3349
3214
|
}, null, 8, ["class"])
|
|
3350
3215
|
]),
|
|
3351
3216
|
_: 1
|
|
@@ -3353,10 +3218,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
3353
3218
|
], 10, _hoisted_3$2)
|
|
3354
3219
|
]),
|
|
3355
3220
|
((_c = (_b = unref(seats).pricing) == null ? void 0 : _b.tiered) == null ? void 0 : _c.bands) ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
3356
|
-
createVNode(unref(_sfc_main$
|
|
3221
|
+
createVNode(unref(_sfc_main$s), { "is-open": isExpanded.value }, {
|
|
3357
3222
|
default: withCtx(() => [
|
|
3358
3223
|
isExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
3359
|
-
createVNode(_sfc_main$
|
|
3224
|
+
createVNode(_sfc_main$8, {
|
|
3360
3225
|
bands: unref(seats).pricing.tiered.bands,
|
|
3361
3226
|
period: unref(seats).billing.period
|
|
3362
3227
|
}, null, 8, ["bands", "period"])
|
|
@@ -3369,7 +3234,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
3369
3234
|
};
|
|
3370
3235
|
}
|
|
3371
3236
|
});
|
|
3372
|
-
const
|
|
3237
|
+
const _hoisted_1$5 = {
|
|
3238
|
+
key: 0,
|
|
3239
|
+
class: "grid grid-cols-1 gap-1"
|
|
3240
|
+
};
|
|
3241
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
3373
3242
|
__name: "SeatsEditor",
|
|
3374
3243
|
props: /* @__PURE__ */ mergeModels({
|
|
3375
3244
|
modelValue: { type: Array },
|
|
@@ -3391,64 +3260,31 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
3391
3260
|
}
|
|
3392
3261
|
});
|
|
3393
3262
|
return (_ctx, _cache) => {
|
|
3394
|
-
return openBlock(
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
});
|
|
3414
|
-
const _hoisted_1$6 = { class: "flex gap-4 border-l-2 border-primary-600 px-2" };
|
|
3415
|
-
const _hoisted_2$4 = { class: "grow" };
|
|
3416
|
-
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
3417
|
-
__name: "PricingGroupTitle",
|
|
3418
|
-
setup(__props) {
|
|
3419
|
-
return (_ctx, _cache) => {
|
|
3420
|
-
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
3421
|
-
createElementVNode("div", _hoisted_2$4, [
|
|
3422
|
-
createVNode(unref(_sfc_main$p), {
|
|
3423
|
-
tag: "span",
|
|
3424
|
-
variant: "body-sm",
|
|
3425
|
-
weight: "semibold"
|
|
3426
|
-
}, {
|
|
3427
|
-
default: withCtx(() => [
|
|
3428
|
-
renderSlot(_ctx.$slots, "title")
|
|
3429
|
-
]),
|
|
3430
|
-
_: 3
|
|
3431
|
-
})
|
|
3432
|
-
]),
|
|
3433
|
-
createElementVNode("div", null, [
|
|
3434
|
-
createVNode(unref(_sfc_main$p), {
|
|
3435
|
-
tag: "span",
|
|
3436
|
-
variant: "body-xs",
|
|
3437
|
-
shade: "lighter"
|
|
3438
|
-
}, {
|
|
3439
|
-
default: withCtx(() => [
|
|
3440
|
-
renderSlot(_ctx.$slots, "description")
|
|
3441
|
-
]),
|
|
3442
|
-
_: 3
|
|
3443
|
-
})
|
|
3444
|
-
])
|
|
3445
|
-
]);
|
|
3263
|
+
return __props.modelValue.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
3264
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.modelValue, (item, index) => {
|
|
3265
|
+
return openBlock(), createBlock(unref(_sfc_main$o), { key: index }, {
|
|
3266
|
+
default: withCtx(() => {
|
|
3267
|
+
var _a;
|
|
3268
|
+
return [
|
|
3269
|
+
item.pricing_item_config_id ? (openBlock(), createBlock(_sfc_main$7, {
|
|
3270
|
+
key: item.pricing_item_config_id,
|
|
3271
|
+
modelValue: itemModel(index).value,
|
|
3272
|
+
"onUpdate:modelValue": ($event) => itemModel(index).value = $event,
|
|
3273
|
+
"default-value": (_a = __props.initialSeatsValues) == null ? void 0 : _a[index],
|
|
3274
|
+
pricings: __props.pricings
|
|
3275
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "pricings"])) : createCommentVNode("", true)
|
|
3276
|
+
];
|
|
3277
|
+
}),
|
|
3278
|
+
_: 2
|
|
3279
|
+
}, 1024);
|
|
3280
|
+
}), 128))
|
|
3281
|
+
])) : createCommentVNode("", true);
|
|
3446
3282
|
};
|
|
3447
3283
|
}
|
|
3448
3284
|
});
|
|
3449
|
-
const _hoisted_1$
|
|
3450
|
-
const _hoisted_2$
|
|
3451
|
-
const _sfc_main$
|
|
3285
|
+
const _hoisted_1$4 = { class: "p-1" };
|
|
3286
|
+
const _hoisted_2$2 = { class: "grid grid-cols-1 gap-1 pt-1" };
|
|
3287
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
3452
3288
|
__name: "AddonSingleEditor",
|
|
3453
3289
|
props: /* @__PURE__ */ mergeModels({
|
|
3454
3290
|
constraint: { type: String },
|
|
@@ -3507,10 +3343,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3507
3343
|
}
|
|
3508
3344
|
};
|
|
3509
3345
|
return (_ctx, _cache) => {
|
|
3510
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3346
|
+
return openBlock(), createBlock(unref(_sfc_main$o), { "no-spacing": "" }, {
|
|
3511
3347
|
default: withCtx(() => [
|
|
3512
|
-
createElementVNode("div", _hoisted_1$
|
|
3513
|
-
createVNode(_sfc_main$
|
|
3348
|
+
createElementVNode("div", _hoisted_1$4, [
|
|
3349
|
+
createVNode(_sfc_main$I, null, {
|
|
3514
3350
|
title: withCtx(() => [
|
|
3515
3351
|
createTextVNode(toDisplayString(__props.groupName), 1)
|
|
3516
3352
|
]),
|
|
@@ -3519,9 +3355,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3519
3355
|
]),
|
|
3520
3356
|
_: 1
|
|
3521
3357
|
}),
|
|
3522
|
-
createElementVNode("div", _hoisted_2$
|
|
3358
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
3523
3359
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.pricings, (pricing) => {
|
|
3524
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3360
|
+
return openBlock(), createBlock(unref(_sfc_main$o), {
|
|
3525
3361
|
key: pricing.id,
|
|
3526
3362
|
"content-background": "none",
|
|
3527
3363
|
class: normalizeClass({ "!bg-white": isSelected(pricing.id) })
|
|
@@ -3529,7 +3365,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3529
3365
|
default: withCtx(() => {
|
|
3530
3366
|
var _a, _b;
|
|
3531
3367
|
return [
|
|
3532
|
-
createVNode(_sfc_main$
|
|
3368
|
+
createVNode(_sfc_main$g, {
|
|
3533
3369
|
name: unref(getNameFromPricing)(pricing) ?? "",
|
|
3534
3370
|
description: ((_a = pricing.items) == null ? void 0 : _a[0]) ? unref(renderPricingForPricingItem)({
|
|
3535
3371
|
pricingItem: (_b = pricing.items) == null ? void 0 : _b[0]
|
|
@@ -3540,7 +3376,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3540
3376
|
})
|
|
3541
3377
|
}, {
|
|
3542
3378
|
default: withCtx(() => [
|
|
3543
|
-
createVNode(unref(_sfc_main$
|
|
3379
|
+
createVNode(unref(_sfc_main$t), {
|
|
3544
3380
|
"model-value": isSelected(pricing.id),
|
|
3545
3381
|
"onUpdate:modelValue": ($event) => handleToggle(pricing.id)
|
|
3546
3382
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
@@ -3560,8 +3396,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3560
3396
|
};
|
|
3561
3397
|
}
|
|
3562
3398
|
});
|
|
3563
|
-
const _hoisted_1$
|
|
3564
|
-
const _sfc_main$
|
|
3399
|
+
const _hoisted_1$3 = { class: "grid grid-cols-1 gap-1" };
|
|
3400
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
3565
3401
|
__name: "AddonMultipleEditor",
|
|
3566
3402
|
props: /* @__PURE__ */ mergeModels({
|
|
3567
3403
|
modelValue: { type: Array },
|
|
@@ -3593,7 +3429,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3593
3429
|
}
|
|
3594
3430
|
};
|
|
3595
3431
|
return (_ctx, _cache) => {
|
|
3596
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3432
|
+
return openBlock(), createBlock(unref(_sfc_main$o), {
|
|
3597
3433
|
"no-spacing": "",
|
|
3598
3434
|
"no-border": !__props.groupName,
|
|
3599
3435
|
"content-background": __props.groupName ? "gray" : "none"
|
|
@@ -3602,7 +3438,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3602
3438
|
createElementVNode("div", {
|
|
3603
3439
|
class: normalizeClass(["grid grid-cols-1 gap-1", { "p-1": __props.groupName }])
|
|
3604
3440
|
}, [
|
|
3605
|
-
__props.groupName ? (openBlock(), createBlock(_sfc_main$
|
|
3441
|
+
__props.groupName ? (openBlock(), createBlock(_sfc_main$I, { key: 0 }, {
|
|
3606
3442
|
title: withCtx(() => [
|
|
3607
3443
|
createTextVNode(toDisplayString(__props.groupName), 1)
|
|
3608
3444
|
]),
|
|
@@ -3615,9 +3451,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3615
3451
|
]),
|
|
3616
3452
|
_: 1
|
|
3617
3453
|
})) : createCommentVNode("", true),
|
|
3618
|
-
createElementVNode("div", _hoisted_1$
|
|
3454
|
+
createElementVNode("div", _hoisted_1$3, [
|
|
3619
3455
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.pricings, (pricing) => {
|
|
3620
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3456
|
+
return openBlock(), createBlock(unref(_sfc_main$o), {
|
|
3621
3457
|
key: pricing.id,
|
|
3622
3458
|
"content-background": __props.groupName || isSelected(pricing.id) ? "none" : "gray",
|
|
3623
3459
|
class: normalizeClass({ "!bg-white": isSelected(pricing.id) })
|
|
@@ -3625,7 +3461,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3625
3461
|
default: withCtx(() => {
|
|
3626
3462
|
var _a, _b;
|
|
3627
3463
|
return [
|
|
3628
|
-
createVNode(_sfc_main$
|
|
3464
|
+
createVNode(_sfc_main$g, {
|
|
3629
3465
|
name: unref(getNameFromPricing)(pricing) ?? "",
|
|
3630
3466
|
description: ((_a = pricing.items) == null ? void 0 : _a[0]) ? unref(renderPricingForPricingItem)({
|
|
3631
3467
|
pricingItem: (_b = pricing.items) == null ? void 0 : _b[0]
|
|
@@ -3636,7 +3472,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3636
3472
|
})
|
|
3637
3473
|
}, {
|
|
3638
3474
|
default: withCtx(() => [
|
|
3639
|
-
isSelected(pricing.id) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
3475
|
+
isSelected(pricing.id) ? (openBlock(), createBlock(unref(_sfc_main$r), {
|
|
3640
3476
|
key: 0,
|
|
3641
3477
|
color: "gray",
|
|
3642
3478
|
variant: "outline",
|
|
@@ -3644,7 +3480,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3644
3480
|
size: "sm",
|
|
3645
3481
|
"icon-prefix": "remove_shopping_cart",
|
|
3646
3482
|
onClick: ($event) => handleToggle(pricing.id)
|
|
3647
|
-
}, null, 8, ["onClick"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
3483
|
+
}, null, 8, ["onClick"])) : (openBlock(), createBlock(unref(_sfc_main$r), {
|
|
3648
3484
|
key: 1,
|
|
3649
3485
|
color: "primary",
|
|
3650
3486
|
"icon-prefix": "add",
|
|
@@ -3676,109 +3512,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3676
3512
|
};
|
|
3677
3513
|
}
|
|
3678
3514
|
});
|
|
3679
|
-
const _hoisted_1$3 = { class: "p-1" };
|
|
3680
|
-
const _hoisted_2$2 = { class: "pt-1" };
|
|
3681
|
-
const SHOW_RADIO_GROUP_MAX_OPTIONS = 3;
|
|
3682
|
-
const SHOW_SELECT_MAX_OPTIONS = 6;
|
|
3683
|
-
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
3684
|
-
__name: "PricingGroupSingleEditor",
|
|
3685
|
-
props: /* @__PURE__ */ mergeModels({
|
|
3686
|
-
modelValue: { type: Array },
|
|
3687
|
-
pricings: { type: Array },
|
|
3688
|
-
billingPeriod: { type: Object },
|
|
3689
|
-
currency: { type: String },
|
|
3690
|
-
groupName: { type: String }
|
|
3691
|
-
}, {
|
|
3692
|
-
"modelValue": {
|
|
3693
|
-
required: true
|
|
3694
|
-
},
|
|
3695
|
-
"modelModifiers": {}
|
|
3696
|
-
}),
|
|
3697
|
-
emits: ["update:modelValue"],
|
|
3698
|
-
setup(__props) {
|
|
3699
|
-
const props = __props;
|
|
3700
|
-
const model = useModel(__props, "modelValue");
|
|
3701
|
-
const { $t } = useIntl();
|
|
3702
|
-
const { renderPricingForPricingItem } = usePricingItem({
|
|
3703
|
-
currency: toRef(props, "currency"),
|
|
3704
|
-
billingPeriod: toRef(props, "billingPeriod")
|
|
3705
|
-
});
|
|
3706
|
-
const { isMobileViewport } = useViewport();
|
|
3707
|
-
const groupPricingIds = computed(() => props.pricings.map((pricing) => pricing.id));
|
|
3708
|
-
const singleModelValue = computed({
|
|
3709
|
-
get: () => {
|
|
3710
|
-
return model.value.find((id) => groupPricingIds.value.includes(id)) ?? void 0;
|
|
3711
|
-
},
|
|
3712
|
-
set: (value) => {
|
|
3713
|
-
const filteredPricingIds = model.value.filter((id) => !groupPricingIds.value.includes(id));
|
|
3714
|
-
model.value = value ? [...filteredPricingIds, value] : filteredPricingIds;
|
|
3715
|
-
}
|
|
3716
|
-
});
|
|
3717
|
-
const options = computed(() => {
|
|
3718
|
-
return props.pricings.map((pricing) => {
|
|
3719
|
-
var _a;
|
|
3720
|
-
const pricingItem = (_a = pricing.items) == null ? void 0 : _a[0];
|
|
3721
|
-
return {
|
|
3722
|
-
label: getNameFromPricing(pricing) ?? "",
|
|
3723
|
-
value: pricing.id,
|
|
3724
|
-
description: pricingItem ? renderPricingForPricingItem({ pricingItem }) : $t({
|
|
3725
|
-
defaultMessage: "Unsupported pricing",
|
|
3726
|
-
id: "pricing_item_pricing.unsupported_pricing_error",
|
|
3727
|
-
description: "Text displayed when the pricing item pricing is unsupported"
|
|
3728
|
-
})
|
|
3729
|
-
};
|
|
3730
|
-
});
|
|
3731
|
-
});
|
|
3732
|
-
const getRadioGroupOptions = () => {
|
|
3733
|
-
return options.value.slice(0, SHOW_RADIO_GROUP_MAX_OPTIONS);
|
|
3734
|
-
};
|
|
3735
|
-
const getSelectOptions = () => {
|
|
3736
|
-
return options.value.map(({ value, label, description: subLabel }) => ({
|
|
3737
|
-
label,
|
|
3738
|
-
subLabel,
|
|
3739
|
-
value
|
|
3740
|
-
}));
|
|
3741
|
-
};
|
|
3742
|
-
return (_ctx, _cache) => {
|
|
3743
|
-
return openBlock(), createBlock(unref(_sfc_main$q), { "no-spacing": "" }, {
|
|
3744
|
-
default: withCtx(() => [
|
|
3745
|
-
createElementVNode("div", _hoisted_1$3, [
|
|
3746
|
-
createVNode(_sfc_main$7, null, {
|
|
3747
|
-
title: withCtx(() => [
|
|
3748
|
-
createTextVNode(toDisplayString(__props.groupName), 1)
|
|
3749
|
-
]),
|
|
3750
|
-
_: 1
|
|
3751
|
-
}),
|
|
3752
|
-
createElementVNode("div", _hoisted_2$2, [
|
|
3753
|
-
options.value.length <= SHOW_RADIO_GROUP_MAX_OPTIONS ? (openBlock(), createBlock(unref(_sfc_main$L), {
|
|
3754
|
-
key: 0,
|
|
3755
|
-
modelValue: singleModelValue.value,
|
|
3756
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => singleModelValue.value = $event),
|
|
3757
|
-
options: getRadioGroupOptions(),
|
|
3758
|
-
direction: unref(isMobileViewport) ? "column" : "row",
|
|
3759
|
-
"show-radio": false
|
|
3760
|
-
}, null, 8, ["modelValue", "options", "direction"])) : options.value.length <= SHOW_SELECT_MAX_OPTIONS ? (openBlock(), createBlock(unref(_sfc_main$E), {
|
|
3761
|
-
key: 1,
|
|
3762
|
-
"single-model-value": singleModelValue.value,
|
|
3763
|
-
"onUpdate:singleModelValue": _cache[1] || (_cache[1] = ($event) => singleModelValue.value = $event),
|
|
3764
|
-
options: getSelectOptions(),
|
|
3765
|
-
size: "xl",
|
|
3766
|
-
"show-sub-label-in-input": ""
|
|
3767
|
-
}, null, 8, ["single-model-value", "options"])) : (openBlock(), createBlock(unref(_sfc_main$M), {
|
|
3768
|
-
key: 2,
|
|
3769
|
-
modelValue: singleModelValue.value,
|
|
3770
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => singleModelValue.value = $event),
|
|
3771
|
-
options: options.value,
|
|
3772
|
-
name: `pricing-group-range-input-${__props.groupName}`
|
|
3773
|
-
}, null, 8, ["modelValue", "options", "name"]))
|
|
3774
|
-
])
|
|
3775
|
-
])
|
|
3776
|
-
]),
|
|
3777
|
-
_: 1
|
|
3778
|
-
});
|
|
3779
|
-
};
|
|
3780
|
-
}
|
|
3781
|
-
});
|
|
3782
3515
|
function getAllPricingsFromPricingPlanVersion(pricingPlanVersion) {
|
|
3783
3516
|
var _a;
|
|
3784
3517
|
const pricings = ((_a = pricingPlanVersion.pricing_categories) == null ? void 0 : _a.flatMap((category) => category.pricings ?? [])) ?? [];
|
|
@@ -3825,7 +3558,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3825
3558
|
() => getPricingGroupsFromExtendedPricingPlanSubscription(props.subscription)
|
|
3826
3559
|
);
|
|
3827
3560
|
return (_ctx, _cache) => {
|
|
3828
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3561
|
+
return openBlock(), createBlock(unref(_sfc_main$o), {
|
|
3829
3562
|
class: "sv-plan-customization",
|
|
3830
3563
|
title: unref($t)({
|
|
3831
3564
|
defaultMessage: "Customize plan",
|
|
@@ -3838,7 +3571,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3838
3571
|
}, {
|
|
3839
3572
|
default: withCtx(() => [
|
|
3840
3573
|
createElementVNode("div", _hoisted_1$2, [
|
|
3841
|
-
createVNode(_sfc_main$
|
|
3574
|
+
createVNode(_sfc_main$6, {
|
|
3842
3575
|
modelValue: seatsModel.value,
|
|
3843
3576
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => seatsModel.value = $event),
|
|
3844
3577
|
class: "sv-plan-customization__seats",
|
|
@@ -3849,7 +3582,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3849
3582
|
return openBlock(), createElementBlock(Fragment, {
|
|
3850
3583
|
key: pricingGroup.id
|
|
3851
3584
|
}, [
|
|
3852
|
-
pricingGroup.product_type === "DEFAULT" && pricingGroup.selection_constraint === "EXACTLY_ONE" ? (openBlock(), createBlock(_sfc_main$
|
|
3585
|
+
pricingGroup.product_type === "DEFAULT" && pricingGroup.selection_constraint === "EXACTLY_ONE" ? (openBlock(), createBlock(_sfc_main$J, {
|
|
3853
3586
|
key: 0,
|
|
3854
3587
|
modelValue: enabledPricingIdsModel.value,
|
|
3855
3588
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => enabledPricingIdsModel.value = $event),
|
|
@@ -3858,7 +3591,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3858
3591
|
pricings: pricingGroup.pricings,
|
|
3859
3592
|
"billing-period": __props.billingPeriod,
|
|
3860
3593
|
currency: __props.currency
|
|
3861
|
-
}, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : pricingGroup.product_type === "ADDON" && pricingGroup.selection_constraint === "AT_MOST_ONE" ? (openBlock(), createBlock(_sfc_main$
|
|
3594
|
+
}, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : pricingGroup.product_type === "ADDON" && pricingGroup.selection_constraint === "AT_MOST_ONE" ? (openBlock(), createBlock(_sfc_main$5, {
|
|
3862
3595
|
key: 1,
|
|
3863
3596
|
modelValue: enabledPricingIdsModel.value,
|
|
3864
3597
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => enabledPricingIdsModel.value = $event),
|
|
@@ -3868,7 +3601,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3868
3601
|
constraint: pricingGroup.selection_constraint,
|
|
3869
3602
|
"billing-period": __props.billingPeriod,
|
|
3870
3603
|
currency: __props.currency
|
|
3871
|
-
}, null, 8, ["modelValue", "group-name", "pricings", "constraint", "billing-period", "currency"])) : pricingGroup.product_type === "ADDON" && pricingGroup.selection_constraint === "ANY" ? (openBlock(), createBlock(_sfc_main$
|
|
3604
|
+
}, null, 8, ["modelValue", "group-name", "pricings", "constraint", "billing-period", "currency"])) : pricingGroup.product_type === "ADDON" && pricingGroup.selection_constraint === "ANY" ? (openBlock(), createBlock(_sfc_main$4, {
|
|
3872
3605
|
key: 2,
|
|
3873
3606
|
modelValue: enabledPricingIdsModel.value,
|
|
3874
3607
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => enabledPricingIdsModel.value = $event),
|
|
@@ -3880,7 +3613,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3880
3613
|
}, null, 8, ["modelValue", "pricings", "group-name", "billing-period", "currency"])) : createCommentVNode("", true)
|
|
3881
3614
|
], 64);
|
|
3882
3615
|
}), 128)),
|
|
3883
|
-
createVNode(_sfc_main$
|
|
3616
|
+
createVNode(_sfc_main$4, {
|
|
3884
3617
|
modelValue: enabledPricingIdsModel.value,
|
|
3885
3618
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => enabledPricingIdsModel.value = $event),
|
|
3886
3619
|
class: "sv-plan-customization__group",
|
|
@@ -3907,6 +3640,7 @@ const _hoisted_8 = {
|
|
|
3907
3640
|
"aria-live": "polite"
|
|
3908
3641
|
};
|
|
3909
3642
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
3643
|
+
...{ inheritAttrs: false },
|
|
3910
3644
|
__name: "PromotionCodeSection",
|
|
3911
3645
|
props: {
|
|
3912
3646
|
promotionCode: { default: null, type: [String, null] }
|
|
@@ -4027,11 +3761,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4027
3761
|
);
|
|
4028
3762
|
return (_ctx, _cache) => {
|
|
4029
3763
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
4030
|
-
!isApplied.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
4031
|
-
key: 0,
|
|
3764
|
+
!isApplied.value ? (openBlock(), createBlock(unref(_sfc_main$o), mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
4032
3765
|
"no-spacing": "",
|
|
4033
3766
|
class: "relative w-full"
|
|
4034
|
-
}, {
|
|
3767
|
+
}), {
|
|
4035
3768
|
default: withCtx(() => [
|
|
4036
3769
|
createElementVNode("button", {
|
|
4037
3770
|
ref_key: "toggleRef",
|
|
@@ -4045,8 +3778,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4045
3778
|
}, [
|
|
4046
3779
|
createElementVNode("div", _hoisted_2$1, [
|
|
4047
3780
|
createElementVNode("div", _hoisted_3$1, [
|
|
4048
|
-
createVNode(unref(_sfc_main$
|
|
4049
|
-
createVNode(unref(_sfc_main$
|
|
3781
|
+
createVNode(unref(_sfc_main$H), { icon: "local_activity" }),
|
|
3782
|
+
createVNode(unref(_sfc_main$n), {
|
|
4050
3783
|
id: labelId,
|
|
4051
3784
|
variant: "body-sm"
|
|
4052
3785
|
}, {
|
|
@@ -4060,7 +3793,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4060
3793
|
_: 1
|
|
4061
3794
|
})
|
|
4062
3795
|
]),
|
|
4063
|
-
createVNode(unref(_sfc_main$
|
|
3796
|
+
createVNode(unref(_sfc_main$H), {
|
|
4064
3797
|
icon: isExpanded.value ? "remove" : "add"
|
|
4065
3798
|
}, null, 8, ["icon"])
|
|
4066
3799
|
])
|
|
@@ -4074,7 +3807,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4074
3807
|
class: "flex w-full flex-row items-center gap-2 overflow-hidden border-t px-3 py-2",
|
|
4075
3808
|
onKeydown: withKeys(withModifiers(collapseExpanded, ["prevent"]), ["esc"])
|
|
4076
3809
|
}, [
|
|
4077
|
-
createVNode(unref(_sfc_main$
|
|
3810
|
+
createVNode(unref(_sfc_main$p), {
|
|
4078
3811
|
modelValue: inputValue.value,
|
|
4079
3812
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
4080
3813
|
placeholder: unref($t)({
|
|
@@ -4090,7 +3823,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4090
3823
|
class: "w-full",
|
|
4091
3824
|
onKeydown: withKeys(withModifiers(applyCode, ["prevent"]), ["enter"])
|
|
4092
3825
|
}, null, 8, ["modelValue", "placeholder", "aria-label", "onKeydown"]),
|
|
4093
|
-
createVNode(unref(_sfc_main$
|
|
3826
|
+
createVNode(unref(_sfc_main$r), {
|
|
4094
3827
|
type: "button",
|
|
4095
3828
|
disabled: !canApply.value,
|
|
4096
3829
|
"aria-label": applyAriaLabel.value,
|
|
@@ -4111,13 +3844,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4111
3844
|
])
|
|
4112
3845
|
]),
|
|
4113
3846
|
_: 1
|
|
4114
|
-
})) : (openBlock(), createBlock(unref(_sfc_main$
|
|
4115
|
-
key: 1,
|
|
3847
|
+
}, 16)) : (openBlock(), createBlock(unref(_sfc_main$o), mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
4116
3848
|
"no-border": "",
|
|
4117
3849
|
"no-spacing": "",
|
|
4118
3850
|
"content-background": "none",
|
|
4119
3851
|
class: "relative w-full"
|
|
4120
|
-
}, {
|
|
3852
|
+
}), {
|
|
4121
3853
|
default: withCtx(() => [
|
|
4122
3854
|
createElementVNode("button", {
|
|
4123
3855
|
type: "button",
|
|
@@ -4127,8 +3859,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4127
3859
|
}, [
|
|
4128
3860
|
createElementVNode("div", _hoisted_6$1, [
|
|
4129
3861
|
createElementVNode("div", _hoisted_7, [
|
|
4130
|
-
createVNode(unref(_sfc_main$
|
|
4131
|
-
createVNode(unref(_sfc_main$
|
|
3862
|
+
createVNode(unref(_sfc_main$H), { icon: "local_activity" }),
|
|
3863
|
+
createVNode(unref(_sfc_main$n), {
|
|
4132
3864
|
variant: "body-sm",
|
|
4133
3865
|
class: "font-semibold"
|
|
4134
3866
|
}, {
|
|
@@ -4138,12 +3870,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4138
3870
|
_: 1
|
|
4139
3871
|
})
|
|
4140
3872
|
]),
|
|
4141
|
-
createVNode(unref(_sfc_main$
|
|
3873
|
+
createVNode(unref(_sfc_main$H), { icon: "close" })
|
|
4142
3874
|
])
|
|
4143
3875
|
], 8, _hoisted_5$1)
|
|
4144
3876
|
]),
|
|
4145
3877
|
_: 1
|
|
4146
|
-
})),
|
|
3878
|
+
}, 16)),
|
|
4147
3879
|
createElementVNode("span", _hoisted_8, toDisplayString(statusMessage.value), 1)
|
|
4148
3880
|
], 64);
|
|
4149
3881
|
};
|
|
@@ -4171,9 +3903,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4171
3903
|
},
|
|
4172
3904
|
emits: ["error", "ready"],
|
|
4173
3905
|
setup(__props, { emit: __emit }) {
|
|
4174
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3906
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
4175
3907
|
const PaymentIntegrationForm = defineAsyncComponent(
|
|
4176
|
-
() => import("../../PaymentIntegrationForm-
|
|
3908
|
+
() => import("../../PaymentIntegrationForm-PIT8gHYN.mjs")
|
|
4177
3909
|
);
|
|
4178
3910
|
const props = __props;
|
|
4179
3911
|
const emit = __emit;
|
|
@@ -4362,11 +4094,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4362
4094
|
);
|
|
4363
4095
|
});
|
|
4364
4096
|
const expressPaymentMethodBillingInformation = computed(() => {
|
|
4365
|
-
var _a2
|
|
4097
|
+
var _a2;
|
|
4366
4098
|
if (!invoicePreview.value) {
|
|
4367
4099
|
return void 0;
|
|
4368
4100
|
}
|
|
4369
|
-
const subscriptionName = (
|
|
4101
|
+
const subscriptionName = getSubscriptionName({
|
|
4102
|
+
subscription: subscription.value,
|
|
4103
|
+
fallback: $t({
|
|
4104
|
+
defaultMessage: "Subscription",
|
|
4105
|
+
description: "The fallback name for when no subscription name can be determined",
|
|
4106
|
+
id: "customer_overview.subscriptions_block.fallback_subscription_name"
|
|
4107
|
+
})
|
|
4108
|
+
});
|
|
4370
4109
|
return {
|
|
4371
4110
|
description: subscriptionName,
|
|
4372
4111
|
managementURL: "https://www.solvimon.com/account/billing",
|
|
@@ -4387,7 +4126,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4387
4126
|
label: subscriptionName,
|
|
4388
4127
|
amount: invoicePreview.value.tax_summary.total_amount,
|
|
4389
4128
|
startDate: subscriptionStartDate.value ? new Date(subscriptionStartDate.value) : void 0,
|
|
4390
|
-
interval: ((
|
|
4129
|
+
interval: ((_a2 = subscription.value) == null ? void 0 : _a2.billing_period) ?? { type: "MONTH", value: 1 }
|
|
4391
4130
|
}
|
|
4392
4131
|
};
|
|
4393
4132
|
});
|
|
@@ -4463,6 +4202,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4463
4202
|
promotionCode.value = null;
|
|
4464
4203
|
}
|
|
4465
4204
|
});
|
|
4205
|
+
useAutoApplyPromotionCode({
|
|
4206
|
+
subscription,
|
|
4207
|
+
promotionCode: (_i = props.configuration) == null ? void 0 : _i.couponCode,
|
|
4208
|
+
appliedPromotionCode: promotionCode,
|
|
4209
|
+
applyPromotionCode
|
|
4210
|
+
});
|
|
4466
4211
|
const handleRedirect = () => {
|
|
4467
4212
|
if (!successRedirectUrl) return;
|
|
4468
4213
|
safeUrlRedirect(successRedirectUrl);
|
|
@@ -4494,7 +4239,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4494
4239
|
emit("ready");
|
|
4495
4240
|
});
|
|
4496
4241
|
return (_ctx, _cache) => {
|
|
4497
|
-
return criticalError.value ? (openBlock(), createBlock(_sfc_main$
|
|
4242
|
+
return criticalError.value ? (openBlock(), createBlock(_sfc_main$i, {
|
|
4498
4243
|
key: 0,
|
|
4499
4244
|
class: "sv-checkout sv-root sv-screen sv-checkout--error"
|
|
4500
4245
|
})) : (openBlock(), createBlock(unref(ContentWithAsideLayout), {
|
|
@@ -4503,11 +4248,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4503
4248
|
}, {
|
|
4504
4249
|
header: withCtx(() => [
|
|
4505
4250
|
createElementVNode("div", _hoisted_1, [
|
|
4506
|
-
createVNode(_sfc_main$
|
|
4251
|
+
createVNode(_sfc_main$E, { class: "min-h-[52px] w-96" }, {
|
|
4507
4252
|
default: withCtx(() => {
|
|
4508
4253
|
var _a2, _b2, _c2;
|
|
4509
4254
|
return [
|
|
4510
|
-
unref(invoicePreview) && unref(subscription) && subscriptionStartDate.value ? (openBlock(), createBlock(_sfc_main$
|
|
4255
|
+
unref(invoicePreview) && unref(subscription) && subscriptionStartDate.value ? (openBlock(), createBlock(_sfc_main$j, {
|
|
4511
4256
|
key: 0,
|
|
4512
4257
|
class: "sv-checkout__title",
|
|
4513
4258
|
"trial-start-date": trialStartDate.value,
|
|
@@ -4527,7 +4272,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4527
4272
|
content: withCtx(() => {
|
|
4528
4273
|
var _a2, _b2, _c2;
|
|
4529
4274
|
return [
|
|
4530
|
-
unref(subscription) && unref(isMobileViewport) ? (openBlock(), createBlock(_sfc_main$
|
|
4275
|
+
unref(subscription) && unref(isMobileViewport) ? (openBlock(), createBlock(_sfc_main$f, {
|
|
4531
4276
|
key: 0,
|
|
4532
4277
|
class: "sv-checkout__mobile-order-summary",
|
|
4533
4278
|
subscription: unref(subscription),
|
|
@@ -4557,7 +4302,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4557
4302
|
"billing-period": unref(subscription).billing_period,
|
|
4558
4303
|
currency: activePricingCurrency.value
|
|
4559
4304
|
}, null, 8, ["seats-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "billing-period", "currency"])) : createCommentVNode("", true),
|
|
4560
|
-
!unref(isPaid) && unref(checkoutForm).form.value.country && unref(amount) && expressPaymentMethodBillingInformation.value ? (openBlock(), createBlock(_sfc_main$
|
|
4305
|
+
!unref(isPaid) && unref(checkoutForm).form.value.country && unref(amount) && expressPaymentMethodBillingInformation.value ? (openBlock(), createBlock(_sfc_main$a, {
|
|
4561
4306
|
key: 2,
|
|
4562
4307
|
class: "sv-checkout__express-payment-methods",
|
|
4563
4308
|
amount: unref(amount),
|
|
@@ -4568,12 +4313,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4568
4313
|
"on-billing-information-change": unref(updateInvoicePreviewOnBillingInformationChange),
|
|
4569
4314
|
onUpdateBillingInformation: handleUpdateBillingInformation
|
|
4570
4315
|
}, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change"])) : createCommentVNode("", true),
|
|
4571
|
-
unref(isPaid) ? (openBlock(), createBlock(_sfc_main$
|
|
4316
|
+
unref(isPaid) ? (openBlock(), createBlock(_sfc_main$h, {
|
|
4572
4317
|
key: 3,
|
|
4573
4318
|
class: "sv-checkout__completed-payment",
|
|
4574
4319
|
onContinueToMerchant: handleRedirect
|
|
4575
4320
|
})) : createCommentVNode("", true),
|
|
4576
|
-
!unref(isPaid) ? (openBlock(), createBlock(_sfc_main$
|
|
4321
|
+
!unref(isPaid) ? (openBlock(), createBlock(_sfc_main$k, {
|
|
4577
4322
|
key: 4,
|
|
4578
4323
|
modelValue: unref(checkoutForm).form.value,
|
|
4579
4324
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(checkoutForm).form.value = $event),
|
|
@@ -4586,13 +4331,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4586
4331
|
"read-only": unref(isPaid)
|
|
4587
4332
|
}, null, 8, ["modelValue", "validation", "read-only-email", "show-customer-info-on-top", "is-billing-information-mandatory", "get-is-field-required", "read-only"])) : createCommentVNode("", true),
|
|
4588
4333
|
!unref(isPaid) ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
4589
|
-
createVNode(_sfc_main$
|
|
4334
|
+
createVNode(_sfc_main$E, {
|
|
4590
4335
|
variant: "section",
|
|
4591
4336
|
class: "min-h-[130px]"
|
|
4592
4337
|
}, {
|
|
4593
4338
|
default: withCtx(() => [
|
|
4594
4339
|
!unref(isPaymentMethodsPending) || unref(isPaymentMethodsPending) && unref(paymentMethodOptions).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
4595
|
-
createVNode(unref(_sfc_main$
|
|
4340
|
+
createVNode(unref(_sfc_main$n), {
|
|
4596
4341
|
variant: "heading-3",
|
|
4597
4342
|
tag: "h2",
|
|
4598
4343
|
class: "sv-checkout__payment-methods-title mb-2"
|
|
@@ -4606,7 +4351,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4606
4351
|
]),
|
|
4607
4352
|
_: 1
|
|
4608
4353
|
}),
|
|
4609
|
-
!unref(checkoutForm).form.value.country ? (openBlock(), createBlock(_sfc_main$
|
|
4354
|
+
!unref(checkoutForm).form.value.country ? (openBlock(), createBlock(_sfc_main$M, {
|
|
4610
4355
|
key: 0,
|
|
4611
4356
|
class: "sv-checkout__payment-methods-empty",
|
|
4612
4357
|
icon: "captive_portal"
|
|
@@ -4626,7 +4371,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4626
4371
|
})), 1)
|
|
4627
4372
|
]),
|
|
4628
4373
|
_: 1
|
|
4629
|
-
})) : unref(paymentMethodOptions).length === 0 ? (openBlock(), createBlock(_sfc_main$
|
|
4374
|
+
})) : unref(paymentMethodOptions).length === 0 ? (openBlock(), createBlock(_sfc_main$M, {
|
|
4630
4375
|
key: 1,
|
|
4631
4376
|
class: "sv-checkout__payment-methods-empty",
|
|
4632
4377
|
icon: "credit_card_off"
|
|
@@ -4638,13 +4383,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4638
4383
|
description: "The title shown when there are no available payment methods"
|
|
4639
4384
|
})), 1)
|
|
4640
4385
|
]),
|
|
4641
|
-
message: withCtx(() => [
|
|
4642
|
-
createTextVNode(toDisplayString(unref($t)({
|
|
4643
|
-
defaultMessage: "There are no available payment methods. Please contact support for more information.",
|
|
4644
|
-
id: "checkout.payment_method_block.no_payment_methods_available_message",
|
|
4645
|
-
description: "The message shown when there are no available payment methods"
|
|
4646
|
-
})), 1)
|
|
4647
|
-
]),
|
|
4648
4386
|
_: 1
|
|
4649
4387
|
})) : unref(amount) && unref(checkoutForm).form.value.country ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
4650
4388
|
createElementVNode("div", {
|
|
@@ -4676,14 +4414,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4676
4414
|
}),
|
|
4677
4415
|
aside: withCtx(() => [
|
|
4678
4416
|
createElementVNode("div", _hoisted_5, [
|
|
4679
|
-
createVNode(_sfc_main$
|
|
4417
|
+
createVNode(_sfc_main$E, {
|
|
4680
4418
|
variant: "section",
|
|
4681
4419
|
class: "min-h-[220px]"
|
|
4682
4420
|
}, {
|
|
4683
4421
|
default: withCtx(() => {
|
|
4684
4422
|
var _a2;
|
|
4685
4423
|
return [
|
|
4686
|
-
unref(subscription) && unref(invoicePreview) ? (openBlock(), createBlock(_sfc_main$
|
|
4424
|
+
unref(subscription) && unref(invoicePreview) ? (openBlock(), createBlock(_sfc_main$f, {
|
|
4687
4425
|
key: 0,
|
|
4688
4426
|
subscription: unref(subscription),
|
|
4689
4427
|
invoice: unref(invoicePreview),
|
|
@@ -4711,18 +4449,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4711
4449
|
onRemove: unref(removePromotionCode),
|
|
4712
4450
|
onApply: unref(applyPromotionCode)
|
|
4713
4451
|
}, null, 8, ["promotion-code", "onRemove", "onApply"])) : createCommentVNode("", true),
|
|
4714
|
-
unref(promotionCodeErrorMessage) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
4452
|
+
unref(promotionCodeErrorMessage) ? (openBlock(), createBlock(unref(_sfc_main$K), {
|
|
4715
4453
|
key: 1,
|
|
4716
4454
|
class: "sv-checkout__promotion-error mt-2",
|
|
4717
4455
|
title: unref(promotionCodeErrorMessage)
|
|
4718
4456
|
}, null, 8, ["title"])) : createCommentVNode("", true),
|
|
4719
4457
|
createElementVNode("div", _hoisted_6, [
|
|
4720
|
-
!unref(isPaid) ? (openBlock(), createBlock(_sfc_main$
|
|
4458
|
+
!unref(isPaid) ? (openBlock(), createBlock(_sfc_main$E, {
|
|
4721
4459
|
key: 0,
|
|
4722
4460
|
class: "sv-checkout__submit-skeleton min-h-[44px]"
|
|
4723
4461
|
}, {
|
|
4724
4462
|
default: withCtx(() => [
|
|
4725
|
-
unref(invoicePreview) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
4463
|
+
unref(invoicePreview) ? (openBlock(), createBlock(unref(_sfc_main$r), {
|
|
4726
4464
|
key: 0,
|
|
4727
4465
|
type: "button",
|
|
4728
4466
|
size: "lg",
|
|
@@ -4747,7 +4485,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4747
4485
|
]),
|
|
4748
4486
|
_: 1
|
|
4749
4487
|
})) : createCommentVNode("", true),
|
|
4750
|
-
createVNode(_sfc_main$
|
|
4488
|
+
createVNode(_sfc_main$L, { "payment-method-options": unref(paymentMethodOptions) }, null, 8, ["payment-method-options"])
|
|
4751
4489
|
])
|
|
4752
4490
|
]),
|
|
4753
4491
|
_: 1
|
|
@@ -4776,7 +4514,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4776
4514
|
},
|
|
4777
4515
|
emits: ["error", "ready"],
|
|
4778
4516
|
setup(__props, { emit: __emit }) {
|
|
4779
|
-
var _a, _b;
|
|
4517
|
+
var _a, _b, _c;
|
|
4780
4518
|
const props = __props;
|
|
4781
4519
|
const emit = __emit;
|
|
4782
4520
|
const logger = useLogger();
|
|
@@ -4802,16 +4540,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4802
4540
|
};
|
|
4803
4541
|
const validCountryCode = getValidCountryCode((_a = props.configuration) == null ? void 0 : _a.countryCode);
|
|
4804
4542
|
const validEmail = getValidEmail((_b = props.configuration) == null ? void 0 : _b.email);
|
|
4543
|
+
const couponCode = ((_c = props.configuration) == null ? void 0 : _c.couponCode) ?? getQueryParam("coupon_code") ?? void 0;
|
|
4805
4544
|
return (_ctx, _cache) => {
|
|
4806
|
-
var _a2, _b2,
|
|
4807
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4545
|
+
var _a2, _b2, _c2, _d;
|
|
4546
|
+
return openBlock(), createBlock(_sfc_main$N, {
|
|
4808
4547
|
"custom-element-name": unref(COMPONENT_NAME),
|
|
4809
4548
|
environment: __props.environment,
|
|
4810
4549
|
locale: __props.locale,
|
|
4811
4550
|
"portal-object": __props.portalObject,
|
|
4812
4551
|
"allowed-portal-types": ["INIT_PRICING_PLAN_SUBSCRIPTION"],
|
|
4813
4552
|
"primary-color": (_b2 = (_a2 = __props.branding) == null ? void 0 : _a2.colors) == null ? void 0 : _b2.primary,
|
|
4814
|
-
"secondary-color": (_d = (
|
|
4553
|
+
"secondary-color": (_d = (_c2 = __props.branding) == null ? void 0 : _c2.colors) == null ? void 0 : _d.secondary,
|
|
4815
4554
|
"experimental-features": __props.experimentalFeatures,
|
|
4816
4555
|
"log-level": __props.logLevel,
|
|
4817
4556
|
"on-log": __props.onLog,
|
|
@@ -4819,14 +4558,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4819
4558
|
onError: _cache[1] || (_cache[1] = (error) => _ctx.$emit("error", error))
|
|
4820
4559
|
}, {
|
|
4821
4560
|
default: withCtx(() => {
|
|
4822
|
-
var _a3, _b3,
|
|
4561
|
+
var _a3, _b3, _c3;
|
|
4823
4562
|
return [
|
|
4824
4563
|
createVNode(_sfc_main$1, {
|
|
4825
4564
|
configuration: {
|
|
4826
4565
|
avatar: (_b3 = (_a3 = __props.branding) == null ? void 0 : _a3.emblem) == null ? void 0 : _b3.public_url,
|
|
4827
4566
|
email: unref(validEmail),
|
|
4828
4567
|
countryCode: unref(validCountryCode),
|
|
4829
|
-
enabledPricingIds: (
|
|
4568
|
+
enabledPricingIds: (_c3 = __props.configuration) == null ? void 0 : _c3.enabledPricingIds,
|
|
4569
|
+
couponCode: unref(couponCode)
|
|
4830
4570
|
},
|
|
4831
4571
|
onReady: _cache[0] || (_cache[0] = ($event) => emit("ready"))
|
|
4832
4572
|
}, createSlots({ _: 2 }, [
|