@zeniai/web-app-ui 4.14.28-prod → 4.14.29-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-CnKQi3u4.js → ACHDetailsPage-DdI8Zlpr-DP3Ijrzf.js} +6 -6
- package/dist/assets/{AIPerformancePage-VILPvNCr-BPT7YRxu.js → AIPerformancePage-BCxF5hNI-DwsSzcsx.js} +15 -15
- package/dist/assets/AccountInfoPage-D_PrQwlp-DcHjYUET.js +18 -0
- package/dist/assets/{AccountInfoPageContent-g_X840C3-Bf7uv7Ip.js → AccountInfoPageContent-jLGn4-UA-BlSpfvCV.js} +7 -7
- package/dist/assets/{AccountLockedInfoModal-DDNvWMEQ-D21ggUhc.js → AccountLockedInfoModal-CKODwo_y-D1V0TVL_.js} +8 -8
- package/dist/assets/{AccountReconDetailsDrawerPage-CydLoK6D-DgTwHDXu.js → AccountReconDetailsDrawerPage-B2m7w0mL-C5Y15orT.js} +17 -17
- package/dist/assets/AccountRow-G9Hw9KCo-CT1w9ZhF.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-D8mOW1Wp-Bllhxb1U.js → AccountsPromoCardStack-C1-hQWvB-BQ8MpMFD.js} +17 -17
- package/dist/assets/AddAddressForCardDrawer-Dd-0o1b--B4hUfY9b.js +6 -0
- package/dist/assets/{AddToWalletPage-BMCgd2A5-DYYQJbMt.js → AddToWalletPage-BLdfTvYw-1DCwK82d.js} +15 -15
- package/dist/assets/AddressRoutes-BQkJFfvp.js +1 -0
- package/dist/assets/AddressScreen-Dl895CZ9.js +9 -0
- package/dist/assets/{AgingReportsPage-BL_aBNzL-Rfib8YTF.js → AgingReportsPage-C6aasTzQ-C63SyJmI.js} +7 -7
- package/dist/assets/AiCfoScreen-IdwAAJXG.js +11 -0
- package/dist/assets/{AllUserItems-b0wgd0Wz-HghicmNo.js → AllUserItems-CjeF5SWi-CeRsiH4z.js} +13 -13
- package/dist/assets/{ApAgingDetailPage-CD2EkZkg-C3t2oIzS.js → ApAgingDetailPage-BWtvu1dO-Br56Wlkb.js} +4 -4
- package/dist/assets/AppBasePage-MKRsDpmx-DMLcxkrr.js +71 -0
- package/dist/assets/AppDrawerContent-DN2hf6ff-5NhbUBos.js +92 -0
- package/dist/assets/ApprovalRulesSettingsPage-0XbPzs2a-C8UoHZRv.js +47 -0
- package/dist/assets/ArAgingChart-DSx_E9ZM-RnIrRkZm.js +24 -0
- package/dist/assets/ArAgingDetailPage-C8h1id5v-HwBRgj9f.js +46 -0
- package/dist/assets/{AttachmentView-ENg9Osic-P9NYY_0P.js → AttachmentView-CqKnI6Xt-AOGCu7iZ.js} +7 -7
- package/dist/assets/BalancesInsightWithToolTip-CSaW4oJh-DywAYbnn.js +38 -0
- package/dist/assets/{BankAccountSection-oL-aN0I_-Dgtd5LW7.js → BankAccountSection-Dhp7GLZA-FNVqovjK.js} +5 -5
- package/dist/assets/BankAccountWarningSection-C_OfdR1O-BMVJxE-j.js +51 -0
- package/dist/assets/{BankConnectionsSettingsPage-B848OGHq-Cd04Ls8R.js → BankConnectionsSettingsPage-CDPUFu2k-BBx4P7dZ.js} +21 -21
- package/dist/assets/BillDetailPage-BWBGE0pg-CYoOWtCP.js +266 -0
- package/dist/assets/{BillPayApprovalRoutes-D2WhMQ-d.js → BillPayApprovalRoutes-BvnC9SqN.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DtAj6RxA-cHLoC7d8.js → BillPayApprovalRuleDetailPage-B_XoB7xi-CXJBKdTH.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DLHvMgeY-o_RLMJzv.js → BillPayApprovalRulesPage-5okdFn01-D6fpe4cT.js} +12 -12
- package/dist/assets/{BillPayPromoPage-DQJAZi1a-nMEmkS30.js → BillPayPromoPage-GoR4wxn7-Cd3jtttJ.js} +11 -11
- package/dist/assets/{BillPayRoutes-BUUZZuBG.js → BillPayRoutes-DqZf2rOO.js} +13 -13
- package/dist/assets/BillPaySetUpPage-CKWIFJ92-Dr75QuFi.js +42 -0
- package/dist/assets/{BillingSettingsPage-Cfe4Vmza-BztoAmNg.js → BillingSettingsPage-AjSQYumd-GqgYiFI4.js} +10 -10
- package/dist/assets/{BillsBulkReviewDrawerPage-7y9q0HF_-BQu7vS0s.js → BillsBulkReviewDrawerPage-DsNKfhkT-CXzE-Qir.js} +1 -1
- package/dist/assets/{BoxItem-CTEOx6Nh-C4z3ogUT.js → BoxItem-BWNurtfc-J9WJ61G4.js} +3 -3
- package/dist/assets/BusinessVerificationPage-DN88j0Rn-DzH0PVhP.js +138 -0
- package/dist/assets/BusinessVerificationPageScreen-CJ17INUy.js +9 -0
- package/dist/assets/BusyIndication-H_iNZOWd-BNmJKxof.js +9 -0
- package/dist/assets/{CardNumberSubText-DijJqFXC-9bJRWO6u.js → CardNumberSubText-BAWc12F9-CekGLfjU.js} +5 -5
- package/dist/assets/{CashbackDetailPage-BxIWU0z2-5aSz_QAT.js → CashbackDetailPage-BhCHvGxj-nllESilf.js} +21 -21
- package/dist/assets/{ChargeCardDetailPage-ClyQPqJf-1IHjkCeF.js → ChargeCardDetailPage-D9-V0pjZ-CTp6LwRI.js} +64 -64
- package/dist/assets/{ChargeCardListPage-CYhY6c52-CMF1P6xh.js → ChargeCardListPage-CZFi8l0_-CO-jS4Wx.js} +21 -21
- package/dist/assets/ChargeCardListTable-DiJUp9-c-hw3gHlrw.js +711 -0
- package/dist/assets/{ChargeCardPaymentHistoryPage-wt6arCEL-CW6KbxWs.js → ChargeCardPaymentHistoryPage-CW9gtO0w-oF9Kbl5Z.js} +11 -11
- package/dist/assets/ChargeCardPromoPage-CiZDV925-B7JK6cJL.js +222 -0
- package/dist/assets/{ChargeCardRoutes-Bi6qtFGx.js → ChargeCardRoutes-BumOjc7r.js} +12 -12
- package/dist/assets/{ChargeCardSetupPage-C59WR7nm-BzmfqBsT.js → ChargeCardSetupPage-C5jXY5P--Da4gT9DT.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-DF5rt4B5-DgWKrTjO.js → ChargeCardStatementsPage-CetLgQ8l-CHHBhChm.js} +3 -3
- package/dist/assets/CheckDepositDrawerPage-BYfqgSGk-58W0gPrS.js +206 -0
- package/dist/assets/CollapsableReportTable-BhbPzkAB-C83Y_pXv.js +2972 -0
- package/dist/assets/{CompanyOfficerDetailsSection-BNSHkrC4-ClzL1rA4.js → CompanyOfficerDetailsSection-CMcuDe-X-CNo7Ot8a.js} +34 -34
- package/dist/assets/CompanyPassportCard-DImW2Dm8-pP6x_qCR.js +42 -0
- package/dist/assets/{CompanyPassportPage-DqhT6YL_-C387_Sbn.js → CompanyPassportPage-DT2W9QE1-DJLwOOR3.js} +18 -18
- package/dist/assets/{CompanyPassportScreen-Bw3qq-Ht.js → CompanyPassportScreen-Ckk3Aa0n.js} +1 -1
- package/dist/assets/{CompleteProfile-DdA-FkwG-CwuL_HZU.js → CompleteProfile-BOabRQRQ-Cdf3T9vg.js} +1 -1
- package/dist/assets/ConfettiBurst-Ix0vYpu--B-yjeAz3.js +1 -0
- package/dist/assets/ConnectionAuthScreen-CJIuvxwT.js +11 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-DRfa7meL.js → ConstrainedInnerElement-CgdnMeoA-CUV-Iost.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CODInbfe-yXgVF4QO.js → CreateOrEditVendorPage-D86akQ-H-a9byVQeU.js} +21 -21
- package/dist/assets/{CreditCardPaymentDrawerPage-DZNUIDa0-JL4MKrF6.js → CreditCardPaymentDrawerPage-MS34Pxyw-S-FNpO-K.js} +21 -21
- package/dist/assets/CurrencySelectField-BsuzTGXR-DG4V_Nis.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-CBlyvq0r-BGxcXIVy.js → CustomerOnboardingActivationPage-BP-GIrmI-cXKCGBAv.js} +5 -5
- package/dist/assets/CustomerOnboardingAuthScreen-C_Q_XIl1.js +1 -0
- package/dist/assets/CustomerOnboardingContainerPage-D4BMPshV-BEJOCQX6.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CIhb8Zvx-CnjT99uZ.js → CustomerOnboardingDetailPageSkeleton-CISAUodZ-DSVMFFq4.js} +9 -9
- package/dist/assets/CustomerOnboardingNoStepsPage-DgMQ5prq-DEUVMq4v.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-BJGDpI-d-BQ9XwM-v.js → CustomerOnboardingPage-QvCZDMFw-pwPfUUii.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-DmgQGvpp-Bu9zcjpR.js → CustomerOnboardingProductSuitePage-Bt1cV23--C-IqxjRL.js} +6 -6
- package/dist/assets/CustomerOnboardingRoutes-GPk7JXLd.js +23 -0
- package/dist/assets/{Dashboard-Cvmg-DzK-puV8ebMR.js → Dashboard-DdAePVSx-CyfCOyra.js} +26 -26
- package/dist/assets/{DashboardReportPage-C7bT-gmW-B8nCLsAW.js → DashboardReportPage-ccn0JYfk-DfPZgIh7.js} +40 -40
- package/dist/assets/DashboardRoutes-DbCVxvoA.js +21 -0
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CcTStx9W-Bnz6LhkJ.js → DashboardSidebarBackgroundAnimation-DPDd6e7b-ClZHrJ6l.js} +1 -1
- package/dist/assets/{DefaultTenantHome-RFtlxhsO.js → DefaultTenantHome-DnjlKX8o.js} +1 -1
- package/dist/assets/DepositAccTransactionItem-BijpyBiZ-CNN7AUw4.js +76 -0
- package/dist/assets/DepositAccTransactionListPage-DOuU7gGT-CxNst2Ko.js +66 -0
- package/dist/assets/DomesticWireDetailScreen-CMHXbUdU.js +18 -0
- package/dist/assets/DomesticWireDetailsPage-B10Vx6K5-BgPOj6ev.js +21 -0
- package/dist/assets/DownloadOverlay-BiIbEvq6-DkggD5hU.js +439 -0
- package/dist/assets/{DrawerPage-DGuh6P-6-BcyuUjYZ.js → DrawerPage-4aE01eRo-CbGkLlgW.js} +14 -14
- package/dist/assets/DrawerScreen-Bqlol_ka.js +1 -0
- package/dist/assets/EditPeoplePage-BWjOJqch-DMjcjWgK.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-Dcw8QlH6-CKpHH0Rb.js +865 -0
- package/dist/assets/{EntityDetailPage-BbeHCNGS-CuhXo5UK.js → EntityDetailPage-DseDMalq-D030AWbJ.js} +1 -1
- package/dist/assets/EntityDetailRoutes-DKPg6KvF.js +1 -0
- package/dist/assets/{EntitySummarySection-BgjWn9vX-B3b1MF7S.js → EntitySummarySection-D1o-WKT9-B4D8PhFo.js} +26 -26
- package/dist/assets/{ExpenseAutomationOverviewPage-V2cvYWxH-CNs6UVeS.js → ExpenseAutomationOverviewPage-BIGlSzsy-DDeWTiVS.js} +52 -52
- package/dist/assets/ExpenseAutomationPage-BUARFwSx-BgUO5pJv.js +3614 -0
- package/dist/assets/ExpenseAutomationRoutes-CFAuM0iq.js +20 -0
- package/dist/assets/{ExpressPayPage-5VdASApP-D9MlPJBc.js → ExpressPayPage-BKpxo5VW-BeZ2tWeR.js} +14 -14
- package/dist/assets/{FeaturePreviewPage-CA_fxOHn-Bf1rij6M.js → FeaturePreviewPage-CfqYjofS-Dw_fXJXh.js} +2 -2
- package/dist/assets/FeaturePreviewScreen-Ctx49exK.js +1 -0
- package/dist/assets/{FollowStepsSection-CTSjTKjT-BGVIDRAe.js → FollowStepsSection-CJzIGe2N-q0pn7uac.js} +11 -11
- package/dist/assets/GlobalReviewListPage-B4qWm75N-BekP71Yj.js +291 -0
- package/dist/assets/{InformationCardStack-D_Z7Ebe0-CrFTMoBP.js → InformationCardStack-BXWxFJnm-DZneOpmz.js} +3 -3
- package/dist/assets/InsightsCardStack-iUppdWya-IGcayZ6m.js +79 -0
- package/dist/assets/InsightsSection-CPg_uo3H-DaY57Nkj.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-4OV7HFwe-DZdJwIZ8.js → IntegrationsSettingsPage-DthkTtT9-BfWjdmm5.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-B1nvNamF-BTijFGVO.js → InternationalWireSwiftDetailsPage-hYeFGjj4-De4TNLmU.js} +19 -19
- package/dist/assets/InternationalWireVerificationPage-0TZuCAzZ-DstpGM2q.js +65 -0
- package/dist/assets/{InviteFormPage-C5mS-6c8-CQ3pBA8X.js → InviteFormPage-BC1PH63r-DAB3gVVK.js} +7 -7
- package/dist/assets/{InvitePageListView-Yj83_lDA-BObL1UwR.js → InvitePageListView-BJDfCvno-Sk3rc3V-.js} +65 -65
- package/dist/assets/InvitePeoplePage-Bl-WUfXO-DagADS45.js +12 -0
- package/dist/assets/InvoiceUploadSection-BgVvYytR-DjoTneQr.js +140 -0
- package/dist/assets/{IssueChargeCardPage-BIOTVOMR-BjJzOdS5.js → IssueChargeCardPage-0JEZpfCu-DLK0riSj.js} +29 -29
- package/dist/assets/{LabeledAddressValue-Bb1x9jR--K66XVI1l.js → LabeledAddressValue-BCsadhSu-lscFDQOa.js} +2 -2
- package/dist/assets/LabeledAddressValueField-D-AO8-Me-DR8Qyzx1.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-Do7rlK6F-CTyXPdV4.js +16 -0
- package/dist/assets/{LabeledCountryMultiSelectField-LeubJT8b-DKahjV4C.js → LabeledCountryMultiSelectField-BHwXHYPO-CYnRn6eD.js} +4 -4
- package/dist/assets/{LabeledCreatableSingleSelectField-CzrPLo-T-BnUMrxSH.js → LabeledCreatableSingleSelectField-gMUp1tXY-y1kl4nd-.js} +7 -7
- package/dist/assets/LabeledDocumentField-DxUq-7nr-DAyGmAsR.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-D51ly333-CZ2VlJWO.js +59 -0
- package/dist/assets/{LabeledEmailInputField-BOEHGgHy-B8PcLj3U.js → LabeledEmailInputField-Cd9p7Kj0-DZf49c8n.js} +11 -11
- package/dist/assets/{LabeledNameField-DWKoivcI-Bg7Loxzf.js → LabeledNameField-364jsrFK-CaN5hIDf.js} +5 -5
- package/dist/assets/{LabeledSingleSelectField-BkGsnV9P-BmcuJIvo.js → LabeledSingleSelectField-B3pMIEfZ-C8i8zlDG.js} +3 -3
- package/dist/assets/LabeledText-uFTi1qOo-Dh31QRqg.js +42 -0
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BTo_s8x5-CA9RNgOe.js → LabeledUserSingleSelectWithSubtitlesField-XD6D3r0Y-Ce4jb_BF.js} +15 -15
- package/dist/assets/{LabeledZeniRolesDropDownField-C3LoYUh_-B2cjpWvF.js → LabeledZeniRolesDropDownField-CbJ3OtWK-CN-nwhu5.js} +20 -20
- package/dist/assets/{LinkJETransactionPage-BbpybbwD-CgRdsDGC.js → LinkJETransactionPage-B5M6Ojt--C7jEEQdH.js} +12 -12
- package/dist/assets/{LockCardPage-C0XjGES8-DzPwjGzp.js → LockCardPage-DN2dvQA9-ptj6YCPt.js} +34 -34
- package/dist/assets/{LowBalancePopup-CkO97HGX-nozhu0WG.js → LowBalancePopup-CXTWwEyb-DHi-7FjF.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-6iW79Hsc-BuBCCqa7.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-KPRoVnEc-9k2m3ge7.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DjB2bi8k-BA612N6w.js +1 -0
- package/dist/assets/{MagicLinkRoutes-D99wiuRu.js → MagicLinkRoutes-0gOcNpgv.js} +10 -10
- package/dist/assets/MagicLinkSignInScreen-hqZFIhM7.js +12 -0
- package/dist/assets/MagicLinkSuccessPage-JRpuY47p-CZGcRvVV.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-CEZGF8ER-DCWrw88D.js → MagicLinkTitleSection-BnzImXCX-DsNqMADc.js} +9 -9
- package/dist/assets/MailingDetailsSection-aNMVpaF0-Mi3ceriD.js +21 -0
- package/dist/assets/MobileAppDrawer-CXepfp6e.js +1 -0
- package/dist/assets/{MoreMenuButton-BWNCapgP-BFDpJyIR.js → MoreMenuButton-C_jqM-Ix-D5fFt93A.js} +23 -23
- package/dist/assets/{MyBankConnectionsSettingsPage-C6p5J_f5-2jAZ0hVQ.js → MyBankConnectionsSettingsPage-CdW-lOqB-CQAYDmx1.js} +7 -7
- package/dist/assets/MyPendingActivationChargeCardListPage-DKvDUyn7-Cn7MG0Rp.js +6 -0
- package/dist/assets/{MyProfileSettingsPage-Ctkx_sAQ-BiLtfbOe.js → MyProfileSettingsPage-ZmPfSk3b-CekXUU4A.js} +6 -6
- package/dist/assets/NavBarWithPicker-BYosIzfk-CHzZbup1.js +30 -0
- package/dist/assets/{NavigationArrow-CUPvxfZv-CROxnh_J.js → NavigationArrow-CMLkPq47-BPg7he64.js} +7 -7
- package/dist/assets/NavigationDots-maxhYltq-IyF42HyI.js +15 -0
- package/dist/assets/{NewGlobalMerchantPage-g9JuX6MR-Cddrtv6r.js → NewGlobalMerchantPage-BkDFFysB-BMj84SI3.js} +4 -4
- package/dist/assets/NoDataChart-CKqR_T30-DZpYrIq4.js +26 -0
- package/dist/assets/{NoDataTable-D1v085Vv-CeExg0EA.js → NoDataTable-BQLSA76V-CA1kwcWh.js} +1 -1
- package/dist/assets/{NotFoundPage-Bf-EPtU9-DffpH6WC.js → NotFoundPage-rtS33FV3-CW80Ae7U.js} +4 -4
- package/dist/assets/NotFoundScreen-86VjMapP.js +1 -0
- package/dist/assets/NotificationRoutes-WpVyAd3n.js +1 -0
- package/dist/assets/{NotificationSettingsPage-Zv4-2vEl-CP53OCrD.js → NotificationSettingsPage-JJ5a6f1u-Dg5nWtfu.js} +15 -15
- package/dist/assets/NotificationsListConfig-CWWrsRBB-BQkEfnwX.js +1 -0
- package/dist/assets/NotificationsPage-9vgLoVxJ-CqhoB5mC.js +685 -0
- package/dist/assets/OpExByVendorPage-Dy7Ll1zE-CncYLP1q.js +100 -0
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-C20bjbix.js → OverlayContainerPage-BG9y5C0t-o9B6MYdd.js} +1 -1
- package/dist/assets/PandLWithForecastPage-D-V3dD71-2GY3G9_S.js +123 -0
- package/dist/assets/PandLWithForecastRoutes-NKWly9at.js +1 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CqavirRU-BkF9Y6IP.js → PaymentAccountSetupBillingAddressSection-B_4cMrVT-DX0VhwXR.js} +9 -9
- package/dist/assets/PeoplePage-B9bxxtaC-BUc8a2C6.js +772 -0
- package/dist/assets/PeopleRoutes-LIAWa-ry.js +22 -0
- package/dist/assets/PerformanceRoutes-647LNvtJ.js +1 -0
- package/dist/assets/{Preview-BI7JdS0A.js → Preview-C63MOKlS.js} +1 -1
- package/dist/assets/{ProductsCarousel-Dx8bStwI-DCDAdb91.js → ProductsCarousel-BnezAuLA-CWNs-1wI.js} +8 -8
- package/dist/assets/{PromoBaseCards-Bauxzwzt-D83UTBk-.js → PromoBaseCards-B5vRjrOp-DZnXvun2.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-COlHLDTh-Ca5S7kv5.js → QBOConnectionDialog-mVAyONiQ-BFw_Aijs.js} +4 -4
- package/dist/assets/{QBOConnectionScreen-Bdjj5_fC.js → QBOConnectionScreen-DPXluGT3.js} +4 -22
- package/dist/assets/{QBOSetupSection-Cb4AlHU9-D57sQXWJ.js → QBOSetupSection-Co4tc3sO-UEf5y5yj.js} +14 -14
- package/dist/assets/ReferralListScreen-C9t9-uma.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-DBPigEkQ.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cb4wyiiA-5a2mo1SI.js → ReimbursementApprovalRuleDetailPage-t48xfVQ_-DSouPzhL.js} +6 -6
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-D1GmaX--.js → ReimbursementApprovalRuleDetailScreen-iL2FRiSL.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BEid42KU-CqL0yvKr.js → ReimbursementApprovalRulesPage-BuOE0xKm-CyQAGb5D.js} +3 -3
- package/dist/assets/ReimbursementDetailPage-oD88KyGk-Z26luXjw.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-fvIAhNdR-CIqsc5v3.js → ReimbursementPromoPage-DC6vQNFr-Df-JQbVt.js} +11 -11
- package/dist/assets/ReimbursementRoutes-DP3Zyw9z.js +13 -0
- package/dist/assets/{ReimbursementSetUpPage-CBKANstD-CS_Qn9By.js → ReimbursementSetUpPage-ClkPQCRt-3XXwJA8a.js} +5 -5
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DiWW85PW-CdKgZHg6.js +1 -0
- package/dist/assets/ReloadCard-DcyZqZO5-CwUMwJXU.js +26 -0
- package/dist/assets/ReportTableViewSelector-Be_385i6-D1d1hisQ.js +151 -0
- package/dist/assets/ReportsPage-Dp_uEJ2H-DsQqyldd.js +258 -0
- package/dist/assets/ReportsRoutes-CQDTEzwi.js +1 -0
- package/dist/assets/{RevenueChart-BHrj8Dy9-CDfFyh6U.js → RevenueChart-B-iMe_PD-Bi6Ok69j.js} +12 -12
- package/dist/assets/ReviewDetailsPage--0ZUpEVp-CQmlT2je.js +290 -0
- package/dist/assets/{ReviewOverlay-Be_F1hd--BbTRhL0o.js → ReviewOverlay-D_JI48L0-CyNlOwFh.js} +8 -8
- package/dist/assets/RewardsRoutes-BiuOGirU.js +1 -0
- package/dist/assets/RoleWithToolTip-Bqdsc31P-CNmkPW05.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-h1Ewtn5T-BEUluqGW.js → ScheduleDetailsFixedAssetsPage-vFbciuuA-Diyke3YU.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-Cr-KaH2D-BD6uE37t.js → ScheduleDetailsPage-BUxgvyKT-Xmkq7RcC.js} +3 -3
- package/dist/assets/ScheduleSequenceTable-CPf50z9S-CLdzdoca.js +324 -0
- package/dist/assets/ScreenRoutes-IYIFGbR5.js +2 -0
- package/dist/assets/{SetUpAccountSection-ULABF-Md-zu_CEzKT.js → SetUpAccountSection-Bk3RGJCY-2x7H96z3.js} +32 -32
- package/dist/assets/{SettingsRoutes-DjjTCzCe.js → SettingsRoutes-CEWrZV9M.js} +7 -7
- package/dist/assets/{SetupPagesScreen-n_J03kZN.js → SetupPagesScreen-BFZeWYvZ.js} +6 -6
- package/dist/assets/SignIn-DbvYG8OW-DIGSru0r.js +491 -0
- package/dist/assets/SignInScreen-B27QEE_5.js +1 -0
- package/dist/assets/SignOutScreen-DfH6txYx.js +9 -0
- package/dist/assets/SpendManagementListViewPage-CSGYJyZu-BweWpc_X.js +134 -0
- package/dist/assets/SpendManagementPerTabPage-DuGeuTYQ-DataZT66.js +754 -0
- package/dist/assets/SpendManagementSection-CZ_i360S-BWGL8ndc.js +375 -0
- package/dist/assets/StatementItem-CDx2knrL-D3uOvDYp.js +31 -0
- package/dist/assets/StatementsPage-BMFYpAPA-D3BvQu9P.js +58 -0
- package/dist/assets/{StatusSwitcher-CgzMvf5t-BZOhbmQ7.js → StatusSwitcher-CDnarHSf-meshGWkH.js} +6 -6
- package/dist/assets/{SubTabSwitcher-gc5g6vV0-DPlVBwi9.js → SubTabSwitcher-DhIXVTVI-Dm-A1aML.js} +9 -9
- package/dist/assets/SuccessAnimation-C-AHWH-M-DYko07lj.js +13 -0
- package/dist/assets/SummaryCard-4S9PQQ5W-B2YKQ_55.js +1 -0
- package/dist/assets/{TaskDetailPage-Brq3l5Lm-D1g8XH38.js → TaskDetailPage-rWt-QUEv-DH6XgxNN.js} +45 -45
- package/dist/assets/TaskListScreen-CWIPHTTl.js +9 -0
- package/dist/assets/TaskManagementPage-D3YvKWVJ-DM0xoyo4.js +1067 -0
- package/dist/assets/TaskRoutes-CgARLANx.js +9 -0
- package/dist/assets/TimeRangeSwitcher-CFJrPhfZ-Bh0bakQI.js +64 -0
- package/dist/assets/TimeframeSwitcher-DS6zgSjT-D1R0FMKh.js +31 -0
- package/dist/assets/TimeframeSwitcherWithToggle-Did8-Dj7-CGwKh4M0.js +53 -0
- package/dist/assets/{TopExCard-CRxFMC50-DI0Ys14u.js → TopExCard-ByF-svYM-Ctw9EYS9.js} +6 -6
- package/dist/assets/{TopExDetailPage-D7dCJGpQ-0fQzChNa.js → TopExDetailPage-ABVezwCx-DzhDJZA8.js} +16 -16
- package/dist/assets/{TransactionActivityLogPage-ByyxovGE-DjV_kYSi.js → TransactionActivityLogPage-B8ytNODX-DVytAoU9.js} +9 -9
- package/dist/assets/TransactionDetailPage-CunkyIXB-CNc17TsU.js +903 -0
- package/dist/assets/TransactionDetailRoutes-CK-34SUt.js +1 -0
- package/dist/assets/{TransactionDetailScreen-BB7cA6Qz.js → TransactionDetailScreen-DDeYMLmN.js} +2 -2
- package/dist/assets/TransactionList-CEPVnfZD-ClBHZqTs.js +153 -0
- package/dist/assets/{TransactionListBig-BOKPby7d-BEnm2yMd.js → TransactionListBig-BYFv0irc-pAbEVbC_.js} +24 -24
- package/dist/assets/TransactionListPage-CEVs8CRQ-DxaQpOMD.js +35 -0
- package/dist/assets/{TransactionListRoutes-C8lRyPOF.js → TransactionListRoutes-DCJ5Lweu.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BK4zpJ1F-CN3xlCoQ.js → TransactionVendorDetailPage-DYvgQFQS-DSlx2b8r.js} +4 -4
- package/dist/assets/{TransferDrawerPage-B5ofYt0y-GqcyFVry.js → TransferDrawerPage-gDUiIE-g-Bvvjaklx.js} +25 -25
- package/dist/assets/TreasuryOverviewPage-DXIqVBWp-B9pyuKCe.js +725 -0
- package/dist/assets/{TreasuryPromoPage-ofZQDboF-CT-dKX0-.js → TreasuryPromoPage-oERSujnm-ClN1OTf6.js} +24 -24
- package/dist/assets/TreasuryRoutes-BjolvDGd.js +45 -0
- package/dist/assets/TreasuryStatementsPage-GWCCDPvf-_h3417p3.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-4aV14kQe-DVnspMQ5.js → TreasuryTaxLetterPage-pTRWyNYH-BQ_qi0uM.js} +4 -4
- package/dist/assets/TrendChart-B2oLQN05-BkrG4BVH.js +16 -0
- package/dist/assets/TrendWithTransactions-Bx63fv0P-BQ8GiA8P.js +116 -0
- package/dist/assets/{UncategorizedAccountsMappingPage-mYSXtdgK-C0jjOEyX.js → UncategorizedAccountsMappingPage-D_QwlpkW-CEr8coR8.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-C44UiDRH-CnXGyk33.js → UnitIntegrationPage-EeIQyR4L-D0Uey0gi.js} +4 -4
- package/dist/assets/UploadAdditionalDocumentOverlay-B8_7dtgO-BVpFWtFr.js +38 -0
- package/dist/assets/Vendor2FAPopup-DwTNfggI-QO3FNLHc.js +1 -0
- package/dist/assets/{VendorACHDetailsPage-CxlQSWGZ-CJCZBXzk.js → VendorACHDetailsPage-KDUuJi9g-SMC7hwJD.js} +1 -1
- package/dist/assets/VendorDetailPage-k42A_Pv1-C-eMTgO6.js +257 -0
- package/dist/assets/VendorDomesticWireDetailsPage-Dotx5CDo-B6fOSB2X.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-DIyS2YV_-BSd00dOl.js → VendorFiling1099EditablePage-BUuhWv_U-D-yHNm5T.js} +16 -16
- package/dist/assets/VendorFirstReviewPage-bN7DO44j-DzTJUqvm.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-DOYmaAmB-CP8642Mt.js → VendorInternationalWireDetailsPage-DjkOrgs7-CUIWISK5.js} +11 -11
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BRtCcxHm-BL32YiVm.js +1 -0
- package/dist/assets/{VendorsAccountsSection-D6DinIAj-BpUOgRZp.js → VendorsAccountsSection-D-7K4aZA-BPnUt7kZ.js} +2 -2
- package/dist/assets/{VendorsRoutes-BcdOO99u.js → VendorsRoutes-Dh458IQK.js} +21 -21
- package/dist/assets/VerifyDevice-VPfuXUzH-AU1zuQlS.js +112 -0
- package/dist/assets/{VideoPlayer-BuOlZW0M-BMl86S4m.js → VideoPlayer-2MQyZqi6-DqklpbYT.js} +1 -1
- package/dist/assets/VideoPopup-ZFwt4A81-Ch4C2tup.js +31 -0
- package/dist/assets/WiseConfirmationScreen-Bat277PD.js +12 -0
- package/dist/assets/ZeniAccountDetailPage-CJrpkcjr-CBwTak_Y.js +300 -0
- package/dist/assets/ZeniAccountListViewPage-DvJI3LGF-CKLfdqdE.js +443 -0
- package/dist/assets/ZeniAccountNavBarPieces-UCydmVe7-CXtDBFLP.js +33 -0
- package/dist/assets/{ZeniAccountPromoPage-iELT-FzW-BjCD72m0.js → ZeniAccountPromoPage-DiGsabvm-C_SqwLVl.js} +22 -22
- package/dist/assets/ZeniAccountRoutes-CAAxW9JY.js +58 -0
- package/dist/assets/{ZeniAccountSetupPage-feqonZIV-CG1KriVL.js → ZeniAccountSetupPage-hVmIT6tO-tFtJgQAT.js} +4 -4
- package/dist/assets/ZeniAccountStatementScreen-BaoiJX5h.js +9 -0
- package/dist/assets/{ZeniAvatar-CHmpyZc4-D3SEyYvU.js → ZeniAvatar-C2LxBTZ4-YOmVMm4j.js} +3 -3
- package/dist/assets/{ZeniCopyright-Cy7xQhak-ScelyO6I.js → ZeniCopyright-BTIaEGE9-Di2RxJTA.js} +1 -1
- package/dist/assets/{ZeniDatePicker--Wk1Y9-b-DVDC_pYc.js → ZeniDatePicker-9JxwH7J5-CcV9D7gC.js} +5 -5
- package/dist/assets/ZeniTransferAmountSlider-BlEFrC-Z-rEEslC0z.js +63 -0
- package/dist/assets/{accountMappingHelper-CTk3qsZA.js → accountMappingHelper-CZHlLVR_.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-DBixabBc.js → add-to-wallet-DgdBD8_G-BgQLRlhS.js} +1 -1
- package/dist/assets/{analytics-DeMdmyL7.js → analytics-CDQ7tGpV.js} +1 -1
- package/dist/assets/{analyticsHelper-MsboCQcB-CSXrY7fF.js → analyticsHelper-CYp9h-KW-6KJErEZC.js} +1 -1
- package/dist/assets/{analyticsHelper-LPY3WkeX.js → analyticsHelper-jTnRtCKB.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-CpIzET1p.js → arrow-south-east-round-PEovUgvH-CvfiHTRY.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-NghmWVqE.js → auto-transfer-rule-mbafm5D3-8rMpx5do.js} +1 -1
- package/dist/assets/{avatar-Dz7aEm3d-bHemC5rL.js → avatar-Dz7aEm3d-BdKWS97a.js} +1 -1
- package/dist/assets/bank-letter-BOcVjN6J-ydWr7ZOI.js +1 -0
- package/dist/assets/{calculateSize-DtEgyuiA-CjEqHti4.js → calculateSize-DecSvt-d-CIfCbqel.js} +1 -1
- package/dist/assets/{chartTypes-BZL6U2-d-jpm0hHlK.js → chartTypes-D2s_Hwo9-BbhqSw8p.js} +1 -1
- package/dist/assets/{clock-CJkylEKt-7F524_Wn.js → clock-CJkylEKt-CjcyjUt4.js} +1 -1
- package/dist/assets/common-BGuhvMjF-Ry4gfI81.js +1 -0
- package/dist/assets/commonDimensions-u85vL09f-D9VH5FSj.js +1 -0
- package/dist/assets/{commonTypes-lunwFIdl-CvIuXwQA.js → commonTypes-DKKiPW4t-BlYaUk1n.js} +1 -1
- package/dist/assets/{core-CSCSHf4h.js → core-B0nKoasK.js} +3 -38
- package/dist/assets/{dash.all.min-DD8xAjYr.js → dash.all.min-CXMi5GlA.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-CjRggx5I.js → decodeURIComponentSafe-CHDtTf3Z.js} +1 -1
- package/dist/assets/{dnd-COr1F31f.js → dnd-NNN-4w0O.js} +1 -1
- package/dist/assets/{dollar-round-D18u7nlm-jCztdMWk.js → dollar-round-D18u7nlm-CQw1tD8J.js} +1 -1
- package/dist/assets/downloadPdf-CnXPMbwm-BjEW_jtg.js +1 -0
- package/dist/assets/empty-CVZTZ-q9.js +1 -0
- package/dist/assets/{empty-CxBrUVur.js → empty-DA-JSLu3.js} +1 -1
- package/dist/assets/epic-D0yDPv8O.js +2 -0
- package/dist/assets/{filter-cZIFUNvj-CXXx4fNz.js → filter-cZIFUNvj-DAakc3sS.js} +1 -1
- package/dist/assets/getLocaleForTenant-DGG0tVFT.js +1 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-CKc8hoEH.js → gift-box-Cmt9OgIZ-C6pLHK0s.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-C4iKOud4.js → graphic-no-data-l-DU4J8fDt-Dn4I-rOX.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-VLqn_raX.js → graphic-no-data-net-burn-l-CzmycA0m-DO0fHtUP.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-DNYsMVIY.js → handshake-BPg58FML-C47iPdmd.js} +1 -1
- package/dist/assets/{helper-2Z01-P8G-6WuzcTRW.js → helper-C7sZs2qJ-DE63clA9.js} +2 -2
- package/dist/assets/{hyperlink-DQyCeXx2-CQAWbGo_.js → hyperlink-DQyCeXx2-BOSMM7uX.js} +1 -1
- package/dist/assets/{empty-BUd3exG5.js → index-BIjZljJR.js} +1 -1
- package/dist/assets/{index-DDbdy58V.js → index-ByxsQZNo.js} +4239 -4303
- package/dist/assets/{index-BOP14OKw.js → index-CEBFS-eA.js} +1 -1
- package/dist/assets/{index-BRX_XEL-.js → index-CQJQXzZY.js} +1 -1
- package/dist/assets/{index-CWdL8pZi.js → index-DrsMeyfs.js} +2 -8
- package/dist/assets/index-zhMcpxMF.js +1 -0
- package/dist/assets/{lexical-O2a-WmAf.js → lexical-Fl-AogKa.js} +1 -1
- package/dist/assets/{liveblocks-CxtxQte5.js → liveblocks-DskTqGyX.js} +3 -8
- package/dist/assets/{lottie-BQDwpIDJ.js → lottie-BzV8yd9z.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-CG-v5g2M-DTh9tKjd.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode--0eoufeA-Z11hNQZX.js → mapSectionWithAcOnlyToTreeNode-Okgefznu-CJAMwNIO.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-Cehw-jOG-pPZFbPSE.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-sCX2cRnL-BfAjp3to.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-yMo9FeMO-BQEyuzFH.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-ww9DgKFP-Cu0SrzZe.js +1 -0
- package/dist/assets/{media-player-En9R4zy-.js → media-player-eLGyvMHZ.js} +2 -2
- package/dist/assets/{money-2cg1MuG4-Dg41nRSv.js → money-2cg1MuG4-rv31fLm6.js} +1 -1
- package/dist/assets/{mui-CVWe5m7x.js → mui-40xepic5.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-BOzcKZnj.js → page-detail-CWX5S47F-BrbO3gtI.js} +1 -1
- package/dist/assets/{page-summary-D7_VQHwN-CcrLQmlI.js → page-summary-D7_VQHwN-bNTaLAow.js} +1 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-DgahycaC.js +3 -0
- package/dist/assets/{pathToGoBack-DIP3w2mF.js → pathToGoBack-D0UTUGlT.js} +1 -1
- package/dist/assets/{pdf-rNAmIEF5.js → pdf-A8jRKyoC.js} +3 -3
- package/dist/assets/{pdf-lib-JWzwvdNX.js → pdf-lib-mQnebn-k.js} +1 -1
- package/dist/assets/{plaid-CiVnbkxs.js → plaid-cfgjTkr8.js} +1 -1
- package/dist/assets/{pusher-CfFxSIhQ.js → pusher-1O2fsDZq.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-dW1yKl4Q.js → radio-default-CiSgisfh-Cy5-Jl8l.js} +1 -1
- package/dist/assets/{react-DRNApT94.js → react-BEcUyG01.js} +2 -12
- package/dist/assets/{react-DreXWt5i.js → react-BEctO-ia.js} +2 -12
- package/dist/assets/{react-CWo9VOAE.js → react-C6o6ScF5.js} +2 -12
- package/dist/assets/react-CQm7lU_-.js +19 -0
- package/dist/assets/{react-BLXPSNxU.js → react-CidUU4N9.js} +2 -12
- package/dist/assets/{react-BeMs2FpL.js → react-D8s_m7Vn.js} +2 -12
- package/dist/assets/{react-4TAXbemT.js → react-DcRcFJEU.js} +3 -13
- package/dist/assets/{react-BQsk4BoF.js → react-QF7HiPHo.js} +2 -12
- package/dist/assets/{recharts-C5pBg015.js → recharts-Bbdho9Pi.js} +1 -1
- package/dist/assets/{routePaths-fz0y1bUD.js → routePaths-CpPoI1xs.js} +1 -1
- package/dist/assets/{sentry-DXG8OAzW.js → sentry-COYnhuxW.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-Cd3QAXsn.js → shield-DOlUxcFf-wVomU2ew.js} +1 -1
- package/dist/assets/{spend-limit-D6SyboD4-D2szeI3Z.js → spend-limit-D6SyboD4-BruIkKZj.js} +1 -1
- package/dist/assets/toCOABalancesWithID-DinJUeg4-DkE5puj7.js +1 -0
- package/dist/assets/toChartData-DrYGpr_j-D2GR-55Z.js +1 -0
- package/dist/assets/{transaction-placeholder-CpOwZAMG-B2mLzfbH.js → transaction-placeholder-CpOwZAMG-C-J0dsgn.js} +1 -1
- package/dist/assets/{undo-b_3XZ5CX-DSJzH_Tn.js → undo-b_3XZ5CX-Chu3klyO.js} +1 -1
- package/dist/assets/{unlock-BPWn2I5L-Do1fnqx6.js → unlock-BPWn2I5L-BGatCFPm.js} +1 -1
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-GfUJ6f_w.js +1 -0
- package/dist/assets/{uploadAttachment-DtJo5Tp4-BZBGp8x9.js → uploadAttachment-DPYv4udq-CXZc-rXm.js} +29 -29
- package/dist/assets/{uploadReceipts-Dge0cNF1-Bk3l52rk.js → uploadReceipts-CIgkuVpu-Mr0MhYx1.js} +1 -1
- package/dist/assets/{url-DHNwFLzp.js → url-C27bOf0k.js} +1 -1
- package/dist/assets/{url-D1_xUHHk.js → url-XCmE-JaB.js} +1 -1
- package/dist/assets/{useDeviceId-CbEpWwMZ.js → useDeviceId-UXlBHXyB.js} +1 -1
- package/dist/assets/useInitialThreadRequest-BIFRjZze.js +1 -0
- package/dist/assets/{useLongPress-GCK2COYQ-B5PGidsY.js → useLongPress-GCK2COYQ-CqE4OIEm.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-BIw6ZPFi.js → usp-line-BBd1wKwW-vz296XX2.js} +1 -1
- package/dist/assets/{utils-CEFC9M68.js → utils-DMEPgX6w.js} +7 -20
- package/dist/assets/withTransactionSidePanel-BDgDxNYJ.js +8 -0
- package/dist/assets/zeni-epic-state-DCforPdM.js +14 -0
- package/dist/assets/{zeni-icon-only-CqALPKNP.js → zeni-icon-only-BkUYNged.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +16 -8
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-BTogpO7M-BUQAmyzG.js +0 -18
- package/dist/assets/AccountRow-Zjkju8uM-6N6Zy9oH.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-BvGnuIf6-DHHz24yV.js +0 -6
- package/dist/assets/AddressRoutes-BRhTpo4o.js +0 -1
- package/dist/assets/AddressScreen-DDbvTrW2.js +0 -9
- package/dist/assets/AiCfoScreen-BMeMMkhN.js +0 -11
- package/dist/assets/AppBasePage-BM1NMPdI-DTjsrnRl.js +0 -71
- package/dist/assets/AppDrawerContent-XR9dBd-C-BEm_wBDf.js +0 -92
- package/dist/assets/ApprovalRulesSettingsPage-6unABLlP-Dy0-KpVU.js +0 -47
- package/dist/assets/ArAgingChart-DePiNxcV-D_qXJGXM.js +0 -24
- package/dist/assets/ArAgingDetailPage-DiJ6PePf-DNZvBCjF.js +0 -46
- package/dist/assets/BankAccountWarningSection-CtRFcHTv-D_XRICo4.js +0 -51
- package/dist/assets/BillDetailPage-CPxVWXx6-1Oioq8DD.js +0 -266
- package/dist/assets/BillPaySetUpPage-BVOLWF1M-BteYr6zk.js +0 -42
- package/dist/assets/BusinessVerificationPage-D05hRyo1-CBEBIqW_.js +0 -138
- package/dist/assets/BusinessVerificationPageScreen-Cmz7lCYf.js +0 -9
- package/dist/assets/BusyIndication-Nz8htndZ-DYZEgBsh.js +0 -9
- package/dist/assets/ChargeCardListTable-Dblodw9X-CDugn7Oq.js +0 -711
- package/dist/assets/ChargeCardPromoPage-AihUlwys-Dk9L2iB8.js +0 -222
- package/dist/assets/CheckDepositDrawerPage-B9-ktuL_-qZS941d9.js +0 -206
- package/dist/assets/CollapsableReportTable-BAz0DbFh-CAhAQGEZ.js +0 -2844
- package/dist/assets/CompanyPassportCard-DTfKmcGv-De1PPEAL.js +0 -42
- package/dist/assets/ConfettiBurst-Dc0iIaw3-B7boQlLF.js +0 -1
- package/dist/assets/ConnectionAuthScreen-Du50wdfI.js +0 -11
- package/dist/assets/CurrencySelectField-D_D8AUqS-BZdJIXWt.js +0 -139
- package/dist/assets/CustomerOnboardingAuthScreen-Bmfm6EF8.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-BJV0xAFp-C9np5L3h.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-CLFh9K94-eo3A1qkf.js +0 -66
- package/dist/assets/CustomerOnboardingRoutes-C8nMZVtS.js +0 -23
- package/dist/assets/DashboardRoutes-Cs6trW6R.js +0 -21
- package/dist/assets/DepositAccTransactionItem-XZgomj7v-Bhnnv8Ar.js +0 -76
- package/dist/assets/DepositAccTransactionListPage-B11lcuip-BIFNXmB4.js +0 -66
- package/dist/assets/DomesticWireDetailScreen-CDquLvw_.js +0 -18
- package/dist/assets/DomesticWireDetailsPage-Cw4aq8Ar-D7iaVqqU.js +0 -21
- package/dist/assets/DownloadOverlay-DE63RFQe-rm17dQJa.js +0 -439
- package/dist/assets/DrawerScreen-C-gJlwdg.js +0 -1
- package/dist/assets/EditPeoplePage-Dmz2l8uY-DdG9SBff.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-BrQ60mqq-BnVEgdU7.js +0 -865
- package/dist/assets/EntityDetailRoutes-Bjmke2zn.js +0 -1
- package/dist/assets/ExpenseAutomationPage-BDZ6aX0q-DC7_gDiI.js +0 -2323
- package/dist/assets/ExpenseAutomationRoutes-N5IH8NJS.js +0 -20
- package/dist/assets/FeaturePreviewScreen-CLKJ2QAB.js +0 -1
- package/dist/assets/GlobalReviewListPage-DmrnXFgW-B57SMtSt.js +0 -291
- package/dist/assets/InsightsCardStack-Dbpzjgf4-CmY1A9uH.js +0 -79
- package/dist/assets/InsightsSection-DgViiL7e-D07WWVHm.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-HZgqUkj4-BQdwtp6K.js +0 -65
- package/dist/assets/InvitePeoplePage-C7DlxHsy-Ch_cCeBl.js +0 -12
- package/dist/assets/InvoiceUploadSection-DdIQCBkC-B4QsOjKN.js +0 -140
- package/dist/assets/LabeledAddressValueField-D3_DsNPu-DVmbiKLN.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-DdHmj0q2-BmQSyhgm.js +0 -16
- package/dist/assets/LabeledDocumentField-CFtFroDl-BAzH2vry.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-CFsuVVp3-Cllg2-kq.js +0 -59
- package/dist/assets/LabeledText-CZMUFsPf-BzxAzPVQ.js +0 -42
- package/dist/assets/MagicLinkACHDetailsPage-CcaWGIEm-3uajWvNb.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-6V37rCS5-Dxqj-iaP.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-BKWBDCxr-BHR9xOJ3.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-D9jNjUlX.js +0 -12
- package/dist/assets/MagicLinkSuccessPage-L5UJIvTe-BW7N1yCO.js +0 -31
- package/dist/assets/MailingDetailsSection-CRsQVOYi-xwOtQnim.js +0 -21
- package/dist/assets/MobileAppDrawer-D_OmB8VL.js +0 -1
- package/dist/assets/MyPendingActivationChargeCardListPage-CluWS3nS-DHrdaNvb.js +0 -6
- package/dist/assets/NavBarWithPicker-ClP6LCUF-D7FqbQNc.js +0 -30
- package/dist/assets/NavigationDots-Cu9LZj7T-BoVhghfD.js +0 -15
- package/dist/assets/NoDataChart-DcMRzXHU-DbjmTgYu.js +0 -26
- package/dist/assets/NotFoundScreen-DykxXNVn.js +0 -1
- package/dist/assets/NotificationRoutes-C-lRR8pY.js +0 -1
- package/dist/assets/NotificationsListConfig-CO5uOSs7-aAnj3j2i.js +0 -1
- package/dist/assets/NotificationsPage-BH6B4Q8b-D1IQhl37.js +0 -685
- package/dist/assets/OpExByVendorPage-EjyJRLhn-BhVe3s3b.js +0 -100
- package/dist/assets/PandLWithForecastPage-UpDz4Qqu-BN-vVvpP.js +0 -107
- package/dist/assets/PandLWithForecastRoutes-zzKekdOK.js +0 -1
- package/dist/assets/PeoplePage-D2N1XP-O-caSWGUZc.js +0 -720
- package/dist/assets/PeopleRoutes-CsdzM7DQ.js +0 -22
- package/dist/assets/PerformanceRoutes-DoL3UdHs.js +0 -1
- package/dist/assets/ReferralListScreen-CmCz8zc8.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-Cei43fBO.js +0 -1
- package/dist/assets/ReimbursementDetailPage-CuuOsKPv-BmGXaLa_.js +0 -314
- package/dist/assets/ReimbursementRoutes-CtyvtqmD.js +0 -13
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-BXO46shT-BXeQO4_5.js +0 -1
- package/dist/assets/ReloadCard-BKHKE8Pu-BkEOOlFz.js +0 -26
- package/dist/assets/ReportTableViewSelector-gYxUii1M-CxYX420D.js +0 -150
- package/dist/assets/ReportsPage-D7rEPLAa-CTGwy7xH.js +0 -121
- package/dist/assets/ReportsRoutes-DzvU0X2a.js +0 -1
- package/dist/assets/ReviewDetailsPage-B9SMV_va-DpCKxVZs.js +0 -290
- package/dist/assets/RewardsRoutes-vGh4ydPL.js +0 -1
- package/dist/assets/RoleWithToolTip-D9DCHaph-BK_HFdm8.js +0 -22
- package/dist/assets/ScheduleSequenceTable-BBbLa0gA-BpQ_H6dR.js +0 -324
- package/dist/assets/ScreenRoutes-Ddt_3qWB.js +0 -2
- package/dist/assets/SignIn-6YH_riJW-CoJmoytJ.js +0 -491
- package/dist/assets/SignInScreen-C81bBqwd.js +0 -1
- package/dist/assets/SignOutScreen-CEuaozcz.js +0 -9
- package/dist/assets/SpendManagementListViewPage-D_RrkezV-Gg_jrdXn.js +0 -134
- package/dist/assets/SpendManagementPerTabPage-BnugLA94-ISau-F_A.js +0 -754
- package/dist/assets/SpendManagementSection-DCk1isQq-DqP3iWuL.js +0 -375
- package/dist/assets/StatementItem-BWKA6BsE-B8aggs_N.js +0 -31
- package/dist/assets/StatementsPage-C5KuiVH4-BGiHKDOi.js +0 -58
- package/dist/assets/SuccessAnimation-CcFXT4sg-BETTrulo.js +0 -13
- package/dist/assets/SummaryCard-DgPg2oPm-DQSV3AJ_.js +0 -1
- package/dist/assets/TaskListScreen-D_rI0d2T.js +0 -9
- package/dist/assets/TaskManagementPage-Dyy-A0ij-BRtOKHgc.js +0 -1063
- package/dist/assets/TaskRoutes-CcAxScvl.js +0 -9
- package/dist/assets/TimeRangeSwitcher-PcHPZNOq-Bhy6ebhC.js +0 -64
- package/dist/assets/TimeframeSwitcher-XZjkUS_W-L_xk8ffg.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-KxCdrFMS-aH0QwP3R.js +0 -31
- package/dist/assets/TransactionDetailPage-D0_Tjv5D-BzMxrc83.js +0 -903
- package/dist/assets/TransactionDetailRoutes-CKp9VtFU.js +0 -1
- package/dist/assets/TransactionList-DoYieHoy-Dq8Ds1Cb.js +0 -153
- package/dist/assets/TransactionListPage-Bfx0PW2V-Bv5CoGoz.js +0 -35
- package/dist/assets/TreasuryOverviewPage-D4LuhPMd-CAEUMavm.js +0 -708
- package/dist/assets/TreasuryRoutes-aZ6pdLcv.js +0 -45
- package/dist/assets/TreasuryStatementsPage-D4bGPC_n-BmKF81fd.js +0 -58
- package/dist/assets/TrendChart-BJLik8fK-B6jK66HA.js +0 -16
- package/dist/assets/TrendWithTransactions-R1FCSydB-BZtJh6Ko.js +0 -116
- package/dist/assets/UploadAdditionalDocumentOverlay-CJmvE3y6-B0vgA0Ji.js +0 -38
- package/dist/assets/Vendor2FAPopup-Bt_phaZI-DuVfk6Oy.js +0 -1
- package/dist/assets/VendorDetailPage-BixXt95H-CEzpHcoG.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-BmFZeCgu-DciG2YXd.js +0 -1
- package/dist/assets/VendorFirstReviewPage-DZ00XYRi-COzJ3EOL.js +0 -730
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BCafZBL5-De6VzWbh.js +0 -1
- package/dist/assets/VerifyDevice-DFug_o82-D9msA2pt.js +0 -112
- package/dist/assets/VideoPopup-B03SM83j--LOH40s0.js +0 -31
- package/dist/assets/WiseConfirmationScreen-D_LadT7o.js +0 -12
- package/dist/assets/ZeniAccountDetailPage-BJQvxY7D-DuzKrnCG.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-CvwGdUPT-Bay6wmzi.js +0 -441
- package/dist/assets/ZeniAccountNavBarPieces-OGXEdZmI-DsgZBmco.js +0 -14
- package/dist/assets/ZeniAccountRoutes-DBnPGXKs.js +0 -58
- package/dist/assets/ZeniAccountStatementScreen-Br16O1Ed.js +0 -9
- package/dist/assets/ZeniTransferAmountSlider-BGK6jY7c-BE0jJw55.js +0 -63
- package/dist/assets/common-DspMM85g-CC6Rl9Du.js +0 -1
- package/dist/assets/commonDimensions-RZ10geET-CKOh47Tk.js +0 -1
- package/dist/assets/detailCommon-CxEOrtjx-Ct263sBr.js +0 -38
- package/dist/assets/downloadPdf-BpxrRqLr-DZAS6b5B.js +0 -1
- package/dist/assets/epic-DybEFF0H.js +0 -2
- package/dist/assets/getLocaleForTenant-CjEkOXZy.js +0 -1
- package/dist/assets/index-CCO5Gdps.js +0 -1
- package/dist/assets/index-iatqQdID.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-BJRnX8Ir-U3ElZRzN.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-CQvnRjWo-CdPsLyjM.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CY0Vs8kK-DzlhNi2D.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cytg0KxN-BBQ4MiQI.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-3KVmTdIZ-DB9phXRk.js +0 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-DlyoL7DQ.js +0 -4
- package/dist/assets/react-C8m8Qc1h.js +0 -37
- package/dist/assets/toCOABalancesWithID-DzAIFjHl-Dd4AXSDY.js +0 -1
- package/dist/assets/toChartData-BurvmO_S-Dcja8_o1.js +0 -1
- package/dist/assets/useInitialThreadRequest-B_AZH90H.js +0 -1
- package/dist/assets/withTransactionSidePanel-CV9mcG0R.js +0 -8
- package/dist/assets/zeni-epic-state-B_a_iTrR.js +0 -122
|
@@ -1,865 +0,0 @@
|
|
|
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-DDbdy58V.js";import{a as w,b as Tt}from"./sentry-DXG8OAzW.js";import{n}from"./mui-CVWe5m7x.js";import{_ as Po}from"./liveblocks-CxtxQte5.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-B_a_iTrR.js";import In from"./InvoiceUploadSection-DdIQCBkC-B4QsOjKN.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-BnUMrxSH.js";import{S as zo}from"./CurrencySelectField-D_D8AUqS-BZdJIXWt.js";import{u as Bo}from"./plaid-CiVnbkxs.js";import{e as Mo}from"./BankAccountSection-oL-aN0I_-Dgtd5LW7.js";import{W as Fo,A as No}from"./BankAccountWarningSection-CtRFcHTv-D_XRICo4.js";import{o as Eo}from"./radio-default-CiSgisfh-dW1yKl4Q.js";import"./pdf-rNAmIEF5.js";import"./core-CSCSHf4h.js";import"./lottie-BQDwpIDJ.js";import"./dnd-COr1F31f.js";import"./analytics-DeMdmyL7.js";import"./recharts-C5pBg015.js";import"./utils-CEFC9M68.js";import"./AttachmentView-ENg9Osic-P9NYY_0P.js";import"./uploadReceipts-Dge0cNF1-Bk3l52rk.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};
|