@solvimon/solvimon-web 0.1.0-alpha.20 → 0.1.0-alpha.21
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/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B9WTpz0k.js +1 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DJCMa2Lz.mjs +223 -0
- package/dist/Amount.vue.es-DExaYBqm.js +1 -0
- package/dist/Amount.vue.es-DPqHB8Xd.mjs +22 -0
- package/dist/Avatar.vue.es-CJw5z7Uu.js +1 -0
- package/dist/Avatar.vue.es-ChcLSNaN.mjs +81 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-CTQ5RMtx.js +1 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DApMAncl.mjs +60 -0
- package/dist/Button.vue.es-BWl37nzm.js +1 -0
- package/dist/Button.vue.es-VQCd3V3C.mjs +368 -0
- package/dist/Checkout.entry.ce-BTVuGyNq.js +1 -0
- package/dist/Checkout.entry.ce-DRHqEFd7.mjs +3674 -0
- package/dist/Chip.vue.es-CXG8o1Qf.mjs +114 -0
- package/dist/Chip.vue.es-DUgjuRWm.js +1 -0
- package/dist/Comparators.vue.es-CwhX3rbx.mjs +93 -0
- package/dist/Comparators.vue.es-DmkxV0gb.js +1 -0
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
- package/dist/ContentWithAsideLayout-C6yMIVJF.js +1 -0
- package/dist/ContextMenu.vue.es-BllxeDTt.js +1 -0
- package/dist/ContextMenu.vue.es-C6TKlSXs.mjs +573 -0
- package/dist/CustomerBillingInformation.vue.es-CKQH_ds0.mjs +153 -0
- package/dist/CustomerBillingInformation.vue.es-CMCZ-lIM.js +1 -0
- package/dist/CustomerPaymentMethods.lib-B_753rau.mjs +4 -0
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BxwllXwU.mjs +140 -0
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-n097Xf1H.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C_yKvYtG.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CtaoLbrM.mjs +2700 -0
- package/dist/Divider.vue.es-DnP_HqLz.mjs +22 -0
- package/dist/Divider.vue.es-UwnWvUTl.js +1 -0
- package/dist/DividerText.vue.es-BBdydUy_.js +1 -0
- package/dist/DividerText.vue.es-Bomiy4if.mjs +56 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C9elbdbF.mjs +335 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DXO9xpFT.js +1 -0
- package/dist/ErrorNotification.vue.es-0ZC_DozN.js +1 -0
- package/dist/ErrorNotification.vue.es-C6ngWAVU.mjs +31 -0
- package/dist/Expand.vue.es-BleuAfDz.mjs +32 -0
- package/dist/Expand.vue.es-BtM0EZEr.js +1 -0
- package/dist/FormMessage.vue.es-dqATjC2N.js +1 -0
- package/dist/FormMessage.vue.es-jG3fQZms.mjs +29 -0
- package/dist/IconButton.vue.es-DAR7e8NA.mjs +198 -0
- package/dist/IconButton.vue.es-DGLIdHkR.js +1 -0
- package/dist/IconTitle.vue.es-Bbusc4wK.mjs +103 -0
- package/dist/IconTitle.vue.es-D-q6w2E-.js +1 -0
- package/dist/Input.vue.es-AY1c0Rui.mjs +235 -0
- package/dist/Input.vue.es-BN95nPBw.js +1 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-1WjSbPEP.mjs +92 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-qiBCPY8l.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-BXTInmf9.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-D99nuBRE.mjs +41 -0
- package/dist/InvoiceSummary.vue.es-B0MPR0oI.js +1 -0
- package/dist/InvoiceSummary.vue.es-Bs5c2Ovx.mjs +2598 -0
- package/dist/Modal.vue.es-Chi6_MH_.js +1 -0
- package/dist/Modal.vue.es-DSkC4eMv.mjs +387 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Draz_8Ts.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-vD88j_U7.mjs +144 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DVif_ME8.mjs +51 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Db6jAkqD.js +1 -0
- package/dist/{PaymentHistoryBlock-Ci8aSJeb.js → PaymentHistoryBlock-DGJ_PiVq.js} +1 -1
- package/dist/PaymentHistoryBlock-budeR7ep.mjs +4 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C28ofG7N.mjs +93 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dv-3suBX.js +1 -0
- package/dist/PaymentIntegrationForm-Crrhar96.mjs +4 -0
- package/dist/{PaymentIntegrationForm-CsuueDE0.js → PaymentIntegrationForm-DqqGcEP1.js} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C4bk0m8g.mjs +138 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CcEEdHQJ.js +1 -0
- package/dist/PaymentIntegrationFormAdyen-DM-xMcm0.mjs +621 -0
- package/dist/PaymentIntegrationFormAdyen-DronjwO3.js +98 -0
- package/dist/PaymentIntegrationFormStripe-yBm4KnpV.mjs +488 -0
- package/dist/PaymentIntegrationFormStripe-ybM6wirp.js +102 -0
- package/dist/PaymentMethod.vue.es-BdMcKq8_.mjs +623 -0
- package/dist/PaymentMethod.vue.es-Ctw9Es1g.js +1 -0
- package/dist/{PaymentMethodForm-hZuVHAti.js → PaymentMethodForm-BQ5TVHlS.js} +1 -1
- package/dist/PaymentMethodForm-C1bIGX10.mjs +4 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-5KKkuVt5.mjs +167 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-V88bCeDt.js +1 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-B_207kq5.js +1 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CnmZ9dvP.mjs +169 -0
- package/dist/PlanCustomizationEditor-CCOTD6Qu.mjs +769 -0
- package/dist/PlanCustomizationEditor-CiZnVCM6.js +1 -0
- package/dist/PricingGroupRangeInput.vue.es-Bnb-ARie.mjs +627 -0
- package/dist/PricingGroupRangeInput.vue.es-D82XvoC_.js +185 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CxMkCmti.js +1 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-skQMgHEL.mjs +131 -0
- package/dist/RadioGroupExtended.vue.es-B1YtLNKG.js +1 -0
- package/dist/RadioGroupExtended.vue.es-WDbo_yj1.mjs +163 -0
- package/dist/Section.vue.es-By1JltGi.mjs +72 -0
- package/dist/Section.vue.es-DuK52y67.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CS3KIkPL.mjs +687 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Ct3ZNq-j.js +1 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs +51 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js +1 -0
- package/dist/SubscriptionSchedules-DDCjVEbG.mjs +4 -0
- package/dist/SubscriptionSchedules-DEjIERyF.js +1 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BlX0W6lw.js +1 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-JAedXFzq.mjs +5256 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-D-Fa54M6.js +1 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-DVMS4gJQ.mjs +91 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-BckZJtOc.mjs +284 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DiXmEjUD.js +1 -0
- package/dist/TooltipParagraph.vue.es-DYu2ReL7.mjs +129 -0
- package/dist/TooltipParagraph.vue.es-sTgWAgcd.js +1 -0
- package/dist/TrialChip.vue.es-Cl-9_pdr.js +1 -0
- package/dist/TrialChip.vue.es-DX53r0ku.mjs +35 -0
- package/dist/accel.svg.es-C0hqmmEY.mjs +4 -0
- package/dist/accel.svg.es-DFJXdioD.js +1 -0
- package/dist/ach.svg.es-BYP873jU.js +1 -0
- package/dist/ach.svg.es-DduMiYM2.mjs +4 -0
- package/dist/adyen-BJfC7N6f.js +1 -0
- package/dist/adyen-Bugab0JE.mjs +4 -0
- package/dist/adyen-CvsH5fok.mjs +117 -0
- package/dist/adyen-Druit6gz.js +1 -0
- package/dist/adyenSdk-B01MB9Ia.mjs +58 -0
- package/dist/adyenSdk-BP2XXzeJ.js +1 -0
- package/dist/amazon-pay.svg.es-BACIX6C7.mjs +4 -0
- package/dist/amazon-pay.svg.es-CQWgtowB.js +1 -0
- package/dist/amex.svg.es-DKhW4Txt.js +1 -0
- package/dist/amex.svg.es-DjTEMRVg.mjs +4 -0
- package/dist/api.es-QaC926Xu.mjs +43 -0
- package/dist/api.es-duCDtZD9.js +1 -0
- package/dist/apple-pay.svg.es-B3tkA54p.mjs +4 -0
- package/dist/apple-pay.svg.es-Dyojd0F-.js +1 -0
- package/dist/bacs.svg.es-CZIjZIE8.mjs +4 -0
- package/dist/bacs.svg.es-GJpZs1sD.js +1 -0
- package/dist/bancontact.svg.es-B26-JwdE.mjs +4 -0
- package/dist/bancontact.svg.es-BQh7nAup.js +1 -0
- package/dist/carnet.svg.es-BtO3AmNu.mjs +4 -0
- package/dist/carnet.svg.es-DY04-F2L.js +1 -0
- package/dist/cartes-bancaires.svg.es-BleHMlkN.js +1 -0
- package/dist/cartes-bancaires.svg.es-DEPpdLvi.mjs +4 -0
- package/dist/cashapp.svg.es-DOGwRjXp.mjs +4 -0
- package/dist/cashapp.svg.es-MwXGYom6.js +1 -0
- package/dist/cn.es-CNvIP217.js +1 -0
- package/dist/{cn.es-BEU5D0Wz.mjs → cn.es-DjnGlmqV.mjs} +657 -927
- package/dist/comparators.es-D8WGL-c4.mjs +153 -0
- package/dist/comparators.es-OGt19O9U.js +1 -0
- package/dist/component-5wqcK7yz.mjs +8 -0
- package/dist/component-B7ZDyqBp.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +39 -48
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +256 -307
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +43 -52
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +372 -430
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +55 -65
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +41 -46
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
- package/dist/components/InvoicesList/InvoicesList.mjs +43 -53
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.mjs +58 -68
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +51 -63
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +41 -50
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +49 -60
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
- package/dist/components/WalletBalances/WalletBalances.mjs +59 -70
- package/dist/configuration-BytDBAWs.mjs +14 -0
- package/dist/configuration-akTS7Wiw.js +1 -0
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +89 -104
- package/dist/{countryData.es--zJAd6LA.mjs → countryData.es-BegoD-cZ.mjs} +2 -2
- package/dist/countryData.es-C4jHBzfo.js +1 -0
- package/dist/customElements-Bt8PbjIn.js +1187 -0
- package/dist/customElements-Com2NiGU.mjs +6531 -0
- package/dist/customer-CKgMJEgv.mjs +31 -0
- package/dist/customer-Q4JGfVfq.js +1 -0
- package/dist/customer.es-B5ppZf0j.mjs +20 -0
- package/dist/customer.es-BButyYo0.js +1 -0
- package/dist/dana.svg.es-BDtZLpwd.js +1 -0
- package/dist/dana.svg.es-Cy8Q6DZi.mjs +4 -0
- package/dist/dankort.svg.es-B7VqJdWq.mjs +4 -0
- package/dist/dankort.svg.es-CksaipXF.js +1 -0
- package/dist/{de-DE-CI2zQkiP.mjs → de-DE-CVCmzlNH.mjs} +5 -5
- package/dist/{de-DE-BeyQVhTv.mjs → de-DE-DBO5f-Eu.mjs} +38 -56
- package/dist/{de-DE-_40QfLNJ.js → de-DE-DqLD4IX2.js} +1 -1
- package/dist/de-DE-Ds_yJLS3.js +1 -0
- package/dist/diners.svg.es-BP9enCow.mjs +4 -0
- package/dist/diners.svg.es-D6Mu1pqP.js +1 -0
- package/dist/discover.svg.es-DEsEJBYh.mjs +4 -0
- package/dist/discover.svg.es-DgqWCMUM.js +1 -0
- package/dist/eftpos.svg.es--js6-yfk.mjs +4 -0
- package/dist/eftpos.svg.es-Dk2DOT8W.js +1 -0
- package/dist/elo.svg.es-C-BzjuRP.js +1 -0
- package/dist/elo.svg.es-CMZPAxcn.mjs +4 -0
- package/dist/{en-US-5YWNEi-V.mjs → en-US-3UmnS23B.mjs} +38 -56
- package/dist/en-US-C51ILrVv.js +1 -0
- package/dist/{en-US--NRsi7Hz.js → en-US-CvFmmI_O.js} +1 -1
- package/dist/{en-US-DksUWPIu.mjs → en-US-DVR9O7b_.mjs} +5 -5
- package/dist/eps.svg.es-B_85bP-W.js +1 -0
- package/dist/eps.svg.es-CzIPBSb9.mjs +4 -0
- package/dist/error-BHVZJGwD.mjs +13 -0
- package/dist/error-CmduqgVq.js +1 -0
- package/dist/floating-ui.vue.es-Bly3DGWm.js +1 -0
- package/dist/floating-ui.vue.es-CYt0fSY7.mjs +1108 -0
- package/dist/formatting.es-C72Nsrmh.js +1 -0
- package/dist/formatting.es-RclXHhKo.mjs +61 -0
- package/dist/gcash.svg.es-BKAdhWzv.js +1 -0
- package/dist/gcash.svg.es-BpDtvraq.mjs +4 -0
- package/dist/getComposedString.es-C__uhJpd.mjs +10 -0
- package/dist/getComposedString.es-haS4bAj7.js +1 -0
- package/dist/getCountryNameByCode.es-BDHua7VM.mjs +8 -0
- package/dist/getCountryNameByCode.es-Xxc0nZsH.js +1 -0
- package/dist/girocard.svg.es-HSOEvDif.js +1 -0
- package/dist/girocard.svg.es-Riswtk8Z.mjs +4 -0
- package/dist/go-pay.svg.es-CiIyLELZ.mjs +4 -0
- package/dist/go-pay.svg.es-DQjtunZ_.js +1 -0
- package/dist/google-pay.svg.es-Dgj_N6nz.mjs +4 -0
- package/dist/google-pay.svg.es-hzc_EgiJ.js +1 -0
- package/dist/hipercard.svg.es-B80bu8Vd.mjs +4 -0
- package/dist/hipercard.svg.es-CbCsRY2q.js +1 -0
- package/dist/icon-sprite.svg.es-Bt21fMEt.mjs +4 -0
- package/dist/icon-sprite.svg.es-Dauis9LS.js +1 -0
- package/dist/ideal.svg.es-Booz1IML.js +1 -0
- package/dist/ideal.svg.es-DaqTS2Ax.mjs +4 -0
- package/dist/index-BPU8tIml.mjs +828 -0
- package/dist/index-BPZPnOQQ.js +7 -0
- package/dist/index-CTwLxoOS.mjs +7250 -0
- package/dist/index-DwueOtPi.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.es-BclokHQX.js +1 -0
- package/dist/index.es-CXkP_k3u.mjs +345 -0
- package/dist/index.mjs +40 -40
- package/dist/invoices-CV9iAUHf.mjs +115 -0
- package/dist/invoices-CvpL4rv5.js +1 -0
- package/dist/{it-IT-CMy1tHKZ.mjs → it-IT-CDMnnFKZ.mjs} +5 -5
- package/dist/{it-IT-aPQY57ht.js → it-IT-CFEfSpPH.js} +1 -1
- package/dist/{it-IT-B6blp8MI.mjs → it-IT-CxBRisRm.mjs} +38 -56
- package/dist/it-IT-Dxw59eR_.js +1 -0
- package/dist/jcb.svg.es-B3WPB8c2.js +1 -0
- package/dist/jcb.svg.es-Couw-2p9.mjs +4 -0
- package/dist/kakao-pay.svg.es-CIFT8fob.mjs +4 -0
- package/dist/kakao-pay.svg.es-Cs-lCW74.js +1 -0
- package/dist/klarna.svg.es-Cs6XaHD7.js +1 -0
- package/dist/klarna.svg.es-WKt8_NZa.mjs +4 -0
- package/dist/maestro.svg.es-BvK4oPg4.js +1 -0
- package/dist/maestro.svg.es-DbdxwYUE.mjs +4 -0
- package/dist/mastercard.svg.es-B7T3PS12.mjs +4 -0
- package/dist/mastercard.svg.es-lp4AXyyV.js +1 -0
- package/dist/momo.svg.es-C5aLYf_R.js +1 -0
- package/dist/momo.svg.es-X5XB25fM.mjs +4 -0
- package/dist/{nl-NL-CjoW8r_M.mjs → nl-NL-BWGkVweu.mjs} +38 -56
- package/dist/nl-NL-Btbfd9p2.js +1 -0
- package/dist/{nl-NL-zRUAuEHg.js → nl-NL-jtVgF3jx.js} +1 -1
- package/dist/{nl-NL-CckNM7R9.mjs → nl-NL-o3UvtSNg.mjs} +5 -5
- package/dist/nyce.svg.es-ArAivAZW.js +1 -0
- package/dist/nyce.svg.es-DcPsO_sh.mjs +4 -0
- package/dist/object.es-8aLDIncs.mjs +12 -0
- package/dist/object.es-CdriXMPs.js +1 -0
- package/dist/open-banking.svg.es-C4mPhwsn.mjs +4 -0
- package/dist/open-banking.svg.es-Q3rRkCvP.js +1 -0
- package/dist/paymentMethods-BuwoJ1y9.mjs +75 -0
- package/dist/paymentMethods-ChWAwDSF.js +1 -0
- package/dist/payments-C_cMXQzE.mjs +45 -0
- package/dist/payments-DGckugN0.js +1 -0
- package/dist/paypal.svg.es-BC2AP20j.mjs +4 -0
- package/dist/paypal.svg.es-Cjp5sNI3.js +1 -0
- package/dist/pricing-BVAld27Y.js +1 -0
- package/dist/pricing-DLOeiAIB.mjs +16 -0
- package/dist/pricingItemConfigs.es-DMf1e6y7.mjs +76 -0
- package/dist/pricingItemConfigs.es-DlybwIh1.js +1 -0
- package/dist/pricingPlanSchedule-COfmWv_o.js +1 -0
- package/dist/pricingPlanSchedule-J1nb9pCu.mjs +129 -0
- package/dist/pulse.svg.es-Dit33E8S.js +1 -0
- package/dist/pulse.svg.es-Rmoz-9Ej.mjs +4 -0
- package/dist/screens/Checkout/Checkout.cjs +1 -1
- package/dist/screens/Checkout/Checkout.mjs +3 -5237
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +112 -138
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +348 -397
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +153 -170
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +609 -720
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +466 -555
- package/dist/sepa.svg.es-0t4DKeA1.js +1 -0
- package/dist/sepa.svg.es-DIO_K345.mjs +4 -0
- package/dist/slots.es-BA4MyEAa.mjs +5 -0
- package/dist/slots.es-T9ZJRGtG.js +1 -0
- package/dist/sorting.es-DCihKqD2.mjs +77 -0
- package/dist/sorting.es-DQsjKr8A.js +1 -0
- package/dist/star.svg.es-BUZNUnYq.mjs +4 -0
- package/dist/star.svg.es-D2JncY7b.js +1 -0
- package/dist/subscription-9GORG-Gt.js +1 -0
- package/dist/subscription-CvfAEJeP.mjs +69 -0
- package/dist/subscriptions-B5VqRayX.mjs +55 -0
- package/dist/subscriptions-X0Ciw8z3.js +1 -0
- package/dist/trustly.svg.es-AM7Ha-3Y.mjs +4 -0
- package/dist/trustly.svg.es-GJByiFAs.js +1 -0
- package/dist/twint.svg.es-BJ2f48og.js +1 -0
- package/dist/twint.svg.es-DZogAQG6.mjs +4 -0
- package/dist/typeGuards.es-B4XMtlkM.mjs +8 -0
- package/dist/typeGuards.es-DS3vZaJn.js +1 -0
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +6 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +2 -1
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +7 -0
- package/dist/unionpay.svg.es-DjFZ5EMQ.js +1 -0
- package/dist/unionpay.svg.es-me7q-nTI.mjs +4 -0
- package/dist/url-BNKStNY9.js +1 -0
- package/dist/url-DwiuKYpu.mjs +20 -0
- package/dist/useActionDispatchProvider-B54GYEY7.js +1 -0
- package/dist/useActionDispatchProvider-e2lQXTid.mjs +11 -0
- package/dist/useCustomer-BJwJ9BkJ.js +1 -0
- package/dist/useCustomer-CC9zxV6c.mjs +20 -0
- package/dist/useCustomerFormLabels-72Pxw8X5.js +1 -0
- package/dist/useCustomerFormLabels-V2YuYMLU.mjs +930 -0
- package/dist/useExperimentalFeature-8Mzpj5wc.js +1 -0
- package/dist/useExperimentalFeature-B0IFn3Uw.mjs +6 -0
- package/dist/useIncrementalLoading-CaWOE8Xl.js +1 -0
- package/dist/useIncrementalLoading-Cgxw2GD7.mjs +48 -0
- package/dist/useInvoiceData-6mHUZC9a.mjs +38 -0
- package/dist/useInvoiceData-Bblwdl0f.js +1 -0
- package/dist/useInvoicesList-B5H5JfvY.mjs +500 -0
- package/dist/useInvoicesList-_U1-tn9_.js +1 -0
- package/dist/useLoadInitialData-CezlvhBV.js +1 -0
- package/dist/useLoadInitialData-ux_wpNiR.mjs +15 -0
- package/dist/usePaymentMethodAvailability-CkR4TwoV.mjs +118 -0
- package/dist/usePaymentMethodAvailability-DRwrBdto.js +1 -0
- package/dist/usePaymentMethodOptions-B6GIM9q4.js +1 -0
- package/dist/usePaymentMethodOptions-BfnLBZOo.mjs +37 -0
- package/dist/usePaymentMethods-C3QfLSrP.mjs +15 -0
- package/dist/usePaymentMethods-GFmQRp0X.js +1 -0
- package/dist/usePayments-BkwGyZT0.mjs +318 -0
- package/dist/usePayments-SQF_V7oL.js +1 -0
- package/dist/usePortal-BdM7hDge.js +1 -0
- package/dist/usePortal-DDG9b6FI.mjs +11 -0
- package/dist/useService-Bh47bllz.mjs +50 -0
- package/dist/useService-H7BjLg8P.js +1 -0
- package/dist/useSubscription-BJJYHYgr.mjs +210 -0
- package/dist/useSubscription-Q4C2DPhw.js +1 -0
- package/dist/useTimePeriod.es-9tZvAhyb.mjs +93 -0
- package/dist/useTimePeriod.es-pepm2TpV.js +1 -0
- package/dist/useViewport-BgdA2PPt.mjs +29 -0
- package/dist/useViewport-hPRVDWCm.js +1 -0
- package/dist/useWatchDebounced-CAU1WI1P.js +1 -0
- package/dist/useWatchDebounced-DT5IicPp.mjs +14 -0
- package/dist/visa.svg.es-B0T5Su99.mjs +4 -0
- package/dist/visa.svg.es-NY3BHhda.js +1 -0
- package/dist/vpay.svg.es-VViQi42w.js +1 -0
- package/dist/vpay.svg.es-Zt3rrmCy.mjs +4 -0
- package/dist/zip.svg.es-C9S_F31W.js +1 -0
- package/dist/zip.svg.es-QC6dxzC7.mjs +4 -0
- package/package.json +3 -3
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Ce30EXY5.mjs +0 -240
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-kmam2c7P.js +0 -1
- package/dist/Amount.vue.es-BO5sS1UX.mjs +0 -25
- package/dist/Amount.vue.es-JDVa_3H-.js +0 -1
- package/dist/Avatar.vue.es-BGTZSAqU.js +0 -1
- package/dist/Avatar.vue.es-DJzJiYtv.mjs +0 -91
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-Bq2mTdUs.mjs +0 -66
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BtNTRSqH.js +0 -1
- package/dist/Button.vue.es-Cm9pLU9i.mjs +0 -421
- package/dist/Button.vue.es-O8mNivLL.js +0 -1
- package/dist/Chip.vue.es-BBmn-qJp.mjs +0 -120
- package/dist/Chip.vue.es-DmCjC1hi.js +0 -1
- package/dist/Comparators.vue.es-CYfxd5H-.mjs +0 -120
- package/dist/Comparators.vue.es-DK8wGjxM.js +0 -1
- package/dist/ContentWithAsideLayout-DHpnJfGA.js +0 -1
- package/dist/ContentWithAsideLayout-Dy9xgxuF.mjs +0 -39
- package/dist/ContextMenu.vue.es-CTc1ktXb.mjs +0 -681
- package/dist/ContextMenu.vue.es-DaW0yp4Y.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-BX0Da7Kr.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-CMZO8oLj.mjs +0 -175
- package/dist/CustomerPaymentMethods.lib-CcSt0sl1.mjs +0 -4
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bi_dCntQ.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CtdFharm.mjs +0 -150
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BDqBXbJq.mjs +0 -3264
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-ZyN2vlNu.js +0 -1
- package/dist/Divider.vue.es-ClFG8QtG.js +0 -1
- package/dist/Divider.vue.es-wKkIVBgb.mjs +0 -24
- package/dist/DividerText.vue.es-CeAHAe_Y.mjs +0 -72
- package/dist/DividerText.vue.es-DjT4i_YD.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DLE5-9wz.mjs +0 -562
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DkIK-lID.js +0 -1
- package/dist/ErrorNotification.vue.es-CHyVTBGs.mjs +0 -38
- package/dist/ErrorNotification.vue.es-CaEFTi2k.js +0 -1
- package/dist/Expand.vue.es-C-lnbA1v.js +0 -1
- package/dist/Expand.vue.es-C4_XmqbR.mjs +0 -50
- package/dist/FormMessage.vue.es-Bd4_NG9H.js +0 -1
- package/dist/FormMessage.vue.es-C3oxwq_8.mjs +0 -46
- package/dist/IconButton.vue.es-BHdQskx0.js +0 -1
- package/dist/IconButton.vue.es-KywqWWvr.mjs +0 -228
- package/dist/IconTitle.vue.es-BmjBdZb_.mjs +0 -107
- package/dist/IconTitle.vue.es-D9Wc3PIq.js +0 -1
- package/dist/Input.vue.es-DqKJhFTr.js +0 -1
- package/dist/Input.vue.es-WZGF8dfr.mjs +0 -251
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B6efz7NU.mjs +0 -97
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-LE6zBLKM.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-C2aLMfu6.mjs +0 -49
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-CtpFzWU3.js +0 -1
- package/dist/InvoiceSummary.vue.es-BI5sD_8F.mjs +0 -2944
- package/dist/InvoiceSummary.vue.es-BWYIHezU.js +0 -1
- package/dist/Modal.vue.es-B_1aqm_m.js +0 -1
- package/dist/Modal.vue.es-qdUHDOnU.mjs +0 -483
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-BKKXQbge.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Ch1TFO7x.mjs +0 -154
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CsH47WSM.mjs +0 -54
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-mKNNYnMU.js +0 -1
- package/dist/PaymentHistoryBlock-CgNUV8Gy.mjs +0 -4
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DZwnDzha.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Uj1aK-dp.mjs +0 -101
- package/dist/PaymentIntegrationForm-CLokpXvK.mjs +0 -4
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CRUs7sP4.mjs +0 -167
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-kKkzRi6w.js +0 -1
- package/dist/PaymentIntegrationFormAdyen-C885o8IE.mjs +0 -699
- package/dist/PaymentIntegrationFormAdyen-Co19AgvG.js +0 -1
- package/dist/PaymentIntegrationFormStripe-BjMdJmDC.mjs +0 -547
- package/dist/PaymentIntegrationFormStripe-DWff6wzK.js +0 -1
- package/dist/PaymentMethod.vue.es-CdskNJ3Z.js +0 -1
- package/dist/PaymentMethod.vue.es-rv-pu1CC.mjs +0 -677
- package/dist/PaymentMethodForm-IEuDxEPN.mjs +0 -4
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-Cj60U90J.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-gA74Rak9.mjs +0 -172
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-B3H_AWMM.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CTn-OxM6.mjs +0 -189
- package/dist/PricingGroupRangeInput.vue.es-ButaePib.mjs +0 -632
- package/dist/PricingGroupRangeInput.vue.es-Cls2lm80.js +0 -1
- package/dist/Section.vue.es-CAJvEDn6.js +0 -1
- package/dist/Section.vue.es-DX_9ueCG.mjs +0 -79
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CQAkPfJz.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DVtMzgjc.mjs +0 -1044
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs +0 -78
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BJVXCHny.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-ByO-L6nm.mjs +0 -6171
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C5zB3CgZ.mjs +0 -101
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CabskT-r.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D-T1wGg7.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DKd2DIVb.mjs +0 -309
- package/dist/TooltipParagraph.vue.es-C5RTcrid.mjs +0 -136
- package/dist/TooltipParagraph.vue.es-H9fI7zzt.js +0 -1
- package/dist/TrialChip.vue.es-B1puKyR-.mjs +0 -56
- package/dist/TrialChip.vue.es-CCs50m02.js +0 -1
- package/dist/accel.svg.es-CE5tIWtm.mjs +0 -4
- package/dist/accel.svg.es-Dt_1wJmV.js +0 -1
- package/dist/ach.svg.es-B4tn0_IV.js +0 -1
- package/dist/ach.svg.es-D4QPcIU-.mjs +0 -4
- package/dist/adyen-51SvcyqV.mjs +0 -4
- package/dist/adyen-BXi_D9TQ.mjs +0 -123
- package/dist/adyen-DZsyEXkw.js +0 -1
- package/dist/adyen-VS2sDW0m.js +0 -1
- package/dist/amazon-pay.svg.es-B428S4f3.js +0 -1
- package/dist/amazon-pay.svg.es-DUScOW15.mjs +0 -4
- package/dist/amex.svg.es-BCXkaVLN.mjs +0 -4
- package/dist/amex.svg.es-Bn9e31C3.js +0 -1
- package/dist/api.es-C5pe8LUl.mjs +0 -62
- package/dist/api.es-Czekkp_X.js +0 -1
- package/dist/apple-pay.svg.es-Cfgn0K28.js +0 -1
- package/dist/apple-pay.svg.es-DlCfkt39.mjs +0 -4
- package/dist/bacs.svg.es-BKsvSeIP.mjs +0 -4
- package/dist/bacs.svg.es-hL7hLPkQ.js +0 -1
- package/dist/bancontact.svg.es-BbRqGgZ9.mjs +0 -4
- package/dist/bancontact.svg.es-DU2ejvNL.js +0 -1
- package/dist/carnet.svg.es-C5SFaOsa.js +0 -1
- package/dist/carnet.svg.es-Db-KEb13.mjs +0 -4
- package/dist/cartes-bancaires.svg.es-ByD-JAAi.mjs +0 -4
- package/dist/cartes-bancaires.svg.es-CbBJQZrk.js +0 -1
- package/dist/cashapp.svg.es-CnS5r_D8.mjs +0 -4
- package/dist/cashapp.svg.es-DE4vMu_p.js +0 -1
- package/dist/cn.es-DxSeYcoP.js +0 -1
- package/dist/comparators.es-9VsCB-JI.mjs +0 -175
- package/dist/comparators.es-wrKHduVq.js +0 -1
- package/dist/component-BG6DmXcy.mjs +0 -9
- package/dist/component-hDuDTBt5.js +0 -1
- package/dist/configuration-BjYwV4_B.js +0 -1
- package/dist/configuration-CD8cOXAJ.mjs +0 -15
- package/dist/countryData.es-D3MFzU92.js +0 -1
- package/dist/customElements-B-89a5oH.mjs +0 -6810
- package/dist/customElements-DD7bpqkx.js +0 -1
- package/dist/customer-DozNwS_a.js +0 -1
- package/dist/customer-Dzj1g9lV.mjs +0 -32
- package/dist/customer.es-C_vSWcVA.mjs +0 -30
- package/dist/customer.es-D42Md24r.js +0 -1
- package/dist/dana.svg.es-Bbn6_ktN.mjs +0 -4
- package/dist/dana.svg.es-DKZaseoJ.js +0 -1
- package/dist/dankort.svg.es-D8FgSiFf.js +0 -1
- package/dist/dankort.svg.es-DtAdliQq.mjs +0 -4
- package/dist/de-DE-BvHD68Ay.js +0 -1
- package/dist/diners.svg.es-DhchsD1D.mjs +0 -4
- package/dist/diners.svg.es-SydF_H-Z.js +0 -1
- package/dist/discover.svg.es-B8vgzVNG.js +0 -1
- package/dist/discover.svg.es-BnqYPvnV.mjs +0 -4
- package/dist/eftpos.svg.es-DO0YPaY1.js +0 -1
- package/dist/eftpos.svg.es-DRLaafYa.mjs +0 -4
- package/dist/elo.svg.es-CTOm1rvj.js +0 -1
- package/dist/elo.svg.es-CgkEOP_O.mjs +0 -4
- package/dist/en-US-dqfKx3GS.js +0 -1
- package/dist/eps.svg.es-CApyGjyU.js +0 -1
- package/dist/eps.svg.es-D6IHsRYP.mjs +0 -4
- package/dist/error-Cg-i7gGl.js +0 -1
- package/dist/error-DY_I2hPx.mjs +0 -13
- package/dist/floating-ui.vue.es-Bv94BfDm.js +0 -1
- package/dist/floating-ui.vue.es-DWY7pdz8.mjs +0 -1573
- package/dist/formatting.es-DBtYnvI5.js +0 -1
- package/dist/formatting.es-eYgXv_AK.mjs +0 -70
- package/dist/gcash.svg.es-BhJ-eA2z.mjs +0 -4
- package/dist/gcash.svg.es-JaL4fpZr.js +0 -1
- package/dist/getComposedString.es-CELkn0I7.mjs +0 -14
- package/dist/getComposedString.es-DvSNX-_z.js +0 -1
- package/dist/getCountryNameByCode.es-fP52nO_7.js +0 -1
- package/dist/getCountryNameByCode.es-ymC9R46j.mjs +0 -8
- package/dist/girocard.svg.es-D_3LML4l.mjs +0 -4
- package/dist/girocard.svg.es-tVgtT23w.js +0 -1
- package/dist/go-pay.svg.es-6UtgwVBA.mjs +0 -4
- package/dist/go-pay.svg.es-fYX6yMzJ.js +0 -1
- package/dist/google-pay.svg.es-BYXX1em8.js +0 -1
- package/dist/google-pay.svg.es-CRxXgFVl.mjs +0 -4
- package/dist/hipercard.svg.es-Ct1-mF9F.mjs +0 -4
- package/dist/hipercard.svg.es-D-nmiFXB.js +0 -1
- package/dist/icon-sprite.svg.es-BpwT0GQ5.js +0 -1
- package/dist/icon-sprite.svg.es-YYqtl2IP.mjs +0 -4
- package/dist/ideal.svg.es-D23EhJJ2.mjs +0 -4
- package/dist/ideal.svg.es-DXtHE0Jb.js +0 -1
- package/dist/index-Cai7laNY.mjs +0 -1069
- package/dist/index-DIFK3mcJ.js +0 -6
- package/dist/index-DyvRdSR7.mjs +0 -9673
- package/dist/index-IZaUTAsE.js +0 -1
- package/dist/index.es-2JWHHSgP.js +0 -1
- package/dist/index.es-D5xOw_SJ.mjs +0 -542
- package/dist/invoices-1oYkdQQV.mjs +0 -121
- package/dist/invoices-BAoh6X2a.js +0 -1
- package/dist/it-IT-CEP3oeWs.js +0 -1
- package/dist/jcb.svg.es-Bz6J-c0s.js +0 -1
- package/dist/jcb.svg.es-CcH08OoO.mjs +0 -4
- package/dist/kakao-pay.svg.es-DcgRDAsc.mjs +0 -4
- package/dist/kakao-pay.svg.es-qVTABboW.js +0 -1
- package/dist/klarna.svg.es-Clu-7zkp.js +0 -1
- package/dist/klarna.svg.es-DfIPX0gr.mjs +0 -4
- package/dist/maestro.svg.es-CVmNVokN.mjs +0 -4
- package/dist/maestro.svg.es-e8E_H2QU.js +0 -1
- package/dist/mastercard.svg.es-B8z0ZySS.mjs +0 -4
- package/dist/mastercard.svg.es-YO3_jGD6.js +0 -1
- package/dist/momo.svg.es-BXTQlQRy.js +0 -1
- package/dist/momo.svg.es-Bm5zCTOT.mjs +0 -4
- package/dist/nl-NL-e_vf6OuT.js +0 -1
- package/dist/nyce.svg.es-CgurqLKH.mjs +0 -4
- package/dist/nyce.svg.es-DM6esO47.js +0 -1
- package/dist/object.es-DFXiU9p3.js +0 -1
- package/dist/object.es-jvvnR8Kr.mjs +0 -12
- package/dist/open-banking.svg.es-DUM360xB.js +0 -1
- package/dist/open-banking.svg.es-DzzLCVp_.mjs +0 -4
- package/dist/paymentMethods-CZ3ydybI.js +0 -1
- package/dist/paymentMethods-DIV78w0O.mjs +0 -78
- package/dist/payments--lkjiwCt.js +0 -1
- package/dist/payments-Cvqdrprv.mjs +0 -47
- package/dist/paypal.svg.es-BdkNTf3c.js +0 -1
- package/dist/paypal.svg.es-DltWzW4V.mjs +0 -4
- package/dist/pricing-3W7XLwL6.js +0 -1
- package/dist/pricing-CJxS2hr2.mjs +0 -17
- package/dist/pricingItemConfigs.es-BPIm6S8M.mjs +0 -107
- package/dist/pricingItemConfigs.es-C73cQlxQ.js +0 -1
- package/dist/pricingPlanSchedule-B9HFiXy-.js +0 -1
- package/dist/pricingPlanSchedule-CXG3CQ61.mjs +0 -146
- package/dist/pulse.svg.es-BdpWAuIN.js +0 -1
- package/dist/pulse.svg.es-BecAwT-p.mjs +0 -4
- package/dist/sepa.svg.es-BF8PYKZg.js +0 -1
- package/dist/sepa.svg.es-cbE9g8gV.mjs +0 -4
- package/dist/slots.es-BpwYO3A3.mjs +0 -18
- package/dist/slots.es-Dq1PTUOv.js +0 -1
- package/dist/sorting.es-CjTrRfSW.mjs +0 -105
- package/dist/sorting.es-RyvcgbSL.js +0 -1
- package/dist/star.svg.es-DsCD-tSp.mjs +0 -4
- package/dist/star.svg.es-Q50IzqXr.js +0 -1
- package/dist/subscription-C41lG-rH.mjs +0 -89
- package/dist/subscription-b0OPx8Du.js +0 -1
- package/dist/subscriptions-300o4ae0.js +0 -1
- package/dist/subscriptions-DcMHBPVJ.mjs +0 -58
- package/dist/trustly.svg.es-C0Ou1HWk.mjs +0 -4
- package/dist/trustly.svg.es-CHojqNqm.js +0 -1
- package/dist/twint.svg.es-CQ-ZDfy8.js +0 -1
- package/dist/twint.svg.es-WrZYquRs.mjs +0 -4
- package/dist/typeGuards.es-C4nR5FkL.js +0 -1
- package/dist/typeGuards.es-fwUoeMCe.mjs +0 -12
- package/dist/unionpay.svg.es-DYgo83Hf.mjs +0 -4
- package/dist/unionpay.svg.es-YqJKKFEj.js +0 -1
- package/dist/url-CjULBkjW.js +0 -1
- package/dist/url-CvNDq4wp.mjs +0 -22
- package/dist/useActionDispatchProvider-BVOBO0Jx.mjs +0 -12
- package/dist/useActionDispatchProvider-Cv9amjTf.js +0 -1
- package/dist/useCustomer-DLHOs4BR.js +0 -1
- package/dist/useCustomer-EDhref7T.mjs +0 -25
- package/dist/useCustomerFormLabels-B61-4xQ7.mjs +0 -1168
- package/dist/useCustomerFormLabels-C6wW4n2e.js +0 -1
- package/dist/useExperimentalFeature-0yFoaEzV.js +0 -1
- package/dist/useExperimentalFeature-DvxOrFPU.mjs +0 -9
- package/dist/useIncrementalLoading-BK9pRYAU.mjs +0 -71
- package/dist/useIncrementalLoading-CdtGJm_Y.js +0 -1
- package/dist/useInvoiceData-BSjVeJrI.js +0 -1
- package/dist/useInvoiceData-C0Y5WrbT.mjs +0 -45
- package/dist/useInvoicesList-BRDZqsaB.js +0 -1
- package/dist/useInvoicesList-CYoE7q0u.mjs +0 -580
- package/dist/useLoadInitialData-Cp1OA8y6.mjs +0 -18
- package/dist/useLoadInitialData-u7IyXqb6.js +0 -1
- package/dist/usePaymentMethodAvailability-B3s1lqQ2.js +0 -1
- package/dist/usePaymentMethodAvailability-EuhZPghG.mjs +0 -141
- package/dist/usePaymentMethodOptions--8QpMvNm.js +0 -1
- package/dist/usePaymentMethodOptions-Cljh7HYp.mjs +0 -36
- package/dist/usePaymentMethods-BJzoI8dZ.mjs +0 -16
- package/dist/usePaymentMethods-DvEnJWmB.js +0 -1
- package/dist/usePayments-CANj0QVc.js +0 -1
- package/dist/usePayments-CaT1CBzE.mjs +0 -362
- package/dist/usePortal-BjGoSeLy.js +0 -1
- package/dist/usePortal-CMPQ0M9R.mjs +0 -12
- package/dist/useService-D73FNBjT.js +0 -1
- package/dist/useService-W3Kxems4.mjs +0 -72
- package/dist/useSubscription-D1UKnZAx.mjs +0 -250
- package/dist/useSubscription-DZfRHbL7.js +0 -1
- package/dist/useViewport-Bu0cyeSi.mjs +0 -38
- package/dist/useViewport-CKRY1CKR.js +0 -1
- package/dist/useWatchDebounced-C_YxgoQ6.js +0 -1
- package/dist/useWatchDebounced-Zmxd6InB.mjs +0 -16
- package/dist/visa.svg.es-B6aU_qRs.mjs +0 -4
- package/dist/visa.svg.es-D6sc4YTE.js +0 -1
- package/dist/vpay.svg.es-4qIqS4aX.mjs +0 -4
- package/dist/vpay.svg.es-CLGTyB09.js +0 -1
- package/dist/zip.svg.es-3PzSBe1E.mjs +0 -4
- package/dist/zip.svg.es-BRsgmur-.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("../../Button.vue.es-BWl37nzm.js"),y=require("../../Section.vue.es-DuK52y67.js"),c=require("../../customElements-Bt8PbjIn.js"),g=require("../../ContentWithAsideLayout-C6yMIVJF.js"),f=require("../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-B_207kq5.js"),h=require("../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-V88bCeDt.js"),_=require("../../useCustomer-BJwJ9BkJ.js"),v=require("../../usePaymentMethods-GFmQRp0X.js"),S=require("../../usePaymentMethodOptions-B6GIM9q4.js"),C=require("../../useLoadInitialData-CezlvhBV.js"),M=require("../../component-B7ZDyqBp.js"),k={class:"grid gap-4 sm:grid-cols-1 md:grid-cols-2"},O={key:0},B=e.defineComponent({__name:"ScreenTitle",props:{title:{type:String},description:{type:String}},setup(o){return(r,a)=>(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",null,[e.createVNode(e.unref(c._sfc_main),{variant:"heading-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),o.description?(e.openBlock(),e.createBlock(e.unref(c._sfc_main),{key:0,variant:"body-sm",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.description),1)]),_:1})):e.createCommentVNode("",!0)]),r.$slots.right?(e.openBlock(),e.createElementBlock("div",O,[e.renderSlot(r.$slots,"right")])):e.createCommentVNode("",!0)]))}}),b=e.defineComponent({__name:"PaymentMethodsManagement",props:{customer:{type:Object},paymentMethods:{type:Array},paymentMethodOptions:{type:Array},isLoading:{type:Boolean},error:{type:null}},emits:["set-default","delete","added"],setup(o,{emit:r}){const a=r,{$t:i}=c.useIntl(),n=e.ref(!1),m=()=>{n.value=!1,a("added")};return(d,t)=>(e.openBlock(),e.createBlock(e.unref(g.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(B,{title:e.unref(i)({defaultMessage:"Payment methods",id:"screens.payment_method_management.title",description:"The title for the payment method management screen "}),description:e.unref(i)({defaultMessage:"Add a new payment method or set a default payment method for your payments.",id:"screens.payment_method_management.description",description:"The descriptive text for the payment method management screen"})},null,8,["title","description"])]),content:e.withCtx(()=>[e.createVNode(e.unref(y._sfc_main),{"no-border":"","no-spacing":"","content-background":"none",title:"Your payment methods"},{default:e.withCtx(()=>[e.createVNode(f._sfc_main,{"payment-methods":o.paymentMethods,onSetDefault:t[0]||(t[0]=s=>a("set-default")),onDelete:t[1]||(t[1]=s=>a("delete"))},null,8,["payment-methods"])]),_:1}),n.value?(e.openBlock(),e.createBlock(h._sfc_main,{key:0,customer:o.customer,"payment-method-options":o.paymentMethodOptions,onSuccess:m},null,8,["customer","payment-method-options"])):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createBlock(e.unref(l._sfc_main),{key:1,intent:"secondary",onClick:t[2]||(t[2]=s=>n.value=!1)},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("Cancel",-1)])]),_:1})):(e.openBlock(),e.createBlock(e.unref(l._sfc_main),{key:2,intent:"secondary",onClick:t[3]||(t[3]=s=>n.value=!0)},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("Add payment method",-1)])]),_:1}))]),_:1}))}}),P=e.defineComponent({__name:"PaymentMethodsManagement.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(o){const r=o,a=r.portalObject.customer_id,{customer:i,get:n}=_.useCustomer({customerId:a}),{items:m,fetchInitial:d}=v.usePaymentMethods({customerId:r.portalObject.customer_id}),{paymentMethodOptions:t,get:s}=S.usePaymentMethodOptions(),{isLoading:p}=C.useLoadInitialData(n.execute(),d(),s({customerId:r.portalObject.customer_id}));return(u,x)=>e.renderSlot(u.$slots,"default",{customer:e.unref(i),paymentMethods:e.unref(m),paymentMethodOptions:e.unref(t),isLoading:e.unref(p),refreshPaymentMethods:e.unref(d)})}}),w=e.defineComponent({__name:"PaymentMethodsManagement.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(o){const r=M.getComponentName("payment-methods-management");return(a,i)=>(e.openBlock(),e.createBlock(e.unref(c._sfc_main$1),{entry:a.$props,"component-name":e.unref(r),"allowed-portal-types":["CUSTOMER"],onError:i[0]||(i[0]=n=>a.$emit("error",n))},{default:e.withCtx(()=>[e.createVNode(P,e.normalizeProps(e.guardReactiveProps(a.$props)),{default:e.withCtx(({customer:n,paymentMethods:m,paymentMethodOptions:d,isLoading:t,refreshPaymentMethods:s})=>[n?(e.openBlock(),e.createBlock(b,{key:0,"is-loading":t,"payment-methods":m,"payment-method-options":d,customer:n,onSetDefault:s,onDelete:s,onAdded:s},null,8,["is-loading","payment-methods","payment-method-options","customer","onSetDefault","onDelete","onAdded"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:N}=c.createSolvimonElement(w,"payment-methods-management");exports.defineSolvimonPaymentMethodsManagement=N;
|
|
@@ -1,52 +1,47 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, createTextVNode, toDisplayString, createBlock, createCommentVNode, renderSlot, ref, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { C as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { g as
|
|
13
|
-
const
|
|
14
|
-
const _hoisted_2 = { key: 0 };
|
|
15
|
-
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
1
|
+
import { defineComponent as f, openBlock as i, createElementBlock as h, createElementVNode as b, createVNode as c, unref as t, withCtx as m, createTextVNode as u, toDisplayString as _, createBlock as p, createCommentVNode as g, renderSlot as M, ref as C, normalizeProps as A, guardReactiveProps as j } from "vue";
|
|
2
|
+
import { _ as S } from "../../Button.vue.es-VQCd3V3C.mjs";
|
|
3
|
+
import { _ as k } from "../../Section.vue.es-By1JltGi.mjs";
|
|
4
|
+
import { _ as v, u as P, d as L, e as w } from "../../customElements-Com2NiGU.mjs";
|
|
5
|
+
import { C as D } from "../../ContentWithAsideLayout-Bnbsq8_5.mjs";
|
|
6
|
+
import { _ as T } from "../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-CnmZ9dvP.mjs";
|
|
7
|
+
import { _ as B } from "../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-5KKkuVt5.mjs";
|
|
8
|
+
import { u as I } from "../../useCustomer-CC9zxV6c.mjs";
|
|
9
|
+
import { u as N } from "../../usePaymentMethods-C3QfLSrP.mjs";
|
|
10
|
+
import { u as x } from "../../usePaymentMethodOptions-BfnLBZOo.mjs";
|
|
11
|
+
import { u as E } from "../../useLoadInitialData-ux_wpNiR.mjs";
|
|
12
|
+
import { g as F } from "../../component-5wqcK7yz.mjs";
|
|
13
|
+
const R = { class: "grid gap-4 sm:grid-cols-1 md:grid-cols-2" }, V = { key: 0 }, z = /* @__PURE__ */ f({
|
|
16
14
|
__name: "ScreenTitle",
|
|
17
15
|
props: {
|
|
18
16
|
title: { type: String },
|
|
19
17
|
description: { type: String }
|
|
20
18
|
},
|
|
21
|
-
setup(
|
|
22
|
-
return (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
]);
|
|
46
|
-
};
|
|
19
|
+
setup(o) {
|
|
20
|
+
return (r, a) => (i(), h("div", R, [
|
|
21
|
+
b("div", null, [
|
|
22
|
+
c(t(v), { variant: "heading-1" }, {
|
|
23
|
+
default: m(() => [
|
|
24
|
+
u(_(o.title), 1)
|
|
25
|
+
]),
|
|
26
|
+
_: 1
|
|
27
|
+
}),
|
|
28
|
+
o.description ? (i(), p(t(v), {
|
|
29
|
+
key: 0,
|
|
30
|
+
variant: "body-sm",
|
|
31
|
+
color: "subtle"
|
|
32
|
+
}, {
|
|
33
|
+
default: m(() => [
|
|
34
|
+
u(_(o.description), 1)
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
})) : g("", !0)
|
|
38
|
+
]),
|
|
39
|
+
r.$slots.right ? (i(), h("div", V, [
|
|
40
|
+
M(r.$slots, "right")
|
|
41
|
+
])) : g("", !0)
|
|
42
|
+
]));
|
|
47
43
|
}
|
|
48
|
-
})
|
|
49
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
44
|
+
}), U = /* @__PURE__ */ f({
|
|
50
45
|
__name: "PaymentMethodsManagement",
|
|
51
46
|
props: {
|
|
52
47
|
customer: { type: Object },
|
|
@@ -55,74 +50,72 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
55
50
|
isLoading: { type: Boolean },
|
|
56
51
|
error: { type: null }
|
|
57
52
|
},
|
|
58
|
-
emits: ["set-default", "delete"],
|
|
59
|
-
setup(
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
const showPaymentMethodForm = ref(false);
|
|
63
|
-
return (_ctx, _cache) => {
|
|
64
|
-
return openBlock(), createBlock(unref(ContentWithAsideLayout), null, {
|
|
65
|
-
header: withCtx(() => [
|
|
66
|
-
createVNode(_sfc_main$3, {
|
|
67
|
-
title: unref($t)({
|
|
68
|
-
defaultMessage: "Payment methods",
|
|
69
|
-
id: "screens.payment_method_management.title",
|
|
70
|
-
description: "The title for the payment method management screen "
|
|
71
|
-
}),
|
|
72
|
-
description: unref($t)({
|
|
73
|
-
defaultMessage: "Add a new payment method or set a default payment method for your payments.",
|
|
74
|
-
id: "screens.payment_method_management.description",
|
|
75
|
-
description: "The descriptive text for the payment method management screen"
|
|
76
|
-
})
|
|
77
|
-
}, null, 8, ["title", "description"])
|
|
78
|
-
]),
|
|
79
|
-
content: withCtx(() => [
|
|
80
|
-
createVNode(unref(_sfc_main$5), {
|
|
81
|
-
"no-border": "",
|
|
82
|
-
"no-spacing": "",
|
|
83
|
-
"content-background": "none",
|
|
84
|
-
title: "Your payment methods"
|
|
85
|
-
}, {
|
|
86
|
-
default: withCtx(() => [
|
|
87
|
-
createVNode(_sfc_main$6, {
|
|
88
|
-
"payment-methods": __props.paymentMethods,
|
|
89
|
-
onSetDefault: _cache[0] || (_cache[0] = ($event) => emit("set-default")),
|
|
90
|
-
onDelete: _cache[1] || (_cache[1] = ($event) => emit("delete"))
|
|
91
|
-
}, null, 8, ["payment-methods"])
|
|
92
|
-
]),
|
|
93
|
-
_: 1
|
|
94
|
-
}),
|
|
95
|
-
showPaymentMethodForm.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
96
|
-
key: 0,
|
|
97
|
-
customer: __props.customer,
|
|
98
|
-
"payment-method-options": __props.paymentMethodOptions
|
|
99
|
-
}, null, 8, ["customer", "payment-method-options"])) : createCommentVNode("", true),
|
|
100
|
-
showPaymentMethodForm.value ? (openBlock(), createBlock(unref(_sfc_main$8), {
|
|
101
|
-
key: 1,
|
|
102
|
-
intent: "secondary",
|
|
103
|
-
onClick: _cache[2] || (_cache[2] = ($event) => showPaymentMethodForm.value = false)
|
|
104
|
-
}, {
|
|
105
|
-
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
106
|
-
createTextVNode("Cancel", -1)
|
|
107
|
-
])]),
|
|
108
|
-
_: 1
|
|
109
|
-
})) : (openBlock(), createBlock(unref(_sfc_main$8), {
|
|
110
|
-
key: 2,
|
|
111
|
-
intent: "secondary",
|
|
112
|
-
onClick: _cache[3] || (_cache[3] = ($event) => showPaymentMethodForm.value = true)
|
|
113
|
-
}, {
|
|
114
|
-
default: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
115
|
-
createTextVNode("Add payment method", -1)
|
|
116
|
-
])]),
|
|
117
|
-
_: 1
|
|
118
|
-
}))
|
|
119
|
-
]),
|
|
120
|
-
_: 1
|
|
121
|
-
});
|
|
53
|
+
emits: ["set-default", "delete", "added"],
|
|
54
|
+
setup(o, { emit: r }) {
|
|
55
|
+
const a = r, { $t: d } = P(), n = C(!1), l = () => {
|
|
56
|
+
n.value = !1, a("added");
|
|
122
57
|
};
|
|
58
|
+
return (y, e) => (i(), p(t(D), null, {
|
|
59
|
+
header: m(() => [
|
|
60
|
+
c(z, {
|
|
61
|
+
title: t(d)({
|
|
62
|
+
defaultMessage: "Payment methods",
|
|
63
|
+
id: "screens.payment_method_management.title",
|
|
64
|
+
description: "The title for the payment method management screen "
|
|
65
|
+
}),
|
|
66
|
+
description: t(d)({
|
|
67
|
+
defaultMessage: "Add a new payment method or set a default payment method for your payments.",
|
|
68
|
+
id: "screens.payment_method_management.description",
|
|
69
|
+
description: "The descriptive text for the payment method management screen"
|
|
70
|
+
})
|
|
71
|
+
}, null, 8, ["title", "description"])
|
|
72
|
+
]),
|
|
73
|
+
content: m(() => [
|
|
74
|
+
c(t(k), {
|
|
75
|
+
"no-border": "",
|
|
76
|
+
"no-spacing": "",
|
|
77
|
+
"content-background": "none",
|
|
78
|
+
title: "Your payment methods"
|
|
79
|
+
}, {
|
|
80
|
+
default: m(() => [
|
|
81
|
+
c(T, {
|
|
82
|
+
"payment-methods": o.paymentMethods,
|
|
83
|
+
onSetDefault: e[0] || (e[0] = (s) => a("set-default")),
|
|
84
|
+
onDelete: e[1] || (e[1] = (s) => a("delete"))
|
|
85
|
+
}, null, 8, ["payment-methods"])
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
}),
|
|
89
|
+
n.value ? (i(), p(B, {
|
|
90
|
+
key: 0,
|
|
91
|
+
customer: o.customer,
|
|
92
|
+
"payment-method-options": o.paymentMethodOptions,
|
|
93
|
+
onSuccess: l
|
|
94
|
+
}, null, 8, ["customer", "payment-method-options"])) : g("", !0),
|
|
95
|
+
n.value ? (i(), p(t(S), {
|
|
96
|
+
key: 1,
|
|
97
|
+
intent: "secondary",
|
|
98
|
+
onClick: e[2] || (e[2] = (s) => n.value = !1)
|
|
99
|
+
}, {
|
|
100
|
+
default: m(() => [...e[4] || (e[4] = [
|
|
101
|
+
u("Cancel", -1)
|
|
102
|
+
])]),
|
|
103
|
+
_: 1
|
|
104
|
+
})) : (i(), p(t(S), {
|
|
105
|
+
key: 2,
|
|
106
|
+
intent: "secondary",
|
|
107
|
+
onClick: e[3] || (e[3] = (s) => n.value = !0)
|
|
108
|
+
}, {
|
|
109
|
+
default: m(() => [...e[5] || (e[5] = [
|
|
110
|
+
u("Add payment method", -1)
|
|
111
|
+
])]),
|
|
112
|
+
_: 1
|
|
113
|
+
}))
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
}));
|
|
123
117
|
}
|
|
124
|
-
})
|
|
125
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
118
|
+
}), W = /* @__PURE__ */ f({
|
|
126
119
|
__name: "PaymentMethodsManagement.entry.view",
|
|
127
120
|
props: {
|
|
128
121
|
environment: { type: String },
|
|
@@ -140,31 +133,23 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
140
133
|
cssOverrides: { type: [String, Array] },
|
|
141
134
|
branding: { type: Object }
|
|
142
135
|
},
|
|
143
|
-
setup(
|
|
144
|
-
const
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
const { paymentMethodOptions, get: fetchPaymentMethodOptions } = usePaymentMethodOptions();
|
|
151
|
-
const { isLoading } = useLoadInitialData(
|
|
152
|
-
fetchCustomer.execute(),
|
|
153
|
-
fetchInitial(),
|
|
154
|
-
fetchPaymentMethodOptions({ customerId: props.portalObject.customer_id })
|
|
136
|
+
setup(o) {
|
|
137
|
+
const r = o, a = r.portalObject.customer_id, { customer: d, get: n } = I({ customerId: a }), { items: l, fetchInitial: y } = N({
|
|
138
|
+
customerId: r.portalObject.customer_id
|
|
139
|
+
}), { paymentMethodOptions: e, get: s } = x(), { isLoading: O } = E(
|
|
140
|
+
n.execute(),
|
|
141
|
+
y(),
|
|
142
|
+
s({ customerId: r.portalObject.customer_id })
|
|
155
143
|
);
|
|
156
|
-
return (
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
});
|
|
164
|
-
};
|
|
144
|
+
return ($, q) => M($.$slots, "default", {
|
|
145
|
+
customer: t(d),
|
|
146
|
+
paymentMethods: t(l),
|
|
147
|
+
paymentMethodOptions: t(e),
|
|
148
|
+
isLoading: t(O),
|
|
149
|
+
refreshPaymentMethods: t(y)
|
|
150
|
+
});
|
|
165
151
|
}
|
|
166
|
-
})
|
|
167
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
152
|
+
}), Y = /* @__PURE__ */ f({
|
|
168
153
|
__name: "PaymentMethodsManagement.entry",
|
|
169
154
|
props: {
|
|
170
155
|
environment: { type: String },
|
|
@@ -182,46 +167,44 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
182
167
|
cssOverrides: { type: [String, Array] },
|
|
183
168
|
branding: { type: Object }
|
|
184
169
|
},
|
|
185
|
-
setup(
|
|
186
|
-
const
|
|
187
|
-
return (
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
};
|
|
170
|
+
setup(o) {
|
|
171
|
+
const r = F("payment-methods-management");
|
|
172
|
+
return (a, d) => (i(), p(t(L), {
|
|
173
|
+
entry: a.$props,
|
|
174
|
+
"component-name": t(r),
|
|
175
|
+
"allowed-portal-types": ["CUSTOMER"],
|
|
176
|
+
onError: d[0] || (d[0] = (n) => a.$emit("error", n))
|
|
177
|
+
}, {
|
|
178
|
+
default: m(() => [
|
|
179
|
+
c(W, A(j(a.$props)), {
|
|
180
|
+
default: m(({
|
|
181
|
+
customer: n,
|
|
182
|
+
paymentMethods: l,
|
|
183
|
+
paymentMethodOptions: y,
|
|
184
|
+
isLoading: e,
|
|
185
|
+
refreshPaymentMethods: s
|
|
186
|
+
}) => [
|
|
187
|
+
n ? (i(), p(U, {
|
|
188
|
+
key: 0,
|
|
189
|
+
"is-loading": e,
|
|
190
|
+
"payment-methods": l,
|
|
191
|
+
"payment-method-options": y,
|
|
192
|
+
customer: n,
|
|
193
|
+
onSetDefault: s,
|
|
194
|
+
onDelete: s,
|
|
195
|
+
onAdded: s
|
|
196
|
+
}, null, 8, ["is-loading", "payment-methods", "payment-method-options", "customer", "onSetDefault", "onDelete", "onAdded"])) : g("", !0)
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
}, 16)
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
}, 8, ["entry", "component-name"]));
|
|
219
203
|
}
|
|
220
|
-
})
|
|
221
|
-
|
|
222
|
-
_sfc_main,
|
|
204
|
+
}), { define: ae } = w(
|
|
205
|
+
Y,
|
|
223
206
|
"payment-methods-management"
|
|
224
207
|
);
|
|
225
208
|
export {
|
|
226
|
-
defineSolvimonPaymentMethodsManagement
|
|
209
|
+
ae as defineSolvimonPaymentMethodsManagement
|
|
227
210
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../IconButton.vue.es-BHdQskx0.js"),n=require("../../Button.vue.es-O8mNivLL.js"),i=require("../../ErrorNotification.vue.es-CaEFTi2k.js"),a=require("../../customElements-DD7bpqkx.js"),o=require("../../ContentWithAsideLayout-DHpnJfGA.js"),s=require("../../useActionDispatchProvider-Cv9amjTf.js"),r=require("../../subscription-b0OPx8Du.js"),l=require("../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BJVXCHny.js"),c=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-ZyN2vlNu.js"),u=require("../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bi_dCntQ.js"),d=require("../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DkIK-lID.js"),p=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),m=require("../../Section.vue.es-CAJvEDn6.js"),b=require("../../pricing-3W7XLwL6.js"),_=require("../../formatting.es-DBtYnvI5.js"),g=require("../../PaymentMethod.vue.es-CdskNJ3Z.js"),f=require("../../Modal.vue.es-B_1aqm_m.js"),h=require("../../subscriptions-300o4ae0.js"),v=require("../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-CabskT-r.js"),y=require("../../api.es-Czekkp_X.js"),w=require("../../useIncrementalLoading-CdtGJm_Y.js"),C=require("../../paymentMethods-CZ3ydybI.js"),S=require("../../error-Cg-i7gGl.js"),x=require("../../useSubscription-DZfRHbL7.js"),k=require("../../useCustomer-DLHOs4BR.js"),B=require("../../usePaymentMethods-DvEnJWmB.js"),M=require("../../useLoadInitialData-u7IyXqb6.js"),N=require("../../component-hDuDTBt5.js");function j(e){var t,n,i,a,o,s,r;const l=null==(i=null==(n=null==(t=e.items)?void 0:t[0])?void 0:n.configs)?void 0:i[0],c=null==(o=null==(a=null==l?void 0:l.details)?void 0:a.bands)?void 0:o[0];return{amount:(null==c?void 0:c.amount)??(null==c?void 0:c.fixed_amount),billingPeriod:(null==(s=null==l?void 0:l.details)?void 0:s.pricing_period)??(null==(r=null==l?void 0:l.details)?void 0:r.billing_period)}}const V={class:"sv-enabled-pricings-list__item-body flex items-center gap-4"},E={class:"sv-enabled-pricings-list__item-content grow"},T=e.defineComponent({__name:"EnabledPricingsListItem",props:{entry:{type:Object}},emits:["upgrade"],setup(t){const i=t,{$t:o}=a.useIntl(),s=e.computed(()=>{const{amount:e,billingPeriod:t}=i.entry;if(e)return t?o({defaultMessage:"{amount} per {period}",id:"enabled_pricings_list.item.price",description:'The recurring price of an enabled pricing, e.g. "€ 100,00 per month"'},{amount:_.formatAmount(e),period:_.formatBillingPeriod(t,{short:!0,hideValueForExactPeriods:!0})}):_.formatAmount(e)});return(i,r)=>(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{class:"sv-enabled-pricings-list__item"},{default:e.withCtx(()=>[e.createElementVNode("div",V,[e.createElementVNode("div",E,[e.createVNode(e.unref(a._sfc_main),{tag:"span",variant:"body-xs",color:"subtle",class:"sv-enabled-pricings-list__item-group"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.groupName),1)]),_:1}),e.createVNode(e.unref(a._sfc_main),{tag:"h3",variant:"heading-3","no-spacing":"",class:"sv-enabled-pricings-list__item-name"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.name),1)]),_:1}),s.value?(e.openBlock(),e.createBlock(e.unref(a._sfc_main),{key:0,tag:"span",variant:"body-sm",color:"subtle",class:"sv-enabled-pricings-list__item-price"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.unref(n._sfc_main$1),{intent:"secondary",class:"sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",type:"button",size:"xs",onClick:r[0]||(r[0]=e=>i.$emit("upgrade",t.entry))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Upgrade",id:"enabled_pricings_list.item.upgrade_button.label",description:"Label for the button that changes which pricing is enabled for a group"})),1)]),_:1})])]),_:1}))}}),A={class:"sv-enabled-pricings-list__items grid grid-cols-1 gap-2"},L=e.defineComponent({__name:"EnabledPricingsList",props:{pricingPlanSchedule:{type:Object}},emits:["upgrade"],setup(t){const n=t,{$t:i}=a.useIntl(),o=e.computed(()=>function(e){var t,n,i;const a=new Set(((null==(t=e.pricing_plan_schedule)?void 0:t.enabled_pricings)??[]).map(({pricing_id:e})=>e));return 0===a.size?[]:((null==(i=null==(n=e.pricing_plan_version)?void 0:n.pricing_categories)?void 0:i.flatMap(e=>e.pricing_groups??[]))??[]).flatMap(e=>(e.pricings??[]).filter(e=>a.has(e.id)).map(t=>({pricingId:t.id,pricingGroupId:e.id,groupName:e.name,name:b.getNameFromPricing(t)||e.name,...j(t)})))}(n.pricingPlanSchedule));return(t,n)=>o.value.length>0?(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{key:0,class:"sv-enabled-pricings-list","content-background":"none","no-border":"","no-spacing":"",title:e.unref(i)({defaultMessage:"Upgrades",id:"enabled_pricings_list.title",description:"Title for the block listing the pricings enabled on a subscription"})},{default:e.withCtx(()=>[e.createElementVNode("div",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,i=>(e.openBlock(),e.createBlock(T,{key:i.pricingId,entry:i,onUpgrade:n[0]||(n[0]=e=>t.$emit("upgrade",e))},null,8,["entry"]))),128))])]),_:1},8,["title"])):e.createCommentVNode("",!0)}});const P={class:"sv-subscription-cancellation-modal sv-subscription-cancellation-modal__body flex flex-col gap-3"},q={key:0,class:"sv-subscription-cancellation-modal__meta flex flex-wrap items-center gap-x-6 gap-y-2 px-3 pb-2"},I={key:0,class:"sv-subscription-cancellation-modal__renews flex gap-1"},D=e.defineComponent({__name:"SubscriptionCancellationModal",props:{showModal:{type:Boolean},variant:{type:null},subscription:{type:Object},avatar:{type:String}},emits:["confirmed","close"],setup(t,{emit:n}){const o=t,s=n,{$t:l,formatDate:c}=a.useIntl(),u=a.useLogger(),{setSubscriptionCancellation:d}=h.createSubscriptionsService(),p=e.computed(()=>o.variant),b=e.computed(()=>{var e;const t=(null==(e=o.subscription)?void 0:e.inactive_periods)??[],n=t.find(({type:e})=>"CANCEL"===e)??t[0];if(n)return c({date:n.start_at,format:"date",offsetType:"local"})}),_=e.computed(()=>{var e,t;const n=null==(t=null==(e=o.subscription)?void 0:e.next_invoice)?void 0:t.invoice_date;if(n)return c({date:n,format:"date",offsetType:"local"})}),S=_,x=e.computed(()=>{var e,t;return((null==(t=null==(e=r.getMostRecentScheduleInfo(o.subscription))?void 0:e.pricing_plan_schedule)?void 0:t.enabled_pricings)??[]).map(({pricing_id:e})=>e).filter(e=>Boolean(e))}),{title:k,explanation:B,confirmButtonText:M,cancelButtonText:N,errorMessage:j}=function({variant:t,renewableUntil:n,billingPeriodEndsAt:i}){const{$t:o}=a.useIntl(),s=e.computed(()=>"RENEW"===t.value);return{title:e.computed(()=>s.value?o({defaultMessage:"Renew subscription",description:"Title of the renew subscription confirmation modal",id:"subscription_cancellation_modal.renew.title"}):o({defaultMessage:"Cancel subscription",description:"Title of the cancel subscription confirmation modal",id:"subscription_cancellation_modal.cancel.title"})),explanation:e.computed(()=>s.value?n.value?o({defaultMessage:"You can renew your subscription until {date}. After this period you can only create a new subscription.",description:"Explanation of the deadline for undoing a cancellation, shown in the renew subscription modal",id:"subscription_cancellation_modal.renew.explanation_with_date"},{date:n.value}):o({defaultMessage:"Your subscription will continue as before, and billing will resume on its usual schedule.",description:"Explanation of what happens when a cancellation is undone, shown in the renew subscription modal when no end date is known",id:"subscription_cancellation_modal.renew.explanation"}):i.value?o({defaultMessage:"Your subscription will be canceled, but you’ll continue to have access until {date}.",description:"Explanation of what happens when a running subscription is cancelled, naming the date access ends, shown in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.explanation_with_date"},{date:i.value}):o({defaultMessage:"Your subscription will be canceled, but you’ll continue to have access until the end of the billing period.",description:"Explanation of what happens when a running subscription is cancelled, shown in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.explanation"})),confirmButtonText:e.computed(()=>s.value?o({defaultMessage:"Renew subscription",description:"Label of the confirm button in the renew subscription modal",id:"subscription_cancellation_modal.renew.confirm_button.label"}):o({defaultMessage:"Cancel subscription",description:"Label of the confirm button in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.confirm_button.label"})),cancelButtonText:e.computed(()=>o({defaultMessage:"Cancel",description:"Label of the button that dismisses the cancellation modal",id:"subscription_cancellation_modal.cancel_button.label"})),errorMessage:e.computed(()=>s.value?o({defaultMessage:"We could not renew your subscription. Please try again.",description:"Error shown when undoing a cancellation fails",id:"subscription_cancellation_modal.renew.error"}):o({defaultMessage:"We could not cancel your subscription. Please try again.",description:"Error shown when cancelling a subscription fails",id:"subscription_cancellation_modal.cancel.error"}))}}({variant:p,renewableUntil:b,billingPeriodEndsAt:_}),{paymentMethod:V,get:E}=function(){const{getPaymentMethods:t}=C.createPaymentMethodsService(),n=e.shallowRef();return{paymentMethod:n,get:async({customerId:e,paymentMethodId:i})=>{const a=await y.getPaginatedFullList(async n=>{const i=await t({customerId:e,pagination:{page:n,pageSize:50}});if(!w.isApiSuccessCollectionResponse(i))throw new Error("Could not load the customer’s payment methods.");return i});return n.value=a.data.find(({id:e})=>e===i),n.value}}}();e.watch([()=>o.showModal,()=>{var e;return null==(e=o.subscription)?void 0:e.payment_method_id},()=>{var e;return null==(e=o.subscription)?void 0:e.customer_id}],([e,t,n])=>{var i;e&&t&&n&&t!==(null==(i=V.value)?void 0:i.id)&&E({customerId:n,paymentMethodId:t}).catch(()=>{})},{immediate:!0});const T=e.ref(!1),A=e.ref(!1);e.watch(()=>o.showModal,e=>{e&&(A.value=!1)});const L=async()=>{if(o.subscription&&o.variant&&!T.value){T.value=!0,A.value=!1;try{await d({id:o.subscription.id,variant:o.variant}),s("confirmed"),s("close")}catch(e){u.error("SUBSCRIPTION_CANCELLATION_FAILED","Failed to change the cancellation state of a subscription",{variant:o.variant},e),A.value=!0}finally{T.value=!1}}},D=()=>{T.value||s("close")};return(n,o)=>(e.openBlock(),e.createBlock(e.unref(f.Modal),{size:"md","show-modal":t.showModal,title:e.unref(k),"confirm-button-text":e.unref(M),"cancel-button-text":e.unref(N),"is-loading":T.value,"no-click-away":T.value,"no-backdrop-close":T.value,onConfirm:L,onClose:D},{body:e.withCtx(()=>[e.createElementVNode("div",P,[e.createVNode(e.unref(a._sfc_main),{variant:"body-sm",color:"subtle",tag:"p",class:"sv-subscription-cancellation-modal__explanation"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(B)),1)]),_:1}),t.subscription?(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{key:0,"no-spacing":"",class:"sv-subscription-cancellation-modal__subscription"},{default:e.withCtx(()=>[e.createVNode(v._sfc_main,{subscription:t.subscription,avatar:t.avatar,"enabled-pricing-ids":x.value},null,8,["subscription","avatar","enabled-pricing-ids"]),e.unref(S)||e.unref(V)?(e.openBlock(),e.createElementBlock("div",q,[e.unref(S)?(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(e.unref(a._sfc_main),{tag:"span",variant:"body-xs",color:"secondary",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"Renews",description:"Label before the date the subscription renews, shown in the cancel subscription modal",id:"subscription_cancellation_modal.renews_label"})),1)]),_:1}),e.createVNode(e.unref(a._sfc_main),{tag:"span",variant:"body-xs",color:"secondary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(S)),1)]),_:1})])):e.createCommentVNode("",!0),e.unref(V)?(e.openBlock(),e.createBlock(e.unref(g._sfc_main),{key:1,variant:"condensed",class:"sv-subscription-cancellation-modal__payment-method","payment-method":e.unref(V)},null,8,["payment-method"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:1,class:"sv-subscription-cancellation-modal__error sv-error",title:e.unref(j)},null,8,["title"])):e.createCommentVNode("",!0)])]),_:1},8,["show-modal","title","confirm-button-text","cancel-button-text","is-loading","no-click-away","no-backdrop-close"]))}}),O={class:"sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center"},U=e.defineComponent({__name:"SubscriptionDetails",props:{subscription:{type:Object},schedulesData:{type:Array},customer:{type:Object},paymentMethods:{type:Array},walletBalances:{default:()=>[],type:Array},hasWalletBalancesError:{type:Boolean},avatar:{type:String},isLoading:{type:Boolean},error:{type:null}},emits:["top-up-charged","auto-top-up-saved","auto-top-up-cancelled","payment-method-stored","subscription-changed"],setup(m,{emit:b}){const _=m,g=b,{$t:f}=a.useIntl(),{isCancellable:h,isRenewable:v,pendingVariant:y,cancel:w,renew:C,dismiss:S,manage:x}=function({subscription:t}){const{dispatchAction:n}=s.useActionDispatchProvider(),i=e.computed(()=>{if(!t.value)return!1;const e=t.value.inactive_periods;return!e||0===e.length}),a=e.computed(()=>{var e;const n=null==(e=t.value)?void 0:e.inactive_periods;return Array.isArray(n)&&n.length>0}),o=e.ref();return{isCancellable:i,isRenewable:a,pendingVariant:o,cancel:()=>{t.value&&(o.value="CANCEL")},renew:()=>{t.value&&(o.value="RENEW")},dismiss:()=>{o.value=void 0},manage:()=>{t.value&&n({action:"manage-subscription",data:{subscriptionId:t.value.id}})}}}({subscription:e.toRef(_,"subscription")}),k=e.ref();e.watch(y,e=>{e&&(k.value=void 0)});const B=()=>{k.value=y.value,g("subscription-changed")},M=e.computed(()=>{if(k.value)return"RENEW"===k.value?f({defaultMessage:"Your subscription has been renewed.",id:"subscription_details.renew_success",description:"Confirmation shown after a cancellation has been undone"}):f({defaultMessage:"Your subscription has been cancelled. You keep access until the end of the billing period.",id:"subscription_details.cancel_success",description:"Confirmation shown after a subscription has been cancelled"})}),N=e.computed(()=>r.getMostRecentScheduleInfo(_.subscription)),j=e.computed(()=>(_.paymentMethods??[]).find(({id:e})=>{var t;return e===(null==(t=_.subscription)?void 0:t.payment_method_id)})),V=e.computed(()=>_.subscription?[_.subscription]:[]),E=e.computed(()=>r.getSubscriptionName({subscription:_.subscription,fallback:f({defaultMessage:"Subscription details",id:"subscription_details.title",description:"Title for the subscription details page"})}));return(s,r)=>(e.openBlock(),e.createBlock(e.unref(o.ContentWithAsideLayout),{class:"sv-subscription-details sv-root sv-screen"},{header:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(e.unref(a._sfc_main),{variant:"heading-2",tag:"h1",class:"sv-subscription-details__title grow"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.value),1)]),_:1}),e.unref(v)?(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{key:0,intent:"secondary",class:"sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",type:"button",onClick:e.unref(C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"Renew subscription",id:"subscription_details.renew_button.label",description:"Label for the renew subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(h)?(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{key:1,intent:"secondary",class:"sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",type:"button",onClick:e.unref(w)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"Cancel subscription",id:"subscription_details.cancel_button.label",description:"Label for the cancel subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])]),content:e.withCtx(()=>[M.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,class:"sv-subscription-details__cancellation-success",type:"success",title:M.value},null,8,["title"])):e.createCommentVNode("",!0),m.error?(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:1,class:"sv-subscription-details__error sv-error",title:e.unref(f)({defaultMessage:"Unable to load this subscription. Please try again later.",id:"subscription_details.load_error",description:"Error message shown when the subscription cannot be loaded on the subscription details page"})},null,8,["title"])):m.isLoading?(e.openBlock(),e.createBlock(p._sfc_main,{key:2,variant:"section",class:"min-h-[220px]"})):m.subscription?(e.openBlock(),e.createBlock(l._sfc_main,{key:3,class:"sv-subscription-details__schedules","schedules-data":m.schedulesData??[],configuration:{subscriptionId:m.subscription.id},"is-loading":m.isLoading},null,8,["schedules-data","configuration","is-loading"])):(e.openBlock(),e.createBlock(d._sfc_main,{key:4,class:"sv-subscription-details__empty-state",icon:"receipt_long"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"Subscription not found",id:"subscription_details.empty_state.title",description:"Title shown when the requested subscription does not exist"})),1)]),message:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"This subscription is no longer available.",id:"subscription_details.empty_state.message",description:"Message shown when the requested subscription does not exist"})),1)]),_:1}))]),aside:e.withCtx(()=>[e.createVNode(c._sfc_main,{class:"sv-subscription-details__wallet-balances","has-error":Boolean(m.hasWalletBalancesError),"is-loading":m.isLoading,"wallet-balances":m.walletBalances,"show-top-up-button":"",customer:m.customer,"payment-methods":m.paymentMethods,subscriptions:V.value,onTopUpCharged:r[0]||(r[0]=e=>s.$emit("top-up-charged")),onAutoTopUpSaved:r[1]||(r[1]=e=>s.$emit("auto-top-up-saved")),onAutoTopUpCancelled:r[2]||(r[2]=e=>s.$emit("auto-top-up-cancelled")),onPaymentMethodStored:r[3]||(r[3]=e=>s.$emit("payment-method-stored"))},null,8,["has-error","is-loading","wallet-balances","customer","payment-methods","subscriptions"]),N.value?(e.openBlock(),e.createBlock(L,{key:0,class:"sv-subscription-details__upgrades","pricing-plan-schedule":N.value,onUpgrade:e.unref(x)},null,8,["pricing-plan-schedule","onUpgrade"])):e.createCommentVNode("",!0),j.value?(e.openBlock(),e.createBlock(u._sfc_main,{key:1,class:"sv-subscription-details__payment-method","is-loading":m.isLoading,"payment-methods":[j.value],configuration:{showViewAllButton:!1,showAddButton:!1}},null,8,["is-loading","payment-methods"])):e.createCommentVNode("",!0),e.createVNode(D,{"show-modal":Boolean(e.unref(y)),variant:e.unref(y),subscription:m.subscription,avatar:m.avatar,onConfirmed:B,onClose:e.unref(S)},null,8,["show-modal","variant","subscription","avatar","onClose"])]),_:1}))}}),R=e.defineComponent({__name:"SubscriptionDetails.entry.view",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const n=t,i=n.portalObject.customer_id,{subscription:a,withPlanData:o,get:s,error:r}=x.useSubscription({subscriptionId:n.configuration.subscriptionId}),{customer:l,get:u}=k.useCustomer({customerId:i}),{items:d,fetchAll:p}=B.usePaymentMethods({customerId:i}),{walletBalances:m,apiStatus:b,fetch:_}=c.useCustomerWalletBalances({customerId:i}),{isLoading:g}=M.useLoadInitialData(s(),u.execute(),p(),_()),f=e.computed(()=>a.value?o(a.value):[]),h=e.computed(()=>{var e;return(null==(e=m.value)?void 0:e.wallet_balances)??[]}),v=e.computed(()=>b.value===S.ApiStatus.Failed);return(t,n)=>e.renderSlot(t.$slots,"default",{subscription:e.unref(a),schedulesData:f.value,customer:e.unref(l),paymentMethods:e.unref(d),walletBalances:h.value,hasWalletBalancesError:v.value,isLoading:e.unref(g),error:e.unref(r),refreshWalletBalances:e.unref(_),refreshPaymentMethods:e.unref(p),refreshSubscription:e.unref(s)})}}),$=e.defineComponent({__name:"SubscriptionDetails.entry",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const n=N.getComponentName("subscription-details");return(i,o)=>(e.openBlock(),e.createBlock(e.unref(a._sfc_main$1),{entry:i.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:o[0]||(o[0]=e=>i.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(R,e.normalizeProps(e.guardReactiveProps(i.$props)),{default:e.withCtx(({subscription:n,schedulesData:i,customer:a,paymentMethods:o,walletBalances:s,hasWalletBalancesError:r,isLoading:l,error:c,refreshWalletBalances:u,refreshPaymentMethods:d,refreshSubscription:p})=>[e.createVNode(U,{subscription:n,"schedules-data":i,customer:a,avatar:t.configuration.avatar,"payment-methods":o,"wallet-balances":s,"has-wallet-balances-error":r,"is-loading":l,error:c,onTopUpCharged:u,onAutoTopUpSaved:u,onAutoTopUpCancelled:u,onPaymentMethodStored:d,onSubscriptionChanged:p},null,8,["subscription","schedules-data","customer","avatar","payment-methods","wallet-balances","has-wallet-balances-error","is-loading","error","onTopUpCharged","onAutoTopUpSaved","onAutoTopUpCancelled","onPaymentMethodStored","onSubscriptionChanged"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:W}=a.createSolvimonElement($,"subscription-details");exports.defineSolvimonSubscriptionDetails=W;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),D=require("../../IconButton.vue.es-DGLIdHkR.js"),P=require("../../Button.vue.es-BWl37nzm.js"),A=require("../../ErrorNotification.vue.es-0ZC_DozN.js"),b=require("../../customElements-Bt8PbjIn.js"),$=require("../../ContentWithAsideLayout-C6yMIVJF.js"),I=require("../../useActionDispatchProvider-B54GYEY7.js"),E=require("../../subscription-9GORG-Gt.js"),L=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C_yKvYtG.js"),O=require("../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-n097Xf1H.js"),R=require("../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DXO9xpFT.js"),U=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js"),T=require("../../Section.vue.es-DuK52y67.js"),j=require("../../pricing-BVAld27Y.js"),V=require("../../formatting.es-C72Nsrmh.js"),W=require("../../PaymentMethod.vue.es-Ctw9Es1g.js"),F=require("../../Modal.vue.es-Chi6_MH_.js"),Y=require("../../subscriptions-X0Ciw8z3.js"),z=require("../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-D-Fa54M6.js"),G=require("../../api.es-duCDtZD9.js"),H=require("../../useIncrementalLoading-CaWOE8Xl.js"),Z=require("../../paymentMethods-ChWAwDSF.js"),J=require("../../error-CmduqgVq.js"),K=require("../../useSubscription-Q4C2DPhw.js"),Q=require("../../useCustomer-BJwJ9BkJ.js"),X=require("../../usePaymentMethods-GFmQRp0X.js"),ee=require("../../useLoadInitialData-CezlvhBV.js"),te=require("../../component-B7ZDyqBp.js");function ne({subscription:t}){const{dispatchAction:s}=I.useActionDispatchProvider(),i=e.computed(()=>{if(!t.value)return!1;const u=t.value.inactive_periods;return!u||u.length===0}),n=e.computed(()=>{var g;const u=(g=t.value)==null?void 0:g.inactive_periods;return Array.isArray(u)&&u.length>0}),a=e.ref();return{isCancellable:i,isRenewable:n,pendingVariant:a,cancel:()=>{t.value&&(a.value="CANCEL")},renew:()=>{t.value&&(a.value="RENEW")},dismiss:()=>{a.value=void 0},manage:()=>{t.value&&s({action:"manage-subscription",data:{subscriptionId:t.value.id}})}}}function ie(t){var n,a,o,r,c,d,u;const s=(o=(a=(n=t.items)==null?void 0:n[0])==null?void 0:a.configs)==null?void 0:o[0],i=(c=(r=s==null?void 0:s.details)==null?void 0:r.bands)==null?void 0:c[0];return{amount:(i==null?void 0:i.amount)??(i==null?void 0:i.fixed_amount),billingPeriod:((d=s==null?void 0:s.details)==null?void 0:d.pricing_period)??((u=s==null?void 0:s.details)==null?void 0:u.billing_period)}}function oe(t){var n,a,o;const s=new Set((((n=t.pricing_plan_schedule)==null?void 0:n.enabled_pricings)??[]).map(({pricing_id:r})=>r));return s.size===0?[]:(((o=(a=t.pricing_plan_version)==null?void 0:a.pricing_categories)==null?void 0:o.flatMap(r=>r.pricing_groups??[]))??[]).flatMap(r=>(r.pricings??[]).filter(c=>s.has(c.id)).map(c=>({pricingId:c.id,pricingGroupId:r.id,groupName:r.name,name:j.getNameFromPricing(c)||r.name,...ie(c)})))}const ae={class:"sv-enabled-pricings-list__item-body flex items-center gap-4"},se={class:"sv-enabled-pricings-list__item-content grow"},re=e.defineComponent({__name:"EnabledPricingsListItem",props:{entry:{type:Object}},emits:["upgrade"],setup(t){const s=t,{$t:i}=b.useIntl(),n=e.computed(()=>{const{amount:a,billingPeriod:o}=s.entry;if(a)return o?i({defaultMessage:"{amount} per {period}",id:"enabled_pricings_list.item.price",description:'The recurring price of an enabled pricing, e.g. "€ 100,00 per month"'},{amount:V.formatAmount(a),period:V.formatBillingPeriod(o,{short:!0,hideValueForExactPeriods:!0})}):V.formatAmount(a)});return(a,o)=>(e.openBlock(),e.createBlock(e.unref(T._sfc_main),{class:"sv-enabled-pricings-list__item"},{default:e.withCtx(()=>[e.createElementVNode("div",ae,[e.createElementVNode("div",se,[e.createVNode(e.unref(b._sfc_main),{tag:"span",variant:"body-xs",color:"subtle",class:"sv-enabled-pricings-list__item-group"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.groupName),1)]),_:1}),e.createVNode(e.unref(b._sfc_main),{tag:"h3",variant:"heading-3","no-spacing":"",class:"sv-enabled-pricings-list__item-name"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.name),1)]),_:1}),n.value?(e.openBlock(),e.createBlock(e.unref(b._sfc_main),{key:0,tag:"span",variant:"body-sm",color:"subtle",class:"sv-enabled-pricings-list__item-price"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value),1)]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.unref(P._sfc_main),{intent:"secondary",class:"sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",type:"button",size:"xs",onClick:o[0]||(o[0]=r=>a.$emit("upgrade",t.entry))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Upgrade",id:"enabled_pricings_list.item.upgrade_button.label",description:"Label for the button that changes which pricing is enabled for a group"})),1)]),_:1})])]),_:1}))}}),ce={class:"sv-enabled-pricings-list__items grid grid-cols-1 gap-2"},le=e.defineComponent({__name:"EnabledPricingsList",props:{pricingPlanSchedule:{type:Object}},emits:["upgrade"],setup(t){const s=t,{$t:i}=b.useIntl(),n=e.computed(()=>oe(s.pricingPlanSchedule));return(a,o)=>n.value.length>0?(e.openBlock(),e.createBlock(e.unref(T._sfc_main),{key:0,class:"sv-enabled-pricings-list","content-background":"none","no-border":"","no-spacing":"",title:e.unref(i)({defaultMessage:"Upgrades",id:"enabled_pricings_list.title",description:"Title for the block listing the pricings enabled on a subscription"})},{default:e.withCtx(()=>[e.createElementVNode("div",ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,r=>(e.openBlock(),e.createBlock(re,{key:r.pricingId,entry:r,onUpgrade:o[0]||(o[0]=c=>a.$emit("upgrade",c))},null,8,["entry"]))),128))])]),_:1},8,["title"])):e.createCommentVNode("",!0)}});function ue({variant:t,renewableUntil:s,billingPeriodEndsAt:i}){const{$t:n}=b.useIntl(),a=e.computed(()=>t.value==="RENEW"),o=e.computed(()=>a.value?n({defaultMessage:"Renew subscription",description:"Title of the renew subscription confirmation modal",id:"subscription_cancellation_modal.renew.title"}):n({defaultMessage:"Cancel subscription",description:"Title of the cancel subscription confirmation modal",id:"subscription_cancellation_modal.cancel.title"})),r=e.computed(()=>a.value?s.value?n({defaultMessage:"You can renew your subscription until {date}. After this period you can only create a new subscription.",description:"Explanation of the deadline for undoing a cancellation, shown in the renew subscription modal",id:"subscription_cancellation_modal.renew.explanation_with_date"},{date:s.value}):n({defaultMessage:"Your subscription will continue as before, and billing will resume on its usual schedule.",description:"Explanation of what happens when a cancellation is undone, shown in the renew subscription modal when no end date is known",id:"subscription_cancellation_modal.renew.explanation"}):i.value?n({defaultMessage:"Your subscription will be canceled, but you’ll continue to have access until {date}.",description:"Explanation of what happens when a running subscription is cancelled, naming the date access ends, shown in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.explanation_with_date"},{date:i.value}):n({defaultMessage:"Your subscription will be canceled, but you’ll continue to have access until the end of the billing period.",description:"Explanation of what happens when a running subscription is cancelled, shown in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.explanation"})),c=e.computed(()=>a.value?n({defaultMessage:"Renew subscription",description:"Label of the confirm button in the renew subscription modal",id:"subscription_cancellation_modal.renew.confirm_button.label"}):n({defaultMessage:"Cancel subscription",description:"Label of the confirm button in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.confirm_button.label"})),d=e.computed(()=>n({defaultMessage:"Cancel",description:"Label of the button that dismisses the cancellation modal",id:"subscription_cancellation_modal.cancel_button.label"})),u=e.computed(()=>a.value?n({defaultMessage:"We could not renew your subscription. Please try again.",description:"Error shown when undoing a cancellation fails",id:"subscription_cancellation_modal.renew.error"}):n({defaultMessage:"We could not cancel your subscription. Please try again.",description:"Error shown when cancelling a subscription fails",id:"subscription_cancellation_modal.cancel.error"}));return{title:o,explanation:r,confirmButtonText:c,cancelButtonText:d,errorMessage:u}}const de=50;function pe(){const{getPaymentMethods:t}=Z.createPaymentMethodsService(),s=e.shallowRef();return{paymentMethod:s,get:async({customerId:n,paymentMethodId:a})=>{const o=await G.getPaginatedFullList(async r=>{const c=await t({customerId:n,pagination:{page:r,pageSize:de}});if(!H.isApiSuccessCollectionResponse(c))throw new Error("Could not load the customer’s payment methods.");return c});return s.value=o.data.find(({id:r})=>r===a),s.value}}}const me={class:"sv-subscription-cancellation-modal sv-subscription-cancellation-modal__body flex flex-col gap-3"},be={key:0,class:"sv-subscription-cancellation-modal__meta flex flex-wrap items-center gap-x-6 gap-y-2 px-3 pb-2"},fe={key:0,class:"sv-subscription-cancellation-modal__renews flex gap-1"},ge=e.defineComponent({__name:"SubscriptionCancellationModal",props:{showModal:{type:Boolean},variant:{type:null},subscription:{type:Object},avatar:{type:String}},emits:["confirmed","close"],setup(t,{emit:s}){const i=t,n=s,{$t:a,formatDate:o}=b.useIntl(),r=b.useLogger(),{setSubscriptionCancellation:c}=Y.createSubscriptionsService(),d=e.computed(()=>i.variant),u=e.computed(()=>{var _;const l=((_=i.subscription)==null?void 0:_.inactive_periods)??[],f=l.find(({type:N})=>N==="CANCEL")??l[0];if(f)return o({date:f.start_at,format:"date",offsetType:"local"})}),g=e.computed(()=>{var f,_;const l=(_=(f=i.subscription)==null?void 0:f.next_invoice)==null?void 0:_.invoice_date;if(l)return o({date:l,format:"date",offsetType:"local"})}),y=g,w=e.computed(()=>{var l,f;return(((f=(l=E.getMostRecentScheduleInfo(i.subscription))==null?void 0:l.pricing_plan_schedule)==null?void 0:f.enabled_pricings)??[]).map(({pricing_id:_})=>_).filter(_=>!!_)}),{title:h,explanation:C,confirmButtonText:S,cancelButtonText:k,errorMessage:B}=ue({variant:d,renewableUntil:u,billingPeriodEndsAt:g}),{paymentMethod:v,get:M}=pe();e.watch([()=>i.showModal,()=>{var l;return(l=i.subscription)==null?void 0:l.payment_method_id},()=>{var l;return(l=i.subscription)==null?void 0:l.customer_id}],([l,f,_])=>{var N;!l||!f||!_||f!==((N=v.value)==null?void 0:N.id)&&M({customerId:_,paymentMethodId:f}).catch(()=>{})},{immediate:!0});const p=e.ref(!1),m=e.ref(!1);e.watch(()=>i.showModal,l=>{l&&(m.value=!1)});const x=async()=>{if(!(!i.subscription||!i.variant||p.value)){p.value=!0,m.value=!1;try{await c({id:i.subscription.id,variant:i.variant}),n("confirmed"),n("close")}catch(l){r.error("SUBSCRIPTION_CANCELLATION_FAILED","Failed to change the cancellation state of a subscription",{variant:i.variant},l),m.value=!0}finally{p.value=!1}}},q=()=>{p.value||n("close")};return(l,f)=>(e.openBlock(),e.createBlock(e.unref(F.Modal),{size:"md","show-modal":t.showModal,title:e.unref(h),"confirm-button-text":e.unref(S),"cancel-button-text":e.unref(k),"is-loading":p.value,"no-click-away":p.value,"no-backdrop-close":p.value,onConfirm:x,onClose:q},{body:e.withCtx(()=>[e.createElementVNode("div",me,[e.createVNode(e.unref(b._sfc_main),{variant:"body-sm",color:"subtle",tag:"p",class:"sv-subscription-cancellation-modal__explanation"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(C)),1)]),_:1}),t.subscription?(e.openBlock(),e.createBlock(e.unref(T._sfc_main),{key:0,"no-spacing":"",class:"sv-subscription-cancellation-modal__subscription"},{default:e.withCtx(()=>[e.createVNode(z._sfc_main,{subscription:t.subscription,avatar:t.avatar,"enabled-pricing-ids":w.value},null,8,["subscription","avatar","enabled-pricing-ids"]),e.unref(y)||e.unref(v)?(e.openBlock(),e.createElementBlock("div",be,[e.unref(y)?(e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(e.unref(b._sfc_main),{tag:"span",variant:"body-xs",color:"secondary",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Renews",description:"Label before the date the subscription renews, shown in the cancel subscription modal",id:"subscription_cancellation_modal.renews_label"})),1)]),_:1}),e.createVNode(e.unref(b._sfc_main),{tag:"span",variant:"body-xs",color:"secondary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)),1)]),_:1})])):e.createCommentVNode("",!0),e.unref(v)?(e.openBlock(),e.createBlock(e.unref(W._sfc_main),{key:1,variant:"condensed",class:"sv-subscription-cancellation-modal__payment-method","payment-method":e.unref(v)},null,8,["payment-method"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createBlock(e.unref(A._sfc_main),{key:1,class:"sv-subscription-cancellation-modal__error sv-error",title:e.unref(B)},null,8,["title"])):e.createCommentVNode("",!0)])]),_:1},8,["show-modal","title","confirm-button-text","cancel-button-text","is-loading","no-click-away","no-backdrop-close"]))}}),_e={class:"sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center"},he=e.defineComponent({__name:"SubscriptionDetails",props:{subscription:{type:Object},schedulesData:{type:Array},customer:{type:Object},paymentMethods:{type:Array},walletBalances:{default:()=>[],type:Array},hasWalletBalancesError:{type:Boolean},avatar:{type:String},isLoading:{type:Boolean},error:{type:null}},emits:["top-up-charged","auto-top-up-saved","auto-top-up-cancelled","payment-method-stored","subscription-changed"],setup(t,{emit:s}){const i=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("../../SubscriptionSchedules-DEjIERyF.js"))),n=t,a=s,{$t:o}=b.useIntl(),{isCancellable:r,isRenewable:c,pendingVariant:d,cancel:u,renew:g,dismiss:y,manage:w}=ne({subscription:e.toRef(n,"subscription")}),h=e.ref();e.watch(d,p=>{p&&(h.value=void 0)});const C=()=>{h.value=d.value,a("subscription-changed")},S=e.computed(()=>{if(h.value)return h.value==="RENEW"?o({defaultMessage:"Your subscription has been renewed.",id:"subscription_details.renew_success",description:"Confirmation shown after a cancellation has been undone"}):o({defaultMessage:"Your subscription has been cancelled. You keep access until the end of the billing period.",id:"subscription_details.cancel_success",description:"Confirmation shown after a subscription has been cancelled"})}),k=e.computed(()=>E.getMostRecentScheduleInfo(n.subscription)),B=e.computed(()=>(n.paymentMethods??[]).find(({id:p})=>{var m;return p===((m=n.subscription)==null?void 0:m.payment_method_id)})),v=e.computed(()=>n.subscription?[n.subscription]:[]),M=e.computed(()=>E.getSubscriptionName({subscription:n.subscription,fallback:o({defaultMessage:"Subscription details",id:"subscription_details.title",description:"Title for the subscription details page"})}));return(p,m)=>(e.openBlock(),e.createBlock(e.unref($.ContentWithAsideLayout),{class:"sv-subscription-details sv-root sv-screen"},{header:e.withCtx(()=>[e.createElementVNode("div",_e,[e.createVNode(e.unref(b._sfc_main),{variant:"heading-2",tag:"h1",class:"sv-subscription-details__title grow"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(M.value),1)]),_:1}),e.unref(c)?(e.openBlock(),e.createBlock(e.unref(P._sfc_main),{key:0,intent:"secondary",class:"sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",type:"button",onClick:e.unref(g)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Renew subscription",id:"subscription_details.renew_button.label",description:"Label for the renew subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(r)?(e.openBlock(),e.createBlock(e.unref(P._sfc_main),{key:1,intent:"secondary",class:"sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",type:"button",onClick:e.unref(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Cancel subscription",id:"subscription_details.cancel_button.label",description:"Label for the cancel subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])]),content:e.withCtx(()=>[S.value?(e.openBlock(),e.createBlock(e.unref(D._sfc_main),{key:0,class:"sv-subscription-details__cancellation-success",type:"success",title:S.value},null,8,["title"])):e.createCommentVNode("",!0),t.error?(e.openBlock(),e.createBlock(e.unref(A._sfc_main),{key:1,class:"sv-subscription-details__error sv-error",title:e.unref(o)({defaultMessage:"Unable to load this subscription. Please try again later.",id:"subscription_details.load_error",description:"Error message shown when the subscription cannot be loaded on the subscription details page"})},null,8,["title"])):t.isLoading?(e.openBlock(),e.createBlock(U._sfc_main,{key:2,variant:"section",class:"min-h-[220px]"})):t.subscription?(e.openBlock(),e.createBlock(e.unref(i),{key:3,class:"sv-subscription-details__schedules","schedules-data":t.schedulesData??[],configuration:{subscriptionId:t.subscription.id},"is-loading":t.isLoading},null,8,["schedules-data","configuration","is-loading"])):(e.openBlock(),e.createBlock(R._sfc_main,{key:4,class:"sv-subscription-details__empty-state",icon:"receipt_long"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Subscription not found",id:"subscription_details.empty_state.title",description:"Title shown when the requested subscription does not exist"})),1)]),message:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"This subscription is no longer available.",id:"subscription_details.empty_state.message",description:"Message shown when the requested subscription does not exist"})),1)]),_:1}))]),aside:e.withCtx(()=>[e.createVNode(L._sfc_main,{class:"sv-subscription-details__wallet-balances","has-error":!!t.hasWalletBalancesError,"is-loading":t.isLoading,"wallet-balances":t.walletBalances,"show-top-up-button":"",customer:t.customer,"payment-methods":t.paymentMethods,subscriptions:v.value,onTopUpCharged:m[0]||(m[0]=x=>p.$emit("top-up-charged")),onAutoTopUpSaved:m[1]||(m[1]=x=>p.$emit("auto-top-up-saved")),onAutoTopUpCancelled:m[2]||(m[2]=x=>p.$emit("auto-top-up-cancelled")),onPaymentMethodStored:m[3]||(m[3]=x=>p.$emit("payment-method-stored"))},null,8,["has-error","is-loading","wallet-balances","customer","payment-methods","subscriptions"]),k.value?(e.openBlock(),e.createBlock(le,{key:0,class:"sv-subscription-details__upgrades","pricing-plan-schedule":k.value,onUpgrade:e.unref(w)},null,8,["pricing-plan-schedule","onUpgrade"])):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createBlock(O._sfc_main,{key:1,class:"sv-subscription-details__payment-method","is-loading":t.isLoading,"payment-methods":[B.value],configuration:{showViewAllButton:!1,showAddButton:!1}},null,8,["is-loading","payment-methods"])):e.createCommentVNode("",!0),e.createVNode(ge,{"show-modal":!!e.unref(d),variant:e.unref(d),subscription:t.subscription,avatar:t.avatar,onConfirmed:C,onClose:e.unref(y)},null,8,["show-modal","variant","subscription","avatar","onClose"])]),_:1}))}}),ve=e.defineComponent({__name:"SubscriptionDetails.entry.view",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const s=t,i=s.portalObject.customer_id,{subscription:n,withPlanData:a,get:o,error:r}=K.useSubscription({subscriptionId:s.configuration.subscriptionId}),{customer:c,get:d}=Q.useCustomer({customerId:i}),{items:u,fetchAll:g}=X.usePaymentMethods({customerId:i}),{walletBalances:y,apiStatus:w,fetch:h}=L.useCustomerWalletBalances({customerId:i}),{isLoading:C}=ee.useLoadInitialData(o(),d.execute(),g(),h()),S=e.computed(()=>n.value?a(n.value):[]),k=e.computed(()=>{var v;return((v=y.value)==null?void 0:v.wallet_balances)??[]}),B=e.computed(()=>w.value===J.ApiStatus.Failed);return(v,M)=>e.renderSlot(v.$slots,"default",{subscription:e.unref(n),schedulesData:S.value,customer:e.unref(c),paymentMethods:e.unref(u),walletBalances:k.value,hasWalletBalancesError:B.value,isLoading:e.unref(C),error:e.unref(r),refreshWalletBalances:e.unref(h),refreshPaymentMethods:e.unref(g),refreshSubscription:e.unref(o)})}}),ye=e.defineComponent({__name:"SubscriptionDetails.entry",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const s=te.getComponentName("subscription-details");return(i,n)=>(e.openBlock(),e.createBlock(e.unref(b._sfc_main$1),{entry:i.$props,"component-name":e.unref(s),"allowed-portal-types":["CUSTOMER"],onError:n[0]||(n[0]=a=>i.$emit("error",a))},{default:e.withCtx(()=>[e.createVNode(ve,e.normalizeProps(e.guardReactiveProps(i.$props)),{default:e.withCtx(({subscription:a,schedulesData:o,customer:r,paymentMethods:c,walletBalances:d,hasWalletBalancesError:u,isLoading:g,error:y,refreshWalletBalances:w,refreshPaymentMethods:h,refreshSubscription:C})=>[e.createVNode(he,{subscription:a,"schedules-data":o,customer:r,avatar:t.configuration.avatar,"payment-methods":c,"wallet-balances":d,"has-wallet-balances-error":u,"is-loading":g,error:y,onTopUpCharged:w,onAutoTopUpSaved:w,onAutoTopUpCancelled:w,onPaymentMethodStored:h,onSubscriptionChanged:C},null,8,["subscription","schedules-data","customer","avatar","payment-methods","wallet-balances","has-wallet-balances-error","is-loading","error","onTopUpCharged","onAutoTopUpSaved","onAutoTopUpCancelled","onPaymentMethodStored","onSubscriptionChanged"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:we}=b.createSolvimonElement(ye,"subscription-details");exports.defineSolvimonSubscriptionDetails=we;
|