@solvimon/solvimon-web 0.1.0-alpha.25 → 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-Dh_a0NRB.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DcrLNA_x.mjs} +6 -6
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BM1_31Tl.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js} +1 -1
- package/dist/{Avatar.vue.es-CvxRdCes.js → Avatar.vue.es-Bm6MCMAL.js} +1 -1
- package/dist/{Avatar.vue.es-C9Jkfuvp.mjs → Avatar.vue.es-BqQHvLGA.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-7wQAw6Lv.js → BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BRSUpMPU.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs} +8 -8
- package/dist/{Button.vue.es-BbSN0uOk.mjs → Button.vue.es-C32_baQN.mjs} +1 -1
- package/dist/{Button.vue.es-CeUTAc2n.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-BMzK8nQg.mjs → Checkout.entry.ce-BA5ljKj8.mjs} +1562 -1538
- package/dist/{Chip.vue.es-T22Q7AF9.mjs → Chip.vue.es-CKCOY5T6.mjs} +2 -2
- package/dist/{Chip.vue.es-BN83K3Tk.js → Chip.vue.es-D60gTbfe.js} +1 -1
- package/dist/{ContextMenu.vue.es-DXKR7WFg.js → ContextMenu.vue.es-C7KI8Gz6.js} +1 -1
- package/dist/{ContextMenu.vue.es-0PRmCAzL.mjs → ContextMenu.vue.es-Da-lAmTl.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-C2j40TYP.mjs → CustomerBillingInformation.vue.es-BxBQt4Q0.mjs} +2 -2
- package/dist/{CustomerBillingInformation.vue.es-yrLGc7oL.js → CustomerBillingInformation.vue.es-bFUx81Ig.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BZwGWhaL.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs} +6 -6
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C8diNL5x.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js} +1 -1
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-xqMsbuU6.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-DsYRZzuE.js → DividerText.vue.es-BF3gnr4e.js} +1 -1
- package/dist/{DividerText.vue.es-CV1XK_Vz.mjs → DividerText.vue.es-DKl3FnDJ.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-kpjrC-4q.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs} +4 -4
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-srXOpUb0.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js} +1 -1
- package/dist/{ErrorNotification.vue.es-QfRoDhkn.js → ErrorNotification.vue.es-BX9dHEc-.js} +1 -1
- package/dist/{ErrorNotification.vue.es-CiUJva6S.mjs → ErrorNotification.vue.es-rRKgmkzV.mjs} +1 -1
- package/dist/{IconButton.vue.es-CytBZUkZ.js → IconButton.vue.es-Bwdfu-jm.js} +1 -1
- package/dist/{IconButton.vue.es-ChvsCZQG.mjs → IconButton.vue.es-UlqwNPAX.mjs} +2 -2
- package/dist/{IconTitle.vue.es-DPruIJ6l.mjs → IconTitle.vue.es-CK9k69tV.mjs} +3 -3
- package/dist/{IconTitle.vue.es-DtnpBObk.js → IconTitle.vue.es-Cei98MBw.js} +1 -1
- package/dist/{Input.vue.es-BkzQDkrz.js → Input.vue.es-B47l_feL.js} +1 -1
- package/dist/{Input.vue.es-DJQqJrsb.mjs → Input.vue.es-D9IjIWc-.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Do0dDtkA.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DKlPrxQS.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BC-zyUqe.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DUfJl07Y.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-CFhhhwId.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-D9Rtgapa.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DQFS7SfE.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-6qpbyymg.mjs → InvoiceSummary.vue.es-DQ4KvTaw.mjs} +576 -565
- package/dist/{Modal.vue.es-JpE0eh_Q.js → Modal.vue.es-8LN4gBh0.js} +1 -1
- package/dist/{Modal.vue.es-BuRlbyZw.mjs → Modal.vue.es-B9xMiyn3.mjs} +5 -5
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-nAuhIopc.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-B1yGKkWN.js} +1 -1
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-UmKgVvdj.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-YpcWHm24.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DggCusgC.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-DnmParhQ.mjs → PaymentHistoryBlock-DYa99P1M.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-uWuWjr8I.js → PaymentHistoryBlock-Ds93gNvh.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BS8N4yt9.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CBZhXQfC.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BziIf86i.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D0KnSy0y.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-DTXm56QQ.js → PaymentIntegrationForm-B_Db4DG1.js} +1 -1
- package/dist/{PaymentIntegrationForm-DL55i0HD.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-Cqsy82To.mjs → PaymentIntegrationFormAdyen-D4qfNtZ_.mjs} +197 -183
- package/dist/PaymentIntegrationFormAdyen-HeA9XIj-.js +98 -0
- package/dist/{PaymentIntegrationFormStripe-DIU1rnwH.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-m1NasGqw.mjs → PaymentMethod.vue.es-CKu5nApX.mjs} +168 -148
- package/dist/{PaymentMethodForm-BEVdWCrH.js → PaymentMethodForm-1d0YIGOu.js} +1 -1
- package/dist/{PaymentMethodForm-BYzt1PVP.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-fdRTp7sc.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs} +45 -41
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-FhMBZqtI.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js} +1 -1
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-FChyZp2v.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-B4ZbKxUw.mjs → PricingGroupRangeInput.vue.es-CJpvUP3-.mjs} +4 -4
- package/dist/{PricingGroupRangeInput.vue.es-Ba3v0J_R.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-CkhBp9kI.mjs → RadioGroupExtended.vue.es-BalV7gwp.mjs} +2 -2
- package/dist/{RadioGroupExtended.vue.es-CHrcqSRq.js → RadioGroupExtended.vue.es-Dt6LH9Yh.js} +1 -1
- package/dist/{Section.vue.es-D5svcVS_.mjs → Section.vue.es-D7eiXUbk.mjs} +1 -1
- package/dist/{Section.vue.es-CSrVPlUK.js → Section.vue.es-zVXBHAL6.js} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BqOSBdFQ.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BM9Y4Cy3.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-CMVoB2bw.js → SubscriptionSchedules-Cm5Dt-1H.js} +1 -1
- package/dist/{SubscriptionSchedules-yDcsD1hd.mjs → SubscriptionSchedules-DrrEAPlx.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DZHsQImd.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-BmNl5u8R.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs} +3 -3
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-BgXZMihr.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-B41qZmcL.js} +1 -1
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DOJ0t_fo.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js} +1 -1
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BUzdZHah.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DFU0IULg.mjs} +8 -8
- package/dist/{TooltipParagraph.vue.es-CxdL8-B7.mjs → TooltipParagraph.vue.es-BXbOJmjr.mjs} +3 -3
- package/dist/TooltipParagraph.vue.es-Cph6zT31.js +1 -0
- package/dist/{TrialChip.vue.es-BCc8q5j0.js → TrialChip.vue.es-C_wgHGuN.js} +1 -1
- package/dist/{TrialChip.vue.es-BK7m7e7q.mjs → TrialChip.vue.es-C_yRujip.mjs} +2 -2
- package/dist/{cn.es-ZXNzpauQ.mjs → cn.es-CGa6b2Lt.mjs} +2 -2
- package/dist/{cn.es-71nFUose.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-hH6pju3X.js → customElements-C963-LtW.js} +36 -32
- package/dist/{customElements-q_i9y0Ph.mjs → customElements-D5DAoHRI.mjs} +231 -196
- package/dist/{customer-BDoOIAFr.mjs → customer-DKa1B2vp.mjs} +4 -4
- package/dist/{customer-C9q6ti8s.js → customer-TE1FnGT0.js} +1 -1
- package/dist/{de-DE-BSlbAnPE.js → de-DE-B4TUdnUf.js} +1 -1
- package/dist/{de-DE-B_ik9VNt.mjs → de-DE-CLfzTbbX.mjs} +38 -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-DkCltadt.mjs → en-US-D6SGRAch.mjs} +38 -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-CHp75zZI.js → invoices-ClqTWYF9.js} +1 -1
- package/dist/{invoices-DIzkXntV.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-CHj2McbF.mjs → it-IT-Cym1UvvK.mjs} +38 -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-Cdvd_XMN.mjs → nl-NL-D0c4x5C0.mjs} +38 -6
- package/dist/nl-NL-jIfAVGv0.js +1 -0
- package/dist/paymentMethods-AL2U_byg.js +1 -0
- package/dist/{paymentMethods-DEKp_4QM.mjs → paymentMethods-CWzJhcWK.mjs} +16 -14
- package/dist/{payments-DBvregE8.js → payments-BmiHMlQt.js} +1 -1
- package/dist/{payments-C0-Hq2a4.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-BArXBCFr.js → subscriptions-Cm83ckfl.js} +1 -1
- package/dist/{subscriptions--9MaTXMb.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-CKzeqXzY.js → useActionDispatchProvider-CHkVQMaE.js} +1 -1
- package/dist/{useActionDispatchProvider-BdciAX8T.mjs → useActionDispatchProvider-DDYqIh3r.mjs} +1 -1
- package/dist/{useCustomer-DSYr0F58.js → useCustomer-DGYtowRy.js} +1 -1
- package/dist/{useCustomer-D8ixhuuj.mjs → useCustomer-XZKWsolE.mjs} +1 -1
- package/dist/{useCustomerFormLabels-htMZ0xqB.mjs → useCustomerFormLabels-CcnkJLcB.mjs} +6 -6
- package/dist/useCustomerFormLabels-DAZziqYt.js +1 -0
- package/dist/{useExperimentalFeature-D29-TO3R.js → useExperimentalFeature-COOU6IZd.js} +1 -1
- package/dist/{useExperimentalFeature-JK_kAUQQ.mjs → useExperimentalFeature-ierhOt9Q.mjs} +1 -1
- package/dist/{useInvoiceData-Bpbog3zW.mjs → useInvoiceData-BEK-7msA.mjs} +3 -3
- package/dist/{useInvoiceData-DhrItfv7.js → useInvoiceData-CQRn8l9C.js} +1 -1
- package/dist/{useInvoicesList-duu_b5GW.js → useInvoicesList-BQkKyyXa.js} +1 -1
- package/dist/{useInvoicesList-BGwcJn4I.mjs → useInvoicesList-C4I118KM.mjs} +7 -7
- package/dist/{useLoadInitialData-BDmmpcfb.mjs → useLoadInitialData-CR0kbYw8.mjs} +1 -1
- package/dist/{useLoadInitialData-U2WvBmXT.js → useLoadInitialData-CrKnBZs_.js} +1 -1
- package/dist/{usePaymentMethodAvailability-DwtT5Czz.js → usePaymentMethodAvailability-Ci6LeYKt.js} +1 -1
- package/dist/{usePaymentMethodAvailability-adqRujTA.mjs → usePaymentMethodAvailability-ZH-m3B-A.mjs} +12 -12
- package/dist/{usePaymentMethodOptions-DlZtTQNQ.mjs → usePaymentMethodOptions-Ciifjo6c.mjs} +15 -13
- package/dist/usePaymentMethodOptions-Cqe92ZBn.js +1 -0
- package/dist/{usePaymentMethods-BnmSo_rr.mjs → usePaymentMethods-B-OKRyKd.mjs} +1 -1
- package/dist/{usePaymentMethods-DZ1a0mnr.js → usePaymentMethods-BKwrl82-.js} +1 -1
- package/dist/usePayments-Bauj16B-.js +1 -0
- package/dist/{usePayments-s-Z1di8d.mjs → usePayments-CV85OV8V.mjs} +46 -41
- package/dist/{usePortal-Hm7wvtgQ.js → usePortal-DSLImEfr.js} +1 -1
- package/dist/{usePortal-C4rR5Rhu.mjs → usePortal-H8Tv2TnZ.mjs} +1 -1
- package/dist/{useSubscription-DMAEJves.js → useSubscription-BiYNJT2e.js} +1 -1
- package/dist/{useSubscription-DSsXVO0h.mjs → useSubscription-DqnxWNKg.mjs} +1 -1
- package/dist/{useTimePeriod.es-CW8ycmpT.mjs → useTimePeriod.es-B22-fno3.mjs} +1 -1
- package/dist/{useTimePeriod.es-anHB63am.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-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-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/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/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +0 -47
- package/dist/useCustomerFormLabels-CRumh405.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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as u,
|
|
2
|
-
const
|
|
3
|
-
const e = u(),
|
|
1
|
+
import { c as u, u as p } from "./customElements-D5DAoHRI.mjs";
|
|
2
|
+
const a = "/portal/payments", m = () => {
|
|
3
|
+
const e = u(), n = p();
|
|
4
4
|
function r(t) {
|
|
5
5
|
return e({
|
|
6
|
-
url: `${
|
|
6
|
+
url: `${n.apiUrls.transaction}${a}`,
|
|
7
7
|
query: { invoice_id: t },
|
|
8
8
|
isCollection: !0
|
|
9
9
|
});
|
|
@@ -14,7 +14,7 @@ const n = "/portal/payments", m = () => {
|
|
|
14
14
|
adyen: c
|
|
15
15
|
}) {
|
|
16
16
|
return e({
|
|
17
|
-
url: `${
|
|
17
|
+
url: `${n.apiUrls.transaction}${a}/verify-details`,
|
|
18
18
|
options: {
|
|
19
19
|
method: "POST"
|
|
20
20
|
},
|
|
@@ -27,7 +27,7 @@ const n = "/portal/payments", m = () => {
|
|
|
27
27
|
}
|
|
28
28
|
function o(t) {
|
|
29
29
|
return e({
|
|
30
|
-
url: `${
|
|
30
|
+
url: `${n.apiUrls.transaction}${a}/authorize`,
|
|
31
31
|
options: {
|
|
32
32
|
method: "POST"
|
|
33
33
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l=(i=>(i.ENUM="ENUM",i.SWITCH="SWITCH",i.NUMBER="NUMBER",i.AMOUNT="AMOUNT",i.STRING="STRING",i))(l||{});const g=i=>i.type==="REVENUE",a=i=>i.type==="DEDUCTION",u=i=>!!(i!=null&&i.every(g)),v=i=>!!i&&i.length>0&&(i==null?void 0:i.every(a)),s=i=>{var e,n;return(e=i.configs)!=null&&e.length?i.configs:((n=i.billing_period_configs)==null?void 0:n.flatMap(t=>t.configs??[]))??[]},r=i=>s(i).some(e=>{var n;return((n=e.details)==null?void 0:n.pricing_type)!=="NONE"}),o=i=>i.feature.type===l.SWITCH&&!i.switch,d=i=>{var e,n;return!!((e=i.items)!=null&&e.some(r))||!!((n=i.entitlements)!=null&&n.some(t=>!o(t)))},N=i=>{var e;return((e=i==null?void 0:i.pricing_categories)==null?void 0:e.flatMap(n=>{var t;return[...((t=n.pricing_groups)==null?void 0:t.flatMap(c=>c.pricings??[]))??[],...n.pricings??[]]}))??[]};exports.FeatureType=l;exports.getAllPricings=N;exports.getPricingItemConfigs=s;exports.hasPrintablePricingContent=d;exports.isBilledPricingItem=r;exports.isDeductionPricingItem=v;exports.isDisabledEntitlement=o;exports.isRevenuePricingItem=u;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var t = /* @__PURE__ */ ((n) => (n.ENUM = "ENUM", n.SWITCH = "SWITCH", n.NUMBER = "NUMBER", n.AMOUNT = "AMOUNT", n.STRING = "STRING", n))(t || {});
|
|
2
|
+
const r = (n) => n.type === "REVENUE", a = (n) => n.type === "DEDUCTION", u = (n) => !!(n != null && n.every(r)), g = (n) => !!n && n.length > 0 && (n == null ? void 0 : n.every(a)), o = (n) => {
|
|
3
|
+
var s, i;
|
|
4
|
+
return (s = n.configs) != null && s.length ? n.configs : ((i = n.billing_period_configs) == null ? void 0 : i.flatMap((l) => l.configs ?? [])) ?? [];
|
|
5
|
+
}, c = (n) => o(n).some((s) => {
|
|
6
|
+
var i;
|
|
7
|
+
return ((i = s.details) == null ? void 0 : i.pricing_type) !== "NONE";
|
|
8
|
+
}), v = (n) => n.feature.type === t.SWITCH && !n.switch, d = (n) => {
|
|
9
|
+
var s, i;
|
|
10
|
+
return !!((s = n.items) != null && s.some(c)) || !!((i = n.entitlements) != null && i.some((l) => !v(l)));
|
|
11
|
+
}, N = (n) => {
|
|
12
|
+
var s;
|
|
13
|
+
return ((s = n == null ? void 0 : n.pricing_categories) == null ? void 0 : s.flatMap((i) => {
|
|
14
|
+
var l;
|
|
15
|
+
return [
|
|
16
|
+
...((l = i.pricing_groups) == null ? void 0 : l.flatMap((e) => e.pricings ?? [])) ?? [],
|
|
17
|
+
...i.pricings ?? []
|
|
18
|
+
];
|
|
19
|
+
})) ?? [];
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
t as F,
|
|
23
|
+
o as a,
|
|
24
|
+
u as b,
|
|
25
|
+
v as c,
|
|
26
|
+
g as d,
|
|
27
|
+
N as g,
|
|
28
|
+
d as h,
|
|
29
|
+
c as i
|
|
30
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { c as a, u as s } from "./customElements-D5DAoHRI.mjs";
|
|
2
|
+
function u() {
|
|
3
|
+
const n = a(), i = s();
|
|
4
|
+
function r({
|
|
5
|
+
scheduleId: e
|
|
6
|
+
}) {
|
|
7
|
+
return n({
|
|
8
|
+
url: `${i.apiUrls.config}/portal/pricing-plan-schedules/${e}/on-demand-pricing-items`
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function t({
|
|
12
|
+
pricingPlanSubscriptionId: e,
|
|
13
|
+
enabledPricings: c
|
|
14
|
+
}) {
|
|
15
|
+
return n({
|
|
16
|
+
url: `${i.apiUrls.config}/portal/pricing-plan-schedules`,
|
|
17
|
+
options: { method: "POST" },
|
|
18
|
+
data: {
|
|
19
|
+
pricing_plan_subscription_id: e,
|
|
20
|
+
enabled_pricings: c,
|
|
21
|
+
start_at: (/* @__PURE__ */ new Date()).toJSON()
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
getOnDemandPricingItems: r,
|
|
27
|
+
createPricingPlanSchedule: t
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
u as c
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const r=require("./customElements-C963-LtW.js");function a(){const n=r.createRequestService(),i=r.useConfig();function c({scheduleId:e}){return n({url:`${i.apiUrls.config}/portal/pricing-plan-schedules/${e}/on-demand-pricing-items`})}function t({pricingPlanSubscriptionId:e,enabledPricings:s}){return n({url:`${i.apiUrls.config}/portal/pricing-plan-schedules`,options:{method:"POST"},data:{pricing_plan_subscription_id:e,enabled_pricings:s,start_at:new Date().toJSON()}})}return{getOnDemandPricingItems:c,createPricingPlanSchedule:t}}exports.createPricingPlanSchedulesService=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Checkout.entry.ce-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Checkout.entry.ce-8EcavNgT.js");require("../../customElements-C963-LtW.js");exports.defineSolvimonCheckout=e.defineSolvimonCheckout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),P=require("../../error-CmduqgVq.js"),T=require("../../ContentWithAsideLayout-RSdKXqAf.js"),g=require("../../useInvoicesList-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),P=require("../../error-CmduqgVq.js"),T=require("../../ContentWithAsideLayout-RSdKXqAf.js"),g=require("../../useInvoicesList-BQkKyyXa.js"),k=require("../../usePortal-DSLImEfr.js"),_=require("../../customElements-C963-LtW.js"),h=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js"),E=require("../../useCustomer-DGYtowRy.js"),x=require("../../usePaymentMethods-BKwrl82-.js"),U=require("../../BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js"),j=require("../../useLoadInitialData-CrKnBZs_.js"),V=require("../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js"),W=require("../../CustomerPaymentMethods.lib-BKgQTCtc.js"),S=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-hBo2Y2mJ.js"),D=require("../../pricingPlanSchedule-BM8vsKkV.js"),F=require("../../sessionReference-m_6Rp4X1.js"),R=2,$=e.defineComponent({__name:"CustomerOverview",props:{configuration:{type:Object}},setup(i){var f;const p=i,u=k.usePortal(),c=_.useLogger(),o=(f=u.value)==null?void 0:f.customer_id,n=E.useCustomer({customerId:o}),l=g.useInvoicesList({customerId:o,batchSize:5}),s=h.useSubscriptionsList({customerId:o}),r=x.usePaymentMethods({customerId:o}),m=S.useCustomerWalletBalances({customerId:o}),w=e.computed(()=>{var t;return((t=m.walletBalances.value)==null?void 0:t.wallet_balances)??[]}),C=e.computed(()=>s.items.value.slice(0,R)),b=e.computed(()=>{var t;return r.items.value.slice(0,((t=p.configuration)==null?void 0:t.maxItems)??W.DEFAULT_MAX_ITEMS)}),{isLoading:a}=j.useLoadInitialData(n.get.execute(),l.fetchInitial(),s.fetchAll(),r.fetchAll(),m.fetch()),B=()=>{r.fetchAll()},d=()=>{m.fetch()},L=e.computed(()=>D.getActiveDefaultScheduleId(s.items.value));return e.watch([L,()=>s.items.value],([t,v])=>{t||v.length===0||c.warn("ACTIVE_SCHEDULE_NOT_FOUND","No schedule is currently being billed",{schedules:v.flatMap(({pricing_plan_schedule_infos:O})=>(O??[]).map(({id:q,type:M,start_at:A,end_at:I,...N})=>{var y;return{id:q,type:((y=N.pricing_plan_schedule)==null?void 0:y.type)??M,start_at:A,end_at:I}}))})}),(t,v)=>(e.openBlock(),e.createBlock(e.unref(T.ContentWithAsideLayout),{class:"sv-customer-overview sv-root sv-screen"},{header:e.withCtx(()=>[e.unref(n).customer.value?(e.openBlock(),e.createBlock(h._sfc_main,{key:0,class:"sv-customer-overview__subscriptions",customer:e.unref(n).customer.value,subscriptions:C.value,"payment-methods":e.unref(r).items.value,"is-loading":e.unref(a)},null,8,["customer","subscriptions","payment-methods","is-loading"])):e.createCommentVNode("",!0)]),content:e.withCtx(()=>[e.createVNode(g._sfc_main,{class:"sv-customer-overview__invoices",invoices:e.unref(l).items.value,"has-more-items":e.unref(l).hasNextBatch.value,"is-loading":e.unref(a),onLoadMore:e.unref(l).fetchMore},null,8,["invoices","has-more-items","is-loading","onLoadMore"])]),aside:e.withCtx(()=>[e.createVNode(S._sfc_main,{class:"sv-customer-overview__wallet-balances","has-error":e.unref(m).apiStatus.value===e.unref(P.ApiStatus).Failed,"is-loading":e.unref(a),"wallet-balances":w.value,"show-top-up-button":"",customer:e.unref(n).customer.value,"payment-methods":e.unref(r).items.value,subscriptions:e.unref(s).items.value,onTopUpCharged:d,onAutoTopUpSaved:d,onAutoTopUpCancelled:d,onPaymentMethodStored:B},null,8,["has-error","is-loading","wallet-balances","customer","payment-methods","subscriptions"]),e.createVNode(V._sfc_main,{class:"sv-customer-overview__payment-methods",configuration:i.configuration,"is-loading":e.unref(a),"payment-methods":b.value},null,8,["configuration","is-loading","payment-methods"]),e.unref(n).customer.value?(e.openBlock(),e.createBlock(U._sfc_main,{key:0,class:"sv-customer-overview__billing-information","is-loading":e.unref(a),customer:e.unref(n).customer.value},null,8,["is-loading","customer"])):e.createCommentVNode("",!0)]),_:1}))}}),H=e.defineComponent({__name:"CustomerOverview.entry",props:{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},configuration:{type:Object}},setup(i){const p=F.getComponentName("customer-overview");return(u,c)=>(e.openBlock(),e.createBlock(e.unref(_._sfc_main$1),{entry:u.$props,"component-name":e.unref(p),"allowed-portal-types":["CUSTOMER"],onError:c[0]||(c[0]=o=>u.$emit("error",o))},{default:e.withCtx(()=>[e.createVNode($,{configuration:i.configuration},null,8,["configuration"])]),_:1},8,["entry","component-name"]))}}),{define:z}=_.createSolvimonElement(H,"customer-overview");exports.defineSolvimonCustomerOverview=z;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as C, computed as p, watch as P, openBlock as d, createBlock as v, unref as e, withCtx as f, createVNode as _, createCommentVNode as b } from "vue";
|
|
2
2
|
import { A as j } from "../../error-BHVZJGwD.mjs";
|
|
3
3
|
import { C as x } from "../../ContentWithAsideLayout-BCM8tmZN.mjs";
|
|
4
|
-
import { u as D, _ as F } from "../../useInvoicesList-
|
|
5
|
-
import { u as W } from "../../usePortal-
|
|
6
|
-
import { b as k, d as R, e as V } from "../../customElements-
|
|
7
|
-
import { u as H, _ as z } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as X } from "../../useCustomer-
|
|
9
|
-
import { u as q } from "../../usePaymentMethods-
|
|
10
|
-
import { _ as G } from "../../BillingInformation.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as J } from "../../useLoadInitialData-
|
|
12
|
-
import { _ as K } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { u as D, _ as F } from "../../useInvoicesList-C4I118KM.mjs";
|
|
5
|
+
import { u as W } from "../../usePortal-H8Tv2TnZ.mjs";
|
|
6
|
+
import { b as k, d as R, e as V } from "../../customElements-D5DAoHRI.mjs";
|
|
7
|
+
import { u as H, _ as z } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-DFU0IULg.mjs";
|
|
8
|
+
import { u as X } from "../../useCustomer-XZKWsolE.mjs";
|
|
9
|
+
import { u as q } from "../../usePaymentMethods-B-OKRyKd.mjs";
|
|
10
|
+
import { _ as G } from "../../BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs";
|
|
11
|
+
import { u as J } from "../../useLoadInitialData-CR0kbYw8.mjs";
|
|
12
|
+
import { _ as K } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs";
|
|
13
13
|
import { D as Q } from "../../CustomerPaymentMethods.lib-B_753rau.mjs";
|
|
14
|
-
import { u as Y, _ as Z } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import { u as Y, _ as Z } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DkbQ2MiR.mjs";
|
|
15
15
|
import { a as ee } from "../../pricingPlanSchedule-BPrS2WRd.mjs";
|
|
16
16
|
import { a as te } from "../../sessionReference-3h-6FdrC.mjs";
|
|
17
17
|
const oe = 2, se = /* @__PURE__ */ C({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("../../formatting.es-C72Nsrmh.js"),C=require("../../Button.vue.es-CeUTAc2n.js"),B=require("../../index.es-BclokHQX.js"),S=require("../../usePayments-DL4agK2i.js"),M=require("../../InvoiceSummary.vue.es-v1TkOUhA.js"),_=require("../../Section.vue.es-CSrVPlUK.js"),f=require("../../customElements-hH6pju3X.js"),O=require("../../ContentWithAsideLayout-RSdKXqAf.js"),V=require("../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-4RmdLbzY.js"),k=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js"),P=require("../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-YpcWHm24.js"),x=require("../../usePaymentMethodAvailability-DwtT5Czz.js"),A=require("../../customer.es-BButyYo0.js"),I=require("../../useLoadInitialData-U2WvBmXT.js"),N=require("../../usePaymentMethodOptions-CXdFKFqZ.js"),T=require("../../usePaymentMethods-DZ1a0mnr.js"),q=require("../../sessionReference-m_6Rp4X1.js"),z={class:"flex items-center gap-1 border-0 py-0"},E=["id","name","disabled","value"],L=["for"],j=e.defineComponent({__name:"Checkbox",props:{modelValue:{type:Boolean},label:{},id:{},name:{},value:{},disabled:{type:Boolean},size:{default:"md"}},setup(t){const n=t,o=B.useVModel(n,"modelValue"),l={sm:"size-2",md:"size-4"},r=e.computed(()=>l[n.size]),s={sm:"text-xs",md:"text-sm"},c=e.computed(()=>s[n.size]);return(a,i)=>(e.openBlock(),e.createElementBlock("label",z,[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:t.id},a.$attrs,{"onUpdate:modelValue":i[0]||(i[0]=m=>e.isRef(o)?o.value=m:null),name:t.name,disabled:t.disabled,value:t.value,type:"checkbox",class:["rounded checked:bg-primary-600 checked:hover:bg-primary-700",{"border border-gray-300 checked:border-gray-300 checked:bg-gray-400 checked:hover:bg-gray-500":t.disabled,"bg-gray-100":t.disabled&&!e.unref(o),"bg-gray-300 text-primary-600":!t.disabled&&e.unref(o),"cursor-pointer":!t.disabled,[r.value]:!0}],onClickCapture:i[1]||(i[1]=e.withModifiers(()=>{},["stop"]))}),null,16,E),[[e.vModelCheckbox,e.unref(o)]]),e.createElementVNode("span",{for:t.id,class:e.normalizeClass(["leading-tight",{[c.value]:!0}])},e.toDisplayString(t.label),11,L)]))}}),$=e.defineComponent({__name:"PayButton",props:{amount:{type:Object},paymentMethod:{type:Object},type:{type:String},intent:{type:String},size:{type:String},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{type:null},iconSuffix:{type:null},tag:{type:String},preventDoubleClick:{type:Boolean}},emits:["click"],setup(t){const n=t,{$t:o}=f.useIntl(),l=e.computed(()=>({intent:n.intent??"primary",disabled:n.disabled,iconPrefix:n.iconPrefix,iconSuffix:n.iconSuffix,loading:n.loading,pill:n.pill,size:n.size??"lg",square:n.square,tag:n.tag,type:n.type})),r=e.computed(()=>{var c,a,i;switch((c=n.paymentMethod)==null?void 0:c.paymentMethodType){case"scheme":return"Credit Card";case"applepay":return"Apple Pay";case"googlepay":return"Google Pay";case"paypal":return"PayPal";case"ideal":return"iDeal";case"klarna":return"Klarna";case"bcmc":return"BCMC";case"sepadirectdebit":return"SEPA";case"twint":return"Twint";case"swish":return"Swish";case"vipps":return"Vipps";case"mbway":return"MBway";case"alipay":return"AliPay";case"wechatpayWeb":return"WeChatPay";case"afterpay_default":return"Afterpay";case"affirm":return"Affirm";case"ach":return"ACH";case"blik":return"Blik";case"cashapp":return"Cash App Pay";case"amazonpay":return"Amazon Pay";case"venmo":return"Venmo";case"clicktopay":return"Click to Pay";case"upi":return"UPI";case"revolutpay":return"Revolut Pay";case"ratepay":return"Ratepay";case"walley":return"Walley";case"alma":return"Alma";case"facilypay_3x":case"facilypay_4x":return"Oney";case"samsungpay":return"Samsung Pay";case"bizum":return"Bizum";case"pix":return"Pix";case"multibanco":return"Multibanco";case"openbanking_UK":return"Open Banking";default:return(a=n.paymentMethod)!=null&&a.paymentMethodType?e.capitalize((i=n.paymentMethod)==null?void 0:i.paymentMethodType):""}}),s=e.computed(()=>n.amount&&n.paymentMethod?o({defaultMessage:"Pay {amount} with {type}",id:"pay_button.label.amount_and_payment_method",description:"The label for the pay button when both the amount and the payment method are known"},{amount:w.formatAmount(n.amount),type:r.value}):n.amount?o({defaultMessage:"Pay {amount}",id:"pay_button.label.amount_only",description:"The label for the pay button when only the amount is known"},{amount:w.formatAmount(n.amount),type:r.value}):o({defaultMessage:"Pay",id:"pay_button.label.default",description:"The default label for the pay button when no amount and payment method are known"}));return(c,a)=>(e.openBlock(),e.createBlock(e.unref(C._sfc_main),e.mergeProps(l.value,{class:"w-full",onClick:a[0]||(a[0]=i=>c.$emit("click",i))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1},16))}}),R={class:"mt-4"},D={key:0},F=e.defineComponent({__name:"PayInvoice",props:{invoice:{type:Object},paymentMethodOptions:{type:Array},paymentAttempts:{default:()=>[],type:Array},countryCode:{type:String},amount:{type:Object},downloadService:{type:Function},configuration:{type:Object},isLoading:{type:Boolean},error:{type:null}},setup(t){const{$t:n}=f.useIntl(),o=t,{availability:l}=x.usePaymentMethodAvailability({paymentMethodOptions:()=>o.paymentMethodOptions,isLoading:()=>o.isLoading,context:()=>{var y;return{invoiceId:(y=o.invoice)==null?void 0:y.id}}}),r=e.ref(),s=e.ref(!0),c=e.ref(),a=e.ref(!1);function i(){if(!c.value)throw new Error("payment integration form not found");a.value=!0,c.value.submit()}const m=()=>{o.configuration.onPaymentSuccess&&o.configuration.onPaymentSuccess()},v=()=>{a.value=!1};return(y,d)=>(e.openBlock(),e.createBlock(e.unref(O.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(k._sfc_main,{class:"min-h-[52px] w-96"},{default:e.withCtx(()=>[t.invoice&&t.downloadService?(e.openBlock(),e.createBlock(e.unref(S._sfc_main),{key:0,invoice:t.invoice,"payment-attempts":t.paymentAttempts,"download-service":()=>t.downloadService(t.invoice)},null,8,["invoice","payment-attempts","download-service"])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(()=>{var g,u;return[t.isLoading?(e.openBlock(),e.createBlock(k._sfc_main,{key:0,variant:"section",class:"min-h-[300px]"})):e.createCommentVNode("",!0),(g=t.invoice)!=null&&g.paid?(e.openBlock(),e.createBlock(P._sfc_main,{key:1,status:"success",title:e.unref(n)({id:"pay_invoice.paid.title",defaultMessage:"Thank you for your payment!",description:"Title shown when the invoice has already been paid"}),class:"mt-8"},{default:e.withCtx(()=>[e.createVNode(e.unref(f._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(C._sfc_main$1),{icon:"check"}),e.createTextVNode(e.toDisplayString(e.unref(w.formatAmount)(t.invoice.tax_summary.total_amount)),1)]),_:1})]),_:1},8,["title"])):t.error?(e.openBlock(),e.createBlock(P._sfc_main,{key:2,status:"error",title:e.unref(n)({id:"pay_invoice.error.title",defaultMessage:"Something went wrong",description:"Title shown when the invoice payment fails to load"})},{default:e.withCtx(()=>[e.createVNode(e.unref(f._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({id:"pay_invoice.error.description",defaultMessage:"Please try again or contact support.",description:"Body text shown when the invoice payment fails to load"})),1)]),_:1})]),_:1},8,["title"])):!t.isLoading&&t.countryCode&&t.amount&&t.invoice?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.unref(l)==="READY"?(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:0,title:e.unref(n)({id:"pay_invoice.payment_methods.title",defaultMessage:"Payment methods",description:"Section title for the payment method selector on the pay invoice screen"}),"content-background":"none","no-border":"","no-spacing":""},{default:e.withCtx(()=>{var p,h;return[e.createElementVNode("div",{class:e.normalizeClass({"pointer-events-none opacity-60":a.value})},[e.createVNode(V._sfc_main,{ref_key:"paymentIntegrationFormRef",ref:c,amount:t.amount,"country-code":t.countryCode,context:{type:"INVOICE",related_resource_ids:[{type:"INVOICE",id:t.invoice.id}]},"customer-id":t.invoice.customer.id,"store-payment-method":s.value,"invoice-id":t.invoice.id,"payment-method-options":t.paymentMethodOptions??[],variant:"AUTHORIZE","billing-entity-name":(h=(p=t.invoice)==null?void 0:p.billing_entity)==null?void 0:h.legal_name,onPaymentSuccess:m,onPaymentFailed:v,onSelect:d[0]||(d[0]=b=>r.value=b)},null,8,["amount","country-code","context","customer-id","store-payment-method","invoice-id","payment-method-options","billing-entity-name"]),e.createElementVNode("div",R,[e.createVNode(e.unref(j),{id:"pay-invoice-store-payment-method",modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=b=>s.value=b),label:e.unref(n)({id:"pay_invoice.store_payment_method.label",defaultMessage:"Save this payment method for future payments",description:"Label of the checkbox that stores the payment method while paying an invoice"})},null,8,["modelValue","label"])])],2)]}),_:1},8,["title"])):(e.openBlock(),e.createBlock(x._sfc_main,{key:1,variant:"AUTHORIZE","seller-name":(u=t.invoice.billing_entity)==null?void 0:u.legal_name},{default:e.withCtx(()=>[t.downloadService?(e.openBlock(),e.createBlock(e.unref(C._sfc_main),{key:0,type:"button",intent:"secondary",onClick:d[2]||(d[2]=()=>{var p;return(p=t.downloadService)==null?void 0:p.call(t,t.invoice)})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Download invoice",description:"Button that downloads the invoice when it cannot be paid online",id:"pay_invoice.unavailable.download_invoice"})),1)]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["seller-name"]))],64)):e.createCommentVNode("",!0)]}),aside:e.withCtx(()=>[e.createVNode(k._sfc_main,{variant:"section",class:"min-h-[200px]"},{default:e.withCtx(()=>[t.invoice?(e.openBlock(),e.createBlock(e.unref(M._sfc_main),{key:0,invoice:t.invoice},null,8,["invoice"])):e.createCommentVNode("",!0)]),_:1}),t.invoice&&!t.invoice.paid&&e.unref(l)==="READY"?(e.openBlock(),e.createElementBlock("div",D,[e.createVNode($,{disabled:!r.value||a.value,loading:a.value,amount:t.amount,"payment-method":r.value,onClick:i},null,8,["disabled","loading","amount","payment-method"])])):e.createCommentVNode("",!0)]),_:1}))}}),U=e.defineComponent({__name:"PayInvoice.entry.view",props:{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},configuration:{type:Object}},setup(t){const n=t,{invoice:o,get:l,downloadInvoicePdf:r,error:s}=S.useInvoice({invoiceId:n.configuration.invoiceId}),{payments:c,get:a}=S.usePayments(),{fetchInitial:i}=T.usePaymentMethods({customerId:n.portalObject.customer_id}),{paymentMethodOptions:m,get:v}=N.usePaymentMethodOptions(),y=async()=>{const u=await l();await v({customerId:u.customer.id,amount:u.open_invoice_amount})},{isLoading:d}=I.useLoadInitialData(y(),i(),a(n.configuration.invoiceId)),g=e.computed(()=>{var u;return(u=o.value)!=null&&u.customer?A.getCustomerCountry(o.value.customer):void 0});return(u,p)=>{var h;return e.renderSlot(u.$slots,"default",{invoice:e.unref(o),isLoading:e.unref(d),amount:(h=e.unref(o))==null?void 0:h.open_invoice_amount,countryCode:g.value,paymentMethodOptions:e.unref(m),paymentAttempts:e.unref(c),downloadService:e.unref(r),error:e.unref(s)})}}}),W=e.defineComponent({__name:"PayInvoice.entry",props:{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},configuration:{type:Object}},setup(t){const n=q.getComponentName("pay-invoice");return(o,l)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main$1),{entry:o.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:l[0]||(l[0]=r=>o.$emit("error",r))},{default:e.withCtx(()=>[e.createVNode(U,e.normalizeProps(e.guardReactiveProps(o.$props)),{default:e.withCtx(({invoice:r,isLoading:s,amount:c,countryCode:a,paymentMethodOptions:i,paymentAttempts:m,downloadService:v,error:y})=>[e.createVNode(F,{"is-loading":s,invoice:r,amount:c,"country-code":a,"payment-method-options":i,configuration:t.configuration,"payment-attempts":m??[],"download-service":v,error:y},null,8,["is-loading","invoice","amount","country-code","payment-method-options","configuration","payment-attempts","download-service","error"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:H}=f.createSolvimonElement(W,"pay-invoice");exports.defineSolvimonPayInvoice=H;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("../../formatting.es-C72Nsrmh.js"),C=require("../../Button.vue.es-qGvnOKnK.js"),B=require("../../index.es-BclokHQX.js"),S=require("../../usePayments-Bauj16B-.js"),M=require("../../InvoiceSummary.vue.es-DBnR9Hs7.js"),_=require("../../Section.vue.es-zVXBHAL6.js"),v=require("../../customElements-C963-LtW.js"),O=require("../../ContentWithAsideLayout-RSdKXqAf.js"),V=require("../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js"),k=require("../../Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js"),P=require("../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js"),x=require("../../usePaymentMethodAvailability-Ci6LeYKt.js"),I=require("../../customer.es-BButyYo0.js"),A=require("../../useLoadInitialData-CrKnBZs_.js"),N=require("../../usePaymentMethodOptions-Cqe92ZBn.js"),T=require("../../usePaymentMethods-BKwrl82-.js"),q=require("../../sessionReference-m_6Rp4X1.js"),z={class:"flex items-center gap-1 border-0 py-0"},E=["id","name","disabled","value"],L=["for"],j=e.defineComponent({__name:"Checkbox",props:{modelValue:{type:Boolean},label:{},id:{},name:{},value:{},disabled:{type:Boolean},size:{default:"md"}},setup(t){const n=t,o=B.useVModel(n,"modelValue"),l={sm:"size-2",md:"size-4"},r=e.computed(()=>l[n.size]),s={sm:"text-xs",md:"text-sm"},c=e.computed(()=>s[n.size]);return(a,i)=>(e.openBlock(),e.createElementBlock("label",z,[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:t.id},a.$attrs,{"onUpdate:modelValue":i[0]||(i[0]=m=>e.isRef(o)?o.value=m:null),name:t.name,disabled:t.disabled,value:t.value,type:"checkbox",class:["rounded checked:bg-primary-600 checked:hover:bg-primary-700",{"border border-gray-300 checked:border-gray-300 checked:bg-gray-400 checked:hover:bg-gray-500":t.disabled,"bg-gray-100":t.disabled&&!e.unref(o),"bg-gray-300 text-primary-600":!t.disabled&&e.unref(o),"cursor-pointer":!t.disabled,[r.value]:!0}],onClickCapture:i[1]||(i[1]=e.withModifiers(()=>{},["stop"]))}),null,16,E),[[e.vModelCheckbox,e.unref(o)]]),e.createElementVNode("span",{for:t.id,class:e.normalizeClass(["leading-tight",{[c.value]:!0}])},e.toDisplayString(t.label),11,L)]))}}),$=e.defineComponent({__name:"PayButton",props:{amount:{type:Object},paymentMethod:{type:Object},type:{type:String},intent:{type:String},size:{type:String},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{type:null},iconSuffix:{type:null},tag:{type:String},preventDoubleClick:{type:Boolean}},emits:["click"],setup(t){const n=t,{$t:o}=v.useIntl(),l=e.computed(()=>({intent:n.intent??"primary",disabled:n.disabled,iconPrefix:n.iconPrefix,iconSuffix:n.iconSuffix,loading:n.loading,pill:n.pill,size:n.size??"lg",square:n.square,tag:n.tag,type:n.type})),r=e.computed(()=>{var c,a,i;switch((c=n.paymentMethod)==null?void 0:c.paymentMethodType){case"scheme":return"Credit Card";case"applepay":return"Apple Pay";case"googlepay":return"Google Pay";case"paypal":return"PayPal";case"ideal":return"iDeal";case"klarna":return"Klarna";case"bcmc":return"BCMC";case"sepadirectdebit":return"SEPA";case"twint":return"Twint";case"swish":return"Swish";case"vipps":return"Vipps";case"mbway":return"MBway";case"alipay":return"AliPay";case"wechatpayWeb":return"WeChatPay";case"afterpay_default":return"Afterpay";case"affirm":return"Affirm";case"ach":return"ACH";case"blik":return"Blik";case"cashapp":return"Cash App Pay";case"amazonpay":return"Amazon Pay";case"venmo":return"Venmo";case"clicktopay":return"Click to Pay";case"upi":return"UPI";case"revolutpay":return"Revolut Pay";case"ratepay":return"Ratepay";case"walley":return"Walley";case"alma":return"Alma";case"facilypay_3x":case"facilypay_4x":return"Oney";case"samsungpay":return"Samsung Pay";case"bizum":return"Bizum";case"pix":return"Pix";case"multibanco":return"Multibanco";case"openbanking_UK":return"Open Banking";default:return(a=n.paymentMethod)!=null&&a.paymentMethodType?e.capitalize((i=n.paymentMethod)==null?void 0:i.paymentMethodType):""}}),s=e.computed(()=>n.amount&&n.paymentMethod?o({defaultMessage:"Pay {amount} with {type}",id:"pay_button.label.amount_and_payment_method",description:"The label for the pay button when both the amount and the payment method are known"},{amount:w.formatAmount(n.amount),type:r.value}):n.amount?o({defaultMessage:"Pay {amount}",id:"pay_button.label.amount_only",description:"The label for the pay button when only the amount is known"},{amount:w.formatAmount(n.amount),type:r.value}):o({defaultMessage:"Pay",id:"pay_button.label.default",description:"The default label for the pay button when no amount and payment method are known"}));return(c,a)=>(e.openBlock(),e.createBlock(e.unref(C._sfc_main),e.mergeProps(l.value,{class:"w-full",onClick:a[0]||(a[0]=i=>c.$emit("click",i))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1},16))}}),R={class:"mt-4"},D={key:0},F=e.defineComponent({__name:"PayInvoice",props:{invoice:{type:Object},paymentMethodOptions:{type:Array},paymentAttempts:{default:()=>[],type:Array},countryCode:{type:String},amount:{type:Object},downloadService:{type:Function},configuration:{type:Object},isLoading:{type:Boolean},error:{type:null}},setup(t){const{$t:n}=v.useIntl(),o=t,{availability:l}=x.usePaymentMethodAvailability({paymentMethodOptions:()=>o.paymentMethodOptions,isLoading:()=>o.isLoading,context:()=>{var y;return{invoiceId:(y=o.invoice)==null?void 0:y.id}}}),r=e.ref(),s=e.ref(!0),c=e.ref(),a=e.ref(!1);function i(){if(!c.value)throw new Error("payment integration form not found");a.value=!0,c.value.submit()}const m=()=>{o.configuration.onPaymentSuccess&&o.configuration.onPaymentSuccess()},p=()=>{a.value=!1};return(y,d)=>(e.openBlock(),e.createBlock(e.unref(O.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(k._sfc_main,{class:"min-h-[52px] w-96"},{default:e.withCtx(()=>[t.invoice&&t.downloadService?(e.openBlock(),e.createBlock(e.unref(S._sfc_main),{key:0,invoice:t.invoice,"payment-attempts":t.paymentAttempts,"download-service":()=>t.downloadService(t.invoice)},null,8,["invoice","payment-attempts","download-service"])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(()=>{var g,u;return[t.isLoading?(e.openBlock(),e.createBlock(k._sfc_main,{key:0,variant:"section",class:"min-h-[300px]"})):e.createCommentVNode("",!0),(g=t.invoice)!=null&&g.paid?(e.openBlock(),e.createBlock(P._sfc_main,{key:1,status:"success",title:e.unref(n)({id:"pay_invoice.paid.title",defaultMessage:"Thank you for your payment!",description:"Title shown when the invoice has already been paid"}),class:"mt-8"},{default:e.withCtx(()=>[e.createVNode(e.unref(v._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(C._sfc_main$1),{icon:"check"}),e.createTextVNode(e.toDisplayString(e.unref(w.formatAmount)(t.invoice.tax_summary.total_amount)),1)]),_:1})]),_:1},8,["title"])):t.error?(e.openBlock(),e.createBlock(P._sfc_main,{key:2,status:"error",title:e.unref(n)({id:"pay_invoice.error.title",defaultMessage:"Something went wrong",description:"Title shown when the invoice payment fails to load"})},{default:e.withCtx(()=>[e.createVNode(e.unref(v._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({id:"pay_invoice.error.description",defaultMessage:"Please try again or contact support.",description:"Body text shown when the invoice payment fails to load"})),1)]),_:1})]),_:1},8,["title"])):!t.isLoading&&t.countryCode&&t.amount&&t.invoice?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.unref(l)==="READY"?(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:0,title:e.unref(n)({id:"pay_invoice.payment_methods.title",defaultMessage:"Payment methods",description:"Section title for the payment method selector on the pay invoice screen"}),"content-background":"none","no-border":"","no-spacing":""},{default:e.withCtx(()=>{var f,h;return[e.createElementVNode("div",{class:e.normalizeClass({"pointer-events-none opacity-60":a.value})},[e.createVNode(V._sfc_main,{ref_key:"paymentIntegrationFormRef",ref:c,amount:t.amount,"country-code":t.countryCode,context:{type:"INVOICE",related_resource_ids:[{type:"INVOICE",id:t.invoice.id}]},"customer-id":t.invoice.customer.id,"store-payment-method":s.value,"invoice-id":t.invoice.id,"payment-method-options":t.paymentMethodOptions??[],variant:"AUTHORIZE","billing-entity-name":(h=(f=t.invoice)==null?void 0:f.billing_entity)==null?void 0:h.legal_name,onPaymentSuccess:m,onPaymentFailed:p,onInvalid:p,onSelect:d[0]||(d[0]=b=>r.value=b)},null,8,["amount","country-code","context","customer-id","store-payment-method","invoice-id","payment-method-options","billing-entity-name"]),e.createElementVNode("div",R,[e.createVNode(e.unref(j),{id:"pay-invoice-store-payment-method",modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=b=>s.value=b),label:e.unref(n)({id:"pay_invoice.store_payment_method.label",defaultMessage:"Save this payment method for future payments",description:"Label of the checkbox that stores the payment method while paying an invoice"})},null,8,["modelValue","label"])])],2)]}),_:1},8,["title"])):(e.openBlock(),e.createBlock(x._sfc_main,{key:1,variant:"AUTHORIZE","seller-name":(u=t.invoice.billing_entity)==null?void 0:u.legal_name},{default:e.withCtx(()=>[t.downloadService?(e.openBlock(),e.createBlock(e.unref(C._sfc_main),{key:0,type:"button",intent:"secondary",onClick:d[2]||(d[2]=()=>{var f;return(f=t.downloadService)==null?void 0:f.call(t,t.invoice)})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Download invoice",description:"Button that downloads the invoice when it cannot be paid online",id:"pay_invoice.unavailable.download_invoice"})),1)]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["seller-name"]))],64)):e.createCommentVNode("",!0)]}),aside:e.withCtx(()=>[e.createVNode(k._sfc_main,{variant:"section",class:"min-h-[200px]"},{default:e.withCtx(()=>[t.invoice?(e.openBlock(),e.createBlock(e.unref(M._sfc_main),{key:0,invoice:t.invoice},null,8,["invoice"])):e.createCommentVNode("",!0)]),_:1}),t.invoice&&!t.invoice.paid&&e.unref(l)==="READY"?(e.openBlock(),e.createElementBlock("div",D,[e.createVNode($,{disabled:!r.value||a.value,loading:a.value,amount:t.amount,"payment-method":r.value,onClick:i},null,8,["disabled","loading","amount","payment-method"])])):e.createCommentVNode("",!0)]),_:1}))}}),U=e.defineComponent({__name:"PayInvoice.entry.view",props:{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},configuration:{type:Object}},setup(t){const n=t,{invoice:o,get:l,downloadInvoicePdf:r,error:s}=S.useInvoice({invoiceId:n.configuration.invoiceId}),{payments:c,get:a}=S.usePayments(),{fetchInitial:i}=T.usePaymentMethods({customerId:n.portalObject.customer_id}),{paymentMethodOptions:m,get:p}=N.usePaymentMethodOptions(),y=async()=>{const u=await l();await p({customerId:u.customer.id,invoiceId:u.id,amount:u.open_invoice_amount})},{isLoading:d}=A.useLoadInitialData(y(),i(),a(n.configuration.invoiceId)),g=e.computed(()=>{var u;return(u=o.value)!=null&&u.customer?I.getCustomerCountry(o.value.customer):void 0});return(u,f)=>{var h;return e.renderSlot(u.$slots,"default",{invoice:e.unref(o),isLoading:e.unref(d),amount:(h=e.unref(o))==null?void 0:h.open_invoice_amount,countryCode:g.value,paymentMethodOptions:e.unref(m),paymentAttempts:e.unref(c),downloadService:e.unref(r),error:e.unref(s)})}}}),W=e.defineComponent({__name:"PayInvoice.entry",props:{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},configuration:{type:Object}},setup(t){const n=q.getComponentName("pay-invoice");return(o,l)=>(e.openBlock(),e.createBlock(e.unref(v._sfc_main$1),{entry:o.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:l[0]||(l[0]=r=>o.$emit("error",r))},{default:e.withCtx(()=>[e.createVNode(U,e.normalizeProps(e.guardReactiveProps(o.$props)),{default:e.withCtx(({invoice:r,isLoading:s,amount:c,countryCode:a,paymentMethodOptions:i,paymentAttempts:m,downloadService:p,error:y})=>[e.createVNode(F,{"is-loading":s,invoice:r,amount:c,"country-code":a,"payment-method-options":i,configuration:t.configuration,"payment-attempts":m??[],"download-service":p,error:y},null,8,["is-loading","invoice","amount","country-code","payment-method-options","configuration","payment-attempts","download-service","error"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:H}=v.createSolvimonElement(W,"pay-invoice");exports.defineSolvimonPayInvoice=H;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as C, computed as
|
|
1
|
+
import { defineComponent as C, computed as P, openBlock as c, createElementBlock as B, withDirectives as _, createElementVNode as A, mergeProps as j, withModifiers as F, unref as n, isRef as D, vModelCheckbox as N, normalizeClass as V, toDisplayString as k, capitalize as U, createBlock as y, withCtx as r, createTextVNode as O, ref as x, createVNode as p, createCommentVNode as w, Fragment as W, renderSlot as q, normalizeProps as H, guardReactiveProps as K } from "vue";
|
|
2
2
|
import { f as z } from "../../formatting.es-RclXHhKo.mjs";
|
|
3
|
-
import { _ as E, a as Y } from "../../Button.vue.es-
|
|
3
|
+
import { _ as E, a as Y } from "../../Button.vue.es-C32_baQN.mjs";
|
|
4
4
|
import { u as Z } from "../../index.es-CXkP_k3u.mjs";
|
|
5
|
-
import { _ as G, u as J, a as Q } from "../../usePayments-
|
|
6
|
-
import { _ as X } from "../../InvoiceSummary.vue.es-
|
|
7
|
-
import { _ as ee } from "../../Section.vue.es-
|
|
8
|
-
import {
|
|
5
|
+
import { _ as G, u as J, a as Q } from "../../usePayments-CV85OV8V.mjs";
|
|
6
|
+
import { _ as X } from "../../InvoiceSummary.vue.es-DQ4KvTaw.mjs";
|
|
7
|
+
import { _ as ee } from "../../Section.vue.es-D7eiXUbk.mjs";
|
|
8
|
+
import { a as R, _ as T, d as te, e as ne } from "../../customElements-D5DAoHRI.mjs";
|
|
9
9
|
import { C as ae } from "../../ContentWithAsideLayout-BCM8tmZN.mjs";
|
|
10
|
-
import { _ as oe } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { _ as $ } from "../../Skeleton.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { _ as L } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { u as ie, _ as re } from "../../usePaymentMethodAvailability-
|
|
10
|
+
import { _ as oe } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs";
|
|
11
|
+
import { _ as $ } from "../../Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs";
|
|
12
|
+
import { _ as L } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs";
|
|
13
|
+
import { u as ie, _ as re } from "../../usePaymentMethodAvailability-ZH-m3B-A.mjs";
|
|
14
14
|
import { g as se } from "../../customer.es-B5ppZf0j.mjs";
|
|
15
|
-
import { u as le } from "../../useLoadInitialData-
|
|
16
|
-
import { u as ce } from "../../usePaymentMethodOptions-
|
|
17
|
-
import { u as de } from "../../usePaymentMethods-
|
|
15
|
+
import { u as le } from "../../useLoadInitialData-CR0kbYw8.mjs";
|
|
16
|
+
import { u as ce } from "../../usePaymentMethodOptions-Ciifjo6c.mjs";
|
|
17
|
+
import { u as de } from "../../usePaymentMethods-B-OKRyKd.mjs";
|
|
18
18
|
import { a as me } from "../../sessionReference-3h-6FdrC.mjs";
|
|
19
19
|
const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name", "disabled", "value"], pe = ["for"], ve = /* @__PURE__ */ C({
|
|
20
20
|
__name: "Checkbox",
|
|
@@ -31,10 +31,10 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
31
31
|
const t = e, a = Z(t, "modelValue"), d = {
|
|
32
32
|
sm: "size-2",
|
|
33
33
|
md: "size-4"
|
|
34
|
-
}, s =
|
|
34
|
+
}, s = P(() => d[t.size]), m = {
|
|
35
35
|
sm: "text-xs",
|
|
36
36
|
md: "text-sm"
|
|
37
|
-
}, l =
|
|
37
|
+
}, l = P(() => m[t.size]);
|
|
38
38
|
return (o, i) => (c(), B("label", ue, [
|
|
39
39
|
_(A("input", j({ id: e.id }, o.$attrs, {
|
|
40
40
|
"onUpdate:modelValue": i[0] || (i[0] = (f) => D(a) ? a.value = f : null),
|
|
@@ -79,7 +79,7 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
79
79
|
},
|
|
80
80
|
emits: ["click"],
|
|
81
81
|
setup(e) {
|
|
82
|
-
const t = e, { $t: a } = R(), d =
|
|
82
|
+
const t = e, { $t: a } = R(), d = P(() => ({
|
|
83
83
|
intent: t.intent ?? "primary",
|
|
84
84
|
disabled: t.disabled,
|
|
85
85
|
iconPrefix: t.iconPrefix,
|
|
@@ -90,7 +90,7 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
90
90
|
square: t.square,
|
|
91
91
|
tag: t.tag,
|
|
92
92
|
type: t.type
|
|
93
|
-
})), s =
|
|
93
|
+
})), s = P(() => {
|
|
94
94
|
var l, o, i;
|
|
95
95
|
switch ((l = t.paymentMethod) == null ? void 0 : l.paymentMethodType) {
|
|
96
96
|
case "scheme":
|
|
@@ -163,7 +163,7 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
163
163
|
default:
|
|
164
164
|
return (o = t.paymentMethod) != null && o.paymentMethodType ? U((i = t.paymentMethod) == null ? void 0 : i.paymentMethodType) : "";
|
|
165
165
|
}
|
|
166
|
-
}), m =
|
|
166
|
+
}), m = P(() => t.amount && t.paymentMethod ? a(
|
|
167
167
|
{
|
|
168
168
|
defaultMessage: "Pay {amount} with {type}",
|
|
169
169
|
id: "pay_button.label.amount_and_payment_method",
|
|
@@ -188,7 +188,7 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
188
188
|
id: "pay_button.label.default",
|
|
189
189
|
description: "The default label for the pay button when no amount and payment method are known"
|
|
190
190
|
}));
|
|
191
|
-
return (l, o) => (c(),
|
|
191
|
+
return (l, o) => (c(), y(n(E), j(d.value, {
|
|
192
192
|
class: "w-full",
|
|
193
193
|
onClick: o[0] || (o[0] = (i) => l.$emit("click", i))
|
|
194
194
|
}), {
|
|
@@ -227,32 +227,32 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
227
227
|
}
|
|
228
228
|
const f = () => {
|
|
229
229
|
a.configuration.onPaymentSuccess && a.configuration.onPaymentSuccess();
|
|
230
|
-
},
|
|
230
|
+
}, h = () => {
|
|
231
231
|
o.value = !1;
|
|
232
232
|
};
|
|
233
|
-
return (g, v) => (c(),
|
|
233
|
+
return (g, v) => (c(), y(n(ae), null, {
|
|
234
234
|
header: r(() => [
|
|
235
235
|
p($, { class: "min-h-[52px] w-96" }, {
|
|
236
236
|
default: r(() => [
|
|
237
|
-
e.invoice && e.downloadService ? (c(),
|
|
237
|
+
e.invoice && e.downloadService ? (c(), y(n(G), {
|
|
238
238
|
key: 0,
|
|
239
239
|
invoice: e.invoice,
|
|
240
240
|
"payment-attempts": e.paymentAttempts,
|
|
241
241
|
"download-service": () => e.downloadService(e.invoice)
|
|
242
|
-
}, null, 8, ["invoice", "payment-attempts", "download-service"])) :
|
|
242
|
+
}, null, 8, ["invoice", "payment-attempts", "download-service"])) : w("", !0)
|
|
243
243
|
]),
|
|
244
244
|
_: 1
|
|
245
245
|
})
|
|
246
246
|
]),
|
|
247
247
|
content: r(() => {
|
|
248
|
-
var M,
|
|
248
|
+
var M, u;
|
|
249
249
|
return [
|
|
250
|
-
e.isLoading ? (c(),
|
|
250
|
+
e.isLoading ? (c(), y($, {
|
|
251
251
|
key: 0,
|
|
252
252
|
variant: "section",
|
|
253
253
|
class: "min-h-[300px]"
|
|
254
|
-
})) :
|
|
255
|
-
(M = e.invoice) != null && M.paid ? (c(),
|
|
254
|
+
})) : w("", !0),
|
|
255
|
+
(M = e.invoice) != null && M.paid ? (c(), y(L, {
|
|
256
256
|
key: 1,
|
|
257
257
|
status: "success",
|
|
258
258
|
title: n(t)({
|
|
@@ -275,7 +275,7 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
275
275
|
})
|
|
276
276
|
]),
|
|
277
277
|
_: 1
|
|
278
|
-
}, 8, ["title"])) : e.error ? (c(),
|
|
278
|
+
}, 8, ["title"])) : e.error ? (c(), y(L, {
|
|
279
279
|
key: 2,
|
|
280
280
|
status: "error",
|
|
281
281
|
title: n(t)({
|
|
@@ -301,7 +301,7 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
301
301
|
]),
|
|
302
302
|
_: 1
|
|
303
303
|
}, 8, ["title"])) : !e.isLoading && e.countryCode && e.amount && e.invoice ? (c(), B(W, { key: 3 }, [
|
|
304
|
-
n(d) === "READY" ? (c(),
|
|
304
|
+
n(d) === "READY" ? (c(), y(n(ee), {
|
|
305
305
|
key: 0,
|
|
306
306
|
title: n(t)({
|
|
307
307
|
id: "pay_invoice.payment_methods.title",
|
|
@@ -313,7 +313,7 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
313
313
|
"no-spacing": ""
|
|
314
314
|
}, {
|
|
315
315
|
default: r(() => {
|
|
316
|
-
var
|
|
316
|
+
var b, S;
|
|
317
317
|
return [
|
|
318
318
|
A("div", {
|
|
319
319
|
class: V({ "pointer-events-none opacity-60": o.value })
|
|
@@ -337,9 +337,10 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
337
337
|
"invoice-id": e.invoice.id,
|
|
338
338
|
"payment-method-options": e.paymentMethodOptions ?? [],
|
|
339
339
|
variant: "AUTHORIZE",
|
|
340
|
-
"billing-entity-name": (S = (
|
|
340
|
+
"billing-entity-name": (S = (b = e.invoice) == null ? void 0 : b.billing_entity) == null ? void 0 : S.legal_name,
|
|
341
341
|
onPaymentSuccess: f,
|
|
342
|
-
onPaymentFailed:
|
|
342
|
+
onPaymentFailed: h,
|
|
343
|
+
onInvalid: h,
|
|
343
344
|
onSelect: v[0] || (v[0] = (I) => s.value = I)
|
|
344
345
|
}, null, 8, ["amount", "country-code", "context", "customer-id", "store-payment-method", "invoice-id", "payment-method-options", "billing-entity-name"]),
|
|
345
346
|
A("div", ge, [
|
|
@@ -358,19 +359,19 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
358
359
|
];
|
|
359
360
|
}),
|
|
360
361
|
_: 1
|
|
361
|
-
}, 8, ["title"])) : (c(),
|
|
362
|
+
}, 8, ["title"])) : (c(), y(re, {
|
|
362
363
|
key: 1,
|
|
363
364
|
variant: "AUTHORIZE",
|
|
364
|
-
"seller-name": (
|
|
365
|
+
"seller-name": (u = e.invoice.billing_entity) == null ? void 0 : u.legal_name
|
|
365
366
|
}, {
|
|
366
367
|
default: r(() => [
|
|
367
|
-
e.downloadService ? (c(),
|
|
368
|
+
e.downloadService ? (c(), y(n(E), {
|
|
368
369
|
key: 0,
|
|
369
370
|
type: "button",
|
|
370
371
|
intent: "secondary",
|
|
371
372
|
onClick: v[2] || (v[2] = () => {
|
|
372
|
-
var
|
|
373
|
-
return (
|
|
373
|
+
var b;
|
|
374
|
+
return (b = e.downloadService) == null ? void 0 : b.call(e, e.invoice);
|
|
374
375
|
})
|
|
375
376
|
}, {
|
|
376
377
|
default: r(() => [
|
|
@@ -381,11 +382,11 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
381
382
|
})), 1)
|
|
382
383
|
]),
|
|
383
384
|
_: 1
|
|
384
|
-
})) :
|
|
385
|
+
})) : w("", !0)
|
|
385
386
|
]),
|
|
386
387
|
_: 1
|
|
387
388
|
}, 8, ["seller-name"]))
|
|
388
|
-
], 64)) :
|
|
389
|
+
], 64)) : w("", !0)
|
|
389
390
|
];
|
|
390
391
|
}),
|
|
391
392
|
aside: r(() => [
|
|
@@ -394,10 +395,10 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
394
395
|
class: "min-h-[200px]"
|
|
395
396
|
}, {
|
|
396
397
|
default: r(() => [
|
|
397
|
-
e.invoice ? (c(),
|
|
398
|
+
e.invoice ? (c(), y(n(X), {
|
|
398
399
|
key: 0,
|
|
399
400
|
invoice: e.invoice
|
|
400
|
-
}, null, 8, ["invoice"])) :
|
|
401
|
+
}, null, 8, ["invoice"])) : w("", !0)
|
|
401
402
|
]),
|
|
402
403
|
_: 1
|
|
403
404
|
}),
|
|
@@ -409,7 +410,7 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
409
410
|
"payment-method": s.value,
|
|
410
411
|
onClick: i
|
|
411
412
|
}, null, 8, ["disabled", "loading", "amount", "payment-method"])
|
|
412
|
-
])) :
|
|
413
|
+
])) : w("", !0)
|
|
413
414
|
]),
|
|
414
415
|
_: 1
|
|
415
416
|
}));
|
|
@@ -441,25 +442,26 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
441
442
|
error: m
|
|
442
443
|
} = J({ invoiceId: t.configuration.invoiceId }), { payments: l, get: o } = Q(), { fetchInitial: i } = de({
|
|
443
444
|
customerId: t.portalObject.customer_id
|
|
444
|
-
}), { paymentMethodOptions: f, get:
|
|
445
|
-
const
|
|
446
|
-
await
|
|
447
|
-
customerId:
|
|
448
|
-
|
|
445
|
+
}), { paymentMethodOptions: f, get: h } = ce(), g = async () => {
|
|
446
|
+
const u = await d();
|
|
447
|
+
await h({
|
|
448
|
+
customerId: u.customer.id,
|
|
449
|
+
invoiceId: u.id,
|
|
450
|
+
amount: u.open_invoice_amount
|
|
449
451
|
});
|
|
450
452
|
}, { isLoading: v } = le(
|
|
451
453
|
g(),
|
|
452
454
|
i(),
|
|
453
455
|
o(t.configuration.invoiceId)
|
|
454
|
-
), M =
|
|
456
|
+
), M = P(
|
|
455
457
|
() => {
|
|
456
|
-
var
|
|
457
|
-
return (
|
|
458
|
+
var u;
|
|
459
|
+
return (u = a.value) != null && u.customer ? se(a.value.customer) : void 0;
|
|
458
460
|
}
|
|
459
461
|
);
|
|
460
|
-
return (
|
|
462
|
+
return (u, b) => {
|
|
461
463
|
var S;
|
|
462
|
-
return q(
|
|
464
|
+
return q(u.$slots, "default", {
|
|
463
465
|
invoice: n(a),
|
|
464
466
|
isLoading: n(v),
|
|
465
467
|
amount: (S = n(a)) == null ? void 0 : S.open_invoice_amount,
|
|
@@ -492,7 +494,7 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
492
494
|
},
|
|
493
495
|
setup(e) {
|
|
494
496
|
const t = me("pay-invoice");
|
|
495
|
-
return (a, d) => (c(),
|
|
497
|
+
return (a, d) => (c(), y(n(te), {
|
|
496
498
|
entry: a.$props,
|
|
497
499
|
"component-name": n(t),
|
|
498
500
|
"allowed-portal-types": ["CUSTOMER"],
|
|
@@ -507,7 +509,7 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
507
509
|
countryCode: o,
|
|
508
510
|
paymentMethodOptions: i,
|
|
509
511
|
paymentAttempts: f,
|
|
510
|
-
downloadService:
|
|
512
|
+
downloadService: h,
|
|
511
513
|
error: g
|
|
512
514
|
}) => [
|
|
513
515
|
p(be, {
|
|
@@ -518,7 +520,7 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
|
|
|
518
520
|
"payment-method-options": i,
|
|
519
521
|
configuration: e.configuration,
|
|
520
522
|
"payment-attempts": f ?? [],
|
|
521
|
-
"download-service":
|
|
523
|
+
"download-service": h,
|
|
522
524
|
error: g
|
|
523
525
|
}, null, 8, ["is-loading", "invoice", "amount", "country-code", "payment-method-options", "configuration", "payment-attempts", "download-service", "error"])
|
|
524
526
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("../../Button.vue.es-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("../../Button.vue.es-qGvnOKnK.js"),y=require("../../Section.vue.es-zVXBHAL6.js"),c=require("../../customElements-C963-LtW.js"),f=require("../../ContentWithAsideLayout-RSdKXqAf.js"),g=require("../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js"),h=require("../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-BDm8l_6N.js"),_=require("../../useCustomer-DGYtowRy.js"),v=require("../../usePaymentMethods-BKwrl82-.js"),S=require("../../usePaymentMethodOptions-Cqe92ZBn.js"),C=require("../../useLoadInitialData-CrKnBZs_.js"),M=require("../../sessionReference-m_6Rp4X1.js"),k={class:"grid gap-4 sm:grid-cols-1 md:grid-cols-2"},O={key:0},B=e.defineComponent({__name:"ScreenTitle",props:{title:{type:String},description:{type:String}},setup(o){return(r,a)=>(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",null,[e.createVNode(e.unref(c._sfc_main),{variant:"heading-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),o.description?(e.openBlock(),e.createBlock(e.unref(c._sfc_main),{key:0,variant:"body-sm",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.description),1)]),_:1})):e.createCommentVNode("",!0)]),r.$slots.right?(e.openBlock(),e.createElementBlock("div",O,[e.renderSlot(r.$slots,"right")])):e.createCommentVNode("",!0)]))}}),b=e.defineComponent({__name:"PaymentMethodsManagement",props:{customer:{type:Object},paymentMethods:{type:Array},paymentMethodOptions:{type:Array},isLoading:{type:Boolean},error:{type:null}},emits:["set-default","delete","added"],setup(o,{emit:r}){const a=r,{$t:i}=c.useIntl(),n=e.ref(!1),m=()=>{n.value=!1,a("added")};return(d,t)=>(e.openBlock(),e.createBlock(e.unref(f.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(B,{title:e.unref(i)({defaultMessage:"Payment methods",id:"screens.payment_method_management.title",description:"The title for the payment method management screen "}),description:e.unref(i)({defaultMessage:"Add a new payment method or set a default payment method for your payments.",id:"screens.payment_method_management.description",description:"The descriptive text for the payment method management screen"})},null,8,["title","description"])]),content:e.withCtx(()=>[e.createVNode(e.unref(y._sfc_main),{"no-border":"","no-spacing":"","content-background":"none",title:"Your payment methods"},{default:e.withCtx(()=>[e.createVNode(g._sfc_main,{"payment-methods":o.paymentMethods,onSetDefault:t[0]||(t[0]=s=>a("set-default")),onDelete:t[1]||(t[1]=s=>a("delete"))},null,8,["payment-methods"])]),_:1}),n.value?(e.openBlock(),e.createBlock(h._sfc_main,{key:0,customer:o.customer,"payment-method-options":o.paymentMethodOptions,onSuccess:m},null,8,["customer","payment-method-options"])):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createBlock(e.unref(l._sfc_main),{key:1,intent:"secondary",onClick:t[2]||(t[2]=s=>n.value=!1)},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("Cancel",-1)])]),_:1})):(e.openBlock(),e.createBlock(e.unref(l._sfc_main),{key:2,intent:"secondary",onClick:t[3]||(t[3]=s=>n.value=!0)},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("Add payment method",-1)])]),_:1}))]),_:1}))}}),P=e.defineComponent({__name:"PaymentMethodsManagement.entry.view",props:{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(o){const r=o,a=r.portalObject.customer_id,{customer:i,get:n}=_.useCustomer({customerId:a}),{items:m,fetchInitial:d}=v.usePaymentMethods({customerId:r.portalObject.customer_id}),{paymentMethodOptions:t,get:s}=S.usePaymentMethodOptions(),{isLoading:p}=C.useLoadInitialData(n.execute(),d(),s({customerId:r.portalObject.customer_id}));return(u,x)=>e.renderSlot(u.$slots,"default",{customer:e.unref(i),paymentMethods:e.unref(m),paymentMethodOptions:e.unref(t),isLoading:e.unref(p),refreshPaymentMethods:e.unref(d)})}}),w=e.defineComponent({__name:"PaymentMethodsManagement.entry",props:{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(o){const r=M.getComponentName("payment-methods-management");return(a,i)=>(e.openBlock(),e.createBlock(e.unref(c._sfc_main$1),{entry:a.$props,"component-name":e.unref(r),"allowed-portal-types":["CUSTOMER"],onError:i[0]||(i[0]=n=>a.$emit("error",n))},{default:e.withCtx(()=>[e.createVNode(P,e.normalizeProps(e.guardReactiveProps(a.$props)),{default:e.withCtx(({customer:n,paymentMethods:m,paymentMethodOptions:d,isLoading:t,refreshPaymentMethods:s})=>[n?(e.openBlock(),e.createBlock(b,{key:0,"is-loading":t,"payment-methods":m,"payment-method-options":d,customer:n,onSetDefault:s,onDelete:s,onAdded:s},null,8,["is-loading","payment-methods","payment-method-options","customer","onSetDefault","onDelete","onAdded"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:N}=c.createSolvimonElement(w,"payment-methods-management");exports.defineSolvimonPaymentMethodsManagement=N;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as f, openBlock as i, createElementBlock as h, createElementVNode as b, createVNode as c, unref as t, withCtx as m, createTextVNode as u, toDisplayString as _, createBlock as p, createCommentVNode as g, renderSlot as M, ref as C, normalizeProps as A, guardReactiveProps as j } from "vue";
|
|
2
|
-
import { _ as S } from "../../Button.vue.es-
|
|
3
|
-
import { _ as k } from "../../Section.vue.es-
|
|
4
|
-
import { _ as v,
|
|
2
|
+
import { _ as S } from "../../Button.vue.es-C32_baQN.mjs";
|
|
3
|
+
import { _ as k } from "../../Section.vue.es-D7eiXUbk.mjs";
|
|
4
|
+
import { _ as v, a as P, d as L, e as w } from "../../customElements-D5DAoHRI.mjs";
|
|
5
5
|
import { C as D } from "../../ContentWithAsideLayout-BCM8tmZN.mjs";
|
|
6
|
-
import { _ as T } from "../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as B } from "../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as I } from "../../useCustomer-
|
|
9
|
-
import { u as N } from "../../usePaymentMethods-
|
|
10
|
-
import { u as x } from "../../usePaymentMethodOptions-
|
|
11
|
-
import { u as E } from "../../useLoadInitialData-
|
|
6
|
+
import { _ as T } from "../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-DGpXRtp4.mjs";
|
|
7
|
+
import { _ as B } from "../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs";
|
|
8
|
+
import { u as I } from "../../useCustomer-XZKWsolE.mjs";
|
|
9
|
+
import { u as N } from "../../usePaymentMethods-B-OKRyKd.mjs";
|
|
10
|
+
import { u as x } from "../../usePaymentMethodOptions-Ciifjo6c.mjs";
|
|
11
|
+
import { u as E } from "../../useLoadInitialData-CR0kbYw8.mjs";
|
|
12
12
|
import { a as F } from "../../sessionReference-3h-6FdrC.mjs";
|
|
13
13
|
const R = { class: "grid gap-4 sm:grid-cols-1 md:grid-cols-2" }, V = { key: 0 }, z = /* @__PURE__ */ f({
|
|
14
14
|
__name: "ScreenTitle",
|