@zeniai/web-cockpit-ui 1.14.88-qa → 1.14.89-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-BBq7KpbY-CZpHxE8o.js → ACHDetailsPage-BBq7KpbY-DmD51smT.js} +1 -1
- package/dist/assets/{AIPerformancePage-Djq6mgKa-BXA2rEQ3.js → AIPerformancePage-Djq6mgKa-C2iGvIUP.js} +11 -11
- package/dist/assets/{AccountInfoPage-CxWBk_t_-C2BQHsrc.js → AccountInfoPage-CxWBk_t_-BI9wbnyE.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-DO6aVqBW-BHlSBq6C.js → AccountInfoPageContent-DO6aVqBW-6U18ww_h.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-DVvzKHJQ-XsgYaZ9s.js → AccountLockedInfoModal-DVvzKHJQ-BlItIAEt.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DEKzSPCP-IJ1uxgeX.js → AccountReconDetailsDrawerPage-DEKzSPCP-DohPnhDC.js} +14 -14
- package/dist/assets/{AccountRow-Ck53DDbT-CKEPVSTV.js → AccountRow-Ck53DDbT-BeebPIea.js} +21 -21
- package/dist/assets/{AccountsPromoCardStack-BYjuB-4I-DBGri4Ao.js → AccountsPromoCardStack-BYjuB-4I-DMxflS-k.js} +8 -8
- package/dist/assets/{AddAddressForCardDrawer-e8qbO2Y5-CCW44Lbp.js → AddAddressForCardDrawer-e8qbO2Y5-CvQDLLw2.js} +1 -1
- package/dist/assets/{AddToWalletPage-DA6AmuaY-D_ysmfWw.js → AddToWalletPage-DA6AmuaY-e01eq7ol.js} +5 -5
- package/dist/assets/{AgingReportsPage-B_Hhl_Is-yJ7Ku3Be.js → AgingReportsPage-B_Hhl_Is-4sV-u-EE.js} +5 -5
- package/dist/assets/{AllUserItems-BV22Ibpn-D42Co1mB.js → AllUserItems-BV22Ibpn-WegHhloq.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-DqV1vOVH-BwJKl2yK.js → ApAgingDetailPage-DqV1vOVH-DDYGtIes.js} +1 -1
- package/dist/assets/{AppBasePage-LrgCcvIv-CEyT0Ays.js → AppBasePage-LrgCcvIv-CPbTcwwM.js} +4 -4
- package/dist/assets/{AppDrawerContent-aZG5Qc_X-DQOHVYFR.js → AppDrawerContent-aZG5Qc_X-0oLi5_ah.js} +1 -1
- package/dist/assets/ApprovalRulesSettingsPage-DQQw30S5-BEsS6TL7.js +47 -0
- package/dist/assets/{ArAgingChart-Am7LTkqG-GS7CQpoV.js → ArAgingChart-Am7LTkqG-CEoxIo8X.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-BEKsyA9Q-CT83CSJd.js → ArAgingDetailPage-BEKsyA9Q-DyjljPZX.js} +1 -1
- package/dist/assets/{AttachmentView-Bujbmx1d-DpzwMH5w.js → AttachmentView-Bujbmx1d-B9I0wNAl.js} +1 -1
- package/dist/assets/{BankAccountSection-C5rYUW3V-BgvhKGl7.js → BankAccountSection-C5rYUW3V-B24i3wVy.js} +3 -3
- package/dist/assets/{BankAccountWarningSection-DakysSbk-BRLKAJ0a.js → BankAccountWarningSection-DakysSbk-CfJ3ZIAx.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BjZDNgZG-CFbf0DLJ.js → BankConnectionsSettingsPage-BjZDNgZG-CWXR52fl.js} +7 -7
- package/dist/assets/{BillDetailPage-DYc_nZRU-vRHIz2Fv.js → BillDetailPage-DYc_nZRU-BRz45yqn.js} +2 -2
- package/dist/assets/{BillPayApprovalRuleDetailPage-ppU1Epmy-DfzEevsW.js → BillPayApprovalRuleDetailPage-ppU1Epmy-CKu9yeh6.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-UblNi2mR-CaoPaa4o.js → BillPayApprovalRulesPage-UblNi2mR-DDdlB9l6.js} +1 -1
- package/dist/assets/{BillPayPromoPage-BK2J56U5-BLwpq2ym.js → BillPayPromoPage-BK2J56U5-BV_HtQh9.js} +5 -5
- package/dist/assets/{BillPaySetUpPage-Jic5E25q-C2agN1u5.js → BillPaySetUpPage-Jic5E25q-B-iLCf2O.js} +2 -2
- package/dist/assets/{BillingSettingsPage-CKZVChEm-CWf23wA3.js → BillingSettingsPage-CKZVChEm-D4ayDBSH.js} +4 -4
- package/dist/assets/{BillsBulkReviewDrawerPage-C4Ra5e82-C3uBULFR.js → BillsBulkReviewDrawerPage-C4Ra5e82-Ci4V1_TC.js} +1 -1
- package/dist/assets/{BoxItem-8PfNfaHq-Bc55g4Kz.js → BoxItem-8PfNfaHq-CqIGaIYz.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-JGge-Iiw-CLy_qcXB.js → BusinessVerificationPage-JGge-Iiw-DkN8E6Gl.js} +5 -5
- package/dist/assets/{CardNumberSubText-W81SQ4GF-OueRQ73F.js → CardNumberSubText-W81SQ4GF-D5AG2b-c.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DnOcmx2i-BioqpiiB.js → CashbackDetailPage-DnOcmx2i-DuXs2k0a.js} +7 -7
- package/dist/assets/{ChargeCardDetailPage-DNVMsxzE-MbZAmWWA.js → ChargeCardDetailPage-DNVMsxzE-W83HRYcY.js} +1 -1
- package/dist/assets/{ChargeCardListPage-Dgj-WWWI-BMNMnKI1.js → ChargeCardListPage-Dgj-WWWI-C1jII8Vl.js} +14 -14
- package/dist/assets/{ChargeCardListTable-uJZKWoh7-dd8_7oJW.js → ChargeCardListTable-uJZKWoh7-DGMj8Kk8.js} +16 -16
- package/dist/assets/{ChargeCardPromoPage-uqT96W3_-C4nna9JN.js → ChargeCardPromoPage-uqT96W3_-DGpf3zxD.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-BDbJU-vm-KUujiV9J.js → ChargeCardSetupPage-BDbJU-vm-DZJfRa0I.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DImRqpH1-CbTc5gcW.js → ChargeCardStatementsPage-DImRqpH1-BlCyBAS3.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-BVtOOPoa-BZCRYtgW.js → CheckDepositDrawerPage-BVtOOPoa-CKWcHjV6.js} +6 -6
- package/dist/assets/{CollapsableReportTable-Crihcv_z-D0yVWEtn.js → CollapsableReportTable-Crihcv_z-B6sIoSI3.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CNxtAkKM-JM7EOPYb.js → CompanyOfficerDetailsSection-CNxtAkKM-D2joEvpM.js} +8 -8
- package/dist/assets/{CompanyPassportCard-DMRQkRPb-BfQft15t.js → CompanyPassportCard-DMRQkRPb-BLaDLsxp.js} +1 -1
- package/dist/assets/{CompanyPassportPage-D3XvbSF_-QtfQkOgs.js → CompanyPassportPage-D3XvbSF_-BPFOIUV0.js} +16 -16
- package/dist/assets/{CompleteProfile-BqjXO5ze-BVANkRD5.js → CompleteProfile-BqjXO5ze-fJjklbCs.js} +1 -1
- package/dist/assets/{ConfettiBurst-DtwLo4WZ-pKVn1Zt5.js → ConfettiBurst-DtwLo4WZ-DhNKCJ7F.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-FrGRJxMy-BsYkqMbG.js → CreateOrEditVendorPage-FrGRJxMy-lyDeY9QD.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-BvifQpD3-rvm5_a2M.js → CreditCardPaymentDrawerPage-BvifQpD3-CJD0XzyN.js} +6 -6
- package/dist/assets/{CurrencySelectField-ClOg6nnS-Cnr3YkBv.js → CurrencySelectField-ClOg6nnS-wUZ5kAZB.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-Du-zzeL2-DMbpslbv.js → CustomerOnboardingActivationPage-Du-zzeL2-DGgRqDAq.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-ly2XWpHL.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BgY95XeU-DZVW17dp.js → CustomerOnboardingDetailPageSkeleton-BgY95XeU-Dah0hLGQ.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-BsKoqUta-C8ENw_2g.js → CustomerOnboardingNoStepsPage-BsKoqUta-D3bS1mcO.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DUMQKVfM-0ltubWJk.js → CustomerOnboardingPage-DUMQKVfM-C7dz_0GY.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-DGVV8Tkk-Brs1Bm9U.js → CustomerOnboardingProductSuitePage-DGVV8Tkk-CiyIz1Ai.js} +5 -5
- package/dist/assets/{Dashboard-CdYlvep--C2xiBWGf.js → Dashboard-CdYlvep--B2Vkh5DQ.js} +1 -1
- package/dist/assets/{DashboardReportPage-c6q027Qp-ZzS_4DbW.js → DashboardReportPage-c6q027Qp-B9wSLZAf.js} +16 -16
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BdDVYK19-DO3K14XB.js → DashboardSidebarBackgroundAnimation-BdDVYK19-COjDYEak.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-D8kL8enp-DQfKwDtZ.js → DepositAccTransactionItem-D8kL8enp-J-22cTZM.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BS-OReem-CrvBML8Q.js → DepositAccTransactionListPage-BS-OReem-Daf8x2X1.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-CjM1DXnn-BZAEhYC3.js → DomesticWireDetailsPage-CjM1DXnn-ByLr_bfJ.js} +1 -1
- package/dist/assets/{DownloadOverlay-Dr4uLNpZ-_3KxAqK4.js → DownloadOverlay-Dr4uLNpZ-PWDmhVak.js} +38 -38
- package/dist/assets/{DrawerPage-CbKBsc7w-7kpCQGH8.js → DrawerPage-CbKBsc7w-BANqCEyN.js} +1 -1
- package/dist/assets/{EditPeoplePage-BgsR09q8-YfoObQW1.js → EditPeoplePage-BgsR09q8-DQro3ypx.js} +3 -3
- package/dist/assets/{EditReimbursementDetailPage-BTrwOX_s-DvpBdlkg.js → EditReimbursementDetailPage-BTrwOX_s-Bpc20RR2.js} +25 -25
- package/dist/assets/{EntityDetailPage-Cvd4MG0F-ZDX--4dV.js → EntityDetailPage-Cvd4MG0F-Uu1ExrMV.js} +1 -1
- package/dist/assets/{EntitySummarySection-BIV9aAq2-DSoSDfHH.js → EntitySummarySection-BIV9aAq2-CUHksODf.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-B5MtjO2p-OLmj-clQ.js → ExpenseAutomationOverviewPage-B5MtjO2p-B5sSDEu8.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-DW6Pxoah-DSaMh9BZ.js → ExpenseAutomationPage-DW6Pxoah-DpT-FAIA.js} +62 -62
- package/dist/assets/{ExpressPayPage-DnpQuDmt-CuecqGBU.js → ExpressPayPage-DnpQuDmt-CY033VTz.js} +5 -5
- package/dist/assets/{FeaturePreviewPage-BmwBZ7ZP-BzM8qDQI.js → FeaturePreviewPage-BmwBZ7ZP-kerQig1g.js} +1 -1
- package/dist/assets/{FollowStepsSection-B2I9SddL-B9ISQuf-.js → FollowStepsSection-B2I9SddL-BxrnE678.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-D3GCP5Xd-bCzUhauh.js → GlobalReviewListPage-D3GCP5Xd-Bht9J0K_.js} +6 -6
- package/dist/assets/{InformationCardStack-mEhasBqu-MnmadQgE.js → InformationCardStack-mEhasBqu-BZ_Gox0K.js} +1 -1
- package/dist/assets/{InsightsCardStack-Mj7QcQnH-w9iVNjOS.js → InsightsCardStack-Mj7QcQnH-CT4vpE1x.js} +1 -1
- package/dist/assets/{InsightsSection-B3xD0SZ9-CtB9l6g9.js → InsightsSection-B3xD0SZ9-CKtY4Hiz.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-CsI_agJB-CFVHIylV.js → IntegrationsSettingsPage-CsI_agJB-CclnkA74.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-Dszmi69h-DaN3QXGf.js → InternationalWireSwiftDetailsPage-Dszmi69h-BjjhlMpG.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-DG9Enrpo-CZa6BkZb.js → InternationalWireVerificationPage-DG9Enrpo-DEQAkYYx.js} +11 -11
- package/dist/assets/{InviteFormPage-DK6X9Zwi-57NKh16b.js → InviteFormPage-DK6X9Zwi-DR66hPVd.js} +1 -1
- package/dist/assets/{InvitePageListView-CwKbcKlM-DEEV83h1.js → InvitePageListView-CwKbcKlM-BOO2EOMw.js} +32 -32
- package/dist/assets/{InvitePeoplePage-BqzJOjVI-bufXErI1.js → InvitePeoplePage-BqzJOjVI-hAq8wZOI.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-CokNNkKu-zGBNoDhJ.js → InvoiceUploadSection-CokNNkKu-CL4OwcxH.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-CRtJDmrZ-2SCD9IjH.js → IssueChargeCardPage-CRtJDmrZ-CFmNSL2f.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BhwrrtZX-lh4MyI8q.js → LabeledAddressValue-BhwrrtZX-BVe1F8jA.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DzmwP7hP-CVmcFCuL.js → LabeledAddressValueField-DzmwP7hP-7gvUeBGH.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-B6ndrF2e-DiUrfDZv.js → LabeledControlledCheckBoxField-B6ndrF2e-LWUc8yBI.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CfzLlkho-e_gzDVel.js → LabeledCreatableSingleSelectField-CfzLlkho-CxZaZJZN.js} +1 -1
- package/dist/assets/{LabeledDocumentField-p3pI5qLu-BpHx3wM1.js → LabeledDocumentField-p3pI5qLu-I9C3lX6x.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-oQX33Fim-CDrN8oV2.js → LabeledDropDownFormattedTextField-oQX33Fim-Bbplhays.js} +1 -1
- package/dist/assets/{LabeledText-Db46hFZY-ZpSE14Xk.js → LabeledText-Db46hFZY-CvrCjgF_.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-CrNtOmbd.js → LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-f0PElM5i.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-Docjgj8Y-ByksgDAC.js → LabeledZeniRolesDropDownField-Docjgj8Y-C6xxx7IQ.js} +11 -11
- package/dist/assets/{LinkJETransactionPage-BZSRaZqY-BCB3zTz9.js → LinkJETransactionPage-BZSRaZqY-9NIG46T3.js} +6 -6
- package/dist/assets/{LockCardPage-KTyESoXL-Do9Bp07f.js → LockCardPage-KTyESoXL-C_hGUeR9.js} +12 -12
- package/dist/assets/{LowBalancePopup-B0BDCEui-GkcadyQj.js → LowBalancePopup-B0BDCEui-BMVW4mzF.js} +4 -4
- package/dist/assets/MagicLinkACHDetailsPage-DwFvuGwG-C2ShsQ5E.js +1 -0
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CDB2igue-B5PAHJHU.js → MagicLinkDomesticWireDetailsPage-CDB2igue-CMZ17cvq.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-C2kxncrD-DJsJrwdj.js → MagicLinkInternationalWireDetailsPage-C2kxncrD-DZt4WyHf.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DNVe2qMu-Br2ktzLe.js → MagicLinkSuccessPage-DNVe2qMu-BMSr-yiU.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CWw516D8-Di58AkiA.js → MagicLinkTitleSection-CWw516D8-CjWjg4GW.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CugAM90r-CKMbSrBC.js → MailingDetailsSection-CugAM90r-CMuXq6mA.js} +1 -1
- package/dist/assets/{Menu-CGN2qO6T-BavKt1PZ.js → Menu-CGN2qO6T-CKP1jX2H.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CQUfVa0r-s0_zy8mz.js → MyBankConnectionsSettingsPage-CQUfVa0r-9xTXMtPS.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-TOQWRGjp-FPw-YJRK.js → MyPendingActivationChargeCardListPage-TOQWRGjp-DCcWmjzI.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-lCG03Uoh-BSTkZT7y.js → MyProfileSettingsPage-lCG03Uoh-DnrGHNt2.js} +1 -1
- package/dist/assets/{NavBarWithPicker-DLLvivn4-B4wus8BB.js → NavBarWithPicker-DLLvivn4-6K-3U9T7.js} +1 -1
- package/dist/assets/{NavigationArrow-B4j2t8Qu-I1tY1ram.js → NavigationArrow-B4j2t8Qu-C8IxiTof.js} +1 -1
- package/dist/assets/{NavigationDots-DyMqwpgy-DUFU9pI4.js → NavigationDots-DyMqwpgy-DXf5bt3G.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Bx7iBsCP-Bgk-R_8-.js → NewGlobalMerchantPage-Bx7iBsCP-DGrKqfpE.js} +1 -1
- package/dist/assets/{NoDataChart-Ce1_TZ5w-D3OEJqVU.js → NoDataChart-Ce1_TZ5w-BfNH_4T8.js} +1 -1
- package/dist/assets/{NoDataTable-l2T5Hw3t-BocZJJ0_.js → NoDataTable-l2T5Hw3t-Bh_N31mD.js} +1 -1
- package/dist/assets/{NotFoundPage-msdN-Eu6-DYqWaTYB.js → NotFoundPage-msdN-Eu6-BKPOdh9t.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-_ovcjr8E-DaKenjvb.js → NotificationSettingsPage-_ovcjr8E-Bj-DE2Dk.js} +15 -15
- package/dist/assets/{NotificationsListConfig-BJm7A9Mz-B1bUr4jp.js → NotificationsListConfig-BJm7A9Mz-Dg3_VsE9.js} +1 -1
- package/dist/assets/{NotificationsPage-Ddxb5kE0-DZUgUKAm.js → NotificationsPage-Ddxb5kE0-DzIBWdK5.js} +13 -13
- package/dist/assets/{OpExByVendorPage-BLAHey0l-Bvld9G1i.js → OpExByVendorPage-BLAHey0l-neBDRa7k.js} +4 -4
- package/dist/assets/{OverlayContainerPage-CrZuT2Jj-BZc1jNiE.js → OverlayContainerPage-CrZuT2Jj-DMNYxA7f.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-B7Z73Sq--CxOY2hjk.js → PandLWithForecastPage-B7Z73Sq--BDluLKs7.js} +5 -5
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-pL7omrJk-DPhW5Sbo.js → PaymentAccountSetupBillingAddressSection-pL7omrJk-Cgju1Qqc.js} +1 -1
- package/dist/assets/{PeoplePage-BHRFiM0D-Dz2giOXs.js → PeoplePage-BHRFiM0D-FOmgjcav.js} +1 -1
- package/dist/assets/{ProductsCarousel-D2bf_6Gb-oPFxud0a.js → ProductsCarousel-D2bf_6Gb-NT7Dhd8p.js} +1 -1
- package/dist/assets/{PromoBaseCards-CI7UOpeY-DSvwfl16.js → PromoBaseCards-CI7UOpeY-DI52WXKx.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-D7MeKn1t-CNNQde90.js → QBOConnectionDialog-D7MeKn1t-DelTIGIf.js} +4 -4
- package/dist/assets/{QBOSetupSection-DWhfA4Xv-DYYPH7Pl.js → QBOSetupSection-DWhfA4Xv-kSdJytyB.js} +7 -7
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-C_dTOk5P-B0mAq5_-.js → ReimbursementApprovalRuleDetailPage-C_dTOk5P-Dc_LvsYr.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-B5lca4qx-DfQkh2sN.js → ReimbursementApprovalRulesPage-B5lca4qx-DAjvVIOI.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-COIRwy7i-BbuWUy3N.js → ReimbursementDetailPage-COIRwy7i-W0eUs7nE.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-Bjm0UHcm-9396bQ9z.js → ReimbursementPromoPage-Bjm0UHcm-Crjakfj5.js} +8 -8
- package/dist/assets/{ReimbursementSetUpPage-CMYR8CcH-6GKMqjZm.js → ReimbursementSetUpPage-CMYR8CcH-B6Pjnu_N.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BDdhVfaz-CHdDYICO.js → ReimbursementsBulkReviewDrawerPage-BDdhVfaz-Qu76KNt7.js} +1 -1
- package/dist/assets/{ReloadCard-B2sJR97f-BUZQgyMC.js → ReloadCard-B2sJR97f-4aiyry-A.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-_IO343vS-DPhVSmcQ.js → ReportTableViewSelector-_IO343vS-DFegVWwX.js} +1 -1
- package/dist/assets/{ReportsPage-C-aQ1bdd-B_xkTwrl.js → ReportsPage-C-aQ1bdd-DQkYUdHM.js} +5 -5
- package/dist/assets/{RevenueChart-Bgq6My4J-Dt6XAZjz.js → RevenueChart-Bgq6My4J-Bd7qmjtO.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-COx9R71r-B7xkHaMk.js → ReviewDetailsPage-COx9R71r-BNEXmQ6j.js} +1 -1
- package/dist/assets/{ReviewOverlay-CPU7RPiJ-L4td8Zqd.js → ReviewOverlay-CPU7RPiJ-LkDgAnlD.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DSSGBzvw-BjW_p5Ey.js → RoleWithToolTip-DSSGBzvw-1jeqwzcs.js} +2 -2
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DKGBfhAM-BIQ3dSHo.js → ScheduleDetailsFixedAssetsPage-DKGBfhAM-DIiqwEOV.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-B-fKJ7Ct-BuuquQqY.js → ScheduleDetailsPage-B-fKJ7Ct-DSkiCN2O.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-Dh_aT47H-CIlJaOtf.js → ScheduleSequenceTable-Dh_aT47H-BHM_c04w.js} +15 -15
- package/dist/assets/{ScreenRoutes-C6VP09xT.js → ScreenRoutes-DuXEW70Q.js} +48 -48
- package/dist/assets/{SetUpAccountSection-DrMCC1IY-C-3Yhp84.js → SetUpAccountSection-DrMCC1IY-D33epaX0.js} +4 -4
- package/dist/assets/{SignIn-Ij6tlYI5-CCumTqCW.js → SignIn-Ij6tlYI5-DeE6t8Fq.js} +7 -7
- package/dist/assets/{SignInScreen-DJ4Bo1S_.js → SignInScreen-LCpnq8M3.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-AI676Urw-Bz122sOj.js → SpendManagementListViewPage-AI676Urw-DJru7ByR.js} +13 -13
- package/dist/assets/{SpendManagementPerTabPage-D79c3Xqh-rmjY-vmf.js → SpendManagementPerTabPage-D79c3Xqh-D8DfakVn.js} +1 -1
- package/dist/assets/{SpendManagementSection-BqWbsmBW-td2Sn0pd.js → SpendManagementSection-BqWbsmBW-BhpclPa8.js} +7 -7
- package/dist/assets/{StatementItem-Aal79YaO-XQmaXixd.js → StatementItem-Aal79YaO-3cBWg-5i.js} +1 -1
- package/dist/assets/{StatementsPage-BG_pNQzc-dvNXNLMV.js → StatementsPage-BG_pNQzc-C7UMTTVJ.js} +1 -1
- package/dist/assets/{StatusSwitcher-DYRXaLvx-DnQc7FsU.js → StatusSwitcher-DYRXaLvx-GT20DbHu.js} +1 -1
- package/dist/assets/{SubTabSwitcher-C75XU1EG-UKyrqTMF.js → SubTabSwitcher-C75XU1EG-BZOngUzL.js} +1 -1
- package/dist/assets/{SummaryCard-DEnzgi31-DEAiBXSy.js → SummaryCard-DEnzgi31-BhOErS-o.js} +1 -1
- package/dist/assets/{TaskManagementPage-BacWm0wS-B7bDEupg.js → TaskManagementPage-BacWm0wS-tQV5bDZ1.js} +12 -12
- package/dist/assets/{TimeRangeSwitcher-BOzR-0O6-Bz_-4Vd_.js → TimeRangeSwitcher-BOzR-0O6-8myc4JmX.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BVgI_VZw-BbnNXYMm.js → TimeframeSwitcher-BVgI_VZw-Re-kZX07.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CPVSAvFa-PHeDWcYh.js → TimeframeSwitcherWithToggle-CPVSAvFa-Bg7OmG92.js} +1 -1
- package/dist/assets/{TopExCard-ImUx-vXr-DLryJPJU.js → TopExCard-ImUx-vXr--haKJkNG.js} +1 -1
- package/dist/assets/{TopExDetailPage-Dg_8DQk8-RpIGLliz.js → TopExDetailPage-Dg_8DQk8-4TF178rD.js} +2 -2
- package/dist/assets/{TransactionDetailPage-BzaDB50S-DF5gn3Ir.js → TransactionDetailPage-BzaDB50S-CJmLmWoQ.js} +31 -31
- package/dist/assets/{TransactionList-DMd3dgoK-CBav3Qka.js → TransactionList-DMd3dgoK-DFvlE42h.js} +5 -5
- package/dist/assets/{TransactionListBig-BxHqh8u6-BYNOxGT0.js → TransactionListBig-BxHqh8u6-eMcF_DZh.js} +1 -1
- package/dist/assets/{TransactionListPage-CN9fZznd-Cy5ZEf_j.js → TransactionListPage-CN9fZznd-DZJjs91-.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CykcquSh-DmB7J4Ve.js → TransactionVendorDetailPage-CykcquSh-UwSp0CrJ.js} +1 -1
- package/dist/assets/{TransferDrawerPage-oV7ickRP-Bq_Xcqnx.js → TransferDrawerPage-oV7ickRP-yOers3_6.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CECDKjNn-BzVtu32L.js → TreasuryOverviewPage-CECDKjNn-HTBJsJ5M.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-Bgt7uGAE-YS83Frko.js → TreasuryPromoPage-Bgt7uGAE-oIwaWu5X.js} +6 -6
- package/dist/assets/{TreasuryStatementsPage-QyWxshsI-CQPDqfyA.js → TreasuryStatementsPage-QyWxshsI-BxKUXQKE.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-BLmfU0VD-CSvnMnxI.js → TreasuryTaxLetterPage-BLmfU0VD-CZkFVEWV.js} +1 -1
- package/dist/assets/{TrendChart-C_6ob-SX-D7KWuN6Y.js → TrendChart-C_6ob-SX-BWR7UfmP.js} +2 -2
- package/dist/assets/{TrendWithTransactions-lMD2sZ-C-KD4WKX16.js → TrendWithTransactions-lMD2sZ-C-B_BL8w82.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-DEgz17_R-01TUtrQ3.js → UncategorizedAccountsMappingPage-DEgz17_R-CooBTMrf.js} +7 -7
- package/dist/assets/{UnitIntegrationPage-D9Pzxqju-BOLWJuwD.js → UnitIntegrationPage-D9Pzxqju-CvrKT10L.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CJYvOjh0-D_FvrAyp.js → UploadAdditionalDocumentOverlay-CJYvOjh0-D-S1zfGQ.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-D-r0NVE--B3f5wBDW.js → Vendor2FAPopup-D-r0NVE--CwiNcgO0.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-Dv6bTD6Y-OnrOc4ob.js → VendorACHDetailsPage-Dv6bTD6Y-13eGKSpU.js} +1 -1
- package/dist/assets/{VendorDetailPage-BhfawsBd-n1Xsq3nw.js → VendorDetailPage-BhfawsBd-Caqe1lVz.js} +11 -11
- package/dist/assets/{VendorDomesticWireDetailsPage-BjmlrfTQ-CKSdgGUn.js → VendorDomesticWireDetailsPage-BjmlrfTQ-t6Qb8_Zl.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-glvi0GTU-DLw68imQ.js → VendorFiling1099EditablePage-glvi0GTU-Ctoy4jdk.js} +7 -7
- package/dist/assets/{VendorFirstReviewPage-DUuUM8ZT-UIFfUs4N.js → VendorFirstReviewPage-DUuUM8ZT-CU9frkxN.js} +23 -23
- package/dist/assets/{VendorInternationalWireDetailsPage--Lb-TviQ-CCF4TMxK.js → VendorInternationalWireDetailsPage--Lb-TviQ-DUgeyPBL.js} +13 -13
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C6KviV2Z-D3kLFHcQ.js → VendorInternationalWireSwiftDetailsPage-C6KviV2Z-CuCByIJB.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-EmHO3wQ0-CEeuSUbZ.js → VendorsAccountsSection-EmHO3wQ0-CSPWzKcg.js} +2 -2
- package/dist/assets/{VerifyDevice-DE3UbLEe--Pskj1Mq.js → VerifyDevice-DE3UbLEe-DJm7Kfur.js} +1 -1
- package/dist/assets/{VideoPlayer-Gw_PLr8F-BcXYYheO.js → VideoPlayer-Gw_PLr8F-BcD3Qyt1.js} +2 -2
- package/dist/assets/{VideoPopup-DPZYhLgy-DukYJkLb.js → VideoPopup-DPZYhLgy-CJt98Dbq.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CZvToguS-BXOU7iCW.js → WarningsDrawerPage-CZvToguS-Ba7pscqf.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CQhqngBz-HKLobKLw.js → ZeniAccountDetailPage-CQhqngBz-CmRc3epW.js} +6 -6
- package/dist/assets/{ZeniAccountListViewPage-CpX8vqYa-D5cFrlFO.js → ZeniAccountListViewPage-CpX8vqYa-CrcimjI_.js} +5 -5
- package/dist/assets/{ZeniAccountNavBarPieces-DsUwG15z-DUllEiZw.js → ZeniAccountNavBarPieces-DsUwG15z-DiPlFFTl.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-DA611IgH-C3rU7vC2.js → ZeniAccountPromoPage-DA611IgH-CipxvQgU.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-CJv2Fk1i-D14nFBbc.js → ZeniAccountSetupPage-CJv2Fk1i-BEZSbbPm.js} +3 -3
- package/dist/assets/{ZeniCopyright-FFqiWypL-DffEEOor.js → ZeniCopyright-FFqiWypL-DiiU36pR.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DSrBZUbA-BK28gg1V.js → ZeniTransferAmountSlider-DSrBZUbA-BFqVxMPD.js} +1 -1
- package/dist/assets/{analytics-CThNEnNw.js → analytics-XaDXTZcq.js} +1 -1
- package/dist/assets/{analyticsHelper-DZktPTuO.js → analyticsHelper-CPNXs_BN.js} +1 -1
- package/dist/assets/{analyticsHelper-CczQLvkM-DIUzCxU0.js → analyticsHelper-CczQLvkM-BG3MqU2b.js} +1 -1
- package/dist/assets/{chartTypes-CwQl8aoN-BvppJ7T_.js → chartTypes-CwQl8aoN-DVag5uGx.js} +1 -1
- package/dist/assets/{commonDimensions-B1u_MhON-C0I2HTNT.js → commonDimensions-B1u_MhON-D3_HfKhE.js} +1 -1
- package/dist/assets/{dash.all.min-BUPngCw6.js → dash.all.min-DBAY9LgI.js} +1 -1
- package/dist/assets/{detailCommon-nYxvvV_i-Uo4bq2Po.js → detailCommon-nYxvvV_i-CatRpXM4.js} +1 -1
- package/dist/assets/{downloadPdf-yGlKpV2--C-eO59Y8.js → downloadPdf-yGlKpV2--PjZSq5HD.js} +1 -1
- package/dist/assets/{epic-Bko4IStj.js → epic-BLwHhkRJ.js} +2 -2
- package/dist/assets/{index-KtBRorGi.js → index-CEtuJXY3.js} +1 -1
- package/dist/assets/{index-BxXAQ-Kq.js → index-CdTBIE6I.js} +1 -1
- package/dist/assets/{index-DKkab5BS.js → index-Ci63exms.js} +6 -6
- package/dist/assets/{index-BV-YAw0P.js → index-DYDdrdFx.js} +1 -1
- package/dist/assets/{index-CwsnnJzI.js → index-DrmeEdvK.js} +1 -1
- package/dist/assets/{liveblocks-B3KbWbMM.js → liveblocks-CNYVvsag.js} +1 -1
- package/dist/assets/{lottie-CaGAfnTY.js → lottie-22bRan8M.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DIAuL28N-xsS0oiYX.js → mapLoadingInProgressToTreeNode-DIAuL28N-uQ9ZpPGq.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DRSmQ56_-CG4Donkj.js → mapSectionWithAcOnlyToTreeNode-DRSmQ56_-BfuaGrUM.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DOEVwUIo-DvFYvzSg.js → mapSpacerToTreeNode-DOEVwUIo-DiQ0KiMB.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DbnAvW1M-DwP6n0dB.js → mapTimeframeBalancesToTreeNode-DbnAvW1M-DvZ_ljbo.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DkrEWOxt-C5viXNzP.js → mapTimeframeBalancesToTreeNode-DkrEWOxt-u1VbFdjk.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-DI0_1Fs5.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-DJb78S-u.js} +1 -1
- package/dist/assets/{react-C2wGlvWj.js → react-BUQtf2po.js} +2 -2
- package/dist/assets/{recharts-CXSQ4XPK.js → recharts-h5iNQbFd.js} +1 -1
- package/dist/assets/{sentry-DxvQlcJu.js → sentry-cYFeB6Pw.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-rZFEkHuM-BoVabqyh.js → toCOABalancesWithID-rZFEkHuM-BjqaEj9u.js} +1 -1
- package/dist/assets/{toChartData-C-dHC-Oz-BVDbQmqa.js → toChartData-C-dHC-Oz-CLJWjMkx.js} +1 -1
- package/dist/assets/{uploadAttachment-D3clfqPu-BH3cXou6.js → uploadAttachment-D3clfqPu-NbmOED_L.js} +15 -15
- package/dist/assets/{uploadReceipts-Bkf_PaOH-BF2MpIUs.js → uploadReceipts-Bkf_PaOH-DuaAGaHX.js} +1 -1
- package/dist/assets/{url-DuX7Wo4B.js → url-B-8T_WZb.js} +1 -1
- package/dist/assets/{url-y5lCWhwX.js → url-DPKHmOp_.js} +1 -1
- package/dist/assets/{utils-C70QTjQC.js → utils-fBOyu0sO.js} +1 -1
- package/dist/assets/{zeni-epic-state-xFtF3OLs.js → zeni-epic-state-BwKvATgd.js} +5 -5
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/ApprovalRulesSettingsPage-DQQw30S5-BhIGD0MP.js +0 -47
- package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-KhP9qsWJ.js +0 -1
- package/dist/assets/MagicLinkACHDetailsPage-DwFvuGwG-B16BKcOV.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc as oo,ge as ao,gf as ro,V as t,gy as lo,ab as ln,cm as si,cn as sn,co as cn,aK as K,o as i,y as c,bz as Di,bm as so,
|
|
1
|
+
import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc as oo,ge as ao,gf as ro,V as t,gy as lo,ab as ln,cm as si,cn as sn,co as cn,aK as K,o as i,y as c,bz as Di,bm as so,dr as co,gg as uo,gr as dn,gm as Ti,aO as un,an as mn,gn as mo,gz as _e,ew as qe,e_ as ci,gA as zt,A as xt,gB as po,p as j,_ as pn,ap as di,u as a,bv as ho,gp as go,cC as yo,eD as ui,gC as Bt,fd as Se,ff as $e,cE as mi,cO as ot,eh as bo,fc as hn,b as Lt,cH as gn,cG as it,cW as Te,ag as pi,gD as fo,fv as wo,cB as xo,aS as ji,fp as So,bu as $o,b8 as yn,s as vo,eg as Co,b5 as Mt,gh as ko,bS as bn,B as hi,M as fn,cY as wn,cf as Ft,eR as Io,b7 as Do,d0 as To,fk as jo,ak as gi,n as Oi,bQ as xn,a$ as Pi,cV as Oo,al as Po,cK as Sn,aL as Lo,gE as $n,gF as li,g7 as Li,gG as Rt,cU as Ro,gb as Ao,bI as zo,cT as Bo}from"./index-Ci63exms.js";import{a as $,w as Ct}from"./core-3dlyNYRL.js";import{n}from"./mui-bYXq4XMS.js";import{a as Mo}from"./liveblocks-CNYVvsag.js";import{Fo,bO as nt,bS as vn,bj as yi,bp as Cn,bn as Ri,Fp as Ai}from"./zeni-epic-state-BwKvATgd.js";import kn from"./InvoiceUploadSection-CokNNkKu-CL4OwcxH.js";import{r as Eo,f as At,d as bt,p as bi,u as zi,h as Ie}from"./types-DyvtCprH-BcZYcgaq.js";import{I as No}from"./LabeledCreatableSingleSelectField-CfzLlkho-CxZaZJZN.js";import{S as Wo}from"./CurrencySelectField-ClOg6nnS-wUZ5kAZB.js";import{e as Uo}from"./BankAccountSection-C5rYUW3V-B24i3wVy.js";import{W as _o,A as Vo}from"./BankAccountWarningSection-DakysSbk-CfJ3ZIAx.js";import{o as Ho}from"./radio-default-CiSgisfh-Clpw2LWj.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./utils-fBOyu0sO.js";import"./lexical-DPEnH3HH.js";import"./AttachmentView-Bujbmx1d-B9I0wNAl.js";import"./uploadReceipts-Bkf_PaOH-DuaAGaHX.js";const Me=(e,o)=>`${e}.${o}`,Bi={largeLabelWidth:new c(120,120,160),paddingBottom:new c(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:ke}},dateFormat:Ko,common:qo}=we.getLocalizedStrings(),Go=({lineIndex:e,mileage:o,classList:r,defaultCurrency:d,sectionId:p,isReimbursementCommentingEnabled:C,isDisabled:m,isAddReimbursementDisabled:v,companyMileageConfigInfo:f,reimbursementId:l,classHierarchyList:k})=>{const w=Ae(),s=wt(),y=Bt(),S=`dashboard_${s.currentTenant?.companyId}`,O=ft(),{formState:{errors:I},getValues:P,trigger:q}=ot(),L=qo.strings.empty,D=P(Me(p,"distanceInMiles")),z=Bi.largeLabelWidth.value(w),ee=P(Me(p,"class")),ie=r.find(A=>A.classId===ee?.selectedOption),ne=Me(p,"class"),J=Te(I,ne);$.useEffect(()=>{ee?.selectedOption!=null&&(ie?.isDeleted===!0||J)&&q(ne)},[ee?.selectedOption,ie?.isDeleted,r,ne,q]);const G={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},F=A=>r.filter(oe=>oe.classId===A)[0]?.accountingClassNumber,Z=r.find(A=>A.classId===o.class),H={valueContainer:A=>({...A,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.transactionDate`}),roomId:S,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("transactionDate",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Sn,{isDisabled:m,label:{label:ke.transactionDate,width:z},style:{paddingBottom:Bi.paddingBottom.valuePx(w),width:"auto"},dateField:{name:Me(p,"transactionDate"),placeholder:ke.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Ko.visual.defaultInput,autoComplete:"off",maxDate:yi(),registerOptions:{required:!0,validate:A=>!!A}}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:S,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Li,{isDisabled:v?"disabled":void 0,style:{width:"auto"},label:{label:ke.distanceInMiles,width:z},formattedTextField:{type:"number",name:Me(p,"distanceInMiles"),placeholder:ke.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(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.amount`}),roomId:S,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("amount",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Li,{isDisabled:"disabled",label:{label:ke.amount,width:z},formattedTextField:{type:"number",name:Me(`${p}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:it(ke.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:D!=null&&f?.mileageUnitAmount!=null?`${d.currencySymbol}${f?.mileageUnitAmount} per mile x ${D}`:void 0})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.memo`}),roomId:S,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("memo",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(mi,{isDisabled:m,label:{label:ke.memo,width:z},style:{width:"auto"},text:{type:"text",name:Me(p,"memo"),placeholder:it(ke.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.class`}),roomId:S,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("class",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(li,{isLoading:!1,label:{label:ke.department,width:z},additionalLabelInfo:ie?.isDeleted===!0&&Te(I,Me(p,"class"))?ke.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Me(p,"class"),placeholder:it(ke.department),valueToId:A=>F(A),defaultValue:{selectedOption:Z?.classId,allOptions:qe(k,[])},style:{width:"100%"},customStyleConfig:H,registerOptions:{required:!0,validate:A=>A?.selectedOption==null?!1:r.find(oe=>oe.classId===A?.selectedOption)?.isDeleted===!0?ke.deletedClassError:!0}},style:{borderBottom:`1px solid ${O.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Me(p,"class"))})]})},kt=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
|
-
`,Mi={amounWidth:new c(50,30),currencyWidth:new c(50,70)};function
|
|
7
|
+
`,Mi={amounWidth:new c(50,30),currencyWidth:new c(50,70)};function Yo({name:e,placeHolder:o,defaultValue:r,isDisabled:d,showAmountCurrencyError:p,style:C,allCurrencies:m}){const[v,f]=$.useState(!1),{getValues:l,formState:{errors:k}}=ot(),w=ft(),s=Ae(),y=d!=null,S=l(e),O=`${S?.amount} ${S?.currency?.selectedOption}`,I=Te(k,e)&&Rt(k,`${e}.amount`)!=null,P=Te(k,e)&&Rt(k,`${e}.currency`)!=null,q=p===!0?I||P:!1,L=!q&&v===!1;return $.useEffect(()=>{L===!1&&f(!0)},[L]),t.jsx(mn,{onClickAway:()=>y===!1&&!q&&f(!1),children:t.jsx(Zo,{style:C,isDisabled:y,tabIndex:L&&!y?0:void 0,onClick:()=>y===!1&&f(!0),"data-testid":K("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[S?.amount!=null?t.jsx(Fi,{className:"amount-field",isVisible:L,children:O}):t.jsx(Fi,{className:"amount-field amount-placeholder",isVisible:L,children:o?.name}),t.jsxs(Jo,{isVisible:!L,children:[t.jsx(Ao,{type:"number",name:`${e}.amount`,defaultValue:r?.amount,placeholder:o?.amount,returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:D=>D!=null?D>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:d,style:{display:"flex",flexGrow:1,width:Mi.amounWidth.valuePercentage(s),cursor:"inherit"},bgColor:w.colors.background,isFieldError:I,shouldHighlightZeroAmount:!0}),L?null:t.jsx(Qo,{}),t.jsx(Wo,{name:`${e}.currency`,registerOptions:{validate:D=>D!=null&&D.selectedOption!=null},defaultValue:{allOptions:m.map(D=>({label:s==="small"?D.currencyCode:`${D.currencyCode} - ${D.currency}`,value:D.currencyCode,countryCode:D.countryCode})),selectedOption:r?.currencyCode},controlStyle:{justifyContent:"flex-start",backgroundColor:w.colors.background},isDisabled:d,style:{width:Mi.currencyWidth.valuePercentage(s),flexGrow:1},isOptionRemovable:!1})]})]})})})}const Jo=n.div`
|
|
8
8
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
9
9
|
width: 100%;
|
|
10
10
|
input {
|
|
@@ -37,7 +37,7 @@ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc a
|
|
|
37
37
|
&.amount-placeholder {
|
|
38
38
|
color: ${e=>e.theme.colors.grey1};
|
|
39
39
|
}
|
|
40
|
-
`,We={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])},In={infoLabel:new hi("extraSmallRegular","smallRegular")};function Xo({isDisabled:e,label:o,currencyAmountField:r,style:d,errorInfoLabel:p,isAdditionalInfoLabelLoading:C,showAdditionalLabelTooltip:m=!1,additionalLabelTooltip:v,additionalInfoLabel:f,showAdditionalInfoLabel:l=!0}){const k=Ae(),{formState:{errors:w}}=ot(),s=Te(w,r.name)&&Rt(w,`${r.name}.amount`)!=null,y=Te(w,r.name)&&Rt(w,`${r.name}.currency`)!=null,S=r.showAmountCurrencyError===!0?s||y:!1,O=s||y||S,I=()=>{if(C===!0)return t.jsx(oa,{children:t.jsx(xt,{size:"Small",start:!0})});if(l&&f||S){let P=null;return m===!0&&l&&f&&(P=t.jsx(xn,{placement:k==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(na,{children:v??""}),children:t.jsx(ra,{children:t.jsx(la,{})})})),t.jsxs(aa,{size:k,isError:S,hasToolTip:m,children:[P,f]})}};return t.jsxs(ea,{size:k,style:d,isDisabled:e!=null,isAmountError:s,isCurrencyError:y,"data-testid":K("labeled-currency-amount-field",r.name),children:[t.jsx(Ro,{isDisabled:e,label:o.label,htmlFor:r.name,style:{marginLeft:We.labelMarginLeft.value(k),marginRight:We.labelMarginRight.value(k),marginTop:We.labelMarginTop.value(k),width:o.width??"auto"}}),t.jsxs(ia,{labelWidth:o.width,children:[t.jsx(
|
|
40
|
+
`,We={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])},In={infoLabel:new hi("extraSmallRegular","smallRegular")};function Xo({isDisabled:e,label:o,currencyAmountField:r,style:d,errorInfoLabel:p,isAdditionalInfoLabelLoading:C,showAdditionalLabelTooltip:m=!1,additionalLabelTooltip:v,additionalInfoLabel:f,showAdditionalInfoLabel:l=!0}){const k=Ae(),{formState:{errors:w}}=ot(),s=Te(w,r.name)&&Rt(w,`${r.name}.amount`)!=null,y=Te(w,r.name)&&Rt(w,`${r.name}.currency`)!=null,S=r.showAmountCurrencyError===!0?s||y:!1,O=s||y||S,I=()=>{if(C===!0)return t.jsx(oa,{children:t.jsx(xt,{size:"Small",start:!0})});if(l&&f||S){let P=null;return m===!0&&l&&f&&(P=t.jsx(xn,{placement:k==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(na,{children:v??""}),children:t.jsx(ra,{children:t.jsx(la,{})})})),t.jsxs(aa,{size:k,isError:S,hasToolTip:m,children:[P,f]})}};return t.jsxs(ea,{size:k,style:d,isDisabled:e!=null,isAmountError:s,isCurrencyError:y,"data-testid":K("labeled-currency-amount-field",r.name),children:[t.jsx(Ro,{isDisabled:e,label:o.label,htmlFor:r.name,style:{marginLeft:We.labelMarginLeft.value(k),marginRight:We.labelMarginRight.value(k),marginTop:We.labelMarginTop.value(k),width:o.width??"auto"}}),t.jsxs(ia,{labelWidth:o.width,children:[t.jsx(Yo,{...r,isDisabled:e,style:{flexGrow:1,height:We.controlHeight.value(k)}}),O?t.jsx(ta,{size:k,hasError:O,children:p}):null,I()]})]})}const ea=n.div`
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: row;
|
|
43
43
|
align-items: flex-start;
|
|
@@ -146,7 +146,7 @@ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc a
|
|
|
146
146
|
width: ${i.sp3};
|
|
147
147
|
height: ${i.sp3};
|
|
148
148
|
color: inherit;
|
|
149
|
-
`,ge=(e,o)=>`${e}.${o}`,Ot={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:sa,common:Dn,spendManagement:{reimbursement:{reimbursementDetail:te}}}=we.getLocalizedStrings(),{strings:{empty:le}}=Dn,ca=(e,o)=>{const r=e.slice(1);let d=!1;return r.forEach(p=>{p.account?.qboId!=null&&p.account?.qboId===o&&(d=!0)}),d},da=e=>e.charAt(0).toLowerCase()+e.slice(1),ua=({lineIndex:e,outOfPocket:o,accountList:r,classList:d,merchantList:p,isAddReimbursementDisabled:C,sectionId:m,isReimbursementCommentingEnabled:v,isDisabled:f,autoFields:l=[],accountsHierarchyList:k,classHierarchyList:w,reimbursementId:s,tentativeMerchantName:y,allCurrencies:S,uncategorizedAccounts:O})=>{const I=Ae(),P=wt(),q=Bt(),L=ft(),{formState:{errors:D},getValues:z,trigger:ee}=ot(),ie=z(ge(m,"class")),ne=d.find(h=>h.classId===ie?.selectedOption),
|
|
149
|
+
`,ge=(e,o)=>`${e}.${o}`,Ot={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:sa,common:Dn,spendManagement:{reimbursement:{reimbursementDetail:te}}}=we.getLocalizedStrings(),{strings:{empty:le}}=Dn,ca=(e,o)=>{const r=e.slice(1);let d=!1;return r.forEach(p=>{p.account?.qboId!=null&&p.account?.qboId===o&&(d=!0)}),d},da=e=>e.charAt(0).toLowerCase()+e.slice(1),ua=({lineIndex:e,outOfPocket:o,accountList:r,classList:d,merchantList:p,isAddReimbursementDisabled:C,sectionId:m,isReimbursementCommentingEnabled:v,isDisabled:f,autoFields:l=[],accountsHierarchyList:k,classHierarchyList:w,reimbursementId:s,tentativeMerchantName:y,allCurrencies:S,uncategorizedAccounts:O})=>{const I=Ae(),P=wt(),q=Bt(),L=ft(),{formState:{errors:D},getValues:z,trigger:ee}=ot(),ie=z(ge(m,"class")),ne=d.find(h=>h.classId===ie?.selectedOption),J=ge(m,"class"),G=Te(D,J),F=z(ge(m,"account")),Z=r.find(h=>h.qboId===F?.selectedOption||h.accountId===F?.selectedOption),H=ge(m,"account"),A=Te(D,H);$.useEffect(()=>{ie?.selectedOption!=null&&(ne?.isDeleted===!0||G)&&ee(J)},[ie?.selectedOption,ne?.isDeleted,d,J,ee]),$.useEffect(()=>{F?.selectedOption!=null&&(Z?.isDeleted===!0||A)&&ee(H)},[F?.selectedOption,Z?.isDeleted,r,H,ee]);const oe=o.isCategoryUpdateSelected!=null&&o.recommendedAccount!=null&&!o.isCategoryFirstTimeAutofilled&&!ca(o.recommendations,o.account),se=o.isRetainedCategorySelected!=null&&o.retainedAccount!=null,U=Ot.largeLabelWidth.value(I),ue=Ot.smallLabelWidth.value(I),Ee=p.map(h=>h.id??le),me={application:"dashboard",companyId:P.currentTenant?.companyId,tab:"reimbursement",entityId:s},ye=`dashboard_${P.currentTenant?.companyId}`,ce=h=>p.find(ae=>ae.id===h)?.name??h,je=r.find(h=>h.qboId===o.account),Oe=h=>[O.expense?.qboId,O.income?.qboId].includes(h),Pe=d.find(h=>h.classId===o.class),pe={valueContainer:h=>({...h,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},Le=h=>r.filter(ae=>ae.qboId===h)[0]?.qboId,he=h=>d.filter(ae=>ae.classId===h)[0]?.accountingClassNumber,ve=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",da(o?.recommendedAccount?.reason??le)),Ge=zt(k,o.recommendations);return t.jsxs(t.Fragment,{children:[y!=null||l.includes("merchant")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(No,{isDisabled:f!=null||C?"disabled":void 0,label:{label:te.merchant,width:U},style:{width:"auto"},creatableSingleSelectField:{name:ge(m,"merchant"),placeholder:te.merchantPlaceholder,defaultValue:{selectedOption:o.merchant??le,allOptions:Ee},registerOptions:{required:!0,validate:h=>!!h.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:ce})}),t.jsx(It,{}),l.includes("transactionDate")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(Sn,{isDisabled:f,label:{label:te.transactionDate,width:U},style:{paddingBottom:Ot.paddingBottom.valuePx(I),width:"auto"},dateField:{name:ge(m,"transactionDate"),placeholder:te.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:sa.visual.defaultInput,autoComplete:"off",maxDate:yi(),registerOptions:{required:!0,validate:h=>!!h}}})}),t.jsx(It,{}),l.includes("amount")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,isTwoLined:!0,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(Xo,{isDisabled:f!=null||C?"disabled":void 0,label:{label:te.amount,width:ue},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:te.addAmount,name:te.addAmount},allCurrencies:S,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:te.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:o.isConvertedCurrencyLoading===!0,additionalInfoLabel:!rn(o.homeCurrencyDetails,o.amount)&&o.amount.currencyCode!==Dn.currency.currencyCode&&o.homeCurrencyDetails?.amount!==0?`${Lo("0,0[.]00",o.homeCurrencyDetails)} ${o.homeCurrencyDetails?.currencyCode}`:void 0})}),t.jsx(It,{}),l.includes("memo")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(mi,{isDisabled:f,label:{label:te.memo,width:U},style:{width:"auto"},text:{type:"text",name:ge(m,"memo"),placeholder:it(te.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(It,{}),l.includes("account")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.account`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("account",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(li,{label:{label:te.category,width:U},additionalLabelInfo:Z?.isDeleted===!0&&Te(D,ge(m,"account"))?te.deletedCategoryError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:oe||se,name:ge(m,"account"),placeholder:te.categoryPlaceholder,valueToId:h=>Le(h),defaultValue:{selectedOption:je?.qboId??je?.accountId,allOptions:Ge},style:{width:"100%"},customStyleConfig:pe,registerOptions:{required:!0,validate:h=>h?.selectedOption==null?!1:r.find(ae=>ae.qboId===h?.selectedOption||ae.accountId===h?.selectedOption)?.isDeleted===!0?te.deletedCategoryError:!0}},disableCurrentOption:Oe,style:{borderBottom:`1px solid ${L.colors.grey3}`,minHeight:i.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:o.isRecommendationLoading,recommendationCheckboxField:oe?{tooltipProps:{text:ve},label:{label:o.recommendedAccount?.accountName??le},checkBoxField:{name:ge(m,"isCategoryUpdateSelected"),defaultChecked:!!o.isCategoryUpdateSelected}}:void 0,retainCheckboxField:se?{label:{label:o.retainedAccount?.accountName??le},checkBoxField:{name:ge(m,"isRetainedCategorySelected"),defaultChecked:!!o.isRetainedCategorySelected}}:void 0},ge(m,"account"))}),l.includes("class")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.class`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("class",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(li,{isLoading:!1,label:{label:te.department,width:U},additionalLabelInfo:ne?.isDeleted===!0&&Te(D,ge(m,"class"))?te.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:ge(m,"class"),placeholder:it(te.department),valueToId:h=>he(h),defaultValue:{selectedOption:Pe?.classId,allOptions:qe(w,[])},style:{width:"100%"},customStyleConfig:pe,registerOptions:{required:!0,validate:h=>h?.selectedOption==null?!1:d.find(ae=>ae.classId===h?.selectedOption)?.isDeleted===!0?te.deletedClassError:!0}},style:{borderBottom:`1px solid ${L.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},ge(m,"class"))})]})},st=n.span`
|
|
150
150
|
position: relative;
|
|
151
151
|
`,ct=n(ui)`
|
|
152
152
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -163,7 +163,7 @@ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc a
|
|
|
163
163
|
background-color: ${e=>e.theme.colors.grey3};
|
|
164
164
|
min-height: 1px;
|
|
165
165
|
max-height: 1px;
|
|
166
|
-
`,et=(e,o)=>`${e}.${o}`,Ue={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])},
|
|
166
|
+
`,et=(e,o)=>`${e}.${o}`,Ue={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])},Y=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,ma=({lineData:e,currencyConversionState:o,recommendationFetchState:r,remiStage:d,lineIndex:p,accountList:C,classList:m,merchantList:v,hasFile:f,defaultCurrency:l,hasMultipleLineItems:k,fileRequiredLineIds:w,duplicateLineDetails:s,remiStatus:y,sectionId:S,isDisabled:O,isReimbursementCommentingEnabled:I,isAddReimbursementDisabled:P,style:q,autoFields:L=[],analytics:D,reimbursementId:z,tentativeMerchantName:ee,companyMileageConfigInfo:ie,uncategorizedAccounts:ne,removeDuplicateReimbursementForLine:J,scrollToSection:G,onDuplicateLineClick:F,onRemoveReimbursement:Z,clearTentativeNameForLine:H,allCurrencies:A,accountsHierarchyList:oe,classHierarchyList:se})=>{const U=Ae(),ue=wt(),Ee=Bt(),me=we.getLocalizedStrings().common.strings.empty,ye={application:"dashboard",companyId:ue.currentTenant?.companyId,tab:"reimbursement",entityId:z},ce=`dashboard_${ue.currentTenant?.companyId}`,{getValues:je}=ot(),[Oe,Pe]=$.useState(!1),pe=je(et(S,"reimbursementType"));return t.jsxs(wa,{style:q,windowSize:U,children:[t.jsxs(ha,{hasFile:f,windowSize:U,showDeleteConfirmation:Oe,children:[t.jsx(Sa,{windowSize:U,children:k?`#${p+1} ${Y.reimbursement}`:Y.reimbursement}),Oe?t.jsxs(fa,{windowSize:U,children:[t.jsx(ba,{windowSize:U,children:Y.deleteConfirmation}),t.jsxs(pa,{children:[t.jsx(Oi,{label:Y.buttons.cancel,onClick:()=>Pe(!1),style:{width:Ue.buttonWidth.value(U),marginLeft:U==="small"?i.sp0:i.sp4,marginRight:i.sp3},size:"small",variant:"secondary","data-testid":K("delete-remi-button",Y.buttons.cancel)}),t.jsx(Oi,{label:Y.buttons.remove,onClick:()=>{D?.trackReimbursementDeleteReimbursementLine(e.lineId,z),H?.(e.lineId??"1"),Pe(!1),J(e.lineId),Z(p)},style:{width:Ue.buttonWidth.value(U)},size:"small",variant:"danger","data-testid":K("delete-remi-button",Y.buttons.remove)})]})]}):k&&(d==="draft"||y==="rejected")?t.jsx(ga,{className:"deleteIconWrapper",windowSize:U,onClick:()=>Pe(!0),"data-testid":K("delete-remi-button",e.lineId),children:t.jsx(xn,{enterDelay:600,title:Y.deleteReimbursement,placement:"top-end",children:t.jsx(ya,{})})}):null]}),w.includes(e.lineId)?t.jsx(dn,{title:Y.missingReceipt,description:Y.missingReceiptDescription,style:{marginBottom:i.sp3}}):null,t.jsxs($a,{windowSize:U,children:[s?.duplicateLineId!=null?t.jsxs(xa,{children:[Y.thisExpense," ",s.isDuplicateWithinTransaction?t.jsx(Ei,{"data-testid":K("view-duplicate-transaction-expense"),onClick:()=>(D?.trackReimbursementViewDuplicateExpense(!0,z),G(s.duplicateLineId)),children:Y.viewOriginalExpense}):t.jsx(Ei,{"data-testid":K("view-duplicate-expense"),onClick:()=>{s.duplicateTransactionId!=null&&s.duplicateLineId!=null&&(D?.trackReimbursementViewDuplicateExpense(!1,z),F(s.duplicateTransactionId,s.duplicateLineId))},children:Y.viewOriginalExpense})]}):null,t.jsx(Se,{isThreadAllowed:I&&z!=null,dashboardTabKey:$e({type:"details",key:pe===Y.mileageKey?`${p}.mileage.reimbursementType`:`${p}.out_of_pocket.reimbursementType`}),roomId:ce,companyId:ue.currentTenant?.companyId??me,companyName:ue.currentTenant?.companyName??me,entityId:z,dashboardOptionType:"reimbursement",filterMetaData:{...ye,entityType:`reimbursement.details.${Ie("reimbursementType",p,pe===Y.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:Ee?.sharedRef?.contentWrapperRef,style:{borderRadius:s?.duplicateLineId!=null?"0 0 0 0":`${i.sp2} ${i.sp2} 0 0`},children:t.jsxs(Ca,{isDisabled:O!=null,haveBorderRadius:s?.duplicateLineId==null,children:[t.jsx(Pi,{isDisabled:O!=null||P?"disabled":void 0,isContainerClickable:!0,label:{label:Y.outOfPocket},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ue.labelPaddingLeft.value(U),borderTopLeftRadius:"inherit"},showOutline:!(I&&z!=null),radioField:{name:et(S,"reimbursementType"),id:`${et(S,"reimbursementType")}.${Y.outOfPocketKey}`,value:Y.outOfPocketKey}}),t.jsx(va,{}),t.jsx(Pi,{isDisabled:O!=null||P?"disabled":void 0,isContainerClickable:!0,label:{label:Y.mileage},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ue.labelPaddingLeft.value(U),borderTopRightRadius:"inherit"},showOutline:!(I&&z!=null),radioField:{name:et(S,"reimbursementType"),id:`${et(S,"reimbursementType")}.${Y.mileageKey}`,value:Y.mileageKey}})]})}),t.jsx(ka,{}),pe===Y.outOfPocketKey?t.jsx(ua,{lineIndex:p,reimbursementId:z,uncategorizedAccounts:ne,isReimbursementCommentingEnabled:I,isDisabled:O,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?nt(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:et(S,"outOfPocket"),accountList:C,classList:m,autoFields:L,merchantList:v,tentativeMerchantName:ee,allCurrencies:A,isAddReimbursementDisabled:P,accountsHierarchyList:oe,classHierarchyList:se}):t.jsx(Go,{lineIndex:p,reimbursementId:z,isReimbursementCommentingEnabled:I,isDisabled:O,mileage:{transactionDate:e.mileage.transactionDate!=null?nt(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:et(S,"mileage"),companyMileageConfigInfo:ie,defaultCurrency:l,isAddReimbursementDisabled:P,classHierarchyList:se})]})]})},pa=n.div``,ha=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,9 +258,9 @@ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc a
|
|
|
258
258
|
`,ja=n(Mt)`
|
|
259
259
|
color: ${e=>e.theme.colors.primary};
|
|
260
260
|
margin-bottom: ${e=>ut.marginBottom.valuePx(e.windowSize)};
|
|
261
|
-
`,E={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])},Oa={total:new hi("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:
|
|
262
|
-
${Dt.bankAccountNumber} ${
|
|
263
|
-
${Dt.bankAccountNumber} ${r.bankAccountNumber??
|
|
261
|
+
`,E={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])},Oa={total:new hi("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:V},billPay:{vendorCreation:{achDetails:Dt}}},common:{currency:{currencyCode:Tt}}}=we.getLocalizedStrings(),jn=e=>{let o=0,r=Tt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const d=e;o=d.outOfPocket.amount??0,r=d.outOfPocket.currencyCode??Tt}else{const d=e;o=d.outOfPocket.amount?.amount??0,r=d.outOfPocket.amount?.currencyCode??Tt}return(e.homeCurrencyConversions?.currencyCode??Tt)!==r&&(o=e.homeCurrencyConversions?.amount??0),o},Pa=({remiUploadStatus:e,progressSectionObj:o,reimbursementId:r,createDate:d,scheduleDate:p,paymentDate:C,hasDuplicateLine:m,approvedDate:v,isFirstOrLastListItem:f,index:l,reimbursementSectionRef:k,showSkipAutoFill:w,lineData:s,currencyConversionState:y,authParams:S,uploadInvoiceEndPoint:O,accountList:I,classList:P,merchantList:q,remiStage:L,autoFieldsByLineId:D,isReimbursementCommentingEnabled:z,isAutoFieldsExist:ee,totalAmount:ie,showTotalAmountLoader:ne,totalNumberOfLines:J,defaultCurrency:G,bankAccounts:F,fileRequiredLineIds:Z,isAddReimbursementDisabled:H,duplicateLineByLineId:A,remiStatus:oe,file:se,uncategorizedAccounts:U,reportTitle:ue,recommendationFetchState:Ee,tentativeMerchantName:me,paymentTo:ye,analytics:ce,companyMileageConfigInfo:je,loggedInUserDepartmentId:Oe,isSignedInUserReimbursementCreator:Pe,setShowBankAccountPage:pe,setRefByLineId:Le,setCurrentLineIdForUpload:he,onDuplicateLineClick:ve,setUploadedReceiptPayload:Ge,removeDuplicateReimbursementForLine:h,onReceiptsUpload:ae,scrollToSection:at,onRemoveReimbursement:Ve,onAddReimbursement:Re,clearTentativeNameForLine:Ye,onReplaceClick:ze,onDeleteBankAccount:He,updateInvoiceUploadFetchState:Ke,removeFileFromLine:Je,allCurrencies:Ze,accountsHierarchyList:re,classHierarchyList:rt})=>{const{formState:{errors:mt}}=ot(),Qe=$.useRef(null);$.useEffect(()=>(Le(B=>({...B,[`L${s.lineId}`]:Qe.current})),()=>{Le(B=>({...B,[`L${s.lineId}`]:null}))}),[s.lineId,Le]);const _=Ae(),pt=L==="draft"?V.newReimbursementTitle:V.editReimbursementTitle,N=E.largeLabelWidth.value(_),de=B=>B.outOfPocket.account.selectedOption==null&&(B.outOfPocket.amount==null||B.outOfPocket.amount.amount==0)&&(B.outOfPocket.class.selectedOption==null||B.outOfPocket.class.selectedOption===Oe)&&(B.outOfPocket.memo===""||B.outOfPocket.memo==null)&&B.outOfPocket.merchant.selectedOption==null&&B.outOfPocket.transactionDate==null,St=F.map(B=>B.bankAccountId),Ce=s.reimbursementType===V.outOfPocketKey&&jn(s)>=75&&se==null;return t.jsxs(Ja,{ref:k,windowSize:_,children:[t.jsx(Za,{ref:B=>{B!=null&&(Qe.current=B)},windowSize:_,bottomSeperator:J!==1,showSkipAutoFill:w,isFirstItem:l===0,children:t.jsx(kn,{customError:Ce?V.requireReceipt:void 0,analytics:ce,showAutofill:!1,uploadInvoiceEndPoint:O,authParams:S,entityId:H?"":void 0,file:se,style:{width:"auto",padding:0,height:f?E.firstOrLastItemHeight.valuePx(_):E.itemHeight.valuePx(_),margin:_==="small"?i.sp0:void 0},updateInvoiceUploadFetchState:Ke,onInvoiceUpload:B=>{s.reimbursementType===V.outOfPocketKey&&!de(s)?(he(Number(s.lineId)),Ge(B),ze?.()):ae(B,Number(s.lineId),!0)},dropFilePlaceholder:{upload:V.dropReceipt.upload,receipt:V.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!H,pdfTitle:J>1?`#${l+1} Receipt`:"Receipt",onDeleteClick:()=>{Ke?.("In-Progress"),setTimeout(()=>Je?.(Number(s.lineId)))},onReplaceClick:()=>{he(Number(s.lineId)),ze?.()},allowMultiFiles:J===l+1,type:"reimbursement"})}),t.jsxs(Ya,{windowSize:_,children:[l===0&&_!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(Na,{children:pt}),t.jsx(Qa,{children:t.jsx(ko,{progressSectionObj:o,createDate:d,paymentDate:C,scheduleDate:p,approvedDate:v,isBillUploaded:r!=null?!0:e==="Completed"})}),ee&&t.jsxs(Aa,{children:[t.jsx(La,{}),t.jsx(Ea,{children:V.banner})]}),m&&t.jsxs(za,{size:_,children:[t.jsx(Ra,{}),t.jsxs(Ma,{children:[t.jsx(Ba,{children:V.thereSeems}),t.jsx(Fa,{children:V.pleaseFind})]})]}),t.jsx(Tn,{isReimbursementCommentingEnabled:z,sectionId:At,reportTitle:ue,reimbursementId:r})]}):null,t.jsx(ma,{analytics:ce,reimbursementId:r,onDuplicateLineClick:ve,uncategorizedAccounts:U,sectionId:`${bi}.${l}`,scrollToSection:at,lineIndex:l,lineData:s,accountList:I,classList:P,merchantList:q,autoFields:s.lineId!=null?D[s.lineId]:[],currencyConversionState:y,recommendationFetchState:Ee,onRemoveReimbursement:Ve,hasMultipleLineItems:J>1,clearTentativeNameForLine:Ye,tentativeMerchantName:me,hasFile:se!=null,companyMileageConfigInfo:je,defaultCurrency:G,remiStage:L,remiStatus:oe,fileRequiredLineIds:Z,allCurrencies:Ze,isReimbursementCommentingEnabled:z,isAddReimbursementDisabled:H,accountsHierarchyList:re,classHierarchyList:rt,duplicateLineDetails:A[s.lineId],removeDuplicateReimbursementForLine:h}),J!==1&&J===l+1&&t.jsxs(t.Fragment,{children:[t.jsxs(Ua,{windowSize:_,children:[t.jsx(_a,{children:V.total}),ne?t.jsx(Va,{windowSize:_,children:t.jsx(Ha,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(hn,{amount:Cn(ie,"USD","$"),integerStyles:Lt.h6Regular.cssObject,decimalStyles:Lt.standardRegular.cssObject})]}),t.jsxs(qa,{windowSize:_,onClick:()=>{H===!1&&Re()},isDisabled:H,"data-testid":K("add-reimbursement-row"),children:[t.jsx(Wi,{}),t.jsx(Ni,{children:V.addReimbursement})]}),Pe?t.jsxs(t.Fragment,{children:[t.jsx(Wa,{windowSize:_,children:V.receivePaymentTo}),t.jsx(Ka,{windowSize:_,shouldDisplay:F.length>0,children:t.jsx(gn,{label:{label:V.yourBankAccount,width:N},style:{width:"auto"},singleSelectField:{singleSelect:{name:bt,placeholder:it(V.yourBankAccount),showValueEyeIcon:!H,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:He,getTooltipInfo:B=>On(F,B),onClickCreateBankAccount:()=>pe(!0),getLabelForId:B=>Ln(F,B),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:H?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:ye,allOptions:St},registerOptions:{required:!0,validate:B=>!!B.selectedOption}},isFunctional:!0})}),t.jsxs(Ga,{shouldDisplay:F.length===0,windowSize:_,hasError:Te(mt,bt),onClick:()=>{H===!1&&pe(!0)},isDisabled:H,"data-testid":K("remi-add-bank-account-container"),children:[t.jsx(Wi,{}),t.jsx(Ni,{children:V.addBankAccount})]})]}):null]})]})]})},On=(e,o)=>{const r=Pn(e,o);return r==null?`${Dt.bankRoutingNumber} ${V.emptyValue}
|
|
262
|
+
${Dt.bankAccountNumber} ${V.emptyValue}`:`${Dt.bankRoutingNumber} ${r.bankRoutingNumberAch??V.emptyValue}, ${r.bankName??V.emptyValue}
|
|
263
|
+
${Dt.bankAccountNumber} ${r.bankAccountNumber??V.emptyValue}`},Pn=(e,o)=>e.find(r=>r.bankAccountId===o),Ln=(e,o)=>{const r=Pn(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},La=n(ui)`
|
|
264
264
|
color: ${e=>e.theme.colors.primary};
|
|
265
265
|
width: ${i.sp3};
|
|
266
266
|
height: ${i.sp3};
|
|
@@ -321,11 +321,11 @@ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc a
|
|
|
321
321
|
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
322
322
|
margin-bottom: ${e=>E.totalMarginBottom.valuePx(e.windowSize)};
|
|
323
323
|
justify-content: space-between;
|
|
324
|
-
`,
|
|
324
|
+
`,_a=n(bn)`
|
|
325
325
|
display: flex;
|
|
326
326
|
width: 176px;
|
|
327
327
|
color: ${e=>e.theme.colors.primary};
|
|
328
|
-
`,
|
|
328
|
+
`,Va=n(fn)`
|
|
329
329
|
display: flex;
|
|
330
330
|
width: calc(100% - 176px);
|
|
331
331
|
justify-content: flex-end;
|
|
@@ -387,11 +387,11 @@ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc a
|
|
|
387
387
|
margin-right: ${i.sp2};
|
|
388
388
|
width: ${i.sp3};
|
|
389
389
|
height: ${i.sp3};
|
|
390
|
-
`,
|
|
390
|
+
`,Ya=n.div`
|
|
391
391
|
display: flex;
|
|
392
392
|
flex-direction: column;
|
|
393
393
|
width: ${e=>E.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
394
|
-
`,
|
|
394
|
+
`,Ja=n.div`
|
|
395
395
|
display: flex;
|
|
396
396
|
width: 100%;
|
|
397
397
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
@@ -407,7 +407,7 @@ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc a
|
|
|
407
407
|
margin-top: ${e=>E.marginTop.valuePx(e.windowSize)};
|
|
408
408
|
`,Qa=n.div`
|
|
409
409
|
padding: ${i.sp2} ${i.sp8} ${i.sp0} ${i.sp6};
|
|
410
|
-
`,Xa={total:new hi("largeMedium","h6Medium")},Q={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])},tt=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,er=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:d,showSkipAutoFill:p,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,totalAmount:v,defaultCurrency:f,hasDuplicateLine:l,bankAccounts:k,fileRequiredLineIds:w,companyMileageConfigInfo:s,analytics:y,reimbursementId:S,currencyConversionStatus:O,setShowSkipAutoFill:I,setShowBankAccountPage:P,removeDuplicateReimbursementForLine:q,onReceiptsUpload:L,setCurrentLineIdForUpload:D,onDuplicateLineClick:z,setUploadedReceiptPayload:ee,removeFileFromLine:ie,onReplaceClick:ne,updateInvoiceUploadFetchState:
|
|
410
|
+
`,Xa={total:new hi("largeMedium","h6Medium")},Q={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])},tt=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,er=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:d,showSkipAutoFill:p,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,totalAmount:v,defaultCurrency:f,hasDuplicateLine:l,bankAccounts:k,fileRequiredLineIds:w,companyMileageConfigInfo:s,analytics:y,reimbursementId:S,currencyConversionStatus:O,setShowSkipAutoFill:I,setShowBankAccountPage:P,removeDuplicateReimbursementForLine:q,onReceiptsUpload:L,setCurrentLineIdForUpload:D,onDuplicateLineClick:z,setUploadedReceiptPayload:ee,removeFileFromLine:ie,onReplaceClick:ne,updateInvoiceUploadFetchState:J,clearTentativeNameForLine:G,onDeleteBankAccount:F,uncategorizedAccounts:Z,isSignedInUserReimbursementCreator:H,duplicateLineByLineId:A,showTotalAmountLoader:oe,scrollContainerRef:se})=>{const{control:U,formState:{errors:ue}}=ot(),{fields:Ee,append:me,remove:ye}=bo({name:bi,control:U}),ce=Ee,je=$.useRef(null),Oe=N=>{setTimeout(()=>{ye(N)})},{tentativeMerchantNameByLineId:Pe,remiStage:pe,remiStatus:Le}=e,he=!H||pe==="pending_approval"&&Le!=="rejected"&&o||pe==="pending_approval"&&Le==="rejected",ve=he?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:k,Ge=ve.map(N=>N.bankAccountId),h=Ae(),ae=Q.largeLabelWidth.value(h),at=e.whatForSection.reportTitle,Ve=e.accountList.accounts,Re=e.accountsHierarchyList,Ye=e.classHierarchyList,ze=e.classList.classes,He=e.merchantList.merchants,Ke=e.addRemiAutoFieldsByLineId,Je=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(N=>Number(N)),0),Ze=()=>{const N=ce[ce.length-1],de=Rn(ce.length,Number(N.lineId)>Je?String(Number(N.lineId)+1):String(Je+1),Re,Ye,He,f,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{me(de,{shouldFocus:!1})}),D(Number(de.lineId)),I(!0),setTimeout(()=>zi(je.current,se?.current),50)},[re,rt]=$.useState({}),mt=$.useCallback(N=>{const de=re[`L${N}`];de!=null&&zi(de,se?.current)},[re,se]),Qe=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,_=e.reimbursementInfo?.paymentDate!=null?nt(vn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,pt=e.reimbursementInfo?.expectedDepositDate??_;return t.jsxs(or,{windowSize:h,showSkipAutoFill:p,children:[ce.map((N,de)=>t.jsx(Pa,{removeDuplicateReimbursementForLine:q,onDuplicateLineClick:z,scrollToSection:mt,setRefByLineId:rt,duplicateLineByLineId:A,reimbursementId:S,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:Z,progressSectionObj:Qe,createDate:e.createTime,paymentDate:pt,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:ce.length-1===de||de===0,index:de,reimbursementSectionRef:je,remiStage:pe,remiStatus:Le,authParams:r,file:N.file,uploadInvoiceEndPoint:d,showSkipAutoFill:p,lineData:N,currencyConversionState:O[N.lineId],recommendationFetchState:e.lineDetailSection[N.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:D,setUploadedReceiptPayload:ee,onReplaceClick:ne,onReceiptsUpload:L,removeFileFromLine:ie,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,reportTitle:at,accountList:Ve,classList:ze,merchantList:He,autoFieldsByLineId:Ke,onRemoveReimbursement:Oe,onAddReimbursement:Ze,totalAmount:v,showTotalAmountLoader:oe,hasDuplicateLine:l,totalNumberOfLines:ce.length,updateInvoiceUploadFetchState:J,clearTentativeNameForLine:G,tentativeMerchantName:Pe[N.lineId],companyMileageConfigInfo:s,defaultCurrency:f,setShowBankAccountPage:P,paymentTo:e.paymentTo,bankAccounts:ve,onDeleteBankAccount:F,analytics:y,fileRequiredLineIds:w,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:he,accountsHierarchyList:Re,classHierarchyList:Ye,isSignedInUserReimbursementCreator:H},N.lineId)),ce.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(Zt,{children:[h!=="small"?t.jsx(Yt,{windowSize:h}):null,t.jsx(Jt,{windowSize:h,children:t.jsxs(ar,{windowSize:h,children:[t.jsx(rr,{children:tt.total}),oe?t.jsx(sr,{windowSize:h,children:t.jsx(cr,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(hn,{amount:Cn(v,Ri.currencyCode,Ri.currencySymbol),integerStyles:Lt.h6Regular.cssObject,decimalStyles:Lt.standardRegular.cssObject})]})})]}),t.jsxs(Zt,{children:[h!=="small"?t.jsx(Yt,{windowSize:h}):null,t.jsx(Jt,{windowSize:h,children:t.jsxs(dr,{windowSize:h,onClick:()=>{he===!1&&Ze()},isDisabled:he,"data-testid":K("add-reimbursement-container"),children:[t.jsx(_i,{}),t.jsx(Ui,{children:tt.addReimbursement})]})})]}),t.jsxs(Zt,{children:[h!=="small"?t.jsx(Yt,{windowSize:h}):null,H?t.jsxs(Jt,{windowSize:h,children:[t.jsx(lr,{windowSize:h,children:tt.receivePaymentTo}),t.jsx(nr,{windowSize:h,shouldDisplay:ve.length>0,children:t.jsx(gn,{label:{label:tt.yourBankAccount,width:ae},style:{width:"auto"},singleSelectField:{singleSelect:{name:bt,placeholder:it(tt.yourBankAccount),showValueEyeIcon:!he,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:F,getTooltipInfo:N=>On(ve,N),onClickCreateBankAccount:()=>P(!0),getLabelForId:N=>Ln(ve,N),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:he?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:Ge},registerOptions:{required:!0,validate:N=>!!N.selectedOption}},isFunctional:!0})}),t.jsxs(ur,{shouldDisplay:ve.length===0,windowSize:h,onClick:()=>{he===!1&&P(!0)},hasError:Te(ue,bt),isDisabled:he,"data-testid":K("remi-add-bank-account-container"),children:[t.jsx(_i,{}),t.jsx(Ui,{children:tt.addBankAccount})]})]}):null]})]})]})},Rn=(e,o,r,d,p,C,m,v)=>{const f=tr(r,d,p,C,m,v);return{lineIndex:e,lineId:o,reimbursementType:tt.outOfPocketKey,file:void 0,outOfPocket:f,mileage:ir(d,C,v)}},tr=(e,o,r,d,p,C)=>({transactionDate:void 0,class:{allOptions:_e(qe(o,[])),selectedOption:C},account:{allOptions:_e(zt(e,[])),selectedOption:void 0},amount:{amount:0,currencyCode:d.currencyCode,currencySymbol:d.currencySymbol,currency:{allOptions:p.map(m=>({label:`${m.currencyCode} - ${m.currency}`,value:m.currencyCode,countryCode:ci(m.countryCode)})),selectedOption:d.currencyCode??we.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}),ir=(e,o,r)=>({transactionDate:void 0,class:{allOptions:_e(qe(e,[])),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:o.currencyCode,currencySymbol:o.currencySymbol},memo:void 0}),nr=n.div`
|
|
411
411
|
margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
|
|
412
412
|
margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
|
|
413
413
|
margin-bottom: ${e=>Q.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
@@ -415,9 +415,9 @@ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc a
|
|
|
415
415
|
border-radius: ${i.sp2};
|
|
416
416
|
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
417
417
|
display: ${e=>e.shouldDisplay?"inherit":"none"};
|
|
418
|
-
`,Jt=n.div`
|
|
419
|
-
width: ${e=>e.windowSize==="small"?"100%":"42%"};
|
|
420
418
|
`,Yt=n.div`
|
|
419
|
+
width: ${e=>e.windowSize==="small"?"100%":"42%"};
|
|
420
|
+
`,Jt=n.div`
|
|
421
421
|
width: ${e=>e.windowSize==="small"?"100%":"58%"};
|
|
422
422
|
`,or=n.div`
|
|
423
423
|
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
@@ -497,14 +497,14 @@ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc a
|
|
|
497
497
|
margin-bottom: ${e=>Q.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
498
498
|
`,Ui=n(Ft)`
|
|
499
499
|
color: inherit;
|
|
500
|
-
`,
|
|
500
|
+
`,_i=n(wn)`
|
|
501
501
|
margin-right: ${i.sp2};
|
|
502
502
|
width: ${i.sp3};
|
|
503
503
|
height: ${i.sp3};
|
|
504
504
|
`,Zt=n.div`
|
|
505
505
|
display: flex;
|
|
506
506
|
width: 100%;
|
|
507
|
-
`,Fe={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])},
|
|
507
|
+
`,Fe={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])},Vi="userBankAccountPage",Pt="bankAccountSection",mr=e=>({[Pt]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName}}),Hi=e=>`${e}_form`,pr=({bankAccountCreationState:e,setShowBankAccountPage:o,plaidConnectionDetails:r,onFetchLinkTokenClick:d,onEstablishConnectionClick:p,bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,isDisabled:v,onSaveHandler:f,onUserBankDetailsUpdated:l,onFetchBankName:k,onBackClick:w})=>{const s=ft(),y=Ae(),S=an({mode:"onBlur",reValidateMode:"onChange",defaultValues:$.useMemo(()=>mr(C),[C])}),O=$.useCallback(G=>{p?.(G),w()},[w,p]),I=r.link_account_no_microdeposit,{open:P}=wo({token:I.linkToken??null,onSuccess:O});$.useEffect(()=>{(nt(new Date().toISOString()).isAfter(I.expiration)||I.linkToken==null)&&d?.("link_account_no_microdeposit")},[]);const[q,L]=$.useState(!1),D=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,z=we.getLocalizedStrings().common.footer,ee={onOkClick:()=>{L(!1),S.reset(),w()},onCancelClick:()=>{L(!1)}},ie=async(G,F)=>{const Z=F[Pt].bankRoutingNumber;l(F),G===`${Pt}.bankRoutingNumber`&&Z?.length===9&&Io.test(Z)===!0&&k?.(Z)};$.useEffect(()=>{const G=S.watch((F,{name:Z})=>{Z!=null&&F!=null&&xo(()=>ie(Z,F))});return()=>{G.unsubscribe()}}),$.useEffect(()=>{e?.fetchState==="Completed"&&w()},[e?.fetchState,w,o]);const ne=S.handleSubmit(G=>{m.fetchState!=="In-Progress"&&f()}),J=s.mode==="light"?new ji(s.colors.brandColorJadeLight):new ji(s.colors.brandColorJadeDark);return t.jsxs(hr,{children:[t.jsxs(Sr,{windowSize:y,children:[q===!0?t.jsx(si,{titleComponent:t.jsx(cn,{children:D.discardTitle}),descriptionComponent:t.jsx(sn,{children:D.discardDescription}),primaryButtonText:D.buttons.delete,secondaryButtonText:D.buttons.cancel,action:ee}):null,t.jsx(_o,{header:D.addBankAccount,isDirty:S.formState.isDirty,onBackClick:w,setShowConfirmationPopup:L}),t.jsx(gr,{}),t.jsxs($r,{size:y,children:[t.jsx(So,{onClick:()=>{S.reset(),P()},title:D.connectYourBank,subTitle:D.loginToBank,header:D.setupAchPayments,icon:{element:t.jsx($o,{width:Fe.iconWidthHeight.valuePx(y),height:Fe.iconWidthHeight.valuePx(y)}),color:J},style:{width:"unset",rowGap:y==="small"?i.sp2:void 0}}),t.jsxs(yr,{windowSize:y,children:[t.jsx(br,{}),t.jsx(wr,{children:t.jsx(xr,{children:D.or})})]}),t.jsx(fr,{windowSize:y,children:D.saveAccountManually})]}),t.jsx(vr,{size:y,children:t.jsx(ln,{...S,children:t.jsxs("form",{id:Hi(Vi),onSubmit:ne,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(Vo,{warningText:D.accountExistWarning}):null,t.jsx(Uo,{bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,sectionId:Pt})]})})})]}),t.jsx(un,{formId:Hi(Vi),primaryBtn:{label:D.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Fe.buttonWidth.value(y)},isDisabled:v!=null},cancelBtn:{label:z.cancel,style:{width:Fe.buttonWidth.value(y)},shouldResetOnCancel:!1,onClick:()=>{S.formState.isDirty?L(!0):(L(!1),S.reset(),w())}}})]})},hr=n.div`
|
|
508
508
|
display: flex;
|
|
509
509
|
flex-direction: column;
|
|
510
510
|
width: 100%;
|
|
@@ -547,7 +547,7 @@ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc a
|
|
|
547
547
|
padding-left: ${e=>Fe.paddingLeft.valuePx(e.size)};
|
|
548
548
|
padding-right: ${e=>Fe.paddingRight.valuePx(e.size)};
|
|
549
549
|
padding-bottom: ${i.sp3};
|
|
550
|
-
`,De={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:Ki}=we.getLocalizedStrings().common,fe=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,qi=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(
|
|
550
|
+
`,De={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:Ki}=we.getLocalizedStrings().common,fe=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,qi=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(Yi,{});case"In-Progress":return t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(An,{});default:return t.jsx(Yi,{})}},Cr=e=>{switch(e){case"Not-Started":return fe.detectDuplicates;case"In-Progress":return fe.detectingDuplicates;case"Completed":return fe.noDuplicatesFound;default:return fe.detectDuplicates}},kr=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:r,numberOfDuplicateLines:d,setShowDuplicatePopup:p,analytics:C,reimbursementId:m,submitReport:v,fetchDuplicateReimbursement:f,clearDuplicateReimbursementDetail:l,clearRemiSaveStatus:k})=>{const w=Ae(),[s,y]=Ct.useState(!0),S=ri(e),O=ri(o);Ct.useEffect(()=>{setTimeout(()=>{s&&(y(!1),o==="Not-Started"&&f())},2e3)},[o,f,s]),Ct.useEffect(()=>{S==="In-Progress"&&e==="Completed"&&(l(),p(!1))},[e,S,p,l]),Ct.useEffect(()=>{O==="In-Progress"&&o==="Completed"&&!r&&v()},[O,o,r,v]);const I=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[I?t.jsx(Ir,{size:w}):null,t.jsx(si,{action:{onOkClick:()=>{I?(l(),e==="Error"&&k(),y(!0)):(C?.trackReimbursementReviewDuplicateReportReimbursement(d,m),p(!1),po())},onCancelClick:()=>{I?(l(),e==="Error"&&k(),p(!1)):(C?.trackReimbursementSubmitAnywayDuplicateReimbursement(d,m),v())}},shouldClickAway:I,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:I?Ki.resubmit:fe.primaryButtonText,secondaryButtonText:I?Ki.cancel:fe.secondaryButtonText,primaryButtonWidth:I?De.cancelButtonWidth.value(w):De.submitButtonWidth.value(w),secondaryButtonWidth:I?De.cancelButtonWidth.value(w):De.submitButtonWidth.value(w),descriptionComponent:t.jsx(jr,{size:w,children:t.jsxs(Dr,{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(An,{}),t.jsx(Qt,{isDisabled:!1,children:s?fe.reviewingExpenses:fe.reviewedAllExpenses})]}),r||o==="Error"?t.jsxs(Zi,{size:w,children:[t.jsx(Gi,{}),t.jsx(Ji,{children:o==="Error"?fe.failedToDetect:`${d} ${fe.duplicateExpensesFound}`})]}):t.jsxs(Xt,{isDisabled:o==="Not-Started",isSuccess:o==="Completed"&&d===0,children:[t.jsx(qi,{fetchState:o}),t.jsx(Qt,{isDisabled:o==="Not-Started",children:Cr(o)})]}),e==="Error"?t.jsxs(Zi,{size:w,children:[t.jsx(Gi,{}),t.jsx(Ji,{children:fe.failedToSubmit})]}):r||o==="Error"?null:t.jsxs(Xt,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(qi,{fetchState:e}),t.jsx(Qt,{isDisabled:e==="Not-Started",children:e==="Not-Started"?fe.submitReport:fe.submittingReport})]})]})}),titleComponent:t.jsx(Tr,{size:w,children:fe.title}),showFooter:r||I,containerStyle:{width:De.containerWidth.value(w),maxWidth:"unset"}})]})},Ir=n(pn)`
|
|
551
551
|
width: ${i.sp4};
|
|
552
552
|
height: ${i.sp4};
|
|
553
553
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -564,7 +564,7 @@ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc a
|
|
|
564
564
|
height: ${i.sp4};
|
|
565
565
|
min-width: ${i.sp4};
|
|
566
566
|
color: ${j.brandColorGoldDark};
|
|
567
|
-
`,
|
|
567
|
+
`,Yi=n(Ho)`
|
|
568
568
|
width: ${i.sp3};
|
|
569
569
|
height: ${i.sp3};
|
|
570
570
|
min-width: ${i.sp3};
|
|
@@ -572,7 +572,7 @@ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc a
|
|
|
572
572
|
`,Qt=n.div`
|
|
573
573
|
color: ${e=>e.isDisabled?e.theme.colors.grey2:e.theme.colors.primary};
|
|
574
574
|
text-align: left;
|
|
575
|
-
`,
|
|
575
|
+
`,Ji=n.div`
|
|
576
576
|
color: ${j.brandColorGoldDark};
|
|
577
577
|
`,Xt=n.div`
|
|
578
578
|
display: flex;
|
|
@@ -616,7 +616,7 @@ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc a
|
|
|
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:b,bulkActions:Qi}},common:{currency:{currencyCode:Ne,currencySymbol:jt},texts:{comments:Or},strings:{empty:Pr}},collaboration:{threads:{placeholder:{addANewComment:Lr,replyAComment:Rr},tooltip:{resolveComment:Ar,unResolveComment:zr}}},dateFormat:Xi}=we.getLocalizedStrings(),en="editReimbursementDetailPage",tn=e=>`${e}_form`,Br=(e,o,r,d,p,C,m,v,f)=>{const l=e.outOfPocket,k=e.mileage,w=l.merchant,s=l.recommendations;return{lineIndex:C,lineId:e?.lineId??String(C+1),reimbursementType:e?.type??b.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:Ve(qe(r,[])),selectedOption:l?.lineDetail?.class?.classId??f},account:{allOptions:Ve(zt(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:v.map(y=>({label:`${y.currencyCode} - ${y.currency}`,value:y.currencyCode,countryCode:ci(y.countryCode)})),selectedOption:l?.currencyCode??m.currencyCode??Ne}},memo:l?.description??void 0,merchant:{allOptions:d.map(y=>y.id).filter(y=>!!y),selectedOption:w?.id?w?.id:w?.name?w?.name:e?.lineId!=null?p[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:Ve(qe(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}}},ei=(e,o,r)=>{const d=[];return Object.values(e.lineDetailSection).forEach((p,C)=>{p?.lineId!=null&&d.push(Br(p,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,C,o,e.allCurrencies,e.loggedInUserDepartmentId))}),d.length===0&&d.push(Rn(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[At]:{reportTitle:e.whatForSection.reportTitle},[bi]:d,[bt]:{selectedOption:e.paymentTo,allOptions:r.map(p=>p.bankAccountId)}}},ti=(e,o)=>{const r=d=>d.lineId==null||o[d.lineId]?.fetchState==="In-Progress"?0:(o[d.lineId]?.fetchState,d.type===b.mileageKey?d?.mileage?.amount??0:d?.outOfPocket?.currencyCode!==Ne&&d.homeCurrencyConversions?.amount!==d?.outOfPocket?.amount?d.homeCurrencyConversions?.amount??0:d?.outOfPocket?.amount??0);return Object.values(e).reduce((d,p)=>d+r(p),0)},ii=(e,o,r,d,p,C,m,v)=>{const f={};return e.lineInfo.forEach(l=>{const k=v.find(O=>O.classId===l.mileage.class.selectedOption),w=m.find(O=>O.qboId===l.outOfPocket.account.selectedOption||O.accountId===l.outOfPocket.account.selectedOption),s=v.find(O=>O.classId===l.outOfPocket.class.selectedOption),y=o.find(O=>O.id===l.outOfPocket.merchant.selectedOption),S=C.find(O=>O.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;f[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?nt(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??S,currencySymbol:l.mileage.amount?.currencySymbol??S,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:w},transactionDate:l.outOfPocket.transactionDate!=null?nt(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??S,currencySymbol:S,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:y?.id??"",name:y?.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:f,totalAmount:{amount:d,...r},currencyConversionStateByLineId:p,paymentTo:e.paymentTo.selectedOption}},Fl=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:d,uploadInvoiceEndPoint:p,isReimbursementCommentingEnabled:C,isUserAdmin:m,analytics:v,reimbursementId:f,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:w,bankAccounts:s,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:S,bankAccountToCreate:O,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:P,onFetchBankName:q,onSaveBankAccount:L,fetchDuplicateReimbursement:D,clearDuplicateReimbursementDetail:z,clearRemiSaveStatus:ee,removeDuplicateReimbursementForLine:ie,onDuplicateLineClick:ne,onExistingMerchantChange:Y,onNewMerchantChange:G,onReceiptsUpload:F,saveRemiDetails:Z,submitRemiDetails:H,discardReimbursementDetailsFromLocalStore:A,onReimbursementDetailsChanged:oe,updateReimbursementType:se,onHomeCurrencyConversionUpdate:U,redirectToReimbursementListScreen:ue,redirectToReimbursementDetailScreen:Ee,deleteReimbursement:me,removeFileFromLine:ye,onZeniLogoClick:ce,onAmountChanged:je,updateInvoiceUploadFetchState:Oe,clearTentativeNameForLine:Pe,onAddNewRule:pe,onFetchLinkTokenClick:Le,onEstablishConnectionClick:he,deleteBankAccount:ve,onBackClickFromBankAccountPage:Ge})=>{const h=$.useRef(null),ae=$.useRef(null),at=ri(e.uploadStatus),_e=ft(),Re=wt(),[Je,ze]=$.useState(!1),[He,Ke]=$.useState(!1),[Ye,Ze]=$.useState("save"),[re,rt]=$.useState(ti(e.lineDetailSection,e.currencyConversionStatus)),[mt,Qe]=$.useState(!1),[V,pt]=$.useState(null),[N,de]=$.useState(!1),St=`dashboard_${Re.currentTenant?.companyId}`,Ce=an({mode:"all",reValidateMode:"onChange",defaultValues:$.useMemo(()=>ei(e,r,s),[e,r,s]),values:$.useMemo(()=>ei(e,r,s),[e,r,s]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:B,dirtyFields:zn}=Ce.formState,Bn=async(g,T)=>{const{lineInfo:u}=T,x=Number(g.split(".")[1]);if(g.includes("reportTitle")||g.includes("memo"))return;if(g.includes("reimbursementType")){const M=u[x].mileage,W=u[x].outOfPocket;u[x]={...u[x],outOfPocket:{transactionDate:W.transactionDate??void 0,class:{allOptions:W.class.allOptions??Ve(qe(e.classHierarchyList,[])),selectedOption:W.class.selectedOption??void 0},account:{allOptions:W.account.allOptions??Ve(zt(e.accountsHierarchyList,[])),selectedOption:W.account.selectedOption??void 0},amount:W.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(xe=>({label:`${xe.currencyCode} - ${xe.currency}`,value:xe.currencyCode,countryCode:ci(xe.countryCode)})),selectedOption:r.currencyCode??Ne}},memo:W.memo??void 0,merchant:W.merchant??void 0,recommendations:W.recommendations??[],recommendedAccount:W.recommendedAccount??void 0,isCategoryUpdateSelected:W.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:W.isCategoryFirstTimeAutofilled??!1,retainedAccount:W.retainedAccount??void 0,isRetainedCategorySelected:W.isRetainedCategorySelected??!1},mileage:{transactionDate:M.transactionDate??void 0,class:{allOptions:M.class.allOptions??Ve(qe(e.classHierarchyList,[])),selectedOption:M.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:M.distanceInMiles,amount:{amount:M?.amount?.amount??0,currencyCode:M?.amount?.currencyCode??Ne,currencySymbol:M?.amount?.currencySymbol??jt},memo:M.memo??void 0}}}else if(g.includes("mileage.distanceInMiles")){const{distanceInMiles:M}=u[x].mileage,W=d?.mileageUnitAmount??0;u[x].mileage={...u[x].mileage,amount:{amount:M!=null?M*W:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(g.includes("outOfPocket.amount")&&u[x].lineId){const M=u[x].outOfPocket.amount,W=e.allCurrencies.find(xe=>xe.currencyCode===M?.currency.selectedOption)?.currencySymbol;if(M?.currencyCode!==M?.currency.selectedOption){const xe=M?.currency?.allOptions||[];u[x].outOfPocket.amount={currency:{allOptions:xe,selectedOption:M?.currency?.selectedOption},amount:u[x].outOfPocket?.amount?.amount??0,currencyCode:M?.currency.selectedOption??Ne,currencySymbol:W??jt}}if(M?.currency.selectedOption!==Ne)Qe(!0),_n(u[x].lineId,Ne);else{const xe={};u.forEach(Gt=>{xe[Gt.lineId]={lineId:Gt.lineId,homeCurrencyConversions:Gt.homeCurrencyConversions}}),u[x].homeCurrencyConversions={amount:M.amount??0,currencyCode:M?.currency.selectedOption??Ne,currencySymbol:W??jt};const ki=ti(xe,e.currencyConversionStatus);re!==ki&&rt(ki)}}else if(g.includes("outOfPocket.isRetainedCategorySelected"))u[x].outOfPocket.isRetainedCategorySelected===!0&&(u[x].outOfPocket.isCategoryUpdateSelected=!1,u[x].outOfPocket.account.selectedOption=u[x].outOfPocket.retainedAccount?.qboId);else if(g.includes("outOfPocket.isCategoryUpdateSelected"))if(u[x].outOfPocket.isCategoryUpdateSelected===!0)u[x].outOfPocket.account.selectedOption=u[x].outOfPocket.recommendedAccount?.qboId,u[x].outOfPocket.isRetainedCategorySelected=!1;else{const M=u[x].lineId,W=e.editRemiInitialDetails.lineDetailSection[M]?.lineDetail?.account?.qboId;u[x].outOfPocket.account.selectedOption=W,u[x].outOfPocket.isRetainedCategorySelected=!1}else g.includes("outOfPocket.account")&&(u[x].outOfPocket.recommendations.length>0&&(u[x].outOfPocket.recommendedAccount=u[x].outOfPocket.recommendations[0].account),u[x].outOfPocket.recommendedAccount?.qboId!=null&&u[x].outOfPocket.account.selectedOption===u[x].outOfPocket.recommendedAccount?.qboId?u[x].outOfPocket.isCategoryUpdateSelected=!0:u[x].outOfPocket.isCategoryUpdateSelected=!1,u[x].outOfPocket.retainedAccount?.qboId!=null&&u[x].outOfPocket.account.selectedOption===u[x].outOfPocket.retainedAccount?.qboId?u[x].outOfPocket.isRetainedCategorySelected=!0:u[x].outOfPocket.isRetainedCategorySelected=!1,u[x].outOfPocket.isCategoryFirstTimeAutofilled=!1);const vt=ii({...T,lineInfo:u},e.merchantList.merchants,r,re,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(oe?.(vt),g.includes("outOfPocket.merchant")){const M=u[x].lineId,W=u[x].outOfPocket.merchant.selectedOption??"";u[x].outOfPocket.merchant.allOptions.find(xe=>xe===W)!=null?Y(W,M):G(W,M)}},fi=$.useMemo(()=>Ii((g,T)=>Bn(g,T),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);$.useEffect(()=>{const g=Ce.watch((T,{name:u})=>{u!=null&&T!=null&&fi(u,T)});return()=>{g.unsubscribe()}},[fi,Ce]),$.useEffect(()=>{const g=Fo(Object.values(e.currencyConversionStatus)),T=g.fetchState==="In-Progress"||g.fetchState==="Error";Qe(T)},[e.currencyConversionStatus]),$.useEffect(()=>{for(const T in e.currencyConversionStatus){const u=e.lineDetailSection[T],x=e.lineDetailSection[T];e.currencyConversionStatus[T].fetchState==="Completed"&&x!=null&&u.type!==b.mileageKey&&!rn(u?.homeCurrencyConversions,x.homeCurrencyConversions)&&U({amount:u?.homeCurrencyConversions?.amount??0,currencyCode:u?.homeCurrencyConversions?.currencyCode??Ne,currencySymbol:u?.homeCurrencyConversions?.currencySymbol??jt},T,f)}const g=ti(e.lineDetailSection,e.currencyConversionStatus);re!==g&&rt(g)},[e.currencyConversionStatus,e.lineDetailSection]),$.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(A(f),ue?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,f,A,ue]);const R=Ae(),[Be,ht]=$.useState(f==null),[gt,Mn]=$.useState(1),[Fn,Et]=$.useState(!1),[En,Nn]=$.useState(""),[Nt,Wn]=$.useState(null),[Un,lt]=$.useState(!1),[Vn,wi]=$.useState(!1),[Wt,Ut]=$.useState([]),[be,$t]=$.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),_n=$.useRef(Ii((g,T)=>je(g,T),500,{trailing:!0})).current;$.useEffect(()=>{at==="In-Progress"&&(e.uploadStatus==="Completed"?(Ce.reset(ei(e,r,s),{keepDefaultValues:!0}),ze(!1),ht(!1)):e.uploadStatus==="Error"&&ze(!1))},[at,e.uploadStatus,Ce,e,Je,ze,Be,r,s,v]),$.useEffect(()=>{e.uploadStatus==="In-Progress"&&Be===!1&&ze(!0)},[e.uploadStatus,ze,Be]);const Vt=e.remiStage==="draft"?b.newReimbursementTitle:b.editReimbursementTitle,Hn={onOkClick:()=>{if(lt(!1),be.primaryButtonText===b.buttons.discard)A(f),e.remiStage==="draft"?ue?.():Ee?.();else if(be.primaryButtonText===b.buttons.delete)be.title===b.deleteBankAccountTitle?ve?.(En):me?.();else if(be.primaryButtonText===b.buttons.yes&&Nt!=null){const g=Wt.filter(T=>T!==gt.toString());Ut(g),F(Nt,gt,!0)}},onCancelClick:()=>{if(lt(!1),be.secondaryButtonText===b.buttons.no){const g=Wt.filter(T=>T!==gt.toString());Ut(g),F(Nt,gt,!1)}}},xi=()=>{B||yo(zn)?($t({title:b.discardTitle,description:b.discardDescription,primaryButtonText:b.buttons.discard,secondaryButtonText:b.buttons.cancel}),lt(!0)):(A(f),ue?.())},Kn=()=>{$t({title:e.remiStage==="draft"?b.deleteDraftTitle:b.deleteReportTitle,description:b.deleteAlertDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),lt(!0)},qn=g=>{Nn(g),$t({title:b.deleteBankAccountTitle,description:b.deleteBankAccountDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),lt(!0)},Gn=()=>{$t({title:b.overwriteTitle,description:b.overwriteDescription,primaryButtonText:b.buttons.yes,secondaryButtonText:b.buttons.no}),lt(!0)},Jn=()=>{let g=!0;const T=[];return Object.values(e.lineDetailSection).forEach((u,x)=>{u.type===b.outOfPocketKey&&jn(u)>=75&&u.file==null&&(T.push(u.lineId),g=!1)}),Ut(T),g},Si=()=>{if(m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")xi();else{Ze("save");const g=Ce.getValues(),T=ii(g,e.merchantList.merchants,r,re,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);oe?.(T);const u=T.whatForSection?.reportTitle;u!=null&&u.length>0?Z(e.remiStatus==="rejected"?"pending_approval":"draft"):Ce.trigger(`${At}.reportTitle`,{shouldFocus:!0})}};let _t=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(g=>{g.length>0&&(_t=!0)});let $i=[];if(e.remiId==null){const g=re??0;g>0&&($i=e.approvalRules.allApprovalRules?.filter(T=>{const u=T.criteria[0].range;if(u.max!=null){if(u.min.amount<g&&u.max.amount>=g)return T}else if(u.min.amount<g)return T;return null}).map(T=>({...T,stepsWithStatus:T.steps.map(u=>({...u,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const Yn=g=>{const T=Jn();return Ce.handleSubmit(()=>{T&&(Ze("submit"),v?.trackReimbursementSubmitReimbursement(e.createTime?.format(Xi.analytics.MMMDashDDDashYYYYFormat)??yi().format(Xi.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,re,f),z(),wi(!0))})(g)},Zn=()=>{const g=Ce.getValues(),T=ii(g,e.merchantList.merchants,r,re,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);oe?.(T),H()},Qn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,Xn=e.reimbursementInfo?.paymentDate!=null?nt(vn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,eo=e.reimbursementInfo?.expectedDepositDate??Xn,to=f!=null&&e.remiStage==="draft",vi=Eo(e.duplicateLineByLineId),Ht=e.duplicateReimbursementStatus.fetchState==="Completed"&&vi>0,{requestToOpenThread:Kt,setRequestToOpenThread:Ci,setOpenThread:qt}=$.useContext(oo),{threads:yt,isLoading:Xe}=ao({application:"dashboard",companyId:Re.currentTenant?.companyId,tab:"reimbursement",entityId:f,isGlobalComment:!1},"both",!1);$.useEffect(()=>{Kt?.threadId!=null&&yt.length>0&&!Xe&&(qt(Kt.threadId),Ci(null))},[Kt,yt,Xe,qt,Ci]);const io=$.useMemo(()=>f==null?[]:yt.filter(g=>g.resolved===!1&&!g.id.includes(ro)),[yt,f]).length,no=(g,T)=>{qt(T);const u=g.entityType.split("."),x=parseInt(u[2]);if(isNaN(x)){de(!1);return}const vt=`${x+1}`,M=e.lineDetailSection[x+1].type;u.includes(b.mileageKey)&&M===b.outOfPocketKey?se(Ai(b.mileageKey),vt,f):u.includes(b.outOfPocketKey)&&M===b.mileageKey&&se(Ai(b.outOfPocketKey),vt,f),de(!1)};return t.jsx(Fr,{ref:h,children:t.jsx(lo,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:ae.current??null}},children:t.jsxs(ln,{...Ce,children:[t.jsx("form",{id:tn(en),onSubmit:g=>Yn(g),children:t.jsxs(pl,{windowSize:R,ref:ae,children:[Un?t.jsx(si,{titleComponent:t.jsx(cn,{children:be.title}),descriptionComponent:t.jsx(sn,{children:be.description}),primaryButtonText:be.primaryButtonText,secondaryButtonText:be.secondaryButtonText,action:Hn,proceedButtonVariant:be.title===b.deleteBankAccountTitle||be.title===b.deleteDraftTitle||be.title===b.deleteReportTitle||be.title===b.discardTitle?"danger":"primary",isEditPopup:be.title===b.deleteBankAccountTitle}):null,Vn?t.jsx(kr,{reimbursementId:f,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:Ht,numberOfDuplicateLines:vi,setShowDuplicatePopup:wi,submitReport:Zn,fetchDuplicateReimbursement:D,clearDuplicateReimbursementDetail:z,clearRemiSaveStatus:ee,analytics:v}):null,Je?t.jsx(on,{windowSize:R}):null,Be?t.jsxs(on,{windowSize:R,"data-testid":K("skip-autofill-section"),children:[R==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Yr,{children:t.jsx(ai,{partOfSkipAutoFill:!0,size:R,onClick:()=>ht(!1),"data-testid":K("close-invoice-upload"),children:t.jsx(oi,{withOverlay:!0,children:t.jsx(ni,{})})})}),t.jsx(Qr,{children:Vt})]}):null,t.jsx(kn,{showAutofill:Be,analytics:v,onSkipAutofill:()=>{v?.trackReimbursementSkipAutofill(),ht(!1)},uploadInvoiceEndPoint:p,authParams:o,style:{width:X.leftSectionWidth.valuePercentage(R),boxSizing:"border-box",backgroundColor:R==="small"?_e.colors.grey4:"unset",padding:R==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:R==="small"?i.sp0:void 0},onInvoiceUpload:g=>F(g,gt,!0),dropFilePlaceholder:{upload:b.dropReceipt.upload,single:b.dropReceipt.single,or:b.dropReceipt.or,multiple:b.dropReceipt.multiple,receipts:b.dropReceipt.receipts},updateInvoiceUploadFetchState:Oe,showInfoText:!1,allowMultiFiles:Be,type:"reimbursement"}),R!=="small"?t.jsx(Zr,{children:t.jsx(ai,{partOfSkipAutoFill:!0,onClick:()=>ht(!1),"data-testid":K("close-invoice-upload"),children:t.jsx(oi,{withOverlay:!0,children:t.jsx(ni,{})})})}):null]}):null,t.jsxs(sl,{windowSize:R,"data-testid":K("edit-reimbursement-detail-page-nav-bar-container"),children:[R!=="small"?t.jsx(Di,{style:{width:"42%"},"data-testid":K("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(cl,{"data-testid":K("zeni-logo-spend-management-reimbursement-detail-page"),onClick:ce}),enableTitleOnScroll:!1,scrollableContent:h,backgroundColor:_e.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,R!=="small"?t.jsx(Er,{}):null,t.jsx(Di,{style:{width:X.navBarWidth.valuePercentage(R)},"data-testid":K("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:Vt,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Be!=!0?t.jsxs(dl,{children:[C&&f!=null?t.jsxs(ul,{isDisabled:Xe,"data-testid":K("remi-comment-button"),onClick:Xe?()=>null:g=>{g.preventDefault(),g.stopPropagation(),pt({roomId:St,companyId:Re.currentTenant?.companyId??"",companyName:Re.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:f}),de(!0),v?.trackCommentActivity("reimbursement","clicked",Re.currentTenant?.companyName??"",Re.controllersList.controllers.map(T=>co(T)),void 0,void 0,"page icon")},children:[t.jsx(so,{count:Xe?void 0:io,isLoading:Xe,style:{left:"12px"}}),t.jsx(ml,{})]}):null,t.jsx(ai,{size:R,onClick:()=>xi(),"data-testid":K("close-nav-bar"),children:t.jsx(oi,{withOverlay:!1,children:t.jsx(ni,{})})})]}):null,enableTitleOnScroll:R!=="small",scrollThreshold:64,scrollableContent:h,backgroundColor:_e.colors.grey4})]}),R==="small"?t.jsxs(t.Fragment,{children:[t.jsx(ll,{children:Vt}),t.jsx(uo,{progressSectionObj:Qn,createDate:e.createTime,paymentDate:eo,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:f!=null?!0:e.uploadStatus==="Completed"}),_t&&t.jsxs(tl,{children:[t.jsx(el,{}),t.jsx(il,{children:b.banner})]}),e.isProcessing?t.jsx(dn,{variant:"warning",style:{margin:R==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Qi.duplicateWarning.title,description:Qi.duplicateWarning.description}):Ht?t.jsxs(nl,{size:R,children:[t.jsx(Vr,{}),t.jsxs(al,{children:[t.jsx(ol,{children:b.thereSeems}),t.jsx(rl,{children:b.pleaseFind})]})]}):null,t.jsx(Tn,{isReimbursementCommentingEnabled:C,sectionId:At,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(er,{onDuplicateLineClick:ne,reimbursementId:f,remiDetails:e,uploadInvoiceEndPoint:p,authParams:o,showSkipAutoFill:Be,setShowSkipAutoFill:ht,isReimbursementCommentingEnabled:C,isAutoFieldsExist:_t,totalAmount:re,removeFileFromLine:ye,onReplaceClick:Gn,onReceiptsUpload:F,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Mn,setUploadedReceiptPayload:Wn,updateInvoiceUploadFetchState:Oe,clearTentativeNameForLine:Pe,defaultCurrency:r,companyMileageConfigInfo:d,isUserAdmin:m,setShowBankAccountPage:Et,bankAccounts:s,onDeleteBankAccount:qn,analytics:v,fileRequiredLineIds:Wt,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:S,showTotalAmountLoader:mt,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:Ht,removeDuplicateReimbursementForLine:ie,scrollContainerRef:h}),t.jsxs(hl,{showSkipAutoFill:Be,windowSize:R,children:[R!=="small"?t.jsx(nn,{}):null,t.jsx(gl,{windowSize:R,children:t.jsxs(yl,{windowSize:R,children:[e.remiId!==void 0&&t.jsx(Ti,{amount:re??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:pe,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&re!=null&&re>0?t.jsx(Ti,{amount:re??0,activities:$i,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(bl,{}),t.jsxs(Xr,{showSkipAutoFill:Be,windowSize:R,children:[R!=="small"?t.jsx(nn,{}):null,t.jsx(Nr,{windowSize:R,onClick:g=>{g.stopPropagation(),He===!0&&Ke(!1)},children:t.jsx(un,{formId:tn(en),separatorStyle:{marginRight:i.sp4},showCancel:y,cancelBtn:{label:m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?R==="small"?b.buttons.discard:b.buttons.discardChanges:R==="small"?b.buttons.save:b.buttons.saveChanges,isLoading:Ye==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:Si,style:{width:X.footerButtonWidth.value(R)},reverseSpinnerColor:!1},primaryBtn:{label:Mr(y,m,e,R),isDisabled:!y,style:{width:y?X.footerButtonWidth.value(R):"auto"},type:y?"submit":"button",onClick:y?()=>null:Si,isLoading:!y&&Ye==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Wr,{children:t.jsxs(qr,{windowSize:R,children:[He?t.jsx(mn,{onClickAway:()=>Ke(!1),children:t.jsx(Kr,{windowSize:R,"data-testid":K("remi-other-actions-container"),children:t.jsx(Gr,{onClick:Kn,"data-testid":K("delete-report-action"),children:b.buttons.deleteReport})})}):null,t.jsx(Hr,{windowSize:R,children:to===!0?t.jsx(_r,{windowSize:R,"data-testid":K("more-details-button"),children:t.jsx(Ur,{onClick:()=>Ke(!He)})}):null})]})}),style:{minHeight:62}})})]}),C&&f!=null?t.jsx(Mo,{id:St,children:t.jsx(mo,{isDrawerOpen:N,allowComposer:!0,drawerTitle:Or,threads:yt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:V?.companyId??Pr,isGlobalComment:!1,tab:"reimbursement"},isLoading:Xe,threadMetadata:V?{companyName:V.companyName,companyId:V.companyId,entityId:V.entityId,entityType:V.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:Lr,replyComposerPlaceholder:Rr,threadResolve:Ar,threadUnResolve:zr},onThreadClick:(g,T)=>no(g,T),onCloseAllThreadsDrawer:()=>de(!1),drawerSectionStyle:{width:"400px",backgroundColor:_e.colors.background}})}):null]})}),Fn?t.jsx(Jr,{windowSize:R,children:t.jsx(pr,{bankAccountCreationState:k,setShowBankAccountPage:Et,plaidConnectionDetails:l,onFetchLinkTokenClick:Le,onEstablishConnectionClick:he,onSaveHandler:L,bankAccountToCreate:O,bankNameByRouting:w,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:P,onFetchBankName:q,onBackClick:()=>{Ge(),Et(!1)}})}):null]})})})},Mr=(e,o,r,d)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?b.buttons.resubmit:b.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?d==="small"?b.buttons.discard:b.buttons.discardChanges:d==="small"?b.buttons.save:b.buttons.saveChanges,Fr=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:b,bulkActions:Qi}},common:{currency:{currencyCode:Ne,currencySymbol:jt},texts:{comments:Or},strings:{empty:Pr}},collaboration:{threads:{placeholder:{addANewComment:Lr,replyAComment:Rr},tooltip:{resolveComment:Ar,unResolveComment:zr}}},dateFormat:Xi}=we.getLocalizedStrings(),en="editReimbursementDetailPage",tn=e=>`${e}_form`,Br=(e,o,r,d,p,C,m,v,f)=>{const l=e.outOfPocket,k=e.mileage,w=l.merchant,s=l.recommendations;return{lineIndex:C,lineId:e?.lineId??String(C+1),reimbursementType:e?.type??b.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(qe(r,[])),selectedOption:l?.lineDetail?.class?.classId??f},account:{allOptions:_e(zt(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:v.map(y=>({label:`${y.currencyCode} - ${y.currency}`,value:y.currencyCode,countryCode:ci(y.countryCode)})),selectedOption:l?.currencyCode??m.currencyCode??Ne}},memo:l?.description??void 0,merchant:{allOptions:d.map(y=>y.id).filter(y=>!!y),selectedOption:w?.id?w?.id:w?.name?w?.name:e?.lineId!=null?p[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:_e(qe(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}}},ei=(e,o,r)=>{const d=[];return Object.values(e.lineDetailSection).forEach((p,C)=>{p?.lineId!=null&&d.push(Br(p,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,C,o,e.allCurrencies,e.loggedInUserDepartmentId))}),d.length===0&&d.push(Rn(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[At]:{reportTitle:e.whatForSection.reportTitle},[bi]:d,[bt]:{selectedOption:e.paymentTo,allOptions:r.map(p=>p.bankAccountId)}}},ti=(e,o)=>{const r=d=>d.lineId==null||o[d.lineId]?.fetchState==="In-Progress"?0:(o[d.lineId]?.fetchState,d.type===b.mileageKey?d?.mileage?.amount??0:d?.outOfPocket?.currencyCode!==Ne&&d.homeCurrencyConversions?.amount!==d?.outOfPocket?.amount?d.homeCurrencyConversions?.amount??0:d?.outOfPocket?.amount??0);return Object.values(e).reduce((d,p)=>d+r(p),0)},ii=(e,o,r,d,p,C,m,v)=>{const f={};return e.lineInfo.forEach(l=>{const k=v.find(O=>O.classId===l.mileage.class.selectedOption),w=m.find(O=>O.qboId===l.outOfPocket.account.selectedOption||O.accountId===l.outOfPocket.account.selectedOption),s=v.find(O=>O.classId===l.outOfPocket.class.selectedOption),y=o.find(O=>O.id===l.outOfPocket.merchant.selectedOption),S=C.find(O=>O.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;f[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?nt(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??S,currencySymbol:l.mileage.amount?.currencySymbol??S,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:w},transactionDate:l.outOfPocket.transactionDate!=null?nt(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??S,currencySymbol:S,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:y?.id??"",name:y?.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:f,totalAmount:{amount:d,...r},currencyConversionStateByLineId:p,paymentTo:e.paymentTo.selectedOption}},Fl=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:d,uploadInvoiceEndPoint:p,isReimbursementCommentingEnabled:C,isUserAdmin:m,analytics:v,reimbursementId:f,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:w,bankAccounts:s,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:S,bankAccountToCreate:O,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:P,onFetchBankName:q,onSaveBankAccount:L,fetchDuplicateReimbursement:D,clearDuplicateReimbursementDetail:z,clearRemiSaveStatus:ee,removeDuplicateReimbursementForLine:ie,onDuplicateLineClick:ne,onExistingMerchantChange:J,onNewMerchantChange:G,onReceiptsUpload:F,saveRemiDetails:Z,submitRemiDetails:H,discardReimbursementDetailsFromLocalStore:A,onReimbursementDetailsChanged:oe,updateReimbursementType:se,onHomeCurrencyConversionUpdate:U,redirectToReimbursementListScreen:ue,redirectToReimbursementDetailScreen:Ee,deleteReimbursement:me,removeFileFromLine:ye,onZeniLogoClick:ce,onAmountChanged:je,updateInvoiceUploadFetchState:Oe,clearTentativeNameForLine:Pe,onAddNewRule:pe,onFetchLinkTokenClick:Le,onEstablishConnectionClick:he,deleteBankAccount:ve,onBackClickFromBankAccountPage:Ge})=>{const h=$.useRef(null),ae=$.useRef(null),at=ri(e.uploadStatus),Ve=ft(),Re=wt(),[Ye,ze]=$.useState(!1),[He,Ke]=$.useState(!1),[Je,Ze]=$.useState("save"),[re,rt]=$.useState(ti(e.lineDetailSection,e.currencyConversionStatus)),[mt,Qe]=$.useState(!1),[_,pt]=$.useState(null),[N,de]=$.useState(!1),St=`dashboard_${Re.currentTenant?.companyId}`,Ce=an({mode:"all",reValidateMode:"onChange",defaultValues:$.useMemo(()=>ei(e,r,s),[e,r,s]),values:$.useMemo(()=>ei(e,r,s),[e,r,s]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:B,dirtyFields:zn}=Ce.formState,Bn=async(g,T)=>{const{lineInfo:u}=T,x=Number(g.split(".")[1]);if(g.includes("reportTitle")||g.includes("memo"))return;if(g.includes("reimbursementType")){const M=u[x].mileage,W=u[x].outOfPocket;u[x]={...u[x],outOfPocket:{transactionDate:W.transactionDate??void 0,class:{allOptions:W.class.allOptions??_e(qe(e.classHierarchyList,[])),selectedOption:W.class.selectedOption??void 0},account:{allOptions:W.account.allOptions??_e(zt(e.accountsHierarchyList,[])),selectedOption:W.account.selectedOption??void 0},amount:W.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(xe=>({label:`${xe.currencyCode} - ${xe.currency}`,value:xe.currencyCode,countryCode:ci(xe.countryCode)})),selectedOption:r.currencyCode??Ne}},memo:W.memo??void 0,merchant:W.merchant??void 0,recommendations:W.recommendations??[],recommendedAccount:W.recommendedAccount??void 0,isCategoryUpdateSelected:W.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:W.isCategoryFirstTimeAutofilled??!1,retainedAccount:W.retainedAccount??void 0,isRetainedCategorySelected:W.isRetainedCategorySelected??!1},mileage:{transactionDate:M.transactionDate??void 0,class:{allOptions:M.class.allOptions??_e(qe(e.classHierarchyList,[])),selectedOption:M.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:M.distanceInMiles,amount:{amount:M?.amount?.amount??0,currencyCode:M?.amount?.currencyCode??Ne,currencySymbol:M?.amount?.currencySymbol??jt},memo:M.memo??void 0}}}else if(g.includes("mileage.distanceInMiles")){const{distanceInMiles:M}=u[x].mileage,W=d?.mileageUnitAmount??0;u[x].mileage={...u[x].mileage,amount:{amount:M!=null?M*W:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(g.includes("outOfPocket.amount")&&u[x].lineId){const M=u[x].outOfPocket.amount,W=e.allCurrencies.find(xe=>xe.currencyCode===M?.currency.selectedOption)?.currencySymbol;if(M?.currencyCode!==M?.currency.selectedOption){const xe=M?.currency?.allOptions||[];u[x].outOfPocket.amount={currency:{allOptions:xe,selectedOption:M?.currency?.selectedOption},amount:u[x].outOfPocket?.amount?.amount??0,currencyCode:M?.currency.selectedOption??Ne,currencySymbol:W??jt}}if(M?.currency.selectedOption!==Ne)Qe(!0),Vn(u[x].lineId,Ne);else{const xe={};u.forEach(Gt=>{xe[Gt.lineId]={lineId:Gt.lineId,homeCurrencyConversions:Gt.homeCurrencyConversions}}),u[x].homeCurrencyConversions={amount:M.amount??0,currencyCode:M?.currency.selectedOption??Ne,currencySymbol:W??jt};const ki=ti(xe,e.currencyConversionStatus);re!==ki&&rt(ki)}}else if(g.includes("outOfPocket.isRetainedCategorySelected"))u[x].outOfPocket.isRetainedCategorySelected===!0&&(u[x].outOfPocket.isCategoryUpdateSelected=!1,u[x].outOfPocket.account.selectedOption=u[x].outOfPocket.retainedAccount?.qboId);else if(g.includes("outOfPocket.isCategoryUpdateSelected"))if(u[x].outOfPocket.isCategoryUpdateSelected===!0)u[x].outOfPocket.account.selectedOption=u[x].outOfPocket.recommendedAccount?.qboId,u[x].outOfPocket.isRetainedCategorySelected=!1;else{const M=u[x].lineId,W=e.editRemiInitialDetails.lineDetailSection[M]?.lineDetail?.account?.qboId;u[x].outOfPocket.account.selectedOption=W,u[x].outOfPocket.isRetainedCategorySelected=!1}else g.includes("outOfPocket.account")&&(u[x].outOfPocket.recommendations.length>0&&(u[x].outOfPocket.recommendedAccount=u[x].outOfPocket.recommendations[0].account),u[x].outOfPocket.recommendedAccount?.qboId!=null&&u[x].outOfPocket.account.selectedOption===u[x].outOfPocket.recommendedAccount?.qboId?u[x].outOfPocket.isCategoryUpdateSelected=!0:u[x].outOfPocket.isCategoryUpdateSelected=!1,u[x].outOfPocket.retainedAccount?.qboId!=null&&u[x].outOfPocket.account.selectedOption===u[x].outOfPocket.retainedAccount?.qboId?u[x].outOfPocket.isRetainedCategorySelected=!0:u[x].outOfPocket.isRetainedCategorySelected=!1,u[x].outOfPocket.isCategoryFirstTimeAutofilled=!1);const vt=ii({...T,lineInfo:u},e.merchantList.merchants,r,re,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(oe?.(vt),g.includes("outOfPocket.merchant")){const M=u[x].lineId,W=u[x].outOfPocket.merchant.selectedOption??"";u[x].outOfPocket.merchant.allOptions.find(xe=>xe===W)!=null?J(W,M):G(W,M)}},fi=$.useMemo(()=>Ii((g,T)=>Bn(g,T),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);$.useEffect(()=>{const g=Ce.watch((T,{name:u})=>{u!=null&&T!=null&&fi(u,T)});return()=>{g.unsubscribe()}},[fi,Ce]),$.useEffect(()=>{const g=Fo(Object.values(e.currencyConversionStatus)),T=g.fetchState==="In-Progress"||g.fetchState==="Error";Qe(T)},[e.currencyConversionStatus]),$.useEffect(()=>{for(const T in e.currencyConversionStatus){const u=e.lineDetailSection[T],x=e.lineDetailSection[T];e.currencyConversionStatus[T].fetchState==="Completed"&&x!=null&&u.type!==b.mileageKey&&!rn(u?.homeCurrencyConversions,x.homeCurrencyConversions)&&U({amount:u?.homeCurrencyConversions?.amount??0,currencyCode:u?.homeCurrencyConversions?.currencyCode??Ne,currencySymbol:u?.homeCurrencyConversions?.currencySymbol??jt},T,f)}const g=ti(e.lineDetailSection,e.currencyConversionStatus);re!==g&&rt(g)},[e.currencyConversionStatus,e.lineDetailSection]),$.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(A(f),ue?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,f,A,ue]);const R=Ae(),[Be,ht]=$.useState(f==null),[gt,Mn]=$.useState(1),[Fn,Et]=$.useState(!1),[En,Nn]=$.useState(""),[Nt,Wn]=$.useState(null),[Un,lt]=$.useState(!1),[_n,wi]=$.useState(!1),[Wt,Ut]=$.useState([]),[be,$t]=$.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),Vn=$.useRef(Ii((g,T)=>je(g,T),500,{trailing:!0})).current;$.useEffect(()=>{at==="In-Progress"&&(e.uploadStatus==="Completed"?(Ce.reset(ei(e,r,s),{keepDefaultValues:!0}),ze(!1),ht(!1)):e.uploadStatus==="Error"&&ze(!1))},[at,e.uploadStatus,Ce,e,Ye,ze,Be,r,s,v]),$.useEffect(()=>{e.uploadStatus==="In-Progress"&&Be===!1&&ze(!0)},[e.uploadStatus,ze,Be]);const _t=e.remiStage==="draft"?b.newReimbursementTitle:b.editReimbursementTitle,Hn={onOkClick:()=>{if(lt(!1),be.primaryButtonText===b.buttons.discard)A(f),e.remiStage==="draft"?ue?.():Ee?.();else if(be.primaryButtonText===b.buttons.delete)be.title===b.deleteBankAccountTitle?ve?.(En):me?.();else if(be.primaryButtonText===b.buttons.yes&&Nt!=null){const g=Wt.filter(T=>T!==gt.toString());Ut(g),F(Nt,gt,!0)}},onCancelClick:()=>{if(lt(!1),be.secondaryButtonText===b.buttons.no){const g=Wt.filter(T=>T!==gt.toString());Ut(g),F(Nt,gt,!1)}}},xi=()=>{B||yo(zn)?($t({title:b.discardTitle,description:b.discardDescription,primaryButtonText:b.buttons.discard,secondaryButtonText:b.buttons.cancel}),lt(!0)):(A(f),ue?.())},Kn=()=>{$t({title:e.remiStage==="draft"?b.deleteDraftTitle:b.deleteReportTitle,description:b.deleteAlertDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),lt(!0)},qn=g=>{Nn(g),$t({title:b.deleteBankAccountTitle,description:b.deleteBankAccountDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),lt(!0)},Gn=()=>{$t({title:b.overwriteTitle,description:b.overwriteDescription,primaryButtonText:b.buttons.yes,secondaryButtonText:b.buttons.no}),lt(!0)},Yn=()=>{let g=!0;const T=[];return Object.values(e.lineDetailSection).forEach((u,x)=>{u.type===b.outOfPocketKey&&jn(u)>=75&&u.file==null&&(T.push(u.lineId),g=!1)}),Ut(T),g},Si=()=>{if(m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")xi();else{Ze("save");const g=Ce.getValues(),T=ii(g,e.merchantList.merchants,r,re,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);oe?.(T);const u=T.whatForSection?.reportTitle;u!=null&&u.length>0?Z(e.remiStatus==="rejected"?"pending_approval":"draft"):Ce.trigger(`${At}.reportTitle`,{shouldFocus:!0})}};let Vt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(g=>{g.length>0&&(Vt=!0)});let $i=[];if(e.remiId==null){const g=re??0;g>0&&($i=e.approvalRules.allApprovalRules?.filter(T=>{const u=T.criteria[0].range;if(u.max!=null){if(u.min.amount<g&&u.max.amount>=g)return T}else if(u.min.amount<g)return T;return null}).map(T=>({...T,stepsWithStatus:T.steps.map(u=>({...u,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const Jn=g=>{const T=Yn();return Ce.handleSubmit(()=>{T&&(Ze("submit"),v?.trackReimbursementSubmitReimbursement(e.createTime?.format(Xi.analytics.MMMDashDDDashYYYYFormat)??yi().format(Xi.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,re,f),z(),wi(!0))})(g)},Zn=()=>{const g=Ce.getValues(),T=ii(g,e.merchantList.merchants,r,re,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);oe?.(T),H()},Qn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,Xn=e.reimbursementInfo?.paymentDate!=null?nt(vn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,eo=e.reimbursementInfo?.expectedDepositDate??Xn,to=f!=null&&e.remiStage==="draft",vi=Eo(e.duplicateLineByLineId),Ht=e.duplicateReimbursementStatus.fetchState==="Completed"&&vi>0,{requestToOpenThread:Kt,setRequestToOpenThread:Ci,setOpenThread:qt}=$.useContext(oo),{threads:yt,isLoading:Xe}=ao({application:"dashboard",companyId:Re.currentTenant?.companyId,tab:"reimbursement",entityId:f,isGlobalComment:!1},"both",!1);$.useEffect(()=>{Kt?.threadId!=null&&yt.length>0&&!Xe&&(qt(Kt.threadId),Ci(null))},[Kt,yt,Xe,qt,Ci]);const io=$.useMemo(()=>f==null?[]:yt.filter(g=>g.resolved===!1&&!g.id.includes(ro)),[yt,f]).length,no=(g,T)=>{qt(T);const u=g.entityType.split("."),x=parseInt(u[2]);if(isNaN(x)){de(!1);return}const vt=`${x+1}`,M=e.lineDetailSection[x+1].type;u.includes(b.mileageKey)&&M===b.outOfPocketKey?se(Ai(b.mileageKey),vt,f):u.includes(b.outOfPocketKey)&&M===b.mileageKey&&se(Ai(b.outOfPocketKey),vt,f),de(!1)};return t.jsx(Fr,{ref:h,children:t.jsx(lo,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:ae.current??null}},children:t.jsxs(ln,{...Ce,children:[t.jsx("form",{id:tn(en),onSubmit:g=>Jn(g),children:t.jsxs(pl,{windowSize:R,ref:ae,children:[Un?t.jsx(si,{titleComponent:t.jsx(cn,{children:be.title}),descriptionComponent:t.jsx(sn,{children:be.description}),primaryButtonText:be.primaryButtonText,secondaryButtonText:be.secondaryButtonText,action:Hn,proceedButtonVariant:be.title===b.deleteBankAccountTitle||be.title===b.deleteDraftTitle||be.title===b.deleteReportTitle||be.title===b.discardTitle?"danger":"primary",isEditPopup:be.title===b.deleteBankAccountTitle}):null,_n?t.jsx(kr,{reimbursementId:f,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:Ht,numberOfDuplicateLines:vi,setShowDuplicatePopup:wi,submitReport:Zn,fetchDuplicateReimbursement:D,clearDuplicateReimbursementDetail:z,clearRemiSaveStatus:ee,analytics:v}):null,Ye?t.jsx(on,{windowSize:R}):null,Be?t.jsxs(on,{windowSize:R,"data-testid":K("skip-autofill-section"),children:[R==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Jr,{children:t.jsx(ai,{partOfSkipAutoFill:!0,size:R,onClick:()=>ht(!1),"data-testid":K("close-invoice-upload"),children:t.jsx(oi,{withOverlay:!0,children:t.jsx(ni,{})})})}),t.jsx(Qr,{children:_t})]}):null,t.jsx(kn,{showAutofill:Be,analytics:v,onSkipAutofill:()=>{v?.trackReimbursementSkipAutofill(),ht(!1)},uploadInvoiceEndPoint:p,authParams:o,style:{width:X.leftSectionWidth.valuePercentage(R),boxSizing:"border-box",backgroundColor:R==="small"?Ve.colors.grey4:"unset",padding:R==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:R==="small"?i.sp0:void 0},onInvoiceUpload:g=>F(g,gt,!0),dropFilePlaceholder:{upload:b.dropReceipt.upload,single:b.dropReceipt.single,or:b.dropReceipt.or,multiple:b.dropReceipt.multiple,receipts:b.dropReceipt.receipts},updateInvoiceUploadFetchState:Oe,showInfoText:!1,allowMultiFiles:Be,type:"reimbursement"}),R!=="small"?t.jsx(Zr,{children:t.jsx(ai,{partOfSkipAutoFill:!0,onClick:()=>ht(!1),"data-testid":K("close-invoice-upload"),children:t.jsx(oi,{withOverlay:!0,children:t.jsx(ni,{})})})}):null]}):null,t.jsxs(sl,{windowSize:R,"data-testid":K("edit-reimbursement-detail-page-nav-bar-container"),children:[R!=="small"?t.jsx(Di,{style:{width:"42%"},"data-testid":K("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(cl,{"data-testid":K("zeni-logo-spend-management-reimbursement-detail-page"),onClick:ce}),enableTitleOnScroll:!1,scrollableContent:h,backgroundColor:Ve.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,R!=="small"?t.jsx(Er,{}):null,t.jsx(Di,{style:{width:X.navBarWidth.valuePercentage(R)},"data-testid":K("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:_t,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Be!=!0?t.jsxs(dl,{children:[C&&f!=null?t.jsxs(ul,{isDisabled:Xe,"data-testid":K("remi-comment-button"),onClick:Xe?()=>null:g=>{g.preventDefault(),g.stopPropagation(),pt({roomId:St,companyId:Re.currentTenant?.companyId??"",companyName:Re.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:f}),de(!0),v?.trackCommentActivity("reimbursement","clicked",Re.currentTenant?.companyName??"",Re.controllersList.controllers.map(T=>co(T)),void 0,void 0,"page icon")},children:[t.jsx(so,{count:Xe?void 0:io,isLoading:Xe,style:{left:"12px"}}),t.jsx(ml,{})]}):null,t.jsx(ai,{size:R,onClick:()=>xi(),"data-testid":K("close-nav-bar"),children:t.jsx(oi,{withOverlay:!1,children:t.jsx(ni,{})})})]}):null,enableTitleOnScroll:R!=="small",scrollThreshold:64,scrollableContent:h,backgroundColor:Ve.colors.grey4})]}),R==="small"?t.jsxs(t.Fragment,{children:[t.jsx(ll,{children:_t}),t.jsx(uo,{progressSectionObj:Qn,createDate:e.createTime,paymentDate:eo,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:f!=null?!0:e.uploadStatus==="Completed"}),Vt&&t.jsxs(tl,{children:[t.jsx(el,{}),t.jsx(il,{children:b.banner})]}),e.isProcessing?t.jsx(dn,{variant:"warning",style:{margin:R==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Qi.duplicateWarning.title,description:Qi.duplicateWarning.description}):Ht?t.jsxs(nl,{size:R,children:[t.jsx(_r,{}),t.jsxs(al,{children:[t.jsx(ol,{children:b.thereSeems}),t.jsx(rl,{children:b.pleaseFind})]})]}):null,t.jsx(Tn,{isReimbursementCommentingEnabled:C,sectionId:At,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(er,{onDuplicateLineClick:ne,reimbursementId:f,remiDetails:e,uploadInvoiceEndPoint:p,authParams:o,showSkipAutoFill:Be,setShowSkipAutoFill:ht,isReimbursementCommentingEnabled:C,isAutoFieldsExist:Vt,totalAmount:re,removeFileFromLine:ye,onReplaceClick:Gn,onReceiptsUpload:F,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Mn,setUploadedReceiptPayload:Wn,updateInvoiceUploadFetchState:Oe,clearTentativeNameForLine:Pe,defaultCurrency:r,companyMileageConfigInfo:d,isUserAdmin:m,setShowBankAccountPage:Et,bankAccounts:s,onDeleteBankAccount:qn,analytics:v,fileRequiredLineIds:Wt,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:S,showTotalAmountLoader:mt,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:Ht,removeDuplicateReimbursementForLine:ie,scrollContainerRef:h}),t.jsxs(hl,{showSkipAutoFill:Be,windowSize:R,children:[R!=="small"?t.jsx(nn,{}):null,t.jsx(gl,{windowSize:R,children:t.jsxs(yl,{windowSize:R,children:[e.remiId!==void 0&&t.jsx(Ti,{amount:re??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:pe,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&re!=null&&re>0?t.jsx(Ti,{amount:re??0,activities:$i,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(bl,{}),t.jsxs(Xr,{showSkipAutoFill:Be,windowSize:R,children:[R!=="small"?t.jsx(nn,{}):null,t.jsx(Nr,{windowSize:R,onClick:g=>{g.stopPropagation(),He===!0&&Ke(!1)},children:t.jsx(un,{formId:tn(en),separatorStyle:{marginRight:i.sp4},showCancel:y,cancelBtn:{label:m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?R==="small"?b.buttons.discard:b.buttons.discardChanges:R==="small"?b.buttons.save:b.buttons.saveChanges,isLoading:Je==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:Si,style:{width:X.footerButtonWidth.value(R)},reverseSpinnerColor:!1},primaryBtn:{label:Mr(y,m,e,R),isDisabled:!y,style:{width:y?X.footerButtonWidth.value(R):"auto"},type:y?"submit":"button",onClick:y?()=>null:Si,isLoading:!y&&Je==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Wr,{children:t.jsxs(qr,{windowSize:R,children:[He?t.jsx(mn,{onClickAway:()=>Ke(!1),children:t.jsx(Kr,{windowSize:R,"data-testid":K("remi-other-actions-container"),children:t.jsx(Gr,{onClick:Kn,"data-testid":K("delete-report-action"),children:b.buttons.deleteReport})})}):null,t.jsx(Hr,{windowSize:R,children:to===!0?t.jsx(Vr,{windowSize:R,"data-testid":K("more-details-button"),children:t.jsx(Ur,{onClick:()=>Ke(!He)})}):null})]})}),style:{minHeight:62}})})]}),C&&f!=null?t.jsx(Mo,{id:St,children:t.jsx(mo,{isDrawerOpen:N,allowComposer:!0,drawerTitle:Or,threads:yt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:_?.companyId??Pr,isGlobalComment:!1,tab:"reimbursement"},isLoading:Xe,threadMetadata:_?{companyName:_.companyName,companyId:_.companyId,entityId:_.entityId,entityType:_.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:Lr,replyComposerPlaceholder:Rr,threadResolve:Ar,threadUnResolve:zr},onThreadClick:(g,T)=>no(g,T),onCloseAllThreadsDrawer:()=>de(!1),drawerSectionStyle:{width:"400px",backgroundColor:Ve.colors.background}})}):null]})}),Fn?t.jsx(Yr,{windowSize:R,children:t.jsx(pr,{bankAccountCreationState:k,setShowBankAccountPage:Et,plaidConnectionDetails:l,onFetchLinkTokenClick:Le,onEstablishConnectionClick:he,onSaveHandler:L,bankAccountToCreate:O,bankNameByRouting:w,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:P,onFetchBankName:q,onBackClick:()=>{Ge(),Et(!1)}})}):null]})})})},Mr=(e,o,r,d)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?b.buttons.resubmit:b.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?d==="small"?b.buttons.discard:b.buttons.discardChanges:d==="small"?b.buttons.save:b.buttons.saveChanges,Fr=n.div`
|
|
620
620
|
position: relative;
|
|
621
621
|
height: 100vh;
|
|
622
622
|
overflow-y: scroll;
|
|
@@ -643,11 +643,11 @@ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc a
|
|
|
643
643
|
&:hover {
|
|
644
644
|
color: ${e=>e.theme.colors.primary};
|
|
645
645
|
}
|
|
646
|
-
`,
|
|
646
|
+
`,_r=n(Bo)`
|
|
647
647
|
width: ${i.sp4};
|
|
648
648
|
height: ${i.sp4};
|
|
649
649
|
color: ${j.brandColorGoldDark};
|
|
650
|
-
`,
|
|
650
|
+
`,Vr=n.div`
|
|
651
651
|
display: flex;
|
|
652
652
|
margin-left: ${e=>e.windowSize==="small"?i.sp4:i.sp5};
|
|
653
653
|
cursor: pointer;
|
|
@@ -695,7 +695,7 @@ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc a
|
|
|
695
695
|
&:hover {
|
|
696
696
|
background-color: ${e=>e.theme.colors.background};
|
|
697
697
|
}
|
|
698
|
-
`,
|
|
698
|
+
`,Yr=n.div`
|
|
699
699
|
overflow-y: auto;
|
|
700
700
|
z-index: 5;
|
|
701
701
|
height: 100vh;
|
|
@@ -704,7 +704,7 @@ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gc a
|
|
|
704
704
|
width: ${e=>X.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
705
705
|
right: 0;
|
|
706
706
|
top: 0;
|
|
707
|
-
`,
|
|
707
|
+
`,Jr=n.div`
|
|
708
708
|
background: ${e=>e.theme.colors.grey4};
|
|
709
709
|
height: 44px;
|
|
710
710
|
display: flex;
|
package/dist/assets/{EntityDetailPage-Cvd4MG0F-ZDX--4dV.js → EntityDetailPage-Cvd4MG0F-Uu1ExrMV.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as x,F as T,aS as C,V as o,aw as v,o as t,x as m}from"./index-
|
|
1
|
+
import{d as x,F as T,aS as C,V as o,aw as v,o as t,x as m}from"./index-Ci63exms.js";import{n as a}from"./mui-bYXq4XMS.js";import{R as k}from"./TrendWithTransactions-lMD2sZ-C-B_BL8w82.js";import"./core-3dlyNYRL.js";import"./sentry-cYFeB6Pw.js";import"./zeni-epic-state-BwKvATgd.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";import"./TrendChart-C_6ob-SX-BWR7UfmP.js";import"./chartTypes-CwQl8aoN-DVag5uGx.js";import"./toCOABalancesWithID-rZFEkHuM-BjqaEj9u.js";import"./toChartData-C-dHC-Oz-CLJWjMkx.js";import"./NoDataChart-Ce1_TZ5w-BfNH_4T8.js";import"./InsightsSection-B3xD0SZ9-CKtY4Hiz.js";import"./NavigationDots-DyMqwpgy-DXf5bt3G.js";import"./TransactionList-DMd3dgoK-DFvlE42h.js";import"./BoxItem-8PfNfaHq-CqIGaIYz.js";import"./commonDimensions-B1u_MhON-D3_HfKhE.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{Q as z,F as L,V as i,
|
|
1
|
+
import{Q as z,F as L,V as i,dn as O,y as d,c_ as _,o as s,a9 as S,aL as b,b1 as A,cq as R,u as r,E as U,al as B,ak as k,b7 as F,ag as N,cv as G,p as D,cy as I}from"./index-Ci63exms.js";import{a as f}from"./core-3dlyNYRL.js";import{n}from"./mui-bYXq4XMS.js";import{l as X}from"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";const p=L.getLocalizedStrings().reports.aging.agingDetail.header,m=[{key:"date",value:p.date,sortOrder:"ascending",width:new d(212,212)},{key:"invoiceNumber",value:p.invoiceNumber,sortOrder:"ascending",width:new d(188,188)},{key:"dueDate",value:p.dueDate,sortOrder:"ascending",width:new d(188,188)},{key:"daysPastDue",value:p.daysPastDue,sortOrder:"ascending",width:new d(188,188)},{key:"amount",value:p.amount,sortOrder:"ascending",width:new d(188,188)},{key:"balance",value:p.balance,sortOrder:"ascending",width:new d(120,120)}],Y={headerHeight:new d(45,58)},q=n.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{d as q,Q as le,ca as de,F as k,V as t,aK as $,g1 as Q,bL as ce,p as a,bQ as F,o as r,bz as he,k1 as pe,b as d,hH as R,hG as T,n as me,bu as ue,ah as Ce,k2 as ge,ch as ke,E as xe,bI as fe,ag as h,au as U,ak as je,c as ve,b5 as $e,aZ as ye,b7 as ee}from"./index-
|
|
1
|
+
import{d as q,Q as le,ca as de,F as k,V as t,aK as $,g1 as Q,bL as ce,p as a,bQ as F,o as r,bz as he,k1 as pe,b as d,hH as R,hG as T,n as me,bu as ue,ah as Ce,k2 as ge,ch as ke,E as xe,bI as fe,ag as h,au as U,ak as je,c as ve,b5 as $e,aZ as ye,b7 as ee}from"./index-Ci63exms.js";import{a as n}from"./core-3dlyNYRL.js";import{n as o,b as te,k as be}from"./mui-bYXq4XMS.js";import{bj as re,bO as Le}from"./zeni-epic-state-BwKvATgd.js";import{o as we}from"./transaction-placeholder-CpOwZAMG-0pwHfQC6.js";import{h as Ee,A as Me,X as We,Y as Se,T as De,a as He}from"./recharts-h5iNQbFd.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./lexical-DPEnH3HH.js";const Ve=k.getLocalizedStrings().expenseAutomation,Pe=k.getLocalizedStrings().dateFormat.visual,{common:{strings:{percentage:ze},texts:{score:Fe}}}=k.getLocalizedStrings(),Re=({active:e,payload:i})=>{if(e===!1||e===void 0||!i||i.length===0)return null;const c=i[0]?.value;return c==null?null:t.jsxs(Ze,{children:[t.jsx(Ne,{children:Fe}),t.jsxs(Ae,{children:[c,ze]})]})};function Te({data:e,height:i}){const c=q(),L=e.map(x=>({month:Le(`${x.period.year}-${String(x.period.month).padStart(2,"0")}-01`).format(Pe.MMMYYFormat),count:Math.round(x.auditScore)}));return t.jsxs(Ye,{children:[t.jsx(_e,{children:Ve.overview.monthEndCloseTrend}),t.jsx(Ee,{height:i,width:"100%",children:t.jsxs(Me,{data:L,children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"scoreGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"0%",stopColor:a.brandColorJade,stopOpacity:.8}),t.jsx("stop",{offset:"100%",stopColor:a.brandColorJade,stopOpacity:.1})]})}),t.jsx(We,{dataKey:"month",axisLine:{stroke:c.colors.grey3},tickLine:!1,interval:"preserveStartEnd",label:{color:c.colors.hero,fontSize:d.smallRegular.fontSize,fontWeight:d.smallRegular.fontWeight,fontFamily:d.smallRegular.fontFamily}}),t.jsx(Se,{hide:!0}),t.jsx(De,{content:Re,cursor:{stroke:c.colors.primary,strokeDasharray:"3 3",strokeWidth:1},allowEscapeViewBox:{x:!1,y:!0}}),t.jsx(He,{type:"monotone",dataKey:"count",stroke:a.brandColorJade,strokeWidth:2,fill:"url(#scoreGradient)",dot:!1,activeDot:{r:5,fill:a.neutralGrey4Light,stroke:a.brandColorJade,strokeWidth:2}})]})})]})}const _e=o(h)`
|
|
2
2
|
color: ${e=>e.theme.colors.champion};
|
|
3
3
|
`,Ye=o.div`
|
|
4
4
|
display: flex;
|