@zeniai/web-cockpit-ui 1.14.21-dev → 1.14.21-qa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-B2GVy8XM-ti0XjGQx.js → ACHDetailsPage-B2GVy8XM-BOIvjXTj.js} +1 -1
- package/dist/assets/{AIPerformancePage-DKwSS0Zl-c3B4-q-Y.js → AIPerformancePage-DKwSS0Zl-_uRJy90x.js} +1 -1
- package/dist/assets/{AccountInfoPage-CSIM7DNw-BklcBUFt.js → AccountInfoPage-CSIM7DNw-t91eZQ9I.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-CwbmE2Bb-CgQ5VXBk.js → AccountInfoPageContent-CwbmE2Bb-T-BFbt0o.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-SFgC439X-BdfeA6l0.js → AccountLockedInfoModal-SFgC439X-CMjAhOqH.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DhlVNNlq-zaiIx1Be.js → AccountReconDetailsDrawerPage-DhlVNNlq-D2_UrFsx.js} +1 -1
- package/dist/assets/{AccountRow-Bhq6cvtX-CIGcG8Mb.js → AccountRow-Bhq6cvtX-YU5AexfS.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-Cx60IXNK-DyJ52Wxc.js → AccountsPromoCardStack-Cx60IXNK-DbnDsykr.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-D1cDpMRq-BEiWkJUF.js → AddAddressForCardDrawer-D1cDpMRq-W5tXjh3z.js} +1 -1
- package/dist/assets/{AddToWalletPage-DjD9kDfD-7on3PFY8.js → AddToWalletPage-DjD9kDfD-BVOukNrG.js} +1 -1
- package/dist/assets/{AgingReportsPage-C68tZbMZ-BZn0w9tu.js → AgingReportsPage-C68tZbMZ-ltB8OanA.js} +1 -1
- package/dist/assets/{AllUserItems-D4ZWfS3r-Dzjpd7KF.js → AllUserItems-D4ZWfS3r-BIKyz3xK.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-C9xdKi6n-CJy9_j_h.js → ApAgingDetailPage-C9xdKi6n-DQvox-Mj.js} +1 -1
- package/dist/assets/{AppBasePage-C77LebWx-j5O8MdDX.js → AppBasePage-C77LebWx-DD6i2F9A.js} +1 -1
- package/dist/assets/{AppDrawerContent-rleLuP6d-CWfhTnVv.js → AppDrawerContent-rleLuP6d-N207k0Kf.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-l6wNe5y0-CnwhageD.js → ApprovalRulesSettingsPage-l6wNe5y0-1aq4Vv65.js} +1 -1
- package/dist/assets/{ArAgingChart-BzPI5KpZ-DCA8w670.js → ArAgingChart-BzPI5KpZ-Dwcwv8mU.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-QPScba6I-BS5C1iok.js → ArAgingDetailPage-QPScba6I-_mrA9Dmx.js} +1 -1
- package/dist/assets/{AttachmentView-BWRZe11t-C3aomYUX.js → AttachmentView-BWRZe11t-geAB7dwF.js} +1 -1
- package/dist/assets/{BankAccountSection-D4xFLS8Y-DYVkxnj8.js → BankAccountSection-D4xFLS8Y-K9xaG_eB.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-xch7b7oM-KAL6I_7u.js → BankAccountWarningSection-xch7b7oM-ChEsNIJ1.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BAf6txkS-BUkZUmB1.js → BankConnectionsSettingsPage-BAf6txkS-vMvoxtKR.js} +1 -1
- package/dist/assets/{BillDetailPage-DNjo2hSl-HAMxBkoh.js → BillDetailPage-DNjo2hSl-BIFlrRZ4.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-CyzRcfmb-CWMkHGTv.js → BillPayApprovalRuleDetailPage-CyzRcfmb-uOofdgcM.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-XcSe-JLu-paWl1wgj.js → BillPayApprovalRulesPage-XcSe-JLu-CEbOBf4P.js} +1 -1
- package/dist/assets/{BillPayPromoPage-XAG7hXMH-TJCiv7fN.js → BillPayPromoPage-XAG7hXMH-BZL4sjAP.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-BBsdhwgY-BJ3SN0Z9.js → BillPaySetUpPage-BBsdhwgY-C2VZLsTX.js} +1 -1
- package/dist/assets/{BillingSettingsPage-DJNjNtIF-BPnIxQJs.js → BillingSettingsPage-DJNjNtIF-uDhkigAj.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-C0-0H-LH-B1c9iIV6.js → BillsBulkReviewDrawerPage-C0-0H-LH-C4Ch0eQg.js} +1 -1
- package/dist/assets/{BoxItem-DfMMtLK3-CwOmwsz7.js → BoxItem-DfMMtLK3-DwhF3MEP.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Bdf48vIt-gFo5pnI5.js → BusinessVerificationPage-Bdf48vIt-CsMA_z06.js} +1 -1
- package/dist/assets/{CardNumberSubText-DgQelYSF-ByXOxvTG.js → CardNumberSubText-DgQelYSF-EYjrhelR.js} +1 -1
- package/dist/assets/{CashbackDetailPage-pDpjBsfK-CeHQC4hd.js → CashbackDetailPage-pDpjBsfK-B3tdD-nA.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-DU9RMQc6-BIkkENPA.js → ChargeCardDetailPage-DU9RMQc6-CYAFKGtS.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DMYZIi2J-C0pY-hXD.js → ChargeCardListPage-DMYZIi2J-YzgnTjNz.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BGhtEqlM-1uQtcdAL.js → ChargeCardListTable-BGhtEqlM-B7Fdytg0.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-B2v83Vrf-DE3g4SaQ.js → ChargeCardPromoPage-B2v83Vrf-COR15-4w.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-D4DqJYC2-tJD3m4rN.js → ChargeCardSetupPage-D4DqJYC2-Bgmue_Hy.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-N-UJC5n3-DRCoIqWQ.js → ChargeCardStatementsPage-N-UJC5n3-DCTtgimP.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-BlNXO233-B6D-qsf9.js → CheckDepositDrawerPage-BlNXO233-Biy_ee3N.js} +1 -1
- package/dist/assets/{CollapsableReportTable-CuZSfiJ--DndUaoHT.js → CollapsableReportTable-CuZSfiJ--BV5LvjsE.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-B8_6LaaT-Bm6A2sxD.js → CompanyOfficerDetailsSection-B8_6LaaT-CKJVK2pK.js} +1 -1
- package/dist/assets/{CompanyPassportCard-Dnoe52f1-Bb0yMF1k.js → CompanyPassportCard-Dnoe52f1-BZsqn6WU.js} +1 -1
- package/dist/assets/{CompanyPassportPage-ChrMM5cG-CBSi0VyZ.js → CompanyPassportPage-ChrMM5cG-DMFx8-D2.js} +1 -1
- package/dist/assets/{CompleteProfile-BcB52KEM-eSrsUGzf.js → CompleteProfile-BcB52KEM-lFVSyCYA.js} +1 -1
- package/dist/assets/{ConfettiBurst-CLXTwsEc-BKNVbRl0.js → ConfettiBurst-CLXTwsEc-Baoit-xY.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BQT9jEKf-D7ltp_Gl.js → CreateOrEditVendorPage-BQT9jEKf-BQUueMhM.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CqjXmiuE-DMxbqlO3.js → CreditCardPaymentDrawerPage-CqjXmiuE-BYGCpyAz.js} +1 -1
- package/dist/assets/{CurrencySelectField-DptlyOSs-CcylyEJM.js → CurrencySelectField-DptlyOSs-CWinX_tp.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CwOkKzOg-B6RVJbjC.js → CustomerOnboardingActivationPage-CwOkKzOg-B9TqM2NT.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CicNW9-B-DWzzD7vt.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-czdG16p5-DpEmk0UD.js → CustomerOnboardingDetailPageSkeleton-czdG16p5-DG6Ivo4n.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-vfiQQOHz-Bp1CMF4Z.js → CustomerOnboardingNoStepsPage-vfiQQOHz-CcQVn2u7.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-YXekfOBo-BxMO09Sc.js → CustomerOnboardingPage-YXekfOBo-HDPrQ7VL.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-CZTuBAv2-DO0Q6ibG.js → CustomerOnboardingProductSuitePage-CZTuBAv2-_eb-zJs0.js} +1 -1
- package/dist/assets/{Dashboard-DSgwFRPe-C8675P9W.js → Dashboard-DSgwFRPe-BqbfAhX1.js} +1 -1
- package/dist/assets/{DashboardReportPage-BJvP8_MA-BpjY-74m.js → DashboardReportPage-BJvP8_MA-BBXCjxlc.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BzB16gcw-DGUbQY3b.js → DashboardSidebarBackgroundAnimation-BzB16gcw-DuZKIfdP.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-iLxnaDON-Cited1L2.js → DepositAccTransactionItem-iLxnaDON-Cu2Jt3BR.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BYdaEGCV-dRBdHWPK.js → DepositAccTransactionListPage-BYdaEGCV-BFNeAgzu.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-D7ID3OCC-BFvvuPQV.js → DomesticWireDetailsPage-D7ID3OCC-BWg_cPdV.js} +1 -1
- package/dist/assets/{DownloadOverlay-DK3Nswwn-axnAyF4J.js → DownloadOverlay-DK3Nswwn-CvcpFx8P.js} +1 -1
- package/dist/assets/{DrawerPage-qdVRf0zd-rAuGPrSz.js → DrawerPage-qdVRf0zd-D3MHsEvl.js} +1 -1
- package/dist/assets/{EditPeoplePage-BQlHto3J-B1wgqdbr.js → EditPeoplePage-BQlHto3J-Up6qoGIH.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-wJUr8jPN-cAj4KIG_.js → EditReimbursementDetailPage-wJUr8jPN-CucwYAji.js} +1 -1
- package/dist/assets/{EntityDetailPage-BNbBdxQj-DOptLJPY.js → EntityDetailPage-BNbBdxQj-VYMr28kW.js} +1 -1
- package/dist/assets/{EntitySummarySection-BQXLwSRf-XMfwUKWz.js → EntitySummarySection-BQXLwSRf-Dmz-K_CZ.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-UXpoYnDh-DTEX425p.js → ExpenseAutomationOverviewPage-UXpoYnDh-CO2tpATT.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-Cn4VyB6M-CECxbhts.js → ExpenseAutomationPage-Cn4VyB6M-BhL8s7ps.js} +1 -1
- package/dist/assets/{ExpressPayPage-DjV_dQoe-B6QGETdI.js → ExpressPayPage-DjV_dQoe-TjH6IBGq.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-CPu1OiVj-C8nQdj7i.js → FeaturePreviewPage-CPu1OiVj-DYKr-SZH.js} +1 -1
- package/dist/assets/{FollowStepsSection-6KGTmbym-CjBGo1sT.js → FollowStepsSection-6KGTmbym-BPFH0rIs.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-BpuYWhKy-BWJ3NE1D.js → GlobalReviewListPage-BpuYWhKy-ojejaE0U.js} +1 -1
- package/dist/assets/{HelpButton-j66YbdZ7-MN2mMJbU.js → HelpButton-j66YbdZ7-Drvx-5iY.js} +1 -1
- package/dist/assets/{InformationCardStack--_YYIZmU-TVF3K_in.js → InformationCardStack--_YYIZmU-DyhXfEfc.js} +1 -1
- package/dist/assets/{InsightsCardStack-BAqsxgx_-C1UXRHpT.js → InsightsCardStack-BAqsxgx_-DdyBnb2f.js} +1 -1
- package/dist/assets/{InsightsSection-R-m-A1rt-hAhn3f3r.js → InsightsSection-R-m-A1rt-DREvFYeH.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-BP0P9-PB-q-RNhTQ5.js → IntegrationsSettingsPage-BP0P9-PB-DgpQQrpK.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-Bl40XkdZ-FmcHiNeD.js → InternationalWireSwiftDetailsPage-Bl40XkdZ-DcZdsGXF.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BxIz3xUq-DfERa7mH.js → InternationalWireVerificationPage-BxIz3xUq-2c84qgGL.js} +1 -1
- package/dist/assets/{InviteFormPage-t42rmGiL-DbS-Xo1y.js → InviteFormPage-t42rmGiL-7JW6Km7H.js} +1 -1
- package/dist/assets/{InvitePageListView-CWpmFhZH-BU1izezz.js → InvitePageListView-CWpmFhZH-mgWVAkee.js} +1 -1
- package/dist/assets/{InvitePeoplePage-78Fznvo4-Cs3muHFK.js → InvitePeoplePage-78Fznvo4-BvI_a8sG.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-BWCF-vNf-ENuDGJpZ.js → InvoiceUploadSection-BWCF-vNf-BfXQEC3w.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DrHldS8--Y0lQ8nqU.js → IssueChargeCardPage-DrHldS8--A_AXmB6w.js} +1 -1
- package/dist/assets/{LabeledAddressValue-WlsZ5Ghz-BgDzWzX8.js → LabeledAddressValue-WlsZ5Ghz-BRS36g9Q.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-B-6CWCep-BS0rQu3k.js → LabeledAddressValueField-B-6CWCep-D3jCl4nb.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DLlz4JyR-BC1O7GWF.js → LabeledControlledCheckBoxField-DLlz4JyR-CMz1DNyM.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-rYzQ2Ot2-C76fE8D-.js → LabeledCreatableSingleSelectField-rYzQ2Ot2-CDpWJTGr.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CD2nmWBu-DN57A6Dt.js → LabeledDocumentField-CD2nmWBu-Cuw8I-AI.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-DpVX6osq-D5-gOJ3f.js → LabeledDropDownFormattedTextField-DpVX6osq-DUYnn-i2.js} +1 -1
- package/dist/assets/{LabeledText-QTidAWAx-C3c3LDP1.js → LabeledText-QTidAWAx-fh93_-mv.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BlTOGYfX-B2GK4-w4.js → LabeledUserSingleSelectWithSubtitlesField-BlTOGYfX-BQucWzXB.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-BVYRgzSM-BwBrTbH3.js → LabeledZeniRolesDropDownField-BVYRgzSM-Cv81CAeG.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-CKTmE3J5-oxz25OQ_.js → LinkJETransactionPage-CKTmE3J5-BL2a536w.js} +1 -1
- package/dist/assets/{LowBalancePopup-3lHeOacz-D0jLBPuP.js → LowBalancePopup-3lHeOacz-Cg-6ggSe.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-CJwMNdWw-CQRuhIMs.js → MagicLinkACHDetailsPage-CJwMNdWw-BbWz_BUe.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-7fXlIwuo-BfygosWH.js → MagicLinkDomesticWireDetailsPage-7fXlIwuo-GAs9HQCc.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-D7oeyaXU-BvZA1a8O.js → MagicLinkInternationalWireDetailsPage-D7oeyaXU-Bzhpe6Vc.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-D8iyZlJy-BCBc7pXl.js → MagicLinkSuccessPage-D8iyZlJy-j-oCJl1z.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DUrwrEj2-Dar-V5KH.js → MagicLinkTitleSection-DUrwrEj2-BnMJM36s.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CXSm1fgW-B1aDR6z2.js → MailingDetailsSection-CXSm1fgW-DRNX0_o-.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-SnrmOSBf-C5dtHg-v.js → MeetingCalenderPopup-SnrmOSBf-CNpJ4esn.js} +1 -1
- package/dist/assets/{Menu-C7N3gHcb-bEZ9k_XO.js → Menu-C7N3gHcb-6AxGYl0u.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-B4Pjmw7q-qUHzU9ca.js → MyBankConnectionsSettingsPage-B4Pjmw7q-BoyImx6j.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-COeIF-Gj-lF4Ynxvz.js → MyPendingActivationChargeCardListPage-COeIF-Gj-BJUi7XQw.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-Dv0V1Z6z-B0QjyZRW.js → MyProfileSettingsPage-Dv0V1Z6z-DjnAaOLQ.js} +1 -1
- package/dist/assets/{NavBarWithPicker-Dd5TPoA8-B5GD0shW.js → NavBarWithPicker-Dd5TPoA8-BZQxCbZw.js} +1 -1
- package/dist/assets/{NavigationArrow-xI3dolgO-CZbe0Kw1.js → NavigationArrow-xI3dolgO-C-GiXFn4.js} +1 -1
- package/dist/assets/{NavigationDots-CbSSDiyy-CF0bIpTT.js → NavigationDots-CbSSDiyy-WCBt3UxE.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-vHNZ1z6p-DzCKZ31U.js → NewGlobalMerchantPage-vHNZ1z6p-BmDZAkXp.js} +1 -1
- package/dist/assets/{NoDataChart-DHDhwnCE--JxqggmJ.js → NoDataChart-DHDhwnCE-CDUxuuOv.js} +1 -1
- package/dist/assets/{NoDataTable-BnVKm6Qa-D-DP72-h.js → NoDataTable-BnVKm6Qa-Da3lIrUA.js} +1 -1
- package/dist/assets/{NotFoundPage-BNZEf9qH-DJyohjVl.js → NotFoundPage-BNZEf9qH-BE8kBN6K.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DfnpY6qJ-IVv8rNvQ.js → NotificationSettingsPage-DfnpY6qJ-Q5CoK9_s.js} +1 -1
- package/dist/assets/{NotificationsListConfig-DtICI7X6-Ds4a71oz.js → NotificationsListConfig-DtICI7X6-CayIRbFW.js} +1 -1
- package/dist/assets/{NotificationsPage-Bg1mW_-3-Bqq3aGWJ.js → NotificationsPage-Bg1mW_-3-CzD0o_6Q.js} +1 -1
- package/dist/assets/{OpExByVendorPage-qNgK4tMM-C2uybElE.js → OpExByVendorPage-qNgK4tMM-CM_o2sby.js} +1 -1
- package/dist/assets/{OverlayContainerPage-ZbhbAqlg-Pe8QjCNe.js → OverlayContainerPage-ZbhbAqlg-l2yHPll9.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-C8qE7xCZ-4J3Yl7J8.js → PandLWithForecastPage-C8qE7xCZ-UDfg9dM5.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DA77K9eY-KFOyfAw1.js → PaymentAccountSetupBillingAddressSection-DA77K9eY-BBrPsmYp.js} +1 -1
- package/dist/assets/{PeoplePage-Chec7uSH-BJQiakcT.js → PeoplePage-Chec7uSH-DFRieiVv.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-B_lIRV75-2KTCiqQZ.js → PortfolioAllocationFormPage-B_lIRV75-9B1_7c3Q.js} +1 -1
- package/dist/assets/{PortfolioDetails-Dm2r3i6b-CSqaBp0x.js → PortfolioDetails-Dm2r3i6b-BwrtFocU.js} +1 -1
- package/dist/assets/{ProductsCarousel-Ba0LHKrb-CXNqNsMy.js → ProductsCarousel-Ba0LHKrb-BDvM1Acb.js} +1 -1
- package/dist/assets/{PromoBaseCards-D3gKG9qA-BnJ2PjWk.js → PromoBaseCards-D3gKG9qA-Bq2w579j.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-C8y2XvBN-DhJ_XJEx.js → QBOConnectionDialog-C8y2XvBN-CGZvEFLA.js} +1 -1
- package/dist/assets/{QBOSetupSection-DDGIRv8E-WWMe3MOR.js → QBOSetupSection-DDGIRv8E-DDOtydJ8.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Dc_vsL89-WjjIqi27.js → ReimbursementApprovalRuleDetailPage-Dc_vsL89-DXMeU38o.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DsIFWYvA-BB4iiWOZ.js → ReimbursementApprovalRulesPage-DsIFWYvA-BGZ99R95.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-6KZSAl8R-DdvuKv3t.js → ReimbursementDetailPage-6KZSAl8R-CGQrQ4-Q.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-Bijp59bV-Cpfy_AWs.js → ReimbursementPromoPage-Bijp59bV-Bq5XzABH.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-UW_9Cl4O-CgdV74cL.js → ReimbursementSetUpPage-UW_9Cl4O-BNhdS7cU.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DblkkMcc-C0pmpacW.js → ReimbursementsBulkReviewDrawerPage-DblkkMcc-i1I7617W.js} +1 -1
- package/dist/assets/{ReloadCard-BszztAdg-BGcTmGev.js → ReloadCard-BszztAdg-gseVFmCl.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-DOnGrFNT-CJshToiT.js → ReportTableViewSelector-DOnGrFNT-B1xUQ166.js} +1 -1
- package/dist/assets/{ReportsPage-BfKLEriq-DUqc1b6J.js → ReportsPage-BfKLEriq-CNsTnOim.js} +1 -1
- package/dist/assets/{RevenueChart-B5dfrWKL-CCXtRcm3.js → RevenueChart-B5dfrWKL-h1RS9vmc.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BCo54ehm-CX79VGjq.js → ReviewDetailsPage-BCo54ehm-fgesmtoD.js} +1 -1
- package/dist/assets/{ReviewOverlay-BysN2GYI-B3EhPHzZ.js → ReviewOverlay-BysN2GYI-B54hA7h0.js} +1 -1
- package/dist/assets/{RoleWithToolTip-BRe9iDOl-Q0pJSQDn.js → RoleWithToolTip-BRe9iDOl-r4MeN03_.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-gij2cBvS-C2Yl94k-.js → ScheduleDetailsFixedAssetsPage-gij2cBvS-DYNVzDVF.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-DVm4cyKr-CgRDdyS9.js → ScheduleDetailsPage-DVm4cyKr-BOhfGajG.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-aSVVm6mG-DGPmYAZ0.js → ScheduleSequenceTable-aSVVm6mG-DuDPOPR7.js} +1 -1
- package/dist/assets/{ScreenRoutes-VXm4ob92.js → ScreenRoutes-z4Ov9eJq.js} +1 -1
- package/dist/assets/{SetUpAccountSection-qYVA9A09-BONGuihD.js → SetUpAccountSection-qYVA9A09-CVxmZ6g-.js} +1 -1
- package/dist/assets/{SignIn-BLt95c3U-Dlnl1w8u.js → SignIn-BLt95c3U-D3UBJiEv.js} +1 -1
- package/dist/assets/{SignInScreen-DEaBPUrL.js → SignInScreen-l-67Uvxk.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-Dav0JMKy-Dm4nEWMb.js → SpendManagementListViewPage-Dav0JMKy-Y-GEx6Lw.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-C-Y-BFqH-PpgBRx-N.js → SpendManagementPerTabPage-C-Y-BFqH-BkDeeVjW.js} +1 -1
- package/dist/assets/{SpendManagementSection-DGz-I0bf-BKzTZ_B1.js → SpendManagementSection-DGz-I0bf-Bw1c1jys.js} +1 -1
- package/dist/assets/{StatementItem-2F2qxL7G-DvQ_AOWY.js → StatementItem-2F2qxL7G-sSXIEL81.js} +1 -1
- package/dist/assets/{StatementsPage-D8hwgVAz-Cub96aye.js → StatementsPage-D8hwgVAz-DamBoqPu.js} +1 -1
- package/dist/assets/{StatusSwitcher-DBUg94S_-BAqpWDHz.js → StatusSwitcher-DBUg94S_-C2JEQhps.js} +1 -1
- package/dist/assets/{SubTabSwitcher-CoK8FOIA-DVmudC7o.js → SubTabSwitcher-CoK8FOIA-DDQIjZPM.js} +1 -1
- package/dist/assets/{SummaryCard-D1KRVnqp-Dvy_al2s.js → SummaryCard-D1KRVnqp-BaQsoKv3.js} +1 -1
- package/dist/assets/{TaskManagementPage-BhFEeDBu-Dz6ITwfD.js → TaskManagementPage-BhFEeDBu-DzfbV0Zn.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-4JrIq9xZ-CS5enEHL.js → TimeRangeSwitcher-4JrIq9xZ-TFwqCfhn.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-CjctaKq_-BTzm82tm.js → TimeframeSwitcher-CjctaKq_-Dr_Vr7Rj.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-C0dRRCYf-DyMTP-so.js → TimeframeSwitcherWithToggle-C0dRRCYf-B1COtObb.js} +1 -1
- package/dist/assets/{TopExCard-CCBEun3e-2zjFnsRQ.js → TopExCard-CCBEun3e-BNc9p9eG.js} +1 -1
- package/dist/assets/{TopExDetailPage-DbwmOLnV-BBhCS5FY.js → TopExDetailPage-DbwmOLnV-Dh4ElkDG.js} +1 -1
- package/dist/assets/{TransactionDetailPage-DsQJU2de-Cs2qQW8e.js → TransactionDetailPage-DsQJU2de-CxIPljIq.js} +1 -1
- package/dist/assets/{TransactionList-BIMzvzrT-CfNPr3Oc.js → TransactionList-BIMzvzrT-_or9xEGN.js} +1 -1
- package/dist/assets/{TransactionListBig-DiFiu66r-oT2afajE.js → TransactionListBig-DiFiu66r-BLXPBbpL.js} +1 -1
- package/dist/assets/{TransactionListPage-7JveOMDe-B7fdmsSh.js → TransactionListPage-7JveOMDe-v7-9Lfsn.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-A2F8TF9r-CbwnVt2A.js → TransactionVendorDetailPage-A2F8TF9r-DUOtbDNW.js} +1 -1
- package/dist/assets/{TransferDrawerPage-CCqQ3Daq-Daf8n1RY.js → TransferDrawerPage-CCqQ3Daq-DRUKf3ph.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-Bwy2y6eI-BKBfV02s.js → TreasuryOverviewPage-Bwy2y6eI-CvBsMjHy.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-B3P0nF1z-CmOyTb19.js → TreasuryPromoPage-B3P0nF1z-17ooiVR4.js} +1 -1
- package/dist/assets/{TreasurySetupPage-BgrgBBsW-fmJdf9pD.js → TreasurySetupPage-BgrgBBsW-BvZOLqE5.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-DvCQhl_X-CgWR5LfD.js → TreasuryStatementsPage-DvCQhl_X-Dk5WyixX.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-iG8-cJFt-DtHFKc00.js → TreasuryTaxLetterPage-iG8-cJFt-j6qmlNFn.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-BZ5sPJAg-XRzfaj0V.js → TreasuryTransferOrReviewPage-BZ5sPJAg-NdyyZMx2.js} +1 -1
- package/dist/assets/{TrendChart-_IpSJoUH-D_Xka3ge.js → TrendChart-_IpSJoUH-DXWWW8tE.js} +1 -1
- package/dist/assets/{TrendWithTransactions-BqGV_CQg-C8WEVoW0.js → TrendWithTransactions-BqGV_CQg-DBpBbNzJ.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-iK-1vllN-DE4gP4RH.js → UncategorizedAccountsMappingPage-iK-1vllN-CsfRUZlv.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-sYNoUudZ-MStTdQpl.js → UnitIntegrationPage-sYNoUudZ-CYUrKLfM.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-DMtjF2N8-C2Be6sSI.js → UploadAdditionalDocumentOverlay-DMtjF2N8-D2r5JejQ.js} +1 -1
- package/dist/assets/{Vendor2FAPopup--4Ufzmk0-CNai3nMR.js → Vendor2FAPopup--4Ufzmk0-Bhn3C6zT.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BD9WwdNN-CaWAjhaB.js → VendorACHDetailsPage-BD9WwdNN-B6rEBLg0.js} +1 -1
- package/dist/assets/{VendorDetailPage-DwLCEthT-BvPUhXCZ.js → VendorDetailPage-DwLCEthT-DOEOWBu5.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-Y2SlFgHo-D65nqzrv.js → VendorDomesticWireDetailsPage-Y2SlFgHo-ctcFxC1W.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-nGfjBA1D-OLG4m_gM.js → VendorFiling1099EditablePage-nGfjBA1D-Dj4qnXHI.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-Bgf9MtEn-Dtn_s7_m.js → VendorFirstReviewPage-Bgf9MtEn-B5_vtXIt.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CMxyzCCL-CvcC_o3S.js → VendorInternationalWireDetailsPage-CMxyzCCL-DgMIpDxj.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C6rMWgzM-Ba3gVeFl.js → VendorInternationalWireSwiftDetailsPage-C6rMWgzM-C9CLMBsh.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-Ceq0cYf6-Cjsd_QQc.js → VendorsAccountsSection-Ceq0cYf6-Dwaaaz-u.js} +1 -1
- package/dist/assets/{VerifyDevice-BTFRL9bH-BUJZK5YU.js → VerifyDevice-BTFRL9bH-t2x3vCON.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-DSssRFm_-C1VqOBKj.js → WarningsDrawerPage-DSssRFm_-Dvfai-rz.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-C6q8N5tU-Dc_1K1Bi.js → ZeniAccountDetailPage-C6q8N5tU-DESMj8H1.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CqUvXrvR-ZqvC3boH.js → ZeniAccountListViewPage-CqUvXrvR-Cc02Six5.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-DcmtDKVQ-CBPL_oum.js → ZeniAccountNavBarPieces-DcmtDKVQ-xec3gYAK.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-B6wyK1mQ-C0Tgm2fT.js → ZeniAccountPromoPage-B6wyK1mQ-jB9p9r4X.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-Dl83s-y4-B5nGAEOh.js → ZeniAccountSetupPage-Dl83s-y4-Dwfiz5l8.js} +1 -1
- package/dist/assets/{ZeniCopyright-BqG_ynZT-WDJiIgsT.js → ZeniCopyright-BqG_ynZT-B8auuDYw.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BZb23ypm-DU9mco3Q.js → ZeniTransferAmountSlider-BZb23ypm-CNSeiXW5.js} +1 -1
- package/dist/assets/{analyticsHelper-517kzICQ-BBH33il4.js → analyticsHelper-517kzICQ-B_8oYoDB.js} +1 -1
- package/dist/assets/{analyticsHelper-CNrWxJzq.js → analyticsHelper-fHYf245D.js} +1 -1
- package/dist/assets/{chartTypes-BTkUFFIf-HJpcoXWZ.js → chartTypes-BTkUFFIf-PQ5t5G6G.js} +1 -1
- package/dist/assets/{commonDimensions-Dw8Sh6Gv-a3To-vKo.js → commonDimensions-Dw8Sh6Gv-7gi8Z3Gt.js} +1 -1
- package/dist/assets/{detailCommon-BA8Eb9ta-B1i92RWc.js → detailCommon-BA8Eb9ta-Cls_xdIj.js} +1 -1
- package/dist/assets/{downloadPdf-CDKlyJb--CILbJzzK.js → downloadPdf-CDKlyJb--BC8IkHL1.js} +1 -1
- package/dist/assets/{index-CjrcOwMA.js → index-CteHikkY.js} +3 -3
- package/dist/assets/{mapLoadingInProgressToTreeNode-B16JI0nu-DSXwnXFw.js → mapLoadingInProgressToTreeNode-B16JI0nu-CaT-riL3.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-u05r0BKW-CAyI7F2S.js → mapSectionWithAcOnlyToTreeNode-u05r0BKW-D93Qvfy9.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DHlbGqUH-D80xjgLV.js → mapSpacerToTreeNode-DHlbGqUH-CR4GfB3i.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CGkPIsh6-Cf2XqEry.js → mapTimeframeBalancesToTreeNode-CGkPIsh6-oG-KC4x3.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-ymtaozr7-oHeBpj1f.js → mapTimeframeBalancesToTreeNode-ymtaozr7-CN1Pxsue.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-C7X7F5Ac-BRCHhf6Z.js → mapTimeframeHeaderLoadingInProgressToTreeNode-C7X7F5Ac-CAukvICG.js} +1 -1
- package/dist/assets/{play-icon-B0_JAuQa-Bjb2tow6.js → play-icon-B0_JAuQa-CnChOIaR.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-B0nbXcq3-CLRAcvjs.js → toCOABalancesWithID-B0nbXcq3-CrfKiUyi.js} +1 -1
- package/dist/assets/{toChartData-CZR7pH0W-CMEBURV_.js → toChartData-CZR7pH0W-Dm5lu3KI.js} +1 -1
- package/dist/assets/{treasuryColorHelper-99Jkq8AE-9boKU_Ao.js → treasuryColorHelper-99Jkq8AE-BBbuwlCb.js} +1 -1
- package/dist/assets/{uploadAttachment-5GZYaQNG-D5JMjedW.js → uploadAttachment-5GZYaQNG-2L-QfpWR.js} +1 -1
- package/dist/assets/{uploadReceipts-CtQowT1I-Bg_9c22l.js → uploadReceipts-CtQowT1I-0zTSBTg9.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CicNW9-B-DzHnXZE1.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as M,j as b,bU as V,bW as W,bX as X,jy as Y,ab as q,l as z}from"./index-
|
|
1
|
+
import{B as M,j as b,bU as V,bW as W,bX as X,jy as Y,ab as q,l as z}from"./index-CteHikkY.js";import{b as f}from"./vendor-rkTZJa59.js";import{m as Z}from"./ReviewOverlay-BysN2GYI-B54hA7h0.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const{common:n,spendManagement:{reimbursement:j}}=M.getLocalizedStrings(),o=j.bulkActions;let I;const le=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=f.useState(!1),[m,_]=f.useState(P(e,h,a)),[y,R]=f.useState(h),[k,J]=f.useState(0),[x,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(k===m.length&&y&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(I)}),[m.length,k,y,e.fetchState,h,e,a]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,$=()=>{const{title:u,description:T}=G(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},F={onOkClick:u=>{l(!1);const T=e.remisForReview.map(B=>B.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,z.getRemiListUniqueType(T.map(B=>B?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:U,description:L}=H(p,S,E,y),C=e.fetchState==="Completed"&&S===0,N=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:N,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:$,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(V,{titleComponent:b.jsx(X,{children:x.title}),descriptionComponent:b.jsx(W,{children:x.description}),primaryButtonText:x.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:x.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Z,{title:U,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!y,footerProps:{primaryButton:D(),cancelButton:O,hideCancel:C}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=Y(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:j.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:q("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},G=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},H=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?j.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{le as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as h,j as r,X as a,Z as m,ai as j,B as y,a5 as l,aZ as x,c as g,o as c,aj as C}from"./index-
|
|
1
|
+
import{u as h,j as r,X as a,Z as m,ai as j,B as y,a5 as l,aZ as x,c as g,o as c,aj as C}from"./index-CteHikkY.js";import{n as s,b as d}from"./vendor-rkTZJa59.js";function f({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function z({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(C,{children:({height:i,width:n})=>r.jsx(f,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const w=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Q,e as ie,bI as me,a as fe,j as o,r as ge,B as X,bJ as ee,F as xe,C as O,a4 as be,o as a,bK as ye,bL as _e,bM as we,bN as $e,bO as ve,n as ce,bP as Ce,s as p,c as ke,M as K,aZ as je,a8 as Ne,k as Se,b1 as Ie}from"./index-
|
|
1
|
+
import{u as Q,e as ie,bI as me,a as fe,j as o,r as ge,B as X,bJ as ee,F as xe,C as O,a4 as be,o as a,bK as ye,bL as _e,bM as we,bN as $e,bO as ve,n as ce,bP as Ce,s as p,c as ke,M as K,aZ as je,a8 as Ne,k as Se,b1 as Ie}from"./index-CteHikkY.js";import{b as f,f as de,n as d}from"./vendor-rkTZJa59.js";import{W as P,R as Oe}from"./CollapsableReportTable-CuZSfiJ--BV5LvjsE.js";const R=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Fe(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ao(e,c,n){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Fe(n)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:n.statementFileType});if(h.ok){const b=_e(h.headers,t.defaultFileName),y=await h.arrayBuffer();we(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=d.div`
|
|
2
2
|
padding: 0 ${a.sp3} 0 ${a.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as G,u as U,B as y,w as he,l as _,j as r,Z as k,bf as fe,aY as me,aW as ge,C as v,o as C,a6 as _e,p as be,bg as Se,s as w,H as B,M as Q,bh as we,a8 as Ce,aD as ye,a$ as xe}from"./index-CjrcOwMA.js";import{b as P,f as X,n as b}from"./vendor-rkTZJa59.js";import{m as z,l as Z}from"./analyticsHelper-517kzICQ-BBH33il4.js";import{h as Oe}from"./ReportTableViewSelector-DOnGrFNT-CJshToiT.js";import{a as K,p as Re}from"./TimeRangeSwitcher-4JrIq9xZ-CS5enEHL.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-C0dRRCYf-DyMTP-so.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-DK3Nswwn-axnAyF4J.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-CuZSfiJ--DndUaoHT.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-u05r0BKW-CAyI7F2S.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-CGkPIsh6-Cf2XqEry.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-C7X7F5Ac-BRCHhf6Z.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-B16JI0nu-DSXwnXFw.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-CjctaKq_-BTzm82tm.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-Bhq6cvtX-CIGcG8Mb.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=H({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Le({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=H({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Te({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=H({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
1
|
+
import{e as G,u as U,B as y,w as he,l as _,j as r,Z as k,bf as fe,aY as me,aW as ge,C as v,o as C,a6 as _e,p as be,bg as Se,s as w,H as B,M as Q,bh as we,a8 as Ce,aD as ye,a$ as xe}from"./index-CteHikkY.js";import{b as P,f as X,n as b}from"./vendor-rkTZJa59.js";import{m as z,l as Z}from"./analyticsHelper-517kzICQ-B_8oYoDB.js";import{h as Oe}from"./ReportTableViewSelector-DOnGrFNT-B1xUQ166.js";import{a as K,p as Re}from"./TimeRangeSwitcher-4JrIq9xZ-TFwqCfhn.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-C0dRRCYf-B1COtObb.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-DK3Nswwn-CvcpFx8P.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-CuZSfiJ--BV5LvjsE.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-u05r0BKW-D93Qvfy9.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-CGkPIsh6-oG-KC4x3.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-C7X7F5Ac-CAukvICG.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-B16JI0nu-CaT-riL3.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-CjctaKq_-Dr_Vr7Rj.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-Bhq6cvtX-YU5AexfS.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=H({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Le({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=H({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Te({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=H({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${C.sp2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as A,j as a,B as S,e as de,Z as Ae,aj as Q,b6 as Te,s as E,b7 as J,aw as ee,$ as M,av as ae,ab as re,b8 as oe,b9 as ge,o as m,ba as te,g,M as Fe,bb as pe,bc as me,C as xe,bd as fe,k as R,be as F,ap as V}from"./index-
|
|
1
|
+
import{u as A,j as a,B as S,e as de,Z as Ae,aj as Q,b6 as Te,s as E,b7 as J,aw as ee,$ as M,av as ae,ab as re,b8 as oe,b9 as ge,o as m,ba as te,g,M as Fe,bb as pe,bc as me,C as xe,bd as fe,k as R,be as F,ap as V}from"./index-CteHikkY.js";import{b as P,f as le,n as x}from"./vendor-rkTZJa59.js";import{p as b,d as ne,y as W,b as N,g as ce,u as T}from"./chartTypes-BTkUFFIf-PQ5t5G6G.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-B0nbXcq3-CrfKiUyi.js";import{V as Z}from"./toChartData-CZR7pH0W-Dm5lu3KI.js";const q={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Ve=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Tt,w as vt,C as y,cH as jt,B as St,cI as Ct,cJ as Dt,j as t,cK as It,cL as le,cM as Pt,l as d,cN as At,cO as kt,Z as j,cP as Mt,a0 as k,cQ as Bt,cR as Nt,cS as ke,cT as Me,cU as Be,$ as G,cV as O,cW as z,cX as _,g as S,cY as Lt,cZ as Ft,c_ as Rt,c$ as Et,bA as Ne,o as n,a4 as Ot,s as c,d as zt,bw as _t,b as Wt,h as Ut,d0 as Yt,bN as Zt,k as se,n as de,d1 as Ht,d2 as Vt,aC as Gt,T as Kt,ao as Xt,Y as qe,b5 as qt,c as Qe,aP as Qt,d3 as Jt}from"./index-CjrcOwMA.js";import{b as U,n as i}from"./vendor-rkTZJa59.js";import{t as en,o as tn}from"./LowBalancePopup-3lHeOacz-D0jLBPuP.js";import{S as W}from"./LabeledText-QTidAWAx-C3c3LDP1.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Le,common:{currency:v,labels:Fe,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Re}=ln,Ee=({attachment:e})=>{const[w,x]=U.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=Tt(),m=vt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,L=`dashboard_${m.currentTenant?.companyId}`,F=p.largeLabelWidth.value(s),R=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=jt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Le.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},E={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(An,{size:s,children:t.jsx(Pn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(R?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[R,J,ye,me,ue]);const T=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:P?.code=="approved"&&Y?.code?Y:P,pt=e.billPayInfo?.isRefundInitiated===!0?mt:P?.code=="approved"&&Y?.code?Y:P,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(Pt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,H=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-E.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",T?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(T?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},A=g&&(T?.code!=null?T.code==="draft"||P?.code==="approved":!0),b=A&&!it,Te=Oe(b,H,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Ft(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?At(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Le.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=T?.code??"draft",Ce=P?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Pe=Jt(m.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Pe,Ae):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Pe,Ae)}}},ve=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",T?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,V]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:R?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:ve,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(kt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(D)??"",paymentType:we,amount:k("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(He,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(He,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(vn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Rn,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(En,{children:Je.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(jn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ee,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ge,{})}),t.jsx(X,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ke,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(X,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Xe,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ue,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Ee,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ge,{})}),t.jsxs(Fn,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(X,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(X,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(Ye,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:G.largeMedium.cssObject,decimalStyles:G.smallMedium.cssObject})}),t.jsx(Ye,{children:a.to}),t.jsx(Ze,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:F},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Lt(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:F},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(K,{}),!g&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:F},style:{width:"auto"},value:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:F},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:F},style:{width:"auto"},value:Et(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Rt(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==v.currencyCode?Re.conversionAmountColon:Fe.invoiceAmount}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount-E.amount,currencySymbol:E.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Re.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:E.amount,currencySymbol:E.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Fe.total}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:G.h6Medium.cssObject,decimalStyles:G.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:A&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:A&&!b?$e:ne,style:{width:ze(!1,A,b,H,s)}},primaryBtn:{label:Oe(b,H,e.isBillMarkedForRetry),isLoading:R?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):ve()},style:{width:ze(!0,A,b,H,s)}},rightSideComponent:A&&!b&&R.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(kn,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(qt)`
|
|
1
|
+
import{e as Tt,w as vt,C as y,cH as jt,B as St,cI as Ct,cJ as Dt,j as t,cK as It,cL as le,cM as Pt,l as d,cN as At,cO as kt,Z as j,cP as Mt,a0 as k,cQ as Bt,cR as Nt,cS as ke,cT as Me,cU as Be,$ as G,cV as O,cW as z,cX as _,g as S,cY as Lt,cZ as Ft,c_ as Rt,c$ as Et,bA as Ne,o as n,a4 as Ot,s as c,d as zt,bw as _t,b as Wt,h as Ut,d0 as Yt,bN as Zt,k as se,n as de,d1 as Ht,d2 as Vt,aC as Gt,T as Kt,ao as Xt,Y as qe,b5 as qt,c as Qe,aP as Qt,d3 as Jt}from"./index-CteHikkY.js";import{b as U,n as i}from"./vendor-rkTZJa59.js";import{t as en,o as tn}from"./LowBalancePopup-3lHeOacz-Cg-6ggSe.js";import{S as W}from"./LabeledText-QTidAWAx-fh93_-mv.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Le,common:{currency:v,labels:Fe,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Re}=ln,Ee=({attachment:e})=>{const[w,x]=U.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=Tt(),m=vt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,L=`dashboard_${m.currentTenant?.companyId}`,F=p.largeLabelWidth.value(s),R=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=jt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Le.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},E={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(An,{size:s,children:t.jsx(Pn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(R?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[R,J,ye,me,ue]);const T=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:P?.code=="approved"&&Y?.code?Y:P,pt=e.billPayInfo?.isRefundInitiated===!0?mt:P?.code=="approved"&&Y?.code?Y:P,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(Pt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,H=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-E.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",T?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(T?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},A=g&&(T?.code!=null?T.code==="draft"||P?.code==="approved":!0),b=A&&!it,Te=Oe(b,H,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Ft(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?At(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Le.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=T?.code??"draft",Ce=P?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Pe=Jt(m.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Pe,Ae):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Pe,Ae)}}},ve=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",T?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,V]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:R?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:ve,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(kt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(D)??"",paymentType:we,amount:k("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(He,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(He,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(vn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Rn,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(En,{children:Je.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(jn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ee,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ge,{})}),t.jsx(X,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ke,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(X,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Xe,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ue,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Ee,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ge,{})}),t.jsxs(Fn,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(X,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(X,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(Ye,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:G.largeMedium.cssObject,decimalStyles:G.smallMedium.cssObject})}),t.jsx(Ye,{children:a.to}),t.jsx(Ze,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:F},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Lt(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:F},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(K,{}),!g&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:F},style:{width:"auto"},value:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:F},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:F},style:{width:"auto"},value:Et(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Rt(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==v.currencyCode?Re.conversionAmountColon:Fe.invoiceAmount}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount-E.amount,currencySymbol:E.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Re.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:E.amount,currencySymbol:E.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Fe.total}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:G.h6Medium.cssObject,decimalStyles:G.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:A&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:A&&!b?$e:ne,style:{width:ze(!1,A,b,H,s)}},primaryBtn:{label:Oe(b,H,e.isBillMarkedForRetry),isLoading:R?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):ve()},style:{width:ze(!0,A,b,H,s)}},rightSideComponent:A&&!b&&R.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(kn,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(qt)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
package/dist/assets/{ReviewOverlay-BysN2GYI-B3EhPHzZ.js → ReviewOverlay-BysN2GYI-B54hA7h0.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as B,j as e,Z as x,o as r,a4 as L,C as d,a3 as M,b as C,h as W,g as s,k as y,c5 as R,p as D,c as j,aB as I,s as n,ei as G,az as A,jw as F,jx as J}from"./index-
|
|
1
|
+
import{e as B,j as e,Z as x,o as r,a4 as L,C as d,a3 as M,b as C,h as W,g as s,k as y,c5 as R,p as D,c as j,aB as I,s as n,ei as G,az as A,jw as F,jx as J}from"./index-CteHikkY.js";import{n as t}from"./vendor-rkTZJa59.js";const a={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},O={title:new C("h6Regular","h5Regular")},xi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:E,hideCancel:T},onCloseOverlay:k,onCloseReviewItem:P})=>{const l=B();return e.jsxs(Q,{children:[e.jsx(X,{windowSize:l,children:e.jsx(Y,{children:e.jsx(_,{windowSize:l,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":x("review-overlay-close",i)})})})})}),e.jsxs(Z,{windowSize:l,children:[e.jsxs(q,{windowSize:l,children:[e.jsx(K,{children:e.jsx(N,{windowSize:l,children:i})}),e.jsx(U,{isError:p.isError,windowSize:l,children:p.content})]}),e.jsx(V,{windowSize:l,children:S.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return e.jsxs(ri,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?e.jsx(ci,{onClick:()=>P(o.id),"data-testid":x("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:H(o)}),e.jsxs(oi,{children:[e.jsxs(m,{children:[e.jsx(u,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),e.jsx(u,{isWarning:c,isError:h,children:o.rightSideText.title})]}),e.jsxs(m,{children:[e.jsx(si,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),l!=="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx($,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx($,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),b?e.jsx(L,{primaryBtn:z,cancelBtn:E,showCancel:!T}):null]})},H=i=>i.reviewStatus.isLoading?e.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):i.reviewStatus.code==="error"?e.jsx(v,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(v,{isError:!1}):i.reviewStatus.code==="valid"?e.jsx(li,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(ai,{}),Q=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${i=>i.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-BRe9iDOl-Q0pJSQDn.js → RoleWithToolTip-BRe9iDOl-r4MeN03_.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eN as h,eO as x,j as t,bA as m,o as n,Z as o,B as g,m as j,c as p}from"./index-
|
|
1
|
+
import{eN as h,eO as x,j as t,bA as m,o as n,Z as o,B as g,m as j,c as p}from"./index-CteHikkY.js";import{n as s}from"./vendor-rkTZJa59.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,y=s.div``,f=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a2 as K,l as me,hP as ee,g7 as fe,ex as we,hQ as Je,a as Me,hR as Ve,c9 as _e,ca as Fe,j as a,B as be,F as Pe,bU as Ne,bW as qe,bX as Re,a4 as Ue,hS as We,hT as Be,_ as he,hU as Se,hV as $e,cm as ze,e as He,i7 as Ke,gc as re,s as U,g as De,C as Ce,cc as Ge,hW as Xe,hX as Ye,hY as Ze,o as _}from"./index-
|
|
1
|
+
import{a2 as K,l as me,hP as ee,g7 as fe,ex as we,hQ as Je,a as Me,hR as Ve,c9 as _e,ca as Fe,j as a,B as be,F as Pe,bU as Ne,bW as qe,bX as Re,a4 as Ue,hS as We,hT as Be,_ as he,hU as Se,hV as $e,cm as ze,e as He,i7 as Ke,gc as re,s as U,g as De,C as Ce,cc as Ge,hW as Xe,hX as Ye,hY as Ze,o as _}from"./index-CteHikkY.js";import{b as m,n as B}from"./vendor-rkTZJa59.js";import{i as Qe,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-aSVVm6mG-DuDPOPR7.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const W={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=B.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a2 as $,l as ie,hP as G,g7 as Ae,ex as Je,hQ as Ie,a as Le,hR as we,c9 as Me,ca as Ve,j as a,B as De,F as Pe,bU as Fe,bW as $e,bX as _e,a4 as Be,hS as Ne,hT as Ue,_ as re,hU as pe,hV as ze,cm as We,e as Re,gc as me,s as Q,g as qe,C as Ke,hW as He,hX as Xe,hY as Ye,o as L}from"./index-
|
|
1
|
+
import{a2 as $,l as ie,hP as G,g7 as Ae,ex as Je,hQ as Ie,a as Le,hR as we,c9 as Me,ca as Ve,j as a,B as De,F as Pe,bU as Fe,bW as $e,bX as _e,a4 as Be,hS as Ne,hT as Ue,_ as re,hU as pe,hV as ze,cm as We,e as Re,gc as me,s as Q,g as qe,C as Ke,hW as He,hX as Xe,hY as Ye,o as L}from"./index-CteHikkY.js";import{b as D,n as P}from"./vendor-rkTZJa59.js";import{i as Ge,r as Qe,n as Ze,o as et}from"./ScheduleSequenceTable-aSVVm6mG-DuDPOPR7.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const U={labelWidth:new Ke(160,160,160)},tt=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as T,u as Z,j as t,hZ as ie,B as R,h_ as le,b as oe,h$ as ge,dP as fe,cU as we,$ as A,i0 as ye,hY as be,o as i,C as b,g as j,T as $e,_ as re,dL as je,bU as Se,bX as ke,cm as Q,cu as ee,cs as ve,i1 as G,i2 as Ce,aj as De,i3 as Me,bZ as ze,i4 as Le,s as h,k as L,ao as Ee,bW as Oe,r as pe,cv as Ae,ah as ne,cG as Te,a4 as Ie,l as H,i5 as I,fL as Ve,a0 as Fe,i6 as Je,a8 as U,cw as Be,aB as Pe}from"./index-
|
|
1
|
+
import{e as T,u as Z,j as t,hZ as ie,B as R,h_ as le,b as oe,h$ as ge,dP as fe,cU as we,$ as A,i0 as ye,hY as be,o as i,C as b,g as j,T as $e,_ as re,dL as je,bU as Se,bX as ke,cm as Q,cu as ee,cs as ve,i1 as G,i2 as Ce,aj as De,i3 as Me,bZ as ze,i4 as Le,s as h,k as L,ao as Ee,bW as Oe,r as pe,cv as Ae,ah as ne,cG as Te,a4 as Ie,l as H,i5 as I,fL as Ve,a0 as Fe,i6 as Je,a8 as U,cw as Be,aB as Pe}from"./index-CteHikkY.js";import{b as D,n as o,j as B}from"./vendor-rkTZJa59.js";const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Re({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=D.useState(!1),{control:m,formState:{errors:g},setValue:S}=Q(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(g,l),x=T(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(_e,{children:[t.jsx(Ne,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(qe,{alignLeft:r===!0,children:[t.jsx(Qe,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Te,{name:N(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ge,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(We,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(et,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ie,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Ne({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(He,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ue,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function We({defaultValue:e,onClick:l}){return t.jsxs(Ke,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(_,{isSelected:r===e,onClick:()=>l(H.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},_e=o.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,He=o.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ut,e as en,l as Y,kp as Ke,kq as tt,C as dt,kr as ud,ks as cd,kt as tn,ku as fd,kv as Tt,B as ir,kw as Bt,kx as qt,p as rn,o as kt,ky as ld,kz as hd,aE as Ft,aF as Kl,k3 as Lt,kA as dd,kB as pd,s as yn,kC as md,kD as Yl,kE as gd,kF as Jl,bh as Xl,H as zo,kG as vd,kH as yd,kI as _d,kJ as Ql,kK as bd,kL as wd,kM as Sd,kN as Ed,kO as Rd,kP as Od,kQ as Td,kR as xd,kS as Cd,kT as Ad,kU as Id,kV as Pd,kW as kd,gq as Ld}from"./index-
|
|
1
|
+
import{u as Ut,e as en,l as Y,kp as Ke,kq as tt,C as dt,kr as ud,ks as cd,kt as tn,ku as fd,kv as Tt,B as ir,kw as Bt,kx as qt,p as rn,o as kt,ky as ld,kz as hd,aE as Ft,aF as Kl,k3 as Lt,kA as dd,kB as pd,s as yn,kC as md,kD as Yl,kE as gd,kF as Jl,bh as Xl,H as zo,kG as vd,kH as yd,kI as _d,kJ as Ql,kK as bd,kL as wd,kM as Sd,kN as Ed,kO as Rd,kP as Od,kQ as Td,kR as xd,kS as Cd,kT as Ad,kU as Id,kV as Pd,kW as kd,gq as Ld}from"./index-CteHikkY.js";import{j as X,D as nn,S as Vt}from"./mui-C42whWwM.js";import{b as Se,n as ut,c as Ve,i as eh,g as qd}from"./vendor-rkTZJa59.js";import{f as jd}from"./analyticsHelper-fHYf245D.js";import{g as rt,u as Ie,f as Ye}from"./redux-2gfZRks6.js";import{a as Je,d as pt,e as Dd,N as er,R as wt,c as qe,u as Zo,b as Go}from"./routing-VwiwPky5.js";import{B as ze,a as Qe,b as Nd,c as Wo,d as $d,e as Ko,f as Yo,g as Md,h as Fd,i as zt,j as th,k as rr,l as an,m as Ud,n as Bd,o as Vd,p as zd,q as Gd,s as Hd,t as Zd,u as rh,v as on,w as ar}from"./crypto-BDNqpTKX.js";import{p as Oe}from"./sentry-osuhWjvS.js";import{r as Wd}from"./lodash-BWJmwMit.js";import"./analytics-CBL_L82S.js";import"./liveblocks-CP09Cz-7.js";const Kd={overlayWidth:new dt(100,100,50)},{common:{strings:vs}}=ir.getLocalizedStrings();function Yd(e,n){return{headerActions:{onTabChange:a=>{const i=qt(a),o=Bt(a);Ke.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ke.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(o=>o.matchingOperator).join(vs.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(o=>o.field).join(vs.comma)}}),e(Y.updateCompanyHealthViewUIState({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(Y.initializeCompanyHealthMetricViewLocalData(a))},onColumnSortConfigChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(Y.fetchCompanyHealthMetricView())},onFiltersChange:a=>{e(Y.updateCompanyHealthViewUIState({uiState:{filters:a}}))}}}}function Jd(e,n){return{headerData:{selectedTabOption:Tt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Xd=Ye(Jd,Yd)(fd);function _n({isDrawerOpen:e}){const n=Je(),a=rt(),i=Ut(),o=en(),{companyId:t}=pt(),[r,s]=Dd(),[d,h]=Se.useState(!1),c=Ie(w=>Y.getCompanyHealthMetricView(w)),f=Ie(w=>Y.getCompanyManagementView(w)),{additionalChurnFactors:l}=Ie(w=>Y.getCompanyHealthMetricConfig(w)),{selectedCompanyDetail:_,selectedCompanyId:m,localFormDataAndStatusByCompanyId:b}=c,p=Ie(w=>w.companyViewState.zeniUsers.fetchState),u=Ie(w=>w.companyHealthMetricConfigViewState);if(Se.useEffect(()=>{const w=v=>v==="Not-Started"||v==="Error";c.fetchState==="Completed"?a(Y.fetchAllCockpitViews(!1)):w(c.fetchState)&&(a(Y.fetchCompanyHealthMetricView()),w(p)&&a(Y.fetchZeniUsers()),w(u.fetchState)&&a(Y.fetchCompanyHealthMetricConfig()))},[c.fetchState,u.fetchState]),Se.useEffect(()=>{t!=null&&c.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Y.initializeCompanyHealthMetricViewLocalData(t)),_!=null&&(Ke.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:_.companyInfo.companyId,companyName:_.companyInfo.name,churnProbability:_.companyHealthMetric.churnProbabilityPercentage??null}),h(r.has("utm_source")),r.delete("utm_source"),s(r)))},[c.fetchState,_?.companyInfo.companyId,_?.companyInfo.name]),tt.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return X.jsxs(X.Fragment,{children:[e===!0||m!=null&&_!=null?X.jsx(nn,{anchor:"right",open:m!=null,PaperProps:{style:{width:Kd.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Y.removeSelectedCompanyId()),children:X.jsx(ud,{roomId:`cockpit_${m}`,autoConnect:!0,children:X.jsx(cd,{onSaveClick:()=>{m!=null&&a(Y.saveCompanyHealthMetricById(m))},onSaveChangesToLocalStore:w=>{c.selectedCompanyId!=null&&a(Y.updateCompanyHealthMetricLocalStore({companyId:c.selectedCompanyId,updatedLocalData:w}))},localData:b?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>a(Y.removeSelectedCompanyId()),analytics:Ke,urlSource:d,additionalChurnFactorsOptions:l})})}):null,X.jsx(Xd,{healthView:c,managementView:f,navigate:n,mixpanelHMUrl:tn.mixpanelHMUrl})]})}const nh=(e,n)=>{const a=[...e??[]];return a.push(n),a},Qd=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ep=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},Fe=({state:e,element:n})=>tt.isSignedIn()===!0?X.jsx(X.Fragment,{children:n}):X.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function tp(){return X.jsxs(wt,{children:[X.jsx(qe,{path:"/companies/:companyId",element:X.jsx(Fe,{element:X.jsx(_n,{isDrawerOpen:!0})})}),X.jsx(qe,{path:"/",element:X.jsx(Fe,{element:X.jsx(_n,{})})}),X.jsx(qe,{path:"/*",element:X.jsx(Fe,{element:X.jsx(_n,{})})})]})}const rp={drawerLeftMargin:new dt(0,0,240)};function or(e){const{isOpen:n,drawerLeftMargin:a,children:i,onClose:o}=e,t=en(),r=a?.valuePx(t)??rp.drawerLeftMargin.valuePx(t),s=Ut();return X.jsx(nn,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:o,children:i})}const np=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?X.jsx(ip,{children:X.jsx(rn,{size:"ExtraLarge",start:!0})}):null,ip=ut.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|