@zeniai/web-cockpit-ui 1.15.63-qa → 1.15.64-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ACHDetailsPage-fOu5grd7-BdSVzP6f.js +21 -0
- package/dist/assets/{AIPerformancePage-BHB45mP--CJ7SlrBq.js → AIPerformancePage-Da3gFo8A-CckgxOO_.js} +22 -22
- package/dist/assets/AccountInfoPage-o7hTXtgZ-zH78FLFW.js +18 -0
- package/dist/assets/{AccountInfoPageContent-CJ7ycVIK-C83hBUz9.js → AccountInfoPageContent-DqErO8FH-Dmzn6pIA.js} +22 -22
- package/dist/assets/AccountLockedInfoModal-BJjCuLHa-DrT3dsPq.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-Bqty08m0-kXNr--5k.js → AccountReconDetailsDrawerPage-CVjH1p0d-BxBrHwo0.js} +18 -18
- package/dist/assets/AccountRow-CpftykFx-oOdBXU8G.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-Bs3naJHM-DUGNuaMw.js → AccountsPromoCardStack-D7xvgmOH-D3-ZzkOb.js} +26 -26
- package/dist/assets/AddAddressForCardDrawer-vecchYEf-CGSqzhVX.js +6 -0
- package/dist/assets/{AddToWalletPage-CyRfqVDB-lZdSVI5f.js → AddToWalletPage-zJy9QCjx-C_qfE17G.js} +17 -17
- package/dist/assets/{AgingReportsPage-xBFff3BM-BoR0hRbB.js → AgingReportsPage-wAvQb1d8-C15jlpMU.js} +7 -7
- package/dist/assets/{AllUserItems-BJf6WPDo-BK6B5dDc.js → AllUserItems-DEv_CXOA-B5fCEIiV.js} +8 -8
- package/dist/assets/ApAgingDetailPage-BOV1WFVF-Dp8s2FuX.js +46 -0
- package/dist/assets/{AppBasePage-CqDm-hnV-CBNeETIZ.js → AppBasePage-DMlomvFS-CGojLnOO.js} +13 -13
- package/dist/assets/AppDrawerContent-Dc2sHnR3--YF7Xqpp.js +92 -0
- package/dist/assets/ApprovalRulesSettingsPage-BnbPSy4U-qsIqsWa1.js +47 -0
- package/dist/assets/{ArAgingChart-CBsqOd-4-BTXylDMy.js → ArAgingChart-m-Xp3HAW-NCxV7iBs.js} +4 -4
- package/dist/assets/ArAgingDetailPage-b_NpDpWj-z4UOMnMu.js +46 -0
- package/dist/assets/{AttachmentView-CzC4skJ3-BCDnapXA.js → AttachmentView-DB_V1qT1-BBS5lFy5.js} +9 -9
- package/dist/assets/{BankAccountSection-Di4sF52j-D4IfCjd3.js → BankAccountSection-BabhrBM7-AYC21fpT.js} +7 -7
- package/dist/assets/{BankAccountWarningSection-Cled-2cR-CPMJAwOm.js → BankAccountWarningSection-yT2UAd12-C1lPi6To.js} +9 -9
- package/dist/assets/{BankConnectionsSettingsPage-Ccnzq7st-DAZKodd6.js → BankConnectionsSettingsPage-CbxXykMM-C4x6xhVH.js} +19 -19
- package/dist/assets/BillDetailPage-7TMkWo3V-CAz7q8si.js +266 -0
- package/dist/assets/{BillPayApprovalRuleDetailPage-DFZ0csaT-PsPHznl4.js → BillPayApprovalRuleDetailPage-COyDRpaF-DAcMEAnT.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-COCypDcS-HIhyZ3nR.js → BillPayApprovalRulesPage-9pxkgFAT-DPJx3hcv.js} +15 -15
- package/dist/assets/BillPayPromoPage-AGffhbY3-C_QscQuJ.js +84 -0
- package/dist/assets/{BillPaySetUpPage-BCJbZDsV-DVe6WBI9.js → BillPaySetUpPage-Cs5rkWBu-GrPc_Ghq.js} +4 -4
- package/dist/assets/BillingSettingsPage-CQ117tT9-czyNT2CA.js +44 -0
- package/dist/assets/{BillsBulkReviewDrawerPage-B11GWM_0-BQuQWEvp.js → BillsBulkReviewDrawerPage-DRkGQQAe-B4jJeKlF.js} +1 -1
- package/dist/assets/{BoxItem-Bxa1M4QU-D1vE9QhE.js → BoxItem-DRwx0M5a-DCS0EEq5.js} +11 -11
- package/dist/assets/{BusinessVerificationPage-DSuJFoW1-XlBss24U.js → BusinessVerificationPage-1h0z3N9u-Bz-00d77.js} +12 -12
- package/dist/assets/{CardNumberSubText-_ZZbaz_k-BlVD6y8J.js → CardNumberSubText-DqtLT1w5-DO6jyw3h.js} +3 -3
- package/dist/assets/{CashbackDetailPage-DAZXitLt-Fk0YDW9d.js → CashbackDetailPage-ChdQcvkC-C57bRmfy.js} +26 -26
- package/dist/assets/{ChargeCardDetailPage-B1VIpASk-BDSXs13_.js → ChargeCardDetailPage-DFOKlPNG-xcGq1wRM.js} +34 -34
- package/dist/assets/{ChargeCardListPage-BOBepN-x-D1jyw6xp.js → ChargeCardListPage-DhLUsUhd-DuclyBke.js} +24 -24
- package/dist/assets/{ChargeCardListTable-YznzSsJo-BzgBrEEG.js → ChargeCardListTable-DE72YU_i-DcBJaKK3.js} +38 -38
- package/dist/assets/{ChargeCardPaymentHistoryPage--jOwsMla-CGXOOx2m.js → ChargeCardPaymentHistoryPage-CbGR18s--BFbYhOSS.js} +42 -42
- package/dist/assets/ChargeCardPromoPage-CPpNh89o-CBfHtaX_.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-0bpVkeJs-CpLnoFoy.js → ChargeCardSetupPage-ITi25kUD-DfzvZRO7.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-ChWyQlw6-CRQIlgKD.js → ChargeCardStatementsPage-CTJc1BCc-DxoD4bYi.js} +7 -7
- package/dist/assets/{CheckDepositDrawerPage-BS7hnyZn-C9SGaV72.js → CheckDepositDrawerPage-BrzeSj-3-DtRI-uAH.js} +23 -23
- package/dist/assets/CollapsableReportTable-CDEe9s_E-CMF0RoW1.js +2844 -0
- package/dist/assets/{CompanyOfficerDetailsSection-CrOIN4IW-CoAoKnrR.js → CompanyOfficerDetailsSection-BaPhFsLx-B9Snu63L.js} +28 -28
- package/dist/assets/{CompanyPassportCard-CkzYFTrp-xxbgyzmF.js → CompanyPassportCard-B9ymV6Az-38EEl60M.js} +9 -9
- package/dist/assets/{CompanyPassportPage-FE6yli6h-BWozhrFp.js → CompanyPassportPage-BQ68t7oK-Co1NqIiB.js} +30 -30
- package/dist/assets/{CompleteProfile-Cb8i1XgZ-BTm92KCu.js → CompleteProfile-C5n9b8gQ-DwcNt9_I.js} +1 -1
- package/dist/assets/ConfettiBurst-BizTW0hz-CvR9oZ5e.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-hVukCBkN.js → ConstrainedInnerElement-BeIpAPjB-XtnsGBeT.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CzpSgxbO-tk0pxMXW.js → CreateOrEditVendorPage-BIfOA5Nr-Dlpym0z2.js} +20 -20
- package/dist/assets/{CreditCardPaymentDrawerPage-c_q0MsSO-BNl8osW_.js → CreditCardPaymentDrawerPage-CCpS-31h-C4-ObiYa.js} +18 -18
- package/dist/assets/CurrencySelectField-KvKyemY6-CmY2_QR6.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-f3Aa6E5r-C0GXlCyT.js → CustomerOnboardingActivationPage-6VlMI4oY-DDFamjuz.js} +29 -29
- package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-BpoLCE54.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DYuiWn8s-BpVuCl4e.js → CustomerOnboardingDetailPageSkeleton-BzbZb27J-sEi6CC-2.js} +8 -8
- package/dist/assets/CustomerOnboardingNoStepsPage-CWF_00EM-BRYus2iF.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-B9hSO88_-DKVxJK_g.js → CustomerOnboardingPage-DkW66A-p-GBHzS2sL.js} +16 -16
- package/dist/assets/{CustomerOnboardingProductSuitePage-CG0HKCpQ-BF68GGbG.js → CustomerOnboardingProductSuitePage-Ba0yotpP-kvF0C_U3.js} +12 -12
- package/dist/assets/{Dashboard-BJ_oIHab-CXqiG1Rq.js → Dashboard-bX3cWkmP-CshB3AQ6.js} +33 -33
- package/dist/assets/{DashboardReportPage-BemzMw2e-BipdyVWe.js → DashboardReportPage-DuZ4d4CE-WPRTD4S1.js} +41 -41
- package/dist/assets/DashboardSidebarBackgroundAnimation-UV2CZToG-4yePe-Xl.js +12 -0
- package/dist/assets/DepositAccTransactionItem-BY_OvuKg-1GMqn4-W.js +76 -0
- package/dist/assets/DepositAccTransactionListPage-a__bpCOB-CMJCJXrJ.js +66 -0
- package/dist/assets/DomesticWireDetailsPage-BumMT4QM-9o5TrTj8.js +21 -0
- package/dist/assets/DownloadOverlay-DqiL3-FB-D2yDQ3WD.js +439 -0
- package/dist/assets/{DrawerPage-DesxXhZk-BvvDI7JV.js → DrawerPage-CaG-xx5d-D9_lXenJ.js} +13 -13
- package/dist/assets/EditPeoplePage-BcsdEp_d-IwV_edCq.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-DNUmwdsH-B0QXso1w.js +865 -0
- package/dist/assets/EntityDetailPage-DtX5TjBc-YkJZ_Dja.js +18 -0
- package/dist/assets/{EntitySummarySection-BwX0a4JL-Cb_9slBS.js → EntitySummarySection-LEA5m6mN-CLLkbTp6.js} +14 -14
- package/dist/assets/{ExpenseAutomationOverviewPage-EdyHjbff-B4ZwTaZV.js → ExpenseAutomationOverviewPage-Dmhn7gfp-BnYLctJS.js} +51 -51
- package/dist/assets/ExpenseAutomationPage-B8C4BxoV-DWGhFpVk.js +1703 -0
- package/dist/assets/{ExpressPayPage-EMP6inpX-_cx1Ylt6.js → ExpressPayPage-C-nqret2-CxxwTtu9.js} +16 -16
- package/dist/assets/{FeaturePreviewPage-SYJm-3aR-CG1XGdAN.js → FeaturePreviewPage-BHjUZ7s6-_5C6_vtm.js} +2 -2
- package/dist/assets/{FollowStepsSection-BxESVqJD-YzcVHL8n.js → FollowStepsSection-0eFMS0c5-DiNXhybo.js} +11 -11
- package/dist/assets/GlobalReviewListPage-4eiopkzw-DKMz-KY4.js +291 -0
- package/dist/assets/{InformationCardStack-B_qQUEYD-BwcTguLM.js → InformationCardStack-C7XJCUlh-CHYlGlZV.js} +4 -4
- package/dist/assets/{InsightsCardStack-BsQzoVzj-Bd69AHav.js → InsightsCardStack-fBAbQwhK-GOQwmuqO.js} +9 -9
- package/dist/assets/InsightsSection-De9zu_me-VPfN5Xo7.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-DP6fAccq-Bl2SFLoD.js → IntegrationsSettingsPage-BD5jqAv8-BskPS73Y.js} +7 -7
- package/dist/assets/{InternationalWireSwiftDetailsPage-VdG7bDZi-C5RGyBg8.js → InternationalWireSwiftDetailsPage-BftrE612-CKiFI9UY.js} +27 -27
- package/dist/assets/InternationalWireVerificationPage-CDf7equc-1WYEjkVV.js +65 -0
- package/dist/assets/InviteFormPage-E2igwKEh-BzkLo-m1.js +312 -0
- package/dist/assets/{InvitePageListView-CP4K9tJi-BWdxcvn6.js → InvitePageListView-Cuq9dlgu-BNjoQI0P.js} +43 -43
- package/dist/assets/InvitePeoplePage-Db4P4ZEq-B9OMfSrr.js +12 -0
- package/dist/assets/InvoiceUploadSection-DYCjz9CI-DkR29XTT.js +140 -0
- package/dist/assets/{IssueChargeCardPage-CVfuvGey-DZxiAxJX.js → IssueChargeCardPage-CK6fnO24-bch7HeIs.js} +21 -21
- package/dist/assets/{LabeledAddressValue-DDrQcHIE-CeJ3ym3G.js → LabeledAddressValue-Ma1WURjK-BjRcNAyc.js} +1 -1
- package/dist/assets/LabeledAddressValueField-C6-hVsPb-Bfrq1uTa.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-CgZg0uOW-CjFLwRIN.js +16 -0
- package/dist/assets/{LabeledCountryMultiSelectField-BYYjzwUG-BwOVpc3z.js → LabeledCountryMultiSelectField-sj8p7Rne-DmVlXwHY.js} +4 -4
- package/dist/assets/{LabeledCreatableSingleSelectField-CISYMojq-CMb8Wj3I.js → LabeledCreatableSingleSelectField-DUTQh416-DtIYGO-z.js} +8 -8
- package/dist/assets/LabeledDocumentField-Bp9m-OrP-Di2DVQR8.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-3-KekP79-CBuG_XHQ.js +59 -0
- package/dist/assets/{LabeledText-C8Y7EOsX-bc31OQDU.js → LabeledText-DvzVOku6-CI8IYs0J.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-DEITvxaX.js → LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-BoHfD7aR.js} +21 -21
- package/dist/assets/{LabeledZeniRolesDropDownField-BZtreVpj-BbSQyIfJ.js → LabeledZeniRolesDropDownField-kWC0ShEy-rvx0SYJG.js} +24 -24
- package/dist/assets/{LinkJETransactionPage-CKq4oiX9-mvMHwOvE.js → LinkJETransactionPage-WufhDGDQ-B3rjsU0T.js} +12 -12
- package/dist/assets/{LockCardPage-CZENNby7-XsIHG8ps.js → LockCardPage-BBIVLYVD-B0YOZXXr.js} +234 -234
- package/dist/assets/{LowBalancePopup-1727S1ri-n2U-sV_W.js → LowBalancePopup-ScEqPY9J-CQJroj6z.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-C494txw0-BXL5Oo5F.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CONBCbOQ-CLIxJIug.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-fSY3JGpz-f3s55HDr.js +1 -0
- package/dist/assets/MagicLinkSuccessPage-BDRXSAO4-BVQIDzU9.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-CARU1oLQ-CVNZ8iK2.js → MagicLinkTitleSection-ZnbKPIvJ-BSqgRJcf.js} +5 -5
- package/dist/assets/MailingDetailsSection-DZT7JPlI-C6Z2pagF.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-BdgIIhL1-BeRsdTPg.js → MyBankConnectionsSettingsPage-aQDVaEG1-DhCXDcNN.js} +12 -12
- package/dist/assets/MyPendingActivationChargeCardListPage-BJrk56oA-8UK9qZGK.js +6 -0
- package/dist/assets/MyProfileSettingsPage-L9WuP6HZ-4YifN_2G.js +85 -0
- package/dist/assets/{NavBarWithPicker-CGGEvLwe-s3u-yB3H.js → NavBarWithPicker-zmvBmWS1-A5yL3hW1.js} +5 -5
- package/dist/assets/{NavigationArrow-CTNkKUtV-C8bJKxdd.js → NavigationArrow-D26UG3p--DAuEEyBJ.js} +7 -7
- package/dist/assets/{NavigationDots-Dvce3gHt-BbZlp8zJ.js → NavigationDots-Bv4tBDN3-Dko875eO.js} +3 -3
- package/dist/assets/{NewGlobalMerchantPage-D_f7z47T-DQOfu_Nl.js → NewGlobalMerchantPage-vOn2O6B9-DskrKIYE.js} +35 -35
- package/dist/assets/{NoDataChart-CrKeqWSr-CH-XvPH0.js → NoDataChart-CgT19fV7-Dq-PS5iw.js} +4 -4
- package/dist/assets/NoDataTable-CPjJmo4s-B0gXcJxM.js +8 -0
- package/dist/assets/{NotFoundPage-BLWPU1wU-BG7NJ9El.js → NotFoundPage-CP2i3FTm-B2Tx_Zo3.js} +3 -3
- package/dist/assets/{NotificationSettingsPage-CDiDLX3A-6RPc-bUn.js → NotificationSettingsPage-CT9Dnb03-CqwjgM73.js} +17 -17
- package/dist/assets/NotificationsListConfig-Bn1zmx6b-xLvRbIc5.js +1 -0
- package/dist/assets/NotificationsPage-DDwdR_Jq-CdZxB2zM.js +685 -0
- package/dist/assets/OpExByVendorPage-DukFYlqO-CuXBR-rW.js +100 -0
- package/dist/assets/{OverlayContainerPage-BG9y5C0t-BPG2pCUp.js → OverlayContainerPage-D4QU0p4o-CVPkUlN6.js} +1 -1
- package/dist/assets/PandLWithForecastPage-Bgflh9Om-Dmxi28fl.js +107 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-9ma8SpIa-D4Qtjsvw.js → PaymentAccountSetupBillingAddressSection-JPO-rPAd-CHgpZYyo.js} +16 -16
- package/dist/assets/PeoplePage-CDvKreQl-CRlr1EmV.js +675 -0
- package/dist/assets/{Preview-DWskpWXP.js → Preview-spWMBI70.js} +1 -1
- package/dist/assets/{ProductsCarousel-C3M0ocdF-BSyoNQFy.js → ProductsCarousel-7R3cvGiS-DlBhSe7D.js} +8 -8
- package/dist/assets/{PromoBaseCards-BOGJI2ws-Ck95GU5B.js → PromoBaseCards-DdCMZIc7-B6Z1nEXM.js} +2 -2
- package/dist/assets/{QBOConnectionDialog-CmpnnuzP-CpIqU0WF.js → QBOConnectionDialog-Ca36jKz2-CfdvU0-0.js} +7 -7
- package/dist/assets/QBOSetupSection-CzBfIVqR-B4kKrGkW.js +79 -0
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DUVSGQJ6-C7yuUziG.js +32 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-BsCTIqUJ-D3bDi2Ta.js → ReimbursementApprovalRulesPage-B48x1gPM-Bmxf9Hlc.js} +17 -17
- package/dist/assets/ReimbursementDetailPage-oIC9QEyF-CRxw2XKK.js +314 -0
- package/dist/assets/ReimbursementPromoPage-BKgsJieE-D41M31h1.js +84 -0
- package/dist/assets/{ReimbursementSetUpPage-RETPkEQd-z2afpDkn.js → ReimbursementSetUpPage-B_c-ZgFT-nyStFOEL.js} +8 -8
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-CeyGWbKR-CPHh3h5l.js +1 -0
- package/dist/assets/{ReloadCard-Bdoo0XiI-BGa0MgX0.js → ReloadCard-DKGn1uxF-CHnWO982.js} +6 -6
- package/dist/assets/ReportTableViewSelector-CXDvZEbR-DVKFHMpg.js +150 -0
- package/dist/assets/ReportsPage-BoUyXSBC-DqEgIltZ.js +121 -0
- package/dist/assets/{RevenueChart-DvyZ3aO7-PpJFTbOd.js → RevenueChart-SvdhwBcE-CclStxKG.js} +18 -18
- package/dist/assets/{ReviewDetailsPage-BIMg1n2e-D2dTaNpr.js → ReviewDetailsPage-tT1l4R2r-D31xag1Q.js} +26 -26
- package/dist/assets/{ReviewOverlay-CxwoiOLC-vRTfwGwR.js → ReviewOverlay-BoM41t8W-B3q95pxr.js} +10 -10
- package/dist/assets/{RoleWithToolTip-Ct3_VuDM-BEnLHz0N.js → RoleWithToolTip-C8x5yXaK-Dbq6YNZJ.js} +4 -4
- package/dist/assets/ScheduleDetailsFixedAssetsPage-Bkp0mCOn-CXNO-V0F.js +37 -0
- package/dist/assets/ScheduleDetailsPage-Dg9rYJbn-DX2cGcR8.js +37 -0
- package/dist/assets/ScheduleSequenceTable-J6Eja8XA-C4pj46PF.js +324 -0
- package/dist/assets/{ScreenRoutes-CUuAiKAj.js → ScreenRoutes-Djen5Qso.js} +51 -29
- package/dist/assets/{SetUpAccountSection-CctbMmoK-DeDFJbvz.js → SetUpAccountSection-sfIB1h4i-ChZ6V5QM.js} +14 -14
- package/dist/assets/SignIn-Cu2nzuEC-CMzKn_tC.js +491 -0
- package/dist/assets/SignInScreen-OAq50V8E.js +1 -0
- package/dist/assets/SpendManagementListViewPage-9V9u1jPF-CmDrIGYQ.js +134 -0
- package/dist/assets/{SpendManagementPerTabPage-C-kqNTci-AeTDFXX6.js → SpendManagementPerTabPage-COvEPq7V-Do4O10gl.js} +96 -96
- package/dist/assets/{SpendManagementSection-CIz4nE_w-8YBkABuz.js → SpendManagementSection-dT-N4bSQ-BiovZfwW.js} +21 -21
- package/dist/assets/{StatementItem-vVtoBN2w-BdiJO-U-.js → StatementItem-g5tfNBjV-C9Hg8CS4.js} +4 -4
- package/dist/assets/StatementsPage-DaFrVUeK-DSTw3UAU.js +58 -0
- package/dist/assets/{StatusSwitcher-Bv-ozN6U-CzLNn0tR.js → StatusSwitcher-CaoFw0cf-C3lxp9pU.js} +5 -5
- package/dist/assets/SubTabSwitcher-zrkVj1aP-_xN0-uG5.js +58 -0
- package/dist/assets/SummaryCard-B9wqNSwM-n1ImzaFb.js +1 -0
- package/dist/assets/TaskManagementPage-dAK9tl2b-CTG2_KMv.js +508 -0
- package/dist/assets/TimeRangeSwitcher-r1TNqVRb-DCJluex4.js +64 -0
- package/dist/assets/TimeframeSwitcher-DHfHCTa4-B2FI2qD3.js +31 -0
- package/dist/assets/TimeframeSwitcherWithToggle-DvBvguRl-DxV9Vm6A.js +31 -0
- package/dist/assets/{TopExCard-Z1WabZ8c-4au0Kuzy.js → TopExCard-BUjnGDUB-ILeRndVt.js} +6 -6
- package/dist/assets/{TopExDetailPage-CzHG4f9E-CctLNvo_.js → TopExDetailPage-CNDkfc3u-BPGQHHhh.js} +16 -16
- package/dist/assets/{TransactionActivityLogPage-CGKnjNfU-B3NDQc80.js → TransactionActivityLogPage-kSQqJVpX-CN_Bd6XL.js} +20 -20
- package/dist/assets/TransactionDetailPage-f7vWtXWL-B6Z3KQcQ.js +903 -0
- package/dist/assets/TransactionList-3-mUZOsw-BOqEjROc.js +153 -0
- package/dist/assets/{TransactionListBig-C5Sf5Xh--BuYJgRaG.js → TransactionListBig-Bx_Rm9ho-B9vgR37B.js} +19 -19
- package/dist/assets/TransactionListPage-q6x4_jni-ByWLrriF.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-SsrSOk3O-BRnviJtL.js → TransactionVendorDetailPage-MjSH5hfq-BauD225P.js} +5 -5
- package/dist/assets/{TransferDrawerPage-BvKZ7vHF-CVsBbyAK.js → TransferDrawerPage-BayVa6po-DOmgo5bD.js} +45 -45
- package/dist/assets/TreasuryOverviewPage-CuqWmrO5-WjxiYw-Z.js +708 -0
- package/dist/assets/{TreasuryPromoPage-CtTFvSQW-DUHPkkLd.js → TreasuryPromoPage-BCjz1EKX-B5KDWi07.js} +131 -131
- package/dist/assets/TreasuryStatementsPage-CGr00SXF-C60wRmKc.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-D9_qnlK4-DjBNSdh0.js +58 -0
- package/dist/assets/{TrendChart-Bnp4Pcdf-D4cgVp3g.js → TrendChart-JTOG0a7B-DpgA2voA.js} +4 -4
- package/dist/assets/TrendWithTransactions-CTJhTpAM-BQk6HV-p.js +116 -0
- package/dist/assets/{UncategorizedAccountsMappingPage-DbyY-dYB-sq3wEY9K.js → UncategorizedAccountsMappingPage-TGKYpC5A-RvK9bcxw.js} +14 -14
- package/dist/assets/{UnitIntegrationPage-CTzme1te-BHLJji8u.js → UnitIntegrationPage-mt2IjA5X-sxJ5WITz.js} +10 -10
- package/dist/assets/UploadAdditionalDocumentOverlay-DZfpwE5J-DW-djX7x.js +38 -0
- package/dist/assets/Vendor2FAPopup-DAOf5cJD-BPBPmB6-.js +1 -0
- package/dist/assets/VendorACHDetailsPage-CCOupiSZ-CBSNIh8C.js +1 -0
- package/dist/assets/VendorDetailPage-DufNphGD-CYmhQiv4.js +257 -0
- package/dist/assets/VendorDomesticWireDetailsPage-BayV34Rt-Bv9GXuwg.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-himC7iD3-k-hAzNY6.js → VendorFiling1099EditablePage-CRnO7Ubw-D8TJzbQY.js} +13 -13
- package/dist/assets/VendorFirstReviewPage-DA0EL4RJ-B1EJ16cd.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-CS595Xgc-kwJW4_b9.js → VendorInternationalWireDetailsPage-HUtNyn9Z-DME8KQvf.js} +22 -22
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-DRVMUeXi-WaJ_bb27.js +1 -0
- package/dist/assets/{VendorsAccountsSection-CgSJu8wq-C7Nrepld.js → VendorsAccountsSection-D6Qa1zf9-uVFUNuqq.js} +4 -4
- package/dist/assets/{VerifyDevice-Dvf0JsNN-LsnrX91W.js → VerifyDevice-B6B_nk3v-Bdkrxio0.js} +12 -12
- package/dist/assets/{VideoPlayer-VAzOGCDL-DVi19FXq.js → VideoPlayer-BRAgZThr-DjmJcTCC.js} +2 -2
- package/dist/assets/{VideoPopup-BqvZ-XIh-BO-XUiUq.js → VideoPopup-C_SkBI9U-BcIEWeMW.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-DeNonoNp-BWZkdUzm.js → WarningsDrawerPage-B3gB3wW7-D2GIDjbZ.js} +8 -8
- package/dist/assets/ZeniAccountDetailPage-Dp-eo-Vq-Bhjoyj-p.js +300 -0
- package/dist/assets/ZeniAccountListViewPage-S-XmAYqD-DifvzT-q.js +441 -0
- package/dist/assets/ZeniAccountNavBarPieces-DhjBxfEr-Cs_0mVt4.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-JrcedQYB-XleDnhH3.js → ZeniAccountPromoPage-BgYCHYLO-Cw7mPD8B.js} +33 -33
- package/dist/assets/ZeniAccountSetupPage-CvnIMdcY-UG3h63JG.js +36 -0
- package/dist/assets/{ZeniCopyright-DglqrTpl-DjLwp-EZ.js → ZeniCopyright-BlLvlGZV-oWH5-_QG.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BcaZZuAw-Dq1i7GHR.js → ZeniTransferAmountSlider-BNYgPwHs-BkFdMOqg.js} +7 -7
- package/dist/assets/{add-to-wallet-DgdBD8_G-CMYG7KBd.js → add-to-wallet-DgdBD8_G-CQY6YDIS.js} +1 -1
- package/dist/assets/{analytics-Dn0Lw8Hl.js → analytics-Bkw5onLf.js} +1 -1
- package/dist/assets/{analyticsHelper-C_ff58Ox.js → analyticsHelper-BrCWxqsP.js} +1 -1
- package/dist/assets/{analyticsHelper-CAYdbjhS-CSS_jWKh.js → analyticsHelper-CYr5V2MV-D117boEZ.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-0FDs3KeW.js → arrow-south-east-round-PEovUgvH-Bjmr6TY7.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-BKhloLeM.js → auto-transfer-rule-mbafm5D3-CNNhiF_u.js} +1 -1
- package/dist/assets/chartTypes-40RenddT-C3e8npm6.js +1 -0
- package/dist/assets/commonDimensions-BMnB1-xU-BEplFlGz.js +1 -0
- package/dist/assets/{commonTypes-5tEXwrX4-Bo-DjnLD.js → commonTypes-DsWS6Ccc-DEEa_Sk5.js} +1 -1
- package/dist/assets/{constants-BEwjLQPo.js → constants-BjwuG-sL.js} +1 -1
- package/dist/assets/{core-DEFUIdDG.js → core-ChNxRm0V.js} +53 -3
- package/dist/assets/{dash.all.min-BID_vSFD.js → dash.all.min-CPWXIJa3.js} +1 -1
- package/dist/assets/detailCommon-CrcyqWtZ-Y-btcKvT.js +38 -0
- package/dist/assets/downloadPdf-CUUx8PWn-CpeF1exC.js +1 -0
- package/dist/assets/{empty-3lnGe8CJ.js → empty-CbUW6a7c.js} +1 -1
- package/dist/assets/{empty-Bz_9XWq0.js → empty-DB2fqLbL.js} +1 -1
- package/dist/assets/epic-D8ilA7L4.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-aVxGZy29.js → gift-box-Cmt9OgIZ-CAEsBxF-.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-x243rVSC.js → graphic-no-data-l-DU4J8fDt-5QBY0UXm.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-fGjKD-Ct.js → graphic-no-data-net-burn-l-CzmycA0m-hdaFlp9y.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-ubRH-wiz.js → handshake-BPg58FML-ChCbIa55.js} +1 -1
- package/dist/assets/{helper-Ckm10Uko-D3EJmxEw.js → helper-BMiMbXMj-Dmh6E349.js} +5 -5
- package/dist/assets/{index-j3sWBTP6.js → index-B7L93Ji9.js} +1 -1
- package/dist/assets/{index-BTOXr4d7.js → index-DVyniIKO.js} +1 -1
- package/dist/assets/{index-E_BIvVEB.js → index-DlObXRGr.js} +8 -2
- package/dist/assets/{index-Dh51gnjs.js → index-Dpyv5L0j.js} +1 -1
- package/dist/assets/{index-CurP1SOA.js → index-DqZ19at7.js} +4883 -4818
- package/dist/assets/{index-yi6exDCI.js → index-cdfRDhK8.js} +1 -1
- package/dist/assets/{index-C_4SXTa-.js → index-ioI1xYoQ.js} +1 -1
- package/dist/assets/{lexical-C3dXI-1S.js → lexical-1Ygrq4RW.js} +1 -1
- package/dist/assets/{liveblocks-Dud0zcBr.js → liveblocks-BTMi-6jm.js} +15 -2
- package/dist/assets/lottie-DePu4yCn.js +9 -0
- package/dist/assets/mapLoadingInProgressToTreeNode-DGnyXKBT-BYse0ozL.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Cgyt68f3-BBFpEXmY.js → mapSectionWithAcOnlyToTreeNode-BkPRWtaj-hihXzy98.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-CvGdU9Ma-DeFN34g2.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-BCOsOvxo-CSygkCSn.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DIqYP3NK-R-95BHOA.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-DCo-Luqt.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-27M6rUwe.js} +1 -1
- package/dist/assets/{mui-BxEa6oIz.js → mui-ZYC_cKE8.js} +9 -1
- package/dist/assets/{page-detail-CWX5S47F-DOLPp-eb.js → page-detail-CWX5S47F-DC8jxm5B.js} +1 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-D6-xSZhW.js +4 -0
- package/dist/assets/{radio-default-CiSgisfh-DL8BJVml.js → radio-default-CiSgisfh-BxCWoZze.js} +1 -1
- package/dist/assets/{react-BsuKrOi4.js → react--xqujLHa.js} +12 -2
- package/dist/assets/{react-DM147Gxs.js → react-BKZXD5Oc.js} +12 -2
- package/dist/assets/{react-BNTdaAOY.js → react-BYslFEBJ.js} +12 -2
- package/dist/assets/{react-a0DWg95U.js → react-BwmLfOl6.js} +12 -2
- package/dist/assets/{react-yelseDIT.js → react-C9KgujEQ.js} +13 -3
- package/dist/assets/{react-DPVtQSsy.js → react-IIMWUaFV.js} +12 -2
- package/dist/assets/react-Z0_odY1k.js +37 -0
- package/dist/assets/{react-B5siMDaA.js → react-d6rMgZIK.js} +12 -2
- package/dist/assets/{recharts-CucZZnV5.js → recharts-CPKKNFMD.js} +27 -19
- package/dist/assets/{sentry-CDHeVBhK.js → sentry-DO9J0OD9.js} +17 -2
- package/dist/assets/{shield-DOlUxcFf-BCrG7e7-.js → shield-DOlUxcFf-K7yJVGAq.js} +1 -1
- package/dist/assets/toCOABalancesWithID-DkMGvlEt-BttuYM2L.js +1 -0
- package/dist/assets/toChartData-C6s-eBzE-DfNWG1EA.js +1 -0
- package/dist/assets/{uploadAttachment-Ck4wivBR-D2sssPbg.js → uploadAttachment-BlLqRIXe-BrI0Dxy9.js} +32 -32
- package/dist/assets/uploadReceipts-Dge0cNF1-C53BLsXO.js +1 -0
- package/dist/assets/{url-DAJ1NKPS.js → url-Brmd3733.js} +1 -1
- package/dist/assets/{url-Dz3bE-6e.js → url-VhWKyQz6.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-cX6DxOpZ.js → useLongPress-GCK2COYQ-BBNJdZmN.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-BiUwSUGW.js → usp-line-BBd1wKwW-BjY16bQv.js} +1 -1
- package/dist/assets/{utils-B2bXCuaD.js → utils-CXoyjNuY.js} +38 -4
- package/dist/assets/zeni-epic-state-C5Hzx540.js +151 -0
- package/dist/index.html +1 -1
- package/package.json +6 -6
- package/dist/assets/ACHDetailsPage-B5qIuZya-BmmOKNKt.js +0 -21
- package/dist/assets/AccountInfoPage-Cd5xYT1g-BjYVbnMy.js +0 -18
- package/dist/assets/AccountLockedInfoModal-Dox7IuAX-H_pRx6Xf.js +0 -59
- package/dist/assets/AccountRow-D1cjRJJD-CnHGmlKi.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-DZkBMJfp-CTlBkwH6.js +0 -6
- package/dist/assets/ApAgingDetailPage-CjBrPyi8-DNYyKLZY.js +0 -46
- package/dist/assets/AppDrawerContent-CVVWj66i-BfqcrITU.js +0 -92
- package/dist/assets/ApprovalRulesSettingsPage-Cckd2uVA-CKQBzdAB.js +0 -47
- package/dist/assets/ArAgingDetailPage-i7JObt60-x2wHZEQK.js +0 -46
- package/dist/assets/BalancesInsightWithToolTip-B6umvmgL-DFyn5DU2.js +0 -38
- package/dist/assets/BillDetailPage-XXOwBfO1-CW90EiFi.js +0 -266
- package/dist/assets/BillPayPromoPage-DOE2YIqC-eMf19kde.js +0 -84
- package/dist/assets/BillingSettingsPage-iImtlEmO-NkTGKevj.js +0 -44
- package/dist/assets/ChargeCardPromoPage-DIfakIOK-Bt_RFZVL.js +0 -222
- package/dist/assets/CollapsableReportTable-DNfFkAts-BXskWmz4.js +0 -2982
- package/dist/assets/ConfettiBurst-BZCXEGYA-BuT0DNIg.js +0 -1
- package/dist/assets/CurrencySelectField-BAh7SHrG-C0eRIjkk.js +0 -139
- package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-DApxSm4l.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-Bh_F0-oC-DAVz68Sy.js +0 -66
- package/dist/assets/DashboardSidebarBackgroundAnimation-BtA5oEGG-BE0eZrrp.js +0 -12
- package/dist/assets/DepositAccTransactionItem-CyFi1P_L-B5_uXo_7.js +0 -76
- package/dist/assets/DepositAccTransactionListPage-DvBRRUdZ-DEAnKryS.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-DCDo3aHI-g4hbj-K1.js +0 -21
- package/dist/assets/DownloadOverlay-D_lL1sPW-DOw4m1yt.js +0 -439
- package/dist/assets/EditPeoplePage-QvPy_Six-anrdd6es.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-C0ZDkboO-1LZFYwiw.js +0 -865
- package/dist/assets/EntityDetailPage-l7nXIsyF-BWeJETf7.js +0 -18
- package/dist/assets/ExpenseAutomationPage-DA22Qofw-DO_fqdZH.js +0 -3001
- package/dist/assets/GlobalReviewListPage-D5_ACa-q-DgPiQmby.js +0 -291
- package/dist/assets/InsightsSection-B6CNlTNH-CLcBLG7W.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-COC6lZml-CP2ZasSF.js +0 -65
- package/dist/assets/InviteFormPage-DN02jRy5-BtKUOX8b.js +0 -312
- package/dist/assets/InvitePeoplePage-VTM6kM1u-G3Ul_pWm.js +0 -12
- package/dist/assets/InvoiceUploadSection-it-ZYl1N-BO7KOyKX.js +0 -140
- package/dist/assets/LabeledAddressValueField-BgWwd5Gw-BhvAMjBe.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-CcPO1k23-DrHMqRca.js +0 -16
- package/dist/assets/LabeledDocumentField-C_bcFxdY-DD0gr-bC.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-ScGGCap8-D-kv_bCg.js +0 -59
- package/dist/assets/MagicLinkACHDetailsPage-BSOlSfNu-B1jvyROC.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-D1DTPo0E-RgVjNAqp.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-D_wo_2nm-tnKyOj1K.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-QMkZgQLG-D-HowjcM.js +0 -31
- package/dist/assets/MailingDetailsSection-ByOPaJ05-Ct12OUY5.js +0 -21
- package/dist/assets/MyPendingActivationChargeCardListPage-CX38bDdq-CFKFaD81.js +0 -6
- package/dist/assets/MyProfileSettingsPage-DYu0Fx6I-BtcIqQ7N.js +0 -85
- package/dist/assets/NoDataTable-4vPXmPYF-CwZdP9nM.js +0 -8
- package/dist/assets/NotificationsListConfig-B5pDa4cJ-BswJOyvx.js +0 -1
- package/dist/assets/NotificationsPage-Ccl7Dny1-BlIM0WaT.js +0 -685
- package/dist/assets/OpExByVendorPage-spd-nKV4-DL88DIG2.js +0 -100
- package/dist/assets/PandLWithForecastPage-TSoe4Z7F-D4kqBVQ1.js +0 -123
- package/dist/assets/PeoplePage-b5_I0qOw-C1yNgQZU.js +0 -727
- package/dist/assets/QBOSetupSection-DjnN9dgv-ISynvMy-.js +0 -79
- package/dist/assets/ReimbursementApprovalRuleDetailPage-D5NXjrO9-D9uPP3dw.js +0 -32
- package/dist/assets/ReimbursementDetailPage-BbyxE2uL-0loMmewR.js +0 -314
- package/dist/assets/ReimbursementPromoPage-CyEgwqcf-CgriiA9d.js +0 -84
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DnmYl0FM-Bhe1TAsD.js +0 -1
- package/dist/assets/ReportTableViewSelector-Bc1K7mU_-Cq7HHLUo.js +0 -151
- package/dist/assets/ReportsPage-BOTHMLWh-W09uRSHp.js +0 -269
- package/dist/assets/ScheduleDetailsFixedAssetsPage-DiL5Dozk-CCcAk0g0.js +0 -37
- package/dist/assets/ScheduleDetailsPage-5FWpLRtd-oIb8NDEV.js +0 -37
- package/dist/assets/ScheduleSequenceTable-R3-PsXES-ClyCeUfL.js +0 -326
- package/dist/assets/SignIn-CmgmnRm4-CTHQKiMt.js +0 -491
- package/dist/assets/SignInScreen-D6DML_Ge.js +0 -1
- package/dist/assets/SpendManagementListViewPage-CFUxCqkU-BAqTaSS5.js +0 -134
- package/dist/assets/StatementsPage-As5WOnMR-k_kQpGjl.js +0 -58
- package/dist/assets/SubTabSwitcher-D7QeM6nb-qtx8MdsY.js +0 -58
- package/dist/assets/SummaryCard-C2qoTsAY-DDjCmaHn.js +0 -1
- package/dist/assets/TaskManagementPage-BJwp32Ph-DovQ5Y6P.js +0 -508
- package/dist/assets/TimeRangeSwitcher-D00bDDhP-DYi-s0cU.js +0 -64
- package/dist/assets/TimeframeSwitcher-DA99HdHt-NQjsVR_-.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-DyggDIQj-yshKro9r.js +0 -53
- package/dist/assets/TransactionDetailPage-1-mLOWSz-DT3B6GWp.js +0 -903
- package/dist/assets/TransactionList-BB-xoIGm-WH6cmyEO.js +0 -153
- package/dist/assets/TransactionListPage-Cj7h1Ros-D83WnCkA.js +0 -35
- package/dist/assets/TreasuryOverviewPage-DwvjMR4_-DY1oE8mV.js +0 -725
- package/dist/assets/TreasuryStatementsPage-Catz8shX-jQUbirVv.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-D8hzCL5o-6uZaRuCs.js +0 -58
- package/dist/assets/TrendWithTransactions-3D1FvM8G-C__bS1bm.js +0 -116
- package/dist/assets/UploadAdditionalDocumentOverlay-Wl4Spdpn-CbLtbJQH.js +0 -38
- package/dist/assets/Vendor2FAPopup-D0zYKkIv-BygCz9U8.js +0 -1
- package/dist/assets/VendorACHDetailsPage-YYX9aQdw-Dd_Yp7Po.js +0 -1
- package/dist/assets/VendorDetailPage-Br9wIOnI-D7IvjenZ.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-BpPgQRHI-3VolPNUI.js +0 -1
- package/dist/assets/VendorFirstReviewPage-BbknTCBD-CXQ3X7Oj.js +0 -730
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-yhTjWXvw-QYQGZ34-.js +0 -1
- package/dist/assets/ZeniAccountDetailPage-GcwTJdB8-CbR031ng.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-CdwO0Duy-DHL8XcBW.js +0 -443
- package/dist/assets/ZeniAccountNavBarPieces-BrSIfL36-rP8-LNeM.js +0 -33
- package/dist/assets/ZeniAccountSetupPage-TKBfbgzJ-LpNGhMSo.js +0 -36
- package/dist/assets/chartTypes-CD3vrBsI--X3YDFNJ.js +0 -1
- package/dist/assets/commonDimensions-Oz1tdAcx-DcNBG7HB.js +0 -1
- package/dist/assets/downloadPdf-Dsuxeias-Cm2qRseb.js +0 -1
- package/dist/assets/epic-DmCiRuzo.js +0 -2
- package/dist/assets/lottie-Cne2KPqn.js +0 -2
- package/dist/assets/mapLoadingInProgressToTreeNode-jcHEi-mv-CGykrO8u.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-XgUp1xUb-CG1HpWw1.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Bre8FfBF-CoJtwaHe.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DOyCX6ij-BEXH0Sn-.js +0 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-BYkFfnSr.js +0 -3
- package/dist/assets/react-Bug7UPVd.js +0 -19
- package/dist/assets/toCOABalancesWithID-aLNB35t7-a6z4p0gt.js +0 -1
- package/dist/assets/toChartData-DUL6vnzJ-DBy9U-ty.js +0 -1
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-CTAMYaR4.js +0 -1
- package/dist/assets/uploadReceipts-CIgkuVpu-CJ8IdAY6.js +0 -1
- package/dist/assets/zeni-epic-state-B4EHkeVq.js +0 -14
|
@@ -1,865 +0,0 @@
|
|
|
1
|
-
import{ay as yt,V as t,gv as po,aS as un,g as $t,aa as di,aA as On,aG as ui,e as Ae,gQ as ho,bQ as go,gw as yo,gx as bo,gR as fo,ae as mi,cy as pn,cz as pi,cA as hi,ac as H,o as n,x as s,bE as Pn,bq as xo,dE as wo,gy as So,gH as gi,gE as Rn,aT as yi,aq as bi,bU as vo,gS as qe,eR as Ye,fj as hn,gT as Mt,O as Se,L as Ct,gU as $o,d as R,b as fi,as as gn,u as l,bz as Co,bV as ko,cR as Io,eZ as yn,gV as Ft,dN as ge,cV as bn,dT as ye,cU as rt,eB as Do,fx as xi,w as At,cY as wi,cX as ot,eJ as Oe,ak as fn,gW as To,fO as jo,cQ as Oo,aX as Ln,fI as Po,by as Ro,gX as An,bc as Si,y as Lo,eA as Ao,b9 as Et,gz as zo,c3 as vi,N as xn,M as $i,da as Ci,cq as Nt,fa as Bo,bb as Mo,de as Fo,fC as Eo,an as wn,a as zn,c1 as ki,b3 as Bn,d9 as No,ao as Wo,d0 as Ii,aQ as Uo,gY as Di,gZ as mn,g_ as Ti,gq as Mn,g$ as zt,cZ as _o,gu as Vo,bM as qo,d8 as Ho}from"./index-CurP1SOA.js";import{a as v,P as Tt}from"./sentry-CDHeVBhK.js";import{n as i}from"./mui-BxEa6oIz.js";import{GE as Ko,bL as at,bZ as ji,bo as Oi,bm as Fn,GF as En,bh as Sn}from"./zeni-epic-state-B4EHkeVq.js";import Pi from"./InvoiceUploadSection-it-ZYl1N-BO7KOyKX.js";import{r as Go,f as Bt,d as vt,p as vn,u as Nn,h as we}from"./types-DyvtCprH-NFPm5TaG.js";import{D as Yo}from"./LabeledCreatableSingleSelectField-CISYMojq-CMb8Wj3I.js";import{S as Qo}from"./CurrencySelectField-BAh7SHrG-C0eRIjkk.js";import{e as Xo}from"./BankAccountSection-Di4sF52j-D4IfCjd3.js";import{W as Zo,A as Jo}from"./BankAccountWarningSection-Cled-2cR-CPMJAwOm.js";import{o as ea}from"./radio-default-CiSgisfh-DL8BJVml.js";import"./liveblocks-Dud0zcBr.js";import"./core-DEFUIdDG.js";import"./recharts-CucZZnV5.js";import"./lottie-Cne2KPqn.js";import"./analytics-Dn0Lw8Hl.js";import"./lexical-C3dXI-1S.js";import"./utils-B2bXCuaD.js";import"./AttachmentView-CzC4skJ3-BCDnapXA.js";import"./uploadReceipts-CIgkuVpu-CJ8IdAY6.js";import"./upload-reimbursement-receipt-O2N8vcO7-CTAMYaR4.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]="140aab2a-20f0-49e3-8227-22ae3e577813",e._sentryDebugIdIdentifier="sentry-dbid-140aab2a-20f0-49e3-8227-22ae3e577813")}catch{}})();const Te=(e,o)=>`${e}.${o}`,Wn={largeLabelWidth:new s(120,120,160),paddingBottom:new s(l[3],l[2])},{spendManagement:{reimbursement:{reimbursementDetail:fe}},dateFormat:ta,common:na}=Se.getLocalizedStrings(),ia=({lineIndex:e,mileage:o,classList:r,defaultCurrency:c,sectionId:p,isReimbursementCommentingEnabled:D,isDisabled:m,isAddReimbursementDisabled:I,companyMileageConfigInfo:T,customerSearchAutoComplete:h,reimbursementId:a,classHierarchyList:$})=>{const d=Ae(),y=yt(),w=Ft(),O=`dashboard_${y.currentTenant?.companyId}`,L=$t(),{formState:{errors:A},getValues:S,trigger:P}=rt(),f=na.strings.empty,B=S(Te(p,"distanceInMiles")),te=Wn.largeLabelWidth.value(d),ne=S(Te(p,"class")),re=r.find(j=>j.classId===ne?.selectedOption),K=Te(p,"class"),Q=Oe(A,K);v.useEffect(()=>{ne?.selectedOption!=null&&(re?.isDeleted===!0||Q)&&P(K)},[ne?.selectedOption,re?.isDeleted,r,K,P]);const W={application:"dashboard",companyId:y.currentTenant?.companyId,tab:"reimbursement",entityId:a},G=j=>r.filter(ie=>ie.classId===j)[0]?.accountingClassNumber,V=r.find(j=>j.classId===o.class),ue={valueContainer:j=>({...j,padding:`2px ${n.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},Pe={valueContainer:j=>({...j,padding:`2px ${n.sp3} !important`,overflow:"unset"})};return t.jsxs(t.Fragment,{children:[t.jsx(ge,{isThreadAllowed:D&&a!=null,dashboardTabKey:ye({type:"details",key:`${e}.mileage.transactionDate`}),roomId:O,companyId:y.currentTenant?.companyId??f,companyName:y.currentTenant?.companyName??f,entityId:a,dashboardOptionType:"reimbursement",filterMetaData:{...W,entityType:`reimbursement.details.${we("transactionDate",e,"mileage")}`},fieldThreadTargetElement:w?.sharedRef?.contentWrapperRef,children:t.jsx(Ii,{isDisabled:m,label:{label:fe.transactionDate,width:te},style:{paddingBottom:Wn.paddingBottom.valuePx(d),width:"auto"},dateField:{name:Te(p,"transactionDate"),placeholder:fe.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:ta.visual.defaultInput,autoComplete:"off",maxDate:Sn(),registerOptions:{required:!0,validate:j=>!!j}}})}),t.jsx(wt,{}),t.jsx(ge,{isThreadAllowed:D&&a!=null,dashboardTabKey:ye({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:O,companyId:y.currentTenant?.companyId??f,companyName:y.currentTenant?.companyName??f,entityId:a,dashboardOptionType:"reimbursement",filterMetaData:{...W,entityType:`reimbursement.details.${we("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:w?.sharedRef?.contentWrapperRef,children:t.jsx(Mn,{isDisabled:I?"disabled":void 0,style:{width:"auto"},label:{label:fe.distanceInMiles,width:te},formattedTextField:{type:"number",name:Te(p,"distanceInMiles"),placeholder:fe.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:j=>j!=null?j>0:!0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(wt,{}),t.jsx(ge,{isThreadAllowed:D&&a!=null,dashboardTabKey:ye({type:"details",key:`${e}.mileage.amount`}),roomId:O,companyId:y.currentTenant?.companyId??f,companyName:y.currentTenant?.companyName??f,entityId:a,dashboardOptionType:"reimbursement",filterMetaData:{...W,entityType:`reimbursement.details.${we("amount",e,"mileage")}`},fieldThreadTargetElement:w?.sharedRef?.contentWrapperRef,children:t.jsx(Mn,{isDisabled:"disabled",label:{label:fe.amount,width:te},formattedTextField:{type:"number",name:Te(`${p}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:ot(fe.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:j=>j!=null?j>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:B!=null&&T?.mileageUnitAmount!=null?`${c.currencySymbol}${T?.mileageUnitAmount} per mile x ${B}`:void 0})}),t.jsx(wt,{}),t.jsx(ge,{isThreadAllowed:D&&a!=null,dashboardTabKey:ye({type:"details",key:`${e}.mileage.memo`}),roomId:O,companyId:y.currentTenant?.companyId??f,companyName:y.currentTenant?.companyName??f,entityId:a,dashboardOptionType:"reimbursement",filterMetaData:{...W,entityType:`reimbursement.details.${we("memo",e,"mileage")}`},fieldThreadTargetElement:w?.sharedRef?.contentWrapperRef,children:t.jsx(bn,{isDisabled:m,label:{label:fe.memo,width:te},style:{width:"auto"},text:{type:"text",name:Te(p,"memo"),placeholder:ot(fe.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:Di}}})}),t.jsx(wt,{}),t.jsx(ge,{isThreadAllowed:D&&a!=null,dashboardTabKey:ye({type:"details",key:`${e}.mileage.class`}),roomId:O,companyId:y.currentTenant?.companyId??f,companyName:y.currentTenant?.companyName??f,entityId:a,dashboardOptionType:"reimbursement",filterMetaData:{...W,entityType:`reimbursement.details.${we("class",e,"mileage")}`},fieldThreadTargetElement:w?.sharedRef?.contentWrapperRef,children:t.jsx(mn,{isLoading:!1,label:{label:fe.department,width:te},additionalLabelInfo:re?.isDeleted===!0&&Oe(A,Te(p,"class"))?fe.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Te(p,"class"),placeholder:ot(fe.department),valueToId:j=>G(j),defaultValue:{selectedOption:V?.classId,allOptions:Ye($,[])},style:{width:"100%"},customStyleConfig:ue,registerOptions:{required:!0,validate:j=>j?.selectedOption==null?!1:r.find(ie=>ie.classId===j?.selectedOption)?.isDeleted===!0?fe.deletedClassError:!0}},style:{borderBottom:`1px solid ${L.colors.grey3}`},fullWidthSelect:!0},Te(p,"class"))}),t.jsx(wt,{}),t.jsx(ge,{isThreadAllowed:D&&a!=null,dashboardTabKey:ye({type:"details",key:`${e}.mileage.customer`}),roomId:O,companyId:y.currentTenant?.companyId??f,companyName:y.currentTenant?.companyName??f,entityId:a,dashboardOptionType:"reimbursement",filterMetaData:{...W,entityType:`reimbursement.details.${we("customer",e,"mileage")}`},fieldThreadTargetElement:w?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${n.sp2} ${n.sp2}`},children:t.jsx(Ti,{label:{label:fe.customer,width:te},isDisabled:m,autoCompleteSingleSelectField:{name:Te(p,"customer"),placeholder:fe.customerPlaceholder,isDisabled:m,valueToId:j=>j,defaultValue:{selectedOption:o.customer?.selectedOption,defaultOptions:o.customer?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:Pe,loadOptions:h?.loadOptions},style:{justifyContent:"space-between"},fullWidthSelect:!0},Te(p,"customer"))})]})},wt=i.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex: 1;
|
|
4
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
5
|
-
min-height: 1px;
|
|
6
|
-
max-height: 1px;
|
|
7
|
-
`,Un={amounWidth:new s(50,30),currencyWidth:new s(50,70)};function oa({name:e,placeHolder:o,defaultValue:r,isDisabled:c,showAmountCurrencyError:p,style:D,allCurrencies:m}){const[I,T]=v.useState(!1),{getValues:h,formState:{errors:a}}=rt(),$=$t(),d=Ae(),y=c!=null,w=h(e),O=`${w?.amount} ${w?.currency?.selectedOption}`,L=Oe(a,e)&&zt(a,`${e}.amount`)!=null,A=Oe(a,e)&&zt(a,`${e}.currency`)!=null,S=p===!0?L||A:!1,P=!S&&I===!1;return v.useEffect(()=>{P===!1&&T(!0)},[P]),t.jsx(bi,{onClickAway:()=>y===!1&&!S&&T(!1),children:t.jsx(ra,{style:D,isDisabled:y,tabIndex:P&&!y?0:void 0,onClick:()=>y===!1&&T(!0),"data-testid":H("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[w?.amount!=null?t.jsx(_n,{className:"amount-field",isVisible:P,children:O}):t.jsx(_n,{className:"amount-field amount-placeholder",isVisible:P,children:o?.name}),t.jsxs(aa,{isVisible:!P,children:[t.jsx(Vo,{type:"number",name:`${e}.amount`,defaultValue:r?.amount,placeholder:o?.amount,returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:f=>f!=null?f>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:c,style:{display:"flex",flexGrow:1,width:Un.amounWidth.valuePercentage(d),cursor:"inherit"},bgColor:$.colors.background,isFieldError:L,shouldHighlightZeroAmount:!0}),P?null:t.jsx(la,{}),t.jsx(Qo,{name:`${e}.currency`,registerOptions:{validate:f=>f!=null&&f.selectedOption!=null},defaultValue:{allOptions:m.map(f=>({label:d==="small"?f.currencyCode:`${f.currencyCode} - ${f.currency}`,value:f.currencyCode,countryCode:f.countryCode})),selectedOption:r?.currencyCode},controlStyle:{justifyContent:"flex-start",backgroundColor:$.colors.background},isDisabled:c,style:{width:Un.currencyWidth.valuePercentage(d),flexGrow:1},isOptionRemovable:!1})]})]})})})}const aa=i.div`
|
|
8
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
9
|
-
width: 100%;
|
|
10
|
-
input {
|
|
11
|
-
text-align: left;
|
|
12
|
-
}
|
|
13
|
-
`,ra=i.div`
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: flex-end;
|
|
17
|
-
position: relative;
|
|
18
|
-
width: 100%;
|
|
19
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
20
|
-
outline: none;
|
|
21
|
-
outline-width: 0;
|
|
22
|
-
input {
|
|
23
|
-
text-align: right;
|
|
24
|
-
}
|
|
25
|
-
`,la=i.div`
|
|
26
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
27
|
-
min-width: ${n.sp3};
|
|
28
|
-
`,_n=i(Si)`
|
|
29
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
30
|
-
padding: 0 ${n.sp3};
|
|
31
|
-
border-radius: ${n.sp1};
|
|
32
|
-
height: 100%;
|
|
33
|
-
align-items: center;
|
|
34
|
-
width: 100%;
|
|
35
|
-
justify-content: flex-end;
|
|
36
|
-
color: ${e=>e.theme.colors.primary};
|
|
37
|
-
&.amount-placeholder {
|
|
38
|
-
color: ${e=>e.theme.colors.grey1};
|
|
39
|
-
}
|
|
40
|
-
`,_e={width:new s(343,580,726),height:new s(l[6],l[6]),controlHeight:new s(l[6],l[6]),paddingTopBottom:new s(l[2],l[2]),marginRight:new s(l[2],l[2]),labelMarginLeft:new s(l[3],l[4]),labelMarginRight:new s(l[3],l[4]),labelMarginTop:new s(l[2],l[2])},Ri={infoLabel:new xn("extraSmallRegular","smallRegular")};function sa({isDisabled:e,label:o,currencyAmountField:r,style:c,errorInfoLabel:p,isAdditionalInfoLabelLoading:D,showAdditionalLabelTooltip:m=!1,additionalLabelTooltip:I,additionalInfoLabel:T,showAdditionalInfoLabel:h=!0}){const a=Ae(),{formState:{errors:$}}=rt(),d=Oe($,r.name)&&zt($,`${r.name}.amount`)!=null,y=Oe($,r.name)&&zt($,`${r.name}.currency`)!=null,w=r.showAmountCurrencyError===!0?d||y:!1,O=d||y||w,L=()=>{if(D===!0)return t.jsx(pa,{children:t.jsx(Ct,{size:"Small",start:!0})});if(h&&T||w){let A=null;return m===!0&&h&&T&&(A=t.jsx(ki,{placement:a==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(ma,{children:I??""}),children:t.jsx(ga,{children:t.jsx(ya,{})})})),t.jsxs(ha,{size:a,isError:w,hasToolTip:m,children:[A,T]})}};return t.jsxs(ca,{size:a,style:c,isDisabled:e!=null,isAmountError:d,isCurrencyError:y,"data-testid":H("labeled-currency-amount-field",r.name),children:[t.jsx(_o,{isDisabled:e,label:o.label,htmlFor:r.name,style:{marginLeft:_e.labelMarginLeft.value(a),marginRight:_e.labelMarginRight.value(a),marginTop:_e.labelMarginTop.value(a),width:o.width??"auto"}}),t.jsxs(ua,{labelWidth:o.width,children:[t.jsx(oa,{...r,isDisabled:e,style:{flexGrow:1,height:_e.controlHeight.value(a)}}),O?t.jsx(da,{size:a,hasError:O,children:p}):null,L()]})]})}const ca=i.div`
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-direction: row;
|
|
43
|
-
align-items: flex-start;
|
|
44
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
45
|
-
width: ${e=>_e.width.valuePx(e.size)};
|
|
46
|
-
min-height: ${e=>_e.height.valuePx(e.size)};
|
|
47
|
-
padding-right: ${e=>_e.marginRight.valuePx(e.size)};
|
|
48
|
-
padding-top: ${e=>_e.paddingTopBottom.valuePx(e.size)};
|
|
49
|
-
padding-bottom: ${e=>_e.paddingTopBottom.valuePx(e.size)};
|
|
50
|
-
|
|
51
|
-
:first-of-type {
|
|
52
|
-
border-top-left-radius: inherit;
|
|
53
|
-
border-top-right-radius: inherit;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
:last-of-type {
|
|
57
|
-
border-bottom-left-radius: inherit;
|
|
58
|
-
border-bottom-right-radius: inherit;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&:focus-within {
|
|
62
|
-
z-index: 2;
|
|
63
|
-
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
64
|
-
|
|
65
|
-
.amount-field {
|
|
66
|
-
background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.theme.colors.background};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
input:nth-of-type(1) {
|
|
70
|
-
background-color: ${e=>e.isAmountError?R.importantLight:e.theme.colors.background};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
input:nth-of-type(2) {
|
|
74
|
-
background-color: ${e=>e.isCurrencyError?R.importantLight:e.theme.colors.background};
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
input {
|
|
78
|
-
text-align: left;
|
|
79
|
-
background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.theme.colors.background};
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
input:nth-of-type(1) {
|
|
83
|
-
background-color: ${e=>e.isAmountError?R.importantLight:e.theme.colors.background};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
input:nth-of-type(2) {
|
|
87
|
-
background-color: ${e=>e.isCurrencyError?R.importantLight:e.theme.colors.background};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&:hover {
|
|
91
|
-
z-index: 1;
|
|
92
|
-
outline: 1px solid
|
|
93
|
-
${e=>e.isDisabled===!0?e.theme.colors.grey3:e.theme.colors.primary};
|
|
94
|
-
input,
|
|
95
|
-
.amount-field {
|
|
96
|
-
background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.theme.colors.background};
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
input:nth-of-type(1) {
|
|
100
|
-
background-color: ${e=>e.isAmountError?R.importantLight:e.theme.colors.background};
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
input:nth-of-type(2) {
|
|
104
|
-
background-color: ${e=>e.isCurrencyError?R.importantLight:e.theme.colors.background};
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
`,da=i.label`
|
|
108
|
-
color: ${e=>e.hasError===!0?R.important:e.additionalInfoTextColor!=null?e.additionalInfoTextColor:e.theme.colors.grey1};
|
|
109
|
-
width: auto;
|
|
110
|
-
${e=>`${Ri.infoLabel.style(e.size)}`};
|
|
111
|
-
padding-right: ${n.sp3};
|
|
112
|
-
text-align: right;
|
|
113
|
-
`,ua=i.div`
|
|
114
|
-
display: flex;
|
|
115
|
-
width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
|
|
116
|
-
justify-content: flex-end;
|
|
117
|
-
flex-direction: column;
|
|
118
|
-
position: relative;
|
|
119
|
-
`,ma=i(fn)`
|
|
120
|
-
padding: 12px;
|
|
121
|
-
color: ${e=>e.theme.colors.grey1};
|
|
122
|
-
background: ${e=>e.theme.colors.overlayColor};
|
|
123
|
-
border-radius: ${n.sp1};
|
|
124
|
-
`,pa=i.div`
|
|
125
|
-
padding-right: ${n.sp3};
|
|
126
|
-
padding-top: ${n.sp1};
|
|
127
|
-
display: flex;
|
|
128
|
-
justify-content: flex-end;
|
|
129
|
-
`,ha=i.label`
|
|
130
|
-
display: flex;
|
|
131
|
-
justify-content: flex-end;
|
|
132
|
-
color: ${e=>e.isError?R.important:e.theme.colors.hero};
|
|
133
|
-
&:hover {
|
|
134
|
-
color: ${e=>e.isError?R.importantDark:e.theme.colors.primary};
|
|
135
|
-
}
|
|
136
|
-
${e=>`${Ri.infoLabel.style(e.size)}`};
|
|
137
|
-
padding-right: ${n.sp3};
|
|
138
|
-
text-align: right;
|
|
139
|
-
margin-top: ${e=>e.hasToolTip===!0?n.sp1:n.sp0};
|
|
140
|
-
`,ga=i.div`
|
|
141
|
-
display: flex;
|
|
142
|
-
margin-right: ${n.sp2};
|
|
143
|
-
margin-top: 2px;
|
|
144
|
-
align-items: center;
|
|
145
|
-
`,ya=i(qo)`
|
|
146
|
-
width: ${n.sp3};
|
|
147
|
-
height: ${n.sp3};
|
|
148
|
-
color: inherit;
|
|
149
|
-
`,le=(e,o)=>`${e}.${o}`,Rt={largeLabelWidth:new s(120,120,160),smallLabelWidth:new s(85,85,160),paddingBottom:new s(l[3],l[2]),autoFillIconLeft:new s(-8,-24)},{dateFormat:ba,common:Li,spendManagement:{reimbursement:{reimbursementDetail:Z}}}=Se.getLocalizedStrings(),fa={valueContainer:e=>({...e,padding:`2px ${n.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},{strings:{empty:ae}}=Li,xa=(e,o)=>{const r=e.slice(1);let c=!1;return r.forEach(p=>{p.account?.qboId!=null&&p.account?.qboId===o&&(c=!0)}),c},wa=e=>e.charAt(0).toLowerCase()+e.slice(1),Sa=({lineIndex:e,outOfPocket:o,accountList:r,classList:c,merchantList:p,isAddReimbursementDisabled:D,sectionId:m,isReimbursementCommentingEnabled:I,isDisabled:T,autoFields:h=[],accountsHierarchyList:a,classHierarchyList:$,reimbursementId:d,tentativeMerchantName:y,allCurrencies:w,uncategorizedAccounts:O,customerSearchAutoComplete:L})=>{const A=Ae(),S=yt(),P=Ft(),f=$t(),{formState:{errors:B},getValues:te,trigger:ne}=rt(),re=te(le(m,"class")),K=c.find(b=>b.classId===re?.selectedOption),Q=le(m,"class"),W=Oe(B,Q),G=te(le(m,"account")),V=r.find(b=>b.qboId===G?.selectedOption||b.accountId===G?.selectedOption),ue=le(m,"account"),Pe=Oe(B,ue);v.useEffect(()=>{re?.selectedOption!=null&&(K?.isDeleted===!0||W)&&ne(Q)},[re?.selectedOption,K?.isDeleted,c,Q,ne]),v.useEffect(()=>{G?.selectedOption!=null&&(V?.isDeleted===!0||Pe)&&ne(ue)},[G?.selectedOption,V?.isDeleted,r,ue,ne]);const j=o.isCategoryUpdateSelected!=null&&o.recommendedAccount!=null&&!o.isCategoryFirstTimeAutofilled&&!xa(o.recommendations,o.account),ie=o.isRetainedCategorySelected!=null&&o.retainedAccount!=null,U=Rt.largeLabelWidth.value(A),Ce=Rt.smallLabelWidth.value(A),ke=p.map(b=>b.id??ae),se={application:"dashboard",companyId:S.currentTenant?.companyId,tab:"reimbursement",entityId:d},ce=`dashboard_${S.currentTenant?.companyId}`,me=b=>p.find(X=>X.id===b)?.name??b,Re=r.find(b=>b.qboId===o.account),ze=b=>[O.expense?.qboId,O.income?.qboId].includes(b),Ie=c.find(b=>b.classId===o.class),pe={valueContainer:b=>({...b,padding:`2px ${n.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},Le=b=>r.filter(X=>X.qboId===b)[0]?.qboId,he=b=>c.filter(X=>X.classId===b)[0]?.accountingClassNumber,De=Se.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",wa(o?.recommendedAccount?.reason??ae)),Qe=Mt(a,o.recommendations);return t.jsxs(t.Fragment,{children:[y!=null||h.includes("merchant")?t.jsx(mt,{children:t.jsx(ht,{windowSize:A,children:t.jsx(pt,{})})}):null,t.jsx(ge,{isThreadAllowed:I&&d!=null,dashboardTabKey:ye({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:ce,companyId:S.currentTenant?.companyId??ae,companyName:S.currentTenant?.companyName??ae,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...se,entityType:`reimbursement.details.${we("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:P?.sharedRef?.contentWrapperRef,children:t.jsx(Yo,{isDisabled:T!=null||D?"disabled":void 0,label:{label:Z.merchant,width:U},style:{width:"auto"},creatableSingleSelectField:{name:le(m,"merchant"),placeholder:Z.merchantPlaceholder,defaultValue:{selectedOption:o.merchant??ae,allOptions:ke},registerOptions:{required:!0,validate:b=>!!b.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:me})}),t.jsx(St,{}),h.includes("transactionDate")?t.jsx(mt,{children:t.jsx(ht,{windowSize:A,children:t.jsx(pt,{})})}):null,t.jsx(ge,{isThreadAllowed:I&&d!=null,dashboardTabKey:ye({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:ce,companyId:S.currentTenant?.companyId??ae,companyName:S.currentTenant?.companyName??ae,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...se,entityType:`reimbursement.details.${we("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:P?.sharedRef?.contentWrapperRef,children:t.jsx(Ii,{isDisabled:T,label:{label:Z.transactionDate,width:U},style:{paddingBottom:Rt.paddingBottom.valuePx(A),width:"auto"},dateField:{name:le(m,"transactionDate"),placeholder:Z.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:ba.visual.defaultInput,autoComplete:"off",maxDate:Sn(),registerOptions:{required:!0,validate:b=>!!b}}})}),t.jsx(St,{}),h.includes("amount")?t.jsx(mt,{children:t.jsx(ht,{windowSize:A,isTwoLined:!0,children:t.jsx(pt,{})})}):null,t.jsx(ge,{isThreadAllowed:I&&d!=null,dashboardTabKey:ye({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:ce,companyId:S.currentTenant?.companyId??ae,companyName:S.currentTenant?.companyName??ae,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...se,entityType:`reimbursement.details.${we("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:P?.sharedRef?.contentWrapperRef,children:t.jsx(sa,{isDisabled:T!=null||D?"disabled":void 0,label:{label:Z.amount,width:Ce},style:{width:"auto"},currencyAmountField:{style:{height:n.sp6},name:`${m}.amount`,defaultValue:{amount:o.amount.amount,currencyCode:o.amount.currencyCode,currencySymbol:o.amount.currencySymbol},placeHolder:{amount:Z.addAmount,name:Z.addAmount},allCurrencies:w,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:Z.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:o.isConvertedCurrencyLoading===!0,additionalInfoLabel:!ui(o.homeCurrencyDetails,o.amount)&&o.amount.currencyCode!==Li.currency.currencyCode&&o.homeCurrencyDetails?.amount!==0?`${Uo("0,0[.]00",o.homeCurrencyDetails)} ${o.homeCurrencyDetails?.currencyCode}`:void 0})}),t.jsx(St,{}),h.includes("memo")?t.jsx(mt,{children:t.jsx(ht,{windowSize:A,children:t.jsx(pt,{})})}):null,t.jsx(ge,{isThreadAllowed:I&&d!=null,dashboardTabKey:ye({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:ce,companyId:S.currentTenant?.companyId??ae,companyName:S.currentTenant?.companyName??ae,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...se,entityType:`reimbursement.details.${we("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:P?.sharedRef?.contentWrapperRef,children:t.jsx(bn,{isDisabled:T,label:{label:Z.memo,width:U},style:{width:"auto"},text:{type:"text",name:le(m,"memo"),placeholder:ot(Z.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:Di}}})}),t.jsx(St,{}),h.includes("account")?t.jsx(mt,{children:t.jsx(ht,{windowSize:A,children:t.jsx(pt,{})})}):null,t.jsx(ge,{isThreadAllowed:I&&d!=null,dashboardTabKey:ye({type:"details",key:`${e}.out_of_pocket.account`}),roomId:ce,companyId:S.currentTenant?.companyId??ae,companyName:S.currentTenant?.companyName??ae,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...se,entityType:`reimbursement.details.${we("account",e,"out_of_pocket")}`},fieldThreadTargetElement:P?.sharedRef?.contentWrapperRef,children:t.jsx(mn,{label:{label:Z.category,width:U},additionalLabelInfo:V?.isDeleted===!0&&Oe(B,le(m,"account"))?Z.deletedCategoryError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:j||ie,name:le(m,"account"),placeholder:Z.categoryPlaceholder,valueToId:b=>Le(b),defaultValue:{selectedOption:Re?.qboId??Re?.accountId,allOptions:Qe},style:{width:"100%"},customStyleConfig:pe,registerOptions:{required:!0,validate:b=>b?.selectedOption==null?!1:r.find(X=>X.qboId===b?.selectedOption||X.accountId===b?.selectedOption)?.isDeleted===!0?Z.deletedCategoryError:!0}},disableCurrentOption:ze,style:{borderBottom:`1px solid ${f.colors.grey3}`,minHeight:n.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:o.isRecommendationLoading,recommendationCheckboxField:j?{tooltipProps:{text:De},label:{label:o.recommendedAccount?.accountName??ae},checkBoxField:{name:le(m,"isCategoryUpdateSelected"),defaultChecked:!!o.isCategoryUpdateSelected}}:void 0,retainCheckboxField:ie?{label:{label:o.retainedAccount?.accountName??ae},checkBoxField:{name:le(m,"isRetainedCategorySelected"),defaultChecked:!!o.isRetainedCategorySelected}}:void 0},le(m,"account"))}),h.includes("class")?t.jsx(mt,{children:t.jsx(ht,{windowSize:A,children:t.jsx(pt,{})})}):null,t.jsx(ge,{isThreadAllowed:I&&d!=null,dashboardTabKey:ye({type:"details",key:`${e}.out_of_pocket.class`}),roomId:ce,companyId:S.currentTenant?.companyId??ae,companyName:S.currentTenant?.companyName??ae,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...se,entityType:`reimbursement.details.${we("class",e,"out_of_pocket")}`},fieldThreadTargetElement:P?.sharedRef?.contentWrapperRef,children:t.jsx(mn,{isLoading:!1,label:{label:Z.department,width:U},additionalLabelInfo:K?.isDeleted===!0&&Oe(B,le(m,"class"))?Z.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:le(m,"class"),placeholder:ot(Z.department),valueToId:b=>he(b),defaultValue:{selectedOption:Ie?.classId,allOptions:Ye($,[])},style:{width:"100%"},customStyleConfig:pe,registerOptions:{required:!0,validate:b=>b?.selectedOption==null?!1:c.find(X=>X.classId===b?.selectedOption)?.isDeleted===!0?Z.deletedClassError:!0}},style:{borderBottom:`1px solid ${f.colors.grey3}`},fullWidthSelect:!0},le(m,"class"))}),t.jsx(St,{}),t.jsx(ge,{isThreadAllowed:I&&d!=null,dashboardTabKey:ye({type:"details",key:`${e}.out_of_pocket.customer`}),roomId:ce,companyId:S.currentTenant?.companyId??ae,companyName:S.currentTenant?.companyName??ae,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...se,entityType:`reimbursement.details.${we("customer",e,"out_of_pocket")}`},fieldThreadTargetElement:P?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${n.sp2} ${n.sp2}`},children:t.jsx(Ti,{label:{label:Z.customer,width:U},isDisabled:T,autoCompleteSingleSelectField:{name:le(m,"customer"),placeholder:Z.customerPlaceholder,isDisabled:T,valueToId:b=>b,defaultValue:{selectedOption:o.customerAutoCompleteData?.selectedOption,defaultOptions:o.customerAutoCompleteData?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:fa,loadOptions:L?.loadOptions},style:{justifyContent:"space-between"},fullWidthSelect:!0},le(m,"customer"))})]})},mt=i.span`
|
|
150
|
-
position: relative;
|
|
151
|
-
`,pt=i(yn)`
|
|
152
|
-
color: ${e=>e.theme.colors.primary};
|
|
153
|
-
width: ${n.sp3};
|
|
154
|
-
height: ${n.sp3};
|
|
155
|
-
`,ht=i.div`
|
|
156
|
-
z-index: 2;
|
|
157
|
-
left: ${e=>Rt.autoFillIconLeft.valuePx(e.windowSize)};
|
|
158
|
-
position: absolute;
|
|
159
|
-
top: ${e=>e.isTwoLined===!0?n.sp5:"22px"};
|
|
160
|
-
`,St=i.div`
|
|
161
|
-
display: flex;
|
|
162
|
-
flex: 1;
|
|
163
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
164
|
-
min-height: 1px;
|
|
165
|
-
max-height: 1px;
|
|
166
|
-
`,nt=(e,o)=>`${e}.${o}`,Ve={paddingTop:new s(l[5],l[4]),marginBottom:new s(l[3],l[3]),labelPaddingLeft:new s(l[3],l[4]),buttonWidth:new s(70,70),containerRightMargin:new s(l[3],l[8]),containerLeftMargin:new s(l[3],l[6]),deleteConfirmationTextMarginBottom:new s(l[2],l[0])},Y=Se.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,va=({lineData:e,currencyConversionState:o,recommendationFetchState:r,remiStage:c,lineIndex:p,accountList:D,classList:m,merchantList:I,hasFile:T,defaultCurrency:h,hasMultipleLineItems:a,fileRequiredLineIds:$,duplicateLineDetails:d,remiStatus:y,sectionId:w,isDisabled:O,isReimbursementCommentingEnabled:L,isAddReimbursementDisabled:A,style:S,autoFields:P=[],analytics:f,reimbursementId:B,tentativeMerchantName:te,companyMileageConfigInfo:ne,customerSearchAutoComplete:re,uncategorizedAccounts:K,removeDuplicateReimbursementForLine:Q,scrollToSection:W,onDuplicateLineClick:G,onRemoveReimbursement:V,clearTentativeNameForLine:ue,allCurrencies:Pe,accountsHierarchyList:j,classHierarchyList:ie})=>{const U=Ae(),Ce=yt(),ke=Ft(),se=Se.getLocalizedStrings().common.strings.empty,ce={application:"dashboard",companyId:Ce.currentTenant?.companyId,tab:"reimbursement",entityId:B},me=`dashboard_${Ce.currentTenant?.companyId}`,{getValues:Re}=rt(),[ze,Ie]=v.useState(!1),pe=Re(nt(w,"reimbursementType"));return t.jsxs(ja,{style:S,windowSize:U,children:[t.jsxs(Ca,{hasFile:T,windowSize:U,showDeleteConfirmation:ze,children:[t.jsx(Pa,{windowSize:U,children:a?`#${p+1} ${Y.reimbursement}`:Y.reimbursement}),ze?t.jsxs(Ta,{windowSize:U,children:[t.jsx(Da,{windowSize:U,children:Y.deleteConfirmation}),t.jsxs($a,{children:[t.jsx(zn,{label:Y.buttons.cancel,onClick:()=>Ie(!1),style:{width:Ve.buttonWidth.value(U),marginLeft:U==="small"?n.sp0:n.sp4,marginRight:n.sp3},size:"small",variant:"secondary","data-testid":H("delete-remi-button",Y.buttons.cancel)}),t.jsx(zn,{label:Y.buttons.remove,onClick:()=>{f?.trackReimbursementDeleteReimbursementLine(e.lineId,B),ue?.(e.lineId??"1"),Ie(!1),Q(e.lineId),V(p)},style:{width:Ve.buttonWidth.value(U)},size:"small",variant:"danger","data-testid":H("delete-remi-button",Y.buttons.remove)})]})]}):a&&(c==="draft"||y==="rejected")?t.jsx(ka,{className:"deleteIconWrapper",windowSize:U,onClick:()=>Ie(!0),"data-testid":H("delete-remi-button",e.lineId),children:t.jsx(ki,{enterDelay:600,title:Y.deleteReimbursement,placement:"top-end",children:t.jsx(Ia,{})})}):null]}),$.includes(e.lineId)?t.jsx(gi,{title:Y.missingReceipt,description:Y.missingReceiptDescription,style:{marginBottom:n.sp3}}):null,t.jsxs(Ra,{windowSize:U,children:[d?.duplicateLineId!=null?t.jsxs(Oa,{children:[Y.thisExpense," ",d.isDuplicateWithinTransaction?t.jsx(Vn,{"data-testid":H("view-duplicate-transaction-expense"),onClick:()=>(f?.trackReimbursementViewDuplicateExpense(!0,B),W(d.duplicateLineId)),children:Y.viewOriginalExpense}):t.jsx(Vn,{"data-testid":H("view-duplicate-expense"),onClick:()=>{d.duplicateTransactionId!=null&&d.duplicateLineId!=null&&(f?.trackReimbursementViewDuplicateExpense(!1,B),G(d.duplicateTransactionId,d.duplicateLineId))},children:Y.viewOriginalExpense})]}):null,t.jsx(ge,{isThreadAllowed:L&&B!=null,dashboardTabKey:ye({type:"details",key:pe===Y.mileageKey?`${p}.mileage.reimbursementType`:`${p}.out_of_pocket.reimbursementType`}),roomId:me,companyId:Ce.currentTenant?.companyId??se,companyName:Ce.currentTenant?.companyName??se,entityId:B,dashboardOptionType:"reimbursement",filterMetaData:{...ce,entityType:`reimbursement.details.${we("reimbursementType",p,pe===Y.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:ke?.sharedRef?.contentWrapperRef,style:{borderRadius:d?.duplicateLineId!=null?"0 0 0 0":`${n.sp2} ${n.sp2} 0 0`},children:t.jsxs(Aa,{isDisabled:O!=null,haveBorderRadius:d?.duplicateLineId==null,children:[t.jsx(Bn,{isDisabled:O!=null||A?"disabled":void 0,isContainerClickable:!0,label:{label:Y.outOfPocket},style:{padding:`${n.sp3} ${n.sp0}`,paddingLeft:Ve.labelPaddingLeft.value(U),borderTopLeftRadius:"inherit"},showOutline:!(L&&B!=null),radioField:{name:nt(w,"reimbursementType"),id:`${nt(w,"reimbursementType")}.${Y.outOfPocketKey}`,value:Y.outOfPocketKey}}),t.jsx(La,{}),t.jsx(Bn,{isDisabled:O!=null||A?"disabled":void 0,isContainerClickable:!0,label:{label:Y.mileage},style:{padding:`${n.sp3} ${n.sp0}`,paddingLeft:Ve.labelPaddingLeft.value(U),borderTopRightRadius:"inherit"},showOutline:!(L&&B!=null),radioField:{name:nt(w,"reimbursementType"),id:`${nt(w,"reimbursementType")}.${Y.mileageKey}`,value:Y.mileageKey}})]})}),t.jsx(za,{}),pe===Y.outOfPocketKey?t.jsx(Sa,{lineIndex:p,reimbursementId:B,uncategorizedAccounts:K,isReimbursementCommentingEnabled:L,isDisabled:O,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?at(e.outOfPocket.transactionDate.toDateString()):void 0,account:e.outOfPocket.account.selectedOption,isConvertedCurrencyLoading:o?.fetchState==="In-Progress",isRecommendationLoading:r==="In-Progress",homeCurrencyDetails:e.homeCurrencyConversions,class:e.outOfPocket.class.selectedOption,amount:{amount:e.outOfPocket.amount?.amount??0,currencyCode:e.outOfPocket.amount?.currencyCode??"USD",currencySymbol:e.outOfPocket.amount?.currencySymbol??"$"},memo:e.outOfPocket.memo,merchant:e.outOfPocket.merchant.selectedOption,recommendations:e.outOfPocket.recommendations,recommendedAccount:e.outOfPocket.recommendedAccount,isCategoryUpdateSelected:e.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:e.outOfPocket.isCategoryFirstTimeAutofilled,retainedAccount:e.outOfPocket.retainedAccount,isRetainedCategorySelected:e.outOfPocket.isRetainedCategorySelected,customerAutoCompleteData:e.outOfPocket.customer},sectionId:nt(w,"outOfPocket"),accountList:D,classList:m,autoFields:P,merchantList:I,tentativeMerchantName:te,allCurrencies:Pe,isAddReimbursementDisabled:A,accountsHierarchyList:j,classHierarchyList:ie,customerSearchAutoComplete:re}):t.jsx(ia,{lineIndex:p,reimbursementId:B,isReimbursementCommentingEnabled:L,isDisabled:O,mileage:{transactionDate:e.mileage.transactionDate!=null?at(e.mileage.transactionDate.toDateString()):void 0,class:e.mileage.class.selectedOption,customer:e.mileage.customer,distanceInMiles:e.mileage.distanceInMiles,amount:{amount:e.mileage.amount?.amount??0,currencyCode:e.mileage.amount?.currencyCode??"USD",currencySymbol:e.mileage.amount?.currencySymbol??"$"},memo:e.mileage.memo},classList:m,sectionId:nt(w,"mileage"),companyMileageConfigInfo:ne,defaultCurrency:h,isAddReimbursementDisabled:A,classHierarchyList:ie,customerSearchAutoComplete:re})]})]})},$a=i.div``,Ca=i.div`
|
|
167
|
-
//when file is present and it's a small window, we don't have to show the title and delete icon. Delete icon will be displayed inside the invoice title, next to replace
|
|
168
|
-
//https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
|
|
169
|
-
display: ${e=>e.hasFile&&e.windowSize==="small"?"none":"flex"};
|
|
170
|
-
justify-content: ${e=>e.windowSize==="small"?e.showDeleteConfirmation?"center":"flex-end":"space-between"};
|
|
171
|
-
margin-bottom: ${n.sp3};
|
|
172
|
-
align-items: center;
|
|
173
|
-
`,ka=i.div`
|
|
174
|
-
width: ${n.sp3};
|
|
175
|
-
height: ${n.sp3};
|
|
176
|
-
cursor: pointer;
|
|
177
|
-
display: none;
|
|
178
|
-
color: ${e=>e.windowSize==="small"?R.important:e.theme.colors.hero};
|
|
179
|
-
&:hover {
|
|
180
|
-
color: ${R.important};
|
|
181
|
-
}
|
|
182
|
-
`,Vn=i.span`
|
|
183
|
-
border-bottom: 1px solid currentColor;
|
|
184
|
-
cursor: pointer;
|
|
185
|
-
`,Ia=i(No)`
|
|
186
|
-
width: ${n.sp3};
|
|
187
|
-
height: ${n.sp3};
|
|
188
|
-
cursor: pointer;
|
|
189
|
-
`,Da=i.div`
|
|
190
|
-
margin-bottom: ${e=>Ve.deleteConfirmationTextMarginBottom.valuePx(e.windowSize)};
|
|
191
|
-
`,Ta=i(wn)`
|
|
192
|
-
color: ${e=>e.theme.colors.hero};
|
|
193
|
-
display: flex;
|
|
194
|
-
align-items: center;
|
|
195
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
196
|
-
`,ja=i.div`
|
|
197
|
-
display: flex;
|
|
198
|
-
flex-direction: column;
|
|
199
|
-
padding-top: ${e=>Ve.paddingTop.valuePx(e.windowSize)};
|
|
200
|
-
margin-right: ${e=>Ve.containerRightMargin.valuePx(e.windowSize)};
|
|
201
|
-
margin-left: ${e=>Ve.containerLeftMargin.valuePx(e.windowSize)};
|
|
202
|
-
.deleteIconWrapper {
|
|
203
|
-
${e=>e.windowSize==="small"&&`
|
|
204
|
-
display: block;
|
|
205
|
-
`}
|
|
206
|
-
}
|
|
207
|
-
&:hover {
|
|
208
|
-
.deleteIconWrapper {
|
|
209
|
-
display: block;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
`,Oa=i(Wo)`
|
|
213
|
-
padding: ${n.sp2} ${n.sp0} ${n.sp2} ${n.sp4};
|
|
214
|
-
background-color: ${R.alertLight};
|
|
215
|
-
color: ${R.brandColorGoldDark};
|
|
216
|
-
border-top-left-radius: inherit;
|
|
217
|
-
border-top-right-radius: inherit;
|
|
218
|
-
`,Pa=i(Et)`
|
|
219
|
-
color: ${e=>e.theme.colors.primary};
|
|
220
|
-
display: ${e=>e.windowSize==="small"?"none":"unset"};
|
|
221
|
-
`,Ra=i.div`
|
|
222
|
-
display: flex;
|
|
223
|
-
flex-direction: column;
|
|
224
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
225
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
226
|
-
box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
227
|
-
border-radius: ${n.sp2};
|
|
228
|
-
margin-bottom: ${e=>Ve.marginBottom.valuePx(e.windowSize)};
|
|
229
|
-
`,La=i.div`
|
|
230
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
231
|
-
min-width: 1px;
|
|
232
|
-
max-width: 1px;
|
|
233
|
-
`,Aa=i.div`
|
|
234
|
-
display: flex;
|
|
235
|
-
flex-direction: row;
|
|
236
|
-
border-top-left-radius: ${e=>e.haveBorderRadius?"inherit":"unset"};
|
|
237
|
-
border-top-right-radius: ${e=>e.haveBorderRadius?"inherit":"unset"};
|
|
238
|
-
`,za=i.div`
|
|
239
|
-
display: flex;
|
|
240
|
-
flex: 1;
|
|
241
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
242
|
-
min-height: 1px;
|
|
243
|
-
max-height: 1px;
|
|
244
|
-
`,Ba=(e,o)=>`${e}.${o}`,gt={labelWidth:new s(120,160,160),paddingBottom:new s(l[3],l[3]),paddingTop:new s(12,l[3]),marginBottom:new s(12,l[3]),containerRightMargin:new s(l[3],l[8]),containerLeftMargin:new s(l[3],l[6])},Ai=({isReimbursementCommentingEnabled:e,sectionId:o,isDisabled:r,reportTitle:c,reimbursementId:p,style:D})=>{const m=Ae(),I=yt(),T=Ft(),h=`dashboard_${I.currentTenant?.companyId}`,a=Se.getLocalizedStrings(),$=a.spendManagement.reimbursement.reimbursementDetail,d=a.common.strings.empty,y=gt.labelWidth.value(m);return t.jsxs(Ma,{style:D,windowSize:m,children:[t.jsx(Ea,{windowSize:m,children:$.whatFor}),t.jsx(Fa,{children:t.jsx(ge,{isThreadAllowed:e&&p!=null,dashboardTabKey:ye({type:"details",key:"whatFor"}),roomId:h,companyId:I.currentTenant?.companyId??d,companyName:I.currentTenant?.companyName??d,entityId:p,dashboardOptionType:"reimbursement",filterMetaData:{application:"dashboard",companyId:I.currentTenant?.companyId,tab:"reimbursement",entityId:p,entityType:"reimbursement.details.whatFor"},fieldThreadTargetElement:T?.sharedRef?.contentWrapperRef,style:{borderRadius:n.sp2},children:t.jsx(bn,{isDisabled:r,label:{label:$.reportTitle,width:y},text:{type:"text",name:Ba(o,"reportTitle"),placeholder:$.lunchWithClient,defaultValue:c,autoComplete:"off",options:{required:!0,validate:w=>!!w}},style:{width:"auto",borderRadius:n.sp2}})})})]})},Ma=i.div`
|
|
245
|
-
display: flex;
|
|
246
|
-
flex-direction: column;
|
|
247
|
-
padding-top: ${e=>gt.paddingTop.valuePx(e.windowSize)};
|
|
248
|
-
padding-bottom: ${e=>gt.paddingBottom.valuePx(e.windowSize)};
|
|
249
|
-
margin-right: ${e=>gt.containerRightMargin.valuePx(e.windowSize)};
|
|
250
|
-
margin-left: ${e=>gt.containerLeftMargin.valuePx(e.windowSize)};
|
|
251
|
-
`,Fa=i.div`
|
|
252
|
-
display: flex;
|
|
253
|
-
flex-direction: column;
|
|
254
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
255
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
256
|
-
box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
257
|
-
border-radius: ${n.sp2};
|
|
258
|
-
`,Ea=i(Et)`
|
|
259
|
-
color: ${e=>e.theme.colors.primary};
|
|
260
|
-
margin-bottom: ${e=>gt.marginBottom.valuePx(e.windowSize)};
|
|
261
|
-
`,N={largeLabelWidth:new s(120,120,220),marginTop:new s(28,8),paymentToMarginTop:new s(0,l[4]),marginBottom:new s(l[5],l[4]),paymentToMarginBottom:new s(12,l[3]),totalMarginBottom:new s(l[3],l[3]),reimbursementSectionLeftMargin:new s(l[3],l[6]),reimbursementSectionRightMargin:new s(l[3],l[8]),invoiceSectionLeftMargin:new s(l[3],l[8]),invoiceSectionRightMargin:new s(l[3],l[6]),rightSectionWidth:new s(100,58),firstOrLastItemHeight:new s(390,760),itemHeight:new s(390,459),duplicateBannerWrapperMarginTop:new s(l[5],l[3]),duplicateBannerWrapperMarginRight:new s(l[3],l[8]),duplicateBannerWrapperMarginBottom:new s(l[5],l[3]),duplicateBannerWrapperMarginLeft:new s(l[3],l[6])},Na={total:new xn("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:q},billPay:{vendorCreation:{achDetails:jt}}},common:{currency:{currencyCode:Ot}}}=Se.getLocalizedStrings(),zi=e=>{let o=0,r=Ot;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const c=e;o=c.outOfPocket.amount??0,r=c.outOfPocket.currencyCode??Ot}else{const c=e;o=c.outOfPocket.amount?.amount??0,r=c.outOfPocket.amount?.currencyCode??Ot}return(e.homeCurrencyConversions?.currencyCode??Ot)!==r&&(o=e.homeCurrencyConversions?.amount??0),o},Wa=({remiUploadStatus:e,progressSectionObj:o,reimbursementId:r,createDate:c,scheduleDate:p,paymentDate:D,hasDuplicateLine:m,approvedDate:I,isFirstOrLastListItem:T,index:h,reimbursementSectionRef:a,showSkipAutoFill:$,lineData:d,currencyConversionState:y,authParams:w,uploadInvoiceEndPoint:O,accountList:L,classList:A,merchantList:S,remiStage:P,autoFieldsByLineId:f,isReimbursementCommentingEnabled:B,isAutoFieldsExist:te,totalAmount:ne,showTotalAmountLoader:re,totalNumberOfLines:K,defaultCurrency:Q,bankAccounts:W,fileRequiredLineIds:G,isAddReimbursementDisabled:V,duplicateLineByLineId:ue,remiStatus:Pe,file:j,uncategorizedAccounts:ie,reportTitle:U,recommendationFetchState:Ce,tentativeMerchantName:ke,paymentTo:se,analytics:ce,companyMileageConfigInfo:me,customerSearchAutoComplete:Re,loggedInUserDepartmentId:ze,isSignedInUserReimbursementCreator:Ie,setShowBankAccountPage:pe,setRefByLineId:Le,setCurrentLineIdForUpload:he,onDuplicateLineClick:De,setUploadedReceiptPayload:Qe,removeDuplicateReimbursementForLine:b,onReceiptsUpload:X,scrollToSection:He,onRemoveReimbursement:lt,onAddReimbursement:Xe,clearTentativeNameForLine:We,onReplaceClick:Be,onDeleteBankAccount:Ze,updateInvoiceUploadFetchState:Me,removeFileFromLine:Ke,allCurrencies:Ge,accountsHierarchyList:Je,classHierarchyList:st})=>{const{formState:{errors:de}}=rt(),et=v.useRef(null);v.useEffect(()=>(Le(E=>({...E,[`L${d.lineId}`]:et.current})),()=>{Le(E=>({...E,[`L${d.lineId}`]:null}))}),[d.lineId,Le]);const oe=Ae(),ct=P==="draft"?q.newReimbursementTitle:q.editReimbursementTitle,M=N.largeLabelWidth.value(oe),ve=E=>E.outOfPocket.account.selectedOption==null&&(E.outOfPocket.amount==null||E.outOfPocket.amount.amount==0)&&(E.outOfPocket.class.selectedOption==null||E.outOfPocket.class.selectedOption===ze)&&(E.outOfPocket.memo===""||E.outOfPocket.memo==null)&&E.outOfPocket.merchant.selectedOption==null&&E.outOfPocket.transactionDate==null,Wt=W.map(E=>E.bankAccountId),dt=d.reimbursementType===q.outOfPocketKey&&zi(d)>=75&&j==null;return t.jsxs(rr,{ref:a,windowSize:oe,children:[t.jsx(lr,{ref:E=>{E!=null&&(et.current=E)},windowSize:oe,bottomSeperator:K!==1,showSkipAutoFill:$,isFirstItem:h===0,children:t.jsx(Pi,{customError:dt?q.requireReceipt:void 0,analytics:ce,showAutofill:!1,uploadInvoiceEndPoint:O,authParams:w,entityId:V?"":void 0,file:j,style:{width:"auto",padding:0,height:T?N.firstOrLastItemHeight.valuePx(oe):N.itemHeight.valuePx(oe),margin:oe==="small"?n.sp0:void 0},updateInvoiceUploadFetchState:Me,onInvoiceUpload:E=>{d.reimbursementType===q.outOfPocketKey&&!ve(d)?(he(Number(d.lineId)),Qe(E),Be?.()):X(E,Number(d.lineId),!0)},dropFilePlaceholder:{upload:q.dropReceipt.upload,receipt:q.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!V,pdfTitle:K>1?`#${h+1} Receipt`:"Receipt",onDeleteClick:()=>{Me?.("In-Progress"),setTimeout(()=>Ke?.(Number(d.lineId)))},onReplaceClick:()=>{he(Number(d.lineId)),Be?.()},allowMultiFiles:K===h+1,type:"reimbursement"})}),t.jsxs(ar,{windowSize:oe,children:[h===0&&oe!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(Qa,{children:ct}),t.jsx(sr,{children:t.jsx(zo,{progressSectionObj:o,createDate:c,paymentDate:D,scheduleDate:p,approvedDate:I,isBillUploaded:r!=null?!0:e==="Completed"})}),te&&t.jsxs(Va,{children:[t.jsx(Ua,{}),t.jsx(Ya,{children:q.banner})]}),m&&t.jsxs(qa,{size:oe,children:[t.jsx(_a,{}),t.jsxs(Ka,{children:[t.jsx(Ha,{children:q.thereSeems}),t.jsx(Ga,{children:q.pleaseFind})]})]}),t.jsx(Ai,{isReimbursementCommentingEnabled:B,sectionId:Bt,reportTitle:U,reimbursementId:r})]}):null,t.jsx(va,{analytics:ce,reimbursementId:r,onDuplicateLineClick:De,uncategorizedAccounts:ie,sectionId:`${vn}.${h}`,scrollToSection:He,lineIndex:h,lineData:d,accountList:L,classList:A,merchantList:S,autoFields:d.lineId!=null?f[d.lineId]:[],currencyConversionState:y,recommendationFetchState:Ce,onRemoveReimbursement:lt,hasMultipleLineItems:K>1,clearTentativeNameForLine:We,tentativeMerchantName:ke,hasFile:j!=null,companyMileageConfigInfo:me,defaultCurrency:Q,remiStage:P,remiStatus:Pe,fileRequiredLineIds:G,allCurrencies:Ge,isReimbursementCommentingEnabled:B,isAddReimbursementDisabled:V,accountsHierarchyList:Je,classHierarchyList:st,customerSearchAutoComplete:Re,duplicateLineDetails:ue[d.lineId],removeDuplicateReimbursementForLine:b}),K!==1&&K===h+1&&t.jsxs(t.Fragment,{children:[t.jsxs(Za,{windowSize:oe,children:[t.jsx(Ja,{children:q.total}),re?t.jsx(er,{windowSize:oe,children:t.jsx(tr,{children:t.jsx(Ct,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(xi,{amount:Oi(ne,"USD","$"),integerStyles:At.h6Regular.cssObject,decimalStyles:At.standardRegular.cssObject})]}),t.jsxs(ir,{windowSize:oe,onClick:()=>{V===!1&&Xe()},isDisabled:V,"data-testid":H("add-reimbursement-row"),children:[t.jsx(Hn,{}),t.jsx(qn,{children:q.addReimbursement})]}),Ie?t.jsxs(t.Fragment,{children:[t.jsx(Xa,{windowSize:oe,children:q.receivePaymentTo}),t.jsx(nr,{windowSize:oe,shouldDisplay:W.length>0,children:t.jsx(wi,{label:{label:q.yourBankAccount,width:M},style:{width:"auto"},singleSelectField:{singleSelect:{name:vt,placeholder:ot(q.yourBankAccount),showValueEyeIcon:!V,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:Ze,getTooltipInfo:E=>Bi(W,E),onClickCreateBankAccount:()=>pe(!0),getLabelForId:E=>Fi(W,E),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:V?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:se,allOptions:Wt},registerOptions:{required:!0,validate:E=>!!E.selectedOption}},isFunctional:!0})}),t.jsxs(or,{shouldDisplay:W.length===0,windowSize:oe,hasError:Oe(de,vt),onClick:()=>{V===!1&&pe(!0)},isDisabled:V,"data-testid":H("remi-add-bank-account-container"),children:[t.jsx(Hn,{}),t.jsx(qn,{children:q.addBankAccount})]})]}):null]})]})]})},Bi=(e,o)=>{const r=Mi(e,o);return r==null?`${jt.bankRoutingNumber} ${q.emptyValue}
|
|
262
|
-
${jt.bankAccountNumber} ${q.emptyValue}`:`${jt.bankRoutingNumber} ${r.bankRoutingNumberAch??q.emptyValue}, ${r.bankName??q.emptyValue}
|
|
263
|
-
${jt.bankAccountNumber} ${r.bankAccountNumber??q.emptyValue}`},Mi=(e,o)=>e.find(r=>r.bankAccountId===o),Fi=(e,o)=>{const r=Mi(e,o);return r==null?q.selectBankAccount:r.bankAccountName?r.bankAccountName:r.maskedAccountNumber?r.maskedAccountNumber:r.bankName&&r.bankAccountNumber?`${r.bankName} ${q.accountNameConnector}${r.bankAccountNumber.slice(r.bankAccountNumber.length-4)}`:q.selectBankAccount},Ua=i(yn)`
|
|
264
|
-
color: ${e=>e.theme.colors.primary};
|
|
265
|
-
width: ${n.sp3};
|
|
266
|
-
height: ${n.sp3};
|
|
267
|
-
`,_a=i(Eo)`
|
|
268
|
-
width: ${n.sp4};
|
|
269
|
-
height: ${n.sp4};
|
|
270
|
-
color: ${R.brandColorGoldDark};
|
|
271
|
-
`,Va=i.div`
|
|
272
|
-
display: flex;
|
|
273
|
-
gap: ${n.sp2};
|
|
274
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
275
|
-
padding: ${n.sp3};
|
|
276
|
-
border-radius: ${n.sp2};
|
|
277
|
-
align-items: center;
|
|
278
|
-
margin: 0 ${n.sp8} 0 ${n.sp6};
|
|
279
|
-
`,qa=i.div`
|
|
280
|
-
display: flex;
|
|
281
|
-
gap: ${n.sp2};
|
|
282
|
-
padding: ${n.sp3};
|
|
283
|
-
border-radius: ${n.sp2};
|
|
284
|
-
align-items: start;
|
|
285
|
-
margin-top: ${e=>N.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
286
|
-
margin-right: ${e=>N.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
287
|
-
margin-bottom: ${e=>N.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
288
|
-
margin-left: ${e=>N.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
289
|
-
background-color: ${R.alertLight};
|
|
290
|
-
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
291
|
-
`,Ha=i(Nt)`
|
|
292
|
-
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
293
|
-
`,Ka=i.div`
|
|
294
|
-
width: 100%;
|
|
295
|
-
`,Ga=i(wn)`
|
|
296
|
-
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
297
|
-
`,Ya=i.span`
|
|
298
|
-
color: ${e=>e.theme.colors.hero};
|
|
299
|
-
`,Qa=i(Fo)`
|
|
300
|
-
letter-spacing: -0.02em;
|
|
301
|
-
color: ${e=>e.theme.colors.primary};
|
|
302
|
-
margin: ${n.sp3} ${n.sp8} ${n.sp3} ${n.sp6};
|
|
303
|
-
`,Xa=i(Et)`
|
|
304
|
-
letter-spacing: -0.02em;
|
|
305
|
-
color: ${e=>e.theme.colors.primary};
|
|
306
|
-
margin-top: ${e=>N.paymentToMarginTop.valuePx(e.windowSize)};
|
|
307
|
-
margin-bottom: ${e=>N.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
308
|
-
margin-left: ${e=>N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
309
|
-
margin-right: ${e=>N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
310
|
-
`,Za=i.div`
|
|
311
|
-
padding: ${n.sp3};
|
|
312
|
-
display: flex;
|
|
313
|
-
align-items: center;
|
|
314
|
-
justify-content: space-between;
|
|
315
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
316
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
317
|
-
border-radius: ${n.sp2};
|
|
318
|
-
color: ${e=>e.theme.colors.hero};
|
|
319
|
-
margin-top: ${e=>N.totalMarginBottom.valuePx(e.windowSize)};
|
|
320
|
-
margin-left: ${e=>N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
321
|
-
margin-right: ${e=>N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
322
|
-
margin-bottom: ${e=>N.totalMarginBottom.valuePx(e.windowSize)};
|
|
323
|
-
justify-content: space-between;
|
|
324
|
-
`,Ja=i(vi)`
|
|
325
|
-
display: flex;
|
|
326
|
-
width: 176px;
|
|
327
|
-
color: ${e=>e.theme.colors.primary};
|
|
328
|
-
`,er=i($i)`
|
|
329
|
-
display: flex;
|
|
330
|
-
width: calc(100% - 176px);
|
|
331
|
-
justify-content: flex-end;
|
|
332
|
-
color: ${e=>e.theme.colors.primary};
|
|
333
|
-
${e=>`${Na.total.style(e.windowSize)}`};
|
|
334
|
-
`,tr=i.div`
|
|
335
|
-
padding-right: ${n.sp3};
|
|
336
|
-
height: 30px;
|
|
337
|
-
display: flex;
|
|
338
|
-
justify-content: flex-end;
|
|
339
|
-
`,nr=i.div`
|
|
340
|
-
margin-left: ${e=>N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
341
|
-
margin-right: ${e=>N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
342
|
-
margin-bottom: ${n.sp3};
|
|
343
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
344
|
-
border-radius: ${n.sp2};
|
|
345
|
-
box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
346
|
-
display: ${e=>e.shouldDisplay?"unset":"none"};
|
|
347
|
-
`,ir=i.div`
|
|
348
|
-
padding: ${n.sp3};
|
|
349
|
-
display: flex;
|
|
350
|
-
align-items: center;
|
|
351
|
-
justify-content: center;
|
|
352
|
-
border: 1px solid
|
|
353
|
-
${e=>e.hasError===!0?R.important:e.theme.colors.hero};
|
|
354
|
-
border-radius: ${n.sp2};
|
|
355
|
-
color: ${e=>e.hasError===!0?R.important:e.theme.colors.hero};
|
|
356
|
-
cursor: ${e=>e.isDisabled?"default":"pointer"};
|
|
357
|
-
&:hover {
|
|
358
|
-
color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?R.important:e.theme.colors.primary};
|
|
359
|
-
border: 1px solid
|
|
360
|
-
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?R.important:e.theme.colors.primary};
|
|
361
|
-
}
|
|
362
|
-
margin-top: ${e=>N.totalMarginBottom.valuePx(e.windowSize)};
|
|
363
|
-
margin-left: ${e=>N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
364
|
-
margin-right: ${e=>N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
365
|
-
margin-bottom: ${e=>N.marginBottom.valuePx(e.windowSize)};
|
|
366
|
-
`,or=i.div`
|
|
367
|
-
padding: ${n.sp3};
|
|
368
|
-
display: ${e=>e.shouldDisplay?"flex":"none"};
|
|
369
|
-
align-items: center;
|
|
370
|
-
justify-content: center;
|
|
371
|
-
border: 1px solid
|
|
372
|
-
${e=>e.hasError===!0?R.important:e.theme.colors.hero};
|
|
373
|
-
border-radius: ${n.sp2};
|
|
374
|
-
color: ${e=>e.hasError===!0?R.important:e.theme.colors.hero};
|
|
375
|
-
cursor: pointer;
|
|
376
|
-
&:hover {
|
|
377
|
-
color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?R.important:e.theme.colors.primary};
|
|
378
|
-
border: 1px solid
|
|
379
|
-
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?R.important:e.theme.colors.primary};
|
|
380
|
-
}
|
|
381
|
-
margin-left: ${e=>N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
382
|
-
margin-right: ${e=>N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
383
|
-
margin-bottom: ${e=>N.marginBottom.valuePx(e.windowSize)};
|
|
384
|
-
`,qn=i(Nt)`
|
|
385
|
-
color: inherit;
|
|
386
|
-
`,Hn=i(Ci)`
|
|
387
|
-
margin-right: ${n.sp2};
|
|
388
|
-
width: ${n.sp3};
|
|
389
|
-
height: ${n.sp3};
|
|
390
|
-
`,ar=i.div`
|
|
391
|
-
display: flex;
|
|
392
|
-
flex-direction: column;
|
|
393
|
-
width: ${e=>N.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
394
|
-
`,rr=i.div`
|
|
395
|
-
display: flex;
|
|
396
|
-
width: 100%;
|
|
397
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
398
|
-
`,lr=i.div`
|
|
399
|
-
height: 100%;
|
|
400
|
-
background: ${e=>e.theme.colors.grey3};
|
|
401
|
-
border-radius: ${n.sp2};
|
|
402
|
-
width: ${e=>e.windowSize==="small"?"auto":"42%"};
|
|
403
|
-
margin-left: ${e=>N.invoiceSectionLeftMargin.valuePx(e.windowSize)};
|
|
404
|
-
margin-right: ${e=>N.invoiceSectionRightMargin.valuePx(e.windowSize)};
|
|
405
|
-
visibility: ${e=>e.showSkipAutoFill?"hidden":"unset"};
|
|
406
|
-
margin-bottom: ${e=>e.bottomSeperator===!0&&e.windowSize!=="small"?e.isFirstItem?"102px":n.sp10:0};
|
|
407
|
-
margin-top: ${e=>N.marginTop.valuePx(e.windowSize)};
|
|
408
|
-
`,sr=i.div`
|
|
409
|
-
padding: ${n.sp2} ${n.sp8} ${n.sp0} ${n.sp6};
|
|
410
|
-
`,cr={total:new xn("largeMedium","h6Medium")},J={largeLabelWidth:new s(120,120,220),marginBottom:new s(l[5],l[4]),addBankAccountMarginBottom:new s(l[5],l[5]),marginTop:new s(l[0],78),paymentToMarginTop:new s(0,l[4]),totalMarginBottom:new s(l[3],l[3]),rightMargin:new s(l[3],l[8]),leftMargin:new s(l[3],l[6]),paymentToMarginBottom:new s(12,l[3])},it=Se.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,dr=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:c,showSkipAutoFill:p,isReimbursementCommentingEnabled:D,isAutoFieldsExist:m,totalAmount:I,defaultCurrency:T,hasDuplicateLine:h,bankAccounts:a,fileRequiredLineIds:$,companyMileageConfigInfo:d,analytics:y,reimbursementId:w,currencyConversionStatus:O,setShowSkipAutoFill:L,setShowBankAccountPage:A,removeDuplicateReimbursementForLine:S,onReceiptsUpload:P,setCurrentLineIdForUpload:f,onDuplicateLineClick:B,setUploadedReceiptPayload:te,removeFileFromLine:ne,onReplaceClick:re,updateInvoiceUploadFetchState:K,clearTentativeNameForLine:Q,customerSearchAutoComplete:W,onDeleteBankAccount:G,uncategorizedAccounts:V,isSignedInUserReimbursementCreator:ue,duplicateLineByLineId:Pe,showTotalAmountLoader:j,scrollContainerRef:ie})=>{const{control:U,formState:{errors:Ce}}=rt(),{fields:ke,append:se,remove:ce}=Do({name:vn,control:U}),me=ke,Re=v.useRef(null),ze=M=>{setTimeout(()=>{ce(M)})},{tentativeMerchantNameByLineId:Ie,remiStage:pe,remiStatus:Le}=e,he=!ue||pe==="pending_approval"&&Le!=="rejected"&&o||pe==="pending_approval"&&Le==="rejected",De=he?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:a,Qe=De.map(M=>M.bankAccountId),b=Ae(),X=J.largeLabelWidth.value(b),He=e.whatForSection.reportTitle,lt=e.accountList.accounts,Xe=e.accountsHierarchyList,We=e.classHierarchyList,Be=e.classList.classes,Ze=e.merchantList.merchants,Me=e.addRemiAutoFieldsByLineId,Ke=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(M=>Number(M)),0),Ge=()=>{const M=me[me.length-1],ve=Ei(me.length,Number(M.lineId)>Ke?String(Number(M.lineId)+1):String(Ke+1),Xe,We,Ze,T,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{se(ve,{shouldFocus:!1})}),f(Number(ve.lineId)),L(!0),setTimeout(()=>Nn(Re.current,ie?.current),50)},[Je,st]=v.useState({}),de=v.useCallback(M=>{const ve=Je[`L${M}`];ve!=null&&Nn(ve,ie?.current)},[Je,ie]),et=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,oe=e.reimbursementInfo?.paymentDate!=null?at(ji(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,ct=e.reimbursementInfo?.expectedDepositDate??oe;return t.jsxs(hr,{windowSize:b,showSkipAutoFill:p,children:[me.map((M,ve)=>t.jsx(Wa,{removeDuplicateReimbursementForLine:S,onDuplicateLineClick:B,scrollToSection:de,setRefByLineId:st,duplicateLineByLineId:Pe,reimbursementId:w,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:V,progressSectionObj:et,createDate:e.createTime,paymentDate:ct,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:me.length-1===ve||ve===0,index:ve,reimbursementSectionRef:Re,remiStage:pe,remiStatus:Le,authParams:r,file:M.file,uploadInvoiceEndPoint:c,showSkipAutoFill:p,lineData:M,currencyConversionState:O[M.lineId],recommendationFetchState:e.lineDetailSection[M.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:f,setUploadedReceiptPayload:te,onReplaceClick:re,onReceiptsUpload:P,removeFileFromLine:ne,isReimbursementCommentingEnabled:D,isAutoFieldsExist:m,reportTitle:He,accountList:lt,classList:Be,merchantList:Ze,autoFieldsByLineId:Me,onRemoveReimbursement:ze,onAddReimbursement:Ge,totalAmount:I,showTotalAmountLoader:j,hasDuplicateLine:h,totalNumberOfLines:me.length,updateInvoiceUploadFetchState:K,clearTentativeNameForLine:Q,customerSearchAutoComplete:W,tentativeMerchantName:Ie[M.lineId],companyMileageConfigInfo:d,defaultCurrency:T,setShowBankAccountPage:A,paymentTo:e.paymentTo,bankAccounts:De,onDeleteBankAccount:G,analytics:y,fileRequiredLineIds:$,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:he,accountsHierarchyList:Xe,classHierarchyList:We,isSignedInUserReimbursementCreator:ue},M.lineId)),me.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(tn,{children:[b!=="small"?t.jsx(Jt,{windowSize:b}):null,t.jsx(en,{windowSize:b,children:t.jsxs(gr,{windowSize:b,children:[t.jsx(yr,{children:it.total}),j?t.jsx(fr,{windowSize:b,children:t.jsx(xr,{children:t.jsx(Ct,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(xi,{amount:Oi(I,Fn.currencyCode,Fn.currencySymbol),integerStyles:At.h6Regular.cssObject,decimalStyles:At.standardRegular.cssObject})]})})]}),t.jsxs(tn,{children:[b!=="small"?t.jsx(Jt,{windowSize:b}):null,t.jsx(en,{windowSize:b,children:t.jsxs(wr,{windowSize:b,onClick:()=>{he===!1&&Ge()},isDisabled:he,"data-testid":H("add-reimbursement-container"),children:[t.jsx(Gn,{}),t.jsx(Kn,{children:it.addReimbursement})]})})]}),t.jsxs(tn,{children:[b!=="small"?t.jsx(Jt,{windowSize:b}):null,ue?t.jsxs(en,{windowSize:b,children:[t.jsx(br,{windowSize:b,children:it.receivePaymentTo}),t.jsx(pr,{windowSize:b,shouldDisplay:De.length>0,children:t.jsx(wi,{label:{label:it.yourBankAccount,width:X},style:{width:"auto"},singleSelectField:{singleSelect:{name:vt,placeholder:ot(it.yourBankAccount),showValueEyeIcon:!he,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:G,getTooltipInfo:M=>Bi(De,M),onClickCreateBankAccount:()=>A(!0),getLabelForId:M=>Fi(De,M),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:he?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:Qe},registerOptions:{required:!0,validate:M=>!!M.selectedOption}},isFunctional:!0})}),t.jsxs(Sr,{shouldDisplay:De.length===0,windowSize:b,onClick:()=>{he===!1&&A(!0)},hasError:Oe(Ce,vt),isDisabled:he,"data-testid":H("remi-add-bank-account-container"),children:[t.jsx(Gn,{}),t.jsx(Kn,{children:it.addBankAccount})]})]}):null]})]})]})},Ei=(e,o,r,c,p,D,m,I)=>{const T=ur(r,c,p,D,m,I);return{lineIndex:e,lineId:o,reimbursementType:it.outOfPocketKey,file:void 0,outOfPocket:T,mileage:mr(c,D,I)}},ur=(e,o,r,c,p,D)=>({transactionDate:void 0,class:{allOptions:qe(Ye(o,[])),selectedOption:D},account:{allOptions:qe(Mt(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:hn(m.countryCode)})),selectedOption:c.currencyCode??Se.getLocalizedStrings().common.currency.currencyCode}},memo:void 0,merchant:{allOptions:r.map(m=>m.id).filter(m=>!!m),selectedOption:void 0},recommendations:[],isCategoryUpdateSelected:!1,isCategoryFirstTimeAutofilled:!1,isRetainedCategorySelected:!1}),mr=(e,o,r)=>({transactionDate:void 0,class:{allOptions:qe(Ye(e,[])),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:o.currencyCode,currencySymbol:o.currencySymbol},memo:void 0}),pr=i.div`
|
|
411
|
-
margin-left: ${e=>J.leftMargin.valuePx(e.windowSize)};
|
|
412
|
-
margin-right: ${e=>J.rightMargin.valuePx(e.windowSize)};
|
|
413
|
-
margin-bottom: ${e=>J.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
414
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
415
|
-
border-radius: ${n.sp2};
|
|
416
|
-
box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
417
|
-
display: ${e=>e.shouldDisplay?"inherit":"none"};
|
|
418
|
-
`,Jt=i.div`
|
|
419
|
-
width: ${e=>e.windowSize==="small"?"100%":"42%"};
|
|
420
|
-
`,en=i.div`
|
|
421
|
-
width: ${e=>e.windowSize==="small"?"100%":"58%"};
|
|
422
|
-
`,hr=i.div`
|
|
423
|
-
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
424
|
-
flex-direction: column;
|
|
425
|
-
margin-top: ${e=>J.marginTop.valuePx(e.windowSize)};
|
|
426
|
-
`,gr=i.div`
|
|
427
|
-
padding: ${n.sp3};
|
|
428
|
-
display: flex;
|
|
429
|
-
align-items: center;
|
|
430
|
-
justify-content: space-between;
|
|
431
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
432
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
433
|
-
border-radius: ${n.sp2};
|
|
434
|
-
color: ${e=>e.theme.colors.hero};
|
|
435
|
-
margin-top: ${e=>J.totalMarginBottom.valuePx(e.windowSize)};
|
|
436
|
-
margin-left: ${e=>J.leftMargin.valuePx(e.windowSize)};
|
|
437
|
-
margin-right: ${e=>J.rightMargin.valuePx(e.windowSize)};
|
|
438
|
-
margin-bottom: ${e=>J.totalMarginBottom.valuePx(e.windowSize)};
|
|
439
|
-
`,yr=i(vi)`
|
|
440
|
-
display: flex;
|
|
441
|
-
width: 176px;
|
|
442
|
-
color: ${e=>e.theme.colors.primary};
|
|
443
|
-
`,br=i(Et)`
|
|
444
|
-
color: ${e=>e.theme.colors.primary};
|
|
445
|
-
margin-top: ${e=>J.paymentToMarginTop.valuePx(e.windowSize)};
|
|
446
|
-
margin-bottom: ${e=>J.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
447
|
-
margin-left: ${e=>J.leftMargin.valuePx(e.windowSize)};
|
|
448
|
-
margin-right: ${e=>J.rightMargin.valuePx(e.windowSize)};
|
|
449
|
-
`,fr=i($i)`
|
|
450
|
-
display: flex;
|
|
451
|
-
width: calc(100% - 176px);
|
|
452
|
-
justify-content: flex-end;
|
|
453
|
-
color: ${e=>e.theme.colors.primary};
|
|
454
|
-
${e=>`${cr.total.style(e.windowSize)}`};
|
|
455
|
-
`,xr=i.div`
|
|
456
|
-
padding-right: ${n.sp3};
|
|
457
|
-
height: 30px;
|
|
458
|
-
display: flex;
|
|
459
|
-
justify-content: flex-end;
|
|
460
|
-
`,wr=i.div`
|
|
461
|
-
padding: ${n.sp3};
|
|
462
|
-
display: flex;
|
|
463
|
-
align-items: center;
|
|
464
|
-
justify-content: center;
|
|
465
|
-
border: 1px solid
|
|
466
|
-
${e=>e.hasError===!0?R.important:e.theme.colors.hero};
|
|
467
|
-
border-radius: ${n.sp2};
|
|
468
|
-
|
|
469
|
-
color: ${e=>e.hasError===!0?R.important:e.theme.colors.hero};
|
|
470
|
-
cursor: ${e=>e.isDisabled?"default":"pointer"};
|
|
471
|
-
&:hover {
|
|
472
|
-
color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?R.important:e.theme.colors.primary};
|
|
473
|
-
border: 1px solid
|
|
474
|
-
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?R.important:e.theme.colors.primary};
|
|
475
|
-
}
|
|
476
|
-
margin-top: ${e=>J.totalMarginBottom.valuePx(e.windowSize)};
|
|
477
|
-
margin-left: ${e=>J.leftMargin.valuePx(e.windowSize)};
|
|
478
|
-
margin-right: ${e=>J.rightMargin.valuePx(e.windowSize)};
|
|
479
|
-
margin-bottom: ${e=>J.marginBottom.valuePx(e.windowSize)};
|
|
480
|
-
`,Sr=i.div`
|
|
481
|
-
padding: ${n.sp3};
|
|
482
|
-
display: ${e=>e.shouldDisplay?"flex":"none"};
|
|
483
|
-
align-items: center;
|
|
484
|
-
justify-content: center;
|
|
485
|
-
border: 1px solid
|
|
486
|
-
${e=>e.hasError===!0?R.important:e.theme.colors.hero};
|
|
487
|
-
border-radius: ${n.sp2};
|
|
488
|
-
color: ${e=>e.hasError===!0?R.important:e.theme.colors.hero};
|
|
489
|
-
cursor: ${e=>e.isDisabled?"default":"pointer"};
|
|
490
|
-
&:hover {
|
|
491
|
-
color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?R.important:e.theme.colors.primary};
|
|
492
|
-
border: 1px solid
|
|
493
|
-
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?R.important:e.theme.colors.primary};
|
|
494
|
-
}
|
|
495
|
-
margin-left: ${e=>J.leftMargin.valuePx(e.windowSize)};
|
|
496
|
-
margin-right: ${e=>J.rightMargin.valuePx(e.windowSize)};
|
|
497
|
-
margin-bottom: ${e=>J.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
498
|
-
`,Kn=i(Nt)`
|
|
499
|
-
color: inherit;
|
|
500
|
-
`,Gn=i(Ci)`
|
|
501
|
-
margin-right: ${n.sp2};
|
|
502
|
-
width: ${n.sp3};
|
|
503
|
-
height: ${n.sp3};
|
|
504
|
-
`,tn=i.div`
|
|
505
|
-
display: flex;
|
|
506
|
-
width: 100%;
|
|
507
|
-
`,Ne={buttonWidth:new s(140,140),paddingLeft:new s(l[3],l[6]),paddingRight:new s(l[3],l[8]),subTitleMarginbottom:new s(l[2],l[3]),orSeperatorTopBottomMargin:new s(l[6],44),iconWidthHeight:new s(20,l[4])},Yn="userBankAccountPage",Lt="bankAccountSection",vr=e=>({[Lt]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName}}),Qn=e=>`${e}_form`,$r=({bankAccountCreationState:e,setShowBankAccountPage:o,plaidConnectionDetails:r,onFetchLinkTokenClick:c,onEstablishConnectionClick:p,bankAccountToCreate:D,fetchBankNameByRoutingStatus:m,isDisabled:I,onSaveHandler:T,onUserBankDetailsUpdated:h,onFetchBankName:a,onBackClick:$})=>{const d=$t(),y=Ae(),w=di({mode:"onBlur",reValidateMode:"onChange",defaultValues:v.useMemo(()=>vr(D),[D])}),O=v.useCallback(Q=>{p?.(Q),$()},[$,p]),L=r.link_account_no_microdeposit,{open:A}=jo({token:L.linkToken??null,onSuccess:O});v.useEffect(()=>{(at(new Date().toISOString()).isAfter(L.expiration)||L.linkToken==null)&&c?.("link_account_no_microdeposit")},[]);const[S,P]=v.useState(!1),f=Se.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,B=Se.getLocalizedStrings().common.footer,te={onOkClick:()=>{P(!1),w.reset(),$()},onCancelClick:()=>{P(!1)}},ne=async(Q,W)=>{const G=W[Lt].bankRoutingNumber;h(W),Q===`${Lt}.bankRoutingNumber`&&G?.length===9&&Bo.test(G)===!0&&a?.(G)};v.useEffect(()=>{const Q=w.watch((W,{name:G})=>{G!=null&&W!=null&&Oo(()=>ne(G,W))});return()=>{Q.unsubscribe()}}),v.useEffect(()=>{e?.fetchState==="Completed"&&$()},[e?.fetchState,$,o]);const re=w.handleSubmit(Q=>{m.fetchState!=="In-Progress"&&T()}),K=d.mode==="light"?new Ln(d.colors.brandColorJadeLight):new Ln(d.colors.brandColorJadeDark);return t.jsxs(Cr,{children:[t.jsxs(Pr,{windowSize:y,children:[S===!0?t.jsx(pn,{titleComponent:t.jsx(hi,{children:f.discardTitle}),descriptionComponent:t.jsx(pi,{children:f.discardDescription}),primaryButtonText:f.buttons.delete,secondaryButtonText:f.buttons.cancel,action:te}):null,t.jsx(Zo,{header:f.addBankAccount,isDirty:w.formState.isDirty,onBackClick:$,setShowConfirmationPopup:P}),t.jsx(kr,{}),t.jsxs(Rr,{size:y,children:[t.jsx(Po,{onClick:()=>{w.reset(),A()},title:f.connectYourBank,subTitle:f.loginToBank,header:f.setupAchPayments,icon:{element:t.jsx(Ro,{width:Ne.iconWidthHeight.valuePx(y),height:Ne.iconWidthHeight.valuePx(y)}),color:K},style:{width:"unset",rowGap:y==="small"?n.sp2:void 0}}),t.jsxs(Ir,{windowSize:y,children:[t.jsx(Dr,{}),t.jsx(jr,{children:t.jsx(Or,{children:f.or})})]}),t.jsx(Tr,{windowSize:y,children:f.saveAccountManually})]}),t.jsx(Lr,{size:y,children:t.jsx(mi,{...w,children:t.jsxs("form",{id:Qn(Yn),onSubmit:re,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(Jo,{warningText:f.accountExistWarning}):null,t.jsx(Xo,{bankAccountToCreate:D,fetchBankNameByRoutingStatus:m,sectionId:Lt})]})})})]}),t.jsx(yi,{formId:Qn(Yn),primaryBtn:{label:f.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Ne.buttonWidth.value(y)},isDisabled:I!=null},cancelBtn:{label:B.cancel,style:{width:Ne.buttonWidth.value(y)},shouldResetOnCancel:!1,onClick:()=>{w.formState.isDirty?P(!0):(P(!1),w.reset(),$())}}})]})},Cr=i.div`
|
|
508
|
-
display: flex;
|
|
509
|
-
flex-direction: column;
|
|
510
|
-
width: 100%;
|
|
511
|
-
height: 100%;
|
|
512
|
-
`,kr=i.div`
|
|
513
|
-
margin: ${n.sp2} 0;
|
|
514
|
-
position: relative;
|
|
515
|
-
`,Ir=i.div`
|
|
516
|
-
margin: ${e=>Ne.orSeperatorTopBottomMargin.valuePx(e.windowSize)} 0;
|
|
517
|
-
position: relative;
|
|
518
|
-
`,Dr=i.div`
|
|
519
|
-
background: ${e=>e.theme.colors.grey2};
|
|
520
|
-
height: 1px;
|
|
521
|
-
`,Tr=i(Mo)`
|
|
522
|
-
color: ${e=>e.theme.colors.primary};
|
|
523
|
-
margin-bottom: ${e=>Ne.subTitleMarginbottom.valuePx(e.windowSize)};
|
|
524
|
-
`,jr=i.div`
|
|
525
|
-
display: flex;
|
|
526
|
-
justify-content: center;
|
|
527
|
-
`,Or=i(fn)`
|
|
528
|
-
background: ${e=>e.theme.colors.background};
|
|
529
|
-
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
530
|
-
border-radius: ${n.sp5};
|
|
531
|
-
width: 43px;
|
|
532
|
-
height: 25px;
|
|
533
|
-
display: flex;
|
|
534
|
-
align-items: center;
|
|
535
|
-
justify-content: center;
|
|
536
|
-
color: ${e=>e.theme.colors.grey1};
|
|
537
|
-
top: -11px;
|
|
538
|
-
position: absolute;
|
|
539
|
-
`,Pr=i.div`
|
|
540
|
-
display: flex;
|
|
541
|
-
flex-direction: column;
|
|
542
|
-
flex-grow: 1;
|
|
543
|
-
`,Rr=i.div`
|
|
544
|
-
padding-left: ${e=>Ne.paddingLeft.valuePx(e.size)};
|
|
545
|
-
padding-right: ${e=>Ne.paddingRight.valuePx(e.size)};
|
|
546
|
-
`,Lr=i.div`
|
|
547
|
-
padding-left: ${e=>Ne.paddingLeft.valuePx(e.size)};
|
|
548
|
-
padding-right: ${e=>Ne.paddingRight.valuePx(e.size)};
|
|
549
|
-
padding-bottom: ${n.sp3};
|
|
550
|
-
`,je={containerWidth:new s(343,544),confirmationPopUpTitleMarginTop:new s(l[6],l[7]),confirmationPopUpTitlePaddingLeftRight:new s(l[5],l[8]),submitButtonWidth:new s(145,156),cancelButtonWidth:new s(121,121),errorLineItemGap:new s(l[2],12),styledCloseIconRight:new s(l[3],l[8])},{footer:Xn}=Se.getLocalizedStrings().common,xe=Se.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,Zn=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(ei,{});case"In-Progress":return t.jsx(Ct,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(Ni,{});default:return t.jsx(ei,{})}},Ar=e=>{switch(e){case"Not-Started":return xe.detectDuplicates;case"In-Progress":return xe.detectingDuplicates;case"Completed":return xe.noDuplicatesFound;default:return xe.detectDuplicates}},zr=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:r,numberOfDuplicateLines:c,setShowDuplicatePopup:p,analytics:D,reimbursementId:m,submitReport:I,fetchDuplicateReimbursement:T,clearDuplicateReimbursementDetail:h,clearRemiSaveStatus:a})=>{const $=Ae(),[d,y]=Tt.useState(!0),w=un(e),O=un(o);Tt.useEffect(()=>{setTimeout(()=>{d&&(y(!1),o==="Not-Started"&&T())},2e3)},[o,T,d]),Tt.useEffect(()=>{w==="In-Progress"&&e==="Completed"&&(h(),p(!1))},[e,w,p,h]),Tt.useEffect(()=>{O==="In-Progress"&&o==="Completed"&&!r&&I()},[O,o,r,I]);const L=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[L?t.jsx(Br,{size:$}):null,t.jsx(pn,{action:{onOkClick:()=>{L?(h(),e==="Error"&&a(),y(!0)):(D?.trackReimbursementReviewDuplicateReportReimbursement(c,m),p(!1),$o())},onCancelClick:()=>{L?(h(),e==="Error"&&a(),p(!1)):(D?.trackReimbursementSubmitAnywayDuplicateReimbursement(c,m),I())}},shouldClickAway:L,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:L?Xn.resubmit:xe.primaryButtonText,secondaryButtonText:L?Xn.cancel:xe.secondaryButtonText,primaryButtonWidth:L?je.cancelButtonWidth.value($):je.submitButtonWidth.value($),secondaryButtonWidth:L?je.cancelButtonWidth.value($):je.submitButtonWidth.value($),descriptionComponent:t.jsx(Er,{size:$,children:t.jsxs(Mr,{hasDuplicate:r,duplicateReimbursementStatus:o,children:[t.jsxs(on,{isDisabled:!1,isSuccess:!d,children:[d?t.jsx(Ct,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}}):t.jsx(Ni,{}),t.jsx(nn,{isDisabled:!1,children:d?xe.reviewingExpenses:xe.reviewedAllExpenses})]}),r||o==="Error"?t.jsxs(ni,{size:$,children:[t.jsx(Jn,{}),t.jsx(ti,{children:o==="Error"?xe.failedToDetect:`${c} ${xe.duplicateExpensesFound}`})]}):t.jsxs(on,{isDisabled:o==="Not-Started",isSuccess:o==="Completed"&&c===0,children:[t.jsx(Zn,{fetchState:o}),t.jsx(nn,{isDisabled:o==="Not-Started",children:Ar(o)})]}),e==="Error"?t.jsxs(ni,{size:$,children:[t.jsx(Jn,{}),t.jsx(ti,{children:xe.failedToSubmit})]}):r||o==="Error"?null:t.jsxs(on,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(Zn,{fetchState:e}),t.jsx(nn,{isDisabled:e==="Not-Started",children:e==="Not-Started"?xe.submitReport:xe.submittingReport})]})]})}),titleComponent:t.jsx(Fr,{size:$,children:xe.title}),showFooter:r||L,containerStyle:{width:je.containerWidth.value($),maxWidth:"unset"}})]})},Br=i(fi)`
|
|
551
|
-
width: ${n.sp4};
|
|
552
|
-
height: ${n.sp4};
|
|
553
|
-
color: ${e=>e.theme.colors.hero};
|
|
554
|
-
position: fixed;
|
|
555
|
-
top: 19px;
|
|
556
|
-
right: ${e=>je.styledCloseIconRight.valuePx(e.size)};
|
|
557
|
-
z-index: 11;
|
|
558
|
-
cursor: pointer;
|
|
559
|
-
&:hover {
|
|
560
|
-
color: ${e=>e.theme.colors.primary};
|
|
561
|
-
}
|
|
562
|
-
`,Jn=i(Ao)`
|
|
563
|
-
width: ${n.sp4};
|
|
564
|
-
height: ${n.sp4};
|
|
565
|
-
min-width: ${n.sp4};
|
|
566
|
-
color: ${R.brandColorGoldDark};
|
|
567
|
-
`,ei=i(ea)`
|
|
568
|
-
width: ${n.sp3};
|
|
569
|
-
height: ${n.sp3};
|
|
570
|
-
min-width: ${n.sp3};
|
|
571
|
-
color: ${e=>e.theme.colors.grey3};
|
|
572
|
-
`,nn=i.div`
|
|
573
|
-
color: ${e=>e.isDisabled?e.theme.colors.grey2:e.theme.colors.primary};
|
|
574
|
-
text-align: left;
|
|
575
|
-
`,ti=i.div`
|
|
576
|
-
color: ${R.brandColorGoldDark};
|
|
577
|
-
`,on=i.div`
|
|
578
|
-
display: flex;
|
|
579
|
-
align-items: center;
|
|
580
|
-
gap: ${e=>e.isSuccess?n.sp2:n.sp3};
|
|
581
|
-
border: 1px solid
|
|
582
|
-
${e=>e.isDisabled?e.theme.colors.grey3:e.theme.colors.primary};
|
|
583
|
-
padding: ${n.sp3};
|
|
584
|
-
border-radius: ${n.sp2};
|
|
585
|
-
`,Mr=i.div`
|
|
586
|
-
display: flex;
|
|
587
|
-
flex-direction: column;
|
|
588
|
-
gap: ${n.sp3};
|
|
589
|
-
margin-bottom: ${e=>e.hasDuplicate||e.duplicateReimbursementStatus==="Error"?0:n.sp3};
|
|
590
|
-
`,ni=i.div`
|
|
591
|
-
display: flex;
|
|
592
|
-
align-items: center;
|
|
593
|
-
gap: ${e=>je.errorLineItemGap.valuePx(e.size)};
|
|
594
|
-
border: 1px solid ${e=>e.theme.colors.brandColorGold};
|
|
595
|
-
background-color: ${R.alertLight};
|
|
596
|
-
padding: ${n.sp3};
|
|
597
|
-
border-radius: ${n.sp2};
|
|
598
|
-
text-align: left;
|
|
599
|
-
`,Fr=i(gn)`
|
|
600
|
-
margin-top: ${e=>je.confirmationPopUpTitleMarginTop.valuePx(e.size)};
|
|
601
|
-
padding-left: ${e=>je.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
602
|
-
padding-right: ${e=>je.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
603
|
-
color: ${e=>e.theme.colors.primary};
|
|
604
|
-
word-break: break-word;
|
|
605
|
-
width: ${e=>e.size==="small"?"max-content":"-webkit-fill-available"};
|
|
606
|
-
`,Er=i(Si)`
|
|
607
|
-
color: ${e=>e.theme.colors.hero};
|
|
608
|
-
padding-left: ${e=>je.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
609
|
-
padding-right: ${e=>je.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
610
|
-
margin-bottom: ${n.sp5};
|
|
611
|
-
margin-top: ${n.sp4};
|
|
612
|
-
white-space: pre-line;
|
|
613
|
-
width: -webkit-fill-available;
|
|
614
|
-
`,Ni=i(Lo)`
|
|
615
|
-
width: ${n.sp4};
|
|
616
|
-
height: ${n.sp4};
|
|
617
|
-
min-width: ${n.sp4};
|
|
618
|
-
color: ${R.success};
|
|
619
|
-
`,ee={rightMargin:new s(l[3],l[8]),leftMargin:new s(l[3],l[6]),bottomMargin:new s(56,56),closeMarginTop:new s(0,19),closeMarginRight:new s(l[3],l[8]),rightSectionWidth:new s(100,58),leftSectionWidth:new s(100,42),footerButtonWidth:new s(120,165),right:new s(l[3],l[0]),actionsContainerRight:new s(l[0],l[6]),otherActionsContainerBottom:new s(58,44),duplicateBannerWrapperMarginTop:new s(l[5],l[3]),duplicateBannerWrapperMarginRight:new s(l[3],l[8]),duplicateBannerWrapperMarginBottom:new s(l[5],l[3]),duplicateBannerWrapperMarginLeft:new s(l[3],l[6]),navBarWidth:new s(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:x,bulkActions:ii}},common:{currency:{currencyCode:Ue,currencySymbol:Pt},texts:{comments:Nr},strings:{empty:Wr}},collaboration:{threads:{placeholder:{addANewComment:Ur,replyAComment:_r},tooltip:{resolveComment:Vr,unResolveComment:qr}}},dateFormat:oi}=Se.getLocalizedStrings(),ai="editReimbursementDetailPage",ri=e=>`${e}_form`,Hr=(e,o,r,c,p,D,m,I,T)=>{const h=e.outOfPocket,a=e.mileage,$=h.merchant,d=h.recommendations;return{lineIndex:D,lineId:e?.lineId??String(D+1),reimbursementType:e?.type??x.outOfPocketKey,file:e?.file,homeCurrencyConversions:{amount:e?.homeCurrencyConversions?.amount??0,currencyCode:e?.homeCurrencyConversions?.currencyCode??m.currencyCode,currencySymbol:e?.homeCurrencyConversions?.currencySymbol??m.currencySymbol},outOfPocket:{recommendedAccount:h.recommendedAccount,isCategoryUpdateSelected:h.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:h.isCategoryFirstTimeAutofilled??!1,retainedAccount:h.retainedAccount,isRetainedCategorySelected:h.isRetainedCategorySelected??!1,recommendations:d??[],transactionDate:h?.transactionDate?.toDate()??void 0,class:{allOptions:qe(Ye(r,[])),selectedOption:h?.lineDetail?.class?.classId??T},account:{allOptions:qe(Mt(o,d)),selectedOption:h.lineDetail?.account?.qboId??h.lineDetail?.account?.accountId},customer:{defaultOptions:An(h?.lineDetail?.customer),selectedOption:h?.lineDetail?.customer?.id},amount:{amount:h?.amount??0,currencyCode:h?.currencyCode??m.currencyCode,currencySymbol:h?.currencySymbol??m.currencySymbol,currency:{allOptions:I.map(y=>({label:`${y.currencyCode} - ${y.currency}`,value:y.currencyCode,countryCode:hn(y.countryCode)})),selectedOption:h?.currencyCode??m.currencyCode??Ue}},memo:h?.description??void 0,merchant:{allOptions:c.map(y=>y.id).filter(y=>!!y),selectedOption:$?.id?$?.id:$?.name?$?.name:e?.lineId!=null?p[e?.lineId]:void 0}},mileage:{transactionDate:a?.transactionDate?.toDate(),class:{allOptions:qe(Ye(r,[])),selectedOption:a?.lineDetail?.class?.classId},customer:{defaultOptions:An(a?.lineDetail?.customer),selectedOption:a?.lineDetail?.customer?.id},distanceInMiles:a?.distanceMileage?.value,amount:{amount:a?.amount??0,currencyCode:a?.currencyCode??m.currencyCode,currencySymbol:a?.currencySymbol??m.currencySymbol},memo:a?.description}}},an=(e,o,r)=>{const c=[];return Object.values(e.lineDetailSection).forEach((p,D)=>{p?.lineId!=null&&c.push(Hr(p,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,D,o,e.allCurrencies,e.loggedInUserDepartmentId))}),c.length===0&&c.push(Ei(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[Bt]:{reportTitle:e.whatForSection.reportTitle},[vn]:c,[vt]:{selectedOption:e.paymentTo,allOptions:r.map(p=>p.bankAccountId)}}},rn=(e,o)=>{const r=c=>c.lineId==null||o[c.lineId]?.fetchState==="In-Progress"?0:(o[c.lineId]?.fetchState,c.type===x.mileageKey?c?.mileage?.amount??0:c?.outOfPocket?.currencyCode!==Ue&&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)},ln=(e,o,r,c,p,D,m,I,T)=>{const h={};return e.lineInfo.forEach(a=>{const $=I.find(S=>S.classId===a.mileage.class.selectedOption),d=(()=>{const S=a.mileage.customer?.selectedOption;if(S==null)return;const P=T?.customer.find(B=>B.id===S);if(P!=null)return P;const f=a.mileage.customer?.defaultOptions?.find(B=>B.value===S);if(f!=null)return{id:f.value,name:f.label}})(),y=m.find(S=>S.qboId===a.outOfPocket.account.selectedOption||S.accountId===a.outOfPocket.account.selectedOption),w=I.find(S=>S.classId===a.outOfPocket.class.selectedOption),O=(()=>{const S=a.outOfPocket.customer?.selectedOption;if(S==null)return;const P=T?.customer.find(B=>B.id===S);if(P!=null)return P;const f=a.outOfPocket.customer?.defaultOptions?.find(B=>B.value===S);if(f!=null)return{id:f.value,name:f.label}})(),L=o.find(S=>S.id===a.outOfPocket.merchant.selectedOption),A=D.find(S=>S.currencyCode===a.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;h[a.lineId]={fileId:a.file?.fileId,lineId:a.lineId,type:a.reimbursementType,homeCurrencyConversions:a.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:a.mileage.memo??"",lineDetail:{class:$,customer:d},transactionDate:a.mileage.transactionDate!=null?at(a.mileage.transactionDate.toDateString()):void 0,amount:a.mileage.amount?.amount??0,currencyCode:a.mileage.amount?.currencyCode??A,currencySymbol:a.mileage.amount?.currencySymbol??A,distanceMileage:{unit:"miles",value:a.mileage.distanceInMiles??0}},outOfPocket:{description:a.outOfPocket.memo??"",lineDetail:{class:w,account:y,customer:O},transactionDate:a.outOfPocket.transactionDate!=null?at(a.outOfPocket.transactionDate.toDateString()):void 0,amount:a.outOfPocket.amount?.amount??0,currencyCode:a.outOfPocket.amount?.currency.selectedOption??A,currencySymbol:A,merchant:a.outOfPocket.merchant.selectedOption!=null?{id:L?.id??"",name:L?.name??a.outOfPocket.merchant.selectedOption}:void 0,recommendations:a.outOfPocket.recommendations,recommendedAccount:a.outOfPocket.recommendedAccount,isCategoryUpdateSelected:a.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:a.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:a.outOfPocket.isRetainedCategorySelected,retainedAccount:a.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:h,totalAmount:{amount:c,...r},currencyConversionStateByLineId:p,paymentTo:e.paymentTo.selectedOption}},li=({remiDetails:e,authParams:o,defaultCurrency:r,customerSearchAutoCompleteData:c,customerSearchAutoCompleteActions:p,companyMileageConfigInfo:D,uploadInvoiceEndPoint:m,isReimbursementCommentingEnabled:I,isUserAdmin:T,analytics:h,reimbursementId:a,plaidConnectionDetails:$,bankAccountCreationState:d,bankNameByRouting:y,bankAccounts:w,isSignedInUserReimbursementCreator:O,uncategorizedAccounts:L,bankAccountToCreate:A,fetchBankNameByRoutingStatus:S,onUserBankDetailsUpdated:P,onFetchBankName:f,onSaveBankAccount:B,fetchDuplicateReimbursement:te,clearDuplicateReimbursementDetail:ne,clearRemiSaveStatus:re,removeDuplicateReimbursementForLine:K,onDuplicateLineClick:Q,onExistingMerchantChange:W,onNewMerchantChange:G,onReceiptsUpload:V,saveRemiDetails:ue,submitRemiDetails:Pe,discardReimbursementDetailsFromLocalStore:j,onReimbursementDetailsChanged:ie,updateReimbursementType:U,onHomeCurrencyConversionUpdate:Ce,redirectToReimbursementListScreen:ke,redirectToReimbursementDetailScreen:se,deleteReimbursement:ce,removeFileFromLine:me,onZeniLogoClick:Re,onAmountChanged:ze,updateInvoiceUploadFetchState:Ie,clearTentativeNameForLine:pe,onAddNewRule:Le,onFetchLinkTokenClick:he,onEstablishConnectionClick:De,deleteBankAccount:Qe,onBackClickFromBankAccountPage:b,initialOpenThreadRequest:X})=>{const He=v.useRef(null),lt=v.useRef(null),Xe=un(e.uploadStatus),We=$t(),Be=yt(),[Ze,Me]=v.useState(!1),[Ke,Ge]=v.useState(!1),[Je,st]=v.useState("save"),[de,et]=v.useState(rn(e.lineDetailSection,e.currencyConversionStatus)),[oe,ct]=v.useState(!1),[M,ve]=v.useState(null),[Wt,dt]=v.useState(!1),E=`dashboard_${Be.currentTenant?.companyId}`,Fe=di({mode:"all",reValidateMode:"onChange",defaultValues:v.useMemo(()=>an(e,r,w),[e,r,w]),values:v.useMemo(()=>an(e,r,w),[e,r,w]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:Wi,dirtyFields:Ui}=Fe.formState,_i=async(g,k)=>{const{lineInfo:u}=k,C=Number(g.split(".")[1]);if(g.includes("reportTitle")||g.includes("memo"))return;if(g.includes("reimbursementType")){const F=u[C].mileage,_=u[C].outOfPocket;u[C]={...u[C],outOfPocket:{transactionDate:_.transactionDate??void 0,class:{allOptions:_.class.allOptions??qe(Ye(e.classHierarchyList,[])),selectedOption:_.class.selectedOption??void 0},account:{allOptions:_.account.allOptions??qe(Mt(e.accountsHierarchyList,[])),selectedOption:_.account.selectedOption??void 0},amount:_.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map($e=>({label:`${$e.currencyCode} - ${$e.currency}`,value:$e.currencyCode,countryCode:hn($e.countryCode)})),selectedOption:r.currencyCode??Ue}},memo:_.memo??void 0,merchant:_.merchant??void 0,recommendations:_.recommendations??[],recommendedAccount:_.recommendedAccount??void 0,isCategoryUpdateSelected:_.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:_.isCategoryFirstTimeAutofilled??!1,retainedAccount:_.retainedAccount??void 0,isRetainedCategorySelected:_.isRetainedCategorySelected??!1,customer:_.customer??void 0},mileage:{transactionDate:F.transactionDate??void 0,class:{allOptions:F.class.allOptions??qe(Ye(e.classHierarchyList,[])),selectedOption:F.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:F.distanceInMiles,amount:{amount:F?.amount?.amount??0,currencyCode:F?.amount?.currencyCode??Ue,currencySymbol:F?.amount?.currencySymbol??Pt},memo:F.memo??void 0,customer:F.customer??void 0}}}else if(g.includes("mileage.distanceInMiles")){const{distanceInMiles:F}=u[C].mileage,_=D?.mileageUnitAmount??0;u[C].mileage={...u[C].mileage,amount:{amount:F!=null?F*_:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(g.includes("outOfPocket.amount")&&u[C].lineId){const F=u[C].outOfPocket.amount,_=e.allCurrencies.find($e=>$e.currencyCode===F?.currency.selectedOption)?.currencySymbol;if(F?.currencyCode!==F?.currency.selectedOption){const $e=F?.currency?.allOptions||[];u[C].outOfPocket.amount={currency:{allOptions:$e,selectedOption:F?.currency?.selectedOption},amount:u[C].outOfPocket?.amount?.amount??0,currencyCode:F?.currency.selectedOption??Ue,currencySymbol:_??Pt}}if(F?.currency.selectedOption!==Ue)ct(!0),Zi(u[C].lineId,Ue);else{const $e={};u.forEach(Zt=>{$e[Zt.lineId]={lineId:Zt.lineId,homeCurrencyConversions:Zt.homeCurrencyConversions}}),u[C].homeCurrencyConversions={amount:F.amount??0,currencyCode:F?.currency.selectedOption??Ue,currencySymbol:_??Pt};const jn=rn($e,e.currencyConversionStatus);de!==jn&&et(jn)}}else if(g.includes("outOfPocket.isRetainedCategorySelected"))u[C].outOfPocket.isRetainedCategorySelected===!0&&(u[C].outOfPocket.isCategoryUpdateSelected=!1,u[C].outOfPocket.account.selectedOption=u[C].outOfPocket.retainedAccount?.qboId);else if(g.includes("outOfPocket.isCategoryUpdateSelected"))if(u[C].outOfPocket.isCategoryUpdateSelected===!0)u[C].outOfPocket.account.selectedOption=u[C].outOfPocket.recommendedAccount?.qboId,u[C].outOfPocket.isRetainedCategorySelected=!1;else{const F=u[C].lineId,_=e.editRemiInitialDetails.lineDetailSection[F]?.lineDetail?.account?.qboId;u[C].outOfPocket.account.selectedOption=_,u[C].outOfPocket.isRetainedCategorySelected=!1}else g.includes("outOfPocket.account")&&(u[C].outOfPocket.recommendations.length>0&&(u[C].outOfPocket.recommendedAccount=u[C].outOfPocket.recommendations[0].account),u[C].outOfPocket.recommendedAccount?.qboId!=null&&u[C].outOfPocket.account.selectedOption===u[C].outOfPocket.recommendedAccount?.qboId?u[C].outOfPocket.isCategoryUpdateSelected=!0:u[C].outOfPocket.isCategoryUpdateSelected=!1,u[C].outOfPocket.retainedAccount?.qboId!=null&&u[C].outOfPocket.account.selectedOption===u[C].outOfPocket.retainedAccount?.qboId?u[C].outOfPocket.isRetainedCategorySelected=!0:u[C].outOfPocket.isRetainedCategorySelected=!1,u[C].outOfPocket.isCategoryFirstTimeAutofilled=!1);const Dt=ln({...k,lineInfo:u},e.merchantList.merchants,r,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes,c?.entityAutoCompleteView);if(ie?.(Dt),g.includes("outOfPocket.merchant")){const F=u[C].lineId,_=u[C].outOfPocket.merchant.selectedOption??"";u[C].outOfPocket.merchant.allOptions.find($e=>$e===_)!=null?W(_,F):G(_,F)}},$n=v.useMemo(()=>On((g,k)=>_i(g,k),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);v.useEffect(()=>{const g=Fe.watch((k,{name:u})=>{u!=null&&k!=null&&$n(u,k)});return()=>{g.unsubscribe()}},[$n,Fe]),v.useEffect(()=>{const g=Ko(Object.values(e.currencyConversionStatus)),k=g.fetchState==="In-Progress"||g.fetchState==="Error";ct(k)},[e.currencyConversionStatus]),v.useEffect(()=>{for(const k in e.currencyConversionStatus){const u=e.lineDetailSection[k],C=e.lineDetailSection[k];e.currencyConversionStatus[k].fetchState==="Completed"&&C!=null&&u.type!==x.mileageKey&&!ui(u?.homeCurrencyConversions,C.homeCurrencyConversions)&&Ce({amount:u?.homeCurrencyConversions?.amount??0,currencyCode:u?.homeCurrencyConversions?.currencyCode??Ue,currencySymbol:u?.homeCurrencyConversions?.currencySymbol??Pt},k,a)}const g=rn(e.lineDetailSection,e.currencyConversionStatus);de!==g&&et(g)},[e.currencyConversionStatus,e.lineDetailSection]),v.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(j(a),ke?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,a,j,ke]);const z=Ae(),[Ee,bt]=v.useState(a==null),[ft,Vi]=v.useState(1),[qi,Ut]=v.useState(!1),[Hi,Ki]=v.useState(""),[_t,Gi]=v.useState(null),[Yi,ut]=v.useState(!1),[Qi,Cn]=v.useState(!1),[Vt,qt]=v.useState([]),[be,kt]=v.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),Ht=v.useRef(),Xi=(g,k)=>{p?.onAutoCompleteInputChange?.(g,"customer"),Ht.current=k},Zi=v.useRef(On((g,k)=>ze(g,k),500,{trailing:!0})).current;v.useEffect(()=>{c?.entityAutoCompleteView.fetchState==="Completed"&&(Ht.current?.(ho(c.entityAutoCompleteView)),Ht.current=void 0)},[c]),v.useEffect(()=>{Xe==="In-Progress"&&(e.uploadStatus==="Completed"?(Fe.reset(an(e,r,w),{keepDefaultValues:!0}),Me(!1),bt(!1)):e.uploadStatus==="Error"&&Me(!1))},[Xe,e.uploadStatus,Fe,e,Ze,Me,Ee,r,w,h]),v.useEffect(()=>{e.uploadStatus==="In-Progress"&&Ee===!1&&Me(!0)},[e.uploadStatus,Me,Ee]);const Kt=e.remiStage==="draft"?x.newReimbursementTitle:x.editReimbursementTitle,Ji={onOkClick:()=>{if(ut(!1),be.primaryButtonText===x.buttons.discard)j(a),e.remiStage==="draft"?ke?.():se?.();else if(be.primaryButtonText===x.buttons.delete)be.title===x.deleteBankAccountTitle?Qe?.(Hi):ce?.();else if(be.primaryButtonText===x.buttons.yes&&_t!=null){const g=Vt.filter(k=>k!==ft.toString());qt(g),V(_t,ft,!0)}},onCancelClick:()=>{if(ut(!1),be.secondaryButtonText===x.buttons.no){const g=Vt.filter(k=>k!==ft.toString());qt(g),V(_t,ft,!1)}}},kn=()=>{Wi||Io(Ui)?(kt({title:x.discardTitle,description:x.discardDescription,primaryButtonText:x.buttons.discard,secondaryButtonText:x.buttons.cancel}),ut(!0)):(j(a),ke?.())},eo=()=>{kt({title:e.remiStage==="draft"?x.deleteDraftTitle:x.deleteReportTitle,description:x.deleteAlertDescription,primaryButtonText:x.buttons.delete,secondaryButtonText:x.buttons.cancel}),ut(!0)},to=g=>{Ki(g),kt({title:x.deleteBankAccountTitle,description:x.deleteBankAccountDescription,primaryButtonText:x.buttons.delete,secondaryButtonText:x.buttons.cancel}),ut(!0)},no=()=>{kt({title:x.overwriteTitle,description:x.overwriteDescription,primaryButtonText:x.buttons.yes,secondaryButtonText:x.buttons.no}),ut(!0)},io=()=>{let g=!0;const k=[];return Object.values(e.lineDetailSection).forEach((u,C)=>{u.type===x.outOfPocketKey&&zi(u)>=75&&u.file==null&&(k.push(u.lineId),g=!1)}),qt(k),g},In=()=>{if(T&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")kn();else{st("save");const g=Fe.getValues(),k=ln(g,e.merchantList.merchants,r,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes,c?.entityAutoCompleteView);ie?.(k);const u=k.whatForSection?.reportTitle;u!=null&&u.length>0?ue(e.remiStatus==="rejected"?"pending_approval":"draft"):Fe.trigger(`${Bt}.reportTitle`,{shouldFocus:!0})}};let Gt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(g=>{g.length>0&&(Gt=!0)});let Dn=[];if(e.remiId==null){const g=de??0;g>0&&(Dn=e.approvalRules.allApprovalRules?.filter(k=>{const u=k.criteria[0].range;if(u.max!=null){if(u.min.amount<g&&u.max.amount>=g)return k}else if(u.min.amount<g)return k;return null}).map(k=>({...k,stepsWithStatus:k.steps.map(u=>({...u,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const oo=g=>{const k=io();return Fe.handleSubmit(()=>{k&&(st("submit"),h?.trackReimbursementSubmitReimbursement(e.createTime?.format(oi.analytics.MMMDashDDDashYYYYFormat)??Sn().format(oi.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,de,a),ne(),Cn(!0))})(g)},ao=()=>{const g=Fe.getValues(),k=ln(g,e.merchantList.merchants,r,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes,c?.entityAutoCompleteView);ie?.(k),Pe()},ro=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,lo=e.reimbursementInfo?.paymentDate!=null?at(ji(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,so=e.reimbursementInfo?.expectedDepositDate??lo,co=a!=null&&e.remiStage==="draft",Tn=Go(e.duplicateLineByLineId),Yt=e.duplicateReimbursementStatus.fetchState==="Completed"&&Tn>0,{requestToOpenThread:Qt,setRequestToOpenThread:It,setOpenThread:Xt}=v.useContext(go);v.useEffect(()=>{X?.threadId!=null&&X?.companyId!=null&&X?.entityType!=null&&It(X)},[X,It]);const{threads:xt,isLoading:tt}=yo();v.useEffect(()=>{Qt?.threadId!=null&&xt.length>0&&!tt&&(Xt(Qt.threadId),It(null))},[Qt,xt,tt,Xt,It]);const uo=v.useMemo(()=>a==null?[]:xt.filter(g=>g.resolved===!1&&!g.id.includes(bo)),[xt,a]).length,mo=(g,k)=>{Xt(k);const u=g.entityType.split("."),C=parseInt(u[2]);if(isNaN(C)){dt(!1);return}const Dt=`${C+1}`,F=e.lineDetailSection[C+1].type;u.includes(x.mileageKey)&&F===x.outOfPocketKey?U(En(x.mileageKey),Dt,a):u.includes(x.outOfPocketKey)&&F===x.mileageKey&&U(En(x.outOfPocketKey),Dt,a),dt(!1)};return t.jsx(Gr,{ref:He,children:t.jsx(fo,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:lt.current??null}},children:t.jsxs(mi,{...Fe,children:[t.jsx("form",{id:ri(ai),onSubmit:g=>oo(g),children:t.jsxs($l,{windowSize:z,ref:lt,children:[Yi?t.jsx(pn,{titleComponent:t.jsx(hi,{children:be.title}),descriptionComponent:t.jsx(pi,{children:be.description}),primaryButtonText:be.primaryButtonText,secondaryButtonText:be.secondaryButtonText,action:Ji,proceedButtonVariant:be.title===x.deleteBankAccountTitle||be.title===x.deleteDraftTitle||be.title===x.deleteReportTitle||be.title===x.discardTitle?"danger":"primary",isEditPopup:be.title===x.deleteBankAccountTitle}):null,Qi?t.jsx(zr,{reimbursementId:a,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:Yt,numberOfDuplicateLines:Tn,setShowDuplicatePopup:Cn,submitReport:ao,fetchDuplicateReimbursement:te,clearDuplicateReimbursementDetail:ne,clearRemiSaveStatus:re,analytics:h}):null,Ze?t.jsx(ci,{windowSize:z}):null,Ee?t.jsxs(ci,{windowSize:z,"data-testid":H("skip-autofill-section"),children:[z==="small"?t.jsxs(t.Fragment,{children:[t.jsx(rl,{children:t.jsx(dn,{partOfSkipAutoFill:!0,size:z,onClick:()=>bt(!1),"data-testid":H("close-invoice-upload"),children:t.jsx(cn,{withOverlay:!0,children:t.jsx(sn,{})})})}),t.jsx(sl,{children:Kt})]}):null,t.jsx(Pi,{showAutofill:Ee,analytics:h,onSkipAutofill:()=>{h?.trackReimbursementSkipAutofill(),bt(!1)},uploadInvoiceEndPoint:m,authParams:o,style:{width:ee.leftSectionWidth.valuePercentage(z),boxSizing:"border-box",backgroundColor:z==="small"?We.colors.grey4:"unset",padding:z==="small"?`${n.sp5} ${n.sp3}`:`78px ${n.sp6} 15px ${n.sp8}`,margin:z==="small"?n.sp0:void 0},onInvoiceUpload:g=>V(g,ft,!0),dropFilePlaceholder:{upload:x.dropReceipt.upload,single:x.dropReceipt.single,or:x.dropReceipt.or,multiple:x.dropReceipt.multiple,receipts:x.dropReceipt.receipts},updateInvoiceUploadFetchState:Ie,showInfoText:!1,allowMultiFiles:Ee,type:"reimbursement"}),z!=="small"?t.jsx(ll,{children:t.jsx(dn,{partOfSkipAutoFill:!0,onClick:()=>bt(!1),"data-testid":H("close-invoice-upload"),children:t.jsx(cn,{withOverlay:!0,children:t.jsx(sn,{})})})}):null]}):null,t.jsxs(fl,{windowSize:z,"data-testid":H("edit-reimbursement-detail-page-nav-bar-container"),children:[z!=="small"?t.jsx(Pn,{style:{width:"42%"},"data-testid":H("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(xl,{"data-testid":H("zeni-logo-spend-management-reimbursement-detail-page"),onClick:Re}),enableTitleOnScroll:!1,scrollableContent:He,backgroundColor:We.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,z!=="small"?t.jsx(Yr,{}):null,t.jsx(Pn,{style:{width:ee.navBarWidth.valuePercentage(z)},"data-testid":H("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:Kt,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Ee!=!0?t.jsxs(wl,{children:[I&&a!=null?t.jsxs(Sl,{isDisabled:tt,"data-testid":H("remi-comment-button"),onClick:tt?()=>null:g=>{g.preventDefault(),g.stopPropagation(),ve({roomId:E,companyId:Be.currentTenant?.companyId??"",companyName:Be.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:a}),dt(!0),h?.trackCommentActivity("reimbursement","clicked",Be.currentTenant?.companyName??"",Be.controllersList.controllers.map(k=>wo(k)),void 0,void 0,"page icon")},children:[t.jsx(xo,{count:tt?void 0:uo,isLoading:tt,style:{left:"12px"}}),t.jsx(vl,{})]}):null,t.jsx(dn,{size:z,onClick:()=>kn(),"data-testid":H("close-nav-bar"),children:t.jsx(cn,{withOverlay:!1,children:t.jsx(sn,{})})})]}):null,enableTitleOnScroll:z!=="small",scrollThreshold:64,scrollableContent:He,backgroundColor:We.colors.grey4})]}),z==="small"?t.jsxs(t.Fragment,{children:[t.jsx(bl,{children:Kt}),t.jsx(So,{progressSectionObj:ro,createDate:e.createTime,paymentDate:so,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:a!=null?!0:e.uploadStatus==="Completed"}),Gt&&t.jsxs(ul,{children:[t.jsx(dl,{}),t.jsx(ml,{children:x.banner})]}),e.isProcessing?t.jsx(gi,{variant:"warning",style:{margin:z==="small"?`${n.sp5} ${n.sp3}`:`${n.sp3} ${n.sp8} ${n.sp3} ${n.sp6}`},title:ii.duplicateWarning.title,description:ii.duplicateWarning.description}):Yt?t.jsxs(pl,{size:z,children:[t.jsx(Jr,{}),t.jsxs(gl,{children:[t.jsx(hl,{children:x.thereSeems}),t.jsx(yl,{children:x.pleaseFind})]})]}):null,t.jsx(Ai,{isReimbursementCommentingEnabled:I,sectionId:Bt,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(dr,{onDuplicateLineClick:Q,reimbursementId:a,remiDetails:e,uploadInvoiceEndPoint:m,authParams:o,showSkipAutoFill:Ee,setShowSkipAutoFill:bt,isReimbursementCommentingEnabled:I,isAutoFieldsExist:Gt,totalAmount:de,removeFileFromLine:me,onReplaceClick:no,onReceiptsUpload:V,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Vi,setUploadedReceiptPayload:Gi,updateInvoiceUploadFetchState:Ie,clearTentativeNameForLine:pe,defaultCurrency:r,companyMileageConfigInfo:D,isUserAdmin:T,setShowBankAccountPage:Ut,bankAccounts:w,onDeleteBankAccount:to,analytics:h,fileRequiredLineIds:Vt,isSignedInUserReimbursementCreator:O,uncategorizedAccounts:L,showTotalAmountLoader:oe,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:Yt,removeDuplicateReimbursementForLine:K,scrollContainerRef:He,customerSearchAutoComplete:c!=null?{customerSearchAutoCompleteData:c,loadOptions:Xi}:void 0}),t.jsxs(Cl,{showSkipAutoFill:Ee,windowSize:z,children:[z!=="small"?t.jsx(si,{}):null,t.jsx(kl,{windowSize:z,children:t.jsxs(Il,{windowSize:z,children:[e.remiId!==void 0&&t.jsx(Rn,{amount:de??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:Le,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&de!=null&&de>0?t.jsx(Rn,{amount:de??0,activities:Dn,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(Dl,{}),t.jsxs(cl,{showSkipAutoFill:Ee,windowSize:z,children:[z!=="small"?t.jsx(si,{}):null,t.jsx(Qr,{windowSize:z,onClick:g=>{g.stopPropagation(),Ke===!0&&Ge(!1)},children:t.jsx(yi,{formId:ri(ai),separatorStyle:{marginRight:n.sp4},showCancel:O,cancelBtn:{label:T&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?z==="small"?x.buttons.discard:x.buttons.discardChanges:z==="small"?x.buttons.save:x.buttons.saveChanges,isLoading:Je==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:In,style:{width:ee.footerButtonWidth.value(z)},reverseSpinnerColor:!1},primaryBtn:{label:Kr(O,T,e,z),isDisabled:!O,style:{width:O?ee.footerButtonWidth.value(z):"auto"},type:O?"submit":"button",onClick:O?()=>null:In,isLoading:!O&&Je==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Xr,{children:t.jsxs(il,{windowSize:z,children:[Ke?t.jsx(bi,{onClickAway:()=>Ge(!1),children:t.jsx(nl,{windowSize:z,"data-testid":H("remi-other-actions-container"),children:t.jsx(ol,{onClick:eo,"data-testid":H("delete-report-action"),children:x.buttons.deleteReport})})}):null,t.jsx(tl,{windowSize:z,children:co===!0?t.jsx(el,{windowSize:z,"data-testid":H("more-details-button"),children:t.jsx(Zr,{onClick:()=>Ge(!Ke)})}):null})]})}),style:{minHeight:62}})})]}),I&&a!=null?t.jsx(vo,{isDrawerOpen:Wt,allowComposer:!0,drawerTitle:Nr,threads:xt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:M?.companyId??Wr,isGlobalComment:!1,tab:"reimbursement"},isLoading:tt,threadMetadata:M?{companyName:M.companyName,companyId:M.companyId,entityId:M.entityId,entityType:M.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:Ur,replyComposerPlaceholder:_r,threadResolve:Vr,threadUnResolve:qr},onThreadClick:(g,k)=>mo(g,k),onCloseAllThreadsDrawer:()=>dt(!1),drawerSectionStyle:{width:"400px",backgroundColor:We.colors.background}}):null]})}),qi?t.jsx(al,{windowSize:z,children:t.jsx($r,{bankAccountCreationState:d,setShowBankAccountPage:Ut,plaidConnectionDetails:$,onFetchLinkTokenClick:he,onEstablishConnectionClick:De,onSaveHandler:B,bankAccountToCreate:A,bankNameByRouting:y,fetchBankNameByRoutingStatus:S,onUserBankDetailsUpdated:P,onFetchBankName:f,onBackClick:()=>{b(),Ut(!1)}})}):null]})})})},Yl=e=>{const o=yt().currentTenant?.companyId,{isReimbursementCommentingEnabled:r,reimbursementId:c}=e;if(!(r&&c!=null&&o!=null))return t.jsx(li,{...e});const p=`dashboard_${o}`;return t.jsx(po,{roomId:p,filter:{application:"dashboard",companyId:o,entityId:c,tab:"reimbursement",isGlobalComment:!1},children:t.jsx(li,{...e})})},Kr=(e,o,r,c)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?x.buttons.resubmit:x.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?c==="small"?x.buttons.discard:x.buttons.discardChanges:c==="small"?x.buttons.save:x.buttons.saveChanges,Gr=i.div`
|
|
620
|
-
position: relative;
|
|
621
|
-
height: 100vh;
|
|
622
|
-
overflow-y: scroll;
|
|
623
|
-
`,Yr=i.div`
|
|
624
|
-
position: fixed;
|
|
625
|
-
top: 0;
|
|
626
|
-
left: 42vw;
|
|
627
|
-
width: 100%;
|
|
628
|
-
height: 100vh;
|
|
629
|
-
background: transparent;
|
|
630
|
-
box-shadow: 0 2px ${n.sp1} ${({theme:e})=>e.colors.dropShadowNormal};
|
|
631
|
-
pointer-events: none;
|
|
632
|
-
z-index: 3;
|
|
633
|
-
`,Qr=i.div`
|
|
634
|
-
width: ${e=>ee.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
635
|
-
`,Xr=i.div`
|
|
636
|
-
display: flex;
|
|
637
|
-
justify-content: flex-end;
|
|
638
|
-
`,Zr=i(To)`
|
|
639
|
-
cursor: pointer;
|
|
640
|
-
color: ${e=>e.theme.colors.hero};
|
|
641
|
-
width: ${n.sp5};
|
|
642
|
-
height: ${n.sp5};
|
|
643
|
-
&:hover {
|
|
644
|
-
color: ${e=>e.theme.colors.primary};
|
|
645
|
-
}
|
|
646
|
-
`,Jr=i(Ho)`
|
|
647
|
-
width: ${n.sp4};
|
|
648
|
-
height: ${n.sp4};
|
|
649
|
-
color: ${R.brandColorGoldDark};
|
|
650
|
-
`,el=i.div`
|
|
651
|
-
display: flex;
|
|
652
|
-
margin-left: ${e=>e.windowSize==="small"?n.sp4:n.sp5};
|
|
653
|
-
cursor: pointer;
|
|
654
|
-
color: ${e=>e.theme.colors.grey1};
|
|
655
|
-
&:hover {
|
|
656
|
-
color: ${e=>e.theme.colors.primary};
|
|
657
|
-
}
|
|
658
|
-
`,tl=i.div`
|
|
659
|
-
display: flex;
|
|
660
|
-
justify-content: center;
|
|
661
|
-
align-items: center;
|
|
662
|
-
`,nl=i.div`
|
|
663
|
-
display: flex;
|
|
664
|
-
width: auto;
|
|
665
|
-
align-items: center;
|
|
666
|
-
justify-content: center;
|
|
667
|
-
flex-direction: column;
|
|
668
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
669
|
-
color: ${e=>e.theme.colors.hero};
|
|
670
|
-
cursor: pointer;
|
|
671
|
-
padding-top: ${n.sp1};
|
|
672
|
-
padding-bottom: ${n.sp1};
|
|
673
|
-
position: absolute;
|
|
674
|
-
bottom: ${e=>ee.otherActionsContainerBottom.valuePx(e.windowSize)};
|
|
675
|
-
z-index: 3;
|
|
676
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
677
|
-
border-radius: ${n.sp1};
|
|
678
|
-
right: ${e=>ee.right.valuePx(e.windowSize)};
|
|
679
|
-
box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.grey1} 3D`};
|
|
680
|
-
`,il=i.div`
|
|
681
|
-
width: 100%;
|
|
682
|
-
justify-content: flex-end;
|
|
683
|
-
position: ${e=>e.windowSize==="small"?"static":"relative"};
|
|
684
|
-
right: ${e=>ee.actionsContainerRight.valuePx(e.windowSize)};
|
|
685
|
-
height: 100%;
|
|
686
|
-
display: flex;
|
|
687
|
-
`,ol=i(fn)`
|
|
688
|
-
display: flex;
|
|
689
|
-
align-items: center;
|
|
690
|
-
width: -webkit-fill-available;
|
|
691
|
-
padding-left: ${n.sp3};
|
|
692
|
-
padding-right: ${n.sp3};
|
|
693
|
-
height: ${n.sp6};
|
|
694
|
-
box-sizing: border-box;
|
|
695
|
-
&:hover {
|
|
696
|
-
background-color: ${e=>e.theme.colors.background};
|
|
697
|
-
}
|
|
698
|
-
`,al=i.div`
|
|
699
|
-
overflow-y: auto;
|
|
700
|
-
z-index: 5;
|
|
701
|
-
height: 100vh;
|
|
702
|
-
position: fixed;
|
|
703
|
-
background: ${e=>e.theme.colors.grey4};
|
|
704
|
-
width: ${e=>ee.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
705
|
-
right: 0;
|
|
706
|
-
top: 0;
|
|
707
|
-
`,rl=i.div`
|
|
708
|
-
background: ${e=>e.theme.colors.grey4};
|
|
709
|
-
height: 44px;
|
|
710
|
-
display: flex;
|
|
711
|
-
align-items: center;
|
|
712
|
-
justify-content: end;
|
|
713
|
-
`,ll=i.div`
|
|
714
|
-
width: 58%;
|
|
715
|
-
`,sl=i(gn)`
|
|
716
|
-
padding: ${n.sp3} ${n.sp3} 0 ${n.sp3};
|
|
717
|
-
background: ${e=>e.theme.colors.grey4};
|
|
718
|
-
color: ${e=>e.theme.colors.primary};
|
|
719
|
-
`,cl=i.div`
|
|
720
|
-
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
721
|
-
width: 100%;
|
|
722
|
-
position: fixed;
|
|
723
|
-
bottom: 0;
|
|
724
|
-
z-index: 3;
|
|
725
|
-
`,si=i.div`
|
|
726
|
-
width: 42%;
|
|
727
|
-
`,dl=i(yn)`
|
|
728
|
-
color: ${e=>e.theme.colors.primary};
|
|
729
|
-
width: ${n.sp3};
|
|
730
|
-
height: ${n.sp3};
|
|
731
|
-
`,ul=i.div`
|
|
732
|
-
display: flex;
|
|
733
|
-
gap: ${n.sp2};
|
|
734
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
735
|
-
padding: ${n.sp3};
|
|
736
|
-
border-radius: ${n.sp2};
|
|
737
|
-
align-items: center;
|
|
738
|
-
margin: ${n.sp3};
|
|
739
|
-
`,ml=i.span`
|
|
740
|
-
color: ${e=>e.theme.colors.hero};
|
|
741
|
-
`,pl=i.div`
|
|
742
|
-
display: flex;
|
|
743
|
-
gap: ${n.sp2};
|
|
744
|
-
padding: ${n.sp3};
|
|
745
|
-
border-radius: ${n.sp2};
|
|
746
|
-
align-items: start;
|
|
747
|
-
margin-top: ${e=>ee.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
748
|
-
margin-right: ${e=>ee.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
749
|
-
margin-bottom: ${e=>ee.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
750
|
-
margin-left: ${e=>ee.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
751
|
-
background-color: ${R.alertLight};
|
|
752
|
-
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
753
|
-
`,hl=i(Nt)`
|
|
754
|
-
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
755
|
-
`,gl=i.div`
|
|
756
|
-
width: 100%;
|
|
757
|
-
`,yl=i(wn)`
|
|
758
|
-
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
759
|
-
`,bl=i(gn)`
|
|
760
|
-
letter-spacing: -0.02em;
|
|
761
|
-
color: ${e=>e.theme.colors.primary};
|
|
762
|
-
margin: ${n.sp3};
|
|
763
|
-
`,ci=i.div`
|
|
764
|
-
display: flex;
|
|
765
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
766
|
-
height: 100vh;
|
|
767
|
-
visibility: inherit;
|
|
768
|
-
width: 100%;
|
|
769
|
-
background-color: ${R.overlayDark};
|
|
770
|
-
z-index: 11; // This is to ensure that the skip autofill section is above the AI CFO icon whose value is 10
|
|
771
|
-
position: fixed;
|
|
772
|
-
`,fl=i.div`
|
|
773
|
-
z-index: 3;
|
|
774
|
-
min-height: 62px;
|
|
775
|
-
height: 62px;
|
|
776
|
-
display: flex;
|
|
777
|
-
align-items: center;
|
|
778
|
-
width: 100%;
|
|
779
|
-
justify-content: space-between;
|
|
780
|
-
position: fixed;
|
|
781
|
-
`,xl=i(Co)`
|
|
782
|
-
display: flex;
|
|
783
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
784
|
-
cursor: pointer;
|
|
785
|
-
width: ${n.sp4};
|
|
786
|
-
height: ${n.sp4};
|
|
787
|
-
`,sn=i(fi)`
|
|
788
|
-
cursor: pointer;
|
|
789
|
-
width: ${n.sp4};
|
|
790
|
-
height: ${n.sp4};
|
|
791
|
-
float: right;
|
|
792
|
-
color: inherit;
|
|
793
|
-
`,cn=i.div`
|
|
794
|
-
color: ${e=>e.theme.colors.hero};
|
|
795
|
-
&:hover {
|
|
796
|
-
color: ${e=>e.withOverlay?R.primaryDark:e.theme.colors.primary};
|
|
797
|
-
}
|
|
798
|
-
`,wl=i.div`
|
|
799
|
-
margin-top: ${e=>ee.closeMarginTop.valuePx(e.windowSize)};
|
|
800
|
-
display: flex;
|
|
801
|
-
float: right;
|
|
802
|
-
`,Sl=i.div`
|
|
803
|
-
display: flex;
|
|
804
|
-
align-items: center;
|
|
805
|
-
justify-content: center;
|
|
806
|
-
position: relative;
|
|
807
|
-
float: right;
|
|
808
|
-
cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
|
|
809
|
-
color: ${e=>e.theme.colors.hero};
|
|
810
|
-
&:hover {
|
|
811
|
-
color: ${e=>e.theme.colors.primary};
|
|
812
|
-
}
|
|
813
|
-
`,vl=i(ko)`
|
|
814
|
-
display: flex;
|
|
815
|
-
width: ${n.sp4};
|
|
816
|
-
height: ${n.sp4};
|
|
817
|
-
align-items: center;
|
|
818
|
-
justify-content: center;
|
|
819
|
-
`,dn=i.div`
|
|
820
|
-
margin-top: ${e=>e.partOfSkipAutoFill===!0?ee.closeMarginTop.valuePx(e.size):0};
|
|
821
|
-
margin-left: ${n.sp5};
|
|
822
|
-
margin-right: ${e=>e.partOfSkipAutoFill===!0?ee.closeMarginRight.valuePx(e.size):0};
|
|
823
|
-
`,$l=i.div`
|
|
824
|
-
display: flex;
|
|
825
|
-
flex-direction: column;
|
|
826
|
-
width: 100vw;
|
|
827
|
-
overflow-x: hidden;
|
|
828
|
-
background: -webkit-linear-gradient(
|
|
829
|
-
to right,
|
|
830
|
-
${e=>e.theme.colors.background} 42%,
|
|
831
|
-
${e=>e.theme.colors.grey4} 42%
|
|
832
|
-
);
|
|
833
|
-
background: -moz-linear-gradient(
|
|
834
|
-
to right,
|
|
835
|
-
${e=>e.theme.colors.background} 42%,
|
|
836
|
-
${e=>e.theme.colors.grey4} 42%
|
|
837
|
-
);
|
|
838
|
-
background: -o-linear-gradient(
|
|
839
|
-
to right,
|
|
840
|
-
${e=>e.theme.colors.background} 42%,
|
|
841
|
-
${e=>e.theme.colors.grey4} 42%
|
|
842
|
-
);
|
|
843
|
-
background: linear-gradient(
|
|
844
|
-
to right,
|
|
845
|
-
${e=>e.theme.colors.background} 42%,
|
|
846
|
-
${e=>e.theme.colors.grey4} 42%
|
|
847
|
-
);
|
|
848
|
-
${e=>e.windowSize==="small"&&`
|
|
849
|
-
background: ${e.theme.colors.grey4};
|
|
850
|
-
`}
|
|
851
|
-
min-height: 100vh;
|
|
852
|
-
`,Cl=i.div`
|
|
853
|
-
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
854
|
-
width: 100%;
|
|
855
|
-
margin-bottom: ${e=>ee.bottomMargin.valuePx(e.windowSize)};
|
|
856
|
-
`,kl=i.div`
|
|
857
|
-
width: ${e=>ee.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
858
|
-
`,Il=i.div`
|
|
859
|
-
margin-left: ${e=>ee.leftMargin.valuePx(e.windowSize)};
|
|
860
|
-
margin-right: ${e=>ee.rightMargin.valuePx(e.windowSize)};
|
|
861
|
-
`,Dl=i.div`
|
|
862
|
-
display: flex;
|
|
863
|
-
flex-direction: column;
|
|
864
|
-
height: ${n.sp11};
|
|
865
|
-
`;export{Yl as default,ri as uniqueName};
|