@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
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { computed, ref, defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, createCommentVNode, createElementBlock, Fragment, renderList, shallowRef, watch, toRef, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
-
import { _ as _sfc_main$e } from "../../IconButton.vue.es-
|
|
3
|
-
import { a as _sfc_main$8 } from "../../Button.vue.es-
|
|
4
|
-
import { _ as _sfc_main$b } from "../../ErrorNotification.vue.es-
|
|
5
|
-
import { u as useIntl, _ as _sfc_main$7, b as useLogger, d as _sfc_main$i, e as createSolvimonElement } from "../../customElements-
|
|
2
|
+
import { _ as _sfc_main$e } from "../../IconButton.vue.es-KywqWWvr.mjs";
|
|
3
|
+
import { a as _sfc_main$8 } from "../../Button.vue.es-Cm9pLU9i.mjs";
|
|
4
|
+
import { _ as _sfc_main$b } from "../../ErrorNotification.vue.es-CHyVTBGs.mjs";
|
|
5
|
+
import { u as useIntl, _ as _sfc_main$7, b as useLogger, d as _sfc_main$i, e as createSolvimonElement } from "../../customElements-B-89a5oH.mjs";
|
|
6
6
|
import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
|
|
7
|
-
import { u as useActionDispatchProvider } from "../../useActionDispatchProvider-
|
|
7
|
+
import { u as useActionDispatchProvider } from "../../useActionDispatchProvider-BVOBO0Jx.mjs";
|
|
8
8
|
import { b as getMostRecentScheduleInfo, a as getSubscriptionName } from "../../subscription-C41lG-rH.mjs";
|
|
9
|
-
import { _ as _sfc_main$g } from "../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { _ as _sfc_main$c, u as useCustomerWalletBalances } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { _ as _sfc_main$d } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { _ as _sfc_main$h } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as _sfc_main$g } from "../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-ByO-L6nm.mjs";
|
|
10
|
+
import { _ as _sfc_main$c, u as useCustomerWalletBalances } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BDqBXbJq.mjs";
|
|
11
|
+
import { _ as _sfc_main$d } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CtdFharm.mjs";
|
|
12
|
+
import { _ as _sfc_main$h } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DLE5-9wz.mjs";
|
|
13
13
|
import { _ as _sfc_main$f } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
|
|
14
|
-
import { _ as _sfc_main$6 } from "../../Section.vue.es-
|
|
14
|
+
import { _ as _sfc_main$6 } from "../../Section.vue.es-DX_9ueCG.mjs";
|
|
15
15
|
import { g as getNameFromPricing } from "../../pricing-CJxS2hr2.mjs";
|
|
16
|
-
import { f as formatAmount, b as formatBillingPeriod } from "../../formatting.es-
|
|
17
|
-
import { _ as _sfc_main$a } from "../../PaymentMethod.vue.es-
|
|
18
|
-
import { M as Modal } from "../../Modal.vue.es-
|
|
19
|
-
import { c as createSubscriptionsService } from "../../subscriptions-
|
|
20
|
-
import { _ as _sfc_main$9 } from "../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-
|
|
16
|
+
import { f as formatAmount, b as formatBillingPeriod } from "../../formatting.es-eYgXv_AK.mjs";
|
|
17
|
+
import { _ as _sfc_main$a } from "../../PaymentMethod.vue.es-rv-pu1CC.mjs";
|
|
18
|
+
import { M as Modal } from "../../Modal.vue.es-qdUHDOnU.mjs";
|
|
19
|
+
import { c as createSubscriptionsService } from "../../subscriptions-DcMHBPVJ.mjs";
|
|
20
|
+
import { _ as _sfc_main$9 } from "../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-C5zB3CgZ.mjs";
|
|
21
21
|
import { g as getPaginatedFullList } from "../../api.es-C5pe8LUl.mjs";
|
|
22
22
|
import { i as isApiSuccessCollectionResponse } from "../../useIncrementalLoading-BK9pRYAU.mjs";
|
|
23
|
-
import { c as createPaymentMethodsService } from "../../paymentMethods-
|
|
23
|
+
import { c as createPaymentMethodsService } from "../../paymentMethods-DIV78w0O.mjs";
|
|
24
24
|
import { A as ApiStatus } from "../../error-DY_I2hPx.mjs";
|
|
25
|
-
import { u as useSubscription } from "../../useSubscription
|
|
26
|
-
import { u as useCustomer } from "../../useCustomer-
|
|
27
|
-
import { u as usePaymentMethods } from "../../usePaymentMethods-
|
|
28
|
-
import { u as useLoadInitialData } from "../../useLoadInitialData-
|
|
25
|
+
import { u as useSubscription } from "../../useSubscription-D1UKnZAx.mjs";
|
|
26
|
+
import { u as useCustomer } from "../../useCustomer-EDhref7T.mjs";
|
|
27
|
+
import { u as usePaymentMethods } from "../../usePaymentMethods-BJzoI8dZ.mjs";
|
|
28
|
+
import { u as useLoadInitialData } from "../../useLoadInitialData-Cp1OA8y6.mjs";
|
|
29
29
|
import { g as getComponentName } from "../../component-BG6DmXcy.mjs";
|
|
30
30
|
function useSubscriptionActions({
|
|
31
31
|
subscription
|
|
@@ -137,7 +137,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
137
137
|
createVNode(unref(_sfc_main$7), {
|
|
138
138
|
tag: "span",
|
|
139
139
|
variant: "body-xs",
|
|
140
|
-
|
|
140
|
+
color: "subtle",
|
|
141
141
|
class: "sv-enabled-pricings-list__item-group"
|
|
142
142
|
}, {
|
|
143
143
|
default: withCtx(() => [
|
|
@@ -160,7 +160,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
160
160
|
key: 0,
|
|
161
161
|
tag: "span",
|
|
162
162
|
variant: "body-sm",
|
|
163
|
-
|
|
163
|
+
color: "subtle",
|
|
164
164
|
class: "sv-enabled-pricings-list__item-price"
|
|
165
165
|
}, {
|
|
166
166
|
default: withCtx(() => [
|
|
@@ -170,8 +170,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
170
170
|
})) : createCommentVNode("", true)
|
|
171
171
|
]),
|
|
172
172
|
createVNode(unref(_sfc_main$8), {
|
|
173
|
-
|
|
174
|
-
color: "gray",
|
|
173
|
+
intent: "secondary",
|
|
175
174
|
class: "sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",
|
|
176
175
|
type: "button",
|
|
177
176
|
size: "xs",
|
|
@@ -469,7 +468,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
469
468
|
createElementVNode("div", _hoisted_1$1, [
|
|
470
469
|
createVNode(unref(_sfc_main$7), {
|
|
471
470
|
variant: "body-sm",
|
|
472
|
-
|
|
471
|
+
color: "subtle",
|
|
473
472
|
tag: "p",
|
|
474
473
|
class: "sv-subscription-cancellation-modal__explanation"
|
|
475
474
|
}, {
|
|
@@ -494,7 +493,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
494
493
|
createVNode(unref(_sfc_main$7), {
|
|
495
494
|
tag: "span",
|
|
496
495
|
variant: "body-xs",
|
|
497
|
-
|
|
496
|
+
color: "secondary",
|
|
498
497
|
weight: "semibold"
|
|
499
498
|
}, {
|
|
500
499
|
default: withCtx(() => [
|
|
@@ -509,7 +508,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
509
508
|
createVNode(unref(_sfc_main$7), {
|
|
510
509
|
tag: "span",
|
|
511
510
|
variant: "body-xs",
|
|
512
|
-
|
|
511
|
+
color: "secondary"
|
|
513
512
|
}, {
|
|
514
513
|
default: withCtx(() => [
|
|
515
514
|
createTextVNode(toDisplayString(unref(renewsOn)), 1)
|
|
@@ -621,8 +620,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
621
620
|
}),
|
|
622
621
|
unref(isRenewable) ? (openBlock(), createBlock(unref(_sfc_main$8), {
|
|
623
622
|
key: 0,
|
|
624
|
-
|
|
625
|
-
color: "gray",
|
|
623
|
+
intent: "secondary",
|
|
626
624
|
class: "sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",
|
|
627
625
|
type: "button",
|
|
628
626
|
onClick: unref(handleRenew)
|
|
@@ -638,8 +636,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
638
636
|
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
639
637
|
unref(isCancellable) ? (openBlock(), createBlock(unref(_sfc_main$8), {
|
|
640
638
|
key: 1,
|
|
641
|
-
|
|
642
|
-
color: "gray",
|
|
639
|
+
intent: "secondary",
|
|
643
640
|
class: "sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",
|
|
644
641
|
type: "button",
|
|
645
642
|
onClick: unref(handleCancel)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../Button.vue.es-aLcIdATK.js"),n=require("../../ErrorNotification.vue.es-BX3khKFc.js"),i=require("../../customElements-BTJzBHMy.js"),a=require("../../ContentWithAsideLayout-DHpnJfGA.js"),o=require("../../useActionDispatchProvider-Cz8xLLYA.js"),s=require("../../usePortal-fhri8neB.js"),r=require("../../useSubscription-V3KSuhOY.js"),c=require("../../useCustomer-DYCpgA-3.js"),l=require("../../usePaymentMethods-CFL3hFW_.js"),u=require("../../usePaymentMethodOptions-fBvWYynV.js"),d=require("../../useLoadInitialData-CiJldX50.js"),p=require("../../invoices-BiqM6xN6.js"),m=require("../../pricingPlanSchedule-B9HFiXy-.js"),g=require("../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Jk34S5B7.js"),v=require("../../Divider.vue.es-ClFG8QtG.js"),_=require("../../AddPaymentMethodPane.vue_vue_type_script_setup_true_lang--AVI4Q4E.js"),h=require("../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js"),f=require("../../Section.vue.es-tLYXp-tF.js"),b=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),y=require("../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js"),w=require("../../Modal.vue.es-CX5geho3.js"),S=require("../../component-hDuDTBt5.js");const M={class:"sv-subscription-management-form__body grid grid-cols-1 gap-4"},P=e.defineComponent({__name:"SubscriptionManagementForm",props:e.mergeModels({pricingGroup:{type:Object},paymentMethods:{type:Array},paymentMethodOptions:{type:Array},billingPeriod:{type:Object},currency:{type:String},disabled:{type:Boolean}},{enabledPricingIds:{required:!0},enabledPricingIdsModifiers:{},paymentMethodId:{},paymentMethodIdModifiers:{}}),emits:e.mergeModels(["add-payment-method"],["update:enabledPricingIds","update:paymentMethodId"]),setup(t,{emit:n}){const a=t,o=n,s=e.useModel(t,"enabledPricingIds"),r=e.useModel(t,"paymentMethodId"),{$t:c}=i.useIntl(),l=e=>{const t=e?Date.parse(e):NaN;return Number.isFinite(t)?t:0},u=e.computed(()=>[...a.paymentMethods??[]].sort((e,t)=>l(t.created_at)-l(e.created_at)));return e.watch(()=>a.paymentMethods,(e,t)=>{var n;const i=null==e?void 0:e.find(({id:e})=>!(null==t?void 0:t.some(t=>t.id===e)));i&&(null==t?void 0:t.length)?r.value=i.id:(null==e?void 0:e.some(({id:e})=>e===r.value))||(r.value=null==(n=(null==e?void 0:e.find(({is_default:e})=>e))??u.value[0])?void 0:n.id)},{immediate:!0}),(n,i)=>(e.openBlock(),e.createElementBlock("form",{class:"sv-subscription-management-form",onSubmit:i[3]||(i[3]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("div",M,[e.createVNode(g._sfc_main,{modelValue:s.value,"onUpdate:modelValue":i[0]||(i[0]=e=>s.value=e),class:"sv-subscription-management-form__pricing-group","group-name":t.pricingGroup.name,pricings:t.pricingGroup.pricings,"billing-period":t.billingPeriod,currency:t.currency},null,8,["modelValue","group-name","pricings","billing-period","currency"]),e.createElementVNode("div",null,[e.createVNode(e.unref(v._sfc_main),{spacing:"xs"})]),e.createVNode(_._sfc_main,{modelValue:r.value,"onUpdate:modelValue":i[1]||(i[1]=e=>r.value=e),class:"sv-subscription-management-form__payment-methods","payment-methods":u.value,"payment-method-options":t.paymentMethodOptions,required:"",disabled:t.disabled,label:e.unref(c)({defaultMessage:"Payment method",id:"subscription_management.payment_method_selector.label",description:"Label above the payment method that pays for the subscription change"}),onAddPaymentMethod:i[2]||(i[2]=e=>o("add-payment-method"))},null,8,["modelValue","payment-methods","payment-method-options","disabled","label"])])],32))}}),k=e.defineComponent({__name:"TranslationOverride",props:{messages:{type:Object}},setup(t){const n=t,a=e.inject(i.TRANSLATION_SETTINGS_KEY,void 0),o=e.computed(()=>({...null==a?void 0:a.messages.value,...n.messages}));return(t,n)=>{var s,r;return e.openBlock(),e.createBlock(e.unref(i._sfc_main$2),{locale:null==(s=e.unref(a))?void 0:s.locale.value,"date-locale":null==(r=e.unref(a))?void 0:r.dateLocale.value,messages:o.value,"show-timezones":!1},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["locale","date-locale","messages"])}}}),I=e.defineComponent({__name:"SubscriptionManagementSummary",props:{invoice:{type:Object},isPending:{type:Boolean},hasError:{type:Boolean}},setup(t){const{$t:a}=i.useIntl(),o=e.computed(()=>({"invoice_preview.total_due_today_heading":a({defaultMessage:"Total due",id:"subscription_management.summary.total_due_heading",description:'Heading above the total of the invoice previewing a subscription change, replacing the shared preview’s "Total due today"'})}));return(s,r)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{class:"sv-subscription-management-summary",title:e.unref(a)({defaultMessage:"Order summary",id:"subscription_management.summary.title",description:"Title of the block previewing what a subscription change is invoiced for"})},{default:e.withCtx(()=>[t.hasError?(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{key:0,class:"sv-subscription-management-summary__error sv-error",title:e.unref(a)({defaultMessage:"Unable to calculate the total. Please try again.",id:"subscription_management.summary.error",description:"Error shown when the invoice preview for a subscription change cannot be loaded"})},null,8,["title"])):t.isPending||!t.invoice?(e.openBlock(),e.createBlock(b._sfc_main,{key:1,variant:"section",class:"sv-subscription-management-summary__skeleton min-h-[120px]"},{default:e.withCtx(()=>[t.isPending?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:0,variant:"body-sm",shade:"lighter",tag:"div",class:"sv-subscription-management-summary__empty-state"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Select your plan to see what it costs.",id:"subscription_management.summary.empty_state",description:"Shown in the order summary before a plan has been picked to preview"})),1)]),_:1}))]),_:1})):(e.openBlock(),e.createBlock(k,{key:2,messages:o.value},{default:e.withCtx(()=>[e.createVNode(e.unref(h._sfc_main$2),{class:"sv-subscription-management-summary__invoice",invoice:t.invoice,"is-customer-facing":""},null,8,["invoice"])]),_:1},8,["messages"]))]),_:1},8,["title"]))}}),B={class:"sv-subscription-management-success grid grid-cols-1 gap-4"},C={class:"sv-subscription-management-success__message"},j=e.defineComponent({__name:"SubscriptionManagementSuccess",props:{pricingGroupName:{type:String}},setup(t){const n=t,{$t:a}=i.useIntl(),o=e.computed(()=>a({defaultMessage:"Subscription updated",description:"Title shown on the manage subscription screen once the change is committed",id:"subscription_management.success.title"})),s=e.computed(()=>n.pricingGroupName?a({defaultMessage:"Your {subject} has been changed. Please be aware that it can take some time to reflect this change in your subscription.",description:"Confirmation of the pricing group a committed subscription change applied to",id:"subscription_management.success.message"},{subject:n.pricingGroupName}):a({defaultMessage:"Your subscription has been changed. Please be aware that it can take some time to reflect this change in your subscription.",description:"Confirmation of a committed subscription change when the pricing group is not known",id:"subscription_management.success.message_generic"}));return(t,n)=>(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(y._sfc_main,{status:"success",title:o.value},{default:e.withCtx(()=>[e.createElementVNode("span",C,e.toDisplayString(s.value),1)]),_:1},8,["title"])]))}}),N=e.defineComponent({__name:"AddPaymentMethodModal",props:{showModal:{type:Boolean},customer:{type:Object},paymentMethodOptions:{type:Array},isLoading:{type:Boolean}},emits:["success","failure","close"],setup(t,{emit:n}){const a=n,{$t:o}=i.useIntl(),s=e.ref(),r=e.computed(()=>{var e;return!!(null==(e=s.value)?void 0:e.isSaving)}),c=()=>{var e;null==(e=s.value)||e.submit()};return(n,i)=>(e.openBlock(),e.createBlock(e.unref(w.Modal),{"no-click-away":"",size:"lg","show-modal":t.showModal,"is-loading":r.value,title:e.unref(o)({defaultMessage:"Add payment method",id:"add_payment_method_modal.title",description:"Title of the modal for adding a payment method"}),"sub-title":e.unref(o)({defaultMessage:"Add a new payment method to pay with.",id:"add_payment_method_modal.subtitle",description:"Subtitle of the modal for adding a payment method"}),"confirm-button-text":e.unref(o)({defaultMessage:"Save payment method",id:"add_payment_method_modal.confirm_button.label",description:"Label of the button that stores the payment method being added"}),"cancel-button-text":e.unref(o)({defaultMessage:"Cancel",id:"add_payment_method_modal.cancel_button.label",description:"Label of the button that abandons adding a payment method"}),onConfirm:c,onClose:i[2]||(i[2]=e=>a("close"))},{body:e.withCtx(()=>[e.createVNode(_._sfc_main$1,{ref_key:"addPaymentMethodRef",ref:s,class:"sv-add-payment-method-modal sv-add-payment-method-modal__form",customer:t.customer,"payment-method-options":t.paymentMethodOptions,"is-loading":t.isLoading,"is-active":t.showModal,onSuccess:i[0]||(i[0]=e=>a("success")),onFailure:i[1]||(i[1]=e=>a("failure",e))},null,8,["customer","payment-method-options","is-loading","is-active"])]),_:1},8,["show-modal","is-loading","title","sub-title","confirm-button-text","cancel-button-text"]))}}),x={class:"sv-subscription-management__header"},V={class:"flex flex-col gap-2"},O=e.defineComponent({__name:"SubscriptionManagement",props:{configuration:{type:Object}},setup(v){const _=v,{$t:h}=i.useIntl(),f=s.usePortal(),y=i.useLogger(),{dispatchAction:w}=o.useActionDispatchProvider(),{createPricingPlanSchedule:S}=function(){const e=i.createRequestService(),t=i.useConfig();return{getOnDemandPricingItems:function({scheduleId:n}){return e({url:`${t.apiUrls.config}/portal/pricing-plan-schedules/${n}/on-demand-pricing-items`})},createPricingPlanSchedule:function({pricingPlanSubscriptionId:n,enabledPricings:i}){return e({url:`${t.apiUrls.config}/portal/pricing-plan-schedules`,options:{method:"POST"},data:{pricing_plan_subscription_id:n,enabled_pricings:i,start_at:(new Date).toJSON()}})}}}(),{subscription:M,get:k}=r.useSubscription({subscriptionId:_.configuration.subscriptionId}),{items:B,fetchAll:C}=l.usePaymentMethods({customerId:f.value.customer_id}),{customer:O,get:E}=c.useCustomer({customerId:f.value.customer_id}),{paymentMethodOptions:q,get:A}=u.usePaymentMethodOptions(),{isLoading:L}=d.useLoadInitialData(k(),C(),E.execute(),A({customerId:f.value.customer_id})),T=e.ref(!1),D=async()=>{await C(),T.value=!1},$=e.computed(()=>{var e;return m.getActiveDefaultScheduleInfo((null==(e=M.value)?void 0:e.pricing_plan_schedule_infos)??[])}),F=e.computed(()=>{var e;const t=$.value;if(!t)return;const{enabledPricingId:n}=_.configuration;return(n?[n]:((null==(e=t.pricing_plan_schedule)?void 0:e.enabled_pricings)??[]).map(({pricing_id:e})=>e)).map(e=>m.getPricingGroupByPricingId({pricingPlanScheduleInfo:t,pricingId:e})).find(e=>Boolean(e))}),U=e.computed(()=>{var e;return h({defaultMessage:"Manage {subject}",id:"subscription_management.title",description:"Title for the manage subscription page, naming the pricing group being changed"},{subject:(null==(e=F.value)?void 0:e.name)||h({defaultMessage:"subscription",id:"subscription_management.title.default_subject",description:'Stands in for the pricing group name in the manage subscription title when no group is known, e.g. "Manage subscription"'})})}),G=e.ref([]),z=e.ref();e.watch([$,F],([e,t])=>{var n;const i=((null==(n=null==e?void 0:e.pricing_plan_schedule)?void 0:n.enabled_pricings)??[]).map(({pricing_id:e})=>e),{enabledPricingId:a}=_.configuration,o=((null==t?void 0:t.pricings)??[]).map(({id:e})=>e);G.value=a&&o.includes(a)?[...i.filter(e=>!o.includes(e)),a]:i},{immediate:!0});const{invoice:R,isPending:Y,error:W,load:K}=function(){const{getInvoicePreview:t}=p.createInvoicesService(),n=i.useLogger(),a=e.ref(),o=e.ref(!1),s=e.ref(),r=i.createLatestGuard();return{invoice:a,isPending:o,error:s,load:async({subscription:e,enabledPricingIds:i})=>{const c=m.getScheduleCustomizations({enabledPricings:i.map(e=>({pricing_id:e})),pricingPlanScheduleInfos:e.pricing_plan_schedule_infos});if(!c)return void(a.value=void 0);const l=r();o.value=!0,s.value=void 0;try{const n=await t({forExistingSubscription:!0,pricingPlanSubscriptionId:e.id,customizations:c});if(!l())return;a.value=n.invoice}catch(W){if(!l())return;n.error("INVOICE_PREVIEW_FAILED","Failed to preview the subscription upgrade",{},W),s.value=W,a.value=void 0}finally{l()&&(o.value=!1)}}}}();e.watch([G,M],([e,t])=>{t&&0!==e.length&&K({subscription:t,enabledPricingIds:e})},{immediate:!0});const H=e.ref(!1),J=e.ref(),Z=e.ref(!1),Q=e.computed(()=>!L.value&&!H.value&&G.value.length>0&&Boolean(M.value)&&Boolean(z.value)),X=async()=>{if(Q.value&&M.value){H.value=!0,J.value=void 0;try{await S({pricingPlanSubscriptionId:M.value.id,enabledPricings:G.value.map(e=>({pricing_id:e}))}),Z.value=!0}catch(e){y.error("SUBSCRIPTION_UPDATE_FAILED","Failed to start a new pricing plan schedule",{},e),J.value=h({defaultMessage:"Something went wrong. Please try again.",id:"subscription_management.update_error",description:"Error shown when committing a subscription change fails"})}finally{H.value=!1}}},ee=e.computed(()=>{var e,t,n;return(null==(t=null==(e=$.value)?void 0:e.pricing_plan_schedule)?void 0:t.billing_period)??(null==(n=M.value)?void 0:n.billing_period)});return(o,s)=>(e.openBlock(),e.createBlock(e.unref(a.ContentWithAsideLayout),{class:"sv-subscription-management sv-root sv-screen"},{header:e.withCtx(()=>[e.createElementVNode("div",x,[e.createVNode(e.unref(i._sfc_main),{variant:"heading-2",tag:"h1",class:"sv-subscription-management__title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(U.value),1)]),_:1})])]),content:e.withCtx(()=>{var t,n;return[Z.value?(e.openBlock(),e.createBlock(j,{key:0,class:"sv-subscription-management__success","pricing-group-name":null==(t=F.value)?void 0:t.name},null,8,["pricing-group-name"])):e.unref(L)?(e.openBlock(),e.createBlock(b._sfc_main,{key:1,variant:"section",class:"min-h-[220px]"})):F.value&&ee.value?(e.openBlock(),e.createBlock(P,{key:2,"enabled-pricing-ids":G.value,"onUpdate:enabledPricingIds":s[0]||(s[0]=e=>G.value=e),"payment-method-id":z.value,"onUpdate:paymentMethodId":s[1]||(s[1]=e=>z.value=e),class:"sv-subscription-management__form","pricing-group":F.value,"payment-methods":e.unref(B),"payment-method-options":e.unref(q),"billing-period":ee.value,currency:null==(n=e.unref(M))?void 0:n.billing_currency,onAddPaymentMethod:s[2]||(s[2]=e=>T.value=!0)},null,8,["enabled-pricing-ids","payment-method-id","pricing-group","payment-methods","payment-method-options","billing-period","currency"])):e.createCommentVNode("",!0),e.createVNode(N,{"show-modal":T.value,customer:e.unref(O),"payment-method-options":e.unref(q),onSuccess:D,onClose:s[3]||(s[3]=e=>T.value=!1)},null,8,["show-modal","customer","payment-method-options"])]}),aside:e.withCtx(()=>[Z.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:0,size:"lg",class:"sv-action sv-action--primary sv-action--full-width sv-subscription-management__done w-full",type:"button",onClick:s[4]||(s[4]=t=>e.unref(w)({action:"navigate-to-customer-overview"}))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)({defaultMessage:"Done",id:"subscription_management.done_button.label",description:"Label of the button that leaves the manage subscription screen once the change is committed"})),1)]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(I,{class:"sv-subscription-management__summary",invoice:e.unref(R),"is-pending":e.unref(L)||e.unref(Y),"has-error":Boolean(e.unref(W))},null,8,["invoice","is-pending","has-error"]),J.value?(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{key:0,class:"sv-subscription-management__update-error sv-error",title:J.value},null,8,["title"])):e.createCommentVNode("",!0),e.createElementVNode("div",V,[e.createVNode(e.unref(t._sfc_main$1),{size:"lg",class:"sv-action sv-action--primary sv-action--full-width sv-subscription-management__update w-full",type:"button",disabled:!Q.value,loading:H.value,onClick:X},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)({defaultMessage:"Update subscription",id:"subscription_management.update_button.label",description:"Label of the button that commits the subscription change"})),1)]),_:1},8,["disabled","loading"]),e.createVNode(g._sfc_main$1,{class:"sv-subscription-management__kpi","payment-method-options":e.unref(q)},null,8,["payment-method-options"])])],64))]),_:1}))}}),E=e.defineComponent({__name:"SubscriptionManagement.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=S.getComponentName("subscription-management");return(a,o)=>(e.openBlock(),e.createBlock(e.unref(i._sfc_main$1),{entry:a.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:o[0]||(o[0]=e=>a.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(O,{configuration:t.configuration},null,8,["configuration"])]),_:1},8,["entry","component-name"]))}}),{define:q}=i.createSolvimonElement(E,"subscription-management");exports.defineSolvimonSubscriptionManagement=q;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../Button.vue.es-O8mNivLL.js"),n=require("../../ErrorNotification.vue.es-CaEFTi2k.js"),i=require("../../customElements-DD7bpqkx.js"),a=require("../../ContentWithAsideLayout-DHpnJfGA.js"),o=require("../../useActionDispatchProvider-Cv9amjTf.js"),s=require("../../usePortal-BjGoSeLy.js"),r=require("../../useSubscription-DZfRHbL7.js"),c=require("../../useCustomer-DLHOs4BR.js"),l=require("../../usePaymentMethods-DvEnJWmB.js"),u=require("../../usePaymentMethodOptions--8QpMvNm.js"),d=require("../../useLoadInitialData-u7IyXqb6.js"),p=require("../../invoices-BAoh6X2a.js"),m=require("../../pricingPlanSchedule-B9HFiXy-.js"),g=require("../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CQAkPfJz.js"),v=require("../../Divider.vue.es-ClFG8QtG.js"),_=require("../../AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-kmam2c7P.js"),h=require("../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DkIK-lID.js"),f=require("../../Section.vue.es-CAJvEDn6.js"),b=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),y=require("../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-mKNNYnMU.js"),w=require("../../Modal.vue.es-B_1aqm_m.js"),S=require("../../component-hDuDTBt5.js");const M={class:"sv-subscription-management-form__body grid grid-cols-1 gap-4"},P=e.defineComponent({__name:"SubscriptionManagementForm",props:e.mergeModels({pricingGroup:{type:Object},paymentMethods:{type:Array},paymentMethodOptions:{type:Array},billingPeriod:{type:Object},currency:{type:String},disabled:{type:Boolean}},{enabledPricingIds:{required:!0},enabledPricingIdsModifiers:{},paymentMethodId:{},paymentMethodIdModifiers:{}}),emits:e.mergeModels(["add-payment-method"],["update:enabledPricingIds","update:paymentMethodId"]),setup(t,{emit:n}){const a=t,o=n,s=e.useModel(t,"enabledPricingIds"),r=e.useModel(t,"paymentMethodId"),{$t:c}=i.useIntl(),l=e=>{const t=e?Date.parse(e):NaN;return Number.isFinite(t)?t:0},u=e.computed(()=>[...a.paymentMethods??[]].sort((e,t)=>l(t.created_at)-l(e.created_at)));return e.watch(()=>a.paymentMethods,(e,t)=>{var n;const i=null==e?void 0:e.find(({id:e})=>!(null==t?void 0:t.some(t=>t.id===e)));i&&(null==t?void 0:t.length)?r.value=i.id:(null==e?void 0:e.some(({id:e})=>e===r.value))||(r.value=null==(n=(null==e?void 0:e.find(({is_default:e})=>e))??u.value[0])?void 0:n.id)},{immediate:!0}),(n,i)=>(e.openBlock(),e.createElementBlock("form",{class:"sv-subscription-management-form",onSubmit:i[3]||(i[3]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("div",M,[e.createVNode(g._sfc_main,{modelValue:s.value,"onUpdate:modelValue":i[0]||(i[0]=e=>s.value=e),class:"sv-subscription-management-form__pricing-group","group-name":t.pricingGroup.name,pricings:t.pricingGroup.pricings,"billing-period":t.billingPeriod,currency:t.currency},null,8,["modelValue","group-name","pricings","billing-period","currency"]),e.createElementVNode("div",null,[e.createVNode(e.unref(v._sfc_main),{spacing:"xs"})]),e.createVNode(_._sfc_main,{modelValue:r.value,"onUpdate:modelValue":i[1]||(i[1]=e=>r.value=e),class:"sv-subscription-management-form__payment-methods","payment-methods":u.value,"payment-method-options":t.paymentMethodOptions,required:"",disabled:t.disabled,label:e.unref(c)({defaultMessage:"Payment method",id:"subscription_management.payment_method_selector.label",description:"Label above the payment method that pays for the subscription change"}),onAddPaymentMethod:i[2]||(i[2]=e=>o("add-payment-method"))},null,8,["modelValue","payment-methods","payment-method-options","disabled","label"])])],32))}}),k=e.defineComponent({__name:"TranslationOverride",props:{messages:{type:Object}},setup(t){const n=t,a=e.inject(i.TRANSLATION_SETTINGS_KEY,void 0),o=e.computed(()=>({...null==a?void 0:a.messages.value,...n.messages}));return(t,n)=>{var s,r;return e.openBlock(),e.createBlock(e.unref(i._sfc_main$2),{locale:null==(s=e.unref(a))?void 0:s.locale.value,"date-locale":null==(r=e.unref(a))?void 0:r.dateLocale.value,messages:o.value,"show-timezones":!1},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["locale","date-locale","messages"])}}}),I=e.defineComponent({__name:"SubscriptionManagementSummary",props:{invoice:{type:Object},isPending:{type:Boolean},hasError:{type:Boolean}},setup(t){const{$t:a}=i.useIntl(),o=e.computed(()=>({"invoice_preview.total_due_today_heading":a({defaultMessage:"Total due",id:"subscription_management.summary.total_due_heading",description:'Heading above the total of the invoice previewing a subscription change, replacing the shared preview’s "Total due today"'})}));return(s,r)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{class:"sv-subscription-management-summary",title:e.unref(a)({defaultMessage:"Order summary",id:"subscription_management.summary.title",description:"Title of the block previewing what a subscription change is invoiced for"})},{default:e.withCtx(()=>[t.hasError?(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{key:0,class:"sv-subscription-management-summary__error sv-error",title:e.unref(a)({defaultMessage:"Unable to calculate the total. Please try again.",id:"subscription_management.summary.error",description:"Error shown when the invoice preview for a subscription change cannot be loaded"})},null,8,["title"])):t.isPending||!t.invoice?(e.openBlock(),e.createBlock(b._sfc_main,{key:1,variant:"section",class:"sv-subscription-management-summary__skeleton min-h-[120px]"},{default:e.withCtx(()=>[t.isPending?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:0,variant:"body-sm",color:"subtle",tag:"div",class:"sv-subscription-management-summary__empty-state"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Select your plan to see what it costs.",id:"subscription_management.summary.empty_state",description:"Shown in the order summary before a plan has been picked to preview"})),1)]),_:1}))]),_:1})):(e.openBlock(),e.createBlock(k,{key:2,messages:o.value},{default:e.withCtx(()=>[e.createVNode(e.unref(h._sfc_main$2),{class:"sv-subscription-management-summary__invoice",invoice:t.invoice,"is-customer-facing":""},null,8,["invoice"])]),_:1},8,["messages"]))]),_:1},8,["title"]))}}),B={class:"sv-subscription-management-success grid grid-cols-1 gap-4"},C={class:"sv-subscription-management-success__message"},j=e.defineComponent({__name:"SubscriptionManagementSuccess",props:{pricingGroupName:{type:String}},setup(t){const n=t,{$t:a}=i.useIntl(),o=e.computed(()=>a({defaultMessage:"Subscription updated",description:"Title shown on the manage subscription screen once the change is committed",id:"subscription_management.success.title"})),s=e.computed(()=>n.pricingGroupName?a({defaultMessage:"Your {subject} has been changed. Please be aware that it can take some time to reflect this change in your subscription.",description:"Confirmation of the pricing group a committed subscription change applied to",id:"subscription_management.success.message"},{subject:n.pricingGroupName}):a({defaultMessage:"Your subscription has been changed. Please be aware that it can take some time to reflect this change in your subscription.",description:"Confirmation of a committed subscription change when the pricing group is not known",id:"subscription_management.success.message_generic"}));return(t,n)=>(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(y._sfc_main,{status:"success",title:o.value},{default:e.withCtx(()=>[e.createElementVNode("span",C,e.toDisplayString(s.value),1)]),_:1},8,["title"])]))}}),N=e.defineComponent({__name:"AddPaymentMethodModal",props:{showModal:{type:Boolean},customer:{type:Object},paymentMethodOptions:{type:Array},isLoading:{type:Boolean}},emits:["success","failure","close"],setup(t,{emit:n}){const a=n,{$t:o}=i.useIntl(),s=e.ref(),r=e.computed(()=>{var e;return!!(null==(e=s.value)?void 0:e.isSaving)}),c=()=>{var e;null==(e=s.value)||e.submit()};return(n,i)=>(e.openBlock(),e.createBlock(e.unref(w.Modal),{"no-click-away":"",size:"lg","show-modal":t.showModal,"is-loading":r.value,title:e.unref(o)({defaultMessage:"Add payment method",id:"add_payment_method_modal.title",description:"Title of the modal for adding a payment method"}),"sub-title":e.unref(o)({defaultMessage:"Add a new payment method to pay with.",id:"add_payment_method_modal.subtitle",description:"Subtitle of the modal for adding a payment method"}),"confirm-button-text":e.unref(o)({defaultMessage:"Save payment method",id:"add_payment_method_modal.confirm_button.label",description:"Label of the button that stores the payment method being added"}),"cancel-button-text":e.unref(o)({defaultMessage:"Cancel",id:"add_payment_method_modal.cancel_button.label",description:"Label of the button that abandons adding a payment method"}),onConfirm:c,onClose:i[2]||(i[2]=e=>a("close"))},{body:e.withCtx(()=>[e.createVNode(_._sfc_main$1,{ref_key:"addPaymentMethodRef",ref:s,class:"sv-add-payment-method-modal sv-add-payment-method-modal__form",customer:t.customer,"payment-method-options":t.paymentMethodOptions,"is-loading":t.isLoading,"is-active":t.showModal,onSuccess:i[0]||(i[0]=e=>a("success")),onFailure:i[1]||(i[1]=e=>a("failure",e))},null,8,["customer","payment-method-options","is-loading","is-active"])]),_:1},8,["show-modal","is-loading","title","sub-title","confirm-button-text","cancel-button-text"]))}}),x={class:"sv-subscription-management__header"},V={class:"flex flex-col gap-2"},O=e.defineComponent({__name:"SubscriptionManagement",props:{configuration:{type:Object}},setup(v){const _=v,{$t:h}=i.useIntl(),f=s.usePortal(),y=i.useLogger(),{dispatchAction:w}=o.useActionDispatchProvider(),{createPricingPlanSchedule:S}=function(){const e=i.createRequestService(),t=i.useConfig();return{getOnDemandPricingItems:function({scheduleId:n}){return e({url:`${t.apiUrls.config}/portal/pricing-plan-schedules/${n}/on-demand-pricing-items`})},createPricingPlanSchedule:function({pricingPlanSubscriptionId:n,enabledPricings:i}){return e({url:`${t.apiUrls.config}/portal/pricing-plan-schedules`,options:{method:"POST"},data:{pricing_plan_subscription_id:n,enabled_pricings:i,start_at:(new Date).toJSON()}})}}}(),{subscription:M,get:k}=r.useSubscription({subscriptionId:_.configuration.subscriptionId}),{items:B,fetchAll:C}=l.usePaymentMethods({customerId:f.value.customer_id}),{customer:O,get:E}=c.useCustomer({customerId:f.value.customer_id}),{paymentMethodOptions:q,get:A}=u.usePaymentMethodOptions(),{isLoading:L}=d.useLoadInitialData(k(),C(),E.execute(),A({customerId:f.value.customer_id})),T=e.ref(!1),D=async()=>{await C(),T.value=!1},$=e.computed(()=>{var e;return m.getActiveDefaultScheduleInfo((null==(e=M.value)?void 0:e.pricing_plan_schedule_infos)??[])}),F=e.computed(()=>{var e;const t=$.value;if(!t)return;const{enabledPricingId:n}=_.configuration;return(n?[n]:((null==(e=t.pricing_plan_schedule)?void 0:e.enabled_pricings)??[]).map(({pricing_id:e})=>e)).map(e=>m.getPricingGroupByPricingId({pricingPlanScheduleInfo:t,pricingId:e})).find(e=>Boolean(e))}),U=e.computed(()=>{var e;return h({defaultMessage:"Manage {subject}",id:"subscription_management.title",description:"Title for the manage subscription page, naming the pricing group being changed"},{subject:(null==(e=F.value)?void 0:e.name)||h({defaultMessage:"subscription",id:"subscription_management.title.default_subject",description:'Stands in for the pricing group name in the manage subscription title when no group is known, e.g. "Manage subscription"'})})}),G=e.ref([]),z=e.ref();e.watch([$,F],([e,t])=>{var n;const i=((null==(n=null==e?void 0:e.pricing_plan_schedule)?void 0:n.enabled_pricings)??[]).map(({pricing_id:e})=>e),{enabledPricingId:a}=_.configuration,o=((null==t?void 0:t.pricings)??[]).map(({id:e})=>e);G.value=a&&o.includes(a)?[...i.filter(e=>!o.includes(e)),a]:i},{immediate:!0});const{invoice:R,isPending:K,error:W,load:Y}=function(){const{getInvoicePreview:t}=p.createInvoicesService(),n=i.useLogger(),a=e.ref(),o=e.ref(!1),s=e.ref(),r=i.createLatestGuard();return{invoice:a,isPending:o,error:s,load:async({subscription:e,enabledPricingIds:i})=>{const c=m.getScheduleCustomizations({enabledPricings:i.map(e=>({pricing_id:e})),pricingPlanScheduleInfos:e.pricing_plan_schedule_infos});if(!c)return void(a.value=void 0);const l=r();o.value=!0,s.value=void 0;try{const n=await t({forExistingSubscription:!0,pricingPlanSubscriptionId:e.id,customizations:c});if(!l())return;a.value=n.invoice}catch(W){if(!l())return;n.error("INVOICE_PREVIEW_FAILED","Failed to preview the subscription upgrade",{},W),s.value=W,a.value=void 0}finally{l()&&(o.value=!1)}}}}();e.watch([G,M],([e,t])=>{t&&0!==e.length&&Y({subscription:t,enabledPricingIds:e})},{immediate:!0});const J=e.ref(!1),H=e.ref(),Q=e.ref(!1),X=e.computed(()=>!L.value&&!J.value&&G.value.length>0&&Boolean(M.value)&&Boolean(z.value)),Z=async()=>{if(X.value&&M.value){J.value=!0,H.value=void 0;try{await S({pricingPlanSubscriptionId:M.value.id,enabledPricings:G.value.map(e=>({pricing_id:e}))}),Q.value=!0}catch(e){y.error("SUBSCRIPTION_UPDATE_FAILED","Failed to start a new pricing plan schedule",{},e),H.value=h({defaultMessage:"Something went wrong. Please try again.",id:"subscription_management.update_error",description:"Error shown when committing a subscription change fails"})}finally{J.value=!1}}},ee=e.computed(()=>{var e,t,n;return(null==(t=null==(e=$.value)?void 0:e.pricing_plan_schedule)?void 0:t.billing_period)??(null==(n=M.value)?void 0:n.billing_period)});return(o,s)=>(e.openBlock(),e.createBlock(e.unref(a.ContentWithAsideLayout),{class:"sv-subscription-management sv-root sv-screen"},{header:e.withCtx(()=>[e.createElementVNode("div",x,[e.createVNode(e.unref(i._sfc_main),{variant:"heading-2",tag:"h1",class:"sv-subscription-management__title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(U.value),1)]),_:1})])]),content:e.withCtx(()=>{var t,n;return[Q.value?(e.openBlock(),e.createBlock(j,{key:0,class:"sv-subscription-management__success","pricing-group-name":null==(t=F.value)?void 0:t.name},null,8,["pricing-group-name"])):e.unref(L)?(e.openBlock(),e.createBlock(b._sfc_main,{key:1,variant:"section",class:"min-h-[220px]"})):F.value&&ee.value?(e.openBlock(),e.createBlock(P,{key:2,"enabled-pricing-ids":G.value,"onUpdate:enabledPricingIds":s[0]||(s[0]=e=>G.value=e),"payment-method-id":z.value,"onUpdate:paymentMethodId":s[1]||(s[1]=e=>z.value=e),class:"sv-subscription-management__form","pricing-group":F.value,"payment-methods":e.unref(B),"payment-method-options":e.unref(q),"billing-period":ee.value,currency:null==(n=e.unref(M))?void 0:n.billing_currency,onAddPaymentMethod:s[2]||(s[2]=e=>T.value=!0)},null,8,["enabled-pricing-ids","payment-method-id","pricing-group","payment-methods","payment-method-options","billing-period","currency"])):e.createCommentVNode("",!0),e.createVNode(N,{"show-modal":T.value,customer:e.unref(O),"payment-method-options":e.unref(q),onSuccess:D,onClose:s[3]||(s[3]=e=>T.value=!1)},null,8,["show-modal","customer","payment-method-options"])]}),aside:e.withCtx(()=>[Q.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:0,size:"lg",class:"sv-action sv-action--primary sv-action--full-width sv-subscription-management__done w-full",type:"button",onClick:s[4]||(s[4]=t=>e.unref(w)({action:"navigate-to-customer-overview"}))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)({defaultMessage:"Done",id:"subscription_management.done_button.label",description:"Label of the button that leaves the manage subscription screen once the change is committed"})),1)]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(I,{class:"sv-subscription-management__summary",invoice:e.unref(R),"is-pending":e.unref(L)||e.unref(K),"has-error":Boolean(e.unref(W))},null,8,["invoice","is-pending","has-error"]),H.value?(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{key:0,class:"sv-subscription-management__update-error sv-error",title:H.value},null,8,["title"])):e.createCommentVNode("",!0),e.createElementVNode("div",V,[e.createVNode(e.unref(t._sfc_main$1),{size:"lg",class:"sv-action sv-action--primary sv-action--full-width sv-subscription-management__update w-full",type:"button",disabled:!X.value,loading:J.value,onClick:Z},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)({defaultMessage:"Update subscription",id:"subscription_management.update_button.label",description:"Label of the button that commits the subscription change"})),1)]),_:1},8,["disabled","loading"]),e.createVNode(g._sfc_main$1,{class:"sv-subscription-management__kpi","payment-method-options":e.unref(q)},null,8,["payment-method-options"])])],64))]),_:1}))}}),E=e.defineComponent({__name:"SubscriptionManagement.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=S.getComponentName("subscription-management");return(a,o)=>(e.openBlock(),e.createBlock(e.unref(i._sfc_main$1),{entry:a.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:o[0]||(o[0]=e=>a.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(O,{configuration:t.configuration},null,8,["configuration"])]),_:1},8,["entry","component-name"]))}}),{define:q}=i.createSolvimonElement(E,"subscription-management");exports.defineSolvimonSubscriptionManagement=q;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { ref, defineComponent, useModel, computed, watch, openBlock, createElementBlock, withModifiers, createElementVNode, createVNode, unref, mergeModels, inject, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, Fragment } from "vue";
|
|
2
|
-
import { a as _sfc_main$i } from "../../Button.vue.es-
|
|
3
|
-
import { _ as _sfc_main$c } from "../../ErrorNotification.vue.es-
|
|
4
|
-
import { b as useLogger, g as createLatestGuard, c as createRequestService, a as useConfig, u as useIntl, h as TRANSLATION_SETTINGS_KEY, i as _sfc_main$a, _ as _sfc_main$e, d as _sfc_main$k, e as createSolvimonElement } from "../../customElements-
|
|
2
|
+
import { a as _sfc_main$i } from "../../Button.vue.es-Cm9pLU9i.mjs";
|
|
3
|
+
import { _ as _sfc_main$c } from "../../ErrorNotification.vue.es-CHyVTBGs.mjs";
|
|
4
|
+
import { b as useLogger, g as createLatestGuard, c as createRequestService, a as useConfig, u as useIntl, h as TRANSLATION_SETTINGS_KEY, i as _sfc_main$a, _ as _sfc_main$e, d as _sfc_main$k, e as createSolvimonElement } from "../../customElements-B-89a5oH.mjs";
|
|
5
5
|
import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
|
|
6
|
-
import { u as useActionDispatchProvider } from "../../useActionDispatchProvider-
|
|
7
|
-
import { u as usePortal } from "../../usePortal-
|
|
8
|
-
import { u as useSubscription } from "../../useSubscription
|
|
9
|
-
import { u as useCustomer } from "../../useCustomer-
|
|
10
|
-
import { u as usePaymentMethods } from "../../usePaymentMethods-
|
|
11
|
-
import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-
|
|
12
|
-
import { u as useLoadInitialData } from "../../useLoadInitialData-
|
|
13
|
-
import { c as createInvoicesService } from "../../invoices-
|
|
6
|
+
import { u as useActionDispatchProvider } from "../../useActionDispatchProvider-BVOBO0Jx.mjs";
|
|
7
|
+
import { u as usePortal } from "../../usePortal-CMPQ0M9R.mjs";
|
|
8
|
+
import { u as useSubscription } from "../../useSubscription-D1UKnZAx.mjs";
|
|
9
|
+
import { u as useCustomer } from "../../useCustomer-EDhref7T.mjs";
|
|
10
|
+
import { u as usePaymentMethods } from "../../usePaymentMethods-BJzoI8dZ.mjs";
|
|
11
|
+
import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-Cljh7HYp.mjs";
|
|
12
|
+
import { u as useLoadInitialData } from "../../useLoadInitialData-Cp1OA8y6.mjs";
|
|
13
|
+
import { c as createInvoicesService } from "../../invoices-1oYkdQQV.mjs";
|
|
14
14
|
import { b as getScheduleCustomizations, c as getActiveDefaultScheduleInfo, d as getPricingGroupByPricingId } from "../../pricingPlanSchedule-CXG3CQ61.mjs";
|
|
15
|
-
import { _ as _sfc_main$7, a as _sfc_main$j } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-
|
|
15
|
+
import { _ as _sfc_main$7, a as _sfc_main$j } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DVtMzgjc.mjs";
|
|
16
16
|
import { _ as _sfc_main$8 } from "../../Divider.vue.es-wKkIVBgb.mjs";
|
|
17
|
-
import { _ as _sfc_main$9, a as _sfc_main$h } from "../../AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { b as _sfc_main$f } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { _ as _sfc_main$b } from "../../Section.vue.es-
|
|
17
|
+
import { _ as _sfc_main$9, a as _sfc_main$h } from "../../AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Ce30EXY5.mjs";
|
|
18
|
+
import { b as _sfc_main$f } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DLE5-9wz.mjs";
|
|
19
|
+
import { _ as _sfc_main$b } from "../../Section.vue.es-DX_9ueCG.mjs";
|
|
20
20
|
import { _ as _sfc_main$d } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
|
|
21
|
-
import { _ as _sfc_main$g } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-
|
|
22
|
-
import { M as Modal } from "../../Modal.vue.es-
|
|
21
|
+
import { _ as _sfc_main$g } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CsH47WSM.mjs";
|
|
22
|
+
import { M as Modal } from "../../Modal.vue.es-qdUHDOnU.mjs";
|
|
23
23
|
import { g as getComponentName } from "../../component-BG6DmXcy.mjs";
|
|
24
24
|
function useSubscriptionUpgradePreview() {
|
|
25
25
|
const { getInvoicePreview } = createInvoicesService();
|
|
@@ -258,7 +258,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
258
258
|
!__props.isPending ? (openBlock(), createBlock(unref(_sfc_main$e), {
|
|
259
259
|
key: 0,
|
|
260
260
|
variant: "body-sm",
|
|
261
|
-
|
|
261
|
+
color: "subtle",
|
|
262
262
|
tag: "div",
|
|
263
263
|
class: "sv-subscription-management-summary__empty-state"
|
|
264
264
|
}, {
|
|
@@ -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='%239a1b27'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%239a1b27'%20d='M3.08%209h33.84v22H3.08z'/%3e%3cpath%20fill='%23fefefe'%20d='M11.46%2019.5a6%206%200%200%200-1.53-.32%203%203%200%200%201-.88-.18.3.3%200%200%201-.2-.3.4.4%200%200%201%20.16-.3%201%201%200%200%201%20.51-.13q.31%200%20.59.17a.7.7%200%200%201%20.25.38l1.95-.2a2.4%202.4%200%200%200-.5-.83%202%202%200%200%200-.77-.46%205%205%200%200%200-1.42-.15q-.74-.03-1.45.2a2%202%200%200%200-.85.57%201.4%201.4%200%200%200-.3.92q-.01.47.28.86.27.38.7.54.73.24%201.49.35.45.06.88.21a.4.4%200%200%201%20.19.54.4.4%200%200%201-.13.14%201%201%200%200%201-.64.17%201%201%200%200%201-.6-.15%201%201%200%200%201-.36-.53l-2.04.2c.1.49.38.92.8%201.2a4%204%200%200%200%202.1.42q.84.03%201.64-.26a2%202%200%200%200%20.88-.7q.27-.43.28-.91a1.5%201.5%200%200%200-.26-.85%201.7%201.7%200%200%200-.77-.6'/%3e%3cpath%20fill='%23fefefe'%20fill-rule='evenodd'%20d='M23.05%2017.42q.46-.24%201-.24c.65-.03%201.28.29%201.66.83a3.4%203.4%200%200%201%20.59%202.04%203%203%200%200%201-.64%202.06%202.1%202.1%200%200%201-1.63.7%202%202%200%200%201-.86-.16%202%202%200%200%201-.7-.48v2.86h-2.08V17.3h1.93v.8q.3-.4.73-.68m.35%203.85a.8.8%200%200%200%20.6-.3q.29-.46.24-1A1.5%201.5%200%200%200%2024%2019a.8.8%200%200%200-.62-.31.8.8%200%200%200-.66.31q-.3.46-.26%201-.04.53.27.95a1%201%200%200%200%20.68.31m9.56.28q-.01.3.04.6.08.28.21.55h-1.93l-.15-.32-.07-.34a3%203%200%200%201-.8.55%203%203%200%200%201-1.27.23%202%202%200%200%201-1.46-.45%201.4%201.4%200%200%201-.5-1.1q0-.57.36-1.01a2.4%202.4%200%200%201%201.33-.6l1.5-.32q.37-.1.72-.24a.7.7%200%200%200-.15-.54.8.8%200%200%200-.55-.15%201.4%201.4%200%200%200-.76.16%201%201%200%200%200-.32.48l-1.97-.2q.09-.45.32-.82.25-.33.6-.52.38-.18.79-.24.53-.1%201.07-.09.75-.01%201.49.1.52.1.93.44.3.27.42.65.14.38.15.8zm-2.14-.46q.14-.3.12-.62v-.33q-.43.15-.88.27a2%202%200%200%200-.8.33.53.53%200%200%200%200%20.77.7.7%200%200%200%20.5.16%201.3%201.3%200%200%200%20.64-.17q.27-.14.42-.4'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fefefe'%20d='M12.8%2015.18v9.64l7.06%201.25V13.93z'/%3e%3cpath%20fill='%23fefefe'%20fill-rule='evenodd'%20d='M23.9%2024.88v.1h.13V23.8h-.14v.43a.3.3%200%200%200-.24-.12.34.34%200%200%200-.32.22l-.04.24.05.23q.04.1.13.16a.3.3%200%200%200%20.19.06.3.3%200%200%200%20.24-.13m-.4-.08a.4.4%200%200%201-.06-.24.4.4%200%200%201%20.06-.26.2.2%200%200%201%20.33%200%20.4.4%200%200%201%20.07.27.4.4%200%200%201-.07.24.2.2%200%200%201-.32%200m1.1-.85h-.18v-.17h.17zm0%201.03h-.18v-.87h.17z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fefefe'%20d='M24.96%2024.99v-.87h.13v.13l.1-.12.09-.03a.3.3%200%200%201%20.15.05l-.05.14-.11-.04-.09.03-.05.08-.02.17V25z'/%3e%3cpath%20fill='%23fefefe'%20fill-rule='evenodd'%20d='m26.42%2024.73-.15-.02a.3.3%200%200%201-.1.13.2.2%200%200%201-.13.05.2.2%200%200%201-.18-.08.3.3%200%200%201-.08-.22h.64v-.04a.5.5%200%200%200-.1-.33.4.4%200%200%200-.29-.12.4.4%200%200%200-.29.12.5.5%200%200%200-.1.34.5.5%200%200%200%20.1.33c.15.14.38.15.55.04a.4.4%200%200%200%20.13-.2m-.63-.26h.48a.3.3%200%200%200-.06-.16.2.2%200%200%200-.18-.09.2.2%200%200%200-.17.07.3.3%200%200%200-.07.18'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fefefe'%20d='m27.33%2024.67.14.02a.35.35%200%200%201-.36.32.4.4%200%200%201-.28-.12.5.5%200%200%201-.1-.33l.04-.25a.3.3%200%200%201%20.14-.15.4.4%200%200%201%20.2-.06.4.4%200%200%201%20.23.07.3.3%200%200%201%20.12.2l-.14.03a.2.2%200%200%200-.08-.13.2.2%200%200%200-.12-.05.2.2%200%200%200-.18.08.4.4%200%200%200-.07.25.4.4%200%200%200%20.07.26q.06.08.17.07a.2.2%200%200%200%20.14-.05.3.3%200%200%200%20.08-.16m.75.18.02.13-.11.02-.12-.03-.06-.06-.02-.18v-.5h-.11v-.1h.1v-.22l.15-.09v.3h.15v.12h-.15v.58l.03.03.05.01z'/%3e%3cpath%20fill='%23fefefe'%20fill-rule='evenodd'%20d='M29.49%2024.88v.1h.13V23.8h-.14v.43a.3.3%200%200%200-.24-.12.34.34%200%200%200-.32.22l-.04.24.04.23q.05.1.14.16a.3.3%200%200%200%20.19.06.3.3%200%200%200%20.24-.13m-.4-.08a.4.4%200%200%201-.07-.24.4.4%200%200%201%20.07-.26.2.2%200%200%201%20.33%200%20.4.4%200%200%201%20.07.27.4.4%200%200%201-.07.24.2.2%200%200%201-.33%200m1.66-.08-.15-.02a.3.3%200%200%201-.09.13.2.2%200%200%201-.13.05.2.2%200%200%201-.18-.08.3.3%200%200%201-.08-.22h.64v-.04a.5.5%200%200%200-.11-.33.4.4%200%200%200-.28-.12.4.4%200%200%200-.3.12.5.5%200%200%200-.1.34.5.5%200%200%200%20.1.33c.16.14.38.15.55.04a.4.4%200%200%200%20.13-.2m-.63-.26h.48a.3.3%200%200%200-.05-.16.2.2%200%200%200-.18-.09.2.2%200%200%200-.17.07.3.3%200%200%200-.07.18m.97.52h.14v-.11q.08.13.24.13a.3.3%200%200%200%20.26-.13.5.5%200%200%200%20.1-.34l-.02-.17-.07-.14a.3.3%200%200%200-.12-.1l-.15-.03a.3.3%200%200%200-.23.12v-.42h-.15zm.18-.22-.04-.22a.4.4%200%200%201%20.07-.24.2.2%200%200%201%20.32%200q.08.11.07.25a.4.4%200%200%201-.07.24.2.2%200%200%201-.28.05zm1.09-.8h-.18v-.18h.18zm0%201.02h-.18v-.87h.18z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fefefe'%20d='m33.04%2024.86.02.13h-.1l-.13-.02-.06-.06-.02-.18v-.5h-.1v-.1h.1v-.22l.15-.09v.3h.14v.12h-.14v.58l.03.03.05.01z'/%3e%3cpath%20fill='%239a1b27'%20fill-rule='evenodd'%20d='M15.3%2020.51h4.13v-.23a4%204%200%200%200-.35-1.73%202.4%202.4%200%200%200-1.01-1.02%204%204%200%200%200-1.82-.35%203%203%200%200%200-2.23.78%202.7%202.7%200%200%200-.8%202.05%203%203%200%200%200%20.4%201.55q.37.62%201.01.96.8.33%201.68.3a4%204%200%200%200%201.88-.36%203%203%200%200%200%201.13-1.16l-2.03-.19q-.15.2-.36.34-.26.15-.58.15a1%201%200%200%201-.77-.35%201.3%201.3%200%200%201-.27-.74m1.71-1.85q.3.38.32.86h-2.03q.03-.39.24-.72a1%201%200%200%201%201.47-.14'%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 sepa = "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='%239a1b27'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%239a1b27'%20d='M3.08%209h33.84v22H3.08z'/%3e%3cpath%20fill='%23fefefe'%20d='M11.46%2019.5a6%206%200%200%200-1.53-.32%203%203%200%200%201-.88-.18.3.3%200%200%201-.2-.3.4.4%200%200%201%20.16-.3%201%201%200%200%201%20.51-.13q.31%200%20.59.17a.7.7%200%200%201%20.25.38l1.95-.2a2.4%202.4%200%200%200-.5-.83%202%202%200%200%200-.77-.46%205%205%200%200%200-1.42-.15q-.74-.03-1.45.2a2%202%200%200%200-.85.57%201.4%201.4%200%200%200-.3.92q-.01.47.28.86.27.38.7.54.73.24%201.49.35.45.06.88.21a.4.4%200%200%201%20.19.54.4.4%200%200%201-.13.14%201%201%200%200%201-.64.17%201%201%200%200%201-.6-.15%201%201%200%200%201-.36-.53l-2.04.2c.1.49.38.92.8%201.2a4%204%200%200%200%202.1.42q.84.03%201.64-.26a2%202%200%200%200%20.88-.7q.27-.43.28-.91a1.5%201.5%200%200%200-.26-.85%201.7%201.7%200%200%200-.77-.6'/%3e%3cpath%20fill='%23fefefe'%20fill-rule='evenodd'%20d='M23.05%2017.42q.46-.24%201-.24c.65-.03%201.28.29%201.66.83a3.4%203.4%200%200%201%20.59%202.04%203%203%200%200%201-.64%202.06%202.1%202.1%200%200%201-1.63.7%202%202%200%200%201-.86-.16%202%202%200%200%201-.7-.48v2.86h-2.08V17.3h1.93v.8q.3-.4.73-.68m.35%203.85a.8.8%200%200%200%20.6-.3q.29-.46.24-1A1.5%201.5%200%200%200%2024%2019a.8.8%200%200%200-.62-.31.8.8%200%200%200-.66.31q-.3.46-.26%201-.04.53.27.95a1%201%200%200%200%20.68.31m9.56.28q-.01.3.04.6.08.28.21.55h-1.93l-.15-.32-.07-.34a3%203%200%200%201-.8.55%203%203%200%200%201-1.27.23%202%202%200%200%201-1.46-.45%201.4%201.4%200%200%201-.5-1.1q0-.57.36-1.01a2.4%202.4%200%200%201%201.33-.6l1.5-.32q.37-.1.72-.24a.7.7%200%200%200-.15-.54.8.8%200%200%200-.55-.15%201.4%201.4%200%200%200-.76.16%201%201%200%200%200-.32.48l-1.97-.2q.09-.45.32-.82.25-.33.6-.52.38-.18.79-.24.53-.1%201.07-.09.75-.01%201.49.1.52.1.93.44.3.27.42.65.14.38.15.8zm-2.14-.46q.14-.3.12-.62v-.33q-.43.15-.88.27a2%202%200%200%200-.8.33.53.53%200%200%200%200%20.77.7.7%200%200%200%20.5.16%201.3%201.3%200%200%200%20.64-.17q.27-.14.42-.4'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fefefe'%20d='M12.8%2015.18v9.64l7.06%201.25V13.93z'/%3e%3cpath%20fill='%23fefefe'%20fill-rule='evenodd'%20d='M23.9%2024.88v.1h.13V23.8h-.14v.43a.3.3%200%200%200-.24-.12.34.34%200%200%200-.32.22l-.04.24.05.23q.04.1.13.16a.3.3%200%200%200%20.19.06.3.3%200%200%200%20.24-.13m-.4-.08a.4.4%200%200%201-.06-.24.4.4%200%200%201%20.06-.26.2.2%200%200%201%20.33%200%20.4.4%200%200%201%20.07.27.4.4%200%200%201-.07.24.2.2%200%200%201-.32%200m1.1-.85h-.18v-.17h.17zm0%201.03h-.18v-.87h.17z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fefefe'%20d='M24.96%2024.99v-.87h.13v.13l.1-.12.09-.03a.3.3%200%200%201%20.15.05l-.05.14-.11-.04-.09.03-.05.08-.02.17V25z'/%3e%3cpath%20fill='%23fefefe'%20fill-rule='evenodd'%20d='m26.42%2024.73-.15-.02a.3.3%200%200%201-.1.13.2.2%200%200%201-.13.05.2.2%200%200%201-.18-.08.3.3%200%200%201-.08-.22h.64v-.04a.5.5%200%200%200-.1-.33.4.4%200%200%200-.29-.12.4.4%200%200%200-.29.12.5.5%200%200%200-.1.34.5.5%200%200%200%20.1.33c.15.14.38.15.55.04a.4.4%200%200%200%20.13-.2m-.63-.26h.48a.3.3%200%200%200-.06-.16.2.2%200%200%200-.18-.09.2.2%200%200%200-.17.07.3.3%200%200%200-.07.18'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fefefe'%20d='m27.33%2024.67.14.02a.35.35%200%200%201-.36.32.4.4%200%200%201-.28-.12.5.5%200%200%201-.1-.33l.04-.25a.3.3%200%200%201%20.14-.15.4.4%200%200%201%20.2-.06.4.4%200%200%201%20.23.07.3.3%200%200%201%20.12.2l-.14.03a.2.2%200%200%200-.08-.13.2.2%200%200%200-.12-.05.2.2%200%200%200-.18.08.4.4%200%200%200-.07.25.4.4%200%200%200%20.07.26q.06.08.17.07a.2.2%200%200%200%20.14-.05.3.3%200%200%200%20.08-.16m.75.18.02.13-.11.02-.12-.03-.06-.06-.02-.18v-.5h-.11v-.1h.1v-.22l.15-.09v.3h.15v.12h-.15v.58l.03.03.05.01z'/%3e%3cpath%20fill='%23fefefe'%20fill-rule='evenodd'%20d='M29.49%2024.88v.1h.13V23.8h-.14v.43a.3.3%200%200%200-.24-.12.34.34%200%200%200-.32.22l-.04.24.04.23q.05.1.14.16a.3.3%200%200%200%20.19.06.3.3%200%200%200%20.24-.13m-.4-.08a.4.4%200%200%201-.07-.24.4.4%200%200%201%20.07-.26.2.2%200%200%201%20.33%200%20.4.4%200%200%201%20.07.27.4.4%200%200%201-.07.24.2.2%200%200%201-.33%200m1.66-.08-.15-.02a.3.3%200%200%201-.09.13.2.2%200%200%201-.13.05.2.2%200%200%201-.18-.08.3.3%200%200%201-.08-.22h.64v-.04a.5.5%200%200%200-.11-.33.4.4%200%200%200-.28-.12.4.4%200%200%200-.3.12.5.5%200%200%200-.1.34.5.5%200%200%200%20.1.33c.16.14.38.15.55.04a.4.4%200%200%200%20.13-.2m-.63-.26h.48a.3.3%200%200%200-.05-.16.2.2%200%200%200-.18-.09.2.2%200%200%200-.17.07.3.3%200%200%200-.07.18m.97.52h.14v-.11q.08.13.24.13a.3.3%200%200%200%20.26-.13.5.5%200%200%200%20.1-.34l-.02-.17-.07-.14a.3.3%200%200%200-.12-.1l-.15-.03a.3.3%200%200%200-.23.12v-.42h-.15zm.18-.22-.04-.22a.4.4%200%200%201%20.07-.24.2.2%200%200%201%20.32%200q.08.11.07.25a.4.4%200%200%201-.07.24.2.2%200%200%201-.28.05zm1.09-.8h-.18v-.18h.18zm0%201.02h-.18v-.87h.18z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fefefe'%20d='m33.04%2024.86.02.13h-.1l-.13-.02-.06-.06-.02-.18v-.5h-.1v-.1h.1v-.22l.15-.09v.3h.14v.12h-.14v.58l.03.03.05.01z'/%3e%3cpath%20fill='%239a1b27'%20fill-rule='evenodd'%20d='M15.3%2020.51h4.13v-.23a4%204%200%200%200-.35-1.73%202.4%202.4%200%200%200-1.01-1.02%204%204%200%200%200-1.82-.35%203%203%200%200%200-2.23.78%202.7%202.7%200%200%200-.8%202.05%203%203%200%200%200%20.4%201.55q.37.62%201.01.96.8.33%201.68.3a4%204%200%200%200%201.88-.36%203%203%200%200%200%201.13-1.16l-2.03-.19q-.15.2-.36.34-.26.15-.58.15a1%201%200%200%201-.77-.35%201.3%201.3%200%200%201-.27-.74m1.71-1.85q.3.38.32.86h-2.03q.03-.39.24-.72a1%201%200%200%201%201.47-.14'%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
|
+
sepa as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const star = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%23ba0c2f'%20d='M35.96%2028.37q-.04-.09-.1-.14-.07-.08-.16-.1-.08-.05-.17-.05-.12-.01-.17.04-.08.04-.15.1a.4.4%200%200%200-.1.15q-.05.09-.05.17-.01.11.04.17a.4.4%200%200%200%20.11.14.4.4%200%200%200%20.15.1q.08.05.17.05.09.01.17-.04a.4.4%200%200%200%20.15-.1l.1-.15q.05-.08.05-.17.01-.1-.04-.17m-.05.34q-.01.06-.08.12l-.13.09-.15.02-.15-.02q-.06-.01-.12-.09l-.1-.12-.01-.15q0-.08.02-.14%200-.07.09-.13l.12-.08.15-.02.15.02q.07.01.13.08l.09.13.02.14-.02.15m-17.56-7.96c-.17-.77%200-1.5%200-1.5h-8.32s-2.16-.4-3.33-.1c-.85.2-2.18.68-2.52%202.27a2.8%202.8%200%200%200%20.85%202.65%2016%2016%200%200%200%202.78%201.36c.23.08%201.17.54.94%201.5-.2.73-1.18.92-1.41.92s-1.81.13-2.24-1.48h-.6s-.02.75-.51%201.94c0%200%20.83.71%202.99.69.12%200%202.6%200%203.67-1.78%201.17-1.98-.54-3.36-.54-3.36-.7-.6-2.8-1.44-2.8-1.44-1.66-.65-1-2.1-.14-2.23.79-.1%201.5-.09%202.82.54%200%200%202.21-.27%202.81-.19v8.31s.98-.2%202.71%200v-8.29c.49-.1%202.82.21%202.82.21zm17.43%207.69q.02-.08-.07-.1-.05-.05-.17-.05h-.19v.5h.09v-.23h.1l.1.23h.12l-.11-.23q.05%200%20.08-.04zm-.13.06h-.2v-.17h.1q.06%200%20.1.02.04.01.04.06%200%20.06-.02.07zM17.63%2014.4c4.74-.73%207.36-.6%207.36-.6v-.44s-5.93.13-10.39.8C5.5%2015.49%204%2018.13%204%2018.13h6.57s1.15-2.82%207.06-3.73m16.09%207.16c0-2.57-3.5-2.32-3.5-2.32h-4.06v9.02l-4.28-9.15s-.84.1-1.37%200c0%200-4.6%209.7-4.63%209.7.84-.15%201.86%200%201.86%200l1.13-2.79h3.4l1.1%202.82s1.34-.25%202.86%200c.9-.2%202.69-.02%202.69-.02v-4.05l2.73%204.07c1.58-.23%203.26%200%203.26%200l-3.45-4.65s2.3-.44%202.3-2.6zm-14.3%203.28%201.18-2.57%201.15%202.56zm11.31-1.99c-.47.84-1.88.75-1.88.75v-3.3s1.43-.16%201.84.5c.55.92.04%202.07.04%202.07M30.11%2010l-1.13%203.38h-3.65l2.97%202.03-1.18%203.36%203-2.11%202.98%202.09-1.17-3.34%202.96-2.03h-3.67z'/%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
|
+
star 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'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%23ba0c2f'%20d='M35.96%2028.37q-.04-.09-.1-.14-.07-.08-.16-.1-.08-.05-.17-.05-.12-.01-.17.04-.08.04-.15.1a.4.4%200%200%200-.1.15q-.05.09-.05.17-.01.11.04.17a.4.4%200%200%200%20.11.14.4.4%200%200%200%20.15.1q.08.05.17.05.09.01.17-.04a.4.4%200%200%200%20.15-.1l.1-.15q.05-.08.05-.17.01-.1-.04-.17m-.05.34q-.01.06-.08.12l-.13.09-.15.02-.15-.02q-.06-.01-.12-.09l-.1-.12-.01-.15q0-.08.02-.14%200-.07.09-.13l.12-.08.15-.02.15.02q.07.01.13.08l.09.13.02.14-.02.15m-17.56-7.96c-.17-.77%200-1.5%200-1.5h-8.32s-2.16-.4-3.33-.1c-.85.2-2.18.68-2.52%202.27a2.8%202.8%200%200%200%20.85%202.65%2016%2016%200%200%200%202.78%201.36c.23.08%201.17.54.94%201.5-.2.73-1.18.92-1.41.92s-1.81.13-2.24-1.48h-.6s-.02.75-.51%201.94c0%200%20.83.71%202.99.69.12%200%202.6%200%203.67-1.78%201.17-1.98-.54-3.36-.54-3.36-.7-.6-2.8-1.44-2.8-1.44-1.66-.65-1-2.1-.14-2.23.79-.1%201.5-.09%202.82.54%200%200%202.21-.27%202.81-.19v8.31s.98-.2%202.71%200v-8.29c.49-.1%202.82.21%202.82.21zm17.43%207.69q.02-.08-.07-.1-.05-.05-.17-.05h-.19v.5h.09v-.23h.1l.1.23h.12l-.11-.23q.05%200%20.08-.04zm-.13.06h-.2v-.17h.1q.06%200%20.1.02.04.01.04.06%200%20.06-.02.07zM17.63%2014.4c4.74-.73%207.36-.6%207.36-.6v-.44s-5.93.13-10.39.8C5.5%2015.49%204%2018.13%204%2018.13h6.57s1.15-2.82%207.06-3.73m16.09%207.16c0-2.57-3.5-2.32-3.5-2.32h-4.06v9.02l-4.28-9.15s-.84.1-1.37%200c0%200-4.6%209.7-4.63%209.7.84-.15%201.86%200%201.86%200l1.13-2.79h3.4l1.1%202.82s1.34-.25%202.86%200c.9-.2%202.69-.02%202.69-.02v-4.05l2.73%204.07c1.58-.23%203.26%200%203.26%200l-3.45-4.65s2.3-.44%202.3-2.6zm-14.3%203.28%201.18-2.57%201.15%202.56zm11.31-1.99c-.47.84-1.88.75-1.88.75v-3.3s1.43-.16%201.84.5c.55.92.04%202.07.04%202.07M30.11%2010l-1.13%203.38h-3.65l2.97%202.03-1.18%203.36%203-2.11%202.98%202.09-1.17-3.34%202.96-2.03h-3.67z'/%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";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const i=require("./api.es-Czekkp_X.js"),e=require("./customElements-
|
|
1
|
+
const i=require("./api.es-Czekkp_X.js"),e=require("./customElements-DD7bpqkx.js"),n=require("./component-hDuDTBt5.js"),t="/portal/pricing-plan-subscriptions",r={CANCEL:"NEXT_BILLING_PERIOD",RENEW:"UNDO"};exports.createSubscriptionsService=function(){const s=e.useConfig(),a=e.createRequestService();return{getSubscription:function({id:e,expanded:r=!1}){return a({url:`${s.apiUrls.config}${t}/${e}`,query:i.withExpand({expandParams:n.EXPAND_ALL,expand:r})})},getActiveSubscriptions:function({customerId:e,pagination:r}){const o=r??{},c=i.withExpand({initialParams:{customer_id:e,statuses:["ACTIVE"],type:"BILLING"},expandParams:n.EXPAND_ALL});return a({url:`${s.apiUrls.config}${t}`,query:i.withPagination(c,o),isCollection:!0})},setSubscriptionCancellation:function({id:i,variant:e}){return a({url:`${s.apiUrls.config}${t}/${i}/cancel`,data:{type:r[e]},options:{method:"POST"}})}}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as withExpand, a as withPagination } from "./api.es-C5pe8LUl.mjs";
|
|
2
|
-
import { a as useConfig, c as createRequestService } from "./customElements-
|
|
2
|
+
import { a as useConfig, c as createRequestService } from "./customElements-B-89a5oH.mjs";
|
|
3
3
|
import { E as EXPAND_ALL } from "./component-BG6DmXcy.mjs";
|
|
4
4
|
const ENDPOINT = "/portal/pricing-plan-subscriptions";
|
|
5
5
|
const SUBSCRIPTION_CANCELLATION_TYPES = {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const trustly = "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%3cmask%20id='b'%20width='40'%20height='40'%20x='0'%20y='0'%20maskUnits='userSpaceOnUse'%20style='mask-type:luminance'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/mask%3e%3cg%20mask='url(%23b)'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%2310303f'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%2368de7a'%20d='M7.5%2018.75h8.75v-6.87l6.88%206.87-6.88%206.88v3.75H25V18.74h7.5v-8.12h-25z'/%3e%3c/g%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
|
+
trustly 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%3cmask%20id='b'%20width='40'%20height='40'%20x='0'%20y='0'%20maskUnits='userSpaceOnUse'%20style='mask-type:luminance'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/mask%3e%3cg%20mask='url(%23b)'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%2310303f'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%2368de7a'%20d='M7.5%2018.75h8.75v-6.87l6.88%206.87-6.88%206.88v3.75H25V18.74h7.5v-8.12h-25z'/%3e%3c/g%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 @@
|
|
|
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='%23000'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%23fff'%20d='M13.78%2022.3a.4.4%200%200%201-.2.35l-3.98%202.3a.5.5%200%200%201-.42%200l-3.97-2.3A.5.5%200%200%201%205%2022.3v-4.6c0-.13.1-.29.2-.35l3.98-2.3a.5.5%200%200%201%20.42%200l3.97%202.3a.5.5%200%200%201%20.21.35zm22.08-4.27h-3.55v.85h1.27v3.64h1v-3.64h1.28zm-16.18%200h-3.56v.85h1.28v3.64h1v-3.64h1.28zM30%2017.89c-1.12%200-1.74.72-1.74%201.75v2.89h1v-2.9c0-.46.26-.8.75-.8s.75.4.75.8v2.9h1v-2.89c.01-1.04-.63-1.75-1.76-1.75m-3.76.14v4.49h1v-4.49zm-3.38%201.78.03.2.94%202.52h.4l1.28-4.5h-.98l-.6%202.36-.05.26-.05-.26-.8-2.35h-.33l-.82%202.35-.05.26-.03-.26-.6-2.35h-1l1.28%204.49h.4l.95-2.52z'/%3e%3cpath%20fill='url(%23b)'%20d='m11.47%2020.01-1.04%201.53-.53-.81.61-.92c.11-.17.36-.62.08-1.23a1.3%201.3%200%200%200-1.16-.74c-.44%200-.9.23-1.16.74a1.2%201.2%200%200%200%20.07%201.2s.34.5.63.93l.46.67.7%201.06s.1.17.3.17c.18%200%20.3-.16.31-.18l1.63-2.4h-.9zm-2.05.04-.45-.7a.51.51%200%200%201%20.45-.77c.43%200%20.64.46.45.77-.17.29-.45.7-.45.7'/%3e%3cpath%20fill='url(%23c)'%20d='M8.43%2021.49%207.4%2020.06l-.45-.7a.51.51%200%200%201%20.45-.77l.15.02.35-.66a1%201%200%200%200-.5-.1%201.3%201.3%200%200%200-1.16.73%201.2%201.2%200%200%200%20.07%201.2l1.78%202.65c.02.02.13.2.32.2s.3-.17.31-.2l.54-.81-.46-.68z'/%3e%3c/g%3e%3cdefs%3e%3cradialGradient%20id='b'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(4.79253%200%200%205.4098%209.09%2018.26)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23fc0'/%3e%3cstop%20offset='.09'%20stop-color='%23ffc800'/%3e%3cstop%20offset='.17'%20stop-color='%23ffbd00'/%3e%3cstop%20offset='.25'%20stop-color='%23ffab00'/%3e%3cstop%20offset='.33'%20stop-color='%23ff9100'/%3e%3cstop%20offset='.41'%20stop-color='%23ff7000'/%3e%3cstop%20offset='.48'%20stop-color='%23ff4700'/%3e%3cstop%20offset='.55'%20stop-color='%23ff1800'/%3e%3cstop%20offset='.58'%20stop-color='red'/%3e%3cstop%20offset='1'%20stop-color='red'/%3e%3c/radialGradient%3e%3cradialGradient%20id='c'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(4.39419%200%200%206.6533%206.2%2018.54)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2300b4e6'/%3e%3cstop%20offset='.2'%20stop-color='%2300b0e3'/%3e%3cstop%20offset='.39'%20stop-color='%2301a5db'/%3e%3cstop%20offset='.57'%20stop-color='%230292cd'/%3e%3cstop%20offset='.76'%20stop-color='%230377ba'/%3e%3cstop%20offset='.93'%20stop-color='%230455a1'/%3e%3cstop%20offset='1'%20stop-color='%23054696'/%3e%3c/radialGradient%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 twint = "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='%23000'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%23fff'%20d='M13.78%2022.3a.4.4%200%200%201-.2.35l-3.98%202.3a.5.5%200%200%201-.42%200l-3.97-2.3A.5.5%200%200%201%205%2022.3v-4.6c0-.13.1-.29.2-.35l3.98-2.3a.5.5%200%200%201%20.42%200l3.97%202.3a.5.5%200%200%201%20.21.35zm22.08-4.27h-3.55v.85h1.27v3.64h1v-3.64h1.28zm-16.18%200h-3.56v.85h1.28v3.64h1v-3.64h1.28zM30%2017.89c-1.12%200-1.74.72-1.74%201.75v2.89h1v-2.9c0-.46.26-.8.75-.8s.75.4.75.8v2.9h1v-2.89c.01-1.04-.63-1.75-1.76-1.75m-3.76.14v4.49h1v-4.49zm-3.38%201.78.03.2.94%202.52h.4l1.28-4.5h-.98l-.6%202.36-.05.26-.05-.26-.8-2.35h-.33l-.82%202.35-.05.26-.03-.26-.6-2.35h-1l1.28%204.49h.4l.95-2.52z'/%3e%3cpath%20fill='url(%23b)'%20d='m11.47%2020.01-1.04%201.53-.53-.81.61-.92c.11-.17.36-.62.08-1.23a1.3%201.3%200%200%200-1.16-.74c-.44%200-.9.23-1.16.74a1.2%201.2%200%200%200%20.07%201.2s.34.5.63.93l.46.67.7%201.06s.1.17.3.17c.18%200%20.3-.16.31-.18l1.63-2.4h-.9zm-2.05.04-.45-.7a.51.51%200%200%201%20.45-.77c.43%200%20.64.46.45.77-.17.29-.45.7-.45.7'/%3e%3cpath%20fill='url(%23c)'%20d='M8.43%2021.49%207.4%2020.06l-.45-.7a.51.51%200%200%201%20.45-.77l.15.02.35-.66a1%201%200%200%200-.5-.1%201.3%201.3%200%200%200-1.16.73%201.2%201.2%200%200%200%20.07%201.2l1.78%202.65c.02.02.13.2.32.2s.3-.17.31-.2l.54-.81-.46-.68z'/%3e%3c/g%3e%3cdefs%3e%3cradialGradient%20id='b'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(4.79253%200%200%205.4098%209.09%2018.26)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23fc0'/%3e%3cstop%20offset='.09'%20stop-color='%23ffc800'/%3e%3cstop%20offset='.17'%20stop-color='%23ffbd00'/%3e%3cstop%20offset='.25'%20stop-color='%23ffab00'/%3e%3cstop%20offset='.33'%20stop-color='%23ff9100'/%3e%3cstop%20offset='.41'%20stop-color='%23ff7000'/%3e%3cstop%20offset='.48'%20stop-color='%23ff4700'/%3e%3cstop%20offset='.55'%20stop-color='%23ff1800'/%3e%3cstop%20offset='.58'%20stop-color='red'/%3e%3cstop%20offset='1'%20stop-color='red'/%3e%3c/radialGradient%3e%3cradialGradient%20id='c'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(4.39419%200%200%206.6533%206.2%2018.54)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2300b4e6'/%3e%3cstop%20offset='.2'%20stop-color='%2300b0e3'/%3e%3cstop%20offset='.39'%20stop-color='%2301a5db'/%3e%3cstop%20offset='.57'%20stop-color='%230292cd'/%3e%3cstop%20offset='.76'%20stop-color='%230377ba'/%3e%3cstop%20offset='.93'%20stop-color='%230455a1'/%3e%3cstop%20offset='1'%20stop-color='%23054696'/%3e%3c/radialGradient%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
twint as default
|
|
4
|
+
};
|
package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ interface BasePaymentIntegrationFormProps {
|
|
|
22
22
|
validateOnSubmit?: () => Promise<boolean>;
|
|
23
23
|
context?: PaymentAuthorizationContext;
|
|
24
24
|
forceStorePaymentMethod?: boolean;
|
|
25
|
+
storePaymentMethod?: boolean;
|
|
25
26
|
}
|
|
26
27
|
export interface AuthorizePaymentIntegrationFormProps extends BasePaymentIntegrationFormProps {
|
|
27
28
|
customerId?: Customer['id'];
|
|
@@ -67,6 +68,7 @@ export interface PaymentIntegrationVariantProps {
|
|
|
67
68
|
validateOnSubmit?: () => Promise<boolean>;
|
|
68
69
|
context?: PaymentAuthorizationContext;
|
|
69
70
|
forceStorePaymentMethod?: boolean;
|
|
71
|
+
storePaymentMethod?: boolean;
|
|
70
72
|
}
|
|
71
73
|
export type PaymentIntegrationVariantEmits = PaymentIntegrationFormEmits;
|
|
72
74
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface PaymentMethodsUnavailableCardProps {
|
|
2
|
+
variant: 'TOKENIZE' | 'AUTHORIZE';
|
|
3
|
+
/**
|
|
4
|
+
* Who the customer is paying. A legal name is the only contact detail the payload reliably
|
|
5
|
+
* carries — no email, no phone — so naming them is the whole fallback, not a lead-in to a link.
|
|
6
|
+
*/
|
|
7
|
+
sellerName?: string;
|
|
8
|
+
}
|
|
@@ -16,6 +16,14 @@ export declare function createConsoleLogSink(): LogSink;
|
|
|
16
16
|
export declare function combineLogSinks(...sinks: LogSink[]): LogSink;
|
|
17
17
|
export declare function createCustomElementLogSink(sink: LogSink, hostRef: Ref<HTMLElement | null>): LogSink;
|
|
18
18
|
export declare function serializeError(err: unknown): SerializedError;
|
|
19
|
+
/**
|
|
20
|
+
* A fingerprint travels in the context because that is the only channel `logger.error` has, and is
|
|
21
|
+
* lifted back out because a consumer needs it as a grouping key, not as one more context tag.
|
|
22
|
+
*/
|
|
23
|
+
export declare function extractFingerprint(context?: Record<string, unknown>): {
|
|
24
|
+
fingerprint?: string[];
|
|
25
|
+
context?: Record<string, unknown>;
|
|
26
|
+
};
|
|
19
27
|
export declare function createLogger(sink: LogSink, opts?: {
|
|
20
28
|
logLevel?: LogLevel;
|
|
21
29
|
customElementName?: string;
|
|
@@ -6,13 +6,43 @@ export type SerializedError = {
|
|
|
6
6
|
cause?: unknown;
|
|
7
7
|
} | undefined;
|
|
8
8
|
export type LogEntry = {
|
|
9
|
+
/**
|
|
10
|
+
* The shape of this entry. Bumped when a field changes meaning or goes away, so a consumer can
|
|
11
|
+
* guard against a version they were not written for rather than reading a field that moved.
|
|
12
|
+
*/
|
|
9
13
|
schemaVersion: 1;
|
|
14
|
+
/** How severe the SDK considers it. Entries below `LoggerProvider`'s `logLevel` never arrive. */
|
|
10
15
|
level: LogLevel;
|
|
16
|
+
/**
|
|
17
|
+
* What happened, as a stable identifier. Filter and branch on this rather than on `message`:
|
|
18
|
+
* codes are part of the SDK's contract and are listed in the README, messages are not and are
|
|
19
|
+
* reworded freely. A `string` is accepted alongside the known codes because `debug` and `info`
|
|
20
|
+
* entries carry ad-hoc ones.
|
|
21
|
+
*/
|
|
11
22
|
code: ErrorCode | WarnCode | string;
|
|
23
|
+
/** A human-readable line for a person reading logs. Not stable — never match on it. */
|
|
12
24
|
message: string;
|
|
25
|
+
/** When the entry was created, as an ISO 8601 string. */
|
|
13
26
|
timestamp: string;
|
|
27
|
+
/**
|
|
28
|
+
* Whatever the call site thought was worth knowing, plus the `componentName`, `environment` and
|
|
29
|
+
* `url` every entry is enriched with. The URL is origin and path only — the query string is
|
|
30
|
+
* left off because it tends to carry customer data. Never contains tokens or credentials.
|
|
31
|
+
*/
|
|
14
32
|
context?: Record<string, unknown>;
|
|
33
|
+
/**
|
|
34
|
+
* How the entry should be grouped where a consumer aggregates them — Sentry's `fingerprint`, or
|
|
35
|
+
* whatever theirs calls it. Set it when the `code` alone would collapse unrelated incidents
|
|
36
|
+
* into one issue, or split one across many. Passed as a `fingerprint` key on the log context.
|
|
37
|
+
*/
|
|
38
|
+
fingerprint?: string[];
|
|
39
|
+
/**
|
|
40
|
+
* The thrown value behind the entry, untouched — usually an `Error`, but the SDK passes on
|
|
41
|
+
* whatever it caught. Not JSON-safe: serializing it directly tends to yield `{}`, so use
|
|
42
|
+
* `errorSerialized` for anything that leaves the browser.
|
|
43
|
+
*/
|
|
15
44
|
error?: unknown;
|
|
45
|
+
/** The same failure flattened to plain fields, for sending onwards or writing down. */
|
|
16
46
|
errorSerialized?: SerializedError;
|
|
17
47
|
};
|
|
18
48
|
export type LogSink = (entry: LogEntry) => void;
|
|
@@ -36,5 +66,5 @@ export interface LoggerProviderProps {
|
|
|
36
66
|
*/
|
|
37
67
|
onLog?: LogSink;
|
|
38
68
|
}
|
|
39
|
-
export type WarnCode = 'ACTIVE_SCHEDULE_NOT_FOUND' | 'ADYEN_INVALID_CONFIGURATION' | 'APPLE_PAY_ACTION_REQUIRED' | 'INVOICE_PREVIEW_SKIPPED' | 'TRANSLATION_LOAD_FAILED';
|
|
40
|
-
export type ErrorCode = 'UNHANDLED_ERROR' | 'RESOURCE_REVOKED' | 'INVALID_EMAIL' | 'INVALID_COUNTRY_CODE' | 'PAYMENT_INTEGRATION_INITIALIZATION_FAILED' | 'PAYMENT_AUTHORIZATION_FAILED' | 'TOKENIZATION_FAILED' | 'INVALID_TOKEN' | 'SESSION_EXPIRED' | 'INVALID_REDIRECT_RESULT' | 'PAYMENT_DETAILS_CALL_FAILED' | 'PAYMENT_METHOD_OPTIONS_LOAD_FAILED' | 'INTEGRATION_ERROR' | 'EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR' | 'EXPRESS_CHECKOUT_PAYPAL_ERROR' | 'APPLE_PAY_ERROR' | 'APPLE_PAY_AUTHORIZATION_FAILED' | 'PROMOTION_CODE_APPLY_FAILED' | 'PROMOTION_CODE_REMOVE_FAILED' | 'SUBSCRIPTION_UPDATE_FAILED' | 'SUBSCRIPTION_CANCELLATION_FAILED' | 'INITIAL_DATA_LOAD_FAILED' | 'SUBSCRIPTION_LOAD_FAILED' | 'INVOICE_PREVIEW_FAILED' | 'TOP_UP_FAILED' | 'AUTO_TOP_UP_SAVE_FAILED' | 'AUTO_TOP_UP_CANCELLATION_FAILED' | 'REQUEST_PARSE_FAILED' | 'ADYEN_SUBMIT_FAILED' | 'STRIPE_SUBMIT_FAILED' | 'STRIPE_CONFIRMATION_TOKEN_FAILED' | 'STRIPE_ACTION_FAILED' | 'STRIPE_REDIRECT_RETURN_FAILED';
|
|
69
|
+
export type WarnCode = 'ACTIVE_SCHEDULE_NOT_FOUND' | 'ADYEN_INVALID_CONFIGURATION' | 'PAYMENT_INTEGRATION_NOT_RENDERABLE' | 'APPLE_PAY_ACTION_REQUIRED' | 'INVOICE_PREVIEW_SKIPPED' | 'TRANSLATION_LOAD_FAILED';
|
|
70
|
+
export type ErrorCode = 'UNHANDLED_ERROR' | 'RESOURCE_REVOKED' | 'INVALID_EMAIL' | 'INVALID_COUNTRY_CODE' | 'PAYMENT_INTEGRATION_INITIALIZATION_FAILED' | 'PAYMENT_AUTHORIZATION_FAILED' | 'TOKENIZATION_FAILED' | 'INVALID_TOKEN' | 'SESSION_EXPIRED' | 'INVALID_REDIRECT_RESULT' | 'PAYMENT_DETAILS_CALL_FAILED' | 'PAYMENT_METHOD_OPTIONS_LOAD_FAILED' | 'NO_PAYMENT_METHODS_AVAILABLE' | 'INTEGRATION_ERROR' | 'EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR' | 'EXPRESS_CHECKOUT_PAYPAL_ERROR' | 'APPLE_PAY_ERROR' | 'APPLE_PAY_AUTHORIZATION_FAILED' | 'PROMOTION_CODE_APPLY_FAILED' | 'PROMOTION_CODE_REMOVE_FAILED' | 'SUBSCRIPTION_UPDATE_FAILED' | 'SUBSCRIPTION_CANCELLATION_FAILED' | 'INITIAL_DATA_LOAD_FAILED' | 'SUBSCRIPTION_LOAD_FAILED' | 'INVOICE_PREVIEW_FAILED' | 'TOP_UP_FAILED' | 'AUTO_TOP_UP_SAVE_FAILED' | 'AUTO_TOP_UP_CANCELLATION_FAILED' | 'REQUEST_PARSE_FAILED' | 'ADYEN_SUBMIT_FAILED' | 'STRIPE_SUBMIT_FAILED' | 'STRIPE_CONFIRMATION_TOKEN_FAILED' | 'STRIPE_ACTION_FAILED' | 'STRIPE_REDIRECT_RETURN_FAILED';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SUPPORTED_LOCALES: readonly ["en-US", "nl-NL"];
|
|
1
|
+
export const SUPPORTED_LOCALES: readonly ["en-US", "nl-NL", "de-DE", "it-IT"];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const unionpay = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%23e21836'%20d='M9.04%208.75H18c1.25%200%202.03%201.02%201.73%202.28l-4.17%2017.92a3.05%203.05%200%200%201-2.8%202.28H3.8c-1.25%200-2.03-1.02-1.74-2.28l4.18-17.92a3%203%200%200%201%202.8-2.28'/%3e%3cpath%20fill='%2300447c'%20d='M17.26%208.75h10.31c1.26%200%20.7%201.02.4%202.28l-4.18%2017.92c-.3%201.26-.2%202.28-1.45%202.28H12.02c-1.25%200-2.03-1.02-1.73-2.28l4.17-17.92a3.05%203.05%200%200%201%202.8-2.28'/%3e%3cpath%20fill='%23007b84'%20d='M27.17%208.75h8.96c1.26%200%202.04%201.02%201.74%202.28L33.7%2028.95a3.05%203.05%200%200%201-2.8%202.28h-8.97c-1.26%200-2.03-1.02-1.74-2.28l4.18-17.92a3%203%200%200%201%202.8-2.28'/%3e%3cpath%20fill='%23fefefe'%20d='M11.38%2014.5c-.92%200-1.2%200-1.28-.03l-.66%203.04c-.13.58-.23%201-.56%201.26a1%201%200%200%201-.66.23q-.62%200-.7-.59v-.13l.13-.78s.65-2.62.77-2.97v-.03c-1.27%200-1.5%200-1.5-.02l-.05.19-.66%202.95-.06.25-.11.81q0%20.37.14.61c.3.53%201.17.61%201.66.61a3%203%200%200%200%201.63-.38c.7-.4.87-1.05%201.04-1.62l.07-.3s.67-2.71.79-3.06zm2.29%202.19a2%202%200%200%200-.73.17l-.28.16.09-.31-.05-.06c-.57.12-.7.13-1.21.2l-.05.04c-.06.5-.11.88-.34%201.86l-.26%201.1.03.04c.53-.02.7-.02%201.16-.02l.03-.04.2-.98.25-1.16q.18-.09.34-.1c.26%200%20.23.22.22.31%200%20.15-.1.65-.2%201.08l-.07.27-.14.6.02.04c.53-.02.7-.02%201.14-.02l.05-.04c.09-.47.1-.6.25-1.28l.08-.32c.14-.62.2-.93.1-1.19-.11-.28-.38-.35-.63-.35m2.56.64c-.28.06-.46.1-.64.12l-.62.09-.02.02-.02.01-.08.58q-.05.31-.16.8l-.13.45c-.04.1-.07.19-.14.45l.01.02.02.02.59-.02h.61l.03-.02.02-.02.07-.41.17-.75.15-.64.15-.65v-.02zm0-.87c-.25-.15-.7-.1-1%20.1s-.33.5-.08.65.7.1%201-.1.33-.5.08-.65m1.54%203.48c.52%200%201.04-.14%201.44-.56.3-.34.45-.85.5-1.06.15-.7.03-1.02-.12-1.22-.24-.3-.65-.4-1.08-.4-.26%200-.88.03-1.36.48-.35.32-.5.75-.6%201.17s-.21%201.19.49%201.47c.22.1.53.12.73.12m-.04-1.56c.12-.52.26-.97.62-.97.28%200%20.3.33.17.86-.02.12-.12.55-.26.74q-.15.2-.34.22c-.03%200-.26%200-.26-.34a2%202%200%200%201%20.07-.51m3.26%201.5.04-.05.2-.98c.06-.3.19-.93.25-1.16q.18-.09.34-.1c.26%200%20.23.22.22.31-.01.15-.1.65-.2%201.08l-.06.27-.15.6.02.04a12%2012%200%200%201%201.14-.02l.05-.04c.08-.47.1-.6.25-1.28l.07-.32c.14-.62.22-.93.11-1.19-.12-.28-.39-.35-.63-.35a2%202%200%200%200-1.01.33l.08-.31-.04-.06c-.57.12-.7.13-1.22.2l-.04.04c-.06.5-.11.88-.34%201.86l-.26%201.1.02.04c.54-.03.7-.03%201.16-.02m3.89.02.23-1.12.18-.73s.05-.08.1-.1h.08c.74%200%201.56%200%202.21-.48a2.4%202.4%200%200%200%20.94-1.89q.01-.36-.17-.62c-.33-.47-1-.48-1.75-.48h-.38c-.98.02-1.37.01-1.53%200l-.04.2-.35%201.61-.87%203.6zm.64-2.87.37-1.61.02-.09v-.06l.15.02.78.06c.3.12.43.42.34.82a1.2%201.2%200%200%201-.61.8c-.25.13-.55.14-.86.14h-.2zm2.32%201.39c-.1.42-.21%201.18.48%201.45q.34.14.63.12.32-.03.6-.28l-.05.2.03.04c.5-.03.66-.03%201.2-.02l.05-.04c.08-.47.16-.92.36-1.82l.3-1.28v-.04l-1.26.2-.04.03-.02.13a1%201%200%200%200-.4-.32c-.23-.1-.8.02-1.29.47-.34.31-.5.74-.6%201.16m1.19.03c.12-.52.26-.96.62-.96q.34.02.32.57l-.07.29-.11.46-.13.26a.6.6%200%200%201-.44.21c-.04%200-.26%200-.27-.32a2%202%200%200%201%20.08-.52Zm6.17-1.7-.04-.06c-.56.12-.66.13-1.17.2l-.04.04v.02c-.39.87-.38.69-.69%201.38v-.09l-.08-1.5-.05-.05c-.58.12-.6.13-1.13.2l-.05.04v.06c.07.35.05.27.12.82l.1.8c.06.43.09.65.15%201.32-.36.6-.45.83-.8%201.36l-.24.4-.1.08-.15.02h-.14l-.2.67.7.02c.4%200%20.66-.2.8-.45l.43-.75.04-.06c.3-.63%202.54-4.48%202.54-4.48m-7.35%208.87h-.3l1.1-3.61H29l.11-.38.01.42c-.01.25.2.48.72.44h.61l.21-.7h-.23q-.2%200-.18-.1l-.01-.42H29.1a16%2016%200%200%200-1.68.1c-.27.07-.55.27-.55.27l.1-.37h-1.05l-.22.74-1.11%203.67h-.22l-.2.7h2.1l-.06.22h1.04l.07-.23h.29zm-.87-2.88-.49.2.28-.93h.85l-.2.67s-.27.01-.44.06m.02%201.32-.44.07-.5.22.3-.96h.84zm-.48%201.57h-.84l.24-.8h.85zm2.04-2.24h1.22l-.18.57h-1.23l-.19.62h1.08l-.81%201.15a.3.3%200%200%201-.17.14l-.22.06h-.3l-.2.68h.78c.4%200%20.65-.19.82-.43l.56-.77.12.78c.03.15.14.23.2.27q.13.08.28.11l.27.01h.39l.23-.76h-.15c-.1%200-.24-.01-.27-.04l-.04-.16-.12-.78h-.5l.22-.26h1.23l.2-.62h-1.15l.18-.57h1.14l.2-.7h-3.38zm-10.3%202.4.3-.95h1.16l.21-.7h-1.17l.18-.58h1.15l.2-.68h-2.85l-.21.68h.65l-.17.58h-.66l-.21.72h.65l-.38%201.25c-.05.16.02.23.07.3a.3.3%200%200%200%20.21.16l.3.04H19l.23-.78-.58.08c-.12%200-.43-.02-.4-.12m.14-4.53-.3.54-.17.22q-.07.04-.26.04h-.16l-.2.68h.51c.25%200%20.44-.09.53-.13s.12-.02.2-.1l.17-.15h1.6l.21-.71h-1.17l.2-.39zm2.37%204.54q-.04-.04.03-.25l.44-1.45h1.56l.5-.01q.17-.02.37-.13a1%201%200%200%200%20.27-.25q.12-.15.27-.61l.55-1.83h-1.61s-.5.08-.72.16-.54.34-.54.34l.15-.5h-1l-1.4%204.64q-.08.27-.1.39c0%20.08.12.16.19.23.08.06.2.05.32.06l.55.02h.77l.23-.8-.68.07a.2.2%200%200%201-.15-.08m.75-2.68h1.64l-.1.33c-.02%200-.05-.02-.22%200H21.4zm.33-1.1h1.65l-.12.4s-.78%200-.9.02c-.55.09-.87.38-.87.38zm1.24%202.52-.06.1q-.05.03-.17.03h-.23l.01-.4h-.97l-.04%201.94c0%20.14.01.23.12.29.1.08.41.1.84.1h.6l.23-.73-.53.02-.18.01-.07-.04c-.02-.02-.06-.01-.05-.15v-.5l.55-.02c.3%200%20.43-.1.54-.19q.13-.13.18-.33l.1-.44h-.77z'/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
unionpay 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%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%23e21836'%20d='M9.04%208.75H18c1.25%200%202.03%201.02%201.73%202.28l-4.17%2017.92a3.05%203.05%200%200%201-2.8%202.28H3.8c-1.25%200-2.03-1.02-1.74-2.28l4.18-17.92a3%203%200%200%201%202.8-2.28'/%3e%3cpath%20fill='%2300447c'%20d='M17.26%208.75h10.31c1.26%200%20.7%201.02.4%202.28l-4.18%2017.92c-.3%201.26-.2%202.28-1.45%202.28H12.02c-1.25%200-2.03-1.02-1.73-2.28l4.17-17.92a3.05%203.05%200%200%201%202.8-2.28'/%3e%3cpath%20fill='%23007b84'%20d='M27.17%208.75h8.96c1.26%200%202.04%201.02%201.74%202.28L33.7%2028.95a3.05%203.05%200%200%201-2.8%202.28h-8.97c-1.26%200-2.03-1.02-1.74-2.28l4.18-17.92a3%203%200%200%201%202.8-2.28'/%3e%3cpath%20fill='%23fefefe'%20d='M11.38%2014.5c-.92%200-1.2%200-1.28-.03l-.66%203.04c-.13.58-.23%201-.56%201.26a1%201%200%200%201-.66.23q-.62%200-.7-.59v-.13l.13-.78s.65-2.62.77-2.97v-.03c-1.27%200-1.5%200-1.5-.02l-.05.19-.66%202.95-.06.25-.11.81q0%20.37.14.61c.3.53%201.17.61%201.66.61a3%203%200%200%200%201.63-.38c.7-.4.87-1.05%201.04-1.62l.07-.3s.67-2.71.79-3.06zm2.29%202.19a2%202%200%200%200-.73.17l-.28.16.09-.31-.05-.06c-.57.12-.7.13-1.21.2l-.05.04c-.06.5-.11.88-.34%201.86l-.26%201.1.03.04c.53-.02.7-.02%201.16-.02l.03-.04.2-.98.25-1.16q.18-.09.34-.1c.26%200%20.23.22.22.31%200%20.15-.1.65-.2%201.08l-.07.27-.14.6.02.04c.53-.02.7-.02%201.14-.02l.05-.04c.09-.47.1-.6.25-1.28l.08-.32c.14-.62.2-.93.1-1.19-.11-.28-.38-.35-.63-.35m2.56.64c-.28.06-.46.1-.64.12l-.62.09-.02.02-.02.01-.08.58q-.05.31-.16.8l-.13.45c-.04.1-.07.19-.14.45l.01.02.02.02.59-.02h.61l.03-.02.02-.02.07-.41.17-.75.15-.64.15-.65v-.02zm0-.87c-.25-.15-.7-.1-1%20.1s-.33.5-.08.65.7.1%201-.1.33-.5.08-.65m1.54%203.48c.52%200%201.04-.14%201.44-.56.3-.34.45-.85.5-1.06.15-.7.03-1.02-.12-1.22-.24-.3-.65-.4-1.08-.4-.26%200-.88.03-1.36.48-.35.32-.5.75-.6%201.17s-.21%201.19.49%201.47c.22.1.53.12.73.12m-.04-1.56c.12-.52.26-.97.62-.97.28%200%20.3.33.17.86-.02.12-.12.55-.26.74q-.15.2-.34.22c-.03%200-.26%200-.26-.34a2%202%200%200%201%20.07-.51m3.26%201.5.04-.05.2-.98c.06-.3.19-.93.25-1.16q.18-.09.34-.1c.26%200%20.23.22.22.31-.01.15-.1.65-.2%201.08l-.06.27-.15.6.02.04a12%2012%200%200%201%201.14-.02l.05-.04c.08-.47.1-.6.25-1.28l.07-.32c.14-.62.22-.93.11-1.19-.12-.28-.39-.35-.63-.35a2%202%200%200%200-1.01.33l.08-.31-.04-.06c-.57.12-.7.13-1.22.2l-.04.04c-.06.5-.11.88-.34%201.86l-.26%201.1.02.04c.54-.03.7-.03%201.16-.02m3.89.02.23-1.12.18-.73s.05-.08.1-.1h.08c.74%200%201.56%200%202.21-.48a2.4%202.4%200%200%200%20.94-1.89q.01-.36-.17-.62c-.33-.47-1-.48-1.75-.48h-.38c-.98.02-1.37.01-1.53%200l-.04.2-.35%201.61-.87%203.6zm.64-2.87.37-1.61.02-.09v-.06l.15.02.78.06c.3.12.43.42.34.82a1.2%201.2%200%200%201-.61.8c-.25.13-.55.14-.86.14h-.2zm2.32%201.39c-.1.42-.21%201.18.48%201.45q.34.14.63.12.32-.03.6-.28l-.05.2.03.04c.5-.03.66-.03%201.2-.02l.05-.04c.08-.47.16-.92.36-1.82l.3-1.28v-.04l-1.26.2-.04.03-.02.13a1%201%200%200%200-.4-.32c-.23-.1-.8.02-1.29.47-.34.31-.5.74-.6%201.16m1.19.03c.12-.52.26-.96.62-.96q.34.02.32.57l-.07.29-.11.46-.13.26a.6.6%200%200%201-.44.21c-.04%200-.26%200-.27-.32a2%202%200%200%201%20.08-.52Zm6.17-1.7-.04-.06c-.56.12-.66.13-1.17.2l-.04.04v.02c-.39.87-.38.69-.69%201.38v-.09l-.08-1.5-.05-.05c-.58.12-.6.13-1.13.2l-.05.04v.06c.07.35.05.27.12.82l.1.8c.06.43.09.65.15%201.32-.36.6-.45.83-.8%201.36l-.24.4-.1.08-.15.02h-.14l-.2.67.7.02c.4%200%20.66-.2.8-.45l.43-.75.04-.06c.3-.63%202.54-4.48%202.54-4.48m-7.35%208.87h-.3l1.1-3.61H29l.11-.38.01.42c-.01.25.2.48.72.44h.61l.21-.7h-.23q-.2%200-.18-.1l-.01-.42H29.1a16%2016%200%200%200-1.68.1c-.27.07-.55.27-.55.27l.1-.37h-1.05l-.22.74-1.11%203.67h-.22l-.2.7h2.1l-.06.22h1.04l.07-.23h.29zm-.87-2.88-.49.2.28-.93h.85l-.2.67s-.27.01-.44.06m.02%201.32-.44.07-.5.22.3-.96h.84zm-.48%201.57h-.84l.24-.8h.85zm2.04-2.24h1.22l-.18.57h-1.23l-.19.62h1.08l-.81%201.15a.3.3%200%200%201-.17.14l-.22.06h-.3l-.2.68h.78c.4%200%20.65-.19.82-.43l.56-.77.12.78c.03.15.14.23.2.27q.13.08.28.11l.27.01h.39l.23-.76h-.15c-.1%200-.24-.01-.27-.04l-.04-.16-.12-.78h-.5l.22-.26h1.23l.2-.62h-1.15l.18-.57h1.14l.2-.7h-3.38zm-10.3%202.4.3-.95h1.16l.21-.7h-1.17l.18-.58h1.15l.2-.68h-2.85l-.21.68h.65l-.17.58h-.66l-.21.72h.65l-.38%201.25c-.05.16.02.23.07.3a.3.3%200%200%200%20.21.16l.3.04H19l.23-.78-.58.08c-.12%200-.43-.02-.4-.12m.14-4.53-.3.54-.17.22q-.07.04-.26.04h-.16l-.2.68h.51c.25%200%20.44-.09.53-.13s.12-.02.2-.1l.17-.15h1.6l.21-.71h-1.17l.2-.39zm2.37%204.54q-.04-.04.03-.25l.44-1.45h1.56l.5-.01q.17-.02.37-.13a1%201%200%200%200%20.27-.25q.12-.15.27-.61l.55-1.83h-1.61s-.5.08-.72.16-.54.34-.54.34l.15-.5h-1l-1.4%204.64q-.08.27-.1.39c0%20.08.12.16.19.23.08.06.2.05.32.06l.55.02h.77l.23-.8-.68.07a.2.2%200%200%201-.15-.08m.75-2.68h1.64l-.1.33c-.02%200-.05-.02-.22%200H21.4zm.33-1.1h1.65l-.12.4s-.78%200-.9.02c-.55.09-.87.38-.87.38zm1.24%202.52-.06.1q-.05.03-.17.03h-.23l.01-.4h-.97l-.04%201.94c0%20.14.01.23.12.29.1.08.41.1.84.1h.6l.23-.73-.53.02-.18.01-.07-.04c-.02-.02-.06-.01-.05-.15v-.5l.55-.02c.3%200%20.43-.1.54-.19q.13-.13.18-.33l.1-.44h-.77z'/%3e%3c/svg%3e";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=new Set(["https:","http:"]);exports.getQueryParam=function(t,e=window.location.search){return new URLSearchParams(e).get(t)},exports.safeUrlRedirect=function(e){const n=function(e){try{const n=new URL(e);return t.has(n.protocol)?e:""}catch{return""}}(e);n&&window.location.replace(n)};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const SAFE_PROTOCOLS = /* @__PURE__ */ new Set(["https:", "http:"]);
|
|
2
|
+
function getQueryParam(name, locationSearch = window.location.search) {
|
|
3
|
+
const currentUrl = new URLSearchParams(locationSearch);
|
|
4
|
+
return currentUrl.get(name);
|
|
5
|
+
}
|
|
6
|
+
function sanitizeUrl(url) {
|
|
7
|
+
try {
|
|
8
|
+
const parsed = new URL(url);
|
|
9
|
+
if (!SAFE_PROTOCOLS.has(parsed.protocol)) return "";
|
|
10
|
+
return url;
|
|
11
|
+
} catch {
|
|
12
|
+
return "";
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function safeUrlRedirect(url) {
|
|
16
|
+
const safe = sanitizeUrl(url);
|
|
17
|
+
if (safe) window.location.replace(safe);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
getQueryParam as g,
|
|
21
|
+
safeUrlRedirect as s
|
|
22
|
+
};
|
package/dist/{useActionDispatchProvider-D55t_7LY.mjs → useActionDispatchProvider-BVOBO0Jx.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject } from "vue";
|
|
2
|
-
import { A as ACTION_DISPATCHER_PROVIDER_INJECTION_KEY } from "./customElements-
|
|
2
|
+
import { A as ACTION_DISPATCHER_PROVIDER_INJECTION_KEY } from "./customElements-B-89a5oH.mjs";
|
|
3
3
|
function useActionDispatchProvider() {
|
|
4
4
|
const dispatchAction = inject(ACTION_DISPATCHER_PROVIDER_INJECTION_KEY);
|
|
5
5
|
if (!dispatchAction) {
|
package/dist/{useActionDispatchProvider-Cz8xLLYA.js → useActionDispatchProvider-Cv9amjTf.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=require("vue"),e=require("./customElements-
|
|
1
|
+
const t=require("vue"),e=require("./customElements-DD7bpqkx.js");exports.useActionDispatchProvider=function(){const i=t.inject(e.ACTION_DISPATCHER_PROVIDER_INJECTION_KEY);if(!i)throw new Error("dispatchAction is not provided");return{dispatchAction:i}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),r=require("./customer-
|
|
1
|
+
const e=require("vue"),r=require("./customer-DozNwS_a.js"),t=require("./useService-D73FNBjT.js");exports.useCustomer=function({customerId:u}){const{getCustomer:s,updateCustomer:c}=r.createCustomerService(),a=e.ref(),{data:o,...i}=t.useService({service:async()=>{const e=await s(u);return a.value=e,e}}),{data:n,...v}=t.useService({service:async e=>{const r=await c(u,e);return a.value=r,r}});return{customer:a,get:i,update:v}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref } from "vue";
|
|
2
|
-
import { c as createCustomerService } from "./customer-
|
|
2
|
+
import { c as createCustomerService } from "./customer-Dzj1g9lV.mjs";
|
|
3
3
|
import { u as useService } from "./useService-W3Kxems4.mjs";
|
|
4
4
|
function useCustomer({ customerId }) {
|
|
5
5
|
const { getCustomer, updateCustomer } = createCustomerService();
|