@zeniai/web-components 3.17.10 → 3.17.12
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-BZ460o0e.cjs +21 -0
- package/dist/ACHDetailsPage-C2CeBBx-.js +160 -0
- package/dist/AIPerformancePage-CNtEHhST.cjs +539 -0
- package/dist/AIPerformancePage-dAkQ2-Pd.js +1345 -0
- package/dist/AccountInfoPage-B-zrMcJf.js +78 -0
- package/dist/AccountInfoPage-BCz8Qz0s.cjs +18 -0
- package/dist/AccountInfoPageContent-C0RUvp2J.cjs +149 -0
- package/dist/AccountInfoPageContent-C6iRwz6I.js +428 -0
- package/dist/AccountLockedInfoModal-C6qEa-Ec.cjs +59 -0
- package/dist/AccountLockedInfoModal-D9AiCduN.js +125 -0
- package/dist/AccountReconDetailsDrawerPage-BYg-npMb.cjs +239 -0
- package/dist/AccountReconDetailsDrawerPage-CA4xyZdm.js +689 -0
- package/dist/AccountRow-B28-CTzA.cjs +298 -0
- package/dist/AccountRow-C0T_wYCA.js +1014 -0
- package/dist/AccountsPromoCardStack-BJoI-n5t.cjs +207 -0
- package/dist/AccountsPromoCardStack-D2w73qPm.js +664 -0
- package/dist/AddAddressForCardDrawer-BI-0ypfC.cjs +6 -0
- package/dist/AddAddressForCardDrawer-DcuyjPyb.js +82 -0
- package/dist/AddToWalletPage-aE6VR2QH.cjs +344 -0
- package/dist/AddToWalletPage-qGIgBJOf.js +642 -0
- package/dist/AgingReportsPage-B8JvsIkW.js +827 -0
- package/dist/AgingReportsPage-DcKv2NG9.cjs +79 -0
- package/dist/AllUserItems-BPmrzxDi.cjs +192 -0
- package/dist/AllUserItems-DI_SGWc0.js +979 -0
- package/dist/ApAgingDetailPage-C_TgK08j.js +239 -0
- package/dist/ApAgingDetailPage-DIdXAxKE.cjs +46 -0
- package/dist/AppBasePage-BPrX-hAg.cjs +71 -0
- package/dist/AppBasePage-BSQbO_Gd.js +120 -0
- package/dist/AppDrawerContent-DUWFmopf.cjs +91 -0
- package/dist/AppDrawerContent-DsJgbEPl.js +379 -0
- package/dist/ApprovalRulesSettingsPage-DKObd6p6.cjs +47 -0
- package/dist/ApprovalRulesSettingsPage-gY7Bt-8C.js +145 -0
- package/dist/ArAgingChart-BjzSyNNO.cjs +24 -0
- package/dist/ArAgingChart-C4a1KSaD.js +530 -0
- package/dist/ArAgingDetailPage-D8I9VxCX.cjs +46 -0
- package/dist/ArAgingDetailPage-DplAIXAe.js +243 -0
- package/dist/AttachmentView-BI3M5jTY.cjs +101 -0
- package/dist/AttachmentView-ELR2rAhi.js +260 -0
- package/dist/BankAccountSection-CUEcWOPO.js +398 -0
- package/dist/BankAccountSection-DLgqEH1Z.cjs +79 -0
- package/dist/BankAccountWarningSection-BLMWE4__.js +110 -0
- package/dist/BankAccountWarningSection-KvZva52q.cjs +51 -0
- package/dist/BankConnectionsSettingsPage-CFZPunG9.js +1694 -0
- package/dist/BankConnectionsSettingsPage-Ca2pBKfv.cjs +425 -0
- package/dist/BillDetailPage-BpNTPNyx.js +1806 -0
- package/dist/BillDetailPage-Dujhe7mM.cjs +266 -0
- package/dist/BillPayApprovalRuleDetailPage-Ceqek6vT.cjs +27 -0
- package/dist/BillPayApprovalRuleDetailPage-CrylOK_k.js +266 -0
- package/dist/BillPayApprovalRulesPage-C5wl8pOv.js +431 -0
- package/dist/BillPayApprovalRulesPage-Ck7Yf1pA.cjs +241 -0
- package/dist/BillPayPromoPage-Bv5EMYbg.cjs +84 -0
- package/dist/BillPayPromoPage-lKMeuiR5.js +292 -0
- package/dist/BillPaySetUpPage-CTyRe-vF.cjs +42 -0
- package/dist/BillPaySetUpPage-Cjl9SzAg.js +408 -0
- package/dist/BillingSettingsPage-B_3HAmJY.cjs +44 -0
- package/dist/BillingSettingsPage-DKZd3n75.js +336 -0
- package/dist/BillsBulkReviewDrawerPage-DDQxcTmv.js +216 -0
- package/dist/BillsBulkReviewDrawerPage-wUr5TZq4.cjs +1 -0
- package/dist/BoxItem-BVzkuYFq.js +118 -0
- package/dist/BoxItem-CX8mQW6h.cjs +53 -0
- package/dist/BusinessVerificationPage-B2ibHGBm.cjs +138 -0
- package/dist/BusinessVerificationPage-BZLeXO5x.js +716 -0
- package/dist/BusyIndication-CsyBYJPC.js +19 -0
- package/dist/BusyIndication-DGF5d74O.cjs +9 -0
- package/dist/CardNumberSubText-BodR0y4J.js +59 -0
- package/dist/CardNumberSubText-DHRv5oGK.cjs +21 -0
- package/dist/CashbackDetailPage-1FhjvhSS.js +825 -0
- package/dist/CashbackDetailPage-MWLvfTvy.cjs +285 -0
- package/dist/ChargeCardDetailPage-Bfg9stCk.cjs +1462 -0
- package/dist/ChargeCardDetailPage-VONct0gh.js +5454 -0
- package/dist/ChargeCardListPage-DrkYwC6H.cjs +412 -0
- package/dist/ChargeCardListPage-xv3ZA_Ko.js +1797 -0
- package/dist/ChargeCardListTable-7B4CZeoC.cjs +711 -0
- package/dist/ChargeCardListTable-C1bo43ei.js +2901 -0
- package/dist/ChargeCardPromoPage-BLi1FNUA.cjs +222 -0
- package/dist/ChargeCardPromoPage-BrrKYg8Z.js +816 -0
- package/dist/ChargeCardSetupPage-C4QHiIBn.cjs +36 -0
- package/dist/ChargeCardSetupPage-DvwHIBL7.js +359 -0
- package/dist/ChargeCardStatementsPage-bNxmGaXV.cjs +60 -0
- package/dist/ChargeCardStatementsPage-cb2OWyHT.js +243 -0
- package/dist/CheckDepositDrawerPage-D82ridxA.cjs +206 -0
- package/dist/CheckDepositDrawerPage-XzYl6FFM.js +726 -0
- package/dist/CollapsableReportTable-BpJZ4hcC.cjs +2844 -0
- package/dist/CollapsableReportTable-D815Q4zZ.js +11659 -0
- package/dist/CompanyOfficerDetailsSection-CUdWNGUM.js +1633 -0
- package/dist/CompanyOfficerDetailsSection-Cy-7Fvey.cjs +260 -0
- package/dist/CompanyPassportCard-Cfm26XwI.cjs +42 -0
- package/dist/CompanyPassportCard-kTFMfAud.js +146 -0
- package/dist/CompanyPassportPage-Dtj6qf3i.cjs +574 -0
- package/dist/CompanyPassportPage-DwPDYETd.js +2160 -0
- package/dist/CompleteProfile-D9m5ZyN3.js +301 -0
- package/dist/CompleteProfile-DEJNkwX3.cjs +52 -0
- package/dist/ConfettiBurst-TCb7Eka6.js +37 -0
- package/dist/ConfettiBurst-q0dEPC2g.cjs +1 -0
- package/dist/CreateOrEditVendorPage-D2hQPVJ-.cjs +281 -0
- package/dist/CreateOrEditVendorPage-kOS27AeD.js +763 -0
- package/dist/CreditCardPaymentDrawerPage-Dx2DxQsQ.js +1170 -0
- package/dist/CreditCardPaymentDrawerPage-nFF6mX3W.cjs +224 -0
- package/dist/CurrencySelectField-B3Byj9kI.js +348 -0
- package/dist/CurrencySelectField-C8SZ46qR.cjs +139 -0
- package/dist/CustomerOnboardingActivationPage-B0hcdNxV.js +143 -0
- package/dist/CustomerOnboardingActivationPage-C1J3P3K5.cjs +88 -0
- package/dist/CustomerOnboardingContainerPage-eGZw6nLP.js +7 -0
- package/dist/CustomerOnboardingContainerPage-eLVxGsZQ.cjs +1 -0
- package/dist/CustomerOnboardingDetailPageSkeleton-Cb_WlX41.js +434 -0
- package/dist/CustomerOnboardingDetailPageSkeleton-YkXpLnxJ.cjs +162 -0
- package/dist/CustomerOnboardingNoStepsPage-B0I0D0Yl.js +424 -0
- package/dist/CustomerOnboardingNoStepsPage-DiRs_2Ix.cjs +66 -0
- package/dist/CustomerOnboardingPage-B8pfIbZr.cjs +107 -0
- package/dist/CustomerOnboardingPage-BPZVrXst.js +1094 -0
- package/dist/CustomerOnboardingProductSuitePage-DNSN8lN-.cjs +202 -0
- package/dist/CustomerOnboardingProductSuitePage-DhxFMDMI.js +348 -0
- package/dist/Dashboard-BaB4YgDw.js +5540 -0
- package/dist/Dashboard-C3qmsKW0.cjs +1551 -0
- package/dist/DashboardReportPage-CKmhY9yj.cjs +371 -0
- package/dist/DashboardReportPage-Cfz9CKll.js +2536 -0
- package/dist/DashboardSidebarBackgroundAnimation-B7kd1Hln.js +53 -0
- package/dist/DashboardSidebarBackgroundAnimation-CWmOXh9I.cjs +12 -0
- package/dist/DepositAccTransactionItem-DY-jbfLu.js +112 -0
- package/dist/DepositAccTransactionItem-DvjVJFCx.cjs +76 -0
- package/dist/DepositAccTransactionListPage-BbIEMtID.cjs +66 -0
- package/dist/DepositAccTransactionListPage-CDYDdhBH.js +152 -0
- package/dist/DomesticWireDetailsPage-Bo4tzYuC.js +189 -0
- package/dist/DomesticWireDetailsPage-D7jCZHU2.cjs +21 -0
- package/dist/DownloadOverlay-B00Jz90K.js +2148 -0
- package/dist/DownloadOverlay-KeOZbfQ8.cjs +439 -0
- package/dist/DrawerPage-CIQ0jEKx.js +208 -0
- package/dist/DrawerPage-DPnLLuHC.cjs +118 -0
- package/dist/EditPeoplePage-C9urawWu.js +392 -0
- package/dist/EditPeoplePage-Cmmgf8SA.cjs +55 -0
- package/dist/EditReimbursementDetailPage-BsISjbXe.cjs +865 -0
- package/dist/EditReimbursementDetailPage-DPmIh_uq.js +4531 -0
- package/dist/EmptySearchResults-BsFN1BVu.js +70 -0
- package/dist/EmptySearchResults-ClfxIMH8.cjs +46 -0
- package/dist/EntityDetailPage-B6lIDB84.js +82 -0
- package/dist/EntityDetailPage-CAqf8p2M.cjs +18 -0
- package/dist/EntitySummarySection-B0ITjfoA.cjs +149 -0
- package/dist/EntitySummarySection-BuntRvYc.js +530 -0
- package/dist/ExpenseAutomationOverviewPage-BMlyyJKf.js +807 -0
- package/dist/ExpenseAutomationOverviewPage-C_nl8Y3c.cjs +281 -0
- package/dist/ExpenseAutomationPage-Ce2PMixM.cjs +1650 -0
- package/dist/ExpenseAutomationPage-DKrt-NRm.js +11574 -0
- package/dist/ExpressPayPage-BOmmCcsF.js +1136 -0
- package/dist/ExpressPayPage-DnmHSO5k.cjs +168 -0
- package/dist/FeaturePreviewPage-AwSEVKQV.cjs +11 -0
- package/dist/FeaturePreviewPage-YY-w-KAu.js +114 -0
- package/dist/FollowStepsSection-CE5ao4Zk.js +1313 -0
- package/dist/FollowStepsSection-CXsT3UyJ.cjs +390 -0
- package/dist/GlobalReviewListPage-CFRDU1x7.js +1674 -0
- package/dist/GlobalReviewListPage-Dp1jEPQT.cjs +291 -0
- package/dist/InformationCardStack-BeupO2ua.js +219 -0
- package/dist/InformationCardStack-D5fAqQMU.cjs +31 -0
- package/dist/InsightsCardStack-Cg03BOWq.js +305 -0
- package/dist/InsightsCardStack-lyaqUcVn.cjs +79 -0
- package/dist/InsightsSection-C1TGZK4P.js +97 -0
- package/dist/InsightsSection-CfAXhjQZ.cjs +27 -0
- package/dist/IntegrationsSettingsPage-BZSIZxn6.js +136 -0
- package/dist/IntegrationsSettingsPage-CKeQGvE7.cjs +57 -0
- package/dist/InternationalWireSwiftDetailsPage-DFbKRtaP.js +753 -0
- package/dist/InternationalWireSwiftDetailsPage-fpHA5RfO.cjs +171 -0
- package/dist/InternationalWireVerificationPage-B8VRmrYg.cjs +292 -0
- package/dist/InternationalWireVerificationPage-XGIfBjgj.js +877 -0
- package/dist/InviteFormPage-BfXBfSCQ.js +873 -0
- package/dist/InviteFormPage-CzBKSaGW.cjs +312 -0
- package/dist/InvitePageListView-Bf7iFELZ.js +1764 -0
- package/dist/InvitePageListView-ckFr8pzq.cjs +739 -0
- package/dist/InvitePeoplePage-Cr8RhtUI.cjs +12 -0
- package/dist/InvitePeoplePage-DRy1T2zx.js +286 -0
- package/dist/InvoiceUploadSection-BnJvmK58.js +465 -0
- package/dist/InvoiceUploadSection-CPVOTNjT.cjs +140 -0
- package/dist/IssueChargeCardPage-C9_fG44Z.cjs +532 -0
- package/dist/IssueChargeCardPage-jeXLxL2W.js +2880 -0
- package/dist/LabeledAddressValue-DUQtRgYt.js +115 -0
- package/dist/LabeledAddressValue-Ds1uU_Se.cjs +49 -0
- package/dist/LabeledAddressValueField-DmYBrq-_.cjs +45 -0
- package/dist/LabeledAddressValueField-XhjcDi6Y.js +130 -0
- package/dist/LabeledControlledCheckBoxField-CJT9TWve.cjs +16 -0
- package/dist/LabeledControlledCheckBoxField-DLuBaU0w.js +73 -0
- package/dist/LabeledCreatableSingleSelectField-CdISQmAn.cjs +204 -0
- package/dist/LabeledCreatableSingleSelectField-uOEbO6QL.js +515 -0
- package/dist/LabeledDocumentField-CW3hGZnp.js +147 -0
- package/dist/LabeledDocumentField-RR6g8dUp.cjs +41 -0
- package/dist/LabeledDropDownFormattedTextField-Ba_UQmHq.js +163 -0
- package/dist/LabeledDropDownFormattedTextField-DTrEANYp.cjs +59 -0
- package/dist/LabeledEmailInputField-CSEGwFiq.js +425 -0
- package/dist/LabeledEmailInputField-CZOI9ttp.cjs +182 -0
- package/dist/LabeledItemWithButton-D71dxZZu.cjs +21 -0
- package/dist/LabeledItemWithButton-DooDwQjc.js +74 -0
- package/dist/LabeledNameField-BxWBg7d4.cjs +141 -0
- package/dist/LabeledNameField-PdLPakWg.js +293 -0
- package/dist/LabeledSingleSelectField--guZmgTH.js +372 -0
- package/dist/LabeledSingleSelectField-g2xptRKq.cjs +136 -0
- package/dist/LabeledSingleSelectWithoutClearableField-DTmg3P5i.js +103 -0
- package/dist/LabeledSingleSelectWithoutClearableField-GNomjaKw.cjs +38 -0
- package/dist/LabeledText-CjRhF_-Z.js +103 -0
- package/dist/LabeledText-D47gT_UQ.cjs +42 -0
- package/dist/LabeledUserSingleSelectWithSubtitlesField-CiFCQ-hB.cjs +229 -0
- package/dist/LabeledUserSingleSelectWithSubtitlesField-ViKeC5bK.js +572 -0
- package/dist/LabeledZeniRolesDropDownField-BExwZAbJ.cjs +297 -0
- package/dist/LabeledZeniRolesDropDownField-By2VvU4k.js +975 -0
- package/dist/LinkJETransactionPage-CU0wMpni.js +406 -0
- package/dist/LinkJETransactionPage-DLlfphRK.cjs +98 -0
- package/dist/LockCardPage-DPrH6_Ty.js +2032 -0
- package/dist/LockCardPage-Dhh_ixsq.cjs +623 -0
- package/dist/LowBalancePopup-CQl67yMA.js +219 -0
- package/dist/LowBalancePopup-DxrLTB7O.cjs +34 -0
- package/dist/MagicLinkACHDetailsPage-Bjl4Dhfe.cjs +1 -0
- package/dist/MagicLinkACHDetailsPage-DVSpY6Js.js +39 -0
- package/dist/MagicLinkDomesticWireDetailsPage-BAAx0bDj.cjs +1 -0
- package/dist/MagicLinkDomesticWireDetailsPage-DXExhIv3.js +44 -0
- package/dist/MagicLinkInternationalWireDetailsPage-CbPP2qYn.cjs +1 -0
- package/dist/MagicLinkInternationalWireDetailsPage-CcuPW6Na.js +43 -0
- package/dist/MagicLinkSuccessPage-CKpWv5W6.cjs +31 -0
- package/dist/MagicLinkSuccessPage-DsLywTLa.js +59 -0
- package/dist/MagicLinkTitleSection-ACtSS16T.cjs +17 -0
- package/dist/MagicLinkTitleSection-CZ7CLpj3.js +40 -0
- package/dist/MailingDetailsSection-BsABGCNK.cjs +21 -0
- package/dist/MailingDetailsSection-DtydGEjC.js +74 -0
- package/dist/MatchingOperatorDropdown-C1TIRqOu.js +572 -0
- package/dist/MatchingOperatorDropdown-CMFzpi35.cjs +130 -0
- package/dist/Menu-CrAYxg3V.cjs +17 -0
- package/dist/Menu-iIAwnB2d.js +110 -0
- package/dist/MoreMenuButton-BdM-PMgd.cjs +167 -0
- package/dist/MoreMenuButton-Dsvh8J53.js +569 -0
- package/dist/MyBankConnectionsSettingsPage-CdwXQRIJ.cjs +110 -0
- package/dist/MyBankConnectionsSettingsPage-DEvNG0dg.js +297 -0
- package/dist/MyPendingActivationChargeCardListPage-C-M8mYEV.cjs +6 -0
- package/dist/MyPendingActivationChargeCardListPage-CcnAT-bU.js +168 -0
- package/dist/MyProfileSettingsPage-BIkFqjXG.js +641 -0
- package/dist/MyProfileSettingsPage-BaR3dWbs.cjs +85 -0
- package/dist/NavBarWithPicker-DdA7uWkV.cjs +30 -0
- package/dist/NavBarWithPicker-DtMiNQbo.js +106 -0
- package/dist/NavigationArrow-B_YEliYp.cjs +47 -0
- package/dist/NavigationArrow-iXBhHtCd.js +88 -0
- package/dist/NavigationDots-B2XJYi7r.js +44 -0
- package/dist/NavigationDots-BxBMWzh2.cjs +15 -0
- package/dist/NewGlobalMerchantPage-Bd8K9rro.js +543 -0
- package/dist/NewGlobalMerchantPage-DFt6OLM7.cjs +160 -0
- package/dist/NoDataChart-2flS3On1.cjs +26 -0
- package/dist/NoDataChart-g1s7t17a.js +58 -0
- package/dist/NoDataTable-BpBCZD2g.cjs +8 -0
- package/dist/NoDataTable-CZL2RsEO.js +27 -0
- package/dist/NotFoundPage-DtWPP9Nw.js +71 -0
- package/dist/NotFoundPage-Sc9Atc3l.cjs +46 -0
- package/dist/NotificationSettingsPage-DHrUw8rV.js +541 -0
- package/dist/NotificationSettingsPage-YdTDwRGq.cjs +163 -0
- package/dist/NotificationsListConfig-Bgf4NE0c.cjs +1 -0
- package/dist/NotificationsListConfig-DpRgkfQu.js +10 -0
- package/dist/NotificationsPage-Cz47z2p0.js +2664 -0
- package/dist/NotificationsPage-D58yxaan.cjs +685 -0
- package/dist/OpExByVendorPage-BC4wewmt.cjs +100 -0
- package/dist/OpExByVendorPage-Bnoz6mT_.js +1058 -0
- package/dist/PandLWithForecastPage-BXdQGyLb.js +563 -0
- package/dist/PandLWithForecastPage-DUWZ1XHQ.cjs +107 -0
- package/dist/PaymentAccountSetupBillingAddressSection-0aBpMIkT.js +623 -0
- package/dist/PaymentAccountSetupBillingAddressSection-y0XoWaiD.cjs +106 -0
- package/dist/PeoplePage-CnKWCkuC.js +1994 -0
- package/dist/PeoplePage-eM5Zc7IP.cjs +675 -0
- package/dist/ProductsCarousel-BRGlDVak.js +309 -0
- package/dist/ProductsCarousel-CIY6l-Pv.cjs +142 -0
- package/dist/PromoBaseCards-B2QWYKd6.js +356 -0
- package/dist/PromoBaseCards-Dub2YvT5.cjs +218 -0
- package/dist/QBOConnectionDialog-CI7SWwPW.js +115 -0
- package/dist/QBOConnectionDialog-DbnupFhh.cjs +51 -0
- package/dist/QBOSetupSection-DC7WGVh5.js +167 -0
- package/dist/QBOSetupSection-DbPNJpeI.cjs +79 -0
- package/dist/ReimbursementApprovalRuleDetailPage-B_Uwh9m2.cjs +32 -0
- package/dist/ReimbursementApprovalRuleDetailPage-C8QgFHjc.js +272 -0
- package/dist/ReimbursementApprovalRulesPage-C7vmjYO8.js +429 -0
- package/dist/ReimbursementApprovalRulesPage-XrnwM9Qh.cjs +243 -0
- package/dist/ReimbursementDetailPage-6oxKwuYO.js +1514 -0
- package/dist/ReimbursementDetailPage-Vnu5ozZG.cjs +314 -0
- package/dist/ReimbursementPromoPage-BWh2g_VD.js +363 -0
- package/dist/ReimbursementPromoPage-pfyATpfa.cjs +84 -0
- package/dist/ReimbursementSetUpPage-CXfhAbpB.js +663 -0
- package/dist/ReimbursementSetUpPage-QO1lQgLA.cjs +140 -0
- package/dist/ReimbursementsBulkReviewDrawerPage-Bp6Q-wnG.js +204 -0
- package/dist/ReimbursementsBulkReviewDrawerPage-C8GprYJo.cjs +1 -0
- package/dist/ReloadCard-DkXPTfad.js +137 -0
- package/dist/ReloadCard-DpH2Lcci.cjs +26 -0
- package/dist/ReloadContainer-CPrPeatr.cjs +596 -0
- package/dist/ReloadContainer-_Z_v2JhE.js +2165 -0
- package/dist/ReportTableViewSelector-DDRMuSRj.js +689 -0
- package/dist/ReportTableViewSelector-XZHclxTM.cjs +150 -0
- package/dist/ReportsPage-BiWsBcBN.js +1315 -0
- package/dist/ReportsPage-C5p4OwUU.cjs +121 -0
- package/dist/RevenueChart-BGuyayAC.js +2240 -0
- package/dist/RevenueChart-yQlDFCnW.cjs +280 -0
- package/dist/ReviewDetailsPage-CS3Mz0u_.cjs +290 -0
- package/dist/ReviewDetailsPage-DKCGeFiL.js +1073 -0
- package/dist/ReviewOverlay-BU0wJZOc.js +299 -0
- package/dist/ReviewOverlay-CB0A6PQ9.cjs +152 -0
- package/dist/RoleWithToolTip-D_ma_IZw.js +72 -0
- package/dist/RoleWithToolTip-DbTvj0RC.cjs +22 -0
- package/dist/ScheduleDetailsFixedAssetsPage-CWPJdu9I.js +806 -0
- package/dist/ScheduleDetailsFixedAssetsPage-Co_U6tNu.cjs +37 -0
- package/dist/ScheduleDetailsPage-B9ll0-aV.js +726 -0
- package/dist/ScheduleDetailsPage-D8IWuRhJ.cjs +37 -0
- package/dist/ScheduleSequenceTable-C72nfCjX.cjs +324 -0
- package/dist/ScheduleSequenceTable-CcLCOyMd.js +1261 -0
- package/dist/SetUpAccountSection-C2xDQ8Cl.cjs +378 -0
- package/dist/SetUpAccountSection-D-2V_068.js +1469 -0
- package/dist/SignIn-BC3nYAzF.cjs +448 -0
- package/dist/SignIn-DxIt6sBE.js +1075 -0
- package/dist/SpendManagementListViewPage-DsZD1PFZ.js +631 -0
- package/dist/SpendManagementListViewPage-eYlDiFGJ.cjs +122 -0
- package/dist/SpendManagementPerTabPage-BIgapYDM.js +2903 -0
- package/dist/SpendManagementPerTabPage-PYmb95eJ.cjs +785 -0
- package/dist/SpendManagementSection-C1u09bWA.js +1043 -0
- package/dist/SpendManagementSection-VO315kwP.cjs +230 -0
- package/dist/StatementItem-DPT_B_HE.cjs +31 -0
- package/dist/StatementItem-Zj0u5-VZ.js +81 -0
- package/dist/StatementsPage-BsJIa0Mx.js +130 -0
- package/dist/StatementsPage-D_xQ8Ezl.cjs +58 -0
- package/dist/StatusSwitcher-B9aFVFkL.cjs +120 -0
- package/dist/StatusSwitcher-DwKQCBy2.js +319 -0
- package/dist/SubTabSwitcher-BCDcE80x.js +113 -0
- package/dist/SubTabSwitcher-dlo1C3ND.cjs +58 -0
- package/dist/SuccessAnimation-BKeDJIjj.js +52 -0
- package/dist/SuccessAnimation-m36wj6br.cjs +13 -0
- package/dist/SummaryCard-Ru0lPj1W.cjs +1 -0
- package/dist/SummaryCard-wHOcQTk8.js +25 -0
- package/dist/TaskDetailPage-BShEq64o.js +2533 -0
- package/dist/TaskDetailPage-CizAraQf.cjs +775 -0
- package/dist/TaskListRow-BCPQOyoP.cjs +556 -0
- package/dist/TaskListRow-M2R8VYJb.js +1950 -0
- package/dist/TaskManagementPage-BhSOkkiQ.cjs +508 -0
- package/dist/TaskManagementPage-iuOmcGzW.js +1935 -0
- package/dist/TimeRangeSwitcher-DSICVfrc.cjs +64 -0
- package/dist/TimeRangeSwitcher-tgGmC0yL.js +265 -0
- package/dist/TimeframeSwitcher-Cvbhu9uo.cjs +31 -0
- package/dist/TimeframeSwitcher-D9dH7pPc.js +103 -0
- package/dist/TimeframeSwitcherWithToggle-BEpKaiil.cjs +31 -0
- package/dist/TimeframeSwitcherWithToggle-D_o1DUM2.js +157 -0
- package/dist/TopExCard-B_OG-Q7h.js +569 -0
- package/dist/TopExCard-BcR8o3D6.cjs +38 -0
- package/dist/TopExDetailPage-BNkhedqt.js +318 -0
- package/dist/TopExDetailPage-Bu3RGUh9.cjs +132 -0
- package/dist/TransactionDetailPage-DFrFxrcZ.cjs +912 -0
- package/dist/TransactionDetailPage-eBuaYPcO.js +5238 -0
- package/dist/TransactionList-CIasxOEj.cjs +147 -0
- package/dist/TransactionList-CNq9Fxgz.js +558 -0
- package/dist/TransactionListBig-DnxRWT0W.js +658 -0
- package/dist/TransactionListBig-l_KSDjS9.cjs +284 -0
- package/dist/TransactionListPage-C1OkQVEu.js +145 -0
- package/dist/TransactionListPage-Dt0m9GFD.cjs +35 -0
- package/dist/TransactionVendorDetailPage-BZp47jJT.js +425 -0
- package/dist/TransactionVendorDetailPage-CUIXLam5.cjs +80 -0
- package/dist/TransferDrawerPage-Bn6U8xnt.js +1436 -0
- package/dist/TransferDrawerPage-CT2uGYfr.cjs +362 -0
- package/dist/TreasuryOverviewPage-BbgfnpLR.cjs +708 -0
- package/dist/TreasuryOverviewPage-Db-XkYIX.js +1890 -0
- package/dist/TreasuryPromoPage-D2-i-Unc.cjs +505 -0
- package/dist/TreasuryPromoPage-sRRsMBt5.js +1123 -0
- package/dist/TreasuryStatementsPage-D4LMjHLj.cjs +58 -0
- package/dist/TreasuryStatementsPage-DFK8GihV.js +131 -0
- package/dist/TreasuryTaxLetterPage-B88LdJke.js +131 -0
- package/dist/TreasuryTaxLetterPage-CH2Fhtvw.cjs +58 -0
- package/dist/TrendChart-BeUIq4q5.cjs +16 -0
- package/dist/TrendChart-tFrOrhM-.js +334 -0
- package/dist/TrendWithTransactions-BFd2BRIb.cjs +116 -0
- package/dist/TrendWithTransactions-D8LaefwN.js +346 -0
- package/dist/UncategorizedAccountsMappingPage-Dg5rgVN0.js +1159 -0
- package/dist/UncategorizedAccountsMappingPage-gWUhODBc.cjs +244 -0
- package/dist/UnitIntegrationPage-Dn0lMbWe.cjs +67 -0
- package/dist/UnitIntegrationPage-QGcHBTor.js +405 -0
- package/dist/UploadAdditionalDocumentOverlay-VenWxF3P.js +211 -0
- package/dist/UploadAdditionalDocumentOverlay-bKGBNc9J.cjs +38 -0
- package/dist/Vendor2FAPopup-CfX92Spy.cjs +1 -0
- package/dist/Vendor2FAPopup-Cy3VIXmg.js +69 -0
- package/dist/VendorACHDetailsPage-CLfcCkN7.js +43 -0
- package/dist/VendorACHDetailsPage-CujExOxP.cjs +1 -0
- package/dist/VendorDetailPage-C6TkWvln.js +1236 -0
- package/dist/VendorDetailPage-pX1VGWD2.cjs +257 -0
- package/dist/VendorDomesticWireDetailsPage-yyH_34LS.js +53 -0
- package/dist/VendorDomesticWireDetailsPage-zDo7gFU0.cjs +1 -0
- package/dist/VendorFiling1099EditablePage-CX4cw28O.js +842 -0
- package/dist/VendorFiling1099EditablePage-zyu5yXzU.cjs +175 -0
- package/dist/VendorFirstReviewPage-BY82nY0P.cjs +730 -0
- package/dist/VendorFirstReviewPage-DXiw0ArN.js +2748 -0
- package/dist/VendorInternationalWireDetailsPage-bg34exm9.cjs +152 -0
- package/dist/VendorInternationalWireDetailsPage-ig2b1QCG.js +968 -0
- package/dist/VendorInternationalWireSwiftDetailsPage-CAH5oLc4.cjs +1 -0
- package/dist/VendorInternationalWireSwiftDetailsPage-DplJcn9q.js +52 -0
- package/dist/VendorsAccountsSection-CAlMPFeB.cjs +68 -0
- package/dist/VendorsAccountsSection-Ca_QZZsw.js +279 -0
- package/dist/VerifyDevice-BdU-_wSq.js +298 -0
- package/dist/VerifyDevice-CDz_GP95.cjs +112 -0
- package/dist/VideoPlayer-KbSpL4WA.js +170 -0
- package/dist/VideoPlayer-MaaAYgjC.cjs +77 -0
- package/dist/VideoPopup-D_KiaHeY.cjs +31 -0
- package/dist/VideoPopup-rFHZRIjJ.js +60 -0
- package/dist/WarningsDrawerPage-CIeLUshI.cjs +92 -0
- package/dist/WarningsDrawerPage-h54_kyDo.js +228 -0
- package/dist/ZeniAccountDetailPage-D6YVwgj0.cjs +300 -0
- package/dist/ZeniAccountDetailPage-DHc_KhYI.js +908 -0
- package/dist/ZeniAccountListViewPage-BQYZ3rSn.js +1078 -0
- package/dist/ZeniAccountListViewPage-DfGyahns.cjs +441 -0
- package/dist/ZeniAccountNavBarPieces-Bt5Xfm_l.js +89 -0
- package/dist/ZeniAccountNavBarPieces-sXVt1SZp.cjs +14 -0
- package/dist/ZeniAccountPromoPage-B37YC0FG.js +522 -0
- package/dist/ZeniAccountPromoPage-CIOcnyCo.cjs +184 -0
- package/dist/ZeniAccountSetupPage-BsQI7yYV.js +309 -0
- package/dist/ZeniAccountSetupPage-GXlXuVwY.cjs +36 -0
- package/dist/ZeniAvatar-CLwl0ADq.cjs +13 -0
- package/dist/ZeniAvatar-Cn-GL-GL.js +34 -0
- package/dist/ZeniCopyright-B7URM3jD.js +9 -0
- package/dist/ZeniCopyright-CsE-pgtB.cjs +1 -0
- package/dist/ZeniDatePicker-BYzcklpM.cjs +187 -0
- package/dist/ZeniDatePicker-DvKM4otn.js +386 -0
- package/dist/ZeniTransferAmountSlider-C9U7bRD7.cjs +63 -0
- package/dist/ZeniTransferAmountSlider-DAUlLWxR.js +215 -0
- package/dist/analyticsHelper-BC6gM9mY.js +65 -0
- package/dist/analyticsHelper-CSantQg2.cjs +1 -0
- package/dist/calculateSize-BzRtMlAv.cjs +1 -0
- package/dist/calculateSize-aQN0bHsy.js +22 -0
- package/dist/chartTypes-CFQRSp7P.cjs +1 -0
- package/dist/chartTypes-DSzSznOO.js +47 -0
- package/dist/cockpit.cjs.js +2 -2
- package/dist/cockpit.esm.js +15 -15
- package/dist/common-BZYIkSpG.js +22 -0
- package/dist/common-Ccjw-xIO.cjs +1 -0
- package/dist/commonDimensions-BHIf5EV_.js +13 -0
- package/dist/commonDimensions-NSprtTYG.cjs +1 -0
- package/dist/components/aiCfo/components/AiCfoChainOfThoughts.d.ts +2 -0
- package/dist/components/aiCfo/components/AiCfoQuestionAnswer.d.ts +2 -0
- package/dist/components/common/uploadInvoice/InvoiceUploadSection.d.ts +2 -2
- package/dist/components/vendors/filling1099/VendorFiling1099EditablePage.d.ts +0 -1
- package/dist/detailCommon-BTDZZrKp.cjs +38 -0
- package/dist/detailCommon-Bu8STI8J.js +124 -0
- package/dist/downloadPdf-BY0Ja0lK.cjs +1 -0
- package/dist/downloadPdf-Bp5BmczQ.js +32 -0
- package/dist/index-CDBWihyC.cjs +21200 -0
- package/dist/index-HuMzFv1o.js +92386 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mapLoadingInProgressToTreeNode-BSbZI1Y9.js +25 -0
- package/dist/mapLoadingInProgressToTreeNode-BUAs4_YN.cjs +1 -0
- package/dist/mapSectionWithAcOnlyToTreeNode-BXK2HQzp.js +387 -0
- package/dist/mapSectionWithAcOnlyToTreeNode-C-AUZq-3.cjs +1 -0
- package/dist/mapSpacerToTreeNode-CKbT0JZL.js +25 -0
- package/dist/mapSpacerToTreeNode-DP0SIjZm.cjs +1 -0
- package/dist/mapTimeframeBalancesToTreeNode-6jYiywqc.js +24 -0
- package/dist/mapTimeframeBalancesToTreeNode-C6kldhnA.cjs +1 -0
- package/dist/mapTimeframeBalancesToTreeNode-CqrdqZgo.js +24 -0
- package/dist/mapTimeframeBalancesToTreeNode-DvIOKxW6.cjs +1 -0
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-BwKgwc5K.js +32 -0
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-DhfQWZQV.cjs +1 -0
- package/dist/sectionColor-COYw_sBK.cjs +1 -0
- package/dist/sectionColor-D5mSiicX.js +32 -0
- package/dist/toCOABalancesWithID-BqwwVVM3.js +8 -0
- package/dist/toCOABalancesWithID-CWEFl8ot.cjs +1 -0
- package/dist/toChartData-BrBeiHBz.js +76 -0
- package/dist/toChartData-D5mJ_qdq.cjs +1 -0
- package/dist/uploadAttachment-BiN5rzZ1.cjs +286 -0
- package/dist/uploadAttachment-NeaVu-4A.js +952 -0
- package/dist/zeniDatePicker.helpers-BkFDtUlK.cjs +1 -0
- package/dist/zeniDatePicker.helpers-DXQH-ANL.js +14 -0
- package/package.json +1 -1
- package/dist/ACHDetailsPage-C78PXATf.js +0 -160
- package/dist/ACHDetailsPage-DCMNit_Q.cjs +0 -21
- package/dist/AIPerformancePage-A9B1b6Bq.js +0 -1345
- package/dist/AIPerformancePage-q0mf4vKV.cjs +0 -539
- package/dist/AccountInfoPage-BcYp5xfr.js +0 -78
- package/dist/AccountInfoPage-Bo1ZQqjh.cjs +0 -18
- package/dist/AccountInfoPageContent-D5GSyh83.js +0 -428
- package/dist/AccountInfoPageContent-DQBI7FIP.cjs +0 -149
- package/dist/AccountLockedInfoModal-BGXnJHpv.cjs +0 -59
- package/dist/AccountLockedInfoModal-CJH03Ze0.js +0 -125
- package/dist/AccountReconDetailsDrawerPage-Bk0mbM0U.cjs +0 -239
- package/dist/AccountReconDetailsDrawerPage-Fynq6YQK.js +0 -689
- package/dist/AccountRow-DYtaeqEW.js +0 -1014
- package/dist/AccountRow-sA0ANApO.cjs +0 -298
- package/dist/AccountsPromoCardStack-BFoPFsdP.cjs +0 -207
- package/dist/AccountsPromoCardStack-DNU3mzYd.js +0 -664
- package/dist/AddAddressForCardDrawer--ztd2Qy2.js +0 -82
- package/dist/AddAddressForCardDrawer-CH2-sLwe.cjs +0 -6
- package/dist/AddToWalletPage-0PVUi5mE.cjs +0 -344
- package/dist/AddToWalletPage-mQrAHUrc.js +0 -642
- package/dist/AgingReportsPage-BD7tIwgw.js +0 -827
- package/dist/AgingReportsPage-CBsaQ26K.cjs +0 -79
- package/dist/AllUserItems-8veK18s1.js +0 -979
- package/dist/AllUserItems-BVWBcD9G.cjs +0 -192
- package/dist/ApAgingDetailPage-CJCVrVD4.js +0 -239
- package/dist/ApAgingDetailPage-DfVNSXAa.cjs +0 -46
- package/dist/AppBasePage-B9o5hU-K.cjs +0 -71
- package/dist/AppBasePage-k7eNnwI5.js +0 -120
- package/dist/AppDrawerContent-BNAK9j52.cjs +0 -91
- package/dist/AppDrawerContent-XJzsOb64.js +0 -379
- package/dist/ApprovalRulesSettingsPage-C6B-b4ph.cjs +0 -47
- package/dist/ApprovalRulesSettingsPage-CXlazXMA.js +0 -145
- package/dist/ArAgingChart-3TAljb--.cjs +0 -24
- package/dist/ArAgingChart-D1lnoN-q.js +0 -530
- package/dist/ArAgingDetailPage-BmR3AOts.cjs +0 -46
- package/dist/ArAgingDetailPage-CMdr6iuF.js +0 -243
- package/dist/AttachmentView-H1AjhQbA.cjs +0 -101
- package/dist/AttachmentView-pAL5ke4g.js +0 -260
- package/dist/BankAccountSection-CSOMVtCz.js +0 -398
- package/dist/BankAccountSection-DoptuJ__.cjs +0 -79
- package/dist/BankAccountWarningSection-D2CFkT4U.js +0 -110
- package/dist/BankAccountWarningSection-x4Yp4OTF.cjs +0 -51
- package/dist/BankConnectionsSettingsPage-BPZLhFKp.js +0 -1694
- package/dist/BankConnectionsSettingsPage-DewQ-KlC.cjs +0 -425
- package/dist/BillDetailPage-BMIqFqKM.cjs +0 -266
- package/dist/BillDetailPage-BmH5QxKo.js +0 -1806
- package/dist/BillPayApprovalRuleDetailPage-CctDFgE9.js +0 -266
- package/dist/BillPayApprovalRuleDetailPage-GsB6eCcx.cjs +0 -27
- package/dist/BillPayApprovalRulesPage-DB_lM4JK.js +0 -431
- package/dist/BillPayApprovalRulesPage-bsKFCr0N.cjs +0 -241
- package/dist/BillPayPromoPage-DX7xfCWv.js +0 -292
- package/dist/BillPayPromoPage-Dynx9uQn.cjs +0 -84
- package/dist/BillPaySetUpPage-B7KCQNqb.js +0 -408
- package/dist/BillPaySetUpPage-DiLRyuLu.cjs +0 -42
- package/dist/BillingSettingsPage-CaagySie.cjs +0 -44
- package/dist/BillingSettingsPage-Ccv9BfN4.js +0 -336
- package/dist/BillsBulkReviewDrawerPage-BlAgaj_S.js +0 -216
- package/dist/BillsBulkReviewDrawerPage-Dhqxh-Z9.cjs +0 -1
- package/dist/BoxItem-BfE-4QAg.js +0 -118
- package/dist/BoxItem-C_smSuhG.cjs +0 -53
- package/dist/BusinessVerificationPage-0luZLh6W.js +0 -716
- package/dist/BusinessVerificationPage-CVAV1Pvk.cjs +0 -138
- package/dist/BusyIndication-B3iBMEgi.cjs +0 -9
- package/dist/BusyIndication-CZjWyk7H.js +0 -19
- package/dist/CardNumberSubText-COss-nns.js +0 -59
- package/dist/CardNumberSubText-XXjcJBNq.cjs +0 -21
- package/dist/CashbackDetailPage-D1JKbKJy.cjs +0 -285
- package/dist/CashbackDetailPage-D8q-wNny.js +0 -825
- package/dist/ChargeCardDetailPage-CRVJktnJ.js +0 -5454
- package/dist/ChargeCardDetailPage-Cxmcjqmy.cjs +0 -1462
- package/dist/ChargeCardListPage-BrwprewY.cjs +0 -412
- package/dist/ChargeCardListPage-vC--C5Ud.js +0 -1797
- package/dist/ChargeCardListTable-Dk9Jy7nV.js +0 -2901
- package/dist/ChargeCardListTable-Dw3M35Vf.cjs +0 -711
- package/dist/ChargeCardPromoPage-B5IXOPq0.js +0 -816
- package/dist/ChargeCardPromoPage-DMeWORtk.cjs +0 -222
- package/dist/ChargeCardSetupPage-D5gbM6SW.cjs +0 -36
- package/dist/ChargeCardSetupPage-n9icC7ne.js +0 -359
- package/dist/ChargeCardStatementsPage-DKikEWQk.js +0 -243
- package/dist/ChargeCardStatementsPage-qw1y3yeu.cjs +0 -60
- package/dist/CheckDepositDrawerPage-ClepCd3O.js +0 -726
- package/dist/CheckDepositDrawerPage-DY2tuoGO.cjs +0 -206
- package/dist/CollapsableReportTable-CTfUhOVN.js +0 -11659
- package/dist/CollapsableReportTable-Eron9-g4.cjs +0 -2844
- package/dist/CompanyOfficerDetailsSection-DSPuQZzo.cjs +0 -260
- package/dist/CompanyOfficerDetailsSection-Dz-w-nUg.js +0 -1633
- package/dist/CompanyPassportCard-D9bvNwW0.cjs +0 -42
- package/dist/CompanyPassportCard-zvLDKG-j.js +0 -146
- package/dist/CompanyPassportPage-CIejIliJ.js +0 -2160
- package/dist/CompanyPassportPage-CUQCoX55.cjs +0 -574
- package/dist/CompleteProfile-7e5kkw7l.js +0 -301
- package/dist/CompleteProfile-C76UVrQF.cjs +0 -52
- package/dist/ConfettiBurst-Bmtp2A6D.js +0 -37
- package/dist/ConfettiBurst-CryShx_m.cjs +0 -1
- package/dist/CreateOrEditVendorPage-CjJhYOHw.cjs +0 -281
- package/dist/CreateOrEditVendorPage-anLleWFM.js +0 -763
- package/dist/CreditCardPaymentDrawerPage-DHrXyK6d.js +0 -1170
- package/dist/CreditCardPaymentDrawerPage-E2eRkk7t.cjs +0 -224
- package/dist/CurrencySelectField-C2DWaKYJ.js +0 -348
- package/dist/CurrencySelectField-DYXG-c73.cjs +0 -139
- package/dist/CustomerOnboardingActivationPage-CeRCMaqt.cjs +0 -88
- package/dist/CustomerOnboardingActivationPage-CvSNuak0.js +0 -143
- package/dist/CustomerOnboardingContainerPage-BdWD0BPW.cjs +0 -1
- package/dist/CustomerOnboardingContainerPage-DSDhbE_3.js +0 -7
- package/dist/CustomerOnboardingDetailPageSkeleton-B3jjDtWt.cjs +0 -162
- package/dist/CustomerOnboardingDetailPageSkeleton-DIc-yx7I.js +0 -434
- package/dist/CustomerOnboardingNoStepsPage-B3xO1C2i.js +0 -424
- package/dist/CustomerOnboardingNoStepsPage-CN1rhJAM.cjs +0 -66
- package/dist/CustomerOnboardingPage-Bldn-B4U.cjs +0 -107
- package/dist/CustomerOnboardingPage-Dvze92V-.js +0 -1094
- package/dist/CustomerOnboardingProductSuitePage-C0PaOSMT.js +0 -348
- package/dist/CustomerOnboardingProductSuitePage-DrhAVi9e.cjs +0 -202
- package/dist/Dashboard-CpIYf1JV.js +0 -5540
- package/dist/Dashboard-D8Wsx4k_.cjs +0 -1551
- package/dist/DashboardReportPage-CTGbfnk5.cjs +0 -371
- package/dist/DashboardReportPage-D_DFtDK9.js +0 -2536
- package/dist/DashboardSidebarBackgroundAnimation-BjQbrik-.js +0 -53
- package/dist/DashboardSidebarBackgroundAnimation-CWqj_P-Z.cjs +0 -12
- package/dist/DepositAccTransactionItem-DtSlf7up.cjs +0 -76
- package/dist/DepositAccTransactionItem-H98xyCKy.js +0 -112
- package/dist/DepositAccTransactionListPage-CJK7Z0kz.js +0 -152
- package/dist/DepositAccTransactionListPage-Cc66IzSA.cjs +0 -66
- package/dist/DomesticWireDetailsPage-DR2BZaq5.cjs +0 -21
- package/dist/DomesticWireDetailsPage-OyXoXxfD.js +0 -189
- package/dist/DownloadOverlay-BGTI5CSN.js +0 -2148
- package/dist/DownloadOverlay-BM3umDS0.cjs +0 -439
- package/dist/DrawerPage-BmlSaniY.cjs +0 -118
- package/dist/DrawerPage-CYvDrvSt.js +0 -208
- package/dist/EditPeoplePage-DjN1oCMh.cjs +0 -55
- package/dist/EditPeoplePage-f-7vZCnj.js +0 -392
- package/dist/EditReimbursementDetailPage-DGUEO1Qp.js +0 -4531
- package/dist/EditReimbursementDetailPage-uN6SkbJx.cjs +0 -865
- package/dist/EmptySearchResults-CDNEVLbd.cjs +0 -46
- package/dist/EmptySearchResults-TCP9mVXs.js +0 -70
- package/dist/EntityDetailPage-4pAOvSpW.js +0 -82
- package/dist/EntityDetailPage-6pLfYmeF.cjs +0 -18
- package/dist/EntitySummarySection-CEhQJFjQ.js +0 -530
- package/dist/EntitySummarySection-DhZMWHSF.cjs +0 -149
- package/dist/ExpenseAutomationOverviewPage-CwWmobWY.cjs +0 -281
- package/dist/ExpenseAutomationOverviewPage-DTrr7ETg.js +0 -807
- package/dist/ExpenseAutomationPage-BEq1IU3f.js +0 -11574
- package/dist/ExpenseAutomationPage-BX8-ydwQ.cjs +0 -1650
- package/dist/ExpressPayPage-BugeCQgp.js +0 -1136
- package/dist/ExpressPayPage-DrvOXoYN.cjs +0 -168
- package/dist/FeaturePreviewPage-BcFnQokj.js +0 -114
- package/dist/FeaturePreviewPage-CaoooUoN.cjs +0 -11
- package/dist/FollowStepsSection-D2T5zObj.js +0 -1313
- package/dist/FollowStepsSection-DkOZgwmG.cjs +0 -390
- package/dist/GlobalReviewListPage-D4HANgzz.cjs +0 -291
- package/dist/GlobalReviewListPage-yP0XUYRS.js +0 -1674
- package/dist/InformationCardStack-CpqnFT5K.js +0 -219
- package/dist/InformationCardStack-Cwt4fTSE.cjs +0 -31
- package/dist/InsightsCardStack-94LDR_pF.cjs +0 -79
- package/dist/InsightsCardStack-DfL2Xycn.js +0 -305
- package/dist/InsightsSection-BCDCAPHF.cjs +0 -27
- package/dist/InsightsSection-CCLVRPkT.js +0 -97
- package/dist/IntegrationsSettingsPage-BCoMOvqj.cjs +0 -57
- package/dist/IntegrationsSettingsPage-C30bHy3W.js +0 -136
- package/dist/InternationalWireSwiftDetailsPage-BWkXyRVp.cjs +0 -171
- package/dist/InternationalWireSwiftDetailsPage-xTxmuyFG.js +0 -753
- package/dist/InternationalWireVerificationPage-BogP472N.cjs +0 -292
- package/dist/InternationalWireVerificationPage-mCAdItEl.js +0 -877
- package/dist/InviteFormPage-Dptlm7_G.cjs +0 -312
- package/dist/InviteFormPage-WLzoYAzP.js +0 -873
- package/dist/InvitePageListView-C-iP0ihB.js +0 -1764
- package/dist/InvitePageListView-CXPWnUta.cjs +0 -739
- package/dist/InvitePeoplePage-B985kDnU.js +0 -286
- package/dist/InvitePeoplePage-DD62gyr2.cjs +0 -12
- package/dist/InvoiceUploadSection-BBooXqlK.js +0 -465
- package/dist/InvoiceUploadSection-C8Wz3ol_.cjs +0 -140
- package/dist/IssueChargeCardPage-5mjmhsBs.js +0 -2880
- package/dist/IssueChargeCardPage-CPCPBnxb.cjs +0 -532
- package/dist/LabeledAddressValue-BmaAqV7M.js +0 -115
- package/dist/LabeledAddressValue-CK1qJTjK.cjs +0 -49
- package/dist/LabeledAddressValueField-BhTqrXQ-.cjs +0 -45
- package/dist/LabeledAddressValueField-z9xoJCh-.js +0 -130
- package/dist/LabeledControlledCheckBoxField-DOiFpYwe.js +0 -73
- package/dist/LabeledControlledCheckBoxField-W8JWRtmj.cjs +0 -16
- package/dist/LabeledCreatableSingleSelectField-BlsoAD-C.cjs +0 -204
- package/dist/LabeledCreatableSingleSelectField-DpD-Er04.js +0 -515
- package/dist/LabeledDocumentField-D3GMqH1-.cjs +0 -41
- package/dist/LabeledDocumentField-Dbc-q8_U.js +0 -147
- package/dist/LabeledDropDownFormattedTextField-BqFLON2K.cjs +0 -59
- package/dist/LabeledDropDownFormattedTextField-CIQ8budF.js +0 -163
- package/dist/LabeledEmailInputField-C92rOdBG.cjs +0 -182
- package/dist/LabeledEmailInputField-DBMpOhLa.js +0 -425
- package/dist/LabeledItemWithButton-B_hCRZia.cjs +0 -21
- package/dist/LabeledItemWithButton-Dk1axJZB.js +0 -74
- package/dist/LabeledNameField-BNQ4TrGq.js +0 -293
- package/dist/LabeledNameField-zaWdnPBL.cjs +0 -141
- package/dist/LabeledSingleSelectField-CfqkCts5.js +0 -372
- package/dist/LabeledSingleSelectField-ir_PnOFh.cjs +0 -136
- package/dist/LabeledSingleSelectWithoutClearableField-CgfbaqY-.cjs +0 -38
- package/dist/LabeledSingleSelectWithoutClearableField-DQt0UU9I.js +0 -103
- package/dist/LabeledText-BCW3s6LR.cjs +0 -42
- package/dist/LabeledText-Be4g2zka.js +0 -103
- package/dist/LabeledUserSingleSelectWithSubtitlesField-CnXP56W-.cjs +0 -229
- package/dist/LabeledUserSingleSelectWithSubtitlesField-e6H1P3E9.js +0 -572
- package/dist/LabeledZeniRolesDropDownField-IipQe28p.js +0 -975
- package/dist/LabeledZeniRolesDropDownField-u2jilWK6.cjs +0 -297
- package/dist/LinkJETransactionPage-D74kskd2.cjs +0 -98
- package/dist/LinkJETransactionPage-Du7u18S5.js +0 -406
- package/dist/LockCardPage--H-WtgVC.js +0 -2032
- package/dist/LockCardPage-D3aa1HAe.cjs +0 -623
- package/dist/LowBalancePopup-D2Tke6ES.js +0 -219
- package/dist/LowBalancePopup-MqkLSpbq.cjs +0 -34
- package/dist/MagicLinkACHDetailsPage-B_Ii2ZpU.cjs +0 -1
- package/dist/MagicLinkACHDetailsPage-ChushVN2.js +0 -39
- package/dist/MagicLinkDomesticWireDetailsPage--Cvgqypz.js +0 -44
- package/dist/MagicLinkDomesticWireDetailsPage-CiZgbfX-.cjs +0 -1
- package/dist/MagicLinkInternationalWireDetailsPage--dEz9tyG.js +0 -43
- package/dist/MagicLinkInternationalWireDetailsPage-Cx_CphzQ.cjs +0 -1
- package/dist/MagicLinkSuccessPage-BQf9VM8F.cjs +0 -31
- package/dist/MagicLinkSuccessPage-C_qsnSer.js +0 -59
- package/dist/MagicLinkTitleSection-BKNw-T9D.cjs +0 -17
- package/dist/MagicLinkTitleSection-BzFyzj29.js +0 -40
- package/dist/MailingDetailsSection-BL8xkl51.cjs +0 -21
- package/dist/MailingDetailsSection-CflsAymm.js +0 -74
- package/dist/MatchingOperatorDropdown-BumRwydq.js +0 -572
- package/dist/MatchingOperatorDropdown-aLIjXCdz.cjs +0 -130
- package/dist/Menu-CIBL84Mx.cjs +0 -17
- package/dist/Menu-DLMtD6RS.js +0 -110
- package/dist/MoreMenuButton-CsIRtjDN.cjs +0 -167
- package/dist/MoreMenuButton-DDDW6RA8.js +0 -569
- package/dist/MyBankConnectionsSettingsPage-BCaCHXn1.js +0 -297
- package/dist/MyBankConnectionsSettingsPage-Dgx278Xa.cjs +0 -110
- package/dist/MyPendingActivationChargeCardListPage-BbYvfR2J.cjs +0 -6
- package/dist/MyPendingActivationChargeCardListPage-DojLZtkw.js +0 -168
- package/dist/MyProfileSettingsPage-CrMORarf.js +0 -641
- package/dist/MyProfileSettingsPage-jAbM2amx.cjs +0 -85
- package/dist/NavBarWithPicker-C0vAdwr9.cjs +0 -30
- package/dist/NavBarWithPicker-DkdzxK8n.js +0 -106
- package/dist/NavigationArrow-2QWAyNFb.cjs +0 -47
- package/dist/NavigationArrow-BywssTuy.js +0 -88
- package/dist/NavigationDots-BJPh9p08.js +0 -44
- package/dist/NavigationDots-BVkm3E8a.cjs +0 -15
- package/dist/NewGlobalMerchantPage--l7roBPD.cjs +0 -160
- package/dist/NewGlobalMerchantPage-B-GKNfPY.js +0 -543
- package/dist/NoDataChart-CQm_xvKe.cjs +0 -26
- package/dist/NoDataChart-Cn6PixBA.js +0 -58
- package/dist/NoDataTable-Bg_cQX5s.js +0 -27
- package/dist/NoDataTable-Bk83v6gQ.cjs +0 -8
- package/dist/NotFoundPage-HMpdTmPE.cjs +0 -46
- package/dist/NotFoundPage-qQicZmBQ.js +0 -71
- package/dist/NotificationSettingsPage-DLQHJLYB.js +0 -541
- package/dist/NotificationSettingsPage-Dqk_ocFq.cjs +0 -163
- package/dist/NotificationsListConfig-BqUmz3VE.cjs +0 -1
- package/dist/NotificationsListConfig-CDBuWOvX.js +0 -10
- package/dist/NotificationsPage-Bgb5Xtao.cjs +0 -685
- package/dist/NotificationsPage-CNVA9gmH.js +0 -2664
- package/dist/OpExByVendorPage-B3jlKYWV.js +0 -1058
- package/dist/OpExByVendorPage-CSYt76EN.cjs +0 -100
- package/dist/PandLWithForecastPage-BdtyRb-h.cjs +0 -107
- package/dist/PandLWithForecastPage-jUKPXyOy.js +0 -563
- package/dist/PaymentAccountSetupBillingAddressSection-Cs5FBGAZ.cjs +0 -106
- package/dist/PaymentAccountSetupBillingAddressSection-IEi7uqKQ.js +0 -623
- package/dist/PeoplePage-7l152NtR.cjs +0 -675
- package/dist/PeoplePage-C0VaNVoR.js +0 -1994
- package/dist/ProductsCarousel-CEk7Ua1B.cjs +0 -142
- package/dist/ProductsCarousel-DdWxrpc2.js +0 -309
- package/dist/PromoBaseCards-BX7aKwZ6.cjs +0 -218
- package/dist/PromoBaseCards-BylqO8Jd.js +0 -356
- package/dist/QBOConnectionDialog-C3K7ibYx.js +0 -115
- package/dist/QBOConnectionDialog-CbBMV-2u.cjs +0 -51
- package/dist/QBOSetupSection-BI_GFvHG.cjs +0 -79
- package/dist/QBOSetupSection-CVXNmWB0.js +0 -167
- package/dist/ReimbursementApprovalRuleDetailPage-DsDv6XbV.cjs +0 -26
- package/dist/ReimbursementApprovalRuleDetailPage-OcPplkQB.js +0 -266
- package/dist/ReimbursementApprovalRulesPage-CWI8gJYi.cjs +0 -243
- package/dist/ReimbursementApprovalRulesPage-J60ASu_i.js +0 -429
- package/dist/ReimbursementDetailPage-DYGWPTB-.js +0 -1514
- package/dist/ReimbursementDetailPage-DtWu36I5.cjs +0 -314
- package/dist/ReimbursementPromoPage-FPWpPZnG.js +0 -363
- package/dist/ReimbursementPromoPage-uuCmFThH.cjs +0 -84
- package/dist/ReimbursementSetUpPage-Dr8rIlJ9.js +0 -663
- package/dist/ReimbursementSetUpPage-J_ILY51w.cjs +0 -140
- package/dist/ReimbursementsBulkReviewDrawerPage-BR94z18c.js +0 -204
- package/dist/ReimbursementsBulkReviewDrawerPage-BSyJIEUy.cjs +0 -1
- package/dist/ReloadCard-CYKfxP6l.js +0 -137
- package/dist/ReloadCard-Cz3Y-4NP.cjs +0 -26
- package/dist/ReloadContainer-CK6suOTs.cjs +0 -596
- package/dist/ReloadContainer-Cbl0Qt-i.js +0 -2165
- package/dist/ReportTableViewSelector-DYEPVDOk.cjs +0 -150
- package/dist/ReportTableViewSelector-ZGRPcGub.js +0 -689
- package/dist/ReportsPage-DG93d-yy.cjs +0 -121
- package/dist/ReportsPage-DMNKYN7z.js +0 -1315
- package/dist/RevenueChart-C2Snpev5.cjs +0 -280
- package/dist/RevenueChart-C6is-Jzo.js +0 -2240
- package/dist/ReviewDetailsPage-L69Q46kT.js +0 -1073
- package/dist/ReviewDetailsPage-tll6iB7n.cjs +0 -290
- package/dist/ReviewOverlay-BCFAj4ST.js +0 -299
- package/dist/ReviewOverlay-Cd3BBkM_.cjs +0 -152
- package/dist/RoleWithToolTip-D6gQXSP_.cjs +0 -22
- package/dist/RoleWithToolTip-ZNGdByEv.js +0 -72
- package/dist/ScheduleDetailsFixedAssetsPage-D6om63Pv.cjs +0 -37
- package/dist/ScheduleDetailsFixedAssetsPage-HiINEEkR.js +0 -806
- package/dist/ScheduleDetailsPage-Bb6iAGy8.js +0 -726
- package/dist/ScheduleDetailsPage-BnjKNfqd.cjs +0 -37
- package/dist/ScheduleSequenceTable-BNw1rXKI.js +0 -1261
- package/dist/ScheduleSequenceTable-DaquoT3U.cjs +0 -324
- package/dist/SetUpAccountSection-CEpB-3aK.js +0 -1469
- package/dist/SetUpAccountSection-CNYoKOB4.cjs +0 -378
- package/dist/SignIn-BUiV4eO2.js +0 -1075
- package/dist/SignIn-CaazifJx.cjs +0 -448
- package/dist/SpendManagementListViewPage-DZ2XRBhX.js +0 -631
- package/dist/SpendManagementListViewPage-H3HwGGDs.cjs +0 -122
- package/dist/SpendManagementPerTabPage-B4HNUwVw.js +0 -2903
- package/dist/SpendManagementPerTabPage-D2CyOvtU.cjs +0 -785
- package/dist/SpendManagementSection-CYstF9I8.cjs +0 -230
- package/dist/SpendManagementSection-D2hgrwcQ.js +0 -1043
- package/dist/StatementItem-BrlTHkYw.cjs +0 -31
- package/dist/StatementItem-Fb8FofLD.js +0 -81
- package/dist/StatementsPage-B5itiR2Y.cjs +0 -58
- package/dist/StatementsPage-CvOdphaF.js +0 -130
- package/dist/StatusSwitcher-C4auaVLG.js +0 -319
- package/dist/StatusSwitcher-D3dgvoJR.cjs +0 -120
- package/dist/SubTabSwitcher-B931kU3W.js +0 -113
- package/dist/SubTabSwitcher-De6nrbSz.cjs +0 -58
- package/dist/SuccessAnimation-CPWqji7A.cjs +0 -13
- package/dist/SuccessAnimation-CPp4PcCY.js +0 -52
- package/dist/SummaryCard-B20sskXu.js +0 -25
- package/dist/SummaryCard-JzyqrVDv.cjs +0 -1
- package/dist/TaskDetailPage-Bz3raNkm.js +0 -2533
- package/dist/TaskDetailPage-h1VDj6d2.cjs +0 -775
- package/dist/TaskListRow-B7Qxjhil.cjs +0 -556
- package/dist/TaskListRow-BZsSMvZj.js +0 -1950
- package/dist/TaskManagementPage-DHj-66ii.js +0 -1935
- package/dist/TaskManagementPage-DsuGQ7hd.cjs +0 -508
- package/dist/TimeRangeSwitcher-C_mC_w5d.cjs +0 -64
- package/dist/TimeRangeSwitcher-Dm_5jjsS.js +0 -265
- package/dist/TimeframeSwitcher-CX1iPOpe.cjs +0 -31
- package/dist/TimeframeSwitcher-DUS3phv2.js +0 -103
- package/dist/TimeframeSwitcherWithToggle-CPOyeJN7.cjs +0 -31
- package/dist/TimeframeSwitcherWithToggle-CPtIhvVj.js +0 -157
- package/dist/TopExCard-3l0FRlw4.cjs +0 -38
- package/dist/TopExCard-BSAezMA5.js +0 -569
- package/dist/TopExDetailPage-B6XEY9p8.cjs +0 -132
- package/dist/TopExDetailPage-Cl-IKUbH.js +0 -318
- package/dist/TransactionDetailPage-_xqommhu.cjs +0 -912
- package/dist/TransactionDetailPage-jB7My6-g.js +0 -5238
- package/dist/TransactionList-BXXS7CFl.cjs +0 -147
- package/dist/TransactionList-BbYgOogU.js +0 -558
- package/dist/TransactionListBig-1RG96pJq.cjs +0 -284
- package/dist/TransactionListBig-z3gz1RnR.js +0 -658
- package/dist/TransactionListPage-CTvFonOi.js +0 -145
- package/dist/TransactionListPage-CTyxlbdd.cjs +0 -35
- package/dist/TransactionVendorDetailPage-BReMDz6E.cjs +0 -80
- package/dist/TransactionVendorDetailPage-hRav7tW7.js +0 -425
- package/dist/TransferDrawerPage-BQS0LN0a.cjs +0 -362
- package/dist/TransferDrawerPage-O2HsbGH-.js +0 -1436
- package/dist/TreasuryOverviewPage-66EUiBJ8.js +0 -1890
- package/dist/TreasuryOverviewPage-BCgZrQ7x.cjs +0 -708
- package/dist/TreasuryPromoPage-DmfodmyK.cjs +0 -505
- package/dist/TreasuryPromoPage-zyTZ-BAb.js +0 -1123
- package/dist/TreasuryStatementsPage-2iG7omBL.cjs +0 -58
- package/dist/TreasuryStatementsPage-D9MJ7T3x.js +0 -131
- package/dist/TreasuryTaxLetterPage-BZRyaIkC.cjs +0 -58
- package/dist/TreasuryTaxLetterPage-Ck3AGvRf.js +0 -131
- package/dist/TrendChart-BW32ef_8.js +0 -334
- package/dist/TrendChart-IhW6W0nl.cjs +0 -16
- package/dist/TrendWithTransactions-BuhaLWRV.js +0 -346
- package/dist/TrendWithTransactions-D4uJMWQI.cjs +0 -116
- package/dist/UncategorizedAccountsMappingPage-B8Xr_349.cjs +0 -244
- package/dist/UncategorizedAccountsMappingPage-e8FuocLj.js +0 -1159
- package/dist/UnitIntegrationPage-Bk-J2jcE.js +0 -405
- package/dist/UnitIntegrationPage-cIzk14w1.cjs +0 -67
- package/dist/UploadAdditionalDocumentOverlay-BJN8zZXF.js +0 -211
- package/dist/UploadAdditionalDocumentOverlay-DMzsVsks.cjs +0 -38
- package/dist/Vendor2FAPopup-DcCQSIKE.js +0 -69
- package/dist/Vendor2FAPopup-qvKKMCcg.cjs +0 -1
- package/dist/VendorACHDetailsPage-6VzWsxca.js +0 -43
- package/dist/VendorACHDetailsPage-DBMQ1lqy.cjs +0 -1
- package/dist/VendorDetailPage-BgkNNmxT.cjs +0 -257
- package/dist/VendorDetailPage-DcqcP_NS.js +0 -1236
- package/dist/VendorDomesticWireDetailsPage-DWM3RGk2.js +0 -53
- package/dist/VendorDomesticWireDetailsPage-JmedNQFS.cjs +0 -1
- package/dist/VendorFiling1099EditablePage-B89RHcJj.cjs +0 -175
- package/dist/VendorFiling1099EditablePage-CXt3gLm6.js +0 -842
- package/dist/VendorFirstReviewPage--p10i4CU.js +0 -2748
- package/dist/VendorFirstReviewPage-DfiL-ShD.cjs +0 -730
- package/dist/VendorInternationalWireDetailsPage-DUUp3u94.cjs +0 -152
- package/dist/VendorInternationalWireDetailsPage-DseD0t9u.js +0 -968
- package/dist/VendorInternationalWireSwiftDetailsPage-B10SMgeV.cjs +0 -1
- package/dist/VendorInternationalWireSwiftDetailsPage-CzG-tKM_.js +0 -52
- package/dist/VendorsAccountsSection-BSPT16TT.js +0 -279
- package/dist/VendorsAccountsSection-CxlQnpn5.cjs +0 -68
- package/dist/VerifyDevice-B7gDhSkE.cjs +0 -112
- package/dist/VerifyDevice-DI4rNWWi.js +0 -298
- package/dist/VideoPlayer-Bf1QV4um.js +0 -170
- package/dist/VideoPlayer-CBvhsz1d.cjs +0 -77
- package/dist/VideoPopup-6Dm5h2wr.js +0 -60
- package/dist/VideoPopup-JanZ5ZQX.cjs +0 -31
- package/dist/WarningsDrawerPage-C1HKVvvz.js +0 -228
- package/dist/WarningsDrawerPage-f4Av-9x3.cjs +0 -92
- package/dist/ZeniAccountDetailPage-CofSaf0f.cjs +0 -300
- package/dist/ZeniAccountDetailPage-DuguWR6X.js +0 -908
- package/dist/ZeniAccountListViewPage-Bjpq7Eoe.js +0 -1078
- package/dist/ZeniAccountListViewPage-CpeR5-Qw.cjs +0 -441
- package/dist/ZeniAccountNavBarPieces-DQyVJoiy.cjs +0 -14
- package/dist/ZeniAccountNavBarPieces-DzMuGAPK.js +0 -89
- package/dist/ZeniAccountPromoPage-B5LdunvX.js +0 -522
- package/dist/ZeniAccountPromoPage-Cj8QREsi.cjs +0 -184
- package/dist/ZeniAccountSetupPage-C6KUn-YN.js +0 -309
- package/dist/ZeniAccountSetupPage-GEfejjfO.cjs +0 -36
- package/dist/ZeniAvatar-C7oKAy22.js +0 -34
- package/dist/ZeniAvatar-CGJaXDUj.cjs +0 -13
- package/dist/ZeniCopyright-CngzYAB7.js +0 -9
- package/dist/ZeniCopyright-DrR7SFml.cjs +0 -1
- package/dist/ZeniDatePicker-BtLM1_9y.js +0 -386
- package/dist/ZeniDatePicker-DfrfHutm.cjs +0 -187
- package/dist/ZeniTransferAmountSlider-C2RzVLEn.cjs +0 -63
- package/dist/ZeniTransferAmountSlider-Dw0goOo1.js +0 -215
- package/dist/analyticsHelper-CGPzkYZC.cjs +0 -1
- package/dist/analyticsHelper-DysApxMN.js +0 -65
- package/dist/calculateSize-CG_Rtxb3.cjs +0 -1
- package/dist/calculateSize-aICkFYip.js +0 -22
- package/dist/chartTypes-BIRLf_oW.cjs +0 -1
- package/dist/chartTypes-BrCiynkp.js +0 -47
- package/dist/common-B4K09kPM.cjs +0 -1
- package/dist/common-BiKf3eFr.js +0 -22
- package/dist/commonDimensions-DGmIlW97.cjs +0 -1
- package/dist/commonDimensions-Dzs1TNdL.js +0 -13
- package/dist/detailCommon-AaRYJkPM.cjs +0 -38
- package/dist/detailCommon-FZOtO1mY.js +0 -124
- package/dist/downloadPdf-CxB7sBbf.cjs +0 -1
- package/dist/downloadPdf-DAs-HVzD.js +0 -32
- package/dist/index-DcL7gbcq.js +0 -92385
- package/dist/index-oQR57CDD.cjs +0 -21201
- package/dist/mapLoadingInProgressToTreeNode-BJQ7RByh.cjs +0 -1
- package/dist/mapLoadingInProgressToTreeNode-BfioIiQo.js +0 -25
- package/dist/mapSectionWithAcOnlyToTreeNode-CpLZaWQc.js +0 -387
- package/dist/mapSectionWithAcOnlyToTreeNode-DyGkCudj.cjs +0 -1
- package/dist/mapSpacerToTreeNode-BrzVlEjX.cjs +0 -1
- package/dist/mapSpacerToTreeNode-C744bg6L.js +0 -25
- package/dist/mapTimeframeBalancesToTreeNode-COikT9Ai.cjs +0 -1
- package/dist/mapTimeframeBalancesToTreeNode-Dovry4IE.js +0 -24
- package/dist/mapTimeframeBalancesToTreeNode-ErBvA_Wy.js +0 -24
- package/dist/mapTimeframeBalancesToTreeNode-fD_Zs8Kl.cjs +0 -1
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-BIhh68jj.js +0 -32
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-Bb2_BMcc.cjs +0 -1
- package/dist/sectionColor-CBTkzCTx.js +0 -32
- package/dist/sectionColor-Dglkjf2g.cjs +0 -1
- package/dist/toCOABalancesWithID-BVJHQ9PF.cjs +0 -1
- package/dist/toCOABalancesWithID-CEmVyIf_.js +0 -8
- package/dist/toChartData-D2MQO6ix.cjs +0 -1
- package/dist/toChartData-DuuRZKT8.js +0 -76
- package/dist/uploadAttachment-C71k-6GU.js +0 -952
- package/dist/uploadAttachment-CyJm6uiw.cjs +0 -286
- package/dist/zeniDatePicker.helpers-Cnu26Hgb.cjs +0 -1
- package/dist/zeniDatePicker.helpers-RMkFsx-R.js +0 -14
|
@@ -1,4531 +0,0 @@
|
|
|
1
|
-
import { u as $t, d as at, m as Pe, j as t, X as zt, C as cn, k as dn, o as cr, g as un, h as dr, b as Po, F as mn, l as Bo } from "./vendor-.pnpm-B2klaOGU.js";
|
|
2
|
-
import It, { useEffect as ye, useState as Q, useRef as bt, useCallback as pn, useMemo as xt, useContext as ur } from "react";
|
|
3
|
-
import n from "@emotion/styled";
|
|
4
|
-
import { RoomProvider as mr } from "@liveblocks/react";
|
|
5
|
-
import { dateNow as po, zeniDate as it, toAmount as hn, getNextNthWorkingDay as gn, defaultVendorCurrency as Ao, reduceAnyFetchState as pr, toReimbursementTypeCode as Lo } from "@zeniai/client-epic-state";
|
|
6
|
-
import { u as ze, dB as St, iz as Wt, a as we, R as s, hw as $e, hy as Se, aH as yn, ij as Mo, fj as rt, aS as ho, iA as fn, S as o, iB as uo, gK as Ye, D as r, e as U, fR as hr, n as xn, aB as gr, C as I, A as vt, aw as go, Z as bn, F as yo, ag as yr, iC as Et, a2 as fr, aA as fo, B as Ro, it as wn, at as zo, k as Vt, o as xo, x as xr, E as br, im as wr, hv as $n, t as Ft, fn as Sn, fv as $r, hC as Sr, _ as _t, e_ as vn, J as Cn, y as Tn, iD as Ue, hj as bo, aP as wo, aQ as kn, aR as jn, hI as vr, eP as Cr, ao as In, aX as Tr, w as kr, aD as mo, iE as jr, b as On, V as $o, bc as Ir, bd as Or, T as Pr, d as Br, N as Ar, iF as Lr, aE as Fo, h as Mr, ae as Rr, il as zr, ir as No, i as Fr, eQ as Nr, l as Wr, aG as Er, iG as Vr, X as _r } from "./index-DcL7gbcq.js";
|
|
7
|
-
import Pn from "./InvoiceUploadSection-BBooXqlK.js";
|
|
8
|
-
import { u as Ie, w as Nt, l as So, p as wt, s as Wo, g as Dr } from "./types-DyvtCprH.js";
|
|
9
|
-
import { L as qr } from "./LabeledCreatableSingleSelectField-DpD-Er04.js";
|
|
10
|
-
import { C as Ur } from "./CurrencySelectField-C2DWaKYJ.js";
|
|
11
|
-
import { usePlaidLink as Hr } from "react-plaid-link";
|
|
12
|
-
import { B as Kr } from "./BankAccountSection-CSOMVtCz.js";
|
|
13
|
-
import { B as Gr, a as Yr } from "./BankAccountWarningSection-D2CFkT4U.js";
|
|
14
|
-
import { S as Jr } from "./radio-default-CiSgisfh.js";
|
|
15
|
-
const We = (e, i) => `${e}.${i}`, Eo = {
|
|
16
|
-
largeLabelWidth: new s(120, 120, 160),
|
|
17
|
-
paddingBottom: new s(r[3], r[2]),
|
|
18
|
-
paddingLeft: new s(r[3], r[4])
|
|
19
|
-
}, {
|
|
20
|
-
spendManagement: {
|
|
21
|
-
reimbursement: { reimbursementDetail: je }
|
|
22
|
-
},
|
|
23
|
-
dateFormat: Xr,
|
|
24
|
-
common: Qr
|
|
25
|
-
} = we.getLocalizedStrings(), Zr = ({
|
|
26
|
-
lineIndex: e,
|
|
27
|
-
mileage: i,
|
|
28
|
-
classList: a,
|
|
29
|
-
defaultCurrency: d,
|
|
30
|
-
sectionId: p,
|
|
31
|
-
isReimbursementCommentingEnabled: v,
|
|
32
|
-
isDisabled: m,
|
|
33
|
-
isAddReimbursementDisabled: S,
|
|
34
|
-
companyMileageConfigInfo: x,
|
|
35
|
-
reimbursementId: l,
|
|
36
|
-
classHierarchyList: C
|
|
37
|
-
}) => {
|
|
38
|
-
const b = ze(), c = St(), y = Wt(), $ = `dashboard_${c.currentTenant?.companyId}`, O = $t(), {
|
|
39
|
-
formState: { errors: T },
|
|
40
|
-
getValues: P,
|
|
41
|
-
trigger: H
|
|
42
|
-
} = at(), B = Qr.strings.empty, k = P(
|
|
43
|
-
We(p, "distanceInMiles")
|
|
44
|
-
), M = Eo.largeLabelWidth.value(b), te = P(We(p, "class")), ne = a.find(
|
|
45
|
-
(L) => L.classId === te?.selectedOption
|
|
46
|
-
), re = We(p, "class"), Y = Pe(T, re);
|
|
47
|
-
ye(() => {
|
|
48
|
-
te?.selectedOption != null && (ne?.isDeleted === !0 || Y) && H(re);
|
|
49
|
-
}, [
|
|
50
|
-
te?.selectedOption,
|
|
51
|
-
ne?.isDeleted,
|
|
52
|
-
a,
|
|
53
|
-
re,
|
|
54
|
-
H
|
|
55
|
-
]);
|
|
56
|
-
const K = {
|
|
57
|
-
application: "dashboard",
|
|
58
|
-
companyId: c.currentTenant?.companyId,
|
|
59
|
-
tab: "reimbursement",
|
|
60
|
-
entityId: l
|
|
61
|
-
}, F = (L) => a.filter((X) => X.classId === L)[0]?.accountingClassNumber, J = a.find((L) => L.classId === i.class), q = {
|
|
62
|
-
valueContainer: (L) => ({
|
|
63
|
-
...L,
|
|
64
|
-
padding: `2px ${o.sp3} !important`,
|
|
65
|
-
overflow: "unset"
|
|
66
|
-
}),
|
|
67
|
-
singleValue: () => ({
|
|
68
|
-
margin: 0
|
|
69
|
-
})
|
|
70
|
-
};
|
|
71
|
-
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
72
|
-
/* @__PURE__ */ t.jsx(
|
|
73
|
-
$e,
|
|
74
|
-
{
|
|
75
|
-
isThreadAllowed: v && l != null,
|
|
76
|
-
dashboardTabKey: Se({
|
|
77
|
-
type: "details",
|
|
78
|
-
key: `${e}.mileage.transactionDate`
|
|
79
|
-
}),
|
|
80
|
-
roomId: $,
|
|
81
|
-
companyId: c.currentTenant?.companyId ?? B,
|
|
82
|
-
companyName: c.currentTenant?.companyName ?? B,
|
|
83
|
-
entityId: l,
|
|
84
|
-
dashboardOptionType: "reimbursement",
|
|
85
|
-
filterMetaData: {
|
|
86
|
-
...K,
|
|
87
|
-
entityType: `reimbursement.details.${Ie(
|
|
88
|
-
"transactionDate",
|
|
89
|
-
e,
|
|
90
|
-
"mileage"
|
|
91
|
-
)}`
|
|
92
|
-
},
|
|
93
|
-
fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
|
|
94
|
-
children: /* @__PURE__ */ t.jsx(
|
|
95
|
-
yn,
|
|
96
|
-
{
|
|
97
|
-
isDisabled: m,
|
|
98
|
-
label: {
|
|
99
|
-
label: je.transactionDate,
|
|
100
|
-
width: M
|
|
101
|
-
},
|
|
102
|
-
style: {
|
|
103
|
-
paddingBottom: Eo.paddingBottom.valuePx(b),
|
|
104
|
-
width: "auto"
|
|
105
|
-
},
|
|
106
|
-
dateField: {
|
|
107
|
-
name: We(p, "transactionDate"),
|
|
108
|
-
placeholder: je.datePlaceholder,
|
|
109
|
-
defaultValue: i?.transactionDate,
|
|
110
|
-
dateFormat: Xr.visual.defaultInput,
|
|
111
|
-
autoComplete: "off",
|
|
112
|
-
maxDate: po(),
|
|
113
|
-
registerOptions: {
|
|
114
|
-
required: !0,
|
|
115
|
-
validate: (L) => !!L
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
)
|
|
120
|
-
}
|
|
121
|
-
),
|
|
122
|
-
/* @__PURE__ */ t.jsx(Ot, {}),
|
|
123
|
-
/* @__PURE__ */ t.jsx(
|
|
124
|
-
$e,
|
|
125
|
-
{
|
|
126
|
-
isThreadAllowed: v && l != null,
|
|
127
|
-
dashboardTabKey: Se({
|
|
128
|
-
type: "details",
|
|
129
|
-
key: `${e}.mileage.distanceInMiles`
|
|
130
|
-
}),
|
|
131
|
-
roomId: $,
|
|
132
|
-
companyId: c.currentTenant?.companyId ?? B,
|
|
133
|
-
companyName: c.currentTenant?.companyName ?? B,
|
|
134
|
-
entityId: l,
|
|
135
|
-
dashboardOptionType: "reimbursement",
|
|
136
|
-
filterMetaData: {
|
|
137
|
-
...K,
|
|
138
|
-
entityType: `reimbursement.details.${Ie(
|
|
139
|
-
"distanceInMiles",
|
|
140
|
-
e,
|
|
141
|
-
"mileage"
|
|
142
|
-
)}`
|
|
143
|
-
},
|
|
144
|
-
fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
|
|
145
|
-
children: /* @__PURE__ */ t.jsx(
|
|
146
|
-
Mo,
|
|
147
|
-
{
|
|
148
|
-
isDisabled: S ? "disabled" : void 0,
|
|
149
|
-
style: { width: "auto" },
|
|
150
|
-
label: { label: je.distanceInMiles, width: M },
|
|
151
|
-
formattedTextField: {
|
|
152
|
-
type: "number",
|
|
153
|
-
name: We(p, "distanceInMiles"),
|
|
154
|
-
placeholder: je.addMiles,
|
|
155
|
-
defaultValue: i.distanceInMiles,
|
|
156
|
-
registerOptions: {
|
|
157
|
-
required: !0,
|
|
158
|
-
validate: (L) => L != null ? L > 0 : !0,
|
|
159
|
-
min: 0.01
|
|
160
|
-
},
|
|
161
|
-
returnValueType: "floatValue",
|
|
162
|
-
allowNegative: !1,
|
|
163
|
-
isNumericString: !1,
|
|
164
|
-
decimalScale: 2
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
)
|
|
168
|
-
}
|
|
169
|
-
),
|
|
170
|
-
/* @__PURE__ */ t.jsx(Ot, {}),
|
|
171
|
-
/* @__PURE__ */ t.jsx(
|
|
172
|
-
$e,
|
|
173
|
-
{
|
|
174
|
-
isThreadAllowed: v && l != null,
|
|
175
|
-
dashboardTabKey: Se({
|
|
176
|
-
type: "details",
|
|
177
|
-
key: `${e}.mileage.amount`
|
|
178
|
-
}),
|
|
179
|
-
roomId: $,
|
|
180
|
-
companyId: c.currentTenant?.companyId ?? B,
|
|
181
|
-
companyName: c.currentTenant?.companyName ?? B,
|
|
182
|
-
entityId: l,
|
|
183
|
-
dashboardOptionType: "reimbursement",
|
|
184
|
-
filterMetaData: {
|
|
185
|
-
...K,
|
|
186
|
-
entityType: `reimbursement.details.${Ie(
|
|
187
|
-
"amount",
|
|
188
|
-
e,
|
|
189
|
-
"mileage"
|
|
190
|
-
)}`
|
|
191
|
-
},
|
|
192
|
-
fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
|
|
193
|
-
children: /* @__PURE__ */ t.jsx(
|
|
194
|
-
Mo,
|
|
195
|
-
{
|
|
196
|
-
isDisabled: "disabled",
|
|
197
|
-
label: {
|
|
198
|
-
label: je.amount,
|
|
199
|
-
width: M
|
|
200
|
-
},
|
|
201
|
-
formattedTextField: {
|
|
202
|
-
type: "number",
|
|
203
|
-
name: We(`${p}.amount`, "amount"),
|
|
204
|
-
defaultValue: i.amount?.amount,
|
|
205
|
-
placeholder: rt(je.amount),
|
|
206
|
-
returnValueType: "floatValue",
|
|
207
|
-
prefix: i.amount?.currencySymbol,
|
|
208
|
-
allowNegative: !1,
|
|
209
|
-
isNumericString: !1,
|
|
210
|
-
registerOptions: {
|
|
211
|
-
required: !0,
|
|
212
|
-
validate: (L) => L != null ? L > 0 : !0
|
|
213
|
-
},
|
|
214
|
-
autoComplete: "off",
|
|
215
|
-
decimalSeparator: ".",
|
|
216
|
-
decimalScale: 2,
|
|
217
|
-
fixedDecimalScale: !1,
|
|
218
|
-
thousandSeparator: !0
|
|
219
|
-
},
|
|
220
|
-
style: { width: "auto" },
|
|
221
|
-
additionalInfoLabel: k != null && x?.mileageUnitAmount != null ? `${d.currencySymbol}${x?.mileageUnitAmount} per mile x ${k}` : void 0
|
|
222
|
-
}
|
|
223
|
-
)
|
|
224
|
-
}
|
|
225
|
-
),
|
|
226
|
-
/* @__PURE__ */ t.jsx(Ot, {}),
|
|
227
|
-
/* @__PURE__ */ t.jsx(
|
|
228
|
-
$e,
|
|
229
|
-
{
|
|
230
|
-
isThreadAllowed: v && l != null,
|
|
231
|
-
dashboardTabKey: Se({
|
|
232
|
-
type: "details",
|
|
233
|
-
key: `${e}.mileage.memo`
|
|
234
|
-
}),
|
|
235
|
-
roomId: $,
|
|
236
|
-
companyId: c.currentTenant?.companyId ?? B,
|
|
237
|
-
companyName: c.currentTenant?.companyName ?? B,
|
|
238
|
-
entityId: l,
|
|
239
|
-
dashboardOptionType: "reimbursement",
|
|
240
|
-
filterMetaData: {
|
|
241
|
-
...K,
|
|
242
|
-
entityType: `reimbursement.details.${Ie(
|
|
243
|
-
"memo",
|
|
244
|
-
e,
|
|
245
|
-
"mileage"
|
|
246
|
-
)}`
|
|
247
|
-
},
|
|
248
|
-
fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
|
|
249
|
-
children: /* @__PURE__ */ t.jsx(
|
|
250
|
-
ho,
|
|
251
|
-
{
|
|
252
|
-
isDisabled: m,
|
|
253
|
-
label: {
|
|
254
|
-
label: je.memo,
|
|
255
|
-
width: M
|
|
256
|
-
},
|
|
257
|
-
style: { width: "auto" },
|
|
258
|
-
text: {
|
|
259
|
-
type: "text",
|
|
260
|
-
name: We(p, "memo"),
|
|
261
|
-
placeholder: rt(je.memo),
|
|
262
|
-
defaultValue: i.memo,
|
|
263
|
-
autoComplete: "off",
|
|
264
|
-
options: {
|
|
265
|
-
pattern: fn
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
)
|
|
270
|
-
}
|
|
271
|
-
),
|
|
272
|
-
/* @__PURE__ */ t.jsx(Ot, {}),
|
|
273
|
-
/* @__PURE__ */ t.jsx(
|
|
274
|
-
$e,
|
|
275
|
-
{
|
|
276
|
-
isThreadAllowed: v && l != null,
|
|
277
|
-
dashboardTabKey: Se({
|
|
278
|
-
type: "details",
|
|
279
|
-
key: `${e}.mileage.class`
|
|
280
|
-
}),
|
|
281
|
-
roomId: $,
|
|
282
|
-
companyId: c.currentTenant?.companyId ?? B,
|
|
283
|
-
companyName: c.currentTenant?.companyName ?? B,
|
|
284
|
-
entityId: l,
|
|
285
|
-
dashboardOptionType: "reimbursement",
|
|
286
|
-
filterMetaData: {
|
|
287
|
-
...K,
|
|
288
|
-
entityType: `reimbursement.details.${Ie(
|
|
289
|
-
"class",
|
|
290
|
-
e,
|
|
291
|
-
"mileage"
|
|
292
|
-
)}`
|
|
293
|
-
},
|
|
294
|
-
fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
|
|
295
|
-
style: {
|
|
296
|
-
borderRadius: `0 0 ${o.sp2} ${o.sp2}`
|
|
297
|
-
},
|
|
298
|
-
children: /* @__PURE__ */ t.jsx(
|
|
299
|
-
uo,
|
|
300
|
-
{
|
|
301
|
-
isLoading: !1,
|
|
302
|
-
label: {
|
|
303
|
-
label: je.department,
|
|
304
|
-
width: M
|
|
305
|
-
},
|
|
306
|
-
additionalLabelInfo: ne?.isDeleted === !0 && Pe(T, We(p, "class")) ? je.deletedClassError : void 0,
|
|
307
|
-
groupedSingleSelectField: {
|
|
308
|
-
shouldShowChevronIcon: !1,
|
|
309
|
-
name: We(p, "class"),
|
|
310
|
-
placeholder: rt(je.department),
|
|
311
|
-
valueToId: (L) => F(L),
|
|
312
|
-
defaultValue: {
|
|
313
|
-
selectedOption: J?.classId,
|
|
314
|
-
allOptions: Ye(C, [])
|
|
315
|
-
},
|
|
316
|
-
style: {
|
|
317
|
-
width: "100%"
|
|
318
|
-
},
|
|
319
|
-
customStyleConfig: q,
|
|
320
|
-
registerOptions: {
|
|
321
|
-
required: !0,
|
|
322
|
-
validate: (L) => L?.selectedOption == null ? !1 : a.find(
|
|
323
|
-
(X) => X.classId === L?.selectedOption
|
|
324
|
-
)?.isDeleted === !0 ? je.deletedClassError : !0
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
style: {
|
|
328
|
-
borderBottom: `1px solid ${O.colors.grey3}`,
|
|
329
|
-
borderBottomLeftRadius: o.sp2,
|
|
330
|
-
borderBottomRightRadius: o.sp2
|
|
331
|
-
},
|
|
332
|
-
fullWidthSelect: !0
|
|
333
|
-
},
|
|
334
|
-
We(p, "class")
|
|
335
|
-
)
|
|
336
|
-
}
|
|
337
|
-
)
|
|
338
|
-
] });
|
|
339
|
-
}, Ot = n.div`
|
|
340
|
-
display: flex;
|
|
341
|
-
flex: 1;
|
|
342
|
-
background-color: ${(e) => e.theme.colors.grey3};
|
|
343
|
-
min-height: 1px;
|
|
344
|
-
max-height: 1px;
|
|
345
|
-
`, Vo = {
|
|
346
|
-
amounWidth: new s(50, 30),
|
|
347
|
-
currencyWidth: new s(50, 70)
|
|
348
|
-
};
|
|
349
|
-
function ei({
|
|
350
|
-
name: e,
|
|
351
|
-
placeHolder: i,
|
|
352
|
-
defaultValue: a,
|
|
353
|
-
isDisabled: d,
|
|
354
|
-
showAmountCurrencyError: p,
|
|
355
|
-
style: v,
|
|
356
|
-
allCurrencies: m
|
|
357
|
-
}) {
|
|
358
|
-
const [S, x] = Q(!1), {
|
|
359
|
-
getValues: l,
|
|
360
|
-
formState: { errors: C }
|
|
361
|
-
} = 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;
|
|
362
|
-
return ye(() => {
|
|
363
|
-
B === !1 && x(!0);
|
|
364
|
-
}, [B]), /* @__PURE__ */ t.jsx(
|
|
365
|
-
cn,
|
|
366
|
-
{
|
|
367
|
-
onClickAway: () => y === !1 && !H && x(!1),
|
|
368
|
-
children: /* @__PURE__ */ t.jsx(
|
|
369
|
-
oi,
|
|
370
|
-
{
|
|
371
|
-
style: v,
|
|
372
|
-
isDisabled: y,
|
|
373
|
-
tabIndex: B && !y ? 0 : void 0,
|
|
374
|
-
onClick: () => y === !1 && x(!0),
|
|
375
|
-
"data-testid": U("currency-amount-field", e),
|
|
376
|
-
children: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
377
|
-
$?.amount != null ? /* @__PURE__ */ t.jsx(
|
|
378
|
-
_o,
|
|
379
|
-
{
|
|
380
|
-
className: "amount-field",
|
|
381
|
-
isVisible: B,
|
|
382
|
-
children: O
|
|
383
|
-
}
|
|
384
|
-
) : /* @__PURE__ */ t.jsx(
|
|
385
|
-
_o,
|
|
386
|
-
{
|
|
387
|
-
className: "amount-field amount-placeholder",
|
|
388
|
-
isVisible: B,
|
|
389
|
-
children: i?.name
|
|
390
|
-
}
|
|
391
|
-
),
|
|
392
|
-
/* @__PURE__ */ t.jsxs(ti, { isVisible: !B, children: [
|
|
393
|
-
/* @__PURE__ */ t.jsx(
|
|
394
|
-
hr,
|
|
395
|
-
{
|
|
396
|
-
type: "number",
|
|
397
|
-
name: `${e}.amount`,
|
|
398
|
-
defaultValue: a?.amount,
|
|
399
|
-
placeholder: i?.amount,
|
|
400
|
-
returnValueType: "floatValue",
|
|
401
|
-
allowNegative: !1,
|
|
402
|
-
isNumericString: !1,
|
|
403
|
-
registerOptions: {
|
|
404
|
-
required: !0,
|
|
405
|
-
validate: (k) => k != null ? k > 0 : !0
|
|
406
|
-
},
|
|
407
|
-
autoComplete: "off",
|
|
408
|
-
decimalSeparator: ".",
|
|
409
|
-
decimalScale: 2,
|
|
410
|
-
fixedDecimalScale: !1,
|
|
411
|
-
thousandSeparator: !0,
|
|
412
|
-
isDisabled: d,
|
|
413
|
-
style: {
|
|
414
|
-
display: "flex",
|
|
415
|
-
flexGrow: 1,
|
|
416
|
-
width: Vo.amounWidth.valuePercentage(c),
|
|
417
|
-
cursor: "inherit"
|
|
418
|
-
},
|
|
419
|
-
bgColor: b.colors.background,
|
|
420
|
-
isFieldError: T,
|
|
421
|
-
shouldHighlightZeroAmount: !0
|
|
422
|
-
}
|
|
423
|
-
),
|
|
424
|
-
B ? null : /* @__PURE__ */ t.jsx(ni, {}),
|
|
425
|
-
/* @__PURE__ */ t.jsx(
|
|
426
|
-
Ur,
|
|
427
|
-
{
|
|
428
|
-
name: `${e}.currency`,
|
|
429
|
-
registerOptions: {
|
|
430
|
-
validate: (k) => k != null && k.selectedOption != null
|
|
431
|
-
},
|
|
432
|
-
defaultValue: {
|
|
433
|
-
allOptions: m.map((k) => ({
|
|
434
|
-
label: c === "small" ? k.currencyCode : `${k.currencyCode} - ${k.currency}`,
|
|
435
|
-
value: k.currencyCode,
|
|
436
|
-
countryCode: k.countryCode
|
|
437
|
-
})),
|
|
438
|
-
selectedOption: a?.currencyCode
|
|
439
|
-
},
|
|
440
|
-
controlStyle: {
|
|
441
|
-
justifyContent: "flex-start",
|
|
442
|
-
backgroundColor: b.colors.background
|
|
443
|
-
},
|
|
444
|
-
isDisabled: d,
|
|
445
|
-
style: {
|
|
446
|
-
width: Vo.currencyWidth.valuePercentage(c),
|
|
447
|
-
flexGrow: 1
|
|
448
|
-
},
|
|
449
|
-
isOptionRemovable: !1
|
|
450
|
-
}
|
|
451
|
-
)
|
|
452
|
-
] })
|
|
453
|
-
] })
|
|
454
|
-
}
|
|
455
|
-
)
|
|
456
|
-
}
|
|
457
|
-
);
|
|
458
|
-
}
|
|
459
|
-
const ti = n.div`
|
|
460
|
-
display: ${(e) => e.isVisible ? "flex" : "none"};
|
|
461
|
-
width: 100%;
|
|
462
|
-
input {
|
|
463
|
-
text-align: left;
|
|
464
|
-
}
|
|
465
|
-
`, oi = n.div`
|
|
466
|
-
display: flex;
|
|
467
|
-
align-items: center;
|
|
468
|
-
justify-content: flex-end;
|
|
469
|
-
position: relative;
|
|
470
|
-
width: 100%;
|
|
471
|
-
background-color: ${(e) => e.theme.colors.grey5};
|
|
472
|
-
outline: none;
|
|
473
|
-
outline-width: 0;
|
|
474
|
-
input {
|
|
475
|
-
text-align: right;
|
|
476
|
-
}
|
|
477
|
-
`, ni = n.div`
|
|
478
|
-
background-color: ${(e) => e.theme.colors.grey5};
|
|
479
|
-
min-width: ${o.sp3};
|
|
480
|
-
`, _o = n(xn)`
|
|
481
|
-
display: ${(e) => e.isVisible ? "flex" : "none"};
|
|
482
|
-
padding: 0 ${o.sp3};
|
|
483
|
-
border-radius: ${o.sp1};
|
|
484
|
-
height: 100%;
|
|
485
|
-
align-items: center;
|
|
486
|
-
width: 100%;
|
|
487
|
-
justify-content: flex-end;
|
|
488
|
-
color: ${(e) => e.theme.colors.primary};
|
|
489
|
-
&.amount-placeholder {
|
|
490
|
-
color: ${(e) => e.theme.colors.grey1};
|
|
491
|
-
}
|
|
492
|
-
`, De = {
|
|
493
|
-
width: new s(343, 580, 726),
|
|
494
|
-
height: new s(r[6], r[6]),
|
|
495
|
-
controlHeight: new s(r[6], r[6]),
|
|
496
|
-
paddingTopBottom: new s(r[2], r[2]),
|
|
497
|
-
marginTop: new s(r[2], r[2]),
|
|
498
|
-
marginBottom: new s(r[2], r[2]),
|
|
499
|
-
marginRight: new s(r[2], r[2]),
|
|
500
|
-
labelMarginLeft: new s(r[3], r[4]),
|
|
501
|
-
labelMarginRight: new s(r[3], r[4]),
|
|
502
|
-
labelMarginTop: new s(r[2], r[2])
|
|
503
|
-
}, Bn = {
|
|
504
|
-
infoLabel: new go("extraSmallRegular", "smallRegular")
|
|
505
|
-
};
|
|
506
|
-
function ri({
|
|
507
|
-
isDisabled: e,
|
|
508
|
-
label: i,
|
|
509
|
-
currencyAmountField: a,
|
|
510
|
-
style: d,
|
|
511
|
-
errorInfoLabel: p,
|
|
512
|
-
isAdditionalInfoLabelLoading: v,
|
|
513
|
-
showAdditionalLabelTooltip: m = !1,
|
|
514
|
-
additionalLabelTooltip: S,
|
|
515
|
-
additionalInfoLabel: x,
|
|
516
|
-
showAdditionalInfoLabel: l = !0
|
|
517
|
-
}) {
|
|
518
|
-
const C = ze(), {
|
|
519
|
-
formState: { errors: b }
|
|
520
|
-
} = 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 = () => {
|
|
521
|
-
if (v === !0)
|
|
522
|
-
return /* @__PURE__ */ t.jsx(ci, { children: /* @__PURE__ */ t.jsx(vt, { size: "Small", start: !0 }) });
|
|
523
|
-
if (l && x || $) {
|
|
524
|
-
let P = null;
|
|
525
|
-
return m === !0 && l && x && (P = /* @__PURE__ */ t.jsx(
|
|
526
|
-
bn,
|
|
527
|
-
{
|
|
528
|
-
placement: C === "small" ? "bottom" : "right",
|
|
529
|
-
maxWidth: "364px",
|
|
530
|
-
title: /* @__PURE__ */ t.jsx(si, { children: S ?? "" }),
|
|
531
|
-
children: /* @__PURE__ */ t.jsx(ui, { children: /* @__PURE__ */ t.jsx(mi, {}) })
|
|
532
|
-
}
|
|
533
|
-
)), /* @__PURE__ */ t.jsxs(
|
|
534
|
-
di,
|
|
535
|
-
{
|
|
536
|
-
size: C,
|
|
537
|
-
isError: $,
|
|
538
|
-
hasToolTip: m,
|
|
539
|
-
children: [
|
|
540
|
-
P,
|
|
541
|
-
x
|
|
542
|
-
]
|
|
543
|
-
}
|
|
544
|
-
);
|
|
545
|
-
}
|
|
546
|
-
};
|
|
547
|
-
return /* @__PURE__ */ t.jsxs(
|
|
548
|
-
ii,
|
|
549
|
-
{
|
|
550
|
-
size: C,
|
|
551
|
-
style: d,
|
|
552
|
-
isDisabled: e != null,
|
|
553
|
-
isAmountError: c,
|
|
554
|
-
isCurrencyError: y,
|
|
555
|
-
"data-testid": U(
|
|
556
|
-
"labeled-currency-amount-field",
|
|
557
|
-
a.name
|
|
558
|
-
),
|
|
559
|
-
children: [
|
|
560
|
-
/* @__PURE__ */ t.jsx(
|
|
561
|
-
gr,
|
|
562
|
-
{
|
|
563
|
-
isDisabled: e,
|
|
564
|
-
label: i.label,
|
|
565
|
-
htmlFor: a.name,
|
|
566
|
-
style: {
|
|
567
|
-
marginLeft: De.labelMarginLeft.value(C),
|
|
568
|
-
marginRight: De.labelMarginRight.value(C),
|
|
569
|
-
marginTop: De.labelMarginTop.value(C),
|
|
570
|
-
width: i.width ?? "auto"
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
),
|
|
574
|
-
/* @__PURE__ */ t.jsxs(li, { labelWidth: i.width, children: [
|
|
575
|
-
/* @__PURE__ */ t.jsx(
|
|
576
|
-
ei,
|
|
577
|
-
{
|
|
578
|
-
...a,
|
|
579
|
-
isDisabled: e,
|
|
580
|
-
style: {
|
|
581
|
-
flexGrow: 1,
|
|
582
|
-
height: De.controlHeight.value(C)
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
),
|
|
586
|
-
O ? /* @__PURE__ */ t.jsx(ai, { size: C, hasError: O, children: p }) : null,
|
|
587
|
-
T()
|
|
588
|
-
] })
|
|
589
|
-
]
|
|
590
|
-
}
|
|
591
|
-
);
|
|
592
|
-
}
|
|
593
|
-
const ii = n.div`
|
|
594
|
-
display: flex;
|
|
595
|
-
flex-direction: row;
|
|
596
|
-
align-items: flex-start;
|
|
597
|
-
background-color: ${(e) => e.theme.colors.grey5};
|
|
598
|
-
width: ${(e) => De.width.valuePx(e.size)};
|
|
599
|
-
min-height: ${(e) => De.height.valuePx(e.size)};
|
|
600
|
-
padding-right: ${(e) => De.marginRight.valuePx(e.size)};
|
|
601
|
-
padding-top: ${(e) => De.paddingTopBottom.valuePx(e.size)};
|
|
602
|
-
padding-bottom: ${(e) => De.paddingTopBottom.valuePx(e.size)};
|
|
603
|
-
|
|
604
|
-
:first-of-type {
|
|
605
|
-
border-top-left-radius: inherit;
|
|
606
|
-
border-top-right-radius: inherit;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
:last-of-type {
|
|
610
|
-
border-bottom-left-radius: inherit;
|
|
611
|
-
border-bottom-right-radius: inherit;
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
&:focus-within {
|
|
615
|
-
z-index: 2;
|
|
616
|
-
outline: 1px solid ${(e) => e.theme.colors.primary};
|
|
617
|
-
|
|
618
|
-
.amount-field {
|
|
619
|
-
background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
input:nth-of-type(1) {
|
|
623
|
-
background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
input:nth-of-type(2) {
|
|
627
|
-
background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
input {
|
|
631
|
-
text-align: left;
|
|
632
|
-
background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
input:nth-of-type(1) {
|
|
636
|
-
background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
input:nth-of-type(2) {
|
|
640
|
-
background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
&:hover {
|
|
644
|
-
z-index: 1;
|
|
645
|
-
outline: 1px solid
|
|
646
|
-
${(e) => e.isDisabled === !0 ? e.theme.colors.grey3 : e.theme.colors.primary};
|
|
647
|
-
input,
|
|
648
|
-
.amount-field {
|
|
649
|
-
background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
input:nth-of-type(1) {
|
|
653
|
-
background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
input:nth-of-type(2) {
|
|
657
|
-
background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
`, ai = n.label`
|
|
661
|
-
color: ${(e) => e.hasError === !0 ? I.important : e.additionalInfoTextColor != null ? e.additionalInfoTextColor : e.theme.colors.grey1};
|
|
662
|
-
width: auto;
|
|
663
|
-
${(e) => `${Bn.infoLabel.style(e.size)}`};
|
|
664
|
-
padding-right: ${o.sp3};
|
|
665
|
-
text-align: right;
|
|
666
|
-
`, li = n.div`
|
|
667
|
-
display: flex;
|
|
668
|
-
width: ${(e) => e.labelWidth != null ? `calc(100% - ${e.labelWidth}px)` : "auto"};
|
|
669
|
-
justify-content: flex-end;
|
|
670
|
-
flex-direction: column;
|
|
671
|
-
position: relative;
|
|
672
|
-
`, si = n(yo)`
|
|
673
|
-
padding: 12px;
|
|
674
|
-
color: ${(e) => e.theme.colors.grey1};
|
|
675
|
-
background: ${(e) => e.theme.colors.overlayColor};
|
|
676
|
-
border-radius: ${o.sp1};
|
|
677
|
-
`, ci = n.div`
|
|
678
|
-
padding-right: ${o.sp3};
|
|
679
|
-
padding-top: ${o.sp1};
|
|
680
|
-
display: flex;
|
|
681
|
-
justify-content: flex-end;
|
|
682
|
-
`, di = n.label`
|
|
683
|
-
display: flex;
|
|
684
|
-
justify-content: flex-end;
|
|
685
|
-
color: ${(e) => e.isError ? I.important : e.theme.colors.hero};
|
|
686
|
-
&:hover {
|
|
687
|
-
color: ${(e) => e.isError ? I.importantDark : e.theme.colors.primary};
|
|
688
|
-
}
|
|
689
|
-
${(e) => `${Bn.infoLabel.style(e.size)}`};
|
|
690
|
-
padding-right: ${o.sp3};
|
|
691
|
-
text-align: right;
|
|
692
|
-
margin-top: ${(e) => e.hasToolTip === !0 ? o.sp1 : o.sp0};
|
|
693
|
-
`, ui = n.div`
|
|
694
|
-
display: flex;
|
|
695
|
-
margin-right: ${o.sp2};
|
|
696
|
-
margin-top: 2px;
|
|
697
|
-
align-items: center;
|
|
698
|
-
`, mi = n(yr)`
|
|
699
|
-
width: ${o.sp3};
|
|
700
|
-
height: ${o.sp3};
|
|
701
|
-
color: inherit;
|
|
702
|
-
`, ge = (e, i) => `${e}.${i}`, Mt = {
|
|
703
|
-
largeLabelWidth: new s(120, 120, 160),
|
|
704
|
-
smallLabelWidth: new s(85, 85, 160),
|
|
705
|
-
paddingBottom: new s(r[3], r[2]),
|
|
706
|
-
paddingLeft: new s(r[3], r[4]),
|
|
707
|
-
autoFillIconLeft: new s(-r[2], -r[4])
|
|
708
|
-
}, {
|
|
709
|
-
dateFormat: pi,
|
|
710
|
-
common: An,
|
|
711
|
-
spendManagement: {
|
|
712
|
-
reimbursement: { reimbursementDetail: oe }
|
|
713
|
-
}
|
|
714
|
-
} = we.getLocalizedStrings(), {
|
|
715
|
-
strings: { empty: ae }
|
|
716
|
-
} = An, hi = (e, i) => {
|
|
717
|
-
const a = e.slice(1);
|
|
718
|
-
let d = !1;
|
|
719
|
-
return a.forEach((p) => {
|
|
720
|
-
p.account?.qboId != null && p.account?.qboId === i && (d = !0);
|
|
721
|
-
}), d;
|
|
722
|
-
}, gi = (e) => e.charAt(0).toLowerCase() + e.slice(1), yi = ({
|
|
723
|
-
lineIndex: e,
|
|
724
|
-
outOfPocket: i,
|
|
725
|
-
accountList: a,
|
|
726
|
-
classList: d,
|
|
727
|
-
merchantList: p,
|
|
728
|
-
isAddReimbursementDisabled: v,
|
|
729
|
-
sectionId: m,
|
|
730
|
-
isReimbursementCommentingEnabled: S,
|
|
731
|
-
isDisabled: x,
|
|
732
|
-
autoFields: l = [],
|
|
733
|
-
accountsHierarchyList: C,
|
|
734
|
-
classHierarchyList: b,
|
|
735
|
-
reimbursementId: c,
|
|
736
|
-
tentativeMerchantName: y,
|
|
737
|
-
allCurrencies: $,
|
|
738
|
-
uncategorizedAccounts: O
|
|
739
|
-
}) => {
|
|
740
|
-
const T = ze(), P = St(), H = Wt(), B = $t(), {
|
|
741
|
-
formState: { errors: k },
|
|
742
|
-
getValues: M,
|
|
743
|
-
trigger: te
|
|
744
|
-
} = at(), ne = M(ge(m, "class")), re = d.find(
|
|
745
|
-
(h) => h.classId === ne?.selectedOption
|
|
746
|
-
), Y = ge(m, "class"), K = Pe(k, Y), F = M(ge(m, "account")), J = a.find(
|
|
747
|
-
(h) => h.qboId === F?.selectedOption || h.accountId === F?.selectedOption
|
|
748
|
-
), q = ge(m, "account"), L = Pe(k, q);
|
|
749
|
-
ye(() => {
|
|
750
|
-
ne?.selectedOption != null && (re?.isDeleted === !0 || K) && te(Y);
|
|
751
|
-
}, [
|
|
752
|
-
ne?.selectedOption,
|
|
753
|
-
re?.isDeleted,
|
|
754
|
-
d,
|
|
755
|
-
Y,
|
|
756
|
-
te
|
|
757
|
-
]), ye(() => {
|
|
758
|
-
F?.selectedOption != null && (J?.isDeleted === !0 || L) && te(q);
|
|
759
|
-
}, [
|
|
760
|
-
F?.selectedOption,
|
|
761
|
-
J?.isDeleted,
|
|
762
|
-
a,
|
|
763
|
-
q,
|
|
764
|
-
te
|
|
765
|
-
]);
|
|
766
|
-
const ce = i.isCategoryUpdateSelected != null && i.recommendedAccount != null && //if category was autofilled but subsequetly updated, isCategoryFirstTimeAutofilled will be false
|
|
767
|
-
!i.isCategoryFirstTimeAutofilled && // if R2 or R3 selected, don't show the checkbox
|
|
768
|
-
!hi(
|
|
769
|
-
i.recommendations,
|
|
770
|
-
i.account
|
|
771
|
-
), X = i.isRetainedCategorySelected != null && i.retainedAccount != null, V = Mt.largeLabelWidth.value(T), de = Mt.smallLabelWidth.value(T), _e = p.map(
|
|
772
|
-
(h) => h.id ?? ae
|
|
773
|
-
), ue = {
|
|
774
|
-
application: "dashboard",
|
|
775
|
-
companyId: P.currentTenant?.companyId,
|
|
776
|
-
tab: "reimbursement",
|
|
777
|
-
entityId: c
|
|
778
|
-
}, fe = `dashboard_${P.currentTenant?.companyId}`, le = (h) => p.find((Ce) => Ce.id === h)?.name ?? h, Be = a.find(
|
|
779
|
-
(h) => h.qboId === i.account
|
|
780
|
-
), Ae = (h) => [
|
|
781
|
-
O.expense?.qboId,
|
|
782
|
-
O.income?.qboId
|
|
783
|
-
].includes(h), Le = d.find((h) => h.classId === i.class), me = {
|
|
784
|
-
valueContainer: (h) => ({
|
|
785
|
-
...h,
|
|
786
|
-
padding: `2px ${o.sp3} !important`,
|
|
787
|
-
overflow: "unset"
|
|
788
|
-
}),
|
|
789
|
-
singleValue: () => ({
|
|
790
|
-
margin: 0
|
|
791
|
-
})
|
|
792
|
-
}, 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(
|
|
793
|
-
"__based__",
|
|
794
|
-
gi(i?.recommendedAccount?.reason ?? ae)
|
|
795
|
-
), Je = Et(
|
|
796
|
-
C,
|
|
797
|
-
i.recommendations
|
|
798
|
-
);
|
|
799
|
-
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
800
|
-
y != null || l.includes("merchant") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
|
|
801
|
-
/* @__PURE__ */ t.jsx(
|
|
802
|
-
$e,
|
|
803
|
-
{
|
|
804
|
-
isThreadAllowed: S && c != null,
|
|
805
|
-
dashboardTabKey: Se({
|
|
806
|
-
type: "details",
|
|
807
|
-
key: `${e}.out_of_pocket.merchant`
|
|
808
|
-
}),
|
|
809
|
-
roomId: fe,
|
|
810
|
-
companyId: P.currentTenant?.companyId ?? ae,
|
|
811
|
-
companyName: P.currentTenant?.companyName ?? ae,
|
|
812
|
-
entityId: c,
|
|
813
|
-
dashboardOptionType: "reimbursement",
|
|
814
|
-
filterMetaData: {
|
|
815
|
-
...ue,
|
|
816
|
-
entityType: `reimbursement.details.${Ie(
|
|
817
|
-
"merchant",
|
|
818
|
-
e,
|
|
819
|
-
"out_of_pocket"
|
|
820
|
-
)}`
|
|
821
|
-
},
|
|
822
|
-
fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
|
|
823
|
-
children: /* @__PURE__ */ t.jsx(
|
|
824
|
-
qr,
|
|
825
|
-
{
|
|
826
|
-
isDisabled: x != null || v ? "disabled" : void 0,
|
|
827
|
-
label: {
|
|
828
|
-
label: oe.merchant,
|
|
829
|
-
width: V
|
|
830
|
-
},
|
|
831
|
-
style: {
|
|
832
|
-
width: "auto"
|
|
833
|
-
},
|
|
834
|
-
creatableSingleSelectField: {
|
|
835
|
-
name: ge(m, "merchant"),
|
|
836
|
-
placeholder: oe.merchantPlaceholder,
|
|
837
|
-
defaultValue: {
|
|
838
|
-
selectedOption: i.merchant ?? ae,
|
|
839
|
-
allOptions: _e
|
|
840
|
-
},
|
|
841
|
-
registerOptions: {
|
|
842
|
-
required: !0,
|
|
843
|
-
validate: (h) => !!h.selectedOption
|
|
844
|
-
}
|
|
845
|
-
},
|
|
846
|
-
isOptionRemovable: !0,
|
|
847
|
-
addIconInCreateLabel: !0,
|
|
848
|
-
getLabelForId: le
|
|
849
|
-
}
|
|
850
|
-
)
|
|
851
|
-
}
|
|
852
|
-
),
|
|
853
|
-
/* @__PURE__ */ t.jsx(Pt, {}),
|
|
854
|
-
l.includes("transactionDate") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
|
|
855
|
-
/* @__PURE__ */ t.jsx(
|
|
856
|
-
$e,
|
|
857
|
-
{
|
|
858
|
-
isThreadAllowed: S && c != null,
|
|
859
|
-
dashboardTabKey: Se({
|
|
860
|
-
type: "details",
|
|
861
|
-
key: `${e}.out_of_pocket.transactionDate`
|
|
862
|
-
}),
|
|
863
|
-
roomId: fe,
|
|
864
|
-
companyId: P.currentTenant?.companyId ?? ae,
|
|
865
|
-
companyName: P.currentTenant?.companyName ?? ae,
|
|
866
|
-
entityId: c,
|
|
867
|
-
dashboardOptionType: "reimbursement",
|
|
868
|
-
filterMetaData: {
|
|
869
|
-
...ue,
|
|
870
|
-
entityType: `reimbursement.details.${Ie(
|
|
871
|
-
"transactionDate",
|
|
872
|
-
e,
|
|
873
|
-
"out_of_pocket"
|
|
874
|
-
)}`
|
|
875
|
-
},
|
|
876
|
-
fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
|
|
877
|
-
children: /* @__PURE__ */ t.jsx(
|
|
878
|
-
yn,
|
|
879
|
-
{
|
|
880
|
-
isDisabled: x,
|
|
881
|
-
label: {
|
|
882
|
-
label: oe.transactionDate,
|
|
883
|
-
width: V
|
|
884
|
-
},
|
|
885
|
-
style: {
|
|
886
|
-
paddingBottom: Mt.paddingBottom.valuePx(T),
|
|
887
|
-
width: "auto"
|
|
888
|
-
},
|
|
889
|
-
dateField: {
|
|
890
|
-
name: ge(m, "transactionDate"),
|
|
891
|
-
placeholder: oe.datePlaceholder,
|
|
892
|
-
defaultValue: i?.transactionDate,
|
|
893
|
-
dateFormat: pi.visual.defaultInput,
|
|
894
|
-
autoComplete: "off",
|
|
895
|
-
maxDate: po(),
|
|
896
|
-
registerOptions: {
|
|
897
|
-
required: !0,
|
|
898
|
-
validate: (h) => !!h
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
)
|
|
903
|
-
}
|
|
904
|
-
),
|
|
905
|
-
/* @__PURE__ */ t.jsx(Pt, {}),
|
|
906
|
-
l.includes("amount") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, isTwoLined: !0, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
|
|
907
|
-
/* @__PURE__ */ t.jsx(
|
|
908
|
-
$e,
|
|
909
|
-
{
|
|
910
|
-
isThreadAllowed: S && c != null,
|
|
911
|
-
dashboardTabKey: Se({
|
|
912
|
-
type: "details",
|
|
913
|
-
key: `${e}.out_of_pocket.amount`
|
|
914
|
-
}),
|
|
915
|
-
roomId: fe,
|
|
916
|
-
companyId: P.currentTenant?.companyId ?? ae,
|
|
917
|
-
companyName: P.currentTenant?.companyName ?? ae,
|
|
918
|
-
entityId: c,
|
|
919
|
-
dashboardOptionType: "reimbursement",
|
|
920
|
-
filterMetaData: {
|
|
921
|
-
...ue,
|
|
922
|
-
entityType: `reimbursement.details.${Ie(
|
|
923
|
-
"amount",
|
|
924
|
-
e,
|
|
925
|
-
"out_of_pocket"
|
|
926
|
-
)}`
|
|
927
|
-
},
|
|
928
|
-
fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
|
|
929
|
-
children: /* @__PURE__ */ t.jsx(
|
|
930
|
-
ri,
|
|
931
|
-
{
|
|
932
|
-
isDisabled: x != null || v ? "disabled" : void 0,
|
|
933
|
-
label: { label: oe.amount, width: de },
|
|
934
|
-
style: { width: "auto" },
|
|
935
|
-
currencyAmountField: {
|
|
936
|
-
style: { height: o.sp6 },
|
|
937
|
-
name: `${m}.amount`,
|
|
938
|
-
defaultValue: {
|
|
939
|
-
amount: i.amount.amount,
|
|
940
|
-
currencyCode: i.amount.currencyCode,
|
|
941
|
-
currencySymbol: i.amount.currencySymbol
|
|
942
|
-
},
|
|
943
|
-
placeHolder: {
|
|
944
|
-
amount: oe.addAmount,
|
|
945
|
-
name: oe.addAmount
|
|
946
|
-
},
|
|
947
|
-
allCurrencies: $,
|
|
948
|
-
showAmountCurrencyError: !0
|
|
949
|
-
},
|
|
950
|
-
showAdditionalInfoLabel: !0,
|
|
951
|
-
showAdditionalLabelTooltip: !0,
|
|
952
|
-
additionalLabelTooltip: oe.amountExchangeRateTooltip,
|
|
953
|
-
isAdditionalInfoLabelLoading: i.isConvertedCurrencyLoading === !0,
|
|
954
|
-
additionalInfoLabel: !dn(i.homeCurrencyDetails, i.amount) && i.amount.currencyCode !== An.currency.currencyCode && i.homeCurrencyDetails?.amount !== 0 ? `${fr(
|
|
955
|
-
"0,0[.]00",
|
|
956
|
-
i.homeCurrencyDetails
|
|
957
|
-
)} ${i.homeCurrencyDetails?.currencyCode}` : void 0
|
|
958
|
-
}
|
|
959
|
-
)
|
|
960
|
-
}
|
|
961
|
-
),
|
|
962
|
-
/* @__PURE__ */ t.jsx(Pt, {}),
|
|
963
|
-
l.includes("memo") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
|
|
964
|
-
/* @__PURE__ */ t.jsx(
|
|
965
|
-
$e,
|
|
966
|
-
{
|
|
967
|
-
isThreadAllowed: S && c != null,
|
|
968
|
-
dashboardTabKey: Se({
|
|
969
|
-
type: "details",
|
|
970
|
-
key: `${e}.out_of_pocket.memo`
|
|
971
|
-
}),
|
|
972
|
-
roomId: fe,
|
|
973
|
-
companyId: P.currentTenant?.companyId ?? ae,
|
|
974
|
-
companyName: P.currentTenant?.companyName ?? ae,
|
|
975
|
-
entityId: c,
|
|
976
|
-
dashboardOptionType: "reimbursement",
|
|
977
|
-
filterMetaData: {
|
|
978
|
-
...ue,
|
|
979
|
-
entityType: `reimbursement.details.${Ie(
|
|
980
|
-
"memo",
|
|
981
|
-
e,
|
|
982
|
-
"out_of_pocket"
|
|
983
|
-
)}`
|
|
984
|
-
},
|
|
985
|
-
fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
|
|
986
|
-
children: /* @__PURE__ */ t.jsx(
|
|
987
|
-
ho,
|
|
988
|
-
{
|
|
989
|
-
isDisabled: x,
|
|
990
|
-
label: {
|
|
991
|
-
label: oe.memo,
|
|
992
|
-
width: V
|
|
993
|
-
},
|
|
994
|
-
style: { width: "auto" },
|
|
995
|
-
text: {
|
|
996
|
-
type: "text",
|
|
997
|
-
name: ge(m, "memo"),
|
|
998
|
-
placeholder: rt(oe.memo),
|
|
999
|
-
defaultValue: i.memo,
|
|
1000
|
-
autoComplete: "off",
|
|
1001
|
-
options: {
|
|
1002
|
-
pattern: fn
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
)
|
|
1007
|
-
}
|
|
1008
|
-
),
|
|
1009
|
-
/* @__PURE__ */ t.jsx(Pt, {}),
|
|
1010
|
-
l.includes("account") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
|
|
1011
|
-
/* @__PURE__ */ t.jsx(
|
|
1012
|
-
$e,
|
|
1013
|
-
{
|
|
1014
|
-
isThreadAllowed: S && c != null,
|
|
1015
|
-
dashboardTabKey: Se({
|
|
1016
|
-
type: "details",
|
|
1017
|
-
key: `${e}.out_of_pocket.account`
|
|
1018
|
-
}),
|
|
1019
|
-
roomId: fe,
|
|
1020
|
-
companyId: P.currentTenant?.companyId ?? ae,
|
|
1021
|
-
companyName: P.currentTenant?.companyName ?? ae,
|
|
1022
|
-
entityId: c,
|
|
1023
|
-
dashboardOptionType: "reimbursement",
|
|
1024
|
-
filterMetaData: {
|
|
1025
|
-
...ue,
|
|
1026
|
-
entityType: `reimbursement.details.${Ie(
|
|
1027
|
-
"account",
|
|
1028
|
-
e,
|
|
1029
|
-
"out_of_pocket"
|
|
1030
|
-
)}`
|
|
1031
|
-
},
|
|
1032
|
-
fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
|
|
1033
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1034
|
-
uo,
|
|
1035
|
-
{
|
|
1036
|
-
label: {
|
|
1037
|
-
label: oe.category,
|
|
1038
|
-
width: V
|
|
1039
|
-
},
|
|
1040
|
-
additionalLabelInfo: J?.isDeleted === !0 && Pe(k, ge(m, "account")) ? oe.deletedCategoryError : void 0,
|
|
1041
|
-
groupedSingleSelectField: {
|
|
1042
|
-
shouldShowChevronIcon: ce || X,
|
|
1043
|
-
name: ge(m, "account"),
|
|
1044
|
-
placeholder: oe.categoryPlaceholder,
|
|
1045
|
-
valueToId: (h) => Me(h),
|
|
1046
|
-
defaultValue: {
|
|
1047
|
-
selectedOption: Be?.qboId ?? Be?.accountId,
|
|
1048
|
-
allOptions: Je
|
|
1049
|
-
},
|
|
1050
|
-
style: {
|
|
1051
|
-
width: "100%"
|
|
1052
|
-
},
|
|
1053
|
-
customStyleConfig: me,
|
|
1054
|
-
registerOptions: {
|
|
1055
|
-
required: !0,
|
|
1056
|
-
validate: (h) => h?.selectedOption == null ? !1 : a.find(
|
|
1057
|
-
(he) => he.qboId === h?.selectedOption || he.accountId === h?.selectedOption
|
|
1058
|
-
)?.isDeleted === !0 ? oe.deletedCategoryError : !0
|
|
1059
|
-
}
|
|
1060
|
-
},
|
|
1061
|
-
disableCurrentOption: Ae,
|
|
1062
|
-
style: {
|
|
1063
|
-
borderBottom: `1px solid ${B.colors.grey3}`,
|
|
1064
|
-
minHeight: o.sp6,
|
|
1065
|
-
boxSizing: "initial"
|
|
1066
|
-
},
|
|
1067
|
-
fullWidthSelect: !0,
|
|
1068
|
-
isLoading: i.isRecommendationLoading,
|
|
1069
|
-
recommendationCheckboxField: ce ? {
|
|
1070
|
-
tooltipProps: { text: ve },
|
|
1071
|
-
label: {
|
|
1072
|
-
label: i.recommendedAccount?.accountName ?? ae
|
|
1073
|
-
},
|
|
1074
|
-
checkBoxField: {
|
|
1075
|
-
name: ge(m, "isCategoryUpdateSelected"),
|
|
1076
|
-
defaultChecked: !!i.isCategoryUpdateSelected
|
|
1077
|
-
}
|
|
1078
|
-
} : void 0,
|
|
1079
|
-
retainCheckboxField: X ? {
|
|
1080
|
-
label: {
|
|
1081
|
-
label: i.retainedAccount?.accountName ?? ae
|
|
1082
|
-
},
|
|
1083
|
-
checkBoxField: {
|
|
1084
|
-
name: ge(m, "isRetainedCategorySelected"),
|
|
1085
|
-
defaultChecked: !!i.isRetainedCategorySelected
|
|
1086
|
-
}
|
|
1087
|
-
} : void 0
|
|
1088
|
-
},
|
|
1089
|
-
ge(m, "account")
|
|
1090
|
-
)
|
|
1091
|
-
}
|
|
1092
|
-
),
|
|
1093
|
-
l.includes("class") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
|
|
1094
|
-
/* @__PURE__ */ t.jsx(
|
|
1095
|
-
$e,
|
|
1096
|
-
{
|
|
1097
|
-
isThreadAllowed: S && c != null,
|
|
1098
|
-
dashboardTabKey: Se({
|
|
1099
|
-
type: "details",
|
|
1100
|
-
key: `${e}.out_of_pocket.class`
|
|
1101
|
-
}),
|
|
1102
|
-
roomId: fe,
|
|
1103
|
-
companyId: P.currentTenant?.companyId ?? ae,
|
|
1104
|
-
companyName: P.currentTenant?.companyName ?? ae,
|
|
1105
|
-
entityId: c,
|
|
1106
|
-
dashboardOptionType: "reimbursement",
|
|
1107
|
-
filterMetaData: {
|
|
1108
|
-
...ue,
|
|
1109
|
-
entityType: `reimbursement.details.${Ie(
|
|
1110
|
-
"class",
|
|
1111
|
-
e,
|
|
1112
|
-
"out_of_pocket"
|
|
1113
|
-
)}`
|
|
1114
|
-
},
|
|
1115
|
-
fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
|
|
1116
|
-
style: {
|
|
1117
|
-
borderRadius: `0 0 ${o.sp2} ${o.sp2}`
|
|
1118
|
-
},
|
|
1119
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1120
|
-
uo,
|
|
1121
|
-
{
|
|
1122
|
-
isLoading: !1,
|
|
1123
|
-
label: {
|
|
1124
|
-
label: oe.department,
|
|
1125
|
-
width: V
|
|
1126
|
-
},
|
|
1127
|
-
additionalLabelInfo: re?.isDeleted === !0 && Pe(k, ge(m, "class")) ? oe.deletedClassError : void 0,
|
|
1128
|
-
groupedSingleSelectField: {
|
|
1129
|
-
shouldShowChevronIcon: !1,
|
|
1130
|
-
name: ge(m, "class"),
|
|
1131
|
-
placeholder: rt(oe.department),
|
|
1132
|
-
valueToId: (h) => pe(h),
|
|
1133
|
-
defaultValue: {
|
|
1134
|
-
selectedOption: Le?.classId,
|
|
1135
|
-
allOptions: Ye(b, [])
|
|
1136
|
-
},
|
|
1137
|
-
style: {
|
|
1138
|
-
width: "100%"
|
|
1139
|
-
},
|
|
1140
|
-
customStyleConfig: me,
|
|
1141
|
-
registerOptions: {
|
|
1142
|
-
required: !0,
|
|
1143
|
-
validate: (h) => h?.selectedOption == null ? !1 : d.find(
|
|
1144
|
-
(he) => he.classId === h?.selectedOption
|
|
1145
|
-
)?.isDeleted === !0 ? oe.deletedClassError : !0
|
|
1146
|
-
}
|
|
1147
|
-
},
|
|
1148
|
-
style: {
|
|
1149
|
-
borderBottom: `1px solid ${B.colors.grey3}`,
|
|
1150
|
-
borderBottomLeftRadius: o.sp2,
|
|
1151
|
-
borderBottomRightRadius: o.sp2
|
|
1152
|
-
},
|
|
1153
|
-
fullWidthSelect: !0
|
|
1154
|
-
},
|
|
1155
|
-
ge(m, "class")
|
|
1156
|
-
)
|
|
1157
|
-
}
|
|
1158
|
-
)
|
|
1159
|
-
] });
|
|
1160
|
-
}, ct = n.span`
|
|
1161
|
-
position: relative;
|
|
1162
|
-
`, dt = n(fo)`
|
|
1163
|
-
color: ${(e) => e.theme.colors.primary};
|
|
1164
|
-
width: ${o.sp3};
|
|
1165
|
-
height: ${o.sp3};
|
|
1166
|
-
`, ut = n.div`
|
|
1167
|
-
z-index: 2;
|
|
1168
|
-
left: ${(e) => Mt.autoFillIconLeft.valuePx(e.windowSize)};
|
|
1169
|
-
position: absolute;
|
|
1170
|
-
top: ${(e) => e.isTwoLined === !0 ? o.sp5 : "22px"};
|
|
1171
|
-
`, Pt = n.div`
|
|
1172
|
-
display: flex;
|
|
1173
|
-
flex: 1;
|
|
1174
|
-
background-color: ${(e) => e.theme.colors.grey3};
|
|
1175
|
-
min-height: 1px;
|
|
1176
|
-
max-height: 1px;
|
|
1177
|
-
`, ot = (e, i) => `${e}.${i}`, qe = {
|
|
1178
|
-
paddingTop: new s(r[5], r[4]),
|
|
1179
|
-
marginBottom: new s(r[3], r[3]),
|
|
1180
|
-
labelPaddingLeft: new s(r[3], r[4]),
|
|
1181
|
-
buttonWidth: new s(70, 70),
|
|
1182
|
-
containerRightMargin: new s(r[3], r[8]),
|
|
1183
|
-
containerLeftMargin: new s(r[3], r[6]),
|
|
1184
|
-
deleteConfirmationTextMarginBottom: new s(r[2], r[0])
|
|
1185
|
-
}, G = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, fi = ({
|
|
1186
|
-
lineData: e,
|
|
1187
|
-
currencyConversionState: i,
|
|
1188
|
-
recommendationFetchState: a,
|
|
1189
|
-
remiStage: d,
|
|
1190
|
-
lineIndex: p,
|
|
1191
|
-
accountList: v,
|
|
1192
|
-
classList: m,
|
|
1193
|
-
merchantList: S,
|
|
1194
|
-
hasFile: x,
|
|
1195
|
-
defaultCurrency: l,
|
|
1196
|
-
hasMultipleLineItems: C,
|
|
1197
|
-
fileRequiredLineIds: b,
|
|
1198
|
-
duplicateLineDetails: c,
|
|
1199
|
-
remiStatus: y,
|
|
1200
|
-
sectionId: $,
|
|
1201
|
-
isDisabled: O,
|
|
1202
|
-
isReimbursementCommentingEnabled: T,
|
|
1203
|
-
isAddReimbursementDisabled: P,
|
|
1204
|
-
style: H,
|
|
1205
|
-
autoFields: B = [],
|
|
1206
|
-
analytics: k,
|
|
1207
|
-
reimbursementId: M,
|
|
1208
|
-
tentativeMerchantName: te,
|
|
1209
|
-
companyMileageConfigInfo: ne,
|
|
1210
|
-
uncategorizedAccounts: re,
|
|
1211
|
-
removeDuplicateReimbursementForLine: Y,
|
|
1212
|
-
scrollToSection: K,
|
|
1213
|
-
onDuplicateLineClick: F,
|
|
1214
|
-
onRemoveReimbursement: J,
|
|
1215
|
-
clearTentativeNameForLine: q,
|
|
1216
|
-
allCurrencies: L,
|
|
1217
|
-
accountsHierarchyList: ce,
|
|
1218
|
-
classHierarchyList: X
|
|
1219
|
-
}) => {
|
|
1220
|
-
const V = ze(), de = St(), _e = Wt(), ue = we.getLocalizedStrings().common.strings.empty, fe = {
|
|
1221
|
-
application: "dashboard",
|
|
1222
|
-
companyId: de.currentTenant?.companyId,
|
|
1223
|
-
tab: "reimbursement",
|
|
1224
|
-
entityId: M
|
|
1225
|
-
}, le = `dashboard_${de.currentTenant?.companyId}`, { getValues: Be } = at(), [Ae, Le] = Q(!1), me = Be(
|
|
1226
|
-
ot($, "reimbursementType")
|
|
1227
|
-
);
|
|
1228
|
-
return /* @__PURE__ */ t.jsxs(Ci, { style: H, windowSize: V, children: [
|
|
1229
|
-
/* @__PURE__ */ t.jsxs(
|
|
1230
|
-
bi,
|
|
1231
|
-
{
|
|
1232
|
-
hasFile: x,
|
|
1233
|
-
windowSize: V,
|
|
1234
|
-
showDeleteConfirmation: Ae,
|
|
1235
|
-
children: [
|
|
1236
|
-
/* @__PURE__ */ t.jsx(ki, { windowSize: V, children: C ? `#${p + 1} ${G.reimbursement}` : G.reimbursement }),
|
|
1237
|
-
Ae ? /* @__PURE__ */ t.jsxs(vi, { windowSize: V, children: [
|
|
1238
|
-
/* @__PURE__ */ t.jsx(Si, { windowSize: V, children: G.deleteConfirmation }),
|
|
1239
|
-
/* @__PURE__ */ t.jsxs(xi, { children: [
|
|
1240
|
-
/* @__PURE__ */ t.jsx(
|
|
1241
|
-
Ro,
|
|
1242
|
-
{
|
|
1243
|
-
label: G.buttons.cancel,
|
|
1244
|
-
onClick: () => Le(!1),
|
|
1245
|
-
style: {
|
|
1246
|
-
width: qe.buttonWidth.value(V),
|
|
1247
|
-
marginLeft: V === "small" ? o.sp0 : o.sp4,
|
|
1248
|
-
marginRight: o.sp3
|
|
1249
|
-
},
|
|
1250
|
-
size: "small",
|
|
1251
|
-
variant: "secondary",
|
|
1252
|
-
"data-testid": U(
|
|
1253
|
-
"delete-remi-button",
|
|
1254
|
-
G.buttons.cancel
|
|
1255
|
-
)
|
|
1256
|
-
}
|
|
1257
|
-
),
|
|
1258
|
-
/* @__PURE__ */ t.jsx(
|
|
1259
|
-
Ro,
|
|
1260
|
-
{
|
|
1261
|
-
label: G.buttons.remove,
|
|
1262
|
-
onClick: () => {
|
|
1263
|
-
k?.trackReimbursementDeleteReimbursementLine(
|
|
1264
|
-
e.lineId,
|
|
1265
|
-
M
|
|
1266
|
-
), q?.(e.lineId ?? "1"), Le(!1), Y(e.lineId), J(p);
|
|
1267
|
-
},
|
|
1268
|
-
style: { width: qe.buttonWidth.value(V) },
|
|
1269
|
-
size: "small",
|
|
1270
|
-
variant: "danger",
|
|
1271
|
-
"data-testid": U(
|
|
1272
|
-
"delete-remi-button",
|
|
1273
|
-
G.buttons.remove
|
|
1274
|
-
)
|
|
1275
|
-
}
|
|
1276
|
-
)
|
|
1277
|
-
] })
|
|
1278
|
-
] }) : C && (d === "draft" || y === "rejected") ? /* @__PURE__ */ t.jsx(
|
|
1279
|
-
wi,
|
|
1280
|
-
{
|
|
1281
|
-
className: "deleteIconWrapper",
|
|
1282
|
-
windowSize: V,
|
|
1283
|
-
onClick: () => Le(!0),
|
|
1284
|
-
"data-testid": U(
|
|
1285
|
-
"delete-remi-button",
|
|
1286
|
-
e.lineId
|
|
1287
|
-
),
|
|
1288
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1289
|
-
bn,
|
|
1290
|
-
{
|
|
1291
|
-
enterDelay: 600,
|
|
1292
|
-
title: G.deleteReimbursement,
|
|
1293
|
-
placement: "top-end",
|
|
1294
|
-
children: /* @__PURE__ */ t.jsx($i, {})
|
|
1295
|
-
}
|
|
1296
|
-
)
|
|
1297
|
-
}
|
|
1298
|
-
) : null
|
|
1299
|
-
]
|
|
1300
|
-
}
|
|
1301
|
-
),
|
|
1302
|
-
b.includes(e.lineId) ? /* @__PURE__ */ t.jsx(
|
|
1303
|
-
wn,
|
|
1304
|
-
{
|
|
1305
|
-
title: G.missingReceipt,
|
|
1306
|
-
description: G.missingReceiptDescription,
|
|
1307
|
-
style: { marginBottom: o.sp3 }
|
|
1308
|
-
}
|
|
1309
|
-
) : null,
|
|
1310
|
-
/* @__PURE__ */ t.jsxs(ji, { windowSize: V, children: [
|
|
1311
|
-
c?.duplicateLineId != null ? /* @__PURE__ */ t.jsxs(Ti, { children: [
|
|
1312
|
-
G.thisExpense,
|
|
1313
|
-
" ",
|
|
1314
|
-
c.isDuplicateWithinTransaction ? /* @__PURE__ */ t.jsx(
|
|
1315
|
-
Do,
|
|
1316
|
-
{
|
|
1317
|
-
"data-testid": U(
|
|
1318
|
-
"view-duplicate-transaction-expense"
|
|
1319
|
-
),
|
|
1320
|
-
onClick: () => (k?.trackReimbursementViewDuplicateExpense(
|
|
1321
|
-
!0,
|
|
1322
|
-
M
|
|
1323
|
-
), K(
|
|
1324
|
-
c.duplicateLineId
|
|
1325
|
-
)),
|
|
1326
|
-
children: G.viewOriginalExpense
|
|
1327
|
-
}
|
|
1328
|
-
) : /* @__PURE__ */ t.jsx(
|
|
1329
|
-
Do,
|
|
1330
|
-
{
|
|
1331
|
-
"data-testid": U("view-duplicate-expense"),
|
|
1332
|
-
onClick: () => {
|
|
1333
|
-
c.duplicateTransactionId != null && c.duplicateLineId != null && (k?.trackReimbursementViewDuplicateExpense(
|
|
1334
|
-
!1,
|
|
1335
|
-
M
|
|
1336
|
-
), F(
|
|
1337
|
-
c.duplicateTransactionId,
|
|
1338
|
-
c.duplicateLineId
|
|
1339
|
-
));
|
|
1340
|
-
},
|
|
1341
|
-
children: G.viewOriginalExpense
|
|
1342
|
-
}
|
|
1343
|
-
)
|
|
1344
|
-
] }) : null,
|
|
1345
|
-
/* @__PURE__ */ t.jsx(
|
|
1346
|
-
$e,
|
|
1347
|
-
{
|
|
1348
|
-
isThreadAllowed: T && M != null,
|
|
1349
|
-
dashboardTabKey: Se({
|
|
1350
|
-
type: "details",
|
|
1351
|
-
key: me === G.mileageKey ? `${p}.mileage.reimbursementType` : `${p}.out_of_pocket.reimbursementType`
|
|
1352
|
-
}),
|
|
1353
|
-
roomId: le,
|
|
1354
|
-
companyId: de.currentTenant?.companyId ?? ue,
|
|
1355
|
-
companyName: de.currentTenant?.companyName ?? ue,
|
|
1356
|
-
entityId: M,
|
|
1357
|
-
dashboardOptionType: "reimbursement",
|
|
1358
|
-
filterMetaData: {
|
|
1359
|
-
...fe,
|
|
1360
|
-
entityType: `reimbursement.details.${Ie(
|
|
1361
|
-
"reimbursementType",
|
|
1362
|
-
p,
|
|
1363
|
-
me === G.mileageKey ? "mileage" : "out_of_pocket"
|
|
1364
|
-
)}`
|
|
1365
|
-
},
|
|
1366
|
-
fieldThreadTargetElement: _e?.sharedRef?.contentWrapperRef,
|
|
1367
|
-
style: {
|
|
1368
|
-
borderRadius: c?.duplicateLineId != null ? "0 0 0 0" : `${o.sp2} ${o.sp2} 0 0`
|
|
1369
|
-
},
|
|
1370
|
-
children: /* @__PURE__ */ t.jsxs(
|
|
1371
|
-
Oi,
|
|
1372
|
-
{
|
|
1373
|
-
isDisabled: O != null,
|
|
1374
|
-
haveBorderRadius: c?.duplicateLineId == null,
|
|
1375
|
-
children: [
|
|
1376
|
-
/* @__PURE__ */ t.jsx(
|
|
1377
|
-
zo,
|
|
1378
|
-
{
|
|
1379
|
-
isDisabled: O != null || P ? "disabled" : void 0,
|
|
1380
|
-
isContainerClickable: !0,
|
|
1381
|
-
label: {
|
|
1382
|
-
label: G.outOfPocket
|
|
1383
|
-
},
|
|
1384
|
-
style: {
|
|
1385
|
-
padding: `${o.sp3} ${o.sp0}`,
|
|
1386
|
-
paddingLeft: qe.labelPaddingLeft.value(V),
|
|
1387
|
-
borderTopLeftRadius: "inherit"
|
|
1388
|
-
},
|
|
1389
|
-
showOutline: !(T && M != null),
|
|
1390
|
-
radioField: {
|
|
1391
|
-
name: ot($, "reimbursementType"),
|
|
1392
|
-
id: `${ot($, "reimbursementType")}.${G.outOfPocketKey}`,
|
|
1393
|
-
value: G.outOfPocketKey
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
),
|
|
1397
|
-
/* @__PURE__ */ t.jsx(Ii, {}),
|
|
1398
|
-
/* @__PURE__ */ t.jsx(
|
|
1399
|
-
zo,
|
|
1400
|
-
{
|
|
1401
|
-
isDisabled: O != null || P ? "disabled" : void 0,
|
|
1402
|
-
isContainerClickable: !0,
|
|
1403
|
-
label: {
|
|
1404
|
-
label: G.mileage
|
|
1405
|
-
},
|
|
1406
|
-
style: {
|
|
1407
|
-
padding: `${o.sp3} ${o.sp0}`,
|
|
1408
|
-
paddingLeft: qe.labelPaddingLeft.value(V),
|
|
1409
|
-
borderTopRightRadius: "inherit"
|
|
1410
|
-
},
|
|
1411
|
-
showOutline: !(T && M != null),
|
|
1412
|
-
radioField: {
|
|
1413
|
-
name: ot($, "reimbursementType"),
|
|
1414
|
-
id: `${ot($, "reimbursementType")}.${G.mileageKey}`,
|
|
1415
|
-
value: G.mileageKey
|
|
1416
|
-
}
|
|
1417
|
-
}
|
|
1418
|
-
)
|
|
1419
|
-
]
|
|
1420
|
-
}
|
|
1421
|
-
)
|
|
1422
|
-
}
|
|
1423
|
-
),
|
|
1424
|
-
/* @__PURE__ */ t.jsx(Pi, {}),
|
|
1425
|
-
me === G.outOfPocketKey ? /* @__PURE__ */ t.jsx(
|
|
1426
|
-
yi,
|
|
1427
|
-
{
|
|
1428
|
-
lineIndex: p,
|
|
1429
|
-
reimbursementId: M,
|
|
1430
|
-
uncategorizedAccounts: re,
|
|
1431
|
-
isReimbursementCommentingEnabled: T,
|
|
1432
|
-
isDisabled: O,
|
|
1433
|
-
outOfPocket: {
|
|
1434
|
-
transactionDate: e.outOfPocket.transactionDate != null ? it(
|
|
1435
|
-
e.outOfPocket.transactionDate.toDateString()
|
|
1436
|
-
) : void 0,
|
|
1437
|
-
account: e.outOfPocket.account.selectedOption,
|
|
1438
|
-
isConvertedCurrencyLoading: i?.fetchState === "In-Progress",
|
|
1439
|
-
isRecommendationLoading: a === "In-Progress",
|
|
1440
|
-
homeCurrencyDetails: e.homeCurrencyConversions,
|
|
1441
|
-
class: e.outOfPocket.class.selectedOption,
|
|
1442
|
-
amount: {
|
|
1443
|
-
amount: e.outOfPocket.amount?.amount ?? 0,
|
|
1444
|
-
currencyCode: e.outOfPocket.amount?.currencyCode ?? "USD",
|
|
1445
|
-
currencySymbol: e.outOfPocket.amount?.currencySymbol ?? "$"
|
|
1446
|
-
},
|
|
1447
|
-
memo: e.outOfPocket.memo,
|
|
1448
|
-
merchant: e.outOfPocket.merchant.selectedOption,
|
|
1449
|
-
recommendations: e.outOfPocket.recommendations,
|
|
1450
|
-
recommendedAccount: e.outOfPocket.recommendedAccount,
|
|
1451
|
-
//account to show in update to checkbox
|
|
1452
|
-
isCategoryUpdateSelected: e.outOfPocket.isCategoryUpdateSelected,
|
|
1453
|
-
//update to checkbox is ticked
|
|
1454
|
-
isCategoryFirstTimeAutofilled: e.outOfPocket.isCategoryFirstTimeAutofilled,
|
|
1455
|
-
retainedAccount: e.outOfPocket.retainedAccount,
|
|
1456
|
-
//account to show in retain checkbox
|
|
1457
|
-
isRetainedCategorySelected: e.outOfPocket.isRetainedCategorySelected
|
|
1458
|
-
//retain checkbox is selected
|
|
1459
|
-
},
|
|
1460
|
-
sectionId: ot($, "outOfPocket"),
|
|
1461
|
-
accountList: v,
|
|
1462
|
-
classList: m,
|
|
1463
|
-
autoFields: B,
|
|
1464
|
-
merchantList: S,
|
|
1465
|
-
tentativeMerchantName: te,
|
|
1466
|
-
allCurrencies: L,
|
|
1467
|
-
isAddReimbursementDisabled: P,
|
|
1468
|
-
accountsHierarchyList: ce,
|
|
1469
|
-
classHierarchyList: X
|
|
1470
|
-
}
|
|
1471
|
-
) : /* @__PURE__ */ t.jsx(
|
|
1472
|
-
Zr,
|
|
1473
|
-
{
|
|
1474
|
-
lineIndex: p,
|
|
1475
|
-
reimbursementId: M,
|
|
1476
|
-
isReimbursementCommentingEnabled: T,
|
|
1477
|
-
isDisabled: O,
|
|
1478
|
-
mileage: {
|
|
1479
|
-
transactionDate: e.mileage.transactionDate != null ? it(e.mileage.transactionDate.toDateString()) : void 0,
|
|
1480
|
-
class: e.mileage.class.selectedOption,
|
|
1481
|
-
distanceInMiles: e.mileage.distanceInMiles,
|
|
1482
|
-
amount: {
|
|
1483
|
-
amount: e.mileage.amount?.amount ?? 0,
|
|
1484
|
-
currencyCode: e.mileage.amount?.currencyCode ?? "USD",
|
|
1485
|
-
currencySymbol: e.mileage.amount?.currencySymbol ?? "$"
|
|
1486
|
-
},
|
|
1487
|
-
memo: e.mileage.memo
|
|
1488
|
-
},
|
|
1489
|
-
classList: m,
|
|
1490
|
-
sectionId: ot($, "mileage"),
|
|
1491
|
-
companyMileageConfigInfo: ne,
|
|
1492
|
-
defaultCurrency: l,
|
|
1493
|
-
isAddReimbursementDisabled: P,
|
|
1494
|
-
classHierarchyList: X
|
|
1495
|
-
}
|
|
1496
|
-
)
|
|
1497
|
-
] })
|
|
1498
|
-
] });
|
|
1499
|
-
}, xi = n.div``, bi = n.div`
|
|
1500
|
-
//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
|
|
1501
|
-
//https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
|
|
1502
|
-
display: ${(e) => e.hasFile && e.windowSize === "small" ? "none" : "flex"};
|
|
1503
|
-
justify-content: ${(e) => e.windowSize === "small" ? e.showDeleteConfirmation ? "center" : "flex-end" : "space-between"};
|
|
1504
|
-
margin-bottom: ${o.sp3};
|
|
1505
|
-
align-items: center;
|
|
1506
|
-
`, wi = n.div`
|
|
1507
|
-
width: ${o.sp3};
|
|
1508
|
-
height: ${o.sp3};
|
|
1509
|
-
cursor: pointer;
|
|
1510
|
-
display: none;
|
|
1511
|
-
color: ${(e) => e.windowSize === "small" ? I.important : e.theme.colors.hero};
|
|
1512
|
-
&:hover {
|
|
1513
|
-
color: ${I.important};
|
|
1514
|
-
}
|
|
1515
|
-
`, Do = n.span`
|
|
1516
|
-
border-bottom: 1px solid currentColor;
|
|
1517
|
-
cursor: pointer;
|
|
1518
|
-
`, $i = n(xr)`
|
|
1519
|
-
width: ${o.sp3};
|
|
1520
|
-
height: ${o.sp3};
|
|
1521
|
-
cursor: pointer;
|
|
1522
|
-
`, Si = n.div`
|
|
1523
|
-
margin-bottom: ${(e) => qe.deleteConfirmationTextMarginBottom.valuePx(e.windowSize)};
|
|
1524
|
-
`, vi = n(xo)`
|
|
1525
|
-
color: ${(e) => e.theme.colors.hero};
|
|
1526
|
-
display: flex;
|
|
1527
|
-
align-items: center;
|
|
1528
|
-
flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
|
|
1529
|
-
`, Ci = n.div`
|
|
1530
|
-
display: flex;
|
|
1531
|
-
flex-direction: column;
|
|
1532
|
-
padding-top: ${(e) => qe.paddingTop.valuePx(e.windowSize)};
|
|
1533
|
-
margin-right: ${(e) => qe.containerRightMargin.valuePx(e.windowSize)};
|
|
1534
|
-
margin-left: ${(e) => qe.containerLeftMargin.valuePx(e.windowSize)};
|
|
1535
|
-
.deleteIconWrapper {
|
|
1536
|
-
${(e) => e.windowSize === "small" && `
|
|
1537
|
-
display: block;
|
|
1538
|
-
`}
|
|
1539
|
-
}
|
|
1540
|
-
&:hover {
|
|
1541
|
-
.deleteIconWrapper {
|
|
1542
|
-
display: block;
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1545
|
-
`, Ti = n(br)`
|
|
1546
|
-
padding: ${o.sp2} ${o.sp0} ${o.sp2} ${o.sp4};
|
|
1547
|
-
background-color: ${I.alertLight};
|
|
1548
|
-
color: ${I.brandColorGoldDark};
|
|
1549
|
-
border-top-left-radius: inherit;
|
|
1550
|
-
border-top-right-radius: inherit;
|
|
1551
|
-
`, ki = n(Vt)`
|
|
1552
|
-
color: ${(e) => e.theme.colors.primary};
|
|
1553
|
-
display: ${(e) => e.windowSize === "small" ? "none" : "unset"};
|
|
1554
|
-
`, ji = n.div`
|
|
1555
|
-
display: flex;
|
|
1556
|
-
flex-direction: column;
|
|
1557
|
-
background-color: ${(e) => e.theme.colors.grey5};
|
|
1558
|
-
border: 1px solid ${(e) => e.theme.colors.grey3};
|
|
1559
|
-
box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
1560
|
-
border-radius: ${o.sp2};
|
|
1561
|
-
margin-bottom: ${(e) => qe.marginBottom.valuePx(e.windowSize)};
|
|
1562
|
-
`, Ii = n.div`
|
|
1563
|
-
background-color: ${(e) => e.theme.colors.grey3};
|
|
1564
|
-
min-width: 1px;
|
|
1565
|
-
max-width: 1px;
|
|
1566
|
-
`, Oi = n.div`
|
|
1567
|
-
display: flex;
|
|
1568
|
-
flex-direction: row;
|
|
1569
|
-
border-top-left-radius: ${(e) => e.haveBorderRadius ? "inherit" : "unset"};
|
|
1570
|
-
border-top-right-radius: ${(e) => e.haveBorderRadius ? "inherit" : "unset"};
|
|
1571
|
-
`, Pi = n.div`
|
|
1572
|
-
display: flex;
|
|
1573
|
-
flex: 1;
|
|
1574
|
-
background-color: ${(e) => e.theme.colors.grey3};
|
|
1575
|
-
min-height: 1px;
|
|
1576
|
-
max-height: 1px;
|
|
1577
|
-
`, Bi = (e, i) => `${e}.${i}`, mt = {
|
|
1578
|
-
labelWidth: new s(120, 160, 160),
|
|
1579
|
-
paddingBottom: new s(r[3], r[3]),
|
|
1580
|
-
paddingTop: new s(12, r[3]),
|
|
1581
|
-
marginBottom: new s(12, r[3]),
|
|
1582
|
-
containerRightMargin: new s(r[3], r[8]),
|
|
1583
|
-
containerLeftMargin: new s(r[3], r[6])
|
|
1584
|
-
}, Ln = ({
|
|
1585
|
-
isReimbursementCommentingEnabled: e,
|
|
1586
|
-
sectionId: i,
|
|
1587
|
-
isDisabled: a,
|
|
1588
|
-
reportTitle: d,
|
|
1589
|
-
reimbursementId: p,
|
|
1590
|
-
style: v
|
|
1591
|
-
}) => {
|
|
1592
|
-
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);
|
|
1593
|
-
return /* @__PURE__ */ t.jsxs(Ai, { style: v, windowSize: m, children: [
|
|
1594
|
-
/* @__PURE__ */ t.jsx(Mi, { windowSize: m, children: b.whatFor }),
|
|
1595
|
-
/* @__PURE__ */ t.jsx(Li, { children: /* @__PURE__ */ t.jsx(
|
|
1596
|
-
$e,
|
|
1597
|
-
{
|
|
1598
|
-
isThreadAllowed: e && p != null,
|
|
1599
|
-
dashboardTabKey: Se({
|
|
1600
|
-
type: "details",
|
|
1601
|
-
key: "whatFor"
|
|
1602
|
-
}),
|
|
1603
|
-
roomId: l,
|
|
1604
|
-
companyId: S.currentTenant?.companyId ?? c,
|
|
1605
|
-
companyName: S.currentTenant?.companyName ?? c,
|
|
1606
|
-
entityId: p,
|
|
1607
|
-
dashboardOptionType: "reimbursement",
|
|
1608
|
-
filterMetaData: {
|
|
1609
|
-
application: "dashboard",
|
|
1610
|
-
companyId: S.currentTenant?.companyId,
|
|
1611
|
-
tab: "reimbursement",
|
|
1612
|
-
entityId: p,
|
|
1613
|
-
entityType: "reimbursement.details.whatFor"
|
|
1614
|
-
},
|
|
1615
|
-
fieldThreadTargetElement: x?.sharedRef?.contentWrapperRef,
|
|
1616
|
-
style: {
|
|
1617
|
-
borderRadius: o.sp2
|
|
1618
|
-
},
|
|
1619
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1620
|
-
ho,
|
|
1621
|
-
{
|
|
1622
|
-
isDisabled: a,
|
|
1623
|
-
label: {
|
|
1624
|
-
label: b.reportTitle,
|
|
1625
|
-
width: y
|
|
1626
|
-
},
|
|
1627
|
-
text: {
|
|
1628
|
-
type: "text",
|
|
1629
|
-
name: Bi(i, "reportTitle"),
|
|
1630
|
-
placeholder: b.lunchWithClient,
|
|
1631
|
-
defaultValue: d,
|
|
1632
|
-
autoComplete: "off",
|
|
1633
|
-
options: {
|
|
1634
|
-
required: !0,
|
|
1635
|
-
validate: ($) => !!$
|
|
1636
|
-
}
|
|
1637
|
-
},
|
|
1638
|
-
style: { width: "auto", borderRadius: o.sp2 }
|
|
1639
|
-
}
|
|
1640
|
-
)
|
|
1641
|
-
}
|
|
1642
|
-
) })
|
|
1643
|
-
] });
|
|
1644
|
-
}, Ai = n.div`
|
|
1645
|
-
display: flex;
|
|
1646
|
-
flex-direction: column;
|
|
1647
|
-
padding-top: ${(e) => mt.paddingTop.valuePx(e.windowSize)};
|
|
1648
|
-
padding-bottom: ${(e) => mt.paddingBottom.valuePx(e.windowSize)};
|
|
1649
|
-
margin-right: ${(e) => mt.containerRightMargin.valuePx(e.windowSize)};
|
|
1650
|
-
margin-left: ${(e) => mt.containerLeftMargin.valuePx(e.windowSize)};
|
|
1651
|
-
`, Li = n.div`
|
|
1652
|
-
display: flex;
|
|
1653
|
-
flex-direction: column;
|
|
1654
|
-
background-color: ${(e) => e.theme.colors.grey5};
|
|
1655
|
-
border: 1px solid ${(e) => e.theme.colors.grey3};
|
|
1656
|
-
box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
1657
|
-
border-radius: ${o.sp2};
|
|
1658
|
-
`, Mi = n(Vt)`
|
|
1659
|
-
color: ${(e) => e.theme.colors.primary};
|
|
1660
|
-
margin-bottom: ${(e) => mt.marginBottom.valuePx(e.windowSize)};
|
|
1661
|
-
`, N = {
|
|
1662
|
-
largeLabelWidth: new s(120, 120, 220),
|
|
1663
|
-
marginTop: new s(28, 8),
|
|
1664
|
-
paymentToMarginTop: new s(0, r[4]),
|
|
1665
|
-
marginBottom: new s(r[5], r[4]),
|
|
1666
|
-
paymentToMarginBottom: new s(12, r[3]),
|
|
1667
|
-
totalMarginBottom: new s(r[3], r[3]),
|
|
1668
|
-
reimbursementSectionLeftMargin: new s(r[3], r[6]),
|
|
1669
|
-
reimbursementSectionRightMargin: new s(r[3], r[8]),
|
|
1670
|
-
invoiceSectionLeftMargin: new s(r[3], r[8]),
|
|
1671
|
-
invoiceSectionRightMargin: new s(r[3], r[6]),
|
|
1672
|
-
rightSectionWidth: new s(100, 58),
|
|
1673
|
-
firstOrLastItemHeight: new s(390, 760),
|
|
1674
|
-
itemHeight: new s(390, 459),
|
|
1675
|
-
duplicateBannerWrapperMarginTop: new s(r[5], r[3]),
|
|
1676
|
-
duplicateBannerWrapperMarginRight: new s(r[3], r[8]),
|
|
1677
|
-
duplicateBannerWrapperMarginBottom: new s(r[5], r[3]),
|
|
1678
|
-
duplicateBannerWrapperMarginLeft: new s(r[3], r[6])
|
|
1679
|
-
}, Ri = {
|
|
1680
|
-
total: new go("largeMedium", "h6Medium")
|
|
1681
|
-
}, {
|
|
1682
|
-
spendManagement: {
|
|
1683
|
-
reimbursement: { reimbursementDetail: D },
|
|
1684
|
-
billPay: {
|
|
1685
|
-
vendorCreation: { achDetails: Bt }
|
|
1686
|
-
}
|
|
1687
|
-
},
|
|
1688
|
-
common: {
|
|
1689
|
-
currency: { currencyCode: At }
|
|
1690
|
-
}
|
|
1691
|
-
} = we.getLocalizedStrings(), Mn = (e) => {
|
|
1692
|
-
let i = 0, a = At;
|
|
1693
|
-
if ("recommendationFetchState" in e && e.recommendationFetchState != null) {
|
|
1694
|
-
const d = e;
|
|
1695
|
-
i = d.outOfPocket.amount ?? 0, a = d.outOfPocket.currencyCode ?? At;
|
|
1696
|
-
} else {
|
|
1697
|
-
const d = e;
|
|
1698
|
-
i = d.outOfPocket.amount?.amount ?? 0, a = d.outOfPocket.amount?.currencyCode ?? At;
|
|
1699
|
-
}
|
|
1700
|
-
return (e.homeCurrencyConversions?.currencyCode ?? At) !== a && (i = e.homeCurrencyConversions?.amount ?? 0), i;
|
|
1701
|
-
}, zi = ({
|
|
1702
|
-
remiUploadStatus: e,
|
|
1703
|
-
progressSectionObj: i,
|
|
1704
|
-
reimbursementId: a,
|
|
1705
|
-
createDate: d,
|
|
1706
|
-
scheduleDate: p,
|
|
1707
|
-
paymentDate: v,
|
|
1708
|
-
hasDuplicateLine: m,
|
|
1709
|
-
approvedDate: S,
|
|
1710
|
-
isFirstOrLastListItem: x,
|
|
1711
|
-
index: l,
|
|
1712
|
-
reimbursementSectionRef: C,
|
|
1713
|
-
showSkipAutoFill: b,
|
|
1714
|
-
lineData: c,
|
|
1715
|
-
currencyConversionState: y,
|
|
1716
|
-
authParams: $,
|
|
1717
|
-
uploadInvoiceEndPoint: O,
|
|
1718
|
-
accountList: T,
|
|
1719
|
-
classList: P,
|
|
1720
|
-
merchantList: H,
|
|
1721
|
-
remiStage: B,
|
|
1722
|
-
autoFieldsByLineId: k,
|
|
1723
|
-
isReimbursementCommentingEnabled: M,
|
|
1724
|
-
isAutoFieldsExist: te,
|
|
1725
|
-
totalAmount: ne,
|
|
1726
|
-
showTotalAmountLoader: re,
|
|
1727
|
-
totalNumberOfLines: Y,
|
|
1728
|
-
defaultCurrency: K,
|
|
1729
|
-
bankAccounts: F,
|
|
1730
|
-
fileRequiredLineIds: J,
|
|
1731
|
-
isAddReimbursementDisabled: q,
|
|
1732
|
-
duplicateLineByLineId: L,
|
|
1733
|
-
remiStatus: ce,
|
|
1734
|
-
file: X,
|
|
1735
|
-
uncategorizedAccounts: V,
|
|
1736
|
-
reportTitle: de,
|
|
1737
|
-
recommendationFetchState: _e,
|
|
1738
|
-
tentativeMerchantName: ue,
|
|
1739
|
-
paymentTo: fe,
|
|
1740
|
-
analytics: le,
|
|
1741
|
-
companyMileageConfigInfo: Be,
|
|
1742
|
-
loggedInUserDepartmentId: Ae,
|
|
1743
|
-
isSignedInUserReimbursementCreator: Le,
|
|
1744
|
-
setShowBankAccountPage: me,
|
|
1745
|
-
setRefByLineId: Me,
|
|
1746
|
-
setCurrentLineIdForUpload: pe,
|
|
1747
|
-
onDuplicateLineClick: ve,
|
|
1748
|
-
setUploadedReceiptPayload: Je,
|
|
1749
|
-
removeDuplicateReimbursementForLine: h,
|
|
1750
|
-
onReceiptsUpload: Ce,
|
|
1751
|
-
scrollToSection: he,
|
|
1752
|
-
onRemoveReimbursement: He,
|
|
1753
|
-
onAddReimbursement: Re,
|
|
1754
|
-
clearTentativeNameForLine: Xe,
|
|
1755
|
-
onReplaceClick: Fe,
|
|
1756
|
-
onDeleteBankAccount: Ke,
|
|
1757
|
-
updateInvoiceUploadFetchState: Ge,
|
|
1758
|
-
removeFileFromLine: Qe,
|
|
1759
|
-
allCurrencies: Ze,
|
|
1760
|
-
accountsHierarchyList: ie,
|
|
1761
|
-
classHierarchyList: lt
|
|
1762
|
-
}) => {
|
|
1763
|
-
const {
|
|
1764
|
-
formState: { errors: pt }
|
|
1765
|
-
} = at(), et = bt(null);
|
|
1766
|
-
ye(() => (Me((R) => ({
|
|
1767
|
-
...R,
|
|
1768
|
-
[`L${c.lineId}`]: et.current
|
|
1769
|
-
})), () => {
|
|
1770
|
-
Me((R) => ({
|
|
1771
|
-
...R,
|
|
1772
|
-
[`L${c.lineId}`]: null
|
|
1773
|
-
}));
|
|
1774
|
-
}), [c.lineId, Me]);
|
|
1775
|
-
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 && X == null;
|
|
1776
|
-
return /* @__PURE__ */ t.jsxs(ta, { ref: C, windowSize: _, children: [
|
|
1777
|
-
/* @__PURE__ */ t.jsx(
|
|
1778
|
-
oa,
|
|
1779
|
-
{
|
|
1780
|
-
ref: (R) => {
|
|
1781
|
-
R != null && (et.current = R);
|
|
1782
|
-
},
|
|
1783
|
-
windowSize: _,
|
|
1784
|
-
bottomSeperator: Y !== 1,
|
|
1785
|
-
showSkipAutoFill: b,
|
|
1786
|
-
isFirstItem: l === 0,
|
|
1787
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1788
|
-
Pn,
|
|
1789
|
-
{
|
|
1790
|
-
customError: Te ? D.requireReceipt : void 0,
|
|
1791
|
-
analytics: le,
|
|
1792
|
-
showAutofill: !1,
|
|
1793
|
-
uploadInvoiceEndPoint: O,
|
|
1794
|
-
authParams: $,
|
|
1795
|
-
entityId: q ? "" : void 0,
|
|
1796
|
-
file: X,
|
|
1797
|
-
style: {
|
|
1798
|
-
width: "auto",
|
|
1799
|
-
padding: 0,
|
|
1800
|
-
height: x ? N.firstOrLastItemHeight.valuePx(_) : N.itemHeight.valuePx(_),
|
|
1801
|
-
margin: _ === "small" ? o.sp0 : void 0
|
|
1802
|
-
},
|
|
1803
|
-
updateInvoiceUploadFetchState: Ge,
|
|
1804
|
-
onInvoiceUpload: (R) => {
|
|
1805
|
-
c.reimbursementType === D.outOfPocketKey && !se(c) ? (pe(Number(c.lineId)), Je(
|
|
1806
|
-
R
|
|
1807
|
-
), Fe?.()) : Ce(
|
|
1808
|
-
R,
|
|
1809
|
-
Number(c.lineId),
|
|
1810
|
-
!0
|
|
1811
|
-
);
|
|
1812
|
-
},
|
|
1813
|
-
dropFilePlaceholder: {
|
|
1814
|
-
upload: D.dropReceipt.upload,
|
|
1815
|
-
receipt: D.dropReceipt.receipt
|
|
1816
|
-
},
|
|
1817
|
-
showInfoText: !1,
|
|
1818
|
-
showTitlebar: !0,
|
|
1819
|
-
showTitlebarIcon: !q,
|
|
1820
|
-
pdfTitle: Y > 1 ? `#${l + 1} Receipt` : "Receipt",
|
|
1821
|
-
onDeleteClick: () => {
|
|
1822
|
-
Ge?.("In-Progress"), setTimeout(() => Qe?.(Number(c.lineId)));
|
|
1823
|
-
},
|
|
1824
|
-
onReplaceClick: () => {
|
|
1825
|
-
pe(Number(c.lineId)), Fe?.();
|
|
1826
|
-
},
|
|
1827
|
-
allowMultiFiles: Y === l + 1,
|
|
1828
|
-
type: "reimbursement"
|
|
1829
|
-
}
|
|
1830
|
-
)
|
|
1831
|
-
}
|
|
1832
|
-
),
|
|
1833
|
-
/* @__PURE__ */ t.jsxs(ea, { windowSize: _, children: [
|
|
1834
|
-
l === 0 && _ !== "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1835
|
-
/* @__PURE__ */ t.jsx(Ui, { children: ht }),
|
|
1836
|
-
/* @__PURE__ */ t.jsx(na, { children: /* @__PURE__ */ t.jsx(
|
|
1837
|
-
wr,
|
|
1838
|
-
{
|
|
1839
|
-
progressSectionObj: i,
|
|
1840
|
-
createDate: d,
|
|
1841
|
-
paymentDate: v,
|
|
1842
|
-
scheduleDate: p,
|
|
1843
|
-
approvedDate: S,
|
|
1844
|
-
isBillUploaded: a != null ? !0 : e === "Completed"
|
|
1845
|
-
}
|
|
1846
|
-
) }),
|
|
1847
|
-
te && /* @__PURE__ */ t.jsxs(Wi, { children: [
|
|
1848
|
-
/* @__PURE__ */ t.jsx(Fi, {}),
|
|
1849
|
-
/* @__PURE__ */ t.jsx(qi, { children: D.banner })
|
|
1850
|
-
] }),
|
|
1851
|
-
m && /* @__PURE__ */ t.jsxs(Ei, { size: _, children: [
|
|
1852
|
-
/* @__PURE__ */ t.jsx(Ni, {}),
|
|
1853
|
-
/* @__PURE__ */ t.jsxs(_i, { children: [
|
|
1854
|
-
/* @__PURE__ */ t.jsx(Vi, { children: D.thereSeems }),
|
|
1855
|
-
/* @__PURE__ */ t.jsx(Di, { children: D.pleaseFind })
|
|
1856
|
-
] })
|
|
1857
|
-
] }),
|
|
1858
|
-
/* @__PURE__ */ t.jsx(
|
|
1859
|
-
Ln,
|
|
1860
|
-
{
|
|
1861
|
-
isReimbursementCommentingEnabled: M,
|
|
1862
|
-
sectionId: Nt,
|
|
1863
|
-
reportTitle: de,
|
|
1864
|
-
reimbursementId: a
|
|
1865
|
-
}
|
|
1866
|
-
)
|
|
1867
|
-
] }) : null,
|
|
1868
|
-
/* @__PURE__ */ t.jsx(
|
|
1869
|
-
fi,
|
|
1870
|
-
{
|
|
1871
|
-
analytics: le,
|
|
1872
|
-
reimbursementId: a,
|
|
1873
|
-
onDuplicateLineClick: ve,
|
|
1874
|
-
uncategorizedAccounts: V,
|
|
1875
|
-
sectionId: `${So}.${l}`,
|
|
1876
|
-
scrollToSection: he,
|
|
1877
|
-
lineIndex: l,
|
|
1878
|
-
lineData: c,
|
|
1879
|
-
accountList: T,
|
|
1880
|
-
classList: P,
|
|
1881
|
-
merchantList: H,
|
|
1882
|
-
autoFields: c.lineId != null ? k[c.lineId] : [],
|
|
1883
|
-
currencyConversionState: y,
|
|
1884
|
-
recommendationFetchState: _e,
|
|
1885
|
-
onRemoveReimbursement: He,
|
|
1886
|
-
hasMultipleLineItems: Y > 1,
|
|
1887
|
-
clearTentativeNameForLine: Xe,
|
|
1888
|
-
tentativeMerchantName: ue,
|
|
1889
|
-
hasFile: X != null,
|
|
1890
|
-
companyMileageConfigInfo: Be,
|
|
1891
|
-
defaultCurrency: K,
|
|
1892
|
-
remiStage: B,
|
|
1893
|
-
remiStatus: ce,
|
|
1894
|
-
fileRequiredLineIds: J,
|
|
1895
|
-
allCurrencies: Ze,
|
|
1896
|
-
isReimbursementCommentingEnabled: M,
|
|
1897
|
-
isAddReimbursementDisabled: q,
|
|
1898
|
-
accountsHierarchyList: ie,
|
|
1899
|
-
classHierarchyList: lt,
|
|
1900
|
-
duplicateLineDetails: L[c.lineId],
|
|
1901
|
-
removeDuplicateReimbursementForLine: h
|
|
1902
|
-
}
|
|
1903
|
-
),
|
|
1904
|
-
Y !== 1 && Y === l + 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1905
|
-
/* @__PURE__ */ t.jsxs(Ki, { windowSize: _, children: [
|
|
1906
|
-
/* @__PURE__ */ t.jsx(Gi, { children: D.total }),
|
|
1907
|
-
re ? /* @__PURE__ */ t.jsx(Yi, { windowSize: _, children: /* @__PURE__ */ t.jsx(Ji, { children: /* @__PURE__ */ t.jsx(
|
|
1908
|
-
vt,
|
|
1909
|
-
{
|
|
1910
|
-
size: "Standard",
|
|
1911
|
-
start: !0,
|
|
1912
|
-
style: { display: "flex" }
|
|
1913
|
-
}
|
|
1914
|
-
) }) }) : /* @__PURE__ */ t.jsx(
|
|
1915
|
-
$n,
|
|
1916
|
-
{
|
|
1917
|
-
amount: hn(ne, "USD", "$"),
|
|
1918
|
-
integerStyles: Ft.h6Regular.cssObject,
|
|
1919
|
-
decimalStyles: Ft.standardRegular.cssObject
|
|
1920
|
-
}
|
|
1921
|
-
)
|
|
1922
|
-
] }),
|
|
1923
|
-
/* @__PURE__ */ t.jsxs(
|
|
1924
|
-
Qi,
|
|
1925
|
-
{
|
|
1926
|
-
windowSize: _,
|
|
1927
|
-
onClick: () => {
|
|
1928
|
-
q === !1 && Re();
|
|
1929
|
-
},
|
|
1930
|
-
isDisabled: q,
|
|
1931
|
-
"data-testid": U("add-reimbursement-row"),
|
|
1932
|
-
children: [
|
|
1933
|
-
/* @__PURE__ */ t.jsx(Uo, {}),
|
|
1934
|
-
/* @__PURE__ */ t.jsx(qo, { children: D.addReimbursement })
|
|
1935
|
-
]
|
|
1936
|
-
}
|
|
1937
|
-
),
|
|
1938
|
-
Le ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1939
|
-
/* @__PURE__ */ t.jsx(Hi, { windowSize: _, children: D.receivePaymentTo }),
|
|
1940
|
-
/* @__PURE__ */ t.jsx(
|
|
1941
|
-
Xi,
|
|
1942
|
-
{
|
|
1943
|
-
windowSize: _,
|
|
1944
|
-
shouldDisplay: F.length > 0,
|
|
1945
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1946
|
-
Sn,
|
|
1947
|
-
{
|
|
1948
|
-
label: {
|
|
1949
|
-
label: D.yourBankAccount,
|
|
1950
|
-
width: W
|
|
1951
|
-
},
|
|
1952
|
-
style: {
|
|
1953
|
-
width: "auto"
|
|
1954
|
-
},
|
|
1955
|
-
singleSelectField: {
|
|
1956
|
-
singleSelect: {
|
|
1957
|
-
name: wt,
|
|
1958
|
-
placeholder: rt(
|
|
1959
|
-
D.yourBankAccount
|
|
1960
|
-
),
|
|
1961
|
-
showValueEyeIcon: !q,
|
|
1962
|
-
menuPlacement: "top",
|
|
1963
|
-
maxMenuHeight: 308,
|
|
1964
|
-
showEyeIconOnSelect: !1,
|
|
1965
|
-
onDelete: Ke,
|
|
1966
|
-
getTooltipInfo: (R) => Rn(F, R),
|
|
1967
|
-
onClickCreateBankAccount: () => me(!0),
|
|
1968
|
-
getLabelForId: (R) => Fn(F, R),
|
|
1969
|
-
isOptionRemovable: !1,
|
|
1970
|
-
showDeleteIcon: !0,
|
|
1971
|
-
showAddBankAccountOption: !0,
|
|
1972
|
-
isDisabled: q ? "readonly" : void 0,
|
|
1973
|
-
showTickMark: !1,
|
|
1974
|
-
alwaysShowEyeTooltip: !0
|
|
1975
|
-
},
|
|
1976
|
-
defaultValue: {
|
|
1977
|
-
selectedOption: fe,
|
|
1978
|
-
allOptions: Ct
|
|
1979
|
-
},
|
|
1980
|
-
registerOptions: {
|
|
1981
|
-
required: !0,
|
|
1982
|
-
validate: (R) => !!R.selectedOption
|
|
1983
|
-
}
|
|
1984
|
-
},
|
|
1985
|
-
isFunctional: !0
|
|
1986
|
-
}
|
|
1987
|
-
)
|
|
1988
|
-
}
|
|
1989
|
-
),
|
|
1990
|
-
/* @__PURE__ */ t.jsxs(
|
|
1991
|
-
Zi,
|
|
1992
|
-
{
|
|
1993
|
-
shouldDisplay: F.length === 0,
|
|
1994
|
-
windowSize: _,
|
|
1995
|
-
hasError: Pe(pt, wt),
|
|
1996
|
-
onClick: () => {
|
|
1997
|
-
q === !1 && me(!0);
|
|
1998
|
-
},
|
|
1999
|
-
isDisabled: q,
|
|
2000
|
-
"data-testid": U(
|
|
2001
|
-
"remi-add-bank-account-container"
|
|
2002
|
-
),
|
|
2003
|
-
children: [
|
|
2004
|
-
/* @__PURE__ */ t.jsx(Uo, {}),
|
|
2005
|
-
/* @__PURE__ */ t.jsx(qo, { children: D.addBankAccount })
|
|
2006
|
-
]
|
|
2007
|
-
}
|
|
2008
|
-
)
|
|
2009
|
-
] }) : null
|
|
2010
|
-
] })
|
|
2011
|
-
] })
|
|
2012
|
-
] });
|
|
2013
|
-
}, Rn = (e, i) => {
|
|
2014
|
-
const a = zn(e, i);
|
|
2015
|
-
return a == null ? `${Bt.bankRoutingNumber} ${D.emptyValue}
|
|
2016
|
-
${Bt.bankAccountNumber} ${D.emptyValue}` : `${Bt.bankRoutingNumber} ${a.bankRoutingNumberAch ?? D.emptyValue}, ${a.bankName ?? D.emptyValue}
|
|
2017
|
-
${Bt.bankAccountNumber} ${a.bankAccountNumber ?? D.emptyValue}`;
|
|
2018
|
-
}, zn = (e, i) => e.find((a) => a.bankAccountId === i), Fn = (e, i) => {
|
|
2019
|
-
const a = zn(e, i);
|
|
2020
|
-
return a == null ? D.selectBankAccount : a.bankAccountName ? a.bankAccountName : a.maskedAccountNumber ? a.maskedAccountNumber : a.bankName && a.bankAccountNumber ? `${a.bankName} ${D.accountNameConnector}${a.bankAccountNumber.slice(
|
|
2021
|
-
a.bankAccountNumber.length - 4
|
|
2022
|
-
)}` : D.selectBankAccount;
|
|
2023
|
-
}, Fi = n(fo)`
|
|
2024
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2025
|
-
width: ${o.sp3};
|
|
2026
|
-
height: ${o.sp3};
|
|
2027
|
-
`, Ni = n(Sr)`
|
|
2028
|
-
width: ${o.sp4};
|
|
2029
|
-
height: ${o.sp4};
|
|
2030
|
-
color: ${I.brandColorGoldDark};
|
|
2031
|
-
`, Wi = n.div`
|
|
2032
|
-
display: flex;
|
|
2033
|
-
gap: ${o.sp2};
|
|
2034
|
-
border: 1px solid ${(e) => e.theme.colors.grey3};
|
|
2035
|
-
padding: ${o.sp3};
|
|
2036
|
-
border-radius: ${o.sp2};
|
|
2037
|
-
align-items: center;
|
|
2038
|
-
margin: 0 ${o.sp8} 0 ${o.sp6};
|
|
2039
|
-
`, Ei = n.div`
|
|
2040
|
-
display: flex;
|
|
2041
|
-
gap: ${o.sp2};
|
|
2042
|
-
padding: ${o.sp3};
|
|
2043
|
-
border-radius: ${o.sp2};
|
|
2044
|
-
align-items: start;
|
|
2045
|
-
margin-top: ${(e) => N.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
2046
|
-
margin-right: ${(e) => N.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
2047
|
-
margin-bottom: ${(e) => N.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
2048
|
-
margin-left: ${(e) => N.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
2049
|
-
background-color: ${I.alertLight};
|
|
2050
|
-
border: 1px solid ${(e) => e.theme.colors.brandColorGoldDark};
|
|
2051
|
-
`, Vi = n(_t)`
|
|
2052
|
-
color: ${(e) => e.theme.colors.brandColorGoldDark};
|
|
2053
|
-
`, _i = n.div`
|
|
2054
|
-
width: 100%;
|
|
2055
|
-
`, Di = n(xo)`
|
|
2056
|
-
color: ${(e) => e.theme.colors.brandColorGoldDark};
|
|
2057
|
-
`, qi = n.span`
|
|
2058
|
-
color: ${(e) => e.theme.colors.hero};
|
|
2059
|
-
`, Ui = n($r)`
|
|
2060
|
-
letter-spacing: -0.02em;
|
|
2061
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2062
|
-
margin: ${o.sp3} ${o.sp8} ${o.sp3} ${o.sp6};
|
|
2063
|
-
`, Hi = n(Vt)`
|
|
2064
|
-
letter-spacing: -0.02em;
|
|
2065
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2066
|
-
margin-top: ${(e) => N.paymentToMarginTop.valuePx(e.windowSize)};
|
|
2067
|
-
margin-bottom: ${(e) => N.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
2068
|
-
margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
2069
|
-
margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
2070
|
-
`, Ki = n.div`
|
|
2071
|
-
padding: ${o.sp3};
|
|
2072
|
-
display: flex;
|
|
2073
|
-
align-items: center;
|
|
2074
|
-
justify-content: space-between;
|
|
2075
|
-
background-color: ${(e) => e.theme.colors.grey3};
|
|
2076
|
-
border: 1px solid ${(e) => e.theme.colors.grey3};
|
|
2077
|
-
border-radius: ${o.sp2};
|
|
2078
|
-
color: ${(e) => e.theme.colors.hero};
|
|
2079
|
-
margin-top: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
|
|
2080
|
-
margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
2081
|
-
margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
2082
|
-
margin-bottom: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
|
|
2083
|
-
justify-content: space-between;
|
|
2084
|
-
`, Gi = n(vn)`
|
|
2085
|
-
display: flex;
|
|
2086
|
-
width: 176px;
|
|
2087
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2088
|
-
`, Yi = n(Cn)`
|
|
2089
|
-
display: flex;
|
|
2090
|
-
width: calc(100% - 176px);
|
|
2091
|
-
justify-content: flex-end;
|
|
2092
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2093
|
-
${(e) => `${Ri.total.style(e.windowSize)}`};
|
|
2094
|
-
`, Ji = n.div`
|
|
2095
|
-
padding-right: ${o.sp3};
|
|
2096
|
-
height: 30px;
|
|
2097
|
-
display: flex;
|
|
2098
|
-
justify-content: flex-end;
|
|
2099
|
-
`, Xi = n.div`
|
|
2100
|
-
margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
2101
|
-
margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
2102
|
-
margin-bottom: ${o.sp3};
|
|
2103
|
-
border: 1px solid ${(e) => e.theme.colors.grey3};
|
|
2104
|
-
border-radius: ${o.sp2};
|
|
2105
|
-
box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
2106
|
-
display: ${(e) => e.shouldDisplay ? "unset" : "none"};
|
|
2107
|
-
`, Qi = n.div`
|
|
2108
|
-
padding: ${o.sp3};
|
|
2109
|
-
display: flex;
|
|
2110
|
-
align-items: center;
|
|
2111
|
-
justify-content: center;
|
|
2112
|
-
border: 1px solid
|
|
2113
|
-
${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
|
|
2114
|
-
border-radius: ${o.sp2};
|
|
2115
|
-
color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
|
|
2116
|
-
cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
|
|
2117
|
-
&:hover {
|
|
2118
|
-
color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
|
|
2119
|
-
border: 1px solid
|
|
2120
|
-
${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
|
|
2121
|
-
}
|
|
2122
|
-
margin-top: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
|
|
2123
|
-
margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
2124
|
-
margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
2125
|
-
margin-bottom: ${(e) => N.marginBottom.valuePx(e.windowSize)};
|
|
2126
|
-
`, Zi = n.div`
|
|
2127
|
-
padding: ${o.sp3};
|
|
2128
|
-
display: ${(e) => e.shouldDisplay ? "flex" : "none"};
|
|
2129
|
-
align-items: center;
|
|
2130
|
-
justify-content: center;
|
|
2131
|
-
border: 1px solid
|
|
2132
|
-
${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
|
|
2133
|
-
border-radius: ${o.sp2};
|
|
2134
|
-
color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
|
|
2135
|
-
cursor: pointer;
|
|
2136
|
-
&:hover {
|
|
2137
|
-
color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
|
|
2138
|
-
border: 1px solid
|
|
2139
|
-
${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
|
|
2140
|
-
}
|
|
2141
|
-
margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
2142
|
-
margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
2143
|
-
margin-bottom: ${(e) => N.marginBottom.valuePx(e.windowSize)};
|
|
2144
|
-
`, qo = n(_t)`
|
|
2145
|
-
color: inherit;
|
|
2146
|
-
`, Uo = n(Tn)`
|
|
2147
|
-
margin-right: ${o.sp2};
|
|
2148
|
-
width: ${o.sp3};
|
|
2149
|
-
height: ${o.sp3};
|
|
2150
|
-
`, ea = n.div`
|
|
2151
|
-
display: flex;
|
|
2152
|
-
flex-direction: column;
|
|
2153
|
-
width: ${(e) => N.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
2154
|
-
`, ta = n.div`
|
|
2155
|
-
display: flex;
|
|
2156
|
-
width: 100%;
|
|
2157
|
-
flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
|
|
2158
|
-
`, oa = n.div`
|
|
2159
|
-
height: 100%;
|
|
2160
|
-
background: ${(e) => e.theme.colors.grey3};
|
|
2161
|
-
border-radius: ${o.sp2};
|
|
2162
|
-
width: ${(e) => e.windowSize === "small" ? "auto" : "42%"};
|
|
2163
|
-
margin-left: ${(e) => N.invoiceSectionLeftMargin.valuePx(e.windowSize)};
|
|
2164
|
-
margin-right: ${(e) => N.invoiceSectionRightMargin.valuePx(e.windowSize)};
|
|
2165
|
-
visibility: ${(e) => e.showSkipAutoFill ? "hidden" : "unset"};
|
|
2166
|
-
margin-bottom: ${(e) => e.bottomSeperator === !0 && e.windowSize !== "small" ? e.isFirstItem ? "102px" : o.sp10 : 0};
|
|
2167
|
-
margin-top: ${(e) => N.marginTop.valuePx(e.windowSize)};
|
|
2168
|
-
`, na = n.div`
|
|
2169
|
-
padding: ${o.sp2} ${o.sp8} ${o.sp0} ${o.sp6};
|
|
2170
|
-
`, ra = {
|
|
2171
|
-
total: new go("largeMedium", "h6Medium")
|
|
2172
|
-
}, Z = {
|
|
2173
|
-
largeLabelWidth: new s(120, 120, 220),
|
|
2174
|
-
marginBottom: new s(r[5], r[4]),
|
|
2175
|
-
addBankAccountMarginBottom: new s(r[5], r[5]),
|
|
2176
|
-
marginTop: new s(r[0], 78),
|
|
2177
|
-
paymentToMarginTop: new s(0, r[4]),
|
|
2178
|
-
totalMarginBottom: new s(r[3], r[3]),
|
|
2179
|
-
rightMargin: new s(r[3], r[8]),
|
|
2180
|
-
leftMargin: new s(r[3], r[6]),
|
|
2181
|
-
paymentToMarginBottom: new s(12, r[3])
|
|
2182
|
-
}, nt = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, ia = ({
|
|
2183
|
-
remiDetails: e,
|
|
2184
|
-
isUserAdmin: i,
|
|
2185
|
-
authParams: a,
|
|
2186
|
-
uploadInvoiceEndPoint: d,
|
|
2187
|
-
showSkipAutoFill: p,
|
|
2188
|
-
isReimbursementCommentingEnabled: v,
|
|
2189
|
-
isAutoFieldsExist: m,
|
|
2190
|
-
totalAmount: S,
|
|
2191
|
-
defaultCurrency: x,
|
|
2192
|
-
hasDuplicateLine: l,
|
|
2193
|
-
bankAccounts: C,
|
|
2194
|
-
fileRequiredLineIds: b,
|
|
2195
|
-
companyMileageConfigInfo: c,
|
|
2196
|
-
analytics: y,
|
|
2197
|
-
reimbursementId: $,
|
|
2198
|
-
currencyConversionStatus: O,
|
|
2199
|
-
setShowSkipAutoFill: T,
|
|
2200
|
-
setShowBankAccountPage: P,
|
|
2201
|
-
removeDuplicateReimbursementForLine: H,
|
|
2202
|
-
onReceiptsUpload: B,
|
|
2203
|
-
setCurrentLineIdForUpload: k,
|
|
2204
|
-
onDuplicateLineClick: M,
|
|
2205
|
-
setUploadedReceiptPayload: te,
|
|
2206
|
-
removeFileFromLine: ne,
|
|
2207
|
-
onReplaceClick: re,
|
|
2208
|
-
updateInvoiceUploadFetchState: Y,
|
|
2209
|
-
clearTentativeNameForLine: K,
|
|
2210
|
-
onDeleteBankAccount: F,
|
|
2211
|
-
uncategorizedAccounts: J,
|
|
2212
|
-
isSignedInUserReimbursementCreator: q,
|
|
2213
|
-
duplicateLineByLineId: L,
|
|
2214
|
-
showTotalAmountLoader: ce,
|
|
2215
|
-
scrollContainerRef: X
|
|
2216
|
-
}) => {
|
|
2217
|
-
const {
|
|
2218
|
-
control: V,
|
|
2219
|
-
formState: { errors: de }
|
|
2220
|
-
} = at(), { fields: _e, append: ue, remove: fe } = cr({
|
|
2221
|
-
name: So,
|
|
2222
|
-
control: V
|
|
2223
|
-
}), le = _e, Be = bt(null), Ae = (W) => {
|
|
2224
|
-
setTimeout(() => {
|
|
2225
|
-
fe(W);
|
|
2226
|
-
});
|
|
2227
|
-
}, { 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, Xe = e.classHierarchyList, Fe = e.classList.classes, Ke = e.merchantList.merchants, Ge = e.addRemiAutoFieldsByLineId, Qe = Math.max(
|
|
2228
|
-
...Object.keys(
|
|
2229
|
-
e.editRemiInitialDetails?.lineDetailSection ?? {}
|
|
2230
|
-
).map((W) => Number(W)),
|
|
2231
|
-
0
|
|
2232
|
-
), Ze = () => {
|
|
2233
|
-
const W = le[le.length - 1], se = Nn(
|
|
2234
|
-
le.length,
|
|
2235
|
-
Number(W.lineId) > Qe ? String(Number(W.lineId) + 1) : String(Qe + 1),
|
|
2236
|
-
Re,
|
|
2237
|
-
Xe,
|
|
2238
|
-
Ke,
|
|
2239
|
-
x,
|
|
2240
|
-
e.allCurrencies,
|
|
2241
|
-
e.loggedInUserDepartmentId
|
|
2242
|
-
);
|
|
2243
|
-
setTimeout(() => {
|
|
2244
|
-
ue(se, { shouldFocus: !1 });
|
|
2245
|
-
}), k(Number(se.lineId)), T(!0), setTimeout(
|
|
2246
|
-
() => Wo(
|
|
2247
|
-
Be.current,
|
|
2248
|
-
X?.current
|
|
2249
|
-
),
|
|
2250
|
-
50
|
|
2251
|
-
);
|
|
2252
|
-
}, [ie, lt] = Q({}), pt = pn(
|
|
2253
|
-
(W) => {
|
|
2254
|
-
const se = ie[`L${W}`];
|
|
2255
|
-
se != null && Wo(se, X?.current);
|
|
2256
|
-
},
|
|
2257
|
-
[ie, X]
|
|
2258
|
-
), et = e.reimbursementInfo?.billStatus.code == "approved" && e.reimbursementInfo?.billPaymentStatus.code ? e.reimbursementInfo?.billPaymentStatus : e.reimbursementInfo?.billStatus, _ = e.reimbursementInfo?.paymentDate != null ? it(
|
|
2259
|
-
gn(
|
|
2260
|
-
e.reimbursementInfo.paymentDate.toDate(),
|
|
2261
|
-
[0, 6],
|
|
2262
|
-
e.achSameDayMaxDays
|
|
2263
|
-
).toDateString()
|
|
2264
|
-
) : void 0, ht = e.reimbursementInfo?.expectedDepositDate ?? _;
|
|
2265
|
-
return /* @__PURE__ */ t.jsxs(ca, { windowSize: h, showSkipAutoFill: p, children: [
|
|
2266
|
-
le.map((W, se) => /* @__PURE__ */ t.jsx(
|
|
2267
|
-
zi,
|
|
2268
|
-
{
|
|
2269
|
-
removeDuplicateReimbursementForLine: H,
|
|
2270
|
-
onDuplicateLineClick: M,
|
|
2271
|
-
scrollToSection: pt,
|
|
2272
|
-
setRefByLineId: lt,
|
|
2273
|
-
duplicateLineByLineId: L,
|
|
2274
|
-
reimbursementId: $,
|
|
2275
|
-
remiUploadStatus: e.uploadStatus,
|
|
2276
|
-
uncategorizedAccounts: J,
|
|
2277
|
-
progressSectionObj: et,
|
|
2278
|
-
createDate: e.createTime,
|
|
2279
|
-
paymentDate: ht,
|
|
2280
|
-
scheduleDate: e.reimbursementInfo?.paymentDate,
|
|
2281
|
-
approvedDate: e.latestApprovedDate,
|
|
2282
|
-
isFirstOrLastListItem: le.length - 1 === se || se === 0,
|
|
2283
|
-
index: se,
|
|
2284
|
-
reimbursementSectionRef: Be,
|
|
2285
|
-
remiStage: me,
|
|
2286
|
-
remiStatus: Me,
|
|
2287
|
-
authParams: a,
|
|
2288
|
-
file: W.file,
|
|
2289
|
-
uploadInvoiceEndPoint: d,
|
|
2290
|
-
showSkipAutoFill: p,
|
|
2291
|
-
lineData: W,
|
|
2292
|
-
currencyConversionState: O[W.lineId],
|
|
2293
|
-
recommendationFetchState: e.lineDetailSection[W.lineId]?.recommendationFetchState,
|
|
2294
|
-
setCurrentLineIdForUpload: k,
|
|
2295
|
-
setUploadedReceiptPayload: te,
|
|
2296
|
-
onReplaceClick: re,
|
|
2297
|
-
onReceiptsUpload: B,
|
|
2298
|
-
removeFileFromLine: ne,
|
|
2299
|
-
isReimbursementCommentingEnabled: v,
|
|
2300
|
-
isAutoFieldsExist: m,
|
|
2301
|
-
reportTitle: he,
|
|
2302
|
-
accountList: He,
|
|
2303
|
-
classList: Fe,
|
|
2304
|
-
merchantList: Ke,
|
|
2305
|
-
autoFieldsByLineId: Ge,
|
|
2306
|
-
onRemoveReimbursement: Ae,
|
|
2307
|
-
onAddReimbursement: Ze,
|
|
2308
|
-
totalAmount: S,
|
|
2309
|
-
showTotalAmountLoader: ce,
|
|
2310
|
-
hasDuplicateLine: l,
|
|
2311
|
-
totalNumberOfLines: le.length,
|
|
2312
|
-
updateInvoiceUploadFetchState: Y,
|
|
2313
|
-
clearTentativeNameForLine: K,
|
|
2314
|
-
tentativeMerchantName: Le[W.lineId],
|
|
2315
|
-
companyMileageConfigInfo: c,
|
|
2316
|
-
defaultCurrency: x,
|
|
2317
|
-
setShowBankAccountPage: P,
|
|
2318
|
-
paymentTo: e.paymentTo,
|
|
2319
|
-
bankAccounts: ve,
|
|
2320
|
-
onDeleteBankAccount: F,
|
|
2321
|
-
analytics: y,
|
|
2322
|
-
fileRequiredLineIds: b,
|
|
2323
|
-
allCurrencies: e.allCurrencies,
|
|
2324
|
-
loggedInUserDepartmentId: e.loggedInUserDepartmentId,
|
|
2325
|
-
isAddReimbursementDisabled: pe,
|
|
2326
|
-
accountsHierarchyList: Re,
|
|
2327
|
-
classHierarchyList: Xe,
|
|
2328
|
-
isSignedInUserReimbursementCreator: q
|
|
2329
|
-
},
|
|
2330
|
-
W.lineId
|
|
2331
|
-
)),
|
|
2332
|
-
le.length === 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2333
|
-
/* @__PURE__ */ t.jsxs(to, { children: [
|
|
2334
|
-
h !== "small" ? /* @__PURE__ */ t.jsx(Zt, { windowSize: h }) : null,
|
|
2335
|
-
/* @__PURE__ */ t.jsx(eo, { windowSize: h, children: /* @__PURE__ */ t.jsxs(da, { windowSize: h, children: [
|
|
2336
|
-
/* @__PURE__ */ t.jsx(ua, { children: nt.total }),
|
|
2337
|
-
ce ? /* @__PURE__ */ t.jsx(pa, { windowSize: h, children: /* @__PURE__ */ t.jsx(ha, { children: /* @__PURE__ */ t.jsx(
|
|
2338
|
-
vt,
|
|
2339
|
-
{
|
|
2340
|
-
size: "Standard",
|
|
2341
|
-
start: !0,
|
|
2342
|
-
style: { display: "flex" }
|
|
2343
|
-
}
|
|
2344
|
-
) }) }) : /* @__PURE__ */ t.jsx(
|
|
2345
|
-
$n,
|
|
2346
|
-
{
|
|
2347
|
-
amount: hn(
|
|
2348
|
-
S,
|
|
2349
|
-
Ao.currencyCode,
|
|
2350
|
-
Ao.currencySymbol
|
|
2351
|
-
),
|
|
2352
|
-
integerStyles: Ft.h6Regular.cssObject,
|
|
2353
|
-
decimalStyles: Ft.standardRegular.cssObject
|
|
2354
|
-
}
|
|
2355
|
-
)
|
|
2356
|
-
] }) })
|
|
2357
|
-
] }),
|
|
2358
|
-
/* @__PURE__ */ t.jsxs(to, { children: [
|
|
2359
|
-
h !== "small" ? /* @__PURE__ */ t.jsx(Zt, { windowSize: h }) : null,
|
|
2360
|
-
/* @__PURE__ */ t.jsx(eo, { windowSize: h, children: /* @__PURE__ */ t.jsxs(
|
|
2361
|
-
ga,
|
|
2362
|
-
{
|
|
2363
|
-
windowSize: h,
|
|
2364
|
-
onClick: () => {
|
|
2365
|
-
pe === !1 && Ze();
|
|
2366
|
-
},
|
|
2367
|
-
isDisabled: pe,
|
|
2368
|
-
"data-testid": U("add-reimbursement-container"),
|
|
2369
|
-
children: [
|
|
2370
|
-
/* @__PURE__ */ t.jsx(Ko, {}),
|
|
2371
|
-
/* @__PURE__ */ t.jsx(Ho, { children: nt.addReimbursement })
|
|
2372
|
-
]
|
|
2373
|
-
}
|
|
2374
|
-
) })
|
|
2375
|
-
] }),
|
|
2376
|
-
/* @__PURE__ */ t.jsxs(to, { children: [
|
|
2377
|
-
h !== "small" ? /* @__PURE__ */ t.jsx(Zt, { windowSize: h }) : null,
|
|
2378
|
-
q ? /* @__PURE__ */ t.jsxs(eo, { windowSize: h, children: [
|
|
2379
|
-
/* @__PURE__ */ t.jsx(ma, { windowSize: h, children: nt.receivePaymentTo }),
|
|
2380
|
-
/* @__PURE__ */ t.jsx(
|
|
2381
|
-
sa,
|
|
2382
|
-
{
|
|
2383
|
-
windowSize: h,
|
|
2384
|
-
shouldDisplay: ve.length > 0,
|
|
2385
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2386
|
-
Sn,
|
|
2387
|
-
{
|
|
2388
|
-
label: {
|
|
2389
|
-
label: nt.yourBankAccount,
|
|
2390
|
-
width: Ce
|
|
2391
|
-
},
|
|
2392
|
-
style: {
|
|
2393
|
-
width: "auto"
|
|
2394
|
-
},
|
|
2395
|
-
singleSelectField: {
|
|
2396
|
-
singleSelect: {
|
|
2397
|
-
name: wt,
|
|
2398
|
-
placeholder: rt(
|
|
2399
|
-
nt.yourBankAccount
|
|
2400
|
-
),
|
|
2401
|
-
showValueEyeIcon: !pe,
|
|
2402
|
-
menuPlacement: "top",
|
|
2403
|
-
maxMenuHeight: 308,
|
|
2404
|
-
showEyeIconOnSelect: !1,
|
|
2405
|
-
onDelete: F,
|
|
2406
|
-
getTooltipInfo: (W) => Rn(ve, W),
|
|
2407
|
-
onClickCreateBankAccount: () => P(!0),
|
|
2408
|
-
getLabelForId: (W) => Fn(ve, W),
|
|
2409
|
-
isOptionRemovable: !1,
|
|
2410
|
-
showDeleteIcon: !0,
|
|
2411
|
-
showAddBankAccountOption: !0,
|
|
2412
|
-
isDisabled: pe ? "readonly" : void 0,
|
|
2413
|
-
showTickMark: !1,
|
|
2414
|
-
alwaysShowEyeTooltip: !0
|
|
2415
|
-
},
|
|
2416
|
-
defaultValue: {
|
|
2417
|
-
selectedOption: e.paymentTo,
|
|
2418
|
-
allOptions: Je
|
|
2419
|
-
},
|
|
2420
|
-
registerOptions: {
|
|
2421
|
-
required: !0,
|
|
2422
|
-
validate: (W) => !!W.selectedOption
|
|
2423
|
-
}
|
|
2424
|
-
},
|
|
2425
|
-
isFunctional: !0
|
|
2426
|
-
}
|
|
2427
|
-
)
|
|
2428
|
-
}
|
|
2429
|
-
),
|
|
2430
|
-
/* @__PURE__ */ t.jsxs(
|
|
2431
|
-
ya,
|
|
2432
|
-
{
|
|
2433
|
-
shouldDisplay: ve.length === 0,
|
|
2434
|
-
windowSize: h,
|
|
2435
|
-
onClick: () => {
|
|
2436
|
-
pe === !1 && P(!0);
|
|
2437
|
-
},
|
|
2438
|
-
hasError: Pe(de, wt),
|
|
2439
|
-
isDisabled: pe,
|
|
2440
|
-
"data-testid": U(
|
|
2441
|
-
"remi-add-bank-account-container"
|
|
2442
|
-
),
|
|
2443
|
-
children: [
|
|
2444
|
-
/* @__PURE__ */ t.jsx(Ko, {}),
|
|
2445
|
-
/* @__PURE__ */ t.jsx(Ho, { children: nt.addBankAccount })
|
|
2446
|
-
]
|
|
2447
|
-
}
|
|
2448
|
-
)
|
|
2449
|
-
] }) : null
|
|
2450
|
-
] })
|
|
2451
|
-
] })
|
|
2452
|
-
] });
|
|
2453
|
-
}, Nn = (e, i, a, d, p, v, m, S) => {
|
|
2454
|
-
const x = aa(
|
|
2455
|
-
a,
|
|
2456
|
-
d,
|
|
2457
|
-
p,
|
|
2458
|
-
v,
|
|
2459
|
-
m,
|
|
2460
|
-
S
|
|
2461
|
-
);
|
|
2462
|
-
return {
|
|
2463
|
-
lineIndex: e,
|
|
2464
|
-
lineId: i,
|
|
2465
|
-
reimbursementType: nt.outOfPocketKey,
|
|
2466
|
-
file: void 0,
|
|
2467
|
-
outOfPocket: x,
|
|
2468
|
-
mileage: la(
|
|
2469
|
-
d,
|
|
2470
|
-
v,
|
|
2471
|
-
S
|
|
2472
|
-
)
|
|
2473
|
-
};
|
|
2474
|
-
}, aa = (e, i, a, d, p, v) => ({
|
|
2475
|
-
transactionDate: void 0,
|
|
2476
|
-
class: {
|
|
2477
|
-
allOptions: Ue(
|
|
2478
|
-
Ye(i, [])
|
|
2479
|
-
),
|
|
2480
|
-
selectedOption: v
|
|
2481
|
-
},
|
|
2482
|
-
account: {
|
|
2483
|
-
allOptions: Ue(
|
|
2484
|
-
Et(e, [])
|
|
2485
|
-
),
|
|
2486
|
-
selectedOption: void 0
|
|
2487
|
-
},
|
|
2488
|
-
amount: {
|
|
2489
|
-
amount: 0,
|
|
2490
|
-
currencyCode: d.currencyCode,
|
|
2491
|
-
currencySymbol: d.currencySymbol,
|
|
2492
|
-
currency: {
|
|
2493
|
-
allOptions: p.map((m) => ({
|
|
2494
|
-
label: `${m.currencyCode} - ${m.currency}`,
|
|
2495
|
-
value: m.currencyCode,
|
|
2496
|
-
countryCode: bo(
|
|
2497
|
-
m.countryCode
|
|
2498
|
-
)
|
|
2499
|
-
})),
|
|
2500
|
-
selectedOption: d.currencyCode ?? we.getLocalizedStrings().common.currency.currencyCode
|
|
2501
|
-
}
|
|
2502
|
-
},
|
|
2503
|
-
memo: void 0,
|
|
2504
|
-
merchant: {
|
|
2505
|
-
allOptions: a.map((m) => m.id).filter((m) => !!m),
|
|
2506
|
-
selectedOption: void 0
|
|
2507
|
-
},
|
|
2508
|
-
recommendations: [],
|
|
2509
|
-
isCategoryUpdateSelected: !1,
|
|
2510
|
-
isCategoryFirstTimeAutofilled: !1,
|
|
2511
|
-
isRetainedCategorySelected: !1
|
|
2512
|
-
}), la = (e, i, a) => ({
|
|
2513
|
-
transactionDate: void 0,
|
|
2514
|
-
class: {
|
|
2515
|
-
allOptions: Ue(
|
|
2516
|
-
Ye(e, [])
|
|
2517
|
-
),
|
|
2518
|
-
selectedOption: a
|
|
2519
|
-
},
|
|
2520
|
-
distanceInMiles: void 0,
|
|
2521
|
-
amount: {
|
|
2522
|
-
amount: 0,
|
|
2523
|
-
currencyCode: i.currencyCode,
|
|
2524
|
-
currencySymbol: i.currencySymbol
|
|
2525
|
-
},
|
|
2526
|
-
memo: void 0
|
|
2527
|
-
}), sa = n.div`
|
|
2528
|
-
margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
|
|
2529
|
-
margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
|
|
2530
|
-
margin-bottom: ${(e) => Z.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
2531
|
-
border: 1px solid ${(e) => e.theme.colors.grey3};
|
|
2532
|
-
border-radius: ${o.sp2};
|
|
2533
|
-
box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
2534
|
-
display: ${(e) => e.shouldDisplay ? "inherit" : "none"};
|
|
2535
|
-
`, Zt = n.div`
|
|
2536
|
-
width: ${(e) => e.windowSize === "small" ? "100%" : "42%"};
|
|
2537
|
-
`, eo = n.div`
|
|
2538
|
-
width: ${(e) => e.windowSize === "small" ? "100%" : "58%"};
|
|
2539
|
-
`, ca = n.div`
|
|
2540
|
-
display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
|
|
2541
|
-
flex-direction: column;
|
|
2542
|
-
margin-top: ${(e) => Z.marginTop.valuePx(e.windowSize)};
|
|
2543
|
-
`, da = n.div`
|
|
2544
|
-
padding: ${o.sp3};
|
|
2545
|
-
display: flex;
|
|
2546
|
-
align-items: center;
|
|
2547
|
-
justify-content: space-between;
|
|
2548
|
-
background-color: ${(e) => e.theme.colors.grey3};
|
|
2549
|
-
border: 1px solid ${(e) => e.theme.colors.grey3};
|
|
2550
|
-
border-radius: ${o.sp2};
|
|
2551
|
-
color: ${(e) => e.theme.colors.hero};
|
|
2552
|
-
margin-top: ${(e) => Z.totalMarginBottom.valuePx(e.windowSize)};
|
|
2553
|
-
margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
|
|
2554
|
-
margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
|
|
2555
|
-
margin-bottom: ${(e) => Z.totalMarginBottom.valuePx(e.windowSize)};
|
|
2556
|
-
`, ua = n(vn)`
|
|
2557
|
-
display: flex;
|
|
2558
|
-
width: 176px;
|
|
2559
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2560
|
-
`, ma = n(Vt)`
|
|
2561
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2562
|
-
margin-top: ${(e) => Z.paymentToMarginTop.valuePx(e.windowSize)};
|
|
2563
|
-
margin-bottom: ${(e) => Z.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
2564
|
-
margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
|
|
2565
|
-
margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
|
|
2566
|
-
`, pa = n(Cn)`
|
|
2567
|
-
display: flex;
|
|
2568
|
-
width: calc(100% - 176px);
|
|
2569
|
-
justify-content: flex-end;
|
|
2570
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2571
|
-
${(e) => `${ra.total.style(e.windowSize)}`};
|
|
2572
|
-
`, ha = n.div`
|
|
2573
|
-
padding-right: ${o.sp3};
|
|
2574
|
-
height: 30px;
|
|
2575
|
-
display: flex;
|
|
2576
|
-
justify-content: flex-end;
|
|
2577
|
-
`, ga = n.div`
|
|
2578
|
-
padding: ${o.sp3};
|
|
2579
|
-
display: flex;
|
|
2580
|
-
align-items: center;
|
|
2581
|
-
justify-content: center;
|
|
2582
|
-
border: 1px solid
|
|
2583
|
-
${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
|
|
2584
|
-
border-radius: ${o.sp2};
|
|
2585
|
-
|
|
2586
|
-
color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
|
|
2587
|
-
cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
|
|
2588
|
-
&:hover {
|
|
2589
|
-
color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
|
|
2590
|
-
border: 1px solid
|
|
2591
|
-
${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
|
|
2592
|
-
}
|
|
2593
|
-
margin-top: ${(e) => Z.totalMarginBottom.valuePx(e.windowSize)};
|
|
2594
|
-
margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
|
|
2595
|
-
margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
|
|
2596
|
-
margin-bottom: ${(e) => Z.marginBottom.valuePx(e.windowSize)};
|
|
2597
|
-
`, ya = n.div`
|
|
2598
|
-
padding: ${o.sp3};
|
|
2599
|
-
display: ${(e) => e.shouldDisplay ? "flex" : "none"};
|
|
2600
|
-
align-items: center;
|
|
2601
|
-
justify-content: center;
|
|
2602
|
-
border: 1px solid
|
|
2603
|
-
${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
|
|
2604
|
-
border-radius: ${o.sp2};
|
|
2605
|
-
color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
|
|
2606
|
-
cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
|
|
2607
|
-
&:hover {
|
|
2608
|
-
color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
|
|
2609
|
-
border: 1px solid
|
|
2610
|
-
${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
|
|
2611
|
-
}
|
|
2612
|
-
margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
|
|
2613
|
-
margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
|
|
2614
|
-
margin-bottom: ${(e) => Z.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
2615
|
-
`, Ho = n(_t)`
|
|
2616
|
-
color: inherit;
|
|
2617
|
-
`, Ko = n(Tn)`
|
|
2618
|
-
margin-right: ${o.sp2};
|
|
2619
|
-
width: ${o.sp3};
|
|
2620
|
-
height: ${o.sp3};
|
|
2621
|
-
`, to = n.div`
|
|
2622
|
-
display: flex;
|
|
2623
|
-
width: 100%;
|
|
2624
|
-
`, Ve = {
|
|
2625
|
-
buttonWidth: new s(140, 140),
|
|
2626
|
-
paddingLeft: new s(r[3], r[6]),
|
|
2627
|
-
paddingRight: new s(r[3], r[8]),
|
|
2628
|
-
marginbottom: new s(r[4], r[5]),
|
|
2629
|
-
subTitleMarginbottom: new s(r[2], r[3]),
|
|
2630
|
-
orSeperatorTopBottomMargin: new s(r[6], 44),
|
|
2631
|
-
iconWidthHeight: new s(20, r[4])
|
|
2632
|
-
}, Go = "userBankAccountPage", Rt = "bankAccountSection", fa = (e) => ({
|
|
2633
|
-
[Rt]: {
|
|
2634
|
-
bankRoutingNumber: e?.bankRoutingNumber,
|
|
2635
|
-
bankName: e?.bankName,
|
|
2636
|
-
bankAccountNumber: e?.bankAccountNumber,
|
|
2637
|
-
confirmedBankAccountNumber: e?.confirmedBankAccountNumber,
|
|
2638
|
-
bankAccountName: e?.bankAccountName
|
|
2639
|
-
}
|
|
2640
|
-
}), Yo = (e) => `${e}_form`, xa = ({
|
|
2641
|
-
bankAccountCreationState: e,
|
|
2642
|
-
setShowBankAccountPage: i,
|
|
2643
|
-
plaidConnectionDetails: a,
|
|
2644
|
-
onFetchLinkTokenClick: d,
|
|
2645
|
-
onEstablishConnectionClick: p,
|
|
2646
|
-
bankAccountToCreate: v,
|
|
2647
|
-
fetchBankNameByRoutingStatus: m,
|
|
2648
|
-
isDisabled: S,
|
|
2649
|
-
onSaveHandler: x,
|
|
2650
|
-
onUserBankDetailsUpdated: l,
|
|
2651
|
-
onFetchBankName: C,
|
|
2652
|
-
onBackClick: b
|
|
2653
|
-
}) => {
|
|
2654
|
-
const c = $t(), y = ze(), $ = un({
|
|
2655
|
-
mode: "onBlur",
|
|
2656
|
-
reValidateMode: "onChange",
|
|
2657
|
-
defaultValues: xt(
|
|
2658
|
-
() => fa(v),
|
|
2659
|
-
[v]
|
|
2660
|
-
)
|
|
2661
|
-
}), O = pn(
|
|
2662
|
-
(K) => {
|
|
2663
|
-
p?.(K), b();
|
|
2664
|
-
},
|
|
2665
|
-
[b, p]
|
|
2666
|
-
), T = a.link_account_no_microdeposit, { open: P } = Hr({
|
|
2667
|
-
token: T.linkToken ?? null,
|
|
2668
|
-
onSuccess: O
|
|
2669
|
-
});
|
|
2670
|
-
ye(() => {
|
|
2671
|
-
(it((/* @__PURE__ */ new Date()).toISOString()).isAfter(T.expiration) || T.linkToken == null) && d?.("link_account_no_microdeposit");
|
|
2672
|
-
}, []);
|
|
2673
|
-
const [H, B] = Q(!1), k = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, M = we.getLocalizedStrings().common.footer, te = {
|
|
2674
|
-
onOkClick: () => {
|
|
2675
|
-
B(!1), $.reset(), b();
|
|
2676
|
-
},
|
|
2677
|
-
onCancelClick: () => {
|
|
2678
|
-
B(!1);
|
|
2679
|
-
}
|
|
2680
|
-
}, ne = async (K, F) => {
|
|
2681
|
-
const J = F[Rt].bankRoutingNumber;
|
|
2682
|
-
l(F), K === `${Rt}.bankRoutingNumber` && J?.length === 9 && Tr.test(J) === !0 && C?.(J);
|
|
2683
|
-
};
|
|
2684
|
-
ye(() => {
|
|
2685
|
-
const K = $.watch((F, { name: J }) => {
|
|
2686
|
-
J != null && F != null && dr(() => ne(J, F));
|
|
2687
|
-
});
|
|
2688
|
-
return () => {
|
|
2689
|
-
K.unsubscribe();
|
|
2690
|
-
};
|
|
2691
|
-
}), ye(() => {
|
|
2692
|
-
e?.fetchState === "Completed" && b();
|
|
2693
|
-
}, [
|
|
2694
|
-
e?.fetchState,
|
|
2695
|
-
b,
|
|
2696
|
-
i
|
|
2697
|
-
]);
|
|
2698
|
-
const re = $.handleSubmit((K) => {
|
|
2699
|
-
m.fetchState !== "In-Progress" && x();
|
|
2700
|
-
}), Y = c.mode === "light" ? new Po(c.colors.brandColorJadeLight) : new Po(c.colors.brandColorJadeDark);
|
|
2701
|
-
return /* @__PURE__ */ t.jsxs(ba, { children: [
|
|
2702
|
-
/* @__PURE__ */ t.jsxs(ka, { windowSize: y, children: [
|
|
2703
|
-
H === !0 ? /* @__PURE__ */ t.jsx(
|
|
2704
|
-
wo,
|
|
2705
|
-
{
|
|
2706
|
-
titleComponent: /* @__PURE__ */ t.jsx(jn, { children: k.discardTitle }),
|
|
2707
|
-
descriptionComponent: /* @__PURE__ */ t.jsx(kn, { children: k.discardDescription }),
|
|
2708
|
-
primaryButtonText: k.buttons.delete,
|
|
2709
|
-
secondaryButtonText: k.buttons.cancel,
|
|
2710
|
-
action: te
|
|
2711
|
-
}
|
|
2712
|
-
) : null,
|
|
2713
|
-
/* @__PURE__ */ t.jsx(
|
|
2714
|
-
Gr,
|
|
2715
|
-
{
|
|
2716
|
-
header: k.addBankAccount,
|
|
2717
|
-
isDirty: $.formState.isDirty,
|
|
2718
|
-
onBackClick: b,
|
|
2719
|
-
setShowConfirmationPopup: B
|
|
2720
|
-
}
|
|
2721
|
-
),
|
|
2722
|
-
/* @__PURE__ */ t.jsx(wa, {}),
|
|
2723
|
-
/* @__PURE__ */ t.jsxs(ja, { size: y, children: [
|
|
2724
|
-
/* @__PURE__ */ t.jsx(
|
|
2725
|
-
vr,
|
|
2726
|
-
{
|
|
2727
|
-
onClick: () => {
|
|
2728
|
-
$.reset(), P();
|
|
2729
|
-
},
|
|
2730
|
-
title: k.connectYourBank,
|
|
2731
|
-
subTitle: k.loginToBank,
|
|
2732
|
-
header: k.setupAchPayments,
|
|
2733
|
-
icon: {
|
|
2734
|
-
element: /* @__PURE__ */ t.jsx(
|
|
2735
|
-
Cr,
|
|
2736
|
-
{
|
|
2737
|
-
width: Ve.iconWidthHeight.valuePx(y),
|
|
2738
|
-
height: Ve.iconWidthHeight.valuePx(y)
|
|
2739
|
-
}
|
|
2740
|
-
),
|
|
2741
|
-
color: Y
|
|
2742
|
-
},
|
|
2743
|
-
style: {
|
|
2744
|
-
width: "unset",
|
|
2745
|
-
rowGap: y === "small" ? o.sp2 : void 0
|
|
2746
|
-
}
|
|
2747
|
-
}
|
|
2748
|
-
),
|
|
2749
|
-
/* @__PURE__ */ t.jsxs($a, { windowSize: y, children: [
|
|
2750
|
-
/* @__PURE__ */ t.jsx(Sa, {}),
|
|
2751
|
-
/* @__PURE__ */ t.jsx(Ca, { children: /* @__PURE__ */ t.jsx(Ta, { children: k.or }) })
|
|
2752
|
-
] }),
|
|
2753
|
-
/* @__PURE__ */ t.jsx(va, { windowSize: y, children: k.saveAccountManually })
|
|
2754
|
-
] }),
|
|
2755
|
-
/* @__PURE__ */ t.jsx(Ia, { size: y, children: /* @__PURE__ */ t.jsx(mn, { ...$, children: /* @__PURE__ */ t.jsxs("form", { id: Yo(Go), onSubmit: re, children: [
|
|
2756
|
-
e?.fetchState === "Error" && e.error?.code === 409 ? /* @__PURE__ */ t.jsx(
|
|
2757
|
-
Yr,
|
|
2758
|
-
{
|
|
2759
|
-
warningText: k.accountExistWarning
|
|
2760
|
-
}
|
|
2761
|
-
) : null,
|
|
2762
|
-
/* @__PURE__ */ t.jsx(
|
|
2763
|
-
Kr,
|
|
2764
|
-
{
|
|
2765
|
-
bankAccountToCreate: v,
|
|
2766
|
-
fetchBankNameByRoutingStatus: m,
|
|
2767
|
-
sectionId: Rt
|
|
2768
|
-
}
|
|
2769
|
-
)
|
|
2770
|
-
] }) }) })
|
|
2771
|
-
] }),
|
|
2772
|
-
/* @__PURE__ */ t.jsx(
|
|
2773
|
-
In,
|
|
2774
|
-
{
|
|
2775
|
-
formId: Yo(Go),
|
|
2776
|
-
primaryBtn: {
|
|
2777
|
-
label: k.saveAccount,
|
|
2778
|
-
isLoading: e.fetchState === "In-Progress",
|
|
2779
|
-
style: { width: Ve.buttonWidth.value(y) },
|
|
2780
|
-
isDisabled: S != null
|
|
2781
|
-
},
|
|
2782
|
-
cancelBtn: {
|
|
2783
|
-
label: M.cancel,
|
|
2784
|
-
style: { width: Ve.buttonWidth.value(y) },
|
|
2785
|
-
shouldResetOnCancel: !1,
|
|
2786
|
-
onClick: () => {
|
|
2787
|
-
$.formState.isDirty ? B(!0) : (B(!1), $.reset(), b());
|
|
2788
|
-
}
|
|
2789
|
-
}
|
|
2790
|
-
}
|
|
2791
|
-
)
|
|
2792
|
-
] });
|
|
2793
|
-
}, ba = n.div`
|
|
2794
|
-
display: flex;
|
|
2795
|
-
flex-direction: column;
|
|
2796
|
-
width: 100%;
|
|
2797
|
-
height: 100%;
|
|
2798
|
-
`, wa = n.div`
|
|
2799
|
-
margin: ${o.sp2} 0;
|
|
2800
|
-
position: relative;
|
|
2801
|
-
`, $a = n.div`
|
|
2802
|
-
margin: ${(e) => Ve.orSeperatorTopBottomMargin.valuePx(e.windowSize)} 0;
|
|
2803
|
-
position: relative;
|
|
2804
|
-
`, Sa = n.div`
|
|
2805
|
-
background: ${(e) => e.theme.colors.grey2};
|
|
2806
|
-
height: 1px;
|
|
2807
|
-
`, va = n(kr)`
|
|
2808
|
-
color: ${(e) => e.theme.colors.primary};
|
|
2809
|
-
margin-bottom: ${(e) => Ve.subTitleMarginbottom.valuePx(e.windowSize)};
|
|
2810
|
-
`, Ca = n.div`
|
|
2811
|
-
display: flex;
|
|
2812
|
-
justify-content: center;
|
|
2813
|
-
`, Ta = n(yo)`
|
|
2814
|
-
background: ${(e) => e.theme.colors.background};
|
|
2815
|
-
border: 1px solid ${(e) => e.theme.colors.grey2};
|
|
2816
|
-
border-radius: ${o.sp5};
|
|
2817
|
-
width: 43px;
|
|
2818
|
-
height: 25px;
|
|
2819
|
-
display: flex;
|
|
2820
|
-
align-items: center;
|
|
2821
|
-
justify-content: center;
|
|
2822
|
-
color: ${(e) => e.theme.colors.grey1};
|
|
2823
|
-
top: -11px;
|
|
2824
|
-
position: absolute;
|
|
2825
|
-
`, ka = n.div`
|
|
2826
|
-
display: flex;
|
|
2827
|
-
flex-direction: column;
|
|
2828
|
-
flex-grow: 1;
|
|
2829
|
-
`, ja = n.div`
|
|
2830
|
-
padding-left: ${(e) => Ve.paddingLeft.valuePx(e.size)};
|
|
2831
|
-
padding-right: ${(e) => Ve.paddingRight.valuePx(e.size)};
|
|
2832
|
-
`, Ia = n.div`
|
|
2833
|
-
padding-left: ${(e) => Ve.paddingLeft.valuePx(e.size)};
|
|
2834
|
-
padding-right: ${(e) => Ve.paddingRight.valuePx(e.size)};
|
|
2835
|
-
padding-bottom: ${o.sp3};
|
|
2836
|
-
`, Oe = {
|
|
2837
|
-
containerWidth: new s(343, 544),
|
|
2838
|
-
confirmationPopUpTitleMarginTop: new s(r[6], r[7]),
|
|
2839
|
-
confirmationPopUpTitlePaddingLeftRight: new s(r[5], r[8]),
|
|
2840
|
-
submitButtonWidth: new s(145, 156),
|
|
2841
|
-
cancelButtonWidth: new s(121, 121),
|
|
2842
|
-
errorLineItemGap: new s(r[2], 12),
|
|
2843
|
-
styledCloseIconRight: new s(r[3], r[8])
|
|
2844
|
-
}, { footer: Jo } = we.getLocalizedStrings().common, be = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo, Xo = ({ fetchState: e }) => {
|
|
2845
|
-
switch (e) {
|
|
2846
|
-
case "Not-Started":
|
|
2847
|
-
return /* @__PURE__ */ t.jsx(Zo, {});
|
|
2848
|
-
case "In-Progress":
|
|
2849
|
-
return /* @__PURE__ */ t.jsx(
|
|
2850
|
-
vt,
|
|
2851
|
-
{
|
|
2852
|
-
size: "Small",
|
|
2853
|
-
start: !0,
|
|
2854
|
-
style: {
|
|
2855
|
-
alignItems: "center",
|
|
2856
|
-
display: "flex"
|
|
2857
|
-
}
|
|
2858
|
-
}
|
|
2859
|
-
);
|
|
2860
|
-
case "Completed":
|
|
2861
|
-
return /* @__PURE__ */ t.jsx(Wn, {});
|
|
2862
|
-
default:
|
|
2863
|
-
return /* @__PURE__ */ t.jsx(Zo, {});
|
|
2864
|
-
}
|
|
2865
|
-
}, Oa = (e) => {
|
|
2866
|
-
switch (e) {
|
|
2867
|
-
case "Not-Started":
|
|
2868
|
-
return be.detectDuplicates;
|
|
2869
|
-
case "In-Progress":
|
|
2870
|
-
return be.detectingDuplicates;
|
|
2871
|
-
case "Completed":
|
|
2872
|
-
return be.noDuplicatesFound;
|
|
2873
|
-
default:
|
|
2874
|
-
return be.detectDuplicates;
|
|
2875
|
-
}
|
|
2876
|
-
}, Pa = ({
|
|
2877
|
-
submitFetchState: e,
|
|
2878
|
-
duplicateReimbursementStatus: i,
|
|
2879
|
-
hasDuplicateLine: a,
|
|
2880
|
-
numberOfDuplicateLines: d,
|
|
2881
|
-
setShowDuplicatePopup: p,
|
|
2882
|
-
analytics: v,
|
|
2883
|
-
reimbursementId: m,
|
|
2884
|
-
submitReport: S,
|
|
2885
|
-
fetchDuplicateReimbursement: x,
|
|
2886
|
-
clearDuplicateReimbursementDetail: l,
|
|
2887
|
-
clearRemiSaveStatus: C
|
|
2888
|
-
}) => {
|
|
2889
|
-
const b = ze(), [c, y] = It.useState(!0), $ = mo(e), O = mo(
|
|
2890
|
-
i
|
|
2891
|
-
);
|
|
2892
|
-
It.useEffect(() => {
|
|
2893
|
-
setTimeout(() => {
|
|
2894
|
-
c && (y(!1), i === "Not-Started" && x());
|
|
2895
|
-
}, 2e3);
|
|
2896
|
-
}, [
|
|
2897
|
-
i,
|
|
2898
|
-
x,
|
|
2899
|
-
c
|
|
2900
|
-
]), It.useEffect(() => {
|
|
2901
|
-
$ === "In-Progress" && e === "Completed" && (l(), p(!1));
|
|
2902
|
-
}, [
|
|
2903
|
-
e,
|
|
2904
|
-
$,
|
|
2905
|
-
p,
|
|
2906
|
-
l
|
|
2907
|
-
]), It.useEffect(() => {
|
|
2908
|
-
O === "In-Progress" && i === "Completed" && !a && S();
|
|
2909
|
-
}, [
|
|
2910
|
-
O,
|
|
2911
|
-
i,
|
|
2912
|
-
a,
|
|
2913
|
-
S
|
|
2914
|
-
]);
|
|
2915
|
-
const T = i === "Error" || e === "Error";
|
|
2916
|
-
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2917
|
-
T ? (
|
|
2918
|
-
//onClick will be automatically handled by the ClickAwayListener inside ConfirmationPopup component
|
|
2919
|
-
/* @__PURE__ */ t.jsx(Ba, { size: b })
|
|
2920
|
-
) : null,
|
|
2921
|
-
/* @__PURE__ */ t.jsx(
|
|
2922
|
-
wo,
|
|
2923
|
-
{
|
|
2924
|
-
action: {
|
|
2925
|
-
onOkClick: () => {
|
|
2926
|
-
T ? (l(), e === "Error" && C(), y(!0)) : (v?.trackReimbursementReviewDuplicateReportReimbursement(
|
|
2927
|
-
d,
|
|
2928
|
-
m
|
|
2929
|
-
), p(!1), jr());
|
|
2930
|
-
},
|
|
2931
|
-
onCancelClick: () => {
|
|
2932
|
-
T ? (l(), e === "Error" && C(), p(!1)) : (v?.trackReimbursementSubmitAnywayDuplicateReimbursement(
|
|
2933
|
-
d,
|
|
2934
|
-
m
|
|
2935
|
-
), S());
|
|
2936
|
-
}
|
|
2937
|
-
},
|
|
2938
|
-
shouldClickAway: T,
|
|
2939
|
-
isSecondaryLoading: e === "In-Progress",
|
|
2940
|
-
secondaryButtonVariant: "secondary",
|
|
2941
|
-
primaryButtonText: T ? Jo.resubmit : be.primaryButtonText,
|
|
2942
|
-
secondaryButtonText: T ? Jo.cancel : be.secondaryButtonText,
|
|
2943
|
-
primaryButtonWidth: T ? Oe.cancelButtonWidth.value(b) : Oe.submitButtonWidth.value(b),
|
|
2944
|
-
secondaryButtonWidth: T ? Oe.cancelButtonWidth.value(b) : Oe.submitButtonWidth.value(b),
|
|
2945
|
-
descriptionComponent: /* @__PURE__ */ t.jsx(Ma, { size: b, children: /* @__PURE__ */ t.jsxs(
|
|
2946
|
-
Aa,
|
|
2947
|
-
{
|
|
2948
|
-
hasDuplicate: a,
|
|
2949
|
-
duplicateReimbursementStatus: i,
|
|
2950
|
-
children: [
|
|
2951
|
-
/* @__PURE__ */ t.jsxs(no, { isDisabled: !1, isSuccess: !c, children: [
|
|
2952
|
-
c ? /* @__PURE__ */ t.jsx(
|
|
2953
|
-
vt,
|
|
2954
|
-
{
|
|
2955
|
-
size: "Small",
|
|
2956
|
-
start: !0,
|
|
2957
|
-
style: {
|
|
2958
|
-
alignItems: "center",
|
|
2959
|
-
display: "flex"
|
|
2960
|
-
}
|
|
2961
|
-
}
|
|
2962
|
-
) : /* @__PURE__ */ t.jsx(Wn, {}),
|
|
2963
|
-
/* @__PURE__ */ t.jsx(oo, { isDisabled: !1, children: c ? be.reviewingExpenses : be.reviewedAllExpenses })
|
|
2964
|
-
] }),
|
|
2965
|
-
a || i === "Error" ? /* @__PURE__ */ t.jsxs(tn, { size: b, children: [
|
|
2966
|
-
/* @__PURE__ */ t.jsx(Qo, {}),
|
|
2967
|
-
/* @__PURE__ */ t.jsx(en, { children: i === "Error" ? be.failedToDetect : `${d} ${be.duplicateExpensesFound}` })
|
|
2968
|
-
] }) : /* @__PURE__ */ t.jsxs(
|
|
2969
|
-
no,
|
|
2970
|
-
{
|
|
2971
|
-
isDisabled: i === "Not-Started",
|
|
2972
|
-
isSuccess: i === "Completed" && d === 0,
|
|
2973
|
-
children: [
|
|
2974
|
-
/* @__PURE__ */ t.jsx(Xo, { fetchState: i }),
|
|
2975
|
-
/* @__PURE__ */ t.jsx(
|
|
2976
|
-
oo,
|
|
2977
|
-
{
|
|
2978
|
-
isDisabled: i === "Not-Started",
|
|
2979
|
-
children: Oa(i)
|
|
2980
|
-
}
|
|
2981
|
-
)
|
|
2982
|
-
]
|
|
2983
|
-
}
|
|
2984
|
-
),
|
|
2985
|
-
e === "Error" ? /* @__PURE__ */ t.jsxs(tn, { size: b, children: [
|
|
2986
|
-
/* @__PURE__ */ t.jsx(Qo, {}),
|
|
2987
|
-
/* @__PURE__ */ t.jsx(en, { children: be.failedToSubmit })
|
|
2988
|
-
] }) : a || i === "Error" ? null : /* @__PURE__ */ t.jsxs(
|
|
2989
|
-
no,
|
|
2990
|
-
{
|
|
2991
|
-
isDisabled: e === "Not-Started",
|
|
2992
|
-
isSuccess: e === "Completed",
|
|
2993
|
-
children: [
|
|
2994
|
-
/* @__PURE__ */ t.jsx(Xo, { fetchState: e }),
|
|
2995
|
-
/* @__PURE__ */ t.jsx(oo, { isDisabled: e === "Not-Started", children: e === "Not-Started" ? be.submitReport : be.submittingReport })
|
|
2996
|
-
]
|
|
2997
|
-
}
|
|
2998
|
-
)
|
|
2999
|
-
]
|
|
3000
|
-
}
|
|
3001
|
-
) }),
|
|
3002
|
-
titleComponent: /* @__PURE__ */ t.jsx(La, { size: b, children: be.title }),
|
|
3003
|
-
showFooter: a || T,
|
|
3004
|
-
containerStyle: {
|
|
3005
|
-
width: Oe.containerWidth.value(b),
|
|
3006
|
-
maxWidth: "unset"
|
|
3007
|
-
}
|
|
3008
|
-
}
|
|
3009
|
-
)
|
|
3010
|
-
] });
|
|
3011
|
-
}, Ba = n(On)`
|
|
3012
|
-
width: ${o.sp4};
|
|
3013
|
-
height: ${o.sp4};
|
|
3014
|
-
color: ${(e) => e.theme.colors.hero};
|
|
3015
|
-
position: fixed;
|
|
3016
|
-
top: 19px;
|
|
3017
|
-
right: ${(e) => Oe.styledCloseIconRight.valuePx(e.size)};
|
|
3018
|
-
z-index: 11;
|
|
3019
|
-
cursor: pointer;
|
|
3020
|
-
&:hover {
|
|
3021
|
-
color: ${(e) => e.theme.colors.primary};
|
|
3022
|
-
}
|
|
3023
|
-
`, Qo = n(Or)`
|
|
3024
|
-
width: ${o.sp4};
|
|
3025
|
-
height: ${o.sp4};
|
|
3026
|
-
min-width: ${o.sp4};
|
|
3027
|
-
color: ${I.brandColorGoldDark};
|
|
3028
|
-
`, Zo = n(Jr)`
|
|
3029
|
-
width: ${o.sp3};
|
|
3030
|
-
height: ${o.sp3};
|
|
3031
|
-
min-width: ${o.sp3};
|
|
3032
|
-
color: ${(e) => e.theme.colors.grey3};
|
|
3033
|
-
`, oo = n.div`
|
|
3034
|
-
color: ${(e) => e.isDisabled ? e.theme.colors.grey2 : e.theme.colors.primary};
|
|
3035
|
-
text-align: left;
|
|
3036
|
-
`, en = n.div`
|
|
3037
|
-
color: ${I.brandColorGoldDark};
|
|
3038
|
-
`, no = n.div`
|
|
3039
|
-
display: flex;
|
|
3040
|
-
align-items: center;
|
|
3041
|
-
gap: ${(e) => e.isSuccess ? o.sp2 : o.sp3};
|
|
3042
|
-
border: 1px solid
|
|
3043
|
-
${(e) => e.isDisabled ? e.theme.colors.grey3 : e.theme.colors.primary};
|
|
3044
|
-
padding: ${o.sp3};
|
|
3045
|
-
border-radius: ${o.sp2};
|
|
3046
|
-
`, Aa = n.div`
|
|
3047
|
-
display: flex;
|
|
3048
|
-
flex-direction: column;
|
|
3049
|
-
gap: ${o.sp3};
|
|
3050
|
-
margin-bottom: ${(e) => e.hasDuplicate || e.duplicateReimbursementStatus === "Error" ? 0 : o.sp3};
|
|
3051
|
-
`, tn = n.div`
|
|
3052
|
-
display: flex;
|
|
3053
|
-
align-items: center;
|
|
3054
|
-
gap: ${(e) => Oe.errorLineItemGap.valuePx(e.size)};
|
|
3055
|
-
border: 1px solid ${(e) => e.theme.colors.brandColorGold};
|
|
3056
|
-
background-color: ${I.alertLight};
|
|
3057
|
-
padding: ${o.sp3};
|
|
3058
|
-
border-radius: ${o.sp2};
|
|
3059
|
-
text-align: left;
|
|
3060
|
-
`, La = n($o)`
|
|
3061
|
-
margin-top: ${(e) => Oe.confirmationPopUpTitleMarginTop.valuePx(e.size)};
|
|
3062
|
-
padding-left: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
3063
|
-
padding-right: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
3064
|
-
color: ${(e) => e.theme.colors.primary};
|
|
3065
|
-
word-break: break-word;
|
|
3066
|
-
width: ${(e) => e.size === "small" ? "max-content" : "-webkit-fill-available"};
|
|
3067
|
-
`, Ma = n(xn)`
|
|
3068
|
-
color: ${(e) => e.theme.colors.hero};
|
|
3069
|
-
padding-left: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
3070
|
-
padding-right: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
3071
|
-
margin-bottom: ${o.sp5};
|
|
3072
|
-
margin-top: ${o.sp4};
|
|
3073
|
-
white-space: pre-line;
|
|
3074
|
-
width: -webkit-fill-available;
|
|
3075
|
-
`, Wn = n(Ir)`
|
|
3076
|
-
width: ${o.sp4};
|
|
3077
|
-
height: ${o.sp4};
|
|
3078
|
-
min-width: ${o.sp4};
|
|
3079
|
-
color: ${I.success};
|
|
3080
|
-
`, ee = {
|
|
3081
|
-
rightMargin: new s(r[3], r[8]),
|
|
3082
|
-
leftMargin: new s(r[3], r[6]),
|
|
3083
|
-
bottomMargin: new s(56, 56),
|
|
3084
|
-
closeMarginTop: new s(0, 19),
|
|
3085
|
-
closeMarginRight: new s(r[3], r[8]),
|
|
3086
|
-
rightSectionWidth: new s(100, 58),
|
|
3087
|
-
leftSectionWidth: new s(100, 42),
|
|
3088
|
-
footerButtonWidth: new s(120, 165),
|
|
3089
|
-
right: new s(r[3], r[0]),
|
|
3090
|
-
actionsContainerRight: new s(r[0], r[6]),
|
|
3091
|
-
otherActionsContainerBottom: new s(58, 44),
|
|
3092
|
-
duplicateBannerWrapperMarginTop: new s(r[5], r[3]),
|
|
3093
|
-
duplicateBannerWrapperMarginRight: new s(r[3], r[8]),
|
|
3094
|
-
duplicateBannerWrapperMarginBottom: new s(r[5], r[3]),
|
|
3095
|
-
duplicateBannerWrapperMarginLeft: new s(r[3], r[6]),
|
|
3096
|
-
navBarWidth: new s(100, 58)
|
|
3097
|
-
}, {
|
|
3098
|
-
spendManagement: {
|
|
3099
|
-
reimbursement: { reimbursementDetail: f, bulkActions: on }
|
|
3100
|
-
},
|
|
3101
|
-
common: {
|
|
3102
|
-
currency: { currencyCode: Ee, currencySymbol: Lt },
|
|
3103
|
-
texts: { comments: Ra },
|
|
3104
|
-
strings: { empty: za }
|
|
3105
|
-
},
|
|
3106
|
-
collaboration: {
|
|
3107
|
-
threads: {
|
|
3108
|
-
placeholder: { addANewComment: Fa, replyAComment: Na },
|
|
3109
|
-
tooltip: { resolveComment: Wa, unResolveComment: Ea }
|
|
3110
|
-
}
|
|
3111
|
-
},
|
|
3112
|
-
dateFormat: nn
|
|
3113
|
-
} = we.getLocalizedStrings(), rn = "editReimbursementDetailPage", an = (e) => `${e}_form`, Va = (e, i, a, d, p, v, m, S, x) => {
|
|
3114
|
-
const l = e.outOfPocket, C = e.mileage, b = l.merchant, c = l.recommendations;
|
|
3115
|
-
return {
|
|
3116
|
-
lineIndex: v,
|
|
3117
|
-
lineId: e?.lineId ?? String(v + 1),
|
|
3118
|
-
reimbursementType: e?.type ?? f.outOfPocketKey,
|
|
3119
|
-
file: e?.file,
|
|
3120
|
-
homeCurrencyConversions: {
|
|
3121
|
-
amount: e?.homeCurrencyConversions?.amount ?? 0,
|
|
3122
|
-
currencyCode: e?.homeCurrencyConversions?.currencyCode ?? m.currencyCode,
|
|
3123
|
-
currencySymbol: e?.homeCurrencyConversions?.currencySymbol ?? m.currencySymbol
|
|
3124
|
-
},
|
|
3125
|
-
outOfPocket: {
|
|
3126
|
-
recommendedAccount: l.recommendedAccount,
|
|
3127
|
-
//account to show in update to checkbox
|
|
3128
|
-
isCategoryUpdateSelected: l.isCategoryUpdateSelected ?? !1,
|
|
3129
|
-
//update to checkbox is ticked
|
|
3130
|
-
isCategoryFirstTimeAutofilled: l.isCategoryFirstTimeAutofilled ?? !1,
|
|
3131
|
-
retainedAccount: l.retainedAccount,
|
|
3132
|
-
//account to show in retain checkbox
|
|
3133
|
-
isRetainedCategorySelected: l.isRetainedCategorySelected ?? !1,
|
|
3134
|
-
//retain checkbox is selected
|
|
3135
|
-
recommendations: c ?? [],
|
|
3136
|
-
transactionDate: l?.transactionDate?.toDate() ?? void 0,
|
|
3137
|
-
class: {
|
|
3138
|
-
allOptions: Ue(
|
|
3139
|
-
Ye(a, [])
|
|
3140
|
-
),
|
|
3141
|
-
selectedOption: l?.lineDetail?.class?.classId ?? x
|
|
3142
|
-
},
|
|
3143
|
-
account: {
|
|
3144
|
-
allOptions: Ue(
|
|
3145
|
-
Et(i, c)
|
|
3146
|
-
),
|
|
3147
|
-
selectedOption: l.lineDetail?.account?.qboId ?? l.lineDetail?.account?.accountId
|
|
3148
|
-
},
|
|
3149
|
-
amount: {
|
|
3150
|
-
amount: l?.amount ?? 0,
|
|
3151
|
-
currencyCode: l?.currencyCode ?? m.currencyCode,
|
|
3152
|
-
currencySymbol: l?.currencySymbol ?? m.currencySymbol,
|
|
3153
|
-
currency: {
|
|
3154
|
-
allOptions: S.map((y) => ({
|
|
3155
|
-
label: `${y.currencyCode} - ${y.currency}`,
|
|
3156
|
-
value: y.currencyCode,
|
|
3157
|
-
countryCode: bo(
|
|
3158
|
-
y.countryCode
|
|
3159
|
-
)
|
|
3160
|
-
})),
|
|
3161
|
-
selectedOption: l?.currencyCode ?? m.currencyCode ?? Ee
|
|
3162
|
-
}
|
|
3163
|
-
},
|
|
3164
|
-
memo: l?.description ?? void 0,
|
|
3165
|
-
merchant: {
|
|
3166
|
-
allOptions: d.map((y) => y.id).filter((y) => !!y),
|
|
3167
|
-
selectedOption: b?.id ? b?.id : b?.name ? b?.name : e?.lineId != null ? p[e?.lineId] : void 0
|
|
3168
|
-
}
|
|
3169
|
-
},
|
|
3170
|
-
mileage: {
|
|
3171
|
-
transactionDate: C?.transactionDate?.toDate(),
|
|
3172
|
-
class: {
|
|
3173
|
-
allOptions: Ue(
|
|
3174
|
-
Ye(a, [])
|
|
3175
|
-
),
|
|
3176
|
-
selectedOption: C?.lineDetail?.class?.classId
|
|
3177
|
-
},
|
|
3178
|
-
distanceInMiles: C?.distanceMileage?.value,
|
|
3179
|
-
amount: {
|
|
3180
|
-
amount: C?.amount ?? 0,
|
|
3181
|
-
currencyCode: C?.currencyCode ?? m.currencyCode,
|
|
3182
|
-
currencySymbol: C?.currencySymbol ?? m.currencySymbol
|
|
3183
|
-
},
|
|
3184
|
-
memo: C?.description
|
|
3185
|
-
}
|
|
3186
|
-
};
|
|
3187
|
-
}, ro = (e, i, a) => {
|
|
3188
|
-
const d = [];
|
|
3189
|
-
return Object.values(e.lineDetailSection).forEach(
|
|
3190
|
-
(p, v) => {
|
|
3191
|
-
p?.lineId != null && d.push(
|
|
3192
|
-
Va(
|
|
3193
|
-
p,
|
|
3194
|
-
e.accountsHierarchyList,
|
|
3195
|
-
e.classHierarchyList,
|
|
3196
|
-
e.merchantList.merchants,
|
|
3197
|
-
e.tentativeMerchantNameByLineId,
|
|
3198
|
-
v,
|
|
3199
|
-
i,
|
|
3200
|
-
e.allCurrencies,
|
|
3201
|
-
e.loggedInUserDepartmentId
|
|
3202
|
-
)
|
|
3203
|
-
);
|
|
3204
|
-
}
|
|
3205
|
-
), d.length === 0 && d.push(
|
|
3206
|
-
Nn(
|
|
3207
|
-
0,
|
|
3208
|
-
"1",
|
|
3209
|
-
e.accountsHierarchyList,
|
|
3210
|
-
e.classHierarchyList,
|
|
3211
|
-
e.merchantList.merchants,
|
|
3212
|
-
i,
|
|
3213
|
-
e.allCurrencies,
|
|
3214
|
-
e.loggedInUserDepartmentId
|
|
3215
|
-
)
|
|
3216
|
-
), {
|
|
3217
|
-
[Nt]: {
|
|
3218
|
-
reportTitle: e.whatForSection.reportTitle
|
|
3219
|
-
},
|
|
3220
|
-
[So]: d,
|
|
3221
|
-
[wt]: {
|
|
3222
|
-
selectedOption: e.paymentTo,
|
|
3223
|
-
allOptions: a.map((p) => p.bankAccountId)
|
|
3224
|
-
}
|
|
3225
|
-
};
|
|
3226
|
-
}, io = (e, i) => {
|
|
3227
|
-
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);
|
|
3228
|
-
return Object.values(e).reduce((d, p) => d + a(p), 0);
|
|
3229
|
-
}, ao = (e, i, a, d, p, v, m, S) => {
|
|
3230
|
-
const x = {};
|
|
3231
|
-
return e.lineInfo.forEach((l) => {
|
|
3232
|
-
const C = S.find(
|
|
3233
|
-
(O) => O.classId === l.mileage.class.selectedOption
|
|
3234
|
-
), b = m.find(
|
|
3235
|
-
(O) => O.qboId === l.outOfPocket.account.selectedOption || O.accountId === l.outOfPocket.account.selectedOption
|
|
3236
|
-
), c = S.find(
|
|
3237
|
-
(O) => O.classId === l.outOfPocket.class.selectedOption
|
|
3238
|
-
), y = i.find(
|
|
3239
|
-
(O) => O.id === l.outOfPocket.merchant.selectedOption
|
|
3240
|
-
), $ = v.find(
|
|
3241
|
-
(O) => O.currencyCode === l.outOfPocket.amount?.currency.selectedOption
|
|
3242
|
-
)?.currencySymbol;
|
|
3243
|
-
x[l.lineId] = {
|
|
3244
|
-
fileId: l.file?.fileId,
|
|
3245
|
-
lineId: l.lineId,
|
|
3246
|
-
type: l.reimbursementType,
|
|
3247
|
-
homeCurrencyConversions: l.homeCurrencyConversions ?? {
|
|
3248
|
-
amount: 0,
|
|
3249
|
-
currencyCode: "USD",
|
|
3250
|
-
currencySymbol: "$"
|
|
3251
|
-
},
|
|
3252
|
-
mileage: {
|
|
3253
|
-
description: l.mileage.memo ?? "",
|
|
3254
|
-
lineDetail: {
|
|
3255
|
-
class: C
|
|
3256
|
-
},
|
|
3257
|
-
transactionDate: l.mileage.transactionDate != null ? it(l.mileage.transactionDate.toDateString()) : void 0,
|
|
3258
|
-
amount: l.mileage.amount?.amount ?? 0,
|
|
3259
|
-
currencyCode: l.mileage.amount?.currencyCode ?? $,
|
|
3260
|
-
currencySymbol: l.mileage.amount?.currencySymbol ?? $,
|
|
3261
|
-
distanceMileage: {
|
|
3262
|
-
unit: "miles",
|
|
3263
|
-
value: l.mileage.distanceInMiles ?? 0
|
|
3264
|
-
}
|
|
3265
|
-
},
|
|
3266
|
-
outOfPocket: {
|
|
3267
|
-
description: l.outOfPocket.memo ?? "",
|
|
3268
|
-
lineDetail: {
|
|
3269
|
-
class: c,
|
|
3270
|
-
account: b
|
|
3271
|
-
},
|
|
3272
|
-
transactionDate: l.outOfPocket.transactionDate != null ? it(l.outOfPocket.transactionDate.toDateString()) : void 0,
|
|
3273
|
-
amount: l.outOfPocket.amount?.amount ?? 0,
|
|
3274
|
-
currencyCode: l.outOfPocket.amount?.currency.selectedOption ?? $,
|
|
3275
|
-
currencySymbol: $,
|
|
3276
|
-
merchant: l.outOfPocket.merchant.selectedOption != null ? {
|
|
3277
|
-
id: y?.id ?? "",
|
|
3278
|
-
name: y?.name ?? l.outOfPocket.merchant.selectedOption
|
|
3279
|
-
} : void 0,
|
|
3280
|
-
recommendations: l.outOfPocket.recommendations,
|
|
3281
|
-
recommendedAccount: l.outOfPocket.recommendedAccount,
|
|
3282
|
-
isCategoryUpdateSelected: l.outOfPocket.isCategoryUpdateSelected,
|
|
3283
|
-
isCategoryFirstTimeAutofilled: l.outOfPocket.isCategoryFirstTimeAutofilled,
|
|
3284
|
-
isRetainedCategorySelected: l.outOfPocket.isRetainedCategorySelected,
|
|
3285
|
-
retainedAccount: l.outOfPocket.retainedAccount
|
|
3286
|
-
}
|
|
3287
|
-
};
|
|
3288
|
-
}), {
|
|
3289
|
-
whatForSection: {
|
|
3290
|
-
reportTitle: e.whatFor.reportTitle
|
|
3291
|
-
},
|
|
3292
|
-
updatesByLineId: x,
|
|
3293
|
-
totalAmount: {
|
|
3294
|
-
amount: d,
|
|
3295
|
-
...a
|
|
3296
|
-
},
|
|
3297
|
-
currencyConversionStateByLineId: p,
|
|
3298
|
-
paymentTo: e.paymentTo.selectedOption
|
|
3299
|
-
};
|
|
3300
|
-
}, Nl = ({
|
|
3301
|
-
remiDetails: e,
|
|
3302
|
-
authParams: i,
|
|
3303
|
-
defaultCurrency: a,
|
|
3304
|
-
companyMileageConfigInfo: d,
|
|
3305
|
-
uploadInvoiceEndPoint: p,
|
|
3306
|
-
isReimbursementCommentingEnabled: v,
|
|
3307
|
-
isUserAdmin: m,
|
|
3308
|
-
analytics: S,
|
|
3309
|
-
reimbursementId: x,
|
|
3310
|
-
plaidConnectionDetails: l,
|
|
3311
|
-
bankAccountCreationState: C,
|
|
3312
|
-
bankNameByRouting: b,
|
|
3313
|
-
bankAccounts: c,
|
|
3314
|
-
isSignedInUserReimbursementCreator: y,
|
|
3315
|
-
uncategorizedAccounts: $,
|
|
3316
|
-
bankAccountToCreate: O,
|
|
3317
|
-
fetchBankNameByRoutingStatus: T,
|
|
3318
|
-
onUserBankDetailsUpdated: P,
|
|
3319
|
-
onFetchBankName: H,
|
|
3320
|
-
onSaveBankAccount: B,
|
|
3321
|
-
fetchDuplicateReimbursement: k,
|
|
3322
|
-
clearDuplicateReimbursementDetail: M,
|
|
3323
|
-
clearRemiSaveStatus: te,
|
|
3324
|
-
removeDuplicateReimbursementForLine: ne,
|
|
3325
|
-
onDuplicateLineClick: re,
|
|
3326
|
-
onExistingMerchantChange: Y,
|
|
3327
|
-
onNewMerchantChange: K,
|
|
3328
|
-
onReceiptsUpload: F,
|
|
3329
|
-
saveRemiDetails: J,
|
|
3330
|
-
submitRemiDetails: q,
|
|
3331
|
-
discardReimbursementDetailsFromLocalStore: L,
|
|
3332
|
-
onReimbursementDetailsChanged: ce,
|
|
3333
|
-
updateReimbursementType: X,
|
|
3334
|
-
onHomeCurrencyConversionUpdate: V,
|
|
3335
|
-
redirectToReimbursementListScreen: de,
|
|
3336
|
-
redirectToReimbursementDetailScreen: _e,
|
|
3337
|
-
deleteReimbursement: ue,
|
|
3338
|
-
removeFileFromLine: fe,
|
|
3339
|
-
onZeniLogoClick: le,
|
|
3340
|
-
onAmountChanged: Be,
|
|
3341
|
-
updateInvoiceUploadFetchState: Ae,
|
|
3342
|
-
clearTentativeNameForLine: Le,
|
|
3343
|
-
onAddNewRule: me,
|
|
3344
|
-
onFetchLinkTokenClick: Me,
|
|
3345
|
-
onEstablishConnectionClick: pe,
|
|
3346
|
-
deleteBankAccount: ve,
|
|
3347
|
-
onBackClickFromBankAccountPage: Je
|
|
3348
|
-
}) => {
|
|
3349
|
-
const h = bt(null), Ce = bt(null), he = mo(e.uploadStatus), He = $t(), Re = St(), [Xe, Fe] = Q(!1), [Ke, Ge] = Q(!1), [Qe, Ze] = Q("save"), [ie, lt] = Q(
|
|
3350
|
-
io(
|
|
3351
|
-
e.lineDetailSection,
|
|
3352
|
-
e.currencyConversionStatus
|
|
3353
|
-
)
|
|
3354
|
-
), [pt, et] = Q(!1), [_, ht] = Q(
|
|
3355
|
-
null
|
|
3356
|
-
), [W, se] = Q(!1), Ct = `dashboard_${Re.currentTenant?.companyId}`, Te = un({
|
|
3357
|
-
mode: "all",
|
|
3358
|
-
reValidateMode: "onChange",
|
|
3359
|
-
defaultValues: xt(
|
|
3360
|
-
() => ro(e, a, c),
|
|
3361
|
-
[e, a, c]
|
|
3362
|
-
),
|
|
3363
|
-
values: xt(
|
|
3364
|
-
() => ro(e, a, c),
|
|
3365
|
-
[e, a, c]
|
|
3366
|
-
),
|
|
3367
|
-
resetOptions: {
|
|
3368
|
-
keepErrors: !0
|
|
3369
|
-
},
|
|
3370
|
-
shouldFocusError: !0
|
|
3371
|
-
}), { isDirty: R, dirtyFields: En } = Te.formState, Vn = async (g, j) => {
|
|
3372
|
-
const { lineInfo: u } = j, w = Number(g.split(".")[1]);
|
|
3373
|
-
if (g.includes("reportTitle") || g.includes("memo"))
|
|
3374
|
-
return;
|
|
3375
|
-
if (g.includes("reimbursementType")) {
|
|
3376
|
-
const z = u[w].mileage, E = u[w].outOfPocket;
|
|
3377
|
-
u[w] = {
|
|
3378
|
-
...u[w],
|
|
3379
|
-
outOfPocket: {
|
|
3380
|
-
transactionDate: E.transactionDate ?? void 0,
|
|
3381
|
-
class: {
|
|
3382
|
-
allOptions: E.class.allOptions ?? Ue(
|
|
3383
|
-
Ye(e.classHierarchyList, [])
|
|
3384
|
-
),
|
|
3385
|
-
selectedOption: E.class.selectedOption ?? void 0
|
|
3386
|
-
},
|
|
3387
|
-
account: {
|
|
3388
|
-
allOptions: E.account.allOptions ?? Ue(
|
|
3389
|
-
Et(e.accountsHierarchyList, [])
|
|
3390
|
-
),
|
|
3391
|
-
selectedOption: E.account.selectedOption ?? void 0
|
|
3392
|
-
},
|
|
3393
|
-
amount: E.amount ?? {
|
|
3394
|
-
amount: 0,
|
|
3395
|
-
currencyCode: a.currencyCode,
|
|
3396
|
-
currencySymbol: a.currencySymbol,
|
|
3397
|
-
currency: {
|
|
3398
|
-
allOptions: e.allCurrencies.map((ke) => ({
|
|
3399
|
-
label: `${ke.currencyCode} - ${ke.currency}`,
|
|
3400
|
-
value: ke.currencyCode,
|
|
3401
|
-
countryCode: bo(
|
|
3402
|
-
ke.countryCode
|
|
3403
|
-
)
|
|
3404
|
-
})),
|
|
3405
|
-
selectedOption: a.currencyCode ?? Ee
|
|
3406
|
-
}
|
|
3407
|
-
},
|
|
3408
|
-
memo: E.memo ?? void 0,
|
|
3409
|
-
merchant: E.merchant ?? void 0,
|
|
3410
|
-
recommendations: E.recommendations ?? [],
|
|
3411
|
-
recommendedAccount: E.recommendedAccount ?? void 0,
|
|
3412
|
-
isCategoryUpdateSelected: E.isCategoryUpdateSelected ?? !1,
|
|
3413
|
-
isCategoryFirstTimeAutofilled: E.isCategoryFirstTimeAutofilled ?? !1,
|
|
3414
|
-
retainedAccount: E.retainedAccount ?? void 0,
|
|
3415
|
-
isRetainedCategorySelected: E.isRetainedCategorySelected ?? !1
|
|
3416
|
-
},
|
|
3417
|
-
mileage: {
|
|
3418
|
-
transactionDate: z.transactionDate ?? void 0,
|
|
3419
|
-
class: {
|
|
3420
|
-
allOptions: z.class.allOptions ?? Ue(
|
|
3421
|
-
Ye(e.classHierarchyList, [])
|
|
3422
|
-
),
|
|
3423
|
-
selectedOption: z.class.selectedOption ?? e.loggedInUserDepartmentId
|
|
3424
|
-
},
|
|
3425
|
-
distanceInMiles: z.distanceInMiles,
|
|
3426
|
-
amount: {
|
|
3427
|
-
amount: z?.amount?.amount ?? 0,
|
|
3428
|
-
currencyCode: z?.amount?.currencyCode ?? Ee,
|
|
3429
|
-
currencySymbol: z?.amount?.currencySymbol ?? Lt
|
|
3430
|
-
},
|
|
3431
|
-
memo: z.memo ?? void 0
|
|
3432
|
-
}
|
|
3433
|
-
};
|
|
3434
|
-
} else if (g.includes("mileage.distanceInMiles")) {
|
|
3435
|
-
const { distanceInMiles: z } = u[w].mileage, E = d?.mileageUnitAmount ?? 0;
|
|
3436
|
-
u[w].mileage = {
|
|
3437
|
-
...u[w].mileage,
|
|
3438
|
-
amount: {
|
|
3439
|
-
amount: z != null ? z * E : 0,
|
|
3440
|
-
currencyCode: a.currencyCode,
|
|
3441
|
-
currencySymbol: a.currencySymbol
|
|
3442
|
-
}
|
|
3443
|
-
};
|
|
3444
|
-
} else if (g.includes("outOfPocket.amount") && u[w].lineId) {
|
|
3445
|
-
const z = u[w].outOfPocket.amount, E = e.allCurrencies.find(
|
|
3446
|
-
(ke) => ke.currencyCode === z?.currency.selectedOption
|
|
3447
|
-
)?.currencySymbol;
|
|
3448
|
-
if (z?.currencyCode !== z?.currency.selectedOption) {
|
|
3449
|
-
const ke = z?.currency?.allOptions || [];
|
|
3450
|
-
u[w].outOfPocket.amount = {
|
|
3451
|
-
currency: {
|
|
3452
|
-
allOptions: ke,
|
|
3453
|
-
selectedOption: z?.currency?.selectedOption
|
|
3454
|
-
},
|
|
3455
|
-
amount: u[w].outOfPocket?.amount?.amount ?? 0,
|
|
3456
|
-
currencyCode: z?.currency.selectedOption ?? Ee,
|
|
3457
|
-
currencySymbol: E ?? Lt
|
|
3458
|
-
};
|
|
3459
|
-
}
|
|
3460
|
-
if (z?.currency.selectedOption !== Ee)
|
|
3461
|
-
et(!0), Yn(u[w].lineId, Ee);
|
|
3462
|
-
else {
|
|
3463
|
-
const ke = {};
|
|
3464
|
-
u.forEach((Qt) => {
|
|
3465
|
-
ke[Qt.lineId] = {
|
|
3466
|
-
lineId: Qt.lineId,
|
|
3467
|
-
homeCurrencyConversions: Qt.homeCurrencyConversions
|
|
3468
|
-
};
|
|
3469
|
-
}), u[w].homeCurrencyConversions = {
|
|
3470
|
-
amount: z.amount ?? 0,
|
|
3471
|
-
currencyCode: z?.currency.selectedOption ?? Ee,
|
|
3472
|
-
currencySymbol: E ?? Lt
|
|
3473
|
-
};
|
|
3474
|
-
const jt = io(
|
|
3475
|
-
ke,
|
|
3476
|
-
e.currencyConversionStatus
|
|
3477
|
-
);
|
|
3478
|
-
ie !== jt && lt(jt);
|
|
3479
|
-
}
|
|
3480
|
-
} else if (g.includes("outOfPocket.isRetainedCategorySelected"))
|
|
3481
|
-
//retain checkbox is true
|
|
3482
|
-
u[w].outOfPocket.isRetainedCategorySelected === !0 && (u[w].outOfPocket.isCategoryUpdateSelected = !1, u[w].outOfPocket.account.selectedOption = u[w].outOfPocket.retainedAccount?.qboId);
|
|
3483
|
-
else if (g.includes("outOfPocket.isCategoryUpdateSelected"))
|
|
3484
|
-
if (
|
|
3485
|
-
//update to checkbox is true
|
|
3486
|
-
u[w].outOfPocket.isCategoryUpdateSelected === !0
|
|
3487
|
-
)
|
|
3488
|
-
u[w].outOfPocket.account.selectedOption = u[w].outOfPocket.recommendedAccount?.qboId, u[w].outOfPocket.isRetainedCategorySelected = !1;
|
|
3489
|
-
else {
|
|
3490
|
-
const z = u[w].lineId, E = e.editRemiInitialDetails.lineDetailSection[z]?.lineDetail?.account?.qboId;
|
|
3491
|
-
u[w].outOfPocket.account.selectedOption = E, u[w].outOfPocket.isRetainedCategorySelected = !1;
|
|
3492
|
-
}
|
|
3493
|
-
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
|
|
3494
|
-
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
|
|
3495
|
-
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);
|
|
3496
|
-
const kt = ao(
|
|
3497
|
-
{ ...j, lineInfo: u },
|
|
3498
|
-
e.merchantList.merchants,
|
|
3499
|
-
a,
|
|
3500
|
-
ie,
|
|
3501
|
-
e.currencyConversionStatus,
|
|
3502
|
-
e.allCurrencies,
|
|
3503
|
-
e.accountList.accounts,
|
|
3504
|
-
e.classList.classes
|
|
3505
|
-
);
|
|
3506
|
-
if (ce?.(kt), g.includes("outOfPocket.merchant")) {
|
|
3507
|
-
const z = u[w].lineId, E = u[w].outOfPocket.merchant.selectedOption ?? "";
|
|
3508
|
-
u[w].outOfPocket.merchant.allOptions.find(
|
|
3509
|
-
(jt) => jt === E
|
|
3510
|
-
) != null ? Y(E, z) : K(E, z);
|
|
3511
|
-
}
|
|
3512
|
-
}, vo = xt(
|
|
3513
|
-
() => Bo((g, j) => Vn(g, j), 300),
|
|
3514
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3515
|
-
[
|
|
3516
|
-
//these needs to be added because these fetchState were coming as "In-Progress" because of debounce
|
|
3517
|
-
e.accountList.fetchState,
|
|
3518
|
-
e.classList.fetchState,
|
|
3519
|
-
e.merchantList.fetchState
|
|
3520
|
-
]
|
|
3521
|
-
);
|
|
3522
|
-
ye(() => {
|
|
3523
|
-
const g = Te.watch((j, { name: u }) => {
|
|
3524
|
-
u != null && j != null && vo(u, j);
|
|
3525
|
-
});
|
|
3526
|
-
return () => {
|
|
3527
|
-
g.unsubscribe();
|
|
3528
|
-
};
|
|
3529
|
-
}, [vo, Te]), ye(() => {
|
|
3530
|
-
const g = pr(
|
|
3531
|
-
Object.values(e.currencyConversionStatus)
|
|
3532
|
-
), j = g.fetchState === "In-Progress" || g.fetchState === "Error";
|
|
3533
|
-
et(j);
|
|
3534
|
-
}, [e.currencyConversionStatus]), ye(() => {
|
|
3535
|
-
for (const j in e.currencyConversionStatus) {
|
|
3536
|
-
const u = e.lineDetailSection[j], w = e.lineDetailSection[j];
|
|
3537
|
-
e.currencyConversionStatus[j].fetchState === "Completed" && w != null && u.type !== f.mileageKey && !dn(
|
|
3538
|
-
u?.homeCurrencyConversions,
|
|
3539
|
-
w.homeCurrencyConversions
|
|
3540
|
-
) && V(
|
|
3541
|
-
{
|
|
3542
|
-
amount: u?.homeCurrencyConversions?.amount ?? 0,
|
|
3543
|
-
currencyCode: u?.homeCurrencyConversions?.currencyCode ?? Ee,
|
|
3544
|
-
currencySymbol: u?.homeCurrencyConversions?.currencySymbol ?? Lt
|
|
3545
|
-
},
|
|
3546
|
-
j,
|
|
3547
|
-
x
|
|
3548
|
-
);
|
|
3549
|
-
}
|
|
3550
|
-
const g = io(
|
|
3551
|
-
e.lineDetailSection,
|
|
3552
|
-
e.currencyConversionStatus
|
|
3553
|
-
);
|
|
3554
|
-
ie !== g && lt(g);
|
|
3555
|
-
}, [e.currencyConversionStatus, e.lineDetailSection]), ye(() => {
|
|
3556
|
-
(e.saveStatus?.fetchState === "Completed" || e.deleteStatus.fetchState === "Completed") && (L(x), de?.());
|
|
3557
|
-
}, [
|
|
3558
|
-
e.saveStatus?.fetchState,
|
|
3559
|
-
e.deleteStatus.fetchState,
|
|
3560
|
-
x,
|
|
3561
|
-
L,
|
|
3562
|
-
de
|
|
3563
|
-
]);
|
|
3564
|
-
const A = ze(), [Ne, gt] = Q(
|
|
3565
|
-
x == null
|
|
3566
|
-
), [yt, _n] = Q(1), [Dn, Dt] = Q(!1), [qn, Un] = Q(""), [qt, Hn] = Q(null), [Kn, st] = Q(!1), [Gn, Co] = Q(!1), [Ut, Ht] = Q([]), [xe, Tt] = Q({
|
|
3567
|
-
title: "",
|
|
3568
|
-
description: "",
|
|
3569
|
-
primaryButtonText: "",
|
|
3570
|
-
secondaryButtonText: ""
|
|
3571
|
-
}), Yn = bt(
|
|
3572
|
-
Bo(
|
|
3573
|
-
(g, j) => Be(g, j),
|
|
3574
|
-
500,
|
|
3575
|
-
{
|
|
3576
|
-
trailing: !0
|
|
3577
|
-
}
|
|
3578
|
-
)
|
|
3579
|
-
).current;
|
|
3580
|
-
ye(() => {
|
|
3581
|
-
he === "In-Progress" && (e.uploadStatus === "Completed" ? (Te.reset(
|
|
3582
|
-
ro(e, a, c),
|
|
3583
|
-
{ keepDefaultValues: !0 }
|
|
3584
|
-
), Fe(!1), gt(!1)) : e.uploadStatus === "Error" && Fe(!1));
|
|
3585
|
-
}, [
|
|
3586
|
-
he,
|
|
3587
|
-
e.uploadStatus,
|
|
3588
|
-
Te,
|
|
3589
|
-
e,
|
|
3590
|
-
Xe,
|
|
3591
|
-
Fe,
|
|
3592
|
-
Ne,
|
|
3593
|
-
a,
|
|
3594
|
-
c,
|
|
3595
|
-
S
|
|
3596
|
-
]), ye(() => {
|
|
3597
|
-
e.uploadStatus === "In-Progress" && Ne === !1 && Fe(!0);
|
|
3598
|
-
}, [e.uploadStatus, Fe, Ne]);
|
|
3599
|
-
const Kt = e.remiStage === "draft" ? f.newReimbursementTitle : f.editReimbursementTitle, Jn = {
|
|
3600
|
-
onOkClick: () => {
|
|
3601
|
-
if (st(!1), xe.primaryButtonText === f.buttons.discard)
|
|
3602
|
-
L(x), e.remiStage === "draft" ? de?.() : _e?.();
|
|
3603
|
-
else if (xe.primaryButtonText === f.buttons.delete)
|
|
3604
|
-
xe.title === f.deleteBankAccountTitle ? ve?.(qn) : ue?.();
|
|
3605
|
-
else if (xe.primaryButtonText === f.buttons.yes && qt != null) {
|
|
3606
|
-
const g = Ut.filter(
|
|
3607
|
-
(j) => j !== yt.toString()
|
|
3608
|
-
);
|
|
3609
|
-
Ht(
|
|
3610
|
-
g
|
|
3611
|
-
), F(qt, yt, !0);
|
|
3612
|
-
}
|
|
3613
|
-
},
|
|
3614
|
-
onCancelClick: () => {
|
|
3615
|
-
if (st(!1), xe.secondaryButtonText === f.buttons.no) {
|
|
3616
|
-
const g = Ut.filter(
|
|
3617
|
-
(j) => j !== yt.toString()
|
|
3618
|
-
);
|
|
3619
|
-
Ht(
|
|
3620
|
-
g
|
|
3621
|
-
), F(
|
|
3622
|
-
qt,
|
|
3623
|
-
yt,
|
|
3624
|
-
!1
|
|
3625
|
-
);
|
|
3626
|
-
}
|
|
3627
|
-
}
|
|
3628
|
-
}, To = () => {
|
|
3629
|
-
R || Er(En) ? (Tt({
|
|
3630
|
-
title: f.discardTitle,
|
|
3631
|
-
description: f.discardDescription,
|
|
3632
|
-
primaryButtonText: f.buttons.discard,
|
|
3633
|
-
secondaryButtonText: f.buttons.cancel
|
|
3634
|
-
}), st(!0)) : (L(x), de?.());
|
|
3635
|
-
}, Xn = () => {
|
|
3636
|
-
Tt({
|
|
3637
|
-
title: e.remiStage === "draft" ? f.deleteDraftTitle : f.deleteReportTitle,
|
|
3638
|
-
description: f.deleteAlertDescription,
|
|
3639
|
-
primaryButtonText: f.buttons.delete,
|
|
3640
|
-
secondaryButtonText: f.buttons.cancel
|
|
3641
|
-
}), st(!0);
|
|
3642
|
-
}, Qn = (g) => {
|
|
3643
|
-
Un(g), Tt({
|
|
3644
|
-
title: f.deleteBankAccountTitle,
|
|
3645
|
-
description: f.deleteBankAccountDescription,
|
|
3646
|
-
primaryButtonText: f.buttons.delete,
|
|
3647
|
-
secondaryButtonText: f.buttons.cancel
|
|
3648
|
-
}), st(!0);
|
|
3649
|
-
}, Zn = () => {
|
|
3650
|
-
Tt({
|
|
3651
|
-
title: f.overwriteTitle,
|
|
3652
|
-
description: f.overwriteDescription,
|
|
3653
|
-
primaryButtonText: f.buttons.yes,
|
|
3654
|
-
secondaryButtonText: f.buttons.no
|
|
3655
|
-
}), st(!0);
|
|
3656
|
-
}, er = () => {
|
|
3657
|
-
let g = !0;
|
|
3658
|
-
const j = [];
|
|
3659
|
-
return Object.values(e.lineDetailSection).forEach((u, w) => {
|
|
3660
|
-
u.type === f.outOfPocketKey && Mn(u) >= 75 && u.file == null && (j.push(u.lineId), g = !1);
|
|
3661
|
-
}), Ht(j), g;
|
|
3662
|
-
}, ko = () => {
|
|
3663
|
-
if (m && e.remiStage === "pending_approval" && e.remiStatus !== "rejected")
|
|
3664
|
-
To();
|
|
3665
|
-
else {
|
|
3666
|
-
Ze("save");
|
|
3667
|
-
const g = Te.getValues(), j = ao(
|
|
3668
|
-
g,
|
|
3669
|
-
e.merchantList.merchants,
|
|
3670
|
-
a,
|
|
3671
|
-
ie,
|
|
3672
|
-
e.currencyConversionStatus,
|
|
3673
|
-
e.allCurrencies,
|
|
3674
|
-
e.accountList.accounts,
|
|
3675
|
-
e.classList.classes
|
|
3676
|
-
);
|
|
3677
|
-
ce?.(j);
|
|
3678
|
-
const u = j.whatForSection?.reportTitle;
|
|
3679
|
-
u != null && u.length > 0 ? J(
|
|
3680
|
-
e.remiStatus === "rejected" ? "pending_approval" : "draft"
|
|
3681
|
-
) : Te.trigger(`${Nt}.reportTitle`, {
|
|
3682
|
-
shouldFocus: !0
|
|
3683
|
-
});
|
|
3684
|
-
}
|
|
3685
|
-
};
|
|
3686
|
-
let Gt = !1;
|
|
3687
|
-
Object.values(e.addRemiAutoFieldsByLineId).forEach((g) => {
|
|
3688
|
-
g.length > 0 && (Gt = !0);
|
|
3689
|
-
});
|
|
3690
|
-
let jo = [];
|
|
3691
|
-
if (e.remiId == null) {
|
|
3692
|
-
const g = ie ?? 0;
|
|
3693
|
-
g > 0 && (jo = e.approvalRules.allApprovalRules?.filter((j) => {
|
|
3694
|
-
const u = j.criteria[0].range;
|
|
3695
|
-
if (u.max != null) {
|
|
3696
|
-
if (u.min.amount < g && u.max.amount >= g)
|
|
3697
|
-
return j;
|
|
3698
|
-
} else if (u.min.amount < g)
|
|
3699
|
-
return j;
|
|
3700
|
-
return null;
|
|
3701
|
-
}).map((j) => ({
|
|
3702
|
-
...j,
|
|
3703
|
-
stepsWithStatus: j.steps.map((u) => ({
|
|
3704
|
-
...u,
|
|
3705
|
-
actorsActivity: [],
|
|
3706
|
-
isOriginalApprovalStep: !0
|
|
3707
|
-
})),
|
|
3708
|
-
isRealTimeApprovalEnabled: !1
|
|
3709
|
-
})));
|
|
3710
|
-
}
|
|
3711
|
-
const tr = (g) => {
|
|
3712
|
-
const j = er();
|
|
3713
|
-
return Te.handleSubmit(() => {
|
|
3714
|
-
j && (Ze("submit"), S?.trackReimbursementSubmitReimbursement(
|
|
3715
|
-
e.createTime?.format(
|
|
3716
|
-
nn.analytics.MMMDashDDDashYYYYFormat
|
|
3717
|
-
) ?? po().format(nn.analytics.MMMDashDDDashYYYYFormat),
|
|
3718
|
-
a.currencyCode,
|
|
3719
|
-
ie,
|
|
3720
|
-
x
|
|
3721
|
-
), M(), Co(!0));
|
|
3722
|
-
})(g);
|
|
3723
|
-
}, or = () => {
|
|
3724
|
-
const g = Te.getValues(), j = ao(
|
|
3725
|
-
g,
|
|
3726
|
-
e.merchantList.merchants,
|
|
3727
|
-
a,
|
|
3728
|
-
ie,
|
|
3729
|
-
e.currencyConversionStatus,
|
|
3730
|
-
e.allCurrencies,
|
|
3731
|
-
e.accountList.accounts,
|
|
3732
|
-
e.classList.classes
|
|
3733
|
-
);
|
|
3734
|
-
ce?.(j), q();
|
|
3735
|
-
}, nr = e.reimbursementInfo?.billStatus.code == "approved" && e.reimbursementInfo?.billPaymentStatus.code ? e.reimbursementInfo?.billPaymentStatus : e.reimbursementInfo?.billStatus, rr = e.reimbursementInfo?.paymentDate != null ? it(
|
|
3736
|
-
gn(
|
|
3737
|
-
e.reimbursementInfo.paymentDate.toDate(),
|
|
3738
|
-
[0, 6],
|
|
3739
|
-
e.achSameDayMaxDays
|
|
3740
|
-
).toDateString()
|
|
3741
|
-
) : void 0, ir = e.reimbursementInfo?.expectedDepositDate ?? rr, ar = x != null && e.remiStage === "draft", Io = Dr(
|
|
3742
|
-
e.duplicateLineByLineId
|
|
3743
|
-
), Yt = e.duplicateReimbursementStatus.fetchState === "Completed" && Io > 0, { requestToOpenThread: Jt, setRequestToOpenThread: Oo, setOpenThread: Xt } = ur(Pr), { threads: ft, isLoading: tt } = Br(
|
|
3744
|
-
{
|
|
3745
|
-
application: "dashboard",
|
|
3746
|
-
companyId: Re.currentTenant?.companyId,
|
|
3747
|
-
tab: "reimbursement",
|
|
3748
|
-
entityId: x,
|
|
3749
|
-
// Use remiId here
|
|
3750
|
-
isGlobalComment: !1
|
|
3751
|
-
},
|
|
3752
|
-
"both",
|
|
3753
|
-
!1
|
|
3754
|
-
);
|
|
3755
|
-
ye(() => {
|
|
3756
|
-
Jt?.threadId != null && ft.length > 0 && !tt && (Xt(Jt.threadId), Oo(null));
|
|
3757
|
-
}, [
|
|
3758
|
-
Jt,
|
|
3759
|
-
ft,
|
|
3760
|
-
tt,
|
|
3761
|
-
Xt,
|
|
3762
|
-
Oo
|
|
3763
|
-
]);
|
|
3764
|
-
const lr = xt(() => x == null ? [] : ft.filter(
|
|
3765
|
-
(g) => g.resolved === !1 && !g.id.includes(Ar)
|
|
3766
|
-
), [ft, x]).length, sr = (g, j) => {
|
|
3767
|
-
Xt(j);
|
|
3768
|
-
const u = g.entityType.split("."), w = parseInt(u[2]);
|
|
3769
|
-
if (isNaN(w)) {
|
|
3770
|
-
se(!1);
|
|
3771
|
-
return;
|
|
3772
|
-
}
|
|
3773
|
-
const kt = `${w + 1}`, z = e.lineDetailSection[w + 1].type;
|
|
3774
|
-
u.includes(f.mileageKey) && z === f.outOfPocketKey ? X(
|
|
3775
|
-
Lo(f.mileageKey),
|
|
3776
|
-
kt,
|
|
3777
|
-
x
|
|
3778
|
-
) : u.includes(f.outOfPocketKey) && z === f.mileageKey && X(
|
|
3779
|
-
Lo(f.outOfPocketKey),
|
|
3780
|
-
kt,
|
|
3781
|
-
x
|
|
3782
|
-
), se(!1);
|
|
3783
|
-
};
|
|
3784
|
-
return /* @__PURE__ */ t.jsx(Da, { ref: h, children: /* @__PURE__ */ t.jsx(
|
|
3785
|
-
Lr,
|
|
3786
|
-
{
|
|
3787
|
-
sharedItems: {
|
|
3788
|
-
sharedFunctions: void 0,
|
|
3789
|
-
sharedRef: { contentWrapperRef: Ce.current ?? null }
|
|
3790
|
-
},
|
|
3791
|
-
children: /* @__PURE__ */ t.jsxs(mn, { ...Te, children: [
|
|
3792
|
-
/* @__PURE__ */ t.jsx(
|
|
3793
|
-
"form",
|
|
3794
|
-
{
|
|
3795
|
-
id: an(rn),
|
|
3796
|
-
onSubmit: (g) => tr(g),
|
|
3797
|
-
children: /* @__PURE__ */ t.jsxs(xl, { windowSize: A, ref: Ce, children: [
|
|
3798
|
-
Kn ? /* @__PURE__ */ t.jsx(
|
|
3799
|
-
wo,
|
|
3800
|
-
{
|
|
3801
|
-
titleComponent: /* @__PURE__ */ t.jsx(jn, { children: xe.title }),
|
|
3802
|
-
descriptionComponent: /* @__PURE__ */ t.jsx(kn, { children: xe.description }),
|
|
3803
|
-
primaryButtonText: xe.primaryButtonText,
|
|
3804
|
-
secondaryButtonText: xe.secondaryButtonText,
|
|
3805
|
-
action: Jn,
|
|
3806
|
-
proceedButtonVariant: xe.title === f.deleteBankAccountTitle || xe.title === f.deleteDraftTitle || xe.title === f.deleteReportTitle || xe.title === f.discardTitle ? "danger" : "primary",
|
|
3807
|
-
isEditPopup: xe.title === f.deleteBankAccountTitle
|
|
3808
|
-
}
|
|
3809
|
-
) : null,
|
|
3810
|
-
Gn ? /* @__PURE__ */ t.jsx(
|
|
3811
|
-
Pa,
|
|
3812
|
-
{
|
|
3813
|
-
reimbursementId: x,
|
|
3814
|
-
submitFetchState: e.saveStatus?.fetchState ?? "Not-Started",
|
|
3815
|
-
duplicateReimbursementStatus: e.duplicateReimbursementStatus.fetchState,
|
|
3816
|
-
hasDuplicateLine: Yt,
|
|
3817
|
-
numberOfDuplicateLines: Io,
|
|
3818
|
-
setShowDuplicatePopup: Co,
|
|
3819
|
-
submitReport: or,
|
|
3820
|
-
fetchDuplicateReimbursement: k,
|
|
3821
|
-
clearDuplicateReimbursementDetail: M,
|
|
3822
|
-
clearRemiSaveStatus: te,
|
|
3823
|
-
analytics: S
|
|
3824
|
-
}
|
|
3825
|
-
) : null,
|
|
3826
|
-
Xe ? /* @__PURE__ */ t.jsx(sn, { windowSize: A }) : null,
|
|
3827
|
-
Ne ? /* @__PURE__ */ t.jsxs(
|
|
3828
|
-
sn,
|
|
3829
|
-
{
|
|
3830
|
-
windowSize: A,
|
|
3831
|
-
"data-testid": U("skip-autofill-section"),
|
|
3832
|
-
children: [
|
|
3833
|
-
A === "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3834
|
-
/* @__PURE__ */ t.jsx(tl, { children: /* @__PURE__ */ t.jsx(
|
|
3835
|
-
co,
|
|
3836
|
-
{
|
|
3837
|
-
partOfSkipAutoFill: !0,
|
|
3838
|
-
size: A,
|
|
3839
|
-
onClick: () => gt(!1),
|
|
3840
|
-
"data-testid": U(
|
|
3841
|
-
"close-invoice-upload"
|
|
3842
|
-
),
|
|
3843
|
-
children: /* @__PURE__ */ t.jsx(so, { withOverlay: !0, children: /* @__PURE__ */ t.jsx(lo, {}) })
|
|
3844
|
-
}
|
|
3845
|
-
) }),
|
|
3846
|
-
/* @__PURE__ */ t.jsx(nl, { children: Kt })
|
|
3847
|
-
] }) : null,
|
|
3848
|
-
/* @__PURE__ */ t.jsx(
|
|
3849
|
-
Pn,
|
|
3850
|
-
{
|
|
3851
|
-
showAutofill: Ne,
|
|
3852
|
-
analytics: S,
|
|
3853
|
-
onSkipAutofill: () => {
|
|
3854
|
-
S?.trackReimbursementSkipAutofill(), gt(!1);
|
|
3855
|
-
},
|
|
3856
|
-
uploadInvoiceEndPoint: p,
|
|
3857
|
-
authParams: i,
|
|
3858
|
-
style: {
|
|
3859
|
-
width: ee.leftSectionWidth.valuePercentage(A),
|
|
3860
|
-
boxSizing: "border-box",
|
|
3861
|
-
backgroundColor: A === "small" ? He.colors.grey4 : "unset",
|
|
3862
|
-
padding: A === "small" ? `${o.sp5} ${o.sp3}` : `78px ${o.sp6} 15px ${o.sp8}`,
|
|
3863
|
-
margin: A === "small" ? o.sp0 : void 0
|
|
3864
|
-
},
|
|
3865
|
-
onInvoiceUpload: (g) => F(
|
|
3866
|
-
g,
|
|
3867
|
-
yt,
|
|
3868
|
-
!0
|
|
3869
|
-
),
|
|
3870
|
-
dropFilePlaceholder: {
|
|
3871
|
-
upload: f.dropReceipt.upload,
|
|
3872
|
-
single: f.dropReceipt.single,
|
|
3873
|
-
or: f.dropReceipt.or,
|
|
3874
|
-
multiple: f.dropReceipt.multiple,
|
|
3875
|
-
receipts: f.dropReceipt.receipts
|
|
3876
|
-
},
|
|
3877
|
-
updateInvoiceUploadFetchState: Ae,
|
|
3878
|
-
showInfoText: !1,
|
|
3879
|
-
allowMultiFiles: Ne,
|
|
3880
|
-
type: "reimbursement"
|
|
3881
|
-
}
|
|
3882
|
-
),
|
|
3883
|
-
A !== "small" ? /* @__PURE__ */ t.jsx(ol, { children: /* @__PURE__ */ t.jsx(
|
|
3884
|
-
co,
|
|
3885
|
-
{
|
|
3886
|
-
partOfSkipAutoFill: !0,
|
|
3887
|
-
onClick: () => gt(!1),
|
|
3888
|
-
"data-testid": U(
|
|
3889
|
-
"close-invoice-upload"
|
|
3890
|
-
),
|
|
3891
|
-
children: /* @__PURE__ */ t.jsx(so, { withOverlay: !0, children: /* @__PURE__ */ t.jsx(lo, {}) })
|
|
3892
|
-
}
|
|
3893
|
-
) }) : null
|
|
3894
|
-
]
|
|
3895
|
-
}
|
|
3896
|
-
) : null,
|
|
3897
|
-
/* @__PURE__ */ t.jsxs(
|
|
3898
|
-
pl,
|
|
3899
|
-
{
|
|
3900
|
-
windowSize: A,
|
|
3901
|
-
"data-testid": U(
|
|
3902
|
-
"edit-reimbursement-detail-page-nav-bar-container"
|
|
3903
|
-
),
|
|
3904
|
-
children: [
|
|
3905
|
-
A !== "small" ? /* @__PURE__ */ t.jsx(
|
|
3906
|
-
Fo,
|
|
3907
|
-
{
|
|
3908
|
-
style: { width: "42%" },
|
|
3909
|
-
"data-testid": U(
|
|
3910
|
-
"edit-reimbursement-detail-page-left-nav-bar"
|
|
3911
|
-
),
|
|
3912
|
-
title: "",
|
|
3913
|
-
leftSideComponent: /* @__PURE__ */ t.jsx(
|
|
3914
|
-
hl,
|
|
3915
|
-
{
|
|
3916
|
-
"data-testid": U(
|
|
3917
|
-
"zeni-logo-spend-management-reimbursement-detail-page"
|
|
3918
|
-
),
|
|
3919
|
-
onClick: le
|
|
3920
|
-
}
|
|
3921
|
-
),
|
|
3922
|
-
enableTitleOnScroll: !1,
|
|
3923
|
-
scrollableContent: h,
|
|
3924
|
-
backgroundColor: He.colors.background,
|
|
3925
|
-
keepBackgroundOnScroll: !0,
|
|
3926
|
-
source: "EditReimbursementDetailPage"
|
|
3927
|
-
}
|
|
3928
|
-
) : null,
|
|
3929
|
-
A !== "small" ? /* @__PURE__ */ t.jsx(qa, {}) : null,
|
|
3930
|
-
/* @__PURE__ */ t.jsx(
|
|
3931
|
-
Fo,
|
|
3932
|
-
{
|
|
3933
|
-
style: { width: ee.navBarWidth.valuePercentage(A) },
|
|
3934
|
-
"data-testid": U(
|
|
3935
|
-
"edit-reimbursement-detail-page-right-nav-bar"
|
|
3936
|
-
),
|
|
3937
|
-
source: "EditReimbursementDetailPage",
|
|
3938
|
-
title: Kt,
|
|
3939
|
-
leftSideComponent: /* @__PURE__ */ t.jsx(t.Fragment, {}),
|
|
3940
|
-
rightSideComponent: Ne != !0 ? /* @__PURE__ */ t.jsxs(gl, { children: [
|
|
3941
|
-
v && x != null ? /* @__PURE__ */ t.jsxs(
|
|
3942
|
-
yl,
|
|
3943
|
-
{
|
|
3944
|
-
isDisabled: tt,
|
|
3945
|
-
"data-testid": U(
|
|
3946
|
-
"remi-comment-button"
|
|
3947
|
-
),
|
|
3948
|
-
onClick: tt ? () => null : (g) => {
|
|
3949
|
-
g.preventDefault(), g.stopPropagation(), ht({
|
|
3950
|
-
roomId: Ct,
|
|
3951
|
-
companyId: Re.currentTenant?.companyId ?? "",
|
|
3952
|
-
companyName: Re.currentTenant?.companyName ?? "",
|
|
3953
|
-
entityType: "reimbursement.details",
|
|
3954
|
-
entityId: x
|
|
3955
|
-
}), se(!0), S?.trackCommentActivity(
|
|
3956
|
-
"reimbursement",
|
|
3957
|
-
// pageName
|
|
3958
|
-
"clicked",
|
|
3959
|
-
// activityType
|
|
3960
|
-
Re.currentTenant?.companyName ?? "",
|
|
3961
|
-
// tenantName
|
|
3962
|
-
Re.controllersList.controllers.map(
|
|
3963
|
-
(j) => Rr(j)
|
|
3964
|
-
),
|
|
3965
|
-
// controllerName
|
|
3966
|
-
void 0,
|
|
3967
|
-
// status
|
|
3968
|
-
void 0,
|
|
3969
|
-
// createdBy
|
|
3970
|
-
"page icon"
|
|
3971
|
-
// source
|
|
3972
|
-
);
|
|
3973
|
-
},
|
|
3974
|
-
children: [
|
|
3975
|
-
/* @__PURE__ */ t.jsx(
|
|
3976
|
-
Mr,
|
|
3977
|
-
{
|
|
3978
|
-
count: tt ? void 0 : lr,
|
|
3979
|
-
isLoading: tt,
|
|
3980
|
-
style: { left: "12px" }
|
|
3981
|
-
}
|
|
3982
|
-
),
|
|
3983
|
-
/* @__PURE__ */ t.jsx(fl, {})
|
|
3984
|
-
]
|
|
3985
|
-
}
|
|
3986
|
-
) : null,
|
|
3987
|
-
/* @__PURE__ */ t.jsx(
|
|
3988
|
-
co,
|
|
3989
|
-
{
|
|
3990
|
-
size: A,
|
|
3991
|
-
onClick: () => To(),
|
|
3992
|
-
"data-testid": U("close-nav-bar"),
|
|
3993
|
-
children: /* @__PURE__ */ t.jsx(so, { withOverlay: !1, children: /* @__PURE__ */ t.jsx(lo, {}) })
|
|
3994
|
-
}
|
|
3995
|
-
)
|
|
3996
|
-
] }) : null,
|
|
3997
|
-
enableTitleOnScroll: A !== "small",
|
|
3998
|
-
scrollThreshold: 64,
|
|
3999
|
-
scrollableContent: h,
|
|
4000
|
-
backgroundColor: He.colors.grey4
|
|
4001
|
-
}
|
|
4002
|
-
)
|
|
4003
|
-
]
|
|
4004
|
-
}
|
|
4005
|
-
),
|
|
4006
|
-
A === "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
4007
|
-
/* @__PURE__ */ t.jsx(ml, { children: Kt }),
|
|
4008
|
-
/* @__PURE__ */ t.jsx(
|
|
4009
|
-
zr,
|
|
4010
|
-
{
|
|
4011
|
-
progressSectionObj: nr,
|
|
4012
|
-
createDate: e.createTime,
|
|
4013
|
-
paymentDate: ir,
|
|
4014
|
-
scheduleDate: e.reimbursementInfo?.paymentDate,
|
|
4015
|
-
approvedDate: e.latestApprovedDate,
|
|
4016
|
-
isBillUploaded: x != null ? !0 : e.uploadStatus === "Completed"
|
|
4017
|
-
}
|
|
4018
|
-
),
|
|
4019
|
-
Gt && /* @__PURE__ */ t.jsxs(al, { children: [
|
|
4020
|
-
/* @__PURE__ */ t.jsx(il, {}),
|
|
4021
|
-
/* @__PURE__ */ t.jsx(ll, { children: f.banner })
|
|
4022
|
-
] }),
|
|
4023
|
-
e.isProcessing ? /* @__PURE__ */ t.jsx(
|
|
4024
|
-
wn,
|
|
4025
|
-
{
|
|
4026
|
-
variant: "warning",
|
|
4027
|
-
style: {
|
|
4028
|
-
margin: A === "small" ? `${o.sp5} ${o.sp3}` : `${o.sp3} ${o.sp8} ${o.sp3} ${o.sp6}`
|
|
4029
|
-
},
|
|
4030
|
-
title: on.duplicateWarning.title,
|
|
4031
|
-
description: on.duplicateWarning.description
|
|
4032
|
-
}
|
|
4033
|
-
) : Yt ? /* @__PURE__ */ t.jsxs(sl, { size: A, children: [
|
|
4034
|
-
/* @__PURE__ */ t.jsx(Ga, {}),
|
|
4035
|
-
/* @__PURE__ */ t.jsxs(dl, { children: [
|
|
4036
|
-
/* @__PURE__ */ t.jsx(cl, { children: f.thereSeems }),
|
|
4037
|
-
/* @__PURE__ */ t.jsx(ul, { children: f.pleaseFind })
|
|
4038
|
-
] })
|
|
4039
|
-
] }) : null,
|
|
4040
|
-
/* @__PURE__ */ t.jsx(
|
|
4041
|
-
Ln,
|
|
4042
|
-
{
|
|
4043
|
-
isReimbursementCommentingEnabled: v,
|
|
4044
|
-
sectionId: Nt,
|
|
4045
|
-
reimbursementId: e.remiId,
|
|
4046
|
-
reportTitle: e.whatForSection.reportTitle
|
|
4047
|
-
}
|
|
4048
|
-
)
|
|
4049
|
-
] }) : null,
|
|
4050
|
-
/* @__PURE__ */ t.jsx(
|
|
4051
|
-
ia,
|
|
4052
|
-
{
|
|
4053
|
-
onDuplicateLineClick: re,
|
|
4054
|
-
reimbursementId: x,
|
|
4055
|
-
remiDetails: e,
|
|
4056
|
-
uploadInvoiceEndPoint: p,
|
|
4057
|
-
authParams: i,
|
|
4058
|
-
showSkipAutoFill: Ne,
|
|
4059
|
-
setShowSkipAutoFill: gt,
|
|
4060
|
-
isReimbursementCommentingEnabled: v,
|
|
4061
|
-
isAutoFieldsExist: Gt,
|
|
4062
|
-
totalAmount: ie,
|
|
4063
|
-
removeFileFromLine: fe,
|
|
4064
|
-
onReplaceClick: Zn,
|
|
4065
|
-
onReceiptsUpload: F,
|
|
4066
|
-
currencyConversionStatus: e.currencyConversionStatus,
|
|
4067
|
-
setCurrentLineIdForUpload: _n,
|
|
4068
|
-
setUploadedReceiptPayload: Hn,
|
|
4069
|
-
updateInvoiceUploadFetchState: Ae,
|
|
4070
|
-
clearTentativeNameForLine: Le,
|
|
4071
|
-
defaultCurrency: a,
|
|
4072
|
-
companyMileageConfigInfo: d,
|
|
4073
|
-
isUserAdmin: m,
|
|
4074
|
-
setShowBankAccountPage: Dt,
|
|
4075
|
-
bankAccounts: c,
|
|
4076
|
-
onDeleteBankAccount: Qn,
|
|
4077
|
-
analytics: S,
|
|
4078
|
-
fileRequiredLineIds: Ut,
|
|
4079
|
-
isSignedInUserReimbursementCreator: y,
|
|
4080
|
-
uncategorizedAccounts: $,
|
|
4081
|
-
showTotalAmountLoader: pt,
|
|
4082
|
-
duplicateLineByLineId: e.duplicateLineByLineId,
|
|
4083
|
-
hasDuplicateLine: Yt,
|
|
4084
|
-
removeDuplicateReimbursementForLine: ne,
|
|
4085
|
-
scrollContainerRef: h
|
|
4086
|
-
}
|
|
4087
|
-
),
|
|
4088
|
-
/* @__PURE__ */ t.jsxs(
|
|
4089
|
-
bl,
|
|
4090
|
-
{
|
|
4091
|
-
showSkipAutoFill: Ne,
|
|
4092
|
-
windowSize: A,
|
|
4093
|
-
children: [
|
|
4094
|
-
A !== "small" ? /* @__PURE__ */ t.jsx(ln, {}) : null,
|
|
4095
|
-
/* @__PURE__ */ t.jsx(wl, { windowSize: A, children: /* @__PURE__ */ t.jsxs($l, { windowSize: A, children: [
|
|
4096
|
-
e.remiId !== void 0 && /* @__PURE__ */ t.jsx(
|
|
4097
|
-
No,
|
|
4098
|
-
{
|
|
4099
|
-
amount: ie ?? 0,
|
|
4100
|
-
activities: e.remiActivities,
|
|
4101
|
-
stage: e.remiStage ?? "draft",
|
|
4102
|
-
onAddNewRule: me,
|
|
4103
|
-
entity: "reimbursement",
|
|
4104
|
-
historicActivities: e.remiHistory.activities
|
|
4105
|
-
}
|
|
4106
|
-
),
|
|
4107
|
-
e.remiId == null && ie != null && ie > 0 ? /* @__PURE__ */ t.jsx(
|
|
4108
|
-
No,
|
|
4109
|
-
{
|
|
4110
|
-
amount: ie ?? 0,
|
|
4111
|
-
activities: jo,
|
|
4112
|
-
stage: "draft",
|
|
4113
|
-
entity: "reimbursement",
|
|
4114
|
-
historicActivities: e.remiHistory.activities
|
|
4115
|
-
}
|
|
4116
|
-
) : null
|
|
4117
|
-
] }) })
|
|
4118
|
-
]
|
|
4119
|
-
}
|
|
4120
|
-
),
|
|
4121
|
-
/* @__PURE__ */ t.jsx(Sl, {}),
|
|
4122
|
-
/* @__PURE__ */ t.jsxs(
|
|
4123
|
-
rl,
|
|
4124
|
-
{
|
|
4125
|
-
showSkipAutoFill: Ne,
|
|
4126
|
-
windowSize: A,
|
|
4127
|
-
children: [
|
|
4128
|
-
A !== "small" ? /* @__PURE__ */ t.jsx(ln, {}) : null,
|
|
4129
|
-
/* @__PURE__ */ t.jsx(
|
|
4130
|
-
Ua,
|
|
4131
|
-
{
|
|
4132
|
-
windowSize: A,
|
|
4133
|
-
onClick: (g) => {
|
|
4134
|
-
g.stopPropagation(), Ke === !0 && Ge(!1);
|
|
4135
|
-
},
|
|
4136
|
-
children: /* @__PURE__ */ t.jsx(
|
|
4137
|
-
In,
|
|
4138
|
-
{
|
|
4139
|
-
formId: an(rn),
|
|
4140
|
-
separatorStyle: { marginRight: o.sp4 },
|
|
4141
|
-
showCancel: y,
|
|
4142
|
-
cancelBtn: {
|
|
4143
|
-
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,
|
|
4144
|
-
isLoading: Qe === "save" && e.saveStatus?.fetchState === "In-Progress",
|
|
4145
|
-
onClick: ko,
|
|
4146
|
-
style: { width: ee.footerButtonWidth.value(A) },
|
|
4147
|
-
reverseSpinnerColor: !1
|
|
4148
|
-
},
|
|
4149
|
-
primaryBtn: {
|
|
4150
|
-
label: _a(
|
|
4151
|
-
y,
|
|
4152
|
-
m,
|
|
4153
|
-
e,
|
|
4154
|
-
A
|
|
4155
|
-
),
|
|
4156
|
-
isDisabled: !y,
|
|
4157
|
-
style: {
|
|
4158
|
-
width: y ? ee.footerButtonWidth.value(A) : "auto"
|
|
4159
|
-
},
|
|
4160
|
-
type: y ? "submit" : "button",
|
|
4161
|
-
onClick: y ? () => null : ko,
|
|
4162
|
-
isLoading: !y && Qe === "save" && e.saveStatus?.fetchState === "In-Progress"
|
|
4163
|
-
},
|
|
4164
|
-
rightSideComponent: /* @__PURE__ */ t.jsx(Ha, { children: /* @__PURE__ */ t.jsxs(Qa, { windowSize: A, children: [
|
|
4165
|
-
Ke ? /* @__PURE__ */ t.jsx(
|
|
4166
|
-
cn,
|
|
4167
|
-
{
|
|
4168
|
-
onClickAway: () => Ge(!1),
|
|
4169
|
-
children: /* @__PURE__ */ t.jsx(
|
|
4170
|
-
Xa,
|
|
4171
|
-
{
|
|
4172
|
-
windowSize: A,
|
|
4173
|
-
"data-testid": U(
|
|
4174
|
-
"remi-other-actions-container"
|
|
4175
|
-
),
|
|
4176
|
-
children: /* @__PURE__ */ t.jsx(
|
|
4177
|
-
Za,
|
|
4178
|
-
{
|
|
4179
|
-
onClick: Xn,
|
|
4180
|
-
"data-testid": U(
|
|
4181
|
-
"delete-report-action"
|
|
4182
|
-
),
|
|
4183
|
-
children: f.buttons.deleteReport
|
|
4184
|
-
}
|
|
4185
|
-
)
|
|
4186
|
-
}
|
|
4187
|
-
)
|
|
4188
|
-
}
|
|
4189
|
-
) : null,
|
|
4190
|
-
/* @__PURE__ */ t.jsx(Ja, { windowSize: A, children: ar === !0 ? /* @__PURE__ */ t.jsx(
|
|
4191
|
-
Ya,
|
|
4192
|
-
{
|
|
4193
|
-
windowSize: A,
|
|
4194
|
-
"data-testid": U(
|
|
4195
|
-
"more-details-button"
|
|
4196
|
-
),
|
|
4197
|
-
children: /* @__PURE__ */ t.jsx(
|
|
4198
|
-
Ka,
|
|
4199
|
-
{
|
|
4200
|
-
onClick: () => Ge(!Ke)
|
|
4201
|
-
}
|
|
4202
|
-
)
|
|
4203
|
-
}
|
|
4204
|
-
) : null })
|
|
4205
|
-
] }) }),
|
|
4206
|
-
style: {
|
|
4207
|
-
minHeight: 62
|
|
4208
|
-
}
|
|
4209
|
-
}
|
|
4210
|
-
)
|
|
4211
|
-
}
|
|
4212
|
-
)
|
|
4213
|
-
]
|
|
4214
|
-
}
|
|
4215
|
-
),
|
|
4216
|
-
v && x != null ? /* @__PURE__ */ t.jsx(mr, { id: Ct, children: /* @__PURE__ */ t.jsx(
|
|
4217
|
-
Fr,
|
|
4218
|
-
{
|
|
4219
|
-
isDrawerOpen: W,
|
|
4220
|
-
allowComposer: !0,
|
|
4221
|
-
drawerTitle: Ra,
|
|
4222
|
-
threads: ft,
|
|
4223
|
-
autoExpand: !0,
|
|
4224
|
-
autoFocus: !1,
|
|
4225
|
-
filter: {
|
|
4226
|
-
application: "dashboard",
|
|
4227
|
-
companyId: _?.companyId ?? za,
|
|
4228
|
-
isGlobalComment: !1,
|
|
4229
|
-
tab: "reimbursement"
|
|
4230
|
-
},
|
|
4231
|
-
isLoading: tt,
|
|
4232
|
-
threadMetadata: _ ? {
|
|
4233
|
-
companyName: _.companyName,
|
|
4234
|
-
companyId: _.companyId,
|
|
4235
|
-
entityId: _.entityId,
|
|
4236
|
-
entityType: _.entityType,
|
|
4237
|
-
isGlobalComment: !1,
|
|
4238
|
-
application: "dashboard",
|
|
4239
|
-
tab: "reimbursement",
|
|
4240
|
-
url: window.location.href
|
|
4241
|
-
} : void 0,
|
|
4242
|
-
textOverrides: {
|
|
4243
|
-
composerPlaceholder: Fa,
|
|
4244
|
-
replyComposerPlaceholder: Na,
|
|
4245
|
-
threadResolve: Wa,
|
|
4246
|
-
threadUnResolve: Ea
|
|
4247
|
-
},
|
|
4248
|
-
onThreadClick: (g, j) => sr(g, j),
|
|
4249
|
-
onCloseAllThreadsDrawer: () => se(!1),
|
|
4250
|
-
drawerSectionStyle: {
|
|
4251
|
-
width: "400px",
|
|
4252
|
-
backgroundColor: He.colors.background
|
|
4253
|
-
}
|
|
4254
|
-
}
|
|
4255
|
-
) }) : null
|
|
4256
|
-
] })
|
|
4257
|
-
}
|
|
4258
|
-
),
|
|
4259
|
-
Dn ? /* @__PURE__ */ t.jsx(el, { windowSize: A, children: /* @__PURE__ */ t.jsx(
|
|
4260
|
-
xa,
|
|
4261
|
-
{
|
|
4262
|
-
bankAccountCreationState: C,
|
|
4263
|
-
setShowBankAccountPage: Dt,
|
|
4264
|
-
plaidConnectionDetails: l,
|
|
4265
|
-
onFetchLinkTokenClick: Me,
|
|
4266
|
-
onEstablishConnectionClick: pe,
|
|
4267
|
-
onSaveHandler: B,
|
|
4268
|
-
bankAccountToCreate: O,
|
|
4269
|
-
bankNameByRouting: b,
|
|
4270
|
-
fetchBankNameByRoutingStatus: T,
|
|
4271
|
-
onUserBankDetailsUpdated: P,
|
|
4272
|
-
onFetchBankName: H,
|
|
4273
|
-
onBackClick: () => {
|
|
4274
|
-
Je(), Dt(!1);
|
|
4275
|
-
}
|
|
4276
|
-
}
|
|
4277
|
-
) }) : null
|
|
4278
|
-
] })
|
|
4279
|
-
}
|
|
4280
|
-
) });
|
|
4281
|
-
}, _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`
|
|
4282
|
-
position: relative;
|
|
4283
|
-
height: 100vh;
|
|
4284
|
-
overflow-y: scroll;
|
|
4285
|
-
`, qa = n.div`
|
|
4286
|
-
position: fixed;
|
|
4287
|
-
top: 0;
|
|
4288
|
-
left: 42vw;
|
|
4289
|
-
width: 100%;
|
|
4290
|
-
height: 100vh;
|
|
4291
|
-
background: transparent;
|
|
4292
|
-
box-shadow: 0 2px ${o.sp1} ${({ theme: e }) => e.colors.dropShadowNormal};
|
|
4293
|
-
pointer-events: none;
|
|
4294
|
-
z-index: 3;
|
|
4295
|
-
`, Ua = n.div`
|
|
4296
|
-
width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
4297
|
-
`, Ha = n.div`
|
|
4298
|
-
display: flex;
|
|
4299
|
-
justify-content: flex-end;
|
|
4300
|
-
`, Ka = n(Vr)`
|
|
4301
|
-
cursor: pointer;
|
|
4302
|
-
color: ${(e) => e.theme.colors.hero};
|
|
4303
|
-
width: ${o.sp5};
|
|
4304
|
-
height: ${o.sp5};
|
|
4305
|
-
&:hover {
|
|
4306
|
-
color: ${(e) => e.theme.colors.primary};
|
|
4307
|
-
}
|
|
4308
|
-
`, Ga = n(_r)`
|
|
4309
|
-
width: ${o.sp4};
|
|
4310
|
-
height: ${o.sp4};
|
|
4311
|
-
color: ${I.brandColorGoldDark};
|
|
4312
|
-
`, Ya = n.div`
|
|
4313
|
-
display: flex;
|
|
4314
|
-
margin-left: ${(e) => e.windowSize === "small" ? o.sp4 : o.sp5};
|
|
4315
|
-
cursor: pointer;
|
|
4316
|
-
color: ${(e) => e.theme.colors.grey1};
|
|
4317
|
-
&:hover {
|
|
4318
|
-
color: ${(e) => e.theme.colors.primary};
|
|
4319
|
-
}
|
|
4320
|
-
`, Ja = n.div`
|
|
4321
|
-
display: flex;
|
|
4322
|
-
justify-content: center;
|
|
4323
|
-
align-items: center;
|
|
4324
|
-
`, Xa = n.div`
|
|
4325
|
-
display: flex;
|
|
4326
|
-
width: auto;
|
|
4327
|
-
align-items: center;
|
|
4328
|
-
justify-content: center;
|
|
4329
|
-
flex-direction: column;
|
|
4330
|
-
background-color: ${(e) => e.theme.colors.grey5};
|
|
4331
|
-
color: ${(e) => e.theme.colors.hero};
|
|
4332
|
-
cursor: pointer;
|
|
4333
|
-
padding-top: ${o.sp1};
|
|
4334
|
-
padding-bottom: ${o.sp1};
|
|
4335
|
-
position: absolute;
|
|
4336
|
-
bottom: ${(e) => ee.otherActionsContainerBottom.valuePx(e.windowSize)};
|
|
4337
|
-
z-index: 3;
|
|
4338
|
-
border: ${(e) => `1px solid ${e.theme.colors.grey3}`};
|
|
4339
|
-
border-radius: ${o.sp1};
|
|
4340
|
-
right: ${(e) => ee.right.valuePx(e.windowSize)};
|
|
4341
|
-
box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.grey1} 3D`};
|
|
4342
|
-
`, Qa = n.div`
|
|
4343
|
-
width: 100%;
|
|
4344
|
-
justify-content: flex-end;
|
|
4345
|
-
position: ${(e) => e.windowSize === "small" ? "static" : "relative"};
|
|
4346
|
-
right: ${(e) => ee.actionsContainerRight.valuePx(e.windowSize)};
|
|
4347
|
-
height: 100%;
|
|
4348
|
-
display: flex;
|
|
4349
|
-
`, Za = n(yo)`
|
|
4350
|
-
display: flex;
|
|
4351
|
-
align-items: center;
|
|
4352
|
-
width: -webkit-fill-available;
|
|
4353
|
-
padding-left: ${o.sp3};
|
|
4354
|
-
padding-right: ${o.sp3};
|
|
4355
|
-
height: ${o.sp6};
|
|
4356
|
-
box-sizing: border-box;
|
|
4357
|
-
&:hover {
|
|
4358
|
-
background-color: ${(e) => e.theme.colors.background};
|
|
4359
|
-
}
|
|
4360
|
-
`, el = n.div`
|
|
4361
|
-
overflow-y: auto;
|
|
4362
|
-
z-index: 5;
|
|
4363
|
-
height: 100vh;
|
|
4364
|
-
position: fixed;
|
|
4365
|
-
background: ${(e) => e.theme.colors.grey4};
|
|
4366
|
-
width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
4367
|
-
right: 0;
|
|
4368
|
-
top: 0;
|
|
4369
|
-
`, tl = n.div`
|
|
4370
|
-
background: ${(e) => e.theme.colors.grey4};
|
|
4371
|
-
height: 44px;
|
|
4372
|
-
display: flex;
|
|
4373
|
-
align-items: center;
|
|
4374
|
-
justify-content: end;
|
|
4375
|
-
`, ol = n.div`
|
|
4376
|
-
width: 58%;
|
|
4377
|
-
`, nl = n($o)`
|
|
4378
|
-
padding: ${o.sp3} ${o.sp3} 0 ${o.sp3};
|
|
4379
|
-
background: ${(e) => e.theme.colors.grey4};
|
|
4380
|
-
color: ${(e) => e.theme.colors.primary};
|
|
4381
|
-
`, rl = n.div`
|
|
4382
|
-
display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
|
|
4383
|
-
width: 100%;
|
|
4384
|
-
position: fixed;
|
|
4385
|
-
bottom: 0;
|
|
4386
|
-
z-index: 3;
|
|
4387
|
-
`, ln = n.div`
|
|
4388
|
-
width: 42%;
|
|
4389
|
-
`, il = n(fo)`
|
|
4390
|
-
color: ${(e) => e.theme.colors.primary};
|
|
4391
|
-
width: ${o.sp3};
|
|
4392
|
-
height: ${o.sp3};
|
|
4393
|
-
`, al = n.div`
|
|
4394
|
-
display: flex;
|
|
4395
|
-
gap: ${o.sp2};
|
|
4396
|
-
border: 1px solid ${(e) => e.theme.colors.grey3};
|
|
4397
|
-
padding: ${o.sp3};
|
|
4398
|
-
border-radius: ${o.sp2};
|
|
4399
|
-
align-items: center;
|
|
4400
|
-
margin: ${o.sp3};
|
|
4401
|
-
`, ll = n.span`
|
|
4402
|
-
color: ${(e) => e.theme.colors.hero};
|
|
4403
|
-
`, sl = n.div`
|
|
4404
|
-
display: flex;
|
|
4405
|
-
gap: ${o.sp2};
|
|
4406
|
-
padding: ${o.sp3};
|
|
4407
|
-
border-radius: ${o.sp2};
|
|
4408
|
-
align-items: start;
|
|
4409
|
-
margin-top: ${(e) => ee.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
4410
|
-
margin-right: ${(e) => ee.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
4411
|
-
margin-bottom: ${(e) => ee.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
4412
|
-
margin-left: ${(e) => ee.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
4413
|
-
background-color: ${I.alertLight};
|
|
4414
|
-
border: 1px solid ${(e) => e.theme.colors.brandColorGoldDark};
|
|
4415
|
-
`, cl = n(_t)`
|
|
4416
|
-
color: ${(e) => e.theme.colors.brandColorGoldDark};
|
|
4417
|
-
`, dl = n.div`
|
|
4418
|
-
width: 100%;
|
|
4419
|
-
`, ul = n(xo)`
|
|
4420
|
-
color: ${(e) => e.theme.colors.brandColorGoldDark};
|
|
4421
|
-
`, ml = n($o)`
|
|
4422
|
-
letter-spacing: -0.02em;
|
|
4423
|
-
color: ${(e) => e.theme.colors.primary};
|
|
4424
|
-
margin: ${o.sp3};
|
|
4425
|
-
`, sn = n.div`
|
|
4426
|
-
display: flex;
|
|
4427
|
-
flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
|
|
4428
|
-
height: 100vh;
|
|
4429
|
-
visibility: inherit;
|
|
4430
|
-
width: 100%;
|
|
4431
|
-
background-color: ${I.overlayDark};
|
|
4432
|
-
z-index: 11; // This is to ensure that the skip autofill section is above the AI CFO icon whose value is 10
|
|
4433
|
-
position: fixed;
|
|
4434
|
-
`, pl = n.div`
|
|
4435
|
-
z-index: 3;
|
|
4436
|
-
min-height: 62px;
|
|
4437
|
-
height: 62px;
|
|
4438
|
-
display: flex;
|
|
4439
|
-
align-items: center;
|
|
4440
|
-
width: 100%;
|
|
4441
|
-
justify-content: space-between;
|
|
4442
|
-
position: fixed;
|
|
4443
|
-
`, hl = n(Nr)`
|
|
4444
|
-
display: flex;
|
|
4445
|
-
color: ${(e) => e.theme.colors.brandColorJade};
|
|
4446
|
-
cursor: pointer;
|
|
4447
|
-
width: ${o.sp4};
|
|
4448
|
-
height: ${o.sp4};
|
|
4449
|
-
`, lo = n(On)`
|
|
4450
|
-
cursor: pointer;
|
|
4451
|
-
width: ${o.sp4};
|
|
4452
|
-
height: ${o.sp4};
|
|
4453
|
-
float: right;
|
|
4454
|
-
color: inherit;
|
|
4455
|
-
`, so = n.div`
|
|
4456
|
-
color: ${(e) => e.theme.colors.hero};
|
|
4457
|
-
&:hover {
|
|
4458
|
-
color: ${(e) => e.withOverlay ? I.primaryDark : e.theme.colors.primary};
|
|
4459
|
-
}
|
|
4460
|
-
`, gl = n.div`
|
|
4461
|
-
margin-top: ${(e) => ee.closeMarginTop.valuePx(e.windowSize)};
|
|
4462
|
-
display: flex;
|
|
4463
|
-
float: right;
|
|
4464
|
-
`, yl = n.div`
|
|
4465
|
-
display: flex;
|
|
4466
|
-
align-items: center;
|
|
4467
|
-
justify-content: center;
|
|
4468
|
-
position: relative;
|
|
4469
|
-
float: right;
|
|
4470
|
-
cursor: ${(e) => e.isDisabled ? "not-allowed" : "pointer"};
|
|
4471
|
-
color: ${(e) => e.theme.colors.hero};
|
|
4472
|
-
&:hover {
|
|
4473
|
-
color: ${(e) => e.theme.colors.primary};
|
|
4474
|
-
}
|
|
4475
|
-
`, fl = n(Wr)`
|
|
4476
|
-
display: flex;
|
|
4477
|
-
width: ${o.sp4};
|
|
4478
|
-
height: ${o.sp4};
|
|
4479
|
-
align-items: center;
|
|
4480
|
-
justify-content: center;
|
|
4481
|
-
`, co = n.div`
|
|
4482
|
-
margin-top: ${(e) => e.partOfSkipAutoFill === !0 ? ee.closeMarginTop.valuePx(e.size) : 0};
|
|
4483
|
-
margin-left: ${o.sp5};
|
|
4484
|
-
margin-right: ${(e) => e.partOfSkipAutoFill === !0 ? ee.closeMarginRight.valuePx(e.size) : 0};
|
|
4485
|
-
`, xl = n.div`
|
|
4486
|
-
display: flex;
|
|
4487
|
-
flex-direction: column;
|
|
4488
|
-
width: 100vw;
|
|
4489
|
-
overflow-x: hidden;
|
|
4490
|
-
background: -webkit-linear-gradient(
|
|
4491
|
-
to right,
|
|
4492
|
-
${(e) => e.theme.colors.background} 42%,
|
|
4493
|
-
${(e) => e.theme.colors.grey4} 42%
|
|
4494
|
-
);
|
|
4495
|
-
background: -moz-linear-gradient(
|
|
4496
|
-
to right,
|
|
4497
|
-
${(e) => e.theme.colors.background} 42%,
|
|
4498
|
-
${(e) => e.theme.colors.grey4} 42%
|
|
4499
|
-
);
|
|
4500
|
-
background: -o-linear-gradient(
|
|
4501
|
-
to right,
|
|
4502
|
-
${(e) => e.theme.colors.background} 42%,
|
|
4503
|
-
${(e) => e.theme.colors.grey4} 42%
|
|
4504
|
-
);
|
|
4505
|
-
background: linear-gradient(
|
|
4506
|
-
to right,
|
|
4507
|
-
${(e) => e.theme.colors.background} 42%,
|
|
4508
|
-
${(e) => e.theme.colors.grey4} 42%
|
|
4509
|
-
);
|
|
4510
|
-
${(e) => e.windowSize === "small" && `
|
|
4511
|
-
background: ${e.theme.colors.grey4};
|
|
4512
|
-
`}
|
|
4513
|
-
min-height: 100vh;
|
|
4514
|
-
`, bl = n.div`
|
|
4515
|
-
display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
|
|
4516
|
-
width: 100%;
|
|
4517
|
-
margin-bottom: ${(e) => ee.bottomMargin.valuePx(e.windowSize)};
|
|
4518
|
-
`, wl = n.div`
|
|
4519
|
-
width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
4520
|
-
`, $l = n.div`
|
|
4521
|
-
margin-left: ${(e) => ee.leftMargin.valuePx(e.windowSize)};
|
|
4522
|
-
margin-right: ${(e) => ee.rightMargin.valuePx(e.windowSize)};
|
|
4523
|
-
`, Sl = n.div`
|
|
4524
|
-
display: flex;
|
|
4525
|
-
flex-direction: column;
|
|
4526
|
-
height: ${o.sp11};
|
|
4527
|
-
`;
|
|
4528
|
-
export {
|
|
4529
|
-
Nl as default,
|
|
4530
|
-
an as uniqueName
|
|
4531
|
-
};
|