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