@solvimon/solvimon-web 0.1.0-alpha.19 → 0.1.0-alpha.20
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 +9 -7
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Y3CzulQq.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Ce30EXY5.mjs} +8 -9
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-kmam2c7P.js +1 -0
- package/dist/{Amount.vue.es-CRG-6dps.mjs → Amount.vue.es-BO5sS1UX.mjs} +4 -2
- package/dist/Amount.vue.es-JDVa_3H-.js +1 -0
- package/dist/{Avatar.vue.es-ClUBm_l5.js → Avatar.vue.es-BGTZSAqU.js} +1 -1
- package/dist/{Avatar.vue.es-DJp6NEU_.mjs → Avatar.vue.es-DJzJiYtv.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BUMK11Dw.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Bq2mTdUs.mjs} +5 -6
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DzrInCPA.js → BillingInformation.vue_vue_type_script_setup_true_lang-BtNTRSqH.js} +1 -1
- package/dist/{Button.vue.es-BrWHdiEA.mjs → Button.vue.es-Cm9pLU9i.mjs} +61 -93
- package/dist/Button.vue.es-O8mNivLL.js +1 -0
- package/dist/Chip.vue.es-BBmn-qJp.mjs +120 -0
- package/dist/Chip.vue.es-DmCjC1hi.js +1 -0
- package/dist/{Comparators.vue.es-CU32AC4n.mjs → Comparators.vue.es-CYfxd5H-.mjs} +1 -1
- package/dist/{Comparators.vue.es-CfVGYJ_x.js → Comparators.vue.es-DK8wGjxM.js} +1 -1
- package/dist/{ContextMenu.vue.es-BBPFQfqY.mjs → ContextMenu.vue.es-CTc1ktXb.mjs} +23 -23
- package/dist/ContextMenu.vue.es-DaW0yp4Y.js +1 -0
- package/dist/{CustomerBillingInformation.vue.es-s-LYXA4T.js → CustomerBillingInformation.vue.es-BX0Da7Kr.js} +1 -1
- package/dist/{CustomerBillingInformation.vue.es-CLmXk5B9.mjs → CustomerBillingInformation.vue.es-CMZO8oLj.mjs} +3 -3
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bi_dCntQ.js +1 -0
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B2CtcBm0.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CtdFharm.mjs} +8 -10
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Bej5_H7r.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BDqBXbJq.mjs} +37 -34
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-ZyN2vlNu.js +1 -0
- package/dist/{DividerText.vue.es-DMg-DNgi.mjs → DividerText.vue.es-CeAHAe_Y.mjs} +1 -1
- package/dist/{DividerText.vue.es-D5ieOE1e.js → DividerText.vue.es-DjT4i_YD.js} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DLE5-9wz.mjs} +16 -16
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DkIK-lID.js} +1 -1
- package/dist/ErrorNotification.vue.es-CHyVTBGs.mjs +38 -0
- package/dist/ErrorNotification.vue.es-CaEFTi2k.js +1 -0
- package/dist/FormMessage.vue.es-Bd4_NG9H.js +1 -0
- package/dist/{FormMessage.vue.es-DFQXxiSC.mjs → FormMessage.vue.es-C3oxwq_8.mjs} +3 -3
- package/dist/IconButton.vue.es-BHdQskx0.js +1 -0
- package/dist/{IconButton.vue.es-DcC4f5EQ.mjs → IconButton.vue.es-KywqWWvr.mjs} +20 -23
- package/dist/{IconTitle.vue.es-mQCMxc64.mjs → IconTitle.vue.es-BmjBdZb_.mjs} +13 -11
- package/dist/IconTitle.vue.es-D9Wc3PIq.js +1 -0
- package/dist/Input.vue.es-DqKJhFTr.js +1 -0
- package/dist/{Input.vue.es-Dp_RH03h.mjs → Input.vue.es-WZGF8dfr.mjs} +28 -16
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-56fy6uY6.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B6efz7NU.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CLUcV3qa.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-LE6zBLKM.js} +1 -1
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-ztaMeHQc.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-C2aLMfu6.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-flgEyaoj.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-CtpFzWU3.js} +1 -1
- package/dist/{InvoiceSummary.vue.es-nCYeQ4tj.mjs → InvoiceSummary.vue.es-BI5sD_8F.mjs} +1057 -671
- package/dist/InvoiceSummary.vue.es-BWYIHezU.js +1 -0
- package/dist/Modal.vue.es-B_1aqm_m.js +1 -0
- package/dist/{Modal.vue.es-5EpA4Q0t.mjs → Modal.vue.es-qdUHDOnU.mjs} +172 -56
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-BKKXQbge.js +1 -0
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-D7IX9qqy.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-Ch1TFO7x.mjs} +7 -8
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CsH47WSM.mjs} +3 -3
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-mKNNYnMU.js} +1 -1
- package/dist/{PaymentHistoryBlock-Dejtgyos.mjs → PaymentHistoryBlock-CgNUV8Gy.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-RBxlC5xt.js → PaymentHistoryBlock-Ci8aSJeb.js} +1 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DZwnDzha.js +1 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dk52bjJd.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Uj1aK-dp.mjs} +16 -16
- package/dist/{PaymentIntegrationForm-CbqfAdkc.mjs → PaymentIntegrationForm-CLokpXvK.mjs} +1 -1
- package/dist/{PaymentIntegrationForm-BWr7iyU6.js → PaymentIntegrationForm-CsuueDE0.js} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJHwpswk.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CRUs7sP4.mjs} +26 -8
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-kKkzRi6w.js +1 -0
- package/dist/{PaymentIntegrationFormAdyen-CuRwe9_9.mjs → PaymentIntegrationFormAdyen-C885o8IE.mjs} +37 -29
- package/dist/PaymentIntegrationFormAdyen-Co19AgvG.js +1 -0
- package/dist/{PaymentIntegrationFormStripe-JZw2m1kJ.mjs → PaymentIntegrationFormStripe-BjMdJmDC.mjs} +8 -6
- package/dist/PaymentIntegrationFormStripe-DWff6wzK.js +1 -0
- package/dist/PaymentMethod.vue.es-CdskNJ3Z.js +1 -0
- package/dist/PaymentMethod.vue.es-rv-pu1CC.mjs +677 -0
- package/dist/{PaymentMethodForm-C5WqTDow.mjs → PaymentMethodForm-IEuDxEPN.mjs} +1 -1
- package/dist/{PaymentMethodForm-CBjHdZT7.js → PaymentMethodForm-hZuVHAti.js} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-Cj60U90J.js +1 -0
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DhPTbip8.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-gA74Rak9.mjs} +21 -8
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-B3H_AWMM.js +1 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DbTvbHk7.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CTn-OxM6.mjs} +7 -7
- package/dist/{PricingGroupRangeInput.vue.es-A6eW-u2k.mjs → PricingGroupRangeInput.vue.es-ButaePib.mjs} +13 -17
- package/dist/PricingGroupRangeInput.vue.es-Cls2lm80.js +1 -0
- package/dist/{Section.vue.es-tLYXp-tF.js → Section.vue.es-CAJvEDn6.js} +1 -1
- package/dist/{Section.vue.es-MEFUWCxU.mjs → Section.vue.es-DX_9ueCG.mjs} +1 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CQAkPfJz.js +1 -0
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xvgyB2Yr.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DVtMzgjc.mjs} +31 -37
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BJVXCHny.js +1 -0
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-B_Zkbqx2.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-ByO-L6nm.mjs} +171 -105
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-C5zB3CgZ.mjs} +4 -4
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CabskT-r.js +1 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D-T1wGg7.js +1 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CfXgGKXA.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DKd2DIVb.mjs} +12 -13
- package/dist/{TooltipParagraph.vue.es-B5aHQv9O.mjs → TooltipParagraph.vue.es-C5RTcrid.mjs} +3 -3
- package/dist/{TooltipParagraph.vue.es-fSwKGXKg.js → TooltipParagraph.vue.es-H9fI7zzt.js} +1 -1
- package/dist/{TrialChip.vue.es-Fp7Lqo-b.mjs → TrialChip.vue.es-B1puKyR-.mjs} +3 -3
- package/dist/TrialChip.vue.es-CCs50m02.js +1 -0
- package/dist/accel.svg.es-CE5tIWtm.mjs +4 -0
- package/dist/accel.svg.es-Dt_1wJmV.js +1 -0
- package/dist/ach.svg.es-B4tn0_IV.js +1 -0
- package/dist/ach.svg.es-D4QPcIU-.mjs +4 -0
- package/dist/{adyen-Ba-mF3Jy.mjs → adyen-BXi_D9TQ.mjs} +14 -21
- package/dist/adyen-VS2sDW0m.js +1 -0
- package/dist/amazon-pay.svg.es-B428S4f3.js +1 -0
- package/dist/amazon-pay.svg.es-DUScOW15.mjs +4 -0
- package/dist/amex.svg.es-BCXkaVLN.mjs +4 -0
- package/dist/amex.svg.es-Bn9e31C3.js +1 -0
- package/dist/apple-pay.svg.es-Cfgn0K28.js +1 -0
- package/dist/apple-pay.svg.es-DlCfkt39.mjs +4 -0
- package/dist/bacs.svg.es-BKsvSeIP.mjs +4 -0
- package/dist/bacs.svg.es-hL7hLPkQ.js +1 -0
- package/dist/bancontact.svg.es-BbRqGgZ9.mjs +4 -0
- package/dist/bancontact.svg.es-DU2ejvNL.js +1 -0
- package/dist/carnet.svg.es-C5SFaOsa.js +1 -0
- package/dist/carnet.svg.es-Db-KEb13.mjs +4 -0
- package/dist/cartes-bancaires.svg.es-ByD-JAAi.mjs +4 -0
- package/dist/cartes-bancaires.svg.es-CbBJQZrk.js +1 -0
- package/dist/cashapp.svg.es-CnS5r_D8.mjs +4 -0
- package/dist/cashapp.svg.es-DE4vMu_p.js +1 -0
- package/dist/{cn.es-DB5pDpxS.mjs → cn.es-BEU5D0Wz.mjs} +4 -4
- package/dist/cn.es-DxSeYcoP.js +1 -0
- 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 +8 -8
- 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 +19 -19
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +3 -3
- 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 +3 -3
- 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-DdFA__me.mjs → customElements-B-89a5oH.mjs} +134 -53
- package/dist/customElements-DD7bpqkx.js +1 -0
- package/dist/{customer-D7HUfF3j.js → customer-DozNwS_a.js} +1 -1
- package/dist/{customer-B0AMetq6.mjs → customer-Dzj1g9lV.mjs} +1 -1
- package/dist/dana.svg.es-Bbn6_ktN.mjs +4 -0
- package/dist/dana.svg.es-DKZaseoJ.js +1 -0
- package/dist/dankort.svg.es-D8FgSiFf.js +1 -0
- package/dist/dankort.svg.es-DtAdliQq.mjs +4 -0
- package/dist/de-DE-BeyQVhTv.mjs +299 -0
- package/dist/de-DE-BvHD68Ay.js +1 -0
- package/dist/de-DE-CI2zQkiP.mjs +266 -0
- package/dist/de-DE-_40QfLNJ.js +1 -0
- package/dist/diners.svg.es-DhchsD1D.mjs +4 -0
- package/dist/diners.svg.es-SydF_H-Z.js +1 -0
- package/dist/discover.svg.es-B8vgzVNG.js +1 -0
- package/dist/discover.svg.es-BnqYPvnV.mjs +4 -0
- package/dist/eftpos.svg.es-DO0YPaY1.js +1 -0
- package/dist/eftpos.svg.es-DRLaafYa.mjs +4 -0
- package/dist/elo.svg.es-CTOm1rvj.js +1 -0
- package/dist/elo.svg.es-CgkEOP_O.mjs +4 -0
- package/dist/en-US--NRsi7Hz.js +1 -0
- package/dist/{en-US-D0P7NNNZ.mjs → en-US-5YWNEi-V.mjs} +72 -1
- package/dist/{en-US-Daw3v6GD.mjs → en-US-DksUWPIu.mjs} +10 -0
- package/dist/en-US-dqfKx3GS.js +1 -0
- package/dist/eps.svg.es-CApyGjyU.js +1 -0
- package/dist/eps.svg.es-D6IHsRYP.mjs +4 -0
- package/dist/formatting.es-DBtYnvI5.js +1 -0
- package/dist/{formatting.es-D-oVnc8H.mjs → formatting.es-eYgXv_AK.mjs} +3 -1
- package/dist/gcash.svg.es-BhJ-eA2z.mjs +4 -0
- package/dist/gcash.svg.es-JaL4fpZr.js +1 -0
- package/dist/girocard.svg.es-D_3LML4l.mjs +4 -0
- package/dist/girocard.svg.es-tVgtT23w.js +1 -0
- package/dist/go-pay.svg.es-6UtgwVBA.mjs +4 -0
- package/dist/go-pay.svg.es-fYX6yMzJ.js +1 -0
- package/dist/google-pay.svg.es-BYXX1em8.js +1 -0
- package/dist/google-pay.svg.es-CRxXgFVl.mjs +4 -0
- package/dist/hipercard.svg.es-Ct1-mF9F.mjs +4 -0
- package/dist/hipercard.svg.es-D-nmiFXB.js +1 -0
- package/dist/icon-sprite.svg.es-BpwT0GQ5.js +1 -0
- package/dist/icon-sprite.svg.es-YYqtl2IP.mjs +4 -0
- package/dist/ideal.svg.es-D23EhJJ2.mjs +4 -0
- package/dist/ideal.svg.es-DXtHE0Jb.js +1 -0
- package/dist/{index-C5bKRt7l.mjs → index-Cai7laNY.mjs} +1 -1
- package/dist/{index-BJ3dHkSK.js → index-IZaUTAsE.js} +1 -1
- package/dist/{index.es-0cystq8F.mjs → index.es-D5xOw_SJ.mjs} +2 -2
- package/dist/{invoices-BSd-nKeE.mjs → invoices-1oYkdQQV.mjs} +1 -1
- package/dist/{invoices-BiqM6xN6.js → invoices-BAoh6X2a.js} +1 -1
- package/dist/it-IT-B6blp8MI.mjs +299 -0
- package/dist/it-IT-CEP3oeWs.js +1 -0
- package/dist/it-IT-CMy1tHKZ.mjs +266 -0
- package/dist/it-IT-aPQY57ht.js +1 -0
- package/dist/jcb.svg.es-Bz6J-c0s.js +1 -0
- package/dist/jcb.svg.es-CcH08OoO.mjs +4 -0
- package/dist/kakao-pay.svg.es-DcgRDAsc.mjs +4 -0
- package/dist/kakao-pay.svg.es-qVTABboW.js +1 -0
- package/dist/klarna.svg.es-Clu-7zkp.js +1 -0
- package/dist/klarna.svg.es-DfIPX0gr.mjs +4 -0
- package/dist/maestro.svg.es-CVmNVokN.mjs +4 -0
- package/dist/maestro.svg.es-e8E_H2QU.js +1 -0
- package/dist/mastercard.svg.es-B8z0ZySS.mjs +4 -0
- package/dist/mastercard.svg.es-YO3_jGD6.js +1 -0
- package/dist/momo.svg.es-BXTQlQRy.js +1 -0
- package/dist/momo.svg.es-Bm5zCTOT.mjs +4 -0
- package/dist/{nl-NL-B4zEBFTw.mjs → nl-NL-CckNM7R9.mjs} +10 -0
- package/dist/nl-NL-CjoW8r_M.mjs +314 -0
- package/dist/nl-NL-e_vf6OuT.js +1 -0
- package/dist/nl-NL-zRUAuEHg.js +1 -0
- package/dist/nyce.svg.es-CgurqLKH.mjs +4 -0
- package/dist/nyce.svg.es-DM6esO47.js +1 -0
- package/dist/open-banking.svg.es-DUM360xB.js +1 -0
- package/dist/open-banking.svg.es-DzzLCVp_.mjs +4 -0
- package/dist/{paymentMethods-Cu2RzLgm.js → paymentMethods-CZ3ydybI.js} +1 -1
- package/dist/{paymentMethods-BsrkEbKT.mjs → paymentMethods-DIV78w0O.mjs} +1 -1
- package/dist/{payments-Bbm1HMQj.js → payments--lkjiwCt.js} +1 -1
- package/dist/{payments-B6Nfd6Al.mjs → payments-Cvqdrprv.mjs} +1 -1
- package/dist/paypal.svg.es-BdkNTf3c.js +1 -0
- package/dist/paypal.svg.es-DltWzW4V.mjs +4 -0
- package/dist/pulse.svg.es-BdpWAuIN.js +1 -0
- package/dist/pulse.svg.es-BecAwT-p.mjs +4 -0
- package/dist/screens/Checkout/Checkout.cjs +1 -1
- package/dist/screens/Checkout/Checkout.mjs +62 -62
- 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 +141 -38
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +12 -14
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +28 -31
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +18 -18
- package/dist/sepa.svg.es-BF8PYKZg.js +1 -0
- package/dist/sepa.svg.es-cbE9g8gV.mjs +4 -0
- package/dist/star.svg.es-DsCD-tSp.mjs +4 -0
- package/dist/star.svg.es-Q50IzqXr.js +1 -0
- package/dist/{subscriptions-B4BOzLxR.js → subscriptions-300o4ae0.js} +1 -1
- package/dist/{subscriptions-C2C4WTuI.mjs → subscriptions-DcMHBPVJ.mjs} +1 -1
- package/dist/trustly.svg.es-C0Ou1HWk.mjs +4 -0
- package/dist/trustly.svg.es-CHojqNqm.js +1 -0
- package/dist/twint.svg.es-CQ-ZDfy8.js +1 -0
- package/dist/twint.svg.es-WrZYquRs.mjs +4 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentMethodsUnavailableCard/PaymentMethodsUnavailableCard.types.d.ts +8 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +8 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +32 -2
- package/dist/types/translations/supported.d.ts +1 -1
- package/dist/unionpay.svg.es-DYgo83Hf.mjs +4 -0
- package/dist/unionpay.svg.es-YqJKKFEj.js +1 -0
- package/dist/url-CjULBkjW.js +1 -0
- package/dist/url-CvNDq4wp.mjs +22 -0
- package/dist/{useActionDispatchProvider-D55t_7LY.mjs → useActionDispatchProvider-BVOBO0Jx.mjs} +1 -1
- package/dist/{useActionDispatchProvider-Cz8xLLYA.js → useActionDispatchProvider-Cv9amjTf.js} +1 -1
- package/dist/{useCustomer-DYCpgA-3.js → useCustomer-DLHOs4BR.js} +1 -1
- package/dist/{useCustomer-BNhHz9RJ.mjs → useCustomer-EDhref7T.mjs} +1 -1
- package/dist/{useCustomerFormLabels-mX5QpApD.mjs → useCustomerFormLabels-B61-4xQ7.mjs} +111 -85
- package/dist/useCustomerFormLabels-C6wW4n2e.js +1 -0
- package/dist/useExperimentalFeature-0yFoaEzV.js +1 -0
- package/dist/useExperimentalFeature-DvxOrFPU.mjs +9 -0
- package/dist/{useInvoiceData-BczeMpuk.js → useInvoiceData-BSjVeJrI.js} +1 -1
- package/dist/{useInvoiceData-D-EvEioP.mjs → useInvoiceData-C0Y5WrbT.mjs} +2 -2
- package/dist/useInvoicesList-BRDZqsaB.js +1 -0
- package/dist/{useInvoicesList-BJJYwkIA.mjs → useInvoicesList-CYoE7q0u.mjs} +220 -184
- package/dist/{useLoadInitialData-BoGjdUu-.mjs → useLoadInitialData-Cp1OA8y6.mjs} +1 -1
- package/dist/{useLoadInitialData-CiJldX50.js → useLoadInitialData-u7IyXqb6.js} +1 -1
- package/dist/usePaymentMethodAvailability-B3s1lqQ2.js +1 -0
- package/dist/usePaymentMethodAvailability-EuhZPghG.mjs +141 -0
- package/dist/{usePaymentMethodOptions-fBvWYynV.js → usePaymentMethodOptions--8QpMvNm.js} +1 -1
- package/dist/{usePaymentMethodOptions-d49aOdLB.mjs → usePaymentMethodOptions-Cljh7HYp.mjs} +1 -1
- package/dist/{usePaymentMethods-Bkouz8aQ.mjs → usePaymentMethods-BJzoI8dZ.mjs} +1 -1
- package/dist/{usePaymentMethods-CFL3hFW_.js → usePaymentMethods-DvEnJWmB.js} +1 -1
- package/dist/usePayments-CANj0QVc.js +1 -0
- package/dist/{usePayments-BlliAt1E.mjs → usePayments-CaT1CBzE.mjs} +159 -59
- package/dist/{usePortal-fhri8neB.js → usePortal-BjGoSeLy.js} +1 -1
- package/dist/{usePortal-eyA4OqjU.mjs → usePortal-CMPQ0M9R.mjs} +1 -1
- package/dist/{useSubscription--IGLmLS6.mjs → useSubscription-D1UKnZAx.mjs} +1 -1
- package/dist/{useSubscription-V3KSuhOY.js → useSubscription-DZfRHbL7.js} +1 -1
- package/dist/visa.svg.es-B6aU_qRs.mjs +4 -0
- package/dist/visa.svg.es-D6sc4YTE.js +1 -0
- package/dist/vpay.svg.es-4qIqS4aX.mjs +4 -0
- package/dist/vpay.svg.es-CLGTyB09.js +1 -0
- package/dist/zip.svg.es-3PzSBe1E.mjs +4 -0
- package/dist/zip.svg.es-BRsgmur-.js +1 -0
- package/package.json +14 -2
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang--AVI4Q4E.js +0 -1
- package/dist/Amount.vue.es-CeW8S7kT.js +0 -1
- package/dist/Button.vue.es-aLcIdATK.js +0 -1
- package/dist/Chip.vue.es-DPGTweAr.mjs +0 -164
- package/dist/Chip.vue.es-q4c-DXXl.js +0 -1
- package/dist/ContextMenu.vue.es-C_TL7-kg.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CMIVAoQq.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BP-VRwEM.js +0 -1
- package/dist/ErrorNotification.vue.es-BX3khKFc.js +0 -1
- package/dist/ErrorNotification.vue.es-C22Kt8Qn.mjs +0 -30
- package/dist/FormMessage.vue.es-LeWoj774.js +0 -1
- package/dist/IconButton.vue.es-CVFn0Ntj.js +0 -1
- package/dist/IconTitle.vue.es-DoN4GVde.js +0 -1
- package/dist/Input.vue.es-C8VhMKuI.js +0 -1
- package/dist/InvoiceSummary.vue.es-emE-mCFh.js +0 -1
- package/dist/Modal.vue.es-CX5geho3.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-B_IIOBjg.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BdfWchcQ.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D8fkE1yG.js +0 -1
- package/dist/PaymentIntegrationFormAdyen-BjPpoLF7.js +0 -1
- package/dist/PaymentIntegrationFormStripe-51KZc27R.js +0 -1
- package/dist/PaymentMethod.vue.es-CH__kPw4.mjs +0 -636
- package/dist/PaymentMethod.vue.es-uVZO0Zju.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BktA5F4r.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-XPz73RVU.js +0 -1
- package/dist/PricingGroupRangeInput.vue.es-BuQeJCEX.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Jk34S5B7.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CttBs_G8.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Dl5Lg39D.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CTnTWaB8.js +0 -1
- package/dist/TrialChip.vue.es-0nrqSZeY.js +0 -1
- package/dist/adyen-BMDZQBUG.js +0 -1
- package/dist/cn.es-BLHlMR4Y.js +0 -1
- package/dist/customElements-BTJzBHMy.js +0 -1
- package/dist/en-US-BSrbFk5W.js +0 -1
- package/dist/en-US-scSQQXK8.js +0 -1
- package/dist/formatting.es-9hM8aHSg.js +0 -1
- package/dist/nl-NL-B5tuyIOM.mjs +0 -88
- package/dist/nl-NL-Bs3d8q6T.js +0 -1
- package/dist/nl-NL-DIAZWDF9.js +0 -1
- package/dist/useCustomerFormLabels-Cw6QpEJY.js +0 -1
- package/dist/useInvoicesList-rMg-8LbH.js +0 -1
- package/dist/usePayments-BKTNn_RN.js +0 -1
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createBlock, withCtx, createElementVNode, createVNode, unref, createTextVNode, toDisplayString, renderSlot, toValue, watch } from "vue";
|
|
2
|
+
import { u as useIntl, _ as _sfc_main$2, b as useLogger } from "./customElements-B-89a5oH.mjs";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CsH47WSM.mjs";
|
|
4
|
+
import { h as hasRenderablePaymentIntegration } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CRUs7sP4.mjs";
|
|
5
|
+
import { u as useExperimentalFeature } from "./useExperimentalFeature-DvxOrFPU.mjs";
|
|
6
|
+
const _hoisted_1 = { class: "flex flex-col items-center gap-4" };
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "PaymentMethodsUnavailableCard",
|
|
9
|
+
props: {
|
|
10
|
+
variant: { type: String },
|
|
11
|
+
sellerName: { type: String }
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const { $t } = useIntl();
|
|
16
|
+
const title = computed(
|
|
17
|
+
() => props.variant === "AUTHORIZE" ? $t({
|
|
18
|
+
defaultMessage: "This invoice cannot be paid online",
|
|
19
|
+
description: "Title shown when no payment method can be offered for paying an invoice",
|
|
20
|
+
id: "payment_methods_unavailable_card.title.authorize"
|
|
21
|
+
}) : $t({
|
|
22
|
+
defaultMessage: "No payment methods can be added",
|
|
23
|
+
description: "Title shown when no payment method can be offered for storing a payment method",
|
|
24
|
+
id: "payment_methods_unavailable_card.title.tokenize"
|
|
25
|
+
})
|
|
26
|
+
);
|
|
27
|
+
const description = computed(() => {
|
|
28
|
+
if (props.variant === "AUTHORIZE") {
|
|
29
|
+
return props.sellerName ? $t(
|
|
30
|
+
{
|
|
31
|
+
defaultMessage: "Online payment is not set up for this invoice. {sellerName} can settle it with you directly.",
|
|
32
|
+
description: "Body text shown when an invoice cannot be paid online, naming the seller",
|
|
33
|
+
id: "payment_methods_unavailable_card.description.authorize_with_seller"
|
|
34
|
+
},
|
|
35
|
+
{ sellerName: props.sellerName }
|
|
36
|
+
) : $t({
|
|
37
|
+
defaultMessage: "Online payment is not set up for this invoice. The party that issued it can settle it with you directly.",
|
|
38
|
+
description: "Body text shown when an invoice cannot be paid online",
|
|
39
|
+
id: "payment_methods_unavailable_card.description.authorize"
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return props.sellerName ? $t(
|
|
43
|
+
{
|
|
44
|
+
defaultMessage: "No online payment methods are set up. {sellerName} can arrange payment with you directly.",
|
|
45
|
+
description: "Body text shown when no payment method can be stored, naming the seller",
|
|
46
|
+
id: "payment_methods_unavailable_card.description.tokenize_with_seller"
|
|
47
|
+
},
|
|
48
|
+
{ sellerName: props.sellerName }
|
|
49
|
+
) : $t({
|
|
50
|
+
defaultMessage: "No online payment methods are set up.",
|
|
51
|
+
description: "Body text shown when no payment method can be stored",
|
|
52
|
+
id: "payment_methods_unavailable_card.description.tokenize"
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
return (_ctx, _cache) => {
|
|
56
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
57
|
+
status: "error",
|
|
58
|
+
title: title.value,
|
|
59
|
+
class: "sv-payment-methods-unavailable-card",
|
|
60
|
+
"data-testid": "payment-methods-unavailable"
|
|
61
|
+
}, {
|
|
62
|
+
default: withCtx(() => [
|
|
63
|
+
createElementVNode("div", _hoisted_1, [
|
|
64
|
+
createVNode(unref(_sfc_main$2), {
|
|
65
|
+
variant: "body-xs",
|
|
66
|
+
color: "subtle",
|
|
67
|
+
class: "mt-3"
|
|
68
|
+
}, {
|
|
69
|
+
default: withCtx(() => [
|
|
70
|
+
createTextVNode(toDisplayString(description.value), 1)
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
}),
|
|
74
|
+
renderSlot(_ctx.$slots, "default")
|
|
75
|
+
])
|
|
76
|
+
]),
|
|
77
|
+
_: 3
|
|
78
|
+
}, 8, ["title"]);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
function usePaymentMethodAvailability({
|
|
83
|
+
paymentMethodOptions,
|
|
84
|
+
isLoading,
|
|
85
|
+
context
|
|
86
|
+
}) {
|
|
87
|
+
const logger = useLogger();
|
|
88
|
+
const experimentalFeatures = useExperimentalFeature();
|
|
89
|
+
const options = computed(
|
|
90
|
+
() => toValue(paymentMethodOptions) ?? []
|
|
91
|
+
);
|
|
92
|
+
const availability = computed(() => {
|
|
93
|
+
var _a;
|
|
94
|
+
if (toValue(isLoading)) {
|
|
95
|
+
return "LOADING";
|
|
96
|
+
}
|
|
97
|
+
return hasRenderablePaymentIntegration(options.value, {
|
|
98
|
+
excludeExpressPaymentMethods: !!((_a = experimentalFeatures == null ? void 0 : experimentalFeatures.value) == null ? void 0 : _a["express-checkout"])
|
|
99
|
+
}) ? "READY" : "UNAVAILABLE";
|
|
100
|
+
});
|
|
101
|
+
const fingerprint = computed(() => {
|
|
102
|
+
const paymentAcceptorIds = [
|
|
103
|
+
...new Set(options.value.map(({ payment_acceptor }) => payment_acceptor == null ? void 0 : payment_acceptor.id))
|
|
104
|
+
].filter((id) => !!id);
|
|
105
|
+
return [
|
|
106
|
+
"NO_PAYMENT_METHODS_AVAILABLE",
|
|
107
|
+
...paymentAcceptorIds.length ? paymentAcceptorIds.sort() : ["no_payment_acceptor"]
|
|
108
|
+
];
|
|
109
|
+
});
|
|
110
|
+
watch(
|
|
111
|
+
() => [availability.value, fingerprint.value.join("|")],
|
|
112
|
+
([currentAvailability, currentFingerprint], previous) => {
|
|
113
|
+
if (currentAvailability !== "UNAVAILABLE") {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
if ((previous == null ? void 0 : previous[0]) === "UNAVAILABLE" && previous[1] === currentFingerprint) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const { invoiceId, subscriptionId } = toValue(context) ?? {};
|
|
120
|
+
logger.error(
|
|
121
|
+
"NO_PAYMENT_METHODS_AVAILABLE",
|
|
122
|
+
"No payment method can be offered to the customer",
|
|
123
|
+
{
|
|
124
|
+
fingerprint: fingerprint.value,
|
|
125
|
+
paymentAcceptorIds: options.value.map(
|
|
126
|
+
({ payment_acceptor }) => payment_acceptor == null ? void 0 : payment_acceptor.id
|
|
127
|
+
),
|
|
128
|
+
integrationIds: options.value.map(({ integration }) => integration == null ? void 0 : integration.id),
|
|
129
|
+
...invoiceId ? { invoiceId } : {},
|
|
130
|
+
...subscriptionId ? { subscriptionId } : {}
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
},
|
|
134
|
+
{ immediate: true }
|
|
135
|
+
);
|
|
136
|
+
return { availability };
|
|
137
|
+
}
|
|
138
|
+
export {
|
|
139
|
+
_sfc_main as _,
|
|
140
|
+
usePaymentMethodAvailability as u
|
|
141
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./useService-D73FNBjT.js"),t=require("vue"),r=require("./paymentMethods-
|
|
1
|
+
const e=require("./useService-D73FNBjT.js"),t=require("vue"),r=require("./paymentMethods-CZ3ydybI.js");exports.usePaymentMethodOptions=function(){const{getPaymentMethodOptions:n}=r.createPaymentMethodsService(),{data:u,execute:o,apiStatus:i,error:s,isPending:a}=e.useService({initialValue:[],service:e=>function(e){return void 0!==e.customerId}(e)?n({customerId:e.customerId,amount:e.amount,country:e.country}):n({subscriptionId:e.subscriptionId,amount:e.amount,country:e.country})}),c=t.ref();return{paymentMethodOptions:u,get:async t=>{if(e.isEqual(t,c.value))return u.value;const r=await o(t);return c.value=t,r},apiStatus:i,error:s,isPending:a}};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as useService, a as isEqual } from "./useService-W3Kxems4.mjs";
|
|
2
2
|
import { ref } from "vue";
|
|
3
|
-
import { c as createPaymentMethodsService } from "./paymentMethods-
|
|
3
|
+
import { c as createPaymentMethodsService } from "./paymentMethods-DIV78w0O.mjs";
|
|
4
4
|
function hasCustomerId(payload) {
|
|
5
5
|
return payload.customerId !== void 0;
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as useIncrementalLoading } from "./useIncrementalLoading-BK9pRYAU.mjs";
|
|
2
|
-
import { c as createPaymentMethodsService } from "./paymentMethods-
|
|
2
|
+
import { c as createPaymentMethodsService } from "./paymentMethods-DIV78w0O.mjs";
|
|
3
3
|
function usePaymentMethods({
|
|
4
4
|
customerId,
|
|
5
5
|
pageSize = 15
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./useIncrementalLoading-CdtGJm_Y.js"),t=require("./paymentMethods-
|
|
1
|
+
const e=require("./useIncrementalLoading-CdtGJm_Y.js"),t=require("./paymentMethods-CZ3ydybI.js");exports.usePaymentMethods=function({customerId:n,pageSize:s=15}){const{getPaymentMethods:a}=t.createPaymentMethodsService();return e.useIncrementalLoading({service:async e=>a({customerId:n,pagination:{page:e,pageSize:s}})})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=require("./customElements-DD7bpqkx.js"),n=require("./IconTitle.vue.es-D9Wc3PIq.js"),a=require("./Chip.vue.es-DmCjC1hi.js"),i=require("./formatting.es-DBtYnvI5.js"),o=require("./index.es-2JWHHSgP.js"),s=require("./Button.vue.es-O8mNivLL.js"),r=require("./FormMessage.vue.es-Bd4_NG9H.js"),c=require("./invoices-BAoh6X2a.js"),l=require("./useService-D73FNBjT.js"),d=require("./payments--lkjiwCt.js"),u={neutral:{indicatorClass:"border-gray-500 bg-gray-500",chipIntent:"neutral"},info:{indicatorClass:"border-blue-600 bg-blue-600",chipIntent:"info"},success:{indicatorClass:"border-green-600 bg-green-600",chipIntent:"success"},warning:{indicatorClass:"border-yellow-600 bg-yellow-600",chipIntent:"warning"},danger:{indicatorClass:"border-red-600 bg-red-600",chipIntent:"danger"}},p={ACCEPTED:"success",ACTIVE:"success",APPROVED:"success",ARCHIVED:"neutral",CANCELLED:"neutral",CLOSED:"success",CREATED:"neutral",DECLINED:"danger",DELETED:"danger",DENIED:"danger",DEPRECATED:"warning",DONE:"success",DOWNLOADED:"success",DOWNLOADING:"info",DRAFT:"warning",DUPLICATE:"warning",EMPTY:"neutral",ENABLED:"success",ERROR:"danger",FAILED:"danger",FINAL:"success",GENERATING:"info",IGNORE:"neutral",IMPORTED:"success",IMPORTING:"info",INACTIVE:"neutral",INVALID:"danger",INVITED:"info",INVITE_REVOKED:"neutral",NONE:"neutral",NOT_EXECUTED:"neutral",NOT_MATCHED:"warning",ON_HOLD:"warning",OPEN:"neutral",OVERPAID:"warning",PAID:"success",PARTIALLY_PAID:"warning",PAUSED:"warning",PAYMENT_FAILED:"danger",PENDING:"info",PENDING_REVIEW:"warning",PROCESSING:"info",QUEUED:"info",REJECTED:"danger",SCHEDULED:"info",SEND:"info",SIGNATURE_REQUESTED:"warning",SIGNED:"success",SUBMITTED:"info",SUCCEEDED:"success",SUCCESS:"success",TO_BE_DOWNLOADED:"info",TO_BE_REPROCESSED:"info",UNPAID:"warning",UPLOADED:"success",VALID:"success",VOID:"neutral",WAITING_APPROVAL:"warning",DISABLED:"neutral"},f=e=>u[p[e]??"neutral"],m={class:"inline-flex flex-col items-end gap-1"},v=e.defineComponent({__name:"DownloadButton",props:{downloadService:{type:Function},mobileIconOnly:{type:Boolean,default:!1},type:{},intent:{default:"secondary"},size:{default:"md"},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{},iconSuffix:{},tag:{},preventDoubleClick:{type:Boolean}},setup(n){const{$t:a}=t.useIntl(),i=e.createPropsRestProxy(n,["downloadService","size","intent","mobileIconOnly"]),c=e.ref(!1),l=e.ref(!1),d=o.useBreakpoints(o.breakpointsTailwind).smaller("md"),u=e.computed(()=>n.mobileIconOnly&&d.value),p=async()=>{l.value=!0,c.value=!1;try{await n.downloadService()}catch{c.value=!0}finally{l.value=!1}};return(t,o)=>(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(e.unref(s._sfc_main$1),e.mergeProps({...i,size:n.size,intent:n.intent},{loading:l.value,type:"button","icon-prefix":"download",onClick:p}),e.createSlots({_:2},[t.$slots.default&&!u.value?{name:"default",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),key:"0"}:void 0]),1040,["loading"]),c.value?(e.openBlock(),e.createBlock(e.unref(r._sfc_main),{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({id:"download_button.download_failed_message",defaultMessage:"Download failed, please try again later",description:"Error message when a download fails"})),1)]),_:1})):e.createCommentVNode("",!0)]))}}),E=e.defineComponent({__name:"StatusChip",props:{status:{},size:{default:"md"},hasChipBefore:{type:Boolean,default:!1},hasChipAfter:{type:Boolean,default:!1}},setup:t=>(n,o)=>(e.openBlock(),e.createBlock(a._sfc_main,{intent:e.unref(f)(t.status).chipIntent,size:t.size,"has-chip-after":t.hasChipAfter,"has-chip-before":t.hasChipBefore},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(i.formatEnum)(t.status)),1)])]),_:3},8,["intent","size","has-chip-after","has-chip-before"]))}),D={class:"flex items-center justify-between md:py-2"},g={class:"ml-2 inline-flex gap-0.5 print:hidden"},I=e.defineComponent({__name:"InvoiceHeader",props:{invoice:{},paymentAttempts:{},downloadService:{},showDownloadButton:{type:Boolean},variant:{default:"internal"},showInvoiceNumberLabel:{type:Boolean}},setup(i){const o=i,{$t:s,formatDate:r}=t.useIntl(),c=e.computed(()=>o.paymentAttempts.findLast(e=>"AUTHORIZED"===e.result)),l=e.computed(()=>s({defaultMessage:"Due on {date}",description:"Label for due date, where {date} gets replaced with the due date",id:"invoice.due_on_label"},{date:r({date:o.invoice.due_date,format:"date",offsetType:"offsetted",timezone:o.invoice.customer.timezone})})),d=e.computed(()=>r({date:o.invoice.invoice_date,format:"date",offsetType:"offsetted",timezone:o.invoice.customer.timezone})),u=e.computed(()=>s({defaultMessage:"Invoice",description:"Label prefixed before the invoice number in the header title",id:"invoiceHeader.invoiceNumberLabel"})),p=e.computed(()=>{if("external"===o.variant)return d.value;const e=o.invoice.invoice_number;return e?o.showInvoiceNumberLabel?`${u.value} ${e}`:e:u.value}),f=e.computed(()=>{if(o.invoice.paid&&c.value)return s({defaultMessage:"Paid on {date}",description:"Label for payment date, where {date} gets replaced with the date",id:"invoice.paid_on_label"},{date:r({date:c.value.created_at,format:"date",offsetType:"offsetted",timezone:o.invoice.customer.timezone})})}),m=e.computed(()=>"external"===o.variant?[o.invoice.invoice_number,f.value||l.value].join(" - "):f.value||l.value),I=e.computed(()=>"PAID"!==o.invoice.status);return(o,r)=>(e.openBlock(),e.createElementBlock("div",D,[e.createVNode(n._sfc_main,{title:p.value},{suffix:e.withCtx(()=>[e.createElementVNode("span",g,[I.value?(e.openBlock(),e.createBlock(E,{key:0,status:i.invoice.status,"has-chip-after":!!i.invoice.paid},null,8,["status","has-chip-after"])):e.createCommentVNode("",!0),i.invoice.paid?(e.openBlock(),e.createBlock(a._sfc_main,{key:1,intent:"success","has-chip-before":I.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)({defaultMessage:"Paid",description:"The paid chip label text for a paid invoice",id:"invoice.paid_chip"})),1)]),_:1},8,["has-chip-before"])):e.createCommentVNode("",!0)])]),subTitle:e.withCtx(()=>[e.createVNode(t._sfc_main,{variant:"body-xs",class:"flex gap-1 print:hidden"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value),1)]),_:1})]),_:1},8,["title"]),i.showDownloadButton?(e.openBlock(),e.createBlock(v,{key:0,size:"lg",intent:"secondary","download-service":i.downloadService,"mobile-icon-only":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)({defaultMessage:"Download PDF",description:"Title for button download pdf invoice",id:"invoice.download_pdf_button"})),1)]),_:1},8,["download-service"])):e.createCommentVNode("",!0)]))}});exports._sfc_main=I,exports.useInvoice=function({invoiceId:e}){const{getInvoice:t,getInvoicePdf:n}=c.createInvoicesService(),{data:a,execute:i,apiStatus:o,error:s,isPending:r}=l.useService({service:()=>t(e)});return{invoice:a,downloadInvoicePdf:n,apiStatus:o,error:s,get:i,isPending:r}},exports.usePayments=function(){const{getPayments:e}=d.createPaymentsService(),{data:t,execute:n,error:a,apiStatus:i,isPending:o}=l.useService({service:e,isCollection:!0});return{payments:t,get:n,error:a,apiStatus:i,isPending:o}};
|
|
@@ -1,25 +1,94 @@
|
|
|
1
|
-
import { defineComponent, createPropsRestProxy, ref, computed, openBlock,
|
|
2
|
-
import { u as useIntl, _ as _sfc_main$
|
|
3
|
-
import { _ as _sfc_main$
|
|
4
|
-
import { _ as _sfc_main$
|
|
5
|
-
import {
|
|
6
|
-
import { a as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { defineComponent, createPropsRestProxy, ref, computed, openBlock, createElementBlock, createVNode, unref, mergeProps, createSlots, withCtx, renderSlot, createBlock, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
2
|
+
import { u as useIntl, _ as _sfc_main$7 } from "./customElements-B-89a5oH.mjs";
|
|
3
|
+
import { _ as _sfc_main$6 } from "./IconTitle.vue.es-BmjBdZb_.mjs";
|
|
4
|
+
import { _ as _sfc_main$5 } from "./Chip.vue.es-BBmn-qJp.mjs";
|
|
5
|
+
import { a as formatEnum } from "./formatting.es-eYgXv_AK.mjs";
|
|
6
|
+
import { a as useBreakpoints, b as breakpointsTailwind } from "./index.es-D5xOw_SJ.mjs";
|
|
7
|
+
import { a as _sfc_main$3 } from "./Button.vue.es-Cm9pLU9i.mjs";
|
|
8
|
+
import { _ as _sfc_main$4 } from "./FormMessage.vue.es-C3oxwq_8.mjs";
|
|
9
|
+
import { c as createInvoicesService } from "./invoices-1oYkdQQV.mjs";
|
|
9
10
|
import { u as useService } from "./useService-W3Kxems4.mjs";
|
|
10
|
-
import { c as createPaymentsService } from "./payments-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
import { c as createPaymentsService } from "./payments-Cvqdrprv.mjs";
|
|
12
|
+
const statusAppearances = {
|
|
13
|
+
neutral: { indicatorClass: "border-gray-500 bg-gray-500", chipIntent: "neutral" },
|
|
14
|
+
info: { indicatorClass: "border-blue-600 bg-blue-600", chipIntent: "info" },
|
|
15
|
+
success: { indicatorClass: "border-green-600 bg-green-600", chipIntent: "success" },
|
|
16
|
+
warning: { indicatorClass: "border-yellow-600 bg-yellow-600", chipIntent: "warning" },
|
|
17
|
+
danger: { indicatorClass: "border-red-600 bg-red-600", chipIntent: "danger" }
|
|
14
18
|
};
|
|
15
|
-
const
|
|
19
|
+
const statusIntents = {
|
|
20
|
+
ACCEPTED: "success",
|
|
21
|
+
ACTIVE: "success",
|
|
22
|
+
APPROVED: "success",
|
|
23
|
+
ARCHIVED: "neutral",
|
|
24
|
+
CANCELLED: "neutral",
|
|
25
|
+
CLOSED: "success",
|
|
26
|
+
CREATED: "neutral",
|
|
27
|
+
DECLINED: "danger",
|
|
28
|
+
DELETED: "danger",
|
|
29
|
+
DENIED: "danger",
|
|
30
|
+
DEPRECATED: "warning",
|
|
31
|
+
DONE: "success",
|
|
32
|
+
DOWNLOADED: "success",
|
|
33
|
+
DOWNLOADING: "info",
|
|
34
|
+
DRAFT: "warning",
|
|
35
|
+
DUPLICATE: "warning",
|
|
36
|
+
EMPTY: "neutral",
|
|
37
|
+
ENABLED: "success",
|
|
38
|
+
ERROR: "danger",
|
|
39
|
+
FAILED: "danger",
|
|
40
|
+
FINAL: "success",
|
|
41
|
+
GENERATING: "info",
|
|
42
|
+
IGNORE: "neutral",
|
|
43
|
+
IMPORTED: "success",
|
|
44
|
+
IMPORTING: "info",
|
|
45
|
+
INACTIVE: "neutral",
|
|
46
|
+
INVALID: "danger",
|
|
47
|
+
INVITED: "info",
|
|
48
|
+
INVITE_REVOKED: "neutral",
|
|
49
|
+
NONE: "neutral",
|
|
50
|
+
NOT_EXECUTED: "neutral",
|
|
51
|
+
NOT_MATCHED: "warning",
|
|
52
|
+
ON_HOLD: "warning",
|
|
53
|
+
OPEN: "neutral",
|
|
54
|
+
OVERPAID: "warning",
|
|
55
|
+
PAID: "success",
|
|
56
|
+
PARTIALLY_PAID: "warning",
|
|
57
|
+
PAUSED: "warning",
|
|
58
|
+
PAYMENT_FAILED: "danger",
|
|
59
|
+
PENDING: "info",
|
|
60
|
+
PENDING_REVIEW: "warning",
|
|
61
|
+
PROCESSING: "info",
|
|
62
|
+
QUEUED: "info",
|
|
63
|
+
REJECTED: "danger",
|
|
64
|
+
SCHEDULED: "info",
|
|
65
|
+
SEND: "info",
|
|
66
|
+
SIGNATURE_REQUESTED: "warning",
|
|
67
|
+
SIGNED: "success",
|
|
68
|
+
SUBMITTED: "info",
|
|
69
|
+
SUCCEEDED: "success",
|
|
70
|
+
SUCCESS: "success",
|
|
71
|
+
TO_BE_DOWNLOADED: "info",
|
|
72
|
+
TO_BE_REPROCESSED: "info",
|
|
73
|
+
UNPAID: "warning",
|
|
74
|
+
UPLOADED: "success",
|
|
75
|
+
VALID: "success",
|
|
76
|
+
VOID: "neutral",
|
|
77
|
+
WAITING_APPROVAL: "warning",
|
|
78
|
+
DISABLED: "neutral"
|
|
79
|
+
};
|
|
80
|
+
const getStatusAppearance = (status) => {
|
|
81
|
+
const intent = statusIntents[status] ?? "neutral";
|
|
82
|
+
return statusAppearances[intent];
|
|
83
|
+
};
|
|
84
|
+
const _hoisted_1$1 = { class: "inline-flex flex-col items-end gap-1" };
|
|
85
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
16
86
|
__name: "DownloadButton",
|
|
17
87
|
props: {
|
|
18
88
|
downloadService: { type: Function },
|
|
19
89
|
mobileIconOnly: { type: Boolean, default: false },
|
|
20
90
|
type: {},
|
|
21
|
-
|
|
22
|
-
color: { default: "gray" },
|
|
91
|
+
intent: { default: "secondary" },
|
|
23
92
|
size: { default: "md" },
|
|
24
93
|
pill: { type: Boolean },
|
|
25
94
|
square: { type: Boolean },
|
|
@@ -32,7 +101,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
32
101
|
},
|
|
33
102
|
setup(__props) {
|
|
34
103
|
const { $t } = useIntl();
|
|
35
|
-
const buttonProps = createPropsRestProxy(__props, ["downloadService", "size", "
|
|
104
|
+
const buttonProps = createPropsRestProxy(__props, ["downloadService", "size", "intent", "mobileIconOnly"]);
|
|
36
105
|
const isFailed = ref(false);
|
|
37
106
|
const isLoading = ref(false);
|
|
38
107
|
const breakpoints = useBreakpoints(breakpointsTailwind);
|
|
@@ -50,24 +119,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
50
119
|
}
|
|
51
120
|
};
|
|
52
121
|
return (_ctx, _cache) => {
|
|
53
|
-
return
|
|
54
|
-
|
|
55
|
-
loading: isLoading.value,
|
|
56
|
-
variant: __props.variant,
|
|
57
|
-
type: "button",
|
|
58
|
-
"icon-prefix": "download",
|
|
59
|
-
onClick: handleDownload
|
|
60
|
-
}), createSlots({ _: 2 }, [
|
|
61
|
-
_ctx.$slots.default && !isIconOnly.value ? {
|
|
62
|
-
name: "default",
|
|
63
|
-
fn: withCtx(() => [
|
|
64
|
-
!!_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 0) : createCommentVNode("", true)
|
|
65
|
-
]),
|
|
66
|
-
key: "0"
|
|
67
|
-
} : void 0
|
|
68
|
-
]), 1040, ["disabled", "loading", "variant"])) : (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
69
|
-
!isFailed.value ? (openBlock(), createBlock(unref(_sfc_main$2), mergeProps({ key: 0 }, { ...buttonProps, size: __props.size, color: __props.color }, {
|
|
70
|
-
disabled: isLoading.value,
|
|
122
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
123
|
+
createVNode(unref(_sfc_main$3), mergeProps({ ...buttonProps, size: __props.size, intent: __props.intent }, {
|
|
71
124
|
loading: isLoading.value,
|
|
72
125
|
type: "button",
|
|
73
126
|
"icon-prefix": "download",
|
|
@@ -76,12 +129,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
76
129
|
_ctx.$slots.default && !isIconOnly.value ? {
|
|
77
130
|
name: "default",
|
|
78
131
|
fn: withCtx(() => [
|
|
79
|
-
|
|
132
|
+
renderSlot(_ctx.$slots, "default")
|
|
80
133
|
]),
|
|
81
134
|
key: "0"
|
|
82
135
|
} : void 0
|
|
83
|
-
]), 1040, ["
|
|
84
|
-
isFailed.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
136
|
+
]), 1040, ["loading"]),
|
|
137
|
+
isFailed.value ? (openBlock(), createBlock(unref(_sfc_main$4), { key: 0 }, {
|
|
85
138
|
default: withCtx(() => [
|
|
86
139
|
createTextVNode(toDisplayString(unref($t)({
|
|
87
140
|
id: "download_button.download_failed_message",
|
|
@@ -91,11 +144,38 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
91
144
|
]),
|
|
92
145
|
_: 1
|
|
93
146
|
})) : createCommentVNode("", true)
|
|
94
|
-
])
|
|
147
|
+
]);
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
152
|
+
__name: "StatusChip",
|
|
153
|
+
props: {
|
|
154
|
+
status: {},
|
|
155
|
+
size: { default: "md" },
|
|
156
|
+
hasChipBefore: { type: Boolean, default: false },
|
|
157
|
+
hasChipAfter: { type: Boolean, default: false }
|
|
158
|
+
},
|
|
159
|
+
setup(__props) {
|
|
160
|
+
return (_ctx, _cache) => {
|
|
161
|
+
return openBlock(), createBlock(_sfc_main$5, {
|
|
162
|
+
intent: unref(getStatusAppearance)(__props.status).chipIntent,
|
|
163
|
+
size: __props.size,
|
|
164
|
+
"has-chip-after": __props.hasChipAfter,
|
|
165
|
+
"has-chip-before": __props.hasChipBefore
|
|
166
|
+
}, {
|
|
167
|
+
default: withCtx(() => [
|
|
168
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
169
|
+
createTextVNode(toDisplayString(unref(formatEnum)(__props.status)), 1)
|
|
170
|
+
])
|
|
171
|
+
]),
|
|
172
|
+
_: 3
|
|
173
|
+
}, 8, ["intent", "size", "has-chip-after", "has-chip-before"]);
|
|
95
174
|
};
|
|
96
175
|
}
|
|
97
176
|
});
|
|
98
177
|
const _hoisted_1 = { class: "flex items-center justify-between md:py-2" };
|
|
178
|
+
const _hoisted_2 = { class: "ml-2 inline-flex gap-0.5 print:hidden" };
|
|
99
179
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
100
180
|
__name: "InvoiceHeader",
|
|
101
181
|
props: {
|
|
@@ -103,7 +183,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
103
183
|
paymentAttempts: {},
|
|
104
184
|
downloadService: {},
|
|
105
185
|
showDownloadButton: { type: Boolean },
|
|
106
|
-
variant: { default: "internal" }
|
|
186
|
+
variant: { default: "internal" },
|
|
187
|
+
showInvoiceNumberLabel: { type: Boolean }
|
|
107
188
|
},
|
|
108
189
|
setup(__props) {
|
|
109
190
|
const props = __props;
|
|
@@ -136,11 +217,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
136
217
|
timezone: props.invoice.customer.timezone
|
|
137
218
|
})
|
|
138
219
|
);
|
|
220
|
+
const invoiceNumberLabel = computed(
|
|
221
|
+
() => $t({
|
|
222
|
+
defaultMessage: "Invoice",
|
|
223
|
+
description: "Label prefixed before the invoice number in the header title",
|
|
224
|
+
id: "invoiceHeader.invoiceNumberLabel"
|
|
225
|
+
})
|
|
226
|
+
);
|
|
139
227
|
const title = computed(() => {
|
|
140
228
|
if (props.variant === "external") {
|
|
141
229
|
return invoiceDate.value;
|
|
142
230
|
}
|
|
143
|
-
|
|
231
|
+
const invoiceNumber = props.invoice.invoice_number;
|
|
232
|
+
if (!invoiceNumber) {
|
|
233
|
+
return invoiceNumberLabel.value;
|
|
234
|
+
}
|
|
235
|
+
return props.showInvoiceNumberLabel ? `${invoiceNumberLabel.value} ${invoiceNumber}` : invoiceNumber;
|
|
144
236
|
});
|
|
145
237
|
const paidOn = computed(() => {
|
|
146
238
|
if (!props.invoice.paid || !lastAuthorizedPaymentAttempt.value) {
|
|
@@ -168,29 +260,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
168
260
|
}
|
|
169
261
|
return paidOn.value || dueDate.value;
|
|
170
262
|
});
|
|
263
|
+
const showStatusChip = computed(() => props.invoice.status !== "PAID");
|
|
171
264
|
return (_ctx, _cache) => {
|
|
172
265
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
173
|
-
createVNode(_sfc_main$
|
|
266
|
+
createVNode(_sfc_main$6, { title: title.value }, {
|
|
174
267
|
suffix: withCtx(() => [
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
268
|
+
createElementVNode("span", _hoisted_2, [
|
|
269
|
+
showStatusChip.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
270
|
+
key: 0,
|
|
271
|
+
status: __props.invoice.status,
|
|
272
|
+
"has-chip-after": !!__props.invoice.paid
|
|
273
|
+
}, null, 8, ["status", "has-chip-after"])) : createCommentVNode("", true),
|
|
274
|
+
__props.invoice.paid ? (openBlock(), createBlock(_sfc_main$5, {
|
|
275
|
+
key: 1,
|
|
276
|
+
intent: "success",
|
|
277
|
+
"has-chip-before": showStatusChip.value
|
|
278
|
+
}, {
|
|
279
|
+
default: withCtx(() => [
|
|
280
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
281
|
+
defaultMessage: "Paid",
|
|
282
|
+
description: "The paid chip label text for a paid invoice",
|
|
283
|
+
id: "invoice.paid_chip"
|
|
284
|
+
})), 1)
|
|
285
|
+
]),
|
|
286
|
+
_: 1
|
|
287
|
+
}, 8, ["has-chip-before"])) : createCommentVNode("", true)
|
|
288
|
+
])
|
|
189
289
|
]),
|
|
190
290
|
subTitle: withCtx(() => [
|
|
191
|
-
createVNode(_sfc_main$
|
|
291
|
+
createVNode(_sfc_main$7, {
|
|
192
292
|
variant: "body-xs",
|
|
193
|
-
class: "flex gap-1"
|
|
293
|
+
class: "flex gap-1 print:hidden"
|
|
194
294
|
}, {
|
|
195
295
|
default: withCtx(() => [
|
|
196
296
|
createTextVNode(toDisplayString(subTitle.value), 1)
|
|
@@ -200,10 +300,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
200
300
|
]),
|
|
201
301
|
_: 1
|
|
202
302
|
}, 8, ["title"]),
|
|
203
|
-
__props.showDownloadButton ? (openBlock(), createBlock(_sfc_main$
|
|
303
|
+
__props.showDownloadButton ? (openBlock(), createBlock(_sfc_main$2, {
|
|
204
304
|
key: 0,
|
|
205
305
|
size: "lg",
|
|
206
|
-
|
|
306
|
+
intent: "secondary",
|
|
207
307
|
"download-service": __props.downloadService,
|
|
208
308
|
"mobile-icon-only": ""
|
|
209
309
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r=require("vue"),e=require("./customElements-
|
|
1
|
+
const r=require("vue"),e=require("./customElements-DD7bpqkx.js");exports.usePortal=function(){const o=r.inject(e.PORTAL_INJECTION_KEY);if(!o)throw new Error("PortalProvider is not provided");return o};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject } from "vue";
|
|
2
|
-
import { P as PORTAL_INJECTION_KEY } from "./customElements-
|
|
2
|
+
import { P as PORTAL_INJECTION_KEY } from "./customElements-B-89a5oH.mjs";
|
|
3
3
|
function usePortal() {
|
|
4
4
|
const portal = inject(PORTAL_INJECTION_KEY);
|
|
5
5
|
if (!portal) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as useService } from "./useService-W3Kxems4.mjs";
|
|
2
|
-
import { c as createSubscriptionsService } from "./subscriptions-
|
|
2
|
+
import { c as createSubscriptionsService } from "./subscriptions-DcMHBPVJ.mjs";
|
|
3
3
|
const getOriginalPricingId = (pricing) => pricing.original_pricing_id ?? pricing.id;
|
|
4
4
|
const getOriginalItemId = (item) => item.original_pricing_item_id ?? item.id;
|
|
5
5
|
const getOriginalConfigId = (config) => config.original_pricing_item_config_id ?? config.id;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const i=require("./useService-D73FNBjT.js"),n=require("./subscriptions-
|
|
1
|
+
const i=require("./useService-D73FNBjT.js"),n=require("./subscriptions-300o4ae0.js"),r=i=>i.original_pricing_id??i.id,e=i=>i.original_pricing_item_id??i.id,o=i=>i.original_pricing_item_config_id??i.id,c=(i,n)=>(null==i?void 0:i.type)===(null==n?void 0:n.type)&&(null==i?void 0:i.value)===(null==n?void 0:n.value);function t(i){const n={};for(const r in i)void 0!==i[r]&&(n[r]=i[r]);return n}function s(i,n,r){if(!(null==n?void 0:n.length))return i;if(!(null==i?void 0:i.length))return n;const e=new Set;return[...i.reduce((i,c)=>{const t=n.find(i=>o(i)===o(c));return t?(e.add(t),[...i,g(c,t)]):r.dropUnmatched?i:[...i,c]},[]),...n.filter(i=>!e.has(i))]}function d(i,n,r){return(null==n?void 0:n.length)?(null==i?void 0:i.length)?[...i.map(i=>{const e=n.find(n=>c(n.billing_period,i.billing_period));return e?{...i,configs:s(i.configs,e.configs,r)??[]}:i}),...n.filter(n=>!i.some(i=>c(n.billing_period,i.billing_period)))]:n:i}function l(i,n,r){return(null==n?void 0:n.length)?(null==i?void 0:i.length)?[...i.map(i=>{const e=n.find(n=>n.currency===i.currency);return e?{...i,...t(e),configs:s(i.configs,e.configs,r),billing_period_configs:d(i.billing_period_configs,e.billing_period_configs,r)}:i}),...n.filter(n=>!i.some(i=>i.currency===n.currency))]:n:i}function g(i,n){const r={dropUnmatched:!1};return{...i,...t(n),id:n.id??i.id,original_pricing_item_config_id:o(i),conditions:i.conditions&&n.conditions?{...i.conditions,...t(n.conditions),meter_properties:i.conditions.meter_properties??n.conditions.meter_properties,configs:s(i.conditions.configs,n.conditions.configs,r)}:n.conditions??i.conditions,billing_period_configs:d(i.billing_period_configs,n.billing_period_configs,r)}}function u(i,n){const r={dropUnmatched:"ALL"===n.override};return{...i,...t(n),id:n.id??i.id,original_pricing_item_id:e(i),product_items:i.product_items,configs:s(i.configs,n.configs,r),billing_period_configs:d(i.billing_period_configs,n.billing_period_configs,r),pricing_currency_configs:l(i.pricing_currency_configs,n.pricing_currency_configs,r)}}function p(i,n,r){if(!(null==n?void 0:n.length))return i;if(!(null==i?void 0:i.length))return n;const o=new Set;return[...i.reduce((i,c)=>{const t=n.find(i=>e(i)===e(c));return t?(o.add(t),[...i,u(c,t)]):r.dropUnmatched?i:[...i,c]},[]),...n.filter(i=>!o.has(i))]}function _(i,n){return i.map(i=>{const e=n.find(n=>n.original_pricing_id===r(i));return e?function(i,n){const e={dropUnmatched:"ALL"===n.override};return{...i,...t(n),id:n.id??i.id,original_pricing_id:r(i),products:i.products,entitlements:(o=i.entitlements,c=n.entitlements,(null==c?void 0:c.length)?c.map(i=>{var n;const r=null==(n=null==o?void 0:o.find(n=>n.feature_id===i.feature_id))?void 0:n.feature;return r?{...i,feature:r}:i}):o),items:p(i.items,n.items,e)};var o,c}(i,e):i})}function f({pricingPlanVersion:i,overridePricings:n}){var r;const e=n??[];return e.length?{...i,pricing_categories:null==(r=i.pricing_categories)?void 0:r.map(i=>{var n;return{...i,pricings:i.pricings&&_(i.pricings,e),pricing_groups:null==(n=i.pricing_groups)?void 0:n.map(i=>({...i,pricings:_(i.pricings,e)}))}})}:i}exports.useSubscription=function({subscriptionId:r}){const{getSubscription:e}=n.createSubscriptionsService(),{data:o,execute:c,apiStatus:t,error:s,isPending:d}=i.useService({service:()=>e({id:r,expanded:!0})});return{subscription:o,withPlanData:i=>function(i){return i.pricing_plan_schedule_infos.map(i=>{var n;return{schedule:i.pricing_plan_schedule,selectedPricingPlan:i.pricing_plan_version.pricing_plan,selectedPricingPlanVersion:f({pricingPlanVersion:i.pricing_plan_version,overridePricings:null==(n=i.pricing_plan_schedule)?void 0:n.override_pricings})}})}(i),apiStatus:t,error:s,get:c,isPending:d}};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const visa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%231b16e6'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M19.91%2018.2c-.02%201.39%201.25%202.17%202.21%202.63.98.47%201.31.78%201.31%201.2%200%20.65-.78.94-1.51.95-1.27.02-2-.34-2.6-.61l-.45%202.12c.59.27%201.68.5%202.8.51%202.66%200%204.4-1.3%204.4-3.3.01-2.56-3.56-2.7-3.54-3.84.01-.35.35-.72%201.08-.81a5%205%200%200%201%202.49.43l.44-2.05a7%207%200%200%200-2.36-.43c-2.5%200-4.25%201.32-4.27%203.2m10.9-3.02c-.49%200-.9.28-1.08.7l-3.79%208.97h2.65l.53-1.44h3.24l.3%201.44H35l-2.04-9.67zm.37%202.61.76%203.63h-2.1zM16.7%2015.18l-2.09%209.67h2.53l2.08-9.67zm-3.74%200-2.62%206.58-1.07-5.6a1.2%201.2%200%200%200-1.16-.98H3.8l-.06.28c.88.19%201.88.5%202.5.82.36.2.47.37.6.85l2%207.72h2.67l4.1-9.67z'%20clip-rule='evenodd'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
visa as default
|
|
4
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%231b16e6'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M19.91%2018.2c-.02%201.39%201.25%202.17%202.21%202.63.98.47%201.31.78%201.31%201.2%200%20.65-.78.94-1.51.95-1.27.02-2-.34-2.6-.61l-.45%202.12c.59.27%201.68.5%202.8.51%202.66%200%204.4-1.3%204.4-3.3.01-2.56-3.56-2.7-3.54-3.84.01-.35.35-.72%201.08-.81a5%205%200%200%201%202.49.43l.44-2.05a7%207%200%200%200-2.36-.43c-2.5%200-4.25%201.32-4.27%203.2m10.9-3.02c-.49%200-.9.28-1.08.7l-3.79%208.97h2.65l.53-1.44h3.24l.3%201.44H35l-2.04-9.67zm.37%202.61.76%203.63h-2.1zM16.7%2015.18l-2.09%209.67h2.53l2.08-9.67zm-3.74%200-2.62%206.58-1.07-5.6a1.2%201.2%200%200%200-1.16-.98H3.8l-.06.28c.88.19%201.88.5%202.5.82.36.2.47.37.6.85l2%207.72h2.67l4.1-9.67z'%20clip-rule='evenodd'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const vpay = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%231c3378'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%231c3378'%20d='M38.75%200H2v39.75h36.75z'/%3e%3cpath%20fill='%23fff'%20d='M36.96%2025.94H2.04V1.04h34.92z'/%3e%3cpath%20fill='%231c3378'%20d='m28.33%205.56-6.85%2016.33h-4.47L13.63%208.86c-.2-.8-.38-1.1-1-1.44a18%2018%200%200%200-4.18-1.39l.1-.47h7.2c.92%200%201.75.6%201.95%201.66l1.79%209.45%204.4-11.1z'/%3e%3cpath%20fill='%23fff'%20d='M11.77%2032.32q.25.07.65.06c1%200%201.6-.51%201.6-1.4%200-.84-.56-1.3-1.48-1.3a4%204%200%200%200-.77.08zm-1.31-3.53q.7-.16%202.03-.16%201.45%200%202.15.62c.43.37.71.96.71%201.68q0%201.09-.62%201.72c-.53.55-1.37.8-2.3.8a4%204%200%200%201-.66-.04v2.86h-1.31zm9.9%204.29-.57-1.87c-.15-.46-.26-.98-.37-1.42h-.02c-.11.44-.22.97-.35%201.42l-.56%201.87zm-2.09%201.04-.62%202.15h-1.38l2.34-7.59h1.7l2.36%207.6h-1.42l-.66-2.16zm7.2%202.15v-3.16l-2.3-4.43h1.51l.88%201.95c.25.57.43.99.63%201.51h.02q.27-.7.63-1.51l.88-1.95h1.5l-2.42%204.4v3.2z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
vpay as default
|
|
4
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%231c3378'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%231c3378'%20d='M38.75%200H2v39.75h36.75z'/%3e%3cpath%20fill='%23fff'%20d='M36.96%2025.94H2.04V1.04h34.92z'/%3e%3cpath%20fill='%231c3378'%20d='m28.33%205.56-6.85%2016.33h-4.47L13.63%208.86c-.2-.8-.38-1.1-1-1.44a18%2018%200%200%200-4.18-1.39l.1-.47h7.2c.92%200%201.75.6%201.95%201.66l1.79%209.45%204.4-11.1z'/%3e%3cpath%20fill='%23fff'%20d='M11.77%2032.32q.25.07.65.06c1%200%201.6-.51%201.6-1.4%200-.84-.56-1.3-1.48-1.3a4%204%200%200%200-.77.08zm-1.31-3.53q.7-.16%202.03-.16%201.45%200%202.15.62c.43.37.71.96.71%201.68q0%201.09-.62%201.72c-.53.55-1.37.8-2.3.8a4%204%200%200%201-.66-.04v2.86h-1.31zm9.9%204.29-.57-1.87c-.15-.46-.26-.98-.37-1.42h-.02c-.11.44-.22.97-.35%201.42l-.56%201.87zm-2.09%201.04-.62%202.15h-1.38l2.34-7.59h1.7l2.36%207.6h-1.42l-.66-2.16zm7.2%202.15v-3.16l-2.3-4.43h1.51l.88%201.95c.25.57.43.99.63%201.51h.02q.27-.7.63-1.51l.88-1.95h1.5l-2.42%204.4v3.2z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const zip = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23fff'%20d='M0%207h40v26H0z'/%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%231a0826'%20d='m2.81%2022.9.32%202.56h11l-.36-2.94H8.64l-.05-.36%204.73-3.31-.32-2.58H2l.36%202.94H7.5l.04.37z'/%3e%3cpath%20fill='%23aa8fff'%20d='m14.28%2016.27%201.13%209.2h11l-1.12-9.2z'/%3e%3cpath%20fill='%231a0826'%20d='M37.96%2019.58c-.25-2.06-1.87-3.31-4.07-3.3h-7.32l1.12%209.18H31l-.23-1.84h3.49c2.74%200%204-1.71%203.71-4.04m-4.07%201.47h-3.44l-.27-2.2h3.46c.82.01%201.23.47%201.3%201.1.04.4-.14%201.1-1.05%201.1'/%3e%3cpath%20fill='%23000'%20d='M17.91%2015.05c.58-.62.48-1.66-.22-2.32s-1.75-.68-2.32-.06c-.58.62-.48%201.66.22%202.32s1.75.68%202.32.06'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
zip as default
|
|
4
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23fff'%20d='M0%207h40v26H0z'/%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%231a0826'%20d='m2.81%2022.9.32%202.56h11l-.36-2.94H8.64l-.05-.36%204.73-3.31-.32-2.58H2l.36%202.94H7.5l.04.37z'/%3e%3cpath%20fill='%23aa8fff'%20d='m14.28%2016.27%201.13%209.2h11l-1.12-9.2z'/%3e%3cpath%20fill='%231a0826'%20d='M37.96%2019.58c-.25-2.06-1.87-3.31-4.07-3.3h-7.32l1.12%209.18H31l-.23-1.84h3.49c2.74%200%204-1.71%203.71-4.04m-4.07%201.47h-3.44l-.27-2.2h3.46c.82.01%201.23.47%201.3%201.1.04.4-.14%201.1-1.05%201.1'/%3e%3cpath%20fill='%23000'%20d='M17.91%2015.05c.58-.62.48-1.66-.22-2.32s-1.75-.68-2.32-.06c-.58.62-.48%201.66.22%202.32s1.75.68%202.32.06'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solvimon/solvimon-web",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.20",
|
|
4
4
|
"description": "Solvimon's Front-end SDK provides you with the building blocks to create a billing self serve experience",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
"@formatjs/cli": "^6.6.1",
|
|
182
182
|
"@playwright/test": "^1.57.0",
|
|
183
183
|
"@solvimon/solvimon-types": "^1.0.3",
|
|
184
|
-
"@solvimon/solvimon-ui": "^1.
|
|
184
|
+
"@solvimon/solvimon-ui": "^1.9.0",
|
|
185
185
|
"@tsconfig/node22": "^22.0.0",
|
|
186
186
|
"@types/jsdom": "^21.1.7",
|
|
187
187
|
"@types/node": "^22.10.2",
|
|
@@ -220,6 +220,18 @@
|
|
|
220
220
|
"vitest-localstorage-mock": "^0.1.2",
|
|
221
221
|
"vue-tsc": "^2.1.10"
|
|
222
222
|
},
|
|
223
|
+
"overrides": {
|
|
224
|
+
"@tiptap/core": "^3.31.2",
|
|
225
|
+
"@tiptap/pm": "^3.31.2",
|
|
226
|
+
"@tiptap/vue-3": "^3.31.2",
|
|
227
|
+
"@tiptap/extensions": "^3.31.2",
|
|
228
|
+
"@tiptap/suggestion": "^3.31.2",
|
|
229
|
+
"@tiptap/extension-collaboration": "^3.31.2",
|
|
230
|
+
"@tiptap/extension-drag-handle": "^3.31.2",
|
|
231
|
+
"@tiptap/extension-drag-handle-vue-3": "^3.31.2",
|
|
232
|
+
"@tiptap/extension-node-range": "^3.31.2",
|
|
233
|
+
"@tiptap/extension-placeholder": "^3.31.2"
|
|
234
|
+
},
|
|
223
235
|
"optionalDependencies": {
|
|
224
236
|
"vite-bundle-visualizer": "^1.2.1"
|
|
225
237
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("vue"),t=require("./PaymentMethod.vue.es-uVZO0Zju.js"),a=require("./Button.vue.es-aLcIdATK.js"),o=require("./FormMessage.vue.es-LeWoj774.js"),n=require("./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js"),r=require("./customElements-BTJzBHMy.js"),i=e=>e.replaceAll("_"," ").toLowerCase().replace(/^./,e=>e.toUpperCase());function l(e){var t,a,o,n,r,l;const s=[];switch(e.type){case"CARD":s.push(e.card.brand&&i(e.card.brand),e.card.last_four_digits);break;case"ONLINE_BANKING":s.push((null==(t=e.online_banking)?void 0:t.variant)&&i(e.online_banking.variant),null==(a=e.online_banking)?void 0:a.owner_name);break;case"DIRECT_DEBIT":s.push((null==(o=e.direct_debit)?void 0:o.variant)&&i(e.direct_debit.variant),null==(n=e.direct_debit)?void 0:n.owner_name);break;case"BUY_NOW_PAY_LATER":s.push((null==(r=e.buy_now_pay_later)?void 0:r.variant)&&i(e.buy_now_pay_later.variant));break;case"DIGITAL_WALLET":s.push((null==(l=e.digital_wallet)?void 0:l.variant)&&i(e.digital_wallet.variant))}return s.filter(Boolean).join(" ")||i(e.type)}const s={class:"sr-only"},d=e.defineComponent({__name:"PaymentMethodSelector",props:{paymentMethods:{type:Array},modelValue:{type:String},label:{type:String},required:{type:Boolean},disabled:{type:Boolean},error:{type:[String,Object,Array]},rootClass:{type:String},showAddOption:{type:Boolean,default:!0},paymentMethodOptions:{type:Array}},emits:["update:modelValue","add-payment-method"],setup(i,{emit:d}){const m=i,c=d,{$t:p}=r.useIntl(),{options:u,paymentMethodsById:y}=(_=e.toRef(m,"paymentMethods"),{options:e.computed(()=>_.value.map(e=>({value:e.id,label:l(e)}))),paymentMethodsById:e.computed(()=>Object.fromEntries(_.value.map(e=>[e.id,e])))});var _;const h=e.computed({get:()=>m.modelValue,set:e=>c("update:modelValue","string"==typeof e?e:void 0)}),v=e.computed(()=>m.paymentMethods.length>0),f=e.computed(()=>{var e;return 0!==(null==(e=m.paymentMethodOptions)?void 0:e.length)});return(l,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sv-payment-method-selector grid grid-cols-1 gap-2",i.rootClass])},[v.value||f.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",null,[v.value?(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{key:0,modelValue:h.value,"onUpdate:modelValue":d[0]||(d[0]=e=>h.value=e),class:"sv-payment-method-selector__options",name:"payment-method",direction:"column",options:e.unref(u),label:i.label,required:i.required,disabled:i.disabled,error:i.error,"show-radio":!1},{prefix:e.withCtx(({optionValue:a})=>[e.createVNode(e.unref(t._sfc_main),{class:"sv-payment-method-selector__option-content grow","payment-method":e.unref(y)[String(a)]},null,8,["payment-method"])]),label:e.withCtx(({option:t})=>[e.createElementVNode("span",s,e.toDisplayString(t.label),1)]),_:1},8,["modelValue","options","label","required","disabled","error"])):e.createCommentVNode("",!0)]),i.showAddOption&&f.value?(e.openBlock(),e.createBlock(e.unref(a._sfc_main$1),{key:0,class:"sv-action sv-action--secondary sv-action--full-width sv-payment-method-selector__add w-full",variant:"outline",color:"gray","icon-prefix":"add",type:"button",size:"sm",disabled:i.disabled,onClick:d[1]||(d[1]=e=>c("add-payment-method"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)({defaultMessage:"Add payment method",description:"Label of the button that adds a new payment method",id:"payment_method_selector.add_payment_method"})),1)]),_:1},8,["disabled"])):i.showAddOption?(e.openBlock(),e.createBlock(e.unref(r._sfc_main),{key:1,variant:"body-sm",shade:"lighter",tag:"p",class:"sv-payment-method-selector__unavailable"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)({defaultMessage:"There are no available payment methods. Please contact support for more information.",description:"Shown in place of the add button when the customer cannot add any payment method",id:"payment_method_selector.no_payment_methods_available"})),1)]),_:1})):e.createCommentVNode("",!0),i.error&&!v.value?(e.openBlock(),e.createBlock(e.unref(o._sfc_main),{key:2,class:"sv-payment-method-selector__error",message:i.error,variant:"error"},null,8,["message"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(n._sfc_main,{key:0,class:"sv-payment-method-selector__empty",icon:"credit_card_off"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)({defaultMessage:"No payment methods available",description:"Shown in place of the payment method choice when the customer has nothing stored and nothing can be added",id:"payment_method_selector.empty_state.title"})),1)]),_:1}))],2))}}),m=e.defineComponent({__name:"AddPaymentMethodPane",props:{customer:{type:Object},paymentMethodOptions:{type:Array},isLoading:{type:Boolean},isActive:{type:Boolean}},emits:["success","failure"],setup(t,{expose:a}){const o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./PaymentMethodForm-CBjHdZT7.js")).then(e=>e.default)),n=t,r=e.computed(()=>({variant:"TOKENIZE"})),i=e.ref(!1);e.watch(()=>n.isActive,e=>{i.value=i.value||!!e},{immediate:!0});const l=e.ref();return a({submit:()=>{var e;return null==(e=l.value)?void 0:e.submit()},isSaving:e.computed(()=>{var e;return!!n.isActive&&!!(null==(e=l.value)?void 0:e.isPaymentPending)})}),(a,n)=>t.customer&&i.value?(e.openBlock(),e.createBlock(e.unref(o),{key:0,ref_key:"formRef",ref:l,class:"sv-add-payment-method-pane","hide-submit-button":"",customer:t.customer,"payment-method-options":t.paymentMethodOptions??[],"is-loading":t.isLoading,configuration:r.value,onSuccess:n[0]||(n[0]=e=>a.$emit("success")),onFailure:n[1]||(n[1]=e=>a.$emit("failure",e))},null,8,["customer","payment-method-options","is-loading","configuration"])):e.createCommentVNode("",!0)}});exports._sfc_main=d,exports._sfc_main$1=m;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("vue"),t=require("./formatting.es-9hM8aHSg.js"),o=e.defineComponent({__name:"Amount",props:{value:{},highlighted:{type:Boolean,default:!1}},setup:o=>(n,r)=>(e.openBlock(),e.createElementBlock("span",e.mergeProps(n.$attrs,{class:[{"font-semibold text-primary-600":o.highlighted},"inline-block"]}),e.toDisplayString(e.unref(t.formatAmount)(o.value)),17))});exports._sfc_main=o;
|