@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
|
@@ -0,0 +1,2585 @@
|
|
|
1
|
+
import { ref as re, openBlock as t, createElementBlock as o, renderSlot as M, defineComponent as S, normalizeClass as N, Fragment as p, renderList as V, createVNode as a, withCtx as i, createElementVNode as _, createTextVNode as d, toDisplayString as r, createBlock as h, unref as l, createCommentVNode as y, createSlots as Ie, withKeys as j, normalizeProps as ve, guardReactiveProps as fe, computed as B, mergeProps as Q, isRef as Ae } from "vue";
|
|
2
|
+
import { u as H, _ as Pe, k as pe } from "./customElements-CSE7dwUr.mjs";
|
|
3
|
+
import { _ as $ } from "./Amount.vue.es-DPqHB8Xd.mjs";
|
|
4
|
+
import { i as Ue } from "./useService-Bh47bllz.mjs";
|
|
5
|
+
import { a as G, _ as Le } from "./Button.vue.es-Dz-2L8dJ.mjs";
|
|
6
|
+
import { _ as Se } from "./floating-ui.vue.es-CYt0fSY7.mjs";
|
|
7
|
+
import { a as $e } from "./customer.es-B5ppZf0j.mjs";
|
|
8
|
+
import { M as Me, f as we, a as De } from "./formatting.es-RclXHhKo.mjs";
|
|
9
|
+
import { _ as Ee, u as ge } from "./Comparators.vue.es-CwhX3rbx.mjs";
|
|
10
|
+
import { _ as Re } from "./Chip.vue.es-DMK9C78d.mjs";
|
|
11
|
+
import { g as be } from "./getComposedString.es-C__uhJpd.mjs";
|
|
12
|
+
import { _ as de, T as ue, a as ce } from "./TooltipParagraph.vue.es-CIedcXGT.mjs";
|
|
13
|
+
import { f as Fe } from "./index.es-CXkP_k3u.mjs";
|
|
14
|
+
import { g as Ve, a as We, f as ze } from "./wallets.es-eH2C2ygn.mjs";
|
|
15
|
+
import { _ as He } from "./DividerText.vue.es-IK2fns6f.mjs";
|
|
16
|
+
import { _ as Ge } from "./IconTitle.vue.es-BmX68uJx.mjs";
|
|
17
|
+
import { a as Xe } from "./ContextMenu.vue.es-CzkkNoJG.mjs";
|
|
18
|
+
const xe = (e = []) => {
|
|
19
|
+
const n = re(e);
|
|
20
|
+
return [n, (c) => {
|
|
21
|
+
typeof n.value.find((s) => s === c) == "number" ? n.value = n.value.filter((s) => s !== c) : n.value = [...n.value, c];
|
|
22
|
+
}];
|
|
23
|
+
}, qe = {}, je = { class: "w-full table-fixed" };
|
|
24
|
+
function Ye(e, n) {
|
|
25
|
+
return t(), o("table", je, [
|
|
26
|
+
M(e.$slots, "default")
|
|
27
|
+
]);
|
|
28
|
+
}
|
|
29
|
+
const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
|
|
30
|
+
__name: "InvoiceTableData",
|
|
31
|
+
props: {
|
|
32
|
+
number: { type: Boolean, default: !1 },
|
|
33
|
+
hasPadding: { type: Boolean, default: !0 }
|
|
34
|
+
},
|
|
35
|
+
setup(e) {
|
|
36
|
+
return (n, u) => (t(), o("td", {
|
|
37
|
+
class: N({
|
|
38
|
+
"text-right tabular-nums": e.number,
|
|
39
|
+
"py-2": e.hasPadding
|
|
40
|
+
})
|
|
41
|
+
}, [
|
|
42
|
+
M(n.$slots, "default")
|
|
43
|
+
], 2));
|
|
44
|
+
}
|
|
45
|
+
}), w = /* @__PURE__ */ S({
|
|
46
|
+
__name: "InvoiceTableHeader",
|
|
47
|
+
props: {
|
|
48
|
+
left: { type: Boolean, default: !1 },
|
|
49
|
+
right: { type: Boolean, default: !1 }
|
|
50
|
+
},
|
|
51
|
+
setup(e) {
|
|
52
|
+
return (n, u) => (t(), o("th", {
|
|
53
|
+
class: N(["border-b py-1.5 text-xs font-bold uppercase text-subtle", { "text-left": e.left, "text-right": e.right }])
|
|
54
|
+
}, [
|
|
55
|
+
M(n.$slots, "default")
|
|
56
|
+
], 2));
|
|
57
|
+
}
|
|
58
|
+
}), Ke = "INVOICE_PERIOD", Qe = "INVOICE_PERIOD_SUBTOTAL", ie = "INVOICE_PERIOD_TOTAL", se = "SUMMARY_LINE_AMOUNT", Je = "SUMMARY_TOTAL_TAX", Ze = "SUMMARY_TOTAL_INCLUDING_TAX", et = "SUMMARY_TOTAL_EXCLUDING_TAX", tt = "SUMMARY_TOTAL_DISCOUNT", nt = "SUMMARY_AMOUNT_DUE", it = "DEDUCTION", at = "HAS_SUBLINES", ot = { class: "flex items-center" }, lt = {
|
|
59
|
+
key: 0,
|
|
60
|
+
class: "text-xs text-secondary"
|
|
61
|
+
}, rt = { class: "flex items-center" }, ye = /* @__PURE__ */ S({
|
|
62
|
+
__name: "InvoiceSubLineRow",
|
|
63
|
+
props: {
|
|
64
|
+
subLines: {},
|
|
65
|
+
isOpen: { type: Boolean },
|
|
66
|
+
lineOrder: {},
|
|
67
|
+
periodOrder: {},
|
|
68
|
+
groupOrder: {},
|
|
69
|
+
processingOnlyCustomers: {},
|
|
70
|
+
displayInvoiceSubLinesPerProcessingOnlyCustomer: { type: Boolean },
|
|
71
|
+
showTaxPerLineItem: { type: Boolean, default: !0 }
|
|
72
|
+
},
|
|
73
|
+
setup(e) {
|
|
74
|
+
const { formatMessage: n, formatNumber: u } = H(), c = e, m = (v) => {
|
|
75
|
+
var b;
|
|
76
|
+
const f = (b = c.processingOnlyCustomers) == null ? void 0 : b.find(
|
|
77
|
+
(x) => x.id === v
|
|
78
|
+
);
|
|
79
|
+
return f ? $e(f) : n({
|
|
80
|
+
id: "generic.not_available",
|
|
81
|
+
defaultMessage: "N/A",
|
|
82
|
+
description: "Used in scenarios where no data is available to be displayed"
|
|
83
|
+
});
|
|
84
|
+
}, s = (v) => {
|
|
85
|
+
var b;
|
|
86
|
+
return ((b = v.usage_based_conversion) == null ? void 0 : b.conditions) ?? v.conditions;
|
|
87
|
+
}, g = (v) => {
|
|
88
|
+
var b, f;
|
|
89
|
+
const x = (f = (b = v.details.conversion) == null ? void 0 : b.credits) == null ? void 0 : f.quantity;
|
|
90
|
+
return x === void 0 ? n({
|
|
91
|
+
id: "generic.not_available",
|
|
92
|
+
defaultMessage: "N/A",
|
|
93
|
+
description: "Used in scenarios where no data is available to be displayed"
|
|
94
|
+
}) : u(+x, { maximumFractionDigits: Me });
|
|
95
|
+
};
|
|
96
|
+
return (v, b) => e.subLines && e.isOpen ? (t(!0), o(p, { key: 0 }, V(e.subLines, (f, x) => (t(), o(p, { key: x }, [
|
|
97
|
+
f.processing_only_customer_resource_id ? e.displayInvoiceSubLinesPerProcessingOnlyCustomer && e.processingOnlyCustomers ? (t(), o("tr", {
|
|
98
|
+
key: 1,
|
|
99
|
+
class: N(["group", { "border-t": x > 0 }])
|
|
100
|
+
}, [
|
|
101
|
+
a(k, { class: "pl-4" }, {
|
|
102
|
+
default: i(() => [
|
|
103
|
+
_("div", rt, [
|
|
104
|
+
_("div", null, r(m(f.processing_only_customer_resource_id)), 1)
|
|
105
|
+
])
|
|
106
|
+
]),
|
|
107
|
+
_: 2
|
|
108
|
+
}, 1024),
|
|
109
|
+
M(v.$slots, "subline-content", {
|
|
110
|
+
details: f.details,
|
|
111
|
+
hideTaxDetails: !0
|
|
112
|
+
})
|
|
113
|
+
], 2)) : y("", !0) : (t(), o("tr", {
|
|
114
|
+
key: 0,
|
|
115
|
+
class: N(x > 0 ? "border-t" : "")
|
|
116
|
+
}, [
|
|
117
|
+
a(k, null, {
|
|
118
|
+
default: i(() => {
|
|
119
|
+
var O, I, P, U, L, E;
|
|
120
|
+
return [
|
|
121
|
+
_("div", ot, [
|
|
122
|
+
M(v.$slots, "invoice-line-prefix", {
|
|
123
|
+
lineOrder: e.lineOrder,
|
|
124
|
+
periodOrder: e.periodOrder,
|
|
125
|
+
groupOrder: e.groupOrder
|
|
126
|
+
}),
|
|
127
|
+
_("div", null, [
|
|
128
|
+
_("div", null, [
|
|
129
|
+
f.description ? (t(), o(p, { key: 0 }, [
|
|
130
|
+
d(r(f.description), 1)
|
|
131
|
+
], 64)) : f.details.description ? (t(), o(p, { key: 1 }, [
|
|
132
|
+
d(r(f.details.description), 1)
|
|
133
|
+
], 64)) : (t(), o(p, { key: 2 }, [
|
|
134
|
+
d(" N/A ")
|
|
135
|
+
], 64))
|
|
136
|
+
]),
|
|
137
|
+
(O = s(f)) != null && O.name || (I = s(f)) != null && I.meter_properties ? (t(), o("div", lt, [
|
|
138
|
+
(P = s(f)) != null && P.name ? (t(), o(p, { key: 0 }, [
|
|
139
|
+
d(r((U = s(f)) == null ? void 0 : U.name), 1)
|
|
140
|
+
], 64)) : (L = s(f)) != null && L.meter_properties ? (t(), h(l(Ee), {
|
|
141
|
+
key: 1,
|
|
142
|
+
comparators: (E = s(f)) == null ? void 0 : E.meter_properties
|
|
143
|
+
}, null, 8, ["comparators"])) : y("", !0)
|
|
144
|
+
])) : y("", !0)
|
|
145
|
+
])
|
|
146
|
+
])
|
|
147
|
+
];
|
|
148
|
+
}),
|
|
149
|
+
_: 2
|
|
150
|
+
}, 1024),
|
|
151
|
+
a(k, {
|
|
152
|
+
number: "",
|
|
153
|
+
class: "text-right tabular-nums"
|
|
154
|
+
}, {
|
|
155
|
+
default: i(() => [
|
|
156
|
+
d(r(g(f)), 1)
|
|
157
|
+
]),
|
|
158
|
+
_: 2
|
|
159
|
+
}, 1024),
|
|
160
|
+
a(k, { class: "text-right tabular-nums" }, {
|
|
161
|
+
default: i(() => {
|
|
162
|
+
var O, I;
|
|
163
|
+
return [
|
|
164
|
+
(O = f.details.band) != null && O.amount ? (t(), h($, {
|
|
165
|
+
key: 0,
|
|
166
|
+
value: f.details.band.amount
|
|
167
|
+
}, null, 8, ["value"])) : (I = f.details.band) != null && I.percentage ? (t(), o(p, { key: 1 }, [
|
|
168
|
+
d(r(f.details.band.percentage) + "% ", 1)
|
|
169
|
+
], 64)) : (t(), o(p, { key: 2 }, [
|
|
170
|
+
d(" N/A ")
|
|
171
|
+
], 64))
|
|
172
|
+
];
|
|
173
|
+
}),
|
|
174
|
+
_: 2
|
|
175
|
+
}, 1024),
|
|
176
|
+
e.showTaxPerLineItem ? (t(), h(k, { key: 0 }, {
|
|
177
|
+
default: i(() => [...b[0] || (b[0] = [
|
|
178
|
+
d(" ", -1)
|
|
179
|
+
])]),
|
|
180
|
+
_: 1
|
|
181
|
+
})) : y("", !0),
|
|
182
|
+
f.details.amount ? (t(), h(k, {
|
|
183
|
+
key: 1,
|
|
184
|
+
class: "text-right tabular-nums"
|
|
185
|
+
}, {
|
|
186
|
+
default: i(() => [
|
|
187
|
+
a($, {
|
|
188
|
+
value: f.details.amount,
|
|
189
|
+
"data-testid": l(Qe)
|
|
190
|
+
}, null, 8, ["value", "data-testid"])
|
|
191
|
+
]),
|
|
192
|
+
_: 2
|
|
193
|
+
}, 1024)) : y("", !0)
|
|
194
|
+
], 2))
|
|
195
|
+
], 64))), 128)) : y("", !0);
|
|
196
|
+
}
|
|
197
|
+
}), st = { class: "flex gap-4" }, dt = { class: "flex items-center gap-2" }, le = /* @__PURE__ */ S({
|
|
198
|
+
__name: "PricingClauseChip",
|
|
199
|
+
props: {
|
|
200
|
+
iconName: {}
|
|
201
|
+
},
|
|
202
|
+
setup(e) {
|
|
203
|
+
return (n, u) => (t(), o("div", st, [
|
|
204
|
+
a(Re, null, {
|
|
205
|
+
default: i(() => [
|
|
206
|
+
_("div", dt, [
|
|
207
|
+
a(G, {
|
|
208
|
+
icon: e.iconName,
|
|
209
|
+
size: "xs"
|
|
210
|
+
}, null, 8, ["icon"]),
|
|
211
|
+
_("span", null, [
|
|
212
|
+
M(n.$slots, "chip-content")
|
|
213
|
+
])
|
|
214
|
+
])
|
|
215
|
+
]),
|
|
216
|
+
_: 3
|
|
217
|
+
}),
|
|
218
|
+
M(n.$slots, "chip-postfix")
|
|
219
|
+
]));
|
|
220
|
+
}
|
|
221
|
+
}), ut = { class: "flex flex-col gap-2" }, Ce = /* @__PURE__ */ S({
|
|
222
|
+
__name: "InvoicePricingClauseChip",
|
|
223
|
+
props: {
|
|
224
|
+
clauseType: {},
|
|
225
|
+
priceDetailsBand: {},
|
|
226
|
+
invoiceLineDescription: {}
|
|
227
|
+
},
|
|
228
|
+
setup(e) {
|
|
229
|
+
const n = H();
|
|
230
|
+
return (u, c) => (t(), o("div", ut, [
|
|
231
|
+
_("span", null, r(e.invoiceLineDescription), 1),
|
|
232
|
+
e.clauseType === "DISCOUNT" && e.priceDetailsBand ? (t(), h(l(le), {
|
|
233
|
+
key: 0,
|
|
234
|
+
"icon-name": "south_east"
|
|
235
|
+
}, Ie({ _: 2 }, [
|
|
236
|
+
e.priceDetailsBand.amount ? {
|
|
237
|
+
name: "chip-content",
|
|
238
|
+
fn: i(() => [
|
|
239
|
+
d(r(l(n).$t(
|
|
240
|
+
{
|
|
241
|
+
id: "invoice.amount_discount",
|
|
242
|
+
defaultMessage: "{amount} discount",
|
|
243
|
+
description: "Represents a certain amount of discount, where {amount} is replaced with the amount"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
amount: l(we)(e.priceDetailsBand.amount)
|
|
247
|
+
}
|
|
248
|
+
).toUpperCase()), 1)
|
|
249
|
+
]),
|
|
250
|
+
key: "0"
|
|
251
|
+
} : e.priceDetailsBand.percentage ? {
|
|
252
|
+
name: "chip-content",
|
|
253
|
+
fn: i(() => [
|
|
254
|
+
d(r(l(n).$t(
|
|
255
|
+
{
|
|
256
|
+
id: "invoice.percentage_discount",
|
|
257
|
+
defaultMessage: "{percentage}% discount",
|
|
258
|
+
description: "Represents a certain percentage of discount, where {percentage} is replaced with the percentage (number only)"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
percentage: e.priceDetailsBand.percentage ?? "0"
|
|
262
|
+
}
|
|
263
|
+
).toUpperCase()), 1)
|
|
264
|
+
]),
|
|
265
|
+
key: "1"
|
|
266
|
+
} : void 0
|
|
267
|
+
]), 1024)) : e.clauseType === "ADJUSTMENT" ? (t(), h(l(le), {
|
|
268
|
+
key: 1,
|
|
269
|
+
"icon-name": "info"
|
|
270
|
+
}, {
|
|
271
|
+
"chip-content": i(() => [
|
|
272
|
+
d(r(l(n).$t({
|
|
273
|
+
id: "invoice.adjustment_chip_body",
|
|
274
|
+
defaultMessage: "Adjustment",
|
|
275
|
+
description: "Used on invoice lines to mark as adjusted"
|
|
276
|
+
}).toUpperCase()), 1)
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
})) : e.clauseType === "MARKUP" ? (t(), h(l(le), {
|
|
280
|
+
key: 2,
|
|
281
|
+
"icon-name": "north_east"
|
|
282
|
+
}, {
|
|
283
|
+
"chip-content": i(() => {
|
|
284
|
+
var m;
|
|
285
|
+
return [
|
|
286
|
+
d(r(l(n).$t(
|
|
287
|
+
{
|
|
288
|
+
id: "invoice.markup_percentage",
|
|
289
|
+
defaultMessage: "{percentage}% markup",
|
|
290
|
+
description: "Markup percentage, where {percentage} is replaced with the percentage (number only)"
|
|
291
|
+
},
|
|
292
|
+
{ percentage: ((m = e.priceDetailsBand) == null ? void 0 : m.percentage) ?? "0" }
|
|
293
|
+
).toUpperCase()), 1)
|
|
294
|
+
];
|
|
295
|
+
}),
|
|
296
|
+
_: 1
|
|
297
|
+
})) : e.clauseType === "COMMITMENT" ? (t(), h(l(le), {
|
|
298
|
+
key: 3,
|
|
299
|
+
"icon-name": "sell"
|
|
300
|
+
}, {
|
|
301
|
+
"chip-content": i(() => [
|
|
302
|
+
d(r(l(n).$t({
|
|
303
|
+
id: "invoice.commitment",
|
|
304
|
+
defaultMessage: "commitment",
|
|
305
|
+
description: "Used on invoice lines to mark as commitment"
|
|
306
|
+
}).toUpperCase()), 1)
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
})) : y("", !0)
|
|
310
|
+
]));
|
|
311
|
+
}
|
|
312
|
+
}), ct = ["tabindex", "onClick"], mt = { class: "flex items-center" }, vt = /* @__PURE__ */ S({
|
|
313
|
+
__name: "InvoiceCommitment",
|
|
314
|
+
props: {
|
|
315
|
+
commitments: {},
|
|
316
|
+
groupOrder: {},
|
|
317
|
+
invoicePeriodOrder: {},
|
|
318
|
+
processingOnlyCustomers: {},
|
|
319
|
+
displayInvoiceSubLinesPerProcessingOnlyCustomer: { type: Boolean }
|
|
320
|
+
},
|
|
321
|
+
setup(e) {
|
|
322
|
+
const n = H(), { getIsOpen: u, toggle: c } = ge(), m = (v, b) => {
|
|
323
|
+
c(s(v, b));
|
|
324
|
+
}, s = (v, b) => `${v}-line-${b}`, g = (v) => {
|
|
325
|
+
var b;
|
|
326
|
+
return v.description ?? ((b = v.details) == null ? void 0 : b.description) ?? n.$t({
|
|
327
|
+
id: "generic.not_available",
|
|
328
|
+
defaultMessage: "N/A",
|
|
329
|
+
description: "Used in scenarios where no data is available to be displayed"
|
|
330
|
+
});
|
|
331
|
+
};
|
|
332
|
+
return (v, b) => (t(), h(J, null, {
|
|
333
|
+
default: i(() => [
|
|
334
|
+
_("tr", null, [
|
|
335
|
+
a(w, {
|
|
336
|
+
left: "",
|
|
337
|
+
colspan: "5"
|
|
338
|
+
}, {
|
|
339
|
+
default: i(() => [
|
|
340
|
+
d(r(l(n).$t({
|
|
341
|
+
id: "invoice.table_header.unit",
|
|
342
|
+
defaultMessage: "Unit",
|
|
343
|
+
description: "Table header for the column containing the number of units of invoice groups"
|
|
344
|
+
})), 1)
|
|
345
|
+
]),
|
|
346
|
+
_: 1
|
|
347
|
+
}),
|
|
348
|
+
a(w, {
|
|
349
|
+
right: "",
|
|
350
|
+
class: "w-60"
|
|
351
|
+
}, {
|
|
352
|
+
default: i(() => [
|
|
353
|
+
d(r(l(n).$t({
|
|
354
|
+
id: "invoice.table_header.sub_total",
|
|
355
|
+
defaultMessage: "Subtotal",
|
|
356
|
+
description: "Table header for the column containing the subtotal for invoices"
|
|
357
|
+
})), 1)
|
|
358
|
+
]),
|
|
359
|
+
_: 1
|
|
360
|
+
})
|
|
361
|
+
]),
|
|
362
|
+
(t(!0), o(p, null, V(e.commitments, (f, x) => (t(), o(p, { key: x }, [
|
|
363
|
+
_("tr", {
|
|
364
|
+
class: N(["border-t", { "cursor-pointer": f.sub_lines }]),
|
|
365
|
+
tabindex: f.sub_lines ? 0 : void 0,
|
|
366
|
+
onClick: (O) => m(e.groupOrder, f.line_order)
|
|
367
|
+
}, [
|
|
368
|
+
a(k, { colspan: "2" }, {
|
|
369
|
+
default: i(() => {
|
|
370
|
+
var O;
|
|
371
|
+
return [
|
|
372
|
+
f.sub_lines ? (t(), h(G, {
|
|
373
|
+
key: 0,
|
|
374
|
+
icon: "keyboard_arrow_down",
|
|
375
|
+
size: "md",
|
|
376
|
+
class: N(["absolute -translate-x-7 text-slate-400", {
|
|
377
|
+
"-rotate-90": !l(u)(s(e.groupOrder, f.line_order))
|
|
378
|
+
}])
|
|
379
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
380
|
+
_("div", mt, [
|
|
381
|
+
M(v.$slots, "invoice-line-prefix", {
|
|
382
|
+
lineOrder: f.line_order,
|
|
383
|
+
periodOrder: e.invoicePeriodOrder,
|
|
384
|
+
groupOrder: e.groupOrder
|
|
385
|
+
}),
|
|
386
|
+
a(Ce, {
|
|
387
|
+
"clause-type": "COMMITMENT",
|
|
388
|
+
"invoice-line-description": g(f),
|
|
389
|
+
"price-details-band": (O = f.details) == null ? void 0 : O.band
|
|
390
|
+
}, null, 8, ["invoice-line-description", "price-details-band"])
|
|
391
|
+
])
|
|
392
|
+
];
|
|
393
|
+
}),
|
|
394
|
+
_: 2
|
|
395
|
+
}, 1024),
|
|
396
|
+
a(k, { colspan: "3" }, {
|
|
397
|
+
default: i(() => [...b[0] || (b[0] = [
|
|
398
|
+
d(" ", -1)
|
|
399
|
+
])]),
|
|
400
|
+
_: 1
|
|
401
|
+
}),
|
|
402
|
+
a(k, { number: "" }, {
|
|
403
|
+
default: i(() => {
|
|
404
|
+
var O, I;
|
|
405
|
+
return [
|
|
406
|
+
(O = f.details) != null && O.amount ? (t(), h($, {
|
|
407
|
+
key: 0,
|
|
408
|
+
value: (I = f.details) == null ? void 0 : I.amount,
|
|
409
|
+
"data-testid": l(se)
|
|
410
|
+
}, null, 8, ["value", "data-testid"])) : y("", !0)
|
|
411
|
+
];
|
|
412
|
+
}),
|
|
413
|
+
_: 2
|
|
414
|
+
}, 1024)
|
|
415
|
+
], 10, ct),
|
|
416
|
+
a(ye, {
|
|
417
|
+
ref_for: !0,
|
|
418
|
+
ref: s(e.groupOrder, f.line_order),
|
|
419
|
+
"sub-lines": f.sub_lines ?? [],
|
|
420
|
+
"line-order": f.line_order,
|
|
421
|
+
"period-order": e.invoicePeriodOrder,
|
|
422
|
+
"group-order": e.groupOrder,
|
|
423
|
+
"is-open": l(u)(s(e.groupOrder, f.line_order)),
|
|
424
|
+
"processing-only-customers": e.processingOnlyCustomers,
|
|
425
|
+
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer
|
|
426
|
+
}, null, 8, ["sub-lines", "line-order", "period-order", "group-order", "is-open", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
|
|
427
|
+
], 64))), 128))
|
|
428
|
+
]),
|
|
429
|
+
_: 3
|
|
430
|
+
}));
|
|
431
|
+
}
|
|
432
|
+
}), ft = ["tabindex", "onClick"], gt = { class: "flex items-center" }, bt = /* @__PURE__ */ S({
|
|
433
|
+
__name: "InvoiceDiscountMarkup",
|
|
434
|
+
props: {
|
|
435
|
+
lines: {},
|
|
436
|
+
type: {},
|
|
437
|
+
handleToggleItems: { type: Function },
|
|
438
|
+
formatIndex: { type: Function },
|
|
439
|
+
expandedItems: {},
|
|
440
|
+
isExpandable: { type: Boolean },
|
|
441
|
+
invoicePeriodOrder: {},
|
|
442
|
+
groupOrder: {},
|
|
443
|
+
processingOnlyCustomers: {},
|
|
444
|
+
displayInvoiceSubLinesPerProcessingOnlyCustomer: { type: Boolean }
|
|
445
|
+
},
|
|
446
|
+
setup(e) {
|
|
447
|
+
const n = H(), { getIsOpen: u, toggle: c } = ge(), m = (g, v) => {
|
|
448
|
+
c(s(g, v));
|
|
449
|
+
}, s = (g, v) => `${g}-line-${v}`;
|
|
450
|
+
return (g, v) => (t(), h(J, null, {
|
|
451
|
+
default: i(() => [
|
|
452
|
+
_("tr", null, [
|
|
453
|
+
a(w, {
|
|
454
|
+
left: "",
|
|
455
|
+
class: "w-3/5"
|
|
456
|
+
}, {
|
|
457
|
+
default: i(() => [
|
|
458
|
+
d(r(l(n).$t({
|
|
459
|
+
id: "invoice.table_header.quantity",
|
|
460
|
+
defaultMessage: "Quantity",
|
|
461
|
+
description: "Table header for quantity column"
|
|
462
|
+
})), 1)
|
|
463
|
+
]),
|
|
464
|
+
_: 1
|
|
465
|
+
}),
|
|
466
|
+
a(w, { colspan: "2" }, {
|
|
467
|
+
default: i(() => [...v[0] || (v[0] = [
|
|
468
|
+
d(" ", -1)
|
|
469
|
+
])]),
|
|
470
|
+
_: 1
|
|
471
|
+
}),
|
|
472
|
+
a(w, {
|
|
473
|
+
left: "",
|
|
474
|
+
class: "w-1/5"
|
|
475
|
+
}, {
|
|
476
|
+
default: i(() => [
|
|
477
|
+
d(r(e.type === "DISCOUNT" ? l(n).$t({
|
|
478
|
+
id: "invoice.table_header.discount",
|
|
479
|
+
defaultMessage: "Discount",
|
|
480
|
+
description: "Table header for discount column"
|
|
481
|
+
}) : l(n).$t({
|
|
482
|
+
id: "invoice.table_header.markup",
|
|
483
|
+
defaultMessage: "Markup",
|
|
484
|
+
description: "Table header for markup column"
|
|
485
|
+
})), 1)
|
|
486
|
+
]),
|
|
487
|
+
_: 1
|
|
488
|
+
}),
|
|
489
|
+
a(w, {
|
|
490
|
+
left: "",
|
|
491
|
+
class: "w-1/5"
|
|
492
|
+
}, {
|
|
493
|
+
default: i(() => [
|
|
494
|
+
d(r(e.type === "DISCOUNT" ? l(n).$t({
|
|
495
|
+
id: "invoice.table_header.total",
|
|
496
|
+
defaultMessage: "Total",
|
|
497
|
+
description: "Table header for total column"
|
|
498
|
+
}) : " "), 1)
|
|
499
|
+
]),
|
|
500
|
+
_: 1
|
|
501
|
+
}),
|
|
502
|
+
a(w, {
|
|
503
|
+
right: "",
|
|
504
|
+
class: "w-1/5"
|
|
505
|
+
}, {
|
|
506
|
+
default: i(() => [
|
|
507
|
+
d(r(l(n).$t({
|
|
508
|
+
id: "invoice.table_header.sub_total",
|
|
509
|
+
defaultMessage: "Subtotal",
|
|
510
|
+
description: "Table header for the column containing the subtotal for invoices"
|
|
511
|
+
})), 1)
|
|
512
|
+
]),
|
|
513
|
+
_: 1
|
|
514
|
+
})
|
|
515
|
+
]),
|
|
516
|
+
(t(!0), o(p, null, V(e.lines, (b, f) => (t(), o(p, { key: f }, [
|
|
517
|
+
_("tr", {
|
|
518
|
+
class: N(["border-t", { "cursor-pointer": e.isExpandable }]),
|
|
519
|
+
tabindex: e.isExpandable ? 0 : void 0,
|
|
520
|
+
onClick: (x) => m(e.groupOrder, b.line_order)
|
|
521
|
+
}, [
|
|
522
|
+
a(k, { class: "w-3/5" }, {
|
|
523
|
+
default: i(() => {
|
|
524
|
+
var x, O;
|
|
525
|
+
return [
|
|
526
|
+
b.sub_lines ? (t(), h(G, {
|
|
527
|
+
key: 0,
|
|
528
|
+
icon: "keyboard_arrow_down",
|
|
529
|
+
size: "md",
|
|
530
|
+
class: N(["absolute -translate-x-7 text-slate-400", {
|
|
531
|
+
"-rotate-90": !l(u)(s(e.groupOrder, b.line_order))
|
|
532
|
+
}])
|
|
533
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
534
|
+
_("div", gt, [
|
|
535
|
+
M(g.$slots, "invoice-line-prefix", {
|
|
536
|
+
lineOrder: b.line_order,
|
|
537
|
+
periodOrder: e.invoicePeriodOrder,
|
|
538
|
+
groupOrder: e.groupOrder
|
|
539
|
+
}),
|
|
540
|
+
b.description ? (t(), o(p, { key: 0 }, [
|
|
541
|
+
d(r(b.description), 1)
|
|
542
|
+
], 64)) : (x = b.details) != null && x.description ? (t(), o(p, { key: 1 }, [
|
|
543
|
+
d(r((O = b.details) == null ? void 0 : O.description), 1)
|
|
544
|
+
], 64)) : (t(), o(p, { key: 2 }, [
|
|
545
|
+
d("N/A")
|
|
546
|
+
], 64))
|
|
547
|
+
])
|
|
548
|
+
];
|
|
549
|
+
}),
|
|
550
|
+
_: 2
|
|
551
|
+
}, 1024),
|
|
552
|
+
a(k, { colspan: "2" }, {
|
|
553
|
+
default: i(() => [...v[1] || (v[1] = [
|
|
554
|
+
d(" ", -1)
|
|
555
|
+
])]),
|
|
556
|
+
_: 1
|
|
557
|
+
}),
|
|
558
|
+
a(k, { class: "w-1/5 tabular-nums" }, {
|
|
559
|
+
default: i(() => {
|
|
560
|
+
var x, O, I;
|
|
561
|
+
return [
|
|
562
|
+
d(r((O = (x = b.details) == null ? void 0 : x.band) != null && O.percentage ? `${(I = b.details) == null ? void 0 : I.band.percentage}%` : " "), 1)
|
|
563
|
+
];
|
|
564
|
+
}),
|
|
565
|
+
_: 2
|
|
566
|
+
}, 1024),
|
|
567
|
+
a(k, { class: "w-1/5" }, {
|
|
568
|
+
default: i(() => [...v[2] || (v[2] = [
|
|
569
|
+
d(" ", -1)
|
|
570
|
+
])]),
|
|
571
|
+
_: 1
|
|
572
|
+
}),
|
|
573
|
+
a(k, {
|
|
574
|
+
number: "",
|
|
575
|
+
class: "w-1/5"
|
|
576
|
+
}, {
|
|
577
|
+
default: i(() => {
|
|
578
|
+
var x;
|
|
579
|
+
return [
|
|
580
|
+
(x = b.details) != null && x.amount ? (t(), h($, {
|
|
581
|
+
key: 0,
|
|
582
|
+
value: b.details.amount,
|
|
583
|
+
"data-testid": l(se)
|
|
584
|
+
}, null, 8, ["value", "data-testid"])) : y("", !0)
|
|
585
|
+
];
|
|
586
|
+
}),
|
|
587
|
+
_: 2
|
|
588
|
+
}, 1024)
|
|
589
|
+
], 10, ft),
|
|
590
|
+
a(ye, {
|
|
591
|
+
ref_for: !0,
|
|
592
|
+
ref: s(e.groupOrder, b.line_order),
|
|
593
|
+
"sub-lines": b.sub_lines ?? [],
|
|
594
|
+
"line-order": b.line_order,
|
|
595
|
+
"is-open": l(u)(s(e.groupOrder, b.line_order)),
|
|
596
|
+
"period-order": e.invoicePeriodOrder,
|
|
597
|
+
"group-order": e.groupOrder,
|
|
598
|
+
"processing-only-customers": e.processingOnlyCustomers,
|
|
599
|
+
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer
|
|
600
|
+
}, null, 8, ["sub-lines", "line-order", "is-open", "period-order", "group-order", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
|
|
601
|
+
], 64))), 128))
|
|
602
|
+
]),
|
|
603
|
+
_: 3
|
|
604
|
+
}));
|
|
605
|
+
}
|
|
606
|
+
}), ae = (e) => {
|
|
607
|
+
var n;
|
|
608
|
+
return (n = e.lines) != null && n.some((u) => !!u.sub_lines) ? at : void 0;
|
|
609
|
+
}, yt = ["tabindex"], pt = { key: 0 }, xt = {
|
|
610
|
+
colspan: "2",
|
|
611
|
+
class: "p-0"
|
|
612
|
+
}, ht = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, _t = /* @__PURE__ */ S({
|
|
613
|
+
__name: "InvoiceGroupCommitment",
|
|
614
|
+
props: {
|
|
615
|
+
group: {},
|
|
616
|
+
expandedItems: {},
|
|
617
|
+
handleToggleItems: { type: Function },
|
|
618
|
+
formatIndex: { type: Function },
|
|
619
|
+
invoicePeriodOrder: {},
|
|
620
|
+
groupOrder: {},
|
|
621
|
+
isExpandable: { type: Boolean },
|
|
622
|
+
forceExpanded: { type: Boolean },
|
|
623
|
+
amountType: {},
|
|
624
|
+
processingOnlyCustomers: {},
|
|
625
|
+
displayInvoiceSubLinesPerProcessingOnlyCustomer: { type: Boolean },
|
|
626
|
+
showTaxPerLineItem: { type: Boolean }
|
|
627
|
+
},
|
|
628
|
+
setup(e) {
|
|
629
|
+
const n = H();
|
|
630
|
+
return (u, c) => (t(), o(p, null, [
|
|
631
|
+
_("tr", {
|
|
632
|
+
class: N(["border-t break-inside-avoid", { "cursor-pointer": e.isExpandable }]),
|
|
633
|
+
tabindex: e.isExpandable ? 0 : void 0,
|
|
634
|
+
onClick: c[0] || (c[0] = (m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
|
|
635
|
+
onKeyup: [
|
|
636
|
+
c[1] || (c[1] = j((m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
|
|
637
|
+
c[2] || (c[2] = j((m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
|
|
638
|
+
]
|
|
639
|
+
}, [
|
|
640
|
+
a(k, { class: "p-0" }, {
|
|
641
|
+
default: i(() => [
|
|
642
|
+
e.isExpandable ? (t(), h(G, {
|
|
643
|
+
key: 0,
|
|
644
|
+
icon: "keyboard_arrow_down",
|
|
645
|
+
size: "md",
|
|
646
|
+
class: N(["absolute -translate-x-7 text-slate-400", {
|
|
647
|
+
"-rotate-90": !e.expandedItems.includes(
|
|
648
|
+
e.formatIndex(e.invoicePeriodOrder, e.groupOrder)
|
|
649
|
+
)
|
|
650
|
+
}])
|
|
651
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
652
|
+
d(" " + r(l(n).$t({
|
|
653
|
+
id: "invoice.commitment_heading",
|
|
654
|
+
defaultMessage: "Commitment",
|
|
655
|
+
description: "Heading used for commitment in invoice tables"
|
|
656
|
+
})), 1)
|
|
657
|
+
]),
|
|
658
|
+
_: 1
|
|
659
|
+
}),
|
|
660
|
+
a(k, { number: "" }, {
|
|
661
|
+
default: i(() => [
|
|
662
|
+
e.amountType === "INCLUDING_TAX" ? (t(), h($, {
|
|
663
|
+
key: 0,
|
|
664
|
+
value: e.group.amount_including_tax,
|
|
665
|
+
"data-testid": l(ie),
|
|
666
|
+
"data-type": l(ae)(e.group)
|
|
667
|
+
}, null, 8, ["value", "data-testid", "data-type"])) : (t(), h($, {
|
|
668
|
+
key: 1,
|
|
669
|
+
value: e.group.amount_excluding_tax,
|
|
670
|
+
"data-testid": l(ie),
|
|
671
|
+
"data-type": l(ae)(e.group)
|
|
672
|
+
}, null, 8, ["value", "data-testid", "data-type"]))
|
|
673
|
+
]),
|
|
674
|
+
_: 1
|
|
675
|
+
})
|
|
676
|
+
], 42, yt),
|
|
677
|
+
(e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), o("tr", pt, [
|
|
678
|
+
_("td", xt, [
|
|
679
|
+
_("div", ht, [
|
|
680
|
+
a(vt, {
|
|
681
|
+
commitments: e.group.lines,
|
|
682
|
+
"format-index": e.formatIndex,
|
|
683
|
+
"handle-toggle-items": e.handleToggleItems,
|
|
684
|
+
"expanded-items": e.expandedItems,
|
|
685
|
+
"is-expandable": e.isExpandable,
|
|
686
|
+
"invoice-period-order": e.invoicePeriodOrder,
|
|
687
|
+
"group-order": e.groupOrder,
|
|
688
|
+
"processing-only-customers": e.processingOnlyCustomers,
|
|
689
|
+
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer
|
|
690
|
+
}, {
|
|
691
|
+
"invoice-line-prefix": i((m) => [
|
|
692
|
+
M(u.$slots, "invoice-line-prefix", ve(fe(m)))
|
|
693
|
+
]),
|
|
694
|
+
_: 3
|
|
695
|
+
}, 8, ["commitments", "format-index", "handle-toggle-items", "expanded-items", "is-expandable", "invoice-period-order", "group-order", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
|
|
696
|
+
])
|
|
697
|
+
])
|
|
698
|
+
])) : y("", !0)
|
|
699
|
+
], 64));
|
|
700
|
+
}
|
|
701
|
+
}), kt = ["tabindex"], Tt = { key: 0 }, Ot = {
|
|
702
|
+
colspan: "2",
|
|
703
|
+
class: "p-0"
|
|
704
|
+
}, It = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, $t = /* @__PURE__ */ S({
|
|
705
|
+
__name: "InvoiceGroupDiscountMarkup",
|
|
706
|
+
props: {
|
|
707
|
+
heading: {},
|
|
708
|
+
group: {},
|
|
709
|
+
expandedItems: {},
|
|
710
|
+
handleToggleItems: { type: Function },
|
|
711
|
+
formatIndex: { type: Function },
|
|
712
|
+
invoicePeriodOrder: {},
|
|
713
|
+
groupOrder: {},
|
|
714
|
+
isExpandable: { type: Boolean },
|
|
715
|
+
forceExpanded: { type: Boolean },
|
|
716
|
+
amountType: {},
|
|
717
|
+
processingOnlyCustomers: {},
|
|
718
|
+
displayInvoiceSubLinesPerProcessingOnlyCustomer: { type: Boolean },
|
|
719
|
+
showTaxPerLineItem: { type: Boolean }
|
|
720
|
+
},
|
|
721
|
+
setup(e) {
|
|
722
|
+
return (n, u) => (t(), o(p, null, [
|
|
723
|
+
_("tr", {
|
|
724
|
+
class: N(["border-t break-inside-avoid", { "cursor-pointer": e.isExpandable }]),
|
|
725
|
+
tabindex: e.isExpandable ? 0 : void 0,
|
|
726
|
+
onClick: u[0] || (u[0] = (c) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
|
|
727
|
+
onKeyup: [
|
|
728
|
+
u[1] || (u[1] = j((c) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
|
|
729
|
+
u[2] || (u[2] = j((c) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
|
|
730
|
+
]
|
|
731
|
+
}, [
|
|
732
|
+
a(k, { class: "p-0" }, {
|
|
733
|
+
default: i(() => [
|
|
734
|
+
e.isExpandable ? (t(), h(G, {
|
|
735
|
+
key: 0,
|
|
736
|
+
icon: "keyboard_arrow_down",
|
|
737
|
+
size: "md",
|
|
738
|
+
class: N(["absolute -translate-x-7 text-slate-400", {
|
|
739
|
+
"-rotate-90": !e.expandedItems.includes(
|
|
740
|
+
e.formatIndex(e.invoicePeriodOrder, e.groupOrder)
|
|
741
|
+
)
|
|
742
|
+
}])
|
|
743
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
744
|
+
d(" " + r(e.heading), 1)
|
|
745
|
+
]),
|
|
746
|
+
_: 1
|
|
747
|
+
}),
|
|
748
|
+
a(k, { number: "" }, {
|
|
749
|
+
default: i(() => [
|
|
750
|
+
e.amountType === "INCLUDING_TAX" ? (t(), h($, {
|
|
751
|
+
key: 0,
|
|
752
|
+
value: e.group.amount_including_tax,
|
|
753
|
+
"data-testid": l(ie),
|
|
754
|
+
"data-type": l(ae)(e.group)
|
|
755
|
+
}, null, 8, ["value", "data-testid", "data-type"])) : (t(), h($, {
|
|
756
|
+
key: 1,
|
|
757
|
+
value: e.group.amount_excluding_tax,
|
|
758
|
+
"data-testid": l(ie),
|
|
759
|
+
"data-type": l(ae)(e.group)
|
|
760
|
+
}, null, 8, ["value", "data-testid", "data-type"]))
|
|
761
|
+
]),
|
|
762
|
+
_: 1
|
|
763
|
+
})
|
|
764
|
+
], 42, kt),
|
|
765
|
+
(e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), o("tr", Tt, [
|
|
766
|
+
_("td", Ot, [
|
|
767
|
+
_("div", It, [
|
|
768
|
+
a(bt, {
|
|
769
|
+
type: e.group.type,
|
|
770
|
+
lines: e.group.lines,
|
|
771
|
+
"format-index": e.formatIndex,
|
|
772
|
+
"handle-toggle-items": e.handleToggleItems,
|
|
773
|
+
"expanded-items": e.expandedItems,
|
|
774
|
+
"is-expandable": e.isExpandable,
|
|
775
|
+
"invoice-period-order": e.invoicePeriodOrder,
|
|
776
|
+
"group-order": e.groupOrder,
|
|
777
|
+
"processing-only-customers": e.processingOnlyCustomers,
|
|
778
|
+
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer
|
|
779
|
+
}, {
|
|
780
|
+
"invoice-line-prefix": i((c) => [
|
|
781
|
+
M(n.$slots, "invoice-line-prefix", ve(fe(c)))
|
|
782
|
+
]),
|
|
783
|
+
_: 3
|
|
784
|
+
}, 8, ["type", "lines", "format-index", "handle-toggle-items", "expanded-items", "is-expandable", "invoice-period-order", "group-order", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
|
|
785
|
+
])
|
|
786
|
+
])
|
|
787
|
+
])) : y("", !0)
|
|
788
|
+
], 64));
|
|
789
|
+
}
|
|
790
|
+
}), Mt = (e, n) => {
|
|
791
|
+
if (n)
|
|
792
|
+
return e.forwarded_from_customer_id;
|
|
793
|
+
}, wt = (e) => {
|
|
794
|
+
let n = { kind: "default" }, u = { kind: "default" };
|
|
795
|
+
if (e.tier_lower_bound && "number" in e.tier_lower_bound)
|
|
796
|
+
n = { kind: "number", value: +e.tier_lower_bound.number };
|
|
797
|
+
else if (e.tier_lower_bound && "amount" in e.tier_lower_bound) {
|
|
798
|
+
const { quantity: c, currency: m } = e.tier_lower_bound.amount;
|
|
799
|
+
n = { kind: "amount", currency: m, quantity: c ?? 0 };
|
|
800
|
+
}
|
|
801
|
+
if (e.tier_top_bound && "number" in e.tier_top_bound)
|
|
802
|
+
u = { kind: "number", value: +e.tier_top_bound.number };
|
|
803
|
+
else if (e.tier_top_bound && "amount" in e.tier_top_bound) {
|
|
804
|
+
const { quantity: c, currency: m } = e.tier_top_bound.amount;
|
|
805
|
+
u = { kind: "amount", currency: m, quantity: c };
|
|
806
|
+
}
|
|
807
|
+
return { lowerBound: n, topBound: u };
|
|
808
|
+
}, Et = (e) => {
|
|
809
|
+
var n, u, c, m;
|
|
810
|
+
switch (e == null ? void 0 : e.price_bound) {
|
|
811
|
+
case "BELOW_MINIMUM_AMOUNT":
|
|
812
|
+
return { kind: "band_minimum_amount", amount: (n = e.band) == null ? void 0 : n.minimum_amount };
|
|
813
|
+
case "NOT_HIT":
|
|
814
|
+
return { kind: "price_bound_within_bounds" };
|
|
815
|
+
case "ABOVE_MAXIMUM_AMOUNT":
|
|
816
|
+
return { kind: "price_bound_maximum_amount", amount: (u = e.band) == null ? void 0 : u.maximum_amount };
|
|
817
|
+
case "BELOW_MINIMUM_NUMBER":
|
|
818
|
+
return { kind: "band_minimum_number", value: (c = e.band) == null ? void 0 : c.minimum_number };
|
|
819
|
+
case "ABOVE_MAXIMUM_NUMBER":
|
|
820
|
+
return { kind: "band_maximum_number", value: (m = e.band) == null ? void 0 : m.maximum_number };
|
|
821
|
+
default:
|
|
822
|
+
return { kind: "none" };
|
|
823
|
+
}
|
|
824
|
+
}, Ct = { class: "items-left flex flex-col gap-1 leading-none" }, Nt = { class: "flex items-center" }, Bt = {
|
|
825
|
+
key: 0,
|
|
826
|
+
class: "ml-1 text-xs text-secondary"
|
|
827
|
+
}, At = { key: 0 }, Pt = {
|
|
828
|
+
key: 1,
|
|
829
|
+
class: "text-xs text-secondary"
|
|
830
|
+
}, Ut = {
|
|
831
|
+
key: 2,
|
|
832
|
+
class: "text-xs text-secondary"
|
|
833
|
+
}, Lt = { class: "text-[9pt] text-secondary" }, St = /* @__PURE__ */ S({
|
|
834
|
+
__name: "InvoiceLineRow",
|
|
835
|
+
props: {
|
|
836
|
+
data: {},
|
|
837
|
+
isLast: { type: Boolean },
|
|
838
|
+
periodOrder: {},
|
|
839
|
+
groupOrder: {},
|
|
840
|
+
groupType: {},
|
|
841
|
+
isExpanded: { type: Boolean }
|
|
842
|
+
},
|
|
843
|
+
setup(e) {
|
|
844
|
+
const { $t: n, formatNumber: u } = H(), c = e, m = (f) => {
|
|
845
|
+
if (f.kind !== "default")
|
|
846
|
+
return f.kind === "number" ? u(f.value) : `${f.currency} ${f.quantity}`;
|
|
847
|
+
}, s = (f) => {
|
|
848
|
+
if (!f) return "";
|
|
849
|
+
const { lowerBound: x, topBound: O } = wt(f), I = m(O);
|
|
850
|
+
return (m(x) ?? "0") + (I ? ` - ${I}` : "+");
|
|
851
|
+
}, g = B(() => {
|
|
852
|
+
var f;
|
|
853
|
+
return (f = c.data.details) == null ? void 0 : f.included_volume_details;
|
|
854
|
+
}), v = B(() => Et(c.data.details)), b = B(() => {
|
|
855
|
+
var f, x;
|
|
856
|
+
return (f = c.data) != null && f.product_items ? be(c.data.product_items.map((O) => O.name)) : ((x = c.data) == null ? void 0 : x.description) ?? "N/A";
|
|
857
|
+
});
|
|
858
|
+
return (f, x) => (t(), o(p, null, [
|
|
859
|
+
a(k, { class: "align-top" }, {
|
|
860
|
+
default: i(() => {
|
|
861
|
+
var O, I, P, U, L, E, W, C, z;
|
|
862
|
+
return [
|
|
863
|
+
_("div", Ct, [
|
|
864
|
+
_("div", null, [
|
|
865
|
+
e.data.sub_lines ? (t(), h(G, {
|
|
866
|
+
key: 0,
|
|
867
|
+
icon: "keyboard_arrow_down",
|
|
868
|
+
size: "md",
|
|
869
|
+
class: N(["absolute -translate-x-7 -translate-y-2 text-slate-400", {
|
|
870
|
+
"-rotate-90": !e.isExpanded
|
|
871
|
+
}])
|
|
872
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
873
|
+
_("div", Nt, [
|
|
874
|
+
M(f.$slots, "invoice-line-prefix", {
|
|
875
|
+
lineOrder: e.data.line_order,
|
|
876
|
+
periodOrder: e.periodOrder,
|
|
877
|
+
groupOrder: e.groupOrder
|
|
878
|
+
}),
|
|
879
|
+
["PRICING", "REVENUE", "ONE_OFF"].includes(e.data.type) ? (t(), o(p, { key: 0 }, [
|
|
880
|
+
d(r(b.value) + " ", 1),
|
|
881
|
+
e.data.type === "ONE_OFF" && e.groupType !== "ONE_OFF" ? (t(), o("div", Bt, r(l(De)(e.data.type)), 1)) : y("", !0)
|
|
882
|
+
], 64)) : (t(), h(Ce, {
|
|
883
|
+
key: 1,
|
|
884
|
+
"invoice-line-description": b.value,
|
|
885
|
+
"clause-type": e.data.type,
|
|
886
|
+
"price-details-band": (O = e.data.details) == null ? void 0 : O.band
|
|
887
|
+
}, null, 8, ["invoice-line-description", "clause-type", "price-details-band"]))
|
|
888
|
+
])
|
|
889
|
+
]),
|
|
890
|
+
["TIERED", "STAIR_STEP", "TOP_TIERED"].includes(e.data.pricing_type) && !g.value && ((I = e.data.details) != null && I.band) ? (t(), o("div", At, r(s((P = e.data.details) == null ? void 0 : P.band)), 1)) : y("", !0),
|
|
891
|
+
(L = (U = e.data.details) == null ? void 0 : U.split_pricing) != null && L.meter_properties ? (t(), o("span", Pt, [
|
|
892
|
+
(t(!0), o(p, null, V((W = (E = e.data.details) == null ? void 0 : E.split_pricing) == null ? void 0 : W.meter_properties, (X, q) => (t(), o(p, null, [
|
|
893
|
+
d(r(X.meter_property.name) + ": " + r(X.value), 1),
|
|
894
|
+
q < e.data.details.split_pricing.meter_properties.length - 1 ? (t(), o(p, { key: 0 }, [
|
|
895
|
+
d(r(", "))
|
|
896
|
+
], 64)) : y("", !0)
|
|
897
|
+
], 64))), 256))
|
|
898
|
+
])) : y("", !0),
|
|
899
|
+
(C = e.data.conditions) != null && C.name || (z = e.data.conditions) != null && z.meter_properties ? (t(), o("div", Ut, [
|
|
900
|
+
e.data.conditions.name ? (t(), o(p, { key: 0 }, [
|
|
901
|
+
d(r(e.data.conditions.name), 1)
|
|
902
|
+
], 64)) : e.data.conditions.meter_properties ? (t(), h(l(Ee), {
|
|
903
|
+
key: 1,
|
|
904
|
+
comparators: e.data.conditions.meter_properties
|
|
905
|
+
}, null, 8, ["comparators"])) : y("", !0)
|
|
906
|
+
])) : y("", !0)
|
|
907
|
+
]),
|
|
908
|
+
_("span", Lt, [
|
|
909
|
+
v.value.kind === "band_minimum_amount" ? (t(), o(p, { key: 0 }, [
|
|
910
|
+
d(r(l(n)({
|
|
911
|
+
id: "invoice.line.band_minimum_amount",
|
|
912
|
+
defaultMessage: "Band minimum amount",
|
|
913
|
+
description: "Minimum amount specified in a band"
|
|
914
|
+
})) + " ", 1),
|
|
915
|
+
v.value.amount ? (t(), h($, {
|
|
916
|
+
key: 0,
|
|
917
|
+
value: v.value.amount
|
|
918
|
+
}, null, 8, ["value"])) : y("", !0)
|
|
919
|
+
], 64)) : v.value.kind === "price_bound_within_bounds" ? (t(), o(p, { key: 1 }, [
|
|
920
|
+
d(r(l(n)({
|
|
921
|
+
id: "invoice.line.price_bound_within_bounds",
|
|
922
|
+
defaultMessage: "Within bounds",
|
|
923
|
+
description: "Label used when min and max bounds are specified but reached"
|
|
924
|
+
})), 1)
|
|
925
|
+
], 64)) : v.value.kind === "price_bound_maximum_amount" ? (t(), o(p, { key: 2 }, [
|
|
926
|
+
d(r(l(n)({
|
|
927
|
+
id: "invoice.line.price_bound_maximum_amount",
|
|
928
|
+
defaultMessage: "Maximum amount",
|
|
929
|
+
description: "Maximum amount specified in a band"
|
|
930
|
+
})) + " ", 1),
|
|
931
|
+
v.value.amount ? (t(), h($, {
|
|
932
|
+
key: 0,
|
|
933
|
+
value: v.value.amount
|
|
934
|
+
}, null, 8, ["value"])) : y("", !0)
|
|
935
|
+
], 64)) : v.value.kind === "band_minimum_number" ? (t(), o(p, { key: 3 }, [
|
|
936
|
+
d(r(l(n)({
|
|
937
|
+
id: "invoice.line.band_minimum_number",
|
|
938
|
+
defaultMessage: "Minimum number",
|
|
939
|
+
description: "Minimum number of units specified in a band"
|
|
940
|
+
})) + " " + r(v.value.value), 1)
|
|
941
|
+
], 64)) : v.value.kind === "band_maximum_number" ? (t(), o(p, { key: 4 }, [
|
|
942
|
+
d(r(l(n)({
|
|
943
|
+
id: "invoice.line.band_maximum_number",
|
|
944
|
+
defaultMessage: "Maximum number",
|
|
945
|
+
description: "Maximum number of units specified in a band"
|
|
946
|
+
})) + " " + r(v.value.value), 1)
|
|
947
|
+
], 64)) : y("", !0)
|
|
948
|
+
])
|
|
949
|
+
];
|
|
950
|
+
}),
|
|
951
|
+
_: 3
|
|
952
|
+
}),
|
|
953
|
+
M(f.$slots, "line-content", {
|
|
954
|
+
details: e.data.details
|
|
955
|
+
})
|
|
956
|
+
], 64));
|
|
957
|
+
}
|
|
958
|
+
}), Dt = (e, n, u) => {
|
|
959
|
+
var c, m;
|
|
960
|
+
if (e === "PASS_THROUGH") return { kind: "hidden" };
|
|
961
|
+
if (u && ((m = (c = n == null ? void 0 : n.conversion) == null ? void 0 : c.credits) != null && m.quantity))
|
|
962
|
+
return { kind: "conversion-credits", value: n.conversion.credits.quantity };
|
|
963
|
+
if (n != null && n.price_bound) {
|
|
964
|
+
const { price_bound: s, meter_value: g, band: v } = n;
|
|
965
|
+
return s === "BELOW_MINIMUM_AMOUNT" || s === "ABOVE_MAXIMUM_AMOUNT" ? { kind: "raw", value: g.count } : s === "NOT_HIT" && "amount" in g && g.amount ? { kind: "amount", amount: g.amount } : s === "NOT_HIT" && "number" in g && g.number ? { kind: "raw", value: g.number } : s === "RATIO" && g.number ? { kind: "number", value: +g.number } : s === "BELOW_MINIMUM_NUMBER" && (v != null && v.minimum_number) ? { kind: "number", value: +v.minimum_number } : s === "ABOVE_MAXIMUM_NUMBER" && (v != null && v.maximum_number) ? { kind: "number", value: +v.maximum_number } : { kind: "hidden" };
|
|
966
|
+
}
|
|
967
|
+
return n != null && n.meter_value && "number" in n.meter_value ? { kind: "number", value: +n.meter_value.number } : n != null && n.meter_value && "amount" in n.meter_value ? { kind: "amount", amount: n.meter_value.amount } : { kind: "one" };
|
|
968
|
+
}, Rt = ["NOT_HIT", "BELOW_MINIMUM_NUMBER", "ABOVE_MAXIMUM_NUMBER"], Ft = (e, n, u) => {
|
|
969
|
+
if (e === "PASS_THROUGH") return { kind: "pass-through" };
|
|
970
|
+
if (n != null && n.price_bound) {
|
|
971
|
+
const { price_bound: s, band: g, amount: v } = n;
|
|
972
|
+
if (s === "BELOW_MINIMUM_AMOUNT" && (g != null && g.minimum_amount))
|
|
973
|
+
return { kind: "amount", amount: g.minimum_amount };
|
|
974
|
+
if (s === "ABOVE_MAXIMUM_AMOUNT" && (g != null && g.maximum_amount))
|
|
975
|
+
return { kind: "amount", amount: g.maximum_amount };
|
|
976
|
+
if (s === "RATIO")
|
|
977
|
+
return { kind: "amount", amount: (u === "PER_SEAT" ? g == null ? void 0 : g.amount : void 0) ?? v, suffix: { kind: "tier-top-bound" } };
|
|
978
|
+
if (Rt.includes(s)) {
|
|
979
|
+
if (g && g.amount)
|
|
980
|
+
return { kind: "amount", amount: g.amount };
|
|
981
|
+
if (g && "percentage" in g)
|
|
982
|
+
return { kind: "percentage", value: g.percentage };
|
|
983
|
+
if (g && v)
|
|
984
|
+
return { kind: "amount", amount: v, suffix: { kind: "fixed-amount" } };
|
|
985
|
+
}
|
|
986
|
+
return { kind: "hidden" };
|
|
987
|
+
}
|
|
988
|
+
const c = n == null ? void 0 : n.band, m = n == null ? void 0 : n.amount;
|
|
989
|
+
return c && c.amount ? { kind: "amount", amount: c.amount, suffix: { kind: "block-size-or-per-unit" } } : c && "percentage" in c ? { kind: "percentage", value: c.percentage } : c && m ? e === "STAIR_STEP" || e === "STAIR_STEP_TOP_UP" ? { kind: "amount", amount: m, suffix: { kind: "fixed-amount" } } : e === "TOP_TIERED" ? { kind: "amount", amount: m, suffix: { kind: "per-unit" } } : e === "FLAT" ? { kind: "amount", amount: m, suffix: { kind: "flat-fee" } } : { kind: "amount", amount: m } : { kind: "hidden" };
|
|
990
|
+
}, Vt = {
|
|
991
|
+
key: 5,
|
|
992
|
+
class: "text-xs text-secondary"
|
|
993
|
+
}, Wt = {
|
|
994
|
+
key: 1,
|
|
995
|
+
class: "tabular-nums"
|
|
996
|
+
}, zt = {
|
|
997
|
+
key: 0,
|
|
998
|
+
class: "text-2xs text-secondary"
|
|
999
|
+
}, Ht = {
|
|
1000
|
+
key: 1,
|
|
1001
|
+
class: "text-2xs text-secondary"
|
|
1002
|
+
}, Gt = {
|
|
1003
|
+
key: 0,
|
|
1004
|
+
class: "text-2xs text-secondary"
|
|
1005
|
+
}, Xt = {
|
|
1006
|
+
key: 1,
|
|
1007
|
+
class: "text-2xs text-secondary"
|
|
1008
|
+
}, qt = {
|
|
1009
|
+
key: 2,
|
|
1010
|
+
class: "text-2xs text-secondary"
|
|
1011
|
+
}, jt = {
|
|
1012
|
+
key: 3,
|
|
1013
|
+
class: "text-2xs text-secondary"
|
|
1014
|
+
}, Yt = {
|
|
1015
|
+
key: 4,
|
|
1016
|
+
class: "text-2xs text-secondary"
|
|
1017
|
+
}, Kt = { class: "text-2xs text-secondary" }, Qt = {
|
|
1018
|
+
key: 0,
|
|
1019
|
+
class: "flex justify-end"
|
|
1020
|
+
}, Jt = { class: "flex items-center justify-end gap-1" }, Zt = {
|
|
1021
|
+
key: 0,
|
|
1022
|
+
class: "text-2xs tabular-nums text-secondary"
|
|
1023
|
+
}, en = {
|
|
1024
|
+
key: 1,
|
|
1025
|
+
class: "inline-block"
|
|
1026
|
+
}, tn = { class: "flex items-center justify-end gap-1" }, he = /* @__PURE__ */ S({
|
|
1027
|
+
__name: "InvoiceRowContent",
|
|
1028
|
+
props: {
|
|
1029
|
+
pricingType: {},
|
|
1030
|
+
details: {},
|
|
1031
|
+
taxCategories: {},
|
|
1032
|
+
amountType: {},
|
|
1033
|
+
hideTaxDetails: { type: Boolean },
|
|
1034
|
+
modelType: {},
|
|
1035
|
+
showTaxPerLineItem: { type: Boolean, default: !0 },
|
|
1036
|
+
preferConversionCredits: { type: Boolean }
|
|
1037
|
+
},
|
|
1038
|
+
setup(e) {
|
|
1039
|
+
const n = e, u = B(() => {
|
|
1040
|
+
var E;
|
|
1041
|
+
return (E = n.details) == null ? void 0 : E.included_volume_details;
|
|
1042
|
+
}), c = B(
|
|
1043
|
+
() => {
|
|
1044
|
+
var E;
|
|
1045
|
+
return (E = u.value) == null ? void 0 : E.available_included_volume;
|
|
1046
|
+
}
|
|
1047
|
+
), m = B(
|
|
1048
|
+
() => Dt(n.pricingType, n.details, n.preferConversionCredits)
|
|
1049
|
+
), s = B(
|
|
1050
|
+
() => Ft(n.pricingType, n.details, n.modelType)
|
|
1051
|
+
), { $t: g, formatNumber: v } = H(), b = B(
|
|
1052
|
+
() => g({
|
|
1053
|
+
id: "invoice.line.fixed_amount",
|
|
1054
|
+
defaultMessage: "Fixed amount",
|
|
1055
|
+
description: "Label shown when a price band charges a fixed amount regardless of usage"
|
|
1056
|
+
})
|
|
1057
|
+
), f = B(
|
|
1058
|
+
() => g({
|
|
1059
|
+
id: "invoice.line.flat_fee",
|
|
1060
|
+
defaultMessage: "Flat fee",
|
|
1061
|
+
description: "Label shown for a flat, usage-independent fee"
|
|
1062
|
+
})
|
|
1063
|
+
), x = B(() => {
|
|
1064
|
+
var E, W;
|
|
1065
|
+
const C = (W = (E = n.details) == null ? void 0 : E.band) == null ? void 0 : W.tier_top_bound;
|
|
1066
|
+
return C && "number" in C ? C.number : void 0;
|
|
1067
|
+
}), O = B(() => {
|
|
1068
|
+
if (x.value !== void 0)
|
|
1069
|
+
return g(
|
|
1070
|
+
{
|
|
1071
|
+
id: "invoice.line.per_units_tier_top_bound",
|
|
1072
|
+
defaultMessage: "per {count, plural, one {unit} other {{formattedCount} units}}",
|
|
1073
|
+
description: "Number of units a tiered price band applies per. Singular form omits the count."
|
|
1074
|
+
},
|
|
1075
|
+
{ count: +x.value, formattedCount: x.value }
|
|
1076
|
+
);
|
|
1077
|
+
}), I = B(
|
|
1078
|
+
() => {
|
|
1079
|
+
var E, W;
|
|
1080
|
+
return n.modelType === "PER_SEAT" ? (W = (E = n.details) == null ? void 0 : E.band) == null ? void 0 : W.amount : void 0;
|
|
1081
|
+
}
|
|
1082
|
+
), P = B(
|
|
1083
|
+
() => n.modelType === "PER_SEAT" ? g({
|
|
1084
|
+
id: "invoice.line.per_seat",
|
|
1085
|
+
defaultMessage: "Per seat",
|
|
1086
|
+
description: "Label shown when a price band applies per single seat"
|
|
1087
|
+
}) : g({
|
|
1088
|
+
id: "invoice.line.per_unit",
|
|
1089
|
+
defaultMessage: "Per unit",
|
|
1090
|
+
description: "Label shown when a price band applies per single unit"
|
|
1091
|
+
})
|
|
1092
|
+
), U = B(() => {
|
|
1093
|
+
var E, W;
|
|
1094
|
+
const C = (W = (E = n.details) == null ? void 0 : E.band) == null ? void 0 : W.block_size;
|
|
1095
|
+
return C && "number" in C ? C.number : void 0;
|
|
1096
|
+
}), L = B(() => {
|
|
1097
|
+
if (U.value !== void 0)
|
|
1098
|
+
return g(
|
|
1099
|
+
{
|
|
1100
|
+
id: "invoice.line.per_units_block_size",
|
|
1101
|
+
defaultMessage: "Per {count, plural, one {unit} other {{formattedCount} units}}",
|
|
1102
|
+
description: "Number of units a price band block applies per. Singular form omits the count."
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
count: +U.value,
|
|
1106
|
+
formattedCount: v(+U.value)
|
|
1107
|
+
}
|
|
1108
|
+
);
|
|
1109
|
+
});
|
|
1110
|
+
return (E, W) => (t(), o(p, null, [
|
|
1111
|
+
a(k, {
|
|
1112
|
+
number: "",
|
|
1113
|
+
class: "align-top"
|
|
1114
|
+
}, {
|
|
1115
|
+
default: i(() => {
|
|
1116
|
+
var C;
|
|
1117
|
+
return [
|
|
1118
|
+
m.value.kind === "raw" ? (t(), o(p, { key: 0 }, [
|
|
1119
|
+
d(r(m.value.value), 1)
|
|
1120
|
+
], 64)) : m.value.kind === "amount" ? (t(), h($, {
|
|
1121
|
+
key: 1,
|
|
1122
|
+
value: m.value.amount
|
|
1123
|
+
}, null, 8, ["value"])) : m.value.kind === "number" ? (t(), o(p, { key: 2 }, [
|
|
1124
|
+
d(r(l(v)(m.value.value)), 1)
|
|
1125
|
+
], 64)) : m.value.kind === "conversion-credits" ? (t(), o(p, { key: 3 }, [
|
|
1126
|
+
d(r(l(v)(+m.value.value, {
|
|
1127
|
+
maximumFractionDigits: l(Me)
|
|
1128
|
+
})), 1)
|
|
1129
|
+
], 64)) : m.value.kind === "one" ? (t(), o(p, { key: 4 }, [
|
|
1130
|
+
d("1")
|
|
1131
|
+
], 64)) : y("", !0),
|
|
1132
|
+
m.value.kind !== "conversion-credits" && m.value.kind !== "hidden" && !((C = e.details) != null && C.price_bound) && c.value ? (t(), o("div", Vt, [
|
|
1133
|
+
c.value.type === "AMOUNT" ? (t(), o(p, { key: 0 }, [
|
|
1134
|
+
a($, {
|
|
1135
|
+
value: c.value.amount
|
|
1136
|
+
}, null, 8, ["value"]),
|
|
1137
|
+
d(" " + r(l(g)({
|
|
1138
|
+
id: "invoice.line.included",
|
|
1139
|
+
defaultMessage: "included",
|
|
1140
|
+
description: "Used to specify an included amount. Should be lowercase."
|
|
1141
|
+
})), 1)
|
|
1142
|
+
], 64)) : c.value.type === "NUMBER" ? (t(), o("span", Wt, r(c.value.number) + " " + r(l(g)({
|
|
1143
|
+
id: "invoice.line.units_included",
|
|
1144
|
+
defaultMessage: "units included",
|
|
1145
|
+
description: "Used to specify an included units. Should be lowercase."
|
|
1146
|
+
})), 1)) : y("", !0)
|
|
1147
|
+
])) : y("", !0)
|
|
1148
|
+
];
|
|
1149
|
+
}),
|
|
1150
|
+
_: 1
|
|
1151
|
+
}),
|
|
1152
|
+
s.value.kind === "pass-through" ? (t(), h(k, {
|
|
1153
|
+
key: 0,
|
|
1154
|
+
class: "text-right align-top"
|
|
1155
|
+
}, {
|
|
1156
|
+
default: i(() => [
|
|
1157
|
+
d(r(l(g)({
|
|
1158
|
+
id: "invoice.line.pass_through",
|
|
1159
|
+
defaultMessage: "Pass through",
|
|
1160
|
+
description: "Name of the pass through pricing type"
|
|
1161
|
+
})), 1)
|
|
1162
|
+
]),
|
|
1163
|
+
_: 1
|
|
1164
|
+
})) : (t(), h(k, {
|
|
1165
|
+
key: 1,
|
|
1166
|
+
number: "",
|
|
1167
|
+
class: "align-top"
|
|
1168
|
+
}, {
|
|
1169
|
+
default: i(() => {
|
|
1170
|
+
var C, z, X, q, Z;
|
|
1171
|
+
return [
|
|
1172
|
+
s.value.kind === "amount" ? (t(), o(p, { key: 0 }, [
|
|
1173
|
+
a($, {
|
|
1174
|
+
value: s.value.amount
|
|
1175
|
+
}, null, 8, ["value"]),
|
|
1176
|
+
((C = s.value.suffix) == null ? void 0 : C.kind) === "tier-top-bound" ? (t(), o(p, { key: 0 }, [
|
|
1177
|
+
O.value ? (t(), o("div", zt, r(O.value), 1)) : I.value ? (t(), o("div", Ht, r(P.value), 1)) : y("", !0)
|
|
1178
|
+
], 64)) : ((z = s.value.suffix) == null ? void 0 : z.kind) === "block-size-or-per-unit" ? (t(), o(p, { key: 1 }, [
|
|
1179
|
+
L.value ? (t(), o("div", Gt, r(L.value), 1)) : e.modelType !== "RECURRING" ? (t(), o("div", Xt, r(P.value), 1)) : y("", !0)
|
|
1180
|
+
], 64)) : ((X = s.value.suffix) == null ? void 0 : X.kind) === "per-unit" ? (t(), o("div", qt, r(P.value), 1)) : ((q = s.value.suffix) == null ? void 0 : q.kind) === "fixed-amount" ? (t(), o("div", jt, r(b.value), 1)) : ((Z = s.value.suffix) == null ? void 0 : Z.kind) === "flat-fee" ? (t(), o("div", Yt, r(f.value), 1)) : y("", !0)
|
|
1181
|
+
], 64)) : s.value.kind === "percentage" ? (t(), o(p, { key: 1 }, [
|
|
1182
|
+
d(r(s.value.value) + "% ", 1)
|
|
1183
|
+
], 64)) : y("", !0)
|
|
1184
|
+
];
|
|
1185
|
+
}),
|
|
1186
|
+
_: 1
|
|
1187
|
+
})),
|
|
1188
|
+
e.showTaxPerLineItem ? (t(), h(k, {
|
|
1189
|
+
key: 2,
|
|
1190
|
+
number: "",
|
|
1191
|
+
class: "align-top"
|
|
1192
|
+
}, {
|
|
1193
|
+
default: i(() => [
|
|
1194
|
+
e.hideTaxDetails ? y("", !0) : (t(!0), o(p, { key: 0 }, V(e.taxCategories, (C, z) => (t(), o("div", {
|
|
1195
|
+
key: z,
|
|
1196
|
+
class: "tabular-nums"
|
|
1197
|
+
}, [
|
|
1198
|
+
_("div", null, r(C.percentage) + "%", 1),
|
|
1199
|
+
_("div", Kt, [
|
|
1200
|
+
a($, {
|
|
1201
|
+
value: C.tax_amount
|
|
1202
|
+
}, null, 8, ["value"])
|
|
1203
|
+
])
|
|
1204
|
+
]))), 128))
|
|
1205
|
+
]),
|
|
1206
|
+
_: 1
|
|
1207
|
+
})) : y("", !0),
|
|
1208
|
+
a(k, {
|
|
1209
|
+
number: "",
|
|
1210
|
+
class: "align-top"
|
|
1211
|
+
}, {
|
|
1212
|
+
default: i(() => {
|
|
1213
|
+
var C, z, X, q, Z;
|
|
1214
|
+
return [
|
|
1215
|
+
(z = (C = e.details) == null ? void 0 : C.amount) != null && z.currency && ((q = (X = e.details) == null ? void 0 : X.amount) != null && q.quantity) ? (t(), o("div", Qt, [
|
|
1216
|
+
e.showTaxPerLineItem ? (t(!0), o(p, { key: 0 }, V(e.taxCategories, (oe, T) => {
|
|
1217
|
+
var D;
|
|
1218
|
+
return t(), o("div", {
|
|
1219
|
+
key: T,
|
|
1220
|
+
class: "inline-block"
|
|
1221
|
+
}, [
|
|
1222
|
+
_("div", Jt, [
|
|
1223
|
+
a($, {
|
|
1224
|
+
value: e.details.amount,
|
|
1225
|
+
"data-testid": l(se)
|
|
1226
|
+
}, null, 8, ["value", "data-testid"]),
|
|
1227
|
+
((D = e.details) == null ? void 0 : D.pricing_amount.quantity) !== e.details.amount.quantity ? (t(), h(de, {
|
|
1228
|
+
key: 0,
|
|
1229
|
+
placement: "top-end"
|
|
1230
|
+
}, {
|
|
1231
|
+
tooltip: i(() => [
|
|
1232
|
+
a(ue, null, {
|
|
1233
|
+
default: i(() => [
|
|
1234
|
+
a(ce, null, {
|
|
1235
|
+
default: i(() => [
|
|
1236
|
+
d(r(l(g)({
|
|
1237
|
+
id: "invoice.line.original_currency",
|
|
1238
|
+
defaultMessage: "Original currency",
|
|
1239
|
+
description: "Original currency"
|
|
1240
|
+
})) + " ", 1),
|
|
1241
|
+
a($, {
|
|
1242
|
+
value: e.details.pricing_amount,
|
|
1243
|
+
class: "font-semibold"
|
|
1244
|
+
}, null, 8, ["value"])
|
|
1245
|
+
]),
|
|
1246
|
+
_: 1
|
|
1247
|
+
})
|
|
1248
|
+
]),
|
|
1249
|
+
_: 1
|
|
1250
|
+
})
|
|
1251
|
+
]),
|
|
1252
|
+
default: i(() => [
|
|
1253
|
+
a(G, {
|
|
1254
|
+
icon: "info",
|
|
1255
|
+
size: "2xs"
|
|
1256
|
+
})
|
|
1257
|
+
]),
|
|
1258
|
+
_: 1
|
|
1259
|
+
})) : y("", !0)
|
|
1260
|
+
]),
|
|
1261
|
+
e.hideTaxDetails ? y("", !0) : (t(), o("div", Zt, [
|
|
1262
|
+
e.amountType === "INCLUDING_TAX" ? (t(), o(p, { key: 0 }, [
|
|
1263
|
+
d(r(l(g)({
|
|
1264
|
+
id: "invoice.line.excl.tax",
|
|
1265
|
+
defaultMessage: "Excl. tax",
|
|
1266
|
+
description: "Value excludes tax"
|
|
1267
|
+
})) + " ", 1),
|
|
1268
|
+
a($, {
|
|
1269
|
+
value: oe.base_amount
|
|
1270
|
+
}, null, 8, ["value"])
|
|
1271
|
+
], 64)) : (t(), o(p, { key: 1 }, [
|
|
1272
|
+
d(r(l(g)({
|
|
1273
|
+
id: "invoice.line.incl.tax",
|
|
1274
|
+
defaultMessage: "Incl. tax",
|
|
1275
|
+
description: "Value includes tax"
|
|
1276
|
+
})) + " ", 1),
|
|
1277
|
+
a($, {
|
|
1278
|
+
value: oe.total_amount
|
|
1279
|
+
}, null, 8, ["value"])
|
|
1280
|
+
], 64))
|
|
1281
|
+
]))
|
|
1282
|
+
]);
|
|
1283
|
+
}), 128)) : (t(), o("div", en, [
|
|
1284
|
+
_("div", tn, [
|
|
1285
|
+
a($, {
|
|
1286
|
+
value: e.details.amount,
|
|
1287
|
+
"data-testid": l(se)
|
|
1288
|
+
}, null, 8, ["value", "data-testid"]),
|
|
1289
|
+
((Z = e.details) == null ? void 0 : Z.pricing_amount.quantity) !== e.details.amount.quantity ? (t(), h(de, {
|
|
1290
|
+
key: 0,
|
|
1291
|
+
placement: "top-end"
|
|
1292
|
+
}, {
|
|
1293
|
+
tooltip: i(() => [
|
|
1294
|
+
a(ue, null, {
|
|
1295
|
+
default: i(() => [
|
|
1296
|
+
a(ce, null, {
|
|
1297
|
+
default: i(() => [
|
|
1298
|
+
d(r(l(g)({
|
|
1299
|
+
id: "invoice.line.original_currency",
|
|
1300
|
+
defaultMessage: "Original currency",
|
|
1301
|
+
description: "Original currency"
|
|
1302
|
+
})) + " ", 1),
|
|
1303
|
+
a($, {
|
|
1304
|
+
value: e.details.pricing_amount,
|
|
1305
|
+
class: "font-semibold"
|
|
1306
|
+
}, null, 8, ["value"])
|
|
1307
|
+
]),
|
|
1308
|
+
_: 1
|
|
1309
|
+
})
|
|
1310
|
+
]),
|
|
1311
|
+
_: 1
|
|
1312
|
+
})
|
|
1313
|
+
]),
|
|
1314
|
+
default: i(() => [
|
|
1315
|
+
a(G, {
|
|
1316
|
+
icon: "info",
|
|
1317
|
+
size: "2xs"
|
|
1318
|
+
})
|
|
1319
|
+
]),
|
|
1320
|
+
_: 1
|
|
1321
|
+
})) : y("", !0)
|
|
1322
|
+
])
|
|
1323
|
+
])),
|
|
1324
|
+
M(E.$slots, "one-off-line-context-menu")
|
|
1325
|
+
])) : (t(), o(p, { key: 1 }, [
|
|
1326
|
+
d("-")
|
|
1327
|
+
], 64))
|
|
1328
|
+
];
|
|
1329
|
+
}),
|
|
1330
|
+
_: 3
|
|
1331
|
+
})
|
|
1332
|
+
], 64));
|
|
1333
|
+
}
|
|
1334
|
+
}), nn = ["tabindex", "onClick"], Ne = /* @__PURE__ */ S({
|
|
1335
|
+
__name: "InvoiceLineGroup",
|
|
1336
|
+
props: {
|
|
1337
|
+
group: {},
|
|
1338
|
+
startDate: {},
|
|
1339
|
+
endDate: {},
|
|
1340
|
+
total: {},
|
|
1341
|
+
amountType: {},
|
|
1342
|
+
invoicePeriodOrder: {},
|
|
1343
|
+
processingOnlyCustomers: {},
|
|
1344
|
+
displayInvoiceSubLinesPerProcessingOnlyCustomer: { type: Boolean },
|
|
1345
|
+
showTaxPerLineItem: { type: Boolean, default: !0 },
|
|
1346
|
+
isExpandable: { type: Boolean, default: !0 }
|
|
1347
|
+
},
|
|
1348
|
+
setup(e) {
|
|
1349
|
+
const n = e, u = B(
|
|
1350
|
+
() => {
|
|
1351
|
+
var b;
|
|
1352
|
+
return (b = [...n.group.lines ?? []]) == null ? void 0 : b.sort((f, x) => f.line_order - x.line_order);
|
|
1353
|
+
}
|
|
1354
|
+
), c = H(), { getIsOpen: m, toggle: s } = ge(), g = (b, f) => {
|
|
1355
|
+
s(v(b, f));
|
|
1356
|
+
}, v = (b, f) => `${b}-line-${f}`;
|
|
1357
|
+
return (b, f) => (t(), o("div", null, [
|
|
1358
|
+
a(J, null, {
|
|
1359
|
+
default: i(() => [
|
|
1360
|
+
_("tr", null, [
|
|
1361
|
+
a(w, {
|
|
1362
|
+
left: "",
|
|
1363
|
+
class: "w-1/5 text-secondary"
|
|
1364
|
+
}, {
|
|
1365
|
+
default: i(() => [
|
|
1366
|
+
d(r(l(c).$t({
|
|
1367
|
+
id: "invoice.table_header.unit",
|
|
1368
|
+
defaultMessage: "Unit",
|
|
1369
|
+
description: "Table header for the column containing the number of units of invoice groups"
|
|
1370
|
+
})), 1)
|
|
1371
|
+
]),
|
|
1372
|
+
_: 1
|
|
1373
|
+
}),
|
|
1374
|
+
a(w, {
|
|
1375
|
+
right: "",
|
|
1376
|
+
class: "w-1/5 text-secondary"
|
|
1377
|
+
}, {
|
|
1378
|
+
default: i(() => [
|
|
1379
|
+
d(r(l(c).$t({
|
|
1380
|
+
id: "invoice.table_header.quantity",
|
|
1381
|
+
defaultMessage: "Quantity",
|
|
1382
|
+
description: "Table header for quantity column"
|
|
1383
|
+
})), 1)
|
|
1384
|
+
]),
|
|
1385
|
+
_: 1
|
|
1386
|
+
}),
|
|
1387
|
+
a(w, {
|
|
1388
|
+
right: "",
|
|
1389
|
+
class: "w-1/5 text-secondary"
|
|
1390
|
+
}, {
|
|
1391
|
+
default: i(() => [
|
|
1392
|
+
d(r(l(c).$t({
|
|
1393
|
+
id: "invoice.table_header.price",
|
|
1394
|
+
defaultMessage: "Price",
|
|
1395
|
+
description: "Table header for the column containing the number of units of invoice groups"
|
|
1396
|
+
})), 1)
|
|
1397
|
+
]),
|
|
1398
|
+
_: 1
|
|
1399
|
+
}),
|
|
1400
|
+
e.showTaxPerLineItem ? (t(), h(w, {
|
|
1401
|
+
key: 0,
|
|
1402
|
+
right: "",
|
|
1403
|
+
class: "w-1/5 text-secondary"
|
|
1404
|
+
}, {
|
|
1405
|
+
default: i(() => [
|
|
1406
|
+
d(r(l(c).$t({
|
|
1407
|
+
id: "invoice.table_header.tax_rate",
|
|
1408
|
+
defaultMessage: "Tax rate",
|
|
1409
|
+
description: "Table header for the column containing the tax percentage of invoice groups"
|
|
1410
|
+
})), 1)
|
|
1411
|
+
]),
|
|
1412
|
+
_: 1
|
|
1413
|
+
})) : y("", !0),
|
|
1414
|
+
a(w, {
|
|
1415
|
+
right: "",
|
|
1416
|
+
class: "w-1/5 text-secondary"
|
|
1417
|
+
}, {
|
|
1418
|
+
default: i(() => [
|
|
1419
|
+
d(r(l(c).$t({
|
|
1420
|
+
id: "invoice.table_header.sub_total",
|
|
1421
|
+
defaultMessage: "Subtotal",
|
|
1422
|
+
description: "Table header for the column containing the subtotal for invoices"
|
|
1423
|
+
})), 1)
|
|
1424
|
+
]),
|
|
1425
|
+
_: 1
|
|
1426
|
+
})
|
|
1427
|
+
]),
|
|
1428
|
+
(t(!0), o(p, null, V(u.value, (x, O) => (t(), o(p, { key: O }, [
|
|
1429
|
+
_("tr", {
|
|
1430
|
+
tabindex: e.isExpandable && x.sub_lines ? 0 : void 0,
|
|
1431
|
+
class: N(["group", {
|
|
1432
|
+
"cursor-pointer": e.isExpandable && x.sub_lines,
|
|
1433
|
+
"border-t": O !== 0
|
|
1434
|
+
}]),
|
|
1435
|
+
onClick: (I) => g(e.group.group_order, x.line_order)
|
|
1436
|
+
}, [
|
|
1437
|
+
(t(), h(St, {
|
|
1438
|
+
key: O,
|
|
1439
|
+
data: x,
|
|
1440
|
+
"period-order": e.invoicePeriodOrder,
|
|
1441
|
+
"group-order": e.group.group_order,
|
|
1442
|
+
"is-last": O === u.value.length - 1,
|
|
1443
|
+
"group-type": e.group.type,
|
|
1444
|
+
"is-expanded": l(m)(v(e.group.group_order, x.line_order))
|
|
1445
|
+
}, {
|
|
1446
|
+
"invoice-line-prefix": i((I) => [
|
|
1447
|
+
M(b.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, I))
|
|
1448
|
+
]),
|
|
1449
|
+
"line-content": i((I) => {
|
|
1450
|
+
var P, U;
|
|
1451
|
+
return [
|
|
1452
|
+
a(he, {
|
|
1453
|
+
details: I.details,
|
|
1454
|
+
"pricing-type": x.pricing_type,
|
|
1455
|
+
"tax-categories": x.tax_categories,
|
|
1456
|
+
"amount-type": e.amountType,
|
|
1457
|
+
"model-type": (U = (P = x.product_items) == null ? void 0 : P[0]) == null ? void 0 : U.model_type,
|
|
1458
|
+
"show-tax-per-line-item": e.showTaxPerLineItem
|
|
1459
|
+
}, Ie({ _: 2 }, [
|
|
1460
|
+
x.type === "ONE_OFF" ? {
|
|
1461
|
+
name: "one-off-line-context-menu",
|
|
1462
|
+
fn: i((L) => [
|
|
1463
|
+
M(b.$slots, "one-off-line-context-menu", Q({ ref_for: !0 }, L, {
|
|
1464
|
+
lineOrder: x.line_order
|
|
1465
|
+
}))
|
|
1466
|
+
]),
|
|
1467
|
+
key: "0"
|
|
1468
|
+
} : void 0
|
|
1469
|
+
]), 1032, ["details", "pricing-type", "tax-categories", "amount-type", "model-type", "show-tax-per-line-item"])
|
|
1470
|
+
];
|
|
1471
|
+
}),
|
|
1472
|
+
_: 2
|
|
1473
|
+
}, 1032, ["data", "period-order", "group-order", "is-last", "group-type", "is-expanded"]))
|
|
1474
|
+
], 10, nn),
|
|
1475
|
+
a(ye, {
|
|
1476
|
+
ref_for: !0,
|
|
1477
|
+
ref: v(e.group.group_order, x.line_order),
|
|
1478
|
+
"sub-lines": x.sub_lines ?? [],
|
|
1479
|
+
"processing-only-customers": e.processingOnlyCustomers,
|
|
1480
|
+
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer,
|
|
1481
|
+
"line-order": x.line_order,
|
|
1482
|
+
"is-open": l(m)(v(e.group.group_order, x.line_order)),
|
|
1483
|
+
"period-order": e.invoicePeriodOrder,
|
|
1484
|
+
"group-order": e.group.group_order,
|
|
1485
|
+
"show-tax-per-line-item": e.showTaxPerLineItem
|
|
1486
|
+
}, {
|
|
1487
|
+
"invoice-line-prefix": i((I) => [
|
|
1488
|
+
M(b.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, I))
|
|
1489
|
+
]),
|
|
1490
|
+
"subline-content": i((I) => {
|
|
1491
|
+
var P, U;
|
|
1492
|
+
return [
|
|
1493
|
+
a(he, {
|
|
1494
|
+
details: I.details,
|
|
1495
|
+
"hide-tax-details": I.hideTaxDetails,
|
|
1496
|
+
"prefer-conversion-credits": "",
|
|
1497
|
+
"pricing-type": x.pricing_type,
|
|
1498
|
+
"tax-categories": x.tax_categories,
|
|
1499
|
+
"amount-type": e.amountType,
|
|
1500
|
+
"model-type": (U = (P = x.product_items) == null ? void 0 : P[0]) == null ? void 0 : U.model_type,
|
|
1501
|
+
"show-tax-per-line-item": e.showTaxPerLineItem
|
|
1502
|
+
}, null, 8, ["details", "hide-tax-details", "pricing-type", "tax-categories", "amount-type", "model-type", "show-tax-per-line-item"])
|
|
1503
|
+
];
|
|
1504
|
+
}),
|
|
1505
|
+
_: 2
|
|
1506
|
+
}, 1032, ["sub-lines", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer", "line-order", "is-open", "period-order", "group-order", "show-tax-per-line-item"])
|
|
1507
|
+
], 64))), 128))
|
|
1508
|
+
]),
|
|
1509
|
+
_: 3
|
|
1510
|
+
})
|
|
1511
|
+
]));
|
|
1512
|
+
}
|
|
1513
|
+
}), an = { class: "flex items-center" }, on = {
|
|
1514
|
+
key: 2,
|
|
1515
|
+
class: "ml-1 inline-flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded-full bg-primary-100 text-2xs font-bold text-primary-600"
|
|
1516
|
+
}, me = /* @__PURE__ */ S({
|
|
1517
|
+
__name: "InvoiceTableRowLabel",
|
|
1518
|
+
props: {
|
|
1519
|
+
label: {},
|
|
1520
|
+
count: {}
|
|
1521
|
+
},
|
|
1522
|
+
setup(e) {
|
|
1523
|
+
const n = re(), u = re(!1);
|
|
1524
|
+
return Fe(n, ([c]) => {
|
|
1525
|
+
u.value = c.target.clientWidth < c.target.scrollWidth;
|
|
1526
|
+
}), (c, m) => (t(), o("div", an, [
|
|
1527
|
+
u.value ? (t(), h(de, {
|
|
1528
|
+
key: 0,
|
|
1529
|
+
placement: "bottom-start",
|
|
1530
|
+
class: "min-w-0 leading-normal"
|
|
1531
|
+
}, {
|
|
1532
|
+
tooltip: i(() => [
|
|
1533
|
+
a(ue, null, {
|
|
1534
|
+
default: i(() => [
|
|
1535
|
+
a(ce, null, {
|
|
1536
|
+
default: i(() => [
|
|
1537
|
+
d(r(e.label), 1)
|
|
1538
|
+
]),
|
|
1539
|
+
_: 1
|
|
1540
|
+
})
|
|
1541
|
+
]),
|
|
1542
|
+
_: 1
|
|
1543
|
+
})
|
|
1544
|
+
]),
|
|
1545
|
+
default: i(() => [
|
|
1546
|
+
_("span", {
|
|
1547
|
+
ref_key: "labelElement",
|
|
1548
|
+
ref: n,
|
|
1549
|
+
class: "block truncate"
|
|
1550
|
+
}, r(e.label), 513)
|
|
1551
|
+
]),
|
|
1552
|
+
_: 1
|
|
1553
|
+
})) : (t(), o("span", {
|
|
1554
|
+
key: 1,
|
|
1555
|
+
ref_key: "labelElement",
|
|
1556
|
+
ref: n,
|
|
1557
|
+
class: N(["block", { truncate: e.count !== void 0 }])
|
|
1558
|
+
}, r(e.label), 3)),
|
|
1559
|
+
e.count !== void 0 ? (t(), o("span", on, r(e.count), 1)) : y("", !0)
|
|
1560
|
+
]));
|
|
1561
|
+
}
|
|
1562
|
+
}), ln = ["tabindex"], rn = { key: 0 }, sn = {
|
|
1563
|
+
colspan: "2",
|
|
1564
|
+
class: "p-0"
|
|
1565
|
+
}, dn = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, un = /* @__PURE__ */ S({
|
|
1566
|
+
__name: "InvoiceGroupRevenue",
|
|
1567
|
+
props: {
|
|
1568
|
+
forwardedFromCustomers: {},
|
|
1569
|
+
showOriginalCustomerInvoiceLine: {},
|
|
1570
|
+
group: {},
|
|
1571
|
+
expandedItems: {},
|
|
1572
|
+
handleToggleItems: {},
|
|
1573
|
+
formatIndex: {},
|
|
1574
|
+
invoicePeriodOrder: {},
|
|
1575
|
+
groupOrder: {},
|
|
1576
|
+
isExpandable: { type: Boolean },
|
|
1577
|
+
forceExpanded: { type: Boolean },
|
|
1578
|
+
amountType: {},
|
|
1579
|
+
processingOnlyCustomers: {},
|
|
1580
|
+
displayInvoiceSubLinesPerProcessingOnlyCustomer: { type: Boolean },
|
|
1581
|
+
showTaxPerLineItem: { type: Boolean, default: !0 }
|
|
1582
|
+
},
|
|
1583
|
+
setup(e) {
|
|
1584
|
+
const n = e, u = B(() => {
|
|
1585
|
+
var c, m, s;
|
|
1586
|
+
const g = [
|
|
1587
|
+
(c = n.group.pricing) == null ? void 0 : c.name,
|
|
1588
|
+
be(((m = n.group.products) == null ? void 0 : m.map((f) => f.name)) ?? [])
|
|
1589
|
+
].filter(Boolean).join(" - "), v = Mt(
|
|
1590
|
+
n.group,
|
|
1591
|
+
!!n.showOriginalCustomerInvoiceLine
|
|
1592
|
+
);
|
|
1593
|
+
if (!v)
|
|
1594
|
+
return g;
|
|
1595
|
+
const b = (s = n.forwardedFromCustomers) == null ? void 0 : s.find(
|
|
1596
|
+
(f) => f.id === v
|
|
1597
|
+
);
|
|
1598
|
+
return [b && $e(b), g].filter(Boolean).join(" - ");
|
|
1599
|
+
});
|
|
1600
|
+
return (c, m) => (t(), o(p, null, [
|
|
1601
|
+
_("tr", {
|
|
1602
|
+
class: N(["border-t break-inside-avoid", { "cursor-pointer": e.isExpandable }]),
|
|
1603
|
+
tabindex: e.isExpandable ? 0 : void 0,
|
|
1604
|
+
onClick: m[0] || (m[0] = (s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
|
|
1605
|
+
onKeyup: [
|
|
1606
|
+
m[1] || (m[1] = j((s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
|
|
1607
|
+
m[2] || (m[2] = j((s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
|
|
1608
|
+
]
|
|
1609
|
+
}, [
|
|
1610
|
+
a(k, { class: "p-0" }, {
|
|
1611
|
+
default: i(() => {
|
|
1612
|
+
var s;
|
|
1613
|
+
return [
|
|
1614
|
+
e.isExpandable ? (t(), h(G, {
|
|
1615
|
+
key: 0,
|
|
1616
|
+
icon: "keyboard_arrow_down",
|
|
1617
|
+
size: "md",
|
|
1618
|
+
class: N(["absolute -translate-x-7 text-slate-400", {
|
|
1619
|
+
"-rotate-90": !e.expandedItems.includes(
|
|
1620
|
+
e.formatIndex(e.invoicePeriodOrder, e.groupOrder)
|
|
1621
|
+
)
|
|
1622
|
+
}])
|
|
1623
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
1624
|
+
a(me, {
|
|
1625
|
+
label: u.value,
|
|
1626
|
+
count: e.isExpandable ? ((s = e.group.lines) == null ? void 0 : s.length) ?? 0 : void 0
|
|
1627
|
+
}, null, 8, ["label", "count"])
|
|
1628
|
+
];
|
|
1629
|
+
}),
|
|
1630
|
+
_: 1
|
|
1631
|
+
}),
|
|
1632
|
+
a(k, { number: "" }, {
|
|
1633
|
+
default: i(() => [
|
|
1634
|
+
e.amountType === "INCLUDING_TAX" ? (t(), h($, {
|
|
1635
|
+
key: 0,
|
|
1636
|
+
value: e.group.amount_including_tax,
|
|
1637
|
+
"data-testid": l(ie),
|
|
1638
|
+
"data-type": l(ae)(e.group)
|
|
1639
|
+
}, null, 8, ["value", "data-testid", "data-type"])) : (t(), h($, {
|
|
1640
|
+
key: 1,
|
|
1641
|
+
value: e.group.amount_excluding_tax,
|
|
1642
|
+
"data-testid": l(ie),
|
|
1643
|
+
"data-type": l(ae)(e.group)
|
|
1644
|
+
}, null, 8, ["value", "data-testid", "data-type"]))
|
|
1645
|
+
]),
|
|
1646
|
+
_: 1
|
|
1647
|
+
})
|
|
1648
|
+
], 42, ln),
|
|
1649
|
+
e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)) ? (t(), o("tr", rn, [
|
|
1650
|
+
_("td", sn, [
|
|
1651
|
+
_("div", dn, [
|
|
1652
|
+
a(Ne, {
|
|
1653
|
+
"invoice-period-order": e.invoicePeriodOrder,
|
|
1654
|
+
"start-date": e.group.start_at,
|
|
1655
|
+
"end-date": e.group.end_at,
|
|
1656
|
+
total: e.group.amount_excluding_tax,
|
|
1657
|
+
group: e.group,
|
|
1658
|
+
"amount-type": e.amountType,
|
|
1659
|
+
"processing-only-customers": e.processingOnlyCustomers,
|
|
1660
|
+
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer,
|
|
1661
|
+
"show-tax-per-line-item": e.showTaxPerLineItem,
|
|
1662
|
+
"is-expandable": e.isExpandable
|
|
1663
|
+
}, {
|
|
1664
|
+
"invoice-line-prefix": i((s) => [
|
|
1665
|
+
M(c.$slots, "invoice-line-prefix", ve(fe(s)))
|
|
1666
|
+
]),
|
|
1667
|
+
"one-off-line-context-menu": i((s) => [
|
|
1668
|
+
M(c.$slots, "one-off-line-context-menu", Q(s, { groupOrder: e.groupOrder }))
|
|
1669
|
+
]),
|
|
1670
|
+
_: 3
|
|
1671
|
+
}, 8, ["invoice-period-order", "start-date", "end-date", "total", "group", "amount-type", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer", "show-tax-per-line-item", "is-expandable"])
|
|
1672
|
+
])
|
|
1673
|
+
])
|
|
1674
|
+
])) : y("", !0)
|
|
1675
|
+
], 64));
|
|
1676
|
+
}
|
|
1677
|
+
}), _e = /* @__PURE__ */ S({
|
|
1678
|
+
__name: "InvoiceGroupWalletBalance",
|
|
1679
|
+
props: {
|
|
1680
|
+
lines: {},
|
|
1681
|
+
creditTypes: {}
|
|
1682
|
+
},
|
|
1683
|
+
setup(e) {
|
|
1684
|
+
const n = e, { $t: u } = H(), c = B(
|
|
1685
|
+
() => Ve(We(n.lines), {
|
|
1686
|
+
creditTypes: n.creditTypes,
|
|
1687
|
+
creditsLabel: u({
|
|
1688
|
+
defaultMessage: "Credits",
|
|
1689
|
+
description: "Generic fallback label for a wallet balance row with no known credit type",
|
|
1690
|
+
id: "invoiceGroupWalletBalance.creditsLabel"
|
|
1691
|
+
}),
|
|
1692
|
+
walletLabel: u({
|
|
1693
|
+
defaultMessage: "Wallet balance",
|
|
1694
|
+
description: "Label for a wallet balance row of a wallet that pays in money",
|
|
1695
|
+
id: "invoiceGroupWalletBalance.walletBalanceLabel"
|
|
1696
|
+
})
|
|
1697
|
+
})
|
|
1698
|
+
), m = (s) => ze(s, {
|
|
1699
|
+
formatMoney: we,
|
|
1700
|
+
formatQuantity: (g) => g
|
|
1701
|
+
});
|
|
1702
|
+
return (s, g) => c.value.length ? (t(), h(J, { key: 0 }, {
|
|
1703
|
+
default: i(() => [
|
|
1704
|
+
_("tr", null, [
|
|
1705
|
+
a(w, {
|
|
1706
|
+
left: "",
|
|
1707
|
+
class: "w-2/5 text-gray-400"
|
|
1708
|
+
}, {
|
|
1709
|
+
default: i(() => [
|
|
1710
|
+
d(r(l(u)({
|
|
1711
|
+
defaultMessage: "Wallet breakdown",
|
|
1712
|
+
description: "Table heading for the wallet column in the wallet balance table",
|
|
1713
|
+
id: "invoiceGroupWalletBalance.walletBreakdownHeading"
|
|
1714
|
+
})), 1)
|
|
1715
|
+
]),
|
|
1716
|
+
_: 1
|
|
1717
|
+
}),
|
|
1718
|
+
a(w, {
|
|
1719
|
+
right: "",
|
|
1720
|
+
class: "w-1/5 text-gray-400"
|
|
1721
|
+
}, {
|
|
1722
|
+
default: i(() => [
|
|
1723
|
+
d(r(l(u)({
|
|
1724
|
+
defaultMessage: "Balance",
|
|
1725
|
+
description: "Table heading for the balance column in the wallet balance table",
|
|
1726
|
+
id: "invoiceGroupWalletBalance.balanceHeading"
|
|
1727
|
+
})), 1)
|
|
1728
|
+
]),
|
|
1729
|
+
_: 1
|
|
1730
|
+
}),
|
|
1731
|
+
a(w, {
|
|
1732
|
+
right: "",
|
|
1733
|
+
class: "w-1/5 text-gray-400"
|
|
1734
|
+
}, {
|
|
1735
|
+
default: i(() => [
|
|
1736
|
+
d(r(l(u)({
|
|
1737
|
+
defaultMessage: "Used",
|
|
1738
|
+
description: "Table heading for the used-balance column in the wallet balance table",
|
|
1739
|
+
id: "invoiceGroupWalletBalance.usedHeading"
|
|
1740
|
+
})), 1)
|
|
1741
|
+
]),
|
|
1742
|
+
_: 1
|
|
1743
|
+
}),
|
|
1744
|
+
a(w, {
|
|
1745
|
+
right: "",
|
|
1746
|
+
class: "w-1/5 text-gray-400"
|
|
1747
|
+
}, {
|
|
1748
|
+
default: i(() => [
|
|
1749
|
+
d(r(l(u)({
|
|
1750
|
+
defaultMessage: "Remaining",
|
|
1751
|
+
description: "Table heading for the remaining-balance column in the wallet balance table",
|
|
1752
|
+
id: "invoiceGroupWalletBalance.remainingHeading"
|
|
1753
|
+
})), 1)
|
|
1754
|
+
]),
|
|
1755
|
+
_: 1
|
|
1756
|
+
})
|
|
1757
|
+
]),
|
|
1758
|
+
(t(!0), o(p, null, V(c.value, (v) => (t(), o("tr", {
|
|
1759
|
+
key: v.key
|
|
1760
|
+
}, [
|
|
1761
|
+
a(k, null, {
|
|
1762
|
+
default: i(() => [
|
|
1763
|
+
d(r(v.label), 1)
|
|
1764
|
+
]),
|
|
1765
|
+
_: 2
|
|
1766
|
+
}, 1024),
|
|
1767
|
+
a(k, { number: "" }, {
|
|
1768
|
+
default: i(() => [
|
|
1769
|
+
d(r(m(v.availableBalance)), 1)
|
|
1770
|
+
]),
|
|
1771
|
+
_: 2
|
|
1772
|
+
}, 1024),
|
|
1773
|
+
a(k, { number: "" }, {
|
|
1774
|
+
default: i(() => [
|
|
1775
|
+
d(r(m(v.usedBalance)), 1)
|
|
1776
|
+
]),
|
|
1777
|
+
_: 2
|
|
1778
|
+
}, 1024),
|
|
1779
|
+
a(k, { number: "" }, {
|
|
1780
|
+
default: i(() => [
|
|
1781
|
+
d(r(m(v.leftBalance)), 1)
|
|
1782
|
+
]),
|
|
1783
|
+
_: 2
|
|
1784
|
+
}, 1024)
|
|
1785
|
+
]))), 128))
|
|
1786
|
+
]),
|
|
1787
|
+
_: 1
|
|
1788
|
+
})) : y("", !0);
|
|
1789
|
+
}
|
|
1790
|
+
});
|
|
1791
|
+
function ke(e) {
|
|
1792
|
+
return typeof e == "function" ? e() : l(e);
|
|
1793
|
+
}
|
|
1794
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
1795
|
+
function cn(e = !1, n = {}) {
|
|
1796
|
+
const {
|
|
1797
|
+
truthyValue: u = !0,
|
|
1798
|
+
falsyValue: c = !1
|
|
1799
|
+
} = n, m = Ae(e), s = re(e);
|
|
1800
|
+
function g(v) {
|
|
1801
|
+
if (arguments.length)
|
|
1802
|
+
return s.value = v, s.value;
|
|
1803
|
+
{
|
|
1804
|
+
const b = ke(u);
|
|
1805
|
+
return s.value = s.value === b ? ke(c) : b, s.value;
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
return m ? g : [s, g];
|
|
1809
|
+
}
|
|
1810
|
+
const mn = {
|
|
1811
|
+
key: 0,
|
|
1812
|
+
totals: "",
|
|
1813
|
+
class: "border-t break-inside-avoid"
|
|
1814
|
+
}, Te = /* @__PURE__ */ S({
|
|
1815
|
+
__name: "InvoiceSummaryTotalExcludingTax",
|
|
1816
|
+
props: {
|
|
1817
|
+
baseAmount: {}
|
|
1818
|
+
},
|
|
1819
|
+
setup(e) {
|
|
1820
|
+
const n = H();
|
|
1821
|
+
return (u, c) => e.baseAmount ? (t(), o("tr", mn, [
|
|
1822
|
+
a(k, null, {
|
|
1823
|
+
default: i(() => [
|
|
1824
|
+
d(r(l(n).$t({
|
|
1825
|
+
id: "invoice.table_header.total_excluding_taxes",
|
|
1826
|
+
defaultMessage: "Total excluding taxes",
|
|
1827
|
+
description: "Table row header for the total excluding taxes column in the invoice table"
|
|
1828
|
+
})), 1)
|
|
1829
|
+
]),
|
|
1830
|
+
_: 1
|
|
1831
|
+
}),
|
|
1832
|
+
a(k, { number: "" }, {
|
|
1833
|
+
default: i(() => [
|
|
1834
|
+
a($, {
|
|
1835
|
+
value: e.baseAmount,
|
|
1836
|
+
"data-testid": l(et)
|
|
1837
|
+
}, null, 8, ["value", "data-testid"])
|
|
1838
|
+
]),
|
|
1839
|
+
_: 1
|
|
1840
|
+
})
|
|
1841
|
+
])) : y("", !0);
|
|
1842
|
+
}
|
|
1843
|
+
}), vn = {
|
|
1844
|
+
key: 0,
|
|
1845
|
+
class: "border-t font-bold break-inside-avoid"
|
|
1846
|
+
}, Oe = /* @__PURE__ */ S({
|
|
1847
|
+
__name: "InvoiceSummaryTotalIncludingTax",
|
|
1848
|
+
props: {
|
|
1849
|
+
totalAmount: {},
|
|
1850
|
+
isCustomerFacing: { type: Boolean }
|
|
1851
|
+
},
|
|
1852
|
+
setup(e) {
|
|
1853
|
+
const n = H();
|
|
1854
|
+
return (u, c) => e.totalAmount ? (t(), o("tr", vn, [
|
|
1855
|
+
a(k, { class: "font-bold" }, {
|
|
1856
|
+
default: i(() => [
|
|
1857
|
+
d(r(e.isCustomerFacing ? l(n).$t({
|
|
1858
|
+
id: "invoice.table_header.total_including_taxes_customer_facing",
|
|
1859
|
+
defaultMessage: "Total due today",
|
|
1860
|
+
description: "Table row header for the total including taxes column in the invoice table for a customer facing component"
|
|
1861
|
+
}) : l(n).$t({
|
|
1862
|
+
id: "invoice.table_header.total_including_taxes",
|
|
1863
|
+
defaultMessage: "Total including taxes",
|
|
1864
|
+
description: "Table row header for the total including taxes column in the invoice table"
|
|
1865
|
+
})), 1)
|
|
1866
|
+
]),
|
|
1867
|
+
_: 1
|
|
1868
|
+
}),
|
|
1869
|
+
a(k, { number: "" }, {
|
|
1870
|
+
default: i(() => [
|
|
1871
|
+
a($, {
|
|
1872
|
+
value: e.totalAmount,
|
|
1873
|
+
"data-testid": l(Ze)
|
|
1874
|
+
}, null, 8, ["value", "data-testid"])
|
|
1875
|
+
]),
|
|
1876
|
+
_: 1
|
|
1877
|
+
})
|
|
1878
|
+
])) : y("", !0);
|
|
1879
|
+
}
|
|
1880
|
+
}), fn = {
|
|
1881
|
+
key: 0,
|
|
1882
|
+
colspan: "4",
|
|
1883
|
+
class: "p-0"
|
|
1884
|
+
}, gn = /* @__PURE__ */ S({
|
|
1885
|
+
__name: "InvoiceTaxes",
|
|
1886
|
+
props: {
|
|
1887
|
+
taxCategories: {}
|
|
1888
|
+
},
|
|
1889
|
+
setup(e) {
|
|
1890
|
+
const n = H();
|
|
1891
|
+
return (u, c) => (t(), h(J, { class: "table-fixed" }, {
|
|
1892
|
+
default: i(() => [
|
|
1893
|
+
_("tr", null, [
|
|
1894
|
+
a(w, { left: "" }, {
|
|
1895
|
+
default: i(() => [
|
|
1896
|
+
d(r(l(n).$t({
|
|
1897
|
+
id: "invoice.table_header.tax type",
|
|
1898
|
+
defaultMessage: "Tax type",
|
|
1899
|
+
description: "Table header for the column containing the tax type"
|
|
1900
|
+
})), 1)
|
|
1901
|
+
]),
|
|
1902
|
+
_: 1
|
|
1903
|
+
}),
|
|
1904
|
+
a(w, { right: "" }, {
|
|
1905
|
+
default: i(() => [
|
|
1906
|
+
d(r(l(n).$t({
|
|
1907
|
+
id: "invoice.table_header.base amount",
|
|
1908
|
+
defaultMessage: "Base amount",
|
|
1909
|
+
description: "Table header for the column containing the base amount"
|
|
1910
|
+
})), 1)
|
|
1911
|
+
]),
|
|
1912
|
+
_: 1
|
|
1913
|
+
}),
|
|
1914
|
+
a(w, { right: "" }, {
|
|
1915
|
+
default: i(() => [
|
|
1916
|
+
d(r(l(n).$t({
|
|
1917
|
+
id: "invoice.table_header.tax_percentage",
|
|
1918
|
+
defaultMessage: "Percentage",
|
|
1919
|
+
description: "Table header for the column containing the tax percentage"
|
|
1920
|
+
})), 1)
|
|
1921
|
+
]),
|
|
1922
|
+
_: 1
|
|
1923
|
+
}),
|
|
1924
|
+
a(w, { right: "" }, {
|
|
1925
|
+
default: i(() => [
|
|
1926
|
+
d(r(l(n).$t({
|
|
1927
|
+
id: "invoice.table_header.tax amount",
|
|
1928
|
+
defaultMessage: "Tax amount",
|
|
1929
|
+
description: "Table header for the column containing the tax amount"
|
|
1930
|
+
})), 1)
|
|
1931
|
+
]),
|
|
1932
|
+
_: 1
|
|
1933
|
+
})
|
|
1934
|
+
]),
|
|
1935
|
+
(t(!0), o(p, null, V(e.taxCategories, (m, s) => (t(), o("tr", { key: s }, [
|
|
1936
|
+
m.rates ? (t(), o("td", fn, [
|
|
1937
|
+
a(J, { class: "table-fixed" }, {
|
|
1938
|
+
default: i(() => [
|
|
1939
|
+
(t(!0), o(p, null, V(m.rates, (g, v) => (t(), o("tr", { key: v }, [
|
|
1940
|
+
a(k, null, {
|
|
1941
|
+
default: i(() => [
|
|
1942
|
+
d(r(g.name) + " (" + r(m.category) + ") ", 1)
|
|
1943
|
+
]),
|
|
1944
|
+
_: 2
|
|
1945
|
+
}, 1024),
|
|
1946
|
+
a(k, { number: "" }, {
|
|
1947
|
+
default: i(() => [
|
|
1948
|
+
a($, {
|
|
1949
|
+
value: m.base_amount
|
|
1950
|
+
}, null, 8, ["value"])
|
|
1951
|
+
]),
|
|
1952
|
+
_: 2
|
|
1953
|
+
}, 1024),
|
|
1954
|
+
a(k, { number: "" }, {
|
|
1955
|
+
default: i(() => [
|
|
1956
|
+
d(r(g.percentage) + "%", 1)
|
|
1957
|
+
]),
|
|
1958
|
+
_: 2
|
|
1959
|
+
}, 1024),
|
|
1960
|
+
a(k, { number: "" }, {
|
|
1961
|
+
default: i(() => [
|
|
1962
|
+
a($, {
|
|
1963
|
+
value: g.tax_amount
|
|
1964
|
+
}, null, 8, ["value"])
|
|
1965
|
+
]),
|
|
1966
|
+
_: 2
|
|
1967
|
+
}, 1024)
|
|
1968
|
+
]))), 128))
|
|
1969
|
+
]),
|
|
1970
|
+
_: 2
|
|
1971
|
+
}, 1024)
|
|
1972
|
+
])) : (t(), o(p, { key: 1 }, [
|
|
1973
|
+
a(k, null, {
|
|
1974
|
+
default: i(() => [
|
|
1975
|
+
d(r(m.name) + " (" + r(m.category) + ") ", 1)
|
|
1976
|
+
]),
|
|
1977
|
+
_: 2
|
|
1978
|
+
}, 1024),
|
|
1979
|
+
a(k, { number: "" }, {
|
|
1980
|
+
default: i(() => [
|
|
1981
|
+
a($, {
|
|
1982
|
+
value: m.base_amount
|
|
1983
|
+
}, null, 8, ["value"])
|
|
1984
|
+
]),
|
|
1985
|
+
_: 2
|
|
1986
|
+
}, 1024),
|
|
1987
|
+
a(k, { number: "" }, {
|
|
1988
|
+
default: i(() => [
|
|
1989
|
+
d(r(m.percentage) + "%", 1)
|
|
1990
|
+
]),
|
|
1991
|
+
_: 2
|
|
1992
|
+
}, 1024),
|
|
1993
|
+
a(k, { number: "" }, {
|
|
1994
|
+
default: i(() => [
|
|
1995
|
+
a($, {
|
|
1996
|
+
value: m.tax_amount
|
|
1997
|
+
}, null, 8, ["value"])
|
|
1998
|
+
]),
|
|
1999
|
+
_: 2
|
|
2000
|
+
}, 1024)
|
|
2001
|
+
], 64))
|
|
2002
|
+
]))), 128))
|
|
2003
|
+
]),
|
|
2004
|
+
_: 1
|
|
2005
|
+
}));
|
|
2006
|
+
}
|
|
2007
|
+
}), bn = { class: "flex items-start justify-between" }, yn = {
|
|
2008
|
+
key: 0,
|
|
2009
|
+
class: "max-h-9"
|
|
2010
|
+
}, pn = { class: "flex flex-col gap-2" }, xn = { key: 0 }, hn = { key: 3 }, _n = {
|
|
2011
|
+
colspan: "2",
|
|
2012
|
+
class: "p-0"
|
|
2013
|
+
}, kn = ["tabindex"], Tn = { key: 1 }, On = {
|
|
2014
|
+
colspan: "2",
|
|
2015
|
+
class: "p-0"
|
|
2016
|
+
}, In = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, $n = ["tabindex", "onClick", "onKeyup"], Mn = { key: 0 }, wn = {
|
|
2017
|
+
colspan: "2",
|
|
2018
|
+
class: "p-0"
|
|
2019
|
+
}, En = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, Cn = { key: 1 }, Nn = {
|
|
2020
|
+
colspan: "2",
|
|
2021
|
+
class: "p-0"
|
|
2022
|
+
}, Bn = {
|
|
2023
|
+
key: 0,
|
|
2024
|
+
class: "break-inside-avoid border-t font-bold"
|
|
2025
|
+
}, Kn = /* @__PURE__ */ S({
|
|
2026
|
+
__name: "InvoiceSummary",
|
|
2027
|
+
props: {
|
|
2028
|
+
invoice: {},
|
|
2029
|
+
isExpandable: { type: Boolean, default: !1 },
|
|
2030
|
+
forceExpanded: { type: Boolean, default: !1 },
|
|
2031
|
+
heading: { default: "details" },
|
|
2032
|
+
isInvoiceLineCreatable: { type: Boolean, default: !1 },
|
|
2033
|
+
isNoteCreatable: { type: Boolean, default: !1 },
|
|
2034
|
+
showRenderedServicesHeader: { type: Boolean, default: !0 },
|
|
2035
|
+
isCustomerFacing: { type: Boolean },
|
|
2036
|
+
showTotals: { type: Boolean, default: !0 },
|
|
2037
|
+
hideOneOffWalletBalance: { type: Boolean, default: !1 },
|
|
2038
|
+
showWalletBalance: { type: Boolean, default: !0 }
|
|
2039
|
+
},
|
|
2040
|
+
emits: ["add-invoice-line", "add-note"],
|
|
2041
|
+
setup(e, { emit: n }) {
|
|
2042
|
+
const u = H(), { formatMessage: c } = u, m = n, s = e, [g, v] = xe(), [b, f] = xe(), [x, O] = cn(), I = (...T) => {
|
|
2043
|
+
s.isExpandable && v(...T);
|
|
2044
|
+
}, P = (T) => {
|
|
2045
|
+
s.isExpandable && f(T);
|
|
2046
|
+
}, U = () => {
|
|
2047
|
+
!s.invoice.tax_categories || !s.isExpandable || O();
|
|
2048
|
+
}, L = (T, D) => +`${T}${D}`, E = (T) => u.$t(
|
|
2049
|
+
{
|
|
2050
|
+
id: "invoice.service_period_heading",
|
|
2051
|
+
defaultMessage: "Service period - {start_at} - {end_at}",
|
|
2052
|
+
description: "Heading for rendered services where {start_at} is replaced for the start date and {end_at} for the end date in invoice summary"
|
|
2053
|
+
},
|
|
2054
|
+
{
|
|
2055
|
+
start_at: u.formatDate({
|
|
2056
|
+
date: T.start_at,
|
|
2057
|
+
format: "date",
|
|
2058
|
+
timezone: pe(s.invoice.customer.timezone),
|
|
2059
|
+
offsetType: "offsetted"
|
|
2060
|
+
}),
|
|
2061
|
+
end_at: u.formatDate({
|
|
2062
|
+
date: T.end_at,
|
|
2063
|
+
format: "date",
|
|
2064
|
+
timezone: pe(s.invoice.customer.timezone),
|
|
2065
|
+
offsetType: "offsetted"
|
|
2066
|
+
})
|
|
2067
|
+
}
|
|
2068
|
+
), W = (T) => {
|
|
2069
|
+
switch (T) {
|
|
2070
|
+
case "PRICING":
|
|
2071
|
+
case "REVENUE":
|
|
2072
|
+
return u.$t({
|
|
2073
|
+
id: "invoice.table_heading.products",
|
|
2074
|
+
defaultMessage: "Products",
|
|
2075
|
+
description: "Table heading for the column containing the products of the invoice"
|
|
2076
|
+
});
|
|
2077
|
+
case "COMMITMENT":
|
|
2078
|
+
return u.$t({
|
|
2079
|
+
id: "invoice.table_heading.commitments",
|
|
2080
|
+
defaultMessage: "Commitments",
|
|
2081
|
+
description: "Table heading for the column containing the commitments of the invoice"
|
|
2082
|
+
});
|
|
2083
|
+
case "DISCOUNT":
|
|
2084
|
+
return u.$t({
|
|
2085
|
+
id: "invoice.table_heading.discounts",
|
|
2086
|
+
defaultMessage: "Discounts",
|
|
2087
|
+
description: "Table heading for the column containing the discounts of the invoice"
|
|
2088
|
+
});
|
|
2089
|
+
case "MARKUP":
|
|
2090
|
+
return u.$t({
|
|
2091
|
+
id: "invoice.table_heading.markups",
|
|
2092
|
+
defaultMessage: "Markups",
|
|
2093
|
+
description: "Table heading for the column containing the markups of the invoice"
|
|
2094
|
+
});
|
|
2095
|
+
case "ONE_OFF":
|
|
2096
|
+
return u.$t({
|
|
2097
|
+
id: "invoice.table_heading.one_offs",
|
|
2098
|
+
defaultMessage: "One-off's",
|
|
2099
|
+
description: "Table heading for the column containing the one-offs of the invoice"
|
|
2100
|
+
});
|
|
2101
|
+
}
|
|
2102
|
+
}, C = (T) => {
|
|
2103
|
+
var D, R;
|
|
2104
|
+
return (D = T.products) != null && D.length ? [(R = T.pricing) == null ? void 0 : R.name, be(T.products.map((F) => F.name))].filter(Boolean).join(" - ") : T.description ?? "";
|
|
2105
|
+
}, z = (T) => s.showWalletBalance && !(s.hideOneOffWalletBalance && T.type === "ONE_OFF") && (T.lines ?? []).some((D) => {
|
|
2106
|
+
var R, F;
|
|
2107
|
+
return !!((F = (R = D.details) == null ? void 0 : R.wallet_balances) != null && F.length);
|
|
2108
|
+
}), X = (T) => T.groups.reduce(
|
|
2109
|
+
(D, R) => R.type in D ? {
|
|
2110
|
+
...D,
|
|
2111
|
+
[R.type]: [...D[R.type], R]
|
|
2112
|
+
} : { ...D, [R.type]: [R] },
|
|
2113
|
+
{}
|
|
2114
|
+
), q = B(() => {
|
|
2115
|
+
const T = [];
|
|
2116
|
+
return ["ONE_OFF", "STANDARD", "ONE_OFF_CREDIT"].includes(s.invoice.type) && ["DRAFT", "OPEN"].includes(s.invoice.status) && s.isInvoiceLineCreatable && T.push({
|
|
2117
|
+
label: c({
|
|
2118
|
+
defaultMessage: "Invoice line",
|
|
2119
|
+
id: "JlhdD2",
|
|
2120
|
+
description: "Label for adding an invoice line"
|
|
2121
|
+
}),
|
|
2122
|
+
onClick: () => m("add-invoice-line")
|
|
2123
|
+
}), s.isNoteCreatable && T.push({
|
|
2124
|
+
label: c({
|
|
2125
|
+
defaultMessage: "Note",
|
|
2126
|
+
id: "jB8+k/",
|
|
2127
|
+
description: "Label for adding a note to an invoice"
|
|
2128
|
+
}),
|
|
2129
|
+
onClick: () => m("add-note")
|
|
2130
|
+
}), T;
|
|
2131
|
+
}), Z = B(() => s.invoice.show_tax_per_line_item !== !1), oe = B(() => {
|
|
2132
|
+
if (s.heading === "summary")
|
|
2133
|
+
return u.$t({
|
|
2134
|
+
id: "invoice.summaryTitle",
|
|
2135
|
+
defaultMessage: "Invoice summary",
|
|
2136
|
+
description: "Title for the compact, always-shown invoice summary section"
|
|
2137
|
+
});
|
|
2138
|
+
switch (s.invoice.type) {
|
|
2139
|
+
case "CREDIT":
|
|
2140
|
+
return u.$t({
|
|
2141
|
+
id: "invoice.creditDetailsTitle",
|
|
2142
|
+
defaultMessage: "Credit details",
|
|
2143
|
+
description: "Title for the invoice summary of a credit-note invoice"
|
|
2144
|
+
});
|
|
2145
|
+
case "ONE_OFF":
|
|
2146
|
+
return u.$t({
|
|
2147
|
+
id: "invoice.oneOffDetailsTitle",
|
|
2148
|
+
defaultMessage: "One-off details",
|
|
2149
|
+
description: "Title for the invoice summary of a one-off invoice"
|
|
2150
|
+
});
|
|
2151
|
+
case "ONE_OFF_CREDIT":
|
|
2152
|
+
return u.$t({
|
|
2153
|
+
id: "invoice.oneOffCreditDetailsTitle",
|
|
2154
|
+
defaultMessage: "One-off credit details",
|
|
2155
|
+
description: "Title for the invoice summary of a one-off credit-note invoice"
|
|
2156
|
+
});
|
|
2157
|
+
default:
|
|
2158
|
+
return u.$t({
|
|
2159
|
+
id: "invoice.title",
|
|
2160
|
+
defaultMessage: "Details",
|
|
2161
|
+
description: "Title for the invoice summary"
|
|
2162
|
+
});
|
|
2163
|
+
}
|
|
2164
|
+
});
|
|
2165
|
+
return (T, D) => {
|
|
2166
|
+
var R;
|
|
2167
|
+
return t(), o("div", null, [
|
|
2168
|
+
_("div", bn, [
|
|
2169
|
+
T.$slots.logo ? (t(), o("div", yn, [
|
|
2170
|
+
M(T.$slots, "logo")
|
|
2171
|
+
])) : (t(), h(Ge, {
|
|
2172
|
+
key: 1,
|
|
2173
|
+
title: oe.value,
|
|
2174
|
+
variant: "neutral",
|
|
2175
|
+
icon: "draft",
|
|
2176
|
+
"icon-class": "print:hidden",
|
|
2177
|
+
"title-class": "print:text-sm"
|
|
2178
|
+
}, null, 8, ["title"])),
|
|
2179
|
+
T.$slots.intro ? M(T.$slots, "intro", {}, void 0, void 0, 2) : y("", !0),
|
|
2180
|
+
_("div", pn, [
|
|
2181
|
+
(R = q.value) != null && R.length ? (t(), h(Xe, {
|
|
2182
|
+
key: 0,
|
|
2183
|
+
items: q.value,
|
|
2184
|
+
width: "auto"
|
|
2185
|
+
}, {
|
|
2186
|
+
trigger: i(() => [
|
|
2187
|
+
a(Le, {
|
|
2188
|
+
"icon-prefix": "add",
|
|
2189
|
+
size: "sm",
|
|
2190
|
+
intent: "secondary"
|
|
2191
|
+
}, {
|
|
2192
|
+
default: i(() => [
|
|
2193
|
+
d(r(l(c)({
|
|
2194
|
+
defaultMessage: "Add",
|
|
2195
|
+
id: "YnK/yF",
|
|
2196
|
+
description: "Label for adding an item to an invoice"
|
|
2197
|
+
})), 1)
|
|
2198
|
+
]),
|
|
2199
|
+
_: 1
|
|
2200
|
+
})
|
|
2201
|
+
]),
|
|
2202
|
+
_: 1
|
|
2203
|
+
}, 8, ["items"])) : y("", !0),
|
|
2204
|
+
M(T.$slots, "child-customers-selector")
|
|
2205
|
+
])
|
|
2206
|
+
]),
|
|
2207
|
+
T.$slots.total ? M(T.$slots, "total", {}, void 0, void 0, 0) : y("", !0),
|
|
2208
|
+
M(T.$slots, "notes"),
|
|
2209
|
+
(t(!0), o(p, null, V(e.invoice.periods, (F, Y) => (t(), o(p, { key: Y }, [
|
|
2210
|
+
e.showRenderedServicesHeader ? (t(), h(He, {
|
|
2211
|
+
key: 0,
|
|
2212
|
+
class: "mt-6"
|
|
2213
|
+
}, {
|
|
2214
|
+
default: i(() => [
|
|
2215
|
+
a(Pe, {
|
|
2216
|
+
tag: "h2",
|
|
2217
|
+
variant: "caps-heading"
|
|
2218
|
+
}, {
|
|
2219
|
+
default: i(() => [
|
|
2220
|
+
d(r(E(F)), 1)
|
|
2221
|
+
]),
|
|
2222
|
+
_: 2
|
|
2223
|
+
}, 1024)
|
|
2224
|
+
]),
|
|
2225
|
+
_: 2
|
|
2226
|
+
}, 1024)) : y("", !0),
|
|
2227
|
+
F.groups ? (t(), h(J, {
|
|
2228
|
+
key: 1,
|
|
2229
|
+
class: N(["text-sm", { "mt-3": e.showRenderedServicesHeader }]),
|
|
2230
|
+
"data-testid": l(Ke)
|
|
2231
|
+
}, {
|
|
2232
|
+
default: i(() => [
|
|
2233
|
+
(t(!0), o(p, null, V(Object.entries(
|
|
2234
|
+
X(F)
|
|
2235
|
+
), ([A, ee], K) => (t(), o(p, { key: A }, [
|
|
2236
|
+
K > 0 ? (t(), o("tr", xn, [...D[0] || (D[0] = [
|
|
2237
|
+
_("td", null, [
|
|
2238
|
+
_("div", { class: "h-4" })
|
|
2239
|
+
], -1)
|
|
2240
|
+
])])) : y("", !0),
|
|
2241
|
+
_("tr", null, [
|
|
2242
|
+
a(w, {
|
|
2243
|
+
left: "",
|
|
2244
|
+
class: "text-secondary"
|
|
2245
|
+
}, {
|
|
2246
|
+
default: i(() => [
|
|
2247
|
+
d(r(W(A)), 1)
|
|
2248
|
+
]),
|
|
2249
|
+
_: 2
|
|
2250
|
+
}, 1024),
|
|
2251
|
+
a(w, {
|
|
2252
|
+
right: "",
|
|
2253
|
+
class: "w-28 text-secondary"
|
|
2254
|
+
}, {
|
|
2255
|
+
default: i(() => [
|
|
2256
|
+
d(r(l(u).$t({
|
|
2257
|
+
id: "invoice.amount_table_heading",
|
|
2258
|
+
defaultMessage: "Amount",
|
|
2259
|
+
description: "Table heading for the amount column in the invoice table"
|
|
2260
|
+
})), 1)
|
|
2261
|
+
]),
|
|
2262
|
+
_: 1
|
|
2263
|
+
})
|
|
2264
|
+
]),
|
|
2265
|
+
(t(!0), o(p, null, V(ee, (te, Be) => (t(), o(p, { key: Be }, [
|
|
2266
|
+
A === "REVENUE" || A === "PRICING" || A === "ONE_OFF" ? (t(), h(un, {
|
|
2267
|
+
key: 0,
|
|
2268
|
+
group: te,
|
|
2269
|
+
"expanded-items": l(g),
|
|
2270
|
+
"handle-toggle-items": I,
|
|
2271
|
+
"is-expandable": e.isExpandable,
|
|
2272
|
+
"force-expanded": e.forceExpanded,
|
|
2273
|
+
"format-index": L,
|
|
2274
|
+
"invoice-period-order": F.period_order,
|
|
2275
|
+
"group-order": te.group_order,
|
|
2276
|
+
"amount-type": e.invoice.pricing_amount_type,
|
|
2277
|
+
"processing-only-customers": e.invoice.processing_only_customers,
|
|
2278
|
+
"display-invoice-sub-lines-per-processing-only-customer": e.invoice.display_invoice_sub_lines_per_processing_only_customer,
|
|
2279
|
+
"show-tax-per-line-item": Z.value,
|
|
2280
|
+
"forwarded-from-customers": e.invoice.forwarded_from_customers,
|
|
2281
|
+
"show-original-customer-invoice-line": e.invoice.show_original_customer_invoice_line
|
|
2282
|
+
}, {
|
|
2283
|
+
"invoice-line-prefix": i((ne) => [
|
|
2284
|
+
M(T.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, ne))
|
|
2285
|
+
]),
|
|
2286
|
+
"one-off-line-context-menu": i((ne) => [
|
|
2287
|
+
M(T.$slots, "one-off-line-context-menu", Q({ ref_for: !0 }, ne, {
|
|
2288
|
+
periodOrder: F.period_order
|
|
2289
|
+
}))
|
|
2290
|
+
]),
|
|
2291
|
+
_: 2
|
|
2292
|
+
}, 1032, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer", "show-tax-per-line-item", "forwarded-from-customers", "show-original-customer-invoice-line"])) : A === "DISCOUNT" || A === "MARKUP" ? (t(), h($t, {
|
|
2293
|
+
key: 1,
|
|
2294
|
+
group: te,
|
|
2295
|
+
"expanded-items": l(g),
|
|
2296
|
+
"handle-toggle-items": I,
|
|
2297
|
+
"is-expandable": e.isExpandable,
|
|
2298
|
+
"force-expanded": e.forceExpanded,
|
|
2299
|
+
"format-index": L,
|
|
2300
|
+
"invoice-period-order": F.period_order,
|
|
2301
|
+
"group-order": te.group_order,
|
|
2302
|
+
"amount-type": e.invoice.pricing_amount_type,
|
|
2303
|
+
heading: A === "DISCOUNT" ? l(u).$t({
|
|
2304
|
+
id: "invoice.discounts_table_heading",
|
|
2305
|
+
defaultMessage: "Discounts",
|
|
2306
|
+
description: "Heading for discounts in the invoice table"
|
|
2307
|
+
}) : l(u).$t({
|
|
2308
|
+
id: "invoice.markups_table_heading",
|
|
2309
|
+
defaultMessage: "Markups",
|
|
2310
|
+
description: "Heading for markups in the invoice table"
|
|
2311
|
+
})
|
|
2312
|
+
}, {
|
|
2313
|
+
"invoice-line-prefix": i((ne) => [
|
|
2314
|
+
M(T.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, ne))
|
|
2315
|
+
]),
|
|
2316
|
+
_: 3
|
|
2317
|
+
}, 8, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type", "heading"])) : A === "COMMITMENT" ? (t(), h(_t, {
|
|
2318
|
+
key: 2,
|
|
2319
|
+
group: te,
|
|
2320
|
+
"expanded-items": l(g),
|
|
2321
|
+
"handle-toggle-items": I,
|
|
2322
|
+
"is-expandable": e.isExpandable,
|
|
2323
|
+
"force-expanded": e.forceExpanded,
|
|
2324
|
+
"format-index": L,
|
|
2325
|
+
"invoice-period-order": F.period_order,
|
|
2326
|
+
"group-order": te.group_order,
|
|
2327
|
+
"amount-type": e.invoice.pricing_amount_type
|
|
2328
|
+
}, {
|
|
2329
|
+
"invoice-line-prefix": i((ne) => [
|
|
2330
|
+
M(T.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, ne))
|
|
2331
|
+
]),
|
|
2332
|
+
_: 3
|
|
2333
|
+
}, 8, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type"])) : y("", !0),
|
|
2334
|
+
z(te) ? (t(), o("tr", hn, [
|
|
2335
|
+
_("td", _n, [
|
|
2336
|
+
a(_e, {
|
|
2337
|
+
lines: te.lines,
|
|
2338
|
+
"credit-types": e.invoice.credit_types
|
|
2339
|
+
}, null, 8, ["lines", "credit-types"])
|
|
2340
|
+
])
|
|
2341
|
+
])) : y("", !0)
|
|
2342
|
+
], 64))), 128))
|
|
2343
|
+
], 64))), 128))
|
|
2344
|
+
]),
|
|
2345
|
+
_: 2
|
|
2346
|
+
}, 1032, ["class", "data-testid"])) : y("", !0)
|
|
2347
|
+
], 64))), 128)),
|
|
2348
|
+
e.invoice.tax_summary && (e.showTotals || (e.forceExpanded || l(x)) && e.invoice.tax_categories) ? (t(), h(J, {
|
|
2349
|
+
key: 1,
|
|
2350
|
+
class: "mt-6 text-sm print:ml-auto print:w-2/3"
|
|
2351
|
+
}, {
|
|
2352
|
+
default: i(() => [
|
|
2353
|
+
e.showTotals ? (t(), o(p, { key: 0 }, [
|
|
2354
|
+
_("tr", null, [
|
|
2355
|
+
a(w, {
|
|
2356
|
+
left: "",
|
|
2357
|
+
class: "text-secondary"
|
|
2358
|
+
}, {
|
|
2359
|
+
default: i(() => [
|
|
2360
|
+
d(r(l(u).$t({
|
|
2361
|
+
id: "invoice.totals_table_heading",
|
|
2362
|
+
defaultMessage: "Totals",
|
|
2363
|
+
description: "Table heading for the totals column in the invoice table"
|
|
2364
|
+
})), 1)
|
|
2365
|
+
]),
|
|
2366
|
+
_: 1
|
|
2367
|
+
}),
|
|
2368
|
+
a(w, {
|
|
2369
|
+
right: "",
|
|
2370
|
+
class: "w-28 text-secondary"
|
|
2371
|
+
}, {
|
|
2372
|
+
default: i(() => [
|
|
2373
|
+
d(r(l(u).$t({
|
|
2374
|
+
id: "invoice.amount_table_heading",
|
|
2375
|
+
defaultMessage: "Amount",
|
|
2376
|
+
description: "Table heading for the amount column in the invoice table"
|
|
2377
|
+
})), 1)
|
|
2378
|
+
]),
|
|
2379
|
+
_: 1
|
|
2380
|
+
})
|
|
2381
|
+
]),
|
|
2382
|
+
e.invoice.pricing_amount_type === "INCLUDING_TAX" ? (t(), h(Oe, {
|
|
2383
|
+
key: 0,
|
|
2384
|
+
"total-amount": e.invoice.tax_summary.total_amount,
|
|
2385
|
+
"is-customer-facing": e.isCustomerFacing
|
|
2386
|
+
}, null, 8, ["total-amount", "is-customer-facing"])) : (t(), h(Te, {
|
|
2387
|
+
key: 1,
|
|
2388
|
+
"base-amount": e.invoice.tax_summary.base_amount
|
|
2389
|
+
}, null, 8, ["base-amount"])),
|
|
2390
|
+
e.invoice.tax_summary.tax_amount ? (t(), o("tr", {
|
|
2391
|
+
key: 2,
|
|
2392
|
+
class: N([{ "cursor-pointer": e.invoice.tax_categories && e.isExpandable }, "break-inside-avoid border-t"]),
|
|
2393
|
+
tabindex: e.isExpandable ? 0 : void 0,
|
|
2394
|
+
onClick: U,
|
|
2395
|
+
onKeyup: [
|
|
2396
|
+
j(U, ["enter"]),
|
|
2397
|
+
j(U, ["space"])
|
|
2398
|
+
]
|
|
2399
|
+
}, [
|
|
2400
|
+
a(k, null, {
|
|
2401
|
+
default: i(() => [
|
|
2402
|
+
e.isExpandable && e.invoice.tax_categories && e.invoice.tax_categories.length ? (t(), h(G, {
|
|
2403
|
+
key: 0,
|
|
2404
|
+
icon: "keyboard_arrow_down",
|
|
2405
|
+
size: "md",
|
|
2406
|
+
class: N(["absolute -translate-x-7 text-slate-400", { "-rotate-90": !l(x) }])
|
|
2407
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
2408
|
+
a(me, {
|
|
2409
|
+
label: l(u).$t({
|
|
2410
|
+
id: "invoice.taxes_table_heading",
|
|
2411
|
+
defaultMessage: "Taxes",
|
|
2412
|
+
description: "Table heading for the taxes column in the invoice table"
|
|
2413
|
+
}),
|
|
2414
|
+
count: e.isExpandable && e.invoice.tax_categories ? e.invoice.tax_categories.length : void 0
|
|
2415
|
+
}, null, 8, ["label", "count"])
|
|
2416
|
+
]),
|
|
2417
|
+
_: 1
|
|
2418
|
+
}),
|
|
2419
|
+
a(k, { number: "" }, {
|
|
2420
|
+
default: i(() => [
|
|
2421
|
+
a($, {
|
|
2422
|
+
value: e.invoice.tax_summary.tax_amount,
|
|
2423
|
+
"data-testid": l(Je)
|
|
2424
|
+
}, null, 8, ["value", "data-testid"])
|
|
2425
|
+
]),
|
|
2426
|
+
_: 1
|
|
2427
|
+
})
|
|
2428
|
+
], 42, kn)) : y("", !0)
|
|
2429
|
+
], 64)) : y("", !0),
|
|
2430
|
+
(e.forceExpanded || l(x)) && e.invoice.tax_categories ? (t(), o("tr", Tn, [
|
|
2431
|
+
_("td", On, [
|
|
2432
|
+
_("div", In, [
|
|
2433
|
+
a(gn, {
|
|
2434
|
+
"tax-categories": e.invoice.tax_categories
|
|
2435
|
+
}, null, 8, ["tax-categories"])
|
|
2436
|
+
])
|
|
2437
|
+
])
|
|
2438
|
+
])) : y("", !0),
|
|
2439
|
+
e.showTotals ? (t(), o(p, { key: 2 }, [
|
|
2440
|
+
e.invoice.pricing_amount_type === "INCLUDING_TAX" ? (t(), h(Te, {
|
|
2441
|
+
key: 0,
|
|
2442
|
+
"base-amount": e.invoice.tax_summary.base_amount
|
|
2443
|
+
}, null, 8, ["base-amount"])) : (t(), h(Oe, {
|
|
2444
|
+
key: 1,
|
|
2445
|
+
"total-amount": e.invoice.tax_summary.total_amount
|
|
2446
|
+
}, null, 8, ["total-amount"]))
|
|
2447
|
+
], 64)) : y("", !0)
|
|
2448
|
+
]),
|
|
2449
|
+
_: 1
|
|
2450
|
+
})) : y("", !0),
|
|
2451
|
+
l(Ue)(e.invoice.closed_periods) ? y("", !0) : (t(), h(J, {
|
|
2452
|
+
key: 2,
|
|
2453
|
+
class: "mt-6 text-sm"
|
|
2454
|
+
}, {
|
|
2455
|
+
default: i(() => [
|
|
2456
|
+
_("tr", null, [
|
|
2457
|
+
a(w, {
|
|
2458
|
+
left: "",
|
|
2459
|
+
class: "text-secondary"
|
|
2460
|
+
}, {
|
|
2461
|
+
default: i(() => [
|
|
2462
|
+
d(r(l(u).$t({
|
|
2463
|
+
id: "invoice.already_deducted_table_heading",
|
|
2464
|
+
defaultMessage: "Already deducted",
|
|
2465
|
+
description: "Table heading for the already deducted rows in the invoice table"
|
|
2466
|
+
})), 1)
|
|
2467
|
+
]),
|
|
2468
|
+
_: 1
|
|
2469
|
+
})
|
|
2470
|
+
]),
|
|
2471
|
+
(t(!0), o(p, null, V(e.invoice.closed_periods, (F, Y) => (t(), o(p, { key: Y }, [
|
|
2472
|
+
(t(!0), o(p, null, V(F.groups, (A, ee) => (t(), o(p, { key: ee }, [
|
|
2473
|
+
_("tr", {
|
|
2474
|
+
class: N(["break-inside-avoid border-t", { "pt-6": Y === 0, "cursor-pointer": e.isExpandable }]),
|
|
2475
|
+
tabindex: e.isExpandable ? 0 : void 0,
|
|
2476
|
+
onClick: (K) => P(L(Y, ee)),
|
|
2477
|
+
onKeyup: [
|
|
2478
|
+
j((K) => P(L(Y, ee)), ["enter"]),
|
|
2479
|
+
j((K) => P(L(Y, ee)), ["space"])
|
|
2480
|
+
]
|
|
2481
|
+
}, [
|
|
2482
|
+
a(k, { class: "p-0" }, {
|
|
2483
|
+
default: i(() => {
|
|
2484
|
+
var K;
|
|
2485
|
+
return [
|
|
2486
|
+
e.isExpandable ? (t(), h(G, {
|
|
2487
|
+
key: 0,
|
|
2488
|
+
icon: "keyboard_arrow_down",
|
|
2489
|
+
size: "md",
|
|
2490
|
+
class: N(["absolute -translate-x-7 text-slate-400", {
|
|
2491
|
+
"-rotate-90": !l(b).includes(
|
|
2492
|
+
L(Y, ee)
|
|
2493
|
+
)
|
|
2494
|
+
}])
|
|
2495
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
2496
|
+
a(me, {
|
|
2497
|
+
label: C(A),
|
|
2498
|
+
count: e.isExpandable ? ((K = A.lines) == null ? void 0 : K.length) ?? 0 : void 0
|
|
2499
|
+
}, null, 8, ["label", "count"])
|
|
2500
|
+
];
|
|
2501
|
+
}),
|
|
2502
|
+
_: 2
|
|
2503
|
+
}, 1024),
|
|
2504
|
+
a(k, {
|
|
2505
|
+
number: "",
|
|
2506
|
+
class: "w-28"
|
|
2507
|
+
}, {
|
|
2508
|
+
default: i(() => [
|
|
2509
|
+
a($, {
|
|
2510
|
+
value: A.amount_excluding_tax,
|
|
2511
|
+
"data-testid": l(tt),
|
|
2512
|
+
"data-type": l(it)
|
|
2513
|
+
}, null, 8, ["value", "data-testid", "data-type"])
|
|
2514
|
+
]),
|
|
2515
|
+
_: 2
|
|
2516
|
+
}, 1024)
|
|
2517
|
+
], 42, $n),
|
|
2518
|
+
e.forceExpanded || l(b).includes(L(Y, ee)) ? (t(), o("tr", Mn, [
|
|
2519
|
+
_("td", wn, [
|
|
2520
|
+
_("div", En, [
|
|
2521
|
+
a(Ne, {
|
|
2522
|
+
"start-date": A.start_at,
|
|
2523
|
+
"end-date": A.end_at,
|
|
2524
|
+
total: A.amount_excluding_tax,
|
|
2525
|
+
group: A,
|
|
2526
|
+
"amount-type": e.invoice.pricing_amount_type,
|
|
2527
|
+
"show-tax-per-line-item": Z.value,
|
|
2528
|
+
"processing-only-customers": e.invoice.processing_only_customers,
|
|
2529
|
+
"display-invoice-sub-lines-per-processing-only-customer": e.invoice.display_invoice_sub_lines_per_processing_only_customer
|
|
2530
|
+
}, {
|
|
2531
|
+
"one-off-line-context-menu": i((K) => [
|
|
2532
|
+
M(T.$slots, "one-off-line-context-menu", Q({ ref_for: !0 }, K, {
|
|
2533
|
+
groupOrder: A.group_order,
|
|
2534
|
+
periodOrder: F.period_order
|
|
2535
|
+
}))
|
|
2536
|
+
]),
|
|
2537
|
+
_: 2
|
|
2538
|
+
}, 1032, ["start-date", "end-date", "total", "group", "amount-type", "show-tax-per-line-item", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
|
|
2539
|
+
])
|
|
2540
|
+
])
|
|
2541
|
+
])) : y("", !0),
|
|
2542
|
+
z(A) ? (t(), o("tr", Cn, [
|
|
2543
|
+
_("td", Nn, [
|
|
2544
|
+
a(_e, {
|
|
2545
|
+
lines: A.lines,
|
|
2546
|
+
"credit-types": e.invoice.credit_types
|
|
2547
|
+
}, null, 8, ["lines", "credit-types"])
|
|
2548
|
+
])
|
|
2549
|
+
])) : y("", !0)
|
|
2550
|
+
], 64))), 128))
|
|
2551
|
+
], 64))), 128)),
|
|
2552
|
+
e.invoice.open_invoice_amount && !e.invoice.paid && e.showTotals ? (t(), o("tr", Bn, [
|
|
2553
|
+
a(k, { class: "font-bold" }, {
|
|
2554
|
+
default: i(() => [
|
|
2555
|
+
d(r(l(u).$t({
|
|
2556
|
+
id: "invoice.amount_due_table_heading",
|
|
2557
|
+
defaultMessage: "Amount due",
|
|
2558
|
+
description: "Table heading for the amount due row in the invoice table"
|
|
2559
|
+
})), 1)
|
|
2560
|
+
]),
|
|
2561
|
+
_: 1
|
|
2562
|
+
}),
|
|
2563
|
+
a(k, { number: "" }, {
|
|
2564
|
+
default: i(() => [
|
|
2565
|
+
a($, {
|
|
2566
|
+
value: e.invoice.open_invoice_amount,
|
|
2567
|
+
"data-testid": l(nt)
|
|
2568
|
+
}, null, 8, ["value", "data-testid"])
|
|
2569
|
+
]),
|
|
2570
|
+
_: 1
|
|
2571
|
+
})
|
|
2572
|
+
])) : y("", !0)
|
|
2573
|
+
]),
|
|
2574
|
+
_: 3
|
|
2575
|
+
}))
|
|
2576
|
+
]);
|
|
2577
|
+
};
|
|
2578
|
+
}
|
|
2579
|
+
});
|
|
2580
|
+
export {
|
|
2581
|
+
J as I,
|
|
2582
|
+
Kn as _,
|
|
2583
|
+
w as a,
|
|
2584
|
+
k as b
|
|
2585
|
+
};
|