@zeniai/web-cockpit-ui 1.15.41-qa → 1.15.42-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-DF16gWgj-Hpn_gqDU.js +21 -0
- package/dist/assets/{AIPerformancePage-PNdYt7zU-CCfuxILG.js → AIPerformancePage-C4vz8N43-CRGg0PbR.js} +41 -41
- package/dist/assets/AccountInfoPage-BEfWt7FF-DKS41VFv.js +18 -0
- package/dist/assets/{AccountInfoPageContent-ByDC4GDX-Dqc4SPDG.js → AccountInfoPageContent-ChU5cJoQ-D9IyZyne.js} +20 -20
- package/dist/assets/AccountLockedInfoModal-nR2S2Zp3-D-cVlgUn.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-C3eByWLq-C6RBkRVB.js → AccountReconDetailsDrawerPage-CX_r0vhF-C1q9rEkK.js} +49 -49
- package/dist/assets/{AccountRow-H8lG1wjG-BENCFocK.js → AccountRow-sz0SNySJ-PMcRks2g.js} +20 -20
- package/dist/assets/{AccountsPromoCardStack-DACW0OlS-D7dbT3SC.js → AccountsPromoCardStack-B7XZ57f9-CVIKbG9H.js} +26 -26
- package/dist/assets/AddAddressForCardDrawer-BJ-fZGjY-BgqrlNw3.js +6 -0
- package/dist/assets/{AddToWalletPage-CXsdXmY4-DqUKB32H.js → AddToWalletPage-DGRSRVWe-CKFgsCEX.js} +22 -22
- package/dist/assets/{AgingReportsPage-G-3_Pd0O-DSzSGoMU.js → AgingReportsPage-DMExghvs-CycrXnxr.js} +4 -4
- package/dist/assets/{AllUserItems-C87o610O-C4ngO1W2.js → AllUserItems-DryGxINS-Dfji-7g8.js} +9 -9
- package/dist/assets/ApAgingDetailPage-DGx58n1N-BTsjh3-_.js +46 -0
- package/dist/assets/{AppBasePage-CVtUuOcc-D8Jp442P.js → AppBasePage-CNTgjZKQ-wPJItjxh.js} +7 -7
- package/dist/assets/{AppDrawerContent-f9CovWwx-CRmwucEK.js → AppDrawerContent-BWPrhBXi-xs-4ykwH.js} +5 -5
- package/dist/assets/{ApprovalRulesSettingsPage-MV9MWn1n-B_Gy9F2m.js → ApprovalRulesSettingsPage-d_j1Of5B-Drv5uoVo.js} +3 -3
- package/dist/assets/{ArAgingChart-Bn1ne5TY-gOLToFjY.js → ArAgingChart-OG8ATXHG-BPTtTowJ.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-LrJ7ab5--DpGQFGj1.js → ArAgingDetailPage-BPgtjmm2-3KI_6Cxg.js} +1 -1
- package/dist/assets/{AttachmentView-40S92NKz-O72HtTZp.js → AttachmentView-DTHxVIEf-OlbTumHp.js} +8 -8
- package/dist/assets/{BankAccountSection-BqHvCCIV-cPbSA8Xj.js → BankAccountSection-CJlVvGHg-BpmPk2BK.js} +3 -3
- package/dist/assets/{BankAccountWarningSection-BhYGVsUP-Bgxn65RB.js → BankAccountWarningSection-DVVX_lU2-YGd3zWAN.js} +4 -4
- package/dist/assets/{BankConnectionsSettingsPage-DXdPI9zA-DT9EhfPP.js → BankConnectionsSettingsPage-tN8-HD1P-CjUFfCmd.js} +25 -25
- package/dist/assets/BillDetailPage-Bm_TJJ2g-zy6sbh4h.js +266 -0
- package/dist/assets/{BillPayApprovalRuleDetailPage-CfqhwDf0-DCyv7vx2.js → BillPayApprovalRuleDetailPage-DtdRRgcR-CI7_XiGE.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-BYFmAM12-pZa4t15e.js → BillPayApprovalRulesPage-D7pP_-16-BPbHVQJF.js} +13 -13
- package/dist/assets/BillPayPromoPage-BEUu8_p_-CdxN39Ja.js +84 -0
- package/dist/assets/{BillPaySetUpPage-DWl8Zqs1-uZakaQ8Q.js → BillPaySetUpPage-BhUjqdEO-D4O_Ti0B.js} +4 -4
- package/dist/assets/BillingSettingsPage-BPRhivDv-C05om7fp.js +44 -0
- package/dist/assets/BillsBulkReviewDrawerPage-CKS2cRrv-BkJLG09t.js +1 -0
- package/dist/assets/{BoxItem-Ce8JhxRe-M9xWkSbH.js → BoxItem-BeIteKFb-Ib8SQzK0.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DBUiYheW-CjRSQJ04.js → BusinessVerificationPage-Djw-kSvA-C_VqSsA_.js} +6 -6
- package/dist/assets/{CardNumberSubText-1VICaGZC-D3RqCdk-.js → CardNumberSubText-D7w7pNlf-px0UUmwV.js} +1 -1
- package/dist/assets/{CashbackDetailPage-D9MFQhkK-DId8X-0z.js → CashbackDetailPage-DiEz5YX_-8CUn3oj8.js} +18 -18
- package/dist/assets/{ChargeCardDetailPage-DPLktTU0-D-hVAQ2P.js → ChargeCardDetailPage-46d4rGgi-C8VEOYGw.js} +53 -53
- package/dist/assets/{ChargeCardListPage-PJbJVy9B-C7swXn1_.js → ChargeCardListPage-DQgEFDxx-CRF2CXoG.js} +16 -16
- package/dist/assets/{ChargeCardListTable-B7Jltqnn-lu4L-KiX.js → ChargeCardListTable-CAdFvZrg-ZDs6pP1D.js} +30 -30
- package/dist/assets/{ChargeCardPaymentHistoryPage-CY9nng7V-DMOUwpBt.js → ChargeCardPaymentHistoryPage-BVFfqwea-BY1rljaa.js} +36 -36
- package/dist/assets/{ChargeCardPromoPage-CQJ-q6d9-CAZVMp3A.js → ChargeCardPromoPage-N1x7DoZ4-C2G2NFcL.js} +25 -25
- package/dist/assets/{ChargeCardSetupPage-BjYXhI41-1PD6oZTx.js → ChargeCardSetupPage-DjoSNPoV-B95V0M5O.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-BJhMyv01-C4iLvalo.js → ChargeCardStatementsPage-CKWgdycu-Bzkf2xU2.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-BDUc5zew-CPIt8X_J.js → CheckDepositDrawerPage-C6eutpsP-BJgM-nd0.js} +8 -8
- package/dist/assets/{CollapsableReportTable-CRZijlLw-DrP1MH6t.js → CollapsableReportTable-DQitA-HH-D-ytul6z.js} +86 -86
- package/dist/assets/{CompanyOfficerDetailsSection-DBN5fsfV-BQ3P2-gb.js → CompanyOfficerDetailsSection-BusB8QML-ByGBO89M.js} +15 -15
- package/dist/assets/{CompanyPassportCard-DY-UpT4X-C4b0dPrE.js → CompanyPassportCard-Dwq6U23E-Dff0N9f5.js} +2 -2
- package/dist/assets/{CompanyPassportPage-B0lEp15Z-1i_bghIC.js → CompanyPassportPage-a7p7-Yf7-BH2Ltdk_.js} +23 -23
- package/dist/assets/{CompleteProfile-DkXUTjrQ-Db_nzBJO.js → CompleteProfile-Be83xc7S-DF09SnKJ.js} +1 -1
- package/dist/assets/ConfettiBurst-BGpaNgtO-BA4--k5u.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-CfTvgjDM.js → ConstrainedInnerElement-BeIpAPjB-B_QUqBfd.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-hAG6iJks-lkeljyMv.js → CreateOrEditVendorPage-CNOoNMGf-xbewlduj.js} +19 -19
- package/dist/assets/{CreditCardPaymentDrawerPage-CLche8ye-C_34ZvNa.js → CreditCardPaymentDrawerPage-BJFiaA8N-y9d5BoI2.js} +14 -14
- package/dist/assets/{CurrencySelectField-Cps-E4RZ-d5qF8fSQ.js → CurrencySelectField-QL-EZiuT-_bjNCxiF.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-B8EI1b3X-Dj6Y4Uh4.js → CustomerOnboardingActivationPage-ChFLc-Bh-CMWmLAhY.js} +6 -6
- package/dist/assets/CustomerOnboardingContainerPage-CiWilmvy-BSdTk0pn.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Cjdz022F-BQzlWrkT.js → CustomerOnboardingDetailPageSkeleton-ByAYHyM5-BTUKD21M.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-BM3Ty0A--DIbMLpTU.js → CustomerOnboardingNoStepsPage-CJlf2BxW-CHRKjivu.js} +4 -4
- package/dist/assets/{CustomerOnboardingPage-D4cNTYTi-C42KbQXa.js → CustomerOnboardingPage-CZpYM2Um-DmldBx57.js} +14 -14
- package/dist/assets/{CustomerOnboardingProductSuitePage-BRg-6X__-DdNSpQ-6.js → CustomerOnboardingProductSuitePage-Bua-efZZ-DTLtNPox.js} +3 -3
- package/dist/assets/{Dashboard-hAvH2Ujo-B6IP_j2j.js → Dashboard-Bo3YLWim-DCvqfujn.js} +66 -66
- package/dist/assets/{DashboardReportPage-BnsfrJs5-BPhqM0F_.js → DashboardReportPage-DxLBSScH-DzuVjp6S.js} +10 -10
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CD-912fm-Dh1jPxOd.js → DashboardSidebarBackgroundAnimation-D9jy0E3J-CnJYb7sN.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BSjRIT76-BTmXhvMG.js → DepositAccTransactionItem-BUSuSCOR-65UinRer.js} +4 -4
- package/dist/assets/{DepositAccTransactionListPage-CMHZmCaF-BFddyBE8.js → DepositAccTransactionListPage-CIDmP_Ig-B_Y_F7VT.js} +9 -9
- package/dist/assets/{DomesticWireDetailsPage-B7IcmJ5S-CtbOrFFy.js → DomesticWireDetailsPage-1JafGpxq-uSG1nT_5.js} +1 -1
- package/dist/assets/{DownloadOverlay-DLdu2VQ3-KjQqw4XR.js → DownloadOverlay-DUYftI-h-D71rp7yz.js} +11 -11
- package/dist/assets/{DrawerPage-CVKJUV0d-1VrLf85V.js → DrawerPage-Br7Spm_D-pQ8sZx88.js} +7 -7
- package/dist/assets/EditPeoplePage-CGYR3lrg-DoWF8etD.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage--Sw7PT5v-ByroxrFy.js → EditReimbursementDetailPage-DMMdfkh8-Bucax6Ut.js} +156 -156
- package/dist/assets/EntityDetailPage-DYtL_p8R-GD_XakVz.js +18 -0
- package/dist/assets/{EntitySummarySection-BwfqmMJf-Ck--pC9e.js → EntitySummarySection-BqbaP86G-DpA6l5fM.js} +30 -30
- package/dist/assets/{ExpenseAutomationOverviewPage-EuWSUhAA-S_zuNRXY.js → ExpenseAutomationOverviewPage-CrXiwOR2-YbYbnS7Q.js} +17 -17
- package/dist/assets/{ExpenseAutomationPage-CNl1S9Aa-mhJaMF4M.js → ExpenseAutomationPage-Nf_8Kyie-CTvPgCHn.js} +47 -47
- package/dist/assets/{ExpressPayPage-CbWuzpCW-DS_V3c-F.js → ExpressPayPage-UQwsM48P-D7O-_G73.js} +17 -17
- package/dist/assets/{FeaturePreviewPage-HWLnhB9a-DXJxcpnb.js → FeaturePreviewPage-BRPcuukW-BStEym9y.js} +2 -2
- package/dist/assets/{FollowStepsSection-CVX6zX9Q-0JaUuRFv.js → FollowStepsSection-zLVY0Bxj-CS04bdSf.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-HEPGnrBi-D4pu4wAE.js → GlobalReviewListPage-Dm_qc_Yw-DaZA8sHm.js} +13 -13
- package/dist/assets/{InformationCardStack-BC-wYnqn-CDHpu8rR.js → InformationCardStack-C7jQmHes-CWd2nkLz.js} +4 -4
- package/dist/assets/{InsightsCardStack-Buh7Rj7W-B-XFnTbj.js → InsightsCardStack-CBrXK6na-CLYhX1B-.js} +9 -9
- package/dist/assets/{InsightsSection-uT4QX3iw-B1Mb62vw.js → InsightsSection-D_hTz1-h-EcLzFnt2.js} +4 -4
- package/dist/assets/{IntegrationsSettingsPage-np4iMqIF-BOXlm3x-.js → IntegrationsSettingsPage-B3BcOzu1-DFtNOGVa.js} +10 -10
- package/dist/assets/{InternationalWireSwiftDetailsPage-CRFIo4Oj-CKmgCCwr.js → InternationalWireSwiftDetailsPage-CMrSLhcq-xqjqhVUP.js} +17 -17
- package/dist/assets/InternationalWireVerificationPage-D8lqdsVG-CS33qqLD.js +65 -0
- package/dist/assets/{InviteFormPage-CVVm61Xb-DTfuiXCS.js → InviteFormPage-Cb6yA36Y-j5-QPPFw.js} +30 -30
- package/dist/assets/{InvitePageListView-Bhv5fpSY-BrVz8pRa.js → InvitePageListView-CvAYZn3w-BGjtLryq.js} +52 -52
- package/dist/assets/InvitePeoplePage-B3HP9bgz-C0119Ywd.js +12 -0
- package/dist/assets/{InvoiceUploadSection-DBvyatKK-CJBMM0Za.js → InvoiceUploadSection-BV69g_45-C0jQPqw-.js} +10 -10
- package/dist/assets/{IssueChargeCardPage-DzAyBn8c-mXHywZLA.js → IssueChargeCardPage-DC8gfsh9-C09x3l5G.js} +32 -32
- package/dist/assets/{LabeledAddressValue-BHuN9hmS-xGzDkCtS.js → LabeledAddressValue-DcHYCO3r-yN6DyHDi.js} +2 -2
- package/dist/assets/LabeledAddressValueField-COLiEu2C-u-zbSv3w.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-CRR6Iscv-DujcJdM4.js → LabeledControlledCheckBoxField-B258oHta-DFq5Q_Wk.js} +2 -2
- package/dist/assets/{LabeledCountryMultiSelectField-BWfPhvMM-pDpHMyTS.js → LabeledCountryMultiSelectField-CDN3Cboj-DwWKggpi.js} +12 -12
- package/dist/assets/{LabeledCreatableSingleSelectField-CbmnDlQX-Bud0UcHP.js → LabeledCreatableSingleSelectField-5NsKlfNx-BEfEdG1_.js} +4 -4
- package/dist/assets/LabeledDocumentField-DNh366no-DrAn5iL2.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-CLHaeBmo-Dbz-uAbc.js → LabeledDropDownFormattedTextField-BEox9eFP-Cs6wSzGo.js} +7 -7
- package/dist/assets/LabeledText-BNEHh2ZI-BfrNdALD.js +42 -0
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DYAtBZjB-BW2S_3jE.js → LabeledUserSingleSelectWithSubtitlesField-BoYac4nN-CnfvrnWB.js} +18 -18
- package/dist/assets/{LabeledZeniRolesDropDownField-B7Z3Kefm-D8ICt4Pk.js → LabeledZeniRolesDropDownField-BL1wek8m-DLuVqXVU.js} +20 -20
- package/dist/assets/LinkJETransactionPage-KkB2mCGz-DD79uSY5.js +98 -0
- package/dist/assets/{LockCardPage-DG1icW3l-BrBrLoqr.js → LockCardPage-BBPoahE6-DjuGLIgr.js} +219 -219
- package/dist/assets/LowBalancePopup-BFU-BVK9-DWsdSBOg.js +34 -0
- package/dist/assets/MagicLinkACHDetailsPage-voSZCbPS-Bu01L_aV.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-evB-Fia6-Ddjk2plz.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-ChjLt6BQ-C6H3R4f0.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-DH2RMNDM-2yEu43__.js → MagicLinkSuccessPage-BL0Twa3Z-yp-cCoVI.js} +6 -6
- package/dist/assets/{MagicLinkTitleSection-B_lsWLaB-6l0Q2ZDr.js → MagicLinkTitleSection-C8EEgV19-CiX4xfZT.js} +4 -4
- package/dist/assets/MailingDetailsSection-DT2vh6CT-CCScgjq2.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-D4QR9tUf-AE5_I3cP.js → MyBankConnectionsSettingsPage-BvZhVteo-C2c-74lS.js} +12 -12
- package/dist/assets/MyPendingActivationChargeCardListPage-D2EL0Jp--BWDRXrvv.js +6 -0
- package/dist/assets/{MyProfileSettingsPage-CSaNSpuq-H-vs8ioV.js → MyProfileSettingsPage-3QGlUKp1-z7Bwqz5C.js} +7 -7
- package/dist/assets/{NavBarWithPicker-Zs67Xuo1-Bwvf2TqD.js → NavBarWithPicker-BXubFmkR-D51S0MSd.js} +3 -3
- package/dist/assets/{NavigationArrow-gJivTrEy-CJYJcp3Q.js → NavigationArrow-DvI-yhxJ-DlVsGta8.js} +1 -1
- package/dist/assets/{NavigationDots-DTQZxPoW-LNb-u25P.js → NavigationDots-CPlwYOx--BPMPlnpv.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BI5z7cVi-Drg8AloH.js → NewGlobalMerchantPage-CXC3nRf0-Bx5yZmxN.js} +12 -12
- package/dist/assets/{NoDataChart-CKYUeTCs-DvkQx1V0.js → NoDataChart-DTVuSEdu-BkUYV-TV.js} +1 -1
- package/dist/assets/{NoDataTable-CwJmhtK3-CCNoQlOZ.js → NoDataTable-Bgt6dZEF-B3972AwQ.js} +1 -1
- package/dist/assets/{NotFoundPage-Bxs-YzV4-CpCxTN11.js → NotFoundPage-B2B4aoo2-BW-s5AV5.js} +8 -8
- package/dist/assets/{NotificationSettingsPage-DMYs6gdm-BlfmU3ul.js → NotificationSettingsPage-B5kEZN6p-CIJZlZ4H.js} +33 -33
- package/dist/assets/{NotificationsListConfig-BHt9OVz6-BKDTXb1o.js → NotificationsListConfig-lOoxcslt-BhnQjQWG.js} +1 -1
- package/dist/assets/NotificationsPage-CTHg82VM-CwBM4vUS.js +685 -0
- package/dist/assets/{OpExByVendorPage-D-0--y-d-DMlLcW9P.js → OpExByVendorPage-CXmqL8sH-BK8_o8ls.js} +5 -5
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-E92SHML4.js → OverlayContainerPage-D4QU0p4o-CSiWE48U.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BgBplnz_-ChEt9BF6.js → PandLWithForecastPage-DbZpKElK-Dy4zdedl.js} +11 -11
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-C6JM3mQz-CgsGFkzx.js → PaymentAccountSetupBillingAddressSection-CJRhGAtG-D2ukn4NZ.js} +6 -6
- package/dist/assets/{PeoplePage-1Aa0j1Br-D63RAfrN.js → PeoplePage-CJri4xlX-CEfPFRxE.js} +15 -15
- package/dist/assets/{Preview-CfPlLM4U.js → Preview-0sAWcABs.js} +1 -1
- package/dist/assets/{ProductsCarousel-BR9igDN--4qcjyVm7.js → ProductsCarousel-DtmKoNz3-BSbpVJVt.js} +2 -2
- package/dist/assets/{PromoBaseCards-B-dCLfsi-omMrAFa4.js → PromoBaseCards-g6j_z80f-C2Bai70y.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-Dc2r7Qhk-9XcCUrWN.js → QBOConnectionDialog-BwKmOICb-D3Jo-Vlf.js} +4 -4
- package/dist/assets/{QBOSetupSection-Bhvg13n4-BS4MZWmI.js → QBOSetupSection-BN8o3dwu-DHQTxOlT.js} +12 -12
- package/dist/assets/ReimbursementApprovalRuleDetailPage-C5s_8IJ8-CPJIVNh1.js +32 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-BtaFR_-R-DT_IS0Mc.js → ReimbursementApprovalRulesPage-BvvOob8U-DEiVU8X7.js} +2 -2
- package/dist/assets/ReimbursementDetailPage-BVFGrEhN-B7_bgdSj.js +314 -0
- package/dist/assets/ReimbursementPromoPage-dsgbajZ6-CWCF7N7b.js +84 -0
- package/dist/assets/{ReimbursementSetUpPage-CesV38Tv-CAsx1rGC.js → ReimbursementSetUpPage-0AMBarqS-CiwiIoY4.js} +9 -9
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BuK15ipi-jsvxMTC-.js → ReimbursementsBulkReviewDrawerPage-L0YmO2qY-DQjnniUJ.js} +1 -1
- package/dist/assets/{ReloadCard-DCA58Z6d-lxJyT6Aq.js → ReloadCard-Dketoj2r-tAJXPFMi.js} +2 -2
- package/dist/assets/{ReportTableViewSelector-Bcxl71KP-GS5y6Ng3.js → ReportTableViewSelector-DmDzw4yW-D1HeX13c.js} +5 -5
- package/dist/assets/{ReportsPage-DrxIUX8S-BX-Ugn1O.js → ReportsPage-DPrhnmvb-D0g4apvT.js} +6 -6
- package/dist/assets/{RevenueChart-BIWVGs6F-HTYxOFNe.js → RevenueChart-CDrGsGOU-CIlC5CYF.js} +8 -8
- package/dist/assets/{ReviewDetailsPage-C3dqUSg--Cpk2HBlF.js → ReviewDetailsPage-DjbAwLAN-B0q2mTzL.js} +18 -18
- package/dist/assets/{ReviewOverlay-Cag-4B4Y-D1ezdBpL.js → ReviewOverlay-Ws6-5o0Z-DJX77Zrm.js} +9 -9
- package/dist/assets/RoleWithToolTip-vxNCa6FT-LxVETf1F.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-ikCFA0w0-2eZV-mSh.js → ScheduleDetailsFixedAssetsPage-B2Y0ri0_-D9zabCxc.js} +4 -4
- package/dist/assets/{ScheduleDetailsPage-DzYUkz8B-BASiQOiG.js → ScheduleDetailsPage-D4fdm16B-KuG3aRA0.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-Cg5WKyIj-CgT_tp3-.js → ScheduleSequenceTable-BuOwBQPa-idhR1Z_Q.js} +16 -16
- package/dist/assets/{ScreenRoutes-BA3Mh7pl.js → ScreenRoutes-BIVA2nRG.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CczJQz98-BSMGTELr.js → SetUpAccountSection-DJz8iGRu-BIE7oU3u.js} +9 -9
- package/dist/assets/{SignIn-IIuCvpoR-11uX7W5f.js → SignIn-BltllFmN-lRCl2w8R.js} +15 -15
- package/dist/assets/{SignInScreen-2miLFysH.js → SignInScreen-CvDooCt5.js} +1 -1
- package/dist/assets/SpendManagementListViewPage-BQwyNWPt-CFFiSy1U.js +134 -0
- package/dist/assets/{SpendManagementPerTabPage-D3DxhXvr-B6sZ7QiP.js → SpendManagementPerTabPage-CkH_5fl0-DiDtAytK.js} +39 -39
- package/dist/assets/{SpendManagementSection-DSN3bvLE-BkMacKAC.js → SpendManagementSection-BhbK0q1x-DEzibqGa.js} +15 -15
- package/dist/assets/StatementItem-D8E_FAe4-BYv882Fo.js +31 -0
- package/dist/assets/StatementsPage-Wiw8T04d-DTKPWrtc.js +58 -0
- package/dist/assets/{StatusSwitcher-C35eTt_u-VQn5S24k.js → StatusSwitcher-DPs1Vq5X-D6dENE_K.js} +2 -2
- package/dist/assets/{SubTabSwitcher-B8hXbnSB-cmYgrs9Q.js → SubTabSwitcher-BvqpLoBx-n7blk4-b.js} +2 -2
- package/dist/assets/{SummaryCard-dhNbqi0b-YwOnQ2xO.js → SummaryCard-CYZZ0q6A-Bue0ya2z.js} +1 -1
- package/dist/assets/{TaskManagementPage-QHzSJ5AM-Dhc53xoT.js → TaskManagementPage-lc9Mw2Sm-CSBSTCNw.js} +34 -34
- package/dist/assets/{TimeRangeSwitcher-By1NizbD-D56RmIGq.js → TimeRangeSwitcher-Dm0lFXOD-CN2hUUX6.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-CnIziozQ-1cQ19qL3.js → TimeframeSwitcher-CFrCNOFC-CCLnJVYT.js} +6 -6
- package/dist/assets/{TimeframeSwitcherWithToggle-BxwsH8cn-DW9lfWz3.js → TimeframeSwitcherWithToggle-Cu0mWh8Z-Dnw607ZH.js} +1 -1
- package/dist/assets/{TopExCard-BXYnSJ_3-BrLh6FBV.js → TopExCard-IMbcUkNt-D4ymrCrP.js} +6 -6
- package/dist/assets/{TopExDetailPage-C9pGvGMt-BM8au-2T.js → TopExDetailPage-IEJSc_e7-BtOs5ZNd.js} +8 -8
- package/dist/assets/TransactionActivityLogPage-CztxkZSm-8f7Qpuaa.js +195 -0
- package/dist/assets/{TransactionDetailPage-CZQnRzsm-DgcUcv00.js → TransactionDetailPage-C5khWZWO-BeDT0w8u.js} +20 -20
- package/dist/assets/{TransactionList-Bdf5Bgsu-BJckNy4D.js → TransactionList-BH11aGhG-4R_e7lBY.js} +15 -15
- package/dist/assets/{TransactionListBig-DcbkwmaY-lPbTtFsv.js → TransactionListBig-CdJV8TeD-DMYaee9L.js} +11 -11
- package/dist/assets/TransactionListPage-CjzTPYr7-BDdk1Iba.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-B-FwW8my-CWEbgotx.js → TransactionVendorDetailPage-Dv7hRa0N-BwsLBxd1.js} +4 -4
- package/dist/assets/{TransferDrawerPage-DqxZzNHb-JyC0LuW4.js → TransferDrawerPage-r48o2lxO-CN66Pp8k.js} +40 -40
- package/dist/assets/{TreasuryOverviewPage-BFDU5aeU-CkjRA3dQ.js → TreasuryOverviewPage-DKCxYrPQ-HyhZNbuE.js} +32 -32
- package/dist/assets/{TreasuryPromoPage-HD1G38a1-ZbC8VXaw.js → TreasuryPromoPage-CNpZ_SIL-DNBqegZ8.js} +21 -21
- package/dist/assets/TreasuryStatementsPage-DKRIOtY3-DpdYXRvQ.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-Bwg7y3DU-CPkWwrCH.js +58 -0
- package/dist/assets/{TrendChart-DVlTUYry-BQhZ0XSE.js → TrendChart-C1hhS0ef-CM_jfK9c.js} +3 -3
- package/dist/assets/{TrendWithTransactions-DXYNZfvE-CEOC8UFU.js → TrendWithTransactions-CbJdyyGK-8bD7HA0C.js} +4 -4
- package/dist/assets/{UncategorizedAccountsMappingPage-BgQsB5_3-COI438r2.js → UncategorizedAccountsMappingPage-BTAJNCzF-IB-Tcf9I.js} +30 -30
- package/dist/assets/{UnitIntegrationPage-Dm62VB7y-B0M_A7fc.js → UnitIntegrationPage-B7xYyx0u-Dfb-qM03.js} +10 -10
- package/dist/assets/{UploadAdditionalDocumentOverlay-DG7NwQOq-PHFjEw3H.js → UploadAdditionalDocumentOverlay-BxSUijP--B8mSbR2d.js} +1 -1
- package/dist/assets/Vendor2FAPopup-Ctn_yjc8-D0FF2AtH.js +1 -0
- package/dist/assets/VendorACHDetailsPage-Bvj35jGs-H5j6K7x_.js +1 -0
- package/dist/assets/{VendorDetailPage-B8qtHlez-CDeCcma-.js → VendorDetailPage-CTbWD0xL-DOodc43o.js} +87 -87
- package/dist/assets/VendorDomesticWireDetailsPage-YMt9zC7E-4y578jYA.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-B5GzsaIt-CrkaSKWH.js → VendorFiling1099EditablePage-CC17aZpp-CUEXtxxF.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-B1c74yx7-XWeMR4A4.js → VendorFirstReviewPage-C2Rj4ujS-D3XLk6SM.js} +30 -30
- package/dist/assets/{VendorInternationalWireDetailsPage-DPucgS6n-BUwm5cf5.js → VendorInternationalWireDetailsPage-CXgBfF0b-AFVguI8X.js} +7 -7
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CPdA16m4-BUiNKc-B.js +1 -0
- package/dist/assets/{VendorsAccountsSection-BBnG4jo9-CE1HsZr7.js → VendorsAccountsSection-CKKsK4iR-Brg3gtnO.js} +4 -4
- package/dist/assets/{VerifyDevice-CFPLWsQ9-CqtmGFWn.js → VerifyDevice-Ds1Nxr5P-Blm9OKwi.js} +1 -1
- package/dist/assets/{VideoPlayer-C0Oxc4vz-Eo76fnas.js → VideoPlayer-Ba8AW1R7-i9G7JJm5.js} +2 -2
- package/dist/assets/VideoPopup-CXIa9PAJ-BZihnaAR.js +31 -0
- package/dist/assets/{WarningsDrawerPage-D1_kAgnS-wVv9eNUW.js → WarningsDrawerPage-h7qsrtcB-CE6gyvKk.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-CvuREnNX-Daaz-pOC.js → ZeniAccountDetailPage-aNllmjZp-DFLxBj0c.js} +32 -32
- package/dist/assets/{ZeniAccountListViewPage-Cl0LGnEs-BnEYM2Fk.js → ZeniAccountListViewPage-DrKQ2DXb-CJJJ25qT.js} +8 -8
- package/dist/assets/ZeniAccountNavBarPieces-BTP0V662-nTGXbCtY.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-CfqyTao--CSmJBLGG.js → ZeniAccountPromoPage-CPL4y-FS-Bjur8xmF.js} +13 -13
- package/dist/assets/{ZeniAccountSetupPage-DjhaRuBW-C5pmnKvn.js → ZeniAccountSetupPage-DvlPktUp-B-E9YzwR.js} +2 -2
- package/dist/assets/ZeniCopyright-D37-X5FF-Ak7n7OYz.js +1 -0
- package/dist/assets/{ZeniTransferAmountSlider-DFm-2Ivu-CQbjc7rM.js → ZeniTransferAmountSlider-CeTiIm-1-DS6r50pT.js} +4 -4
- package/dist/assets/{add-to-wallet-DgdBD8_G-BuLXwUxS.js → add-to-wallet-DgdBD8_G-D62DvooK.js} +1 -1
- package/dist/assets/{analytics-EOspDoDF.js → analytics-BFqwqBQR.js} +1 -1
- package/dist/assets/{analyticsHelper-CkgaDWOW-BtJI0iQX.js → analyticsHelper-Cp5G9I3a-BIC4toJ-.js} +1 -1
- package/dist/assets/analyticsHelper-H7OiEB4T.js +1 -0
- package/dist/assets/{arrow-south-east-round-PEovUgvH-7wUMcNgq.js → arrow-south-east-round-PEovUgvH-eGvQIcmx.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-B7tSfwo7.js → auto-transfer-rule-mbafm5D3-CeHKVWmh.js} +1 -1
- package/dist/assets/{chartTypes-nF8PeaWk-DylRW2Nq.js → chartTypes-_pdOsLu--D8_z5gfz.js} +1 -1
- package/dist/assets/{commonDimensions-bWLlVfVq-DDxX-akL.js → commonDimensions-IxmmCJgv-CC5c3dON.js} +1 -1
- package/dist/assets/{commonTypes-BKD3o785-ClwG0TM4.js → commonTypes-uWTOHqLG-CINOYJ5U.js} +1 -1
- package/dist/assets/{constants-3kjNigIZ.js → constants-DMGg36fI.js} +1 -1
- package/dist/assets/{core-CslRcwFE.js → core-BFf3IFj6.js} +1 -1
- package/dist/assets/{dash.all.min-Dkp1U18T.js → dash.all.min-BxMd-9-a.js} +1 -1
- package/dist/assets/{detailCommon-l7_k1kQ_-CFeAwn6Q.js → detailCommon-1sO_byJf-CD-uyZzV.js} +4 -4
- package/dist/assets/downloadPdf-CjXuMwyY-Bk0Q_jtO.js +1 -0
- package/dist/assets/{empty-Du-vmzTn.js → empty-CTFehcxZ.js} +1 -1
- package/dist/assets/{empty-BhaTlh_E.js → empty-DQRlSI-P.js} +1 -1
- package/dist/assets/{epic-CZdj8-B-.js → epic-DvQ68MZ-.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-Dv3d3rOw.js → gift-box-Cmt9OgIZ-CjL00gTh.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-CLHrfBy6.js → graphic-no-data-l-DU4J8fDt-CeLdXVsI.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CMlLtriY.js → graphic-no-data-net-burn-l-CzmycA0m-CxW_HqWH.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-COd6iQaS.js → handshake-BPg58FML-DLoQUg7m.js} +1 -1
- package/dist/assets/{helper-qck89ZgJ-CZUGaHU3.js → helper-4lObJrt8-BUT-pULe.js} +3 -3
- package/dist/assets/{index-CwPcEaIJ.js → index-BuGq2Xwa.js} +1 -1
- package/dist/assets/{index-Dc5vYs7y.js → index-Cx7SEn1j.js} +1 -1
- package/dist/assets/{index-B7eWgQzZ.js → index-DGGt5RDJ.js} +4300 -4300
- package/dist/assets/{index-Cn_IOdHd.js → index-DdP-wJle.js} +1 -1
- package/dist/assets/{index-3P-FToEr.js → index-Dl4R1vcE.js} +1 -1
- package/dist/assets/{index-Dk4hNwSR.js → index-IoURZoOk.js} +1 -1
- package/dist/assets/{index-Dde-TLpy.js → index-NMwrUQfi.js} +1 -1
- package/dist/assets/{lexical-DEAOqFKR.js → lexical-BeXs36Y0.js} +1 -1
- package/dist/assets/{liveblocks-DyVXfa5b.js → liveblocks-Dda0tF-O.js} +1 -1
- package/dist/assets/{lottie-DR7Z1uj_.js → lottie-mwve--vc.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-hU4SXSz1-Celvdjmv.js → mapLoadingInProgressToTreeNode-CwSavpEU-Cl_FZFwU.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Mybge2KM-DnyF2DOT.js → mapSectionWithAcOnlyToTreeNode-DfN5c3SA-D4hGCNmF.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-D8gbhEl5-D4qIggfl.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DSlFj-Ph-Btw1CFJ1.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-Dj4jp8jG-B4t0Wux0.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DpTpTHX9-DdHAM1Kp.js +1 -0
- package/dist/assets/{mui-Ba0_ROTv.js → mui-BXc79n0P.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-DcKx2ySJ.js → page-detail-CWX5S47F-j_J3TTSv.js} +1 -1
- package/dist/assets/{panelSelectedMixin-Cddsb26L-Cg3Z-QbC.js → panelSelectedMixin-Cddsb26L-D4G_zfkD.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-CGqLZKGc.js → radio-default-CiSgisfh-BDH4uibz.js} +1 -1
- package/dist/assets/{react-CBKzjJ-k.js → react--w8eXOQH.js} +1 -1
- package/dist/assets/{react-Doh-xpgh.js → react-0aRrmHfg.js} +2 -2
- package/dist/assets/{react-BQMyjhDt.js → react-BkfBvvdQ.js} +1 -1
- package/dist/assets/{react-XEytoW-G.js → react-CQhG37C_.js} +1 -1
- package/dist/assets/{react-2aHb0_lL.js → react-CQvtbK9z.js} +1 -1
- package/dist/assets/{react-DqjXj4cD.js → react-CpogsNWB.js} +1 -1
- package/dist/assets/{react-DuH1J8DT.js → react-DNVJuix6.js} +1 -1
- package/dist/assets/{react-biMmKurS.js → react-x9AsEyp-.js} +1 -1
- package/dist/assets/{recharts-Dpk71F6G.js → recharts-vbuE4Jum.js} +1 -1
- package/dist/assets/{sentry-BUYEiWD8.js → sentry-C7LQiKF9.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-C7zSLUUK.js → shield-DOlUxcFf-B-RZDoQM.js} +1 -1
- package/dist/assets/toCOABalancesWithID-DuwOfE1o-DwSLIzEK.js +1 -0
- package/dist/assets/{toChartData-CMvkvks2-CeV5Sw8J.js → toChartData-Cqj00uWV-Bpiruaq9.js} +1 -1
- package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-BCgskbSS.js → upload-reimbursement-receipt-O2N8vcO7-C4eeJM6-.js} +1 -1
- package/dist/assets/{uploadAttachment-XRvvKLjd-8kORPRMD.js → uploadAttachment-CpuXaDZF-Bu3r96Oj.js} +25 -25
- package/dist/assets/{uploadReceipts-Dge0cNF1-B4zZrtGY.js → uploadReceipts-Dge0cNF1-BighYweo.js} +1 -1
- package/dist/assets/{url-4GiLad5k.js → url-CvO2wIrp.js} +1 -1
- package/dist/assets/{url-_mFxzRvZ.js → url-SWb9fmsI.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ--IIT5mp7.js → useLongPress-GCK2COYQ-BHUpmaFu.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-wx2xXzy4.js → usp-line-BBd1wKwW-BBQ-QruK.js} +1 -1
- package/dist/assets/{utils-van4hLXd.js → utils-CW6UW7VZ.js} +1 -1
- package/dist/assets/{zeni-epic-state-DsDV18R1.js → zeni-epic-state-Cvu6NpVe.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/ACHDetailsPage-C0EF1bfJ-CF4B57fP.js +0 -21
- package/dist/assets/AccountInfoPage-1bkRMUmz-Cuxh0N0w.js +0 -18
- package/dist/assets/AccountLockedInfoModal-iHHAglx1-Db8qIiY0.js +0 -59
- package/dist/assets/AddAddressForCardDrawer-DQButqpE-4KIKQO78.js +0 -6
- package/dist/assets/ApAgingDetailPage-DFMl8Pg4-C_Is_Pfz.js +0 -46
- package/dist/assets/BillDetailPage-Cv84AWBP-D-5X1cLh.js +0 -266
- package/dist/assets/BillPayPromoPage-BJNiSeAB-dddJyTrd.js +0 -84
- package/dist/assets/BillingSettingsPage-B5p8_TqZ-D-ll1i0A.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-CLUs3-Ci-DFJkbhvF.js +0 -1
- package/dist/assets/ConfettiBurst-BfLV2hbY-D9OCgSrI.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-BR0RXw9o-YOK_yGHP.js +0 -1
- package/dist/assets/EditPeoplePage-CZUXKv1r-BxGbjp33.js +0 -55
- package/dist/assets/EntityDetailPage-ZAt7wUEc-CU2oKDLU.js +0 -18
- package/dist/assets/InternationalWireVerificationPage-BLvplUfw-KKAbBfix.js +0 -65
- package/dist/assets/InvitePeoplePage-Chxh0Lmw-BWF47a5q.js +0 -12
- package/dist/assets/LabeledAddressValueField-C5tlrpM8-CZs-qPnX.js +0 -45
- package/dist/assets/LabeledDocumentField-BowgfWLJ-Dfvs4pho.js +0 -41
- package/dist/assets/LabeledText-DglukuaI-CmIe9nSK.js +0 -42
- package/dist/assets/LinkJETransactionPage-Cnu97MMF-4_5-q4C9.js +0 -98
- package/dist/assets/LowBalancePopup-Drqtx1Yk-9ef3MPri.js +0 -34
- package/dist/assets/MagicLinkACHDetailsPage-B-H4pN-W-BJk44VGL.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-DBhFe2sn-ByO14CoO.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-De3w5uAd-DWgjVULc.js +0 -1
- package/dist/assets/MailingDetailsSection-CU0Ur-9k-CV18nP7Y.js +0 -21
- package/dist/assets/MyPendingActivationChargeCardListPage-8fIM-AgM-DG0F21hf.js +0 -6
- package/dist/assets/NotificationsPage-BL6QkhxJ-Bq__lIXi.js +0 -685
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DeGZp7he-DwflEFkV.js +0 -32
- package/dist/assets/ReimbursementDetailPage-ChDG7NAL-BwV9bPZE.js +0 -314
- package/dist/assets/ReimbursementPromoPage-Dgx0IYTF-BfINKSQz.js +0 -84
- package/dist/assets/RoleWithToolTip-C8aesF3T-apurffxZ.js +0 -22
- package/dist/assets/SpendManagementListViewPage-DQ9FW-pv-8sW-YX2v.js +0 -134
- package/dist/assets/StatementItem-CfLQ3EiB-BhKoq1Lu.js +0 -31
- package/dist/assets/StatementsPage-DdVszHkC-UTOiPZ-s.js +0 -58
- package/dist/assets/TransactionActivityLogPage-C4Zf-YKV-CyrgE9Vm.js +0 -195
- package/dist/assets/TransactionListPage-CS_TY41O-BS7_HocG.js +0 -35
- package/dist/assets/TreasuryStatementsPage-DVN2bxrt-Csr4Fp1P.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-O5HN57r7-Crb8QwQ9.js +0 -58
- package/dist/assets/Vendor2FAPopup-CxJFovCF-BTqgr2_z.js +0 -1
- package/dist/assets/VendorACHDetailsPage-IvgUMfd9-Dm3RoaNk.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-BbLz5_FD--3MjmjN3.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CmeSQAri-TKMDFSzF.js +0 -1
- package/dist/assets/VideoPopup-BmdpW83j-DczpaZjD.js +0 -31
- package/dist/assets/ZeniAccountNavBarPieces-MEaXWOb7-DLC0tAjr.js +0 -14
- package/dist/assets/ZeniCopyright-nggh1t2z-BlAlTJNf.js +0 -1
- package/dist/assets/analyticsHelper-BQyqY8AC.js +0 -1
- package/dist/assets/downloadPdf-DaZCmoYn-D7YxsQSi.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-DlewsTfs-Uz_UzZbZ.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-9dkd_G4A-xyFi9Xru.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DE8rPH2X-BbYTtpG2.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BLkTfnct-DgmTQXuW.js +0 -1
- package/dist/assets/toCOABalancesWithID-BfQTo56G-BvXiHVaB.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ay as ht,V as t,gm as ro,aS as li,y as xt,aa as rn,aA as Ii,aG as ln,J as Re,gn as lo,gp as so,gq as co,gL as uo,ae as sn,cs as di,ct as dn,cu as cn,ac as q,o as i,x as d,bE as Ti,bq as mo,dx as po,gr as ho,gC as un,gx as Di,aT as mn,aq as pn,gy as go,gM as _e,eG as Ke,f8 as ci,gN as zt,b as fe,L as wt,gO as yo,p as j,d as hn,as as ui,u as r,bz as bo,gA as fo,cJ as xo,eO as mi,gP as Bt,fn as Se,cN as pi,fq as $e,cM as nt,eq as wo,fm as gn,w as Rt,cQ as yn,cP as tt,ey as Te,ak as hi,gQ as So,fF as $o,cI as vo,aX as ji,fz as Co,by as ko,bc as bn,g as Io,ep as To,b9 as Mt,gs as Do,bX as fn,c as gi,M as xn,d2 as wn,ck as Ft,e$ as jo,bb as Oo,d6 as Po,ft as Ro,an as yi,a as Oi,bV as Sn,b3 as Pi,d1 as Lo,ao as Ao,cU as $n,aQ as zo,gR as vn,gS as si,gh as Ri,gT as Lt,cR as Bo,gl as Mo,bM as Fo,d0 as Eo}from"./index-DGGt5RDJ.js";import{a as S,P as Ct}from"./sentry-C7LQiKF9.js";import{n}from"./mui-BXc79n0P.js";import{Gz as No,bL as it,bZ as Cn,bo as kn,bm as Li,GA as Ai,bh as bi}from"./zeni-epic-state-Cvu6NpVe.js";import In from"./InvoiceUploadSection-BV69g_45-C0jQPqw-.js";import{r as Wo,f as At,d as ft,p as fi,u as zi,h as ke}from"./types-DyvtCprH-NFPm5TaG.js";import{I as Uo}from"./LabeledCreatableSingleSelectField-5NsKlfNx-BEfEdG1_.js";import{S as Vo}from"./CurrencySelectField-QL-EZiuT-_bjNCxiF.js";import{e as _o}from"./BankAccountSection-CJlVvGHg-BpmPk2BK.js";import{W as qo,A as Ho}from"./BankAccountWarningSection-DVVX_lU2-YGd3zWAN.js";import{o as Ko}from"./radio-default-CiSgisfh-BDH4uibz.js";import"./liveblocks-Dda0tF-O.js";import"./core-BFf3IFj6.js";import"./recharts-vbuE4Jum.js";import"./lottie-mwve--vc.js";import"./analytics-BFqwqBQR.js";import"./lexical-BeXs36Y0.js";import"./utils-CW6UW7VZ.js";import"./AttachmentView-DTHxVIEf-OlbTumHp.js";import"./uploadReceipts-Dge0cNF1-BighYweo.js";import"./upload-reimbursement-receipt-O2N8vcO7-C4eeJM6-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="cecba147-4f0d-46c7-9b16-3feb1fd0fd5f",e._sentryDebugIdIdentifier="sentry-dbid-cecba147-4f0d-46c7-9b16-3feb1fd0fd5f")}catch{}})();const Me=(e,o)=>`${e}.${o}`,Bi={largeLabelWidth:new d(120,120,160),paddingBottom:new d(r[3],r[2])},{spendManagement:{reimbursement:{reimbursementDetail:Ce}},dateFormat:Go,common:Yo}=fe.getLocalizedStrings(),Qo=({lineIndex:e,mileage:o,classList:a,defaultCurrency:c,sectionId:p,isReimbursementCommentingEnabled:C,isDisabled:m,isAddReimbursementDisabled:v,companyMileageConfigInfo:f,reimbursementId:l,classHierarchyList:k})=>{const x=Re(),s=ht(),y=Bt(),$=`dashboard_${s.currentTenant?.companyId}`,P=xt(),{formState:{errors:I},getValues:R,trigger:H}=nt(),L=Yo.strings.empty,T=R(Me(p,"distanceInMiles")),B=Bi.largeLabelWidth.value(x),te=R(Me(p,"class")),ne=a.find(z=>z.classId===te?.selectedOption),oe=Me(p,"class"),Y=Te(I,oe);S.useEffect(()=>{te?.selectedOption!=null&&(ne?.isDeleted===!0||Y)&&H(oe)},[te?.selectedOption,ne?.isDeleted,a,oe,H]);const K={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},F=z=>a.filter(ae=>ae.classId===z)[0]?.accountingClassNumber,Q=a.find(z=>z.classId===o.class),_={valueContainer:z=>({...z,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.transactionDate`}),roomId:$,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("transactionDate",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx($n,{isDisabled:m,label:{label:Ce.transactionDate,width:B},style:{paddingBottom:Bi.paddingBottom.valuePx(x),width:"auto"},dateField:{name:Me(p,"transactionDate"),placeholder:Ce.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Go.visual.defaultInput,autoComplete:"off",maxDate:bi(),registerOptions:{required:!0,validate:z=>!!z}}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:$,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:v?"disabled":void 0,style:{width:"auto"},label:{label:Ce.distanceInMiles,width:B},formattedTextField:{type:"number",name:Me(p,"distanceInMiles"),placeholder:Ce.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:z=>z!=null?z>0:!0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.amount`}),roomId:$,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("amount",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:"disabled",label:{label:Ce.amount,width:B},formattedTextField:{type:"number",name:Me(`${p}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:tt(Ce.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:z=>z!=null?z>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:T!=null&&f?.mileageUnitAmount!=null?`${c.currencySymbol}${f?.mileageUnitAmount} per mile x ${T}`:void 0})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.memo`}),roomId:$,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("memo",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(pi,{isDisabled:m,label:{label:Ce.memo,width:B},style:{width:"auto"},text:{type:"text",name:Me(p,"memo"),placeholder:tt(Ce.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:vn}}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.class`}),roomId:$,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("class",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(si,{isLoading:!1,label:{label:Ce.department,width:B},additionalLabelInfo:ne?.isDeleted===!0&&Te(I,Me(p,"class"))?Ce.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Me(p,"class"),placeholder:tt(Ce.department),valueToId:z=>F(z),defaultValue:{selectedOption:Q?.classId,allOptions:Ke(k,[])},style:{width:"100%"},customStyleConfig:_,registerOptions:{required:!0,validate:z=>z?.selectedOption==null?!1:a.find(ae=>ae.classId===z?.selectedOption)?.isDeleted===!0?Ce.deletedClassError:!0}},style:{borderBottom:`1px solid ${P.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Me(p,"class"))})]})},kt=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey3};
|
|
5
5
|
min-height: 1px;
|
|
6
6
|
max-height: 1px;
|
|
7
|
-
`,Mi={amounWidth:new d(50,30),currencyWidth:new d(50,70)};function Jo({name:e,placeHolder:o,defaultValue:
|
|
7
|
+
`,Mi={amounWidth:new d(50,30),currencyWidth:new d(50,70)};function Jo({name:e,placeHolder:o,defaultValue:a,isDisabled:c,showAmountCurrencyError:p,style:C,allCurrencies:m}){const[v,f]=S.useState(!1),{getValues:l,formState:{errors:k}}=nt(),x=xt(),s=Re(),y=c!=null,$=l(e),P=`${$?.amount} ${$?.currency?.selectedOption}`,I=Te(k,e)&&Lt(k,`${e}.amount`)!=null,R=Te(k,e)&&Lt(k,`${e}.currency`)!=null,H=p===!0?I||R:!1,L=!H&&v===!1;return S.useEffect(()=>{L===!1&&f(!0)},[L]),t.jsx(pn,{onClickAway:()=>y===!1&&!H&&f(!1),children:t.jsx(Zo,{style:C,isDisabled:y,tabIndex:L&&!y?0:void 0,onClick:()=>y===!1&&f(!0),"data-testid":q("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[$?.amount!=null?t.jsx(Fi,{className:"amount-field",isVisible:L,children:P}):t.jsx(Fi,{className:"amount-field amount-placeholder",isVisible:L,children:o?.name}),t.jsxs(Xo,{isVisible:!L,children:[t.jsx(Mo,{type:"number",name:`${e}.amount`,defaultValue:a?.amount,placeholder:o?.amount,returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:T=>T!=null?T>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:c,style:{display:"flex",flexGrow:1,width:Mi.amounWidth.valuePercentage(s),cursor:"inherit"},bgColor:x.colors.background,isFieldError:I,shouldHighlightZeroAmount:!0}),L?null:t.jsx(ea,{}),t.jsx(Vo,{name:`${e}.currency`,registerOptions:{validate:T=>T!=null&&T.selectedOption!=null},defaultValue:{allOptions:m.map(T=>({label:s==="small"?T.currencyCode:`${T.currencyCode} - ${T.currency}`,value:T.currencyCode,countryCode:T.countryCode})),selectedOption:a?.currencyCode},controlStyle:{justifyContent:"flex-start",backgroundColor:x.colors.background},isDisabled:c,style:{width:Mi.currencyWidth.valuePercentage(s),flexGrow:1},isOptionRemovable:!1})]})]})})})}const Xo=n.div`
|
|
8
8
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
9
9
|
width: 100%;
|
|
10
10
|
input {
|
|
@@ -22,10 +22,10 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
22
22
|
input {
|
|
23
23
|
text-align: right;
|
|
24
24
|
}
|
|
25
|
-
`,
|
|
25
|
+
`,ea=n.div`
|
|
26
26
|
background-color: ${e=>e.theme.colors.grey5};
|
|
27
27
|
min-width: ${i.sp3};
|
|
28
|
-
`,Fi=n(
|
|
28
|
+
`,Fi=n(bn)`
|
|
29
29
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
30
30
|
padding: 0 ${i.sp3};
|
|
31
31
|
border-radius: ${i.sp1};
|
|
@@ -37,7 +37,7 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
37
37
|
&.amount-placeholder {
|
|
38
38
|
color: ${e=>e.theme.colors.grey1};
|
|
39
39
|
}
|
|
40
|
-
`,Ue={width:new d(343,580,726),height:new d(
|
|
40
|
+
`,Ue={width:new d(343,580,726),height:new d(r[6],r[6]),controlHeight:new d(r[6],r[6]),paddingTopBottom:new d(r[2],r[2]),marginRight:new d(r[2],r[2]),labelMarginLeft:new d(r[3],r[4]),labelMarginRight:new d(r[3],r[4]),labelMarginTop:new d(r[2],r[2])},Tn={infoLabel:new gi("extraSmallRegular","smallRegular")};function ta({isDisabled:e,label:o,currencyAmountField:a,style:c,errorInfoLabel:p,isAdditionalInfoLabelLoading:C,showAdditionalLabelTooltip:m=!1,additionalLabelTooltip:v,additionalInfoLabel:f,showAdditionalInfoLabel:l=!0}){const k=Re(),{formState:{errors:x}}=nt(),s=Te(x,a.name)&&Lt(x,`${a.name}.amount`)!=null,y=Te(x,a.name)&&Lt(x,`${a.name}.currency`)!=null,$=a.showAmountCurrencyError===!0?s||y:!1,P=s||y||$,I=()=>{if(C===!0)return t.jsx(ra,{children:t.jsx(wt,{size:"Small",start:!0})});if(l&&f||$){let R=null;return m===!0&&l&&f&&(R=t.jsx(Sn,{placement:k==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(aa,{children:v??""}),children:t.jsx(sa,{children:t.jsx(da,{})})})),t.jsxs(la,{size:k,isError:$,hasToolTip:m,children:[R,f]})}};return t.jsxs(ia,{size:k,style:c,isDisabled:e!=null,isAmountError:s,isCurrencyError:y,"data-testid":q("labeled-currency-amount-field",a.name),children:[t.jsx(Bo,{isDisabled:e,label:o.label,htmlFor:a.name,style:{marginLeft:Ue.labelMarginLeft.value(k),marginRight:Ue.labelMarginRight.value(k),marginTop:Ue.labelMarginTop.value(k),width:o.width??"auto"}}),t.jsxs(oa,{labelWidth:o.width,children:[t.jsx(Jo,{...a,isDisabled:e,style:{flexGrow:1,height:Ue.controlHeight.value(k)}}),P?t.jsx(na,{size:k,hasError:P,children:p}):null,I()]})]})}const ia=n.div`
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: row;
|
|
43
43
|
align-items: flex-start;
|
|
@@ -104,49 +104,49 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
104
104
|
background-color: ${e=>e.isCurrencyError?j.importantLight:e.theme.colors.background};
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
`,
|
|
107
|
+
`,na=n.label`
|
|
108
108
|
color: ${e=>e.hasError===!0?j.important:e.additionalInfoTextColor!=null?e.additionalInfoTextColor:e.theme.colors.grey1};
|
|
109
109
|
width: auto;
|
|
110
|
-
${e=>`${
|
|
110
|
+
${e=>`${Tn.infoLabel.style(e.size)}`};
|
|
111
111
|
padding-right: ${i.sp3};
|
|
112
112
|
text-align: right;
|
|
113
|
-
`,
|
|
113
|
+
`,oa=n.div`
|
|
114
114
|
display: flex;
|
|
115
115
|
width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
|
|
116
116
|
justify-content: flex-end;
|
|
117
117
|
flex-direction: column;
|
|
118
118
|
position: relative;
|
|
119
|
-
`,
|
|
119
|
+
`,aa=n(hi)`
|
|
120
120
|
padding: 12px;
|
|
121
121
|
color: ${e=>e.theme.colors.grey1};
|
|
122
122
|
background: ${e=>e.theme.colors.overlayColor};
|
|
123
123
|
border-radius: ${i.sp1};
|
|
124
|
-
`,
|
|
124
|
+
`,ra=n.div`
|
|
125
125
|
padding-right: ${i.sp3};
|
|
126
126
|
padding-top: ${i.sp1};
|
|
127
127
|
display: flex;
|
|
128
128
|
justify-content: flex-end;
|
|
129
|
-
`,
|
|
129
|
+
`,la=n.label`
|
|
130
130
|
display: flex;
|
|
131
131
|
justify-content: flex-end;
|
|
132
132
|
color: ${e=>e.isError?j.important:e.theme.colors.hero};
|
|
133
133
|
&:hover {
|
|
134
134
|
color: ${e=>e.isError?j.importantDark:e.theme.colors.primary};
|
|
135
135
|
}
|
|
136
|
-
${e=>`${
|
|
136
|
+
${e=>`${Tn.infoLabel.style(e.size)}`};
|
|
137
137
|
padding-right: ${i.sp3};
|
|
138
138
|
text-align: right;
|
|
139
139
|
margin-top: ${e=>e.hasToolTip===!0?i.sp1:i.sp0};
|
|
140
|
-
`,
|
|
140
|
+
`,sa=n.div`
|
|
141
141
|
display: flex;
|
|
142
142
|
margin-right: ${i.sp2};
|
|
143
143
|
margin-top: 2px;
|
|
144
144
|
align-items: center;
|
|
145
|
-
`,
|
|
145
|
+
`,da=n(Fo)`
|
|
146
146
|
width: ${i.sp3};
|
|
147
147
|
height: ${i.sp3};
|
|
148
148
|
color: inherit;
|
|
149
|
-
`,he=(e,o)=>`${e}.${o}`,Ot={largeLabelWidth:new d(120,120,160),smallLabelWidth:new d(85,85,160),paddingBottom:new d(
|
|
149
|
+
`,he=(e,o)=>`${e}.${o}`,Ot={largeLabelWidth:new d(120,120,160),smallLabelWidth:new d(85,85,160),paddingBottom:new d(r[3],r[2]),autoFillIconLeft:new d(-8,-24)},{dateFormat:ca,common:Dn,spendManagement:{reimbursement:{reimbursementDetail:ie}}}=fe.getLocalizedStrings(),{strings:{empty:re}}=Dn,ua=(e,o)=>{const a=e.slice(1);let c=!1;return a.forEach(p=>{p.account?.qboId!=null&&p.account?.qboId===o&&(c=!0)}),c},ma=e=>e.charAt(0).toLowerCase()+e.slice(1),pa=({lineIndex:e,outOfPocket:o,accountList:a,classList:c,merchantList:p,isAddReimbursementDisabled:C,sectionId:m,isReimbursementCommentingEnabled:v,isDisabled:f,autoFields:l=[],accountsHierarchyList:k,classHierarchyList:x,reimbursementId:s,tentativeMerchantName:y,allCurrencies:$,uncategorizedAccounts:P})=>{const I=Re(),R=ht(),H=Bt(),L=xt(),{formState:{errors:T},getValues:B,trigger:te}=nt(),ne=B(he(m,"class")),oe=c.find(h=>h.classId===ne?.selectedOption),Y=he(m,"class"),K=Te(T,Y),F=B(he(m,"account")),Q=a.find(h=>h.qboId===F?.selectedOption||h.accountId===F?.selectedOption),_=he(m,"account"),z=Te(T,_);S.useEffect(()=>{ne?.selectedOption!=null&&(oe?.isDeleted===!0||K)&&te(Y)},[ne?.selectedOption,oe?.isDeleted,c,Y,te]),S.useEffect(()=>{F?.selectedOption!=null&&(Q?.isDeleted===!0||z)&&te(_)},[F?.selectedOption,Q?.isDeleted,a,_,te]);const ae=o.isCategoryUpdateSelected!=null&&o.recommendedAccount!=null&&!o.isCategoryFirstTimeAutofilled&&!ua(o.recommendations,o.account),le=o.isRetainedCategorySelected!=null&&o.retainedAccount!=null,U=Ot.largeLabelWidth.value(I),ce=Ot.smallLabelWidth.value(I),Ee=p.map(h=>h.id??re),ue={application:"dashboard",companyId:R.currentTenant?.companyId,tab:"reimbursement",entityId:s},ge=`dashboard_${R.currentTenant?.companyId}`,se=h=>p.find(ee=>ee.id===h)?.name??h,De=a.find(h=>h.qboId===o.account),je=h=>[P.expense?.qboId,P.income?.qboId].includes(h),Oe=c.find(h=>h.classId===o.class),me={valueContainer:h=>({...h,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},Pe=h=>a.filter(ee=>ee.qboId===h)[0]?.qboId,pe=h=>c.filter(ee=>ee.classId===h)[0]?.accountingClassNumber,ve=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",ma(o?.recommendedAccount?.reason??re)),Ge=zt(k,o.recommendations);return t.jsxs(t.Fragment,{children:[y!=null||l.includes("merchant")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:ge,companyId:R.currentTenant?.companyId??re,companyName:R.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:H?.sharedRef?.contentWrapperRef,children:t.jsx(Uo,{isDisabled:f!=null||C?"disabled":void 0,label:{label:ie.merchant,width:U},style:{width:"auto"},creatableSingleSelectField:{name:he(m,"merchant"),placeholder:ie.merchantPlaceholder,defaultValue:{selectedOption:o.merchant??re,allOptions:Ee},registerOptions:{required:!0,validate:h=>!!h.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:se})}),t.jsx(It,{}),l.includes("transactionDate")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:ge,companyId:R.currentTenant?.companyId??re,companyName:R.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:H?.sharedRef?.contentWrapperRef,children:t.jsx($n,{isDisabled:f,label:{label:ie.transactionDate,width:U},style:{paddingBottom:Ot.paddingBottom.valuePx(I),width:"auto"},dateField:{name:he(m,"transactionDate"),placeholder:ie.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:ca.visual.defaultInput,autoComplete:"off",maxDate:bi(),registerOptions:{required:!0,validate:h=>!!h}}})}),t.jsx(It,{}),l.includes("amount")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,isTwoLined:!0,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:ge,companyId:R.currentTenant?.companyId??re,companyName:R.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:H?.sharedRef?.contentWrapperRef,children:t.jsx(ta,{isDisabled:f!=null||C?"disabled":void 0,label:{label:ie.amount,width:ce},style:{width:"auto"},currencyAmountField:{style:{height:i.sp6},name:`${m}.amount`,defaultValue:{amount:o.amount.amount,currencyCode:o.amount.currencyCode,currencySymbol:o.amount.currencySymbol},placeHolder:{amount:ie.addAmount,name:ie.addAmount},allCurrencies:$,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:ie.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:o.isConvertedCurrencyLoading===!0,additionalInfoLabel:!ln(o.homeCurrencyDetails,o.amount)&&o.amount.currencyCode!==Dn.currency.currencyCode&&o.homeCurrencyDetails?.amount!==0?`${zo("0,0[.]00",o.homeCurrencyDetails)} ${o.homeCurrencyDetails?.currencyCode}`:void 0})}),t.jsx(It,{}),l.includes("memo")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:ge,companyId:R.currentTenant?.companyId??re,companyName:R.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:H?.sharedRef?.contentWrapperRef,children:t.jsx(pi,{isDisabled:f,label:{label:ie.memo,width:U},style:{width:"auto"},text:{type:"text",name:he(m,"memo"),placeholder:tt(ie.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:vn}}})}),t.jsx(It,{}),l.includes("account")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.account`}),roomId:ge,companyId:R.currentTenant?.companyId??re,companyName:R.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("account",e,"out_of_pocket")}`},fieldThreadTargetElement:H?.sharedRef?.contentWrapperRef,children:t.jsx(si,{label:{label:ie.category,width:U},additionalLabelInfo:Q?.isDeleted===!0&&Te(T,he(m,"account"))?ie.deletedCategoryError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:ae||le,name:he(m,"account"),placeholder:ie.categoryPlaceholder,valueToId:h=>Pe(h),defaultValue:{selectedOption:De?.qboId??De?.accountId,allOptions:Ge},style:{width:"100%"},customStyleConfig:me,registerOptions:{required:!0,validate:h=>h?.selectedOption==null?!1:a.find(ee=>ee.qboId===h?.selectedOption||ee.accountId===h?.selectedOption)?.isDeleted===!0?ie.deletedCategoryError:!0}},disableCurrentOption:je,style:{borderBottom:`1px solid ${L.colors.grey3}`,minHeight:i.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:o.isRecommendationLoading,recommendationCheckboxField:ae?{tooltipProps:{text:ve},label:{label:o.recommendedAccount?.accountName??re},checkBoxField:{name:he(m,"isCategoryUpdateSelected"),defaultChecked:!!o.isCategoryUpdateSelected}}:void 0,retainCheckboxField:le?{label:{label:o.retainedAccount?.accountName??re},checkBoxField:{name:he(m,"isRetainedCategorySelected"),defaultChecked:!!o.isRetainedCategorySelected}}:void 0},he(m,"account"))}),l.includes("class")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.class`}),roomId:ge,companyId:R.currentTenant?.companyId??re,companyName:R.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("class",e,"out_of_pocket")}`},fieldThreadTargetElement:H?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(si,{isLoading:!1,label:{label:ie.department,width:U},additionalLabelInfo:oe?.isDeleted===!0&&Te(T,he(m,"class"))?ie.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:he(m,"class"),placeholder:tt(ie.department),valueToId:h=>pe(h),defaultValue:{selectedOption:Oe?.classId,allOptions:Ke(x,[])},style:{width:"100%"},customStyleConfig:me,registerOptions:{required:!0,validate:h=>h?.selectedOption==null?!1:c.find(ee=>ee.classId===h?.selectedOption)?.isDeleted===!0?ie.deletedClassError:!0}},style:{borderBottom:`1px solid ${L.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},he(m,"class"))})]})},ct=n.span`
|
|
150
150
|
position: relative;
|
|
151
151
|
`,ut=n(mi)`
|
|
152
152
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -157,20 +157,20 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
157
157
|
left: ${e=>Ot.autoFillIconLeft.valuePx(e.windowSize)};
|
|
158
158
|
position: absolute;
|
|
159
159
|
top: ${e=>e.isTwoLined===!0?i.sp5:"22px"};
|
|
160
|
-
`,
|
|
160
|
+
`,It=n.div`
|
|
161
161
|
display: flex;
|
|
162
162
|
flex: 1;
|
|
163
163
|
background-color: ${e=>e.theme.colors.grey3};
|
|
164
164
|
min-height: 1px;
|
|
165
165
|
max-height: 1px;
|
|
166
|
-
`,
|
|
166
|
+
`,Ze=(e,o)=>`${e}.${o}`,Ve={paddingTop:new d(r[5],r[4]),marginBottom:new d(r[3],r[3]),labelPaddingLeft:new d(r[3],r[4]),buttonWidth:new d(70,70),containerRightMargin:new d(r[3],r[8]),containerLeftMargin:new d(r[3],r[6]),deleteConfirmationTextMarginBottom:new d(r[2],r[0])},G=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,ha=({lineData:e,currencyConversionState:o,recommendationFetchState:a,remiStage:c,lineIndex:p,accountList:C,classList:m,merchantList:v,hasFile:f,defaultCurrency:l,hasMultipleLineItems:k,fileRequiredLineIds:x,duplicateLineDetails:s,remiStatus:y,sectionId:$,isDisabled:P,isReimbursementCommentingEnabled:I,isAddReimbursementDisabled:R,style:H,autoFields:L=[],analytics:T,reimbursementId:B,tentativeMerchantName:te,companyMileageConfigInfo:ne,uncategorizedAccounts:oe,removeDuplicateReimbursementForLine:Y,scrollToSection:K,onDuplicateLineClick:F,onRemoveReimbursement:Q,clearTentativeNameForLine:_,allCurrencies:z,accountsHierarchyList:ae,classHierarchyList:le})=>{const U=Re(),ce=ht(),Ee=Bt(),ue=fe.getLocalizedStrings().common.strings.empty,ge={application:"dashboard",companyId:ce.currentTenant?.companyId,tab:"reimbursement",entityId:B},se=`dashboard_${ce.currentTenant?.companyId}`,{getValues:De}=nt(),[je,Oe]=S.useState(!1),me=De(Ze($,"reimbursementType"));return t.jsxs(Sa,{style:H,windowSize:U,children:[t.jsxs(ya,{hasFile:f,windowSize:U,showDeleteConfirmation:je,children:[t.jsx(va,{windowSize:U,children:k?`#${p+1} ${G.reimbursement}`:G.reimbursement}),je?t.jsxs(wa,{windowSize:U,children:[t.jsx(xa,{windowSize:U,children:G.deleteConfirmation}),t.jsxs(ga,{children:[t.jsx(Oi,{label:G.buttons.cancel,onClick:()=>Oe(!1),style:{width:Ve.buttonWidth.value(U),marginLeft:U==="small"?i.sp0:i.sp4,marginRight:i.sp3},size:"small",variant:"secondary","data-testid":q("delete-remi-button",G.buttons.cancel)}),t.jsx(Oi,{label:G.buttons.remove,onClick:()=>{T?.trackReimbursementDeleteReimbursementLine(e.lineId,B),_?.(e.lineId??"1"),Oe(!1),Y(e.lineId),Q(p)},style:{width:Ve.buttonWidth.value(U)},size:"small",variant:"danger","data-testid":q("delete-remi-button",G.buttons.remove)})]})]}):k&&(c==="draft"||y==="rejected")?t.jsx(ba,{className:"deleteIconWrapper",windowSize:U,onClick:()=>Oe(!0),"data-testid":q("delete-remi-button",e.lineId),children:t.jsx(Sn,{enterDelay:600,title:G.deleteReimbursement,placement:"top-end",children:t.jsx(fa,{})})}):null]}),x.includes(e.lineId)?t.jsx(un,{title:G.missingReceipt,description:G.missingReceiptDescription,style:{marginBottom:i.sp3}}):null,t.jsxs(Ca,{windowSize:U,children:[s?.duplicateLineId!=null?t.jsxs($a,{children:[G.thisExpense," ",s.isDuplicateWithinTransaction?t.jsx(Ei,{"data-testid":q("view-duplicate-transaction-expense"),onClick:()=>(T?.trackReimbursementViewDuplicateExpense(!0,B),K(s.duplicateLineId)),children:G.viewOriginalExpense}):t.jsx(Ei,{"data-testid":q("view-duplicate-expense"),onClick:()=>{s.duplicateTransactionId!=null&&s.duplicateLineId!=null&&(T?.trackReimbursementViewDuplicateExpense(!1,B),F(s.duplicateTransactionId,s.duplicateLineId))},children:G.viewOriginalExpense})]}):null,t.jsx(Se,{isThreadAllowed:I&&B!=null,dashboardTabKey:$e({type:"details",key:me===G.mileageKey?`${p}.mileage.reimbursementType`:`${p}.out_of_pocket.reimbursementType`}),roomId:se,companyId:ce.currentTenant?.companyId??ue,companyName:ce.currentTenant?.companyName??ue,entityId:B,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${ke("reimbursementType",p,me===G.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:Ee?.sharedRef?.contentWrapperRef,style:{borderRadius:s?.duplicateLineId!=null?"0 0 0 0":`${i.sp2} ${i.sp2} 0 0`},children:t.jsxs(Ia,{isDisabled:P!=null,haveBorderRadius:s?.duplicateLineId==null,children:[t.jsx(Pi,{isDisabled:P!=null||R?"disabled":void 0,isContainerClickable:!0,label:{label:G.outOfPocket},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ve.labelPaddingLeft.value(U),borderTopLeftRadius:"inherit"},showOutline:!(I&&B!=null),radioField:{name:Ze($,"reimbursementType"),id:`${Ze($,"reimbursementType")}.${G.outOfPocketKey}`,value:G.outOfPocketKey}}),t.jsx(ka,{}),t.jsx(Pi,{isDisabled:P!=null||R?"disabled":void 0,isContainerClickable:!0,label:{label:G.mileage},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ve.labelPaddingLeft.value(U),borderTopRightRadius:"inherit"},showOutline:!(I&&B!=null),radioField:{name:Ze($,"reimbursementType"),id:`${Ze($,"reimbursementType")}.${G.mileageKey}`,value:G.mileageKey}})]})}),t.jsx(Ta,{}),me===G.outOfPocketKey?t.jsx(pa,{lineIndex:p,reimbursementId:B,uncategorizedAccounts:oe,isReimbursementCommentingEnabled:I,isDisabled:P,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?it(e.outOfPocket.transactionDate.toDateString()):void 0,account:e.outOfPocket.account.selectedOption,isConvertedCurrencyLoading:o?.fetchState==="In-Progress",isRecommendationLoading:a==="In-Progress",homeCurrencyDetails:e.homeCurrencyConversions,class:e.outOfPocket.class.selectedOption,amount:{amount:e.outOfPocket.amount?.amount??0,currencyCode:e.outOfPocket.amount?.currencyCode??"USD",currencySymbol:e.outOfPocket.amount?.currencySymbol??"$"},memo:e.outOfPocket.memo,merchant:e.outOfPocket.merchant.selectedOption,recommendations:e.outOfPocket.recommendations,recommendedAccount:e.outOfPocket.recommendedAccount,isCategoryUpdateSelected:e.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:e.outOfPocket.isCategoryFirstTimeAutofilled,retainedAccount:e.outOfPocket.retainedAccount,isRetainedCategorySelected:e.outOfPocket.isRetainedCategorySelected},sectionId:Ze($,"outOfPocket"),accountList:C,classList:m,autoFields:L,merchantList:v,tentativeMerchantName:te,allCurrencies:z,isAddReimbursementDisabled:R,accountsHierarchyList:ae,classHierarchyList:le}):t.jsx(Qo,{lineIndex:p,reimbursementId:B,isReimbursementCommentingEnabled:I,isDisabled:P,mileage:{transactionDate:e.mileage.transactionDate!=null?it(e.mileage.transactionDate.toDateString()):void 0,class:e.mileage.class.selectedOption,distanceInMiles:e.mileage.distanceInMiles,amount:{amount:e.mileage.amount?.amount??0,currencyCode:e.mileage.amount?.currencyCode??"USD",currencySymbol:e.mileage.amount?.currencySymbol??"$"},memo:e.mileage.memo},classList:m,sectionId:Ze($,"mileage"),companyMileageConfigInfo:ne,defaultCurrency:l,isAddReimbursementDisabled:R,classHierarchyList:le})]})]})},ga=n.div``,ya=n.div`
|
|
167
167
|
//when file is present and it's a small window, we don't have to show the title and delete icon. Delete icon will be displayed inside the invoice title, next to replace
|
|
168
168
|
//https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
|
|
169
169
|
display: ${e=>e.hasFile&&e.windowSize==="small"?"none":"flex"};
|
|
170
170
|
justify-content: ${e=>e.windowSize==="small"?e.showDeleteConfirmation?"center":"flex-end":"space-between"};
|
|
171
171
|
margin-bottom: ${i.sp3};
|
|
172
172
|
align-items: center;
|
|
173
|
-
`,
|
|
173
|
+
`,ba=n.div`
|
|
174
174
|
width: ${i.sp3};
|
|
175
175
|
height: ${i.sp3};
|
|
176
176
|
cursor: pointer;
|
|
@@ -182,18 +182,18 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
182
182
|
`,Ei=n.span`
|
|
183
183
|
border-bottom: 1px solid currentColor;
|
|
184
184
|
cursor: pointer;
|
|
185
|
-
`,
|
|
185
|
+
`,fa=n(Lo)`
|
|
186
186
|
width: ${i.sp3};
|
|
187
187
|
height: ${i.sp3};
|
|
188
188
|
cursor: pointer;
|
|
189
|
-
`,
|
|
189
|
+
`,xa=n.div`
|
|
190
190
|
margin-bottom: ${e=>Ve.deleteConfirmationTextMarginBottom.valuePx(e.windowSize)};
|
|
191
|
-
`,
|
|
191
|
+
`,wa=n(yi)`
|
|
192
192
|
color: ${e=>e.theme.colors.hero};
|
|
193
193
|
display: flex;
|
|
194
194
|
align-items: center;
|
|
195
195
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
196
|
-
`,
|
|
196
|
+
`,Sa=n.div`
|
|
197
197
|
display: flex;
|
|
198
198
|
flex-direction: column;
|
|
199
199
|
padding-top: ${e=>Ve.paddingTop.valuePx(e.windowSize)};
|
|
@@ -209,16 +209,16 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
209
209
|
display: block;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
`,$a=n(Ao)`
|
|
213
213
|
padding: ${i.sp2} ${i.sp0} ${i.sp2} ${i.sp4};
|
|
214
214
|
background-color: ${j.alertLight};
|
|
215
215
|
color: ${j.brandColorGoldDark};
|
|
216
216
|
border-top-left-radius: inherit;
|
|
217
217
|
border-top-right-radius: inherit;
|
|
218
|
-
|
|
218
|
+
`,va=n(Mt)`
|
|
219
219
|
color: ${e=>e.theme.colors.primary};
|
|
220
220
|
display: ${e=>e.windowSize==="small"?"none":"unset"};
|
|
221
|
-
`,
|
|
221
|
+
`,Ca=n.div`
|
|
222
222
|
display: flex;
|
|
223
223
|
flex-direction: column;
|
|
224
224
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -226,49 +226,49 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
226
226
|
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
227
227
|
border-radius: ${i.sp2};
|
|
228
228
|
margin-bottom: ${e=>Ve.marginBottom.valuePx(e.windowSize)};
|
|
229
|
-
`,
|
|
229
|
+
`,ka=n.div`
|
|
230
230
|
background-color: ${e=>e.theme.colors.grey3};
|
|
231
231
|
min-width: 1px;
|
|
232
232
|
max-width: 1px;
|
|
233
|
-
`,
|
|
233
|
+
`,Ia=n.div`
|
|
234
234
|
display: flex;
|
|
235
235
|
flex-direction: row;
|
|
236
236
|
border-top-left-radius: ${e=>e.haveBorderRadius?"inherit":"unset"};
|
|
237
237
|
border-top-right-radius: ${e=>e.haveBorderRadius?"inherit":"unset"};
|
|
238
|
-
`,
|
|
238
|
+
`,Ta=n.div`
|
|
239
239
|
display: flex;
|
|
240
240
|
flex: 1;
|
|
241
241
|
background-color: ${e=>e.theme.colors.grey3};
|
|
242
242
|
min-height: 1px;
|
|
243
243
|
max-height: 1px;
|
|
244
|
-
`,
|
|
244
|
+
`,Da=(e,o)=>`${e}.${o}`,pt={labelWidth:new d(120,160,160),paddingBottom:new d(r[3],r[3]),paddingTop:new d(12,r[3]),marginBottom:new d(12,r[3]),containerRightMargin:new d(r[3],r[8]),containerLeftMargin:new d(r[3],r[6])},jn=({isReimbursementCommentingEnabled:e,sectionId:o,isDisabled:a,reportTitle:c,reimbursementId:p,style:C})=>{const m=Re(),v=ht(),f=Bt(),l=`dashboard_${v.currentTenant?.companyId}`,k=fe.getLocalizedStrings(),x=k.spendManagement.reimbursement.reimbursementDetail,s=k.common.strings.empty,y=pt.labelWidth.value(m);return t.jsxs(ja,{style:C,windowSize:m,children:[t.jsx(Pa,{windowSize:m,children:x.whatFor}),t.jsx(Oa,{children:t.jsx(Se,{isThreadAllowed:e&&p!=null,dashboardTabKey:$e({type:"details",key:"whatFor"}),roomId:l,companyId:v.currentTenant?.companyId??s,companyName:v.currentTenant?.companyName??s,entityId:p,dashboardOptionType:"reimbursement",filterMetaData:{application:"dashboard",companyId:v.currentTenant?.companyId,tab:"reimbursement",entityId:p,entityType:"reimbursement.details.whatFor"},fieldThreadTargetElement:f?.sharedRef?.contentWrapperRef,style:{borderRadius:i.sp2},children:t.jsx(pi,{isDisabled:a,label:{label:x.reportTitle,width:y},text:{type:"text",name:Da(o,"reportTitle"),placeholder:x.lunchWithClient,defaultValue:c,autoComplete:"off",options:{required:!0,validate:$=>!!$}},style:{width:"auto",borderRadius:i.sp2}})})})]})},ja=n.div`
|
|
245
245
|
display: flex;
|
|
246
246
|
flex-direction: column;
|
|
247
247
|
padding-top: ${e=>pt.paddingTop.valuePx(e.windowSize)};
|
|
248
248
|
padding-bottom: ${e=>pt.paddingBottom.valuePx(e.windowSize)};
|
|
249
249
|
margin-right: ${e=>pt.containerRightMargin.valuePx(e.windowSize)};
|
|
250
250
|
margin-left: ${e=>pt.containerLeftMargin.valuePx(e.windowSize)};
|
|
251
|
-
`,
|
|
251
|
+
`,Oa=n.div`
|
|
252
252
|
display: flex;
|
|
253
253
|
flex-direction: column;
|
|
254
254
|
background-color: ${e=>e.theme.colors.grey5};
|
|
255
255
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
256
256
|
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
257
257
|
border-radius: ${i.sp2};
|
|
258
|
-
`,Pa=n(
|
|
258
|
+
`,Pa=n(Mt)`
|
|
259
259
|
color: ${e=>e.theme.colors.primary};
|
|
260
260
|
margin-bottom: ${e=>pt.marginBottom.valuePx(e.windowSize)};
|
|
261
|
-
`,E={largeLabelWidth:new d(120,120,220),marginTop:new d(28,8),paymentToMarginTop:new d(0,
|
|
262
|
-
${
|
|
263
|
-
${
|
|
261
|
+
`,E={largeLabelWidth:new d(120,120,220),marginTop:new d(28,8),paymentToMarginTop:new d(0,r[4]),marginBottom:new d(r[5],r[4]),paymentToMarginBottom:new d(12,r[3]),totalMarginBottom:new d(r[3],r[3]),reimbursementSectionLeftMargin:new d(r[3],r[6]),reimbursementSectionRightMargin:new d(r[3],r[8]),invoiceSectionLeftMargin:new d(r[3],r[8]),invoiceSectionRightMargin:new d(r[3],r[6]),rightSectionWidth:new d(100,58),firstOrLastItemHeight:new d(390,760),itemHeight:new d(390,459),duplicateBannerWrapperMarginTop:new d(r[5],r[3]),duplicateBannerWrapperMarginRight:new d(r[3],r[8]),duplicateBannerWrapperMarginBottom:new d(r[5],r[3]),duplicateBannerWrapperMarginLeft:new d(r[3],r[6])},Ra={total:new gi("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:V},billPay:{vendorCreation:{achDetails:Tt}}},common:{currency:{currencyCode:Dt}}}=fe.getLocalizedStrings(),On=e=>{let o=0,a=Dt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const c=e;o=c.outOfPocket.amount??0,a=c.outOfPocket.currencyCode??Dt}else{const c=e;o=c.outOfPocket.amount?.amount??0,a=c.outOfPocket.amount?.currencyCode??Dt}return(e.homeCurrencyConversions?.currencyCode??Dt)!==a&&(o=e.homeCurrencyConversions?.amount??0),o},La=({remiUploadStatus:e,progressSectionObj:o,reimbursementId:a,createDate:c,scheduleDate:p,paymentDate:C,hasDuplicateLine:m,approvedDate:v,isFirstOrLastListItem:f,index:l,reimbursementSectionRef:k,showSkipAutoFill:x,lineData:s,currencyConversionState:y,authParams:$,uploadInvoiceEndPoint:P,accountList:I,classList:R,merchantList:H,remiStage:L,autoFieldsByLineId:T,isReimbursementCommentingEnabled:B,isAutoFieldsExist:te,totalAmount:ne,showTotalAmountLoader:oe,totalNumberOfLines:Y,defaultCurrency:K,bankAccounts:F,fileRequiredLineIds:Q,isAddReimbursementDisabled:_,duplicateLineByLineId:z,remiStatus:ae,file:le,uncategorizedAccounts:U,reportTitle:ce,recommendationFetchState:Ee,tentativeMerchantName:ue,paymentTo:ge,analytics:se,companyMileageConfigInfo:De,loggedInUserDepartmentId:je,isSignedInUserReimbursementCreator:Oe,setShowBankAccountPage:me,setRefByLineId:Pe,setCurrentLineIdForUpload:pe,onDuplicateLineClick:ve,setUploadedReceiptPayload:Ge,removeDuplicateReimbursementForLine:h,onReceiptsUpload:ee,scrollToSection:ot,onRemoveReimbursement:at,onAddReimbursement:Ne,clearTentativeNameForLine:Le,onReplaceClick:Ye,onDeleteBankAccount:Ae,updateInvoiceUploadFetchState:qe,removeFileFromLine:He,allCurrencies:Qe,accountsHierarchyList:Je,classHierarchyList:de})=>{const{formState:{errors:rt}}=nt(),lt=S.useRef(null);S.useEffect(()=>(Pe(O=>({...O,[`L${s.lineId}`]:lt.current})),()=>{Pe(O=>({...O,[`L${s.lineId}`]:null}))}),[s.lineId,Pe]);const J=Re(),ze=L==="draft"?V.newReimbursementTitle:V.editReimbursementTitle,N=E.largeLabelWidth.value(J),xe=O=>O.outOfPocket.account.selectedOption==null&&(O.outOfPocket.amount==null||O.outOfPocket.amount.amount==0)&&(O.outOfPocket.class.selectedOption==null||O.outOfPocket.class.selectedOption===je)&&(O.outOfPocket.memo===""||O.outOfPocket.memo==null)&&O.outOfPocket.merchant.selectedOption==null&&O.outOfPocket.transactionDate==null,st=F.map(O=>O.bankAccountId),Et=s.reimbursementType===V.outOfPocketKey&&On(s)>=75&&le==null;return t.jsxs(Xa,{ref:k,windowSize:J,children:[t.jsx(Za,{ref:O=>{O!=null&&(lt.current=O)},windowSize:J,bottomSeperator:Y!==1,showSkipAutoFill:x,isFirstItem:l===0,children:t.jsx(In,{customError:Et?V.requireReceipt:void 0,analytics:se,showAutofill:!1,uploadInvoiceEndPoint:P,authParams:$,entityId:_?"":void 0,file:le,style:{width:"auto",padding:0,height:f?E.firstOrLastItemHeight.valuePx(J):E.itemHeight.valuePx(J),margin:J==="small"?i.sp0:void 0},updateInvoiceUploadFetchState:qe,onInvoiceUpload:O=>{s.reimbursementType===V.outOfPocketKey&&!xe(s)?(pe(Number(s.lineId)),Ge(O),Ye?.()):ee(O,Number(s.lineId),!0)},dropFilePlaceholder:{upload:V.dropReceipt.upload,receipt:V.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!_,pdfTitle:Y>1?`#${l+1} Receipt`:"Receipt",onDeleteClick:()=>{qe?.("In-Progress"),setTimeout(()=>He?.(Number(s.lineId)))},onReplaceClick:()=>{pe(Number(s.lineId)),Ye?.()},allowMultiFiles:Y===l+1,type:"reimbursement"})}),t.jsxs(Ja,{windowSize:J,children:[l===0&&J!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ua,{children:ze}),t.jsx(er,{children:t.jsx(Do,{progressSectionObj:o,createDate:c,paymentDate:C,scheduleDate:p,approvedDate:v,isBillUploaded:a!=null?!0:e==="Completed"})}),te&&t.jsxs(Ba,{children:[t.jsx(Aa,{}),t.jsx(Wa,{children:V.banner})]}),m&&t.jsxs(Ma,{size:J,children:[t.jsx(za,{}),t.jsxs(Ea,{children:[t.jsx(Fa,{children:V.thereSeems}),t.jsx(Na,{children:V.pleaseFind})]})]}),t.jsx(jn,{isReimbursementCommentingEnabled:B,sectionId:At,reportTitle:ce,reimbursementId:a})]}):null,t.jsx(ha,{analytics:se,reimbursementId:a,onDuplicateLineClick:ve,uncategorizedAccounts:U,sectionId:`${fi}.${l}`,scrollToSection:ot,lineIndex:l,lineData:s,accountList:I,classList:R,merchantList:H,autoFields:s.lineId!=null?T[s.lineId]:[],currencyConversionState:y,recommendationFetchState:Ee,onRemoveReimbursement:at,hasMultipleLineItems:Y>1,clearTentativeNameForLine:Le,tentativeMerchantName:ue,hasFile:le!=null,companyMileageConfigInfo:De,defaultCurrency:K,remiStage:L,remiStatus:ae,fileRequiredLineIds:Q,allCurrencies:Qe,isReimbursementCommentingEnabled:B,isAddReimbursementDisabled:_,accountsHierarchyList:Je,classHierarchyList:de,duplicateLineDetails:z[s.lineId],removeDuplicateReimbursementForLine:h}),Y!==1&&Y===l+1&&t.jsxs(t.Fragment,{children:[t.jsxs(_a,{windowSize:J,children:[t.jsx(qa,{children:V.total}),oe?t.jsx(Ha,{windowSize:J,children:t.jsx(Ka,{children:t.jsx(wt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(gn,{amount:kn(ne,"USD","$"),integerStyles:Rt.h6Regular.cssObject,decimalStyles:Rt.standardRegular.cssObject})]}),t.jsxs(Ya,{windowSize:J,onClick:()=>{_===!1&&Ne()},isDisabled:_,"data-testid":q("add-reimbursement-row"),children:[t.jsx(Wi,{}),t.jsx(Ni,{children:V.addReimbursement})]}),Oe?t.jsxs(t.Fragment,{children:[t.jsx(Va,{windowSize:J,children:V.receivePaymentTo}),t.jsx(Ga,{windowSize:J,shouldDisplay:F.length>0,children:t.jsx(yn,{label:{label:V.yourBankAccount,width:N},style:{width:"auto"},singleSelectField:{singleSelect:{name:ft,placeholder:tt(V.yourBankAccount),showValueEyeIcon:!_,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:Ae,getTooltipInfo:O=>Pn(F,O),onClickCreateBankAccount:()=>me(!0),getLabelForId:O=>Ln(F,O),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:_?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:ge,allOptions:st},registerOptions:{required:!0,validate:O=>!!O.selectedOption}},isFunctional:!0})}),t.jsxs(Qa,{shouldDisplay:F.length===0,windowSize:J,hasError:Te(rt,ft),onClick:()=>{_===!1&&me(!0)},isDisabled:_,"data-testid":q("remi-add-bank-account-container"),children:[t.jsx(Wi,{}),t.jsx(Ni,{children:V.addBankAccount})]})]}):null]})]})]})},Pn=(e,o)=>{const a=Rn(e,o);return a==null?`${Tt.bankRoutingNumber} ${V.emptyValue}
|
|
262
|
+
${Tt.bankAccountNumber} ${V.emptyValue}`:`${Tt.bankRoutingNumber} ${a.bankRoutingNumberAch??V.emptyValue}, ${a.bankName??V.emptyValue}
|
|
263
|
+
${Tt.bankAccountNumber} ${a.bankAccountNumber??V.emptyValue}`},Rn=(e,o)=>e.find(a=>a.bankAccountId===o),Ln=(e,o)=>{const a=Rn(e,o);return a==null?V.selectBankAccount:a.bankAccountName?a.bankAccountName:a.maskedAccountNumber?a.maskedAccountNumber:a.bankName&&a.bankAccountNumber?`${a.bankName} ${V.accountNameConnector}${a.bankAccountNumber.slice(a.bankAccountNumber.length-4)}`:V.selectBankAccount},Aa=n(mi)`
|
|
264
264
|
color: ${e=>e.theme.colors.primary};
|
|
265
265
|
width: ${i.sp3};
|
|
266
266
|
height: ${i.sp3};
|
|
267
|
-
`,
|
|
267
|
+
`,za=n(Ro)`
|
|
268
268
|
width: ${i.sp4};
|
|
269
269
|
height: ${i.sp4};
|
|
270
270
|
color: ${j.brandColorGoldDark};
|
|
271
|
-
`,
|
|
271
|
+
`,Ba=n.div`
|
|
272
272
|
display: flex;
|
|
273
273
|
gap: ${i.sp2};
|
|
274
274
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
@@ -276,7 +276,7 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
276
276
|
border-radius: ${i.sp2};
|
|
277
277
|
align-items: center;
|
|
278
278
|
margin: 0 ${i.sp8} 0 ${i.sp6};
|
|
279
|
-
`,
|
|
279
|
+
`,Ma=n.div`
|
|
280
280
|
display: flex;
|
|
281
281
|
gap: ${i.sp2};
|
|
282
282
|
padding: ${i.sp3};
|
|
@@ -288,26 +288,26 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
288
288
|
margin-left: ${e=>E.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
289
289
|
background-color: ${j.alertLight};
|
|
290
290
|
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
291
|
-
`,
|
|
291
|
+
`,Fa=n(Ft)`
|
|
292
292
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
293
|
-
`,
|
|
293
|
+
`,Ea=n.div`
|
|
294
294
|
width: 100%;
|
|
295
|
-
`,
|
|
295
|
+
`,Na=n(yi)`
|
|
296
296
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
297
|
-
`,
|
|
297
|
+
`,Wa=n.span`
|
|
298
298
|
color: ${e=>e.theme.colors.hero};
|
|
299
|
-
`,
|
|
299
|
+
`,Ua=n(Po)`
|
|
300
300
|
letter-spacing: -0.02em;
|
|
301
301
|
color: ${e=>e.theme.colors.primary};
|
|
302
302
|
margin: ${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6};
|
|
303
|
-
`,
|
|
303
|
+
`,Va=n(Mt)`
|
|
304
304
|
letter-spacing: -0.02em;
|
|
305
305
|
color: ${e=>e.theme.colors.primary};
|
|
306
306
|
margin-top: ${e=>E.paymentToMarginTop.valuePx(e.windowSize)};
|
|
307
307
|
margin-bottom: ${e=>E.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
308
308
|
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
309
309
|
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
310
|
-
`,
|
|
310
|
+
`,_a=n.div`
|
|
311
311
|
padding: ${i.sp3};
|
|
312
312
|
display: flex;
|
|
313
313
|
align-items: center;
|
|
@@ -321,22 +321,22 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
321
321
|
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
322
322
|
margin-bottom: ${e=>E.totalMarginBottom.valuePx(e.windowSize)};
|
|
323
323
|
justify-content: space-between;
|
|
324
|
-
`,
|
|
324
|
+
`,qa=n(fn)`
|
|
325
325
|
display: flex;
|
|
326
326
|
width: 176px;
|
|
327
327
|
color: ${e=>e.theme.colors.primary};
|
|
328
|
-
`,
|
|
328
|
+
`,Ha=n(xn)`
|
|
329
329
|
display: flex;
|
|
330
330
|
width: calc(100% - 176px);
|
|
331
331
|
justify-content: flex-end;
|
|
332
332
|
color: ${e=>e.theme.colors.primary};
|
|
333
|
-
${e=>`${
|
|
334
|
-
`,
|
|
333
|
+
${e=>`${Ra.total.style(e.windowSize)}`};
|
|
334
|
+
`,Ka=n.div`
|
|
335
335
|
padding-right: ${i.sp3};
|
|
336
336
|
height: 30px;
|
|
337
337
|
display: flex;
|
|
338
338
|
justify-content: flex-end;
|
|
339
|
-
`,
|
|
339
|
+
`,Ga=n.div`
|
|
340
340
|
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
341
341
|
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
342
342
|
margin-bottom: ${i.sp3};
|
|
@@ -344,7 +344,7 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
344
344
|
border-radius: ${i.sp2};
|
|
345
345
|
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
346
346
|
display: ${e=>e.shouldDisplay?"unset":"none"};
|
|
347
|
-
`,
|
|
347
|
+
`,Ya=n.div`
|
|
348
348
|
padding: ${i.sp3};
|
|
349
349
|
display: flex;
|
|
350
350
|
align-items: center;
|
|
@@ -363,7 +363,7 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
363
363
|
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
364
364
|
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
365
365
|
margin-bottom: ${e=>E.marginBottom.valuePx(e.windowSize)};
|
|
366
|
-
`,
|
|
366
|
+
`,Qa=n.div`
|
|
367
367
|
padding: ${i.sp3};
|
|
368
368
|
display: ${e=>e.shouldDisplay?"flex":"none"};
|
|
369
369
|
align-items: center;
|
|
@@ -381,9 +381,9 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
381
381
|
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
382
382
|
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
383
383
|
margin-bottom: ${e=>E.marginBottom.valuePx(e.windowSize)};
|
|
384
|
-
`,Ni=n(
|
|
384
|
+
`,Ni=n(Ft)`
|
|
385
385
|
color: inherit;
|
|
386
|
-
`,Wi=n(
|
|
386
|
+
`,Wi=n(wn)`
|
|
387
387
|
margin-right: ${i.sp2};
|
|
388
388
|
width: ${i.sp3};
|
|
389
389
|
height: ${i.sp3};
|
|
@@ -405,25 +405,25 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
405
405
|
visibility: ${e=>e.showSkipAutoFill?"hidden":"unset"};
|
|
406
406
|
margin-bottom: ${e=>e.bottomSeperator===!0&&e.windowSize!=="small"?e.isFirstItem?"102px":i.sp10:0};
|
|
407
407
|
margin-top: ${e=>E.marginTop.valuePx(e.windowSize)};
|
|
408
|
-
`,
|
|
408
|
+
`,er=n.div`
|
|
409
409
|
padding: ${i.sp2} ${i.sp8} ${i.sp0} ${i.sp6};
|
|
410
|
-
`,
|
|
411
|
-
margin-left: ${e=>
|
|
412
|
-
margin-right: ${e=>
|
|
413
|
-
margin-bottom: ${e=>
|
|
410
|
+
`,tr={total:new gi("largeMedium","h6Medium")},X={largeLabelWidth:new d(120,120,220),marginBottom:new d(r[5],r[4]),addBankAccountMarginBottom:new d(r[5],r[5]),marginTop:new d(r[0],78),paymentToMarginTop:new d(0,r[4]),totalMarginBottom:new d(r[3],r[3]),rightMargin:new d(r[3],r[8]),leftMargin:new d(r[3],r[6]),paymentToMarginBottom:new d(12,r[3])},et=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,ir=({remiDetails:e,isUserAdmin:o,authParams:a,uploadInvoiceEndPoint:c,showSkipAutoFill:p,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,totalAmount:v,defaultCurrency:f,hasDuplicateLine:l,bankAccounts:k,fileRequiredLineIds:x,companyMileageConfigInfo:s,analytics:y,reimbursementId:$,currencyConversionStatus:P,setShowSkipAutoFill:I,setShowBankAccountPage:R,removeDuplicateReimbursementForLine:H,onReceiptsUpload:L,setCurrentLineIdForUpload:T,onDuplicateLineClick:B,setUploadedReceiptPayload:te,removeFileFromLine:ne,onReplaceClick:oe,updateInvoiceUploadFetchState:Y,clearTentativeNameForLine:K,onDeleteBankAccount:F,uncategorizedAccounts:Q,isSignedInUserReimbursementCreator:_,duplicateLineByLineId:z,showTotalAmountLoader:ae,scrollContainerRef:le})=>{const{control:U,formState:{errors:ce}}=nt(),{fields:Ee,append:ue,remove:ge}=wo({name:fi,control:U}),se=Ee,De=S.useRef(null),je=N=>{setTimeout(()=>{ge(N)})},{tentativeMerchantNameByLineId:Oe,remiStage:me,remiStatus:Pe}=e,pe=!_||me==="pending_approval"&&Pe!=="rejected"&&o||me==="pending_approval"&&Pe==="rejected",ve=pe?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:k,Ge=ve.map(N=>N.bankAccountId),h=Re(),ee=X.largeLabelWidth.value(h),ot=e.whatForSection.reportTitle,at=e.accountList.accounts,Ne=e.accountsHierarchyList,Le=e.classHierarchyList,Ye=e.classList.classes,Ae=e.merchantList.merchants,qe=e.addRemiAutoFieldsByLineId,He=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(N=>Number(N)),0),Qe=()=>{const N=se[se.length-1],xe=An(se.length,Number(N.lineId)>He?String(Number(N.lineId)+1):String(He+1),Ne,Le,Ae,f,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{ue(xe,{shouldFocus:!1})}),T(Number(xe.lineId)),I(!0),setTimeout(()=>zi(De.current,le?.current),50)},[Je,de]=S.useState({}),rt=S.useCallback(N=>{const xe=Je[`L${N}`];xe!=null&&zi(xe,le?.current)},[Je,le]),lt=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,J=e.reimbursementInfo?.paymentDate!=null?it(Cn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,ze=e.reimbursementInfo?.expectedDepositDate??J;return t.jsxs(rr,{windowSize:h,showSkipAutoFill:p,children:[se.map((N,xe)=>t.jsx(La,{removeDuplicateReimbursementForLine:H,onDuplicateLineClick:B,scrollToSection:rt,setRefByLineId:de,duplicateLineByLineId:z,reimbursementId:$,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:Q,progressSectionObj:lt,createDate:e.createTime,paymentDate:ze,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:se.length-1===xe||xe===0,index:xe,reimbursementSectionRef:De,remiStage:me,remiStatus:Pe,authParams:a,file:N.file,uploadInvoiceEndPoint:c,showSkipAutoFill:p,lineData:N,currencyConversionState:P[N.lineId],recommendationFetchState:e.lineDetailSection[N.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:T,setUploadedReceiptPayload:te,onReplaceClick:oe,onReceiptsUpload:L,removeFileFromLine:ne,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,reportTitle:ot,accountList:at,classList:Ye,merchantList:Ae,autoFieldsByLineId:qe,onRemoveReimbursement:je,onAddReimbursement:Qe,totalAmount:v,showTotalAmountLoader:ae,hasDuplicateLine:l,totalNumberOfLines:se.length,updateInvoiceUploadFetchState:Y,clearTentativeNameForLine:K,tentativeMerchantName:Oe[N.lineId],companyMileageConfigInfo:s,defaultCurrency:f,setShowBankAccountPage:R,paymentTo:e.paymentTo,bankAccounts:ve,onDeleteBankAccount:F,analytics:y,fileRequiredLineIds:x,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:pe,accountsHierarchyList:Ne,classHierarchyList:Le,isSignedInUserReimbursementCreator:_},N.lineId)),se.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(Xt,{children:[h!=="small"?t.jsx(Qt,{windowSize:h}):null,t.jsx(Jt,{windowSize:h,children:t.jsxs(lr,{windowSize:h,children:[t.jsx(sr,{children:et.total}),ae?t.jsx(cr,{windowSize:h,children:t.jsx(ur,{children:t.jsx(wt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(gn,{amount:kn(v,Li.currencyCode,Li.currencySymbol),integerStyles:Rt.h6Regular.cssObject,decimalStyles:Rt.standardRegular.cssObject})]})})]}),t.jsxs(Xt,{children:[h!=="small"?t.jsx(Qt,{windowSize:h}):null,t.jsx(Jt,{windowSize:h,children:t.jsxs(mr,{windowSize:h,onClick:()=>{pe===!1&&Qe()},isDisabled:pe,"data-testid":q("add-reimbursement-container"),children:[t.jsx(Vi,{}),t.jsx(Ui,{children:et.addReimbursement})]})})]}),t.jsxs(Xt,{children:[h!=="small"?t.jsx(Qt,{windowSize:h}):null,_?t.jsxs(Jt,{windowSize:h,children:[t.jsx(dr,{windowSize:h,children:et.receivePaymentTo}),t.jsx(ar,{windowSize:h,shouldDisplay:ve.length>0,children:t.jsx(yn,{label:{label:et.yourBankAccount,width:ee},style:{width:"auto"},singleSelectField:{singleSelect:{name:ft,placeholder:tt(et.yourBankAccount),showValueEyeIcon:!pe,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:F,getTooltipInfo:N=>Pn(ve,N),onClickCreateBankAccount:()=>R(!0),getLabelForId:N=>Ln(ve,N),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:pe?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:Ge},registerOptions:{required:!0,validate:N=>!!N.selectedOption}},isFunctional:!0})}),t.jsxs(pr,{shouldDisplay:ve.length===0,windowSize:h,onClick:()=>{pe===!1&&R(!0)},hasError:Te(ce,ft),isDisabled:pe,"data-testid":q("remi-add-bank-account-container"),children:[t.jsx(Vi,{}),t.jsx(Ui,{children:et.addBankAccount})]})]}):null]})]})]})},An=(e,o,a,c,p,C,m,v)=>{const f=nr(a,c,p,C,m,v);return{lineIndex:e,lineId:o,reimbursementType:et.outOfPocketKey,file:void 0,outOfPocket:f,mileage:or(c,C,v)}},nr=(e,o,a,c,p,C)=>({transactionDate:void 0,class:{allOptions:_e(Ke(o,[])),selectedOption:C},account:{allOptions:_e(zt(e,[])),selectedOption:void 0},amount:{amount:0,currencyCode:c.currencyCode,currencySymbol:c.currencySymbol,currency:{allOptions:p.map(m=>({label:`${m.currencyCode} - ${m.currency}`,value:m.currencyCode,countryCode:ci(m.countryCode)})),selectedOption:c.currencyCode??fe.getLocalizedStrings().common.currency.currencyCode}},memo:void 0,merchant:{allOptions:a.map(m=>m.id).filter(m=>!!m),selectedOption:void 0},recommendations:[],isCategoryUpdateSelected:!1,isCategoryFirstTimeAutofilled:!1,isRetainedCategorySelected:!1}),or=(e,o,a)=>({transactionDate:void 0,class:{allOptions:_e(Ke(e,[])),selectedOption:a},distanceInMiles:void 0,amount:{amount:0,currencyCode:o.currencyCode,currencySymbol:o.currencySymbol},memo:void 0}),ar=n.div`
|
|
411
|
+
margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
|
|
412
|
+
margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
|
|
413
|
+
margin-bottom: ${e=>X.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
414
414
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
415
415
|
border-radius: ${i.sp2};
|
|
416
416
|
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
417
417
|
display: ${e=>e.shouldDisplay?"inherit":"none"};
|
|
418
|
-
`,
|
|
418
|
+
`,Qt=n.div`
|
|
419
419
|
width: ${e=>e.windowSize==="small"?"100%":"42%"};
|
|
420
|
-
`,
|
|
420
|
+
`,Jt=n.div`
|
|
421
421
|
width: ${e=>e.windowSize==="small"?"100%":"58%"};
|
|
422
|
-
`,
|
|
422
|
+
`,rr=n.div`
|
|
423
423
|
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
424
424
|
flex-direction: column;
|
|
425
|
-
margin-top: ${e=>
|
|
426
|
-
`,
|
|
425
|
+
margin-top: ${e=>X.marginTop.valuePx(e.windowSize)};
|
|
426
|
+
`,lr=n.div`
|
|
427
427
|
padding: ${i.sp3};
|
|
428
428
|
display: flex;
|
|
429
429
|
align-items: center;
|
|
@@ -432,32 +432,32 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
432
432
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
433
433
|
border-radius: ${i.sp2};
|
|
434
434
|
color: ${e=>e.theme.colors.hero};
|
|
435
|
-
margin-top: ${e=>
|
|
436
|
-
margin-left: ${e=>
|
|
437
|
-
margin-right: ${e=>
|
|
438
|
-
margin-bottom: ${e=>
|
|
439
|
-
`,
|
|
435
|
+
margin-top: ${e=>X.totalMarginBottom.valuePx(e.windowSize)};
|
|
436
|
+
margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
|
|
437
|
+
margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
|
|
438
|
+
margin-bottom: ${e=>X.totalMarginBottom.valuePx(e.windowSize)};
|
|
439
|
+
`,sr=n(fn)`
|
|
440
440
|
display: flex;
|
|
441
441
|
width: 176px;
|
|
442
442
|
color: ${e=>e.theme.colors.primary};
|
|
443
|
-
`,
|
|
443
|
+
`,dr=n(Mt)`
|
|
444
444
|
color: ${e=>e.theme.colors.primary};
|
|
445
|
-
margin-top: ${e=>
|
|
446
|
-
margin-bottom: ${e=>
|
|
447
|
-
margin-left: ${e=>
|
|
448
|
-
margin-right: ${e=>
|
|
449
|
-
`,
|
|
445
|
+
margin-top: ${e=>X.paymentToMarginTop.valuePx(e.windowSize)};
|
|
446
|
+
margin-bottom: ${e=>X.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
447
|
+
margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
|
|
448
|
+
margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
|
|
449
|
+
`,cr=n(xn)`
|
|
450
450
|
display: flex;
|
|
451
451
|
width: calc(100% - 176px);
|
|
452
452
|
justify-content: flex-end;
|
|
453
453
|
color: ${e=>e.theme.colors.primary};
|
|
454
|
-
${e=>`${
|
|
455
|
-
`,
|
|
454
|
+
${e=>`${tr.total.style(e.windowSize)}`};
|
|
455
|
+
`,ur=n.div`
|
|
456
456
|
padding-right: ${i.sp3};
|
|
457
457
|
height: 30px;
|
|
458
458
|
display: flex;
|
|
459
459
|
justify-content: flex-end;
|
|
460
|
-
`,
|
|
460
|
+
`,mr=n.div`
|
|
461
461
|
padding: ${i.sp3};
|
|
462
462
|
display: flex;
|
|
463
463
|
align-items: center;
|
|
@@ -473,11 +473,11 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
473
473
|
border: 1px solid
|
|
474
474
|
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
475
475
|
}
|
|
476
|
-
margin-top: ${e=>
|
|
477
|
-
margin-left: ${e=>
|
|
478
|
-
margin-right: ${e=>
|
|
479
|
-
margin-bottom: ${e=>
|
|
480
|
-
`,
|
|
476
|
+
margin-top: ${e=>X.totalMarginBottom.valuePx(e.windowSize)};
|
|
477
|
+
margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
|
|
478
|
+
margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
|
|
479
|
+
margin-bottom: ${e=>X.marginBottom.valuePx(e.windowSize)};
|
|
480
|
+
`,pr=n.div`
|
|
481
481
|
padding: ${i.sp3};
|
|
482
482
|
display: ${e=>e.shouldDisplay?"flex":"none"};
|
|
483
483
|
align-items: center;
|
|
@@ -492,39 +492,39 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
492
492
|
border: 1px solid
|
|
493
493
|
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
494
494
|
}
|
|
495
|
-
margin-left: ${e=>
|
|
496
|
-
margin-right: ${e=>
|
|
497
|
-
margin-bottom: ${e=>
|
|
498
|
-
`,Ui=n(
|
|
495
|
+
margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
|
|
496
|
+
margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
|
|
497
|
+
margin-bottom: ${e=>X.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
498
|
+
`,Ui=n(Ft)`
|
|
499
499
|
color: inherit;
|
|
500
|
-
`,Vi=n(
|
|
500
|
+
`,Vi=n(wn)`
|
|
501
501
|
margin-right: ${i.sp2};
|
|
502
502
|
width: ${i.sp3};
|
|
503
503
|
height: ${i.sp3};
|
|
504
|
-
`,
|
|
504
|
+
`,Xt=n.div`
|
|
505
505
|
display: flex;
|
|
506
506
|
width: 100%;
|
|
507
|
-
`,Fe={buttonWidth:new d(140,140),paddingLeft:new d(
|
|
507
|
+
`,Fe={buttonWidth:new d(140,140),paddingLeft:new d(r[3],r[6]),paddingRight:new d(r[3],r[8]),subTitleMarginbottom:new d(r[2],r[3]),orSeperatorTopBottomMargin:new d(r[6],44),iconWidthHeight:new d(20,r[4])},_i="userBankAccountPage",Pt="bankAccountSection",hr=e=>({[Pt]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName}}),qi=e=>`${e}_form`,gr=({bankAccountCreationState:e,setShowBankAccountPage:o,plaidConnectionDetails:a,onFetchLinkTokenClick:c,onEstablishConnectionClick:p,bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,isDisabled:v,onSaveHandler:f,onUserBankDetailsUpdated:l,onFetchBankName:k,onBackClick:x})=>{const s=xt(),y=Re(),$=rn({mode:"onBlur",reValidateMode:"onChange",defaultValues:S.useMemo(()=>hr(C),[C])}),P=S.useCallback(K=>{p?.(K),x()},[x,p]),I=a.link_account_no_microdeposit,{open:R}=$o({token:I.linkToken??null,onSuccess:P});S.useEffect(()=>{(it(new Date().toISOString()).isAfter(I.expiration)||I.linkToken==null)&&c?.("link_account_no_microdeposit")},[]);const[H,L]=S.useState(!1),T=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,B=fe.getLocalizedStrings().common.footer,te={onOkClick:()=>{L(!1),$.reset(),x()},onCancelClick:()=>{L(!1)}},ne=async(K,F)=>{const Q=F[Pt].bankRoutingNumber;l(F),K===`${Pt}.bankRoutingNumber`&&Q?.length===9&&jo.test(Q)===!0&&k?.(Q)};S.useEffect(()=>{const K=$.watch((F,{name:Q})=>{Q!=null&&F!=null&&vo(()=>ne(Q,F))});return()=>{K.unsubscribe()}}),S.useEffect(()=>{e?.fetchState==="Completed"&&x()},[e?.fetchState,x,o]);const oe=$.handleSubmit(K=>{m.fetchState!=="In-Progress"&&f()}),Y=s.mode==="light"?new ji(s.colors.brandColorJadeLight):new ji(s.colors.brandColorJadeDark);return t.jsxs(yr,{children:[t.jsxs(vr,{windowSize:y,children:[H===!0?t.jsx(di,{titleComponent:t.jsx(cn,{children:T.discardTitle}),descriptionComponent:t.jsx(dn,{children:T.discardDescription}),primaryButtonText:T.buttons.delete,secondaryButtonText:T.buttons.cancel,action:te}):null,t.jsx(qo,{header:T.addBankAccount,isDirty:$.formState.isDirty,onBackClick:x,setShowConfirmationPopup:L}),t.jsx(br,{}),t.jsxs(Cr,{size:y,children:[t.jsx(Co,{onClick:()=>{$.reset(),R()},title:T.connectYourBank,subTitle:T.loginToBank,header:T.setupAchPayments,icon:{element:t.jsx(ko,{width:Fe.iconWidthHeight.valuePx(y),height:Fe.iconWidthHeight.valuePx(y)}),color:Y},style:{width:"unset",rowGap:y==="small"?i.sp2:void 0}}),t.jsxs(fr,{windowSize:y,children:[t.jsx(xr,{}),t.jsx(Sr,{children:t.jsx($r,{children:T.or})})]}),t.jsx(wr,{windowSize:y,children:T.saveAccountManually})]}),t.jsx(kr,{size:y,children:t.jsx(sn,{...$,children:t.jsxs("form",{id:qi(_i),onSubmit:oe,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(Ho,{warningText:T.accountExistWarning}):null,t.jsx(_o,{bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,sectionId:Pt})]})})})]}),t.jsx(mn,{formId:qi(_i),primaryBtn:{label:T.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Fe.buttonWidth.value(y)},isDisabled:v!=null},cancelBtn:{label:B.cancel,style:{width:Fe.buttonWidth.value(y)},shouldResetOnCancel:!1,onClick:()=>{$.formState.isDirty?L(!0):(L(!1),$.reset(),x())}}})]})},yr=n.div`
|
|
508
508
|
display: flex;
|
|
509
509
|
flex-direction: column;
|
|
510
510
|
width: 100%;
|
|
511
511
|
height: 100%;
|
|
512
|
-
`,
|
|
512
|
+
`,br=n.div`
|
|
513
513
|
margin: ${i.sp2} 0;
|
|
514
514
|
position: relative;
|
|
515
|
-
`,
|
|
515
|
+
`,fr=n.div`
|
|
516
516
|
margin: ${e=>Fe.orSeperatorTopBottomMargin.valuePx(e.windowSize)} 0;
|
|
517
517
|
position: relative;
|
|
518
|
-
`,
|
|
518
|
+
`,xr=n.div`
|
|
519
519
|
background: ${e=>e.theme.colors.grey2};
|
|
520
520
|
height: 1px;
|
|
521
|
-
`,
|
|
521
|
+
`,wr=n(Oo)`
|
|
522
522
|
color: ${e=>e.theme.colors.primary};
|
|
523
523
|
margin-bottom: ${e=>Fe.subTitleMarginbottom.valuePx(e.windowSize)};
|
|
524
|
-
`,
|
|
524
|
+
`,Sr=n.div`
|
|
525
525
|
display: flex;
|
|
526
526
|
justify-content: center;
|
|
527
|
-
|
|
527
|
+
`,$r=n(hi)`
|
|
528
528
|
background: ${e=>e.theme.colors.background};
|
|
529
529
|
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
530
530
|
border-radius: ${i.sp5};
|
|
@@ -536,18 +536,18 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
536
536
|
color: ${e=>e.theme.colors.grey1};
|
|
537
537
|
top: -11px;
|
|
538
538
|
position: absolute;
|
|
539
|
-
|
|
539
|
+
`,vr=n.div`
|
|
540
540
|
display: flex;
|
|
541
541
|
flex-direction: column;
|
|
542
542
|
flex-grow: 1;
|
|
543
|
-
`,
|
|
543
|
+
`,Cr=n.div`
|
|
544
544
|
padding-left: ${e=>Fe.paddingLeft.valuePx(e.size)};
|
|
545
545
|
padding-right: ${e=>Fe.paddingRight.valuePx(e.size)};
|
|
546
|
-
`,
|
|
546
|
+
`,kr=n.div`
|
|
547
547
|
padding-left: ${e=>Fe.paddingLeft.valuePx(e.size)};
|
|
548
548
|
padding-right: ${e=>Fe.paddingRight.valuePx(e.size)};
|
|
549
549
|
padding-bottom: ${i.sp3};
|
|
550
|
-
`,Ie={containerWidth:new d(343,544),confirmationPopUpTitleMarginTop:new d(
|
|
550
|
+
`,Ie={containerWidth:new d(343,544),confirmationPopUpTitleMarginTop:new d(r[6],r[7]),confirmationPopUpTitlePaddingLeftRight:new d(r[5],r[8]),submitButtonWidth:new d(145,156),cancelButtonWidth:new d(121,121),errorLineItemGap:new d(r[2],12),styledCloseIconRight:new d(r[3],r[8])},{footer:Hi}=fe.getLocalizedStrings().common,be=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,Ki=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(Yi,{});case"In-Progress":return t.jsx(wt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(zn,{});default:return t.jsx(Yi,{})}},Ir=e=>{switch(e){case"Not-Started":return be.detectDuplicates;case"In-Progress":return be.detectingDuplicates;case"Completed":return be.noDuplicatesFound;default:return be.detectDuplicates}},Tr=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:a,numberOfDuplicateLines:c,setShowDuplicatePopup:p,analytics:C,reimbursementId:m,submitReport:v,fetchDuplicateReimbursement:f,clearDuplicateReimbursementDetail:l,clearRemiSaveStatus:k})=>{const x=Re(),[s,y]=Ct.useState(!0),$=li(e),P=li(o);Ct.useEffect(()=>{setTimeout(()=>{s&&(y(!1),o==="Not-Started"&&f())},2e3)},[o,f,s]),Ct.useEffect(()=>{$==="In-Progress"&&e==="Completed"&&(l(),p(!1))},[e,$,p,l]),Ct.useEffect(()=>{P==="In-Progress"&&o==="Completed"&&!a&&v()},[P,o,a,v]);const I=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[I?t.jsx(Dr,{size:x}):null,t.jsx(di,{action:{onOkClick:()=>{I?(l(),e==="Error"&&k(),y(!0)):(C?.trackReimbursementReviewDuplicateReportReimbursement(c,m),p(!1),yo())},onCancelClick:()=>{I?(l(),e==="Error"&&k(),p(!1)):(C?.trackReimbursementSubmitAnywayDuplicateReimbursement(c,m),v())}},shouldClickAway:I,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:I?Hi.resubmit:be.primaryButtonText,secondaryButtonText:I?Hi.cancel:be.secondaryButtonText,primaryButtonWidth:I?Ie.cancelButtonWidth.value(x):Ie.submitButtonWidth.value(x),secondaryButtonWidth:I?Ie.cancelButtonWidth.value(x):Ie.submitButtonWidth.value(x),descriptionComponent:t.jsx(Pr,{size:x,children:t.jsxs(jr,{hasDuplicate:a,duplicateReimbursementStatus:o,children:[t.jsxs(ei,{isDisabled:!1,isSuccess:!s,children:[s?t.jsx(wt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}}):t.jsx(zn,{}),t.jsx(Zt,{isDisabled:!1,children:s?be.reviewingExpenses:be.reviewedAllExpenses})]}),a||o==="Error"?t.jsxs(Ji,{size:x,children:[t.jsx(Gi,{}),t.jsx(Qi,{children:o==="Error"?be.failedToDetect:`${c} ${be.duplicateExpensesFound}`})]}):t.jsxs(ei,{isDisabled:o==="Not-Started",isSuccess:o==="Completed"&&c===0,children:[t.jsx(Ki,{fetchState:o}),t.jsx(Zt,{isDisabled:o==="Not-Started",children:Ir(o)})]}),e==="Error"?t.jsxs(Ji,{size:x,children:[t.jsx(Gi,{}),t.jsx(Qi,{children:be.failedToSubmit})]}):a||o==="Error"?null:t.jsxs(ei,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(Ki,{fetchState:e}),t.jsx(Zt,{isDisabled:e==="Not-Started",children:e==="Not-Started"?be.submitReport:be.submittingReport})]})]})}),titleComponent:t.jsx(Or,{size:x,children:be.title}),showFooter:a||I,containerStyle:{width:Ie.containerWidth.value(x),maxWidth:"unset"}})]})},Dr=n(hn)`
|
|
551
551
|
width: ${i.sp4};
|
|
552
552
|
height: ${i.sp4};
|
|
553
553
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -559,20 +559,20 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
559
559
|
&:hover {
|
|
560
560
|
color: ${e=>e.theme.colors.primary};
|
|
561
561
|
}
|
|
562
|
-
`,Gi=n(
|
|
562
|
+
`,Gi=n(To)`
|
|
563
563
|
width: ${i.sp4};
|
|
564
564
|
height: ${i.sp4};
|
|
565
565
|
min-width: ${i.sp4};
|
|
566
566
|
color: ${j.brandColorGoldDark};
|
|
567
|
-
`,Yi=n(
|
|
567
|
+
`,Yi=n(Ko)`
|
|
568
568
|
width: ${i.sp3};
|
|
569
569
|
height: ${i.sp3};
|
|
570
570
|
min-width: ${i.sp3};
|
|
571
571
|
color: ${e=>e.theme.colors.grey3};
|
|
572
|
-
`,
|
|
572
|
+
`,Zt=n.div`
|
|
573
573
|
color: ${e=>e.isDisabled?e.theme.colors.grey2:e.theme.colors.primary};
|
|
574
574
|
text-align: left;
|
|
575
|
-
`,
|
|
575
|
+
`,Qi=n.div`
|
|
576
576
|
color: ${j.brandColorGoldDark};
|
|
577
577
|
`,ei=n.div`
|
|
578
578
|
display: flex;
|
|
@@ -582,12 +582,12 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
582
582
|
${e=>e.isDisabled?e.theme.colors.grey3:e.theme.colors.primary};
|
|
583
583
|
padding: ${i.sp3};
|
|
584
584
|
border-radius: ${i.sp2};
|
|
585
|
-
`,
|
|
585
|
+
`,jr=n.div`
|
|
586
586
|
display: flex;
|
|
587
587
|
flex-direction: column;
|
|
588
588
|
gap: ${i.sp3};
|
|
589
589
|
margin-bottom: ${e=>e.hasDuplicate||e.duplicateReimbursementStatus==="Error"?0:i.sp3};
|
|
590
|
-
`,
|
|
590
|
+
`,Ji=n.div`
|
|
591
591
|
display: flex;
|
|
592
592
|
align-items: center;
|
|
593
593
|
gap: ${e=>Ie.errorLineItemGap.valuePx(e.size)};
|
|
@@ -596,14 +596,14 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
596
596
|
padding: ${i.sp3};
|
|
597
597
|
border-radius: ${i.sp2};
|
|
598
598
|
text-align: left;
|
|
599
|
-
`,
|
|
599
|
+
`,Or=n(ui)`
|
|
600
600
|
margin-top: ${e=>Ie.confirmationPopUpTitleMarginTop.valuePx(e.size)};
|
|
601
601
|
padding-left: ${e=>Ie.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
602
602
|
padding-right: ${e=>Ie.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
603
603
|
color: ${e=>e.theme.colors.primary};
|
|
604
604
|
word-break: break-word;
|
|
605
605
|
width: ${e=>e.size==="small"?"max-content":"-webkit-fill-available"};
|
|
606
|
-
`,Pr=n(
|
|
606
|
+
`,Pr=n(bn)`
|
|
607
607
|
color: ${e=>e.theme.colors.hero};
|
|
608
608
|
padding-left: ${e=>Ie.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
609
609
|
padding-right: ${e=>Ie.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
@@ -611,16 +611,16 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
611
611
|
margin-top: ${i.sp4};
|
|
612
612
|
white-space: pre-line;
|
|
613
613
|
width: -webkit-fill-available;
|
|
614
|
-
`,
|
|
614
|
+
`,zn=n(Io)`
|
|
615
615
|
width: ${i.sp4};
|
|
616
616
|
height: ${i.sp4};
|
|
617
617
|
min-width: ${i.sp4};
|
|
618
618
|
color: ${j.success};
|
|
619
|
-
`,Q={rightMargin:new d(a[3],a[8]),leftMargin:new d(a[3],a[6]),bottomMargin:new d(56,56),closeMarginTop:new d(0,19),closeMarginRight:new d(a[3],a[8]),rightSectionWidth:new d(100,58),leftSectionWidth:new d(100,42),footerButtonWidth:new d(120,165),right:new d(a[3],a[0]),actionsContainerRight:new d(a[0],a[6]),otherActionsContainerBottom:new d(58,44),duplicateBannerWrapperMarginTop:new d(a[5],a[3]),duplicateBannerWrapperMarginRight:new d(a[3],a[8]),duplicateBannerWrapperMarginBottom:new d(a[5],a[3]),duplicateBannerWrapperMarginLeft:new d(a[3],a[6]),navBarWidth:new d(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:b,bulkActions:Zi}},common:{currency:{currencyCode:We,currencySymbol:Pt},texts:{comments:Or},strings:{empty:Rr}},collaboration:{threads:{placeholder:{addANewComment:Lr,replyAComment:Ar},tooltip:{resolveComment:zr,unResolveComment:Br}}},dateFormat:Qi}=fe.getLocalizedStrings(),en="editReimbursementDetailPage",tn=e=>`${e}_form`,Mr=(e,o,r,c,p,C,m,v,f)=>{const l=e.outOfPocket,k=e.mileage,x=l.merchant,s=l.recommendations;return{lineIndex:C,lineId:e?.lineId??String(C+1),reimbursementType:e?.type??b.outOfPocketKey,file:e?.file,homeCurrencyConversions:{amount:e?.homeCurrencyConversions?.amount??0,currencyCode:e?.homeCurrencyConversions?.currencyCode??m.currencyCode,currencySymbol:e?.homeCurrencyConversions?.currencySymbol??m.currencySymbol},outOfPocket:{recommendedAccount:l.recommendedAccount,isCategoryUpdateSelected:l.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:l.isCategoryFirstTimeAutofilled??!1,retainedAccount:l.retainedAccount,isRetainedCategorySelected:l.isRetainedCategorySelected??!1,recommendations:s??[],transactionDate:l?.transactionDate?.toDate()??void 0,class:{allOptions:_e(Ke(r,[])),selectedOption:l?.lineDetail?.class?.classId??f},account:{allOptions:_e(Bt(o,s)),selectedOption:l.lineDetail?.account?.qboId??l.lineDetail?.account?.accountId},amount:{amount:l?.amount??0,currencyCode:l?.currencyCode??m.currencyCode,currencySymbol:l?.currencySymbol??m.currencySymbol,currency:{allOptions:v.map(y=>({label:`${y.currencyCode} - ${y.currency}`,value:y.currencyCode,countryCode:ci(y.countryCode)})),selectedOption:l?.currencyCode??m.currencyCode??We}},memo:l?.description??void 0,merchant:{allOptions:c.map(y=>y.id).filter(y=>!!y),selectedOption:x?.id?x?.id:x?.name?x?.name:e?.lineId!=null?p[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:_e(Ke(r,[])),selectedOption:k?.lineDetail?.class?.classId},distanceInMiles:k?.distanceMileage?.value,amount:{amount:k?.amount??0,currencyCode:k?.currencyCode??m.currencyCode,currencySymbol:k?.currencySymbol??m.currencySymbol},memo:k?.description}}},ti=(e,o,r)=>{const c=[];return Object.values(e.lineDetailSection).forEach((p,C)=>{p?.lineId!=null&&c.push(Mr(p,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,C,o,e.allCurrencies,e.loggedInUserDepartmentId))}),c.length===0&&c.push(Ln(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[zt]:{reportTitle:e.whatForSection.reportTitle},[fi]:c,[bt]:{selectedOption:e.paymentTo,allOptions:r.map(p=>p.bankAccountId)}}},ii=(e,o)=>{const r=c=>c.lineId==null||o[c.lineId]?.fetchState==="In-Progress"?0:(o[c.lineId]?.fetchState,c.type===b.mileageKey?c?.mileage?.amount??0:c?.outOfPocket?.currencyCode!==We&&c.homeCurrencyConversions?.amount!==c?.outOfPocket?.amount?c.homeCurrencyConversions?.amount??0:c?.outOfPocket?.amount??0);return Object.values(e).reduce((c,p)=>c+r(p),0)},ni=(e,o,r,c,p,C,m,v)=>{const f={};return e.lineInfo.forEach(l=>{const k=v.find(O=>O.classId===l.mileage.class.selectedOption),x=m.find(O=>O.qboId===l.outOfPocket.account.selectedOption||O.accountId===l.outOfPocket.account.selectedOption),s=v.find(O=>O.classId===l.outOfPocket.class.selectedOption),y=o.find(O=>O.id===l.outOfPocket.merchant.selectedOption),$=C.find(O=>O.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;f[l.lineId]={fileId:l.file?.fileId,lineId:l.lineId,type:l.reimbursementType,homeCurrencyConversions:l.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:l.mileage.memo??"",lineDetail:{class:k},transactionDate:l.mileage.transactionDate!=null?it(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??$,currencySymbol:l.mileage.amount?.currencySymbol??$,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:x},transactionDate:l.outOfPocket.transactionDate!=null?it(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??$,currencySymbol:$,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:y?.id??"",name:y?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:f,totalAmount:{amount:c,...r},currencyConversionStateByLineId:p,paymentTo:e.paymentTo.selectedOption}},Nl=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:c,uploadInvoiceEndPoint:p,isReimbursementCommentingEnabled:C,isUserAdmin:m,analytics:v,reimbursementId:f,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:x,bankAccounts:s,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:$,bankAccountToCreate:O,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:R,onFetchBankName:H,onSaveBankAccount:L,fetchDuplicateReimbursement:T,clearDuplicateReimbursementDetail:B,clearRemiSaveStatus:te,removeDuplicateReimbursementForLine:ne,onDuplicateLineClick:oe,onExistingMerchantChange:Y,onNewMerchantChange:K,onReceiptsUpload:F,saveRemiDetails:J,submitRemiDetails:_,discardReimbursementDetailsFromLocalStore:z,onReimbursementDetailsChanged:ae,updateReimbursementType:le,onHomeCurrencyConversionUpdate:U,redirectToReimbursementListScreen:ce,redirectToReimbursementDetailScreen:Ee,deleteReimbursement:ue,removeFileFromLine:ge,onZeniLogoClick:se,onAmountChanged:De,updateInvoiceUploadFetchState:je,clearTentativeNameForLine:Pe,onAddNewRule:me,onFetchLinkTokenClick:Oe,onEstablishConnectionClick:pe,deleteBankAccount:ve,onBackClickFromBankAccountPage:Ge,initialOpenThreadRequest:h})=>{const ee=S.useRef(null),ot=S.useRef(null),at=li(e.uploadStatus),Ne=ft(),Re=xt(),[Ye,Ae]=S.useState(!1),[qe,He]=S.useState(!1),[Je,Xe]=S.useState("save"),[de,rt]=S.useState(ii(e.lineDetailSection,e.currencyConversionStatus)),[lt,X]=S.useState(!1),[ze,N]=S.useState(null),[xe,st]=S.useState(!1),St=`dashboard_${Re.currentTenant?.companyId}`,P=an({mode:"all",reValidateMode:"onChange",defaultValues:S.useMemo(()=>ti(e,r,s),[e,r,s]),values:S.useMemo(()=>ti(e,r,s),[e,r,s]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:zn,dirtyFields:Bn}=P.formState,Mn=async(g,D)=>{const{lineInfo:u}=D,w=Number(g.split(".")[1]);if(g.includes("reportTitle")||g.includes("memo"))return;if(g.includes("reimbursementType")){const M=u[w].mileage,W=u[w].outOfPocket;u[w]={...u[w],outOfPocket:{transactionDate:W.transactionDate??void 0,class:{allOptions:W.class.allOptions??_e(Ke(e.classHierarchyList,[])),selectedOption:W.class.selectedOption??void 0},account:{allOptions:W.account.allOptions??_e(Bt(e.accountsHierarchyList,[])),selectedOption:W.account.selectedOption??void 0},amount:W.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(we=>({label:`${we.currencyCode} - ${we.currency}`,value:we.currencyCode,countryCode:ci(we.countryCode)})),selectedOption:r.currencyCode??We}},memo:W.memo??void 0,merchant:W.merchant??void 0,recommendations:W.recommendations??[],recommendedAccount:W.recommendedAccount??void 0,isCategoryUpdateSelected:W.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:W.isCategoryFirstTimeAutofilled??!1,retainedAccount:W.retainedAccount??void 0,isRetainedCategorySelected:W.isRetainedCategorySelected??!1},mileage:{transactionDate:M.transactionDate??void 0,class:{allOptions:M.class.allOptions??_e(Ke(e.classHierarchyList,[])),selectedOption:M.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:M.distanceInMiles,amount:{amount:M?.amount?.amount??0,currencyCode:M?.amount?.currencyCode??We,currencySymbol:M?.amount?.currencySymbol??Pt},memo:M.memo??void 0}}}else if(g.includes("mileage.distanceInMiles")){const{distanceInMiles:M}=u[w].mileage,W=c?.mileageUnitAmount??0;u[w].mileage={...u[w].mileage,amount:{amount:M!=null?M*W:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(g.includes("outOfPocket.amount")&&u[w].lineId){const M=u[w].outOfPocket.amount,W=e.allCurrencies.find(we=>we.currencyCode===M?.currency.selectedOption)?.currencySymbol;if(M?.currencyCode!==M?.currency.selectedOption){const we=M?.currency?.allOptions||[];u[w].outOfPocket.amount={currency:{allOptions:we,selectedOption:M?.currency?.selectedOption},amount:u[w].outOfPocket?.amount?.amount??0,currencyCode:M?.currency.selectedOption??We,currencySymbol:W??Pt}}if(M?.currency.selectedOption!==We)X(!0),qn(u[w].lineId,We);else{const we={};u.forEach(Yt=>{we[Yt.lineId]={lineId:Yt.lineId,homeCurrencyConversions:Yt.homeCurrencyConversions}}),u[w].homeCurrencyConversions={amount:M.amount??0,currencyCode:M?.currency.selectedOption??We,currencySymbol:W??Pt};const ki=ii(we,e.currencyConversionStatus);de!==ki&&rt(ki)}}else if(g.includes("outOfPocket.isRetainedCategorySelected"))u[w].outOfPocket.isRetainedCategorySelected===!0&&(u[w].outOfPocket.isCategoryUpdateSelected=!1,u[w].outOfPocket.account.selectedOption=u[w].outOfPocket.retainedAccount?.qboId);else if(g.includes("outOfPocket.isCategoryUpdateSelected"))if(u[w].outOfPocket.isCategoryUpdateSelected===!0)u[w].outOfPocket.account.selectedOption=u[w].outOfPocket.recommendedAccount?.qboId,u[w].outOfPocket.isRetainedCategorySelected=!1;else{const M=u[w].lineId,W=e.editRemiInitialDetails.lineDetailSection[M]?.lineDetail?.account?.qboId;u[w].outOfPocket.account.selectedOption=W,u[w].outOfPocket.isRetainedCategorySelected=!1}else g.includes("outOfPocket.account")&&(u[w].outOfPocket.recommendations.length>0&&(u[w].outOfPocket.recommendedAccount=u[w].outOfPocket.recommendations[0].account),u[w].outOfPocket.recommendedAccount?.qboId!=null&&u[w].outOfPocket.account.selectedOption===u[w].outOfPocket.recommendedAccount?.qboId?u[w].outOfPocket.isCategoryUpdateSelected=!0:u[w].outOfPocket.isCategoryUpdateSelected=!1,u[w].outOfPocket.retainedAccount?.qboId!=null&&u[w].outOfPocket.account.selectedOption===u[w].outOfPocket.retainedAccount?.qboId?u[w].outOfPocket.isRetainedCategorySelected=!0:u[w].outOfPocket.isRetainedCategorySelected=!1,u[w].outOfPocket.isCategoryFirstTimeAutofilled=!1);const Ct=ni({...D,lineInfo:u},e.merchantList.merchants,r,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(ae?.(Ct),g.includes("outOfPocket.merchant")){const M=u[w].lineId,W=u[w].outOfPocket.merchant.selectedOption??"";u[w].outOfPocket.merchant.allOptions.find(we=>we===W)!=null?Y(W,M):K(W,M)}},xi=S.useMemo(()=>Ii((g,D)=>Mn(g,D),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);S.useEffect(()=>{const g=P.watch((D,{name:u})=>{u!=null&&D!=null&&xi(u,D)});return()=>{g.unsubscribe()}},[xi,P]),S.useEffect(()=>{const g=Eo(Object.values(e.currencyConversionStatus)),D=g.fetchState==="In-Progress"||g.fetchState==="Error";X(D)},[e.currencyConversionStatus]),S.useEffect(()=>{for(const D in e.currencyConversionStatus){const u=e.lineDetailSection[D],w=e.lineDetailSection[D];e.currencyConversionStatus[D].fetchState==="Completed"&&w!=null&&u.type!==b.mileageKey&&!rn(u?.homeCurrencyConversions,w.homeCurrencyConversions)&&U({amount:u?.homeCurrencyConversions?.amount??0,currencyCode:u?.homeCurrencyConversions?.currencyCode??We,currencySymbol:u?.homeCurrencyConversions?.currencySymbol??Pt},D,f)}const g=ii(e.lineDetailSection,e.currencyConversionStatus);de!==g&&rt(g)},[e.currencyConversionStatus,e.lineDetailSection]),S.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(z(f),ce?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,f,z,ce]);const A=Le(),[Be,ht]=S.useState(f==null),[gt,Fn]=S.useState(1),[En,Nt]=S.useState(!1),[Nn,Wn]=S.useState(""),[Wt,Un]=S.useState(null),[Vn,dt]=S.useState(!1),[_n,wi]=S.useState(!1),[Ut,Vt]=S.useState([]),[ye,$t]=S.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),qn=S.useRef(Ii((g,D)=>De(g,D),500,{trailing:!0})).current;S.useEffect(()=>{at==="In-Progress"&&(e.uploadStatus==="Completed"?(P.reset(ti(e,r,s),{keepDefaultValues:!0}),Ae(!1),ht(!1)):e.uploadStatus==="Error"&&Ae(!1))},[at,e.uploadStatus,P,e,Ye,Ae,Be,r,s,v]),S.useEffect(()=>{e.uploadStatus==="In-Progress"&&Be===!1&&Ae(!0)},[e.uploadStatus,Ae,Be]);const _t=e.remiStage==="draft"?b.newReimbursementTitle:b.editReimbursementTitle,Hn={onOkClick:()=>{if(dt(!1),ye.primaryButtonText===b.buttons.discard)z(f),e.remiStage==="draft"?ce?.():Ee?.();else if(ye.primaryButtonText===b.buttons.delete)ye.title===b.deleteBankAccountTitle?ve?.(Nn):ue?.();else if(ye.primaryButtonText===b.buttons.yes&&Wt!=null){const g=Ut.filter(D=>D!==gt.toString());Vt(g),F(Wt,gt,!0)}},onCancelClick:()=>{if(dt(!1),ye.secondaryButtonText===b.buttons.no){const g=Ut.filter(D=>D!==gt.toString());Vt(g),F(Wt,gt,!1)}}},Si=()=>{zn||bo(Bn)?($t({title:b.discardTitle,description:b.discardDescription,primaryButtonText:b.buttons.discard,secondaryButtonText:b.buttons.cancel}),dt(!0)):(z(f),ce?.())},Kn=()=>{$t({title:e.remiStage==="draft"?b.deleteDraftTitle:b.deleteReportTitle,description:b.deleteAlertDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),dt(!0)},Gn=g=>{Wn(g),$t({title:b.deleteBankAccountTitle,description:b.deleteBankAccountDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),dt(!0)},Yn=()=>{$t({title:b.overwriteTitle,description:b.overwriteDescription,primaryButtonText:b.buttons.yes,secondaryButtonText:b.buttons.no}),dt(!0)},Jn=()=>{let g=!0;const D=[];return Object.values(e.lineDetailSection).forEach((u,w)=>{u.type===b.outOfPocketKey&&jn(u)>=75&&u.file==null&&(D.push(u.lineId),g=!1)}),Vt(D),g},$i=()=>{if(m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")Si();else{Xe("save");const g=P.getValues(),D=ni(g,e.merchantList.merchants,r,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);ae?.(D);const u=D.whatForSection?.reportTitle;u!=null&&u.length>0?J(e.remiStatus==="rejected"?"pending_approval":"draft"):P.trigger(`${zt}.reportTitle`,{shouldFocus:!0})}};let qt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(g=>{g.length>0&&(qt=!0)});let vi=[];if(e.remiId==null){const g=de??0;g>0&&(vi=e.approvalRules.allApprovalRules?.filter(D=>{const u=D.criteria[0].range;if(u.max!=null){if(u.min.amount<g&&u.max.amount>=g)return D}else if(u.min.amount<g)return D;return null}).map(D=>({...D,stepsWithStatus:D.steps.map(u=>({...u,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const Xn=g=>{const D=Jn();return P.handleSubmit(()=>{D&&(Xe("submit"),v?.trackReimbursementSubmitReimbursement(e.createTime?.format(Qi.analytics.MMMDashDDDashYYYYFormat)??bi().format(Qi.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,de,f),B(),wi(!0))})(g)},Zn=()=>{const g=P.getValues(),D=ni(g,e.merchantList.merchants,r,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);ae?.(D),_()},Qn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,eo=e.reimbursementInfo?.paymentDate!=null?it(vn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,to=e.reimbursementInfo?.expectedDepositDate??eo,io=f!=null&&e.remiStage==="draft",Ci=No(e.duplicateLineByLineId),Ht=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ci>0,{requestToOpenThread:Kt,setRequestToOpenThread:vt,setOpenThread:Gt}=S.useContext(ao);S.useEffect(()=>{h?.threadId!=null&&h?.companyId!=null&&h?.entityType!=null&&vt(h)},[h,vt]);const{threads:yt,isLoading:Ze}=ro({application:"dashboard",companyId:Re.currentTenant?.companyId,tab:"reimbursement",entityId:f,isGlobalComment:!1},"both",!1);S.useEffect(()=>{Kt?.threadId!=null&&yt.length>0&&!Ze&&(Gt(Kt.threadId),vt(null))},[Kt,yt,Ze,Gt,vt]);const no=S.useMemo(()=>f==null?[]:yt.filter(g=>g.resolved===!1&&!g.id.includes(lo)),[yt,f]).length,oo=(g,D)=>{Gt(D);const u=g.entityType.split("."),w=parseInt(u[2]);if(isNaN(w)){st(!1);return}const Ct=`${w+1}`,M=e.lineDetailSection[w+1].type;u.includes(b.mileageKey)&&M===b.outOfPocketKey?le(Ai(b.mileageKey),Ct,f):u.includes(b.outOfPocketKey)&&M===b.mileageKey&&le(Ai(b.outOfPocketKey),Ct,f),st(!1)};return t.jsx(Er,{ref:ee,children:t.jsx(so,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:ot.current??null}},children:t.jsxs(ln,{...P,children:[t.jsx("form",{id:tn(en),onSubmit:g=>Xn(g),children:t.jsxs(hl,{windowSize:A,ref:ot,children:[Vn?t.jsx(di,{titleComponent:t.jsx(dn,{children:ye.title}),descriptionComponent:t.jsx(sn,{children:ye.description}),primaryButtonText:ye.primaryButtonText,secondaryButtonText:ye.secondaryButtonText,action:Hn,proceedButtonVariant:ye.title===b.deleteBankAccountTitle||ye.title===b.deleteDraftTitle||ye.title===b.deleteReportTitle||ye.title===b.discardTitle?"danger":"primary",isEditPopup:ye.title===b.deleteBankAccountTitle}):null,_n?t.jsx(Ir,{reimbursementId:f,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:Ht,numberOfDuplicateLines:Ci,setShowDuplicatePopup:wi,submitReport:Zn,fetchDuplicateReimbursement:T,clearDuplicateReimbursementDetail:B,clearRemiSaveStatus:te,analytics:v}):null,Ye?t.jsx(on,{windowSize:A}):null,Be?t.jsxs(on,{windowSize:A,"data-testid":q("skip-autofill-section"),children:[A==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Xr,{children:t.jsx(ri,{partOfSkipAutoFill:!0,size:A,onClick:()=>ht(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(ai,{withOverlay:!0,children:t.jsx(oi,{})})})}),t.jsx(Qr,{children:_t})]}):null,t.jsx(kn,{showAutofill:Be,analytics:v,onSkipAutofill:()=>{v?.trackReimbursementSkipAutofill(),ht(!1)},uploadInvoiceEndPoint:p,authParams:o,style:{width:Q.leftSectionWidth.valuePercentage(A),boxSizing:"border-box",backgroundColor:A==="small"?Ne.colors.grey4:"unset",padding:A==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:A==="small"?i.sp0:void 0},onInvoiceUpload:g=>F(g,gt,!0),dropFilePlaceholder:{upload:b.dropReceipt.upload,single:b.dropReceipt.single,or:b.dropReceipt.or,multiple:b.dropReceipt.multiple,receipts:b.dropReceipt.receipts},updateInvoiceUploadFetchState:je,showInfoText:!1,allowMultiFiles:Be,type:"reimbursement"}),A!=="small"?t.jsx(Zr,{children:t.jsx(ri,{partOfSkipAutoFill:!0,onClick:()=>ht(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(ai,{withOverlay:!0,children:t.jsx(oi,{})})})}):null]}):null,t.jsxs(dl,{windowSize:A,"data-testid":q("edit-reimbursement-detail-page-nav-bar-container"),children:[A!=="small"?t.jsx(Ti,{style:{width:"42%"},"data-testid":q("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(cl,{"data-testid":q("zeni-logo-spend-management-reimbursement-detail-page"),onClick:se}),enableTitleOnScroll:!1,scrollableContent:ee,backgroundColor:Ne.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,A!=="small"?t.jsx(Nr,{}):null,t.jsx(Ti,{style:{width:Q.navBarWidth.valuePercentage(A)},"data-testid":q("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:_t,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Be!=!0?t.jsxs(ul,{children:[C&&f!=null?t.jsxs(ml,{isDisabled:Ze,"data-testid":q("remi-comment-button"),onClick:Ze?()=>null:g=>{g.preventDefault(),g.stopPropagation(),N({roomId:St,companyId:Re.currentTenant?.companyId??"",companyName:Re.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:f}),st(!0),v?.trackCommentActivity("reimbursement","clicked",Re.currentTenant?.companyName??"",Re.controllersList.controllers.map(D=>uo(D)),void 0,void 0,"page icon")},children:[t.jsx(co,{count:Ze?void 0:no,isLoading:Ze,style:{left:"12px"}}),t.jsx(pl,{})]}):null,t.jsx(ri,{size:A,onClick:()=>Si(),"data-testid":q("close-nav-bar"),children:t.jsx(ai,{withOverlay:!1,children:t.jsx(oi,{})})})]}):null,enableTitleOnScroll:A!=="small",scrollThreshold:64,scrollableContent:ee,backgroundColor:Ne.colors.grey4})]}),A==="small"?t.jsxs(t.Fragment,{children:[t.jsx(sl,{children:_t}),t.jsx(mo,{progressSectionObj:Qn,createDate:e.createTime,paymentDate:to,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:f!=null?!0:e.uploadStatus==="Completed"}),qt&&t.jsxs(il,{children:[t.jsx(tl,{}),t.jsx(nl,{children:b.banner})]}),e.isProcessing?t.jsx(cn,{variant:"warning",style:{margin:A==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Zi.duplicateWarning.title,description:Zi.duplicateWarning.description}):Ht?t.jsxs(ol,{size:A,children:[t.jsx(_r,{}),t.jsxs(rl,{children:[t.jsx(al,{children:b.thereSeems}),t.jsx(ll,{children:b.pleaseFind})]})]}):null,t.jsx(Dn,{isReimbursementCommentingEnabled:C,sectionId:zt,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(tr,{onDuplicateLineClick:oe,reimbursementId:f,remiDetails:e,uploadInvoiceEndPoint:p,authParams:o,showSkipAutoFill:Be,setShowSkipAutoFill:ht,isReimbursementCommentingEnabled:C,isAutoFieldsExist:qt,totalAmount:de,removeFileFromLine:ge,onReplaceClick:Yn,onReceiptsUpload:F,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Fn,setUploadedReceiptPayload:Un,updateInvoiceUploadFetchState:je,clearTentativeNameForLine:Pe,defaultCurrency:r,companyMileageConfigInfo:c,isUserAdmin:m,setShowBankAccountPage:Nt,bankAccounts:s,onDeleteBankAccount:Gn,analytics:v,fileRequiredLineIds:Ut,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:$,showTotalAmountLoader:lt,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:Ht,removeDuplicateReimbursementForLine:ne,scrollContainerRef:ee}),t.jsxs(gl,{showSkipAutoFill:Be,windowSize:A,children:[A!=="small"?t.jsx(nn,{}):null,t.jsx(yl,{windowSize:A,children:t.jsxs(bl,{windowSize:A,children:[e.remiId!==void 0&&t.jsx(Di,{amount:de??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:me,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&de!=null&&de>0?t.jsx(Di,{amount:de??0,activities:vi,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(fl,{}),t.jsxs(el,{showSkipAutoFill:Be,windowSize:A,children:[A!=="small"?t.jsx(nn,{}):null,t.jsx(Wr,{windowSize:A,onClick:g=>{g.stopPropagation(),qe===!0&&He(!1)},children:t.jsx(un,{formId:tn(en),separatorStyle:{marginRight:i.sp4},showCancel:y,cancelBtn:{label:m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?A==="small"?b.buttons.discard:b.buttons.discardChanges:A==="small"?b.buttons.save:b.buttons.saveChanges,isLoading:Je==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:$i,style:{width:Q.footerButtonWidth.value(A)},reverseSpinnerColor:!1},primaryBtn:{label:Fr(y,m,e,A),isDisabled:!y,style:{width:y?Q.footerButtonWidth.value(A):"auto"},type:y?"submit":"button",onClick:y?()=>null:$i,isLoading:!y&&Je==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Ur,{children:t.jsxs(Gr,{windowSize:A,children:[qe?t.jsx(mn,{onClickAway:()=>He(!1),children:t.jsx(Kr,{windowSize:A,"data-testid":q("remi-other-actions-container"),children:t.jsx(Yr,{onClick:Kn,"data-testid":q("delete-report-action"),children:b.buttons.deleteReport})})}):null,t.jsx(Hr,{windowSize:A,children:io===!0?t.jsx(qr,{windowSize:A,"data-testid":q("more-details-button"),children:t.jsx(Vr,{onClick:()=>He(!qe)})}):null})]})}),style:{minHeight:62}})})]}),C&&f!=null?t.jsx(Fo,{id:St,children:t.jsx(po,{isDrawerOpen:xe,allowComposer:!0,drawerTitle:Or,threads:yt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:ze?.companyId??Rr,isGlobalComment:!1,tab:"reimbursement"},isLoading:Ze,threadMetadata:ze?{companyName:ze.companyName,companyId:ze.companyId,entityId:ze.entityId,entityType:ze.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:Lr,replyComposerPlaceholder:Ar,threadResolve:zr,threadUnResolve:Br},onThreadClick:(g,D)=>oo(g,D),onCloseAllThreadsDrawer:()=>st(!1),drawerSectionStyle:{width:"400px",backgroundColor:Ne.colors.background}})}):null]})}),En?t.jsx(Jr,{windowSize:A,children:t.jsx(hr,{bankAccountCreationState:k,setShowBankAccountPage:Nt,plaidConnectionDetails:l,onFetchLinkTokenClick:Oe,onEstablishConnectionClick:pe,onSaveHandler:L,bankAccountToCreate:O,bankNameByRouting:x,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:R,onFetchBankName:H,onBackClick:()=>{Ge(),Nt(!1)}})}):null]})})})},Fr=(e,o,r,c)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?b.buttons.resubmit:b.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?c==="small"?b.buttons.discard:b.buttons.discardChanges:c==="small"?b.buttons.save:b.buttons.saveChanges,Er=n.div`
|
|
619
|
+
`,Z={rightMargin:new d(r[3],r[8]),leftMargin:new d(r[3],r[6]),bottomMargin:new d(56,56),closeMarginTop:new d(0,19),closeMarginRight:new d(r[3],r[8]),rightSectionWidth:new d(100,58),leftSectionWidth:new d(100,42),footerButtonWidth:new d(120,165),right:new d(r[3],r[0]),actionsContainerRight:new d(r[0],r[6]),otherActionsContainerBottom:new d(58,44),duplicateBannerWrapperMarginTop:new d(r[5],r[3]),duplicateBannerWrapperMarginRight:new d(r[3],r[8]),duplicateBannerWrapperMarginBottom:new d(r[5],r[3]),duplicateBannerWrapperMarginLeft:new d(r[3],r[6]),navBarWidth:new d(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:b,bulkActions:Xi}},common:{currency:{currencyCode:We,currencySymbol:jt},texts:{comments:Rr},strings:{empty:Lr}},collaboration:{threads:{placeholder:{addANewComment:Ar,replyAComment:zr},tooltip:{resolveComment:Br,unResolveComment:Mr}}},dateFormat:Zi}=fe.getLocalizedStrings(),en="editReimbursementDetailPage",tn=e=>`${e}_form`,Fr=(e,o,a,c,p,C,m,v,f)=>{const l=e.outOfPocket,k=e.mileage,x=l.merchant,s=l.recommendations;return{lineIndex:C,lineId:e?.lineId??String(C+1),reimbursementType:e?.type??b.outOfPocketKey,file:e?.file,homeCurrencyConversions:{amount:e?.homeCurrencyConversions?.amount??0,currencyCode:e?.homeCurrencyConversions?.currencyCode??m.currencyCode,currencySymbol:e?.homeCurrencyConversions?.currencySymbol??m.currencySymbol},outOfPocket:{recommendedAccount:l.recommendedAccount,isCategoryUpdateSelected:l.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:l.isCategoryFirstTimeAutofilled??!1,retainedAccount:l.retainedAccount,isRetainedCategorySelected:l.isRetainedCategorySelected??!1,recommendations:s??[],transactionDate:l?.transactionDate?.toDate()??void 0,class:{allOptions:_e(Ke(a,[])),selectedOption:l?.lineDetail?.class?.classId??f},account:{allOptions:_e(zt(o,s)),selectedOption:l.lineDetail?.account?.qboId??l.lineDetail?.account?.accountId},amount:{amount:l?.amount??0,currencyCode:l?.currencyCode??m.currencyCode,currencySymbol:l?.currencySymbol??m.currencySymbol,currency:{allOptions:v.map(y=>({label:`${y.currencyCode} - ${y.currency}`,value:y.currencyCode,countryCode:ci(y.countryCode)})),selectedOption:l?.currencyCode??m.currencyCode??We}},memo:l?.description??void 0,merchant:{allOptions:c.map(y=>y.id).filter(y=>!!y),selectedOption:x?.id?x?.id:x?.name?x?.name:e?.lineId!=null?p[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:_e(Ke(a,[])),selectedOption:k?.lineDetail?.class?.classId},distanceInMiles:k?.distanceMileage?.value,amount:{amount:k?.amount??0,currencyCode:k?.currencyCode??m.currencyCode,currencySymbol:k?.currencySymbol??m.currencySymbol},memo:k?.description}}},ti=(e,o,a)=>{const c=[];return Object.values(e.lineDetailSection).forEach((p,C)=>{p?.lineId!=null&&c.push(Fr(p,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,C,o,e.allCurrencies,e.loggedInUserDepartmentId))}),c.length===0&&c.push(An(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[At]:{reportTitle:e.whatForSection.reportTitle},[fi]:c,[ft]:{selectedOption:e.paymentTo,allOptions:a.map(p=>p.bankAccountId)}}},ii=(e,o)=>{const a=c=>c.lineId==null||o[c.lineId]?.fetchState==="In-Progress"?0:(o[c.lineId]?.fetchState,c.type===b.mileageKey?c?.mileage?.amount??0:c?.outOfPocket?.currencyCode!==We&&c.homeCurrencyConversions?.amount!==c?.outOfPocket?.amount?c.homeCurrencyConversions?.amount??0:c?.outOfPocket?.amount??0);return Object.values(e).reduce((c,p)=>c+a(p),0)},ni=(e,o,a,c,p,C,m,v)=>{const f={};return e.lineInfo.forEach(l=>{const k=v.find(P=>P.classId===l.mileage.class.selectedOption),x=m.find(P=>P.qboId===l.outOfPocket.account.selectedOption||P.accountId===l.outOfPocket.account.selectedOption),s=v.find(P=>P.classId===l.outOfPocket.class.selectedOption),y=o.find(P=>P.id===l.outOfPocket.merchant.selectedOption),$=C.find(P=>P.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;f[l.lineId]={fileId:l.file?.fileId,lineId:l.lineId,type:l.reimbursementType,homeCurrencyConversions:l.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:l.mileage.memo??"",lineDetail:{class:k},transactionDate:l.mileage.transactionDate!=null?it(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??$,currencySymbol:l.mileage.amount?.currencySymbol??$,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:x},transactionDate:l.outOfPocket.transactionDate!=null?it(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??$,currencySymbol:$,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:y?.id??"",name:y?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:f,totalAmount:{amount:c,...a},currencyConversionStateByLineId:p,paymentTo:e.paymentTo.selectedOption}},nn=({remiDetails:e,authParams:o,defaultCurrency:a,companyMileageConfigInfo:c,uploadInvoiceEndPoint:p,isReimbursementCommentingEnabled:C,isUserAdmin:m,analytics:v,reimbursementId:f,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:x,bankAccounts:s,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:$,bankAccountToCreate:P,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:R,onFetchBankName:H,onSaveBankAccount:L,fetchDuplicateReimbursement:T,clearDuplicateReimbursementDetail:B,clearRemiSaveStatus:te,removeDuplicateReimbursementForLine:ne,onDuplicateLineClick:oe,onExistingMerchantChange:Y,onNewMerchantChange:K,onReceiptsUpload:F,saveRemiDetails:Q,submitRemiDetails:_,discardReimbursementDetailsFromLocalStore:z,onReimbursementDetailsChanged:ae,updateReimbursementType:le,onHomeCurrencyConversionUpdate:U,redirectToReimbursementListScreen:ce,redirectToReimbursementDetailScreen:Ee,deleteReimbursement:ue,removeFileFromLine:ge,onZeniLogoClick:se,onAmountChanged:De,updateInvoiceUploadFetchState:je,clearTentativeNameForLine:Oe,onAddNewRule:me,onFetchLinkTokenClick:Pe,onEstablishConnectionClick:pe,deleteBankAccount:ve,onBackClickFromBankAccountPage:Ge,initialOpenThreadRequest:h})=>{const ee=S.useRef(null),ot=S.useRef(null),at=li(e.uploadStatus),Ne=xt(),Le=ht(),[Ye,Ae]=S.useState(!1),[qe,He]=S.useState(!1),[Qe,Je]=S.useState("save"),[de,rt]=S.useState(ii(e.lineDetailSection,e.currencyConversionStatus)),[lt,J]=S.useState(!1),[ze,N]=S.useState(null),[xe,st]=S.useState(!1),Et=`dashboard_${Le.currentTenant?.companyId}`,O=rn({mode:"all",reValidateMode:"onChange",defaultValues:S.useMemo(()=>ti(e,a,s),[e,a,s]),values:S.useMemo(()=>ti(e,a,s),[e,a,s]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:Bn,dirtyFields:Mn}=O.formState,Fn=async(g,D)=>{const{lineInfo:u}=D,w=Number(g.split(".")[1]);if(g.includes("reportTitle")||g.includes("memo"))return;if(g.includes("reimbursementType")){const M=u[w].mileage,W=u[w].outOfPocket;u[w]={...u[w],outOfPocket:{transactionDate:W.transactionDate??void 0,class:{allOptions:W.class.allOptions??_e(Ke(e.classHierarchyList,[])),selectedOption:W.class.selectedOption??void 0},account:{allOptions:W.account.allOptions??_e(zt(e.accountsHierarchyList,[])),selectedOption:W.account.selectedOption??void 0},amount:W.amount??{amount:0,currencyCode:a.currencyCode,currencySymbol:a.currencySymbol,currency:{allOptions:e.allCurrencies.map(we=>({label:`${we.currencyCode} - ${we.currency}`,value:we.currencyCode,countryCode:ci(we.countryCode)})),selectedOption:a.currencyCode??We}},memo:W.memo??void 0,merchant:W.merchant??void 0,recommendations:W.recommendations??[],recommendedAccount:W.recommendedAccount??void 0,isCategoryUpdateSelected:W.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:W.isCategoryFirstTimeAutofilled??!1,retainedAccount:W.retainedAccount??void 0,isRetainedCategorySelected:W.isRetainedCategorySelected??!1},mileage:{transactionDate:M.transactionDate??void 0,class:{allOptions:M.class.allOptions??_e(Ke(e.classHierarchyList,[])),selectedOption:M.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:M.distanceInMiles,amount:{amount:M?.amount?.amount??0,currencyCode:M?.amount?.currencyCode??We,currencySymbol:M?.amount?.currencySymbol??jt},memo:M.memo??void 0}}}else if(g.includes("mileage.distanceInMiles")){const{distanceInMiles:M}=u[w].mileage,W=c?.mileageUnitAmount??0;u[w].mileage={...u[w].mileage,amount:{amount:M!=null?M*W:0,currencyCode:a.currencyCode,currencySymbol:a.currencySymbol}}}else if(g.includes("outOfPocket.amount")&&u[w].lineId){const M=u[w].outOfPocket.amount,W=e.allCurrencies.find(we=>we.currencyCode===M?.currency.selectedOption)?.currencySymbol;if(M?.currencyCode!==M?.currency.selectedOption){const we=M?.currency?.allOptions||[];u[w].outOfPocket.amount={currency:{allOptions:we,selectedOption:M?.currency?.selectedOption},amount:u[w].outOfPocket?.amount?.amount??0,currencyCode:M?.currency.selectedOption??We,currencySymbol:W??jt}}if(M?.currency.selectedOption!==We)J(!0),Hn(u[w].lineId,We);else{const we={};u.forEach(Yt=>{we[Yt.lineId]={lineId:Yt.lineId,homeCurrencyConversions:Yt.homeCurrencyConversions}}),u[w].homeCurrencyConversions={amount:M.amount??0,currencyCode:M?.currency.selectedOption??We,currencySymbol:W??jt};const ki=ii(we,e.currencyConversionStatus);de!==ki&&rt(ki)}}else if(g.includes("outOfPocket.isRetainedCategorySelected"))u[w].outOfPocket.isRetainedCategorySelected===!0&&(u[w].outOfPocket.isCategoryUpdateSelected=!1,u[w].outOfPocket.account.selectedOption=u[w].outOfPocket.retainedAccount?.qboId);else if(g.includes("outOfPocket.isCategoryUpdateSelected"))if(u[w].outOfPocket.isCategoryUpdateSelected===!0)u[w].outOfPocket.account.selectedOption=u[w].outOfPocket.recommendedAccount?.qboId,u[w].outOfPocket.isRetainedCategorySelected=!1;else{const M=u[w].lineId,W=e.editRemiInitialDetails.lineDetailSection[M]?.lineDetail?.account?.qboId;u[w].outOfPocket.account.selectedOption=W,u[w].outOfPocket.isRetainedCategorySelected=!1}else g.includes("outOfPocket.account")&&(u[w].outOfPocket.recommendations.length>0&&(u[w].outOfPocket.recommendedAccount=u[w].outOfPocket.recommendations[0].account),u[w].outOfPocket.recommendedAccount?.qboId!=null&&u[w].outOfPocket.account.selectedOption===u[w].outOfPocket.recommendedAccount?.qboId?u[w].outOfPocket.isCategoryUpdateSelected=!0:u[w].outOfPocket.isCategoryUpdateSelected=!1,u[w].outOfPocket.retainedAccount?.qboId!=null&&u[w].outOfPocket.account.selectedOption===u[w].outOfPocket.retainedAccount?.qboId?u[w].outOfPocket.isRetainedCategorySelected=!0:u[w].outOfPocket.isRetainedCategorySelected=!1,u[w].outOfPocket.isCategoryFirstTimeAutofilled=!1);const vt=ni({...D,lineInfo:u},e.merchantList.merchants,a,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(ae?.(vt),g.includes("outOfPocket.merchant")){const M=u[w].lineId,W=u[w].outOfPocket.merchant.selectedOption??"";u[w].outOfPocket.merchant.allOptions.find(we=>we===W)!=null?Y(W,M):K(W,M)}},xi=S.useMemo(()=>Ii((g,D)=>Fn(g,D),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);S.useEffect(()=>{const g=O.watch((D,{name:u})=>{u!=null&&D!=null&&xi(u,D)});return()=>{g.unsubscribe()}},[xi,O]),S.useEffect(()=>{const g=No(Object.values(e.currencyConversionStatus)),D=g.fetchState==="In-Progress"||g.fetchState==="Error";J(D)},[e.currencyConversionStatus]),S.useEffect(()=>{for(const D in e.currencyConversionStatus){const u=e.lineDetailSection[D],w=e.lineDetailSection[D];e.currencyConversionStatus[D].fetchState==="Completed"&&w!=null&&u.type!==b.mileageKey&&!ln(u?.homeCurrencyConversions,w.homeCurrencyConversions)&&U({amount:u?.homeCurrencyConversions?.amount??0,currencyCode:u?.homeCurrencyConversions?.currencyCode??We,currencySymbol:u?.homeCurrencyConversions?.currencySymbol??jt},D,f)}const g=ii(e.lineDetailSection,e.currencyConversionStatus);de!==g&&rt(g)},[e.currencyConversionStatus,e.lineDetailSection]),S.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(z(f),ce?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,f,z,ce]);const A=Re(),[Be,gt]=S.useState(f==null),[yt,En]=S.useState(1),[Nn,Nt]=S.useState(!1),[Wn,Un]=S.useState(""),[Wt,Vn]=S.useState(null),[_n,dt]=S.useState(!1),[qn,wi]=S.useState(!1),[Ut,Vt]=S.useState([]),[ye,St]=S.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),Hn=S.useRef(Ii((g,D)=>De(g,D),500,{trailing:!0})).current;S.useEffect(()=>{at==="In-Progress"&&(e.uploadStatus==="Completed"?(O.reset(ti(e,a,s),{keepDefaultValues:!0}),Ae(!1),gt(!1)):e.uploadStatus==="Error"&&Ae(!1))},[at,e.uploadStatus,O,e,Ye,Ae,Be,a,s,v]),S.useEffect(()=>{e.uploadStatus==="In-Progress"&&Be===!1&&Ae(!0)},[e.uploadStatus,Ae,Be]);const _t=e.remiStage==="draft"?b.newReimbursementTitle:b.editReimbursementTitle,Kn={onOkClick:()=>{if(dt(!1),ye.primaryButtonText===b.buttons.discard)z(f),e.remiStage==="draft"?ce?.():Ee?.();else if(ye.primaryButtonText===b.buttons.delete)ye.title===b.deleteBankAccountTitle?ve?.(Wn):ue?.();else if(ye.primaryButtonText===b.buttons.yes&&Wt!=null){const g=Ut.filter(D=>D!==yt.toString());Vt(g),F(Wt,yt,!0)}},onCancelClick:()=>{if(dt(!1),ye.secondaryButtonText===b.buttons.no){const g=Ut.filter(D=>D!==yt.toString());Vt(g),F(Wt,yt,!1)}}},Si=()=>{Bn||xo(Mn)?(St({title:b.discardTitle,description:b.discardDescription,primaryButtonText:b.buttons.discard,secondaryButtonText:b.buttons.cancel}),dt(!0)):(z(f),ce?.())},Gn=()=>{St({title:e.remiStage==="draft"?b.deleteDraftTitle:b.deleteReportTitle,description:b.deleteAlertDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),dt(!0)},Yn=g=>{Un(g),St({title:b.deleteBankAccountTitle,description:b.deleteBankAccountDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),dt(!0)},Qn=()=>{St({title:b.overwriteTitle,description:b.overwriteDescription,primaryButtonText:b.buttons.yes,secondaryButtonText:b.buttons.no}),dt(!0)},Jn=()=>{let g=!0;const D=[];return Object.values(e.lineDetailSection).forEach((u,w)=>{u.type===b.outOfPocketKey&&On(u)>=75&&u.file==null&&(D.push(u.lineId),g=!1)}),Vt(D),g},$i=()=>{if(m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")Si();else{Je("save");const g=O.getValues(),D=ni(g,e.merchantList.merchants,a,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);ae?.(D);const u=D.whatForSection?.reportTitle;u!=null&&u.length>0?Q(e.remiStatus==="rejected"?"pending_approval":"draft"):O.trigger(`${At}.reportTitle`,{shouldFocus:!0})}};let qt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(g=>{g.length>0&&(qt=!0)});let vi=[];if(e.remiId==null){const g=de??0;g>0&&(vi=e.approvalRules.allApprovalRules?.filter(D=>{const u=D.criteria[0].range;if(u.max!=null){if(u.min.amount<g&&u.max.amount>=g)return D}else if(u.min.amount<g)return D;return null}).map(D=>({...D,stepsWithStatus:D.steps.map(u=>({...u,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const Xn=g=>{const D=Jn();return O.handleSubmit(()=>{D&&(Je("submit"),v?.trackReimbursementSubmitReimbursement(e.createTime?.format(Zi.analytics.MMMDashDDDashYYYYFormat)??bi().format(Zi.analytics.MMMDashDDDashYYYYFormat),a.currencyCode,de,f),B(),wi(!0))})(g)},Zn=()=>{const g=O.getValues(),D=ni(g,e.merchantList.merchants,a,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);ae?.(D),_()},eo=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,to=e.reimbursementInfo?.paymentDate!=null?it(Cn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,io=e.reimbursementInfo?.expectedDepositDate??to,no=f!=null&&e.remiStage==="draft",Ci=Wo(e.duplicateLineByLineId),Ht=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ci>0,{requestToOpenThread:Kt,setRequestToOpenThread:$t,setOpenThread:Gt}=S.useContext(lo);S.useEffect(()=>{h?.threadId!=null&&h?.companyId!=null&&h?.entityType!=null&&$t(h)},[h,$t]);const{threads:bt,isLoading:Xe}=so();S.useEffect(()=>{Kt?.threadId!=null&&bt.length>0&&!Xe&&(Gt(Kt.threadId),$t(null))},[Kt,bt,Xe,Gt,$t]);const oo=S.useMemo(()=>f==null?[]:bt.filter(g=>g.resolved===!1&&!g.id.includes(co)),[bt,f]).length,ao=(g,D)=>{Gt(D);const u=g.entityType.split("."),w=parseInt(u[2]);if(isNaN(w)){st(!1);return}const vt=`${w+1}`,M=e.lineDetailSection[w+1].type;u.includes(b.mileageKey)&&M===b.outOfPocketKey?le(Ai(b.mileageKey),vt,f):u.includes(b.outOfPocketKey)&&M===b.mileageKey&&le(Ai(b.outOfPocketKey),vt,f),st(!1)};return t.jsx(Nr,{ref:ee,children:t.jsx(uo,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:ot.current??null}},children:t.jsxs(sn,{...O,children:[t.jsx("form",{id:tn(en),onSubmit:g=>Xn(g),children:t.jsxs(gl,{windowSize:A,ref:ot,children:[_n?t.jsx(di,{titleComponent:t.jsx(cn,{children:ye.title}),descriptionComponent:t.jsx(dn,{children:ye.description}),primaryButtonText:ye.primaryButtonText,secondaryButtonText:ye.secondaryButtonText,action:Kn,proceedButtonVariant:ye.title===b.deleteBankAccountTitle||ye.title===b.deleteDraftTitle||ye.title===b.deleteReportTitle||ye.title===b.discardTitle?"danger":"primary",isEditPopup:ye.title===b.deleteBankAccountTitle}):null,qn?t.jsx(Tr,{reimbursementId:f,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:Ht,numberOfDuplicateLines:Ci,setShowDuplicatePopup:wi,submitReport:Zn,fetchDuplicateReimbursement:T,clearDuplicateReimbursementDetail:B,clearRemiSaveStatus:te,analytics:v}):null,Ye?t.jsx(an,{windowSize:A}):null,Be?t.jsxs(an,{windowSize:A,"data-testid":q("skip-autofill-section"),children:[A==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Xr,{children:t.jsx(ri,{partOfSkipAutoFill:!0,size:A,onClick:()=>gt(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(ai,{withOverlay:!0,children:t.jsx(oi,{})})})}),t.jsx(el,{children:_t})]}):null,t.jsx(In,{showAutofill:Be,analytics:v,onSkipAutofill:()=>{v?.trackReimbursementSkipAutofill(),gt(!1)},uploadInvoiceEndPoint:p,authParams:o,style:{width:Z.leftSectionWidth.valuePercentage(A),boxSizing:"border-box",backgroundColor:A==="small"?Ne.colors.grey4:"unset",padding:A==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:A==="small"?i.sp0:void 0},onInvoiceUpload:g=>F(g,yt,!0),dropFilePlaceholder:{upload:b.dropReceipt.upload,single:b.dropReceipt.single,or:b.dropReceipt.or,multiple:b.dropReceipt.multiple,receipts:b.dropReceipt.receipts},updateInvoiceUploadFetchState:je,showInfoText:!1,allowMultiFiles:Be,type:"reimbursement"}),A!=="small"?t.jsx(Zr,{children:t.jsx(ri,{partOfSkipAutoFill:!0,onClick:()=>gt(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(ai,{withOverlay:!0,children:t.jsx(oi,{})})})}):null]}):null,t.jsxs(cl,{windowSize:A,"data-testid":q("edit-reimbursement-detail-page-nav-bar-container"),children:[A!=="small"?t.jsx(Ti,{style:{width:"42%"},"data-testid":q("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(ul,{"data-testid":q("zeni-logo-spend-management-reimbursement-detail-page"),onClick:se}),enableTitleOnScroll:!1,scrollableContent:ee,backgroundColor:Ne.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,A!=="small"?t.jsx(Wr,{}):null,t.jsx(Ti,{style:{width:Z.navBarWidth.valuePercentage(A)},"data-testid":q("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:_t,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Be!=!0?t.jsxs(ml,{children:[C&&f!=null?t.jsxs(pl,{isDisabled:Xe,"data-testid":q("remi-comment-button"),onClick:Xe?()=>null:g=>{g.preventDefault(),g.stopPropagation(),N({roomId:Et,companyId:Le.currentTenant?.companyId??"",companyName:Le.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:f}),st(!0),v?.trackCommentActivity("reimbursement","clicked",Le.currentTenant?.companyName??"",Le.controllersList.controllers.map(D=>po(D)),void 0,void 0,"page icon")},children:[t.jsx(mo,{count:Xe?void 0:oo,isLoading:Xe,style:{left:"12px"}}),t.jsx(hl,{})]}):null,t.jsx(ri,{size:A,onClick:()=>Si(),"data-testid":q("close-nav-bar"),children:t.jsx(ai,{withOverlay:!1,children:t.jsx(oi,{})})})]}):null,enableTitleOnScroll:A!=="small",scrollThreshold:64,scrollableContent:ee,backgroundColor:Ne.colors.grey4})]}),A==="small"?t.jsxs(t.Fragment,{children:[t.jsx(dl,{children:_t}),t.jsx(ho,{progressSectionObj:eo,createDate:e.createTime,paymentDate:io,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:f!=null?!0:e.uploadStatus==="Completed"}),qt&&t.jsxs(nl,{children:[t.jsx(il,{}),t.jsx(ol,{children:b.banner})]}),e.isProcessing?t.jsx(un,{variant:"warning",style:{margin:A==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Xi.duplicateWarning.title,description:Xi.duplicateWarning.description}):Ht?t.jsxs(al,{size:A,children:[t.jsx(qr,{}),t.jsxs(ll,{children:[t.jsx(rl,{children:b.thereSeems}),t.jsx(sl,{children:b.pleaseFind})]})]}):null,t.jsx(jn,{isReimbursementCommentingEnabled:C,sectionId:At,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(ir,{onDuplicateLineClick:oe,reimbursementId:f,remiDetails:e,uploadInvoiceEndPoint:p,authParams:o,showSkipAutoFill:Be,setShowSkipAutoFill:gt,isReimbursementCommentingEnabled:C,isAutoFieldsExist:qt,totalAmount:de,removeFileFromLine:ge,onReplaceClick:Qn,onReceiptsUpload:F,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:En,setUploadedReceiptPayload:Vn,updateInvoiceUploadFetchState:je,clearTentativeNameForLine:Oe,defaultCurrency:a,companyMileageConfigInfo:c,isUserAdmin:m,setShowBankAccountPage:Nt,bankAccounts:s,onDeleteBankAccount:Yn,analytics:v,fileRequiredLineIds:Ut,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:$,showTotalAmountLoader:lt,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:Ht,removeDuplicateReimbursementForLine:ne,scrollContainerRef:ee}),t.jsxs(yl,{showSkipAutoFill:Be,windowSize:A,children:[A!=="small"?t.jsx(on,{}):null,t.jsx(bl,{windowSize:A,children:t.jsxs(fl,{windowSize:A,children:[e.remiId!==void 0&&t.jsx(Di,{amount:de??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:me,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&de!=null&&de>0?t.jsx(Di,{amount:de??0,activities:vi,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(xl,{}),t.jsxs(tl,{showSkipAutoFill:Be,windowSize:A,children:[A!=="small"?t.jsx(on,{}):null,t.jsx(Ur,{windowSize:A,onClick:g=>{g.stopPropagation(),qe===!0&&He(!1)},children:t.jsx(mn,{formId:tn(en),separatorStyle:{marginRight:i.sp4},showCancel:y,cancelBtn:{label:m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?A==="small"?b.buttons.discard:b.buttons.discardChanges:A==="small"?b.buttons.save:b.buttons.saveChanges,isLoading:Qe==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:$i,style:{width:Z.footerButtonWidth.value(A)},reverseSpinnerColor:!1},primaryBtn:{label:Er(y,m,e,A),isDisabled:!y,style:{width:y?Z.footerButtonWidth.value(A):"auto"},type:y?"submit":"button",onClick:y?()=>null:$i,isLoading:!y&&Qe==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Vr,{children:t.jsxs(Yr,{windowSize:A,children:[qe?t.jsx(pn,{onClickAway:()=>He(!1),children:t.jsx(Gr,{windowSize:A,"data-testid":q("remi-other-actions-container"),children:t.jsx(Qr,{onClick:Gn,"data-testid":q("delete-report-action"),children:b.buttons.deleteReport})})}):null,t.jsx(Kr,{windowSize:A,children:no===!0?t.jsx(Hr,{windowSize:A,"data-testid":q("more-details-button"),children:t.jsx(_r,{onClick:()=>He(!qe)})}):null})]})}),style:{minHeight:62}})})]}),C&&f!=null?t.jsx(go,{isDrawerOpen:xe,allowComposer:!0,drawerTitle:Rr,threads:bt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:ze?.companyId??Lr,isGlobalComment:!1,tab:"reimbursement"},isLoading:Xe,threadMetadata:ze?{companyName:ze.companyName,companyId:ze.companyId,entityId:ze.entityId,entityType:ze.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:Ar,replyComposerPlaceholder:zr,threadResolve:Br,threadUnResolve:Mr},onThreadClick:(g,D)=>ao(g,D),onCloseAllThreadsDrawer:()=>st(!1),drawerSectionStyle:{width:"400px",backgroundColor:Ne.colors.background}}):null]})}),Nn?t.jsx(Jr,{windowSize:A,children:t.jsx(gr,{bankAccountCreationState:k,setShowBankAccountPage:Nt,plaidConnectionDetails:l,onFetchLinkTokenClick:Pe,onEstablishConnectionClick:pe,onSaveHandler:L,bankAccountToCreate:P,bankNameByRouting:x,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:R,onFetchBankName:H,onBackClick:()=>{Ge(),Nt(!1)}})}):null]})})})},Wl=e=>{const o=ht().currentTenant?.companyId,{isReimbursementCommentingEnabled:a,reimbursementId:c}=e;if(!(a&&c!=null&&o!=null))return t.jsx(nn,{...e});const p=`dashboard_${o}`;return t.jsx(ro,{roomId:p,filter:{application:"dashboard",companyId:o,entityId:c,tab:"reimbursement",isGlobalComment:!1},children:t.jsx(nn,{...e})})},Er=(e,o,a,c)=>e?a.reimbursementId!=null&&a.remiStage==="pending_approval"?b.buttons.resubmit:b.buttons.submit:o&&a.remiStage==="pending_approval"&&a.remiStatus!=="rejected"?c==="small"?b.buttons.discard:b.buttons.discardChanges:c==="small"?b.buttons.save:b.buttons.saveChanges,Nr=n.div`
|
|
620
620
|
position: relative;
|
|
621
621
|
height: 100vh;
|
|
622
622
|
overflow-y: scroll;
|
|
623
|
-
`,
|
|
623
|
+
`,Wr=n.div`
|
|
624
624
|
position: fixed;
|
|
625
625
|
top: 0;
|
|
626
626
|
left: 42vw;
|
|
@@ -630,12 +630,12 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
630
630
|
box-shadow: 0 2px ${i.sp1} ${({theme:e})=>e.colors.dropShadowNormal};
|
|
631
631
|
pointer-events: none;
|
|
632
632
|
z-index: 3;
|
|
633
|
-
`,Wr=n.div`
|
|
634
|
-
width: ${e=>Q.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
635
633
|
`,Ur=n.div`
|
|
634
|
+
width: ${e=>Z.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
635
|
+
`,Vr=n.div`
|
|
636
636
|
display: flex;
|
|
637
637
|
justify-content: flex-end;
|
|
638
|
-
`,
|
|
638
|
+
`,_r=n(So)`
|
|
639
639
|
cursor: pointer;
|
|
640
640
|
color: ${e=>e.theme.colors.hero};
|
|
641
641
|
width: ${i.sp5};
|
|
@@ -643,11 +643,11 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
643
643
|
&:hover {
|
|
644
644
|
color: ${e=>e.theme.colors.primary};
|
|
645
645
|
}
|
|
646
|
-
`,
|
|
646
|
+
`,qr=n(Eo)`
|
|
647
647
|
width: ${i.sp4};
|
|
648
648
|
height: ${i.sp4};
|
|
649
649
|
color: ${j.brandColorGoldDark};
|
|
650
|
-
`,
|
|
650
|
+
`,Hr=n.div`
|
|
651
651
|
display: flex;
|
|
652
652
|
margin-left: ${e=>e.windowSize==="small"?i.sp4:i.sp5};
|
|
653
653
|
cursor: pointer;
|
|
@@ -655,11 +655,11 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
655
655
|
&:hover {
|
|
656
656
|
color: ${e=>e.theme.colors.primary};
|
|
657
657
|
}
|
|
658
|
-
`,
|
|
658
|
+
`,Kr=n.div`
|
|
659
659
|
display: flex;
|
|
660
660
|
justify-content: center;
|
|
661
661
|
align-items: center;
|
|
662
|
-
`,
|
|
662
|
+
`,Gr=n.div`
|
|
663
663
|
display: flex;
|
|
664
664
|
width: auto;
|
|
665
665
|
align-items: center;
|
|
@@ -671,20 +671,20 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
671
671
|
padding-top: ${i.sp1};
|
|
672
672
|
padding-bottom: ${i.sp1};
|
|
673
673
|
position: absolute;
|
|
674
|
-
bottom: ${e=>
|
|
674
|
+
bottom: ${e=>Z.otherActionsContainerBottom.valuePx(e.windowSize)};
|
|
675
675
|
z-index: 3;
|
|
676
676
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
677
677
|
border-radius: ${i.sp1};
|
|
678
|
-
right: ${e=>
|
|
678
|
+
right: ${e=>Z.right.valuePx(e.windowSize)};
|
|
679
679
|
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.grey1} 3D`};
|
|
680
|
-
`,
|
|
680
|
+
`,Yr=n.div`
|
|
681
681
|
width: 100%;
|
|
682
682
|
justify-content: flex-end;
|
|
683
683
|
position: ${e=>e.windowSize==="small"?"static":"relative"};
|
|
684
|
-
right: ${e=>
|
|
684
|
+
right: ${e=>Z.actionsContainerRight.valuePx(e.windowSize)};
|
|
685
685
|
height: 100%;
|
|
686
686
|
display: flex;
|
|
687
|
-
`,
|
|
687
|
+
`,Qr=n(hi)`
|
|
688
688
|
display: flex;
|
|
689
689
|
align-items: center;
|
|
690
690
|
width: -webkit-fill-available;
|
|
@@ -701,7 +701,7 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
701
701
|
height: 100vh;
|
|
702
702
|
position: fixed;
|
|
703
703
|
background: ${e=>e.theme.colors.grey4};
|
|
704
|
-
width: ${e=>
|
|
704
|
+
width: ${e=>Z.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
705
705
|
right: 0;
|
|
706
706
|
top: 0;
|
|
707
707
|
`,Xr=n.div`
|
|
@@ -712,23 +712,23 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
712
712
|
justify-content: end;
|
|
713
713
|
`,Zr=n.div`
|
|
714
714
|
width: 58%;
|
|
715
|
-
`,
|
|
715
|
+
`,el=n(ui)`
|
|
716
716
|
padding: ${i.sp3} ${i.sp3} 0 ${i.sp3};
|
|
717
717
|
background: ${e=>e.theme.colors.grey4};
|
|
718
718
|
color: ${e=>e.theme.colors.primary};
|
|
719
|
-
`,
|
|
719
|
+
`,tl=n.div`
|
|
720
720
|
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
721
721
|
width: 100%;
|
|
722
722
|
position: fixed;
|
|
723
723
|
bottom: 0;
|
|
724
724
|
z-index: 3;
|
|
725
|
-
`,
|
|
725
|
+
`,on=n.div`
|
|
726
726
|
width: 42%;
|
|
727
|
-
`,
|
|
727
|
+
`,il=n(mi)`
|
|
728
728
|
color: ${e=>e.theme.colors.primary};
|
|
729
729
|
width: ${i.sp3};
|
|
730
730
|
height: ${i.sp3};
|
|
731
|
-
`,
|
|
731
|
+
`,nl=n.div`
|
|
732
732
|
display: flex;
|
|
733
733
|
gap: ${i.sp2};
|
|
734
734
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
@@ -736,31 +736,31 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
736
736
|
border-radius: ${i.sp2};
|
|
737
737
|
align-items: center;
|
|
738
738
|
margin: ${i.sp3};
|
|
739
|
-
`,
|
|
739
|
+
`,ol=n.span`
|
|
740
740
|
color: ${e=>e.theme.colors.hero};
|
|
741
|
-
`,
|
|
741
|
+
`,al=n.div`
|
|
742
742
|
display: flex;
|
|
743
743
|
gap: ${i.sp2};
|
|
744
744
|
padding: ${i.sp3};
|
|
745
745
|
border-radius: ${i.sp2};
|
|
746
746
|
align-items: start;
|
|
747
|
-
margin-top: ${e=>
|
|
748
|
-
margin-right: ${e=>
|
|
749
|
-
margin-bottom: ${e=>
|
|
750
|
-
margin-left: ${e=>
|
|
747
|
+
margin-top: ${e=>Z.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
748
|
+
margin-right: ${e=>Z.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
749
|
+
margin-bottom: ${e=>Z.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
750
|
+
margin-left: ${e=>Z.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
751
751
|
background-color: ${j.alertLight};
|
|
752
752
|
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
753
|
-
`,
|
|
753
|
+
`,rl=n(Ft)`
|
|
754
754
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
755
|
-
`,
|
|
755
|
+
`,ll=n.div`
|
|
756
756
|
width: 100%;
|
|
757
|
-
`,
|
|
757
|
+
`,sl=n(yi)`
|
|
758
758
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
759
|
-
`,
|
|
759
|
+
`,dl=n(ui)`
|
|
760
760
|
letter-spacing: -0.02em;
|
|
761
761
|
color: ${e=>e.theme.colors.primary};
|
|
762
762
|
margin: ${i.sp3};
|
|
763
|
-
`,
|
|
763
|
+
`,an=n.div`
|
|
764
764
|
display: flex;
|
|
765
765
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
766
766
|
height: 100vh;
|
|
@@ -769,7 +769,7 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
769
769
|
background-color: ${j.overlayDark};
|
|
770
770
|
z-index: 11; // This is to ensure that the skip autofill section is above the AI CFO icon whose value is 10
|
|
771
771
|
position: fixed;
|
|
772
|
-
`,
|
|
772
|
+
`,cl=n.div`
|
|
773
773
|
z-index: 3;
|
|
774
774
|
min-height: 62px;
|
|
775
775
|
height: 62px;
|
|
@@ -778,13 +778,13 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
778
778
|
width: 100%;
|
|
779
779
|
justify-content: space-between;
|
|
780
780
|
position: fixed;
|
|
781
|
-
`,
|
|
781
|
+
`,ul=n(bo)`
|
|
782
782
|
display: flex;
|
|
783
783
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
784
784
|
cursor: pointer;
|
|
785
785
|
width: ${i.sp4};
|
|
786
786
|
height: ${i.sp4};
|
|
787
|
-
`,oi=n(
|
|
787
|
+
`,oi=n(hn)`
|
|
788
788
|
cursor: pointer;
|
|
789
789
|
width: ${i.sp4};
|
|
790
790
|
height: ${i.sp4};
|
|
@@ -795,11 +795,11 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
795
795
|
&:hover {
|
|
796
796
|
color: ${e=>e.withOverlay?j.primaryDark:e.theme.colors.primary};
|
|
797
797
|
}
|
|
798
|
-
`,
|
|
799
|
-
margin-top: ${e=>
|
|
798
|
+
`,ml=n.div`
|
|
799
|
+
margin-top: ${e=>Z.closeMarginTop.valuePx(e.windowSize)};
|
|
800
800
|
display: flex;
|
|
801
801
|
float: right;
|
|
802
|
-
`,
|
|
802
|
+
`,pl=n.div`
|
|
803
803
|
display: flex;
|
|
804
804
|
align-items: center;
|
|
805
805
|
justify-content: center;
|
|
@@ -810,17 +810,17 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
810
810
|
&:hover {
|
|
811
811
|
color: ${e=>e.theme.colors.primary};
|
|
812
812
|
}
|
|
813
|
-
`,
|
|
813
|
+
`,hl=n(fo)`
|
|
814
814
|
display: flex;
|
|
815
815
|
width: ${i.sp4};
|
|
816
816
|
height: ${i.sp4};
|
|
817
817
|
align-items: center;
|
|
818
818
|
justify-content: center;
|
|
819
819
|
`,ri=n.div`
|
|
820
|
-
margin-top: ${e=>e.partOfSkipAutoFill===!0?
|
|
820
|
+
margin-top: ${e=>e.partOfSkipAutoFill===!0?Z.closeMarginTop.valuePx(e.size):0};
|
|
821
821
|
margin-left: ${i.sp5};
|
|
822
|
-
margin-right: ${e=>e.partOfSkipAutoFill===!0?
|
|
823
|
-
`,
|
|
822
|
+
margin-right: ${e=>e.partOfSkipAutoFill===!0?Z.closeMarginRight.valuePx(e.size):0};
|
|
823
|
+
`,gl=n.div`
|
|
824
824
|
display: flex;
|
|
825
825
|
flex-direction: column;
|
|
826
826
|
width: 100vw;
|
|
@@ -849,17 +849,17 @@ import{aS as li,y as ft,ay as xt,aa as an,aA as Ii,aG as rn,J as Le,gm as ao,go
|
|
|
849
849
|
background: ${e.theme.colors.grey4};
|
|
850
850
|
`}
|
|
851
851
|
min-height: 100vh;
|
|
852
|
-
`,
|
|
852
|
+
`,yl=n.div`
|
|
853
853
|
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
854
854
|
width: 100%;
|
|
855
|
-
margin-bottom: ${e=>
|
|
856
|
-
`,yl=n.div`
|
|
857
|
-
width: ${e=>Q.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
855
|
+
margin-bottom: ${e=>Z.bottomMargin.valuePx(e.windowSize)};
|
|
858
856
|
`,bl=n.div`
|
|
859
|
-
|
|
860
|
-
margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
|
|
857
|
+
width: ${e=>Z.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
861
858
|
`,fl=n.div`
|
|
859
|
+
margin-left: ${e=>Z.leftMargin.valuePx(e.windowSize)};
|
|
860
|
+
margin-right: ${e=>Z.rightMargin.valuePx(e.windowSize)};
|
|
861
|
+
`,xl=n.div`
|
|
862
862
|
display: flex;
|
|
863
863
|
flex-direction: column;
|
|
864
864
|
height: ${i.sp11};
|
|
865
|
-
`;export{
|
|
865
|
+
`;export{Wl as default,tn as uniqueName};
|