@zeniai/web-cockpit-ui 1.14.69-prod → 1.14.70-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-CmWdWZdP-D08ZHH9H.js → ACHDetailsPage-DEHhAThG-DRAXXaYH.js} +1 -1
- package/dist/assets/{AIPerformancePage-DR_nar6I-C-nOpUga.js → AIPerformancePage-B464awTI-D9b_abqo.js} +1 -1
- package/dist/assets/{AccountInfoPage-B38K8oEc-BrwpJjZu.js → AccountInfoPage-CXORyzg0-CybH32Bk.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-2BCqK6uX-DOZlSjt9.js → AccountInfoPageContent-C9u7rHSK-BT3xnzN2.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-BRDWcWCW-Bs5kmnXp.js → AccountLockedInfoModal-CKll7MKb-CjjkXlxS.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-XWU779Do-CL2XjmwO.js → AccountReconDetailsDrawerPage-BC2fGcr2-D7kVaYoW.js} +1 -1
- package/dist/assets/{AccountRow-HX65ytA9-DetuuL-x.js → AccountRow-NUjIqQZG-CSuarqvN.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-BgH0GUum-B0ik7ZZL.js → AccountsPromoCardStack-XBi6z1zm-ChZ4F-Su.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-CTWrEuhw-C7oCxit3.js → AddAddressForCardDrawer-DQP3nz3Q-B4VYFuh8.js} +1 -1
- package/dist/assets/{AddToWalletPage-DTXBDGyB-DI5kTo4U.js → AddToWalletPage-Bb2oVW4b-yCBdn2-5.js} +1 -1
- package/dist/assets/{AgingReportsPage-D5cFIWFm-1uaNBQUg.js → AgingReportsPage-CumNO7Lc-CZuNjzaf.js} +1 -1
- package/dist/assets/{AllUserItems-CJuV-zCV-Cl9AZUy6.js → AllUserItems-B3X2Yuzf-nT-XTOL1.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-D70U6sDz-DBfXQvB3.js → ApAgingDetailPage-DO6H8pHR-BJjqV3Er.js} +1 -1
- package/dist/assets/{AppBasePage-DhJFM1Hf-BLCs30xv.js → AppBasePage-xQ6xhR2M-BaIjJbZZ.js} +1 -1
- package/dist/assets/{AppDrawerContent-29n10idw-BgMVfnAi.js → AppDrawerContent-BcHjLmip-CD7Xrz71.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-Cdlgg_ES-C2o8fJ93.js → ApprovalRulesSettingsPage-DEaI5LXy-CdonxLeU.js} +1 -1
- package/dist/assets/{ArAgingChart-C_oM_bU9-CSIw0A4R.js → ArAgingChart-DzhE9mKv-Dm3ED-VE.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-GccX2G2o-CbxkMfZs.js → ArAgingDetailPage-B91ZARF--DiGTdxjY.js} +1 -1
- package/dist/assets/{AttachmentView-DDNmVg54-BEQuPzAU.js → AttachmentView-ChgqlLZN-CRfLn9o5.js} +1 -1
- package/dist/assets/{BankAccountSection-CSEVnGzl-RoBrk-6C.js → BankAccountSection-BDRw3NWV-B1HXDOJd.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CZWf6Ctu-DzlhcQ-1.js → BankAccountWarningSection-BKoo9URq-B_XL-xhd.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-DW3rv1B7-BI4eIich.js → BankConnectionsSettingsPage-CJ42ZzMq-CvQSATnj.js} +1 -1
- package/dist/assets/{BillDetailPage-DSwhwZ3k-CSaWl-zQ.js → BillDetailPage-DfiuLZe8-Ce9yRmQm.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-Y3sdg8vr-eulWXclu.js → BillPayApprovalRuleDetailPage-5_IW6xXJ-Dvdnaki3.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-hF6nVaze-BnghCd19.js → BillPayApprovalRulesPage-CfJZKzVl-CE2_M-K3.js} +1 -1
- package/dist/assets/{BillPayPromoPage-BwgkXhsU-Bq9cwc_l.js → BillPayPromoPage-DDLOie6P-C6YHZPkv.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-Dz9F0OLg-C93_xcAH.js → BillPaySetUpPage-CSfFU76z-odkaZVOM.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CDdumusu-BSQ5mZ9a.js → BillingSettingsPage-BeXsONDQ-BbnTgDkb.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-BQ79pNCf-CEpEdOQe.js → BillsBulkReviewDrawerPage-C19XWwEC-K20I00y_.js} +1 -1
- package/dist/assets/{BoxItem-boLSc1SE-C2V3cWEh.js → BoxItem-DJq5xhLi-BG-pUsKW.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Cp39EL_C-DPdmKaH2.js → BusinessVerificationPage-cUeJO7D8-ByN9_rVE.js} +1 -1
- package/dist/assets/{CardNumberSubText-XNpl-R7P-B5ov0C5q.js → CardNumberSubText-RiyeZ4Fi-3S6YZnxr.js} +1 -1
- package/dist/assets/{CashbackDetailPage-ntByDDMa-CjeQMIiq.js → CashbackDetailPage-BgmrLbkm-Bi8JIg5v.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-D-CZcmOW-CyjYNVBL.js → ChargeCardDetailPage-BfB9DQhO-PoXrGSDN.js} +1 -1
- package/dist/assets/{ChargeCardListPage-D1NJzMX--BRsERLcq.js → ChargeCardListPage-D5hExQrJ-CEDXeeuX.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BmGQk4ht-DEDO8U5V.js → ChargeCardListTable-Xe0POHPI-C_aRBrpd.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-BY1dULbG-BOQk33rr.js → ChargeCardPromoPage-C-QZi7WU-7wj0mX09.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-C4PX3JTG-DN_SmBRl.js → ChargeCardSetupPage-CIaAoIaA-D0xfMcck.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-BiM-yT58-DF9Rz4vt.js → ChargeCardStatementsPage-Bta8G5rU-Bxd9GDQ6.js} +1 -1
- package/dist/assets/{ChargeCardUtils-Cj1kpTwU-DWkIAXDW.js → ChargeCardUtils-MXK7oeC0-D6RsKjLW.js} +1 -1
- package/dist/assets/{ChaseOverlay-D8Wesmh3-Hay_lE2r.js → ChaseOverlay-nKLcp0IQ-DyPgaN6P.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-qtOoFuzp-PZgVMUM5.js → CheckDepositDrawerPage-DE9G4ZLn-CMYdeGxw.js} +1 -1
- package/dist/assets/{CollapsableReportTable-Do0pb5Lu-qtHBZTWo.js → CollapsableReportTable-9Ve7EJza-AqNxaI6j.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DeRanOdM-CYn2t94Z.js → CompanyOfficerDetailsSection-Dxrw3A0v-CaTwjUfz.js} +1 -1
- package/dist/assets/{CompanyPassportCard-BTCP55KE-DxIA2Kgo.js → CompanyPassportCard-BLH9mk_K-Do765Ty4.js} +1 -1
- package/dist/assets/{CompanyPassportPage-yjAO_mG--D-XIvy88.js → CompanyPassportPage-DugSYQVz-BRWVbjGf.js} +1 -1
- package/dist/assets/{CompleteProfile-DdOrD2pt-HrNNW1Y7.js → CompleteProfile-DmnsbHlq-DyYFWoMC.js} +1 -1
- package/dist/assets/{ConfettiBurst-sNSG2up_-BS-vrnmM.js → ConfettiBurst-BDREKQUf-DKUbjNni.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-Bq9oUnzE-CpG25ii2.js → CreateOrEditVendorPage-Dl6ec-s9-CkmD6cdK.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-2xfyy_iB-DP6O9SUr.js → CreditCardPaymentDrawerPage-Dyb4qL_P-DGVVqzgM.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-CvW-Fcsz-CXaa0G2D.js → CreditCardPaymentPlgSection-BPV1SLmY-C7jSKPJl.js} +1 -1
- package/dist/assets/{CurrencySelectField-DXtYsTz_-dQTlHOvB.js → CurrencySelectField-CJb3Y-mb-29nC1opq.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-C5Tf8vxR-w9wWJnBX.js → CustomerOnboardingActivationPage-9iuVWGWw-CdtgmV6n.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-Pw4kXxCj-DIxXsPND.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-C_pZ_Mek-DTQ2JUX-.js → CustomerOnboardingDetailPageSkeleton-jYcjJ0PW-D1CCiZxT.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-DIefPh79-CJ95BLaj.js → CustomerOnboardingNoStepsPage-X-9T5fpG-DxjTi_Dm.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DvWS1Fu5-D_Sqe41C.js → CustomerOnboardingPage-CtBN8YfR-CGkB_H2s.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-bkjJ76FE-YquW1Oxm.js → CustomerOnboardingProductSuitePage-bDKvS5bh-Duy-Ig0d.js} +1 -1
- package/dist/assets/{Dashboard-BIBEEsmW-BeYObmAZ.js → Dashboard-BH5qnfQd-CCuvs67T.js} +1 -1
- package/dist/assets/{DashboardReportPage-CJ14rgfy-D6o2sgVt.js → DashboardReportPage-J1VeI2uE-Bu8eUuF5.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BTCBzIff-fKpKGZqN.js → DashboardSidebarBackgroundAnimation-CXHOxSLP-4l1AB9D9.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BGEabO5q-BEuL9m_Q.js → DepositAccTransactionItem-BGfoy6o8-BKfG_FHL.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-ByiVlTpi-BDqN3_Ld.js → DepositAccTransactionListPage-a69RARgv-CC4ca2oI.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BMZuwYyI-DD7uqmMI.js → DomesticWireDetailsPage-DBt6rnIQ-Cqpf-IDY.js} +1 -1
- package/dist/assets/{DownloadOverlay-BMuuHIe_-C6sk3TZT.js → DownloadOverlay-DgUHpkeg-D9EplThh.js} +1 -1
- package/dist/assets/{DrawerPage-CrIpCiKa-Nbri33S9.js → DrawerPage-B32TCGJ1-DlBcEsnN.js} +1 -1
- package/dist/assets/{EditPeoplePage-DlNzfgqT-DCHAk3Yz.js → EditPeoplePage-BPfO6mun-wU23lVWV.js} +1 -1
- package/dist/assets/EditReimbursementDetailPage-DKGgXOY7-DLqEBdT-.js +865 -0
- package/dist/assets/{EntityDetailPage-DSRvBHpC-BMa47RLv.js → EntityDetailPage-BfHI2iuR-CVcUBkiC.js} +1 -1
- package/dist/assets/{EntitySummarySection-9nOAnjkI-BqTlSEba.js → EntitySummarySection-CawV1rm1-D5PJQpxt.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-R3eUdjrH-X8tjo-Ht.js → ExpenseAutomationOverviewPage-BsAt8A9v-BK8BcjCH.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-CKh8vu_w-tEarM0o0.js → ExpenseAutomationPage-aw988_Ii-DHT0WFhA.js} +1 -1
- package/dist/assets/{ExpressPayPage-Dduo1mOg-DNV7YrV7.js → ExpressPayPage-CJCdxlh5-y9jOExfe.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-DMRrw9-Y-DWp9ezgs.js → FeaturePreviewPage-CqLkGmd--BXP9O5_K.js} +1 -1
- package/dist/assets/{FollowStepsSection-CEQpkklk-Y0e1DNzS.js → FollowStepsSection-Dyn5gNGd-Cpjk-5Ab.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-4VcZ6q0U-0o5Lv_xX.js → GlobalReviewListPage-B9ijztQn-D_Npdays.js} +1 -1
- package/dist/assets/{HelpButton-D2VIgqhe-CikEjabe.js → HelpButton-jlgjodRn-BM1z6Ko6.js} +1 -1
- package/dist/assets/{InformationCardStack-DnfUYEKn-CCG3m7qR.js → InformationCardStack-BVY3WNAX-CE7DCPLF.js} +1 -1
- package/dist/assets/{InsightsCardStack-BcmY7CE8-E-tTnJRR.js → InsightsCardStack-Cq1VFPv0-ClMSDXGQ.js} +1 -1
- package/dist/assets/{InsightsSection-DvljGiHX-ByqranmJ.js → InsightsSection-Bp2dI7sk-DQMqItrq.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-_UEZa5LV-Kdr0PwcS.js → IntegrationsSettingsPage-McjwChqZ-D9lZsJnd.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DWNfoLkN-B0-xZyVi.js → InternationalWireSwiftDetailsPage-BSbC9vYS-D96enR1t.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-Dd_gu2i8-D415t1pl.js → InternationalWireVerificationPage-CXKmxcJR-kOmgW9Gg.js} +1 -1
- package/dist/assets/{InviteFormPage-D51wJ12d-BLMraIs_.js → InviteFormPage-UVuBwyyT-TSMvggYq.js} +1 -1
- package/dist/assets/{InvitePageListView-BooLnbN2-DLQz0rVr.js → InvitePageListView-D3vLBLdn-DjxY9b3S.js} +1 -1
- package/dist/assets/{InvitePeoplePage-Crh233yV-CwdbTN9k.js → InvitePeoplePage-Dq2c-OEI-BhG4wwyM.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-wg-xymDI-7QWAPep4.js → InvoiceUploadSection-CGiw1Fsl-BqhdArfE.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-CdoWbyWu-BahTnZB6.js → IssueChargeCardPage-DZt48WaC-CBzgdS2l.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BhmZAbzp-DZf4ElCh.js → LabeledAddressValue-COZIVVuQ-DoFhDxlG.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-Drg5O-US-DbwmMbJK.js → LabeledAddressValueField-BqxCJ214-BeCISlsF.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-BbYnFF5o-CgHKKGrg.js → LabeledControlledCheckBoxField-Ctt5nlNb-BxWNv_F8.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-xcFQjqaM-VO5tpw19.js → LabeledCreatableSingleSelectField-DXxch_y1-CJyXki6j.js} +1 -1
- package/dist/assets/{LabeledDocumentField-C8pHsM4S-CPPM3Tz-.js → LabeledDocumentField--7BXDK3g-YRWqFfMC.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-Cx5ONCxF-Dvig-n1H.js → LabeledDropDownFormattedTextField-j62_NoR8-C00ox8Xv.js} +1 -1
- package/dist/assets/{LabeledText-D5IHVOg0-DTokZ3Wf.js → LabeledText-j7jn7khK-1kY3l2me.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D4LdosVZ-CNQLb7VB.js → LabeledUserSingleSelectWithSubtitlesField-pIek7oI7--tqFNvok.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-zOTYaEh8-x4pjqckW.js → LabeledZeniRolesDropDownField-X2qZXFaF-DpGJz-M1.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-Cjf7vBDA-CkhiSoEX.js → LinkJETransactionPage-DRC88j7z-FCK8U7jy.js} +1 -1
- package/dist/assets/{LockCardPage-D-quZPt4-By5NXdU-.js → LockCardPage-BMvHSrDy-DHBB4k1q.js} +1 -1
- package/dist/assets/{LowBalancePopup-CDVNL1Ng-BFRy_HyW.js → LowBalancePopup-DVn8qbv_-ybNeezIV.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-X0_WQkYj-B3gBebiQ.js → MagicLinkACHDetailsPage-Bvw_kaVc-FL1VkBF6.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-D-C3JyeK-CSa6Ga4n.js → MagicLinkDomesticWireDetailsPage-BkVZ1jpB-Da7sci-J.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-B27G9Xh5-UaM6gXLE.js → MagicLinkInternationalWireDetailsPage-s_vBiYar-9tMEta3k.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-CzNf5Y4Z-BAyEW9oe.js → MagicLinkSuccessPage-BfC_ewro-D5JfIS9N.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CBQ-D4Ax-c31H1T_K.js → MagicLinkTitleSection-BheV8eRd-YQNBdJjw.js} +1 -1
- package/dist/assets/{MailingDetailsSection-BMHFJz4W-CDGuL3Yu.js → MailingDetailsSection-dpOFXIy_-ChE90SHL.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-ClAUcXqM-HBKW1kyR.js → MeetingCalenderPopup-Ma-N6si8-DVldPR_b.js} +1 -1
- package/dist/assets/{Menu-Cd5A1JNy-e_SIl2iW.js → Menu-CS4snQyL-iEWPQ8Jg.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CCBp1XGb-DfKbX64b.js → MyBankConnectionsSettingsPage-BNwfq3mV-DvRfS-ot.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CYYNDJEv-BQZ2VoxI.js → MyPendingActivationChargeCardListPage-CvtCpxZ2-B9s4AD2w.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage--4GywTfD-BZZwGrm5.js → MyProfileSettingsPage-CYHd_uJf-CXL88bXq.js} +1 -1
- package/dist/assets/{NavBarWithPicker-BCwWE09x-BuhopnGe.js → NavBarWithPicker-CIwo3-bU-BlAZrmkB.js} +1 -1
- package/dist/assets/{NavigationArrow-Bgry4cXl-DAzfOxUH.js → NavigationArrow-Ctsd8z-N-Dey9XvGJ.js} +1 -1
- package/dist/assets/{NavigationDots-Ddi6oobs-DxfYtOhs.js → NavigationDots-DGv77DnI-DBz-xiee.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-WtpOSLWM-zMWYGlIP.js → NewGlobalMerchantPage-oyu_zZde-bRSk7vCu.js} +1 -1
- package/dist/assets/{NoDataChart-BNlDDQwD-Sl0108ki.js → NoDataChart-CXFwQK_G-CblpjrHE.js} +1 -1
- package/dist/assets/{NoDataTable-BS-9P_1q-D0B4frra.js → NoDataTable-DrDufNQl-Xxh0U3Y6.js} +1 -1
- package/dist/assets/{NotFoundPage-B9ora6ML-D_jz_LfE.js → NotFoundPage-D5ZkhpVx-Dlj_Efgz.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-Dz8TrJJt-DrRNFqWc.js → NotificationSettingsPage-DV2O4HOU-DYRLZiyD.js} +1 -1
- package/dist/assets/{NotificationsListConfig-DFEuYLQn-DUPfNfRl.js → NotificationsListConfig-DzTt3sW7-D7k64tPL.js} +1 -1
- package/dist/assets/{NotificationsPage-BC4qwyyR-CN0IvL2c.js → NotificationsPage-pIGEEWO1-D5PlvpRi.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BEDrqFvy-46vwHXL-.js → OpExByVendorPage-B5udt4MV-Db0rh8wD.js} +1 -1
- package/dist/assets/{OverlayContainerPage-CU1AAMcq-R2gJ3RpC.js → OverlayContainerPage-BrLfNEnQ-COB3BYnt.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-Q6RMHNEP-CNNhzYR9.js → PandLWithForecastPage-BH4-z8YX-CdZe4LXy.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DgZaYNuQ-PyR6Yob-.js → PaymentAccountSetupBillingAddressSection-DXtYsHZ5-DYuls--U.js} +1 -1
- package/dist/assets/{PeoplePage-B7-DBwAE-uvbgxO_f.js → PeoplePage-CudFyR33-DWYV_q9f.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-BYrJIO4G-CKemIwTc.js → PortfolioAllocationFormPage--pbBsqs1-Bdnin9RL.js} +1 -1
- package/dist/assets/{PortfolioDetails-CSUj2M7N-B43xGMlq.js → PortfolioDetails-BMo4nZPY-C_OYsbEg.js} +1 -1
- package/dist/assets/{ProductsCarousel-CJawWb9Z-BdtwzFSn.js → ProductsCarousel-n8JigLY0-hfuXryxc.js} +1 -1
- package/dist/assets/{PromoBaseCards-DBUPttkv-7qEVLUcx.js → PromoBaseCards-C7Gs9HU9-bF3NRHMd.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-XDxex81f-DeVyM9HR.js → QBOConnectionDialog-Bs4TixAR-CkOj_Icl.js} +1 -1
- package/dist/assets/{QBOSetupSection-C6N7GK8Z-Ch9cbdvZ.js → QBOSetupSection-CmnpJttN-D-P5eb83.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-C-vED-R4-0-9Pv-eq.js → ReimbursementApprovalRuleDetailPage-JqIc8GYJ-C9mMI_X1.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BKnffido-bza8Gua_.js → ReimbursementApprovalRulesPage-PnesOCg3-DqiGKhbd.js} +1 -1
- package/dist/assets/ReimbursementDetailPage-D22_cS36-Bpcy5-fU.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-CSRGTsL--BAhI56PW.js → ReimbursementPromoPage-DIbk9BFN-DVPfxSMn.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-Dt45ZWe6-BIGPDPeN.js → ReimbursementSetUpPage-DS-cwKlv-D_Hm45Ky.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BPB3gXW9-CF49ycsK.js → ReimbursementsBulkReviewDrawerPage-BLdVlRgq-JaicePT_.js} +1 -1
- package/dist/assets/{ReloadCard-C7H9HpbO-_kdesY41.js → ReloadCard-DBa4gyKQ-Buh0vXeY.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-CXqW1clk-GSVgkRxB.js → ReportTableViewSelector-DuwAvmlS-BBnfMgKH.js} +1 -1
- package/dist/assets/{ReportsPage-cosy_Bbq-OTCGmxc4.js → ReportsPage-WABWxLPG-DKN5DzWh.js} +1 -1
- package/dist/assets/{RevenueChart-DUPn_XF8-BDu1SDxr.js → RevenueChart-B5jN8P8V-Bz2uKzvD.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-DH6T7H7g-DH-6NE08.js → ReviewDetailsPage-BudlDfFj-BIOHcwWG.js} +1 -1
- package/dist/assets/{ReviewOverlay-D1gSW-Yw-B8hhebw_.js → ReviewOverlay-CckOQNCd-Cqn6hgqy.js} +1 -1
- package/dist/assets/{RoleWithToolTip-Cp5gvEZs-DwN1v8Cj.js → RoleWithToolTip-Bur7bxOe-CYEzIvk3.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CnphYKxN-BXYrlUXY.js → ScheduleDetailsFixedAssetsPage-Div2wWri-CXszSt2I.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-C-Aexea6-DU14GLoR.js → ScheduleDetailsPage-DDYQPFGk-CiGVq9tp.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-DcwqaLmf-CGtKtyWB.js → ScheduleSequenceTable-1TRzUR6V-wcPOEmww.js} +1 -1
- package/dist/assets/ScreenRoutes-i5d_donU.js +203 -0
- package/dist/assets/{SetUpAccountSection-DcPnHW0X-DTztXzhn.js → SetUpAccountSection-Dfs_xZu7-CWFfutWm.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-BFPybRJc-BixU69LG.js → SetUpDefaultSection-TtnDS5ad-BZjzQ8Mk.js} +1 -1
- package/dist/assets/{SignIn-_2PLYEin-DIx0TRbT.js → SignIn-D3-Ker_M-zn09bTiA.js} +1 -1
- package/dist/assets/{SignInScreen-BnzespSp.js → SignInScreen-EsgrSlOr.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DoOD0SKy-CBwphAUh.js → SpendManagementListViewPage-D0yJ6ZZV-DPeBz9Dm.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-zAut4sVr-Dx6Uwcef.js → SpendManagementPerTabPage-Dfhzyv14-BxpKm9-A.js} +1 -1
- package/dist/assets/{SpendManagementSection-DZz_fsH6-BO0X1BhL.js → SpendManagementSection-CNgCznpS-D2Anolaw.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-CM4RGF3P-CEi1-z0Q.js → SpendMgmtSetupAccountSection-CKg4qknx-DMsYuVmq.js} +1 -1
- package/dist/assets/{StatementItem-CgyEvD-b-a_xofKOn.js → StatementItem-Cv3RZsIv-CE3xFXTY.js} +1 -1
- package/dist/assets/{StatementsPage-DsIQ8XQY-DrS2pukO.js → StatementsPage-4JEocF4A-CUYYmhxY.js} +1 -1
- package/dist/assets/{StatusSwitcher-0FW5MyfZ-Ckzka9NF.js → StatusSwitcher-DbsnK4Pn-QF_adjcm.js} +1 -1
- package/dist/assets/{SubTabSwitcher-DROmoxUm-DMhWlatK.js → SubTabSwitcher-Di6AZRan-D-fc0CCz.js} +1 -1
- package/dist/assets/{SummaryCard-CvqpWY1e-CSF6-9Tw.js → SummaryCard-BbqP93PD-DCBLhe4V.js} +1 -1
- package/dist/assets/{TaskManagementPage-BlRUCsH2-CR3T4qHe.js → TaskManagementPage-BJhjliCJ-Dgf8KAM1.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-DaSDSBJg-D8rwcFXC.js → TimeRangeSwitcher-MsG4Kt2X-hRGxoqg7.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-CQXRt_ve-_zsfOZYb.js → TimeframeSwitcher-Cv7wfQSS--wV3l3C4.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DRxK4ucX-Dt89QoOS.js → TimeframeSwitcherWithToggle-CXnzJ3Ip-DVUB_GmO.js} +1 -1
- package/dist/assets/{TopExCard-Bx4hv8bP-CJJoCX_h.js → TopExCard-Bb0F0Re9-BGQwgN2R.js} +1 -1
- package/dist/assets/{TopExDetailPage-WwjISiBR-Cf2e4GFX.js → TopExDetailPage-BgRX-60I-Dvt1aqR4.js} +1 -1
- package/dist/assets/{TransactionDetailPage-DZxj6ERf-6l8yINyG.js → TransactionDetailPage-C1clpiWS-CjTAZZDd.js} +1 -1
- package/dist/assets/{TransactionList-CS0vdVOy-BhTABrNB.js → TransactionList-DqlnGjYa-CR04FLWL.js} +1 -1
- package/dist/assets/{TransactionListBig-EJgfLOeO-88TXRgl4.js → TransactionListBig-CCuDCegl-nebtbqVL.js} +1 -1
- package/dist/assets/{TransactionListPage-B7HHD_XG-DWoC2vGy.js → TransactionListPage-B1TxgyxD-BG9D6Llv.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-91nT0xN2-BefYRztA.js → TransactionVendorDetailPage-BYWPYZkV-DmR3luWN.js} +1 -1
- package/dist/assets/{TransferDrawerPage-DRnmOKbS-XYkHz5Q1.js → TransferDrawerPage-Cx4Qxlnr-KKZmPzs2.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-BL6F3EAV-BG3QG9B9.js → TreasuryOverviewPage-B0scZon9-BtBCUnCW.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-EgoFyZHZ-DAFbRUib.js → TreasuryPromoPage-Cs6MvdWT-CmcGtneC.js} +1 -1
- package/dist/assets/{TreasurySetupPage-CNEy8TpS-DIs9Un6S.js → TreasurySetupPage-BT3fZK16-DjGogfn_.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-CpHtCiHi-BWaLA3-u.js → TreasuryStatementsPage-Cj28uTCq-DnMgkVai.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-B4MAEQMq-Co2rZ51I.js → TreasuryTaxLetterPage-C6fYejXM-CXfwlQFb.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-BCLp7kS2-bG4fJ74_.js → TreasuryTransferOrReviewPage-DMaGU-Gd-CFr5ChKO.js} +1 -1
- package/dist/assets/{TrendChart-BnJ_z_Ip-8PP2Ttx5.js → TrendChart-UOHctvPR-DYyf53nB.js} +1 -1
- package/dist/assets/{TrendWithTransactions-D1U0xBzL-DWMtMU3P.js → TrendWithTransactions-DeXSoeh9-DHeP6Kmv.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-Bo9l9uDw-w1Di1v2h.js → UncategorizedAccountsMappingPage-BY8Y7Cfi-DtDaq4sQ.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-68TmJxRI-ClTOV1Ga.js → UnitIntegrationPage-TSdJXoyv-Cz-xulb6.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-Cgxo-kPs-7HE8RrRn.js → UploadAdditionalDocumentOverlay-GdA3H_LM-C69p4BvM.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-D0T-_56--Bozo8IGD.js → Vendor2FAPopup-ga_dxJ2i-DbustIG7.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CXuz8qCs-BgCQ8sKJ.js → VendorACHDetailsPage-C0KPsWem-wXaugjAY.js} +1 -1
- package/dist/assets/{VendorDetailPage-XdXKT6C6-BpBs_08w.js → VendorDetailPage-DtHbNBi2-AhAahu41.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-D9bM52Dq-lQS5Eb9R.js → VendorDomesticWireDetailsPage-BRePkxjz-C_zV_um3.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BycAdkCM-BF1uBaWN.js → VendorFiling1099EditablePage-B9lgKnIN-DWOqfHoH.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-DJ20U30K-C2xMC5RA.js → VendorFirstReviewPage-fnjh1JBs-eKAAo5iG.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CWM0qUI5-BvZcZxTa.js → VendorInternationalWireDetailsPage-B8mSTYwi-B8Dw9bcv.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C25EI591-DNZMv76Z.js → VendorInternationalWireSwiftDetailsPage-D7FYPVgc-BT4ij3cX.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-COdnN_-5-C6RZj4jP.js → VendorsAccountsSection-B5a7wuJN-D5T-paLW.js} +1 -1
- package/dist/assets/{VerifyDevice-DgUJHRD4-BmpB5n1i.js → VerifyDevice-CVJF9lwM-CPuvMYue.js} +1 -1
- package/dist/assets/{VideoPlayer-BpmcTJBM-DQk9qndK.js → VideoPlayer-DloIycOu-CLtG3Kiy.js} +1 -1
- package/dist/assets/{VideoPopup-B0Mebd5O-CsEoP_3Y.js → VideoPopup-D2oWKmZt-DPTUFVjt.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-BA9frFhl-unl68OuI.js → WarningsDrawerPage-DW-8IxrS-DOJH3-n7.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CFLHbicW-BNiCHSEL.js → ZeniAccountDetailPage-CF5PQDtn-DCaodhL6.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CLFp-HZC-C7ZhyLPF.js → ZeniAccountListViewPage-Dvzgoo-B-DJDpKPpC.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-Ckl-FxuF-DQRfXbZ_.js → ZeniAccountNavBarPieces-D7qqcIZ7-Ckj10NZU.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-UY251u5Y-YgCmw_Dj.js → ZeniAccountPromoPage-DD-ZYLox-Bmu7d_Bc.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-Dyd_JQIP-CN5J54Fo.js → ZeniAccountSetupPage-ChTNTxo4-BfQrSTN7.js} +1 -1
- package/dist/assets/{ZeniCopyright-BsZ2nX3I-BqG8KaP3.js → ZeniCopyright-D7A5qQVt-DD6lHGWl.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DZV7XopX-CeQL-F7u.js → ZeniTransferAmountSlider-Clmv0ILZ-CusxQjDl.js} +1 -1
- package/dist/assets/{analyticsHelper-CGgt_qXV-B8CI40B8.js → analyticsHelper-Dn0mlAnz-iXePQX9C.js} +1 -1
- package/dist/assets/{analyticsHelper-CGnQfI5F.js → analyticsHelper-YKy7IxaP.js} +1 -1
- package/dist/assets/{chartTypes-CrYCtn5W-vvFJxyhx.js → chartTypes-A8wR1KBw-DpEneA3z.js} +1 -1
- package/dist/assets/{commonDimensions-CzZEAJMD-CXd4nX_H.js → commonDimensions-BT_as0IS-D3xsa4S9.js} +1 -1
- package/dist/assets/{crypto-cQYYQPTZ.js → crypto-Cicc6Fs8.js} +1 -1
- package/dist/assets/{detailCommon-DCm_e5wl-Dmz384l1.js → detailCommon-DppzaL-S-BgbDmqrB.js} +1 -1
- package/dist/assets/{downloadPdf-wjda1Kbt-CA-h_1ts.js → downloadPdf-CdA_CkNA-Bv6C7tQF.js} +1 -1
- package/dist/assets/{index-utnCtAcO.js → index-DI0MUGC6.js} +12 -12
- package/dist/assets/{lodash-D52QloPU.js → lodash-B66NTFTY.js} +6 -6
- package/dist/assets/{mapLoadingInProgressToTreeNode-CegpKrCb-CAUjmmc6.js → mapLoadingInProgressToTreeNode-_eXCwZ49-D7g990MI.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DmY1QvVV-Dyd_eDPt.js → mapSectionWithAcOnlyToTreeNode-Ch0t_vs_-BO4dZMxU.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CBqkMj---cnP7d7US.js → mapSpacerToTreeNode-DV0UxtV9-m8YDFU8F.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DN0p6EVx-p9sZxSMW.js → mapTimeframeBalancesToTreeNode-Mxxnpeq7-aaSrDsH6.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BdXepUFS-C5CRbd-m.js → mapTimeframeBalancesToTreeNode-puf5eiMx-Bhs3Sn9u.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-D-hyDelr-Chgczrza.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B-W32Tm--Bv0I7MdF.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DcVKFWfH-ajwPTNjs.js → toCOABalancesWithID-CibeBR5w-DKx7lCaE.js} +1 -1
- package/dist/assets/{toChartData-CP77kYFN-WRS6hFfm.js → toChartData-D_R7lWVz-CD840bWJ.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CAu0BSpC-PtGGDUlY.js → treasuryColorHelper-DudgBZZp-BB3FFLUP.js} +1 -1
- package/dist/assets/{uploadAttachment-NIzZa4c9-SVWT7q9X.js → uploadAttachment-DxrjP0NZ-kkI8V1hd.js} +1 -1
- package/dist/assets/{uploadReceipts-9DTOr0BG-DzIqT4ou.js → uploadReceipts-TOfVnojh-B2rywoul.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +9 -6
- package/dist/assets/CustomerOnboardingContainerPage-BQFnoCtd-B1bzOmSi.js +0 -1
- package/dist/assets/EditReimbursementDetailPage-Dqbs8qjg--rlw1Sms.js +0 -865
- package/dist/assets/ReimbursementDetailPage-DAw7ua01-D987A0H2.js +0 -314
- package/dist/assets/ScreenRoutes-GxRTI4h2.js +0 -206
|
@@ -0,0 +1,865 @@
|
|
|
1
|
+
import{aP as ri,c as bt,ax as ft,aa as en,az as Ci,l as ee,O as Se,aC as tn,q as ze,gr as Jn,gt as Zn,gu as eo,j as t,gN as to,ad as nn,cD as si,cE as on,cF as an,aM as q,o as i,y as d,bF as ki,bs as io,dN as no,gv as oo,gG as rn,gB as Ii,aQ as ln,ap as sn,gC as ao,eR as Ke,gO as zt,ff as di,P as xt,gP as ro,h as j,A as dn,ar as ci,u as a,bB as lo,gE as so,cT as co,eY as ui,gQ as Bt,fu as $e,fw as ve,cV as mi,d3 as nt,eD as uo,ft as cn,C as Rt,cY as un,cX as it,db as je,ai as pi,gR as mo,fG as po,cS as ho,aU as Di,bA as go,b9 as mn,M as yo,eC as bo,b6 as Mt,gw as fo,c7 as pn,b as hi,H as hn,dd as gn,cw as Ft,fa as xo,b8 as wo,dh as So,fB as $o,am as gi,n as Ti,c5 as yn,b1 as ji,da as vo,an as Co,c$ as bn,aN as ko,gS as fn,gT as li,gm as Pi,gU as Lt,d9 as Io,gq as Do,bP as To,d8 as jo}from"./index-DI0MUGC6.js";import{b as v,n,w as Ct}from"./vendor-Bs1fkIUX.js";import{_ as Po}from"./liveblocks-8ht9CoL5.js";import xn from"./InvoiceUploadSection-CGiw1Fsl-BqhdArfE.js";import{r as Oo,f as At,d as yt,p as yi,u as Oi,h as De}from"./types-DyvtCprH-BcZYcgaq.js";import{I as Ro}from"./LabeledCreatableSingleSelectField-DXxch_y1-CJyXki6j.js";import{S as Lo}from"./CurrencySelectField-CJb3Y-mb-29nC1opq.js";import{K as Ao}from"./SetUpDefaultSection-TtnDS5ad-BZjzQ8Mk.js";import{e as zo}from"./BankAccountSection-BDRw3NWV-B1HXDOJd.js";import{W as Bo,F as Mo}from"./BankAccountWarningSection-BKoo9URq-B_XL-xhd.js";import{o as Fo}from"./radio-default-CiSgisfh-Cuu8ymvq.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-Cicc6Fs8.js";import"./AttachmentView-ChgqlLZN-CRfLn9o5.js";import"./uploadReceipts-TOfVnojh-B2rywoul.js";const Fe=(e,o)=>`${e}.${o}`,Ri={largeLabelWidth:new d(120,120,160),paddingBottom:new d(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:Ie}},dateFormat:Eo,common:No}=Se.getLocalizedStrings(),Wo=({lineIndex:e,mileage:o,classList:r,defaultCurrency:c,sectionId:h,isReimbursementCommentingEnabled:C,isDisabled:u,isAddReimbursementDisabled:w,companyMileageConfigInfo:f,reimbursementId:l,classHierarchyList:k})=>{const S=ze(),s=ft(),p=Bt(),x=`dashboard_${s.currentTenant?.companyId}`,P=bt(),{formState:{errors:I},getValues:O,trigger:Y}=nt(),R=No.strings.empty,D=O(Fe(h,"distanceInMiles")),z=Ri.largeLabelWidth.value(S),le=O(Fe(h,"class")),ie=r.find(A=>A.classId===le?.selectedOption),se=Fe(h,"class"),Z=je(I,se);v.useEffect(()=>{le?.selectedOption!=null&&(ie?.isDeleted===!0||Z)&&Y(se)},[le?.selectedOption,ie?.isDeleted,r]);const H={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},F=A=>r.filter(ne=>ne.classId===A)[0]?.accountingClassNumber,X=r.find(A=>A.classId===o.class),K={valueContainer:A=>({...A,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx($e,{isThreadAllowed:C&&l!=null,dashboardTabKey:ve({type:"details",key:`${e}.mileage.transactionDate`}),roomId:x,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...H,entityType:`reimbursement.details.${De("transactionDate",e,"mileage")}`},fieldThreadTargetElement:p?.sharedRef?.contentWrapperRef,children:t.jsx(bn,{isDisabled:u,label:{label:Ie.transactionDate,width:z},style:{paddingBottom:Ri.paddingBottom.valuePx(S),width:"auto"},dateField:{name:Fe(h,"transactionDate"),placeholder:Ie.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Eo.visual.defaultInput,autoComplete:"off",maxDate:ee.dateNow(),registerOptions:{required:!0,validate:A=>!!A}}})}),t.jsx(kt,{}),t.jsx($e,{isThreadAllowed:C&&l!=null,dashboardTabKey:ve({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:x,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...H,entityType:`reimbursement.details.${De("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:p?.sharedRef?.contentWrapperRef,children:t.jsx(Pi,{isDisabled:w?"disabled":void 0,style:{width:"auto"},label:{label:Ie.distanceInMiles,width:z},formattedTextField:{type:"number",name:Fe(h,"distanceInMiles"),placeholder:Ie.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($e,{isThreadAllowed:C&&l!=null,dashboardTabKey:ve({type:"details",key:`${e}.mileage.amount`}),roomId:x,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...H,entityType:`reimbursement.details.${De("amount",e,"mileage")}`},fieldThreadTargetElement:p?.sharedRef?.contentWrapperRef,children:t.jsx(Pi,{isDisabled:"disabled",label:{label:Ie.amount,width:z},formattedTextField:{type:"number",name:Fe(`${h}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:it(Ie.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?`${c.currencySymbol}${f?.mileageUnitAmount} per mile x ${D}`:void 0})}),t.jsx(kt,{}),t.jsx($e,{isThreadAllowed:C&&l!=null,dashboardTabKey:ve({type:"details",key:`${e}.mileage.memo`}),roomId:x,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...H,entityType:`reimbursement.details.${De("memo",e,"mileage")}`},fieldThreadTargetElement:p?.sharedRef?.contentWrapperRef,children:t.jsx(mi,{isDisabled:u,label:{label:Ie.memo,width:z},style:{width:"auto"},text:{type:"text",name:Fe(h,"memo"),placeholder:it(Ie.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:fn}}})}),t.jsx(kt,{}),t.jsx($e,{isThreadAllowed:C&&l!=null,dashboardTabKey:ve({type:"details",key:`${e}.mileage.class`}),roomId:x,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...H,entityType:`reimbursement.details.${De("class",e,"mileage")}`},fieldThreadTargetElement:p?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(li,{isLoading:!1,label:{label:Ie.department,width:z},additionalLabelInfo:ie?.isDeleted===!0&&je(I,Fe(h,"class"))?Ie.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Fe(h,"class"),placeholder:it(Ie.department),valueToId:A=>F(A),defaultValue:{selectedOption:X?.classId,allOptions:Ke(k,[])},style:{width:"100%"},customStyleConfig:K,registerOptions:{required:!0,validate:A=>r.find(ne=>ne.classId===A?.selectedOption)?.isDeleted===!0?Ie.deletedClassError:!0}},style:{borderBottom:`1px solid ${P.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Fe(h,"class"))})]})},kt=n.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex: 1;
|
|
4
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
5
|
+
min-height: 1px;
|
|
6
|
+
max-height: 1px;
|
|
7
|
+
`,Li={amounWidth:new d(50,30),currencyWidth:new d(50,70)};function Uo({name:e,placeHolder:o,defaultValue:r,isDisabled:c,showAmountCurrencyError:h,style:C,allCurrencies:u}){const[w,f]=v.useState(!1),{getValues:l,formState:{errors:k}}=nt(),S=bt(),s=ze(),p=c!=null,x=l(e),P=`${x?.amount} ${x?.currency?.selectedOption}`,I=je(k,e)&&Lt(k,`${e}.amount`)!=null,O=je(k,e)&&Lt(k,`${e}.currency`)!=null,Y=h===!0?I||O:!1,R=!Y&&w===!1;return v.useEffect(()=>{R===!1&&f(!0)},[R]),t.jsx(sn,{onClickAway:()=>p===!1&&!Y&&f(!1),children:t.jsx(Vo,{style:C,isDisabled:p,tabIndex:R&&!p?0:void 0,onClick:()=>p===!1&&f(!0),"data-testid":q("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[x?.amount!=null?t.jsx(Ai,{className:"amount-field",isVisible:R,children:P}):t.jsx(Ai,{className:"amount-field amount-placeholder",isVisible:R,children:o?.name}),t.jsxs(_o,{isVisible:!R,children:[t.jsx(Do,{type:"number",name:`${e}.amount`,defaultValue:r?.amount,placeholder:o?.amount,returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:D=>D!=null?D>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:c,style:{display:"flex",flexGrow:1,width:Li.amounWidth.valuePercentage(s),cursor:"inherit"},bgColor:S.colors.background,isFieldError:I,shouldHighlightZeroAmount:!0}),R?null:t.jsx(qo,{}),t.jsx(Lo,{name:`${e}.currency`,registerOptions:{validate:D=>D!=null&&D.selectedOption!=null},defaultValue:{allOptions:u.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:S.colors.background},isDisabled:c,style:{width:Li.currencyWidth.valuePercentage(s),flexGrow:1},isOptionRemovable:!1})]})]})})})}const _o=n.div`
|
|
8
|
+
display: ${e=>e.isVisible?"flex":"none"};
|
|
9
|
+
width: 100%;
|
|
10
|
+
input {
|
|
11
|
+
text-align: left;
|
|
12
|
+
}
|
|
13
|
+
`,Vo=n.div`
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: flex-end;
|
|
17
|
+
position: relative;
|
|
18
|
+
width: 100%;
|
|
19
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
20
|
+
outline: none;
|
|
21
|
+
outline-width: 0;
|
|
22
|
+
input {
|
|
23
|
+
text-align: right;
|
|
24
|
+
}
|
|
25
|
+
`,qo=n.div`
|
|
26
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
27
|
+
min-width: ${i.sp3};
|
|
28
|
+
`,Ai=n(mn)`
|
|
29
|
+
display: ${e=>e.isVisible?"flex":"none"};
|
|
30
|
+
padding: 0 ${i.sp3};
|
|
31
|
+
border-radius: ${i.sp1};
|
|
32
|
+
height: 100%;
|
|
33
|
+
align-items: center;
|
|
34
|
+
width: 100%;
|
|
35
|
+
justify-content: flex-end;
|
|
36
|
+
color: ${e=>e.theme.colors.primary};
|
|
37
|
+
&.amount-placeholder {
|
|
38
|
+
color: ${e=>e.theme.colors.grey1};
|
|
39
|
+
}
|
|
40
|
+
`,Ue={width:new d(343,580,726),height:new d(a[6],a[6]),controlHeight:new d(a[6],a[6]),paddingTopBottom:new d(a[2],a[2]),marginRight:new d(a[2],a[2]),labelMarginLeft:new d(a[3],a[4]),labelMarginRight:new d(a[3],a[4]),labelMarginTop:new d(a[2],a[2])},wn={infoLabel:new hi("extraSmallRegular","smallRegular")};function Ho({isDisabled:e,label:o,currencyAmountField:r,style:c,errorInfoLabel:h,isAdditionalInfoLabelLoading:C,showAdditionalLabelTooltip:u=!1,additionalLabelTooltip:w,additionalInfoLabel:f,showAdditionalInfoLabel:l=!0}){const k=ze(),{formState:{errors:S}}=nt(),s=je(S,r.name)&&Lt(S,`${r.name}.amount`)!=null,p=je(S,r.name)&&Lt(S,`${r.name}.currency`)!=null,x=r.showAmountCurrencyError===!0?s||p:!1,P=s||p||x,I=()=>{if(C===!0)return t.jsx(Qo,{children:t.jsx(xt,{size:"Small",start:!0})});if(l&&f||x){let O=null;return u===!0&&l&&f&&(O=t.jsx(yn,{placement:k==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Xo,{children:w??""}),children:t.jsx(Zo,{children:t.jsx(ea,{})})})),t.jsxs(Jo,{size:k,isError:x,hasToolTip:u,children:[O,f]})}};return t.jsxs(Ko,{size:k,style:c,isDisabled:e!=null,isAmountError:s,isCurrencyError:p,"data-testid":q("labeled-currency-amount-field",r.name),children:[t.jsx(Io,{isDisabled:e,label:o.label,htmlFor:r.name,style:{marginLeft:Ue.labelMarginLeft.value(k),marginRight:Ue.labelMarginRight.value(k),marginTop:Ue.labelMarginTop.value(k),width:o.width??"auto"}}),t.jsxs(Yo,{labelWidth:o.width,children:[t.jsx(Uo,{...r,isDisabled:e,style:{flexGrow:1,height:Ue.controlHeight.value(k)}}),P?t.jsx(Go,{size:k,hasError:P,children:h}):null,I()]})]})}const Ko=n.div`
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: row;
|
|
43
|
+
align-items: flex-start;
|
|
44
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
45
|
+
width: ${e=>Ue.width.valuePx(e.size)};
|
|
46
|
+
min-height: ${e=>Ue.height.valuePx(e.size)};
|
|
47
|
+
padding-right: ${e=>Ue.marginRight.valuePx(e.size)};
|
|
48
|
+
padding-top: ${e=>Ue.paddingTopBottom.valuePx(e.size)};
|
|
49
|
+
padding-bottom: ${e=>Ue.paddingTopBottom.valuePx(e.size)};
|
|
50
|
+
|
|
51
|
+
:first-of-type {
|
|
52
|
+
border-top-left-radius: inherit;
|
|
53
|
+
border-top-right-radius: inherit;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:last-of-type {
|
|
57
|
+
border-bottom-left-radius: inherit;
|
|
58
|
+
border-bottom-right-radius: inherit;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:focus-within {
|
|
62
|
+
z-index: 2;
|
|
63
|
+
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
64
|
+
|
|
65
|
+
.amount-field {
|
|
66
|
+
background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.theme.colors.background};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
input:nth-of-type(1) {
|
|
70
|
+
background-color: ${e=>e.isAmountError?j.importantLight:e.theme.colors.background};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
input:nth-of-type(2) {
|
|
74
|
+
background-color: ${e=>e.isCurrencyError?j.importantLight:e.theme.colors.background};
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
input {
|
|
78
|
+
text-align: left;
|
|
79
|
+
background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.theme.colors.background};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
input:nth-of-type(1) {
|
|
83
|
+
background-color: ${e=>e.isAmountError?j.importantLight:e.theme.colors.background};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
input:nth-of-type(2) {
|
|
87
|
+
background-color: ${e=>e.isCurrencyError?j.importantLight:e.theme.colors.background};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&:hover {
|
|
91
|
+
z-index: 1;
|
|
92
|
+
outline: 1px solid
|
|
93
|
+
${e=>e.isDisabled===!0?e.theme.colors.grey3:e.theme.colors.primary};
|
|
94
|
+
input,
|
|
95
|
+
.amount-field {
|
|
96
|
+
background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.theme.colors.background};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
input:nth-of-type(1) {
|
|
100
|
+
background-color: ${e=>e.isAmountError?j.importantLight:e.theme.colors.background};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
input:nth-of-type(2) {
|
|
104
|
+
background-color: ${e=>e.isCurrencyError?j.importantLight:e.theme.colors.background};
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`,Go=n.label`
|
|
108
|
+
color: ${e=>e.hasError===!0?j.important:e.additionalInfoTextColor!=null?e.additionalInfoTextColor:e.theme.colors.grey1};
|
|
109
|
+
width: auto;
|
|
110
|
+
${e=>`${wn.infoLabel.style(e.size)}`};
|
|
111
|
+
padding-right: ${i.sp3};
|
|
112
|
+
text-align: right;
|
|
113
|
+
`,Yo=n.div`
|
|
114
|
+
display: flex;
|
|
115
|
+
width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
|
|
116
|
+
justify-content: flex-end;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
position: relative;
|
|
119
|
+
`,Xo=n(pi)`
|
|
120
|
+
padding: 12px;
|
|
121
|
+
color: ${e=>e.theme.colors.grey1};
|
|
122
|
+
background: ${e=>e.theme.colors.overlayColor};
|
|
123
|
+
border-radius: ${i.sp1};
|
|
124
|
+
`,Qo=n.div`
|
|
125
|
+
padding-right: ${i.sp3};
|
|
126
|
+
padding-top: ${i.sp1};
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: flex-end;
|
|
129
|
+
`,Jo=n.label`
|
|
130
|
+
display: flex;
|
|
131
|
+
justify-content: flex-end;
|
|
132
|
+
color: ${e=>e.isError?j.important:e.theme.colors.hero};
|
|
133
|
+
&:hover {
|
|
134
|
+
color: ${e=>e.isError?j.importantDark:e.theme.colors.primary};
|
|
135
|
+
}
|
|
136
|
+
${e=>`${wn.infoLabel.style(e.size)}`};
|
|
137
|
+
padding-right: ${i.sp3};
|
|
138
|
+
text-align: right;
|
|
139
|
+
margin-top: ${e=>e.hasToolTip===!0?i.sp1:i.sp0};
|
|
140
|
+
`,Zo=n.div`
|
|
141
|
+
display: flex;
|
|
142
|
+
margin-right: ${i.sp2};
|
|
143
|
+
margin-top: 2px;
|
|
144
|
+
align-items: center;
|
|
145
|
+
`,ea=n(To)`
|
|
146
|
+
width: ${i.sp3};
|
|
147
|
+
height: ${i.sp3};
|
|
148
|
+
color: inherit;
|
|
149
|
+
`,be=(e,o)=>`${e}.${o}`,Pt={largeLabelWidth:new d(120,120,160),smallLabelWidth:new d(85,85,160),paddingBottom:new d(a[3],a[2]),autoFillIconLeft:new d(-8,-24)},{dateFormat:ta,common:Sn,spendManagement:{reimbursement:{reimbursementDetail:te}}}=Se.getLocalizedStrings(),{strings:{empty:re}}=Sn,ia=(e,o)=>{const r=e.slice(1);let c=!1;return r.forEach(h=>{h.account?.qboId!=null&&h.account?.qboId===o&&(c=!0)}),c},na=e=>e.charAt(0).toLowerCase()+e.slice(1),oa=({lineIndex:e,outOfPocket:o,accountList:r,classList:c,merchantList:h,isAddReimbursementDisabled:C,sectionId:u,isReimbursementCommentingEnabled:w,isDisabled:f,autoFields:l=[],accountsHierarchyList:k,classHierarchyList:S,reimbursementId:s,tentativeMerchantName:p,allCurrencies:x,uncategorizedAccounts:P})=>{const I=ze(),O=ft(),Y=Bt(),R=bt(),{formState:{errors:D},getValues:z,trigger:le}=nt(),ie=z(be(u,"class")),se=c.find(y=>y.classId===ie?.selectedOption),Z=be(u,"class"),H=je(D,Z),F=z(be(u,"account")),X=r.find(y=>y.qboId===F?.selectedOption||y.accountId===F?.selectedOption),K=be(u,"account"),A=je(D,K);v.useEffect(()=>{ie?.selectedOption!=null&&(se?.isDeleted===!0||H)&&le(Z)},[ie?.selectedOption,se?.isDeleted,c]),v.useEffect(()=>{F?.selectedOption!=null&&(X?.isDeleted===!0||A)&&le(K)},[F?.selectedOption,X?.isDeleted,r]);const ne=o.isCategoryUpdateSelected!=null&&o.recommendedAccount!=null&&!o.isCategoryFirstTimeAutofilled&&!ia(o.recommendations,o.account),de=o.isRetainedCategorySelected!=null&&o.retainedAccount!=null,U=Pt.largeLabelWidth.value(I),pe=Pt.smallLabelWidth.value(I),Ne=h.map(y=>y.id??re),he={application:"dashboard",companyId:O.currentTenant?.companyId,tab:"reimbursement",entityId:s},fe=`dashboard_${O.currentTenant?.companyId}`,ce=y=>h.find(oe=>oe.id===y)?.name??y,Pe=r.find(y=>y.qboId===o.account),Oe=y=>[P.expense?.qboId,P.income?.qboId].includes(y),Re=c.find(y=>y.classId===o.class),ge={valueContainer:y=>({...y,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},Le=y=>r.filter(oe=>oe.qboId===y)[0]?.qboId,ye=y=>c.filter(oe=>oe.classId===y)[0]?.accountingClassNumber,Ce=Se.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",na(o?.recommendedAccount?.reason??re)),Ge=zt(k,o.recommendations);return t.jsxs(t.Fragment,{children:[p!=null||l.includes("merchant")?t.jsx(lt,{children:t.jsx(dt,{windowSize:I,children:t.jsx(st,{})})}):null,t.jsx($e,{isThreadAllowed:w&&s!=null,dashboardTabKey:ve({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:fe,companyId:O.currentTenant?.companyId??re,companyName:O.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...he,entityType:`reimbursement.details.${De("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:Y?.sharedRef?.contentWrapperRef,children:t.jsx(Ro,{isDisabled:f!=null||C?"disabled":void 0,label:{label:te.merchant,width:U},style:{width:"auto"},creatableSingleSelectField:{name:be(u,"merchant"),placeholder:te.merchantPlaceholder,defaultValue:{selectedOption:o.merchant??re,allOptions:Ne},registerOptions:{required:!0,validate:y=>!!y.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:ce})}),t.jsx(It,{}),l.includes("transactionDate")?t.jsx(lt,{children:t.jsx(dt,{windowSize:I,children:t.jsx(st,{})})}):null,t.jsx($e,{isThreadAllowed:w&&s!=null,dashboardTabKey:ve({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:fe,companyId:O.currentTenant?.companyId??re,companyName:O.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...he,entityType:`reimbursement.details.${De("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:Y?.sharedRef?.contentWrapperRef,children:t.jsx(bn,{isDisabled:f,label:{label:te.transactionDate,width:U},style:{paddingBottom:Pt.paddingBottom.valuePx(I),width:"auto"},dateField:{name:be(u,"transactionDate"),placeholder:te.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:ta.visual.defaultInput,autoComplete:"off",maxDate:ee.dateNow(),registerOptions:{required:!0,validate:y=>!!y}}})}),t.jsx(It,{}),l.includes("amount")?t.jsx(lt,{children:t.jsx(dt,{windowSize:I,isTwoLined:!0,children:t.jsx(st,{})})}):null,t.jsx($e,{isThreadAllowed:w&&s!=null,dashboardTabKey:ve({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:fe,companyId:O.currentTenant?.companyId??re,companyName:O.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...he,entityType:`reimbursement.details.${De("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:Y?.sharedRef?.contentWrapperRef,children:t.jsx(Ho,{isDisabled:f!=null||C?"disabled":void 0,label:{label:te.amount,width:pe},style:{width:"auto"},currencyAmountField:{style:{height:i.sp6},name:`${u}.amount`,defaultValue:{amount:o.amount.amount,currencyCode:o.amount.currencyCode,currencySymbol:o.amount.currencySymbol},placeHolder:{amount:te.addAmount,name:te.addAmount},allCurrencies:x,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:te.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:o.isConvertedCurrencyLoading===!0,additionalInfoLabel:!tn(o.homeCurrencyDetails,o.amount)&&o.amount.currencyCode!==Sn.currency.currencyCode&&o.homeCurrencyDetails?.amount!==0?`${ko("0,0[.]00",o.homeCurrencyDetails)} ${o.homeCurrencyDetails?.currencyCode}`:void 0})}),t.jsx(It,{}),l.includes("memo")?t.jsx(lt,{children:t.jsx(dt,{windowSize:I,children:t.jsx(st,{})})}):null,t.jsx($e,{isThreadAllowed:w&&s!=null,dashboardTabKey:ve({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:fe,companyId:O.currentTenant?.companyId??re,companyName:O.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...he,entityType:`reimbursement.details.${De("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:Y?.sharedRef?.contentWrapperRef,children:t.jsx(mi,{isDisabled:f,label:{label:te.memo,width:U},style:{width:"auto"},text:{type:"text",name:be(u,"memo"),placeholder:it(te.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:fn}}})}),t.jsx(It,{}),l.includes("account")?t.jsx(lt,{children:t.jsx(dt,{windowSize:I,children:t.jsx(st,{})})}):null,t.jsx($e,{isThreadAllowed:w&&s!=null,dashboardTabKey:ve({type:"details",key:`${e}.out_of_pocket.account`}),roomId:fe,companyId:O.currentTenant?.companyId??re,companyName:O.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...he,entityType:`reimbursement.details.${De("account",e,"out_of_pocket")}`},fieldThreadTargetElement:Y?.sharedRef?.contentWrapperRef,children:t.jsx(li,{label:{label:te.category,width:U},additionalLabelInfo:X?.isDeleted===!0&&je(D,be(u,"account"))?te.deletedCategoryError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:ne||de,name:be(u,"account"),placeholder:te.categoryPlaceholder,valueToId:y=>Le(y),defaultValue:{selectedOption:Pe?.qboId??Pe?.accountId,allOptions:Ge},style:{width:"100%"},customStyleConfig:ge,registerOptions:{required:!0,validate:y=>r.find(oe=>oe.qboId===y?.selectedOption||oe.accountId===y?.selectedOption)?.isDeleted===!0?te.deletedCategoryError:!0}},disableCurrentOption:Oe,style:{borderBottom:`1px solid ${R.colors.grey3}`,minHeight:i.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:o.isRecommendationLoading,recommendationCheckboxField:ne?{tooltipProps:{text:Ce},label:{label:o.recommendedAccount?.accountName??re},checkBoxField:{name:be(u,"isCategoryUpdateSelected"),defaultChecked:!!o.isCategoryUpdateSelected}}:void 0,retainCheckboxField:de?{label:{label:o.retainedAccount?.accountName??re},checkBoxField:{name:be(u,"isRetainedCategorySelected"),defaultChecked:!!o.isRetainedCategorySelected}}:void 0},be(u,"account"))}),l.includes("class")?t.jsx(lt,{children:t.jsx(dt,{windowSize:I,children:t.jsx(st,{})})}):null,t.jsx($e,{isThreadAllowed:w&&s!=null,dashboardTabKey:ve({type:"details",key:`${e}.out_of_pocket.class`}),roomId:fe,companyId:O.currentTenant?.companyId??re,companyName:O.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...he,entityType:`reimbursement.details.${De("class",e,"out_of_pocket")}`},fieldThreadTargetElement:Y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(li,{isLoading:!1,label:{label:te.department,width:U},additionalLabelInfo:se?.isDeleted===!0&&je(D,be(u,"class"))?te.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:be(u,"class"),placeholder:it(te.department),valueToId:y=>ye(y),defaultValue:{selectedOption:Re?.classId,allOptions:Ke(S,[])},style:{width:"100%"},customStyleConfig:ge,registerOptions:{required:!0,validate:y=>c.find(oe=>oe.classId===y?.selectedOption)?.isDeleted===!0?te.deletedClassError:!0}},style:{borderBottom:`1px solid ${R.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},be(u,"class"))})]})},lt=n.span`
|
|
150
|
+
position: relative;
|
|
151
|
+
`,st=n(ui)`
|
|
152
|
+
color: ${e=>e.theme.colors.primary};
|
|
153
|
+
width: ${i.sp3};
|
|
154
|
+
height: ${i.sp3};
|
|
155
|
+
`,dt=n.div`
|
|
156
|
+
z-index: 2;
|
|
157
|
+
left: ${e=>Pt.autoFillIconLeft.valuePx(e.windowSize)};
|
|
158
|
+
position: absolute;
|
|
159
|
+
top: ${e=>e.isTwoLined===!0?i.sp5:"22px"};
|
|
160
|
+
`,It=n.div`
|
|
161
|
+
display: flex;
|
|
162
|
+
flex: 1;
|
|
163
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
164
|
+
min-height: 1px;
|
|
165
|
+
max-height: 1px;
|
|
166
|
+
`,et=(e,o)=>`${e}.${o}`,_e={paddingTop:new d(a[5],a[4]),marginBottom:new d(a[3],a[3]),labelPaddingLeft:new d(a[3],a[4]),buttonWidth:new d(70,70),containerRightMargin:new d(a[3],a[8]),containerLeftMargin:new d(a[3],a[6]),deleteConfirmationTextMarginBottom:new d(a[2],a[0])},G=Se.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,aa=({lineData:e,currencyConversionState:o,recommendationFetchState:r,remiStage:c,lineIndex:h,accountList:C,classList:u,merchantList:w,hasFile:f,defaultCurrency:l,hasMultipleLineItems:k,fileRequiredLineIds:S,duplicateLineDetails:s,remiStatus:p,sectionId:x,isDisabled:P,isReimbursementCommentingEnabled:I,isAddReimbursementDisabled:O,style:Y,autoFields:R=[],analytics:D,reimbursementId:z,tentativeMerchantName:le,companyMileageConfigInfo:ie,uncategorizedAccounts:se,removeDuplicateReimbursementForLine:Z,scrollToSection:H,onDuplicateLineClick:F,onRemoveReimbursement:X,clearTentativeNameForLine:K,allCurrencies:A,accountsHierarchyList:ne,classHierarchyList:de})=>{const U=ze(),pe=ft(),Ne=Bt(),he=Se.getLocalizedStrings().common.strings.empty,fe={application:"dashboard",companyId:pe.currentTenant?.companyId,tab:"reimbursement",entityId:z},ce=`dashboard_${pe.currentTenant?.companyId}`,{getValues:Pe}=nt(),[Oe,Re]=v.useState(!1),ge=Pe(et(x,"reimbursementType"));return t.jsxs(ma,{style:Y,windowSize:U,children:[t.jsxs(la,{hasFile:f,windowSize:U,showDeleteConfirmation:Oe,children:[t.jsx(ha,{windowSize:U,children:k?`#${h+1} ${G.reimbursement}`:G.reimbursement}),Oe?t.jsxs(ua,{windowSize:U,children:[t.jsx(ca,{windowSize:U,children:G.deleteConfirmation}),t.jsxs(ra,{children:[t.jsx(Ti,{label:G.buttons.cancel,onClick:()=>Re(!1),style:{width:_e.buttonWidth.value(U),marginLeft:U==="small"?i.sp0:i.sp4,marginRight:i.sp3},size:"small",variant:"secondary","data-testid":q("delete-remi-button",G.buttons.cancel)}),t.jsx(Ti,{label:G.buttons.remove,onClick:()=>{D?.trackReimbursementDeleteReimbursementLine(e.lineId,z),K?.(e.lineId??"1"),Re(!1),Z(e.lineId),X(h)},style:{width:_e.buttonWidth.value(U)},size:"small",variant:"danger","data-testid":q("delete-remi-button",G.buttons.remove)})]})]}):k&&(c==="draft"||p==="rejected")?t.jsx(sa,{className:"deleteIconWrapper",windowSize:U,onClick:()=>Re(!0),"data-testid":q("delete-remi-button",e.lineId),children:t.jsx(yn,{enterDelay:600,title:G.deleteReimbursement,placement:"top-end",children:t.jsx(da,{})})}):null]}),S.includes(e.lineId)?t.jsx(rn,{title:G.missingReceipt,description:G.missingReceiptDescription,style:{marginBottom:i.sp3}}):null,t.jsxs(ga,{windowSize:U,children:[s?.duplicateLineId!=null?t.jsxs(pa,{children:[G.thisExpense," ",s.isDuplicateWithinTransaction?t.jsx(zi,{"data-testid":q("view-duplicate-transaction-expense"),onClick:()=>(D?.trackReimbursementViewDuplicateExpense(!0,z),H(s.duplicateLineId)),children:G.viewOriginalExpense}):t.jsx(zi,{"data-testid":q("view-duplicate-expense"),onClick:()=>{s.duplicateTransactionId!=null&&s.duplicateLineId!=null&&(D?.trackReimbursementViewDuplicateExpense(!1,z),F(s.duplicateTransactionId,s.duplicateLineId))},children:G.viewOriginalExpense})]}):null,t.jsx($e,{isThreadAllowed:I&&z!=null,dashboardTabKey:ve({type:"details",key:ge===G.mileageKey?`${h}.mileage.reimbursementType`:`${h}.out_of_pocket.reimbursementType`}),roomId:ce,companyId:pe.currentTenant?.companyId??he,companyName:pe.currentTenant?.companyName??he,entityId:z,dashboardOptionType:"reimbursement",filterMetaData:{...fe,entityType:`reimbursement.details.${De("reimbursementType",h,ge===G.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:Ne?.sharedRef?.contentWrapperRef,style:{borderRadius:s?.duplicateLineId!=null?"0 0 0 0":`${i.sp2} ${i.sp2} 0 0`},children:t.jsxs(ba,{isDisabled:P!=null,haveBorderRadius:s?.duplicateLineId==null,children:[t.jsx(ji,{isDisabled:P!=null||O?"disabled":void 0,isContainerClickable:!0,label:{label:G.outOfPocket},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:_e.labelPaddingLeft.value(U),borderTopLeftRadius:"inherit"},showOutline:!(I&&z!=null),radioField:{name:et(x,"reimbursementType"),id:`${et(x,"reimbursementType")}.${G.outOfPocketKey}`,value:G.outOfPocketKey}}),t.jsx(ya,{}),t.jsx(ji,{isDisabled:P!=null||O?"disabled":void 0,isContainerClickable:!0,label:{label:G.mileage},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:_e.labelPaddingLeft.value(U),borderTopRightRadius:"inherit"},showOutline:!(I&&z!=null),radioField:{name:et(x,"reimbursementType"),id:`${et(x,"reimbursementType")}.${G.mileageKey}`,value:G.mileageKey}})]})}),t.jsx(fa,{}),ge===G.outOfPocketKey?t.jsx(oa,{lineIndex:h,reimbursementId:z,uncategorizedAccounts:se,isReimbursementCommentingEnabled:I,isDisabled:P,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?ee.zeniDate(e.outOfPocket.transactionDate.toDateString()):void 0,account:e.outOfPocket.account.selectedOption,isConvertedCurrencyLoading:o?.fetchState==="In-Progress",isRecommendationLoading:r==="In-Progress",homeCurrencyDetails:e.homeCurrencyConversions,class:e.outOfPocket.class.selectedOption,amount:{amount:e.outOfPocket.amount?.amount??0,currencyCode:e.outOfPocket.amount?.currencyCode??"USD",currencySymbol:e.outOfPocket.amount?.currencySymbol??"$"},memo:e.outOfPocket.memo,merchant:e.outOfPocket.merchant.selectedOption,recommendations:e.outOfPocket.recommendations,recommendedAccount:e.outOfPocket.recommendedAccount,isCategoryUpdateSelected:e.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:e.outOfPocket.isCategoryFirstTimeAutofilled,retainedAccount:e.outOfPocket.retainedAccount,isRetainedCategorySelected:e.outOfPocket.isRetainedCategorySelected},sectionId:et(x,"outOfPocket"),accountList:C,classList:u,autoFields:R,merchantList:w,tentativeMerchantName:le,allCurrencies:A,isAddReimbursementDisabled:O,accountsHierarchyList:ne,classHierarchyList:de}):t.jsx(Wo,{lineIndex:h,reimbursementId:z,isReimbursementCommentingEnabled:I,isDisabled:P,mileage:{transactionDate:e.mileage.transactionDate!=null?ee.zeniDate(e.mileage.transactionDate.toDateString()):void 0,class:e.mileage.class.selectedOption,distanceInMiles:e.mileage.distanceInMiles,amount:{amount:e.mileage.amount?.amount??0,currencyCode:e.mileage.amount?.currencyCode??"USD",currencySymbol:e.mileage.amount?.currencySymbol??"$"},memo:e.mileage.memo},classList:u,sectionId:et(x,"mileage"),companyMileageConfigInfo:ie,defaultCurrency:l,isAddReimbursementDisabled:O,classHierarchyList:de})]})]})},ra=n.div``,la=n.div`
|
|
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
|
+
//https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
|
|
169
|
+
display: ${e=>e.hasFile&&e.windowSize==="small"?"none":"flex"};
|
|
170
|
+
justify-content: ${e=>e.windowSize==="small"?e.showDeleteConfirmation?"center":"flex-end":"space-between"};
|
|
171
|
+
margin-bottom: ${i.sp3};
|
|
172
|
+
align-items: center;
|
|
173
|
+
`,sa=n.div`
|
|
174
|
+
width: ${i.sp3};
|
|
175
|
+
height: ${i.sp3};
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
display: none;
|
|
178
|
+
color: ${e=>e.windowSize==="small"?j.important:e.theme.colors.hero};
|
|
179
|
+
&:hover {
|
|
180
|
+
color: ${j.important};
|
|
181
|
+
}
|
|
182
|
+
`,zi=n.span`
|
|
183
|
+
border-bottom: 1px solid currentColor;
|
|
184
|
+
cursor: pointer;
|
|
185
|
+
`,da=n(vo)`
|
|
186
|
+
width: ${i.sp3};
|
|
187
|
+
height: ${i.sp3};
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
`,ca=n.div`
|
|
190
|
+
margin-bottom: ${e=>_e.deleteConfirmationTextMarginBottom.valuePx(e.windowSize)};
|
|
191
|
+
`,ua=n(gi)`
|
|
192
|
+
color: ${e=>e.theme.colors.hero};
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
196
|
+
`,ma=n.div`
|
|
197
|
+
display: flex;
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
padding-top: ${e=>_e.paddingTop.valuePx(e.windowSize)};
|
|
200
|
+
margin-right: ${e=>_e.containerRightMargin.valuePx(e.windowSize)};
|
|
201
|
+
margin-left: ${e=>_e.containerLeftMargin.valuePx(e.windowSize)};
|
|
202
|
+
.deleteIconWrapper {
|
|
203
|
+
${e=>e.windowSize==="small"&&`
|
|
204
|
+
display: block;
|
|
205
|
+
`}
|
|
206
|
+
}
|
|
207
|
+
&:hover {
|
|
208
|
+
.deleteIconWrapper {
|
|
209
|
+
display: block;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
`,pa=n(Co)`
|
|
213
|
+
padding: ${i.sp2} ${i.sp0} ${i.sp2} ${i.sp4};
|
|
214
|
+
background-color: ${j.alertLight};
|
|
215
|
+
color: ${j.brandColorGoldDark};
|
|
216
|
+
border-top-left-radius: inherit;
|
|
217
|
+
border-top-right-radius: inherit;
|
|
218
|
+
`,ha=n(Mt)`
|
|
219
|
+
color: ${e=>e.theme.colors.primary};
|
|
220
|
+
display: ${e=>e.windowSize==="small"?"none":"unset"};
|
|
221
|
+
`,ga=n.div`
|
|
222
|
+
display: flex;
|
|
223
|
+
flex-direction: column;
|
|
224
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
225
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
226
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
227
|
+
border-radius: ${i.sp2};
|
|
228
|
+
margin-bottom: ${e=>_e.marginBottom.valuePx(e.windowSize)};
|
|
229
|
+
`,ya=n.div`
|
|
230
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
231
|
+
min-width: 1px;
|
|
232
|
+
max-width: 1px;
|
|
233
|
+
`,ba=n.div`
|
|
234
|
+
display: flex;
|
|
235
|
+
flex-direction: row;
|
|
236
|
+
border-top-left-radius: ${e=>e.haveBorderRadius?"inherit":"unset"};
|
|
237
|
+
border-top-right-radius: ${e=>e.haveBorderRadius?"inherit":"unset"};
|
|
238
|
+
`,fa=n.div`
|
|
239
|
+
display: flex;
|
|
240
|
+
flex: 1;
|
|
241
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
242
|
+
min-height: 1px;
|
|
243
|
+
max-height: 1px;
|
|
244
|
+
`,xa=(e,o)=>`${e}.${o}`,ct={labelWidth:new d(120,160,160),paddingBottom:new d(a[3],a[3]),paddingTop:new d(12,a[3]),marginBottom:new d(12,a[3]),containerRightMargin:new d(a[3],a[8]),containerLeftMargin:new d(a[3],a[6])},$n=({isReimbursementCommentingEnabled:e,sectionId:o,isDisabled:r,reportTitle:c,reimbursementId:h,style:C})=>{const u=ze(),w=ft(),f=Bt(),l=`dashboard_${w.currentTenant?.companyId}`,k=Se.getLocalizedStrings(),S=k.spendManagement.reimbursement.reimbursementDetail,s=k.common.strings.empty,p=ct.labelWidth.value(u);return t.jsxs(wa,{style:C,windowSize:u,children:[t.jsx($a,{windowSize:u,children:S.whatFor}),t.jsx(Sa,{children:t.jsx($e,{isThreadAllowed:e&&h!=null,dashboardTabKey:ve({type:"details",key:"whatFor"}),roomId:l,companyId:w.currentTenant?.companyId??s,companyName:w.currentTenant?.companyName??s,entityId:h,dashboardOptionType:"reimbursement",filterMetaData:{application:"dashboard",companyId:w.currentTenant?.companyId,tab:"reimbursement",entityId:h,entityType:"reimbursement.details.whatFor"},fieldThreadTargetElement:f?.sharedRef?.contentWrapperRef,style:{borderRadius:i.sp2},children:t.jsx(mi,{isDisabled:r,label:{label:S.reportTitle,width:p},text:{type:"text",name:xa(o,"reportTitle"),placeholder:S.lunchWithClient,defaultValue:c,autoComplete:"off",options:{required:!0,validate:x=>!!x}},style:{width:"auto",borderRadius:i.sp2}})})})]})},wa=n.div`
|
|
245
|
+
display: flex;
|
|
246
|
+
flex-direction: column;
|
|
247
|
+
padding-top: ${e=>ct.paddingTop.valuePx(e.windowSize)};
|
|
248
|
+
padding-bottom: ${e=>ct.paddingBottom.valuePx(e.windowSize)};
|
|
249
|
+
margin-right: ${e=>ct.containerRightMargin.valuePx(e.windowSize)};
|
|
250
|
+
margin-left: ${e=>ct.containerLeftMargin.valuePx(e.windowSize)};
|
|
251
|
+
`,Sa=n.div`
|
|
252
|
+
display: flex;
|
|
253
|
+
flex-direction: column;
|
|
254
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
255
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
256
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
257
|
+
border-radius: ${i.sp2};
|
|
258
|
+
`,$a=n(Mt)`
|
|
259
|
+
color: ${e=>e.theme.colors.primary};
|
|
260
|
+
margin-bottom: ${e=>ct.marginBottom.valuePx(e.windowSize)};
|
|
261
|
+
`,E={largeLabelWidth:new d(120,120,220),marginTop:new d(28,8),paymentToMarginTop:new d(0,a[4]),marginBottom:new d(a[5],a[4]),paymentToMarginBottom:new d(12,a[3]),totalMarginBottom:new d(a[3],a[3]),reimbursementSectionLeftMargin:new d(a[3],a[6]),reimbursementSectionRightMargin:new d(a[3],a[8]),invoiceSectionLeftMargin:new d(a[3],a[8]),invoiceSectionRightMargin:new d(a[3],a[6]),rightSectionWidth:new d(100,58),firstOrLastItemHeight:new d(390,760),itemHeight:new d(390,459),duplicateBannerWrapperMarginTop:new d(a[5],a[3]),duplicateBannerWrapperMarginRight:new d(a[3],a[8]),duplicateBannerWrapperMarginBottom:new d(a[5],a[3]),duplicateBannerWrapperMarginLeft:new d(a[3],a[6])},va={total:new hi("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:V},billPay:{vendorCreation:{achDetails:Dt}}},common:{currency:{currencyCode:Tt}}}=Se.getLocalizedStrings(),vn=e=>{let o=0,r=Tt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const c=e;o=c.outOfPocket.amount??0,r=c.outOfPocket.currencyCode??Tt}else{const c=e;o=c.outOfPocket.amount?.amount??0,r=c.outOfPocket.amount?.currencyCode??Tt}return(e.homeCurrencyConversions?.currencyCode??Tt)!==r&&(o=e.homeCurrencyConversions?.amount??0),o},Ca=({remiUploadStatus:e,progressSectionObj:o,reimbursementId:r,createDate:c,scheduleDate:h,paymentDate:C,hasDuplicateLine:u,approvedDate:w,isFirstOrLastListItem:f,index:l,reimbursementSectionRef:k,showSkipAutoFill:S,lineData:s,currencyConversionState:p,authParams:x,uploadInvoiceEndPoint:P,accountList:I,classList:O,merchantList:Y,remiStage:R,autoFieldsByLineId:D,isReimbursementCommentingEnabled:z,isAutoFieldsExist:le,totalAmount:ie,showTotalAmountLoader:se,totalNumberOfLines:Z,defaultCurrency:H,bankAccounts:F,fileRequiredLineIds:X,isAddReimbursementDisabled:K,duplicateLineByLineId:A,remiStatus:ne,file:de,uncategorizedAccounts:U,reportTitle:pe,recommendationFetchState:Ne,tentativeMerchantName:he,paymentTo:fe,analytics:ce,companyMileageConfigInfo:Pe,loggedInUserDepartmentId:Oe,isSignedInUserReimbursementCreator:Re,setShowBankAccountPage:ge,setRefByLineId:Le,setCurrentLineIdForUpload:ye,onDuplicateLineClick:Ce,setUploadedReceiptPayload:Ge,removeDuplicateReimbursementForLine:y,onReceiptsUpload:oe,scrollToSection:ot,onRemoveReimbursement:Ve,onAddReimbursement:Ae,clearTentativeNameForLine:Ye,onReplaceClick:Be,onDeleteBankAccount:qe,updateInvoiceUploadFetchState:He,removeFileFromLine:Xe,allCurrencies:Qe,accountsHierarchyList:ae,classHierarchyList:at})=>{const{formState:{errors:ut}}=nt(),Je=v.useRef(null);v.useEffect(()=>(Le(B=>({...B,[`L${s.lineId}`]:Je.current})),()=>{Le(B=>({...B,[`L${s.lineId}`]:null}))}),[s.lineId,Le]);const _=ze(),mt=R==="draft"?V.newReimbursementTitle:V.editReimbursementTitle,N=E.largeLabelWidth.value(_),ue=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,wt=F.map(B=>B.bankAccountId),ke=s.reimbursementType===V.outOfPocketKey&&vn(s)>=75&&de==null;return t.jsxs(_a,{ref:k,windowSize:_,children:[t.jsx(Va,{ref:B=>{B!=null&&(Je.current=B)},windowSize:_,bottomSeperator:Z!==1,showSkipAutoFill:S,isFirstItem:l===0,children:t.jsx(xn,{customError:ke?V.requireReceipt:void 0,analytics:ce,showAutofill:!1,uploadInvoiceEndPoint:P,authParams:x,entityId:K?"":void 0,file:de,style:{width:"auto",padding:0,height:f?E.firstOrLastItemHeight.valuePx(_):E.itemHeight.valuePx(_),margin:_==="small"?i.sp0:void 0},updateInvoiceUploadFetchState:He,onInvoiceUpload:B=>{s.reimbursementType===V.outOfPocketKey&&!ue(s)?(ye(Number(s.lineId)),Ge(B),Be?.()):oe(B,Number(s.lineId),!0)},dropFilePlaceholder:{upload:V.dropReceipt.upload,receipt:V.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!K,pdfTitle:Z>1?`#${l+1} Receipt`:"Receipt",onDeleteClick:()=>{He?.("In-Progress"),setTimeout(()=>Xe?.(Number(s.lineId)))},onReplaceClick:()=>{ye(Number(s.lineId)),Be?.()},allowMultiFiles:Z===l+1,type:"receipt"})}),t.jsxs(Ua,{windowSize:_,children:[l===0&&_!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(La,{children:mt}),t.jsx(qa,{children:t.jsx(fo,{progressSectionObj:o,createDate:c,paymentDate:C,scheduleDate:h,approvedDate:w,isBillUploaded:r!=null?!0:e==="Completed"})}),le&&t.jsxs(Da,{children:[t.jsx(ka,{}),t.jsx(Ra,{children:V.banner})]}),u&&t.jsxs(Ta,{size:_,children:[t.jsx(Ia,{}),t.jsxs(Pa,{children:[t.jsx(ja,{children:V.thereSeems}),t.jsx(Oa,{children:V.pleaseFind})]})]}),t.jsx($n,{isReimbursementCommentingEnabled:z,sectionId:At,reportTitle:pe,reimbursementId:r})]}):null,t.jsx(aa,{analytics:ce,reimbursementId:r,onDuplicateLineClick:Ce,uncategorizedAccounts:U,sectionId:`${yi}.${l}`,scrollToSection:ot,lineIndex:l,lineData:s,accountList:I,classList:O,merchantList:Y,autoFields:s.lineId!=null?D[s.lineId]:[],currencyConversionState:p,recommendationFetchState:Ne,onRemoveReimbursement:Ve,hasMultipleLineItems:Z>1,clearTentativeNameForLine:Ye,tentativeMerchantName:he,hasFile:de!=null,companyMileageConfigInfo:Pe,defaultCurrency:H,remiStage:R,remiStatus:ne,fileRequiredLineIds:X,allCurrencies:Qe,isReimbursementCommentingEnabled:z,isAddReimbursementDisabled:K,accountsHierarchyList:ae,classHierarchyList:at,duplicateLineDetails:A[s.lineId],removeDuplicateReimbursementForLine:y}),Z!==1&&Z===l+1&&t.jsxs(t.Fragment,{children:[t.jsxs(za,{windowSize:_,children:[t.jsx(Ba,{children:V.total}),se?t.jsx(Ma,{windowSize:_,children:t.jsx(Fa,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(cn,{amount:ee.toAmount(ie,"USD","$"),integerStyles:Rt.h6Regular.cssObject,decimalStyles:Rt.standardRegular.cssObject})]}),t.jsxs(Na,{windowSize:_,onClick:()=>{K===!1&&Ae()},isDisabled:K,"data-testid":q("add-reimbursement-row"),children:[t.jsx(Mi,{}),t.jsx(Bi,{children:V.addReimbursement})]}),Re?t.jsxs(t.Fragment,{children:[t.jsx(Aa,{windowSize:_,children:V.receivePaymentTo}),t.jsx(Ea,{windowSize:_,shouldDisplay:F.length>0,children:t.jsx(un,{label:{label:V.yourBankAccount,width:N},style:{width:"auto"},singleSelectField:{singleSelect:{name:yt,placeholder:it(V.yourBankAccount),showValueEyeIcon:!K,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:qe,getTooltipInfo:B=>Cn(F,B),onClickCreateBankAccount:()=>ge(!0),getLabelForId:B=>In(F,B),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:K?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:fe,allOptions:wt},registerOptions:{required:!0,validate:B=>!!B.selectedOption}},isFunctional:!0})}),t.jsxs(Wa,{shouldDisplay:F.length===0,windowSize:_,hasError:je(ut,yt),onClick:()=>{K===!1&&ge(!0)},isDisabled:K,"data-testid":q("remi-add-bank-account-container"),children:[t.jsx(Mi,{}),t.jsx(Bi,{children:V.addBankAccount})]})]}):null]})]})]})},Cn=(e,o)=>{const r=kn(e,o);return r==null?`${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}`},kn=(e,o)=>e.find(r=>r.bankAccountId===o),In=(e,o)=>{const r=kn(e,o);return r==null?V.selectBankAccount:r.bankAccountName?r.bankAccountName:r.maskedAccountNumber?r.maskedAccountNumber:r.bankName&&r.bankAccountNumber?`${r.bankName} ${V.accountNameConnector}${r.bankAccountNumber.slice(r.bankAccountNumber.length-4)}`:V.selectBankAccount},ka=n(ui)`
|
|
264
|
+
color: ${e=>e.theme.colors.primary};
|
|
265
|
+
width: ${i.sp3};
|
|
266
|
+
height: ${i.sp3};
|
|
267
|
+
`,Ia=n($o)`
|
|
268
|
+
width: ${i.sp4};
|
|
269
|
+
height: ${i.sp4};
|
|
270
|
+
color: ${j.brandColorGoldDark};
|
|
271
|
+
`,Da=n.div`
|
|
272
|
+
display: flex;
|
|
273
|
+
gap: ${i.sp2};
|
|
274
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
275
|
+
padding: ${i.sp3};
|
|
276
|
+
border-radius: ${i.sp2};
|
|
277
|
+
align-items: center;
|
|
278
|
+
margin: 0 ${i.sp8} 0 ${i.sp6};
|
|
279
|
+
`,Ta=n.div`
|
|
280
|
+
display: flex;
|
|
281
|
+
gap: ${i.sp2};
|
|
282
|
+
padding: ${i.sp3};
|
|
283
|
+
border-radius: ${i.sp2};
|
|
284
|
+
align-items: start;
|
|
285
|
+
margin-top: ${e=>E.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
286
|
+
margin-right: ${e=>E.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
287
|
+
margin-bottom: ${e=>E.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
288
|
+
margin-left: ${e=>E.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
289
|
+
background-color: ${j.alertLight};
|
|
290
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
291
|
+
`,ja=n(Ft)`
|
|
292
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
293
|
+
`,Pa=n.div`
|
|
294
|
+
width: 100%;
|
|
295
|
+
`,Oa=n(gi)`
|
|
296
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
297
|
+
`,Ra=n.span`
|
|
298
|
+
color: ${e=>e.theme.colors.hero};
|
|
299
|
+
`,La=n(So)`
|
|
300
|
+
letter-spacing: -0.02em;
|
|
301
|
+
color: ${e=>e.theme.colors.primary};
|
|
302
|
+
margin: ${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6};
|
|
303
|
+
`,Aa=n(Mt)`
|
|
304
|
+
letter-spacing: -0.02em;
|
|
305
|
+
color: ${e=>e.theme.colors.primary};
|
|
306
|
+
margin-top: ${e=>E.paymentToMarginTop.valuePx(e.windowSize)};
|
|
307
|
+
margin-bottom: ${e=>E.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
308
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
309
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
310
|
+
`,za=n.div`
|
|
311
|
+
padding: ${i.sp3};
|
|
312
|
+
display: flex;
|
|
313
|
+
align-items: center;
|
|
314
|
+
justify-content: space-between;
|
|
315
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
316
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
317
|
+
border-radius: ${i.sp2};
|
|
318
|
+
color: ${e=>e.theme.colors.hero};
|
|
319
|
+
margin-top: ${e=>E.totalMarginBottom.valuePx(e.windowSize)};
|
|
320
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
321
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
322
|
+
margin-bottom: ${e=>E.totalMarginBottom.valuePx(e.windowSize)};
|
|
323
|
+
justify-content: space-between;
|
|
324
|
+
`,Ba=n(pn)`
|
|
325
|
+
display: flex;
|
|
326
|
+
width: 176px;
|
|
327
|
+
color: ${e=>e.theme.colors.primary};
|
|
328
|
+
`,Ma=n(hn)`
|
|
329
|
+
display: flex;
|
|
330
|
+
width: calc(100% - 176px);
|
|
331
|
+
justify-content: flex-end;
|
|
332
|
+
color: ${e=>e.theme.colors.primary};
|
|
333
|
+
${e=>`${va.total.style(e.windowSize)}`};
|
|
334
|
+
`,Fa=n.div`
|
|
335
|
+
padding-right: ${i.sp3};
|
|
336
|
+
height: 30px;
|
|
337
|
+
display: flex;
|
|
338
|
+
justify-content: flex-end;
|
|
339
|
+
`,Ea=n.div`
|
|
340
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
341
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
342
|
+
margin-bottom: ${i.sp3};
|
|
343
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
344
|
+
border-radius: ${i.sp2};
|
|
345
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
346
|
+
display: ${e=>e.shouldDisplay?"unset":"none"};
|
|
347
|
+
`,Na=n.div`
|
|
348
|
+
padding: ${i.sp3};
|
|
349
|
+
display: flex;
|
|
350
|
+
align-items: center;
|
|
351
|
+
justify-content: center;
|
|
352
|
+
border: 1px solid
|
|
353
|
+
${e=>e.hasError===!0?j.important:e.theme.colors.hero};
|
|
354
|
+
border-radius: ${i.sp2};
|
|
355
|
+
color: ${e=>e.hasError===!0?j.important:e.theme.colors.hero};
|
|
356
|
+
cursor: ${e=>e.isDisabled?"default":"pointer"};
|
|
357
|
+
&:hover {
|
|
358
|
+
color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
359
|
+
border: 1px solid
|
|
360
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
361
|
+
}
|
|
362
|
+
margin-top: ${e=>E.totalMarginBottom.valuePx(e.windowSize)};
|
|
363
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
364
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
365
|
+
margin-bottom: ${e=>E.marginBottom.valuePx(e.windowSize)};
|
|
366
|
+
`,Wa=n.div`
|
|
367
|
+
padding: ${i.sp3};
|
|
368
|
+
display: ${e=>e.shouldDisplay?"flex":"none"};
|
|
369
|
+
align-items: center;
|
|
370
|
+
justify-content: center;
|
|
371
|
+
border: 1px solid
|
|
372
|
+
${e=>e.hasError===!0?j.important:e.theme.colors.hero};
|
|
373
|
+
border-radius: ${i.sp2};
|
|
374
|
+
color: ${e=>e.hasError===!0?j.important:e.theme.colors.hero};
|
|
375
|
+
cursor: pointer;
|
|
376
|
+
&:hover {
|
|
377
|
+
color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
378
|
+
border: 1px solid
|
|
379
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
380
|
+
}
|
|
381
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
382
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
383
|
+
margin-bottom: ${e=>E.marginBottom.valuePx(e.windowSize)};
|
|
384
|
+
`,Bi=n(Ft)`
|
|
385
|
+
color: inherit;
|
|
386
|
+
`,Mi=n(gn)`
|
|
387
|
+
margin-right: ${i.sp2};
|
|
388
|
+
width: ${i.sp3};
|
|
389
|
+
height: ${i.sp3};
|
|
390
|
+
`,Ua=n.div`
|
|
391
|
+
display: flex;
|
|
392
|
+
flex-direction: column;
|
|
393
|
+
width: ${e=>E.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
394
|
+
`,_a=n.div`
|
|
395
|
+
display: flex;
|
|
396
|
+
width: 100%;
|
|
397
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
398
|
+
`,Va=n.div`
|
|
399
|
+
height: 100%;
|
|
400
|
+
background: ${e=>e.theme.colors.grey3};
|
|
401
|
+
border-radius: ${i.sp2};
|
|
402
|
+
width: ${e=>e.windowSize==="small"?"auto":"42%"};
|
|
403
|
+
margin-left: ${e=>E.invoiceSectionLeftMargin.valuePx(e.windowSize)};
|
|
404
|
+
margin-right: ${e=>E.invoiceSectionRightMargin.valuePx(e.windowSize)};
|
|
405
|
+
visibility: ${e=>e.showSkipAutoFill?"hidden":"unset"};
|
|
406
|
+
margin-bottom: ${e=>e.bottomSeperator===!0&&e.windowSize!=="small"?e.isFirstItem?"102px":i.sp10:0};
|
|
407
|
+
margin-top: ${e=>E.marginTop.valuePx(e.windowSize)};
|
|
408
|
+
`,qa=n.div`
|
|
409
|
+
padding: ${i.sp2} ${i.sp8} ${i.sp0} ${i.sp6};
|
|
410
|
+
`,Ha={total:new hi("largeMedium","h6Medium")},Q={largeLabelWidth:new d(120,120,220),marginBottom:new d(a[5],a[4]),addBankAccountMarginBottom:new d(a[5],a[5]),marginTop:new d(a[0],78),paymentToMarginTop:new d(0,a[4]),totalMarginBottom:new d(a[3],a[3]),rightMargin:new d(a[3],a[8]),leftMargin:new d(a[3],a[6]),paymentToMarginBottom:new d(12,a[3])},tt=Se.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,Ka=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:c,showSkipAutoFill:h,isReimbursementCommentingEnabled:C,isAutoFieldsExist:u,totalAmount:w,defaultCurrency:f,hasDuplicateLine:l,bankAccounts:k,fileRequiredLineIds:S,companyMileageConfigInfo:s,analytics:p,reimbursementId:x,currencyConversionStatus:P,setShowSkipAutoFill:I,setShowBankAccountPage:O,removeDuplicateReimbursementForLine:Y,onReceiptsUpload:R,setCurrentLineIdForUpload:D,onDuplicateLineClick:z,setUploadedReceiptPayload:le,removeFileFromLine:ie,onReplaceClick:se,updateInvoiceUploadFetchState:Z,clearTentativeNameForLine:H,onDeleteBankAccount:F,uncategorizedAccounts:X,isSignedInUserReimbursementCreator:K,duplicateLineByLineId:A,showTotalAmountLoader:ne,scrollContainerRef:de})=>{const{control:U,formState:{errors:pe}}=nt(),{fields:Ne,append:he,remove:fe}=uo({name:yi,control:U}),ce=Ne,Pe=v.useRef(null),Oe=N=>{setTimeout(()=>{fe(N)})},{tentativeMerchantNameByLineId:Re,remiStage:ge,remiStatus:Le}=e,ye=!K||ge==="pending_approval"&&Le!=="rejected"&&o||ge==="pending_approval"&&Le==="rejected",Ce=ye?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:k,Ge=Ce.map(N=>N.bankAccountId),y=ze(),oe=Q.largeLabelWidth.value(y),ot=e.whatForSection.reportTitle,Ve=e.accountList.accounts,Ae=e.accountsHierarchyList,Ye=e.classHierarchyList,Be=e.classList.classes,qe=e.merchantList.merchants,He=e.addRemiAutoFieldsByLineId,Xe=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(N=>Number(N)),0),Qe=()=>{const N=ce[ce.length-1],ue=Dn(ce.length,Number(N.lineId)>Xe?String(Number(N.lineId)+1):String(Xe+1),Ae,Ye,qe,f,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{he(ue,{shouldFocus:!1})}),D(Number(ue.lineId)),I(!0),setTimeout(()=>Oi(Pe.current,de?.current),50)},[ae,at]=v.useState({}),ut=v.useCallback(N=>{const ue=ae[`L${N}`];ue!=null&&Oi(ue,de?.current)},[ae,de]),Je=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,_=e.reimbursementInfo?.paymentDate!=null?ee.zeniDate(ee.getNextNthWorkingDay(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,mt=e.reimbursementInfo?.expectedDepositDate??_;return t.jsxs(Qa,{windowSize:y,showSkipAutoFill:h,children:[ce.map((N,ue)=>t.jsx(Ca,{removeDuplicateReimbursementForLine:Y,onDuplicateLineClick:z,scrollToSection:ut,setRefByLineId:at,duplicateLineByLineId:A,reimbursementId:x,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:X,progressSectionObj:Je,createDate:e.createTime,paymentDate:mt,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:ce.length-1===ue||ue===0,index:ue,reimbursementSectionRef:Pe,remiStage:ge,remiStatus:Le,authParams:r,file:N.file,uploadInvoiceEndPoint:c,showSkipAutoFill:h,lineData:N,currencyConversionState:P[N.lineId],recommendationFetchState:e.lineDetailSection[N.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:D,setUploadedReceiptPayload:le,onReplaceClick:se,onReceiptsUpload:R,removeFileFromLine:ie,isReimbursementCommentingEnabled:C,isAutoFieldsExist:u,reportTitle:ot,accountList:Ve,classList:Be,merchantList:qe,autoFieldsByLineId:He,onRemoveReimbursement:Oe,onAddReimbursement:Qe,totalAmount:w,showTotalAmountLoader:ne,hasDuplicateLine:l,totalNumberOfLines:ce.length,updateInvoiceUploadFetchState:Z,clearTentativeNameForLine:H,tentativeMerchantName:Re[N.lineId],companyMileageConfigInfo:s,defaultCurrency:f,setShowBankAccountPage:O,paymentTo:e.paymentTo,bankAccounts:Ce,onDeleteBankAccount:F,analytics:p,fileRequiredLineIds:S,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:ye,accountsHierarchyList:Ae,classHierarchyList:Ye,isSignedInUserReimbursementCreator:K},N.lineId)),ce.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(Qt,{children:[y!=="small"?t.jsx(Yt,{windowSize:y}):null,t.jsx(Xt,{windowSize:y,children:t.jsxs(Ja,{windowSize:y,children:[t.jsx(Za,{children:tt.total}),ne?t.jsx(tr,{windowSize:y,children:t.jsx(ir,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(cn,{amount:ee.toAmount(w,ee.defaultVendorCurrency.currencyCode,ee.defaultVendorCurrency.currencySymbol),integerStyles:Rt.h6Regular.cssObject,decimalStyles:Rt.standardRegular.cssObject})]})})]}),t.jsxs(Qt,{children:[y!=="small"?t.jsx(Yt,{windowSize:y}):null,t.jsx(Xt,{windowSize:y,children:t.jsxs(nr,{windowSize:y,onClick:()=>{ye===!1&&Qe()},isDisabled:ye,"data-testid":q("add-reimbursement-container"),children:[t.jsx(Ei,{}),t.jsx(Fi,{children:tt.addReimbursement})]})})]}),t.jsxs(Qt,{children:[y!=="small"?t.jsx(Yt,{windowSize:y}):null,K?t.jsxs(Xt,{windowSize:y,children:[t.jsx(er,{windowSize:y,children:tt.receivePaymentTo}),t.jsx(Xa,{windowSize:y,shouldDisplay:Ce.length>0,children:t.jsx(un,{label:{label:tt.yourBankAccount,width:oe},style:{width:"auto"},singleSelectField:{singleSelect:{name:yt,placeholder:it(tt.yourBankAccount),showValueEyeIcon:!ye,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:F,getTooltipInfo:N=>Cn(Ce,N),onClickCreateBankAccount:()=>O(!0),getLabelForId:N=>In(Ce,N),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:ye?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:Ge},registerOptions:{required:!0,validate:N=>!!N.selectedOption}},isFunctional:!0})}),t.jsxs(or,{shouldDisplay:Ce.length===0,windowSize:y,onClick:()=>{ye===!1&&O(!0)},hasError:je(pe,yt),isDisabled:ye,"data-testid":q("remi-add-bank-account-container"),children:[t.jsx(Ei,{}),t.jsx(Fi,{children:tt.addBankAccount})]})]}):null]})]})]})},Dn=(e,o,r,c,h,C,u,w)=>{const f=Ga(r,c,h,C,u,w);return{lineIndex:e,lineId:o,reimbursementType:tt.outOfPocketKey,file:void 0,outOfPocket:f,mileage:Ya(c,C,w)}},Ga=(e,o,r,c,h,C)=>({transactionDate:void 0,class:{allOptions:Ke(o,[]).map(u=>({...u,options:u.options.filter(w=>w.isDeleted!==!0)})),selectedOption:C},account:{allOptions:zt(e,[]).map(u=>({...u,options:u.options.filter(w=>w.isDeleted!==!0)})),selectedOption:void 0},amount:{amount:0,currencyCode:c.currencyCode,currencySymbol:c.currencySymbol,currency:{allOptions:h.map(u=>({label:`${u.currencyCode} - ${u.currency}`,value:u.currencyCode,countryCode:di(u.countryCode)})),selectedOption:c.currencyCode??Se.getLocalizedStrings().common.currency.currencyCode}},memo:void 0,merchant:{allOptions:r.map(u=>u.id).filter(u=>!!u),selectedOption:void 0},recommendations:[],isCategoryUpdateSelected:!1,isCategoryFirstTimeAutofilled:!1,isRetainedCategorySelected:!1}),Ya=(e,o,r)=>({transactionDate:void 0,class:{allOptions:Ke(e,[]).map(c=>({...c,options:c.options.filter(h=>h.isDeleted!==!0)})),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:o.currencyCode,currencySymbol:o.currencySymbol},memo:void 0}),Xa=n.div`
|
|
411
|
+
margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
|
|
412
|
+
margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
|
|
413
|
+
margin-bottom: ${e=>Q.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
414
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
415
|
+
border-radius: ${i.sp2};
|
|
416
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
417
|
+
display: ${e=>e.shouldDisplay?"inherit":"none"};
|
|
418
|
+
`,Yt=n.div`
|
|
419
|
+
width: ${e=>e.windowSize==="small"?"100%":"42%"};
|
|
420
|
+
`,Xt=n.div`
|
|
421
|
+
width: ${e=>e.windowSize==="small"?"100%":"58%"};
|
|
422
|
+
`,Qa=n.div`
|
|
423
|
+
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
424
|
+
flex-direction: column;
|
|
425
|
+
margin-top: ${e=>Q.marginTop.valuePx(e.windowSize)};
|
|
426
|
+
`,Ja=n.div`
|
|
427
|
+
padding: ${i.sp3};
|
|
428
|
+
display: flex;
|
|
429
|
+
align-items: center;
|
|
430
|
+
justify-content: space-between;
|
|
431
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
432
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
433
|
+
border-radius: ${i.sp2};
|
|
434
|
+
color: ${e=>e.theme.colors.hero};
|
|
435
|
+
margin-top: ${e=>Q.totalMarginBottom.valuePx(e.windowSize)};
|
|
436
|
+
margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
|
|
437
|
+
margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
|
|
438
|
+
margin-bottom: ${e=>Q.totalMarginBottom.valuePx(e.windowSize)};
|
|
439
|
+
`,Za=n(pn)`
|
|
440
|
+
display: flex;
|
|
441
|
+
width: 176px;
|
|
442
|
+
color: ${e=>e.theme.colors.primary};
|
|
443
|
+
`,er=n(Mt)`
|
|
444
|
+
color: ${e=>e.theme.colors.primary};
|
|
445
|
+
margin-top: ${e=>Q.paymentToMarginTop.valuePx(e.windowSize)};
|
|
446
|
+
margin-bottom: ${e=>Q.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
447
|
+
margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
|
|
448
|
+
margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
|
|
449
|
+
`,tr=n(hn)`
|
|
450
|
+
display: flex;
|
|
451
|
+
width: calc(100% - 176px);
|
|
452
|
+
justify-content: flex-end;
|
|
453
|
+
color: ${e=>e.theme.colors.primary};
|
|
454
|
+
${e=>`${Ha.total.style(e.windowSize)}`};
|
|
455
|
+
`,ir=n.div`
|
|
456
|
+
padding-right: ${i.sp3};
|
|
457
|
+
height: 30px;
|
|
458
|
+
display: flex;
|
|
459
|
+
justify-content: flex-end;
|
|
460
|
+
`,nr=n.div`
|
|
461
|
+
padding: ${i.sp3};
|
|
462
|
+
display: flex;
|
|
463
|
+
align-items: center;
|
|
464
|
+
justify-content: center;
|
|
465
|
+
border: 1px solid
|
|
466
|
+
${e=>e.hasError===!0?j.important:e.theme.colors.hero};
|
|
467
|
+
border-radius: ${i.sp2};
|
|
468
|
+
|
|
469
|
+
color: ${e=>e.hasError===!0?j.important:e.theme.colors.hero};
|
|
470
|
+
cursor: ${e=>e.isDisabled?"default":"pointer"};
|
|
471
|
+
&:hover {
|
|
472
|
+
color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
473
|
+
border: 1px solid
|
|
474
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
475
|
+
}
|
|
476
|
+
margin-top: ${e=>Q.totalMarginBottom.valuePx(e.windowSize)};
|
|
477
|
+
margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
|
|
478
|
+
margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
|
|
479
|
+
margin-bottom: ${e=>Q.marginBottom.valuePx(e.windowSize)};
|
|
480
|
+
`,or=n.div`
|
|
481
|
+
padding: ${i.sp3};
|
|
482
|
+
display: ${e=>e.shouldDisplay?"flex":"none"};
|
|
483
|
+
align-items: center;
|
|
484
|
+
justify-content: center;
|
|
485
|
+
border: 1px solid
|
|
486
|
+
${e=>e.hasError===!0?j.important:e.theme.colors.hero};
|
|
487
|
+
border-radius: ${i.sp2};
|
|
488
|
+
color: ${e=>e.hasError===!0?j.important:e.theme.colors.hero};
|
|
489
|
+
cursor: ${e=>e.isDisabled?"default":"pointer"};
|
|
490
|
+
&:hover {
|
|
491
|
+
color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
492
|
+
border: 1px solid
|
|
493
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
494
|
+
}
|
|
495
|
+
margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
|
|
496
|
+
margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
|
|
497
|
+
margin-bottom: ${e=>Q.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
498
|
+
`,Fi=n(Ft)`
|
|
499
|
+
color: inherit;
|
|
500
|
+
`,Ei=n(gn)`
|
|
501
|
+
margin-right: ${i.sp2};
|
|
502
|
+
width: ${i.sp3};
|
|
503
|
+
height: ${i.sp3};
|
|
504
|
+
`,Qt=n.div`
|
|
505
|
+
display: flex;
|
|
506
|
+
width: 100%;
|
|
507
|
+
`,Ee={buttonWidth:new d(140,140),paddingLeft:new d(a[3],a[6]),paddingRight:new d(a[3],a[8]),subTitleMarginbottom:new d(a[2],a[3]),orSeperatorTopBottomMargin:new d(a[6],44),iconWidthHeight:new d(20,a[4])},Ni="userBankAccountPage",Ot="bankAccountSection",ar=e=>({[Ot]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName}}),Wi=e=>`${e}_form`,rr=({bankAccountCreationState:e,setShowBankAccountPage:o,plaidConnectionDetails:r,onFetchLinkTokenClick:c,onEstablishConnectionClick:h,bankAccountToCreate:C,fetchBankNameByRoutingStatus:u,isDisabled:w,onSaveHandler:f,onUserBankDetailsUpdated:l,onFetchBankName:k,onBackClick:S})=>{const s=bt(),p=ze(),x=en({mode:"onBlur",reValidateMode:"onChange",defaultValues:v.useMemo(()=>ar(C),[C])}),P=v.useCallback(H=>{h?.(H),S()},[S,h]),I=r.link_account_no_microdeposit,{open:O}=po({token:I.linkToken??null,onSuccess:P});v.useEffect(()=>{(ee.zeniDate(new Date().toISOString()).isAfter(I.expiration)||I.linkToken==null)&&c?.("link_account_no_microdeposit")},[]);const[Y,R]=v.useState(!1),D=Se.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,z=Se.getLocalizedStrings().common.footer,le={onOkClick:()=>{R(!1),x.reset(),S()},onCancelClick:()=>{R(!1)}},ie=async(H,F)=>{const X=F[Ot].bankRoutingNumber;l(F),H===`${Ot}.bankRoutingNumber`&&X?.length===9&&xo.test(X)===!0&&k?.(X)};v.useEffect(()=>{const H=x.watch((F,{name:X})=>{X!=null&&F!=null&&ho(()=>ie(X,F))});return()=>{H.unsubscribe()}}),v.useEffect(()=>{e?.fetchState==="Completed"&&S()},[e?.fetchState,S,o]);const se=x.handleSubmit(H=>{u.fetchState!=="In-Progress"&&f()}),Z=s.mode==="light"?new Di(s.colors.brandColorJadeLight):new Di(s.colors.brandColorJadeDark);return t.jsxs(lr,{children:[t.jsxs(hr,{windowSize:p,children:[Y===!0?t.jsx(si,{titleComponent:t.jsx(an,{children:D.discardTitle}),descriptionComponent:t.jsx(on,{children:D.discardDescription}),primaryButtonText:D.buttons.delete,secondaryButtonText:D.buttons.cancel,action:le}):null,t.jsx(Bo,{header:D.addBankAccount,isDirty:x.formState.isDirty,onBackClick:S,setShowConfirmationPopup:R}),t.jsx(sr,{}),t.jsxs(gr,{size:p,children:[t.jsx(Ao,{onClick:()=>{x.reset(),O()},title:D.connectYourBank,subTitle:D.loginToBank,header:D.setupAchPayments,icon:{element:t.jsx(go,{width:Ee.iconWidthHeight.valuePx(p),height:Ee.iconWidthHeight.valuePx(p)}),color:Z},style:{width:"unset",rowGap:p==="small"?i.sp2:void 0}}),t.jsxs(dr,{windowSize:p,children:[t.jsx(cr,{}),t.jsx(mr,{children:t.jsx(pr,{children:D.or})})]}),t.jsx(ur,{windowSize:p,children:D.saveAccountManually})]}),t.jsx(yr,{size:p,children:t.jsx(nn,{...x,children:t.jsxs("form",{id:Wi(Ni),onSubmit:se,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(Mo,{warningText:D.accountExistWarning}):null,t.jsx(zo,{bankAccountToCreate:C,fetchBankNameByRoutingStatus:u,sectionId:Ot})]})})})]}),t.jsx(ln,{formId:Wi(Ni),primaryBtn:{label:D.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Ee.buttonWidth.value(p)},isDisabled:w!=null},cancelBtn:{label:z.cancel,style:{width:Ee.buttonWidth.value(p)},shouldResetOnCancel:!1,onClick:()=>{x.formState.isDirty?R(!0):(R(!1),x.reset(),S())}}})]})},lr=n.div`
|
|
508
|
+
display: flex;
|
|
509
|
+
flex-direction: column;
|
|
510
|
+
width: 100%;
|
|
511
|
+
height: 100%;
|
|
512
|
+
`,sr=n.div`
|
|
513
|
+
margin: ${i.sp2} 0;
|
|
514
|
+
position: relative;
|
|
515
|
+
`,dr=n.div`
|
|
516
|
+
margin: ${e=>Ee.orSeperatorTopBottomMargin.valuePx(e.windowSize)} 0;
|
|
517
|
+
position: relative;
|
|
518
|
+
`,cr=n.div`
|
|
519
|
+
background: ${e=>e.theme.colors.grey2};
|
|
520
|
+
height: 1px;
|
|
521
|
+
`,ur=n(wo)`
|
|
522
|
+
color: ${e=>e.theme.colors.primary};
|
|
523
|
+
margin-bottom: ${e=>Ee.subTitleMarginbottom.valuePx(e.windowSize)};
|
|
524
|
+
`,mr=n.div`
|
|
525
|
+
display: flex;
|
|
526
|
+
justify-content: center;
|
|
527
|
+
`,pr=n(pi)`
|
|
528
|
+
background: ${e=>e.theme.colors.background};
|
|
529
|
+
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
530
|
+
border-radius: ${i.sp5};
|
|
531
|
+
width: 43px;
|
|
532
|
+
height: 25px;
|
|
533
|
+
display: flex;
|
|
534
|
+
align-items: center;
|
|
535
|
+
justify-content: center;
|
|
536
|
+
color: ${e=>e.theme.colors.grey1};
|
|
537
|
+
top: -11px;
|
|
538
|
+
position: absolute;
|
|
539
|
+
`,hr=n.div`
|
|
540
|
+
display: flex;
|
|
541
|
+
flex-direction: column;
|
|
542
|
+
flex-grow: 1;
|
|
543
|
+
`,gr=n.div`
|
|
544
|
+
padding-left: ${e=>Ee.paddingLeft.valuePx(e.size)};
|
|
545
|
+
padding-right: ${e=>Ee.paddingRight.valuePx(e.size)};
|
|
546
|
+
`,yr=n.div`
|
|
547
|
+
padding-left: ${e=>Ee.paddingLeft.valuePx(e.size)};
|
|
548
|
+
padding-right: ${e=>Ee.paddingRight.valuePx(e.size)};
|
|
549
|
+
padding-bottom: ${i.sp3};
|
|
550
|
+
`,Te={containerWidth:new d(343,544),confirmationPopUpTitleMarginTop:new d(a[6],a[7]),confirmationPopUpTitlePaddingLeftRight:new d(a[5],a[8]),submitButtonWidth:new d(145,156),cancelButtonWidth:new d(121,121),errorLineItemGap:new d(a[2],12),styledCloseIconRight:new d(a[3],a[8])},{footer:Ui}=Se.getLocalizedStrings().common,we=Se.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,_i=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(qi,{});case"In-Progress":return t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(Tn,{});default:return t.jsx(qi,{})}},br=e=>{switch(e){case"Not-Started":return we.detectDuplicates;case"In-Progress":return we.detectingDuplicates;case"Completed":return we.noDuplicatesFound;default:return we.detectDuplicates}},fr=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:r,numberOfDuplicateLines:c,setShowDuplicatePopup:h,analytics:C,reimbursementId:u,submitReport:w,fetchDuplicateReimbursement:f,clearDuplicateReimbursementDetail:l,clearRemiSaveStatus:k})=>{const S=ze(),[s,p]=Ct.useState(!0),x=ri(e),P=ri(o);Ct.useEffect(()=>{setTimeout(()=>{s&&(p(!1),o==="Not-Started"&&f())},2e3)},[o,f,s]),Ct.useEffect(()=>{x==="In-Progress"&&e==="Completed"&&(l(),h(!1))},[e,x,h,l]),Ct.useEffect(()=>{P==="In-Progress"&&o==="Completed"&&!r&&w()},[P,o,r,w]);const I=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[I?t.jsx(xr,{size:S}):null,t.jsx(si,{action:{onOkClick:()=>{I?(l(),e==="Error"&&k(),p(!0)):(C?.trackReimbursementReviewDuplicateReportReimbursement(c,u),h(!1),ro())},onCancelClick:()=>{I?(l(),e==="Error"&&k(),h(!1)):(C?.trackReimbursementSubmitAnywayDuplicateReimbursement(c,u),w())}},shouldClickAway:I,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:I?Ui.resubmit:we.primaryButtonText,secondaryButtonText:I?Ui.cancel:we.secondaryButtonText,primaryButtonWidth:I?Te.cancelButtonWidth.value(S):Te.submitButtonWidth.value(S),secondaryButtonWidth:I?Te.cancelButtonWidth.value(S):Te.submitButtonWidth.value(S),descriptionComponent:t.jsx($r,{size:S,children:t.jsxs(wr,{hasDuplicate:r,duplicateReimbursementStatus:o,children:[t.jsxs(Zt,{isDisabled:!1,isSuccess:!s,children:[s?t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}}):t.jsx(Tn,{}),t.jsx(Jt,{isDisabled:!1,children:s?we.reviewingExpenses:we.reviewedAllExpenses})]}),r||o==="Error"?t.jsxs(Ki,{size:S,children:[t.jsx(Vi,{}),t.jsx(Hi,{children:o==="Error"?we.failedToDetect:`${c} ${we.duplicateExpensesFound}`})]}):t.jsxs(Zt,{isDisabled:o==="Not-Started",isSuccess:o==="Completed"&&c===0,children:[t.jsx(_i,{fetchState:o}),t.jsx(Jt,{isDisabled:o==="Not-Started",children:br(o)})]}),e==="Error"?t.jsxs(Ki,{size:S,children:[t.jsx(Vi,{}),t.jsx(Hi,{children:we.failedToSubmit})]}):r||o==="Error"?null:t.jsxs(Zt,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(_i,{fetchState:e}),t.jsx(Jt,{isDisabled:e==="Not-Started",children:e==="Not-Started"?we.submitReport:we.submittingReport})]})]})}),titleComponent:t.jsx(Sr,{size:S,children:we.title}),showFooter:r||I,containerStyle:{width:Te.containerWidth.value(S),maxWidth:"unset"}})]})},xr=n(dn)`
|
|
551
|
+
width: ${i.sp4};
|
|
552
|
+
height: ${i.sp4};
|
|
553
|
+
color: ${e=>e.theme.colors.hero};
|
|
554
|
+
position: fixed;
|
|
555
|
+
top: 19px;
|
|
556
|
+
right: ${e=>Te.styledCloseIconRight.valuePx(e.size)};
|
|
557
|
+
z-index: 11;
|
|
558
|
+
cursor: pointer;
|
|
559
|
+
&:hover {
|
|
560
|
+
color: ${e=>e.theme.colors.primary};
|
|
561
|
+
}
|
|
562
|
+
`,Vi=n(bo)`
|
|
563
|
+
width: ${i.sp4};
|
|
564
|
+
height: ${i.sp4};
|
|
565
|
+
min-width: ${i.sp4};
|
|
566
|
+
color: ${j.brandColorGoldDark};
|
|
567
|
+
`,qi=n(Fo)`
|
|
568
|
+
width: ${i.sp3};
|
|
569
|
+
height: ${i.sp3};
|
|
570
|
+
min-width: ${i.sp3};
|
|
571
|
+
color: ${e=>e.theme.colors.grey3};
|
|
572
|
+
`,Jt=n.div`
|
|
573
|
+
color: ${e=>e.isDisabled?e.theme.colors.grey2:e.theme.colors.primary};
|
|
574
|
+
text-align: left;
|
|
575
|
+
`,Hi=n.div`
|
|
576
|
+
color: ${j.brandColorGoldDark};
|
|
577
|
+
`,Zt=n.div`
|
|
578
|
+
display: flex;
|
|
579
|
+
align-items: center;
|
|
580
|
+
gap: ${e=>e.isSuccess?i.sp2:i.sp3};
|
|
581
|
+
border: 1px solid
|
|
582
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.theme.colors.primary};
|
|
583
|
+
padding: ${i.sp3};
|
|
584
|
+
border-radius: ${i.sp2};
|
|
585
|
+
`,wr=n.div`
|
|
586
|
+
display: flex;
|
|
587
|
+
flex-direction: column;
|
|
588
|
+
gap: ${i.sp3};
|
|
589
|
+
margin-bottom: ${e=>e.hasDuplicate||e.duplicateReimbursementStatus==="Error"?0:i.sp3};
|
|
590
|
+
`,Ki=n.div`
|
|
591
|
+
display: flex;
|
|
592
|
+
align-items: center;
|
|
593
|
+
gap: ${e=>Te.errorLineItemGap.valuePx(e.size)};
|
|
594
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGold};
|
|
595
|
+
background-color: ${j.alertLight};
|
|
596
|
+
padding: ${i.sp3};
|
|
597
|
+
border-radius: ${i.sp2};
|
|
598
|
+
text-align: left;
|
|
599
|
+
`,Sr=n(ci)`
|
|
600
|
+
margin-top: ${e=>Te.confirmationPopUpTitleMarginTop.valuePx(e.size)};
|
|
601
|
+
padding-left: ${e=>Te.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
602
|
+
padding-right: ${e=>Te.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
603
|
+
color: ${e=>e.theme.colors.primary};
|
|
604
|
+
word-break: break-word;
|
|
605
|
+
width: ${e=>e.size==="small"?"max-content":"-webkit-fill-available"};
|
|
606
|
+
`,$r=n(mn)`
|
|
607
|
+
color: ${e=>e.theme.colors.hero};
|
|
608
|
+
padding-left: ${e=>Te.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
609
|
+
padding-right: ${e=>Te.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
610
|
+
margin-bottom: ${i.sp5};
|
|
611
|
+
margin-top: ${i.sp4};
|
|
612
|
+
white-space: pre-line;
|
|
613
|
+
width: -webkit-fill-available;
|
|
614
|
+
`,Tn=n(yo)`
|
|
615
|
+
width: ${i.sp4};
|
|
616
|
+
height: ${i.sp4};
|
|
617
|
+
min-width: ${i.sp4};
|
|
618
|
+
color: ${j.success};
|
|
619
|
+
`,J={rightMargin:new d(a[3],a[8]),leftMargin:new d(a[3],a[6]),bottomMargin:new d(56,56),closeMarginTop:new d(0,19),closeMarginRight:new d(a[3],a[8]),rightSectionWidth:new d(100,58),leftSectionWidth:new d(100,42),footerButtonWidth:new d(120,165),right:new d(a[3],a[0]),actionsContainerRight:new d(a[0],a[6]),otherActionsContainerBottom:new d(58,44),duplicateBannerWrapperMarginTop:new d(a[5],a[3]),duplicateBannerWrapperMarginRight:new d(a[3],a[8]),duplicateBannerWrapperMarginBottom:new d(a[5],a[3]),duplicateBannerWrapperMarginLeft:new d(a[3],a[6]),navBarWidth:new d(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:b,bulkActions:Gi}},common:{currency:{currencyCode:We,currencySymbol:jt},texts:{comments:vr},strings:{empty:Cr}},collaboration:{threads:{placeholder:{addANewComment:kr,replyAComment:Ir},tooltip:{resolveComment:Dr,unResolveComment:Tr}}},dateFormat:Yi}=Se.getLocalizedStrings(),Xi="editReimbursementDetailPage",Qi=e=>`${e}_form`,jr=(e,o,r,c,h,C,u,w,f)=>{const l=e.outOfPocket,k=e.mileage,S=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??u.currencyCode,currencySymbol:e?.homeCurrencyConversions?.currencySymbol??u.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:Ke(r,[]).map(p=>({...p,options:p.options.filter(x=>x.isDeleted!==!0)})),selectedOption:l?.lineDetail?.class?.classId??f},account:{allOptions:zt(o,s).map(p=>({...p,options:p.options.filter(x=>x.isDeleted!==!0)})),selectedOption:l.lineDetail?.account?.qboId??l.lineDetail?.account?.accountId},amount:{amount:l?.amount??0,currencyCode:l?.currencyCode??u.currencyCode,currencySymbol:l?.currencySymbol??u.currencySymbol,currency:{allOptions:w.map(p=>({label:`${p.currencyCode} - ${p.currency}`,value:p.currencyCode,countryCode:di(p.countryCode)})),selectedOption:l?.currencyCode??u.currencyCode??We}},memo:l?.description??void 0,merchant:{allOptions:c.map(p=>p.id).filter(p=>!!p),selectedOption:S?.id?S?.id:S?.name?S?.name:e?.lineId!=null?h[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:Ke(r,[]).map(p=>({...p,options:p.options.filter(x=>x.isDeleted!==!0)})),selectedOption:k?.lineDetail?.class?.classId},distanceInMiles:k?.distanceMileage?.value,amount:{amount:k?.amount??0,currencyCode:k?.currencyCode??u.currencyCode,currencySymbol:k?.currencySymbol??u.currencySymbol},memo:k?.description}}},ei=(e,o,r)=>{const c=[];return Object.values(e.lineDetailSection).forEach((h,C)=>{h?.lineId!=null&&c.push(jr(h,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,C,o,e.allCurrencies,e.loggedInUserDepartmentId))}),c.length===0&&c.push(Dn(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[At]:{reportTitle:e.whatForSection.reportTitle},[yi]:c,[yt]:{selectedOption:e.paymentTo,allOptions:r.map(h=>h.bankAccountId)}}},ti=(e,o)=>{const r=c=>c.lineId==null||o[c.lineId]?.fetchState==="In-Progress"?0:(o[c.lineId]?.fetchState,c.type===b.mileageKey?c?.mileage?.amount??0:c?.outOfPocket?.currencyCode!==We&&c.homeCurrencyConversions?.amount!==c?.outOfPocket?.amount?c.homeCurrencyConversions?.amount??0:c?.outOfPocket?.amount??0);return Object.values(e).reduce((c,h)=>c+r(h),0)},ii=(e,o,r,c,h,C,u,w)=>{const f={};return e.lineInfo.forEach(l=>{const k=w.find(P=>P.classId===l.mileage.class.selectedOption),S=u.find(P=>P.qboId===l.outOfPocket.account.selectedOption||P.accountId===l.outOfPocket.account.selectedOption),s=w.find(P=>P.classId===l.outOfPocket.class.selectedOption),p=o.find(P=>P.id===l.outOfPocket.merchant.selectedOption),x=C.find(P=>P.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?ee.zeniDate(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??x,currencySymbol:l.mileage.amount?.currencySymbol??x,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:S},transactionDate:l.outOfPocket.transactionDate!=null?ee.zeniDate(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??x,currencySymbol:x,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:p?.id??"",name:p?.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:c,...r},currencyConversionStateByLineId:h,paymentTo:e.paymentTo.selectedOption}},Pl=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:c,uploadInvoiceEndPoint:h,isReimbursementCommentingEnabled:C,isUserAdmin:u,analytics:w,reimbursementId:f,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:S,bankAccounts:s,isSignedInUserReimbursementCreator:p,uncategorizedAccounts:x,bankAccountToCreate:P,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:O,onFetchBankName:Y,onSaveBankAccount:R,fetchDuplicateReimbursement:D,clearDuplicateReimbursementDetail:z,clearRemiSaveStatus:le,removeDuplicateReimbursementForLine:ie,onDuplicateLineClick:se,onExistingMerchantChange:Z,onNewMerchantChange:H,onReceiptsUpload:F,saveRemiDetails:X,submitRemiDetails:K,discardReimbursementDetailsFromLocalStore:A,onReimbursementDetailsChanged:ne,updateReimbursementType:de,onHomeCurrencyConversionUpdate:U,redirectToReimbursementListScreen:pe,redirectToReimbursementDetailScreen:Ne,deleteReimbursement:he,removeFileFromLine:fe,onZeniLogoClick:ce,onAmountChanged:Pe,updateInvoiceUploadFetchState:Oe,clearTentativeNameForLine:Re,onAddNewRule:ge,onFetchLinkTokenClick:Le,onEstablishConnectionClick:ye,deleteBankAccount:Ce,onBackClickFromBankAccountPage:Ge})=>{const y=v.useRef(null),oe=v.useRef(null),ot=ri(e.uploadStatus),Ve=bt(),Ae=ft(),[Ye,Be]=v.useState(!1),[qe,He]=v.useState(!1),[Xe,Qe]=v.useState("save"),[ae,at]=v.useState(ti(e.lineDetailSection,e.currencyConversionStatus)),[ut,Je]=v.useState(!1),[_,mt]=v.useState(null),[N,ue]=v.useState(!1),wt=`dashboard_${Ae.currentTenant?.companyId}`,ke=en({mode:"all",reValidateMode:"onChange",defaultValues:v.useMemo(()=>ei(e,r,s),[e,r,s]),values:v.useMemo(()=>ei(e,r,s),[e,r,s]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:B,dirtyFields:jn}=ke.formState,Pn=async(g,T)=>{const{lineInfo:m}=T,$=Number(g.split(".")[1]);if(g.includes("reportTitle")||g.includes("memo"))return;if(g.includes("reimbursementType")){const M=m[$].mileage,W=m[$].outOfPocket;m[$]={...m[$],outOfPocket:{transactionDate:W.transactionDate??void 0,class:{allOptions:W.class.allOptions??Ke(e.classHierarchyList,[]),selectedOption:W.class.selectedOption??void 0},account:{allOptions:W.account.allOptions??zt(e.accountsHierarchyList,[]).map(me=>({...me,options:me.options.filter(vt=>vt.isDeleted!==!0)})),selectedOption:W.account.selectedOption??void 0},amount:W.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(me=>({label:`${me.currencyCode} - ${me.currency}`,value:me.currencyCode,countryCode:di(me.countryCode)})),selectedOption:r.currencyCode??We}},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??Ke(e.classHierarchyList,[]),selectedOption:M.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:M.distanceInMiles,amount:{amount:M?.amount?.amount??0,currencyCode:M?.amount?.currencyCode??We,currencySymbol:M?.amount?.currencySymbol??jt},memo:M.memo??void 0}}}else if(g.includes("mileage.distanceInMiles")){const{distanceInMiles:M}=m[$].mileage,W=c?.mileageUnitAmount??0;m[$].mileage={...m[$].mileage,amount:{amount:M!=null?M*W:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(g.includes("outOfPocket.amount")&&m[$].lineId){const M=m[$].outOfPocket.amount,W=e.allCurrencies.find(me=>me.currencyCode===M?.currency.selectedOption)?.currencySymbol;if(M?.currencyCode!==M?.currency.selectedOption){const me=M?.currency?.allOptions||[];m[$].outOfPocket.amount={currency:{allOptions:me,selectedOption:M?.currency?.selectedOption},amount:m[$].outOfPocket?.amount?.amount??0,currencyCode:M?.currency.selectedOption??We,currencySymbol:W??jt}}if(M?.currency.selectedOption!==We)Je(!0),Fn(m[$].lineId,We);else{const me={};m.forEach(Gt=>{me[Gt.lineId]={lineId:Gt.lineId,homeCurrencyConversions:Gt.homeCurrencyConversions}}),m[$].homeCurrencyConversions={amount:M.amount??0,currencyCode:M?.currency.selectedOption??We,currencySymbol:W??jt};const vt=ti(me,e.currencyConversionStatus);ae!==vt&&at(vt)}}else if(g.includes("outOfPocket.isRetainedCategorySelected"))m[$].outOfPocket.isRetainedCategorySelected===!0&&(m[$].outOfPocket.isCategoryUpdateSelected=!1,m[$].outOfPocket.account.selectedOption=m[$].outOfPocket.retainedAccount?.qboId);else if(g.includes("outOfPocket.isCategoryUpdateSelected"))if(m[$].outOfPocket.isCategoryUpdateSelected===!0)m[$].outOfPocket.account.selectedOption=m[$].outOfPocket.recommendedAccount?.qboId,m[$].outOfPocket.isRetainedCategorySelected=!1;else{const M=m[$].lineId,W=e.editRemiInitialDetails.lineDetailSection[M]?.lineDetail?.account?.qboId;m[$].outOfPocket.account.selectedOption=W,m[$].outOfPocket.isRetainedCategorySelected=!1}else g.includes("outOfPocket.account")&&(m[$].outOfPocket.recommendations.length>0&&(m[$].outOfPocket.recommendedAccount=m[$].outOfPocket.recommendations[0].account),m[$].outOfPocket.recommendedAccount?.qboId!=null&&m[$].outOfPocket.account.selectedOption===m[$].outOfPocket.recommendedAccount?.qboId?m[$].outOfPocket.isCategoryUpdateSelected=!0:m[$].outOfPocket.isCategoryUpdateSelected=!1,m[$].outOfPocket.retainedAccount?.qboId!=null&&m[$].outOfPocket.account.selectedOption===m[$].outOfPocket.retainedAccount?.qboId?m[$].outOfPocket.isRetainedCategorySelected=!0:m[$].outOfPocket.isRetainedCategorySelected=!1,m[$].outOfPocket.isCategoryFirstTimeAutofilled=!1);const $t=ii({...T,lineInfo:m},e.merchantList.merchants,r,ae,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(ne?.($t),g.includes("outOfPocket.merchant")){const M=m[$].lineId,W=m[$].outOfPocket.merchant.selectedOption??"";m[$].outOfPocket.merchant.allOptions.find(me=>me===W)!=null?Z(W,M):H(W,M)}},bi=v.useMemo(()=>Ci((g,T)=>Pn(g,T),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);v.useEffect(()=>{const g=ke.watch((T,{name:m})=>{m!=null&&T!=null&&bi(m,T)});return()=>{g.unsubscribe()}},[bi,ke]),v.useEffect(()=>{const g=ee.reduceAnyFetchState(Object.values(e.currencyConversionStatus)),T=g.fetchState==="In-Progress"||g.fetchState==="Error";Je(T)},[e.currencyConversionStatus]),v.useEffect(()=>{for(const T in e.currencyConversionStatus){const m=e.lineDetailSection[T],$=e.lineDetailSection[T];e.currencyConversionStatus[T].fetchState==="Completed"&&$!=null&&m.type!==b.mileageKey&&!tn(m?.homeCurrencyConversions,$.homeCurrencyConversions)&&U({amount:m?.homeCurrencyConversions?.amount??0,currencyCode:m?.homeCurrencyConversions?.currencyCode??We,currencySymbol:m?.homeCurrencyConversions?.currencySymbol??jt},T,f)}const g=ti(e.lineDetailSection,e.currencyConversionStatus);ae!==g&&at(g)},[e.currencyConversionStatus,e.lineDetailSection]),v.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(A(f),pe?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,f,A,pe]);const L=ze(),[Me,pt]=v.useState(f==null),[ht,On]=v.useState(1),[Rn,Et]=v.useState(!1),[Ln,An]=v.useState(""),[Nt,zn]=v.useState(null),[Bn,rt]=v.useState(!1),[Mn,fi]=v.useState(!1),[Wt,Ut]=v.useState([]),[xe,St]=v.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),Fn=v.useRef(Ci((g,T)=>Pe(g,T),500,{trailing:!0})).current;v.useEffect(()=>{ot==="In-Progress"&&(e.uploadStatus==="Completed"?(ke.reset(ei(e,r,s),{keepDefaultValues:!0}),Be(!1),pt(!1)):e.uploadStatus==="Error"&&Be(!1))},[ot,e.uploadStatus,ke,e,Ye,Be,Me,r,s,w]),v.useEffect(()=>{e.uploadStatus==="In-Progress"&&Me===!1&&Be(!0)},[e.uploadStatus,Be,Me]);const _t=e.remiStage==="draft"?b.newReimbursementTitle:b.editReimbursementTitle,En={onOkClick:()=>{if(rt(!1),xe.primaryButtonText===b.buttons.discard)A(f),e.remiStage==="draft"?pe?.():Ne?.();else if(xe.primaryButtonText===b.buttons.delete)xe.title===b.deleteBankAccountTitle?Ce?.(Ln):he?.();else if(xe.primaryButtonText===b.buttons.yes&&Nt!=null){const g=Wt.filter(T=>T!==ht.toString());Ut(g),F(Nt,ht,!0)}},onCancelClick:()=>{if(rt(!1),xe.secondaryButtonText===b.buttons.no){const g=Wt.filter(T=>T!==ht.toString());Ut(g),F(Nt,ht,!1)}}},xi=()=>{B||co(jn)?(St({title:b.discardTitle,description:b.discardDescription,primaryButtonText:b.buttons.discard,secondaryButtonText:b.buttons.cancel}),rt(!0)):(A(f),pe?.())},Nn=()=>{St({title:e.remiStage==="draft"?b.deleteDraftTitle:b.deleteReportTitle,description:b.deleteAlertDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),rt(!0)},Wn=g=>{An(g),St({title:b.deleteBankAccountTitle,description:b.deleteBankAccountDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),rt(!0)},Un=()=>{St({title:b.overwriteTitle,description:b.overwriteDescription,primaryButtonText:b.buttons.yes,secondaryButtonText:b.buttons.no}),rt(!0)},_n=()=>{let g=!0;const T=[];return Object.values(e.lineDetailSection).forEach((m,$)=>{m.type===b.outOfPocketKey&&vn(m)>=75&&m.file==null&&(T.push(m.lineId),g=!1)}),Ut(T),g},wi=()=>{if(u&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")xi();else{Qe("save");const g=ke.getValues(),T=ii(g,e.merchantList.merchants,r,ae,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);ne?.(T);const m=T.whatForSection?.reportTitle;m!=null&&m.length>0?X(e.remiStatus==="rejected"?"pending_approval":"draft"):ke.trigger(`${At}.reportTitle`,{shouldFocus:!0})}};let Vt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(g=>{g.length>0&&(Vt=!0)});let Si=[];if(e.remiId==null){const g=ae??0;g>0&&(Si=e.approvalRules.allApprovalRules?.filter(T=>{const m=T.criteria[0].range;if(m.max!=null){if(m.min.amount<g&&m.max.amount>=g)return T}else if(m.min.amount<g)return T;return null}).map(T=>({...T,stepsWithStatus:T.steps.map(m=>({...m,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const Vn=g=>{const T=_n();return ke.handleSubmit(()=>{T&&(Qe("submit"),w?.trackReimbursementSubmitReimbursement(e.createTime?.format(Yi.analytics.MMMDashDDDashYYYYFormat)??ee.dateNow().format(Yi.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,ae,f),z(),fi(!0))})(g)},qn=()=>{const g=ke.getValues(),T=ii(g,e.merchantList.merchants,r,ae,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);ne?.(T),K()},Hn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,Kn=e.reimbursementInfo?.paymentDate!=null?ee.zeniDate(ee.getNextNthWorkingDay(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Gn=e.reimbursementInfo?.expectedDepositDate??Kn,Yn=f!=null&&e.remiStage==="draft",$i=Oo(e.duplicateLineByLineId),qt=e.duplicateReimbursementStatus.fetchState==="Completed"&&$i>0,{requestToOpenThread:Ht,setRequestToOpenThread:vi,setOpenThread:Kt}=v.useContext(Jn),{threads:gt,isLoading:Ze}=Zn({application:"dashboard",companyId:Ae.currentTenant?.companyId,tab:"reimbursement",entityId:f,isGlobalComment:!1},"both",!1);v.useEffect(()=>{Ht?.threadId!=null&>.length>0&&!Ze&&(Kt(Ht.threadId),vi(null))},[Ht,gt,Ze,Kt,vi]);const Xn=v.useMemo(()=>f==null?[]:gt.filter(g=>g.resolved===!1&&!g.id.includes(eo)),[gt,f]).length,Qn=(g,T)=>{Kt(T);const m=g.entityType.split("."),$=parseInt(m[2]);if(isNaN($)){ue(!1);return}const $t=`${$+1}`,M=e.lineDetailSection[$+1].type;m.includes(b.mileageKey)&&M===b.outOfPocketKey?de(ee.toReimbursementTypeCode(b.mileageKey),$t,f):m.includes(b.outOfPocketKey)&&M===b.mileageKey&&de(ee.toReimbursementTypeCode(b.outOfPocketKey),$t,f),ue(!1)};return t.jsx(Or,{ref:y,children:t.jsx(to,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:oe.current??null}},children:t.jsxs(nn,{...ke,children:[t.jsx("form",{id:Qi(Xi),onSubmit:g=>Vn(g),children:t.jsxs(rl,{windowSize:L,ref:oe,children:[Bn?t.jsx(si,{titleComponent:t.jsx(an,{children:xe.title}),descriptionComponent:t.jsx(on,{children:xe.description}),primaryButtonText:xe.primaryButtonText,secondaryButtonText:xe.secondaryButtonText,action:En,proceedButtonVariant:xe.title===b.deleteBankAccountTitle||xe.title===b.deleteDraftTitle||xe.title===b.deleteReportTitle||xe.title===b.discardTitle?"danger":"primary",isEditPopup:xe.title===b.deleteBankAccountTitle}):null,Mn?t.jsx(fr,{reimbursementId:f,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:qt,numberOfDuplicateLines:$i,setShowDuplicatePopup:fi,submitReport:qn,fetchDuplicateReimbursement:D,clearDuplicateReimbursementDetail:z,clearRemiSaveStatus:le,analytics:w}):null,Ye?t.jsx(Zi,{windowSize:L}):null,Me?t.jsxs(Zi,{windowSize:L,"data-testid":q("skip-autofill-section"),children:[L==="small"?t.jsxs(t.Fragment,{children:[t.jsx(_r,{children:t.jsx(ai,{partOfSkipAutoFill:!0,size:L,onClick:()=>pt(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(oi,{withOverlay:!0,children:t.jsx(ni,{})})})}),t.jsx(qr,{children:_t})]}):null,t.jsx(xn,{showAutofill:Me,analytics:w,onSkipAutofill:()=>{w?.trackReimbursementSkipAutofill(),pt(!1)},uploadInvoiceEndPoint:h,authParams:o,style:{width:J.leftSectionWidth.valuePercentage(L),boxSizing:"border-box",backgroundColor:L==="small"?Ve.colors.grey4:"unset",padding:L==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:L==="small"?i.sp0:void 0},onInvoiceUpload:g=>F(g,ht,!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:Me,type:"receipt"}),L!=="small"?t.jsx(Vr,{children:t.jsx(ai,{partOfSkipAutoFill:!0,onClick:()=>pt(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(oi,{withOverlay:!0,children:t.jsx(ni,{})})})}):null]}):null,t.jsxs(tl,{windowSize:L,"data-testid":q("edit-reimbursement-detail-page-nav-bar-container"),children:[L!=="small"?t.jsx(ki,{style:{width:"42%"},"data-testid":q("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(il,{"data-testid":q("zeni-logo-spend-management-reimbursement-detail-page"),onClick:ce}),enableTitleOnScroll:!1,scrollableContent:y,backgroundColor:Ve.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,L!=="small"?t.jsx(Rr,{}):null,t.jsx(ki,{style:{width:J.navBarWidth.valuePercentage(L)},"data-testid":q("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:_t,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Me!=!0?t.jsxs(nl,{children:[C&&f!=null?t.jsxs(ol,{isDisabled:Ze,"data-testid":q("remi-comment-button"),onClick:Ze?()=>null:g=>{g.preventDefault(),g.stopPropagation(),mt({roomId:wt,companyId:Ae.currentTenant?.companyId??"",companyName:Ae.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:f}),ue(!0),w?.trackCommentActivity("reimbursement","clicked",Ae.currentTenant?.companyName??"",Ae.controllersList.controllers.map(T=>no(T)),void 0,void 0,"page icon")},children:[t.jsx(io,{count:Ze?void 0:Xn,isLoading:Ze,style:{left:"12px"}}),t.jsx(al,{})]}):null,t.jsx(ai,{size:L,onClick:()=>xi(),"data-testid":q("close-nav-bar"),children:t.jsx(oi,{withOverlay:!1,children:t.jsx(ni,{})})})]}):null,enableTitleOnScroll:L!=="small",scrollThreshold:64,scrollableContent:y,backgroundColor:Ve.colors.grey4})]}),L==="small"?t.jsxs(t.Fragment,{children:[t.jsx(el,{children:_t}),t.jsx(oo,{progressSectionObj:Hn,createDate:e.createTime,paymentDate:Gn,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:f!=null?!0:e.uploadStatus==="Completed"}),Vt&&t.jsxs(Gr,{children:[t.jsx(Kr,{}),t.jsx(Yr,{children:b.banner})]}),e.isProcessing?t.jsx(rn,{variant:"warning",style:{margin:L==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Gi.duplicateWarning.title,description:Gi.duplicateWarning.description}):qt?t.jsxs(Xr,{size:L,children:[t.jsx(Br,{}),t.jsxs(Jr,{children:[t.jsx(Qr,{children:b.thereSeems}),t.jsx(Zr,{children:b.pleaseFind})]})]}):null,t.jsx($n,{isReimbursementCommentingEnabled:C,sectionId:At,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(Ka,{onDuplicateLineClick:se,reimbursementId:f,remiDetails:e,uploadInvoiceEndPoint:h,authParams:o,showSkipAutoFill:Me,setShowSkipAutoFill:pt,isReimbursementCommentingEnabled:C,isAutoFieldsExist:Vt,totalAmount:ae,removeFileFromLine:fe,onReplaceClick:Un,onReceiptsUpload:F,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:On,setUploadedReceiptPayload:zn,updateInvoiceUploadFetchState:Oe,clearTentativeNameForLine:Re,defaultCurrency:r,companyMileageConfigInfo:c,isUserAdmin:u,setShowBankAccountPage:Et,bankAccounts:s,onDeleteBankAccount:Wn,analytics:w,fileRequiredLineIds:Wt,isSignedInUserReimbursementCreator:p,uncategorizedAccounts:x,showTotalAmountLoader:ut,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:qt,removeDuplicateReimbursementForLine:ie,scrollContainerRef:y}),t.jsxs(ll,{showSkipAutoFill:Me,windowSize:L,children:[L!=="small"?t.jsx(Ji,{}):null,t.jsx(sl,{windowSize:L,children:t.jsxs(dl,{windowSize:L,children:[e.remiId!==void 0&&t.jsx(Ii,{amount:ae??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&ae!=null&&ae>0?t.jsx(Ii,{amount:ae??0,activities:Si,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(cl,{}),t.jsxs(Hr,{showSkipAutoFill:Me,windowSize:L,children:[L!=="small"?t.jsx(Ji,{}):null,t.jsx(Lr,{windowSize:L,onClick:g=>{g.stopPropagation(),qe===!0&&He(!1)},children:t.jsx(ln,{formId:Qi(Xi),separatorStyle:{marginRight:i.sp4},showCancel:p,cancelBtn:{label:u&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?L==="small"?b.buttons.discard:b.buttons.discardChanges:L==="small"?b.buttons.save:b.buttons.saveChanges,isLoading:Xe==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:wi,style:{width:J.footerButtonWidth.value(L)},reverseSpinnerColor:!1},primaryBtn:{label:Pr(p,u,e,L),isDisabled:!p,style:{width:p?J.footerButtonWidth.value(L):"auto"},type:p?"submit":"button",onClick:p?()=>null:wi,isLoading:!p&&Xe==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Ar,{children:t.jsxs(Nr,{windowSize:L,children:[qe?t.jsx(sn,{onClickAway:()=>He(!1),children:t.jsx(Er,{windowSize:L,"data-testid":q("remi-other-actions-container"),children:t.jsx(Wr,{onClick:Nn,"data-testid":q("delete-report-action"),children:b.buttons.deleteReport})})}):null,t.jsx(Fr,{windowSize:L,children:Yn===!0?t.jsx(Mr,{windowSize:L,"data-testid":q("more-details-button"),children:t.jsx(zr,{onClick:()=>He(!qe)})}):null})]})}),style:{minHeight:62}})})]}),C&&f!=null?t.jsx(Po,{id:wt,children:t.jsx(ao,{isDrawerOpen:N,allowComposer:!0,drawerTitle:vr,threads:gt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:_?.companyId??Cr,isGlobalComment:!1,tab:"reimbursement"},isLoading:Ze,threadMetadata:_?{companyName:_.companyName,companyId:_.companyId,entityId:_.entityId,entityType:_.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:kr,replyComposerPlaceholder:Ir,threadResolve:Dr,threadUnResolve:Tr},onThreadClick:(g,T)=>Qn(g,T),onCloseAllThreadsDrawer:()=>ue(!1),drawerSectionStyle:{width:"400px",backgroundColor:Ve.colors.background}})}):null]})}),Rn?t.jsx(Ur,{windowSize:L,children:t.jsx(rr,{bankAccountCreationState:k,setShowBankAccountPage:Et,plaidConnectionDetails:l,onFetchLinkTokenClick:Le,onEstablishConnectionClick:ye,onSaveHandler:R,bankAccountToCreate:P,bankNameByRouting:S,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:O,onFetchBankName:Y,onBackClick:()=>{Ge(),Et(!1)}})}):null]})})})},Pr=(e,o,r,c)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?b.buttons.resubmit:b.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?c==="small"?b.buttons.discard:b.buttons.discardChanges:c==="small"?b.buttons.save:b.buttons.saveChanges,Or=n.div`
|
|
620
|
+
position: relative;
|
|
621
|
+
height: 100vh;
|
|
622
|
+
overflow-y: scroll;
|
|
623
|
+
`,Rr=n.div`
|
|
624
|
+
position: fixed;
|
|
625
|
+
top: 0;
|
|
626
|
+
left: 42vw;
|
|
627
|
+
width: 100%;
|
|
628
|
+
height: 100vh;
|
|
629
|
+
background: transparent;
|
|
630
|
+
box-shadow: 0 2px ${i.sp1} ${({theme:e})=>e.colors.dropShadowNormal};
|
|
631
|
+
pointer-events: none;
|
|
632
|
+
z-index: 3;
|
|
633
|
+
`,Lr=n.div`
|
|
634
|
+
width: ${e=>J.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
635
|
+
`,Ar=n.div`
|
|
636
|
+
display: flex;
|
|
637
|
+
justify-content: flex-end;
|
|
638
|
+
`,zr=n(mo)`
|
|
639
|
+
cursor: pointer;
|
|
640
|
+
color: ${e=>e.theme.colors.hero};
|
|
641
|
+
width: ${i.sp5};
|
|
642
|
+
height: ${i.sp5};
|
|
643
|
+
&:hover {
|
|
644
|
+
color: ${e=>e.theme.colors.primary};
|
|
645
|
+
}
|
|
646
|
+
`,Br=n(jo)`
|
|
647
|
+
width: ${i.sp4};
|
|
648
|
+
height: ${i.sp4};
|
|
649
|
+
color: ${j.brandColorGoldDark};
|
|
650
|
+
`,Mr=n.div`
|
|
651
|
+
display: flex;
|
|
652
|
+
margin-left: ${e=>e.windowSize==="small"?i.sp4:i.sp5};
|
|
653
|
+
cursor: pointer;
|
|
654
|
+
color: ${e=>e.theme.colors.grey1};
|
|
655
|
+
&:hover {
|
|
656
|
+
color: ${e=>e.theme.colors.primary};
|
|
657
|
+
}
|
|
658
|
+
`,Fr=n.div`
|
|
659
|
+
display: flex;
|
|
660
|
+
justify-content: center;
|
|
661
|
+
align-items: center;
|
|
662
|
+
`,Er=n.div`
|
|
663
|
+
display: flex;
|
|
664
|
+
width: auto;
|
|
665
|
+
align-items: center;
|
|
666
|
+
justify-content: center;
|
|
667
|
+
flex-direction: column;
|
|
668
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
669
|
+
color: ${e=>e.theme.colors.hero};
|
|
670
|
+
cursor: pointer;
|
|
671
|
+
padding-top: ${i.sp1};
|
|
672
|
+
padding-bottom: ${i.sp1};
|
|
673
|
+
position: absolute;
|
|
674
|
+
bottom: ${e=>J.otherActionsContainerBottom.valuePx(e.windowSize)};
|
|
675
|
+
z-index: 3;
|
|
676
|
+
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
677
|
+
border-radius: ${i.sp1};
|
|
678
|
+
right: ${e=>J.right.valuePx(e.windowSize)};
|
|
679
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.grey1} 3D`};
|
|
680
|
+
`,Nr=n.div`
|
|
681
|
+
width: 100%;
|
|
682
|
+
justify-content: flex-end;
|
|
683
|
+
position: ${e=>e.windowSize==="small"?"static":"relative"};
|
|
684
|
+
right: ${e=>J.actionsContainerRight.valuePx(e.windowSize)};
|
|
685
|
+
height: 100%;
|
|
686
|
+
display: flex;
|
|
687
|
+
`,Wr=n(pi)`
|
|
688
|
+
display: flex;
|
|
689
|
+
align-items: center;
|
|
690
|
+
width: -webkit-fill-available;
|
|
691
|
+
padding-left: ${i.sp3};
|
|
692
|
+
padding-right: ${i.sp3};
|
|
693
|
+
height: ${i.sp6};
|
|
694
|
+
box-sizing: border-box;
|
|
695
|
+
&:hover {
|
|
696
|
+
background-color: ${e=>e.theme.colors.background};
|
|
697
|
+
}
|
|
698
|
+
`,Ur=n.div`
|
|
699
|
+
overflow-y: auto;
|
|
700
|
+
z-index: 5;
|
|
701
|
+
height: 100vh;
|
|
702
|
+
position: fixed;
|
|
703
|
+
background: ${e=>e.theme.colors.grey4};
|
|
704
|
+
width: ${e=>J.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
705
|
+
right: 0;
|
|
706
|
+
top: 0;
|
|
707
|
+
`,_r=n.div`
|
|
708
|
+
background: ${e=>e.theme.colors.grey4};
|
|
709
|
+
height: 44px;
|
|
710
|
+
display: flex;
|
|
711
|
+
align-items: center;
|
|
712
|
+
justify-content: end;
|
|
713
|
+
`,Vr=n.div`
|
|
714
|
+
width: 58%;
|
|
715
|
+
`,qr=n(ci)`
|
|
716
|
+
padding: ${i.sp3} ${i.sp3} 0 ${i.sp3};
|
|
717
|
+
background: ${e=>e.theme.colors.grey4};
|
|
718
|
+
color: ${e=>e.theme.colors.primary};
|
|
719
|
+
`,Hr=n.div`
|
|
720
|
+
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
721
|
+
width: 100%;
|
|
722
|
+
position: fixed;
|
|
723
|
+
bottom: 0;
|
|
724
|
+
z-index: 3;
|
|
725
|
+
`,Ji=n.div`
|
|
726
|
+
width: 42%;
|
|
727
|
+
`,Kr=n(ui)`
|
|
728
|
+
color: ${e=>e.theme.colors.primary};
|
|
729
|
+
width: ${i.sp3};
|
|
730
|
+
height: ${i.sp3};
|
|
731
|
+
`,Gr=n.div`
|
|
732
|
+
display: flex;
|
|
733
|
+
gap: ${i.sp2};
|
|
734
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
735
|
+
padding: ${i.sp3};
|
|
736
|
+
border-radius: ${i.sp2};
|
|
737
|
+
align-items: center;
|
|
738
|
+
margin: ${i.sp3};
|
|
739
|
+
`,Yr=n.span`
|
|
740
|
+
color: ${e=>e.theme.colors.hero};
|
|
741
|
+
`,Xr=n.div`
|
|
742
|
+
display: flex;
|
|
743
|
+
gap: ${i.sp2};
|
|
744
|
+
padding: ${i.sp3};
|
|
745
|
+
border-radius: ${i.sp2};
|
|
746
|
+
align-items: start;
|
|
747
|
+
margin-top: ${e=>J.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
748
|
+
margin-right: ${e=>J.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
749
|
+
margin-bottom: ${e=>J.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
750
|
+
margin-left: ${e=>J.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
751
|
+
background-color: ${j.alertLight};
|
|
752
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
753
|
+
`,Qr=n(Ft)`
|
|
754
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
755
|
+
`,Jr=n.div`
|
|
756
|
+
width: 100%;
|
|
757
|
+
`,Zr=n(gi)`
|
|
758
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
759
|
+
`,el=n(ci)`
|
|
760
|
+
letter-spacing: -0.02em;
|
|
761
|
+
color: ${e=>e.theme.colors.primary};
|
|
762
|
+
margin: ${i.sp3};
|
|
763
|
+
`,Zi=n.div`
|
|
764
|
+
display: flex;
|
|
765
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
766
|
+
height: 100vh;
|
|
767
|
+
visibility: inherit;
|
|
768
|
+
width: 100%;
|
|
769
|
+
background-color: ${j.overlayDark};
|
|
770
|
+
z-index: 11; // This is to ensure that the skip autofill section is above the AI CFO icon whose value is 10
|
|
771
|
+
position: fixed;
|
|
772
|
+
`,tl=n.div`
|
|
773
|
+
z-index: 3;
|
|
774
|
+
min-height: 62px;
|
|
775
|
+
height: 62px;
|
|
776
|
+
display: flex;
|
|
777
|
+
align-items: center;
|
|
778
|
+
width: 100%;
|
|
779
|
+
justify-content: space-between;
|
|
780
|
+
position: fixed;
|
|
781
|
+
`,il=n(lo)`
|
|
782
|
+
display: flex;
|
|
783
|
+
color: ${e=>e.theme.colors.brandColorJade};
|
|
784
|
+
cursor: pointer;
|
|
785
|
+
width: ${i.sp4};
|
|
786
|
+
height: ${i.sp4};
|
|
787
|
+
`,ni=n(dn)`
|
|
788
|
+
cursor: pointer;
|
|
789
|
+
width: ${i.sp4};
|
|
790
|
+
height: ${i.sp4};
|
|
791
|
+
float: right;
|
|
792
|
+
color: inherit;
|
|
793
|
+
`,oi=n.div`
|
|
794
|
+
color: ${e=>e.theme.colors.hero};
|
|
795
|
+
&:hover {
|
|
796
|
+
color: ${e=>e.withOverlay?j.primaryDark:e.theme.colors.primary};
|
|
797
|
+
}
|
|
798
|
+
`,nl=n.div`
|
|
799
|
+
margin-top: ${e=>J.closeMarginTop.valuePx(e.windowSize)};
|
|
800
|
+
display: flex;
|
|
801
|
+
float: right;
|
|
802
|
+
`,ol=n.div`
|
|
803
|
+
display: flex;
|
|
804
|
+
align-items: center;
|
|
805
|
+
justify-content: center;
|
|
806
|
+
position: relative;
|
|
807
|
+
float: right;
|
|
808
|
+
cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
|
|
809
|
+
color: ${e=>e.theme.colors.hero};
|
|
810
|
+
&:hover {
|
|
811
|
+
color: ${e=>e.theme.colors.primary};
|
|
812
|
+
}
|
|
813
|
+
`,al=n(so)`
|
|
814
|
+
display: flex;
|
|
815
|
+
width: ${i.sp4};
|
|
816
|
+
height: ${i.sp4};
|
|
817
|
+
align-items: center;
|
|
818
|
+
justify-content: center;
|
|
819
|
+
`,ai=n.div`
|
|
820
|
+
margin-top: ${e=>e.partOfSkipAutoFill===!0?J.closeMarginTop.valuePx(e.size):0};
|
|
821
|
+
margin-left: ${i.sp5};
|
|
822
|
+
margin-right: ${e=>e.partOfSkipAutoFill===!0?J.closeMarginRight.valuePx(e.size):0};
|
|
823
|
+
`,rl=n.div`
|
|
824
|
+
display: flex;
|
|
825
|
+
flex-direction: column;
|
|
826
|
+
width: 100vw;
|
|
827
|
+
overflow-x: hidden;
|
|
828
|
+
background: -webkit-linear-gradient(
|
|
829
|
+
to right,
|
|
830
|
+
${e=>e.theme.colors.background} 42%,
|
|
831
|
+
${e=>e.theme.colors.grey4} 42%
|
|
832
|
+
);
|
|
833
|
+
background: -moz-linear-gradient(
|
|
834
|
+
to right,
|
|
835
|
+
${e=>e.theme.colors.background} 42%,
|
|
836
|
+
${e=>e.theme.colors.grey4} 42%
|
|
837
|
+
);
|
|
838
|
+
background: -o-linear-gradient(
|
|
839
|
+
to right,
|
|
840
|
+
${e=>e.theme.colors.background} 42%,
|
|
841
|
+
${e=>e.theme.colors.grey4} 42%
|
|
842
|
+
);
|
|
843
|
+
background: linear-gradient(
|
|
844
|
+
to right,
|
|
845
|
+
${e=>e.theme.colors.background} 42%,
|
|
846
|
+
${e=>e.theme.colors.grey4} 42%
|
|
847
|
+
);
|
|
848
|
+
${e=>e.windowSize==="small"&&`
|
|
849
|
+
background: ${e.theme.colors.grey4};
|
|
850
|
+
`}
|
|
851
|
+
min-height: 100vh;
|
|
852
|
+
`,ll=n.div`
|
|
853
|
+
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
854
|
+
width: 100%;
|
|
855
|
+
margin-bottom: ${e=>J.bottomMargin.valuePx(e.windowSize)};
|
|
856
|
+
`,sl=n.div`
|
|
857
|
+
width: ${e=>J.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
858
|
+
`,dl=n.div`
|
|
859
|
+
margin-left: ${e=>J.leftMargin.valuePx(e.windowSize)};
|
|
860
|
+
margin-right: ${e=>J.rightMargin.valuePx(e.windowSize)};
|
|
861
|
+
`,cl=n.div`
|
|
862
|
+
display: flex;
|
|
863
|
+
flex-direction: column;
|
|
864
|
+
height: ${i.sp11};
|
|
865
|
+
`;export{Pl as default,Qi as uniqueName};
|