@zeniai/web-components 3.16.84 → 3.16.85
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/ACHDetailsPage-CjjahzKB.cjs +21 -0
- package/dist/ACHDetailsPage-D7UJf5af.js +160 -0
- package/dist/AIPerformancePage-CATZCaqo.cjs +539 -0
- package/dist/AIPerformancePage-DF2po1au.js +1344 -0
- package/dist/AccountInfoPage-CWRyHeB3.cjs +18 -0
- package/dist/AccountInfoPage-KBNTUxRc.js +78 -0
- package/dist/AccountInfoPageContent-BV_k7PMx.js +428 -0
- package/dist/AccountInfoPageContent-DI2zcFgu.cjs +149 -0
- package/dist/AccountLockedInfoModal--2SpTnHq.js +125 -0
- package/dist/AccountLockedInfoModal-BGwzL__t.cjs +59 -0
- package/dist/AccountReconDetailsDrawerPage-CDQsFcsV.js +686 -0
- package/dist/AccountReconDetailsDrawerPage-D69Xl672.cjs +239 -0
- package/dist/AccountRow-DkqztgeG.js +1012 -0
- package/dist/AccountRow-Yoq1KOxJ.cjs +298 -0
- package/dist/AccountsPromoCardStack-CuXBaE_D.js +664 -0
- package/dist/AccountsPromoCardStack-Dk3-j_rp.cjs +207 -0
- package/dist/AddAddressForCardDrawer-C40vfWPo.cjs +6 -0
- package/dist/AddAddressForCardDrawer-Cv1hPNtZ.js +82 -0
- package/dist/AddToWalletPage-9YHKWxFU.js +642 -0
- package/dist/AddToWalletPage-B__z2N85.cjs +344 -0
- package/dist/AgingReportsPage-Br_idrdv.js +827 -0
- package/dist/AgingReportsPage-V1gzMJYg.cjs +79 -0
- package/dist/AllUserItems-CSNQkTHD.cjs +192 -0
- package/dist/AllUserItems-I9JQjdtN.js +979 -0
- package/dist/ApAgingDetailPage-DMLjSeaF.cjs +46 -0
- package/dist/ApAgingDetailPage-DndccS05.js +239 -0
- package/dist/AppBasePage-A1DpvTZn.cjs +71 -0
- package/dist/AppBasePage-Do9qLIDz.js +120 -0
- package/dist/AppDrawerContent-CYTgtwWz.cjs +91 -0
- package/dist/AppDrawerContent-yP4IltPV.js +379 -0
- package/dist/ApprovalRulesSettingsPage-B0EftF4m.js +145 -0
- package/dist/ApprovalRulesSettingsPage-B93YoIO7.cjs +47 -0
- package/dist/ArAgingChart-BmZV1y9c.cjs +24 -0
- package/dist/ArAgingChart-DyeewQOo.js +529 -0
- package/dist/ArAgingDetailPage-Bl6IuPtX.js +243 -0
- package/dist/ArAgingDetailPage-DJ_RTwXq.cjs +46 -0
- package/dist/AttachmentView-CQGXS89n.js +260 -0
- package/dist/AttachmentView-DsoK044E.cjs +101 -0
- package/dist/BankAccountSection-B6D7He4a.js +398 -0
- package/dist/BankAccountSection-DigDooPZ.cjs +79 -0
- package/dist/BankAccountWarningSection-Ca5VOK5u.js +110 -0
- package/dist/BankAccountWarningSection-Dz0BVjis.cjs +51 -0
- package/dist/BankConnectionsSettingsPage-DXGSi6PR.js +1693 -0
- package/dist/BankConnectionsSettingsPage-DkrJYRZG.cjs +425 -0
- package/dist/BillDetailPage-BQV-2-K_.cjs +266 -0
- package/dist/BillDetailPage-DdwfObC5.js +1798 -0
- package/dist/BillPayApprovalRuleDetailPage-CrEvjkBh.js +247 -0
- package/dist/BillPayApprovalRuleDetailPage-DdnhnMcn.cjs +27 -0
- package/dist/BillPayApprovalRulesPage-7NLCXl2U.js +415 -0
- package/dist/BillPayApprovalRulesPage-C8O7Lyqm.cjs +235 -0
- package/dist/BillPayPromoPage-BQ9g9fI-.js +292 -0
- package/dist/BillPayPromoPage-Ds2XFgl4.cjs +84 -0
- package/dist/BillPaySetUpPage-BwntpaN0.cjs +42 -0
- package/dist/BillPaySetUpPage-DLzAzby8.js +409 -0
- package/dist/BillingSettingsPage-B71akwPo.cjs +44 -0
- package/dist/BillingSettingsPage-CR-uOqKg.js +336 -0
- package/dist/BillsBulkReviewDrawerPage-CrwDl7y2.js +216 -0
- package/dist/BillsBulkReviewDrawerPage-MXb_bX-Z.cjs +1 -0
- package/dist/BoxItem-DoCWKUYi.js +118 -0
- package/dist/BoxItem-Dz4jz5pT.cjs +53 -0
- package/dist/BusinessVerificationPage-BR7EAfSL.cjs +138 -0
- package/dist/BusinessVerificationPage-CEYjs7f9.js +716 -0
- package/dist/BusyIndication-BCwHz6xS.js +19 -0
- package/dist/BusyIndication-DYrPIXS-.cjs +9 -0
- package/dist/CardNumberSubText-Clu3JFS7.cjs +21 -0
- package/dist/CardNumberSubText-D2Snu0CR.js +59 -0
- package/dist/CashbackDetailPage-BG2koGSs.cjs +285 -0
- package/dist/CashbackDetailPage-BtZAGbm1.js +824 -0
- package/dist/ChargeCardDetailPage-BOF_EiWd.cjs +1462 -0
- package/dist/ChargeCardDetailPage-C0BeZg4y.js +5453 -0
- package/dist/ChargeCardListPage-CyVL9nwd.js +1797 -0
- package/dist/ChargeCardListPage-ylxvx1S0.cjs +412 -0
- package/dist/ChargeCardListTable-BQ4mXQys.cjs +711 -0
- package/dist/ChargeCardListTable-DN_X1DCH.js +2901 -0
- package/dist/ChargeCardPromoPage-BsFPdOmK.js +816 -0
- package/dist/ChargeCardPromoPage-CBeQEQws.cjs +222 -0
- package/dist/ChargeCardSetupPage-DVFXLO76.js +359 -0
- package/dist/ChargeCardSetupPage-zv_8hljg.cjs +36 -0
- package/dist/ChargeCardStatementsPage-BQNRZxHf.cjs +60 -0
- package/dist/ChargeCardStatementsPage-_kpRUyXX.js +243 -0
- package/dist/CheckDepositDrawerPage-Bb1wsif4.js +726 -0
- package/dist/CheckDepositDrawerPage-DDS1BeYH.cjs +206 -0
- package/dist/CollapsableReportTable-COV7hDvM.js +11758 -0
- package/dist/CollapsableReportTable-DWZAvxZ-.cjs +2932 -0
- package/dist/CompanyOfficerDetailsSection-BjKoi3mL.cjs +260 -0
- package/dist/CompanyOfficerDetailsSection-D0xYEz-W.js +1633 -0
- package/dist/CompanyPassportCard-C_LOcpIi.cjs +42 -0
- package/dist/CompanyPassportCard-DCEJCcQJ.js +146 -0
- package/dist/CompanyPassportPage-Bj9mDcBI.js +2160 -0
- package/dist/CompanyPassportPage-DiM4_7pm.cjs +574 -0
- package/dist/CompleteProfile-CVktX-wo.js +301 -0
- package/dist/CompleteProfile-QP3AOFpu.cjs +52 -0
- package/dist/ConfettiBurst-SxCi_T3P.js +37 -0
- package/dist/ConfettiBurst-T0MXfwlY.cjs +1 -0
- package/dist/CreateOrEditVendorPage-BvDJQtA9.cjs +281 -0
- package/dist/CreateOrEditVendorPage-dJzQ09Ce.js +755 -0
- package/dist/CreditCardPaymentDrawerPage-BuZWHqSa.js +1169 -0
- package/dist/CreditCardPaymentDrawerPage-DmObLn7g.cjs +224 -0
- package/dist/CurrencySelectField-BmgElUC_.js +348 -0
- package/dist/CurrencySelectField-C7a2VDqf.cjs +139 -0
- package/dist/CustomerOnboardingActivationPage-BI0dKdT5.cjs +88 -0
- package/dist/CustomerOnboardingActivationPage-DfEYWfrz.js +143 -0
- package/dist/CustomerOnboardingContainerPage-xii86ETW.cjs +1 -0
- package/dist/CustomerOnboardingContainerPage-z9Ky49kV.js +7 -0
- package/dist/CustomerOnboardingDetailPageSkeleton-BLBCoJv3.cjs +162 -0
- package/dist/CustomerOnboardingDetailPageSkeleton-BLjfZsbU.js +434 -0
- package/dist/CustomerOnboardingNoStepsPage-Bwbb5Imw.js +424 -0
- package/dist/CustomerOnboardingNoStepsPage-CP7GycCJ.cjs +66 -0
- package/dist/CustomerOnboardingPage-CssRmBHz.js +1059 -0
- package/dist/CustomerOnboardingPage-CzJj0zyE.cjs +107 -0
- package/dist/CustomerOnboardingProductSuitePage-CskvAR3N.js +348 -0
- package/dist/CustomerOnboardingProductSuitePage-DLK-V1y8.cjs +202 -0
- package/dist/Dashboard-CV_hn7RP.cjs +1551 -0
- package/dist/Dashboard-DPEmDbzE.js +5539 -0
- package/dist/DashboardReportPage-BMjncota.cjs +371 -0
- package/dist/DashboardReportPage-CDwwZSH2.js +2536 -0
- package/dist/DashboardSidebarBackgroundAnimation-CbMTpRZp.js +53 -0
- package/dist/DashboardSidebarBackgroundAnimation-DuXwzYSy.cjs +12 -0
- package/dist/DepositAccTransactionItem-Dyfsxfde.js +112 -0
- package/dist/DepositAccTransactionItem-Dys3rB6I.cjs +76 -0
- package/dist/DepositAccTransactionListPage-D2-l8Xdq.js +152 -0
- package/dist/DepositAccTransactionListPage-tqPZLT_s.cjs +66 -0
- package/dist/DomesticWireDetailsPage-CGa2-i7d.js +189 -0
- package/dist/DomesticWireDetailsPage-DvPZw61L.cjs +21 -0
- package/dist/DownloadOverlay-D_h6-ysd.js +2148 -0
- package/dist/DownloadOverlay-nF5gHoAN.cjs +439 -0
- package/dist/DrawerPage-BV8R3whA.js +208 -0
- package/dist/DrawerPage-pVnoRg0j.cjs +118 -0
- package/dist/EditPeoplePage-DljkjrbE.js +392 -0
- package/dist/EditPeoplePage-TypFr2xF.cjs +55 -0
- package/dist/EditReimbursementDetailPage-B0eTHq63.cjs +865 -0
- package/dist/EditReimbursementDetailPage-Bv4ie8BP.js +4530 -0
- package/dist/EmptySearchResults-DCZwlGF5.js +70 -0
- package/dist/EmptySearchResults-DEHV2mBe.cjs +46 -0
- package/dist/EntityDetailPage-CQsnf0eS.cjs +18 -0
- package/dist/EntityDetailPage-Cdj6vWYN.js +82 -0
- package/dist/EntitySummarySection-BaqYwNjb.cjs +149 -0
- package/dist/EntitySummarySection-__d4V_p_.js +530 -0
- package/dist/ExpenseAutomationOverviewPage-B7xnQFdW.js +806 -0
- package/dist/ExpenseAutomationOverviewPage-DBekSCDc.cjs +281 -0
- package/dist/ExpenseAutomationPage-D7NWw9Or.cjs +1650 -0
- package/dist/ExpenseAutomationPage-DETvPmzo.js +11544 -0
- package/dist/ExpressPayPage-BmtTymxI.js +1136 -0
- package/dist/ExpressPayPage-DscaO9cg.cjs +168 -0
- package/dist/FeaturePreviewPage-Be4pbNj0.cjs +11 -0
- package/dist/FeaturePreviewPage-CT6mncct.js +114 -0
- package/dist/FollowStepsSection--IS-xqiE.js +1313 -0
- package/dist/FollowStepsSection-CAGENnxn.cjs +390 -0
- package/dist/GlobalReviewListPage-B9nGA3_-.js +1674 -0
- package/dist/GlobalReviewListPage-BFOIBUOv.cjs +291 -0
- package/dist/InformationCardStack-CawpuS6n.cjs +31 -0
- package/dist/InformationCardStack-D8DytMtr.js +219 -0
- package/dist/InsightsCardStack-CztLO-PP.js +305 -0
- package/dist/InsightsCardStack-E-JCO1fU.cjs +79 -0
- package/dist/InsightsSection-BcZGCc4r.js +97 -0
- package/dist/InsightsSection-ta6ZCSXS.cjs +27 -0
- package/dist/IntegrationsSettingsPage-5fO-I-i1.js +136 -0
- package/dist/IntegrationsSettingsPage-Cmu84xo8.cjs +57 -0
- package/dist/InternationalWireSwiftDetailsPage-ByRWD2_v.js +753 -0
- package/dist/InternationalWireSwiftDetailsPage-C8Tua_Y_.cjs +171 -0
- package/dist/InternationalWireVerificationPage-BCtqKLDx.cjs +292 -0
- package/dist/InternationalWireVerificationPage-CfXoncXu.js +877 -0
- package/dist/InviteFormPage-BaJOf7k8.js +873 -0
- package/dist/InviteFormPage-BaOH4upA.cjs +312 -0
- package/dist/InvitePageListView-C5RGUIEe.cjs +739 -0
- package/dist/InvitePageListView-Yv4DaVKJ.js +1764 -0
- package/dist/InvitePeoplePage-C0PWeM3E.js +286 -0
- package/dist/InvitePeoplePage-DfAeU05u.cjs +12 -0
- package/dist/InvoiceUploadSection-C00F41Eb.js +465 -0
- package/dist/InvoiceUploadSection-vvgtdU96.cjs +140 -0
- package/dist/IssueChargeCardPage-DtGLF6cN.js +2875 -0
- package/dist/IssueChargeCardPage-DuuawxQy.cjs +532 -0
- package/dist/LabeledAddressValue-D5m-TdFn.js +115 -0
- package/dist/LabeledAddressValue-DFJ-IpiS.cjs +49 -0
- package/dist/LabeledAddressValueField-B8anJkh5.cjs +45 -0
- package/dist/LabeledAddressValueField-BF_SWBlz.js +130 -0
- package/dist/LabeledControlledCheckBoxField-CYcSrBvu.cjs +16 -0
- package/dist/LabeledControlledCheckBoxField-Cjv-0QPJ.js +73 -0
- package/dist/LabeledCreatableSingleSelectField-C4EbXG_F.cjs +204 -0
- package/dist/LabeledCreatableSingleSelectField-CRh5s94z.js +515 -0
- package/dist/LabeledDocumentField-DGUcQhkx.cjs +41 -0
- package/dist/LabeledDocumentField-frQwOMNj.js +147 -0
- package/dist/LabeledDropDownFormattedTextField-BHvdDAl3.cjs +59 -0
- package/dist/LabeledDropDownFormattedTextField-dtnPBXZx.js +163 -0
- package/dist/LabeledEmailInputField-BiA6Acmi.cjs +182 -0
- package/dist/LabeledEmailInputField-srEEoK-J.js +425 -0
- package/dist/LabeledItemWithButton-C7MVdTEZ.js +74 -0
- package/dist/LabeledItemWithButton-DGanEVoy.cjs +21 -0
- package/dist/LabeledNameField-BjRJVPuY.js +293 -0
- package/dist/LabeledNameField-KT6qHFIP.cjs +141 -0
- package/dist/LabeledSingleSelectField-BsOM2kBN.js +372 -0
- package/dist/LabeledSingleSelectField-stJgPwgc.cjs +136 -0
- package/dist/LabeledSingleSelectWithoutClearableField-D2PUKyNa.js +103 -0
- package/dist/LabeledSingleSelectWithoutClearableField-NEAWS2g0.cjs +38 -0
- package/dist/LabeledText-DolLyL-d.js +103 -0
- package/dist/LabeledText-S8a5aNdy.cjs +42 -0
- package/dist/LabeledUserSingleSelectWithSubtitlesField-CapU9ivJ.cjs +229 -0
- package/dist/LabeledUserSingleSelectWithSubtitlesField-m0tY6rk6.js +572 -0
- package/dist/LabeledZeniRolesDropDownField-Cu4V5G9A.js +975 -0
- package/dist/LabeledZeniRolesDropDownField-Cw1JlAbO.cjs +297 -0
- package/dist/LinkJETransactionPage-BZlyRNoD.js +406 -0
- package/dist/LinkJETransactionPage-DSNPenwN.cjs +98 -0
- package/dist/LockCardPage-DWDHCMJs.js +2032 -0
- package/dist/LockCardPage-IdcuZQKo.cjs +623 -0
- package/dist/LowBalancePopup-BRYHdaa3.cjs +34 -0
- package/dist/LowBalancePopup-iqXk83YY.js +219 -0
- package/dist/MagicLinkACHDetailsPage-CCLhO5xa.cjs +1 -0
- package/dist/MagicLinkACHDetailsPage-DInyUIbl.js +39 -0
- package/dist/MagicLinkDomesticWireDetailsPage-CGzihSvC.js +44 -0
- package/dist/MagicLinkDomesticWireDetailsPage-jCmwhHhQ.cjs +1 -0
- package/dist/MagicLinkInternationalWireDetailsPage-Dj8cSx2W.js +43 -0
- package/dist/MagicLinkInternationalWireDetailsPage-g8_rEj6K.cjs +1 -0
- package/dist/MagicLinkSuccessPage-CbD3ThlU.js +59 -0
- package/dist/MagicLinkSuccessPage-DXMQ53aA.cjs +31 -0
- package/dist/MagicLinkTitleSection-85fn6ONO.cjs +17 -0
- package/dist/MagicLinkTitleSection-bgLRR64I.js +40 -0
- package/dist/MailingDetailsSection-CNBbo3FR.js +74 -0
- package/dist/MailingDetailsSection-D1_oFEIU.cjs +21 -0
- package/dist/MatchingOperatorDropdown-52caWev2.cjs +130 -0
- package/dist/MatchingOperatorDropdown-pcrCahGI.js +572 -0
- package/dist/Menu-B8U2uJwi.js +110 -0
- package/dist/Menu-CGHmbH9Q.cjs +17 -0
- package/dist/MoreMenuButton-6cudDh-x.js +569 -0
- package/dist/MoreMenuButton-CR5MjXDh.cjs +167 -0
- package/dist/MyBankConnectionsSettingsPage-D03E3ET7.cjs +110 -0
- package/dist/MyBankConnectionsSettingsPage-DueaRDa9.js +296 -0
- package/dist/MyPendingActivationChargeCardListPage-C2tOoaSe.js +168 -0
- package/dist/MyPendingActivationChargeCardListPage-R4L044GX.cjs +6 -0
- package/dist/MyProfileSettingsPage-DRigVnuo.cjs +85 -0
- package/dist/MyProfileSettingsPage-wI9bjFHk.js +641 -0
- package/dist/NavBarWithPicker-BzctqjAL.js +106 -0
- package/dist/NavBarWithPicker-DPqJxGwX.cjs +30 -0
- package/dist/NavigationArrow-CD0XxZ6j.js +88 -0
- package/dist/NavigationArrow-CRCff7MT.cjs +47 -0
- package/dist/NavigationDots-BOanmaYC.js +44 -0
- package/dist/NavigationDots-CzqYo-Go.cjs +15 -0
- package/dist/NewGlobalMerchantPage-DnCy3reJ.cjs +160 -0
- package/dist/NewGlobalMerchantPage-DzPaxLvG.js +543 -0
- package/dist/NoDataChart-DA4i9myG.js +58 -0
- package/dist/NoDataChart-DP962K7W.cjs +26 -0
- package/dist/NoDataTable-CD83vLVv.js +27 -0
- package/dist/NoDataTable-DPIKt0r6.cjs +8 -0
- package/dist/NotFoundPage-BL9H_0mN.cjs +46 -0
- package/dist/NotFoundPage-BjBqO1tq.js +71 -0
- package/dist/NotificationSettingsPage-BUTcW7NZ.cjs +163 -0
- package/dist/NotificationSettingsPage-DQRzjQ6j.js +541 -0
- package/dist/NotificationsListConfig-BeGmWT5r.js +10 -0
- package/dist/NotificationsListConfig-BpxOKtLn.cjs +1 -0
- package/dist/NotificationsPage-OfVdjeFt.js +2664 -0
- package/dist/NotificationsPage-aLkmUbOH.cjs +685 -0
- package/dist/OpExByVendorPage-BexSDNav.cjs +100 -0
- package/dist/OpExByVendorPage-CwiEUKxk.js +1057 -0
- package/dist/PandLWithForecastPage-Cy0kW2G6.js +563 -0
- package/dist/PandLWithForecastPage-W9NoN9Tc.cjs +107 -0
- package/dist/PaymentAccountSetupBillingAddressSection-BENrsdlx.cjs +106 -0
- package/dist/PaymentAccountSetupBillingAddressSection-DaDGtmTF.js +623 -0
- package/dist/PeoplePage-Cw9ZrFMh.js +1994 -0
- package/dist/PeoplePage-DuHQ_6Xu.cjs +675 -0
- package/dist/ProductsCarousel-BTphknJU.cjs +142 -0
- package/dist/ProductsCarousel-BgfoqG5G.js +309 -0
- package/dist/PromoBaseCards-Cup3vxi3.cjs +218 -0
- package/dist/PromoBaseCards-DOM02PRd.js +356 -0
- package/dist/QBOConnectionDialog-COIPjfUH.js +115 -0
- package/dist/QBOConnectionDialog-D9296AZd.cjs +51 -0
- package/dist/QBOSetupSection-DIG1aYXJ.cjs +79 -0
- package/dist/QBOSetupSection-DkEcQ1vG.js +167 -0
- package/dist/ReimbursementApprovalRuleDetailPage-2rE38Jqr.cjs +26 -0
- package/dist/ReimbursementApprovalRuleDetailPage-OFskcW3o.js +247 -0
- package/dist/ReimbursementApprovalRulesPage-B4ZcA8ff.cjs +237 -0
- package/dist/ReimbursementApprovalRulesPage-BH40_s_G.js +410 -0
- package/dist/ReimbursementDetailPage-BcyeY0mR.js +1514 -0
- package/dist/ReimbursementDetailPage-Dm_NtrkU.cjs +314 -0
- package/dist/ReimbursementPromoPage-BxxVD2El.js +363 -0
- package/dist/ReimbursementPromoPage-DzVHsZlu.cjs +84 -0
- package/dist/ReimbursementSetUpPage-B7ZtmHI4.cjs +140 -0
- package/dist/ReimbursementSetUpPage-yBG-rBsx.js +663 -0
- package/dist/ReimbursementsBulkReviewDrawerPage-BwhOK1Yo.cjs +1 -0
- package/dist/ReimbursementsBulkReviewDrawerPage-KjGE2TRV.js +204 -0
- package/dist/ReloadCard-Cwu4PfaB.js +137 -0
- package/dist/ReloadCard-DKen7ptQ.cjs +26 -0
- package/dist/ReloadContainer-B4oFfVVv.js +2144 -0
- package/dist/ReloadContainer-DBziEuCu.cjs +596 -0
- package/dist/ReportTableViewSelector-DjZvoINX.cjs +150 -0
- package/dist/ReportTableViewSelector-cIMfCJ4E.js +679 -0
- package/dist/ReportsPage-Bv_xqkWS.js +1315 -0
- package/dist/ReportsPage-BzAzaH8i.cjs +121 -0
- package/dist/RevenueChart-BKMxOey0.js +2239 -0
- package/dist/RevenueChart-Sw4XEqt0.cjs +280 -0
- package/dist/ReviewDetailsPage-CqVK69VN.js +1073 -0
- package/dist/ReviewDetailsPage-DGpi8Nvd.cjs +290 -0
- package/dist/ReviewOverlay-BPuBDQTI.cjs +152 -0
- package/dist/ReviewOverlay-c7ofJj9y.js +299 -0
- package/dist/RoleWithToolTip-B7XW_MfZ.cjs +22 -0
- package/dist/RoleWithToolTip-DWFcsgTE.js +72 -0
- package/dist/ScheduleDetailsFixedAssetsPage-BlvQr0cq.cjs +37 -0
- package/dist/ScheduleDetailsFixedAssetsPage-BtMuGtqW.js +806 -0
- package/dist/ScheduleDetailsPage-CUNMzz2u.cjs +37 -0
- package/dist/ScheduleDetailsPage-DOVsnzfr.js +726 -0
- package/dist/ScheduleSequenceTable-CDUPeGGD.js +1261 -0
- package/dist/ScheduleSequenceTable-CjktYIyC.cjs +324 -0
- package/dist/SetUpAccountSection-AyIBFipM.cjs +378 -0
- package/dist/SetUpAccountSection-Cq8WVscW.js +1468 -0
- package/dist/SignIn-CTc5HH5s.cjs +448 -0
- package/dist/SignIn-CbTjwUch.js +1075 -0
- package/dist/SpendManagementListViewPage-FAjxkhda.js +627 -0
- package/dist/SpendManagementListViewPage-XKmC1yYt.cjs +122 -0
- package/dist/SpendManagementPerTabPage-BWkX9RKi.js +2735 -0
- package/dist/SpendManagementPerTabPage-D65ZX-w7.cjs +754 -0
- package/dist/SpendManagementSection-DtV7cNiV.js +1043 -0
- package/dist/SpendManagementSection-W36TwP9A.cjs +230 -0
- package/dist/StatementItem-8f35iXpn.cjs +31 -0
- package/dist/StatementItem-galkyXel.js +81 -0
- package/dist/StatementsPage-C4wCkVjn.cjs +58 -0
- package/dist/StatementsPage-CxRmpvHx.js +130 -0
- package/dist/StatusSwitcher-B9KsuUzV.js +319 -0
- package/dist/StatusSwitcher-BAG1Gh41.cjs +120 -0
- package/dist/SubTabSwitcher-CU3y20B3.js +113 -0
- package/dist/SubTabSwitcher-DSkIr_xn.cjs +58 -0
- package/dist/SuccessAnimation-DAcFVCbl.js +52 -0
- package/dist/SuccessAnimation-KWGyQQau.cjs +13 -0
- package/dist/SummaryCard-BzCjyqrj.js +25 -0
- package/dist/SummaryCard-CcsfBP2C.cjs +1 -0
- package/dist/TaskDetailPage-DyMrsSAA.js +2533 -0
- package/dist/TaskDetailPage-HW8-IUch.cjs +775 -0
- package/dist/TaskListRow-DkjHhJrm.cjs +556 -0
- package/dist/TaskListRow-m-oqXLeH.js +1950 -0
- package/dist/TaskManagementPage-Doyg2CqZ.js +1935 -0
- package/dist/TaskManagementPage-ns3T2AwE.cjs +508 -0
- package/dist/TimeRangeSwitcher-CrpzPtY-.js +265 -0
- package/dist/TimeRangeSwitcher-JGeFgjoB.cjs +64 -0
- package/dist/TimeframeSwitcher-DCTAb3y5.js +103 -0
- package/dist/TimeframeSwitcher-DaZnwIGq.cjs +31 -0
- package/dist/TimeframeSwitcherWithToggle-BbHAdwvs.cjs +31 -0
- package/dist/TimeframeSwitcherWithToggle-DCGGk6oe.js +157 -0
- package/dist/TopExCard-DaoRzaJD.cjs +38 -0
- package/dist/TopExCard-_wwg67qD.js +568 -0
- package/dist/TopExDetailPage-D3_cKnld.cjs +132 -0
- package/dist/TopExDetailPage-D3mdV1I1.js +318 -0
- package/dist/TransactionDetailPage-by_PkAWh.cjs +912 -0
- package/dist/TransactionDetailPage-oLZf5QIu.js +5238 -0
- package/dist/TransactionList-D8d-7aeB.cjs +147 -0
- package/dist/TransactionList-DsY9iS9X.js +558 -0
- package/dist/TransactionListBig-0EeNxl4W.cjs +284 -0
- package/dist/TransactionListBig-C6qvRzHL.js +658 -0
- package/dist/TransactionListPage-BCvNZIC2.js +144 -0
- package/dist/TransactionListPage-Dy0ZAyCV.cjs +35 -0
- package/dist/TransactionVendorDetailPage-CZ3wEgNX.js +425 -0
- package/dist/TransactionVendorDetailPage-YaDDL3dl.cjs +80 -0
- package/dist/TransferDrawerPage-M2bEGvML.js +1435 -0
- package/dist/TransferDrawerPage-_lXobBsS.cjs +362 -0
- package/dist/TreasuryOverviewPage-B0VdInMT.cjs +708 -0
- package/dist/TreasuryOverviewPage-kyKiHTFW.js +1889 -0
- package/dist/TreasuryPromoPage-2DYet_Ik.js +1123 -0
- package/dist/TreasuryPromoPage-CkJi4DX-.cjs +505 -0
- package/dist/TreasuryStatementsPage-B2kQEt0S.js +131 -0
- package/dist/TreasuryStatementsPage-CzreQMY3.cjs +58 -0
- package/dist/TreasuryTaxLetterPage-CclNe_Xz.cjs +58 -0
- package/dist/TreasuryTaxLetterPage-DkchjbCl.js +131 -0
- package/dist/TrendChart-Cg7DEgTX.cjs +16 -0
- package/dist/TrendChart-DWvQIk_i.js +333 -0
- package/dist/TrendWithTransactions-B-tQICxU.js +346 -0
- package/dist/TrendWithTransactions-DgYvkslj.cjs +116 -0
- package/dist/UncategorizedAccountsMappingPage-DHFoKujC.js +1159 -0
- package/dist/UncategorizedAccountsMappingPage-DvOnSysP.cjs +244 -0
- package/dist/UnitIntegrationPage-DUi-yV7n.js +405 -0
- package/dist/UnitIntegrationPage-lsdNI4Vn.cjs +67 -0
- package/dist/UploadAdditionalDocumentOverlay-D-MJEeCr.js +211 -0
- package/dist/UploadAdditionalDocumentOverlay-DvP0MsGE.cjs +38 -0
- package/dist/Vendor2FAPopup-B1v4CnsJ.js +69 -0
- package/dist/Vendor2FAPopup-rErUIGz2.cjs +1 -0
- package/dist/VendorACHDetailsPage-BGMn3EKf.js +43 -0
- package/dist/VendorACHDetailsPage-TYqcq3RV.cjs +1 -0
- package/dist/VendorDetailPage-BDSUyNw9.js +1236 -0
- package/dist/VendorDetailPage-CW4P73Ab.cjs +257 -0
- package/dist/VendorDomesticWireDetailsPage-5vb3WoOg.cjs +1 -0
- package/dist/VendorDomesticWireDetailsPage-BmJFAYkP.js +53 -0
- package/dist/VendorFiling1099EditablePage-CO2yrPLO.cjs +175 -0
- package/dist/VendorFiling1099EditablePage-gYOnecYa.js +842 -0
- package/dist/VendorFirstReviewPage-B-AzE1cD.js +2748 -0
- package/dist/VendorFirstReviewPage-DMdeH99Y.cjs +730 -0
- package/dist/VendorInternationalWireDetailsPage-BOuGxy3C.js +968 -0
- package/dist/VendorInternationalWireDetailsPage-D6_0bSuq.cjs +152 -0
- package/dist/VendorInternationalWireSwiftDetailsPage-52OyQoAb.js +52 -0
- package/dist/VendorInternationalWireSwiftDetailsPage-BFSoYYiX.cjs +1 -0
- package/dist/VendorsAccountsSection-7b-8zbzy.js +279 -0
- package/dist/VendorsAccountsSection-_GJNr7hc.cjs +68 -0
- package/dist/VerifyDevice-BIDpGrz2.js +298 -0
- package/dist/VerifyDevice-DU-ZSRLb.cjs +112 -0
- package/dist/VideoPlayer-6aI3IBSq.js +169 -0
- package/dist/VideoPlayer-CkkAFHWv.cjs +77 -0
- package/dist/VideoPopup-BjjkIMhJ.cjs +31 -0
- package/dist/VideoPopup-DZ0av8MQ.js +60 -0
- package/dist/WarningsDrawerPage-Ci4yQxiY.js +228 -0
- package/dist/WarningsDrawerPage-CuZOri-0.cjs +92 -0
- package/dist/ZeniAccountDetailPage-BHGcWHeY.cjs +300 -0
- package/dist/ZeniAccountDetailPage-Bs-fTZy9.js +907 -0
- package/dist/ZeniAccountListViewPage--Lmrv8P6.cjs +441 -0
- package/dist/ZeniAccountListViewPage-DUE8o8_g.js +1078 -0
- package/dist/ZeniAccountNavBarPieces-C7g8y4tK.js +89 -0
- package/dist/ZeniAccountNavBarPieces-C8seaCXA.cjs +14 -0
- package/dist/ZeniAccountPromoPage-BfuavS45.cjs +184 -0
- package/dist/ZeniAccountPromoPage-DbKDpxBW.js +522 -0
- package/dist/ZeniAccountSetupPage-CjiuVr2i.js +309 -0
- package/dist/ZeniAccountSetupPage-xisX3cxz.cjs +36 -0
- package/dist/ZeniAvatar-Od8NDdqo.cjs +13 -0
- package/dist/ZeniAvatar-vhQCX_3l.js +34 -0
- package/dist/ZeniCopyright-BW57pgE4.js +9 -0
- package/dist/ZeniCopyright-NK6Rd3Y_.cjs +1 -0
- package/dist/ZeniDatePicker-DKzcbcGn.cjs +187 -0
- package/dist/ZeniDatePicker-KKLXcpuq.js +386 -0
- package/dist/ZeniTransferAmountSlider-IfrqDg_H.js +215 -0
- package/dist/ZeniTransferAmountSlider-hSP96YOu.cjs +63 -0
- package/dist/analyticsHelper-CNTy_u1x.cjs +1 -0
- package/dist/analyticsHelper-D4tsw7zJ.js +65 -0
- package/dist/calculateSize-BLD7Oodv.js +22 -0
- package/dist/calculateSize-BgQJjLgl.cjs +1 -0
- package/dist/chartTypes-BPJEaSrX.cjs +1 -0
- package/dist/chartTypes-DA4pG1l6.js +47 -0
- package/dist/cockpit.cjs.js +2 -2
- package/dist/cockpit.esm.js +15 -15
- package/dist/common-Dv-Y95p-.cjs +1 -0
- package/dist/common-SSjv-De2.js +22 -0
- package/dist/commonDimensions-BaTFZE1m.cjs +1 -0
- package/dist/commonDimensions-BssaK7HK.js +13 -0
- package/dist/components/appDrawerContent/LogoutButton.d.ts +1 -1
- package/dist/detailCommon-CaxYRK1G.js +124 -0
- package/dist/detailCommon-DtA7_k2P.cjs +38 -0
- package/dist/downloadPdf-C5xZ-WEi.cjs +1 -0
- package/dist/downloadPdf-CAjtOBAs.js +32 -0
- package/dist/index-BOGO7v0l.cjs +21111 -0
- package/dist/index-BrQvJ7aX.js +92133 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mapLoadingInProgressToTreeNode-BiOeujST.js +25 -0
- package/dist/mapLoadingInProgressToTreeNode-DlxleQQX.cjs +1 -0
- package/dist/mapSectionWithAcOnlyToTreeNode-BUpw-Htt.cjs +1 -0
- package/dist/mapSectionWithAcOnlyToTreeNode-Cz85Ps0n.js +388 -0
- package/dist/mapSpacerToTreeNode-3XYDcTUD.cjs +1 -0
- package/dist/mapSpacerToTreeNode-C9znT4LE.js +25 -0
- package/dist/mapTimeframeBalancesToTreeNode-B1x3__uQ.js +24 -0
- package/dist/mapTimeframeBalancesToTreeNode-CvmPOXLb.cjs +1 -0
- package/dist/mapTimeframeBalancesToTreeNode-D8jjs6Zo.js +24 -0
- package/dist/mapTimeframeBalancesToTreeNode-DjHToVnx.cjs +1 -0
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-9r9oZSS7.js +32 -0
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-CiGbpsrz.cjs +1 -0
- package/dist/sectionColor-BkoE2tfR.js +32 -0
- package/dist/sectionColor-DzEWaY7u.cjs +1 -0
- package/dist/toCOABalancesWithID-COj2m0ci.js +8 -0
- package/dist/toCOABalancesWithID-DVmcN8DB.cjs +1 -0
- package/dist/toChartData-CrKAlry_.cjs +1 -0
- package/dist/toChartData-i_Ks7NN4.js +76 -0
- package/dist/uploadAttachment-CF9EpFPe.cjs +286 -0
- package/dist/uploadAttachment-C_mHcpbV.js +952 -0
- package/dist/zeniDatePicker.helpers-BNMjZbpb.cjs +1 -0
- package/dist/zeniDatePicker.helpers-C6oGalub.js +14 -0
- package/package.json +1 -1
- package/dist/ACHDetailsPage-BBr3hjKe.js +0 -160
- package/dist/ACHDetailsPage-C-3iosry.cjs +0 -21
- package/dist/AIPerformancePage-B-vYofxm.js +0 -1344
- package/dist/AIPerformancePage-CekIdpUu.cjs +0 -539
- package/dist/AccountInfoPage-Cz3aGZOP.js +0 -78
- package/dist/AccountInfoPage-rWVOEteL.cjs +0 -18
- package/dist/AccountInfoPageContent-BhIHvb1W.js +0 -428
- package/dist/AccountInfoPageContent-ByzXHcAg.cjs +0 -149
- package/dist/AccountLockedInfoModal-D2ZfJ_zP.cjs +0 -59
- package/dist/AccountLockedInfoModal-DVj5pK2w.js +0 -125
- package/dist/AccountReconDetailsDrawerPage-CgOvOCsd.js +0 -686
- package/dist/AccountReconDetailsDrawerPage-Cnb3E_tv.cjs +0 -239
- package/dist/AccountRow-BL5koYgc.js +0 -1012
- package/dist/AccountRow-CK0ELIHG.cjs +0 -298
- package/dist/AccountsPromoCardStack-BU8h97bJ.js +0 -664
- package/dist/AccountsPromoCardStack-Cs-_o6Ch.cjs +0 -207
- package/dist/AddAddressForCardDrawer-BpCCBY6q.cjs +0 -6
- package/dist/AddAddressForCardDrawer-DVZMh4b0.js +0 -82
- package/dist/AddToWalletPage-BvaWd9Lx.cjs +0 -344
- package/dist/AddToWalletPage-D5-phSVU.js +0 -642
- package/dist/AgingReportsPage-CnAFfhcI.cjs +0 -79
- package/dist/AgingReportsPage-DO2vxSPF.js +0 -827
- package/dist/AllUserItems-Bj10fUCN.js +0 -979
- package/dist/AllUserItems-d2pOZrfy.cjs +0 -192
- package/dist/ApAgingDetailPage-C94W-Km1.js +0 -239
- package/dist/ApAgingDetailPage-Dr6mgRT9.cjs +0 -46
- package/dist/AppBasePage-DIvG4fXT.cjs +0 -71
- package/dist/AppBasePage-NJuErq7s.js +0 -120
- package/dist/AppDrawerContent-DCMF1Jd6.js +0 -379
- package/dist/AppDrawerContent-DwnmrMJ3.cjs +0 -91
- package/dist/ApprovalRulesSettingsPage-BOoowQhZ.cjs +0 -47
- package/dist/ApprovalRulesSettingsPage-DEqUEc5k.js +0 -145
- package/dist/ArAgingChart-C0FMvG0N.cjs +0 -24
- package/dist/ArAgingChart-CwIX1AQg.js +0 -529
- package/dist/ArAgingDetailPage-BnVT2zeq.js +0 -243
- package/dist/ArAgingDetailPage-rHvGvo8T.cjs +0 -46
- package/dist/AttachmentView-C7P-Qoub.js +0 -260
- package/dist/AttachmentView-D0MUv2k-.cjs +0 -101
- package/dist/BankAccountSection-D96uMvqj.cjs +0 -79
- package/dist/BankAccountSection-E80ZBAai.js +0 -398
- package/dist/BankAccountWarningSection-8w4zGVFL.cjs +0 -51
- package/dist/BankAccountWarningSection-CztvYd12.js +0 -110
- package/dist/BankConnectionsSettingsPage-CyJ4kVQ0.js +0 -1693
- package/dist/BankConnectionsSettingsPage-DfcNgYU-.cjs +0 -425
- package/dist/BillDetailPage-CZFQXWJm.js +0 -1798
- package/dist/BillDetailPage-DPlMB2zA.cjs +0 -266
- package/dist/BillPayApprovalRuleDetailPage-B3akEM1B.js +0 -247
- package/dist/BillPayApprovalRuleDetailPage-DJm_RQ5L.cjs +0 -27
- package/dist/BillPayApprovalRulesPage-BIQ5ZNYc.cjs +0 -235
- package/dist/BillPayApprovalRulesPage-CVCYQOAl.js +0 -415
- package/dist/BillPayPromoPage-3AAZHiUH.cjs +0 -84
- package/dist/BillPayPromoPage-CBDs8wIP.js +0 -292
- package/dist/BillPaySetUpPage-CDRDA4C8.cjs +0 -42
- package/dist/BillPaySetUpPage-QnIsNFDl.js +0 -409
- package/dist/BillingSettingsPage-CPpGpFsh.cjs +0 -44
- package/dist/BillingSettingsPage-DwEDJO53.js +0 -336
- package/dist/BillsBulkReviewDrawerPage-Dx5gsUBe.js +0 -216
- package/dist/BillsBulkReviewDrawerPage-sv84Kd9h.cjs +0 -1
- package/dist/BoxItem-Cmm6_sNo.js +0 -118
- package/dist/BoxItem-DaDha04e.cjs +0 -53
- package/dist/BusinessVerificationPage-CRUpTga7.cjs +0 -138
- package/dist/BusinessVerificationPage-FnZN5SVF.js +0 -716
- package/dist/BusyIndication-Cn_PHeK_.js +0 -19
- package/dist/BusyIndication-DB6vN6EC.cjs +0 -9
- package/dist/CardNumberSubText-BWqNeBhp.js +0 -59
- package/dist/CardNumberSubText-DrV7lzW8.cjs +0 -21
- package/dist/CashbackDetailPage-6tp15mNj.js +0 -824
- package/dist/CashbackDetailPage-kg3r-4yV.cjs +0 -285
- package/dist/ChargeCardDetailPage-DvT8GPmj.js +0 -5453
- package/dist/ChargeCardDetailPage-QASbZoiW.cjs +0 -1462
- package/dist/ChargeCardListPage-C-dRrTwI.cjs +0 -412
- package/dist/ChargeCardListPage-CcolSO9a.js +0 -1797
- package/dist/ChargeCardListTable-3WcSb2vU.js +0 -2901
- package/dist/ChargeCardListTable-DmEhDkf0.cjs +0 -711
- package/dist/ChargeCardPromoPage-C6Fq87Lk.js +0 -816
- package/dist/ChargeCardPromoPage-DGssyPbj.cjs +0 -222
- package/dist/ChargeCardSetupPage-CbA1eh2N.cjs +0 -36
- package/dist/ChargeCardSetupPage-CfL5Cfh5.js +0 -359
- package/dist/ChargeCardStatementsPage-BUwPrXwf.cjs +0 -60
- package/dist/ChargeCardStatementsPage-Dgl3uOoL.js +0 -243
- package/dist/CheckDepositDrawerPage-DO7f1vLd.js +0 -726
- package/dist/CheckDepositDrawerPage-pMV2vOaQ.cjs +0 -206
- package/dist/CollapsableReportTable-CtL_gFPp.js +0 -11758
- package/dist/CollapsableReportTable-DXzLATRV.cjs +0 -2932
- package/dist/CompanyOfficerDetailsSection-BMqGRq9V.cjs +0 -260
- package/dist/CompanyOfficerDetailsSection-DhtqyLX4.js +0 -1633
- package/dist/CompanyPassportCard-BLcQAtHO.cjs +0 -42
- package/dist/CompanyPassportCard-DQk1WcK-.js +0 -146
- package/dist/CompanyPassportPage-BMWNDGSb.js +0 -2160
- package/dist/CompanyPassportPage-BZV1vBJO.cjs +0 -574
- package/dist/CompleteProfile-CbCDxM4J.cjs +0 -52
- package/dist/CompleteProfile-D80H4Rzf.js +0 -301
- package/dist/ConfettiBurst-x5m6l7yu.cjs +0 -1
- package/dist/ConfettiBurst-yJiBV372.js +0 -37
- package/dist/CreateOrEditVendorPage-B-Om_J4w.cjs +0 -281
- package/dist/CreateOrEditVendorPage-rHMje8ez.js +0 -755
- package/dist/CreditCardPaymentDrawerPage-4OU7Lhdi.js +0 -1169
- package/dist/CreditCardPaymentDrawerPage-DKJ5yTTp.cjs +0 -224
- package/dist/CurrencySelectField-COHkbTPk.js +0 -348
- package/dist/CurrencySelectField-CtmMKNDs.cjs +0 -139
- package/dist/CustomerOnboardingActivationPage-CJPKW9XR.js +0 -143
- package/dist/CustomerOnboardingActivationPage-D5lfnbLe.cjs +0 -88
- package/dist/CustomerOnboardingContainerPage-BaxDMttb.js +0 -7
- package/dist/CustomerOnboardingContainerPage-CGrMAvcg.cjs +0 -1
- package/dist/CustomerOnboardingDetailPageSkeleton-Cc2tiqfe.js +0 -434
- package/dist/CustomerOnboardingDetailPageSkeleton-DwYBN85P.cjs +0 -162
- package/dist/CustomerOnboardingNoStepsPage-DC588ynj.js +0 -424
- package/dist/CustomerOnboardingNoStepsPage-DvzU95KO.cjs +0 -66
- package/dist/CustomerOnboardingPage-DhlhaJPP.cjs +0 -107
- package/dist/CustomerOnboardingPage-TZNAbEGl.js +0 -1059
- package/dist/CustomerOnboardingProductSuitePage-CnkLZbcA.cjs +0 -202
- package/dist/CustomerOnboardingProductSuitePage-DBwiHpQh.js +0 -348
- package/dist/Dashboard-SvaNROAR.cjs +0 -1551
- package/dist/Dashboard-pJczkSFT.js +0 -5539
- package/dist/DashboardReportPage-8hlyFHVx.js +0 -2536
- package/dist/DashboardReportPage-ChrFhgpE.cjs +0 -371
- package/dist/DashboardSidebarBackgroundAnimation--0-w1rQc.cjs +0 -12
- package/dist/DashboardSidebarBackgroundAnimation-CUljkJMW.js +0 -53
- package/dist/DepositAccTransactionItem-CRbSf5Q4.js +0 -112
- package/dist/DepositAccTransactionItem-DrUy4Da2.cjs +0 -76
- package/dist/DepositAccTransactionListPage-Bp-C2Ja-.cjs +0 -66
- package/dist/DepositAccTransactionListPage-vfY6wjIt.js +0 -152
- package/dist/DomesticWireDetailsPage-CT0V_5n-.js +0 -189
- package/dist/DomesticWireDetailsPage-D366cz6p.cjs +0 -21
- package/dist/DownloadOverlay-C6rogc6C.cjs +0 -439
- package/dist/DownloadOverlay-RhapSbyy.js +0 -2148
- package/dist/DrawerPage-BGxCMICq.js +0 -208
- package/dist/DrawerPage-CWm90T-S.cjs +0 -118
- package/dist/EditPeoplePage-DhEN0JPK.cjs +0 -55
- package/dist/EditPeoplePage-zkGpgy0E.js +0 -392
- package/dist/EditReimbursementDetailPage-YNr7t4uO.js +0 -4530
- package/dist/EditReimbursementDetailPage-hrib0TsY.cjs +0 -865
- package/dist/EmptySearchResults-DN1oWyGN.cjs +0 -46
- package/dist/EmptySearchResults-p0VaciWg.js +0 -70
- package/dist/EntityDetailPage-CvHVRPti.js +0 -82
- package/dist/EntityDetailPage-qGdNrAcd.cjs +0 -18
- package/dist/EntitySummarySection-BL4KXUKt.js +0 -530
- package/dist/EntitySummarySection-DaV1_3tE.cjs +0 -149
- package/dist/ExpenseAutomationOverviewPage-cfIfBAdG.js +0 -806
- package/dist/ExpenseAutomationOverviewPage-j2snhj_F.cjs +0 -281
- package/dist/ExpenseAutomationPage-BikuB-S5.cjs +0 -1650
- package/dist/ExpenseAutomationPage-w5KBIkzX.js +0 -11544
- package/dist/ExpressPayPage-C0BRzjKh.js +0 -1136
- package/dist/ExpressPayPage-D1hesO2_.cjs +0 -168
- package/dist/FeaturePreviewPage-Chtx3qGM.cjs +0 -11
- package/dist/FeaturePreviewPage-CvXMDwqC.js +0 -114
- package/dist/FollowStepsSection-BhicFBJC.js +0 -1313
- package/dist/FollowStepsSection-d9hhMGgJ.cjs +0 -390
- package/dist/GlobalReviewListPage-CQIFOIW6.cjs +0 -291
- package/dist/GlobalReviewListPage-NWw4VpLx.js +0 -1674
- package/dist/InformationCardStack-CG2mAN4s.cjs +0 -31
- package/dist/InformationCardStack-DPF-q0NU.js +0 -219
- package/dist/InsightsCardStack-BZ-1Aww2.cjs +0 -79
- package/dist/InsightsCardStack-DqXScToX.js +0 -305
- package/dist/InsightsSection-89tqblCE.js +0 -97
- package/dist/InsightsSection-Cy4JDWMI.cjs +0 -27
- package/dist/IntegrationsSettingsPage-ODeSaRJo.cjs +0 -57
- package/dist/IntegrationsSettingsPage-TqeoKF96.js +0 -136
- package/dist/InternationalWireSwiftDetailsPage-B539-ETc.js +0 -753
- package/dist/InternationalWireSwiftDetailsPage-C45wEjnl.cjs +0 -171
- package/dist/InternationalWireVerificationPage-D9qFawtd.cjs +0 -292
- package/dist/InternationalWireVerificationPage-de0B053v.js +0 -877
- package/dist/InviteFormPage-DAvP-Mqn.js +0 -873
- package/dist/InviteFormPage-De1nXGwC.cjs +0 -312
- package/dist/InvitePageListView-1fpa5DiR.js +0 -1764
- package/dist/InvitePageListView-DFZleruL.cjs +0 -739
- package/dist/InvitePeoplePage-BPQkI-Ce.cjs +0 -12
- package/dist/InvitePeoplePage-Dty9Mavy.js +0 -286
- package/dist/InvoiceUploadSection-BfZ25Slg.cjs +0 -140
- package/dist/InvoiceUploadSection-cqqlOUmi.js +0 -465
- package/dist/IssueChargeCardPage-B8QKtUJX.js +0 -2875
- package/dist/IssueChargeCardPage-D0pa66v0.cjs +0 -532
- package/dist/LabeledAddressValue-Ch0sgqwb.cjs +0 -49
- package/dist/LabeledAddressValue-XDIk4yMe.js +0 -115
- package/dist/LabeledAddressValueField-C10U0Vi8.cjs +0 -45
- package/dist/LabeledAddressValueField-wQ3ZPcTl.js +0 -130
- package/dist/LabeledControlledCheckBoxField-CXbrD37F.js +0 -73
- package/dist/LabeledControlledCheckBoxField-DtLzIDjx.cjs +0 -16
- package/dist/LabeledCreatableSingleSelectField-COEs-US3.cjs +0 -204
- package/dist/LabeledCreatableSingleSelectField-DYSTwuBo.js +0 -515
- package/dist/LabeledDocumentField-DqyIwz8V.js +0 -147
- package/dist/LabeledDocumentField-DsABa5TC.cjs +0 -41
- package/dist/LabeledDropDownFormattedTextField-CY8863G0.js +0 -163
- package/dist/LabeledDropDownFormattedTextField-CfYFvebQ.cjs +0 -59
- package/dist/LabeledEmailInputField-CEoadb45.cjs +0 -182
- package/dist/LabeledEmailInputField-DZGJORts.js +0 -425
- package/dist/LabeledItemWithButton-C6IbLixq.cjs +0 -21
- package/dist/LabeledItemWithButton-csG88KnT.js +0 -74
- package/dist/LabeledNameField-BKgCUkHK.js +0 -293
- package/dist/LabeledNameField-C9KqVgAT.cjs +0 -141
- package/dist/LabeledSingleSelectField-B77EYi3e.js +0 -372
- package/dist/LabeledSingleSelectField-hb6LePeV.cjs +0 -136
- package/dist/LabeledSingleSelectWithoutClearableField-DcJTClGH.cjs +0 -38
- package/dist/LabeledSingleSelectWithoutClearableField-vnZcd3tw.js +0 -103
- package/dist/LabeledText-Bux4Sxhz.cjs +0 -42
- package/dist/LabeledText-BwCD1YQu.js +0 -103
- package/dist/LabeledUserSingleSelectWithSubtitlesField-Dx_h7UNS.js +0 -572
- package/dist/LabeledUserSingleSelectWithSubtitlesField-E0GyXKV-.cjs +0 -229
- package/dist/LabeledZeniRolesDropDownField-CV7z94YU.js +0 -975
- package/dist/LabeledZeniRolesDropDownField-Cp5_1TI8.cjs +0 -297
- package/dist/LinkJETransactionPage-D1y5q5Wg.js +0 -406
- package/dist/LinkJETransactionPage-Kl05fXKd.cjs +0 -98
- package/dist/LockCardPage-Bh3qAiju.js +0 -2032
- package/dist/LockCardPage-D1Z06q9-.cjs +0 -623
- package/dist/LowBalancePopup-B90QKTO0.cjs +0 -34
- package/dist/LowBalancePopup-BnLcsJ93.js +0 -219
- package/dist/MagicLinkACHDetailsPage-BZ2OEqOP.js +0 -39
- package/dist/MagicLinkACHDetailsPage-dgSduqZs.cjs +0 -1
- package/dist/MagicLinkDomesticWireDetailsPage-BZpmyo9h.cjs +0 -1
- package/dist/MagicLinkDomesticWireDetailsPage-V_TzduIL.js +0 -44
- package/dist/MagicLinkInternationalWireDetailsPage-VPFlRm3b.cjs +0 -1
- package/dist/MagicLinkInternationalWireDetailsPage-Z-ssCodH.js +0 -43
- package/dist/MagicLinkSuccessPage-h-3JwH0l.js +0 -59
- package/dist/MagicLinkSuccessPage-mhaswAZ-.cjs +0 -31
- package/dist/MagicLinkTitleSection-BvFcpyWQ.js +0 -40
- package/dist/MagicLinkTitleSection-alAtUW7R.cjs +0 -17
- package/dist/MailingDetailsSection-BvORwvuJ.js +0 -74
- package/dist/MailingDetailsSection-C9vJGsby.cjs +0 -21
- package/dist/MatchingOperatorDropdown-DCHZgmMN.cjs +0 -130
- package/dist/MatchingOperatorDropdown-P6rWO85Z.js +0 -572
- package/dist/Menu-Be5LGB2P.js +0 -110
- package/dist/Menu-DMZ-kwY6.cjs +0 -17
- package/dist/MoreMenuButton-7vcy6WOQ.cjs +0 -167
- package/dist/MoreMenuButton-CUwyZouw.js +0 -569
- package/dist/MyBankConnectionsSettingsPage-C0Swp4_N.cjs +0 -110
- package/dist/MyBankConnectionsSettingsPage-CpUST0yD.js +0 -296
- package/dist/MyPendingActivationChargeCardListPage-BxfqWlCO.cjs +0 -6
- package/dist/MyPendingActivationChargeCardListPage-FwhUaTr1.js +0 -168
- package/dist/MyProfileSettingsPage-BssE8V9S.js +0 -641
- package/dist/MyProfileSettingsPage-vB_Ee9p7.cjs +0 -85
- package/dist/NavBarWithPicker-CrmqufFb.cjs +0 -30
- package/dist/NavBarWithPicker-DcLSQEDR.js +0 -106
- package/dist/NavigationArrow-BGfn2Qeo.js +0 -88
- package/dist/NavigationArrow-CPbvqch4.cjs +0 -47
- package/dist/NavigationDots-BsjbdTyk.cjs +0 -15
- package/dist/NavigationDots-Du9pIMPO.js +0 -44
- package/dist/NewGlobalMerchantPage-DjZvw4Ye.cjs +0 -160
- package/dist/NewGlobalMerchantPage-oxKXaotj.js +0 -543
- package/dist/NoDataChart-D0wUhr20.cjs +0 -26
- package/dist/NoDataChart-rSvTjDyU.js +0 -58
- package/dist/NoDataTable-D-FagLTd.js +0 -27
- package/dist/NoDataTable-D2UkOODt.cjs +0 -8
- package/dist/NotFoundPage-Bjlp3h5o.js +0 -71
- package/dist/NotFoundPage-DbcW-8xU.cjs +0 -46
- package/dist/NotificationSettingsPage-CC7U5qGh.cjs +0 -163
- package/dist/NotificationSettingsPage-DLdHPA7P.js +0 -541
- package/dist/NotificationsListConfig-61mZY8cq.js +0 -10
- package/dist/NotificationsListConfig-Can5dQ3h.cjs +0 -1
- package/dist/NotificationsPage-BV6UT90B.js +0 -2664
- package/dist/NotificationsPage-D81om8OB.cjs +0 -685
- package/dist/OpExByVendorPage-7xKHJtQv.cjs +0 -100
- package/dist/OpExByVendorPage-C2uIYLJE.js +0 -1057
- package/dist/PandLWithForecastPage-011GoPMW.js +0 -563
- package/dist/PandLWithForecastPage-CGTFEoDw.cjs +0 -107
- package/dist/PaymentAccountSetupBillingAddressSection-CEc8RgSK.cjs +0 -106
- package/dist/PaymentAccountSetupBillingAddressSection-FIKucVHC.js +0 -623
- package/dist/PeoplePage-CWyyZYP3.cjs +0 -675
- package/dist/PeoplePage-D73jfjjL.js +0 -1994
- package/dist/ProductsCarousel-1lgbaWb7.cjs +0 -142
- package/dist/ProductsCarousel-B2I3MkC-.js +0 -309
- package/dist/PromoBaseCards-BvTbiDoi.cjs +0 -218
- package/dist/PromoBaseCards-K94TnRI-.js +0 -356
- package/dist/QBOConnectionDialog-BElkJYqc.js +0 -115
- package/dist/QBOConnectionDialog-zx2xLCTr.cjs +0 -51
- package/dist/QBOSetupSection-BF_TqtfK.cjs +0 -79
- package/dist/QBOSetupSection-BM1ND3Rh.js +0 -167
- package/dist/ReimbursementApprovalRuleDetailPage-CBubTM00.cjs +0 -26
- package/dist/ReimbursementApprovalRuleDetailPage-CTK_6r1g.js +0 -247
- package/dist/ReimbursementApprovalRulesPage-2BX5dPNw.js +0 -410
- package/dist/ReimbursementApprovalRulesPage-B-3sdWqT.cjs +0 -237
- package/dist/ReimbursementDetailPage-DCt2BBxN.js +0 -1514
- package/dist/ReimbursementDetailPage-DWtYdYqa.cjs +0 -314
- package/dist/ReimbursementPromoPage-BFhBDfxP.js +0 -363
- package/dist/ReimbursementPromoPage-k7DnhZnO.cjs +0 -84
- package/dist/ReimbursementSetUpPage-CtuEiJUp.js +0 -663
- package/dist/ReimbursementSetUpPage-DQELa3lP.cjs +0 -140
- package/dist/ReimbursementsBulkReviewDrawerPage-CVjZG6xS.cjs +0 -1
- package/dist/ReimbursementsBulkReviewDrawerPage-DLAi8-G-.js +0 -204
- package/dist/ReloadCard-DCFPGXaE.cjs +0 -26
- package/dist/ReloadCard-r88gK1Nl.js +0 -137
- package/dist/ReloadContainer-Bs_BtzKf.cjs +0 -596
- package/dist/ReloadContainer-COUagdv5.js +0 -2144
- package/dist/ReportTableViewSelector-B9zzbNlR.cjs +0 -150
- package/dist/ReportTableViewSelector-DfEmPzs8.js +0 -679
- package/dist/ReportsPage-CprRm3ym.cjs +0 -121
- package/dist/ReportsPage-DKyERqNb.js +0 -1315
- package/dist/RevenueChart-Cm8B-tgV.js +0 -2239
- package/dist/RevenueChart-DDIEbYIL.cjs +0 -280
- package/dist/ReviewDetailsPage-DCWJANse.js +0 -1073
- package/dist/ReviewDetailsPage-mZU__y_V.cjs +0 -290
- package/dist/ReviewOverlay-cHIHNzUh.cjs +0 -152
- package/dist/ReviewOverlay-euS8ygX5.js +0 -299
- package/dist/RoleWithToolTip-D4ztEL6h.cjs +0 -22
- package/dist/RoleWithToolTip-DBoLqf02.js +0 -72
- package/dist/ScheduleDetailsFixedAssetsPage-Ben60pXV.js +0 -806
- package/dist/ScheduleDetailsFixedAssetsPage-CXX0wlsM.cjs +0 -37
- package/dist/ScheduleDetailsPage-BszG1uUV.cjs +0 -37
- package/dist/ScheduleDetailsPage-CoSd_hY0.js +0 -726
- package/dist/ScheduleSequenceTable-DNaegdk6.js +0 -1261
- package/dist/ScheduleSequenceTable-Oy0Tc_Gm.cjs +0 -324
- package/dist/SetUpAccountSection-BTuWpTqE.cjs +0 -378
- package/dist/SetUpAccountSection-r3-A3Qt7.js +0 -1468
- package/dist/SignIn-BZiwaRoI.js +0 -1075
- package/dist/SignIn-C4PZM5Eu.cjs +0 -448
- package/dist/SpendManagementListViewPage-CZ6gN8KG.cjs +0 -122
- package/dist/SpendManagementListViewPage-CbIlUHNO.js +0 -627
- package/dist/SpendManagementPerTabPage-Bzztq_eL.js +0 -2735
- package/dist/SpendManagementPerTabPage-DEPDUh3X.cjs +0 -754
- package/dist/SpendManagementSection-CUUz2IDG.cjs +0 -230
- package/dist/SpendManagementSection-CfZUGMdU.js +0 -1043
- package/dist/StatementItem-1oYAnZBe.js +0 -81
- package/dist/StatementItem-By0Parja.cjs +0 -31
- package/dist/StatementsPage-D7393GWK.cjs +0 -58
- package/dist/StatementsPage-Dij9AQNC.js +0 -130
- package/dist/StatusSwitcher-DHouxEKY.cjs +0 -120
- package/dist/StatusSwitcher-DkXBTB62.js +0 -319
- package/dist/SubTabSwitcher-BJHAFn38.cjs +0 -58
- package/dist/SubTabSwitcher-V4wilVXH.js +0 -113
- package/dist/SuccessAnimation-B5JuB80x.cjs +0 -13
- package/dist/SuccessAnimation-CAmkk3-5.js +0 -52
- package/dist/SummaryCard-BL_m-4zh.js +0 -25
- package/dist/SummaryCard-DPUI1l9P.cjs +0 -1
- package/dist/TaskDetailPage-BVtSI56U.js +0 -2533
- package/dist/TaskDetailPage-Cs-lzCA-.cjs +0 -775
- package/dist/TaskListRow-BFV8ouwB.cjs +0 -556
- package/dist/TaskListRow-BrSjmv7i.js +0 -1950
- package/dist/TaskManagementPage-BajeQTSZ.js +0 -1935
- package/dist/TaskManagementPage-DUaOqVjt.cjs +0 -508
- package/dist/TimeRangeSwitcher-CAsAYfkz.js +0 -265
- package/dist/TimeRangeSwitcher-D5p7CvCI.cjs +0 -64
- package/dist/TimeframeSwitcher-Bf9kolpj.cjs +0 -31
- package/dist/TimeframeSwitcher-pwO8bqPA.js +0 -103
- package/dist/TimeframeSwitcherWithToggle-BIKBHSVD.cjs +0 -31
- package/dist/TimeframeSwitcherWithToggle-CylL4Wwl.js +0 -157
- package/dist/TopExCard-8b4BYDqW.js +0 -568
- package/dist/TopExCard-Bqnl7bO4.cjs +0 -38
- package/dist/TopExDetailPage-BwYkPIGL.js +0 -318
- package/dist/TopExDetailPage-fP1P8iJ3.cjs +0 -132
- package/dist/TransactionDetailPage-BOlKUwWb.cjs +0 -912
- package/dist/TransactionDetailPage-asV0VD04.js +0 -5238
- package/dist/TransactionList-BTYUuFF0.js +0 -558
- package/dist/TransactionList-a5LIngAy.cjs +0 -147
- package/dist/TransactionListBig-DbEhpQam.cjs +0 -284
- package/dist/TransactionListBig-EEgwS3bL.js +0 -658
- package/dist/TransactionListPage-JcTgXQlG.js +0 -144
- package/dist/TransactionListPage-s5UbFyZf.cjs +0 -35
- package/dist/TransactionVendorDetailPage-3i4vhXP0.js +0 -425
- package/dist/TransactionVendorDetailPage-CBnWDPza.cjs +0 -80
- package/dist/TransferDrawerPage-lxqmIEDE.js +0 -1435
- package/dist/TransferDrawerPage-z1cUAY5x.cjs +0 -362
- package/dist/TreasuryOverviewPage-Dtg3XYHp.js +0 -1889
- package/dist/TreasuryOverviewPage-z-xUpia2.cjs +0 -708
- package/dist/TreasuryPromoPage-9JgpPvwF.js +0 -1123
- package/dist/TreasuryPromoPage-xwSP_eL-.cjs +0 -505
- package/dist/TreasuryStatementsPage-C_n6todR.js +0 -131
- package/dist/TreasuryStatementsPage-DXqHynbX.cjs +0 -58
- package/dist/TreasuryTaxLetterPage-BPqS3Va1.cjs +0 -58
- package/dist/TreasuryTaxLetterPage-BkUuZRBn.js +0 -131
- package/dist/TrendChart-Bnp4lc2u.cjs +0 -16
- package/dist/TrendChart-jDPeWiPY.js +0 -333
- package/dist/TrendWithTransactions-BFgeU8_I.cjs +0 -116
- package/dist/TrendWithTransactions-Ci3vAGZ6.js +0 -346
- package/dist/UncategorizedAccountsMappingPage-BsSyITbL.cjs +0 -244
- package/dist/UncategorizedAccountsMappingPage-cKYwTc7z.js +0 -1159
- package/dist/UnitIntegrationPage-BMJRs1UT.cjs +0 -67
- package/dist/UnitIntegrationPage-CdoyFTUL.js +0 -405
- package/dist/UploadAdditionalDocumentOverlay-BDTRGtHK.cjs +0 -38
- package/dist/UploadAdditionalDocumentOverlay-RzDi2m23.js +0 -211
- package/dist/Vendor2FAPopup-CZQ1MJ_y.js +0 -69
- package/dist/Vendor2FAPopup-DXL7yD1p.cjs +0 -1
- package/dist/VendorACHDetailsPage-D4y31eUn.js +0 -43
- package/dist/VendorACHDetailsPage-D9IfaM8p.cjs +0 -1
- package/dist/VendorDetailPage-BldaRW5A.js +0 -1236
- package/dist/VendorDetailPage-D_EVv0ns.cjs +0 -257
- package/dist/VendorDomesticWireDetailsPage-C12NRy8p.js +0 -53
- package/dist/VendorDomesticWireDetailsPage-r2RWlO_D.cjs +0 -1
- package/dist/VendorFiling1099EditablePage-B3y2ImTz.js +0 -842
- package/dist/VendorFiling1099EditablePage-C5qah6Jd.cjs +0 -175
- package/dist/VendorFirstReviewPage-BqwuAwP0.cjs +0 -730
- package/dist/VendorFirstReviewPage-e3aUtVX3.js +0 -2748
- package/dist/VendorInternationalWireDetailsPage-CMPGutjq.js +0 -968
- package/dist/VendorInternationalWireDetailsPage-DznOL-LS.cjs +0 -152
- package/dist/VendorInternationalWireSwiftDetailsPage-OEKIn5Ns.js +0 -52
- package/dist/VendorInternationalWireSwiftDetailsPage-kF0dpyNq.cjs +0 -1
- package/dist/VendorsAccountsSection-BihANnr3.js +0 -279
- package/dist/VendorsAccountsSection-CnYisy4p.cjs +0 -68
- package/dist/VerifyDevice-BTvVtu6y.js +0 -298
- package/dist/VerifyDevice-CKmqISme.cjs +0 -112
- package/dist/VideoPlayer-DfTUoEz0.js +0 -169
- package/dist/VideoPlayer-tQ3UK5Q1.cjs +0 -77
- package/dist/VideoPopup-B0Q_OHQY.js +0 -60
- package/dist/VideoPopup-XzQPSNqy.cjs +0 -31
- package/dist/WarningsDrawerPage-CrqblZGy.js +0 -228
- package/dist/WarningsDrawerPage-CyY0jS78.cjs +0 -92
- package/dist/ZeniAccountDetailPage-DeALCDUC.cjs +0 -300
- package/dist/ZeniAccountDetailPage-DlUMJ31l.js +0 -907
- package/dist/ZeniAccountListViewPage-B5eFGMk6.js +0 -1078
- package/dist/ZeniAccountListViewPage-CVlaROv7.cjs +0 -441
- package/dist/ZeniAccountNavBarPieces-DHS4RmYE.js +0 -89
- package/dist/ZeniAccountNavBarPieces-DMXN7yoa.cjs +0 -14
- package/dist/ZeniAccountPromoPage-BSm60eyo.js +0 -522
- package/dist/ZeniAccountPromoPage-MmD4Z501.cjs +0 -184
- package/dist/ZeniAccountSetupPage-CmW6e4wI.js +0 -309
- package/dist/ZeniAccountSetupPage-D4WRTQss.cjs +0 -36
- package/dist/ZeniAvatar-DK_E79T8.js +0 -34
- package/dist/ZeniAvatar-y0IjEhXO.cjs +0 -13
- package/dist/ZeniCopyright-D5hcSsec.cjs +0 -1
- package/dist/ZeniCopyright-FdRtkqZd.js +0 -9
- package/dist/ZeniDatePicker-BVLx98iZ.cjs +0 -187
- package/dist/ZeniDatePicker-CV1xtLXo.js +0 -386
- package/dist/ZeniTransferAmountSlider-BFufV56Y.js +0 -215
- package/dist/ZeniTransferAmountSlider-CJ0yrl-E.cjs +0 -63
- package/dist/analyticsHelper-Bp-WofY6.js +0 -65
- package/dist/analyticsHelper-C4Q7CqG7.cjs +0 -1
- package/dist/calculateSize-BNpuhBPK.js +0 -22
- package/dist/calculateSize-DJKX56Z5.cjs +0 -1
- package/dist/chartTypes-B2M-L_2B.js +0 -47
- package/dist/chartTypes-Cutn3WoJ.cjs +0 -1
- package/dist/common-BvGVoeCS.cjs +0 -1
- package/dist/common-DsIbm2-C.js +0 -22
- package/dist/commonDimensions-B7oql_uP.cjs +0 -1
- package/dist/commonDimensions-V7mnkdlI.js +0 -13
- package/dist/detailCommon-Du0wUwvm.cjs +0 -38
- package/dist/detailCommon-DwrYiaFL.js +0 -124
- package/dist/downloadPdf-Byh_NifO.js +0 -32
- package/dist/downloadPdf-DI0qPmFx.cjs +0 -1
- package/dist/index-BlhcX4SE.cjs +0 -21111
- package/dist/index-ZNEZeera.js +0 -92128
- package/dist/mapLoadingInProgressToTreeNode-D6GLjoFV.js +0 -25
- package/dist/mapLoadingInProgressToTreeNode-DyX9iwkb.cjs +0 -1
- package/dist/mapSectionWithAcOnlyToTreeNode-CLDcG0m_.cjs +0 -1
- package/dist/mapSectionWithAcOnlyToTreeNode-D-8W8W6B.js +0 -388
- package/dist/mapSpacerToTreeNode-8E61562K.cjs +0 -1
- package/dist/mapSpacerToTreeNode-ByHELHOn.js +0 -25
- package/dist/mapTimeframeBalancesToTreeNode-B-c4aUT4.js +0 -24
- package/dist/mapTimeframeBalancesToTreeNode-BJ934QgM.js +0 -24
- package/dist/mapTimeframeBalancesToTreeNode-C5I6Opcp.cjs +0 -1
- package/dist/mapTimeframeBalancesToTreeNode-DNdvF2LK.cjs +0 -1
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-C96KQ0n4.cjs +0 -1
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-pA0oPIQY.js +0 -32
- package/dist/sectionColor-DA3T3DkM.cjs +0 -1
- package/dist/sectionColor-jQeY14yx.js +0 -32
- package/dist/toCOABalancesWithID-DL1daKv1.cjs +0 -1
- package/dist/toCOABalancesWithID-Db8tb9a8.js +0 -8
- package/dist/toChartData-C0fo4phk.cjs +0 -1
- package/dist/toChartData-DAKm9HcI.js +0 -76
- package/dist/uploadAttachment-BEGz93Tv.js +0 -952
- package/dist/uploadAttachment-C-Q1Wob4.cjs +0 -286
- package/dist/zeniDatePicker.helpers-BMkPmGHt.cjs +0 -1
- package/dist/zeniDatePicker.helpers-CIgk0PvG.js +0 -14
|
@@ -1,4530 +0,0 @@
|
|
|
1
|
-
import { u as $t, d as at, m as Pe, j as t, an as zt, C as cn, k as dn, o as cr, g as un, aD as dr, h as ur, b as Po, F as mn, l as Bo } from "./vendor-.pnpm-DtFedGku.js";
|
|
2
|
-
import It, { useEffect as ye, useState as X, useRef as bt, useCallback as pn, useMemo as xt, useContext as mr } from "react";
|
|
3
|
-
import n from "@emotion/styled";
|
|
4
|
-
import { RoomProvider as pr } from "@liveblocks/react";
|
|
5
|
-
import { dateNow as po, zeniDate as it, toAmount as hn, getNextNthWorkingDay as gn, defaultVendorCurrency as Ao, reduceAnyFetchState as hr, toReimbursementTypeCode as Lo } from "@zeniai/client-epic-state";
|
|
6
|
-
import { u as ze, dB as St, iy as Wt, a as we, R as s, hv as $e, hx as Se, aH as yn, ii as Mo, fj as rt, aS as ho, iz as fn, S as o, iA as uo, gJ as Ye, D as r, j as U, fQ as gr, o as xn, aB as yr, C as I, A as vt, av as go, Z as bn, G as yo, ag as fr, iB as Et, a5 as xr, az as fo, B as Ro, is as wn, at as zo, L as Vt, p as xo, z as br, E as wr, il as $r, hu as $n, t as Ft, fn as Sn, fu as Sr, hB as vr, _ as _t, e_ as vn, K as Cn, w as Tn, iC as Ue, hi as bo, aP as wo, aQ as kn, aR as jn, hH as Cr, eP as Tr, ap as In, aX as kr, y as jr, aD as mo, iD as Ir, b as On, V as $o, bc as Or, be as Pr, T as Br, i as Ar, N as Lr, iE as Mr, aE as Fo, k as Rr, ae as zr, ik as Fr, iq as No, m as Nr, eQ as Wr, e as Er, aG as Vr, iF as _r, X as Dr } from "./index-ZNEZeera.js";
|
|
7
|
-
import Pn from "./InvoiceUploadSection-cqqlOUmi.js";
|
|
8
|
-
import { u as Ie, w as Nt, l as So, p as wt, s as Wo, g as qr } from "./types-DyvtCprH.js";
|
|
9
|
-
import { L as Ur } from "./LabeledCreatableSingleSelectField-DYSTwuBo.js";
|
|
10
|
-
import { C as Hr } from "./CurrencySelectField-COHkbTPk.js";
|
|
11
|
-
import { B as Kr } from "./BankAccountSection-E80ZBAai.js";
|
|
12
|
-
import { B as Gr, a as Yr } from "./BankAccountWarningSection-CztvYd12.js";
|
|
13
|
-
import { S as Jr } from "./radio-default-CiSgisfh.js";
|
|
14
|
-
const We = (e, i) => `${e}.${i}`, Eo = {
|
|
15
|
-
largeLabelWidth: new s(120, 120, 160),
|
|
16
|
-
paddingBottom: new s(r[3], r[2]),
|
|
17
|
-
paddingLeft: new s(r[3], r[4])
|
|
18
|
-
}, {
|
|
19
|
-
spendManagement: {
|
|
20
|
-
reimbursement: { reimbursementDetail: je }
|
|
21
|
-
},
|
|
22
|
-
dateFormat: Qr,
|
|
23
|
-
common: Xr
|
|
24
|
-
} = we.getLocalizedStrings(), Zr = ({
|
|
25
|
-
lineIndex: e,
|
|
26
|
-
mileage: i,
|
|
27
|
-
classList: a,
|
|
28
|
-
defaultCurrency: d,
|
|
29
|
-
sectionId: p,
|
|
30
|
-
isReimbursementCommentingEnabled: v,
|
|
31
|
-
isDisabled: m,
|
|
32
|
-
isAddReimbursementDisabled: S,
|
|
33
|
-
companyMileageConfigInfo: x,
|
|
34
|
-
reimbursementId: l,
|
|
35
|
-
classHierarchyList: C
|
|
36
|
-
}) => {
|
|
37
|
-
const b = ze(), c = St(), y = Wt(), $ = `dashboard_${c.currentTenant?.companyId}`, O = $t(), {
|
|
38
|
-
formState: { errors: T },
|
|
39
|
-
getValues: P,
|
|
40
|
-
trigger: H
|
|
41
|
-
} = at(), B = Xr.strings.empty, k = P(
|
|
42
|
-
We(p, "distanceInMiles")
|
|
43
|
-
), M = Eo.largeLabelWidth.value(b), te = P(We(p, "class")), ne = a.find(
|
|
44
|
-
(L) => L.classId === te?.selectedOption
|
|
45
|
-
), re = We(p, "class"), Y = Pe(T, re);
|
|
46
|
-
ye(() => {
|
|
47
|
-
te?.selectedOption != null && (ne?.isDeleted === !0 || Y) && H(re);
|
|
48
|
-
}, [
|
|
49
|
-
te?.selectedOption,
|
|
50
|
-
ne?.isDeleted,
|
|
51
|
-
a,
|
|
52
|
-
re,
|
|
53
|
-
H
|
|
54
|
-
]);
|
|
55
|
-
const K = {
|
|
56
|
-
application: "dashboard",
|
|
57
|
-
companyId: c.currentTenant?.companyId,
|
|
58
|
-
tab: "reimbursement",
|
|
59
|
-
entityId: l
|
|
60
|
-
}, F = (L) => a.filter((Q) => Q.classId === L)[0]?.accountingClassNumber, J = a.find((L) => L.classId === i.class), q = {
|
|
61
|
-
valueContainer: (L) => ({
|
|
62
|
-
...L,
|
|
63
|
-
padding: `2px ${o.sp3} !important`,
|
|
64
|
-
overflow: "unset"
|
|
65
|
-
}),
|
|
66
|
-
singleValue: () => ({
|
|
67
|
-
margin: 0
|
|
68
|
-
})
|
|
69
|
-
};
|
|
70
|
-
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
71
|
-
/* @__PURE__ */ t.jsx(
|
|
72
|
-
$e,
|
|
73
|
-
{
|
|
74
|
-
isThreadAllowed: v && l != null,
|
|
75
|
-
dashboardTabKey: Se({
|
|
76
|
-
type: "details",
|
|
77
|
-
key: `${e}.mileage.transactionDate`
|
|
78
|
-
}),
|
|
79
|
-
roomId: $,
|
|
80
|
-
companyId: c.currentTenant?.companyId ?? B,
|
|
81
|
-
companyName: c.currentTenant?.companyName ?? B,
|
|
82
|
-
entityId: l,
|
|
83
|
-
dashboardOptionType: "reimbursement",
|
|
84
|
-
filterMetaData: {
|
|
85
|
-
...K,
|
|
86
|
-
entityType: `reimbursement.details.${Ie(
|
|
87
|
-
"transactionDate",
|
|
88
|
-
e,
|
|
89
|
-
"mileage"
|
|
90
|
-
)}`
|
|
91
|
-
},
|
|
92
|
-
fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
|
|
93
|
-
children: /* @__PURE__ */ t.jsx(
|
|
94
|
-
yn,
|
|
95
|
-
{
|
|
96
|
-
isDisabled: m,
|
|
97
|
-
label: {
|
|
98
|
-
label: je.transactionDate,
|
|
99
|
-
width: M
|
|
100
|
-
},
|
|
101
|
-
style: {
|
|
102
|
-
paddingBottom: Eo.paddingBottom.valuePx(b),
|
|
103
|
-
width: "auto"
|
|
104
|
-
},
|
|
105
|
-
dateField: {
|
|
106
|
-
name: We(p, "transactionDate"),
|
|
107
|
-
placeholder: je.datePlaceholder,
|
|
108
|
-
defaultValue: i?.transactionDate,
|
|
109
|
-
dateFormat: Qr.visual.defaultInput,
|
|
110
|
-
autoComplete: "off",
|
|
111
|
-
maxDate: po(),
|
|
112
|
-
registerOptions: {
|
|
113
|
-
required: !0,
|
|
114
|
-
validate: (L) => !!L
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
)
|
|
119
|
-
}
|
|
120
|
-
),
|
|
121
|
-
/* @__PURE__ */ t.jsx(Ot, {}),
|
|
122
|
-
/* @__PURE__ */ t.jsx(
|
|
123
|
-
$e,
|
|
124
|
-
{
|
|
125
|
-
isThreadAllowed: v && l != null,
|
|
126
|
-
dashboardTabKey: Se({
|
|
127
|
-
type: "details",
|
|
128
|
-
key: `${e}.mileage.distanceInMiles`
|
|
129
|
-
}),
|
|
130
|
-
roomId: $,
|
|
131
|
-
companyId: c.currentTenant?.companyId ?? B,
|
|
132
|
-
companyName: c.currentTenant?.companyName ?? B,
|
|
133
|
-
entityId: l,
|
|
134
|
-
dashboardOptionType: "reimbursement",
|
|
135
|
-
filterMetaData: {
|
|
136
|
-
...K,
|
|
137
|
-
entityType: `reimbursement.details.${Ie(
|
|
138
|
-
"distanceInMiles",
|
|
139
|
-
e,
|
|
140
|
-
"mileage"
|
|
141
|
-
)}`
|
|
142
|
-
},
|
|
143
|
-
fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
|
|
144
|
-
children: /* @__PURE__ */ t.jsx(
|
|
145
|
-
Mo,
|
|
146
|
-
{
|
|
147
|
-
isDisabled: S ? "disabled" : void 0,
|
|
148
|
-
style: { width: "auto" },
|
|
149
|
-
label: { label: je.distanceInMiles, width: M },
|
|
150
|
-
formattedTextField: {
|
|
151
|
-
type: "number",
|
|
152
|
-
name: We(p, "distanceInMiles"),
|
|
153
|
-
placeholder: je.addMiles,
|
|
154
|
-
defaultValue: i.distanceInMiles,
|
|
155
|
-
registerOptions: {
|
|
156
|
-
required: !0,
|
|
157
|
-
validate: (L) => L != null ? L > 0 : !0,
|
|
158
|
-
min: 0.01
|
|
159
|
-
},
|
|
160
|
-
returnValueType: "floatValue",
|
|
161
|
-
allowNegative: !1,
|
|
162
|
-
isNumericString: !1,
|
|
163
|
-
decimalScale: 2
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
)
|
|
167
|
-
}
|
|
168
|
-
),
|
|
169
|
-
/* @__PURE__ */ t.jsx(Ot, {}),
|
|
170
|
-
/* @__PURE__ */ t.jsx(
|
|
171
|
-
$e,
|
|
172
|
-
{
|
|
173
|
-
isThreadAllowed: v && l != null,
|
|
174
|
-
dashboardTabKey: Se({
|
|
175
|
-
type: "details",
|
|
176
|
-
key: `${e}.mileage.amount`
|
|
177
|
-
}),
|
|
178
|
-
roomId: $,
|
|
179
|
-
companyId: c.currentTenant?.companyId ?? B,
|
|
180
|
-
companyName: c.currentTenant?.companyName ?? B,
|
|
181
|
-
entityId: l,
|
|
182
|
-
dashboardOptionType: "reimbursement",
|
|
183
|
-
filterMetaData: {
|
|
184
|
-
...K,
|
|
185
|
-
entityType: `reimbursement.details.${Ie(
|
|
186
|
-
"amount",
|
|
187
|
-
e,
|
|
188
|
-
"mileage"
|
|
189
|
-
)}`
|
|
190
|
-
},
|
|
191
|
-
fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
|
|
192
|
-
children: /* @__PURE__ */ t.jsx(
|
|
193
|
-
Mo,
|
|
194
|
-
{
|
|
195
|
-
isDisabled: "disabled",
|
|
196
|
-
label: {
|
|
197
|
-
label: je.amount,
|
|
198
|
-
width: M
|
|
199
|
-
},
|
|
200
|
-
formattedTextField: {
|
|
201
|
-
type: "number",
|
|
202
|
-
name: We(`${p}.amount`, "amount"),
|
|
203
|
-
defaultValue: i.amount?.amount,
|
|
204
|
-
placeholder: rt(je.amount),
|
|
205
|
-
returnValueType: "floatValue",
|
|
206
|
-
prefix: i.amount?.currencySymbol,
|
|
207
|
-
allowNegative: !1,
|
|
208
|
-
isNumericString: !1,
|
|
209
|
-
registerOptions: {
|
|
210
|
-
required: !0,
|
|
211
|
-
validate: (L) => L != null ? L > 0 : !0
|
|
212
|
-
},
|
|
213
|
-
autoComplete: "off",
|
|
214
|
-
decimalSeparator: ".",
|
|
215
|
-
decimalScale: 2,
|
|
216
|
-
fixedDecimalScale: !1,
|
|
217
|
-
thousandSeparator: !0
|
|
218
|
-
},
|
|
219
|
-
style: { width: "auto" },
|
|
220
|
-
additionalInfoLabel: k != null && x?.mileageUnitAmount != null ? `${d.currencySymbol}${x?.mileageUnitAmount} per mile x ${k}` : void 0
|
|
221
|
-
}
|
|
222
|
-
)
|
|
223
|
-
}
|
|
224
|
-
),
|
|
225
|
-
/* @__PURE__ */ t.jsx(Ot, {}),
|
|
226
|
-
/* @__PURE__ */ t.jsx(
|
|
227
|
-
$e,
|
|
228
|
-
{
|
|
229
|
-
isThreadAllowed: v && l != null,
|
|
230
|
-
dashboardTabKey: Se({
|
|
231
|
-
type: "details",
|
|
232
|
-
key: `${e}.mileage.memo`
|
|
233
|
-
}),
|
|
234
|
-
roomId: $,
|
|
235
|
-
companyId: c.currentTenant?.companyId ?? B,
|
|
236
|
-
companyName: c.currentTenant?.companyName ?? B,
|
|
237
|
-
entityId: l,
|
|
238
|
-
dashboardOptionType: "reimbursement",
|
|
239
|
-
filterMetaData: {
|
|
240
|
-
...K,
|
|
241
|
-
entityType: `reimbursement.details.${Ie(
|
|
242
|
-
"memo",
|
|
243
|
-
e,
|
|
244
|
-
"mileage"
|
|
245
|
-
)}`
|
|
246
|
-
},
|
|
247
|
-
fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
|
|
248
|
-
children: /* @__PURE__ */ t.jsx(
|
|
249
|
-
ho,
|
|
250
|
-
{
|
|
251
|
-
isDisabled: m,
|
|
252
|
-
label: {
|
|
253
|
-
label: je.memo,
|
|
254
|
-
width: M
|
|
255
|
-
},
|
|
256
|
-
style: { width: "auto" },
|
|
257
|
-
text: {
|
|
258
|
-
type: "text",
|
|
259
|
-
name: We(p, "memo"),
|
|
260
|
-
placeholder: rt(je.memo),
|
|
261
|
-
defaultValue: i.memo,
|
|
262
|
-
autoComplete: "off",
|
|
263
|
-
options: {
|
|
264
|
-
pattern: fn
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
)
|
|
269
|
-
}
|
|
270
|
-
),
|
|
271
|
-
/* @__PURE__ */ t.jsx(Ot, {}),
|
|
272
|
-
/* @__PURE__ */ t.jsx(
|
|
273
|
-
$e,
|
|
274
|
-
{
|
|
275
|
-
isThreadAllowed: v && l != null,
|
|
276
|
-
dashboardTabKey: Se({
|
|
277
|
-
type: "details",
|
|
278
|
-
key: `${e}.mileage.class`
|
|
279
|
-
}),
|
|
280
|
-
roomId: $,
|
|
281
|
-
companyId: c.currentTenant?.companyId ?? B,
|
|
282
|
-
companyName: c.currentTenant?.companyName ?? B,
|
|
283
|
-
entityId: l,
|
|
284
|
-
dashboardOptionType: "reimbursement",
|
|
285
|
-
filterMetaData: {
|
|
286
|
-
...K,
|
|
287
|
-
entityType: `reimbursement.details.${Ie(
|
|
288
|
-
"class",
|
|
289
|
-
e,
|
|
290
|
-
"mileage"
|
|
291
|
-
)}`
|
|
292
|
-
},
|
|
293
|
-
fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
|
|
294
|
-
style: {
|
|
295
|
-
borderRadius: `0 0 ${o.sp2} ${o.sp2}`
|
|
296
|
-
},
|
|
297
|
-
children: /* @__PURE__ */ t.jsx(
|
|
298
|
-
uo,
|
|
299
|
-
{
|
|
300
|
-
isLoading: !1,
|
|
301
|
-
label: {
|
|
302
|
-
label: je.department,
|
|
303
|
-
width: M
|
|
304
|
-
},
|
|
305
|
-
additionalLabelInfo: ne?.isDeleted === !0 && Pe(T, We(p, "class")) ? je.deletedClassError : void 0,
|
|
306
|
-
groupedSingleSelectField: {
|
|
307
|
-
shouldShowChevronIcon: !1,
|
|
308
|
-
name: We(p, "class"),
|
|
309
|
-
placeholder: rt(je.department),
|
|
310
|
-
valueToId: (L) => F(L),
|
|
311
|
-
defaultValue: {
|
|
312
|
-
selectedOption: J?.classId,
|
|
313
|
-
allOptions: Ye(C, [])
|
|
314
|
-
},
|
|
315
|
-
style: {
|
|
316
|
-
width: "100%"
|
|
317
|
-
},
|
|
318
|
-
customStyleConfig: q,
|
|
319
|
-
registerOptions: {
|
|
320
|
-
required: !0,
|
|
321
|
-
validate: (L) => L?.selectedOption == null ? !1 : a.find(
|
|
322
|
-
(Q) => Q.classId === L?.selectedOption
|
|
323
|
-
)?.isDeleted === !0 ? je.deletedClassError : !0
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
style: {
|
|
327
|
-
borderBottom: `1px solid ${O.colors.grey3}`,
|
|
328
|
-
borderBottomLeftRadius: o.sp2,
|
|
329
|
-
borderBottomRightRadius: o.sp2
|
|
330
|
-
},
|
|
331
|
-
fullWidthSelect: !0
|
|
332
|
-
},
|
|
333
|
-
We(p, "class")
|
|
334
|
-
)
|
|
335
|
-
}
|
|
336
|
-
)
|
|
337
|
-
] });
|
|
338
|
-
}, Ot = n.div`
|
|
339
|
-
display: flex;
|
|
340
|
-
flex: 1;
|
|
341
|
-
background-color: ${(e) => e.theme.colors.grey3};
|
|
342
|
-
min-height: 1px;
|
|
343
|
-
max-height: 1px;
|
|
344
|
-
`, Vo = {
|
|
345
|
-
amounWidth: new s(50, 30),
|
|
346
|
-
currencyWidth: new s(50, 70)
|
|
347
|
-
};
|
|
348
|
-
function ei({
|
|
349
|
-
name: e,
|
|
350
|
-
placeHolder: i,
|
|
351
|
-
defaultValue: a,
|
|
352
|
-
isDisabled: d,
|
|
353
|
-
showAmountCurrencyError: p,
|
|
354
|
-
style: v,
|
|
355
|
-
allCurrencies: m
|
|
356
|
-
}) {
|
|
357
|
-
const [S, x] = X(!1), {
|
|
358
|
-
getValues: l,
|
|
359
|
-
formState: { errors: C }
|
|
360
|
-
} = at(), b = $t(), c = ze(), y = d != null, $ = l(e), O = `${$?.amount} ${$?.currency?.selectedOption}`, T = Pe(C, e) && zt(C, `${e}.amount`) != null, P = Pe(C, e) && zt(C, `${e}.currency`) != null, H = p === !0 ? T || P : !1, B = !H && S === !1;
|
|
361
|
-
return ye(() => {
|
|
362
|
-
B === !1 && x(!0);
|
|
363
|
-
}, [B]), /* @__PURE__ */ t.jsx(
|
|
364
|
-
cn,
|
|
365
|
-
{
|
|
366
|
-
onClickAway: () => y === !1 && !H && x(!1),
|
|
367
|
-
children: /* @__PURE__ */ t.jsx(
|
|
368
|
-
oi,
|
|
369
|
-
{
|
|
370
|
-
style: v,
|
|
371
|
-
isDisabled: y,
|
|
372
|
-
tabIndex: B && !y ? 0 : void 0,
|
|
373
|
-
onClick: () => y === !1 && x(!0),
|
|
374
|
-
"data-testid": U("currency-amount-field", e),
|
|
375
|
-
children: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
376
|
-
$?.amount != null ? /* @__PURE__ */ t.jsx(
|
|
377
|
-
_o,
|
|
378
|
-
{
|
|
379
|
-
className: "amount-field",
|
|
380
|
-
isVisible: B,
|
|
381
|
-
children: O
|
|
382
|
-
}
|
|
383
|
-
) : /* @__PURE__ */ t.jsx(
|
|
384
|
-
_o,
|
|
385
|
-
{
|
|
386
|
-
className: "amount-field amount-placeholder",
|
|
387
|
-
isVisible: B,
|
|
388
|
-
children: i?.name
|
|
389
|
-
}
|
|
390
|
-
),
|
|
391
|
-
/* @__PURE__ */ t.jsxs(ti, { isVisible: !B, children: [
|
|
392
|
-
/* @__PURE__ */ t.jsx(
|
|
393
|
-
gr,
|
|
394
|
-
{
|
|
395
|
-
type: "number",
|
|
396
|
-
name: `${e}.amount`,
|
|
397
|
-
defaultValue: a?.amount,
|
|
398
|
-
placeholder: i?.amount,
|
|
399
|
-
returnValueType: "floatValue",
|
|
400
|
-
allowNegative: !1,
|
|
401
|
-
isNumericString: !1,
|
|
402
|
-
registerOptions: {
|
|
403
|
-
required: !0,
|
|
404
|
-
validate: (k) => k != null ? k > 0 : !0
|
|
405
|
-
},
|
|
406
|
-
autoComplete: "off",
|
|
407
|
-
decimalSeparator: ".",
|
|
408
|
-
decimalScale: 2,
|
|
409
|
-
fixedDecimalScale: !1,
|
|
410
|
-
thousandSeparator: !0,
|
|
411
|
-
isDisabled: d,
|
|
412
|
-
style: {
|
|
413
|
-
display: "flex",
|
|
414
|
-
flexGrow: 1,
|
|
415
|
-
width: Vo.amounWidth.valuePercentage(c),
|
|
416
|
-
cursor: "inherit"
|
|
417
|
-
},
|
|
418
|
-
bgColor: b.colors.background,
|
|
419
|
-
isFieldError: T,
|
|
420
|
-
shouldHighlightZeroAmount: !0
|
|
421
|
-
}
|
|
422
|
-
),
|
|
423
|
-
B ? null : /* @__PURE__ */ t.jsx(ni, {}),
|
|
424
|
-
/* @__PURE__ */ t.jsx(
|
|
425
|
-
Hr,
|
|
426
|
-
{
|
|
427
|
-
name: `${e}.currency`,
|
|
428
|
-
registerOptions: {
|
|
429
|
-
validate: (k) => k != null && k.selectedOption != null
|
|
430
|
-
},
|
|
431
|
-
defaultValue: {
|
|
432
|
-
allOptions: m.map((k) => ({
|
|
433
|
-
label: c === "small" ? k.currencyCode : `${k.currencyCode} - ${k.currency}`,
|
|
434
|
-
value: k.currencyCode,
|
|
435
|
-
countryCode: k.countryCode
|
|
436
|
-
})),
|
|
437
|
-
selectedOption: a?.currencyCode
|
|
438
|
-
},
|
|
439
|
-
controlStyle: {
|
|
440
|
-
justifyContent: "flex-start",
|
|
441
|
-
backgroundColor: b.colors.background
|
|
442
|
-
},
|
|
443
|
-
isDisabled: d,
|
|
444
|
-
style: {
|
|
445
|
-
width: Vo.currencyWidth.valuePercentage(c),
|
|
446
|
-
flexGrow: 1
|
|
447
|
-
},
|
|
448
|
-
isOptionRemovable: !1
|
|
449
|
-
}
|
|
450
|
-
)
|
|
451
|
-
] })
|
|
452
|
-
] })
|
|
453
|
-
}
|
|
454
|
-
)
|
|
455
|
-
}
|
|
456
|
-
);
|
|
457
|
-
}
|
|
458
|
-
const ti = n.div`
|
|
459
|
-
display: ${(e) => e.isVisible ? "flex" : "none"};
|
|
460
|
-
width: 100%;
|
|
461
|
-
input {
|
|
462
|
-
text-align: left;
|
|
463
|
-
}
|
|
464
|
-
`, oi = n.div`
|
|
465
|
-
display: flex;
|
|
466
|
-
align-items: center;
|
|
467
|
-
justify-content: flex-end;
|
|
468
|
-
position: relative;
|
|
469
|
-
width: 100%;
|
|
470
|
-
background-color: ${(e) => e.theme.colors.grey5};
|
|
471
|
-
outline: none;
|
|
472
|
-
outline-width: 0;
|
|
473
|
-
input {
|
|
474
|
-
text-align: right;
|
|
475
|
-
}
|
|
476
|
-
`, ni = n.div`
|
|
477
|
-
background-color: ${(e) => e.theme.colors.grey5};
|
|
478
|
-
min-width: ${o.sp3};
|
|
479
|
-
`, _o = n(xn)`
|
|
480
|
-
display: ${(e) => e.isVisible ? "flex" : "none"};
|
|
481
|
-
padding: 0 ${o.sp3};
|
|
482
|
-
border-radius: ${o.sp1};
|
|
483
|
-
height: 100%;
|
|
484
|
-
align-items: center;
|
|
485
|
-
width: 100%;
|
|
486
|
-
justify-content: flex-end;
|
|
487
|
-
color: ${(e) => e.theme.colors.primary};
|
|
488
|
-
&.amount-placeholder {
|
|
489
|
-
color: ${(e) => e.theme.colors.grey1};
|
|
490
|
-
}
|
|
491
|
-
`, De = {
|
|
492
|
-
width: new s(343, 580, 726),
|
|
493
|
-
height: new s(r[6], r[6]),
|
|
494
|
-
controlHeight: new s(r[6], r[6]),
|
|
495
|
-
paddingTopBottom: new s(r[2], r[2]),
|
|
496
|
-
marginTop: new s(r[2], r[2]),
|
|
497
|
-
marginBottom: new s(r[2], r[2]),
|
|
498
|
-
marginRight: new s(r[2], r[2]),
|
|
499
|
-
labelMarginLeft: new s(r[3], r[4]),
|
|
500
|
-
labelMarginRight: new s(r[3], r[4]),
|
|
501
|
-
labelMarginTop: new s(r[2], r[2])
|
|
502
|
-
}, Bn = {
|
|
503
|
-
infoLabel: new go("extraSmallRegular", "smallRegular")
|
|
504
|
-
};
|
|
505
|
-
function ri({
|
|
506
|
-
isDisabled: e,
|
|
507
|
-
label: i,
|
|
508
|
-
currencyAmountField: a,
|
|
509
|
-
style: d,
|
|
510
|
-
errorInfoLabel: p,
|
|
511
|
-
isAdditionalInfoLabelLoading: v,
|
|
512
|
-
showAdditionalLabelTooltip: m = !1,
|
|
513
|
-
additionalLabelTooltip: S,
|
|
514
|
-
additionalInfoLabel: x,
|
|
515
|
-
showAdditionalInfoLabel: l = !0
|
|
516
|
-
}) {
|
|
517
|
-
const C = ze(), {
|
|
518
|
-
formState: { errors: b }
|
|
519
|
-
} = at(), c = Pe(b, a.name) && zt(b, `${a.name}.amount`) != null, y = Pe(b, a.name) && zt(b, `${a.name}.currency`) != null, $ = a.showAmountCurrencyError === !0 ? c || y : !1, O = c || y || $, T = () => {
|
|
520
|
-
if (v === !0)
|
|
521
|
-
return /* @__PURE__ */ t.jsx(ci, { children: /* @__PURE__ */ t.jsx(vt, { size: "Small", start: !0 }) });
|
|
522
|
-
if (l && x || $) {
|
|
523
|
-
let P = null;
|
|
524
|
-
return m === !0 && l && x && (P = /* @__PURE__ */ t.jsx(
|
|
525
|
-
bn,
|
|
526
|
-
{
|
|
527
|
-
placement: C === "small" ? "bottom" : "right",
|
|
528
|
-
maxWidth: "364px",
|
|
529
|
-
title: /* @__PURE__ */ t.jsx(si, { children: S ?? "" }),
|
|
530
|
-
children: /* @__PURE__ */ t.jsx(ui, { children: /* @__PURE__ */ t.jsx(mi, {}) })
|
|
531
|
-
}
|
|
532
|
-
)), /* @__PURE__ */ t.jsxs(
|
|
533
|
-
di,
|
|
534
|
-
{
|
|
535
|
-
size: C,
|
|
536
|
-
isError: $,
|
|
537
|
-
hasToolTip: m,
|
|
538
|
-
children: [
|
|
539
|
-
P,
|
|
540
|
-
x
|
|
541
|
-
]
|
|
542
|
-
}
|
|
543
|
-
);
|
|
544
|
-
}
|
|
545
|
-
};
|
|
546
|
-
return /* @__PURE__ */ t.jsxs(
|
|
547
|
-
ii,
|
|
548
|
-
{
|
|
549
|
-
size: C,
|
|
550
|
-
style: d,
|
|
551
|
-
isDisabled: e != null,
|
|
552
|
-
isAmountError: c,
|
|
553
|
-
isCurrencyError: y,
|
|
554
|
-
"data-testid": U(
|
|
555
|
-
"labeled-currency-amount-field",
|
|
556
|
-
a.name
|
|
557
|
-
),
|
|
558
|
-
children: [
|
|
559
|
-
/* @__PURE__ */ t.jsx(
|
|
560
|
-
yr,
|
|
561
|
-
{
|
|
562
|
-
isDisabled: e,
|
|
563
|
-
label: i.label,
|
|
564
|
-
htmlFor: a.name,
|
|
565
|
-
style: {
|
|
566
|
-
marginLeft: De.labelMarginLeft.value(C),
|
|
567
|
-
marginRight: De.labelMarginRight.value(C),
|
|
568
|
-
marginTop: De.labelMarginTop.value(C),
|
|
569
|
-
width: i.width ?? "auto"
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
),
|
|
573
|
-
/* @__PURE__ */ t.jsxs(li, { labelWidth: i.width, children: [
|
|
574
|
-
/* @__PURE__ */ t.jsx(
|
|
575
|
-
ei,
|
|
576
|
-
{
|
|
577
|
-
...a,
|
|
578
|
-
isDisabled: e,
|
|
579
|
-
style: {
|
|
580
|
-
flexGrow: 1,
|
|
581
|
-
height: De.controlHeight.value(C)
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
),
|
|
585
|
-
O ? /* @__PURE__ */ t.jsx(ai, { size: C, hasError: O, children: p }) : null,
|
|
586
|
-
T()
|
|
587
|
-
] })
|
|
588
|
-
]
|
|
589
|
-
}
|
|
590
|
-
);
|
|
591
|
-
}
|
|
592
|
-
const ii = n.div`
|
|
593
|
-
display: flex;
|
|
594
|
-
flex-direction: row;
|
|
595
|
-
align-items: flex-start;
|
|
596
|
-
background-color: ${(e) => e.theme.colors.grey5};
|
|
597
|
-
width: ${(e) => De.width.valuePx(e.size)};
|
|
598
|
-
min-height: ${(e) => De.height.valuePx(e.size)};
|
|
599
|
-
padding-right: ${(e) => De.marginRight.valuePx(e.size)};
|
|
600
|
-
padding-top: ${(e) => De.paddingTopBottom.valuePx(e.size)};
|
|
601
|
-
padding-bottom: ${(e) => De.paddingTopBottom.valuePx(e.size)};
|
|
602
|
-
|
|
603
|
-
:first-of-type {
|
|
604
|
-
border-top-left-radius: inherit;
|
|
605
|
-
border-top-right-radius: inherit;
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
:last-of-type {
|
|
609
|
-
border-bottom-left-radius: inherit;
|
|
610
|
-
border-bottom-right-radius: inherit;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
&:focus-within {
|
|
614
|
-
z-index: 2;
|
|
615
|
-
outline: 1px solid ${(e) => e.theme.colors.primary};
|
|
616
|
-
|
|
617
|
-
.amount-field {
|
|
618
|
-
background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
input:nth-of-type(1) {
|
|
622
|
-
background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
input:nth-of-type(2) {
|
|
626
|
-
background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
input {
|
|
630
|
-
text-align: left;
|
|
631
|
-
background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
input:nth-of-type(1) {
|
|
635
|
-
background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
input:nth-of-type(2) {
|
|
639
|
-
background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
&:hover {
|
|
643
|
-
z-index: 1;
|
|
644
|
-
outline: 1px solid
|
|
645
|
-
${(e) => e.isDisabled === !0 ? e.theme.colors.grey3 : e.theme.colors.primary};
|
|
646
|
-
input,
|
|
647
|
-
.amount-field {
|
|
648
|
-
background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
input:nth-of-type(1) {
|
|
652
|
-
background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
input:nth-of-type(2) {
|
|
656
|
-
background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
`, ai = n.label`
|
|
660
|
-
color: ${(e) => e.hasError === !0 ? I.important : e.additionalInfoTextColor != null ? e.additionalInfoTextColor : e.theme.colors.grey1};
|
|
661
|
-
width: auto;
|
|
662
|
-
${(e) => `${Bn.infoLabel.style(e.size)}`};
|
|
663
|
-
padding-right: ${o.sp3};
|
|
664
|
-
text-align: right;
|
|
665
|
-
`, li = n.div`
|
|
666
|
-
display: flex;
|
|
667
|
-
width: ${(e) => e.labelWidth != null ? `calc(100% - ${e.labelWidth}px)` : "auto"};
|
|
668
|
-
justify-content: flex-end;
|
|
669
|
-
flex-direction: column;
|
|
670
|
-
position: relative;
|
|
671
|
-
`, si = n(yo)`
|
|
672
|
-
padding: 12px;
|
|
673
|
-
color: ${(e) => e.theme.colors.grey1};
|
|
674
|
-
background: ${(e) => e.theme.colors.overlayColor};
|
|
675
|
-
border-radius: ${o.sp1};
|
|
676
|
-
`, ci = n.div`
|
|
677
|
-
padding-right: ${o.sp3};
|
|
678
|
-
padding-top: ${o.sp1};
|
|
679
|
-
display: flex;
|
|
680
|
-
justify-content: flex-end;
|
|
681
|
-
`, di = n.label`
|
|
682
|
-
display: flex;
|
|
683
|
-
justify-content: flex-end;
|
|
684
|
-
color: ${(e) => e.isError ? I.important : e.theme.colors.hero};
|
|
685
|
-
&:hover {
|
|
686
|
-
color: ${(e) => e.isError ? I.importantDark : e.theme.colors.primary};
|
|
687
|
-
}
|
|
688
|
-
${(e) => `${Bn.infoLabel.style(e.size)}`};
|
|
689
|
-
padding-right: ${o.sp3};
|
|
690
|
-
text-align: right;
|
|
691
|
-
margin-top: ${(e) => e.hasToolTip === !0 ? o.sp1 : o.sp0};
|
|
692
|
-
`, ui = n.div`
|
|
693
|
-
display: flex;
|
|
694
|
-
margin-right: ${o.sp2};
|
|
695
|
-
margin-top: 2px;
|
|
696
|
-
align-items: center;
|
|
697
|
-
`, mi = n(fr)`
|
|
698
|
-
width: ${o.sp3};
|
|
699
|
-
height: ${o.sp3};
|
|
700
|
-
color: inherit;
|
|
701
|
-
`, ge = (e, i) => `${e}.${i}`, Mt = {
|
|
702
|
-
largeLabelWidth: new s(120, 120, 160),
|
|
703
|
-
smallLabelWidth: new s(85, 85, 160),
|
|
704
|
-
paddingBottom: new s(r[3], r[2]),
|
|
705
|
-
paddingLeft: new s(r[3], r[4]),
|
|
706
|
-
autoFillIconLeft: new s(-r[2], -r[4])
|
|
707
|
-
}, {
|
|
708
|
-
dateFormat: pi,
|
|
709
|
-
common: An,
|
|
710
|
-
spendManagement: {
|
|
711
|
-
reimbursement: { reimbursementDetail: oe }
|
|
712
|
-
}
|
|
713
|
-
} = we.getLocalizedStrings(), {
|
|
714
|
-
strings: { empty: ae }
|
|
715
|
-
} = An, hi = (e, i) => {
|
|
716
|
-
const a = e.slice(1);
|
|
717
|
-
let d = !1;
|
|
718
|
-
return a.forEach((p) => {
|
|
719
|
-
p.account?.qboId != null && p.account?.qboId === i && (d = !0);
|
|
720
|
-
}), d;
|
|
721
|
-
}, gi = (e) => e.charAt(0).toLowerCase() + e.slice(1), yi = ({
|
|
722
|
-
lineIndex: e,
|
|
723
|
-
outOfPocket: i,
|
|
724
|
-
accountList: a,
|
|
725
|
-
classList: d,
|
|
726
|
-
merchantList: p,
|
|
727
|
-
isAddReimbursementDisabled: v,
|
|
728
|
-
sectionId: m,
|
|
729
|
-
isReimbursementCommentingEnabled: S,
|
|
730
|
-
isDisabled: x,
|
|
731
|
-
autoFields: l = [],
|
|
732
|
-
accountsHierarchyList: C,
|
|
733
|
-
classHierarchyList: b,
|
|
734
|
-
reimbursementId: c,
|
|
735
|
-
tentativeMerchantName: y,
|
|
736
|
-
allCurrencies: $,
|
|
737
|
-
uncategorizedAccounts: O
|
|
738
|
-
}) => {
|
|
739
|
-
const T = ze(), P = St(), H = Wt(), B = $t(), {
|
|
740
|
-
formState: { errors: k },
|
|
741
|
-
getValues: M,
|
|
742
|
-
trigger: te
|
|
743
|
-
} = at(), ne = M(ge(m, "class")), re = d.find(
|
|
744
|
-
(h) => h.classId === ne?.selectedOption
|
|
745
|
-
), Y = ge(m, "class"), K = Pe(k, Y), F = M(ge(m, "account")), J = a.find(
|
|
746
|
-
(h) => h.qboId === F?.selectedOption || h.accountId === F?.selectedOption
|
|
747
|
-
), q = ge(m, "account"), L = Pe(k, q);
|
|
748
|
-
ye(() => {
|
|
749
|
-
ne?.selectedOption != null && (re?.isDeleted === !0 || K) && te(Y);
|
|
750
|
-
}, [
|
|
751
|
-
ne?.selectedOption,
|
|
752
|
-
re?.isDeleted,
|
|
753
|
-
d,
|
|
754
|
-
Y,
|
|
755
|
-
te
|
|
756
|
-
]), ye(() => {
|
|
757
|
-
F?.selectedOption != null && (J?.isDeleted === !0 || L) && te(q);
|
|
758
|
-
}, [
|
|
759
|
-
F?.selectedOption,
|
|
760
|
-
J?.isDeleted,
|
|
761
|
-
a,
|
|
762
|
-
q,
|
|
763
|
-
te
|
|
764
|
-
]);
|
|
765
|
-
const ce = i.isCategoryUpdateSelected != null && i.recommendedAccount != null && //if category was autofilled but subsequetly updated, isCategoryFirstTimeAutofilled will be false
|
|
766
|
-
!i.isCategoryFirstTimeAutofilled && // if R2 or R3 selected, don't show the checkbox
|
|
767
|
-
!hi(
|
|
768
|
-
i.recommendations,
|
|
769
|
-
i.account
|
|
770
|
-
), Q = i.isRetainedCategorySelected != null && i.retainedAccount != null, V = Mt.largeLabelWidth.value(T), de = Mt.smallLabelWidth.value(T), _e = p.map(
|
|
771
|
-
(h) => h.id ?? ae
|
|
772
|
-
), ue = {
|
|
773
|
-
application: "dashboard",
|
|
774
|
-
companyId: P.currentTenant?.companyId,
|
|
775
|
-
tab: "reimbursement",
|
|
776
|
-
entityId: c
|
|
777
|
-
}, fe = `dashboard_${P.currentTenant?.companyId}`, le = (h) => p.find((Ce) => Ce.id === h)?.name ?? h, Be = a.find(
|
|
778
|
-
(h) => h.qboId === i.account
|
|
779
|
-
), Ae = (h) => [
|
|
780
|
-
O.expense?.qboId,
|
|
781
|
-
O.income?.qboId
|
|
782
|
-
].includes(h), Le = d.find((h) => h.classId === i.class), me = {
|
|
783
|
-
valueContainer: (h) => ({
|
|
784
|
-
...h,
|
|
785
|
-
padding: `2px ${o.sp3} !important`,
|
|
786
|
-
overflow: "unset"
|
|
787
|
-
}),
|
|
788
|
-
singleValue: () => ({
|
|
789
|
-
margin: 0
|
|
790
|
-
})
|
|
791
|
-
}, Me = (h) => a.filter((he) => he.qboId === h)[0]?.qboId, pe = (h) => d.filter((he) => he.classId === h)[0]?.accountingClassNumber, ve = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace(
|
|
792
|
-
"__based__",
|
|
793
|
-
gi(i?.recommendedAccount?.reason ?? ae)
|
|
794
|
-
), Je = Et(
|
|
795
|
-
C,
|
|
796
|
-
i.recommendations
|
|
797
|
-
);
|
|
798
|
-
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
799
|
-
y != null || l.includes("merchant") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
|
|
800
|
-
/* @__PURE__ */ t.jsx(
|
|
801
|
-
$e,
|
|
802
|
-
{
|
|
803
|
-
isThreadAllowed: S && c != null,
|
|
804
|
-
dashboardTabKey: Se({
|
|
805
|
-
type: "details",
|
|
806
|
-
key: `${e}.out_of_pocket.merchant`
|
|
807
|
-
}),
|
|
808
|
-
roomId: fe,
|
|
809
|
-
companyId: P.currentTenant?.companyId ?? ae,
|
|
810
|
-
companyName: P.currentTenant?.companyName ?? ae,
|
|
811
|
-
entityId: c,
|
|
812
|
-
dashboardOptionType: "reimbursement",
|
|
813
|
-
filterMetaData: {
|
|
814
|
-
...ue,
|
|
815
|
-
entityType: `reimbursement.details.${Ie(
|
|
816
|
-
"merchant",
|
|
817
|
-
e,
|
|
818
|
-
"out_of_pocket"
|
|
819
|
-
)}`
|
|
820
|
-
},
|
|
821
|
-
fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
|
|
822
|
-
children: /* @__PURE__ */ t.jsx(
|
|
823
|
-
Ur,
|
|
824
|
-
{
|
|
825
|
-
isDisabled: x != null || v ? "disabled" : void 0,
|
|
826
|
-
label: {
|
|
827
|
-
label: oe.merchant,
|
|
828
|
-
width: V
|
|
829
|
-
},
|
|
830
|
-
style: {
|
|
831
|
-
width: "auto"
|
|
832
|
-
},
|
|
833
|
-
creatableSingleSelectField: {
|
|
834
|
-
name: ge(m, "merchant"),
|
|
835
|
-
placeholder: oe.merchantPlaceholder,
|
|
836
|
-
defaultValue: {
|
|
837
|
-
selectedOption: i.merchant ?? ae,
|
|
838
|
-
allOptions: _e
|
|
839
|
-
},
|
|
840
|
-
registerOptions: {
|
|
841
|
-
required: !0,
|
|
842
|
-
validate: (h) => !!h.selectedOption
|
|
843
|
-
}
|
|
844
|
-
},
|
|
845
|
-
isOptionRemovable: !0,
|
|
846
|
-
addIconInCreateLabel: !0,
|
|
847
|
-
getLabelForId: le
|
|
848
|
-
}
|
|
849
|
-
)
|
|
850
|
-
}
|
|
851
|
-
),
|
|
852
|
-
/* @__PURE__ */ t.jsx(Pt, {}),
|
|
853
|
-
l.includes("transactionDate") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
|
|
854
|
-
/* @__PURE__ */ t.jsx(
|
|
855
|
-
$e,
|
|
856
|
-
{
|
|
857
|
-
isThreadAllowed: S && c != null,
|
|
858
|
-
dashboardTabKey: Se({
|
|
859
|
-
type: "details",
|
|
860
|
-
key: `${e}.out_of_pocket.transactionDate`
|
|
861
|
-
}),
|
|
862
|
-
roomId: fe,
|
|
863
|
-
companyId: P.currentTenant?.companyId ?? ae,
|
|
864
|
-
companyName: P.currentTenant?.companyName ?? ae,
|
|
865
|
-
entityId: c,
|
|
866
|
-
dashboardOptionType: "reimbursement",
|
|
867
|
-
filterMetaData: {
|
|
868
|
-
...ue,
|
|
869
|
-
entityType: `reimbursement.details.${Ie(
|
|
870
|
-
"transactionDate",
|
|
871
|
-
e,
|
|
872
|
-
"out_of_pocket"
|
|
873
|
-
)}`
|
|
874
|
-
},
|
|
875
|
-
fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
|
|
876
|
-
children: /* @__PURE__ */ t.jsx(
|
|
877
|
-
yn,
|
|
878
|
-
{
|
|
879
|
-
isDisabled: x,
|
|
880
|
-
label: {
|
|
881
|
-
label: oe.transactionDate,
|
|
882
|
-
width: V
|
|
883
|
-
},
|
|
884
|
-
style: {
|
|
885
|
-
paddingBottom: Mt.paddingBottom.valuePx(T),
|
|
886
|
-
width: "auto"
|
|
887
|
-
},
|
|
888
|
-
dateField: {
|
|
889
|
-
name: ge(m, "transactionDate"),
|
|
890
|
-
placeholder: oe.datePlaceholder,
|
|
891
|
-
defaultValue: i?.transactionDate,
|
|
892
|
-
dateFormat: pi.visual.defaultInput,
|
|
893
|
-
autoComplete: "off",
|
|
894
|
-
maxDate: po(),
|
|
895
|
-
registerOptions: {
|
|
896
|
-
required: !0,
|
|
897
|
-
validate: (h) => !!h
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
)
|
|
902
|
-
}
|
|
903
|
-
),
|
|
904
|
-
/* @__PURE__ */ t.jsx(Pt, {}),
|
|
905
|
-
l.includes("amount") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, isTwoLined: !0, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
|
|
906
|
-
/* @__PURE__ */ t.jsx(
|
|
907
|
-
$e,
|
|
908
|
-
{
|
|
909
|
-
isThreadAllowed: S && c != null,
|
|
910
|
-
dashboardTabKey: Se({
|
|
911
|
-
type: "details",
|
|
912
|
-
key: `${e}.out_of_pocket.amount`
|
|
913
|
-
}),
|
|
914
|
-
roomId: fe,
|
|
915
|
-
companyId: P.currentTenant?.companyId ?? ae,
|
|
916
|
-
companyName: P.currentTenant?.companyName ?? ae,
|
|
917
|
-
entityId: c,
|
|
918
|
-
dashboardOptionType: "reimbursement",
|
|
919
|
-
filterMetaData: {
|
|
920
|
-
...ue,
|
|
921
|
-
entityType: `reimbursement.details.${Ie(
|
|
922
|
-
"amount",
|
|
923
|
-
e,
|
|
924
|
-
"out_of_pocket"
|
|
925
|
-
)}`
|
|
926
|
-
},
|
|
927
|
-
fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
|
|
928
|
-
children: /* @__PURE__ */ t.jsx(
|
|
929
|
-
ri,
|
|
930
|
-
{
|
|
931
|
-
isDisabled: x != null || v ? "disabled" : void 0,
|
|
932
|
-
label: { label: oe.amount, width: de },
|
|
933
|
-
style: { width: "auto" },
|
|
934
|
-
currencyAmountField: {
|
|
935
|
-
style: { height: o.sp6 },
|
|
936
|
-
name: `${m}.amount`,
|
|
937
|
-
defaultValue: {
|
|
938
|
-
amount: i.amount.amount,
|
|
939
|
-
currencyCode: i.amount.currencyCode,
|
|
940
|
-
currencySymbol: i.amount.currencySymbol
|
|
941
|
-
},
|
|
942
|
-
placeHolder: {
|
|
943
|
-
amount: oe.addAmount,
|
|
944
|
-
name: oe.addAmount
|
|
945
|
-
},
|
|
946
|
-
allCurrencies: $,
|
|
947
|
-
showAmountCurrencyError: !0
|
|
948
|
-
},
|
|
949
|
-
showAdditionalInfoLabel: !0,
|
|
950
|
-
showAdditionalLabelTooltip: !0,
|
|
951
|
-
additionalLabelTooltip: oe.amountExchangeRateTooltip,
|
|
952
|
-
isAdditionalInfoLabelLoading: i.isConvertedCurrencyLoading === !0,
|
|
953
|
-
additionalInfoLabel: !dn(i.homeCurrencyDetails, i.amount) && i.amount.currencyCode !== An.currency.currencyCode && i.homeCurrencyDetails?.amount !== 0 ? `${xr(
|
|
954
|
-
"0,0[.]00",
|
|
955
|
-
i.homeCurrencyDetails
|
|
956
|
-
)} ${i.homeCurrencyDetails?.currencyCode}` : void 0
|
|
957
|
-
}
|
|
958
|
-
)
|
|
959
|
-
}
|
|
960
|
-
),
|
|
961
|
-
/* @__PURE__ */ t.jsx(Pt, {}),
|
|
962
|
-
l.includes("memo") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
|
|
963
|
-
/* @__PURE__ */ t.jsx(
|
|
964
|
-
$e,
|
|
965
|
-
{
|
|
966
|
-
isThreadAllowed: S && c != null,
|
|
967
|
-
dashboardTabKey: Se({
|
|
968
|
-
type: "details",
|
|
969
|
-
key: `${e}.out_of_pocket.memo`
|
|
970
|
-
}),
|
|
971
|
-
roomId: fe,
|
|
972
|
-
companyId: P.currentTenant?.companyId ?? ae,
|
|
973
|
-
companyName: P.currentTenant?.companyName ?? ae,
|
|
974
|
-
entityId: c,
|
|
975
|
-
dashboardOptionType: "reimbursement",
|
|
976
|
-
filterMetaData: {
|
|
977
|
-
...ue,
|
|
978
|
-
entityType: `reimbursement.details.${Ie(
|
|
979
|
-
"memo",
|
|
980
|
-
e,
|
|
981
|
-
"out_of_pocket"
|
|
982
|
-
)}`
|
|
983
|
-
},
|
|
984
|
-
fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
|
|
985
|
-
children: /* @__PURE__ */ t.jsx(
|
|
986
|
-
ho,
|
|
987
|
-
{
|
|
988
|
-
isDisabled: x,
|
|
989
|
-
label: {
|
|
990
|
-
label: oe.memo,
|
|
991
|
-
width: V
|
|
992
|
-
},
|
|
993
|
-
style: { width: "auto" },
|
|
994
|
-
text: {
|
|
995
|
-
type: "text",
|
|
996
|
-
name: ge(m, "memo"),
|
|
997
|
-
placeholder: rt(oe.memo),
|
|
998
|
-
defaultValue: i.memo,
|
|
999
|
-
autoComplete: "off",
|
|
1000
|
-
options: {
|
|
1001
|
-
pattern: fn
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
)
|
|
1006
|
-
}
|
|
1007
|
-
),
|
|
1008
|
-
/* @__PURE__ */ t.jsx(Pt, {}),
|
|
1009
|
-
l.includes("account") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
|
|
1010
|
-
/* @__PURE__ */ t.jsx(
|
|
1011
|
-
$e,
|
|
1012
|
-
{
|
|
1013
|
-
isThreadAllowed: S && c != null,
|
|
1014
|
-
dashboardTabKey: Se({
|
|
1015
|
-
type: "details",
|
|
1016
|
-
key: `${e}.out_of_pocket.account`
|
|
1017
|
-
}),
|
|
1018
|
-
roomId: fe,
|
|
1019
|
-
companyId: P.currentTenant?.companyId ?? ae,
|
|
1020
|
-
companyName: P.currentTenant?.companyName ?? ae,
|
|
1021
|
-
entityId: c,
|
|
1022
|
-
dashboardOptionType: "reimbursement",
|
|
1023
|
-
filterMetaData: {
|
|
1024
|
-
...ue,
|
|
1025
|
-
entityType: `reimbursement.details.${Ie(
|
|
1026
|
-
"account",
|
|
1027
|
-
e,
|
|
1028
|
-
"out_of_pocket"
|
|
1029
|
-
)}`
|
|
1030
|
-
},
|
|
1031
|
-
fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
|
|
1032
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1033
|
-
uo,
|
|
1034
|
-
{
|
|
1035
|
-
label: {
|
|
1036
|
-
label: oe.category,
|
|
1037
|
-
width: V
|
|
1038
|
-
},
|
|
1039
|
-
additionalLabelInfo: J?.isDeleted === !0 && Pe(k, ge(m, "account")) ? oe.deletedCategoryError : void 0,
|
|
1040
|
-
groupedSingleSelectField: {
|
|
1041
|
-
shouldShowChevronIcon: ce || Q,
|
|
1042
|
-
name: ge(m, "account"),
|
|
1043
|
-
placeholder: oe.categoryPlaceholder,
|
|
1044
|
-
valueToId: (h) => Me(h),
|
|
1045
|
-
defaultValue: {
|
|
1046
|
-
selectedOption: Be?.qboId ?? Be?.accountId,
|
|
1047
|
-
allOptions: Je
|
|
1048
|
-
},
|
|
1049
|
-
style: {
|
|
1050
|
-
width: "100%"
|
|
1051
|
-
},
|
|
1052
|
-
customStyleConfig: me,
|
|
1053
|
-
registerOptions: {
|
|
1054
|
-
required: !0,
|
|
1055
|
-
validate: (h) => h?.selectedOption == null ? !1 : a.find(
|
|
1056
|
-
(he) => he.qboId === h?.selectedOption || he.accountId === h?.selectedOption
|
|
1057
|
-
)?.isDeleted === !0 ? oe.deletedCategoryError : !0
|
|
1058
|
-
}
|
|
1059
|
-
},
|
|
1060
|
-
disableCurrentOption: Ae,
|
|
1061
|
-
style: {
|
|
1062
|
-
borderBottom: `1px solid ${B.colors.grey3}`,
|
|
1063
|
-
minHeight: o.sp6,
|
|
1064
|
-
boxSizing: "initial"
|
|
1065
|
-
},
|
|
1066
|
-
fullWidthSelect: !0,
|
|
1067
|
-
isLoading: i.isRecommendationLoading,
|
|
1068
|
-
recommendationCheckboxField: ce ? {
|
|
1069
|
-
tooltipProps: { text: ve },
|
|
1070
|
-
label: {
|
|
1071
|
-
label: i.recommendedAccount?.accountName ?? ae
|
|
1072
|
-
},
|
|
1073
|
-
checkBoxField: {
|
|
1074
|
-
name: ge(m, "isCategoryUpdateSelected"),
|
|
1075
|
-
defaultChecked: !!i.isCategoryUpdateSelected
|
|
1076
|
-
}
|
|
1077
|
-
} : void 0,
|
|
1078
|
-
retainCheckboxField: Q ? {
|
|
1079
|
-
label: {
|
|
1080
|
-
label: i.retainedAccount?.accountName ?? ae
|
|
1081
|
-
},
|
|
1082
|
-
checkBoxField: {
|
|
1083
|
-
name: ge(m, "isRetainedCategorySelected"),
|
|
1084
|
-
defaultChecked: !!i.isRetainedCategorySelected
|
|
1085
|
-
}
|
|
1086
|
-
} : void 0
|
|
1087
|
-
},
|
|
1088
|
-
ge(m, "account")
|
|
1089
|
-
)
|
|
1090
|
-
}
|
|
1091
|
-
),
|
|
1092
|
-
l.includes("class") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
|
|
1093
|
-
/* @__PURE__ */ t.jsx(
|
|
1094
|
-
$e,
|
|
1095
|
-
{
|
|
1096
|
-
isThreadAllowed: S && c != null,
|
|
1097
|
-
dashboardTabKey: Se({
|
|
1098
|
-
type: "details",
|
|
1099
|
-
key: `${e}.out_of_pocket.class`
|
|
1100
|
-
}),
|
|
1101
|
-
roomId: fe,
|
|
1102
|
-
companyId: P.currentTenant?.companyId ?? ae,
|
|
1103
|
-
companyName: P.currentTenant?.companyName ?? ae,
|
|
1104
|
-
entityId: c,
|
|
1105
|
-
dashboardOptionType: "reimbursement",
|
|
1106
|
-
filterMetaData: {
|
|
1107
|
-
...ue,
|
|
1108
|
-
entityType: `reimbursement.details.${Ie(
|
|
1109
|
-
"class",
|
|
1110
|
-
e,
|
|
1111
|
-
"out_of_pocket"
|
|
1112
|
-
)}`
|
|
1113
|
-
},
|
|
1114
|
-
fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
|
|
1115
|
-
style: {
|
|
1116
|
-
borderRadius: `0 0 ${o.sp2} ${o.sp2}`
|
|
1117
|
-
},
|
|
1118
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1119
|
-
uo,
|
|
1120
|
-
{
|
|
1121
|
-
isLoading: !1,
|
|
1122
|
-
label: {
|
|
1123
|
-
label: oe.department,
|
|
1124
|
-
width: V
|
|
1125
|
-
},
|
|
1126
|
-
additionalLabelInfo: re?.isDeleted === !0 && Pe(k, ge(m, "class")) ? oe.deletedClassError : void 0,
|
|
1127
|
-
groupedSingleSelectField: {
|
|
1128
|
-
shouldShowChevronIcon: !1,
|
|
1129
|
-
name: ge(m, "class"),
|
|
1130
|
-
placeholder: rt(oe.department),
|
|
1131
|
-
valueToId: (h) => pe(h),
|
|
1132
|
-
defaultValue: {
|
|
1133
|
-
selectedOption: Le?.classId,
|
|
1134
|
-
allOptions: Ye(b, [])
|
|
1135
|
-
},
|
|
1136
|
-
style: {
|
|
1137
|
-
width: "100%"
|
|
1138
|
-
},
|
|
1139
|
-
customStyleConfig: me,
|
|
1140
|
-
registerOptions: {
|
|
1141
|
-
required: !0,
|
|
1142
|
-
validate: (h) => h?.selectedOption == null ? !1 : d.find(
|
|
1143
|
-
(he) => he.classId === h?.selectedOption
|
|
1144
|
-
)?.isDeleted === !0 ? oe.deletedClassError : !0
|
|
1145
|
-
}
|
|
1146
|
-
},
|
|
1147
|
-
style: {
|
|
1148
|
-
borderBottom: `1px solid ${B.colors.grey3}`,
|
|
1149
|
-
borderBottomLeftRadius: o.sp2,
|
|
1150
|
-
borderBottomRightRadius: o.sp2
|
|
1151
|
-
},
|
|
1152
|
-
fullWidthSelect: !0
|
|
1153
|
-
},
|
|
1154
|
-
ge(m, "class")
|
|
1155
|
-
)
|
|
1156
|
-
}
|
|
1157
|
-
)
|
|
1158
|
-
] });
|
|
1159
|
-
}, ct = n.span`
|
|
1160
|
-
position: relative;
|
|
1161
|
-
`, dt = n(fo)`
|
|
1162
|
-
color: ${(e) => e.theme.colors.primary};
|
|
1163
|
-
width: ${o.sp3};
|
|
1164
|
-
height: ${o.sp3};
|
|
1165
|
-
`, ut = n.div`
|
|
1166
|
-
z-index: 2;
|
|
1167
|
-
left: ${(e) => Mt.autoFillIconLeft.valuePx(e.windowSize)};
|
|
1168
|
-
position: absolute;
|
|
1169
|
-
top: ${(e) => e.isTwoLined === !0 ? o.sp5 : "22px"};
|
|
1170
|
-
`, Pt = n.div`
|
|
1171
|
-
display: flex;
|
|
1172
|
-
flex: 1;
|
|
1173
|
-
background-color: ${(e) => e.theme.colors.grey3};
|
|
1174
|
-
min-height: 1px;
|
|
1175
|
-
max-height: 1px;
|
|
1176
|
-
`, ot = (e, i) => `${e}.${i}`, qe = {
|
|
1177
|
-
paddingTop: new s(r[5], r[4]),
|
|
1178
|
-
marginBottom: new s(r[3], r[3]),
|
|
1179
|
-
labelPaddingLeft: new s(r[3], r[4]),
|
|
1180
|
-
buttonWidth: new s(70, 70),
|
|
1181
|
-
containerRightMargin: new s(r[3], r[8]),
|
|
1182
|
-
containerLeftMargin: new s(r[3], r[6]),
|
|
1183
|
-
deleteConfirmationTextMarginBottom: new s(r[2], r[0])
|
|
1184
|
-
}, G = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, fi = ({
|
|
1185
|
-
lineData: e,
|
|
1186
|
-
currencyConversionState: i,
|
|
1187
|
-
recommendationFetchState: a,
|
|
1188
|
-
remiStage: d,
|
|
1189
|
-
lineIndex: p,
|
|
1190
|
-
accountList: v,
|
|
1191
|
-
classList: m,
|
|
1192
|
-
merchantList: S,
|
|
1193
|
-
hasFile: x,
|
|
1194
|
-
defaultCurrency: l,
|
|
1195
|
-
hasMultipleLineItems: C,
|
|
1196
|
-
fileRequiredLineIds: b,
|
|
1197
|
-
duplicateLineDetails: c,
|
|
1198
|
-
remiStatus: y,
|
|
1199
|
-
sectionId: $,
|
|
1200
|
-
isDisabled: O,
|
|
1201
|
-
isReimbursementCommentingEnabled: T,
|
|
1202
|
-
isAddReimbursementDisabled: P,
|
|
1203
|
-
style: H,
|
|
1204
|
-
autoFields: B = [],
|
|
1205
|
-
analytics: k,
|
|
1206
|
-
reimbursementId: M,
|
|
1207
|
-
tentativeMerchantName: te,
|
|
1208
|
-
companyMileageConfigInfo: ne,
|
|
1209
|
-
uncategorizedAccounts: re,
|
|
1210
|
-
removeDuplicateReimbursementForLine: Y,
|
|
1211
|
-
scrollToSection: K,
|
|
1212
|
-
onDuplicateLineClick: F,
|
|
1213
|
-
onRemoveReimbursement: J,
|
|
1214
|
-
clearTentativeNameForLine: q,
|
|
1215
|
-
allCurrencies: L,
|
|
1216
|
-
accountsHierarchyList: ce,
|
|
1217
|
-
classHierarchyList: Q
|
|
1218
|
-
}) => {
|
|
1219
|
-
const V = ze(), de = St(), _e = Wt(), ue = we.getLocalizedStrings().common.strings.empty, fe = {
|
|
1220
|
-
application: "dashboard",
|
|
1221
|
-
companyId: de.currentTenant?.companyId,
|
|
1222
|
-
tab: "reimbursement",
|
|
1223
|
-
entityId: M
|
|
1224
|
-
}, le = `dashboard_${de.currentTenant?.companyId}`, { getValues: Be } = at(), [Ae, Le] = X(!1), me = Be(
|
|
1225
|
-
ot($, "reimbursementType")
|
|
1226
|
-
);
|
|
1227
|
-
return /* @__PURE__ */ t.jsxs(Ci, { style: H, windowSize: V, children: [
|
|
1228
|
-
/* @__PURE__ */ t.jsxs(
|
|
1229
|
-
bi,
|
|
1230
|
-
{
|
|
1231
|
-
hasFile: x,
|
|
1232
|
-
windowSize: V,
|
|
1233
|
-
showDeleteConfirmation: Ae,
|
|
1234
|
-
children: [
|
|
1235
|
-
/* @__PURE__ */ t.jsx(ki, { windowSize: V, children: C ? `#${p + 1} ${G.reimbursement}` : G.reimbursement }),
|
|
1236
|
-
Ae ? /* @__PURE__ */ t.jsxs(vi, { windowSize: V, children: [
|
|
1237
|
-
/* @__PURE__ */ t.jsx(Si, { windowSize: V, children: G.deleteConfirmation }),
|
|
1238
|
-
/* @__PURE__ */ t.jsxs(xi, { children: [
|
|
1239
|
-
/* @__PURE__ */ t.jsx(
|
|
1240
|
-
Ro,
|
|
1241
|
-
{
|
|
1242
|
-
label: G.buttons.cancel,
|
|
1243
|
-
onClick: () => Le(!1),
|
|
1244
|
-
style: {
|
|
1245
|
-
width: qe.buttonWidth.value(V),
|
|
1246
|
-
marginLeft: V === "small" ? o.sp0 : o.sp4,
|
|
1247
|
-
marginRight: o.sp3
|
|
1248
|
-
},
|
|
1249
|
-
size: "small",
|
|
1250
|
-
variant: "secondary",
|
|
1251
|
-
"data-testid": U(
|
|
1252
|
-
"delete-remi-button",
|
|
1253
|
-
G.buttons.cancel
|
|
1254
|
-
)
|
|
1255
|
-
}
|
|
1256
|
-
),
|
|
1257
|
-
/* @__PURE__ */ t.jsx(
|
|
1258
|
-
Ro,
|
|
1259
|
-
{
|
|
1260
|
-
label: G.buttons.remove,
|
|
1261
|
-
onClick: () => {
|
|
1262
|
-
k?.trackReimbursementDeleteReimbursementLine(
|
|
1263
|
-
e.lineId,
|
|
1264
|
-
M
|
|
1265
|
-
), q?.(e.lineId ?? "1"), Le(!1), Y(e.lineId), J(p);
|
|
1266
|
-
},
|
|
1267
|
-
style: { width: qe.buttonWidth.value(V) },
|
|
1268
|
-
size: "small",
|
|
1269
|
-
variant: "danger",
|
|
1270
|
-
"data-testid": U(
|
|
1271
|
-
"delete-remi-button",
|
|
1272
|
-
G.buttons.remove
|
|
1273
|
-
)
|
|
1274
|
-
}
|
|
1275
|
-
)
|
|
1276
|
-
] })
|
|
1277
|
-
] }) : C && (d === "draft" || y === "rejected") ? /* @__PURE__ */ t.jsx(
|
|
1278
|
-
wi,
|
|
1279
|
-
{
|
|
1280
|
-
className: "deleteIconWrapper",
|
|
1281
|
-
windowSize: V,
|
|
1282
|
-
onClick: () => Le(!0),
|
|
1283
|
-
"data-testid": U(
|
|
1284
|
-
"delete-remi-button",
|
|
1285
|
-
e.lineId
|
|
1286
|
-
),
|
|
1287
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1288
|
-
bn,
|
|
1289
|
-
{
|
|
1290
|
-
enterDelay: 600,
|
|
1291
|
-
title: G.deleteReimbursement,
|
|
1292
|
-
placement: "top-end",
|
|
1293
|
-
children: /* @__PURE__ */ t.jsx($i, {})
|
|
1294
|
-
}
|
|
1295
|
-
)
|
|
1296
|
-
}
|
|
1297
|
-
) : null
|
|
1298
|
-
]
|
|
1299
|
-
}
|
|
1300
|
-
),
|
|
1301
|
-
b.includes(e.lineId) ? /* @__PURE__ */ t.jsx(
|
|
1302
|
-
wn,
|
|
1303
|
-
{
|
|
1304
|
-
title: G.missingReceipt,
|
|
1305
|
-
description: G.missingReceiptDescription,
|
|
1306
|
-
style: { marginBottom: o.sp3 }
|
|
1307
|
-
}
|
|
1308
|
-
) : null,
|
|
1309
|
-
/* @__PURE__ */ t.jsxs(ji, { windowSize: V, children: [
|
|
1310
|
-
c?.duplicateLineId != null ? /* @__PURE__ */ t.jsxs(Ti, { children: [
|
|
1311
|
-
G.thisExpense,
|
|
1312
|
-
" ",
|
|
1313
|
-
c.isDuplicateWithinTransaction ? /* @__PURE__ */ t.jsx(
|
|
1314
|
-
Do,
|
|
1315
|
-
{
|
|
1316
|
-
"data-testid": U(
|
|
1317
|
-
"view-duplicate-transaction-expense"
|
|
1318
|
-
),
|
|
1319
|
-
onClick: () => (k?.trackReimbursementViewDuplicateExpense(
|
|
1320
|
-
!0,
|
|
1321
|
-
M
|
|
1322
|
-
), K(
|
|
1323
|
-
c.duplicateLineId
|
|
1324
|
-
)),
|
|
1325
|
-
children: G.viewOriginalExpense
|
|
1326
|
-
}
|
|
1327
|
-
) : /* @__PURE__ */ t.jsx(
|
|
1328
|
-
Do,
|
|
1329
|
-
{
|
|
1330
|
-
"data-testid": U("view-duplicate-expense"),
|
|
1331
|
-
onClick: () => {
|
|
1332
|
-
c.duplicateTransactionId != null && c.duplicateLineId != null && (k?.trackReimbursementViewDuplicateExpense(
|
|
1333
|
-
!1,
|
|
1334
|
-
M
|
|
1335
|
-
), F(
|
|
1336
|
-
c.duplicateTransactionId,
|
|
1337
|
-
c.duplicateLineId
|
|
1338
|
-
));
|
|
1339
|
-
},
|
|
1340
|
-
children: G.viewOriginalExpense
|
|
1341
|
-
}
|
|
1342
|
-
)
|
|
1343
|
-
] }) : null,
|
|
1344
|
-
/* @__PURE__ */ t.jsx(
|
|
1345
|
-
$e,
|
|
1346
|
-
{
|
|
1347
|
-
isThreadAllowed: T && M != null,
|
|
1348
|
-
dashboardTabKey: Se({
|
|
1349
|
-
type: "details",
|
|
1350
|
-
key: me === G.mileageKey ? `${p}.mileage.reimbursementType` : `${p}.out_of_pocket.reimbursementType`
|
|
1351
|
-
}),
|
|
1352
|
-
roomId: le,
|
|
1353
|
-
companyId: de.currentTenant?.companyId ?? ue,
|
|
1354
|
-
companyName: de.currentTenant?.companyName ?? ue,
|
|
1355
|
-
entityId: M,
|
|
1356
|
-
dashboardOptionType: "reimbursement",
|
|
1357
|
-
filterMetaData: {
|
|
1358
|
-
...fe,
|
|
1359
|
-
entityType: `reimbursement.details.${Ie(
|
|
1360
|
-
"reimbursementType",
|
|
1361
|
-
p,
|
|
1362
|
-
me === G.mileageKey ? "mileage" : "out_of_pocket"
|
|
1363
|
-
)}`
|
|
1364
|
-
},
|
|
1365
|
-
fieldThreadTargetElement: _e?.sharedRef?.contentWrapperRef,
|
|
1366
|
-
style: {
|
|
1367
|
-
borderRadius: c?.duplicateLineId != null ? "0 0 0 0" : `${o.sp2} ${o.sp2} 0 0`
|
|
1368
|
-
},
|
|
1369
|
-
children: /* @__PURE__ */ t.jsxs(
|
|
1370
|
-
Oi,
|
|
1371
|
-
{
|
|
1372
|
-
isDisabled: O != null,
|
|
1373
|
-
haveBorderRadius: c?.duplicateLineId == null,
|
|
1374
|
-
children: [
|
|
1375
|
-
/* @__PURE__ */ t.jsx(
|
|
1376
|
-
zo,
|
|
1377
|
-
{
|
|
1378
|
-
isDisabled: O != null || P ? "disabled" : void 0,
|
|
1379
|
-
isContainerClickable: !0,
|
|
1380
|
-
label: {
|
|
1381
|
-
label: G.outOfPocket
|
|
1382
|
-
},
|
|
1383
|
-
style: {
|
|
1384
|
-
padding: `${o.sp3} ${o.sp0}`,
|
|
1385
|
-
paddingLeft: qe.labelPaddingLeft.value(V),
|
|
1386
|
-
borderTopLeftRadius: "inherit"
|
|
1387
|
-
},
|
|
1388
|
-
showOutline: !(T && M != null),
|
|
1389
|
-
radioField: {
|
|
1390
|
-
name: ot($, "reimbursementType"),
|
|
1391
|
-
id: `${ot($, "reimbursementType")}.${G.outOfPocketKey}`,
|
|
1392
|
-
value: G.outOfPocketKey
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
),
|
|
1396
|
-
/* @__PURE__ */ t.jsx(Ii, {}),
|
|
1397
|
-
/* @__PURE__ */ t.jsx(
|
|
1398
|
-
zo,
|
|
1399
|
-
{
|
|
1400
|
-
isDisabled: O != null || P ? "disabled" : void 0,
|
|
1401
|
-
isContainerClickable: !0,
|
|
1402
|
-
label: {
|
|
1403
|
-
label: G.mileage
|
|
1404
|
-
},
|
|
1405
|
-
style: {
|
|
1406
|
-
padding: `${o.sp3} ${o.sp0}`,
|
|
1407
|
-
paddingLeft: qe.labelPaddingLeft.value(V),
|
|
1408
|
-
borderTopRightRadius: "inherit"
|
|
1409
|
-
},
|
|
1410
|
-
showOutline: !(T && M != null),
|
|
1411
|
-
radioField: {
|
|
1412
|
-
name: ot($, "reimbursementType"),
|
|
1413
|
-
id: `${ot($, "reimbursementType")}.${G.mileageKey}`,
|
|
1414
|
-
value: G.mileageKey
|
|
1415
|
-
}
|
|
1416
|
-
}
|
|
1417
|
-
)
|
|
1418
|
-
]
|
|
1419
|
-
}
|
|
1420
|
-
)
|
|
1421
|
-
}
|
|
1422
|
-
),
|
|
1423
|
-
/* @__PURE__ */ t.jsx(Pi, {}),
|
|
1424
|
-
me === G.outOfPocketKey ? /* @__PURE__ */ t.jsx(
|
|
1425
|
-
yi,
|
|
1426
|
-
{
|
|
1427
|
-
lineIndex: p,
|
|
1428
|
-
reimbursementId: M,
|
|
1429
|
-
uncategorizedAccounts: re,
|
|
1430
|
-
isReimbursementCommentingEnabled: T,
|
|
1431
|
-
isDisabled: O,
|
|
1432
|
-
outOfPocket: {
|
|
1433
|
-
transactionDate: e.outOfPocket.transactionDate != null ? it(
|
|
1434
|
-
e.outOfPocket.transactionDate.toDateString()
|
|
1435
|
-
) : void 0,
|
|
1436
|
-
account: e.outOfPocket.account.selectedOption,
|
|
1437
|
-
isConvertedCurrencyLoading: i?.fetchState === "In-Progress",
|
|
1438
|
-
isRecommendationLoading: a === "In-Progress",
|
|
1439
|
-
homeCurrencyDetails: e.homeCurrencyConversions,
|
|
1440
|
-
class: e.outOfPocket.class.selectedOption,
|
|
1441
|
-
amount: {
|
|
1442
|
-
amount: e.outOfPocket.amount?.amount ?? 0,
|
|
1443
|
-
currencyCode: e.outOfPocket.amount?.currencyCode ?? "USD",
|
|
1444
|
-
currencySymbol: e.outOfPocket.amount?.currencySymbol ?? "$"
|
|
1445
|
-
},
|
|
1446
|
-
memo: e.outOfPocket.memo,
|
|
1447
|
-
merchant: e.outOfPocket.merchant.selectedOption,
|
|
1448
|
-
recommendations: e.outOfPocket.recommendations,
|
|
1449
|
-
recommendedAccount: e.outOfPocket.recommendedAccount,
|
|
1450
|
-
//account to show in update to checkbox
|
|
1451
|
-
isCategoryUpdateSelected: e.outOfPocket.isCategoryUpdateSelected,
|
|
1452
|
-
//update to checkbox is ticked
|
|
1453
|
-
isCategoryFirstTimeAutofilled: e.outOfPocket.isCategoryFirstTimeAutofilled,
|
|
1454
|
-
retainedAccount: e.outOfPocket.retainedAccount,
|
|
1455
|
-
//account to show in retain checkbox
|
|
1456
|
-
isRetainedCategorySelected: e.outOfPocket.isRetainedCategorySelected
|
|
1457
|
-
//retain checkbox is selected
|
|
1458
|
-
},
|
|
1459
|
-
sectionId: ot($, "outOfPocket"),
|
|
1460
|
-
accountList: v,
|
|
1461
|
-
classList: m,
|
|
1462
|
-
autoFields: B,
|
|
1463
|
-
merchantList: S,
|
|
1464
|
-
tentativeMerchantName: te,
|
|
1465
|
-
allCurrencies: L,
|
|
1466
|
-
isAddReimbursementDisabled: P,
|
|
1467
|
-
accountsHierarchyList: ce,
|
|
1468
|
-
classHierarchyList: Q
|
|
1469
|
-
}
|
|
1470
|
-
) : /* @__PURE__ */ t.jsx(
|
|
1471
|
-
Zr,
|
|
1472
|
-
{
|
|
1473
|
-
lineIndex: p,
|
|
1474
|
-
reimbursementId: M,
|
|
1475
|
-
isReimbursementCommentingEnabled: T,
|
|
1476
|
-
isDisabled: O,
|
|
1477
|
-
mileage: {
|
|
1478
|
-
transactionDate: e.mileage.transactionDate != null ? it(e.mileage.transactionDate.toDateString()) : void 0,
|
|
1479
|
-
class: e.mileage.class.selectedOption,
|
|
1480
|
-
distanceInMiles: e.mileage.distanceInMiles,
|
|
1481
|
-
amount: {
|
|
1482
|
-
amount: e.mileage.amount?.amount ?? 0,
|
|
1483
|
-
currencyCode: e.mileage.amount?.currencyCode ?? "USD",
|
|
1484
|
-
currencySymbol: e.mileage.amount?.currencySymbol ?? "$"
|
|
1485
|
-
},
|
|
1486
|
-
memo: e.mileage.memo
|
|
1487
|
-
},
|
|
1488
|
-
classList: m,
|
|
1489
|
-
sectionId: ot($, "mileage"),
|
|
1490
|
-
companyMileageConfigInfo: ne,
|
|
1491
|
-
defaultCurrency: l,
|
|
1492
|
-
isAddReimbursementDisabled: P,
|
|
1493
|
-
classHierarchyList: Q
|
|
1494
|
-
}
|
|
1495
|
-
)
|
|
1496
|
-
] })
|
|
1497
|
-
] });
|
|
1498
|
-
}, xi = n.div``, bi = n.div`
|
|
1499
|
-
//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
|
|
1500
|
-
//https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
|
|
1501
|
-
display: ${(e) => e.hasFile && e.windowSize === "small" ? "none" : "flex"};
|
|
1502
|
-
justify-content: ${(e) => e.windowSize === "small" ? e.showDeleteConfirmation ? "center" : "flex-end" : "space-between"};
|
|
1503
|
-
margin-bottom: ${o.sp3};
|
|
1504
|
-
align-items: center;
|
|
1505
|
-
`, wi = n.div`
|
|
1506
|
-
width: ${o.sp3};
|
|
1507
|
-
height: ${o.sp3};
|
|
1508
|
-
cursor: pointer;
|
|
1509
|
-
display: none;
|
|
1510
|
-
color: ${(e) => e.windowSize === "small" ? I.important : e.theme.colors.hero};
|
|
1511
|
-
&:hover {
|
|
1512
|
-
color: ${I.important};
|
|
1513
|
-
}
|
|
1514
|
-
`, Do = n.span`
|
|
1515
|
-
border-bottom: 1px solid currentColor;
|
|
1516
|
-
cursor: pointer;
|
|
1517
|
-
`, $i = n(br)`
|
|
1518
|
-
width: ${o.sp3};
|
|
1519
|
-
height: ${o.sp3};
|
|
1520
|
-
cursor: pointer;
|
|
1521
|
-
`, Si = n.div`
|
|
1522
|
-
margin-bottom: ${(e) => qe.deleteConfirmationTextMarginBottom.valuePx(e.windowSize)};
|
|
1523
|
-
`, vi = n(xo)`
|
|
1524
|
-
color: ${(e) => e.theme.colors.hero};
|
|
1525
|
-
display: flex;
|
|
1526
|
-
align-items: center;
|
|
1527
|
-
flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
|
|
1528
|
-
`, Ci = n.div`
|
|
1529
|
-
display: flex;
|
|
1530
|
-
flex-direction: column;
|
|
1531
|
-
padding-top: ${(e) => qe.paddingTop.valuePx(e.windowSize)};
|
|
1532
|
-
margin-right: ${(e) => qe.containerRightMargin.valuePx(e.windowSize)};
|
|
1533
|
-
margin-left: ${(e) => qe.containerLeftMargin.valuePx(e.windowSize)};
|
|
1534
|
-
.deleteIconWrapper {
|
|
1535
|
-
${(e) => e.windowSize === "small" && `
|
|
1536
|
-
display: block;
|
|
1537
|
-
`}
|
|
1538
|
-
}
|
|
1539
|
-
&:hover {
|
|
1540
|
-
.deleteIconWrapper {
|
|
1541
|
-
display: block;
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1544
|
-
`, Ti = n(wr)`
|
|
1545
|
-
padding: ${o.sp2} ${o.sp0} ${o.sp2} ${o.sp4};
|
|
1546
|
-
background-color: ${I.alertLight};
|
|
1547
|
-
color: ${I.brandColorGoldDark};
|
|
1548
|
-
border-top-left-radius: inherit;
|
|
1549
|
-
border-top-right-radius: inherit;
|
|
1550
|
-
`, ki = n(Vt)`
|
|
1551
|
-
color: ${(e) => e.theme.colors.primary};
|
|
1552
|
-
display: ${(e) => e.windowSize === "small" ? "none" : "unset"};
|
|
1553
|
-
`, ji = n.div`
|
|
1554
|
-
display: flex;
|
|
1555
|
-
flex-direction: column;
|
|
1556
|
-
background-color: ${(e) => e.theme.colors.grey5};
|
|
1557
|
-
border: 1px solid ${(e) => e.theme.colors.grey3};
|
|
1558
|
-
box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
1559
|
-
border-radius: ${o.sp2};
|
|
1560
|
-
margin-bottom: ${(e) => qe.marginBottom.valuePx(e.windowSize)};
|
|
1561
|
-
`, Ii = n.div`
|
|
1562
|
-
background-color: ${(e) => e.theme.colors.grey3};
|
|
1563
|
-
min-width: 1px;
|
|
1564
|
-
max-width: 1px;
|
|
1565
|
-
`, Oi = n.div`
|
|
1566
|
-
display: flex;
|
|
1567
|
-
flex-direction: row;
|
|
1568
|
-
border-top-left-radius: ${(e) => e.haveBorderRadius ? "inherit" : "unset"};
|
|
1569
|
-
border-top-right-radius: ${(e) => e.haveBorderRadius ? "inherit" : "unset"};
|
|
1570
|
-
`, Pi = n.div`
|
|
1571
|
-
display: flex;
|
|
1572
|
-
flex: 1;
|
|
1573
|
-
background-color: ${(e) => e.theme.colors.grey3};
|
|
1574
|
-
min-height: 1px;
|
|
1575
|
-
max-height: 1px;
|
|
1576
|
-
`, Bi = (e, i) => `${e}.${i}`, mt = {
|
|
1577
|
-
labelWidth: new s(120, 160, 160),
|
|
1578
|
-
paddingBottom: new s(r[3], r[3]),
|
|
1579
|
-
paddingTop: new s(12, r[3]),
|
|
1580
|
-
marginBottom: new s(12, r[3]),
|
|
1581
|
-
containerRightMargin: new s(r[3], r[8]),
|
|
1582
|
-
containerLeftMargin: new s(r[3], r[6])
|
|
1583
|
-
}, Ln = ({
|
|
1584
|
-
isReimbursementCommentingEnabled: e,
|
|
1585
|
-
sectionId: i,
|
|
1586
|
-
isDisabled: a,
|
|
1587
|
-
reportTitle: d,
|
|
1588
|
-
reimbursementId: p,
|
|
1589
|
-
style: v
|
|
1590
|
-
}) => {
|
|
1591
|
-
const m = ze(), S = St(), x = Wt(), l = `dashboard_${S.currentTenant?.companyId}`, C = we.getLocalizedStrings(), b = C.spendManagement.reimbursement.reimbursementDetail, c = C.common.strings.empty, y = mt.labelWidth.value(m);
|
|
1592
|
-
return /* @__PURE__ */ t.jsxs(Ai, { style: v, windowSize: m, children: [
|
|
1593
|
-
/* @__PURE__ */ t.jsx(Mi, { windowSize: m, children: b.whatFor }),
|
|
1594
|
-
/* @__PURE__ */ t.jsx(Li, { children: /* @__PURE__ */ t.jsx(
|
|
1595
|
-
$e,
|
|
1596
|
-
{
|
|
1597
|
-
isThreadAllowed: e && p != null,
|
|
1598
|
-
dashboardTabKey: Se({
|
|
1599
|
-
type: "details",
|
|
1600
|
-
key: "whatFor"
|
|
1601
|
-
}),
|
|
1602
|
-
roomId: l,
|
|
1603
|
-
companyId: S.currentTenant?.companyId ?? c,
|
|
1604
|
-
companyName: S.currentTenant?.companyName ?? c,
|
|
1605
|
-
entityId: p,
|
|
1606
|
-
dashboardOptionType: "reimbursement",
|
|
1607
|
-
filterMetaData: {
|
|
1608
|
-
application: "dashboard",
|
|
1609
|
-
companyId: S.currentTenant?.companyId,
|
|
1610
|
-
tab: "reimbursement",
|
|
1611
|
-
entityId: p,
|
|
1612
|
-
entityType: "reimbursement.details.whatFor"
|
|
1613
|
-
},
|
|
1614
|
-
fieldThreadTargetElement: x?.sharedRef?.contentWrapperRef,
|
|
1615
|
-
style: {
|
|
1616
|
-
borderRadius: o.sp2
|
|
1617
|
-
},
|
|
1618
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1619
|
-
ho,
|
|
1620
|
-
{
|
|
1621
|
-
isDisabled: a,
|
|
1622
|
-
label: {
|
|
1623
|
-
label: b.reportTitle,
|
|
1624
|
-
width: y
|
|
1625
|
-
},
|
|
1626
|
-
text: {
|
|
1627
|
-
type: "text",
|
|
1628
|
-
name: Bi(i, "reportTitle"),
|
|
1629
|
-
placeholder: b.lunchWithClient,
|
|
1630
|
-
defaultValue: d,
|
|
1631
|
-
autoComplete: "off",
|
|
1632
|
-
options: {
|
|
1633
|
-
required: !0,
|
|
1634
|
-
validate: ($) => !!$
|
|
1635
|
-
}
|
|
1636
|
-
},
|
|
1637
|
-
style: { width: "auto", borderRadius: o.sp2 }
|
|
1638
|
-
}
|
|
1639
|
-
)
|
|
1640
|
-
}
|
|
1641
|
-
) })
|
|
1642
|
-
] });
|
|
1643
|
-
}, Ai = n.div`
|
|
1644
|
-
display: flex;
|
|
1645
|
-
flex-direction: column;
|
|
1646
|
-
padding-top: ${(e) => mt.paddingTop.valuePx(e.windowSize)};
|
|
1647
|
-
padding-bottom: ${(e) => mt.paddingBottom.valuePx(e.windowSize)};
|
|
1648
|
-
margin-right: ${(e) => mt.containerRightMargin.valuePx(e.windowSize)};
|
|
1649
|
-
margin-left: ${(e) => mt.containerLeftMargin.valuePx(e.windowSize)};
|
|
1650
|
-
`, Li = n.div`
|
|
1651
|
-
display: flex;
|
|
1652
|
-
flex-direction: column;
|
|
1653
|
-
background-color: ${(e) => e.theme.colors.grey5};
|
|
1654
|
-
border: 1px solid ${(e) => e.theme.colors.grey3};
|
|
1655
|
-
box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
1656
|
-
border-radius: ${o.sp2};
|
|
1657
|
-
`, Mi = n(Vt)`
|
|
1658
|
-
color: ${(e) => e.theme.colors.primary};
|
|
1659
|
-
margin-bottom: ${(e) => mt.marginBottom.valuePx(e.windowSize)};
|
|
1660
|
-
`, N = {
|
|
1661
|
-
largeLabelWidth: new s(120, 120, 220),
|
|
1662
|
-
marginTop: new s(28, 8),
|
|
1663
|
-
paymentToMarginTop: new s(0, r[4]),
|
|
1664
|
-
marginBottom: new s(r[5], r[4]),
|
|
1665
|
-
paymentToMarginBottom: new s(12, r[3]),
|
|
1666
|
-
totalMarginBottom: new s(r[3], r[3]),
|
|
1667
|
-
reimbursementSectionLeftMargin: new s(r[3], r[6]),
|
|
1668
|
-
reimbursementSectionRightMargin: new s(r[3], r[8]),
|
|
1669
|
-
invoiceSectionLeftMargin: new s(r[3], r[8]),
|
|
1670
|
-
invoiceSectionRightMargin: new s(r[3], r[6]),
|
|
1671
|
-
rightSectionWidth: new s(100, 58),
|
|
1672
|
-
firstOrLastItemHeight: new s(390, 760),
|
|
1673
|
-
itemHeight: new s(390, 459),
|
|
1674
|
-
duplicateBannerWrapperMarginTop: new s(r[5], r[3]),
|
|
1675
|
-
duplicateBannerWrapperMarginRight: new s(r[3], r[8]),
|
|
1676
|
-
duplicateBannerWrapperMarginBottom: new s(r[5], r[3]),
|
|
1677
|
-
duplicateBannerWrapperMarginLeft: new s(r[3], r[6])
|
|
1678
|
-
}, Ri = {
|
|
1679
|
-
total: new go("largeMedium", "h6Medium")
|
|
1680
|
-
}, {
|
|
1681
|
-
spendManagement: {
|
|
1682
|
-
reimbursement: { reimbursementDetail: D },
|
|
1683
|
-
billPay: {
|
|
1684
|
-
vendorCreation: { achDetails: Bt }
|
|
1685
|
-
}
|
|
1686
|
-
},
|
|
1687
|
-
common: {
|
|
1688
|
-
currency: { currencyCode: At }
|
|
1689
|
-
}
|
|
1690
|
-
} = we.getLocalizedStrings(), Mn = (e) => {
|
|
1691
|
-
let i = 0, a = At;
|
|
1692
|
-
if ("recommendationFetchState" in e && e.recommendationFetchState != null) {
|
|
1693
|
-
const d = e;
|
|
1694
|
-
i = d.outOfPocket.amount ?? 0, a = d.outOfPocket.currencyCode ?? At;
|
|
1695
|
-
} else {
|
|
1696
|
-
const d = e;
|
|
1697
|
-
i = d.outOfPocket.amount?.amount ?? 0, a = d.outOfPocket.amount?.currencyCode ?? At;
|
|
1698
|
-
}
|
|
1699
|
-
return (e.homeCurrencyConversions?.currencyCode ?? At) !== a && (i = e.homeCurrencyConversions?.amount ?? 0), i;
|
|
1700
|
-
}, zi = ({
|
|
1701
|
-
remiUploadStatus: e,
|
|
1702
|
-
progressSectionObj: i,
|
|
1703
|
-
reimbursementId: a,
|
|
1704
|
-
createDate: d,
|
|
1705
|
-
scheduleDate: p,
|
|
1706
|
-
paymentDate: v,
|
|
1707
|
-
hasDuplicateLine: m,
|
|
1708
|
-
approvedDate: S,
|
|
1709
|
-
isFirstOrLastListItem: x,
|
|
1710
|
-
index: l,
|
|
1711
|
-
reimbursementSectionRef: C,
|
|
1712
|
-
showSkipAutoFill: b,
|
|
1713
|
-
lineData: c,
|
|
1714
|
-
currencyConversionState: y,
|
|
1715
|
-
authParams: $,
|
|
1716
|
-
uploadInvoiceEndPoint: O,
|
|
1717
|
-
accountList: T,
|
|
1718
|
-
classList: P,
|
|
1719
|
-
merchantList: H,
|
|
1720
|
-
remiStage: B,
|
|
1721
|
-
autoFieldsByLineId: k,
|
|
1722
|
-
isReimbursementCommentingEnabled: M,
|
|
1723
|
-
isAutoFieldsExist: te,
|
|
1724
|
-
totalAmount: ne,
|
|
1725
|
-
showTotalAmountLoader: re,
|
|
1726
|
-
totalNumberOfLines: Y,
|
|
1727
|
-
defaultCurrency: K,
|
|
1728
|
-
bankAccounts: F,
|
|
1729
|
-
fileRequiredLineIds: J,
|
|
1730
|
-
isAddReimbursementDisabled: q,
|
|
1731
|
-
duplicateLineByLineId: L,
|
|
1732
|
-
remiStatus: ce,
|
|
1733
|
-
file: Q,
|
|
1734
|
-
uncategorizedAccounts: V,
|
|
1735
|
-
reportTitle: de,
|
|
1736
|
-
recommendationFetchState: _e,
|
|
1737
|
-
tentativeMerchantName: ue,
|
|
1738
|
-
paymentTo: fe,
|
|
1739
|
-
analytics: le,
|
|
1740
|
-
companyMileageConfigInfo: Be,
|
|
1741
|
-
loggedInUserDepartmentId: Ae,
|
|
1742
|
-
isSignedInUserReimbursementCreator: Le,
|
|
1743
|
-
setShowBankAccountPage: me,
|
|
1744
|
-
setRefByLineId: Me,
|
|
1745
|
-
setCurrentLineIdForUpload: pe,
|
|
1746
|
-
onDuplicateLineClick: ve,
|
|
1747
|
-
setUploadedReceiptPayload: Je,
|
|
1748
|
-
removeDuplicateReimbursementForLine: h,
|
|
1749
|
-
onReceiptsUpload: Ce,
|
|
1750
|
-
scrollToSection: he,
|
|
1751
|
-
onRemoveReimbursement: He,
|
|
1752
|
-
onAddReimbursement: Re,
|
|
1753
|
-
clearTentativeNameForLine: Qe,
|
|
1754
|
-
onReplaceClick: Fe,
|
|
1755
|
-
onDeleteBankAccount: Ke,
|
|
1756
|
-
updateInvoiceUploadFetchState: Ge,
|
|
1757
|
-
removeFileFromLine: Xe,
|
|
1758
|
-
allCurrencies: Ze,
|
|
1759
|
-
accountsHierarchyList: ie,
|
|
1760
|
-
classHierarchyList: lt
|
|
1761
|
-
}) => {
|
|
1762
|
-
const {
|
|
1763
|
-
formState: { errors: pt }
|
|
1764
|
-
} = at(), et = bt(null);
|
|
1765
|
-
ye(() => (Me((R) => ({
|
|
1766
|
-
...R,
|
|
1767
|
-
[`L${c.lineId}`]: et.current
|
|
1768
|
-
})), () => {
|
|
1769
|
-
Me((R) => ({
|
|
1770
|
-
...R,
|
|
1771
|
-
[`L${c.lineId}`]: null
|
|
1772
|
-
}));
|
|
1773
|
-
}), [c.lineId, Me]);
|
|
1774
|
-
const _ = ze(), ht = B === "draft" ? D.newReimbursementTitle : D.editReimbursementTitle, W = N.largeLabelWidth.value(_), se = (R) => R.outOfPocket.account.selectedOption == null && (R.outOfPocket.amount == null || R.outOfPocket.amount.amount == 0) && (R.outOfPocket.class.selectedOption == null || R.outOfPocket.class.selectedOption === Ae) && (R.outOfPocket.memo === "" || R.outOfPocket.memo == null) && R.outOfPocket.merchant.selectedOption == null && R.outOfPocket.transactionDate == null, Ct = F.map((R) => R.bankAccountId), Te = c.reimbursementType === D.outOfPocketKey && Mn(c) >= 75 && Q == null;
|
|
1775
|
-
return /* @__PURE__ */ t.jsxs(ta, { ref: C, windowSize: _, children: [
|
|
1776
|
-
/* @__PURE__ */ t.jsx(
|
|
1777
|
-
oa,
|
|
1778
|
-
{
|
|
1779
|
-
ref: (R) => {
|
|
1780
|
-
R != null && (et.current = R);
|
|
1781
|
-
},
|
|
1782
|
-
windowSize: _,
|
|
1783
|
-
bottomSeperator: Y !== 1,
|
|
1784
|
-
showSkipAutoFill: b,
|
|
1785
|
-
isFirstItem: l === 0,
|
|
1786
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1787
|
-
Pn,
|
|
1788
|
-
{
|
|
1789
|
-
customError: Te ? D.requireReceipt : void 0,
|
|
1790
|
-
analytics: le,
|
|
1791
|
-
showAutofill: !1,
|
|
1792
|
-
uploadInvoiceEndPoint: O,
|
|
1793
|
-
authParams: $,
|
|
1794
|
-
entityId: q ? "" : void 0,
|
|
1795
|
-
file: Q,
|
|
1796
|
-
style: {
|
|
1797
|
-
width: "auto",
|
|
1798
|
-
padding: 0,
|
|
1799
|
-
height: x ? N.firstOrLastItemHeight.valuePx(_) : N.itemHeight.valuePx(_),
|
|
1800
|
-
margin: _ === "small" ? o.sp0 : void 0
|
|
1801
|
-
},
|
|
1802
|
-
updateInvoiceUploadFetchState: Ge,
|
|
1803
|
-
onInvoiceUpload: (R) => {
|
|
1804
|
-
c.reimbursementType === D.outOfPocketKey && !se(c) ? (pe(Number(c.lineId)), Je(
|
|
1805
|
-
R
|
|
1806
|
-
), Fe?.()) : Ce(
|
|
1807
|
-
R,
|
|
1808
|
-
Number(c.lineId),
|
|
1809
|
-
!0
|
|
1810
|
-
);
|
|
1811
|
-
},
|
|
1812
|
-
dropFilePlaceholder: {
|
|
1813
|
-
upload: D.dropReceipt.upload,
|
|
1814
|
-
receipt: D.dropReceipt.receipt
|
|
1815
|
-
},
|
|
1816
|
-
showInfoText: !1,
|
|
1817
|
-
showTitlebar: !0,
|
|
1818
|
-
showTitlebarIcon: !q,
|
|
1819
|
-
pdfTitle: Y > 1 ? `#${l + 1} Receipt` : "Receipt",
|
|
1820
|
-
onDeleteClick: () => {
|
|
1821
|
-
Ge?.("In-Progress"), setTimeout(() => Xe?.(Number(c.lineId)));
|
|
1822
|
-
},
|
|
1823
|
-
onReplaceClick: () => {
|
|
1824
|
-
pe(Number(c.lineId)), Fe?.();
|
|
1825
|
-
},
|
|
1826
|
-
allowMultiFiles: Y === l + 1,
|
|
1827
|
-
type: "reimbursement"
|
|
1828
|
-
}
|
|
1829
|
-
)
|
|
1830
|
-
}
|
|
1831
|
-
),
|
|
1832
|
-
/* @__PURE__ */ t.jsxs(ea, { windowSize: _, children: [
|
|
1833
|
-
l === 0 && _ !== "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1834
|
-
/* @__PURE__ */ t.jsx(Ui, { children: ht }),
|
|
1835
|
-
/* @__PURE__ */ t.jsx(na, { children: /* @__PURE__ */ t.jsx(
|
|
1836
|
-
$r,
|
|
1837
|
-
{
|
|
1838
|
-
progressSectionObj: i,
|
|
1839
|
-
createDate: d,
|
|
1840
|
-
paymentDate: v,
|
|
1841
|
-
scheduleDate: p,
|
|
1842
|
-
approvedDate: S,
|
|
1843
|
-
isBillUploaded: a != null ? !0 : e === "Completed"
|
|
1844
|
-
}
|
|
1845
|
-
) }),
|
|
1846
|
-
te && /* @__PURE__ */ t.jsxs(Wi, { children: [
|
|
1847
|
-
/* @__PURE__ */ t.jsx(Fi, {}),
|
|
1848
|
-
/* @__PURE__ */ t.jsx(qi, { children: D.banner })
|
|
1849
|
-
] }),
|
|
1850
|
-
m && /* @__PURE__ */ t.jsxs(Ei, { size: _, children: [
|
|
1851
|
-
/* @__PURE__ */ t.jsx(Ni, {}),
|
|
1852
|
-
/* @__PURE__ */ t.jsxs(_i, { children: [
|
|
1853
|
-
/* @__PURE__ */ t.jsx(Vi, { children: D.thereSeems }),
|
|
1854
|
-
/* @__PURE__ */ t.jsx(Di, { children: D.pleaseFind })
|
|
1855
|
-
] })
|
|
1856
|
-
] }),
|
|
1857
|
-
/* @__PURE__ */ t.jsx(
|
|
1858
|
-
Ln,
|
|
1859
|
-
{
|
|
1860
|
-
isReimbursementCommentingEnabled: M,
|
|
1861
|
-
sectionId: Nt,
|
|
1862
|
-
reportTitle: de,
|
|
1863
|
-
reimbursementId: a
|
|
1864
|
-
}
|
|
1865
|
-
)
|
|
1866
|
-
] }) : null,
|
|
1867
|
-
/* @__PURE__ */ t.jsx(
|
|
1868
|
-
fi,
|
|
1869
|
-
{
|
|
1870
|
-
analytics: le,
|
|
1871
|
-
reimbursementId: a,
|
|
1872
|
-
onDuplicateLineClick: ve,
|
|
1873
|
-
uncategorizedAccounts: V,
|
|
1874
|
-
sectionId: `${So}.${l}`,
|
|
1875
|
-
scrollToSection: he,
|
|
1876
|
-
lineIndex: l,
|
|
1877
|
-
lineData: c,
|
|
1878
|
-
accountList: T,
|
|
1879
|
-
classList: P,
|
|
1880
|
-
merchantList: H,
|
|
1881
|
-
autoFields: c.lineId != null ? k[c.lineId] : [],
|
|
1882
|
-
currencyConversionState: y,
|
|
1883
|
-
recommendationFetchState: _e,
|
|
1884
|
-
onRemoveReimbursement: He,
|
|
1885
|
-
hasMultipleLineItems: Y > 1,
|
|
1886
|
-
clearTentativeNameForLine: Qe,
|
|
1887
|
-
tentativeMerchantName: ue,
|
|
1888
|
-
hasFile: Q != null,
|
|
1889
|
-
companyMileageConfigInfo: Be,
|
|
1890
|
-
defaultCurrency: K,
|
|
1891
|
-
remiStage: B,
|
|
1892
|
-
remiStatus: ce,
|
|
1893
|
-
fileRequiredLineIds: J,
|
|
1894
|
-
allCurrencies: Ze,
|
|
1895
|
-
isReimbursementCommentingEnabled: M,
|
|
1896
|
-
isAddReimbursementDisabled: q,
|
|
1897
|
-
accountsHierarchyList: ie,
|
|
1898
|
-
classHierarchyList: lt,
|
|
1899
|
-
duplicateLineDetails: L[c.lineId],
|
|
1900
|
-
removeDuplicateReimbursementForLine: h
|
|
1901
|
-
}
|
|
1902
|
-
),
|
|
1903
|
-
Y !== 1 && Y === l + 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1904
|
-
/* @__PURE__ */ t.jsxs(Ki, { windowSize: _, children: [
|
|
1905
|
-
/* @__PURE__ */ t.jsx(Gi, { children: D.total }),
|
|
1906
|
-
re ? /* @__PURE__ */ t.jsx(Yi, { windowSize: _, children: /* @__PURE__ */ t.jsx(Ji, { children: /* @__PURE__ */ t.jsx(
|
|
1907
|
-
vt,
|
|
1908
|
-
{
|
|
1909
|
-
size: "Standard",
|
|
1910
|
-
start: !0,
|
|
1911
|
-
style: { display: "flex" }
|
|
1912
|
-
}
|
|
1913
|
-
) }) }) : /* @__PURE__ */ t.jsx(
|
|
1914
|
-
$n,
|
|
1915
|
-
{
|
|
1916
|
-
amount: hn(ne, "USD", "$"),
|
|
1917
|
-
integerStyles: Ft.h6Regular.cssObject,
|
|
1918
|
-
decimalStyles: Ft.standardRegular.cssObject
|
|
1919
|
-
}
|
|
1920
|
-
)
|
|
1921
|
-
] }),
|
|
1922
|
-
/* @__PURE__ */ t.jsxs(
|
|
1923
|
-
Xi,
|
|
1924
|
-
{
|
|
1925
|
-
windowSize: _,
|
|
1926
|
-
onClick: () => {
|
|
1927
|
-
q === !1 && Re();
|
|
1928
|
-
},
|
|
1929
|
-
isDisabled: q,
|
|
1930
|
-
"data-testid": U("add-reimbursement-row"),
|
|
1931
|
-
children: [
|
|
1932
|
-
/* @__PURE__ */ t.jsx(Uo, {}),
|
|
1933
|
-
/* @__PURE__ */ t.jsx(qo, { children: D.addReimbursement })
|
|
1934
|
-
]
|
|
1935
|
-
}
|
|
1936
|
-
),
|
|
1937
|
-
Le ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1938
|
-
/* @__PURE__ */ t.jsx(Hi, { windowSize: _, children: D.receivePaymentTo }),
|
|
1939
|
-
/* @__PURE__ */ t.jsx(
|
|
1940
|
-
Qi,
|
|
1941
|
-
{
|
|
1942
|
-
windowSize: _,
|
|
1943
|
-
shouldDisplay: F.length > 0,
|
|
1944
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1945
|
-
Sn,
|
|
1946
|
-
{
|
|
1947
|
-
label: {
|
|
1948
|
-
label: D.yourBankAccount,
|
|
1949
|
-
width: W
|
|
1950
|
-
},
|
|
1951
|
-
style: {
|
|
1952
|
-
width: "auto"
|
|
1953
|
-
},
|
|
1954
|
-
singleSelectField: {
|
|
1955
|
-
singleSelect: {
|
|
1956
|
-
name: wt,
|
|
1957
|
-
placeholder: rt(
|
|
1958
|
-
D.yourBankAccount
|
|
1959
|
-
),
|
|
1960
|
-
showValueEyeIcon: !q,
|
|
1961
|
-
menuPlacement: "top",
|
|
1962
|
-
maxMenuHeight: 308,
|
|
1963
|
-
showEyeIconOnSelect: !1,
|
|
1964
|
-
onDelete: Ke,
|
|
1965
|
-
getTooltipInfo: (R) => Rn(F, R),
|
|
1966
|
-
onClickCreateBankAccount: () => me(!0),
|
|
1967
|
-
getLabelForId: (R) => Fn(F, R),
|
|
1968
|
-
isOptionRemovable: !1,
|
|
1969
|
-
showDeleteIcon: !0,
|
|
1970
|
-
showAddBankAccountOption: !0,
|
|
1971
|
-
isDisabled: q ? "readonly" : void 0,
|
|
1972
|
-
showTickMark: !1,
|
|
1973
|
-
alwaysShowEyeTooltip: !0
|
|
1974
|
-
},
|
|
1975
|
-
defaultValue: {
|
|
1976
|
-
selectedOption: fe,
|
|
1977
|
-
allOptions: Ct
|
|
1978
|
-
},
|
|
1979
|
-
registerOptions: {
|
|
1980
|
-
required: !0,
|
|
1981
|
-
validate: (R) => !!R.selectedOption
|
|
1982
|
-
}
|
|
1983
|
-
},
|
|
1984
|
-
isFunctional: !0
|
|
1985
|
-
}
|
|
1986
|
-
)
|
|
1987
|
-
}
|
|
1988
|
-
),
|
|
1989
|
-
/* @__PURE__ */ t.jsxs(
|
|
1990
|
-
Zi,
|
|
1991
|
-
{
|
|
1992
|
-
shouldDisplay: F.length === 0,
|
|
1993
|
-
windowSize: _,
|
|
1994
|
-
hasError: Pe(pt, wt),
|
|
1995
|
-
onClick: () => {
|
|
1996
|
-
q === !1 && me(!0);
|
|
1997
|
-
},
|
|
1998
|
-
isDisabled: q,
|
|
1999
|
-
"data-testid": U(
|
|
2000
|
-
"remi-add-bank-account-container"
|
|
2001
|
-
),
|
|
2002
|
-
children: [
|
|
2003
|
-
/* @__PURE__ */ t.jsx(Uo, {}),
|
|
2004
|
-
/* @__PURE__ */ t.jsx(qo, { children: D.addBankAccount })
|
|
2005
|
-
]
|
|
2006
|
-
}
|
|
2007
|
-
)
|
|
2008
|
-
] }) : null
|
|
2009
|
-
] })
|
|
2010
|
-
] })
|
|
2011
|
-
] });
|
|
2012
|
-
}, Rn = (e, i) => {
|
|
2013
|
-
const a = zn(e, i);
|
|
2014
|
-
return a == null ? `${Bt.bankRoutingNumber} ${D.emptyValue}
|
|
2015
|
-
${Bt.bankAccountNumber} ${D.emptyValue}` : `${Bt.bankRoutingNumber} ${a.bankRoutingNumberAch ?? D.emptyValue}, ${a.bankName ?? D.emptyValue}
|
|
2016
|
-
${Bt.bankAccountNumber} ${a.bankAccountNumber ?? D.emptyValue}`;
|
|
2017
|
-
}, zn = (e, i) => e.find((a) => a.bankAccountId === i), Fn = (e, i) => {
|
|
2018
|
-
const a = zn(e, i);
|
|
2019
|
-
return a == null ? D.selectBankAccount : a.bankAccountName ? a.bankAccountName : a.maskedAccountNumber ? a.maskedAccountNumber : a.bankName && a.bankAccountNumber ? `${a.bankName} ${D.accountNameConnector}${a.bankAccountNumber.slice(
|
|
2020
|
-
a.bankAccountNumber.length - 4
|
|
2021
|
-
)}` : D.selectBankAccount;
|
|
2022
|
-
}, Fi = n(fo)`
|
|
2023
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2024
|
-
width: ${o.sp3};
|
|
2025
|
-
height: ${o.sp3};
|
|
2026
|
-
`, Ni = n(vr)`
|
|
2027
|
-
width: ${o.sp4};
|
|
2028
|
-
height: ${o.sp4};
|
|
2029
|
-
color: ${I.brandColorGoldDark};
|
|
2030
|
-
`, Wi = n.div`
|
|
2031
|
-
display: flex;
|
|
2032
|
-
gap: ${o.sp2};
|
|
2033
|
-
border: 1px solid ${(e) => e.theme.colors.grey3};
|
|
2034
|
-
padding: ${o.sp3};
|
|
2035
|
-
border-radius: ${o.sp2};
|
|
2036
|
-
align-items: center;
|
|
2037
|
-
margin: 0 ${o.sp8} 0 ${o.sp6};
|
|
2038
|
-
`, Ei = n.div`
|
|
2039
|
-
display: flex;
|
|
2040
|
-
gap: ${o.sp2};
|
|
2041
|
-
padding: ${o.sp3};
|
|
2042
|
-
border-radius: ${o.sp2};
|
|
2043
|
-
align-items: start;
|
|
2044
|
-
margin-top: ${(e) => N.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
2045
|
-
margin-right: ${(e) => N.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
2046
|
-
margin-bottom: ${(e) => N.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
2047
|
-
margin-left: ${(e) => N.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
2048
|
-
background-color: ${I.alertLight};
|
|
2049
|
-
border: 1px solid ${(e) => e.theme.colors.brandColorGoldDark};
|
|
2050
|
-
`, Vi = n(_t)`
|
|
2051
|
-
color: ${(e) => e.theme.colors.brandColorGoldDark};
|
|
2052
|
-
`, _i = n.div`
|
|
2053
|
-
width: 100%;
|
|
2054
|
-
`, Di = n(xo)`
|
|
2055
|
-
color: ${(e) => e.theme.colors.brandColorGoldDark};
|
|
2056
|
-
`, qi = n.span`
|
|
2057
|
-
color: ${(e) => e.theme.colors.hero};
|
|
2058
|
-
`, Ui = n(Sr)`
|
|
2059
|
-
letter-spacing: -0.02em;
|
|
2060
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2061
|
-
margin: ${o.sp3} ${o.sp8} ${o.sp3} ${o.sp6};
|
|
2062
|
-
`, Hi = n(Vt)`
|
|
2063
|
-
letter-spacing: -0.02em;
|
|
2064
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2065
|
-
margin-top: ${(e) => N.paymentToMarginTop.valuePx(e.windowSize)};
|
|
2066
|
-
margin-bottom: ${(e) => N.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
2067
|
-
margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
2068
|
-
margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
2069
|
-
`, Ki = n.div`
|
|
2070
|
-
padding: ${o.sp3};
|
|
2071
|
-
display: flex;
|
|
2072
|
-
align-items: center;
|
|
2073
|
-
justify-content: space-between;
|
|
2074
|
-
background-color: ${(e) => e.theme.colors.grey3};
|
|
2075
|
-
border: 1px solid ${(e) => e.theme.colors.grey3};
|
|
2076
|
-
border-radius: ${o.sp2};
|
|
2077
|
-
color: ${(e) => e.theme.colors.hero};
|
|
2078
|
-
margin-top: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
|
|
2079
|
-
margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
2080
|
-
margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
2081
|
-
margin-bottom: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
|
|
2082
|
-
justify-content: space-between;
|
|
2083
|
-
`, Gi = n(vn)`
|
|
2084
|
-
display: flex;
|
|
2085
|
-
width: 176px;
|
|
2086
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2087
|
-
`, Yi = n(Cn)`
|
|
2088
|
-
display: flex;
|
|
2089
|
-
width: calc(100% - 176px);
|
|
2090
|
-
justify-content: flex-end;
|
|
2091
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2092
|
-
${(e) => `${Ri.total.style(e.windowSize)}`};
|
|
2093
|
-
`, Ji = n.div`
|
|
2094
|
-
padding-right: ${o.sp3};
|
|
2095
|
-
height: 30px;
|
|
2096
|
-
display: flex;
|
|
2097
|
-
justify-content: flex-end;
|
|
2098
|
-
`, Qi = n.div`
|
|
2099
|
-
margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
2100
|
-
margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
2101
|
-
margin-bottom: ${o.sp3};
|
|
2102
|
-
border: 1px solid ${(e) => e.theme.colors.grey3};
|
|
2103
|
-
border-radius: ${o.sp2};
|
|
2104
|
-
box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
2105
|
-
display: ${(e) => e.shouldDisplay ? "unset" : "none"};
|
|
2106
|
-
`, Xi = n.div`
|
|
2107
|
-
padding: ${o.sp3};
|
|
2108
|
-
display: flex;
|
|
2109
|
-
align-items: center;
|
|
2110
|
-
justify-content: center;
|
|
2111
|
-
border: 1px solid
|
|
2112
|
-
${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
|
|
2113
|
-
border-radius: ${o.sp2};
|
|
2114
|
-
color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
|
|
2115
|
-
cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
|
|
2116
|
-
&:hover {
|
|
2117
|
-
color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
|
|
2118
|
-
border: 1px solid
|
|
2119
|
-
${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
|
|
2120
|
-
}
|
|
2121
|
-
margin-top: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
|
|
2122
|
-
margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
2123
|
-
margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
2124
|
-
margin-bottom: ${(e) => N.marginBottom.valuePx(e.windowSize)};
|
|
2125
|
-
`, Zi = n.div`
|
|
2126
|
-
padding: ${o.sp3};
|
|
2127
|
-
display: ${(e) => e.shouldDisplay ? "flex" : "none"};
|
|
2128
|
-
align-items: center;
|
|
2129
|
-
justify-content: center;
|
|
2130
|
-
border: 1px solid
|
|
2131
|
-
${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
|
|
2132
|
-
border-radius: ${o.sp2};
|
|
2133
|
-
color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
|
|
2134
|
-
cursor: pointer;
|
|
2135
|
-
&:hover {
|
|
2136
|
-
color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
|
|
2137
|
-
border: 1px solid
|
|
2138
|
-
${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
|
|
2139
|
-
}
|
|
2140
|
-
margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
2141
|
-
margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
2142
|
-
margin-bottom: ${(e) => N.marginBottom.valuePx(e.windowSize)};
|
|
2143
|
-
`, qo = n(_t)`
|
|
2144
|
-
color: inherit;
|
|
2145
|
-
`, Uo = n(Tn)`
|
|
2146
|
-
margin-right: ${o.sp2};
|
|
2147
|
-
width: ${o.sp3};
|
|
2148
|
-
height: ${o.sp3};
|
|
2149
|
-
`, ea = n.div`
|
|
2150
|
-
display: flex;
|
|
2151
|
-
flex-direction: column;
|
|
2152
|
-
width: ${(e) => N.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
2153
|
-
`, ta = n.div`
|
|
2154
|
-
display: flex;
|
|
2155
|
-
width: 100%;
|
|
2156
|
-
flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
|
|
2157
|
-
`, oa = n.div`
|
|
2158
|
-
height: 100%;
|
|
2159
|
-
background: ${(e) => e.theme.colors.grey3};
|
|
2160
|
-
border-radius: ${o.sp2};
|
|
2161
|
-
width: ${(e) => e.windowSize === "small" ? "auto" : "42%"};
|
|
2162
|
-
margin-left: ${(e) => N.invoiceSectionLeftMargin.valuePx(e.windowSize)};
|
|
2163
|
-
margin-right: ${(e) => N.invoiceSectionRightMargin.valuePx(e.windowSize)};
|
|
2164
|
-
visibility: ${(e) => e.showSkipAutoFill ? "hidden" : "unset"};
|
|
2165
|
-
margin-bottom: ${(e) => e.bottomSeperator === !0 && e.windowSize !== "small" ? e.isFirstItem ? "102px" : o.sp10 : 0};
|
|
2166
|
-
margin-top: ${(e) => N.marginTop.valuePx(e.windowSize)};
|
|
2167
|
-
`, na = n.div`
|
|
2168
|
-
padding: ${o.sp2} ${o.sp8} ${o.sp0} ${o.sp6};
|
|
2169
|
-
`, ra = {
|
|
2170
|
-
total: new go("largeMedium", "h6Medium")
|
|
2171
|
-
}, Z = {
|
|
2172
|
-
largeLabelWidth: new s(120, 120, 220),
|
|
2173
|
-
marginBottom: new s(r[5], r[4]),
|
|
2174
|
-
addBankAccountMarginBottom: new s(r[5], r[5]),
|
|
2175
|
-
marginTop: new s(r[0], 78),
|
|
2176
|
-
paymentToMarginTop: new s(0, r[4]),
|
|
2177
|
-
totalMarginBottom: new s(r[3], r[3]),
|
|
2178
|
-
rightMargin: new s(r[3], r[8]),
|
|
2179
|
-
leftMargin: new s(r[3], r[6]),
|
|
2180
|
-
paymentToMarginBottom: new s(12, r[3])
|
|
2181
|
-
}, nt = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, ia = ({
|
|
2182
|
-
remiDetails: e,
|
|
2183
|
-
isUserAdmin: i,
|
|
2184
|
-
authParams: a,
|
|
2185
|
-
uploadInvoiceEndPoint: d,
|
|
2186
|
-
showSkipAutoFill: p,
|
|
2187
|
-
isReimbursementCommentingEnabled: v,
|
|
2188
|
-
isAutoFieldsExist: m,
|
|
2189
|
-
totalAmount: S,
|
|
2190
|
-
defaultCurrency: x,
|
|
2191
|
-
hasDuplicateLine: l,
|
|
2192
|
-
bankAccounts: C,
|
|
2193
|
-
fileRequiredLineIds: b,
|
|
2194
|
-
companyMileageConfigInfo: c,
|
|
2195
|
-
analytics: y,
|
|
2196
|
-
reimbursementId: $,
|
|
2197
|
-
currencyConversionStatus: O,
|
|
2198
|
-
setShowSkipAutoFill: T,
|
|
2199
|
-
setShowBankAccountPage: P,
|
|
2200
|
-
removeDuplicateReimbursementForLine: H,
|
|
2201
|
-
onReceiptsUpload: B,
|
|
2202
|
-
setCurrentLineIdForUpload: k,
|
|
2203
|
-
onDuplicateLineClick: M,
|
|
2204
|
-
setUploadedReceiptPayload: te,
|
|
2205
|
-
removeFileFromLine: ne,
|
|
2206
|
-
onReplaceClick: re,
|
|
2207
|
-
updateInvoiceUploadFetchState: Y,
|
|
2208
|
-
clearTentativeNameForLine: K,
|
|
2209
|
-
onDeleteBankAccount: F,
|
|
2210
|
-
uncategorizedAccounts: J,
|
|
2211
|
-
isSignedInUserReimbursementCreator: q,
|
|
2212
|
-
duplicateLineByLineId: L,
|
|
2213
|
-
showTotalAmountLoader: ce,
|
|
2214
|
-
scrollContainerRef: Q
|
|
2215
|
-
}) => {
|
|
2216
|
-
const {
|
|
2217
|
-
control: V,
|
|
2218
|
-
formState: { errors: de }
|
|
2219
|
-
} = at(), { fields: _e, append: ue, remove: fe } = cr({
|
|
2220
|
-
name: So,
|
|
2221
|
-
control: V
|
|
2222
|
-
}), le = _e, Be = bt(null), Ae = (W) => {
|
|
2223
|
-
setTimeout(() => {
|
|
2224
|
-
fe(W);
|
|
2225
|
-
});
|
|
2226
|
-
}, { tentativeMerchantNameByLineId: Le, remiStage: me, remiStatus: Me } = e, pe = !q || me === "pending_approval" && Me !== "rejected" && i || me === "pending_approval" && Me === "rejected", ve = pe ? e.paymentToBankAccountDetail != null ? [e.paymentToBankAccountDetail] : [] : C, Je = ve.map((W) => W.bankAccountId), h = ze(), Ce = Z.largeLabelWidth.value(h), he = e.whatForSection.reportTitle, He = e.accountList.accounts, Re = e.accountsHierarchyList, Qe = e.classHierarchyList, Fe = e.classList.classes, Ke = e.merchantList.merchants, Ge = e.addRemiAutoFieldsByLineId, Xe = Math.max(
|
|
2227
|
-
...Object.keys(
|
|
2228
|
-
e.editRemiInitialDetails?.lineDetailSection ?? {}
|
|
2229
|
-
).map((W) => Number(W)),
|
|
2230
|
-
0
|
|
2231
|
-
), Ze = () => {
|
|
2232
|
-
const W = le[le.length - 1], se = Nn(
|
|
2233
|
-
le.length,
|
|
2234
|
-
Number(W.lineId) > Xe ? String(Number(W.lineId) + 1) : String(Xe + 1),
|
|
2235
|
-
Re,
|
|
2236
|
-
Qe,
|
|
2237
|
-
Ke,
|
|
2238
|
-
x,
|
|
2239
|
-
e.allCurrencies,
|
|
2240
|
-
e.loggedInUserDepartmentId
|
|
2241
|
-
);
|
|
2242
|
-
setTimeout(() => {
|
|
2243
|
-
ue(se, { shouldFocus: !1 });
|
|
2244
|
-
}), k(Number(se.lineId)), T(!0), setTimeout(
|
|
2245
|
-
() => Wo(
|
|
2246
|
-
Be.current,
|
|
2247
|
-
Q?.current
|
|
2248
|
-
),
|
|
2249
|
-
50
|
|
2250
|
-
);
|
|
2251
|
-
}, [ie, lt] = X({}), pt = pn(
|
|
2252
|
-
(W) => {
|
|
2253
|
-
const se = ie[`L${W}`];
|
|
2254
|
-
se != null && Wo(se, Q?.current);
|
|
2255
|
-
},
|
|
2256
|
-
[ie, Q]
|
|
2257
|
-
), et = e.reimbursementInfo?.billStatus.code == "approved" && e.reimbursementInfo?.billPaymentStatus.code ? e.reimbursementInfo?.billPaymentStatus : e.reimbursementInfo?.billStatus, _ = e.reimbursementInfo?.paymentDate != null ? it(
|
|
2258
|
-
gn(
|
|
2259
|
-
e.reimbursementInfo.paymentDate.toDate(),
|
|
2260
|
-
[0, 6],
|
|
2261
|
-
e.achSameDayMaxDays
|
|
2262
|
-
).toDateString()
|
|
2263
|
-
) : void 0, ht = e.reimbursementInfo?.expectedDepositDate ?? _;
|
|
2264
|
-
return /* @__PURE__ */ t.jsxs(ca, { windowSize: h, showSkipAutoFill: p, children: [
|
|
2265
|
-
le.map((W, se) => /* @__PURE__ */ t.jsx(
|
|
2266
|
-
zi,
|
|
2267
|
-
{
|
|
2268
|
-
removeDuplicateReimbursementForLine: H,
|
|
2269
|
-
onDuplicateLineClick: M,
|
|
2270
|
-
scrollToSection: pt,
|
|
2271
|
-
setRefByLineId: lt,
|
|
2272
|
-
duplicateLineByLineId: L,
|
|
2273
|
-
reimbursementId: $,
|
|
2274
|
-
remiUploadStatus: e.uploadStatus,
|
|
2275
|
-
uncategorizedAccounts: J,
|
|
2276
|
-
progressSectionObj: et,
|
|
2277
|
-
createDate: e.createTime,
|
|
2278
|
-
paymentDate: ht,
|
|
2279
|
-
scheduleDate: e.reimbursementInfo?.paymentDate,
|
|
2280
|
-
approvedDate: e.latestApprovedDate,
|
|
2281
|
-
isFirstOrLastListItem: le.length - 1 === se || se === 0,
|
|
2282
|
-
index: se,
|
|
2283
|
-
reimbursementSectionRef: Be,
|
|
2284
|
-
remiStage: me,
|
|
2285
|
-
remiStatus: Me,
|
|
2286
|
-
authParams: a,
|
|
2287
|
-
file: W.file,
|
|
2288
|
-
uploadInvoiceEndPoint: d,
|
|
2289
|
-
showSkipAutoFill: p,
|
|
2290
|
-
lineData: W,
|
|
2291
|
-
currencyConversionState: O[W.lineId],
|
|
2292
|
-
recommendationFetchState: e.lineDetailSection[W.lineId]?.recommendationFetchState,
|
|
2293
|
-
setCurrentLineIdForUpload: k,
|
|
2294
|
-
setUploadedReceiptPayload: te,
|
|
2295
|
-
onReplaceClick: re,
|
|
2296
|
-
onReceiptsUpload: B,
|
|
2297
|
-
removeFileFromLine: ne,
|
|
2298
|
-
isReimbursementCommentingEnabled: v,
|
|
2299
|
-
isAutoFieldsExist: m,
|
|
2300
|
-
reportTitle: he,
|
|
2301
|
-
accountList: He,
|
|
2302
|
-
classList: Fe,
|
|
2303
|
-
merchantList: Ke,
|
|
2304
|
-
autoFieldsByLineId: Ge,
|
|
2305
|
-
onRemoveReimbursement: Ae,
|
|
2306
|
-
onAddReimbursement: Ze,
|
|
2307
|
-
totalAmount: S,
|
|
2308
|
-
showTotalAmountLoader: ce,
|
|
2309
|
-
hasDuplicateLine: l,
|
|
2310
|
-
totalNumberOfLines: le.length,
|
|
2311
|
-
updateInvoiceUploadFetchState: Y,
|
|
2312
|
-
clearTentativeNameForLine: K,
|
|
2313
|
-
tentativeMerchantName: Le[W.lineId],
|
|
2314
|
-
companyMileageConfigInfo: c,
|
|
2315
|
-
defaultCurrency: x,
|
|
2316
|
-
setShowBankAccountPage: P,
|
|
2317
|
-
paymentTo: e.paymentTo,
|
|
2318
|
-
bankAccounts: ve,
|
|
2319
|
-
onDeleteBankAccount: F,
|
|
2320
|
-
analytics: y,
|
|
2321
|
-
fileRequiredLineIds: b,
|
|
2322
|
-
allCurrencies: e.allCurrencies,
|
|
2323
|
-
loggedInUserDepartmentId: e.loggedInUserDepartmentId,
|
|
2324
|
-
isAddReimbursementDisabled: pe,
|
|
2325
|
-
accountsHierarchyList: Re,
|
|
2326
|
-
classHierarchyList: Qe,
|
|
2327
|
-
isSignedInUserReimbursementCreator: q
|
|
2328
|
-
},
|
|
2329
|
-
W.lineId
|
|
2330
|
-
)),
|
|
2331
|
-
le.length === 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2332
|
-
/* @__PURE__ */ t.jsxs(to, { children: [
|
|
2333
|
-
h !== "small" ? /* @__PURE__ */ t.jsx(Zt, { windowSize: h }) : null,
|
|
2334
|
-
/* @__PURE__ */ t.jsx(eo, { windowSize: h, children: /* @__PURE__ */ t.jsxs(da, { windowSize: h, children: [
|
|
2335
|
-
/* @__PURE__ */ t.jsx(ua, { children: nt.total }),
|
|
2336
|
-
ce ? /* @__PURE__ */ t.jsx(pa, { windowSize: h, children: /* @__PURE__ */ t.jsx(ha, { children: /* @__PURE__ */ t.jsx(
|
|
2337
|
-
vt,
|
|
2338
|
-
{
|
|
2339
|
-
size: "Standard",
|
|
2340
|
-
start: !0,
|
|
2341
|
-
style: { display: "flex" }
|
|
2342
|
-
}
|
|
2343
|
-
) }) }) : /* @__PURE__ */ t.jsx(
|
|
2344
|
-
$n,
|
|
2345
|
-
{
|
|
2346
|
-
amount: hn(
|
|
2347
|
-
S,
|
|
2348
|
-
Ao.currencyCode,
|
|
2349
|
-
Ao.currencySymbol
|
|
2350
|
-
),
|
|
2351
|
-
integerStyles: Ft.h6Regular.cssObject,
|
|
2352
|
-
decimalStyles: Ft.standardRegular.cssObject
|
|
2353
|
-
}
|
|
2354
|
-
)
|
|
2355
|
-
] }) })
|
|
2356
|
-
] }),
|
|
2357
|
-
/* @__PURE__ */ t.jsxs(to, { children: [
|
|
2358
|
-
h !== "small" ? /* @__PURE__ */ t.jsx(Zt, { windowSize: h }) : null,
|
|
2359
|
-
/* @__PURE__ */ t.jsx(eo, { windowSize: h, children: /* @__PURE__ */ t.jsxs(
|
|
2360
|
-
ga,
|
|
2361
|
-
{
|
|
2362
|
-
windowSize: h,
|
|
2363
|
-
onClick: () => {
|
|
2364
|
-
pe === !1 && Ze();
|
|
2365
|
-
},
|
|
2366
|
-
isDisabled: pe,
|
|
2367
|
-
"data-testid": U("add-reimbursement-container"),
|
|
2368
|
-
children: [
|
|
2369
|
-
/* @__PURE__ */ t.jsx(Ko, {}),
|
|
2370
|
-
/* @__PURE__ */ t.jsx(Ho, { children: nt.addReimbursement })
|
|
2371
|
-
]
|
|
2372
|
-
}
|
|
2373
|
-
) })
|
|
2374
|
-
] }),
|
|
2375
|
-
/* @__PURE__ */ t.jsxs(to, { children: [
|
|
2376
|
-
h !== "small" ? /* @__PURE__ */ t.jsx(Zt, { windowSize: h }) : null,
|
|
2377
|
-
q ? /* @__PURE__ */ t.jsxs(eo, { windowSize: h, children: [
|
|
2378
|
-
/* @__PURE__ */ t.jsx(ma, { windowSize: h, children: nt.receivePaymentTo }),
|
|
2379
|
-
/* @__PURE__ */ t.jsx(
|
|
2380
|
-
sa,
|
|
2381
|
-
{
|
|
2382
|
-
windowSize: h,
|
|
2383
|
-
shouldDisplay: ve.length > 0,
|
|
2384
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2385
|
-
Sn,
|
|
2386
|
-
{
|
|
2387
|
-
label: {
|
|
2388
|
-
label: nt.yourBankAccount,
|
|
2389
|
-
width: Ce
|
|
2390
|
-
},
|
|
2391
|
-
style: {
|
|
2392
|
-
width: "auto"
|
|
2393
|
-
},
|
|
2394
|
-
singleSelectField: {
|
|
2395
|
-
singleSelect: {
|
|
2396
|
-
name: wt,
|
|
2397
|
-
placeholder: rt(
|
|
2398
|
-
nt.yourBankAccount
|
|
2399
|
-
),
|
|
2400
|
-
showValueEyeIcon: !pe,
|
|
2401
|
-
menuPlacement: "top",
|
|
2402
|
-
maxMenuHeight: 308,
|
|
2403
|
-
showEyeIconOnSelect: !1,
|
|
2404
|
-
onDelete: F,
|
|
2405
|
-
getTooltipInfo: (W) => Rn(ve, W),
|
|
2406
|
-
onClickCreateBankAccount: () => P(!0),
|
|
2407
|
-
getLabelForId: (W) => Fn(ve, W),
|
|
2408
|
-
isOptionRemovable: !1,
|
|
2409
|
-
showDeleteIcon: !0,
|
|
2410
|
-
showAddBankAccountOption: !0,
|
|
2411
|
-
isDisabled: pe ? "readonly" : void 0,
|
|
2412
|
-
showTickMark: !1,
|
|
2413
|
-
alwaysShowEyeTooltip: !0
|
|
2414
|
-
},
|
|
2415
|
-
defaultValue: {
|
|
2416
|
-
selectedOption: e.paymentTo,
|
|
2417
|
-
allOptions: Je
|
|
2418
|
-
},
|
|
2419
|
-
registerOptions: {
|
|
2420
|
-
required: !0,
|
|
2421
|
-
validate: (W) => !!W.selectedOption
|
|
2422
|
-
}
|
|
2423
|
-
},
|
|
2424
|
-
isFunctional: !0
|
|
2425
|
-
}
|
|
2426
|
-
)
|
|
2427
|
-
}
|
|
2428
|
-
),
|
|
2429
|
-
/* @__PURE__ */ t.jsxs(
|
|
2430
|
-
ya,
|
|
2431
|
-
{
|
|
2432
|
-
shouldDisplay: ve.length === 0,
|
|
2433
|
-
windowSize: h,
|
|
2434
|
-
onClick: () => {
|
|
2435
|
-
pe === !1 && P(!0);
|
|
2436
|
-
},
|
|
2437
|
-
hasError: Pe(de, wt),
|
|
2438
|
-
isDisabled: pe,
|
|
2439
|
-
"data-testid": U(
|
|
2440
|
-
"remi-add-bank-account-container"
|
|
2441
|
-
),
|
|
2442
|
-
children: [
|
|
2443
|
-
/* @__PURE__ */ t.jsx(Ko, {}),
|
|
2444
|
-
/* @__PURE__ */ t.jsx(Ho, { children: nt.addBankAccount })
|
|
2445
|
-
]
|
|
2446
|
-
}
|
|
2447
|
-
)
|
|
2448
|
-
] }) : null
|
|
2449
|
-
] })
|
|
2450
|
-
] })
|
|
2451
|
-
] });
|
|
2452
|
-
}, Nn = (e, i, a, d, p, v, m, S) => {
|
|
2453
|
-
const x = aa(
|
|
2454
|
-
a,
|
|
2455
|
-
d,
|
|
2456
|
-
p,
|
|
2457
|
-
v,
|
|
2458
|
-
m,
|
|
2459
|
-
S
|
|
2460
|
-
);
|
|
2461
|
-
return {
|
|
2462
|
-
lineIndex: e,
|
|
2463
|
-
lineId: i,
|
|
2464
|
-
reimbursementType: nt.outOfPocketKey,
|
|
2465
|
-
file: void 0,
|
|
2466
|
-
outOfPocket: x,
|
|
2467
|
-
mileage: la(
|
|
2468
|
-
d,
|
|
2469
|
-
v,
|
|
2470
|
-
S
|
|
2471
|
-
)
|
|
2472
|
-
};
|
|
2473
|
-
}, aa = (e, i, a, d, p, v) => ({
|
|
2474
|
-
transactionDate: void 0,
|
|
2475
|
-
class: {
|
|
2476
|
-
allOptions: Ue(
|
|
2477
|
-
Ye(i, [])
|
|
2478
|
-
),
|
|
2479
|
-
selectedOption: v
|
|
2480
|
-
},
|
|
2481
|
-
account: {
|
|
2482
|
-
allOptions: Ue(
|
|
2483
|
-
Et(e, [])
|
|
2484
|
-
),
|
|
2485
|
-
selectedOption: void 0
|
|
2486
|
-
},
|
|
2487
|
-
amount: {
|
|
2488
|
-
amount: 0,
|
|
2489
|
-
currencyCode: d.currencyCode,
|
|
2490
|
-
currencySymbol: d.currencySymbol,
|
|
2491
|
-
currency: {
|
|
2492
|
-
allOptions: p.map((m) => ({
|
|
2493
|
-
label: `${m.currencyCode} - ${m.currency}`,
|
|
2494
|
-
value: m.currencyCode,
|
|
2495
|
-
countryCode: bo(
|
|
2496
|
-
m.countryCode
|
|
2497
|
-
)
|
|
2498
|
-
})),
|
|
2499
|
-
selectedOption: d.currencyCode ?? we.getLocalizedStrings().common.currency.currencyCode
|
|
2500
|
-
}
|
|
2501
|
-
},
|
|
2502
|
-
memo: void 0,
|
|
2503
|
-
merchant: {
|
|
2504
|
-
allOptions: a.map((m) => m.id).filter((m) => !!m),
|
|
2505
|
-
selectedOption: void 0
|
|
2506
|
-
},
|
|
2507
|
-
recommendations: [],
|
|
2508
|
-
isCategoryUpdateSelected: !1,
|
|
2509
|
-
isCategoryFirstTimeAutofilled: !1,
|
|
2510
|
-
isRetainedCategorySelected: !1
|
|
2511
|
-
}), la = (e, i, a) => ({
|
|
2512
|
-
transactionDate: void 0,
|
|
2513
|
-
class: {
|
|
2514
|
-
allOptions: Ue(
|
|
2515
|
-
Ye(e, [])
|
|
2516
|
-
),
|
|
2517
|
-
selectedOption: a
|
|
2518
|
-
},
|
|
2519
|
-
distanceInMiles: void 0,
|
|
2520
|
-
amount: {
|
|
2521
|
-
amount: 0,
|
|
2522
|
-
currencyCode: i.currencyCode,
|
|
2523
|
-
currencySymbol: i.currencySymbol
|
|
2524
|
-
},
|
|
2525
|
-
memo: void 0
|
|
2526
|
-
}), sa = n.div`
|
|
2527
|
-
margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
|
|
2528
|
-
margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
|
|
2529
|
-
margin-bottom: ${(e) => Z.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
2530
|
-
border: 1px solid ${(e) => e.theme.colors.grey3};
|
|
2531
|
-
border-radius: ${o.sp2};
|
|
2532
|
-
box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
2533
|
-
display: ${(e) => e.shouldDisplay ? "inherit" : "none"};
|
|
2534
|
-
`, Zt = n.div`
|
|
2535
|
-
width: ${(e) => e.windowSize === "small" ? "100%" : "42%"};
|
|
2536
|
-
`, eo = n.div`
|
|
2537
|
-
width: ${(e) => e.windowSize === "small" ? "100%" : "58%"};
|
|
2538
|
-
`, ca = n.div`
|
|
2539
|
-
display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
|
|
2540
|
-
flex-direction: column;
|
|
2541
|
-
margin-top: ${(e) => Z.marginTop.valuePx(e.windowSize)};
|
|
2542
|
-
`, da = n.div`
|
|
2543
|
-
padding: ${o.sp3};
|
|
2544
|
-
display: flex;
|
|
2545
|
-
align-items: center;
|
|
2546
|
-
justify-content: space-between;
|
|
2547
|
-
background-color: ${(e) => e.theme.colors.grey3};
|
|
2548
|
-
border: 1px solid ${(e) => e.theme.colors.grey3};
|
|
2549
|
-
border-radius: ${o.sp2};
|
|
2550
|
-
color: ${(e) => e.theme.colors.hero};
|
|
2551
|
-
margin-top: ${(e) => Z.totalMarginBottom.valuePx(e.windowSize)};
|
|
2552
|
-
margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
|
|
2553
|
-
margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
|
|
2554
|
-
margin-bottom: ${(e) => Z.totalMarginBottom.valuePx(e.windowSize)};
|
|
2555
|
-
`, ua = n(vn)`
|
|
2556
|
-
display: flex;
|
|
2557
|
-
width: 176px;
|
|
2558
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2559
|
-
`, ma = n(Vt)`
|
|
2560
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2561
|
-
margin-top: ${(e) => Z.paymentToMarginTop.valuePx(e.windowSize)};
|
|
2562
|
-
margin-bottom: ${(e) => Z.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
2563
|
-
margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
|
|
2564
|
-
margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
|
|
2565
|
-
`, pa = n(Cn)`
|
|
2566
|
-
display: flex;
|
|
2567
|
-
width: calc(100% - 176px);
|
|
2568
|
-
justify-content: flex-end;
|
|
2569
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2570
|
-
${(e) => `${ra.total.style(e.windowSize)}`};
|
|
2571
|
-
`, ha = n.div`
|
|
2572
|
-
padding-right: ${o.sp3};
|
|
2573
|
-
height: 30px;
|
|
2574
|
-
display: flex;
|
|
2575
|
-
justify-content: flex-end;
|
|
2576
|
-
`, ga = n.div`
|
|
2577
|
-
padding: ${o.sp3};
|
|
2578
|
-
display: flex;
|
|
2579
|
-
align-items: center;
|
|
2580
|
-
justify-content: center;
|
|
2581
|
-
border: 1px solid
|
|
2582
|
-
${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
|
|
2583
|
-
border-radius: ${o.sp2};
|
|
2584
|
-
|
|
2585
|
-
color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
|
|
2586
|
-
cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
|
|
2587
|
-
&:hover {
|
|
2588
|
-
color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
|
|
2589
|
-
border: 1px solid
|
|
2590
|
-
${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
|
|
2591
|
-
}
|
|
2592
|
-
margin-top: ${(e) => Z.totalMarginBottom.valuePx(e.windowSize)};
|
|
2593
|
-
margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
|
|
2594
|
-
margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
|
|
2595
|
-
margin-bottom: ${(e) => Z.marginBottom.valuePx(e.windowSize)};
|
|
2596
|
-
`, ya = n.div`
|
|
2597
|
-
padding: ${o.sp3};
|
|
2598
|
-
display: ${(e) => e.shouldDisplay ? "flex" : "none"};
|
|
2599
|
-
align-items: center;
|
|
2600
|
-
justify-content: center;
|
|
2601
|
-
border: 1px solid
|
|
2602
|
-
${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
|
|
2603
|
-
border-radius: ${o.sp2};
|
|
2604
|
-
color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
|
|
2605
|
-
cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
|
|
2606
|
-
&:hover {
|
|
2607
|
-
color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
|
|
2608
|
-
border: 1px solid
|
|
2609
|
-
${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
|
|
2610
|
-
}
|
|
2611
|
-
margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
|
|
2612
|
-
margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
|
|
2613
|
-
margin-bottom: ${(e) => Z.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
2614
|
-
`, Ho = n(_t)`
|
|
2615
|
-
color: inherit;
|
|
2616
|
-
`, Ko = n(Tn)`
|
|
2617
|
-
margin-right: ${o.sp2};
|
|
2618
|
-
width: ${o.sp3};
|
|
2619
|
-
height: ${o.sp3};
|
|
2620
|
-
`, to = n.div`
|
|
2621
|
-
display: flex;
|
|
2622
|
-
width: 100%;
|
|
2623
|
-
`, Ve = {
|
|
2624
|
-
buttonWidth: new s(140, 140),
|
|
2625
|
-
paddingLeft: new s(r[3], r[6]),
|
|
2626
|
-
paddingRight: new s(r[3], r[8]),
|
|
2627
|
-
marginbottom: new s(r[4], r[5]),
|
|
2628
|
-
subTitleMarginbottom: new s(r[2], r[3]),
|
|
2629
|
-
orSeperatorTopBottomMargin: new s(r[6], 44),
|
|
2630
|
-
iconWidthHeight: new s(20, r[4])
|
|
2631
|
-
}, Go = "userBankAccountPage", Rt = "bankAccountSection", fa = (e) => ({
|
|
2632
|
-
[Rt]: {
|
|
2633
|
-
bankRoutingNumber: e?.bankRoutingNumber,
|
|
2634
|
-
bankName: e?.bankName,
|
|
2635
|
-
bankAccountNumber: e?.bankAccountNumber,
|
|
2636
|
-
confirmedBankAccountNumber: e?.confirmedBankAccountNumber,
|
|
2637
|
-
bankAccountName: e?.bankAccountName
|
|
2638
|
-
}
|
|
2639
|
-
}), Yo = (e) => `${e}_form`, xa = ({
|
|
2640
|
-
bankAccountCreationState: e,
|
|
2641
|
-
setShowBankAccountPage: i,
|
|
2642
|
-
plaidConnectionDetails: a,
|
|
2643
|
-
onFetchLinkTokenClick: d,
|
|
2644
|
-
onEstablishConnectionClick: p,
|
|
2645
|
-
bankAccountToCreate: v,
|
|
2646
|
-
fetchBankNameByRoutingStatus: m,
|
|
2647
|
-
isDisabled: S,
|
|
2648
|
-
onSaveHandler: x,
|
|
2649
|
-
onUserBankDetailsUpdated: l,
|
|
2650
|
-
onFetchBankName: C,
|
|
2651
|
-
onBackClick: b
|
|
2652
|
-
}) => {
|
|
2653
|
-
const c = $t(), y = ze(), $ = un({
|
|
2654
|
-
mode: "onBlur",
|
|
2655
|
-
reValidateMode: "onChange",
|
|
2656
|
-
defaultValues: xt(
|
|
2657
|
-
() => fa(v),
|
|
2658
|
-
[v]
|
|
2659
|
-
)
|
|
2660
|
-
}), O = pn(
|
|
2661
|
-
(K) => {
|
|
2662
|
-
p?.(K), b();
|
|
2663
|
-
},
|
|
2664
|
-
[b, p]
|
|
2665
|
-
), T = a.link_account_no_microdeposit, { open: P } = dr({
|
|
2666
|
-
token: T.linkToken ?? null,
|
|
2667
|
-
onSuccess: O
|
|
2668
|
-
});
|
|
2669
|
-
ye(() => {
|
|
2670
|
-
(it((/* @__PURE__ */ new Date()).toISOString()).isAfter(T.expiration) || T.linkToken == null) && d?.("link_account_no_microdeposit");
|
|
2671
|
-
}, []);
|
|
2672
|
-
const [H, B] = X(!1), k = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, M = we.getLocalizedStrings().common.footer, te = {
|
|
2673
|
-
onOkClick: () => {
|
|
2674
|
-
B(!1), $.reset(), b();
|
|
2675
|
-
},
|
|
2676
|
-
onCancelClick: () => {
|
|
2677
|
-
B(!1);
|
|
2678
|
-
}
|
|
2679
|
-
}, ne = async (K, F) => {
|
|
2680
|
-
const J = F[Rt].bankRoutingNumber;
|
|
2681
|
-
l(F), K === `${Rt}.bankRoutingNumber` && J?.length === 9 && kr.test(J) === !0 && C?.(J);
|
|
2682
|
-
};
|
|
2683
|
-
ye(() => {
|
|
2684
|
-
const K = $.watch((F, { name: J }) => {
|
|
2685
|
-
J != null && F != null && ur(() => ne(J, F));
|
|
2686
|
-
});
|
|
2687
|
-
return () => {
|
|
2688
|
-
K.unsubscribe();
|
|
2689
|
-
};
|
|
2690
|
-
}), ye(() => {
|
|
2691
|
-
e?.fetchState === "Completed" && b();
|
|
2692
|
-
}, [
|
|
2693
|
-
e?.fetchState,
|
|
2694
|
-
b,
|
|
2695
|
-
i
|
|
2696
|
-
]);
|
|
2697
|
-
const re = $.handleSubmit((K) => {
|
|
2698
|
-
m.fetchState !== "In-Progress" && x();
|
|
2699
|
-
}), Y = c.mode === "light" ? new Po(c.colors.brandColorJadeLight) : new Po(c.colors.brandColorJadeDark);
|
|
2700
|
-
return /* @__PURE__ */ t.jsxs(ba, { children: [
|
|
2701
|
-
/* @__PURE__ */ t.jsxs(ka, { windowSize: y, children: [
|
|
2702
|
-
H === !0 ? /* @__PURE__ */ t.jsx(
|
|
2703
|
-
wo,
|
|
2704
|
-
{
|
|
2705
|
-
titleComponent: /* @__PURE__ */ t.jsx(jn, { children: k.discardTitle }),
|
|
2706
|
-
descriptionComponent: /* @__PURE__ */ t.jsx(kn, { children: k.discardDescription }),
|
|
2707
|
-
primaryButtonText: k.buttons.delete,
|
|
2708
|
-
secondaryButtonText: k.buttons.cancel,
|
|
2709
|
-
action: te
|
|
2710
|
-
}
|
|
2711
|
-
) : null,
|
|
2712
|
-
/* @__PURE__ */ t.jsx(
|
|
2713
|
-
Gr,
|
|
2714
|
-
{
|
|
2715
|
-
header: k.addBankAccount,
|
|
2716
|
-
isDirty: $.formState.isDirty,
|
|
2717
|
-
onBackClick: b,
|
|
2718
|
-
setShowConfirmationPopup: B
|
|
2719
|
-
}
|
|
2720
|
-
),
|
|
2721
|
-
/* @__PURE__ */ t.jsx(wa, {}),
|
|
2722
|
-
/* @__PURE__ */ t.jsxs(ja, { size: y, children: [
|
|
2723
|
-
/* @__PURE__ */ t.jsx(
|
|
2724
|
-
Cr,
|
|
2725
|
-
{
|
|
2726
|
-
onClick: () => {
|
|
2727
|
-
$.reset(), P();
|
|
2728
|
-
},
|
|
2729
|
-
title: k.connectYourBank,
|
|
2730
|
-
subTitle: k.loginToBank,
|
|
2731
|
-
header: k.setupAchPayments,
|
|
2732
|
-
icon: {
|
|
2733
|
-
element: /* @__PURE__ */ t.jsx(
|
|
2734
|
-
Tr,
|
|
2735
|
-
{
|
|
2736
|
-
width: Ve.iconWidthHeight.valuePx(y),
|
|
2737
|
-
height: Ve.iconWidthHeight.valuePx(y)
|
|
2738
|
-
}
|
|
2739
|
-
),
|
|
2740
|
-
color: Y
|
|
2741
|
-
},
|
|
2742
|
-
style: {
|
|
2743
|
-
width: "unset",
|
|
2744
|
-
rowGap: y === "small" ? o.sp2 : void 0
|
|
2745
|
-
}
|
|
2746
|
-
}
|
|
2747
|
-
),
|
|
2748
|
-
/* @__PURE__ */ t.jsxs($a, { windowSize: y, children: [
|
|
2749
|
-
/* @__PURE__ */ t.jsx(Sa, {}),
|
|
2750
|
-
/* @__PURE__ */ t.jsx(Ca, { children: /* @__PURE__ */ t.jsx(Ta, { children: k.or }) })
|
|
2751
|
-
] }),
|
|
2752
|
-
/* @__PURE__ */ t.jsx(va, { windowSize: y, children: k.saveAccountManually })
|
|
2753
|
-
] }),
|
|
2754
|
-
/* @__PURE__ */ t.jsx(Ia, { size: y, children: /* @__PURE__ */ t.jsx(mn, { ...$, children: /* @__PURE__ */ t.jsxs("form", { id: Yo(Go), onSubmit: re, children: [
|
|
2755
|
-
e?.fetchState === "Error" && e.error?.code === 409 ? /* @__PURE__ */ t.jsx(
|
|
2756
|
-
Yr,
|
|
2757
|
-
{
|
|
2758
|
-
warningText: k.accountExistWarning
|
|
2759
|
-
}
|
|
2760
|
-
) : null,
|
|
2761
|
-
/* @__PURE__ */ t.jsx(
|
|
2762
|
-
Kr,
|
|
2763
|
-
{
|
|
2764
|
-
bankAccountToCreate: v,
|
|
2765
|
-
fetchBankNameByRoutingStatus: m,
|
|
2766
|
-
sectionId: Rt
|
|
2767
|
-
}
|
|
2768
|
-
)
|
|
2769
|
-
] }) }) })
|
|
2770
|
-
] }),
|
|
2771
|
-
/* @__PURE__ */ t.jsx(
|
|
2772
|
-
In,
|
|
2773
|
-
{
|
|
2774
|
-
formId: Yo(Go),
|
|
2775
|
-
primaryBtn: {
|
|
2776
|
-
label: k.saveAccount,
|
|
2777
|
-
isLoading: e.fetchState === "In-Progress",
|
|
2778
|
-
style: { width: Ve.buttonWidth.value(y) },
|
|
2779
|
-
isDisabled: S != null
|
|
2780
|
-
},
|
|
2781
|
-
cancelBtn: {
|
|
2782
|
-
label: M.cancel,
|
|
2783
|
-
style: { width: Ve.buttonWidth.value(y) },
|
|
2784
|
-
shouldResetOnCancel: !1,
|
|
2785
|
-
onClick: () => {
|
|
2786
|
-
$.formState.isDirty ? B(!0) : (B(!1), $.reset(), b());
|
|
2787
|
-
}
|
|
2788
|
-
}
|
|
2789
|
-
}
|
|
2790
|
-
)
|
|
2791
|
-
] });
|
|
2792
|
-
}, ba = n.div`
|
|
2793
|
-
display: flex;
|
|
2794
|
-
flex-direction: column;
|
|
2795
|
-
width: 100%;
|
|
2796
|
-
height: 100%;
|
|
2797
|
-
`, wa = n.div`
|
|
2798
|
-
margin: ${o.sp2} 0;
|
|
2799
|
-
position: relative;
|
|
2800
|
-
`, $a = n.div`
|
|
2801
|
-
margin: ${(e) => Ve.orSeperatorTopBottomMargin.valuePx(e.windowSize)} 0;
|
|
2802
|
-
position: relative;
|
|
2803
|
-
`, Sa = n.div`
|
|
2804
|
-
background: ${(e) => e.theme.colors.grey2};
|
|
2805
|
-
height: 1px;
|
|
2806
|
-
`, va = n(jr)`
|
|
2807
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2808
|
-
margin-bottom: ${(e) => Ve.subTitleMarginbottom.valuePx(e.windowSize)};
|
|
2809
|
-
`, Ca = n.div`
|
|
2810
|
-
display: flex;
|
|
2811
|
-
justify-content: center;
|
|
2812
|
-
`, Ta = n(yo)`
|
|
2813
|
-
background: ${(e) => e.theme.colors.background};
|
|
2814
|
-
border: 1px solid ${(e) => e.theme.colors.grey2};
|
|
2815
|
-
border-radius: ${o.sp5};
|
|
2816
|
-
width: 43px;
|
|
2817
|
-
height: 25px;
|
|
2818
|
-
display: flex;
|
|
2819
|
-
align-items: center;
|
|
2820
|
-
justify-content: center;
|
|
2821
|
-
color: ${(e) => e.theme.colors.grey1};
|
|
2822
|
-
top: -11px;
|
|
2823
|
-
position: absolute;
|
|
2824
|
-
`, ka = n.div`
|
|
2825
|
-
display: flex;
|
|
2826
|
-
flex-direction: column;
|
|
2827
|
-
flex-grow: 1;
|
|
2828
|
-
`, ja = n.div`
|
|
2829
|
-
padding-left: ${(e) => Ve.paddingLeft.valuePx(e.size)};
|
|
2830
|
-
padding-right: ${(e) => Ve.paddingRight.valuePx(e.size)};
|
|
2831
|
-
`, Ia = n.div`
|
|
2832
|
-
padding-left: ${(e) => Ve.paddingLeft.valuePx(e.size)};
|
|
2833
|
-
padding-right: ${(e) => Ve.paddingRight.valuePx(e.size)};
|
|
2834
|
-
padding-bottom: ${o.sp3};
|
|
2835
|
-
`, Oe = {
|
|
2836
|
-
containerWidth: new s(343, 544),
|
|
2837
|
-
confirmationPopUpTitleMarginTop: new s(r[6], r[7]),
|
|
2838
|
-
confirmationPopUpTitlePaddingLeftRight: new s(r[5], r[8]),
|
|
2839
|
-
submitButtonWidth: new s(145, 156),
|
|
2840
|
-
cancelButtonWidth: new s(121, 121),
|
|
2841
|
-
errorLineItemGap: new s(r[2], 12),
|
|
2842
|
-
styledCloseIconRight: new s(r[3], r[8])
|
|
2843
|
-
}, { footer: Jo } = we.getLocalizedStrings().common, be = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo, Qo = ({ fetchState: e }) => {
|
|
2844
|
-
switch (e) {
|
|
2845
|
-
case "Not-Started":
|
|
2846
|
-
return /* @__PURE__ */ t.jsx(Zo, {});
|
|
2847
|
-
case "In-Progress":
|
|
2848
|
-
return /* @__PURE__ */ t.jsx(
|
|
2849
|
-
vt,
|
|
2850
|
-
{
|
|
2851
|
-
size: "Small",
|
|
2852
|
-
start: !0,
|
|
2853
|
-
style: {
|
|
2854
|
-
alignItems: "center",
|
|
2855
|
-
display: "flex"
|
|
2856
|
-
}
|
|
2857
|
-
}
|
|
2858
|
-
);
|
|
2859
|
-
case "Completed":
|
|
2860
|
-
return /* @__PURE__ */ t.jsx(Wn, {});
|
|
2861
|
-
default:
|
|
2862
|
-
return /* @__PURE__ */ t.jsx(Zo, {});
|
|
2863
|
-
}
|
|
2864
|
-
}, Oa = (e) => {
|
|
2865
|
-
switch (e) {
|
|
2866
|
-
case "Not-Started":
|
|
2867
|
-
return be.detectDuplicates;
|
|
2868
|
-
case "In-Progress":
|
|
2869
|
-
return be.detectingDuplicates;
|
|
2870
|
-
case "Completed":
|
|
2871
|
-
return be.noDuplicatesFound;
|
|
2872
|
-
default:
|
|
2873
|
-
return be.detectDuplicates;
|
|
2874
|
-
}
|
|
2875
|
-
}, Pa = ({
|
|
2876
|
-
submitFetchState: e,
|
|
2877
|
-
duplicateReimbursementStatus: i,
|
|
2878
|
-
hasDuplicateLine: a,
|
|
2879
|
-
numberOfDuplicateLines: d,
|
|
2880
|
-
setShowDuplicatePopup: p,
|
|
2881
|
-
analytics: v,
|
|
2882
|
-
reimbursementId: m,
|
|
2883
|
-
submitReport: S,
|
|
2884
|
-
fetchDuplicateReimbursement: x,
|
|
2885
|
-
clearDuplicateReimbursementDetail: l,
|
|
2886
|
-
clearRemiSaveStatus: C
|
|
2887
|
-
}) => {
|
|
2888
|
-
const b = ze(), [c, y] = It.useState(!0), $ = mo(e), O = mo(
|
|
2889
|
-
i
|
|
2890
|
-
);
|
|
2891
|
-
It.useEffect(() => {
|
|
2892
|
-
setTimeout(() => {
|
|
2893
|
-
c && (y(!1), i === "Not-Started" && x());
|
|
2894
|
-
}, 2e3);
|
|
2895
|
-
}, [
|
|
2896
|
-
i,
|
|
2897
|
-
x,
|
|
2898
|
-
c
|
|
2899
|
-
]), It.useEffect(() => {
|
|
2900
|
-
$ === "In-Progress" && e === "Completed" && (l(), p(!1));
|
|
2901
|
-
}, [
|
|
2902
|
-
e,
|
|
2903
|
-
$,
|
|
2904
|
-
p,
|
|
2905
|
-
l
|
|
2906
|
-
]), It.useEffect(() => {
|
|
2907
|
-
O === "In-Progress" && i === "Completed" && !a && S();
|
|
2908
|
-
}, [
|
|
2909
|
-
O,
|
|
2910
|
-
i,
|
|
2911
|
-
a,
|
|
2912
|
-
S
|
|
2913
|
-
]);
|
|
2914
|
-
const T = i === "Error" || e === "Error";
|
|
2915
|
-
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2916
|
-
T ? (
|
|
2917
|
-
//onClick will be automatically handled by the ClickAwayListener inside ConfirmationPopup component
|
|
2918
|
-
/* @__PURE__ */ t.jsx(Ba, { size: b })
|
|
2919
|
-
) : null,
|
|
2920
|
-
/* @__PURE__ */ t.jsx(
|
|
2921
|
-
wo,
|
|
2922
|
-
{
|
|
2923
|
-
action: {
|
|
2924
|
-
onOkClick: () => {
|
|
2925
|
-
T ? (l(), e === "Error" && C(), y(!0)) : (v?.trackReimbursementReviewDuplicateReportReimbursement(
|
|
2926
|
-
d,
|
|
2927
|
-
m
|
|
2928
|
-
), p(!1), Ir());
|
|
2929
|
-
},
|
|
2930
|
-
onCancelClick: () => {
|
|
2931
|
-
T ? (l(), e === "Error" && C(), p(!1)) : (v?.trackReimbursementSubmitAnywayDuplicateReimbursement(
|
|
2932
|
-
d,
|
|
2933
|
-
m
|
|
2934
|
-
), S());
|
|
2935
|
-
}
|
|
2936
|
-
},
|
|
2937
|
-
shouldClickAway: T,
|
|
2938
|
-
isSecondaryLoading: e === "In-Progress",
|
|
2939
|
-
secondaryButtonVariant: "secondary",
|
|
2940
|
-
primaryButtonText: T ? Jo.resubmit : be.primaryButtonText,
|
|
2941
|
-
secondaryButtonText: T ? Jo.cancel : be.secondaryButtonText,
|
|
2942
|
-
primaryButtonWidth: T ? Oe.cancelButtonWidth.value(b) : Oe.submitButtonWidth.value(b),
|
|
2943
|
-
secondaryButtonWidth: T ? Oe.cancelButtonWidth.value(b) : Oe.submitButtonWidth.value(b),
|
|
2944
|
-
descriptionComponent: /* @__PURE__ */ t.jsx(Ma, { size: b, children: /* @__PURE__ */ t.jsxs(
|
|
2945
|
-
Aa,
|
|
2946
|
-
{
|
|
2947
|
-
hasDuplicate: a,
|
|
2948
|
-
duplicateReimbursementStatus: i,
|
|
2949
|
-
children: [
|
|
2950
|
-
/* @__PURE__ */ t.jsxs(no, { isDisabled: !1, isSuccess: !c, children: [
|
|
2951
|
-
c ? /* @__PURE__ */ t.jsx(
|
|
2952
|
-
vt,
|
|
2953
|
-
{
|
|
2954
|
-
size: "Small",
|
|
2955
|
-
start: !0,
|
|
2956
|
-
style: {
|
|
2957
|
-
alignItems: "center",
|
|
2958
|
-
display: "flex"
|
|
2959
|
-
}
|
|
2960
|
-
}
|
|
2961
|
-
) : /* @__PURE__ */ t.jsx(Wn, {}),
|
|
2962
|
-
/* @__PURE__ */ t.jsx(oo, { isDisabled: !1, children: c ? be.reviewingExpenses : be.reviewedAllExpenses })
|
|
2963
|
-
] }),
|
|
2964
|
-
a || i === "Error" ? /* @__PURE__ */ t.jsxs(tn, { size: b, children: [
|
|
2965
|
-
/* @__PURE__ */ t.jsx(Xo, {}),
|
|
2966
|
-
/* @__PURE__ */ t.jsx(en, { children: i === "Error" ? be.failedToDetect : `${d} ${be.duplicateExpensesFound}` })
|
|
2967
|
-
] }) : /* @__PURE__ */ t.jsxs(
|
|
2968
|
-
no,
|
|
2969
|
-
{
|
|
2970
|
-
isDisabled: i === "Not-Started",
|
|
2971
|
-
isSuccess: i === "Completed" && d === 0,
|
|
2972
|
-
children: [
|
|
2973
|
-
/* @__PURE__ */ t.jsx(Qo, { fetchState: i }),
|
|
2974
|
-
/* @__PURE__ */ t.jsx(
|
|
2975
|
-
oo,
|
|
2976
|
-
{
|
|
2977
|
-
isDisabled: i === "Not-Started",
|
|
2978
|
-
children: Oa(i)
|
|
2979
|
-
}
|
|
2980
|
-
)
|
|
2981
|
-
]
|
|
2982
|
-
}
|
|
2983
|
-
),
|
|
2984
|
-
e === "Error" ? /* @__PURE__ */ t.jsxs(tn, { size: b, children: [
|
|
2985
|
-
/* @__PURE__ */ t.jsx(Xo, {}),
|
|
2986
|
-
/* @__PURE__ */ t.jsx(en, { children: be.failedToSubmit })
|
|
2987
|
-
] }) : a || i === "Error" ? null : /* @__PURE__ */ t.jsxs(
|
|
2988
|
-
no,
|
|
2989
|
-
{
|
|
2990
|
-
isDisabled: e === "Not-Started",
|
|
2991
|
-
isSuccess: e === "Completed",
|
|
2992
|
-
children: [
|
|
2993
|
-
/* @__PURE__ */ t.jsx(Qo, { fetchState: e }),
|
|
2994
|
-
/* @__PURE__ */ t.jsx(oo, { isDisabled: e === "Not-Started", children: e === "Not-Started" ? be.submitReport : be.submittingReport })
|
|
2995
|
-
]
|
|
2996
|
-
}
|
|
2997
|
-
)
|
|
2998
|
-
]
|
|
2999
|
-
}
|
|
3000
|
-
) }),
|
|
3001
|
-
titleComponent: /* @__PURE__ */ t.jsx(La, { size: b, children: be.title }),
|
|
3002
|
-
showFooter: a || T,
|
|
3003
|
-
containerStyle: {
|
|
3004
|
-
width: Oe.containerWidth.value(b),
|
|
3005
|
-
maxWidth: "unset"
|
|
3006
|
-
}
|
|
3007
|
-
}
|
|
3008
|
-
)
|
|
3009
|
-
] });
|
|
3010
|
-
}, Ba = n(On)`
|
|
3011
|
-
width: ${o.sp4};
|
|
3012
|
-
height: ${o.sp4};
|
|
3013
|
-
color: ${(e) => e.theme.colors.hero};
|
|
3014
|
-
position: fixed;
|
|
3015
|
-
top: 19px;
|
|
3016
|
-
right: ${(e) => Oe.styledCloseIconRight.valuePx(e.size)};
|
|
3017
|
-
z-index: 11;
|
|
3018
|
-
cursor: pointer;
|
|
3019
|
-
&:hover {
|
|
3020
|
-
color: ${(e) => e.theme.colors.primary};
|
|
3021
|
-
}
|
|
3022
|
-
`, Xo = n(Pr)`
|
|
3023
|
-
width: ${o.sp4};
|
|
3024
|
-
height: ${o.sp4};
|
|
3025
|
-
min-width: ${o.sp4};
|
|
3026
|
-
color: ${I.brandColorGoldDark};
|
|
3027
|
-
`, Zo = n(Jr)`
|
|
3028
|
-
width: ${o.sp3};
|
|
3029
|
-
height: ${o.sp3};
|
|
3030
|
-
min-width: ${o.sp3};
|
|
3031
|
-
color: ${(e) => e.theme.colors.grey3};
|
|
3032
|
-
`, oo = n.div`
|
|
3033
|
-
color: ${(e) => e.isDisabled ? e.theme.colors.grey2 : e.theme.colors.primary};
|
|
3034
|
-
text-align: left;
|
|
3035
|
-
`, en = n.div`
|
|
3036
|
-
color: ${I.brandColorGoldDark};
|
|
3037
|
-
`, no = n.div`
|
|
3038
|
-
display: flex;
|
|
3039
|
-
align-items: center;
|
|
3040
|
-
gap: ${(e) => e.isSuccess ? o.sp2 : o.sp3};
|
|
3041
|
-
border: 1px solid
|
|
3042
|
-
${(e) => e.isDisabled ? e.theme.colors.grey3 : e.theme.colors.primary};
|
|
3043
|
-
padding: ${o.sp3};
|
|
3044
|
-
border-radius: ${o.sp2};
|
|
3045
|
-
`, Aa = n.div`
|
|
3046
|
-
display: flex;
|
|
3047
|
-
flex-direction: column;
|
|
3048
|
-
gap: ${o.sp3};
|
|
3049
|
-
margin-bottom: ${(e) => e.hasDuplicate || e.duplicateReimbursementStatus === "Error" ? 0 : o.sp3};
|
|
3050
|
-
`, tn = n.div`
|
|
3051
|
-
display: flex;
|
|
3052
|
-
align-items: center;
|
|
3053
|
-
gap: ${(e) => Oe.errorLineItemGap.valuePx(e.size)};
|
|
3054
|
-
border: 1px solid ${(e) => e.theme.colors.brandColorGold};
|
|
3055
|
-
background-color: ${I.alertLight};
|
|
3056
|
-
padding: ${o.sp3};
|
|
3057
|
-
border-radius: ${o.sp2};
|
|
3058
|
-
text-align: left;
|
|
3059
|
-
`, La = n($o)`
|
|
3060
|
-
margin-top: ${(e) => Oe.confirmationPopUpTitleMarginTop.valuePx(e.size)};
|
|
3061
|
-
padding-left: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
3062
|
-
padding-right: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
3063
|
-
color: ${(e) => e.theme.colors.primary};
|
|
3064
|
-
word-break: break-word;
|
|
3065
|
-
width: ${(e) => e.size === "small" ? "max-content" : "-webkit-fill-available"};
|
|
3066
|
-
`, Ma = n(xn)`
|
|
3067
|
-
color: ${(e) => e.theme.colors.hero};
|
|
3068
|
-
padding-left: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
3069
|
-
padding-right: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
3070
|
-
margin-bottom: ${o.sp5};
|
|
3071
|
-
margin-top: ${o.sp4};
|
|
3072
|
-
white-space: pre-line;
|
|
3073
|
-
width: -webkit-fill-available;
|
|
3074
|
-
`, Wn = n(Or)`
|
|
3075
|
-
width: ${o.sp4};
|
|
3076
|
-
height: ${o.sp4};
|
|
3077
|
-
min-width: ${o.sp4};
|
|
3078
|
-
color: ${I.success};
|
|
3079
|
-
`, ee = {
|
|
3080
|
-
rightMargin: new s(r[3], r[8]),
|
|
3081
|
-
leftMargin: new s(r[3], r[6]),
|
|
3082
|
-
bottomMargin: new s(56, 56),
|
|
3083
|
-
closeMarginTop: new s(0, 19),
|
|
3084
|
-
closeMarginRight: new s(r[3], r[8]),
|
|
3085
|
-
rightSectionWidth: new s(100, 58),
|
|
3086
|
-
leftSectionWidth: new s(100, 42),
|
|
3087
|
-
footerButtonWidth: new s(120, 165),
|
|
3088
|
-
right: new s(r[3], r[0]),
|
|
3089
|
-
actionsContainerRight: new s(r[0], r[6]),
|
|
3090
|
-
otherActionsContainerBottom: new s(58, 44),
|
|
3091
|
-
duplicateBannerWrapperMarginTop: new s(r[5], r[3]),
|
|
3092
|
-
duplicateBannerWrapperMarginRight: new s(r[3], r[8]),
|
|
3093
|
-
duplicateBannerWrapperMarginBottom: new s(r[5], r[3]),
|
|
3094
|
-
duplicateBannerWrapperMarginLeft: new s(r[3], r[6]),
|
|
3095
|
-
navBarWidth: new s(100, 58)
|
|
3096
|
-
}, {
|
|
3097
|
-
spendManagement: {
|
|
3098
|
-
reimbursement: { reimbursementDetail: f, bulkActions: on }
|
|
3099
|
-
},
|
|
3100
|
-
common: {
|
|
3101
|
-
currency: { currencyCode: Ee, currencySymbol: Lt },
|
|
3102
|
-
texts: { comments: Ra },
|
|
3103
|
-
strings: { empty: za }
|
|
3104
|
-
},
|
|
3105
|
-
collaboration: {
|
|
3106
|
-
threads: {
|
|
3107
|
-
placeholder: { addANewComment: Fa, replyAComment: Na },
|
|
3108
|
-
tooltip: { resolveComment: Wa, unResolveComment: Ea }
|
|
3109
|
-
}
|
|
3110
|
-
},
|
|
3111
|
-
dateFormat: nn
|
|
3112
|
-
} = we.getLocalizedStrings(), rn = "editReimbursementDetailPage", an = (e) => `${e}_form`, Va = (e, i, a, d, p, v, m, S, x) => {
|
|
3113
|
-
const l = e.outOfPocket, C = e.mileage, b = l.merchant, c = l.recommendations;
|
|
3114
|
-
return {
|
|
3115
|
-
lineIndex: v,
|
|
3116
|
-
lineId: e?.lineId ?? String(v + 1),
|
|
3117
|
-
reimbursementType: e?.type ?? f.outOfPocketKey,
|
|
3118
|
-
file: e?.file,
|
|
3119
|
-
homeCurrencyConversions: {
|
|
3120
|
-
amount: e?.homeCurrencyConversions?.amount ?? 0,
|
|
3121
|
-
currencyCode: e?.homeCurrencyConversions?.currencyCode ?? m.currencyCode,
|
|
3122
|
-
currencySymbol: e?.homeCurrencyConversions?.currencySymbol ?? m.currencySymbol
|
|
3123
|
-
},
|
|
3124
|
-
outOfPocket: {
|
|
3125
|
-
recommendedAccount: l.recommendedAccount,
|
|
3126
|
-
//account to show in update to checkbox
|
|
3127
|
-
isCategoryUpdateSelected: l.isCategoryUpdateSelected ?? !1,
|
|
3128
|
-
//update to checkbox is ticked
|
|
3129
|
-
isCategoryFirstTimeAutofilled: l.isCategoryFirstTimeAutofilled ?? !1,
|
|
3130
|
-
retainedAccount: l.retainedAccount,
|
|
3131
|
-
//account to show in retain checkbox
|
|
3132
|
-
isRetainedCategorySelected: l.isRetainedCategorySelected ?? !1,
|
|
3133
|
-
//retain checkbox is selected
|
|
3134
|
-
recommendations: c ?? [],
|
|
3135
|
-
transactionDate: l?.transactionDate?.toDate() ?? void 0,
|
|
3136
|
-
class: {
|
|
3137
|
-
allOptions: Ue(
|
|
3138
|
-
Ye(a, [])
|
|
3139
|
-
),
|
|
3140
|
-
selectedOption: l?.lineDetail?.class?.classId ?? x
|
|
3141
|
-
},
|
|
3142
|
-
account: {
|
|
3143
|
-
allOptions: Ue(
|
|
3144
|
-
Et(i, c)
|
|
3145
|
-
),
|
|
3146
|
-
selectedOption: l.lineDetail?.account?.qboId ?? l.lineDetail?.account?.accountId
|
|
3147
|
-
},
|
|
3148
|
-
amount: {
|
|
3149
|
-
amount: l?.amount ?? 0,
|
|
3150
|
-
currencyCode: l?.currencyCode ?? m.currencyCode,
|
|
3151
|
-
currencySymbol: l?.currencySymbol ?? m.currencySymbol,
|
|
3152
|
-
currency: {
|
|
3153
|
-
allOptions: S.map((y) => ({
|
|
3154
|
-
label: `${y.currencyCode} - ${y.currency}`,
|
|
3155
|
-
value: y.currencyCode,
|
|
3156
|
-
countryCode: bo(
|
|
3157
|
-
y.countryCode
|
|
3158
|
-
)
|
|
3159
|
-
})),
|
|
3160
|
-
selectedOption: l?.currencyCode ?? m.currencyCode ?? Ee
|
|
3161
|
-
}
|
|
3162
|
-
},
|
|
3163
|
-
memo: l?.description ?? void 0,
|
|
3164
|
-
merchant: {
|
|
3165
|
-
allOptions: d.map((y) => y.id).filter((y) => !!y),
|
|
3166
|
-
selectedOption: b?.id ? b?.id : b?.name ? b?.name : e?.lineId != null ? p[e?.lineId] : void 0
|
|
3167
|
-
}
|
|
3168
|
-
},
|
|
3169
|
-
mileage: {
|
|
3170
|
-
transactionDate: C?.transactionDate?.toDate(),
|
|
3171
|
-
class: {
|
|
3172
|
-
allOptions: Ue(
|
|
3173
|
-
Ye(a, [])
|
|
3174
|
-
),
|
|
3175
|
-
selectedOption: C?.lineDetail?.class?.classId
|
|
3176
|
-
},
|
|
3177
|
-
distanceInMiles: C?.distanceMileage?.value,
|
|
3178
|
-
amount: {
|
|
3179
|
-
amount: C?.amount ?? 0,
|
|
3180
|
-
currencyCode: C?.currencyCode ?? m.currencyCode,
|
|
3181
|
-
currencySymbol: C?.currencySymbol ?? m.currencySymbol
|
|
3182
|
-
},
|
|
3183
|
-
memo: C?.description
|
|
3184
|
-
}
|
|
3185
|
-
};
|
|
3186
|
-
}, ro = (e, i, a) => {
|
|
3187
|
-
const d = [];
|
|
3188
|
-
return Object.values(e.lineDetailSection).forEach(
|
|
3189
|
-
(p, v) => {
|
|
3190
|
-
p?.lineId != null && d.push(
|
|
3191
|
-
Va(
|
|
3192
|
-
p,
|
|
3193
|
-
e.accountsHierarchyList,
|
|
3194
|
-
e.classHierarchyList,
|
|
3195
|
-
e.merchantList.merchants,
|
|
3196
|
-
e.tentativeMerchantNameByLineId,
|
|
3197
|
-
v,
|
|
3198
|
-
i,
|
|
3199
|
-
e.allCurrencies,
|
|
3200
|
-
e.loggedInUserDepartmentId
|
|
3201
|
-
)
|
|
3202
|
-
);
|
|
3203
|
-
}
|
|
3204
|
-
), d.length === 0 && d.push(
|
|
3205
|
-
Nn(
|
|
3206
|
-
0,
|
|
3207
|
-
"1",
|
|
3208
|
-
e.accountsHierarchyList,
|
|
3209
|
-
e.classHierarchyList,
|
|
3210
|
-
e.merchantList.merchants,
|
|
3211
|
-
i,
|
|
3212
|
-
e.allCurrencies,
|
|
3213
|
-
e.loggedInUserDepartmentId
|
|
3214
|
-
)
|
|
3215
|
-
), {
|
|
3216
|
-
[Nt]: {
|
|
3217
|
-
reportTitle: e.whatForSection.reportTitle
|
|
3218
|
-
},
|
|
3219
|
-
[So]: d,
|
|
3220
|
-
[wt]: {
|
|
3221
|
-
selectedOption: e.paymentTo,
|
|
3222
|
-
allOptions: a.map((p) => p.bankAccountId)
|
|
3223
|
-
}
|
|
3224
|
-
};
|
|
3225
|
-
}, io = (e, i) => {
|
|
3226
|
-
const a = (d) => d.lineId == null || i[d.lineId]?.fetchState === "In-Progress" ? 0 : (i[d.lineId]?.fetchState === "Completed", d.type === f.mileageKey ? d?.mileage?.amount ?? 0 : d?.outOfPocket?.currencyCode !== Ee && d.homeCurrencyConversions?.amount !== d?.outOfPocket?.amount ? d.homeCurrencyConversions?.amount ?? 0 : d?.outOfPocket?.amount ?? 0);
|
|
3227
|
-
return Object.values(e).reduce((d, p) => d + a(p), 0);
|
|
3228
|
-
}, ao = (e, i, a, d, p, v, m, S) => {
|
|
3229
|
-
const x = {};
|
|
3230
|
-
return e.lineInfo.forEach((l) => {
|
|
3231
|
-
const C = S.find(
|
|
3232
|
-
(O) => O.classId === l.mileage.class.selectedOption
|
|
3233
|
-
), b = m.find(
|
|
3234
|
-
(O) => O.qboId === l.outOfPocket.account.selectedOption || O.accountId === l.outOfPocket.account.selectedOption
|
|
3235
|
-
), c = S.find(
|
|
3236
|
-
(O) => O.classId === l.outOfPocket.class.selectedOption
|
|
3237
|
-
), y = i.find(
|
|
3238
|
-
(O) => O.id === l.outOfPocket.merchant.selectedOption
|
|
3239
|
-
), $ = v.find(
|
|
3240
|
-
(O) => O.currencyCode === l.outOfPocket.amount?.currency.selectedOption
|
|
3241
|
-
)?.currencySymbol;
|
|
3242
|
-
x[l.lineId] = {
|
|
3243
|
-
fileId: l.file?.fileId,
|
|
3244
|
-
lineId: l.lineId,
|
|
3245
|
-
type: l.reimbursementType,
|
|
3246
|
-
homeCurrencyConversions: l.homeCurrencyConversions ?? {
|
|
3247
|
-
amount: 0,
|
|
3248
|
-
currencyCode: "USD",
|
|
3249
|
-
currencySymbol: "$"
|
|
3250
|
-
},
|
|
3251
|
-
mileage: {
|
|
3252
|
-
description: l.mileage.memo ?? "",
|
|
3253
|
-
lineDetail: {
|
|
3254
|
-
class: C
|
|
3255
|
-
},
|
|
3256
|
-
transactionDate: l.mileage.transactionDate != null ? it(l.mileage.transactionDate.toDateString()) : void 0,
|
|
3257
|
-
amount: l.mileage.amount?.amount ?? 0,
|
|
3258
|
-
currencyCode: l.mileage.amount?.currencyCode ?? $,
|
|
3259
|
-
currencySymbol: l.mileage.amount?.currencySymbol ?? $,
|
|
3260
|
-
distanceMileage: {
|
|
3261
|
-
unit: "miles",
|
|
3262
|
-
value: l.mileage.distanceInMiles ?? 0
|
|
3263
|
-
}
|
|
3264
|
-
},
|
|
3265
|
-
outOfPocket: {
|
|
3266
|
-
description: l.outOfPocket.memo ?? "",
|
|
3267
|
-
lineDetail: {
|
|
3268
|
-
class: c,
|
|
3269
|
-
account: b
|
|
3270
|
-
},
|
|
3271
|
-
transactionDate: l.outOfPocket.transactionDate != null ? it(l.outOfPocket.transactionDate.toDateString()) : void 0,
|
|
3272
|
-
amount: l.outOfPocket.amount?.amount ?? 0,
|
|
3273
|
-
currencyCode: l.outOfPocket.amount?.currency.selectedOption ?? $,
|
|
3274
|
-
currencySymbol: $,
|
|
3275
|
-
merchant: l.outOfPocket.merchant.selectedOption != null ? {
|
|
3276
|
-
id: y?.id ?? "",
|
|
3277
|
-
name: y?.name ?? l.outOfPocket.merchant.selectedOption
|
|
3278
|
-
} : void 0,
|
|
3279
|
-
recommendations: l.outOfPocket.recommendations,
|
|
3280
|
-
recommendedAccount: l.outOfPocket.recommendedAccount,
|
|
3281
|
-
isCategoryUpdateSelected: l.outOfPocket.isCategoryUpdateSelected,
|
|
3282
|
-
isCategoryFirstTimeAutofilled: l.outOfPocket.isCategoryFirstTimeAutofilled,
|
|
3283
|
-
isRetainedCategorySelected: l.outOfPocket.isRetainedCategorySelected,
|
|
3284
|
-
retainedAccount: l.outOfPocket.retainedAccount
|
|
3285
|
-
}
|
|
3286
|
-
};
|
|
3287
|
-
}), {
|
|
3288
|
-
whatForSection: {
|
|
3289
|
-
reportTitle: e.whatFor.reportTitle
|
|
3290
|
-
},
|
|
3291
|
-
updatesByLineId: x,
|
|
3292
|
-
totalAmount: {
|
|
3293
|
-
amount: d,
|
|
3294
|
-
...a
|
|
3295
|
-
},
|
|
3296
|
-
currencyConversionStateByLineId: p,
|
|
3297
|
-
paymentTo: e.paymentTo.selectedOption
|
|
3298
|
-
};
|
|
3299
|
-
}, Fl = ({
|
|
3300
|
-
remiDetails: e,
|
|
3301
|
-
authParams: i,
|
|
3302
|
-
defaultCurrency: a,
|
|
3303
|
-
companyMileageConfigInfo: d,
|
|
3304
|
-
uploadInvoiceEndPoint: p,
|
|
3305
|
-
isReimbursementCommentingEnabled: v,
|
|
3306
|
-
isUserAdmin: m,
|
|
3307
|
-
analytics: S,
|
|
3308
|
-
reimbursementId: x,
|
|
3309
|
-
plaidConnectionDetails: l,
|
|
3310
|
-
bankAccountCreationState: C,
|
|
3311
|
-
bankNameByRouting: b,
|
|
3312
|
-
bankAccounts: c,
|
|
3313
|
-
isSignedInUserReimbursementCreator: y,
|
|
3314
|
-
uncategorizedAccounts: $,
|
|
3315
|
-
bankAccountToCreate: O,
|
|
3316
|
-
fetchBankNameByRoutingStatus: T,
|
|
3317
|
-
onUserBankDetailsUpdated: P,
|
|
3318
|
-
onFetchBankName: H,
|
|
3319
|
-
onSaveBankAccount: B,
|
|
3320
|
-
fetchDuplicateReimbursement: k,
|
|
3321
|
-
clearDuplicateReimbursementDetail: M,
|
|
3322
|
-
clearRemiSaveStatus: te,
|
|
3323
|
-
removeDuplicateReimbursementForLine: ne,
|
|
3324
|
-
onDuplicateLineClick: re,
|
|
3325
|
-
onExistingMerchantChange: Y,
|
|
3326
|
-
onNewMerchantChange: K,
|
|
3327
|
-
onReceiptsUpload: F,
|
|
3328
|
-
saveRemiDetails: J,
|
|
3329
|
-
submitRemiDetails: q,
|
|
3330
|
-
discardReimbursementDetailsFromLocalStore: L,
|
|
3331
|
-
onReimbursementDetailsChanged: ce,
|
|
3332
|
-
updateReimbursementType: Q,
|
|
3333
|
-
onHomeCurrencyConversionUpdate: V,
|
|
3334
|
-
redirectToReimbursementListScreen: de,
|
|
3335
|
-
redirectToReimbursementDetailScreen: _e,
|
|
3336
|
-
deleteReimbursement: ue,
|
|
3337
|
-
removeFileFromLine: fe,
|
|
3338
|
-
onZeniLogoClick: le,
|
|
3339
|
-
onAmountChanged: Be,
|
|
3340
|
-
updateInvoiceUploadFetchState: Ae,
|
|
3341
|
-
clearTentativeNameForLine: Le,
|
|
3342
|
-
onAddNewRule: me,
|
|
3343
|
-
onFetchLinkTokenClick: Me,
|
|
3344
|
-
onEstablishConnectionClick: pe,
|
|
3345
|
-
deleteBankAccount: ve,
|
|
3346
|
-
onBackClickFromBankAccountPage: Je
|
|
3347
|
-
}) => {
|
|
3348
|
-
const h = bt(null), Ce = bt(null), he = mo(e.uploadStatus), He = $t(), Re = St(), [Qe, Fe] = X(!1), [Ke, Ge] = X(!1), [Xe, Ze] = X("save"), [ie, lt] = X(
|
|
3349
|
-
io(
|
|
3350
|
-
e.lineDetailSection,
|
|
3351
|
-
e.currencyConversionStatus
|
|
3352
|
-
)
|
|
3353
|
-
), [pt, et] = X(!1), [_, ht] = X(
|
|
3354
|
-
null
|
|
3355
|
-
), [W, se] = X(!1), Ct = `dashboard_${Re.currentTenant?.companyId}`, Te = un({
|
|
3356
|
-
mode: "all",
|
|
3357
|
-
reValidateMode: "onChange",
|
|
3358
|
-
defaultValues: xt(
|
|
3359
|
-
() => ro(e, a, c),
|
|
3360
|
-
[e, a, c]
|
|
3361
|
-
),
|
|
3362
|
-
values: xt(
|
|
3363
|
-
() => ro(e, a, c),
|
|
3364
|
-
[e, a, c]
|
|
3365
|
-
),
|
|
3366
|
-
resetOptions: {
|
|
3367
|
-
keepErrors: !0
|
|
3368
|
-
},
|
|
3369
|
-
shouldFocusError: !0
|
|
3370
|
-
}), { isDirty: R, dirtyFields: En } = Te.formState, Vn = async (g, j) => {
|
|
3371
|
-
const { lineInfo: u } = j, w = Number(g.split(".")[1]);
|
|
3372
|
-
if (g.includes("reportTitle") || g.includes("memo"))
|
|
3373
|
-
return;
|
|
3374
|
-
if (g.includes("reimbursementType")) {
|
|
3375
|
-
const z = u[w].mileage, E = u[w].outOfPocket;
|
|
3376
|
-
u[w] = {
|
|
3377
|
-
...u[w],
|
|
3378
|
-
outOfPocket: {
|
|
3379
|
-
transactionDate: E.transactionDate ?? void 0,
|
|
3380
|
-
class: {
|
|
3381
|
-
allOptions: E.class.allOptions ?? Ue(
|
|
3382
|
-
Ye(e.classHierarchyList, [])
|
|
3383
|
-
),
|
|
3384
|
-
selectedOption: E.class.selectedOption ?? void 0
|
|
3385
|
-
},
|
|
3386
|
-
account: {
|
|
3387
|
-
allOptions: E.account.allOptions ?? Ue(
|
|
3388
|
-
Et(e.accountsHierarchyList, [])
|
|
3389
|
-
),
|
|
3390
|
-
selectedOption: E.account.selectedOption ?? void 0
|
|
3391
|
-
},
|
|
3392
|
-
amount: E.amount ?? {
|
|
3393
|
-
amount: 0,
|
|
3394
|
-
currencyCode: a.currencyCode,
|
|
3395
|
-
currencySymbol: a.currencySymbol,
|
|
3396
|
-
currency: {
|
|
3397
|
-
allOptions: e.allCurrencies.map((ke) => ({
|
|
3398
|
-
label: `${ke.currencyCode} - ${ke.currency}`,
|
|
3399
|
-
value: ke.currencyCode,
|
|
3400
|
-
countryCode: bo(
|
|
3401
|
-
ke.countryCode
|
|
3402
|
-
)
|
|
3403
|
-
})),
|
|
3404
|
-
selectedOption: a.currencyCode ?? Ee
|
|
3405
|
-
}
|
|
3406
|
-
},
|
|
3407
|
-
memo: E.memo ?? void 0,
|
|
3408
|
-
merchant: E.merchant ?? void 0,
|
|
3409
|
-
recommendations: E.recommendations ?? [],
|
|
3410
|
-
recommendedAccount: E.recommendedAccount ?? void 0,
|
|
3411
|
-
isCategoryUpdateSelected: E.isCategoryUpdateSelected ?? !1,
|
|
3412
|
-
isCategoryFirstTimeAutofilled: E.isCategoryFirstTimeAutofilled ?? !1,
|
|
3413
|
-
retainedAccount: E.retainedAccount ?? void 0,
|
|
3414
|
-
isRetainedCategorySelected: E.isRetainedCategorySelected ?? !1
|
|
3415
|
-
},
|
|
3416
|
-
mileage: {
|
|
3417
|
-
transactionDate: z.transactionDate ?? void 0,
|
|
3418
|
-
class: {
|
|
3419
|
-
allOptions: z.class.allOptions ?? Ue(
|
|
3420
|
-
Ye(e.classHierarchyList, [])
|
|
3421
|
-
),
|
|
3422
|
-
selectedOption: z.class.selectedOption ?? e.loggedInUserDepartmentId
|
|
3423
|
-
},
|
|
3424
|
-
distanceInMiles: z.distanceInMiles,
|
|
3425
|
-
amount: {
|
|
3426
|
-
amount: z?.amount?.amount ?? 0,
|
|
3427
|
-
currencyCode: z?.amount?.currencyCode ?? Ee,
|
|
3428
|
-
currencySymbol: z?.amount?.currencySymbol ?? Lt
|
|
3429
|
-
},
|
|
3430
|
-
memo: z.memo ?? void 0
|
|
3431
|
-
}
|
|
3432
|
-
};
|
|
3433
|
-
} else if (g.includes("mileage.distanceInMiles")) {
|
|
3434
|
-
const { distanceInMiles: z } = u[w].mileage, E = d?.mileageUnitAmount ?? 0;
|
|
3435
|
-
u[w].mileage = {
|
|
3436
|
-
...u[w].mileage,
|
|
3437
|
-
amount: {
|
|
3438
|
-
amount: z != null ? z * E : 0,
|
|
3439
|
-
currencyCode: a.currencyCode,
|
|
3440
|
-
currencySymbol: a.currencySymbol
|
|
3441
|
-
}
|
|
3442
|
-
};
|
|
3443
|
-
} else if (g.includes("outOfPocket.amount") && u[w].lineId) {
|
|
3444
|
-
const z = u[w].outOfPocket.amount, E = e.allCurrencies.find(
|
|
3445
|
-
(ke) => ke.currencyCode === z?.currency.selectedOption
|
|
3446
|
-
)?.currencySymbol;
|
|
3447
|
-
if (z?.currencyCode !== z?.currency.selectedOption) {
|
|
3448
|
-
const ke = z?.currency?.allOptions || [];
|
|
3449
|
-
u[w].outOfPocket.amount = {
|
|
3450
|
-
currency: {
|
|
3451
|
-
allOptions: ke,
|
|
3452
|
-
selectedOption: z?.currency?.selectedOption
|
|
3453
|
-
},
|
|
3454
|
-
amount: u[w].outOfPocket?.amount?.amount ?? 0,
|
|
3455
|
-
currencyCode: z?.currency.selectedOption ?? Ee,
|
|
3456
|
-
currencySymbol: E ?? Lt
|
|
3457
|
-
};
|
|
3458
|
-
}
|
|
3459
|
-
if (z?.currency.selectedOption !== Ee)
|
|
3460
|
-
et(!0), Yn(u[w].lineId, Ee);
|
|
3461
|
-
else {
|
|
3462
|
-
const ke = {};
|
|
3463
|
-
u.forEach((Xt) => {
|
|
3464
|
-
ke[Xt.lineId] = {
|
|
3465
|
-
lineId: Xt.lineId,
|
|
3466
|
-
homeCurrencyConversions: Xt.homeCurrencyConversions
|
|
3467
|
-
};
|
|
3468
|
-
}), u[w].homeCurrencyConversions = {
|
|
3469
|
-
amount: z.amount ?? 0,
|
|
3470
|
-
currencyCode: z?.currency.selectedOption ?? Ee,
|
|
3471
|
-
currencySymbol: E ?? Lt
|
|
3472
|
-
};
|
|
3473
|
-
const jt = io(
|
|
3474
|
-
ke,
|
|
3475
|
-
e.currencyConversionStatus
|
|
3476
|
-
);
|
|
3477
|
-
ie !== jt && lt(jt);
|
|
3478
|
-
}
|
|
3479
|
-
} else if (g.includes("outOfPocket.isRetainedCategorySelected"))
|
|
3480
|
-
//retain checkbox is true
|
|
3481
|
-
u[w].outOfPocket.isRetainedCategorySelected === !0 && (u[w].outOfPocket.isCategoryUpdateSelected = !1, u[w].outOfPocket.account.selectedOption = u[w].outOfPocket.retainedAccount?.qboId);
|
|
3482
|
-
else if (g.includes("outOfPocket.isCategoryUpdateSelected"))
|
|
3483
|
-
if (
|
|
3484
|
-
//update to checkbox is true
|
|
3485
|
-
u[w].outOfPocket.isCategoryUpdateSelected === !0
|
|
3486
|
-
)
|
|
3487
|
-
u[w].outOfPocket.account.selectedOption = u[w].outOfPocket.recommendedAccount?.qboId, u[w].outOfPocket.isRetainedCategorySelected = !1;
|
|
3488
|
-
else {
|
|
3489
|
-
const z = u[w].lineId, E = e.editRemiInitialDetails.lineDetailSection[z]?.lineDetail?.account?.qboId;
|
|
3490
|
-
u[w].outOfPocket.account.selectedOption = E, u[w].outOfPocket.isRetainedCategorySelected = !1;
|
|
3491
|
-
}
|
|
3492
|
-
else g.includes("outOfPocket.account") && (u[w].outOfPocket.recommendations.length > 0 && (u[w].outOfPocket.recommendedAccount = u[w].outOfPocket.recommendations[0].account), //account value is same as update to checkbox
|
|
3493
|
-
u[w].outOfPocket.recommendedAccount?.qboId != null && u[w].outOfPocket.account.selectedOption === u[w].outOfPocket.recommendedAccount?.qboId ? u[w].outOfPocket.isCategoryUpdateSelected = !0 : u[w].outOfPocket.isCategoryUpdateSelected = !1, //account value is same as retain to checkbox
|
|
3494
|
-
u[w].outOfPocket.retainedAccount?.qboId != null && u[w].outOfPocket.account.selectedOption === u[w].outOfPocket.retainedAccount?.qboId ? u[w].outOfPocket.isRetainedCategorySelected = !0 : u[w].outOfPocket.isRetainedCategorySelected = !1, u[w].outOfPocket.isCategoryFirstTimeAutofilled = !1);
|
|
3495
|
-
const kt = ao(
|
|
3496
|
-
{ ...j, lineInfo: u },
|
|
3497
|
-
e.merchantList.merchants,
|
|
3498
|
-
a,
|
|
3499
|
-
ie,
|
|
3500
|
-
e.currencyConversionStatus,
|
|
3501
|
-
e.allCurrencies,
|
|
3502
|
-
e.accountList.accounts,
|
|
3503
|
-
e.classList.classes
|
|
3504
|
-
);
|
|
3505
|
-
if (ce?.(kt), g.includes("outOfPocket.merchant")) {
|
|
3506
|
-
const z = u[w].lineId, E = u[w].outOfPocket.merchant.selectedOption ?? "";
|
|
3507
|
-
u[w].outOfPocket.merchant.allOptions.find(
|
|
3508
|
-
(jt) => jt === E
|
|
3509
|
-
) != null ? Y(E, z) : K(E, z);
|
|
3510
|
-
}
|
|
3511
|
-
}, vo = xt(
|
|
3512
|
-
() => Bo((g, j) => Vn(g, j), 300),
|
|
3513
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3514
|
-
[
|
|
3515
|
-
//these needs to be added because these fetchState were coming as "In-Progress" because of debounce
|
|
3516
|
-
e.accountList.fetchState,
|
|
3517
|
-
e.classList.fetchState,
|
|
3518
|
-
e.merchantList.fetchState
|
|
3519
|
-
]
|
|
3520
|
-
);
|
|
3521
|
-
ye(() => {
|
|
3522
|
-
const g = Te.watch((j, { name: u }) => {
|
|
3523
|
-
u != null && j != null && vo(u, j);
|
|
3524
|
-
});
|
|
3525
|
-
return () => {
|
|
3526
|
-
g.unsubscribe();
|
|
3527
|
-
};
|
|
3528
|
-
}, [vo, Te]), ye(() => {
|
|
3529
|
-
const g = hr(
|
|
3530
|
-
Object.values(e.currencyConversionStatus)
|
|
3531
|
-
), j = g.fetchState === "In-Progress" || g.fetchState === "Error";
|
|
3532
|
-
et(j);
|
|
3533
|
-
}, [e.currencyConversionStatus]), ye(() => {
|
|
3534
|
-
for (const j in e.currencyConversionStatus) {
|
|
3535
|
-
const u = e.lineDetailSection[j], w = e.lineDetailSection[j];
|
|
3536
|
-
e.currencyConversionStatus[j].fetchState === "Completed" && w != null && u.type !== f.mileageKey && !dn(
|
|
3537
|
-
u?.homeCurrencyConversions,
|
|
3538
|
-
w.homeCurrencyConversions
|
|
3539
|
-
) && V(
|
|
3540
|
-
{
|
|
3541
|
-
amount: u?.homeCurrencyConversions?.amount ?? 0,
|
|
3542
|
-
currencyCode: u?.homeCurrencyConversions?.currencyCode ?? Ee,
|
|
3543
|
-
currencySymbol: u?.homeCurrencyConversions?.currencySymbol ?? Lt
|
|
3544
|
-
},
|
|
3545
|
-
j,
|
|
3546
|
-
x
|
|
3547
|
-
);
|
|
3548
|
-
}
|
|
3549
|
-
const g = io(
|
|
3550
|
-
e.lineDetailSection,
|
|
3551
|
-
e.currencyConversionStatus
|
|
3552
|
-
);
|
|
3553
|
-
ie !== g && lt(g);
|
|
3554
|
-
}, [e.currencyConversionStatus, e.lineDetailSection]), ye(() => {
|
|
3555
|
-
(e.saveStatus?.fetchState === "Completed" || e.deleteStatus.fetchState === "Completed") && (L(x), de?.());
|
|
3556
|
-
}, [
|
|
3557
|
-
e.saveStatus?.fetchState,
|
|
3558
|
-
e.deleteStatus.fetchState,
|
|
3559
|
-
x,
|
|
3560
|
-
L,
|
|
3561
|
-
de
|
|
3562
|
-
]);
|
|
3563
|
-
const A = ze(), [Ne, gt] = X(
|
|
3564
|
-
x == null
|
|
3565
|
-
), [yt, _n] = X(1), [Dn, Dt] = X(!1), [qn, Un] = X(""), [qt, Hn] = X(null), [Kn, st] = X(!1), [Gn, Co] = X(!1), [Ut, Ht] = X([]), [xe, Tt] = X({
|
|
3566
|
-
title: "",
|
|
3567
|
-
description: "",
|
|
3568
|
-
primaryButtonText: "",
|
|
3569
|
-
secondaryButtonText: ""
|
|
3570
|
-
}), Yn = bt(
|
|
3571
|
-
Bo(
|
|
3572
|
-
(g, j) => Be(g, j),
|
|
3573
|
-
500,
|
|
3574
|
-
{
|
|
3575
|
-
trailing: !0
|
|
3576
|
-
}
|
|
3577
|
-
)
|
|
3578
|
-
).current;
|
|
3579
|
-
ye(() => {
|
|
3580
|
-
he === "In-Progress" && (e.uploadStatus === "Completed" ? (Te.reset(
|
|
3581
|
-
ro(e, a, c),
|
|
3582
|
-
{ keepDefaultValues: !0 }
|
|
3583
|
-
), Fe(!1), gt(!1)) : e.uploadStatus === "Error" && Fe(!1));
|
|
3584
|
-
}, [
|
|
3585
|
-
he,
|
|
3586
|
-
e.uploadStatus,
|
|
3587
|
-
Te,
|
|
3588
|
-
e,
|
|
3589
|
-
Qe,
|
|
3590
|
-
Fe,
|
|
3591
|
-
Ne,
|
|
3592
|
-
a,
|
|
3593
|
-
c,
|
|
3594
|
-
S
|
|
3595
|
-
]), ye(() => {
|
|
3596
|
-
e.uploadStatus === "In-Progress" && Ne === !1 && Fe(!0);
|
|
3597
|
-
}, [e.uploadStatus, Fe, Ne]);
|
|
3598
|
-
const Kt = e.remiStage === "draft" ? f.newReimbursementTitle : f.editReimbursementTitle, Jn = {
|
|
3599
|
-
onOkClick: () => {
|
|
3600
|
-
if (st(!1), xe.primaryButtonText === f.buttons.discard)
|
|
3601
|
-
L(x), e.remiStage === "draft" ? de?.() : _e?.();
|
|
3602
|
-
else if (xe.primaryButtonText === f.buttons.delete)
|
|
3603
|
-
xe.title === f.deleteBankAccountTitle ? ve?.(qn) : ue?.();
|
|
3604
|
-
else if (xe.primaryButtonText === f.buttons.yes && qt != null) {
|
|
3605
|
-
const g = Ut.filter(
|
|
3606
|
-
(j) => j !== yt.toString()
|
|
3607
|
-
);
|
|
3608
|
-
Ht(
|
|
3609
|
-
g
|
|
3610
|
-
), F(qt, yt, !0);
|
|
3611
|
-
}
|
|
3612
|
-
},
|
|
3613
|
-
onCancelClick: () => {
|
|
3614
|
-
if (st(!1), xe.secondaryButtonText === f.buttons.no) {
|
|
3615
|
-
const g = Ut.filter(
|
|
3616
|
-
(j) => j !== yt.toString()
|
|
3617
|
-
);
|
|
3618
|
-
Ht(
|
|
3619
|
-
g
|
|
3620
|
-
), F(
|
|
3621
|
-
qt,
|
|
3622
|
-
yt,
|
|
3623
|
-
!1
|
|
3624
|
-
);
|
|
3625
|
-
}
|
|
3626
|
-
}
|
|
3627
|
-
}, To = () => {
|
|
3628
|
-
R || Vr(En) ? (Tt({
|
|
3629
|
-
title: f.discardTitle,
|
|
3630
|
-
description: f.discardDescription,
|
|
3631
|
-
primaryButtonText: f.buttons.discard,
|
|
3632
|
-
secondaryButtonText: f.buttons.cancel
|
|
3633
|
-
}), st(!0)) : (L(x), de?.());
|
|
3634
|
-
}, Qn = () => {
|
|
3635
|
-
Tt({
|
|
3636
|
-
title: e.remiStage === "draft" ? f.deleteDraftTitle : f.deleteReportTitle,
|
|
3637
|
-
description: f.deleteAlertDescription,
|
|
3638
|
-
primaryButtonText: f.buttons.delete,
|
|
3639
|
-
secondaryButtonText: f.buttons.cancel
|
|
3640
|
-
}), st(!0);
|
|
3641
|
-
}, Xn = (g) => {
|
|
3642
|
-
Un(g), Tt({
|
|
3643
|
-
title: f.deleteBankAccountTitle,
|
|
3644
|
-
description: f.deleteBankAccountDescription,
|
|
3645
|
-
primaryButtonText: f.buttons.delete,
|
|
3646
|
-
secondaryButtonText: f.buttons.cancel
|
|
3647
|
-
}), st(!0);
|
|
3648
|
-
}, Zn = () => {
|
|
3649
|
-
Tt({
|
|
3650
|
-
title: f.overwriteTitle,
|
|
3651
|
-
description: f.overwriteDescription,
|
|
3652
|
-
primaryButtonText: f.buttons.yes,
|
|
3653
|
-
secondaryButtonText: f.buttons.no
|
|
3654
|
-
}), st(!0);
|
|
3655
|
-
}, er = () => {
|
|
3656
|
-
let g = !0;
|
|
3657
|
-
const j = [];
|
|
3658
|
-
return Object.values(e.lineDetailSection).forEach((u, w) => {
|
|
3659
|
-
u.type === f.outOfPocketKey && Mn(u) >= 75 && u.file == null && (j.push(u.lineId), g = !1);
|
|
3660
|
-
}), Ht(j), g;
|
|
3661
|
-
}, ko = () => {
|
|
3662
|
-
if (m && e.remiStage === "pending_approval" && e.remiStatus !== "rejected")
|
|
3663
|
-
To();
|
|
3664
|
-
else {
|
|
3665
|
-
Ze("save");
|
|
3666
|
-
const g = Te.getValues(), j = ao(
|
|
3667
|
-
g,
|
|
3668
|
-
e.merchantList.merchants,
|
|
3669
|
-
a,
|
|
3670
|
-
ie,
|
|
3671
|
-
e.currencyConversionStatus,
|
|
3672
|
-
e.allCurrencies,
|
|
3673
|
-
e.accountList.accounts,
|
|
3674
|
-
e.classList.classes
|
|
3675
|
-
);
|
|
3676
|
-
ce?.(j);
|
|
3677
|
-
const u = j.whatForSection?.reportTitle;
|
|
3678
|
-
u != null && u.length > 0 ? J(
|
|
3679
|
-
e.remiStatus === "rejected" ? "pending_approval" : "draft"
|
|
3680
|
-
) : Te.trigger(`${Nt}.reportTitle`, {
|
|
3681
|
-
shouldFocus: !0
|
|
3682
|
-
});
|
|
3683
|
-
}
|
|
3684
|
-
};
|
|
3685
|
-
let Gt = !1;
|
|
3686
|
-
Object.values(e.addRemiAutoFieldsByLineId).forEach((g) => {
|
|
3687
|
-
g.length > 0 && (Gt = !0);
|
|
3688
|
-
});
|
|
3689
|
-
let jo = [];
|
|
3690
|
-
if (e.remiId == null) {
|
|
3691
|
-
const g = ie ?? 0;
|
|
3692
|
-
g > 0 && (jo = e.approvalRules.allApprovalRules?.filter((j) => {
|
|
3693
|
-
const u = j.criteria[0].range;
|
|
3694
|
-
if (u.max != null) {
|
|
3695
|
-
if (u.min.amount < g && u.max.amount >= g)
|
|
3696
|
-
return j;
|
|
3697
|
-
} else if (u.min.amount < g)
|
|
3698
|
-
return j;
|
|
3699
|
-
return null;
|
|
3700
|
-
}).map((j) => ({
|
|
3701
|
-
...j,
|
|
3702
|
-
stepsWithStatus: j.steps.map((u) => ({
|
|
3703
|
-
...u,
|
|
3704
|
-
actorsActivity: [],
|
|
3705
|
-
isOriginalApprovalStep: !0
|
|
3706
|
-
})),
|
|
3707
|
-
isRealTimeApprovalEnabled: !1
|
|
3708
|
-
})));
|
|
3709
|
-
}
|
|
3710
|
-
const tr = (g) => {
|
|
3711
|
-
const j = er();
|
|
3712
|
-
return Te.handleSubmit(() => {
|
|
3713
|
-
j && (Ze("submit"), S?.trackReimbursementSubmitReimbursement(
|
|
3714
|
-
e.createTime?.format(
|
|
3715
|
-
nn.analytics.MMMDashDDDashYYYYFormat
|
|
3716
|
-
) ?? po().format(nn.analytics.MMMDashDDDashYYYYFormat),
|
|
3717
|
-
a.currencyCode,
|
|
3718
|
-
ie,
|
|
3719
|
-
x
|
|
3720
|
-
), M(), Co(!0));
|
|
3721
|
-
})(g);
|
|
3722
|
-
}, or = () => {
|
|
3723
|
-
const g = Te.getValues(), j = ao(
|
|
3724
|
-
g,
|
|
3725
|
-
e.merchantList.merchants,
|
|
3726
|
-
a,
|
|
3727
|
-
ie,
|
|
3728
|
-
e.currencyConversionStatus,
|
|
3729
|
-
e.allCurrencies,
|
|
3730
|
-
e.accountList.accounts,
|
|
3731
|
-
e.classList.classes
|
|
3732
|
-
);
|
|
3733
|
-
ce?.(j), q();
|
|
3734
|
-
}, nr = e.reimbursementInfo?.billStatus.code == "approved" && e.reimbursementInfo?.billPaymentStatus.code ? e.reimbursementInfo?.billPaymentStatus : e.reimbursementInfo?.billStatus, rr = e.reimbursementInfo?.paymentDate != null ? it(
|
|
3735
|
-
gn(
|
|
3736
|
-
e.reimbursementInfo.paymentDate.toDate(),
|
|
3737
|
-
[0, 6],
|
|
3738
|
-
e.achSameDayMaxDays
|
|
3739
|
-
).toDateString()
|
|
3740
|
-
) : void 0, ir = e.reimbursementInfo?.expectedDepositDate ?? rr, ar = x != null && e.remiStage === "draft", Io = qr(
|
|
3741
|
-
e.duplicateLineByLineId
|
|
3742
|
-
), Yt = e.duplicateReimbursementStatus.fetchState === "Completed" && Io > 0, { requestToOpenThread: Jt, setRequestToOpenThread: Oo, setOpenThread: Qt } = mr(Br), { threads: ft, isLoading: tt } = Ar(
|
|
3743
|
-
{
|
|
3744
|
-
application: "dashboard",
|
|
3745
|
-
companyId: Re.currentTenant?.companyId,
|
|
3746
|
-
tab: "reimbursement",
|
|
3747
|
-
entityId: x,
|
|
3748
|
-
// Use remiId here
|
|
3749
|
-
isGlobalComment: !1
|
|
3750
|
-
},
|
|
3751
|
-
"both",
|
|
3752
|
-
!1
|
|
3753
|
-
);
|
|
3754
|
-
ye(() => {
|
|
3755
|
-
Jt?.threadId != null && ft.length > 0 && !tt && (Qt(Jt.threadId), Oo(null));
|
|
3756
|
-
}, [
|
|
3757
|
-
Jt,
|
|
3758
|
-
ft,
|
|
3759
|
-
tt,
|
|
3760
|
-
Qt,
|
|
3761
|
-
Oo
|
|
3762
|
-
]);
|
|
3763
|
-
const lr = xt(() => x == null ? [] : ft.filter(
|
|
3764
|
-
(g) => g.resolved === !1 && !g.id.includes(Lr)
|
|
3765
|
-
), [ft, x]).length, sr = (g, j) => {
|
|
3766
|
-
Qt(j);
|
|
3767
|
-
const u = g.entityType.split("."), w = parseInt(u[2]);
|
|
3768
|
-
if (isNaN(w)) {
|
|
3769
|
-
se(!1);
|
|
3770
|
-
return;
|
|
3771
|
-
}
|
|
3772
|
-
const kt = `${w + 1}`, z = e.lineDetailSection[w + 1].type;
|
|
3773
|
-
u.includes(f.mileageKey) && z === f.outOfPocketKey ? Q(
|
|
3774
|
-
Lo(f.mileageKey),
|
|
3775
|
-
kt,
|
|
3776
|
-
x
|
|
3777
|
-
) : u.includes(f.outOfPocketKey) && z === f.mileageKey && Q(
|
|
3778
|
-
Lo(f.outOfPocketKey),
|
|
3779
|
-
kt,
|
|
3780
|
-
x
|
|
3781
|
-
), se(!1);
|
|
3782
|
-
};
|
|
3783
|
-
return /* @__PURE__ */ t.jsx(Da, { ref: h, children: /* @__PURE__ */ t.jsx(
|
|
3784
|
-
Mr,
|
|
3785
|
-
{
|
|
3786
|
-
sharedItems: {
|
|
3787
|
-
sharedFunctions: void 0,
|
|
3788
|
-
sharedRef: { contentWrapperRef: Ce.current ?? null }
|
|
3789
|
-
},
|
|
3790
|
-
children: /* @__PURE__ */ t.jsxs(mn, { ...Te, children: [
|
|
3791
|
-
/* @__PURE__ */ t.jsx(
|
|
3792
|
-
"form",
|
|
3793
|
-
{
|
|
3794
|
-
id: an(rn),
|
|
3795
|
-
onSubmit: (g) => tr(g),
|
|
3796
|
-
children: /* @__PURE__ */ t.jsxs(xl, { windowSize: A, ref: Ce, children: [
|
|
3797
|
-
Kn ? /* @__PURE__ */ t.jsx(
|
|
3798
|
-
wo,
|
|
3799
|
-
{
|
|
3800
|
-
titleComponent: /* @__PURE__ */ t.jsx(jn, { children: xe.title }),
|
|
3801
|
-
descriptionComponent: /* @__PURE__ */ t.jsx(kn, { children: xe.description }),
|
|
3802
|
-
primaryButtonText: xe.primaryButtonText,
|
|
3803
|
-
secondaryButtonText: xe.secondaryButtonText,
|
|
3804
|
-
action: Jn,
|
|
3805
|
-
proceedButtonVariant: xe.title === f.deleteBankAccountTitle || xe.title === f.deleteDraftTitle || xe.title === f.deleteReportTitle || xe.title === f.discardTitle ? "danger" : "primary",
|
|
3806
|
-
isEditPopup: xe.title === f.deleteBankAccountTitle
|
|
3807
|
-
}
|
|
3808
|
-
) : null,
|
|
3809
|
-
Gn ? /* @__PURE__ */ t.jsx(
|
|
3810
|
-
Pa,
|
|
3811
|
-
{
|
|
3812
|
-
reimbursementId: x,
|
|
3813
|
-
submitFetchState: e.saveStatus?.fetchState ?? "Not-Started",
|
|
3814
|
-
duplicateReimbursementStatus: e.duplicateReimbursementStatus.fetchState,
|
|
3815
|
-
hasDuplicateLine: Yt,
|
|
3816
|
-
numberOfDuplicateLines: Io,
|
|
3817
|
-
setShowDuplicatePopup: Co,
|
|
3818
|
-
submitReport: or,
|
|
3819
|
-
fetchDuplicateReimbursement: k,
|
|
3820
|
-
clearDuplicateReimbursementDetail: M,
|
|
3821
|
-
clearRemiSaveStatus: te,
|
|
3822
|
-
analytics: S
|
|
3823
|
-
}
|
|
3824
|
-
) : null,
|
|
3825
|
-
Qe ? /* @__PURE__ */ t.jsx(sn, { windowSize: A }) : null,
|
|
3826
|
-
Ne ? /* @__PURE__ */ t.jsxs(
|
|
3827
|
-
sn,
|
|
3828
|
-
{
|
|
3829
|
-
windowSize: A,
|
|
3830
|
-
"data-testid": U("skip-autofill-section"),
|
|
3831
|
-
children: [
|
|
3832
|
-
A === "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3833
|
-
/* @__PURE__ */ t.jsx(tl, { children: /* @__PURE__ */ t.jsx(
|
|
3834
|
-
co,
|
|
3835
|
-
{
|
|
3836
|
-
partOfSkipAutoFill: !0,
|
|
3837
|
-
size: A,
|
|
3838
|
-
onClick: () => gt(!1),
|
|
3839
|
-
"data-testid": U(
|
|
3840
|
-
"close-invoice-upload"
|
|
3841
|
-
),
|
|
3842
|
-
children: /* @__PURE__ */ t.jsx(so, { withOverlay: !0, children: /* @__PURE__ */ t.jsx(lo, {}) })
|
|
3843
|
-
}
|
|
3844
|
-
) }),
|
|
3845
|
-
/* @__PURE__ */ t.jsx(nl, { children: Kt })
|
|
3846
|
-
] }) : null,
|
|
3847
|
-
/* @__PURE__ */ t.jsx(
|
|
3848
|
-
Pn,
|
|
3849
|
-
{
|
|
3850
|
-
showAutofill: Ne,
|
|
3851
|
-
analytics: S,
|
|
3852
|
-
onSkipAutofill: () => {
|
|
3853
|
-
S?.trackReimbursementSkipAutofill(), gt(!1);
|
|
3854
|
-
},
|
|
3855
|
-
uploadInvoiceEndPoint: p,
|
|
3856
|
-
authParams: i,
|
|
3857
|
-
style: {
|
|
3858
|
-
width: ee.leftSectionWidth.valuePercentage(A),
|
|
3859
|
-
boxSizing: "border-box",
|
|
3860
|
-
backgroundColor: A === "small" ? He.colors.grey4 : "unset",
|
|
3861
|
-
padding: A === "small" ? `${o.sp5} ${o.sp3}` : `78px ${o.sp6} 15px ${o.sp8}`,
|
|
3862
|
-
margin: A === "small" ? o.sp0 : void 0
|
|
3863
|
-
},
|
|
3864
|
-
onInvoiceUpload: (g) => F(
|
|
3865
|
-
g,
|
|
3866
|
-
yt,
|
|
3867
|
-
!0
|
|
3868
|
-
),
|
|
3869
|
-
dropFilePlaceholder: {
|
|
3870
|
-
upload: f.dropReceipt.upload,
|
|
3871
|
-
single: f.dropReceipt.single,
|
|
3872
|
-
or: f.dropReceipt.or,
|
|
3873
|
-
multiple: f.dropReceipt.multiple,
|
|
3874
|
-
receipts: f.dropReceipt.receipts
|
|
3875
|
-
},
|
|
3876
|
-
updateInvoiceUploadFetchState: Ae,
|
|
3877
|
-
showInfoText: !1,
|
|
3878
|
-
allowMultiFiles: Ne,
|
|
3879
|
-
type: "reimbursement"
|
|
3880
|
-
}
|
|
3881
|
-
),
|
|
3882
|
-
A !== "small" ? /* @__PURE__ */ t.jsx(ol, { children: /* @__PURE__ */ t.jsx(
|
|
3883
|
-
co,
|
|
3884
|
-
{
|
|
3885
|
-
partOfSkipAutoFill: !0,
|
|
3886
|
-
onClick: () => gt(!1),
|
|
3887
|
-
"data-testid": U(
|
|
3888
|
-
"close-invoice-upload"
|
|
3889
|
-
),
|
|
3890
|
-
children: /* @__PURE__ */ t.jsx(so, { withOverlay: !0, children: /* @__PURE__ */ t.jsx(lo, {}) })
|
|
3891
|
-
}
|
|
3892
|
-
) }) : null
|
|
3893
|
-
]
|
|
3894
|
-
}
|
|
3895
|
-
) : null,
|
|
3896
|
-
/* @__PURE__ */ t.jsxs(
|
|
3897
|
-
pl,
|
|
3898
|
-
{
|
|
3899
|
-
windowSize: A,
|
|
3900
|
-
"data-testid": U(
|
|
3901
|
-
"edit-reimbursement-detail-page-nav-bar-container"
|
|
3902
|
-
),
|
|
3903
|
-
children: [
|
|
3904
|
-
A !== "small" ? /* @__PURE__ */ t.jsx(
|
|
3905
|
-
Fo,
|
|
3906
|
-
{
|
|
3907
|
-
style: { width: "42%" },
|
|
3908
|
-
"data-testid": U(
|
|
3909
|
-
"edit-reimbursement-detail-page-left-nav-bar"
|
|
3910
|
-
),
|
|
3911
|
-
title: "",
|
|
3912
|
-
leftSideComponent: /* @__PURE__ */ t.jsx(
|
|
3913
|
-
hl,
|
|
3914
|
-
{
|
|
3915
|
-
"data-testid": U(
|
|
3916
|
-
"zeni-logo-spend-management-reimbursement-detail-page"
|
|
3917
|
-
),
|
|
3918
|
-
onClick: le
|
|
3919
|
-
}
|
|
3920
|
-
),
|
|
3921
|
-
enableTitleOnScroll: !1,
|
|
3922
|
-
scrollableContent: h,
|
|
3923
|
-
backgroundColor: He.colors.background,
|
|
3924
|
-
keepBackgroundOnScroll: !0,
|
|
3925
|
-
source: "EditReimbursementDetailPage"
|
|
3926
|
-
}
|
|
3927
|
-
) : null,
|
|
3928
|
-
A !== "small" ? /* @__PURE__ */ t.jsx(qa, {}) : null,
|
|
3929
|
-
/* @__PURE__ */ t.jsx(
|
|
3930
|
-
Fo,
|
|
3931
|
-
{
|
|
3932
|
-
style: { width: ee.navBarWidth.valuePercentage(A) },
|
|
3933
|
-
"data-testid": U(
|
|
3934
|
-
"edit-reimbursement-detail-page-right-nav-bar"
|
|
3935
|
-
),
|
|
3936
|
-
source: "EditReimbursementDetailPage",
|
|
3937
|
-
title: Kt,
|
|
3938
|
-
leftSideComponent: /* @__PURE__ */ t.jsx(t.Fragment, {}),
|
|
3939
|
-
rightSideComponent: Ne != !0 ? /* @__PURE__ */ t.jsxs(gl, { children: [
|
|
3940
|
-
v && x != null ? /* @__PURE__ */ t.jsxs(
|
|
3941
|
-
yl,
|
|
3942
|
-
{
|
|
3943
|
-
isDisabled: tt,
|
|
3944
|
-
"data-testid": U(
|
|
3945
|
-
"remi-comment-button"
|
|
3946
|
-
),
|
|
3947
|
-
onClick: tt ? () => null : (g) => {
|
|
3948
|
-
g.preventDefault(), g.stopPropagation(), ht({
|
|
3949
|
-
roomId: Ct,
|
|
3950
|
-
companyId: Re.currentTenant?.companyId ?? "",
|
|
3951
|
-
companyName: Re.currentTenant?.companyName ?? "",
|
|
3952
|
-
entityType: "reimbursement.details",
|
|
3953
|
-
entityId: x
|
|
3954
|
-
}), se(!0), S?.trackCommentActivity(
|
|
3955
|
-
"reimbursement",
|
|
3956
|
-
// pageName
|
|
3957
|
-
"clicked",
|
|
3958
|
-
// activityType
|
|
3959
|
-
Re.currentTenant?.companyName ?? "",
|
|
3960
|
-
// tenantName
|
|
3961
|
-
Re.controllersList.controllers.map(
|
|
3962
|
-
(j) => zr(j)
|
|
3963
|
-
),
|
|
3964
|
-
// controllerName
|
|
3965
|
-
void 0,
|
|
3966
|
-
// status
|
|
3967
|
-
void 0,
|
|
3968
|
-
// createdBy
|
|
3969
|
-
"page icon"
|
|
3970
|
-
// source
|
|
3971
|
-
);
|
|
3972
|
-
},
|
|
3973
|
-
children: [
|
|
3974
|
-
/* @__PURE__ */ t.jsx(
|
|
3975
|
-
Rr,
|
|
3976
|
-
{
|
|
3977
|
-
count: tt ? void 0 : lr,
|
|
3978
|
-
isLoading: tt,
|
|
3979
|
-
style: { left: "12px" }
|
|
3980
|
-
}
|
|
3981
|
-
),
|
|
3982
|
-
/* @__PURE__ */ t.jsx(fl, {})
|
|
3983
|
-
]
|
|
3984
|
-
}
|
|
3985
|
-
) : null,
|
|
3986
|
-
/* @__PURE__ */ t.jsx(
|
|
3987
|
-
co,
|
|
3988
|
-
{
|
|
3989
|
-
size: A,
|
|
3990
|
-
onClick: () => To(),
|
|
3991
|
-
"data-testid": U("close-nav-bar"),
|
|
3992
|
-
children: /* @__PURE__ */ t.jsx(so, { withOverlay: !1, children: /* @__PURE__ */ t.jsx(lo, {}) })
|
|
3993
|
-
}
|
|
3994
|
-
)
|
|
3995
|
-
] }) : null,
|
|
3996
|
-
enableTitleOnScroll: A !== "small",
|
|
3997
|
-
scrollThreshold: 64,
|
|
3998
|
-
scrollableContent: h,
|
|
3999
|
-
backgroundColor: He.colors.grey4
|
|
4000
|
-
}
|
|
4001
|
-
)
|
|
4002
|
-
]
|
|
4003
|
-
}
|
|
4004
|
-
),
|
|
4005
|
-
A === "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
4006
|
-
/* @__PURE__ */ t.jsx(ml, { children: Kt }),
|
|
4007
|
-
/* @__PURE__ */ t.jsx(
|
|
4008
|
-
Fr,
|
|
4009
|
-
{
|
|
4010
|
-
progressSectionObj: nr,
|
|
4011
|
-
createDate: e.createTime,
|
|
4012
|
-
paymentDate: ir,
|
|
4013
|
-
scheduleDate: e.reimbursementInfo?.paymentDate,
|
|
4014
|
-
approvedDate: e.latestApprovedDate,
|
|
4015
|
-
isBillUploaded: x != null ? !0 : e.uploadStatus === "Completed"
|
|
4016
|
-
}
|
|
4017
|
-
),
|
|
4018
|
-
Gt && /* @__PURE__ */ t.jsxs(al, { children: [
|
|
4019
|
-
/* @__PURE__ */ t.jsx(il, {}),
|
|
4020
|
-
/* @__PURE__ */ t.jsx(ll, { children: f.banner })
|
|
4021
|
-
] }),
|
|
4022
|
-
e.isProcessing ? /* @__PURE__ */ t.jsx(
|
|
4023
|
-
wn,
|
|
4024
|
-
{
|
|
4025
|
-
variant: "warning",
|
|
4026
|
-
style: {
|
|
4027
|
-
margin: A === "small" ? `${o.sp5} ${o.sp3}` : `${o.sp3} ${o.sp8} ${o.sp3} ${o.sp6}`
|
|
4028
|
-
},
|
|
4029
|
-
title: on.duplicateWarning.title,
|
|
4030
|
-
description: on.duplicateWarning.description
|
|
4031
|
-
}
|
|
4032
|
-
) : Yt ? /* @__PURE__ */ t.jsxs(sl, { size: A, children: [
|
|
4033
|
-
/* @__PURE__ */ t.jsx(Ga, {}),
|
|
4034
|
-
/* @__PURE__ */ t.jsxs(dl, { children: [
|
|
4035
|
-
/* @__PURE__ */ t.jsx(cl, { children: f.thereSeems }),
|
|
4036
|
-
/* @__PURE__ */ t.jsx(ul, { children: f.pleaseFind })
|
|
4037
|
-
] })
|
|
4038
|
-
] }) : null,
|
|
4039
|
-
/* @__PURE__ */ t.jsx(
|
|
4040
|
-
Ln,
|
|
4041
|
-
{
|
|
4042
|
-
isReimbursementCommentingEnabled: v,
|
|
4043
|
-
sectionId: Nt,
|
|
4044
|
-
reimbursementId: e.remiId,
|
|
4045
|
-
reportTitle: e.whatForSection.reportTitle
|
|
4046
|
-
}
|
|
4047
|
-
)
|
|
4048
|
-
] }) : null,
|
|
4049
|
-
/* @__PURE__ */ t.jsx(
|
|
4050
|
-
ia,
|
|
4051
|
-
{
|
|
4052
|
-
onDuplicateLineClick: re,
|
|
4053
|
-
reimbursementId: x,
|
|
4054
|
-
remiDetails: e,
|
|
4055
|
-
uploadInvoiceEndPoint: p,
|
|
4056
|
-
authParams: i,
|
|
4057
|
-
showSkipAutoFill: Ne,
|
|
4058
|
-
setShowSkipAutoFill: gt,
|
|
4059
|
-
isReimbursementCommentingEnabled: v,
|
|
4060
|
-
isAutoFieldsExist: Gt,
|
|
4061
|
-
totalAmount: ie,
|
|
4062
|
-
removeFileFromLine: fe,
|
|
4063
|
-
onReplaceClick: Zn,
|
|
4064
|
-
onReceiptsUpload: F,
|
|
4065
|
-
currencyConversionStatus: e.currencyConversionStatus,
|
|
4066
|
-
setCurrentLineIdForUpload: _n,
|
|
4067
|
-
setUploadedReceiptPayload: Hn,
|
|
4068
|
-
updateInvoiceUploadFetchState: Ae,
|
|
4069
|
-
clearTentativeNameForLine: Le,
|
|
4070
|
-
defaultCurrency: a,
|
|
4071
|
-
companyMileageConfigInfo: d,
|
|
4072
|
-
isUserAdmin: m,
|
|
4073
|
-
setShowBankAccountPage: Dt,
|
|
4074
|
-
bankAccounts: c,
|
|
4075
|
-
onDeleteBankAccount: Xn,
|
|
4076
|
-
analytics: S,
|
|
4077
|
-
fileRequiredLineIds: Ut,
|
|
4078
|
-
isSignedInUserReimbursementCreator: y,
|
|
4079
|
-
uncategorizedAccounts: $,
|
|
4080
|
-
showTotalAmountLoader: pt,
|
|
4081
|
-
duplicateLineByLineId: e.duplicateLineByLineId,
|
|
4082
|
-
hasDuplicateLine: Yt,
|
|
4083
|
-
removeDuplicateReimbursementForLine: ne,
|
|
4084
|
-
scrollContainerRef: h
|
|
4085
|
-
}
|
|
4086
|
-
),
|
|
4087
|
-
/* @__PURE__ */ t.jsxs(
|
|
4088
|
-
bl,
|
|
4089
|
-
{
|
|
4090
|
-
showSkipAutoFill: Ne,
|
|
4091
|
-
windowSize: A,
|
|
4092
|
-
children: [
|
|
4093
|
-
A !== "small" ? /* @__PURE__ */ t.jsx(ln, {}) : null,
|
|
4094
|
-
/* @__PURE__ */ t.jsx(wl, { windowSize: A, children: /* @__PURE__ */ t.jsxs($l, { windowSize: A, children: [
|
|
4095
|
-
e.remiId !== void 0 && /* @__PURE__ */ t.jsx(
|
|
4096
|
-
No,
|
|
4097
|
-
{
|
|
4098
|
-
amount: ie ?? 0,
|
|
4099
|
-
activities: e.remiActivities,
|
|
4100
|
-
stage: e.remiStage ?? "draft",
|
|
4101
|
-
onAddNewRule: me,
|
|
4102
|
-
entity: "reimbursement",
|
|
4103
|
-
historicActivities: e.remiHistory.activities
|
|
4104
|
-
}
|
|
4105
|
-
),
|
|
4106
|
-
e.remiId == null && ie != null && ie > 0 ? /* @__PURE__ */ t.jsx(
|
|
4107
|
-
No,
|
|
4108
|
-
{
|
|
4109
|
-
amount: ie ?? 0,
|
|
4110
|
-
activities: jo,
|
|
4111
|
-
stage: "draft",
|
|
4112
|
-
entity: "reimbursement",
|
|
4113
|
-
historicActivities: e.remiHistory.activities
|
|
4114
|
-
}
|
|
4115
|
-
) : null
|
|
4116
|
-
] }) })
|
|
4117
|
-
]
|
|
4118
|
-
}
|
|
4119
|
-
),
|
|
4120
|
-
/* @__PURE__ */ t.jsx(Sl, {}),
|
|
4121
|
-
/* @__PURE__ */ t.jsxs(
|
|
4122
|
-
rl,
|
|
4123
|
-
{
|
|
4124
|
-
showSkipAutoFill: Ne,
|
|
4125
|
-
windowSize: A,
|
|
4126
|
-
children: [
|
|
4127
|
-
A !== "small" ? /* @__PURE__ */ t.jsx(ln, {}) : null,
|
|
4128
|
-
/* @__PURE__ */ t.jsx(
|
|
4129
|
-
Ua,
|
|
4130
|
-
{
|
|
4131
|
-
windowSize: A,
|
|
4132
|
-
onClick: (g) => {
|
|
4133
|
-
g.stopPropagation(), Ke === !0 && Ge(!1);
|
|
4134
|
-
},
|
|
4135
|
-
children: /* @__PURE__ */ t.jsx(
|
|
4136
|
-
In,
|
|
4137
|
-
{
|
|
4138
|
-
formId: an(rn),
|
|
4139
|
-
separatorStyle: { marginRight: o.sp4 },
|
|
4140
|
-
showCancel: y,
|
|
4141
|
-
cancelBtn: {
|
|
4142
|
-
label: m && e.remiStage === "pending_approval" && e.remiStatus !== "rejected" ? A === "small" ? f.buttons.discard : f.buttons.discardChanges : A === "small" ? f.buttons.save : f.buttons.saveChanges,
|
|
4143
|
-
isLoading: Xe === "save" && e.saveStatus?.fetchState === "In-Progress",
|
|
4144
|
-
onClick: ko,
|
|
4145
|
-
style: { width: ee.footerButtonWidth.value(A) },
|
|
4146
|
-
reverseSpinnerColor: !1
|
|
4147
|
-
},
|
|
4148
|
-
primaryBtn: {
|
|
4149
|
-
label: _a(
|
|
4150
|
-
y,
|
|
4151
|
-
m,
|
|
4152
|
-
e,
|
|
4153
|
-
A
|
|
4154
|
-
),
|
|
4155
|
-
isDisabled: !y,
|
|
4156
|
-
style: {
|
|
4157
|
-
width: y ? ee.footerButtonWidth.value(A) : "auto"
|
|
4158
|
-
},
|
|
4159
|
-
type: y ? "submit" : "button",
|
|
4160
|
-
onClick: y ? () => null : ko,
|
|
4161
|
-
isLoading: !y && Xe === "save" && e.saveStatus?.fetchState === "In-Progress"
|
|
4162
|
-
},
|
|
4163
|
-
rightSideComponent: /* @__PURE__ */ t.jsx(Ha, { children: /* @__PURE__ */ t.jsxs(Xa, { windowSize: A, children: [
|
|
4164
|
-
Ke ? /* @__PURE__ */ t.jsx(
|
|
4165
|
-
cn,
|
|
4166
|
-
{
|
|
4167
|
-
onClickAway: () => Ge(!1),
|
|
4168
|
-
children: /* @__PURE__ */ t.jsx(
|
|
4169
|
-
Qa,
|
|
4170
|
-
{
|
|
4171
|
-
windowSize: A,
|
|
4172
|
-
"data-testid": U(
|
|
4173
|
-
"remi-other-actions-container"
|
|
4174
|
-
),
|
|
4175
|
-
children: /* @__PURE__ */ t.jsx(
|
|
4176
|
-
Za,
|
|
4177
|
-
{
|
|
4178
|
-
onClick: Qn,
|
|
4179
|
-
"data-testid": U(
|
|
4180
|
-
"delete-report-action"
|
|
4181
|
-
),
|
|
4182
|
-
children: f.buttons.deleteReport
|
|
4183
|
-
}
|
|
4184
|
-
)
|
|
4185
|
-
}
|
|
4186
|
-
)
|
|
4187
|
-
}
|
|
4188
|
-
) : null,
|
|
4189
|
-
/* @__PURE__ */ t.jsx(Ja, { windowSize: A, children: ar === !0 ? /* @__PURE__ */ t.jsx(
|
|
4190
|
-
Ya,
|
|
4191
|
-
{
|
|
4192
|
-
windowSize: A,
|
|
4193
|
-
"data-testid": U(
|
|
4194
|
-
"more-details-button"
|
|
4195
|
-
),
|
|
4196
|
-
children: /* @__PURE__ */ t.jsx(
|
|
4197
|
-
Ka,
|
|
4198
|
-
{
|
|
4199
|
-
onClick: () => Ge(!Ke)
|
|
4200
|
-
}
|
|
4201
|
-
)
|
|
4202
|
-
}
|
|
4203
|
-
) : null })
|
|
4204
|
-
] }) }),
|
|
4205
|
-
style: {
|
|
4206
|
-
minHeight: 62
|
|
4207
|
-
}
|
|
4208
|
-
}
|
|
4209
|
-
)
|
|
4210
|
-
}
|
|
4211
|
-
)
|
|
4212
|
-
]
|
|
4213
|
-
}
|
|
4214
|
-
),
|
|
4215
|
-
v && x != null ? /* @__PURE__ */ t.jsx(pr, { id: Ct, children: /* @__PURE__ */ t.jsx(
|
|
4216
|
-
Nr,
|
|
4217
|
-
{
|
|
4218
|
-
isDrawerOpen: W,
|
|
4219
|
-
allowComposer: !0,
|
|
4220
|
-
drawerTitle: Ra,
|
|
4221
|
-
threads: ft,
|
|
4222
|
-
autoExpand: !0,
|
|
4223
|
-
autoFocus: !1,
|
|
4224
|
-
filter: {
|
|
4225
|
-
application: "dashboard",
|
|
4226
|
-
companyId: _?.companyId ?? za,
|
|
4227
|
-
isGlobalComment: !1,
|
|
4228
|
-
tab: "reimbursement"
|
|
4229
|
-
},
|
|
4230
|
-
isLoading: tt,
|
|
4231
|
-
threadMetadata: _ ? {
|
|
4232
|
-
companyName: _.companyName,
|
|
4233
|
-
companyId: _.companyId,
|
|
4234
|
-
entityId: _.entityId,
|
|
4235
|
-
entityType: _.entityType,
|
|
4236
|
-
isGlobalComment: !1,
|
|
4237
|
-
application: "dashboard",
|
|
4238
|
-
tab: "reimbursement",
|
|
4239
|
-
url: window.location.href
|
|
4240
|
-
} : void 0,
|
|
4241
|
-
textOverrides: {
|
|
4242
|
-
composerPlaceholder: Fa,
|
|
4243
|
-
replyComposerPlaceholder: Na,
|
|
4244
|
-
threadResolve: Wa,
|
|
4245
|
-
threadUnResolve: Ea
|
|
4246
|
-
},
|
|
4247
|
-
onThreadClick: (g, j) => sr(g, j),
|
|
4248
|
-
onCloseAllThreadsDrawer: () => se(!1),
|
|
4249
|
-
drawerSectionStyle: {
|
|
4250
|
-
width: "400px",
|
|
4251
|
-
backgroundColor: He.colors.background
|
|
4252
|
-
}
|
|
4253
|
-
}
|
|
4254
|
-
) }) : null
|
|
4255
|
-
] })
|
|
4256
|
-
}
|
|
4257
|
-
),
|
|
4258
|
-
Dn ? /* @__PURE__ */ t.jsx(el, { windowSize: A, children: /* @__PURE__ */ t.jsx(
|
|
4259
|
-
xa,
|
|
4260
|
-
{
|
|
4261
|
-
bankAccountCreationState: C,
|
|
4262
|
-
setShowBankAccountPage: Dt,
|
|
4263
|
-
plaidConnectionDetails: l,
|
|
4264
|
-
onFetchLinkTokenClick: Me,
|
|
4265
|
-
onEstablishConnectionClick: pe,
|
|
4266
|
-
onSaveHandler: B,
|
|
4267
|
-
bankAccountToCreate: O,
|
|
4268
|
-
bankNameByRouting: b,
|
|
4269
|
-
fetchBankNameByRoutingStatus: T,
|
|
4270
|
-
onUserBankDetailsUpdated: P,
|
|
4271
|
-
onFetchBankName: H,
|
|
4272
|
-
onBackClick: () => {
|
|
4273
|
-
Je(), Dt(!1);
|
|
4274
|
-
}
|
|
4275
|
-
}
|
|
4276
|
-
) }) : null
|
|
4277
|
-
] })
|
|
4278
|
-
}
|
|
4279
|
-
) });
|
|
4280
|
-
}, _a = (e, i, a, d) => e ? a.reimbursementId != null && a.remiStage === "pending_approval" ? f.buttons.resubmit : f.buttons.submit : i && a.remiStage === "pending_approval" && a.remiStatus !== "rejected" ? d === "small" ? f.buttons.discard : f.buttons.discardChanges : d === "small" ? f.buttons.save : f.buttons.saveChanges, Da = n.div`
|
|
4281
|
-
position: relative;
|
|
4282
|
-
height: 100vh;
|
|
4283
|
-
overflow-y: scroll;
|
|
4284
|
-
`, qa = n.div`
|
|
4285
|
-
position: fixed;
|
|
4286
|
-
top: 0;
|
|
4287
|
-
left: 42vw;
|
|
4288
|
-
width: 100%;
|
|
4289
|
-
height: 100vh;
|
|
4290
|
-
background: transparent;
|
|
4291
|
-
box-shadow: 0 2px ${o.sp1} ${({ theme: e }) => e.colors.dropShadowNormal};
|
|
4292
|
-
pointer-events: none;
|
|
4293
|
-
z-index: 3;
|
|
4294
|
-
`, Ua = n.div`
|
|
4295
|
-
width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
4296
|
-
`, Ha = n.div`
|
|
4297
|
-
display: flex;
|
|
4298
|
-
justify-content: flex-end;
|
|
4299
|
-
`, Ka = n(_r)`
|
|
4300
|
-
cursor: pointer;
|
|
4301
|
-
color: ${(e) => e.theme.colors.hero};
|
|
4302
|
-
width: ${o.sp5};
|
|
4303
|
-
height: ${o.sp5};
|
|
4304
|
-
&:hover {
|
|
4305
|
-
color: ${(e) => e.theme.colors.primary};
|
|
4306
|
-
}
|
|
4307
|
-
`, Ga = n(Dr)`
|
|
4308
|
-
width: ${o.sp4};
|
|
4309
|
-
height: ${o.sp4};
|
|
4310
|
-
color: ${I.brandColorGoldDark};
|
|
4311
|
-
`, Ya = n.div`
|
|
4312
|
-
display: flex;
|
|
4313
|
-
margin-left: ${(e) => e.windowSize === "small" ? o.sp4 : o.sp5};
|
|
4314
|
-
cursor: pointer;
|
|
4315
|
-
color: ${(e) => e.theme.colors.grey1};
|
|
4316
|
-
&:hover {
|
|
4317
|
-
color: ${(e) => e.theme.colors.primary};
|
|
4318
|
-
}
|
|
4319
|
-
`, Ja = n.div`
|
|
4320
|
-
display: flex;
|
|
4321
|
-
justify-content: center;
|
|
4322
|
-
align-items: center;
|
|
4323
|
-
`, Qa = n.div`
|
|
4324
|
-
display: flex;
|
|
4325
|
-
width: auto;
|
|
4326
|
-
align-items: center;
|
|
4327
|
-
justify-content: center;
|
|
4328
|
-
flex-direction: column;
|
|
4329
|
-
background-color: ${(e) => e.theme.colors.grey5};
|
|
4330
|
-
color: ${(e) => e.theme.colors.hero};
|
|
4331
|
-
cursor: pointer;
|
|
4332
|
-
padding-top: ${o.sp1};
|
|
4333
|
-
padding-bottom: ${o.sp1};
|
|
4334
|
-
position: absolute;
|
|
4335
|
-
bottom: ${(e) => ee.otherActionsContainerBottom.valuePx(e.windowSize)};
|
|
4336
|
-
z-index: 3;
|
|
4337
|
-
border: ${(e) => `1px solid ${e.theme.colors.grey3}`};
|
|
4338
|
-
border-radius: ${o.sp1};
|
|
4339
|
-
right: ${(e) => ee.right.valuePx(e.windowSize)};
|
|
4340
|
-
box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.grey1} 3D`};
|
|
4341
|
-
`, Xa = n.div`
|
|
4342
|
-
width: 100%;
|
|
4343
|
-
justify-content: flex-end;
|
|
4344
|
-
position: ${(e) => e.windowSize === "small" ? "static" : "relative"};
|
|
4345
|
-
right: ${(e) => ee.actionsContainerRight.valuePx(e.windowSize)};
|
|
4346
|
-
height: 100%;
|
|
4347
|
-
display: flex;
|
|
4348
|
-
`, Za = n(yo)`
|
|
4349
|
-
display: flex;
|
|
4350
|
-
align-items: center;
|
|
4351
|
-
width: -webkit-fill-available;
|
|
4352
|
-
padding-left: ${o.sp3};
|
|
4353
|
-
padding-right: ${o.sp3};
|
|
4354
|
-
height: ${o.sp6};
|
|
4355
|
-
box-sizing: border-box;
|
|
4356
|
-
&:hover {
|
|
4357
|
-
background-color: ${(e) => e.theme.colors.background};
|
|
4358
|
-
}
|
|
4359
|
-
`, el = n.div`
|
|
4360
|
-
overflow-y: auto;
|
|
4361
|
-
z-index: 5;
|
|
4362
|
-
height: 100vh;
|
|
4363
|
-
position: fixed;
|
|
4364
|
-
background: ${(e) => e.theme.colors.grey4};
|
|
4365
|
-
width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
4366
|
-
right: 0;
|
|
4367
|
-
top: 0;
|
|
4368
|
-
`, tl = n.div`
|
|
4369
|
-
background: ${(e) => e.theme.colors.grey4};
|
|
4370
|
-
height: 44px;
|
|
4371
|
-
display: flex;
|
|
4372
|
-
align-items: center;
|
|
4373
|
-
justify-content: end;
|
|
4374
|
-
`, ol = n.div`
|
|
4375
|
-
width: 58%;
|
|
4376
|
-
`, nl = n($o)`
|
|
4377
|
-
padding: ${o.sp3} ${o.sp3} 0 ${o.sp3};
|
|
4378
|
-
background: ${(e) => e.theme.colors.grey4};
|
|
4379
|
-
color: ${(e) => e.theme.colors.primary};
|
|
4380
|
-
`, rl = n.div`
|
|
4381
|
-
display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
|
|
4382
|
-
width: 100%;
|
|
4383
|
-
position: fixed;
|
|
4384
|
-
bottom: 0;
|
|
4385
|
-
z-index: 3;
|
|
4386
|
-
`, ln = n.div`
|
|
4387
|
-
width: 42%;
|
|
4388
|
-
`, il = n(fo)`
|
|
4389
|
-
color: ${(e) => e.theme.colors.primary};
|
|
4390
|
-
width: ${o.sp3};
|
|
4391
|
-
height: ${o.sp3};
|
|
4392
|
-
`, al = n.div`
|
|
4393
|
-
display: flex;
|
|
4394
|
-
gap: ${o.sp2};
|
|
4395
|
-
border: 1px solid ${(e) => e.theme.colors.grey3};
|
|
4396
|
-
padding: ${o.sp3};
|
|
4397
|
-
border-radius: ${o.sp2};
|
|
4398
|
-
align-items: center;
|
|
4399
|
-
margin: ${o.sp3};
|
|
4400
|
-
`, ll = n.span`
|
|
4401
|
-
color: ${(e) => e.theme.colors.hero};
|
|
4402
|
-
`, sl = n.div`
|
|
4403
|
-
display: flex;
|
|
4404
|
-
gap: ${o.sp2};
|
|
4405
|
-
padding: ${o.sp3};
|
|
4406
|
-
border-radius: ${o.sp2};
|
|
4407
|
-
align-items: start;
|
|
4408
|
-
margin-top: ${(e) => ee.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
4409
|
-
margin-right: ${(e) => ee.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
4410
|
-
margin-bottom: ${(e) => ee.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
4411
|
-
margin-left: ${(e) => ee.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
4412
|
-
background-color: ${I.alertLight};
|
|
4413
|
-
border: 1px solid ${(e) => e.theme.colors.brandColorGoldDark};
|
|
4414
|
-
`, cl = n(_t)`
|
|
4415
|
-
color: ${(e) => e.theme.colors.brandColorGoldDark};
|
|
4416
|
-
`, dl = n.div`
|
|
4417
|
-
width: 100%;
|
|
4418
|
-
`, ul = n(xo)`
|
|
4419
|
-
color: ${(e) => e.theme.colors.brandColorGoldDark};
|
|
4420
|
-
`, ml = n($o)`
|
|
4421
|
-
letter-spacing: -0.02em;
|
|
4422
|
-
color: ${(e) => e.theme.colors.primary};
|
|
4423
|
-
margin: ${o.sp3};
|
|
4424
|
-
`, sn = n.div`
|
|
4425
|
-
display: flex;
|
|
4426
|
-
flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
|
|
4427
|
-
height: 100vh;
|
|
4428
|
-
visibility: inherit;
|
|
4429
|
-
width: 100%;
|
|
4430
|
-
background-color: ${I.overlayDark};
|
|
4431
|
-
z-index: 11; // This is to ensure that the skip autofill section is above the AI CFO icon whose value is 10
|
|
4432
|
-
position: fixed;
|
|
4433
|
-
`, pl = n.div`
|
|
4434
|
-
z-index: 3;
|
|
4435
|
-
min-height: 62px;
|
|
4436
|
-
height: 62px;
|
|
4437
|
-
display: flex;
|
|
4438
|
-
align-items: center;
|
|
4439
|
-
width: 100%;
|
|
4440
|
-
justify-content: space-between;
|
|
4441
|
-
position: fixed;
|
|
4442
|
-
`, hl = n(Wr)`
|
|
4443
|
-
display: flex;
|
|
4444
|
-
color: ${(e) => e.theme.colors.brandColorJade};
|
|
4445
|
-
cursor: pointer;
|
|
4446
|
-
width: ${o.sp4};
|
|
4447
|
-
height: ${o.sp4};
|
|
4448
|
-
`, lo = n(On)`
|
|
4449
|
-
cursor: pointer;
|
|
4450
|
-
width: ${o.sp4};
|
|
4451
|
-
height: ${o.sp4};
|
|
4452
|
-
float: right;
|
|
4453
|
-
color: inherit;
|
|
4454
|
-
`, so = n.div`
|
|
4455
|
-
color: ${(e) => e.theme.colors.hero};
|
|
4456
|
-
&:hover {
|
|
4457
|
-
color: ${(e) => e.withOverlay ? I.primaryDark : e.theme.colors.primary};
|
|
4458
|
-
}
|
|
4459
|
-
`, gl = n.div`
|
|
4460
|
-
margin-top: ${(e) => ee.closeMarginTop.valuePx(e.windowSize)};
|
|
4461
|
-
display: flex;
|
|
4462
|
-
float: right;
|
|
4463
|
-
`, yl = n.div`
|
|
4464
|
-
display: flex;
|
|
4465
|
-
align-items: center;
|
|
4466
|
-
justify-content: center;
|
|
4467
|
-
position: relative;
|
|
4468
|
-
float: right;
|
|
4469
|
-
cursor: ${(e) => e.isDisabled ? "not-allowed" : "pointer"};
|
|
4470
|
-
color: ${(e) => e.theme.colors.hero};
|
|
4471
|
-
&:hover {
|
|
4472
|
-
color: ${(e) => e.theme.colors.primary};
|
|
4473
|
-
}
|
|
4474
|
-
`, fl = n(Er)`
|
|
4475
|
-
display: flex;
|
|
4476
|
-
width: ${o.sp4};
|
|
4477
|
-
height: ${o.sp4};
|
|
4478
|
-
align-items: center;
|
|
4479
|
-
justify-content: center;
|
|
4480
|
-
`, co = n.div`
|
|
4481
|
-
margin-top: ${(e) => e.partOfSkipAutoFill === !0 ? ee.closeMarginTop.valuePx(e.size) : 0};
|
|
4482
|
-
margin-left: ${o.sp5};
|
|
4483
|
-
margin-right: ${(e) => e.partOfSkipAutoFill === !0 ? ee.closeMarginRight.valuePx(e.size) : 0};
|
|
4484
|
-
`, xl = n.div`
|
|
4485
|
-
display: flex;
|
|
4486
|
-
flex-direction: column;
|
|
4487
|
-
width: 100vw;
|
|
4488
|
-
overflow-x: hidden;
|
|
4489
|
-
background: -webkit-linear-gradient(
|
|
4490
|
-
to right,
|
|
4491
|
-
${(e) => e.theme.colors.background} 42%,
|
|
4492
|
-
${(e) => e.theme.colors.grey4} 42%
|
|
4493
|
-
);
|
|
4494
|
-
background: -moz-linear-gradient(
|
|
4495
|
-
to right,
|
|
4496
|
-
${(e) => e.theme.colors.background} 42%,
|
|
4497
|
-
${(e) => e.theme.colors.grey4} 42%
|
|
4498
|
-
);
|
|
4499
|
-
background: -o-linear-gradient(
|
|
4500
|
-
to right,
|
|
4501
|
-
${(e) => e.theme.colors.background} 42%,
|
|
4502
|
-
${(e) => e.theme.colors.grey4} 42%
|
|
4503
|
-
);
|
|
4504
|
-
background: linear-gradient(
|
|
4505
|
-
to right,
|
|
4506
|
-
${(e) => e.theme.colors.background} 42%,
|
|
4507
|
-
${(e) => e.theme.colors.grey4} 42%
|
|
4508
|
-
);
|
|
4509
|
-
${(e) => e.windowSize === "small" && `
|
|
4510
|
-
background: ${e.theme.colors.grey4};
|
|
4511
|
-
`}
|
|
4512
|
-
min-height: 100vh;
|
|
4513
|
-
`, bl = n.div`
|
|
4514
|
-
display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
|
|
4515
|
-
width: 100%;
|
|
4516
|
-
margin-bottom: ${(e) => ee.bottomMargin.valuePx(e.windowSize)};
|
|
4517
|
-
`, wl = n.div`
|
|
4518
|
-
width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
4519
|
-
`, $l = n.div`
|
|
4520
|
-
margin-left: ${(e) => ee.leftMargin.valuePx(e.windowSize)};
|
|
4521
|
-
margin-right: ${(e) => ee.rightMargin.valuePx(e.windowSize)};
|
|
4522
|
-
`, Sl = n.div`
|
|
4523
|
-
display: flex;
|
|
4524
|
-
flex-direction: column;
|
|
4525
|
-
height: ${o.sp11};
|
|
4526
|
-
`;
|
|
4527
|
-
export {
|
|
4528
|
-
Fl as default,
|
|
4529
|
-
an as uniqueName
|
|
4530
|
-
};
|