@zeniai/web-app-ui 4.14.27-qa → 4.14.28-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-URcYg-_E-CMrUXh7n.js +21 -0
- package/dist/assets/{AIPerformancePage-BTVbAUHG-D-rlRC9T.js → AIPerformancePage-VILPvNCr-DoBW0TQe.js} +29 -29
- package/dist/assets/AccountInfoPage-BTogpO7M-BeBr7bH3.js +18 -0
- package/dist/assets/AccountInfoPageContent-g_X840C3-Byz3DAPs.js +149 -0
- package/dist/assets/{AccountLockedInfoModal-DM2zVI24-BvqEphwT.js → AccountLockedInfoModal-DDNvWMEQ-6SWWVHDx.js} +6 -6
- package/dist/assets/{AccountReconDetailsDrawerPage-B6mhnC_D-DklXIxCe.js → AccountReconDetailsDrawerPage-CydLoK6D-CZ9nLIe4.js} +13 -13
- package/dist/assets/AccountRow-Zjkju8uM-h-BJkTkR.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-z9STg_F3-Bh-wLGtv.js → AccountsPromoCardStack-D8mOW1Wp-DZkmz2EZ.js} +18 -18
- package/dist/assets/AddAddressForCardDrawer-BvGnuIf6-DB5uU020.js +6 -0
- package/dist/assets/{AddToWalletPage-BMPHVMEY-BU28NRn-.js → AddToWalletPage-BMCgd2A5-2JYacy2K.js} +18 -18
- package/dist/assets/AddressRoutes-BuxeYADW.js +1 -0
- package/dist/assets/AddressScreen-C8N1fPfJ.js +9 -0
- package/dist/assets/{AgingReportsPage-Bngg8YpI-CXMOhN6X.js → AgingReportsPage-BL_aBNzL-Bw5_kBEe.js} +6 -6
- package/dist/assets/{AiCfoScreen-1OpyxOPQ.js → AiCfoScreen-DKeSXeDT.js} +2 -2
- package/dist/assets/{AllUserItems-DzHTUgrn-ctPbjWrH.js → AllUserItems-b0wgd0Wz-Cmdhksre.js} +6 -6
- package/dist/assets/{ApAgingDetailPage-BdNgdMZi-DxkwJc1_.js → ApAgingDetailPage-CD2EkZkg-EpN6BsXj.js} +8 -8
- package/dist/assets/{AppBasePage-DUoMiO7X-BTMjuDOu.js → AppBasePage-BM1NMPdI-BkcQFz9Y.js} +12 -12
- package/dist/assets/AppDrawerContent-XR9dBd-C-BYsZG5_k.js +92 -0
- package/dist/assets/ApprovalRulesSettingsPage-6unABLlP-C91QTWWo.js +47 -0
- package/dist/assets/ArAgingChart-DePiNxcV-B7MRrlOq.js +24 -0
- package/dist/assets/{ArAgingDetailPage-Cl5P98Kf-9j3wejr9.js → ArAgingDetailPage-DiJ6PePf-YRaFOXlC.js} +1 -1
- package/dist/assets/{AttachmentView-DQKnQgQK-DgYnMof2.js → AttachmentView-ENg9Osic-C_h00Xvo.js} +6 -6
- package/dist/assets/{BankAccountSection-DxW0EB-K-B_vSxptX.js → BankAccountSection-oL-aN0I_-51rG79cf.js} +6 -6
- package/dist/assets/BankAccountWarningSection-CtRFcHTv-CaeCkm0V.js +51 -0
- package/dist/assets/{BankConnectionsSettingsPage-CFk2aMnM-DA2j6z8y.js → BankConnectionsSettingsPage-B848OGHq-S0dsKmrE.js} +8 -8
- package/dist/assets/BillDetailPage-CPxVWXx6-LfVxiX7-.js +266 -0
- package/dist/assets/BillPayApprovalRoutes-BwVvI4WJ.js +1 -0
- package/dist/assets/BillPayApprovalRuleDetailPage-DtAj6RxA-B2poyBuX.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-iTvysPLf-CqvnWU4g.js → BillPayApprovalRulesPage-DLHvMgeY-8GthXHpr.js} +14 -14
- package/dist/assets/{BillPayPromoPage-B5AGf-Xt-DMzd5Dti.js → BillPayPromoPage-DQJAZi1a-DOwuaVpw.js} +8 -8
- package/dist/assets/{BillPayRoutes-DKhIaBpZ.js → BillPayRoutes-Bzx279Kq.js} +19 -19
- package/dist/assets/BillPaySetUpPage-BVOLWF1M-CpEBt_P1.js +42 -0
- package/dist/assets/BillingSettingsPage-Cfe4Vmza-DSIJr3FK.js +44 -0
- package/dist/assets/{BillsBulkReviewDrawerPage-8E35ktf3-PSnNGTLJ.js → BillsBulkReviewDrawerPage-7y9q0HF_-gFD4nZqL.js} +1 -1
- package/dist/assets/{BoxItem-Yk1jfFWZ-bm0K3UqJ.js → BoxItem-CTEOx6Nh-BbDYdqVh.js} +3 -3
- package/dist/assets/BusinessVerificationPage-D05hRyo1-BMUS-iMK.js +138 -0
- package/dist/assets/BusinessVerificationPageScreen-DfGLG3SR.js +9 -0
- package/dist/assets/BusyIndication-Nz8htndZ-ChVc54FQ.js +9 -0
- package/dist/assets/{CardNumberSubText-DjHY0FvO-DmKTadAQ.js → CardNumberSubText-DijJqFXC-B69YEX78.js} +5 -5
- package/dist/assets/{CashbackDetailPage-BBnND02O-B0i0dSBe.js → CashbackDetailPage-BxIWU0z2-DcCubJwz.js} +27 -27
- package/dist/assets/{ChargeCardDetailPage-BIR8jdTw-Hl7lWW6J.js → ChargeCardDetailPage-ClyQPqJf-BAQGqfmW.js} +31 -31
- package/dist/assets/{ChargeCardListPage-DIaPTqHg-QvrYu2zx.js → ChargeCardListPage-CYhY6c52-DRzxrfOL.js} +21 -21
- package/dist/assets/ChargeCardListTable-Dblodw9X-B-571jVW.js +711 -0
- package/dist/assets/{ChargeCardPaymentHistoryPage-BdQWV5hd-UaInt8sU.js → ChargeCardPaymentHistoryPage-wt6arCEL-5ryWm6WZ.js} +13 -13
- package/dist/assets/ChargeCardPromoPage-AihUlwys-A1x9S-W0.js +222 -0
- package/dist/assets/{ChargeCardRoutes-QBQgxZFH.js → ChargeCardRoutes-4t9GJNvz.js} +12 -12
- package/dist/assets/{ChargeCardSetupPage-64bBN1fe-B9PROkMH.js → ChargeCardSetupPage-C59WR7nm-CVteL9ef.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-B-XeiOnb-BirnH6mz.js → ChargeCardStatementsPage-DF5rt4B5-CiiFftIv.js} +4 -4
- package/dist/assets/CheckDepositDrawerPage-B9-ktuL_-Cnbi1t8C.js +206 -0
- package/dist/assets/CollapsableReportTable-BAz0DbFh-Bx4HSBTd.js +2844 -0
- package/dist/assets/CompanyOfficerDetailsSection-BNSHkrC4-DZDeEGL9.js +331 -0
- package/dist/assets/CompanyPassportCard-DTfKmcGv-kWFAQF4U.js +42 -0
- package/dist/assets/{CompanyPassportPage-B6zI52Pp-CWxea43i.js → CompanyPassportPage-DqhT6YL_-DjGLWJH_.js} +37 -37
- package/dist/assets/{CompanyPassportScreen-CCGCO9-B.js → CompanyPassportScreen-COEYsT8F.js} +1 -1
- package/dist/assets/{CompleteProfile-BLWNz2VA-BtRBf1pR.js → CompleteProfile-DdA-FkwG-DNxHJftH.js} +1 -1
- package/dist/assets/ConfettiBurst-Dc0iIaw3-Cdx9N-8d.js +1 -0
- package/dist/assets/ConnectionAuthScreen-VX2ylo8v.js +11 -0
- package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-DLCOCuvB.js → ConstrainedInnerElement-BeIpAPjB-B0xEPT_b.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D_fPbFsR-BYUMlM0q.js → CreateOrEditVendorPage-CODInbfe-CWblGuXA.js} +19 -19
- package/dist/assets/{CreditCardPaymentDrawerPage-Bl82rSY1-BUtUdu3I.js → CreditCardPaymentDrawerPage-DZNUIDa0-DYeUjTKl.js} +21 -21
- package/dist/assets/CurrencySelectField-D_D8AUqS-W5q-11LT.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-L6GfGsJ9-BmkijjZG.js → CustomerOnboardingActivationPage-CBlyvq0r-BIiex6sW.js} +5 -5
- package/dist/assets/CustomerOnboardingAuthScreen-Cxwuh-5v.js +1 -0
- package/dist/assets/CustomerOnboardingContainerPage-BJV0xAFp-SuSAzHFh.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-MP-lAuJG-KKPN2GG0.js → CustomerOnboardingDetailPageSkeleton-CIhb8Zvx-Cm7w9wnG.js} +15 -15
- package/dist/assets/CustomerOnboardingNoStepsPage-CLFh9K94-CVAWL8GH.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-Cl4wtP6t-DcrRFrM5.js → CustomerOnboardingPage-BJGDpI-d-BI8WTIh2.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-vkblu46s-CFBeFISK.js → CustomerOnboardingProductSuitePage-DmgQGvpp-BgPaXsEW.js} +7 -7
- package/dist/assets/{CustomerOnboardingRoutes-BMTYfbQW.js → CustomerOnboardingRoutes-CDOn_9SO.js} +6 -6
- package/dist/assets/{Dashboard-C1Fn0zHa-Ck-7rBRI.js → Dashboard-Cvmg-DzK-CDouUJlf.js} +26 -26
- package/dist/assets/{DashboardReportPage-3lvWkrXH-CmzteKGa.js → DashboardReportPage-C7bT-gmW-B7qKYPTM.js} +42 -42
- package/dist/assets/DashboardRoutes-Ca715xZt.js +21 -0
- package/dist/assets/DashboardSidebarBackgroundAnimation-CcTStx9W-CLXLQ3Wl.js +12 -0
- package/dist/assets/{DefaultTenantHome-H89rPQPU.js → DefaultTenantHome-zrpUM-2h.js} +1 -1
- package/dist/assets/DepositAccTransactionItem-XZgomj7v-pud7es11.js +76 -0
- package/dist/assets/DepositAccTransactionListPage-B11lcuip-BA6bJfDH.js +66 -0
- package/dist/assets/DomesticWireDetailScreen-BGqZWgZd.js +18 -0
- package/dist/assets/DomesticWireDetailsPage-Cw4aq8Ar-Bz2WPHpK.js +21 -0
- package/dist/assets/DownloadOverlay-DE63RFQe-VsFfbW3d.js +439 -0
- package/dist/assets/{DrawerPage-DudtPicH-hbiw_pdy.js → DrawerPage-DGuh6P-6-CJKJMwA-.js} +11 -11
- package/dist/assets/DrawerScreen-V32qwnkz.js +1 -0
- package/dist/assets/EditPeoplePage-Dmz2l8uY-CK4iVJZr.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-BrQ60mqq-BxmG6xVG.js +865 -0
- package/dist/assets/EntityDetailPage-BbeHCNGS-C5UPIJtj.js +18 -0
- package/dist/assets/EntityDetailRoutes-BxYqKDQd.js +1 -0
- package/dist/assets/{EntitySummarySection-Po9-k_zM-D4BVYzOO.js → EntitySummarySection-BgjWn9vX-ChJDfPvK.js} +26 -26
- package/dist/assets/{ExpenseAutomationOverviewPage-CbLRqpw3-Bm8ozA7v.js → ExpenseAutomationOverviewPage-V2cvYWxH-C16OEZnu.js} +51 -51
- package/dist/assets/ExpenseAutomationPage-BDZ6aX0q-DJ_VB_IO.js +2323 -0
- package/dist/assets/ExpenseAutomationRoutes-Dbfi_osP.js +20 -0
- package/dist/assets/{ExpressPayPage-BbHx9h8j-DxMm9gcn.js → ExpressPayPage-5VdASApP-Po6fvmnX.js} +10 -10
- package/dist/assets/{FeaturePreviewPage-72x3P-pq-BRxKJgbB.js → FeaturePreviewPage-CA_fxOHn-CMqOKpmQ.js} +2 -2
- package/dist/assets/FeaturePreviewScreen-C5OPsEGq.js +1 -0
- package/dist/assets/{FollowStepsSection-BT_WjsEy-BMkprFjA.js → FollowStepsSection-CTSjTKjT-D1lTh6HA.js} +11 -11
- package/dist/assets/GlobalReviewListPage-DmrnXFgW-CX1Z-LFj.js +291 -0
- package/dist/assets/{InformationCardStack-CjpOEuJF-CY8AHfmK.js → InformationCardStack-D_Z7Ebe0-CcLIhUuZ.js} +3 -3
- package/dist/assets/InsightsCardStack-Dbpzjgf4-fdUWj0-e.js +79 -0
- package/dist/assets/InsightsSection-DgViiL7e-CyZzflwi.js +27 -0
- package/dist/assets/IntegrationsSettingsPage-4OV7HFwe-DB-wBCWA.js +57 -0
- package/dist/assets/{InternationalWireSwiftDetailsPage-C1WTGANK-BxDLWIJ0.js → InternationalWireSwiftDetailsPage-B1nvNamF-Csz75ldD.js} +18 -18
- package/dist/assets/InternationalWireVerificationPage-HZgqUkj4-BeRgJyDk.js +65 -0
- package/dist/assets/{InviteFormPage-D56FOZEG-YjtIHJmt.js → InviteFormPage-C5mS-6c8-DHEfB4pP.js} +18 -18
- package/dist/assets/{InvitePageListView-BbQyUnv0-CP6So3At.js → InvitePageListView-Yj83_lDA-DG8kjHEN.js} +66 -66
- package/dist/assets/InvitePeoplePage-C7DlxHsy-CbV9Kfvk.js +12 -0
- package/dist/assets/InvoiceUploadSection-DdIQCBkC-hgUkpCX_.js +140 -0
- package/dist/assets/{IssueChargeCardPage-BT9h01l_-efn-gMmS.js → IssueChargeCardPage-BIOTVOMR-y141Zbnw.js} +71 -71
- package/dist/assets/{LabeledAddressValue-DF623NAW-DBk7OZ_l.js → LabeledAddressValue-Bb1x9jR--B6kyu-d_.js} +1 -1
- package/dist/assets/LabeledAddressValueField-D3_DsNPu-DBYOiYu9.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-DdHmj0q2-DFcQf8uf.js +16 -0
- package/dist/assets/{LabeledCountryMultiSelectField-B5vytqi_-CTjtWp-f.js → LabeledCountryMultiSelectField-LeubJT8b-DTiRo8mi.js} +4 -4
- package/dist/assets/{LabeledCreatableSingleSelectField-DN5wCaeU-B4bYahZQ.js → LabeledCreatableSingleSelectField-CzrPLo-T-WU7xdxt6.js} +6 -6
- package/dist/assets/LabeledDocumentField-CFtFroDl-BZ61zQ53.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-BvdkjSR_-T-ZEjluP.js → LabeledDropDownFormattedTextField-CFsuVVp3-BWloCe5f.js} +7 -7
- package/dist/assets/{LabeledEmailInputField-B17ZXjvY-Bgq9Bw5g.js → LabeledEmailInputField-BOEHGgHy-DmP8tNRS.js} +7 -7
- package/dist/assets/{LabeledNameField-DXPyRS_B-aEVZrWHH.js → LabeledNameField-DWKoivcI-CTKa3xQk.js} +4 -4
- package/dist/assets/{LabeledSingleSelectField-DZ7GoSpj-CeyfgNkx.js → LabeledSingleSelectField-BkGsnV9P-L8vud565.js} +4 -4
- package/dist/assets/LabeledText-CZMUFsPf-BSb4-Hu0.js +42 -0
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BnDEbwhn-CXwABLlN.js → LabeledUserSingleSelectWithSubtitlesField-BTo_s8x5-D96FBec7.js} +15 -15
- package/dist/assets/{LabeledZeniRolesDropDownField-CY2feiXB-FzZcdRyQ.js → LabeledZeniRolesDropDownField-C3LoYUh_-CUGSemOL.js} +20 -20
- package/dist/assets/{LinkJETransactionPage-Bc3h7Bsx-CLCCvFC8.js → LinkJETransactionPage-BbpybbwD-BZQW-eEy.js} +11 -11
- package/dist/assets/{LockCardPage-DIZ-1K3B-J6PMXtrS.js → LockCardPage-C0XjGES8-Dv5p7F-M.js} +27 -27
- package/dist/assets/{LowBalancePopup-CKSy3iEi-f1V3RnUh.js → LowBalancePopup-CkO97HGX-C-OMTelo.js} +3 -3
- package/dist/assets/MagicLinkACHDetailsPage-CcaWGIEm-CBJpUCPj.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-6V37rCS5-DlEVkMTv.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-BKWBDCxr-1pJwpVUJ.js +1 -0
- package/dist/assets/MagicLinkRoutes-0i3kRHtF.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-8oYCtfCr.js +12 -0
- package/dist/assets/{MagicLinkSuccessPage-fC1L-fjF-B1tQEsFE.js → MagicLinkSuccessPage-L5UJIvTe-Ds_uEzRm.js} +3 -3
- package/dist/assets/{MagicLinkTitleSection-D38JxxrQ--O7VTYiG.js → MagicLinkTitleSection-CEZGF8ER-CtJhgwJN.js} +1 -1
- package/dist/assets/{MailingDetailsSection-_5DUMAiO-cIrB6Ese.js → MailingDetailsSection-CRsQVOYi-DVyOc3HW.js} +1 -1
- package/dist/assets/MobileAppDrawer-vjIJyx5N.js +1 -0
- package/dist/assets/{MoreMenuButton-BCREj5dQ-BCylVRTR.js → MoreMenuButton-BWNCapgP-CobtazoG.js} +27 -27
- package/dist/assets/{MyBankConnectionsSettingsPage-TSaL2Z3R-DIU3oLQ2.js → MyBankConnectionsSettingsPage-C6p5J_f5-aGTzDXcW.js} +7 -7
- package/dist/assets/{MyPendingActivationChargeCardListPage-BvcQUu1g-CT952uFb.js → MyPendingActivationChargeCardListPage-CluWS3nS-3Mvvi7l1.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-AqrcruM6-jesbPct3.js → MyProfileSettingsPage-Ctkx_sAQ-BJzrBUg_.js} +7 -7
- package/dist/assets/NavBarWithPicker-ClP6LCUF-B_agyqrI.js +30 -0
- package/dist/assets/NavigationArrow-CUPvxfZv-DFdgHBv5.js +47 -0
- package/dist/assets/NavigationDots-Cu9LZj7T-BaBE0dTx.js +15 -0
- package/dist/assets/{NewGlobalMerchantPage-B-aRURcQ-D1t1eSio.js → NewGlobalMerchantPage-g9JuX6MR-DfxwRkm2.js} +12 -12
- package/dist/assets/NoDataChart-DcMRzXHU-BWuTQSGS.js +26 -0
- package/dist/assets/{NoDataTable-BtEKMdpl-CBXm-Rpx.js → NoDataTable-D1v085Vv-TbZCkeJw.js} +1 -1
- package/dist/assets/{NotFoundPage-aEkhvzEG-D7OUf5MG.js → NotFoundPage-Bf-EPtU9-B60UYrLG.js} +4 -4
- package/dist/assets/NotFoundScreen-BlOJVroe.js +1 -0
- package/dist/assets/NotificationRoutes-CKAGXrkl.js +1 -0
- package/dist/assets/{NotificationSettingsPage-CMNyI8E6-blQORKhV.js → NotificationSettingsPage-Zv4-2vEl-Dq8r17oD.js} +16 -16
- package/dist/assets/NotificationsListConfig-CO5uOSs7-B3Op3ktj.js +1 -0
- package/dist/assets/NotificationsPage-BH6B4Q8b-YOVbk2c7.js +685 -0
- package/dist/assets/OpExByVendorPage-EjyJRLhn-jezrc1pM.js +100 -0
- package/dist/assets/{OverlayContainerPage-BG9y5C0t-CNdAZz5K.js → OverlayContainerPage-D4QU0p4o-DZKwQHwV.js} +1 -1
- package/dist/assets/PandLWithForecastPage-UpDz4Qqu-fjMo0Gtf.js +107 -0
- package/dist/assets/PandLWithForecastRoutes-TX6P7Zrq.js +1 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-Cg-iwsq9-CQwi_YjA.js → PaymentAccountSetupBillingAddressSection-CqavirRU-DO80n7FW.js} +9 -9
- package/dist/assets/PeoplePage-D2N1XP-O-DKs_D4Fh.js +720 -0
- package/dist/assets/PeopleRoutes-C8mODapz.js +22 -0
- package/dist/assets/PerformanceRoutes-DiU5fqKk.js +1 -0
- package/dist/assets/{Preview-C1JD0WiC.js → Preview-CqLia4uG.js} +1 -1
- package/dist/assets/{ProductsCarousel-LGZZZ4bc-TzC9x8-0.js → ProductsCarousel-Dx8bStwI-C44-19N7.js} +8 -8
- package/dist/assets/{PromoBaseCards-DMnQ-nBZ-B7anhmyf.js → PromoBaseCards-Bauxzwzt-Dgaaf2yK.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-ufRcAeE8-BiWhXsJA.js → QBOConnectionDialog-COlHLDTh-CjJgFUeC.js} +13 -13
- package/dist/assets/{QBOConnectionScreen-hdZFNBVm.js → QBOConnectionScreen-AtAIA8jj.js} +22 -4
- package/dist/assets/QBOSetupSection-Cb4AlHU9-BpQhAPPt.js +79 -0
- package/dist/assets/ReferralListScreen-XiiAfJ90.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-BocYdQhD.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CE0CxjTY-C5xH-EUU.js → ReimbursementApprovalRuleDetailPage-Cb4wyiiA-PPkCr8xd.js} +5 -5
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C4x83TjH.js → ReimbursementApprovalRuleDetailScreen-DPE-kSBA.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DDNhjbbG-CAvrqdJa.js → ReimbursementApprovalRulesPage-BEid42KU-DeLels1v.js} +5 -5
- package/dist/assets/ReimbursementDetailPage-CuuOsKPv-BPEFJ0xe.js +314 -0
- package/dist/assets/ReimbursementPromoPage-fvIAhNdR-CSg5BemV.js +84 -0
- package/dist/assets/ReimbursementRoutes-ZXUNkUzw.js +13 -0
- package/dist/assets/{ReimbursementSetUpPage-vZd1l3-L-Cd-ugKb_.js → ReimbursementSetUpPage-CBKANstD-CdxQGkDo.js} +7 -7
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-BXO46shT-Ki-BIH8Q.js +1 -0
- package/dist/assets/ReloadCard-BKHKE8Pu-B3lPeTvz.js +26 -0
- package/dist/assets/ReportTableViewSelector-gYxUii1M-BhXMqYN6.js +150 -0
- package/dist/assets/ReportsPage-D7rEPLAa-CczMmifR.js +121 -0
- package/dist/assets/ReportsRoutes-CZ3tnE-5.js +1 -0
- package/dist/assets/{RevenueChart-CKjVL6iT-C_eQ-aqy.js → RevenueChart-BHrj8Dy9-Bgtbsht_.js} +12 -12
- package/dist/assets/ReviewDetailsPage-B9SMV_va-PLuKyyKj.js +290 -0
- package/dist/assets/{ReviewOverlay-DyTC2zKj-KDRsvwAc.js → ReviewOverlay-Be_F1hd--Aq5DKqVU.js} +14 -14
- package/dist/assets/RewardsRoutes-OB-0XHFr.js +1 -0
- package/dist/assets/RoleWithToolTip-D9DCHaph-Ct3ZRTHm.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-9XyukA76-jDvGJj5q.js → ScheduleDetailsFixedAssetsPage-h1Ewtn5T-DRtWGNvu.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-CkMIJDcP-BYxIJ7TX.js → ScheduleDetailsPage-Cr-KaH2D-B1Q1jbwo.js} +3 -3
- package/dist/assets/ScheduleSequenceTable-BBbLa0gA-C54SUt--.js +324 -0
- package/dist/assets/ScreenRoutes-Dj6yeCaN.js +2 -0
- package/dist/assets/{SetUpAccountSection-BkGBS9x_-Cq1DI8pA.js → SetUpAccountSection-ULABF-Md-DYZnUdRJ.js} +15 -15
- package/dist/assets/SettingsRoutes-CK_IQzwc.js +57 -0
- package/dist/assets/{SetupPagesScreen-BAJOwy6E.js → SetupPagesScreen-B28b7eDr.js} +6 -6
- package/dist/assets/{SignIn-DybDQnmR-C81T6vjg.js → SignIn-6YH_riJW-DzqdPViU.js} +74 -74
- package/dist/assets/SignInScreen-Jslx5-TX.js +1 -0
- package/dist/assets/SignOutScreen-D56BFgpr.js +9 -0
- package/dist/assets/SpendManagementListViewPage-D_RrkezV-ELAXLz4H.js +134 -0
- package/dist/assets/{SpendManagementPerTabPage-CR9CphX3-DsEMuden.js → SpendManagementPerTabPage-BnugLA94-vwewauIW.js} +96 -96
- package/dist/assets/SpendManagementSection-DCk1isQq-BuKHrb4M.js +375 -0
- package/dist/assets/StatementItem-BWKA6BsE-BBtXJaEH.js +31 -0
- package/dist/assets/StatementsPage-C5KuiVH4-Cf4qB6ps.js +58 -0
- package/dist/assets/{StatusSwitcher-Z7jo_R2B-BupHP9_H.js → StatusSwitcher-CgzMvf5t-ncrbliMU.js} +6 -6
- package/dist/assets/{SubTabSwitcher-DJvtpJh2-DzBKus5r.js → SubTabSwitcher-gc5g6vV0-BudAZpBJ.js} +9 -9
- package/dist/assets/SuccessAnimation-CcFXT4sg-BtvDv4Ac.js +13 -0
- package/dist/assets/SummaryCard-DgPg2oPm-TIRnserH.js +1 -0
- package/dist/assets/{TaskDetailPage-D6OLDKHa-CcEZ6QIq.js → TaskDetailPage-Brq3l5Lm-js01YZsk.js} +42 -42
- package/dist/assets/TaskListScreen-PaUFhtYL.js +9 -0
- package/dist/assets/TaskManagementPage-Dyy-A0ij-kAppPPcp.js +1063 -0
- package/dist/assets/TaskRoutes-DNKzAv87.js +9 -0
- package/dist/assets/TimeRangeSwitcher-PcHPZNOq-DyMi_xu3.js +64 -0
- package/dist/assets/TimeframeSwitcher-XZjkUS_W-DEhbHF-x.js +31 -0
- package/dist/assets/TimeframeSwitcherWithToggle-KxCdrFMS-CmMYWc36.js +31 -0
- package/dist/assets/{TopExCard-BmRXVrxo-_W2SzaPG.js → TopExCard-CRxFMC50-CucHTjUq.js} +6 -6
- package/dist/assets/{TopExDetailPage-Ds-BZjbz-CIQg5qwm.js → TopExDetailPage-D7dCJGpQ-_APvVGdT.js} +18 -18
- package/dist/assets/{TransactionActivityLogPage-CKIHtz5l-CBtxyxk_.js → TransactionActivityLogPage-ByyxovGE-B8-_ivhT.js} +11 -11
- package/dist/assets/TransactionDetailPage-D0_Tjv5D-BbvOSya5.js +903 -0
- package/dist/assets/TransactionDetailRoutes-BBeHV_Bn.js +1 -0
- package/dist/assets/TransactionDetailScreen-BnLwFmdM.js +5 -0
- package/dist/assets/TransactionList-DoYieHoy-MtmaAm18.js +153 -0
- package/dist/assets/{TransactionListBig-JcBvCcMd-D4tRq6mB.js → TransactionListBig-BOKPby7d-BiHGWKXG.js} +20 -20
- package/dist/assets/TransactionListPage-Bfx0PW2V-Ko7n0w0K.js +35 -0
- package/dist/assets/{TransactionListRoutes-CZ11TS_h.js → TransactionListRoutes-D6vFloa7.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BCtWJV5U-Cg9b-1j4.js → TransactionVendorDetailPage-BK4zpJ1F-BT9vQvKO.js} +5 -5
- package/dist/assets/{TransferDrawerPage-DoIPGIdB-DwVunJdt.js → TransferDrawerPage-B5ofYt0y-GCYB9I81.js} +24 -24
- package/dist/assets/TreasuryOverviewPage-D4LuhPMd-FpA9c7P5.js +708 -0
- package/dist/assets/{TreasuryPromoPage-avx9YENY-DTL4pcWX.js → TreasuryPromoPage-ofZQDboF-BK7GFuNm.js} +13 -13
- package/dist/assets/TreasuryRoutes-DQPlHyww.js +45 -0
- package/dist/assets/TreasuryStatementsPage-D4bGPC_n-C9CJ9i1a.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-BT_G7d-D-DkEXvQO_.js → TreasuryTaxLetterPage-4aV14kQe-Bg3G6zgb.js} +4 -4
- package/dist/assets/{TrendChart-rzKYI72b-Drm1Eh-x.js → TrendChart-BJLik8fK-C09X9QMT.js} +4 -4
- package/dist/assets/TrendWithTransactions-R1FCSydB-Ci1yaQBG.js +116 -0
- package/dist/assets/{UncategorizedAccountsMappingPage-5VnrVRL7-BzS8Z3L2.js → UncategorizedAccountsMappingPage-mYSXtdgK-mpKZn3rt.js} +7 -7
- package/dist/assets/{UnitIntegrationPage-CRtWNQ9s-BXD_JgdY.js → UnitIntegrationPage-C44UiDRH-C1DPzFjn.js} +5 -5
- package/dist/assets/UploadAdditionalDocumentOverlay-CJmvE3y6-D4_Nm785.js +38 -0
- package/dist/assets/Vendor2FAPopup-Bt_phaZI-DRgs4wjV.js +1 -0
- package/dist/assets/VendorACHDetailsPage-CxlQSWGZ-Fo80chk3.js +1 -0
- package/dist/assets/VendorDetailPage-BixXt95H-DDRHGc3v.js +257 -0
- package/dist/assets/VendorDomesticWireDetailsPage-BmFZeCgu-3p9zequ6.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-B0LEUR_g-B5BIQU3s.js → VendorFiling1099EditablePage-DIyS2YV_-CSGr8UHs.js} +24 -24
- package/dist/assets/VendorFirstReviewPage-DZ00XYRi-Bujg7mnV.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-CHFMTDYG-BbWeoiim.js → VendorInternationalWireDetailsPage-DOYmaAmB-DkdpvBe3.js} +11 -11
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BCafZBL5-O4Et_Cvx.js +1 -0
- package/dist/assets/{VendorsAccountsSection-By1Bhh27-DcOiL6S-.js → VendorsAccountsSection-D6DinIAj-CJyfm4FF.js} +2 -2
- package/dist/assets/{VendorsRoutes-NsL__2Us.js → VendorsRoutes-BzRnsTCQ.js} +21 -21
- package/dist/assets/VerifyDevice-DFug_o82-BbsyIuwM.js +112 -0
- package/dist/assets/{VideoPlayer-DBU7xwIG-B74OFhs2.js → VideoPlayer-BuOlZW0M-DUvqMJGc.js} +1 -1
- package/dist/assets/{VideoPopup-Dxc93Pwx-DENHvk5i.js → VideoPopup-B03SM83j-CEO910rC.js} +1 -1
- package/dist/assets/WiseConfirmationScreen-Be46vSWM.js +12 -0
- package/dist/assets/ZeniAccountDetailPage-BJQvxY7D-0WnS8PEZ.js +300 -0
- package/dist/assets/ZeniAccountListViewPage-CvwGdUPT-CLqSbTJn.js +441 -0
- package/dist/assets/ZeniAccountNavBarPieces-OGXEdZmI-WHE_ZaHO.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-MPekAyNe-Bi-1usPB.js → ZeniAccountPromoPage-iELT-FzW-B54bB-Au.js} +23 -23
- package/dist/assets/ZeniAccountRoutes-ked1y8nK.js +58 -0
- package/dist/assets/{ZeniAccountSetupPage-CxYZzfiZ-zon_oiyA.js → ZeniAccountSetupPage-feqonZIV-DuQlAwjx.js} +4 -4
- package/dist/assets/ZeniAccountStatementScreen-t9W5AfJc.js +9 -0
- package/dist/assets/{ZeniAvatar-BodtWTPw-CVcXEyfO.js → ZeniAvatar-CHmpyZc4-xmYCp34T.js} +2 -2
- package/dist/assets/{ZeniCopyright-B1muAGCe-q18kcBJ1.js → ZeniCopyright-Cy7xQhak-DdKCW6EI.js} +1 -1
- package/dist/assets/{ZeniDatePicker-BmNnzdVH-XUzgAQP_.js → ZeniDatePicker--Wk1Y9-b-Ikkm7YIY.js} +4 -4
- package/dist/assets/ZeniTransferAmountSlider-BGK6jY7c-DnMJhxcK.js +63 -0
- package/dist/assets/{accountMappingHelper-BrPXAL73.js → accountMappingHelper-B5TnMmqA.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-Dh9sZKZB.js → add-to-wallet-DgdBD8_G-Buw9XYbC.js} +1 -1
- package/dist/assets/{analytics-CDaNvN8h.js → analytics-D7HtemTn.js} +1 -1
- package/dist/assets/{analyticsHelper-DApOjqKE.js → analyticsHelper-CpXIJxUL.js} +1 -1
- package/dist/assets/{analyticsHelper-BznLUYs2-D0Y6omTO.js → analyticsHelper-MsboCQcB-ClYGtAlc.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-4zq_odDD.js → arrow-south-east-round-PEovUgvH-BfE1l1sB.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-DbGOeLQx.js → auto-transfer-rule-mbafm5D3-Dbmd4uJS.js} +1 -1
- package/dist/assets/{avatar-Dz7aEm3d-CWySFkWm.js → avatar-Dz7aEm3d-C2PjdQVT.js} +1 -1
- package/dist/assets/{calculateSize-B4Atw2cK-BK5U-vIk.js → calculateSize-DtEgyuiA-BJxqaIDz.js} +1 -1
- package/dist/assets/{chartTypes-Bckf_DAs-CcjNgpBl.js → chartTypes-BZL6U2-d-UPGybQZE.js} +1 -1
- package/dist/assets/{clock-CJkylEKt-CVsxzmyy.js → clock-CJkylEKt-BhyIm3xG.js} +1 -1
- package/dist/assets/common-DspMM85g-eqBRfeMW.js +1 -0
- package/dist/assets/commonDimensions-RZ10geET-CQLnP9WR.js +1 -0
- package/dist/assets/{commonTypes-CATFe6V_-Bw1wXmwu.js → commonTypes-lunwFIdl-BTgH3sp5.js} +1 -1
- package/dist/assets/{core-BROwB3xg.js → core-ADrPabGT.js} +38 -3
- package/dist/assets/{dash.all.min-BwyTjiyH.js → dash.all.min-B80Fjk6g.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-BGR3dXtf.js → decodeURIComponentSafe-B2klyNYm.js} +1 -1
- package/dist/assets/detailCommon-CxEOrtjx-XTML3r_I.js +38 -0
- package/dist/assets/{dnd-M9ETCPCc.js → dnd-83aXbnEf.js} +1 -1
- package/dist/assets/{dollar-round-D18u7nlm-DzhQnUAS.js → dollar-round-D18u7nlm-DpqHsegv.js} +1 -1
- package/dist/assets/downloadPdf-BpxrRqLr-Dq9Hm-Yk.js +1 -0
- package/dist/assets/{index-PbnqpzuR.js → empty-BuW7JTEu.js} +1 -1
- package/dist/assets/{empty-DEfk6lzH.js → empty-b7G9eJAG.js} +1 -1
- package/dist/assets/epic-PnA5OGYq.js +2 -0
- package/dist/assets/{filter-cZIFUNvj-CXOCablV.js → filter-cZIFUNvj-FUBo8Jnl.js} +1 -1
- package/dist/assets/getLocaleForTenant-Bt4tLJ8B.js +1 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-a7ivTWB6.js → gift-box-Cmt9OgIZ-BGtl8O0W.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-D4Z2Td9j.js → graphic-no-data-l-DU4J8fDt-ExJA3UCE.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CidPW_p-.js → graphic-no-data-net-burn-l-CzmycA0m-BakRM2hs.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-Du3wpRQE.js → handshake-BPg58FML-DEzA3ltI.js} +1 -1
- package/dist/assets/{helper-BCh4SWyd-isWS85Kg.js → helper-2Z01-P8G-D7tgV0Ug.js} +3 -3
- package/dist/assets/{hyperlink-DQyCeXx2-BRRoxeMz.js → hyperlink-DQyCeXx2-ky2ivvTP.js} +1 -1
- package/dist/assets/index-B9b8RnaK.js +1 -0
- package/dist/assets/{index-CXeFHlD8.js → index-BC_OqBzO.js} +1 -1
- package/dist/assets/index-Bl4vUMlL.js +1 -0
- package/dist/assets/{index-Bsu_RWOn.js → index-DAaNy4V6.js} +8 -2
- package/dist/assets/{index-hlRDRY3p.js → index-DjP1wQjH.js} +1 -1
- package/dist/assets/{index-onESlw0k.js → index-DorX0WX8.js} +4298 -4227
- package/dist/assets/{lexical-BDowhSNN.js → lexical-BGYE9Sy4.js} +1 -1
- package/dist/assets/{liveblocks-Bdti0GEu.js → liveblocks-f_lxxH57.js} +8 -3
- package/dist/assets/{lottie-CyO1eRs4.js → lottie-sNoV77jf.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DcYetEpP-Cjbsf28w.js → mapLoadingInProgressToTreeNode-BJRnX8Ir-CTwzTgVL.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CExgzViB-Ckk52Tg_.js → mapSectionWithAcOnlyToTreeNode--0eoufeA-BVEmfqf7.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-CQvnRjWo-D94Aabob.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-CY0Vs8kK-BW2bp0f8.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cytg0KxN-BW6Ya40z.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-_7RU9lwp-eJu_Fbcv.js → mapTimeframeHeaderLoadingInProgressToTreeNode-3KVmTdIZ-DkTIrIkC.js} +1 -1
- package/dist/assets/{media-player-C_DTDTMq.js → media-player-D1K6tfw6.js} +2 -2
- package/dist/assets/{money-2cg1MuG4-Dkp2kPMU.js → money-2cg1MuG4-DajJjl7a.js} +1 -1
- package/dist/assets/{mui-B0LS8eOU.js → mui-gZ2J-2YO.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-BqlZh_Sh.js → page-detail-CWX5S47F-mMS9vUC4.js} +1 -1
- package/dist/assets/{page-summary-D7_VQHwN-B_SO8YR9.js → page-summary-D7_VQHwN-DhjZazqO.js} +1 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-DyRjm7kt.js +4 -0
- package/dist/assets/{pathToGoBack-Cd1NYD0G.js → pathToGoBack-BvSUl7ma.js} +1 -1
- package/dist/assets/{pdf-DEiLcZtJ.js → pdf-BNA4Ou8X.js} +3 -3
- package/dist/assets/{pdf-lib-BkXoRqvn.js → pdf-lib-uBsrmHT5.js} +1 -1
- package/dist/assets/{plaid-CnBboaBy.js → plaid-DS3FargU.js} +1 -1
- package/dist/assets/{pusher-Bly36HJj.js → pusher-fI6e2fO0.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-cGAZATVp.js → radio-default-CiSgisfh-BlGVs6W5.js} +1 -1
- package/dist/assets/{react-XiBAuA1q.js → react-2oa8mqCY.js} +12 -2
- package/dist/assets/{react-Dvzp2WQY.js → react-DGUD67o4.js} +12 -2
- package/dist/assets/react-DGs-yfEB.js +37 -0
- package/dist/assets/{react-BQQamkOQ.js → react-Dhg_7JXq.js} +12 -2
- package/dist/assets/{react-BTuVAJx5.js → react-PTvHN8FL.js} +13 -3
- package/dist/assets/{react-BfYalbE9.js → react-aVJXH_ps.js} +12 -2
- package/dist/assets/{react-Ce7uw7zT.js → react-ihVT-KIV.js} +12 -2
- package/dist/assets/{react-BB3tmZIH.js → react-pv23IQaZ.js} +12 -2
- package/dist/assets/{recharts-C5uMntUw.js → recharts-BKvR8EI0.js} +1 -1
- package/dist/assets/{routePaths-DY-F87LY.js → routePaths-BozUSOR4.js} +1 -1
- package/dist/assets/{sentry-CZ5rBRIL.js → sentry-tRTnR5ia.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DzA5SBv7.js → shield-DOlUxcFf-c8MRbcLE.js} +1 -1
- package/dist/assets/{spend-limit-D6SyboD4-DcVPGNzj.js → spend-limit-D6SyboD4-B-j1Sn9h.js} +1 -1
- package/dist/assets/toCOABalancesWithID-DzAIFjHl-Bv5FILWN.js +1 -0
- package/dist/assets/toChartData-BurvmO_S-tegfOE4s.js +1 -0
- package/dist/assets/{transaction-placeholder-CpOwZAMG-COfSIfub.js → transaction-placeholder-CpOwZAMG-B1W5bE7h.js} +1 -1
- package/dist/assets/{undo-b_3XZ5CX-GuaeTLDz.js → undo-b_3XZ5CX-CWSUI7Te.js} +1 -1
- package/dist/assets/{unlock-BPWn2I5L-dCTUzMJK.js → unlock-BPWn2I5L-DofDRoYu.js} +1 -1
- package/dist/assets/{uploadAttachment-BLbU_iLy-8zCKB5Pk.js → uploadAttachment-DtJo5Tp4-I2f6VcnN.js} +16 -16
- package/dist/assets/{uploadReceipts-CIgkuVpu-CdkwjCFf.js → uploadReceipts-Dge0cNF1-CtnQO8tO.js} +1 -1
- package/dist/assets/{url-BpDqVgZ1.js → url-C7onmSKg.js} +1 -1
- package/dist/assets/{url-B5OrmuhL.js → url-DgsAV5vb.js} +1 -1
- package/dist/assets/{useDeviceId-B2ttoe_4.js → useDeviceId-DXjMFBrp.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-PDMuzuX_.js → useInitialThreadRequest-CVIIrf8B.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-DX6C4FZu.js → useLongPress-GCK2COYQ-BErt8Gng.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-DwPxDnl2.js → usp-line-BBd1wKwW-Vkz6UgtT.js} +1 -1
- package/dist/assets/{utils-0wrLfZK3.js → utils-VuBQoQGa.js} +20 -7
- package/dist/assets/withTransactionSidePanel-DCoGJOSb.js +8 -0
- package/dist/assets/zeni-epic-state-DiMW9axO.js +122 -0
- package/dist/assets/{zeni-icon-only-Bw33PFmX.js → zeni-icon-only-soz6I0gO.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +8 -16
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-CfvX6zSV-orp1kpUl.js +0 -21
- package/dist/assets/AccountInfoPage-XrG_Cs9Q-DGo7arLd.js +0 -18
- package/dist/assets/AccountInfoPageContent-Bk0YQ-4C-EIvLBn9J.js +0 -149
- package/dist/assets/AccountRow-2vAGu-jm-CsRx_9_c.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-BjL_E7Jt-CWiP3Ul9.js +0 -6
- package/dist/assets/AddressRoutes-BhTs0719.js +0 -1
- package/dist/assets/AddressScreen-C7FI08DQ.js +0 -9
- package/dist/assets/AppDrawerContent-DpoXoHZU-CYeg8brB.js +0 -92
- package/dist/assets/ApprovalRulesSettingsPage-BfXvTQyU-DBTdErTc.js +0 -47
- package/dist/assets/ArAgingChart-BwVPNYHv-CcByfol5.js +0 -24
- package/dist/assets/BalancesInsightWithToolTip-B0YZt5m3-BSEIXbC4.js +0 -38
- package/dist/assets/BankAccountWarningSection-BQlPiqev-VfBZFP3w.js +0 -51
- package/dist/assets/BillDetailPage-44pWv8Nq-9uRwD-vz.js +0 -266
- package/dist/assets/BillPayApprovalRoutes-Dlvg_E83.js +0 -1
- package/dist/assets/BillPayApprovalRuleDetailPage-D_Q7_oVR-BwbwveWy.js +0 -27
- package/dist/assets/BillPaySetUpPage-bNDxI3Kh-B9_ilJ_1.js +0 -42
- package/dist/assets/BillingSettingsPage-4WGlC_Ok-Cu5yW_nx.js +0 -44
- package/dist/assets/BusinessVerificationPage-CYzudAIt-ChK6OXP0.js +0 -138
- package/dist/assets/BusinessVerificationPageScreen-k-BeqwEY.js +0 -9
- package/dist/assets/BusyIndication-BYTP8DO9-DM831bTM.js +0 -9
- package/dist/assets/ChargeCardListTable-Daaen5Xe-D0lOSTTo.js +0 -711
- package/dist/assets/ChargeCardPromoPage-DAk2fYcE-Be70q6jd.js +0 -222
- package/dist/assets/CheckDepositDrawerPage-DlJJaad8-DQQw5HV9.js +0 -206
- package/dist/assets/CollapsableReportTable-CcyH-50D-DL-xxcdl.js +0 -2941
- package/dist/assets/CompanyOfficerDetailsSection-m-m1nELP-DdzEvWuy.js +0 -331
- package/dist/assets/CompanyPassportCard-ZBDBE8eV-D5rcoYI7.js +0 -42
- package/dist/assets/ConfettiBurst-BCkkcLA1-CfFNklpq.js +0 -1
- package/dist/assets/ConnectionAuthScreen-D8HCXHjs.js +0 -11
- package/dist/assets/CurrencySelectField-CwNGSmb2-D7S0733a.js +0 -139
- package/dist/assets/CustomerOnboardingAuthScreen-2a10tVxr.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-C_wG7Q8O-csD_XfJD.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-DF6CbSZs-Ce1wmMhs.js +0 -66
- package/dist/assets/DashboardRoutes-D7-BQybA.js +0 -21
- package/dist/assets/DashboardSidebarBackgroundAnimation-Cn_5tbit-wUk3-phQ.js +0 -12
- package/dist/assets/DepositAccTransactionItem-DnL2eweO-B6q6pWTa.js +0 -76
- package/dist/assets/DepositAccTransactionListPage-HAUhc4OH-Bic7M5jt.js +0 -66
- package/dist/assets/DomesticWireDetailScreen-Cd59xXc1.js +0 -18
- package/dist/assets/DomesticWireDetailsPage-QhDoZX5h-ALe5PVzc.js +0 -21
- package/dist/assets/DownloadOverlay-GFsPIkgY-BMkk3cm2.js +0 -439
- package/dist/assets/DrawerScreen-D5FqBBJJ.js +0 -1
- package/dist/assets/EditPeoplePage-DD6wg7xI-BXT7xcGL.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-D8RHkMHR-DIlKE1Mz.js +0 -865
- package/dist/assets/EntityDetailPage-levtFHaa-DqaXP9Yk.js +0 -18
- package/dist/assets/EntityDetailRoutes-DVHLqQYx.js +0 -1
- package/dist/assets/ExpenseAutomationPage-DD33LDin-Ba6vQBRK.js +0 -3614
- package/dist/assets/ExpenseAutomationRoutes-B_iGGphM.js +0 -20
- package/dist/assets/FeaturePreviewScreen-BNFYctNf.js +0 -1
- package/dist/assets/GlobalReviewListPage-C5h9rvVb-nfB02P_2.js +0 -291
- package/dist/assets/InsightsCardStack-CkxN0Fd6-763HMSE3.js +0 -79
- package/dist/assets/InsightsSection-Cwd2cIP2-CZ7okUuA.js +0 -27
- package/dist/assets/IntegrationsSettingsPage-CN3x9o-8-BQvn7JQh.js +0 -57
- package/dist/assets/InternationalWireVerificationPage-H6gzEDg6-DaDQKgwa.js +0 -65
- package/dist/assets/InvitePeoplePage-D-XyBXhF-D6owWKuc.js +0 -12
- package/dist/assets/InvoiceUploadSection-DaJWTI5B-CqhFo4gs.js +0 -140
- package/dist/assets/LabeledAddressValueField-B5eyO5LD-BX0obAqg.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-DNFUkVLh-CHxF5t5z.js +0 -16
- package/dist/assets/LabeledDocumentField-H4V0rHKt-BNkRXnBY.js +0 -41
- package/dist/assets/LabeledText-BDkcgGG4-C5NFd1eb.js +0 -42
- package/dist/assets/MagicLinkACHDetailsPage-DdWD8eZA-Bt3qU_e2.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-zLqzW0ZA-BWYuY1Ca.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-OpEbz58h-CFz87ekO.js +0 -1
- package/dist/assets/MagicLinkRoutes-D2_ecbfc.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-BZLNJqh8.js +0 -12
- package/dist/assets/MobileAppDrawer-CAXlcX9R.js +0 -1
- package/dist/assets/NavBarWithPicker-BpjOj0Mh-BwvJYNac.js +0 -30
- package/dist/assets/NavigationArrow-wyRPTk_w-DPu3Oj9V.js +0 -47
- package/dist/assets/NavigationDots-D4jbU1WN-jeganfr5.js +0 -15
- package/dist/assets/NoDataChart-tpjEi1Wb-D421f-73.js +0 -26
- package/dist/assets/NotFoundScreen-CF8ObwPz.js +0 -1
- package/dist/assets/NotificationRoutes-pUWH8lSx.js +0 -1
- package/dist/assets/NotificationsListConfig-CqxCGQSM-OgByU3Gt.js +0 -1
- package/dist/assets/NotificationsPage-xmWyvsYE-BIF5tt7P.js +0 -685
- package/dist/assets/OpExByVendorPage-BwWSNQjj-3fV9YIn4.js +0 -100
- package/dist/assets/PandLWithForecastPage-GXzJgAFS-Cp5kSDNk.js +0 -107
- package/dist/assets/PandLWithForecastRoutes-XLAPfYww.js +0 -1
- package/dist/assets/PeoplePage-CgLumn7f-D_i2gWcF.js +0 -772
- package/dist/assets/PeopleRoutes-Cu0U5U2W.js +0 -22
- package/dist/assets/PerformanceRoutes-3KgDs52i.js +0 -1
- package/dist/assets/QBOSetupSection-BaxLXdyW-pjTHwp3k.js +0 -79
- package/dist/assets/ReferralListScreen-C3_oL385.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-CJ6a1Z7l.js +0 -1
- package/dist/assets/ReimbursementDetailPage-BOW1JodW-D-JMFLZJ.js +0 -314
- package/dist/assets/ReimbursementPromoPage-lD4FRDbt-DT8tB2X5.js +0 -84
- package/dist/assets/ReimbursementRoutes-CgNdfg_9.js +0 -13
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-BV1eoHFe-DYTqcpuP.js +0 -1
- package/dist/assets/ReloadCard-DZJ1-x96-Cbk2YJf5.js +0 -26
- package/dist/assets/ReportTableViewSelector-NmHJk-6O-DC1xlLpc.js +0 -151
- package/dist/assets/ReportsPage-CqCp4w8y-BKv48wE_.js +0 -237
- package/dist/assets/ReportsRoutes-Cjka5GZR.js +0 -1
- package/dist/assets/ReviewDetailsPage-Dm5-QehL-BGVz2Skg.js +0 -290
- package/dist/assets/RewardsRoutes-Cg47LISe.js +0 -1
- package/dist/assets/RoleWithToolTip-Cu0ixEhp-BLzDuQC4.js +0 -22
- package/dist/assets/ScheduleSequenceTable-Dgb-vhXK-B3jTjQj6.js +0 -324
- package/dist/assets/ScreenRoutes-CLgK0flG.js +0 -2
- package/dist/assets/SettingsRoutes-DTEJaC0y.js +0 -57
- package/dist/assets/SignInScreen-DDGNuzrN.js +0 -1
- package/dist/assets/SignOutScreen-Vd1yIsf9.js +0 -9
- package/dist/assets/SpendManagementListViewPage-DkEZTojy-Bbryxib4.js +0 -134
- package/dist/assets/SpendManagementSection-DqDra2TJ-UYVOSI6A.js +0 -375
- package/dist/assets/StatementItem-DSuaMb54-DvgnUhnF.js +0 -31
- package/dist/assets/StatementsPage-BO3P2kKJ-BlvqqfSa.js +0 -58
- package/dist/assets/SuccessAnimation-4kdc8tt0-3U7Tbur-.js +0 -13
- package/dist/assets/SummaryCard-D4k-35Mt-pAdg9hEc.js +0 -1
- package/dist/assets/TaskListScreen-DS-z4_ic.js +0 -9
- package/dist/assets/TaskManagementPage-Cadtu3qQ-BS26r7bL.js +0 -1067
- package/dist/assets/TaskRoutes-DOJRy1jK.js +0 -9
- package/dist/assets/TimeRangeSwitcher-CXt00my3-0befHeUq.js +0 -64
- package/dist/assets/TimeframeSwitcher-D0ujXDLd-BQsQ9a9G.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-CMzQ2qRz-CbDb6VxM.js +0 -53
- package/dist/assets/TransactionDetailPage-B1UKqtkR-d5IFX2Ag.js +0 -903
- package/dist/assets/TransactionDetailRoutes-CcFWlu2e.js +0 -1
- package/dist/assets/TransactionDetailScreen-BiSUP3Ye.js +0 -5
- package/dist/assets/TransactionList-BE3ODDi0-DWNC6ZOm.js +0 -153
- package/dist/assets/TransactionListPage-DqY2twbP-BNNOPUy7.js +0 -35
- package/dist/assets/TreasuryOverviewPage-lmaT3YkG-DTrJbZN8.js +0 -725
- package/dist/assets/TreasuryRoutes-B45oraKw.js +0 -45
- package/dist/assets/TreasuryStatementsPage-BguLbwsn-CqYwnBvA.js +0 -58
- package/dist/assets/TrendWithTransactions-atLfDrR5-BWQ8ewta.js +0 -116
- package/dist/assets/UploadAdditionalDocumentOverlay-D0FPdZ3n-D_o6UAT5.js +0 -38
- package/dist/assets/Vendor2FAPopup-CH44a6ok-D7quKD79.js +0 -1
- package/dist/assets/VendorACHDetailsPage-YgMvjx2w-Cc9yRWvp.js +0 -1
- package/dist/assets/VendorDetailPage-DJ54yvWY-CrTCfpgf.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-CRsOlxyy-BYyMlDV2.js +0 -1
- package/dist/assets/VendorFirstReviewPage-7VUbqyR2-D5_39yaN.js +0 -730
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-D0Fnosfi-nHm5cJMF.js +0 -1
- package/dist/assets/VerifyDevice-gXwkGIjJ-Eh05VlWI.js +0 -112
- package/dist/assets/WiseConfirmationScreen-D3O3YSmJ.js +0 -12
- package/dist/assets/ZeniAccountDetailPage-DlCJ5UGq-D3gjQmIJ.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-DTiBd3Ze--cesRi3D.js +0 -443
- package/dist/assets/ZeniAccountNavBarPieces-DAcKYXqh-C9FBd2ju.js +0 -33
- package/dist/assets/ZeniAccountRoutes-uGhl8Fda.js +0 -58
- package/dist/assets/ZeniAccountStatementScreen-BWKARWnP.js +0 -9
- package/dist/assets/ZeniTransferAmountSlider-CX1FGWrl-CYsYWj7Y.js +0 -63
- package/dist/assets/bank-letter-BOcVjN6J-Cei8xClC.js +0 -1
- package/dist/assets/common-Dx_KVthm-CevE2N5L.js +0 -1
- package/dist/assets/commonDimensions-Bno19oYe-CEAcpM9E.js +0 -1
- package/dist/assets/downloadPdf-CkATqzUx-CAAsaSoH.js +0 -1
- package/dist/assets/empty-DMh0uNaa.js +0 -1
- package/dist/assets/epic-rdGaLX8n.js +0 -2
- package/dist/assets/getLocaleForTenant-XwAfvjzQ.js +0 -1
- package/dist/assets/index-BkXFulDf.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-D02PFsN8-HzZiwtin.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CoqcGXTM-BqsDu5g7.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-D0zXBGho-BlLHhiHi.js +0 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-DwZ96bUM.js +0 -3
- package/dist/assets/react-CFCUHd70.js +0 -19
- package/dist/assets/toCOABalancesWithID-C-wpsGXP-DipYDOu_.js +0 -1
- package/dist/assets/toChartData-C-X2WzOE-Bq8iIFdZ.js +0 -1
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-D0qWvkKO.js +0 -1
- package/dist/assets/withTransactionSidePanel-Cqk9VVqu.js +0 -8
- package/dist/assets/zeni-epic-state-Cr-rO4HZ.js +0 -14
|
@@ -0,0 +1,865 @@
|
|
|
1
|
+
import{a7 as di,y as St,t as vt,T as rn,z as Di,Q as ln,J as Le,fy as Xn,fA as eo,fB as to,V as t,fW as io,A as sn,bK as ui,bL as dn,bM as cn,a6 as G,o as i,b as s,a_ as ji,aM as no,cK as oo,fC as ao,fN as un,fI as Oi,a9 as mn,m as pn,fJ as ro,fX as He,dT as Ze,eo as mi,fY as Ft,O as we,f as $t,fZ as lo,e as P,a8 as hn,I as pi,u as a,aV as so,fL as co,c0 as uo,d$ as hi,f_ as Nt,eD as Ce,c4 as gi,eG as ke,c3 as rt,dD as mo,eC as gn,j as zt,c7 as yn,c6 as ot,dL as Oe,x as yi,f$ as po,b$ as ho,ad as Pi,eP as go,aU as yo,au as bn,aA as bo,dC as fo,ar as Et,fD as xo,bi as fn,H as bi,B as xn,ch as wn,bB as Wt,ee as wo,at as So,cl as vo,eJ as $o,s as fi,i as Ri,bg as Sn,al as Li,cg as Co,W as ko,c9 as vn,a4 as Io,g0 as $n,g1 as ci,ft as Ai,ec as Bt,bZ as To,fx as Do,b6 as jo,cf as Oo}from"./index-DorX0WX8.js";import{a as w,b as Tt}from"./sentry-tRTnR5ia.js";import{n}from"./mui-gZ2J-2YO.js";import{_ as Po}from"./liveblocks-f_lxxH57.js";import{Fm as Ro,bG as at,b_ as Cn,cp as kn,ck as zi,Fn as Bi,bs as xi}from"./zeni-epic-state-DiMW9axO.js";import In from"./InvoiceUploadSection-DdIQCBkC-hgUkpCX_.js";import{r as Lo,f as Mt,d as wt,p as wi,u as Mi,h as De}from"./types-DyvtCprH-VF9iATMs.js";import{I as Ao}from"./LabeledCreatableSingleSelectField-CzrPLo-T-WU7xdxt6.js";import{S as zo}from"./CurrencySelectField-D_D8AUqS-W5q-11LT.js";import{u as Bo}from"./plaid-DS3FargU.js";import{e as Mo}from"./BankAccountSection-oL-aN0I_-51rG79cf.js";import{W as Fo,A as No}from"./BankAccountWarningSection-CtRFcHTv-CaeCkm0V.js";import{o as Eo}from"./radio-default-CiSgisfh-BlGVs6W5.js";import"./pdf-BNA4Ou8X.js";import"./core-ADrPabGT.js";import"./lottie-sNoV77jf.js";import"./dnd-83aXbnEf.js";import"./analytics-D7HtemTn.js";import"./recharts-BKvR8EI0.js";import"./utils-VuBQoQGa.js";import"./AttachmentView-ENg9Osic-C_h00Xvo.js";import"./uploadReceipts-Dge0cNF1-CtnQO8tO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="f53b99d9-6048-4077-8317-2a4fbaa55b7f",e._sentryDebugIdIdentifier="sentry-dbid-f53b99d9-6048-4077-8317-2a4fbaa55b7f")}catch{}})();const Ne=(e,o)=>`${e}.${o}`,Fi={largeLabelWidth:new s(120,120,160),paddingBottom:new s(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:Te}},dateFormat:Wo,common:Uo}=we.getLocalizedStrings(),_o=({lineIndex:e,mileage:o,classList:r,defaultCurrency:h,sectionId:u,isReimbursementCommentingEnabled:j,isDisabled:c,isAddReimbursementDisabled:$,companyMileageConfigInfo:p,reimbursementId:d,classHierarchyList:R})=>{const S=Le(),l=vt(),y=Nt(),x=`dashboard_${l.currentTenant?.companyId}`,g=St(),{formState:{errors:b},getValues:O,trigger:_}=rt(),k=Uo.strings.empty,T=O(Ne(u,"distanceInMiles")),B=Fi.largeLabelWidth.value(S),ie=O(Ne(u,"class")),ae=r.find(D=>D.classId===ie?.selectedOption),re=Ne(u,"class"),M=Oe(b,re);w.useEffect(()=>{ie?.selectedOption!=null&&(ae?.isDeleted===!0||M)&&_(re)},[ie?.selectedOption,ae?.isDeleted,r,re,_]);const ne={application:"dashboard",companyId:l.currentTenant?.companyId,tab:"reimbursement",entityId:d},V=r.find(D=>D.classId===o.class),me={valueContainer:D=>({...D,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(Ce,{isThreadAllowed:j&&d!=null,dashboardTabKey:ke({type:"details",key:`${e}.mileage.transactionDate`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${De("transactionDate",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(vn,{isDisabled:c,label:{label:Te.transactionDate,width:B},style:{paddingBottom:Fi.paddingBottom.valuePx(S),width:"auto"},dateField:{name:Ne(u,"transactionDate"),placeholder:Te.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Wo.visual.defaultInput,autoComplete:"off",maxDate:xi(),registerOptions:{required:!0,validate:D=>!!D}}})}),t.jsx(Dt,{}),t.jsx(Ce,{isThreadAllowed:j&&d!=null,dashboardTabKey:ke({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${De("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Ai,{isDisabled:$?"disabled":void 0,style:{width:"auto"},label:{label:Te.distanceInMiles,width:B},formattedTextField:{type:"number",name:Ne(u,"distanceInMiles"),placeholder:Te.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:D=>D==null||D>0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(Dt,{}),t.jsx(Ce,{isThreadAllowed:j&&d!=null,dashboardTabKey:ke({type:"details",key:`${e}.mileage.amount`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${De("amount",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Ai,{isDisabled:"disabled",label:{label:Te.amount,width:B},formattedTextField:{type:"number",name:Ne(`${u}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:ot(Te.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:D=>D==null||D>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:T!=null&&p?.mileageUnitAmount!=null?`${h.currencySymbol}${p?.mileageUnitAmount} per mile x ${T}`:void 0})}),t.jsx(Dt,{}),t.jsx(Ce,{isThreadAllowed:j&&d!=null,dashboardTabKey:ke({type:"details",key:`${e}.mileage.memo`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${De("memo",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(gi,{isDisabled:c,label:{label:Te.memo,width:B},style:{width:"auto"},text:{type:"text",name:Ne(u,"memo"),placeholder:ot(Te.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(Dt,{}),t.jsx(Ce,{isThreadAllowed:j&&d!=null,dashboardTabKey:ke({type:"details",key:`${e}.mileage.class`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${De("class",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(ci,{isLoading:!1,label:{label:Te.department,width:B},additionalLabelInfo:ae?.isDeleted===!0&&Oe(b,Ne(u,"class"))?Te.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Ne(u,"class"),placeholder:ot(Te.department),valueToId:D=>(J=>r.filter(pe=>pe.classId===J)[0]?.accountingClassNumber)(D),defaultValue:{selectedOption:V?.classId,allOptions:Ze(R,[])},style:{width:"100%"},customStyleConfig:me,registerOptions:{required:!0,validate:D=>D?.selectedOption!=null&&(r.find(J=>J.classId===D?.selectedOption)?.isDeleted!==!0||Te.deletedClassError)}},style:{borderBottom:`1px solid ${g.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Ne(u,"class"))})]})},Dt=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
|
+
`,Ni={amounWidth:new s(50,30),currencyWidth:new s(50,70)};function Vo({name:e,placeHolder:o,defaultValue:r,isDisabled:h,showAmountCurrencyError:u,style:j,allCurrencies:c}){const[$,p]=w.useState(!1),{getValues:d,formState:{errors:R}}=rt(),S=St(),l=Le(),y=h!=null,x=d(e),g=`${x?.amount} ${x?.currency?.selectedOption}`,b=Oe(R,e)&&Bt(R,`${e}.amount`)!=null,O=Oe(R,e)&&Bt(R,`${e}.currency`)!=null,_=u===!0&&(b||O),k=!_&&$===!1;return w.useEffect(()=>{k===!1&&p(!0)},[k]),t.jsx(pn,{onClickAway:()=>y===!1&&!_&&p(!1),children:t.jsx(Ho,{style:j,isDisabled:y,tabIndex:k&&!y?0:void 0,onClick:()=>y===!1&&p(!0),"data-testid":G("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[x?.amount!=null?t.jsx(Ei,{className:"amount-field",isVisible:k,children:g}):t.jsx(Ei,{className:"amount-field amount-placeholder",isVisible:k,children:o?.name}),t.jsxs(qo,{isVisible:!k,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:T=>T==null||T>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:h,style:{display:"flex",flexGrow:1,width:Ni.amounWidth.valuePercentage(l),cursor:"inherit"},bgColor:S.colors.background,isFieldError:b,shouldHighlightZeroAmount:!0}),k?null:t.jsx(Ko,{}),t.jsx(zo,{name:`${e}.currency`,registerOptions:{validate:T=>T!=null&&T.selectedOption!=null},defaultValue:{allOptions:c.map(T=>({label:l==="small"?T.currencyCode:`${T.currencyCode} - ${T.currency}`,value:T.currencyCode,countryCode:T.countryCode})),selectedOption:r?.currencyCode},controlStyle:{justifyContent:"flex-start",backgroundColor:S.colors.background},isDisabled:h,style:{width:Ni.currencyWidth.valuePercentage(l),flexGrow:1},isOptionRemovable:!1})]})]})})})}const qo=n.div`
|
|
8
|
+
display: ${e=>e.isVisible?"flex":"none"};
|
|
9
|
+
width: 100%;
|
|
10
|
+
input {
|
|
11
|
+
text-align: left;
|
|
12
|
+
}
|
|
13
|
+
`,Ho=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
|
+
`,Ko=n.div`
|
|
26
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
27
|
+
min-width: ${i.sp3};
|
|
28
|
+
`,Ei=n(bn)`
|
|
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
|
+
`,Ve={width:new s(343,580,726),height:new s(a[6],a[6]),controlHeight:new s(a[6],a[6]),paddingTopBottom:new s(a[2],a[2]),marginRight:new s(a[2],a[2]),labelMarginLeft:new s(a[3],a[4]),labelMarginRight:new s(a[3],a[4]),labelMarginTop:new s(a[2],a[2])},Tn={infoLabel:new bi("extraSmallRegular","smallRegular")};function Go({isDisabled:e,label:o,currencyAmountField:r,style:h,errorInfoLabel:u,isAdditionalInfoLabelLoading:j,showAdditionalLabelTooltip:c=!1,additionalLabelTooltip:$,additionalInfoLabel:p,showAdditionalInfoLabel:d=!0}){const R=Le(),{formState:{errors:S}}=rt(),l=Oe(S,r.name)&&Bt(S,`${r.name}.amount`)!=null,y=Oe(S,r.name)&&Bt(S,`${r.name}.currency`)!=null,x=r.showAmountCurrencyError===!0&&(l||y),g=l||y||x;return t.jsxs(Yo,{size:R,style:h,isDisabled:e!=null,isAmountError:l,isCurrencyError:y,"data-testid":G("labeled-currency-amount-field",r.name),children:[t.jsx(To,{isDisabled:e,label:o.label,htmlFor:r.name,style:{marginLeft:Ve.labelMarginLeft.value(R),marginRight:Ve.labelMarginRight.value(R),marginTop:Ve.labelMarginTop.value(R),width:o.width??"auto"}}),t.jsxs(Zo,{labelWidth:o.width,children:[t.jsx(Vo,{...r,isDisabled:e,style:{flexGrow:1,height:Ve.controlHeight.value(R)}}),g?t.jsx(Jo,{size:R,hasError:g,children:u}):null,(()=>{if(j===!0)return t.jsx(Xo,{children:t.jsx($t,{size:"Small",start:!0})});if(d&&p||x){let b=null;return c===!0&&d&&p&&(b=t.jsx(Sn,{placement:R==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Qo,{children:$??""}),children:t.jsx(ta,{children:t.jsx(ia,{})})})),t.jsxs(ea,{size:R,isError:x,hasToolTip:c,children:[b,p]})}})()]})]})}const Yo=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=>Ve.width.valuePx(e.size)};
|
|
46
|
+
min-height: ${e=>Ve.height.valuePx(e.size)};
|
|
47
|
+
padding-right: ${e=>Ve.marginRight.valuePx(e.size)};
|
|
48
|
+
padding-top: ${e=>Ve.paddingTopBottom.valuePx(e.size)};
|
|
49
|
+
padding-bottom: ${e=>Ve.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?P.importantLight:e.theme.colors.background};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
input:nth-of-type(2) {
|
|
74
|
+
background-color: ${e=>e.isCurrencyError?P.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?P.importantLight:e.theme.colors.background};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
input:nth-of-type(2) {
|
|
87
|
+
background-color: ${e=>e.isCurrencyError?P.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?P.importantLight:e.theme.colors.background};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
input:nth-of-type(2) {
|
|
104
|
+
background-color: ${e=>e.isCurrencyError?P.importantLight:e.theme.colors.background};
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`,Jo=n.label`
|
|
108
|
+
color: ${e=>e.hasError===!0?P.important:e.additionalInfoTextColor!=null?e.additionalInfoTextColor:e.theme.colors.grey1};
|
|
109
|
+
width: auto;
|
|
110
|
+
${e=>`${Tn.infoLabel.style(e.size)}`};
|
|
111
|
+
padding-right: ${i.sp3};
|
|
112
|
+
text-align: right;
|
|
113
|
+
`,Zo=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
|
+
`,Qo=n(yi)`
|
|
120
|
+
padding: 12px;
|
|
121
|
+
color: ${e=>e.theme.colors.grey1};
|
|
122
|
+
background: ${e=>e.theme.colors.overlayColor};
|
|
123
|
+
border-radius: ${i.sp1};
|
|
124
|
+
`,Xo=n.div`
|
|
125
|
+
padding-right: ${i.sp3};
|
|
126
|
+
padding-top: ${i.sp1};
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: flex-end;
|
|
129
|
+
`,ea=n.label`
|
|
130
|
+
display: flex;
|
|
131
|
+
justify-content: flex-end;
|
|
132
|
+
color: ${e=>e.isError?P.important:e.theme.colors.hero};
|
|
133
|
+
&:hover {
|
|
134
|
+
color: ${e=>e.isError?P.importantDark:e.theme.colors.primary};
|
|
135
|
+
}
|
|
136
|
+
${e=>`${Tn.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
|
+
`,ta=n.div`
|
|
141
|
+
display: flex;
|
|
142
|
+
margin-right: ${i.sp2};
|
|
143
|
+
margin-top: 2px;
|
|
144
|
+
align-items: center;
|
|
145
|
+
`,ia=n(jo)`
|
|
146
|
+
width: ${i.sp3};
|
|
147
|
+
height: ${i.sp3};
|
|
148
|
+
color: inherit;
|
|
149
|
+
`,ye=(e,o)=>`${e}.${o}`,At={largeLabelWidth:new s(120,120,160),smallLabelWidth:new s(85,85,160),paddingBottom:new s(a[3],a[2]),autoFillIconLeft:new s(-8,-24)},{dateFormat:na,common:Dn,spendManagement:{reimbursement:{reimbursementDetail:oe}}}=we.getLocalizedStrings(),{strings:{empty:se}}=Dn,oa=({lineIndex:e,outOfPocket:o,accountList:r,classList:h,merchantList:u,isAddReimbursementDisabled:j,sectionId:c,isReimbursementCommentingEnabled:$,isDisabled:p,autoFields:d=[],accountsHierarchyList:R,classHierarchyList:S,reimbursementId:l,tentativeMerchantName:y,allCurrencies:x,uncategorizedAccounts:g})=>{const b=Le(),O=vt(),_=Nt(),k=St(),{formState:{errors:T},getValues:B,trigger:ie}=rt(),ae=B(ye(c,"class")),re=h.find(v=>v.classId===ae?.selectedOption),M=ye(c,"class"),ne=Oe(T,M),V=B(ye(c,"account")),me=r.find(v=>v.qboId===V?.selectedOption||v.accountId===V?.selectedOption),D=ye(c,"account"),J=Oe(T,D);w.useEffect(()=>{ae?.selectedOption!=null&&(re?.isDeleted===!0||ne)&&ie(M)},[ae?.selectedOption,re?.isDeleted,h,M,ie]),w.useEffect(()=>{V?.selectedOption!=null&&(me?.isDeleted===!0||J)&&ie(D)},[V?.selectedOption,me?.isDeleted,r,D,ie]);const pe=o.isCategoryUpdateSelected!=null&&o.recommendedAccount!=null&&!o.isCategoryFirstTimeAutofilled&&!((v,U)=>{const ce=v.slice(1);let Ke=!1;return ce.forEach(N=>{N.account?.qboId!=null&&N.account?.qboId===U&&(Ke=!0)}),Ke})(o.recommendations,o.account),de=o.isRetainedCategorySelected!=null&&o.retainedAccount!=null,H=At.largeLabelWidth.value(b),he=At.smallLabelWidth.value(b),We=u.map(v=>v.id??se),ge={application:"dashboard",companyId:O.currentTenant?.companyId,tab:"reimbursement",entityId:l},be=`dashboard_${O.currentTenant?.companyId}`,le=r.find(v=>v.qboId===o.account),Ae=h.find(v=>v.classId===o.class),Ie={valueContainer:v=>({...v,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},Pe=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",(v=>v.charAt(0).toLowerCase()+v.slice(1))(o?.recommendedAccount?.reason??se)),fe=Ft(R,o.recommendations);return t.jsxs(t.Fragment,{children:[y!=null||d.includes("merchant")?t.jsx(pt,{children:t.jsx(gt,{windowSize:b,children:t.jsx(ht,{})})}):null,t.jsx(Ce,{isThreadAllowed:$&&l!=null,dashboardTabKey:ke({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:be,companyId:O.currentTenant?.companyId??se,companyName:O.currentTenant?.companyName??se,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${De("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:_?.sharedRef?.contentWrapperRef,children:t.jsx(Ao,{isDisabled:p!=null||j?"disabled":void 0,label:{label:oe.merchant,width:H},style:{width:"auto"},creatableSingleSelectField:{name:ye(c,"merchant"),placeholder:oe.merchantPlaceholder,defaultValue:{selectedOption:o.merchant??se,allOptions:We},registerOptions:{required:!0,validate:v=>!!v.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:v=>u.find(U=>U.id===v)?.name??v})}),t.jsx(jt,{}),d.includes("transactionDate")?t.jsx(pt,{children:t.jsx(gt,{windowSize:b,children:t.jsx(ht,{})})}):null,t.jsx(Ce,{isThreadAllowed:$&&l!=null,dashboardTabKey:ke({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:be,companyId:O.currentTenant?.companyId??se,companyName:O.currentTenant?.companyName??se,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${De("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:_?.sharedRef?.contentWrapperRef,children:t.jsx(vn,{isDisabled:p,label:{label:oe.transactionDate,width:H},style:{paddingBottom:At.paddingBottom.valuePx(b),width:"auto"},dateField:{name:ye(c,"transactionDate"),placeholder:oe.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:na.visual.defaultInput,autoComplete:"off",maxDate:xi(),registerOptions:{required:!0,validate:v=>!!v}}})}),t.jsx(jt,{}),d.includes("amount")?t.jsx(pt,{children:t.jsx(gt,{windowSize:b,isTwoLined:!0,children:t.jsx(ht,{})})}):null,t.jsx(Ce,{isThreadAllowed:$&&l!=null,dashboardTabKey:ke({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:be,companyId:O.currentTenant?.companyId??se,companyName:O.currentTenant?.companyName??se,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${De("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:_?.sharedRef?.contentWrapperRef,children:t.jsx(Go,{isDisabled:p!=null||j?"disabled":void 0,label:{label:oe.amount,width:he},style:{width:"auto"},currencyAmountField:{style:{height:i.sp6},name:`${c}.amount`,defaultValue:{amount:o.amount.amount,currencyCode:o.amount.currencyCode,currencySymbol:o.amount.currencySymbol},placeHolder:{amount:oe.addAmount,name:oe.addAmount},allCurrencies:x,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:oe.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:o.isConvertedCurrencyLoading===!0,additionalInfoLabel:ln(o.homeCurrencyDetails,o.amount)||o.amount.currencyCode===Dn.currency.currencyCode||o.homeCurrencyDetails?.amount===0?void 0:`${Io("0,0[.]00",o.homeCurrencyDetails)} ${o.homeCurrencyDetails?.currencyCode}`})}),t.jsx(jt,{}),d.includes("memo")?t.jsx(pt,{children:t.jsx(gt,{windowSize:b,children:t.jsx(ht,{})})}):null,t.jsx(Ce,{isThreadAllowed:$&&l!=null,dashboardTabKey:ke({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:be,companyId:O.currentTenant?.companyId??se,companyName:O.currentTenant?.companyName??se,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${De("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:_?.sharedRef?.contentWrapperRef,children:t.jsx(gi,{isDisabled:p,label:{label:oe.memo,width:H},style:{width:"auto"},text:{type:"text",name:ye(c,"memo"),placeholder:ot(oe.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(jt,{}),d.includes("account")?t.jsx(pt,{children:t.jsx(gt,{windowSize:b,children:t.jsx(ht,{})})}):null,t.jsx(Ce,{isThreadAllowed:$&&l!=null,dashboardTabKey:ke({type:"details",key:`${e}.out_of_pocket.account`}),roomId:be,companyId:O.currentTenant?.companyId??se,companyName:O.currentTenant?.companyName??se,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${De("account",e,"out_of_pocket")}`},fieldThreadTargetElement:_?.sharedRef?.contentWrapperRef,children:t.jsx(ci,{label:{label:oe.category,width:H},additionalLabelInfo:me?.isDeleted===!0&&Oe(T,ye(c,"account"))?oe.deletedCategoryError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:pe||de,name:ye(c,"account"),placeholder:oe.categoryPlaceholder,valueToId:v=>(U=>r.filter(ce=>ce.qboId===U)[0]?.qboId)(v),defaultValue:{selectedOption:le?.qboId??le?.accountId,allOptions:fe},style:{width:"100%"},customStyleConfig:Ie,registerOptions:{required:!0,validate:v=>v?.selectedOption!=null&&(r.find(U=>U.qboId===v?.selectedOption||U.accountId===v?.selectedOption)?.isDeleted!==!0||oe.deletedCategoryError)}},disableCurrentOption:v=>[g.expense?.qboId,g.income?.qboId].includes(v),style:{borderBottom:`1px solid ${k.colors.grey3}`,minHeight:i.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:o.isRecommendationLoading,recommendationCheckboxField:pe?{tooltipProps:{text:Pe},label:{label:o.recommendedAccount?.accountName??se},checkBoxField:{name:ye(c,"isCategoryUpdateSelected"),defaultChecked:!!o.isCategoryUpdateSelected}}:void 0,retainCheckboxField:de?{label:{label:o.retainedAccount?.accountName??se},checkBoxField:{name:ye(c,"isRetainedCategorySelected"),defaultChecked:!!o.isRetainedCategorySelected}}:void 0},ye(c,"account"))}),d.includes("class")?t.jsx(pt,{children:t.jsx(gt,{windowSize:b,children:t.jsx(ht,{})})}):null,t.jsx(Ce,{isThreadAllowed:$&&l!=null,dashboardTabKey:ke({type:"details",key:`${e}.out_of_pocket.class`}),roomId:be,companyId:O.currentTenant?.companyId??se,companyName:O.currentTenant?.companyName??se,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${De("class",e,"out_of_pocket")}`},fieldThreadTargetElement:_?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(ci,{isLoading:!1,label:{label:oe.department,width:H},additionalLabelInfo:re?.isDeleted===!0&&Oe(T,ye(c,"class"))?oe.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:ye(c,"class"),placeholder:ot(oe.department),valueToId:v=>(U=>h.filter(ce=>ce.classId===U)[0]?.accountingClassNumber)(v),defaultValue:{selectedOption:Ae?.classId,allOptions:Ze(S,[])},style:{width:"100%"},customStyleConfig:Ie,registerOptions:{required:!0,validate:v=>v?.selectedOption!=null&&(h.find(U=>U.classId===v?.selectedOption)?.isDeleted!==!0||oe.deletedClassError)}},style:{borderBottom:`1px solid ${k.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},ye(c,"class"))})]})},pt=n.span`
|
|
150
|
+
position: relative;
|
|
151
|
+
`,ht=n(hi)`
|
|
152
|
+
color: ${e=>e.theme.colors.primary};
|
|
153
|
+
width: ${i.sp3};
|
|
154
|
+
height: ${i.sp3};
|
|
155
|
+
`,gt=n.div`
|
|
156
|
+
z-index: 2;
|
|
157
|
+
left: ${e=>At.autoFillIconLeft.valuePx(e.windowSize)};
|
|
158
|
+
position: absolute;
|
|
159
|
+
top: ${e=>e.isTwoLined===!0?i.sp5:"22px"};
|
|
160
|
+
`,jt=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
|
+
`,it=(e,o)=>`${e}.${o}`,qe={paddingTop:new s(a[5],a[4]),marginBottom:new s(a[3],a[3]),labelPaddingLeft:new s(a[3],a[4]),buttonWidth:new s(70,70),containerRightMargin:new s(a[3],a[8]),containerLeftMargin:new s(a[3],a[6]),deleteConfirmationTextMarginBottom:new s(a[2],a[0])},Y=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,aa=({lineData:e,currencyConversionState:o,recommendationFetchState:r,remiStage:h,lineIndex:u,accountList:j,classList:c,merchantList:$,hasFile:p,defaultCurrency:d,hasMultipleLineItems:R,fileRequiredLineIds:S,duplicateLineDetails:l,remiStatus:y,sectionId:x,isDisabled:g,isReimbursementCommentingEnabled:b,isAddReimbursementDisabled:O,style:_,autoFields:k=[],analytics:T,reimbursementId:B,tentativeMerchantName:ie,companyMileageConfigInfo:ae,uncategorizedAccounts:re,removeDuplicateReimbursementForLine:M,scrollToSection:ne,onDuplicateLineClick:V,onRemoveReimbursement:me,clearTentativeNameForLine:D,allCurrencies:J,accountsHierarchyList:pe,classHierarchyList:de})=>{const H=Le(),he=vt(),We=Nt(),ge=we.getLocalizedStrings().common.strings.empty,be={application:"dashboard",companyId:he.currentTenant?.companyId,tab:"reimbursement",entityId:B},le=`dashboard_${he.currentTenant?.companyId}`,{getValues:Ae}=rt(),[Ie,Pe]=w.useState(!1),fe=Ae(it(x,"reimbursementType"));return t.jsxs(ma,{style:_,windowSize:H,children:[t.jsxs(la,{hasFile:p,windowSize:H,showDeleteConfirmation:Ie,children:[t.jsx(ha,{windowSize:H,children:R?`#${u+1} ${Y.reimbursement}`:Y.reimbursement}),Ie?t.jsxs(ua,{windowSize:H,children:[t.jsx(ca,{windowSize:H,children:Y.deleteConfirmation}),t.jsxs(ra,{children:[t.jsx(Ri,{label:Y.buttons.cancel,onClick:()=>Pe(!1),style:{width:qe.buttonWidth.value(H),marginLeft:H==="small"?i.sp0:i.sp4,marginRight:i.sp3},size:"small",variant:"secondary","data-testid":G("delete-remi-button",Y.buttons.cancel)}),t.jsx(Ri,{label:Y.buttons.remove,onClick:()=>{T?.trackReimbursementDeleteReimbursementLine(e.lineId,B),D?.(e.lineId??"1"),Pe(!1),M(e.lineId),me(u)},style:{width:qe.buttonWidth.value(H)},size:"small",variant:"danger","data-testid":G("delete-remi-button",Y.buttons.remove)})]})]}):!R||h!=="draft"&&y!=="rejected"?null:t.jsx(sa,{className:"deleteIconWrapper",windowSize:H,onClick:()=>Pe(!0),"data-testid":G("delete-remi-button",e.lineId),children:t.jsx(Sn,{enterDelay:600,title:Y.deleteReimbursement,placement:"top-end",children:t.jsx(da,{})})})]}),S.includes(e.lineId)?t.jsx(un,{title:Y.missingReceipt,description:Y.missingReceiptDescription,style:{marginBottom:i.sp3}}):null,t.jsxs(ga,{windowSize:H,children:[l?.duplicateLineId!=null?t.jsxs(pa,{children:[Y.thisExpense," ",l.isDuplicateWithinTransaction?t.jsx(Wi,{"data-testid":G("view-duplicate-transaction-expense"),onClick:()=>(T?.trackReimbursementViewDuplicateExpense(!0,B),ne(l.duplicateLineId)),children:Y.viewOriginalExpense}):t.jsx(Wi,{"data-testid":G("view-duplicate-expense"),onClick:()=>{l.duplicateTransactionId!=null&&l.duplicateLineId!=null&&(T?.trackReimbursementViewDuplicateExpense(!1,B),V(l.duplicateTransactionId,l.duplicateLineId))},children:Y.viewOriginalExpense})]}):null,t.jsx(Ce,{isThreadAllowed:b&&B!=null,dashboardTabKey:ke({type:"details",key:fe===Y.mileageKey?`${u}.mileage.reimbursementType`:`${u}.out_of_pocket.reimbursementType`}),roomId:le,companyId:he.currentTenant?.companyId??ge,companyName:he.currentTenant?.companyName??ge,entityId:B,dashboardOptionType:"reimbursement",filterMetaData:{...be,entityType:`reimbursement.details.${De("reimbursementType",u,fe===Y.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:We?.sharedRef?.contentWrapperRef,style:{borderRadius:l?.duplicateLineId!=null?"0 0 0 0":`${i.sp2} ${i.sp2} 0 0`},children:t.jsxs(ba,{isDisabled:g!=null,haveBorderRadius:l?.duplicateLineId==null,children:[t.jsx(Li,{isDisabled:g!=null||O?"disabled":void 0,isContainerClickable:!0,label:{label:Y.outOfPocket},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:qe.labelPaddingLeft.value(H),borderTopLeftRadius:"inherit"},showOutline:!(b&&B!=null),radioField:{name:it(x,"reimbursementType"),id:`${it(x,"reimbursementType")}.${Y.outOfPocketKey}`,value:Y.outOfPocketKey}}),t.jsx(ya,{}),t.jsx(Li,{isDisabled:g!=null||O?"disabled":void 0,isContainerClickable:!0,label:{label:Y.mileage},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:qe.labelPaddingLeft.value(H),borderTopRightRadius:"inherit"},showOutline:!(b&&B!=null),radioField:{name:it(x,"reimbursementType"),id:`${it(x,"reimbursementType")}.${Y.mileageKey}`,value:Y.mileageKey}})]})}),t.jsx(fa,{}),fe===Y.outOfPocketKey?t.jsx(oa,{lineIndex:u,reimbursementId:B,uncategorizedAccounts:re,isReimbursementCommentingEnabled:b,isDisabled:g,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?at(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:it(x,"outOfPocket"),accountList:j,classList:c,autoFields:k,merchantList:$,tentativeMerchantName:ie,allCurrencies:J,isAddReimbursementDisabled:O,accountsHierarchyList:pe,classHierarchyList:de}):t.jsx(_o,{lineIndex:u,reimbursementId:B,isReimbursementCommentingEnabled:b,isDisabled:g,mileage:{transactionDate:e.mileage.transactionDate!=null?at(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:c,sectionId:it(x,"mileage"),companyMileageConfigInfo:ae,defaultCurrency:d,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"?P.important:e.theme.colors.hero};
|
|
179
|
+
&:hover {
|
|
180
|
+
color: ${P.important};
|
|
181
|
+
}
|
|
182
|
+
`,Wi=n.span`
|
|
183
|
+
border-bottom: 1px solid currentColor;
|
|
184
|
+
cursor: pointer;
|
|
185
|
+
`,da=n(Co)`
|
|
186
|
+
width: ${i.sp3};
|
|
187
|
+
height: ${i.sp3};
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
`,ca=n.div`
|
|
190
|
+
margin-bottom: ${e=>qe.deleteConfirmationTextMarginBottom.valuePx(e.windowSize)};
|
|
191
|
+
`,ua=n(fi)`
|
|
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=>qe.paddingTop.valuePx(e.windowSize)};
|
|
200
|
+
margin-right: ${e=>qe.containerRightMargin.valuePx(e.windowSize)};
|
|
201
|
+
margin-left: ${e=>qe.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(ko)`
|
|
213
|
+
padding: ${i.sp2} ${i.sp0} ${i.sp2} ${i.sp4};
|
|
214
|
+
background-color: ${P.alertLight};
|
|
215
|
+
color: ${P.brandColorGoldDark};
|
|
216
|
+
border-top-left-radius: inherit;
|
|
217
|
+
border-top-right-radius: inherit;
|
|
218
|
+
`,ha=n(Et)`
|
|
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=>qe.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}`,yt={labelWidth:new s(120,160,160),paddingBottom:new s(a[3],a[3]),paddingTop:new s(12,a[3]),marginBottom:new s(12,a[3]),containerRightMargin:new s(a[3],a[8]),containerLeftMargin:new s(a[3],a[6])},jn=({isReimbursementCommentingEnabled:e,sectionId:o,isDisabled:r,reportTitle:h,reimbursementId:u,style:j})=>{const c=Le(),$=vt(),p=Nt(),d=`dashboard_${$.currentTenant?.companyId}`,R=we.getLocalizedStrings(),S=R.spendManagement.reimbursement.reimbursementDetail,l=R.common.strings.empty,y=yt.labelWidth.value(c);return t.jsxs(wa,{style:j,windowSize:c,children:[t.jsx(va,{windowSize:c,children:S.whatFor}),t.jsx(Sa,{children:t.jsx(Ce,{isThreadAllowed:e&&u!=null,dashboardTabKey:ke({type:"details",key:"whatFor"}),roomId:d,companyId:$.currentTenant?.companyId??l,companyName:$.currentTenant?.companyName??l,entityId:u,dashboardOptionType:"reimbursement",filterMetaData:{application:"dashboard",companyId:$.currentTenant?.companyId,tab:"reimbursement",entityId:u,entityType:"reimbursement.details.whatFor"},fieldThreadTargetElement:p?.sharedRef?.contentWrapperRef,style:{borderRadius:i.sp2},children:t.jsx(gi,{isDisabled:r,label:{label:S.reportTitle,width:y},text:{type:"text",name:xa(o,"reportTitle"),placeholder:S.lunchWithClient,defaultValue:h,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=>yt.paddingTop.valuePx(e.windowSize)};
|
|
248
|
+
padding-bottom: ${e=>yt.paddingBottom.valuePx(e.windowSize)};
|
|
249
|
+
margin-right: ${e=>yt.containerRightMargin.valuePx(e.windowSize)};
|
|
250
|
+
margin-left: ${e=>yt.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
|
+
`,va=n(Et)`
|
|
259
|
+
color: ${e=>e.theme.colors.primary};
|
|
260
|
+
margin-bottom: ${e=>yt.marginBottom.valuePx(e.windowSize)};
|
|
261
|
+
`,E={largeLabelWidth:new s(120,120,220),marginTop:new s(28,8),paymentToMarginTop:new s(0,a[4]),marginBottom:new s(a[5],a[4]),paymentToMarginBottom:new s(12,a[3]),totalMarginBottom:new s(a[3],a[3]),reimbursementSectionLeftMargin:new s(a[3],a[6]),reimbursementSectionRightMargin:new s(a[3],a[8]),invoiceSectionLeftMargin:new s(a[3],a[8]),invoiceSectionRightMargin:new s(a[3],a[6]),rightSectionWidth:new s(100,58),firstOrLastItemHeight:new s(390,760),itemHeight:new s(390,459),duplicateBannerWrapperMarginTop:new s(a[5],a[3]),duplicateBannerWrapperMarginRight:new s(a[3],a[8]),duplicateBannerWrapperMarginBottom:new s(a[5],a[3]),duplicateBannerWrapperMarginLeft:new s(a[3],a[6])},$a={total:new bi("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:K},billPay:{vendorCreation:{achDetails:Ot}}},common:{currency:{currencyCode:Pt}}}=we.getLocalizedStrings(),On=e=>{let o=0,r=Pt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const h=e;o=h.outOfPocket.amount??0,r=h.outOfPocket.currencyCode??Pt}else{const h=e;o=h.outOfPocket.amount?.amount??0,r=h.outOfPocket.amount?.currencyCode??Pt}return(e.homeCurrencyConversions?.currencyCode??Pt)!==r&&(o=e.homeCurrencyConversions?.amount??0),o},Ca=({remiUploadStatus:e,progressSectionObj:o,reimbursementId:r,createDate:h,scheduleDate:u,paymentDate:j,hasDuplicateLine:c,approvedDate:$,isFirstOrLastListItem:p,index:d,reimbursementSectionRef:R,showSkipAutoFill:S,lineData:l,currencyConversionState:y,authParams:x,uploadInvoiceEndPoint:g,accountList:b,classList:O,merchantList:_,remiStage:k,autoFieldsByLineId:T,isReimbursementCommentingEnabled:B,isAutoFieldsExist:ie,totalAmount:ae,showTotalAmountLoader:re,totalNumberOfLines:M,defaultCurrency:ne,bankAccounts:V,fileRequiredLineIds:me,isAddReimbursementDisabled:D,duplicateLineByLineId:J,remiStatus:pe,file:de,uncategorizedAccounts:H,reportTitle:he,recommendationFetchState:We,tentativeMerchantName:ge,paymentTo:be,analytics:le,companyMileageConfigInfo:Ae,loggedInUserDepartmentId:Ie,isSignedInUserReimbursementCreator:Pe,setShowBankAccountPage:fe,setRefByLineId:v,setCurrentLineIdForUpload:U,onDuplicateLineClick:ce,setUploadedReceiptPayload:Ke,removeDuplicateReimbursementForLine:N,onReceiptsUpload:Ge,scrollToSection:lt,onRemoveReimbursement:st,onAddReimbursement:Ue,clearTentativeNameForLine:Re,onReplaceClick:Qe,onDeleteBankAccount:ze,updateInvoiceUploadFetchState:Ye,removeFileFromLine:Je,allCurrencies:Xe,accountsHierarchyList:et,classHierarchyList:ue})=>{const{formState:{errors:dt}}=rt(),ct=w.useRef(null);w.useEffect(()=>(v(Q=>({...Q,[`L${l.lineId}`]:ct.current})),()=>{v(Q=>({...Q,[`L${l.lineId}`]:null}))}),[l.lineId,v]);const Z=Le(),Be=k==="draft"?K.newReimbursementTitle:K.editReimbursementTitle,W=E.largeLabelWidth.value(Z),Se=V.map(Q=>Q.bankAccountId),ut=l.reimbursementType===K.outOfPocketKey&&On(l)>=75&&de==null;return t.jsxs(_a,{ref:R,windowSize:Z,children:[t.jsx(Va,{ref:Q=>{Q!=null&&(ct.current=Q)},windowSize:Z,bottomSeperator:M!==1,showSkipAutoFill:S,isFirstItem:d===0,children:t.jsx(In,{customError:ut?K.requireReceipt:void 0,analytics:le,showAutofill:!1,uploadInvoiceEndPoint:g,authParams:x,entityId:D?"":void 0,file:de,style:{width:"auto",padding:0,height:p?E.firstOrLastItemHeight.valuePx(Z):E.itemHeight.valuePx(Z),margin:Z==="small"?i.sp0:void 0},updateInvoiceUploadFetchState:Ye,onInvoiceUpload:Q=>{l.reimbursementType!==K.outOfPocketKey||(X=>!(X.outOfPocket.account.selectedOption!=null||X.outOfPocket.amount!=null&&X.outOfPocket.amount.amount!=0||X.outOfPocket.class.selectedOption!=null&&X.outOfPocket.class.selectedOption!==Ie||X.outOfPocket.memo!==""&&X.outOfPocket.memo!=null||X.outOfPocket.merchant.selectedOption!=null||X.outOfPocket.transactionDate!=null))(l)?Ge(Q,Number(l.lineId),!0):(U(Number(l.lineId)),Ke(Q),Qe?.())},dropFilePlaceholder:{upload:K.dropReceipt.upload,receipt:K.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!D,pdfTitle:M>1?`#${d+1} Receipt`:"Receipt",onDeleteClick:()=>{Ye?.("In-Progress"),setTimeout(()=>Je?.(Number(l.lineId)))},onReplaceClick:()=>{U(Number(l.lineId)),Qe?.()},allowMultiFiles:M===d+1,type:"reimbursement"})}),t.jsxs(Ua,{windowSize:Z,children:[d===0&&Z!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(La,{children:Be}),t.jsx(qa,{children:t.jsx(xo,{progressSectionObj:o,createDate:h,paymentDate:j,scheduleDate:u,approvedDate:$,isBillUploaded:r!=null||e==="Completed"})}),ie&&t.jsxs(Ta,{children:[t.jsx(ka,{}),t.jsx(Ra,{children:K.banner})]}),c&&t.jsxs(Da,{size:Z,children:[t.jsx(Ia,{}),t.jsxs(Oa,{children:[t.jsx(ja,{children:K.thereSeems}),t.jsx(Pa,{children:K.pleaseFind})]})]}),t.jsx(jn,{isReimbursementCommentingEnabled:B,sectionId:Mt,reportTitle:he,reimbursementId:r})]}):null,t.jsx(aa,{analytics:le,reimbursementId:r,onDuplicateLineClick:ce,uncategorizedAccounts:H,sectionId:`${wi}.${d}`,scrollToSection:lt,lineIndex:d,lineData:l,accountList:b,classList:O,merchantList:_,autoFields:l.lineId!=null?T[l.lineId]:[],currencyConversionState:y,recommendationFetchState:We,onRemoveReimbursement:st,hasMultipleLineItems:M>1,clearTentativeNameForLine:Re,tentativeMerchantName:ge,hasFile:de!=null,companyMileageConfigInfo:Ae,defaultCurrency:ne,remiStage:k,remiStatus:pe,fileRequiredLineIds:me,allCurrencies:Xe,isReimbursementCommentingEnabled:B,isAddReimbursementDisabled:D,accountsHierarchyList:et,classHierarchyList:ue,duplicateLineDetails:J[l.lineId],removeDuplicateReimbursementForLine:N}),M!==1&&M===d+1&&t.jsxs(t.Fragment,{children:[t.jsxs(za,{windowSize:Z,children:[t.jsx(Ba,{children:K.total}),re?t.jsx(Ma,{windowSize:Z,children:t.jsx(Fa,{children:t.jsx($t,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(gn,{amount:kn(ae,"USD","$"),integerStyles:zt.h6Regular.cssObject,decimalStyles:zt.standardRegular.cssObject})]}),t.jsxs(Ea,{windowSize:Z,onClick:()=>{D===!1&&Ue()},isDisabled:D,"data-testid":G("add-reimbursement-row"),children:[t.jsx(_i,{}),t.jsx(Ui,{children:K.addReimbursement})]}),Pe?t.jsxs(t.Fragment,{children:[t.jsx(Aa,{windowSize:Z,children:K.receivePaymentTo}),t.jsx(Na,{windowSize:Z,shouldDisplay:V.length>0,children:t.jsx(yn,{label:{label:K.yourBankAccount,width:W},style:{width:"auto"},singleSelectField:{singleSelect:{name:wt,placeholder:ot(K.yourBankAccount),showValueEyeIcon:!D,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:ze,getTooltipInfo:Q=>Pn(V,Q),onClickCreateBankAccount:()=>fe(!0),getLabelForId:Q=>Ln(V,Q),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:D?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:be,allOptions:Se},registerOptions:{required:!0,validate:Q=>!!Q.selectedOption}},isFunctional:!0})}),t.jsxs(Wa,{shouldDisplay:V.length===0,windowSize:Z,hasError:Oe(dt,wt),onClick:()=>{D===!1&&fe(!0)},isDisabled:D,"data-testid":G("remi-add-bank-account-container"),children:[t.jsx(_i,{}),t.jsx(Ui,{children:K.addBankAccount})]})]}):null]})]})]})},Pn=(e,o)=>{const r=Rn(e,o);return r==null?`${Ot.bankRoutingNumber} ${K.emptyValue}
|
|
262
|
+
${Ot.bankAccountNumber} ${K.emptyValue}`:`${Ot.bankRoutingNumber} ${r.bankRoutingNumberAch??K.emptyValue}, ${r.bankName??K.emptyValue}
|
|
263
|
+
${Ot.bankAccountNumber} ${r.bankAccountNumber??K.emptyValue}`},Rn=(e,o)=>e.find(r=>r.bankAccountId===o),Ln=(e,o)=>{const r=Rn(e,o);return r==null?K.selectBankAccount:r.bankAccountName?r.bankAccountName:r.maskedAccountNumber?r.maskedAccountNumber:r.bankName&&r.bankAccountNumber?`${r.bankName} ${K.accountNameConnector}${r.bankAccountNumber.slice(r.bankAccountNumber.length-4)}`:K.selectBankAccount},ka=n(hi)`
|
|
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: ${P.brandColorGoldDark};
|
|
271
|
+
`,Ta=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
|
+
`,Da=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: ${P.alertLight};
|
|
290
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
291
|
+
`,ja=n(Wt)`
|
|
292
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
293
|
+
`,Oa=n.div`
|
|
294
|
+
width: 100%;
|
|
295
|
+
`,Pa=n(fi)`
|
|
296
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
297
|
+
`,Ra=n.span`
|
|
298
|
+
color: ${e=>e.theme.colors.hero};
|
|
299
|
+
`,La=n(vo)`
|
|
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(Et)`
|
|
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(fn)`
|
|
325
|
+
display: flex;
|
|
326
|
+
width: 176px;
|
|
327
|
+
color: ${e=>e.theme.colors.primary};
|
|
328
|
+
`,Ma=n(xn)`
|
|
329
|
+
display: flex;
|
|
330
|
+
width: calc(100% - 176px);
|
|
331
|
+
justify-content: flex-end;
|
|
332
|
+
color: ${e=>e.theme.colors.primary};
|
|
333
|
+
${e=>`${$a.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
|
+
`,Na=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
|
+
`,Ea=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?P.important:e.theme.colors.hero};
|
|
354
|
+
border-radius: ${i.sp2};
|
|
355
|
+
color: ${e=>e.hasError===!0?P.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?P.important:e.theme.colors.primary};
|
|
359
|
+
border: 1px solid
|
|
360
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?P.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?P.important:e.theme.colors.hero};
|
|
373
|
+
border-radius: ${i.sp2};
|
|
374
|
+
color: ${e=>e.hasError===!0?P.important:e.theme.colors.hero};
|
|
375
|
+
cursor: pointer;
|
|
376
|
+
&:hover {
|
|
377
|
+
color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?P.important:e.theme.colors.primary};
|
|
378
|
+
border: 1px solid
|
|
379
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?P.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
|
+
`,Ui=n(Wt)`
|
|
385
|
+
color: inherit;
|
|
386
|
+
`,_i=n(wn)`
|
|
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 bi("largeMedium","h6Medium")},ee={largeLabelWidth:new s(120,120,220),marginBottom:new s(a[5],a[4]),addBankAccountMarginBottom:new s(a[5],a[5]),marginTop:new s(a[0],78),paymentToMarginTop:new s(0,a[4]),totalMarginBottom:new s(a[3],a[3]),rightMargin:new s(a[3],a[8]),leftMargin:new s(a[3],a[6]),paymentToMarginBottom:new s(12,a[3])},nt=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,Ka=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:h,showSkipAutoFill:u,isReimbursementCommentingEnabled:j,isAutoFieldsExist:c,totalAmount:$,defaultCurrency:p,hasDuplicateLine:d,bankAccounts:R,fileRequiredLineIds:S,companyMileageConfigInfo:l,analytics:y,reimbursementId:x,currencyConversionStatus:g,setShowSkipAutoFill:b,setShowBankAccountPage:O,removeDuplicateReimbursementForLine:_,onReceiptsUpload:k,setCurrentLineIdForUpload:T,onDuplicateLineClick:B,setUploadedReceiptPayload:ie,removeFileFromLine:ae,onReplaceClick:re,updateInvoiceUploadFetchState:M,clearTentativeNameForLine:ne,onDeleteBankAccount:V,uncategorizedAccounts:me,isSignedInUserReimbursementCreator:D,duplicateLineByLineId:J,showTotalAmountLoader:pe,scrollContainerRef:de})=>{const{control:H,formState:{errors:he}}=rt(),{fields:We,append:ge,remove:be}=mo({name:wi,control:H}),le=We,Ae=w.useRef(null),Ie=W=>{setTimeout(()=>{be(W)})},{tentativeMerchantNameByLineId:Pe,remiStage:fe,remiStatus:v}=e,U=!D||fe==="pending_approval"&&v!=="rejected"&&o||fe==="pending_approval"&&v==="rejected",ce=U?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:R,Ke=ce.map(W=>W.bankAccountId),N=Le(),Ge=ee.largeLabelWidth.value(N),lt=e.whatForSection.reportTitle,st=e.accountList.accounts,Ue=e.accountsHierarchyList,Re=e.classHierarchyList,Qe=e.classList.classes,ze=e.merchantList.merchants,Ye=e.addRemiAutoFieldsByLineId,Je=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(W=>Number(W)),0),Xe=()=>{const W=le[le.length-1],Se=An(le.length,Number(W.lineId)>Je?String(Number(W.lineId)+1):String(Je+1),Ue,Re,ze,p,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{ge(Se,{shouldFocus:!1})}),T(Number(Se.lineId)),b(!0),setTimeout(()=>Mi(Ae.current,de?.current),50)},[et,ue]=w.useState({}),dt=w.useCallback(W=>{const Se=et[`L${W}`];Se!=null&&Mi(Se,de?.current)},[et,de]),ct=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,Z=e.reimbursementInfo?.paymentDate!=null?at(Cn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Be=e.reimbursementInfo?.expectedDepositDate??Z;return t.jsxs(Za,{windowSize:N,showSkipAutoFill:u,children:[le.map((W,Se)=>t.jsx(Ca,{removeDuplicateReimbursementForLine:_,onDuplicateLineClick:B,scrollToSection:dt,setRefByLineId:ue,duplicateLineByLineId:J,reimbursementId:x,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:me,progressSectionObj:ct,createDate:e.createTime,paymentDate:Be,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:le.length-1===Se||Se===0,index:Se,reimbursementSectionRef:Ae,remiStage:fe,remiStatus:v,authParams:r,file:W.file,uploadInvoiceEndPoint:h,showSkipAutoFill:u,lineData:W,currencyConversionState:g[W.lineId],recommendationFetchState:e.lineDetailSection[W.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:T,setUploadedReceiptPayload:ie,onReplaceClick:re,onReceiptsUpload:k,removeFileFromLine:ae,isReimbursementCommentingEnabled:j,isAutoFieldsExist:c,reportTitle:lt,accountList:st,classList:Qe,merchantList:ze,autoFieldsByLineId:Ye,onRemoveReimbursement:Ie,onAddReimbursement:Xe,totalAmount:$,showTotalAmountLoader:pe,hasDuplicateLine:d,totalNumberOfLines:le.length,updateInvoiceUploadFetchState:M,clearTentativeNameForLine:ne,tentativeMerchantName:Pe[W.lineId],companyMileageConfigInfo:l,defaultCurrency:p,setShowBankAccountPage:O,paymentTo:e.paymentTo,bankAccounts:ce,onDeleteBankAccount:V,analytics:y,fileRequiredLineIds:S,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:U,accountsHierarchyList:Ue,classHierarchyList:Re,isSignedInUserReimbursementCreator:D},W.lineId)),le.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(ei,{children:[N!=="small"?t.jsx(Qt,{windowSize:N}):null,t.jsx(Xt,{windowSize:N,children:t.jsxs(Qa,{windowSize:N,children:[t.jsx(Xa,{children:nt.total}),pe?t.jsx(tr,{windowSize:N,children:t.jsx(ir,{children:t.jsx($t,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(gn,{amount:kn($,zi.currencyCode,zi.currencySymbol),integerStyles:zt.h6Regular.cssObject,decimalStyles:zt.standardRegular.cssObject})]})})]}),t.jsxs(ei,{children:[N!=="small"?t.jsx(Qt,{windowSize:N}):null,t.jsx(Xt,{windowSize:N,children:t.jsxs(nr,{windowSize:N,onClick:()=>{U===!1&&Xe()},isDisabled:U,"data-testid":G("add-reimbursement-container"),children:[t.jsx(qi,{}),t.jsx(Vi,{children:nt.addReimbursement})]})})]}),t.jsxs(ei,{children:[N!=="small"?t.jsx(Qt,{windowSize:N}):null,D?t.jsxs(Xt,{windowSize:N,children:[t.jsx(er,{windowSize:N,children:nt.receivePaymentTo}),t.jsx(Ja,{windowSize:N,shouldDisplay:ce.length>0,children:t.jsx(yn,{label:{label:nt.yourBankAccount,width:Ge},style:{width:"auto"},singleSelectField:{singleSelect:{name:wt,placeholder:ot(nt.yourBankAccount),showValueEyeIcon:!U,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:V,getTooltipInfo:W=>Pn(ce,W),onClickCreateBankAccount:()=>O(!0),getLabelForId:W=>Ln(ce,W),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:U?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:Ke},registerOptions:{required:!0,validate:W=>!!W.selectedOption}},isFunctional:!0})}),t.jsxs(or,{shouldDisplay:ce.length===0,windowSize:N,onClick:()=>{U===!1&&O(!0)},hasError:Oe(he,wt),isDisabled:U,"data-testid":G("remi-add-bank-account-container"),children:[t.jsx(qi,{}),t.jsx(Vi,{children:nt.addBankAccount})]})]}):null]})]})]})},An=(e,o,r,h,u,j,c,$)=>{const p=Ga(r,h,u,j,c,$);return{lineIndex:e,lineId:o,reimbursementType:nt.outOfPocketKey,file:void 0,outOfPocket:p,mileage:Ya(h,j,$)}},Ga=(e,o,r,h,u,j)=>({transactionDate:void 0,class:{allOptions:He(Ze(o,[])),selectedOption:j},account:{allOptions:He(Ft(e,[])),selectedOption:void 0},amount:{amount:0,currencyCode:h.currencyCode,currencySymbol:h.currencySymbol,currency:{allOptions:u.map(c=>({label:`${c.currencyCode} - ${c.currency}`,value:c.currencyCode,countryCode:mi(c.countryCode)})),selectedOption:h.currencyCode??we.getLocalizedStrings().common.currency.currencyCode}},memo:void 0,merchant:{allOptions:r.map(c=>c.id).filter(c=>!!c),selectedOption:void 0},recommendations:[],isCategoryUpdateSelected:!1,isCategoryFirstTimeAutofilled:!1,isRetainedCategorySelected:!1}),Ya=(e,o,r)=>({transactionDate:void 0,class:{allOptions:He(Ze(e,[])),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:o.currencyCode,currencySymbol:o.currencySymbol},memo:void 0}),Ja=n.div`
|
|
411
|
+
margin-left: ${e=>ee.leftMargin.valuePx(e.windowSize)};
|
|
412
|
+
margin-right: ${e=>ee.rightMargin.valuePx(e.windowSize)};
|
|
413
|
+
margin-bottom: ${e=>ee.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
|
+
`,Qt=n.div`
|
|
419
|
+
width: ${e=>e.windowSize==="small"?"100%":"42%"};
|
|
420
|
+
`,Xt=n.div`
|
|
421
|
+
width: ${e=>e.windowSize==="small"?"100%":"58%"};
|
|
422
|
+
`,Za=n.div`
|
|
423
|
+
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
424
|
+
flex-direction: column;
|
|
425
|
+
margin-top: ${e=>ee.marginTop.valuePx(e.windowSize)};
|
|
426
|
+
`,Qa=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=>ee.totalMarginBottom.valuePx(e.windowSize)};
|
|
436
|
+
margin-left: ${e=>ee.leftMargin.valuePx(e.windowSize)};
|
|
437
|
+
margin-right: ${e=>ee.rightMargin.valuePx(e.windowSize)};
|
|
438
|
+
margin-bottom: ${e=>ee.totalMarginBottom.valuePx(e.windowSize)};
|
|
439
|
+
`,Xa=n(fn)`
|
|
440
|
+
display: flex;
|
|
441
|
+
width: 176px;
|
|
442
|
+
color: ${e=>e.theme.colors.primary};
|
|
443
|
+
`,er=n(Et)`
|
|
444
|
+
color: ${e=>e.theme.colors.primary};
|
|
445
|
+
margin-top: ${e=>ee.paymentToMarginTop.valuePx(e.windowSize)};
|
|
446
|
+
margin-bottom: ${e=>ee.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
447
|
+
margin-left: ${e=>ee.leftMargin.valuePx(e.windowSize)};
|
|
448
|
+
margin-right: ${e=>ee.rightMargin.valuePx(e.windowSize)};
|
|
449
|
+
`,tr=n(xn)`
|
|
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?P.important:e.theme.colors.hero};
|
|
467
|
+
border-radius: ${i.sp2};
|
|
468
|
+
|
|
469
|
+
color: ${e=>e.hasError===!0?P.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?P.important:e.theme.colors.primary};
|
|
473
|
+
border: 1px solid
|
|
474
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?P.important:e.theme.colors.primary};
|
|
475
|
+
}
|
|
476
|
+
margin-top: ${e=>ee.totalMarginBottom.valuePx(e.windowSize)};
|
|
477
|
+
margin-left: ${e=>ee.leftMargin.valuePx(e.windowSize)};
|
|
478
|
+
margin-right: ${e=>ee.rightMargin.valuePx(e.windowSize)};
|
|
479
|
+
margin-bottom: ${e=>ee.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?P.important:e.theme.colors.hero};
|
|
487
|
+
border-radius: ${i.sp2};
|
|
488
|
+
color: ${e=>e.hasError===!0?P.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?P.important:e.theme.colors.primary};
|
|
492
|
+
border: 1px solid
|
|
493
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?P.important:e.theme.colors.primary};
|
|
494
|
+
}
|
|
495
|
+
margin-left: ${e=>ee.leftMargin.valuePx(e.windowSize)};
|
|
496
|
+
margin-right: ${e=>ee.rightMargin.valuePx(e.windowSize)};
|
|
497
|
+
margin-bottom: ${e=>ee.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
498
|
+
`,Vi=n(Wt)`
|
|
499
|
+
color: inherit;
|
|
500
|
+
`,qi=n(wn)`
|
|
501
|
+
margin-right: ${i.sp2};
|
|
502
|
+
width: ${i.sp3};
|
|
503
|
+
height: ${i.sp3};
|
|
504
|
+
`,ei=n.div`
|
|
505
|
+
display: flex;
|
|
506
|
+
width: 100%;
|
|
507
|
+
`,Ee={buttonWidth:new s(140,140),paddingLeft:new s(a[3],a[6]),paddingRight:new s(a[3],a[8]),subTitleMarginbottom:new s(a[2],a[3]),orSeperatorTopBottomMargin:new s(a[6],44),iconWidthHeight:new s(20,a[4])},Hi="userBankAccountPage",Rt="bankAccountSection",Ki=e=>`${e}_form`,ar=({bankAccountCreationState:e,setShowBankAccountPage:o,plaidConnectionDetails:r,onFetchLinkTokenClick:h,onEstablishConnectionClick:u,bankAccountToCreate:j,fetchBankNameByRoutingStatus:c,isDisabled:$,onSaveHandler:p,onUserBankDetailsUpdated:d,onFetchBankName:R,onBackClick:S})=>{const l=St(),y=Le(),x=rn({mode:"onBlur",reValidateMode:"onChange",defaultValues:w.useMemo(()=>(M=>({[Rt]:{bankRoutingNumber:M?.bankRoutingNumber,bankName:M?.bankName,bankAccountNumber:M?.bankAccountNumber,confirmedBankAccountNumber:M?.confirmedBankAccountNumber,bankAccountName:M?.bankAccountName}}))(j),[j])}),g=w.useCallback(M=>{u?.(M),S()},[S,u]),b=r.link_account_no_microdeposit,{open:O}=Bo({token:b.linkToken??null,onSuccess:g});w.useEffect(()=>{(at(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]);const[_,k]=w.useState(!1),T=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,B=we.getLocalizedStrings().common.footer,ie={onOkClick:()=>{k(!1),x.reset(),S()},onCancelClick:()=>{k(!1)}};w.useEffect(()=>{const M=x.watch((ne,{name:V})=>{V!=null&&ne!=null&&ho(()=>(async(me,D)=>{const J=D[Rt].bankRoutingNumber;d(D),me===`${Rt}.bankRoutingNumber`&&J?.length===9&&wo.test(J)===!0&&R?.(J)})(V,ne))});return()=>{M.unsubscribe()}}),w.useEffect(()=>{e?.fetchState==="Completed"&&S()},[e?.fetchState,S,o]);const ae=x.handleSubmit(M=>{c.fetchState!=="In-Progress"&&p()}),re=l.mode==="light"?new Pi(l.colors.brandColorJadeLight):new Pi(l.colors.brandColorJadeDark);return t.jsxs(rr,{children:[t.jsxs(pr,{windowSize:y,children:[_===!0?t.jsx(ui,{titleComponent:t.jsx(cn,{children:T.discardTitle}),descriptionComponent:t.jsx(dn,{children:T.discardDescription}),primaryButtonText:T.buttons.delete,secondaryButtonText:T.buttons.cancel,action:ie}):null,t.jsx(Fo,{header:T.addBankAccount,isDirty:x.formState.isDirty,onBackClick:S,setShowConfirmationPopup:k}),t.jsx(lr,{}),t.jsxs(hr,{size:y,children:[t.jsx(go,{onClick:()=>{x.reset(),O()},title:T.connectYourBank,subTitle:T.loginToBank,header:T.setupAchPayments,icon:{element:t.jsx(yo,{width:Ee.iconWidthHeight.valuePx(y),height:Ee.iconWidthHeight.valuePx(y)}),color:re},style:{width:"unset",rowGap:y==="small"?i.sp2:void 0}}),t.jsxs(sr,{windowSize:y,children:[t.jsx(dr,{}),t.jsx(ur,{children:t.jsx(mr,{children:T.or})})]}),t.jsx(cr,{windowSize:y,children:T.saveAccountManually})]}),t.jsx(gr,{size:y,children:t.jsx(sn,{...x,children:t.jsxs("form",{id:Ki(Hi),onSubmit:ae,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(No,{warningText:T.accountExistWarning}):null,t.jsx(Mo,{bankAccountToCreate:j,fetchBankNameByRoutingStatus:c,sectionId:Rt})]})})})]}),t.jsx(mn,{formId:Ki(Hi),primaryBtn:{label:T.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Ee.buttonWidth.value(y)},isDisabled:$!=null},cancelBtn:{label:B.cancel,style:{width:Ee.buttonWidth.value(y)},shouldResetOnCancel:!1,onClick:()=>{x.formState.isDirty?k(!0):(k(!1),x.reset(),S())}}})]})},rr=n.div`
|
|
508
|
+
display: flex;
|
|
509
|
+
flex-direction: column;
|
|
510
|
+
width: 100%;
|
|
511
|
+
height: 100%;
|
|
512
|
+
`,lr=n.div`
|
|
513
|
+
margin: ${i.sp2} 0;
|
|
514
|
+
position: relative;
|
|
515
|
+
`,sr=n.div`
|
|
516
|
+
margin: ${e=>Ee.orSeperatorTopBottomMargin.valuePx(e.windowSize)} 0;
|
|
517
|
+
position: relative;
|
|
518
|
+
`,dr=n.div`
|
|
519
|
+
background: ${e=>e.theme.colors.grey2};
|
|
520
|
+
height: 1px;
|
|
521
|
+
`,cr=n(So)`
|
|
522
|
+
color: ${e=>e.theme.colors.primary};
|
|
523
|
+
margin-bottom: ${e=>Ee.subTitleMarginbottom.valuePx(e.windowSize)};
|
|
524
|
+
`,ur=n.div`
|
|
525
|
+
display: flex;
|
|
526
|
+
justify-content: center;
|
|
527
|
+
`,mr=n(yi)`
|
|
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
|
+
`,pr=n.div`
|
|
540
|
+
display: flex;
|
|
541
|
+
flex-direction: column;
|
|
542
|
+
flex-grow: 1;
|
|
543
|
+
`,hr=n.div`
|
|
544
|
+
padding-left: ${e=>Ee.paddingLeft.valuePx(e.size)};
|
|
545
|
+
padding-right: ${e=>Ee.paddingRight.valuePx(e.size)};
|
|
546
|
+
`,gr=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
|
+
`,je={containerWidth:new s(343,544),confirmationPopUpTitleMarginTop:new s(a[6],a[7]),confirmationPopUpTitlePaddingLeftRight:new s(a[5],a[8]),submitButtonWidth:new s(145,156),cancelButtonWidth:new s(121,121),errorLineItemGap:new s(a[2],12),styledCloseIconRight:new s(a[3],a[8])},{footer:Gi}=we.getLocalizedStrings().common,$e=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,Yi=({fetchState:e})=>{switch(e){case"Not-Started":default:return t.jsx(xr,{});case"In-Progress":return t.jsx($t,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(zn,{})}},yr=e=>{switch(e){case"Not-Started":default:return $e.detectDuplicates;case"In-Progress":return $e.detectingDuplicates;case"Completed":return $e.noDuplicatesFound}},br=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:r,numberOfDuplicateLines:h,setShowDuplicatePopup:u,analytics:j,reimbursementId:c,submitReport:$,fetchDuplicateReimbursement:p,clearDuplicateReimbursementDetail:d,clearRemiSaveStatus:R})=>{const S=Le(),[l,y]=Tt.useState(!0),x=di(e),g=di(o);Tt.useEffect(()=>{setTimeout(()=>{l&&(y(!1),o==="Not-Started"&&p())},2e3)},[o,p,l]),Tt.useEffect(()=>{x==="In-Progress"&&e==="Completed"&&(d(),u(!1))},[e,x,u,d]),Tt.useEffect(()=>{g==="In-Progress"&&o==="Completed"&&!r&&$()},[g,o,r,$]);const b=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[b?t.jsx(fr,{size:S}):null,t.jsx(ui,{action:{onOkClick:()=>{b?(d(),e==="Error"&&R(),y(!0)):(j?.trackReimbursementReviewDuplicateReportReimbursement(h,c),u(!1),lo())},onCancelClick:()=>{b?(d(),e==="Error"&&R(),u(!1)):(j?.trackReimbursementSubmitAnywayDuplicateReimbursement(h,c),$())}},shouldClickAway:b,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:b?Gi.resubmit:$e.primaryButtonText,secondaryButtonText:b?Gi.cancel:$e.secondaryButtonText,primaryButtonWidth:b?je.cancelButtonWidth.value(S):je.submitButtonWidth.value(S),secondaryButtonWidth:b?je.cancelButtonWidth.value(S):je.submitButtonWidth.value(S),descriptionComponent:t.jsx(vr,{size:S,children:t.jsxs(wr,{hasDuplicate:r,duplicateReimbursementStatus:o,children:[t.jsxs(ii,{isDisabled:!1,isSuccess:!l,children:[l?t.jsx($t,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}}):t.jsx(zn,{}),t.jsx(ti,{isDisabled:!1,children:l?$e.reviewingExpenses:$e.reviewedAllExpenses})]}),r||o==="Error"?t.jsxs(Qi,{size:S,children:[t.jsx(Ji,{}),t.jsx(Zi,{children:o==="Error"?$e.failedToDetect:`${h} ${$e.duplicateExpensesFound}`})]}):t.jsxs(ii,{isDisabled:o==="Not-Started",isSuccess:o==="Completed"&&h===0,children:[t.jsx(Yi,{fetchState:o}),t.jsx(ti,{isDisabled:o==="Not-Started",children:yr(o)})]}),e==="Error"?t.jsxs(Qi,{size:S,children:[t.jsx(Ji,{}),t.jsx(Zi,{children:$e.failedToSubmit})]}):r||o==="Error"?null:t.jsxs(ii,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(Yi,{fetchState:e}),t.jsx(ti,{isDisabled:e==="Not-Started",children:e==="Not-Started"?$e.submitReport:$e.submittingReport})]})]})}),titleComponent:t.jsx(Sr,{size:S,children:$e.title}),showFooter:r||b,containerStyle:{width:je.containerWidth.value(S),maxWidth:"unset"}})]})},fr=n(hn)`
|
|
551
|
+
width: ${i.sp4};
|
|
552
|
+
height: ${i.sp4};
|
|
553
|
+
color: ${e=>e.theme.colors.hero};
|
|
554
|
+
position: fixed;
|
|
555
|
+
top: 19px;
|
|
556
|
+
right: ${e=>je.styledCloseIconRight.valuePx(e.size)};
|
|
557
|
+
z-index: 11;
|
|
558
|
+
cursor: pointer;
|
|
559
|
+
&:hover {
|
|
560
|
+
color: ${e=>e.theme.colors.primary};
|
|
561
|
+
}
|
|
562
|
+
`,Ji=n(fo)`
|
|
563
|
+
width: ${i.sp4};
|
|
564
|
+
height: ${i.sp4};
|
|
565
|
+
min-width: ${i.sp4};
|
|
566
|
+
color: ${P.brandColorGoldDark};
|
|
567
|
+
`,xr=n(Eo)`
|
|
568
|
+
width: ${i.sp3};
|
|
569
|
+
height: ${i.sp3};
|
|
570
|
+
min-width: ${i.sp3};
|
|
571
|
+
color: ${e=>e.theme.colors.grey3};
|
|
572
|
+
`,ti=n.div`
|
|
573
|
+
color: ${e=>e.isDisabled?e.theme.colors.grey2:e.theme.colors.primary};
|
|
574
|
+
text-align: left;
|
|
575
|
+
`,Zi=n.div`
|
|
576
|
+
color: ${P.brandColorGoldDark};
|
|
577
|
+
`,ii=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
|
+
`,Qi=n.div`
|
|
591
|
+
display: flex;
|
|
592
|
+
align-items: center;
|
|
593
|
+
gap: ${e=>je.errorLineItemGap.valuePx(e.size)};
|
|
594
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGold};
|
|
595
|
+
background-color: ${P.alertLight};
|
|
596
|
+
padding: ${i.sp3};
|
|
597
|
+
border-radius: ${i.sp2};
|
|
598
|
+
text-align: left;
|
|
599
|
+
`,Sr=n(pi)`
|
|
600
|
+
margin-top: ${e=>je.confirmationPopUpTitleMarginTop.valuePx(e.size)};
|
|
601
|
+
padding-left: ${e=>je.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
602
|
+
padding-right: ${e=>je.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
|
+
`,vr=n(bn)`
|
|
607
|
+
color: ${e=>e.theme.colors.hero};
|
|
608
|
+
padding-left: ${e=>je.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
609
|
+
padding-right: ${e=>je.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
|
+
`,zn=n(bo)`
|
|
615
|
+
width: ${i.sp4};
|
|
616
|
+
height: ${i.sp4};
|
|
617
|
+
min-width: ${i.sp4};
|
|
618
|
+
color: ${P.success};
|
|
619
|
+
`,te={rightMargin:new s(a[3],a[8]),leftMargin:new s(a[3],a[6]),bottomMargin:new s(56,56),closeMarginTop:new s(0,19),closeMarginRight:new s(a[3],a[8]),rightSectionWidth:new s(100,58),leftSectionWidth:new s(100,42),footerButtonWidth:new s(120,165),right:new s(a[3],a[0]),actionsContainerRight:new s(a[0],a[6]),otherActionsContainerBottom:new s(58,44),duplicateBannerWrapperMarginTop:new s(a[5],a[3]),duplicateBannerWrapperMarginRight:new s(a[3],a[8]),duplicateBannerWrapperMarginBottom:new s(a[5],a[3]),duplicateBannerWrapperMarginLeft:new s(a[3],a[6]),navBarWidth:new s(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:m,bulkActions:Xi}},common:{currency:{currencyCode:_e,currencySymbol:Lt},texts:{comments:$r},strings:{empty:Cr}},collaboration:{threads:{placeholder:{addANewComment:kr,replyAComment:Ir},tooltip:{resolveComment:Tr,unResolveComment:Dr}}},dateFormat:en}=we.getLocalizedStrings(),tn="editReimbursementDetailPage",nn=e=>`${e}_form`,ni=(e,o,r)=>{const h=[];return Object.values(e.lineDetailSection).forEach((u,j)=>{u?.lineId!=null&&h.push(((c,$,p,d,R,S,l,y,x)=>{const g=c.outOfPocket,b=c.mileage,O=g.merchant,_=g.recommendations;return{lineIndex:S,lineId:c?.lineId??String(S+1),reimbursementType:c?.type??m.outOfPocketKey,file:c?.file,homeCurrencyConversions:{amount:c?.homeCurrencyConversions?.amount??0,currencyCode:c?.homeCurrencyConversions?.currencyCode??l.currencyCode,currencySymbol:c?.homeCurrencyConversions?.currencySymbol??l.currencySymbol},outOfPocket:{recommendedAccount:g.recommendedAccount,isCategoryUpdateSelected:g.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:g.isCategoryFirstTimeAutofilled??!1,retainedAccount:g.retainedAccount,isRetainedCategorySelected:g.isRetainedCategorySelected??!1,recommendations:_??[],transactionDate:g?.transactionDate?.toDate()??void 0,class:{allOptions:He(Ze(p,[])),selectedOption:g?.lineDetail?.class?.classId??x},account:{allOptions:He(Ft($,_)),selectedOption:g.lineDetail?.account?.qboId??g.lineDetail?.account?.accountId},amount:{amount:g?.amount??0,currencyCode:g?.currencyCode??l.currencyCode,currencySymbol:g?.currencySymbol??l.currencySymbol,currency:{allOptions:y.map(k=>({label:`${k.currencyCode} - ${k.currency}`,value:k.currencyCode,countryCode:mi(k.countryCode)})),selectedOption:g?.currencyCode??l.currencyCode??_e}},memo:g?.description??void 0,merchant:{allOptions:d.map(k=>k.id).filter(k=>!!k),selectedOption:O?.id?O?.id:O?.name?O?.name:c?.lineId!=null?R[c?.lineId]:void 0}},mileage:{transactionDate:b?.transactionDate?.toDate(),class:{allOptions:He(Ze(p,[])),selectedOption:b?.lineDetail?.class?.classId},distanceInMiles:b?.distanceMileage?.value,amount:{amount:b?.amount??0,currencyCode:b?.currencyCode??l.currencyCode,currencySymbol:b?.currencySymbol??l.currencySymbol},memo:b?.description}}})(u,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,j,o,e.allCurrencies,e.loggedInUserDepartmentId))}),h.length===0&&h.push(An(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[Mt]:{reportTitle:e.whatForSection.reportTitle},[wi]:h,[wt]:{selectedOption:e.paymentTo,allOptions:r.map(u=>u.bankAccountId)}}},oi=(e,o)=>Object.values(e).reduce((r,h)=>r+(u=>u.lineId==null||o[u.lineId]?.fetchState==="In-Progress"?0:(o[u.lineId],u.type===m.mileageKey?u?.mileage?.amount??0:u?.outOfPocket?.currencyCode!==_e&&u.homeCurrencyConversions?.amount!==u?.outOfPocket?.amount?u.homeCurrencyConversions?.amount??0:u?.outOfPocket?.amount??0))(h),0),ai=(e,o,r,h,u,j,c,$)=>{const p={};return e.lineInfo.forEach(d=>{const R=$.find(g=>g.classId===d.mileage.class.selectedOption),S=c.find(g=>g.qboId===d.outOfPocket.account.selectedOption||g.accountId===d.outOfPocket.account.selectedOption),l=$.find(g=>g.classId===d.outOfPocket.class.selectedOption),y=o.find(g=>g.id===d.outOfPocket.merchant.selectedOption),x=j.find(g=>g.currencyCode===d.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;p[d.lineId]={fileId:d.file?.fileId,lineId:d.lineId,type:d.reimbursementType,homeCurrencyConversions:d.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:d.mileage.memo??"",lineDetail:{class:R},transactionDate:d.mileage.transactionDate!=null?at(d.mileage.transactionDate.toDateString()):void 0,amount:d.mileage.amount?.amount??0,currencyCode:d.mileage.amount?.currencyCode??x,currencySymbol:d.mileage.amount?.currencySymbol??x,distanceMileage:{unit:"miles",value:d.mileage.distanceInMiles??0}},outOfPocket:{description:d.outOfPocket.memo??"",lineDetail:{class:l,account:S},transactionDate:d.outOfPocket.transactionDate!=null?at(d.outOfPocket.transactionDate.toDateString()):void 0,amount:d.outOfPocket.amount?.amount??0,currencyCode:d.outOfPocket.amount?.currency.selectedOption??x,currencySymbol:x,merchant:d.outOfPocket.merchant.selectedOption!=null?{id:y?.id??"",name:y?.name??d.outOfPocket.merchant.selectedOption}:void 0,recommendations:d.outOfPocket.recommendations,recommendedAccount:d.outOfPocket.recommendedAccount,isCategoryUpdateSelected:d.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:d.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:d.outOfPocket.isRetainedCategorySelected,retainedAccount:d.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:p,totalAmount:{amount:h,...r},currencyConversionStateByLineId:u,paymentTo:e.paymentTo.selectedOption}},Rl=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:h,uploadInvoiceEndPoint:u,isReimbursementCommentingEnabled:j,isUserAdmin:c,analytics:$,reimbursementId:p,plaidConnectionDetails:d,bankAccountCreationState:R,bankNameByRouting:S,bankAccounts:l,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:x,bankAccountToCreate:g,fetchBankNameByRoutingStatus:b,onUserBankDetailsUpdated:O,onFetchBankName:_,onSaveBankAccount:k,fetchDuplicateReimbursement:T,clearDuplicateReimbursementDetail:B,clearRemiSaveStatus:ie,removeDuplicateReimbursementForLine:ae,onDuplicateLineClick:re,onExistingMerchantChange:M,onNewMerchantChange:ne,onReceiptsUpload:V,saveRemiDetails:me,submitRemiDetails:D,discardReimbursementDetailsFromLocalStore:J,onReimbursementDetailsChanged:pe,updateReimbursementType:de,onHomeCurrencyConversionUpdate:H,redirectToReimbursementListScreen:he,redirectToReimbursementDetailScreen:We,deleteReimbursement:ge,removeFileFromLine:be,onZeniLogoClick:le,onAmountChanged:Ae,updateInvoiceUploadFetchState:Ie,clearTentativeNameForLine:Pe,onAddNewRule:fe,onFetchLinkTokenClick:v,onEstablishConnectionClick:U,deleteBankAccount:ce,onBackClickFromBankAccountPage:Ke,initialOpenThreadRequest:N})=>{const Ge=w.useRef(null),lt=w.useRef(null),st=di(e.uploadStatus),Ue=St(),Re=vt(),[Qe,ze]=w.useState(!1),[Ye,Je]=w.useState(!1),[Xe,et]=w.useState("save"),[ue,dt]=w.useState(oi(e.lineDetailSection,e.currencyConversionStatus)),[ct,Z]=w.useState(!1),[Be,W]=w.useState(null),[Se,ut]=w.useState(!1),Q=`dashboard_${Re.currentTenant?.companyId}`,X=rn({mode:"all",reValidateMode:"onChange",defaultValues:w.useMemo(()=>ni(e,r,l),[e,r,l]),values:w.useMemo(()=>ni(e,r,l),[e,r,l]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:Bn,dirtyFields:Mn}=X.formState,Si=w.useMemo(()=>Di((I,A)=>(async(z,Fe)=>{const{lineInfo:f}=Fe,C=Number(z.split(".")[1]);if(z.includes("reportTitle")||z.includes("memo"))return;if(z.includes("reimbursementType")){const F=f[C].mileage,q=f[C].outOfPocket;f[C]={...f[C],outOfPocket:{transactionDate:q.transactionDate??void 0,class:{allOptions:q.class.allOptions??He(Ze(e.classHierarchyList,[])),selectedOption:q.class.selectedOption??void 0},account:{allOptions:q.account.allOptions??He(Ft(e.accountsHierarchyList,[])),selectedOption:q.account.selectedOption??void 0},amount:q.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(ve=>({label:`${ve.currencyCode} - ${ve.currency}`,value:ve.currencyCode,countryCode:mi(ve.countryCode)})),selectedOption:r.currencyCode??_e}},memo:q.memo??void 0,merchant:q.merchant??void 0,recommendations:q.recommendations??[],recommendedAccount:q.recommendedAccount??void 0,isCategoryUpdateSelected:q.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:q.isCategoryFirstTimeAutofilled??!1,retainedAccount:q.retainedAccount??void 0,isRetainedCategorySelected:q.isRetainedCategorySelected??!1},mileage:{transactionDate:F.transactionDate??void 0,class:{allOptions:F.class.allOptions??He(Ze(e.classHierarchyList,[])),selectedOption:F.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:F.distanceInMiles,amount:{amount:F?.amount?.amount??0,currencyCode:F?.amount?.currencyCode??_e,currencySymbol:F?.amount?.currencySymbol??Lt},memo:F.memo??void 0}}}else if(z.includes("mileage.distanceInMiles")){const{distanceInMiles:F}=f[C].mileage,q=h?.mileageUnitAmount??0;f[C].mileage={...f[C].mileage,amount:{amount:F!=null?F*q:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(z.includes("outOfPocket.amount")&&f[C].lineId){const F=f[C].outOfPocket.amount,q=e.allCurrencies.find(ve=>ve.currencyCode===F?.currency.selectedOption)?.currencySymbol;if(F?.currencyCode!==F?.currency.selectedOption){const ve=F?.currency?.allOptions||[];f[C].outOfPocket.amount={currency:{allOptions:ve,selectedOption:F?.currency?.selectedOption},amount:f[C].outOfPocket?.amount?.amount??0,currencyCode:F?.currency.selectedOption??_e,currencySymbol:q??Lt}}if(F?.currency.selectedOption!==_e)Z(!0),qn(f[C].lineId,_e);else{const ve={};f.forEach(Zt=>{ve[Zt.lineId]={lineId:Zt.lineId,homeCurrencyConversions:Zt.homeCurrencyConversions}}),f[C].homeCurrencyConversions={amount:F.amount??0,currencyCode:F?.currency.selectedOption??_e,currencySymbol:q??Lt};const Ti=oi(ve,e.currencyConversionStatus);ue!==Ti&&dt(Ti)}}else if(z.includes("outOfPocket.isRetainedCategorySelected"))f[C].outOfPocket.isRetainedCategorySelected===!0&&(f[C].outOfPocket.isCategoryUpdateSelected=!1,f[C].outOfPocket.account.selectedOption=f[C].outOfPocket.retainedAccount?.qboId);else if(z.includes("outOfPocket.isCategoryUpdateSelected"))if(f[C].outOfPocket.isCategoryUpdateSelected===!0)f[C].outOfPocket.account.selectedOption=f[C].outOfPocket.recommendedAccount?.qboId,f[C].outOfPocket.isRetainedCategorySelected=!1;else{const F=f[C].lineId,q=e.editRemiInitialDetails.lineDetailSection[F]?.lineDetail?.account?.qboId;f[C].outOfPocket.account.selectedOption=q,f[C].outOfPocket.isRetainedCategorySelected=!1}else z.includes("outOfPocket.account")&&(f[C].outOfPocket.recommendations.length>0&&(f[C].outOfPocket.recommendedAccount=f[C].outOfPocket.recommendations[0].account),f[C].outOfPocket.recommendedAccount?.qboId!=null&&f[C].outOfPocket.account.selectedOption===f[C].outOfPocket.recommendedAccount?.qboId?f[C].outOfPocket.isCategoryUpdateSelected=!0:f[C].outOfPocket.isCategoryUpdateSelected=!1,f[C].outOfPocket.retainedAccount?.qboId!=null&&f[C].outOfPocket.account.selectedOption===f[C].outOfPocket.retainedAccount?.qboId?f[C].outOfPocket.isRetainedCategorySelected=!0:f[C].outOfPocket.isRetainedCategorySelected=!1,f[C].outOfPocket.isCategoryFirstTimeAutofilled=!1);const It=ai({...Fe,lineInfo:f},e.merchantList.merchants,r,ue,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(pe?.(It),z.includes("outOfPocket.merchant")){const F=f[C].lineId,q=f[C].outOfPocket.merchant.selectedOption??"";f[C].outOfPocket.merchant.allOptions.find(ve=>ve===q)!=null?M(q,F):ne(q,F)}})(I,A),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);w.useEffect(()=>{const I=X.watch((A,{name:z})=>{z!=null&&A!=null&&Si(z,A)});return()=>{I.unsubscribe()}},[Si,X]),w.useEffect(()=>{const I=Ro(Object.values(e.currencyConversionStatus)),A=I.fetchState==="In-Progress"||I.fetchState==="Error";Z(A)},[e.currencyConversionStatus]),w.useEffect(()=>{for(const A in e.currencyConversionStatus){const z=e.lineDetailSection[A],Fe=e.lineDetailSection[A];e.currencyConversionStatus[A].fetchState==="Completed"&&Fe!=null&&z.type!==m.mileageKey&&!ln(z?.homeCurrencyConversions,Fe.homeCurrencyConversions)&&H({amount:z?.homeCurrencyConversions?.amount??0,currencyCode:z?.homeCurrencyConversions?.currencyCode??_e,currencySymbol:z?.homeCurrencyConversions?.currencySymbol??Lt},A,p)}const I=oi(e.lineDetailSection,e.currencyConversionStatus);ue!==I&&dt(I)},[e.currencyConversionStatus,e.lineDetailSection]),w.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(J(p),he?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,p,J,he]);const L=Le(),[Me,bt]=w.useState(p==null),[ft,Fn]=w.useState(1),[Nn,Ut]=w.useState(!1),[En,Wn]=w.useState(""),[_t,Un]=w.useState(null),[_n,mt]=w.useState(!1),[Vn,vi]=w.useState(!1),[Vt,qt]=w.useState([]),[xe,Ct]=w.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),qn=w.useRef(Di((I,A)=>Ae(I,A),500,{trailing:!0})).current;w.useEffect(()=>{st==="In-Progress"&&(e.uploadStatus==="Completed"?(X.reset(ni(e,r,l),{keepDefaultValues:!0}),ze(!1),bt(!1)):e.uploadStatus==="Error"&&ze(!1))},[st,e.uploadStatus,X,e,Qe,ze,Me,r,l,$]),w.useEffect(()=>{e.uploadStatus==="In-Progress"&&Me===!1&&ze(!0)},[e.uploadStatus,ze,Me]);const Ht=e.remiStage==="draft"?m.newReimbursementTitle:m.editReimbursementTitle,Hn={onOkClick:()=>{if(mt(!1),xe.primaryButtonText===m.buttons.discard)J(p),e.remiStage==="draft"?he?.():We?.();else if(xe.primaryButtonText===m.buttons.delete)xe.title===m.deleteBankAccountTitle?ce?.(En):ge?.();else if(xe.primaryButtonText===m.buttons.yes&&_t!=null){const I=Vt.filter(A=>A!==ft.toString());qt(I),V(_t,ft,!0)}},onCancelClick:()=>{if(mt(!1),xe.secondaryButtonText===m.buttons.no){const I=Vt.filter(A=>A!==ft.toString());qt(I),V(_t,ft,!1)}}},$i=()=>{Bn||uo(Mn)?(Ct({title:m.discardTitle,description:m.discardDescription,primaryButtonText:m.buttons.discard,secondaryButtonText:m.buttons.cancel}),mt(!0)):(J(p),he?.())},Ci=()=>{if(c&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")$i();else{et("save");const I=X.getValues(),A=ai(I,e.merchantList.merchants,r,ue,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);pe?.(A);const z=A.whatForSection?.reportTitle;z!=null&&z.length>0?me(e.remiStatus==="rejected"?"pending_approval":"draft"):X.trigger(`${Mt}.reportTitle`,{shouldFocus:!0})}};let Kt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(I=>{I.length>0&&(Kt=!0)});let ki=[];if(e.remiId==null){const I=ue??0;I>0&&(ki=e.approvalRules.allApprovalRules?.filter(A=>{const z=A.criteria[0].range;if(z.max!=null){if(z.min.amount<I&&z.max.amount>=I)return A}else if(z.min.amount<I)return A;return null}).map(A=>({...A,stepsWithStatus:A.steps.map(z=>({...z,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const Kn=I=>{const A=(()=>{let z=!0;const Fe=[];return Object.values(e.lineDetailSection).forEach((f,C)=>{f.type===m.outOfPocketKey&&On(f)>=75&&f.file==null&&(Fe.push(f.lineId),z=!1)}),qt(Fe),z})();return X.handleSubmit(()=>{A&&(et("submit"),$?.trackReimbursementSubmitReimbursement(e.createTime?.format(en.analytics.MMMDashDDDashYYYYFormat)??xi().format(en.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,ue,p),B(),vi(!0))})(I)},Gn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,Yn=e.reimbursementInfo?.paymentDate!=null?at(Cn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Jn=e.reimbursementInfo?.expectedDepositDate??Yn,Zn=p!=null&&e.remiStage==="draft",Ii=Lo(e.duplicateLineByLineId),Gt=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ii>0,{requestToOpenThread:Yt,setRequestToOpenThread:kt,setOpenThread:Jt}=w.useContext(Xn);w.useEffect(()=>{N?.threadId!=null&&N?.companyId!=null&&N?.entityType!=null&&kt(N)},[N,kt]);const{threads:xt,isLoading:tt}=eo({application:"dashboard",companyId:Re.currentTenant?.companyId,tab:"reimbursement",entityId:p,isGlobalComment:!1},"both",!1);w.useEffect(()=>{Yt?.threadId!=null&&xt.length>0&&!tt&&(Jt(Yt.threadId),kt(null))},[Yt,xt,tt,Jt,kt]);const Qn=w.useMemo(()=>p==null?[]:xt.filter(I=>I.resolved===!1&&!I.id.includes(to)),[xt,p]).length;return t.jsx(Or,{ref:Ge,children:t.jsx(io,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:lt.current??null}},children:t.jsxs(sn,{...X,children:[t.jsx("form",{id:nn(tn),onSubmit:I=>Kn(I),children:t.jsxs(al,{windowSize:L,ref:lt,children:[_n?t.jsx(ui,{titleComponent:t.jsx(cn,{children:xe.title}),descriptionComponent:t.jsx(dn,{children:xe.description}),primaryButtonText:xe.primaryButtonText,secondaryButtonText:xe.secondaryButtonText,action:Hn,proceedButtonVariant:xe.title===m.deleteBankAccountTitle||xe.title===m.deleteDraftTitle||xe.title===m.deleteReportTitle||xe.title===m.discardTitle?"danger":"primary",isEditPopup:xe.title===m.deleteBankAccountTitle}):null,Vn?t.jsx(br,{reimbursementId:p,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:Gt,numberOfDuplicateLines:Ii,setShowDuplicatePopup:vi,submitReport:()=>{const I=X.getValues(),A=ai(I,e.merchantList.merchants,r,ue,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);pe?.(A),D()},fetchDuplicateReimbursement:T,clearDuplicateReimbursementDetail:B,clearRemiSaveStatus:ie,analytics:$}):null,Qe?t.jsx(an,{windowSize:L}):null,Me?t.jsxs(an,{windowSize:L,"data-testid":G("skip-autofill-section"),children:[L==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ur,{children:t.jsx(si,{partOfSkipAutoFill:!0,size:L,onClick:()=>bt(!1),"data-testid":G("close-invoice-upload"),children:t.jsx(li,{withOverlay:!0,children:t.jsx(ri,{})})})}),t.jsx(Vr,{children:Ht})]}):null,t.jsx(In,{showAutofill:Me,analytics:$,onSkipAutofill:()=>{$?.trackReimbursementSkipAutofill(),bt(!1)},uploadInvoiceEndPoint:u,authParams:o,style:{width:te.leftSectionWidth.valuePercentage(L),boxSizing:"border-box",backgroundColor:L==="small"?Ue.colors.grey4:"unset",padding:L==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:L==="small"?i.sp0:void 0},onInvoiceUpload:I=>V(I,ft,!0),dropFilePlaceholder:{upload:m.dropReceipt.upload,single:m.dropReceipt.single,or:m.dropReceipt.or,multiple:m.dropReceipt.multiple,receipts:m.dropReceipt.receipts},updateInvoiceUploadFetchState:Ie,showInfoText:!1,allowMultiFiles:Me,type:"reimbursement"}),L!=="small"?t.jsx(_r,{children:t.jsx(si,{partOfSkipAutoFill:!0,onClick:()=>bt(!1),"data-testid":G("close-invoice-upload"),children:t.jsx(li,{withOverlay:!0,children:t.jsx(ri,{})})})}):null]}):null,t.jsxs(el,{windowSize:L,"data-testid":G("edit-reimbursement-detail-page-nav-bar-container"),children:[L!=="small"?t.jsx(ji,{style:{width:"42%"},"data-testid":G("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(tl,{"data-testid":G("zeni-logo-spend-management-reimbursement-detail-page"),onClick:le}),enableTitleOnScroll:!1,scrollableContent:Ge,backgroundColor:Ue.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,L!=="small"?t.jsx(Pr,{}):null,t.jsx(ji,{style:{width:te.navBarWidth.valuePercentage(L)},"data-testid":G("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:Ht,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Me!=1?t.jsxs(il,{children:[j&&p!=null?t.jsxs(nl,{isDisabled:tt,"data-testid":G("remi-comment-button"),onClick:tt?()=>null:I=>{I.preventDefault(),I.stopPropagation(),W({roomId:Q,companyId:Re.currentTenant?.companyId??"",companyName:Re.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:p}),ut(!0),$?.trackCommentActivity("reimbursement","clicked",Re.currentTenant?.companyName??"",Re.controllersList.controllers.map(A=>oo(A)),void 0,void 0,"page icon")},children:[t.jsx(no,{count:tt?void 0:Qn,isLoading:tt,style:{left:"12px"}}),t.jsx(ol,{})]}):null,t.jsx(si,{size:L,onClick:()=>$i(),"data-testid":G("close-nav-bar"),children:t.jsx(li,{withOverlay:!1,children:t.jsx(ri,{})})})]}):null,enableTitleOnScroll:L!=="small",scrollThreshold:64,scrollableContent:Ge,backgroundColor:Ue.colors.grey4})]}),L==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Xr,{children:Ht}),t.jsx(ao,{progressSectionObj:Gn,createDate:e.createTime,paymentDate:Jn,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:p!=null||e.uploadStatus==="Completed"}),Kt&&t.jsxs(Kr,{children:[t.jsx(Hr,{}),t.jsx(Gr,{children:m.banner})]}),e.isProcessing?t.jsx(un,{variant:"warning",style:{margin:L==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Xi.duplicateWarning.title,description:Xi.duplicateWarning.description}):Gt?t.jsxs(Yr,{size:L,children:[t.jsx(zr,{}),t.jsxs(Zr,{children:[t.jsx(Jr,{children:m.thereSeems}),t.jsx(Qr,{children:m.pleaseFind})]})]}):null,t.jsx(jn,{isReimbursementCommentingEnabled:j,sectionId:Mt,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(Ka,{onDuplicateLineClick:re,reimbursementId:p,remiDetails:e,uploadInvoiceEndPoint:u,authParams:o,showSkipAutoFill:Me,setShowSkipAutoFill:bt,isReimbursementCommentingEnabled:j,isAutoFieldsExist:Kt,totalAmount:ue,removeFileFromLine:be,onReplaceClick:()=>{Ct({title:m.overwriteTitle,description:m.overwriteDescription,primaryButtonText:m.buttons.yes,secondaryButtonText:m.buttons.no}),mt(!0)},onReceiptsUpload:V,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Fn,setUploadedReceiptPayload:Un,updateInvoiceUploadFetchState:Ie,clearTentativeNameForLine:Pe,defaultCurrency:r,companyMileageConfigInfo:h,isUserAdmin:c,setShowBankAccountPage:Ut,bankAccounts:l,onDeleteBankAccount:I=>{Wn(I),Ct({title:m.deleteBankAccountTitle,description:m.deleteBankAccountDescription,primaryButtonText:m.buttons.delete,secondaryButtonText:m.buttons.cancel}),mt(!0)},analytics:$,fileRequiredLineIds:Vt,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:x,showTotalAmountLoader:ct,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:Gt,removeDuplicateReimbursementForLine:ae,scrollContainerRef:Ge}),t.jsxs(rl,{showSkipAutoFill:Me,windowSize:L,children:[L!=="small"?t.jsx(on,{}):null,t.jsx(ll,{windowSize:L,children:t.jsxs(sl,{windowSize:L,children:[e.remiId!==void 0&&t.jsx(Oi,{amount:ue??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:fe,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&ue!=null&&ue>0?t.jsx(Oi,{amount:ue??0,activities:ki,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(dl,{}),t.jsxs(qr,{showSkipAutoFill:Me,windowSize:L,children:[L!=="small"?t.jsx(on,{}):null,t.jsx(Rr,{windowSize:L,onClick:I=>{I.stopPropagation(),Ye===!0&&Je(!1)},children:t.jsx(mn,{formId:nn(tn),separatorStyle:{marginRight:i.sp4},showCancel:y,cancelBtn:{label:c&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?L==="small"?m.buttons.discard:m.buttons.discardChanges:L==="small"?m.buttons.save:m.buttons.saveChanges,isLoading:Xe==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:Ci,style:{width:te.footerButtonWidth.value(L)},reverseSpinnerColor:!1},primaryBtn:{label:jr(y,c,e,L),isDisabled:!y,style:{width:y?te.footerButtonWidth.value(L):"auto"},type:y?"submit":"button",onClick:y?()=>null:Ci,isLoading:!y&&Xe==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Lr,{children:t.jsxs(Nr,{windowSize:L,children:[Ye?t.jsx(pn,{onClickAway:()=>Je(!1),children:t.jsx(Fr,{windowSize:L,"data-testid":G("remi-other-actions-container"),children:t.jsx(Er,{onClick:()=>{Ct({title:e.remiStage==="draft"?m.deleteDraftTitle:m.deleteReportTitle,description:m.deleteAlertDescription,primaryButtonText:m.buttons.delete,secondaryButtonText:m.buttons.cancel}),mt(!0)},"data-testid":G("delete-report-action"),children:m.buttons.deleteReport})})}):null,t.jsx(Mr,{windowSize:L,children:Zn===!0?t.jsx(Br,{windowSize:L,"data-testid":G("more-details-button"),children:t.jsx(Ar,{onClick:()=>Je(!Ye)})}):null})]})}),style:{minHeight:62}})})]}),j&&p!=null?t.jsx(Po,{id:Q,children:t.jsx(ro,{isDrawerOpen:Se,allowComposer:!0,drawerTitle:$r,threads:xt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:Be?.companyId??Cr,isGlobalComment:!1,tab:"reimbursement"},isLoading:tt,threadMetadata:Be?{companyName:Be.companyName,companyId:Be.companyId,entityId:Be.entityId,entityType:Be.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:kr,replyComposerPlaceholder:Ir,threadResolve:Tr,threadUnResolve:Dr},onThreadClick:(I,A)=>((z,Fe)=>{Jt(Fe);const f=z.entityType.split("."),C=parseInt(f[2]);if(isNaN(C))return void ut(!1);const It=`${C+1}`,F=e.lineDetailSection[C+1].type;f.includes(m.mileageKey)&&F===m.outOfPocketKey?de(Bi(m.mileageKey),It,p):f.includes(m.outOfPocketKey)&&F===m.mileageKey&&de(Bi(m.outOfPocketKey),It,p),ut(!1)})(I,A),onCloseAllThreadsDrawer:()=>ut(!1),drawerSectionStyle:{width:"400px",backgroundColor:Ue.colors.background}})}):null]})}),Nn?t.jsx(Wr,{windowSize:L,children:t.jsx(ar,{bankAccountCreationState:R,setShowBankAccountPage:Ut,plaidConnectionDetails:d,onFetchLinkTokenClick:v,onEstablishConnectionClick:U,onSaveHandler:k,bankAccountToCreate:g,bankNameByRouting:S,fetchBankNameByRoutingStatus:b,onUserBankDetailsUpdated:O,onFetchBankName:_,onBackClick:()=>{Ke(),Ut(!1)}})}):null]})})})},jr=(e,o,r,h)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?m.buttons.resubmit:m.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?h==="small"?m.buttons.discard:m.buttons.discardChanges:h==="small"?m.buttons.save:m.buttons.saveChanges,Or=n.div`
|
|
620
|
+
position: relative;
|
|
621
|
+
height: 100vh;
|
|
622
|
+
overflow-y: scroll;
|
|
623
|
+
`,Pr=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
|
+
`,Rr=n.div`
|
|
634
|
+
width: ${e=>te.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
635
|
+
`,Lr=n.div`
|
|
636
|
+
display: flex;
|
|
637
|
+
justify-content: flex-end;
|
|
638
|
+
`,Ar=n(po)`
|
|
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
|
+
`,zr=n(Oo)`
|
|
647
|
+
width: ${i.sp4};
|
|
648
|
+
height: ${i.sp4};
|
|
649
|
+
color: ${P.brandColorGoldDark};
|
|
650
|
+
`,Br=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
|
+
`,Mr=n.div`
|
|
659
|
+
display: flex;
|
|
660
|
+
justify-content: center;
|
|
661
|
+
align-items: center;
|
|
662
|
+
`,Fr=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=>te.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=>te.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=>te.actionsContainerRight.valuePx(e.windowSize)};
|
|
685
|
+
height: 100%;
|
|
686
|
+
display: flex;
|
|
687
|
+
`,Er=n(yi)`
|
|
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
|
+
`,Wr=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=>te.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
705
|
+
right: 0;
|
|
706
|
+
top: 0;
|
|
707
|
+
`,Ur=n.div`
|
|
708
|
+
background: ${e=>e.theme.colors.grey4};
|
|
709
|
+
height: 44px;
|
|
710
|
+
display: flex;
|
|
711
|
+
align-items: center;
|
|
712
|
+
justify-content: end;
|
|
713
|
+
`,_r=n.div`
|
|
714
|
+
width: 58%;
|
|
715
|
+
`,Vr=n(pi)`
|
|
716
|
+
padding: ${i.sp3} ${i.sp3} 0 ${i.sp3};
|
|
717
|
+
background: ${e=>e.theme.colors.grey4};
|
|
718
|
+
color: ${e=>e.theme.colors.primary};
|
|
719
|
+
`,qr=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
|
+
`,on=n.div`
|
|
726
|
+
width: 42%;
|
|
727
|
+
`,Hr=n(hi)`
|
|
728
|
+
color: ${e=>e.theme.colors.primary};
|
|
729
|
+
width: ${i.sp3};
|
|
730
|
+
height: ${i.sp3};
|
|
731
|
+
`,Kr=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
|
+
`,Gr=n.span`
|
|
740
|
+
color: ${e=>e.theme.colors.hero};
|
|
741
|
+
`,Yr=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=>te.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
748
|
+
margin-right: ${e=>te.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
749
|
+
margin-bottom: ${e=>te.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
750
|
+
margin-left: ${e=>te.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
751
|
+
background-color: ${P.alertLight};
|
|
752
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
753
|
+
`,Jr=n(Wt)`
|
|
754
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
755
|
+
`,Zr=n.div`
|
|
756
|
+
width: 100%;
|
|
757
|
+
`,Qr=n(fi)`
|
|
758
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
759
|
+
`,Xr=n(pi)`
|
|
760
|
+
letter-spacing: -0.02em;
|
|
761
|
+
color: ${e=>e.theme.colors.primary};
|
|
762
|
+
margin: ${i.sp3};
|
|
763
|
+
`,an=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: ${P.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
|
+
`,el=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
|
+
`,tl=n(so)`
|
|
782
|
+
display: flex;
|
|
783
|
+
color: ${e=>e.theme.colors.brandColorJade};
|
|
784
|
+
cursor: pointer;
|
|
785
|
+
width: ${i.sp4};
|
|
786
|
+
height: ${i.sp4};
|
|
787
|
+
`,ri=n(hn)`
|
|
788
|
+
cursor: pointer;
|
|
789
|
+
width: ${i.sp4};
|
|
790
|
+
height: ${i.sp4};
|
|
791
|
+
float: right;
|
|
792
|
+
color: inherit;
|
|
793
|
+
`,li=n.div`
|
|
794
|
+
color: ${e=>e.theme.colors.hero};
|
|
795
|
+
&:hover {
|
|
796
|
+
color: ${e=>e.withOverlay?P.primaryDark:e.theme.colors.primary};
|
|
797
|
+
}
|
|
798
|
+
`,il=n.div`
|
|
799
|
+
margin-top: ${e=>te.closeMarginTop.valuePx(e.windowSize)};
|
|
800
|
+
display: flex;
|
|
801
|
+
float: right;
|
|
802
|
+
`,nl=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
|
+
`,ol=n(co)`
|
|
814
|
+
display: flex;
|
|
815
|
+
width: ${i.sp4};
|
|
816
|
+
height: ${i.sp4};
|
|
817
|
+
align-items: center;
|
|
818
|
+
justify-content: center;
|
|
819
|
+
`,si=n.div`
|
|
820
|
+
margin-top: ${e=>e.partOfSkipAutoFill===!0?te.closeMarginTop.valuePx(e.size):0};
|
|
821
|
+
margin-left: ${i.sp5};
|
|
822
|
+
margin-right: ${e=>e.partOfSkipAutoFill===!0?te.closeMarginRight.valuePx(e.size):0};
|
|
823
|
+
`,al=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
|
+
`,rl=n.div`
|
|
853
|
+
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
854
|
+
width: 100%;
|
|
855
|
+
margin-bottom: ${e=>te.bottomMargin.valuePx(e.windowSize)};
|
|
856
|
+
`,ll=n.div`
|
|
857
|
+
width: ${e=>te.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
858
|
+
`,sl=n.div`
|
|
859
|
+
margin-left: ${e=>te.leftMargin.valuePx(e.windowSize)};
|
|
860
|
+
margin-right: ${e=>te.rightMargin.valuePx(e.windowSize)};
|
|
861
|
+
`,dl=n.div`
|
|
862
|
+
display: flex;
|
|
863
|
+
flex-direction: column;
|
|
864
|
+
height: ${i.sp11};
|
|
865
|
+
`;export{Rl as default,nn as uniqueName};
|