@solvimon/solvimon-web 0.1.0-alpha.25 → 0.1.0-alpha.27
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 +16 -11
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BM1_31Tl.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js} +1 -1
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Dh_a0NRB.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs} +6 -6
- package/dist/{Avatar.vue.es-CvxRdCes.js → Avatar.vue.es-BJxSCU76.js} +1 -1
- package/dist/{Avatar.vue.es-C9Jkfuvp.mjs → Avatar.vue.es-sfMZiX7A.mjs} +1 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +1 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BRSUpMPU.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs} +15 -16
- package/dist/{Button.vue.es-CeUTAc2n.js → Button.vue.es-BzkuglKw.js} +1 -1
- package/dist/{Button.vue.es-BbSN0uOk.mjs → Button.vue.es-Cmjfm4jw.mjs} +1 -1
- package/dist/ChargeOnDemandModal-CB4mrvkU.mjs +975 -0
- package/dist/ChargeOnDemandModal-b17YswWA.js +1 -0
- package/dist/Checkout.entry.ce-HlUrJ1kh.js +2 -0
- package/dist/Checkout.entry.ce-X2zGo6hG.mjs +4381 -0
- package/dist/{Chip.vue.es-BN83K3Tk.js → Chip.vue.es-B2jjzIOc.js} +1 -1
- package/dist/{Chip.vue.es-T22Q7AF9.mjs → Chip.vue.es-DksjbJO8.mjs} +2 -2
- package/dist/{ContextMenu.vue.es-DXKR7WFg.js → ContextMenu.vue.es-DUU43tCy.js} +1 -1
- package/dist/{ContextMenu.vue.es-0PRmCAzL.mjs → ContextMenu.vue.es-zRvoEJlV.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-yrLGc7oL.js → CustomerBillingInformation.vue.es-BfPEB42w.js} +1 -1
- package/dist/{CustomerBillingInformation.vue.es-C2j40TYP.mjs → CustomerBillingInformation.vue.es-DhFbpZPK.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BZwGWhaL.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs} +14 -15
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C8diNL5x.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js} +1 -1
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-xqMsbuU6.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs} +895 -891
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +1 -0
- package/dist/{DividerText.vue.es-DsYRZzuE.js → DividerText.vue.es-CoyDk9eH.js} +1 -1
- package/dist/{DividerText.vue.es-CV1XK_Vz.mjs → DividerText.vue.es-nAo1eRMV.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-srXOpUb0.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-kpjrC-4q.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs} +4 -4
- package/dist/{ErrorNotification.vue.es-CiUJva6S.mjs → ErrorNotification.vue.es-h-D37rfG.mjs} +1 -1
- package/dist/{ErrorNotification.vue.es-QfRoDhkn.js → ErrorNotification.vue.es-tS9vySUZ.js} +1 -1
- package/dist/{IconButton.vue.es-CytBZUkZ.js → IconButton.vue.es-DgQN18Am.js} +1 -1
- package/dist/{IconButton.vue.es-ChvsCZQG.mjs → IconButton.vue.es-DvfErUOq.mjs} +2 -2
- package/dist/{IconTitle.vue.es-DPruIJ6l.mjs → IconTitle.vue.es-B_8bS0tn.mjs} +3 -3
- package/dist/{IconTitle.vue.es-DtnpBObk.js → IconTitle.vue.es-Dn2xcPHj.js} +1 -1
- package/dist/{Input.vue.es-BkzQDkrz.js → Input.vue.es-B60eK8Ds.js} +1 -1
- package/dist/{Input.vue.es-DJQqJrsb.mjs → Input.vue.es-CU9u5yKH.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Do0dDtkA.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BC-zyUqe.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DQFS7SfE.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js} +1 -1
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-CFhhhwId.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs} +2 -2
- package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +1 -0
- package/dist/{InvoiceSummary.vue.es-6qpbyymg.mjs → InvoiceSummary.vue.es-CRiFJ5x-.mjs} +576 -565
- package/dist/{Modal.vue.es-BuRlbyZw.mjs → Modal.vue.es-BeI5C9-9.mjs} +5 -5
- package/dist/{Modal.vue.es-JpE0eh_Q.js → Modal.vue.es-DvLB3uCG.js} +1 -1
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-nAuhIopc.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js} +1 -1
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-UmKgVvdj.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs} +5 -6
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-YpcWHm24.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DggCusgC.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-uWuWjr8I.js → PaymentHistoryBlock-Uw8xeKUk.js} +1 -1
- package/dist/{PaymentHistoryBlock-DnmParhQ.mjs → PaymentHistoryBlock-mCqdFjnL.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BS8N4yt9.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BziIf86i.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-DTXm56QQ.js → PaymentIntegrationForm-Cx0zCf_C.js} +1 -1
- package/dist/{PaymentIntegrationForm-DL55i0HD.mjs → PaymentIntegrationForm-DVx4DEtD.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +1 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs +154 -0
- package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +98 -0
- package/dist/{PaymentIntegrationFormAdyen-Cqsy82To.mjs → PaymentIntegrationFormAdyen-Yr8p5Fly.mjs} +202 -192
- package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +102 -0
- package/dist/{PaymentIntegrationFormStripe-DIU1rnwH.mjs → PaymentIntegrationFormStripe-Ds0BXt89.mjs} +247 -220
- package/dist/{PaymentMethod.vue.es-m1NasGqw.mjs → PaymentMethod.vue.es-4YRmQZHX.mjs} +168 -148
- package/dist/PaymentMethod.vue.es-D0D9jW8s.js +1 -0
- package/dist/{PaymentMethodForm-BEVdWCrH.js → PaymentMethodForm-CMP5FLRO.js} +1 -1
- package/dist/{PaymentMethodForm-BYzt1PVP.mjs → PaymentMethodForm-Dnj_7mJU.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-fdRTp7sc.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs} +60 -58
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +1 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-FhMBZqtI.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js} +1 -1
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-FChyZp2v.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs} +6 -6
- package/dist/PlanCustomizationEditor-DS1r2vBO.js +1 -0
- package/dist/PlanCustomizationEditor-DlVSCKGN.mjs +722 -0
- package/dist/{PricingGroupRangeInput.vue.es-B4ZbKxUw.mjs → PricingGroupRangeInput.vue.es-BhNcjD7z.mjs} +4 -4
- package/dist/{PricingGroupRangeInput.vue.es-Ba3v0J_R.js → PricingGroupRangeInput.vue.es-VoOTnHjk.js} +1 -1
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs +141 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +1 -0
- package/dist/{RadioGroupExtended.vue.es-CkhBp9kI.mjs → RadioGroupExtended.vue.es-9YzXzZF0.mjs} +2 -2
- package/dist/{RadioGroupExtended.vue.es-CHrcqSRq.js → RadioGroupExtended.vue.es-DlbURHQN.js} +1 -1
- package/dist/{Section.vue.es-CSrVPlUK.js → Section.vue.es-Bbt0RITt.js} +1 -1
- package/dist/{Section.vue.es-D5svcVS_.mjs → Section.vue.es-DVEpre9O.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BqOSBdFQ.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BM9Y4Cy3.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs} +6 -6
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +41 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +1 -0
- package/dist/StepInput.vue.es-H-3R4jJq.js +1 -0
- package/dist/StepInput.vue.es-o-3Lg4Ai.mjs +199 -0
- package/dist/SubscriptionDetails.entry.ce-CGl6Z5ql.mjs +1057 -0
- package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +1 -0
- package/dist/{SubscriptionSchedules-yDcsD1hd.mjs → SubscriptionSchedules-DuWZmnD2.mjs} +1 -1
- package/dist/{SubscriptionSchedules-CMVoB2bw.js → SubscriptionSchedules-Dy0fUgx5.js} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DZHsQImd.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs} +2284 -2341
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +1 -0
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-BgXZMihr.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js} +1 -1
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-BmNl5u8R.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs} +3 -3
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DOJ0t_fo.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js} +1 -1
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BUzdZHah.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs} +9 -10
- package/dist/{TooltipParagraph.vue.es-CxdL8-B7.mjs → TooltipParagraph.vue.es-B9A17aG7.mjs} +3 -3
- package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +1 -0
- package/dist/{TrialChip.vue.es-BCc8q5j0.js → TrialChip.vue.es-CLQZ5F0n.js} +1 -1
- package/dist/{TrialChip.vue.es-BK7m7e7q.mjs → TrialChip.vue.es-Dmv3lPiQ.mjs} +2 -2
- package/dist/{cn.es-71nFUose.js → cn.es-C9Yqq4tg.js} +1 -1
- package/dist/{cn.es-ZXNzpauQ.mjs → cn.es-Cvt6TIwv.mjs} +2 -2
- 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 +15 -16
- 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 +14 -15
- 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-q_i9y0Ph.mjs → customElements-B58FcXIN.mjs} +231 -196
- package/dist/{customElements-hH6pju3X.js → customElements-DUMRMFQ5.js} +36 -32
- package/dist/{customer-BDoOIAFr.mjs → customer-B3LPAhaD.mjs} +4 -4
- package/dist/{customer-C9q6ti8s.js → customer-CisTPaXj.js} +1 -1
- package/dist/{de-DE-BSlbAnPE.js → de-DE-B4TUdnUf.js} +1 -1
- package/dist/{de-DE-B_ik9VNt.mjs → de-DE-DKp5LCu0.mjs} +53 -7
- package/dist/de-DE-DL74pMLb.js +1 -0
- package/dist/{de-DE-DXsG-vXA.mjs → de-DE-jkW2dJrX.mjs} +28 -14
- package/dist/en-US-B2XFj-_p.js +1 -0
- package/dist/{en-US-DkCltadt.mjs → en-US-DQ5vlv9Z.mjs} +53 -7
- 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-DIzkXntV.mjs → invoices-3520M5AN.mjs} +1 -1
- package/dist/{invoices-CHp75zZI.js → invoices-CKQBLar2.js} +1 -1
- package/dist/{it-IT-CHj2McbF.mjs → it-IT-BgFVsO5S.mjs} +53 -7
- 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-CqNK62qe.js +1 -0
- 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-Dx-TNXQ1.js +1 -0
- package/dist/{nl-NL-Cdvd_XMN.mjs → nl-NL-UiRWbO9S.mjs} +53 -7
- package/dist/{paymentMethods-DEKp_4QM.mjs → paymentMethods-CWlvwK5V.mjs} +16 -14
- package/dist/paymentMethods-Cw-i95mM.js +1 -0
- package/dist/{payments-C0-Hq2a4.mjs → payments-2qeQdpiW.mjs} +6 -6
- package/dist/{payments-DBvregE8.js → payments-CS7_YcOW.js} +1 -1
- package/dist/pricing-BIMpDI_p.mjs +29 -0
- package/dist/pricing-BOqG21f9.js +1 -0
- package/dist/pricing.es-C07bgEZx.js +1 -0
- package/dist/pricing.es-QYWrKMUJ.mjs +30 -0
- package/dist/pricingPlanSchedules-B_sTAIgU.js +1 -0
- package/dist/pricingPlanSchedules-ChQCbMfe.mjs +32 -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--9MaTXMb.mjs → subscriptions-DcfcBYAq.mjs} +1 -1
- package/dist/{subscriptions-BArXBCFr.js → subscriptions-DwVsf4Ev.js} +1 -1
- package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +9 -5
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -1
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +5 -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-BdciAX8T.mjs → useActionDispatchProvider-B3AvkLL2.mjs} +1 -1
- package/dist/{useActionDispatchProvider-CKzeqXzY.js → useActionDispatchProvider-DFhppdve.js} +1 -1
- package/dist/{useCustomer-D8ixhuuj.mjs → useCustomer-B-jyJIVy.mjs} +1 -1
- package/dist/{useCustomer-DSYr0F58.js → useCustomer-BwZKd9i5.js} +1 -1
- package/dist/{useCustomerFormLabels-htMZ0xqB.mjs → useCustomerFormLabels-BQk3d9PZ.mjs} +6 -6
- package/dist/useCustomerFormLabels-DV9QiMYh.js +1 -0
- package/dist/useExperimentalFeature-BciA3Ok9.mjs +135 -0
- package/dist/useExperimentalFeature-CGIkgFR4.js +1 -0
- package/dist/{useInvoiceData-Bpbog3zW.mjs → useInvoiceData-BocKdeg7.mjs} +3 -3
- package/dist/{useInvoiceData-DhrItfv7.js → useInvoiceData-CNV_FMV8.js} +1 -1
- package/dist/{useInvoicesList-BGwcJn4I.mjs → useInvoicesList-C8nsXMJ6.mjs} +7 -7
- package/dist/{useInvoicesList-duu_b5GW.js → useInvoicesList-S0IbQcrD.js} +1 -1
- package/dist/{useLoadInitialData-BDmmpcfb.mjs → useLoadInitialData-D9GkzY8t.mjs} +1 -1
- package/dist/{useLoadInitialData-U2WvBmXT.js → useLoadInitialData-D_R6Jy1s.js} +1 -1
- package/dist/usePaymentMethodAvailability-BO_guwAw.js +1 -0
- package/dist/{usePaymentMethodAvailability-adqRujTA.mjs → usePaymentMethodAvailability-DAcsKGeh.mjs} +5 -6
- package/dist/{usePaymentMethodOptions-DlZtTQNQ.mjs → usePaymentMethodOptions-1vRAo6Ib.mjs} +15 -13
- package/dist/usePaymentMethodOptions-CuzOoi2k.js +1 -0
- package/dist/{usePaymentMethods-BnmSo_rr.mjs → usePaymentMethods-CbwnGONc.mjs} +1 -1
- package/dist/{usePaymentMethods-DZ1a0mnr.js → usePaymentMethods-DDaTZQZp.js} +1 -1
- package/dist/{usePayments-s-Z1di8d.mjs → usePayments-Cr6NlGaW.mjs} +46 -41
- package/dist/usePayments-DDSjo0rH.js +1 -0
- package/dist/{usePortal-Hm7wvtgQ.js → usePortal-C27omjhz.js} +1 -1
- package/dist/{usePortal-C4rR5Rhu.mjs → usePortal-C5AsegpS.mjs} +1 -1
- package/dist/{useSubscription-DSsXVO0h.mjs → useSubscription-BZJL0VOA.mjs} +1 -1
- package/dist/{useSubscription-DMAEJves.js → useSubscription-D787IXY-.js} +1 -1
- package/dist/{useTimePeriod.es-CW8ycmpT.mjs → useTimePeriod.es-DWLsLFqs.mjs} +1 -1
- package/dist/{useTimePeriod.es-anHB63am.js → useTimePeriod.es-rzxqUCTu.js} +1 -1
- package/dist/useWatchDebounced-B8iX7ykx.js +1 -0
- package/dist/useWatchDebounced-BHlBPcXB.mjs +20 -0
- package/package.json +20 -14
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-7wQAw6Lv.js +0 -1
- package/dist/Checkout.entry.ce-BMzK8nQg.mjs +0 -3900
- package/dist/Checkout.entry.ce-DgA0ckyl.js +0 -2
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DzbPUvHN.js +0 -1
- package/dist/InvoiceSummary.vue.es-v1TkOUhA.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-4RmdLbzY.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvpFnl9V.mjs +0 -141
- package/dist/PaymentIntegrationFormAdyen-C9KoiqMh.js +0 -98
- package/dist/PaymentIntegrationFormStripe-DTLgGutU.js +0 -102
- package/dist/PaymentMethod.vue.es-ZWda5GqF.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CzUwtVEI.js +0 -1
- package/dist/PlanCustomizationEditor-CunwwXTw.js +0 -1
- package/dist/PlanCustomizationEditor-NLVkEYFF.mjs +0 -877
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-Dvuj-fos.mjs +0 -131
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-iE4dLawA.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs +0 -51
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DH7IZrNT.js +0 -1
- package/dist/TooltipParagraph.vue.es-DS_69pl1.js +0 -1
- package/dist/adyen-CvsH5fok.mjs +0 -117
- package/dist/adyen-Druit6gz.js +0 -1
- package/dist/de-DE-npBTLtKL.js +0 -1
- package/dist/en-US-9xdcz3T5.js +0 -1
- package/dist/en-US-kGduGoka.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-BayNIAy7.js +0 -1
- package/dist/nl-NL-0rV4nFLw.js +0 -1
- package/dist/paymentMethods-CZGP6_4W.js +0 -1
- package/dist/pricing-BVAld27Y.js +0 -1
- package/dist/pricing-DLOeiAIB.mjs +0 -16
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +0 -47
- package/dist/useCustomerFormLabels-CRumh405.js +0 -1
- package/dist/useExperimentalFeature-D29-TO3R.js +0 -1
- package/dist/useExperimentalFeature-JK_kAUQQ.mjs +0 -6
- package/dist/usePaymentMethodAvailability-DwtT5Czz.js +0 -1
- package/dist/usePaymentMethodOptions-CXdFKFqZ.js +0 -1
- package/dist/usePayments-DL4agK2i.js +0 -1
- package/dist/useWatchDebounced-CAU1WI1P.js +0 -1
- package/dist/useWatchDebounced-DT5IicPp.mjs +0 -14
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),F=require("./Alert.vue.es-RyK53a2P.js"),D=require("./Button.vue.es-BzkuglKw.js"),L=require("./ErrorNotification.vue.es-tS9vySUZ.js"),m=require("./customElements-DUMRMFQ5.js"),j=require("./ContentWithAsideLayout-RSdKXqAf.js"),O=require("./useActionDispatchProvider-DFhppdve.js"),E=require("./subscription-ZA62t4E9.js"),$=require("./CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js"),W=require("./CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js"),Y=require("./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js"),z=require("./Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js"),M=require("./Section.vue.es-Bbt0RITt.js"),X=require("./pricing-BOqG21f9.js"),P=require("./formatting.es-C72Nsrmh.js"),G=require("./PaymentMethod.vue.es-D0D9jW8s.js"),H=require("./Modal.vue.es-DvLB3uCG.js"),Z=require("./subscriptions-DwVsf4Ev.js"),J=require("./SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js"),K=require("./api.es-duCDtZD9.js"),Q=require("./useIncrementalLoading-CaWOE8Xl.js"),ee=require("./paymentMethods-Cw-i95mM.js"),te=require("./error-CmduqgVq.js"),ne=require("./useSubscription-D787IXY-.js"),ie=require("./useCustomer-BwZKd9i5.js"),ae=require("./usePaymentMethods-DDaTZQZp.js"),oe=require("./useLoadInitialData-D_R6Jy1s.js"),se=require("./pricingPlanSchedules-B_sTAIgU.js"),re=require("./useService-H7BjLg8P.js"),ce=require("./pricingPlanSchedule-BM8vsKkV.js"),A=require("./getComposedString.es-haS4bAj7.js"),q=require("./pricing.es-C07bgEZx.js"),le=require("./pricingItemConfigs.es-D4aYkYcf.js"),de=require("./sessionReference-m_6Rp4X1.js"),R=()=>{const{$t:t}=m.useIntl();return{getPriceLabel:n=>{if(!n.price)return;const i=P.formatAmount(n.price);return n.priceType==="FIXED"?i:t({defaultMessage:"{price} per unit",description:"The listed price of an on-demand item charged per unit",id:"charge_on_demand.item.price_per_unit"},{price:i})}}};function ue({subscription:t}){const{dispatchAction:a}=O.useActionDispatchProvider(),n=e.computed(()=>{if(!t.value)return!1;const l=t.value.inactive_periods;return!l||l.length===0}),i=e.computed(()=>{var g;const l=(g=t.value)==null?void 0:g.inactive_periods;return Array.isArray(l)&&l.length>0}),o=e.ref();return{isCancellable:n,isRenewable:i,pendingVariant:o,cancel:()=>{t.value&&(o.value="CANCEL")},renew:()=>{t.value&&(o.value="RENEW")},dismiss:()=>{o.value=void 0},manage:()=>{t.value&&a({action:"manage-subscription",data:{subscriptionId:t.value.id}})}}}function pe(t){var i,o,s,c,r,f,l;const a=(s=(o=(i=t.items)==null?void 0:i[0])==null?void 0:o.configs)==null?void 0:s[0],n=(r=(c=a==null?void 0:a.details)==null?void 0:c.bands)==null?void 0:r[0];return{amount:(n==null?void 0:n.amount)??(n==null?void 0:n.fixed_amount),billingPeriod:((f=a==null?void 0:a.details)==null?void 0:f.pricing_period)??((l=a==null?void 0:a.details)==null?void 0:l.billing_period)}}function me(t){var i,o,s;const a=new Set((((i=t.pricing_plan_schedule)==null?void 0:i.enabled_pricings)??[]).map(({pricing_id:c})=>c));return a.size===0?[]:(((s=(o=t.pricing_plan_version)==null?void 0:o.pricing_categories)==null?void 0:s.flatMap(c=>c.pricing_groups??[]))??[]).flatMap(c=>(c.pricings??[]).filter(r=>a.has(r.id)).map(r=>({pricingId:r.id,pricingGroupId:c.id,groupName:c.name,name:X.getNameFromPricing(r)||c.name,...pe(r)})))}const fe={class:"sv-enabled-pricings-list__item-body flex items-center gap-4"},ge={class:"sv-enabled-pricings-list__item-content grow"},be=e.defineComponent({__name:"EnabledPricingsListItem",props:{entry:{type:Object}},emits:["upgrade"],setup(t){const a=t,{$t:n}=m.useIntl(),i=e.computed(()=>{const{amount:o,billingPeriod:s}=a.entry;if(o)return s?n({defaultMessage:"{amount} per {period}",id:"enabled_pricings_list.item.price",description:'The recurring price of an enabled pricing, e.g. "€ 100,00 per month"'},{amount:P.formatAmount(o),period:P.formatBillingPeriod(s,{short:!0,hideValueForExactPeriods:!0})}):P.formatAmount(o)});return(o,s)=>(e.openBlock(),e.createBlock(e.unref(M._sfc_main),{class:"sv-enabled-pricings-list__item"},{default:e.withCtx(()=>[e.createElementVNode("div",fe,[e.createElementVNode("div",ge,[e.createVNode(e.unref(m._sfc_main),{tag:"span",variant:"body-xs",color:"subtle",class:"sv-enabled-pricings-list__item-group"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.groupName),1)]),_:1}),e.createVNode(e.unref(m._sfc_main),{tag:"h3",variant:"heading-3","no-spacing":"",class:"sv-enabled-pricings-list__item-name"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.name),1)]),_:1}),i.value?(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{key:0,tag:"span",variant:"body-sm",color:"subtle",class:"sv-enabled-pricings-list__item-price"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value),1)]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.unref(D._sfc_main),{intent:"secondary",class:"sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",type:"button",size:"xs",onClick:s[0]||(s[0]=c=>o.$emit("upgrade",t.entry))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Upgrade",id:"enabled_pricings_list.item.upgrade_button.label",description:"Label for the button that changes which pricing is enabled for a group"})),1)]),_:1})])]),_:1}))}}),he={class:"sv-enabled-pricings-list__items grid grid-cols-1 gap-2"},_e=e.defineComponent({__name:"EnabledPricingsList",props:{pricingPlanSchedule:{type:Object}},emits:["upgrade"],setup(t){const a=t,{$t:n}=m.useIntl(),i=e.computed(()=>me(a.pricingPlanSchedule));return(o,s)=>i.value.length>0?(e.openBlock(),e.createBlock(e.unref(M._sfc_main),{key:0,class:"sv-enabled-pricings-list","content-background":"none","no-border":"","no-spacing":"",title:e.unref(n)({defaultMessage:"Upgrades",id:"enabled_pricings_list.title",description:"Title for the block listing the pricings enabled on a subscription"})},{default:e.withCtx(()=>[e.createElementVNode("div",he,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,c=>(e.openBlock(),e.createBlock(be,{key:c.pricingId,entry:c,onUpgrade:s[0]||(s[0]=r=>o.$emit("upgrade",r))},null,8,["entry"]))),128))])]),_:1},8,["title"])):e.createCommentVNode("",!0)}}),ve={class:"sv-on-demand-items-card__items grid grid-cols-1 gap-1"},ye={key:0,class:"sv-on-demand-items-card__more"},T=2,we=e.defineComponent({__name:"OnDemandItemsCard",props:{items:{type:Array}},emits:["order"],setup(t){const a=t,{$t:n}=m.useIntl(),{getPriceLabel:i}=R(),o=e.computed(()=>a.items.slice(0,T).map(c=>({item:c,priceLabel:i(c)}))),s=e.computed(()=>Math.max(a.items.length-T,0));return(c,r)=>(e.openBlock(),e.createBlock(e.unref(M._sfc_main),{class:"sv-on-demand-items-card","content-background":"none","no-border":"","no-spacing":"",title:e.unref(n)({defaultMessage:"Available on demand items",id:"on_demand_items_card.title",description:"Title for the block that offers the on-demand items of a subscription"})},{right:e.withCtx(()=>[e.createVNode(e.unref(D._sfc_main),{class:"sv-action sv-action--secondary sv-on-demand-items-card__order",type:"button",size:"sm",intent:"secondary",onClick:r[0]||(r[0]=f=>c.$emit("order"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Purchase",id:"on_demand_items_card.order_button.label",description:"Label for the button that opens the on-demand order form"})),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("ul",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,({item:f,priceLabel:l})=>(e.openBlock(),e.createElementBlock("li",{key:f.pricingItemId,class:"sv-on-demand-items-card__item"},[e.createVNode(e.unref(M._sfc_main),{"no-spacing":"","content-classes":"flex flex-col px-4 py-3"},{default:e.withCtx(()=>[e.createVNode(e.unref(m._sfc_main),{tag:"span",weight:"semibold","no-spacing":"",class:"sv-on-demand-items-card__item-name break-words"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.name),1)]),_:2},1024),l?(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{key:0,tag:"span",variant:"body-sm",color:"subtle","no-spacing":"",class:"sv-on-demand-items-card__item-price"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l),1)]),_:2},1024)):e.createCommentVNode("",!0)]),_:2},1024)]))),128)),s.value>0?(e.openBlock(),e.createElementBlock("li",ye,[e.createVNode(e.unref(M._sfc_main),{"no-spacing":"","content-classes":"px-4 py-3 text-center"},{default:e.withCtx(()=>[e.createVNode(e.unref(m._sfc_main),{tag:"span",weight:"semibold",color:"secondary","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"+ {count} available",id:"on_demand_items_card.more_available",description:"Shown below the first on-demand items with the number of items not listed"},{count:String(s.value)})),1)]),_:1})]),_:1})])):e.createCommentVNode("",!0)])]),_:1},8,["title"]))}});function Ce({variant:t,renewableUntil:a,billingPeriodEndsAt:n}){const{$t:i}=m.useIntl(),o=e.computed(()=>t.value==="RENEW"),s=e.computed(()=>o.value?i({defaultMessage:"Renew subscription",description:"Title of the renew subscription confirmation modal",id:"subscription_cancellation_modal.renew.title"}):i({defaultMessage:"Cancel subscription",description:"Title of the cancel subscription confirmation modal",id:"subscription_cancellation_modal.cancel.title"})),c=e.computed(()=>o.value?a.value?i({defaultMessage:"You can renew your subscription until {date}. After this period you can only create a new subscription.",description:"Explanation of the deadline for undoing a cancellation, shown in the renew subscription modal",id:"subscription_cancellation_modal.renew.explanation_with_date"},{date:a.value}):i({defaultMessage:"Your subscription will continue as before, and billing will resume on its usual schedule.",description:"Explanation of what happens when a cancellation is undone, shown in the renew subscription modal when no end date is known",id:"subscription_cancellation_modal.renew.explanation"}):n.value?i({defaultMessage:"Your subscription will be canceled, but you’ll continue to have access until {date}.",description:"Explanation of what happens when a running subscription is cancelled, naming the date access ends, shown in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.explanation_with_date"},{date:n.value}):i({defaultMessage:"Your subscription will be canceled, but you’ll continue to have access until the end of the billing period.",description:"Explanation of what happens when a running subscription is cancelled, shown in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.explanation"})),r=e.computed(()=>o.value?i({defaultMessage:"Renew subscription",description:"Label of the confirm button in the renew subscription modal",id:"subscription_cancellation_modal.renew.confirm_button.label"}):i({defaultMessage:"Cancel subscription",description:"Label of the confirm button in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.confirm_button.label"})),f=e.computed(()=>i({defaultMessage:"Cancel",description:"Label of the button that dismisses the cancellation modal",id:"subscription_cancellation_modal.cancel_button.label"})),l=e.computed(()=>o.value?i({defaultMessage:"We could not renew your subscription. Please try again.",description:"Error shown when undoing a cancellation fails",id:"subscription_cancellation_modal.renew.error"}):i({defaultMessage:"We could not cancel your subscription. Please try again.",description:"Error shown when cancelling a subscription fails",id:"subscription_cancellation_modal.cancel.error"}));return{title:s,explanation:c,confirmButtonText:r,cancelButtonText:f,errorMessage:l}}const Se=50;function ke(){const{getPaymentMethods:t}=ee.createPaymentMethodsService(),a=e.shallowRef();return{paymentMethod:a,get:async({customerId:i,paymentMethodId:o})=>{const s=await K.getPaginatedFullList(async c=>{const r=await t({customerId:i,pagination:{page:c,pageSize:Se}});if(!Q.isApiSuccessCollectionResponse(r))throw new Error("Could not load the customer’s payment methods.");return r});return a.value=s.data.find(({id:c})=>c===o),a.value}}}const Be={class:"sv-subscription-cancellation-modal sv-subscription-cancellation-modal__body flex flex-col gap-3"},xe={key:0,class:"sv-subscription-cancellation-modal__meta flex flex-wrap items-center gap-x-6 gap-y-2 px-3 pb-2"},Ie={key:0,class:"sv-subscription-cancellation-modal__renews flex gap-1"},Me=e.defineComponent({__name:"SubscriptionCancellationModal",props:{showModal:{type:Boolean},variant:{type:null},subscription:{type:Object},avatar:{type:String}},emits:["confirmed","close"],setup(t,{emit:a}){const n=t,i=a,{$t:o,formatDate:s}=m.useIntl(),c=m.useLogger(),{setSubscriptionCancellation:r}=Z.createSubscriptionsService(),f=e.computed(()=>n.variant),l=e.computed(()=>{var d;const p=((d=n.subscription)==null?void 0:d.inactive_periods)??[],u=p.find(({type:h})=>h==="CANCEL")??p[0];if(u)return s({date:u.start_at,format:"date",offsetType:"local"})}),g=e.computed(()=>{var u,d;const p=(d=(u=n.subscription)==null?void 0:u.next_invoice)==null?void 0:d.invoice_date;if(p)return s({date:p,format:"date",offsetType:"local"})}),v=g,k=e.computed(()=>{var p,u;return(((u=(p=E.getMostRecentScheduleInfo(n.subscription))==null?void 0:p.pricing_plan_schedule)==null?void 0:u.enabled_pricings)??[]).map(({pricing_id:d})=>d).filter(d=>!!d)}),{title:C,explanation:B,confirmButtonText:_,cancelButtonText:x,errorMessage:S}=Ce({variant:f,renewableUntil:l,billingPeriodEndsAt:g}),{paymentMethod:y,get:I}=ke();e.watch([()=>n.showModal,()=>{var p;return(p=n.subscription)==null?void 0:p.payment_method_id},()=>{var p;return(p=n.subscription)==null?void 0:p.customer_id}],([p,u,d])=>{var h;!p||!u||!d||u!==((h=y.value)==null?void 0:h.id)&&I({customerId:d,paymentMethodId:u}).catch(()=>{})},{immediate:!0});const b=e.ref(!1),w=e.ref(!1);e.watch(()=>n.showModal,p=>{p&&(w.value=!1)});const N=async()=>{if(!(!n.subscription||!n.variant||b.value)){b.value=!0,w.value=!1;try{await r({id:n.subscription.id,variant:n.variant}),i("confirmed"),i("close")}catch(p){c.error("SUBSCRIPTION_CANCELLATION_FAILED","Failed to change the cancellation state of a subscription",{variant:n.variant},p),w.value=!0}finally{b.value=!1}}},V=()=>{b.value||i("close")};return(p,u)=>(e.openBlock(),e.createBlock(e.unref(H.Modal),{size:"md","show-modal":t.showModal,title:e.unref(C),"confirm-button-text":e.unref(_),"cancel-button-text":e.unref(x),"is-loading":b.value,"no-click-away":b.value,"no-backdrop-close":b.value,onConfirm:N,onClose:V},{body:e.withCtx(()=>[e.createElementVNode("div",Be,[e.createVNode(e.unref(m._sfc_main),{variant:"body-sm",color:"subtle",tag:"p",class:"sv-subscription-cancellation-modal__explanation"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(B)),1)]),_:1}),t.subscription?(e.openBlock(),e.createBlock(e.unref(M._sfc_main),{key:0,"no-spacing":"",class:"sv-subscription-cancellation-modal__subscription"},{default:e.withCtx(()=>[e.createVNode(J._sfc_main,{subscription:t.subscription,avatar:t.avatar,"enabled-pricing-ids":k.value},null,8,["subscription","avatar","enabled-pricing-ids"]),e.unref(v)||e.unref(y)?(e.openBlock(),e.createElementBlock("div",xe,[e.unref(v)?(e.openBlock(),e.createElementBlock("div",Ie,[e.createVNode(e.unref(m._sfc_main),{tag:"span",variant:"body-xs",color:"secondary",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Renews",description:"Label before the date the subscription renews, shown in the cancel subscription modal",id:"subscription_cancellation_modal.renews_label"})),1)]),_:1}),e.createVNode(e.unref(m._sfc_main),{tag:"span",variant:"body-xs",color:"secondary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(v)),1)]),_:1})])):e.createCommentVNode("",!0),e.unref(y)?(e.openBlock(),e.createBlock(e.unref(G._sfc_main),{key:1,variant:"condensed",class:"sv-subscription-cancellation-modal__payment-method","payment-method":e.unref(y)},null,8,["payment-method"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),w.value?(e.openBlock(),e.createBlock(e.unref(L._sfc_main),{key:1,class:"sv-subscription-cancellation-modal__error sv-error",title:e.unref(S)},null,8,["title"])):e.createCommentVNode("",!0)])]),_:1},8,["show-modal","title","confirm-button-text","cancel-button-text","is-loading","no-click-away","no-backdrop-close"]))}}),Ne={class:"sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center"},Pe=e.defineComponent({__name:"SubscriptionDetails",props:{subscription:{type:Object},schedulesData:{type:Array},customer:{type:Object},paymentMethods:{type:Array},walletBalances:{default:()=>[],type:Array},onDemandItems:{default:()=>[],type:Array},onDemandScheduleId:{type:String},hasWalletBalancesError:{type:Boolean},avatar:{type:String},canViewCreatedInvoice:{type:Boolean},isLoading:{type:Boolean},error:{type:null}},emits:["top-up-charged","auto-top-up-saved","auto-top-up-cancelled","payment-method-stored","subscription-changed","invoice-created"],setup(t,{emit:a}){const n=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./SubscriptionSchedules-Dy0fUgx5.js"))),i=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./ChargeOnDemandModal-b17YswWA.js"))),o=t,s=a,{dispatchAction:c}=O.useActionDispatchProvider(),{$t:r}=m.useIntl(),{isCancellable:f,isRenewable:l,pendingVariant:g,cancel:v,renew:k,dismiss:C,manage:B}=ue({subscription:e.toRef(o,"subscription")}),_=e.ref();e.watch(g,u=>{u&&(_.value=void 0)});const x=()=>{_.value=g.value,s("subscription-changed")},S=e.computed(()=>{if(_.value)return _.value==="RENEW"?r({defaultMessage:"Your subscription has been renewed.",id:"subscription_details.renew_success",description:"Confirmation shown after a cancellation has been undone"}):r({defaultMessage:"Your subscription has been cancelled. You keep access until the end of the billing period.",id:"subscription_details.cancel_success",description:"Confirmation shown after a subscription has been cancelled"})}),y=e.computed(()=>E.getMostRecentScheduleInfo(o.subscription)),I=e.computed(()=>(o.paymentMethods??[]).find(({id:u})=>{var d;return u===((d=o.subscription)==null?void 0:d.payment_method_id)})),b=e.computed(()=>o.subscription?[o.subscription]:[]),w=e.ref(!1),N=e.ref(!1),V=()=>{N.value=!0,w.value=!0},p=e.computed(()=>E.getSubscriptionName({subscription:o.subscription,fallback:r({defaultMessage:"Subscription details",id:"subscription_details.title",description:"Title for the subscription details page"})}));return(u,d)=>(e.openBlock(),e.createBlock(e.unref(j.ContentWithAsideLayout),{class:"sv-subscription-details sv-root sv-screen"},{header:e.withCtx(()=>[e.createElementVNode("div",Ne,[e.createVNode(e.unref(m._sfc_main),{variant:"heading-2",tag:"h1",class:"sv-subscription-details__title grow"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value),1)]),_:1}),e.unref(l)?(e.openBlock(),e.createBlock(e.unref(D._sfc_main),{key:0,intent:"secondary",class:"sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",type:"button",onClick:e.unref(k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Renew subscription",id:"subscription_details.renew_button.label",description:"Label for the renew subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createBlock(e.unref(D._sfc_main),{key:1,intent:"secondary",class:"sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",type:"button",onClick:e.unref(v)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Cancel subscription",id:"subscription_details.cancel_button.label",description:"Label for the cancel subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])]),content:e.withCtx(()=>[S.value?(e.openBlock(),e.createBlock(e.unref(F._sfc_main),{key:0,class:"sv-subscription-details__cancellation-success",type:"success",title:S.value},null,8,["title"])):e.createCommentVNode("",!0),t.error?(e.openBlock(),e.createBlock(e.unref(L._sfc_main),{key:1,class:"sv-subscription-details__error sv-error",title:e.unref(r)({defaultMessage:"Unable to load this subscription. Please try again later.",id:"subscription_details.load_error",description:"Error message shown when the subscription cannot be loaded on the subscription details page"})},null,8,["title"])):t.isLoading?(e.openBlock(),e.createBlock(z._sfc_main,{key:2,variant:"section",class:"min-h-[220px]"})):t.subscription?(e.openBlock(),e.createBlock(e.unref(n),{key:3,class:"sv-subscription-details__schedules","schedules-data":t.schedulesData??[],configuration:{subscriptionId:t.subscription.id},"is-loading":t.isLoading},null,8,["schedules-data","configuration","is-loading"])):(e.openBlock(),e.createBlock(Y._sfc_main,{key:4,class:"sv-subscription-details__empty-state",icon:"receipt_long"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Subscription not found",id:"subscription_details.empty_state.title",description:"Title shown when the requested subscription does not exist"})),1)]),message:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"This subscription is no longer available.",id:"subscription_details.empty_state.message",description:"Message shown when the requested subscription does not exist"})),1)]),_:1}))]),aside:e.withCtx(()=>[e.createVNode($._sfc_main,{class:"sv-subscription-details__wallet-balances","has-error":!!t.hasWalletBalancesError,"is-loading":t.isLoading,"wallet-balances":t.walletBalances,"show-top-up-button":"",customer:t.customer,"payment-methods":t.paymentMethods,subscriptions:b.value,onTopUpCharged:d[0]||(d[0]=h=>u.$emit("top-up-charged")),onAutoTopUpSaved:d[1]||(d[1]=h=>u.$emit("auto-top-up-saved")),onAutoTopUpCancelled:d[2]||(d[2]=h=>u.$emit("auto-top-up-cancelled")),onPaymentMethodStored:d[3]||(d[3]=h=>u.$emit("payment-method-stored"))},null,8,["has-error","is-loading","wallet-balances","customer","payment-methods","subscriptions"]),!t.isLoading&&t.onDemandItems.length>0?(e.openBlock(),e.createBlock(we,{key:0,items:t.onDemandItems,class:"sv-subscription-details__on-demand-items",onOrder:V},null,8,["items"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createBlock(_e,{key:1,class:"sv-subscription-details__upgrades","pricing-plan-schedule":y.value,onUpgrade:e.unref(B)},null,8,["pricing-plan-schedule","onUpgrade"])):e.createCommentVNode("",!0),I.value?(e.openBlock(),e.createBlock(W._sfc_main,{key:2,class:"sv-subscription-details__payment-method","is-loading":t.isLoading,"payment-methods":[I.value],configuration:{showViewAllButton:!1,showAddButton:!1}},null,8,["is-loading","payment-methods"])):e.createCommentVNode("",!0),N.value&&t.subscription&&t.onDemandScheduleId?(e.openBlock(),e.createBlock(e.unref(i),{key:3,"show-modal":w.value,subscription:t.subscription,"schedule-id":t.onDemandScheduleId,items:t.onDemandItems,customer:t.customer,"payment-methods":t.paymentMethods,"can-view-created-invoice":t.canViewCreatedInvoice,onClose:d[4]||(d[4]=h=>w.value=!1),onPaymentMethodStored:d[5]||(d[5]=h=>u.$emit("payment-method-stored")),onInvoiceCreated:d[6]||(d[6]=h=>u.$emit("invoice-created",h)),onViewInvoice:d[7]||(d[7]=h=>e.unref(c)({action:"view-invoice",data:{invoiceId:h}}))},null,8,["show-modal","subscription","schedule-id","items","customer","payment-methods","can-view-created-invoice"])):e.createCommentVNode("",!0),e.createVNode(Me,{"show-modal":!!e.unref(g),variant:e.unref(g),subscription:t.subscription,avatar:t.avatar,onConfirmed:x,onClose:e.unref(C)},null,8,["show-modal","variant","subscription","avatar","onClose"])]),_:1}))}}),De=["FIXED","FLAT"],Ve=(t,a)=>{var i;const n=(i=t.details.bands)==null?void 0:i[0];return a==="FIXED"?n==null?void 0:n.fixed_amount:n==null?void 0:n.amount},U=t=>typeof t=="number"&&Number.isInteger(t)&&t>=1,Ee=t=>{var n;const a=Number((n=t.default_units)==null?void 0:n.number);return U(a)?a:1},Ae=t=>{const a=t.flatMap(q.getAllPricings);return{productItems:new Map(a.flatMap(n=>n.items??[]).flatMap(n=>n.product_items??[]).map(({id:n,name:i})=>[n,i])),products:new Map(a.flatMap(n=>n.products??[]).map(({id:n,name:i})=>[n,i]))}},Te=(t,a,n)=>A.getComposedString(a.product_item_ids.map(i=>n.productItems.get(i)))||t.name||A.getComposedString(t.product_ids.map(i=>n.products.get(i)))||"",Le=(t,a,n)=>{var s,c;const i=(s=a.configs)==null?void 0:s.find(r=>r.on_demand);if(!i||(c=i.wallet_grants)!=null&&c.length||!le.hasOneOfPricingTypes(i,De))return;const o=i.details.pricing_type==="FIXED"?"FIXED":"FLAT";return{pricingItemId:a.id,pricingItemConfigId:i.id,name:Te(t,a,n),priceType:o,price:Ve(i,o),defaultUnits:Ee(i)}},Oe=(t,{pricingPlanVersions:a=[]}={})=>{const n=Ae(a);return q.getAllPricings(t).flatMap(i=>(i.items??[]).flatMap(o=>Le(i,o,n)??[]))},$e=(t,a)=>{const n=new Set((a.payment_acceptors??[]).flatMap(i=>{var o;return((o=i.payment_gateway)==null?void 0:o.integration_id)??[]}));return t.filter(i=>i.status==="ACTIVE"&&!!i.integration_id&&n.has(i.integration_id)).sort((i,o)=>+(o.id===a.payment_method_id)-+(i.id===a.payment_method_id))},qe=(t,a)=>t.flatMap(({pricingItemId:n,units:i})=>{const o=a.find(s=>s.pricingItemId===n);return o?o.priceType==="FLAT"&&i!==void 0?[{pricing_item_id:n,units:{number:String(i)}}]:[{pricing_item_id:n}]:[]});function Re({subscription:t}){const{getOnDemandPricingItems:a}=se.createPricingPlanSchedulesService(),n=m.useLogger(),{data:i,execute:o,error:s}=re.useService({service:a}),c=e.computed(()=>{var l;return((l=t.value)==null?void 0:l.variant)==="DEFAULT"?ce.getActiveDefaultScheduleInfo(t.value.pricing_plan_schedule_infos):void 0}),r=e.computed(()=>{var l;return(l=c.value)==null?void 0:l.id});return e.watch(r,l=>{l&&o({scheduleId:l}).catch(()=>n.error("ON_DEMAND_ITEMS_LOAD_FAILED","Failed to load the on-demand items of the subscription",{scheduleId:l},s.value))},{immediate:!0}),{items:e.computed(()=>{var l,g;return r.value&&((l=i.value)==null?void 0:l.pricing_plan_schedule_id)===r.value?Oe(i.value,{pricingPlanVersions:(g=t.value)==null?void 0:g.pricing_plan_schedule_infos.map(v=>v.pricing_plan_version)}):[]}),scheduleId:r}}const Ue=e.defineComponent({__name:"SubscriptionDetails.entry.view",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const a=t,n=a.portalObject.customer_id,{subscription:i,withPlanData:o,get:s,error:c}=ne.useSubscription({subscriptionId:a.configuration.subscriptionId}),{customer:r,get:f}=ie.useCustomer({customerId:n}),{items:l,fetchAll:g}=ae.usePaymentMethods({customerId:n}),{walletBalances:v,apiStatus:k,fetch:C}=$.useCustomerWalletBalances({customerId:n}),{isLoading:B}=oe.useLoadInitialData(s(),f.execute(),g(),C()),{items:_,scheduleId:x}=Re({subscription:i}),S=e.computed(()=>i.value?o(i.value):[]),y=e.computed(()=>{var b;return((b=v.value)==null?void 0:b.wallet_balances)??[]}),I=e.computed(()=>k.value===te.ApiStatus.Failed);return(b,w)=>e.renderSlot(b.$slots,"default",{subscription:e.unref(i),schedulesData:S.value,customer:e.unref(r),paymentMethods:e.unref(l),walletBalances:y.value,onDemandItems:e.unref(_),onDemandScheduleId:e.unref(x),hasWalletBalancesError:I.value,isLoading:e.unref(B),error:e.unref(c),refreshWalletBalances:e.unref(C),refreshPaymentMethods:e.unref(g),refreshSubscription:e.unref(s)})}});function Fe({invoice:t,configuration:a}){var n;(n=a.onInvoiceCreated)==null||n.call(a,{invoiceId:t.id,paymentStatus:t.payment_status})}const je=e.defineComponent({__name:"SubscriptionDetails.entry",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const a=de.getComponentName("subscription-details"),n=t;return(i,o)=>(e.openBlock(),e.createBlock(e.unref(m._sfc_main$1),{entry:i.$props,"component-name":e.unref(a),"allowed-portal-types":["CUSTOMER"],onError:o[1]||(o[1]=s=>i.$emit("error",s))},{default:e.withCtx(()=>[e.createVNode(Ue,e.normalizeProps(e.guardReactiveProps(i.$props)),{default:e.withCtx(({subscription:s,schedulesData:c,customer:r,paymentMethods:f,walletBalances:l,onDemandItems:g,onDemandScheduleId:v,hasWalletBalancesError:k,isLoading:C,error:B,refreshWalletBalances:_,refreshPaymentMethods:x,refreshSubscription:S})=>[e.createVNode(Pe,{subscription:s,"schedules-data":c,customer:r,avatar:t.configuration.avatar,"can-view-created-invoice":t.configuration.canViewCreatedInvoice,"payment-methods":f,"wallet-balances":l,"on-demand-items":g,"on-demand-schedule-id":v,"has-wallet-balances-error":k,"is-loading":C,error:B,onTopUpCharged:_,onAutoTopUpSaved:_,onAutoTopUpCancelled:_,onPaymentMethodStored:x,onSubscriptionChanged:S,onInvoiceCreated:o[0]||(o[0]=y=>e.unref(Fe)({invoice:y,configuration:n.configuration}))},null,8,["subscription","schedules-data","customer","avatar","can-view-created-invoice","payment-methods","wallet-balances","on-demand-items","on-demand-schedule-id","has-wallet-balances-error","is-loading","error","onTopUpCharged","onAutoTopUpSaved","onAutoTopUpCancelled","onPaymentMethodStored","onSubscriptionChanged"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:We}=m.createSolvimonElement(je,"subscription-details");exports.defineSolvimonSubscriptionDetails=We;exports.getPayablePaymentMethods=$e;exports.isOrderableUnits=U;exports.toChargePricingItems=qe;exports.useChargeOnDemandPriceLabel=R;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./SubscriptionSchedules.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js");exports.default=e._sfc_main;
|