@zeniai/web-cockpit-ui 1.14.49-dev → 1.14.49-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-Sg7hdGqd-BJ6Y4E4W.js → ACHDetailsPage-Sg7hdGqd-CCXprbhT.js} +1 -1
- package/dist/assets/{AIPerformancePage-ChnBEIPH-BG7kRGAc.js → AIPerformancePage-ChnBEIPH-4_euKIvp.js} +1 -1
- package/dist/assets/{AccountInfoPage-BxnQEiJ7-CuhRvlDO.js → AccountInfoPage-BxnQEiJ7-B6EmYPv_.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-DNUp3TON-D0ib25q5.js → AccountInfoPageContent-DNUp3TON-qdMNKklV.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-CA152nkz-pxVtwGi8.js → AccountLockedInfoModal-CA152nkz-DzCD-JUi.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-C2rkkVPs-fzY1AEUi.js → AccountReconDetailsDrawerPage-C2rkkVPs-CQwYzCjP.js} +1 -1
- package/dist/assets/{AccountRow-36Vtwpnr-DYEexfmz.js → AccountRow-36Vtwpnr-4z2Yans3.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-C2HYR94b-Ds_RYsZp.js → AccountsPromoCardStack-C2HYR94b-CpKQoFz3.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-BZ0RCcja-DeN0wdYs.js → AddAddressForCardDrawer-BZ0RCcja-nZX6PoRd.js} +1 -1
- package/dist/assets/{AddToWalletPage-C_3jcdka-CL8bElM-.js → AddToWalletPage-C_3jcdka-F-DW-oAI.js} +1 -1
- package/dist/assets/{AgingReportsPage-BPxROntM-AndJUsDi.js → AgingReportsPage-BPxROntM-BkwxFBqZ.js} +1 -1
- package/dist/assets/{AllUserItems-D4ZSsopG-BpcSmXEj.js → AllUserItems-D4ZSsopG-CbtLJ7dq.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-Cg_V8f7G-DR1ckQuO.js → ApAgingDetailPage-Cg_V8f7G-Dtv7vAxt.js} +1 -1
- package/dist/assets/{AppBasePage-6i0Pu1mT-CYhfw2EW.js → AppBasePage-6i0Pu1mT-CI0gWqTJ.js} +1 -1
- package/dist/assets/{AppDrawerContent-B6_iNfLZ-D1T-ud79.js → AppDrawerContent-B6_iNfLZ-BBNlUFgb.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-BnsXfKAE-CtUMFa5Y.js → ApprovalRulesSettingsPage-BnsXfKAE-BddQmAcM.js} +1 -1
- package/dist/assets/{ArAgingChart-DSDIg2mS-75abgEKE.js → ArAgingChart-DSDIg2mS-BzouD7uA.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BYb9qi8c-CJX-8A7X.js → ArAgingDetailPage-BYb9qi8c-3T0IpoxH.js} +1 -1
- package/dist/assets/{AttachmentView-CdNQ2xWp-Bvpk1SdZ.js → AttachmentView-CdNQ2xWp-BPsXC6R_.js} +1 -1
- package/dist/assets/{BankAccountSection-CwYIBEbQ-8mzvKjUV.js → BankAccountSection-CwYIBEbQ-S9Np9Ygv.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-DPIyvB6i-CQf_GPyw.js → BankAccountWarningSection-DPIyvB6i-pfBOIjCV.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-O03gMCgp-ktWZ4Eak.js → BankConnectionsSettingsPage-O03gMCgp-DASDTUYQ.js} +1 -1
- package/dist/assets/{BillDetailPage-D-fa_jc1-20mAoSs4.js → BillDetailPage-D-fa_jc1-BleJmAH0.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-D_A4wH0g-D4_Up7SF.js → BillPayApprovalRuleDetailPage-D_A4wH0g-B-75pSuf.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-gdOVuTqR-Dm9-SFtE.js → BillPayApprovalRulesPage-gdOVuTqR-BszEmrA8.js} +1 -1
- package/dist/assets/{BillPayPromoPage-SFpIScHQ-DqufeKOh.js → BillPayPromoPage-SFpIScHQ-FG20wQ1f.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-mD_IeiJx-C2AEnkkH.js → BillPaySetUpPage-mD_IeiJx-DxluR9l0.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CdaNgKMv-qPNA3e0-.js → BillingSettingsPage-CdaNgKMv-gAn_GvVH.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DPgrXGy0-CnvGZNH8.js → BillsBulkReviewDrawerPage-DPgrXGy0-CQlJtKA-.js} +1 -1
- package/dist/assets/{BoxItem-Bla_vZe9-hVwWcQFM.js → BoxItem-Bla_vZe9-D4jxptTn.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CXxO69rJ-B2xvcQL_.js → BusinessVerificationPage-CXxO69rJ-ZjHWLeJo.js} +1 -1
- package/dist/assets/{CardNumberSubText-B-HsVbRQ-DD1zwm43.js → CardNumberSubText-B-HsVbRQ-BLIziZ0V.js} +1 -1
- package/dist/assets/{CashbackDetailPage-gIJ-1lJF-DJvf8K0I.js → CashbackDetailPage-gIJ-1lJF-BO5TRo9Z.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-Dgyl5IJV-dpF3lMeE.js → ChargeCardDetailPage-Dgyl5IJV-DazPQgg3.js} +1 -1
- package/dist/assets/{ChargeCardListPage-CgN69uh_-OWvNh6ZR.js → ChargeCardListPage-CgN69uh_-DKDrh90W.js} +1 -1
- package/dist/assets/{ChargeCardListTable-Bq3FUrUG-ZxNJoN2u.js → ChargeCardListTable-Bq3FUrUG-FyrnND8b.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-DqDd3QeF-DwKhI9v5.js → ChargeCardPromoPage-DqDd3QeF-BbqMx9NQ.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-CBP4-JyP-CTSo8lEf.js → ChargeCardSetupPage-CBP4-JyP-NCDgse98.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CVJyNhXt-BWmc6WcQ.js → ChargeCardStatementsPage-CVJyNhXt-Di4REK7T.js} +1 -1
- package/dist/assets/{ChargeCardUtils-DaDe1sIq-Cvp2W_S2.js → ChargeCardUtils-DaDe1sIq-NwQ1CJ2W.js} +1 -1
- package/dist/assets/{ChaseOverlay-C1SVk4v1-CPf76lKD.js → ChaseOverlay-C1SVk4v1-DW3UeCAS.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-DSR4fX1u-B41Tuwd0.js → CheckDepositDrawerPage-DSR4fX1u-ndwRTjAi.js} +1 -1
- package/dist/assets/{CollapsableReportTable-QtToztmP-Dtu3g55w.js → CollapsableReportTable-QtToztmP-DQt1k1-B.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-Ctoe2QDP-DNnYQb9v.js → CompanyOfficerDetailsSection-Ctoe2QDP-CQSKCmrp.js} +1 -1
- package/dist/assets/{CompanyPassportCard-D1Qw3xp1-BcKy74pq.js → CompanyPassportCard-D1Qw3xp1-CzjX_y3L.js} +1 -1
- package/dist/assets/{CompanyPassportPage-Dd53DZFe-CBQbcAq0.js → CompanyPassportPage-Dd53DZFe-BmsuarOf.js} +1 -1
- package/dist/assets/{CompleteProfile-DlFmFq5M-BMyL27qP.js → CompleteProfile-DlFmFq5M-ZT3wEZlQ.js} +1 -1
- package/dist/assets/{ConfettiBurst-b3SEoaSY-DuWTUbzD.js → ConfettiBurst-b3SEoaSY-CEVptNiu.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DwvlzEci-BiFTiX_3.js → CreateOrEditVendorPage-DwvlzEci-DUaCnl0C.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-y5jJQGS5-DE9_oAZ2.js → CreditCardPaymentDrawerPage-y5jJQGS5-BN-YeTDF.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-BbVnrMer-CMSyRH0x.js → CreditCardPaymentPlgSection-BbVnrMer-Db7C8egU.js} +1 -1
- package/dist/assets/{CurrencySelectField-B1rl6vQ0-BGOf9wTv.js → CurrencySelectField-B1rl6vQ0-tIQbPb2V.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DlFjo3Sv-BTL8l8KD.js → CustomerOnboardingActivationPage-DlFjo3Sv-DlDk6MjE.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-gA22hWiI-DHO0Bx78.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BxsQBBs2-DKJ8rMmR.js → CustomerOnboardingDetailPageSkeleton-BxsQBBs2-1N-A35fF.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-r85EAGP9-DFBVNcDX.js → CustomerOnboardingNoStepsPage-r85EAGP9-BWacMhdz.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-Cw66PfQC-VEMQRRng.js → CustomerOnboardingPage-Cw66PfQC-pU5lcmch.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-DjNvBda4-BxY-0AsA.js → CustomerOnboardingProductSuitePage-DjNvBda4-6fpGm6Io.js} +1 -1
- package/dist/assets/{Dashboard-I5fepHMP-Cevcxjrr.js → Dashboard-I5fepHMP-CXiBwzdI.js} +1 -1
- package/dist/assets/{DashboardReportPage-GkuxGc3t-BHv_HG6x.js → DashboardReportPage-GkuxGc3t-BKXCa7xb.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Ba6mjrpq-DflDlyBs.js → DashboardSidebarBackgroundAnimation-Ba6mjrpq-CP_63791.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-8pfQMKs3-BiFZwIDL.js → DepositAccTransactionItem-8pfQMKs3-DA5Rp_k5.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BiTWRxfT-FXfV2auu.js → DepositAccTransactionListPage-BiTWRxfT-BGViZ9xq.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-4Dh_YZ8--Dac_JC4h.js → DomesticWireDetailsPage-4Dh_YZ8--DtHM1pr6.js} +1 -1
- package/dist/assets/{DownloadOverlay-D6S9Obtr-Cl7jFmI9.js → DownloadOverlay-D6S9Obtr-D2mA2KNN.js} +1 -1
- package/dist/assets/{DrawerPage-D13P_uWJ-DwxMNR4o.js → DrawerPage-D13P_uWJ-CsKiwoDS.js} +1 -1
- package/dist/assets/{EditPeoplePage-DF_58Z4U-DoX8iNFa.js → EditPeoplePage-DF_58Z4U-DfKImWbi.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-COg9-yb6-CIDvV_2l.js → EditReimbursementDetailPage-COg9-yb6-CILN_gSs.js} +1 -1
- package/dist/assets/{EntityDetailPage-BbITG8i5-BGeGObtn.js → EntityDetailPage-BbITG8i5-CprGjm72.js} +1 -1
- package/dist/assets/{EntitySummarySection-BIawu9Ww-jWQbkUh5.js → EntitySummarySection-BIawu9Ww-Ceo0UhdT.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-DleEJVpj-D4jVCqMP.js → ExpenseAutomationOverviewPage-DleEJVpj-u_9BpHnf.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BzqJFgyb-Cn25OmeO.js → ExpenseAutomationPage-BzqJFgyb-Czy39NPG.js} +1 -1
- package/dist/assets/{ExpressPayPage-ciCYdxZj-CZU8Twmg.js → ExpressPayPage-ciCYdxZj-BXc9NDyl.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-Bbbcp0Yy-YrV3pTR0.js → FeaturePreviewPage-Bbbcp0Yy-Czyj_mEC.js} +1 -1
- package/dist/assets/{FollowStepsSection-B6uVl1dT-DNC0mar6.js → FollowStepsSection-B6uVl1dT-B1dWDhOp.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-BOTtaikB-BvTnXg7j.js → GlobalReviewListPage-BOTtaikB-agDlR_ZV.js} +1 -1
- package/dist/assets/{HelpButton-CzyBnp0B-ChA2L75P.js → HelpButton-CzyBnp0B-B4qln9tA.js} +1 -1
- package/dist/assets/{InformationCardStack-Bm0Oh5VL-8LXcrFIu.js → InformationCardStack-Bm0Oh5VL-DjrgDLen.js} +1 -1
- package/dist/assets/{InsightsCardStack-DJQ_W9fy-Bkv78BK1.js → InsightsCardStack-DJQ_W9fy-DK1IXhJg.js} +1 -1
- package/dist/assets/{InsightsSection-wZpjHdxh-C71dHBxC.js → InsightsSection-wZpjHdxh-DXdKVgAu.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-Cl-Y86Nj-CQcfLXmx.js → IntegrationsSettingsPage-Cl-Y86Nj-D4NX5YT1.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DkEpnlVz-KQGlf6zC.js → InternationalWireSwiftDetailsPage-DkEpnlVz-DWJE6x6p.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-Ra78kWjZ-C8uhi-CA.js → InternationalWireVerificationPage-Ra78kWjZ-C7XfpdHS.js} +1 -1
- package/dist/assets/{InviteFormPage-Be3Tqvh8-B9YJH8eq.js → InviteFormPage-Be3Tqvh8-boDpca8x.js} +1 -1
- package/dist/assets/{InvitePageListView-BuooPBpK-CTSaKN1R.js → InvitePageListView-BuooPBpK-B-O-E11Q.js} +1 -1
- package/dist/assets/{InvitePeoplePage-BN0ktc82-BLO9Ep-Z.js → InvitePeoplePage-BN0ktc82-CX-yWmlh.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-BQgfwgdt-DRCL-kG6.js → InvoiceUploadSection-BQgfwgdt-Bu3SJ_dU.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-C_4bD6HQ-C7zzGhpe.js → IssueChargeCardPage-C_4bD6HQ-B4neH-6d.js} +1 -1
- package/dist/assets/{LabeledAddressValue-Ctk46FKq-DXzMzmT1.js → LabeledAddressValue-Ctk46FKq-KR-uiT2u.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-Dg0TLzPn-C8l26S45.js → LabeledAddressValueField-Dg0TLzPn-CRUbVJT9.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DJSFmpIX-C25AJyD4.js → LabeledControlledCheckBoxField-DJSFmpIX-DXOJq1C3.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-Bjh5B-q0-q0j6ciRz.js → LabeledCreatableSingleSelectField-Bjh5B-q0-Co5wnrJk.js} +1 -1
- package/dist/assets/{LabeledDocumentField-BT7CRAVI-BPUiB9Ug.js → LabeledDocumentField-BT7CRAVI-Bu18IeBT.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BX06HLc2-DYKhZ_Ts.js → LabeledDropDownFormattedTextField-BX06HLc2-CSTX9KoC.js} +1 -1
- package/dist/assets/{LabeledText-DZVRFAkG-DkVxNbLd.js → LabeledText-DZVRFAkG-rHxfEtQQ.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-QoYZvvyE-DPkhJaYm.js → LabeledUserSingleSelectWithSubtitlesField-QoYZvvyE-DgWhyFpB.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-D9I9Lxk2-CILsRId4.js → LabeledZeniRolesDropDownField-D9I9Lxk2-CEybF1_R.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-C8K00-1a-BdYYSG3G.js → LinkJETransactionPage-C8K00-1a-CRsvQ_9P.js} +1 -1
- package/dist/assets/{LockCardPage-Cv7cc2yv-DzSZdmRI.js → LockCardPage-Cv7cc2yv-Bgylw99f.js} +1 -1
- package/dist/assets/{LowBalancePopup-CQQrhufv-BRlLHtBa.js → LowBalancePopup-CQQrhufv-ooiA9ZXC.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-BUGK2W6m-BANuDDL9.js → MagicLinkACHDetailsPage-BUGK2W6m-iQ0u98AT.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CdGw-8SL-CS027aBy.js → MagicLinkDomesticWireDetailsPage-CdGw-8SL-BZNxp9-P.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-ioBaDPw3-BPFqiBSS.js → MagicLinkInternationalWireDetailsPage-ioBaDPw3-BRjF2y7B.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BBnZ5N8r-CaS0ld-S.js → MagicLinkSuccessPage-BBnZ5N8r-3AvY4DIN.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-C0nl5UrB-Di7GkP7e.js → MagicLinkTitleSection-C0nl5UrB-fbBcM0M6.js} +1 -1
- package/dist/assets/{MailingDetailsSection-DeaanyVd-DQKkTSnq.js → MailingDetailsSection-DeaanyVd-has6jQC4.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-CGGit3Ny-DKPRY5LI.js → MeetingCalenderPopup-CGGit3Ny-CiZ-1m4B.js} +1 -1
- package/dist/assets/{Menu-BWGaQpko-B1hEJhh5.js → Menu-BWGaQpko-C-bIfACK.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-Bg_ULoVa-CxqhZSCX.js → MyBankConnectionsSettingsPage-Bg_ULoVa-BjIIqVWR.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-DulXydFx-CskMu8cW.js → MyPendingActivationChargeCardListPage-DulXydFx-CNXPW9Gb.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-C2p1O3ct-CWNCW8b-.js → MyProfileSettingsPage-C2p1O3ct-BgyD_hf0.js} +1 -1
- package/dist/assets/{NavBarWithPicker-BCLF3DOO-BL8tDpIu.js → NavBarWithPicker-BCLF3DOO-CA9gmzsQ.js} +1 -1
- package/dist/assets/{NavigationArrow-BPrl00va-kEFRJVOf.js → NavigationArrow-BPrl00va-D8RNnAeo.js} +1 -1
- package/dist/assets/{NavigationDots-O0W_nmju-Bbb_MNmq.js → NavigationDots-O0W_nmju-D_O1-ums.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-D6e-akD5-Bz4KL-u9.js → NewGlobalMerchantPage-D6e-akD5-Bzs9Ucjn.js} +1 -1
- package/dist/assets/{NoDataChart-C9yfpsin-Sd5PCeur.js → NoDataChart-C9yfpsin-CDRDTUOe.js} +1 -1
- package/dist/assets/{NoDataTable-DKv0uhi4-DZ3R1eiz.js → NoDataTable-DKv0uhi4-Cpc7fkkE.js} +1 -1
- package/dist/assets/{NotFoundPage-B5ou4w73-BIVC4g6u.js → NotFoundPage-B5ou4w73-NuKoBPie.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BmrtRoZK-C4tjtLGG.js → NotificationSettingsPage-BmrtRoZK-DZ_ZG3D7.js} +1 -1
- package/dist/assets/{NotificationsListConfig-DQ4Ho61v-B_UzJqt6.js → NotificationsListConfig-DQ4Ho61v-BnotEG6V.js} +1 -1
- package/dist/assets/{NotificationsPage-UraNN_iD-BYa0kjC2.js → NotificationsPage-UraNN_iD-BUGQxEcG.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BRPHj5T9-CJ2zs8i0.js → OpExByVendorPage-BRPHj5T9-DYtyW38v.js} +1 -1
- package/dist/assets/{OverlayContainerPage-B8Rk53Fe-BZkbGcFB.js → OverlayContainerPage-B8Rk53Fe-CfTKp3Gf.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BMjOYb2a-ac2i66Bf.js → PandLWithForecastPage-BMjOYb2a-Dcnt7HVK.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-B38HgGEM-OQqaoswr.js → PaymentAccountSetupBillingAddressSection-B38HgGEM-DgE8Vczk.js} +1 -1
- package/dist/assets/{PeoplePage-BpMkRqCs-DXNskFpP.js → PeoplePage-BpMkRqCs-CsT9OFKk.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-tnv4t4QU-DojJmLI3.js → PortfolioAllocationFormPage-tnv4t4QU-CrHZ8aTl.js} +1 -1
- package/dist/assets/{PortfolioDetails-BQCQctOT-CxWVFhWY.js → PortfolioDetails-BQCQctOT-BcjcqURs.js} +1 -1
- package/dist/assets/{ProductsCarousel-BUJiJFiX-BHdXJVWV.js → ProductsCarousel-BUJiJFiX-BzDzGkeP.js} +1 -1
- package/dist/assets/{PromoBaseCards-DwBIZ04X-BovCTw4-.js → PromoBaseCards-DwBIZ04X-BjLiNb-B.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-MjldLygA-BHVMfA9u.js → QBOConnectionDialog-MjldLygA-F5XVDM0C.js} +1 -1
- package/dist/assets/{QBOSetupSection-BknE7gT4-B1wY7X0G.js → QBOSetupSection-BknE7gT4-DY5jHtnb.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DH75g3pT-WgQ1f6n1.js → ReimbursementApprovalRuleDetailPage-DH75g3pT-CXqiP4jT.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-C0Plqj93-FjbcelWF.js → ReimbursementApprovalRulesPage-C0Plqj93-CfcH1Xln.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DNaaqXYR-fQnzyGQt.js → ReimbursementDetailPage-DNaaqXYR-Bh3Xalhl.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-X_lNy9W2-BOtmzmNq.js → ReimbursementPromoPage-X_lNy9W2-C1pHC8eu.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-DJrOp98g-C4tie5bv.js → ReimbursementSetUpPage-DJrOp98g-BrQav5BP.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BZL9RVfR-hNQNkikS.js → ReimbursementsBulkReviewDrawerPage-BZL9RVfR-CP3PDh7c.js} +1 -1
- package/dist/assets/{ReloadCard-aqfmXbU5-TeaWaIOz.js → ReloadCard-aqfmXbU5-CNPn4sKt.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-D93qno__-BFHmbylc.js → ReportTableViewSelector-D93qno__-2IAEqt0G.js} +1 -1
- package/dist/assets/{ReportsPage-B0G-7pwv-kj0A7PNF.js → ReportsPage-B0G-7pwv-CrA7-rtj.js} +1 -1
- package/dist/assets/{RevenueChart-BRlahWs9-ClMCTsw3.js → RevenueChart-BRlahWs9-BWAL9tc3.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-DaLjRiFW-DH1pO3BU.js → ReviewDetailsPage-DaLjRiFW-DJFP67SX.js} +1 -1
- package/dist/assets/{ReviewOverlay-yCaY1z8K-Y0rYlFxy.js → ReviewOverlay-yCaY1z8K-DkuN1BhY.js} +1 -1
- package/dist/assets/{RoleWithToolTip-C--9WRHn-CSitueNW.js → RoleWithToolTip-C--9WRHn-02oWnK_S.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-hn74AoeS-Dhn_4Mgq.js → ScheduleDetailsFixedAssetsPage-hn74AoeS-NWP9KPHn.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-DxdxAx1S-CIiBRojV.js → ScheduleDetailsPage-DxdxAx1S-B1IjQUUT.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-Dq0ZRi2H-D1a5nR8V.js → ScheduleSequenceTable-Dq0ZRi2H-8XOSgJiv.js} +1 -1
- package/dist/assets/{ScreenRoutes-CQtuw2xr.js → ScreenRoutes-DDAOQ4Jo.js} +1 -1
- package/dist/assets/{SetUpAccountSection-NP9u54_o-B4yTNPQs.js → SetUpAccountSection-NP9u54_o-Db7whHUF.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-BdVOXSh8-NrinDjPO.js → SetUpDefaultSection-BdVOXSh8-M71dwMGe.js} +1 -1
- package/dist/assets/{SignIn-nUeTTVKC-CJvTPeOF.js → SignIn-nUeTTVKC-CQFjsNXv.js} +1 -1
- package/dist/assets/{SignInScreen-BouHtcGb.js → SignInScreen-BzmXpPCl.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-CfzCjazp-CLg3V-ID.js → SpendManagementListViewPage-CfzCjazp-DIvePMuJ.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CBOlK1hg-DEzNL2pv.js → SpendManagementPerTabPage-CBOlK1hg-CNGRPHtG.js} +1 -1
- package/dist/assets/{SpendManagementSection-DFVWVBv8-Bnfi_ZJV.js → SpendManagementSection-DFVWVBv8-BaXurz43.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-ZPHoUnnr-Dh8eEb_J.js → SpendMgmtSetupAccountSection-ZPHoUnnr-BJcUWi60.js} +1 -1
- package/dist/assets/{StatementItem-CwkYfX3v-Dak8ss8U.js → StatementItem-CwkYfX3v-BfxIXxV9.js} +1 -1
- package/dist/assets/{StatementsPage-DpjcrDLZ-CI5Yw27o.js → StatementsPage-DpjcrDLZ-BOUbVppT.js} +1 -1
- package/dist/assets/{StatusSwitcher-6n_dRY-n-BNMaDHq9.js → StatusSwitcher-6n_dRY-n-CInUBfU5.js} +1 -1
- package/dist/assets/{SubTabSwitcher-DEXr9JG8-DYl-5nkS.js → SubTabSwitcher-DEXr9JG8-BesAFLAS.js} +1 -1
- package/dist/assets/{SummaryCard-DY8o3K8p-BAhmWEkq.js → SummaryCard-DY8o3K8p-Br_aBvet.js} +1 -1
- package/dist/assets/{TaskManagementPage-V-99_2Xz-DTPBZKOy.js → TaskManagementPage-V-99_2Xz-DDUfSx7p.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-5vzTnmwD-21oyU6e-.js → TimeRangeSwitcher-5vzTnmwD-CRsZg2b0.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-B1ZBKWlB-DhXXrYF_.js → TimeframeSwitcher-B1ZBKWlB-7HKYiomL.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-C8w7NoSs-BpbC3sMX.js → TimeframeSwitcherWithToggle-C8w7NoSs-DeUtdJdm.js} +1 -1
- package/dist/assets/{TopExCard-CflRvGFb-BAjYz-Iu.js → TopExCard-CflRvGFb-BSDi9hbk.js} +1 -1
- package/dist/assets/{TopExDetailPage-BNouRPM_-Fc2qW_d-.js → TopExDetailPage-BNouRPM_-V8w0Nl4l.js} +1 -1
- package/dist/assets/{TransactionDetailPage-uJRfI4fh-DesqTbc7.js → TransactionDetailPage-uJRfI4fh-YYHpyB0Q.js} +1 -1
- package/dist/assets/{TransactionList-C--m4NRu-UliJnI2L.js → TransactionList-C--m4NRu-I84SwAT3.js} +1 -1
- package/dist/assets/{TransactionListBig-Cbf9p6a1-DD-Iltyn.js → TransactionListBig-Cbf9p6a1-BQi6pxNr.js} +1 -1
- package/dist/assets/{TransactionListPage-BXQ4Ig8E-twBFfLzE.js → TransactionListPage-BXQ4Ig8E-1eaOmgJN.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CKdVogwj-DhA4vkZ6.js → TransactionVendorDetailPage-CKdVogwj-BU8bZBJz.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BS3lnMMA-D7Uz75yc.js → TransferDrawerPage-BS3lnMMA-BhGqf_F6.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-U1p6PrnG-BGJad2Km.js → TreasuryOverviewPage-U1p6PrnG-CTfDqCgy.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-C2wmo0Ex-BmAmX39K.js → TreasuryPromoPage-C2wmo0Ex-CAsi6MAz.js} +1 -1
- package/dist/assets/{TreasurySetupPage-CMl-qGhi-CNu0Qcao.js → TreasurySetupPage-CMl-qGhi-DDyv6zPQ.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-BdmLrhA5-D4Nu2ddG.js → TreasuryStatementsPage-BdmLrhA5-Cwzb6Y-J.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-Q7prcczk-D25azc_v.js → TreasuryTaxLetterPage-Q7prcczk-BMJV6RV_.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-CwvijEQN-Bwp2pRyY.js → TreasuryTransferOrReviewPage-CwvijEQN-CyNc0EBz.js} +1 -1
- package/dist/assets/{TrendChart-SEWDcga_-BO99NbSF.js → TrendChart-SEWDcga_-b1UZHoM_.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CgSaPEFh-CYd6HAWr.js → TrendWithTransactions-CgSaPEFh-CJCmbHDv.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-7LqO7hHL-BDugIDym.js → UncategorizedAccountsMappingPage-7LqO7hHL-Qf22hqtP.js} +1 -1
- package/dist/assets/{UnitIntegrationPage--jgHD8q1-S0pNI1GJ.js → UnitIntegrationPage--jgHD8q1-DGXvKzdF.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-D2Tin1CX-S9tpm7GT.js → UploadAdditionalDocumentOverlay-D2Tin1CX-7rKlqc-o.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-B0fwm9Q3-DbiowxgB.js → Vendor2FAPopup-B0fwm9Q3-BYhSuvCf.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BzgsncOJ-D-wRcBTA.js → VendorACHDetailsPage-BzgsncOJ-DOkcQ5fM.js} +1 -1
- package/dist/assets/{VendorDetailPage-CA3LTIGq-BWmGwvj9.js → VendorDetailPage-CA3LTIGq-jf7ffnJX.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-Ch42jvVt-Mj8sx7lI.js → VendorDomesticWireDetailsPage-Ch42jvVt-CyANzPJP.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-QjRWxn7V-CX1a7DDS.js → VendorFiling1099EditablePage-QjRWxn7V-BJSMNVS0.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-C-ONdLcA-B0_m6y9f.js → VendorFirstReviewPage-C-ONdLcA-Bipz9xJO.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-qDx2aiDq-a0VdSR9P.js → VendorInternationalWireDetailsPage-qDx2aiDq-CLtnsjyf.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DICOFwMp-qejyR4Yy.js → VendorInternationalWireSwiftDetailsPage-DICOFwMp-BJ2iH1IS.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-D0f3TRGG-D68uFCzI.js → VendorsAccountsSection-D0f3TRGG-DGo_EPvw.js} +1 -1
- package/dist/assets/{VerifyDevice-BMtMcC41-Dbg2e_4c.js → VerifyDevice-BMtMcC41-C2Aep0vv.js} +1 -1
- package/dist/assets/{VideoPlayer-DKMO88LY-CpdcOtzz.js → VideoPlayer-DKMO88LY-CihcSZAF.js} +1 -1
- package/dist/assets/{VideoPopup-2z3T5Lnh-DpdsoCXa.js → VideoPopup-2z3T5Lnh-CHZgVcWy.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-yRdYuhLZ-Rl0k4Hgw.js → WarningsDrawerPage-yRdYuhLZ-Bq-OqNLw.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-ISiEkizf-DqMBVEzK.js → ZeniAccountDetailPage-ISiEkizf-BZ56FvfW.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-BTrvu_w1-CvQRO_G0.js → ZeniAccountListViewPage-BTrvu_w1-Mm1U5sCA.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-C3IR1FEp-39hGD_At.js → ZeniAccountNavBarPieces-C3IR1FEp-Jc31zuuu.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-Dac1THyO-Cwp-e4be.js → ZeniAccountPromoPage-Dac1THyO-DBLjXw3q.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-ZSfjnq4--Cch7x_8N.js → ZeniAccountSetupPage-ZSfjnq4--2G4QtNy6.js} +1 -1
- package/dist/assets/{ZeniCopyright-C4Hdl7V0-Ca9rvA1h.js → ZeniCopyright-C4Hdl7V0-DCl3xitc.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Co5sY7gl-BoVHF7sd.js → ZeniTransferAmountSlider-Co5sY7gl-DtKUG0sE.js} +1 -1
- package/dist/assets/{analyticsHelper-CaxfROfX-BJw_t2lW.js → analyticsHelper-CaxfROfX-BZwqcE9n.js} +1 -1
- package/dist/assets/{analyticsHelper-Cf24DjyD.js → analyticsHelper-CpeZY9M2.js} +1 -1
- package/dist/assets/{chartTypes-CQLwj1wn-DieV0CBv.js → chartTypes-CQLwj1wn-BRADgKQf.js} +1 -1
- package/dist/assets/{commonDimensions-BqqLiZ_H-B0_d-72y.js → commonDimensions-BqqLiZ_H-X7QteB7-.js} +1 -1
- package/dist/assets/{detailCommon-_wteS7vQ-C_UD8u6z.js → detailCommon-_wteS7vQ-BlDnvf72.js} +1 -1
- package/dist/assets/{downloadPdf-DqURwcIt-CmMnbB-x.js → downloadPdf-DqURwcIt-cyNLfpwv.js} +1 -1
- package/dist/assets/{index-BkGkQn7J.js → index-RcMUg6rr.js} +3 -3
- package/dist/assets/{mapLoadingInProgressToTreeNode-kidLNkmQ-CU04H-qr.js → mapLoadingInProgressToTreeNode-kidLNkmQ-Dbws8prW.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BSUhjNT5-J3kjBIi7.js → mapSectionWithAcOnlyToTreeNode-BSUhjNT5-BKwhf6qT.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-m5nGTY8W-trYJ4bob.js → mapSpacerToTreeNode-m5nGTY8W-CzCeMk6H.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CHHGNXiT-D9Kz1L-n.js → mapTimeframeBalancesToTreeNode-CHHGNXiT-Dl3JMEe8.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-D5QkbXkx-D1QrAIga.js → mapTimeframeBalancesToTreeNode-D5QkbXkx-CsbvFuim.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-o4l_IoBF-BIaJA13t.js → mapTimeframeHeaderLoadingInProgressToTreeNode-o4l_IoBF-BBotayyZ.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-bhm-pCR2-Cjf_xcN8.js → toCOABalancesWithID-bhm-pCR2-CtRyWh7a.js} +1 -1
- package/dist/assets/{toChartData-3h9AvMdw-BtuTX52b.js → toChartData-3h9AvMdw-CxwHop5O.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CJ61L8mT-DGtx7Czf.js → treasuryColorHelper-CJ61L8mT-DS0868j3.js} +1 -1
- package/dist/assets/{uploadAttachment-Bf61v1Xo-BdDTy9wy.js → uploadAttachment-Bf61v1Xo-B7uvvQf2.js} +1 -1
- package/dist/assets/{uploadReceipts-CPeNTSex-B9QC1Ib6.js → uploadReceipts-CPeNTSex-DsNuxnXH.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-gA22hWiI-zVgsGpbA.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ee,e as Ve,a2 as N,a as Ge,cc as qe,M as Te,l as Je,a8 as be,j as t,cR as Qe,g as J,C as r,aY as Ze,h as Xe,F as Ke,dQ as Ye,aT as et,dG as tt,a4 as it,o as a,r as n,bQ as nt,cp as ot,cx as at,f5 as ve,f6 as ke,fQ as lt,X as rt,Z as $e,b as Pe,bf as st,w as ct,aQ as dt}from"./index-
|
|
1
|
+
import{u as Ee,e as Ve,a2 as N,a as Ge,cc as qe,M as Te,l as Je,a8 as be,j as t,cR as Qe,g as J,C as r,aY as Ze,h as Xe,F as Ke,dQ as Ye,aT as et,dG as tt,a4 as it,o as a,r as n,bQ as nt,cp as ot,cx as at,f5 as ve,f6 as ke,fQ as lt,X as rt,Z as $e,b as Pe,bf as st,w as ct,aQ as dt}from"./index-RcMUg6rr.js";import{b as o,n as i}from"./vendor-rkTZJa59.js";import{D as ut}from"./HelpButton-CzyBnp0B-B4qln9tA.js";import{J as je}from"./SetUpDefaultSection-BdVOXSh8-M71dwMGe.js";import{f as mt}from"./SpendMgmtSetupAccountSection-ZPHoUnnr-BJcUWi60.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-D2Tin1CX-7rKlqc-o.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./MeetingCalenderPopup-CGGit3Ny-CiZ-1m4B.js";import"./ChargeCardUtils-DaDe1sIq-NwQ1CJ2W.js";import"./CreditCardPaymentPlgSection-BbVnrMer-Db7C8egU.js";import"./ChaseOverlay-C1SVk4v1-DW3UeCAS.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:Q}){const l=Ve(),D=Ee(),{formState:{errors:Z},trigger:X}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(Z,E),{localData:c,updateStatus:F,mileageStatus:C}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:K,spendManagement:Y}=Te.getLocalizedStrings(),{reimbursement:ee}=Y,[S,V]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{f||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:x}=ee,{setUp:ie}=K,ne=S===!1||F.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(Ct,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(St,{children:x.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:ke(C.code)}):null]}),t.jsxs(yt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:C.name,textColor:ke(C.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:S||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(Lt,{children:S?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&Q?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(It,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),W(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as O,j as b,bX as V,bZ as X,b_ as W,jr as Z,ab as q,l as z}from"./index-
|
|
1
|
+
import{M as O,j as b,bX as V,bZ as X,b_ as W,jr as Z,ab as q,l as z}from"./index-RcMUg6rr.js";import{b as f}from"./vendor-rkTZJa59.js";import{p as Q}from"./ReviewOverlay-yCaY1z8K-DkuN1BhY.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const{common:n,spendManagement:{reimbursement:k}}=O.getLocalizedStrings(),o=k.bulkActions;let I;const ae=({remisReviewView:e,isAdmin:l,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,a]=f.useState(!1),[m,_]=f.useState(P(e,h,l)),[x,R]=f.useState(h),[B,H]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,l)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,l]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=Y(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),a(!0)},$={onOkClick:u=>{a(!1);const T=e.remisForReview.map(j=>j.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,z.getRemiListUniqueType(T.map(j=>j?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{a(!1)}},{title:L,description:U}=G(p,S,E,x),C=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},M=()=>{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:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={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:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(V,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(X,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:M(),cancelButton:N,hideCancel:C}})]})},P=(e,l,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=Z(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.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??""}}})},Y=e=>{const{this_:l,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_>",l).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},G=(e,l,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=l>1,a=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",a?k.bulkActions.reports:o.report).replace("<_has_>",a?s:r),l===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",a?c:p).replace("<_do_>",a?g:h):_=`${l}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",a?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",a?c:p)),{title:m,description:_}};export{ae as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as h,j as r,Y as a,Z as m,ai as j,M as w,a5 as l,a$ as x,w as g,o as c,aj as C}from"./index-
|
|
1
|
+
import{u as h,j as r,Y as a,Z as m,ai as j,M as w,a5 as l,a$ as x,w as g,o as c,aj as C}from"./index-RcMUg6rr.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 M({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 y=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 K,e as ie,bL as me,a as fe,j as o,q as ge,M as X,bM as ee,F as xe,C as P,a4 as be,o as n,bN as ye,bO as we,bP as _e,bQ as $e,bR as ve,n as ce,bS as Ce,r as p,w as ke,I as Q,a$ as je,a8 as Ne,s as Se,b3 as Ie}from"./index-
|
|
1
|
+
import{u as K,e as ie,bL as me,a as fe,j as o,q as ge,M as X,bM as ee,F as xe,C as P,a4 as be,o as n,bN as ye,bO as we,bP as _e,bQ as $e,bR as ve,n as ce,bS as Ce,r as p,w as ke,I as Q,a$ as je,a8 as Ne,s as Se,b3 as Ie}from"./index-RcMUg6rr.js";import{b as f,f as de,n as d}from"./vendor-rkTZJa59.js";import{W as O,R as Pe}from"./CollapsableReportTable-QtToztmP-DQt1k1-B.js";const z=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Oe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}: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(z):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Oe(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 no(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Fe(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(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 ${n.sp3} 0 ${n.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 U,u as G,M as y,Q as he,l as _,j as r,Z as k,bh as fe,a_ as me,aY as ge,C as v,o as C,a6 as _e,h as be,bi as Se,r as w,H as B,I as J,bj as we,a8 as Ce,aD as ye,b1 as xe}from"./index-BkGkQn7J.js";import{b as P,f as K,n as b}from"./vendor-rkTZJa59.js";import{m as z,l as Z}from"./analyticsHelper-CaxfROfX-BJw_t2lW.js";import{h as Oe}from"./ReportTableViewSelector-D93qno__-BFHmbylc.js";import{a as X,p as Re}from"./TimeRangeSwitcher-5vzTnmwD-21oyU6e-.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-C8w7NoSs-BpbC3sMX.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-D6S9Obtr-Cl7jFmI9.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-QtToztmP-Dtu3g55w.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-BSUhjNT5-J3kjBIi7.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-D5QkbXkx-D1QrAIga.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-o4l_IoBF-BIaJA13t.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-kidLNkmQ-CU04H-qr.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./TimeframeSwitcher-B1ZBKWlB-DhXXrYF_.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-36Vtwpnr-DYEexfmz.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=Y({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=Y({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=Y({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 U,u as G,M as y,Q as he,l as _,j as r,Z as k,bh as fe,a_ as me,aY as ge,C as v,o as C,a6 as _e,h as be,bi as Se,r as w,H as B,I as J,bj as we,a8 as Ce,aD as ye,b1 as xe}from"./index-RcMUg6rr.js";import{b as P,f as K,n as b}from"./vendor-rkTZJa59.js";import{m as z,l as Z}from"./analyticsHelper-CaxfROfX-BZwqcE9n.js";import{h as Oe}from"./ReportTableViewSelector-D93qno__-2IAEqt0G.js";import{a as X,p as Re}from"./TimeRangeSwitcher-5vzTnmwD-CRsZg2b0.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-C8w7NoSs-DeUtdJdm.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-D6S9Obtr-D2mA2KNN.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-QtToztmP-DQt1k1-B.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-BSUhjNT5-BKwhf6qT.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-D5QkbXkx-CsbvFuim.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-o4l_IoBF-BBotayyZ.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-kidLNkmQ-Dbws8prW.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./TimeframeSwitcher-B1ZBKWlB-7HKYiomL.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-36Vtwpnr-4z2Yans3.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=Y({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=Y({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=Y({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,M as S,e as de,Z as Ae,aj as Q,b8 as Te,r as E,b9 as J,aw as ee,$ as M,av as ae,ab as re,ba as oe,bb as ge,o as m,bc as te,g,I as Fe,bd as pe,be as me,C as xe,bf as fe,s as P,bg as F,ap as V}from"./index-
|
|
1
|
+
import{u as A,j as a,M as S,e as de,Z as Ae,aj as Q,b8 as Te,r as E,b9 as J,aw as ee,$ as M,av as ae,ab as re,ba as oe,bb as ge,o as m,bc as te,g,I as Fe,bd as pe,be as me,C as xe,bf as fe,s as P,bg as F,ap as V}from"./index-RcMUg6rr.js";import{b as R,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 se,u as T}from"./chartTypes-CQLwj1wn-BRADgKQf.js";import{i as K,h as ce,c as G}from"./toCOABalancesWithID-bhm-pCR2-CtRyWh7a.js";import{V as Z}from"./toChartData-3h9AvMdw-CxwHop5O.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,Q as vt,C as y,cK as jt,M as St,cL as Ct,cM as Dt,j as t,cN as It,cO as le,cP as At,l as s,cQ as Pt,cR as kt,Z as j,cS as Mt,a0 as k,cT as Bt,cU as Nt,cV as ke,cW as Me,cX as Be,$ as G,cY as O,cZ as z,c_ as _,g as S,c$ as Rt,d0 as Ft,d1 as Lt,d2 as Et,bq as Ne,o as n,a4 as Ot,r as c,f as zt,bA as _t,b as Wt,c as Ut,d3 as Zt,bQ as Ht,s as de,n as se,d4 as Vt,d5 as Yt,aC as Gt,_ as qt,ao as Kt,J as Qe,b7 as Qt,w as Xe,aQ as Xt,d6 as Jt}from"./index-BkGkQn7J.js";import{b as U,n as i}from"./vendor-rkTZJa59.js";import{t as en,o as tn}from"./LowBalancePopup-CQQrhufv-BRlLHtBa.js";import{S as W}from"./LabeledText-DZVRFAkG-DkVxNbLd.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.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:Re,common:{currency:v,labels:Fe,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Le}=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(Vt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Yt,{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:X,retryPayment:ot})=>{const d=Tt(),m=vt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,R=`dashboard_${m.currentTenant?.companyId}`,F=p.largeLabelWidth.value(d),L=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=Re.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),[dt,xe]=U.useState(!1),fe=()=>ge(!1),st=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Pn,{size:d,children:t.jsx(An,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(L?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[L,J,ye,me,ue]);const T=e.billPayInfo?.stage,A=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:A?.code=="approved"&&Z?.code?Z:A,pt=e.billPayInfo?.isRefundInitiated===!0?mt:A?.code=="approved"&&Z?.code?Z:A,ne=()=>{ce()},be=()=>{ce()},H=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:we,onClick:st}):a.addedByZeni,V=w.allApprovalRules.length>0,yt=s.toAmount(o?.method!=null&&(o.method.includes(s.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-E.amount:u.amount,o?.fee.currencyCode??s.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??s.defaultVendorCurrency.currencySymbol),g=s.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)},P=g&&(T?.code!=null?T.code==="draft"||A?.code==="approved":!0),b=P&&!it,Te=Oe(b,V,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(s.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Ft(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?Pt(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(Re.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:s.zeniDate(I?.startDate?.toString()??"").format(D),endDate:s.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=A?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Ae=Jt(m.loggedInUser),Pe=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Ae,Pe):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Ae,Pe)}}},ve=()=>{je===!0&&Y(!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=s.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,Y]=U.useState(!1);return t.jsxs(hn,{children:[dt?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:L?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:ve,onCancelClick:()=>{Y(!1),ne()},onClickAway:()=>{Y(!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:H?.format(D)??"",paymentType:we,amount:k("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:d,style:tt,children:[d==="small"?t.jsxs(In,{windowSize:d,children:[t.jsx(Ve,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ve,{onClick:be})}),d!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:d,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:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Ln,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(En,{children:Je.includes(d)?t.jsxs(Ue,{windowSize:d,children:[t.jsxs(jn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ee,{attachment:l.attachments[0]}):t.jsx(Ye,{children:t.jsx(Ge,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(qe,{windowSize:d,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Rn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{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:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ee,{attachment:l.attachments[0]}):t.jsx(Ye,{children:t.jsx(Ge,{})}),t.jsxs(Fn,{"data-testid":j("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(qe,{style:{width:"25%"},windowSize:d,children:k("0,0[.]00",l.amount)})]}),t.jsx(Ke,{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(Ze,{children:a.pay}),t.jsx(He,{children:t.jsx(Be,{amount:yt,integerStyles:G.largeMedium.cssObject,decimalStyles:G.smallMedium.cssObject})}),t.jsx(Ze,{children:a.to}),t.jsx(He,{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:R,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?Rt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(d),marginTop:p.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,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(q,{}),!g&&H!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,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:H.format(D),additionalInfoLabel:`${a.estimatedArrival}${s.zeniDate(s.getNextNthWorkingDay(H.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(q,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,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(q,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,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:Lt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(s.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:d,children:[t.jsxs(un,{children:[t.jsx(dn,{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(s.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==v.currencyCode?Le.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:Le.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:E.amount,currencySymbol:E.currencySymbol})})]}),t.jsx(sn,{}),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:s.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:G.h6Medium.cssObject,decimalStyles:G.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?$e:ne,style:{width:ze(!1,P,b,V,d)}},primaryBtn:{label:Oe(b,V,e.isBillMarkedForRetry),isLoading:L?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?Y(!0):ve()},style:{width:ze(!0,P,b,V,d)}},rightSideComponent:P&&!b&&L.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:d,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(s.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(s.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(s.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,Q as vt,C as y,cK as jt,M as St,cL as Ct,cM as Dt,j as t,cN as It,cO as le,cP as At,l as s,cQ as Pt,cR as kt,Z as j,cS as Mt,a0 as k,cT as Bt,cU as Nt,cV as ke,cW as Me,cX as Be,$ as G,cY as O,cZ as z,c_ as _,g as S,c$ as Rt,d0 as Ft,d1 as Lt,d2 as Et,bq as Ne,o as n,a4 as Ot,r as c,f as zt,bA as _t,b as Wt,c as Ut,d3 as Zt,bQ as Ht,s as de,n as se,d4 as Vt,d5 as Yt,aC as Gt,_ as qt,ao as Kt,J as Qe,b7 as Qt,w as Xe,aQ as Xt,d6 as Jt}from"./index-RcMUg6rr.js";import{b as U,n as i}from"./vendor-rkTZJa59.js";import{t as en,o as tn}from"./LowBalancePopup-CQQrhufv-ooiA9ZXC.js";import{S as W}from"./LabeledText-DZVRFAkG-rHxfEtQQ.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.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:Re,common:{currency:v,labels:Fe,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Le}=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(Vt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Yt,{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:X,retryPayment:ot})=>{const d=Tt(),m=vt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,R=`dashboard_${m.currentTenant?.companyId}`,F=p.largeLabelWidth.value(d),L=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=Re.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),[dt,xe]=U.useState(!1),fe=()=>ge(!1),st=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Pn,{size:d,children:t.jsx(An,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(L?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[L,J,ye,me,ue]);const T=e.billPayInfo?.stage,A=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:A?.code=="approved"&&Z?.code?Z:A,pt=e.billPayInfo?.isRefundInitiated===!0?mt:A?.code=="approved"&&Z?.code?Z:A,ne=()=>{ce()},be=()=>{ce()},H=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:we,onClick:st}):a.addedByZeni,V=w.allApprovalRules.length>0,yt=s.toAmount(o?.method!=null&&(o.method.includes(s.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-E.amount:u.amount,o?.fee.currencyCode??s.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??s.defaultVendorCurrency.currencySymbol),g=s.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)},P=g&&(T?.code!=null?T.code==="draft"||A?.code==="approved":!0),b=P&&!it,Te=Oe(b,V,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(s.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Ft(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?Pt(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(Re.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:s.zeniDate(I?.startDate?.toString()??"").format(D),endDate:s.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=A?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Ae=Jt(m.loggedInUser),Pe=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Ae,Pe):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Ae,Pe)}}},ve=()=>{je===!0&&Y(!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=s.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,Y]=U.useState(!1);return t.jsxs(hn,{children:[dt?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:L?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:ve,onCancelClick:()=>{Y(!1),ne()},onClickAway:()=>{Y(!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:H?.format(D)??"",paymentType:we,amount:k("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:d,style:tt,children:[d==="small"?t.jsxs(In,{windowSize:d,children:[t.jsx(Ve,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ve,{onClick:be})}),d!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:d,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:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Ln,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(En,{children:Je.includes(d)?t.jsxs(Ue,{windowSize:d,children:[t.jsxs(jn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ee,{attachment:l.attachments[0]}):t.jsx(Ye,{children:t.jsx(Ge,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(qe,{windowSize:d,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Rn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{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:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ee,{attachment:l.attachments[0]}):t.jsx(Ye,{children:t.jsx(Ge,{})}),t.jsxs(Fn,{"data-testid":j("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(qe,{style:{width:"25%"},windowSize:d,children:k("0,0[.]00",l.amount)})]}),t.jsx(Ke,{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(Ze,{children:a.pay}),t.jsx(He,{children:t.jsx(Be,{amount:yt,integerStyles:G.largeMedium.cssObject,decimalStyles:G.smallMedium.cssObject})}),t.jsx(Ze,{children:a.to}),t.jsx(He,{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:R,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?Rt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(d),marginTop:p.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,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(q,{}),!g&&H!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,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:H.format(D),additionalInfoLabel:`${a.estimatedArrival}${s.zeniDate(s.getNextNthWorkingDay(H.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(q,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,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(q,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,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:Lt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(s.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:d,children:[t.jsxs(un,{children:[t.jsx(dn,{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(s.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==v.currencyCode?Le.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:Le.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:E.amount,currencySymbol:E.currencySymbol})})]}),t.jsx(sn,{}),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:s.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:G.h6Medium.cssObject,decimalStyles:G.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?$e:ne,style:{width:ze(!1,P,b,V,d)}},primaryBtn:{label:Oe(b,V,e.isBillMarkedForRetry),isLoading:L?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?Y(!0):ve()},style:{width:ze(!0,P,b,V,d)}},rightSideComponent:P&&!b&&L.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:d,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(s.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(s.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(s.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-yCaY1z8K-Y0rYlFxy.js → ReviewOverlay-yCaY1z8K-DkuN1BhY.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,c as W,g as s,s as y,c8 as R,h as I,w as j,aB as D,r as n,el as G,az as A,ij as F,jq as q}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,c as W,g as s,s as y,c8 as R,h as I,w as j,aB as D,r as n,el as G,az as A,ij as F,jq as q}from"./index-RcMUg6rr.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])},H={title:new C("h6Regular","h5Regular")},xi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const l=B();return e.jsxs(O,{children:[e.jsx(V,{windowSize:l,children:e.jsx(X,{children:e.jsx(Y,{windowSize:l,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":x("review-overlay-close",i)})})})})}),e.jsxs(Q,{windowSize:l,children:[e.jsxs(Z,{windowSize:l,children:[e.jsx(_,{children:e.jsx(K,{windowSize:l,children:i})}),e.jsx(N,{isError:p.isError,windowSize:l,children:p.content})]}),e.jsx(U,{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:J(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:T,showCancel:!E}):null]})},J=i=>i.reviewStatus.isLoading?e.jsx(I,{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,{}),O=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${i=>i.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-C--9WRHn-CSitueNW.js → RoleWithToolTip-C--9WRHn-02oWnK_S.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eQ as h,eR as x,j as t,bq as m,o as n,Z as o,M as g,m as j,w as p}from"./index-
|
|
1
|
+
import{eQ as h,eR as x,j as t,bq as m,o as n,Z as o,M as g,m as j,w as p}from"./index-RcMUg6rr.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 X,l as me,hM as ee,gc as fe,eA as we,hN as Je,a as Me,hO as Ve,cc as _e,cd as Pe,j as a,M as be,F as Fe,bX as Ne,bZ as qe,b_ as Re,a4 as $e,hP as Be,hQ as Ue,E as he,hR as Se,hS as We,cp as ze,e as Ge,i4 as Xe,gh as re,r as $,g as De,C as Ce,cf as Ye,hT as He,hU as Ke,hV as Qe,o as _}from"./index-
|
|
1
|
+
import{a2 as X,l as me,hM as ee,gc as fe,eA as we,hN as Je,a as Me,hO as Ve,cc as _e,cd as Pe,j as a,M as be,F as Fe,bX as Ne,bZ as qe,b_ as Re,a4 as $e,hP as Be,hQ as Ue,E as he,hR as Se,hS as We,cp as ze,e as Ge,i4 as Xe,gh as re,r as $,g as De,C as Ce,cf as Ye,hT as He,hU as Ke,hV as Qe,o as _}from"./index-RcMUg6rr.js";import{b as m,n as U}from"./vendor-rkTZJa59.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-Dq0ZRi2H-8XOSgJiv.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const B={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=U.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,hM as Q,gc as Ae,eA as Ie,hN as Je,a as Le,hO as we,cc as Me,cd as Ve,j as a,M as De,F as Pe,bX as Fe,bZ as $e,b_ as _e,a4 as Ne,hP as Be,hQ as Ue,E as re,hR as pe,hS as ze,cp as Re,e as We,gh as me,r as X,g as qe,C as Ke,hT as He,hU as Ye,hV as Ge,o as L}from"./index-
|
|
1
|
+
import{a2 as $,l as ie,hM as Q,gc as Ae,eA as Ie,hN as Je,a as Le,hO as we,cc as Me,cd as Ve,j as a,M as De,F as Pe,bX as Fe,bZ as $e,b_ as _e,a4 as Ne,hP as Be,hQ as Ue,E as re,hR as pe,hS as ze,cp as Re,e as We,gh as me,r as X,g as qe,C as Ke,hT as He,hU as Ye,hV as Ge,o as L}from"./index-RcMUg6rr.js";import{b as D,n as P}from"./vendor-rkTZJa59.js";import{i as Qe,r as Xe,n as Ze,o as et}from"./ScheduleSequenceTable-Dq0ZRi2H-8XOSgJiv.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.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 I,u as U,j as t,hW as ie,M as N,hX as oe,b as le,hY as ge,dS as fe,cX as we,$ as A,hZ as ye,hV as be,o as i,C as b,g as j,_ as $e,E as re,dN as je,bX as Se,b_ as ke,cp as Z,cx as ee,cv as ve,h_ as G,h$ as Ce,aj as De,i0 as ze,c0 as Me,i1 as Le,r as h,s as L,ao as Ee,bZ as Oe,q as pe,cy as Ae,ah as ne,cJ as Ie,a4 as Te,l as q,i2 as T,fQ as Fe,a0 as Ve,i3 as Je,a8 as X,cz as Be,aB as Pe}from"./index-
|
|
1
|
+
import{e as I,u as U,j as t,hW as ie,M as N,hX as oe,b as le,hY as ge,dS as fe,cX as we,$ as A,hZ as ye,hV as be,o as i,C as b,g as j,_ as $e,E as re,dN as je,bX as Se,b_ as ke,cp as Z,cx as ee,cv as ve,h_ as G,h$ as Ce,aj as De,i0 as ze,c0 as Me,i1 as Le,r as h,s as L,ao as Ee,bZ as Oe,q as pe,cy as Ae,ah as ne,cJ as Ie,a4 as Te,l as q,i2 as T,fQ as Fe,a0 as Ve,i3 as Je,a8 as X,cz as Be,aB as Pe}from"./index-RcMUg6rr.js";import{b as D,n as l,j as B}from"./vendor-rkTZJa59.js";const R=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:z},common:se}=N.getLocalizedStrings();function Ne({defaultValue:e,name:o,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}=Z(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(g,o),x=I(),a=U();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ke,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:R(o,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(Ye,{children:[t.jsx(Re,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(He,{alignLeft:r===!0,children:[t.jsx(Ze,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ue,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:z.pickDate},radioField:{id:"day",name:R(o,"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(Ie,{name:R(o,"dayOfMonth"),type:"number",placeholder:z.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:z.ofEveryMonth})]}),t.jsx(We,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${o}.dayOfMonth`,$),S(`${o}.type`,"day")}})]}),t.jsx(et,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:z.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:R(o,"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(Te,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:_e(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Re({placeholder:e,defaultValue:o,isDisabled:s}){return t.jsxs(qe,{isDisabled:s!=null,children:[o?.type==null?t.jsx(Xe,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:z.daysOfMonth[`${o.dayOfMonth}`]}),t.jsx(W,{children:z.ofEveryMonth})]}):null,o?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:z.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:z.ofEveryMonth})]}):null]})}function We({defaultValue:e,onClick:o}){return t.jsxs(Qe,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(q.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})})]})}const _e=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ye=l.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,qe=l.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ut,e as en,l as Y,kg as Ke,kh as tt,C as dt,ki as cd,kj as fd,kk as tn,kl as ld,km as Tt,M as ir,kn as Bt,ko as qt,h as rn,o as kt,kp as hd,kq as dd,aE as Ft,aF as Kl,dR as Lt,kr as pd,ks as md,r as yn,kt as gd,ku as Yl,kv as vd,kw as Jl,bj as Xl,H as zo,kx as yd,ky as _d,kz as bd,kA as Ql,kB as wd,kC as Sd,kD as Ed,kE as Rd,kF as Od,kG as Td,kH as xd,kI as Cd,kJ as Ad,kK as Id,kL as Pd,kM as kd,kN as Ld,gt as qd}from"./index-
|
|
1
|
+
import{u as Ut,e as en,l as Y,kg as Ke,kh as tt,C as dt,ki as cd,kj as fd,kk as tn,kl as ld,km as Tt,M as ir,kn as Bt,ko as qt,h as rn,o as kt,kp as hd,kq as dd,aE as Ft,aF as Kl,dR as Lt,kr as pd,ks as md,r as yn,kt as gd,ku as Yl,kv as vd,kw as Jl,bj as Xl,H as zo,kx as yd,ky as _d,kz as bd,kA as Ql,kB as wd,kC as Sd,kD as Ed,kE as Rd,kF as Od,kG as Td,kH as xd,kI as Cd,kJ as Ad,kK as Id,kL as Pd,kM as kd,kN as Ld,gt as qd}from"./index-RcMUg6rr.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 jd}from"./vendor-rkTZJa59.js";import{f as Dd}from"./analyticsHelper-CpeZY9M2.js";import{g as rt,u as Ie,f as Ye}from"./redux-2gfZRks6.js";import{a as Je,d as pt,e as Nd,N as er,R as wt,c as qe,u as Zo,b as Go}from"./routing-CH3KJxCW.js";import{B as ze}from"./analytics-CcevxdRy.js";import{p as Oe}from"./sentry-osuhWjvS.js";import{a as Qe,b as $d,c as Wo,d as Md,e as Ko,f as Yo,g as Fd,h as Ud,i as zt,j as th,k as rr,l as an,m as Bd,n as Vd,o as zd,p as Gd,q as Hd,s as Zd,t as Wd,u as rh,v as on,w as ar}from"./crypto-CK3r1iTV.js";import{r as Kd}from"./lodash-BWJmwMit.js";import"./liveblocks-CP09Cz-7.js";const Yd={overlayWidth:new dt(100,100,50)},{common:{strings:vs}}=ir.getLocalizedStrings();function Jd(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 Xd(e,n){return{headerData:{selectedTabOption:Tt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Qd=Ye(Xd,Jd)(ld);function _n({isDrawerOpen:e}){const n=Je(),a=rt(),i=Ut(),o=en(),{companyId:t}=pt(),[r,s]=Nd(),[p,l]=Se.useState(!1),u=Ie(b=>Y.getCompanyHealthMetricView(b)),f=Ie(b=>Y.getCompanyManagementView(b)),{additionalChurnFactors:d}=Ie(b=>Y.getCompanyHealthMetricConfig(b)),{selectedCompanyDetail:w,selectedCompanyId:h,localFormDataAndStatusByCompanyId:v}=u,m=Ie(b=>b.companyViewState.zeniUsers.fetchState),c=Ie(b=>b.companyHealthMetricConfigViewState);if(Se.useEffect(()=>{const b=y=>y==="Not-Started"||y==="Error";u.fetchState==="Completed"?a(Y.fetchAllCockpitViews(!1)):b(u.fetchState)&&(a(Y.fetchCompanyHealthMetricView()),b(m)&&a(Y.fetchZeniUsers()),b(c.fetchState)&&a(Y.fetchCompanyHealthMetricConfig()))},[u.fetchState,c.fetchState]),Se.useEffect(()=>{t!=null&&u.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Y.initializeCompanyHealthMetricViewLocalData(t)),w!=null&&(Ke.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:w.companyInfo.companyId,companyName:w.companyInfo.name,churnProbability:w.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[u.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),tt.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return X.jsxs(X.Fragment,{children:[e===!0||h!=null&&w!=null?X.jsx(nn,{anchor:"right",open:h!=null,PaperProps:{style:{width:Yd.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Y.removeSelectedCompanyId()),children:X.jsx(cd,{roomId:`cockpit_${h}`,autoConnect:!0,children:X.jsx(fd,{onSaveClick:()=>{h!=null&&a(Y.saveCompanyHealthMetricById(h))},onSaveChangesToLocalStore:b=>{u.selectedCompanyId!=null&&a(Y.updateCompanyHealthMetricLocalStore({companyId:u.selectedCompanyId,updatedLocalData:b}))},localData:v?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:u,onCloseDrawer:()=>a(Y.removeSelectedCompanyId()),analytics:Ke,urlSource:p,additionalChurnFactorsOptions:d})})}):null,X.jsx(Qd,{healthView:u,managementView:f,navigate:n,mixpanelHMUrl:tn.mixpanelHMUrl})]})}const nh=(e,n)=>{const a=[...e??[]];return a.push(n),a},ep=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},tp=(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 rp(){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 np={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)??np.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 ip=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?X.jsx(ap,{children:X.jsx(rn,{size:"ExtraLarge",start:!0})}):null,ap=ut.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|