@zeniai/web-app-ui 4.14.36-qa → 4.14.38-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-fOu5grd7-BgitUCnK.js → ACHDetailsPage-BShpKoIj-D1Wy32uO.js} +6 -6
- package/dist/assets/{AIPerformancePage-Da3gFo8A-B6fd9yMu.js → AIPerformancePage-CFErwUsE-DcUypqs6.js} +21 -21
- package/dist/assets/AccountInfoPage-B8upbXj9-Cm42EUIq.js +18 -0
- package/dist/assets/AccountInfoPageContent-CKpeDot5-CwoUlvIm.js +149 -0
- package/dist/assets/{AccountLockedInfoModal-BJjCuLHa-Dwc4Twfa.js → AccountLockedInfoModal-c30P9O_3-DzDiXoV7.js} +6 -6
- package/dist/assets/{AccountReconDetailsDrawerPage-CVjH1p0d-B1ewqXBW.js → AccountReconDetailsDrawerPage-CO9BYPWm-CTb98mzK.js} +16 -16
- package/dist/assets/AccountRow-BrW_eEjE-Cmf0Jids.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-D7xvgmOH-B_Z0IcIc.js → AccountsPromoCardStack-De2yNNuZ-XXlQf85I.js} +14 -14
- package/dist/assets/AddAddressForCardDrawer-riOPLnxb-DAb8sz-Z.js +6 -0
- package/dist/assets/{AddToWalletPage-zJy9QCjx-CAgD66cB.js → AddToWalletPage-CsOmzC7v-S49ZGsCa.js} +13 -13
- package/dist/assets/AddressRoutes-CO2FKDgK.js +1 -0
- package/dist/assets/AddressScreen-DsuZFaVf.js +9 -0
- package/dist/assets/{AgingReportsPage-wAvQb1d8-bRB2pbCU.js → AgingReportsPage-D9I9afnB-Df3hrLUY.js} +8 -8
- package/dist/assets/AiCfoScreen-D5N0hxeG.js +11 -0
- package/dist/assets/{AllUserItems-DEv_CXOA-D8XKRK3i.js → AllUserItems-Dq7NcP-o-Da1Zo4z6.js} +11 -11
- package/dist/assets/ApAgingDetailPage-Z5JgfH-e-CEuDNd6O.js +46 -0
- package/dist/assets/{AppBasePage-DMlomvFS-CQMcvMHZ.js → AppBasePage-B5sDynhi-CeUmBhIQ.js} +10 -10
- package/dist/assets/AppDrawerContent-D9Q8ir0T-DZmwUW8c.js +92 -0
- package/dist/assets/ApprovalRulesSettingsPage-DVGvJsQG-yl1UuAvx.js +47 -0
- package/dist/assets/{ArAgingChart-m-Xp3HAW-CnkoHC-y.js → ArAgingChart-Tcu0Lja_-BWNKgMZE.js} +7 -7
- package/dist/assets/ArAgingDetailPage-B5vqkc3v-B1AqC5xt.js +46 -0
- package/dist/assets/{AttachmentView-DB_V1qT1-CUnw9dFs.js → AttachmentView-CiYfninr-DZhIwWMR.js} +6 -6
- package/dist/assets/BalancesInsightWithToolTip-tiQUQUbX-DMW3pWLJ.js +38 -0
- package/dist/assets/{BankAccountSection-BabhrBM7-CjKNHuqx.js → BankAccountSection-EZtscP2z-C2fUrA1M.js} +7 -7
- package/dist/assets/BankAccountWarningSection-DCfyIUlu-D_RVGDL2.js +51 -0
- package/dist/assets/BankConnectionsSettingsPage-CQWy9jvt-Brl3VmAQ.js +425 -0
- package/dist/assets/BillDetailPage-pt1k5AQf-C_HrCJfS.js +266 -0
- package/dist/assets/BillPayApprovalRoutes-5Y0msu-c.js +1 -0
- package/dist/assets/BillPayApprovalRuleDetailPage-Drh7Bhi8-EZrQsXba.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-9pxkgFAT-C0fukcC-.js → BillPayApprovalRulesPage-Cmyo59xB-D7U9ywcy.js} +12 -12
- package/dist/assets/{BillPayPromoPage-AGffhbY3-CtBTCqHG.js → BillPayPromoPage-Dgpz2TLG-BwKkDBie.js} +8 -8
- package/dist/assets/{BillPayRoutes-CLxgVQoZ.js → BillPayRoutes-aVWMd64J.js} +19 -19
- package/dist/assets/BillPaySetUpPage-B6Pd_eBf-DFM86E0U.js +42 -0
- package/dist/assets/{BillingSettingsPage-CQ117tT9-BttuaXcF.js → BillingSettingsPage-CYsvBrFV-B9NfPSZ9.js} +10 -10
- package/dist/assets/{BillsBulkReviewDrawerPage-DRkGQQAe-DERm9Zoh.js → BillsBulkReviewDrawerPage-DNnAmqWz-C01NVO_d.js} +1 -1
- package/dist/assets/{BoxItem-DRwx0M5a-CDlEJbUh.js → BoxItem-B06DK4G--C4opawya.js} +3 -3
- package/dist/assets/BusinessVerificationPage-Dgk5gyMv-BrQSkaHR.js +138 -0
- package/dist/assets/BusinessVerificationPageScreen-D9PxWQrU.js +9 -0
- package/dist/assets/BusyIndication-Cd67eHX6-C7aB5h-1.js +9 -0
- package/dist/assets/{CardNumberSubText-DqtLT1w5-3-jd_gkY.js → CardNumberSubText-CcH9jUoZ-HppogTjx.js} +5 -5
- package/dist/assets/{CashbackDetailPage-ChdQcvkC-ICsGmTUH.js → CashbackDetailPage-5eysaHGf-CZA31npt.js} +28 -28
- package/dist/assets/{ChargeCardDetailPage-DFOKlPNG-DAT7wsUl.js → ChargeCardDetailPage-Diwf-gwZ-BccKvsWr.js} +40 -40
- package/dist/assets/{ChargeCardListPage-DhLUsUhd-Cb0G0I2o.js → ChargeCardListPage-C-RTGkKK-Cc1az4M9.js} +23 -23
- package/dist/assets/ChargeCardListTable-B-bNbtZQ-BuEumynS.js +711 -0
- package/dist/assets/{ChargeCardPaymentHistoryPage-CbGR18s--D1FALKZp.js → ChargeCardPaymentHistoryPage-Cu-zT5tO-CNy0B9A3.js} +13 -13
- package/dist/assets/ChargeCardPromoPage-Cz3rNFwM-CdxjjcEa.js +222 -0
- package/dist/assets/{ChargeCardRoutes-B2VyUVyE.js → ChargeCardRoutes-CKV_cGg2.js} +13 -13
- package/dist/assets/{ChargeCardSetupPage-ITi25kUD-DQrLuHzm.js → ChargeCardSetupPage-BcTB9Yy5-BJuaiwYA.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CTJc1BCc-B3iOfWLi.js → ChargeCardStatementsPage-B_ERvgmB-W5ryAUPk.js} +3 -3
- package/dist/assets/CheckDepositDrawerPage-D7_usOVn-DA-Kombi.js +206 -0
- package/dist/assets/CollapsableReportTable-h0vIfI8o-Q6XPsw6M.js +2982 -0
- package/dist/assets/{CompanyOfficerDetailsSection-BaPhFsLx-DHUewusV.js → CompanyOfficerDetailsSection-CWADX4kZ-DANlup8L.js} +96 -96
- package/dist/assets/CompanyPassportCard-DF9LFrFD-DPvP8c2P.js +42 -0
- package/dist/assets/{CompanyPassportPage-BQ68t7oK-BgIAIBvG.js → CompanyPassportPage-BtAopyLq-CG1Jq4C9.js} +24 -24
- package/dist/assets/CompanyPassportScreen-Dl29U7F0.js +1 -0
- package/dist/assets/CompleteProfile-CsbsHQ0p-DmLd2177.js +52 -0
- package/dist/assets/ConfettiBurst-duD341Gp-CKS6HfNq.js +1 -0
- package/dist/assets/ConnectionAuthScreen-CtmFWvaS.js +11 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-2qMgM4hb.js → ConstrainedInnerElement-hv51KpGg-CKGSsSPo.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BIfOA5Nr-DmMOi9Py.js → CreateOrEditVendorPage-C2xU6c51-Cx-c8OBN.js} +15 -15
- package/dist/assets/{CreditCardPaymentDrawerPage-CCpS-31h-D2E09eId.js → CreditCardPaymentDrawerPage-CeagMaCu-CazU8VPX.js} +21 -21
- package/dist/assets/CurrencySelectField-B8EoF2aF-DHzUxLL4.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-6VlMI4oY-C6UkeafC.js → CustomerOnboardingActivationPage-CIeR2XvU-CMOVbNs9.js} +6 -6
- package/dist/assets/CustomerOnboardingAuthScreen-DtvN_x2S.js +1 -0
- package/dist/assets/CustomerOnboardingContainerPage-DVL4s-eV-uJRgyQW8.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BzbZb27J-BjFDDxCU.js → CustomerOnboardingDetailPageSkeleton-kUbwh2r2-BjHJq9e_.js} +17 -17
- package/dist/assets/CustomerOnboardingNoStepsPage-Br0jy7Pu-xbtVpPeD.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-DkW66A-p-CqCCkCYq.js → CustomerOnboardingPage-Dm2Si769-CuOP2t9G.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-Ba0yotpP-B65VLjH4.js → CustomerOnboardingProductSuitePage-Cz81Q5jC-CBFgnoEY.js} +10 -10
- package/dist/assets/{CustomerOnboardingRoutes-BbuQETSm.js → CustomerOnboardingRoutes-C_QLwzau.js} +7 -7
- package/dist/assets/{Dashboard-bX3cWkmP-D2iKKw2J.js → Dashboard-DReG_aaf-B9cmSG7e.js} +45 -45
- package/dist/assets/{DashboardReportPage-DuZ4d4CE-Cp1XRSMC.js → DashboardReportPage-BXSlwsR7-CjT08Tnm.js} +42 -42
- package/dist/assets/DashboardRoutes-Cr_y84hZ.js +21 -0
- package/dist/assets/{DashboardSidebarBackgroundAnimation-UV2CZToG-BePjXuRd.js → DashboardSidebarBackgroundAnimation-B3dtVAe2-DcsdDEM2.js} +1 -1
- package/dist/assets/{DefaultTenantHome-DAGhRU2p.js → DefaultTenantHome-Bp9gU4vX.js} +1 -1
- package/dist/assets/DepositAccTransactionItem-YuSXjbLh-DkrFIYaS.js +76 -0
- package/dist/assets/DepositAccTransactionListPage-C-FAvZwD-CLMW6N19.js +66 -0
- package/dist/assets/DomesticWireDetailScreen-CV-2twy7.js +18 -0
- package/dist/assets/DomesticWireDetailsPage-BaiSpc0N-BjZ307kD.js +21 -0
- package/dist/assets/DownloadOverlay-BpRKCn-0-Ceuu4G9V.js +439 -0
- package/dist/assets/{DrawerPage-CaG-xx5d-DCOdzFu5.js → DrawerPage-DQ3Xuekx-osFrzw_b.js} +14 -14
- package/dist/assets/DrawerScreen-0WDRSJz6.js +1 -0
- package/dist/assets/EditPeoplePage-8DalSMWH-CybAz5BL.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-CC2BjMkR-UcYvbITo.js +865 -0
- package/dist/assets/EntityDetailPage-fmWuxHTZ-zOCr7HwT.js +18 -0
- package/dist/assets/EntityDetailRoutes-r6uNQDsF.js +1 -0
- package/dist/assets/{EntitySummarySection-LEA5m6mN-COsxmiXN.js → EntitySummarySection-vsEMiXYh-xFy88yRd.js} +26 -26
- package/dist/assets/{ExpenseAutomationOverviewPage-Dmhn7gfp-DRKfvdpQ.js → ExpenseAutomationOverviewPage-B3HPfIsK-BoAXmFoS.js} +48 -48
- package/dist/assets/ExpenseAutomationPage-4LJefgNh-n1--5-UE.js +3628 -0
- package/dist/assets/ExpenseAutomationRoutes-Dd80KoVV.js +20 -0
- package/dist/assets/{ExpressPayPage-C-nqret2-KetoqTaI.js → ExpressPayPage-BH7oCW_F-DgICn4el.js} +11 -11
- package/dist/assets/{FeaturePreviewPage-BHjUZ7s6-CDfaoOXm.js → FeaturePreviewPage-DSv61BhF-BsdnfTlO.js} +2 -2
- package/dist/assets/FeaturePreviewScreen-D2Pa-R10.js +1 -0
- package/dist/assets/{FollowStepsSection-0eFMS0c5-BaucUfRt.js → FollowStepsSection-Bgy9MpO4-CvIWpdyW.js} +9 -9
- package/dist/assets/GlobalReviewListPage-VRq_gimm-BpVLghA7.js +291 -0
- package/dist/assets/{InformationCardStack-C7XJCUlh-DjdOTgGS.js → InformationCardStack-rx0fypl3-OYwqii2C.js} +4 -4
- package/dist/assets/InsightsCardStack-uJWMkIZL-BDZTXUwm.js +79 -0
- package/dist/assets/InsightsSection-ByFf2oGn-ChvKOP1F.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-BD5jqAv8-jCqAB96Y.js → IntegrationsSettingsPage-Cj01Nub6-lRHeOJiB.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-BftrE612-C1oqAYKw.js → InternationalWireSwiftDetailsPage-C2PM97sv-BLs5mpsl.js} +13 -13
- package/dist/assets/InternationalWireVerificationPage-Cr3sDrT--Dj5HT769.js +65 -0
- package/dist/assets/{InviteFormPage-E2igwKEh-BfamEOA0.js → InviteFormPage-dsMpScvq-pwPoaIw-.js} +10 -10
- package/dist/assets/{InvitePageListView-Cuq9dlgu-BswYJOcw.js → InvitePageListView-e7vGSbFa-BfSD0kcH.js} +72 -72
- package/dist/assets/InvitePeoplePage-BT_YVCP4-CQRb2c-r.js +12 -0
- package/dist/assets/InvoiceUploadSection-Dg1-uunA-1cshMTVc.js +140 -0
- package/dist/assets/{IssueChargeCardPage-CK6fnO24-CZaBXPmq.js → IssueChargeCardPage-CyF9wrb0-CWwHqex_.js} +22 -22
- package/dist/assets/{LabeledAddressValue-Ma1WURjK-SOyeFnDb.js → LabeledAddressValue-3l0Bv00--Bw_81ZJz.js} +1 -1
- package/dist/assets/LabeledAddressValueField-F9kvUR_r-9ELTRqNI.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-BgC8y0D6-BlS4qFJC.js +16 -0
- package/dist/assets/{LabeledCountryMultiSelectField-sj8p7Rne-BB5IjdKT.js → LabeledCountryMultiSelectField-3qI_4noU-UcVNXOp1.js} +4 -4
- package/dist/assets/{LabeledCreatableSingleSelectField-DUTQh416-C_C7TgJg.js → LabeledCreatableSingleSelectField-BV3h9bh7-BCEINAy7.js} +10 -10
- package/dist/assets/LabeledDocumentField-rriEcsdr-CcDZw3QZ.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-3-KekP79-BFouZsyb.js → LabeledDropDownFormattedTextField-DoVSg3nZ-82mPtDTT.js} +5 -5
- package/dist/assets/{LabeledEmailInputField-BRJyFvVd-CLFwXbdl.js → LabeledEmailInputField-CKWZEkTs-C9DTkL1y.js} +8 -8
- package/dist/assets/{LabeledNameField--saAep-_-CReVVQpK.js → LabeledNameField-yaSRe5Vt-cnDt7eal.js} +5 -5
- package/dist/assets/{LabeledSingleSelectField-Ul4tlTiO-B5-cTLoa.js → LabeledSingleSelectField-D5QUlcEP-DOA8WTdI.js} +7 -7
- package/dist/assets/LabeledText-DGZ7hxY4-BBOC0Eln.js +42 -0
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-Dfj0gvkd.js → LabeledUserSingleSelectWithSubtitlesField-DI07Eicg-NPjB_w_o.js} +15 -15
- package/dist/assets/{LabeledZeniRolesDropDownField-kWC0ShEy-BPt5mqTD.js → LabeledZeniRolesDropDownField-jIrTovp--C7mgztQg.js} +27 -27
- package/dist/assets/{LinkJETransactionPage-WufhDGDQ-CzSZY5Ji.js → LinkJETransactionPage-Bvbqpltz-BZhW34oI.js} +8 -8
- package/dist/assets/{LockCardPage-BBIVLYVD-CLo11134.js → LockCardPage-DyEQBJYx-DksW1-ZG.js} +23 -23
- package/dist/assets/{LowBalancePopup-ScEqPY9J-wCMhmKTa.js → LowBalancePopup-C2vHKMNF-CMEceag2.js} +7 -7
- package/dist/assets/MagicLinkACHDetailsPage-lAAwAtH7-D8E0BCBV.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-cv823ASo-Br4bjkHP.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-C_SjsgC9-Dt-hi6Za.js +1 -0
- package/dist/assets/{MagicLinkRoutes-DGEyZyp5.js → MagicLinkRoutes-DAnRUF47.js} +10 -10
- package/dist/assets/MagicLinkSignInScreen-BRdR8FPq.js +12 -0
- package/dist/assets/MagicLinkSuccessPage-B1LBYM2F-DRIhjweE.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-ZnbKPIvJ-C28UB4ql.js → MagicLinkTitleSection-ClAnBBt9-BWJjfwMs.js} +2 -2
- package/dist/assets/{MailingDetailsSection-DZT7JPlI-C38hqmub.js → MailingDetailsSection-9_XLl4bT-Bq5v10Od.js} +1 -1
- package/dist/assets/MobileAppDrawer-DXy0Oi_h.js +1 -0
- package/dist/assets/{MoreMenuButton-CJue6xR9-DaOmUQCK.js → MoreMenuButton-Ct8k8Oax-C0IXgNiJ.js} +29 -29
- package/dist/assets/{MyBankConnectionsSettingsPage-aQDVaEG1-BQj6U5VD.js → MyBankConnectionsSettingsPage-CBNYcuP4-CSPIvvUE.js} +8 -8
- package/dist/assets/{MyPendingActivationChargeCardListPage-BJrk56oA-a4lk-FRm.js → MyPendingActivationChargeCardListPage-n71n40uQ-DnLQhl3T.js} +1 -1
- package/dist/assets/MyProfileSettingsPage-BUMIjZYc-CAlzma3h.js +85 -0
- package/dist/assets/NavBarWithPicker-CbjFNysh-Ck578WIs.js +30 -0
- package/dist/assets/{NavigationArrow-D26UG3p--CCqiziIA.js → NavigationArrow-Dpc7u6y4-CiTKhYeI.js} +2 -2
- package/dist/assets/NavigationDots-DCpslVnm-D-4SKVAz.js +15 -0
- package/dist/assets/{NewGlobalMerchantPage-vOn2O6B9-BmOnDaTo.js → NewGlobalMerchantPage-B10sY6Q_-Cu6PKFa1.js} +12 -12
- package/dist/assets/{NoDataChart-CgT19fV7-BnUaWo2A.js → NoDataChart-9-bhq204-BNHp8Nld.js} +3 -3
- package/dist/assets/{NoDataTable-CPjJmo4s-BDfqEXQj.js → NoDataTable-C6Q2Anpz-BqTI2GFx.js} +1 -1
- package/dist/assets/{NotFoundPage-CP2i3FTm-DrcRl_rx.js → NotFoundPage-4mPhXD5--pWqZwF3K.js} +5 -5
- package/dist/assets/NotFoundScreen-MU1vvTl3.js +1 -0
- package/dist/assets/NotificationRoutes-CiTIiIjp.js +1 -0
- package/dist/assets/{NotificationSettingsPage-CT9Dnb03-Dm7KyS7f.js → NotificationSettingsPage-BTxCoB_b-1ycVlHAN.js} +30 -30
- package/dist/assets/NotificationsListConfig-CylnViXd-DEcj9I_Q.js +1 -0
- package/dist/assets/NotificationsPage-D41h0mS6-lOcsglza.js +685 -0
- package/dist/assets/OpExByVendorPage-BV_uJSCh-ClxLsbjb.js +100 -0
- package/dist/assets/OverlayContainerPage-CkUYOhlh-C1amAlX0.js +11 -0
- package/dist/assets/PandLWithForecastPage-Cj3UWjG4-C0webWAA.js +123 -0
- package/dist/assets/PandLWithForecastRoutes-t6sqNQ0M.js +1 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-JPO-rPAd-Dmaxec0g.js → PaymentAccountSetupBillingAddressSection-BWFl695q-DCuXfW77.js} +11 -11
- package/dist/assets/PeoplePage-DcGqWtAP-kL10xLdE.js +772 -0
- package/dist/assets/PeopleRoutes-DvMa0FHX.js +22 -0
- package/dist/assets/PerformanceRoutes-C97G2NlX.js +1 -0
- package/dist/assets/{Preview-B_UHWYM5.js → Preview-Bd0e5eLk.js} +1 -1
- package/dist/assets/{ProductsCarousel-7R3cvGiS-DmQ2H6G4.js → ProductsCarousel-C9JoJQeH-y7_emSya.js} +8 -8
- package/dist/assets/{PromoBaseCards-DdCMZIc7-Df8cZl94.js → PromoBaseCards-mFk7SsOr-B_0Pg0f0.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-Ca36jKz2-DAMkmB7c.js → QBOConnectionDialog-CJsIrEZq-CgfqE4WV.js} +13 -13
- package/dist/assets/{QBOConnectionScreen-JiiEAGy2.js → QBOConnectionScreen-1Q56jIZw.js} +4 -22
- package/dist/assets/{QBOSetupSection-CzBfIVqR-CbTARgMf.js → QBOSetupSection-C_fqHza_-B72ZoKWs.js} +9 -9
- package/dist/assets/ReferralListScreen-DJHg0qdR.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-5hvNi1ri.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DUVSGQJ6-DvpCvtrE.js → ReimbursementApprovalRuleDetailPage-BMZnKpsk-C22qLIuK.js} +4 -4
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-CE15OHBL.js +1 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-B48x1gPM-DxxLWTnS.js → ReimbursementApprovalRulesPage-C2zNa8dT-D_08-i4Q.js} +30 -30
- package/dist/assets/ReimbursementDetailPage-B1o8ea57-pJYrfLLt.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-BKgsJieE-C2_bC473.js → ReimbursementPromoPage-Df5QmXzC-CKWnZWeo.js} +18 -18
- package/dist/assets/ReimbursementRoutes-RM0BTfix.js +13 -0
- package/dist/assets/{ReimbursementSetUpPage-B_c-ZgFT-BBt2uEqx.js → ReimbursementSetUpPage-D450RVsP-XThkQYrn.js} +6 -6
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DwgKrhlQ-Dpv01EXR.js +1 -0
- package/dist/assets/ReloadCard-D5cvzWxe-BiXLC8Nt.js +26 -0
- package/dist/assets/ReportTableViewSelector-Ig41fOPb-DWudlBCf.js +151 -0
- package/dist/assets/ReportsPage-CRAVAUTO-B8oVNLjt.js +269 -0
- package/dist/assets/ReportsRoutes-yGE_MThE.js +1 -0
- package/dist/assets/{RevenueChart-SvdhwBcE-DFVZ2SH4.js → RevenueChart-DtQu0KAn-8Nxk30mB.js} +18 -18
- package/dist/assets/ReviewDetailsPage-vui4TqeA-BHywFcJg.js +290 -0
- package/dist/assets/{ReviewOverlay-BoM41t8W-Tjo8TsbC.js → ReviewOverlay-CUnL7H-a-C2Hax1dX.js} +11 -11
- package/dist/assets/RewardsRoutes-BLdquuw-.js +1 -0
- package/dist/assets/RoleWithToolTip-x2rnvWn9-CndfBCzZ.js +22 -0
- package/dist/assets/ScheduleDetailsFixedAssetsPage-D_Cls2jC-DT2hV6fF.js +37 -0
- package/dist/assets/ScheduleDetailsPage-DmSLuM8g-BJX_WigV.js +37 -0
- package/dist/assets/ScheduleSequenceTable-js9_P_Lo-C0aHTQ-B.js +326 -0
- package/dist/assets/ScreenRoutes-Ckyy2m-9.js +2 -0
- package/dist/assets/{SetUpAccountSection-sfIB1h4i-OQRP6w_s.js → SetUpAccountSection-DYRWWXcL-BJMCbqBu.js} +23 -23
- package/dist/assets/{SettingsRoutes-_PBfx_CH.js → SettingsRoutes-HPPA3EWU.js} +7 -7
- package/dist/assets/{SetupPagesScreen-Bjv1_530.js → SetupPagesScreen-Cz2ybo_2.js} +6 -6
- package/dist/assets/SignIn-CUJkZb3S-Cj2EgQsz.js +491 -0
- package/dist/assets/SignInScreen-BSE9oghj.js +1 -0
- package/dist/assets/SignOutScreen-CDL-h93X.js +9 -0
- package/dist/assets/SpendManagementListViewPage-BieufnDb-Cqid6Xsk.js +134 -0
- package/dist/assets/SpendManagementPerTabPage-BmUp80QX-B1ZhgxKn.js +754 -0
- package/dist/assets/SpendManagementSection-DKZNTYXT-D04hpJmz.js +375 -0
- package/dist/assets/StatementItem-Dyt5Q0eR-jB2YMdu5.js +31 -0
- package/dist/assets/StatementsPage-CbtnJM5y-y3-8Ovdn.js +58 -0
- package/dist/assets/{StatusSwitcher-CaoFw0cf-BSUpAcCG.js → StatusSwitcher-BfQ9VbBH-C2uXiIL4.js} +4 -4
- package/dist/assets/{SubTabSwitcher-zrkVj1aP-kI_QH-yK.js → SubTabSwitcher-CzGiuhk3-C7cKUv_v.js} +9 -9
- package/dist/assets/SuccessAnimation-DA3343II-B6vDBJ0_.js +13 -0
- package/dist/assets/SummaryCard-D61xzK3a-CfR23TFg.js +1 -0
- package/dist/assets/{TaskDetailPage-044JwAvz-CIchaLt5.js → TaskDetailPage-CyZxZdJB-DrITidSC.js} +22 -22
- package/dist/assets/TaskListScreen-DwAEl1NC.js +9 -0
- package/dist/assets/TaskManagementPage-ucVAdv7x-Msj3UnnC.js +1067 -0
- package/dist/assets/TaskRoutes-Bz1uRNCx.js +9 -0
- package/dist/assets/TimeRangeSwitcher-C3jXm39I-fOK0S_yE.js +64 -0
- package/dist/assets/TimeframeSwitcher-CcYg-YQJ-DfqszobX.js +31 -0
- package/dist/assets/TimeframeSwitcherWithToggle-w4YJno-p-mLBmOb3v.js +53 -0
- package/dist/assets/{TopExCard-BUjnGDUB-HxwM-fNF.js → TopExCard-D2PRxvFc-3B8t-gu0.js} +6 -6
- package/dist/assets/{TopExDetailPage-CNDkfc3u-IVplKWSE.js → TopExDetailPage-C0uHdU7N-CImodBfZ.js} +11 -11
- package/dist/assets/{TransactionActivityLogPage-kSQqJVpX-Dthtq0jn.js → TransactionActivityLogPage-CqYb19tY-MGx1R4Ww.js} +9 -9
- package/dist/assets/TransactionDetailPage-D-NR_yZG-CxUKWZX4.js +921 -0
- package/dist/assets/TransactionDetailRoutes-CpDSsFwB.js +1 -0
- package/dist/assets/TransactionDetailScreen-DfuoY_gg.js +5 -0
- package/dist/assets/TransactionList-f6yB-byH-FETk5Iif.js +157 -0
- package/dist/assets/{TransactionListBig-Bx_Rm9ho-Du7QkIGC.js → TransactionListBig-BrDWayQS-BY28Hg37.js} +27 -27
- package/dist/assets/TransactionListPage-C-Z62y2d-DONuCLTJ.js +35 -0
- package/dist/assets/TransactionListRoutes-Bw5edFOJ.js +1 -0
- package/dist/assets/TransactionVendorDetailPage-CQQuAR6V-DBSEzxOy.js +80 -0
- package/dist/assets/{TransferDrawerPage-BayVa6po-u89zHtOp.js → TransferDrawerPage-DfFm-1-3-BhX0O4LO.js} +27 -27
- package/dist/assets/TreasuryOverviewPage-CKSanlUG-CXaeORdV.js +725 -0
- package/dist/assets/{TreasuryPromoPage-BCjz1EKX-9FM2wcwv.js → TreasuryPromoPage-Dyip3H10-C2tUOOp5.js} +14 -14
- package/dist/assets/TreasuryRoutes-j5E27301.js +45 -0
- package/dist/assets/TreasuryStatementsPage-mljf2Van-DcI9l-or.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-D3cV3a-8-ZsZIzn5I.js +58 -0
- package/dist/assets/TrendChart-fFlHCvNx-QKskVgw6.js +16 -0
- package/dist/assets/TrendWithTransactions-It4KDov3-DY_vu1lx.js +116 -0
- package/dist/assets/{UncategorizedAccountsMappingPage-TGKYpC5A-DrDVb8s-.js → UncategorizedAccountsMappingPage-BxBz2Ce0-BJNWUYth.js} +8 -8
- package/dist/assets/{UnitIntegrationPage-mt2IjA5X-B0h7UR57.js → UnitIntegrationPage-gVgsk2ji-D4-73jRv.js} +5 -5
- package/dist/assets/UploadAdditionalDocumentOverlay-C5m8jqup-BRodE0Ls.js +38 -0
- package/dist/assets/{Vendor2FAPopup-DAOf5cJD-GFzHEit0.js → Vendor2FAPopup-DRwBzOwn-DD_9hpy1.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-By2Ya2bv-Cwsi_OAL.js +1 -0
- package/dist/assets/VendorDetailPage-jci1LqX3-BHXhYJF0.js +257 -0
- package/dist/assets/VendorDomesticWireDetailsPage-uIDE-n5v-uvktM6eq.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-CRnO7Ubw-CSnvYMK9.js → VendorFiling1099EditablePage-8pYT3u-X-BDiOOpIL.js} +20 -20
- package/dist/assets/VendorFirstReviewPage-CafakxA1-DGimiBs4.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-HUtNyn9Z-C58PYE3l.js → VendorInternationalWireDetailsPage-DJeI-ZFW-Cgs5W7gM.js} +10 -10
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-Co-5nTam-xgR7Rh7n.js +1 -0
- package/dist/assets/{VendorsAccountsSection-D6Qa1zf9-CVqHH4cq.js → VendorsAccountsSection-YX2g8ETe-YNhvXO1d.js} +2 -2
- package/dist/assets/{VendorsRoutes-D3omEpvR.js → VendorsRoutes-n5RcX0Vf.js} +28 -28
- package/dist/assets/VerifyDevice-DeHW4GAi-ejYUh2le.js +112 -0
- package/dist/assets/{VideoPlayer-BRAgZThr-BbqnCIc-.js → VideoPlayer-DxIfGrPu-C3cW7OOT.js} +1 -1
- package/dist/assets/VideoPopup-CUP7ctgS-Cy6Bpggh.js +31 -0
- package/dist/assets/WiseConfirmationScreen-CJyMiRdY.js +12 -0
- package/dist/assets/ZeniAccountDetailPage-7NdkdSg3-trkVyM14.js +300 -0
- package/dist/assets/ZeniAccountListViewPage-B-cs_xnc-DkcNyo5a.js +443 -0
- package/dist/assets/ZeniAccountNavBarPieces-CjRip0v9-Bv00yUCA.js +33 -0
- package/dist/assets/{ZeniAccountPromoPage-BgYCHYLO-g5oLmJuT.js → ZeniAccountPromoPage-BikXtkeH-BWgu0hz6.js} +9 -9
- package/dist/assets/ZeniAccountRoutes-BdqNU648.js +58 -0
- package/dist/assets/{ZeniAccountSetupPage-CvnIMdcY-BSUOWmK4.js → ZeniAccountSetupPage-BRBsijVt-BBTbKTOF.js} +4 -4
- package/dist/assets/ZeniAccountStatementScreen-DVjRkXeL.js +9 -0
- package/dist/assets/{ZeniAvatar-CwHVUcMc-CqvMhhIi.js → ZeniAvatar-pjdoqfWE-DmYSRpHD.js} +3 -3
- package/dist/assets/{ZeniCopyright-BlLvlGZV-D_cpkbcT.js → ZeniCopyright-DDGvdmLF-CPeY3qcE.js} +1 -1
- package/dist/assets/{ZeniDatePicker-DCurorsW-D16AsniI.js → ZeniDatePicker-K3F-G3-0-pGSyeWuf.js} +6 -6
- package/dist/assets/ZeniTransferAmountSlider-Cdg0TlHk-B_jBC96s.js +63 -0
- package/dist/assets/{accountMappingHelper-DaPjToYl.js → accountMappingHelper-CMy_dzCB.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-DvLI4jaw.js → add-to-wallet-DgdBD8_G-DZDSR_90.js} +1 -1
- package/dist/assets/{analytics-BuacLKrs.js → analytics-Buyhprzd.js} +1 -1
- package/dist/assets/{analyticsHelper-CHcSxJdc.js → analyticsHelper-CTH_kB-0.js} +1 -1
- package/dist/assets/{analyticsHelper-CYr5V2MV-DP0yfEiC.js → analyticsHelper-D9xdJK4b-DkISjLhy.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-90lG1L3u.js → arrow-south-east-round-PEovUgvH-CxvC0Cnw.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CL7RFrAP.js → auto-transfer-rule-mbafm5D3-BXD0aAHO.js} +1 -1
- package/dist/assets/{avatar-Dz7aEm3d--QTMwhPr.js → avatar-Dz7aEm3d-tC3a4UX-.js} +1 -1
- package/dist/assets/bank-letter-BOcVjN6J-B3HKnrvN.js +1 -0
- package/dist/assets/{calculateSize-Bn1NnCzV-SxKA7C8w.js → calculateSize-zPet_z9g-UKcDxIjM.js} +1 -1
- package/dist/assets/{chartTypes-40RenddT-D0AbAyeZ.js → chartTypes-Dq3hUz_T-DlStt0to.js} +1 -1
- package/dist/assets/{clock-CJkylEKt-Cp3w47l8.js → clock-CJkylEKt-BFtrn8ev.js} +1 -1
- package/dist/assets/common-kiEGPQ33-BvLj55nP.js +1 -0
- package/dist/assets/commonDimensions-CGHIQ2To-BVJ-7SGP.js +1 -0
- package/dist/assets/{commonTypes-DsWS6Ccc-D27m4dJL.js → commonTypes-BAJPaPYg-qcmBeNCl.js} +1 -1
- package/dist/assets/{core-twTS7Cne.js → core-5sxMy3sZ.js} +3 -38
- package/dist/assets/{dash.all.min-BOiJW2p5.js → dash.all.min-CTYaOyx7.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-B0iGosVv.js → decodeURIComponentSafe-BXr_Lgnt.js} +1 -1
- package/dist/assets/{dnd-BWijMgNi.js → dnd-Cfx_ai1S.js} +3 -3
- package/dist/assets/{dollar-round-D18u7nlm-CiBCyYiG.js → dollar-round-D18u7nlm-BAPPb_YV.js} +1 -1
- package/dist/assets/downloadPdf-BI2Y41h2-C3b-r1N_.js +1 -0
- package/dist/assets/{empty-BuEMRnA-.js → empty-CDKH4CBD.js} +1 -1
- package/dist/assets/empty-DLdEFiEn.js +1 -0
- package/dist/assets/epic-Bn4m6PJ6.js +2 -0
- package/dist/assets/{filter-cZIFUNvj-CH_l3zIc.js → filter-cZIFUNvj-DR0oScp6.js} +1 -1
- package/dist/assets/getLocaleForTenant-BPL6tSgt.js +1 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-BCDDcFDZ.js → gift-box-Cmt9OgIZ-CLkhO8vB.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-DVAyGHzA.js → graphic-no-data-l-DU4J8fDt-BXfLioW6.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DlMg8P68.js → graphic-no-data-net-burn-l-CzmycA0m-DESi1ZUm.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-7TxvMz9v.js → handshake-BPg58FML-Cw8-rpU_.js} +1 -1
- package/dist/assets/{helper-BMiMbXMj-B-wSFTz-.js → helper-z5-P4a-y-DRvyDGbW.js} +2 -2
- package/dist/assets/{hyperlink-DQyCeXx2-DhYPEFJi.js → hyperlink-DQyCeXx2-DiF-LRfD.js} +1 -1
- package/dist/assets/index-B6cTzWKI.js +1 -0
- package/dist/assets/{index-k1doZNFg.js → index-BocbTmE1.js} +4430 -4492
- package/dist/assets/{empty-BAMh3RJk.js → index-Bsc8ZpcH.js} +1 -1
- package/dist/assets/{index-zkfIzc9c.js → index-DCFJ_6wy.js} +2 -8
- package/dist/assets/{index-Mx2SsGnu.js → index-XrFKA72B.js} +1 -1
- package/dist/assets/{index-DoiSNwZH.js → index-a2iFhnhM.js} +1 -1
- package/dist/assets/{lexical-CZE2Lq-0.js → lexical-BAlvZZhY.js} +1 -1
- package/dist/assets/{liveblocks-CM0QMS_I.js → liveblocks-BsQBjN-0.js} +17 -22
- package/dist/assets/{lottie-Bdr-9mLw.js → lottie-C2R6rGxS.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DrC2Zs2y-B2Wt05iy.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BkPRWtaj-CxIv2d9v.js → mapSectionWithAcOnlyToTreeNode-dsBogxKz-DAKgnUEj.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-DMDEaLzQ-lo7UbRO0.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-CW_wzI5T-BaeuL7EQ.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DvfKBCs5-Dl1ySEwF.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-CUYmne9-.js +1 -0
- package/dist/assets/{media-player-DTa5D54u.js → media-player-BX2lrCiw.js} +2 -2
- package/dist/assets/{money-2cg1MuG4-B6SZvN8P.js → money-2cg1MuG4-C1UnGCa2.js} +1 -1
- package/dist/assets/{mui-Bi07oTwe.js → mui-C_CXevf3.js} +3 -3
- package/dist/assets/{page-detail-CWX5S47F-y9rokQDc.js → page-detail-CWX5S47F-DCvximFz.js} +1 -1
- package/dist/assets/{page-summary-D7_VQHwN-pIoT3Pmw.js → page-summary-D7_VQHwN-BBMfUdRp.js} +1 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-Kk0Lc2Dj.js +3 -0
- package/dist/assets/{pathToGoBack-Md2zV7uG.js → pathToGoBack-D5dFRCuJ.js} +1 -1
- package/dist/assets/pdf-DyB_VHQx.js +13 -0
- package/dist/assets/{pdf-lib-CILJewzg.js → pdf-lib-BLLlynNv.js} +1 -1
- package/dist/assets/{plaid-Dw_qIY4R.js → plaid-Yyr3DBd8.js} +1 -1
- package/dist/assets/{pusher-DynBuu5N.js → pusher-CQAuuZH-.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-GKL562Zm.js → radio-default-CiSgisfh-HLL7c7Ix.js} +1 -1
- package/dist/assets/{react-Ar6ZOtfZ.js → react-B9pn5zl_.js} +2 -12
- package/dist/assets/{react-1mNX_DRd.js → react-BEZA9UfV.js} +2 -12
- package/dist/assets/{react-vzV2OwEE.js → react-BFykbpKw.js} +2 -12
- package/dist/assets/{react-CHxjXjfJ.js → react-BmJ9wc4M.js} +3 -13
- package/dist/assets/{react-Xs8hOk7X.js → react-CEO525cE.js} +2 -12
- package/dist/assets/{react-DiCJT7O0.js → react-COI-5ihT.js} +2 -12
- package/dist/assets/react-D7RjW9MW.js +19 -0
- package/dist/assets/{react-DvA2K4aW.js → react-YbLjyGgM.js} +2 -12
- package/dist/assets/{recharts-CS0s98U8.js → recharts-CTWfsY-L.js} +36 -36
- package/dist/assets/{routePaths-DiyiibEL.js → routePaths-_EQ7HBkZ.js} +1 -1
- package/dist/assets/{sentry-CytkDQe2.js → sentry-DINNQYpi.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-CuS9M_ww.js → shield-DOlUxcFf-DFaW8QSC.js} +1 -1
- package/dist/assets/{spend-limit-D6SyboD4-DuCQ_jaT.js → spend-limit-D6SyboD4-05QrBanM.js} +1 -1
- package/dist/assets/toCOABalancesWithID-P7keEtAg-CVzjqCh4.js +1 -0
- package/dist/assets/toChartData-BUf5HHim-BMyIU8Hn.js +1 -0
- package/dist/assets/{transaction-placeholder-CpOwZAMG-DuWev16q.js → transaction-placeholder-CpOwZAMG-kO6lyet9.js} +1 -1
- package/dist/assets/{undo-b_3XZ5CX-Cg47YjTI.js → undo-b_3XZ5CX-CAOnjxt9.js} +1 -1
- package/dist/assets/{unlock-BPWn2I5L-DplIQ8y4.js → unlock-BPWn2I5L-fA9hPtxv.js} +1 -1
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-BbiwxEOu.js +1 -0
- package/dist/assets/{uploadAttachment-BlLqRIXe-B6ElpyTj.js → uploadAttachment-DJA30WSD-Mme28mRP.js} +25 -25
- package/dist/assets/{uploadReceipts-Dge0cNF1-Co75nE7C.js → uploadReceipts-CqDftTRt-DnJMDyN6.js} +1 -1
- package/dist/assets/{url-DlqX0g3J.js → url-BnrMVJye.js} +1 -1
- package/dist/assets/{url-wSyZyUAL.js → url-dGBmezhj.js} +1 -1
- package/dist/assets/{useDeviceId-CW9B9UlH.js → useDeviceId-Dhw-GVYT.js} +1 -1
- package/dist/assets/useInitialThreadRequest-GWflkp6K.js +1 -0
- package/dist/assets/{useLongPress-GCK2COYQ-DxXBKjrG.js → useLongPress-GCK2COYQ-CI59nlOM.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-DHy4exHr.js → usp-line-BBd1wKwW-Bi23t2Q-.js} +1 -1
- package/dist/assets/{utils-CSjogEj5.js → utils-DmE88LS_.js} +15 -28
- package/dist/assets/withTransactionSidePanel-D4o5a7Hq.js +8 -0
- package/dist/assets/zeni-epic-state-a7Sj5mjO.js +14 -0
- package/dist/assets/{zeni-icon-only-C6-rv1y7.js → zeni-icon-only-COM3FcNM.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-o7hTXtgZ-NjcAzXFT.js +0 -18
- package/dist/assets/AccountInfoPageContent-DqErO8FH-BeoOImtE.js +0 -149
- package/dist/assets/AccountRow-CpftykFx-BJ3WZo2I.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-vecchYEf-lmlcPBf7.js +0 -6
- package/dist/assets/AddressRoutes-BeSQWOrw.js +0 -1
- package/dist/assets/AddressScreen-CE8x2lDp.js +0 -9
- package/dist/assets/AiCfoScreen-BszigZh8.js +0 -11
- package/dist/assets/ApAgingDetailPage-BOV1WFVF-Bn0q4RYM.js +0 -46
- package/dist/assets/AppDrawerContent-Dc2sHnR3-B11HecZn.js +0 -92
- package/dist/assets/ApprovalRulesSettingsPage-BnbPSy4U-CIEnHFVH.js +0 -47
- package/dist/assets/ArAgingDetailPage-b_NpDpWj-B3kCWqKT.js +0 -46
- package/dist/assets/BankAccountWarningSection-yT2UAd12-DDru0TbG.js +0 -51
- package/dist/assets/BankConnectionsSettingsPage-CbxXykMM-DSyYDFRR.js +0 -425
- package/dist/assets/BillDetailPage-7TMkWo3V-Bx_V8TNq.js +0 -266
- package/dist/assets/BillPayApprovalRoutes-D-Lr-knt.js +0 -1
- package/dist/assets/BillPayApprovalRuleDetailPage-COyDRpaF-Cw59nmg3.js +0 -27
- package/dist/assets/BillPaySetUpPage-Cs5rkWBu-uFttJJzg.js +0 -42
- package/dist/assets/BusinessVerificationPage-1h0z3N9u-RMOZ1n1-.js +0 -138
- package/dist/assets/BusinessVerificationPageScreen-CsiX3KGh.js +0 -9
- package/dist/assets/BusyIndication-DizZe0Gu-1EWobmeT.js +0 -9
- package/dist/assets/ChargeCardListTable-DE72YU_i-CnPve3es.js +0 -711
- package/dist/assets/ChargeCardPromoPage-CPpNh89o-CvxWAl-t.js +0 -222
- package/dist/assets/CheckDepositDrawerPage-BrzeSj-3-qP1HtOIM.js +0 -206
- package/dist/assets/CollapsableReportTable-CDEe9s_E-BVFWKHUA.js +0 -2844
- package/dist/assets/CompanyPassportCard-B9ymV6Az-CvyAeev5.js +0 -42
- package/dist/assets/CompanyPassportScreen-UiOT42U6.js +0 -1
- package/dist/assets/CompleteProfile-C5n9b8gQ-BqfKsPPd.js +0 -52
- package/dist/assets/ConfettiBurst-BizTW0hz-BTsH0Adk.js +0 -1
- package/dist/assets/ConnectionAuthScreen-hHSL4PoV.js +0 -11
- package/dist/assets/CurrencySelectField-KvKyemY6-Bi0fspzF.js +0 -139
- package/dist/assets/CustomerOnboardingAuthScreen-DMW5eYly.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-p4P1_J3p.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-CWF_00EM-BKydcoC-.js +0 -66
- package/dist/assets/DashboardRoutes-CXkTMDXA.js +0 -21
- package/dist/assets/DepositAccTransactionItem-BY_OvuKg-BV-rFk5q.js +0 -76
- package/dist/assets/DepositAccTransactionListPage-a__bpCOB-CF9PDDNQ.js +0 -66
- package/dist/assets/DomesticWireDetailScreen-DacvZAfq.js +0 -18
- package/dist/assets/DomesticWireDetailsPage-BumMT4QM-xDzQX0lF.js +0 -21
- package/dist/assets/DownloadOverlay-DqiL3-FB-DATHjVq3.js +0 -439
- package/dist/assets/DrawerScreen-B1Tmjk6I.js +0 -1
- package/dist/assets/EditPeoplePage-BcsdEp_d-83JmqDcO.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-DNUmwdsH-BwDh21om.js +0 -865
- package/dist/assets/EntityDetailPage-DtX5TjBc-C1gOmTYV.js +0 -18
- package/dist/assets/EntityDetailRoutes-DH6Oay7j.js +0 -1
- package/dist/assets/ExpenseAutomationPage-B8C4BxoV-DDvaiJ6I.js +0 -2323
- package/dist/assets/ExpenseAutomationRoutes-CVAejH_S.js +0 -20
- package/dist/assets/FeaturePreviewScreen-DqxtfQjE.js +0 -1
- package/dist/assets/GlobalReviewListPage-4eiopkzw-B9-MVo2q.js +0 -291
- package/dist/assets/InsightsCardStack-fBAbQwhK-Ben65oUn.js +0 -79
- package/dist/assets/InsightsSection-De9zu_me-BVBRSj8O.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-CDf7equc-BWfDz-qh.js +0 -65
- package/dist/assets/InvitePeoplePage-Db4P4ZEq-D8yQs7Vc.js +0 -12
- package/dist/assets/InvoiceUploadSection-DYCjz9CI-CGqj6KTI.js +0 -140
- package/dist/assets/LabeledAddressValueField-C6-hVsPb-Cx3qxpIQ.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-CgZg0uOW-CRnqdJf1.js +0 -16
- package/dist/assets/LabeledDocumentField-Bp9m-OrP-BZJ1R-di.js +0 -41
- package/dist/assets/LabeledText-DvzVOku6-C1r6b0lJ.js +0 -42
- package/dist/assets/MagicLinkACHDetailsPage-C494txw0-B6Ad2Ian.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CONBCbOQ-BnDh5s_P.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-fSY3JGpz-DQpa109r.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-CeYyqoa0.js +0 -12
- package/dist/assets/MagicLinkSuccessPage-BDRXSAO4-Te4RRaTi.js +0 -31
- package/dist/assets/MobileAppDrawer-B2Fzw8F_.js +0 -1
- package/dist/assets/MyProfileSettingsPage-L9WuP6HZ-D4wjrOZn.js +0 -85
- package/dist/assets/NavBarWithPicker-zmvBmWS1-C1LKFsDL.js +0 -30
- package/dist/assets/NavigationDots-Bv4tBDN3-CX4VVQFS.js +0 -15
- package/dist/assets/NotFoundScreen-BBemVqe2.js +0 -1
- package/dist/assets/NotificationRoutes-U-LaNI42.js +0 -1
- package/dist/assets/NotificationsListConfig-Bn1zmx6b-CgwI3kB8.js +0 -1
- package/dist/assets/NotificationsPage-DDwdR_Jq-CLxtwJ7_.js +0 -685
- package/dist/assets/OpExByVendorPage-DukFYlqO-DLkue9kB.js +0 -100
- package/dist/assets/OverlayContainerPage-D4QU0p4o-C-Icci7k.js +0 -11
- package/dist/assets/PandLWithForecastPage-Bgflh9Om-BLh8XrcC.js +0 -107
- package/dist/assets/PandLWithForecastRoutes-D-HhWNvF.js +0 -1
- package/dist/assets/PeoplePage-CDvKreQl-Br9fXMF2.js +0 -720
- package/dist/assets/PeopleRoutes-Dq51UjI9.js +0 -22
- package/dist/assets/PerformanceRoutes-cKruQlcS.js +0 -1
- package/dist/assets/ReferralListScreen-CSsSh4ih.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-CVWnCLDW.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-DZcx_Ou3.js +0 -1
- package/dist/assets/ReimbursementDetailPage-oIC9QEyF-DlTQsBwh.js +0 -314
- package/dist/assets/ReimbursementRoutes-Djc8hIjc.js +0 -13
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-CeyGWbKR-CZtSd4TM.js +0 -1
- package/dist/assets/ReloadCard-DKGn1uxF-CkrmOtQv.js +0 -26
- package/dist/assets/ReportTableViewSelector-CXDvZEbR-B4WtL-_p.js +0 -150
- package/dist/assets/ReportsPage-BoUyXSBC-D_vUbcSy.js +0 -121
- package/dist/assets/ReportsRoutes-tnBiH82P.js +0 -1
- package/dist/assets/ReviewDetailsPage-tT1l4R2r-DKl8wtRU.js +0 -290
- package/dist/assets/RewardsRoutes-DS51i8ZJ.js +0 -1
- package/dist/assets/RoleWithToolTip-C8x5yXaK-oTqAGBzT.js +0 -22
- package/dist/assets/ScheduleDetailsFixedAssetsPage-Bkp0mCOn-NjexzQQI.js +0 -37
- package/dist/assets/ScheduleDetailsPage-Dg9rYJbn-mJi37FRF.js +0 -37
- package/dist/assets/ScheduleSequenceTable-J6Eja8XA-uTDNIyeO.js +0 -324
- package/dist/assets/ScreenRoutes-DvoBFpYl.js +0 -2
- package/dist/assets/SignIn-Cu2nzuEC-CgFcNFK3.js +0 -491
- package/dist/assets/SignInScreen-CCXIdR_f.js +0 -1
- package/dist/assets/SignOutScreen-nUR_nQi4.js +0 -9
- package/dist/assets/SpendManagementListViewPage-9V9u1jPF-CAhShlf6.js +0 -134
- package/dist/assets/SpendManagementPerTabPage-COvEPq7V-Enwnkp6K.js +0 -754
- package/dist/assets/SpendManagementSection-dT-N4bSQ-BU7QcxyK.js +0 -375
- package/dist/assets/StatementItem-g5tfNBjV-B8DjDGkB.js +0 -31
- package/dist/assets/StatementsPage-DaFrVUeK-Bb78Acqy.js +0 -58
- package/dist/assets/SuccessAnimation-oz7yQ6H3-mzE9epVx.js +0 -13
- package/dist/assets/SummaryCard-B9wqNSwM-BiOPMjla.js +0 -1
- package/dist/assets/TaskListScreen-BTd0K2Ah.js +0 -9
- package/dist/assets/TaskManagementPage-dAK9tl2b-B8eIax2u.js +0 -1063
- package/dist/assets/TaskRoutes-C34_uNkE.js +0 -9
- package/dist/assets/TimeRangeSwitcher-r1TNqVRb-ca11ciDj.js +0 -64
- package/dist/assets/TimeframeSwitcher-DHfHCTa4-CRY0pI2L.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-DvBvguRl-zevKhD94.js +0 -31
- package/dist/assets/TransactionDetailPage-f7vWtXWL-DFjYfEw-.js +0 -903
- package/dist/assets/TransactionDetailRoutes-D0IUp-c0.js +0 -1
- package/dist/assets/TransactionDetailScreen-DuZvqtgf.js +0 -5
- package/dist/assets/TransactionList-3-mUZOsw-kAZ-qL0T.js +0 -153
- package/dist/assets/TransactionListPage-q6x4_jni-D2QSW9vu.js +0 -35
- package/dist/assets/TransactionListRoutes-PB1J2m8T.js +0 -1
- package/dist/assets/TransactionVendorDetailPage-MjSH5hfq-BRDls23z.js +0 -80
- package/dist/assets/TreasuryOverviewPage-CuqWmrO5-Duo1If9V.js +0 -708
- package/dist/assets/TreasuryRoutes-BFHIVJGR.js +0 -45
- package/dist/assets/TreasuryStatementsPage-CGr00SXF-CPBafn5H.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-D9_qnlK4-BmLnB6xa.js +0 -58
- package/dist/assets/TrendChart-JTOG0a7B-B1HzEifS.js +0 -16
- package/dist/assets/TrendWithTransactions-CTJhTpAM-FxLucl6g.js +0 -116
- package/dist/assets/UploadAdditionalDocumentOverlay-DZfpwE5J-BZwjrrpj.js +0 -38
- package/dist/assets/VendorACHDetailsPage-CCOupiSZ-BPHL9d4l.js +0 -1
- package/dist/assets/VendorDetailPage-DufNphGD-DqlByCd7.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-BayV34Rt-Du-36wGx.js +0 -1
- package/dist/assets/VendorFirstReviewPage-DA0EL4RJ-CKfw2PVJ.js +0 -730
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-DRVMUeXi-ln7X-i9Z.js +0 -1
- package/dist/assets/VerifyDevice-B6B_nk3v-7J7PFtZ-.js +0 -112
- package/dist/assets/VideoPopup-C_SkBI9U-BL3_M3X0.js +0 -31
- package/dist/assets/WiseConfirmationScreen-DvushDs-.js +0 -12
- package/dist/assets/ZeniAccountDetailPage-Dp-eo-Vq-B3WRlZyy.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-S-XmAYqD-BHUjzyQE.js +0 -441
- package/dist/assets/ZeniAccountNavBarPieces-DhjBxfEr-BkpO-_U2.js +0 -14
- package/dist/assets/ZeniAccountRoutes-JNlaxrz8.js +0 -58
- package/dist/assets/ZeniAccountStatementScreen-Df6Ut17b.js +0 -9
- package/dist/assets/ZeniTransferAmountSlider-BNYgPwHs-rAtxCD8c.js +0 -63
- package/dist/assets/common-DEB71I4X-D2h2kF8O.js +0 -1
- package/dist/assets/commonDimensions-BMnB1-xU-CuHaP4qo.js +0 -1
- package/dist/assets/detailCommon-CrcyqWtZ-Co4x3-EY.js +0 -38
- package/dist/assets/downloadPdf-CUUx8PWn-B-oFkl1r.js +0 -1
- package/dist/assets/epic-Dx6vN-UO.js +0 -2
- package/dist/assets/getLocaleForTenant-CY5R0VDK.js +0 -1
- package/dist/assets/index-BYeMrBg9.js +0 -1
- package/dist/assets/index-DO6IEWSk.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DGnyXKBT-BSjhxbWc.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-CvGdU9Ma-oI33_r0x.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BCOsOvxo-BejLDcnD.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DIqYP3NK-CPJM42M2.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-DquHI1rq.js +0 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-Bh-ojoWH.js +0 -4
- package/dist/assets/pdf-emb33J2I.js +0 -13
- package/dist/assets/react-BL4qYNQl.js +0 -37
- package/dist/assets/toCOABalancesWithID-DkMGvlEt-DFgINRIk.js +0 -1
- package/dist/assets/toChartData-C6s-eBzE-BfIZvn48.js +0 -1
- package/dist/assets/useInitialThreadRequest-1tDzaux1.js +0 -1
- package/dist/assets/withTransactionSidePanel-kYDF1Rc9.js +0 -8
- package/dist/assets/zeni-epic-state-DyRbb6Q5.js +0 -122
|
@@ -0,0 +1,865 @@
|
|
|
1
|
+
import{v as ft,V as t,di as ri,a7 as pn,y as kt,P as mo,A as Rn,S as po,X as ze,g8 as li,ba as si,dl as ci,dm as di,ds as ui,M as ho,bR as gn,bS as go,bT as yo,E as Y,o as n,x as s,a_ as Ln,aM as mi,cU as pi,fS as hi,f$ as bo,fY as An,a9 as fo,i as xo,be as gi,g9 as Ge,ed as Xe,eK as yn,ga as Et,O as $e,L as It,gb as yi,e as R,a8 as wo,D as bn,j as a,aV as bi,bf as fi,c9 as xi,el as fn,dZ as Nt,d2 as be,cd as xn,d8 as fe,cc as ct,dW as wi,eY as So,w as Bt,cg as vo,cf as lt,e5 as Re,C as wn,gc as Si,c8 as vi,ad as zn,f7 as $i,aU as Ci,gd as Bn,au as $o,aA as ki,dV as Ii,ar as Wt,fT as Ti,bq as Co,N as Sn,d as ko,cq as Io,bH as Ut,eA as Di,at as ji,cu as Oi,f1 as Pi,l as vn,a as Mn,bo as To,al as Fn,cp as Ri,H as Li,ci as Do,a5 as Ai,ge as jo,gf as hn,gg as Oo,fN as En,ey as Mt,c6 as zi,fR as Bi,b6 as Mi,co as Fi}from"./index-BocbTmE1.js";import{a as w,b as Ot}from"./sentry-DINNQYpi.js";import{n as o}from"./mui-C_CXevf3.js";import{Gd as Ei,bG as st,c5 as Po,cp as Ro,ci as Nn,Ge as Wn,bs as $n}from"./zeni-epic-state-a7Sj5mjO.js";import Lo from"./InvoiceUploadSection-Dg1-uunA-1cshMTVc.js";import{r as Ni,f as Ft,d as Ct,p as Cn,u as Un,h as ve}from"./types-DyvtCprH-VF9iATMs.js";import{D as Wi}from"./LabeledCreatableSingleSelectField-BV3h9bh7-BCEINAy7.js";import{S as Ui}from"./CurrencySelectField-B8EoF2aF-DHzUxLL4.js";import{u as Vi}from"./plaid-Yyr3DBd8.js";import{e as _i}from"./BankAccountSection-EZtscP2z-C2fUrA1M.js";import{W as Hi,A as qi}from"./BankAccountWarningSection-DCfyIUlu-D_RVGDL2.js";import{o as Ki}from"./radio-default-CiSgisfh-HLL7c7Ix.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";import"./AttachmentView-CiYfninr-DZhIwWMR.js";import"./uploadReceipts-CqDftTRt-DnJMDyN6.js";import"./upload-reimbursement-receipt-O2N8vcO7-BbiwxEOu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="147f421f-782a-4c38-bae6-4d97f63179a9",e._sentryDebugIdIdentifier="sentry-dbid-147f421f-782a-4c38-bae6-4d97f63179a9")}catch{}})();const Oe=(e,i)=>`${e}.${i}`,Vn={largeLabelWidth:new s(120,120,160),paddingBottom:new s(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:Se}},dateFormat:Gi,common:Yi}=$e.getLocalizedStrings(),Zi=({lineIndex:e,mileage:i,classList:r,defaultCurrency:m,sectionId:u,isReimbursementCommentingEnabled:O,isDisabled:d,isAddReimbursementDisabled:D,companyMileageConfigInfo:j,customerSearchAutoComplete:C,reimbursementId:l,classHierarchyList:k})=>{const c=ze(),f=ft(),y=Nt(),p=`dashboard_${f.currentTenant?.companyId}`,v=kt(),{formState:{errors:P},getValues:b,trigger:$}=ct(),h=Yi.strings.empty,z=b(Oe(u,"distanceInMiles")),ne=Vn.largeLabelWidth.value(c),oe=b(Oe(u,"class")),le=r.find(M=>M.classId===oe?.selectedOption),E=Oe(u,"class"),ue=Re(P,E);w.useEffect(()=>{oe?.selectedOption!=null&&(le?.isDeleted===!0||ue)&&$(E)},[oe?.selectedOption,le?.isDeleted,r,E,$]);const G={application:"dashboard",companyId:f.currentTenant?.companyId,tab:"reimbursement",entityId:l},se=r.find(M=>M.classId===i.class),U={valueContainer:M=>({...M,padding:`2px ${n.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},ie={valueContainer:M=>({...M,padding:`2px ${n.sp3} !important`,overflow:"unset"})};return t.jsxs(t.Fragment,{children:[t.jsx(be,{isThreadAllowed:O&&l!=null,dashboardTabKey:fe({type:"details",key:`${e}.mileage.transactionDate`}),roomId:p,companyId:f.currentTenant?.companyId??h,companyName:f.currentTenant?.companyName??h,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${ve("transactionDate",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Do,{isDisabled:d,label:{label:Se.transactionDate,width:ne},style:{paddingBottom:Vn.paddingBottom.valuePx(c),width:"auto"},dateField:{name:Oe(u,"transactionDate"),placeholder:Se.datePlaceholder,defaultValue:i?.transactionDate,dateFormat:Gi.visual.defaultInput,autoComplete:"off",maxDate:$n(),registerOptions:{required:!0,validate:M=>!!M}}})}),t.jsx(vt,{}),t.jsx(be,{isThreadAllowed:O&&l!=null,dashboardTabKey:fe({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:p,companyId:f.currentTenant?.companyId??h,companyName:f.currentTenant?.companyName??h,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${ve("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(En,{isDisabled:D?"disabled":void 0,style:{width:"auto"},label:{label:Se.distanceInMiles,width:ne},formattedTextField:{type:"number",name:Oe(u,"distanceInMiles"),placeholder:Se.addMiles,defaultValue:i.distanceInMiles,registerOptions:{required:!0,validate:M=>M==null||M>0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(vt,{}),t.jsx(be,{isThreadAllowed:O&&l!=null,dashboardTabKey:fe({type:"details",key:`${e}.mileage.amount`}),roomId:p,companyId:f.currentTenant?.companyId??h,companyName:f.currentTenant?.companyName??h,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${ve("amount",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(En,{isDisabled:"disabled",label:{label:Se.amount,width:ne},formattedTextField:{type:"number",name:Oe(`${u}.amount`,"amount"),defaultValue:i.amount?.amount,placeholder:lt(Se.amount),returnValueType:"floatValue",prefix:i.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:M=>M==null||M>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:z!=null&&j?.mileageUnitAmount!=null?`${m.currencySymbol}${j?.mileageUnitAmount} per mile x ${z}`:void 0})}),t.jsx(vt,{}),t.jsx(be,{isThreadAllowed:O&&l!=null,dashboardTabKey:fe({type:"details",key:`${e}.mileage.memo`}),roomId:p,companyId:f.currentTenant?.companyId??h,companyName:f.currentTenant?.companyName??h,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${ve("memo",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(xn,{isDisabled:d,label:{label:Se.memo,width:ne},style:{width:"auto"},text:{type:"text",name:Oe(u,"memo"),placeholder:lt(Se.memo),defaultValue:i.memo,autoComplete:"off",options:{pattern:jo}}})}),t.jsx(vt,{}),t.jsx(be,{isThreadAllowed:O&&l!=null,dashboardTabKey:fe({type:"details",key:`${e}.mileage.class`}),roomId:p,companyId:f.currentTenant?.companyId??h,companyName:f.currentTenant?.companyName??h,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${ve("class",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(hn,{isLoading:!1,label:{label:Se.department,width:ne},additionalLabelInfo:le?.isDeleted===!0&&Re(P,Oe(u,"class"))?Se.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Oe(u,"class"),placeholder:lt(Se.department),valueToId:M=>(Q=>r.filter(ce=>ce.classId===Q)[0]?.accountingClassNumber)(M),defaultValue:{selectedOption:se?.classId,allOptions:Xe(k,[])},style:{width:"100%"},customStyleConfig:U,registerOptions:{required:!0,validate:M=>M?.selectedOption!=null&&(r.find(Q=>Q.classId===M?.selectedOption)?.isDeleted!==!0||Se.deletedClassError)}},style:{borderBottom:`1px solid ${v.colors.grey3}`},fullWidthSelect:!0},Oe(u,"class"))}),t.jsx(vt,{}),t.jsx(be,{isThreadAllowed:O&&l!=null,dashboardTabKey:fe({type:"details",key:`${e}.mileage.customer`}),roomId:p,companyId:f.currentTenant?.companyId??h,companyName:f.currentTenant?.companyName??h,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${ve("customer",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${n.sp2} ${n.sp2}`},children:t.jsx(Oo,{label:{label:Se.customer,width:ne},isDisabled:d,autoCompleteSingleSelectField:{name:Oe(u,"customer"),placeholder:Se.customerPlaceholder,isDisabled:d,valueToId:M=>M,defaultValue:{selectedOption:i.customer?.selectedOption,defaultOptions:i.customer?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:ie,loadOptions:C?.loadOptions},style:{justifyContent:"space-between"},fullWidthSelect:!0},Oe(u,"customer"))})]})},vt=o.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex: 1;
|
|
4
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
5
|
+
min-height: 1px;
|
|
6
|
+
max-height: 1px;
|
|
7
|
+
`,_n={amounWidth:new s(50,30),currencyWidth:new s(50,70)};function Ji({name:e,placeHolder:i,defaultValue:r,isDisabled:m,showAmountCurrencyError:u,style:O,allCurrencies:d}){const[D,j]=w.useState(!1),{getValues:C,formState:{errors:l}}=ct(),k=kt(),c=ze(),f=m!=null,y=C(e),p=`${y?.amount} ${y?.currency?.selectedOption}`,v=Re(l,e)&&Mt(l,`${e}.amount`)!=null,P=Re(l,e)&&Mt(l,`${e}.currency`)!=null,b=u===!0&&(v||P),$=!b&&D===!1;return w.useEffect(()=>{$===!1&&j(!0)},[$]),t.jsx(xo,{onClickAway:()=>f===!1&&!b&&j(!1),children:t.jsx(Xi,{style:O,isDisabled:f,tabIndex:$&&!f?0:void 0,onClick:()=>f===!1&&j(!0),"data-testid":Y("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[y?.amount!=null?t.jsx(Hn,{className:"amount-field",isVisible:$,children:p}):t.jsx(Hn,{className:"amount-field amount-placeholder",isVisible:$,children:i?.name}),t.jsxs(Qi,{isVisible:!$,children:[t.jsx(Bi,{type:"number",name:`${e}.amount`,defaultValue:r?.amount,placeholder:i?.amount,returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:h=>h==null||h>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:m,style:{display:"flex",flexGrow:1,width:_n.amounWidth.valuePercentage(c),cursor:"inherit"},bgColor:k.colors.background,isFieldError:v,shouldHighlightZeroAmount:!0}),$?null:t.jsx(ea,{}),t.jsx(Ui,{name:`${e}.currency`,registerOptions:{validate:h=>h!=null&&h.selectedOption!=null},defaultValue:{allOptions:d.map(h=>({label:c==="small"?h.currencyCode:`${h.currencyCode} - ${h.currency}`,value:h.currencyCode,countryCode:h.countryCode})),selectedOption:r?.currencyCode},controlStyle:{justifyContent:"flex-start",backgroundColor:k.colors.background},isDisabled:m,style:{width:_n.currencyWidth.valuePercentage(c),flexGrow:1},isOptionRemovable:!1})]})]})})})}const Qi=o.div`
|
|
8
|
+
display: ${e=>e.isVisible?"flex":"none"};
|
|
9
|
+
width: 100%;
|
|
10
|
+
input {
|
|
11
|
+
text-align: left;
|
|
12
|
+
}
|
|
13
|
+
`,Xi=o.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
|
+
`,ea=o.div`
|
|
26
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
27
|
+
min-width: ${n.sp3};
|
|
28
|
+
`,Hn=o($o)`
|
|
29
|
+
display: ${e=>e.isVisible?"flex":"none"};
|
|
30
|
+
padding: 0 ${n.sp3};
|
|
31
|
+
border-radius: ${n.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
|
+
`,qe={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])},Ao={infoLabel:new Sn("extraSmallRegular","smallRegular")};function ta({isDisabled:e,label:i,currencyAmountField:r,style:m,errorInfoLabel:u,isAdditionalInfoLabelLoading:O,showAdditionalLabelTooltip:d=!1,additionalLabelTooltip:D,additionalInfoLabel:j,showAdditionalInfoLabel:C=!0}){const l=ze(),{formState:{errors:k}}=ct(),c=Re(k,r.name)&&Mt(k,`${r.name}.amount`)!=null,f=Re(k,r.name)&&Mt(k,`${r.name}.currency`)!=null,y=r.showAmountCurrencyError===!0&&(c||f),p=c||f||y;return t.jsxs(na,{size:l,style:m,isDisabled:e!=null,isAmountError:c,isCurrencyError:f,"data-testid":Y("labeled-currency-amount-field",r.name),children:[t.jsx(zi,{isDisabled:e,label:i.label,htmlFor:r.name,style:{marginLeft:qe.labelMarginLeft.value(l),marginRight:qe.labelMarginRight.value(l),marginTop:qe.labelMarginTop.value(l),width:i.width??"auto"}}),t.jsxs(ia,{labelWidth:i.width,children:[t.jsx(Ji,{...r,isDisabled:e,style:{flexGrow:1,height:qe.controlHeight.value(l)}}),p?t.jsx(oa,{size:l,hasError:p,children:u}):null,(()=>{if(O===!0)return t.jsx(ra,{children:t.jsx(It,{size:"Small",start:!0})});if(C&&j||y){let v=null;return d===!0&&C&&j&&(v=t.jsx(To,{placement:l==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(aa,{children:D??""}),children:t.jsx(sa,{children:t.jsx(ca,{})})})),t.jsxs(la,{size:l,isError:y,hasToolTip:d,children:[v,j]})}})()]})]})}const na=o.div`
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: row;
|
|
43
|
+
align-items: flex-start;
|
|
44
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
45
|
+
width: ${e=>qe.width.valuePx(e.size)};
|
|
46
|
+
min-height: ${e=>qe.height.valuePx(e.size)};
|
|
47
|
+
padding-right: ${e=>qe.marginRight.valuePx(e.size)};
|
|
48
|
+
padding-top: ${e=>qe.paddingTopBottom.valuePx(e.size)};
|
|
49
|
+
padding-bottom: ${e=>qe.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?R.importantLight:e.theme.colors.background};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
input:nth-of-type(2) {
|
|
74
|
+
background-color: ${e=>e.isCurrencyError?R.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?R.importantLight:e.theme.colors.background};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
input:nth-of-type(2) {
|
|
87
|
+
background-color: ${e=>e.isCurrencyError?R.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?R.importantLight:e.theme.colors.background};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
input:nth-of-type(2) {
|
|
104
|
+
background-color: ${e=>e.isCurrencyError?R.importantLight:e.theme.colors.background};
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`,oa=o.label`
|
|
108
|
+
color: ${e=>e.hasError===!0?R.important:e.additionalInfoTextColor!=null?e.additionalInfoTextColor:e.theme.colors.grey1};
|
|
109
|
+
width: auto;
|
|
110
|
+
${e=>`${Ao.infoLabel.style(e.size)}`};
|
|
111
|
+
padding-right: ${n.sp3};
|
|
112
|
+
text-align: right;
|
|
113
|
+
`,ia=o.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
|
+
`,aa=o(wn)`
|
|
120
|
+
padding: 12px;
|
|
121
|
+
color: ${e=>e.theme.colors.grey1};
|
|
122
|
+
background: ${e=>e.theme.colors.overlayColor};
|
|
123
|
+
border-radius: ${n.sp1};
|
|
124
|
+
`,ra=o.div`
|
|
125
|
+
padding-right: ${n.sp3};
|
|
126
|
+
padding-top: ${n.sp1};
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: flex-end;
|
|
129
|
+
`,la=o.label`
|
|
130
|
+
display: flex;
|
|
131
|
+
justify-content: flex-end;
|
|
132
|
+
color: ${e=>e.isError?R.important:e.theme.colors.hero};
|
|
133
|
+
&:hover {
|
|
134
|
+
color: ${e=>e.isError?R.importantDark:e.theme.colors.primary};
|
|
135
|
+
}
|
|
136
|
+
${e=>`${Ao.infoLabel.style(e.size)}`};
|
|
137
|
+
padding-right: ${n.sp3};
|
|
138
|
+
text-align: right;
|
|
139
|
+
margin-top: ${e=>e.hasToolTip===!0?n.sp1:n.sp0};
|
|
140
|
+
`,sa=o.div`
|
|
141
|
+
display: flex;
|
|
142
|
+
margin-right: ${n.sp2};
|
|
143
|
+
margin-top: 2px;
|
|
144
|
+
align-items: center;
|
|
145
|
+
`,ca=o(Mi)`
|
|
146
|
+
width: ${n.sp3};
|
|
147
|
+
height: ${n.sp3};
|
|
148
|
+
color: inherit;
|
|
149
|
+
`,de=(e,i)=>`${e}.${i}`,zt={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:da,common:zo,spendManagement:{reimbursement:{reimbursementDetail:X}}}=$e.getLocalizedStrings(),ua={valueContainer:e=>({...e,padding:`2px ${n.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},{strings:{empty:re}}=zo,ma=({lineIndex:e,outOfPocket:i,accountList:r,classList:m,merchantList:u,isAddReimbursementDisabled:O,sectionId:d,isReimbursementCommentingEnabled:D,isDisabled:j,autoFields:C=[],accountsHierarchyList:l,classHierarchyList:k,reimbursementId:c,tentativeMerchantName:f,allCurrencies:y,uncategorizedAccounts:p,customerSearchAutoComplete:v})=>{const P=ze(),b=ft(),$=Nt(),h=kt(),{formState:{errors:z},getValues:ne,trigger:oe}=ct(),le=ne(de(d,"class")),E=m.find(S=>S.classId===le?.selectedOption),ue=de(d,"class"),G=Re(z,ue),se=ne(de(d,"account")),U=r.find(S=>S.qboId===se?.selectedOption||S.accountId===se?.selectedOption),ie=de(d,"account"),M=Re(z,ie);w.useEffect(()=>{le?.selectedOption!=null&&(E?.isDeleted===!0||G)&&oe(ue)},[le?.selectedOption,E?.isDeleted,m,ue,oe]),w.useEffect(()=>{se?.selectedOption!=null&&(U?.isDeleted===!0||M)&&oe(ie)},[se?.selectedOption,U?.isDeleted,r,ie,oe]);const Q=i.isCategoryUpdateSelected!=null&&i.recommendedAccount!=null&&!i.isCategoryFirstTimeAutofilled&&!((S,_)=>{const ge=S.slice(1);let Ye=!1;return ge.forEach(q=>{q.account?.qboId!=null&&q.account?.qboId===_&&(Ye=!0)}),Ye})(i.recommendations,i.account),ce=i.isRetainedCategorySelected!=null&&i.retainedAccount!=null,V=zt.largeLabelWidth.value(P),Te=zt.smallLabelWidth.value(P),De=u.map(S=>S.id??re),me={application:"dashboard",companyId:b.currentTenant?.companyId,tab:"reimbursement",entityId:c},pe=`dashboard_${b.currentTenant?.companyId}`,he=r.find(S=>S.qboId===i.account),Be=m.find(S=>S.classId===i.class),Le={valueContainer:S=>({...S,padding:`2px ${n.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},je=$e.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",(S=>S.charAt(0).toLowerCase()+S.slice(1))(i?.recommendedAccount?.reason??re)),xe=Et(l,i.recommendations);return t.jsxs(t.Fragment,{children:[f!=null||C.includes("merchant")?t.jsx(ht,{children:t.jsx(yt,{windowSize:P,children:t.jsx(gt,{})})}):null,t.jsx(be,{isThreadAllowed:D&&c!=null,dashboardTabKey:fe({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:pe,companyId:b.currentTenant?.companyId??re,companyName:b.currentTenant?.companyName??re,entityId:c,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${ve("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:$?.sharedRef?.contentWrapperRef,children:t.jsx(Wi,{isDisabled:j!=null||O?"disabled":void 0,label:{label:X.merchant,width:V},style:{width:"auto"},creatableSingleSelectField:{name:de(d,"merchant"),placeholder:X.merchantPlaceholder,defaultValue:{selectedOption:i.merchant??re,allOptions:De},registerOptions:{required:!0,validate:S=>!!S.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:S=>u.find(_=>_.id===S)?.name??S})}),t.jsx($t,{}),C.includes("transactionDate")?t.jsx(ht,{children:t.jsx(yt,{windowSize:P,children:t.jsx(gt,{})})}):null,t.jsx(be,{isThreadAllowed:D&&c!=null,dashboardTabKey:fe({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:pe,companyId:b.currentTenant?.companyId??re,companyName:b.currentTenant?.companyName??re,entityId:c,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${ve("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:$?.sharedRef?.contentWrapperRef,children:t.jsx(Do,{isDisabled:j,label:{label:X.transactionDate,width:V},style:{paddingBottom:zt.paddingBottom.valuePx(P),width:"auto"},dateField:{name:de(d,"transactionDate"),placeholder:X.datePlaceholder,defaultValue:i?.transactionDate,dateFormat:da.visual.defaultInput,autoComplete:"off",maxDate:$n(),registerOptions:{required:!0,validate:S=>!!S}}})}),t.jsx($t,{}),C.includes("amount")?t.jsx(ht,{children:t.jsx(yt,{windowSize:P,isTwoLined:!0,children:t.jsx(gt,{})})}):null,t.jsx(be,{isThreadAllowed:D&&c!=null,dashboardTabKey:fe({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:pe,companyId:b.currentTenant?.companyId??re,companyName:b.currentTenant?.companyName??re,entityId:c,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${ve("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:$?.sharedRef?.contentWrapperRef,children:t.jsx(ta,{isDisabled:j!=null||O?"disabled":void 0,label:{label:X.amount,width:Te},style:{width:"auto"},currencyAmountField:{style:{height:n.sp6},name:`${d}.amount`,defaultValue:{amount:i.amount.amount,currencyCode:i.amount.currencyCode,currencySymbol:i.amount.currencySymbol},placeHolder:{amount:X.addAmount,name:X.addAmount},allCurrencies:y,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:X.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:i.isConvertedCurrencyLoading===!0,additionalInfoLabel:po(i.homeCurrencyDetails,i.amount)||i.amount.currencyCode===zo.currency.currencyCode||i.homeCurrencyDetails?.amount===0?void 0:`${Ai("0,0[.]00",i.homeCurrencyDetails)} ${i.homeCurrencyDetails?.currencyCode}`})}),t.jsx($t,{}),C.includes("memo")?t.jsx(ht,{children:t.jsx(yt,{windowSize:P,children:t.jsx(gt,{})})}):null,t.jsx(be,{isThreadAllowed:D&&c!=null,dashboardTabKey:fe({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:pe,companyId:b.currentTenant?.companyId??re,companyName:b.currentTenant?.companyName??re,entityId:c,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${ve("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:$?.sharedRef?.contentWrapperRef,children:t.jsx(xn,{isDisabled:j,label:{label:X.memo,width:V},style:{width:"auto"},text:{type:"text",name:de(d,"memo"),placeholder:lt(X.memo),defaultValue:i.memo,autoComplete:"off",options:{pattern:jo}}})}),t.jsx($t,{}),C.includes("account")?t.jsx(ht,{children:t.jsx(yt,{windowSize:P,children:t.jsx(gt,{})})}):null,t.jsx(be,{isThreadAllowed:D&&c!=null,dashboardTabKey:fe({type:"details",key:`${e}.out_of_pocket.account`}),roomId:pe,companyId:b.currentTenant?.companyId??re,companyName:b.currentTenant?.companyName??re,entityId:c,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${ve("account",e,"out_of_pocket")}`},fieldThreadTargetElement:$?.sharedRef?.contentWrapperRef,children:t.jsx(hn,{label:{label:X.category,width:V},additionalLabelInfo:U?.isDeleted===!0&&Re(z,de(d,"account"))?X.deletedCategoryError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:Q||ce,name:de(d,"account"),placeholder:X.categoryPlaceholder,valueToId:S=>(_=>r.filter(ge=>ge.qboId===_)[0]?.qboId)(S),defaultValue:{selectedOption:he?.qboId??he?.accountId,allOptions:xe},style:{width:"100%"},customStyleConfig:Le,registerOptions:{required:!0,validate:S=>S?.selectedOption!=null&&(r.find(_=>_.qboId===S?.selectedOption||_.accountId===S?.selectedOption)?.isDeleted!==!0||X.deletedCategoryError)}},disableCurrentOption:S=>[p.expense?.qboId,p.income?.qboId].includes(S),style:{borderBottom:`1px solid ${h.colors.grey3}`,minHeight:n.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:i.isRecommendationLoading,recommendationCheckboxField:Q?{tooltipProps:{text:je},label:{label:i.recommendedAccount?.accountName??re},checkBoxField:{name:de(d,"isCategoryUpdateSelected"),defaultChecked:!!i.isCategoryUpdateSelected}}:void 0,retainCheckboxField:ce?{label:{label:i.retainedAccount?.accountName??re},checkBoxField:{name:de(d,"isRetainedCategorySelected"),defaultChecked:!!i.isRetainedCategorySelected}}:void 0},de(d,"account"))}),C.includes("class")?t.jsx(ht,{children:t.jsx(yt,{windowSize:P,children:t.jsx(gt,{})})}):null,t.jsx(be,{isThreadAllowed:D&&c!=null,dashboardTabKey:fe({type:"details",key:`${e}.out_of_pocket.class`}),roomId:pe,companyId:b.currentTenant?.companyId??re,companyName:b.currentTenant?.companyName??re,entityId:c,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${ve("class",e,"out_of_pocket")}`},fieldThreadTargetElement:$?.sharedRef?.contentWrapperRef,children:t.jsx(hn,{isLoading:!1,label:{label:X.department,width:V},additionalLabelInfo:E?.isDeleted===!0&&Re(z,de(d,"class"))?X.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:de(d,"class"),placeholder:lt(X.department),valueToId:S=>(_=>m.filter(ge=>ge.classId===_)[0]?.accountingClassNumber)(S),defaultValue:{selectedOption:Be?.classId,allOptions:Xe(k,[])},style:{width:"100%"},customStyleConfig:Le,registerOptions:{required:!0,validate:S=>S?.selectedOption!=null&&(m.find(_=>_.classId===S?.selectedOption)?.isDeleted!==!0||X.deletedClassError)}},style:{borderBottom:`1px solid ${h.colors.grey3}`},fullWidthSelect:!0},de(d,"class"))}),t.jsx($t,{}),t.jsx(be,{isThreadAllowed:D&&c!=null,dashboardTabKey:fe({type:"details",key:`${e}.out_of_pocket.customer`}),roomId:pe,companyId:b.currentTenant?.companyId??re,companyName:b.currentTenant?.companyName??re,entityId:c,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${ve("customer",e,"out_of_pocket")}`},fieldThreadTargetElement:$?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${n.sp2} ${n.sp2}`},children:t.jsx(Oo,{label:{label:X.customer,width:V},isDisabled:j,autoCompleteSingleSelectField:{name:de(d,"customer"),placeholder:X.customerPlaceholder,isDisabled:j,valueToId:S=>S,defaultValue:{selectedOption:i.customerAutoCompleteData?.selectedOption,defaultOptions:i.customerAutoCompleteData?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:ua,loadOptions:v?.loadOptions},style:{justifyContent:"space-between"},fullWidthSelect:!0},de(d,"customer"))})]})},ht=o.span`
|
|
150
|
+
position: relative;
|
|
151
|
+
`,gt=o(fn)`
|
|
152
|
+
color: ${e=>e.theme.colors.primary};
|
|
153
|
+
width: ${n.sp3};
|
|
154
|
+
height: ${n.sp3};
|
|
155
|
+
`,yt=o.div`
|
|
156
|
+
z-index: 2;
|
|
157
|
+
left: ${e=>zt.autoFillIconLeft.valuePx(e.windowSize)};
|
|
158
|
+
position: absolute;
|
|
159
|
+
top: ${e=>e.isTwoLined===!0?n.sp5:"22px"};
|
|
160
|
+
`,$t=o.div`
|
|
161
|
+
display: flex;
|
|
162
|
+
flex: 1;
|
|
163
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
164
|
+
min-height: 1px;
|
|
165
|
+
max-height: 1px;
|
|
166
|
+
`,at=(e,i)=>`${e}.${i}`,Ke={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])},J=$e.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,pa=({lineData:e,currencyConversionState:i,recommendationFetchState:r,remiStage:m,lineIndex:u,accountList:O,classList:d,merchantList:D,hasFile:j,defaultCurrency:C,hasMultipleLineItems:l,fileRequiredLineIds:k,duplicateLineDetails:c,remiStatus:f,sectionId:y,isDisabled:p,isReimbursementCommentingEnabled:v,isAddReimbursementDisabled:P,style:b,autoFields:$=[],analytics:h,reimbursementId:z,tentativeMerchantName:ne,companyMileageConfigInfo:oe,customerSearchAutoComplete:le,uncategorizedAccounts:E,removeDuplicateReimbursementForLine:ue,scrollToSection:G,onDuplicateLineClick:se,onRemoveReimbursement:U,clearTentativeNameForLine:ie,allCurrencies:M,accountsHierarchyList:Q,classHierarchyList:ce})=>{const V=ze(),Te=ft(),De=Nt(),me=$e.getLocalizedStrings().common.strings.empty,pe={application:"dashboard",companyId:Te.currentTenant?.companyId,tab:"reimbursement",entityId:z},he=`dashboard_${Te.currentTenant?.companyId}`,{getValues:Be}=ct(),[Le,je]=w.useState(!1),xe=Be(at(y,"reimbursementType"));return t.jsxs(wa,{style:b,windowSize:V,children:[t.jsxs(ga,{hasFile:j,windowSize:V,showDeleteConfirmation:Le,children:[t.jsx(va,{windowSize:V,children:l?`#${u+1} ${J.reimbursement}`:J.reimbursement}),Le?t.jsxs(xa,{windowSize:V,children:[t.jsx(fa,{windowSize:V,children:J.deleteConfirmation}),t.jsxs(ha,{children:[t.jsx(Mn,{label:J.buttons.cancel,onClick:()=>je(!1),style:{width:Ke.buttonWidth.value(V),marginLeft:V==="small"?n.sp0:n.sp4,marginRight:n.sp3},size:"small",variant:"secondary","data-testid":Y("delete-remi-button",J.buttons.cancel)}),t.jsx(Mn,{label:J.buttons.remove,onClick:()=>{h?.trackReimbursementDeleteReimbursementLine(e.lineId,z),ie?.(e.lineId??"1"),je(!1),ue(e.lineId),U(u)},style:{width:Ke.buttonWidth.value(V)},size:"small",variant:"danger","data-testid":Y("delete-remi-button",J.buttons.remove)})]})]}):!l||m!=="draft"&&f!=="rejected"?null:t.jsx(ya,{className:"deleteIconWrapper",windowSize:V,onClick:()=>je(!0),"data-testid":Y("delete-remi-button",e.lineId),children:t.jsx(To,{enterDelay:600,title:J.deleteReimbursement,placement:"top-end",children:t.jsx(ba,{})})})]}),k.includes(e.lineId)?t.jsx(bo,{title:J.missingReceipt,description:J.missingReceiptDescription,style:{marginBottom:n.sp3}}):null,t.jsxs($a,{windowSize:V,children:[c?.duplicateLineId!=null?t.jsxs(Sa,{children:[J.thisExpense," ",c.isDuplicateWithinTransaction?t.jsx(qn,{"data-testid":Y("view-duplicate-transaction-expense"),onClick:()=>(h?.trackReimbursementViewDuplicateExpense(!0,z),G(c.duplicateLineId)),children:J.viewOriginalExpense}):t.jsx(qn,{"data-testid":Y("view-duplicate-expense"),onClick:()=>{c.duplicateTransactionId!=null&&c.duplicateLineId!=null&&(h?.trackReimbursementViewDuplicateExpense(!1,z),se(c.duplicateTransactionId,c.duplicateLineId))},children:J.viewOriginalExpense})]}):null,t.jsx(be,{isThreadAllowed:v&&z!=null,dashboardTabKey:fe({type:"details",key:xe===J.mileageKey?`${u}.mileage.reimbursementType`:`${u}.out_of_pocket.reimbursementType`}),roomId:he,companyId:Te.currentTenant?.companyId??me,companyName:Te.currentTenant?.companyName??me,entityId:z,dashboardOptionType:"reimbursement",filterMetaData:{...pe,entityType:`reimbursement.details.${ve("reimbursementType",u,xe===J.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:De?.sharedRef?.contentWrapperRef,style:{borderRadius:c?.duplicateLineId!=null?"0 0 0 0":`${n.sp2} ${n.sp2} 0 0`},children:t.jsxs(ka,{isDisabled:p!=null,haveBorderRadius:c?.duplicateLineId==null,children:[t.jsx(Fn,{isDisabled:p!=null||P?"disabled":void 0,isContainerClickable:!0,label:{label:J.outOfPocket},style:{padding:`${n.sp3} ${n.sp0}`,paddingLeft:Ke.labelPaddingLeft.value(V),borderTopLeftRadius:"inherit"},showOutline:!(v&&z!=null),radioField:{name:at(y,"reimbursementType"),id:`${at(y,"reimbursementType")}.${J.outOfPocketKey}`,value:J.outOfPocketKey}}),t.jsx(Ca,{}),t.jsx(Fn,{isDisabled:p!=null||P?"disabled":void 0,isContainerClickable:!0,label:{label:J.mileage},style:{padding:`${n.sp3} ${n.sp0}`,paddingLeft:Ke.labelPaddingLeft.value(V),borderTopRightRadius:"inherit"},showOutline:!(v&&z!=null),radioField:{name:at(y,"reimbursementType"),id:`${at(y,"reimbursementType")}.${J.mileageKey}`,value:J.mileageKey}})]})}),t.jsx(Ia,{}),xe===J.outOfPocketKey?t.jsx(ma,{lineIndex:u,reimbursementId:z,uncategorizedAccounts:E,isReimbursementCommentingEnabled:v,isDisabled:p,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?st(e.outOfPocket.transactionDate.toDateString()):void 0,account:e.outOfPocket.account.selectedOption,isConvertedCurrencyLoading:i?.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,customerAutoCompleteData:e.outOfPocket.customer},sectionId:at(y,"outOfPocket"),accountList:O,classList:d,autoFields:$,merchantList:D,tentativeMerchantName:ne,allCurrencies:M,isAddReimbursementDisabled:P,accountsHierarchyList:Q,classHierarchyList:ce,customerSearchAutoComplete:le}):t.jsx(Zi,{lineIndex:u,reimbursementId:z,isReimbursementCommentingEnabled:v,isDisabled:p,mileage:{transactionDate:e.mileage.transactionDate!=null?st(e.mileage.transactionDate.toDateString()):void 0,class:e.mileage.class.selectedOption,customer:e.mileage.customer,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:d,sectionId:at(y,"mileage"),companyMileageConfigInfo:oe,defaultCurrency:C,isAddReimbursementDisabled:P,classHierarchyList:ce,customerSearchAutoComplete:le})]})]})},ha=o.div``,ga=o.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: ${n.sp3};
|
|
172
|
+
align-items: center;
|
|
173
|
+
`,ya=o.div`
|
|
174
|
+
width: ${n.sp3};
|
|
175
|
+
height: ${n.sp3};
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
display: none;
|
|
178
|
+
color: ${e=>e.windowSize==="small"?R.important:e.theme.colors.hero};
|
|
179
|
+
&:hover {
|
|
180
|
+
color: ${R.important};
|
|
181
|
+
}
|
|
182
|
+
`,qn=o.span`
|
|
183
|
+
border-bottom: 1px solid currentColor;
|
|
184
|
+
cursor: pointer;
|
|
185
|
+
`,ba=o(Ri)`
|
|
186
|
+
width: ${n.sp3};
|
|
187
|
+
height: ${n.sp3};
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
`,fa=o.div`
|
|
190
|
+
margin-bottom: ${e=>Ke.deleteConfirmationTextMarginBottom.valuePx(e.windowSize)};
|
|
191
|
+
`,xa=o(vn)`
|
|
192
|
+
color: ${e=>e.theme.colors.hero};
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
196
|
+
`,wa=o.div`
|
|
197
|
+
display: flex;
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
padding-top: ${e=>Ke.paddingTop.valuePx(e.windowSize)};
|
|
200
|
+
margin-right: ${e=>Ke.containerRightMargin.valuePx(e.windowSize)};
|
|
201
|
+
margin-left: ${e=>Ke.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
|
+
`,Sa=o(Li)`
|
|
213
|
+
padding: ${n.sp2} ${n.sp0} ${n.sp2} ${n.sp4};
|
|
214
|
+
background-color: ${R.alertLight};
|
|
215
|
+
color: ${R.brandColorGoldDark};
|
|
216
|
+
border-top-left-radius: inherit;
|
|
217
|
+
border-top-right-radius: inherit;
|
|
218
|
+
`,va=o(Wt)`
|
|
219
|
+
color: ${e=>e.theme.colors.primary};
|
|
220
|
+
display: ${e=>e.windowSize==="small"?"none":"unset"};
|
|
221
|
+
`,$a=o.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=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
227
|
+
border-radius: ${n.sp2};
|
|
228
|
+
margin-bottom: ${e=>Ke.marginBottom.valuePx(e.windowSize)};
|
|
229
|
+
`,Ca=o.div`
|
|
230
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
231
|
+
min-width: 1px;
|
|
232
|
+
max-width: 1px;
|
|
233
|
+
`,ka=o.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
|
+
`,Ia=o.div`
|
|
239
|
+
display: flex;
|
|
240
|
+
flex: 1;
|
|
241
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
242
|
+
min-height: 1px;
|
|
243
|
+
max-height: 1px;
|
|
244
|
+
`,Ta=(e,i)=>`${e}.${i}`,bt={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])},Bo=({isReimbursementCommentingEnabled:e,sectionId:i,isDisabled:r,reportTitle:m,reimbursementId:u,style:O})=>{const d=ze(),D=ft(),j=Nt(),C=`dashboard_${D.currentTenant?.companyId}`,l=$e.getLocalizedStrings(),k=l.spendManagement.reimbursement.reimbursementDetail,c=l.common.strings.empty,f=bt.labelWidth.value(d);return t.jsxs(Da,{style:O,windowSize:d,children:[t.jsx(Oa,{windowSize:d,children:k.whatFor}),t.jsx(ja,{children:t.jsx(be,{isThreadAllowed:e&&u!=null,dashboardTabKey:fe({type:"details",key:"whatFor"}),roomId:C,companyId:D.currentTenant?.companyId??c,companyName:D.currentTenant?.companyName??c,entityId:u,dashboardOptionType:"reimbursement",filterMetaData:{application:"dashboard",companyId:D.currentTenant?.companyId,tab:"reimbursement",entityId:u,entityType:"reimbursement.details.whatFor"},fieldThreadTargetElement:j?.sharedRef?.contentWrapperRef,style:{borderRadius:n.sp2},children:t.jsx(xn,{isDisabled:r,label:{label:k.reportTitle,width:f},text:{type:"text",name:Ta(i,"reportTitle"),placeholder:k.lunchWithClient,defaultValue:m,autoComplete:"off",options:{required:!0,validate:y=>!!y}},style:{width:"auto",borderRadius:n.sp2}})})})]})},Da=o.div`
|
|
245
|
+
display: flex;
|
|
246
|
+
flex-direction: column;
|
|
247
|
+
padding-top: ${e=>bt.paddingTop.valuePx(e.windowSize)};
|
|
248
|
+
padding-bottom: ${e=>bt.paddingBottom.valuePx(e.windowSize)};
|
|
249
|
+
margin-right: ${e=>bt.containerRightMargin.valuePx(e.windowSize)};
|
|
250
|
+
margin-left: ${e=>bt.containerLeftMargin.valuePx(e.windowSize)};
|
|
251
|
+
`,ja=o.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=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
257
|
+
border-radius: ${n.sp2};
|
|
258
|
+
`,Oa=o(Wt)`
|
|
259
|
+
color: ${e=>e.theme.colors.primary};
|
|
260
|
+
margin-bottom: ${e=>bt.marginBottom.valuePx(e.windowSize)};
|
|
261
|
+
`,W={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])},Pa={total:new Sn("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:K},billPay:{vendorCreation:{achDetails:Pt}}},common:{currency:{currencyCode:Rt}}}=$e.getLocalizedStrings(),Mo=e=>{let i=0,r=Rt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const m=e;i=m.outOfPocket.amount??0,r=m.outOfPocket.currencyCode??Rt}else{const m=e;i=m.outOfPocket.amount?.amount??0,r=m.outOfPocket.amount?.currencyCode??Rt}return(e.homeCurrencyConversions?.currencyCode??Rt)!==r&&(i=e.homeCurrencyConversions?.amount??0),i},Ra=({remiUploadStatus:e,progressSectionObj:i,reimbursementId:r,createDate:m,scheduleDate:u,paymentDate:O,hasDuplicateLine:d,approvedDate:D,isFirstOrLastListItem:j,index:C,reimbursementSectionRef:l,showSkipAutoFill:k,lineData:c,currencyConversionState:f,authParams:y,uploadInvoiceEndPoint:p,accountList:v,classList:P,merchantList:b,remiStage:$,autoFieldsByLineId:h,isReimbursementCommentingEnabled:z,isAutoFieldsExist:ne,totalAmount:oe,showTotalAmountLoader:le,totalNumberOfLines:E,defaultCurrency:ue,bankAccounts:G,fileRequiredLineIds:se,isAddReimbursementDisabled:U,duplicateLineByLineId:ie,remiStatus:M,file:Q,uncategorizedAccounts:ce,reportTitle:V,recommendationFetchState:Te,tentativeMerchantName:De,paymentTo:me,analytics:pe,companyMileageConfigInfo:he,customerSearchAutoComplete:Be,loggedInUserDepartmentId:Le,isSignedInUserReimbursementCreator:je,setShowBankAccountPage:xe,setRefByLineId:S,setCurrentLineIdForUpload:_,onDuplicateLineClick:ge,setUploadedReceiptPayload:Ye,removeDuplicateReimbursementForLine:q,onReceiptsUpload:Ve,scrollToSection:Ze,onRemoveReimbursement:dt,onAddReimbursement:et,clearTentativeNameForLine:_e,onReplaceClick:Me,onDeleteBankAccount:tt,updateInvoiceUploadFetchState:Fe,removeFileFromLine:Je,allCurrencies:Qe,accountsHierarchyList:nt,classHierarchyList:ut})=>{const{formState:{errors:ye}}=ct(),ot=w.useRef(null);w.useEffect(()=>(S(Z=>({...Z,[`L${c.lineId}`]:ot.current})),()=>{S(Z=>({...Z,[`L${c.lineId}`]:null}))}),[c.lineId,S]);const ae=ze(),mt=$==="draft"?K.newReimbursementTitle:K.editReimbursementTitle,F=W.largeLabelWidth.value(ae),Ce=G.map(Z=>Z.bankAccountId),Vt=c.reimbursementType===K.outOfPocketKey&&Mo(c)>=75&&Q==null;return t.jsxs(Ja,{ref:l,windowSize:ae,children:[t.jsx(Qa,{ref:Z=>{Z!=null&&(ot.current=Z)},windowSize:ae,bottomSeperator:E!==1,showSkipAutoFill:k,isFirstItem:C===0,children:t.jsx(Lo,{customError:Vt?K.requireReceipt:void 0,analytics:pe,showAutofill:!1,uploadInvoiceEndPoint:p,authParams:y,entityId:U?"":void 0,file:Q,style:{width:"auto",padding:0,height:j?W.firstOrLastItemHeight.valuePx(ae):W.itemHeight.valuePx(ae),margin:ae==="small"?n.sp0:void 0},updateInvoiceUploadFetchState:Fe,onInvoiceUpload:Z=>{c.reimbursementType!==K.outOfPocketKey||(Ae=>!(Ae.outOfPocket.account.selectedOption!=null||Ae.outOfPocket.amount!=null&&Ae.outOfPocket.amount.amount!=0||Ae.outOfPocket.class.selectedOption!=null&&Ae.outOfPocket.class.selectedOption!==Le||Ae.outOfPocket.memo!==""&&Ae.outOfPocket.memo!=null||Ae.outOfPocket.merchant.selectedOption!=null||Ae.outOfPocket.transactionDate!=null))(c)?Ve(Z,Number(c.lineId),!0):(_(Number(c.lineId)),Ye(Z),Me?.())},dropFilePlaceholder:{upload:K.dropReceipt.upload,receipt:K.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!U,pdfTitle:E>1?`#${C+1} Receipt`:"Receipt",onDeleteClick:()=>{Fe?.("In-Progress"),setTimeout(()=>Je?.(Number(c.lineId)))},onReplaceClick:()=>{_(Number(c.lineId)),Me?.()},allowMultiFiles:E===C+1,type:"reimbursement"})}),t.jsxs(Za,{windowSize:ae,children:[C===0&&ae!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(Wa,{children:mt}),t.jsx(Xa,{children:t.jsx(Ti,{progressSectionObj:i,createDate:m,paymentDate:O,scheduleDate:u,approvedDate:D,isBillUploaded:r!=null||e==="Completed"})}),ne&&t.jsxs(za,{children:[t.jsx(La,{}),t.jsx(Na,{children:K.banner})]}),d&&t.jsxs(Ba,{size:ae,children:[t.jsx(Aa,{}),t.jsxs(Fa,{children:[t.jsx(Ma,{children:K.thereSeems}),t.jsx(Ea,{children:K.pleaseFind})]})]}),t.jsx(Bo,{isReimbursementCommentingEnabled:z,sectionId:Ft,reportTitle:V,reimbursementId:r})]}):null,t.jsx(pa,{analytics:pe,reimbursementId:r,onDuplicateLineClick:ge,uncategorizedAccounts:ce,sectionId:`${Cn}.${C}`,scrollToSection:Ze,lineIndex:C,lineData:c,accountList:v,classList:P,merchantList:b,autoFields:c.lineId!=null?h[c.lineId]:[],currencyConversionState:f,recommendationFetchState:Te,onRemoveReimbursement:dt,hasMultipleLineItems:E>1,clearTentativeNameForLine:_e,tentativeMerchantName:De,hasFile:Q!=null,companyMileageConfigInfo:he,defaultCurrency:ue,remiStage:$,remiStatus:M,fileRequiredLineIds:se,allCurrencies:Qe,isReimbursementCommentingEnabled:z,isAddReimbursementDisabled:U,accountsHierarchyList:nt,classHierarchyList:ut,customerSearchAutoComplete:Be,duplicateLineDetails:ie[c.lineId],removeDuplicateReimbursementForLine:q}),E!==1&&E===C+1&&t.jsxs(t.Fragment,{children:[t.jsxs(Va,{windowSize:ae,children:[t.jsx(_a,{children:K.total}),le?t.jsx(Ha,{windowSize:ae,children:t.jsx(qa,{children:t.jsx(It,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(So,{amount:Ro(oe,"USD","$"),integerStyles:Bt.h6Regular.cssObject,decimalStyles:Bt.standardRegular.cssObject})]}),t.jsxs(Ga,{windowSize:ae,onClick:()=>{U===!1&&et()},isDisabled:U,"data-testid":Y("add-reimbursement-row"),children:[t.jsx(Gn,{}),t.jsx(Kn,{children:K.addReimbursement})]}),je?t.jsxs(t.Fragment,{children:[t.jsx(Ua,{windowSize:ae,children:K.receivePaymentTo}),t.jsx(Ka,{windowSize:ae,shouldDisplay:G.length>0,children:t.jsx(vo,{label:{label:K.yourBankAccount,width:F},style:{width:"auto"},singleSelectField:{singleSelect:{name:Ct,placeholder:lt(K.yourBankAccount),showValueEyeIcon:!U,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:tt,getTooltipInfo:Z=>Fo(G,Z),onClickCreateBankAccount:()=>xe(!0),getLabelForId:Z=>No(G,Z),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:U?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:me,allOptions:Ce},registerOptions:{required:!0,validate:Z=>!!Z.selectedOption}},isFunctional:!0})}),t.jsxs(Ya,{shouldDisplay:G.length===0,windowSize:ae,hasError:Re(ye,Ct),onClick:()=>{U===!1&&xe(!0)},isDisabled:U,"data-testid":Y("remi-add-bank-account-container"),children:[t.jsx(Gn,{}),t.jsx(Kn,{children:K.addBankAccount})]})]}):null]})]})]})},Fo=(e,i)=>{const r=Eo(e,i);return r==null?`${Pt.bankRoutingNumber} ${K.emptyValue}
|
|
262
|
+
${Pt.bankAccountNumber} ${K.emptyValue}`:`${Pt.bankRoutingNumber} ${r.bankRoutingNumberAch??K.emptyValue}, ${r.bankName??K.emptyValue}
|
|
263
|
+
${Pt.bankAccountNumber} ${r.bankAccountNumber??K.emptyValue}`},Eo=(e,i)=>e.find(r=>r.bankAccountId===i),No=(e,i)=>{const r=Eo(e,i);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},La=o(fn)`
|
|
264
|
+
color: ${e=>e.theme.colors.primary};
|
|
265
|
+
width: ${n.sp3};
|
|
266
|
+
height: ${n.sp3};
|
|
267
|
+
`,Aa=o(Pi)`
|
|
268
|
+
width: ${n.sp4};
|
|
269
|
+
height: ${n.sp4};
|
|
270
|
+
color: ${R.brandColorGoldDark};
|
|
271
|
+
`,za=o.div`
|
|
272
|
+
display: flex;
|
|
273
|
+
gap: ${n.sp2};
|
|
274
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
275
|
+
padding: ${n.sp3};
|
|
276
|
+
border-radius: ${n.sp2};
|
|
277
|
+
align-items: center;
|
|
278
|
+
margin: 0 ${n.sp8} 0 ${n.sp6};
|
|
279
|
+
`,Ba=o.div`
|
|
280
|
+
display: flex;
|
|
281
|
+
gap: ${n.sp2};
|
|
282
|
+
padding: ${n.sp3};
|
|
283
|
+
border-radius: ${n.sp2};
|
|
284
|
+
align-items: start;
|
|
285
|
+
margin-top: ${e=>W.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
286
|
+
margin-right: ${e=>W.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
287
|
+
margin-bottom: ${e=>W.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
288
|
+
margin-left: ${e=>W.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
289
|
+
background-color: ${R.alertLight};
|
|
290
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
291
|
+
`,Ma=o(Ut)`
|
|
292
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
293
|
+
`,Fa=o.div`
|
|
294
|
+
width: 100%;
|
|
295
|
+
`,Ea=o(vn)`
|
|
296
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
297
|
+
`,Na=o.span`
|
|
298
|
+
color: ${e=>e.theme.colors.hero};
|
|
299
|
+
`,Wa=o(Oi)`
|
|
300
|
+
letter-spacing: -0.02em;
|
|
301
|
+
color: ${e=>e.theme.colors.primary};
|
|
302
|
+
margin: ${n.sp3} ${n.sp8} ${n.sp3} ${n.sp6};
|
|
303
|
+
`,Ua=o(Wt)`
|
|
304
|
+
letter-spacing: -0.02em;
|
|
305
|
+
color: ${e=>e.theme.colors.primary};
|
|
306
|
+
margin-top: ${e=>W.paymentToMarginTop.valuePx(e.windowSize)};
|
|
307
|
+
margin-bottom: ${e=>W.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
308
|
+
margin-left: ${e=>W.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
309
|
+
margin-right: ${e=>W.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
310
|
+
`,Va=o.div`
|
|
311
|
+
padding: ${n.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: ${n.sp2};
|
|
318
|
+
color: ${e=>e.theme.colors.hero};
|
|
319
|
+
margin-top: ${e=>W.totalMarginBottom.valuePx(e.windowSize)};
|
|
320
|
+
margin-left: ${e=>W.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
321
|
+
margin-right: ${e=>W.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
322
|
+
margin-bottom: ${e=>W.totalMarginBottom.valuePx(e.windowSize)};
|
|
323
|
+
justify-content: space-between;
|
|
324
|
+
`,_a=o(Co)`
|
|
325
|
+
display: flex;
|
|
326
|
+
width: 176px;
|
|
327
|
+
color: ${e=>e.theme.colors.primary};
|
|
328
|
+
`,Ha=o(ko)`
|
|
329
|
+
display: flex;
|
|
330
|
+
width: calc(100% - 176px);
|
|
331
|
+
justify-content: flex-end;
|
|
332
|
+
color: ${e=>e.theme.colors.primary};
|
|
333
|
+
${e=>`${Pa.total.style(e.windowSize)}`};
|
|
334
|
+
`,qa=o.div`
|
|
335
|
+
padding-right: ${n.sp3};
|
|
336
|
+
height: 30px;
|
|
337
|
+
display: flex;
|
|
338
|
+
justify-content: flex-end;
|
|
339
|
+
`,Ka=o.div`
|
|
340
|
+
margin-left: ${e=>W.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
341
|
+
margin-right: ${e=>W.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
342
|
+
margin-bottom: ${n.sp3};
|
|
343
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
344
|
+
border-radius: ${n.sp2};
|
|
345
|
+
box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
346
|
+
display: ${e=>e.shouldDisplay?"unset":"none"};
|
|
347
|
+
`,Ga=o.div`
|
|
348
|
+
padding: ${n.sp3};
|
|
349
|
+
display: flex;
|
|
350
|
+
align-items: center;
|
|
351
|
+
justify-content: center;
|
|
352
|
+
border: 1px solid
|
|
353
|
+
${e=>e.hasError===!0?R.important:e.theme.colors.hero};
|
|
354
|
+
border-radius: ${n.sp2};
|
|
355
|
+
color: ${e=>e.hasError===!0?R.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?R.important:e.theme.colors.primary};
|
|
359
|
+
border: 1px solid
|
|
360
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?R.important:e.theme.colors.primary};
|
|
361
|
+
}
|
|
362
|
+
margin-top: ${e=>W.totalMarginBottom.valuePx(e.windowSize)};
|
|
363
|
+
margin-left: ${e=>W.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
364
|
+
margin-right: ${e=>W.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
365
|
+
margin-bottom: ${e=>W.marginBottom.valuePx(e.windowSize)};
|
|
366
|
+
`,Ya=o.div`
|
|
367
|
+
padding: ${n.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?R.important:e.theme.colors.hero};
|
|
373
|
+
border-radius: ${n.sp2};
|
|
374
|
+
color: ${e=>e.hasError===!0?R.important:e.theme.colors.hero};
|
|
375
|
+
cursor: pointer;
|
|
376
|
+
&:hover {
|
|
377
|
+
color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?R.important:e.theme.colors.primary};
|
|
378
|
+
border: 1px solid
|
|
379
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?R.important:e.theme.colors.primary};
|
|
380
|
+
}
|
|
381
|
+
margin-left: ${e=>W.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
382
|
+
margin-right: ${e=>W.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
383
|
+
margin-bottom: ${e=>W.marginBottom.valuePx(e.windowSize)};
|
|
384
|
+
`,Kn=o(Ut)`
|
|
385
|
+
color: inherit;
|
|
386
|
+
`,Gn=o(Io)`
|
|
387
|
+
margin-right: ${n.sp2};
|
|
388
|
+
width: ${n.sp3};
|
|
389
|
+
height: ${n.sp3};
|
|
390
|
+
`,Za=o.div`
|
|
391
|
+
display: flex;
|
|
392
|
+
flex-direction: column;
|
|
393
|
+
width: ${e=>W.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
394
|
+
`,Ja=o.div`
|
|
395
|
+
display: flex;
|
|
396
|
+
width: 100%;
|
|
397
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
398
|
+
`,Qa=o.div`
|
|
399
|
+
height: 100%;
|
|
400
|
+
background: ${e=>e.theme.colors.grey3};
|
|
401
|
+
border-radius: ${n.sp2};
|
|
402
|
+
width: ${e=>e.windowSize==="small"?"auto":"42%"};
|
|
403
|
+
margin-left: ${e=>W.invoiceSectionLeftMargin.valuePx(e.windowSize)};
|
|
404
|
+
margin-right: ${e=>W.invoiceSectionRightMargin.valuePx(e.windowSize)};
|
|
405
|
+
visibility: ${e=>e.showSkipAutoFill?"hidden":"unset"};
|
|
406
|
+
margin-bottom: ${e=>e.bottomSeperator===!0&&e.windowSize!=="small"?e.isFirstItem?"102px":n.sp10:0};
|
|
407
|
+
margin-top: ${e=>W.marginTop.valuePx(e.windowSize)};
|
|
408
|
+
`,Xa=o.div`
|
|
409
|
+
padding: ${n.sp2} ${n.sp8} ${n.sp0} ${n.sp6};
|
|
410
|
+
`,er={total:new Sn("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])},rt=$e.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,tr=({remiDetails:e,isUserAdmin:i,authParams:r,uploadInvoiceEndPoint:m,showSkipAutoFill:u,isReimbursementCommentingEnabled:O,isAutoFieldsExist:d,totalAmount:D,defaultCurrency:j,hasDuplicateLine:C,bankAccounts:l,fileRequiredLineIds:k,companyMileageConfigInfo:c,analytics:f,reimbursementId:y,currencyConversionStatus:p,setShowSkipAutoFill:v,setShowBankAccountPage:P,removeDuplicateReimbursementForLine:b,onReceiptsUpload:$,setCurrentLineIdForUpload:h,onDuplicateLineClick:z,setUploadedReceiptPayload:ne,removeFileFromLine:oe,onReplaceClick:le,updateInvoiceUploadFetchState:E,clearTentativeNameForLine:ue,customerSearchAutoComplete:G,onDeleteBankAccount:se,uncategorizedAccounts:U,isSignedInUserReimbursementCreator:ie,duplicateLineByLineId:M,showTotalAmountLoader:Q,scrollContainerRef:ce})=>{const{control:V,formState:{errors:Te}}=ct(),{fields:De,append:me,remove:pe}=wi({name:Cn,control:V}),he=De,Be=w.useRef(null),Le=F=>{setTimeout(()=>{pe(F)})},{tentativeMerchantNameByLineId:je,remiStage:xe,remiStatus:S}=e,_=!ie||xe==="pending_approval"&&S!=="rejected"&&i||xe==="pending_approval"&&S==="rejected",ge=_?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:l,Ye=ge.map(F=>F.bankAccountId),q=ze(),Ve=ee.largeLabelWidth.value(q),Ze=e.whatForSection.reportTitle,dt=e.accountList.accounts,et=e.accountsHierarchyList,_e=e.classHierarchyList,Me=e.classList.classes,tt=e.merchantList.merchants,Fe=e.addRemiAutoFieldsByLineId,Je=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(F=>Number(F)),0),Qe=()=>{const F=he[he.length-1],Ce=Wo(he.length,Number(F.lineId)>Je?String(Number(F.lineId)+1):String(Je+1),et,_e,tt,j,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{me(Ce,{shouldFocus:!1})}),h(Number(Ce.lineId)),v(!0),setTimeout(()=>Un(Be.current,ce?.current),50)},[nt,ut]=w.useState({}),ye=w.useCallback(F=>{const Ce=nt[`L${F}`];Ce!=null&&Un(Ce,ce?.current)},[nt,ce]),ot=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,ae=e.reimbursementInfo?.paymentDate!=null?st(Po(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,mt=e.reimbursementInfo?.expectedDepositDate??ae;return t.jsxs(ar,{windowSize:q,showSkipAutoFill:u,children:[he.map((F,Ce)=>t.jsx(Ra,{removeDuplicateReimbursementForLine:b,onDuplicateLineClick:z,scrollToSection:ye,setRefByLineId:ut,duplicateLineByLineId:M,reimbursementId:y,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:U,progressSectionObj:ot,createDate:e.createTime,paymentDate:mt,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:he.length-1===Ce||Ce===0,index:Ce,reimbursementSectionRef:Be,remiStage:xe,remiStatus:S,authParams:r,file:F.file,uploadInvoiceEndPoint:m,showSkipAutoFill:u,lineData:F,currencyConversionState:p[F.lineId],recommendationFetchState:e.lineDetailSection[F.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:h,setUploadedReceiptPayload:ne,onReplaceClick:le,onReceiptsUpload:$,removeFileFromLine:oe,isReimbursementCommentingEnabled:O,isAutoFieldsExist:d,reportTitle:Ze,accountList:dt,classList:Me,merchantList:tt,autoFieldsByLineId:Fe,onRemoveReimbursement:Le,onAddReimbursement:Qe,totalAmount:D,showTotalAmountLoader:Q,hasDuplicateLine:C,totalNumberOfLines:he.length,updateInvoiceUploadFetchState:E,clearTentativeNameForLine:ue,customerSearchAutoComplete:G,tentativeMerchantName:je[F.lineId],companyMileageConfigInfo:c,defaultCurrency:j,setShowBankAccountPage:P,paymentTo:e.paymentTo,bankAccounts:ge,onDeleteBankAccount:se,analytics:f,fileRequiredLineIds:k,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:_,accountsHierarchyList:et,classHierarchyList:_e,isSignedInUserReimbursementCreator:ie},F.lineId)),he.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(on,{children:[q!=="small"?t.jsx(tn,{windowSize:q}):null,t.jsx(nn,{windowSize:q,children:t.jsxs(rr,{windowSize:q,children:[t.jsx(lr,{children:rt.total}),Q?t.jsx(cr,{windowSize:q,children:t.jsx(dr,{children:t.jsx(It,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(So,{amount:Ro(D,Nn.currencyCode,Nn.currencySymbol),integerStyles:Bt.h6Regular.cssObject,decimalStyles:Bt.standardRegular.cssObject})]})})]}),t.jsxs(on,{children:[q!=="small"?t.jsx(tn,{windowSize:q}):null,t.jsx(nn,{windowSize:q,children:t.jsxs(ur,{windowSize:q,onClick:()=>{_===!1&&Qe()},isDisabled:_,"data-testid":Y("add-reimbursement-container"),children:[t.jsx(Zn,{}),t.jsx(Yn,{children:rt.addReimbursement})]})})]}),t.jsxs(on,{children:[q!=="small"?t.jsx(tn,{windowSize:q}):null,ie?t.jsxs(nn,{windowSize:q,children:[t.jsx(sr,{windowSize:q,children:rt.receivePaymentTo}),t.jsx(ir,{windowSize:q,shouldDisplay:ge.length>0,children:t.jsx(vo,{label:{label:rt.yourBankAccount,width:Ve},style:{width:"auto"},singleSelectField:{singleSelect:{name:Ct,placeholder:lt(rt.yourBankAccount),showValueEyeIcon:!_,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:se,getTooltipInfo:F=>Fo(ge,F),onClickCreateBankAccount:()=>P(!0),getLabelForId:F=>No(ge,F),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:_?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:Ye},registerOptions:{required:!0,validate:F=>!!F.selectedOption}},isFunctional:!0})}),t.jsxs(mr,{shouldDisplay:ge.length===0,windowSize:q,onClick:()=>{_===!1&&P(!0)},hasError:Re(Te,Ct),isDisabled:_,"data-testid":Y("remi-add-bank-account-container"),children:[t.jsx(Zn,{}),t.jsx(Yn,{children:rt.addBankAccount})]})]}):null]})]})]})},Wo=(e,i,r,m,u,O,d,D)=>{const j=nr(r,m,u,O,d,D);return{lineIndex:e,lineId:i,reimbursementType:rt.outOfPocketKey,file:void 0,outOfPocket:j,mileage:or(m,O,D)}},nr=(e,i,r,m,u,O)=>({transactionDate:void 0,class:{allOptions:Ge(Xe(i,[])),selectedOption:O},account:{allOptions:Ge(Et(e,[])),selectedOption:void 0},amount:{amount:0,currencyCode:m.currencyCode,currencySymbol:m.currencySymbol,currency:{allOptions:u.map(d=>({label:`${d.currencyCode} - ${d.currency}`,value:d.currencyCode,countryCode:yn(d.countryCode)})),selectedOption:m.currencyCode??$e.getLocalizedStrings().common.currency.currencyCode}},memo:void 0,merchant:{allOptions:r.map(d=>d.id).filter(d=>!!d),selectedOption:void 0},recommendations:[],isCategoryUpdateSelected:!1,isCategoryFirstTimeAutofilled:!1,isRetainedCategorySelected:!1}),or=(e,i,r)=>({transactionDate:void 0,class:{allOptions:Ge(Xe(e,[])),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:i.currencyCode,currencySymbol:i.currencySymbol},memo:void 0}),ir=o.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: ${n.sp2};
|
|
416
|
+
box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
417
|
+
display: ${e=>e.shouldDisplay?"inherit":"none"};
|
|
418
|
+
`,tn=o.div`
|
|
419
|
+
width: ${e=>e.windowSize==="small"?"100%":"42%"};
|
|
420
|
+
`,nn=o.div`
|
|
421
|
+
width: ${e=>e.windowSize==="small"?"100%":"58%"};
|
|
422
|
+
`,ar=o.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
|
+
`,rr=o.div`
|
|
427
|
+
padding: ${n.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: ${n.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
|
+
`,lr=o(Co)`
|
|
440
|
+
display: flex;
|
|
441
|
+
width: 176px;
|
|
442
|
+
color: ${e=>e.theme.colors.primary};
|
|
443
|
+
`,sr=o(Wt)`
|
|
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
|
+
`,cr=o(ko)`
|
|
450
|
+
display: flex;
|
|
451
|
+
width: calc(100% - 176px);
|
|
452
|
+
justify-content: flex-end;
|
|
453
|
+
color: ${e=>e.theme.colors.primary};
|
|
454
|
+
${e=>`${er.total.style(e.windowSize)}`};
|
|
455
|
+
`,dr=o.div`
|
|
456
|
+
padding-right: ${n.sp3};
|
|
457
|
+
height: 30px;
|
|
458
|
+
display: flex;
|
|
459
|
+
justify-content: flex-end;
|
|
460
|
+
`,ur=o.div`
|
|
461
|
+
padding: ${n.sp3};
|
|
462
|
+
display: flex;
|
|
463
|
+
align-items: center;
|
|
464
|
+
justify-content: center;
|
|
465
|
+
border: 1px solid
|
|
466
|
+
${e=>e.hasError===!0?R.important:e.theme.colors.hero};
|
|
467
|
+
border-radius: ${n.sp2};
|
|
468
|
+
|
|
469
|
+
color: ${e=>e.hasError===!0?R.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?R.important:e.theme.colors.primary};
|
|
473
|
+
border: 1px solid
|
|
474
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?R.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
|
+
`,mr=o.div`
|
|
481
|
+
padding: ${n.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?R.important:e.theme.colors.hero};
|
|
487
|
+
border-radius: ${n.sp2};
|
|
488
|
+
color: ${e=>e.hasError===!0?R.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?R.important:e.theme.colors.primary};
|
|
492
|
+
border: 1px solid
|
|
493
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?R.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
|
+
`,Yn=o(Ut)`
|
|
499
|
+
color: inherit;
|
|
500
|
+
`,Zn=o(Io)`
|
|
501
|
+
margin-right: ${n.sp2};
|
|
502
|
+
width: ${n.sp3};
|
|
503
|
+
height: ${n.sp3};
|
|
504
|
+
`,on=o.div`
|
|
505
|
+
display: flex;
|
|
506
|
+
width: 100%;
|
|
507
|
+
`,Ue={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])},Jn="userBankAccountPage",Lt="bankAccountSection",Qn=e=>`${e}_form`,pr=({bankAccountCreationState:e,setShowBankAccountPage:i,plaidConnectionDetails:r,onFetchLinkTokenClick:m,onEstablishConnectionClick:u,bankAccountToCreate:O,fetchBankNameByRoutingStatus:d,isDisabled:D,onSaveHandler:j,onUserBankDetailsUpdated:C,onFetchBankName:l,onBackClick:k})=>{const c=kt(),f=ze(),y=mo({mode:"onBlur",reValidateMode:"onChange",defaultValues:w.useMemo(()=>(E=>({[Lt]:{bankRoutingNumber:E?.bankRoutingNumber,bankName:E?.bankName,bankAccountNumber:E?.bankAccountNumber,confirmedBankAccountNumber:E?.confirmedBankAccountNumber,bankAccountName:E?.bankAccountName}}))(O),[O])}),p=w.useCallback(E=>{u?.(E),k()},[k,u]),v=r.link_account_no_microdeposit,{open:P}=Vi({token:v.linkToken??null,onSuccess:p});w.useEffect(()=>{(st(new Date().toISOString()).isAfter(v.expiration)||v.linkToken==null)&&m?.("link_account_no_microdeposit")},[]);const[b,$]=w.useState(!1),h=$e.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,z=$e.getLocalizedStrings().common.footer,ne={onOkClick:()=>{$(!1),y.reset(),k()},onCancelClick:()=>{$(!1)}};w.useEffect(()=>{const E=y.watch((ue,{name:G})=>{G!=null&&ue!=null&&vi(()=>(async(se,U)=>{const ie=U[Lt].bankRoutingNumber;C(U),se===`${Lt}.bankRoutingNumber`&&ie?.length===9&&Di.test(ie)===!0&&l?.(ie)})(G,ue))});return()=>{E.unsubscribe()}}),w.useEffect(()=>{e?.fetchState==="Completed"&&k()},[e?.fetchState,k,i]);const oe=y.handleSubmit(E=>{d.fetchState!=="In-Progress"&&j()}),le=c.mode==="light"?new zn(c.colors.brandColorJadeLight):new zn(c.colors.brandColorJadeDark);return t.jsxs(hr,{children:[t.jsxs(Sr,{windowSize:f,children:[b===!0?t.jsx(gn,{titleComponent:t.jsx(yo,{children:h.discardTitle}),descriptionComponent:t.jsx(go,{children:h.discardDescription}),primaryButtonText:h.buttons.delete,secondaryButtonText:h.buttons.cancel,action:ne}):null,t.jsx(Hi,{header:h.addBankAccount,isDirty:y.formState.isDirty,onBackClick:k,setShowConfirmationPopup:$}),t.jsx(gr,{}),t.jsxs(vr,{size:f,children:[t.jsx($i,{onClick:()=>{y.reset(),P()},title:h.connectYourBank,subTitle:h.loginToBank,header:h.setupAchPayments,icon:{element:t.jsx(Ci,{width:Ue.iconWidthHeight.valuePx(f),height:Ue.iconWidthHeight.valuePx(f)}),color:le},style:{width:"unset",rowGap:f==="small"?n.sp2:void 0}}),t.jsxs(yr,{windowSize:f,children:[t.jsx(br,{}),t.jsx(xr,{children:t.jsx(wr,{children:h.or})})]}),t.jsx(fr,{windowSize:f,children:h.saveAccountManually})]}),t.jsx($r,{size:f,children:t.jsx(ho,{...y,children:t.jsxs("form",{id:Qn(Jn),onSubmit:oe,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(qi,{warningText:h.accountExistWarning}):null,t.jsx(_i,{bankAccountToCreate:O,fetchBankNameByRoutingStatus:d,sectionId:Lt})]})})})]}),t.jsx(fo,{formId:Qn(Jn),primaryBtn:{label:h.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Ue.buttonWidth.value(f)},isDisabled:D!=null},cancelBtn:{label:z.cancel,style:{width:Ue.buttonWidth.value(f)},shouldResetOnCancel:!1,onClick:()=>{y.formState.isDirty?$(!0):($(!1),y.reset(),k())}}})]})},hr=o.div`
|
|
508
|
+
display: flex;
|
|
509
|
+
flex-direction: column;
|
|
510
|
+
width: 100%;
|
|
511
|
+
height: 100%;
|
|
512
|
+
`,gr=o.div`
|
|
513
|
+
margin: ${n.sp2} 0;
|
|
514
|
+
position: relative;
|
|
515
|
+
`,yr=o.div`
|
|
516
|
+
margin: ${e=>Ue.orSeperatorTopBottomMargin.valuePx(e.windowSize)} 0;
|
|
517
|
+
position: relative;
|
|
518
|
+
`,br=o.div`
|
|
519
|
+
background: ${e=>e.theme.colors.grey2};
|
|
520
|
+
height: 1px;
|
|
521
|
+
`,fr=o(ji)`
|
|
522
|
+
color: ${e=>e.theme.colors.primary};
|
|
523
|
+
margin-bottom: ${e=>Ue.subTitleMarginbottom.valuePx(e.windowSize)};
|
|
524
|
+
`,xr=o.div`
|
|
525
|
+
display: flex;
|
|
526
|
+
justify-content: center;
|
|
527
|
+
`,wr=o(wn)`
|
|
528
|
+
background: ${e=>e.theme.colors.background};
|
|
529
|
+
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
530
|
+
border-radius: ${n.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
|
+
`,Sr=o.div`
|
|
540
|
+
display: flex;
|
|
541
|
+
flex-direction: column;
|
|
542
|
+
flex-grow: 1;
|
|
543
|
+
`,vr=o.div`
|
|
544
|
+
padding-left: ${e=>Ue.paddingLeft.valuePx(e.size)};
|
|
545
|
+
padding-right: ${e=>Ue.paddingRight.valuePx(e.size)};
|
|
546
|
+
`,$r=o.div`
|
|
547
|
+
padding-left: ${e=>Ue.paddingLeft.valuePx(e.size)};
|
|
548
|
+
padding-right: ${e=>Ue.paddingRight.valuePx(e.size)};
|
|
549
|
+
padding-bottom: ${n.sp3};
|
|
550
|
+
`,Pe={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:Xn}=$e.getLocalizedStrings().common,Ie=$e.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,eo=({fetchState:e})=>{switch(e){case"Not-Started":default:return t.jsx(Tr,{});case"In-Progress":return t.jsx(It,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(Uo,{})}},Cr=e=>{switch(e){case"Not-Started":default:return Ie.detectDuplicates;case"In-Progress":return Ie.detectingDuplicates;case"Completed":return Ie.noDuplicatesFound}},kr=({submitFetchState:e,duplicateReimbursementStatus:i,hasDuplicateLine:r,numberOfDuplicateLines:m,setShowDuplicatePopup:u,analytics:O,reimbursementId:d,submitReport:D,fetchDuplicateReimbursement:j,clearDuplicateReimbursementDetail:C,clearRemiSaveStatus:l})=>{const k=ze(),[c,f]=Ot.useState(!0),y=pn(e),p=pn(i);Ot.useEffect(()=>{setTimeout(()=>{c&&(f(!1),i==="Not-Started"&&j())},2e3)},[i,j,c]),Ot.useEffect(()=>{y==="In-Progress"&&e==="Completed"&&(C(),u(!1))},[e,y,u,C]),Ot.useEffect(()=>{p==="In-Progress"&&i==="Completed"&&!r&&D()},[p,i,r,D]);const v=i==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[v?t.jsx(Ir,{size:k}):null,t.jsx(gn,{action:{onOkClick:()=>{v?(C(),e==="Error"&&l(),f(!0)):(O?.trackReimbursementReviewDuplicateReportReimbursement(m,d),u(!1),yi())},onCancelClick:()=>{v?(C(),e==="Error"&&l(),u(!1)):(O?.trackReimbursementSubmitAnywayDuplicateReimbursement(m,d),D())}},shouldClickAway:v,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:v?Xn.resubmit:Ie.primaryButtonText,secondaryButtonText:v?Xn.cancel:Ie.secondaryButtonText,primaryButtonWidth:v?Pe.cancelButtonWidth.value(k):Pe.submitButtonWidth.value(k),secondaryButtonWidth:v?Pe.cancelButtonWidth.value(k):Pe.submitButtonWidth.value(k),descriptionComponent:t.jsx(Or,{size:k,children:t.jsxs(Dr,{hasDuplicate:r,duplicateReimbursementStatus:i,children:[t.jsxs(rn,{isDisabled:!1,isSuccess:!c,children:[c?t.jsx(It,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}}):t.jsx(Uo,{}),t.jsx(an,{isDisabled:!1,children:c?Ie.reviewingExpenses:Ie.reviewedAllExpenses})]}),r||i==="Error"?t.jsxs(oo,{size:k,children:[t.jsx(to,{}),t.jsx(no,{children:i==="Error"?Ie.failedToDetect:`${m} ${Ie.duplicateExpensesFound}`})]}):t.jsxs(rn,{isDisabled:i==="Not-Started",isSuccess:i==="Completed"&&m===0,children:[t.jsx(eo,{fetchState:i}),t.jsx(an,{isDisabled:i==="Not-Started",children:Cr(i)})]}),e==="Error"?t.jsxs(oo,{size:k,children:[t.jsx(to,{}),t.jsx(no,{children:Ie.failedToSubmit})]}):r||i==="Error"?null:t.jsxs(rn,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(eo,{fetchState:e}),t.jsx(an,{isDisabled:e==="Not-Started",children:e==="Not-Started"?Ie.submitReport:Ie.submittingReport})]})]})}),titleComponent:t.jsx(jr,{size:k,children:Ie.title}),showFooter:r||v,containerStyle:{width:Pe.containerWidth.value(k),maxWidth:"unset"}})]})},Ir=o(wo)`
|
|
551
|
+
width: ${n.sp4};
|
|
552
|
+
height: ${n.sp4};
|
|
553
|
+
color: ${e=>e.theme.colors.hero};
|
|
554
|
+
position: fixed;
|
|
555
|
+
top: 19px;
|
|
556
|
+
right: ${e=>Pe.styledCloseIconRight.valuePx(e.size)};
|
|
557
|
+
z-index: 11;
|
|
558
|
+
cursor: pointer;
|
|
559
|
+
&:hover {
|
|
560
|
+
color: ${e=>e.theme.colors.primary};
|
|
561
|
+
}
|
|
562
|
+
`,to=o(Ii)`
|
|
563
|
+
width: ${n.sp4};
|
|
564
|
+
height: ${n.sp4};
|
|
565
|
+
min-width: ${n.sp4};
|
|
566
|
+
color: ${R.brandColorGoldDark};
|
|
567
|
+
`,Tr=o(Ki)`
|
|
568
|
+
width: ${n.sp3};
|
|
569
|
+
height: ${n.sp3};
|
|
570
|
+
min-width: ${n.sp3};
|
|
571
|
+
color: ${e=>e.theme.colors.grey3};
|
|
572
|
+
`,an=o.div`
|
|
573
|
+
color: ${e=>e.isDisabled?e.theme.colors.grey2:e.theme.colors.primary};
|
|
574
|
+
text-align: left;
|
|
575
|
+
`,no=o.div`
|
|
576
|
+
color: ${R.brandColorGoldDark};
|
|
577
|
+
`,rn=o.div`
|
|
578
|
+
display: flex;
|
|
579
|
+
align-items: center;
|
|
580
|
+
gap: ${e=>e.isSuccess?n.sp2:n.sp3};
|
|
581
|
+
border: 1px solid
|
|
582
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.theme.colors.primary};
|
|
583
|
+
padding: ${n.sp3};
|
|
584
|
+
border-radius: ${n.sp2};
|
|
585
|
+
`,Dr=o.div`
|
|
586
|
+
display: flex;
|
|
587
|
+
flex-direction: column;
|
|
588
|
+
gap: ${n.sp3};
|
|
589
|
+
margin-bottom: ${e=>e.hasDuplicate||e.duplicateReimbursementStatus==="Error"?0:n.sp3};
|
|
590
|
+
`,oo=o.div`
|
|
591
|
+
display: flex;
|
|
592
|
+
align-items: center;
|
|
593
|
+
gap: ${e=>Pe.errorLineItemGap.valuePx(e.size)};
|
|
594
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGold};
|
|
595
|
+
background-color: ${R.alertLight};
|
|
596
|
+
padding: ${n.sp3};
|
|
597
|
+
border-radius: ${n.sp2};
|
|
598
|
+
text-align: left;
|
|
599
|
+
`,jr=o(bn)`
|
|
600
|
+
margin-top: ${e=>Pe.confirmationPopUpTitleMarginTop.valuePx(e.size)};
|
|
601
|
+
padding-left: ${e=>Pe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
602
|
+
padding-right: ${e=>Pe.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
|
+
`,Or=o($o)`
|
|
607
|
+
color: ${e=>e.theme.colors.hero};
|
|
608
|
+
padding-left: ${e=>Pe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
609
|
+
padding-right: ${e=>Pe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
610
|
+
margin-bottom: ${n.sp5};
|
|
611
|
+
margin-top: ${n.sp4};
|
|
612
|
+
white-space: pre-line;
|
|
613
|
+
width: -webkit-fill-available;
|
|
614
|
+
`,Uo=o(ki)`
|
|
615
|
+
width: ${n.sp4};
|
|
616
|
+
height: ${n.sp4};
|
|
617
|
+
min-width: ${n.sp4};
|
|
618
|
+
color: ${R.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:g,bulkActions:io}},common:{currency:{currencyCode:He,currencySymbol:At},texts:{comments:Pr},strings:{empty:Rr}},collaboration:{threads:{placeholder:{addANewComment:Lr,replyAComment:Ar},tooltip:{resolveComment:zr,unResolveComment:Br}}},dateFormat:ao}=$e.getLocalizedStrings(),ro="editReimbursementDetailPage",lo=e=>`${e}_form`,ln=(e,i,r)=>{const m=[];return Object.values(e.lineDetailSection).forEach((u,O)=>{u?.lineId!=null&&m.push(((d,D,j,C,l,k,c,f,y)=>{const p=d.outOfPocket,v=d.mileage,P=p.merchant,b=p.recommendations;return{lineIndex:k,lineId:d?.lineId??String(k+1),reimbursementType:d?.type??g.outOfPocketKey,file:d?.file,homeCurrencyConversions:{amount:d?.homeCurrencyConversions?.amount??0,currencyCode:d?.homeCurrencyConversions?.currencyCode??c.currencyCode,currencySymbol:d?.homeCurrencyConversions?.currencySymbol??c.currencySymbol},outOfPocket:{recommendedAccount:p.recommendedAccount,isCategoryUpdateSelected:p.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:p.isCategoryFirstTimeAutofilled??!1,retainedAccount:p.retainedAccount,isRetainedCategorySelected:p.isRetainedCategorySelected??!1,recommendations:b??[],transactionDate:p?.transactionDate?.toDate()??void 0,class:{allOptions:Ge(Xe(j,[])),selectedOption:p?.lineDetail?.class?.classId??y},account:{allOptions:Ge(Et(D,b)),selectedOption:p.lineDetail?.account?.qboId??p.lineDetail?.account?.accountId},customer:{defaultOptions:Bn(p?.lineDetail?.customer),selectedOption:p?.lineDetail?.customer?.id},amount:{amount:p?.amount??0,currencyCode:p?.currencyCode??c.currencyCode,currencySymbol:p?.currencySymbol??c.currencySymbol,currency:{allOptions:f.map($=>({label:`${$.currencyCode} - ${$.currency}`,value:$.currencyCode,countryCode:yn($.countryCode)})),selectedOption:p?.currencyCode??c.currencyCode??He}},memo:p?.description??void 0,merchant:{allOptions:C.map($=>$.id).filter($=>!!$),selectedOption:P?.id?P?.id:P?.name?P?.name:d?.lineId!=null?l[d?.lineId]:void 0}},mileage:{transactionDate:v?.transactionDate?.toDate(),class:{allOptions:Ge(Xe(j,[])),selectedOption:v?.lineDetail?.class?.classId},customer:{defaultOptions:Bn(v?.lineDetail?.customer),selectedOption:v?.lineDetail?.customer?.id},distanceInMiles:v?.distanceMileage?.value,amount:{amount:v?.amount??0,currencyCode:v?.currencyCode??c.currencyCode,currencySymbol:v?.currencySymbol??c.currencySymbol},memo:v?.description}}})(u,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,O,i,e.allCurrencies,e.loggedInUserDepartmentId))}),m.length===0&&m.push(Wo(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,i,e.allCurrencies,e.loggedInUserDepartmentId)),{[Ft]:{reportTitle:e.whatForSection.reportTitle},[Cn]:m,[Ct]:{selectedOption:e.paymentTo,allOptions:r.map(u=>u.bankAccountId)}}},sn=(e,i)=>Object.values(e).reduce((r,m)=>r+(u=>u.lineId==null||i[u.lineId]?.fetchState==="In-Progress"?0:(i[u.lineId],u.type===g.mileageKey?u?.mileage?.amount??0:u?.outOfPocket?.currencyCode!==He&&u.homeCurrencyConversions?.amount!==u?.outOfPocket?.amount?u.homeCurrencyConversions?.amount??0:u?.outOfPocket?.amount??0))(m),0),cn=(e,i,r,m,u,O,d,D,j)=>{const C={};return e.lineInfo.forEach(l=>{const k=D.find(b=>b.classId===l.mileage.class.selectedOption),c=(()=>{const b=l.mileage.customer?.selectedOption;if(b==null)return;const $=j?.customer.find(z=>z.id===b);if($!=null)return $;const h=l.mileage.customer?.defaultOptions?.find(z=>z.value===b);return h!=null?{id:h.value,name:h.label}:void 0})(),f=d.find(b=>b.qboId===l.outOfPocket.account.selectedOption||b.accountId===l.outOfPocket.account.selectedOption),y=D.find(b=>b.classId===l.outOfPocket.class.selectedOption),p=(()=>{const b=l.outOfPocket.customer?.selectedOption;if(b==null)return;const $=j?.customer.find(z=>z.id===b);if($!=null)return $;const h=l.outOfPocket.customer?.defaultOptions?.find(z=>z.value===b);return h!=null?{id:h.value,name:h.label}:void 0})(),v=i.find(b=>b.id===l.outOfPocket.merchant.selectedOption),P=O.find(b=>b.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;C[l.lineId]={fileId:l.file?.fileId,lineId:l.lineId,type:l.reimbursementType,homeCurrencyConversions:l.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:l.mileage.memo??"",lineDetail:{class:k,customer:c},transactionDate:l.mileage.transactionDate!=null?st(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??P,currencySymbol:l.mileage.amount?.currencySymbol??P,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:y,account:f,customer:p},transactionDate:l.outOfPocket.transactionDate!=null?st(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??P,currencySymbol:P,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:v?.id??"",name:v?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:C,totalAmount:{amount:m,...r},currencyConversionStateByLineId:u,paymentTo:e.paymentTo.selectedOption}},so=({remiDetails:e,authParams:i,defaultCurrency:r,customerSearchAutoCompleteData:m,customerSearchAutoCompleteActions:u,companyMileageConfigInfo:O,uploadInvoiceEndPoint:d,isReimbursementCommentingEnabled:D,isUserAdmin:j,analytics:C,reimbursementId:l,plaidConnectionDetails:k,bankAccountCreationState:c,bankNameByRouting:f,bankAccounts:y,isSignedInUserReimbursementCreator:p,uncategorizedAccounts:v,bankAccountToCreate:P,fetchBankNameByRoutingStatus:b,onUserBankDetailsUpdated:$,onFetchBankName:h,onSaveBankAccount:z,fetchDuplicateReimbursement:ne,clearDuplicateReimbursementDetail:oe,clearRemiSaveStatus:le,removeDuplicateReimbursementForLine:E,onDuplicateLineClick:ue,onExistingMerchantChange:G,onNewMerchantChange:se,onReceiptsUpload:U,saveRemiDetails:ie,submitRemiDetails:M,discardReimbursementDetailsFromLocalStore:Q,onReimbursementDetailsChanged:ce,updateReimbursementType:V,onHomeCurrencyConversionUpdate:Te,redirectToReimbursementListScreen:De,redirectToReimbursementDetailScreen:me,deleteReimbursement:pe,removeFileFromLine:he,onZeniLogoClick:Be,onAmountChanged:Le,updateInvoiceUploadFetchState:je,clearTentativeNameForLine:xe,onAddNewRule:S,onFetchLinkTokenClick:_,onEstablishConnectionClick:ge,deleteBankAccount:Ye,onBackClickFromBankAccountPage:q,initialOpenThreadRequest:Ve})=>{const Ze=w.useRef(null),dt=w.useRef(null),et=pn(e.uploadStatus),_e=kt(),Me=ft(),[tt,Fe]=w.useState(!1),[Je,Qe]=w.useState(!1),[nt,ut]=w.useState("save"),[ye,ot]=w.useState(sn(e.lineDetailSection,e.currencyConversionStatus)),[ae,mt]=w.useState(!1),[F,Ce]=w.useState(null),[Vt,Z]=w.useState(!1),Ae=`dashboard_${Me.currentTenant?.companyId}`,Ee=mo({mode:"all",reValidateMode:"onChange",defaultValues:w.useMemo(()=>ln(e,r,y),[e,r,y]),values:w.useMemo(()=>ln(e,r,y),[e,r,y]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:Vo,dirtyFields:_o}=Ee.formState,kn=w.useMemo(()=>Rn((I,L)=>(async(B,We)=>{const{lineInfo:x}=We,T=Number(B.split(".")[1]);if(B.includes("reportTitle")||B.includes("memo"))return;if(B.includes("reimbursementType")){const N=x[T].mileage,H=x[T].outOfPocket;x[T]={...x[T],outOfPocket:{transactionDate:H.transactionDate??void 0,class:{allOptions:H.class.allOptions??Ge(Xe(e.classHierarchyList,[])),selectedOption:H.class.selectedOption??void 0},account:{allOptions:H.account.allOptions??Ge(Et(e.accountsHierarchyList,[])),selectedOption:H.account.selectedOption??void 0},amount:H.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(ke=>({label:`${ke.currencyCode} - ${ke.currency}`,value:ke.currencyCode,countryCode:yn(ke.countryCode)})),selectedOption:r.currencyCode??He}},memo:H.memo??void 0,merchant:H.merchant??void 0,recommendations:H.recommendations??[],recommendedAccount:H.recommendedAccount??void 0,isCategoryUpdateSelected:H.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:H.isCategoryFirstTimeAutofilled??!1,retainedAccount:H.retainedAccount??void 0,isRetainedCategorySelected:H.isRetainedCategorySelected??!1,customer:H.customer??void 0},mileage:{transactionDate:N.transactionDate??void 0,class:{allOptions:N.class.allOptions??Ge(Xe(e.classHierarchyList,[])),selectedOption:N.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:N.distanceInMiles,amount:{amount:N?.amount?.amount??0,currencyCode:N?.amount?.currencyCode??He,currencySymbol:N?.amount?.currencySymbol??At},memo:N.memo??void 0,customer:N.customer??void 0}}}else if(B.includes("mileage.distanceInMiles")){const{distanceInMiles:N}=x[T].mileage,H=O?.mileageUnitAmount??0;x[T].mileage={...x[T].mileage,amount:{amount:N!=null?N*H:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(B.includes("outOfPocket.amount")&&x[T].lineId){const N=x[T].outOfPocket.amount,H=e.allCurrencies.find(ke=>ke.currencyCode===N?.currency.selectedOption)?.currencySymbol;if(N?.currencyCode!==N?.currency.selectedOption){const ke=N?.currency?.allOptions||[];x[T].outOfPocket.amount={currency:{allOptions:ke,selectedOption:N?.currency?.selectedOption},amount:x[T].outOfPocket?.amount?.amount??0,currencyCode:N?.currency.selectedOption??He,currencySymbol:H??At}}if(N?.currency.selectedOption!==He)mt(!0),Qo(x[T].lineId,He);else{const ke={};x.forEach(en=>{ke[en.lineId]={lineId:en.lineId,homeCurrencyConversions:en.homeCurrencyConversions}}),x[T].homeCurrencyConversions={amount:N.amount??0,currencyCode:N?.currency.selectedOption??He,currencySymbol:H??At};const Pn=sn(ke,e.currencyConversionStatus);ye!==Pn&&ot(Pn)}}else if(B.includes("outOfPocket.isRetainedCategorySelected"))x[T].outOfPocket.isRetainedCategorySelected===!0&&(x[T].outOfPocket.isCategoryUpdateSelected=!1,x[T].outOfPocket.account.selectedOption=x[T].outOfPocket.retainedAccount?.qboId);else if(B.includes("outOfPocket.isCategoryUpdateSelected"))if(x[T].outOfPocket.isCategoryUpdateSelected===!0)x[T].outOfPocket.account.selectedOption=x[T].outOfPocket.recommendedAccount?.qboId,x[T].outOfPocket.isRetainedCategorySelected=!1;else{const N=x[T].lineId,H=e.editRemiInitialDetails.lineDetailSection[N]?.lineDetail?.account?.qboId;x[T].outOfPocket.account.selectedOption=H,x[T].outOfPocket.isRetainedCategorySelected=!1}else B.includes("outOfPocket.account")&&(x[T].outOfPocket.recommendations.length>0&&(x[T].outOfPocket.recommendedAccount=x[T].outOfPocket.recommendations[0].account),x[T].outOfPocket.recommendedAccount?.qboId!=null&&x[T].outOfPocket.account.selectedOption===x[T].outOfPocket.recommendedAccount?.qboId?x[T].outOfPocket.isCategoryUpdateSelected=!0:x[T].outOfPocket.isCategoryUpdateSelected=!1,x[T].outOfPocket.retainedAccount?.qboId!=null&&x[T].outOfPocket.account.selectedOption===x[T].outOfPocket.retainedAccount?.qboId?x[T].outOfPocket.isRetainedCategorySelected=!0:x[T].outOfPocket.isRetainedCategorySelected=!1,x[T].outOfPocket.isCategoryFirstTimeAutofilled=!1);const jt=cn({...We,lineInfo:x},e.merchantList.merchants,r,ye,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes,m?.entityAutoCompleteView);if(ce?.(jt),B.includes("outOfPocket.merchant")){const N=x[T].lineId,H=x[T].outOfPocket.merchant.selectedOption??"";x[T].outOfPocket.merchant.allOptions.find(ke=>ke===H)!=null?G(H,N):se(H,N)}})(I,L),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);w.useEffect(()=>{const I=Ee.watch((L,{name:B})=>{B!=null&&L!=null&&kn(B,L)});return()=>{I.unsubscribe()}},[kn,Ee]),w.useEffect(()=>{const I=Ei(Object.values(e.currencyConversionStatus)),L=I.fetchState==="In-Progress"||I.fetchState==="Error";mt(L)},[e.currencyConversionStatus]),w.useEffect(()=>{for(const L in e.currencyConversionStatus){const B=e.lineDetailSection[L],We=e.lineDetailSection[L];e.currencyConversionStatus[L].fetchState==="Completed"&&We!=null&&B.type!==g.mileageKey&&!po(B?.homeCurrencyConversions,We.homeCurrencyConversions)&&Te({amount:B?.homeCurrencyConversions?.amount??0,currencyCode:B?.homeCurrencyConversions?.currencyCode??He,currencySymbol:B?.homeCurrencyConversions?.currencySymbol??At},L,l)}const I=sn(e.lineDetailSection,e.currencyConversionStatus);ye!==I&&ot(I)},[e.currencyConversionStatus,e.lineDetailSection]),w.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(Q(l),De?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,l,Q,De]);const A=ze(),[Ne,xt]=w.useState(l==null),[wt,Ho]=w.useState(1),[qo,_t]=w.useState(!1),[Ko,Go]=w.useState(""),[Ht,Yo]=w.useState(null),[Zo,pt]=w.useState(!1),[Jo,In]=w.useState(!1),[qt,Kt]=w.useState([]),[we,Tt]=w.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),Gt=w.useRef(),Qo=w.useRef(Rn((I,L)=>Le(I,L),500,{trailing:!0})).current;w.useEffect(()=>{m?.entityAutoCompleteView.fetchState==="Completed"&&(Gt.current?.(li(m.entityAutoCompleteView)),Gt.current=void 0)},[m]),w.useEffect(()=>{et==="In-Progress"&&(e.uploadStatus==="Completed"?(Ee.reset(ln(e,r,y),{keepDefaultValues:!0}),Fe(!1),xt(!1)):e.uploadStatus==="Error"&&Fe(!1))},[et,e.uploadStatus,Ee,e,tt,Fe,Ne,r,y,C]),w.useEffect(()=>{e.uploadStatus==="In-Progress"&&Ne===!1&&Fe(!0)},[e.uploadStatus,Fe,Ne]);const Yt=e.remiStage==="draft"?g.newReimbursementTitle:g.editReimbursementTitle,Xo={onOkClick:()=>{if(pt(!1),we.primaryButtonText===g.buttons.discard)Q(l),e.remiStage==="draft"?De?.():me?.();else if(we.primaryButtonText===g.buttons.delete)we.title===g.deleteBankAccountTitle?Ye?.(Ko):pe?.();else if(we.primaryButtonText===g.buttons.yes&&Ht!=null){const I=qt.filter(L=>L!==wt.toString());Kt(I),U(Ht,wt,!0)}},onCancelClick:()=>{if(pt(!1),we.secondaryButtonText===g.buttons.no){const I=qt.filter(L=>L!==wt.toString());Kt(I),U(Ht,wt,!1)}}},Tn=()=>{Vo||xi(_o)?(Tt({title:g.discardTitle,description:g.discardDescription,primaryButtonText:g.buttons.discard,secondaryButtonText:g.buttons.cancel}),pt(!0)):(Q(l),De?.())},Dn=()=>{if(j&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")Tn();else{ut("save");const I=Ee.getValues(),L=cn(I,e.merchantList.merchants,r,ye,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes,m?.entityAutoCompleteView);ce?.(L);const B=L.whatForSection?.reportTitle;B!=null&&B.length>0?ie(e.remiStatus==="rejected"?"pending_approval":"draft"):Ee.trigger(`${Ft}.reportTitle`,{shouldFocus:!0})}};let Zt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(I=>{I.length>0&&(Zt=!0)});let jn=[];if(e.remiId==null){const I=ye??0;I>0&&(jn=e.approvalRules.allApprovalRules?.filter(L=>{const B=L.criteria[0].range;if(B.max!=null){if(B.min.amount<I&&B.max.amount>=I)return L}else if(B.min.amount<I)return L;return null}).map(L=>({...L,stepsWithStatus:L.steps.map(B=>({...B,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const ei=I=>{const L=(()=>{let B=!0;const We=[];return Object.values(e.lineDetailSection).forEach((x,T)=>{x.type===g.outOfPocketKey&&Mo(x)>=75&&x.file==null&&(We.push(x.lineId),B=!1)}),Kt(We),B})();return Ee.handleSubmit(()=>{L&&(ut("submit"),C?.trackReimbursementSubmitReimbursement(e.createTime?.format(ao.analytics.MMMDashDDDashYYYYFormat)??$n().format(ao.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,ye,l),oe(),In(!0))})(I)},ti=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,ni=e.reimbursementInfo?.paymentDate!=null?st(Po(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,oi=e.reimbursementInfo?.expectedDepositDate??ni,ii=l!=null&&e.remiStage==="draft",On=Ni(e.duplicateLineByLineId),Jt=e.duplicateReimbursementStatus.fetchState==="Completed"&&On>0,{requestToOpenThread:Qt,setRequestToOpenThread:Dt,setOpenThread:Xt}=w.useContext(si);w.useEffect(()=>{Ve?.threadId!=null&&Ve?.companyId!=null&&Ve?.entityType!=null&&Dt(Ve)},[Ve,Dt]);const{threads:St,isLoading:it}=ci();w.useEffect(()=>{Qt?.threadId!=null&&St.length>0&&!it&&(Xt(Qt.threadId),Dt(null))},[Qt,St,it,Xt,Dt]);const ai=w.useMemo(()=>l==null?[]:St.filter(I=>I.resolved===!1&&!I.id.includes(di)),[St,l]).length;return t.jsx(Fr,{ref:Ze,children:t.jsx(ui,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:dt.current??null}},children:t.jsxs(ho,{...Ee,children:[t.jsx("form",{id:lo(ro),onSubmit:I=>ei(I),children:t.jsxs(pl,{windowSize:A,ref:dt,children:[Zo?t.jsx(gn,{titleComponent:t.jsx(yo,{children:we.title}),descriptionComponent:t.jsx(go,{children:we.description}),primaryButtonText:we.primaryButtonText,secondaryButtonText:we.secondaryButtonText,action:Xo,proceedButtonVariant:we.title===g.deleteBankAccountTitle||we.title===g.deleteDraftTitle||we.title===g.deleteReportTitle||we.title===g.discardTitle?"danger":"primary",isEditPopup:we.title===g.deleteBankAccountTitle}):null,Jo?t.jsx(kr,{reimbursementId:l,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:Jt,numberOfDuplicateLines:On,setShowDuplicatePopup:In,submitReport:()=>{const I=Ee.getValues(),L=cn(I,e.merchantList.merchants,r,ye,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes,m?.entityAutoCompleteView);ce?.(L),M()},fetchDuplicateReimbursement:ne,clearDuplicateReimbursementDetail:oe,clearRemiSaveStatus:le,analytics:C}):null,tt?t.jsx(uo,{windowSize:A}):null,Ne?t.jsxs(uo,{windowSize:A,"data-testid":Y("skip-autofill-section"),children:[A==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Zr,{children:t.jsx(mn,{partOfSkipAutoFill:!0,size:A,onClick:()=>xt(!1),"data-testid":Y("close-invoice-upload"),children:t.jsx(un,{withOverlay:!0,children:t.jsx(dn,{})})})}),t.jsx(Qr,{children:Yt})]}):null,t.jsx(Lo,{showAutofill:Ne,analytics:C,onSkipAutofill:()=>{C?.trackReimbursementSkipAutofill(),xt(!1)},uploadInvoiceEndPoint:d,authParams:i,style:{width:te.leftSectionWidth.valuePercentage(A),boxSizing:"border-box",backgroundColor:A==="small"?_e.colors.grey4:"unset",padding:A==="small"?`${n.sp5} ${n.sp3}`:`78px ${n.sp6} 15px ${n.sp8}`,margin:A==="small"?n.sp0:void 0},onInvoiceUpload:I=>U(I,wt,!0),dropFilePlaceholder:{upload:g.dropReceipt.upload,single:g.dropReceipt.single,or:g.dropReceipt.or,multiple:g.dropReceipt.multiple,receipts:g.dropReceipt.receipts},updateInvoiceUploadFetchState:je,showInfoText:!1,allowMultiFiles:Ne,type:"reimbursement"}),A!=="small"?t.jsx(Jr,{children:t.jsx(mn,{partOfSkipAutoFill:!0,onClick:()=>xt(!1),"data-testid":Y("close-invoice-upload"),children:t.jsx(un,{withOverlay:!0,children:t.jsx(dn,{})})})}):null]}):null,t.jsxs(sl,{windowSize:A,"data-testid":Y("edit-reimbursement-detail-page-nav-bar-container"),children:[A!=="small"?t.jsx(Ln,{style:{width:"42%"},"data-testid":Y("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(cl,{"data-testid":Y("zeni-logo-spend-management-reimbursement-detail-page"),onClick:Be}),enableTitleOnScroll:!1,scrollableContent:Ze,backgroundColor:_e.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,A!=="small"?t.jsx(Er,{}):null,t.jsx(Ln,{style:{width:te.navBarWidth.valuePercentage(A)},"data-testid":Y("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:Yt,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Ne!=1?t.jsxs(dl,{children:[D&&l!=null?t.jsxs(ul,{isDisabled:it,"data-testid":Y("remi-comment-button"),onClick:it?()=>null:I=>{I.preventDefault(),I.stopPropagation(),Ce({roomId:Ae,companyId:Me.currentTenant?.companyId??"",companyName:Me.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:l}),Z(!0),C?.trackCommentActivity("reimbursement","clicked",Me.currentTenant?.companyName??"",Me.controllersList.controllers.map(L=>pi(L)),void 0,void 0,"page icon")},children:[t.jsx(mi,{count:it?void 0:ai,isLoading:it,style:{left:"12px"}}),t.jsx(ml,{})]}):null,t.jsx(mn,{size:A,onClick:()=>Tn(),"data-testid":Y("close-nav-bar"),children:t.jsx(un,{withOverlay:!1,children:t.jsx(dn,{})})})]}):null,enableTitleOnScroll:A!=="small",scrollThreshold:64,scrollableContent:Ze,backgroundColor:_e.colors.grey4})]}),A==="small"?t.jsxs(t.Fragment,{children:[t.jsx(ll,{children:Yt}),t.jsx(hi,{progressSectionObj:ti,createDate:e.createTime,paymentDate:oi,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:l!=null||e.uploadStatus==="Completed"}),Zt&&t.jsxs(tl,{children:[t.jsx(el,{}),t.jsx(nl,{children:g.banner})]}),e.isProcessing?t.jsx(bo,{variant:"warning",style:{margin:A==="small"?`${n.sp5} ${n.sp3}`:`${n.sp3} ${n.sp8} ${n.sp3} ${n.sp6}`},title:io.duplicateWarning.title,description:io.duplicateWarning.description}):Jt?t.jsxs(ol,{size:A,children:[t.jsx(Vr,{}),t.jsxs(al,{children:[t.jsx(il,{children:g.thereSeems}),t.jsx(rl,{children:g.pleaseFind})]})]}):null,t.jsx(Bo,{isReimbursementCommentingEnabled:D,sectionId:Ft,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(tr,{onDuplicateLineClick:ue,reimbursementId:l,remiDetails:e,uploadInvoiceEndPoint:d,authParams:i,showSkipAutoFill:Ne,setShowSkipAutoFill:xt,isReimbursementCommentingEnabled:D,isAutoFieldsExist:Zt,totalAmount:ye,removeFileFromLine:he,onReplaceClick:()=>{Tt({title:g.overwriteTitle,description:g.overwriteDescription,primaryButtonText:g.buttons.yes,secondaryButtonText:g.buttons.no}),pt(!0)},onReceiptsUpload:U,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Ho,setUploadedReceiptPayload:Yo,updateInvoiceUploadFetchState:je,clearTentativeNameForLine:xe,defaultCurrency:r,companyMileageConfigInfo:O,isUserAdmin:j,setShowBankAccountPage:_t,bankAccounts:y,onDeleteBankAccount:I=>{Go(I),Tt({title:g.deleteBankAccountTitle,description:g.deleteBankAccountDescription,primaryButtonText:g.buttons.delete,secondaryButtonText:g.buttons.cancel}),pt(!0)},analytics:C,fileRequiredLineIds:qt,isSignedInUserReimbursementCreator:p,uncategorizedAccounts:v,showTotalAmountLoader:ae,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:Jt,removeDuplicateReimbursementForLine:E,scrollContainerRef:Ze,customerSearchAutoComplete:m!=null?{customerSearchAutoCompleteData:m,loadOptions:(I,L)=>{u?.onAutoCompleteInputChange?.(I,"customer"),Gt.current=L}}:void 0}),t.jsxs(hl,{showSkipAutoFill:Ne,windowSize:A,children:[A!=="small"?t.jsx(co,{}):null,t.jsx(gl,{windowSize:A,children:t.jsxs(yl,{windowSize:A,children:[e.remiId!==void 0&&t.jsx(An,{amount:ye??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:S,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&ye!=null&&ye>0?t.jsx(An,{amount:ye??0,activities:jn,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(bl,{}),t.jsxs(Xr,{showSkipAutoFill:Ne,windowSize:A,children:[A!=="small"?t.jsx(co,{}):null,t.jsx(Nr,{windowSize:A,onClick:I=>{I.stopPropagation(),Je===!0&&Qe(!1)},children:t.jsx(fo,{formId:lo(ro),separatorStyle:{marginRight:n.sp4},showCancel:p,cancelBtn:{label:j&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?A==="small"?g.buttons.discard:g.buttons.discardChanges:A==="small"?g.buttons.save:g.buttons.saveChanges,isLoading:nt==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:Dn,style:{width:te.footerButtonWidth.value(A)},reverseSpinnerColor:!1},primaryBtn:{label:Mr(p,j,e,A),isDisabled:!p,style:{width:p?te.footerButtonWidth.value(A):"auto"},type:p?"submit":"button",onClick:p?()=>null:Dn,isLoading:!p&&nt==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Wr,{children:t.jsxs(Kr,{windowSize:A,children:[Je?t.jsx(xo,{onClickAway:()=>Qe(!1),children:t.jsx(qr,{windowSize:A,"data-testid":Y("remi-other-actions-container"),children:t.jsx(Gr,{onClick:()=>{Tt({title:e.remiStage==="draft"?g.deleteDraftTitle:g.deleteReportTitle,description:g.deleteAlertDescription,primaryButtonText:g.buttons.delete,secondaryButtonText:g.buttons.cancel}),pt(!0)},"data-testid":Y("delete-report-action"),children:g.buttons.deleteReport})})}):null,t.jsx(Hr,{windowSize:A,children:ii===!0?t.jsx(_r,{windowSize:A,"data-testid":Y("more-details-button"),children:t.jsx(Ur,{onClick:()=>Qe(!Je)})}):null})]})}),style:{minHeight:62}})})]}),D&&l!=null?t.jsx(gi,{isDrawerOpen:Vt,allowComposer:!0,drawerTitle:Pr,threads:St,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:F?.companyId??Rr,isGlobalComment:!1,tab:"reimbursement"},isLoading:it,threadMetadata:F?{companyName:F.companyName,companyId:F.companyId,entityId:F.entityId,entityType:F.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:Lr,replyComposerPlaceholder:Ar,threadResolve:zr,threadUnResolve:Br},onThreadClick:(I,L)=>((B,We)=>{Xt(We);const x=B.entityType.split("."),T=parseInt(x[2]);if(isNaN(T))return void Z(!1);const jt=`${T+1}`,N=e.lineDetailSection[T+1].type;x.includes(g.mileageKey)&&N===g.outOfPocketKey?V(Wn(g.mileageKey),jt,l):x.includes(g.outOfPocketKey)&&N===g.mileageKey&&V(Wn(g.outOfPocketKey),jt,l),Z(!1)})(I,L),onCloseAllThreadsDrawer:()=>Z(!1),drawerSectionStyle:{width:"400px",backgroundColor:_e.colors.background}}):null]})}),qo?t.jsx(Yr,{windowSize:A,children:t.jsx(pr,{bankAccountCreationState:c,setShowBankAccountPage:_t,plaidConnectionDetails:k,onFetchLinkTokenClick:_,onEstablishConnectionClick:ge,onSaveHandler:z,bankAccountToCreate:P,bankNameByRouting:f,fetchBankNameByRoutingStatus:b,onUserBankDetailsUpdated:$,onFetchBankName:h,onBackClick:()=>{q(),_t(!1)}})}):null]})})})},Wl=e=>{const i=ft().currentTenant?.companyId,{isReimbursementCommentingEnabled:r,reimbursementId:m}=e;if(!r||m==null||i==null)return t.jsx(so,{...e});const u=`dashboard_${i}`;return t.jsx(ri,{roomId:u,filter:{application:"dashboard",companyId:i,entityId:m,tab:"reimbursement",isGlobalComment:!1},children:t.jsx(so,{...e})})},Mr=(e,i,r,m)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?g.buttons.resubmit:g.buttons.submit:i&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?m==="small"?g.buttons.discard:g.buttons.discardChanges:m==="small"?g.buttons.save:g.buttons.saveChanges,Fr=o.div`
|
|
620
|
+
position: relative;
|
|
621
|
+
height: 100vh;
|
|
622
|
+
overflow-y: scroll;
|
|
623
|
+
`,Er=o.div`
|
|
624
|
+
position: fixed;
|
|
625
|
+
top: 0;
|
|
626
|
+
left: 42vw;
|
|
627
|
+
width: 100%;
|
|
628
|
+
height: 100vh;
|
|
629
|
+
background: transparent;
|
|
630
|
+
box-shadow: 0 2px ${n.sp1} ${({theme:e})=>e.colors.dropShadowNormal};
|
|
631
|
+
pointer-events: none;
|
|
632
|
+
z-index: 3;
|
|
633
|
+
`,Nr=o.div`
|
|
634
|
+
width: ${e=>te.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
635
|
+
`,Wr=o.div`
|
|
636
|
+
display: flex;
|
|
637
|
+
justify-content: flex-end;
|
|
638
|
+
`,Ur=o(Si)`
|
|
639
|
+
cursor: pointer;
|
|
640
|
+
color: ${e=>e.theme.colors.hero};
|
|
641
|
+
width: ${n.sp5};
|
|
642
|
+
height: ${n.sp5};
|
|
643
|
+
&:hover {
|
|
644
|
+
color: ${e=>e.theme.colors.primary};
|
|
645
|
+
}
|
|
646
|
+
`,Vr=o(Fi)`
|
|
647
|
+
width: ${n.sp4};
|
|
648
|
+
height: ${n.sp4};
|
|
649
|
+
color: ${R.brandColorGoldDark};
|
|
650
|
+
`,_r=o.div`
|
|
651
|
+
display: flex;
|
|
652
|
+
margin-left: ${e=>e.windowSize==="small"?n.sp4:n.sp5};
|
|
653
|
+
cursor: pointer;
|
|
654
|
+
color: ${e=>e.theme.colors.grey1};
|
|
655
|
+
&:hover {
|
|
656
|
+
color: ${e=>e.theme.colors.primary};
|
|
657
|
+
}
|
|
658
|
+
`,Hr=o.div`
|
|
659
|
+
display: flex;
|
|
660
|
+
justify-content: center;
|
|
661
|
+
align-items: center;
|
|
662
|
+
`,qr=o.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: ${n.sp1};
|
|
672
|
+
padding-bottom: ${n.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: ${n.sp1};
|
|
678
|
+
right: ${e=>te.right.valuePx(e.windowSize)};
|
|
679
|
+
box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.grey1} 3D`};
|
|
680
|
+
`,Kr=o.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
|
+
`,Gr=o(wn)`
|
|
688
|
+
display: flex;
|
|
689
|
+
align-items: center;
|
|
690
|
+
width: -webkit-fill-available;
|
|
691
|
+
padding-left: ${n.sp3};
|
|
692
|
+
padding-right: ${n.sp3};
|
|
693
|
+
height: ${n.sp6};
|
|
694
|
+
box-sizing: border-box;
|
|
695
|
+
&:hover {
|
|
696
|
+
background-color: ${e=>e.theme.colors.background};
|
|
697
|
+
}
|
|
698
|
+
`,Yr=o.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
|
+
`,Zr=o.div`
|
|
708
|
+
background: ${e=>e.theme.colors.grey4};
|
|
709
|
+
height: 44px;
|
|
710
|
+
display: flex;
|
|
711
|
+
align-items: center;
|
|
712
|
+
justify-content: end;
|
|
713
|
+
`,Jr=o.div`
|
|
714
|
+
width: 58%;
|
|
715
|
+
`,Qr=o(bn)`
|
|
716
|
+
padding: ${n.sp3} ${n.sp3} 0 ${n.sp3};
|
|
717
|
+
background: ${e=>e.theme.colors.grey4};
|
|
718
|
+
color: ${e=>e.theme.colors.primary};
|
|
719
|
+
`,Xr=o.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
|
+
`,co=o.div`
|
|
726
|
+
width: 42%;
|
|
727
|
+
`,el=o(fn)`
|
|
728
|
+
color: ${e=>e.theme.colors.primary};
|
|
729
|
+
width: ${n.sp3};
|
|
730
|
+
height: ${n.sp3};
|
|
731
|
+
`,tl=o.div`
|
|
732
|
+
display: flex;
|
|
733
|
+
gap: ${n.sp2};
|
|
734
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
735
|
+
padding: ${n.sp3};
|
|
736
|
+
border-radius: ${n.sp2};
|
|
737
|
+
align-items: center;
|
|
738
|
+
margin: ${n.sp3};
|
|
739
|
+
`,nl=o.span`
|
|
740
|
+
color: ${e=>e.theme.colors.hero};
|
|
741
|
+
`,ol=o.div`
|
|
742
|
+
display: flex;
|
|
743
|
+
gap: ${n.sp2};
|
|
744
|
+
padding: ${n.sp3};
|
|
745
|
+
border-radius: ${n.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: ${R.alertLight};
|
|
752
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
753
|
+
`,il=o(Ut)`
|
|
754
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
755
|
+
`,al=o.div`
|
|
756
|
+
width: 100%;
|
|
757
|
+
`,rl=o(vn)`
|
|
758
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
759
|
+
`,ll=o(bn)`
|
|
760
|
+
letter-spacing: -0.02em;
|
|
761
|
+
color: ${e=>e.theme.colors.primary};
|
|
762
|
+
margin: ${n.sp3};
|
|
763
|
+
`,uo=o.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: ${R.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
|
+
`,sl=o.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
|
+
`,cl=o(bi)`
|
|
782
|
+
display: flex;
|
|
783
|
+
color: ${e=>e.theme.colors.brandColorJade};
|
|
784
|
+
cursor: pointer;
|
|
785
|
+
width: ${n.sp4};
|
|
786
|
+
height: ${n.sp4};
|
|
787
|
+
`,dn=o(wo)`
|
|
788
|
+
cursor: pointer;
|
|
789
|
+
width: ${n.sp4};
|
|
790
|
+
height: ${n.sp4};
|
|
791
|
+
float: right;
|
|
792
|
+
color: inherit;
|
|
793
|
+
`,un=o.div`
|
|
794
|
+
color: ${e=>e.theme.colors.hero};
|
|
795
|
+
&:hover {
|
|
796
|
+
color: ${e=>e.withOverlay?R.primaryDark:e.theme.colors.primary};
|
|
797
|
+
}
|
|
798
|
+
`,dl=o.div`
|
|
799
|
+
margin-top: ${e=>te.closeMarginTop.valuePx(e.windowSize)};
|
|
800
|
+
display: flex;
|
|
801
|
+
float: right;
|
|
802
|
+
`,ul=o.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
|
+
`,ml=o(fi)`
|
|
814
|
+
display: flex;
|
|
815
|
+
width: ${n.sp4};
|
|
816
|
+
height: ${n.sp4};
|
|
817
|
+
align-items: center;
|
|
818
|
+
justify-content: center;
|
|
819
|
+
`,mn=o.div`
|
|
820
|
+
margin-top: ${e=>e.partOfSkipAutoFill===!0?te.closeMarginTop.valuePx(e.size):0};
|
|
821
|
+
margin-left: ${n.sp5};
|
|
822
|
+
margin-right: ${e=>e.partOfSkipAutoFill===!0?te.closeMarginRight.valuePx(e.size):0};
|
|
823
|
+
`,pl=o.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
|
+
`,hl=o.div`
|
|
853
|
+
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
854
|
+
width: 100%;
|
|
855
|
+
margin-bottom: ${e=>te.bottomMargin.valuePx(e.windowSize)};
|
|
856
|
+
`,gl=o.div`
|
|
857
|
+
width: ${e=>te.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
858
|
+
`,yl=o.div`
|
|
859
|
+
margin-left: ${e=>te.leftMargin.valuePx(e.windowSize)};
|
|
860
|
+
margin-right: ${e=>te.rightMargin.valuePx(e.windowSize)};
|
|
861
|
+
`,bl=o.div`
|
|
862
|
+
display: flex;
|
|
863
|
+
flex-direction: column;
|
|
864
|
+
height: ${n.sp11};
|
|
865
|
+
`;export{Wl as default,lo as uniqueName};
|