@solvimon/solvimon-web 0.1.0-alpha.28 → 0.1.0-alpha.29
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 +26 -1
- package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
- package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
- package/dist/{Avatar.vue.es-Beg7umjO.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +8 -8
- package/dist/{Button.vue.es-rh6mITmN.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
- package/dist/{ChargeOnDemandModal-CPjPa_uq.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +35 -34
- package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
- package/dist/{Chip.vue.es-Cn2R_0mE.mjs → Chip.vue.es-D3UDSyXC.mjs} +3 -3
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
- package/dist/{ContextMenu.vue.es-DRxsa7bZ.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
- package/dist/{CustomerBillingInformation.vue.es-DQfL5RMR.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +21 -20
- package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs} +798 -792
- package/dist/{DividerText.vue.es-M0XqSz55.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
- package/dist/{ErrorNotification.vue.es-CKlt4hr2.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
- package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
- package/dist/{IconButton.vue.es-oe4MVBK1.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
- package/dist/{IconTitle.vue.es-BO6KBS4v.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
- package/dist/{Input.vue.es-DAlPmtE_.mjs → Input.vue.es-D8Oj8MWv.mjs} +23 -22
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs} +4 -4
- package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
- package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
- package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
- package/dist/{Modal.vue.es-CTNACAst.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
- package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +46 -88
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-BmA8jbMb.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-D1Xw-xIt.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs} +68 -69
- package/dist/{PaymentIntegrationFormAdyen-CfT5aD4L.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +126 -117
- package/dist/{PaymentIntegrationFormStripe-DKXJ-mjd.mjs → PaymentIntegrationFormStripe-BYdAkvLt.mjs} +193 -179
- package/dist/{PaymentMethod.vue.es-Cauxx4Xr.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
- package/dist/{PaymentMethodForm-CypZOYUZ.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +7 -7
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs} +36 -35
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +7 -7
- package/dist/{PlanCustomizationEditor-Xtww2r9K.mjs → PlanCustomizationEditor-D29N4HUM.mjs} +9 -9
- package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
- package/dist/{PortalNotAvailable-B_59GUwN.mjs → PortalNotAvailable-DPE9y37H.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-C9LJW3b8.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +32 -32
- package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
- package/dist/{Section.vue.es-iS8hVGWA.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
- package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
- package/dist/{StepInput.vue.es-Dpan1RQd.mjs → StepInput.vue.es-DweyzpkL.mjs} +4 -4
- package/dist/{SubscriptionDetails.entry.ce-DufQX3uI.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +230 -225
- package/dist/{SubscriptionSchedules-DAahcNoI.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs} +3 -3
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +23 -22
- package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
- package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
- package/dist/{TrialChip.vue.es-B-XBSHWE.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
- package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
- package/dist/{cn.es-2bVdkiFV.mjs → cn.es-B8acFrov.mjs} +380 -476
- package/dist/components/BillingInformation/BillingInformation.mjs +9 -7
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +57 -54
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -18
- package/dist/components/Invoice/Invoice.mjs +2660 -193
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +6 -4
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +18 -17
- package/dist/components/InvoicesList/InvoicesList.mjs +13 -11
- package/dist/components/PaymentHistory/PaymentHistory.mjs +8 -6
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +19 -17
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +19 -17
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +20 -18
- package/dist/components/WalletBalances/WalletBalances.mjs +17 -15
- package/dist/customElements-BTj4ii4f.mjs +5072 -0
- package/dist/{customer-CqddTiOr.mjs → customer-BIjC0CWJ.mjs} +1 -1
- package/dist/customer.es-DQKl6wFt.mjs +24 -0
- package/dist/{de-DE-BW8dMvhW.mjs → de-DE-DBbERiFr.mjs} +38 -0
- package/dist/{de-DE-BNMj3boy.mjs → de-DE-UJ6X6jXu.mjs} +1 -1
- package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
- package/dist/{formControl-CsITfsBk.mjs → formControl-BZQLHnOO.mjs} +5 -5
- package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
- package/dist/fr-FR-IWJE-urI.mjs +431 -0
- package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
- package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.es-CpmQmvOg.mjs +633 -0
- package/dist/index.mjs +2 -2
- package/dist/{invoices-Cf1qDAv4.mjs → invoices-e1sKLgxg.mjs} +3 -3
- package/dist/{it-IT-Byg06KWc.mjs → it-IT-B7ui2oxO.mjs} +38 -0
- package/dist/{it-IT-DRvuxM1F.mjs → it-IT-DnJP5URH.mjs} +1 -1
- package/dist/{nl-NL-x3zQqzZ7.mjs → nl-NL-Bafh2xoT.mjs} +38 -0
- package/dist/{nl-NL-DLUwWbMG.mjs → nl-NL-q9xfTZF0.mjs} +1 -1
- package/dist/{paymentMethods-BUuOmDq9.mjs → paymentMethods-B_82JGk_.mjs} +2 -2
- package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
- package/dist/{paymentOutcome-D17VD4MV.mjs → paymentOutcome-BXEU5-84.mjs} +5 -5
- package/dist/payments-BnxbzQUC.mjs +68 -0
- package/dist/pricing-BOhvWWMj.mjs +29 -0
- package/dist/{pricingPlanScheduleOverrides-COr9F8DO.mjs → pricingPlanScheduleOverrides-Dxv5FOBd.mjs} +2 -2
- package/dist/{pricingPlanSchedules-BK_o9p6h.mjs → pricingPlanSchedules-Dv7ZCgNp.mjs} +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +128 -83
- package/dist/screens/PayInvoice/PayInvoice.mjs +572 -218
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +21 -19
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +261 -266
- package/dist/{sorting.es-qtEN8J8T.mjs → sorting.es-CVyKw23D.mjs} +1 -1
- package/dist/subscriptions-BWXZGK0E.mjs +66 -0
- package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -0
- package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
- package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +11 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +4 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +23 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -1
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +2 -0
- package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
- package/dist/types/public/core/types.d.ts +5 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +3 -1
- package/dist/types/translations/supported.d.ts +1 -1
- package/dist/types/types/portalAuthentication.d.ts +2 -0
- package/dist/types/types/portalToken.d.ts +9 -0
- package/dist/types/types/shippingAddress.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
- package/dist/{useActionDispatchProvider-DC_fUykI.mjs → useActionDispatchProvider-3W2vEyIg.mjs} +1 -1
- package/dist/{useCustomer-C3kTh7wn.mjs → useCustomer-cObBvDOu.mjs} +2 -2
- package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
- package/dist/{useIncrementalLoading-C_sHmW7d.mjs → useIncrementalLoading-CATuO36d.mjs} +2 -2
- package/dist/{useInvoiceData-BIh8-h8b.mjs → useInvoiceData-DD44HTl7.mjs} +2 -2
- package/dist/{useInvoicesList-Y6p0Pqpy.mjs → useInvoicesList-CpB-41MQ.mjs} +10 -10
- package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
- package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
- package/dist/{usePaymentFormHold-FfNc578l.mjs → usePaymentFormHold-ByUZi3A-.mjs} +28 -36
- package/dist/{usePaymentMethodAvailability-CnYTvG15.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +4 -4
- package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
- package/dist/{usePayments-CykCZPG2.mjs → usePayments-BXABv-lF.mjs} +9 -9
- package/dist/{usePortal-CxzKGhbK.mjs → usePortal-CwR_FxTb.mjs} +1 -1
- package/dist/{useService-B0OQJmif.mjs → useService-BZcbUZHI.mjs} +3 -3
- package/dist/{useTimePeriod.es-JkXdHNWr.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
- package/package.json +7 -7
- package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +0 -50
- package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +0 -5279
- package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +0 -362
- package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
- package/dist/InvoiceSummary.vue.es-DbNoGfYN.mjs +0 -2596
- package/dist/RadioGroupExtended.vue.es-UtKsdmiv.mjs +0 -163
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs +0 -688
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs +0 -5221
- package/dist/TooltipParagraph.vue.es-BjCn2BF6.mjs +0 -129
- package/dist/customElements-Di3zwlEU.mjs +0 -6447
- package/dist/customer.es-B5ppZf0j.mjs +0 -20
- package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
- package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
- package/dist/payments-Ci8bF4C6.mjs +0 -45
- package/dist/subscriptions-CwogJODR.mjs +0 -54
- package/dist/useCustomerFormLabels-CK7K50nB.mjs +0 -1369
- package/dist/useLoadInitialData-4k_Cyqef.mjs +0 -15
- package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +0 -40
- package/dist/usePaymentMethods-gvr-rmwE.mjs +0 -15
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { A as
|
|
3
|
-
import { C as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { u as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { D } from "../../CustomerPaymentMethods.lib-B_753rau.mjs";
|
|
13
|
-
import { u as
|
|
14
|
-
import {
|
|
15
|
-
import { a as
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { computed as f, watch as E, ref as M, defineComponent as O, defineAsyncComponent as P, openBlock as d, createBlock as v, unref as e, withCtx as g, createVNode as y, createCommentVNode as b } from "vue";
|
|
2
|
+
import { A as T } from "../../ApiStatus-CSFKl_ra.mjs";
|
|
3
|
+
import { C as N } from "../../ContentWithAsideLayout-Bnbsq8_5.mjs";
|
|
4
|
+
import { u as D, _ as U } from "../../useInvoicesList-CpB-41MQ.mjs";
|
|
5
|
+
import { u as $ } from "../../usePortal-CwR_FxTb.mjs";
|
|
6
|
+
import { u as j, _ as k } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs";
|
|
7
|
+
import { u as x } from "../../useCustomer-cObBvDOu.mjs";
|
|
8
|
+
import { u as F } from "../../usePaymentMethods-ByaKF7mf.mjs";
|
|
9
|
+
import { _ as W } from "../../BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs";
|
|
10
|
+
import { u as H } from "../../useLoadInitialData-qzdnBoui.mjs";
|
|
11
|
+
import { _ as R } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs";
|
|
12
|
+
import { D as V } from "../../CustomerPaymentMethods.lib-B_753rau.mjs";
|
|
13
|
+
import { u as z, a as G } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs";
|
|
14
|
+
import { e as I, g as X, h as Z, j as q } from "../../customElements-BTj4ii4f.mjs";
|
|
15
|
+
import { a as J } from "../../pricingPlanSchedule-BPrS2WRd.mjs";
|
|
16
|
+
import { c as K } from "../../subscriptions-BWXZGK0E.mjs";
|
|
17
|
+
function Q(s) {
|
|
18
|
+
const u = I(), c = f(() => J(s.value));
|
|
19
|
+
E([c, s], ([i, t]) => {
|
|
20
|
+
i || t.length === 0 || u.warn("ACTIVE_SCHEDULE_NOT_FOUND", "No schedule is currently being billed", {
|
|
20
21
|
schedules: t.flatMap(
|
|
21
|
-
({ pricing_plan_schedule_infos:
|
|
22
|
-
({ id:
|
|
23
|
-
var
|
|
22
|
+
({ pricing_plan_schedule_infos: r }) => (r ?? []).map(
|
|
23
|
+
({ id: o, type: n, start_at: a, end_at: m, ..._ }) => {
|
|
24
|
+
var h;
|
|
24
25
|
return {
|
|
25
|
-
id:
|
|
26
|
-
type: ((
|
|
27
|
-
start_at:
|
|
28
|
-
end_at:
|
|
26
|
+
id: o,
|
|
27
|
+
type: ((h = _.pricing_plan_schedule) == null ? void 0 : h.type) ?? n,
|
|
28
|
+
start_at: a,
|
|
29
|
+
end_at: m
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
32
|
)
|
|
@@ -33,90 +34,134 @@ function X(a) {
|
|
|
33
34
|
});
|
|
34
35
|
});
|
|
35
36
|
}
|
|
36
|
-
const
|
|
37
|
+
const Y = 50, A = ({ default_shipping_address_id: s }) => !!s;
|
|
38
|
+
function ee({ customerId: s }) {
|
|
39
|
+
const u = K(), c = I(), i = M(!1);
|
|
40
|
+
return { hasShippedSubscription: i, check: async (r = []) => {
|
|
41
|
+
if (r.some(A)) {
|
|
42
|
+
i.value = !0;
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
if (s)
|
|
46
|
+
try {
|
|
47
|
+
for (let o = 1; ; o += 1) {
|
|
48
|
+
const { data: n, links: a } = await u.getSubscriptionsOfEveryStatus({
|
|
49
|
+
customerId: s,
|
|
50
|
+
page: o,
|
|
51
|
+
pageSize: Y
|
|
52
|
+
});
|
|
53
|
+
if (n.some(A)) {
|
|
54
|
+
i.value = !0;
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
if (!(a != null && a.next) || !n.length) return;
|
|
58
|
+
}
|
|
59
|
+
} catch (o) {
|
|
60
|
+
c.error(
|
|
61
|
+
"SHIPPED_SUBSCRIPTIONS_LOAD_FAILED",
|
|
62
|
+
"Failed to find out whether the customer has shipped subscriptions",
|
|
63
|
+
{},
|
|
64
|
+
o
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
} };
|
|
68
|
+
}
|
|
69
|
+
const te = 2, oe = /* @__PURE__ */ O({
|
|
37
70
|
__name: "CustomerOverview",
|
|
38
71
|
props: {
|
|
39
72
|
configuration: { type: Object }
|
|
40
73
|
},
|
|
41
|
-
setup(
|
|
42
|
-
var
|
|
43
|
-
const
|
|
74
|
+
setup(s) {
|
|
75
|
+
var C;
|
|
76
|
+
const u = P(
|
|
77
|
+
() => import("../../CustomerShippingAddresses-Bj8Y17O8.mjs").then((l) => l.C)
|
|
78
|
+
), c = s, t = (C = $().value) == null ? void 0 : C.customer_id, r = x({ customerId: t }), o = D({ customerId: t, batchSize: 5 }), n = j({ customerId: t }), a = F({ customerId: t }), m = z({ customerId: t }), _ = f(
|
|
44
79
|
() => {
|
|
45
|
-
var
|
|
46
|
-
return ((
|
|
80
|
+
var l;
|
|
81
|
+
return ((l = m.walletBalances.value) == null ? void 0 : l.wallet_balances) ?? [];
|
|
47
82
|
}
|
|
48
|
-
),
|
|
83
|
+
), h = f(() => n.items.value.slice(0, te)), L = f(
|
|
49
84
|
() => {
|
|
50
|
-
var
|
|
51
|
-
return
|
|
85
|
+
var l;
|
|
86
|
+
return a.items.value.slice(0, ((l = c.configuration) == null ? void 0 : l.maxItems) ?? V);
|
|
52
87
|
}
|
|
53
|
-
), { isLoading:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
88
|
+
), w = ee({ customerId: t }), { isLoading: p } = H(
|
|
89
|
+
r.get.execute(),
|
|
90
|
+
o.fetchInitial(),
|
|
91
|
+
// The active subscriptions answer it for most customers whose order ships. Reading the others
|
|
92
|
+
// can take several requests, so it does not hold up the rest of the screen.
|
|
93
|
+
n.fetchAll().finally(() => void w.check(n.items.value)),
|
|
94
|
+
a.fetchAll(),
|
|
95
|
+
m.fetch()
|
|
96
|
+
), B = () => {
|
|
97
|
+
a.fetchAll();
|
|
61
98
|
}, S = () => {
|
|
62
|
-
|
|
99
|
+
m.fetch();
|
|
63
100
|
};
|
|
64
|
-
return
|
|
101
|
+
return Q(n.items), (l, re) => (d(), v(e(N), { class: "sv-customer-overview sv-root sv-screen" }, {
|
|
65
102
|
header: g(() => [
|
|
66
|
-
e(
|
|
103
|
+
e(r).customer.value ? (d(), v(k, {
|
|
67
104
|
key: 0,
|
|
68
105
|
class: "sv-customer-overview__subscriptions",
|
|
69
|
-
customer: e(
|
|
70
|
-
subscriptions:
|
|
71
|
-
"payment-methods": e(
|
|
72
|
-
"is-loading": e(
|
|
73
|
-
"has-error": !!e(
|
|
106
|
+
customer: e(r).customer.value,
|
|
107
|
+
subscriptions: h.value,
|
|
108
|
+
"payment-methods": e(a).items.value,
|
|
109
|
+
"is-loading": e(p),
|
|
110
|
+
"has-error": !!e(n).error.value
|
|
74
111
|
}, null, 8, ["customer", "subscriptions", "payment-methods", "is-loading", "has-error"])) : b("", !0)
|
|
75
112
|
]),
|
|
76
113
|
content: g(() => [
|
|
77
|
-
|
|
114
|
+
y(U, {
|
|
78
115
|
class: "sv-customer-overview__invoices",
|
|
79
|
-
invoices: e(
|
|
80
|
-
"has-more-items": e(
|
|
81
|
-
"is-loading": e(
|
|
82
|
-
error: e(
|
|
83
|
-
onLoadMore: e(
|
|
116
|
+
invoices: e(o).items.value,
|
|
117
|
+
"has-more-items": e(o).hasNextBatch.value,
|
|
118
|
+
"is-loading": e(p) || e(o).isPending.value,
|
|
119
|
+
error: e(o).error.value,
|
|
120
|
+
onLoadMore: e(o).fetchMore
|
|
84
121
|
}, null, 8, ["invoices", "has-more-items", "is-loading", "error", "onLoadMore"])
|
|
85
122
|
]),
|
|
86
123
|
aside: g(() => [
|
|
87
|
-
|
|
124
|
+
y(G, {
|
|
88
125
|
class: "sv-customer-overview__wallet-balances",
|
|
89
|
-
"has-error": e(
|
|
90
|
-
"is-loading": e(
|
|
126
|
+
"has-error": e(m).apiStatus.value === e(T).Failed,
|
|
127
|
+
"is-loading": e(p),
|
|
91
128
|
"wallet-balances": _.value,
|
|
92
129
|
"show-top-up-button": "",
|
|
93
|
-
customer: e(
|
|
94
|
-
"payment-methods": e(
|
|
95
|
-
subscriptions: e(
|
|
130
|
+
customer: e(r).customer.value,
|
|
131
|
+
"payment-methods": e(a).items.value,
|
|
132
|
+
subscriptions: e(n).items.value,
|
|
96
133
|
onTopUpCharged: S,
|
|
97
134
|
onAutoTopUpSaved: S,
|
|
98
135
|
onAutoTopUpCancelled: S,
|
|
99
|
-
onPaymentMethodStored:
|
|
136
|
+
onPaymentMethodStored: B
|
|
100
137
|
}, null, 8, ["has-error", "is-loading", "wallet-balances", "customer", "payment-methods", "subscriptions"]),
|
|
101
|
-
|
|
138
|
+
y(R, {
|
|
102
139
|
class: "sv-customer-overview__payment-methods",
|
|
103
|
-
configuration:
|
|
104
|
-
"is-loading": e(
|
|
105
|
-
"payment-methods":
|
|
140
|
+
configuration: s.configuration,
|
|
141
|
+
"is-loading": e(p),
|
|
142
|
+
"payment-methods": L.value
|
|
106
143
|
}, null, 8, ["configuration", "is-loading", "payment-methods"]),
|
|
107
|
-
e(
|
|
144
|
+
e(r).customer.value ? (d(), v(W, {
|
|
108
145
|
key: 0,
|
|
109
146
|
class: "sv-customer-overview__billing-information",
|
|
110
|
-
"is-loading": e(
|
|
111
|
-
customer: e(
|
|
112
|
-
}, null, 8, ["is-loading", "customer"])) : b("", !0)
|
|
147
|
+
"is-loading": e(p),
|
|
148
|
+
customer: e(r).customer.value
|
|
149
|
+
}, null, 8, ["is-loading", "customer"])) : b("", !0),
|
|
150
|
+
e(w).hasShippedSubscription.value ? (d(), v(e(u), {
|
|
151
|
+
key: 1,
|
|
152
|
+
class: "sv-customer-overview__shipping-addresses",
|
|
153
|
+
"is-loading": e(p),
|
|
154
|
+
"customer-id": e(t),
|
|
155
|
+
customer: e(r).customer.value
|
|
156
|
+
}, null, 8, ["is-loading", "customer-id", "customer"])) : b("", !0)
|
|
113
157
|
]),
|
|
114
158
|
_: 1
|
|
115
159
|
}));
|
|
116
160
|
}
|
|
117
|
-
}),
|
|
161
|
+
}), se = /* @__PURE__ */ O({
|
|
118
162
|
__name: "CustomerOverview.entry",
|
|
119
163
|
props: {
|
|
164
|
+
portalToken: { type: Object },
|
|
120
165
|
environment: { type: String },
|
|
121
166
|
locale: { type: String },
|
|
122
167
|
dateLocale: { type: String },
|
|
@@ -133,24 +178,24 @@ const q = 2, G = /* @__PURE__ */ C({
|
|
|
133
178
|
branding: { type: Object },
|
|
134
179
|
configuration: { type: Object }
|
|
135
180
|
},
|
|
136
|
-
setup(
|
|
137
|
-
const
|
|
138
|
-
return (
|
|
139
|
-
entry:
|
|
140
|
-
"component-name": e(
|
|
181
|
+
setup(s) {
|
|
182
|
+
const u = Z("customer-overview");
|
|
183
|
+
return (c, i) => (d(), v(e(X), {
|
|
184
|
+
entry: c.$props,
|
|
185
|
+
"component-name": e(u),
|
|
141
186
|
"allowed-portal-types": ["CUSTOMER"],
|
|
142
|
-
onError:
|
|
187
|
+
onError: i[0] || (i[0] = (t) => c.$emit("error", t))
|
|
143
188
|
}, {
|
|
144
189
|
default: g(() => [
|
|
145
|
-
|
|
190
|
+
y(oe, { configuration: s.configuration }, null, 8, ["configuration"])
|
|
146
191
|
]),
|
|
147
192
|
_: 1
|
|
148
193
|
}, 8, ["entry", "component-name"]));
|
|
149
194
|
}
|
|
150
|
-
}), { define:
|
|
151
|
-
|
|
195
|
+
}), { define: be } = q(
|
|
196
|
+
se,
|
|
152
197
|
"customer-overview"
|
|
153
198
|
);
|
|
154
199
|
export {
|
|
155
|
-
|
|
200
|
+
be as defineSolvimonCustomerOverview
|
|
156
201
|
};
|