@zeniai/web-cockpit-ui 1.14.83-qa → 1.14.84-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-BXgsd50c-BuCiUEId.js +21 -0
- package/dist/assets/AIPerformancePage-BdDTidCL-D-IQ6p36.js +539 -0
- package/dist/assets/AccountInfoPage-w0STaK9a-BfMIBiEJ.js +18 -0
- package/dist/assets/AccountInfoPageContent-CsuUhHXU-DgiU-I5H.js +149 -0
- package/dist/assets/AccountLockedInfoModal-iYb31wv7-CEyp2zKM.js +59 -0
- package/dist/assets/AccountReconDetailsDrawerPage-DmkLTIkW-DxChexc_.js +239 -0
- package/dist/assets/AccountRow-BObEIy6l-CsCw-i7a.js +298 -0
- package/dist/assets/AccountsPromoCardStack-B8gJFsYh-DpzT8FNB.js +207 -0
- package/dist/assets/AddAddressForCardDrawer-vOgzMYWA-Bo72mQ01.js +6 -0
- package/dist/assets/AddToWalletPage-BhphXgem-DR4-yAJW.js +344 -0
- package/dist/assets/AgingReportsPage-DEgupWct-SJsZmYxE.js +79 -0
- package/dist/assets/AllUserItems-S2DAZpO6-Zcx2jN6k.js +192 -0
- package/dist/assets/ApAgingDetailPage-CvDD8-s7-k2W-N5me.js +46 -0
- package/dist/assets/AppBasePage-C4z5I-xG-vGdvNBYI.js +71 -0
- package/dist/assets/AppDrawerContent-Dka5HlPs-BfBKKeHh.js +91 -0
- package/dist/assets/ApprovalRulesSettingsPage-BOJE5Fb_-DykJvECT.js +47 -0
- package/dist/assets/ArAgingChart-CJ7XKU9h-BSixtgVA.js +24 -0
- package/dist/assets/ArAgingDetailPage-ZjaiAH-C-DY8qSTjK.js +46 -0
- package/dist/assets/AttachmentView-Dg6PizI7-BzoqKbZ4.js +101 -0
- package/dist/assets/BankAccountSection-Chay7X-G-vPiVizDl.js +79 -0
- package/dist/assets/BankAccountWarningSection-CSChi1lw-BVD5BCv3.js +51 -0
- package/dist/assets/BankConnectionsSettingsPage-DJV7q1Kp-DcUIdQZo.js +425 -0
- package/dist/assets/BillDetailPage-DM06uZnD-BOk9lw2_.js +266 -0
- package/dist/assets/BillPayApprovalRuleDetailPage-MsPIxgUt-r4h6U7BK.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-BCoXLnmv-DCVONktr.js → BillPayApprovalRulesPage-BhDdco2x-B1oZ9jjD.js} +27 -27
- package/dist/assets/BillPayPromoPage-Dy-opG76-CZ2iWLB7.js +84 -0
- package/dist/assets/BillPaySetUpPage-DUvwWlaD-Bg_qNGFx.js +42 -0
- package/dist/assets/BillingSettingsPage-wj_sIJgc-Dy0iglvP.js +44 -0
- package/dist/assets/BillsBulkReviewDrawerPage-DbC84oxR-CV4aNHIq.js +1 -0
- package/dist/assets/{BoxItem-B6Qj2tSj-J1Dptt9x.js → BoxItem-CdqDzfZN-BxmSstzM.js} +2 -2
- package/dist/assets/BusinessVerificationPage-BMtHNNcG-CKxF3KMp.js +138 -0
- package/dist/assets/CardNumberSubText-lh7fQJis-CKFkz1Hy.js +21 -0
- package/dist/assets/CashbackDetailPage-KRbsYA09-DzsJTodf.js +285 -0
- package/dist/assets/ChargeCardDetailPage--WP6KTfb-BgNGsK6v.js +1462 -0
- package/dist/assets/ChargeCardListPage-knAPmob6-CgVyQmJQ.js +412 -0
- package/dist/assets/ChargeCardListTable-DsfnKX3P-D0-TBhcC.js +711 -0
- package/dist/assets/ChargeCardPromoPage-C9610LtW-GRwSeJ82.js +222 -0
- package/dist/assets/ChargeCardSetupPage-Cy4JhjJW-BnQWcnli.js +36 -0
- package/dist/assets/ChargeCardStatementsPage-C7uS1jEO-7cO1LhgS.js +60 -0
- package/dist/assets/CheckDepositDrawerPage-TfiJwtqN-CwfCisTT.js +206 -0
- package/dist/assets/CollapsableReportTable-NYu8Bq-g-CCeLwwka.js +2844 -0
- package/dist/assets/CompanyOfficerDetailsSection-CiVliExW-DzmWuQm0.js +260 -0
- package/dist/assets/CompanyPassportCard-8zvCdmxt-CxjPiS1u.js +42 -0
- package/dist/assets/CompanyPassportPage-AS4N7oT2-Bv10VeId.js +574 -0
- package/dist/assets/CompleteProfile-Dj080UdJ-B2qMa6vk.js +52 -0
- package/dist/assets/ConfettiBurst-DcCUSSaX-yciACYT1.js +1 -0
- package/dist/assets/CreateOrEditVendorPage-flCFtC2N-Dsf2hlMT.js +281 -0
- package/dist/assets/CreditCardPaymentDrawerPage-BKvqMwnt-BuHB8ode.js +224 -0
- package/dist/assets/CurrencySelectField-ksMvik33-CjY_Sqhm.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-DPghXiES-BYZrYsLp.js → CustomerOnboardingActivationPage-DfT_gkE4-Dk7tFjjw.js} +12 -12
- package/dist/assets/CustomerOnboardingContainerPage-DZ9vkiEO-ah6dg727.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DImhzWZN-Cc3W2piF.js → CustomerOnboardingDetailPageSkeleton-DfOtXgss-1gud75px.js} +26 -26
- package/dist/assets/CustomerOnboardingNoStepsPage-61UorFvn-DF0b8zE7.js +66 -0
- package/dist/assets/CustomerOnboardingPage-C12XXjv0-mi5gJ6u3.js +107 -0
- package/dist/assets/CustomerOnboardingProductSuitePage-CTowHB2X-DUFAd8wB.js +202 -0
- package/dist/assets/Dashboard-2RpETnqH-Dgva4ZAW.js +1551 -0
- package/dist/assets/DashboardReportPage-DRRWpGiJ-Z6RP-3ZH.js +371 -0
- package/dist/assets/DashboardSidebarBackgroundAnimation-0cCKM3E9-DV5Ukn4W.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-C36JnddA-BuRFl8Tj.js → DepositAccTransactionItem-DjbheijR-B7o468tr.js} +11 -11
- package/dist/assets/DepositAccTransactionListPage-keSFBKDU-qnysSla9.js +66 -0
- package/dist/assets/DomesticWireDetailsPage-DuKrVIAL-BzRIhYO3.js +21 -0
- package/dist/assets/DownloadOverlay-f6SOW8iK-DORigjXi.js +439 -0
- package/dist/assets/{DrawerPage-BdYS_9Mt-Bc1McCUH.js → DrawerPage-BkIQ6mLJ-DU9u6eQ0.js} +21 -21
- package/dist/assets/EditPeoplePage-lZcM4Zfw-CzhpHcfF.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-WO3U-vVY-CTjbkhIP.js +865 -0
- package/dist/assets/EntityDetailPage-AP27Niqu-DwUEbyHL.js +18 -0
- package/dist/assets/EntitySummarySection-B6khdAJg-7W3j7WRI.js +149 -0
- package/dist/assets/ExpenseAutomationOverviewPage-CcTGou9x-D6xWlI6r.js +281 -0
- package/dist/assets/ExpenseAutomationPage-DEleaYKs-SFko_-SO.js +1650 -0
- package/dist/assets/ExpressPayPage-CLYzefaM-CHfIN-TO.js +168 -0
- package/dist/assets/{FeaturePreviewPage-Brau5064-B6gubfR5.js → FeaturePreviewPage-T78A34---Cfgg_jhN.js} +4 -4
- package/dist/assets/FollowStepsSection-B_mTbqHf-CcoWV2SW.js +390 -0
- package/dist/assets/GlobalReviewListPage-XfxDC9vP-Bi-7QMiL.js +291 -0
- package/dist/assets/InformationCardStack-Buibt8cT-DzjFUhjp.js +31 -0
- package/dist/assets/InsightsCardStack-Cj5iIm_T-CnLFxYVI.js +79 -0
- package/dist/assets/InsightsSection-DuPqQb5Z-C8m7clcN.js +27 -0
- package/dist/assets/IntegrationsSettingsPage-VZDSLMHK--2kEd_Ab.js +57 -0
- package/dist/assets/InternationalWireSwiftDetailsPage-BUa1svL--BjPRjytS.js +171 -0
- package/dist/assets/InternationalWireVerificationPage-C1qKNhqJ-D8-rYzvp.js +292 -0
- package/dist/assets/InviteFormPage-GPXu2hLn-Dlxczoo1.js +312 -0
- package/dist/assets/InvitePageListView-FEFeEFZJ-fGYpyL6r.js +739 -0
- package/dist/assets/InvitePeoplePage-C6E594rf-DZBpEScz.js +12 -0
- package/dist/assets/InvoiceUploadSection-uvB-_dyl-BnrUYuvf.js +140 -0
- package/dist/assets/IssueChargeCardPage-DSPlu840-3aXsgWJG.js +532 -0
- package/dist/assets/LabeledAddressValue-CzDn9ZY4-bnEz1Jxt.js +49 -0
- package/dist/assets/LabeledAddressValueField-C_8kPzjy-5OUHMeqd.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-LwfkGeF--D4JaYe7v.js +16 -0
- package/dist/assets/LabeledCreatableSingleSelectField-sEf-9BOE-pPbJFdXC.js +204 -0
- package/dist/assets/LabeledDocumentField-rGzXpShn-Cfh7MC5-.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-CIQk7Jhu-BODJHkfO.js +59 -0
- package/dist/assets/{LabeledText-iHeu8MCf-GFbIBet5.js → LabeledText-Dc-697nR-dyJ4TshB.js} +10 -10
- package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-B0D7IWfA-CLizobZu.js +229 -0
- package/dist/assets/LabeledZeniRolesDropDownField-BO8f1yqV-POb2k_D_.js +297 -0
- package/dist/assets/LinkJETransactionPage-DDSo8zJn-CupLOAYQ.js +98 -0
- package/dist/assets/LockCardPage-CvZcUUc8-B6VLJ-gr.js +623 -0
- package/dist/assets/LowBalancePopup-DJQCz0Ed-B8IDUNee.js +34 -0
- package/dist/assets/MagicLinkACHDetailsPage-CEtaoWk8-CST49L9m.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-qdgMQR3_-DWvT9O1j.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DNwtPZ-u-Bk0G3IwE.js +1 -0
- package/dist/assets/MagicLinkSuccessPage-60TBVrSw-CKgQ4p6j.js +31 -0
- package/dist/assets/MagicLinkTitleSection-D2fXbnDV-CA6SEdmn.js +17 -0
- package/dist/assets/MailingDetailsSection-C6cVooC3-CCSD5vtq.js +21 -0
- package/dist/assets/{Menu-pyYbFxsT-BjDDhfv4.js → Menu-D_6Dje0H-Ar5SwcnV.js} +4 -4
- package/dist/assets/MyBankConnectionsSettingsPage-D2EPH9WZ-DhQP4OT2.js +110 -0
- package/dist/assets/MyPendingActivationChargeCardListPage-Bidsd2bk-DJBBvD6g.js +6 -0
- package/dist/assets/MyProfileSettingsPage-BH2ZVQTk-DMG3qFrn.js +85 -0
- package/dist/assets/NavBarWithPicker-Cg2TZjBi-DZVc5NBz.js +30 -0
- package/dist/assets/NavigationArrow-CYserS2B-DdYPXfvg.js +47 -0
- package/dist/assets/{NavigationDots-DO5y6mdV-CX8opgkb.js → NavigationDots-CT_oO_7z-Bt9KzB5Z.js} +3 -3
- package/dist/assets/NewGlobalMerchantPage-D3MQU5Sh-BUpZMSnV.js +160 -0
- package/dist/assets/{NoDataChart-C0lCeeVH-DA9wYEab.js → NoDataChart-BItQZAQ9-a5HKjWqu.js} +5 -5
- package/dist/assets/NoDataTable-R8OCdB2c-cDhvp6Rg.js +8 -0
- package/dist/assets/{NotFoundPage-DGkjOhKP-_tY2chCo.js → NotFoundPage-DLHYdRdN-xXzpa00n.js} +9 -9
- package/dist/assets/NotificationSettingsPage-CIwxb6c9-FsYdgXX7.js +163 -0
- package/dist/assets/NotificationsListConfig-DSgUS0hE-mwmsOI0p.js +1 -0
- package/dist/assets/NotificationsPage-W5ZhprRe-DZn-eWsJ.js +685 -0
- package/dist/assets/OpExByVendorPage-DIi58wXa-nKCVWs3g.js +100 -0
- package/dist/assets/OverlayContainerPage-BsY9_22w-CFGZ7LWs.js +11 -0
- package/dist/assets/PandLWithForecastPage-BvMxFrqo-D4f9n7Zm.js +107 -0
- package/dist/assets/PaymentAccountSetupBillingAddressSection-kUAm-v-A-BSna9XIu.js +107 -0
- package/dist/assets/PeoplePage-CtnWc0LE-B3_lhERY.js +675 -0
- package/dist/assets/Preview-Bnbo8Nq1.js +1 -0
- package/dist/assets/ProductsCarousel-n0ZNrr7--DQIbkMZp.js +142 -0
- package/dist/assets/{PromoBaseCards-38oPeuBR-B0H8TJQa.js → PromoBaseCards-CeS0HoCZ-CICve0tH.js} +25 -25
- package/dist/assets/QBOConnectionDialog-BxSTc99Z-DVq4lO-s.js +51 -0
- package/dist/assets/QBOSetupSection-FrO9rgct-B0n-bnvz.js +79 -0
- package/dist/assets/ReimbursementApprovalRuleDetailPage-BjtdatXs-DvpYlYpI.js +26 -0
- package/dist/assets/ReimbursementApprovalRulesPage-B0_FgpJf-BSGUtiNs.js +237 -0
- package/dist/assets/ReimbursementDetailPage-BWhPxHY--DgkbtFUt.js +314 -0
- package/dist/assets/ReimbursementPromoPage-CFG0yxOE-CNHt16Bv.js +84 -0
- package/dist/assets/ReimbursementSetUpPage-BmUdLEa9-uEaDyTyL.js +140 -0
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-CkJqhXEf-B4qPeVNR.js +1 -0
- package/dist/assets/ReloadCard-CNKwqjPJ-C6w7GHJG.js +26 -0
- package/dist/assets/ReportTableViewSelector-B0DXgLgJ-B3X9gS-3.js +150 -0
- package/dist/assets/ReportsPage-C5iOQU55-DamkEztw.js +121 -0
- package/dist/assets/RevenueChart-C2CMFAQ--BirLMW85.js +280 -0
- package/dist/assets/ReviewDetailsPage-5vOZ0rd7-B41AzmWH.js +290 -0
- package/dist/assets/ReviewOverlay-BAG_6iyV-B2w-MEIV.js +152 -0
- package/dist/assets/RoleWithToolTip-GUYLjJwW-DVSFtUus.js +22 -0
- package/dist/assets/ScheduleDetailsFixedAssetsPage-sPjMfOtt-m5JvZNFh.js +37 -0
- package/dist/assets/ScheduleDetailsPage-DI4C0o6b-B7Dooc-N.js +37 -0
- package/dist/assets/ScheduleSequenceTable-DhXwtG-x-C20E6-vV.js +324 -0
- package/dist/assets/ScreenRoutes-B_yySVlk.js +201 -0
- package/dist/assets/{SetUpAccountSection-DQMufunh-CK9nyz6l.js → SetUpAccountSection-DOavnCkG-CmcaONdQ.js} +87 -87
- package/dist/assets/SignIn-DqrG5nEJ-8MVRrbiA.js +448 -0
- package/dist/assets/SignInScreen-CSh4OzXN.js +1 -0
- package/dist/assets/SpendManagementListViewPage-DHY_hZQm-C3jihmoK.js +123 -0
- package/dist/assets/SpendManagementPerTabPage-CoKTIQ2b-D2j2J6zW.js +754 -0
- package/dist/assets/SpendManagementSection-UkTY6qX0-CST6kY6m.js +230 -0
- package/dist/assets/StatementItem-Bx6mxa3U-C42zKfqY.js +31 -0
- package/dist/assets/StatementsPage-ULjFE30P-BGU6QX6B.js +58 -0
- package/dist/assets/{StatusSwitcher-BFs1Anoq-DpyTt46Q.js → StatusSwitcher-DlBY_FC1-C1Bsm00T.js} +8 -8
- package/dist/assets/SubTabSwitcher-DjEElTWE-5Wo1Obau.js +58 -0
- package/dist/assets/SummaryCard-BNESDUnN-ChwTCNZM.js +1 -0
- package/dist/assets/TaskManagementPage-BFF3ATPV-BYvPz4hv.js +508 -0
- package/dist/assets/TimeRangeSwitcher-xILz-EO6-DqqNb5IN.js +64 -0
- package/dist/assets/TimeframeSwitcher-CZhQm7rH-D5h04PEF.js +31 -0
- package/dist/assets/TimeframeSwitcherWithToggle-CduB3ZjN-PiqhKHhY.js +31 -0
- package/dist/assets/TopExCard-C_HWsAL1-DphCzqA5.js +38 -0
- package/dist/assets/TopExDetailPage-BEKo6juU-CUrrRqCk.js +132 -0
- package/dist/assets/TransactionDetailPage-Bzgtmi3U-DCXvClem.js +912 -0
- package/dist/assets/TransactionList-Dw78Q0Sx-BHAN7axA.js +147 -0
- package/dist/assets/TransactionListBig-BofakL17-k36ZTqo_.js +284 -0
- package/dist/assets/TransactionListPage-tpOg0ax5-aeL9weeE.js +35 -0
- package/dist/assets/TransactionVendorDetailPage-BqIcXz6b-tGgvKqD0.js +80 -0
- package/dist/assets/TransferDrawerPage-DnnZBOyK-y1PDtTFY.js +362 -0
- package/dist/assets/TreasuryOverviewPage-C9ROzNHl-Cn6eazlN.js +708 -0
- package/dist/assets/TreasuryPromoPage--j_2YjQn-DHIwXCO0.js +505 -0
- package/dist/assets/TreasuryStatementsPage-BLrceDQm-vMicHzmk.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-BoqkgdLm-DAQeQUTC.js +58 -0
- package/dist/assets/TrendChart-KnFi8NXQ-DHzaDtQY.js +16 -0
- package/dist/assets/TrendWithTransactions-C_T0I9xe-DqS7m8LH.js +116 -0
- package/dist/assets/UncategorizedAccountsMappingPage-DOuzy2aS-DnfCgWVE.js +244 -0
- package/dist/assets/UnitIntegrationPage-DxhlNHvt-CHN5Qw88.js +67 -0
- package/dist/assets/UploadAdditionalDocumentOverlay-BAvSyhDW-D4KE1Kke.js +38 -0
- package/dist/assets/Vendor2FAPopup-BFjVFON8-Dl6jzAdP.js +1 -0
- package/dist/assets/VendorACHDetailsPage-8BG5DD-0-p3vm6zDD.js +1 -0
- package/dist/assets/VendorDetailPage-C16CrNJo-D86vTvj2.js +257 -0
- package/dist/assets/VendorDomesticWireDetailsPage-DXhugXZa-DeVAnksE.js +1 -0
- package/dist/assets/VendorFiling1099EditablePage-2QPpdbuN-ozpxZwEp.js +175 -0
- package/dist/assets/VendorFirstReviewPage-DLshEh_s-DbpLTolM.js +730 -0
- package/dist/assets/VendorInternationalWireDetailsPage-_WoNgw66-DANrlPFU.js +152 -0
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-Dyt1ZPOh-DoVwF0sT.js +1 -0
- package/dist/assets/{VendorsAccountsSection-tcJAh1A7-Dj7jjfw5.js → VendorsAccountsSection-Dxq0YSgP-Bt8xoh_f.js} +8 -8
- package/dist/assets/VerifyDevice-DEwEqoHA-CylVN9FP.js +112 -0
- package/dist/assets/VideoPlayer-_1Msrww9-DaiS1R42.js +78 -0
- package/dist/assets/{VideoPopup-CPW65Ljn-DMNmv8U3.js → VideoPopup-BzQ_Dl9b-mwrODjDA.js} +4 -4
- package/dist/assets/WarningsDrawerPage-CMBST3p1-ujIyTaCb.js +92 -0
- package/dist/assets/ZeniAccountDetailPage-DVLYYC-q-DeZb5ud9.js +300 -0
- package/dist/assets/ZeniAccountListViewPage-BHkoMOx5-CtDb7Bzx.js +441 -0
- package/dist/assets/ZeniAccountNavBarPieces-CCFzNOcx-CuAvs6Mv.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-C0xo5aaW-D7P5Lhzj.js → ZeniAccountPromoPage-C3Rl-hWL-DwIvVxTo.js} +42 -42
- package/dist/assets/ZeniAccountSetupPage-Bf1OOF0Q-DBu-8Ie5.js +36 -0
- package/dist/assets/ZeniCopyright-CdqD8vO4-DYRLQn9Q.js +1 -0
- package/dist/assets/ZeniTransferAmountSlider-BTudpQjV-CvoGRB0t.js +63 -0
- package/dist/assets/{add-to-wallet-D7W5Y5Hm-zBGkMLf1.js → add-to-wallet-DgdBD8_G-CmJT13gp.js} +1 -1
- package/dist/assets/agingReportHelper-ovKP-qSS-BPG0U4uX.js +1 -0
- package/dist/assets/{analytics-CeQu-r45.js → analytics-zoE7Zcxt.js} +1 -1
- package/dist/assets/{analyticsHelper-C19sEVMv.js → analyticsHelper-D23HZgYu.js} +1 -1
- package/dist/assets/analyticsHelper-_u1yj9ge-DxpjUhrt.js +1 -0
- package/dist/assets/{arrow-south-east-round-D5pI7KCC-DyTRFc-f.js → arrow-south-east-round-PEovUgvH-7DsZUZDF.js} +1 -1
- package/dist/assets/{auto-transfer-rule-D1bNopxW-BXcmbJh5.js → auto-transfer-rule-mbafm5D3-iFkTgScT.js} +1 -1
- package/dist/assets/chartTypes-vQ8GTDEq-DTt3gea6.js +1 -0
- package/dist/assets/commonDimensions-znFHURNY-BydE4i8M.js +1 -0
- package/dist/assets/{core-tlHkQPPu.js → core-3dlyNYRL.js} +13 -13
- package/dist/assets/dash.all.min-Ba2vGpbn.js +21 -0
- package/dist/assets/detailCommon-DmLhlrjU-ShYTQ7m2.js +38 -0
- package/dist/assets/downloadPdf-CCUPfpyu-Cq1M0ik1.js +1 -0
- package/dist/assets/empty-CnIz-OQ7.js +1 -0
- package/dist/assets/empty-DeBX16Fq.js +1 -0
- package/dist/assets/{epic-CxjM8IKD.js → epic-vmWV05sm.js} +1 -1
- package/dist/assets/{getReferrerType-D1egX4iL-cWt5sFuQ.js → getReferrerType-DjPOy76W-Cm31g4vJ.js} +1 -1
- package/dist/assets/{gift-box-DZx81G9E-DbnUGiwi.js → gift-box-Cmt9OgIZ-CvUdutGd.js} +1 -1
- package/dist/assets/{graphic-no-data-l-CfhD7tYw-SmhQgAdh.js → graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-BWv8w-Qm-31atyJKo.js → graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js} +1 -1
- package/dist/assets/{handshake-D4b9T-E0-BvZJz7M_.js → handshake-BPg58FML-D7G7L1P7.js} +1 -1
- package/dist/assets/hls-BA0yQjS5.js +40 -0
- package/dist/assets/index-A3ojUHL_.js +1 -0
- package/dist/assets/index-BQbbCzKZ.js +1 -0
- package/dist/assets/index-CHOIEdDW.js +1 -0
- package/dist/assets/index-DQmBF4-D.js +3310 -0
- package/dist/assets/index-XNBiWrYj.js +29300 -0
- package/dist/assets/index-jNlf8Zjb.js +1 -0
- package/dist/assets/index-t8y498Dk.css +1 -0
- package/dist/assets/lexical-DPEnH3HH.js +21 -0
- package/dist/assets/{liveblocks-BrzOBACZ.js → liveblocks-DIep7fJd.js} +1 -1
- package/dist/assets/lottie-DEE24l2z.js +9 -0
- package/dist/assets/mapLoadingInProgressToTreeNode-Cw74bTou-BDMlWcL7.js +1 -0
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-CWFxnMpB-BCzyYlDf.js +1 -0
- package/dist/assets/mapSpacerToTreeNode-JUrBuZAz-wZclqNi-.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-B2iYfeF3-B53qunPl.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CreSrgeo-DJ7qRU6g.js → mapTimeframeBalancesToTreeNode-BbQHYZk7-DpCyCcLg.js} +1 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BeqGSN9x-CoS9pLIE.js +1 -0
- package/dist/assets/mixin-D3UDm--6.js +43 -0
- package/dist/assets/mui-bYXq4XMS.js +25 -0
- package/dist/assets/{page-detail-L_-1iNMr-DCxtcaOg.js → page-detail-CWX5S47F-Bc8Xpsuq.js} +1 -1
- package/dist/assets/{radio-default-H1PowEcP-lvG8v5I_.js → radio-default-CiSgisfh-Clpw2LWj.js} +1 -1
- package/dist/assets/react-B5y9n_ef.js +17 -0
- package/dist/assets/react-B84192hO.js +32 -0
- package/dist/assets/react-BpmEXSTM.js +27 -0
- package/dist/assets/react-BuvI16A0.js +37 -0
- package/dist/assets/react-BvHTyLQY.js +29 -0
- package/dist/assets/react-CA3XI5Yc.js +16 -0
- package/dist/assets/react-Cz0zQhlY.js +31 -0
- package/dist/assets/react-Egsc5mMa.js +44 -0
- package/dist/assets/recharts-BHhx6CLo.js +73 -0
- package/dist/assets/{sentry-Dhk5jNhq.js → sentry-o6h_D-9x.js} +2 -2
- package/dist/assets/{shield-E_rJ2OWj-kTEIYW8Q.js → shield-DOlUxcFf-BXuToJ7O.js} +1 -1
- package/dist/assets/toCOABalancesWithID-DeZfEmbT-vM-pgltN.js +1 -0
- package/dist/assets/toChartData-KibzV7pa-DRJVLoY0.js +1 -0
- package/dist/assets/{transaction-placeholder-BDef7K0p-Dqvh6We2.js → transaction-placeholder-CpOwZAMG-0pwHfQC6.js} +1 -1
- package/dist/assets/types-DyvtCprH-BcZYcgaq.js +1 -0
- package/dist/assets/uploadAttachment-U9nX0Ka9-1qW3wdO3.js +286 -0
- package/dist/assets/uploadReceipts-CDPM7zcb-DEOGBGdq.js +1 -0
- package/dist/assets/url-BdYIjepo.js +1 -0
- package/dist/assets/url-BxQKeS2R.js +6 -0
- package/dist/assets/useLongPress-GCK2COYQ-8uipnze8.js +1 -0
- package/dist/assets/{usp-line-4JsxsMjK-mCxwNowe.js → usp-line-BBd1wKwW-ClwDS-nj.js} +1 -1
- package/dist/assets/utils-uDUqNRFY.js +70 -0
- package/dist/assets/{zeni-epic-state-Bo1aGezX.js → zeni-epic-state-LPACxnXP.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/ACHDetailsPage-StkGXn1c-QVuWqUed.js +0 -21
- package/dist/assets/AIPerformancePage-cGtd6TYJ-QRKa4AxL.js +0 -539
- package/dist/assets/AccountInfoPage-BnHC_Y3E-B72E7e0X.js +0 -18
- package/dist/assets/AccountInfoPageContent-9hQV-QKt-R-xf6NE9.js +0 -149
- package/dist/assets/AccountLockedInfoModal-BS5pz9ze-vd3nemno.js +0 -59
- package/dist/assets/AccountReconDetailsDrawerPage-D_348I-1-BgIx6Bmu.js +0 -239
- package/dist/assets/AccountRow-DbyUdPZG-kPApYWvO.js +0 -298
- package/dist/assets/AccountsPromoCardStack-CeGcTU8h-nrGLKwQX.js +0 -207
- package/dist/assets/AddAddressForCardDrawer-D5EnX225-DlgrCRko.js +0 -6
- package/dist/assets/AddToWalletPage-D45TGyNS-DpxcbTMf.js +0 -344
- package/dist/assets/AgingReportsPage-Cxe-3oBx-BdtauDu4.js +0 -79
- package/dist/assets/AllUserItems-Cc_-o3gE-Dj-vsTnw.js +0 -192
- package/dist/assets/ApAgingDetailPage-DoaKW48m-B9QImbCC.js +0 -46
- package/dist/assets/AppBasePage-BUE60uZt-C6OIIfvZ.js +0 -71
- package/dist/assets/AppDrawerContent-P20acbi4-DSZQpDPf.js +0 -91
- package/dist/assets/ApprovalRulesSettingsPage-C5KUTjie-BG0_ZC6k.js +0 -47
- package/dist/assets/ArAgingChart-DIABTV5P-D3hRykT_.js +0 -24
- package/dist/assets/ArAgingDetailPage-CA4JP8HZ-DzwzorRb.js +0 -46
- package/dist/assets/Area-Sl30rGq6-CogxmVvt.js +0 -1
- package/dist/assets/AreaChart-2AgE74bB-DgDnH-B0.js +0 -1
- package/dist/assets/AttachmentView-DRBK6aiE-C1Ruc-VW.js +0 -101
- package/dist/assets/BankAccountSection-CwPIXA5w-DDDsPYwm.js +0 -79
- package/dist/assets/BankAccountWarningSection-DGSw5Uvq-DbOA1NjS.js +0 -51
- package/dist/assets/BankConnectionsSettingsPage-bk8eOcuj-DxzeQDqg.js +0 -425
- package/dist/assets/BillDetailPage-CQ8iqo9y-Tp3WmchS.js +0 -266
- package/dist/assets/BillPayApprovalRuleDetailPage-B8LMww_O-CRWeyw0Q.js +0 -27
- package/dist/assets/BillPayPromoPage-CIUhDNjJ-Cwqxzge6.js +0 -84
- package/dist/assets/BillPaySetUpPage-CrfwREgO-CJ9_P2PZ.js +0 -42
- package/dist/assets/BillingSettingsPage-CitBvGaR-DZa8FJ6b.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-Cal9oN8I-D6VU0QwP.js +0 -1
- package/dist/assets/BusinessVerificationPage-aj1YPi-U-D4YVlN1d.js +0 -138
- package/dist/assets/CardNumberSubText-COZ0PEHK-DfX-_Vv0.js +0 -21
- package/dist/assets/CashbackDetailPage-BloaeO12-CKXrQ4pr.js +0 -285
- package/dist/assets/ChargeCardDetailPage-CjW48x_w-CYCiZNdX.js +0 -1462
- package/dist/assets/ChargeCardListPage-CiUoFBZq-fokUM1Ml.js +0 -412
- package/dist/assets/ChargeCardListTable-BGdEyXLV-i14Xe5Xy.js +0 -711
- package/dist/assets/ChargeCardPromoPage-BYgvGdtQ-BP8Ml7dN.js +0 -222
- package/dist/assets/ChargeCardSetupPage-B0L57e-5-g-QFSpA6.js +0 -36
- package/dist/assets/ChargeCardStatementsPage-CB76MDoV-DzuODTlT.js +0 -60
- package/dist/assets/CheckDepositDrawerPage-Cr_oz-BZ-COLf_Spm.js +0 -206
- package/dist/assets/CollapsableReportTable-B3_in9eE-DAO-TPrY.js +0 -2844
- package/dist/assets/CompanyOfficerDetailsSection-K0bu4TF7-A5XuxES5.js +0 -260
- package/dist/assets/CompanyPassportCard-Bn50f4y5-DOiZtliu.js +0 -42
- package/dist/assets/CompanyPassportPage-CamFfvAV-Dh23xkTd.js +0 -574
- package/dist/assets/CompleteProfile-2jFR92oO-Dv25uofO.js +0 -52
- package/dist/assets/ComposedChart-Cot0K7Et-Cs0IcUoo.js +0 -1
- package/dist/assets/ConfettiBurst-D34cviSS---m1oxyT.js +0 -1
- package/dist/assets/CreateOrEditVendorPage-Abz0ijRD-Wxr0ruoD.js +0 -281
- package/dist/assets/CreditCardPaymentDrawerPage-BRcbxJYU-BrdaibUh.js +0 -224
- package/dist/assets/CurrencySelectField-DR8cDrIS-BWQqgMWL.js +0 -139
- package/dist/assets/CustomerOnboardingContainerPage-CiLsQ_pQ-BfS6D7SD.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-B0y5uw1X-CpWrxFy5.js +0 -66
- package/dist/assets/CustomerOnboardingPage-BheJqVUY-gSyXgh3g.js +0 -107
- package/dist/assets/CustomerOnboardingProductSuitePage-BaYYKqZ9-Cjiy9Y20.js +0 -202
- package/dist/assets/Dashboard-DJs11vgV-KI7JNzAI.js +0 -1551
- package/dist/assets/DashboardReportPage-CL0RrJ4A-CMyxRLdL.js +0 -371
- package/dist/assets/DashboardSidebarBackgroundAnimation-DHlKExbg-2TSvr-F-.js +0 -12
- package/dist/assets/DepositAccTransactionListPage-Db5EpWjl-fYOiHNFH.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-C_flRkmQ-D2Y9zL_T.js +0 -21
- package/dist/assets/DownloadOverlay-CLWNXGnb-CzOVbqqI.js +0 -439
- package/dist/assets/EditPeoplePage-B7bjXrqC-OL09v3a6.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-BRYd6JMC-F9QPl0Ac.js +0 -865
- package/dist/assets/EntityDetailPage-B1aKw_1J-CWSa9OE7.js +0 -18
- package/dist/assets/EntitySummarySection-Cp-CFb9j-DWbzDu3x.js +0 -149
- package/dist/assets/ExpenseAutomationOverviewPage-C7tY6mua-CIo35h3r.js +0 -281
- package/dist/assets/ExpenseAutomationPage-CeP8I1tB-DHQpDifW.js +0 -1650
- package/dist/assets/ExpressPayPage-DYUtczg7-Cb7gdmam.js +0 -168
- package/dist/assets/FollowStepsSection-Dhf67oqf-C9-DQpEq.js +0 -390
- package/dist/assets/GlobalReviewListPage-C89Tsajc-C8QIbpaJ.js +0 -291
- package/dist/assets/InformationCardStack-BLD4XmMT-CaIFPHpb.js +0 -31
- package/dist/assets/InsightsCardStack-CAwTWreO-DMHtrXvo.js +0 -79
- package/dist/assets/InsightsSection-DJrMi3DN-BZzGhpNe.js +0 -27
- package/dist/assets/IntegrationsSettingsPage-LAjqcDLQ-CwsnsoHn.js +0 -57
- package/dist/assets/InternationalWireSwiftDetailsPage-_4BMP68N-D2TibYHD.js +0 -171
- package/dist/assets/InternationalWireVerificationPage-BiDh0ost-DRFXu-Md.js +0 -292
- package/dist/assets/InviteFormPage-DN2uvROT-D-pHqBtv.js +0 -312
- package/dist/assets/InvitePageListView-DDi1bLaG-CWBEJEz9.js +0 -739
- package/dist/assets/InvitePeoplePage-D4bsu9K1-K8YB3huJ.js +0 -12
- package/dist/assets/InvoiceUploadSection-BducuHAy-DP3yW3zT.js +0 -140
- package/dist/assets/IssueChargeCardPage-C2I9mUTD-Dk0ZH0_P.js +0 -532
- package/dist/assets/LabeledAddressValue-mLMacnQu-Bs8h4KYU.js +0 -49
- package/dist/assets/LabeledAddressValueField-C74ZzWQ3-CvAM7L7i.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-D7yxgfu0-DgJw74_b.js +0 -16
- package/dist/assets/LabeledCreatableSingleSelectField-BoymBi06-B5wgIZxM.js +0 -204
- package/dist/assets/LabeledDocumentField-BEg2KNOF-CI4r3QEJ.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-B4_WiAaD-C8oOx3AR.js +0 -59
- package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-O_tz5mgs-90UTcRc3.js +0 -229
- package/dist/assets/LabeledZeniRolesDropDownField-DoF6cXd_-DT1LbBkc.js +0 -297
- package/dist/assets/LinkJETransactionPage-C1FL0hR6-Bp0Um_Sm.js +0 -98
- package/dist/assets/LockCardPage-Do7WCHaW-ZupVtZLk.js +0 -623
- package/dist/assets/LowBalancePopup-CEiTKqxT-DJVUP8TV.js +0 -34
- package/dist/assets/MagicLinkACHDetailsPage-C7xvzxN5-pg2IguPb.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-D8iNxVu6-Boex5dqe.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DNmvv77I-C23EkFxR.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-BO-k4XK1-QkgOmsPy.js +0 -31
- package/dist/assets/MagicLinkTitleSection-CzGvBYzB-B3pEwVq_.js +0 -17
- package/dist/assets/MailingDetailsSection-C_TtoLpj-DxhbJD-R.js +0 -21
- package/dist/assets/MyBankConnectionsSettingsPage-BP6RBO_Y-BFwv-Z-d.js +0 -110
- package/dist/assets/MyPendingActivationChargeCardListPage-CBwy21Ec-CDRbSeBl.js +0 -6
- package/dist/assets/MyProfileSettingsPage-yHoOgEgo-daGXrnbi.js +0 -85
- package/dist/assets/NavBarWithPicker-FYZ2a05o-B8iO0ddX.js +0 -30
- package/dist/assets/NavigationArrow-DlO0Lww9-C_GP4JM3.js +0 -47
- package/dist/assets/NewGlobalMerchantPage-FW6_Vbee-GgZoUq7l.js +0 -160
- package/dist/assets/NoDataTable-Mkdamra1-C4lxq944.js +0 -8
- package/dist/assets/NotificationSettingsPage-BhlKl9Ll-DUhiPe-6.js +0 -163
- package/dist/assets/NotificationsListConfig-DsgxTfdY-Bf7tXkyY.js +0 -1
- package/dist/assets/NotificationsPage-ZeNj-N6e-BTrejAUV.js +0 -685
- package/dist/assets/OpExByVendorPage-BFHzD656-CtmebRpb.js +0 -100
- package/dist/assets/OverlayContainerPage-C0a1XRUE-V98nAOZV.js +0 -11
- package/dist/assets/PandLWithForecastPage-Ccd2Dj3E-CdBcqIm3.js +0 -107
- package/dist/assets/PaymentAccountSetupBillingAddressSection-NPYLXD6--CVxMCQA5.js +0 -107
- package/dist/assets/PeoplePage-Dzl5Uh33-BdlH9bSI.js +0 -675
- package/dist/assets/Preview-Ciq7dXYi-CJfe3XpZ.js +0 -1
- package/dist/assets/ProductsCarousel-B7wcRg4N-CnpQ0WOo.js +0 -142
- package/dist/assets/QBOConnectionDialog-Bn425Vnl-BbJL04ac.js +0 -51
- package/dist/assets/QBOSetupSection-BqbiJ_dk-32r8g9xi.js +0 -79
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DmhPPX4d-D9mrhM9N.js +0 -26
- package/dist/assets/ReimbursementApprovalRulesPage-DwaZeT8t-Dv8_jFtg.js +0 -237
- package/dist/assets/ReimbursementDetailPage-D2tg-yOT-BzN7qc1_.js +0 -314
- package/dist/assets/ReimbursementPromoPage-kn4Die2q-CKqS3hXc.js +0 -84
- package/dist/assets/ReimbursementSetUpPage-D4FP9co3-CEmWCDyN.js +0 -140
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-hhvxZzxC-DWqEVSUF.js +0 -1
- package/dist/assets/ReloadCard-CreyuBvN-DjNwhyuW.js +0 -26
- package/dist/assets/ReportTableViewSelector-BeCqfOU9-Dl1-rF4w.js +0 -150
- package/dist/assets/ReportsPage-CZpFSu1Y-CZ0qiQOk.js +0 -121
- package/dist/assets/RevenueChart-CI7LXu5--C_eMlqa_.js +0 -280
- package/dist/assets/ReviewDetailsPage-DaTETUBT-BNZWzAUG.js +0 -290
- package/dist/assets/ReviewOverlay-De5_nrll-UZnD0Wrb.js +0 -152
- package/dist/assets/RoleWithToolTip-CWH-iJqI-1DRRWE9G.js +0 -22
- package/dist/assets/ScheduleDetailsFixedAssetsPage-Bq9TnStX-BBlEeAEF.js +0 -37
- package/dist/assets/ScheduleDetailsPage-CkpwjK55-CdEJvs9J.js +0 -37
- package/dist/assets/ScheduleSequenceTable-3IZuZOPj-CpD5-K5M.js +0 -324
- package/dist/assets/ScreenRoutes-OiTPRoV-.js +0 -206
- package/dist/assets/SignIn-xXGNpo08-BfJajWh7.js +0 -450
- package/dist/assets/SignInScreen-C1mSw17d.js +0 -1
- package/dist/assets/SpendManagementListViewPage-BnfCoW19-KBHNQHIP.js +0 -123
- package/dist/assets/SpendManagementPerTabPage-CqbhJrUj-kkilMuTU.js +0 -754
- package/dist/assets/SpendManagementSection-ajHIu1O8-DADkbXE-.js +0 -230
- package/dist/assets/StatementItem-GE_8ctAq-DrycMqry.js +0 -31
- package/dist/assets/StatementsPage-C3NFPx6M-DxRvU8jY.js +0 -58
- package/dist/assets/SubTabSwitcher-D66ATBlk-DOhgjMp3.js +0 -58
- package/dist/assets/SummaryCard-Bm1IRZgD-91ZI-22I.js +0 -1
- package/dist/assets/Switch-0GHq7mOt-DbAV4YYH.js +0 -1
- package/dist/assets/TaskManagementPage-BGrBiImq-BfzNLv5E.js +0 -508
- package/dist/assets/TimeRangeSwitcher-BLZFMJtQ-DGm3ShK1.js +0 -66
- package/dist/assets/TimeframeSwitcher-BsjH-yMO-BPnsY2-U.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-Cu3G5WXl-DA09Uj2K.js +0 -31
- package/dist/assets/TopExCard-ZSEsgTG--CATJC-Xk.js +0 -38
- package/dist/assets/TopExDetailPage-0MGEdNiZ-zdtgEwyG.js +0 -132
- package/dist/assets/TransactionDetailPage-C7wPASNo-DbosApC9.js +0 -912
- package/dist/assets/TransactionList-Brm_EWed-Cq3RVCVg.js +0 -147
- package/dist/assets/TransactionListBig-Br5XrVkF-CTCHs4ax.js +0 -284
- package/dist/assets/TransactionListPage-BE_E_82V-nYGMiY-b.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-CtVIgF01-wm39V-7s.js +0 -80
- package/dist/assets/TransferDrawerPage-CCKQSH2d-C1fxF28H.js +0 -362
- package/dist/assets/TreasuryOverviewPage-D7OhHT_I-CJSivn-m.js +0 -708
- package/dist/assets/TreasuryPromoPage-ssGWinby-7M6uQ6F0.js +0 -505
- package/dist/assets/TreasuryStatementsPage-CB4g45eo-FvCbZGLY.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-CixtQrG2-CdrNDE0k.js +0 -58
- package/dist/assets/TrendChart-ZXja3Lv--DjXJyQYi.js +0 -16
- package/dist/assets/TrendWithTransactions-Bacaqvbc-CuLqX3Nb.js +0 -116
- package/dist/assets/UncategorizedAccountsMappingPage-DgSFpzWV-DQ46RXxs.js +0 -244
- package/dist/assets/UnitIntegrationPage-B2KxkPGT-UD1zrCcb.js +0 -67
- package/dist/assets/UploadAdditionalDocumentOverlay-DCq4eMPQ-DgDGrP6S.js +0 -38
- package/dist/assets/Vendor2FAPopup-DyQl5kF8-DEaADgAn.js +0 -1
- package/dist/assets/VendorACHDetailsPage-NEsVAzoZ-Bc_YmJ7L.js +0 -1
- package/dist/assets/VendorDetailPage-gDnCoaGz-DnPFm_s9.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-BeqPYONY-DWVhQVkv.js +0 -1
- package/dist/assets/VendorFiling1099EditablePage-UIV2Tn2v-IWBkVx3W.js +0 -175
- package/dist/assets/VendorFirstReviewPage-DiNHrTKs-dMUj2lfg.js +0 -730
- package/dist/assets/VendorInternationalWireDetailsPage-X2xViJmq-1IEQyhex.js +0 -152
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-DUjY1sSV-7mNdGNdo.js +0 -1
- package/dist/assets/VerifyDevice-BpRkPdzL-B5ybgDmP.js +0 -112
- package/dist/assets/VideoPlayer-DVIeTdLq-C7AoMVy0.js +0 -78
- package/dist/assets/WarningsDrawerPage-DmT71mwN-Di-UIPop.js +0 -92
- package/dist/assets/ZeniAccountDetailPage-BDnKHtXx-_4OD2XSq.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-D1I68D9x-Bvus0P_k.js +0 -441
- package/dist/assets/ZeniAccountNavBarPieces-2a3O6Mrv-Bn4VbLw2.js +0 -14
- package/dist/assets/ZeniAccountSetupPage-BfUwEF_n-Bwo0JfQm.js +0 -36
- package/dist/assets/ZeniCopyright-DPuPyAW5-Bnt6ioyH.js +0 -1
- package/dist/assets/ZeniTransferAmountSlider-CPHnjZJx-BGffL5pM.js +0 -63
- package/dist/assets/__vite-browser-external-FmFgRqLi-FmFgRqLi.js +0 -1
- package/dist/assets/_baseUnset-WRwI4F7w-SKv6CaOr.js +0 -1
- package/dist/assets/agingReportHelper-Cf__8gug-B4Tesv9Z.js +0 -1
- package/dist/assets/analyticsHelper-QM8g-I4_-D8fsuugi.js +0 -1
- package/dist/assets/chartTypes-BADtYh4F-B1Z_E0y8.js +0 -1
- package/dist/assets/commonDimensions-B2oTTz3C-BcwGbjhJ.js +0 -1
- package/dist/assets/dash.all.min-UPr31zh1-ZEpa15jK.js +0 -21
- package/dist/assets/detailCommon-B2986coM-NlrX1KrH.js +0 -38
- package/dist/assets/downloadPdf-C0_jxUh_-xl909S0g.js +0 -1
- package/dist/assets/flatten-CIVR5K8J-D-QSFstn.js +0 -1
- package/dist/assets/groupBy-LtwzERV9-DfsHYWjt.js +0 -1
- package/dist/assets/hls-CsNM3rq8-NlJdpMmx.js +0 -40
- package/dist/assets/index-BR5-Z2ox.css +0 -1
- package/dist/assets/index-BYRTFU-W-YvTg_8TB.js +0 -3305
- package/dist/assets/index-OJbFNHch.js +0 -29301
- package/dist/assets/lexical-l0sNRNKZ.js +0 -1
- package/dist/assets/lottie-B4xjt4lE.js +0 -1
- package/dist/assets/map-CnboTxlt-iF8o7Kja.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-wIyHFu9f-BUan4l0E.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-CPOj7SUJ-BBvkWVpb.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-D35gt6vK-Dg4nN-DB.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cv8OFsQz-BQTTe1de.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CJ8hkVjB-B-rBOsE2.js +0 -1
- package/dist/assets/mixin-XJuHfVsL-Dozz_ZkW.js +0 -43
- package/dist/assets/mui-kiGMfX4-.js +0 -25
- package/dist/assets/omit-5LZGrM3q-Dkas3Ge8.js +0 -1
- package/dist/assets/orderBy-D3W4CDe6-C2Pj0hxa.js +0 -1
- package/dist/assets/react-6Tvfe2S2-C3CHfLw_.js +0 -19
- package/dist/assets/react-B2-P-PS--DYmRygxV.js +0 -19
- package/dist/assets/react-CWXWcDMY-C8y3pdCP.js +0 -17
- package/dist/assets/react-CWt3gw2R-CPQu_93E.js +0 -21
- package/dist/assets/react-CvWP22DQ-DgwH1WE1.js +0 -7
- package/dist/assets/react-CytUn6Kg-Dh6LSVZI.js +0 -22
- package/dist/assets/react-DBTaojCw-BTbEMBGt.js +0 -6
- package/dist/assets/react-G6j-OGKl--ofewKrH.js +0 -34
- package/dist/assets/recharts-Diw77Kjb.js +0 -1
- package/dist/assets/remove-ADLCpWJf-C_kUyMnr.js +0 -1
- package/dist/assets/toCOABalancesWithID-C_Swao_b-UbAQtm0o.js +0 -1
- package/dist/assets/toChartData-DfujfQ7D-DwlIUYBD.js +0 -1
- package/dist/assets/types-DRnhtDPC-CEIiK5pR.js +0 -1
- package/dist/assets/uploadAttachment-Wnp0PZFn-BWKvLRtm.js +0 -286
- package/dist/assets/uploadReceipts-BkHrFC8j-BKjYP7lf.js +0 -1
- package/dist/assets/useFormControl-DPydD0oc-BkCU7DyG.js +0 -1
- package/dist/assets/useLongPress-7jtiD2hr-B6uZ6RFc.js +0 -1
- package/dist/assets/utils-BLUF9kAp.js +0 -70
|
@@ -0,0 +1,865 @@
|
|
|
1
|
+
import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,Q as Ae,gb as oo,gd as ao,ge as ro,V as t,gx as lo,ab as ln,cm as si,cn as sn,co as cn,aK as K,o as i,y as c,bz as Di,bm as so,dv as co,gf as uo,gq as dn,gl as Ti,aO as un,an as mn,gm as mo,gy as Ve,ez as qe,eZ as ci,gz as zt,A as xt,gA as po,p as j,_ as pn,ap as di,u as a,bv as ho,go,cC as yo,eG as ui,gB as Bt,fc as Se,fe as $e,cE as mi,cO as ot,el as bo,fb as hn,b as Lt,cH as gn,cG as it,cW as Te,ag as pi,gC as fo,fu as wo,cB as xo,aS as ji,fo as So,bu as $o,b8 as yn,s as vo,ek as Co,b5 as Mt,gg as ko,bS as bn,B as hi,M as fn,cY as wn,cf as Ft,eU as Io,b7 as Do,d0 as To,fj as jo,ak as gi,n as Oi,bQ as xn,a$ as Pi,cV as Oo,al as Po,cK as Sn,aL as Lo,gD as $n,gE as li,g6 as Li,gF as Rt,cU as Ro,ga as Ao,bI as zo,cT as Bo}from"./index-XNBiWrYj.js";import{a as $,w as Ct}from"./core-3dlyNYRL.js";import{n}from"./mui-bYXq4XMS.js";import{a as Mo}from"./liveblocks-DIep7fJd.js";import{fJ as Fo,bO as nt,bS as vn,bj as yi,bp as Cn,bn as Ri,fK as Ai}from"./zeni-epic-state-LPACxnXP.js";import kn from"./InvoiceUploadSection-uvB-_dyl-BnrUYuvf.js";import{r as Eo,f as At,d as bt,p as bi,u as zi,h as Ie}from"./types-DyvtCprH-BcZYcgaq.js";import{I as No}from"./LabeledCreatableSingleSelectField-sEf-9BOE-pPbJFdXC.js";import{S as Wo}from"./CurrencySelectField-ksMvik33-CjY_Sqhm.js";import{e as Uo}from"./BankAccountSection-Chay7X-G-vPiVizDl.js";import{W as Vo,A as _o}from"./BankAccountWarningSection-CSChi1lw-BVD5BCv3.js";import{o as Ho}from"./radio-default-CiSgisfh-Clpw2LWj.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./utils-uDUqNRFY.js";import"./lexical-DPEnH3HH.js";import"./AttachmentView-Dg6PizI7-BzoqKbZ4.js";import"./uploadReceipts-CDPM7zcb-DEOGBGdq.js";const Me=(e,o)=>`${e}.${o}`,Bi={largeLabelWidth:new c(120,120,160),paddingBottom:new c(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:ke}},dateFormat:Ko,common:qo}=we.getLocalizedStrings(),Go=({lineIndex:e,mileage:o,classList:r,defaultCurrency:d,sectionId:p,isReimbursementCommentingEnabled:C,isDisabled:m,isAddReimbursementDisabled:v,companyMileageConfigInfo:f,reimbursementId:l,classHierarchyList:k})=>{const w=Ae(),s=wt(),y=Bt(),S=`dashboard_${s.currentTenant?.companyId}`,O=ft(),{formState:{errors:I},getValues:P,trigger:q}=ot(),L=qo.strings.empty,D=P(Me(p,"distanceInMiles")),z=Bi.largeLabelWidth.value(w),ee=P(Me(p,"class")),ie=r.find(A=>A.classId===ee?.selectedOption),ne=Me(p,"class"),Y=Te(I,ne);$.useEffect(()=>{ee?.selectedOption!=null&&(ie?.isDeleted===!0||Y)&&q(ne)},[ee?.selectedOption,ie?.isDeleted,r,ne,q]);const G={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},F=A=>r.filter(oe=>oe.classId===A)[0]?.accountingClassNumber,Z=r.find(A=>A.classId===o.class),H={valueContainer:A=>({...A,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.transactionDate`}),roomId:S,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("transactionDate",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Sn,{isDisabled:m,label:{label:ke.transactionDate,width:z},style:{paddingBottom:Bi.paddingBottom.valuePx(w),width:"auto"},dateField:{name:Me(p,"transactionDate"),placeholder:ke.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Ko.visual.defaultInput,autoComplete:"off",maxDate:yi(),registerOptions:{required:!0,validate:A=>!!A}}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:S,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Li,{isDisabled:v?"disabled":void 0,style:{width:"auto"},label:{label:ke.distanceInMiles,width:z},formattedTextField:{type:"number",name:Me(p,"distanceInMiles"),placeholder:ke.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.amount`}),roomId:S,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("amount",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Li,{isDisabled:"disabled",label:{label:ke.amount,width:z},formattedTextField:{type:"number",name:Me(`${p}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:it(ke.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:D!=null&&f?.mileageUnitAmount!=null?`${d.currencySymbol}${f?.mileageUnitAmount} per mile x ${D}`:void 0})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.memo`}),roomId:S,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("memo",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(mi,{isDisabled:m,label:{label:ke.memo,width:z},style:{width:"auto"},text:{type:"text",name:Me(p,"memo"),placeholder:it(ke.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.class`}),roomId:S,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("class",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(li,{isLoading:!1,label:{label:ke.department,width:z},additionalLabelInfo:ie?.isDeleted===!0&&Te(I,Me(p,"class"))?ke.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Me(p,"class"),placeholder:it(ke.department),valueToId:A=>F(A),defaultValue:{selectedOption:Z?.classId,allOptions:qe(k,[])},style:{width:"100%"},customStyleConfig:H,registerOptions:{required:!0,validate:A=>A?.selectedOption==null?!1:r.find(oe=>oe.classId===A?.selectedOption)?.isDeleted===!0?ke.deletedClassError:!0}},style:{borderBottom:`1px solid ${O.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Me(p,"class"))})]})},kt=n.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex: 1;
|
|
4
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
5
|
+
min-height: 1px;
|
|
6
|
+
max-height: 1px;
|
|
7
|
+
`,Mi={amounWidth:new c(50,30),currencyWidth:new c(50,70)};function Jo({name:e,placeHolder:o,defaultValue:r,isDisabled:d,showAmountCurrencyError:p,style:C,allCurrencies:m}){const[v,f]=$.useState(!1),{getValues:l,formState:{errors:k}}=ot(),w=ft(),s=Ae(),y=d!=null,S=l(e),O=`${S?.amount} ${S?.currency?.selectedOption}`,I=Te(k,e)&&Rt(k,`${e}.amount`)!=null,P=Te(k,e)&&Rt(k,`${e}.currency`)!=null,q=p===!0?I||P:!1,L=!q&&v===!1;return $.useEffect(()=>{L===!1&&f(!0)},[L]),t.jsx(mn,{onClickAway:()=>y===!1&&!q&&f(!1),children:t.jsx(Zo,{style:C,isDisabled:y,tabIndex:L&&!y?0:void 0,onClick:()=>y===!1&&f(!0),"data-testid":K("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[S?.amount!=null?t.jsx(Fi,{className:"amount-field",isVisible:L,children:O}):t.jsx(Fi,{className:"amount-field amount-placeholder",isVisible:L,children:o?.name}),t.jsxs(Yo,{isVisible:!L,children:[t.jsx(Ao,{type:"number",name:`${e}.amount`,defaultValue:r?.amount,placeholder:o?.amount,returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:D=>D!=null?D>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:d,style:{display:"flex",flexGrow:1,width:Mi.amounWidth.valuePercentage(s),cursor:"inherit"},bgColor:w.colors.background,isFieldError:I,shouldHighlightZeroAmount:!0}),L?null:t.jsx(Qo,{}),t.jsx(Wo,{name:`${e}.currency`,registerOptions:{validate:D=>D!=null&&D.selectedOption!=null},defaultValue:{allOptions:m.map(D=>({label:s==="small"?D.currencyCode:`${D.currencyCode} - ${D.currency}`,value:D.currencyCode,countryCode:D.countryCode})),selectedOption:r?.currencyCode},controlStyle:{justifyContent:"flex-start",backgroundColor:w.colors.background},isDisabled:d,style:{width:Mi.currencyWidth.valuePercentage(s),flexGrow:1},isOptionRemovable:!1})]})]})})})}const Yo=n.div`
|
|
8
|
+
display: ${e=>e.isVisible?"flex":"none"};
|
|
9
|
+
width: 100%;
|
|
10
|
+
input {
|
|
11
|
+
text-align: left;
|
|
12
|
+
}
|
|
13
|
+
`,Zo=n.div`
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: flex-end;
|
|
17
|
+
position: relative;
|
|
18
|
+
width: 100%;
|
|
19
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
20
|
+
outline: none;
|
|
21
|
+
outline-width: 0;
|
|
22
|
+
input {
|
|
23
|
+
text-align: right;
|
|
24
|
+
}
|
|
25
|
+
`,Qo=n.div`
|
|
26
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
27
|
+
min-width: ${i.sp3};
|
|
28
|
+
`,Fi=n(yn)`
|
|
29
|
+
display: ${e=>e.isVisible?"flex":"none"};
|
|
30
|
+
padding: 0 ${i.sp3};
|
|
31
|
+
border-radius: ${i.sp1};
|
|
32
|
+
height: 100%;
|
|
33
|
+
align-items: center;
|
|
34
|
+
width: 100%;
|
|
35
|
+
justify-content: flex-end;
|
|
36
|
+
color: ${e=>e.theme.colors.primary};
|
|
37
|
+
&.amount-placeholder {
|
|
38
|
+
color: ${e=>e.theme.colors.grey1};
|
|
39
|
+
}
|
|
40
|
+
`,We={width:new c(343,580,726),height:new c(a[6],a[6]),controlHeight:new c(a[6],a[6]),paddingTopBottom:new c(a[2],a[2]),marginRight:new c(a[2],a[2]),labelMarginLeft:new c(a[3],a[4]),labelMarginRight:new c(a[3],a[4]),labelMarginTop:new c(a[2],a[2])},In={infoLabel:new hi("extraSmallRegular","smallRegular")};function Xo({isDisabled:e,label:o,currencyAmountField:r,style:d,errorInfoLabel:p,isAdditionalInfoLabelLoading:C,showAdditionalLabelTooltip:m=!1,additionalLabelTooltip:v,additionalInfoLabel:f,showAdditionalInfoLabel:l=!0}){const k=Ae(),{formState:{errors:w}}=ot(),s=Te(w,r.name)&&Rt(w,`${r.name}.amount`)!=null,y=Te(w,r.name)&&Rt(w,`${r.name}.currency`)!=null,S=r.showAmountCurrencyError===!0?s||y:!1,O=s||y||S,I=()=>{if(C===!0)return t.jsx(oa,{children:t.jsx(xt,{size:"Small",start:!0})});if(l&&f||S){let P=null;return m===!0&&l&&f&&(P=t.jsx(xn,{placement:k==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(na,{children:v??""}),children:t.jsx(ra,{children:t.jsx(la,{})})})),t.jsxs(aa,{size:k,isError:S,hasToolTip:m,children:[P,f]})}};return t.jsxs(ea,{size:k,style:d,isDisabled:e!=null,isAmountError:s,isCurrencyError:y,"data-testid":K("labeled-currency-amount-field",r.name),children:[t.jsx(Ro,{isDisabled:e,label:o.label,htmlFor:r.name,style:{marginLeft:We.labelMarginLeft.value(k),marginRight:We.labelMarginRight.value(k),marginTop:We.labelMarginTop.value(k),width:o.width??"auto"}}),t.jsxs(ia,{labelWidth:o.width,children:[t.jsx(Jo,{...r,isDisabled:e,style:{flexGrow:1,height:We.controlHeight.value(k)}}),O?t.jsx(ta,{size:k,hasError:O,children:p}):null,I()]})]})}const ea=n.div`
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: row;
|
|
43
|
+
align-items: flex-start;
|
|
44
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
45
|
+
width: ${e=>We.width.valuePx(e.size)};
|
|
46
|
+
min-height: ${e=>We.height.valuePx(e.size)};
|
|
47
|
+
padding-right: ${e=>We.marginRight.valuePx(e.size)};
|
|
48
|
+
padding-top: ${e=>We.paddingTopBottom.valuePx(e.size)};
|
|
49
|
+
padding-bottom: ${e=>We.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?j.importantLight:e.theme.colors.background};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
input:nth-of-type(2) {
|
|
74
|
+
background-color: ${e=>e.isCurrencyError?j.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?j.importantLight:e.theme.colors.background};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
input:nth-of-type(2) {
|
|
87
|
+
background-color: ${e=>e.isCurrencyError?j.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?j.importantLight:e.theme.colors.background};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
input:nth-of-type(2) {
|
|
104
|
+
background-color: ${e=>e.isCurrencyError?j.importantLight:e.theme.colors.background};
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`,ta=n.label`
|
|
108
|
+
color: ${e=>e.hasError===!0?j.important:e.additionalInfoTextColor!=null?e.additionalInfoTextColor:e.theme.colors.grey1};
|
|
109
|
+
width: auto;
|
|
110
|
+
${e=>`${In.infoLabel.style(e.size)}`};
|
|
111
|
+
padding-right: ${i.sp3};
|
|
112
|
+
text-align: right;
|
|
113
|
+
`,ia=n.div`
|
|
114
|
+
display: flex;
|
|
115
|
+
width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
|
|
116
|
+
justify-content: flex-end;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
position: relative;
|
|
119
|
+
`,na=n(pi)`
|
|
120
|
+
padding: 12px;
|
|
121
|
+
color: ${e=>e.theme.colors.grey1};
|
|
122
|
+
background: ${e=>e.theme.colors.overlayColor};
|
|
123
|
+
border-radius: ${i.sp1};
|
|
124
|
+
`,oa=n.div`
|
|
125
|
+
padding-right: ${i.sp3};
|
|
126
|
+
padding-top: ${i.sp1};
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: flex-end;
|
|
129
|
+
`,aa=n.label`
|
|
130
|
+
display: flex;
|
|
131
|
+
justify-content: flex-end;
|
|
132
|
+
color: ${e=>e.isError?j.important:e.theme.colors.hero};
|
|
133
|
+
&:hover {
|
|
134
|
+
color: ${e=>e.isError?j.importantDark:e.theme.colors.primary};
|
|
135
|
+
}
|
|
136
|
+
${e=>`${In.infoLabel.style(e.size)}`};
|
|
137
|
+
padding-right: ${i.sp3};
|
|
138
|
+
text-align: right;
|
|
139
|
+
margin-top: ${e=>e.hasToolTip===!0?i.sp1:i.sp0};
|
|
140
|
+
`,ra=n.div`
|
|
141
|
+
display: flex;
|
|
142
|
+
margin-right: ${i.sp2};
|
|
143
|
+
margin-top: 2px;
|
|
144
|
+
align-items: center;
|
|
145
|
+
`,la=n(zo)`
|
|
146
|
+
width: ${i.sp3};
|
|
147
|
+
height: ${i.sp3};
|
|
148
|
+
color: inherit;
|
|
149
|
+
`,ge=(e,o)=>`${e}.${o}`,Ot={largeLabelWidth:new c(120,120,160),smallLabelWidth:new c(85,85,160),paddingBottom:new c(a[3],a[2]),autoFillIconLeft:new c(-8,-24)},{dateFormat:sa,common:Dn,spendManagement:{reimbursement:{reimbursementDetail:te}}}=we.getLocalizedStrings(),{strings:{empty:le}}=Dn,ca=(e,o)=>{const r=e.slice(1);let d=!1;return r.forEach(p=>{p.account?.qboId!=null&&p.account?.qboId===o&&(d=!0)}),d},da=e=>e.charAt(0).toLowerCase()+e.slice(1),ua=({lineIndex:e,outOfPocket:o,accountList:r,classList:d,merchantList:p,isAddReimbursementDisabled:C,sectionId:m,isReimbursementCommentingEnabled:v,isDisabled:f,autoFields:l=[],accountsHierarchyList:k,classHierarchyList:w,reimbursementId:s,tentativeMerchantName:y,allCurrencies:S,uncategorizedAccounts:O})=>{const I=Ae(),P=wt(),q=Bt(),L=ft(),{formState:{errors:D},getValues:z,trigger:ee}=ot(),ie=z(ge(m,"class")),ne=d.find(h=>h.classId===ie?.selectedOption),Y=ge(m,"class"),G=Te(D,Y),F=z(ge(m,"account")),Z=r.find(h=>h.qboId===F?.selectedOption||h.accountId===F?.selectedOption),H=ge(m,"account"),A=Te(D,H);$.useEffect(()=>{ie?.selectedOption!=null&&(ne?.isDeleted===!0||G)&&ee(Y)},[ie?.selectedOption,ne?.isDeleted,d,Y,ee]),$.useEffect(()=>{F?.selectedOption!=null&&(Z?.isDeleted===!0||A)&&ee(H)},[F?.selectedOption,Z?.isDeleted,r,H,ee]);const oe=o.isCategoryUpdateSelected!=null&&o.recommendedAccount!=null&&!o.isCategoryFirstTimeAutofilled&&!ca(o.recommendations,o.account),se=o.isRetainedCategorySelected!=null&&o.retainedAccount!=null,U=Ot.largeLabelWidth.value(I),ue=Ot.smallLabelWidth.value(I),Ee=p.map(h=>h.id??le),me={application:"dashboard",companyId:P.currentTenant?.companyId,tab:"reimbursement",entityId:s},ye=`dashboard_${P.currentTenant?.companyId}`,ce=h=>p.find(ae=>ae.id===h)?.name??h,je=r.find(h=>h.qboId===o.account),Oe=h=>[O.expense?.qboId,O.income?.qboId].includes(h),Pe=d.find(h=>h.classId===o.class),pe={valueContainer:h=>({...h,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},Le=h=>r.filter(ae=>ae.qboId===h)[0]?.qboId,he=h=>d.filter(ae=>ae.classId===h)[0]?.accountingClassNumber,ve=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",da(o?.recommendedAccount?.reason??le)),Ge=zt(k,o.recommendations);return t.jsxs(t.Fragment,{children:[y!=null||l.includes("merchant")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(No,{isDisabled:f!=null||C?"disabled":void 0,label:{label:te.merchant,width:U},style:{width:"auto"},creatableSingleSelectField:{name:ge(m,"merchant"),placeholder:te.merchantPlaceholder,defaultValue:{selectedOption:o.merchant??le,allOptions:Ee},registerOptions:{required:!0,validate:h=>!!h.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:ce})}),t.jsx(It,{}),l.includes("transactionDate")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(Sn,{isDisabled:f,label:{label:te.transactionDate,width:U},style:{paddingBottom:Ot.paddingBottom.valuePx(I),width:"auto"},dateField:{name:ge(m,"transactionDate"),placeholder:te.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:sa.visual.defaultInput,autoComplete:"off",maxDate:yi(),registerOptions:{required:!0,validate:h=>!!h}}})}),t.jsx(It,{}),l.includes("amount")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,isTwoLined:!0,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(Xo,{isDisabled:f!=null||C?"disabled":void 0,label:{label:te.amount,width:ue},style:{width:"auto"},currencyAmountField:{style:{height:i.sp6},name:`${m}.amount`,defaultValue:{amount:o.amount.amount,currencyCode:o.amount.currencyCode,currencySymbol:o.amount.currencySymbol},placeHolder:{amount:te.addAmount,name:te.addAmount},allCurrencies:S,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:te.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:o.isConvertedCurrencyLoading===!0,additionalInfoLabel:!rn(o.homeCurrencyDetails,o.amount)&&o.amount.currencyCode!==Dn.currency.currencyCode&&o.homeCurrencyDetails?.amount!==0?`${Lo("0,0[.]00",o.homeCurrencyDetails)} ${o.homeCurrencyDetails?.currencyCode}`:void 0})}),t.jsx(It,{}),l.includes("memo")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(mi,{isDisabled:f,label:{label:te.memo,width:U},style:{width:"auto"},text:{type:"text",name:ge(m,"memo"),placeholder:it(te.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(It,{}),l.includes("account")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.account`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("account",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(li,{label:{label:te.category,width:U},additionalLabelInfo:Z?.isDeleted===!0&&Te(D,ge(m,"account"))?te.deletedCategoryError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:oe||se,name:ge(m,"account"),placeholder:te.categoryPlaceholder,valueToId:h=>Le(h),defaultValue:{selectedOption:je?.qboId??je?.accountId,allOptions:Ge},style:{width:"100%"},customStyleConfig:pe,registerOptions:{required:!0,validate:h=>h?.selectedOption==null?!1:r.find(ae=>ae.qboId===h?.selectedOption||ae.accountId===h?.selectedOption)?.isDeleted===!0?te.deletedCategoryError:!0}},disableCurrentOption:Oe,style:{borderBottom:`1px solid ${L.colors.grey3}`,minHeight:i.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:o.isRecommendationLoading,recommendationCheckboxField:oe?{tooltipProps:{text:ve},label:{label:o.recommendedAccount?.accountName??le},checkBoxField:{name:ge(m,"isCategoryUpdateSelected"),defaultChecked:!!o.isCategoryUpdateSelected}}:void 0,retainCheckboxField:se?{label:{label:o.retainedAccount?.accountName??le},checkBoxField:{name:ge(m,"isRetainedCategorySelected"),defaultChecked:!!o.isRetainedCategorySelected}}:void 0},ge(m,"account"))}),l.includes("class")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.class`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("class",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(li,{isLoading:!1,label:{label:te.department,width:U},additionalLabelInfo:ne?.isDeleted===!0&&Te(D,ge(m,"class"))?te.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:ge(m,"class"),placeholder:it(te.department),valueToId:h=>he(h),defaultValue:{selectedOption:Pe?.classId,allOptions:qe(w,[])},style:{width:"100%"},customStyleConfig:pe,registerOptions:{required:!0,validate:h=>h?.selectedOption==null?!1:d.find(ae=>ae.classId===h?.selectedOption)?.isDeleted===!0?te.deletedClassError:!0}},style:{borderBottom:`1px solid ${L.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},ge(m,"class"))})]})},st=n.span`
|
|
150
|
+
position: relative;
|
|
151
|
+
`,ct=n(ui)`
|
|
152
|
+
color: ${e=>e.theme.colors.primary};
|
|
153
|
+
width: ${i.sp3};
|
|
154
|
+
height: ${i.sp3};
|
|
155
|
+
`,dt=n.div`
|
|
156
|
+
z-index: 2;
|
|
157
|
+
left: ${e=>Ot.autoFillIconLeft.valuePx(e.windowSize)};
|
|
158
|
+
position: absolute;
|
|
159
|
+
top: ${e=>e.isTwoLined===!0?i.sp5:"22px"};
|
|
160
|
+
`,It=n.div`
|
|
161
|
+
display: flex;
|
|
162
|
+
flex: 1;
|
|
163
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
164
|
+
min-height: 1px;
|
|
165
|
+
max-height: 1px;
|
|
166
|
+
`,et=(e,o)=>`${e}.${o}`,Ue={paddingTop:new c(a[5],a[4]),marginBottom:new c(a[3],a[3]),labelPaddingLeft:new c(a[3],a[4]),buttonWidth:new c(70,70),containerRightMargin:new c(a[3],a[8]),containerLeftMargin:new c(a[3],a[6]),deleteConfirmationTextMarginBottom:new c(a[2],a[0])},J=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,ma=({lineData:e,currencyConversionState:o,recommendationFetchState:r,remiStage:d,lineIndex:p,accountList:C,classList:m,merchantList:v,hasFile:f,defaultCurrency:l,hasMultipleLineItems:k,fileRequiredLineIds:w,duplicateLineDetails:s,remiStatus:y,sectionId:S,isDisabled:O,isReimbursementCommentingEnabled:I,isAddReimbursementDisabled:P,style:q,autoFields:L=[],analytics:D,reimbursementId:z,tentativeMerchantName:ee,companyMileageConfigInfo:ie,uncategorizedAccounts:ne,removeDuplicateReimbursementForLine:Y,scrollToSection:G,onDuplicateLineClick:F,onRemoveReimbursement:Z,clearTentativeNameForLine:H,allCurrencies:A,accountsHierarchyList:oe,classHierarchyList:se})=>{const U=Ae(),ue=wt(),Ee=Bt(),me=we.getLocalizedStrings().common.strings.empty,ye={application:"dashboard",companyId:ue.currentTenant?.companyId,tab:"reimbursement",entityId:z},ce=`dashboard_${ue.currentTenant?.companyId}`,{getValues:je}=ot(),[Oe,Pe]=$.useState(!1),pe=je(et(S,"reimbursementType"));return t.jsxs(wa,{style:q,windowSize:U,children:[t.jsxs(ha,{hasFile:f,windowSize:U,showDeleteConfirmation:Oe,children:[t.jsx(Sa,{windowSize:U,children:k?`#${p+1} ${J.reimbursement}`:J.reimbursement}),Oe?t.jsxs(fa,{windowSize:U,children:[t.jsx(ba,{windowSize:U,children:J.deleteConfirmation}),t.jsxs(pa,{children:[t.jsx(Oi,{label:J.buttons.cancel,onClick:()=>Pe(!1),style:{width:Ue.buttonWidth.value(U),marginLeft:U==="small"?i.sp0:i.sp4,marginRight:i.sp3},size:"small",variant:"secondary","data-testid":K("delete-remi-button",J.buttons.cancel)}),t.jsx(Oi,{label:J.buttons.remove,onClick:()=>{D?.trackReimbursementDeleteReimbursementLine(e.lineId,z),H?.(e.lineId??"1"),Pe(!1),Y(e.lineId),Z(p)},style:{width:Ue.buttonWidth.value(U)},size:"small",variant:"danger","data-testid":K("delete-remi-button",J.buttons.remove)})]})]}):k&&(d==="draft"||y==="rejected")?t.jsx(ga,{className:"deleteIconWrapper",windowSize:U,onClick:()=>Pe(!0),"data-testid":K("delete-remi-button",e.lineId),children:t.jsx(xn,{enterDelay:600,title:J.deleteReimbursement,placement:"top-end",children:t.jsx(ya,{})})}):null]}),w.includes(e.lineId)?t.jsx(dn,{title:J.missingReceipt,description:J.missingReceiptDescription,style:{marginBottom:i.sp3}}):null,t.jsxs($a,{windowSize:U,children:[s?.duplicateLineId!=null?t.jsxs(xa,{children:[J.thisExpense," ",s.isDuplicateWithinTransaction?t.jsx(Ei,{"data-testid":K("view-duplicate-transaction-expense"),onClick:()=>(D?.trackReimbursementViewDuplicateExpense(!0,z),G(s.duplicateLineId)),children:J.viewOriginalExpense}):t.jsx(Ei,{"data-testid":K("view-duplicate-expense"),onClick:()=>{s.duplicateTransactionId!=null&&s.duplicateLineId!=null&&(D?.trackReimbursementViewDuplicateExpense(!1,z),F(s.duplicateTransactionId,s.duplicateLineId))},children:J.viewOriginalExpense})]}):null,t.jsx(Se,{isThreadAllowed:I&&z!=null,dashboardTabKey:$e({type:"details",key:pe===J.mileageKey?`${p}.mileage.reimbursementType`:`${p}.out_of_pocket.reimbursementType`}),roomId:ce,companyId:ue.currentTenant?.companyId??me,companyName:ue.currentTenant?.companyName??me,entityId:z,dashboardOptionType:"reimbursement",filterMetaData:{...ye,entityType:`reimbursement.details.${Ie("reimbursementType",p,pe===J.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:Ee?.sharedRef?.contentWrapperRef,style:{borderRadius:s?.duplicateLineId!=null?"0 0 0 0":`${i.sp2} ${i.sp2} 0 0`},children:t.jsxs(Ca,{isDisabled:O!=null,haveBorderRadius:s?.duplicateLineId==null,children:[t.jsx(Pi,{isDisabled:O!=null||P?"disabled":void 0,isContainerClickable:!0,label:{label:J.outOfPocket},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ue.labelPaddingLeft.value(U),borderTopLeftRadius:"inherit"},showOutline:!(I&&z!=null),radioField:{name:et(S,"reimbursementType"),id:`${et(S,"reimbursementType")}.${J.outOfPocketKey}`,value:J.outOfPocketKey}}),t.jsx(va,{}),t.jsx(Pi,{isDisabled:O!=null||P?"disabled":void 0,isContainerClickable:!0,label:{label:J.mileage},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ue.labelPaddingLeft.value(U),borderTopRightRadius:"inherit"},showOutline:!(I&&z!=null),radioField:{name:et(S,"reimbursementType"),id:`${et(S,"reimbursementType")}.${J.mileageKey}`,value:J.mileageKey}})]})}),t.jsx(ka,{}),pe===J.outOfPocketKey?t.jsx(ua,{lineIndex:p,reimbursementId:z,uncategorizedAccounts:ne,isReimbursementCommentingEnabled:I,isDisabled:O,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?nt(e.outOfPocket.transactionDate.toDateString()):void 0,account:e.outOfPocket.account.selectedOption,isConvertedCurrencyLoading:o?.fetchState==="In-Progress",isRecommendationLoading:r==="In-Progress",homeCurrencyDetails:e.homeCurrencyConversions,class:e.outOfPocket.class.selectedOption,amount:{amount:e.outOfPocket.amount?.amount??0,currencyCode:e.outOfPocket.amount?.currencyCode??"USD",currencySymbol:e.outOfPocket.amount?.currencySymbol??"$"},memo:e.outOfPocket.memo,merchant:e.outOfPocket.merchant.selectedOption,recommendations:e.outOfPocket.recommendations,recommendedAccount:e.outOfPocket.recommendedAccount,isCategoryUpdateSelected:e.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:e.outOfPocket.isCategoryFirstTimeAutofilled,retainedAccount:e.outOfPocket.retainedAccount,isRetainedCategorySelected:e.outOfPocket.isRetainedCategorySelected},sectionId:et(S,"outOfPocket"),accountList:C,classList:m,autoFields:L,merchantList:v,tentativeMerchantName:ee,allCurrencies:A,isAddReimbursementDisabled:P,accountsHierarchyList:oe,classHierarchyList:se}):t.jsx(Go,{lineIndex:p,reimbursementId:z,isReimbursementCommentingEnabled:I,isDisabled:O,mileage:{transactionDate:e.mileage.transactionDate!=null?nt(e.mileage.transactionDate.toDateString()):void 0,class:e.mileage.class.selectedOption,distanceInMiles:e.mileage.distanceInMiles,amount:{amount:e.mileage.amount?.amount??0,currencyCode:e.mileage.amount?.currencyCode??"USD",currencySymbol:e.mileage.amount?.currencySymbol??"$"},memo:e.mileage.memo},classList:m,sectionId:et(S,"mileage"),companyMileageConfigInfo:ie,defaultCurrency:l,isAddReimbursementDisabled:P,classHierarchyList:se})]})]})},pa=n.div``,ha=n.div`
|
|
167
|
+
//when file is present and it's a small window, we don't have to show the title and delete icon. Delete icon will be displayed inside the invoice title, next to replace
|
|
168
|
+
//https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
|
|
169
|
+
display: ${e=>e.hasFile&&e.windowSize==="small"?"none":"flex"};
|
|
170
|
+
justify-content: ${e=>e.windowSize==="small"?e.showDeleteConfirmation?"center":"flex-end":"space-between"};
|
|
171
|
+
margin-bottom: ${i.sp3};
|
|
172
|
+
align-items: center;
|
|
173
|
+
`,ga=n.div`
|
|
174
|
+
width: ${i.sp3};
|
|
175
|
+
height: ${i.sp3};
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
display: none;
|
|
178
|
+
color: ${e=>e.windowSize==="small"?j.important:e.theme.colors.hero};
|
|
179
|
+
&:hover {
|
|
180
|
+
color: ${j.important};
|
|
181
|
+
}
|
|
182
|
+
`,Ei=n.span`
|
|
183
|
+
border-bottom: 1px solid currentColor;
|
|
184
|
+
cursor: pointer;
|
|
185
|
+
`,ya=n(Oo)`
|
|
186
|
+
width: ${i.sp3};
|
|
187
|
+
height: ${i.sp3};
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
`,ba=n.div`
|
|
190
|
+
margin-bottom: ${e=>Ue.deleteConfirmationTextMarginBottom.valuePx(e.windowSize)};
|
|
191
|
+
`,fa=n(gi)`
|
|
192
|
+
color: ${e=>e.theme.colors.hero};
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
196
|
+
`,wa=n.div`
|
|
197
|
+
display: flex;
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
padding-top: ${e=>Ue.paddingTop.valuePx(e.windowSize)};
|
|
200
|
+
margin-right: ${e=>Ue.containerRightMargin.valuePx(e.windowSize)};
|
|
201
|
+
margin-left: ${e=>Ue.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
|
+
`,xa=n(Po)`
|
|
213
|
+
padding: ${i.sp2} ${i.sp0} ${i.sp2} ${i.sp4};
|
|
214
|
+
background-color: ${j.alertLight};
|
|
215
|
+
color: ${j.brandColorGoldDark};
|
|
216
|
+
border-top-left-radius: inherit;
|
|
217
|
+
border-top-right-radius: inherit;
|
|
218
|
+
`,Sa=n(Mt)`
|
|
219
|
+
color: ${e=>e.theme.colors.primary};
|
|
220
|
+
display: ${e=>e.windowSize==="small"?"none":"unset"};
|
|
221
|
+
`,$a=n.div`
|
|
222
|
+
display: flex;
|
|
223
|
+
flex-direction: column;
|
|
224
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
225
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
226
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
227
|
+
border-radius: ${i.sp2};
|
|
228
|
+
margin-bottom: ${e=>Ue.marginBottom.valuePx(e.windowSize)};
|
|
229
|
+
`,va=n.div`
|
|
230
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
231
|
+
min-width: 1px;
|
|
232
|
+
max-width: 1px;
|
|
233
|
+
`,Ca=n.div`
|
|
234
|
+
display: flex;
|
|
235
|
+
flex-direction: row;
|
|
236
|
+
border-top-left-radius: ${e=>e.haveBorderRadius?"inherit":"unset"};
|
|
237
|
+
border-top-right-radius: ${e=>e.haveBorderRadius?"inherit":"unset"};
|
|
238
|
+
`,ka=n.div`
|
|
239
|
+
display: flex;
|
|
240
|
+
flex: 1;
|
|
241
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
242
|
+
min-height: 1px;
|
|
243
|
+
max-height: 1px;
|
|
244
|
+
`,Ia=(e,o)=>`${e}.${o}`,ut={labelWidth:new c(120,160,160),paddingBottom:new c(a[3],a[3]),paddingTop:new c(12,a[3]),marginBottom:new c(12,a[3]),containerRightMargin:new c(a[3],a[8]),containerLeftMargin:new c(a[3],a[6])},Tn=({isReimbursementCommentingEnabled:e,sectionId:o,isDisabled:r,reportTitle:d,reimbursementId:p,style:C})=>{const m=Ae(),v=wt(),f=Bt(),l=`dashboard_${v.currentTenant?.companyId}`,k=we.getLocalizedStrings(),w=k.spendManagement.reimbursement.reimbursementDetail,s=k.common.strings.empty,y=ut.labelWidth.value(m);return t.jsxs(Da,{style:C,windowSize:m,children:[t.jsx(ja,{windowSize:m,children:w.whatFor}),t.jsx(Ta,{children:t.jsx(Se,{isThreadAllowed:e&&p!=null,dashboardTabKey:$e({type:"details",key:"whatFor"}),roomId:l,companyId:v.currentTenant?.companyId??s,companyName:v.currentTenant?.companyName??s,entityId:p,dashboardOptionType:"reimbursement",filterMetaData:{application:"dashboard",companyId:v.currentTenant?.companyId,tab:"reimbursement",entityId:p,entityType:"reimbursement.details.whatFor"},fieldThreadTargetElement:f?.sharedRef?.contentWrapperRef,style:{borderRadius:i.sp2},children:t.jsx(mi,{isDisabled:r,label:{label:w.reportTitle,width:y},text:{type:"text",name:Ia(o,"reportTitle"),placeholder:w.lunchWithClient,defaultValue:d,autoComplete:"off",options:{required:!0,validate:S=>!!S}},style:{width:"auto",borderRadius:i.sp2}})})})]})},Da=n.div`
|
|
245
|
+
display: flex;
|
|
246
|
+
flex-direction: column;
|
|
247
|
+
padding-top: ${e=>ut.paddingTop.valuePx(e.windowSize)};
|
|
248
|
+
padding-bottom: ${e=>ut.paddingBottom.valuePx(e.windowSize)};
|
|
249
|
+
margin-right: ${e=>ut.containerRightMargin.valuePx(e.windowSize)};
|
|
250
|
+
margin-left: ${e=>ut.containerLeftMargin.valuePx(e.windowSize)};
|
|
251
|
+
`,Ta=n.div`
|
|
252
|
+
display: flex;
|
|
253
|
+
flex-direction: column;
|
|
254
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
255
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
256
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
257
|
+
border-radius: ${i.sp2};
|
|
258
|
+
`,ja=n(Mt)`
|
|
259
|
+
color: ${e=>e.theme.colors.primary};
|
|
260
|
+
margin-bottom: ${e=>ut.marginBottom.valuePx(e.windowSize)};
|
|
261
|
+
`,E={largeLabelWidth:new c(120,120,220),marginTop:new c(28,8),paymentToMarginTop:new c(0,a[4]),marginBottom:new c(a[5],a[4]),paymentToMarginBottom:new c(12,a[3]),totalMarginBottom:new c(a[3],a[3]),reimbursementSectionLeftMargin:new c(a[3],a[6]),reimbursementSectionRightMargin:new c(a[3],a[8]),invoiceSectionLeftMargin:new c(a[3],a[8]),invoiceSectionRightMargin:new c(a[3],a[6]),rightSectionWidth:new c(100,58),firstOrLastItemHeight:new c(390,760),itemHeight:new c(390,459),duplicateBannerWrapperMarginTop:new c(a[5],a[3]),duplicateBannerWrapperMarginRight:new c(a[3],a[8]),duplicateBannerWrapperMarginBottom:new c(a[5],a[3]),duplicateBannerWrapperMarginLeft:new c(a[3],a[6])},Oa={total:new hi("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:_},billPay:{vendorCreation:{achDetails:Dt}}},common:{currency:{currencyCode:Tt}}}=we.getLocalizedStrings(),jn=e=>{let o=0,r=Tt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const d=e;o=d.outOfPocket.amount??0,r=d.outOfPocket.currencyCode??Tt}else{const d=e;o=d.outOfPocket.amount?.amount??0,r=d.outOfPocket.amount?.currencyCode??Tt}return(e.homeCurrencyConversions?.currencyCode??Tt)!==r&&(o=e.homeCurrencyConversions?.amount??0),o},Pa=({remiUploadStatus:e,progressSectionObj:o,reimbursementId:r,createDate:d,scheduleDate:p,paymentDate:C,hasDuplicateLine:m,approvedDate:v,isFirstOrLastListItem:f,index:l,reimbursementSectionRef:k,showSkipAutoFill:w,lineData:s,currencyConversionState:y,authParams:S,uploadInvoiceEndPoint:O,accountList:I,classList:P,merchantList:q,remiStage:L,autoFieldsByLineId:D,isReimbursementCommentingEnabled:z,isAutoFieldsExist:ee,totalAmount:ie,showTotalAmountLoader:ne,totalNumberOfLines:Y,defaultCurrency:G,bankAccounts:F,fileRequiredLineIds:Z,isAddReimbursementDisabled:H,duplicateLineByLineId:A,remiStatus:oe,file:se,uncategorizedAccounts:U,reportTitle:ue,recommendationFetchState:Ee,tentativeMerchantName:me,paymentTo:ye,analytics:ce,companyMileageConfigInfo:je,loggedInUserDepartmentId:Oe,isSignedInUserReimbursementCreator:Pe,setShowBankAccountPage:pe,setRefByLineId:Le,setCurrentLineIdForUpload:he,onDuplicateLineClick:ve,setUploadedReceiptPayload:Ge,removeDuplicateReimbursementForLine:h,onReceiptsUpload:ae,scrollToSection:at,onRemoveReimbursement:_e,onAddReimbursement:Re,clearTentativeNameForLine:Je,onReplaceClick:ze,onDeleteBankAccount:He,updateInvoiceUploadFetchState:Ke,removeFileFromLine:Ye,allCurrencies:Ze,accountsHierarchyList:re,classHierarchyList:rt})=>{const{formState:{errors:mt}}=ot(),Qe=$.useRef(null);$.useEffect(()=>(Le(B=>({...B,[`L${s.lineId}`]:Qe.current})),()=>{Le(B=>({...B,[`L${s.lineId}`]:null}))}),[s.lineId,Le]);const V=Ae(),pt=L==="draft"?_.newReimbursementTitle:_.editReimbursementTitle,N=E.largeLabelWidth.value(V),de=B=>B.outOfPocket.account.selectedOption==null&&(B.outOfPocket.amount==null||B.outOfPocket.amount.amount==0)&&(B.outOfPocket.class.selectedOption==null||B.outOfPocket.class.selectedOption===Oe)&&(B.outOfPocket.memo===""||B.outOfPocket.memo==null)&&B.outOfPocket.merchant.selectedOption==null&&B.outOfPocket.transactionDate==null,St=F.map(B=>B.bankAccountId),Ce=s.reimbursementType===_.outOfPocketKey&&jn(s)>=75&&se==null;return t.jsxs(Ya,{ref:k,windowSize:V,children:[t.jsx(Za,{ref:B=>{B!=null&&(Qe.current=B)},windowSize:V,bottomSeperator:Y!==1,showSkipAutoFill:w,isFirstItem:l===0,children:t.jsx(kn,{customError:Ce?_.requireReceipt:void 0,analytics:ce,showAutofill:!1,uploadInvoiceEndPoint:O,authParams:S,entityId:H?"":void 0,file:se,style:{width:"auto",padding:0,height:f?E.firstOrLastItemHeight.valuePx(V):E.itemHeight.valuePx(V),margin:V==="small"?i.sp0:void 0},updateInvoiceUploadFetchState:Ke,onInvoiceUpload:B=>{s.reimbursementType===_.outOfPocketKey&&!de(s)?(he(Number(s.lineId)),Ge(B),ze?.()):ae(B,Number(s.lineId),!0)},dropFilePlaceholder:{upload:_.dropReceipt.upload,receipt:_.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!H,pdfTitle:Y>1?`#${l+1} Receipt`:"Receipt",onDeleteClick:()=>{Ke?.("In-Progress"),setTimeout(()=>Ye?.(Number(s.lineId)))},onReplaceClick:()=>{he(Number(s.lineId)),ze?.()},allowMultiFiles:Y===l+1,type:"reimbursement"})}),t.jsxs(Ja,{windowSize:V,children:[l===0&&V!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(Na,{children:pt}),t.jsx(Qa,{children:t.jsx(ko,{progressSectionObj:o,createDate:d,paymentDate:C,scheduleDate:p,approvedDate:v,isBillUploaded:r!=null?!0:e==="Completed"})}),ee&&t.jsxs(Aa,{children:[t.jsx(La,{}),t.jsx(Ea,{children:_.banner})]}),m&&t.jsxs(za,{size:V,children:[t.jsx(Ra,{}),t.jsxs(Ma,{children:[t.jsx(Ba,{children:_.thereSeems}),t.jsx(Fa,{children:_.pleaseFind})]})]}),t.jsx(Tn,{isReimbursementCommentingEnabled:z,sectionId:At,reportTitle:ue,reimbursementId:r})]}):null,t.jsx(ma,{analytics:ce,reimbursementId:r,onDuplicateLineClick:ve,uncategorizedAccounts:U,sectionId:`${bi}.${l}`,scrollToSection:at,lineIndex:l,lineData:s,accountList:I,classList:P,merchantList:q,autoFields:s.lineId!=null?D[s.lineId]:[],currencyConversionState:y,recommendationFetchState:Ee,onRemoveReimbursement:_e,hasMultipleLineItems:Y>1,clearTentativeNameForLine:Je,tentativeMerchantName:me,hasFile:se!=null,companyMileageConfigInfo:je,defaultCurrency:G,remiStage:L,remiStatus:oe,fileRequiredLineIds:Z,allCurrencies:Ze,isReimbursementCommentingEnabled:z,isAddReimbursementDisabled:H,accountsHierarchyList:re,classHierarchyList:rt,duplicateLineDetails:A[s.lineId],removeDuplicateReimbursementForLine:h}),Y!==1&&Y===l+1&&t.jsxs(t.Fragment,{children:[t.jsxs(Ua,{windowSize:V,children:[t.jsx(Va,{children:_.total}),ne?t.jsx(_a,{windowSize:V,children:t.jsx(Ha,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(hn,{amount:Cn(ie,"USD","$"),integerStyles:Lt.h6Regular.cssObject,decimalStyles:Lt.standardRegular.cssObject})]}),t.jsxs(qa,{windowSize:V,onClick:()=>{H===!1&&Re()},isDisabled:H,"data-testid":K("add-reimbursement-row"),children:[t.jsx(Wi,{}),t.jsx(Ni,{children:_.addReimbursement})]}),Pe?t.jsxs(t.Fragment,{children:[t.jsx(Wa,{windowSize:V,children:_.receivePaymentTo}),t.jsx(Ka,{windowSize:V,shouldDisplay:F.length>0,children:t.jsx(gn,{label:{label:_.yourBankAccount,width:N},style:{width:"auto"},singleSelectField:{singleSelect:{name:bt,placeholder:it(_.yourBankAccount),showValueEyeIcon:!H,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:He,getTooltipInfo:B=>On(F,B),onClickCreateBankAccount:()=>pe(!0),getLabelForId:B=>Ln(F,B),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:H?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:ye,allOptions:St},registerOptions:{required:!0,validate:B=>!!B.selectedOption}},isFunctional:!0})}),t.jsxs(Ga,{shouldDisplay:F.length===0,windowSize:V,hasError:Te(mt,bt),onClick:()=>{H===!1&&pe(!0)},isDisabled:H,"data-testid":K("remi-add-bank-account-container"),children:[t.jsx(Wi,{}),t.jsx(Ni,{children:_.addBankAccount})]})]}):null]})]})]})},On=(e,o)=>{const r=Pn(e,o);return r==null?`${Dt.bankRoutingNumber} ${_.emptyValue}
|
|
262
|
+
${Dt.bankAccountNumber} ${_.emptyValue}`:`${Dt.bankRoutingNumber} ${r.bankRoutingNumberAch??_.emptyValue}, ${r.bankName??_.emptyValue}
|
|
263
|
+
${Dt.bankAccountNumber} ${r.bankAccountNumber??_.emptyValue}`},Pn=(e,o)=>e.find(r=>r.bankAccountId===o),Ln=(e,o)=>{const r=Pn(e,o);return r==null?_.selectBankAccount:r.bankAccountName?r.bankAccountName:r.maskedAccountNumber?r.maskedAccountNumber:r.bankName&&r.bankAccountNumber?`${r.bankName} ${_.accountNameConnector}${r.bankAccountNumber.slice(r.bankAccountNumber.length-4)}`:_.selectBankAccount},La=n(ui)`
|
|
264
|
+
color: ${e=>e.theme.colors.primary};
|
|
265
|
+
width: ${i.sp3};
|
|
266
|
+
height: ${i.sp3};
|
|
267
|
+
`,Ra=n(jo)`
|
|
268
|
+
width: ${i.sp4};
|
|
269
|
+
height: ${i.sp4};
|
|
270
|
+
color: ${j.brandColorGoldDark};
|
|
271
|
+
`,Aa=n.div`
|
|
272
|
+
display: flex;
|
|
273
|
+
gap: ${i.sp2};
|
|
274
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
275
|
+
padding: ${i.sp3};
|
|
276
|
+
border-radius: ${i.sp2};
|
|
277
|
+
align-items: center;
|
|
278
|
+
margin: 0 ${i.sp8} 0 ${i.sp6};
|
|
279
|
+
`,za=n.div`
|
|
280
|
+
display: flex;
|
|
281
|
+
gap: ${i.sp2};
|
|
282
|
+
padding: ${i.sp3};
|
|
283
|
+
border-radius: ${i.sp2};
|
|
284
|
+
align-items: start;
|
|
285
|
+
margin-top: ${e=>E.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
286
|
+
margin-right: ${e=>E.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
287
|
+
margin-bottom: ${e=>E.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
288
|
+
margin-left: ${e=>E.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
289
|
+
background-color: ${j.alertLight};
|
|
290
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
291
|
+
`,Ba=n(Ft)`
|
|
292
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
293
|
+
`,Ma=n.div`
|
|
294
|
+
width: 100%;
|
|
295
|
+
`,Fa=n(gi)`
|
|
296
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
297
|
+
`,Ea=n.span`
|
|
298
|
+
color: ${e=>e.theme.colors.hero};
|
|
299
|
+
`,Na=n(To)`
|
|
300
|
+
letter-spacing: -0.02em;
|
|
301
|
+
color: ${e=>e.theme.colors.primary};
|
|
302
|
+
margin: ${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6};
|
|
303
|
+
`,Wa=n(Mt)`
|
|
304
|
+
letter-spacing: -0.02em;
|
|
305
|
+
color: ${e=>e.theme.colors.primary};
|
|
306
|
+
margin-top: ${e=>E.paymentToMarginTop.valuePx(e.windowSize)};
|
|
307
|
+
margin-bottom: ${e=>E.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
308
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
309
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
310
|
+
`,Ua=n.div`
|
|
311
|
+
padding: ${i.sp3};
|
|
312
|
+
display: flex;
|
|
313
|
+
align-items: center;
|
|
314
|
+
justify-content: space-between;
|
|
315
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
316
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
317
|
+
border-radius: ${i.sp2};
|
|
318
|
+
color: ${e=>e.theme.colors.hero};
|
|
319
|
+
margin-top: ${e=>E.totalMarginBottom.valuePx(e.windowSize)};
|
|
320
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
321
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
322
|
+
margin-bottom: ${e=>E.totalMarginBottom.valuePx(e.windowSize)};
|
|
323
|
+
justify-content: space-between;
|
|
324
|
+
`,Va=n(bn)`
|
|
325
|
+
display: flex;
|
|
326
|
+
width: 176px;
|
|
327
|
+
color: ${e=>e.theme.colors.primary};
|
|
328
|
+
`,_a=n(fn)`
|
|
329
|
+
display: flex;
|
|
330
|
+
width: calc(100% - 176px);
|
|
331
|
+
justify-content: flex-end;
|
|
332
|
+
color: ${e=>e.theme.colors.primary};
|
|
333
|
+
${e=>`${Oa.total.style(e.windowSize)}`};
|
|
334
|
+
`,Ha=n.div`
|
|
335
|
+
padding-right: ${i.sp3};
|
|
336
|
+
height: 30px;
|
|
337
|
+
display: flex;
|
|
338
|
+
justify-content: flex-end;
|
|
339
|
+
`,Ka=n.div`
|
|
340
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
341
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
342
|
+
margin-bottom: ${i.sp3};
|
|
343
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
344
|
+
border-radius: ${i.sp2};
|
|
345
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
346
|
+
display: ${e=>e.shouldDisplay?"unset":"none"};
|
|
347
|
+
`,qa=n.div`
|
|
348
|
+
padding: ${i.sp3};
|
|
349
|
+
display: flex;
|
|
350
|
+
align-items: center;
|
|
351
|
+
justify-content: center;
|
|
352
|
+
border: 1px solid
|
|
353
|
+
${e=>e.hasError===!0?j.important:e.theme.colors.hero};
|
|
354
|
+
border-radius: ${i.sp2};
|
|
355
|
+
color: ${e=>e.hasError===!0?j.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?j.important:e.theme.colors.primary};
|
|
359
|
+
border: 1px solid
|
|
360
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
361
|
+
}
|
|
362
|
+
margin-top: ${e=>E.totalMarginBottom.valuePx(e.windowSize)};
|
|
363
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
364
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
365
|
+
margin-bottom: ${e=>E.marginBottom.valuePx(e.windowSize)};
|
|
366
|
+
`,Ga=n.div`
|
|
367
|
+
padding: ${i.sp3};
|
|
368
|
+
display: ${e=>e.shouldDisplay?"flex":"none"};
|
|
369
|
+
align-items: center;
|
|
370
|
+
justify-content: center;
|
|
371
|
+
border: 1px solid
|
|
372
|
+
${e=>e.hasError===!0?j.important:e.theme.colors.hero};
|
|
373
|
+
border-radius: ${i.sp2};
|
|
374
|
+
color: ${e=>e.hasError===!0?j.important:e.theme.colors.hero};
|
|
375
|
+
cursor: pointer;
|
|
376
|
+
&:hover {
|
|
377
|
+
color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
378
|
+
border: 1px solid
|
|
379
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
380
|
+
}
|
|
381
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
382
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
383
|
+
margin-bottom: ${e=>E.marginBottom.valuePx(e.windowSize)};
|
|
384
|
+
`,Ni=n(Ft)`
|
|
385
|
+
color: inherit;
|
|
386
|
+
`,Wi=n(wn)`
|
|
387
|
+
margin-right: ${i.sp2};
|
|
388
|
+
width: ${i.sp3};
|
|
389
|
+
height: ${i.sp3};
|
|
390
|
+
`,Ja=n.div`
|
|
391
|
+
display: flex;
|
|
392
|
+
flex-direction: column;
|
|
393
|
+
width: ${e=>E.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
394
|
+
`,Ya=n.div`
|
|
395
|
+
display: flex;
|
|
396
|
+
width: 100%;
|
|
397
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
398
|
+
`,Za=n.div`
|
|
399
|
+
height: 100%;
|
|
400
|
+
background: ${e=>e.theme.colors.grey3};
|
|
401
|
+
border-radius: ${i.sp2};
|
|
402
|
+
width: ${e=>e.windowSize==="small"?"auto":"42%"};
|
|
403
|
+
margin-left: ${e=>E.invoiceSectionLeftMargin.valuePx(e.windowSize)};
|
|
404
|
+
margin-right: ${e=>E.invoiceSectionRightMargin.valuePx(e.windowSize)};
|
|
405
|
+
visibility: ${e=>e.showSkipAutoFill?"hidden":"unset"};
|
|
406
|
+
margin-bottom: ${e=>e.bottomSeperator===!0&&e.windowSize!=="small"?e.isFirstItem?"102px":i.sp10:0};
|
|
407
|
+
margin-top: ${e=>E.marginTop.valuePx(e.windowSize)};
|
|
408
|
+
`,Qa=n.div`
|
|
409
|
+
padding: ${i.sp2} ${i.sp8} ${i.sp0} ${i.sp6};
|
|
410
|
+
`,Xa={total:new hi("largeMedium","h6Medium")},Q={largeLabelWidth:new c(120,120,220),marginBottom:new c(a[5],a[4]),addBankAccountMarginBottom:new c(a[5],a[5]),marginTop:new c(a[0],78),paymentToMarginTop:new c(0,a[4]),totalMarginBottom:new c(a[3],a[3]),rightMargin:new c(a[3],a[8]),leftMargin:new c(a[3],a[6]),paymentToMarginBottom:new c(12,a[3])},tt=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,er=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:d,showSkipAutoFill:p,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,totalAmount:v,defaultCurrency:f,hasDuplicateLine:l,bankAccounts:k,fileRequiredLineIds:w,companyMileageConfigInfo:s,analytics:y,reimbursementId:S,currencyConversionStatus:O,setShowSkipAutoFill:I,setShowBankAccountPage:P,removeDuplicateReimbursementForLine:q,onReceiptsUpload:L,setCurrentLineIdForUpload:D,onDuplicateLineClick:z,setUploadedReceiptPayload:ee,removeFileFromLine:ie,onReplaceClick:ne,updateInvoiceUploadFetchState:Y,clearTentativeNameForLine:G,onDeleteBankAccount:F,uncategorizedAccounts:Z,isSignedInUserReimbursementCreator:H,duplicateLineByLineId:A,showTotalAmountLoader:oe,scrollContainerRef:se})=>{const{control:U,formState:{errors:ue}}=ot(),{fields:Ee,append:me,remove:ye}=bo({name:bi,control:U}),ce=Ee,je=$.useRef(null),Oe=N=>{setTimeout(()=>{ye(N)})},{tentativeMerchantNameByLineId:Pe,remiStage:pe,remiStatus:Le}=e,he=!H||pe==="pending_approval"&&Le!=="rejected"&&o||pe==="pending_approval"&&Le==="rejected",ve=he?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:k,Ge=ve.map(N=>N.bankAccountId),h=Ae(),ae=Q.largeLabelWidth.value(h),at=e.whatForSection.reportTitle,_e=e.accountList.accounts,Re=e.accountsHierarchyList,Je=e.classHierarchyList,ze=e.classList.classes,He=e.merchantList.merchants,Ke=e.addRemiAutoFieldsByLineId,Ye=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(N=>Number(N)),0),Ze=()=>{const N=ce[ce.length-1],de=Rn(ce.length,Number(N.lineId)>Ye?String(Number(N.lineId)+1):String(Ye+1),Re,Je,He,f,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{me(de,{shouldFocus:!1})}),D(Number(de.lineId)),I(!0),setTimeout(()=>zi(je.current,se?.current),50)},[re,rt]=$.useState({}),mt=$.useCallback(N=>{const de=re[`L${N}`];de!=null&&zi(de,se?.current)},[re,se]),Qe=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,V=e.reimbursementInfo?.paymentDate!=null?nt(vn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,pt=e.reimbursementInfo?.expectedDepositDate??V;return t.jsxs(or,{windowSize:h,showSkipAutoFill:p,children:[ce.map((N,de)=>t.jsx(Pa,{removeDuplicateReimbursementForLine:q,onDuplicateLineClick:z,scrollToSection:mt,setRefByLineId:rt,duplicateLineByLineId:A,reimbursementId:S,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:Z,progressSectionObj:Qe,createDate:e.createTime,paymentDate:pt,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:ce.length-1===de||de===0,index:de,reimbursementSectionRef:je,remiStage:pe,remiStatus:Le,authParams:r,file:N.file,uploadInvoiceEndPoint:d,showSkipAutoFill:p,lineData:N,currencyConversionState:O[N.lineId],recommendationFetchState:e.lineDetailSection[N.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:D,setUploadedReceiptPayload:ee,onReplaceClick:ne,onReceiptsUpload:L,removeFileFromLine:ie,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,reportTitle:at,accountList:_e,classList:ze,merchantList:He,autoFieldsByLineId:Ke,onRemoveReimbursement:Oe,onAddReimbursement:Ze,totalAmount:v,showTotalAmountLoader:oe,hasDuplicateLine:l,totalNumberOfLines:ce.length,updateInvoiceUploadFetchState:Y,clearTentativeNameForLine:G,tentativeMerchantName:Pe[N.lineId],companyMileageConfigInfo:s,defaultCurrency:f,setShowBankAccountPage:P,paymentTo:e.paymentTo,bankAccounts:ve,onDeleteBankAccount:F,analytics:y,fileRequiredLineIds:w,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:he,accountsHierarchyList:Re,classHierarchyList:Je,isSignedInUserReimbursementCreator:H},N.lineId)),ce.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(Zt,{children:[h!=="small"?t.jsx(Jt,{windowSize:h}):null,t.jsx(Yt,{windowSize:h,children:t.jsxs(ar,{windowSize:h,children:[t.jsx(rr,{children:tt.total}),oe?t.jsx(sr,{windowSize:h,children:t.jsx(cr,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(hn,{amount:Cn(v,Ri.currencyCode,Ri.currencySymbol),integerStyles:Lt.h6Regular.cssObject,decimalStyles:Lt.standardRegular.cssObject})]})})]}),t.jsxs(Zt,{children:[h!=="small"?t.jsx(Jt,{windowSize:h}):null,t.jsx(Yt,{windowSize:h,children:t.jsxs(dr,{windowSize:h,onClick:()=>{he===!1&&Ze()},isDisabled:he,"data-testid":K("add-reimbursement-container"),children:[t.jsx(Vi,{}),t.jsx(Ui,{children:tt.addReimbursement})]})})]}),t.jsxs(Zt,{children:[h!=="small"?t.jsx(Jt,{windowSize:h}):null,H?t.jsxs(Yt,{windowSize:h,children:[t.jsx(lr,{windowSize:h,children:tt.receivePaymentTo}),t.jsx(nr,{windowSize:h,shouldDisplay:ve.length>0,children:t.jsx(gn,{label:{label:tt.yourBankAccount,width:ae},style:{width:"auto"},singleSelectField:{singleSelect:{name:bt,placeholder:it(tt.yourBankAccount),showValueEyeIcon:!he,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:F,getTooltipInfo:N=>On(ve,N),onClickCreateBankAccount:()=>P(!0),getLabelForId:N=>Ln(ve,N),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:he?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:Ge},registerOptions:{required:!0,validate:N=>!!N.selectedOption}},isFunctional:!0})}),t.jsxs(ur,{shouldDisplay:ve.length===0,windowSize:h,onClick:()=>{he===!1&&P(!0)},hasError:Te(ue,bt),isDisabled:he,"data-testid":K("remi-add-bank-account-container"),children:[t.jsx(Vi,{}),t.jsx(Ui,{children:tt.addBankAccount})]})]}):null]})]})]})},Rn=(e,o,r,d,p,C,m,v)=>{const f=tr(r,d,p,C,m,v);return{lineIndex:e,lineId:o,reimbursementType:tt.outOfPocketKey,file:void 0,outOfPocket:f,mileage:ir(d,C,v)}},tr=(e,o,r,d,p,C)=>({transactionDate:void 0,class:{allOptions:Ve(qe(o,[])),selectedOption:C},account:{allOptions:Ve(zt(e,[])),selectedOption:void 0},amount:{amount:0,currencyCode:d.currencyCode,currencySymbol:d.currencySymbol,currency:{allOptions:p.map(m=>({label:`${m.currencyCode} - ${m.currency}`,value:m.currencyCode,countryCode:ci(m.countryCode)})),selectedOption:d.currencyCode??we.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}),ir=(e,o,r)=>({transactionDate:void 0,class:{allOptions:Ve(qe(e,[])),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:o.currencyCode,currencySymbol:o.currencySymbol},memo:void 0}),nr=n.div`
|
|
411
|
+
margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
|
|
412
|
+
margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
|
|
413
|
+
margin-bottom: ${e=>Q.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
414
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
415
|
+
border-radius: ${i.sp2};
|
|
416
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
417
|
+
display: ${e=>e.shouldDisplay?"inherit":"none"};
|
|
418
|
+
`,Jt=n.div`
|
|
419
|
+
width: ${e=>e.windowSize==="small"?"100%":"42%"};
|
|
420
|
+
`,Yt=n.div`
|
|
421
|
+
width: ${e=>e.windowSize==="small"?"100%":"58%"};
|
|
422
|
+
`,or=n.div`
|
|
423
|
+
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
424
|
+
flex-direction: column;
|
|
425
|
+
margin-top: ${e=>Q.marginTop.valuePx(e.windowSize)};
|
|
426
|
+
`,ar=n.div`
|
|
427
|
+
padding: ${i.sp3};
|
|
428
|
+
display: flex;
|
|
429
|
+
align-items: center;
|
|
430
|
+
justify-content: space-between;
|
|
431
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
432
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
433
|
+
border-radius: ${i.sp2};
|
|
434
|
+
color: ${e=>e.theme.colors.hero};
|
|
435
|
+
margin-top: ${e=>Q.totalMarginBottom.valuePx(e.windowSize)};
|
|
436
|
+
margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
|
|
437
|
+
margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
|
|
438
|
+
margin-bottom: ${e=>Q.totalMarginBottom.valuePx(e.windowSize)};
|
|
439
|
+
`,rr=n(bn)`
|
|
440
|
+
display: flex;
|
|
441
|
+
width: 176px;
|
|
442
|
+
color: ${e=>e.theme.colors.primary};
|
|
443
|
+
`,lr=n(Mt)`
|
|
444
|
+
color: ${e=>e.theme.colors.primary};
|
|
445
|
+
margin-top: ${e=>Q.paymentToMarginTop.valuePx(e.windowSize)};
|
|
446
|
+
margin-bottom: ${e=>Q.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
447
|
+
margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
|
|
448
|
+
margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
|
|
449
|
+
`,sr=n(fn)`
|
|
450
|
+
display: flex;
|
|
451
|
+
width: calc(100% - 176px);
|
|
452
|
+
justify-content: flex-end;
|
|
453
|
+
color: ${e=>e.theme.colors.primary};
|
|
454
|
+
${e=>`${Xa.total.style(e.windowSize)}`};
|
|
455
|
+
`,cr=n.div`
|
|
456
|
+
padding-right: ${i.sp3};
|
|
457
|
+
height: 30px;
|
|
458
|
+
display: flex;
|
|
459
|
+
justify-content: flex-end;
|
|
460
|
+
`,dr=n.div`
|
|
461
|
+
padding: ${i.sp3};
|
|
462
|
+
display: flex;
|
|
463
|
+
align-items: center;
|
|
464
|
+
justify-content: center;
|
|
465
|
+
border: 1px solid
|
|
466
|
+
${e=>e.hasError===!0?j.important:e.theme.colors.hero};
|
|
467
|
+
border-radius: ${i.sp2};
|
|
468
|
+
|
|
469
|
+
color: ${e=>e.hasError===!0?j.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?j.important:e.theme.colors.primary};
|
|
473
|
+
border: 1px solid
|
|
474
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
475
|
+
}
|
|
476
|
+
margin-top: ${e=>Q.totalMarginBottom.valuePx(e.windowSize)};
|
|
477
|
+
margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
|
|
478
|
+
margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
|
|
479
|
+
margin-bottom: ${e=>Q.marginBottom.valuePx(e.windowSize)};
|
|
480
|
+
`,ur=n.div`
|
|
481
|
+
padding: ${i.sp3};
|
|
482
|
+
display: ${e=>e.shouldDisplay?"flex":"none"};
|
|
483
|
+
align-items: center;
|
|
484
|
+
justify-content: center;
|
|
485
|
+
border: 1px solid
|
|
486
|
+
${e=>e.hasError===!0?j.important:e.theme.colors.hero};
|
|
487
|
+
border-radius: ${i.sp2};
|
|
488
|
+
color: ${e=>e.hasError===!0?j.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?j.important:e.theme.colors.primary};
|
|
492
|
+
border: 1px solid
|
|
493
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
494
|
+
}
|
|
495
|
+
margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
|
|
496
|
+
margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
|
|
497
|
+
margin-bottom: ${e=>Q.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
498
|
+
`,Ui=n(Ft)`
|
|
499
|
+
color: inherit;
|
|
500
|
+
`,Vi=n(wn)`
|
|
501
|
+
margin-right: ${i.sp2};
|
|
502
|
+
width: ${i.sp3};
|
|
503
|
+
height: ${i.sp3};
|
|
504
|
+
`,Zt=n.div`
|
|
505
|
+
display: flex;
|
|
506
|
+
width: 100%;
|
|
507
|
+
`,Fe={buttonWidth:new c(140,140),paddingLeft:new c(a[3],a[6]),paddingRight:new c(a[3],a[8]),subTitleMarginbottom:new c(a[2],a[3]),orSeperatorTopBottomMargin:new c(a[6],44),iconWidthHeight:new c(20,a[4])},_i="userBankAccountPage",Pt="bankAccountSection",mr=e=>({[Pt]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName}}),Hi=e=>`${e}_form`,pr=({bankAccountCreationState:e,setShowBankAccountPage:o,plaidConnectionDetails:r,onFetchLinkTokenClick:d,onEstablishConnectionClick:p,bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,isDisabled:v,onSaveHandler:f,onUserBankDetailsUpdated:l,onFetchBankName:k,onBackClick:w})=>{const s=ft(),y=Ae(),S=an({mode:"onBlur",reValidateMode:"onChange",defaultValues:$.useMemo(()=>mr(C),[C])}),O=$.useCallback(G=>{p?.(G),w()},[w,p]),I=r.link_account_no_microdeposit,{open:P}=wo({token:I.linkToken??null,onSuccess:O});$.useEffect(()=>{(nt(new Date().toISOString()).isAfter(I.expiration)||I.linkToken==null)&&d?.("link_account_no_microdeposit")},[]);const[q,L]=$.useState(!1),D=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,z=we.getLocalizedStrings().common.footer,ee={onOkClick:()=>{L(!1),S.reset(),w()},onCancelClick:()=>{L(!1)}},ie=async(G,F)=>{const Z=F[Pt].bankRoutingNumber;l(F),G===`${Pt}.bankRoutingNumber`&&Z?.length===9&&Io.test(Z)===!0&&k?.(Z)};$.useEffect(()=>{const G=S.watch((F,{name:Z})=>{Z!=null&&F!=null&&xo(()=>ie(Z,F))});return()=>{G.unsubscribe()}}),$.useEffect(()=>{e?.fetchState==="Completed"&&w()},[e?.fetchState,w,o]);const ne=S.handleSubmit(G=>{m.fetchState!=="In-Progress"&&f()}),Y=s.mode==="light"?new ji(s.colors.brandColorJadeLight):new ji(s.colors.brandColorJadeDark);return t.jsxs(hr,{children:[t.jsxs(Sr,{windowSize:y,children:[q===!0?t.jsx(si,{titleComponent:t.jsx(cn,{children:D.discardTitle}),descriptionComponent:t.jsx(sn,{children:D.discardDescription}),primaryButtonText:D.buttons.delete,secondaryButtonText:D.buttons.cancel,action:ee}):null,t.jsx(Vo,{header:D.addBankAccount,isDirty:S.formState.isDirty,onBackClick:w,setShowConfirmationPopup:L}),t.jsx(gr,{}),t.jsxs($r,{size:y,children:[t.jsx(So,{onClick:()=>{S.reset(),P()},title:D.connectYourBank,subTitle:D.loginToBank,header:D.setupAchPayments,icon:{element:t.jsx($o,{width:Fe.iconWidthHeight.valuePx(y),height:Fe.iconWidthHeight.valuePx(y)}),color:Y},style:{width:"unset",rowGap:y==="small"?i.sp2:void 0}}),t.jsxs(yr,{windowSize:y,children:[t.jsx(br,{}),t.jsx(wr,{children:t.jsx(xr,{children:D.or})})]}),t.jsx(fr,{windowSize:y,children:D.saveAccountManually})]}),t.jsx(vr,{size:y,children:t.jsx(ln,{...S,children:t.jsxs("form",{id:Hi(_i),onSubmit:ne,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(_o,{warningText:D.accountExistWarning}):null,t.jsx(Uo,{bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,sectionId:Pt})]})})})]}),t.jsx(un,{formId:Hi(_i),primaryBtn:{label:D.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Fe.buttonWidth.value(y)},isDisabled:v!=null},cancelBtn:{label:z.cancel,style:{width:Fe.buttonWidth.value(y)},shouldResetOnCancel:!1,onClick:()=>{S.formState.isDirty?L(!0):(L(!1),S.reset(),w())}}})]})},hr=n.div`
|
|
508
|
+
display: flex;
|
|
509
|
+
flex-direction: column;
|
|
510
|
+
width: 100%;
|
|
511
|
+
height: 100%;
|
|
512
|
+
`,gr=n.div`
|
|
513
|
+
margin: ${i.sp2} 0;
|
|
514
|
+
position: relative;
|
|
515
|
+
`,yr=n.div`
|
|
516
|
+
margin: ${e=>Fe.orSeperatorTopBottomMargin.valuePx(e.windowSize)} 0;
|
|
517
|
+
position: relative;
|
|
518
|
+
`,br=n.div`
|
|
519
|
+
background: ${e=>e.theme.colors.grey2};
|
|
520
|
+
height: 1px;
|
|
521
|
+
`,fr=n(Do)`
|
|
522
|
+
color: ${e=>e.theme.colors.primary};
|
|
523
|
+
margin-bottom: ${e=>Fe.subTitleMarginbottom.valuePx(e.windowSize)};
|
|
524
|
+
`,wr=n.div`
|
|
525
|
+
display: flex;
|
|
526
|
+
justify-content: center;
|
|
527
|
+
`,xr=n(pi)`
|
|
528
|
+
background: ${e=>e.theme.colors.background};
|
|
529
|
+
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
530
|
+
border-radius: ${i.sp5};
|
|
531
|
+
width: 43px;
|
|
532
|
+
height: 25px;
|
|
533
|
+
display: flex;
|
|
534
|
+
align-items: center;
|
|
535
|
+
justify-content: center;
|
|
536
|
+
color: ${e=>e.theme.colors.grey1};
|
|
537
|
+
top: -11px;
|
|
538
|
+
position: absolute;
|
|
539
|
+
`,Sr=n.div`
|
|
540
|
+
display: flex;
|
|
541
|
+
flex-direction: column;
|
|
542
|
+
flex-grow: 1;
|
|
543
|
+
`,$r=n.div`
|
|
544
|
+
padding-left: ${e=>Fe.paddingLeft.valuePx(e.size)};
|
|
545
|
+
padding-right: ${e=>Fe.paddingRight.valuePx(e.size)};
|
|
546
|
+
`,vr=n.div`
|
|
547
|
+
padding-left: ${e=>Fe.paddingLeft.valuePx(e.size)};
|
|
548
|
+
padding-right: ${e=>Fe.paddingRight.valuePx(e.size)};
|
|
549
|
+
padding-bottom: ${i.sp3};
|
|
550
|
+
`,De={containerWidth:new c(343,544),confirmationPopUpTitleMarginTop:new c(a[6],a[7]),confirmationPopUpTitlePaddingLeftRight:new c(a[5],a[8]),submitButtonWidth:new c(145,156),cancelButtonWidth:new c(121,121),errorLineItemGap:new c(a[2],12),styledCloseIconRight:new c(a[3],a[8])},{footer:Ki}=we.getLocalizedStrings().common,fe=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,qi=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(Ji,{});case"In-Progress":return t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(An,{});default:return t.jsx(Ji,{})}},Cr=e=>{switch(e){case"Not-Started":return fe.detectDuplicates;case"In-Progress":return fe.detectingDuplicates;case"Completed":return fe.noDuplicatesFound;default:return fe.detectDuplicates}},kr=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:r,numberOfDuplicateLines:d,setShowDuplicatePopup:p,analytics:C,reimbursementId:m,submitReport:v,fetchDuplicateReimbursement:f,clearDuplicateReimbursementDetail:l,clearRemiSaveStatus:k})=>{const w=Ae(),[s,y]=Ct.useState(!0),S=ri(e),O=ri(o);Ct.useEffect(()=>{setTimeout(()=>{s&&(y(!1),o==="Not-Started"&&f())},2e3)},[o,f,s]),Ct.useEffect(()=>{S==="In-Progress"&&e==="Completed"&&(l(),p(!1))},[e,S,p,l]),Ct.useEffect(()=>{O==="In-Progress"&&o==="Completed"&&!r&&v()},[O,o,r,v]);const I=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[I?t.jsx(Ir,{size:w}):null,t.jsx(si,{action:{onOkClick:()=>{I?(l(),e==="Error"&&k(),y(!0)):(C?.trackReimbursementReviewDuplicateReportReimbursement(d,m),p(!1),po())},onCancelClick:()=>{I?(l(),e==="Error"&&k(),p(!1)):(C?.trackReimbursementSubmitAnywayDuplicateReimbursement(d,m),v())}},shouldClickAway:I,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:I?Ki.resubmit:fe.primaryButtonText,secondaryButtonText:I?Ki.cancel:fe.secondaryButtonText,primaryButtonWidth:I?De.cancelButtonWidth.value(w):De.submitButtonWidth.value(w),secondaryButtonWidth:I?De.cancelButtonWidth.value(w):De.submitButtonWidth.value(w),descriptionComponent:t.jsx(jr,{size:w,children:t.jsxs(Dr,{hasDuplicate:r,duplicateReimbursementStatus:o,children:[t.jsxs(Xt,{isDisabled:!1,isSuccess:!s,children:[s?t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}}):t.jsx(An,{}),t.jsx(Qt,{isDisabled:!1,children:s?fe.reviewingExpenses:fe.reviewedAllExpenses})]}),r||o==="Error"?t.jsxs(Zi,{size:w,children:[t.jsx(Gi,{}),t.jsx(Yi,{children:o==="Error"?fe.failedToDetect:`${d} ${fe.duplicateExpensesFound}`})]}):t.jsxs(Xt,{isDisabled:o==="Not-Started",isSuccess:o==="Completed"&&d===0,children:[t.jsx(qi,{fetchState:o}),t.jsx(Qt,{isDisabled:o==="Not-Started",children:Cr(o)})]}),e==="Error"?t.jsxs(Zi,{size:w,children:[t.jsx(Gi,{}),t.jsx(Yi,{children:fe.failedToSubmit})]}):r||o==="Error"?null:t.jsxs(Xt,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(qi,{fetchState:e}),t.jsx(Qt,{isDisabled:e==="Not-Started",children:e==="Not-Started"?fe.submitReport:fe.submittingReport})]})]})}),titleComponent:t.jsx(Tr,{size:w,children:fe.title}),showFooter:r||I,containerStyle:{width:De.containerWidth.value(w),maxWidth:"unset"}})]})},Ir=n(pn)`
|
|
551
|
+
width: ${i.sp4};
|
|
552
|
+
height: ${i.sp4};
|
|
553
|
+
color: ${e=>e.theme.colors.hero};
|
|
554
|
+
position: fixed;
|
|
555
|
+
top: 19px;
|
|
556
|
+
right: ${e=>De.styledCloseIconRight.valuePx(e.size)};
|
|
557
|
+
z-index: 11;
|
|
558
|
+
cursor: pointer;
|
|
559
|
+
&:hover {
|
|
560
|
+
color: ${e=>e.theme.colors.primary};
|
|
561
|
+
}
|
|
562
|
+
`,Gi=n(Co)`
|
|
563
|
+
width: ${i.sp4};
|
|
564
|
+
height: ${i.sp4};
|
|
565
|
+
min-width: ${i.sp4};
|
|
566
|
+
color: ${j.brandColorGoldDark};
|
|
567
|
+
`,Ji=n(Ho)`
|
|
568
|
+
width: ${i.sp3};
|
|
569
|
+
height: ${i.sp3};
|
|
570
|
+
min-width: ${i.sp3};
|
|
571
|
+
color: ${e=>e.theme.colors.grey3};
|
|
572
|
+
`,Qt=n.div`
|
|
573
|
+
color: ${e=>e.isDisabled?e.theme.colors.grey2:e.theme.colors.primary};
|
|
574
|
+
text-align: left;
|
|
575
|
+
`,Yi=n.div`
|
|
576
|
+
color: ${j.brandColorGoldDark};
|
|
577
|
+
`,Xt=n.div`
|
|
578
|
+
display: flex;
|
|
579
|
+
align-items: center;
|
|
580
|
+
gap: ${e=>e.isSuccess?i.sp2:i.sp3};
|
|
581
|
+
border: 1px solid
|
|
582
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.theme.colors.primary};
|
|
583
|
+
padding: ${i.sp3};
|
|
584
|
+
border-radius: ${i.sp2};
|
|
585
|
+
`,Dr=n.div`
|
|
586
|
+
display: flex;
|
|
587
|
+
flex-direction: column;
|
|
588
|
+
gap: ${i.sp3};
|
|
589
|
+
margin-bottom: ${e=>e.hasDuplicate||e.duplicateReimbursementStatus==="Error"?0:i.sp3};
|
|
590
|
+
`,Zi=n.div`
|
|
591
|
+
display: flex;
|
|
592
|
+
align-items: center;
|
|
593
|
+
gap: ${e=>De.errorLineItemGap.valuePx(e.size)};
|
|
594
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGold};
|
|
595
|
+
background-color: ${j.alertLight};
|
|
596
|
+
padding: ${i.sp3};
|
|
597
|
+
border-radius: ${i.sp2};
|
|
598
|
+
text-align: left;
|
|
599
|
+
`,Tr=n(di)`
|
|
600
|
+
margin-top: ${e=>De.confirmationPopUpTitleMarginTop.valuePx(e.size)};
|
|
601
|
+
padding-left: ${e=>De.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
602
|
+
padding-right: ${e=>De.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
|
+
`,jr=n(yn)`
|
|
607
|
+
color: ${e=>e.theme.colors.hero};
|
|
608
|
+
padding-left: ${e=>De.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
609
|
+
padding-right: ${e=>De.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
610
|
+
margin-bottom: ${i.sp5};
|
|
611
|
+
margin-top: ${i.sp4};
|
|
612
|
+
white-space: pre-line;
|
|
613
|
+
width: -webkit-fill-available;
|
|
614
|
+
`,An=n(vo)`
|
|
615
|
+
width: ${i.sp4};
|
|
616
|
+
height: ${i.sp4};
|
|
617
|
+
min-width: ${i.sp4};
|
|
618
|
+
color: ${j.success};
|
|
619
|
+
`,X={rightMargin:new c(a[3],a[8]),leftMargin:new c(a[3],a[6]),bottomMargin:new c(56,56),closeMarginTop:new c(0,19),closeMarginRight:new c(a[3],a[8]),rightSectionWidth:new c(100,58),leftSectionWidth:new c(100,42),footerButtonWidth:new c(120,165),right:new c(a[3],a[0]),actionsContainerRight:new c(a[0],a[6]),otherActionsContainerBottom:new c(58,44),duplicateBannerWrapperMarginTop:new c(a[5],a[3]),duplicateBannerWrapperMarginRight:new c(a[3],a[8]),duplicateBannerWrapperMarginBottom:new c(a[5],a[3]),duplicateBannerWrapperMarginLeft:new c(a[3],a[6]),navBarWidth:new c(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:b,bulkActions:Qi}},common:{currency:{currencyCode:Ne,currencySymbol:jt},texts:{comments:Or},strings:{empty:Pr}},collaboration:{threads:{placeholder:{addANewComment:Lr,replyAComment:Rr},tooltip:{resolveComment:Ar,unResolveComment:zr}}},dateFormat:Xi}=we.getLocalizedStrings(),en="editReimbursementDetailPage",tn=e=>`${e}_form`,Br=(e,o,r,d,p,C,m,v,f)=>{const l=e.outOfPocket,k=e.mileage,w=l.merchant,s=l.recommendations;return{lineIndex:C,lineId:e?.lineId??String(C+1),reimbursementType:e?.type??b.outOfPocketKey,file:e?.file,homeCurrencyConversions:{amount:e?.homeCurrencyConversions?.amount??0,currencyCode:e?.homeCurrencyConversions?.currencyCode??m.currencyCode,currencySymbol:e?.homeCurrencyConversions?.currencySymbol??m.currencySymbol},outOfPocket:{recommendedAccount:l.recommendedAccount,isCategoryUpdateSelected:l.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:l.isCategoryFirstTimeAutofilled??!1,retainedAccount:l.retainedAccount,isRetainedCategorySelected:l.isRetainedCategorySelected??!1,recommendations:s??[],transactionDate:l?.transactionDate?.toDate()??void 0,class:{allOptions:Ve(qe(r,[])),selectedOption:l?.lineDetail?.class?.classId??f},account:{allOptions:Ve(zt(o,s)),selectedOption:l.lineDetail?.account?.qboId??l.lineDetail?.account?.accountId},amount:{amount:l?.amount??0,currencyCode:l?.currencyCode??m.currencyCode,currencySymbol:l?.currencySymbol??m.currencySymbol,currency:{allOptions:v.map(y=>({label:`${y.currencyCode} - ${y.currency}`,value:y.currencyCode,countryCode:ci(y.countryCode)})),selectedOption:l?.currencyCode??m.currencyCode??Ne}},memo:l?.description??void 0,merchant:{allOptions:d.map(y=>y.id).filter(y=>!!y),selectedOption:w?.id?w?.id:w?.name?w?.name:e?.lineId!=null?p[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:Ve(qe(r,[])),selectedOption:k?.lineDetail?.class?.classId},distanceInMiles:k?.distanceMileage?.value,amount:{amount:k?.amount??0,currencyCode:k?.currencyCode??m.currencyCode,currencySymbol:k?.currencySymbol??m.currencySymbol},memo:k?.description}}},ei=(e,o,r)=>{const d=[];return Object.values(e.lineDetailSection).forEach((p,C)=>{p?.lineId!=null&&d.push(Br(p,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,C,o,e.allCurrencies,e.loggedInUserDepartmentId))}),d.length===0&&d.push(Rn(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[At]:{reportTitle:e.whatForSection.reportTitle},[bi]:d,[bt]:{selectedOption:e.paymentTo,allOptions:r.map(p=>p.bankAccountId)}}},ti=(e,o)=>{const r=d=>d.lineId==null||o[d.lineId]?.fetchState==="In-Progress"?0:(o[d.lineId]?.fetchState,d.type===b.mileageKey?d?.mileage?.amount??0:d?.outOfPocket?.currencyCode!==Ne&&d.homeCurrencyConversions?.amount!==d?.outOfPocket?.amount?d.homeCurrencyConversions?.amount??0:d?.outOfPocket?.amount??0);return Object.values(e).reduce((d,p)=>d+r(p),0)},ii=(e,o,r,d,p,C,m,v)=>{const f={};return e.lineInfo.forEach(l=>{const k=v.find(O=>O.classId===l.mileage.class.selectedOption),w=m.find(O=>O.qboId===l.outOfPocket.account.selectedOption||O.accountId===l.outOfPocket.account.selectedOption),s=v.find(O=>O.classId===l.outOfPocket.class.selectedOption),y=o.find(O=>O.id===l.outOfPocket.merchant.selectedOption),S=C.find(O=>O.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;f[l.lineId]={fileId:l.file?.fileId,lineId:l.lineId,type:l.reimbursementType,homeCurrencyConversions:l.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:l.mileage.memo??"",lineDetail:{class:k},transactionDate:l.mileage.transactionDate!=null?nt(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??S,currencySymbol:l.mileage.amount?.currencySymbol??S,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:w},transactionDate:l.outOfPocket.transactionDate!=null?nt(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??S,currencySymbol:S,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:y?.id??"",name:y?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:f,totalAmount:{amount:d,...r},currencyConversionStateByLineId:p,paymentTo:e.paymentTo.selectedOption}},Fl=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:d,uploadInvoiceEndPoint:p,isReimbursementCommentingEnabled:C,isUserAdmin:m,analytics:v,reimbursementId:f,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:w,bankAccounts:s,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:S,bankAccountToCreate:O,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:P,onFetchBankName:q,onSaveBankAccount:L,fetchDuplicateReimbursement:D,clearDuplicateReimbursementDetail:z,clearRemiSaveStatus:ee,removeDuplicateReimbursementForLine:ie,onDuplicateLineClick:ne,onExistingMerchantChange:Y,onNewMerchantChange:G,onReceiptsUpload:F,saveRemiDetails:Z,submitRemiDetails:H,discardReimbursementDetailsFromLocalStore:A,onReimbursementDetailsChanged:oe,updateReimbursementType:se,onHomeCurrencyConversionUpdate:U,redirectToReimbursementListScreen:ue,redirectToReimbursementDetailScreen:Ee,deleteReimbursement:me,removeFileFromLine:ye,onZeniLogoClick:ce,onAmountChanged:je,updateInvoiceUploadFetchState:Oe,clearTentativeNameForLine:Pe,onAddNewRule:pe,onFetchLinkTokenClick:Le,onEstablishConnectionClick:he,deleteBankAccount:ve,onBackClickFromBankAccountPage:Ge})=>{const h=$.useRef(null),ae=$.useRef(null),at=ri(e.uploadStatus),_e=ft(),Re=wt(),[Je,ze]=$.useState(!1),[He,Ke]=$.useState(!1),[Ye,Ze]=$.useState("save"),[re,rt]=$.useState(ti(e.lineDetailSection,e.currencyConversionStatus)),[mt,Qe]=$.useState(!1),[V,pt]=$.useState(null),[N,de]=$.useState(!1),St=`dashboard_${Re.currentTenant?.companyId}`,Ce=an({mode:"all",reValidateMode:"onChange",defaultValues:$.useMemo(()=>ei(e,r,s),[e,r,s]),values:$.useMemo(()=>ei(e,r,s),[e,r,s]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:B,dirtyFields:zn}=Ce.formState,Bn=async(g,T)=>{const{lineInfo:u}=T,x=Number(g.split(".")[1]);if(g.includes("reportTitle")||g.includes("memo"))return;if(g.includes("reimbursementType")){const M=u[x].mileage,W=u[x].outOfPocket;u[x]={...u[x],outOfPocket:{transactionDate:W.transactionDate??void 0,class:{allOptions:W.class.allOptions??Ve(qe(e.classHierarchyList,[])),selectedOption:W.class.selectedOption??void 0},account:{allOptions:W.account.allOptions??Ve(zt(e.accountsHierarchyList,[])),selectedOption:W.account.selectedOption??void 0},amount:W.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(xe=>({label:`${xe.currencyCode} - ${xe.currency}`,value:xe.currencyCode,countryCode:ci(xe.countryCode)})),selectedOption:r.currencyCode??Ne}},memo:W.memo??void 0,merchant:W.merchant??void 0,recommendations:W.recommendations??[],recommendedAccount:W.recommendedAccount??void 0,isCategoryUpdateSelected:W.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:W.isCategoryFirstTimeAutofilled??!1,retainedAccount:W.retainedAccount??void 0,isRetainedCategorySelected:W.isRetainedCategorySelected??!1},mileage:{transactionDate:M.transactionDate??void 0,class:{allOptions:M.class.allOptions??Ve(qe(e.classHierarchyList,[])),selectedOption:M.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:M.distanceInMiles,amount:{amount:M?.amount?.amount??0,currencyCode:M?.amount?.currencyCode??Ne,currencySymbol:M?.amount?.currencySymbol??jt},memo:M.memo??void 0}}}else if(g.includes("mileage.distanceInMiles")){const{distanceInMiles:M}=u[x].mileage,W=d?.mileageUnitAmount??0;u[x].mileage={...u[x].mileage,amount:{amount:M!=null?M*W:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(g.includes("outOfPocket.amount")&&u[x].lineId){const M=u[x].outOfPocket.amount,W=e.allCurrencies.find(xe=>xe.currencyCode===M?.currency.selectedOption)?.currencySymbol;if(M?.currencyCode!==M?.currency.selectedOption){const xe=M?.currency?.allOptions||[];u[x].outOfPocket.amount={currency:{allOptions:xe,selectedOption:M?.currency?.selectedOption},amount:u[x].outOfPocket?.amount?.amount??0,currencyCode:M?.currency.selectedOption??Ne,currencySymbol:W??jt}}if(M?.currency.selectedOption!==Ne)Qe(!0),_n(u[x].lineId,Ne);else{const xe={};u.forEach(Gt=>{xe[Gt.lineId]={lineId:Gt.lineId,homeCurrencyConversions:Gt.homeCurrencyConversions}}),u[x].homeCurrencyConversions={amount:M.amount??0,currencyCode:M?.currency.selectedOption??Ne,currencySymbol:W??jt};const ki=ti(xe,e.currencyConversionStatus);re!==ki&&rt(ki)}}else if(g.includes("outOfPocket.isRetainedCategorySelected"))u[x].outOfPocket.isRetainedCategorySelected===!0&&(u[x].outOfPocket.isCategoryUpdateSelected=!1,u[x].outOfPocket.account.selectedOption=u[x].outOfPocket.retainedAccount?.qboId);else if(g.includes("outOfPocket.isCategoryUpdateSelected"))if(u[x].outOfPocket.isCategoryUpdateSelected===!0)u[x].outOfPocket.account.selectedOption=u[x].outOfPocket.recommendedAccount?.qboId,u[x].outOfPocket.isRetainedCategorySelected=!1;else{const M=u[x].lineId,W=e.editRemiInitialDetails.lineDetailSection[M]?.lineDetail?.account?.qboId;u[x].outOfPocket.account.selectedOption=W,u[x].outOfPocket.isRetainedCategorySelected=!1}else g.includes("outOfPocket.account")&&(u[x].outOfPocket.recommendations.length>0&&(u[x].outOfPocket.recommendedAccount=u[x].outOfPocket.recommendations[0].account),u[x].outOfPocket.recommendedAccount?.qboId!=null&&u[x].outOfPocket.account.selectedOption===u[x].outOfPocket.recommendedAccount?.qboId?u[x].outOfPocket.isCategoryUpdateSelected=!0:u[x].outOfPocket.isCategoryUpdateSelected=!1,u[x].outOfPocket.retainedAccount?.qboId!=null&&u[x].outOfPocket.account.selectedOption===u[x].outOfPocket.retainedAccount?.qboId?u[x].outOfPocket.isRetainedCategorySelected=!0:u[x].outOfPocket.isRetainedCategorySelected=!1,u[x].outOfPocket.isCategoryFirstTimeAutofilled=!1);const vt=ii({...T,lineInfo:u},e.merchantList.merchants,r,re,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(oe?.(vt),g.includes("outOfPocket.merchant")){const M=u[x].lineId,W=u[x].outOfPocket.merchant.selectedOption??"";u[x].outOfPocket.merchant.allOptions.find(xe=>xe===W)!=null?Y(W,M):G(W,M)}},fi=$.useMemo(()=>Ii((g,T)=>Bn(g,T),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);$.useEffect(()=>{const g=Ce.watch((T,{name:u})=>{u!=null&&T!=null&&fi(u,T)});return()=>{g.unsubscribe()}},[fi,Ce]),$.useEffect(()=>{const g=Fo(Object.values(e.currencyConversionStatus)),T=g.fetchState==="In-Progress"||g.fetchState==="Error";Qe(T)},[e.currencyConversionStatus]),$.useEffect(()=>{for(const T in e.currencyConversionStatus){const u=e.lineDetailSection[T],x=e.lineDetailSection[T];e.currencyConversionStatus[T].fetchState==="Completed"&&x!=null&&u.type!==b.mileageKey&&!rn(u?.homeCurrencyConversions,x.homeCurrencyConversions)&&U({amount:u?.homeCurrencyConversions?.amount??0,currencyCode:u?.homeCurrencyConversions?.currencyCode??Ne,currencySymbol:u?.homeCurrencyConversions?.currencySymbol??jt},T,f)}const g=ti(e.lineDetailSection,e.currencyConversionStatus);re!==g&&rt(g)},[e.currencyConversionStatus,e.lineDetailSection]),$.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(A(f),ue?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,f,A,ue]);const R=Ae(),[Be,ht]=$.useState(f==null),[gt,Mn]=$.useState(1),[Fn,Et]=$.useState(!1),[En,Nn]=$.useState(""),[Nt,Wn]=$.useState(null),[Un,lt]=$.useState(!1),[Vn,wi]=$.useState(!1),[Wt,Ut]=$.useState([]),[be,$t]=$.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),_n=$.useRef(Ii((g,T)=>je(g,T),500,{trailing:!0})).current;$.useEffect(()=>{at==="In-Progress"&&(e.uploadStatus==="Completed"?(Ce.reset(ei(e,r,s),{keepDefaultValues:!0}),ze(!1),ht(!1)):e.uploadStatus==="Error"&&ze(!1))},[at,e.uploadStatus,Ce,e,Je,ze,Be,r,s,v]),$.useEffect(()=>{e.uploadStatus==="In-Progress"&&Be===!1&&ze(!0)},[e.uploadStatus,ze,Be]);const Vt=e.remiStage==="draft"?b.newReimbursementTitle:b.editReimbursementTitle,Hn={onOkClick:()=>{if(lt(!1),be.primaryButtonText===b.buttons.discard)A(f),e.remiStage==="draft"?ue?.():Ee?.();else if(be.primaryButtonText===b.buttons.delete)be.title===b.deleteBankAccountTitle?ve?.(En):me?.();else if(be.primaryButtonText===b.buttons.yes&&Nt!=null){const g=Wt.filter(T=>T!==gt.toString());Ut(g),F(Nt,gt,!0)}},onCancelClick:()=>{if(lt(!1),be.secondaryButtonText===b.buttons.no){const g=Wt.filter(T=>T!==gt.toString());Ut(g),F(Nt,gt,!1)}}},xi=()=>{B||yo(zn)?($t({title:b.discardTitle,description:b.discardDescription,primaryButtonText:b.buttons.discard,secondaryButtonText:b.buttons.cancel}),lt(!0)):(A(f),ue?.())},Kn=()=>{$t({title:e.remiStage==="draft"?b.deleteDraftTitle:b.deleteReportTitle,description:b.deleteAlertDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),lt(!0)},qn=g=>{Nn(g),$t({title:b.deleteBankAccountTitle,description:b.deleteBankAccountDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),lt(!0)},Gn=()=>{$t({title:b.overwriteTitle,description:b.overwriteDescription,primaryButtonText:b.buttons.yes,secondaryButtonText:b.buttons.no}),lt(!0)},Jn=()=>{let g=!0;const T=[];return Object.values(e.lineDetailSection).forEach((u,x)=>{u.type===b.outOfPocketKey&&jn(u)>=75&&u.file==null&&(T.push(u.lineId),g=!1)}),Ut(T),g},Si=()=>{if(m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")xi();else{Ze("save");const g=Ce.getValues(),T=ii(g,e.merchantList.merchants,r,re,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);oe?.(T);const u=T.whatForSection?.reportTitle;u!=null&&u.length>0?Z(e.remiStatus==="rejected"?"pending_approval":"draft"):Ce.trigger(`${At}.reportTitle`,{shouldFocus:!0})}};let _t=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(g=>{g.length>0&&(_t=!0)});let $i=[];if(e.remiId==null){const g=re??0;g>0&&($i=e.approvalRules.allApprovalRules?.filter(T=>{const u=T.criteria[0].range;if(u.max!=null){if(u.min.amount<g&&u.max.amount>=g)return T}else if(u.min.amount<g)return T;return null}).map(T=>({...T,stepsWithStatus:T.steps.map(u=>({...u,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const Yn=g=>{const T=Jn();return Ce.handleSubmit(()=>{T&&(Ze("submit"),v?.trackReimbursementSubmitReimbursement(e.createTime?.format(Xi.analytics.MMMDashDDDashYYYYFormat)??yi().format(Xi.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,re,f),z(),wi(!0))})(g)},Zn=()=>{const g=Ce.getValues(),T=ii(g,e.merchantList.merchants,r,re,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);oe?.(T),H()},Qn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,Xn=e.reimbursementInfo?.paymentDate!=null?nt(vn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,eo=e.reimbursementInfo?.expectedDepositDate??Xn,to=f!=null&&e.remiStage==="draft",vi=Eo(e.duplicateLineByLineId),Ht=e.duplicateReimbursementStatus.fetchState==="Completed"&&vi>0,{requestToOpenThread:Kt,setRequestToOpenThread:Ci,setOpenThread:qt}=$.useContext(oo),{threads:yt,isLoading:Xe}=ao({application:"dashboard",companyId:Re.currentTenant?.companyId,tab:"reimbursement",entityId:f,isGlobalComment:!1},"both",!1);$.useEffect(()=>{Kt?.threadId!=null&&yt.length>0&&!Xe&&(qt(Kt.threadId),Ci(null))},[Kt,yt,Xe,qt,Ci]);const io=$.useMemo(()=>f==null?[]:yt.filter(g=>g.resolved===!1&&!g.id.includes(ro)),[yt,f]).length,no=(g,T)=>{qt(T);const u=g.entityType.split("."),x=parseInt(u[2]);if(isNaN(x)){de(!1);return}const vt=`${x+1}`,M=e.lineDetailSection[x+1].type;u.includes(b.mileageKey)&&M===b.outOfPocketKey?se(Ai(b.mileageKey),vt,f):u.includes(b.outOfPocketKey)&&M===b.mileageKey&&se(Ai(b.outOfPocketKey),vt,f),de(!1)};return t.jsx(Fr,{ref:h,children:t.jsx(lo,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:ae.current??null}},children:t.jsxs(ln,{...Ce,children:[t.jsx("form",{id:tn(en),onSubmit:g=>Yn(g),children:t.jsxs(pl,{windowSize:R,ref:ae,children:[Un?t.jsx(si,{titleComponent:t.jsx(cn,{children:be.title}),descriptionComponent:t.jsx(sn,{children:be.description}),primaryButtonText:be.primaryButtonText,secondaryButtonText:be.secondaryButtonText,action:Hn,proceedButtonVariant:be.title===b.deleteBankAccountTitle||be.title===b.deleteDraftTitle||be.title===b.deleteReportTitle||be.title===b.discardTitle?"danger":"primary",isEditPopup:be.title===b.deleteBankAccountTitle}):null,Vn?t.jsx(kr,{reimbursementId:f,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:Ht,numberOfDuplicateLines:vi,setShowDuplicatePopup:wi,submitReport:Zn,fetchDuplicateReimbursement:D,clearDuplicateReimbursementDetail:z,clearRemiSaveStatus:ee,analytics:v}):null,Je?t.jsx(on,{windowSize:R}):null,Be?t.jsxs(on,{windowSize:R,"data-testid":K("skip-autofill-section"),children:[R==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Yr,{children:t.jsx(ai,{partOfSkipAutoFill:!0,size:R,onClick:()=>ht(!1),"data-testid":K("close-invoice-upload"),children:t.jsx(oi,{withOverlay:!0,children:t.jsx(ni,{})})})}),t.jsx(Qr,{children:Vt})]}):null,t.jsx(kn,{showAutofill:Be,analytics:v,onSkipAutofill:()=>{v?.trackReimbursementSkipAutofill(),ht(!1)},uploadInvoiceEndPoint:p,authParams:o,style:{width:X.leftSectionWidth.valuePercentage(R),boxSizing:"border-box",backgroundColor:R==="small"?_e.colors.grey4:"unset",padding:R==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:R==="small"?i.sp0:void 0},onInvoiceUpload:g=>F(g,gt,!0),dropFilePlaceholder:{upload:b.dropReceipt.upload,single:b.dropReceipt.single,or:b.dropReceipt.or,multiple:b.dropReceipt.multiple,receipts:b.dropReceipt.receipts},updateInvoiceUploadFetchState:Oe,showInfoText:!1,allowMultiFiles:Be,type:"reimbursement"}),R!=="small"?t.jsx(Zr,{children:t.jsx(ai,{partOfSkipAutoFill:!0,onClick:()=>ht(!1),"data-testid":K("close-invoice-upload"),children:t.jsx(oi,{withOverlay:!0,children:t.jsx(ni,{})})})}):null]}):null,t.jsxs(sl,{windowSize:R,"data-testid":K("edit-reimbursement-detail-page-nav-bar-container"),children:[R!=="small"?t.jsx(Di,{style:{width:"42%"},"data-testid":K("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(cl,{"data-testid":K("zeni-logo-spend-management-reimbursement-detail-page"),onClick:ce}),enableTitleOnScroll:!1,scrollableContent:h,backgroundColor:_e.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,R!=="small"?t.jsx(Er,{}):null,t.jsx(Di,{style:{width:X.navBarWidth.valuePercentage(R)},"data-testid":K("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:Vt,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Be!=!0?t.jsxs(dl,{children:[C&&f!=null?t.jsxs(ul,{isDisabled:Xe,"data-testid":K("remi-comment-button"),onClick:Xe?()=>null:g=>{g.preventDefault(),g.stopPropagation(),pt({roomId:St,companyId:Re.currentTenant?.companyId??"",companyName:Re.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:f}),de(!0),v?.trackCommentActivity("reimbursement","clicked",Re.currentTenant?.companyName??"",Re.controllersList.controllers.map(T=>co(T)),void 0,void 0,"page icon")},children:[t.jsx(so,{count:Xe?void 0:io,isLoading:Xe,style:{left:"12px"}}),t.jsx(ml,{})]}):null,t.jsx(ai,{size:R,onClick:()=>xi(),"data-testid":K("close-nav-bar"),children:t.jsx(oi,{withOverlay:!1,children:t.jsx(ni,{})})})]}):null,enableTitleOnScroll:R!=="small",scrollThreshold:64,scrollableContent:h,backgroundColor:_e.colors.grey4})]}),R==="small"?t.jsxs(t.Fragment,{children:[t.jsx(ll,{children:Vt}),t.jsx(uo,{progressSectionObj:Qn,createDate:e.createTime,paymentDate:eo,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:f!=null?!0:e.uploadStatus==="Completed"}),_t&&t.jsxs(tl,{children:[t.jsx(el,{}),t.jsx(il,{children:b.banner})]}),e.isProcessing?t.jsx(dn,{variant:"warning",style:{margin:R==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Qi.duplicateWarning.title,description:Qi.duplicateWarning.description}):Ht?t.jsxs(nl,{size:R,children:[t.jsx(Vr,{}),t.jsxs(al,{children:[t.jsx(ol,{children:b.thereSeems}),t.jsx(rl,{children:b.pleaseFind})]})]}):null,t.jsx(Tn,{isReimbursementCommentingEnabled:C,sectionId:At,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(er,{onDuplicateLineClick:ne,reimbursementId:f,remiDetails:e,uploadInvoiceEndPoint:p,authParams:o,showSkipAutoFill:Be,setShowSkipAutoFill:ht,isReimbursementCommentingEnabled:C,isAutoFieldsExist:_t,totalAmount:re,removeFileFromLine:ye,onReplaceClick:Gn,onReceiptsUpload:F,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Mn,setUploadedReceiptPayload:Wn,updateInvoiceUploadFetchState:Oe,clearTentativeNameForLine:Pe,defaultCurrency:r,companyMileageConfigInfo:d,isUserAdmin:m,setShowBankAccountPage:Et,bankAccounts:s,onDeleteBankAccount:qn,analytics:v,fileRequiredLineIds:Wt,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:S,showTotalAmountLoader:mt,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:Ht,removeDuplicateReimbursementForLine:ie,scrollContainerRef:h}),t.jsxs(hl,{showSkipAutoFill:Be,windowSize:R,children:[R!=="small"?t.jsx(nn,{}):null,t.jsx(gl,{windowSize:R,children:t.jsxs(yl,{windowSize:R,children:[e.remiId!==void 0&&t.jsx(Ti,{amount:re??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:pe,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&re!=null&&re>0?t.jsx(Ti,{amount:re??0,activities:$i,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(bl,{}),t.jsxs(Xr,{showSkipAutoFill:Be,windowSize:R,children:[R!=="small"?t.jsx(nn,{}):null,t.jsx(Nr,{windowSize:R,onClick:g=>{g.stopPropagation(),He===!0&&Ke(!1)},children:t.jsx(un,{formId:tn(en),separatorStyle:{marginRight:i.sp4},showCancel:y,cancelBtn:{label:m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?R==="small"?b.buttons.discard:b.buttons.discardChanges:R==="small"?b.buttons.save:b.buttons.saveChanges,isLoading:Ye==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:Si,style:{width:X.footerButtonWidth.value(R)},reverseSpinnerColor:!1},primaryBtn:{label:Mr(y,m,e,R),isDisabled:!y,style:{width:y?X.footerButtonWidth.value(R):"auto"},type:y?"submit":"button",onClick:y?()=>null:Si,isLoading:!y&&Ye==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Wr,{children:t.jsxs(qr,{windowSize:R,children:[He?t.jsx(mn,{onClickAway:()=>Ke(!1),children:t.jsx(Kr,{windowSize:R,"data-testid":K("remi-other-actions-container"),children:t.jsx(Gr,{onClick:Kn,"data-testid":K("delete-report-action"),children:b.buttons.deleteReport})})}):null,t.jsx(Hr,{windowSize:R,children:to===!0?t.jsx(_r,{windowSize:R,"data-testid":K("more-details-button"),children:t.jsx(Ur,{onClick:()=>Ke(!He)})}):null})]})}),style:{minHeight:62}})})]}),C&&f!=null?t.jsx(Mo,{id:St,children:t.jsx(mo,{isDrawerOpen:N,allowComposer:!0,drawerTitle:Or,threads:yt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:V?.companyId??Pr,isGlobalComment:!1,tab:"reimbursement"},isLoading:Xe,threadMetadata:V?{companyName:V.companyName,companyId:V.companyId,entityId:V.entityId,entityType:V.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:Lr,replyComposerPlaceholder:Rr,threadResolve:Ar,threadUnResolve:zr},onThreadClick:(g,T)=>no(g,T),onCloseAllThreadsDrawer:()=>de(!1),drawerSectionStyle:{width:"400px",backgroundColor:_e.colors.background}})}):null]})}),Fn?t.jsx(Jr,{windowSize:R,children:t.jsx(pr,{bankAccountCreationState:k,setShowBankAccountPage:Et,plaidConnectionDetails:l,onFetchLinkTokenClick:Le,onEstablishConnectionClick:he,onSaveHandler:L,bankAccountToCreate:O,bankNameByRouting:w,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:P,onFetchBankName:q,onBackClick:()=>{Ge(),Et(!1)}})}):null]})})})},Mr=(e,o,r,d)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?b.buttons.resubmit:b.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?d==="small"?b.buttons.discard:b.buttons.discardChanges:d==="small"?b.buttons.save:b.buttons.saveChanges,Fr=n.div`
|
|
620
|
+
position: relative;
|
|
621
|
+
height: 100vh;
|
|
622
|
+
overflow-y: scroll;
|
|
623
|
+
`,Er=n.div`
|
|
624
|
+
position: fixed;
|
|
625
|
+
top: 0;
|
|
626
|
+
left: 42vw;
|
|
627
|
+
width: 100%;
|
|
628
|
+
height: 100vh;
|
|
629
|
+
background: transparent;
|
|
630
|
+
box-shadow: 0 2px ${i.sp1} ${({theme:e})=>e.colors.dropShadowNormal};
|
|
631
|
+
pointer-events: none;
|
|
632
|
+
z-index: 3;
|
|
633
|
+
`,Nr=n.div`
|
|
634
|
+
width: ${e=>X.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
635
|
+
`,Wr=n.div`
|
|
636
|
+
display: flex;
|
|
637
|
+
justify-content: flex-end;
|
|
638
|
+
`,Ur=n(fo)`
|
|
639
|
+
cursor: pointer;
|
|
640
|
+
color: ${e=>e.theme.colors.hero};
|
|
641
|
+
width: ${i.sp5};
|
|
642
|
+
height: ${i.sp5};
|
|
643
|
+
&:hover {
|
|
644
|
+
color: ${e=>e.theme.colors.primary};
|
|
645
|
+
}
|
|
646
|
+
`,Vr=n(Bo)`
|
|
647
|
+
width: ${i.sp4};
|
|
648
|
+
height: ${i.sp4};
|
|
649
|
+
color: ${j.brandColorGoldDark};
|
|
650
|
+
`,_r=n.div`
|
|
651
|
+
display: flex;
|
|
652
|
+
margin-left: ${e=>e.windowSize==="small"?i.sp4:i.sp5};
|
|
653
|
+
cursor: pointer;
|
|
654
|
+
color: ${e=>e.theme.colors.grey1};
|
|
655
|
+
&:hover {
|
|
656
|
+
color: ${e=>e.theme.colors.primary};
|
|
657
|
+
}
|
|
658
|
+
`,Hr=n.div`
|
|
659
|
+
display: flex;
|
|
660
|
+
justify-content: center;
|
|
661
|
+
align-items: center;
|
|
662
|
+
`,Kr=n.div`
|
|
663
|
+
display: flex;
|
|
664
|
+
width: auto;
|
|
665
|
+
align-items: center;
|
|
666
|
+
justify-content: center;
|
|
667
|
+
flex-direction: column;
|
|
668
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
669
|
+
color: ${e=>e.theme.colors.hero};
|
|
670
|
+
cursor: pointer;
|
|
671
|
+
padding-top: ${i.sp1};
|
|
672
|
+
padding-bottom: ${i.sp1};
|
|
673
|
+
position: absolute;
|
|
674
|
+
bottom: ${e=>X.otherActionsContainerBottom.valuePx(e.windowSize)};
|
|
675
|
+
z-index: 3;
|
|
676
|
+
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
677
|
+
border-radius: ${i.sp1};
|
|
678
|
+
right: ${e=>X.right.valuePx(e.windowSize)};
|
|
679
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.grey1} 3D`};
|
|
680
|
+
`,qr=n.div`
|
|
681
|
+
width: 100%;
|
|
682
|
+
justify-content: flex-end;
|
|
683
|
+
position: ${e=>e.windowSize==="small"?"static":"relative"};
|
|
684
|
+
right: ${e=>X.actionsContainerRight.valuePx(e.windowSize)};
|
|
685
|
+
height: 100%;
|
|
686
|
+
display: flex;
|
|
687
|
+
`,Gr=n(pi)`
|
|
688
|
+
display: flex;
|
|
689
|
+
align-items: center;
|
|
690
|
+
width: -webkit-fill-available;
|
|
691
|
+
padding-left: ${i.sp3};
|
|
692
|
+
padding-right: ${i.sp3};
|
|
693
|
+
height: ${i.sp6};
|
|
694
|
+
box-sizing: border-box;
|
|
695
|
+
&:hover {
|
|
696
|
+
background-color: ${e=>e.theme.colors.background};
|
|
697
|
+
}
|
|
698
|
+
`,Jr=n.div`
|
|
699
|
+
overflow-y: auto;
|
|
700
|
+
z-index: 5;
|
|
701
|
+
height: 100vh;
|
|
702
|
+
position: fixed;
|
|
703
|
+
background: ${e=>e.theme.colors.grey4};
|
|
704
|
+
width: ${e=>X.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
705
|
+
right: 0;
|
|
706
|
+
top: 0;
|
|
707
|
+
`,Yr=n.div`
|
|
708
|
+
background: ${e=>e.theme.colors.grey4};
|
|
709
|
+
height: 44px;
|
|
710
|
+
display: flex;
|
|
711
|
+
align-items: center;
|
|
712
|
+
justify-content: end;
|
|
713
|
+
`,Zr=n.div`
|
|
714
|
+
width: 58%;
|
|
715
|
+
`,Qr=n(di)`
|
|
716
|
+
padding: ${i.sp3} ${i.sp3} 0 ${i.sp3};
|
|
717
|
+
background: ${e=>e.theme.colors.grey4};
|
|
718
|
+
color: ${e=>e.theme.colors.primary};
|
|
719
|
+
`,Xr=n.div`
|
|
720
|
+
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
721
|
+
width: 100%;
|
|
722
|
+
position: fixed;
|
|
723
|
+
bottom: 0;
|
|
724
|
+
z-index: 3;
|
|
725
|
+
`,nn=n.div`
|
|
726
|
+
width: 42%;
|
|
727
|
+
`,el=n(ui)`
|
|
728
|
+
color: ${e=>e.theme.colors.primary};
|
|
729
|
+
width: ${i.sp3};
|
|
730
|
+
height: ${i.sp3};
|
|
731
|
+
`,tl=n.div`
|
|
732
|
+
display: flex;
|
|
733
|
+
gap: ${i.sp2};
|
|
734
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
735
|
+
padding: ${i.sp3};
|
|
736
|
+
border-radius: ${i.sp2};
|
|
737
|
+
align-items: center;
|
|
738
|
+
margin: ${i.sp3};
|
|
739
|
+
`,il=n.span`
|
|
740
|
+
color: ${e=>e.theme.colors.hero};
|
|
741
|
+
`,nl=n.div`
|
|
742
|
+
display: flex;
|
|
743
|
+
gap: ${i.sp2};
|
|
744
|
+
padding: ${i.sp3};
|
|
745
|
+
border-radius: ${i.sp2};
|
|
746
|
+
align-items: start;
|
|
747
|
+
margin-top: ${e=>X.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
748
|
+
margin-right: ${e=>X.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
749
|
+
margin-bottom: ${e=>X.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
750
|
+
margin-left: ${e=>X.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
751
|
+
background-color: ${j.alertLight};
|
|
752
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
753
|
+
`,ol=n(Ft)`
|
|
754
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
755
|
+
`,al=n.div`
|
|
756
|
+
width: 100%;
|
|
757
|
+
`,rl=n(gi)`
|
|
758
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
759
|
+
`,ll=n(di)`
|
|
760
|
+
letter-spacing: -0.02em;
|
|
761
|
+
color: ${e=>e.theme.colors.primary};
|
|
762
|
+
margin: ${i.sp3};
|
|
763
|
+
`,on=n.div`
|
|
764
|
+
display: flex;
|
|
765
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
766
|
+
height: 100vh;
|
|
767
|
+
visibility: inherit;
|
|
768
|
+
width: 100%;
|
|
769
|
+
background-color: ${j.overlayDark};
|
|
770
|
+
z-index: 11; // This is to ensure that the skip autofill section is above the AI CFO icon whose value is 10
|
|
771
|
+
position: fixed;
|
|
772
|
+
`,sl=n.div`
|
|
773
|
+
z-index: 3;
|
|
774
|
+
min-height: 62px;
|
|
775
|
+
height: 62px;
|
|
776
|
+
display: flex;
|
|
777
|
+
align-items: center;
|
|
778
|
+
width: 100%;
|
|
779
|
+
justify-content: space-between;
|
|
780
|
+
position: fixed;
|
|
781
|
+
`,cl=n(ho)`
|
|
782
|
+
display: flex;
|
|
783
|
+
color: ${e=>e.theme.colors.brandColorJade};
|
|
784
|
+
cursor: pointer;
|
|
785
|
+
width: ${i.sp4};
|
|
786
|
+
height: ${i.sp4};
|
|
787
|
+
`,ni=n(pn)`
|
|
788
|
+
cursor: pointer;
|
|
789
|
+
width: ${i.sp4};
|
|
790
|
+
height: ${i.sp4};
|
|
791
|
+
float: right;
|
|
792
|
+
color: inherit;
|
|
793
|
+
`,oi=n.div`
|
|
794
|
+
color: ${e=>e.theme.colors.hero};
|
|
795
|
+
&:hover {
|
|
796
|
+
color: ${e=>e.withOverlay?j.primaryDark:e.theme.colors.primary};
|
|
797
|
+
}
|
|
798
|
+
`,dl=n.div`
|
|
799
|
+
margin-top: ${e=>X.closeMarginTop.valuePx(e.windowSize)};
|
|
800
|
+
display: flex;
|
|
801
|
+
float: right;
|
|
802
|
+
`,ul=n.div`
|
|
803
|
+
display: flex;
|
|
804
|
+
align-items: center;
|
|
805
|
+
justify-content: center;
|
|
806
|
+
position: relative;
|
|
807
|
+
float: right;
|
|
808
|
+
cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
|
|
809
|
+
color: ${e=>e.theme.colors.hero};
|
|
810
|
+
&:hover {
|
|
811
|
+
color: ${e=>e.theme.colors.primary};
|
|
812
|
+
}
|
|
813
|
+
`,ml=n(go)`
|
|
814
|
+
display: flex;
|
|
815
|
+
width: ${i.sp4};
|
|
816
|
+
height: ${i.sp4};
|
|
817
|
+
align-items: center;
|
|
818
|
+
justify-content: center;
|
|
819
|
+
`,ai=n.div`
|
|
820
|
+
margin-top: ${e=>e.partOfSkipAutoFill===!0?X.closeMarginTop.valuePx(e.size):0};
|
|
821
|
+
margin-left: ${i.sp5};
|
|
822
|
+
margin-right: ${e=>e.partOfSkipAutoFill===!0?X.closeMarginRight.valuePx(e.size):0};
|
|
823
|
+
`,pl=n.div`
|
|
824
|
+
display: flex;
|
|
825
|
+
flex-direction: column;
|
|
826
|
+
width: 100vw;
|
|
827
|
+
overflow-x: hidden;
|
|
828
|
+
background: -webkit-linear-gradient(
|
|
829
|
+
to right,
|
|
830
|
+
${e=>e.theme.colors.background} 42%,
|
|
831
|
+
${e=>e.theme.colors.grey4} 42%
|
|
832
|
+
);
|
|
833
|
+
background: -moz-linear-gradient(
|
|
834
|
+
to right,
|
|
835
|
+
${e=>e.theme.colors.background} 42%,
|
|
836
|
+
${e=>e.theme.colors.grey4} 42%
|
|
837
|
+
);
|
|
838
|
+
background: -o-linear-gradient(
|
|
839
|
+
to right,
|
|
840
|
+
${e=>e.theme.colors.background} 42%,
|
|
841
|
+
${e=>e.theme.colors.grey4} 42%
|
|
842
|
+
);
|
|
843
|
+
background: linear-gradient(
|
|
844
|
+
to right,
|
|
845
|
+
${e=>e.theme.colors.background} 42%,
|
|
846
|
+
${e=>e.theme.colors.grey4} 42%
|
|
847
|
+
);
|
|
848
|
+
${e=>e.windowSize==="small"&&`
|
|
849
|
+
background: ${e.theme.colors.grey4};
|
|
850
|
+
`}
|
|
851
|
+
min-height: 100vh;
|
|
852
|
+
`,hl=n.div`
|
|
853
|
+
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
854
|
+
width: 100%;
|
|
855
|
+
margin-bottom: ${e=>X.bottomMargin.valuePx(e.windowSize)};
|
|
856
|
+
`,gl=n.div`
|
|
857
|
+
width: ${e=>X.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
858
|
+
`,yl=n.div`
|
|
859
|
+
margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
|
|
860
|
+
margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
|
|
861
|
+
`,bl=n.div`
|
|
862
|
+
display: flex;
|
|
863
|
+
flex-direction: column;
|
|
864
|
+
height: ${i.sp11};
|
|
865
|
+
`;export{Fl as default,tn as uniqueName};
|