@zeniai/web-cockpit-ui 1.14.38-qa → 1.14.39-dev
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-B-YGNgNu-fMbIin-2.js → ACHDetailsPage-C0HaWoSJ-Dc5JPQ9N.js} +1 -1
- package/dist/assets/{AIPerformancePage-BtD_7Ftm-Cjrt2PVO.js → AIPerformancePage-BcpJ60QE-CtwR6J9S.js} +1 -1
- package/dist/assets/{AccountInfoPage-BtnzwNNq-Cy5SeNuD.js → AccountInfoPage-8k9PvHMB-DZyvxf4V.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-B4wK76bm-DJwk5_sV.js → AccountInfoPageContent-C7qnFSOO-kIwITRCp.js} +10 -10
- package/dist/assets/{AccountLockedInfoModal-4JAQCp4H-dwSuT6l3.js → AccountLockedInfoModal-Nuuzfbv1-D8-h_fCC.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-Ddi5U4Ae-B03Ke0oC.js → AccountReconDetailsDrawerPage-O9at1_JO-DI5XcSqF.js} +1 -1
- package/dist/assets/{AccountRow-m99usqft-Cggn-JiL.js → AccountRow-D7TS2v2D-CXpu3RBt.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-D-dhzSE8-sseWDipk.js → AccountsPromoCardStack-Bd_rvzbl-BTn5w5o9.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-Bc7FcxQ9-CmEWBrRO.js → AddAddressForCardDrawer-DZJDqdMv-Cg4NeP1v.js} +1 -1
- package/dist/assets/{AddToWalletPage-y4kvtUka-HQhkhv7g.js → AddToWalletPage-CsHR0N---CReMNlUz.js} +7 -7
- package/dist/assets/{AgingReportsPage-DrNIGwGn-BaT4XgWt.js → AgingReportsPage-D7pM0zmb-BuDoPaRl.js} +4 -4
- package/dist/assets/{AllUserItems-B7zg_GaP-DzAVc-iC.js → AllUserItems-iYe6sokO-aNUOL4ty.js} +3 -3
- package/dist/assets/{ApAgingDetailPage-DnnUrY0w-DxAEkFFL.js → ApAgingDetailPage-Bqn7qtw--DtOkXocQ.js} +2 -2
- package/dist/assets/{AppBasePage-Bk7AUQvW-DQWv9uqw.js → AppBasePage-CsoraCNO-ExgiFDSz.js} +1 -1
- package/dist/assets/{AppDrawerContent-BoIqLCcg-4ZHLEj0A.js → AppDrawerContent-B0lIGzQX-CG7hQ-7J.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-C9F_rLkj-DI6n1IG9.js → ApprovalRulesSettingsPage-BQV7Dw4L-h9PzT8u0.js} +1 -1
- package/dist/assets/{ArAgingChart-DIwVIc---p7-njet-.js → ArAgingChart-RMxcWQSp-G3XJ7xii.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-DxW2xm-N-Carapse2.js → ArAgingDetailPage-NedRj0-7-BonBqaV_.js} +1 -1
- package/dist/assets/{AttachmentView-BlhBiGC5-BbBN0XVN.js → AttachmentView-CQXaXBQ0-DG9KqabP.js} +1 -1
- package/dist/assets/{BankAccountSection-A8IfSLFo-BVU2yldF.js → BankAccountSection-X5lu-xFg-TbmLt2Ax.js} +8 -8
- package/dist/assets/{BankAccountWarningSection-DFi3iK9n-DMXZHPRc.js → BankAccountWarningSection-CVhY2Ven-MI-JQ1yO.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-CKGG85vp-CEnS2Yr3.js → BankConnectionsSettingsPage-DHoPOUfJ-DW1tGoNi.js} +8 -8
- package/dist/assets/{BillDetailPage-BOVwHvyV-B-wRVugj.js → BillDetailPage-Bn7AiS3S-BZ28bPGv.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-BVdiHMjx-SAjnUXhF.js → BillPayApprovalRuleDetailPage-BNUTi_3l-BrNn-Lg5.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-Dl45oEp5-qp2KFyuk.js → BillPayApprovalRulesPage-Cyl51uwx-B0C7ukmg.js} +1 -1
- package/dist/assets/{BillPayPromoPage-CEX8Udbv-CF30vtRJ.js → BillPayPromoPage-C-C53jfT-DHzs6DsU.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-CSfEFV18-DpEApa4-.js → BillPaySetUpPage-DK03W_KV-C7gypIrH.js} +1 -1
- package/dist/assets/{BillingSettingsPage-hu1pz4dA-rS23BWi8.js → BillingSettingsPage-mh7zXUFz-PtqIHFv4.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DIY4Aa7i-CpXgDUmQ.js → BillsBulkReviewDrawerPage-eif54uHi-BY7mu3gx.js} +1 -1
- package/dist/assets/{BoxItem-BnivUbj--CToe_wP6.js → BoxItem-Bwh-fULe-Cnvh0VLf.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BZB4KFum-Bf_jaqK5.js → BusinessVerificationPage-TkVkNqIG-kO3sbCuM.js} +3 -3
- package/dist/assets/{CardNumberSubText-CIysZ6zp-ie7SfEt5.js → CardNumberSubText-BhMD3p_M-DwICSaFN.js} +1 -1
- package/dist/assets/{CashbackDetailPage-C-MPq54h-CiG7Uft4.js → CashbackDetailPage-BZ-HHrYd-D7DeuuQ4.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-CGyuANsu-jOjGANCm.js → ChargeCardDetailPage-BmAB59Qs-BujIsaCJ.js} +40 -40
- package/dist/assets/{ChargeCardListPage-BbzjzgAv-BusTbQNY.js → ChargeCardListPage-CosFJd02-D0F4rAbY.js} +27 -27
- package/dist/assets/{ChargeCardListTable-D-wd0edv-DpjBc6t-.js → ChargeCardListTable-CpHJHWnY-C2UTTrvE.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-Cs-Xlghn-BRKLTlKH.js → ChargeCardPromoPage-CUWQ2Doj-svt7Kq-x.js} +4 -4
- package/dist/assets/{ChargeCardSetupPage-CfCGkFxz-97k_khoY.js → ChargeCardSetupPage-Cf_UjTmV-CakqJLB9.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-Jc6k_2Gg-BkHhJ77U.js → ChargeCardStatementsPage-CJjm5X-O-DEvYaVae.js} +1 -1
- package/dist/assets/{ChargeCardUtils-Vw0LoIey-D4s3SYDn.js → ChargeCardUtils-DtlGBAOG-CnFwGz8i.js} +1 -1
- package/dist/assets/{ChaseOverlay-Cm-3BKNK-B-yxpnKo.js → ChaseOverlay-D9_jipgQ-C9IApPhh.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-BAwg3duC-_scFW12y.js → CheckDepositDrawerPage-C0cBFFEH-DO9mNbUo.js} +7 -7
- package/dist/assets/{CollapsableReportTable-C_qcwMWq-CzhTaZDf.js → CollapsableReportTable-Bubej7Ql-B-Haow9V.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-_m4C7Xgf-nCGmpM20.js → CompanyOfficerDetailsSection-CeH1OeAD-CDN4q74j.js} +12 -12
- package/dist/assets/{CompanyPassportCard-BiuPML3b-DNQNm9g-.js → CompanyPassportCard-DL5W7ueC-DxD3wi5U.js} +1 -1
- package/dist/assets/{CompanyPassportPage-BHf1pHbJ-RbKCYwrZ.js → CompanyPassportPage-DigtE7w9-BbT2L8df.js} +1 -1
- package/dist/assets/{CompleteProfile-DKEFybHA-DF_c0ocL.js → CompleteProfile-Bg7I3lpF-C68N9Ffu.js} +1 -1
- package/dist/assets/{ConfettiBurst-BvcmPG2b-CgTGVRIv.js → ConfettiBurst-AOgMJCCW-BNA_L2gY.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-EpWC9Uuv-D9FFUW3d.js → CreateOrEditVendorPage-Bv82RVf6-BnL5MUAM.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-DI-za1T2-Dbmyt89i.js → CreditCardPaymentDrawerPage-C3ZpHHOb-C0Kp9JUP.js} +10 -10
- package/dist/assets/{CreditCardPaymentPlgSection-BGu0Am-e-CBMCjf_k.js → CreditCardPaymentPlgSection-DkQpCIiA-CI4n-74w.js} +1 -1
- package/dist/assets/{CurrencySelectField-DL628Rog-DGJ_22N-.js → CurrencySelectField-DhbePxwd-Cd-AHSQD.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-DzuWnPaH-C9lA2tPS.js → CustomerOnboardingActivationPage-BG8XSP7a-Bp02DWY-.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DouBKVdi-DjCpZaQA.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Bx_rpQHj-BZ-6npjg.js → CustomerOnboardingDetailPageSkeleton-CSnGdP4D-DOKb-pCZ.js} +7 -7
- package/dist/assets/{CustomerOnboardingNoStepsPage-CSI_jqkM-BE9h0jWN.js → CustomerOnboardingNoStepsPage-DC5SvJ3Y-DaKVTiM9.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-CuS2FfSh-B48LjWuQ.js → CustomerOnboardingPage-7v85vPxH-BbgR3kNR.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-B4HtoU9G-B8wZmpw3.js → CustomerOnboardingProductSuitePage-BhYHtuIm-CQypRUha.js} +1 -1
- package/dist/assets/{Dashboard-bFhMc4h1-B0ZecgE9.js → Dashboard-CqXj-08s-BArrunRY.js} +1 -1
- package/dist/assets/{DashboardReportPage-B1pKZHaH-DMNAZhfo.js → DashboardReportPage-CakUfI8Y-L0ses7UF.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CLaTbvuZ-scR6AgO9.js → DashboardSidebarBackgroundAnimation-__d52UhZ-Ceg2kzeD.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-DnzXR7B4-Cn2enBhf.js → DepositAccTransactionItem-CVGiw_b2-CfGaUFaN.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-C0F0N3XK-DQQM8xwt.js → DepositAccTransactionListPage-BLds9psS-CfaHcFYy.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BS3N4ATj-DzsKY8Tn.js → DomesticWireDetailsPage-BfypyRjN-DhX6lTqU.js} +1 -1
- package/dist/assets/{DownloadOverlay-yXed0RbK-BEkzQOPU.js → DownloadOverlay-DG4lR1Pb-DM5-MnYq.js} +1 -1
- package/dist/assets/{DrawerPage-LV8__F8R-BVez5P0O.js → DrawerPage-DppLxflk-oxHByEwB.js} +1 -1
- package/dist/assets/{EditPeoplePage-GBNK0lo_-B1n6yQaz.js → EditPeoplePage-ISgRqKSY-rfxXcGVm.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-COApDpVm-DvxJJ-35.js → EditReimbursementDetailPage-C1nghhum-C958DjQB.js} +14 -14
- package/dist/assets/{EntityDetailPage-DdZmhyPX-Cz3KW8lp.js → EntityDetailPage-DjgV66W8-DZ5igwA9.js} +1 -1
- package/dist/assets/{EntitySummarySection-Cn7rnQeI-CLdJZ-g8.js → EntitySummarySection-BBc3t5R9-DzHOpDVR.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-ipXT_MCO-CRS82qF6.js → ExpenseAutomationOverviewPage-fzZP2aKu-CCu0MleJ.js} +11 -11
- package/dist/assets/ExpenseAutomationPage-BSjV8d-I-75tcqP7q.js +1650 -0
- package/dist/assets/{ExpressPayPage-C0J3X657-C2OEC1Gk.js → ExpressPayPage-DKBLyt2v-BL6tHheh.js} +5 -5
- package/dist/assets/{FeaturePreviewPage-lIDKDiwy-DKPeO7UN.js → FeaturePreviewPage-V38xu6Zo-CyaOyBKD.js} +1 -1
- package/dist/assets/{FollowStepsSection-CtCRMD2R-BclyND_b.js → FollowStepsSection-Bo5_aHsj-D_2P3NsX.js} +7 -7
- package/dist/assets/{GlobalReviewListPage-DXPuMshX-C6-xfhTb.js → GlobalReviewListPage-BXWgxJUG-Dc8bw5mq.js} +1 -1
- package/dist/assets/{HelpButton-Dmp2RZDD-DwUAgvCm.js → HelpButton-B3uWY2LR-OlttS1C0.js} +1 -1
- package/dist/assets/{InformationCardStack-bpQXbFWJ-v3NkhXp1.js → InformationCardStack-DUi7F4j9-Bzofi24T.js} +1 -1
- package/dist/assets/{InsightsCardStack-BzyYnnH_-h-EhKW4f.js → InsightsCardStack-DpsGvwAF-DavKovHg.js} +1 -1
- package/dist/assets/{InsightsSection-BVjjBkzp-tevt_pPa.js → InsightsSection-CFeEzjB3-D_1DfMdF.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-DjMaGIv9-muEoTxEB.js → IntegrationsSettingsPage-Ck0miRzH-COeNLu0O.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DXYaOaYh-CFh_OLfc.js → InternationalWireSwiftDetailsPage-CHh9rwda-CYMl7fKC.js} +10 -10
- package/dist/assets/{InternationalWireVerificationPage-yPrzoGA9-CARbQeFN.js → InternationalWireVerificationPage-DoQ9eiu4-CAFn32kX.js} +1 -1
- package/dist/assets/{InviteFormPage-xQ6xN_gt-CfY7XY56.js → InviteFormPage-zZoT105K-CDjZZmix.js} +8 -8
- package/dist/assets/{InvitePageListView-BmkX934z-Be2ok7Zk.js → InvitePageListView-Bqi0nN3K-Cugufhfk.js} +11 -11
- package/dist/assets/{InvitePeoplePage-BxxEjVs5-Dc-QWgCl.js → InvitePeoplePage-D6Pp40Kl-BkOtYcxF.js} +4 -4
- package/dist/assets/{InvoiceUploadSection-BxfSI49h-CYPJb87m.js → InvoiceUploadSection-BTwzAYmG-DqCxJXD_.js} +3 -3
- package/dist/assets/{IssueChargeCardPage-ByK_ayX6-BDcNKOgV.js → IssueChargeCardPage-DFnsBjmh-BMzEcFnV.js} +10 -10
- package/dist/assets/{LabeledAddressValue-Bk-opSoh-C2Nliq0B.js → LabeledAddressValue-CYEpguO_-DG_G1pyJ.js} +1 -1
- package/dist/assets/LabeledAddressValueField-CNyhuNMg-BDiOnCQn.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-DtVQoSev-TrA3hZT3.js → LabeledControlledCheckBoxField-CSh6A3bd-D6-VupFL.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BFmP_-GA-D6YE34KD.js → LabeledCreatableSingleSelectField-CtuwY_9o-BYO4B8QP.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CyW3tPI--DYCMXfVj.js → LabeledDocumentField-Dyfj_Dx0-CxT8amBm.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-_b5VDmOJ-DYXZVhQf.js → LabeledDropDownFormattedTextField-D8oMk4xt-NfRrE6TJ.js} +3 -3
- package/dist/assets/{LabeledText-Bc8QavrT-DBe1R5aQ.js → LabeledText-DhIVEuvE-BGpps1jt.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CE-MxVSk-BpDF1_jW.js → LabeledUserSingleSelectWithSubtitlesField-BrN-E_iu-H_-zsD1L.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-BqlbDyA1-k2PRVwSX.js → LabeledZeniRolesDropDownField-BPSDhXTS-B9hIUe6J.js} +6 -6
- package/dist/assets/{LinkJETransactionPage-DE8ch_W7-SFTtX9u1.js → LinkJETransactionPage-CSD6-ita-BuYlOJqv.js} +7 -7
- package/dist/assets/{LowBalancePopup-DWXEyi2S-62gzo-RC.js → LowBalancePopup-DG7UpS2F-Bu5UEVfd.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-CJ57XAxp-CjX17IVW.js → MagicLinkACHDetailsPage-m5chQr23-4RLEMs7o.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-Ba1gbLAX-Dy5Hem1F.js → MagicLinkDomesticWireDetailsPage-Cob4wAR7-LbXvtvq_.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-U3ygf3uO-C-ImmVXN.js → MagicLinkInternationalWireDetailsPage-DX9NH12J-D2R3cXNL.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-CGjxH6Hl-BK7vnCSI.js → MagicLinkSuccessPage-DgcpyzOK-CmCaLAu5.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-Dzfctx8H-B9w7ZvfA.js → MagicLinkTitleSection-wjuKcqab-D7vo35cb.js} +1 -1
- package/dist/assets/{MailingDetailsSection-N-M1JzkW-DsQX1QOn.js → MailingDetailsSection-DU4LYPzH-BXsLAtDc.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-BJgsd-6e-BJbKD0GQ.js → MeetingCalenderPopup-YiB2ETli-CqKaSUHn.js} +1 -1
- package/dist/assets/{Menu-DCl4YiCd-DyNjEuyz.js → Menu-Bi_Vto-l-B6nlDzVX.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-BZP3Dbes-Dl7uUmu5.js → MyBankConnectionsSettingsPage-LgbzbrTj-BFa0cAOH.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-Cc8Onh73-CoHNzBqF.js → MyPendingActivationChargeCardListPage-CZs9UFV5-DK2YM84p.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-7YrgIr-M-J1kKjAhJ.js → MyProfileSettingsPage-DIADfZVY-BDHoxXS8.js} +3 -3
- package/dist/assets/{NavBarWithPicker-Bbu7_9sU-BqOfWE29.js → NavBarWithPicker-DEqzM9Qm-_DqMMA0k.js} +1 -1
- package/dist/assets/{NavigationArrow-DNJkGq5e-Cz6Ibgvw.js → NavigationArrow-DzZDXuKr-B7BwQbpV.js} +1 -1
- package/dist/assets/{NavigationDots-BDhrBzmw-C8Z-kY4L.js → NavigationDots-CFxiVMnb-Dxb6vagd.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DSyitl-a-ZWPqeDnP.js → NewGlobalMerchantPage-JsTrXT1T-DERt7sEx.js} +2 -2
- package/dist/assets/{NoDataChart-Bww-GG_z-C6bA2sTF.js → NoDataChart-gi34_J2e-BOq-1JyJ.js} +1 -1
- package/dist/assets/{NoDataTable-DRSEE7HT-Fx8yGafA.js → NoDataTable-DtmdB0eI-BxWxqQ9f.js} +1 -1
- package/dist/assets/{NotFoundPage-BepvWGxk-Cey9vhvF.js → NotFoundPage-Bk5zRv9L-CAPJCopB.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CR6XVZlL-9bKzyX8l.js → NotificationSettingsPage-DFHLMWiI-CAa4vlQq.js} +11 -11
- package/dist/assets/{NotificationsListConfig-CBjTcLzj-Cjn3YKhY.js → NotificationsListConfig-DxFLCS42-Dryoh4sl.js} +1 -1
- package/dist/assets/{NotificationsPage-BgUc61wf-B26oAUDK.js → NotificationsPage-E3pYaBJv-CS1qVYiF.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BkgsQ4lY-MDZiQLxw.js → OpExByVendorPage-CgaLMeOS-CLk81uBN.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-cQS0tC0x.js → OverlayContainerPage-Bmu909Fo-EXe69QYn.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-B0pUD9U8-BzHTBbKy.js → PandLWithForecastPage-CZkL9zJq-C6y3vZ9S.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-YvYPpyzH-Z_m2YYMZ.js → PaymentAccountSetupBillingAddressSection-D190AP1Y-BjMBxnd9.js} +1 -1
- package/dist/assets/{PeoplePage-mobCML9r-DCbFdYKi.js → PeoplePage-BwfDzqla-jRNvSDjZ.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-CB9lfs6z-DcmJ3sYv.js → PortfolioAllocationFormPage-BLdGGltt-jcopE-iX.js} +1 -1
- package/dist/assets/{PortfolioDetails-zYYGkoC--BXwbol69.js → PortfolioDetails-agrnhRRW-bdNc5pLU.js} +1 -1
- package/dist/assets/{ProductsCarousel-B4zdUn5q-D-jWZUof.js → ProductsCarousel-CqBzOsli-B8X-IKsl.js} +1 -1
- package/dist/assets/{PromoBaseCards-CgGg3lpk-8sTJ7Rcf.js → PromoBaseCards-BUYkqKhW-B1j2ucCH.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BBVBEJWA-aU8G6lgM.js → QBOConnectionDialog-JoNcGvU6-DWXeA3jb.js} +7 -7
- package/dist/assets/{QBOSetupSection-pBOQk_mE-D3kS8huT.js → QBOSetupSection-cB-8iCoM-i7dLrr5Q.js} +8 -8
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Ck2KbJ_R-CjiQYmVl.js → ReimbursementApprovalRuleDetailPage-CfOZ0t5v-CV7GAFF2.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-D7LTvUrz-B4ZNYo27.js → ReimbursementApprovalRulesPage-DDtX0CfL-C8p_ZO2g.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-CbgWCawo-BpF64MSv.js → ReimbursementDetailPage-D3rgg3kA-D5du5Mqk.js} +4 -4
- package/dist/assets/{ReimbursementPromoPage-DmV5eoIo-2BJlj6f0.js → ReimbursementPromoPage-Cn3Z10XN-CHstzTse.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-kAlaG5Ag-CE_70Pof.js → ReimbursementSetUpPage-B_gdhg1O-CmHe8InY.js} +3 -3
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-70qXVn3v-BkFq_ISK.js → ReimbursementsBulkReviewDrawerPage-BtBowdlA-Bff-ZZ8J.js} +1 -1
- package/dist/assets/{ReloadCard-DoOxxK_q-CARmhhI-.js → ReloadCard-BY23wQlB-BJD-2H6c.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-7OJVsL-G-CkKoEtsy.js → ReportTableViewSelector-Dzg62ctm-WFJR-fXp.js} +1 -1
- package/dist/assets/{ReportsPage-29ims7Ks-BlC7wtbz.js → ReportsPage-CzflkNSs-BQaWkMYG.js} +1 -1
- package/dist/assets/{RevenueChart-CLtUUYr5-CPmYx-Fb.js → RevenueChart-DNOek9MJ-CP-2pEDw.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-DNDzoyA5-T8GWsxM-.js → ReviewDetailsPage-ChMF35Zu-BuP67dVO.js} +1 -1
- package/dist/assets/{ReviewOverlay-VleZWRhn-V88olled.js → ReviewOverlay-COIKeR15-BcSsy_vI.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DsEos8I_-CRr6oRTA.js → RoleWithToolTip-DWcWpu1c-lubwiBJ4.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Cv84NP5--CNvmO9QZ.js → ScheduleDetailsFixedAssetsPage-CxKTS1Ys-vgXmo78e.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-D4IKW5z6-DWiTLKB2.js → ScheduleDetailsPage-6MqWtRbl-BKxcOCs-.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-qHcZL82y-DAAUsg0w.js → ScheduleSequenceTable-cwZqH3zx-D2fQFHiq.js} +9 -9
- package/dist/assets/ScreenRoutes-KSywlUe_.js +206 -0
- package/dist/assets/{SetUpAccountSection-CjOOpWa2-Cb7W1Utl.js → SetUpAccountSection-BeXsisXh-C8iQqoE3.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-Ax1FuH_A-CXbulKHe.js → SetUpDefaultSection-Bw-ODNSn-XyoiRDtn.js} +8 -8
- package/dist/assets/{SignIn-Bj2czf21-Bnr6dLzL.js → SignIn-BYWJCKCM-iAXwoeyl.js} +1 -1
- package/dist/assets/{SignInScreen-SaiDsUoA.js → SignInScreen-X2bNuyVp.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-7oQurX8D-BlEdTeYL.js → SpendManagementListViewPage-Cncc2ohq-gJW6I76n.js} +10 -10
- package/dist/assets/{SpendManagementPerTabPage-DG8qRSeQ-BftobJyz.js → SpendManagementPerTabPage-BR5w_58--Bz1qFkXu.js} +1 -1
- package/dist/assets/{SpendManagementSection-CzGLKJ01-PgYP5EKq.js → SpendManagementSection-BjNiE7SK-D7jeMM-c.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-BSuY_zqo-toxWOw_s.js → SpendMgmtSetupAccountSection-BQP4OHws-IXpe5hj1.js} +1 -1
- package/dist/assets/{StatementItem-teWYG-k5-DmOE0DmW.js → StatementItem-uDpMbqmR-DBTHHgkS.js} +2 -2
- package/dist/assets/{StatementsPage-Kqug4TjC-idI8Y2ff.js → StatementsPage-BQ6zpjtq-HFcofufo.js} +5 -5
- package/dist/assets/{StatusSwitcher-BXzanE6h-BbOxdx4D.js → StatusSwitcher-DnQFgeLN-DpDkgj5j.js} +1 -1
- package/dist/assets/{SubTabSwitcher-Dc78MPYF-W-inXen8.js → SubTabSwitcher-BSxF2cHS-DzqRE0-4.js} +1 -1
- package/dist/assets/{SummaryCard-DDpG4vry-BXv2u1RJ.js → SummaryCard-DwlHiqjy-DovYblcz.js} +1 -1
- package/dist/assets/{TaskManagementPage-DQXNMGNK-DpyOgzeS.js → TaskManagementPage-BPY7YdEt-Bhs7yAJe.js} +21 -21
- package/dist/assets/{TimeRangeSwitcher-BQL2dhVh-FzyWbTek.js → TimeRangeSwitcher-D66ILzZ8-BUSvdhZS.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-CXvrXTdI-Bmd_fwCF.js → TimeframeSwitcher-C2DIHjU8-FFKAp4XL.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-C_hQ5Vj--Ct-exPmU.js → TimeframeSwitcherWithToggle-V1DMLkhs-Cnh86APd.js} +1 -1
- package/dist/assets/{TopExCard-CmajFYfY-B72k2WTV.js → TopExCard-DSqZSZGZ-Dw-FQUIS.js} +1 -1
- package/dist/assets/{TopExDetailPage-DNfBQfSC-BIDVRDoT.js → TopExDetailPage-OstkHsg3-DvRigN0b.js} +1 -1
- package/dist/assets/TransactionDetailPage-AbBJQKHm-dGel1c3Z.js +912 -0
- package/dist/assets/{TransactionList-DifBTNrV-Bm9HY8Nz.js → TransactionList-CkdTkJqL-Cgr2VpIS.js} +1 -1
- package/dist/assets/{TransactionListBig-Bjmt3Xib-CgXUg-D7.js → TransactionListBig-BZ5gpbJ5-Bm4_r9qH.js} +1 -1
- package/dist/assets/{TransactionListPage-CpFiD4Aw-_sCR6guP.js → TransactionListPage-CqU-E-7M-BizBcsew.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BSZ4IBis-BBSuIAyI.js → TransactionVendorDetailPage-BvcpFzUp-DW2mpv-1.js} +3 -3
- package/dist/assets/{TransferDrawerPage-CiGIqLHQ-DXixiZfl.js → TransferDrawerPage-D1NgpWIq-C2E7-vdj.js} +20 -20
- package/dist/assets/{TreasuryOverviewPage-C21g82G6-CQsvFi67.js → TreasuryOverviewPage-CD2o1CFy-8qk7AdY6.js} +33 -33
- package/dist/assets/{TreasuryPromoPage-lNMQil_1-B1nrvRps.js → TreasuryPromoPage-CwmjKeA3-BNj8wbyy.js} +7 -7
- package/dist/assets/{TreasurySetupPage-CHjK0p7r-8sdB5yWR.js → TreasurySetupPage-DP8WeoZ8-Dr5EZ1f3.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-CKAdFoHY-DUBBrZ0u.js → TreasuryStatementsPage-e6twnrIV-DioRFi4U.js} +3 -3
- package/dist/assets/{TreasuryTaxLetterPage-DPdcmb53-CS9rVfJz.js → TreasuryTaxLetterPage-C0b1z_Th-B11BzKum.js} +2 -2
- package/dist/assets/{TreasuryTransferOrReviewPage-DmGpNvWn-Co9DgHXC.js → TreasuryTransferOrReviewPage-CKyTuHqj-BTErZLx_.js} +25 -25
- package/dist/assets/{TrendChart-BJF_aBUS-BMy2_Q9E.js → TrendChart-Dn0GiuT9-HQjjMVrP.js} +1 -1
- package/dist/assets/{TrendWithTransactions-DXSMdecG-CANPLez3.js → TrendWithTransactions-DtPVZEAr-DnuxxeAb.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-DMiXdRb9-DLsuLqYf.js → UncategorizedAccountsMappingPage-BsNKhjNn-DKa7txXi.js} +8 -8
- package/dist/assets/{UnitIntegrationPage-Dqakwr1P-ByAKOcKO.js → UnitIntegrationPage-yq2PJvQf-lbVttX1U.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-DOy8Wvxm-DMrdpbVK.js → UploadAdditionalDocumentOverlay-CGX4As30-PMvLbAD2.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DR_Uif4s-B_GT6Sq4.js → Vendor2FAPopup-iHeZH2a--CWW41Kpu.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-_nmRyuvM-BGY_QCdu.js → VendorACHDetailsPage-w879CB2t-DBelQrTv.js} +1 -1
- package/dist/assets/{VendorDetailPage-DYhBGXTe-BJaZYfIh.js → VendorDetailPage-DZ4h1qWW-vxXfS1yQ.js} +4 -4
- package/dist/assets/{VendorDomesticWireDetailsPage-OzrrojiZ-C9c31Kyz.js → VendorDomesticWireDetailsPage-CHju4IUB-BwOjp8sq.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-C6i7dipR-CDi2_exv.js → VendorFiling1099EditablePage-BlvW4OEf-caJ6TGkm.js} +5 -5
- package/dist/assets/{VendorFirstReviewPage-DrelrPYn-DzxrK758.js → VendorFirstReviewPage-4NSSfruW-SkZiIEM_.js} +15 -15
- package/dist/assets/{VendorInternationalWireDetailsPage-BglZ4_v2-BVn2TPKA.js → VendorInternationalWireDetailsPage-CYnMhzsB-Dp-2dBCE.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-MKHHcDL4-DMOU_udf.js → VendorInternationalWireSwiftDetailsPage-CXhnSzG9-CqZ25PxA.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-COwLgrG_-a3j4nxr6.js → VendorsAccountsSection-DytBkZ5j-BDTqXfPm.js} +1 -1
- package/dist/assets/{VerifyDevice-FO7331hS-rNW11ub0.js → VerifyDevice-CQ0olx8K-BR-mcrJ3.js} +1 -1
- package/dist/assets/{VideoPlayer-C7GWTYSG-ClYWctvb.js → VideoPlayer-BzfzJW7y-C5JZYu_g.js} +1 -1
- package/dist/assets/{VideoPopup-CB0BXhOA-DweU0weQ.js → VideoPopup-DJubpBc5-CxKuMSGz.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-B081ksn8-DBrcyXm_.js → WarningsDrawerPage-DtdniUCH-DJUs63Zw.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-Bbx7ge3Z-B74a9iCh.js → ZeniAccountDetailPage-UcgfqnXC-Th3RZHDM.js} +4 -4
- package/dist/assets/{ZeniAccountListViewPage-CgOxwjk1-loQXKfEe.js → ZeniAccountListViewPage-STT7H2Nw-BroPoovh.js} +6 -6
- package/dist/assets/{ZeniAccountNavBarPieces-BkN8_5Zi-BBFYIr9g.js → ZeniAccountNavBarPieces-ZNlC5aGd-BNisBi0x.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-DrMHkTuM-TsJAmqcK.js → ZeniAccountPromoPage-DeVBZrVx-DUJkUAQ8.js} +5 -5
- package/dist/assets/{ZeniAccountSetupPage-BCpKadR1-BILWbvOC.js → ZeniAccountSetupPage-UlF7qoFd-Bt_j1YxN.js} +1 -1
- package/dist/assets/{ZeniCopyright-juRAWlbw-CPXEOl77.js → ZeniCopyright-CjbWU9Dc-BLwz2UDU.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BtI1L6UN-GWCIzf4e.js → ZeniTransferAmountSlider-BL2-PVj4-Bi0ukH0F.js} +1 -1
- package/dist/assets/analytics-Dr_Q0qi5.js +73 -0
- package/dist/assets/{analyticsHelper-DQQo4LQc-D87Bn7n3.js → analyticsHelper-47l9Opyu-BI0dCEoa.js} +1 -1
- package/dist/assets/{analyticsHelper-CSeUgl6n.js → analyticsHelper-BpYh_F2q.js} +1 -1
- package/dist/assets/{chartTypes-eqxFaFS5-fUn75ZVM.js → chartTypes-DmEm-9Ox-ULKq2fZN.js} +1 -1
- package/dist/assets/{commonDimensions-C2hbzHZW-DX6zjHki.js → commonDimensions-Dfc-15aJ-CxnVwTdu.js} +1 -1
- package/dist/assets/crypto-Ccg-ICil.js +35 -0
- package/dist/assets/{detailCommon-fC811KkH-QLQiCSMc.js → detailCommon-CfRJr7PH-Zz1na4q2.js} +1 -1
- package/dist/assets/{downloadPdf-CgcD1OYw-D2NqLzAt.js → downloadPdf-QB7_leFQ-CoJ91cS7.js} +1 -1
- package/dist/assets/{index-CfctPHbv.js → index-C7jkqxrR.js} +13 -13
- package/dist/assets/{mapLoadingInProgressToTreeNode-CM7N02af-DiQ1kXB9.js → mapLoadingInProgressToTreeNode-BbnaFFzG-BRQ7gDuX.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-MzhgtFpc-DvFOj2Em.js → mapSectionWithAcOnlyToTreeNode-B3ThW_Wk-DV4jlGZ4.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-C7hklF---BcLWVoos.js → mapSpacerToTreeNode-CMRinfvP-BAaxRYcb.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-D36HLTqR-CaVDkf8Q.js → mapTimeframeBalancesToTreeNode-C4e13DYv-mbUoKHNs.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CEJ9v-Q3-Dh04BnMI.js → mapTimeframeBalancesToTreeNode-y77ZAwQg-CYnesxgR.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BhdfWhpd-cB73nGq5.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DGrKwzUB-CAVP7axd.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DCFbumLL-DJ7iqU0X.js → toCOABalancesWithID-DIO7qGqY-BCZorL6x.js} +1 -1
- package/dist/assets/{toChartData-Dh9v_zba-DQ0vqbhf.js → toChartData-D89UpEia-DmSMBtrE.js} +1 -1
- package/dist/assets/{treasuryColorHelper-ZXa62meg-BjqYsu0A.js → treasuryColorHelper-CF-h70rk-DcbjCnLZ.js} +1 -1
- package/dist/assets/{uploadAttachment-DOhn3y-C-CJ6_VxnJ.js → uploadAttachment-B-bBj_Bq-DxXvr3YV.js} +11 -11
- package/dist/assets/{uploadReceipts-dxsKhm9I-BzjHIWji.js → uploadReceipts-dxsKhm9I-BIa10rGM.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-BLgcij7A-DND9iQFj.js +0 -1
- package/dist/assets/ExpenseAutomationPage-BXyGtnBz-DDXuwH9L.js +0 -1650
- package/dist/assets/LabeledAddressValueField-RFI4bpOj-zAuVOTou.js +0 -45
- package/dist/assets/ScreenRoutes-BjG9FBY3.js +0 -206
- package/dist/assets/TransactionDetailPage-DZPHVxna-Bx-BUpUf.js +0 -912
- package/dist/assets/analytics-B3n5JGPc.js +0 -7
- package/dist/assets/crypto-BDNqpTKX.js +0 -40
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
1
|
+
import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,fP as Xn,fR as Qn,fS as eo,j as t,g9 as to,F as nn,bV as li,bX as on,bY as an,$ as q,o as i,C as c,aX as ki,aK as io,dt as no,fT as oo,g2 as rn,fZ as Ii,a4 as ln,p as sn,f_ as ao,ey as _e,ga as At,e$ as si,m as xt,gb as ro,g as j,a3 as cn,r as ci,q as a,aT as lo,g0 as so,cb as co,eF as di,gc as zt,cW as fe,cY as xe,cd as ui,cn as ct,ek as uo,cV as dn,v as Pt,cg as un,cf as Qe,cv as st,w as mi,gd as mo,f2 as po,ca as ho,a8 as Di,aS as go,ap as mn,az as yo,ej as bo,am as Bt,fU as fo,br as pn,J as pi,y as hn,cx as gn,bO as Mt,eV as xo,ao as wo,cB as So,d1 as $o,t as hi,K as Ti,bp as yn,ah as ji,cu as vo,n as Co,cj as bn,a0 as ko,ge as fn,gf as ri,fK as Ri,gg as Ot,ct as Io,fO as Do,b6 as To,cs as jo}from"./index-C7jkqxrR.js";import{b as v,n,f as vt}from"./vendor-rkTZJa59.js";import{_ as Ro}from"./liveblocks-CP09Cz-7.js";import xn from"./InvoiceUploadSection-BTwzAYmG-DqCxJXD_.js";import{r as Po,f as Lt,d as yt,p as gi,u as Pi,h as ve}from"./types-DyvtCprH-BcZYcgaq.js";import{T as Oo}from"./LabeledCreatableSingleSelectField-CtuwY_9o-BYO4B8QP.js";import{S as Lo}from"./CurrencySelectField-DhbePxwd-Cd-AHSQD.js";import{q as Ao}from"./SetUpDefaultSection-Bw-ODNSn-XyoiRDtn.js";import{e as zo}from"./BankAccountSection-X5lu-xFg-TbmLt2Ax.js";import{W as Bo,A as Mo}from"./BankAccountWarningSection-CVhY2Ven-MI-JQ1yO.js";import{o as Fo}from"./radio-default-CiSgisfh-Z5w0WcFM.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-Ccg-ICil.js";import"./AttachmentView-CQXaXBQ0-DG9KqabP.js";import"./uploadReceipts-dxsKhm9I-BIa10rGM.js";const Je=(e,o)=>`${e}.${o}`,Oi={largeLabelWidth:new c(120,120,160),paddingBottom:new c(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:Re}},dateFormat:Eo,common:No}=me.getLocalizedStrings(),Wo=({lineIndex:e,mileage:o,classList:r,defaultCurrency:u,sectionId:p,isReimbursementCommentingEnabled:C,isDisabled:m,isAddReimbursementDisabled:S,companyMileageConfigInfo:b,reimbursementId:l,classHierarchyList:k})=>{const f=Ie(),s=ft(),g=zt(),w=`dashboard_${s.currentTenant?.companyId}`,R=bt(),{getValues:T}=ct(),$=No.strings.empty,K=T(Je(p,"distanceInMiles")),L=Oi.largeLabelWidth.value(f),I={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},E=A=>r.filter(_=>_.classId===A)[0]?.accountingClassNumber,te=r.find(A=>A.classId===o.class),pe={valueContainer:A=>({...A,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.transactionDate`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("transactionDate",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(bn,{isDisabled:m,label:{label:Re.transactionDate,width:L},style:{paddingBottom:Oi.paddingBottom.valuePx(f),width:"auto"},dateField:{name:Je(p,"transactionDate"),placeholder:Re.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Eo.visual.defaultInput,autoComplete:"off",maxDate:ee.dateNow(),registerOptions:{required:!0,validate:A=>!!A}}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:S?"disabled":void 0,style:{width:"auto"},label:{label:Re.distanceInMiles,width:L},formattedTextField:{type:"number",name:Je(p,"distanceInMiles"),placeholder:Re.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.amount`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("amount",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:"disabled",label:{label:Re.amount,width:L},formattedTextField:{type:"number",name:Je(`${p}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:Qe(Re.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:K!=null&&b?.mileageUnitAmount!=null?`${u.currencySymbol}${b?.mileageUnitAmount} per mile x ${K}`:void 0})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.memo`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("memo",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(ui,{isDisabled:m,label:{label:Re.memo,width:L},style:{width:"auto"},text:{type:"text",name:Je(p,"memo"),placeholder:Qe(Re.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:fn}}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.class`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("class",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(ri,{isLoading:!1,label:{label:Re.department,width:L},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Je(p,"class"),placeholder:Qe(Re.department),valueToId:A=>E(A),defaultValue:{selectedOption:te?.classId,allOptions:_e(k,[])},style:{width:"100%"},customStyleConfig:pe,registerOptions:{required:!0,validate:A=>!!A.selectedOption}},style:{borderBottom:`1px solid ${R.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Je(p,"class"))})]})},Ct=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey3};
|
|
5
5
|
min-height: 1px;
|
|
6
6
|
max-height: 1px;
|
|
7
|
-
`,Li={amounWidth:new c(50,30),currencyWidth:new c(50,70)};function Uo({name:e,placeHolder:o,defaultValue:r,isDisabled:u,showAmountCurrencyError:p,style:C,allCurrencies:m}){const[S,b]=v.useState(!1),{getValues:l,formState:{errors:k}}=ct(),f=bt(),s=Ie(),g=u!=null,w=l(e),R=`${w?.amount} ${w?.currency?.selectedOption}`,
|
|
7
|
+
`,Li={amounWidth:new c(50,30),currencyWidth:new c(50,70)};function Uo({name:e,placeHolder:o,defaultValue:r,isDisabled:u,showAmountCurrencyError:p,style:C,allCurrencies:m}){const[S,b]=v.useState(!1),{getValues:l,formState:{errors:k}}=ct(),f=bt(),s=Ie(),g=u!=null,w=l(e),R=`${w?.amount} ${w?.currency?.selectedOption}`,T=st(k,e)&&Ot(k,`${e}.amount`)!=null,$=st(k,e)&&Ot(k,`${e}.currency`)!=null,K=p===!0?T||$:!1,L=!K&&S===!1;return v.useEffect(()=>{L===!1&&b(!0)},[L]),t.jsx(sn,{onClickAway:()=>g===!1&&!K&&b(!1),children:t.jsx(_o,{style:C,isDisabled:g,tabIndex:L&&!g?0:void 0,onClick:()=>g===!1&&b(!0),"data-testid":q("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[w?.amount!=null?t.jsx(Ai,{className:"amount-field",isVisible:L,children:R}):t.jsx(Ai,{className:"amount-field amount-placeholder",isVisible:L,children:o?.name}),t.jsxs(Vo,{isVisible:!L,children:[t.jsx(Do,{type:"number",name:`${e}.amount`,defaultValue:r?.amount,placeholder:o?.amount,returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:I=>I!=null?I>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:u,style:{display:"flex",flexGrow:1,width:Li.amounWidth.valuePercentage(s),cursor:"inherit"},bgColor:f.colors.background,isFieldError:T,shouldHighlightZeroAmount:!0}),L?null:t.jsx(Ho,{}),t.jsx(Lo,{name:`${e}.currency`,registerOptions:{validate:I=>I!=null&&I.selectedOption!=null},defaultValue:{allOptions:m.map(I=>({label:s==="small"?I.currencyCode:`${I.currencyCode} - ${I.currency}`,value:I.currencyCode,countryCode:I.countryCode})),selectedOption:r?.currencyCode},controlStyle:{justifyContent:"flex-start",backgroundColor:f.colors.background},isDisabled:u,style:{width:Li.currencyWidth.valuePercentage(s),flexGrow:1},isOptionRemovable:!1})]})]})})})}const Vo=n.div`
|
|
8
8
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
9
9
|
width: 100%;
|
|
10
10
|
input {
|
|
@@ -37,7 +37,7 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
37
37
|
&.amount-placeholder {
|
|
38
38
|
color: ${e=>e.theme.colors.grey1};
|
|
39
39
|
}
|
|
40
|
-
`,Fe={width:new c(343,580,726),height:new c(a[6],a[6]),controlHeight:new c(a[6],a[6]),paddingTopBottom:new c(a[2],a[2]),marginRight:new c(a[2],a[2]),labelMarginLeft:new c(a[3],a[4]),labelMarginRight:new c(a[3],a[4]),labelMarginTop:new c(a[2],a[2])},wn={infoLabel:new pi("extraSmallRegular","smallRegular")};function qo({isDisabled:e,label:o,currencyAmountField:r,style:u,errorInfoLabel:p,isAdditionalInfoLabelLoading:C,showAdditionalLabelTooltip:m=!1,additionalLabelTooltip:S,additionalInfoLabel:b,showAdditionalInfoLabel:l=!0}){const k=Ie(),{formState:{errors:f}}=ct(),s=st(f,r.name)&&Ot(f,`${r.name}.amount`)!=null,g=st(f,r.name)&&Ot(f,`${r.name}.currency`)!=null,w=r.showAmountCurrencyError===!0?s||g:!1,R=s||g||w,
|
|
40
|
+
`,Fe={width:new c(343,580,726),height:new c(a[6],a[6]),controlHeight:new c(a[6],a[6]),paddingTopBottom:new c(a[2],a[2]),marginRight:new c(a[2],a[2]),labelMarginLeft:new c(a[3],a[4]),labelMarginRight:new c(a[3],a[4]),labelMarginTop:new c(a[2],a[2])},wn={infoLabel:new pi("extraSmallRegular","smallRegular")};function qo({isDisabled:e,label:o,currencyAmountField:r,style:u,errorInfoLabel:p,isAdditionalInfoLabelLoading:C,showAdditionalLabelTooltip:m=!1,additionalLabelTooltip:S,additionalInfoLabel:b,showAdditionalInfoLabel:l=!0}){const k=Ie(),{formState:{errors:f}}=ct(),s=st(f,r.name)&&Ot(f,`${r.name}.amount`)!=null,g=st(f,r.name)&&Ot(f,`${r.name}.currency`)!=null,w=r.showAmountCurrencyError===!0?s||g:!1,R=s||g||w,T=()=>{if(C===!0)return t.jsx(Zo,{children:t.jsx(xt,{size:"Small",start:!0})});if(l&&b||w){let $=null;return m===!0&&l&&b&&($=t.jsx(yn,{placement:k==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Jo,{children:S??""}),children:t.jsx(Qo,{children:t.jsx(ea,{})})})),t.jsxs(Xo,{size:k,isError:w,hasToolTip:m,children:[$,b]})}};return t.jsxs(Ko,{size:k,style:u,isDisabled:e!=null,isAmountError:s,isCurrencyError:g,"data-testid":q("labeled-currency-amount-field",r.name),children:[t.jsx(Io,{isDisabled:e,label:o.label,htmlFor:r.name,style:{marginLeft:Fe.labelMarginLeft.value(k),marginRight:Fe.labelMarginRight.value(k),marginTop:Fe.labelMarginTop.value(k),width:o.width??"auto"}}),t.jsxs(Yo,{labelWidth:o.width,children:[t.jsx(Uo,{...r,isDisabled:e,style:{flexGrow:1,height:Fe.controlHeight.value(k)}}),R?t.jsx(Go,{size:k,hasError:R,children:p}):null,T()]})]})}const Ko=n.div`
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: row;
|
|
43
43
|
align-items: flex-start;
|
|
@@ -142,11 +142,11 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
142
142
|
margin-right: ${i.sp2};
|
|
143
143
|
margin-top: 2px;
|
|
144
144
|
align-items: center;
|
|
145
|
-
`,ea=n(
|
|
145
|
+
`,ea=n(To)`
|
|
146
146
|
width: ${i.sp3};
|
|
147
147
|
height: ${i.sp3};
|
|
148
148
|
color: inherit;
|
|
149
|
-
`,Be=(e,o)=>`${e}.${o}`,jt={largeLabelWidth:new c(120,120,160),smallLabelWidth:new c(85,85,160),paddingBottom:new c(a[3],a[2]),autoFillIconLeft:new c(-8,-24)},{dateFormat:ta,common:Sn,spendManagement:{reimbursement:{reimbursementDetail:de}}}=me.getLocalizedStrings(),{strings:{empty:oe}}=Sn,ia=(e,o)=>{const r=e.slice(1);let u=!1;return r.forEach(p=>{p.account?.qboId!=null&&p.account?.qboId===o&&(u=!0)}),u},na=e=>e.charAt(0).toLowerCase()+e.slice(1),oa=({lineIndex:e,outOfPocket:o,accountList:r,classList:u,merchantList:p,isAddReimbursementDisabled:C,sectionId:m,isReimbursementCommentingEnabled:S,isDisabled:b,autoFields:l=[],accountsHierarchyList:k,classHierarchyList:f,reimbursementId:s,tentativeMerchantName:g,allCurrencies:w,uncategorizedAccounts:R})=>{const
|
|
149
|
+
`,Be=(e,o)=>`${e}.${o}`,jt={largeLabelWidth:new c(120,120,160),smallLabelWidth:new c(85,85,160),paddingBottom:new c(a[3],a[2]),autoFillIconLeft:new c(-8,-24)},{dateFormat:ta,common:Sn,spendManagement:{reimbursement:{reimbursementDetail:de}}}=me.getLocalizedStrings(),{strings:{empty:oe}}=Sn,ia=(e,o)=>{const r=e.slice(1);let u=!1;return r.forEach(p=>{p.account?.qboId!=null&&p.account?.qboId===o&&(u=!0)}),u},na=e=>e.charAt(0).toLowerCase()+e.slice(1),oa=({lineIndex:e,outOfPocket:o,accountList:r,classList:u,merchantList:p,isAddReimbursementDisabled:C,sectionId:m,isReimbursementCommentingEnabled:S,isDisabled:b,autoFields:l=[],accountsHierarchyList:k,classHierarchyList:f,reimbursementId:s,tentativeMerchantName:g,allCurrencies:w,uncategorizedAccounts:R})=>{const T=Ie(),$=ft(),K=zt(),L=bt(),I=o.isCategoryUpdateSelected!=null&&o.recommendedAccount!=null&&!o.isCategoryFirstTimeAutofilled&&!ia(o.recommendations,o.account),E=o.isRetainedCategorySelected!=null&&o.retainedAccount!=null,te=jt.largeLabelWidth.value(T),pe=jt.smallLabelWidth.value(T),A=p.map(P=>P.id??oe),_={application:"dashboard",companyId:$.currentTenant?.companyId,tab:"reimbursement",entityId:s},Y=`dashboard_${$.currentTenant?.companyId}`,H=P=>p.find(ge=>ge.id===P)?.name??P,ie=r.find(P=>P.qboId===o.account),Q=P=>[R.expense?.qboId,R.income?.qboId].includes(P),we=u.find(P=>P.classId===o.class),he={valueContainer:P=>({...P,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},re=P=>r.filter(ge=>ge.qboId===P)[0]?.qboId,J=P=>u.filter(ge=>ge.classId===P)[0]?.accountingClassNumber,le=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",na(o?.recommendedAccount?.reason??oe)),Oe=At(k,o.recommendations);return t.jsxs(t.Fragment,{children:[g!=null||l.includes("merchant")?t.jsx(ot,{children:t.jsx(rt,{windowSize:T,children:t.jsx(at,{})})}):null,t.jsx(fe,{isThreadAllowed:S&&s!=null,dashboardTabKey:xe({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:Y,companyId:$.currentTenant?.companyId??oe,companyName:$.currentTenant?.companyName??oe,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{..._,entityType:`reimbursement.details.${ve("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:K?.sharedRef?.contentWrapperRef,children:t.jsx(Oo,{isDisabled:b!=null||C?"disabled":void 0,label:{label:de.merchant,width:te},style:{width:"auto"},creatableSingleSelectField:{name:Be(m,"merchant"),placeholder:de.merchantPlaceholder,defaultValue:{selectedOption:o.merchant??oe,allOptions:A},registerOptions:{required:!0,validate:P=>!!P.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:H})}),t.jsx(kt,{}),l.includes("transactionDate")?t.jsx(ot,{children:t.jsx(rt,{windowSize:T,children:t.jsx(at,{})})}):null,t.jsx(fe,{isThreadAllowed:S&&s!=null,dashboardTabKey:xe({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:Y,companyId:$.currentTenant?.companyId??oe,companyName:$.currentTenant?.companyName??oe,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{..._,entityType:`reimbursement.details.${ve("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:K?.sharedRef?.contentWrapperRef,children:t.jsx(bn,{isDisabled:b,label:{label:de.transactionDate,width:te},style:{paddingBottom:jt.paddingBottom.valuePx(T),width:"auto"},dateField:{name:Be(m,"transactionDate"),placeholder:de.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:ta.visual.defaultInput,autoComplete:"off",maxDate:ee.dateNow(),registerOptions:{required:!0,validate:P=>!!P}}})}),t.jsx(kt,{}),l.includes("amount")?t.jsx(ot,{children:t.jsx(rt,{windowSize:T,isTwoLined:!0,children:t.jsx(at,{})})}):null,t.jsx(fe,{isThreadAllowed:S&&s!=null,dashboardTabKey:xe({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:Y,companyId:$.currentTenant?.companyId??oe,companyName:$.currentTenant?.companyName??oe,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{..._,entityType:`reimbursement.details.${ve("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:K?.sharedRef?.contentWrapperRef,children:t.jsx(qo,{isDisabled:b!=null||C?"disabled":void 0,label:{label:de.amount,width:pe},style:{width:"auto"},currencyAmountField:{style:{height:i.sp6},name:`${m}.amount`,defaultValue:{amount:o.amount.amount,currencyCode:o.amount.currencyCode,currencySymbol:o.amount.currencySymbol},placeHolder:{amount:de.addAmount,name:de.addAmount},allCurrencies:w,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:de.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:o.isConvertedCurrencyLoading===!0,additionalInfoLabel:!tn(o.homeCurrencyDetails,o.amount)&&o.amount.currencyCode!==Sn.currency.currencyCode&&o.homeCurrencyDetails?.amount!==0?`${ko("0,0[.]00",o.homeCurrencyDetails)} ${o.homeCurrencyDetails?.currencyCode}`:void 0})}),t.jsx(kt,{}),l.includes("memo")?t.jsx(ot,{children:t.jsx(rt,{windowSize:T,children:t.jsx(at,{})})}):null,t.jsx(fe,{isThreadAllowed:S&&s!=null,dashboardTabKey:xe({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:Y,companyId:$.currentTenant?.companyId??oe,companyName:$.currentTenant?.companyName??oe,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{..._,entityType:`reimbursement.details.${ve("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:K?.sharedRef?.contentWrapperRef,children:t.jsx(ui,{isDisabled:b,label:{label:de.memo,width:te},style:{width:"auto"},text:{type:"text",name:Be(m,"memo"),placeholder:Qe(de.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:fn}}})}),t.jsx(kt,{}),l.includes("account")?t.jsx(ot,{children:t.jsx(rt,{windowSize:T,children:t.jsx(at,{})})}):null,t.jsx(fe,{isThreadAllowed:S&&s!=null,dashboardTabKey:xe({type:"details",key:`${e}.out_of_pocket.account`}),roomId:Y,companyId:$.currentTenant?.companyId??oe,companyName:$.currentTenant?.companyName??oe,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{..._,entityType:`reimbursement.details.${ve("account",e,"out_of_pocket")}`},fieldThreadTargetElement:K?.sharedRef?.contentWrapperRef,children:t.jsx(ri,{label:{label:de.category,width:te},groupedSingleSelectField:{shouldShowChevronIcon:I||E,name:Be(m,"account"),placeholder:de.categoryPlaceholder,valueToId:P=>re(P),defaultValue:{selectedOption:ie?.qboId??ie?.accountId,allOptions:Oe},style:{width:"100%"},customStyleConfig:he,registerOptions:{required:!0,validate:P=>!!P.selectedOption}},disableCurrentOption:Q,style:{borderBottom:`1px solid ${L.colors.grey3}`,minHeight:i.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:o.isRecommendationLoading,recommendationCheckboxField:I?{tooltipProps:{text:le},label:{label:o.recommendedAccount?.accountName??oe},checkBoxField:{name:Be(m,"isCategoryUpdateSelected"),defaultChecked:!!o.isCategoryUpdateSelected}}:void 0,retainCheckboxField:E?{label:{label:o.retainedAccount?.accountName??oe},checkBoxField:{name:Be(m,"isRetainedCategorySelected"),defaultChecked:!!o.isRetainedCategorySelected}}:void 0},Be(m,"account"))}),l.includes("class")?t.jsx(ot,{children:t.jsx(rt,{windowSize:T,children:t.jsx(at,{})})}):null,t.jsx(fe,{isThreadAllowed:S&&s!=null,dashboardTabKey:xe({type:"details",key:`${e}.out_of_pocket.class`}),roomId:Y,companyId:$.currentTenant?.companyId??oe,companyName:$.currentTenant?.companyName??oe,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{..._,entityType:`reimbursement.details.${ve("class",e,"out_of_pocket")}`},fieldThreadTargetElement:K?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(ri,{isLoading:!1,label:{label:de.department,width:te},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Be(m,"class"),placeholder:Qe(de.department),valueToId:P=>J(P),defaultValue:{selectedOption:we?.classId,allOptions:_e(f,[])},style:{width:"100%"},customStyleConfig:he,registerOptions:{required:!0,validate:P=>!!P.selectedOption}},style:{borderBottom:`1px solid ${L.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Be(m,"class"))})]})},ot=n.span`
|
|
150
150
|
position: relative;
|
|
151
151
|
`,at=n(di)`
|
|
152
152
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -163,7 +163,7 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
163
163
|
background-color: ${e=>e.theme.colors.grey3};
|
|
164
164
|
min-height: 1px;
|
|
165
165
|
max-height: 1px;
|
|
166
|
-
`,Ze=(e,o)=>`${e}.${o}`,Ee={paddingTop:new c(a[5],a[4]),marginBottom:new c(a[3],a[3]),labelPaddingLeft:new c(a[3],a[4]),buttonWidth:new c(70,70),containerRightMargin:new c(a[3],a[8]),containerLeftMargin:new c(a[3],a[6]),deleteConfirmationTextMarginBottom:new c(a[2],a[0])},G=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,aa=({lineData:e,currencyConversionState:o,recommendationFetchState:r,remiStage:u,lineIndex:p,accountList:C,classList:m,merchantList:S,hasFile:b,defaultCurrency:l,hasMultipleLineItems:k,fileRequiredLineIds:f,duplicateLineDetails:s,remiStatus:g,sectionId:w,isDisabled:R,isReimbursementCommentingEnabled:
|
|
166
|
+
`,Ze=(e,o)=>`${e}.${o}`,Ee={paddingTop:new c(a[5],a[4]),marginBottom:new c(a[3],a[3]),labelPaddingLeft:new c(a[3],a[4]),buttonWidth:new c(70,70),containerRightMargin:new c(a[3],a[8]),containerLeftMargin:new c(a[3],a[6]),deleteConfirmationTextMarginBottom:new c(a[2],a[0])},G=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,aa=({lineData:e,currencyConversionState:o,recommendationFetchState:r,remiStage:u,lineIndex:p,accountList:C,classList:m,merchantList:S,hasFile:b,defaultCurrency:l,hasMultipleLineItems:k,fileRequiredLineIds:f,duplicateLineDetails:s,remiStatus:g,sectionId:w,isDisabled:R,isReimbursementCommentingEnabled:T,isAddReimbursementDisabled:$,style:K,autoFields:L=[],analytics:I,reimbursementId:E,tentativeMerchantName:te,companyMileageConfigInfo:pe,uncategorizedAccounts:A,removeDuplicateReimbursementForLine:_,scrollToSection:Y,onDuplicateLineClick:H,onRemoveReimbursement:ie,clearTentativeNameForLine:Q,allCurrencies:we,accountsHierarchyList:he,classHierarchyList:re})=>{const J=Ie(),le=ft(),Oe=zt(),P=me.getLocalizedStrings().common.strings.empty,ge={application:"dashboard",companyId:le.currentTenant?.companyId,tab:"reimbursement",entityId:E},se=`dashboard_${le.currentTenant?.companyId}`,{getValues:Ne}=ct(),[Le,Ae]=v.useState(!1),Se=Ne(Ze(w,"reimbursementType"));return t.jsxs(ma,{style:K,windowSize:J,children:[t.jsxs(la,{hasFile:b,windowSize:J,showDeleteConfirmation:Le,children:[t.jsx(ha,{windowSize:J,children:k?`#${p+1} ${G.reimbursement}`:G.reimbursement}),Le?t.jsxs(ua,{windowSize:J,children:[t.jsx(da,{windowSize:J,children:G.deleteConfirmation}),t.jsxs(ra,{children:[t.jsx(Ti,{label:G.buttons.cancel,onClick:()=>Ae(!1),style:{width:Ee.buttonWidth.value(J),marginLeft:J==="small"?i.sp0:i.sp4,marginRight:i.sp3},size:"small",variant:"secondary","data-testid":q("delete-remi-button",G.buttons.cancel)}),t.jsx(Ti,{label:G.buttons.remove,onClick:()=>{I?.trackReimbursementDeleteReimbursementLine(e.lineId,E),Q?.(e.lineId??"1"),Ae(!1),_(e.lineId),ie(p)},style:{width:Ee.buttonWidth.value(J)},size:"small",variant:"danger","data-testid":q("delete-remi-button",G.buttons.remove)})]})]}):k&&(u==="draft"||g==="rejected")?t.jsx(sa,{className:"deleteIconWrapper",windowSize:J,onClick:()=>Ae(!0),"data-testid":q("delete-remi-button",e.lineId),children:t.jsx(yn,{enterDelay:600,title:G.deleteReimbursement,placement:"top-end",children:t.jsx(ca,{})})}):null]}),f.includes(e.lineId)?t.jsx(rn,{title:G.missingReceipt,description:G.missingReceiptDescription,style:{marginBottom:i.sp3}}):null,t.jsxs(ga,{windowSize:J,children:[s?.duplicateLineId!=null?t.jsxs(pa,{children:[G.thisExpense," ",s.isDuplicateWithinTransaction?t.jsx(zi,{"data-testid":q("view-duplicate-transaction-expense"),onClick:()=>(I?.trackReimbursementViewDuplicateExpense(!0,E),Y(s.duplicateLineId)),children:G.viewOriginalExpense}):t.jsx(zi,{"data-testid":q("view-duplicate-expense"),onClick:()=>{s.duplicateTransactionId!=null&&s.duplicateLineId!=null&&(I?.trackReimbursementViewDuplicateExpense(!1,E),H(s.duplicateTransactionId,s.duplicateLineId))},children:G.viewOriginalExpense})]}):null,t.jsx(fe,{isThreadAllowed:T&&E!=null,dashboardTabKey:xe({type:"details",key:Se===G.mileageKey?`${p}.mileage.reimbursementType`:`${p}.out_of_pocket.reimbursementType`}),roomId:se,companyId:le.currentTenant?.companyId??P,companyName:le.currentTenant?.companyName??P,entityId:E,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${ve("reimbursementType",p,Se===G.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:Oe?.sharedRef?.contentWrapperRef,style:{borderRadius:s?.duplicateLineId!=null?"0 0 0 0":`${i.sp2} ${i.sp2} 0 0`},children:t.jsxs(ba,{isDisabled:R!=null,haveBorderRadius:s?.duplicateLineId==null,children:[t.jsx(ji,{isDisabled:R!=null||$?"disabled":void 0,isContainerClickable:!0,label:{label:G.outOfPocket},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ee.labelPaddingLeft.value(J),borderTopLeftRadius:"inherit"},showOutline:!(T&&E!=null),radioField:{name:Ze(w,"reimbursementType"),id:`${Ze(w,"reimbursementType")}.${G.outOfPocketKey}`,value:G.outOfPocketKey}}),t.jsx(ya,{}),t.jsx(ji,{isDisabled:R!=null||$?"disabled":void 0,isContainerClickable:!0,label:{label:G.mileage},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ee.labelPaddingLeft.value(J),borderTopRightRadius:"inherit"},showOutline:!(T&&E!=null),radioField:{name:Ze(w,"reimbursementType"),id:`${Ze(w,"reimbursementType")}.${G.mileageKey}`,value:G.mileageKey}})]})}),t.jsx(fa,{}),Se===G.outOfPocketKey?t.jsx(oa,{lineIndex:p,reimbursementId:E,uncategorizedAccounts:A,isReimbursementCommentingEnabled:T,isDisabled:R,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?ee.zeniDate(e.outOfPocket.transactionDate.toDateString()):void 0,account:e.outOfPocket.account.selectedOption,isConvertedCurrencyLoading:o?.fetchState==="In-Progress",isRecommendationLoading:r==="In-Progress",homeCurrencyDetails:e.homeCurrencyConversions,class:e.outOfPocket.class.selectedOption,amount:{amount:e.outOfPocket.amount?.amount??0,currencyCode:e.outOfPocket.amount?.currencyCode??"USD",currencySymbol:e.outOfPocket.amount?.currencySymbol??"$"},memo:e.outOfPocket.memo,merchant:e.outOfPocket.merchant.selectedOption,recommendations:e.outOfPocket.recommendations,recommendedAccount:e.outOfPocket.recommendedAccount,isCategoryUpdateSelected:e.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:e.outOfPocket.isCategoryFirstTimeAutofilled,retainedAccount:e.outOfPocket.retainedAccount,isRetainedCategorySelected:e.outOfPocket.isRetainedCategorySelected},sectionId:Ze(w,"outOfPocket"),accountList:C,classList:m,autoFields:L,merchantList:S,tentativeMerchantName:te,allCurrencies:we,isAddReimbursementDisabled:$,accountsHierarchyList:he,classHierarchyList:re}):t.jsx(Wo,{lineIndex:p,reimbursementId:E,isReimbursementCommentingEnabled:T,isDisabled:R,mileage:{transactionDate:e.mileage.transactionDate!=null?ee.zeniDate(e.mileage.transactionDate.toDateString()):void 0,class:e.mileage.class.selectedOption,distanceInMiles:e.mileage.distanceInMiles,amount:{amount:e.mileage.amount?.amount??0,currencyCode:e.mileage.amount?.currencyCode??"USD",currencySymbol:e.mileage.amount?.currencySymbol??"$"},memo:e.mileage.memo},classList:m,sectionId:Ze(w,"mileage"),companyMileageConfigInfo:pe,defaultCurrency:l,isAddReimbursementDisabled:$,classHierarchyList:re})]})]})},ra=n.div``,la=n.div`
|
|
167
167
|
//when file is present and it's a small window, we don't have to show the title and delete icon. Delete icon will be displayed inside the invoice title, next to replace
|
|
168
168
|
//https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
|
|
169
169
|
display: ${e=>e.hasFile&&e.windowSize==="small"?"none":"flex"};
|
|
@@ -258,7 +258,7 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
258
258
|
`,$a=n(Bt)`
|
|
259
259
|
color: ${e=>e.theme.colors.primary};
|
|
260
260
|
margin-bottom: ${e=>lt.marginBottom.valuePx(e.windowSize)};
|
|
261
|
-
`,M={largeLabelWidth:new c(120,120,220),marginTop:new c(28,8),paymentToMarginTop:new c(0,a[4]),marginBottom:new c(a[5],a[4]),paymentToMarginBottom:new c(12,a[3]),totalMarginBottom:new c(a[3],a[3]),reimbursementSectionLeftMargin:new c(a[3],a[6]),reimbursementSectionRightMargin:new c(a[3],a[8]),invoiceSectionLeftMargin:new c(a[3],a[8]),invoiceSectionRightMargin:new c(a[3],a[6]),rightSectionWidth:new c(100,58),firstOrLastItemHeight:new c(390,760),itemHeight:new c(390,459),duplicateBannerWrapperMarginTop:new c(a[5],a[3]),duplicateBannerWrapperMarginRight:new c(a[3],a[8]),duplicateBannerWrapperMarginBottom:new c(a[5],a[3]),duplicateBannerWrapperMarginLeft:new c(a[3],a[6])},va={total:new pi("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:V},billPay:{vendorCreation:{achDetails:It}}},common:{currency:{currencyCode:
|
|
261
|
+
`,M={largeLabelWidth:new c(120,120,220),marginTop:new c(28,8),paymentToMarginTop:new c(0,a[4]),marginBottom:new c(a[5],a[4]),paymentToMarginBottom:new c(12,a[3]),totalMarginBottom:new c(a[3],a[3]),reimbursementSectionLeftMargin:new c(a[3],a[6]),reimbursementSectionRightMargin:new c(a[3],a[8]),invoiceSectionLeftMargin:new c(a[3],a[8]),invoiceSectionRightMargin:new c(a[3],a[6]),rightSectionWidth:new c(100,58),firstOrLastItemHeight:new c(390,760),itemHeight:new c(390,459),duplicateBannerWrapperMarginTop:new c(a[5],a[3]),duplicateBannerWrapperMarginRight:new c(a[3],a[8]),duplicateBannerWrapperMarginBottom:new c(a[5],a[3]),duplicateBannerWrapperMarginLeft:new c(a[3],a[6])},va={total:new pi("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:V},billPay:{vendorCreation:{achDetails:It}}},common:{currency:{currencyCode:Dt}}}=me.getLocalizedStrings(),vn=e=>{let o=0,r=Dt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const u=e;o=u.outOfPocket.amount??0,r=u.outOfPocket.currencyCode??Dt}else{const u=e;o=u.outOfPocket.amount?.amount??0,r=u.outOfPocket.amount?.currencyCode??Dt}return(e.homeCurrencyConversions?.currencyCode??Dt)!==r&&(o=e.homeCurrencyConversions?.amount??0),o},Ca=({remiUploadStatus:e,progressSectionObj:o,reimbursementId:r,createDate:u,scheduleDate:p,paymentDate:C,hasDuplicateLine:m,approvedDate:S,isFirstOrLastListItem:b,index:l,reimbursementSectionRef:k,showSkipAutoFill:f,lineData:s,currencyConversionState:g,authParams:w,uploadInvoiceEndPoint:R,accountList:T,classList:$,merchantList:K,remiStage:L,autoFieldsByLineId:I,isReimbursementCommentingEnabled:E,isAutoFieldsExist:te,totalAmount:pe,showTotalAmountLoader:A,totalNumberOfLines:_,defaultCurrency:Y,bankAccounts:H,fileRequiredLineIds:ie,isAddReimbursementDisabled:Q,duplicateLineByLineId:we,remiStatus:he,file:re,uncategorizedAccounts:J,reportTitle:le,recommendationFetchState:Oe,tentativeMerchantName:P,paymentTo:ge,analytics:se,companyMileageConfigInfo:Ne,loggedInUserDepartmentId:Le,isSignedInUserReimbursementCreator:Ae,setShowBankAccountPage:Se,setRefByLineId:ze,setCurrentLineIdForUpload:ye,onDuplicateLineClick:De,setUploadedReceiptPayload:dt,removeDuplicateReimbursementForLine:W,onReceiptsUpload:et,scrollToSection:tt,onRemoveReimbursement:We,onAddReimbursement:ke,clearTentativeNameForLine:He,onReplaceClick:Te,onDeleteBankAccount:Ue,updateInvoiceUploadFetchState:Ve,removeFileFromLine:qe,allCurrencies:Ke,accountsHierarchyList:ne,classHierarchyList:it})=>{const{formState:{errors:ut}}=ct(),Ge=v.useRef(null);v.useEffect(()=>(ze(z=>({...z,[`L${s.lineId}`]:Ge.current})),()=>{ze(z=>({...z,[`L${s.lineId}`]:null}))}),[s.lineId,ze]);const U=Ie(),mt=L==="draft"?V.newReimbursementTitle:V.editReimbursementTitle,F=M.largeLabelWidth.value(U),ae=z=>z.outOfPocket.account.selectedOption==null&&(z.outOfPocket.amount==null||z.outOfPocket.amount.amount==0)&&(z.outOfPocket.class.selectedOption==null||z.outOfPocket.class.selectedOption===Le)&&(z.outOfPocket.memo===""||z.outOfPocket.memo==null)&&z.outOfPocket.merchant.selectedOption==null&&z.outOfPocket.transactionDate==null,wt=H.map(z=>z.bankAccountId),$e=s.reimbursementType===V.outOfPocketKey&&vn(s)>=75&&re==null;return t.jsxs(Va,{ref:k,windowSize:U,children:[t.jsx(_a,{ref:z=>{z!=null&&(Ge.current=z)},windowSize:U,bottomSeperator:_!==1,showSkipAutoFill:f,isFirstItem:l===0,children:t.jsx(xn,{customError:$e?V.requireReceipt:void 0,analytics:se,showAutofill:!1,uploadInvoiceEndPoint:R,authParams:w,entityId:Q?"":void 0,file:re,style:{width:"auto",padding:0,height:b?M.firstOrLastItemHeight.valuePx(U):M.itemHeight.valuePx(U),margin:U==="small"?i.sp0:void 0},updateInvoiceUploadFetchState:Ve,onInvoiceUpload:z=>{s.reimbursementType===V.outOfPocketKey&&!ae(s)?(ye(Number(s.lineId)),dt(z),Te?.()):et(z,Number(s.lineId),!0)},dropFilePlaceholder:{upload:V.dropReceipt.upload,receipt:V.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!Q,pdfTitle:_>1?`#${l+1} Receipt`:"Receipt",onDeleteClick:()=>{Ve?.("In-Progress"),setTimeout(()=>qe?.(Number(s.lineId)))},onReplaceClick:()=>{ye(Number(s.lineId)),Te?.()},allowMultiFiles:_===l+1,type:"receipt"})}),t.jsxs(Ua,{windowSize:U,children:[l===0&&U!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(La,{children:mt}),t.jsx(Ha,{children:t.jsx(fo,{progressSectionObj:o,createDate:u,paymentDate:C,scheduleDate:p,approvedDate:S,isBillUploaded:r!=null?!0:e==="Completed"})}),te&&t.jsxs(Da,{children:[t.jsx(ka,{}),t.jsx(Oa,{children:V.banner})]}),m&&t.jsxs(Ta,{size:U,children:[t.jsx(Ia,{}),t.jsxs(Ra,{children:[t.jsx(ja,{children:V.thereSeems}),t.jsx(Pa,{children:V.pleaseFind})]})]}),t.jsx($n,{isReimbursementCommentingEnabled:E,sectionId:Lt,reportTitle:le,reimbursementId:r})]}):null,t.jsx(aa,{analytics:se,reimbursementId:r,onDuplicateLineClick:De,uncategorizedAccounts:J,sectionId:`${gi}.${l}`,scrollToSection:tt,lineIndex:l,lineData:s,accountList:T,classList:$,merchantList:K,autoFields:s.lineId!=null?I[s.lineId]:[],currencyConversionState:g,recommendationFetchState:Oe,onRemoveReimbursement:We,hasMultipleLineItems:_>1,clearTentativeNameForLine:He,tentativeMerchantName:P,hasFile:re!=null,companyMileageConfigInfo:Ne,defaultCurrency:Y,remiStage:L,remiStatus:he,fileRequiredLineIds:ie,allCurrencies:Ke,isReimbursementCommentingEnabled:E,isAddReimbursementDisabled:Q,accountsHierarchyList:ne,classHierarchyList:it,duplicateLineDetails:we[s.lineId],removeDuplicateReimbursementForLine:W}),_!==1&&_===l+1&&t.jsxs(t.Fragment,{children:[t.jsxs(za,{windowSize:U,children:[t.jsx(Ba,{children:V.total}),A?t.jsx(Ma,{windowSize:U,children:t.jsx(Fa,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(dn,{amount:ee.toAmount(pe,"USD","$"),integerStyles:Pt.h6Regular.cssObject,decimalStyles:Pt.standardRegular.cssObject})]}),t.jsxs(Na,{windowSize:U,onClick:()=>{Q===!1&&ke()},isDisabled:Q,"data-testid":q("add-reimbursement-row"),children:[t.jsx(Mi,{}),t.jsx(Bi,{children:V.addReimbursement})]}),Ae?t.jsxs(t.Fragment,{children:[t.jsx(Aa,{windowSize:U,children:V.receivePaymentTo}),t.jsx(Ea,{windowSize:U,shouldDisplay:H.length>0,children:t.jsx(un,{label:{label:V.yourBankAccount,width:F},style:{width:"auto"},singleSelectField:{singleSelect:{name:yt,placeholder:Qe(V.yourBankAccount),showValueEyeIcon:!Q,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:Ue,getTooltipInfo:z=>Cn(H,z),onClickCreateBankAccount:()=>Se(!0),getLabelForId:z=>In(H,z),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:Q?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:ge,allOptions:wt},registerOptions:{required:!0,validate:z=>!!z.selectedOption}},isFunctional:!0})}),t.jsxs(Wa,{shouldDisplay:H.length===0,windowSize:U,hasError:st(ut,yt),onClick:()=>{Q===!1&&Se(!0)},isDisabled:Q,"data-testid":q("remi-add-bank-account-container"),children:[t.jsx(Mi,{}),t.jsx(Bi,{children:V.addBankAccount})]})]}):null]})]})]})},Cn=(e,o)=>{const r=kn(e,o);return r==null?`${It.bankRoutingNumber} ${V.emptyValue}
|
|
262
262
|
${It.bankAccountNumber} ${V.emptyValue}`:`${It.bankRoutingNumber} ${r.bankRoutingNumberAch??V.emptyValue}, ${r.bankName??V.emptyValue}
|
|
263
263
|
${It.bankAccountNumber} ${r.bankAccountNumber??V.emptyValue}`},kn=(e,o)=>e.find(r=>r.bankAccountId===o),In=(e,o)=>{const r=kn(e,o);return r==null?V.selectBankAccount:r.bankAccountName?r.bankAccountName:r.maskedAccountNumber?r.maskedAccountNumber:r.bankName&&r.bankAccountNumber?`${r.bankName} ${V.accountNameConnector}${r.bankAccountNumber.slice(r.bankAccountNumber.length-4)}`:V.selectBankAccount},ka=n(di)`
|
|
264
264
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -268,7 +268,7 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
268
268
|
width: ${i.sp4};
|
|
269
269
|
height: ${i.sp4};
|
|
270
270
|
color: ${j.brandColorGoldDark};
|
|
271
|
-
`,
|
|
271
|
+
`,Da=n.div`
|
|
272
272
|
display: flex;
|
|
273
273
|
gap: ${i.sp2};
|
|
274
274
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
@@ -276,7 +276,7 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
276
276
|
border-radius: ${i.sp2};
|
|
277
277
|
align-items: center;
|
|
278
278
|
margin: 0 ${i.sp8} 0 ${i.sp6};
|
|
279
|
-
`,
|
|
279
|
+
`,Ta=n.div`
|
|
280
280
|
display: flex;
|
|
281
281
|
gap: ${i.sp2};
|
|
282
282
|
padding: ${i.sp3};
|
|
@@ -407,7 +407,7 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
407
407
|
margin-top: ${e=>M.marginTop.valuePx(e.windowSize)};
|
|
408
408
|
`,Ha=n.div`
|
|
409
409
|
padding: ${i.sp2} ${i.sp8} ${i.sp0} ${i.sp6};
|
|
410
|
-
`,qa={total:new pi("largeMedium","h6Medium")},Z={largeLabelWidth:new c(120,120,220),marginBottom:new c(a[5],a[4]),addBankAccountMarginBottom:new c(a[5],a[5]),marginTop:new c(a[0],78),paymentToMarginTop:new c(0,a[4]),totalMarginBottom:new c(a[3],a[3]),rightMargin:new c(a[3],a[8]),leftMargin:new c(a[3],a[6]),paymentToMarginBottom:new c(12,a[3])},Xe=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,Ka=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:u,showSkipAutoFill:p,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,totalAmount:S,defaultCurrency:b,hasDuplicateLine:l,bankAccounts:k,fileRequiredLineIds:f,companyMileageConfigInfo:s,analytics:g,reimbursementId:w,currencyConversionStatus:R,setShowSkipAutoFill:
|
|
410
|
+
`,qa={total:new pi("largeMedium","h6Medium")},Z={largeLabelWidth:new c(120,120,220),marginBottom:new c(a[5],a[4]),addBankAccountMarginBottom:new c(a[5],a[5]),marginTop:new c(a[0],78),paymentToMarginTop:new c(0,a[4]),totalMarginBottom:new c(a[3],a[3]),rightMargin:new c(a[3],a[8]),leftMargin:new c(a[3],a[6]),paymentToMarginBottom:new c(12,a[3])},Xe=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,Ka=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:u,showSkipAutoFill:p,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,totalAmount:S,defaultCurrency:b,hasDuplicateLine:l,bankAccounts:k,fileRequiredLineIds:f,companyMileageConfigInfo:s,analytics:g,reimbursementId:w,currencyConversionStatus:R,setShowSkipAutoFill:T,setShowBankAccountPage:$,removeDuplicateReimbursementForLine:K,onReceiptsUpload:L,setCurrentLineIdForUpload:I,onDuplicateLineClick:E,setUploadedReceiptPayload:te,removeFileFromLine:pe,onReplaceClick:A,updateInvoiceUploadFetchState:_,clearTentativeNameForLine:Y,onDeleteBankAccount:H,uncategorizedAccounts:ie,isSignedInUserReimbursementCreator:Q,duplicateLineByLineId:we,showTotalAmountLoader:he,scrollContainerRef:re})=>{const{control:J,formState:{errors:le}}=ct(),{fields:Oe,append:P,remove:ge}=uo({name:gi,control:J}),se=Oe,Ne=v.useRef(null),Le=F=>{setTimeout(()=>{ge(F)})},{tentativeMerchantNameByLineId:Ae,remiStage:Se,remiStatus:ze}=e,ye=!Q||Se==="pending_approval"&&ze!=="rejected"&&o||Se==="pending_approval"&&ze==="rejected",De=ye?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:k,dt=De.map(F=>F.bankAccountId),W=Ie(),et=Z.largeLabelWidth.value(W),tt=e.whatForSection.reportTitle,We=e.accountList.accounts,ke=e.accountsHierarchyList,He=e.classHierarchyList,Te=e.classList.classes,Ue=e.merchantList.merchants,Ve=e.addRemiAutoFieldsByLineId,qe=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(F=>Number(F)),0),Ke=()=>{const F=se[se.length-1],ae=Dn(se.length,Number(F.lineId)>qe?String(Number(F.lineId)+1):String(qe+1),ke,He,Ue,b,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{P(ae,{shouldFocus:!1})}),I(Number(ae.lineId)),T(!0),setTimeout(()=>Pi(Ne.current,re?.current),50)},[ne,it]=v.useState({}),ut=v.useCallback(F=>{const ae=ne[`L${F}`];ae!=null&&Pi(ae,re?.current)},[ne,re]),Ge=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,U=e.reimbursementInfo?.paymentDate!=null?ee.zeniDate(ee.getNextNthWorkingDay(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,mt=e.reimbursementInfo?.expectedDepositDate??U;return t.jsxs(Za,{windowSize:W,showSkipAutoFill:p,children:[se.map((F,ae)=>t.jsx(Ca,{removeDuplicateReimbursementForLine:K,onDuplicateLineClick:E,scrollToSection:ut,setRefByLineId:it,duplicateLineByLineId:we,reimbursementId:w,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:ie,progressSectionObj:Ge,createDate:e.createTime,paymentDate:mt,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:se.length-1===ae||ae===0,index:ae,reimbursementSectionRef:Ne,remiStage:Se,remiStatus:ze,authParams:r,file:F.file,uploadInvoiceEndPoint:u,showSkipAutoFill:p,lineData:F,currencyConversionState:R[F.lineId],recommendationFetchState:e.lineDetailSection[F.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:I,setUploadedReceiptPayload:te,onReplaceClick:A,onReceiptsUpload:L,removeFileFromLine:pe,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,reportTitle:tt,accountList:We,classList:Te,merchantList:Ue,autoFieldsByLineId:Ve,onRemoveReimbursement:Le,onAddReimbursement:Ke,totalAmount:S,showTotalAmountLoader:he,hasDuplicateLine:l,totalNumberOfLines:se.length,updateInvoiceUploadFetchState:_,clearTentativeNameForLine:Y,tentativeMerchantName:Ae[F.lineId],companyMileageConfigInfo:s,defaultCurrency:b,setShowBankAccountPage:$,paymentTo:e.paymentTo,bankAccounts:De,onDeleteBankAccount:H,analytics:g,fileRequiredLineIds:f,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:ye,accountsHierarchyList:ke,classHierarchyList:He,isSignedInUserReimbursementCreator:Q},F.lineId)),se.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(Jt,{children:[W!=="small"?t.jsx(Gt,{windowSize:W}):null,t.jsx(Yt,{windowSize:W,children:t.jsxs(Xa,{windowSize:W,children:[t.jsx(Qa,{children:Xe.total}),he?t.jsx(tr,{windowSize:W,children:t.jsx(ir,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(dn,{amount:ee.toAmount(S,ee.defaultVendorCurrency.currencyCode,ee.defaultVendorCurrency.currencySymbol),integerStyles:Pt.h6Regular.cssObject,decimalStyles:Pt.standardRegular.cssObject})]})})]}),t.jsxs(Jt,{children:[W!=="small"?t.jsx(Gt,{windowSize:W}):null,t.jsx(Yt,{windowSize:W,children:t.jsxs(nr,{windowSize:W,onClick:()=>{ye===!1&&Ke()},isDisabled:ye,"data-testid":q("add-reimbursement-container"),children:[t.jsx(Ei,{}),t.jsx(Fi,{children:Xe.addReimbursement})]})})]}),t.jsxs(Jt,{children:[W!=="small"?t.jsx(Gt,{windowSize:W}):null,Q?t.jsxs(Yt,{windowSize:W,children:[t.jsx(er,{windowSize:W,children:Xe.receivePaymentTo}),t.jsx(Ja,{windowSize:W,shouldDisplay:De.length>0,children:t.jsx(un,{label:{label:Xe.yourBankAccount,width:et},style:{width:"auto"},singleSelectField:{singleSelect:{name:yt,placeholder:Qe(Xe.yourBankAccount),showValueEyeIcon:!ye,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:H,getTooltipInfo:F=>Cn(De,F),onClickCreateBankAccount:()=>$(!0),getLabelForId:F=>In(De,F),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:ye?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:dt},registerOptions:{required:!0,validate:F=>!!F.selectedOption}},isFunctional:!0})}),t.jsxs(or,{shouldDisplay:De.length===0,windowSize:W,onClick:()=>{ye===!1&&$(!0)},hasError:st(le,yt),isDisabled:ye,"data-testid":q("remi-add-bank-account-container"),children:[t.jsx(Ei,{}),t.jsx(Fi,{children:Xe.addBankAccount})]})]}):null]})]})]})},Dn=(e,o,r,u,p,C,m,S)=>{const b=Ga(r,u,p,C,m,S);return{lineIndex:e,lineId:o,reimbursementType:Xe.outOfPocketKey,file:void 0,outOfPocket:b,mileage:Ya(u,C,S)}},Ga=(e,o,r,u,p,C)=>({transactionDate:void 0,class:{allOptions:_e(o,[]),selectedOption:C},account:{allOptions:At(e,[]),selectedOption:void 0},amount:{amount:0,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol,currency:{allOptions:p.map(m=>({label:`${m.currencyCode} - ${m.currency}`,value:m.currencyCode,countryCode:si(m.countryCode)})),selectedOption:u.currencyCode??me.getLocalizedStrings().common.currency.currencyCode}},memo:void 0,merchant:{allOptions:r.map(m=>m.id).filter(m=>!!m),selectedOption:void 0},recommendations:[],isCategoryUpdateSelected:!1,isCategoryFirstTimeAutofilled:!1,isRetainedCategorySelected:!1}),Ya=(e,o,r)=>({transactionDate:void 0,class:{allOptions:_e(e,[]),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:o.currencyCode,currencySymbol:o.currencySymbol},memo:void 0}),Ja=n.div`
|
|
411
411
|
margin-left: ${e=>Z.leftMargin.valuePx(e.windowSize)};
|
|
412
412
|
margin-right: ${e=>Z.rightMargin.valuePx(e.windowSize)};
|
|
413
413
|
margin-bottom: ${e=>Z.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
@@ -504,7 +504,7 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
504
504
|
`,Jt=n.div`
|
|
505
505
|
display: flex;
|
|
506
506
|
width: 100%;
|
|
507
|
-
`,Pe={buttonWidth:new c(140,140),paddingLeft:new c(a[3],a[6]),paddingRight:new c(a[3],a[8]),subTitleMarginbottom:new c(a[2],a[3]),orSeperatorTopBottomMargin:new c(a[6],44),iconWidthHeight:new c(20,a[4])},Ni="userBankAccountPage",Rt="bankAccountSection",ar=e=>({[Rt]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName}}),Wi=e=>`${e}_form`,rr=({bankAccountCreationState:e,setShowBankAccountPage:o,plaidConnectionDetails:r,onFetchLinkTokenClick:u,onEstablishConnectionClick:p,bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,isDisabled:S,onSaveHandler:b,onUserBankDetailsUpdated:l,onFetchBankName:k,onBackClick:f})=>{const s=bt(),g=Ie(),w=en({mode:"onBlur",reValidateMode:"onChange",defaultValues:v.useMemo(()=>ar(C),[C])}),R=v.useCallback(Y=>{p?.(Y),f()},[f,p]),
|
|
507
|
+
`,Pe={buttonWidth:new c(140,140),paddingLeft:new c(a[3],a[6]),paddingRight:new c(a[3],a[8]),subTitleMarginbottom:new c(a[2],a[3]),orSeperatorTopBottomMargin:new c(a[6],44),iconWidthHeight:new c(20,a[4])},Ni="userBankAccountPage",Rt="bankAccountSection",ar=e=>({[Rt]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName}}),Wi=e=>`${e}_form`,rr=({bankAccountCreationState:e,setShowBankAccountPage:o,plaidConnectionDetails:r,onFetchLinkTokenClick:u,onEstablishConnectionClick:p,bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,isDisabled:S,onSaveHandler:b,onUserBankDetailsUpdated:l,onFetchBankName:k,onBackClick:f})=>{const s=bt(),g=Ie(),w=en({mode:"onBlur",reValidateMode:"onChange",defaultValues:v.useMemo(()=>ar(C),[C])}),R=v.useCallback(Y=>{p?.(Y),f()},[f,p]),T=r.link_account_no_microdeposit,{open:$}=po({token:T.linkToken??null,onSuccess:R});v.useEffect(()=>{(ee.zeniDate(new Date().toISOString()).isAfter(T.expiration)||T.linkToken==null)&&u?.("link_account_no_microdeposit")},[]);const[K,L]=v.useState(!1),I=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,E=me.getLocalizedStrings().common.footer,te={onOkClick:()=>{L(!1),w.reset(),f()},onCancelClick:()=>{L(!1)}},pe=async(Y,H)=>{const ie=H[Rt].bankRoutingNumber;l(H),Y===`${Rt}.bankRoutingNumber`&&ie?.length===9&&xo.test(ie)===!0&&k?.(ie)};v.useEffect(()=>{const Y=w.watch((H,{name:ie})=>{ie!=null&&H!=null&&ho(()=>pe(ie,H))});return()=>{Y.unsubscribe()}}),v.useEffect(()=>{e?.fetchState==="Completed"&&f()},[e?.fetchState,f,o]);const A=w.handleSubmit(Y=>{m.fetchState!=="In-Progress"&&b()}),_=s.mode==="light"?new Di(s.colors.brandColorJadeLight):new Di(s.colors.brandColorJadeDark);return t.jsxs(lr,{children:[t.jsxs(hr,{windowSize:g,children:[K===!0?t.jsx(li,{titleComponent:t.jsx(an,{children:I.discardTitle}),descriptionComponent:t.jsx(on,{children:I.discardDescription}),primaryButtonText:I.buttons.delete,secondaryButtonText:I.buttons.cancel,action:te}):null,t.jsx(Bo,{header:I.addBankAccount,isDirty:w.formState.isDirty,onBackClick:f,setShowConfirmationPopup:L}),t.jsx(sr,{}),t.jsxs(gr,{size:g,children:[t.jsx(Ao,{onClick:()=>{w.reset(),$()},title:I.connectYourBank,subTitle:I.loginToBank,header:I.setupAchPayments,icon:{element:t.jsx(go,{width:Pe.iconWidthHeight.valuePx(g),height:Pe.iconWidthHeight.valuePx(g)}),color:_},style:{width:"unset",rowGap:g==="small"?i.sp2:void 0}}),t.jsxs(cr,{windowSize:g,children:[t.jsx(dr,{}),t.jsx(mr,{children:t.jsx(pr,{children:I.or})})]}),t.jsx(ur,{windowSize:g,children:I.saveAccountManually})]}),t.jsx(yr,{size:g,children:t.jsx(nn,{...w,children:t.jsxs("form",{id:Wi(Ni),onSubmit:A,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(Mo,{warningText:I.accountExistWarning}):null,t.jsx(zo,{bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,sectionId:Rt})]})})})]}),t.jsx(ln,{formId:Wi(Ni),primaryBtn:{label:I.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Pe.buttonWidth.value(g)},isDisabled:S!=null},cancelBtn:{label:E.cancel,style:{width:Pe.buttonWidth.value(g)},shouldResetOnCancel:!1,onClick:()=>{w.formState.isDirty?L(!0):(L(!1),w.reset(),f())}}})]})},lr=n.div`
|
|
508
508
|
display: flex;
|
|
509
509
|
flex-direction: column;
|
|
510
510
|
width: 100%;
|
|
@@ -547,7 +547,7 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
547
547
|
padding-left: ${e=>Pe.paddingLeft.valuePx(e.size)};
|
|
548
548
|
padding-right: ${e=>Pe.paddingRight.valuePx(e.size)};
|
|
549
549
|
padding-bottom: ${i.sp3};
|
|
550
|
-
`,Ce={containerWidth:new c(343,544),confirmationPopUpTitleMarginTop:new c(a[6],a[7]),confirmationPopUpTitlePaddingLeftRight:new c(a[5],a[8]),submitButtonWidth:new c(145,156),cancelButtonWidth:new c(121,121),errorLineItemGap:new c(a[2],12),styledCloseIconRight:new c(a[3],a[8])},{footer:Ui}=me.getLocalizedStrings().common,ue=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,Vi=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(Hi,{});case"In-Progress":return t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(
|
|
550
|
+
`,Ce={containerWidth:new c(343,544),confirmationPopUpTitleMarginTop:new c(a[6],a[7]),confirmationPopUpTitlePaddingLeftRight:new c(a[5],a[8]),submitButtonWidth:new c(145,156),cancelButtonWidth:new c(121,121),errorLineItemGap:new c(a[2],12),styledCloseIconRight:new c(a[3],a[8])},{footer:Ui}=me.getLocalizedStrings().common,ue=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,Vi=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(Hi,{});case"In-Progress":return t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(Tn,{});default:return t.jsx(Hi,{})}},br=e=>{switch(e){case"Not-Started":return ue.detectDuplicates;case"In-Progress":return ue.detectingDuplicates;case"Completed":return ue.noDuplicatesFound;default:return ue.detectDuplicates}},fr=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:r,numberOfDuplicateLines:u,setShowDuplicatePopup:p,analytics:C,reimbursementId:m,submitReport:S,fetchDuplicateReimbursement:b,clearDuplicateReimbursementDetail:l,clearRemiSaveStatus:k})=>{const f=Ie(),[s,g]=vt.useState(!0),w=ai(e),R=ai(o);vt.useEffect(()=>{setTimeout(()=>{s&&(g(!1),o==="Not-Started"&&b())},2e3)},[o,b,s]),vt.useEffect(()=>{w==="In-Progress"&&e==="Completed"&&(l(),p(!1))},[e,w,p,l]),vt.useEffect(()=>{R==="In-Progress"&&o==="Completed"&&!r&&S()},[R,o,r,S]);const T=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[T?t.jsx(xr,{size:f}):null,t.jsx(li,{action:{onOkClick:()=>{T?(l(),e==="Error"&&k(),g(!0)):(C?.trackReimbursementReviewDuplicateReportReimbursement(u,m),p(!1),ro())},onCancelClick:()=>{T?(l(),e==="Error"&&k(),p(!1)):(C?.trackReimbursementSubmitAnywayDuplicateReimbursement(u,m),S())}},shouldClickAway:T,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:T?Ui.resubmit:ue.primaryButtonText,secondaryButtonText:T?Ui.cancel:ue.secondaryButtonText,primaryButtonWidth:T?Ce.cancelButtonWidth.value(f):Ce.submitButtonWidth.value(f),secondaryButtonWidth:T?Ce.cancelButtonWidth.value(f):Ce.submitButtonWidth.value(f),descriptionComponent:t.jsx($r,{size:f,children:t.jsxs(wr,{hasDuplicate:r,duplicateReimbursementStatus:o,children:[t.jsxs(Xt,{isDisabled:!1,isSuccess:!s,children:[s?t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}}):t.jsx(Tn,{}),t.jsx(Zt,{isDisabled:!1,children:s?ue.reviewingExpenses:ue.reviewedAllExpenses})]}),r||o==="Error"?t.jsxs(Ki,{size:f,children:[t.jsx(_i,{}),t.jsx(qi,{children:o==="Error"?ue.failedToDetect:`${u} ${ue.duplicateExpensesFound}`})]}):t.jsxs(Xt,{isDisabled:o==="Not-Started",isSuccess:o==="Completed"&&u===0,children:[t.jsx(Vi,{fetchState:o}),t.jsx(Zt,{isDisabled:o==="Not-Started",children:br(o)})]}),e==="Error"?t.jsxs(Ki,{size:f,children:[t.jsx(_i,{}),t.jsx(qi,{children:ue.failedToSubmit})]}):r||o==="Error"?null:t.jsxs(Xt,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(Vi,{fetchState:e}),t.jsx(Zt,{isDisabled:e==="Not-Started",children:e==="Not-Started"?ue.submitReport:ue.submittingReport})]})]})}),titleComponent:t.jsx(Sr,{size:f,children:ue.title}),showFooter:r||T,containerStyle:{width:Ce.containerWidth.value(f),maxWidth:"unset"}})]})},xr=n(cn)`
|
|
551
551
|
width: ${i.sp4};
|
|
552
552
|
height: ${i.sp4};
|
|
553
553
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -611,12 +611,12 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
611
611
|
margin-top: ${i.sp4};
|
|
612
612
|
white-space: pre-line;
|
|
613
613
|
width: -webkit-fill-available;
|
|
614
|
-
`,
|
|
614
|
+
`,Tn=n(yo)`
|
|
615
615
|
width: ${i.sp4};
|
|
616
616
|
height: ${i.sp4};
|
|
617
617
|
min-width: ${i.sp4};
|
|
618
618
|
color: ${j.success};
|
|
619
|
-
`,X={rightMargin:new c(a[3],a[8]),leftMargin:new c(a[3],a[6]),bottomMargin:new c(56,56),closeMarginTop:new c(0,19),closeMarginRight:new c(a[3],a[8]),rightSectionWidth:new c(100,58),leftSectionWidth:new c(100,42),footerButtonWidth:new c(120,165),right:new c(a[3],a[0]),actionsContainerRight:new c(a[0],a[6]),otherActionsContainerBottom:new c(58,44),duplicateBannerWrapperMarginTop:new c(a[5],a[3]),duplicateBannerWrapperMarginRight:new c(a[3],a[8]),duplicateBannerWrapperMarginBottom:new c(a[5],a[3]),duplicateBannerWrapperMarginLeft:new c(a[3],a[6]),navBarWidth:new c(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:y,bulkActions:Gi}},common:{currency:{currencyCode:Me,currencySymbol:Dt},texts:{comments:vr},strings:{empty:Cr}},collaboration:{threads:{placeholder:{addANewComment:kr,replyAComment:Ir},tooltip:{resolveComment:Tr,unResolveComment:Dr}}},dateFormat:Yi}=me.getLocalizedStrings(),Ji="editReimbursementDetailPage",Zi=e=>`${e}_form`,jr=(e,o,r,u,p,C,m,S,b)=>{const l=e.outOfPocket,k=e.mileage,f=l.merchant,s=l.recommendations;return{lineIndex:C,lineId:e?.lineId??String(C+1),reimbursementType:e?.type??y.outOfPocketKey,file:e?.file,homeCurrencyConversions:{amount:e?.homeCurrencyConversions?.amount??0,currencyCode:e?.homeCurrencyConversions?.currencyCode??m.currencyCode,currencySymbol:e?.homeCurrencyConversions?.currencySymbol??m.currencySymbol},outOfPocket:{recommendedAccount:l.recommendedAccount,isCategoryUpdateSelected:l.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:l.isCategoryFirstTimeAutofilled??!1,retainedAccount:l.retainedAccount,isRetainedCategorySelected:l.isRetainedCategorySelected??!1,recommendations:s??[],transactionDate:l?.transactionDate?.toDate()??void 0,class:{allOptions:_e(r,[]),selectedOption:l?.lineDetail?.class?.classId??b},account:{allOptions:At(o,s),selectedOption:l.lineDetail?.account?.qboId??l.lineDetail?.account?.accountId},amount:{amount:l?.amount??0,currencyCode:l?.currencyCode??m.currencyCode,currencySymbol:l?.currencySymbol??m.currencySymbol,currency:{allOptions:S.map(g=>({label:`${g.currencyCode} - ${g.currency}`,value:g.currencyCode,countryCode:si(g.countryCode)})),selectedOption:l?.currencyCode??m.currencyCode??Me}},memo:l?.description??void 0,merchant:{allOptions:u.map(g=>g.id).filter(g=>!!g),selectedOption:f?.id?f?.id:f?.name?f?.name:e?.lineId!=null?p[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:_e(r,[]),selectedOption:k?.lineDetail?.class?.classId},distanceInMiles:k?.distanceMileage?.value,amount:{amount:k?.amount??0,currencyCode:k?.currencyCode??m.currencyCode,currencySymbol:k?.currencySymbol??m.currencySymbol},memo:k?.description}}},Qt=(e,o,r)=>{const u=[];return Object.values(e.lineDetailSection).forEach((p,C)=>{p?.lineId!=null&&u.push(jr(p,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,C,o,e.allCurrencies,e.loggedInUserDepartmentId))}),u.length===0&&u.push(Tn(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[Lt]:{reportTitle:e.whatForSection.reportTitle},[gi]:u,[yt]:{selectedOption:e.paymentTo,allOptions:r.map(p=>p.bankAccountId)}}},ei=(e,o)=>{const r=u=>u.lineId==null||o[u.lineId]?.fetchState==="In-Progress"?0:(o[u.lineId]?.fetchState,u.type===y.mileageKey?u?.mileage?.amount??0:u?.outOfPocket?.currencyCode!==Me&&u.homeCurrencyConversions?.amount!==u?.outOfPocket?.amount?u.homeCurrencyConversions?.amount??0:u?.outOfPocket?.amount??0);return Object.values(e).reduce((u,p)=>u+r(p),0)},ti=(e,o,r,u,p,C,m,S)=>{const b={};return e.lineInfo.forEach(l=>{const k=S.find(R=>R.classId===l.mileage.class.selectedOption),f=m.find(R=>R.qboId===l.outOfPocket.account.selectedOption||R.accountId===l.outOfPocket.account.selectedOption),s=S.find(R=>R.classId===l.outOfPocket.class.selectedOption),g=o.find(R=>R.id===l.outOfPocket.merchant.selectedOption),w=C.find(R=>R.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;b[l.lineId]={fileId:l.file?.fileId,lineId:l.lineId,type:l.reimbursementType,homeCurrencyConversions:l.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:l.mileage.memo??"",lineDetail:{class:k},transactionDate:l.mileage.transactionDate!=null?ee.zeniDate(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??w,currencySymbol:l.mileage.amount?.currencySymbol??w,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:f},transactionDate:l.outOfPocket.transactionDate!=null?ee.zeniDate(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??w,currencySymbol:w,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:g?.id??"",name:g?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:b,totalAmount:{amount:u,...r},currencyConversionStateByLineId:p,paymentTo:e.paymentTo.selectedOption}},Rl=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:u,uploadInvoiceEndPoint:p,isReimbursementCommentingEnabled:C,isUserAdmin:m,analytics:S,reimbursementId:b,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:f,bankAccounts:s,isSignedInUserReimbursementCreator:g,uncategorizedAccounts:w,bankAccountToCreate:R,fetchBankNameByRoutingStatus:D,onUserBankDetailsUpdated:$,onFetchBankName:K,onSaveBankAccount:L,fetchDuplicateReimbursement:I,clearDuplicateReimbursementDetail:E,clearRemiSaveStatus:te,removeDuplicateReimbursementForLine:pe,onDuplicateLineClick:A,onExistingMerchantChange:_,onNewMerchantChange:Y,onReceiptsUpload:H,saveRemiDetails:ie,submitRemiDetails:Q,discardReimbursementDetailsFromLocalStore:we,onReimbursementDetailsChanged:he,updateReimbursementType:re,onHomeCurrencyConversionUpdate:J,redirectToReimbursementListScreen:le,redirectToReimbursementDetailScreen:Oe,deleteReimbursement:P,removeFileFromLine:ge,onZeniLogoClick:se,onAmountChanged:Ne,updateInvoiceUploadFetchState:Le,clearTentativeNameForLine:Ae,onAddNewRule:Se,onFetchLinkTokenClick:ze,onEstablishConnectionClick:ye,deleteBankAccount:Te,onBackClickFromBankAccountPage:dt})=>{const W=v.useRef(null),et=v.useRef(null),tt=ai(e.uploadStatus),We=bt(),ke=ft(),[He,De]=v.useState(!1),[Ue,Ve]=v.useState(!1),[qe,Ke]=v.useState("save"),[ne,it]=v.useState(ei(e.lineDetailSection,e.currencyConversionStatus)),[ut,Ge]=v.useState(!1),[U,mt]=v.useState(null),[F,ae]=v.useState(!1),wt=`dashboard_${ke.currentTenant?.companyId}`,$e=en({mode:"all",reValidateMode:"onChange",defaultValues:v.useMemo(()=>Qt(e,r,s),[e,r,s]),values:v.useMemo(()=>Qt(e,r,s),[e,r,s])}),{isDirty:z,dirtyFields:jn}=$e.formState,Rn=async(h,T)=>{const{lineInfo:d}=T,x=Number(h.split(".")[1]);if(h.includes("reportTitle")||h.includes("memo"))return;if(h.includes("reimbursementType")){const B=d[x].mileage,N=d[x].outOfPocket;d[x]={...d[x],outOfPocket:{transactionDate:N.transactionDate??void 0,class:{allOptions:N.class.allOptions??_e(e.classHierarchyList,[]),selectedOption:N.class.selectedOption??void 0},account:{allOptions:N.account.allOptions??At(e.accountsHierarchyList,[]),selectedOption:N.account.selectedOption??void 0},amount:N.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(be=>({label:`${be.currencyCode} - ${be.currency}`,value:be.currencyCode,countryCode:si(be.countryCode)})),selectedOption:r.currencyCode??Me}},memo:N.memo??void 0,merchant:N.merchant??void 0,recommendations:N.recommendations??[],recommendedAccount:N.recommendedAccount??void 0,isCategoryUpdateSelected:N.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:N.isCategoryFirstTimeAutofilled??!1,retainedAccount:N.retainedAccount??void 0,isRetainedCategorySelected:N.isRetainedCategorySelected??!1},mileage:{transactionDate:B.transactionDate??void 0,class:{allOptions:B.class.allOptions??_e(e.classHierarchyList,[]),selectedOption:B.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:B.distanceInMiles,amount:{amount:B?.amount?.amount??0,currencyCode:B?.amount?.currencyCode??Me,currencySymbol:B?.amount?.currencySymbol??Dt},memo:B.memo??void 0}}}else if(h.includes("mileage.distanceInMiles")){const{distanceInMiles:B}=d[x].mileage,N=u?.mileageUnitAmount??0;d[x].mileage={...d[x].mileage,amount:{amount:B!=null?B*N:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(h.includes("outOfPocket.amount")&&d[x].lineId){const B=d[x].outOfPocket.amount,N=e.allCurrencies.find(be=>be.currencyCode===B?.currency.selectedOption)?.currencySymbol;if(B?.currencyCode!==B?.currency.selectedOption){const be=B?.currency?.allOptions||[];d[x].outOfPocket.amount={currency:{allOptions:be,selectedOption:B?.currency?.selectedOption},amount:d[x].outOfPocket?.amount?.amount??0,currencyCode:B?.currency.selectedOption??Me,currencySymbol:N??Dt}}if(B?.currency.selectedOption!==Me)Ge(!0),Fn(d[x].lineId,Me);else{const be={};d.forEach(Kt=>{be[Kt.lineId]={lineId:Kt.lineId,homeCurrencyConversions:Kt.homeCurrencyConversions}}),d[x].homeCurrencyConversions={amount:B.amount??0,currencyCode:B?.currency.selectedOption??Me,currencySymbol:N??Dt};const vi=ei(be,e.currencyConversionStatus);ne!==vi&&it(vi)}}else if(h.includes("outOfPocket.isRetainedCategorySelected"))d[x].outOfPocket.isRetainedCategorySelected===!0&&(d[x].outOfPocket.isCategoryUpdateSelected=!1,d[x].outOfPocket.account.selectedOption=d[x].outOfPocket.retainedAccount?.qboId);else if(h.includes("outOfPocket.isCategoryUpdateSelected"))if(d[x].outOfPocket.isCategoryUpdateSelected===!0)d[x].outOfPocket.account.selectedOption=d[x].outOfPocket.recommendedAccount?.qboId,d[x].outOfPocket.isRetainedCategorySelected=!1;else{const B=d[x].lineId,N=e.editRemiInitialDetails.lineDetailSection[B]?.lineDetail?.account?.qboId;d[x].outOfPocket.account.selectedOption=N,d[x].outOfPocket.isRetainedCategorySelected=!1}else h.includes("outOfPocket.account")&&(d[x].outOfPocket.recommendations.length>0&&(d[x].outOfPocket.recommendedAccount=d[x].outOfPocket.recommendations[0].account),d[x].outOfPocket.recommendedAccount?.qboId!=null&&d[x].outOfPocket.account.selectedOption===d[x].outOfPocket.recommendedAccount?.qboId?d[x].outOfPocket.isCategoryUpdateSelected=!0:d[x].outOfPocket.isCategoryUpdateSelected=!1,d[x].outOfPocket.retainedAccount?.qboId!=null&&d[x].outOfPocket.account.selectedOption===d[x].outOfPocket.retainedAccount?.qboId?d[x].outOfPocket.isRetainedCategorySelected=!0:d[x].outOfPocket.isRetainedCategorySelected=!1,d[x].outOfPocket.isCategoryFirstTimeAutofilled=!1);const $t=ti({...T,lineInfo:d},e.merchantList.merchants,r,ne,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(he?.($t),h.includes("outOfPocket.merchant")){const B=d[x].lineId,N=d[x].outOfPocket.merchant.selectedOption??"";d[x].outOfPocket.merchant.allOptions.find(be=>be===N)!=null?_(N,B):Y(N,B)}},yi=v.useMemo(()=>Ci((h,T)=>Rn(h,T),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);v.useEffect(()=>{const h=$e.watch((T,{name:d})=>{d!=null&&T!=null&&yi(d,T)});return()=>{h.unsubscribe()}},[yi,$e]),v.useEffect(()=>{const h=ee.reduceAnyFetchState(Object.values(e.currencyConversionStatus)),T=h.fetchState==="In-Progress"||h.fetchState==="Error";Ge(T)},[e.currencyConversionStatus]),v.useEffect(()=>{for(const T in e.currencyConversionStatus){const d=e.lineDetailSection[T],x=e.lineDetailSection[T];e.currencyConversionStatus[T].fetchState==="Completed"&&x!=null&&d.type!==y.mileageKey&&!tn(d?.homeCurrencyConversions,x.homeCurrencyConversions)&&J({amount:d?.homeCurrencyConversions?.amount??0,currencyCode:d?.homeCurrencyConversions?.currencyCode??Me,currencySymbol:d?.homeCurrencyConversions?.currencySymbol??Dt},T,b)}const h=ei(e.lineDetailSection,e.currencyConversionStatus);ne!==h&&it(h)},[e.currencyConversionStatus,e.lineDetailSection]),v.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(we(b),le?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,b,we,le]);const O=Ie(),[je,pt]=v.useState(b==null),[ht,Pn]=v.useState(1),[On,Ft]=v.useState(!1),[Ln,An]=v.useState(""),[Et,zn]=v.useState(null),[Bn,nt]=v.useState(!1),[Mn,bi]=v.useState(!1),[Nt,Wt]=v.useState([]),[ce,St]=v.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),Fn=v.useRef(Ci((h,T)=>Ne(h,T),500,{trailing:!0})).current;v.useEffect(()=>{tt==="In-Progress"&&(e.uploadStatus==="Completed"?($e.reset(Qt(e,r,s),{keepDefaultValues:!0}),De(!1),pt(!1)):e.uploadStatus==="Error"&&De(!1))},[tt,e.uploadStatus,$e,e,He,De,je,r,s,S]),v.useEffect(()=>{e.uploadStatus==="In-Progress"&&je===!1&&De(!0)},[e.uploadStatus,De,je]);const Ut=e.remiStage==="draft"?y.newReimbursementTitle:y.editReimbursementTitle,En={onOkClick:()=>{if(nt(!1),ce.primaryButtonText===y.buttons.discard)we(b),e.remiStage==="draft"?le?.():Oe?.();else if(ce.primaryButtonText===y.buttons.delete)ce.title===y.deleteBankAccountTitle?Te?.(Ln):P?.();else if(ce.primaryButtonText===y.buttons.yes&&Et!=null){const h=Nt.filter(T=>T!==ht.toString());Wt(h),H(Et,ht,!0)}},onCancelClick:()=>{if(nt(!1),ce.secondaryButtonText===y.buttons.no){const h=Nt.filter(T=>T!==ht.toString());Wt(h),H(Et,ht,!1)}}},fi=()=>{z||co(jn)?(St({title:y.discardTitle,description:y.discardDescription,primaryButtonText:y.buttons.discard,secondaryButtonText:y.buttons.cancel}),nt(!0)):(we(b),le?.())},Nn=()=>{St({title:e.remiStage==="draft"?y.deleteDraftTitle:y.deleteReportTitle,description:y.deleteAlertDescription,primaryButtonText:y.buttons.delete,secondaryButtonText:y.buttons.cancel}),nt(!0)},Wn=h=>{An(h),St({title:y.deleteBankAccountTitle,description:y.deleteBankAccountDescription,primaryButtonText:y.buttons.delete,secondaryButtonText:y.buttons.cancel}),nt(!0)},Un=()=>{St({title:y.overwriteTitle,description:y.overwriteDescription,primaryButtonText:y.buttons.yes,secondaryButtonText:y.buttons.no}),nt(!0)},Vn=()=>{let h=!0;const T=[];return Object.values(e.lineDetailSection).forEach((d,x)=>{d.type===y.outOfPocketKey&&vn(d)>=75&&d.file==null&&(T.push(d.lineId),h=!1)}),Wt(T),h},xi=()=>{if(m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")fi();else{Ke("save");const h=$e.getValues(),T=ti(h,e.merchantList.merchants,r,ne,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);he?.(T);const d=T.whatForSection?.reportTitle;d!=null&&d.length>0?ie(e.remiStatus==="rejected"?"pending_approval":"draft"):$e.trigger(`${Lt}.reportTitle`,{shouldFocus:!0})}};let Vt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(h=>{h.length>0&&(Vt=!0)});let wi=[];if(e.remiId==null){const h=ne??0;h>0&&(wi=e.approvalRules.allApprovalRules?.filter(T=>{const d=T.criteria[0].range;if(d.max!=null){if(d.min.amount<h&&d.max.amount>=h)return T}else if(d.min.amount<h)return T;return null}).map(T=>({...T,stepsWithStatus:T.steps.map(d=>({...d,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const _n=h=>{const T=Vn();return $e.handleSubmit(()=>{T&&(Ke("submit"),S?.trackReimbursementSubmitReimbursement(e.createTime?.format(Yi.analytics.MMMDashDDDashYYYYFormat)??ee.dateNow().format(Yi.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,ne,b),E(),bi(!0))})(h)},Hn=()=>{const h=$e.getValues(),T=ti(h,e.merchantList.merchants,r,ne,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);he?.(T),Q()},qn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,Kn=e.reimbursementInfo?.paymentDate!=null?ee.zeniDate(ee.getNextNthWorkingDay(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Gn=e.reimbursementInfo?.expectedDepositDate??Kn,Yn=b!=null&&e.remiStage==="draft",Si=Po(e.duplicateLineByLineId),_t=e.duplicateReimbursementStatus.fetchState==="Completed"&&Si>0,{requestToOpenThread:Ht,setRequestToOpenThread:$i,setOpenThread:qt}=v.useContext(Xn),{threads:gt,isLoading:Ye}=Qn({application:"dashboard",companyId:ke.currentTenant?.companyId,tab:"reimbursement",entityId:b,isGlobalComment:!1},"both",!1);v.useEffect(()=>{Ht?.threadId!=null&>.length>0&&!Ye&&(qt(Ht.threadId),$i(null))},[Ht,gt,Ye,qt,$i]);const Jn=v.useMemo(()=>b==null?[]:gt.filter(h=>h.resolved===!1&&!h.id.includes(eo)),[gt,b]).length,Zn=(h,T)=>{qt(T);const d=h.entityType.split("."),x=parseInt(d[2]);if(isNaN(x)){ae(!1);return}const $t=`${x+1}`,B=e.lineDetailSection[x+1].type;d.includes(y.mileageKey)&&B===y.outOfPocketKey?re(ee.toReimbursementTypeCode(y.mileageKey),$t,b):d.includes(y.outOfPocketKey)&&B===y.mileageKey&&re(ee.toReimbursementTypeCode(y.outOfPocketKey),$t,b),ae(!1)};return t.jsx(Pr,{ref:W,children:t.jsx(to,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:et.current??null}},children:t.jsxs(nn,{...$e,children:[t.jsx("form",{id:Zi(Ji),onSubmit:h=>_n(h),children:t.jsxs(rl,{windowSize:O,ref:et,children:[Bn?t.jsx(li,{titleComponent:t.jsx(an,{children:ce.title}),descriptionComponent:t.jsx(on,{children:ce.description}),primaryButtonText:ce.primaryButtonText,secondaryButtonText:ce.secondaryButtonText,action:En,proceedButtonVariant:ce.title===y.deleteBankAccountTitle||ce.title===y.deleteDraftTitle||ce.title===y.deleteReportTitle||ce.title===y.discardTitle?"danger":"primary",isEditPopup:ce.title===y.deleteBankAccountTitle}):null,Mn?t.jsx(fr,{reimbursementId:b,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:_t,numberOfDuplicateLines:Si,setShowDuplicatePopup:bi,submitReport:Hn,fetchDuplicateReimbursement:I,clearDuplicateReimbursementDetail:E,clearRemiSaveStatus:te,analytics:S}):null,He?t.jsx(Qi,{windowSize:O}):null,je?t.jsxs(Qi,{windowSize:O,"data-testid":q("skip-autofill-section"),children:[O==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Vr,{children:t.jsx(oi,{partOfSkipAutoFill:!0,size:O,onClick:()=>pt(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(ni,{withOverlay:!0,children:t.jsx(ii,{})})})}),t.jsx(Hr,{children:Ut})]}):null,t.jsx(xn,{showAutofill:je,analytics:S,onSkipAutofill:()=>{S?.trackReimbursementSkipAutofill(),pt(!1)},uploadInvoiceEndPoint:p,authParams:o,style:{width:X.leftSectionWidth.valuePercentage(O),boxSizing:"border-box",backgroundColor:O==="small"?We.colors.grey4:"unset",padding:O==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:O==="small"?i.sp0:void 0},onInvoiceUpload:h=>H(h,ht,!0),dropFilePlaceholder:{upload:y.dropReceipt.upload,single:y.dropReceipt.single,or:y.dropReceipt.or,multiple:y.dropReceipt.multiple,receipts:y.dropReceipt.receipts},updateInvoiceUploadFetchState:Le,showInfoText:!1,allowMultiFiles:je,type:"receipt"}),O!=="small"?t.jsx(_r,{children:t.jsx(oi,{partOfSkipAutoFill:!0,onClick:()=>pt(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(ni,{withOverlay:!0,children:t.jsx(ii,{})})})}):null]}):null,t.jsxs(tl,{windowSize:O,"data-testid":q("edit-reimbursement-detail-page-nav-bar-container"),children:[O!=="small"?t.jsx(ki,{style:{width:"42%"},"data-testid":q("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(il,{"data-testid":q("zeni-logo-spend-management-reimbursement-detail-page"),onClick:se}),enableTitleOnScroll:!1,scrollableContent:W,backgroundColor:We.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,O!=="small"?t.jsx(Or,{}):null,t.jsx(ki,{style:{width:X.navBarWidth.valuePercentage(O)},"data-testid":q("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:Ut,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:je!=!0?t.jsxs(nl,{children:[C&&b!=null?t.jsxs(ol,{isDisabled:Ye,"data-testid":q("remi-comment-button"),onClick:Ye?()=>null:h=>{h.preventDefault(),h.stopPropagation(),mt({roomId:wt,companyId:ke.currentTenant?.companyId??"",companyName:ke.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:b}),ae(!0),S?.trackCommentActivity("reimbursement","clicked",ke.currentTenant?.companyName??"",ke.controllersList.controllers.map(T=>no(T)),void 0,void 0,"page icon")},children:[t.jsx(io,{count:Ye?void 0:Jn,isLoading:Ye,style:{left:"12px"}}),t.jsx(al,{})]}):null,t.jsx(oi,{size:O,onClick:()=>fi(),"data-testid":q("close-nav-bar"),children:t.jsx(ni,{withOverlay:!1,children:t.jsx(ii,{})})})]}):null,enableTitleOnScroll:O!=="small",scrollThreshold:64,scrollableContent:W,backgroundColor:We.colors.grey4})]}),O==="small"?t.jsxs(t.Fragment,{children:[t.jsx(el,{children:Ut}),t.jsx(oo,{progressSectionObj:qn,createDate:e.createTime,paymentDate:Gn,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:b!=null?!0:e.uploadStatus==="Completed"}),Vt&&t.jsxs(Gr,{children:[t.jsx(Kr,{}),t.jsx(Yr,{children:y.banner})]}),e.isProcessing?t.jsx(rn,{variant:"warning",style:{margin:O==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Gi.duplicateWarning.title,description:Gi.duplicateWarning.description}):_t?t.jsxs(Jr,{size:O,children:[t.jsx(Br,{}),t.jsxs(Xr,{children:[t.jsx(Zr,{children:y.thereSeems}),t.jsx(Qr,{children:y.pleaseFind})]})]}):null,t.jsx($n,{isReimbursementCommentingEnabled:C,sectionId:Lt,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(Ka,{onDuplicateLineClick:A,reimbursementId:b,remiDetails:e,uploadInvoiceEndPoint:p,authParams:o,showSkipAutoFill:je,setShowSkipAutoFill:pt,isReimbursementCommentingEnabled:C,isAutoFieldsExist:Vt,totalAmount:ne,removeFileFromLine:ge,onReplaceClick:Un,onReceiptsUpload:H,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Pn,setUploadedReceiptPayload:zn,updateInvoiceUploadFetchState:Le,clearTentativeNameForLine:Ae,defaultCurrency:r,companyMileageConfigInfo:u,isUserAdmin:m,setShowBankAccountPage:Ft,bankAccounts:s,onDeleteBankAccount:Wn,analytics:S,fileRequiredLineIds:Nt,isSignedInUserReimbursementCreator:g,uncategorizedAccounts:w,showTotalAmountLoader:ut,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:_t,removeDuplicateReimbursementForLine:pe,scrollContainerRef:W}),t.jsxs(ll,{showSkipAutoFill:je,windowSize:O,children:[O!=="small"?t.jsx(Xi,{}):null,t.jsx(sl,{windowSize:O,children:t.jsxs(cl,{windowSize:O,children:[e.remiId!==void 0&&t.jsx(Ii,{amount:ne??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:Se,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&ne!=null&&ne>0?t.jsx(Ii,{amount:ne??0,activities:wi,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(dl,{}),t.jsxs(qr,{showSkipAutoFill:je,windowSize:O,children:[O!=="small"?t.jsx(Xi,{}):null,t.jsx(Lr,{windowSize:O,onClick:h=>{h.stopPropagation(),Ue===!0&&Ve(!1)},children:t.jsx(ln,{formId:Zi(Ji),separatorStyle:{marginRight:i.sp4},showCancel:g,cancelBtn:{label:m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?O==="small"?y.buttons.discard:y.buttons.discardChanges:O==="small"?y.buttons.save:y.buttons.saveChanges,isLoading:qe==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:xi,style:{width:X.footerButtonWidth.value(O)},reverseSpinnerColor:!1},primaryBtn:{label:Rr(g,m,e,O),isDisabled:!g,style:{width:g?X.footerButtonWidth.value(O):"auto"},type:g?"submit":"button",onClick:g?()=>null:xi,isLoading:!g&&qe==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Ar,{children:t.jsxs(Nr,{windowSize:O,children:[Ue?t.jsx(sn,{onClickAway:()=>Ve(!1),children:t.jsx(Er,{windowSize:O,"data-testid":q("remi-other-actions-container"),children:t.jsx(Wr,{onClick:Nn,"data-testid":q("delete-report-action"),children:y.buttons.deleteReport})})}):null,t.jsx(Fr,{windowSize:O,children:Yn===!0?t.jsx(Mr,{windowSize:O,"data-testid":q("more-details-button"),children:t.jsx(zr,{onClick:()=>Ve(!Ue)})}):null})]})}),style:{minHeight:62}})})]}),C&&b!=null?t.jsx(Ro,{id:wt,children:t.jsx(ao,{isDrawerOpen:F,allowComposer:!0,drawerTitle:vr,threads:gt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:U?.companyId??Cr,isGlobalComment:!1,tab:"reimbursement"},isLoading:Ye,threadMetadata:U?{companyName:U.companyName,companyId:U.companyId,entityId:U.entityId,entityType:U.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:kr,replyComposerPlaceholder:Ir,threadResolve:Tr,threadUnResolve:Dr},onThreadClick:(h,T)=>Zn(h,T),onCloseAllThreadsDrawer:()=>ae(!1),drawerSectionStyle:{width:"400px",backgroundColor:We.colors.background}})}):null]})}),On?t.jsx(Ur,{windowSize:O,children:t.jsx(rr,{bankAccountCreationState:k,setShowBankAccountPage:Ft,plaidConnectionDetails:l,onFetchLinkTokenClick:ze,onEstablishConnectionClick:ye,onSaveHandler:L,bankAccountToCreate:R,bankNameByRouting:f,fetchBankNameByRoutingStatus:D,onUserBankDetailsUpdated:$,onFetchBankName:K,onBackClick:()=>{dt(),Ft(!1)}})}):null]})})})},Rr=(e,o,r,u)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?y.buttons.resubmit:y.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?u==="small"?y.buttons.discard:y.buttons.discardChanges:u==="small"?y.buttons.save:y.buttons.saveChanges,Pr=n.div`
|
|
619
|
+
`,X={rightMargin:new c(a[3],a[8]),leftMargin:new c(a[3],a[6]),bottomMargin:new c(56,56),closeMarginTop:new c(0,19),closeMarginRight:new c(a[3],a[8]),rightSectionWidth:new c(100,58),leftSectionWidth:new c(100,42),footerButtonWidth:new c(120,165),right:new c(a[3],a[0]),actionsContainerRight:new c(a[0],a[6]),otherActionsContainerBottom:new c(58,44),duplicateBannerWrapperMarginTop:new c(a[5],a[3]),duplicateBannerWrapperMarginRight:new c(a[3],a[8]),duplicateBannerWrapperMarginBottom:new c(a[5],a[3]),duplicateBannerWrapperMarginLeft:new c(a[3],a[6]),navBarWidth:new c(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:y,bulkActions:Gi}},common:{currency:{currencyCode:Me,currencySymbol:Tt},texts:{comments:vr},strings:{empty:Cr}},collaboration:{threads:{placeholder:{addANewComment:kr,replyAComment:Ir},tooltip:{resolveComment:Dr,unResolveComment:Tr}}},dateFormat:Yi}=me.getLocalizedStrings(),Ji="editReimbursementDetailPage",Zi=e=>`${e}_form`,jr=(e,o,r,u,p,C,m,S,b)=>{const l=e.outOfPocket,k=e.mileage,f=l.merchant,s=l.recommendations;return{lineIndex:C,lineId:e?.lineId??String(C+1),reimbursementType:e?.type??y.outOfPocketKey,file:e?.file,homeCurrencyConversions:{amount:e?.homeCurrencyConversions?.amount??0,currencyCode:e?.homeCurrencyConversions?.currencyCode??m.currencyCode,currencySymbol:e?.homeCurrencyConversions?.currencySymbol??m.currencySymbol},outOfPocket:{recommendedAccount:l.recommendedAccount,isCategoryUpdateSelected:l.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:l.isCategoryFirstTimeAutofilled??!1,retainedAccount:l.retainedAccount,isRetainedCategorySelected:l.isRetainedCategorySelected??!1,recommendations:s??[],transactionDate:l?.transactionDate?.toDate()??void 0,class:{allOptions:_e(r,[]),selectedOption:l?.lineDetail?.class?.classId??b},account:{allOptions:At(o,s),selectedOption:l.lineDetail?.account?.qboId??l.lineDetail?.account?.accountId},amount:{amount:l?.amount??0,currencyCode:l?.currencyCode??m.currencyCode,currencySymbol:l?.currencySymbol??m.currencySymbol,currency:{allOptions:S.map(g=>({label:`${g.currencyCode} - ${g.currency}`,value:g.currencyCode,countryCode:si(g.countryCode)})),selectedOption:l?.currencyCode??m.currencyCode??Me}},memo:l?.description??void 0,merchant:{allOptions:u.map(g=>g.id).filter(g=>!!g),selectedOption:f?.id?f?.id:f?.name?f?.name:e?.lineId!=null?p[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:_e(r,[]),selectedOption:k?.lineDetail?.class?.classId},distanceInMiles:k?.distanceMileage?.value,amount:{amount:k?.amount??0,currencyCode:k?.currencyCode??m.currencyCode,currencySymbol:k?.currencySymbol??m.currencySymbol},memo:k?.description}}},Qt=(e,o,r)=>{const u=[];return Object.values(e.lineDetailSection).forEach((p,C)=>{p?.lineId!=null&&u.push(jr(p,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,C,o,e.allCurrencies,e.loggedInUserDepartmentId))}),u.length===0&&u.push(Dn(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[Lt]:{reportTitle:e.whatForSection.reportTitle},[gi]:u,[yt]:{selectedOption:e.paymentTo,allOptions:r.map(p=>p.bankAccountId)}}},ei=(e,o)=>{const r=u=>u.lineId==null||o[u.lineId]?.fetchState==="In-Progress"?0:(o[u.lineId]?.fetchState,u.type===y.mileageKey?u?.mileage?.amount??0:u?.outOfPocket?.currencyCode!==Me&&u.homeCurrencyConversions?.amount!==u?.outOfPocket?.amount?u.homeCurrencyConversions?.amount??0:u?.outOfPocket?.amount??0);return Object.values(e).reduce((u,p)=>u+r(p),0)},ti=(e,o,r,u,p,C,m,S)=>{const b={};return e.lineInfo.forEach(l=>{const k=S.find(R=>R.classId===l.mileage.class.selectedOption),f=m.find(R=>R.qboId===l.outOfPocket.account.selectedOption||R.accountId===l.outOfPocket.account.selectedOption),s=S.find(R=>R.classId===l.outOfPocket.class.selectedOption),g=o.find(R=>R.id===l.outOfPocket.merchant.selectedOption),w=C.find(R=>R.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;b[l.lineId]={fileId:l.file?.fileId,lineId:l.lineId,type:l.reimbursementType,homeCurrencyConversions:l.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:l.mileage.memo??"",lineDetail:{class:k},transactionDate:l.mileage.transactionDate!=null?ee.zeniDate(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??w,currencySymbol:l.mileage.amount?.currencySymbol??w,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:f},transactionDate:l.outOfPocket.transactionDate!=null?ee.zeniDate(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??w,currencySymbol:w,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:g?.id??"",name:g?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:b,totalAmount:{amount:u,...r},currencyConversionStateByLineId:p,paymentTo:e.paymentTo.selectedOption}},Rl=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:u,uploadInvoiceEndPoint:p,isReimbursementCommentingEnabled:C,isUserAdmin:m,analytics:S,reimbursementId:b,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:f,bankAccounts:s,isSignedInUserReimbursementCreator:g,uncategorizedAccounts:w,bankAccountToCreate:R,fetchBankNameByRoutingStatus:T,onUserBankDetailsUpdated:$,onFetchBankName:K,onSaveBankAccount:L,fetchDuplicateReimbursement:I,clearDuplicateReimbursementDetail:E,clearRemiSaveStatus:te,removeDuplicateReimbursementForLine:pe,onDuplicateLineClick:A,onExistingMerchantChange:_,onNewMerchantChange:Y,onReceiptsUpload:H,saveRemiDetails:ie,submitRemiDetails:Q,discardReimbursementDetailsFromLocalStore:we,onReimbursementDetailsChanged:he,updateReimbursementType:re,onHomeCurrencyConversionUpdate:J,redirectToReimbursementListScreen:le,redirectToReimbursementDetailScreen:Oe,deleteReimbursement:P,removeFileFromLine:ge,onZeniLogoClick:se,onAmountChanged:Ne,updateInvoiceUploadFetchState:Le,clearTentativeNameForLine:Ae,onAddNewRule:Se,onFetchLinkTokenClick:ze,onEstablishConnectionClick:ye,deleteBankAccount:De,onBackClickFromBankAccountPage:dt})=>{const W=v.useRef(null),et=v.useRef(null),tt=ai(e.uploadStatus),We=bt(),ke=ft(),[He,Te]=v.useState(!1),[Ue,Ve]=v.useState(!1),[qe,Ke]=v.useState("save"),[ne,it]=v.useState(ei(e.lineDetailSection,e.currencyConversionStatus)),[ut,Ge]=v.useState(!1),[U,mt]=v.useState(null),[F,ae]=v.useState(!1),wt=`dashboard_${ke.currentTenant?.companyId}`,$e=en({mode:"all",reValidateMode:"onChange",defaultValues:v.useMemo(()=>Qt(e,r,s),[e,r,s]),values:v.useMemo(()=>Qt(e,r,s),[e,r,s])}),{isDirty:z,dirtyFields:jn}=$e.formState,Rn=async(h,D)=>{const{lineInfo:d}=D,x=Number(h.split(".")[1]);if(h.includes("reportTitle")||h.includes("memo"))return;if(h.includes("reimbursementType")){const B=d[x].mileage,N=d[x].outOfPocket;d[x]={...d[x],outOfPocket:{transactionDate:N.transactionDate??void 0,class:{allOptions:N.class.allOptions??_e(e.classHierarchyList,[]),selectedOption:N.class.selectedOption??void 0},account:{allOptions:N.account.allOptions??At(e.accountsHierarchyList,[]),selectedOption:N.account.selectedOption??void 0},amount:N.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(be=>({label:`${be.currencyCode} - ${be.currency}`,value:be.currencyCode,countryCode:si(be.countryCode)})),selectedOption:r.currencyCode??Me}},memo:N.memo??void 0,merchant:N.merchant??void 0,recommendations:N.recommendations??[],recommendedAccount:N.recommendedAccount??void 0,isCategoryUpdateSelected:N.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:N.isCategoryFirstTimeAutofilled??!1,retainedAccount:N.retainedAccount??void 0,isRetainedCategorySelected:N.isRetainedCategorySelected??!1},mileage:{transactionDate:B.transactionDate??void 0,class:{allOptions:B.class.allOptions??_e(e.classHierarchyList,[]),selectedOption:B.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:B.distanceInMiles,amount:{amount:B?.amount?.amount??0,currencyCode:B?.amount?.currencyCode??Me,currencySymbol:B?.amount?.currencySymbol??Tt},memo:B.memo??void 0}}}else if(h.includes("mileage.distanceInMiles")){const{distanceInMiles:B}=d[x].mileage,N=u?.mileageUnitAmount??0;d[x].mileage={...d[x].mileage,amount:{amount:B!=null?B*N:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(h.includes("outOfPocket.amount")&&d[x].lineId){const B=d[x].outOfPocket.amount,N=e.allCurrencies.find(be=>be.currencyCode===B?.currency.selectedOption)?.currencySymbol;if(B?.currencyCode!==B?.currency.selectedOption){const be=B?.currency?.allOptions||[];d[x].outOfPocket.amount={currency:{allOptions:be,selectedOption:B?.currency?.selectedOption},amount:d[x].outOfPocket?.amount?.amount??0,currencyCode:B?.currency.selectedOption??Me,currencySymbol:N??Tt}}if(B?.currency.selectedOption!==Me)Ge(!0),Fn(d[x].lineId,Me);else{const be={};d.forEach(Kt=>{be[Kt.lineId]={lineId:Kt.lineId,homeCurrencyConversions:Kt.homeCurrencyConversions}}),d[x].homeCurrencyConversions={amount:B.amount??0,currencyCode:B?.currency.selectedOption??Me,currencySymbol:N??Tt};const vi=ei(be,e.currencyConversionStatus);ne!==vi&&it(vi)}}else if(h.includes("outOfPocket.isRetainedCategorySelected"))d[x].outOfPocket.isRetainedCategorySelected===!0&&(d[x].outOfPocket.isCategoryUpdateSelected=!1,d[x].outOfPocket.account.selectedOption=d[x].outOfPocket.retainedAccount?.qboId);else if(h.includes("outOfPocket.isCategoryUpdateSelected"))if(d[x].outOfPocket.isCategoryUpdateSelected===!0)d[x].outOfPocket.account.selectedOption=d[x].outOfPocket.recommendedAccount?.qboId,d[x].outOfPocket.isRetainedCategorySelected=!1;else{const B=d[x].lineId,N=e.editRemiInitialDetails.lineDetailSection[B]?.lineDetail?.account?.qboId;d[x].outOfPocket.account.selectedOption=N,d[x].outOfPocket.isRetainedCategorySelected=!1}else h.includes("outOfPocket.account")&&(d[x].outOfPocket.recommendations.length>0&&(d[x].outOfPocket.recommendedAccount=d[x].outOfPocket.recommendations[0].account),d[x].outOfPocket.recommendedAccount?.qboId!=null&&d[x].outOfPocket.account.selectedOption===d[x].outOfPocket.recommendedAccount?.qboId?d[x].outOfPocket.isCategoryUpdateSelected=!0:d[x].outOfPocket.isCategoryUpdateSelected=!1,d[x].outOfPocket.retainedAccount?.qboId!=null&&d[x].outOfPocket.account.selectedOption===d[x].outOfPocket.retainedAccount?.qboId?d[x].outOfPocket.isRetainedCategorySelected=!0:d[x].outOfPocket.isRetainedCategorySelected=!1,d[x].outOfPocket.isCategoryFirstTimeAutofilled=!1);const $t=ti({...D,lineInfo:d},e.merchantList.merchants,r,ne,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(he?.($t),h.includes("outOfPocket.merchant")){const B=d[x].lineId,N=d[x].outOfPocket.merchant.selectedOption??"";d[x].outOfPocket.merchant.allOptions.find(be=>be===N)!=null?_(N,B):Y(N,B)}},yi=v.useMemo(()=>Ci((h,D)=>Rn(h,D),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);v.useEffect(()=>{const h=$e.watch((D,{name:d})=>{d!=null&&D!=null&&yi(d,D)});return()=>{h.unsubscribe()}},[yi,$e]),v.useEffect(()=>{const h=ee.reduceAnyFetchState(Object.values(e.currencyConversionStatus)),D=h.fetchState==="In-Progress"||h.fetchState==="Error";Ge(D)},[e.currencyConversionStatus]),v.useEffect(()=>{for(const D in e.currencyConversionStatus){const d=e.lineDetailSection[D],x=e.lineDetailSection[D];e.currencyConversionStatus[D].fetchState==="Completed"&&x!=null&&d.type!==y.mileageKey&&!tn(d?.homeCurrencyConversions,x.homeCurrencyConversions)&&J({amount:d?.homeCurrencyConversions?.amount??0,currencyCode:d?.homeCurrencyConversions?.currencyCode??Me,currencySymbol:d?.homeCurrencyConversions?.currencySymbol??Tt},D,b)}const h=ei(e.lineDetailSection,e.currencyConversionStatus);ne!==h&&it(h)},[e.currencyConversionStatus,e.lineDetailSection]),v.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(we(b),le?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,b,we,le]);const O=Ie(),[je,pt]=v.useState(b==null),[ht,Pn]=v.useState(1),[On,Ft]=v.useState(!1),[Ln,An]=v.useState(""),[Et,zn]=v.useState(null),[Bn,nt]=v.useState(!1),[Mn,bi]=v.useState(!1),[Nt,Wt]=v.useState([]),[ce,St]=v.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),Fn=v.useRef(Ci((h,D)=>Ne(h,D),500,{trailing:!0})).current;v.useEffect(()=>{tt==="In-Progress"&&(e.uploadStatus==="Completed"?($e.reset(Qt(e,r,s),{keepDefaultValues:!0}),Te(!1),pt(!1)):e.uploadStatus==="Error"&&Te(!1))},[tt,e.uploadStatus,$e,e,He,Te,je,r,s,S]),v.useEffect(()=>{e.uploadStatus==="In-Progress"&&je===!1&&Te(!0)},[e.uploadStatus,Te,je]);const Ut=e.remiStage==="draft"?y.newReimbursementTitle:y.editReimbursementTitle,En={onOkClick:()=>{if(nt(!1),ce.primaryButtonText===y.buttons.discard)we(b),e.remiStage==="draft"?le?.():Oe?.();else if(ce.primaryButtonText===y.buttons.delete)ce.title===y.deleteBankAccountTitle?De?.(Ln):P?.();else if(ce.primaryButtonText===y.buttons.yes&&Et!=null){const h=Nt.filter(D=>D!==ht.toString());Wt(h),H(Et,ht,!0)}},onCancelClick:()=>{if(nt(!1),ce.secondaryButtonText===y.buttons.no){const h=Nt.filter(D=>D!==ht.toString());Wt(h),H(Et,ht,!1)}}},fi=()=>{z||co(jn)?(St({title:y.discardTitle,description:y.discardDescription,primaryButtonText:y.buttons.discard,secondaryButtonText:y.buttons.cancel}),nt(!0)):(we(b),le?.())},Nn=()=>{St({title:e.remiStage==="draft"?y.deleteDraftTitle:y.deleteReportTitle,description:y.deleteAlertDescription,primaryButtonText:y.buttons.delete,secondaryButtonText:y.buttons.cancel}),nt(!0)},Wn=h=>{An(h),St({title:y.deleteBankAccountTitle,description:y.deleteBankAccountDescription,primaryButtonText:y.buttons.delete,secondaryButtonText:y.buttons.cancel}),nt(!0)},Un=()=>{St({title:y.overwriteTitle,description:y.overwriteDescription,primaryButtonText:y.buttons.yes,secondaryButtonText:y.buttons.no}),nt(!0)},Vn=()=>{let h=!0;const D=[];return Object.values(e.lineDetailSection).forEach((d,x)=>{d.type===y.outOfPocketKey&&vn(d)>=75&&d.file==null&&(D.push(d.lineId),h=!1)}),Wt(D),h},xi=()=>{if(m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")fi();else{Ke("save");const h=$e.getValues(),D=ti(h,e.merchantList.merchants,r,ne,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);he?.(D);const d=D.whatForSection?.reportTitle;d!=null&&d.length>0?ie(e.remiStatus==="rejected"?"pending_approval":"draft"):$e.trigger(`${Lt}.reportTitle`,{shouldFocus:!0})}};let Vt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(h=>{h.length>0&&(Vt=!0)});let wi=[];if(e.remiId==null){const h=ne??0;h>0&&(wi=e.approvalRules.allApprovalRules?.filter(D=>{const d=D.criteria[0].range;if(d.max!=null){if(d.min.amount<h&&d.max.amount>=h)return D}else if(d.min.amount<h)return D;return null}).map(D=>({...D,stepsWithStatus:D.steps.map(d=>({...d,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const _n=h=>{const D=Vn();return $e.handleSubmit(()=>{D&&(Ke("submit"),S?.trackReimbursementSubmitReimbursement(e.createTime?.format(Yi.analytics.MMMDashDDDashYYYYFormat)??ee.dateNow().format(Yi.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,ne,b),E(),bi(!0))})(h)},Hn=()=>{const h=$e.getValues(),D=ti(h,e.merchantList.merchants,r,ne,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);he?.(D),Q()},qn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,Kn=e.reimbursementInfo?.paymentDate!=null?ee.zeniDate(ee.getNextNthWorkingDay(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Gn=e.reimbursementInfo?.expectedDepositDate??Kn,Yn=b!=null&&e.remiStage==="draft",Si=Po(e.duplicateLineByLineId),_t=e.duplicateReimbursementStatus.fetchState==="Completed"&&Si>0,{requestToOpenThread:Ht,setRequestToOpenThread:$i,setOpenThread:qt}=v.useContext(Xn),{threads:gt,isLoading:Ye}=Qn({application:"dashboard",companyId:ke.currentTenant?.companyId,tab:"reimbursement",entityId:b,isGlobalComment:!1},"both",!1);v.useEffect(()=>{Ht?.threadId!=null&>.length>0&&!Ye&&(qt(Ht.threadId),$i(null))},[Ht,gt,Ye,qt,$i]);const Jn=v.useMemo(()=>b==null?[]:gt.filter(h=>h.resolved===!1&&!h.id.includes(eo)),[gt,b]).length,Zn=(h,D)=>{qt(D);const d=h.entityType.split("."),x=parseInt(d[2]);if(isNaN(x)){ae(!1);return}const $t=`${x+1}`,B=e.lineDetailSection[x+1].type;d.includes(y.mileageKey)&&B===y.outOfPocketKey?re(ee.toReimbursementTypeCode(y.mileageKey),$t,b):d.includes(y.outOfPocketKey)&&B===y.mileageKey&&re(ee.toReimbursementTypeCode(y.outOfPocketKey),$t,b),ae(!1)};return t.jsx(Pr,{ref:W,children:t.jsx(to,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:et.current??null}},children:t.jsxs(nn,{...$e,children:[t.jsx("form",{id:Zi(Ji),onSubmit:h=>_n(h),children:t.jsxs(rl,{windowSize:O,ref:et,children:[Bn?t.jsx(li,{titleComponent:t.jsx(an,{children:ce.title}),descriptionComponent:t.jsx(on,{children:ce.description}),primaryButtonText:ce.primaryButtonText,secondaryButtonText:ce.secondaryButtonText,action:En,proceedButtonVariant:ce.title===y.deleteBankAccountTitle||ce.title===y.deleteDraftTitle||ce.title===y.deleteReportTitle||ce.title===y.discardTitle?"danger":"primary",isEditPopup:ce.title===y.deleteBankAccountTitle}):null,Mn?t.jsx(fr,{reimbursementId:b,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:_t,numberOfDuplicateLines:Si,setShowDuplicatePopup:bi,submitReport:Hn,fetchDuplicateReimbursement:I,clearDuplicateReimbursementDetail:E,clearRemiSaveStatus:te,analytics:S}):null,He?t.jsx(Qi,{windowSize:O}):null,je?t.jsxs(Qi,{windowSize:O,"data-testid":q("skip-autofill-section"),children:[O==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Vr,{children:t.jsx(oi,{partOfSkipAutoFill:!0,size:O,onClick:()=>pt(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(ni,{withOverlay:!0,children:t.jsx(ii,{})})})}),t.jsx(Hr,{children:Ut})]}):null,t.jsx(xn,{showAutofill:je,analytics:S,onSkipAutofill:()=>{S?.trackReimbursementSkipAutofill(),pt(!1)},uploadInvoiceEndPoint:p,authParams:o,style:{width:X.leftSectionWidth.valuePercentage(O),boxSizing:"border-box",backgroundColor:O==="small"?We.colors.grey4:"unset",padding:O==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:O==="small"?i.sp0:void 0},onInvoiceUpload:h=>H(h,ht,!0),dropFilePlaceholder:{upload:y.dropReceipt.upload,single:y.dropReceipt.single,or:y.dropReceipt.or,multiple:y.dropReceipt.multiple,receipts:y.dropReceipt.receipts},updateInvoiceUploadFetchState:Le,showInfoText:!1,allowMultiFiles:je,type:"receipt"}),O!=="small"?t.jsx(_r,{children:t.jsx(oi,{partOfSkipAutoFill:!0,onClick:()=>pt(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(ni,{withOverlay:!0,children:t.jsx(ii,{})})})}):null]}):null,t.jsxs(tl,{windowSize:O,"data-testid":q("edit-reimbursement-detail-page-nav-bar-container"),children:[O!=="small"?t.jsx(ki,{style:{width:"42%"},"data-testid":q("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(il,{"data-testid":q("zeni-logo-spend-management-reimbursement-detail-page"),onClick:se}),enableTitleOnScroll:!1,scrollableContent:W,backgroundColor:We.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,O!=="small"?t.jsx(Or,{}):null,t.jsx(ki,{style:{width:X.navBarWidth.valuePercentage(O)},"data-testid":q("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:Ut,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:je!=!0?t.jsxs(nl,{children:[C&&b!=null?t.jsxs(ol,{isDisabled:Ye,"data-testid":q("remi-comment-button"),onClick:Ye?()=>null:h=>{h.preventDefault(),h.stopPropagation(),mt({roomId:wt,companyId:ke.currentTenant?.companyId??"",companyName:ke.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:b}),ae(!0),S?.trackCommentActivity("reimbursement","clicked",ke.currentTenant?.companyName??"",ke.controllersList.controllers.map(D=>no(D)),void 0,void 0,"page icon")},children:[t.jsx(io,{count:Ye?void 0:Jn,isLoading:Ye,style:{left:"12px"}}),t.jsx(al,{})]}):null,t.jsx(oi,{size:O,onClick:()=>fi(),"data-testid":q("close-nav-bar"),children:t.jsx(ni,{withOverlay:!1,children:t.jsx(ii,{})})})]}):null,enableTitleOnScroll:O!=="small",scrollThreshold:64,scrollableContent:W,backgroundColor:We.colors.grey4})]}),O==="small"?t.jsxs(t.Fragment,{children:[t.jsx(el,{children:Ut}),t.jsx(oo,{progressSectionObj:qn,createDate:e.createTime,paymentDate:Gn,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:b!=null?!0:e.uploadStatus==="Completed"}),Vt&&t.jsxs(Gr,{children:[t.jsx(Kr,{}),t.jsx(Yr,{children:y.banner})]}),e.isProcessing?t.jsx(rn,{variant:"warning",style:{margin:O==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Gi.duplicateWarning.title,description:Gi.duplicateWarning.description}):_t?t.jsxs(Jr,{size:O,children:[t.jsx(Br,{}),t.jsxs(Xr,{children:[t.jsx(Zr,{children:y.thereSeems}),t.jsx(Qr,{children:y.pleaseFind})]})]}):null,t.jsx($n,{isReimbursementCommentingEnabled:C,sectionId:Lt,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(Ka,{onDuplicateLineClick:A,reimbursementId:b,remiDetails:e,uploadInvoiceEndPoint:p,authParams:o,showSkipAutoFill:je,setShowSkipAutoFill:pt,isReimbursementCommentingEnabled:C,isAutoFieldsExist:Vt,totalAmount:ne,removeFileFromLine:ge,onReplaceClick:Un,onReceiptsUpload:H,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Pn,setUploadedReceiptPayload:zn,updateInvoiceUploadFetchState:Le,clearTentativeNameForLine:Ae,defaultCurrency:r,companyMileageConfigInfo:u,isUserAdmin:m,setShowBankAccountPage:Ft,bankAccounts:s,onDeleteBankAccount:Wn,analytics:S,fileRequiredLineIds:Nt,isSignedInUserReimbursementCreator:g,uncategorizedAccounts:w,showTotalAmountLoader:ut,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:_t,removeDuplicateReimbursementForLine:pe,scrollContainerRef:W}),t.jsxs(ll,{showSkipAutoFill:je,windowSize:O,children:[O!=="small"?t.jsx(Xi,{}):null,t.jsx(sl,{windowSize:O,children:t.jsxs(cl,{windowSize:O,children:[e.remiId!==void 0&&t.jsx(Ii,{amount:ne??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:Se,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&ne!=null&&ne>0?t.jsx(Ii,{amount:ne??0,activities:wi,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(dl,{}),t.jsxs(qr,{showSkipAutoFill:je,windowSize:O,children:[O!=="small"?t.jsx(Xi,{}):null,t.jsx(Lr,{windowSize:O,onClick:h=>{h.stopPropagation(),Ue===!0&&Ve(!1)},children:t.jsx(ln,{formId:Zi(Ji),separatorStyle:{marginRight:i.sp4},showCancel:g,cancelBtn:{label:m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?O==="small"?y.buttons.discard:y.buttons.discardChanges:O==="small"?y.buttons.save:y.buttons.saveChanges,isLoading:qe==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:xi,style:{width:X.footerButtonWidth.value(O)},reverseSpinnerColor:!1},primaryBtn:{label:Rr(g,m,e,O),isDisabled:!g,style:{width:g?X.footerButtonWidth.value(O):"auto"},type:g?"submit":"button",onClick:g?()=>null:xi,isLoading:!g&&qe==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Ar,{children:t.jsxs(Nr,{windowSize:O,children:[Ue?t.jsx(sn,{onClickAway:()=>Ve(!1),children:t.jsx(Er,{windowSize:O,"data-testid":q("remi-other-actions-container"),children:t.jsx(Wr,{onClick:Nn,"data-testid":q("delete-report-action"),children:y.buttons.deleteReport})})}):null,t.jsx(Fr,{windowSize:O,children:Yn===!0?t.jsx(Mr,{windowSize:O,"data-testid":q("more-details-button"),children:t.jsx(zr,{onClick:()=>Ve(!Ue)})}):null})]})}),style:{minHeight:62}})})]}),C&&b!=null?t.jsx(Ro,{id:wt,children:t.jsx(ao,{isDrawerOpen:F,allowComposer:!0,drawerTitle:vr,threads:gt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:U?.companyId??Cr,isGlobalComment:!1,tab:"reimbursement"},isLoading:Ye,threadMetadata:U?{companyName:U.companyName,companyId:U.companyId,entityId:U.entityId,entityType:U.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:kr,replyComposerPlaceholder:Ir,threadResolve:Dr,threadUnResolve:Tr},onThreadClick:(h,D)=>Zn(h,D),onCloseAllThreadsDrawer:()=>ae(!1),drawerSectionStyle:{width:"400px",backgroundColor:We.colors.background}})}):null]})}),On?t.jsx(Ur,{windowSize:O,children:t.jsx(rr,{bankAccountCreationState:k,setShowBankAccountPage:Ft,plaidConnectionDetails:l,onFetchLinkTokenClick:ze,onEstablishConnectionClick:ye,onSaveHandler:L,bankAccountToCreate:R,bankNameByRouting:f,fetchBankNameByRoutingStatus:T,onUserBankDetailsUpdated:$,onFetchBankName:K,onBackClick:()=>{dt(),Ft(!1)}})}):null]})})})},Rr=(e,o,r,u)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?y.buttons.resubmit:y.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?u==="small"?y.buttons.discard:y.buttons.discardChanges:u==="small"?y.buttons.save:y.buttons.saveChanges,Pr=n.div`
|
|
620
620
|
position: relative;
|
|
621
621
|
height: 100vh;
|
|
622
622
|
overflow-y: scroll;
|
package/dist/assets/{EntityDetailPage-DdZmhyPX-Cz3KW8lp.js → EntityDetailPage-DjgV66W8-DZ5igwA9.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as y,B as T,a8 as C,j as o,E as v,o as t,N as m}from"./index-
|
|
1
|
+
import{u as y,B as T,a8 as C,j as o,E as v,o as t,N as m}from"./index-C7jkqxrR.js";import{n as a}from"./vendor-rkTZJa59.js";import{R as k}from"./TrendWithTransactions-DtPVZEAr-DnuxxeAb.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./TrendChart-Dn0GiuT9-HQjjMVrP.js";import"./chartTypes-DmEm-9Ox-ULKq2fZN.js";import"./toCOABalancesWithID-DIO7qGqY-BCZorL6x.js";import"./toChartData-D89UpEia-DmSMBtrE.js";import"./NoDataChart-gi34_J2e-BOq-1JyJ.js";import"./InsightsSection-CFeEzjB3-D_1DfMdF.js";import"./NavigationDots-CFxiVMnb-Dxb6vagd.js";import"./TransactionList-CkdTkJqL-Cgr2VpIS.js";import"./BoxItem-Bwh-fULe-Cnvh0VLf.js";import"./commonDimensions-Dfc-15aJ-CxnVwTdu.js";const $=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
margin: ${t.sp0} ${t.sp0} ${t.sp0} ${t.sp0};
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as z,B as L,j as i,dq as H,C as d,cz as _,o as s,b as S,a0 as b,aj as B,b_ as R,q as r,c7 as E,n as G,t as k,ao as U,w as N,c3 as q,g as D,c6 as F}from"./index-
|
|
1
|
+
import{e as z,B as L,j as i,dq as H,C as d,cz as _,o as s,b as S,a0 as b,aj as B,b_ as R,q as r,c7 as E,n as G,t as k,ao as U,w as N,c3 as q,g as D,c6 as F}from"./index-C7jkqxrR.js";import{b as f,n as t}from"./vendor-rkTZJa59.js";import{l as I}from"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";const m=L.getLocalizedStrings().reports.aging.agingDetail.header,w=[{key:"date",value:m.date,sortOrder:"ascending",width:new d(212,212)},{key:"invoiceNumber",value:m.invoiceNumber,sortOrder:"ascending",width:new d(188,188)},{key:"dueDate",value:m.dueDate,sortOrder:"ascending",width:new d(188,188)},{key:"daysPastDue",value:m.daysPastDue,sortOrder:"ascending",width:new d(188,188)},{key:"amount",value:m.amount,sortOrder:"ascending",width:new d(188,188)},{key:"balance",value:m.balance,sortOrder:"ascending",width:new d(120,120)}],Y={headerHeight:new d(45,58)},Z=t.div`
|
|
2
2
|
top: ${s.sp0};
|
|
3
3
|
left: ${s.sp0};
|
|
4
4
|
min-height: ${e=>Y.headerHeight.valuePx(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as H,e as I,bJ as W,j as r,$ as y,
|
|
1
|
+
import{u as H,e as I,bJ as W,j as r,$ as y,fF as Y,bg as J,g as a,bp as O,B as G,o as s,aX as K,jm as Q,v as c,hb as q,ha as V,K as U,a0 as X,l as Z,jn as D,f as ee,aS as re,fo as oe,b as se,bQ as te,c7 as ie,w as g,t as ae,eA as le,s as ne,br as ce,gR as de,r as he,am as pe,ao as _,af as me}from"./index-C7jkqxrR.js";import{n as o,j as m,k as ge}from"./vendor-rkTZJa59.js";import{o as xe}from"./transaction-placeholder-CpOwZAMG-DYG2_sCF.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const ue={transaction_categorization:xe,missing_receipts:oe,flux_analysis:re,je_schedules:D,month_end_insights:ee,reconciliation:D},fe=e=>{const x={Weekly:[],Monthly:[]};return e.forEach(u=>{x[u.frequency].push(u)}),x},{expenseAutomation:d,common:i,dateFormat:ye}=G.getLocalizedStrings();function xr({monthEndCloseChecksView:e,isRealtimeInsightsFeatureEnabled:x,onMonthEndCheckClick:u,onBackClick:M,handleReviewButtonClick:P,onPeriodChange:R,onReload:k}){const b=H(),F=I();if(W({componentName:"expense_automation.overview"}),e.monthEndCloseChecks==null||e.fetchState==="Not-Started"||e.fetchState==="In-Progress")return r.jsx(L,{"data-testid":y("expense-automation-overview-page-activity-indicator"),children:r.jsx(Y,{fetchState:"In-Progress"})});if(e.monthEndCloseChecks==null||e.fetchState==="Error")return r.jsx(L,{children:r.jsx(Xe,{"data-testid":y("expense-automation-overview-page-reload-page"),onClick:k,children:r.jsx(J,{})})});const{monthEndCloseChecks:{auditSummary:l,monthEndCloseCheckList:N,insights:h,reportEmailSentDate:S},refreshStatus:T}=e,z=fe(N);let f,p;l.auditScorePercentage<=50?(f=a.important,p=a.importantLight):l.auditScorePercentage<=75?(f=a.alert,p=a.alertLight):(f=a.success,p=a.successLight);const A=r.jsx(Ke,{"data-testid":y("expense-automation-overview-page-refresh-icon"),onClick:k,children:r.jsx(O,{style:{marginTop:s.sp1},placement:"bottom",title:i.texts.refresh,enterDelay:600,children:r.jsx(er,{$spinning:T.fetchState==="In-Progress"})})});return r.jsxs($e,{children:[r.jsx(K,{title:r.jsx(Q,{labelSuffix:i.texts.close,pickerLabelStyle:{...c.largeSemiBold.cssObject},onPeriodChange:R,monthEndCloseChecksView:e}),showBackButton:!0,onBackClick:M,source:"ExpenseAutomationOverviewPage",rightSideComponent:A}),r.jsxs(Le,{children:[r.jsxs(je,{children:[r.jsx(ve,{windowSize:F,children:r.jsx(be,{children:r.jsxs(Se,{children:[r.jsx(Ge,{children:r.jsx(q,{background:!0,value:Math.floor(l.auditScorePercentage),text:`${Math.floor(l.auditScorePercentage)}${i.strings.percentage}`,strokeWidth:10,styles:{...V({strokeLinecap:"butt",pathColor:f,textColor:b.colors.primary,trailColor:b.colors.grey2,backgroundColor:p}),root:{width:"96px",height:"96px",backgroundColor:p,borderRadius:"50%"},text:{fontSize:c.h6Medium.fontSize,fontFamily:c.h6Medium.fontFamily,lineHeight:c.h6Medium.lineHeight,fontWeight:c.h6Medium.fontWeight,letterSpacing:c.h6Medium.letterSpacing,fill:a.primaryLight}}})}),r.jsxs(tr,{children:[r.jsxs(De,{children:[r.jsxs(C,{children:[r.jsxs(Qe,{children:[r.jsx(Ce,{children:d.overview.auditScoreTitle}),l.auditReportLastGeneratedDate!=null?r.jsx(qe,{children:l.auditReportLastGeneratedDate.utc(!0).fromNow()}):null]}),r.jsx(ke,{children:d.overview.auditScoreDescription})]}),r.jsx(U,{style:{alignSelf:"flex-start"},variant:"primary",label:i.texts.review,onClick:P})]}),r.jsxs(Ee,{children:[r.jsxs(Ie,{children:[r.jsx(Je,{}),r.jsx(We,{children:i.texts.aiAgents}),r.jsx(Ye,{children:i.texts.saved})]}),r.jsx(Oe,{children:X("0,0",{amount:h.savedAmount,currencyCode:i.currency.countryCode,currencySymbol:i.currency.currencySymbol})})]})]})]})})}),r.jsxs(we,{children:[r.jsxs($,{isLastTab:!1,children:[r.jsx(j,{children:h.vendorsWithFluctuations}),r.jsx(v,{children:d.overview.statistics.vendorsWithFluctuations})]}),r.jsxs($,{isLastTab:!1,children:[r.jsx(j,{children:h.transactionsAutoCategorized}),r.jsx(v,{children:d.overview.statistics.transactionsAutoCategorized})]}),r.jsxs($,{isLastTab:!1,children:[r.jsxs(j,{children:[h.efficiencyPercentage,i.strings.percentage]}),r.jsx(v,{children:d.overview.statistics.humanEfficiency})]}),r.jsxs($,{isLastTab:!0,children:[r.jsxs(j,{children:[h.efficiency,"x"]}),r.jsx(v,{children:d.overview.statistics.fasterReviews})]})]})]}),r.jsx(_e,{children:Z.ALL_MONTH_END_CLOSE_CHECKS_FREQUENCY.map(w=>r.jsxs(Me,{children:[r.jsx(E,{cardDisabled:!1,children:w}),r.jsx(Pe,{children:z[w].map(t=>{const n=t.id==="month_end_insights"?!x:t.isDisabled,B=n===!0||t.id==="month_end_insights"&&e.monthEndCloseChecks?.reportEmailSentDate!=null;return r.jsxs(Re,{"data-testid":y("expense-automation-overview-page-month-end-close-check-card",t.id),cardDisabled:n,onClick:()=>{B===!1&&u(t.id)},children:[r.jsxs(He,{children:[r.jsx(Be,{cardDisabled:n,isDarkMode:b.mode==="dark",children:r.jsx(Ae,{as:ue[t.id]??null})}),r.jsxs(C,{children:[r.jsx(E,{cardDisabled:n,children:t.title}),r.jsx(Fe,{className:"card-description",cardDisabled:n,children:t.description})]})]}),r.jsxs(Ne,{children:[r.jsx(se,{controller:t.id!=="month_end_insights",children:r.jsxs(Te,{children:[r.jsxs(Ve,{progress:t.progress,children:[Math.floor(t.progress),i.strings.percentage]}),r.jsx(Ue,{className:t.progress<100?"progress-complete-text":i.strings.empty,progress:t.progress,children:i.texts.complete})]})}),t.id==="month_end_insights"&&S!=null?r.jsxs(sr,{children:[r.jsx(rr,{children:i.texts.closed}),r.jsx(or,{children:S.format(ye.visual.MMMDCommaYYYYformat)})]}):null,r.jsx(C,{children:r.jsx(ze,{className:"card-right-chevron",disabled:n})})]})]},t.id)})})]},w))})]})]})}const $e=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -35,12 +35,12 @@ import{u as H,e as I,bJ as W,j as r,$ as y,fE as Y,bg as J,g as a,bp as O,B as Q
|
|
|
35
35
|
display: flex;
|
|
36
36
|
column-gap: ${s.sp3};
|
|
37
37
|
align-items: flex-start;
|
|
38
|
-
`,
|
|
38
|
+
`,De=o.div`
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-direction: column;
|
|
41
41
|
row-gap: ${s.sp3};
|
|
42
42
|
width: 466px;
|
|
43
|
-
`,
|
|
43
|
+
`,Ee=o.div`
|
|
44
44
|
display: flex;
|
|
45
45
|
flex-direction: column;
|
|
46
46
|
justify-content: center;
|
|
@@ -71,7 +71,7 @@ import{u as H,e as I,bJ as W,j as r,$ as y,fE as Y,bg as J,g as a,bp as O,B as Q
|
|
|
71
71
|
row-gap: ${s.sp5};
|
|
72
72
|
padding-bottom: ${s.sp4};
|
|
73
73
|
margin: auto;
|
|
74
|
-
`,
|
|
74
|
+
`,E=o(pe)`
|
|
75
75
|
color: ${e=>e.cardDisabled?e.theme.colors.grey2:e.theme.colors.primary};
|
|
76
76
|
`,Me=o.div`
|
|
77
77
|
display: flex;
|
|
@@ -102,7 +102,7 @@ import{u as H,e as I,bJ as W,j as r,$ as y,fE as Y,bg as J,g as a,bp as O,B as Q
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
`:null}
|
|
105
|
-
`,
|
|
105
|
+
`,Fe=o(g)`
|
|
106
106
|
color: ${e=>e.cardDisabled?e.theme.colors.grey2:e.theme.colors.hero};
|
|
107
107
|
`,Ne=o.div`
|
|
108
108
|
display: flex;
|
|
@@ -111,15 +111,15 @@ import{u as H,e as I,bJ as W,j as r,$ as y,fE as Y,bg as J,g as a,bp as O,B as Q
|
|
|
111
111
|
`,C=o.div``,Te=o.div`
|
|
112
112
|
text-align: center;
|
|
113
113
|
width: 82px;
|
|
114
|
-
`,
|
|
114
|
+
`,ze=o(me)`
|
|
115
115
|
color: ${e=>e.disabled?e.theme.colors.grey2:e.theme.colors.hero};
|
|
116
116
|
width: ${s.sp4};
|
|
117
117
|
height: ${s.sp4};
|
|
118
|
-
`,
|
|
118
|
+
`,Ae=o.div`
|
|
119
119
|
width: ${s.sp4};
|
|
120
120
|
height: ${s.sp4};
|
|
121
121
|
color: ${e=>e.theme.colors.primary};
|
|
122
|
-
`,
|
|
122
|
+
`,Be=o.div`
|
|
123
123
|
width: ${s.sp7};
|
|
124
124
|
height: ${s.sp7};
|
|
125
125
|
background-color: ${e=>e.isDarkMode?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJadeLight};
|
|
@@ -147,17 +147,17 @@ import{u as H,e as I,bJ as W,j as r,$ as y,fE as Y,bg as J,g as a,bp as O,B as Q
|
|
|
147
147
|
margin-right: ${s.sp1};
|
|
148
148
|
`,Oe=o(de)`
|
|
149
149
|
color: ${e=>e.theme.colors.primary};
|
|
150
|
-
`,
|
|
150
|
+
`,Ge=o.div`
|
|
151
151
|
display: flex;
|
|
152
152
|
height: 96px;
|
|
153
153
|
justify-content: center;
|
|
154
|
-
`,
|
|
154
|
+
`,Ke=o.div`
|
|
155
155
|
color: ${e=>e.theme.colors.hero};
|
|
156
156
|
cursor: pointer;
|
|
157
157
|
&:hover {
|
|
158
158
|
color: ${e=>e.theme.colors.primary};
|
|
159
159
|
}
|
|
160
|
-
`,
|
|
160
|
+
`,Qe=o.div`
|
|
161
161
|
display: flex;
|
|
162
162
|
align-items: flex-end;
|
|
163
163
|
column-gap: ${s.sp2};
|