@solvimon/solvimon-web 0.1.0-alpha.20 → 0.1.0-alpha.22
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-Co3XAxaY.js +1 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DFv-awxb.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-D42J_izE.js +1 -0
- package/dist/Avatar.vue.es-DNJ-jexx.mjs +81 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BEVkWJXT.js +1 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-D1uVidXk.mjs +60 -0
- package/dist/Button.vue.es-Dz-2L8dJ.mjs +368 -0
- package/dist/Button.vue.es-M_jXZda4.js +1 -0
- package/dist/Checkout.entry.ce-B5-0AM67.mjs +3747 -0
- package/dist/Checkout.entry.ce-C52gkrNZ.js +1 -0
- package/dist/Chip.vue.es-DMK9C78d.mjs +114 -0
- package/dist/Chip.vue.es-G8doKsZb.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-B3Rz6Ojk.js +1 -0
- package/dist/ContextMenu.vue.es-CzkkNoJG.mjs +573 -0
- package/dist/CustomerBillingInformation.vue.es-BmtU9Pk0.js +1 -0
- package/dist/CustomerBillingInformation.vue.es-Db6bN2RZ.mjs +153 -0
- package/dist/CustomerPaymentMethods.lib-B_753rau.mjs +4 -0
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BGHaTx1A.js +1 -0
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-fESZVyPe.mjs +140 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Cnlbp0om.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DdMHG1_Y.mjs +2684 -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-D-QxT2OD.js +1 -0
- package/dist/DividerText.vue.es-IK2fns6f.mjs +56 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CM_8Asmw.js +1 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-lhJnqrrh.mjs +335 -0
- package/dist/ErrorNotification.vue.es-BGckEwHf.mjs +31 -0
- package/dist/ErrorNotification.vue.es-Cd2UKPAz.js +1 -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-BTAkuFsm.js +1 -0
- package/dist/IconButton.vue.es-C4dQEQAc.mjs +198 -0
- package/dist/IconTitle.vue.es-BmX68uJx.mjs +103 -0
- package/dist/IconTitle.vue.es-CmR2xoeu.js +1 -0
- package/dist/Input.vue.es-BGPELaZU.mjs +235 -0
- package/dist/Input.vue.es-CTOrmrcB.js +1 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CMEOOuSU.mjs +92 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-bheNAKzK.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Xo9BR6AD.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-avhwysNq.mjs +41 -0
- package/dist/InvoiceSummary.vue.es-BWLiwlNs.mjs +2585 -0
- package/dist/InvoiceSummary.vue.es-hpG8Tq1D.js +1 -0
- package/dist/Modal.vue.es-BD4vUaOQ.js +1 -0
- package/dist/Modal.vue.es-B_G8NQS2.mjs +387 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-BnilyGBO.mjs +144 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-CSv-Luvz.js +1 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DIJbzWMV.js +1 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DuorCFo9.mjs +51 -0
- package/dist/PaymentHistoryBlock-ComJzB3H.mjs +4 -0
- package/dist/{PaymentHistoryBlock-Ci8aSJeb.js → PaymentHistoryBlock-DSHW_eW1.js} +1 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DUN0Hf2v.js +1 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-hjtksV2D.mjs +93 -0
- package/dist/PaymentIntegrationForm-CH5B6BY5.mjs +4 -0
- package/dist/{PaymentIntegrationForm-CsuueDE0.js → PaymentIntegrationForm-CwfCLnKt.js} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BqYk4_T9.mjs +138 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DzSQC951.js +1 -0
- package/dist/PaymentIntegrationFormAdyen-DfN7cPYZ.mjs +621 -0
- package/dist/PaymentIntegrationFormAdyen-Q48aDXR7.js +98 -0
- package/dist/PaymentIntegrationFormStripe-BSEqarl7.js +102 -0
- package/dist/PaymentIntegrationFormStripe-CBsXDuhy.mjs +488 -0
- package/dist/PaymentMethod.vue.es-D18g-QB4.js +1 -0
- package/dist/PaymentMethod.vue.es-DkQdPXfk.mjs +623 -0
- package/dist/PaymentMethodForm-CpIZKfPH.mjs +4 -0
- package/dist/{PaymentMethodForm-hZuVHAti.js → PaymentMethodForm-DK8ntFA0.js} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-C1tGJsay.mjs +167 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-D7fDguwa.js +1 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-C6BcIkEV.mjs +169 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-H3vrPllf.js +1 -0
- package/dist/PlanCustomizationEditor-0zCXN-cv.mjs +877 -0
- package/dist/PlanCustomizationEditor-XpofGULc.js +1 -0
- package/dist/PricingGroupRangeInput.vue.es-8_5nfZDI.mjs +627 -0
- package/dist/PricingGroupRangeInput.vue.es-QnpfHxaY.js +185 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CGJhKKNL.js +1 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-t6h1j6WD.mjs +131 -0
- package/dist/RadioGroupExtended.vue.es-C92xlCFQ.mjs +163 -0
- package/dist/RadioGroupExtended.vue.es-Cb1iD73r.js +1 -0
- package/dist/Section.vue.es-Btff-cLY.js +1 -0
- package/dist/Section.vue.es-DQ5H7mqW.mjs +72 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BfvX14E3.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DKsunuGT.mjs +687 -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-Dc0rUnnf.mjs +4 -0
- package/dist/SubscriptionSchedules-pzNsego6.js +1 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Brs9qDs5.mjs +5291 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-nmVRb6hj.js +1 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C1mkIPMr.mjs +91 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-s5_uhyuB.js +1 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CFmCJK8M.js +1 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DSoNs7Xx.mjs +284 -0
- package/dist/TooltipParagraph.vue.es-BaqCDjl8.js +1 -0
- package/dist/TooltipParagraph.vue.es-CIedcXGT.mjs +129 -0
- package/dist/TrialChip.vue.es-BzNI94k0.js +1 -0
- package/dist/TrialChip.vue.es-DkBuMNr_.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-BEU5D0Wz.mjs → cn.es-BGqYNPM3.mjs} +657 -927
- package/dist/cn.es-CvmLj7KH.js +1 -0
- 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-CSE7dwUr.mjs +6561 -0
- package/dist/customElements-Vox1PB6G.js +1211 -0
- package/dist/customer-5krPxZ8i.mjs +31 -0
- package/dist/customer-Dsq-Moea.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-_40QfLNJ.js → de-DE-BSlbAnPE.js} +1 -1
- package/dist/de-DE-C3DzP1nj.js +1 -0
- package/dist/{de-DE-BeyQVhTv.mjs → de-DE-DXsG-vXA.mjs} +46 -59
- package/dist/{de-DE-CI2zQkiP.mjs → de-DE-DsFtpLsx.mjs} +7 -5
- 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--NRsi7Hz.js → en-US-9xdcz3T5.js} +1 -1
- package/dist/{en-US-5YWNEi-V.mjs → en-US-C939IZ5i.mjs} +50 -63
- package/dist/{en-US-DksUWPIu.mjs → en-US-DvkvbV0p.mjs} +7 -5
- package/dist/en-US-X_pSFsNm.js +1 -0
- 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-DRgfpkJ6.mjs +118 -0
- package/dist/invoices-xOV2YaEV.js +1 -0
- package/dist/{it-IT-B6blp8MI.mjs → it-IT-BxpwB3oJ.mjs} +46 -59
- package/dist/it-IT-DT3rfjOY.js +1 -0
- package/dist/{it-IT-CMy1tHKZ.mjs → it-IT-TE7oqvXa.mjs} +7 -5
- package/dist/it-IT-YBtHAao1.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-C8wnyKju.js +1 -0
- package/dist/nl-NL-DfkhOJKc.js +1 -0
- package/dist/{nl-NL-CckNM7R9.mjs → nl-NL-Di3-JArV.mjs} +7 -5
- package/dist/{nl-NL-CjoW8r_M.mjs → nl-NL-na2I4aiP.mjs} +46 -59
- 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-CRDIw9lz.js +1 -0
- package/dist/paymentMethods-PmkHYomw.mjs +75 -0
- package/dist/payments-Dvqh6CGW.mjs +45 -0
- package/dist/payments-jAgXhdp_.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-D4aYkYcf.js +1 -0
- package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +77 -0
- package/dist/pricingPlanSchedule-BM8vsKkV.js +1 -0
- package/dist/pricingPlanSchedule-BPrS2WRd.mjs +132 -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-CrVOr5MF.mjs +69 -0
- package/dist/subscription-ZA62t4E9.js +1 -0
- package/dist/subscriptions-XDyI2Cqm.mjs +55 -0
- package/dist/subscriptions-fJcj88X9.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/customer/CheckoutForm/CheckoutForm.types.d.ts +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/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +1 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +6 -0
- package/dist/types/composables/useInvoicePreview.types.d.ts +1 -0
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +1 -1
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +1 -1
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +7 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +1 -1
- 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-B8-oycQk.mjs +11 -0
- package/dist/useActionDispatchProvider-CNAuaHdm.js +1 -0
- package/dist/useCustomer-CP8eWUZV.mjs +20 -0
- package/dist/useCustomer-DSx-wN-6.js +1 -0
- package/dist/useCustomerFormLabels-DW6jnDYH.mjs +968 -0
- package/dist/useCustomerFormLabels-TVTgy0MT.js +1 -0
- package/dist/useExperimentalFeature-BvE_EOX-.mjs +6 -0
- package/dist/useExperimentalFeature-CC-DrIcL.js +1 -0
- package/dist/useIncrementalLoading-CaWOE8Xl.js +1 -0
- package/dist/useIncrementalLoading-Cgxw2GD7.mjs +48 -0
- package/dist/useInvoiceData-CRRPdXc6.js +1 -0
- package/dist/useInvoiceData-D8ds05CX.mjs +38 -0
- package/dist/useInvoicesList-DIfQcvER.js +1 -0
- package/dist/useInvoicesList-SJU5YWBQ.mjs +500 -0
- package/dist/useLoadInitialData-DsabgMLZ.js +1 -0
- package/dist/useLoadInitialData-MUljS38K.mjs +15 -0
- package/dist/usePaymentMethodAvailability-Bt7P9InI.js +1 -0
- package/dist/usePaymentMethodAvailability-D0NUanyF.mjs +118 -0
- package/dist/usePaymentMethodOptions-B7JYkGsw.mjs +37 -0
- package/dist/usePaymentMethodOptions-cT1o-BA1.js +1 -0
- package/dist/usePaymentMethods-CpzqXQUT.mjs +15 -0
- package/dist/usePaymentMethods-DNVw2eVg.js +1 -0
- package/dist/usePayments-D9Eo-uBk.js +1 -0
- package/dist/usePayments-Gx9kBvNB.mjs +318 -0
- package/dist/usePortal-3VCZwSUE.mjs +11 -0
- package/dist/usePortal-DsebXdhx.js +1 -0
- package/dist/useService-Bh47bllz.mjs +50 -0
- package/dist/useService-H7BjLg8P.js +1 -0
- package/dist/useSubscription-DnL1wVh1.mjs +210 -0
- package/dist/useSubscription-K_gP9TeX.js +1 -0
- package/dist/useTimePeriod.es-CmltiTE-.js +1 -0
- package/dist/useTimePeriod.es-DMtKzcoB.mjs +93 -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/wallets.es-CNIMW5ay.js +1 -0
- package/dist/wallets.es-eH2C2ygn.mjs +102 -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/it-IT-aPQY57ht.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/nl-NL-zRUAuEHg.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 +0,0 @@
|
|
|
1
|
-
const e=require("vue"),t=require("./api.es-Czekkp_X.js"),o=require("./customElements-DD7bpqkx.js"),n=require("./component-hDuDTBt5.js"),a=require("./useService-D73FNBjT.js"),i=require("./ErrorNotification.vue.es-CaEFTi2k.js"),l=require("./pricingItemConfigs.es-C73cQlxQ.js"),u=require("./formatting.es-DBtYnvI5.js"),r=require("./Button.vue.es-O8mNivLL.js"),d=require("./TooltipParagraph.vue.es-H9fI7zzt.js"),s=require("./Section.vue.es-CAJvEDn6.js"),c=require("./Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),p=require("./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DkIK-lID.js"),m=require("./index-IZaUTAsE.js"),v=require("./Divider.vue.es-ClFG8QtG.js"),f=require("./Expand.vue.es-C-lnbA1v.js"),_=require("./cn.es-DxSeYcoP.js"),h=require("./invoices-BAoh6X2a.js"),g=require("./useWatchDebounced-C_YxgoQ6.js"),y=require("./Input.vue.es-DqKJhFTr.js"),b=require("./AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-kmam2c7P.js"),w=require("./SubscriptionSummary.vue_vue_type_script_setup_true_lang-CabskT-r.js"),x=require("./customer.es-D42Md24r.js"),B=require("./usePaymentMethodOptions--8QpMvNm.js"),M=require("./Modal.vue.es-B_1aqm_m.js"),C=(e,t,o)=>{var n,a,i,l,r,d;if(null==o?void 0:o.amount)return u.formatAmount(o.amount);if(null==o?void 0:o.credits){const u=Number(o.credits.quantity),s=(1===u?null==(a=null==(n=o.credits.credit_type)?void 0:n.unit_name)?void 0:a.singular:(null==(l=null==(i=o.credits.credit_type)?void 0:i.unit_name)?void 0:l.plural)??(null==(d=null==(r=o.credits.credit_type)?void 0:r.unit_name)?void 0:d.singular))??e({defaultMessage:"credits",description:"Wallet balances credits default message",id:"wB/wXs"});return`${t(u)} ${s}`}return e({defaultMessage:"N/A",description:"Fallback wallet balance label when no balance is available",id:"PW+sL4"})},T=e.defineComponent({__name:"DateTimeAgo",props:{date:{},actionVerb:{}},setup(t){const n=3600,a=t,{$t:i,formatDate:l}=o.useIntl(),u=e.ref(Date.now());let r;e.onMounted(()=>{r=setInterval(()=>{u.value=Date.now()},3e4)}),e.onBeforeUnmount(()=>{clearInterval(r)});const s=e.computed(()=>{const e=Math.max(0,(u.value-a.date.getTime())/1e3);if(e<60)return i({defaultMessage:"{count, plural, one {# second} other {# seconds}} ago",id:"dateTimeAgo.seconds",description:"Relative time in whole seconds"},{count:Math.trunc(e)});if(e<n)return i({defaultMessage:"{count, plural, one {# minute} other {# minutes}} ago",id:"dateTimeAgo.minutes",description:"Relative time in whole minutes"},{count:Math.trunc(e/60)});if(e<86400)return i({defaultMessage:"{count, plural, one {# hour} other {# hours}} ago",id:"dateTimeAgo.hours",description:"Relative time in whole hours"},{count:Math.trunc(e/n)});const t=((e,t)=>{const o=12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth());return t.getDate()<e.getDate()?o-1:o})(a.date,new Date(u.value));if(t<1){const t=Math.trunc(e/86400);return 1===t?i({defaultMessage:"yesterday",id:"dateTimeAgo.yesterday",description:'Relative time for a single day ago, reading as "updated yesterday" once the action verb is in front'}):i({defaultMessage:"{count, plural, one {# day} other {# days}} ago",id:"dateTimeAgo.days",description:"Relative time in whole days"},{count:t})}return t<12?i({defaultMessage:"{count, plural, one {# month} other {# months}} ago",id:"dateTimeAgo.months",description:"Relative time in whole months"},{count:t}):i({defaultMessage:"{count, plural, one {# year} other {# years}} ago",id:"dateTimeAgo.years",description:"Relative time in whole years"},{count:Math.trunc(t/12)})}),c=e.computed(()=>a.actionVerb?`${a.actionVerb} ${s.value}`:s.value),p=e.computed(()=>l({date:a.date,format:"dateTime",offsetType:"local"}));return(t,o)=>(e.openBlock(),e.createBlock(d._sfc_main,null,{tooltip:e.withCtx(()=>[e.createVNode(d.TooltipContent,null,{default:e.withCtx(()=>[e.createVNode(d._sfc_main$1,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(c.value),1)]),_:1}))}}),S=t=>{const{$t:n,formatNumber:a}=o.useIntl(),i=e=>C(n,a,e),u=e.computed(()=>{var e,o;return(null==(o=null==(e=t.walletBalance.wallet)?void 0:e.wallet_type)?void 0:o.name)||n({defaultMessage:"Balance",id:"wallet_balance.balance_label",description:"Label shown above a wallet's balance amount"})}),r=e=>{var t;return((null==(t=e.pricing_item)?void 0:t.configs)??[]).filter(e=>!!e.on_demand)},d=e.computed(()=>(t.walletBalance.charge_on_demand_pricing_items??[]).filter(e=>r(e).some(e=>l.isFixedPricing(e)||l.isFlexiblePricing(e)))),s=e.computed(()=>d.value.find(e=>r(e).some(e=>l.isFlexiblePricing(e)))),c=e.computed(()=>!!t.showManualTopUp&&d.value.length>0),p=e.computed(()=>!!t.showAutoTopUp&&!!s.value),m=e.computed(()=>{var e,o;return null==(o=null==(e=t.walletBalance.wallet)?void 0:e.auto_top_up_configs)?void 0:o.find(e=>"ACTIVE"===e.status)}),v=e.computed(()=>{var e,o;return null==(o=null==(e=t.walletBalance.wallet_balance.open_balance)?void 0:e.credits)?void 0:o.credit_type}),f=(e,t)=>i({credits:{quantity:e,credit_type_id:t,credit_type:v.value}}),_=e.computed(()=>{var e,o;const n=null==(e=m.value)?void 0:e.pricing_item_id;if(!n)return;const a=(t.walletBalance.charge_on_demand_pricing_items??[]).filter(e=>e.pricing_item_id===n).flatMap(e=>r(e)).flatMap(e=>e.wallet_grants??[]),i=null==(o=t.walletBalance.wallet)?void 0:o.wallet_type_id;return a.find(e=>e.wallet_type_id===i)??a[0]}),h=e.computed(()=>{var e,t;const o=null==(e=m.value)?void 0:e.topup_amount,n=null==(t=_.value)?void 0:t.credits_grant;if(!o||!n)return"";if(n.credits)return f(n.credits.quantity,n.credits.credit_type_id);if(n.conversion){const e=Number(o.quantity)*Number(n.conversion.rate);return f(String(e),n.conversion.credit_type_id)}return""}),g=e.computed(()=>m.value?n({defaultMessage:"Auto top-up enabled",id:"wallet_balance.auto_top_up_enabled_label",description:"Label shown when a wallet tops itself up automatically"}):n({defaultMessage:"No auto top-up enabled",id:"wallet_balance.auto_top_up_disabled_label",description:"Label shown when a wallet has no automatic top-up configured"})),y=e.computed(()=>{const e=m.value;if(!e)return n({defaultMessage:"Set up an automatic top-up and your balance is increased for you whenever it drops below an amount you choose, so you never run out.",id:"wallet_balance.auto_top_up_setup_explanation",description:"Tooltip explaining what automatic top-ups do, shown when none is configured yet"});const t=e.topup_amount?i({amount:e.topup_amount}):"",o=(e=>e.amount?i({amount:e.amount}):e.credits?f(e.credits.quantity,e.credits.credit_type_id):"")(e.threshold);return t&&o?h.value?n({defaultMessage:"Your balance is automatically increased with {topUpCredits} ({topUpAmount}) when it drops below {threshold}.",id:"wallet_balance.auto_top_up_credits_explanation",description:"Tooltip explaining an automatic top-up that grants credits for a paid amount"},{topUpCredits:h.value,topUpAmount:t,threshold:o}):n({defaultMessage:"Your balance is automatically increased with {topUpAmount} when it drops below {threshold}.",id:"wallet_balance.auto_top_up_explanation",description:"Tooltip explaining how the automatic top-up of a wallet balance works"},{topUpAmount:t,threshold:o}):n({defaultMessage:"Your balance is topped up automatically once it runs low.",id:"wallet_balance.auto_top_up_generic_explanation",description:"Tooltip shown for an active automatic top-up whose amount or threshold is unknown"})});return{walletName:u,formatBalance:i,manualTopUpItems:d,flexibleManualTopUpItem:s,showManualTopUp:c,showAutoTopUp:p,activeTopUpConfig:m,autoTopUpLabel:g,autoTopUpExplanation:y}},P={class:"flex flex-col gap-3 py-3"},k={class:"flex flex-col gap-1 px-4"},N={class:"flex w-full justify-between gap-3"},V={class:"flex w-full items-center gap-4"},I={key:0},U={key:1,class:"flex w-full justify-between gap-3 px-4"},E={class:"flex min-w-0 items-center gap-1"},A={class:"flex min-w-0 items-center gap-1"},D={class:"shrink-0"},O=e.defineComponent({__name:"WalletBalancesItem",props:{walletBalance:{},showAutoTopUp:{type:Boolean},showManualTopUp:{type:Boolean}},emits:["top-up","auto-top-up","cancel-auto-top-up"],setup(t){const n=t,{$t:a}=o.useIntl(),{walletName:i,formatBalance:l,manualTopUpItems:u,flexibleManualTopUpItem:s,showManualTopUp:c,showAutoTopUp:p,activeTopUpConfig:m,autoTopUpLabel:v,autoTopUpExplanation:f}=S(n);return(_,h)=>(e.openBlock(),e.createElementBlock("div",P,[e.createElementVNode("div",k,[e.createElementVNode("div",N,[e.createVNode(o._sfc_main,{variant:"body-xs",color:"subtle","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)),1)]),_:1}),e.createVNode(o._sfc_main,{variant:"body-xs",color:"subtle","no-spacing":""},{default:e.withCtx(()=>{var o,n;return[(null==(o=t.walletBalance.wallet_balance)?void 0:o.balance_at)?(e.openBlock(),e.createBlock(T,{key:0,date:new Date(null==(n=t.walletBalance.wallet_balance)?void 0:n.balance_at),"action-verb":e.unref(a)({defaultMessage:"updated",id:"wallet_balance.updated_action_verb",description:"Verb in front of when a wallet balance was last updated, e.g. 'updated 5 minutes ago'"})},null,8,["date","action-verb"])):e.createCommentVNode("",!0)]}),_:1})]),e.createElementVNode("div",V,[e.createVNode(o._sfc_main,{variant:"body-lg",weight:"semibold","no-spacing":"",class:"grow"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)(n.walletBalance.wallet_balance.open_balance)),1)]),_:1}),e.unref(c)?(e.openBlock(),e.createBlock(e.unref(r._sfc_main$1),{key:0,size:"xs",onClick:h[0]||(h[0]=t=>_.$emit("top-up",e.unref(u)[0]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Top up",id:"v1V8kA",description:"Button to top up a wallet balance"})),1)]),_:1})):e.createCommentVNode("",!0)])]),_.$slots.graph?(e.openBlock(),e.createElementBlock("div",I,[e.renderSlot(_.$slots,"graph")])):e.createCommentVNode("",!0),e.unref(p)?(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",E,[e.createVNode(d._sfc_main,{class:"min-w-0"},{tooltip:e.withCtx(()=>[e.createVNode(d.TooltipContent,null,{default:e.withCtx(()=>[e.createVNode(d._sfc_main$1,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",A,[e.createVNode(o._sfc_main,{variant:"body-sm",color:"secondary","no-spacing":"",class:"truncate"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(v)),1)]),_:1}),e.createVNode(r._sfc_main,{icon:"info",size:"2xs",class:"shrink-0 cursor-help text-gray-400"})])]),_:1})]),e.createElementVNode("div",D,[e.unref(m)?(e.openBlock(),e.createBlock(e.unref(r._sfc_main$1),{key:0,size:"xs",intent:"secondary",onClick:h[1]||(h[1]=t=>_.$emit("cancel-auto-top-up",e.unref(m)))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Disable",id:"wallet_balance.auto_top_up_disable_button",description:"Button to turn off a wallet's automatic top-up"})),1)]),_:1})):(e.openBlock(),e.createBlock(e.unref(r._sfc_main$1),{key:1,size:"xs",intent:"secondary",onClick:h[2]||(h[2]=t=>_.$emit("auto-top-up",e.unref(s)))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Enable",id:"wallet_balance.auto_top_up_enable_button",description:"Button to set up a wallet's automatic top-up"})),1)]),_:1}))])])):e.createCommentVNode("",!0)]))}}),$={class:"flex flex-col gap-2"},q=e.defineComponent({__name:"WalletBalances",props:{customerWalletBalances:{},title:{default:void 0},showAutoTopUp:{type:Boolean,default:!1},showManualTopUp:{type:Boolean,default:!1}},emits:["top-up","auto-top-up","cancel-auto-top-up"],setup:t=>(o,n)=>(e.openBlock(),e.createBlock(s._sfc_main,{"no-spacing":"","no-border":"",title:t.title},e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customerWalletBalances,a=>(e.openBlock(),e.createBlock(s._sfc_main,{key:a.wallet_id,"no-spacing":""},{default:e.withCtx(()=>[e.createVNode(O,{"wallet-balance":a,"show-auto-top-up":t.showAutoTopUp,"show-manual-top-up":t.showManualTopUp,onTopUp:n[0]||(n[0]=e=>o.$emit("top-up",e)),onAutoTopUp:n[1]||(n[1]=e=>o.$emit("auto-top-up",e)),onCancelAutoTopUp:n[2]||(n[2]=e=>o.$emit("cancel-auto-top-up",e))},null,8,["wallet-balance","show-auto-top-up","show-manual-top-up"])]),_:2},1024))),128))])]),_:2},[o.$slots["heading-right"]?{name:"right",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"heading-right")]),key:"0"}:void 0]),1032,["title"]))});const R=(e=[],t)=>{if(null==t?void 0:t.pricing_item_id)return e.find(e=>(e.charge_on_demand_pricing_items??[]).some(({pricing_item_id:e})=>e===t.pricing_item_id))},j=["TOP_UP","ADD_PAYMENT_METHOD","SUCCESS"],L=e=>"object"==typeof e&&null!==e&&"pricing_item"in e,F=(e,t)=>{const o=new Set((e=>[...new Set(((null==e?void 0:e.charge_on_demand_pricing_items)??[]).flatMap(e=>L(e)&&e.pricing_plan_schedule_id?[e.pricing_plan_schedule_id]:[]))])(e));return t.flatMap(e=>{const t=(e.pricing_plan_schedule_infos??[]).filter(({id:e})=>o.has(e));return 0===t.length?[]:[{id:e.id,name:e.name||e.reference||e.id,scheduleIds:t.map(({id:e})=>e),enabledPricingIds:t.flatMap(e=>{var t;return((null==(t=e.pricing_plan_schedule)?void 0:t.enabled_pricings)??[]).flatMap(({pricing_id:e})=>e?[e]:[])})}]})},Y=e=>((null==e?void 0:e.charge_on_demand_pricing_items)??[]).flatMap(t=>{var o,n;if(!L(t))return[];const a=t.pricing_item_id??(null==(o=t.pricing_item)?void 0:o.id);return a?((null==(n=t.pricing_item)?void 0:n.configs)??[]).map(o=>{const n=function(e,t){var o,n,a,i,u,r,d;if(!e.on_demand||!l.isFlexiblePricing(e))return;const s=null==(n=null==(o=e.details)?void 0:o.bands)?void 0:n[0],c=(null==(a=null==s?void 0:s.minimum_amount)?void 0:a.currency)??(null==(i=null==s?void 0:s.maximum_amount)?void 0:i.currency)??(null==(r=null==(u=null==t?void 0:t.wallet_balance.balance)?void 0:u.amount)?void 0:r.currency);if(!c)return;const p=z(t),m=p?W(e,t):void 0,v=null==(d=null==p?void 0:p.credit_type)?void 0:d.unit_name,f=e=>{if(!e)return;const t=p&&m?J(e.quantity,m.rate):void 0;return void 0!==t&&p?G(t,p):{amount:e}};return{config:{...(null==s?void 0:s.minimum_amount)&&{minimum_amount:s.minimum_amount},...(null==s?void 0:s.maximum_amount)&&{maximum_amount:s.maximum_amount}},currency:c,...m&&{creditsConfiguration:{conversionRate:m.rate,...(null==v?void 0:v.singular)&&{unitNameSingle:v.singular},...(null==v?void 0:v.plural)&&{unitNamePlural:v.plural}}},bounds:{...f(null==s?void 0:s.minimum_amount)&&{minimum:f(null==s?void 0:s.minimum_amount)},...f(null==s?void 0:s.maximum_amount)&&{maximum:f(null==s?void 0:s.maximum_amount)}}}}(o,e),i=function(e,t){var o,n,a;if(!e.on_demand||!l.hasOneOfPricingTypes(e,["FIXED"]))return;const i=null==(a=null==(n=null==(o=e.details)?void 0:o.bands)?void 0:n[0])?void 0:a.fixed_amount;if(!i)return;const u=z(t),r=u?X(e,t):void 0;return{amount:i,value:r&&u?G(r.quantity,u):{amount:i}}}(o,e);return{pricingItemId:a,...t.pricing_plan_schedule_id&&{pricingPlanScheduleId:t.pricing_plan_schedule_id},config:o,...n&&{flexiblePricing:n},...i&&{fixedPricing:i}}}):[]});const z=e=>{var t;return null==(t=null==e?void 0:e.wallet_balance.balance)?void 0:t.credits},H=(e,t)=>{var o;const n=null==(o=null==t?void 0:t.wallet)?void 0:o.wallet_type_id;return(e.wallet_grants??[]).filter(({wallet_type_id:e})=>!n||e===n)},W=(e,t)=>{var o,n;return null==(n=null==(o=H(e,t).find(({credits_grant:e})=>null==e?void 0:e.conversion))?void 0:o.credits_grant)?void 0:n.conversion},X=(e,t)=>{var o,n;return null==(n=null==(o=H(e,t).find(({credits_grant:e})=>null==e?void 0:e.credits))?void 0:o.credits_grant)?void 0:n.credits},G=(e,t)=>({credits:{...t,quantity:e}}),J=(e,t)=>{const o=Number(e),n=Number(t);return Number.isFinite(o)&&Number.isFinite(n)?String(o*n):void 0};const K=e=>{var t,o,n,a,i;return!!(null==(t=e.fixedPricing)?void 0:t.value.credits)||!!(null==(o=e.flexiblePricing)?void 0:o.creditsConfiguration)||!!(null==(i=(null==(n=e.flexiblePricing)?void 0:n.bounds.minimum)??(null==(a=e.flexiblePricing)?void 0:a.bounds.maximum))?void 0:i.credits)},Q=(e=[])=>{for(const{flexiblePricing:t,fixedPricing:o}of e){const e=(null==t?void 0:t.currency)??(null==o?void 0:o.amount.currency);if(e)return e}},Z=(e=[])=>{var t,o,n;for(const{fixedPricing:a,flexiblePricing:i}of e){const e=(null==a?void 0:a.value.credits)??(null==(t=(null==i?void 0:i.bounds.minimum)??(null==i?void 0:i.bounds.maximum))?void 0:t.credits);if(null==(n=null==(o=null==e?void 0:e.credit_type)?void 0:o.unit_name)?void 0:n.plural)return e.credit_type.unit_name.plural}},ee=(e=[])=>{var t;for(const{flexiblePricing:o}of e){const e=null==(t=null==o?void 0:o.creditsConfiguration)?void 0:t.conversionRate;if(e)return e}},te=(e=[])=>{for(const{flexiblePricing:t}of e){const{minimum_amount:e,maximum_amount:o}=(null==t?void 0:t.config)??{};if(e||o)return{...e&&{minimum:e},...o&&{maximum:o}}}return{}},oe=(e=[])=>{const t=((e=[])=>{if(e.some(K)){const t=(e=>{var t;for(const{fixedPricing:o,flexiblePricing:n}of e){const e=(null==o?void 0:o.value.credits)??(null==(t=(null==n?void 0:n.bounds.minimum)??(null==n?void 0:n.bounds.maximum))?void 0:t.credits);if(null==e?void 0:e.credit_type_id)return e.credit_type_id}})(e);return t?{creditTypeId:t}:void 0}for(const{flexiblePricing:t,fixedPricing:o}of e){const e=(null==t?void 0:t.currency)??(null==o?void 0:o.amount.currency);if(e)return{currency:e}}})(e);if(t)return{denomination:t,chargeCurrency:Q(e)??"",creditUnitName:Z(e),conversionRate:ee(e),topUpBounds:te(e)}};const ne={key:0},ae=e.defineComponent({__name:"TopUpInvoicePreview",props:{pricingPlanScheduleId:{type:String},pricingItems:{type:Array}},setup(t){const n=t,{$t:a}=o.useIntl(),i=e.computed(()=>n.pricingPlanScheduleId),l=e.computed(()=>n.pricingItems),{invoicePreview:u}=function({pricingPlanScheduleId:t,pricingItems:n}){const{previewChargeOnDemandPricingItems:a}=h.createInvoicesService(),i=o.useLogger(),l=e.ref(),u=e.ref(!1),r=o.createLatestGuard(),d=async()=>{const e=t.value,o=r();if(!e||!n.value)return n.value&&!e&&i.warn("INVOICE_PREVIEW_SKIPPED","Skipped the top-up invoice preview: no schedule to charge it on",{missing:["pricingPlanScheduleId"]}),l.value=void 0,void(u.value=!1);u.value=!0;try{const t=await a({pricingPlanScheduleId:e,pricingItems:n.value});o()&&(l.value=t)}catch(d){o()&&(l.value=void 0),i.error("INVOICE_PREVIEW_FAILED","Failed to load top-up invoice preview",{},d)}finally{o()&&(u.value=!1)}};return g.useWatchDebounced(n,()=>{d()},{debounce:400,deep:!0}),d(),{invoicePreview:l,isPreviewPending:u,loadPreview:d}}({pricingPlanScheduleId:i,pricingItems:l});return(t,o)=>(e.openBlock(),e.createBlock(c._sfc_main,{class:"sv-top-up-invoice-preview h-[152px]","data-testid":"top-up-invoice-preview-skeleton"},{default:e.withCtx(()=>[e.unref(u)?(e.openBlock(),e.createElementBlock("div",ne,[e.createVNode(e.unref(_._sfc_main),{required:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"You will pay",description:"Label above the preview of what topping up will be invoiced for",id:"topup_modal.invoice_preview.label"})),1)]),_:1}),e.createVNode(e.unref(s._sfc_main),{"content-background":"none"},{default:e.withCtx(()=>[e.createVNode(e.unref(p._sfc_main$2),{invoice:e.unref(u),"is-customer-facing":""},null,8,["invoice"])]),_:1})])):e.createCommentVNode("",!0)]),_:1}))}}),ie=(e,t)=>e.currency??t??e.creditTypeId??"",le=(e,t)=>({quantity:e??null,currency:t}),ue=(e,{denomination:t,chargeCurrency:o,creditUnitName:n,minimumTopUp:a})=>{var i,l,u,r,d;return{enabled:"ACTIVE"===(null==e?void 0:e.status),threshold:le((null==(l=null==(i=null==e?void 0:e.threshold)?void 0:i.amount)?void 0:l.quantity)??(null==(r=null==(u=null==e?void 0:e.threshold)?void 0:u.credits)?void 0:r.quantity),ie(t,n)),topUpAmount:le((null==(d=null==e?void 0:e.topup_amount)?void 0:d.quantity)??a,o)}},re=(e,t)=>{var o;const n=null==(o=e.threshold)?void 0:o.quantity;return n?t.creditTypeId?{credits:{quantity:n,credit_type_id:t.creditTypeId}}:{amount:{quantity:n,currency:t.currency??""}}:{}},de=(e,t)=>{var o;return(null==(o=e.topUpAmount)?void 0:o.quantity)?{quantity:e.topUpAmount.quantity,currency:e.topUpAmount.currency??t}:void 0},se=(e,{denomination:t,chargeCurrency:o})=>({status:e.enabled?"ACTIVE":"INACTIVE",threshold:re(e,t),...de(e,o)&&{topup_amount:de(e,o)}}),ce=(e,t)=>se(ue(e,t),t),pe=(e,t)=>JSON.stringify(e)===JSON.stringify(t),me=e=>{const t=Number(null==e?void 0:e.quantity);return(null==e?void 0:e.quantity)&&Number.isFinite(t)?t:void 0},ve=e=>{const t=Number(e);return null!=e&&""!==e&&Number.isFinite(t)?t:void 0},fe=(e,t,o)=>{const n=ve(e),a=ve(o);if(!(void 0===n||void 0===a||a<=0))return"CREDITS"===t?n/a:n*a},_e=(e,t,o,n)=>t===o?ve(e):fe(e,t,n),he=e=>e.toFixed(2),ge=(e,t)=>"AMOUNT"===t?he(e):String(Number(e.toFixed(6))),ye=(e,t,o,n)=>{const a=((e,t,o)=>"CREDITS"===t?fe(e,"AMOUNT",o):ve(e))(null==e?void 0:e.quantity,t,o);if(void 0!==a)return"CREDITS"===t?n(a):he(a)},be=["data-testid"],we=e.defineComponent({__name:"ConvertedAmountInput",props:e.mergeModels({unit:{type:String},modelBase:{type:String},entryBase:{type:String},conversionRate:{type:String},showConversionHint:{type:Boolean},currency:{type:String},creditUnitName:{type:String},bounds:{type:Object},label:{type:String},name:{type:String},required:{type:Boolean},disabled:{type:Boolean},error:{type:[String,Object,Array]}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,a=e.useModel(t,"modelValue"),{$t:i,formatNumber:l}=o.useIntl(),r=e.computed(()=>n.entryBase??n.modelBase),d=e.computed(()=>r.value!==n.modelBase&&void 0!==ve(n.conversionRate)),s=e.ref("");function c(e){const t=_e(e,r.value,n.modelBase,n.conversionRate);return void 0===t?"":ge(t,n.modelBase)}e.watch(()=>[a.value,r.value,n.modelBase,n.conversionRate],([e])=>{if(!d.value)return void(s.value=e??"");if(e===c(s.value))return;const t=_e(e,n.modelBase,r.value,n.conversionRate);s.value=void 0===t?"":ge(t,r.value)},{immediate:!0});const p=e.computed({get:()=>s.value,set:e=>{s.value=function(e){return"string"==typeof e?e:"number"==typeof e?String(e):""}(e),a.value=d.value?c(s.value):s.value}}),m=e.computed(()=>fe(s.value,r.value,n.conversionRate)),v=e.computed(()=>n.creditUnitName?n.creditUnitName:"CREDITS"===r.value?n.unit:i({defaultMessage:"credits",description:"Generic name for a wallet credit, where its credit type does not name one",id:"converted_amount_input.credits"})),f=e=>`${l(e)} ${v.value}`,_=e.computed(()=>{const t=n.error;return Array.isArray(t)?t.length>0:Boolean(e.isRef(t)?t.value:t)}),h=e.computed(()=>{const e=m.value;var t,o;if(!_.value&&n.showConversionHint&&void 0!==e)return"CREDITS"===r.value?n.currency?i({defaultMessage:"Will cost {amount} excluding taxes",description:"Helper text under a credits field, naming what those credits cost in money",id:"converted_amount_input.cost"},{amount:(t=e,o=n.currency,u.formatAmount({quantity:he(t),currency:o}))}):void 0:i({defaultMessage:"Buys about {credits}",description:"Helper text under a money field, naming the credits that amount converts into",id:"converted_amount_input.buys"},{credits:f(e)})}),g=e=>ye(e,r.value,n.conversionRate,l),b=e.computed(()=>{var e,t,o,a;return"CREDITS"===r.value?v.value:(null==(t=null==(e=n.bounds)?void 0:e.minimum)?void 0:t.currency)??(null==(a=null==(o=n.bounds)?void 0:o.maximum)?void 0:a.currency)??n.unit}),w=e.computed(()=>{var e,t;const o=g(null==(e=n.bounds)?void 0:e.minimum),a=g(null==(t=n.bounds)?void 0:t.maximum),l=b.value;return o&&a?i({defaultMessage:"Between {minimum} and {maximum} {unit}",description:"Range of what a flexible top-up may be charged for, beside its label",id:"converted_amount_input.bounds.range"},{minimum:o,maximum:a,unit:l}):o?i({defaultMessage:"At least {minimum} {unit}",description:"Smallest amount a flexible top-up may be charged for, beside its label",id:"converted_amount_input.bounds.minimum"},{minimum:o,unit:l}):a?i({defaultMessage:"Up to {maximum} {unit}",description:"Largest amount a flexible top-up may be charged for, beside its label",id:"converted_amount_input.bounds.maximum"},{maximum:a,unit:l}):void 0});return(n,a)=>(e.openBlock(),e.createBlock(e.unref(y._sfc_main),{modelValue:p.value,"onUpdate:modelValue":a[0]||(a[0]=e=>p.value=e),class:"sv-converted-amount-input",type:"number","as-text-type":"",name:t.name,label:t.label,required:t.required,disabled:t.disabled,error:t.error},e.createSlots({suffix:e.withCtx(()=>[e.createElementVNode("span",{"data-testid":`${t.name}-unit`},e.toDisplayString(t.unit),9,be)]),_:2},[w.value?{name:"label-suffix",fn:e.withCtx(()=>[e.createVNode(e.unref(o._sfc_main),{tag:"span",variant:"body-xs",color:"subtle","no-spacing":"","data-testid":`${t.name}-bounds`},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.value),1)]),_:1},8,["data-testid"])]),key:"0"}:void 0,h.value?{name:"helper",fn:e.withCtx(()=>[e.createVNode(e.unref(o._sfc_main),{tag:"span",variant:"body-xs",color:"subtle","no-spacing":"","data-testid":`${t.name}-conversion`},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.value),1)]),_:1},8,["data-testid"])]),key:"1"}:void 0]),1032,["modelValue","name","label","required","disabled","error"]))}}),xe=e.defineComponent({__name:"Section",props:{emphasized:{type:Boolean,default:!1},contentClasses:{type:String},contentBackground:{type:String},title:{type:String},noSpacing:{type:Boolean},hasError:{type:Boolean},noBorder:{type:Boolean}},setup(t){const o=t,n=["sv-section__accent relative","before:absolute before:inset-y-0.5 before:left-0.5 before:w-0.5","before:rounded-full before:bg-primary-600"].join(" "),a=e.computed(()=>[o.emphasized?n:void 0,o.contentClasses].filter(Boolean).join(" ")),i=e.computed(()=>{const{emphasized:e,...t}=o;return t});return(t,o)=>(e.openBlock(),e.createBlock(e.unref(s._sfc_main),e.mergeProps(i.value,{class:"sv-section","content-classes":a.value}),e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:2},[t.$slots.right?{name:"right",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"right")]),key:"0"}:void 0]),1040,["content-classes"]))}}),Be={class:"flex grow flex-col"},Me=e.defineComponent({__name:"AutoTopUpConfig",props:{config:{type:Object},denomination:{type:Object},creditUnitName:{type:String},chargeCurrency:{type:String},conversionRate:{type:String},topUpBounds:{type:Object},showThresholdConversion:{type:Boolean,default:!0},contained:{type:Boolean},alwaysEnabled:{type:Boolean},disabled:{type:Boolean}},emits:["save"],setup(t,{expose:n,emit:a}){const i=t,l=a,{$t:r,formatNumber:d}=o.useIntl(),s=e.computed(()=>{var e,t;return{denomination:i.denomination,chargeCurrency:i.chargeCurrency,creditUnitName:i.creditUnitName,minimumTopUp:null==(t=null==(e=i.topUpBounds)?void 0:e.minimum)?void 0:t.quantity}}),c=e.ref(ue(i.config,s.value)),p=e.computed(()=>ie(i.denomination,i.creditUnitName)),v=e.computed(()=>i.denomination.creditTypeId?"CREDITS":"AMOUNT"),_=e.computed(()=>"CREDITS"===v.value?p.value:i.chargeCurrency),h=e.computed({get:()=>{var e;return(null==(e=c.value.threshold)?void 0:e.quantity)??""},set:e=>{c.value.threshold={quantity:e||null,currency:p.value}}}),g=e.computed({get:()=>{var e;return(null==(e=c.value.topUpAmount)?void 0:e.quantity)??""},set:e=>{c.value.topUpAmount={quantity:e||null,currency:i.chargeCurrency}}});e.watch(()=>[i.config,s.value],([e,t])=>{pe(ce(e,t),w())||(c.value=ue(e,t))});const y=e.computed({get:()=>i.alwaysEnabled||c.value.enabled,set:e=>{c.value.enabled=e}}),b=e.computed(()=>se({...c.value,enabled:y.value},s.value)),w=()=>b.value,x=e.reactive({threshold:e.computed(()=>me(c.value.threshold)??null),topUpAmount:e.computed(()=>me(c.value.topUpAmount)??null)}),B=e=>{if(!e)return"";const t=ye(e,v.value,i.conversionRate,d);return void 0===t?u.formatAmount(e):`${t} ${_.value}`},M=m.requiredIf(()=>y.value),C=m.useValidation({threshold:{required:m.common.withMessage(()=>r({defaultMessage:"Enter the balance to top up at.",description:"Error shown under the auto top-up threshold when it is left empty",id:"auto_topup_config.threshold.required"}),M),notNegative:m.common.withMessage(()=>r({defaultMessage:"The balance to top up at cannot be negative.",description:"Error shown under the auto top-up threshold when it is below zero",id:"auto_topup_config.threshold.not_negative"}),e=>null===e||e>=0)},topUpAmount:{required:m.common.withMessage(()=>r({defaultMessage:"Enter the amount to top up with.",description:"Error shown under the auto top-up amount when it is left empty",id:"auto_topup_config.amount.required"}),M),positive:m.common.withMessage(()=>r({defaultMessage:"Top up with more than zero.",description:"Error shown under the auto top-up amount when it is zero or negative",id:"auto_topup_config.amount.positive"}),e=>null===e||e>0),atLeastMinimum:m.common.withMessage(()=>{var e;return r({defaultMessage:"Top up with at least {minimum}.",description:"Error shown under the auto top-up amount when it is below what the pricing allows",id:"auto_topup_config.amount.at_least_minimum"},{minimum:B(null==(e=i.topUpBounds)?void 0:e.minimum)})},e=>{var t;return((e,t)=>{const o=Number(null==t?void 0:t.quantity);return null===e||!(null==t?void 0:t.quantity)||!Number.isFinite(o)||e>=o})(e,null==(t=i.topUpBounds)?void 0:t.minimum)}),withinMaximum:m.common.withMessage(()=>{var e;return r({defaultMessage:"Top up with at most {maximum}.",description:"Error shown under the auto top-up amount when it is above what the pricing allows",id:"auto_topup_config.amount.within_maximum"},{maximum:B(null==(e=i.topUpBounds)?void 0:e.maximum)})},e=>{var t;return((e,t)=>{const o=Number(null==t?void 0:t.quantity);return null===e||!(null==t?void 0:t.quantity)||!Number.isFinite(o)||e<=o})(e,null==(t=i.topUpBounds)?void 0:t.maximum)})}},x),T=e.computed(()=>!pe(w(),ce(i.config,s.value)));function S(){return C.value.$touch(),C.value.$invalid?void 0:w()}return n({submit:function(){const e=S();e&&l("save",e)},validate:S,rule:b,hasChanges:T,isInvalid:e.computed(()=>C.value.$invalid)}),(n,a)=>(e.openBlock(),e.createBlock(xe,{class:"sv-auto-topup-config","content-background":t.contained?"gray":"none","no-spacing":!t.contained,"no-border":!t.contained},{default:e.withCtx(()=>[t.alwaysEnabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{key:0,modelValue:y.value,"onUpdate:modelValue":a[0]||(a[0]=e=>y.value=e),"no-spacing":"","label-position":"before",class:"!flex",disabled:t.disabled},{"inline-label":e.withCtx(()=>[e.createElementVNode("div",Be,[e.createVNode(e.unref(o._sfc_main),{tag:"span",variant:"body-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Auto top-up",description:"Title of the automatic wallet top-up settings",id:"auto_topup_config.title"})),1)]),_:1}),e.createVNode(e.unref(o._sfc_main),{tag:"span",variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Automatically top up your balance when it runs low.",description:"Subtitle of the automatic wallet top-up settings",id:"auto_topup_config.subtitle"})),1)]),_:1})])]),_:1},8,["modelValue","disabled"])),e.createVNode(e.unref(f._sfc_main),{"is-open":y.value},{default:e.withCtx(()=>[y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["grid grid-cols-1 gap-3",{"mt-4":!t.alwaysEnabled}])},[e.createVNode(we,{modelValue:h.value,"onUpdate:modelValue":a[1]||(a[1]=e=>h.value=e),name:"auto-top-up-threshold",unit:p.value,"model-base":v.value,"entry-base":v.value,currency:t.chargeCurrency,"conversion-rate":t.conversionRate,"show-conversion-hint":t.showThresholdConversion,required:"",disabled:t.disabled,error:e.unref(C).threshold.$errors,label:e.unref(r)({defaultMessage:"When your balance falls below",description:"Label of the balance at which an automatic top-up is charged",id:"auto_topup_config.threshold.label"})},null,8,["modelValue","unit","model-base","entry-base","currency","conversion-rate","show-conversion-hint","disabled","error","label"]),e.createVNode(we,{modelValue:g.value,"onUpdate:modelValue":a[2]||(a[2]=e=>g.value=e),name:"auto-top-up-amount",unit:_.value,"model-base":"AMOUNT","entry-base":v.value,currency:t.chargeCurrency,"credit-unit-name":t.creditUnitName,"conversion-rate":t.conversionRate,bounds:t.topUpBounds,"show-conversion-hint":"",required:"",disabled:t.disabled,error:e.unref(C).topUpAmount.$errors,label:e.unref(r)({defaultMessage:"Top-up with",description:"Label of the amount every automatic top-up adds",id:"auto_topup_config.amount.label"})},null,8,["modelValue","unit","entry-base","currency","credit-unit-name","conversion-rate","bounds","disabled","error","label"])],2)):e.createCommentVNode("",!0)]),_:1},8,["is-open"])]),_:1},8,["content-background","no-spacing","no-border"]))}}),Ce=e=>{const t=Date.parse(e??"");return Number.isFinite(t)?t:0};function Te({paymentMethods:t,selectedPaymentMethodId:o,preferredPaymentMethodId:n}){const a=e.computed(()=>[...t.value??[]].sort((e,t)=>Ce(t.created_at)-Ce(e.created_at)));return e.watch(()=>[t.value,null==n?void 0:n.value,o.value],([e,t,n],i)=>{var l;const u=null==i?void 0:i[0],r=null==e?void 0:e.find(({id:e})=>!(null==u?void 0:u.some(t=>t.id===e)));if(r&&(null==u?void 0:u.length))return void(o.value=r.id);const d=t=>!!t&&!!(null==e?void 0:e.some(e=>e.id===t));d(n)||(o.value=d(t)?t:null==(l=(null==e?void 0:e.find(({is_default:e})=>e))??a.value[0])?void 0:l.id)},{immediate:!0}),{sortedPaymentMethods:a}}function Se(){const{$t:e,formatNumber:t}=o.useIntl(),n=o=>C(e,t,o);return{formatValue:n,formatOpenBalance:e=>n(null==e?void 0:e.wallet_balance.open_balance)}}const Pe={class:"sv-top-up-form"},ke={class:"grid grid-cols-1 gap-4"},Ne={class:"grid grid-cols-1 gap-1"},Ve={class:"sv-top-up-form__option-details"},Ie={key:0},Ue=e.defineComponent({__name:"TopUpModalForm",props:{topUpPricingItems:{type:null},paymentMethods:{type:Array},paymentMethodOptions:{type:Array},autoTopUpConfig:{type:Object}},emits:["add-payment-method","success","save-auto-top-up","failure"],setup(t,{expose:n,emit:a}){const i=t,l=a,{$t:r}=o.useIntl(),{formatValue:d}=Se(),s=e.ref({pricing_plan_schedule_id:"",pricing_items:[],start_at:"",finalize_immediately:!1,payment_method_id:void 0,preview:!0}),c=e.computed(()=>{const e=(i.topUpPricingItems??[]).filter(e=>e.flexiblePricing||e.fixedPricing);return[...e.filter(({flexiblePricing:e})=>e),...e.filter(({flexiblePricing:e})=>!e)]}),_=e=>c.value.find(t=>t.pricingItemId===e),g=e.computed(()=>{var e,t;return null==(t=null==(e=i.topUpPricingItems)?void 0:e.find(e=>e.pricingPlanScheduleId))?void 0:t.pricingPlanScheduleId});e.watch(g,e=>{s.value.pricing_plan_schedule_id=e??""},{immediate:!0});const y=e.computed({get:()=>{var e;return null==(e=s.value.pricing_items[0])?void 0:e.pricing_item_id},set:e=>{const t=_("string"==typeof e?e:void 0);if(!t)return void(s.value.pricing_items=[]);const o=(e=>{const{config:t,currency:o}=e.flexiblePricing??{},n=null==t?void 0:t.minimum_amount;return n&&o?{quantity:n.quantity,currency:o}:void 0})(t);s.value.pricing_items=[{pricing_item_id:t.pricingItemId,...o&&{flexible_amount:o}}]}});e.watch(c,e=>{if(e.some(({pricingItemId:e})=>{var t;return e===(null==(t=s.value.pricing_items[0])?void 0:t.pricing_item_id)}))return;const t=e.find(({flexiblePricing:e})=>e)??e[0];y.value=null==t?void 0:t.pricingItemId},{immediate:!0});const w=e.computed({get:()=>{var e;return null==(e=s.value.pricing_items[0])?void 0:e.flexible_amount},set:e=>{var t;const o=null==(t=s.value.pricing_items[0])?void 0:t.pricing_item_id;o&&(s.value.pricing_items=[{pricing_item_id:o,...e&&{flexible_amount:e}}])}}),x=e=>{var t;const o=null==(t=_(String(e)))?void 0:t.fixedPricing;return(null==o?void 0:o.value.credits)?u.formatAmount(o.amount):void 0},B=e.computed(()=>{var e;return null==(e=_(String(y.value)))?void 0:e.flexiblePricing}),M=e.computed({get:()=>{var e;return(null==(e=w.value)?void 0:e.quantity)??""},set:e=>{var t;const o=null==(t=B.value)?void 0:t.currency;w.value=e&&o?{quantity:e,currency:o}:void 0}}),C=e=>e.creditsConfiguration?"CREDITS":"AMOUNT",T=e.computed(()=>Z(i.topUpPricingItems)),S=e=>{var t;const o=null==(t=_(String(e)))?void 0:t.flexiblePricing;return o?[o]:[]},P=e=>{var t;return!!(null==(t=_(String(e)))?void 0:t.flexiblePricing)},k=e.computed(()=>c.value.map(e=>{var t;return{value:e.pricingItemId,label:e.fixedPricing?d(e.fixedPricing.value):r({defaultMessage:"Choose your own amount",description:"Label of the choose-your-amount option in the top-up modal",id:"topup_modal.flexible_option.label"}),...(null==(t=e.flexiblePricing)?void 0:t.bounds.minimum)&&e.flexiblePricing.bounds.maximum&&{description:r({defaultMessage:"Between {minimum} and {maximum}",description:"Bounds of the choose-your-amount option in the top-up modal",id:"topup_modal.flexible_option.bounds"},{minimum:d(e.flexiblePricing.bounds.minimum),maximum:d(e.flexiblePricing.bounds.maximum)})}}})),N=e.computed(()=>{const e=s.value.pricing_items.filter(e=>{var t;return!(null==(t=_(e.pricing_item_id))?void 0:t.flexiblePricing)||!!e.flexible_amount});return e.length>0?e:void 0}),V=e.computed(()=>!i.autoTopUpConfig&&c.value.some(({flexiblePricing:e})=>e)?oe(i.topUpPricingItems):void 0),I=e.ref(),{chargeOnDemandPricingItems:U}=h.createInvoicesService(),E=o.useLogger(),A=e.ref(!1),D=e.computed(()=>!!s.value.pricing_plan_schedule_id&&!!N.value&&!!s.value.payment_method_id),O=e.reactive({paymentMethodId:e.computed(()=>s.value.payment_method_id??null)}),$=m.useValidation({paymentMethodId:{required:m.common.withMessage(()=>r({defaultMessage:"Select a payment method to pay for this top-up.",description:"Error shown under the payment methods in the top-up modal when none is selected on submit",id:"topup_modal.payment_method_required"}),m.required)}},O),q=e.computed(()=>{const[e]=s.value.pricing_items,t=_(null==e?void 0:e.pricing_item_id);return t?((e,t)=>{var o;if(e.fixedPricing)return e.fixedPricing.value;if(!e.flexiblePricing||!t)return;const{bounds:n,creditsConfiguration:a}=e.flexiblePricing,i=null==(o=n.minimum??n.maximum)?void 0:o.credits,l=a?J(t.quantity,a.conversionRate):void 0;return i&&void 0!==l?G(l,i):{amount:t}})(t,null==e?void 0:e.flexible_amount):void 0});n({submit:async function(){var e,t,o;$.value.$touch();const n=null==(e=I.value)?void 0:e.validate();if(!$.value.$invalid&&!(null==(t=I.value)?void 0:t.isInvalid)&&D.value&&!A.value){A.value=!0;try{const e=await U({pricing_plan_schedule_id:s.value.pricing_plan_schedule_id,pricing_items:N.value??[],payment_method_id:s.value.payment_method_id,preview:!1});n&&(null==(o=I.value)?void 0:o.hasChanges)&&s.value.payment_method_id&&l("save-auto-top-up",{rule:n,paymentMethodId:s.value.payment_method_id}),l("success",e)}catch(a){E.error("TOP_UP_FAILED","Failed to charge the wallet top-up",{},a),l("failure",a)}finally{A.value=!1}}},isCharging:A,canSubmit:D,chargedValue:q});const R=e.computed({get:()=>s.value.payment_method_id??void 0,set:e=>{s.value.payment_method_id=e}}),{sortedPaymentMethods:j}=Te({paymentMethods:e.computed(()=>i.paymentMethods),selectedPaymentMethodId:R});return(n,a)=>(e.openBlock(),e.createElementBlock("form",Pe,[e.createElementVNode("div",ke,[e.createElementVNode("div",Ne,[k.value.length>0?(e.openBlock(),e.createBlock(e.unref(p._sfc_main$1),{key:0,modelValue:y.value,"onUpdate:modelValue":a[3]||(a[3]=e=>y.value=e),class:"sv-top-up-form__options",name:"top-up-pricing-item",direction:"column",required:"",disabled:A.value,options:k.value,"show-radio":!1,label:e.unref(r)({defaultMessage:"Top up amount",description:"Label above the list of ways to top up the wallet in the top-up modal",id:"topup_modal.pricing_items.label"})},{label:e.withCtx(({option:t,optionValue:n})=>[e.createElementVNode("span",null,e.toDisplayString(t.label),1),x(n)?(e.openBlock(),e.createBlock(e.unref(o._sfc_main),{key:0,tag:"span",variant:"body-sm",color:"subtle",weight:"normal","no-spacing":"",class:"sv-top-up-form__option-cost"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x(n)),1)]),_:2},1024)):e.createCommentVNode("",!0)]),description:e.withCtx(({option:t,optionValue:n})=>[e.createElementVNode("div",Ve,[t.description&&!P(n)?(e.openBlock(),e.createBlock(e.unref(o._sfc_main),{key:0,tag:"span",variant:"body-xs",color:"subtle","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.description),1)]),_:2},1024)):e.createCommentVNode("",!0),S(n).length>0?(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:1,"is-open":String(n)===y.value,lazy:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S(n),n=>{var i,l;return e.openBlock(),e.createElementBlock("div",{key:n.currency,class:"sv-top-up-form__amount grid grid-cols-1 gap-3",onClick:a[1]||(a[1]=e.withModifiers(()=>{},["stop"])),onKeydown:a[2]||(a[2]=e.withModifiers(()=>{},["stop"]))},[t.description?(e.openBlock(),e.createBlock(e.unref(o._sfc_main),{key:0,tag:"span",variant:"body-xs",color:"subtle","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.description),1)]),_:2},1024)):e.createCommentVNode("",!0),e.createVNode(we,{modelValue:M.value,"onUpdate:modelValue":a[0]||(a[0]=e=>M.value=e),name:"top-up-amount","model-base":"AMOUNT",unit:(l=n,l.creditsConfiguration?T.value??l.creditsConfiguration.unitNamePlural??l.creditsConfiguration.unitNameSingle??"":l.currency),"entry-base":C(n),currency:n.currency,"conversion-rate":null==(i=n.creditsConfiguration)?void 0:i.conversionRate,required:"",disabled:A.value},null,8,["modelValue","unit","entry-base","currency","conversion-rate","disabled"])],32)}),128))]),_:2},1032,["is-open"])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","disabled","options","label"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",null,[e.createVNode(ae,{"pricing-plan-schedule-id":g.value,"pricing-items":N.value},null,8,["pricing-plan-schedule-id","pricing-items"])]),V.value?(e.openBlock(),e.createElementBlock("div",Ie,[e.createVNode(Me,e.mergeProps({ref_key:"autoTopUpFormRef",ref:I,class:"sv-top-up-form__auto-top-up"},V.value,{contained:"","show-threshold-conversion":!1,disabled:A.value}),null,16,["disabled"])])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[e.createVNode(e.unref(v._sfc_main),{spacing:"xs"})]),e.createElementVNode("div",null,[e.renderSlot(n.$slots,"payment-method",{},()=>[e.createVNode(b._sfc_main,{modelValue:R.value,"onUpdate:modelValue":a[4]||(a[4]=e=>R.value=e),class:"sv-top-up-form__payment-methods","payment-methods":e.unref(j),required:"",error:e.unref($).paymentMethodId.$errors,"payment-method-options":t.paymentMethodOptions,disabled:A.value,label:e.unref(r)({defaultMessage:"Payment method",description:"Label above the payment method that pays for the top-up, in the top-up modal",id:"topup_modal.payment_method_selector.label"}),onAddPaymentMethod:a[5]||(a[5]=e=>l("add-payment-method"))},null,8,["modelValue","payment-methods","error","payment-method-options","disabled","label"])])])])]))}}),Ee={class:"sv-top-up-success grid grid-cols-1 gap-4"},Ae=e.defineComponent({__name:"TopUpModalSuccess",props:{addedValue:{type:Object},invoice:{type:Object}},setup(t){const{$t:n}=o.useIntl();return(a,i)=>(e.openBlock(),e.createElementBlock("div",Ee,[t.invoice?(e.openBlock(),e.createBlock(e.unref(s._sfc_main),{key:0,"content-background":"none"},{default:e.withCtx(()=>[e.createVNode(e.unref(o._sfc_main),{tag:"span",variant:"body-sm",weight:"semibold",class:"mb-2 block"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Receipt",description:"Heading above the invoice a completed top-up produced",id:"topup_modal.success.receipt.heading"})),1)]),_:1}),e.createVNode(e.unref(p._sfc_main$2),{invoice:t.invoice,"is-customer-facing":""},null,8,["invoice"])]),_:1})):e.createCommentVNode("",!0)]))}});function De({isOpen:t,customer:o}){const{paymentMethodOptions:n,get:a,isPending:i}=B.usePaymentMethodOptions();e.watch(()=>[t.value,o.value],([e,t])=>{e&&t&&a({customerId:t.id,country:x.getCustomerCountry(t)})},{immediate:!0});const l=e.computed(()=>i.value?void 0:n.value);return{paymentMethodOptions:n,settledOptions:l,isPending:i}}const Oe=["inert"],$e=e.defineComponent({__name:"SlidingPanes",props:{panes:{type:Array},current:{type:String}},setup(t){const o=t,n=e.ref(!1);let a;e.watch(()=>o.current,()=>{n.value=!0,clearTimeout(a),a=setTimeout(()=>{n.value=!1},300)}),e.onBeforeUnmount(()=>{clearTimeout(a)});const i=e.ref({}),l={},u=e=>l[e]??(l[e]=t=>{i.value[e]=t instanceof HTMLElement?t:void 0}),r=function(t){const o=e.ref(0),n=e=>{o.value=(null==e?void 0:e.offsetHeight)??0},a="undefined"==typeof ResizeObserver?void 0:new ResizeObserver(e=>{var t;const o=null==(t=e[0])?void 0:t.target;n(o instanceof HTMLElement?o:void 0)});return e.watch(t,(e,t)=>{t&&(null==a||a.unobserve(t)),n(e),e&&(null==a||a.observe(e))},{immediate:!0,flush:"post"}),e.onBeforeUnmount(()=>{null==a||a.disconnect()}),o}(e.computed(()=>i.value[o.current])),d=e.computed(()=>{const e=o.panes.indexOf(o.current);return e>0?`translateX(calc(${-e} * (100% + 1rem)))`:"translateX(0px)"});return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sv-sliding-panes__viewport relative -mx-2 overflow-hidden px-2",n.value?"transition-[height] duration-300 ease-in-out motion-reduce:transition-none":""]),style:e.normalizeStyle(e.unref(r)?{height:`${e.unref(r)}px`}:void 0)},[e.createElementVNode("div",{class:"sv-sliding-panes__track flex items-start gap-4 transition-transform duration-300 ease-in-out motion-reduce:transition-none",style:e.normalizeStyle({transform:d.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.panes,n=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"sv-sliding-panes__pane w-full shrink-0",inert:n!==t.current||void 0},[e.createElementVNode("div",{ref_for:!0,ref:u(n)},[e.renderSlot(o.$slots,n)],512)],8,Oe))),128))],4)],6))}}),qe={class:"grid grid-cols-1 gap-4 pb-4"},Re=e.defineComponent({__name:"WalletModalShell",props:{showModal:{type:Boolean},title:{type:String},subTitle:{type:String},cancelButtonText:{type:String},confirmButtonText:{type:String},isPending:{type:Boolean},panes:{type:Array},step:{type:String},addPaymentMethodPane:{type:String},customer:{type:Object},paymentMethodOptions:{type:Array},isPaymentMethodOptionsPending:{type:Boolean},isAddingPaymentMethod:{type:Boolean}},emits:["confirm","cancel","payment-success","payment-failed"],setup(t,{expose:o}){const n=t,a=e.ref(),i=e.computed(()=>n.panes.filter(e=>e!==n.addPaymentMethodPane));return o({submit:()=>{var e;return null==(e=a.value)?void 0:e.submit()},isSaving:e.computed(()=>{var e;return!!(null==(e=a.value)?void 0:e.isSaving)})}),(o,n)=>(e.openBlock(),e.createBlock(e.unref(M.Modal),{"no-click-away":"","show-modal":t.showModal,size:"lg",title:t.title,"sub-title":t.subTitle,"cancel-button-text":t.cancelButtonText,"confirm-button-text":t.confirmButtonText,"is-loading":t.isPending,onConfirm:n[2]||(n[2]=e=>o.$emit("confirm")),onClose:n[3]||(n[3]=e=>o.$emit("cancel"))},e.createSlots({body:e.withCtx(()=>[e.createElementVNode("div",qe,[e.createVNode($e,{panes:t.panes,current:t.step},e.createSlots({[t.addPaymentMethodPane]:e.withCtx(()=>[e.createVNode(b._sfc_main$1,{ref_key:"paneRef",ref:a,customer:t.customer,"payment-method-options":t.paymentMethodOptions,"is-loading":t.isPaymentMethodOptionsPending,"is-active":t.isAddingPaymentMethod,onSuccess:n[0]||(n[0]=e=>o.$emit("payment-success")),onFailure:n[1]||(n[1]=e=>o.$emit("payment-failed",e))},null,8,["customer","payment-method-options","is-loading","is-active"])]),_:2},[e.renderList(i.value,t=>({name:t,fn:e.withCtx(()=>[e.renderSlot(o.$slots,t)])}))]),1032,["panes","current"])])]),_:2},[o.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"footer")]),key:"0"}:void 0]),1032,["show-modal","title","sub-title","cancel-button-text","confirm-button-text","is-loading"]))}}),je=e=>{var t;return((null==(t=null==e?void 0:e.wallet)?void 0:t.auto_top_up_configs)??[]).find(({status:e})=>"ACTIVE"===e)},Le=e=>e?{status:e.status,threshold:e.threshold,...e.topup_amount&&{topup_amount:e.topup_amount}}:void 0,Fe=(e,t=[])=>{if((null==e?void 0:e.pricing_item_id)&&e.pricing_plan_schedule_id)return{pricingItemId:e.pricing_item_id,pricingPlanScheduleId:e.pricing_plan_schedule_id};const o=t.find(({flexiblePricing:e,pricingPlanScheduleId:t})=>e&&t);return(null==o?void 0:o.pricingPlanScheduleId)?{pricingItemId:o.pricingItemId,pricingPlanScheduleId:o.pricingPlanScheduleId}:void 0},Ye=({rule:e,walletBalanceItem:t,chargeTarget:o,paymentMethodId:n})=>{var a,i;const l=!!((null==(a=null==e?void 0:e.threshold)?void 0:a.amount)??(null==(i=null==e?void 0:e.threshold)?void 0:i.credits));if(e&&l&&(null==t?void 0:t.wallet_id)&&o&&n)return{wallet_id:t.wallet_id,status:e.status,threshold:e.threshold,pricing_plan_schedule_id:o.pricingPlanScheduleId,pricing_item_id:o.pricingItemId,payment_method_id:n,...e.topup_amount&&{topup_amount:e.topup_amount}}};function ze({step:t,name:o,returnTo:n}){const a=e.ref();return{paneRef:a,isActive:e.computed(()=>t.value===o),isSaving:e.computed(()=>{var e;return!!(null==(e=a.value)?void 0:e.isSaving)}),open:()=>{t.value=o},leave:()=>{t.value=n},submit:()=>{var e;return null==(e=a.value)?void 0:e.submit()}}}function He(){const e=o.createRequestService(),t=o.useConfig(),n="/portal/auto-top-up-configs";return{getAutoTopUpConfigs:function(o){return e({url:`${t.apiUrls.config}${n}`,query:{...o},isCollection:!0})},getAutoTopUpConfig:function(o){return e({url:`${t.apiUrls.config}${n}/${o}`})},createAutoTopUpConfig:function(o){return e({url:`${t.apiUrls.config}${n}`,options:{method:"POST"},data:o})},deactivateAutoTopUpConfig:function(o){return e({url:`${t.apiUrls.config}${n}/${o}/deactivate`,options:{method:"POST"}})}}}function We(){const{createAutoTopUpConfig:t}=He(),n=o.useLogger(),a=e.ref(!1);return{save:async e=>{if(!e||a.value)return{saved:!1};a.value=!0;try{return await t(e),{saved:!0}}catch(o){return n.error("AUTO_TOP_UP_SAVE_FAILED","Failed to save the automatic top-up rule",{},o),{saved:!1,error:o}}finally{a.value=!1}},isSaving:a}}const Xe={key:0,class:"mb-4"},Ge={class:"sr-only"},Je={class:"flex flex-col gap-2"},Ke=e.defineComponent({__name:"TopUpModal",props:{showModal:{type:Boolean},selectedBalanceItem:{type:Object},paymentMethods:{type:Array},customer:{type:Object},subscriptions:{type:Array}},emits:["confirm","close","auto-top-up-saved","payment-success","payment-failed"],setup(t,{emit:n}){const a=t,i=n,{$t:l}=o.useIntl(),{formatOpenBalance:u}=Se(),d=e.computed(()=>Le(je(a.selectedBalanceItem))),s=e.computed(()=>u(a.selectedBalanceItem)),c=e.computed(()=>F(a.selectedBalanceItem,a.subscriptions??[])),m=e.ref();e.watch(c,e=>{var t;e.some(({id:e})=>e===m.value)||(m.value=null==(t=e[0])?void 0:t.id)},{immediate:!0});const v=e.computed(()=>c.value.length>1),f=e.computed(()=>c.value.map(({id:e,name:t})=>({value:e,label:t}))),_=e.computed(()=>Object.fromEntries(c.value.flatMap(({id:e,enabledPricingIds:t})=>{const o=(a.subscriptions??[]).find(({id:t})=>t===e);return o?[[e,{subscription:o,enabledPricingIds:t}]]:[]}))),h=e.computed(()=>{var e;if(!a.selectedBalanceItem||!(null==(e=a.subscriptions)?void 0:e.length))return a.selectedBalanceItem;const t=c.value.find(({id:e})=>e===m.value);return t?((e,t)=>{if(!e||0===t.length)return e;const o=new Set(t);return{...e,charge_on_demand_pricing_items:(e.charge_on_demand_pricing_items??[]).filter(e=>L(e)&&!!e.pricing_plan_schedule_id&&o.has(e.pricing_plan_schedule_id))}})(a.selectedBalanceItem,t.scheduleIds):{...a.selectedBalanceItem,charge_on_demand_pricing_items:[]}}),g=e.computed(()=>Y(h.value)),{paymentMethodOptions:y,settledOptions:b,isPending:x}=De({isOpen:e.computed(()=>a.showModal),customer:e.computed(()=>a.customer)}),B=e.ref("TOP_UP"),M=e.computed(()=>(a.paymentMethods??[]).length>0),T=e.computed(()=>!x.value&&0===(y.value??[]).length),S=e.computed(()=>"TOP_UP"===B.value&&!M.value&&T.value),P=e.ref(),k=e.ref(),N=()=>{A(),i("payment-success")},{paneRef:V,isActive:I,isSaving:U,open:E,leave:A,submit:D}=ze({step:B,name:"ADD_PAYMENT_METHOD",returnTo:"TOP_UP"}),{save:O}=We(),$=e.ref(),q=e.computed(()=>{var e;return null==(e=$.value)?void 0:e.chargedValue}),R=e.computed(()=>{var e;return U.value||!!(null==(e=$.value)?void 0:e.isCharging)}),{title:z,subTitle:H,cancelButtonText:W,confirmButtonText:X}=function({step:t,currentBalance:n,topUpValue:a}){const{$t:i,formatNumber:l}=o.useIntl();return{title:e.computed(()=>"ADD_PAYMENT_METHOD"===t.value?i({defaultMessage:"Add payment method",description:"Title of the top-up modal while the customer is adding a payment method",id:"topup_modal.add_payment_method.title"}):"SUCCESS"===t.value?i({defaultMessage:"Top-up complete",description:"Title of the top-up modal once the top-up has been charged",id:"topup_modal.success.modal_title"}):i({defaultMessage:"Top up balance",description:"Title of the wallet top-up modal",id:"topup_modal.title"})),subTitle:e.computed(()=>"ADD_PAYMENT_METHOD"===t.value?i({defaultMessage:"Add a new payment method for topping up your balance.",description:"Subtitle of the top-up modal while the customer is adding a payment method",id:"topup_modal.add_payment_method.subtitle"}):"SUCCESS"===t.value?i({defaultMessage:"Your payment went through.",description:"Subtitle of the top-up modal once the top-up has been charged",id:"topup_modal.success.modal_subtitle"}):i({defaultMessage:"Your current balance is {balance}.",description:"Subtitle of the top-up modal showing the current wallet balance",id:"topup_modal.subtitle"},{balance:n.value})),cancelButtonText:e.computed(()=>"ADD_PAYMENT_METHOD"===t.value?i({defaultMessage:"Back",description:"Label of the button that leaves the add payment method step in the top-up modal",id:"topup_modal.back_button.label"}):i({defaultMessage:"Cancel",description:"Label of the button that closes the top-up modal",id:"topup_modal.cancel_button.label"})),confirmButtonText:e.computed(()=>"ADD_PAYMENT_METHOD"===t.value?i({defaultMessage:"Save payment method",description:"Label of the confirm button in the top-up modal while adding a payment method",id:"topup_modal.save_payment_method.label"}):"SUCCESS"===t.value?i({defaultMessage:"Done",description:"Label of the button that dismisses the top-up modal once the top-up has been charged",id:"topup_modal.done_button.label"}):a.value?i({defaultMessage:"Top up balance with {value}",description:"Label of the confirm button in the top-up modal once an amount is entered",id:"topup_modal.confirm_button.label"},{value:C(i,l,a.value)}):i({defaultMessage:"Top up balance",description:"Label of the confirm button in the top-up modal while no amount is entered",id:"topup_modal.confirm_button.empty.label"}))}}({step:B,currentBalance:s,topUpValue:q}),G=()=>{var e;I.value?D():null==(e=$.value)||e.submit()},J=async({rule:e,paymentMethodId:t})=>{const{saved:o}=await O(Ye({rule:e,walletBalanceItem:a.selectedBalanceItem,chargeTarget:Fe(void 0,g.value),paymentMethodId:t}));o&&i("auto-top-up-saved")},K=e=>{var t;P.value=e,k.value=null==(t=$.value)?void 0:t.chargedValue,B.value="SUCCESS"},Q=()=>{i("confirm"),i("close")},Z=()=>{R.value||(I.value?A():"SUCCESS"!==B.value?i("close"):Q())},ee=e.ref(0);return e.watch(()=>a.showModal,e=>{e&&(B.value="TOP_UP",P.value=void 0,k.value=void 0,ee.value+=1)}),(o,n)=>(e.openBlock(),e.createBlock(Re,{ref_key:"addPaymentMethodRef",ref:V,"show-modal":t.showModal,title:e.unref(z),"sub-title":e.unref(H),"cancel-button-text":e.unref(W),"confirm-button-text":e.unref(X),"is-pending":R.value,panes:e.unref(j),step:B.value,"add-payment-method-pane":"ADD_PAYMENT_METHOD",customer:t.customer,"payment-method-options":e.unref(y),"is-payment-method-options-pending":e.unref(x),"is-adding-payment-method":e.unref(I),onConfirm:G,onCancel:Z,onPaymentSuccess:N,onPaymentFailed:n[1]||(n[1]=e=>o.$emit("payment-failed",e))},e.createSlots({TOP_UP:e.withCtx(()=>[v.value?(e.openBlock(),e.createElementBlock("div",Xe,[e.createVNode(e.unref(p._sfc_main$1),{modelValue:m.value,"onUpdate:modelValue":n[0]||(n[0]=e=>m.value=e),class:"sv-topup-modal__subscription",name:"top-up-subscription",direction:"column",required:"",options:f.value,"show-radio":!1,label:e.unref(l)({defaultMessage:"Subscription to top up",description:"Label above the list of subscriptions a top-up can be charged against, in the top-up modal",id:"topup_modal.subscriptions.label"})},{prefix:e.withCtx(({optionValue:t})=>[_.value[String(t)]?(e.openBlock(),e.createBlock(w._sfc_main,{key:0,class:"sv-topup-modal__subscription-option grow","no-spacing":"",subscription:_.value[String(t)].subscription,"enabled-pricing-ids":_.value[String(t)].enabledPricingIds},null,8,["subscription","enabled-pricing-ids"])):e.createCommentVNode("",!0)]),label:e.withCtx(({option:t})=>[e.createElementVNode("span",Ge,e.toDisplayString(t.label),1)]),_:1},8,["modelValue","options","label"])])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(Ue,{key:ee.value,ref_key:"topUpFormRef",ref:$,"top-up-pricing-items":g.value,"payment-methods":t.paymentMethods,"auto-top-up-config":d.value,"payment-method-options":e.unref(b),onAddPaymentMethod:e.unref(E),onSuccess:K,onSaveAutoTopUp:J},null,8,["top-up-pricing-items","payment-methods","auto-top-up-config","payment-method-options","onAddPaymentMethod"]))]),SUCCESS:e.withCtx(()=>[P.value?(e.openBlock(),e.createBlock(Ae,{key:0,"added-value":k.value,invoice:P.value},null,8,["added-value","invoice"])):e.createCommentVNode("",!0)]),_:2},["SUCCESS"===B.value||S.value?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",Je,["SUCCESS"===B.value?(e.openBlock(),e.createBlock(e.unref(r._sfc_main$1),{key:0,size:"lg","data-testid":"done",onClick:Q},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(X)),1)]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(r._sfc_main$1),{size:"lg",disabled:"","data-testid":"confirm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(X)),1)]),_:1}),e.createVNode(e.unref(r._sfc_main$1),{size:"lg",intent:"subtle","data-testid":"cancel",onClick:Z},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(W)),1)]),_:1})],64))])]),key:"0"}:void 0]),1032,["show-modal","title","sub-title","cancel-button-text","confirm-button-text","is-pending","panes","step","customer","payment-method-options","is-payment-method-options-pending","is-adding-payment-method"]))}}),Qe=["AUTO_TOP_UP","ADD_PAYMENT_METHOD"],Ze={class:"grid grid-cols-1 gap-4"},et=e.defineComponent({__name:"AutoTopUpModal",props:{showModal:{type:Boolean},walletBalanceItem:{type:Object},topUpItem:{type:Object},paymentMethods:{type:Array},customer:{type:Object}},emits:["saved","close","payment-success","payment-failed"],setup(t,{emit:n}){const a=t,i=n,{$t:l}=o.useIntl(),{formatOpenBalance:u}=Se(),r=e.ref("AUTO_TOP_UP"),d=e.computed(()=>u(a.walletBalanceItem)),s=e.computed(()=>Y(a.walletBalanceItem)),c=e.computed(()=>oe(s.value)),p=e.computed(()=>je(a.walletBalanceItem)),v=e.computed(()=>Le(p.value)),f=e.computed(()=>Fe(a.topUpItem,s.value)),_=e.ref(),h=e.computed(()=>{var e,t;const o=null==(t=null==(e=_.value)?void 0:e.rule)?void 0:t.topup_amount;return(null==o?void 0:o.quantity)&&f.value?[{pricing_item_id:f.value.pricingItemId,flexible_amount:o}]:void 0}),g=e.computed(()=>{var e;return null==(e=f.value)?void 0:e.pricingPlanScheduleId}),y=e.ref(),{sortedPaymentMethods:w}=Te({paymentMethods:e.computed(()=>a.paymentMethods),selectedPaymentMethodId:y,preferredPaymentMethodId:e.computed(()=>{var e;return null==(e=p.value)?void 0:e.payment_method_id})}),{paymentMethodOptions:x,settledOptions:B,isPending:M}=De({isOpen:e.computed(()=>a.showModal),customer:e.computed(()=>a.customer)}),{paneRef:C,isActive:T,isSaving:S,open:P,leave:k,submit:N}=ze({step:r,name:"ADD_PAYMENT_METHOD",returnTo:"AUTO_TOP_UP"}),{save:V,isSaving:I}=We(),U=e.computed(()=>S.value||I.value),E=e.reactive({paymentMethodId:e.computed(()=>y.value??null)}),A=m.useValidation({paymentMethodId:{required:m.common.withMessage(()=>l({defaultMessage:"Select a payment method to pay for automatic top-ups.",description:"Error shown in the auto top-up modal when no payment method is selected",id:"auto_topup_modal.payment_method.required"}),m.required)}},E),D=e.computed(()=>"ADD_PAYMENT_METHOD"===r.value?l({defaultMessage:"Add payment method",description:"Title of the auto top-up modal while the customer is adding a payment method",id:"auto_topup_modal.add_payment_method.title"}):l({defaultMessage:"Automatic top-up",description:"Title of the automatic wallet top-up modal",id:"auto_topup_modal.title"})),O=e.computed(()=>"ADD_PAYMENT_METHOD"===r.value?l({defaultMessage:"This method pays for every automatic top-up.",description:"Subtitle of the auto top-up modal while the customer is adding a payment method",id:"auto_topup_modal.add_payment_method.subtitle"}):l({defaultMessage:"Your current balance is {balance}. Enable auto top so you can stay productive",description:"Subtitle of the automatic wallet top-up modal, naming the balance",id:"auto_topup_modal.subtitle"},{balance:d.value})),$=e.computed(()=>"ADD_PAYMENT_METHOD"===r.value?l({defaultMessage:"Back",description:"Button returning from adding a payment method to the auto top-up rule",id:"auto_topup_modal.add_payment_method.cancel"}):l({defaultMessage:"Cancel",description:"Button dismissing the auto top-up modal",id:"auto_topup_modal.cancel"})),q=e.computed(()=>"ADD_PAYMENT_METHOD"===r.value?l({defaultMessage:"Add payment method",description:"Button storing the payment method being added in the auto top-up modal",id:"auto_topup_modal.add_payment_method.confirm"}):l({defaultMessage:"Save",description:"Button saving the automatic top-up rule",id:"auto_topup_modal.confirm"}));const R=()=>{T.value?N():async function(){var e;if(A.value.$touch(),U.value)return;const{saved:t,error:o}=await V(Ye({rule:null==(e=_.value)?void 0:e.validate(),walletBalanceItem:a.walletBalanceItem,chargeTarget:f.value,paymentMethodId:y.value}));if(t)return i("saved"),void i("close");o&&i("payment-failed",o)}()},j=()=>{k(),i("payment-success")},L=()=>{U.value||(T.value?k():i("close"))},F=e.ref(0);return e.watch(()=>a.showModal,e=>{e&&(r.value="AUTO_TOP_UP",y.value=void 0,F.value+=1)}),(o,n)=>(e.openBlock(),e.createBlock(Re,{ref_key:"addPaymentMethodRef",ref:C,"show-modal":t.showModal,title:D.value,"sub-title":O.value,"cancel-button-text":$.value,"confirm-button-text":q.value,"is-pending":U.value,panes:e.unref(Qe),step:r.value,"add-payment-method-pane":"ADD_PAYMENT_METHOD",customer:t.customer,"payment-method-options":e.unref(x),"is-payment-method-options-pending":e.unref(M),"is-adding-payment-method":e.unref(T),onConfirm:R,onCancel:L,onPaymentSuccess:j,onPaymentFailed:n[1]||(n[1]=e=>o.$emit("payment-failed",e))},{AUTO_TOP_UP:e.withCtx(()=>[e.createElementVNode("div",Ze,[c.value?(e.openBlock(),e.createBlock(Me,e.mergeProps({key:F.value,ref_key:"autoTopUpFormRef",ref:_,class:"sv-auto-topup-modal__rule"},c.value,{config:v.value,"always-enabled":"",disabled:U.value}),null,16,["config","disabled"])):e.createCommentVNode("",!0),e.createVNode(ae,{"pricing-plan-schedule-id":g.value,"pricing-items":h.value},null,8,["pricing-plan-schedule-id","pricing-items"]),e.createVNode(b._sfc_main,{modelValue:y.value,"onUpdate:modelValue":n[0]||(n[0]=e=>y.value=e),class:"sv-auto-topup-modal__payment-method","payment-methods":e.unref(w),"payment-method-options":e.unref(B),disabled:U.value,error:e.unref(A).paymentMethodId.$errors,label:e.unref(l)({defaultMessage:"Pay automatic top-ups with",description:"Label above the payment method an automatic top-up is charged to",id:"auto_topup_modal.payment_method.label"}),onAddPaymentMethod:e.unref(P)},null,8,["modelValue","payment-methods","payment-method-options","disabled","error","label","onAddPaymentMethod"])])]),_:1},8,["show-modal","title","sub-title","cancel-button-text","confirm-button-text","is-pending","panes","step","customer","payment-method-options","is-payment-method-options-pending","is-adding-payment-method"]))}}),tt={class:"sv-auto-topup-cancellation-modal sv-auto-topup-cancellation-modal__body flex flex-col gap-3"},ot=e.defineComponent({__name:"AutoTopUpCancellationModal",props:{showModal:{type:Boolean},config:{type:Object}},emits:["confirmed","close"],setup(t,{emit:n}){const a=t,l=n,{$t:u}=o.useIntl(),r=o.useLogger(),{formatValue:d}=Se(),{deactivateAutoTopUpConfig:s}=He(),c=e.ref(!1),p=e.ref(!1);e.watch(()=>a.showModal,e=>{e&&(p.value=!1)});const m=e.computed(()=>{var e,t;const o=null==(e=a.config)?void 0:e.threshold,n=null==(t=a.config)?void 0:t.topup_amount;return(null==o?void 0:o.amount)||(null==o?void 0:o.credits)?n?u({defaultMessage:"Your balance will no longer be topped up with {amount} when it falls below {threshold}. You can still top up whenever you want to.",description:"Explanation in the modal that turns a wallet automatic top-up off, naming what it charged and when",id:"auto_topup_cancellation_modal.explanation_with_amount"},{amount:d({amount:n}),threshold:d(o)}):u({defaultMessage:"Your balance will no longer be topped up automatically when it falls below {threshold}. You can still top up whenever you want to.",description:"Explanation in the modal that turns a wallet automatic top-up off, naming the threshold",id:"auto_topup_cancellation_modal.explanation_with_threshold"},{threshold:d(o)}):u({defaultMessage:"Your balance will no longer be topped up automatically. You can still top up whenever you want to.",description:"Explanation in the modal that turns a wallet automatic top-up off",id:"auto_topup_cancellation_modal.explanation"})}),v=async()=>{var e;const t=null==(e=a.config)?void 0:e.id;if(t&&!c.value){c.value=!0,p.value=!1;try{await s(t),l("confirmed"),l("close")}catch(o){r.error("AUTO_TOP_UP_CANCELLATION_FAILED","Failed to turn off a wallet's automatic top-up",{},o),p.value=!0}finally{c.value=!1}}},f=()=>{c.value||l("close")};return(n,a)=>(e.openBlock(),e.createBlock(e.unref(M.Modal),{size:"sm","show-modal":t.showModal,"is-loading":c.value,"no-click-away":c.value,"no-backdrop-close":c.value,title:e.unref(u)({defaultMessage:"Turn off automatic top-up",description:"Title of the modal that turns a wallet automatic top-up off",id:"auto_topup_cancellation_modal.title"}),"confirm-button-text":e.unref(u)({defaultMessage:"Yes, turn it off",description:"Button confirming that a wallet automatic top-up is turned off",id:"auto_topup_cancellation_modal.confirm"}),"cancel-button-text":e.unref(u)({defaultMessage:"Cancel",description:"Button dismissing the modal that turns a wallet automatic top-up off",id:"auto_topup_cancellation_modal.cancel"}),onConfirm:v,onClose:f},{body:e.withCtx(()=>[e.createElementVNode("div",tt,[e.createVNode(e.unref(o._sfc_main),{variant:"body-sm",color:"subtle",tag:"p",class:"sv-auto-topup-cancellation-modal__explanation"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value),1)]),_:1}),p.value?(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:0,class:"sv-auto-topup-cancellation-modal__error sv-error",title:e.unref(u)({defaultMessage:"Could not turn off the automatic top-up. Please try again later.",description:"Error shown when turning a wallet automatic top-up off failed",id:"auto_topup_cancellation_modal.failed"})},null,8,["title"])):e.createCommentVNode("",!0)])]),_:1},8,["show-modal","is-loading","no-click-away","no-backdrop-close","title","confirm-button-text","cancel-button-text"]))}}),nt=e.defineComponent({inheritAttrs:!1,__name:"CustomerWalletBalances",props:{hasError:{type:Boolean},isLoading:{type:Boolean},walletBalances:{type:Array},showTopUpButton:{type:Boolean},customer:{type:Object},paymentMethods:{type:Array},subscriptions:{type:Array}},emits:["top-up-charged","auto-top-up-saved","auto-top-up-cancelled","payment-method-stored","payment-failed"],setup(t,{emit:n}){const a=t,l=n,{$t:u}=o.useIntl(),r=e.ref(),d=e.computed(()=>R(a.walletBalances,r.value)),s=e.computed(()=>!!d.value),p=e.ref(),m=e.computed(()=>!!p.value),v=e.computed(()=>R(a.walletBalances,p.value)),f=e.ref(),_=e.computed(()=>!!f.value);return(o,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.isLoading?(e.openBlock(),e.createBlock(c._sfc_main,e.mergeProps({key:0,variant:"section"},o.$attrs,{class:"sv-wallet-balances sv-root sv-component sv-loading min-h-48","data-testid":"customer-wallet-balances-skeleton"}),null,16)):t.hasError?(e.openBlock(),e.createBlock(e.unref(i._sfc_main),e.mergeProps({key:1},o.$attrs,{class:"sv-wallet-balances sv-root sv-component sv-error",title:e.unref(u)({defaultMessage:"Could not load wallet balances",description:"Error shown when wallet balances fail to load",id:"wallet_balance.load_failed"})}),null,16,["title"])):t.walletBalances.length>0?(e.openBlock(),e.createBlock(e.unref(q),e.mergeProps({key:2},o.$attrs,{class:"sv-wallet-balances sv-root sv-component","customer-wallet-balances":t.walletBalances,"show-auto-top-up":"","show-manual-top-up":"",title:e.unref(u)({defaultMessage:"{count, plural, one {Wallet} other {Wallets}}",description:"Title for the wallets block on the customer overview page",id:"customer_overview.wallet_balances_block.title"},{count:String(t.walletBalances.length)}),onTopUp:n[0]||(n[0]=e=>r.value=e),onAutoTopUp:n[1]||(n[1]=e=>p.value=e),onCancelAutoTopUp:n[2]||(n[2]=e=>f.value=e)}),null,16,["customer-wallet-balances","title"])):e.createCommentVNode("",!0),t.showTopUpButton?(e.openBlock(),e.createBlock(Ke,{key:3,"show-modal":s.value,"selected-balance-item":d.value,"payment-methods":t.paymentMethods,customer:t.customer,subscriptions:t.subscriptions,onClose:n[3]||(n[3]=e=>r.value=void 0),onConfirm:n[4]||(n[4]=e=>l("top-up-charged")),onPaymentSuccess:n[5]||(n[5]=e=>l("payment-method-stored")),onPaymentFailed:n[6]||(n[6]=e=>l("payment-failed",e))},null,8,["show-modal","selected-balance-item","payment-methods","customer","subscriptions"])):e.createCommentVNode("",!0),t.showTopUpButton?(e.openBlock(),e.createBlock(et,{key:4,"show-modal":m.value,"wallet-balance-item":v.value,"top-up-item":p.value,"payment-methods":t.paymentMethods,customer:t.customer,onClose:n[7]||(n[7]=e=>p.value=void 0),onSaved:n[8]||(n[8]=e=>l("auto-top-up-saved")),onPaymentSuccess:n[9]||(n[9]=e=>l("payment-method-stored")),onPaymentFailed:n[10]||(n[10]=e=>l("payment-failed",e))},null,8,["show-modal","wallet-balance-item","top-up-item","payment-methods","customer"])):e.createCommentVNode("",!0),t.showTopUpButton?(e.openBlock(),e.createBlock(ot,{key:5,"show-modal":_.value,config:f.value,onClose:n[11]||(n[11]=e=>f.value=void 0),onConfirmed:n[12]||(n[12]=e=>l("auto-top-up-cancelled"))},null,8,["show-modal","config"])):e.createCommentVNode("",!0)],64))}});exports._sfc_main=nt,exports.useCustomerWalletBalances=function({customerId:i}){const{getCustomerWalletBalances:l}=function(){const e=o.createRequestService(),a=o.useConfig();return{getCustomerWalletBalances:function(o){return e({url:`${a.apiUrls.config}/portal/customers/${o}/wallets/balance`,query:t.withExpand({expandParams:n.EXPAND_ALL}),options:{method:"POST"},data:{}})}}}(),{data:u,execute:r,apiStatus:d,error:s,isPending:c}=a.useService({service:()=>l(i)});return{walletBalances:e.computed(()=>u.value??null),apiStatus:d,error:s,fetch:r,isPending:c}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const s=require("vue"),e=s.defineComponent({__name:"Divider",props:{spacing:{default:"md"}},setup:e=>(n,a)=>(s.openBlock(),s.createElementBlock("hr",{class:s.normalizeClass({"my-1":"xxs"===e.spacing,"my-2":"xs"===e.spacing,"my-4":"sm"===e.spacing,"my-6":"md"===e.spacing,"my-8":"lg"===e.spacing,"my-10":"xl"===e.spacing})},null,2))});exports._sfc_main=e;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, normalizeClass } from "vue";
|
|
2
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
-
__name: "Divider",
|
|
4
|
-
props: {
|
|
5
|
-
spacing: { default: "md" }
|
|
6
|
-
},
|
|
7
|
-
setup(__props) {
|
|
8
|
-
return (_ctx, _cache) => {
|
|
9
|
-
return openBlock(), createElementBlock("hr", {
|
|
10
|
-
class: normalizeClass({
|
|
11
|
-
"my-1": __props.spacing === "xxs",
|
|
12
|
-
"my-2": __props.spacing === "xs",
|
|
13
|
-
"my-4": __props.spacing === "sm",
|
|
14
|
-
"my-6": __props.spacing === "md",
|
|
15
|
-
"my-8": __props.spacing === "lg",
|
|
16
|
-
"my-10": __props.spacing === "xl"
|
|
17
|
-
})
|
|
18
|
-
}, null, 2);
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
export {
|
|
23
|
-
_sfc_main as _
|
|
24
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { computed, defineComponent, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { _ as _sfc_main$1 } from "./customElements-B-89a5oH.mjs";
|
|
3
|
-
const dividerBaseClasses = "relative translate-y-1/2 top-1/2 border-t border-gray-100";
|
|
4
|
-
const useDividerTextClasses = (props) => {
|
|
5
|
-
const leftDividerClasses = computed(() => {
|
|
6
|
-
let classes = `${dividerBaseClasses}`;
|
|
7
|
-
if (props.hasOuterDivider && props.textPosition === "left") {
|
|
8
|
-
classes += " w-2";
|
|
9
|
-
} else {
|
|
10
|
-
classes += " grow";
|
|
11
|
-
}
|
|
12
|
-
return classes;
|
|
13
|
-
});
|
|
14
|
-
const rightDividerClasses = computed(() => {
|
|
15
|
-
let classes = `${dividerBaseClasses}`;
|
|
16
|
-
if (props.hasOuterDivider && props.textPosition === "right") {
|
|
17
|
-
classes += " w-2";
|
|
18
|
-
} else {
|
|
19
|
-
classes += " grow";
|
|
20
|
-
}
|
|
21
|
-
return classes;
|
|
22
|
-
});
|
|
23
|
-
return { leftDividerClasses, rightDividerClasses };
|
|
24
|
-
};
|
|
25
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
|
-
__name: "DividerText",
|
|
27
|
-
props: {
|
|
28
|
-
spacing: { default: "none" },
|
|
29
|
-
textPosition: { default: "left" },
|
|
30
|
-
hasOuterDivider: { type: Boolean, default: false },
|
|
31
|
-
text: {}
|
|
32
|
-
},
|
|
33
|
-
setup(__props) {
|
|
34
|
-
const props = __props;
|
|
35
|
-
const { leftDividerClasses, rightDividerClasses } = useDividerTextClasses(props);
|
|
36
|
-
return (_ctx, _cache) => {
|
|
37
|
-
return openBlock(), createElementBlock("div", {
|
|
38
|
-
class: normalizeClass(["flex gap-2", {
|
|
39
|
-
"my-2": __props.spacing === "xs",
|
|
40
|
-
"my-4": __props.spacing === "sm",
|
|
41
|
-
"my-6": __props.spacing === "md",
|
|
42
|
-
"my-8": __props.spacing === "lg",
|
|
43
|
-
"my-10": __props.spacing === "xl"
|
|
44
|
-
}])
|
|
45
|
-
}, [
|
|
46
|
-
__props.textPosition === "left" && __props.hasOuterDivider || ["center", "right"].includes(__props.textPosition) ? (openBlock(), createElementBlock("span", {
|
|
47
|
-
key: 0,
|
|
48
|
-
class: normalizeClass(unref(leftDividerClasses))
|
|
49
|
-
}, null, 2)) : createCommentVNode("", true),
|
|
50
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
51
|
-
createVNode(unref(_sfc_main$1), {
|
|
52
|
-
tag: "span",
|
|
53
|
-
"no-spacing": "",
|
|
54
|
-
variant: "caps-heading"
|
|
55
|
-
}, {
|
|
56
|
-
default: withCtx(() => [
|
|
57
|
-
createTextVNode(toDisplayString(__props.text), 1)
|
|
58
|
-
]),
|
|
59
|
-
_: 1
|
|
60
|
-
})
|
|
61
|
-
]),
|
|
62
|
-
__props.textPosition === "right" && __props.hasOuterDivider || ["center", "left"].includes(__props.textPosition) ? (openBlock(), createElementBlock("span", {
|
|
63
|
-
key: 1,
|
|
64
|
-
class: normalizeClass(unref(rightDividerClasses))
|
|
65
|
-
}, null, 2)) : createCommentVNode("", true)
|
|
66
|
-
], 2);
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
export {
|
|
71
|
-
_sfc_main as _
|
|
72
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("vue"),t=require("./customElements-DD7bpqkx.js"),s="relative translate-y-1/2 top-1/2 border-t border-gray-100",i=e.defineComponent({__name:"DividerText",props:{spacing:{default:"none"},textPosition:{default:"left"},hasOuterDivider:{type:Boolean,default:!1},text:{}},setup(i){const r=i,{leftDividerClasses:n,rightDividerClasses:a}=(t=>({leftDividerClasses:e.computed(()=>{let e=`${s}`;return t.hasOuterDivider&&"left"===t.textPosition?e+=" w-2":e+=" grow",e}),rightDividerClasses:e.computed(()=>{let e=`${s}`;return t.hasOuterDivider&&"right"===t.textPosition?e+=" w-2":e+=" grow",e})}))(r);return(s,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex gap-2",{"my-2":"xs"===i.spacing,"my-4":"sm"===i.spacing,"my-6":"md"===i.spacing,"my-8":"lg"===i.spacing,"my-10":"xl"===i.spacing}])},["left"===i.textPosition&&i.hasOuterDivider||["center","right"].includes(i.textPosition)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(n))},null,2)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default",{},()=>[e.createVNode(e.unref(t._sfc_main),{tag:"span","no-spacing":"",variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.text),1)]),_:1})]),"right"===i.textPosition&&i.hasOuterDivider||["center","left"].includes(i.textPosition)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(a))},null,2)):e.createCommentVNode("",!0)],2))}});exports._sfc_main=i;
|