@solvimon/solvimon-web 0.1.0-alpha.24 → 0.1.0-alpha.26
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 +14 -11
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DW10rozs.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DcrLNA_x.mjs} +6 -6
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jWthTJk-.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js} +1 -1
- package/dist/{Avatar.vue.es-nr8srGuK.js → Avatar.vue.es-Bm6MCMAL.js} +1 -1
- package/dist/{Avatar.vue.es-DzjFvLuK.mjs → Avatar.vue.es-BqQHvLGA.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-C1prOJay.js → BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BptcwJMr.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs} +8 -8
- package/dist/{Button.vue.es-PbJFK8z7.mjs → Button.vue.es-C32_baQN.mjs} +1 -1
- package/dist/{Button.vue.es-TCF-bvDF.js → Button.vue.es-qGvnOKnK.js} +1 -1
- package/dist/ChargeOnDemandModal-CIiI74ls.mjs +983 -0
- package/dist/ChargeOnDemandModal-DIQaGnRs.js +1 -0
- package/dist/Checkout.entry.ce-8EcavNgT.js +2 -0
- package/dist/{Checkout.entry.ce-DHFx5Vnb.mjs → Checkout.entry.ce-BA5ljKj8.mjs} +1562 -1538
- package/dist/{Chip.vue.es-DpcOM3Ai.mjs → Chip.vue.es-CKCOY5T6.mjs} +2 -2
- package/dist/{Chip.vue.es-CAoisngJ.js → Chip.vue.es-D60gTbfe.js} +1 -1
- package/dist/{ContextMenu.vue.es-kzZ3JJHG.js → ContextMenu.vue.es-C7KI8Gz6.js} +1 -1
- package/dist/{ContextMenu.vue.es-tAuFp-6i.mjs → ContextMenu.vue.es-Da-lAmTl.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-BQSl9q6W.mjs → CustomerBillingInformation.vue.es-BxBQt4Q0.mjs} +2 -2
- package/dist/{CustomerBillingInformation.vue.es-Nac6HgLo.js → CustomerBillingInformation.vue.es-bFUx81Ig.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-R47ln7Wb.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs} +6 -6
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BOLf-U0A.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js} +1 -1
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CaNXS48v.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DkbQ2MiR.mjs} +908 -891
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-hBo2Y2mJ.js +1 -0
- package/dist/{DividerText.vue.es-LJ2kZakb.js → DividerText.vue.es-BF3gnr4e.js} +1 -1
- package/dist/{DividerText.vue.es-CSE7a-T0.mjs → DividerText.vue.es-DKl3FnDJ.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DeotDsFP.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs} +4 -4
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-GNPyrcAQ.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js} +1 -1
- package/dist/{ErrorNotification.vue.es-BF6swP7o.js → ErrorNotification.vue.es-BX9dHEc-.js} +1 -1
- package/dist/{ErrorNotification.vue.es-CVUuIt8Z.mjs → ErrorNotification.vue.es-rRKgmkzV.mjs} +1 -1
- package/dist/{IconButton.vue.es-CB1lIPao.js → IconButton.vue.es-Bwdfu-jm.js} +1 -1
- package/dist/{IconButton.vue.es-DGflbWFk.mjs → IconButton.vue.es-UlqwNPAX.mjs} +2 -2
- package/dist/{IconTitle.vue.es-BsdjyGlQ.mjs → IconTitle.vue.es-CK9k69tV.mjs} +3 -3
- package/dist/{IconTitle.vue.es-CMO8EyQl.js → IconTitle.vue.es-Cei98MBw.js} +1 -1
- package/dist/{Input.vue.es-CREdT4nB.js → Input.vue.es-B47l_feL.js} +1 -1
- package/dist/{Input.vue.es-BFbiFXsU.mjs → Input.vue.es-D9IjIWc-.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BZ4D_-7E.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DKlPrxQS.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Btv0rRk4.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DUfJl07Y.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-CrZq0d1M.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-D9Rtgapa.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-j-cNIRD_.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DlJ6lELc.js} +1 -1
- package/dist/InvoiceSummary.vue.es-DBnR9Hs7.js +1 -0
- package/dist/{InvoiceSummary.vue.es-JtOIQ6SJ.mjs → InvoiceSummary.vue.es-DQ4KvTaw.mjs} +576 -565
- package/dist/{Modal.vue.es-BbdtdxsO.js → Modal.vue.es-8LN4gBh0.js} +1 -1
- package/dist/{Modal.vue.es-jT61xK_A.mjs → Modal.vue.es-B9xMiyn3.mjs} +5 -5
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BBoZVnsK.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-B1yGKkWN.js} +1 -1
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dan29qmH.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D34fD3Io.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BJZHkTqA.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-quvnCSFV.mjs → PaymentHistoryBlock-DYa99P1M.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-Dw2wOiAI.js → PaymentHistoryBlock-Ds93gNvh.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C0XIdBbx.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CBZhXQfC.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-5ckQd9eQ.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D0KnSy0y.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-D1oJREmH.js → PaymentIntegrationForm-B_Db4DG1.js} +1 -1
- package/dist/{PaymentIntegrationForm-CQjUZi22.mjs → PaymentIntegrationForm-UWoyZgsR.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js +1 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs +154 -0
- package/dist/{PaymentIntegrationFormAdyen-CyZk9ofV.mjs → PaymentIntegrationFormAdyen-D4qfNtZ_.mjs} +217 -197
- package/dist/PaymentIntegrationFormAdyen-HeA9XIj-.js +98 -0
- package/dist/{PaymentIntegrationFormStripe-D-GaLHwc.mjs → PaymentIntegrationFormStripe-BIiMCWlV.mjs} +247 -220
- package/dist/PaymentIntegrationFormStripe-DUCJTIAq.js +102 -0
- package/dist/PaymentMethod.vue.es-CJcSZ9lN.js +1 -0
- package/dist/{PaymentMethod.vue.es-C0j580g7.mjs → PaymentMethod.vue.es-CKu5nApX.mjs} +168 -148
- package/dist/{PaymentMethodForm-CDV5LR8i.js → PaymentMethodForm-1d0YIGOu.js} +1 -1
- package/dist/{PaymentMethodForm-Bf2Ps6eV.mjs → PaymentMethodForm-B05sHWcW.mjs} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BDm8l_6N.js +1 -0
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-BqPu7CYA.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs} +45 -41
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BIX0k7-q.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js} +1 -1
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-9MUPbgWM.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DGpXRtp4.mjs} +6 -6
- package/dist/PlanCustomizationEditor-CEMP_Dhz.js +1 -0
- package/dist/PlanCustomizationEditor-CpZeilm5.mjs +694 -0
- package/dist/{PricingGroupRangeInput.vue.es-CP7-dmxS.mjs → PricingGroupRangeInput.vue.es-CJpvUP3-.mjs} +4 -4
- package/dist/{PricingGroupRangeInput.vue.es-BchXhunH.js → PricingGroupRangeInput.vue.es-DZSJ5Mz0.js} +1 -1
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DJ81eUJX.mjs +141 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-jrkraJMu.js +1 -0
- package/dist/{RadioGroupExtended.vue.es-_QMReyZ8.mjs → RadioGroupExtended.vue.es-BalV7gwp.mjs} +2 -2
- package/dist/{RadioGroupExtended.vue.es-Cf5R1P9a.js → RadioGroupExtended.vue.es-Dt6LH9Yh.js} +1 -1
- package/dist/{Section.vue.es-KRsHeFoT.mjs → Section.vue.es-D7eiXUbk.mjs} +1 -1
- package/dist/{Section.vue.es-CBZx5x53.js → Section.vue.es-zVXBHAL6.js} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-UdGQMJGY.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVELHoUj.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.mjs} +6 -6
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js +1 -0
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs → Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs} +5 -5
- package/dist/StepInput.vue.es-C3Zm6Wc9.mjs +199 -0
- package/dist/StepInput.vue.es-mAnuCuDQ.js +1 -0
- package/dist/SubscriptionDetails.entry.ce-D4CsSoR9.js +1 -0
- package/dist/SubscriptionDetails.entry.ce-WEimiOex.mjs +1057 -0
- package/dist/{SubscriptionSchedules-1ikoGncQ.js → SubscriptionSchedules-Cm5Dt-1H.js} +1 -1
- package/dist/{SubscriptionSchedules-B6b6xf-E.mjs → SubscriptionSchedules-DrrEAPlx.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dv2bP9vv.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DHp_KtbF.mjs} +2284 -2341
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-t2Awijf5.js +1 -0
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DvYZvTV9.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs} +3 -3
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DZKl0Zxp.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-B41qZmcL.js} +1 -1
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DTjZcOhj.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js} +1 -1
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DmeIKMYI.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DFU0IULg.mjs} +8 -8
- package/dist/{TooltipParagraph.vue.es-nGFfHF1A.mjs → TooltipParagraph.vue.es-BXbOJmjr.mjs} +3 -3
- package/dist/TooltipParagraph.vue.es-Cph6zT31.js +1 -0
- package/dist/{TrialChip.vue.es-DhC5Bpmy.js → TrialChip.vue.es-C_wgHGuN.js} +1 -1
- package/dist/{TrialChip.vue.es-eKgO6an3.mjs → TrialChip.vue.es-C_yRujip.mjs} +2 -2
- package/dist/{cn.es-BD7Afj5Q.mjs → cn.es-CGa6b2Lt.mjs} +2 -2
- package/dist/{cn.es-BLE3T5Rx.js → cn.es-D9YMDvG2.js} +1 -1
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +246 -230
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +201 -212
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +4 -4
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
- package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.mjs +4 -4
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
- package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
- package/dist/{customElements-CSzbVZIH.js → customElements-C963-LtW.js} +36 -32
- package/dist/{customElements-DT1YyL4O.mjs → customElements-D5DAoHRI.mjs} +231 -196
- package/dist/{customer-Cq4fF__H.mjs → customer-DKa1B2vp.mjs} +4 -4
- package/dist/{customer-CJonIvSm.js → customer-TE1FnGT0.js} +1 -1
- package/dist/{de-DE-BSlbAnPE.js → de-DE-B4TUdnUf.js} +1 -1
- package/dist/{de-DE-CyvjSD9b.mjs → de-DE-CLfzTbbX.mjs} +39 -6
- package/dist/de-DE-DaBBl-Ak.js +1 -0
- package/dist/{de-DE-DXsG-vXA.mjs → de-DE-jkW2dJrX.mjs} +28 -14
- package/dist/en-US-BNevqm0M.js +1 -0
- package/dist/{en-US-xQrWj8qI.mjs → en-US-D6SGRAch.mjs} +39 -6
- package/dist/en-US-J85TQRI8.js +1 -0
- package/dist/{en-US-C939IZ5i.mjs → en-US-SDhjlY_v.mjs} +20 -5
- package/dist/formControl-ODrpUvcA.js +1 -0
- package/dist/{index-BPU8tIml.mjs → formControl-dX7l8o3c.mjs} +160 -143
- package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +4 -0
- package/dist/icon-sprite.svg.es-Ds6lDf5p.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{invoices-EamWI_jz.js → invoices-ClqTWYF9.js} +1 -1
- package/dist/{invoices-CVZOfEOY.mjs → invoices-DJTwftJv.mjs} +1 -1
- package/dist/it-IT-BkPbTueL.js +1 -0
- package/dist/{it-IT-DT3rfjOY.js → it-IT-CSYvGmpT.js} +1 -1
- package/dist/{it-IT-BxpwB3oJ.mjs → it-IT-CaaFToGB.mjs} +20 -6
- package/dist/{it-IT-C09oObBM.mjs → it-IT-Cym1UvvK.mjs} +39 -6
- package/dist/{nl-NL-DfkhOJKc.js → nl-NL-CpE4IgwO.js} +1 -1
- package/dist/{nl-NL-na2I4aiP.mjs → nl-NL-D0MQKaql.mjs} +34 -20
- package/dist/{nl-NL-BhNND_yi.mjs → nl-NL-D0c4x5C0.mjs} +39 -6
- package/dist/nl-NL-jIfAVGv0.js +1 -0
- package/dist/paymentMethods-AL2U_byg.js +1 -0
- package/dist/{paymentMethods-By1SebnO.mjs → paymentMethods-CWzJhcWK.mjs} +16 -14
- package/dist/{payments-Dnjg9Se4.js → payments-BmiHMlQt.js} +1 -1
- package/dist/{payments-BYZLQTJ-.mjs → payments-aXyfylwk.mjs} +6 -6
- package/dist/pricing.es-C07bgEZx.js +1 -0
- package/dist/pricing.es-QYWrKMUJ.mjs +30 -0
- package/dist/pricingPlanSchedules-BD4GIP_F.mjs +32 -0
- package/dist/pricingPlanSchedules-BfsMSvN0.js +1 -0
- package/dist/screens/Checkout/Checkout.cjs +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +10 -10
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +57 -55
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +3 -769
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +243 -270
- package/dist/{subscription-CrVOr5MF.mjs → subscription-D1yHKUNc.mjs} +2 -2
- package/dist/{subscriptions-BKER9RUc.js → subscriptions-Cm83ckfl.js} +1 -1
- package/dist/{subscriptions-Gj3KgCZz.mjs → subscriptions-cnR5fnf7.mjs} +1 -1
- package/dist/types/components/{wallets/WalletModalShell.types.d.ts → payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts} +3 -3
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +5 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +5 -9
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +7 -11
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +7 -11
- package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +7 -11
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +7 -11
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +21 -0
- package/dist/types/components/subscriptions/OnDemandItemsCard/OnDemandItemsCard.types.d.ts +7 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +27 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +6 -5
- package/dist/types/services/paymentMethods.types.d.ts +4 -2
- package/dist/types/services/requests.types.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/AgentContext.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +6 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +23 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +16 -4
- package/dist/types/vendor/@solvimon/solvimon-types/types/Embeddable.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +21 -6
- package/dist/types/vendor/@solvimon/solvimon-types/types/OAuth.d.ts +28 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +2 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +6 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanGroups.d.ts +31 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +9 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +3 -3
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/SeatAssignment.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +128 -1
- package/dist/{useActionDispatchProvider-DDHrhy3i.js → useActionDispatchProvider-CHkVQMaE.js} +1 -1
- package/dist/{useActionDispatchProvider-MjTckd4f.mjs → useActionDispatchProvider-DDYqIh3r.mjs} +1 -1
- package/dist/{useCustomer-BW0DBEJh.js → useCustomer-DGYtowRy.js} +1 -1
- package/dist/{useCustomer-CxnF7r8Z.mjs → useCustomer-XZKWsolE.mjs} +1 -1
- package/dist/{useCustomerFormLabels-zPc8QrwJ.mjs → useCustomerFormLabels-CcnkJLcB.mjs} +6 -6
- package/dist/useCustomerFormLabels-DAZziqYt.js +1 -0
- package/dist/{useExperimentalFeature-9teNYGuP.js → useExperimentalFeature-COOU6IZd.js} +1 -1
- package/dist/{useExperimentalFeature-NsSDg-e3.mjs → useExperimentalFeature-ierhOt9Q.mjs} +1 -1
- package/dist/{useInvoiceData-GQwk6fl4.mjs → useInvoiceData-BEK-7msA.mjs} +3 -3
- package/dist/{useInvoiceData-DvV2AsgC.js → useInvoiceData-CQRn8l9C.js} +1 -1
- package/dist/{useInvoicesList-Xnth6s6U.js → useInvoicesList-BQkKyyXa.js} +1 -1
- package/dist/{useInvoicesList-CGmFSQSg.mjs → useInvoicesList-C4I118KM.mjs} +7 -7
- package/dist/{useLoadInitialData-BvvaWeAe.mjs → useLoadInitialData-CR0kbYw8.mjs} +1 -1
- package/dist/{useLoadInitialData-Cjkc70u-.js → useLoadInitialData-CrKnBZs_.js} +1 -1
- package/dist/{usePaymentMethodAvailability-DKyscbom.js → usePaymentMethodAvailability-Ci6LeYKt.js} +1 -1
- package/dist/{usePaymentMethodAvailability-BWaaj3N3.mjs → usePaymentMethodAvailability-ZH-m3B-A.mjs} +12 -12
- package/dist/{usePaymentMethodOptions-l-wVAmIW.mjs → usePaymentMethodOptions-Ciifjo6c.mjs} +15 -13
- package/dist/usePaymentMethodOptions-Cqe92ZBn.js +1 -0
- package/dist/{usePaymentMethods-DvQVnsSV.mjs → usePaymentMethods-B-OKRyKd.mjs} +1 -1
- package/dist/{usePaymentMethods-BDFVB-kK.js → usePaymentMethods-BKwrl82-.js} +1 -1
- package/dist/usePayments-Bauj16B-.js +1 -0
- package/dist/{usePayments-D_dyuf6S.mjs → usePayments-CV85OV8V.mjs} +46 -41
- package/dist/{usePortal-BU4ibdWq.js → usePortal-DSLImEfr.js} +1 -1
- package/dist/{usePortal-Br5lYuPT.mjs → usePortal-H8Tv2TnZ.mjs} +1 -1
- package/dist/{useSubscription-DRBUt9H5.js → useSubscription-BiYNJT2e.js} +1 -1
- package/dist/{useSubscription-CqRae2I9.mjs → useSubscription-DqnxWNKg.mjs} +1 -1
- package/dist/{useTimePeriod.es-BxIGnCAP.mjs → useTimePeriod.es-B22-fno3.mjs} +1 -1
- package/dist/{useTimePeriod.es-DDos3-EH.js → useTimePeriod.es-D2aiyfd-.js} +1 -1
- package/dist/useWatchDebounced-B8iX7ykx.js +1 -0
- package/dist/useWatchDebounced-BHlBPcXB.mjs +20 -0
- package/package.json +11 -8
- package/dist/Checkout.entry.ce-D8O4qJ24.js +0 -2
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D_jcV7VG.js +0 -1
- package/dist/InvoiceSummary.vue.es-BOnvORpf.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-De7h9-fH.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DnBLj1wZ.mjs +0 -141
- package/dist/PaymentIntegrationFormAdyen-BQXXwpUK.js +0 -98
- package/dist/PaymentIntegrationFormStripe-Bs4F7oK_.js +0 -102
- package/dist/PaymentMethod.vue.es-CXV_ThBY.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BwsRDlQJ.js +0 -1
- package/dist/PlanCustomizationEditor-0kEXoOcM.js +0 -1
- package/dist/PlanCustomizationEditor-Dv69xPbX.mjs +0 -877
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DmVJ2JQE.mjs +0 -131
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-YsI__d0V.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cd56tuZb.js +0 -1
- package/dist/TooltipParagraph.vue.es-7IQdU3Tf.js +0 -1
- package/dist/de-DE-DXsDvO5y.js +0 -1
- package/dist/en-US-9xdcz3T5.js +0 -1
- package/dist/en-US-DHdI11k9.js +0 -1
- package/dist/icon-sprite.svg.es-Bt21fMEt.mjs +0 -4
- package/dist/icon-sprite.svg.es-Dauis9LS.js +0 -1
- package/dist/index-DwueOtPi.js +0 -1
- package/dist/it-IT-CcRIzP1A.js +0 -1
- package/dist/nl-NL-5PrgQl8q.js +0 -1
- package/dist/paymentMethods-Bwym8l9a.js +0 -1
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +0 -47
- package/dist/useCustomerFormLabels-C773h3J0.js +0 -1
- package/dist/usePaymentMethodOptions-DuXKS36F.js +0 -1
- package/dist/usePayments-CIJocDhR.js +0 -1
- package/dist/useWatchDebounced-CAU1WI1P.js +0 -1
- package/dist/useWatchDebounced-DT5IicPp.mjs +0 -14
|
@@ -1,97 +1,70 @@
|
|
|
1
|
-
import { ref as S, defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { _ as Q } from "../../ErrorNotification.vue.es-
|
|
4
|
-
import { b as X, g as ue,
|
|
5
|
-
import { C as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import { c as
|
|
14
|
-
import { b as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { _ as
|
|
18
|
-
import { _ as
|
|
19
|
-
import { a as
|
|
20
|
-
import {
|
|
21
|
-
import { _ as
|
|
22
|
-
import { _ as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import { ref as S, defineComponent as M, useModel as H, computed as _, watch as F, openBlock as m, createElementBlock as z, withModifiers as ce, createElementVNode as C, createVNode as h, unref as e, mergeModels as K, inject as le, createBlock as g, withCtx as f, renderSlot as de, createTextVNode as T, toDisplayString as A, createCommentVNode as R, Fragment as me } from "vue";
|
|
2
|
+
import { _ as J } from "../../Button.vue.es-C32_baQN.mjs";
|
|
3
|
+
import { _ as Q } from "../../ErrorNotification.vue.es-rRKgmkzV.mjs";
|
|
4
|
+
import { b as X, g as ue, a as E, h as pe, i as ge, _ as Z, d as fe, e as ve } from "../../customElements-D5DAoHRI.mjs";
|
|
5
|
+
import { C as be } from "../../ContentWithAsideLayout-BCM8tmZN.mjs";
|
|
6
|
+
import { u as he } from "../../useActionDispatchProvider-DDYqIh3r.mjs";
|
|
7
|
+
import { u as _e } from "../../usePortal-H8Tv2TnZ.mjs";
|
|
8
|
+
import { u as ye } from "../../useSubscription-DqnxWNKg.mjs";
|
|
9
|
+
import { u as we } from "../../useCustomer-XZKWsolE.mjs";
|
|
10
|
+
import { u as Se } from "../../usePaymentMethods-B-OKRyKd.mjs";
|
|
11
|
+
import { u as Pe } from "../../usePaymentMethodOptions-Ciifjo6c.mjs";
|
|
12
|
+
import { u as Ie } from "../../useLoadInitialData-CR0kbYw8.mjs";
|
|
13
|
+
import { c as Me } from "../../invoices-DJTwftJv.mjs";
|
|
14
|
+
import { b as $e, c as ke, d as Oe } from "../../pricingPlanSchedule-BPrS2WRd.mjs";
|
|
15
|
+
import { c as Ae } from "../../pricingPlanSchedules-BD4GIP_F.mjs";
|
|
16
|
+
import { a as Ce } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.mjs";
|
|
17
|
+
import { _ as Ee } from "../../Divider.vue.es-DnP_HqLz.mjs";
|
|
18
|
+
import { _ as Le } from "../../PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DJ81eUJX.mjs";
|
|
19
|
+
import { _ as xe, a as je } from "../../AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DcrLNA_x.mjs";
|
|
20
|
+
import { a as Ne } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs";
|
|
21
|
+
import { _ as Te } from "../../Section.vue.es-D7eiXUbk.mjs";
|
|
22
|
+
import { _ as ee } from "../../Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs";
|
|
23
|
+
import { _ as Be } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs";
|
|
24
|
+
import { M as Ue } from "../../Modal.vue.es-B9xMiyn3.mjs";
|
|
25
|
+
import { a as Ge } from "../../sessionReference-3h-6FdrC.mjs";
|
|
26
|
+
function Ve() {
|
|
27
|
+
const { getInvoicePreview: n } = Me(), l = X(), t = S(), c = S(!1), d = S(), v = ue();
|
|
28
|
+
return { invoice: t, isPending: c, error: d, load: async ({
|
|
29
|
+
subscription: o,
|
|
30
|
+
enabledPricingIds: b
|
|
30
31
|
}) => {
|
|
31
|
-
const
|
|
32
|
-
enabledPricings:
|
|
33
|
-
pricingPlanScheduleInfos:
|
|
32
|
+
const a = $e({
|
|
33
|
+
enabledPricings: b.map((u) => ({ pricing_id: u })),
|
|
34
|
+
pricingPlanScheduleInfos: o.pricing_plan_schedule_infos
|
|
34
35
|
});
|
|
35
|
-
if (!
|
|
36
|
-
|
|
36
|
+
if (!a) {
|
|
37
|
+
t.value = void 0;
|
|
37
38
|
return;
|
|
38
39
|
}
|
|
39
|
-
const i =
|
|
40
|
-
|
|
40
|
+
const i = v();
|
|
41
|
+
c.value = !0, d.value = void 0;
|
|
41
42
|
try {
|
|
42
|
-
const u = await
|
|
43
|
+
const u = await n({
|
|
43
44
|
// The subscription is running already, so it is priced as itself rather than as the
|
|
44
45
|
// template for a new one — and the customer it is invoiced to is known.
|
|
45
46
|
forExistingSubscription: !0,
|
|
46
|
-
pricingPlanSubscriptionId:
|
|
47
|
-
customizations:
|
|
47
|
+
pricingPlanSubscriptionId: o.id,
|
|
48
|
+
customizations: a
|
|
48
49
|
});
|
|
49
50
|
if (!i()) return;
|
|
50
|
-
|
|
51
|
+
t.value = u.invoice;
|
|
51
52
|
} catch (u) {
|
|
52
53
|
if (!i()) return;
|
|
53
|
-
|
|
54
|
+
l.error(
|
|
54
55
|
"INVOICE_PREVIEW_FAILED",
|
|
55
|
-
"Failed to
|
|
56
|
-
{},
|
|
56
|
+
"Failed to load the invoice preview",
|
|
57
|
+
{ preview: "SUBSCRIPTION_UPGRADE" },
|
|
57
58
|
u
|
|
58
|
-
),
|
|
59
|
+
), d.value = u, t.value = void 0;
|
|
59
60
|
} finally {
|
|
60
|
-
i() && (
|
|
61
|
+
i() && (c.value = !1);
|
|
61
62
|
}
|
|
62
63
|
} };
|
|
63
64
|
}
|
|
64
|
-
|
|
65
|
-
const t = pe(), a = ge();
|
|
66
|
-
function n({
|
|
67
|
-
scheduleId: c
|
|
68
|
-
}) {
|
|
69
|
-
return t({
|
|
70
|
-
url: `${a.apiUrls.config}/portal/pricing-plan-schedules/${c}/on-demand-pricing-items`
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function s({
|
|
74
|
-
pricingPlanSubscriptionId: c,
|
|
75
|
-
enabledPricings: p
|
|
76
|
-
}) {
|
|
77
|
-
return t({
|
|
78
|
-
url: `${a.apiUrls.config}/portal/pricing-plan-schedules`,
|
|
79
|
-
options: { method: "POST" },
|
|
80
|
-
data: {
|
|
81
|
-
pricing_plan_subscription_id: c,
|
|
82
|
-
enabled_pricings: p,
|
|
83
|
-
start_at: (/* @__PURE__ */ new Date()).toJSON()
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
return {
|
|
88
|
-
getOnDemandPricingItems: n,
|
|
89
|
-
createPricingPlanSchedule: s
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
const Re = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-4" }, ze = /* @__PURE__ */ I({
|
|
65
|
+
const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-4" }, Fe = /* @__PURE__ */ M({
|
|
93
66
|
__name: "SubscriptionManagementForm",
|
|
94
|
-
props: /* @__PURE__ */
|
|
67
|
+
props: /* @__PURE__ */ K({
|
|
95
68
|
pricingGroup: { type: Object },
|
|
96
69
|
paymentMethods: { type: Array },
|
|
97
70
|
paymentMethodOptions: { type: Array },
|
|
@@ -104,136 +77,136 @@ const Re = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
104
77
|
paymentMethodId: {},
|
|
105
78
|
paymentMethodIdModifiers: {}
|
|
106
79
|
}),
|
|
107
|
-
emits: /* @__PURE__ */
|
|
108
|
-
setup(
|
|
109
|
-
const
|
|
110
|
-
const i =
|
|
80
|
+
emits: /* @__PURE__ */ K(["add-payment-method"], ["update:enabledPricingIds", "update:paymentMethodId"]),
|
|
81
|
+
setup(n, { emit: l }) {
|
|
82
|
+
const t = n, c = l, d = H(n, "enabledPricingIds"), v = H(n, "paymentMethodId"), { $t: y } = E(), o = (a) => {
|
|
83
|
+
const i = a ? Date.parse(a) : NaN;
|
|
111
84
|
return Number.isFinite(i) ? i : 0;
|
|
112
|
-
},
|
|
113
|
-
() => [...
|
|
85
|
+
}, b = _(
|
|
86
|
+
() => [...t.paymentMethods ?? []].sort((a, i) => o(i.created_at) - o(a.created_at))
|
|
114
87
|
);
|
|
115
88
|
return F(
|
|
116
|
-
() =>
|
|
117
|
-
(
|
|
89
|
+
() => t.paymentMethods,
|
|
90
|
+
(a, i) => {
|
|
118
91
|
var L;
|
|
119
|
-
const u =
|
|
120
|
-
({ id: P }) => !(i != null && i.some((
|
|
92
|
+
const u = a == null ? void 0 : a.find(
|
|
93
|
+
({ id: P }) => !(i != null && i.some((B) => B.id === P))
|
|
121
94
|
);
|
|
122
95
|
if (u && (i != null && i.length)) {
|
|
123
|
-
|
|
96
|
+
v.value = u.id;
|
|
124
97
|
return;
|
|
125
98
|
}
|
|
126
|
-
|
|
99
|
+
a != null && a.some(({ id: P }) => P === v.value) || (v.value = (L = (a == null ? void 0 : a.find(({ is_default: P }) => P)) ?? b.value[0]) == null ? void 0 : L.id);
|
|
127
100
|
},
|
|
128
101
|
{ immediate: !0 }
|
|
129
|
-
), (
|
|
102
|
+
), (a, i) => (m(), z("form", {
|
|
130
103
|
class: "sv-subscription-management-form",
|
|
131
104
|
onSubmit: i[3] || (i[3] = ce(() => {
|
|
132
105
|
}, ["prevent"]))
|
|
133
106
|
}, [
|
|
134
|
-
|
|
135
|
-
h(
|
|
136
|
-
modelValue:
|
|
137
|
-
"onUpdate:modelValue": i[0] || (i[0] = (u) =>
|
|
107
|
+
C("div", De, [
|
|
108
|
+
h(Le, {
|
|
109
|
+
modelValue: d.value,
|
|
110
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => d.value = u),
|
|
138
111
|
class: "sv-subscription-management-form__pricing-group",
|
|
139
|
-
"group-name":
|
|
140
|
-
pricings:
|
|
141
|
-
"billing-period":
|
|
142
|
-
currency:
|
|
112
|
+
"group-name": n.pricingGroup.name,
|
|
113
|
+
pricings: n.pricingGroup.pricings,
|
|
114
|
+
"billing-period": n.billingPeriod,
|
|
115
|
+
currency: n.currency
|
|
143
116
|
}, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"]),
|
|
144
|
-
|
|
145
|
-
h(e(
|
|
117
|
+
C("div", null, [
|
|
118
|
+
h(e(Ee), { spacing: "xs" })
|
|
146
119
|
]),
|
|
147
|
-
h(
|
|
148
|
-
modelValue:
|
|
149
|
-
"onUpdate:modelValue": i[1] || (i[1] = (u) =>
|
|
120
|
+
h(xe, {
|
|
121
|
+
modelValue: v.value,
|
|
122
|
+
"onUpdate:modelValue": i[1] || (i[1] = (u) => v.value = u),
|
|
150
123
|
class: "sv-subscription-management-form__payment-methods",
|
|
151
|
-
"payment-methods":
|
|
152
|
-
"payment-method-options":
|
|
124
|
+
"payment-methods": b.value,
|
|
125
|
+
"payment-method-options": n.paymentMethodOptions,
|
|
153
126
|
required: "",
|
|
154
|
-
disabled:
|
|
127
|
+
disabled: n.disabled,
|
|
155
128
|
label: e(y)({
|
|
156
129
|
defaultMessage: "Payment method",
|
|
157
130
|
id: "subscription_management.payment_method_selector.label",
|
|
158
131
|
description: "Label above the payment method that pays for the subscription change"
|
|
159
132
|
}),
|
|
160
|
-
onAddPaymentMethod: i[2] || (i[2] = (u) =>
|
|
133
|
+
onAddPaymentMethod: i[2] || (i[2] = (u) => c("add-payment-method"))
|
|
161
134
|
}, null, 8, ["modelValue", "payment-methods", "payment-method-options", "disabled", "label"])
|
|
162
135
|
])
|
|
163
136
|
], 32));
|
|
164
137
|
}
|
|
165
|
-
}),
|
|
138
|
+
}), Re = /* @__PURE__ */ M({
|
|
166
139
|
__name: "TranslationOverride",
|
|
167
140
|
props: {
|
|
168
141
|
messages: { type: Object }
|
|
169
142
|
},
|
|
170
|
-
setup(
|
|
171
|
-
const
|
|
172
|
-
...
|
|
173
|
-
...
|
|
143
|
+
setup(n) {
|
|
144
|
+
const l = n, t = le(pe, void 0), c = _(() => ({
|
|
145
|
+
...t == null ? void 0 : t.messages.value,
|
|
146
|
+
...l.messages
|
|
174
147
|
}));
|
|
175
|
-
return (
|
|
176
|
-
var y,
|
|
177
|
-
return m(),
|
|
178
|
-
locale: (y = e(
|
|
179
|
-
"date-locale": (
|
|
180
|
-
messages:
|
|
148
|
+
return (d, v) => {
|
|
149
|
+
var y, o;
|
|
150
|
+
return m(), g(e(ge), {
|
|
151
|
+
locale: (y = e(t)) == null ? void 0 : y.locale.value,
|
|
152
|
+
"date-locale": (o = e(t)) == null ? void 0 : o.dateLocale.value,
|
|
153
|
+
messages: c.value,
|
|
181
154
|
"show-timezones": !1
|
|
182
155
|
}, {
|
|
183
|
-
default:
|
|
184
|
-
de(
|
|
156
|
+
default: f(() => [
|
|
157
|
+
de(d.$slots, "default")
|
|
185
158
|
]),
|
|
186
159
|
_: 3
|
|
187
160
|
}, 8, ["locale", "date-locale", "messages"]);
|
|
188
161
|
};
|
|
189
162
|
}
|
|
190
|
-
}),
|
|
163
|
+
}), ze = /* @__PURE__ */ M({
|
|
191
164
|
__name: "SubscriptionManagementSummary",
|
|
192
165
|
props: {
|
|
193
166
|
invoice: { type: Object },
|
|
194
167
|
isPending: { type: Boolean },
|
|
195
168
|
hasError: { type: Boolean }
|
|
196
169
|
},
|
|
197
|
-
setup(
|
|
198
|
-
const { $t:
|
|
199
|
-
"invoice_preview.total_due_today_heading":
|
|
170
|
+
setup(n) {
|
|
171
|
+
const { $t: l } = E(), t = _(() => ({
|
|
172
|
+
"invoice_preview.total_due_today_heading": l({
|
|
200
173
|
defaultMessage: "Total due",
|
|
201
174
|
id: "subscription_management.summary.total_due_heading",
|
|
202
175
|
description: 'Heading above the total of the invoice previewing a subscription change, replacing the shared preview’s "Total due today"'
|
|
203
176
|
})
|
|
204
177
|
}));
|
|
205
|
-
return (
|
|
178
|
+
return (c, d) => (m(), g(e(Te), {
|
|
206
179
|
class: "sv-subscription-management-summary",
|
|
207
|
-
title: e(
|
|
180
|
+
title: e(l)({
|
|
208
181
|
defaultMessage: "Order summary",
|
|
209
182
|
id: "subscription_management.summary.title",
|
|
210
183
|
description: "Title of the block previewing what a subscription change is invoiced for"
|
|
211
184
|
})
|
|
212
185
|
}, {
|
|
213
|
-
default:
|
|
214
|
-
|
|
186
|
+
default: f(() => [
|
|
187
|
+
n.hasError ? (m(), g(e(Q), {
|
|
215
188
|
key: 0,
|
|
216
189
|
class: "sv-subscription-management-summary__error sv-error",
|
|
217
|
-
title: e(
|
|
190
|
+
title: e(l)({
|
|
218
191
|
defaultMessage: "Unable to calculate the total. Please try again.",
|
|
219
192
|
id: "subscription_management.summary.error",
|
|
220
193
|
description: "Error shown when the invoice preview for a subscription change cannot be loaded"
|
|
221
194
|
})
|
|
222
|
-
}, null, 8, ["title"])) :
|
|
195
|
+
}, null, 8, ["title"])) : n.isPending || !n.invoice ? (m(), g(ee, {
|
|
223
196
|
key: 1,
|
|
224
197
|
variant: "section",
|
|
225
198
|
class: "sv-subscription-management-summary__skeleton min-h-[120px]"
|
|
226
199
|
}, {
|
|
227
|
-
default:
|
|
228
|
-
|
|
200
|
+
default: f(() => [
|
|
201
|
+
n.isPending ? R("", !0) : (m(), g(e(Z), {
|
|
229
202
|
key: 0,
|
|
230
203
|
variant: "body-sm",
|
|
231
204
|
color: "subtle",
|
|
232
205
|
tag: "div",
|
|
233
206
|
class: "sv-subscription-management-summary__empty-state"
|
|
234
207
|
}, {
|
|
235
|
-
default:
|
|
236
|
-
T(
|
|
208
|
+
default: f(() => [
|
|
209
|
+
T(A(e(l)({
|
|
237
210
|
defaultMessage: "Select your plan to see what it costs.",
|
|
238
211
|
id: "subscription_management.summary.empty_state",
|
|
239
212
|
description: "Shown in the order summary before a plan has been picked to preview"
|
|
@@ -243,14 +216,14 @@ const Re = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
243
216
|
}))
|
|
244
217
|
]),
|
|
245
218
|
_: 1
|
|
246
|
-
})) : (m(),
|
|
219
|
+
})) : (m(), g(Re, {
|
|
247
220
|
key: 2,
|
|
248
|
-
messages:
|
|
221
|
+
messages: t.value
|
|
249
222
|
}, {
|
|
250
|
-
default:
|
|
251
|
-
h(e(
|
|
223
|
+
default: f(() => [
|
|
224
|
+
h(e(Ne), {
|
|
252
225
|
class: "sv-subscription-management-summary__invoice",
|
|
253
|
-
invoice:
|
|
226
|
+
invoice: n.invoice,
|
|
254
227
|
"is-customer-facing": ""
|
|
255
228
|
}, null, 8, ["invoice"])
|
|
256
229
|
]),
|
|
@@ -260,45 +233,45 @@ const Re = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
260
233
|
_: 1
|
|
261
234
|
}, 8, ["title"]));
|
|
262
235
|
}
|
|
263
|
-
}),
|
|
236
|
+
}), Ye = { class: "sv-subscription-management-success grid grid-cols-1 gap-4" }, qe = { class: "sv-subscription-management-success__message" }, We = /* @__PURE__ */ M({
|
|
264
237
|
__name: "SubscriptionManagementSuccess",
|
|
265
238
|
props: {
|
|
266
239
|
pricingGroupName: { type: String }
|
|
267
240
|
},
|
|
268
|
-
setup(
|
|
269
|
-
const
|
|
270
|
-
() =>
|
|
241
|
+
setup(n) {
|
|
242
|
+
const l = n, { $t: t } = E(), c = _(
|
|
243
|
+
() => t({
|
|
271
244
|
defaultMessage: "Subscription updated",
|
|
272
245
|
description: "Title shown on the manage subscription screen once the change is committed",
|
|
273
246
|
id: "subscription_management.success.title"
|
|
274
247
|
})
|
|
275
|
-
),
|
|
276
|
-
() =>
|
|
248
|
+
), d = _(
|
|
249
|
+
() => l.pricingGroupName ? t(
|
|
277
250
|
{
|
|
278
251
|
defaultMessage: "Your {subject} has been changed. Please be aware that it can take some time to reflect this change in your subscription.",
|
|
279
252
|
description: "Confirmation of the pricing group a committed subscription change applied to",
|
|
280
253
|
id: "subscription_management.success.message"
|
|
281
254
|
},
|
|
282
|
-
{ subject:
|
|
283
|
-
) :
|
|
255
|
+
{ subject: l.pricingGroupName }
|
|
256
|
+
) : t({
|
|
284
257
|
defaultMessage: "Your subscription has been changed. Please be aware that it can take some time to reflect this change in your subscription.",
|
|
285
258
|
description: "Confirmation of a committed subscription change when the pricing group is not known",
|
|
286
259
|
id: "subscription_management.success.message_generic"
|
|
287
260
|
})
|
|
288
261
|
);
|
|
289
|
-
return (
|
|
262
|
+
return (v, y) => (m(), z("div", Ye, [
|
|
290
263
|
h(Be, {
|
|
291
264
|
status: "success",
|
|
292
|
-
title:
|
|
265
|
+
title: c.value
|
|
293
266
|
}, {
|
|
294
|
-
default:
|
|
295
|
-
|
|
267
|
+
default: f(() => [
|
|
268
|
+
C("span", qe, A(d.value), 1)
|
|
296
269
|
]),
|
|
297
270
|
_: 1
|
|
298
271
|
}, 8, ["title"])
|
|
299
272
|
]));
|
|
300
273
|
}
|
|
301
|
-
}),
|
|
274
|
+
}), He = /* @__PURE__ */ M({
|
|
302
275
|
__name: "AddPaymentMethodModal",
|
|
303
276
|
props: {
|
|
304
277
|
showModal: { type: Boolean },
|
|
@@ -307,102 +280,102 @@ const Re = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
307
280
|
isLoading: { type: Boolean }
|
|
308
281
|
},
|
|
309
282
|
emits: ["success", "failure", "close"],
|
|
310
|
-
setup(
|
|
311
|
-
const
|
|
312
|
-
var
|
|
313
|
-
return !!((
|
|
283
|
+
setup(n, { emit: l }) {
|
|
284
|
+
const t = l, { $t: c } = E(), d = S(), v = _(() => {
|
|
285
|
+
var o;
|
|
286
|
+
return !!((o = d.value) != null && o.isSaving);
|
|
314
287
|
}), y = () => {
|
|
315
|
-
var
|
|
316
|
-
(
|
|
288
|
+
var o;
|
|
289
|
+
(o = d.value) == null || o.submit();
|
|
317
290
|
};
|
|
318
|
-
return (
|
|
291
|
+
return (o, b) => (m(), g(e(Ue), {
|
|
319
292
|
"no-click-away": "",
|
|
320
293
|
size: "lg",
|
|
321
|
-
"show-modal":
|
|
322
|
-
"is-loading":
|
|
323
|
-
title: e(
|
|
294
|
+
"show-modal": n.showModal,
|
|
295
|
+
"is-loading": v.value,
|
|
296
|
+
title: e(c)({
|
|
324
297
|
defaultMessage: "Add payment method",
|
|
325
298
|
id: "add_payment_method_modal.title",
|
|
326
299
|
description: "Title of the modal for adding a payment method"
|
|
327
300
|
}),
|
|
328
|
-
"sub-title": e(
|
|
301
|
+
"sub-title": e(c)({
|
|
329
302
|
defaultMessage: "Add a new payment method to pay with.",
|
|
330
303
|
id: "add_payment_method_modal.subtitle",
|
|
331
304
|
description: "Subtitle of the modal for adding a payment method"
|
|
332
305
|
}),
|
|
333
|
-
"confirm-button-text": e(
|
|
306
|
+
"confirm-button-text": e(c)({
|
|
334
307
|
defaultMessage: "Save payment method",
|
|
335
308
|
id: "add_payment_method_modal.confirm_button.label",
|
|
336
309
|
description: "Label of the button that stores the payment method being added"
|
|
337
310
|
}),
|
|
338
|
-
"cancel-button-text": e(
|
|
311
|
+
"cancel-button-text": e(c)({
|
|
339
312
|
defaultMessage: "Cancel",
|
|
340
313
|
id: "add_payment_method_modal.cancel_button.label",
|
|
341
314
|
description: "Label of the button that abandons adding a payment method"
|
|
342
315
|
}),
|
|
343
316
|
onConfirm: y,
|
|
344
|
-
onClose:
|
|
317
|
+
onClose: b[2] || (b[2] = (a) => t("close"))
|
|
345
318
|
}, {
|
|
346
|
-
body:
|
|
347
|
-
h(
|
|
319
|
+
body: f(() => [
|
|
320
|
+
h(je, {
|
|
348
321
|
ref_key: "addPaymentMethodRef",
|
|
349
|
-
ref:
|
|
322
|
+
ref: d,
|
|
350
323
|
class: "sv-add-payment-method-modal sv-add-payment-method-modal__form",
|
|
351
|
-
customer:
|
|
352
|
-
"payment-method-options":
|
|
353
|
-
"is-loading":
|
|
354
|
-
"is-active":
|
|
355
|
-
onSuccess:
|
|
356
|
-
onFailure:
|
|
324
|
+
customer: n.customer,
|
|
325
|
+
"payment-method-options": n.paymentMethodOptions,
|
|
326
|
+
"is-loading": n.isLoading,
|
|
327
|
+
"is-active": n.showModal,
|
|
328
|
+
onSuccess: b[0] || (b[0] = (a) => t("success")),
|
|
329
|
+
onFailure: b[1] || (b[1] = (a) => t("failure", a))
|
|
357
330
|
}, null, 8, ["customer", "payment-method-options", "is-loading", "is-active"])
|
|
358
331
|
]),
|
|
359
332
|
_: 1
|
|
360
333
|
}, 8, ["show-modal", "is-loading", "title", "sub-title", "confirm-button-text", "cancel-button-text"]));
|
|
361
334
|
}
|
|
362
|
-
}),
|
|
335
|
+
}), Ke = { class: "sv-subscription-management__header" }, Je = { class: "flex flex-col gap-2" }, Qe = /* @__PURE__ */ M({
|
|
363
336
|
__name: "SubscriptionManagement",
|
|
364
337
|
props: {
|
|
365
338
|
configuration: { type: Object }
|
|
366
339
|
},
|
|
367
|
-
setup(
|
|
368
|
-
const
|
|
369
|
-
subscriptionId:
|
|
370
|
-
}), { items:
|
|
371
|
-
customerId:
|
|
372
|
-
}), { customer: u, get: L } =
|
|
373
|
-
|
|
340
|
+
setup(n) {
|
|
341
|
+
const l = n, { $t: t } = E(), c = _e(), d = X(), { dispatchAction: v } = he(), { createPricingPlanSchedule: y } = Ae(), { subscription: o, get: b } = ye({
|
|
342
|
+
subscriptionId: l.configuration.subscriptionId
|
|
343
|
+
}), { items: a, fetchAll: i } = Se({
|
|
344
|
+
customerId: c.value.customer_id
|
|
345
|
+
}), { customer: u, get: L } = we({ customerId: c.value.customer_id }), { paymentMethodOptions: P, get: B } = Pe(), { isLoading: U } = Ie(
|
|
346
|
+
b(),
|
|
374
347
|
i(),
|
|
375
348
|
L.execute(),
|
|
376
|
-
|
|
349
|
+
B({ customerId: c.value.customer_id })
|
|
377
350
|
), x = S(!1), te = async () => {
|
|
378
351
|
await i(), x.value = !1;
|
|
379
|
-
},
|
|
352
|
+
}, G = _(
|
|
380
353
|
() => {
|
|
381
|
-
var
|
|
382
|
-
return
|
|
354
|
+
var s;
|
|
355
|
+
return ke(((s = o.value) == null ? void 0 : s.pricing_plan_schedule_infos) ?? []);
|
|
383
356
|
}
|
|
384
|
-
),
|
|
385
|
-
var
|
|
386
|
-
const
|
|
387
|
-
if (!
|
|
357
|
+
), k = _(() => {
|
|
358
|
+
var I;
|
|
359
|
+
const s = G.value;
|
|
360
|
+
if (!s)
|
|
388
361
|
return;
|
|
389
|
-
const { enabledPricingId:
|
|
390
|
-
return (
|
|
391
|
-
({ pricing_id:
|
|
362
|
+
const { enabledPricingId: r } = l.configuration;
|
|
363
|
+
return (r ? [r] : (((I = s.pricing_plan_schedule) == null ? void 0 : I.enabled_pricings) ?? []).map(
|
|
364
|
+
({ pricing_id: p }) => p
|
|
392
365
|
)).map(
|
|
393
|
-
(
|
|
394
|
-
).find((
|
|
366
|
+
(p) => Oe({ pricingPlanScheduleInfo: s, pricingId: p })
|
|
367
|
+
).find((p) => !!p);
|
|
395
368
|
}), ne = _(
|
|
396
369
|
() => {
|
|
397
|
-
var
|
|
398
|
-
return
|
|
370
|
+
var s;
|
|
371
|
+
return t(
|
|
399
372
|
{
|
|
400
373
|
defaultMessage: "Manage {subject}",
|
|
401
374
|
id: "subscription_management.title",
|
|
402
375
|
description: "Title for the manage subscription page, naming the pricing group being changed"
|
|
403
376
|
},
|
|
404
377
|
{
|
|
405
|
-
subject: ((
|
|
378
|
+
subject: ((s = k.value) == null ? void 0 : s.name) || t({
|
|
406
379
|
defaultMessage: "subscription",
|
|
407
380
|
id: "subscription_management.title.default_subject",
|
|
408
381
|
description: 'Stands in for the pricing group name in the manage subscription title when no group is known, e.g. "Manage subscription"'
|
|
@@ -410,15 +383,15 @@ const Re = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
410
383
|
}
|
|
411
384
|
);
|
|
412
385
|
}
|
|
413
|
-
), $ = S([]),
|
|
386
|
+
), $ = S([]), V = S();
|
|
414
387
|
F(
|
|
415
|
-
[
|
|
416
|
-
([
|
|
388
|
+
[G, k],
|
|
389
|
+
([s, r]) => {
|
|
417
390
|
var W;
|
|
418
|
-
const w = (((W =
|
|
419
|
-
({ pricing_id:
|
|
420
|
-
), { enabledPricingId:
|
|
421
|
-
$.value =
|
|
391
|
+
const w = (((W = s == null ? void 0 : s.pricing_plan_schedule) == null ? void 0 : W.enabled_pricings) ?? []).map(
|
|
392
|
+
({ pricing_id: O }) => O
|
|
393
|
+
), { enabledPricingId: I } = l.configuration, p = ((r == null ? void 0 : r.pricings) ?? []).map(({ id: O }) => O);
|
|
394
|
+
$.value = I && p.includes(I) ? [...w.filter((O) => !p.includes(O)), I] : w;
|
|
422
395
|
},
|
|
423
396
|
{ immediate: !0 }
|
|
424
397
|
);
|
|
@@ -427,36 +400,36 @@ const Re = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
427
400
|
isPending: ae,
|
|
428
401
|
error: se,
|
|
429
402
|
load: oe
|
|
430
|
-
} =
|
|
403
|
+
} = Ve();
|
|
431
404
|
F(
|
|
432
|
-
[$,
|
|
433
|
-
([
|
|
434
|
-
!
|
|
435
|
-
subscription:
|
|
436
|
-
enabledPricingIds:
|
|
405
|
+
[$, o],
|
|
406
|
+
([s, r]) => {
|
|
407
|
+
!r || s.length === 0 || oe({
|
|
408
|
+
subscription: r,
|
|
409
|
+
enabledPricingIds: s
|
|
437
410
|
});
|
|
438
411
|
},
|
|
439
412
|
{ immediate: !0 }
|
|
440
413
|
);
|
|
441
|
-
const j = S(!1), N = S(),
|
|
442
|
-
() => !
|
|
414
|
+
const j = S(!1), N = S(), D = S(!1), Y = _(
|
|
415
|
+
() => !U.value && !j.value && $.value.length > 0 && !!o.value && !!V.value
|
|
443
416
|
), re = async () => {
|
|
444
|
-
if (!(!
|
|
417
|
+
if (!(!Y.value || !o.value)) {
|
|
445
418
|
j.value = !0, N.value = void 0;
|
|
446
419
|
try {
|
|
447
420
|
await y({
|
|
448
|
-
pricingPlanSubscriptionId:
|
|
449
|
-
enabledPricings: $.value.map((
|
|
450
|
-
pricing_id:
|
|
421
|
+
pricingPlanSubscriptionId: o.value.id,
|
|
422
|
+
enabledPricings: $.value.map((s) => ({
|
|
423
|
+
pricing_id: s
|
|
451
424
|
}))
|
|
452
|
-
}),
|
|
453
|
-
} catch (
|
|
454
|
-
|
|
425
|
+
}), D.value = !0;
|
|
426
|
+
} catch (s) {
|
|
427
|
+
d.error(
|
|
455
428
|
"SUBSCRIPTION_UPDATE_FAILED",
|
|
456
429
|
"Failed to start a new pricing plan schedule",
|
|
457
430
|
{},
|
|
458
|
-
|
|
459
|
-
), N.value =
|
|
431
|
+
s
|
|
432
|
+
), N.value = t({
|
|
460
433
|
defaultMessage: "Something went wrong. Please try again.",
|
|
461
434
|
id: "subscription_management.update_error",
|
|
462
435
|
description: "Error shown when committing a subscription change fails"
|
|
@@ -465,71 +438,71 @@ const Re = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
465
438
|
j.value = !1;
|
|
466
439
|
}
|
|
467
440
|
}
|
|
468
|
-
},
|
|
441
|
+
}, q = _(
|
|
469
442
|
() => {
|
|
470
|
-
var
|
|
471
|
-
return ((
|
|
443
|
+
var s, r, w;
|
|
444
|
+
return ((r = (s = G.value) == null ? void 0 : s.pricing_plan_schedule) == null ? void 0 : r.billing_period) ?? ((w = o.value) == null ? void 0 : w.billing_period);
|
|
472
445
|
}
|
|
473
446
|
);
|
|
474
|
-
return (
|
|
475
|
-
header:
|
|
476
|
-
|
|
447
|
+
return (s, r) => (m(), g(e(be), { class: "sv-subscription-management sv-root sv-screen" }, {
|
|
448
|
+
header: f(() => [
|
|
449
|
+
C("div", Ke, [
|
|
477
450
|
h(e(Z), {
|
|
478
451
|
variant: "heading-2",
|
|
479
452
|
tag: "h1",
|
|
480
453
|
class: "sv-subscription-management__title"
|
|
481
454
|
}, {
|
|
482
|
-
default:
|
|
483
|
-
T(
|
|
455
|
+
default: f(() => [
|
|
456
|
+
T(A(ne.value), 1)
|
|
484
457
|
]),
|
|
485
458
|
_: 1
|
|
486
459
|
})
|
|
487
460
|
])
|
|
488
461
|
]),
|
|
489
|
-
content:
|
|
490
|
-
var w,
|
|
462
|
+
content: f(() => {
|
|
463
|
+
var w, I;
|
|
491
464
|
return [
|
|
492
|
-
|
|
465
|
+
D.value ? (m(), g(We, {
|
|
493
466
|
key: 0,
|
|
494
467
|
class: "sv-subscription-management__success",
|
|
495
|
-
"pricing-group-name": (w =
|
|
496
|
-
}, null, 8, ["pricing-group-name"])) : e(
|
|
468
|
+
"pricing-group-name": (w = k.value) == null ? void 0 : w.name
|
|
469
|
+
}, null, 8, ["pricing-group-name"])) : e(U) ? (m(), g(ee, {
|
|
497
470
|
key: 1,
|
|
498
471
|
variant: "section",
|
|
499
472
|
class: "min-h-[220px]"
|
|
500
|
-
})) :
|
|
473
|
+
})) : k.value && q.value ? (m(), g(Fe, {
|
|
501
474
|
key: 2,
|
|
502
475
|
"enabled-pricing-ids": $.value,
|
|
503
|
-
"onUpdate:enabledPricingIds":
|
|
504
|
-
"payment-method-id":
|
|
505
|
-
"onUpdate:paymentMethodId":
|
|
476
|
+
"onUpdate:enabledPricingIds": r[0] || (r[0] = (p) => $.value = p),
|
|
477
|
+
"payment-method-id": V.value,
|
|
478
|
+
"onUpdate:paymentMethodId": r[1] || (r[1] = (p) => V.value = p),
|
|
506
479
|
class: "sv-subscription-management__form",
|
|
507
|
-
"pricing-group":
|
|
508
|
-
"payment-methods": e(
|
|
480
|
+
"pricing-group": k.value,
|
|
481
|
+
"payment-methods": e(a),
|
|
509
482
|
"payment-method-options": e(P),
|
|
510
|
-
"billing-period":
|
|
511
|
-
currency: (
|
|
512
|
-
onAddPaymentMethod:
|
|
483
|
+
"billing-period": q.value,
|
|
484
|
+
currency: (I = e(o)) == null ? void 0 : I.billing_currency,
|
|
485
|
+
onAddPaymentMethod: r[2] || (r[2] = (p) => x.value = !0)
|
|
513
486
|
}, null, 8, ["enabled-pricing-ids", "payment-method-id", "pricing-group", "payment-methods", "payment-method-options", "billing-period", "currency"])) : R("", !0),
|
|
514
|
-
h(
|
|
487
|
+
h(He, {
|
|
515
488
|
"show-modal": x.value,
|
|
516
489
|
customer: e(u),
|
|
517
490
|
"payment-method-options": e(P),
|
|
518
491
|
onSuccess: te,
|
|
519
|
-
onClose:
|
|
492
|
+
onClose: r[3] || (r[3] = (p) => x.value = !1)
|
|
520
493
|
}, null, 8, ["show-modal", "customer", "payment-method-options"])
|
|
521
494
|
];
|
|
522
495
|
}),
|
|
523
|
-
aside:
|
|
524
|
-
|
|
496
|
+
aside: f(() => [
|
|
497
|
+
D.value ? (m(), g(e(J), {
|
|
525
498
|
key: 0,
|
|
526
499
|
size: "lg",
|
|
527
500
|
class: "sv-action sv-action--primary sv-action--full-width sv-subscription-management__done w-full",
|
|
528
501
|
type: "button",
|
|
529
|
-
onClick:
|
|
502
|
+
onClick: r[4] || (r[4] = (w) => e(v)({ action: "navigate-to-customer-overview" }))
|
|
530
503
|
}, {
|
|
531
|
-
default:
|
|
532
|
-
T(
|
|
504
|
+
default: f(() => [
|
|
505
|
+
T(A(e(t)({
|
|
533
506
|
defaultMessage: "Done",
|
|
534
507
|
id: "subscription_management.done_button.label",
|
|
535
508
|
description: "Label of the button that leaves the manage subscription screen once the change is committed"
|
|
@@ -537,28 +510,28 @@ const Re = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
537
510
|
]),
|
|
538
511
|
_: 1
|
|
539
512
|
})) : (m(), z(me, { key: 1 }, [
|
|
540
|
-
h(
|
|
513
|
+
h(ze, {
|
|
541
514
|
class: "sv-subscription-management__summary",
|
|
542
515
|
invoice: e(ie),
|
|
543
|
-
"is-pending": e(
|
|
516
|
+
"is-pending": e(U) || e(ae),
|
|
544
517
|
"has-error": !!e(se)
|
|
545
518
|
}, null, 8, ["invoice", "is-pending", "has-error"]),
|
|
546
|
-
N.value ? (m(),
|
|
519
|
+
N.value ? (m(), g(e(Q), {
|
|
547
520
|
key: 0,
|
|
548
521
|
class: "sv-subscription-management__update-error sv-error",
|
|
549
522
|
title: N.value
|
|
550
523
|
}, null, 8, ["title"])) : R("", !0),
|
|
551
|
-
|
|
552
|
-
h(e(
|
|
524
|
+
C("div", Je, [
|
|
525
|
+
h(e(J), {
|
|
553
526
|
size: "lg",
|
|
554
527
|
class: "sv-action sv-action--primary sv-action--full-width sv-subscription-management__update w-full",
|
|
555
528
|
type: "button",
|
|
556
|
-
disabled: !
|
|
529
|
+
disabled: !Y.value,
|
|
557
530
|
loading: j.value,
|
|
558
531
|
onClick: re
|
|
559
532
|
}, {
|
|
560
|
-
default:
|
|
561
|
-
T(
|
|
533
|
+
default: f(() => [
|
|
534
|
+
T(A(e(t)({
|
|
562
535
|
defaultMessage: "Update subscription",
|
|
563
536
|
id: "subscription_management.update_button.label",
|
|
564
537
|
description: "Label of the button that commits the subscription change"
|
|
@@ -566,7 +539,7 @@ const Re = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
566
539
|
]),
|
|
567
540
|
_: 1
|
|
568
541
|
}, 8, ["disabled", "loading"]),
|
|
569
|
-
h(
|
|
542
|
+
h(Ce, {
|
|
570
543
|
class: "sv-subscription-management__kpi",
|
|
571
544
|
"payment-method-options": e(P)
|
|
572
545
|
}, null, 8, ["payment-method-options"])
|
|
@@ -576,7 +549,7 @@ const Re = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
576
549
|
_: 1
|
|
577
550
|
}));
|
|
578
551
|
}
|
|
579
|
-
}),
|
|
552
|
+
}), Xe = /* @__PURE__ */ M({
|
|
580
553
|
__name: "SubscriptionManagement.entry",
|
|
581
554
|
props: {
|
|
582
555
|
environment: { type: String },
|
|
@@ -595,22 +568,22 @@ const Re = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
595
568
|
branding: { type: Object },
|
|
596
569
|
configuration: { type: Object }
|
|
597
570
|
},
|
|
598
|
-
setup(
|
|
599
|
-
const
|
|
600
|
-
return (
|
|
601
|
-
entry:
|
|
602
|
-
"component-name": e(
|
|
571
|
+
setup(n) {
|
|
572
|
+
const l = Ge("subscription-management");
|
|
573
|
+
return (t, c) => (m(), g(e(fe), {
|
|
574
|
+
entry: t.$props,
|
|
575
|
+
"component-name": e(l),
|
|
603
576
|
"allowed-portal-types": ["CUSTOMER"],
|
|
604
|
-
onError:
|
|
577
|
+
onError: c[0] || (c[0] = (d) => t.$emit("error", d))
|
|
605
578
|
}, {
|
|
606
|
-
default:
|
|
607
|
-
h(
|
|
579
|
+
default: f(() => [
|
|
580
|
+
h(Qe, { configuration: n.configuration }, null, 8, ["configuration"])
|
|
608
581
|
]),
|
|
609
582
|
_: 1
|
|
610
583
|
}, 8, ["entry", "component-name"]));
|
|
611
584
|
}
|
|
612
|
-
}), { define: It } =
|
|
613
|
-
|
|
585
|
+
}), { define: It } = ve(
|
|
586
|
+
Xe,
|
|
614
587
|
"subscription-management"
|
|
615
588
|
);
|
|
616
589
|
export {
|