@solvimon/solvimon-web 0.1.0-alpha.29 → 0.1.0-alpha.30
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 +12 -2
- package/dist/{Alert.vue.es-CNrEaLvh.mjs → Alert.vue.es-ZPG49yR_.mjs} +1 -1
- package/dist/{AuthProvider.handle-DKfNs8rr.mjs → AuthProvider.handle-SRR_04XS.mjs} +1 -1
- package/dist/{Avatar.vue.es-r0NbcIib.mjs → Avatar.vue.es-geDQsZwu.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs} +4 -4
- package/dist/{Button.vue.es-Zw--kuaU.mjs → Button.vue.es-j7iYlqtJ.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-B8FDkS9U.mjs → ChargeOnDemandModal-CR01PkP_.mjs} +14 -14
- package/dist/{Checkout.entry.ce-DsGl-5aR.mjs → Checkout.entry.ce-CopWuLJC.mjs} +1784 -1817
- package/dist/{CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs → CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs} +7 -7
- package/dist/{Chip.vue.es-D3UDSyXC.mjs → Chip.vue.es-Dxx_0dte.mjs} +2 -2
- package/dist/{ContextMenu.vue.es-B9mFpUQK.mjs → ContextMenu.vue.es-BJO4U47Q.mjs} +5 -5
- package/dist/{CustomerBillingInformation.vue.es-B8NiQaJs.mjs → CustomerBillingInformation.vue.es-CmNpqcBw.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs} +5 -5
- package/dist/{CustomerShippingAddresses-Bj8Y17O8.mjs → CustomerShippingAddresses-BRPukhRI.mjs} +8 -8
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs} +434 -425
- package/dist/{DividerText.vue.es-CNbgif-3.mjs → DividerText.vue.es-BusbyeAI.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs} +3 -3
- package/dist/{ErrorNotification.vue.es-DNd65mQq.mjs → ErrorNotification.vue.es-F068p7PY.mjs} +2 -2
- package/dist/{FormMessage.vue.es-Cjv358Ab.mjs → FormMessage.vue.es-CwMQpIAW.mjs} +1 -1
- package/dist/{IconButton.vue.es-C8lYFx5_.mjs → IconButton.vue.es-D8DtBW9i.mjs} +2 -2
- package/dist/{IconTitle.vue.es-O2kcqgKm.mjs → IconTitle.vue.es-6VJtjJX2.mjs} +3 -3
- package/dist/{Input.vue.es-D8Oj8MWv.mjs → Input.vue.es-BLyHcmu4.mjs} +4 -4
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs} +4 -4
- package/dist/{InvoicePreview.vue.es-4Q2hzaFS.mjs → InvoicePreview.vue.es-Cpf66_xV.mjs} +4 -4
- package/dist/{InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs → InvoicePricingClauseChip.vue.es-CDrAE901.mjs} +3 -3
- package/dist/{Label.vue.es-DtpLM1KH.mjs → Label.vue.es-es7ZUBSP.mjs} +3 -3
- package/dist/{Modal.vue.es-C8ZcO117.mjs → Modal.vue.es-eeR9FmvQ.mjs} +6 -6
- package/dist/{OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs → OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs} +5 -5
- package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs} +2 -2
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-BvY2nXGV.mjs → PaymentHistoryBlock-CN42ewCn.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-CcfQSzKM.mjs → PaymentIntegrationForm-D3Ye7LZ5.mjs} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs} +5 -5
- package/dist/{PaymentIntegrationFormAdyen-DqgDfO6K.mjs → PaymentIntegrationFormAdyen-Fm-diCCO.mjs} +39 -38
- package/dist/{PaymentIntegrationFormStripe-BYdAkvLt.mjs → PaymentIntegrationFormStripe-BANBL6za.mjs} +14 -13
- package/dist/{PaymentMethod.vue.es-b0p3a0L-.mjs → PaymentMethod.vue.es-t3-VyoE8.mjs} +4 -4
- package/dist/{PaymentMethodForm-BsTrTwCg.mjs → PaymentMethodForm-CqP3GoNj.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs} +6 -6
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs} +6 -6
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs} +7 -7
- package/dist/PlanCustomizationEditor-B76UNEMm.mjs +791 -0
- package/dist/{PortalLinkUnverified-B_EE2wTJ.mjs → PortalLinkUnverified-Cp60_kRJ.mjs} +3 -3
- package/dist/{PortalNotAvailable-DPE9y37H.mjs → PortalNotAvailable-DzSQnfzw.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs → PricingGroupRangeInput.vue.es-Srq_3cga.mjs} +156 -206
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs +177 -0
- package/dist/{RadioGroupExtended.vue.es-3nDXqIGi.mjs → RadioGroupExtended.vue.es-BbBMDf6l.mjs} +5 -5
- package/dist/{Section.vue.es-CvX9tg2f.mjs → Section.vue.es-Oqn1wGPZ.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs} +2 -2
- package/dist/{ShippingAddressesModal-C4p1IXXk.mjs → ShippingAddressesModal-c7nqf4Ny.mjs} +10 -10
- package/dist/StepInput.vue.es-ieh4EuJ7.mjs +213 -0
- package/dist/{SubscriptionDetails.entry.ce-D5SwM0YS.mjs → SubscriptionDetails.entry.ce-uYv45FGH.mjs} +91 -92
- package/dist/{SubscriptionSchedules-BZqlpAtk.mjs → SubscriptionSchedules-DMxX3GpK.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs} +1736 -1721
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs} +4 -4
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs} +9 -9
- package/dist/{TooltipParagraph.vue.es-Dw0ndjle.mjs → TooltipParagraph.vue.es-BES3zsYN.mjs} +1 -1
- package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs} +1 -1
- package/dist/{TrialChip.vue.es-DOopmaXA.mjs → TrialChip.vue.es-C51z1ZiA.mjs} +2 -2
- package/dist/addonQuantity-CCVaA3e-.mjs +758 -0
- package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +8 -8
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
- package/dist/components/Invoice/Invoice.mjs +14 -14
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +4 -4
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
- package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
- package/dist/components/PaymentHistory/PaymentHistory.mjs +4 -4
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
- package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
- package/dist/core/index.mjs +1 -1
- package/dist/{customElements-BTj4ii4f.mjs → customElements-DK4GKNJG.mjs} +10 -10
- package/dist/{customer-BIjC0CWJ.mjs → customer-lf6S5DBR.mjs} +1 -1
- package/dist/{de-DE-DBbERiFr.mjs → de-DE-Cyj_NtiI.mjs} +4 -0
- package/dist/{fr-FR-IWJE-urI.mjs → fr-FR-CRFoWQ7J.mjs} +4 -0
- package/dist/{index.es-C7J3WGGo.mjs → index.es-BrVTOW5D.mjs} +4 -4
- package/dist/index.mjs +2 -2
- package/dist/{invoices-e1sKLgxg.mjs → invoices-DdREPDXV.mjs} +1 -1
- package/dist/{it-IT-B7ui2oxO.mjs → it-IT-DObZEc-U.mjs} +4 -0
- package/dist/{nl-NL-Bafh2xoT.mjs → nl-NL-C02xHilF.mjs} +4 -0
- package/dist/paymentFailure-QZdZHBhf.mjs +47 -0
- package/dist/{paymentMethods-B_82JGk_.mjs → paymentMethods-8w-ccfY_.mjs} +1 -1
- package/dist/{paymentMethods-Nfv9HdkS.mjs → paymentMethods-Goa25rTs.mjs} +2 -2
- package/dist/paymentOutcome-B6sW1eCV.mjs +22 -0
- package/dist/{payments-BnxbzQUC.mjs → payments-CKpU1K3t.mjs} +1 -1
- package/dist/{pricing-BOhvWWMj.mjs → pricing-CEaZGgKe.mjs} +1 -1
- package/dist/pricingItem.es-bCPArbTa.mjs +55 -0
- package/dist/{pricingPlanScheduleOverrides-Dxv5FOBd.mjs → pricingPlanScheduleOverrides-BBp-DmpV.mjs} +2 -2
- package/dist/{pricingPlanSchedules-Dv7ZCgNp.mjs → pricingPlanSchedules-DSMptcAh.mjs} +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +13 -13
- package/dist/screens/PayInvoice/PayInvoice.mjs +33 -32
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +10 -10
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +172 -163
- package/dist/{sorting.es-CVyKw23D.mjs → sorting.es-C0pdMgX0.mjs} +1 -1
- package/dist/subscription-BwzkagDI.mjs +212 -0
- package/dist/{subscriptions-BWXZGK0E.mjs → subscriptions-B5bH8hsI.mjs} +1 -1
- package/dist/{taxId.es-DkD3Ltr8.mjs → taxId.es-e6NEvprh.mjs} +2 -2
- package/dist/types/public/core/configuration.d.ts +0 -1
- package/dist/types/public/core/types.d.ts +10 -5
- package/dist/{useActionDispatchProvider-3W2vEyIg.mjs → useActionDispatchProvider-ChAHdwR8.mjs} +1 -1
- package/dist/{useCustomer-cObBvDOu.mjs → useCustomer-CTMhg1nd.mjs} +2 -2
- package/dist/{useCustomerFormLabels-DJWf2O17.mjs → useCustomerFormLabels-D4oDnfxA.mjs} +9 -9
- package/dist/{useIncrementalLoading-CATuO36d.mjs → useIncrementalLoading-CBVutPH8.mjs} +1 -1
- package/dist/{useInvoiceData-DD44HTl7.mjs → useInvoiceData-qUGbBAQK.mjs} +2 -2
- package/dist/{useInvoicesList-CpB-41MQ.mjs → useInvoicesList-wJvZAJpW.mjs} +9 -9
- package/dist/{useLoadInitialData-qzdnBoui.mjs → useLoadInitialData-UvfYXgbi.mjs} +1 -1
- package/dist/{usePaymentFormHold-ByUZi3A-.mjs → usePaymentFormHold-Cwdr-vyc.mjs} +2 -2
- package/dist/{usePaymentMethodAvailability-DUdrs0Ji.mjs → usePaymentMethodAvailability-35l4pWdH.mjs} +4 -4
- package/dist/{usePaymentMethods-ByaKF7mf.mjs → usePaymentMethods-De7hlLHo.mjs} +2 -2
- package/dist/{usePayments-BXABv-lF.mjs → usePayments-hWS7fnOx.mjs} +9 -9
- package/dist/{usePortal-CwR_FxTb.mjs → usePortal-DUfD6hrA.mjs} +1 -1
- package/dist/{useService-BZcbUZHI.mjs → useService-BwzIBIRp.mjs} +1 -1
- package/dist/{useTimePeriod.es-BpdiVwg8.mjs → useTimePeriod.es-BUorDLVK.mjs} +1 -1
- package/package.json +4 -4
- package/dist/PlanCustomizationEditor-D29N4HUM.mjs +0 -711
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs +0 -141
- package/dist/StepInput.vue.es-DweyzpkL.mjs +0 -200
- package/dist/index.es-CpmQmvOg.mjs +0 -633
- package/dist/paymentOutcome-BXEU5-84.mjs +0 -67
- package/dist/pricingPlanSchedule-BPrS2WRd.mjs +0 -132
- package/dist/subscription-BhxoqwcT.mjs +0 -83
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { e as
|
|
6
|
-
import { C as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as Ne, i as
|
|
11
|
-
import { u as
|
|
12
|
-
import { c as De } from "../../invoices-
|
|
13
|
-
import {
|
|
14
|
-
import { c as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { _ as
|
|
18
|
-
import { _ as
|
|
19
|
-
import { _ as
|
|
20
|
-
import { _ as qe } from "../../Section.vue.es-
|
|
21
|
-
import { _ as
|
|
22
|
-
import { _ as He } from "../../TranslationOverride.vue_vue_type_script_setup_true_lang-
|
|
23
|
-
import { _ as
|
|
24
|
-
import { _ as
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import { ref as y, defineComponent as U, useModel as ie, computed as m, watch as q, openBlock as s, createElementBlock as x, withModifiers as _e, createElementVNode as C, createVNode as T, unref as t, createBlock as c, withCtx as d, Fragment as H, createTextVNode as w, toDisplayString as _, mergeModels as ae, createCommentVNode as K, mergeProps as ye } from "vue";
|
|
2
|
+
import { u as we, w as Pe, a as Ie, h as Se } from "../../pricingPlanScheduleOverrides-BBp-DmpV.mjs";
|
|
3
|
+
import { _ as se } from "../../Button.vue.es-j7iYlqtJ.mjs";
|
|
4
|
+
import { _ as Z } from "../../ErrorNotification.vue.es-F068p7PY.mjs";
|
|
5
|
+
import { e as ce, o as Ee, a as L, d as J, g as Me, h as ke, j as $e } from "../../customElements-DK4GKNJG.mjs";
|
|
6
|
+
import { C as Te } from "../../ContentWithAsideLayout-Bnbsq8_5.mjs";
|
|
7
|
+
import { u as Oe } from "../../useActionDispatchProvider-ChAHdwR8.mjs";
|
|
8
|
+
import { u as Ce } from "../../usePortal-DUfD6hrA.mjs";
|
|
9
|
+
import { u as Ae } from "../../usePaymentMethods-De7hlLHo.mjs";
|
|
10
|
+
import { u as Ne, i as Be, a as xe } from "../../paymentMethods-Goa25rTs.mjs";
|
|
11
|
+
import { u as Ue } from "../../useLoadInitialData-UvfYXgbi.mjs";
|
|
12
|
+
import { c as De } from "../../invoices-DdREPDXV.mjs";
|
|
13
|
+
import { c as Le, d as ze, e as je } from "../../subscription-BwzkagDI.mjs";
|
|
14
|
+
import { c as Ge } from "../../pricingPlanSchedules-DSMptcAh.mjs";
|
|
15
|
+
import { _ as Re } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs";
|
|
16
|
+
import { _ as Ve } from "../../Divider.vue.es-DnP_HqLz.mjs";
|
|
17
|
+
import { _ as Fe } from "../../PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs";
|
|
18
|
+
import { _ as Ye } from "../../PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs";
|
|
19
|
+
import { _ as We } from "../../InvoicePreview.vue.es-Cpf66_xV.mjs";
|
|
20
|
+
import { _ as qe } from "../../Section.vue.es-Oqn1wGPZ.mjs";
|
|
21
|
+
import { _ as ue } from "../../Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
|
|
22
|
+
import { _ as He } from "../../TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs";
|
|
23
|
+
import { _ as Ke } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs";
|
|
24
|
+
import { _ as oe } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs";
|
|
25
|
+
import { i as Ze } from "../../paymentOutcome-B6sW1eCV.mjs";
|
|
26
|
+
function Je() {
|
|
27
|
+
const { getInvoicePreview: a } = De(), l = ce(), u = y(), h = y(!1), p = y(), o = Ee();
|
|
27
28
|
return { invoice: u, isPending: h, error: p, load: async ({
|
|
28
29
|
subscription: O,
|
|
29
|
-
scheduleInfo:
|
|
30
|
+
scheduleInfo: I,
|
|
30
31
|
enabledPricingIds: r
|
|
31
32
|
}) => {
|
|
32
33
|
const i = Le({
|
|
33
34
|
enabledPricings: r.map((b) => ({ pricing_id: b })),
|
|
34
|
-
pricingPlanScheduleInfos:
|
|
35
|
+
pricingPlanScheduleInfos: I ? [I] : []
|
|
35
36
|
});
|
|
36
37
|
if (!i) {
|
|
37
38
|
o(), u.value = void 0, p.value = void 0, h.value = !1;
|
|
@@ -62,9 +63,9 @@ function Ke() {
|
|
|
62
63
|
}
|
|
63
64
|
} };
|
|
64
65
|
}
|
|
65
|
-
const
|
|
66
|
+
const Qe = ["id"], Xe = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-4" }, et = /* @__PURE__ */ U({
|
|
66
67
|
__name: "SubscriptionManagementForm",
|
|
67
|
-
props: /* @__PURE__ */
|
|
68
|
+
props: /* @__PURE__ */ ae({
|
|
68
69
|
id: { type: String },
|
|
69
70
|
pricingGroup: { type: Object },
|
|
70
71
|
paymentMethods: { type: Array },
|
|
@@ -78,12 +79,12 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
78
79
|
paymentMethodId: {},
|
|
79
80
|
paymentMethodIdModifiers: {}
|
|
80
81
|
}),
|
|
81
|
-
emits: /* @__PURE__ */
|
|
82
|
+
emits: /* @__PURE__ */ ae(["submit"], ["update:enabledPricingIds", "update:paymentMethodId"]),
|
|
82
83
|
setup(a, { emit: l }) {
|
|
83
|
-
const u = a, h = l, p =
|
|
84
|
+
const u = a, h = l, p = ie(a, "enabledPricingIds"), o = ie(a, "paymentMethodId"), { $t: P } = L(), O = (r) => {
|
|
84
85
|
const i = r ? Date.parse(r) : NaN;
|
|
85
86
|
return Number.isFinite(i) ? i : 0;
|
|
86
|
-
},
|
|
87
|
+
}, I = m(
|
|
87
88
|
() => [...u.paymentMethods ?? []].sort((r, i) => O(i.created_at) - O(r.created_at))
|
|
88
89
|
);
|
|
89
90
|
return q(
|
|
@@ -91,22 +92,22 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
91
92
|
(r, i) => {
|
|
92
93
|
var b;
|
|
93
94
|
const v = r == null ? void 0 : r.find(
|
|
94
|
-
({ id:
|
|
95
|
+
({ id: S }) => !(i != null && i.some((z) => z.id === S))
|
|
95
96
|
);
|
|
96
97
|
if (v && (i != null && i.length)) {
|
|
97
98
|
o.value = v.id;
|
|
98
99
|
return;
|
|
99
100
|
}
|
|
100
|
-
r != null && r.some(({ id:
|
|
101
|
+
r != null && r.some(({ id: S }) => S === o.value) || (o.value = (b = (r == null ? void 0 : r.find(({ is_default: S }) => S)) ?? I.value[0]) == null ? void 0 : b.id);
|
|
101
102
|
},
|
|
102
103
|
{ immediate: !0 }
|
|
103
|
-
), (r, i) => (s(),
|
|
104
|
+
), (r, i) => (s(), x("form", {
|
|
104
105
|
id: a.id,
|
|
105
106
|
class: "sv-subscription-management-form",
|
|
106
107
|
onSubmit: i[2] || (i[2] = _e((v) => h("submit"), ["prevent"]))
|
|
107
108
|
}, [
|
|
108
|
-
C("div",
|
|
109
|
-
T(
|
|
109
|
+
C("div", Xe, [
|
|
110
|
+
T(Fe, {
|
|
110
111
|
modelValue: p.value,
|
|
111
112
|
"onUpdate:modelValue": i[0] || (i[0] = (v) => p.value = v),
|
|
112
113
|
class: "sv-subscription-management-form__pricing-group",
|
|
@@ -116,23 +117,23 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
116
117
|
currency: a.currency
|
|
117
118
|
}, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"]),
|
|
118
119
|
C("div", null, [
|
|
119
|
-
T(t(
|
|
120
|
+
T(t(Ve), { spacing: "xs" })
|
|
120
121
|
]),
|
|
121
|
-
|
|
122
|
+
I.value.length > 0 ? (s(), c(Ye, {
|
|
122
123
|
key: 0,
|
|
123
124
|
modelValue: o.value,
|
|
124
125
|
"onUpdate:modelValue": i[1] || (i[1] = (v) => o.value = v),
|
|
125
126
|
class: "sv-subscription-management-form__payment-methods",
|
|
126
|
-
"payment-methods":
|
|
127
|
+
"payment-methods": I.value,
|
|
127
128
|
"show-add-option": !1,
|
|
128
129
|
required: "",
|
|
129
130
|
disabled: a.disabled,
|
|
130
|
-
label: t(
|
|
131
|
+
label: t(P)({
|
|
131
132
|
defaultMessage: "Payment method",
|
|
132
133
|
id: "subscription_management.payment_method_selector.label",
|
|
133
134
|
description: "Label above the payment method that pays for the subscription change"
|
|
134
135
|
})
|
|
135
|
-
}, null, 8, ["modelValue", "payment-methods", "disabled", "label"])) : (s(), c(t(
|
|
136
|
+
}, null, 8, ["modelValue", "payment-methods", "disabled", "label"])) : (s(), c(t(J), {
|
|
136
137
|
key: 1,
|
|
137
138
|
id: a.id && `${a.id}__no-payment-method`,
|
|
138
139
|
variant: "body-sm",
|
|
@@ -141,14 +142,14 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
141
142
|
class: "sv-subscription-management-form__no-payment-method"
|
|
142
143
|
}, {
|
|
143
144
|
default: d(() => [
|
|
144
|
-
a.hasExpiredPaymentMethod ? (s(),
|
|
145
|
-
|
|
145
|
+
a.hasExpiredPaymentMethod ? (s(), x(H, { key: 0 }, [
|
|
146
|
+
w(_(t(P)({
|
|
146
147
|
defaultMessage: "The card this subscription is paid with has expired. Replace it under your payment methods to make a change.",
|
|
147
148
|
id: "subscription_management.expired_payment_method",
|
|
148
149
|
description: "Shown in place of the payment method on the manage subscription screen when the card the subscription is paid with has expired"
|
|
149
150
|
})), 1)
|
|
150
|
-
], 64)) : (s(),
|
|
151
|
-
|
|
151
|
+
], 64)) : (s(), x(H, { key: 1 }, [
|
|
152
|
+
w(_(t(P)({
|
|
152
153
|
defaultMessage: "This subscription has no payment method to charge the change to. Please contact support to change it.",
|
|
153
154
|
id: "subscription_management.no_payment_method",
|
|
154
155
|
description: "Shown in place of the payment method on the manage subscription screen when the subscription has no usable payment method"
|
|
@@ -158,9 +159,9 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
158
159
|
_: 1
|
|
159
160
|
}, 8, ["id"]))
|
|
160
161
|
])
|
|
161
|
-
], 40,
|
|
162
|
+
], 40, Qe));
|
|
162
163
|
}
|
|
163
|
-
}),
|
|
164
|
+
}), tt = /* @__PURE__ */ U({
|
|
164
165
|
__name: "SubscriptionManagementSummary",
|
|
165
166
|
props: {
|
|
166
167
|
invoice: { type: Object },
|
|
@@ -168,7 +169,7 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
168
169
|
hasError: { type: Boolean }
|
|
169
170
|
},
|
|
170
171
|
setup(a) {
|
|
171
|
-
const { $t: l } =
|
|
172
|
+
const { $t: l } = L(), u = m(() => ({
|
|
172
173
|
"invoice_preview.total_due_today_heading": l({
|
|
173
174
|
defaultMessage: "Total due",
|
|
174
175
|
id: "subscription_management.summary.total_due_heading",
|
|
@@ -184,7 +185,7 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
184
185
|
})
|
|
185
186
|
}, {
|
|
186
187
|
default: d(() => [
|
|
187
|
-
a.hasError ? (s(), c(t(
|
|
188
|
+
a.hasError ? (s(), c(t(Z), {
|
|
188
189
|
key: 0,
|
|
189
190
|
class: "sv-subscription-management-summary__error sv-error",
|
|
190
191
|
title: t(l)({
|
|
@@ -192,13 +193,13 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
192
193
|
id: "subscription_management.summary.error",
|
|
193
194
|
description: "Error shown when the invoice preview for a subscription change cannot be loaded"
|
|
194
195
|
})
|
|
195
|
-
}, null, 8, ["title"])) : a.isPending || !a.invoice ? (s(), c(
|
|
196
|
+
}, null, 8, ["title"])) : a.isPending || !a.invoice ? (s(), c(ue, {
|
|
196
197
|
key: 1,
|
|
197
198
|
variant: "section",
|
|
198
199
|
class: "sv-subscription-management-summary__skeleton min-h-[120px]"
|
|
199
200
|
}, {
|
|
200
201
|
default: d(() => [
|
|
201
|
-
a.isPending ?
|
|
202
|
+
a.isPending ? K("", !0) : (s(), c(t(J), {
|
|
202
203
|
key: 0,
|
|
203
204
|
variant: "body-sm",
|
|
204
205
|
color: "subtle",
|
|
@@ -206,7 +207,7 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
206
207
|
class: "sv-subscription-management-summary__empty-state"
|
|
207
208
|
}, {
|
|
208
209
|
default: d(() => [
|
|
209
|
-
|
|
210
|
+
w(_(t(l)({
|
|
210
211
|
defaultMessage: "Select your plan to see what it costs.",
|
|
211
212
|
id: "subscription_management.summary.empty_state",
|
|
212
213
|
description: "Shown in the order summary before a plan has been picked to preview"
|
|
@@ -221,7 +222,7 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
221
222
|
messages: u.value
|
|
222
223
|
}, {
|
|
223
224
|
default: d(() => [
|
|
224
|
-
T(t(
|
|
225
|
+
T(t(We), {
|
|
225
226
|
class: "sv-subscription-management-summary__invoice",
|
|
226
227
|
invoice: a.invoice,
|
|
227
228
|
"is-customer-facing": ""
|
|
@@ -233,13 +234,13 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
233
234
|
_: 1
|
|
234
235
|
}, 8, ["title"]));
|
|
235
236
|
}
|
|
236
|
-
}),
|
|
237
|
+
}), nt = { class: "sv-subscription-management-success grid grid-cols-1 gap-4" }, it = { class: "sv-subscription-management-success__message" }, at = /* @__PURE__ */ U({
|
|
237
238
|
__name: "SubscriptionManagementSuccess",
|
|
238
239
|
props: {
|
|
239
240
|
pricingGroupName: { type: String }
|
|
240
241
|
},
|
|
241
242
|
setup(a) {
|
|
242
|
-
const l = a, { $t: u } =
|
|
243
|
+
const l = a, { $t: u } = L(), h = m(
|
|
243
244
|
() => u({
|
|
244
245
|
defaultMessage: "Subscription updated",
|
|
245
246
|
description: "Title shown on the manage subscription screen once the change is committed",
|
|
@@ -259,81 +260,81 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
259
260
|
id: "subscription_management.success.message_generic"
|
|
260
261
|
})
|
|
261
262
|
);
|
|
262
|
-
return (o,
|
|
263
|
-
T(
|
|
263
|
+
return (o, P) => (s(), x("div", nt, [
|
|
264
|
+
T(Ke, {
|
|
264
265
|
status: "success",
|
|
265
266
|
title: h.value
|
|
266
267
|
}, {
|
|
267
268
|
default: d(() => [
|
|
268
|
-
C("span",
|
|
269
|
+
C("span", it, _(p.value), 1)
|
|
269
270
|
]),
|
|
270
271
|
_: 1
|
|
271
272
|
}, 8, ["title"])
|
|
272
273
|
]));
|
|
273
274
|
}
|
|
274
|
-
}),
|
|
275
|
+
}), st = { class: "sv-subscription-management__header" }, ot = { class: "flex flex-col gap-2" }, W = "sv-subscription-management-form", re = "sv-subscription-management__customized-pricing-message", rt = /* @__PURE__ */ U({
|
|
275
276
|
__name: "SubscriptionManagement",
|
|
276
277
|
props: {
|
|
277
278
|
configuration: { type: Object }
|
|
278
279
|
},
|
|
279
280
|
setup(a) {
|
|
280
|
-
const l = a, u = `${
|
|
281
|
+
const l = a, u = `${W}__no-payment-method`, h = [
|
|
281
282
|
"BUY_NOW_PAY_LATER",
|
|
282
283
|
"CARD",
|
|
283
284
|
"DIGITAL_WALLET",
|
|
284
285
|
"DIRECT_DEBIT",
|
|
285
286
|
"ONLINE_BANKING"
|
|
286
|
-
], p = (e, n) => !!n && e.id === (n == null ? void 0 : n.payment_method_id) &&
|
|
287
|
+
], p = (e, n) => !!n && e.id === (n == null ? void 0 : n.payment_method_id) && xe(e) && e.customer_id === (n == null ? void 0 : n.customer_id) && h.includes(e.type), { $t: o } = L(), P = Ce(), O = ce(), { dispatchAction: I } = Oe(), { createPricingPlanSchedule: r } = Ge(), {
|
|
287
288
|
subscription: i,
|
|
288
289
|
get: v,
|
|
289
290
|
error: b
|
|
290
|
-
} =
|
|
291
|
+
} = we({
|
|
291
292
|
subscriptionId: l.configuration.subscriptionId
|
|
292
|
-
}), { items:
|
|
293
|
-
customerId:
|
|
294
|
-
}), { paymentMethodOptions:
|
|
293
|
+
}), { items: S, fetchAll: z } = Ae({
|
|
294
|
+
customerId: P.value.customer_id
|
|
295
|
+
}), { paymentMethodOptions: le, get: me } = Ne(), { isLoading: j } = Ue(
|
|
295
296
|
v(),
|
|
296
297
|
z(),
|
|
297
|
-
|
|
298
|
-
),
|
|
299
|
-
() =>
|
|
300
|
-
),
|
|
301
|
-
() =>
|
|
298
|
+
me({ customerId: P.value.customer_id })
|
|
299
|
+
), Q = m(
|
|
300
|
+
() => S.value.filter((e) => p(e, i.value))
|
|
301
|
+
), de = m(
|
|
302
|
+
() => S.value.some(
|
|
302
303
|
(e) => {
|
|
303
304
|
var n;
|
|
304
|
-
return e.id === ((n = i.value) == null ? void 0 : n.payment_method_id) &&
|
|
305
|
+
return e.id === ((n = i.value) == null ? void 0 : n.payment_method_id) && Be(e);
|
|
305
306
|
}
|
|
306
307
|
)
|
|
307
|
-
),
|
|
308
|
+
), A = m(
|
|
308
309
|
() => {
|
|
309
310
|
var e;
|
|
310
|
-
return
|
|
311
|
+
return ze(((e = i.value) == null ? void 0 : e.pricing_plan_schedule_infos) ?? []);
|
|
311
312
|
}
|
|
312
|
-
),
|
|
313
|
-
const e =
|
|
313
|
+
), pe = m(() => {
|
|
314
|
+
const e = A.value;
|
|
314
315
|
return e != null && e.pricing_plan_version ? {
|
|
315
316
|
...e,
|
|
316
|
-
pricing_plan_version:
|
|
317
|
+
pricing_plan_version: Pe(e)
|
|
317
318
|
} : e;
|
|
318
319
|
}), G = m(
|
|
319
320
|
() => {
|
|
320
321
|
var e;
|
|
321
|
-
return
|
|
322
|
+
return Ie(((e = A.value) == null ? void 0 : e.pricing_plan_schedule) ?? {});
|
|
322
323
|
}
|
|
323
324
|
), D = m(
|
|
324
325
|
() => {
|
|
325
326
|
var e;
|
|
326
|
-
return
|
|
327
|
+
return Se((e = A.value) == null ? void 0 : e.pricing_plan_schedule);
|
|
327
328
|
}
|
|
328
|
-
),
|
|
329
|
-
const e =
|
|
329
|
+
), E = m(() => {
|
|
330
|
+
const e = pe.value;
|
|
330
331
|
if (!e)
|
|
331
332
|
return;
|
|
332
333
|
const { enabledPricingId: n } = l.configuration;
|
|
333
334
|
return (n ? [n] : G.value).map(
|
|
334
|
-
(
|
|
335
|
-
).find((
|
|
336
|
-
}),
|
|
335
|
+
(f) => je({ pricingPlanScheduleInfo: e, pricingId: f })
|
|
336
|
+
).find((f) => !!f);
|
|
337
|
+
}), ge = m(
|
|
337
338
|
() => {
|
|
338
339
|
var e;
|
|
339
340
|
return o(
|
|
@@ -343,7 +344,7 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
343
344
|
description: "Title for the manage subscription page, naming the pricing group being changed"
|
|
344
345
|
},
|
|
345
346
|
{
|
|
346
|
-
subject: ((e =
|
|
347
|
+
subject: ((e = E.value) == null ? void 0 : e.name) || o({
|
|
347
348
|
defaultMessage: "subscription",
|
|
348
349
|
id: "subscription_management.title.default_subject",
|
|
349
350
|
description: 'Stands in for the pricing group name in the manage subscription title when no group is known, e.g. "Manage subscription"'
|
|
@@ -351,28 +352,28 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
351
352
|
}
|
|
352
353
|
);
|
|
353
354
|
}
|
|
354
|
-
), M =
|
|
355
|
+
), M = y([]), R = y();
|
|
355
356
|
q(
|
|
356
|
-
[G,
|
|
357
|
+
[G, E],
|
|
357
358
|
([e, n]) => {
|
|
358
|
-
const { enabledPricingId: g } = l.configuration,
|
|
359
|
-
M.value = g &&
|
|
359
|
+
const { enabledPricingId: g } = l.configuration, f = ((n == null ? void 0 : n.pricings) ?? []).map(({ id: $ }) => $);
|
|
360
|
+
M.value = g && f.includes(g) ? [...e.filter(($) => !f.includes($)), g] : e;
|
|
360
361
|
},
|
|
361
362
|
{ immediate: !0 }
|
|
362
363
|
);
|
|
363
|
-
const
|
|
364
|
+
const he = m(() => {
|
|
364
365
|
const e = new Set(M.value), n = new Set(G.value);
|
|
365
366
|
return e.size !== n.size || [...e].some((g) => !n.has(g));
|
|
366
367
|
}), {
|
|
367
|
-
invoice:
|
|
368
|
-
isPending:
|
|
369
|
-
error:
|
|
370
|
-
load:
|
|
371
|
-
} =
|
|
368
|
+
invoice: X,
|
|
369
|
+
isPending: ee,
|
|
370
|
+
error: te,
|
|
371
|
+
load: ve
|
|
372
|
+
} = Je();
|
|
372
373
|
q(
|
|
373
|
-
[M, i,
|
|
374
|
-
([e, n, g,
|
|
375
|
-
!n || e.length === 0 ||
|
|
374
|
+
[M, i, A, D],
|
|
375
|
+
([e, n, g, f]) => {
|
|
376
|
+
!n || e.length === 0 || f || ve({
|
|
376
377
|
subscription: n,
|
|
377
378
|
scheduleInfo: g,
|
|
378
379
|
enabledPricingIds: e
|
|
@@ -380,69 +381,77 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
380
381
|
},
|
|
381
382
|
{ immediate: !0 }
|
|
382
383
|
);
|
|
383
|
-
const
|
|
384
|
-
() => !j.value && !
|
|
385
|
-
),
|
|
386
|
-
if (!(!
|
|
387
|
-
|
|
384
|
+
const N = y(!1), B = y(), V = y(!1), F = y(!1), ne = m(
|
|
385
|
+
() => !j.value && !N.value && !V.value && !!i.value && !!E.value && !D.value && M.value.length > 0 && he.value && !!R.value && !ee.value && !te.value && !!X.value
|
|
386
|
+
), be = async () => {
|
|
387
|
+
if (!(!ne.value || !i.value)) {
|
|
388
|
+
N.value = !0, B.value = void 0;
|
|
388
389
|
try {
|
|
389
390
|
await r({
|
|
390
391
|
pricingPlanSubscriptionId: i.value.id,
|
|
391
392
|
enabledPricings: M.value.map((e) => ({
|
|
392
393
|
pricing_id: e
|
|
393
394
|
}))
|
|
394
|
-
}),
|
|
395
|
+
}), F.value = !0;
|
|
395
396
|
} catch (e) {
|
|
396
|
-
O.error(
|
|
397
|
+
if (O.error(
|
|
397
398
|
"SUBSCRIPTION_UPDATE_FAILED",
|
|
398
399
|
"Failed to start a new pricing plan schedule",
|
|
399
400
|
{},
|
|
400
401
|
e
|
|
401
|
-
),
|
|
402
|
+
), Ze(e)) {
|
|
403
|
+
V.value = !0, B.value = o({
|
|
404
|
+
defaultMessage: "We couldn't confirm your change. It may still go through, so check your subscription before trying again.",
|
|
405
|
+
id: "subscription_management.update_unconfirmed",
|
|
406
|
+
description: "Error shown when committing a subscription change got no clear answer, so the change may still have been made"
|
|
407
|
+
});
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
B.value = o({
|
|
402
411
|
defaultMessage: "Something went wrong. Please try again.",
|
|
403
412
|
id: "subscription_management.update_error",
|
|
404
413
|
description: "Error shown when committing a subscription change fails"
|
|
405
414
|
});
|
|
406
415
|
} finally {
|
|
407
|
-
|
|
416
|
+
N.value = !1;
|
|
408
417
|
}
|
|
409
418
|
}
|
|
410
|
-
},
|
|
419
|
+
}, Y = m(
|
|
411
420
|
() => {
|
|
412
421
|
var e, n, g;
|
|
413
|
-
return ((n = (e =
|
|
422
|
+
return ((n = (e = A.value) == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : n.billing_period) ?? ((g = i.value) == null ? void 0 : g.billing_period);
|
|
414
423
|
}
|
|
415
|
-
), k = m(() =>
|
|
416
|
-
const e = k.value === "customized" ?
|
|
417
|
-
return { form:
|
|
424
|
+
), k = m(() => F.value ? "updated" : j.value ? "loading" : b.value ? "load-error" : E.value && D.value ? "customized" : E.value && Y.value ? "form" : "empty"), fe = m(() => {
|
|
425
|
+
const e = k.value === "customized" ? re : k.value === "form" && Q.value.length === 0 ? u : void 0;
|
|
426
|
+
return { form: W, ...e && { "aria-describedby": e } };
|
|
418
427
|
});
|
|
419
|
-
return (e, n) => (s(), c(t(
|
|
428
|
+
return (e, n) => (s(), c(t(Te), { class: "sv-subscription-management sv-root sv-screen" }, {
|
|
420
429
|
header: d(() => [
|
|
421
|
-
C("div",
|
|
422
|
-
T(t(
|
|
430
|
+
C("div", st, [
|
|
431
|
+
T(t(J), {
|
|
423
432
|
variant: "heading-2",
|
|
424
433
|
tag: "h1",
|
|
425
434
|
class: "sv-subscription-management__title"
|
|
426
435
|
}, {
|
|
427
436
|
default: d(() => [
|
|
428
|
-
|
|
437
|
+
w(_(ge.value), 1)
|
|
429
438
|
]),
|
|
430
439
|
_: 1
|
|
431
440
|
})
|
|
432
441
|
])
|
|
433
442
|
]),
|
|
434
443
|
content: d(() => {
|
|
435
|
-
var g,
|
|
444
|
+
var g, f;
|
|
436
445
|
return [
|
|
437
|
-
k.value === "updated" ? (s(), c(
|
|
446
|
+
k.value === "updated" ? (s(), c(at, {
|
|
438
447
|
key: 0,
|
|
439
448
|
class: "sv-subscription-management__success",
|
|
440
|
-
"pricing-group-name": (g =
|
|
441
|
-
}, null, 8, ["pricing-group-name"])) : k.value === "loading" ? (s(), c(
|
|
449
|
+
"pricing-group-name": (g = E.value) == null ? void 0 : g.name
|
|
450
|
+
}, null, 8, ["pricing-group-name"])) : k.value === "loading" ? (s(), c(ue, {
|
|
442
451
|
key: 1,
|
|
443
452
|
variant: "section",
|
|
444
453
|
class: "min-h-[220px]"
|
|
445
|
-
})) : k.value === "load-error" ? (s(), c(t(
|
|
454
|
+
})) : k.value === "load-error" ? (s(), c(t(Z), {
|
|
446
455
|
key: 2,
|
|
447
456
|
class: "sv-subscription-management__load-error sv-error",
|
|
448
457
|
title: t(o)({
|
|
@@ -450,55 +459,55 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
450
459
|
id: "subscription_management.load_error",
|
|
451
460
|
description: "Error shown in place of the manage subscription form when the subscription cannot be loaded"
|
|
452
461
|
})
|
|
453
|
-
}, null, 8, ["title"])) : k.value === "customized" ? (s(), c(
|
|
462
|
+
}, null, 8, ["title"])) : k.value === "customized" ? (s(), c(oe, {
|
|
454
463
|
key: 3,
|
|
455
464
|
class: "sv-subscription-management__customized-pricing",
|
|
456
465
|
icon: "info"
|
|
457
466
|
}, {
|
|
458
467
|
title: d(() => [
|
|
459
|
-
|
|
468
|
+
w(_(t(o)({
|
|
460
469
|
defaultMessage: "This subscription has custom pricing",
|
|
461
470
|
id: "subscription_management.customized_pricing.title",
|
|
462
471
|
description: "Title shown on the manage subscription screen in place of the form when the subscription has pricing customized for it, which cannot be changed here"
|
|
463
472
|
})), 1)
|
|
464
473
|
]),
|
|
465
474
|
message: d(() => [
|
|
466
|
-
C("span", { id:
|
|
475
|
+
C("span", { id: re }, _(t(o)({
|
|
467
476
|
defaultMessage: "Please contact support to change it.",
|
|
468
477
|
id: "subscription_management.customized_pricing.message",
|
|
469
478
|
description: "Message shown on the manage subscription screen when the subscription has pricing customized for it, which cannot be changed here"
|
|
470
479
|
})), 1)
|
|
471
480
|
]),
|
|
472
481
|
_: 1
|
|
473
|
-
})) : k.value === "form" &&
|
|
482
|
+
})) : k.value === "form" && E.value && Y.value ? (s(), c(et, {
|
|
474
483
|
key: 4,
|
|
475
|
-
id:
|
|
484
|
+
id: W,
|
|
476
485
|
"enabled-pricing-ids": M.value,
|
|
477
486
|
"onUpdate:enabledPricingIds": n[0] || (n[0] = ($) => M.value = $),
|
|
478
487
|
"payment-method-id": R.value,
|
|
479
488
|
"onUpdate:paymentMethodId": n[1] || (n[1] = ($) => R.value = $),
|
|
480
489
|
class: "sv-subscription-management__form",
|
|
481
|
-
"pricing-group":
|
|
482
|
-
"payment-methods":
|
|
483
|
-
"has-expired-payment-method":
|
|
484
|
-
"billing-period":
|
|
485
|
-
currency: (
|
|
486
|
-
disabled:
|
|
487
|
-
onSubmit:
|
|
488
|
-
}, null, 8, ["enabled-pricing-ids", "payment-method-id", "pricing-group", "payment-methods", "has-expired-payment-method", "billing-period", "currency", "disabled"])) : (s(), c(
|
|
490
|
+
"pricing-group": E.value,
|
|
491
|
+
"payment-methods": Q.value,
|
|
492
|
+
"has-expired-payment-method": de.value,
|
|
493
|
+
"billing-period": Y.value,
|
|
494
|
+
currency: (f = t(i)) == null ? void 0 : f.billing_currency,
|
|
495
|
+
disabled: N.value || V.value,
|
|
496
|
+
onSubmit: be
|
|
497
|
+
}, null, 8, ["enabled-pricing-ids", "payment-method-id", "pricing-group", "payment-methods", "has-expired-payment-method", "billing-period", "currency", "disabled"])) : (s(), c(oe, {
|
|
489
498
|
key: 5,
|
|
490
499
|
class: "sv-subscription-management__empty-state",
|
|
491
500
|
icon: "receipt_long"
|
|
492
501
|
}, {
|
|
493
502
|
title: d(() => [
|
|
494
|
-
|
|
503
|
+
w(_(t(o)({
|
|
495
504
|
defaultMessage: "Nothing to change",
|
|
496
505
|
id: "subscription_management.empty_state.title",
|
|
497
506
|
description: "Title shown on the manage subscription screen when the subscription has nothing the customer can change"
|
|
498
507
|
})), 1)
|
|
499
508
|
]),
|
|
500
509
|
message: d(() => [
|
|
501
|
-
|
|
510
|
+
w(_(t(o)({
|
|
502
511
|
defaultMessage: "This subscription has no options that can be changed right now.",
|
|
503
512
|
id: "subscription_management.empty_state.message",
|
|
504
513
|
description: "Message shown on the manage subscription screen when the subscription is not running or has no group of options to choose from"
|
|
@@ -509,45 +518,45 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
509
518
|
];
|
|
510
519
|
}),
|
|
511
520
|
aside: d(() => [
|
|
512
|
-
|
|
521
|
+
F.value ? (s(), c(t(se), {
|
|
513
522
|
key: 0,
|
|
514
523
|
size: "lg",
|
|
515
524
|
class: "sv-action sv-action--primary sv-action--full-width sv-subscription-management__done w-full",
|
|
516
525
|
type: "button",
|
|
517
|
-
onClick: n[2] || (n[2] = (g) => t(
|
|
526
|
+
onClick: n[2] || (n[2] = (g) => t(I)({ action: "navigate-to-customer-overview" }))
|
|
518
527
|
}, {
|
|
519
528
|
default: d(() => [
|
|
520
|
-
|
|
529
|
+
w(_(t(o)({
|
|
521
530
|
defaultMessage: "Done",
|
|
522
531
|
id: "subscription_management.done_button.label",
|
|
523
532
|
description: "Label of the button that leaves the manage subscription screen once the change is committed"
|
|
524
533
|
})), 1)
|
|
525
534
|
]),
|
|
526
535
|
_: 1
|
|
527
|
-
})) : (s(),
|
|
528
|
-
D.value ?
|
|
536
|
+
})) : (s(), x(H, { key: 1 }, [
|
|
537
|
+
D.value ? K("", !0) : (s(), c(tt, {
|
|
529
538
|
key: 0,
|
|
530
539
|
class: "sv-subscription-management__summary",
|
|
531
|
-
invoice: t(
|
|
532
|
-
"is-pending": t(j) || t(
|
|
533
|
-
"has-error": !!t(
|
|
540
|
+
invoice: t(X),
|
|
541
|
+
"is-pending": t(j) || t(ee),
|
|
542
|
+
"has-error": !!t(te)
|
|
534
543
|
}, null, 8, ["invoice", "is-pending", "has-error"])),
|
|
535
|
-
|
|
544
|
+
B.value ? (s(), c(t(Z), {
|
|
536
545
|
key: 1,
|
|
537
546
|
class: "sv-subscription-management__update-error sv-error",
|
|
538
|
-
title:
|
|
539
|
-
}, null, 8, ["title"])) :
|
|
540
|
-
C("div",
|
|
541
|
-
T(t(
|
|
547
|
+
title: B.value
|
|
548
|
+
}, null, 8, ["title"])) : K("", !0),
|
|
549
|
+
C("div", ot, [
|
|
550
|
+
T(t(se), ye({
|
|
542
551
|
size: "lg",
|
|
543
552
|
class: "sv-action sv-action--primary sv-action--full-width sv-subscription-management__update w-full",
|
|
544
553
|
type: "submit"
|
|
545
|
-
},
|
|
546
|
-
disabled: !
|
|
547
|
-
loading:
|
|
554
|
+
}, fe.value, {
|
|
555
|
+
disabled: !ne.value,
|
|
556
|
+
loading: N.value
|
|
548
557
|
}), {
|
|
549
558
|
default: d(() => [
|
|
550
|
-
|
|
559
|
+
w(_(t(o)({
|
|
551
560
|
defaultMessage: "Update subscription",
|
|
552
561
|
id: "subscription_management.update_button.label",
|
|
553
562
|
description: "Label of the button that commits the subscription change"
|
|
@@ -555,9 +564,9 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
555
564
|
]),
|
|
556
565
|
_: 1
|
|
557
566
|
}, 16, ["disabled", "loading"]),
|
|
558
|
-
T(
|
|
567
|
+
T(Re, {
|
|
559
568
|
class: "sv-subscription-management__kpi",
|
|
560
|
-
"payment-method-options": t(
|
|
569
|
+
"payment-method-options": t(le)
|
|
561
570
|
}, null, 8, ["payment-method-options"])
|
|
562
571
|
])
|
|
563
572
|
], 64))
|
|
@@ -565,7 +574,7 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
565
574
|
_: 1
|
|
566
575
|
}));
|
|
567
576
|
}
|
|
568
|
-
}),
|
|
577
|
+
}), ct = /* @__PURE__ */ U({
|
|
569
578
|
__name: "SubscriptionManagement.entry",
|
|
570
579
|
props: {
|
|
571
580
|
portalToken: { type: Object },
|
|
@@ -586,10 +595,10 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
586
595
|
configuration: { type: Object }
|
|
587
596
|
},
|
|
588
597
|
setup(a) {
|
|
589
|
-
const l =
|
|
598
|
+
const l = ke("subscription-management");
|
|
590
599
|
return (u, h) => {
|
|
591
600
|
var p;
|
|
592
|
-
return s(), c(t(
|
|
601
|
+
return s(), c(t(Me), {
|
|
593
602
|
entry: u.$props,
|
|
594
603
|
"component-name": t(l),
|
|
595
604
|
"allowed-portal-types": ["CUSTOMER"],
|
|
@@ -597,7 +606,7 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
597
606
|
onError: h[0] || (h[0] = (o) => u.$emit("error", o))
|
|
598
607
|
}, {
|
|
599
608
|
default: d(() => [
|
|
600
|
-
(s(), c(
|
|
609
|
+
(s(), c(rt, {
|
|
601
610
|
key: a.configuration.subscriptionId,
|
|
602
611
|
configuration: a.configuration
|
|
603
612
|
}, null, 8, ["configuration"]))
|
|
@@ -606,10 +615,10 @@ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid gri
|
|
|
606
615
|
}, 8, ["entry", "component-name", "required-configuration"]);
|
|
607
616
|
};
|
|
608
617
|
}
|
|
609
|
-
}), { define:
|
|
610
|
-
|
|
618
|
+
}), { define: Bt } = $e(
|
|
619
|
+
ct,
|
|
611
620
|
"subscription-management"
|
|
612
621
|
);
|
|
613
622
|
export {
|
|
614
|
-
|
|
623
|
+
Bt as defineSolvimonSubscriptionManagement
|
|
615
624
|
};
|