@zeniai/web-cockpit-ui 1.14.73-dev → 1.14.73-prod
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-FHBR2PCA-DLva-SPh.js → ACHDetailsPage-FHBR2PCA-HkcKNtmA.js} +1 -1
- package/dist/assets/{AIPerformancePage-CiYLvD6Z-bHSk8bLC.js → AIPerformancePage-CiYLvD6Z-DQVcv_zB.js} +1 -1
- package/dist/assets/{AccountInfoPage-B0uMPZhx-BIQF2gH2.js → AccountInfoPage-B0uMPZhx-1fLlD4TH.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-CdgOtpop-AHRejHe6.js → AccountInfoPageContent-CdgOtpop-_9LalwZJ.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-DnQEp6tD-BW8Fp--s.js → AccountLockedInfoModal-DnQEp6tD-C6NZHUEt.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-BxjUNX_b-C4CXpIA8.js → AccountReconDetailsDrawerPage-BxjUNX_b-BLWNnsvK.js} +1 -1
- package/dist/assets/{AccountRow-C6z4Ft3r-BFimoTCg.js → AccountRow-C6z4Ft3r-Dy3ZSja-.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-BS-HxQ5z-BoaDvf04.js → AccountsPromoCardStack-BS-HxQ5z-DW9HQtxR.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-qa7RqzlX-DAOW06gk.js → AddAddressForCardDrawer-qa7RqzlX-DH6nNaOp.js} +1 -1
- package/dist/assets/{AddToWalletPage-DNjsPMFK-r8gZ63eR.js → AddToWalletPage-DNjsPMFK-B3tpyPTr.js} +1 -1
- package/dist/assets/{AgingReportsPage-Dmgvzu2b-DiSOGn-n.js → AgingReportsPage-Dmgvzu2b-CzMGMmnR.js} +1 -1
- package/dist/assets/{AllUserItems-BBC-qn-o-D2MAzw4F.js → AllUserItems-BBC-qn-o-DlT3BjvQ.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-YWdtNxkt-5BxHOM_M.js → ApAgingDetailPage-YWdtNxkt-Cm99aOSX.js} +1 -1
- package/dist/assets/{AppBasePage-BnA8ceAD-BvanHCQt.js → AppBasePage-BnA8ceAD-ClIDXrWw.js} +1 -1
- package/dist/assets/{AppDrawerContent-DKHWPZQW-CEAxNC9t.js → AppDrawerContent-DKHWPZQW-DwaAulVj.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-D4Vz_gLv-DJSQNR5P.js → ApprovalRulesSettingsPage-D4Vz_gLv-DrsOQkZo.js} +1 -1
- package/dist/assets/{ArAgingChart-CuHk_U2p-D7juYPVe.js → ArAgingChart-CuHk_U2p-D7Wl5WOE.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-H77B2AWo-DYwzxBIW.js → ArAgingDetailPage-H77B2AWo--Nvalm1t.js} +1 -1
- package/dist/assets/{AttachmentView-D1SPuem6-CmH4xHN2.js → AttachmentView-D1SPuem6-DcMyqq5e.js} +1 -1
- package/dist/assets/{BankAccountSection-ByfDYmEM-WCmaTn1f.js → BankAccountSection-ByfDYmEM-CrSc1suX.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-BTCdQgZV-Bb72qOHU.js → BankAccountWarningSection-BTCdQgZV-CYK6vaXe.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-L62aMW_s-Ce_PfdvA.js → BankConnectionsSettingsPage-L62aMW_s-0HPySbBW.js} +1 -1
- package/dist/assets/{BillDetailPage-BBQJpRTI-D0MlJ03G.js → BillDetailPage-BBQJpRTI-CQv6ES_m.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-ByLLupWf-BGMDsIwH.js → BillPayApprovalRuleDetailPage-ByLLupWf-Cq8WqxJP.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-D4d-6Jnf-CF6fIJls.js → BillPayApprovalRulesPage-D4d-6Jnf-BQLW6--D.js} +1 -1
- package/dist/assets/{BillPayPromoPage-CPGYF3vl-DVnbNH0W.js → BillPayPromoPage-CPGYF3vl-C5JjD_r-.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-CeciDq-c-NzaXshML.js → BillPaySetUpPage-CeciDq-c-DbG6Iif-.js} +1 -1
- package/dist/assets/{BillingSettingsPage-DknUlTgB-CcR7ugmH.js → BillingSettingsPage-DknUlTgB-BLpthvOE.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-BIjlRcX--CZ4DepwQ.js → BillsBulkReviewDrawerPage-BIjlRcX--01g6z1HC.js} +1 -1
- package/dist/assets/{BoxItem-D4K0YgBP-Bm_px4kT.js → BoxItem-D4K0YgBP-BfHTw_7a.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CWioKmMC--fpYbOGK.js → BusinessVerificationPage-CWioKmMC-Dh_uzF3f.js} +1 -1
- package/dist/assets/{CardNumberSubText-C_03r_B--CXrhgc3z.js → CardNumberSubText-C_03r_B--BsrLNtl7.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BaImXBc2-BqUQeIYw.js → CashbackDetailPage-BaImXBc2-DXhUyCyl.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-Ba7cRz0p-DYtlHHMF.js → ChargeCardDetailPage-Ba7cRz0p-CiEYTReH.js} +1 -1
- package/dist/assets/{ChargeCardListPage-BTH_OAht-CJvC6mTi.js → ChargeCardListPage-BTH_OAht-CINdP5U0.js} +1 -1
- package/dist/assets/{ChargeCardListTable-DpRWVPmZ-CcrBBELQ.js → ChargeCardListTable-DpRWVPmZ-DfKnJ1YR.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-B3bc_Qcj-DVNboRNz.js → ChargeCardPromoPage-B3bc_Qcj-BuyP1GDO.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-3-7oaikG-BYx_BUtm.js → ChargeCardSetupPage-3-7oaikG-yQ4twRwo.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-3HMKClyw-mCs_-TXo.js → ChargeCardStatementsPage-3HMKClyw-aakRyQeA.js} +1 -1
- package/dist/assets/{ChargeCardUtils-Cx6ntaue-CziTslau.js → ChargeCardUtils-Cx6ntaue-CBUEXxqI.js} +1 -1
- package/dist/assets/{ChaseOverlay-1PyDzocW-DV1roPs3.js → ChaseOverlay-1PyDzocW-DXRtQuKy.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-DTADpJQC-sqk-xG07.js → CheckDepositDrawerPage-DTADpJQC-JMNXs2mU.js} +1 -1
- package/dist/assets/{CollapsableReportTable-rEGCWPrN-DiziLVLU.js → CollapsableReportTable-rEGCWPrN-Bg78auDY.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-Dpe50aqM-B1Sor9Us.js → CompanyOfficerDetailsSection-Dpe50aqM-YuaorViU.js} +1 -1
- package/dist/assets/{CompanyPassportCard-l9sgkbw_-BXrIXjOn.js → CompanyPassportCard-l9sgkbw_-Cb7U7VQ1.js} +1 -1
- package/dist/assets/{CompanyPassportPage-DQPGAnFq-DsQ6naIu.js → CompanyPassportPage-DQPGAnFq-OaYBm9tU.js} +1 -1
- package/dist/assets/{CompleteProfile-DJBScNev-5kVXmwEh.js → CompleteProfile-DJBScNev-CGTc4wOv.js} +1 -1
- package/dist/assets/{ConfettiBurst-DukumtTx-CSzALiwF.js → ConfettiBurst-DukumtTx-BQndfocc.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C39AEROO-Df_MDMmD.js → CreateOrEditVendorPage-C39AEROO-Dp9fyFm3.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-D8VUjeG2-Nczpa7J9.js → CreditCardPaymentDrawerPage-D8VUjeG2-DTNg2XYB.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-L8WvXQsE-Dx-X3Ggn.js → CreditCardPaymentPlgSection-L8WvXQsE-Dld3Gk5Z.js} +1 -1
- package/dist/assets/{CurrencySelectField-yIymL1et-BBkhU934.js → CurrencySelectField-yIymL1et-B3QYuHIu.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-BKBFtr-o-B3t33ZLt.js → CustomerOnboardingActivationPage-BKBFtr-o-04HnKxMD.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BwRlnH01-DB0lhA8l.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BsnPvucg-BEvywTxp.js → CustomerOnboardingDetailPageSkeleton-BsnPvucg-SKp3chIh.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-Db1DFgQR-DfT9hNRl.js → CustomerOnboardingNoStepsPage-Db1DFgQR-DCk_IeqS.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-BoF4bXiW-CKAc0RQX.js → CustomerOnboardingPage-BoF4bXiW-C0FVC-pF.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-BdGFZtH3-DLLnRFgg.js → CustomerOnboardingProductSuitePage-BdGFZtH3-26iCnO4z.js} +1 -1
- package/dist/assets/{Dashboard-hADP7IBB-Bk1vjezx.js → Dashboard-hADP7IBB-DfQas1uR.js} +1 -1
- package/dist/assets/{DashboardReportPage-BwTchCvy-O2bBIky3.js → DashboardReportPage-BwTchCvy-CJU9D8Db.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-B-w4cVMW-BWggpu2o.js → DashboardSidebarBackgroundAnimation-B-w4cVMW-BaNyxdQW.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BMkCcz-U-g-iJ8Z3m.js → DepositAccTransactionItem-BMkCcz-U-C9XochJ-.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-D6h0mu0p-Cba8Z-zG.js → DepositAccTransactionListPage-D6h0mu0p-Dq4GKb21.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-DQG9O9kV-DkLiQ_AK.js → DomesticWireDetailsPage-DQG9O9kV-I_I6mi7z.js} +1 -1
- package/dist/assets/{DownloadOverlay-mXe-oklf-DPD6fOSt.js → DownloadOverlay-mXe-oklf-9sXFSm3H.js} +1 -1
- package/dist/assets/{DrawerPage-DSbF_bCc-BOfcYWDU.js → DrawerPage-DSbF_bCc-B8WQfxO1.js} +1 -1
- package/dist/assets/{EditPeoplePage-DnE5ud-m-STxMbpu_.js → EditPeoplePage-DnE5ud-m-Dv_3PPk6.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-CtHzBFwx-CcMSn1Z9.js → EditReimbursementDetailPage-CtHzBFwx-DTCvc-vr.js} +1 -1
- package/dist/assets/{EntityDetailPage-CSR_wxIn-C3ytfDma.js → EntityDetailPage-CSR_wxIn-DkiPaVES.js} +1 -1
- package/dist/assets/{EntitySummarySection-BP9sqkp_-C8j67E3x.js → EntitySummarySection-BP9sqkp_-Crkk5x9T.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-C-ZrFIVW-LPRP5OZt.js → ExpenseAutomationOverviewPage-C-ZrFIVW-DY09XORJ.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BEhjUkgs-DU0Mp3Bk.js → ExpenseAutomationPage-BEhjUkgs-BPSUNY-e.js} +1 -1
- package/dist/assets/{ExpressPayPage-C9rqylRE-fd6R9yCg.js → ExpressPayPage-C9rqylRE-Cbq8bZYw.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-BcRRbP7e-DlhiW3MZ.js → FeaturePreviewPage-BcRRbP7e-BLNDWIH0.js} +1 -1
- package/dist/assets/{FollowStepsSection-B3Kyt5j4-CgmrU6eD.js → FollowStepsSection-B3Kyt5j4-BPZMuY16.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-Bz-YyIK8-B-UTCvpv.js → GlobalReviewListPage-Bz-YyIK8-X7iDH1X-.js} +1 -1
- package/dist/assets/{HelpButton-38HaKgFL-BugYIsvp.js → HelpButton-38HaKgFL-BpicEy3_.js} +1 -1
- package/dist/assets/{InformationCardStack-BY26HFGi-BLGIbInA.js → InformationCardStack-BY26HFGi-s-_IF3ps.js} +1 -1
- package/dist/assets/{InsightsCardStack-BI7iTuQ_-DQl2fOce.js → InsightsCardStack-BI7iTuQ_-CWevdCvM.js} +1 -1
- package/dist/assets/{InsightsSection-AQ5yTmGG-DS0VgX7W.js → InsightsSection-AQ5yTmGG-CwGJ1RhB.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-BEAFHjYf-d2P0RMG5.js → IntegrationsSettingsPage-BEAFHjYf-CKaTnjqr.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DNvv8jLc-dT-poZdm.js → InternationalWireSwiftDetailsPage-DNvv8jLc-DnzyEeEL.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BdUXxMgU-DhF9zfHu.js → InternationalWireVerificationPage-BdUXxMgU-DaMynZwD.js} +1 -1
- package/dist/assets/{InviteFormPage-CY-8DzRS-Bfynw6ME.js → InviteFormPage-CY-8DzRS-CEz3i8rW.js} +1 -1
- package/dist/assets/{InvitePageListView-DXjKBR4k-Np2jy73K.js → InvitePageListView-DXjKBR4k-oAZCaZUQ.js} +1 -1
- package/dist/assets/{InvitePeoplePage-CIafIgkR-BdmOchmq.js → InvitePeoplePage-CIafIgkR-C0ZBhg80.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-cXNOY5jR-DGuQgS61.js → InvoiceUploadSection-cXNOY5jR-BYIGAC22.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DN1zD_YI-i_-kvzIl.js → IssueChargeCardPage-DN1zD_YI-m9kk2k31.js} +1 -1
- package/dist/assets/{LabeledAddressValue-Bk3vXfZU-CU4YMzA1.js → LabeledAddressValue-Bk3vXfZU-C8esEiYy.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-6MpVMde--DXTq8JS8.js → LabeledAddressValueField-6MpVMde--CyRRAdMR.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-BjYGaRbt-BGdAOJoA.js → LabeledControlledCheckBoxField-BjYGaRbt-VpKIFe5b.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-9q4Lqszf-Csk7xXRk.js → LabeledCreatableSingleSelectField-9q4Lqszf-DgYzSVI1.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CAWaftIF-CSQ4X3Cr.js → LabeledDocumentField-CAWaftIF-DYCCs9xk.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-WbohTHp8-Bsf-e-tx.js → LabeledDropDownFormattedTextField-WbohTHp8-TsEirRx_.js} +1 -1
- package/dist/assets/{LabeledText-B3JYr4tU-laTDcIhJ.js → LabeledText-B3JYr4tU-DNIM6FAA.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DHOsMX6S-5w6248s9.js → LabeledUserSingleSelectWithSubtitlesField-DHOsMX6S-DBUrVOhw.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-DcUdbKa4-fYq87dcd.js → LabeledZeniRolesDropDownField-DcUdbKa4-CvLkw4t8.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-B1XJOlhU-DdWugwxQ.js → LinkJETransactionPage-B1XJOlhU-NKXBfGy3.js} +1 -1
- package/dist/assets/{LockCardPage-B-EvOmPO-B73f-ypE.js → LockCardPage-B-EvOmPO-DVZSoQrL.js} +1 -1
- package/dist/assets/{LowBalancePopup-BoFHsW5A-B3QtlbXZ.js → LowBalancePopup-BoFHsW5A-CWIw-aGk.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-D5-czDfb-D9jHfcHK.js → MagicLinkACHDetailsPage-D5-czDfb-Cv7tz8Vj.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DxtWixFB-79ayjypJ.js → MagicLinkDomesticWireDetailsPage-DxtWixFB-N6WrmkGu.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-kmj9pdzN-DnNURYN2.js → MagicLinkInternationalWireDetailsPage-kmj9pdzN-Cmr34sld.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BPzk03R8-SXgLVDgR.js → MagicLinkSuccessPage-BPzk03R8-DHEsIOU8.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CgS4ZMfb-BI5Lq2SW.js → MagicLinkTitleSection-CgS4ZMfb-5-Nbvp7X.js} +1 -1
- package/dist/assets/{MailingDetailsSection-BktKZ2Nr-DyWKpOiG.js → MailingDetailsSection-BktKZ2Nr-CPiZsT2Z.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-2tPtQeqB-QatkmFKh.js → MeetingCalenderPopup-2tPtQeqB-BRuBLuEQ.js} +1 -1
- package/dist/assets/{Menu-CV1BBSGW-DKOqAYYS.js → Menu-CV1BBSGW-D5YT4AYu.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CMyrZ4nS-BheEjXSF.js → MyBankConnectionsSettingsPage-CMyrZ4nS-BStg2OTs.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-DuOoKlPP-thKNb-ry.js → MyPendingActivationChargeCardListPage-DuOoKlPP-DeGAv9O8.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CA-5gU5k-BFEIvdNu.js → MyProfileSettingsPage-CA-5gU5k-CbeBN3kh.js} +1 -1
- package/dist/assets/{NavBarWithPicker-DuazRsm7-BXAVo-zX.js → NavBarWithPicker-DuazRsm7-DaLm9uMh.js} +1 -1
- package/dist/assets/{NavigationArrow-DnZuPnXh-BOLYjEri.js → NavigationArrow-DnZuPnXh-Xbrs8lDg.js} +1 -1
- package/dist/assets/{NavigationDots-DarWlthl-CEtLiSj-.js → NavigationDots-DarWlthl-DgNJVvV6.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-C5zI88lM-DBDRlSHQ.js → NewGlobalMerchantPage-C5zI88lM-CrstFOJi.js} +1 -1
- package/dist/assets/{NoDataChart-Dwrv5FXT-BktYGhJl.js → NoDataChart-Dwrv5FXT-B2IJLMyy.js} +1 -1
- package/dist/assets/{NoDataTable-BT9VQUID-B1zJzLW9.js → NoDataTable-BT9VQUID-DcGJ8AWp.js} +1 -1
- package/dist/assets/{NotFoundPage-BpVYjIy9-CAwSGm4b.js → NotFoundPage-BpVYjIy9-DCYJ5OFA.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-Br1VS7sj-D72VzMEy.js → NotificationSettingsPage-Br1VS7sj-BtxoNK6C.js} +1 -1
- package/dist/assets/{NotificationsListConfig-COCJ7xUp-B665e_3O.js → NotificationsListConfig-COCJ7xUp-kkp6rHgd.js} +1 -1
- package/dist/assets/{NotificationsPage-CtIcIo4T-DuWbZv_Q.js → NotificationsPage-CtIcIo4T-B87p5Rnd.js} +1 -1
- package/dist/assets/{OpExByVendorPage-CTdChrGD-CvW5Vepn.js → OpExByVendorPage-CTdChrGD-BhmOw7gE.js} +1 -1
- package/dist/assets/{OverlayContainerPage-CU1AAMcq-ai6w2Y-V.js → OverlayContainerPage-CU1AAMcq-Cys051wh.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DVhAvUAV-CoqLEkYS.js → PandLWithForecastPage-DVhAvUAV-C6-rt2YZ.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-Cqk9_T2U-B2k-ZLJe.js → PaymentAccountSetupBillingAddressSection-Cqk9_T2U-CvoEPO_g.js} +1 -1
- package/dist/assets/{PeoplePage-BR4qd-jm-CBOJNYwE.js → PeoplePage-BR4qd-jm-DMOA_4d_.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-T83_xyer-BkoO9beS.js → PortfolioAllocationFormPage-T83_xyer-DbBmp9TP.js} +1 -1
- package/dist/assets/{PortfolioDetails-6ElQWU58-ByHc7XYH.js → PortfolioDetails-6ElQWU58-DDWH86yL.js} +1 -1
- package/dist/assets/{ProductsCarousel-CijsxgpU-C19z6U57.js → ProductsCarousel-CijsxgpU-zOvVZC-9.js} +1 -1
- package/dist/assets/{PromoBaseCards-BWsv2pTB-B6b592gJ.js → PromoBaseCards-BWsv2pTB-CkIv7EDI.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-ChKHWoK7-CSeEHm2_.js → QBOConnectionDialog-ChKHWoK7-C-b8OrPZ.js} +1 -1
- package/dist/assets/{QBOSetupSection-C4gt0qc8-DTKMvJ4_.js → QBOSetupSection-C4gt0qc8--7M5WvWO.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BwgWdSTd-NVamJEor.js → ReimbursementApprovalRuleDetailPage-BwgWdSTd-J7WlrXzM.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-C2asBtuf-DT1aAQsK.js → ReimbursementApprovalRulesPage-C2asBtuf-BIE2_fls.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DS1ewUKC-CVEFgQmR.js → ReimbursementDetailPage-DS1ewUKC-odEXXwv0.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-5OaQjA8F-DErLTtUx.js → ReimbursementPromoPage-5OaQjA8F-BFViQt_H.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-Bl8jzyRg-3jDcWgfT.js → ReimbursementSetUpPage-Bl8jzyRg-FbJI9Q8S.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DIesC2GA-CmjN--dc.js → ReimbursementsBulkReviewDrawerPage-DIesC2GA-XysUq3fy.js} +1 -1
- package/dist/assets/{ReloadCard-0q5pQ13T-CKzHIqK2.js → ReloadCard-0q5pQ13T-kicya8jg.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-C0SiD_xG-BLDdaXUR.js → ReportTableViewSelector-C0SiD_xG-BNNKPvZO.js} +1 -1
- package/dist/assets/{ReportsPage-GTIPR29D-BtSUMj6k.js → ReportsPage-GTIPR29D-D_QGX9sj.js} +1 -1
- package/dist/assets/{RevenueChart-C099OBIz-BCjETeYD.js → RevenueChart-C099OBIz-BCwQh0fN.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-Dj29qJWr-znzq99Zm.js → ReviewDetailsPage-Dj29qJWr-dC_m6o15.js} +1 -1
- package/dist/assets/{ReviewOverlay-OPfHsiEH-DYnwxQBa.js → ReviewOverlay-OPfHsiEH-BGvCAT44.js} +1 -1
- package/dist/assets/{RoleWithToolTip-CnJMJF5X-DPQwf2SV.js → RoleWithToolTip-CnJMJF5X-CjBVmufC.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BojehSaf-CqIP5z2b.js → ScheduleDetailsFixedAssetsPage-BojehSaf-DAw1_0oW.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-aZbK93Nq-BFB854u3.js → ScheduleDetailsPage-aZbK93Nq-CYqCEAHZ.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-By6Dky2k-cVt4Itnj.js → ScheduleSequenceTable-By6Dky2k-C1PLU1JM.js} +1 -1
- package/dist/assets/{ScreenRoutes-m-9CX7nW.js → ScreenRoutes-BKlyQZpo.js} +1 -1
- package/dist/assets/{SetUpAccountSection-B_VtQMHv-v5HWkW-2.js → SetUpAccountSection-B_VtQMHv-D7FSEfup.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-CR4EJd0L-DR8b1nlJ.js → SetUpDefaultSection-CR4EJd0L-D51UzNsC.js} +1 -1
- package/dist/assets/{SignIn-DlL4Ve5C-CS2k0j8x.js → SignIn-DlL4Ve5C-C5sBx2lv.js} +1 -1
- package/dist/assets/{SignInScreen-82F821nF.js → SignInScreen-DtwRqy8b.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-hcbJnpe0-Dx5Mkywb.js → SpendManagementListViewPage-hcbJnpe0-CEH1HzUJ.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CZMtZLLG-BwL9QJKu.js → SpendManagementPerTabPage-CZMtZLLG-DRIMtwmI.js} +1 -1
- package/dist/assets/{SpendManagementSection-v3VQ4WLv-BgJcZL_k.js → SpendManagementSection-v3VQ4WLv-D3cNiuVa.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-BstM92cv-D_s447NX.js → SpendMgmtSetupAccountSection-BstM92cv-DibfMF2J.js} +1 -1
- package/dist/assets/{StatementItem-DHN42swg-QQn_8xP5.js → StatementItem-DHN42swg-CbwNzqYz.js} +1 -1
- package/dist/assets/{StatementsPage-BuWUMrMJ-ClESyfR5.js → StatementsPage-BuWUMrMJ-voLBlxdW.js} +1 -1
- package/dist/assets/{StatusSwitcher-BQIZqQby-CwGTf6Yt.js → StatusSwitcher-BQIZqQby-CZ0HCTP1.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BwULcWpV-KD7oZVm0.js → SubTabSwitcher-BwULcWpV-DZkp5nIf.js} +1 -1
- package/dist/assets/{SummaryCard-sp4k0Xek-DgWj-oz4.js → SummaryCard-sp4k0Xek-C6GVADHb.js} +1 -1
- package/dist/assets/{TaskManagementPage-N2Egdy4r-qGkYEZ7q.js → TaskManagementPage-N2Egdy4r-D1IEvZo0.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-BbGr7Bdf-CGee3poJ.js → TimeRangeSwitcher-BbGr7Bdf-D7qyXxLl.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-CqP9hXqB-r5frPdgi.js → TimeframeSwitcher-CqP9hXqB-xMTEPtMY.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-C-Nxe_F8-C62_HCuz.js → TimeframeSwitcherWithToggle-C-Nxe_F8-qCSGBbMA.js} +1 -1
- package/dist/assets/{TopExCard-CLw0PDAU-BbYnCf3a.js → TopExCard-CLw0PDAU-IsZNg3WV.js} +1 -1
- package/dist/assets/{TopExDetailPage-GLquKOoy-kMqzF42L.js → TopExDetailPage-GLquKOoy-DM-14XId.js} +1 -1
- package/dist/assets/{TransactionDetailPage-cTLfJiHb-1yZP6Zin.js → TransactionDetailPage-cTLfJiHb-Ml1o_utS.js} +1 -1
- package/dist/assets/{TransactionList-SkjGKFn_-BwaaUL7x.js → TransactionList-SkjGKFn_-Cr_F-NOj.js} +1 -1
- package/dist/assets/{TransactionListBig-B4CiUxir-C15l10qy.js → TransactionListBig-B4CiUxir-CSAXPA8X.js} +1 -1
- package/dist/assets/{TransactionListPage-eiEKrfCB-CXZ0iEN3.js → TransactionListPage-eiEKrfCB-BeeOYZ8g.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CySokm3L-BpHJwA9m.js → TransactionVendorDetailPage-CySokm3L-DV_Zb6On.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BSv0D4Zs-BT9NFCI4.js → TransferDrawerPage-BSv0D4Zs-CvNWAM4R.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-C5hIMuk--DxAuBNvx.js → TreasuryOverviewPage-C5hIMuk--BlgX-6g_.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-DSJHOwhj-BeQhN-a8.js → TreasuryPromoPage-DSJHOwhj-BxN49NBA.js} +1 -1
- package/dist/assets/{TreasurySetupPage-B_EmY_UY-DAaCNRGd.js → TreasurySetupPage-B_EmY_UY-rt2b49Pu.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-BrZVJwAL-Bs1LrL-1.js → TreasuryStatementsPage-BrZVJwAL-0x3JS8KF.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-DsmLrBId-CRVnttNh.js → TreasuryTaxLetterPage-DsmLrBId-Ctt2rxM0.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-WB0pVkO6-BWBLW8Tp.js → TreasuryTransferOrReviewPage-WB0pVkO6-47YEYO2F.js} +1 -1
- package/dist/assets/{TrendChart-CWR5JV7S-Bu3AQa_8.js → TrendChart-CWR5JV7S-Df18gkL7.js} +1 -1
- package/dist/assets/{TrendWithTransactions-D9x71aZs-CM8kaEfz.js → TrendWithTransactions-D9x71aZs-3Pjrtky1.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-Tx1NEXyX-DoWK8o5r.js → UncategorizedAccountsMappingPage-Tx1NEXyX-DO-uXVoH.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-aTpJwSQj-BYrPkyiL.js → UnitIntegrationPage-aTpJwSQj-1CocYyN2.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BVMdCZ9e-BITtYlPW.js → UploadAdditionalDocumentOverlay-BVMdCZ9e-GuL8LPrF.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BtVySDI--nsMiWnZu.js → Vendor2FAPopup-BtVySDI--ZwZ4smHY.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-Cx9VUYTN-CUP3Cq5s.js → VendorACHDetailsPage-Cx9VUYTN-CrAIuIvB.js} +1 -1
- package/dist/assets/{VendorDetailPage-BTBlddyH-Bc_YJfHo.js → VendorDetailPage-BTBlddyH-0R9slAFS.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-DIQg-f5b-Bwf6L3re.js → VendorDomesticWireDetailsPage-DIQg-f5b-B1FEr2St.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-CZzpO5dU-BLT7WxiF.js → VendorFiling1099EditablePage-CZzpO5dU-Db2RWAio.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-_Bf2O8Hk-B9tTYmRJ.js → VendorFirstReviewPage-_Bf2O8Hk-BEEAVWIG.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DmM691ao-Dzdr5mG2.js → VendorInternationalWireDetailsPage-DmM691ao-BThUarx6.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CmfDU583-Dk7aONaM.js → VendorInternationalWireSwiftDetailsPage-CmfDU583-CvhZInPZ.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-VX_qjrvm-R24t7Q7V.js → VendorsAccountsSection-VX_qjrvm-BtwplGPh.js} +1 -1
- package/dist/assets/{VerifyDevice-pndtId1R-C8OsQHlo.js → VerifyDevice-pndtId1R-C1HqXILc.js} +1 -1
- package/dist/assets/{VideoPlayer-Cv2VluI6-D2yBmBgw.js → VideoPlayer-Cv2VluI6--QIlahz6.js} +1 -1
- package/dist/assets/{VideoPopup-DwltINTO-0GPyihNZ.js → VideoPopup-DwltINTO-F8fBmW45.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-I6fXTo8V-B0kNeHBS.js → WarningsDrawerPage-I6fXTo8V-Cd8ZWfsn.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-BhqYqyk--DeI4__gE.js → ZeniAccountDetailPage-BhqYqyk--DuRmF_gl.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-M7S_ZBj4-94TU34gP.js → ZeniAccountListViewPage-M7S_ZBj4-B-etePBh.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-Crjx7iNX-DK8JxCJS.js → ZeniAccountNavBarPieces-Crjx7iNX-DCQMWqfA.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-rK7P_Dpk-DmoLuwn8.js → ZeniAccountPromoPage-rK7P_Dpk-D0xHZJnI.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-B8yrjDVW-gPUnEzAZ.js → ZeniAccountSetupPage-B8yrjDVW-PGhVvgwi.js} +1 -1
- package/dist/assets/{ZeniCopyright-BDsnkVlH-C00Fssys.js → ZeniCopyright-BDsnkVlH-CY88dusU.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BCVTdEWO-p69HMFsD.js → ZeniTransferAmountSlider-BCVTdEWO-DhB66UOe.js} +1 -1
- package/dist/assets/{analyticsHelper-D8CGsPLU-DJI9oEaD.js → analyticsHelper-D8CGsPLU-DS_eeuz4.js} +1 -1
- package/dist/assets/{analyticsHelper-CS2u9ax9.js → analyticsHelper-KVhGmwkS.js} +1 -1
- package/dist/assets/{chartTypes-DLnePN0T-B_54UqyM.js → chartTypes-DLnePN0T-CIeKlIA8.js} +1 -1
- package/dist/assets/{commonDimensions-CWOH4KIa-zIW9i9kk.js → commonDimensions-CWOH4KIa-elT2L8bH.js} +1 -1
- package/dist/assets/{detailCommon-COLWOJB--3sJPi-qA.js → detailCommon-COLWOJB--CsDxFgRX.js} +1 -1
- package/dist/assets/{downloadPdf-DmVZhHLH-D1xNlFUJ.js → downloadPdf-DmVZhHLH-cXR06xOc.js} +1 -1
- package/dist/assets/{index-MAXVX6UR.js → index-B6kvRyEr.js} +4 -4
- package/dist/assets/{mapLoadingInProgressToTreeNode-DzagCSPK-Df3QAuQq.js → mapLoadingInProgressToTreeNode-DzagCSPK-DIjamOaA.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-gKc2xWyG-DTjSgiEj.js → mapSectionWithAcOnlyToTreeNode-gKc2xWyG-Duxhfsjv.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-toSXbVwB-B0PNlKW1.js → mapSpacerToTreeNode-toSXbVwB-DFaLQRRh.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-D0Bib2dl-Cgs41-OD.js → mapTimeframeBalancesToTreeNode-D0Bib2dl-BmxdM2h1.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-D63QAMZm-BDtNdJWW.js → mapTimeframeBalancesToTreeNode-D63QAMZm-BVTv_ogS.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BuAL-Z9U-Ceeq3tsz.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BuAL-Z9U-C-6NXP0a.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-D-AHYPZY-Bomk_rrT.js → toCOABalancesWithID-D-AHYPZY-hzemWUWm.js} +1 -1
- package/dist/assets/{toChartData-BIN4xqGz-BcU_F8Ix.js → toChartData-BIN4xqGz-BwhvMnMV.js} +1 -1
- package/dist/assets/{treasuryColorHelper--7Rf6Fm8-BdEMhZbj.js → treasuryColorHelper--7Rf6Fm8-BdKfIJTm.js} +1 -1
- package/dist/assets/{uploadAttachment-DwI0nG8D-VCODDzfq.js → uploadAttachment-DwI0nG8D-C7uzVwxM.js} +1 -1
- package/dist/assets/{uploadReceipts-9DTOr0BG-pwNYcimh.js → uploadReceipts-9DTOr0BG-cfTo5V1U.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BwRlnH01-Di0CtCSz.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Ee,q as Te,aP as N,aa as qe,cS as Ge,O as Ve,l as Je,aU as be,j as t,fn as Ke,h as J,y as r,bF as Ze,P as Ye,ad as Xe,e6 as Qe,bA as et,dY as tt,aQ as it,o as a,u as n,cw as nt,d3 as ot,db as at,fH as ve,fI as ke,gq as lt,n as rt,aM as $e,b as Pe,bX as st,ai as ct,bx as dt}from"./index-
|
|
1
|
+
import{c as Ee,q as Te,aP as N,aa as qe,cS as Ge,O as Ve,l as Je,aU as be,j as t,fn as Ke,h as J,y as r,bF as Ze,P as Ye,ad as Xe,e6 as Qe,bA as et,dY as tt,aQ as it,o as a,u as n,cw as nt,d3 as ot,db as at,fH as ve,fI as ke,gq as lt,n as rt,aM as $e,b as Pe,bX as st,ai as ct,bx as dt}from"./index-B6kvRyEr.js";import{b as o,n as i}from"./vendor-Bs1fkIUX.js";import{D as ut}from"./HelpButton-38HaKgFL-BpicEy3_.js";import{K as je}from"./SetUpDefaultSection-CR4EJd0L-D51UzNsC.js";import{f as mt}from"./SpendMgmtSetupAccountSection-BstM92cv-DibfMF2J.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-BVMdCZ9e-GuL8LPrF.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-2tPtQeqB-BRuBLuEQ.js";import"./ChargeCardUtils-Cx6ntaue-CBUEXxqI.js";import"./CreditCardPaymentPlgSection-L8WvXQsE-Dld3Gk5Z.js";import"./ChaseOverlay-1PyDzocW-DXRtQuKy.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:K}){const l=Te(),D=Ee(),{formState:{errors:Z},trigger:Y}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(Z,E),{localData:c,updateStatus:F,mileageStatus:S}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Ve.getLocalizedStrings(),{reimbursement:ee}=Q,[C,T]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||H(C)},[C]);const{reimbursementSetup:x}=ee,{setUp:ie}=X,ne=C===!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(St,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(Ct,{children:x.mileageSubTitle})]}),S!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:S.name,textColor:ke(S.code)}):null]}),t.jsxs(yt,{children:[S!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:S.name,textColor:ke(S.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Tt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:C||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:V=>V!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(It,{children:C?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&K?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Vt,{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{O as M,j as b,cD as X,cE as V,cF as W,k1 as Z,aX as q,l as z}from"./index-
|
|
1
|
+
import{O as M,j as b,cD as X,cE as V,cF as W,k1 as Z,aX as q,l as z}from"./index-B6kvRyEr.js";import{b as f}from"./vendor-Bs1fkIUX.js";import{u as Y}from"./ReviewOverlay-OPfHsiEH-BGvCAT44.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const{common:n,spendManagement:{reimbursement:j}}=M.getLocalizedStrings(),o=j.bulkActions;let I;const le=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=f.useState(!1),[m,_]=f.useState(P(e,h,a)),[x,R]=f.useState(h),[B,J]=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,a)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,a]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=G(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},$={onOkClick:u=>{l(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,z.getRemiListUniqueType(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:L,description:O}=H(p,S,E,x),C=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:U,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(X,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Y,{title:L,description:{content:O,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:D(),cancelButton:N,hideCancel:C}})]})},P=(e,a,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:j.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:q("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},G=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},H=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?j.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{le as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as h,j as r,aL as a,aM as m,b2 as j,O as C,aR as l,bI as x,ai as g,o as c,b3 as f}from"./index-
|
|
1
|
+
import{c as h,j as r,aL as a,aM as m,b2 as j,O as C,aR as l,bI as x,ai as g,o as c,b3 as f}from"./index-B6kvRyEr.js";import{n as s,b as d}from"./vendor-Bs1fkIUX.js";function p({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 w({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 z({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function R({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(f,{children:({height:i,width:n})=>r.jsx(p,{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{c as X,q as ie,cr as me,aa as fe,j as o,ap as ge,O as K,cs as ee,ad as xe,y as O,aQ as be,o as n,ct as ye,cu as we,cv as _e,cw as $e,cx as ve,an as ce,cy as Ce,u as p,ai as ke,aC as Q,bI as je,aU as Se,am as Ie,av as Ne}from"./index-
|
|
1
|
+
import{c as X,q as ie,cr as me,aa as fe,j as o,ap as ge,O as K,cs as ee,ad as xe,y as O,aQ as be,o as n,ct as ye,cu as we,cv as _e,cw as $e,cx as ve,an as ce,cy as Ce,u as p,ai as ke,aC as Q,bI as je,aU as Se,am as Ie,av as Ne}from"./index-B6kvRyEr.js";import{b as f,w as de,n as d}from"./vendor-Bs1fkIUX.js";import{R as P,I as Oe}from"./CollapsableReportTable-rEGCWPrN-Bg78auDY.js";const W=K.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(W),end_date:e.thisPeriod.endDate.format(W)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(W),end_date:e.endDate.format(W)}: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(W):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=K.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{q as W,c as G,O as y,ax as he,l as _,j as r,aM as k,bZ as fe,bH as me,bF as ge,y as v,o as C,aS as _e,P as be,b_ as Se,u as w,B,aC as Q,x as we,aU as Ce,au as ye,bK as xe}from"./index-MAXVX6UR.js";import{b as P,w as J,n as b}from"./vendor-Bs1fkIUX.js";import{m as z,l as Z}from"./analyticsHelper-D8CGsPLU-DJI9oEaD.js";import{u as Oe}from"./ReportTableViewSelector-C0SiD_xG-BLDdaXUR.js";import{a as X,p as Re}from"./TimeRangeSwitcher-BbGr7Bdf-CGee3poJ.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-C-Nxe_F8-C62_HCuz.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-mXe-oklf-DPD6fOSt.js";import{I as ve,R as F,x as ee}from"./CollapsableReportTable-rEGCWPrN-DiziLVLU.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-gKc2xWyG-DTjSgiEj.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-D63QAMZm-BDtNdJWW.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BuAL-Z9U-Ceeq3tsz.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-DzagCSPK-Df3QAuQq.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./TimeframeSwitcher-CqP9hXqB-r5frPdgi.js";import"./page-detail-CWX5S47F-lMo0MYzU.js";import"./AccountRow-C6z4Ft3r-BFimoTCg.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=H({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Le({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=H({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Te({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=H({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
1
|
+
import{q as W,c as G,O as y,ax as he,l as _,j as r,aM as k,bZ as fe,bH as me,bF as ge,y as v,o as C,aS as _e,P as be,b_ as Se,u as w,B,aC as Q,x as we,aU as Ce,au as ye,bK as xe}from"./index-B6kvRyEr.js";import{b as P,w as J,n as b}from"./vendor-Bs1fkIUX.js";import{m as z,l as Z}from"./analyticsHelper-D8CGsPLU-DS_eeuz4.js";import{u as Oe}from"./ReportTableViewSelector-C0SiD_xG-BNNKPvZO.js";import{a as X,p as Re}from"./TimeRangeSwitcher-BbGr7Bdf-D7qyXxLl.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-C-Nxe_F8-qCSGBbMA.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-mXe-oklf-9sXFSm3H.js";import{I as ve,R as F,x as ee}from"./CollapsableReportTable-rEGCWPrN-Bg78auDY.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-gKc2xWyG-Duxhfsjv.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-D63QAMZm-BVTv_ogS.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BuAL-Z9U-C-6NXP0a.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-DzagCSPK-DIjamOaA.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./TimeframeSwitcher-CqP9hXqB-xMTEPtMY.js";import"./page-detail-CWX5S47F-lMo0MYzU.js";import"./AccountRow-C6z4Ft3r-Dy3ZSja-.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=H({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Le({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=H({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Te({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=H({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${C.sp2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as A,j as a,O as S,q as de,aM as Ae,b3 as Z,bQ as Te,u as E,bR as J,bh as ee,C as M,bg as ae,aX as re,bS as oe,bT as ge,o as m,bU as te,h as g,aC as Ve,bV as pe,bW as me,y as xe,bX as fe,am as P,bY as V,b9 as F}from"./index-
|
|
1
|
+
import{c as A,j as a,O as S,q as de,aM as Ae,b3 as Z,bQ as Te,u as E,bR as J,bh as ee,C as M,bg as ae,aX as re,bS as oe,bT as ge,o as m,bU as te,h as g,aC as Ve,bV as pe,bW as me,y as xe,bX as fe,am as P,bY as V,b9 as F}from"./index-B6kvRyEr.js";import{b as R,w as le,n as x}from"./vendor-Bs1fkIUX.js";import{p as b,d as ne,y as W,b as N,g as ce,u as T}from"./chartTypes-DLnePN0T-CIeKlIA8.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-D-AHYPZY-hzemWUWm.js";import{V as Q}from"./toChartData-BIN4xqGz-BwhvMnMV.js";const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Fe=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{q as Tt,ax as jt,y,fg as vt,O as St,fh as Ct,fi as Dt,j as t,fj as It,fk as le,fl as At,l as d,fm as Pt,fn as kt,aM as v,fo as Mt,aN as k,fp as Bt,fq as Nt,fr as ke,fs as Me,ft as Be,C as Y,fu as O,fv as z,fw as _,h as S,fx as Et,fy as Rt,fz as Ft,fA as Lt,c5 as Ne,o as n,aQ as Ot,u as c,aj as zt,cg as _t,b as Wt,H as Ht,fB as Ut,cw as Zt,am as se,an as de,fC as qt,fD as Vt,bm as Yt,s as Kt,b8 as Gt,ar as Xe,bP as Xt,ai as Qe,bx as Qt,fE as Jt}from"./index-MAXVX6UR.js";import{b as H,n as i}from"./vendor-Bs1fkIUX.js";import{t as en,o as tn}from"./LowBalancePopup-BoFHsW5A-B3QtlbXZ.js";import{S as W}from"./LabeledText-B3JYr4tU-laTDcIhJ.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.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:Ee,common:{currency:j,labels:Re,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Fe}=ln,Le=({attachment:e})=>{const[w,x]=H.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(qt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=Tt(),m=jt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,E=`dashboard_${m.currentTenant?.companyId}`,R=p.largeLabelWidth.value(s),F=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=vt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Ee.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},[rt,ge]=H.useState(!1),[st,xe]=H.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Pn,{size:s,children:t.jsx(An,{})})]}):It(e.paymentDetailsSection?.paymentTo);H.useEffect(()=>{(F?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[F,J,ye,me,ue]);const T=e.billPayInfo?.stage,A=e.billPayInfo?.billStatus,U=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:A?.code=="approved"&&U?.code?U:A,pt=e.billPayInfo?.isRefundInitiated===!0?mt:A?.code=="approved"&&U?.code?U:A,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,q=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-L.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",T?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(T?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},P=g&&(T?.code!=null?T.code==="draft"||A?.code==="approved":!0),b=P&&!it,Te=Oe(b,q,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===j.currencyCode?Rt(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(Ee.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=T?.code??"draft",Ce=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)}}},je=()=>{ve===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",T?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[ve,V]=H.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:F?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,ve?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:je,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(kt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(D)??"",paymentType:we,amount:k("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(qe,{onClick:be,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(qe,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(jn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Fn,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Je.includes(s)?t.jsxs(He,{windowSize:s,children:[t.jsxs(vn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ye,{})}),t.jsx(G,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ke,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(En,{"data-testid":v("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(G,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ge,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(He,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ye,{})}),t.jsxs(Rn,{"data-testid":v("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(G,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(G,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(Ge,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(Ue,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:Y.largeMedium.cssObject,decimalStyles:Y.smallMedium.cssObject})}),t.jsx(Ue,{children:a.to}),t.jsx(Ze,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:E,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:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Et(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:E,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:R},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(K,{}),!g&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:E,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:R},style:{width:"auto"},value:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:E,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:R},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:E,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:R},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Ft(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==j.currencyCode?Fe.conversionAmountColon:Re.invoiceAmount}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Fe.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Re.total}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:Y.h6Medium.cssObject,decimalStyles:Y.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,q,s)}},primaryBtn:{label:Oe(b,q,e.isBillMarkedForRetry),isLoading:F?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):je()},style:{width:ze(!0,P,b,q,s)}},rightSideComponent:P&&!b&&F.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Hn,{onClick:ne,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(kn,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
|
|
1
|
+
import{q as Tt,ax as jt,y,fg as vt,O as St,fh as Ct,fi as Dt,j as t,fj as It,fk as le,fl as At,l as d,fm as Pt,fn as kt,aM as v,fo as Mt,aN as k,fp as Bt,fq as Nt,fr as ke,fs as Me,ft as Be,C as Y,fu as O,fv as z,fw as _,h as S,fx as Et,fy as Rt,fz as Ft,fA as Lt,c5 as Ne,o as n,aQ as Ot,u as c,aj as zt,cg as _t,b as Wt,H as Ht,fB as Ut,cw as Zt,am as se,an as de,fC as qt,fD as Vt,bm as Yt,s as Kt,b8 as Gt,ar as Xe,bP as Xt,ai as Qe,bx as Qt,fE as Jt}from"./index-B6kvRyEr.js";import{b as H,n as i}from"./vendor-Bs1fkIUX.js";import{t as en,o as tn}from"./LowBalancePopup-BoFHsW5A-CWIw-aGk.js";import{S as W}from"./LabeledText-B3JYr4tU-DNIM6FAA.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.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:Ee,common:{currency:j,labels:Re,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Fe}=ln,Le=({attachment:e})=>{const[w,x]=H.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(qt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=Tt(),m=jt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,E=`dashboard_${m.currentTenant?.companyId}`,R=p.largeLabelWidth.value(s),F=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=vt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Ee.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},[rt,ge]=H.useState(!1),[st,xe]=H.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Pn,{size:s,children:t.jsx(An,{})})]}):It(e.paymentDetailsSection?.paymentTo);H.useEffect(()=>{(F?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[F,J,ye,me,ue]);const T=e.billPayInfo?.stage,A=e.billPayInfo?.billStatus,U=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:A?.code=="approved"&&U?.code?U:A,pt=e.billPayInfo?.isRefundInitiated===!0?mt:A?.code=="approved"&&U?.code?U:A,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,q=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-L.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",T?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(T?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},P=g&&(T?.code!=null?T.code==="draft"||A?.code==="approved":!0),b=P&&!it,Te=Oe(b,q,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===j.currencyCode?Rt(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(Ee.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=T?.code??"draft",Ce=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)}}},je=()=>{ve===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",T?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[ve,V]=H.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:F?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,ve?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:je,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(kt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(D)??"",paymentType:we,amount:k("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(qe,{onClick:be,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(qe,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(jn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Fn,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Je.includes(s)?t.jsxs(He,{windowSize:s,children:[t.jsxs(vn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ye,{})}),t.jsx(G,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ke,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(En,{"data-testid":v("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(G,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ge,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(He,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ye,{})}),t.jsxs(Rn,{"data-testid":v("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(G,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(G,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(Ge,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(Ue,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:Y.largeMedium.cssObject,decimalStyles:Y.smallMedium.cssObject})}),t.jsx(Ue,{children:a.to}),t.jsx(Ze,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:E,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:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Et(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:E,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:R},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(K,{}),!g&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:E,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:R},style:{width:"auto"},value:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:E,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:R},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:E,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:R},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Ft(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==j.currencyCode?Fe.conversionAmountColon:Re.invoiceAmount}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Fe.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Re.total}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:Y.h6Medium.cssObject,decimalStyles:Y.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,q,s)}},primaryBtn:{label:Oe(b,q,e.isBillMarkedForRetry),isLoading:F?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):je()},style:{width:ze(!0,P,b,q,s)}},rightSideComponent:P&&!b&&F.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Hn,{onClick:ne,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(kn,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
package/dist/assets/{ReviewOverlay-OPfHsiEH-DYnwxQBa.js → ReviewOverlay-OPfHsiEH-BGvCAT44.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as M,j as e,aM as x,o as r,aQ as B,y as d,A as L,b as C,H as W,h as s,am as $,cP as R,P as D,ai as j,bl as I,u as n,eC as G,M as A,iV as H,k0 as q}from"./index-
|
|
1
|
+
import{q as M,j as e,aM as x,o as r,aQ as B,y as d,A as L,b as C,H as W,h as s,am as $,cP as R,P as D,ai as j,bl as I,u as n,eC as G,M as A,iV as H,k0 as q}from"./index-B6kvRyEr.js";import{n as t}from"./vendor-Bs1fkIUX.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])},F={title:new C("h6Regular","h5Regular")},xi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:P,onCloseReviewItem:k})=>{const l=M();return e.jsxs(J,{children:[e.jsx(Y,{windowSize:l,children:e.jsx(Z,{children:e.jsx(_,{windowSize:l,children:e.jsx(ii,{children:e.jsx(ei,{onClick:P,"data-testid":x("review-overlay-close",i)})})})})}),e.jsxs(Q,{windowSize:l,children:[e.jsxs(V,{windowSize:l,children:[e.jsx(K,{children:e.jsx(N,{windowSize:l,children:i})}),e.jsx(U,{isError:p.isError,windowSize:l,children:p.content})]}),e.jsx(X,{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:()=>k(o.id),"data-testid":x("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:O(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(y,{})}):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(y,{})}):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(B,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},O=i=>i.reviewStatus.isLoading?e.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):i.reviewStatus.code==="error"?e.jsx(v,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(v,{isError:!1}):i.reviewStatus.code==="valid"?e.jsx(li,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(ai,{}),J=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${i=>i.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-CnJMJF5X-DPQwf2SV.js → RoleWithToolTip-CnJMJF5X-CjBVmufC.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f4 as h,f5 as x,j as t,c5 as m,o as n,aM as i,O as g,ao as j,ai as p}from"./index-
|
|
1
|
+
import{f4 as h,f5 as x,j as t,c5 as m,o as n,aM as i,O as g,ao as j,ai as p}from"./index-B6kvRyEr.js";import{n as s}from"./vendor-Bs1fkIUX.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{aP as H,l as me,im as ee,gO as fe,eR as we,io as Je,aa as Me,ip as Ve,cS as _e,cT as Pe,j as a,O as xe,ad as Fe,cD as $e,cE as Ne,cF as qe,aQ as Re,iq as We,ir as Ue,ab as he,is as Se,it as Be,d3 as ze,q as Ge,iH as He,gT as re,u as R,h as De,y as Ce,cV as Ye,iu as Ke,iv as Ze,iw as Qe,o as _}from"./index-
|
|
1
|
+
import{aP as H,l as me,im as ee,gO as fe,eR as we,io as Je,aa as Me,ip as Ve,cS as _e,cT as Pe,j as a,O as xe,ad as Fe,cD as $e,cE as Ne,cF as qe,aQ as Re,iq as We,ir as Ue,ab as he,is as Se,it as Be,d3 as ze,q as Ge,iH as He,gT as re,u as R,h as De,y as Ce,cV as Ye,iu as Ke,iv as Ze,iw as Qe,o as _}from"./index-B6kvRyEr.js";import{b as m,n as U}from"./vendor-Bs1fkIUX.js";import{i as Xe,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-By6Dky2k-C1PLU1JM.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const W={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{aP as $,l as ie,im as Q,gO as ke,eR as Ie,io as Je,aa as Le,ip as we,cS as Me,cT as Ve,j as a,O as De,ad as Pe,cD as Fe,cE as $e,cF as _e,aQ as Ne,iq as qe,ir as Ue,ab as re,is as pe,it as ze,d3 as Be,q as Re,gT as me,u as X,h as We,y as Ke,iu as Ge,iv as Ye,iw as He,o as L}from"./index-
|
|
1
|
+
import{aP as $,l as ie,im as Q,gO as ke,eR as Ie,io as Je,aa as Le,ip as we,cS as Me,cT as Ve,j as a,O as De,ad as Pe,cD as Fe,cE as $e,cF as _e,aQ as Ne,iq as qe,ir as Ue,ab as re,is as pe,it as ze,d3 as Be,q as Re,gT as me,u as X,h as We,y as Ke,iu as Ge,iv as Ye,iw as He,o as L}from"./index-B6kvRyEr.js";import{b as D,n as P}from"./vendor-Bs1fkIUX.js";import{i as Qe,r as Xe,n as Ze,o as et}from"./ScheduleSequenceTable-By6Dky2k-C1PLU1JM.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.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{q as F,c as X,j as t,ix as ie,O as N,iy as le,b as oe,iz as ge,e7 as fe,ft as we,C as A,iA as ye,iw as be,o as i,y as b,h as j,s as $e,ab as re,e3 as je,cD as Se,cF as ke,d3 as Z,db as ee,d9 as ve,iB as U,iC as Ce,b3 as De,iD as Me,cH as ze,iE as Oe,u as h,am as O,b8 as Ee,cE as Le,ap as pe,dc as Ae,b1 as ne,dn as Fe,aQ as Ie,l as Y,iF as I,gq as Te,aN as Ve,iG as Je,aU as _,dd as Be,bl as Pe}from"./index-
|
|
1
|
+
import{q as F,c as X,j as t,ix as ie,O as N,iy as le,b as oe,iz as ge,e7 as fe,ft as we,C as A,iA as ye,iw as be,o as i,y as b,h as j,s as $e,ab as re,e3 as je,cD as Se,cF as ke,d3 as Z,db as ee,d9 as ve,iB as U,iC as Ce,b3 as De,iD as Me,cH as ze,iE as Oe,u as h,am as O,b8 as Ee,cE as Le,ap as pe,dc as Ae,b1 as ne,dn as Fe,aQ as Ie,l as Y,iF as I,gq as Te,aN as Ve,iG as Je,aU as _,dd as Be,bl as Pe}from"./index-B6kvRyEr.js";import{b as D,n as o,i as B}from"./vendor-Bs1fkIUX.js";const R=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=N.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=D.useState(!1),{control:m,formState:{errors:g},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(g,l),x=F(),a=X();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(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(Re,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(Ze,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Xe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:R(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Fe,{name:R(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(We,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(et,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:R(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ie,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:qe(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:l,isDisabled:s}){return t.jsxs(Ye,{isDisabled:s!=null,children:[l?.type==null?t.jsx(_e,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function We({defaultValue:e,onClick:l}){return t.jsxs(Qe,{children:[t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>l(Y.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,Ye=o.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Ut,q as en,l as Y,d as Ke,z as tt,y as dt,Z as cd,e as fd,f as tn,F as ld,N as Tt,O as ir,g as Bt,i as qt,P as rn,o as kt,Y as hd,U as dd,Q as Ft,k as Kl,m as Lt,G as pd,p as md,u as yn,r as gd,D as Yl,v as vd,w as Jl,x as Xl,B as zo,E as yd,J as _d,K as bd,L as Ql,R as wd,V as Sd,X as Ed,S as Rd,T as Od,W as Td,$ as xd,a0 as Cd,a1 as Id,a2 as Ad,a3 as Pd,a4 as kd,a5 as Ld,a6 as qd}from"./index-
|
|
1
|
+
import{c as Ut,q as en,l as Y,d as Ke,z as tt,y as dt,Z as cd,e as fd,f as tn,F as ld,N as Tt,O as ir,g as Bt,i as qt,P as rn,o as kt,Y as hd,U as dd,Q as Ft,k as Kl,m as Lt,G as pd,p as md,u as yn,r as gd,D as Yl,v as vd,w as Jl,x as Xl,B as zo,E as yd,J as _d,K as bd,L as Ql,R as wd,V as Sd,X as Ed,S as Rd,T as Od,W as Td,$ as xd,a0 as Cd,a1 as Id,a2 as Ad,a3 as Pd,a4 as kd,a5 as Ld,a6 as qd}from"./index-B6kvRyEr.js";import{j as X,D as nn,S as Vt}from"./mui-Ty75qFQF.js";import{b as Se,n as ut,c as Ve,f as eh,g as jd}from"./vendor-Bs1fkIUX.js";import{f as Dd}from"./analyticsHelper-KVhGmwkS.js";import{g as rt,u as Ae,f as Ye}from"./redux-CEhZD0hA.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-Dk1A2KYI.js";import{B as ze}from"./analytics-CcevxdRy.js";import{p as Oe}from"./sentry-BE5FTzpq.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-cQYYQPTZ.js";import{r as Kd}from"./lodash-D52QloPU.js";import"./liveblocks-8ht9CoL5.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=Ae(b=>Y.getCompanyHealthMetricView(b)),f=Ae(b=>Y.getCompanyManagementView(b)),{additionalChurnFactors:d}=Ae(b=>Y.getCompanyHealthMetricConfig(b)),{selectedCompanyDetail:w,selectedCompanyId:h,localFormDataAndStatusByCompanyId:v}=u,m=Ae(b=>b.companyViewState.zeniUsers.fetchState),c=Ae(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%;
|