@zeniai/web-components 3.16.40 → 3.16.41
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-C9GD0hCH.js +160 -0
- package/dist/ACHDetailsPage-CYC5YS-0.cjs +21 -0
- package/dist/AIPerformancePage-B0Adp0wg.js +1333 -0
- package/dist/AIPerformancePage-DbIAXX9U.cjs +530 -0
- package/dist/AccountInfoPage-BSxUquf3.js +78 -0
- package/dist/AccountInfoPage-qOnLYoWE.cjs +18 -0
- package/dist/AccountInfoPageContent-8V3PDzEc.js +428 -0
- package/dist/AccountInfoPageContent-DuBh5WvD.cjs +149 -0
- package/dist/AccountLockedInfoModal-7bhpExx3.js +125 -0
- package/dist/AccountLockedInfoModal-DA5gVTiH.cjs +59 -0
- package/dist/AccountReconDetailsDrawerPage-Ckmn4aww.cjs +239 -0
- package/dist/AccountReconDetailsDrawerPage-jTH8M9iA.js +686 -0
- package/dist/AccountRow-BpoPw0Cq.js +1009 -0
- package/dist/AccountRow-mZFS6s9b.cjs +298 -0
- package/dist/AccountsPromoCardStack-B0VcDqJP.cjs +207 -0
- package/dist/AccountsPromoCardStack-gsG5tf8_.js +664 -0
- package/dist/AddAddressForCardDrawer-CMF3Il-u.js +82 -0
- package/dist/AddAddressForCardDrawer-D8uBtKCa.cjs +6 -0
- package/dist/AddToWalletPage-BqLt9W64.cjs +344 -0
- package/dist/AddToWalletPage-CpWP7Kpn.js +643 -0
- package/dist/AgingReportsPage-3prqeCFK.cjs +79 -0
- package/dist/AgingReportsPage-DEQ2pO0Y.js +827 -0
- package/dist/AllUserItems-D0SR0Oue.js +979 -0
- package/dist/AllUserItems-D0uh7_8H.cjs +192 -0
- package/dist/ApAgingDetailPage-BA-wKCiF.js +239 -0
- package/dist/ApAgingDetailPage-DWKRkJva.cjs +46 -0
- package/dist/AppBasePage-DFn4TCyI.js +120 -0
- package/dist/AppBasePage-dMFEOJte.cjs +71 -0
- package/dist/AppDrawerContent-CBG4Ybue.js +375 -0
- package/dist/AppDrawerContent-CLY7v47F.cjs +91 -0
- package/dist/ApprovalRulesSettingsPage-BpO4ru0f.cjs +47 -0
- package/dist/ApprovalRulesSettingsPage-CpjHazzI.js +146 -0
- package/dist/ArAgingChart-BDISnDae.js +529 -0
- package/dist/ArAgingChart-CkqJ8pSH.cjs +24 -0
- package/dist/ArAgingDetailPage-Cgqf_0fL.js +243 -0
- package/dist/ArAgingDetailPage-DJlNFVGt.cjs +46 -0
- package/dist/AttachmentView-B1g0JlBK.cjs +101 -0
- package/dist/AttachmentView-X1k01Vtr.js +260 -0
- package/dist/BankAccountSection-BAB5P-qS.cjs +79 -0
- package/dist/BankAccountSection-CrxSDsgw.js +398 -0
- package/dist/BankAccountWarningSection-D7Ezz4E3.cjs +51 -0
- package/dist/BankAccountWarningSection-Dpt8yOKi.js +110 -0
- package/dist/BankConnectionsSettingsPage-BqC-oDZp.cjs +425 -0
- package/dist/BankConnectionsSettingsPage-Uzhaoi7g.js +1695 -0
- package/dist/BillDetailPage-Bb1EB1PA.cjs +266 -0
- package/dist/BillDetailPage-DcyikS7i.js +1798 -0
- package/dist/BillPayApprovalRuleDetailPage-BtHHDuwR.cjs +27 -0
- package/dist/BillPayApprovalRuleDetailPage-aM8F15Nu.js +247 -0
- package/dist/BillPayApprovalRulesPage-B46FwPVR.js +415 -0
- package/dist/BillPayApprovalRulesPage-CHAzVn_G.cjs +235 -0
- package/dist/BillPayPromoPage-BJbaxZBA.cjs +84 -0
- package/dist/BillPayPromoPage-DtVzdlsy.js +293 -0
- package/dist/BillPaySetUpPage-BKdNiQf7.js +412 -0
- package/dist/BillPaySetUpPage-Ck7MQBXX.cjs +42 -0
- package/dist/BillingSettingsPage-3AgPTFzN.js +336 -0
- package/dist/BillingSettingsPage-VlO8DjZP.cjs +44 -0
- package/dist/BillsBulkReviewDrawerPage-CFK7g3R1.js +216 -0
- package/dist/BillsBulkReviewDrawerPage-I-i5TwUV.cjs +1 -0
- package/dist/BoxItem-BMVjS54z.cjs +53 -0
- package/dist/BoxItem-Dsoq6QyZ.js +118 -0
- package/dist/BusinessVerificationPage-BaiXuOew.cjs +138 -0
- package/dist/BusinessVerificationPage-DSkBV_II.js +717 -0
- package/dist/BusyIndication-C7Oe3Je7.cjs +9 -0
- package/dist/BusyIndication-nuDt8o5S.js +18 -0
- package/dist/CardNumberSubText-B1OrE3CT.cjs +21 -0
- package/dist/CardNumberSubText-Crk5WDQr.js +59 -0
- package/dist/CashbackDetailPage-BZAFRMGW.js +824 -0
- package/dist/CashbackDetailPage-D0JK_gI7.cjs +285 -0
- package/dist/ChargeCardDetailPage-DXUoIbZa.js +5762 -0
- package/dist/ChargeCardDetailPage-TcjYQzEG.cjs +1813 -0
- package/dist/ChargeCardListPage-CIV1XQK1.js +1775 -0
- package/dist/ChargeCardListPage-OAOvTZ8T.cjs +406 -0
- package/dist/ChargeCardListTable-D8XlOBVx.cjs +711 -0
- package/dist/ChargeCardListTable-Dxn8Y17P.js +2872 -0
- package/dist/ChargeCardPromoPage-B6yTGsIY.js +806 -0
- package/dist/ChargeCardPromoPage-BsNvPxHz.cjs +222 -0
- package/dist/ChargeCardSetupPage-HHFdpsmJ.js +362 -0
- package/dist/ChargeCardSetupPage-p1ayTj29.cjs +36 -0
- package/dist/ChargeCardStatementsPage-BlZAHlH7.cjs +60 -0
- package/dist/ChargeCardStatementsPage-tuV67f3k.js +243 -0
- package/dist/ChargeCardUtils-BeG5m9OQ.js +102 -0
- package/dist/ChargeCardUtils-D1gopq8F.cjs +1 -0
- package/dist/ChaseOverlay-B2pqFXTT.js +402 -0
- package/dist/ChaseOverlay-DQPiFO9p.cjs +170 -0
- package/dist/CheckDepositDrawerPage-BKN7TyII.cjs +206 -0
- package/dist/CheckDepositDrawerPage-DDXZ3m54.js +726 -0
- package/dist/CollapsableReportTable-BLDh7Osv.js +11743 -0
- package/dist/CollapsableReportTable-k-5WvQFL.cjs +2932 -0
- package/dist/CompanyOfficerDetailsSection-CxoSe03A.cjs +260 -0
- package/dist/CompanyOfficerDetailsSection-Dg3sn5Sh.js +1633 -0
- package/dist/CompanyPassportCard-2HnVDVVi.js +146 -0
- package/dist/CompanyPassportCard-vQEeUkT1.cjs +42 -0
- package/dist/CompanyPassportPage-DlGllnaL.js +2160 -0
- package/dist/CompanyPassportPage-Du3VcMDI.cjs +574 -0
- package/dist/CompleteProfile-BmdlS5LU.cjs +52 -0
- package/dist/CompleteProfile-kFGIESms.js +301 -0
- package/dist/ConfettiBurst-CUAL0d7r.cjs +1 -0
- package/dist/ConfettiBurst-D5IgJ5P3.js +37 -0
- package/dist/CreateOrEditVendorPage-D8IFFcdA.js +755 -0
- package/dist/CreateOrEditVendorPage-pbeFjB6Y.cjs +281 -0
- package/dist/CreditCardPaymentDrawerPage-D5dPLJxT.cjs +224 -0
- package/dist/CreditCardPaymentDrawerPage-Xu0psAw0.js +1171 -0
- package/dist/CreditCardPaymentPlgSection-CqvgalYj.js +196 -0
- package/dist/CreditCardPaymentPlgSection-DBVTqR1H.cjs +78 -0
- package/dist/CurrencySelectField-DkY3JrVU.cjs +139 -0
- package/dist/CurrencySelectField-hwgVPqTt.js +348 -0
- package/dist/CustomerOnboardingActivationPage-CBFhWSJz.js +143 -0
- package/dist/CustomerOnboardingActivationPage-Db1iA6tg.cjs +88 -0
- package/dist/CustomerOnboardingContainerPage-39fGALCU.cjs +1 -0
- package/dist/CustomerOnboardingContainerPage-D4zUp7hX.js +7 -0
- package/dist/CustomerOnboardingDetailPageSkeleton-B2q2tdnD.js +434 -0
- package/dist/CustomerOnboardingDetailPageSkeleton-BFbj6uc7.cjs +162 -0
- package/dist/CustomerOnboardingNoStepsPage-BsNq90nq.js +425 -0
- package/dist/CustomerOnboardingNoStepsPage-D4m-4nLt.cjs +66 -0
- package/dist/CustomerOnboardingPage-BbGV3jtT.js +1060 -0
- package/dist/CustomerOnboardingPage-DpRG1HhA.cjs +107 -0
- package/dist/CustomerOnboardingProductSuitePage-CFHPiJrt.cjs +202 -0
- package/dist/CustomerOnboardingProductSuitePage-R2PJEOqZ.js +349 -0
- package/dist/Dashboard-Bt3WU40o.cjs +1551 -0
- package/dist/Dashboard-Cw4u8_9e.js +5531 -0
- package/dist/DashboardReportPage-BXIsYfnw.cjs +371 -0
- package/dist/DashboardReportPage-ls_MMfAh.js +2536 -0
- package/dist/DashboardSidebarBackgroundAnimation-C8qnD-z5.cjs +12 -0
- package/dist/DashboardSidebarBackgroundAnimation-C_9jGJQn.js +50 -0
- package/dist/DepositAccTransactionItem-BLgpyexV.js +112 -0
- package/dist/DepositAccTransactionItem-lIw_8F_a.cjs +76 -0
- package/dist/DepositAccTransactionListPage-D5JgYPp4.cjs +66 -0
- package/dist/DepositAccTransactionListPage-r4UVSUOl.js +152 -0
- package/dist/DomesticWireDetailsPage-B4rlKKBv.cjs +21 -0
- package/dist/DomesticWireDetailsPage-BSXsHwf5.js +189 -0
- package/dist/DownloadOverlay-Cp1Q1v6N.cjs +439 -0
- package/dist/DownloadOverlay-DKpj3Vwl.js +2148 -0
- package/dist/DrawerPage-BhKdk6rj.cjs +118 -0
- package/dist/DrawerPage-Cxz5I3Mb.js +208 -0
- package/dist/EditPeoplePage-CDHVkxz2.cjs +55 -0
- package/dist/EditPeoplePage-Dbsa013z.js +392 -0
- package/dist/EditReimbursementDetailPage-Clpj3Hjz.js +4461 -0
- package/dist/EditReimbursementDetailPage-Da3e7bhB.cjs +865 -0
- package/dist/EmptySearchResults-BEeLVBw6.js +70 -0
- package/dist/EmptySearchResults-DcoFOr1E.cjs +46 -0
- package/dist/EntityDetailPage-C73BtWIp.js +82 -0
- package/dist/EntityDetailPage-DxUkdchk.cjs +18 -0
- package/dist/EntitySummarySection-BQA0g-pF.js +530 -0
- package/dist/EntitySummarySection-DG3oN1UJ.cjs +149 -0
- package/dist/ExpenseAutomationOverviewPage-BxEr0k8F.js +735 -0
- package/dist/ExpenseAutomationOverviewPage-CkRLiYwf.cjs +241 -0
- package/dist/ExpenseAutomationPage-BS4M9nkW.js +11496 -0
- package/dist/ExpenseAutomationPage-D4XAH39D.cjs +1650 -0
- package/dist/ExpressPayPage-BgBgFDyv.cjs +168 -0
- package/dist/ExpressPayPage-Buxb2M1i.js +1136 -0
- package/dist/FeaturePreviewPage-ClfFYnHb.js +114 -0
- package/dist/FeaturePreviewPage-DTiiQuUf.cjs +11 -0
- package/dist/FollowStepsSection-CH0Uq3pI.cjs +390 -0
- package/dist/FollowStepsSection-CkQ-g4YK.js +1313 -0
- package/dist/GlobalReviewListPage-BaiLuxxl.cjs +291 -0
- package/dist/GlobalReviewListPage-C_DbsHsA.js +1674 -0
- package/dist/HelpButton-B0ZBXPeh.js +81 -0
- package/dist/HelpButton-V3yE8Qq_.cjs +28 -0
- package/dist/InformationCardStack-BcsaWzvg.cjs +31 -0
- package/dist/InformationCardStack-DYdCt7zr.js +219 -0
- package/dist/InsightsCardStack-BSHQznep.js +305 -0
- package/dist/InsightsCardStack-BttUBVfI.cjs +79 -0
- package/dist/InsightsSection-C37BKIiK.js +97 -0
- package/dist/InsightsSection-DMvD4Q6O.cjs +27 -0
- package/dist/IntegrationsSettingsPage-CwmkC75p.cjs +57 -0
- package/dist/IntegrationsSettingsPage-DHAdlHrq.js +137 -0
- package/dist/InternationalWireSwiftDetailsPage-B64WNt28.js +753 -0
- package/dist/InternationalWireSwiftDetailsPage-BA-pNnhH.cjs +171 -0
- package/dist/InternationalWireVerificationPage-BNh5iOEd.cjs +292 -0
- package/dist/InternationalWireVerificationPage-D7ttGovC.js +877 -0
- package/dist/InviteFormPage-BhbGM4dC.js +873 -0
- package/dist/InviteFormPage-DiZ1Cxpe.cjs +312 -0
- package/dist/InvitePageListView-ByBn4oIX.cjs +739 -0
- package/dist/InvitePageListView-CyRlLv60.js +1764 -0
- package/dist/InvitePeoplePage-DSyxWWyX.cjs +12 -0
- package/dist/InvitePeoplePage-DYpb33z0.js +286 -0
- package/dist/InvoiceUploadSection-BPPgbS-r.js +465 -0
- package/dist/InvoiceUploadSection-BqXSUUYT.cjs +140 -0
- package/dist/IssueChargeCardPage-C_SLiKHJ.cjs +532 -0
- package/dist/IssueChargeCardPage-D_qQkkfo.js +2875 -0
- package/dist/LabeledAddressValue-DtuXN46n.cjs +49 -0
- package/dist/LabeledAddressValue-EshVNGGW.js +115 -0
- package/dist/LabeledAddressValueField-BiTYB-q4.cjs +45 -0
- package/dist/LabeledAddressValueField-kgieouBM.js +130 -0
- package/dist/LabeledControlledCheckBoxField-BDJ1ovXY.cjs +16 -0
- package/dist/LabeledControlledCheckBoxField-CWABc6OK.js +73 -0
- package/dist/LabeledCreatableSingleSelectField-B5o1KUJj.js +515 -0
- package/dist/LabeledCreatableSingleSelectField-ex3ewcrD.cjs +204 -0
- package/dist/LabeledDocumentField-BrXpwWfM.js +147 -0
- package/dist/LabeledDocumentField-OSes1aNv.cjs +41 -0
- package/dist/LabeledDropDownFormattedTextField-BhFH6tgz.cjs +59 -0
- package/dist/LabeledDropDownFormattedTextField-Cepl3y9a.js +163 -0
- package/dist/LabeledEmailInputField-CMGoPzEw.js +425 -0
- package/dist/LabeledEmailInputField-rV7IfdzC.cjs +182 -0
- package/dist/LabeledItemWithButton-ChmTzcQH.cjs +21 -0
- package/dist/LabeledItemWithButton-Dq30UbLA.js +74 -0
- package/dist/LabeledNameField-DpL4YD6h.cjs +141 -0
- package/dist/LabeledNameField-kiEgpChZ.js +293 -0
- package/dist/LabeledSingleSelectField-D0n4rWoV.cjs +136 -0
- package/dist/LabeledSingleSelectField-EhdmglsI.js +372 -0
- package/dist/LabeledSingleSelectWithoutClearableField-2MeivN_H.cjs +38 -0
- package/dist/LabeledSingleSelectWithoutClearableField-CXO2YxPm.js +103 -0
- package/dist/LabeledText-BmFLymPb.js +103 -0
- package/dist/LabeledText-D8IfxeEd.cjs +42 -0
- package/dist/LabeledUserSingleSelectWithSubtitlesField-CBbnTiwl.js +572 -0
- package/dist/LabeledUserSingleSelectWithSubtitlesField-Dad0vx6X.cjs +229 -0
- package/dist/LabeledZeniRolesDropDownField-Da9mc-0B.js +975 -0
- package/dist/LabeledZeniRolesDropDownField-gVnHldOY.cjs +297 -0
- package/dist/LinkJETransactionPage-CzzJ8rPX.cjs +98 -0
- package/dist/LinkJETransactionPage-DIhsx2g-.js +406 -0
- package/dist/LockCardPage-BA4Lj9Iy.js +2033 -0
- package/dist/LockCardPage-Cvw_IcbC.cjs +623 -0
- package/dist/LowBalancePopup-B1pTBmAF.js +219 -0
- package/dist/LowBalancePopup-MeQekK8u.cjs +34 -0
- package/dist/MagicLinkACHDetailsPage-BxzbJBWO.js +39 -0
- package/dist/MagicLinkACHDetailsPage-_SJCANPL.cjs +1 -0
- package/dist/MagicLinkDomesticWireDetailsPage-D5MkwGpS.cjs +1 -0
- package/dist/MagicLinkDomesticWireDetailsPage-DB2tBUoV.js +44 -0
- package/dist/MagicLinkInternationalWireDetailsPage-0B5pD_Iw.js +43 -0
- package/dist/MagicLinkInternationalWireDetailsPage-E_dR97yN.cjs +1 -0
- package/dist/MagicLinkSuccessPage-3I1CRYrj.js +59 -0
- package/dist/MagicLinkSuccessPage-CDTZekzE.cjs +31 -0
- package/dist/MagicLinkTitleSection-BKgwdBLy.js +40 -0
- package/dist/MagicLinkTitleSection-nkibzoeY.cjs +17 -0
- package/dist/MailingDetailsSection-BwEd_J6R.js +74 -0
- package/dist/MailingDetailsSection-C0RbE2dA.cjs +21 -0
- package/dist/MatchingOperatorDropdown-BbpQiY_F.cjs +130 -0
- package/dist/MatchingOperatorDropdown-wsvIyqdd.js +572 -0
- package/dist/MeetingCalenderPopup-Bn46ZQqN.cjs +26 -0
- package/dist/MeetingCalenderPopup-BpRpGSe6.js +60 -0
- package/dist/Menu-De_gaVnj.js +110 -0
- package/dist/Menu-DurD6viK.cjs +17 -0
- package/dist/MoreMenuButton-DQdfwfDW.cjs +167 -0
- package/dist/MoreMenuButton-ksfP-Epn.js +569 -0
- package/dist/MyBankConnectionsSettingsPage-D3mSYlSg.cjs +110 -0
- package/dist/MyBankConnectionsSettingsPage-lChXBDCb.js +297 -0
- package/dist/MyPendingActivationChargeCardListPage-B7gXbS_x.cjs +6 -0
- package/dist/MyPendingActivationChargeCardListPage-D3di8BeS.js +168 -0
- package/dist/MyProfileSettingsPage-CQ_cLUEm.cjs +85 -0
- package/dist/MyProfileSettingsPage-CYI4yK6I.js +641 -0
- package/dist/NavBarWithPicker-BRD9csLV.cjs +30 -0
- package/dist/NavBarWithPicker-DcELUvq0.js +106 -0
- package/dist/NavigationArrow-DrdM3b8F.cjs +47 -0
- package/dist/NavigationArrow-W1nVj2KC.js +88 -0
- package/dist/NavigationDots-BKVFhe2Y.js +44 -0
- package/dist/NavigationDots-D9zZX4Wm.cjs +15 -0
- package/dist/NewGlobalMerchantPage-DRrjJgZt.js +543 -0
- package/dist/NewGlobalMerchantPage-DqdIddKw.cjs +160 -0
- package/dist/NoDataChart-BzSCComh.js +58 -0
- package/dist/NoDataChart-D5Hogbvw.cjs +26 -0
- package/dist/NoDataTable-C0XVMtsX.cjs +8 -0
- package/dist/NoDataTable-CGWMbvak.js +27 -0
- package/dist/NotFoundPage-DfRFngFV.js +71 -0
- package/dist/NotFoundPage-DhQrmKeH.cjs +46 -0
- package/dist/NotificationSettingsPage-BTJH62-O.js +541 -0
- package/dist/NotificationSettingsPage-BhwjXVZV.cjs +163 -0
- package/dist/NotificationsListConfig-DPutUxp3.js +10 -0
- package/dist/NotificationsListConfig-Dykwve1V.cjs +1 -0
- package/dist/NotificationsPage-CYcygjmU.cjs +685 -0
- package/dist/NotificationsPage-xu6A1hVF.js +2664 -0
- package/dist/OpExByVendorPage-BeO7iMry.js +1057 -0
- package/dist/OpExByVendorPage-CwLDHuWV.cjs +100 -0
- package/dist/PandLWithForecastPage-1qSy3_Ke.js +563 -0
- package/dist/PandLWithForecastPage-CN1bnK9C.cjs +107 -0
- package/dist/PaymentAccountSetupBillingAddressSection-DnObHdjD.js +623 -0
- package/dist/PaymentAccountSetupBillingAddressSection-ZWA2oovY.cjs +106 -0
- package/dist/PeoplePage-BvzC0p0p.cjs +675 -0
- package/dist/PeoplePage-CPqz8R9j.js +1994 -0
- package/dist/PortfolioAllocationFormPage-BbQe_4Sf.cjs +207 -0
- package/dist/PortfolioAllocationFormPage-C9ZM9oUf.js +440 -0
- package/dist/PortfolioDetails-BJBNPfcI.js +653 -0
- package/dist/PortfolioDetails-DsxpK2D_.cjs +218 -0
- package/dist/ProductsCarousel-CG2R56oG.cjs +142 -0
- package/dist/ProductsCarousel-Ctx00P5D.js +309 -0
- package/dist/PromoBaseCards-BGYdfmx6.js +356 -0
- package/dist/PromoBaseCards-C9ssmGi3.cjs +218 -0
- package/dist/QBOConnectionDialog-B9yKv9hq.js +115 -0
- package/dist/QBOConnectionDialog-DAysOMja.cjs +51 -0
- package/dist/QBOSetupSection-CTMSCXwv.js +167 -0
- package/dist/QBOSetupSection-yzRabbFw.cjs +79 -0
- package/dist/ReimbursementApprovalRuleDetailPage-BtZUsK7H.js +247 -0
- package/dist/ReimbursementApprovalRuleDetailPage-P-aFuae2.cjs +26 -0
- package/dist/ReimbursementApprovalRulesPage-CZ3-nXou.cjs +237 -0
- package/dist/ReimbursementApprovalRulesPage-DNBHPoIZ.js +410 -0
- package/dist/ReimbursementDetailPage-BxZ5ijHe.js +1511 -0
- package/dist/ReimbursementDetailPage-kcXGe1YT.cjs +314 -0
- package/dist/ReimbursementPromoPage-CKTb8V12.cjs +84 -0
- package/dist/ReimbursementPromoPage-D284EkRZ.js +364 -0
- package/dist/ReimbursementSetUpPage-ByRgJc5l.cjs +140 -0
- package/dist/ReimbursementSetUpPage-BzR91_eW.js +666 -0
- package/dist/ReimbursementsBulkReviewDrawerPage-BMo9fFp7.js +204 -0
- package/dist/ReimbursementsBulkReviewDrawerPage-C6xnT0ka.cjs +1 -0
- package/dist/ReloadCard-CGUNX_x4.js +137 -0
- package/dist/ReloadCard-lMyDHFeR.cjs +26 -0
- package/dist/ReloadContainer-BUKjIgvY.js +2144 -0
- package/dist/ReloadContainer-BXGR9JSK.cjs +596 -0
- package/dist/ReportTableViewSelector-BVAek1Ui.js +679 -0
- package/dist/ReportTableViewSelector-H4TYrAme.cjs +150 -0
- package/dist/ReportsPage-Bbc7aZoT.cjs +121 -0
- package/dist/ReportsPage-BzKbMWV4.js +1315 -0
- package/dist/RevenueChart-Brh_ri4R.cjs +280 -0
- package/dist/RevenueChart-CPUrVR7y.js +2239 -0
- package/dist/ReviewDetailsPage-B74yrCe2.js +1073 -0
- package/dist/ReviewDetailsPage-CNiHGVPN.cjs +290 -0
- package/dist/ReviewOverlay-BlEoY-hJ.cjs +152 -0
- package/dist/ReviewOverlay-DQvXSDYM.js +299 -0
- package/dist/RoleWithToolTip-C093KNmR.cjs +22 -0
- package/dist/RoleWithToolTip-MwI_BmVq.js +72 -0
- package/dist/ScheduleDetailsFixedAssetsPage-CbkRYKjG.js +806 -0
- package/dist/ScheduleDetailsFixedAssetsPage-CwI8TkIZ.cjs +37 -0
- package/dist/ScheduleDetailsPage-CCRspH3Y.js +726 -0
- package/dist/ScheduleDetailsPage-DHxs-r1X.cjs +37 -0
- package/dist/ScheduleSequenceTable-55zYXNwF.js +1261 -0
- package/dist/ScheduleSequenceTable-CE9JUG3T.cjs +324 -0
- package/dist/SetUpAccountSection-B1Xxp4JH.cjs +378 -0
- package/dist/SetUpAccountSection-IgQjKWEr.js +1470 -0
- package/dist/SetUpDefaultSection-WXT-PxYn.cjs +187 -0
- package/dist/SetUpDefaultSection-shC3qOy6.js +537 -0
- package/dist/SignIn-CZGmLYjH.js +1075 -0
- package/dist/SignIn-DRzIcRU5.cjs +448 -0
- package/dist/SpendManagementListViewPage-BhTnQtma.js +627 -0
- package/dist/SpendManagementListViewPage-hR_Vhi5n.cjs +122 -0
- package/dist/SpendManagementPerTabPage-DpnIM6Nc.js +2735 -0
- package/dist/SpendManagementPerTabPage-W6h02vpQ.cjs +754 -0
- package/dist/SpendManagementSection-CjO6vqBG.cjs +230 -0
- package/dist/SpendManagementSection-Hjvwgkt0.js +1043 -0
- package/dist/SpendMgmtSetupAccountSection-Bl7P86LW.cjs +206 -0
- package/dist/SpendMgmtSetupAccountSection-CAWyEGGM.js +875 -0
- package/dist/StatementItem-CDNfnlZY.cjs +31 -0
- package/dist/StatementItem-D8v_Laju.js +81 -0
- package/dist/StatementsPage-CEw-9UyR.js +130 -0
- package/dist/StatementsPage-DiuHhtNM.cjs +58 -0
- package/dist/StatusSwitcher-CA0w_Raa.cjs +120 -0
- package/dist/StatusSwitcher-DoSCydJG.js +319 -0
- package/dist/SubTabSwitcher-BmPgrbwN.cjs +58 -0
- package/dist/SubTabSwitcher-Ct1DqfgC.js +113 -0
- package/dist/SuccessAnimation-BKToAJWj.js +52 -0
- package/dist/SuccessAnimation-DB7RSEPr.cjs +13 -0
- package/dist/SummaryCard-B2A6iJMr.cjs +1 -0
- package/dist/SummaryCard-CHUbuF_0.js +25 -0
- package/dist/TaskDetailPage-CtBEFqP7.cjs +775 -0
- package/dist/TaskDetailPage-zV5TeIut.js +2533 -0
- package/dist/TaskListRow-DOmjaolj.js +1950 -0
- package/dist/TaskListRow-aq2JDiax.cjs +556 -0
- package/dist/TaskManagementPage-BnP_OwUO.cjs +508 -0
- package/dist/TaskManagementPage-Ddox5Vwh.js +1935 -0
- package/dist/TimeRangeSwitcher-CiOSsTU-.js +265 -0
- package/dist/TimeRangeSwitcher-CoC4AKbY.cjs +64 -0
- package/dist/TimeframeSwitcher-BTgT4L_U.cjs +31 -0
- package/dist/TimeframeSwitcher-D1k1Zf_U.js +103 -0
- package/dist/TimeframeSwitcherWithToggle-0y-QlUhJ.cjs +31 -0
- package/dist/TimeframeSwitcherWithToggle-DXbaoDe6.js +157 -0
- package/dist/TopExCard-CBDY9kRZ.cjs +38 -0
- package/dist/TopExCard-D4ZDqXZg.js +568 -0
- package/dist/TopExDetailPage-3lQqUUuH.cjs +132 -0
- package/dist/TopExDetailPage-BdPAcKwH.js +318 -0
- package/dist/TransactionDetailPage-BcjGxHy8.js +5238 -0
- package/dist/TransactionDetailPage-D-vcimps.cjs +912 -0
- package/dist/TransactionList-BEw8paZe.cjs +147 -0
- package/dist/TransactionList-BSuMEtB3.js +558 -0
- package/dist/TransactionListBig-B2m9XG5N.cjs +284 -0
- package/dist/TransactionListBig-MY_ZxyR3.js +658 -0
- package/dist/TransactionListPage-CWGrWDjK.js +144 -0
- package/dist/TransactionListPage-DQ7mlN0J.cjs +35 -0
- package/dist/TransactionVendorDetailPage-BmHUrd9A.cjs +80 -0
- package/dist/TransactionVendorDetailPage-DDNK9KrI.js +425 -0
- package/dist/TransferDrawerPage-CLVvxudt.cjs +362 -0
- package/dist/TransferDrawerPage-vK0YoMro.js +1435 -0
- package/dist/TreasuryOverviewPage-0w2fqSQq.cjs +708 -0
- package/dist/TreasuryOverviewPage-CQsUti1c.js +1890 -0
- package/dist/TreasuryPromoPage-Bp72hKEs.js +1122 -0
- package/dist/TreasuryPromoPage-ChLEfwjm.cjs +505 -0
- package/dist/TreasurySetupPage-BUKsU3nh.js +683 -0
- package/dist/TreasurySetupPage-NdR4fcoC.cjs +144 -0
- package/dist/TreasuryStatementsPage-BHSNkuqV.cjs +58 -0
- package/dist/TreasuryStatementsPage-Cryv1PNX.js +131 -0
- package/dist/TreasuryTaxLetterPage-BMYTdYa5.js +131 -0
- package/dist/TreasuryTaxLetterPage-BzZ33mKy.cjs +58 -0
- package/dist/TreasuryTransferOrReviewPage-B9VwyDJa.js +1938 -0
- package/dist/TreasuryTransferOrReviewPage-UwL3-CQw.cjs +576 -0
- package/dist/TrendChart-BLkEjRto.cjs +16 -0
- package/dist/TrendChart-CqYeWLeV.js +333 -0
- package/dist/TrendWithTransactions-BUu5ayi8.cjs +116 -0
- package/dist/TrendWithTransactions-xn1fvlLO.js +346 -0
- package/dist/UncategorizedAccountsMappingPage-B_aOzm4v.js +1160 -0
- package/dist/UncategorizedAccountsMappingPage-Cbm-7YCU.cjs +244 -0
- package/dist/UnitIntegrationPage-9r7MTzc6.cjs +67 -0
- package/dist/UnitIntegrationPage-B6LF_f7C.js +405 -0
- package/dist/UploadAdditionalDocumentOverlay-BFaFFntv.cjs +38 -0
- package/dist/UploadAdditionalDocumentOverlay-BlKvE3tT.js +211 -0
- package/dist/Vendor2FAPopup-BEYyA2Ym.cjs +1 -0
- package/dist/Vendor2FAPopup-BLzf9zxl.js +69 -0
- package/dist/VendorACHDetailsPage-CncDplWQ.js +43 -0
- package/dist/VendorACHDetailsPage-CsX3YO1J.cjs +1 -0
- package/dist/VendorDetailPage-DPg9Qqvr.cjs +257 -0
- package/dist/VendorDetailPage-POan4Fo8.js +1236 -0
- package/dist/VendorDomesticWireDetailsPage-B1bT0W9o.js +53 -0
- package/dist/VendorDomesticWireDetailsPage-dzibWCU0.cjs +1 -0
- package/dist/VendorFiling1099EditablePage-C25iYV4w.js +842 -0
- package/dist/VendorFiling1099EditablePage-DCXYhwt8.cjs +175 -0
- package/dist/VendorFirstReviewPage-DQf47ru5.cjs +730 -0
- package/dist/VendorFirstReviewPage-DY035p5C.js +2748 -0
- package/dist/VendorInternationalWireDetailsPage-CjueADq5.cjs +152 -0
- package/dist/VendorInternationalWireDetailsPage-DN_mcAqY.js +968 -0
- package/dist/VendorInternationalWireSwiftDetailsPage-BIo-yiJg.cjs +1 -0
- package/dist/VendorInternationalWireSwiftDetailsPage-BaXgGRdu.js +52 -0
- package/dist/VendorsAccountsSection-C2UiqXC0.js +279 -0
- package/dist/VendorsAccountsSection-DvB5jPtr.cjs +68 -0
- package/dist/VerifyDevice-C7BWrAZ3.js +298 -0
- package/dist/VerifyDevice-Di15GN-d.cjs +112 -0
- package/dist/VideoPlayer-BGkzzQtK.cjs +77 -0
- package/dist/VideoPlayer-BYkDTMkS.js +169 -0
- package/dist/VideoPopup-Bx6Q6hmJ.cjs +31 -0
- package/dist/VideoPopup-Chye3pds.js +60 -0
- package/dist/WarningsDrawerPage-BW9ymJJ6.cjs +92 -0
- package/dist/WarningsDrawerPage-Cx-gJdnW.js +228 -0
- package/dist/ZeniAccountDetailPage-BrXe6Kao.js +907 -0
- package/dist/ZeniAccountDetailPage-I7Wz3gpk.cjs +300 -0
- package/dist/ZeniAccountListViewPage-3zfJiAzJ.cjs +441 -0
- package/dist/ZeniAccountListViewPage-CJnHvk5a.js +1078 -0
- package/dist/ZeniAccountNavBarPieces-BdLOT9UG.js +89 -0
- package/dist/ZeniAccountNavBarPieces-DiBv_DVQ.cjs +14 -0
- package/dist/ZeniAccountPromoPage-B1I9l833.js +523 -0
- package/dist/ZeniAccountPromoPage-BJY_BzQE.cjs +184 -0
- package/dist/ZeniAccountSetupPage-CitVJnZC.js +312 -0
- package/dist/ZeniAccountSetupPage-DZOhoM_3.cjs +36 -0
- package/dist/ZeniAvatar-B-lA2tSS.cjs +13 -0
- package/dist/ZeniAvatar-YQKTu5T2.js +34 -0
- package/dist/ZeniCopyright-CnKThbeb.cjs +1 -0
- package/dist/ZeniCopyright-DbQka65R.js +9 -0
- package/dist/ZeniDatePicker-CFQ8KISU.cjs +187 -0
- package/dist/ZeniDatePicker-RSYs-tf3.js +386 -0
- package/dist/ZeniTransferAmountSlider-B37SYbB2.cjs +63 -0
- package/dist/ZeniTransferAmountSlider-Dzxu82Xw.js +215 -0
- package/dist/analyticsHelper-DgJDMdal.js +65 -0
- package/dist/analyticsHelper-pAFKT3cM.cjs +1 -0
- package/dist/calculateSize-DCpYHyd7.js +22 -0
- package/dist/calculateSize-DaGhXCTC.cjs +1 -0
- package/dist/chartTypes-BxWbB5-g.cjs +1 -0
- package/dist/chartTypes-D1j_l919.js +47 -0
- package/dist/cockpit.cjs.js +2 -2
- package/dist/cockpit.esm.js +15 -15
- package/dist/common-Cg5QFlS0.cjs +1 -0
- package/dist/common-DMCzyg_F.js +22 -0
- package/dist/commonDimensions-6r34nnzX.cjs +1 -0
- package/dist/commonDimensions-DDu54g8x.js +13 -0
- package/dist/components/spendManagement/chargeCard/components/CardNumberSubText.d.ts +2 -1
- package/dist/detailCommon-C9WgJozo.cjs +38 -0
- package/dist/detailCommon-DXjUFoA1.js +124 -0
- package/dist/downloadPdf-DChYYVaW.js +32 -0
- package/dist/downloadPdf-MfZfz1Na.cjs +1 -0
- package/dist/index-BtH6xclG.js +85950 -0
- package/dist/index-DiGCN0Sk.cjs +19239 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mapLoadingInProgressToTreeNode-BC5IH44-.js +25 -0
- package/dist/mapLoadingInProgressToTreeNode-D-O3AddY.cjs +1 -0
- package/dist/mapSectionWithAcOnlyToTreeNode-Bi-NmDvw.cjs +1 -0
- package/dist/mapSectionWithAcOnlyToTreeNode-CUXssP6r.js +388 -0
- package/dist/mapSpacerToTreeNode-7iXcpQzi.cjs +1 -0
- package/dist/mapSpacerToTreeNode-sdzfy8cu.js +25 -0
- package/dist/mapTimeframeBalancesToTreeNode-BROieqal.js +24 -0
- package/dist/mapTimeframeBalancesToTreeNode-CkMQECI-.cjs +1 -0
- package/dist/mapTimeframeBalancesToTreeNode-DgOZfixy.js +24 -0
- package/dist/mapTimeframeBalancesToTreeNode-V5RujCyP.cjs +1 -0
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-Dz4hLdFi.cjs +1 -0
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-bXb7WXAq.js +32 -0
- package/dist/sectionColor-B_tXryN8.cjs +1 -0
- package/dist/sectionColor-CUFM2FiY.js +32 -0
- package/dist/toCOABalancesWithID-BJYg4vV-.cjs +1 -0
- package/dist/toCOABalancesWithID-DqhuI8hD.js +8 -0
- package/dist/toChartData-DZPFiNsp.js +76 -0
- package/dist/toChartData-DkDcWweM.cjs +1 -0
- package/dist/treasuryColorHelper-D5AxfiPH.js +60 -0
- package/dist/treasuryColorHelper-I4heCfN1.cjs +1 -0
- package/dist/uploadAttachment-D04Fz4F1.js +952 -0
- package/dist/uploadAttachment-DNvxNYKT.cjs +286 -0
- package/dist/zeniDatePicker.helpers-C2zOIEu5.js +14 -0
- package/dist/zeniDatePicker.helpers-DU1XMtI0.cjs +1 -0
- package/package.json +1 -1
- package/dist/ACHDetailsPage-BuyU6iEz.cjs +0 -21
- package/dist/ACHDetailsPage-Ct5-WoAK.js +0 -160
- package/dist/AIPerformancePage-BVaxMag-.js +0 -1333
- package/dist/AIPerformancePage-DfRdjE9Y.cjs +0 -530
- package/dist/AccountInfoPage-C7MBKdL0.cjs +0 -18
- package/dist/AccountInfoPage-DdplczOB.js +0 -78
- package/dist/AccountInfoPageContent-5-bIBAlZ.cjs +0 -149
- package/dist/AccountInfoPageContent-DhklLdth.js +0 -428
- package/dist/AccountLockedInfoModal-C3zWBbT2.js +0 -125
- package/dist/AccountLockedInfoModal-zGANjVl6.cjs +0 -59
- package/dist/AccountReconDetailsDrawerPage-BOegyVid.js +0 -686
- package/dist/AccountReconDetailsDrawerPage-DTeKX7Vf.cjs +0 -239
- package/dist/AccountRow-6qyktMtX.cjs +0 -298
- package/dist/AccountRow-CQBgLMRQ.js +0 -1009
- package/dist/AccountsPromoCardStack-DpLbtGpK.cjs +0 -207
- package/dist/AccountsPromoCardStack-DwRNadms.js +0 -664
- package/dist/AddAddressForCardDrawer-BWv0ixAO.js +0 -82
- package/dist/AddAddressForCardDrawer-BfyjkCzH.cjs +0 -6
- package/dist/AddToWalletPage-3HIVUj1f.js +0 -643
- package/dist/AddToWalletPage-DtDd07sn.cjs +0 -344
- package/dist/AgingReportsPage-CeyV-SFk.js +0 -827
- package/dist/AgingReportsPage-MHwVeOkF.cjs +0 -79
- package/dist/AllUserItems-C7SnHJiq.js +0 -979
- package/dist/AllUserItems-DI3pPciy.cjs +0 -192
- package/dist/ApAgingDetailPage-D6ESwMyv.cjs +0 -46
- package/dist/ApAgingDetailPage-Ik0ixCna.js +0 -239
- package/dist/AppBasePage-CJD3vbNR.js +0 -120
- package/dist/AppBasePage-CJKWt52S.cjs +0 -71
- package/dist/AppDrawerContent-BhKNNQXi.cjs +0 -91
- package/dist/AppDrawerContent-DVkNCTtS.js +0 -375
- package/dist/ApprovalRulesSettingsPage-DRrl7GL_.cjs +0 -47
- package/dist/ApprovalRulesSettingsPage-DlI-NO2v.js +0 -146
- package/dist/ArAgingChart-BpwWmIr9.js +0 -529
- package/dist/ArAgingChart-CaFYAiLa.cjs +0 -24
- package/dist/ArAgingDetailPage-CROGma9U.cjs +0 -46
- package/dist/ArAgingDetailPage-DreXZLg_.js +0 -243
- package/dist/AttachmentView-BEvEkEcS.js +0 -260
- package/dist/AttachmentView-Bv_KiOPH.cjs +0 -101
- package/dist/BankAccountSection-CG9CacCu.cjs +0 -79
- package/dist/BankAccountSection-IbaiAHdo.js +0 -398
- package/dist/BankAccountWarningSection-BLp__xLv.js +0 -110
- package/dist/BankAccountWarningSection-CY0ZeBCE.cjs +0 -51
- package/dist/BankConnectionsSettingsPage-BSFsh7Cd.cjs +0 -425
- package/dist/BankConnectionsSettingsPage-CUYGEArQ.js +0 -1695
- package/dist/BillDetailPage-waiffzo6.cjs +0 -266
- package/dist/BillDetailPage-zRogxiKa.js +0 -1798
- package/dist/BillPayApprovalRuleDetailPage-DELxaP90.js +0 -247
- package/dist/BillPayApprovalRuleDetailPage-TOcFF-_T.cjs +0 -27
- package/dist/BillPayApprovalRulesPage-BxmpKfco.cjs +0 -235
- package/dist/BillPayApprovalRulesPage-DrWxkzSC.js +0 -415
- package/dist/BillPayPromoPage-BegcNR38.js +0 -293
- package/dist/BillPayPromoPage-UDapfy8J.cjs +0 -84
- package/dist/BillPaySetUpPage-Bon7bm4C.js +0 -412
- package/dist/BillPaySetUpPage-itdc_KJB.cjs +0 -42
- package/dist/BillingSettingsPage-B-6_UnaJ.cjs +0 -44
- package/dist/BillingSettingsPage-BTeurFew.js +0 -336
- package/dist/BillsBulkReviewDrawerPage-B6bZ1XZe.js +0 -216
- package/dist/BillsBulkReviewDrawerPage-By8HXcWX.cjs +0 -1
- package/dist/BoxItem-F0KOr97L.js +0 -118
- package/dist/BoxItem-Fs6Lglx1.cjs +0 -53
- package/dist/BusinessVerificationPage-Bj3I_Trb.cjs +0 -138
- package/dist/BusinessVerificationPage-DcX06VbW.js +0 -717
- package/dist/BusyIndication-BgMTrFEc.js +0 -18
- package/dist/BusyIndication-oEXavOiI.cjs +0 -9
- package/dist/CardNumberSubText-Bm4jz0mw.js +0 -57
- package/dist/CardNumberSubText-UwCYZzSb.cjs +0 -21
- package/dist/CashbackDetailPage-BPU3cf8Y.js +0 -824
- package/dist/CashbackDetailPage-cTfRCuvi.cjs +0 -285
- package/dist/ChargeCardDetailPage-CuecZabw.js +0 -5762
- package/dist/ChargeCardDetailPage-DwuxWMa1.cjs +0 -1813
- package/dist/ChargeCardListPage-NKH3uYCM.cjs +0 -406
- package/dist/ChargeCardListPage-yy_iIjyo.js +0 -1775
- package/dist/ChargeCardListTable-CH8WughE.js +0 -2849
- package/dist/ChargeCardListTable-O5SXNbTR.cjs +0 -711
- package/dist/ChargeCardPromoPage-Cck7QH7d.js +0 -806
- package/dist/ChargeCardPromoPage-DOOtx1OG.cjs +0 -222
- package/dist/ChargeCardSetupPage-CijVkgc5.js +0 -362
- package/dist/ChargeCardSetupPage-DJBOkljU.cjs +0 -36
- package/dist/ChargeCardStatementsPage-D5xK4u3H.js +0 -243
- package/dist/ChargeCardStatementsPage-XG5PEVHr.cjs +0 -60
- package/dist/ChargeCardUtils-B7ldAe9o.js +0 -102
- package/dist/ChargeCardUtils-CxXtoOIy.cjs +0 -1
- package/dist/ChaseOverlay-0GOxKqW0.cjs +0 -170
- package/dist/ChaseOverlay-TweXskdx.js +0 -402
- package/dist/CheckDepositDrawerPage-BZ3X_Lix.js +0 -726
- package/dist/CheckDepositDrawerPage-BqY7mK6g.cjs +0 -206
- package/dist/CollapsableReportTable-4z3NZPAe.cjs +0 -2932
- package/dist/CollapsableReportTable-DfogYZH-.js +0 -11743
- package/dist/CompanyOfficerDetailsSection-De-euidt.js +0 -1633
- package/dist/CompanyOfficerDetailsSection-GdzFPyiI.cjs +0 -260
- package/dist/CompanyPassportCard-CjM85jLv.cjs +0 -42
- package/dist/CompanyPassportCard-D0nTW-X4.js +0 -146
- package/dist/CompanyPassportPage-BsQZvnYb.js +0 -2160
- package/dist/CompanyPassportPage-oaQc_5E5.cjs +0 -574
- package/dist/CompleteProfile-B3psSTNO.cjs +0 -52
- package/dist/CompleteProfile-DIPF4P0L.js +0 -301
- package/dist/ConfettiBurst-DcW-EmKh.cjs +0 -1
- package/dist/ConfettiBurst-OcYZ4SJA.js +0 -37
- package/dist/CreateOrEditVendorPage-Cxf0NQd5.js +0 -755
- package/dist/CreateOrEditVendorPage-Dd4kb4Rd.cjs +0 -281
- package/dist/CreditCardPaymentDrawerPage-Bye-3vMx.js +0 -1171
- package/dist/CreditCardPaymentDrawerPage-COwGq5tj.cjs +0 -224
- package/dist/CreditCardPaymentPlgSection-CXym2vxB.js +0 -196
- package/dist/CreditCardPaymentPlgSection-DEOQjE66.cjs +0 -78
- package/dist/CurrencySelectField-BUdJQbZL.cjs +0 -139
- package/dist/CurrencySelectField-BYmmIwcR.js +0 -348
- package/dist/CustomerOnboardingActivationPage-91XhzwSp.cjs +0 -88
- package/dist/CustomerOnboardingActivationPage-ChoztYoE.js +0 -143
- package/dist/CustomerOnboardingContainerPage-D9LXNWCM.js +0 -7
- package/dist/CustomerOnboardingContainerPage-mZdCGiH9.cjs +0 -1
- package/dist/CustomerOnboardingDetailPageSkeleton-Bo5hs8Pp.js +0 -434
- package/dist/CustomerOnboardingDetailPageSkeleton-CLFT9i-U.cjs +0 -162
- package/dist/CustomerOnboardingNoStepsPage-BkvAan59.cjs +0 -66
- package/dist/CustomerOnboardingNoStepsPage-CnA2qKHQ.js +0 -425
- package/dist/CustomerOnboardingPage-CQoIB32r.cjs +0 -107
- package/dist/CustomerOnboardingPage-DwPqUKDV.js +0 -1060
- package/dist/CustomerOnboardingProductSuitePage-D4uIRarg.js +0 -349
- package/dist/CustomerOnboardingProductSuitePage-frMDfQ2r.cjs +0 -202
- package/dist/Dashboard-Cal_467r.cjs +0 -1551
- package/dist/Dashboard-D7SZNoMp.js +0 -5531
- package/dist/DashboardReportPage-CddzCQCz.js +0 -2536
- package/dist/DashboardReportPage-Sq5HWDCW.cjs +0 -371
- package/dist/DashboardSidebarBackgroundAnimation-BuErnQdn.cjs +0 -12
- package/dist/DashboardSidebarBackgroundAnimation-bFC40zc2.js +0 -50
- package/dist/DepositAccTransactionItem-C4qoDnns.js +0 -112
- package/dist/DepositAccTransactionItem-CnL9cWW1.cjs +0 -76
- package/dist/DepositAccTransactionListPage-bouy9xde.cjs +0 -66
- package/dist/DepositAccTransactionListPage-oYT-_nWU.js +0 -152
- package/dist/DomesticWireDetailsPage-B9YjzCjB.cjs +0 -21
- package/dist/DomesticWireDetailsPage-BYH3PR_o.js +0 -189
- package/dist/DownloadOverlay-C8aqYK8o.cjs +0 -439
- package/dist/DownloadOverlay-Qx87ixVF.js +0 -2148
- package/dist/DrawerPage-ecLd2JyS.js +0 -208
- package/dist/DrawerPage-q1ZXjzl9.cjs +0 -118
- package/dist/EditPeoplePage-BfuLiVBW.cjs +0 -55
- package/dist/EditPeoplePage-C7rWpaD2.js +0 -392
- package/dist/EditReimbursementDetailPage-C_ks_faJ.js +0 -4461
- package/dist/EditReimbursementDetailPage-CxypbQH0.cjs +0 -865
- package/dist/EmptySearchResults-BlmQ7d2B.js +0 -70
- package/dist/EmptySearchResults-Da-c3f14.cjs +0 -46
- package/dist/EntityDetailPage-iPy6ezXH.js +0 -82
- package/dist/EntityDetailPage-rlRqb4pf.cjs +0 -18
- package/dist/EntitySummarySection-BCaKdVxb.cjs +0 -149
- package/dist/EntitySummarySection-BoqJImmB.js +0 -530
- package/dist/ExpenseAutomationOverviewPage-B1OYpzY7.cjs +0 -241
- package/dist/ExpenseAutomationOverviewPage-BPewOpI3.js +0 -735
- package/dist/ExpenseAutomationPage-BLHnlyV2.js +0 -11496
- package/dist/ExpenseAutomationPage-DTEhNF1A.cjs +0 -1650
- package/dist/ExpressPayPage-BJ5T-38h.js +0 -1136
- package/dist/ExpressPayPage-EGcN4OmO.cjs +0 -168
- package/dist/FeaturePreviewPage-DKd18ogL.js +0 -114
- package/dist/FeaturePreviewPage-HoUXRLZr.cjs +0 -11
- package/dist/FollowStepsSection-AY-suSQO.cjs +0 -390
- package/dist/FollowStepsSection-Bbllt6WO.js +0 -1313
- package/dist/GlobalReviewListPage-DTiC_4mV.js +0 -1674
- package/dist/GlobalReviewListPage-RnRNAH95.cjs +0 -291
- package/dist/HelpButton-C-b2eT2i.cjs +0 -28
- package/dist/HelpButton-ClJElDJA.js +0 -81
- package/dist/InformationCardStack-B3I0qZUF.js +0 -219
- package/dist/InformationCardStack-Dt5a-XPn.cjs +0 -31
- package/dist/InsightsCardStack-CVsLW213.js +0 -305
- package/dist/InsightsCardStack-rreGlnk5.cjs +0 -79
- package/dist/InsightsSection-R-03Cf8d.js +0 -97
- package/dist/InsightsSection-WxhrcnGc.cjs +0 -27
- package/dist/IntegrationsSettingsPage-Bkh-zyo7.cjs +0 -57
- package/dist/IntegrationsSettingsPage-f6ogmSrg.js +0 -137
- package/dist/InternationalWireSwiftDetailsPage-CDDL4rbS.cjs +0 -171
- package/dist/InternationalWireSwiftDetailsPage-FYZN26zS.js +0 -753
- package/dist/InternationalWireVerificationPage-B9XqLIqk.js +0 -877
- package/dist/InternationalWireVerificationPage-goNgxbch.cjs +0 -292
- package/dist/InviteFormPage-CLQD2jpu.js +0 -873
- package/dist/InviteFormPage-Dr4ENJuC.cjs +0 -312
- package/dist/InvitePageListView-Dx4AxgSo.cjs +0 -739
- package/dist/InvitePageListView-X_Fo0MdM.js +0 -1764
- package/dist/InvitePeoplePage-C0f3G2PD.js +0 -286
- package/dist/InvitePeoplePage-V76fT9kF.cjs +0 -12
- package/dist/InvoiceUploadSection-CW4c26gu.js +0 -465
- package/dist/InvoiceUploadSection-DAB_VhzO.cjs +0 -140
- package/dist/IssueChargeCardPage-CECzDMjH.cjs +0 -532
- package/dist/IssueChargeCardPage-DM-mzpvJ.js +0 -2875
- package/dist/LabeledAddressValue-CO2Whhy6.js +0 -115
- package/dist/LabeledAddressValue-Ck1cnGhm.cjs +0 -49
- package/dist/LabeledAddressValueField-BhoJ1V6s.js +0 -130
- package/dist/LabeledAddressValueField-C7KK99Gt.cjs +0 -45
- package/dist/LabeledControlledCheckBoxField-CsMN2ZsD.js +0 -73
- package/dist/LabeledControlledCheckBoxField-Dm7g9JIZ.cjs +0 -16
- package/dist/LabeledCreatableSingleSelectField-AG0St7mA.cjs +0 -204
- package/dist/LabeledCreatableSingleSelectField-cwNchJ6H.js +0 -515
- package/dist/LabeledDocumentField-DzileBnI.js +0 -147
- package/dist/LabeledDocumentField-smZ3A_6Q.cjs +0 -41
- package/dist/LabeledDropDownFormattedTextField-B4d1us8-.cjs +0 -59
- package/dist/LabeledDropDownFormattedTextField-BB2sLc7u.js +0 -163
- package/dist/LabeledEmailInputField-DjqipTA3.js +0 -425
- package/dist/LabeledEmailInputField-DzpP-VPa.cjs +0 -182
- package/dist/LabeledItemWithButton-DBNiVMlv.js +0 -74
- package/dist/LabeledItemWithButton-d1BqLq6U.cjs +0 -21
- package/dist/LabeledNameField-5qm02Mj0.js +0 -293
- package/dist/LabeledNameField-B5xdGBu2.cjs +0 -141
- package/dist/LabeledSingleSelectField-BRwGz6CX.js +0 -372
- package/dist/LabeledSingleSelectField-Cieet4X1.cjs +0 -136
- package/dist/LabeledSingleSelectWithoutClearableField-BQ0xdMSy.js +0 -103
- package/dist/LabeledSingleSelectWithoutClearableField-YEQr5SSA.cjs +0 -38
- package/dist/LabeledText-BCFdu4GK.cjs +0 -42
- package/dist/LabeledText-DKVgKnFt.js +0 -103
- package/dist/LabeledUserSingleSelectWithSubtitlesField-B6A5kSoh.cjs +0 -229
- package/dist/LabeledUserSingleSelectWithSubtitlesField-Dc6DHwjA.js +0 -572
- package/dist/LabeledZeniRolesDropDownField-ChRMn9AT.js +0 -975
- package/dist/LabeledZeniRolesDropDownField-l5XZR19p.cjs +0 -297
- package/dist/LinkJETransactionPage-1K7azPFt.cjs +0 -98
- package/dist/LinkJETransactionPage-Dz_BLuOI.js +0 -406
- package/dist/LockCardPage-CaWSHNJz.js +0 -1894
- package/dist/LockCardPage-DdIjnuak.cjs +0 -574
- package/dist/LowBalancePopup-DKrbQ-LP.cjs +0 -34
- package/dist/LowBalancePopup-DUMp0PeB.js +0 -219
- package/dist/MagicLinkACHDetailsPage-BQYH-2uB.js +0 -39
- package/dist/MagicLinkACHDetailsPage-D1S86wYN.cjs +0 -1
- package/dist/MagicLinkDomesticWireDetailsPage-BQZs2U4e.js +0 -44
- package/dist/MagicLinkDomesticWireDetailsPage-BoKNHgxz.cjs +0 -1
- package/dist/MagicLinkInternationalWireDetailsPage-D2J_ZafS.cjs +0 -1
- package/dist/MagicLinkInternationalWireDetailsPage-xjUw_Mrv.js +0 -43
- package/dist/MagicLinkSuccessPage-CA5YiSs5.js +0 -59
- package/dist/MagicLinkSuccessPage-CMGizr7U.cjs +0 -31
- package/dist/MagicLinkTitleSection-B09IFQSa.cjs +0 -17
- package/dist/MagicLinkTitleSection-Bx_yXCpB.js +0 -40
- package/dist/MailingDetailsSection-mue8hKwm.cjs +0 -21
- package/dist/MailingDetailsSection-yoJumjk_.js +0 -74
- package/dist/MatchingOperatorDropdown-CS2DQYX2.js +0 -572
- package/dist/MatchingOperatorDropdown-Crewo-w1.cjs +0 -130
- package/dist/MeetingCalenderPopup-BR8Y5-_Y.cjs +0 -26
- package/dist/MeetingCalenderPopup-BsJhQ5or.js +0 -60
- package/dist/Menu-B2v2YMUc.js +0 -110
- package/dist/Menu-BePewOz-.cjs +0 -17
- package/dist/MoreMenuButton-BMIbUcOc.js +0 -569
- package/dist/MoreMenuButton-D3NlL0Bd.cjs +0 -167
- package/dist/MyBankConnectionsSettingsPage-BOvR8KTa.js +0 -297
- package/dist/MyBankConnectionsSettingsPage-DFww-5SU.cjs +0 -110
- package/dist/MyPendingActivationChargeCardListPage-DmQ6JnI0.js +0 -168
- package/dist/MyPendingActivationChargeCardListPage-RiPPTzqU.cjs +0 -6
- package/dist/MyProfileSettingsPage-6amnCapg.js +0 -641
- package/dist/MyProfileSettingsPage-BJwemoZ8.cjs +0 -85
- package/dist/NavBarWithPicker-CN1Ys9DY.cjs +0 -30
- package/dist/NavBarWithPicker-CX7x_lt2.js +0 -106
- package/dist/NavigationArrow-B7f2rdDx.js +0 -88
- package/dist/NavigationArrow-C78zOj7t.cjs +0 -47
- package/dist/NavigationDots-Bya5VlpL.cjs +0 -15
- package/dist/NavigationDots-CxaOHq97.js +0 -44
- package/dist/NewGlobalMerchantPage-B1vPSWOv.js +0 -543
- package/dist/NewGlobalMerchantPage-C-dVKgTu.cjs +0 -160
- package/dist/NoDataChart-CPk9D-Ke.js +0 -58
- package/dist/NoDataChart-DogAugM-.cjs +0 -26
- package/dist/NoDataTable-B6hgdvZp.js +0 -27
- package/dist/NoDataTable-DhORx-er.cjs +0 -8
- package/dist/NotFoundPage-C71f8L2b.js +0 -71
- package/dist/NotFoundPage-jU7_BM02.cjs +0 -46
- package/dist/NotificationSettingsPage-8rUDFukk.js +0 -541
- package/dist/NotificationSettingsPage-_aMMmvPs.cjs +0 -163
- package/dist/NotificationsListConfig-ZN6eG4nj.js +0 -10
- package/dist/NotificationsListConfig-oR3DmiL8.cjs +0 -1
- package/dist/NotificationsPage-DFwkHOgP.cjs +0 -685
- package/dist/NotificationsPage-DdqHtk6X.js +0 -2664
- package/dist/OpExByVendorPage-Cu3gwevh.cjs +0 -100
- package/dist/OpExByVendorPage-DlD_cLpL.js +0 -1057
- package/dist/PandLWithForecastPage-BmRi4-IT.js +0 -563
- package/dist/PandLWithForecastPage-CMi_uEm4.cjs +0 -107
- package/dist/PaymentAccountSetupBillingAddressSection-BowS9RbN.cjs +0 -106
- package/dist/PaymentAccountSetupBillingAddressSection-_BcMoPZE.js +0 -623
- package/dist/PeoplePage-B5bGfAwJ.js +0 -1994
- package/dist/PeoplePage-DNYlVcp7.cjs +0 -675
- package/dist/PortfolioAllocationFormPage-B2eqiLH7.js +0 -440
- package/dist/PortfolioAllocationFormPage-DbYj665z.cjs +0 -207
- package/dist/PortfolioDetails-CD3PgBap.js +0 -653
- package/dist/PortfolioDetails-Nt_aJEpZ.cjs +0 -218
- package/dist/ProductsCarousel-2P6_hs62.js +0 -309
- package/dist/ProductsCarousel-CJEwFTY_.cjs +0 -142
- package/dist/PromoBaseCards-ByToaAiv.js +0 -356
- package/dist/PromoBaseCards-CBajy7Qh.cjs +0 -218
- package/dist/QBOConnectionDialog-Ci2TqUw3.cjs +0 -51
- package/dist/QBOConnectionDialog-CkKgmv5k.js +0 -115
- package/dist/QBOSetupSection-BNp3JAZ-.cjs +0 -79
- package/dist/QBOSetupSection-Dkp7fd6G.js +0 -167
- package/dist/ReimbursementApprovalRuleDetailPage-BHOTwZRD.cjs +0 -26
- package/dist/ReimbursementApprovalRuleDetailPage-C3GV4joc.js +0 -247
- package/dist/ReimbursementApprovalRulesPage-CGhlng5C.js +0 -410
- package/dist/ReimbursementApprovalRulesPage-ClcjqS8N.cjs +0 -237
- package/dist/ReimbursementDetailPage-Bs5dFFNQ.js +0 -1511
- package/dist/ReimbursementDetailPage-CH3kDvgN.cjs +0 -314
- package/dist/ReimbursementPromoPage-C1bkbEQ4.js +0 -364
- package/dist/ReimbursementPromoPage-D5_pT2VK.cjs +0 -84
- package/dist/ReimbursementSetUpPage-Ch1OG5TE.cjs +0 -140
- package/dist/ReimbursementSetUpPage-wU3mAcAs.js +0 -666
- package/dist/ReimbursementsBulkReviewDrawerPage-CDSp05zr.js +0 -204
- package/dist/ReimbursementsBulkReviewDrawerPage-D4YRYL_2.cjs +0 -1
- package/dist/ReloadCard-CU92RBtW.js +0 -137
- package/dist/ReloadCard-LHG6PzS_.cjs +0 -26
- package/dist/ReloadContainer-B9JtpJEN.cjs +0 -596
- package/dist/ReloadContainer-q5iLh503.js +0 -2144
- package/dist/ReportTableViewSelector-9FwQz4HU.js +0 -679
- package/dist/ReportTableViewSelector-DwV-P5Ny.cjs +0 -150
- package/dist/ReportsPage-CoILNbTA.js +0 -1315
- package/dist/ReportsPage-DkojLE2Q.cjs +0 -121
- package/dist/RevenueChart-Bt5GyRRZ.js +0 -2239
- package/dist/RevenueChart-PtI6xVfZ.cjs +0 -280
- package/dist/ReviewDetailsPage-Bt-TM1MQ.js +0 -1073
- package/dist/ReviewDetailsPage-CE2QD0fW.cjs +0 -290
- package/dist/ReviewOverlay-BulfEI4l.js +0 -299
- package/dist/ReviewOverlay-TaGscRCF.cjs +0 -152
- package/dist/RoleWithToolTip-CxSZI2zj.cjs +0 -22
- package/dist/RoleWithToolTip-CzoMYPtl.js +0 -72
- package/dist/ScheduleDetailsFixedAssetsPage-CXur6QTu.cjs +0 -37
- package/dist/ScheduleDetailsFixedAssetsPage-kLC3aKFl.js +0 -806
- package/dist/ScheduleDetailsPage-B2dWm2LZ.js +0 -726
- package/dist/ScheduleDetailsPage-CsDwRQDa.cjs +0 -37
- package/dist/ScheduleSequenceTable-Cxly5KiS.cjs +0 -324
- package/dist/ScheduleSequenceTable-qSk-rn8y.js +0 -1261
- package/dist/SetUpAccountSection-BMN-vRnv.js +0 -1470
- package/dist/SetUpAccountSection-BdvrSCbE.cjs +0 -378
- package/dist/SetUpDefaultSection-DDZ8ONLb.js +0 -537
- package/dist/SetUpDefaultSection-DzxLi-VE.cjs +0 -187
- package/dist/SignIn-BHNLT0qA.js +0 -1075
- package/dist/SignIn-Cbr_6_UA.cjs +0 -448
- package/dist/SpendManagementListViewPage-Ckefvub1.js +0 -627
- package/dist/SpendManagementListViewPage-DH5mofiJ.cjs +0 -122
- package/dist/SpendManagementPerTabPage-C39TVuBp.cjs +0 -754
- package/dist/SpendManagementPerTabPage-TBb-I5tu.js +0 -2735
- package/dist/SpendManagementSection-B0C4tQ8W.cjs +0 -230
- package/dist/SpendManagementSection-Dr8BR9Jk.js +0 -1043
- package/dist/SpendMgmtSetupAccountSection-D2XtVRok.cjs +0 -206
- package/dist/SpendMgmtSetupAccountSection-DQ1xajyl.js +0 -875
- package/dist/StatementItem-BD2Z11GQ.js +0 -81
- package/dist/StatementItem-DL8ujs-m.cjs +0 -31
- package/dist/StatementsPage-CPVb1E2H.cjs +0 -58
- package/dist/StatementsPage-CyTpWS2V.js +0 -130
- package/dist/StatusSwitcher-CK4EHYaT.js +0 -319
- package/dist/StatusSwitcher-CtDYKfG6.cjs +0 -120
- package/dist/SubTabSwitcher-BxYpbnXf.cjs +0 -58
- package/dist/SubTabSwitcher-Cg9Om7Rz.js +0 -113
- package/dist/SuccessAnimation-Cpvi_EKK.js +0 -52
- package/dist/SuccessAnimation-O12_xleb.cjs +0 -13
- package/dist/SummaryCard-Dj-CG0HL.cjs +0 -1
- package/dist/SummaryCard-kYo7obVe.js +0 -25
- package/dist/TaskDetailPage-CNHhvovG.cjs +0 -775
- package/dist/TaskDetailPage-DiH5pxHu.js +0 -2533
- package/dist/TaskListRow-BngYsFDs.cjs +0 -556
- package/dist/TaskListRow-CjxiDmb7.js +0 -1950
- package/dist/TaskManagementPage-DHVX61t1.cjs +0 -508
- package/dist/TaskManagementPage-WJXKYMGa.js +0 -1935
- package/dist/TimeRangeSwitcher-BrOydOhE.cjs +0 -64
- package/dist/TimeRangeSwitcher-CWItlOkP.js +0 -265
- package/dist/TimeframeSwitcher-Dx0OFpfO.cjs +0 -31
- package/dist/TimeframeSwitcher-DyymROQ3.js +0 -103
- package/dist/TimeframeSwitcherWithToggle-B66AxXnA.cjs +0 -31
- package/dist/TimeframeSwitcherWithToggle-CLJROV-M.js +0 -157
- package/dist/TopExCard-QZWKkb5h.cjs +0 -38
- package/dist/TopExCard-pth8JBrB.js +0 -568
- package/dist/TopExDetailPage-BxFlS-np.cjs +0 -132
- package/dist/TopExDetailPage-CXyQ5zdf.js +0 -318
- package/dist/TransactionDetailPage-BQuRMqqK.cjs +0 -912
- package/dist/TransactionDetailPage-BRdUEvDb.js +0 -5238
- package/dist/TransactionList-BAW-a6bl.cjs +0 -147
- package/dist/TransactionList-BkvKH115.js +0 -558
- package/dist/TransactionListBig-DNtZdBg9.cjs +0 -284
- package/dist/TransactionListBig-b-vDRfes.js +0 -658
- package/dist/TransactionListPage-94VX3Gqt.cjs +0 -35
- package/dist/TransactionListPage-ChnRnP-I.js +0 -144
- package/dist/TransactionVendorDetailPage-BI-zSTuo.cjs +0 -80
- package/dist/TransactionVendorDetailPage-tzYG-Kog.js +0 -425
- package/dist/TransferDrawerPage-B0HNAGQC.js +0 -1435
- package/dist/TransferDrawerPage-z9Yaickj.cjs +0 -362
- package/dist/TreasuryOverviewPage-CH2EKDNY.js +0 -1890
- package/dist/TreasuryOverviewPage-m5cgZxnR.cjs +0 -708
- package/dist/TreasuryPromoPage-Csn6dSvK.js +0 -1122
- package/dist/TreasuryPromoPage-DQNNUV_H.cjs +0 -505
- package/dist/TreasurySetupPage-26frypq2.js +0 -683
- package/dist/TreasurySetupPage-BD9bFSlU.cjs +0 -144
- package/dist/TreasuryStatementsPage-BMBJ9v7N.js +0 -131
- package/dist/TreasuryStatementsPage-D-4qB1hJ.cjs +0 -58
- package/dist/TreasuryTaxLetterPage-RcPkmavx.js +0 -131
- package/dist/TreasuryTaxLetterPage-kA2YiBIl.cjs +0 -58
- package/dist/TreasuryTransferOrReviewPage-CoWEQCdf.cjs +0 -576
- package/dist/TreasuryTransferOrReviewPage-gMSSRTCk.js +0 -1938
- package/dist/TrendChart-ChmKe2Fp.js +0 -333
- package/dist/TrendChart-Dhnw82A6.cjs +0 -16
- package/dist/TrendWithTransactions-B3B_eDUt.js +0 -346
- package/dist/TrendWithTransactions-leZghp80.cjs +0 -116
- package/dist/UncategorizedAccountsMappingPage-BWczhaOh.js +0 -1160
- package/dist/UncategorizedAccountsMappingPage-CwmEzKX6.cjs +0 -244
- package/dist/UnitIntegrationPage-Kc_5mNzw.cjs +0 -67
- package/dist/UnitIntegrationPage-M4kHuGSH.js +0 -405
- package/dist/UploadAdditionalDocumentOverlay-2uoTgADE.js +0 -211
- package/dist/UploadAdditionalDocumentOverlay-B6gKn2kD.cjs +0 -38
- package/dist/Vendor2FAPopup-NCEz2T_a.js +0 -69
- package/dist/Vendor2FAPopup-YFGQSE1I.cjs +0 -1
- package/dist/VendorACHDetailsPage-CG_WD6Wr.js +0 -43
- package/dist/VendorACHDetailsPage-RLzBL72-.cjs +0 -1
- package/dist/VendorDetailPage-DhO-aBMf.cjs +0 -257
- package/dist/VendorDetailPage-_7-tkeNh.js +0 -1236
- package/dist/VendorDomesticWireDetailsPage-BXYjMTrZ.js +0 -53
- package/dist/VendorDomesticWireDetailsPage-C35cHwMo.cjs +0 -1
- package/dist/VendorFiling1099EditablePage-BxEDLwZT.js +0 -842
- package/dist/VendorFiling1099EditablePage-C93nbZCn.cjs +0 -175
- package/dist/VendorFirstReviewPage-BuvRAFu9.cjs +0 -730
- package/dist/VendorFirstReviewPage-LTyO3vzu.js +0 -2748
- package/dist/VendorInternationalWireDetailsPage-DiemzCFP.cjs +0 -152
- package/dist/VendorInternationalWireDetailsPage-ibfkNbKt.js +0 -968
- package/dist/VendorInternationalWireSwiftDetailsPage-BK37dGR_.js +0 -52
- package/dist/VendorInternationalWireSwiftDetailsPage-CsKTp2QG.cjs +0 -1
- package/dist/VendorsAccountsSection-D5NZABRE.js +0 -279
- package/dist/VendorsAccountsSection-ncl8yojX.cjs +0 -68
- package/dist/VerifyDevice-BB8epZF9.js +0 -298
- package/dist/VerifyDevice-CxZIkNUh.cjs +0 -112
- package/dist/VideoPlayer-BhhGFkQy.cjs +0 -77
- package/dist/VideoPlayer-CkjhWG7O.js +0 -169
- package/dist/VideoPopup-C8uSuwl5.js +0 -60
- package/dist/VideoPopup-NuhTUIGZ.cjs +0 -31
- package/dist/WarningsDrawerPage-C2hft8DH.js +0 -228
- package/dist/WarningsDrawerPage-COYKV1Ug.cjs +0 -92
- package/dist/ZeniAccountDetailPage-B_rK1Wp5.js +0 -907
- package/dist/ZeniAccountDetailPage-xvo0zYPV.cjs +0 -300
- package/dist/ZeniAccountListViewPage-B0Xlhzfr.cjs +0 -441
- package/dist/ZeniAccountListViewPage-Du7vYtQB.js +0 -1078
- package/dist/ZeniAccountNavBarPieces-DcW6WtPy.cjs +0 -14
- package/dist/ZeniAccountNavBarPieces-fxx1McpI.js +0 -89
- package/dist/ZeniAccountPromoPage-BXfQGIcj.js +0 -523
- package/dist/ZeniAccountPromoPage-Cm-GmpuB.cjs +0 -184
- package/dist/ZeniAccountSetupPage-CeUExEMH.js +0 -312
- package/dist/ZeniAccountSetupPage-Dnr9a9Yu.cjs +0 -36
- package/dist/ZeniAvatar-3jNeOB9H.cjs +0 -13
- package/dist/ZeniAvatar-jam-I3Ng.js +0 -34
- package/dist/ZeniCopyright-Bp7W5xxE.cjs +0 -1
- package/dist/ZeniCopyright-bbS23XIr.js +0 -9
- package/dist/ZeniDatePicker-DcKBPwg8.cjs +0 -187
- package/dist/ZeniDatePicker-Dw5tQytS.js +0 -386
- package/dist/ZeniTransferAmountSlider-BdwhMN4m.js +0 -215
- package/dist/ZeniTransferAmountSlider-Bput3yg7.cjs +0 -63
- package/dist/analyticsHelper-B3YoCJXa.cjs +0 -1
- package/dist/analyticsHelper-DQXr_0N3.js +0 -65
- package/dist/calculateSize-VAChmt-T.js +0 -22
- package/dist/calculateSize-noA2g7kO.cjs +0 -1
- package/dist/chartTypes-BHFhETDi.js +0 -47
- package/dist/chartTypes-zKHv-TnX.cjs +0 -1
- package/dist/common-C_-ucD6S.cjs +0 -1
- package/dist/common-DlMquC5r.js +0 -22
- package/dist/commonDimensions-BJ4Cka81.cjs +0 -1
- package/dist/commonDimensions-XntDJCoa.js +0 -13
- package/dist/detailCommon-pEIKIa_l.js +0 -124
- package/dist/detailCommon-v7SJ_ZOV.cjs +0 -38
- package/dist/downloadPdf-CbOTo5Lc.js +0 -32
- package/dist/downloadPdf-Dow84b8r.cjs +0 -1
- package/dist/index-D4PXma22.cjs +0 -19239
- package/dist/index-oeut1pIL.js +0 -85948
- package/dist/mapLoadingInProgressToTreeNode-CXI41pov.cjs +0 -1
- package/dist/mapLoadingInProgressToTreeNode-D6877c76.js +0 -25
- package/dist/mapSectionWithAcOnlyToTreeNode-B0IMbpHK.js +0 -388
- package/dist/mapSectionWithAcOnlyToTreeNode-CljJuOKo.cjs +0 -1
- package/dist/mapSpacerToTreeNode-BGyQBtrT.cjs +0 -1
- package/dist/mapSpacerToTreeNode-uHEw-f6A.js +0 -25
- package/dist/mapTimeframeBalancesToTreeNode-B119U8CN.js +0 -24
- package/dist/mapTimeframeBalancesToTreeNode-CqgMxgbC.cjs +0 -1
- package/dist/mapTimeframeBalancesToTreeNode-D6Ky7vGN.js +0 -24
- package/dist/mapTimeframeBalancesToTreeNode-DoLu9zgD.cjs +0 -1
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-BQGJEM9N.cjs +0 -1
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-Dgj5Xl6i.js +0 -32
- package/dist/sectionColor-BWV5mTz-.cjs +0 -1
- package/dist/sectionColor-D5OibLm0.js +0 -32
- package/dist/toCOABalancesWithID-7dhwT5Wq.js +0 -8
- package/dist/toCOABalancesWithID-DdN_K6pD.cjs +0 -1
- package/dist/toChartData-CKnrMCPb.js +0 -76
- package/dist/toChartData-D1Nchmtk.cjs +0 -1
- package/dist/treasuryColorHelper-AuK0MhX9.js +0 -60
- package/dist/treasuryColorHelper-dWB4LxUX.cjs +0 -1
- package/dist/uploadAttachment-COYoBDpI.cjs +0 -286
- package/dist/uploadAttachment-Df6yugWD.js +0 -952
- package/dist/zeniDatePicker.helpers-BsCB9n5f.cjs +0 -1
- package/dist/zeniDatePicker.helpers-C5bwMIGa.js +0 -14
|
@@ -1,1650 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./vendor-.pnpm-DHyNpoQL.cjs"),m=require("react"),i=require("@emotion/styled"),V=require("@zeniai/client-epic-state"),t=require("./index-D4PXma22.cjs"),Ne=require("@emotion/react"),yo=require("./BusyIndication-oEXavOiI.cjs"),So=require("./common-C_-ucD6S.cjs"),pe=require("./ReloadContainer-B9JtpJEN.cjs"),Ae=require("./CollapsableReportTable-4z3NZPAe.cjs"),Vs=require("./mapTimeframeBalancesToTreeNode-CqgMxgbC.cjs"),Pn=require("./mapLoadingInProgressToTreeNode-CXI41pov.cjs"),Ro=require("./VendorsAccountsSection-ncl8yojX.cjs"),Co=require("./SuccessAnimation-O12_xleb.cjs"),zt=require("./uploadAttachment-COYoBDpI.cjs");function Eo(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const a=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(s,l,a.get?a:{enumerable:!0,get:()=>e[l]})}}return s.default=e,Object.freeze(s)}const k=Eo(m),{common:{navBar:{back:vo},texts:{refresh:bo,close:wo,copy:Io,copied:ko,open:To}},expenseAutomation:{common:{numbers:{maximumCount:$o}}}}=t.appLocale.getLocalizedStrings(),Lo=i(t.SvgComment)`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: ${t.Space.sp4};
|
|
4
|
-
height: ${t.Space.sp4};
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
`,Ao=i.div`
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
position: relative;
|
|
12
|
-
cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
|
|
13
|
-
color: ${e=>e.theme.colors.hero};
|
|
14
|
-
&:hover {
|
|
15
|
-
color: ${e=>e.theme.colors.primary};
|
|
16
|
-
}
|
|
17
|
-
`,Oo=i.div`
|
|
18
|
-
width: 100%;
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-shrink: 0;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
background: ${e=>e.theme.colors.grey4};
|
|
23
|
-
box-sizing: border-box;
|
|
24
|
-
position: sticky;
|
|
25
|
-
top: 0;
|
|
26
|
-
z-index: 6;
|
|
27
|
-
`,Do=i.div`
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
align-items: center;
|
|
31
|
-
padding-left: ${e=>zn.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
|
|
32
|
-
padding-right: ${e=>zn.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
|
|
33
|
-
`,_o=i.div`
|
|
34
|
-
display: flex;
|
|
35
|
-
align-items: baseline;
|
|
36
|
-
justify-content: end;
|
|
37
|
-
gap: ${t.Space.sp4};
|
|
38
|
-
flex: 1 1 ${t.Space.sp0};
|
|
39
|
-
`,Mo=i.div`
|
|
40
|
-
display: flex;
|
|
41
|
-
align-items: baseline;
|
|
42
|
-
justify-content: start;
|
|
43
|
-
gap: ${t.Space.sp4};
|
|
44
|
-
flex: 1 1 ${t.Space.sp0};
|
|
45
|
-
`,Bo=i(t.SvgCopy)`
|
|
46
|
-
width: ${t.Space.sp3};
|
|
47
|
-
height: ${t.Space.sp3};
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
margin-left: ${t.Space.sp1};
|
|
50
|
-
color: inherit;
|
|
51
|
-
`,No=i(t.SvgSuccessRound)`
|
|
52
|
-
width: ${t.Space.sp3};
|
|
53
|
-
height: ${t.Space.sp3};
|
|
54
|
-
margin-left: ${t.Space.sp1};
|
|
55
|
-
color: ${t.Colors.success};
|
|
56
|
-
`,Po=i(t.SvgClose)`
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
width: ${t.Space.sp4};
|
|
59
|
-
height: ${t.Space.sp4};
|
|
60
|
-
color: ${e=>e.theme.colors.hero};
|
|
61
|
-
&:hover {
|
|
62
|
-
color: ${e=>e.theme.colors.primary};
|
|
63
|
-
}
|
|
64
|
-
`,Fo=i(t.SvgArrowLeft)`
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
width: ${t.Space.sp4};
|
|
67
|
-
height: ${t.Space.sp4};
|
|
68
|
-
color: ${e=>e.theme.colors.hero};
|
|
69
|
-
&:hover {
|
|
70
|
-
color: ${e=>e.theme.colors.primary};
|
|
71
|
-
}
|
|
72
|
-
`,zo=i(t.SvgRefresh,{shouldForwardProp:e=>typeof e=="string"&&e!=="$spinning"})`
|
|
73
|
-
cursor: pointer;
|
|
74
|
-
width: ${t.Space.sp4};
|
|
75
|
-
height: ${t.Space.sp4};
|
|
76
|
-
color: ${e=>e.theme.colors.hero};
|
|
77
|
-
animation: ${e=>e.$spinning?Ne.css`
|
|
78
|
-
${Ho} 2s linear infinite;
|
|
79
|
-
`:"none"};
|
|
80
|
-
&:hover {
|
|
81
|
-
color: ${e=>e.theme.colors.primary};
|
|
82
|
-
}
|
|
83
|
-
`,Ho=Ne.keyframes`
|
|
84
|
-
0% {
|
|
85
|
-
transform: rotate(0deg);
|
|
86
|
-
}
|
|
87
|
-
100% {
|
|
88
|
-
transform: rotate(360deg);
|
|
89
|
-
}
|
|
90
|
-
`,Wo=i.div`
|
|
91
|
-
padding-top: ${t.Space.sp0};
|
|
92
|
-
padding-bottom: ${t.Space.sp0};
|
|
93
|
-
`,Fn=i(t.StandardRegular)`
|
|
94
|
-
color: ${e=>e.theme.colors.hero};
|
|
95
|
-
text-align: center;
|
|
96
|
-
display: flex;
|
|
97
|
-
align-items: center;
|
|
98
|
-
justify-content: center;
|
|
99
|
-
flex-direction: column;
|
|
100
|
-
padding-bottom: ${t.Space.sp4};
|
|
101
|
-
`,Vo=i.div`
|
|
102
|
-
display: flex;
|
|
103
|
-
`,qo=i.div`
|
|
104
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
105
|
-
width: 100%;
|
|
106
|
-
margin-top: -2px;
|
|
107
|
-
border-top-right-radius: ${t.Space.sp2};
|
|
108
|
-
border-top-left-radius: ${t.Space.sp2};
|
|
109
|
-
border-bottom-right-radius: ${t.Space.sp2};
|
|
110
|
-
border-bottom-left-radius: ${t.Space.sp2};
|
|
111
|
-
`,Uo=i.div`
|
|
112
|
-
display: flex;
|
|
113
|
-
height: ${t.Space.sp4};
|
|
114
|
-
`,Go=i.div`
|
|
115
|
-
text-align: center;
|
|
116
|
-
display: flex;
|
|
117
|
-
align-items: center;
|
|
118
|
-
justify-content: center;
|
|
119
|
-
flex-wrap: wrap;
|
|
120
|
-
`,Ko=i.div`
|
|
121
|
-
display: flex;
|
|
122
|
-
flex-direction: column;
|
|
123
|
-
`,Jo=i(t.SvgAiIcon)`
|
|
124
|
-
width: ${t.Space.sp3};
|
|
125
|
-
height: ${t.Space.sp3};
|
|
126
|
-
margin-right: ${t.Space.sp1};
|
|
127
|
-
path {
|
|
128
|
-
stroke-width: 2;
|
|
129
|
-
}
|
|
130
|
-
`,Ht=i.span`
|
|
131
|
-
font-weight: ${t.FontWeight.regular};
|
|
132
|
-
color: ${e=>e.theme.colors.primary};
|
|
133
|
-
`,Zo=i.span`
|
|
134
|
-
font-weight: ${t.FontWeight.medium};
|
|
135
|
-
color: ${e=>e.theme.colors.primary};
|
|
136
|
-
`,Yo=i.span`
|
|
137
|
-
color: ${e=>e.theme.colors.primary};
|
|
138
|
-
text-decoration: underline;
|
|
139
|
-
text-decoration-color: ${e=>e.theme.colors.grey2};
|
|
140
|
-
cursor: pointer;
|
|
141
|
-
display: flex;
|
|
142
|
-
align-items: center;
|
|
143
|
-
transition: text-decoration-color 0.2s;
|
|
144
|
-
.copy-icon {
|
|
145
|
-
color: ${e=>e.theme.colors.hero};
|
|
146
|
-
transition: color 0.2s;
|
|
147
|
-
}
|
|
148
|
-
&:hover {
|
|
149
|
-
.copy-icon {
|
|
150
|
-
color: ${e=>e.theme.colors.primary};
|
|
151
|
-
}
|
|
152
|
-
text-decoration-color: ${e=>e.theme.colors.primary};
|
|
153
|
-
}
|
|
154
|
-
`,zn={subSectionContainerLeftRightPadding:new t.ResponsiveSized(t.sp[3],t.sp[6],t.sp[8])},Xo=({onAllThreadsClick:e,companyId:s,companyName:l})=>{const a={application:"cockpit",companyId:s,entityId:s,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:l,url:window.location.href},{url:u,...p}=a,o={...p},{threads:c,isLoading:r}=t.useFilteredThreads(o,!1,!1),x=c.filter(d=>d.id.includes(t.NEW_THREAD_SUFFIX)===!1);return n.jsxRuntimeExports.jsxs(Ao,{isDisabled:r,onClick:e,"data-testid":t.generateDataTestId("comment-icon"),children:[n.jsxRuntimeExports.jsx(t.CommentsAndNotesCount,{count:x.length,isLoading:r}),n.jsxRuntimeExports.jsx(Lo,{})]})},Qo=({headerData:e,refreshStatus:s,searchText:l,companyName:a,companyId:u,isZeniUser:p,onAllThreadsClick:o,onClose:c,onRefresh:r,onSearchTextChanged:x})=>{const d=()=>{s!=="In-Progress"&&r()};return n.jsxRuntimeExports.jsx(_o,{children:e.rightSection.map((h,g)=>{switch(h){case"search":return n.jsxRuntimeExports.jsx(t.ListPageSearchSection,{isSearchOpen:(l.length??0)>0,searchPlaceHolder:e.searchPlaceholder,searchText:l,searchTextBoxStyle:{position:"initial",height:"fit-content"},styledSearchIconContainerStyle:{height:t.Space.sp4},searchIconMarginRight:t.Space.sp0,onSearchTextChanged:f=>{x(f)},downloadPresent:!1},g+h);case"refresh":return n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:bo,style:{marginTop:"2px"},enterDelay:600,children:n.jsxRuntimeExports.jsx(zo,{onClick:d,$spinning:s==="In-Progress","data-testid":t.generateDataTestId("refresh-icon")})},g+h);case"comment":return p===!1?null:n.jsxRuntimeExports.jsx(Xo,{companyId:u,companyName:a,onAllThreadsClick:o});case"close":default:return n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:wo,enterDelay:600,style:{marginTop:"2px"},children:n.jsxRuntimeExports.jsx(Po,{onClick:c,"data-testid":t.generateDataTestId("close-icon")})},g+h)}})})},ei=({headerData:e,onBack:s})=>n.jsxRuntimeExports.jsx(Mo,{children:e.leftSection.map((l,a)=>{switch(l){case"back":default:return n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:vo,enterDelay:600,style:{marginTop:"-14px"},children:n.jsxRuntimeExports.jsx(Fo,{onClick:s,"data-testid":t.generateDataTestId("back-button")})},a+l)}})}),Hn=({text:e,linkText:s,windowSize:l,isCopied:a,onLinkClick:u})=>{if(s==null||!s)return n.jsxRuntimeExports.jsxs(Ht,{windowSize:l,children:[e," "]});const p=e.indexOf(s);if(p===-1)return n.jsxRuntimeExports.jsxs(Ht,{windowSize:l,children:[e," "]});const o=e.substring(0,p),c=e.substring(p+s.length);return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[o?n.jsxRuntimeExports.jsxs(Ht,{windowSize:l,children:[o.trim()," "]}):null,n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"right",title:t.ZENI_EMAIL_PATTERN.test(s)?a?ko:Io:To,enterTouchDelay:600,children:n.jsxRuntimeExports.jsxs(Yo,{onClick:()=>u?.(s),"data-testid":t.generateDataTestId("pre-link"),children:[s,a?n.jsxRuntimeExports.jsx(No,{className:"success-icon"}):n.jsxRuntimeExports.jsx(Bo,{className:"copy-icon"})]})}),c?n.jsxRuntimeExports.jsxs(Ht,{windowSize:l,children:[c," "]}):null]})},Wn=({subTitles:e})=>{const s=t.useWindowSizeContext(),[,l]=t.useCopyToClipboard(),[a,u]=m.useState(!1),p=m.useRef(null),o=m.useCallback(c=>{t.ZENI_EMAIL_PATTERN.test(c)?(l(c),u(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{u(!1)},2e3)):window.open(c,"_blank","noopener,noreferrer")},[l]);return m.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]),n.jsxRuntimeExports.jsx(Ko,{children:e.map((c,r)=>n.jsxRuntimeExports.jsxs(Go,{children:[c.pre?n.jsxRuntimeExports.jsx(Hn,{text:c.pre,linkText:c.preLink,windowSize:s,isCopied:a,onLinkClick:o}):null,c.prefixIconName?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:c.prefixIconName==="zeniAIIcon"?n.jsxRuntimeExports.jsx(Jo,{}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{})}):null,c.bold?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:n.jsxRuntimeExports.jsxs(Zo,{windowSize:s,children:[c.bold," "]})}):null,c.post?n.jsxRuntimeExports.jsx(Hn,{text:c.post,linkText:c.postLink,windowSize:s,isCopied:a,onLinkClick:o}):null]},r+c.bold+c.pre+c.post))})};function ti(e){const{headerData:s,currentTab:l,completionStatus:a,onUpdateTab:u,selectedReconAccountId:p,getTabCountAndFetchState:o,reconcileDetailPageFetchState:c,forceShowSubtitle:r,currentSelectedView:x,onReconTabUpdate:d,currentRecontab:h,navBarCustomElement:g,titleStyle:f={}}=e,R=o("autoCategorized")?.count??0,y=o("review")?.count??0,v=o("reconcile")?.count??0,j=s.tabs.length>0||s.subTitle.length>0,w=x==="transaction_categorization"&&l==="autoCategorized",O=x==="reconciliation"&&h==="review"&&p!=null,$=x==="reconciliation"&&h==="reconcile"&&p!=null,b=w?R>0:O?c==="In-Progress"?!0:y>0:$?c==="In-Progress"?!0:v>0:a!=="complete",C=n.useTheme(),I=t.useWindowSizeContext();let L=[];return s.tabs.length>0&&(L=s.tabs.map(W=>({label:W.label,id:W.id,countDetails:o(W.id)}))),n.jsxRuntimeExports.jsxs(Oo,{children:[n.jsxRuntimeExports.jsx(t.NavBar,{title:s.title,subTitle:s.subText,titleTextStyles:{flex:"1 1 0px"},backgroundColor:C.colors.grey4,onBackClick:()=>null,titleStyle:f,ignoreScrollAction:x!=="month_end_insights",keepBackgroundOnScroll:x!=="month_end_insights",leftSideComponent:n.jsxRuntimeExports.jsx(ei,{...e}),rightSideComponent:n.jsxRuntimeExports.jsx(Qo,{...e}),source:"NavBarWithHeader"}),g??null,n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:j===!0,children:n.jsxRuntimeExports.jsx(Do,{windowSize:I,children:s.tabs.length>0?n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(Wo,{windowSize:I,children:n.jsxRuntimeExports.jsx(t.TabSwitcher,{allTabs:L,selectedTab:x==="transaction_categorization"?l??L[0].id:h??L[0].id,onTabChange:W=>{if(x==="transaction_categorization"){const T=V.toExpenseAutomationTransactionsTabKey(W.id);T!=null&&u(T)}else if(x==="reconciliation"){const T=V.toReconciliationTabsType(W.id);T!=null&&d(T)}},maximumCountLimit:$o})}),n.jsxRuntimeExports.jsx(qo,{windowSize:I}),n.jsxRuntimeExports.jsx(Uo,{}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:b===!0||r===!0,children:n.jsxRuntimeExports.jsx(Fn,{windowSize:I,children:s.tabs.map((W,T)=>(x==="reconciliation"?W.id===h:W.id===l)?n.jsxRuntimeExports.jsx(Vo,{children:n.jsxRuntimeExports.jsx(Wn,{subTitles:W.subTitle})},T+W.id):null)})})]}):n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:b===!0||r===!0,children:n.jsxRuntimeExports.jsx(Fn,{windowSize:I,children:n.jsxRuntimeExports.jsx(Wn,{subTitles:s.subTitle})})})})})]})}const ni=1;function si({name:e,checkBoxes:s,mode:l,isDisabled:a,style:u,labelStyle:p,labelCheckBoxStyle:o,checkBoxStyle:c,width:r,registerOptions:x,checkedIconColor:d,checkBoxIconStyle:h,checkBoxContainerStyle:g,draggable:f=!1,selectionLimit:R,infoIconContainerStyle:y,onDragStart:v,rowHeight:j=40,initialScrollOffSet:w,onScroll:O}){const $=t.useWindowSizeContext(),B=m.useRef(null),{control:b}=n.useFormContext(),C=s.find(T=>T.groupLabel),I=s.filter(T=>!T.groupLabel),L=[];for(const T of I)if(T.isException||L.push(T.value),R!=null&&L.length===R+1)break;const W=s.filter(T=>T.defaultChecked).map(T=>T.value);return n.jsxRuntimeExports.jsx(n.Controller,{control:b,name:e,rules:x,defaultValue:W,render:({field:{value:T,ref:X,onChange:_}})=>{const P=U=>{ii({event:U,value:T,allCheckBoxValues:L,groupLabelCheckBox:C,onChange:_})};return n.jsxRuntimeExports.jsxs(ri,{style:u,windowSize:$,children:[C&&n.jsxRuntimeExports.jsx(Ln,{checkBox:C,index:0,value:T,allCheckBoxValues:L,mode:l,name:e,checkBoxContainerStyle:g,checkBoxIconStyle:h,checkBoxStyle:c,labelCheckBoxStyle:o,labelStyle:p,width:r,draggable:f,groupLabelCheckBox:C,infoIconContainerStyle:y,checkedIconColor:d,isDisabled:a,selectionLimit:R,onDragStart:v,ref:X,onChangeHandler:P}),n.jsxRuntimeExports.jsx(ai,{children:n.jsxRuntimeExports.jsx(n.AutoSizer,{style:{height:"100%",width:"100%"},children:({height:U,width:K})=>n.jsxRuntimeExports.jsx(n.VariableSizeList,{ref:B,height:U,width:K,itemCount:I.length,itemSize:()=>j,estimatedItemSize:j,initialScrollOffset:w??0,onScroll:({scrollOffset:M})=>{O?.(M)},overscanCount:ni,itemKey:M=>I[M].value,itemData:{checkBoxes:I,value:T,allCheckBoxValues:L,mode:l,name:e,checkBoxContainerStyle:g,checkBoxIconStyle:h,checkBoxStyle:c,labelCheckBoxStyle:o,labelStyle:p,width:r,draggable:f,groupLabelCheckBox:C,infoIconContainerStyle:y,checkedIconColor:d,isDisabled:a,selectionLimit:R,onDragStart:v,ref:X,onChange:_,handleChangeEvent:P,rowHeight:j},children:oi})})})]})}})}const oi=({index:e,style:s,data:l})=>{const a=m.useRef(null),{checkBoxes:u,value:p,allCheckBoxValues:o,mode:c,name:r,checkBoxContainerStyle:x,checkBoxIconStyle:d,checkBoxStyle:h,labelCheckBoxStyle:g,labelStyle:f,width:R,draggable:y,groupLabelCheckBox:v,infoIconContainerStyle:j,checkedIconColor:w,isDisabled:O,selectionLimit:$,onDragStart:B,ref:b,handleChangeEvent:C}=l,I=u[e];return n.jsxRuntimeExports.jsx(mi,{style:{...s,width:"100%"},ref:a,children:n.jsxRuntimeExports.jsx(Ln,{checkBox:I,index:e,value:p,allCheckBoxValues:o,mode:c,name:r,checkBoxContainerStyle:x,checkBoxIconStyle:d,checkBoxStyle:h,labelCheckBoxStyle:g,labelStyle:f,width:R,draggable:y,groupLabelCheckBox:v,infoIconContainerStyle:j,checkedIconColor:w,isDisabled:O,selectionLimit:$,onDragStart:B,ref:b,onChangeHandler:C})})},Ln=m.forwardRef((e,s)=>{const{value:l,checkBox:a,groupLabelCheckBox:u,allCheckBoxValues:p,selectionLimit:o,mode:c,checkBoxStyle:r,labelCheckBoxStyle:x,isDisabled:d,draggable:h,checkBoxContainerStyle:g,infoIconContainerStyle:f,name:R,index:y,width:v,checkedIconColor:j,checkBoxIconStyle:w,labelStyle:O,onDragStart:$,onChangeHandler:B}=e,b=t.useWindowSizeContext(),C=T=>{typeof s=="function"?s(T):s&&(s.current=T)};let I=l.includes(a.value);const L=Array.from(new Set([...l,a.value]));u?.value===a.value&&l.length>0&&(o!=null?I=L.length===p.length||L.length===o+1:I=p.every(T=>L.includes(T)===!0));const W=()=>c==="off"||a.isException?b==="small"?{display:"none",...r}:{visibility:"hidden",...r}:a.groupLabel?p.length===1&&p[0]===u?.value?{visibility:"hidden",...x}:x:r;return n.jsxRuntimeExports.jsxs(li,{mode:c,draggable:h===!0,onDragStart:T=>{$?.(T,a.value)},style:g,isDisabled:d,isSelected:I,exceptionMode:a.exceptionMode,children:[a.prefix?n.jsxRuntimeExports.jsx(ci,{className:"prefix-box",children:a.prefix}):null,a.isException?n.jsxRuntimeExports.jsx(di,{style:f,className:"checkbox-alert",children:n.jsxRuntimeExports.jsx(t.Tooltip,{style:{padding:`12px ${t.Space.sp3}`},title:a.exceptionInfo??"",placement:"bottom-start",children:a.exceptionType==="info"?n.jsxRuntimeExports.jsx(ui,{}):n.jsxRuntimeExports.jsx(pi,{})})}):n.jsxRuntimeExports.jsx(t.StyledCheckBox,{name:`${R}.${a.value}`,checkBoxValue:a.value,value:I,checkedIconColor:j,isDisabled:d||!a.groupLabel&&!I&&o!=null&&L.length===o+1?"disabled":void 0,checkBoxStyle:W(),checkBoxIconStyle:w,ref:C,onChange:B}),typeof a.label=="string"&&a.label?n.jsxRuntimeExports.jsx(t.Label,{isDisabled:d,label:a.label,labelStyle:O,htmlFor:`${R}.${a.value}`,style:{display:"flex",flex:1,minHeight:t.Space.sp4,marginLeft:t.Space.sp2,width:v,backgroundColor:"inherit",...O}}):a.label]},`${a.value}_${y}`)});Ln.displayName="CheckBoxWithLabel";const ii=({event:e,value:s,allCheckBoxValues:l,groupLabelCheckBox:a,onChange:u})=>{const p=e.currentTarget.value,o=e.currentTarget.checked,c=a?.value,r=new Set(s);if(p===c){u(o?Array.from(new Set([c,...l])):[]);return}o?r.add(p):r.delete(p);const x=l.every(d=>r.has(d));c!=null&&(x&&!r.has(c)?r.add(c):!x&&r.has(c)&&r.delete(c)),u(Array.from(r))},ri=i.div`
|
|
155
|
-
display: flex;
|
|
156
|
-
flex-direction: column;
|
|
157
|
-
width: 100%;
|
|
158
|
-
height: 100%;
|
|
159
|
-
`,ai=i.div`
|
|
160
|
-
flex: 1;
|
|
161
|
-
overflow: hidden;
|
|
162
|
-
`,ci=i.div`
|
|
163
|
-
opacity: 0;
|
|
164
|
-
`,li=i.div`
|
|
165
|
-
display: flex;
|
|
166
|
-
align-items: center;
|
|
167
|
-
flex-direction: row;
|
|
168
|
-
width: 100%;
|
|
169
|
-
min-height: ${t.Space.sp4};
|
|
170
|
-
|
|
171
|
-
${e=>e.mode==="checked_or_hover"&&Ne.css`
|
|
172
|
-
input:not(:checked) ~ .unchecked-icon {
|
|
173
|
-
opacity: 0;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
:hover {
|
|
177
|
-
input:not(:checked) ~ .unchecked-icon,
|
|
178
|
-
.prefix-box {
|
|
179
|
-
opacity: 1;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
`};
|
|
183
|
-
|
|
184
|
-
${e=>e.mode==="hover_only"&&Ne.css`
|
|
185
|
-
input:not(:checked) ~ .unchecked-icon,
|
|
186
|
-
input:checked ~ .checked-icon {
|
|
187
|
-
opacity: 0;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
:hover {
|
|
191
|
-
input:not(:checked) ~ .unchecked-icon,
|
|
192
|
-
input:checked ~ .checked-icon,
|
|
193
|
-
.prefix-box {
|
|
194
|
-
opacity: 1;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
`};
|
|
198
|
-
|
|
199
|
-
label {
|
|
200
|
-
color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
|
|
201
|
-
${e=>e.isDisabled==="disabled"&&Ne.css`
|
|
202
|
-
color: ${e.theme.colors.grey2};
|
|
203
|
-
`};
|
|
204
|
-
cursor: ${e=>e.isDisabled==="disabled"?"not-allowed":"pointer"};
|
|
205
|
-
pointer-events: ${e=>e.isDisabled==="disabled"||e.isDisabled==="readonly"?"none":"initial"};
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.checkbox-alert {
|
|
209
|
-
opacity: 0;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
${e=>e.exceptionMode==="hover_only"&&Ne.css`
|
|
213
|
-
:hover {
|
|
214
|
-
.checkbox-alert {
|
|
215
|
-
opacity: 1;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
`}
|
|
219
|
-
|
|
220
|
-
${e=>e.exceptionMode==="checked_or_hover"&&Ne.css`
|
|
221
|
-
.checkbox-alert {
|
|
222
|
-
opacity: 1;
|
|
223
|
-
}
|
|
224
|
-
`}
|
|
225
|
-
`,di=i.div`
|
|
226
|
-
cursor: pointer;
|
|
227
|
-
`,ui=i(t.SvgInfo)`
|
|
228
|
-
height: ${t.Space.sp3};
|
|
229
|
-
width: ${t.Space.sp3};
|
|
230
|
-
color: ${e=>e.theme.colors.hero};
|
|
231
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
232
|
-
border-radius: 50%;
|
|
233
|
-
`,pi=i(t.SvgAlertRound)`
|
|
234
|
-
height: ${t.Space.sp3};
|
|
235
|
-
width: ${t.Space.sp3};
|
|
236
|
-
color: ${e=>e.theme.colors.hero};
|
|
237
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
238
|
-
border-radius: 50%;
|
|
239
|
-
`,mi=i.div`
|
|
240
|
-
width: 100%;
|
|
241
|
-
box-sizing: border-box;
|
|
242
|
-
`,xi=e=>k.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("path",{d:"M72.4185 11.061C72.4185 14.6835 75.357 17.622 78.9795 17.622C80.481 17.649 83.25 17.1 84.717 14.2515H78.912C78.912 14.2515 75.8025 13.9815 75.8025 11.142C75.8025 8.0325 78.912 8.0325 78.912 8.0325H84.798L84.1185 6.984C82.917 5.472 81.063 4.5 78.9795 4.5C75.357 4.5 72.4185 7.4385 72.4185 11.061Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),k.createElement("path",{d:"M85.4682 8.03232H78.9117C77.1944 8.03232 75.8022 9.42348 75.8022 11.1396C75.8022 12.8557 77.1944 14.2468 78.9117 14.2468H85.4682C87.1856 14.2468 88.5777 12.8557 88.5777 11.1396C88.5777 9.42348 87.1856 8.03232 85.4682 8.03232Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),k.createElement("path",{d:"M28.4263 14.2469H24.0028C22.2883 14.2469 20.8933 12.8564 20.8933 11.1374C20.8933 9.41842 22.2838 8.02792 24.0028 8.02792H28.2625C28.2625 8.02792 26.5813 10.8629 27.9763 14.2424L28.4263 14.2469Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),k.createElement("path",{d:"M53.9688 68.3098H15.3093C11.5473 68.3098 8.49634 65.2588 8.49634 61.4968C8.49634 57.7348 11.5473 54.6838 15.3093 54.6838H51.4263",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),k.createElement("path",{d:"M65.6235 45.9497L77.8365 18.1982H33.3135L15.7905 54.6572C15.7905 54.6572 37.872 54.6752 51.435 54.6842",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),k.createElement("g",{opacity:.2},k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.8128 16.0468C84.7317 18.3797 82.3687 19.998 79.6276 19.998L78.7323 20.0077L67.0499 46.8002L65.4818 47.8361C65.6694 47.9711 65.8535 48.1339 66.0367 48.296C66.4128 48.6286 66.7851 48.9578 67.1764 49.0365C67.5728 49.1158 68.0543 48.9552 68.537 48.7942C69.0956 48.6079 69.6559 48.4211 70.0879 48.6045C70.5193 48.7877 70.7584 49.309 70.996 49.8271C71.202 50.2763 71.4068 50.723 71.7349 50.9445C72.0683 51.1703 72.5689 51.1942 73.0687 51.2181C73.6349 51.2452 74.2002 51.2723 74.5204 51.5925C74.8415 51.9136 74.8691 52.4809 74.8968 53.0485C74.9211 53.5469 74.9454 54.0456 75.1684 54.378C75.3909 54.7076 75.8415 54.9157 76.2933 55.1244C76.8101 55.3631 77.3283 55.6025 77.5084 56.025C77.6876 56.4455 77.5053 56.9915 77.3211 57.5433C77.1583 58.0308 76.9941 58.5228 77.0764 58.9365C77.1553 59.3307 77.4857 59.7039 77.8189 60.0802C78.2085 60.5202 78.6019 60.9645 78.6019 61.452C78.6019 61.9403 78.2072 62.3866 77.817 62.8278L77.8169 62.8279C77.4844 63.2039 77.1551 63.5762 77.0764 63.9675C76.9971 64.3639 77.1577 64.8454 77.3187 65.3282C77.505 65.8867 77.6919 66.447 77.5084 66.879C77.3253 67.3104 76.8039 67.5495 76.2859 67.7871C75.8367 67.9931 75.3899 68.1979 75.1684 68.526C74.9454 68.8564 74.9211 69.355 74.8968 69.854C74.8691 70.4221 74.8414 70.9905 74.5204 71.3115C74.1994 71.6326 73.6321 71.6602 73.0645 71.6879C72.5661 71.7122 72.0674 71.7365 71.7349 71.9595C71.4054 72.182 71.1972 72.6326 70.9886 73.0844C70.7504 73.6 70.5116 74.117 70.0909 74.2982L69.9433 86.6701C69.9388 86.9896 69.6013 87.2011 69.3133 87.0616L63.9853 84.5191C63.8593 84.4561 63.7108 84.4606 63.5848 84.5281L59.0443 87.0031C58.7518 87.1606 58.3963 86.9491 58.3963 86.6161V73.2221C58.375 73.1765 58.3539 73.1307 58.3328 73.0849C58.1243 72.6329 57.9162 72.1818 57.5869 71.9595C57.2565 71.7365 56.7579 71.7122 56.2589 71.6879C55.6909 71.6602 55.1224 71.6325 54.8014 71.3115C54.5284 71.0386 54.4676 70.5876 54.4385 70.1098H16.2094C13.4696 70.1098 11.1069 68.4916 10.0252 66.159H5.3595C3.64217 66.159 2.25 64.7678 2.25 63.0517C2.25 61.3356 3.64217 59.9445 5.3595 59.9445H10.2772C11.4475 57.8784 13.6659 56.4838 16.2094 56.4838H16.8914L34.0978 20.2418C32.0553 19.6588 30.3782 18.0406 29.5344 16.0459L29.3264 16.0469H24.9029C23.1884 16.0469 21.7934 14.6564 21.7934 12.9374C21.7934 11.2184 23.1839 9.82792 24.9029 9.82792H29.8292C31.0005 7.76679 33.2164 6.37645 35.7571 6.37645H78.8745C79.1951 6.32719 79.5233 6.30112 79.8574 6.30002L79.8794 6.29999C82.4104 6.29999 84.6067 7.73319 85.701 9.83231H86.3681C88.0855 9.83231 89.4776 11.2235 89.4776 12.9396C89.4776 14.6557 88.0855 16.0468 86.3681 16.0468H85.8128Z",fill:"#97C3B9"})),k.createElement("path",{d:"M64.1251 65.7C67.7288 65.7 70.6501 62.7787 70.6501 59.175C70.6501 55.5713 67.7288 52.65 64.1251 52.65C60.5214 52.65 57.6001 55.5713 57.6001 59.175C57.6001 62.7787 60.5214 65.7 64.1251 65.7Z",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M61.2 59.4484L63.4903 61.65L67.5 56.7",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M33.6736 27.0088H66.7216",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M30.2854 35.8198H63.3334",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M26.8962 43.875H59.9442",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M50.27 59.202C50.27 58.2975 51.6245 57.537 51.7955 56.6865C51.971 55.8045 51.0215 54.5805 51.3635 53.775C51.7055 52.9695 53.2265 52.8345 53.7035 52.128C54.1805 51.4215 53.7485 49.9455 54.3515 49.3425C54.9545 48.7395 56.426 49.1715 57.137 48.6945C57.848 48.2175 57.992 46.692 58.784 46.3545C59.576 46.017 60.8135 46.962 61.6955 46.7865C62.5505 46.6155 63.3065 45.261 64.211 45.261C65.1155 45.261 65.876 46.6155 66.7265 46.7865C67.5815 46.9575 68.8325 46.0125 69.638 46.3545C70.4435 46.6965 70.5785 48.2175 71.285 48.6945C71.996 49.176 73.4675 48.7395 74.0705 49.3425C74.6735 49.9455 74.2415 51.417 74.7185 52.128C75.1955 52.8345 76.721 52.983 77.0585 53.775C77.396 54.567 76.451 55.8045 76.6265 56.6865C76.7975 57.5415 78.152 58.2975 78.152 59.202C78.152 60.1065 76.7975 60.867 76.6265 61.7175C76.4555 62.5725 77.4005 63.8235 77.0585 64.629C76.7165 65.4345 75.1955 65.5695 74.7185 66.276C74.2415 66.9825 74.6735 68.4585 74.0705 69.0615C73.4675 69.6645 71.996 69.2325 71.285 69.7095C70.5785 70.1865 70.43 71.712 69.638 72.0495C68.846 72.387 67.6085 71.442 66.7265 71.6175C65.8715 71.7885 65.1155 73.143 64.211 73.143C63.3065 73.143 62.546 71.7885 61.6955 71.6175C60.845 71.4465 59.5895 72.3915 58.784 72.0495C57.992 71.7165 57.8435 70.1865 57.137 69.7095C56.4305 69.2325 54.9545 69.6645 54.3515 69.0615C53.7485 68.4585 54.1805 66.987 53.7035 66.276C53.2265 65.565 51.701 65.421 51.3635 64.629C51.026 63.837 51.971 62.5995 51.7955 61.7175C51.6245 60.8625 50.27 60.1065 50.27 59.202Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),k.createElement("path",{d:"M57.9463 70.5151V84.8161C57.9463 85.1491 58.3018 85.3606 58.5943 85.2031L63.1348 82.7281C63.2608 82.6606 63.4093 82.6561 63.5353 82.7191L68.8633 85.2616C69.1513 85.4011 69.4888 85.1896 69.4933 84.8701L69.6463 72.0496",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),k.createElement("path",{d:"M78.228 18.1215C78.1965 18.1215 78.165 18.1215 78.138 18.1215H34.263C30.501 18.1215 27.45 15.0705 27.45 11.3085C27.45 7.5465 30.501 4.5 34.263 4.5C34.263 4.5 78.138 4.5 78.147 4.5",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),k.createElement("path",{d:"M9.38255 64.2645H4.90955C3.19505 64.2645 1.80005 62.874 1.80005 61.155C1.80005 59.436 3.19055 58.05 4.90955 58.05H9.22955",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10})),hi=e=>k.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("path",{d:"M178 14L19 65L53 76M178 14L123 123.5L90.5 91M178 14L53 76M178 14L78.5 79M78.5 79L62 104M78.5 79L90.5 91M62 104L90.5 91M62 104L53 76",stroke:"#97C3B9",strokeWidth:2}),k.createElement("path",{opacity:.2,d:"M21 68L180 17L125 126.5L92.5 94L64 107L55 79L21 68Z",fill:"#97C3B9"}),k.createElement("path",{d:"M94.495 135.259C83.8632 135.259 75.2592 143.863 75.2592 154.495C75.2592 143.863 66.6318 135.259 56 135.259C66.6318 135.259 75.2592 126.632 75.2592 116C75.2592 126.632 83.8632 135.259 94.495 135.259Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),k.createElement("path",{d:"M180.481 94.79C173.445 94.79 167.748 100.506 167.748 107.565C167.748 100.506 162.036 94.79 155 94.79C162.036 94.79 167.748 89.0591 167.748 82C167.748 89.0591 173.445 94.79 180.481 94.79Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),k.createElement("path",{d:"M42 35.0047C37.582 35.0047 34.0047 38.582 34.0047 43C34.0047 38.582 30.418 35.0047 26 35.0047C30.418 35.0047 34.0047 31.418 34.0047 27C34.0047 31.418 37.582 35.0047 42 35.0047Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),k.createElement("path",{d:"M21.5625 129.486C22.3958 127.153 24.8625 121.586 28.0625 117.986",stroke:"#97C3B9",strokeWidth:2}),k.createElement("path",{d:"M35.5631 109.486C37.3272 107.746 41.5625 103.486 45.7381 101.468",stroke:"#97C3B9",strokeWidth:2}),k.createElement("path",{d:"M19.0623 140.486C18.8956 142.653 18.9623 148.286 20.5623 153.486",stroke:"#97C3B9",strokeWidth:2}),k.createElement("path",{d:"M26.5625 162.986C28.0625 164.82 32.3625 168.886 37.5625 170.486M48.0625 173.986C50.7292 174.32 57.1625 174.986 61.5625 174.986",stroke:"#97C3B9",strokeWidth:2}),k.createElement("path",{d:"M72.0625 175.486H85.5625M96.0625 175.486H110.562M121.062 175.486H135.062",stroke:"#97C3B9",strokeWidth:2}),k.createElement("path",{d:"M145.562 176.486C148.229 176.486 154.662 176.786 159.062 177.986",stroke:"#97C3B9",strokeWidth:2}),k.createElement("path",{d:"M169.562 180.986C172.062 181.653 178.062 183.686 182.062 186.486",stroke:"#97C3B9",strokeWidth:2})),gi=e=>k.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("path",{d:"M197 140.889C186.368 140.889 177.764 149.493 177.764 160.124C177.764 149.493 169.137 140.889 158.505 140.889C169.137 140.889 177.764 132.261 177.764 121.629C177.764 132.261 186.368 140.889 197 140.889Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),k.createElement("path",{d:"M43.2928 47.6752C32.661 47.6752 24.0571 56.2792 24.0571 66.911C24.0571 56.2792 15.4297 47.6752 4.79785 47.6752C15.4297 47.6752 24.0571 39.0479 24.0571 28.416C24.0571 39.0479 32.661 47.6752 43.2928 47.6752Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),k.createElement("path",{d:"M76.2983 17.0808C70.0153 17.0808 64.9279 22.1681 64.9279 28.4511C64.9279 22.1681 59.8289 17.0808 53.5459 17.0808C59.8289 17.0808 64.9279 11.9817 64.9279 5.69873C64.9279 11.9817 70.0153 17.0808 76.2983 17.0808Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),k.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M112.065 93.8122C112.065 93.8122 118.524 67.2385 125.499 46.9477C132.473 26.657 141.968 12.825 147.899 9.73043C153.831 6.63583 162.341 5.32297 166.631 15.9196C170.429 25.2738 166.608 36.3393 166.608 36.3393C166.608 36.3393 163.712 48.7295 148.825 70.462C139.647 83.8603 132.626 93.8122 132.626 93.8122H166.76C169.022 93.8122 170.851 95.6408 170.851 97.9032C170.851 100.166 169.022 101.994 166.76 101.994H142.641L143.093 102.006L153.69 178.914C155.284 185.97 147.688 187.916 147.688 187.916C147.688 187.916 144.195 192.441 105.841 192.687C89.1723 192.793 70.6985 190.038 62.9268 187.74C55.1551 185.443 56.9251 174.319 56.9251 174.319L63.4165 119.209C58.0319 119.224 55.4195 115.095 54.4752 107.023C54.2796 105.351 54.2251 103.546 54.3058 101.643L54.276 102.018V102.006H42.1554C39.8931 102.006 38.0645 100.177 38.0645 97.9149C38.0645 95.6526 39.8931 93.8239 42.1554 93.8239H55.2855C57.1676 84.4084 61.6018 73.8826 68.0493 65.2575H68.061C68.061 65.2575 75.4693 56.3253 84.1319 57.2162C94.2714 58.2712 100.308 62.3504 100.308 62.3504L100.11 63.0914L105.841 93.8122H112.065ZM90.1921 93.8122H90.1837L90.1322 93.9283L90.1921 93.8122Z",fill:"#97C3B9"}),k.createElement("path",{d:"M101.841 90.8122L96.5003 60.5H96.0003C96.0003 60.5 91.4672 78.8323 86.2861 90.5894L101.841 90.8122Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),k.createElement("path",{d:"M64.0607 62.2576C64.0607 62.2576 71.469 53.3254 80.1316 54.2163C90.2711 55.2713 96.3079 59.3505 96.3079 59.3505L92.3576 74.1437L86.2856 90.5779C86.2856 90.5779 78.2795 109.415 67.3429 114.162C56.4063 118.91 51.7995 115.346 50.4749 104.023C49.1504 92.6995 54.2963 75.3041 64.049 62.2576H64.0607Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),k.createElement("path",{d:"M114.126 90.812L127.595 50.4532C127.595 50.4532 134.511 27.5602 142.587 17.8544C150.745 8.05481 159.502 15.6272 154.707 30.901C150.406 44.6157 133.631 70.4275 121.37 90.812H114.126Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),k.createElement("path",{d:"M108.065 90.8122C108.065 90.8122 114.524 64.2385 121.499 43.9477C128.473 23.657 137.968 9.82504 143.9 6.73043C149.831 3.63583 158.341 2.32297 162.631 12.9196C166.429 22.2738 162.608 33.3393 162.608 33.3393C162.608 33.3393 159.712 45.7295 144.826 67.462C135.647 80.8603 128.626 90.8122 128.626 90.8122H108.077H108.065Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),k.createElement("path",{d:"M86.1926 90.812H162.761C165.023 90.812 166.852 92.6406 166.852 94.903C166.852 97.1653 165.023 98.994 162.761 98.994H81.9727",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),k.createElement("path",{d:"M50.276 99.0057H38.1554C35.8931 99.0057 34.0645 97.1771 34.0645 94.9147C34.0645 92.6524 35.8931 90.8237 38.1554 90.8237H51.4247L50.7683 93.9652L50.4752 96.5089L50.276 99.0174V99.0057Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),k.createElement("path",{d:"M59.9937 117.105L52.9253 171.319C52.9253 171.319 51.1553 182.443 58.927 184.74C66.6986 187.038 85.1725 189.793 101.841 189.687C140.195 189.441 143.689 184.916 143.689 184.916C143.689 184.916 151.284 182.97 149.69 175.914L139.094 99.0059H81.9021C81.9021 99.0059 76.0119 113.988 59.9937 117.105Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),k.createElement("path",{d:"M60.7893 119.993L60.799 119.476H140.794L140.851 119.765L60.7893 119.993Z",fill:"#231F20",stroke:"#97C3B9",strokeWidth:2})),ji=e=>k.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M8.54492 149.483C8.54492 149.483 31.4705 136.963 39.2741 116.167C39.2741 116.167 43.7687 99.3912 46.3662 81.1928C46.3662 81.1928 47.0668 72.2067 47.5519 68.9204C48.0369 65.6341 50.5483 62.1431 53.2644 62.2401C55.9806 62.3371 57.0368 66.1082 57.4249 68.1446C57.5326 68.7102 57.386 69.962 57.118 71.4755C58.1719 66.7819 59.2474 61.7944 59.4512 60.1175C59.947 56.0339 60.8093 51.2176 63.9027 48.6963C66.9961 46.175 69.2272 45.7979 71.1673 45.8841C71.1673 45.8841 73.3014 40.4644 78.3349 40.2705C78.3349 40.2705 81.5253 39.8826 83.5624 42.4039C83.5624 42.4039 87.6259 40.0766 90.9241 43.7615C94.2222 47.4464 95.0845 52.0903 95.4725 60.5054C95.564 62.4897 95.58 64.8514 95.551 67.3023C96.4299 61.724 98.2955 55.6981 100.161 53.3186C104.86 47.3064 108.396 48.8579 108.396 48.8579C108.396 48.8579 110.573 43.309 114.744 42.8133C118.915 42.3177 118.139 46.2289 118.139 46.2289C120.683 43.9016 123.475 44.5049 123.475 44.5049C126.676 45.2053 128.336 47.5757 126.751 56.2063C125.167 64.8368 127.549 69.7931 127.549 69.7931C135.094 63.9425 137.605 69.1898 138.166 72.3683C138.279 72.9998 138.264 73.8438 138.243 75.1149C138.199 77.7258 138.125 82.1383 139.06 90.2112C140.451 102.214 143.124 105.878 143.124 105.878C144.783 108.353 146.57 110.433 148.29 112.148C148.295 112.041 148.297 111.933 148.297 111.825C148.297 111.825 151.897 107.612 156.898 109.994C159.836 111.392 164.068 115.762 168.352 120.184C171.36 123.29 174.394 126.422 177.022 128.569C177.304 128.8 177.579 129.024 177.849 129.244C183.67 133.994 186.768 136.522 193.804 145.151C193.804 145.151 195.959 147.5 198.805 149.666L162.051 191.569C162.051 191.569 141.316 174.666 118.316 149.666C118.316 149.666 121.603 148.5 125.547 145.509C121.267 140.784 115.527 134.794 110.767 131.047C102.326 124.402 99.325 120.466 99.0785 120.134C96.0268 123.958 90.4968 130.202 83.1636 135.627C83.1636 135.627 74.9289 143.955 68.4511 154.795C61.9733 165.634 50.4405 176.376 44.0489 179.577L8.54492 149.483ZM90.439 96.2235C90.4595 96.2104 90.4799 96.1972 90.5001 96.1839L90.5273 96.1764C90.4685 96.2087 90.439 96.2235 90.439 96.2235Z",fill:"#97C3B9"}),k.createElement("path",{d:"M4.5459 145.483C4.5459 145.483 27.4715 132.963 35.2751 112.168C35.2751 112.168 39.7696 95.3917 42.3672 77.1933C42.3672 77.1933 43.0678 68.2072 43.5528 64.9209C44.0379 61.6346 46.5492 58.1436 49.2654 58.2406C51.9815 58.3376 53.0378 62.1087 53.4258 64.1451C53.8139 66.1815 50.9037 77.1179 50.9037 77.1179C50.9037 77.1179 55.0318 59.5766 55.4522 56.118C55.948 52.0344 56.8102 47.2181 59.9036 44.6968C62.997 42.1755 65.2282 41.7984 67.1683 41.8846C67.1683 41.8846 69.3024 36.4649 74.3359 36.271C74.3359 36.271 77.5263 35.8831 79.5634 38.4044C79.5634 38.4044 83.6269 36.077 86.925 39.762C90.2232 43.4469 91.0855 48.0908 91.4735 56.5059C91.8615 64.9209 90.8915 80.124 90.8915 80.124C90.8915 80.124 90.6975 89.5087 86.44 92.224C86.44 92.224 90.1154 90.3815 97.186 82.8392C104.257 75.2969 105.895 75.674 108.805 76.0619C111.715 76.4498 114.13 79.5422 111.996 87.774C109.861 96.0059 97.7573 112.556 97.7573 112.556C97.7573 112.556 90.6867 123.104 79.1646 131.627C79.1646 131.627 70.9299 139.956 64.4521 150.795C57.9743 161.635 46.4414 172.377 40.0499 175.577",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M60.0654 79.2617C60.0654 79.2617 64.1073 66.1812 64.4738 59.4471C64.8403 52.7129 65.5516 44.5133 67.1684 41.8735",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M71.1992 80.8566C71.1992 80.8566 75.1118 73.8854 75.974 61.419C76.8363 48.9527 76.5237 45.6557 76.8255 43.0805C77.3106 38.9215 79.5632 38.4043 79.5632 38.4043",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M44.8614 135.143C51.6486 134.887 56.9589 129.594 56.7222 123.32C56.4855 117.047 50.7915 112.168 44.0042 112.424C37.217 112.68 31.9067 117.973 32.1434 124.247C32.3801 130.52 38.0742 135.399 44.8614 135.143Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M44.9719 137.801C53.0975 137.495 59.4577 131.23 59.1777 123.809C58.8977 116.388 52.0836 110.62 43.9579 110.927C35.8323 111.233 29.4721 117.498 29.7521 124.919C30.0321 132.34 36.8462 138.108 44.9719 137.801Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M39.6943 121.046L43.4452 127.026L48.7266 119.117",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M30.2517 119.117L24.2589 125.614C24.2589 125.614 24.1619 129.676 30.2517 129.773C30.2517 129.773 28.3223 124.602 30.2517 119.117Z",fill:"#97C3B9"}),k.createElement("path",{d:"M55.0212 114.14C55.0212 114.14 57.3385 114.959 60.9062 119.516C60.9062 119.516 71.1564 121.854 77.5588 135.15C77.5588 135.15 71.7708 145.914 67.6103 148.242C67.6103 148.242 57.3601 139.309 52.8871 138.9C52.8871 138.9 49.0284 143.264 40.5997 141.335C32.171 139.406 29.2285 129.763 29.2285 129.763H30.2417C30.2417 129.763 37.3877 141.292 50.214 136.691C50.214 136.691 57.6619 134.03 58.869 127.015C60.0762 120.001 56.6487 116.144 55.0104 114.129L55.0212 114.14Z",fill:"#97C3B9"}),k.createElement("path",{d:"M68.9787 127.92C68.9787 127.92 68.4613 132.844 63.1152 136.885",stroke:"#FAFAFA",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M72.7079 132.402C72.7079 132.402 71.824 135.29 70.1318 136.087",stroke:"#FAFAFA",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M152.91 114.667C152.91 114.667 145.171 110.896 139.124 101.878C139.124 101.878 136.451 98.2143 135.061 86.2113C133.67 74.2083 134.511 70.2971 134.166 68.3684C133.606 65.1899 131.094 59.9426 123.549 65.7933C123.549 65.7933 121.167 60.8369 122.752 52.2064C124.336 43.5759 122.676 41.2054 119.475 40.5051C119.475 40.5051 116.684 39.9017 114.14 42.229C114.14 42.229 114.916 38.3178 110.745 38.8134C106.573 39.3091 104.396 44.858 104.396 44.858C104.396 44.858 100.861 43.3065 96.1616 49.3188C94.2861 51.7107 92.4107 57.7877 91.5377 63.3905L91.1389 75.3935C91.1389 75.3935 91.5592 88.1939 86.4287 92.2021C86.4287 92.2021 91.958 88.6787 99.0717 80.8455C106.185 73.0123 111.025 75.8892 112.372 79.2509C113.72 82.6126 113.536 88.2154 106.94 98.5268C100.344 108.838 95.0622 116.111 95.0622 116.111C95.0622 116.111 97.94 120.098 106.768 127.047C115.595 133.997 127.796 148.661 127.796 148.661C127.796 148.661 143.867 134.676 152.888 114.657L152.91 114.667Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M111.058 108.612C111.058 108.612 111.252 98.1068 115.919 91.4588C115.919 91.4588 118.236 87.2028 118.204 79.8545C118.161 70.4051 123.561 65.772 123.561 65.772",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M114.151 42.2183C114.151 42.2183 110.216 45.2352 108.772 52.9822C106.724 63.9939 107.382 72.8184 107.382 72.8184",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M99.3845 78.1522C99.3845 78.1522 98.8671 67.7546 99.8695 59.0271C100.872 50.2996 104.407 44.8584 104.407 44.8584",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M92.4217 79.1864C92.4217 79.1864 91.3223 63.8002 92.1953 59.6304",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M152.91 114.667C156.09 108.332 150.075 108.623 150.075 108.623",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M118.16 137.833C118.16 137.833 109.699 149.319 119.68 151.194C119.68 151.194 125.856 150.493 127.818 148.672L118.16 137.833Z",fill:"#97C3B9"}),k.createElement("path",{d:"M158.051 187.569C158.051 187.569 139.65 173 116.65 148C116.65 148 124.15 160 140.978 134.256C140.978 134.256 152.263 119.236 152.511 114.01C152.511 114.01 147.284 111.36 144.298 107.826C144.298 107.826 147.898 103.613 152.899 105.994C157.9 108.375 166.652 119.365 173.022 124.569C179.392 129.774 182.443 132.122 189.804 141.152C189.804 141.152 191.96 143.501 194.805 145.666",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M160.746 81.6538C160.746 81.6538 182.443 82.699 184.868 83.3885",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M145.99 53.8984L169.25 44.8584",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M122.041 30.474L139.922 14.1719",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M82.4735 30.474C82.4735 30.474 75.3597 15.9066 62.167 9.48486",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M40.9985 49.3833C40.9985 49.3833 33.3674 39.3305 23.1172 37.0786",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M28.3231 74.5425C28.3231 74.5425 8.71728 83.2269 1.59277 93.7214",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"})),fi=i.div`
|
|
243
|
-
width: 100%;
|
|
244
|
-
display: flex;
|
|
245
|
-
justify-content: center;
|
|
246
|
-
align-items: center;
|
|
247
|
-
flex: 1;
|
|
248
|
-
background: ${e=>e.theme.colors.grey4};
|
|
249
|
-
box-sizing: border-box;
|
|
250
|
-
`,yi=i(hi)`
|
|
251
|
-
width: 90px;
|
|
252
|
-
height: 90px;
|
|
253
|
-
`,Si=i(gi)`
|
|
254
|
-
width: 90px;
|
|
255
|
-
height: 90px;
|
|
256
|
-
`,Ri=i(xi)`
|
|
257
|
-
width: 90px;
|
|
258
|
-
height: 90px;
|
|
259
|
-
`,Ci=i(ji)`
|
|
260
|
-
width: 90px;
|
|
261
|
-
height: 90px;
|
|
262
|
-
`,Ei=i.div`
|
|
263
|
-
display: flex;
|
|
264
|
-
align-items: center;
|
|
265
|
-
justify-content: center;
|
|
266
|
-
flex-direction: column;
|
|
267
|
-
`,vi=i(t.H6Regular)`
|
|
268
|
-
margin-top: ${t.Space.sp2};
|
|
269
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
270
|
-
`,bi=i(t.LargeRegular)`
|
|
271
|
-
color: ${e=>e.theme.colors.primary};
|
|
272
|
-
`,wi=e=>{const{tab:s}=e;switch(s){case"transaction_categorization":return n.jsxRuntimeExports.jsx(yi,{});case"je_schedules":case"reconciliation":return n.jsxRuntimeExports.jsx(Ci,{});case"flux_analysis":return n.jsxRuntimeExports.jsx(Ri,{});case"missing_receipts":default:return n.jsxRuntimeExports.jsx(Si,{})}};function ut(e){const{title:s,subTitle:l}=e;return n.jsxRuntimeExports.jsx(fi,{children:n.jsxRuntimeExports.jsxs(Ei,{children:[n.jsxRuntimeExports.jsx(wi,{...e}),n.jsxRuntimeExports.jsx(vi,{children:s}),n.jsxRuntimeExports.jsx(bi,{children:l})]})})}const{common:{headers:{transactions:Ii,jeSchedules:ki,fluxAnalysis:Ti,missingReceipts:$i,insights:Li,reconciliation:Vn},strings:{empty:Rt}},expenseAutomation:{transactions:{tabs:qn,subTitles:{review:{item1:Wt,item2:Vt},autoCategorized:{item1:qt,item2:Ai}},searchPlaceholder:Oi,allDoneText:Di},jeSchedules:{subTitles:{item1:_i,item2:Mi},searchPlaceholder:Bi,allDoneText:Ni},missingReceipts:{subTitles:Pi,searchPlaceholder:Fi,allDoneText:zi},fluxAnalysis:{subTitles:{item1:Hi,item2:Wi},searchPlaceholder:Vi,emptyPageTexts:{youDidIt:qi,allReviewed:Ui}},accountRecon:{review:{allDoneText:Un},reconcile:{allDoneText:Gi},tabs:Gn,titles:{item1:Ki,item2:Ji},subTitles:{review:{item1:Zi,item2:Ut},reconcile:{item1:Gt,item2:Yi}}}}}=t.appLocale.getLocalizedStrings(),Fe=(e,s,l,a,u)=>{switch(e){case"transaction_categorization":return{key:"transaction_categorization",title:Ii,subTitle:[],tabs:[{label:qn.review,id:"review",subTitle:[{pre:Wt.pre,bold:Wt.bold,prefixIconName:Wt.prefixIconName,post:Wt.post},{pre:Vt.pre,bold:Vt.bold,prefixIconName:Vt.prefixIconName,post:Vt.post}]},{label:qn.autoCategorized,id:"autoCategorized",subTitle:[{pre:qt.pre,bold:qt.bold,prefixIconName:qt.prefixIconName,post:qt.post.replace("#number",s!=null&&s!=0?s.toString():"")},Ai]}],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Oi,allDoneText:Di};case"je_schedules":return{key:"je_schedules",title:ki,subTitle:[_i,Mi],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Bi,allDoneText:Ni};case"missing_receipts":return{key:"missing_receipts",title:$i,subTitle:[Pi],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Fi,allDoneText:zi};case"flux_analysis":return{key:"flux_analysis",title:Ti,subTitle:[Hi,Wi],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Vi,allDoneText:{title:qi,subTitle:Ui}};case"month_end_insights":return{key:"month_end_insights",title:Li,subTitle:[],tabs:[],rightSection:["comment","refresh","close"],leftSection:[],searchPlaceholder:Rt,allDoneText:{title:Rt,subTitle:Rt}};case"reconciliation":return l==null?{key:"reconciliation",title:Vn,subTitle:[Ki,Ji],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Rt,allDoneText:{title:Rt,subTitle:Rt}}:{key:"reconciliation",title:a??Vn,subText:u??void 0,subTitle:[],tabs:[{label:Gn.review,id:"review",subTitle:[Zi,{pre:Ut.pre,bold:Ut.bold,prefixIconName:Ut.prefixIconName,post:Ut.post}],allDoneText:Un},{label:Gn.reconcile,id:"reconcile",subTitle:[{pre:Gt.pre,bold:Gt.bold,prefixIconName:Gt.prefixIconName,post:Gt.post},Yi],allDoneText:Gi}],rightSection:["refresh"],leftSection:["back"],searchPlaceholder:Rt,allDoneText:Un}}},{common:{strings:{empty:Xi}},expenseAutomation:{accountRecon:{reconcile:{header:gt}}}}=t.appLocale.getLocalizedStrings(),Qi={key:"date",value:gt.date,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginLeft:t.sp[4],marginRight:t.sp[3]}},er={key:"clearedDate",value:gt.clearedDate,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3],display:"none"}},tr={key:"type",value:gt.type,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},nr={key:"payee",value:gt.payee,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},sr={key:"account",value:gt.account,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},or={key:"transactionDirection",value:gt.direction,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},ir={key:"memo",value:gt.memo,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},rr={key:"amount",value:gt.amount,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},ar={key:"recommended",value:Xi,sortOrder:"ascending",width:new t.ResponsiveSized(1.25,1.25,1.25),customStyle:{marginRight:t.sp[4],marginLeft:t.sp[0]}},$e=[Qi,er,tr,nr,sr,or,ir,rr,ar],cr=50,Nt={sortKey:"date",sortOrder:"descending"};function lr({sortConfig:e,onReconTabColumnSortConfigChanged:s}){const l=t.useWindowSizeContext(),[a,u]=m.useState(n.cloneDeep($e));m.useEffect(()=>{const c=[...a];for(const r of c)r.key===e.sortKey?r.sortOrder=e.sortOrder:r.sortOrder="ascending";u(c)},[e.sortKey,e.sortOrder]);const p=(c,r)=>{let x=r;e.sortKey===c&&(x=r==="ascending"?"descending":"ascending"),s(c,x)},o=c=>{p(c.key,c.sortOrder)};return n.jsxRuntimeExports.jsx(mr,{headerHeight:cr,children:a.map(c=>n.jsxRuntimeExports.jsx(ur,{columnWidth:c.width,windowSize:l,sortDataValue:e.sortKey,actualDataValue:c.key,style:c.customStyle,children:n.jsxRuntimeExports.jsxs(fr,{isVisible:c.key!=="recommended",children:[n.jsxRuntimeExports.jsx(pr,{"data-testid":t.generateDataTestId("reconcile-tab-list-sort",c.value),onClick:()=>o(c),children:n.jsxRuntimeExports.jsx(t.ExtraSmallRegular,{children:c.value})}),n.jsxRuntimeExports.jsx(xr,{sortConfig:e,headerData:c,children:n.jsxRuntimeExports.jsx(hr,{})}),n.jsxRuntimeExports.jsx(gr,{isVisible:e.sortKey===c.key&&(e.sortKey!==Nt.sortKey||e.sortOrder!==Nt.sortOrder),children:n.jsxRuntimeExports.jsx(jr,{"data-testid":t.generateDataTestId("reconcile-tab-list-reset-sort",Nt.sortKey),onClick:()=>s(Nt.sortKey,Nt.sortOrder)})})]})},c.key))})}const dr=m.memo(lr),ur=i.div`
|
|
273
|
-
color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.grey1};
|
|
274
|
-
:hover {
|
|
275
|
-
color: ${e=>e.theme.colors.primary};
|
|
276
|
-
}
|
|
277
|
-
width: ${e=>e.columnWidth.valuePercentage(e.windowSize)};
|
|
278
|
-
display: flex;
|
|
279
|
-
align-items: center;
|
|
280
|
-
height: 100%;
|
|
281
|
-
justify-content: flex-start;
|
|
282
|
-
gap: 6px;
|
|
283
|
-
z-index: auto;
|
|
284
|
-
position: relative;
|
|
285
|
-
`,pr=i.div`
|
|
286
|
-
display: flex;
|
|
287
|
-
gap: 5px;
|
|
288
|
-
cursor: pointer;
|
|
289
|
-
`,mr=i(t.SmallRegular)`
|
|
290
|
-
width: fit-content;
|
|
291
|
-
height: ${e=>`${e.headerHeight}px`};
|
|
292
|
-
width: calc(100% - 20px);
|
|
293
|
-
z-index: 6;
|
|
294
|
-
display: flex;
|
|
295
|
-
align-items: center;
|
|
296
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
297
|
-
box-sizing: border-box;
|
|
298
|
-
padding: ${t.Space.sp3} ${t.Space.sp8} ${t.Space.sp3} ${t.Space.sp0};
|
|
299
|
-
position: sticky;
|
|
300
|
-
color: ${e=>e.theme.colors.grey1};
|
|
301
|
-
`,xr=i.div`
|
|
302
|
-
display: flex;
|
|
303
|
-
align-items: center;
|
|
304
|
-
transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
305
|
-
${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
|
|
306
|
-
`,hr=i(t.SvgArrowTailTop)`
|
|
307
|
-
width: ${t.Space.sp2};
|
|
308
|
-
height: ${t.Space.sp2};
|
|
309
|
-
`,gr=i.div`
|
|
310
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
311
|
-
align-items: center;
|
|
312
|
-
padding-top: 2px;
|
|
313
|
-
cursor: pointer;
|
|
314
|
-
color: ${e=>e.theme.colors.grey1};
|
|
315
|
-
&:hover {
|
|
316
|
-
color: ${e=>e.theme.colors.primary};
|
|
317
|
-
}
|
|
318
|
-
`,jr=i(t.SvgCloseRound)`
|
|
319
|
-
width: 12px;
|
|
320
|
-
height: 12px;
|
|
321
|
-
`,fr=i.div`
|
|
322
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
323
|
-
`,yr=54,Sr=72,{common:{strings:{hyphen:sn}}}=t.appLocale.getLocalizedStrings(),{dateFormat:Kn}=t.appLocale.getLocalizedStrings();function Rr({selectedTransactionIds:e,transaction:s,transactionId:l}){const a=t.useWindowSizeContext(),u=n.useTheme(),[p,o]=m.useState(!1),c=e.includes(l),r=p||c;return n.jsxRuntimeExports.jsx(Cr,{id:l,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:n.jsxRuntimeExports.jsxs(Er,{isSelected:r,totalHeight:yr,children:[n.jsxRuntimeExports.jsx(at,{windowSize:a,responsiveWidth:$e[0].width,style:$e[0].customStyle,children:n.jsxRuntimeExports.jsx(Ct,{isSelected:r,children:s.date.format(Kn.visual.MMMDCommaYYYYformat)})}),$e[1].customStyle.display!=="none"?n.jsxRuntimeExports.jsx(at,{windowSize:a,responsiveWidth:$e[1].width,style:$e[1].customStyle,children:n.jsxRuntimeExports.jsx(Ct,{isSelected:r,children:s.clearedDate!=null?s.clearedDate.format(Kn.visual.MMMDCommaYYYYformat):n.jsxRuntimeExports.jsx("span",{children:sn})})}):null,n.jsxRuntimeExports.jsx(at,{windowSize:a,style:$e[2].customStyle,responsiveWidth:$e[2].width,children:n.jsxRuntimeExports.jsx(wr,{isSelected:r,children:n.jsxRuntimeExports.jsx(vr,{isSelected:r,children:t.getStringForTransactionType(s.type)})})}),n.jsxRuntimeExports.jsx(at,{windowSize:a,style:$e[3].customStyle,responsiveWidth:$e[3].width,children:s.merchantName!=null&&s.merchantName.length>0?n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:s.merchantName,itemTextStyle:{color:r?u.colors.primary:u.colors.hero}}):n.jsxRuntimeExports.jsx(Ct,{isSelected:r,children:n.jsxRuntimeExports.jsx("span",{children:sn})})}),n.jsxRuntimeExports.jsx(at,{windowSize:a,style:$e[4].customStyle,responsiveWidth:$e[4].width,children:s.accountName!=null&&s.accountName.length>0?n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:s.accountName,itemTextStyle:{color:r?u.colors.primary:u.colors.hero}}):n.jsxRuntimeExports.jsx(Ct,{isSelected:r,children:n.jsxRuntimeExports.jsx("span",{children:sn})})}),n.jsxRuntimeExports.jsx(at,{windowSize:a,style:$e[5].customStyle,responsiveWidth:$e[5].width,children:n.jsxRuntimeExports.jsx(Ct,{isSelected:r,style:{textTransform:"capitalize"},children:s.transactionDirection})}),n.jsxRuntimeExports.jsx(at,{windowSize:a,style:$e[6].customStyle,responsiveWidth:$e[6].width,children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:s.memo,itemTextStyle:{color:r?u.colors.primary:u.colors.hero}})}),n.jsxRuntimeExports.jsx(at,{windowSize:a,style:$e[7].customStyle,responsiveWidth:$e[7].width,children:n.jsxRuntimeExports.jsx(Ct,{isSelected:r,children:t.amountToString("0,0.[00]",s.amount)})}),n.jsxRuntimeExports.jsx(at,{windowSize:a,responsiveWidth:$e[8].width,style:$e[8].customStyle,children:n.jsxRuntimeExports.jsx(Ct,{isSelected:r,children:s.isZeniRecommended?n.jsxRuntimeExports.jsx(br,{}):null})})]})})}const Cr=i.div`
|
|
324
|
-
box-sizing: border-box;
|
|
325
|
-
width: 100%;
|
|
326
|
-
display: flex;
|
|
327
|
-
padding-right: ${t.Space.sp8};
|
|
328
|
-
`,Er=i.div`
|
|
329
|
-
cursor: pointer;
|
|
330
|
-
display: flex;
|
|
331
|
-
border-radius: ${t.Space.sp2};
|
|
332
|
-
width: 100%;
|
|
333
|
-
align-items: center;
|
|
334
|
-
height: ${e=>`${e.totalHeight}px`};
|
|
335
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
336
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
337
|
-
border-color: ${e=>e.isSelected===!0?e.theme.colors.primary:"none"};
|
|
338
|
-
box-shadow: ${e=>`${t.Space.sp0} 2px ${t.Space.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
339
|
-
:hover {
|
|
340
|
-
border: ${e=>`1px solid ${e.theme.colors.primary}`};
|
|
341
|
-
}
|
|
342
|
-
`,at=i.div`
|
|
343
|
-
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
344
|
-
display: flex;
|
|
345
|
-
align-items: center;
|
|
346
|
-
justify-content: flex-start;
|
|
347
|
-
height: 100%;
|
|
348
|
-
z-index: auto;
|
|
349
|
-
position: relative;
|
|
350
|
-
`,Ct=i(t.StandardRegular)`
|
|
351
|
-
color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
352
|
-
span {
|
|
353
|
-
padding-left: ${t.Space.sp3};
|
|
354
|
-
}
|
|
355
|
-
`,vr=i(t.ExtraSmallRegular)`
|
|
356
|
-
text-transform: capitalize;
|
|
357
|
-
color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
358
|
-
`,br=i(t.SvgAiIcon)`
|
|
359
|
-
width: ${t.Space.sp3};
|
|
360
|
-
height: ${t.Space.sp3};
|
|
361
|
-
margin-right: ${t.Space.sp1};
|
|
362
|
-
path {
|
|
363
|
-
stroke-width: 2;
|
|
364
|
-
}
|
|
365
|
-
`,wr=i.div`
|
|
366
|
-
padding: 1px 6px;
|
|
367
|
-
border-radius: ${t.Space.sp1};
|
|
368
|
-
border: ${e=>`1px solid ${e.isSelected?e.theme.colors.primary:e.theme.colors.hero}`};
|
|
369
|
-
`,Ir=t.appLocale.getLocalizedStrings(),{common:{all:Jn,strings:{empty:Zn}}}=Ir,Yn="selectedTransactionIds",kr="expenseAutomationBankReconReconcilePage",Tr=e=>`${e}_form`;function $r({currentFooterFormId:e,localData:s,matchedTransactions:l,sortConfig:a,onSaveReconciliation:u,selectedAccountId:p,onReconTabColumnSortConfigChanged:o,onUpdateReconcileTabLocalData:c,setCurrentFooterFormId:r}){const x=n.useForm({mode:"all",defaultValues:{selectedTransactionIds:s.selectedTransactionIds},values:{selectedTransactionIds:s.selectedTransactionIds}}),d={label:n.jsxRuntimeExports.jsx(dr,{onReconTabColumnSortConfigChanged:o,sortConfig:a}),value:Jn.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},h=l.map(y=>({label:n.jsxRuntimeExports.jsx(Rr,{transaction:y,selectedTransactionIds:s.selectedTransactionIds,transactionId:y.id}),value:y.id,defaultChecked:!1,groupLabel:!1})),g=[d,...h],f=async y=>{const j=y[Yn].filter(w=>w!=Jn.toLocaleLowerCase());c(j)};m.useEffect(()=>{const y=x.watch(v=>{v!=null&&n.defer(()=>f(v))});return()=>{y.unsubscribe()}}),m.useEffect(()=>(e!=="expenseAutomationBankReconReconcilePage"&&r("expenseAutomationBankReconReconcilePage"),()=>{r("expenseAutomationPage")}),[]);const R=m.useCallback(()=>{u({reconcileAction:"reconcile"})},[u]);if(l.length===0){const y=Fe("reconciliation",void 0,p).tabs.find(v=>v.id==="reconcile")?.allDoneText;return n.jsxRuntimeExports.jsx(Dr,{children:n.jsxRuntimeExports.jsx(ut,{tab:"missing_receipts",title:y?.title??Zn,subTitle:y?.subTitle??Zn})})}return n.jsxRuntimeExports.jsx(Lr,{children:n.jsxRuntimeExports.jsx(n.FormProvider,{...x,children:n.jsxRuntimeExports.jsx(Ar,{onSubmit:x.handleSubmit(R),id:Tr(kr),children:n.jsxRuntimeExports.jsx(Or,{children:n.jsxRuntimeExports.jsx(si,{name:Yn,checkBoxes:g,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:20},rowHeight:Sr,mode:s.selectedTransactionIds.length>0?"always_on":"checked_or_hover",checkBoxContainerStyle:{boxSizing:"border-box"}})})})})})}const Lr=i.div``,Ar=i.form``,Or=i.div`
|
|
370
|
-
height: calc(100vh - 350px);
|
|
371
|
-
`,Dr=i.div`
|
|
372
|
-
height: 100%;
|
|
373
|
-
display: flex;
|
|
374
|
-
justify-content: center;
|
|
375
|
-
align-items: center;
|
|
376
|
-
`,In=69,ce={COLUMN_ONE:187,COLUMN_THREE:136,COLUMN_FOUR:240,COLUMN_FIVE:146},qs=i.div`
|
|
377
|
-
display: flex;
|
|
378
|
-
flex-direction: column;
|
|
379
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
380
|
-
width: 100%;
|
|
381
|
-
min-height: 100%;
|
|
382
|
-
height: calc(100vh - 500px);
|
|
383
|
-
overflow-x: scroll;
|
|
384
|
-
align-items: center;
|
|
385
|
-
`,Us=i.div`
|
|
386
|
-
display: flex;
|
|
387
|
-
flex-direction: column;
|
|
388
|
-
gap: ${t.Space.sp5};
|
|
389
|
-
align-items: flex-start;
|
|
390
|
-
padding-bottom: ${t.Space.sp9};
|
|
391
|
-
width: 100%;
|
|
392
|
-
`,Gs=i.div`
|
|
393
|
-
width: 100%;
|
|
394
|
-
`,Ks=i.div`
|
|
395
|
-
width: 100%;
|
|
396
|
-
`,An=i.div`
|
|
397
|
-
display: flex;
|
|
398
|
-
flex-direction: row;
|
|
399
|
-
padding: ${t.Space.sp2};
|
|
400
|
-
padding-right: ${t.Space.sp3};
|
|
401
|
-
justify-content: space-between;
|
|
402
|
-
border-bottom: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
403
|
-
`,On=i.div`
|
|
404
|
-
display: flex;
|
|
405
|
-
flex-direction: row;
|
|
406
|
-
justify-content: space-between;
|
|
407
|
-
padding: ${t.Space.sp2};
|
|
408
|
-
padding-right: ${t.Space.sp3};
|
|
409
|
-
`,_r=i.div`
|
|
410
|
-
border-top: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
411
|
-
display: flex;
|
|
412
|
-
flex-direction: row;
|
|
413
|
-
justify-content: space-between;
|
|
414
|
-
padding: ${t.Space.sp2};
|
|
415
|
-
padding-right: ${t.Space.sp3};
|
|
416
|
-
`,Mr=i.div`
|
|
417
|
-
padding: ${t.Space.sp2} ${t.Space.sp3};
|
|
418
|
-
`,Dn=i.div`
|
|
419
|
-
display: flex;
|
|
420
|
-
`,Br=i.div`
|
|
421
|
-
display: flex;
|
|
422
|
-
align-items: center;
|
|
423
|
-
justify-content: center;
|
|
424
|
-
gap: ${t.Space.sp1};
|
|
425
|
-
padding: ${t.Space.sp2} ${t.Space.sp0};
|
|
426
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
427
|
-
border-bottom-left-radius: ${t.Space.sp2};
|
|
428
|
-
border-bottom-right-radius: ${t.Space.sp2};
|
|
429
|
-
`,_n=i.div`
|
|
430
|
-
display: flex;
|
|
431
|
-
flex-direction: column;
|
|
432
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
433
|
-
border-radius: ${t.Space.sp2};
|
|
434
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
435
|
-
box-shadow: ${e=>e.theme.colors.elevation1};
|
|
436
|
-
cursor: pointer;
|
|
437
|
-
border: ${e=>`1px solid ${e.showBorder===!0?e.theme.colors.primary:e.theme.colors.grey3}`};
|
|
438
|
-
.highlight {
|
|
439
|
-
color: ${e=>e.showBorder===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
440
|
-
}
|
|
441
|
-
:hover {
|
|
442
|
-
border: ${e=>`1px solid ${e.theme.colors.primary}`};
|
|
443
|
-
}
|
|
444
|
-
:hover .highlight {
|
|
445
|
-
color: ${e=>e.theme.colors.primary};
|
|
446
|
-
}
|
|
447
|
-
`,Z=i.div`
|
|
448
|
-
display: flex;
|
|
449
|
-
flex-direction: column;
|
|
450
|
-
width: 180px;
|
|
451
|
-
padding: ${t.Space.sp2};
|
|
452
|
-
.hover-background {
|
|
453
|
-
border-radius: ${t.Space.sp1};
|
|
454
|
-
background-color: ${e=>e.forceHoverEffect===!0?e.theme.colors.background:"unset"};
|
|
455
|
-
.select-control {
|
|
456
|
-
background-color: ${e=>e.forceHoverEffect===!0?e.theme.colors.background:"unset"};
|
|
457
|
-
}
|
|
458
|
-
:hover {
|
|
459
|
-
background-color: ${e=>`${e.showHoverEffect===!0?e.theme.colors.background:"unset"}`};
|
|
460
|
-
.select-control {
|
|
461
|
-
background-color: ${e=>e.theme.colors.background};
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
:focus-within {
|
|
465
|
-
background-color: ${e=>`${e.showHoverEffect===!0?e.theme.colors.background:"unset"}`};
|
|
466
|
-
.select-control {
|
|
467
|
-
background-color: ${e=>e.theme.colors.background};
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
.item-value-container {
|
|
472
|
-
.grouped-single-select-field__menu {
|
|
473
|
-
margin-top: ${t.Space.sp2};
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
`,ot=i.div`
|
|
477
|
-
padding: ${t.Space.sp2} ${t.Space.sp3};
|
|
478
|
-
`,ne=i(t.ExtraSmallRegular)`
|
|
479
|
-
color: ${e=>e.theme.colors.hero};
|
|
480
|
-
`,ie=i(t.StandardRegular)`
|
|
481
|
-
width: 100%;
|
|
482
|
-
color: ${e=>e.theme.colors.hero};
|
|
483
|
-
white-space: nowrap;
|
|
484
|
-
overflow: hidden;
|
|
485
|
-
text-overflow: ellipsis;
|
|
486
|
-
`,oe=i.div`
|
|
487
|
-
display: flex;
|
|
488
|
-
gap: ${t.Space.sp1};
|
|
489
|
-
color: ${e=>e.theme.colors.primary};
|
|
490
|
-
.select-value-container {
|
|
491
|
-
.auto-complete-single-select-field__input-container {
|
|
492
|
-
.auto-complete-single-select-field__input {
|
|
493
|
-
text-align: left;
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
.grouped-single-select-field__input-container {
|
|
497
|
-
.grouped-single-select-field__input {
|
|
498
|
-
text-align: left;
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
`,Mn=i.div`
|
|
503
|
-
border-left: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
504
|
-
display: flex;
|
|
505
|
-
flex-direction: column;
|
|
506
|
-
gap: ${t.Space.sp3};
|
|
507
|
-
align-items: center;
|
|
508
|
-
justify-content: center;
|
|
509
|
-
padding: ${t.Space.sp0} 42px;
|
|
510
|
-
`,Bn=i.div`
|
|
511
|
-
flex: 1;
|
|
512
|
-
`,Js=i(t.ExtraSmallRegular)`
|
|
513
|
-
padding: ${t.Space.sp0} 6px;
|
|
514
|
-
color: ${t.Colors.info};
|
|
515
|
-
border: 1px solid ${t.Colors.info};
|
|
516
|
-
border-radius: ${t.Space.sp1};
|
|
517
|
-
margin-top: ${t.Space.sp1};
|
|
518
|
-
`,Qt=i(t.SmallRegular)`
|
|
519
|
-
padding: ${t.Space.sp2};
|
|
520
|
-
color: ${e=>e.theme.colors.hero};
|
|
521
|
-
background: ${e=>e.theme.colors.overlayColor};
|
|
522
|
-
border-radius: ${t.Space.sp1};
|
|
523
|
-
`,He=i(Qt)`
|
|
524
|
-
padding: 2px ${t.Space.sp2};
|
|
525
|
-
`,kt=t.appLocale.getLocalizedStrings().expenseAutomation.accountRecon.review.header,lt=[{key:"date",value:kt.date,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),loaderWidth:120},{key:"payee",value:kt.payee,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),loaderWidth:212},{key:"memo",value:kt.memo,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),loaderWidth:192},{key:"direction",value:kt.direction,sortOrder:"ascending",width:new t.ResponsiveSized(15,15),loaderWidth:84},{key:"match",value:kt.match,sortOrder:"ascending",width:new t.ResponsiveSized(15,15),loaderWidth:152},{key:"amount",value:kt.amount,sortOrder:"ascending",width:new t.ResponsiveSized(10,10),loaderWidth:64}],Nr=e=>{const{sortConfig:s,onColumnSortConfigChanged:l}=e,a=t.useWindowSizeContext(),[u,p]=m.useState(n.cloneDeep(lt));m.useEffect(()=>{const c=[...u];for(const r of c)r.key===s.sortKey?r.sortOrder=s.sortOrder:r.sortOrder="ascending";p(c)},[s.sortKey,s.sortOrder]);const o=(c,r)=>{let x=r;s.sortKey===c&&(x=r==="ascending"?"descending":"ascending"),l(c,x)};return n.jsxRuntimeExports.jsx(Fr,{children:u.map(c=>n.jsxRuntimeExports.jsxs(zr,{sortDataValue:s.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:a,isLastColumn:c.key==="amount",children:[n.jsxRuntimeExports.jsxs(Hr,{"data-testid":t.generateDataTestId("account-reconciliation-review-header",c.value),sortKey:c.key,onClick:()=>o(c.key,c.sortOrder),children:[n.jsxRuntimeExports.jsx(t.ExtraSmallRegular,{children:c.value}),n.jsxRuntimeExports.jsx(Wr,{sortDataValue:s.sortKey,headerData:c,children:n.jsxRuntimeExports.jsx(Vr,{})})]}),n.jsxRuntimeExports.jsx(qr,{sortDataValue:s.sortKey,windowSize:a,isVisible:s.sortKey===c.key&&(s.sortKey!=="date"||s.sortOrder==="ascending"),children:n.jsxRuntimeExports.jsx(Ur,{"data-testid":t.generateDataTestId("account-reconciliation-review-sort-by-date"),onClick:()=>o("date","ascending")})})]},c.key))})},Pr=m.memo(Nr),Fr=i(t.SmallRegular)`
|
|
526
|
-
top: 0;
|
|
527
|
-
left: 0;
|
|
528
|
-
width: fit-content;
|
|
529
|
-
min-width: 100%;
|
|
530
|
-
z-index: 6;
|
|
531
|
-
display: flex;
|
|
532
|
-
align-items: center;
|
|
533
|
-
box-sizing: border-box;
|
|
534
|
-
padding: ${t.Space.sp3} ${t.Space.sp4};
|
|
535
|
-
position: sticky;
|
|
536
|
-
color: ${e=>e.theme.colors.grey1};
|
|
537
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
538
|
-
`,zr=i.div`
|
|
539
|
-
color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.grey1};
|
|
540
|
-
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
541
|
-
min-width: ${e=>e.isLastColumn===!0?"auto":e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
542
|
-
display: flex;
|
|
543
|
-
align-items: center;
|
|
544
|
-
gap: 5px;
|
|
545
|
-
left: ${t.Space.sp0};
|
|
546
|
-
justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
|
|
547
|
-
`,Hr=i.div`
|
|
548
|
-
display: flex;
|
|
549
|
-
cursor: pointer;
|
|
550
|
-
gap: ${t.Space.sp1};
|
|
551
|
-
&:hover {
|
|
552
|
-
color: ${e=>e.theme.colors.primary};
|
|
553
|
-
}
|
|
554
|
-
white-space: nowrap;
|
|
555
|
-
`,Wr=i.div`
|
|
556
|
-
display: flex;
|
|
557
|
-
align-items: center;
|
|
558
|
-
transform: ${e=>e.sortDataValue===e.headerData.key&&e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
559
|
-
${e=>e.headerData.sortOrder==="ascending"?Ne.css`
|
|
560
|
-
padding-top: 2px;
|
|
561
|
-
`:Ne.css`
|
|
562
|
-
padding-bottom: 2px;
|
|
563
|
-
`}
|
|
564
|
-
`,Vr=i(t.SvgArrowTailTop)`
|
|
565
|
-
width: ${t.Space.sp2};
|
|
566
|
-
height: ${t.Space.sp2};
|
|
567
|
-
cursor: pointer;
|
|
568
|
-
color: inherit;
|
|
569
|
-
`,qr=i.div`
|
|
570
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
571
|
-
align-items: center;
|
|
572
|
-
padding-top: 2px;
|
|
573
|
-
`,Ur=i(t.SvgCloseRound)`
|
|
574
|
-
width: 12px;
|
|
575
|
-
height: 12px;
|
|
576
|
-
cursor: pointer;
|
|
577
|
-
color: ${e=>e.theme.colors.hero};
|
|
578
|
-
`,Xe="accountReconReviewTableSection",{dateFormat:Gr,expenseAutomation:Kr,common:rt}=t.appLocale.getLocalizedStrings(),{visual:Zs}=Gr,{accountRecon:ye}=Kr,Ys=e=>[{label:ye.review.formLabels.allBankAccounts,options:e.map(s=>({label:s.accountName,value:s.accountId}))}],Xs=e=>[{label:ye.review.formLabels.allCreditCards,options:e.map(s=>({label:s.accountName,value:s.accountId}))}],Xn=e=>`${Xe}_${e}_form`,Ie=(e,s)=>`${Xe}.${e}.${s}`,Jr=e=>{const{sortKey:s,sortOrder:l,accountReconEntity:a,entitySearchAutoCompleteActions:u,allAccountList:p,classList:o,localData:c,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:x,selectedAccountId:d,entitySearchAutoCompleteData:h,excludeFetchById:g,saveFetchById:f,reviewTabSelectedVendorByTransactionId:R,refreshStatus:y,updateLocalData:v,onColumnSortConfigChanged:j,onSaveReconciliation:w,onSaveReconciliationReview:O,onReconMatchedTransactionClick:$,bankAccounts:B,creditCards:b}=e,{transactionsToReview:C}=a,I=m.useRef(null),[L,W]=m.useState(null),T=_=>{const P=C[_],U=V.isReviewTransactionBillPaymentType(P),K=V.isReviewTransactionExpenseType(P),M=V.isReviewTransactionCreditCardPaymentType(P),Q=V.isReviewTransactionBankTransferType(P),Se=V.isReviewTransactionDepositType(P),H=P.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return P.transactionId===L?K||M||Q||Se?275+(H?25:0):U?185+P.recommendedAction.recommendedTransactions.length*40+(H?25:0):146:72},X=m.useMemo(()=>({onColumnSortConfigChanged:j,sortConfig:{sortKey:s,sortOrder:l}}),[j,s,l]);if(m.useEffect(()=>{W(C[0]?.transactionId??null),I.current?.resetAfterIndex(0)},[s,l]),m.useEffect(()=>{I.current?.resetAfterIndex(0)},[L]),m.useEffect(()=>{I.current?.resetAfterIndex(0)},[C.length]),m.useEffect(()=>{y.fetchState==="Completed"&&I.current?.resetAfterIndex(0)},[y]),C.length===0){const _=Fe("reconciliation",void 0,d).tabs.find(P=>P.id==="review")?.allDoneText;return n.jsxRuntimeExports.jsx(ja,{children:n.jsxRuntimeExports.jsx(ut,{tab:"reconciliation",title:_?.title??rt.strings.empty,subTitle:_?.subTitle??rt.strings.empty})})}return n.jsxRuntimeExports.jsx(sa,{children:n.jsxRuntimeExports.jsx(Qs.Provider,{value:X,children:n.jsxRuntimeExports.jsx(n.AutoSizer,{children:({height:_,width:P})=>n.jsxRuntimeExports.jsx(n.VariableSizeList,{width:P,height:_,innerElementType:eo,ref:I,itemCount:C.length,itemSize:T,itemKey:U=>C[U].transactionId,overscanCount:So.OVERSCAN_COUNT,itemData:{transactionsList:C,expandedRowId:L,allAccountList:p,classList:o,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:x,localData:c,entitySearchAutoCompleteData:h,entitySearchAutoCompleteActions:u,excludeFetchById:g,saveFetchById:f,reviewTabSelectedVendorByTransactionId:R,bankAccounts:B,creditCards:b,updateLocalData:v,setExpandedRowId:W,onSaveReconciliation:w,onSaveReconciliationReview:O,onReconMatchedTransactionClick:$},initialScrollOffset:0,children:Zr})})})})},Qs=m.createContext(void 0),eo=m.forwardRef((e,s)=>{const{children:l,style:a,...u}=e,{sortConfig:p,onColumnSortConfigChanged:o}=m.useContext(Qs);return n.jsxRuntimeExports.jsxs(oa,{ref:s,style:{...a,width:"auto",padding:`${t.Space.sp0} ${t.Space.sp8}`},...u,children:[n.jsxRuntimeExports.jsx(Pr,{onColumnSortConfigChanged:o,sortConfig:p}),n.jsxRuntimeExports.jsx(ia,{children:l})]})});eo.displayName="Account recon review table inner element type";const Zr=({index:e,style:s,data:l})=>{const{transactionsList:a,expandedRowId:u,setExpandedRowId:p,entitySearchAutoCompleteActions:o,allAccountList:c,classList:r,localData:x,updateLocalData:d,accountListNestedAccountHierarchy:h,classListNestedAccountHierarchy:g,entitySearchAutoCompleteData:f,onSaveReconciliation:R,onSaveReconciliationReview:y,onReconMatchedTransactionClick:v,excludeFetchById:j,saveFetchById:w,reviewTabSelectedVendorByTransactionId:O,bankAccounts:$,creditCards:B}=l,b=a[e];return n.jsxRuntimeExports.jsx(na,{style:{...s,width:"100%"},children:n.jsxRuntimeExports.jsx(Yr,{transaction:b,expandedRowId:u,setExpandedRowId:p,entitySearchAutoCompleteActions:o,accountListNestedAccountHierarchy:h,allAccountList:c,classList:r,localData:x,updateLocalData:d,entitySearchAutoCompleteData:f,classListNestedAccountHierarchy:g,onSaveReconciliation:R,onSaveReconciliationReview:y,onReconMatchedTransactionClick:v,excludeFetchById:j,saveFetchById:w,selectedVendor:O[b.transactionId],bankAccounts:$,creditCards:B})})},Yr=({transaction:e,expandedRowId:s,accountListNestedAccountHierarchy:l,entitySearchAutoCompleteActions:a,allAccountList:u,classList:p,classListNestedAccountHierarchy:o,localData:c,entitySearchAutoCompleteData:r,excludeFetchById:x,saveFetchById:d,selectedVendor:h,bankAccounts:g,creditCards:f,setExpandedRowId:R,updateLocalData:y,onSaveReconciliation:v,onSaveReconciliationReview:j,onReconMatchedTransactionClick:w})=>{const O=s===e.transactionId,$=t.useWindowSizeContext(),B=c[e.transactionId],b=e.recommendedAction.action==="record_bill_payment",C=e.recommendedAction.action==="record_expense",I=u.find(T=>T.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),L=T=>T.recommendedAction.recommendedTransactions.length>0&&T.recommendedAction.recommendedTransactions[0].merchantName!=null?T.recommendedAction.recommendedTransactions[0].merchantName:rt.strings.hyphen,W=e.recommendedAction.recommendedTransactions[0]?.merchantName;return n.jsxRuntimeExports.jsxs(Qr,{isExpanded:O,children:[n.jsxRuntimeExports.jsxs(ea,{isExpanded:O,onClick:()=>R(e.transactionId),"data-testid":t.generateDataTestId("account-reconciliation-review-row",e.transactionId),children:[n.jsxRuntimeExports.jsx($t,{windowSize:$,responsiveWidth:lt[0].width,children:n.jsxRuntimeExports.jsx(Tt,{children:e.transactionDate.format(Zs.MMMDCommaYYYYformat)})}),n.jsxRuntimeExports.jsx($t,{windowSize:$,responsiveWidth:lt[1].width,children:n.jsxRuntimeExports.jsx(Tt,{children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"},text:L(e)})})}),n.jsxRuntimeExports.jsx($t,{windowSize:$,responsiveWidth:lt[2].width,children:n.jsxRuntimeExports.jsx(Tt,{children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),n.jsxRuntimeExports.jsx($t,{windowSize:$,responsiveWidth:lt[3].width,children:n.jsxRuntimeExports.jsx(Tt,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),n.jsxRuntimeExports.jsxs($t,{windowSize:$,responsiveWidth:lt[4].width,children:[n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:b,children:n.jsxRuntimeExports.jsx(fa,{children:n.jsxRuntimeExports.jsx(ya,{children:ye.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:!b,children:n.jsxRuntimeExports.jsx(Tt,{children:I!=null?n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(to,{}),n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"},text:I.accountName})]}):rt.strings.hyphen})})]}),n.jsxRuntimeExports.jsx($t,{windowSize:$,isLastColumn:!0,responsiveWidth:lt[5].width,children:n.jsxRuntimeExports.jsx(Tt,{children:t.amountValueToString("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),n.jsxRuntimeExports.jsxs(t.ControlledComponent,{controller:O&&B!=null,children:[n.jsxRuntimeExports.jsx(Xr,{onSaveReconciliation:v,onSaveReconciliationReview:j,updateLocalData:y,saveFetchById:d,excludeFetchById:x,localData:B,classListNestedAccountHierarchy:o,allAccountList:u,classList:p,transaction:e,accountListNestedAccountHierarchy:l,entitySearchAutoCompleteActions:a,entitySearchAutoCompleteData:r,selectedVendor:h,bankAccounts:g,creditCards:f,onReconMatchedTransactionClick:w}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:(b||C)&&W!=null,children:n.jsxRuntimeExports.jsx(Ra,{children:n.jsxRuntimeExports.jsxs(Ca,{children:[ye.review.bankDetail,rt.strings.colon," ",W]})})})]})]})},Xr=({transaction:e,accountListNestedAccountHierarchy:s,entitySearchAutoCompleteActions:l,allAccountList:a,classList:u,classListNestedAccountHierarchy:p,localData:o,entitySearchAutoCompleteData:c,excludeFetchById:r,saveFetchById:x,selectedVendor:d,bankAccounts:h,creditCards:g,updateLocalData:f,onSaveReconciliation:R,onSaveReconciliationReview:y,onReconMatchedTransactionClick:v})=>{const j=n.useTheme(),[w,O]=m.useState(!o.vendor?.id),[$,B]=m.useState(!o.customer?.id),[b,C]=m.useState(o.categoryId==null),[I,L]=m.useState(o.classId==null),[W,T]=m.useState(o.bankAccountId==null),[X,_]=m.useState(o.creditCardId==null),[P,U]=m.useState(!o.memo),K=V.isReviewTransactionBillPaymentType(e),M=V.isReviewTransactionExpenseType(e),Q=V.isReviewTransactionBankTransferType(e),Se=V.isReviewTransactionCreditCardPaymentType(e),H=V.isReviewTransactionDepositType(e),he=m.useMemo(()=>{if(!M)return t.getGroupedAccountOptions(s);if(d!=null&&d.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return t.getGroupedAccountOptions(s,d?.recommendations);const E=a.find(me=>me.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),Y=E!=null?{...E,reason:ye.review.zeniGptRecommendation,min:0,max:0}:void 0;return t.getGroupedAccountOptions(s,[{account:Y}])},[M,d,e.recommendedAction.recommendedTransactions,a,s]),ge=m.useMemo(()=>{if(!M)return t.getGroupedClassOptions(p);if(d!=null&&d.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return t.getGroupedClassOptions(p,d?.recommendations);const E=u.find(me=>me.classId===e.recommendedAction.recommendedTransactions[0]?.classId),Y=E!=null?{...E,reason:ye.review.zeniGptRecommendation,min:0,max:0}:void 0;return t.getGroupedClassOptions(p,[{class:Y}])},[M,d,e.recommendedAction.recommendedTransactions,u,p]),S=n.useForm({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:m.useMemo(()=>Qn(e,o,he,a,ge,h,g,c),[e,o,ge,a,he,h,g,c]),values:m.useMemo(()=>Qn(e,o,he,a,ge,h,g,c),[e,o,ge,a,he,h,g,c])}),N=async(E,Y)=>{E.includes("memo")||f(es(Y,e,c,a),e.transactionId,E.includes("vendor"))};m.useEffect(()=>{const E=S.watch((Y,{name:me})=>{me!=null&&Y!=null&&n.defer(()=>N(me,Y))});return()=>{E.unsubscribe()}});const q=m.useCallback(E=>{if(M||H){if(M&&o.vendor==null){O(!1),S.setError(Ie(e.transactionId,"vendor"),{type:"required"});return}if(H&&o.customer==null){B(!1),S.setError(Ie(e.transactionId,"customer"),{type:"required"});return}if(o.categoryId==null){C(!1),S.setError(Ie(e.transactionId,"category"),{type:"required"});return}}f(es(E,e,c,a),e.transactionId,!1),y(e.transactionId)},[M,H,f,e,c,a,y,o.categoryId,o.vendor,o.customer]),F=S.watch(Ie(e.transactionId,"vendor")),z=S.watch(Ie(e.transactionId,"customer")),A=m.useRef(),G=m.useMemo(()=>M?"vendor":H?"customer":null,[M,H]),le=(E,Y)=>{G!=null&&l.onAutoCompleteInputChange?.(E,G),A.current=Y};m.useEffect(()=>{c.entityAutoCompleteView.fetchState==="Completed"&&(M&&A.current?.(t.getVendorOptions(c.entityAutoCompleteView)),H&&A.current?.(t.getCustomerOptions(c.entityAutoCompleteView)))},[c.entityAutoCompleteView,H,M]);const D=E=>u.filter(me=>me.classId===E)[0]?.accountingClassNumber??void 0,ee=E=>a.filter(me=>me.qboId===E)[0]?.qboId,te=m.useMemo(()=>{switch(e.recommendedAction.action){case"record_bill_payment":return["record_bill_payment"];case"record_cc_payment":case"record_expense":case"record_transfer":return["record_expense","record_transfer","record_cc_payment"];default:return["record_deposit","record_cc_credit"]}},[e.recommendedAction.action]),J=()=>{C(!1)},je=()=>{T(!1)},Ce=()=>{_(!1)};return m.useEffect(()=>{b===!1&&o.categoryId==null&&S.setFocus(Ie(e.transactionId,"category"))},[b]),m.useEffect(()=>{I===!1&&o.classId==null&&S.setFocus(Ie(e.transactionId,"class"))},[I]),m.useEffect(()=>{w===!1&&o.vendor==null&&S.setFocus(Ie(e.transactionId,"vendor"))},[w]),m.useEffect(()=>{$===!1&&o.customer==null&&S.setFocus(Ie(e.transactionId,"customer"))},[$]),m.useEffect(()=>{W===!1&&o.bankAccountId==null&&S.setFocus(Ie(e.transactionId,"bankAccount"))},[W]),m.useEffect(()=>{X===!1&&o.creditCardId==null&&S.setFocus(Ie(e.transactionId,"creditCard"))},[X]),n.jsxRuntimeExports.jsx(n.FormProvider,{...S,children:n.jsxRuntimeExports.jsx("form",{onSubmit:S.handleSubmit(q),id:Xn(e.transactionId),children:n.jsxRuntimeExports.jsxs(ta,{children:[n.jsxRuntimeExports.jsxs(ra,{children:[n.jsxRuntimeExports.jsxs(la,{children:[n.jsxRuntimeExports.jsxs(da,{children:[n.jsxRuntimeExports.jsx(to,{}),n.jsxRuntimeExports.jsx(t.LabeledRadioField,{label:{label:K?ye.review.formLabels.match:ye.review.formLabels.categorize},radioField:{name:Ie(e.transactionId,"match_radio"),id:K?"match":"categorize",value:K?"match":"categorize",checked:!0,style:{width:t.Space.sp3,height:t.Space.sp3,padding:"2px"}},style:{width:"auto"}})]}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:!K,children:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(ts,{}),te.map(E=>n.jsxRuntimeExports.jsx(t.LabeledRadioField,{label:{label:ye.review.formLabels[E]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:Ie(e.transactionId,"recommendedActionType"),id:E,value:E,style:{width:t.Space.sp3,height:t.Space.sp3,padding:"2px"}}},E))]})})]}),n.jsxRuntimeExports.jsxs(ca,{children:[n.jsxRuntimeExports.jsx(t.Button,{variant:"secondary",size:"small",label:ye.review.formLabels.exclude,loading:r[e.transactionId]?.fetchState==="In-Progress","data-testid":t.generateDataTestId("account-reconciliation-review-exclude-button",e.transactionId),style:{width:t.Space.sp10},reverseSpinnerColor:!1,onClick:()=>{R({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),n.jsxRuntimeExports.jsx(t.Button,{form:Xn(e.transactionId),"data-testid":t.generateDataTestId("account-reconciliation-review-save-button",e.transactionId),label:rt.footer.save,style:{width:t.Space.sp10},variant:"primary",size:"small",type:"submit",loading:x[e.transactionId]?.fetchState==="In-Progress"})]})]}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:M||H,children:n.jsxRuntimeExports.jsxs(on,{children:[n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:M,children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.vendor==null&&w===!1&&O(!0)},children:n.jsxRuntimeExports.jsx(Z,{style:{flex:1,padding:t.sp[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",style:{padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(ne,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:rt.texts.vendor}),n.jsxRuntimeExports.jsx(oe,{style:{gap:t.sp[3]},className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:w===!0?n.jsxRuntimeExports.jsxs(ie,{onClick:E=>{E.stopPropagation(),O(!1)},"data-testid":t.generateDataTestId("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:j.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(Et,{}),ye.review.formLabels.addVendor]}):n.jsxRuntimeExports.jsx(t.AutoCompleteSingleSelectField,{name:Ie(e.transactionId,"vendor"),allowEmpty:!1,placeholder:ye.review.formLabels.addVendor,valueToId:E=>E,defaultValue:{selectedOption:F?.selectedOption,defaultOptions:F?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:t.Space.sp4})},registerOptions:{required:!0,validate:E=>!!E.selectedOption},loadOptions:le})})})]})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:H,children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.customer==null&&$===!1&&B(!0)},children:n.jsxRuntimeExports.jsx(Z,{style:{flex:1,padding:t.sp[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",style:{padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(ne,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:rt.texts.customer}),n.jsxRuntimeExports.jsx(oe,{style:{gap:t.sp[3]},className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:$===!0?n.jsxRuntimeExports.jsxs(ie,{onClick:E=>{E.stopPropagation(),B(!1)},"data-testid":t.generateDataTestId("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:j.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(Et,{}),ye.review.formLabels.addCustomer]}):n.jsxRuntimeExports.jsx(t.AutoCompleteSingleSelectField,{name:Ie(e.transactionId,"customer"),allowEmpty:!1,placeholder:ye.review.formLabels.addCustomer,valueToId:E=>E,defaultValue:{selectedOption:z?.selectedOption,defaultOptions:z?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:t.Space.sp4})},registerOptions:{required:!0,validate:E=>!!E.selectedOption},loadOptions:le})})})]})})})}),n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.categoryId==null&&b===!1&&C(!0)},children:n.jsxRuntimeExports.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(ne,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:rt.texts.category}),n.jsxRuntimeExports.jsx(oe,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:b===!0?n.jsxRuntimeExports.jsxs(ie,{onClick:E=>{E.stopPropagation(),J()},"data-testid":t.generateDataTestId("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:j.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(Et,{}),ye.review.formLabels.addCategory]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ie(e.transactionId,"category"),placeholder:ye.review.formLabels.addCategory,valueToId:E=>ee(E),defaultValue:{allOptions:he,selectedOption:a.find(E=>E.accountId===o.categoryId)?.qboId},registerOptions:{required:!0,validate:E=>!!E.selectedOption},customStyleConfig:Kt})})})]})})}),n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.classId==null&&I===!1&&L(!0)},children:n.jsxRuntimeExports.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(ne,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:rt.texts.class}),n.jsxRuntimeExports.jsx(oe,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:I===!0?n.jsxRuntimeExports.jsxs(ie,{onClick:E=>{E.stopPropagation(),L(!1)},"data-testid":t.generateDataTestId("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:j.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(Et,{}),ye.review.formLabels.addClass]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ie(e.transactionId,"class"),placeholder:ye.review.formLabels.addClass,valueToId:E=>D(E),defaultValue:{allOptions:ge,selectedOption:o.classId},registerOptions:{required:!0,validate:E=>!!E.selectedOption},customStyleConfig:Kt})})})]})})})]})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:K,children:n.jsxRuntimeExports.jsxs(ua,{children:[n.jsxRuntimeExports.jsxs(pa,{children:[n.jsxRuntimeExports.jsx("span",{className:"matched-text",children:`${ye.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),ye.review.matchesFoundFullInfo]}),n.jsxRuntimeExports.jsx(xa,{children:e.recommendedAction.recommendedTransactions.map(E=>E.bookTransactionId!=null?n.jsxRuntimeExports.jsxs(ha,{children:[n.jsxRuntimeExports.jsx(t.LabeledRadioField,{label:{label:n.jsxRuntimeExports.jsxs(ma,{children:[n.jsxRuntimeExports.jsx(t.StandardRegular,{children:E.date.format(Zs.MMMDCommaYYYYformat)}),n.jsxRuntimeExports.jsx(t.StandardRegular,{children:E.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:Ie(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:E.bookTransactionId,value:E.bookTransactionId,style:{width:t.Space.sp3,height:t.Space.sp3,padding:"2px"}}}),n.jsxRuntimeExports.jsxs(Sa,{"data-testid":t.generateDataTestId("account-reconciliation-review-matched-transaction-amount",E.bookTransactionId),onClick:()=>{E.bookTransactionId!=null&&v(E.bookTransactionId)},children:[n.jsxRuntimeExports.jsx(ga,{children:t.amountValueToString("0,0.00",E.amount.amount,E.amount.currencySymbol)}),n.jsxRuntimeExports.jsx(ts,{})]})]},E.bookTransactionId):null)})]})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:Q,children:n.jsxRuntimeExports.jsx(on,{children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.bankAccountId==null&&W===!1&&T(!0)},children:n.jsxRuntimeExports.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(ne,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:ye.review.formLabels.transferTo}),n.jsxRuntimeExports.jsx(oe,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:W===!0?n.jsxRuntimeExports.jsxs(ie,{onClick:E=>{E.stopPropagation(),je()},"data-testid":t.generateDataTestId("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:j.colors.brandColorGoldDark,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(Et,{}),ye.review.formLabels.selectAccount]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ie(e.transactionId,"bankAccount"),placeholder:ye.review.formLabels.selectAccount,defaultValue:{allOptions:Ys(h),selectedOption:o.bankAccountId},registerOptions:{required:!0,validate:E=>!!E.selectedOption},customStyleConfig:Kt})})})]})})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:Se,children:n.jsxRuntimeExports.jsx(on,{children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.creditCardId==null&&X===!1&&_(!0)},children:n.jsxRuntimeExports.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(ne,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:ye.review.formLabels.creditCard}),n.jsxRuntimeExports.jsx(oe,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:X===!0?n.jsxRuntimeExports.jsxs(ie,{onClick:E=>{E.stopPropagation(),Ce()},"data-testid":t.generateDataTestId("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:j.colors.brandColorGoldDark,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(Et,{}),ye.review.formLabels.selectCard]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ie(e.transactionId,"creditCard"),placeholder:ye.review.formLabels.selectCard,defaultValue:{allOptions:Xs(g),selectedOption:o.creditCardId},registerOptions:{required:!0,validate:E=>!!E.selectedOption},customStyleConfig:Kt})})})]})})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:!K,children:n.jsxRuntimeExports.jsx(aa,{children:n.jsxRuntimeExports.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(ne,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:ye.review.header.memo}),n.jsxRuntimeExports.jsx(oe,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:P===!0?n.jsxRuntimeExports.jsxs(ie,{onClick:E=>{E.stopPropagation(),U(!1)},"data-testid":t.generateDataTestId("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:j.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(Et,{}),ye.review.formLabels.addMemo]}):n.jsxRuntimeExports.jsx(t.TextField,{name:Ie(e.transactionId,"memo"),placeholder:ye.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},Kt={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:t.Space.sp4}),singleValue:()=>({margin:0}),menuPortal:()=>({zIndex:9999}),menu:()=>({width:`calc(100% + ${t.Space.sp5})`,marginRight:`-${t.Space.sp3}`,marginLeft:`-${t.Space.sp3}`})},Qn=(e,s,l,a,u,p,o,c)=>{const r=a.find(x=>x.accountId===s.categoryId);return{[Xe]:{[e.transactionId]:{category:{selectedOption:r?.qboId,allOptions:l},class:{selectedOption:s?.classId,allOptions:u},bankAccount:{selectedOption:s?.bankAccountId,allOptions:Ys(p)},creditCard:{selectedOption:s?.creditCardId,allOptions:Xs(o)},memo:s?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:s?.matchedTransactionId,vendor:{selectedOption:s?.vendor?.id,defaultOptions:t.getDefaultVendorOptions$1(c.entityAutoCompleteView,s?.vendor)},customer:{selectedOption:s?.customer?.id,defaultOptions:t.getDefaultCustomerOptions(s?.customer,c.entityAutoCompleteView)}}}}},es=(e,s,l,a)=>{const{vendor:u,customer:p}=e[Xe][s.transactionId];let o;if(u.selectedOption!=null){const x=u.defaultOptions.find(d=>d.value===u.selectedOption);if(x!=null)o={id:u.selectedOption,name:x.label};else{const d=l.entityAutoCompleteView.vendor.find(h=>h.id===u.selectedOption||h.zeniId===u.selectedOption);d!=null&&(o={id:d.zeniId,name:d.name})}}let c;if(p.selectedOption!=null){const x=p.defaultOptions.find(d=>d.value===p.selectedOption);if(x!=null)c={id:p.selectedOption,name:x.label};else{const d=l.entityAutoCompleteView.customer.find(h=>h.id===p.selectedOption||h.zeniId===p.selectedOption);d!=null&&(c={id:d.zeniId,name:d.name})}}return{categoryId:a.find(x=>x.qboId===e[Xe][s.transactionId].category.selectedOption)?.accountId??e[Xe][s.transactionId].category.selectedOption,classId:e[Xe][s.transactionId].class.selectedOption,memo:e[Xe][s.transactionId].memo,matchedTransactionId:e[Xe][s.transactionId].matchedTransaction,vendor:o,bankAccountId:e[Xe][s.transactionId].bankAccount.selectedOption,creditCardId:e[Xe][s.transactionId].creditCard.selectedOption,customer:c}},Tt=i(t.StandardRegular)`
|
|
579
|
-
display: flex;
|
|
580
|
-
align-items: center;
|
|
581
|
-
column-gap: ${t.Space.sp1};
|
|
582
|
-
`,$t=i.div`
|
|
583
|
-
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
584
|
-
display: flex;
|
|
585
|
-
justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
|
|
586
|
-
`,Qr=i.div`
|
|
587
|
-
display: flex;
|
|
588
|
-
flex-direction: column;
|
|
589
|
-
box-sizing: border-box;
|
|
590
|
-
position: relative;
|
|
591
|
-
background: ${e=>e.theme.colors.grey5};
|
|
592
|
-
border: 1px solid
|
|
593
|
-
${e=>e.isExpanded?e.theme.colors.primary:e.theme.colors.grey3};
|
|
594
|
-
color: ${e=>e.isExpanded?e.theme.colors.primary:e.theme.colors.hero};
|
|
595
|
-
&:hover {
|
|
596
|
-
border: 1px solid ${e=>e.theme.colors.primary};
|
|
597
|
-
color: ${e=>e.theme.colors.primary};
|
|
598
|
-
}
|
|
599
|
-
box-shadow: ${e=>e.theme.colors.elevation1};
|
|
600
|
-
border-radius: ${t.Space.sp2};
|
|
601
|
-
`,ea=i.div`
|
|
602
|
-
display: flex;
|
|
603
|
-
flex-direction: row;
|
|
604
|
-
align-items: center;
|
|
605
|
-
cursor: pointer;
|
|
606
|
-
padding: ${t.Space.sp3} ${t.Space.sp4};
|
|
607
|
-
column-gap: ${t.Space.sp2};
|
|
608
|
-
|
|
609
|
-
border-bottom: ${e=>e.isExpanded?"1px solid "+e.theme.colors.primary:"none"};
|
|
610
|
-
`,ta=i.div`
|
|
611
|
-
padding: ${t.Space.sp2} ${t.Space.sp4};
|
|
612
|
-
display: flex;
|
|
613
|
-
flex-direction: column;
|
|
614
|
-
row-gap: ${t.Space.sp2};
|
|
615
|
-
`,na=i.div`
|
|
616
|
-
top: ${t.Space.sp0};
|
|
617
|
-
left: ${t.Space.sp0};
|
|
618
|
-
box-sizing: border-box;
|
|
619
|
-
`,sa=i.div`
|
|
620
|
-
height: calc(100vh - 350px);
|
|
621
|
-
max-width: 99.9%;
|
|
622
|
-
padding: ${t.Space.sp0};
|
|
623
|
-
`,oa=i.div``,ia=i.div`
|
|
624
|
-
position: relative;
|
|
625
|
-
width: auto;
|
|
626
|
-
height: 100%;
|
|
627
|
-
display: flex;
|
|
628
|
-
flex-direction: column;
|
|
629
|
-
row-gap: ${t.Space.sp3};
|
|
630
|
-
`,ra=i.div`
|
|
631
|
-
display: flex;
|
|
632
|
-
flex-direction: row;
|
|
633
|
-
align-items: center;
|
|
634
|
-
justify-content: space-between;
|
|
635
|
-
padding: 12px ${t.Space.sp3};
|
|
636
|
-
background-color: ${e=>e.theme.colors.background};
|
|
637
|
-
border-radius: ${t.Space.sp2};
|
|
638
|
-
`,on=i.div`
|
|
639
|
-
display: flex;
|
|
640
|
-
flex-direction: row;
|
|
641
|
-
align-items: center;
|
|
642
|
-
column-gap: ${t.Space.sp3};
|
|
643
|
-
`,aa=i.div`
|
|
644
|
-
width: 100%;
|
|
645
|
-
`,ca=i.div`
|
|
646
|
-
display: flex;
|
|
647
|
-
flex-direction: row;
|
|
648
|
-
align-items: center;
|
|
649
|
-
column-gap: ${t.Space.sp3};
|
|
650
|
-
`,la=i.div`
|
|
651
|
-
display: flex;
|
|
652
|
-
flex-direction: row;
|
|
653
|
-
align-items: center;
|
|
654
|
-
column-gap: ${t.Space.sp6};
|
|
655
|
-
`,da=i.div`
|
|
656
|
-
display: flex;
|
|
657
|
-
flex-direction: row;
|
|
658
|
-
align-items: center;
|
|
659
|
-
column-gap: ${t.Space.sp1};
|
|
660
|
-
`,Et=i(t.SvgAddRound)`
|
|
661
|
-
width: ${t.Space.sp3};
|
|
662
|
-
height: ${t.Space.sp3};
|
|
663
|
-
`,ts=i(t.SvgArrowRight)`
|
|
664
|
-
width: ${t.Space.sp3};
|
|
665
|
-
height: ${t.Space.sp3};
|
|
666
|
-
color: ${e=>e.theme.colors.hero};
|
|
667
|
-
`,ua=i.div`
|
|
668
|
-
display: flex;
|
|
669
|
-
flex-direction: column;
|
|
670
|
-
row-gap: ${t.Space.sp3};
|
|
671
|
-
padding: ${t.Space.sp0} 12px;
|
|
672
|
-
`,pa=i(t.StandardRegular)`
|
|
673
|
-
color: ${e=>e.theme.colors.primary};
|
|
674
|
-
|
|
675
|
-
.matched-text {
|
|
676
|
-
font-weight: ${t.FontWeight.bold};
|
|
677
|
-
}
|
|
678
|
-
`,ma=i.div`
|
|
679
|
-
display: flex;
|
|
680
|
-
align-items: center;
|
|
681
|
-
column-gap: ${t.Space.sp2};
|
|
682
|
-
`,xa=i.div`
|
|
683
|
-
display: flex;
|
|
684
|
-
flex-direction: column;
|
|
685
|
-
row-gap: ${t.Space.sp2};
|
|
686
|
-
`,ha=i.div`
|
|
687
|
-
display: flex;
|
|
688
|
-
flex-direction: row;
|
|
689
|
-
align-items: center;
|
|
690
|
-
justify-content: space-between;
|
|
691
|
-
padding-bottom: ${t.Space.sp2};
|
|
692
|
-
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
693
|
-
`,ga=i(t.StandardRegular)`
|
|
694
|
-
color: ${e=>e.theme.colors.hero};
|
|
695
|
-
`,ja=i.div`
|
|
696
|
-
height: 100%;
|
|
697
|
-
display: flex;
|
|
698
|
-
justify-content: center;
|
|
699
|
-
align-items: center;
|
|
700
|
-
`,fa=i.div`
|
|
701
|
-
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
702
|
-
padding: ${t.Space.sp0} ${t.Space.sp1};
|
|
703
|
-
border-radius: ${t.Space.sp1};
|
|
704
|
-
`,ya=i(t.ExtraSmallRegular)`
|
|
705
|
-
color: ${e=>e.theme.colors.hero};
|
|
706
|
-
`,Sa=i.div`
|
|
707
|
-
display: flex;
|
|
708
|
-
align-items: center;
|
|
709
|
-
column-gap: 20px;
|
|
710
|
-
cursor: pointer;
|
|
711
|
-
`,Ra=i.div`
|
|
712
|
-
text-align: center;
|
|
713
|
-
padding: ${t.Space.sp1} ${t.Space.sp0};
|
|
714
|
-
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
715
|
-
`,Ca=i(t.ExtraSmallRegular)`
|
|
716
|
-
color: ${e=>e.theme.colors.hero};
|
|
717
|
-
`,to=i(t.SvgAiIcon)`
|
|
718
|
-
width: ${t.Space.sp3};
|
|
719
|
-
height: ${t.Space.sp3};
|
|
720
|
-
margin-right: ${t.Space.sp1};
|
|
721
|
-
path {
|
|
722
|
-
stroke-width: 2;
|
|
723
|
-
}
|
|
724
|
-
`,Ea=({reconciliation:e,entitySearchAutoCompleteData:s,selectedAccountId:l,currentFooterFormId:a,entitySearchAutoCompleteActions:u,onUpdateReconcileTabLocalData:p,setCurrentFooterFormId:o,onReconTabColumnSortConfigChanged:c,updateReviewTabLocalData:r,onReconReviewTabColumnSortConfigChanged:x,onSaveReconciliation:d,onSaveReconciliationReview:h,onReconMatchedTransactionClick:g})=>{const{accountReconciliationsByAccountID:f,reconciliationTabsState:{reconcile:{uiState:{sortKey:R,sortOrder:y}}},selectedReconAccount:v}=e,j=f[l],{transactionFetchState:w}=v??{};return w?.fetchState==="In-Progress"||w?.fetchState==="Not-Started"?n.jsxRuntimeExports.jsxs(ns,{style:{paddingLeft:t.sp[8],paddingRight:t.sp[8]},children:[n.jsxRuntimeExports.jsx(va,{children:lt.map(O=>n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:O.loaderWidth,height:18},O.key))}),n.jsxRuntimeExports.jsxs(wa,{children:[...Array(3).fill(0).map((O,$)=>n.jsxRuntimeExports.jsx(ba,{children:lt.map(B=>n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:B.loaderWidth,height:t.sp[4]},B.key))},`${$}_${O}`))]})]}):n.jsxRuntimeExports.jsx(ns,{children:e.selectedTab==="reconcile"?n.jsxRuntimeExports.jsx($r,{selectedAccountId:l,currentFooterFormId:a,setCurrentFooterFormId:o,onUpdateReconcileTabLocalData:p,onReconTabColumnSortConfigChanged:c,onSaveReconciliation:d,sortConfig:{sortKey:R,sortOrder:y},localData:e.reconciliationTabsState.reconcile.localData,matchedTransactions:j?.accountReconEntity.transactionsToReconcile}):n.jsxRuntimeExports.jsx(Jr,{localData:e.reconciliationTabsState.review.localData,reviewTabSelectedVendorByTransactionId:e.reviewTabSelectedVendorByTransactionId,refreshStatus:e.accountReconciliationsByAccountID[l]?.refreshStatus??{fetchState:"Not-Started",error:null},accountReconEntity:e.accountReconciliationsByAccountID[l].accountReconEntity,accountListNestedAccountHierarchy:e.accountListNestedAccountHierarchy,classListNestedAccountHierarchy:e.classListNestedAccountHierarchy,allAccountList:e.allAccountList,classList:e.allClassList,bankAccounts:e.bankAccounts,creditCards:e.creditCards,entitySearchAutoCompleteData:s,updateLocalData:r,entitySearchAutoCompleteActions:u,onColumnSortConfigChanged:x,onSaveReconciliation:d,onSaveReconciliationReview:h,onReconMatchedTransactionClick:g,excludeFetchById:e.actionFetchStates.excludeFetchById,saveFetchById:e.actionFetchStates.saveReconciliationReviewFetch,selectedAccountId:l,sortKey:e.reconciliationTabsState.review.uiState.sortKey,sortOrder:e.reconciliationTabsState.review.uiState.sortOrder})})},ns=i.div`
|
|
725
|
-
width: 100%;
|
|
726
|
-
height: 100%;
|
|
727
|
-
`,va=i.div`
|
|
728
|
-
display: flex;
|
|
729
|
-
justify-content: space-between;
|
|
730
|
-
padding: ${t.Space.sp3} ${t.Space.sp4};
|
|
731
|
-
column-gap: ${t.Space.sp6};
|
|
732
|
-
`,ba=i.div`
|
|
733
|
-
display: flex;
|
|
734
|
-
justify-content: space-between;
|
|
735
|
-
padding: ${t.Space.sp3} ${t.Space.sp4};
|
|
736
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
737
|
-
border-radius: ${t.Space.sp2};
|
|
738
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
739
|
-
box-shadow: ${e=>e.theme.colors.elevation1};
|
|
740
|
-
column-gap: ${t.Space.sp6};
|
|
741
|
-
`,wa=i.div`
|
|
742
|
-
display: flex;
|
|
743
|
-
gap: ${t.Space.sp3};
|
|
744
|
-
flex-direction: column;
|
|
745
|
-
`;function Ia({title:e,config:s,nodeId:l}){return{children:[],id:l??Ae.uniqueID("loading_in_progress",[],e),isLastNode:!1,reportElementData:{element:{kind:"loading_in_progress",title:"",data:[],numOfBalances:0},config:s}}}function ka({account:e,numOfBalances:s,title:l,isLastNode:a,config:u}){const p=Ae.uniqueID("ac_group_report",[],l);return{children:[],id:p,isLastNode:a,reportElementData:{element:{kind:"ac_group_report",title:l,data:e,numOfBalances:s},config:u}}}function Ta({title:e,section:s,config:l,numOfBalances:a,nodeId:u}){return{children:[],id:u??Ae.uniqueID("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:s,numOfBalances:a},config:l}}}function ss({section:e,allAccountReconciliations:s,title:l,subTitle:a,isLastNode:u,isTitleRowRequired:p,config:o}){const c=Ae.uniqueID("section",[],l),r={children:[],id:c,isLastNode:u,reportElementData:{element:{kind:"section",title:l,data:e,numOfBalances:0},config:o}};if(p){const d=Ae.uniqueID("title_string_only",[],l),h={children:[],id:d,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:l,data:e,numOfBalances:0},config:o}};r.children.push(h)}const x=Ta({title:a,section:e,config:o,numOfBalances:0});return r.children.push(x),e.accountIDs.forEach((d,h)=>{const g=s[d],f=ka({account:g,numOfBalances:0,title:g.accountReconEntity.account.accountName,isLastNode:h===e.accountIDs.length-1,config:o});r.children.push(f)}),r}function no({config:e,accountReconForSection:s,nodeId:l}){return{children:[],id:l??Ae.uniqueID("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:"timeframe_headers",title:"",data:s,numOfBalances:0},config:e}}}const $a=(e,s,l,a,u=!0)=>{const p=no({config:s,accountReconForSection:e.accountReconciliationBySectionID.assets}),o=[];o.push(p);const c=Array.isArray(l[a])?l[a]:[],{expenseAutomation:{accountRecon:{reconciliation:r}},common:{loading:x}}=t.appLocale.getLocalizedStrings(),d=e.fetchStatus.fetchState==="Not-Started"||e.fetchStatus.fetchState==="In-Progress",h=g=>g.filter(f=>!c.includes(f));if(d)[...Array(3)].forEach((g,f)=>{o.push(Ia({title:`${f}+${x}`,config:s}))});else{const g=h(e.accountReconciliationBySectionID.assets.accountIDs),f=ss({section:{...e.accountReconciliationBySectionID.assets,accountIDs:g},allAccountReconciliations:e.accountReconciliationsByAccountID,title:r.headers.section.assets.title,subTitle:r.headers.section.assets.subTitle,isLastNode:!1,isTitleRowRequired:!1,config:s});if(o.push(f),e.accountReconciliationBySectionID.liabilities.accountIDs.length>0){const R=h(e.accountReconciliationBySectionID.liabilities.accountIDs),y=ss({section:{...e.accountReconciliationBySectionID.liabilities,accountIDs:R},allAccountReconciliations:e.accountReconciliationsByAccountID,title:r.headers.section.liabilities.title,subTitle:r.headers.section.liabilities.subTitle,isLastNode:!1,isTitleRowRequired:!0,config:s});o.push(y)}}return{config:s,headerNodes:u?[p]:[],contentNodes:o}};function La(e,s,l,a=!1){Object.assign(e.config,l);const u=no({config:l,accountReconForSection:s.accountReconciliationBySectionID.assets});return{config:l,headerNodes:a?[u]:[],contentNodes:[u,...e.contentNodes.slice(1)]}}const kn={wrapperPadding:new t.ResponsiveSized(t.sp[2],t.sp[2],t.sp[2],t.sp[8]),contentPaddingLeft:new t.ResponsiveSized(t.sp[2],t.sp[2],t.sp[2],t.sp[2]),contentPaddingRight:new t.ResponsiveSized(t.sp[2],t.sp[2],t.sp[2],t.sp[2])},Aa=i.div`
|
|
746
|
-
display: flex;
|
|
747
|
-
height: 100%;
|
|
748
|
-
width: 100%;
|
|
749
|
-
justify-content: center;
|
|
750
|
-
align-items: center;
|
|
751
|
-
`,Oa=i.div`
|
|
752
|
-
display: flex;
|
|
753
|
-
height: 100%;
|
|
754
|
-
min-height: 100%;
|
|
755
|
-
flex: 1 1 auto;
|
|
756
|
-
width: 100%;
|
|
757
|
-
justify-content: center;
|
|
758
|
-
padding-left: ${e=>kn.wrapperPadding.valuePx(e.windowSize)};
|
|
759
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
760
|
-
`,Da=i.div`
|
|
761
|
-
width: 100%;
|
|
762
|
-
height: 100%;
|
|
763
|
-
`,{common:_a}=t.appLocale.getLocalizedStrings();function Ma({reconciliation:e,companyId:s,onScroll:l,onReload:a,onReviewClicked:u,setOpenDrawerClicked:p,onFetchLinkTokenClick:o,onEstablishConnectionClick:c,onAddStatementClick:r}){const[x,d]=m.useState(void 0),[h,g]=m.useState(void 0),f=e.plaidConnectionDetails.link_account_no_microdeposit,R=e.plaidConnectionDetails.update_account,y=h==="update_account"?R:f,[v,j]=m.useState(y.linkToken??null),[w,O]=m.useState(!1),{useDynamicConfig:$}=t.useZeniFeatureContext(),{configValue:B}=$(t.DynamicConfigNames.accountReconGLAccountsConfig),b=m.useCallback(F=>{d(F),g("link_account_no_microdeposit")},[]),C=m.useCallback(F=>{const z=T.current.accountReconciliationsByAccountID[F]?.paymentAccountId;d(F),g("update_account"),o("update_account",z)},[]),I=m.useCallback(F=>{p(F)},[]),L=m.useRef(x),W=m.useRef(h),T=m.useRef(e);m.useEffect(()=>{L.current=x},[x]),m.useEffect(()=>{W.current=h},[h]),m.useEffect(()=>{T.current=e},[e]);const X=m.useCallback(F=>{c(F,L.current??"",W.current),d(void 0),g(void 0),O(!1)},[c]),_=m.useCallback((F,z)=>{F!=null&&console.log("Plaid Connection Error",F,z),d(void 0),g(void 0),O(!1)},[]),{open:P,ready:U}=n.usePlaidLink({token:v,onSuccess:X,onExit:_});m.useEffect(()=>{(V.zeniDate(new Date().toISOString()).isAfter(y.expiration)||y.linkToken==null)&&y.fetchStatus.fetchState==="Not-Started"&&o("link_account_no_microdeposit")},[y.fetchStatus.fetchState]),m.useEffect(()=>{!w&&h!=null&&y.linkToken===v&&y.fetchStatus.fetchState==="Completed"&&U&&O(!0)},[U,v,y.fetchStatus.fetchState,y.linkToken,h,w]),m.useEffect(()=>{y.fetchStatus.fetchState==="Completed"&&y.linkToken!=null&&y.linkToken!==v&&j(y.linkToken)},[y.fetchStatus.fetchState,y.linkToken,v]),m.useEffect(()=>{w&&P()},[w,P]);const[K,M]=m.useState(void 0),[Q,Se]=m.useState(void 0),H=V.zeniDate("2025-03-31"),he=1,ge="account_reconciliation",S=t.useWindowSizeContext(),N=n.useTheme(),q=!0;return m.useEffect(()=>{const F={reportId:ge,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:H,firstMonthOfFY:he,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,dataAvailable:void 0,accountReconciliationConfig:{selectedDrawerAccountId:e.selectedDrawerAccountId,onReviewClicked:u,onConnectClicked:b,onReconnectClicked:C,onOpenDrawerClicked:I,onStatementAddClicked:r}};if(K==null||!n.isEqual(Q,e)){const z=$a(e,F,B,s,q);Se(e),M(z)}else{const z=La(K,e,F,q);M(z)}},[e]),e.fetchStatus.fetchState==="Error"?n.jsxRuntimeExports.jsx(Aa,{children:n.jsxRuntimeExports.jsx(pe.ReloadContainer,{onReload:a,message:_a.errorMessage.somethingWentWrong})}):n.jsxRuntimeExports.jsx(Oa,{windowSize:S,children:K!=null?n.jsxRuntimeExports.jsx(Da,{windowSize:S,children:n.jsxRuntimeExports.jsx(Ae.CollapsableReportTable,{backgroundColor:new n.Color(N.colors.grey4),rootNodes:K,type:"name+balances_actual",compareMode:"compare_mode_percent",isSticky:{isStickyHeader:q,isStickyName:q},treeNodePadding:{left:kn.contentPaddingLeft.value(S),right:kn.contentPaddingRight.value(S)},nodeOpenStatus:{},scrollPosition:e.reconListUIState.scrollPosition,onCompareModeChanged:()=>{},onScroll:l})}):null})}function Ba({currentFooterFormId:e,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:l,reconciliation:a,companyId:u,onReconTabColumnSortConfigChanged:p,updateReconReviewTabLocalData:o,onUpdateReconcileTabLocalData:c,setCurrentFooterFormId:r,onReloadReconciliationListPage:x,onReviewClicked:d,onFetchLinkTokenClick:h,onEstablishConnectionClick:g,onAddStatementClick:f,onReconReviewTabColumnSortConfigChanged:R,onSaveReconciliation:y,onSaveReconciliationReview:v,setOpenDrawerClicked:j,onReconMatchedTransactionClick:w,onReconListPageScroll:O}){return a.selectedAccountId==null?n.jsxRuntimeExports.jsx(Ma,{companyId:u,onScroll:O,reconciliation:a,onReload:x,onReviewClicked:d,onFetchLinkTokenClick:h,onEstablishConnectionClick:g,setOpenDrawerClicked:j,onAddStatementClick:f}):n.jsxRuntimeExports.jsx(Ea,{currentFooterFormId:e,setCurrentFooterFormId:r,onUpdateReconcileTabLocalData:c,onReconTabColumnSortConfigChanged:p,reconciliation:a,updateReviewTabLocalData:o,entitySearchAutoCompleteActions:l,onReconReviewTabColumnSortConfigChanged:R,entitySearchAutoCompleteData:s,selectedAccountId:a.selectedAccountId,onSaveReconciliation:y,onSaveReconciliationReview:v,onReconMatchedTransactionClick:w})}function Na({accountAndClassReport:e,numOfBalances:s,title:l,isLastNode:a,isFirstNode:u,config:p,parentNodeIDs:o,ancestorMetadata:c}){let r="";return e.accountBase&&e.classBase?r=`${e.accountBase.accountId}_${e.classBase.classId}`:e.accountBase?r=e.accountBase.accountId:e.classBase&&(r=e.classBase.classId),{children:[],id:Ae.uniqueID("flux_vendor_account_class_row",o,r),isLastNode:a,isFirstNode:u,reportElementData:{element:{kind:"flux_vendor_account_class_row",title:l,data:e,metadata:c,numOfBalances:s},config:p}}}function Pa({vendorView:e,numOfBalances:s,title:l,isLastNode:a,config:u,parentNodeIDs:p}){const o=Ae.uniqueID("flux_vendor_row",p,e.vendor.id),c={children:[],id:o,isLastNode:a,reportElementData:{element:{kind:"flux_vendor_row",title:l,data:e,numOfBalances:s},config:u}},r=e.vendorAccountsAndClasses;return c.children=r.map((x,d)=>Na({accountAndClassReport:x,numOfBalances:s,title:x.accountBase?.accountName??"",config:u,isLastNode:d===r.length-1,isFirstNode:d===0,parentNodeIDs:[...p,o],ancestorMetadata:{accountAndClassRowMetadata:{depth:0,hasSibling:r.length>1,hasChildren:!1,isLastNode:d===r.length-1,isFirstNode:d===0,name:x.accountBase?.accountName},isVendorLastChild:a,vendorId:e.vendor.id}})),c}function Fa({section:e,numOfBalances:s,title:l,isLastNode:a,config:u}){const p=e.sectionId,o={children:[],id:p,isLastNode:a,reportElementData:{element:{kind:"section",title:l,data:e,numOfBalances:s,sectionType:e.sectionId},config:u}},c=(e.vendors??[]).map((r,x)=>Pa({vendorView:r,numOfBalances:s,title:r.vendor.name,isLastNode:x===e.vendors.length-1,config:u,parentNodeIDs:[p]}));return o.children.push(...c),o}function za({title:e,balances:s,config:l,nodeId:a}){return{children:[],id:a??Ae.uniqueID("headers_loading_in_progress",[],e),isLastNode:!1,reportElementData:{element:{kind:"headers_loading_in_progress",title:"",data:s,numOfBalances:s.length},config:l}}}function Ha({title:e,data:s,isLastNode:l,config:a,numOfBalances:u}){const p=Ae.uniqueID("total",[],e);return{children:[],id:p,isLastNode:l,reportElementData:{element:{kind:"total",title:e,data:s,numOfBalances:u},config:a}}}const{common:Jt,expenseAutomation:{fluxAnalysis:Wa}}=t.appLocale.getLocalizedStrings(),Va=(e,s,l=!0)=>{const a=e.sections.generalExpense.balancesByMonth?Object.keys(e.sections.generalExpense.balancesByMonth).length:e.sections.reimbursement.balancesByMonth?Object.keys(e.sections.reimbursement.balancesByMonth).length:2,u=e.sections.generalExpense.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.sections.reimbursement.balancesByMonth):[],p=Vs.mapTimeframeBalancesToTreeNode({balances:u,config:s}),o=[],c=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken==null,r=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken!=null||e.sections.reimbursement.fetchStatus.fetchState==="In-Progress";if(c===!0)o.push(za({title:`${Jt.loading}`,balances:u,config:s})),[...Array(10)].forEach((x,d)=>{o.push(Pn.mapLoadingInProgressToTreeNode({title:`${d}+${Jt.loading}`,balances:u,config:s}))});else{if(o.push(p),["generalExpense","reimbursement"].forEach(d=>{const h=e.sections[d];if(h.vendors.length>0||h.fetchStatus.fetchState==="Completed"){const g=Ae.mapFluxBalancesByMonthToBalances(h.balancesByMonth);o.push(Fa({section:{sectionId:d,reportId:"flux_analysis_operating_expense",balances:g,vendors:h.vendors,varianceAmount:h.varianceAmount,variancePercentage:h.variancePercentage,currency:e.currency},numOfBalances:a,title:qa(d),isLastNode:!1,config:s}))}}),e.totalBalancesAndVariance){const d=e.totalBalancesAndVariance.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.totalBalancesAndVariance.balancesByMonth):[],h=Ha({title:Jt.texts.total,data:{balances:d,varianceAmount:e.totalBalancesAndVariance.varianceAmount,variancePercentage:e.totalBalancesAndVariance.variancePercentage,currency:e.currency},config:s,isLastNode:!0,numOfBalances:a});o.push(h)}r===!0&&[...Array(1)].forEach((d,h)=>{o.push(Pn.mapLoadingInProgressToTreeNode({title:`${h}+${Jt.loading}`,balances:u,config:s}))})}return{config:s,headerNodes:l&&!c?[p]:[],contentNodes:o}},qa=e=>Wa.sectionTitle[e];function Ua(e,s,l,a=!0){Object.assign(e.config,s);const u=Ga(l),p=Vs.mapTimeframeBalancesToTreeNode({balances:u,config:s});return{config:s,headerNodes:a?[p]:[],contentNodes:[p,...e.contentNodes.slice(1)]}}const Ga=e=>e.sections.generalExpense.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.sections.reimbursement.balancesByMonth):[],Tn={contentPaddingLeft:new t.ResponsiveSized(t.sp[0],t.sp[0],t.sp[0]),contentPaddingRight:new t.ResponsiveSized(t.sp[3],t.sp[3],t.sp[8]),wrapperPadding:new t.ResponsiveSized(t.sp[3],t.sp[3],t.sp[8])},Ka=i.div`
|
|
764
|
-
display: flex;
|
|
765
|
-
position: sticky;
|
|
766
|
-
width: 100%;
|
|
767
|
-
justify-content: center;
|
|
768
|
-
padding-top: ${e=>Tn.wrapperPadding.valuePx(e.windowSize)};
|
|
769
|
-
padding-left: 20px;
|
|
770
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
771
|
-
`,Ja=i.div`
|
|
772
|
-
width: 100%;
|
|
773
|
-
height: calc(100vh - ${t.Space.sp11});
|
|
774
|
-
`,Za=e=>{const{fluxView:s,handleRedirectToVendorDetailPage:l,updateOperatingExpensesIdsForReview:a,updateSectionIdsForReview:u,onSortOrderChanged:p,updateNodeCollapsableStatus:o,fetchReimbursementView:c,fetchGeneralExpenseView:r}=e,x=t.useWindowSizeContext(),d=n.useTheme(),[h,g]=m.useState(null),[f,R]=m.useState(null),[y,v]=m.useState(null),j=V.reduceAllFetchState([s.sections.generalExpense.fetchStatus,s.sections.reimbursement.fetchStatus]).fetchState,[w,O]=m.useState(!1),$=t.usePrevious(j),B=t.usePrevious(s.refreshStatus.fetchState),b=()=>{s.uiState.collapsableStatus.generalExpense?s.uiState.paginationInfoByGroup.generalExpense.hasMore===!0&&s.sections.generalExpense.fetchStatus.fetchState==="Completed"?r(s.uiState.paginationInfoByGroup.generalExpense.pageToken):s.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&c(s.uiState.paginationInfoByGroup.reimbursement.pageToken):s.uiState.collapsableStatus.reimbursement&&s.uiState.paginationInfoByGroup.reimbursement.hasMore===!0&&s.sections.reimbursement.fetchStatus.fetchState==="Completed"&&c(s.uiState.paginationInfoByGroup.reimbursement.pageToken)},C=()=>Object.keys(s.uiState.collapsableStatus).reduce((_,P)=>(_[P]=s.uiState.collapsableStatus[P],_),{}),I=m.useCallback(_=>{const P=!(s.uiState.collapsableStatus[_]??!0);o({...s.uiState.collapsableStatus,[_]:P})},[s.uiState.collapsableStatus,o]),L=m.useCallback((_,P)=>{let U=s.reviewOperatingExpensesIds;const K=[];let M=s.selectedSectionIds;const Q=s.sections[_].vendors;K.push(...Q.map(H=>H.fluxAnalysisEntityId));let Se=Ae.FLUX_MAX_SELECTION_LIMIT-U.length;P?(K.forEach(H=>{!U.includes(H)&&Se>0&&(U=[...U,H],Se--)}),M=[...M,_]):(U=U.filter(H=>!K.includes(H)),M=M.filter(H=>H!==_)),a(U),u(M)},[s.reviewOperatingExpensesIds,s.selectedSectionIds,s.sections,a,u]),W=m.useCallback(_=>{const P=s.uiState.collapsableStatus[_]===!1;_==="generalExpense"&&!P&&s.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&c(s.uiState.paginationInfoByGroup.reimbursement.pageToken),I(_)},[s.uiState.collapsableStatus,s.sections.reimbursement.fetchStatus.fetchState,s.uiState.paginationInfoByGroup.reimbursement.pageToken,c,I]),T=s.sections.generalExpense.vendors.length+s.sections.reimbursement.vendors.length,X=_=>_<T;return m.useEffect(()=>{const _={reportId:"flux_analysis_operating_expense",mode:"none",displayOrder:"ascending_date",reportFormat:"summary",firstMonthOfFY:1,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,fluxAnalysisConfig:{sortOrder:s.uiState.sortOrder,sortKey:s.uiState.sortKey,sortOrSearchInProgress:!1,reviewOpExIds:s.reviewOperatingExpensesIds,reviewSectionIds:s.selectedSectionIds,fetchStatus:s.fetchStatus.fetchState,setIsSortApplied:O,onSectionRowClick:W,updateNodeCollapsableStatus:I,updateOperatingExpensesIdsForReview:a,handleRedirectToVendorDetailPage:l,onSectionCheckboxClick:L,onSortOrderChanged:p}};if(h==null||!n.isEqual(f,s)){const P=Va(s,_,!0);R(s),g(P)}else{const P=Ua(h,_,s,!0);g(P)}},[s,f,l,L,W,p,I,a]),n.jsxRuntimeExports.jsx(Ka,{windowSize:x,children:n.jsxRuntimeExports.jsx(Ja,{children:h?n.jsxRuntimeExports.jsx(Ae.CollapsableReportTable,{backgroundColor:new n.Color(d.colors.grey4),rootNodes:h,type:"name+balances_actual",isSticky:{isStickyHeader:!0,isStickyName:!0},treeNodePadding:{left:Tn.contentPaddingLeft.value(x),right:Tn.contentPaddingRight.value(x)},nodeOpenStatus:C(),compareMode:"compare_mode_amount",infiniteLoadingProps:{isItemLoaded:X,itemCount:T,loadMoreItems:b},variableNodeHeightTree:{prevFetchState:$??"Not-Started",fetchState:s.fetchStatus.fetchState,isSortApplied:w,setIsSortApplied:O,reducedFetchState:V.reduceAllFetchState([s.sections.generalExpense.fetchStatus,s.sections.reimbursement.fetchStatus]).fetchState,prevRefreshFetchState:B??"Not-Started",refreshFetchState:s.refreshStatus.fetchState},hoveredParentIdProps:{hoveredParentId:y,setHoveredParentId:v}}):null})})},Ya="expenseAutomationFluxPage",{reports:{common:Xa}}=t.appLocale.getLocalizedStrings(),Qa=({selectedPeriod:e,fluxAnalysis:s,onFetchFluxViewList:l,markAsReview:a,onReloadPage:u,setCurrentFooterFormId:p,updateOperatingExpensesIdsForReview:o,updateSectionIdsForReview:c,onUpdateFluxAnalysisUIState:r,redirectToVendorDetailPage:x,fetchFluxViewOnScroll:d,onFetchReimbursementView:h})=>{const{fetchStatus:g,reviewOperatingExpensesIds:f,uiState:R}=s,y=m.useRef(null),v=m.useRef(!1),j=n.useForm({mode:"all",reValidateMode:"onChange",resetOptions:{keepDefaultValues:!0},defaultValues:ec(f)}),w=t.useWindowSizeContext();m.useEffect(()=>()=>{p("expenseAutomationPage")},[p]),m.useEffect(()=>{v.current&&y?.current?.scrollLeft!=null&&R.scrollPosition?.scrollLeft!==y.current.scrollLeft&&R.scrollPosition!=null&&r({scrollPosition:{scrollTop:R.scrollPosition?.scrollTop,scrollLeft:y.current.scrollLeft}})},[R.scrollPosition?.scrollLeft,y.current?.scrollLeft,R.scrollPosition,r]),m.useEffect(()=>{p(f.length>0?"expenseAutomationFluxPage":"expenseAutomationPage")},[f,p]);const O=C=>{x(C)},$=C=>{d(e,C)},B=(C,I)=>{r({sortOrder:C,sortKey:I}),l(),h(e,null,!1)},b=()=>{const C=so(s.sections,f);a(f,C===!0?"review":"unreview",e,!0)};if(g.fetchState==="Error")return n.jsxRuntimeExports.jsxs(nc,{children:[n.jsxRuntimeExports.jsx(sc,{onClick:u,children:n.jsxRuntimeExports.jsx(t.SvgReload,{})}),n.jsxRuntimeExports.jsx(oc,{children:Xa.failed})]});{const C=L=>{r({collapsableStatus:L})},I=L=>{h(e,L,!0)};return n.jsxRuntimeExports.jsx(n.FormProvider,{...j,children:n.jsxRuntimeExports.jsx("form",{id:t.uniqueName(Ya),onSubmit:j.handleSubmit(b),style:{height:"100%",width:"100%"},children:n.jsxRuntimeExports.jsx(tc,{windowSize:w,children:n.jsxRuntimeExports.jsx(Za,{fluxView:s,handleRedirectToVendorDetailPage:O,onSortOrderChanged:B,updateOperatingExpensesIdsForReview:o,updateNodeCollapsableStatus:C,fetchReimbursementView:I,updateSectionIdsForReview:c,fetchGeneralExpenseView:$,reportId:"flux_analysis_operating_expense"})})})})}},so=(e,s)=>{const a=[...e.generalExpense.vendors,...e.reimbursement.vendors].filter(p=>p.status==="Pending Review");let u;return a.forEach(p=>{s.includes(p.fluxAnalysisEntityId)&&(u=!0)}),u},ec=e=>({fluxAnalysisRowIds:e}),tc=i.div`
|
|
775
|
-
display: flex;
|
|
776
|
-
flex: 1 1 auto;
|
|
777
|
-
min-height: 100%;
|
|
778
|
-
flex-direction: column;
|
|
779
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
780
|
-
padding: ${t.Space.sp0};
|
|
781
|
-
gap: 2px;
|
|
782
|
-
height: 100%;
|
|
783
|
-
.flux-vendor-name-sticky,
|
|
784
|
-
.flux-vendor-header-sticky,
|
|
785
|
-
.flux-section-name-container,
|
|
786
|
-
.flux-class-and-account-value-container,
|
|
787
|
-
.flux-vendor-name-container,
|
|
788
|
-
.flux-total-row {
|
|
789
|
-
border-right: 1px solid transparent;
|
|
790
|
-
}
|
|
791
|
-
&:hover {
|
|
792
|
-
.flux-vendor-name-sticky,
|
|
793
|
-
.flux-vendor-header-sticky,
|
|
794
|
-
.flux-section-name-container,
|
|
795
|
-
.flux-class-and-account-value-container,
|
|
796
|
-
.flux-vendor-name-container,
|
|
797
|
-
.flux-total-row {
|
|
798
|
-
border-right: ${e=>` 1px solid ${e.theme.colors.grey3}`};
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
`,nc=i.div`
|
|
802
|
-
display: flex;
|
|
803
|
-
width: 100%;
|
|
804
|
-
height: 100vh;
|
|
805
|
-
flex-direction: column;
|
|
806
|
-
justify-content: center;
|
|
807
|
-
align-items: center;
|
|
808
|
-
`,sc=i.div`
|
|
809
|
-
height: 96px;
|
|
810
|
-
width: 96px;
|
|
811
|
-
background: ${e=>e.theme.colors.background};
|
|
812
|
-
border-radius: 50%;
|
|
813
|
-
cursor: pointer;
|
|
814
|
-
& svg {
|
|
815
|
-
margin: ${t.Space.sp5};
|
|
816
|
-
color: ${e=>e.theme.colors.grey1};
|
|
817
|
-
}
|
|
818
|
-
&:hover {
|
|
819
|
-
& svg {
|
|
820
|
-
color: ${e=>e.theme.colors.primary};
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
`,oc=i(t.SmallRegular)`
|
|
824
|
-
margin-top: ${t.Space.sp3};
|
|
825
|
-
color: ${e=>e.theme.colors.hero};
|
|
826
|
-
`,ic="expenseAutomationJEAccountSettingsPage",oo="vendorsAccountSection",rc=e=>`${e}_form`;function ac({accountSettings:e,currentFooterFormId:s,onSaveJeAccountSettingsClick:l,setIsJeAccountSettingsOpened:a,onJeAccountSettingsChange:u,setResetJeAccountSettingsForm:p,setCurrentFooterFormId:o}){const c=e.prepaidExpensesRecommendations,r=e.fixedAssetsRecommendations,x=e.accruedExpensesRecommendations,d=m.useMemo(()=>t.getGroupedAccountOptions(e.prepaidExpensesAccountHierarchy,c,"Accounts"),[e.prepaidExpensesAccountHierarchy,c]),h=m.useMemo(()=>t.getGroupedAccountOptions(e.fixedAssetsAccountHierarchy,r,"Accounts"),[e.fixedAssetsAccountHierarchy,r]),g=m.useMemo(()=>t.getGroupedAccountOptions(e.accruedExpensesAccountHierarchy,x,"Accounts"),[e.accruedExpensesAccountHierarchy,x]),f=m.useMemo(()=>lc(e,d,h,g),[e,d,h,g]),R=n.useForm({mode:"all",reValidateMode:"onBlur",defaultValues:f,values:f,resetOptions:{keepDefaultValues:!0}}),y=R.handleSubmit(j=>{l(j)}),v=async j=>{u(j)};return m.useEffect(()=>{const j=R.watch(w=>{w!=null&&n.defer(()=>v(w))});return()=>{j.unsubscribe()}}),m.useEffect(()=>(p(()=>R.reset),a(!0),()=>{o("expenseAutomationPage"),a(!1)}),[]),m.useEffect(()=>{const{selectedPrepaidExpensesAccountIds:j,previousPrepaidExpensesAccount:w,selectedFixedAssetsAccountIds:O,previousFixedAssetsAccount:$,selectedAccruedExpensesAccountIds:B,previousAccruedExpensesAccount:b}=e.accountSettingsLocalData,C=t.compareCurrentAndPreviousList(j,w)||t.compareCurrentAndPreviousList(O,$)||t.compareCurrentAndPreviousList(B,b);C===!0&&s!="expenseAutomationJEAccountSettingsPage"?o("expenseAutomationJEAccountSettingsPage"):C===!1&&s!=="expenseAutomationPage"&&o("expenseAutomationPage")},[e,s,o]),n.jsxRuntimeExports.jsx(cc,{children:n.jsxRuntimeExports.jsx(n.FormProvider,{...R,children:n.jsxRuntimeExports.jsx("form",{id:rc(ic),onSubmit:y,children:n.jsxRuntimeExports.jsx(Ro.VendorsAccountsSection,{showTitle:!1,sectionId:oo,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:e.accruedExpensesAccountHierarchy,accruedExpensesAccountList:e.accruedExpensesAccountList,accruedExpensesRecommendations:e.accruedExpensesRecommendations,fixedAssetsAccountHierarchy:e.fixedAssetsAccountHierarchy,fixedAssetsAccountList:e.fixedAssetsAccountList,fixedAssetsRecommendations:e.fixedAssetsRecommendations,prepaidExpensesAccountHierarchy:e.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:e.prepaidExpensesAccountList,prepaidExpensesRecommendations:e.prepaidExpensesRecommendations,selectedAccruedExpensesAccountIds:e.accountSettingsLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:e.accountSettingsLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:e.accountSettingsLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:!1})})})})}const cc=i.div`
|
|
827
|
-
padding-top: ${t.Space.sp3};
|
|
828
|
-
display: flex;
|
|
829
|
-
align-items: center;
|
|
830
|
-
min-height: 100%;
|
|
831
|
-
flex-direction: column;
|
|
832
|
-
width: 100%;
|
|
833
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
834
|
-
`,lc=(e,s,l,a)=>{const u=e.prepaidExpensesAccountList.filter(d=>e.accountSettingsLocalData.selectedPrepaidExpensesAccountIds.includes(d.accountId)),p=e.fixedAssetsAccountList.filter(d=>e.accountSettingsLocalData.selectedFixedAssetsAccountIds.includes(d.accountId)),o=e.accruedExpensesAccountList.filter(d=>e.accountSettingsLocalData.selectedAccruedExpensesAccountIds.includes(d.accountId)),c=u.map(d=>d.qboId).filter(d=>d!=null),r=p.map(d=>d.qboId).filter(d=>d!=null),x=o.map(d=>d.qboId).filter(d=>d!=null);return{[oo]:{prepaidExpensesAccount:{selectedOptions:c,allOptions:s},fixedAssetsAccount:{selectedOptions:r,allOptions:l},accruedExpensesAccount:{selectedOptions:x,allOptions:a}}}},{expenseAutomation:{jeSchedules:mt},common:{currency:Zt,review:dc,ignore:uc,strings:{hyphen:ct},texts:Yt},dateFormat:pc,timeframe:{month:os}}=t.appLocale.getLocalizedStrings(),mc=({draft:e,ignoreStatus:s,ignoreRecommendedJeSchedule:l,jeScheduleClickHandler:a,onReviewClickHandler:u})=>n.jsxRuntimeExports.jsxs(_n,{onClick:p=>{e.jeScheduleType!=null&&e.jeScheduleId!=null&&a(p,e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":t.generateDataTestId("je-schedule-draft-component",e.jeScheduleId),children:[n.jsxRuntimeExports.jsxs(Dn,{children:[n.jsxRuntimeExports.jsxs(Bn,{children:[n.jsxRuntimeExports.jsxs(An,{children:[n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(ne,{children:Yt.vendor}),n.jsxRuntimeExports.jsxs(oe,{style:{gap:t.sp[2]},children:[e.vendor.logo!=null?n.jsxRuntimeExports.jsx(t.EntityLogoAvatar,{photoUrl:e.vendor.logo.href,styles:{width:t.sp[4],height:t.sp[4]}}):n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:e.vendor.name}),n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:e.vendor.name!=null?n.jsxRuntimeExports.jsx(He,{children:e.vendor.name}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:e.vendor.name??ct})})]})]}),n.jsxRuntimeExports.jsxs(Z,{children:[n.jsxRuntimeExports.jsx(ne,{children:mt.scheduleHeaders.scheduleCategory}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:e.baseTransaction.account.accountName!=null?n.jsxRuntimeExports.jsx(He,{children:e.baseTransaction.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:e.baseTransaction.account.accountName??ct})})})]}),n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(ne,{children:mt.scheduleHeaders.startMonth}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:e.startDate?.format(pc.visual.MMMCommaYYYYFormat)??ct})})]}),n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(ne,{children:mt.scheduleHeaders.period}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:e.period!=null?`${e.period} ${e.period===1?os.slice(0,-1):os}`:ct})})]}),n.jsxRuntimeExports.jsxs(Z,{style:{alignItems:"flex-end",width:ce.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(ne,{children:Yt.totalAmount}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:n.jsxRuntimeExports.jsx(He,{children:t.amountToString("0,0.[00]",V.toAmount(e.baseTransaction.amount.amount,Zt.currencyCode,Zt.currencySymbol))??ct}),children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:t.amountToString("0,0.[00]",V.toAmount(e.baseTransaction.amount.amount,Zt.currencyCode,Zt.currencySymbol))??ct})})})]})]}),n.jsxRuntimeExports.jsxs(On,{children:[n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(ne,{children:Yt.category}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.account?.accountName!=null?n.jsxRuntimeExports.jsx(He,{children:e.jeDebit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:e.jeDebit.account?.accountName??ct})})})]}),n.jsxRuntimeExports.jsxs(Z,{children:[n.jsxRuntimeExports.jsx(ne,{children:Yt.classText}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.accountingClass?.className!=null?n.jsxRuntimeExports.jsx(He,{children:e.jeDebit.accountingClass.className}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:e.jeDebit.accountingClass?.className??ct})})})]}),n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(ne,{children:mt.scheduleHeaders.type}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",style:{width:"unset"},children:n.jsxRuntimeExports.jsx(Js,{children:mt.scheduleTypes[e.jeScheduleType??"prepaid_expenses"]})})})]}),e.jeScheduleType==="fixed_assets"?n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(ne,{children:mt.scheduleHeaders.accumulatedCategory}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:e.jeCredit.account?.accountName!=null?n.jsxRuntimeExports.jsx(He,{children:e.jeCredit.account?.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:e.jeCredit.account?.accountName??ct})})})]}):null,e.jeScheduleType!=="fixed_assets"?n.jsxRuntimeExports.jsx(Z,{style:{width:ce.COLUMN_FOUR}}):null,n.jsxRuntimeExports.jsx(Z,{style:{width:ce.COLUMN_FIVE}})]})]}),n.jsxRuntimeExports.jsxs(Mn,{children:[n.jsxRuntimeExports.jsx(t.Button,{onClick:()=>{e.jeScheduleId!=null&&e.jeScheduleType!=null&&u(e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":t.generateDataTestId("je-schedule-draft-component-review-button",e.jeScheduleId),label:dc,variant:"primary",size:"small",className:"item-value-container",style:{minWidth:In}}),n.jsxRuntimeExports.jsx(t.Button,{"data-testid":t.generateDataTestId("je-schedule-draft-component-ignore-button",e.jeScheduleId),className:"item-value-container",label:uc,size:"small",reverseSpinnerColor:!1,loading:s?.fetchState==="In-Progress",onClick:()=>{e.jeScheduleType!=null&&l(e.jeScheduleTransactionKey,e.jeScheduleType)},style:{minWidth:In}})]})]}),n.jsxRuntimeExports.jsxs(Br,{children:[n.jsxRuntimeExports.jsx(xc,{}),n.jsxRuntimeExports.jsx(hc,{children:mt.aiAccountant}),n.jsxRuntimeExports.jsx(gc,{children:mt.zeniGPTText})]})]}),xc=i(t.SvgAiIcon)`
|
|
835
|
-
height: ${t.Space.sp3};
|
|
836
|
-
width: ${t.Space.sp3};
|
|
837
|
-
margin-right: ${t.Space.sp1};
|
|
838
|
-
path {
|
|
839
|
-
stroke-width: 2;
|
|
840
|
-
}
|
|
841
|
-
`,hc=i(t.StandardBold)`
|
|
842
|
-
color: ${e=>e.theme.colors.brandColorSapphire};
|
|
843
|
-
`,gc=i(t.StandardRegular)`
|
|
844
|
-
color: ${e=>e.theme.colors.primary};
|
|
845
|
-
`,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:is}}},expenseAutomation:{jeSchedules:Me},common:{currency:st,retry:jc,strings:{hyphen:ze,empty:rs},texts:Lt},dateFormat:as}=t.appLocale.getLocalizedStrings(),{common:fc,timeframe:{month:cs}}=t.appLocale.getLocalizedStrings(),Je="jeSchedulePage",ls=e=>`${e}_form`,Nn=(e,s)=>`${e}.${s}`,ds=Nn(Je,"vendor"),us=Nn(Je,"scheduleExpenseCategory"),ps=Nn(Je,"accumulatedDepreciationCategory"),yc=({allAccountGroupedOptions:e,allAccountList:s,allClassGroupedOptions:l,allClassList:a,allDepAccountGroupedOptions:u,allDepAccountList:p,draft:o,localData:c,postStatus:r,uncategorizedAccounts:x,vendorSearchAutoCompleteActions:d,vendorSearchAutoCompleteData:h,jeScheduleClickHandler:g,onFormDataChange:f,onPostJESchedule:R})=>{const{updatedAccumulatedDepreciationCategoryID:y,updatedCategoryId:v,updatedVendor:j}=c,w={vendor_deleted:"updatedVendor",debit_category_deleted:"updatedCategoryId",credit_category_deleted:"updatedAccumulatedDepreciationCategoryID",qbo_authorization_error:"jeScheduleID",qbo_book_close_date_error:"jeScheduleID",qbo_error:"jeScheduleID",qbo_invalid_company_status_error:"jeScheduleID"},O=m.useRef(),$=n.useForm({mode:"all",reValidateMode:"onChange",defaultValues:ms(c,e,l,u,s,a,p,h.entityAutoCompleteView),values:ms(c,e,l,u,s,a,p,h.entityAutoCompleteView)}),B={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:t.Space.sp4}),menu:()=>({width:300})},b={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:t.Space.sp4}),menu:()=>({width:350})},I=(o?.scheduledJournalEntry.error??[]).every(A=>{const G=w[A];return!(c!=null&&G&&(G==="updatedAccumulatedDepreciationCategoryID"&&c.updatedAccumulatedDepreciationCategoryID==null||G==="updatedCategoryId"&&c.updatedCategoryId==null||G==="updatedVendor"&&(c.updatedVendor?.id==null||c.updatedVendor?.id===""||c.updatedVendor?.name==null||c.updatedVendor?.name==="")))}),L=async(A,G)=>{if(A!=null){const le=G[Je],{scheduledJournalEntryID:D,vendor:ee}=le;if(A.includes("vendor")){const te=ee?.defaultOptions.map(J=>J.value);if(ee?.selectedOption!=null&&te?.includes(ee.selectedOption)!==!0){const J=h.entityAutoCompleteView.vendor.find(je=>je.id===ee.selectedOption);J!=null&&$.setValue(`${Je}.vendor.defaultOptions`,[{label:J.name??fc.strings.empty,value:J.id}])}else ee?.selectedOption==null&&ee?.defaultOptions.length!==0&&$.setValue(`${Je}.vendor`,{selectedOption:void 0,defaultOptions:[]})}f(D,{...le,vendor:ee})}};m.useEffect(()=>{const A=$.watch((G,{name:le})=>{le!=null&&G!=null&&n.defer(()=>L(le,G))});return()=>{A.unsubscribe()}}),m.useEffect(()=>{h.entityAutoCompleteView.fetchState==="Completed"&&O.current?.(t.getVendorOptions(h.entityAutoCompleteView))},[h.entityAutoCompleteView.fetchState]);const W=$.handleSubmit(()=>{R(o.scheduledJournalEntry.scheduledJournalEntryID,o.jeScheduleTransactionKey)}),T=A=>s.filter(le=>le.qboId===A)[0]?.qboId,X=A=>p.filter(le=>le.qboId===A)[0]?.qboId,_=A=>[x.expense?.qboId,x.income?.qboId].includes(A),P=$.watch("jeSchedulePage.vendor"),U=(A,G)=>{d.onAutoCompleteInputChange?.(A,"vendor"),O.current=G},K=o.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,M=o.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,Q=o.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,Se=o.vendor.name.split("(deleted)")[0]?.toString(),H=o.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??rs,he=o.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??rs,[ge,S]=m.useState(M===!0&&v==null),[N,q]=m.useState(Q===!0&&y==null),[F,z]=m.useState(K&&(j?.id==null||j?.id==""));return m.useEffect(()=>{ge===!1&&c.updatedCategoryId==null&&$.setFocus(us),N===!1&&c.updatedAccumulatedDepreciationCategoryID==null&&$.setFocus(ps),F===!1&&c.updatedVendor?.id==null&&$.setFocus(ds)},[ge,N,F,c,$]),n.jsxRuntimeExports.jsx(n.FormProvider,{...$,children:n.jsxRuntimeExports.jsx("form",{style:{width:"100%"},id:ls(`${Je}_${o.jeScheduleId}`),onSubmit:W,children:n.jsxRuntimeExports.jsx(_n,{showBorder:I,onClick:A=>{o.jeScheduleType!=null&&o.jeScheduleId!=null&&g(A,o.jeScheduleId,o.jeScheduleTransactionKey,o.jeScheduleType)},"data-testid":t.generateDataTestId("je-schedule-resolve-component-schedule",`${Je}_${o.jeScheduleId}`),children:n.jsxRuntimeExports.jsxs(Dn,{children:[n.jsxRuntimeExports.jsxs(Bn,{children:[n.jsxRuntimeExports.jsxs(An,{children:[K===!0?n.jsxRuntimeExports.jsx(Z,{style:{width:ce.COLUMN_ONE,padding:t.sp[0],justifyContent:"center"},showHoverEffect:K,forceHoverEffect:F===!1&&(c?.updatedVendor?.id==null||c?.updatedVendor?.id==""),children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",style:{padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsxs(ne,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:[Lt.vendor,n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"top-start",title:n.jsxRuntimeExports.jsx(Qt,{children:Me.tooltipText.missingVendor.replace("_deleted_vendor_",Se)}),children:n.jsxRuntimeExports.jsx(an,{})})]}),n.jsxRuntimeExports.jsx(oe,{style:{gap:t.sp[3],marginLeft:-2},className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:F===!0?n.jsxRuntimeExports.jsxs(ie,{onClick:A=>{A.stopPropagation(),z(!1)},"data-testid":t.generateDataTestId("je-schedule-resolve-component-add-vendor-button",`${Je}_${o.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:t.sp[2],color:t.Colors.brandColorGoldDark,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(rn,{}),is]}):n.jsxRuntimeExports.jsx(t.AutoCompleteSingleSelectField,{name:ds,placeholder:is,valueToId:A=>A,defaultValue:{selectedOption:P?.selectedOption,defaultOptions:P?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:t.Space.sp4})},registerOptions:{required:!0,validate:A=>!!A.selectedOption},loadOptions:U})})})]})}):n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp0} ${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(ne,{children:Lt.vendor}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[o.vendor.logo?.href!=null?n.jsxRuntimeExports.jsx(t.EntityLogoAvatar,{photoUrl:o.vendor.logo.href,styles:{width:t.sp[4],height:t.sp[4]}}):n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:o.vendor.name}),n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.vendor.name!==null?n.jsxRuntimeExports.jsx(He,{children:o.vendor.name}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:o.vendor.name??ze})})]})})]}),n.jsxRuntimeExports.jsxs(Z,{children:[n.jsxRuntimeExports.jsx(ne,{children:Me.scheduleHeaders.scheduleCategory}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.baseTransaction.account.accountName!=null?n.jsxRuntimeExports.jsx(He,{children:o.baseTransaction.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:o.baseTransaction.account.accountName??ze})})})]}),n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(ne,{children:Me.scheduleHeaders.startMonth}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:o.startDate?.format(as.visual.MMMCommaYYYYFormat)??ze})})]}),n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(ne,{children:Me.scheduleHeaders.period}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:o.period!=null?`${o.period} ${o.period===1?cs.slice(0,-1):cs}`:ze})})]}),n.jsxRuntimeExports.jsxs(Z,{style:{alignItems:"flex-end",width:ce.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(ne,{children:Lt.totalAmount}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:n.jsxRuntimeExports.jsx(He,{children:t.amountToString("0,0.[00]",V.toAmount(o.baseTransaction.amount.amount,st.currencyCode,st.currencySymbol))??ze}),children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:t.amountToString("0,0.[00]",V.toAmount(o.baseTransaction.amount.amount,st.currencyCode,st.currencySymbol))??ze})})})]})]}),n.jsxRuntimeExports.jsxs(On,{children:[M===!0?n.jsxRuntimeExports.jsx(Z,{showHoverEffect:M===!0,forceHoverEffect:c?.updatedCategoryId==null&&ge===!1,style:{padding:"unset",justifyContent:"center",width:ce.COLUMN_ONE},children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",children:[n.jsxRuntimeExports.jsxs(ne,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:[Lt.category,M===!0?n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"top-start",title:n.jsxRuntimeExports.jsx(Qt,{children:Me.tooltipText.missingCategory.replace("_deleted_category_",H)}),children:n.jsxRuntimeExports.jsx(an,{})}):null]}),n.jsxRuntimeExports.jsx(oe,{className:"item-value-container",style:{marginLeft:M===!0?-2:0},children:M===!0?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:ge===!0?n.jsxRuntimeExports.jsxs(ie,{onClick:A=>{A.stopPropagation(),S(!1)},style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:t.Colors.brandColorGoldDark,cursor:"pointer"},"data-testid":t.generateDataTestId("je-schedule-resolve-component-add-category-button",`${Je}_${o.jeScheduleId}`),children:[n.jsxRuntimeExports.jsx(rn,{}),Me.addCategory]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,name:us,placeholder:Me.addCategory,valueToId:A=>T(A),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:A=>!!A.selectedOption},disableCurrentOption:_,customStyleConfig:B})}):n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.account?.accountName!=null?n.jsxRuntimeExports.jsx(He,{children:o.jeDebit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:o.jeDebit.account?.accountName??ze})})})]})}):n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(ne,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:Lt.category}),n.jsxRuntimeExports.jsx(oe,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.account?.accountName!=null?n.jsxRuntimeExports.jsx(He,{children:o.jeDebit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:o.jeDebit.account?.accountName??ze})})})]}),n.jsxRuntimeExports.jsxs(Z,{children:[n.jsxRuntimeExports.jsx(ne,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:Lt.classText}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.accountingClass?.className!=null?n.jsxRuntimeExports.jsx(He,{children:o.jeDebit.accountingClass.className}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:o.jeDebit.accountingClass?.className??ze})})})]}),n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(ne,{children:Me.scheduleHeaders.type}),n.jsxRuntimeExports.jsx(oe,{className:"test",children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",style:{width:"unset"},children:n.jsxRuntimeExports.jsx(Js,{children:Me.scheduleTypes[o.jeScheduleType??"prepaid_expenses"]})})})]}),o.jeScheduleType==="fixed_assets"?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:Q===!0?n.jsxRuntimeExports.jsx(Z,{style:{width:ce.COLUMN_FOUR,padding:"unset",justifyContent:"center"},showHoverEffect:Q,forceHoverEffect:c.updatedAccumulatedDepreciationCategoryID==null&&N===!1,children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",style:{padding:t.sp[2],paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsxs(ne,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:[Me.scheduleHeaders.accumulatedCategory,Q===!0?n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"top-end",title:n.jsxRuntimeExports.jsx(Qt,{children:Me.tooltipText.missingDepCategory.replace("_deleted_dep_category_",he)}),children:n.jsxRuntimeExports.jsx(an,{})}):null]}),n.jsxRuntimeExports.jsx(oe,{className:"item-value-container",style:{marginLeft:Q===!0?-2:0},children:Q===!0?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:N===!0?n.jsxRuntimeExports.jsxs(ie,{onClick:A=>{A.stopPropagation(),q(!1)},style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:t.Colors.brandColorGoldDark,cursor:"pointer"},"data-testid":t.generateDataTestId("je-schedule-resolve-component-add-depreciation-category-button",`${Je}_${o.jeScheduleId}`),children:[n.jsxRuntimeExports.jsx(rn,{}),Me.addDepCategory]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:ps,placeholder:Me.addDepCategory,valueToId:A=>X(A),defaultValue:{allOptions:u},registerOptions:{required:!0,validate:A=>!!A.selectedOption},customStyleConfig:b,disableCurrentOption:_})}):n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:o.jeCredit.account?.accountName!=null?n.jsxRuntimeExports.jsx(He,{children:o.jeCredit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:o.jeCredit.account?.accountName??ze})})})]})}):n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_FOUR,padding:`${t.Space.sp2} ${t.Space.sp2} ${t.Space.sp2} ${t.Space.sp3}`,justifyContent:"center"},children:[n.jsxRuntimeExports.jsx(ne,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:Me.scheduleHeaders.accumulatedCategory}),n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:o.jeCredit.account?.accountName!=null?n.jsxRuntimeExports.jsx(He,{children:o.jeCredit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:o.jeCredit.account?.accountName??ze})})]})}):null,o.jeScheduleType!=="fixed_assets"?n.jsxRuntimeExports.jsx(Z,{style:{width:ce.COLUMN_FOUR}}):null,n.jsxRuntimeExports.jsx(Z,{style:{width:ce.COLUMN_FIVE}})]}),n.jsxRuntimeExports.jsxs(_r,{children:[n.jsxRuntimeExports.jsx(Z,{style:{padding:"unset",width:ce.COLUMN_ONE},children:n.jsxRuntimeExports.jsxs(Mr,{children:[n.jsxRuntimeExports.jsx(ne,{children:Me.scheduleHeaders.jePostingDate}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:o.scheduledJournalEntry.expectedPostDate.format(as.visual.MMMDCommaYYFormat)??ze})})]})}),n.jsxRuntimeExports.jsxs(Z,{children:[n.jsxRuntimeExports.jsx(ne,{children:Me.scheduleHeaders.balance}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:n.jsxRuntimeExports.jsx(He,{children:t.amountToString("0,0.[00]",V.toAmount(o?.scheduledJournalEntry?.runningBalance?.amount??0,st.currencyCode,st.currencySymbol))??ze}),children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:t.amountToString("0,0.[00]",V.toAmount(o?.scheduledJournalEntry?.runningBalance?.amount??0,st.currencyCode,st.currencySymbol))??ze})})})]}),n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(ne,{children:Me.scheduleHeaders.months}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsxs(ie,{className:"highlight",children:[o.scheduledJournalEntry.expectedPostDate.diff(o.startDate,"month")+1,"/",o.period]})})]}),n.jsxRuntimeExports.jsx(Z,{style:{width:ce.COLUMN_FOUR}}),n.jsxRuntimeExports.jsxs(Z,{style:{alignItems:"flex-end",width:ce.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(ne,{children:Me.scheduleHeaders.amountForMonth}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(ie,{className:"highlight",children:t.amountToString("0,0.[00]",V.toAmount(o.scheduledJournalEntry.amount?.amount??0,st.currencyCode,st.currencySymbol))??ze})})]})]})]}),n.jsxRuntimeExports.jsx(Mn,{children:n.jsxRuntimeExports.jsx(t.Button,{form:ls(`${Je}_${o.jeScheduleId}`),label:jc,variant:"primary",className:"item-value-container",type:"submit",loading:r?.fetchState==="In-Progress",size:"small",disabled:!I,style:{minWidth:In}})})]})})})})},ms=(e,s,l,a,u,p,o,c)=>{const r=e.updatedCategoryId,x=e.updatedVendor,d=x!=null?c.vendor.find(v=>v.zeniId===x.id):void 0,h=e.updatedAccumulatedDepreciationCategoryID,g=e.updatedClassId,f=r!=null?u.find(v=>v.accountId===r):void 0,R=h!=null?o.find(v=>v.accountId===h):void 0,y=g!=null?p.find(v=>v.classId===g):void 0;return{[Je]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:f?.qboId,allOptions:s},accumulatedDepreciationCategory:{selectedOption:R?.qboId,allOptions:a},vendor:{selectedOption:d?.id??x?.id,defaultOptions:t.getDefaultVendorOptions$1(c,d??x)},scheduleClass:{selectedOption:y?.classId,allOptions:l}}}},rn=i(t.SvgAddRound)`
|
|
846
|
-
width: ${t.Space.sp3};
|
|
847
|
-
height: ${t.Space.sp3};
|
|
848
|
-
`,an=i(t.SvgAlertRound)`
|
|
849
|
-
width: 12px;
|
|
850
|
-
height: 12px;
|
|
851
|
-
color: ${t.Colors.important};
|
|
852
|
-
`;function io(){return n.jsxRuntimeExports.jsx(qs,{children:n.jsxRuntimeExports.jsxs(Us,{children:[n.jsxRuntimeExports.jsxs(Gs,{children:[n.jsxRuntimeExports.jsx(Le,{width:t.sp[9],height:27,style:{marginBottom:t.sp[2]}}),n.jsxRuntimeExports.jsx(xs,{})]}),n.jsxRuntimeExports.jsxs(Ks,{children:[n.jsxRuntimeExports.jsx(Le,{width:t.sp[9],height:27,style:{marginBottom:t.sp[2]}}),n.jsxRuntimeExports.jsx(xs,{})]})]})})}const xs=()=>n.jsxRuntimeExports.jsx(_n,{style:{minWidth:1088},children:n.jsxRuntimeExports.jsxs(Dn,{children:[n.jsxRuntimeExports.jsxs(Bn,{children:[n.jsxRuntimeExports.jsxs(An,{children:[n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(ne,{children:n.jsxRuntimeExports.jsx(Le,{width:t.sp[10],height:14})}),n.jsxRuntimeExports.jsxs(oe,{style:{gap:t.sp[2]},children:[n.jsxRuntimeExports.jsx(t.CircularContentLoader,{height:t.sp[4],width:t.sp[4]}),n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:t.sp[10]})]})]}),n.jsxRuntimeExports.jsxs(Z,{children:[n.jsxRuntimeExports.jsx(ne,{children:n.jsxRuntimeExports.jsx(Le,{width:101,height:14})}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:203})})]}),n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(ne,{children:n.jsxRuntimeExports.jsx(Le,{width:t.sp[9],height:14})}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:71})})]}),n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(ne,{children:n.jsxRuntimeExports.jsx(Le,{width:107,height:14})}),n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:68})]}),n.jsxRuntimeExports.jsxs(Z,{style:{alignItems:"flex-end",width:ce.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(ne,{children:n.jsxRuntimeExports.jsx(Le,{width:73,height:14})}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:49})})]})]}),n.jsxRuntimeExports.jsxs(On,{children:[n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(ne,{children:n.jsxRuntimeExports.jsx(Le,{width:49,height:14})}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:158})})]}),n.jsxRuntimeExports.jsxs(Z,{children:[n.jsxRuntimeExports.jsx(ne,{children:n.jsxRuntimeExports.jsx(Le,{width:36,height:14})}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:88})})]}),n.jsxRuntimeExports.jsxs(Z,{style:{width:ce.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(ne,{children:n.jsxRuntimeExports.jsx(Le,{width:36,height:14})}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:100})})]}),n.jsxRuntimeExports.jsx(Z,{style:{width:ce.COLUMN_FOUR,paddingLeft:t.sp[3]}}),n.jsxRuntimeExports.jsx(Z,{style:{width:ce.COLUMN_FIVE}})]})]}),n.jsxRuntimeExports.jsxs(Mn,{children:[n.jsxRuntimeExports.jsx(Le,{height:29,width:53,style:{margin:`${t.Space.sp0} ${t.Space.sp3}`}}),n.jsxRuntimeExports.jsx(Le,{height:29,width:53,style:{margin:`${t.Space.sp0} ${t.Space.sp3}`}})]})]})}),Le=i(t.RectangularContentLoader)`
|
|
853
|
-
border-radius: ${t.Space.sp1};
|
|
854
|
-
`,{common:{create:Sc,resolve:Rc}}=t.appLocale.getLocalizedStrings();function Cc({jeSchedules:e,vendorSearchAutoCompleteData:s,handleJeScheduleClick:l,onJESchedulesFormDataChange:a,onPostJESchedule:u,ignoreRecommendedJeSchedule:p,vendorSearchAutoCompleteActions:o,setCurrentFooterFormId:c}){const r=e.draftSchedules,x=e.jeScheduleLocalDataById,d=e.postStatusById,h=e.ignoreStatusById,g=e.resolveSchedules,f=e.uncategorizedAccounts,{allAccountList:R,allClassList:y,allDepreciationAccountList:v}=e,j=t.getGroupedAccountOptions(e.accountListNestedAccountHierarchy),w=t.getGroupedAccountOptions(e.allDepreciationAccountListNestedAccountHierarchy),O=t.getGroupedClassOptions(e.classListNestedAccountHierarchy),$=(b,C,I)=>{l(b,C,I)},B=(b,C,I,L)=>{let T=b.target;for(;T;){if(T.classList.contains("item-value-container")||T.classList.contains("hover-background")||T.classList.contains("auto-complete-single-select-field__input")||T.classList.contains("auto-complete-single-select-field__option")||T.classList.contains("grouped-single-select-field__input")||T.classList.contains("grouped-single-select-field__menu"))return;T=T.parentElement}l(C,I,L)};return m.useEffect(()=>{if(g.length!==0){for(const b in x)if(Object.prototype.hasOwnProperty.call(x,b)){const{updatedAccumulatedDepreciationCategoryID:C,updatedCategoryId:I,updatedVendor:L}=x[b];if(C!=null||I!=null||L!=null&&L?.id!==""){c("expenseAutomationJESchedulePage");break}else c("expenseAutomationPage")}}else g.length===0&&c("expenseAutomationPage")}),m.useEffect(()=>()=>{c("expenseAutomationPage")},[]),e.fetchState==="In-Progress"?n.jsxRuntimeExports.jsx(io,{}):r.length!==0||g.length!==0?n.jsxRuntimeExports.jsx(qs,{children:n.jsxRuntimeExports.jsxs(Us,{children:[r.length>0?n.jsxRuntimeExports.jsxs(Gs,{children:[n.jsxRuntimeExports.jsxs(gs,{children:[Sc,n.jsxRuntimeExports.jsx(js,{isCircular:r.length<10,children:n.jsxRuntimeExports.jsx(fs,{children:r.length})})]}),n.jsxRuntimeExports.jsx(hs,{children:r.map((b,C)=>n.jsxRuntimeExports.jsx(mc,{ignoreStatus:h[b.jeScheduleTransactionKey],ignoreRecommendedJeSchedule:p,onReviewClickHandler:$,jeScheduleClickHandler:B,draft:b},`${C}_${b.jeScheduleId}`))})]}):null,g.length>0?n.jsxRuntimeExports.jsxs(Ks,{children:[n.jsxRuntimeExports.jsxs(gs,{children:[Rc,n.jsxRuntimeExports.jsx(js,{isCircular:g.length<10,children:n.jsxRuntimeExports.jsx(fs,{children:g.length})})]}),n.jsxRuntimeExports.jsx(hs,{children:g.map((b,C)=>x[b.scheduledJournalEntry.scheduledJournalEntryID]==null?null:n.jsxRuntimeExports.jsx(yc,{vendorSearchAutoCompleteActions:o,vendorSearchAutoCompleteData:s,jeScheduleClickHandler:B,onPostJESchedule:u,uncategorizedAccounts:f,allAccountList:R,allAccountGroupedOptions:j,allClassGroupedOptions:O,allClassList:y,allDepAccountGroupedOptions:w,allDepAccountList:v,draft:b,postStatus:d[b.scheduledJournalEntry.scheduledJournalEntryID],localData:x[b.scheduledJournalEntry.scheduledJournalEntryID],onFormDataChange:a},`${C}_${b.jeScheduleTransactionKey}`))})]}):null]})}):null}const hs=i.div`
|
|
855
|
-
display: flex;
|
|
856
|
-
flex-direction: column;
|
|
857
|
-
gap: ${t.Space.sp4};
|
|
858
|
-
min-width: 1088px;
|
|
859
|
-
`,gs=i(t.LargeSemiBold)`
|
|
860
|
-
color: ${e=>e.theme.colors.primary};
|
|
861
|
-
padding: ${t.Space.sp2} ${t.Space.sp0};
|
|
862
|
-
display: flex;
|
|
863
|
-
align-items: center;
|
|
864
|
-
gap: ${t.Space.sp1};
|
|
865
|
-
`,js=i.div`
|
|
866
|
-
border-radius: ${t.Space.sp12};
|
|
867
|
-
display: flex;
|
|
868
|
-
justify-content: center;
|
|
869
|
-
border: ${e=>`1px solid ${e.theme.colors.grey1}`};
|
|
870
|
-
color: ${e=>e.theme.colors.hero};
|
|
871
|
-
${e=>e.isCircular?Ne.css`
|
|
872
|
-
height: ${t.Space.sp3};
|
|
873
|
-
width: ${t.Space.sp3};
|
|
874
|
-
padding: ${t.Space.sp0};
|
|
875
|
-
`:Ne.css`
|
|
876
|
-
height: 18px;
|
|
877
|
-
padding: ${t.customCountCapsulePadding.padding};
|
|
878
|
-
`}
|
|
879
|
-
`,fs=i(t.ExtraSmallMediumSp)`
|
|
880
|
-
color: ${e=>e.theme.colors.hero};
|
|
881
|
-
height: 100%;
|
|
882
|
-
width: 100%;
|
|
883
|
-
display: flex;
|
|
884
|
-
align-items: center;
|
|
885
|
-
justify-content: center;
|
|
886
|
-
color: inherit;
|
|
887
|
-
`;function Ec({expenseAutomationViewSelector:e,currentFooterFormId:s,setResetJeAccountSettingsForm:l,vendorSearchAutoCompleteData:a,onJESchedulesFormDataChange:u,onPostJESchedule:p,handleJeScheduleClick:o,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,ignoreRecommendedJeSchedule:x,vendorSearchAutoCompleteActions:d,setCurrentFooterFormId:h,setIsJeAccountSettingsOpened:g}){const{jeSchedules:f}=e;return f.fetchState==="In-Progress"||f.accountSettingsView.fetchState==="In-Progress"?n.jsxRuntimeExports.jsx(io,{}):f.accountSettingsView.fetchState==="Completed"&&f.accountSettingsView.accountSettingsLocalData.previousPrepaidExpensesAccount.length===0&&f.accountSettingsView.accountSettingsLocalData.previousFixedAssetsAccount.length===0?n.jsxRuntimeExports.jsx(ac,{setIsJeAccountSettingsOpened:g,setResetJeAccountSettingsForm:l,currentFooterFormId:s,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,accountSettings:f.accountSettingsView,setCurrentFooterFormId:h}):f.fetchState==="Completed"&&f.draftSchedules.length===0&&f.resolveSchedules.length===0?n.jsxRuntimeExports.jsx(ut,{tab:e.currentSelectedView,title:Fe(e.currentSelectedView).allDoneText.title,subTitle:Fe(e.currentSelectedView).allDoneText.subTitle}):f.fetchState==="Completed"?n.jsxRuntimeExports.jsx(Cc,{setCurrentFooterFormId:h,handleJeScheduleClick:o,ignoreRecommendedJeSchedule:x,jeSchedules:e.jeSchedules,onJESchedulesFormDataChange:u,onPostJESchedule:p,vendorSearchAutoCompleteActions:d,vendorSearchAutoCompleteData:a}):null}const vc=72,ro=50,bc=1,wc=["receipts"],ys=e=>V.stringToUnionStrict(e,wc),{common:{texts:{vendor:Ic,amount:kc,receipts:Tc,category:$c,classText:Lc,date:Ac}}}=t.appLocale.getLocalizedStrings(),Oc={key:"vendor",value:Ic,sortOrder:"ascending",width:new t.ResponsiveSized(18,18)},Dc={key:"category",value:$c,sortOrder:"ascending",width:new t.ResponsiveSized(18,18)},_c={key:"class",value:Lc,sortOrder:"ascending",width:new t.ResponsiveSized(18,18)},Mc={key:"date",value:Ac,sortOrder:"descending",width:new t.ResponsiveSized(11,11)},Bc={key:"receipts",value:Tc,sortOrder:"descending",width:new t.ResponsiveSized(6,6)},Nc={key:"amount",value:kc,sortOrder:"ascending",width:new t.ResponsiveSized(10,10)},it=[Oc,Dc,_c,Mc,Bc,Nc],cn={sortKey:"date",sortOrder:"descending"},Ss={containerPaddingLeftRight:new t.ResponsiveSized(t.sp[3],t.sp[4])},ao=({sortConfig:e,isDisabled:s,onColumnSortConfigChanged:l})=>{const a=t.useWindowSizeContext(),[u,p]=m.useState(it);m.useEffect(()=>{const r=[...u];for(const x of r)x.key===e.sortKey?x.sortOrder=e.sortOrder:x.sortOrder="ascending";p(r)},[e.sortKey,e.sortOrder]);const o=(r,x)=>{let d=x;e.sortKey===r&&(d=x==="ascending"?"descending":"ascending"),l(r,d)},c=r=>{ys(r.key)==null&&o(V.toExpenseAutomationMissingReceiptsSortKey(r.key),r.sortOrder)};return n.jsxRuntimeExports.jsx(Pc,{windowSize:a,children:u.map((r,x)=>{const d=s!=null||ys(r.key)!=null;return n.jsxRuntimeExports.jsxs(Fc,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,isSortDisabled:d,windowSize:a,isLastItem:x===u.length-1,style:r.key==="receipts"?{justifyContent:"center"}:void 0,children:[n.jsxRuntimeExports.jsxs(qc,{onClick:()=>d?null:c(r),isSortDisabled:d,children:[n.jsxRuntimeExports.jsx(Uc,{children:r.value}),d?null:n.jsxRuntimeExports.jsx(Hc,{sortConfig:e,headerData:r,children:n.jsxRuntimeExports.jsx(Vc,{})})]}),d?null:n.jsxRuntimeExports.jsx(Wc,{isSortDisabled:d,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==cn.sortKey,children:n.jsxRuntimeExports.jsx(zc,{onClick:()=>{d||o(cn.sortKey,cn.sortOrder)},"data-testid":t.generateDataTestId("missing-receipts-header-close-icon",r.key)})})]},r.key)})})},Pc=i.div`
|
|
888
|
-
top: ${t.Space.sp0};
|
|
889
|
-
left: ${t.Space.sp0};
|
|
890
|
-
height: ${ro}px;
|
|
891
|
-
z-index: 2;
|
|
892
|
-
display: flex;
|
|
893
|
-
align-items: center;
|
|
894
|
-
justify-content: space-between;
|
|
895
|
-
box-sizing: border-box;
|
|
896
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
897
|
-
position: sticky;
|
|
898
|
-
padding-left: ${e=>Ss.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
899
|
-
padding-right: ${e=>Ss.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
900
|
-
`,Fc=i.div`
|
|
901
|
-
color: ${e=>e.sortDataValue===e.actualDataValue&&!e.isSortDisabled?e.theme.colors.primary:e.theme.colors.grey1};
|
|
902
|
-
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
903
|
-
max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
904
|
-
padding-left: ${t.Space.sp0};
|
|
905
|
-
left: ${t.Space.sp0};
|
|
906
|
-
display: flex;
|
|
907
|
-
align-items: center;
|
|
908
|
-
gap: 6px;
|
|
909
|
-
justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
|
|
910
|
-
position: static;
|
|
911
|
-
z-index: 0;
|
|
912
|
-
box-sizing: border-box;
|
|
913
|
-
`,zc=i(t.SvgCloseRound)`
|
|
914
|
-
width: ${t.Space.sp2};
|
|
915
|
-
height: ${t.Space.sp2};
|
|
916
|
-
cursor: pointer;
|
|
917
|
-
`,Hc=i.div`
|
|
918
|
-
display: flex;
|
|
919
|
-
align-items: center;
|
|
920
|
-
transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
921
|
-
`,Wc=i.div`
|
|
922
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
923
|
-
align-items: center;
|
|
924
|
-
cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
|
|
925
|
-
&:hover {
|
|
926
|
-
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
927
|
-
}
|
|
928
|
-
`,Vc=i(t.SvgArrowTailTop)`
|
|
929
|
-
width: ${t.Space.sp2};
|
|
930
|
-
height: ${t.Space.sp2};
|
|
931
|
-
`,qc=i.div`
|
|
932
|
-
display: flex;
|
|
933
|
-
cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
|
|
934
|
-
gap: 6px;
|
|
935
|
-
&:hover {
|
|
936
|
-
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
937
|
-
}
|
|
938
|
-
`,Uc=i(t.ExtraSmallRegular)`
|
|
939
|
-
display: flex;
|
|
940
|
-
`,{common:{strings:{underscore:co,hyphen:ln,empty:Rs},documents:{singleFileUploadSizeErrorMessage:Gc,multipleFileUploadSizeErrorMessage:Kc},snackBar:{missing_receipts_attachment:{failed:Jc}},tooltips:{addMissingReceipt:Zc}},dateFormat:Yc}=t.appLocale.getLocalizedStrings(),Xt={containerPaddingLeftRight:new t.ResponsiveSized(t.sp[3],t.sp[4]),containerPaddingTopBottom:new t.ResponsiveSized(t.sp[2],t.sp[3])},Xc=({transaction:e,uploadReceiptsFetchState:s,receiptUploadEndpoint:l,authParams:a,selectedPeriod:u,onUploadReceiptComplete:p,onMissingReceiptsRowClick:o,onUploadReceiptFetchStatus:c,onUploadReceiptAttachment:r})=>{const x=t.useWindowSizeContext(),d=m.useRef(null),h=m.useCallback(async(R,y,v,j,w)=>{c(e.id,"In-Progress"),await zt.uploadAttachment(R,y,v,j,w).then(({uploadResponse:O,errorMessage:$})=>{O!=null?O.transaction.attachments!=null&&(r(O.transaction),setTimeout(()=>p(O.transaction,u),2e3)):c(e.id,"Error",{code:500,message:Jc},$)}).catch(O=>{c(e.id,"Error",O)})},[e.id,u,r,p,c]),g=m.useCallback(R=>{if(R.target.files!=null){const y=R.target.files,v=[],j=[];for(let w=0;w<y.length;w++)v.push(y[w].name),j.push(y[w]);h(l,a,y[0],y[0].name,{id:e.id,type:e.type})}},[a,h,l,e.id,e.type]),f=m.useCallback(()=>{d.current?.click()},[d]);return n.jsxRuntimeExports.jsx(lo,{windowSize:x,onClick:()=>o(e.id,e.type),"data-testid":t.generateDataTestId("missing-receipts-list-row",e.id),children:it.map((R,y)=>{const v=`${e.id}${co}${R.key}`;switch(R.key){case"vendor":default:return n.jsxRuntimeExports.jsx(vt,{windowSize:x,wrapperWidth:R.width,children:n.jsxRuntimeExports.jsx(bt,{windowSize:x,isLastItem:y===it.length-1,children:n.jsxRuntimeExports.jsxs(en,{children:[n.jsxRuntimeExports.jsx(t.EntityLogoAvatarWithCustomFallback,{photoUrl:e.vendorId!=null?e.logo?.toString()??Rs:Rs,styles:{width:t.Space.sp4,height:t.Space.sp4,borderRadius:t.Space.sp0},placeholder:{width:t.sp[4],height:t.sp[4]},fallbackAvatar:n.jsxRuntimeExports.jsx(il,{children:n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:e.vendorName??e.description,size:t.Space.sp4})})}),n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:e.vendorName??e.description,itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}})]})})},v);case"category":case"class":{const j=e.lines!=null&&e.lines.length>0&&e.lines[0]?.account!=null&&e.lines[0].account.accountName?e.lines[0].account.accountName:ln,w=e.lines!=null&&e.lines.length>0&&e.lines[0]?.class!=null&&e.lines[0].class.className?e.lines[0].class.className:ln,O=R.key==="category"?j:w;return n.jsxRuntimeExports.jsx(vt,{windowSize:x,wrapperWidth:R.width,children:n.jsxRuntimeExports.jsx(bt,{windowSize:x,isLastItem:y===it.length-1,children:n.jsxRuntimeExports.jsx(en,{children:O!==ln?n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:O,itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}}):n.jsxRuntimeExports.jsx(ol,{children:O})})})},v)}case"date":return n.jsxRuntimeExports.jsx(vt,{windowSize:x,wrapperWidth:R.width,children:n.jsxRuntimeExports.jsx(bt,{windowSize:x,isLastItem:y===it.length-1,children:n.jsxRuntimeExports.jsx(en,{children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:e.date.format(Yc.visual.MMMDCommaYYYYformat),itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}})})})},v);case"receipts":return n.jsxRuntimeExports.jsx(vt,{windowSize:x,wrapperWidth:R.width,children:n.jsxRuntimeExports.jsx(bt,{windowSize:x,isLastItem:y===it.length-1,style:{justifyContent:"center"},children:s.fetchState==="In-Progress"?n.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"Small",style:{display:"flex"},start:!0}):s.fetchState==="Completed"||e.attachments!=null&&e.attachments.length>0?n.jsxRuntimeExports.jsx(Co.SuccessAnimation,{shouldDisplay:!0,width:t.sp[4],height:t.sp[4],animationInLoop:!1,shouldFade:!1,onAnimationComplete:()=>null}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(sl,{onClick:j=>{j.stopPropagation()},children:n.jsxRuntimeExports.jsx(t.FileInputElement,{"data-testid":t.generateDataTestId("missing-receipts-file-input",e.id),name:`missing-receipts-${e.id}`,fileRef:d,sizeLimit:t.SizeLimit32MB,multiple:!1,acceptableTypes:[...V.SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES],onFileChange:g,onFileSizeError:(j,w)=>{j&&c(e.id,"Error",{code:500,message:w===!0?Gc.replace("__maxFileSize__",t.formatFileSize(t.SizeLimit32MB,0)):Kc.replace("__maxFileSize__",t.formatFileSize(t.SizeLimit32MB,0))})}})}),n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"bottom",title:Zc,enterDelay:600,children:n.jsxRuntimeExports.jsx(nl,{onClick:j=>{j.stopPropagation(),f()}})})]})})},v);case"amount":{const j=t.amountToString("0,0.[00]",e.amount);return n.jsxRuntimeExports.jsx(vt,{windowSize:x,wrapperWidth:R.width,children:n.jsxRuntimeExports.jsx(bt,{windowSize:x,isLastItem:y===it.length-1,children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:e.amount.amount<0?`-${j}`:j,itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}})})},v)}}})})},Qc=()=>{const e=t.useWindowSizeContext(),s=m.useRef(null),[l,a]=m.useState(0);return m.useLayoutEffect(()=>{s.current&&a(s.current.offsetWidth)},[e]),n.jsxRuntimeExports.jsx(lo,{windowSize:e,ref:s,children:it.map((u,p)=>{const o=`${p}${co}${u.key}`;switch(u.key){case"vendor":return n.jsxRuntimeExports.jsx(vt,{windowSize:e,wrapperWidth:u.width,children:n.jsxRuntimeExports.jsx(bt,{windowSize:e,isLastItem:p===it.length-1,children:n.jsxRuntimeExports.jsxs(en,{children:[n.jsxRuntimeExports.jsx(t.CircularContentLoader,{width:t.sp[4],height:t.sp[4]}),n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:l*u.width.value(e)/100,height:t.sp[4],style:{display:"flex",alignItems:"center"}})]})})},o);default:return n.jsxRuntimeExports.jsx(vt,{windowSize:e,wrapperWidth:u.width,children:n.jsxRuntimeExports.jsx(bt,{windowSize:e,isLastItem:p===it.length-1,children:n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:l*u.width.value(e)/100,height:t.sp[4],style:{display:"flex",alignItems:"center"}})})},o)}})})},lo=i.div`
|
|
941
|
-
display: flex;
|
|
942
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
943
|
-
padding-left: ${e=>Xt.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
944
|
-
padding-right: ${e=>Xt.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
945
|
-
padding-top: ${e=>Xt.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
946
|
-
padding-bottom: ${e=>Xt.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
947
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
948
|
-
box-shadow: ${e=>`${t.Space.sp0} 2px ${t.Space.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
949
|
-
border-radius: ${t.Space.sp2};
|
|
950
|
-
color: ${e=>e.theme.colors.hero};
|
|
951
|
-
cursor: pointer;
|
|
952
|
-
&:hover {
|
|
953
|
-
border-color: ${e=>e.theme.colors.primary};
|
|
954
|
-
color: ${e=>e.theme.colors.primary};
|
|
955
|
-
}
|
|
956
|
-
|
|
957
|
-
box-sizing: border-box;
|
|
958
|
-
align-items: center;
|
|
959
|
-
justify-content: space-between;
|
|
960
|
-
`,vt=i.div`
|
|
961
|
-
display: flex;
|
|
962
|
-
align-items: center;
|
|
963
|
-
position: relative;
|
|
964
|
-
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
965
|
-
min-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
966
|
-
:last-of-type {
|
|
967
|
-
padding-right: ${t.Space.sp0};
|
|
968
|
-
}
|
|
969
|
-
`,el=Ne.css`
|
|
970
|
-
word-break: break-all;
|
|
971
|
-
white-space: normal;
|
|
972
|
-
-webkit-line-clamp: 1;
|
|
973
|
-
-webkit-box-orient: vertical;
|
|
974
|
-
overflow: hidden;
|
|
975
|
-
text-overflow: ellipsis;
|
|
976
|
-
display: -webkit-box;
|
|
977
|
-
`,tl=Ne.css`
|
|
978
|
-
height: ${t.Space.sp3};
|
|
979
|
-
width: ${t.Space.sp3};
|
|
980
|
-
cursor: pointer;
|
|
981
|
-
`,nl=i(t.SvgAddRound)`
|
|
982
|
-
${tl};
|
|
983
|
-
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
984
|
-
&:hover {
|
|
985
|
-
color: ${e=>e.theme.colors.primary};
|
|
986
|
-
}
|
|
987
|
-
`,bt=i(t.StandardRegular)`
|
|
988
|
-
overflow: hidden;
|
|
989
|
-
justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
|
|
990
|
-
display: flex;
|
|
991
|
-
width: 100%;
|
|
992
|
-
align-items: center;
|
|
993
|
-
`,sl=i.div``,en=i.div`
|
|
994
|
-
display: flex;
|
|
995
|
-
flex-direction: row;
|
|
996
|
-
column-gap: ${t.Space.sp2};
|
|
997
|
-
align-items: center;
|
|
998
|
-
`,ol=i(t.StandardRegular)`
|
|
999
|
-
${el};
|
|
1000
|
-
color: inherit;
|
|
1001
|
-
`,il=i.div`
|
|
1002
|
-
display: flex;
|
|
1003
|
-
`,rl=({sortConfig:e,fetchState:s,isDisabled:l,onColumnSortConfigChanged:a})=>{const u=t.useWindowSizeContext();return n.jsxRuntimeExports.jsxs(al,{windowSize:u,children:[n.jsxRuntimeExports.jsx(ao,{sortConfig:e,isDisabled:s==="In-Progress"?"readonly":l,onColumnSortConfigChanged:a}),n.jsxRuntimeExports.jsx(cl,{windowSize:u,children:[...Array(3)].map((p,o)=>n.jsxRuntimeExports.jsx(Qc,{},o))})]})},al=i.div`
|
|
1004
|
-
display: block;
|
|
1005
|
-
min-height: 100%;
|
|
1006
|
-
flex-direction: column;
|
|
1007
|
-
width: 100%;
|
|
1008
|
-
`,cl=i.div`
|
|
1009
|
-
display: flex;
|
|
1010
|
-
min-height: 100%;
|
|
1011
|
-
flex-direction: column;
|
|
1012
|
-
row-gap: ${t.Space.sp3};
|
|
1013
|
-
`,{common:ll}=t.appLocale.getLocalizedStrings(),dl=({missingReceipts:e,receiptUploadEndpoint:s,authParams:l,selectedPeriod:a,isDisabled:u,onMissingReceiptsRowClick:p,onUploadReceiptComplete:o,onUploadReceiptAttachment:c,onUploadReceiptFetchStatus:r,onUpdateMissingReceiptsUIState:x,onFetchMissingReceiptsList:d})=>{const h=t.useWindowSizeContext(),{fetchState:g,uiState:f,transactions:R}=e,y=m.useRef(null),[v,j]=m.useState(!1);m.useEffect(()=>{y.current?.resetAfterIndex(0)},[h,y]),m.useEffect(()=>{g==="Completed"&&j(!1)},[g]);const w=$=>vc,O=($,B)=>{x({sortOrder:B,sortKey:$})};return n.jsxRuntimeExports.jsxs(ml,{children:[n.jsxRuntimeExports.jsx(xl,{windowSize:h,children:g==="Error"?n.jsxRuntimeExports.jsxs(gl,{windowSize:h,children:[n.jsxRuntimeExports.jsx(jl,{onClick:()=>d(),"data-testid":t.generateDataTestId("missing-receipts-list-table-reload-button"),children:n.jsxRuntimeExports.jsx(t.SvgReload,{})}),n.jsxRuntimeExports.jsx(fl,{children:ll.reloadPage.label})]}):g==="Completed"&&R.length===0?n.jsxRuntimeExports.jsx(ut,{tab:"missing_receipts",title:Fe("missing_receipts").allDoneText.title,subTitle:Fe("missing_receipts").allDoneText.subTitle}):g==="Not-Started"||g==="In-Progress"&&R.length===0?n.jsxRuntimeExports.jsx(rl,{sortConfig:{sortKey:f.sortKey,sortOrder:f.sortOrder},fetchState:g,onColumnSortConfigChanged:O}):n.jsxRuntimeExports.jsx(hl,{windowSize:h,children:n.jsxRuntimeExports.jsx(n.AutoSizer,{children:({height:$,width:B})=>n.jsxRuntimeExports.jsxs(Sl,{style:{height:$,width:B},children:[n.jsxRuntimeExports.jsx(pl,{children:n.jsxRuntimeExports.jsx(ao,{sortConfig:{sortKey:f.sortKey,sortOrder:f.sortOrder},isDisabled:g==="In-Progress"?"readonly":u,onColumnSortConfigChanged:O})}),n.jsxRuntimeExports.jsx(n.VariableSizeList,{ref:y,height:$-ro,itemCount:R.length,itemData:{missingReceipts:e,receiptUploadEndpoint:s,authParams:l,isDisabled:u,selectedPeriod:a,onMissingReceiptsRowClick:p,onUploadReceiptComplete:o,onUploadReceiptAttachment:c,onUploadReceiptFetchStatus:r},itemSize:w,width:B,style:{willChange:"auto"},overscanCount:bc,onScroll:({scrollOffset:b})=>{x({scrollPosition:{scrollTop:b}})},initialScrollOffset:f.scrollPosition?.scrollTop,children:ul})]})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:v===!0,children:n.jsxRuntimeExports.jsx(Rl,{children:n.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"Small",start:!0})})})]})},ul=({index:e,style:s,data:l})=>{const{missingReceipts:a,receiptUploadEndpoint:u,authParams:p,onMissingReceiptsRowClick:o,onUploadReceiptComplete:c,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:x,selectedPeriod:d}=l,h=a.transactions[e];return n.jsxRuntimeExports.jsx(yl,{style:{...s,width:"100%"},children:n.jsxRuntimeExports.jsx(Xc,{transaction:h,receiptUploadEndpoint:u,authParams:p,selectedPeriod:d,onMissingReceiptsRowClick:o,onUploadReceiptComplete:c,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:x,uploadReceiptsFetchState:a.uploadReceiptStatusById[h.id]??{fetchState:"Not-Started",error:void 0}},h.id)})},pl=i.div`
|
|
1014
|
-
width: auto;
|
|
1015
|
-
`,ml=i.div`
|
|
1016
|
-
width: 100%;
|
|
1017
|
-
height: 100%;
|
|
1018
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1019
|
-
`,xl=i.div`
|
|
1020
|
-
height: 100%;
|
|
1021
|
-
`,hl=i.div`
|
|
1022
|
-
height: 100%;
|
|
1023
|
-
display: flex;
|
|
1024
|
-
flex-direction: column;
|
|
1025
|
-
max-width: 99.9%;
|
|
1026
|
-
`,gl=i.div`
|
|
1027
|
-
display: flex;
|
|
1028
|
-
width: 100%;
|
|
1029
|
-
height: ${e=>`calc(100% - ${t.navBarHeight.valuePx(e.windowSize)})`};
|
|
1030
|
-
flex-direction: column;
|
|
1031
|
-
justify-content: center;
|
|
1032
|
-
align-items: center;
|
|
1033
|
-
`,jl=i.div`
|
|
1034
|
-
height: 96px;
|
|
1035
|
-
width: 96px;
|
|
1036
|
-
background: ${e=>e.theme.colors.background};
|
|
1037
|
-
border-radius: 50%;
|
|
1038
|
-
cursor: pointer;
|
|
1039
|
-
& svg {
|
|
1040
|
-
margin: ${t.Space.sp5};
|
|
1041
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1042
|
-
}
|
|
1043
|
-
&:hover {
|
|
1044
|
-
& svg {
|
|
1045
|
-
color: ${e=>e.theme.colors.primary};
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
`,fl=i(t.SmallRegularSp)`
|
|
1049
|
-
margin-top: ${t.Space.sp3};
|
|
1050
|
-
color: ${e=>e.theme.colors.hero};
|
|
1051
|
-
`,yl=i.div`
|
|
1052
|
-
top: ${t.Space.sp0};
|
|
1053
|
-
left: ${t.Space.sp0};
|
|
1054
|
-
padding-bottom: ${t.Space.sp3};
|
|
1055
|
-
box-sizing: border-box;
|
|
1056
|
-
`,Sl=i.div`
|
|
1057
|
-
position: relative;
|
|
1058
|
-
`,Rl=i.div`
|
|
1059
|
-
display: flex;
|
|
1060
|
-
width: 100%;
|
|
1061
|
-
height: ${t.Space.sp3};
|
|
1062
|
-
flex-direction: row;
|
|
1063
|
-
justify-content: center;
|
|
1064
|
-
align-items: center;
|
|
1065
|
-
margin-top: ${t.Space.sp3};
|
|
1066
|
-
margin-bottom: ${t.Space.sp3};
|
|
1067
|
-
`,Cl=[...V.SUPPORTED_ATTACHMENT_FILE_TYPES],El=7*1024*100,vl=i.div`
|
|
1068
|
-
width: ${pe.FORM_MINIMUM_WIDTH}px;
|
|
1069
|
-
`,dn=i.div`
|
|
1070
|
-
width: ${e=>`${e.availableWidth}px`};
|
|
1071
|
-
min-width: auto;
|
|
1072
|
-
position: relative;
|
|
1073
|
-
height: fit-content;
|
|
1074
|
-
min-height: ${t.Space.sp12};
|
|
1075
|
-
`,bl=i.div`
|
|
1076
|
-
flex-grow: 1;
|
|
1077
|
-
overflow: auto;
|
|
1078
|
-
min-height: 2em;
|
|
1079
|
-
display: flex;
|
|
1080
|
-
flex-direction: row;
|
|
1081
|
-
position: relative;
|
|
1082
|
-
|
|
1083
|
-
pointer-events: auto;
|
|
1084
|
-
user-select: text;
|
|
1085
|
-
justify-content: space-between;
|
|
1086
|
-
margin-bottom: ${t.Space.sp2};
|
|
1087
|
-
|
|
1088
|
-
// Disable select for Zeni Logo and File Separator
|
|
1089
|
-
#${pe.MONTH_END_EMAIL_BODY_SECTION} img[alt*="company logo"],
|
|
1090
|
-
.attachFileSeparator {
|
|
1091
|
-
user-select: none;
|
|
1092
|
-
}
|
|
1093
|
-
`,wl=i.div`
|
|
1094
|
-
display: flex;
|
|
1095
|
-
column-gap: ${t.Space.sp2};
|
|
1096
|
-
align-items: flex-end;
|
|
1097
|
-
margin-top: ${t.Space.sp2};
|
|
1098
|
-
margin-bottom: ${t.Space.sp3};
|
|
1099
|
-
`,Il=i.div`
|
|
1100
|
-
position: relative;
|
|
1101
|
-
`,Cs=i(t.StandardRegular)`
|
|
1102
|
-
position: relative;
|
|
1103
|
-
`,kl=i.div`
|
|
1104
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1105
|
-
border: ${e=>`1px solid ${e.theme.colors.background}`};
|
|
1106
|
-
border-radius: ${t.Space.sp2};
|
|
1107
|
-
box-shadow: ${e=>`${t.Space.sp0} 2px ${t.Space.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
1108
|
-
padding: ${t.Space.sp5};
|
|
1109
|
-
color: ${e=>e.theme.colors.primary};
|
|
1110
|
-
position: relative;
|
|
1111
|
-
.lexicalEditor__nestedListItem {
|
|
1112
|
-
list-style-type: none;
|
|
1113
|
-
}
|
|
1114
|
-
user-select: text;
|
|
1115
|
-
|
|
1116
|
-
.monthEndReportCanvasWrapper > * {
|
|
1117
|
-
isolation: isolate;
|
|
1118
|
-
z-index: ${t.sp[1]};
|
|
1119
|
-
}
|
|
1120
|
-
`,Tl=i.div`
|
|
1121
|
-
user-select: text;
|
|
1122
|
-
`,$l=i.div`
|
|
1123
|
-
position: absolute;
|
|
1124
|
-
top: ${t.Space.sp4}; // Attachment icon position from the top
|
|
1125
|
-
right: -${t.Space.sp3}; // To show attachment icon on the edge
|
|
1126
|
-
`,Ll=i.div`
|
|
1127
|
-
margin-top: ${t.Space.sp2};
|
|
1128
|
-
display: flex;
|
|
1129
|
-
flex-direction: column;
|
|
1130
|
-
row-gap: ${t.Space.sp3};
|
|
1131
|
-
margin-bottom: ${t.Space.sp4};
|
|
1132
|
-
position: relative;
|
|
1133
|
-
|
|
1134
|
-
.toolbar {
|
|
1135
|
-
user-select: none;
|
|
1136
|
-
}
|
|
1137
|
-
`,Al=i(t.SmallRegular)`
|
|
1138
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1139
|
-
user-select: none;
|
|
1140
|
-
`,Ol=i(t.StandardBold)`
|
|
1141
|
-
color: ${e=>e.theme.colors.primary};
|
|
1142
|
-
`,Dl=i.div`
|
|
1143
|
-
flex-direction: column;
|
|
1144
|
-
row-gap: ${t.Space.sp3};
|
|
1145
|
-
display: flex;
|
|
1146
|
-
`,_l=Ne.keyframes`
|
|
1147
|
-
0% {
|
|
1148
|
-
transform: translateX(100%);
|
|
1149
|
-
}
|
|
1150
|
-
100% {
|
|
1151
|
-
transform: translateX(0)
|
|
1152
|
-
}
|
|
1153
|
-
`,Ml=Ne.keyframes`
|
|
1154
|
-
0% {
|
|
1155
|
-
transform: translateX(0)
|
|
1156
|
-
}
|
|
1157
|
-
100% {
|
|
1158
|
-
transform: translateX(100%)
|
|
1159
|
-
}
|
|
1160
|
-
`,Bl=i.div`
|
|
1161
|
-
animation: ${e=>e.allThreadsSectionOpen?_l:Ml}
|
|
1162
|
-
0.5s forwards;
|
|
1163
|
-
height: 100vh;
|
|
1164
|
-
position: fixed;
|
|
1165
|
-
right: ${t.Space.sp0};
|
|
1166
|
-
top: ${t.Space.sp0};
|
|
1167
|
-
z-index: ${t.sp[2]};
|
|
1168
|
-
min-width: ${pe.COMMENTS_SECTION_MINIMUM_WIDTH}px;
|
|
1169
|
-
max-width: ${pe.COMMENTS_DRAWER_MAXIMUM_WIDTH}px;
|
|
1170
|
-
`,tn="monthEndReportFormSection",Es="monthEndReportPage",Ve=t.appLocale.getLocalizedStrings();function Nl({companyId:e,enableZeniGPTFeature:s,monthEndReportView:l,previewMode:a,customerRequestData:u,allThreadsSectionOpen:p,filterMetaData:o,newThreadMetadata:c,isZeniUser:r,selectedPeriod:x,improveUsingZeniGPTClick:d,onRemoveFileAttachment:h,onUpdateFileAttachment:g,onCloseAllThreadsSection:f,previewMonthEndReport:R,saveMonthEndReport:y,onEditClick:v,onOpenFileAttachmentSnackBar:j,onClickCustomerRequest:w,sendMonthEndReport:O}){const $=n.useTheme(),[B,b]=m.useState(),[C,I]=m.useState(0),[L,W]=m.useState(0),T=m.useRef(),X=m.useRef(null),_=m.useRef(null),{html:P,subject:U,improveUsingZeniGPTStatus:K}=l,[M,Q]=m.useState(),[Se,H]=m.useState(!1),[he,ge]=m.useState(!1),S=m.useRef(null),N=m.useRef(null),q=pe.useDelayUnmount(p,250),F=l.fetchState==="Not-Started"||l.fetchState==="In-Progress"||l.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||l.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:z,sortedThreads:A,threadsPositions:G,observer:le,unresolvedThreadsMap:D,handleRemoveFloatingThread:ee}=pe.useFloatingThreads(o,S,!a,F,r),te=m.useCallback(()=>{p?N.current!=null&&W(Math.min((N.current.offsetWidth-pe.FORM_MINIMUM_WIDTH-t.sp[4])/2,N.current.offsetWidth-pe.FORM_MINIMUM_WIDTH-pe.COMMENTS_DRAWER_MAXIMUM_WIDTH-t.sp[4])):N.current!=null&&I(Math.min((N.current.offsetWidth-pe.FORM_MINIMUM_WIDTH-t.sp[4])/2,N.current.offsetWidth-pe.FORM_MINIMUM_WIDTH-pe.COMMENTS_SECTION_MINIMUM_WIDTH-t.sp[4]))},[p]);m.useEffect(()=>{te()},[p,te]),m.useEffect(()=>(window.addEventListener("resize",te),()=>{window.removeEventListener("resize",te)}),[te]);const J=r?t.ThreadsContext:t.NonZeniUsersThreadsContext,{openThread:je,addThread:Ce,setOpenThread:E}=m.useContext(J),Y=pe.useHandleSelection(pe.MONTH_END_REPORT_CANVAS,!1,!a),me=S.current?.getBoundingClientRect(),Oe=Y!=null&&Y.coords&&me?{left:Y.coords.left-me.left,top:Y.coords.top-me.top}:void 0,Be=m.useCallback(()=>{const ae=window.getSelection()?.getRangeAt(0),ue=pe.getSelectionData();if(!ae||ue==null)return;const Re={...c,...ue,startPath:ue.startPath.join(),endPath:ue.endPath.join()},fe=`${n.nanoid()}${t.NEW_THREAD_SUFFIX}`,Ze=`cockpit_${e}`;Ce(fe,{type:"thread",id:fe,roomId:Ze,createdAt:new Date,comments:[],metadata:Re,updatedAt:new Date,resolved:!1}),E(fe)},[Ce,e,c,E]);m.useEffect(()=>{je!=null&&p&&f()},[p,je,f]);const be=K.fetchState==="In-Progress",we=n.useForm({mode:"all",defaultValues:vs(l),values:vs(l)}),de=we.handleSubmit(ae=>{const{recipientEmailList:ue,subject:Re}=ae[tn];if(a===!0)O?.(M?.id);else{const fe=B?.replace(t.EMPTY_HTML_CHECKER,Ve.common.strings.empty);ue!=null&&Re!=null&&R(ue,Re,M?.id,fe!=null&&fe.length>0?B:void 0)}}),Ue=()=>{X.current!=null&&X.current.click()},We=()=>{M!==void 0&&M!=null&&(h([M.id]),Q(void 0),H(!1))},Ge=ae=>{const ue=ae.target.files?ae.target.files[0]:null;if(ue)if(!V.toSupportedAttachmentFileType(ue.type)||he)console.warn("Please select a valid file.");else{const Re=new FileReader;Re.onload=function(fe){const Ze=fe.target?.result;if(typeof Ze=="string"){const De={data:Ze.split(",")[1],name:ue.name,id:V.getAttachmentFileIdByFileName(e,ue.name)};Q(De),H(!0),g([De])}},Re.readAsDataURL(ue)}},re=()=>{_.current&&_.current.scrollIntoView({behavior:"smooth"})},Pe=()=>{const ae=we.getValues(),{recipientEmailList:ue,subject:Re}=ae[tn];ue!=null&&Re!=null&&y(ue,Re,M?.id,B)};m.useEffect(()=>{b(l.zeniRequestsHtml)},[l.zeniRequestsHtml]),m.useEffect(()=>{T.current=M},[M]),m.useEffect(()=>{Q(V.mapAttachmentFileToAttachmentFilePayload(l.attachmentFile)),H(!1)},[l.attachmentFile]),m.useEffect(()=>{he&&j()},[he,j]);const jt=V.zeniDate(`${x.year}-${x.month}-01`).format(Ve.dateFormat.visual.MMMMFormat),tt=P!=null?P.split(pe.MONTH_END_EDITOR_PLACEHOLDER):[],pt=l.concatenatedHtml,ft=()=>l.lastDraftSavedDate!=null&&a===!1?n.jsxRuntimeExports.jsx(pe.UserWithTimestamp,{time:l.lastDraftSavedDate,user:l.reportLastSavedByUser,timeStampLabel:Ve.cockpit.monthEndReport.timeStampLabel}):null,yt=()=>r===!0?q?n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(Bl,{allThreadsSectionOpen:p,children:n.jsxRuntimeExports.jsx(t.AllThreadsSection,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${$.colors.grey3}`,boxShadow:`${t.Space.sp0} 1px 2px ${t.Space.sp0} ${t.Colors.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${t.Space.sp5} - ${t.Space.sp5})`,backgroundColor:$.colors.background},threadsContainerStyle:{paddingBottom:a?"160px":t.Space.sp12},collapsibleThreadStyle:{width:`calc(100% - ${t.Space.sp4})`},allowComposer:!1,drawerTitle:Ve.common.texts.comments,filter:o,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(ae,ue)=>{E(ue);const Re=A.findIndex(fe=>fe[0]===ue);f(),z.current?.[Re]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>f()})}),n.jsxRuntimeExports.jsx(dn,{availableWidth:C})]}):n.jsxRuntimeExports.jsx(pe.FloatingThreads,{observer:le,canvasContainerRef:S,sortedThreads:A,threadsPositions:G,threadsRefs:z,unresolvedThreadsMap:D,editorMode:!a,style:{minWidth:`${C}px`,position:"relative",height:"fit-content",top:`${S.current?.offsetTop}px`,minHeight:t.Space.sp12},handleRemoveFloatingThread:ee}):n.jsxRuntimeExports.jsx(dn,{availableWidth:C}),Ee=(l.zeniRequestsData??[]).length+t.getTemplatesFromTemplatedData(l.companyMonthEndReportTemplatesData).length;return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs(bl,{ref:N,children:[n.jsxRuntimeExports.jsx(dn,{availableWidth:p?L:C}),n.jsxRuntimeExports.jsxs(vl,{children:[n.jsxRuntimeExports.jsx(n.FormProvider,{...we,children:n.jsxRuntimeExports.jsx("form",{id:bs(Es),onSubmit:de,children:n.jsxRuntimeExports.jsxs(Dl,{children:[n.jsxRuntimeExports.jsx(pe.MonthEndReportSection,{sectionId:tn,previewMode:a,subject:U}),!a&&Ee>0?n.jsxRuntimeExports.jsx(pe.MonthEndReportCustomerRequestSection,{totalItems:Ee,onClickCustomerRequest:w}):null,n.jsxRuntimeExports.jsxs(kl,{id:pe.MONTH_END_REPORT_CANVAS,ref:S,children:[n.jsxRuntimeExports.jsxs(Tl,{className:"monthEndReportCanvasWrapper",children:[M!=null||he?n.jsxRuntimeExports.jsx($l,{"data-testid":t.generateDataTestId("email-attachment-container"),onClick:re,children:n.jsxRuntimeExports.jsx(pe.CircleWithAttachmentSuccessIcon,{fileSizeError:he,setFileSizeError:ge,loading:!1,showAnimation:!a&&Se})}):null,a?n.jsxRuntimeExports.jsx(Cs,{dangerouslySetInnerHTML:{__html:pe.getHTMLWithCommentingSections(pt)}}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs(Il,{id:pe.MONTH_END_EMAIL_HEADER_SECTION,children:[n.jsxRuntimeExports.jsx(t.StandardRegular,{dangerouslySetInnerHTML:{__html:tt[0]!=null?tt[0]+"</body></html>":Ve.common.strings.empty}}),n.jsxRuntimeExports.jsxs(wl,{children:[n.jsxRuntimeExports.jsx(Ol,{children:Ve.cockpit.monthEndReport.editorTitle}),n.jsxRuntimeExports.jsx(Al,{children:Ve.cockpit.monthEndReport.editorNote})]})]}),n.jsxRuntimeExports.jsx(Ll,{id:pe.MONTH_END_EMAIL_EDITOR_SECTION,children:n.jsxRuntimeExports.jsx(pe.Editor,{handleFileInputClick:Ue,fileAttached:M!=null,enableZeniGPTFeature:s,isZeniGPTResponseLoading:be,initialHtmlString:l.zeniRequestsHtml,improveUsingZeniGPTClick:d,setZeniRequestsHtml:b,customerRequestData:u})}),n.jsxRuntimeExports.jsx(Cs,{id:pe.MONTH_END_EMAIL_BODY_SECTION,dangerouslySetInnerHTML:{__html:tt[1]!=null?"<html><body>"+tt[1]:Ve.common.strings.empty}})]}),M!=null?n.jsxRuntimeExports.jsx(pe.FileAttachment,{ref:_,fileName:M.name,fileSize:t.base64FileSize(M.data),onRemove:We,isRemovable:!a}):null]}),Oe?n.jsxRuntimeExports.jsx(pe.AddThreadFloating,{style:{zIndex:15},coords:Oe,alignment:Y.alignment,onClick:Be}):null,n.jsxRuntimeExports.jsx(pe.TextHighlightSection,{canvasContainerRef:S,sortedThreads:A,editorMode:!a,isZeniUser:r})]})]})})}),n.jsxRuntimeExports.jsx(t.FileInputElement,{name:M?.name??Ve.common.strings.empty,fileRef:X,sizeLimit:El,acceptableTypes:Cl,onFileChange:async ae=>{Ge(ae)},onFileSizeError:ae=>ge(ae),multiple:!1})]}),yt()]}),n.jsxRuntimeExports.jsx(t.Footer,{style:{zIndex:10},leftSideComponent:ft(),formId:bs(Es),cancelBtn:{isDisabled:be,label:a===!0?Ve.cockpit.monthEndReport.editButtonLabel:Ve.cockpit.monthEndReport.saveChanges,onClick:a===!0?v:Pe,style:{width:"136px",padding:`${t.Space.sp0} ${t.Space.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:l.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:be,isLoading:a===!0?l.sendMonthEndReportStatus.fetchState==="In-Progress":l.previewMonthEndReportStatus.fetchState==="In-Progress",style:{width:a===!0?"unset":"136px"},label:a===!0?Ve.cockpit.monthEndReport.sendEmailButtonLabel.replace("__month__",jt):Ve.cockpit.monthEndReport.preview,size:"medium"}})]})}const vs=e=>({[tn]:{recipientEmailList:e.recipientEmailList,subject:e.subject??Ve.common.strings.empty}}),bs=e=>`${e}_form`;t.sp[5];t.sp[5];t.textStyles.smallBold.lineHeightValue;const Pl=1,Fl=50,ws=56,zl=["memo"],Is=e=>V.stringToUnionStrict(e,zl),{expenseAutomation:{transactions:{header:{vendors:Hl,category:Wl,classText:Vl,date:ql,type:Ul,amount:Gl,memo:Kl}}}}=t.appLocale.getLocalizedStrings(),Jl={key:"vendor",value:Hl,sortOrder:"ascending",width:new t.ResponsiveSized(18,18),customStyle:{common:{paddingLeft:t.sp[8]}}},Zl={key:"category",value:Wl,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),customStyle:{common:{paddingLeft:t.sp[7]}}},Yl={key:"class",value:Vl,sortOrder:"ascending",width:new t.ResponsiveSized(18,18),customStyle:{common:{paddingLeft:t.sp[7]}}},Xl={key:"date",value:ql,sortOrder:"descending",width:new t.ResponsiveSized(11,11),customStyle:{common:{}}},Ql={key:"transaction_type",value:Ul,sortOrder:"descending",width:new t.ResponsiveSized(13,13),customStyle:{common:{}}},ed={key:"memo",value:Kl,sortOrder:"ascending",width:new t.ResponsiveSized(6,6),customStyle:{common:{}}},td={key:"amount",value:Gl,sortOrder:"ascending",width:new t.ResponsiveSized(10,10),customStyle:{common:{paddingRight:t.sp[4]}}},dt=[Jl,Zl,Yl,Xl,Ql,ed,td],un={sortKey:"date",sortOrder:"descending"},uo=({sortConfig:e,isDisabled:s,onColumnSortConfigChanged:l})=>{const a=t.useWindowSizeContext(),[u,p]=m.useState(n.cloneDeep(dt));m.useEffect(()=>{const r=[...u];for(const x of r)x.key===e.sortKey?x.sortOrder=e.sortOrder:x.sortOrder="ascending";p(r)},[e.sortKey,e.sortOrder]);const o=(r,x)=>{let d=x;e.sortKey===r&&(d=x==="ascending"?"descending":"ascending"),l(r,d)},c=r=>{Is(r.key)==null&&o(V.toTransactionsSortKey(r.key),r.sortOrder)};return n.jsxRuntimeExports.jsx(nd,{windowSize:a,"data-testid":t.generateDataTestId("transaction-categorization-header-container"),children:u.map((r,x)=>{const d=s!=null||Is(r.key)!=null;return n.jsxRuntimeExports.jsxs(sd,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,style:r.customStyle?.common,isSortDisabled:d,windowSize:a,isLastItem:x===u.length-1,"data-testid":t.generateDataTestId("transaction-categorization-header-wrapper",r.key),children:[n.jsxRuntimeExports.jsxs(cd,{"data-testid":t.generateDataTestId("transaction-categorization-header",r.value),onClick:()=>c(r),isSortDisabled:d,children:[n.jsxRuntimeExports.jsx(ld,{children:r.value}),d?null:n.jsxRuntimeExports.jsx(id,{sortConfig:e,headerData:r,"data-testid":t.generateDataTestId("transaction-categorization-sort-icon",r.key),children:n.jsxRuntimeExports.jsx(ad,{})})]}),d?null:n.jsxRuntimeExports.jsx(rd,{isSortDisabled:d,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==un.sortKey,"data-testid":t.generateDataTestId("transaction-categorization-close-icon",r.key),children:n.jsxRuntimeExports.jsx(od,{onClick:()=>{o(un.sortKey,un.sortOrder)},"data-testid":t.generateDataTestId("transaction-categorization-close-icon-button",r.key)})})]},r.key)})})},nd=i.div`
|
|
1171
|
-
top: ${t.Space.sp0};
|
|
1172
|
-
left: ${t.Space.sp0};
|
|
1173
|
-
height: ${Fl}px;
|
|
1174
|
-
z-index: 2;
|
|
1175
|
-
display: flex;
|
|
1176
|
-
align-items: center;
|
|
1177
|
-
justify-content: space-between;
|
|
1178
|
-
box-sizing: border-box;
|
|
1179
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1180
|
-
position: sticky;
|
|
1181
|
-
`,sd=i.div`
|
|
1182
|
-
color: ${e=>e.sortDataValue===e.actualDataValue&&!e.isSortDisabled?e.theme.colors.primary:e.theme.colors.grey1};
|
|
1183
|
-
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
1184
|
-
max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
1185
|
-
padding-left: ${t.Space.sp0};
|
|
1186
|
-
left: ${t.Space.sp0};
|
|
1187
|
-
display: flex;
|
|
1188
|
-
align-items: center;
|
|
1189
|
-
gap: 6px;
|
|
1190
|
-
justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
|
|
1191
|
-
position: static;
|
|
1192
|
-
z-index: 0;
|
|
1193
|
-
box-sizing: border-box;
|
|
1194
|
-
`,od=i(t.SvgCloseRound)`
|
|
1195
|
-
width: 12px;
|
|
1196
|
-
height: 12px;
|
|
1197
|
-
`,id=i.div`
|
|
1198
|
-
display: flex;
|
|
1199
|
-
align-items: center;
|
|
1200
|
-
transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
1201
|
-
${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
|
|
1202
|
-
`,rd=i.div`
|
|
1203
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
1204
|
-
align-items: center;
|
|
1205
|
-
padding-top: 2px;
|
|
1206
|
-
cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
|
|
1207
|
-
&:hover {
|
|
1208
|
-
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
1209
|
-
}
|
|
1210
|
-
`,ad=i(t.SvgArrowTailTop)`
|
|
1211
|
-
width: ${t.Space.sp2};
|
|
1212
|
-
height: ${t.Space.sp2};
|
|
1213
|
-
`,cd=i.div`
|
|
1214
|
-
display: flex;
|
|
1215
|
-
cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
|
|
1216
|
-
gap: 6px;
|
|
1217
|
-
&:hover {
|
|
1218
|
-
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
1219
|
-
}
|
|
1220
|
-
`,ld=i(t.ExtraSmallRegular)`
|
|
1221
|
-
display: flex;
|
|
1222
|
-
`,pn="expenseAutomationTransactionsPage",wt="transactionCategorizationListTable",ke="account",qe="class",Qe="lineEntitySelection",dd="lineEntity",ud="recommendations",po="lineInfo",pd="vendorDetails",md="customerDetails",nn="selectedTransactionIds",xt=(e,s,l)=>`${e}.${l}.${s}`,xd=e=>k.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("path",{d:"M21.7995 14.6384L14.7656 21.6723L11.3086 22.3637L12 18.9067L19.0339 11.8728C19.3997 11.5071 19.8958 11.3016 20.413 11.3016C20.9303 11.3016 21.4263 11.5071 21.7922 11.8728L21.7995 11.8811C21.9808 12.062 22.1246 12.2769 22.2227 12.5134C22.3208 12.75 22.3713 13.0036 22.3713 13.2597C22.3713 13.5158 22.3208 13.7694 22.2227 14.006C22.1246 14.2426 21.9808 14.4575 21.7995 14.6384Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M8.54295 19.5981H3.0117C2.82886 19.6026 2.64701 19.57 2.47718 19.5021C2.30735 19.4342 2.15309 19.3325 2.02376 19.2032C1.89444 19.0739 1.79275 18.9196 1.72487 18.7498C1.65699 18.58 1.62433 18.3981 1.62888 18.2153V4.48579C1.61644 4.10613 1.75499 3.73703 2.01419 3.45934C2.27339 3.18165 2.63209 3.01804 3.0117 3.00433H16.8398C17.2194 3.01804 17.5781 3.18165 17.8373 3.45934C18.0965 3.73703 18.2351 4.10613 18.2226 4.48579V8.53558",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M14.055 8.06982L5.80499 8.06982",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M10.305 12.5698L5.80499 12.5698",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:hd,hyphen:ks,empty:At}},expenseAutomation:{transactions:Ot},dateFormat:gd}=t.appLocale.getLocalizedStrings(),ht={containerPaddingLeftRight:new t.ResponsiveSized(t.sp[3],t.sp[4]),containerPaddingTopBottom:new t.ResponsiveSized(t.sp[1],t.sp[2]),containerPaddingTopBottomEmpty:new t.ResponsiveSized(t.sp[2],t.sp[3]),controlHeight:new t.ResponsiveSized(t.sp[4],t.sp[6]),nameLogoWidth:new t.ResponsiveSized(t.sp[2],t.sp[4]),nameLogoHeight:new t.ResponsiveSized(t.sp[2],t.sp[4])},jd=({transactionView:e,transaction:s,sectionId:l,vendorSearchAutoCompleteData:a,vendorSearchAutoCompleteActions:u,selectedTab:p,containerRef:o,isCOTEnabled:c,cotTracking:r,onTransactionCategorizationRowClick:x,setCurrentTransactionInAction:d,vendorLoadOptions:h,openTooltipId:g,setOpenTooltipId:f,isUncategorizedExpenseCategoryEnabled:R})=>{const y=t.useWindowSizeContext(),[v,j]=m.useState(!1),{lineItemById:w,sortedLineItems:O}=s.transactionReviewLocalData,$=s.transactionReviewLocalData.tabSpecificLineItems?.[p]||[],B=O.filter(S=>$.indexOf(S)!==-1),b=[];B.forEach(S=>{b.push(w[S])});const{accountList:C,accountsHierarchyList:I,classHierarchyList:L,classList:W,uncategorizedAccounts:T,transactions:X,selectedCheckBoxTransactionIds:_}=e,P=_.includes(s.transactionId),U=n.useTheme(),K={control:()=>({marginLeft:-2,backgroundColor:v?U.colors.background:U.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:t.sp[0]}),menu:()=>({width:"150%",background:U.colors.grey5}),singleValue:()=>({color:v||P?U.colors.primary:U.colors.hero,paddingLeft:t.sp[2]}),input:S=>({...S,color:v||P?U.colors.primary:U.colors.hero,textAlign:"left",paddingLeft:t.sp[2]}),menuPortal:S=>({...S,zIndex:10})},M={...K,singleValue:S=>({...S,color:v||P?U.colors.primary:U.colors.hero}),menu:()=>({marginTop:t.sp[1],marginLeft:-t.sp[2]}),input:S=>({...S,color:v||P?U.colors.primary:U.colors.hero,textAlign:"left"})},Q=X.find(S=>S.id===s.transactionId),Se=(S,N)=>{const{transactionType:q}=N.transactionReviewLocalData;let z=S.target;for(;z;){if(z.classList.contains("select-value-container")||z.classList.contains("item-value-container")||z.classList.contains("grouped-single-select-field__value-container")||z.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||z.classList.contains("grouped-single-select-field__input")||z.classList.contains("grouped-single-select-field__menu"))return;z=z.parentElement}q!=null&&x(N.transactionId,q)},H=m.useRef(null),[he,ge]=m.useState("auto");return m.useEffect(()=>{const S=()=>{if(o.current!=null&&H.current!=null){const N=o.current.getBoundingClientRect(),F=H.current.getBoundingClientRect().top-N.top;ge(F>285?"top":"bottom")}};return S(),window.addEventListener("resize",S),window.addEventListener("scroll",S),()=>{window.removeEventListener("resize",S),window.removeEventListener("scroll",S)}},[o]),n.jsxRuntimeExports.jsx(Sd,{onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),windowSize:y,isSelected:P,isHovered:v,children:n.jsxRuntimeExports.jsx(Rd,{children:b.map((S,N)=>n.jsxRuntimeExports.jsx(Cd,{ref:H,"data-testid":t.generateDataTestId("transaction-categorization-list-row",S.lineId),windowSize:y,onClick:q=>Se(q,s),children:n.jsxRuntimeExports.jsx(fd,{line:S,isHovered:v||P,isSelected:P,lineIndex:N,sectionId:l,transaction:s,currentTransaction:Q,windowSize:y,accountsHierarchyList:I,classHierarchyList:L,allAccountList:C,allClassList:W,uncategorizedAccounts:T,vendorSearchAutoCompleteData:a,vendorSearchAutoCompleteActions:u,setCurrentTransactionInAction:d,vendorLoadOptions:h,customStyle:K,customStyleAutoComplete:M,recommendations:S.recommendationsWithCOT,selectedTab:p,isCOTEnabled:c,menuPlacement:he,cotTracking:r,openTooltipId:g,setOpenTooltipId:f,isUncategorizedExpenseCategoryEnabled:R})},`${s.transactionId}.${S.lineId}`))},s.transactionId)},s.transactionId)},fd=({accountsHierarchyList:e,allAccountList:s,allClassList:l,classHierarchyList:a,customStyle:u,customStyleAutoComplete:p,line:o,lineIndex:c,transaction:r,currentTransaction:x,windowSize:d,uncategorizedAccounts:h,isHovered:g=!1,isSelected:f=!1,sectionId:R,recommendations:y,vendorSearchAutoCompleteData:v,selectedTab:j,isCOTEnabled:w,menuPlacement:O,cotTracking:$,openTooltipId:B,setCurrentTransactionInAction:b,vendorLoadOptions:C,setOpenTooltipId:I,isUncategorizedExpenseCategoryEnabled:L})=>{const{transactionDate:W,transactionType:T,transactionTypeName:X,memo:_}=r.transactionReviewLocalData,{setValue:P}=n.useFormContext(),U=m.useCallback((se,ve)=>{$?.onCOTView!=null&&$.onCOTView(o.lineId,r.transactionId,se,ve)},[$,o.lineId,r.transactionId]),K=xt(R,Qe,c.toString()),M=xt(R,ke,c.toString()),Q=xt(R,qe,c.toString()),Se=(se,ve)=>{let xe;switch(ve){case"vendor":xe=K;break;case"category":xe=M;break;case"class":xe=Q;break;default:return}P(`${xe}.selectedOption`,se,{shouldValidate:!0,shouldDirty:!0})},H=n.useTheme(),he=m.useMemo(()=>x!=null&&V.isVendorTransaction(x)===!0?{id:r.transactionReviewLocalData.customer?.id??"",logo:r.transactionReviewLocalData.customer?.logo,name:r.transactionReviewLocalData.customer?.name??""}:{id:o.customer?.id??"",logo:o.customer?.logo,name:o.customer?.name??""},[x,o.customer?.id,o.customer?.logo,o.customer?.name,r.transactionReviewLocalData.customer?.id,r.transactionReviewLocalData.customer?.logo,r.transactionReviewLocalData.customer?.name]),ge=m.useMemo(()=>x!=null&&V.isVendorTransaction(x)===!0?{id:r.transactionReviewLocalData.vendor?.id??"",logo:r.transactionReviewLocalData.vendor?.logo,name:r.transactionReviewLocalData.vendor?.name??""}:{id:o.vendor?.id??"",logo:o.vendor?.logo,name:o.vendor?.name??""},[x,o.vendor?.id,o.vendor?.logo,o.vendor?.name,r.transactionReviewLocalData.vendor?.id,r.transactionReviewLocalData.vendor?.logo,r.transactionReviewLocalData.vendor?.name]),S=o[qe]?.classId,N=o[ke]?.qboId??o[ke]?.accountId,q=he?.id,F=ge?.id,z=ge?.name,[A,G]=m.useState(!S),[le,D]=m.useState(!N||o[ke]?.qboId!=null&&V.isAccountUncategorized(h,o[ke].qboId,L===!0?["income"]:void 0)===!0),[ee,te]=m.useState(!F||!q),J=se=>y?.find(xe=>xe.vendor?.qboId===se||xe.vendor?.id===se||xe.vendor?.name===se)?.vendor?.reason??"",je=r.transactionReviewLocalData.lineItemById[o.lineId]?.recommendationsWithCOT||[],Ce=t.getGroupedAccountOptionsWithCOT(e,je),E=t.getGroupedClassOptionsWithCOT(a,je),Y=se=>s.filter(xe=>xe.qboId===se)[0]?.qboId,me=se=>l.filter(xe=>xe.classId===se)[0]?.accountingClassNumber??void 0,Oe=m.useCallback(se=>V.isAccountUncategorized(h,se,L===!0?["income"]:void 0),[h,L]),[Be,be]=m.useState(!1),[we,de]=m.useState(!1),[Ue,We]=m.useState(!1),Ge=(se,ve)=>{b({transactionId:r.transactionId,lineItemId:o.lineId}),C(se,ve)},re=()=>{te(!(F||q)),be(!1)},Pe=()=>{N&&o[ke]?.qboId!=null&&V.isAccountUncategorized(h,o[ke].qboId,L===!0?["income"]:void 0)===!1?D(!1):D(!0),We(!1)},et=()=>{G(!S),de(!1)},jt=()=>{(F||q)&&be(!0)},tt=()=>{de(!0)},pt=()=>{We(!0)};m.useEffect(()=>{N&&o[ke]?.qboId!=null&&V.isAccountUncategorized(h,o[ke].qboId,L===!0?["income"]:void 0)===!1?D(!1):D(!0)},[N]),m.useEffect(()=>{G(!S)},[S]),m.useEffect(()=>{te(!(F||q))},[F,q]);const ft=r.transactionReviewLocalData.selectedEntity,yt=r.transactionReviewLocalData.lineItemById[o.lineId].selectedEntityLine,Ee=x!=null&&V.isVendorTransaction(x)===!0?ft:yt,ae=m.useMemo(()=>{const se=r.transactionReviewLocalData.lineItemById[o.lineId]?.recommendationsWithCOT||[],ve=v.entityAutoCompleteView;return{selectedOption:Ee?.qboId??Ee?.id,defaultOptions:t.getGroupedForPayeeEntityOptionsWithCOT(ve,Ee,se??[])}},[Ee,r.transactionReviewLocalData.lineItemById,o.lineId,v.entityAutoCompleteView]),ue=()=>Ee!=null&&Ee.logo!=null?n.jsxRuntimeExports.jsx(t.EntityLogoAvatarWithCustomFallback,{photoUrl:Ee.logo.toString(),styles:{width:ht.nameLogoWidth.valuePx(d),height:ht.nameLogoHeight.valuePx(d)},fallbackAvatar:n.jsxRuntimeExports.jsx(Ls,{children:n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:Ee.name,size:t.Space.sp4})})}):Ee!=null&&Ee.name!=null?n.jsxRuntimeExports.jsx(Ls,{children:n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:Ee.name,size:t.Space.sp4})}):null,Re=(se,ve)=>{if(ve==null||!ve)return;let xe=[];return se.forEach(_e=>{xe=xe.concat(_e.options)}),xe.find(_e=>_e.value===ve)?.label??ve},fe=Re(E,S),Ze=Re(Ce,N),De=j==="review",nt=t.isMiscategorizedField("vendor",ae.defaultOptions,ae.selectedOption),Ke=t.isMiscategorizedField("category",Ce,N),It=t.isMiscategorizedField("class",E,S),Bt=()=>dt.map((se,ve)=>{const xe=`${r.transactionId}_${se.key}_${o.lineId}`;if(c>0&&x!=null&&V.isVendorTransaction(x)===!0&&se.key==="vendor")return n.jsxRuntimeExports.jsx(Ye,{windowSize:d,wrapperWidth:se.width},xe);if(c>0&&se.key==="transaction_type")return n.jsxRuntimeExports.jsx(Ye,{windowSize:d,wrapperWidth:se.width},xe);switch(se.key){case"vendor":default:return n.jsxRuntimeExports.jsxs(Ye,{windowSize:d,wrapperWidth:se.width,className:"item-value-container",children:[n.jsxRuntimeExports.jsx(mn,{isCOTEnabled:w,recommendations:je,type:"vendor",isFirstColumn:!0,isEnabled:!!Ee?.isPreFilled,isMisCategorized:nt,onRecommendationClick:Se,selectedValue:F,selectedValueLabel:z,isReviewTab:De,isAccountOptionDisabled:Oe,existingOption:{label:x!=null&&V.isVendorTransaction(x)===!0?x?.vendor?.name:void 0,value:x!=null&&V.isVendorTransaction(x)===!0?x?.vendor?.id:void 0},cotTracking:$,lineId:o.lineId,transactionId:r.transactionId,openTooltipId:B,setOpenTooltipId:I}),n.jsxRuntimeExports.jsx(fn,{children:ee===!0?n.jsxRuntimeExports.jsx(gn,{isHovered:g,children:n.jsxRuntimeExports.jsxs(xn,{onClick:_e=>{_e.stopPropagation(),te(!1),be(!0)},"data-testid":t.generateDataTestId("add-vendor-button",R),style:{display:"inline-flex",alignItems:"center",color:t.Colors.brandColorGoldDark,cursor:"pointer",height:t.Space.sp6},children:[n.jsxRuntimeExports.jsx(hn,{}),Ot.addPayee]})}):Be===!0?n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:re,children:n.jsxRuntimeExports.jsx(_d,{"data-testid":t.generateDataTestId("vendor-selection-dropdown-container",xt(R,Qe,c.toString())),children:n.jsxRuntimeExports.jsx(t.AutoCompleteGroupedCreatableSingleSelectCustomGroupFieldWithCOT,{name:K,placeholder:Ot.addPayee,valueToInfo:J,defaultValue:{selectedOption:ae.selectedOption,defaultOptions:ae.defaultOptions},type:"vendor",autoFocus:!ee,style:{width:"100%"},pageSource:"list_page",transactionStatus:De?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:p,menuIsOpen:Be,onMenuClose:re,registerOptions:{required:!1},loadOptions:Ge,showCOT:w,onCOTView:U,menuPlacement:O})})}):n.jsxRuntimeExports.jsx(Bd,{children:n.jsxRuntimeExports.jsxs(jn,{isHovered:g,showOutline:nt&&Ee?.isPreFilled!==!0&&!f&&De,children:[ue(),n.jsxRuntimeExports.jsx(Dd,{onClick:jt,"data-testid":t.generateDataTestId("vendor-name-text",R),children:Ee!=null&&Ee.name?n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:Ee.name,itemTextStyle:{color:g?H.colors.primary:H.colors.hero}}):n.jsxRuntimeExports.jsx(Md,{children:ks})})]})})})]},xe);case"category":{const _e=x?.lines!=null?x?.lines[c]:void 0;return n.jsxRuntimeExports.jsxs(Ye,{windowSize:d,wrapperWidth:se.width,className:"item-value-container",children:[n.jsxRuntimeExports.jsx(mn,{isCOTEnabled:w,recommendations:je,type:"category",isFirstColumn:!1,isReviewTab:De,isEnabled:!!o[ke]?.isPreFilled,isAccountOptionDisabled:Oe,isMisCategorized:Ke,onRecommendationClick:Se,selectedValue:N,selectedValueLabel:Ze,existingOption:{label:_e?.account?.accountName,value:_e?.account?.qboId??_e?.account?.accountId},cotTracking:$,lineId:o.lineId,transactionId:r.transactionId,openTooltipId:B,setOpenTooltipId:I}),n.jsxRuntimeExports.jsx(fn,{children:le===!0?n.jsxRuntimeExports.jsx(gn,{isHovered:g,children:n.jsxRuntimeExports.jsxs(xn,{onClick:St=>{St.stopPropagation(),D(!1),We(!0)},"data-testid":t.generateDataTestId("category-selection-field",M),style:{display:"inline-flex",alignItems:"center",color:t.Colors.brandColorGoldDark,cursor:"pointer",height:t.Space.sp6},children:[n.jsxRuntimeExports.jsx(hn,{}),Ot.addCategory]})}):Ue===!0?n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:Pe,children:n.jsxRuntimeExports.jsx(As,{isHovered:g,"data-testid":t.generateDataTestId("category-selection-dropdown-container",M),children:n.jsxRuntimeExports.jsx(zt.GroupedSingleSelectFieldWithCOT,{name:M,placeholder:Ot.addCategory,valueToId:St=>Y(St),type:"category",pageSource:"list_page",transactionStatus:De?"pending_review":"auto_categorized",showCOT:w,defaultValue:{selectedOption:N,allOptions:Ce},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Ue,autoFocus:!le&&(!N||o[ke]?.qboId!=null&&[h.expense?.qboId,h.income?.qboId].includes(o[ke].qboId)),onMenuClose:Pe,customStyleConfig:u,disableCurrentOption:Oe,menuPlacement:O,onCOTView:U})})}):n.jsxRuntimeExports.jsx(jn,{isHovered:g,showOutline:Ke&&o[ke]?.isPreFilled!==!0&&!f&&De,children:n.jsxRuntimeExports.jsx(Os,{onClick:pt,"data-testid":t.generateDataTestId("category-label-text",M),children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:Ze??"",itemTextStyle:{color:g?H.colors.primary:H.colors.hero}})})})})]},xe)}case"class":{const _e=x?.lines!=null?x?.lines[c]:void 0;return n.jsxRuntimeExports.jsxs(Ye,{windowSize:d,wrapperWidth:se.width,className:"item-value-container",children:[n.jsxRuntimeExports.jsx(mn,{isCOTEnabled:w,recommendations:je,type:"class",isFirstColumn:!1,isReviewTab:De,isEnabled:!!o[qe]?.isPreFilled,isAccountOptionDisabled:Oe,isMisCategorized:It,onRecommendationClick:Se,selectedValue:S,selectedValueLabel:fe,existingOption:{label:_e?.class?.className,value:_e?.class?.classId},cotTracking:$,lineId:o.lineId,transactionId:r.transactionId,openTooltipId:B,setOpenTooltipId:I}),n.jsxRuntimeExports.jsx(fn,{children:A===!0?n.jsxRuntimeExports.jsx(gn,{isHovered:g,children:n.jsxRuntimeExports.jsxs(xn,{onClick:St=>{St.stopPropagation(),G(!1),de(!0)},"data-testid":t.generateDataTestId("class-selection-field",Q),style:{display:"inline-flex",alignItems:"center",color:t.Colors.brandColorGoldDark,cursor:"pointer",height:t.Space.sp6},children:[n.jsxRuntimeExports.jsx(hn,{}),Ot.addClass]})}):we===!0?n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:et,children:n.jsxRuntimeExports.jsx(As,{isHovered:g,"data-testid":t.generateDataTestId("class-selection-dropdown-container",Q),children:n.jsxRuntimeExports.jsx(zt.GroupedSingleSelectFieldWithCOT,{name:Q,placeholder:Ot.addClass,valueToId:St=>me(St),type:"class",showCOT:w,defaultValue:{selectedOption:S,allOptions:E},pageSource:"list_page",transactionStatus:De?"pending_review":"auto_categorized",menuIsOpen:we,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!A&&!S,customStyleConfig:u,onMenuClose:et,menuPlacement:O,onCOTView:U})})}):n.jsxRuntimeExports.jsx(jn,{isHovered:g,showOutline:It&&o[qe]?.isPreFilled!==!0&&!f&&De,children:n.jsxRuntimeExports.jsx(Os,{"data-testid":t.generateDataTestId("class-selection-field",Q),onClick:tt,children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:fe??"",itemTextStyle:{color:g?H.colors.primary:H.colors.hero}})})})})]},xe)}case"date":return n.jsxRuntimeExports.jsx(Ye,{windowSize:d,wrapperWidth:se.width,children:n.jsxRuntimeExports.jsx(_t,{windowSize:d,isLastItem:ve===dt.length-1,children:n.jsxRuntimeExports.jsx($n,{"data-testid":t.generateDataTestId("date-field",xt(R,qe,c.toString())),children:n.jsxRuntimeExports.jsx(vd,{style:{color:g?H.colors.primary:H.colors.hero},children:W!=null?W.format(gd.visual.MMMDCommaYYYYformat):null})})})},xe);case"transaction_type":return n.jsxRuntimeExports.jsx(Ye,{windowSize:d,wrapperWidth:se.width,children:n.jsxRuntimeExports.jsx(_t,{windowSize:d,"data-testid":t.generateDataTestId("transaction-type-field",xt(R,qe,c.toString())),isLastItem:ve===dt.length-1,children:X!=null?n.jsxRuntimeExports.jsx(t.Tag,{textColor:g?new n.Color(H.colors.primary):t.getColorForTransactionType(void 0,H),text:X??T}):null})},xe);case"memo":return n.jsxRuntimeExports.jsx(Ye,{windowSize:d,wrapperWidth:se.width,children:n.jsxRuntimeExports.jsx(_t,{style:{lineHeight:t.Space.sp3},windowSize:d,isLastItem:ve===dt.length-1,"data-testid":t.generateDataTestId("memo-field",xt(R,qe,c.toString())),children:_&&c==0?n.jsxRuntimeExports.jsx(t.Tooltip,{placement:"bottom",title:_,children:n.jsxRuntimeExports.jsx(wd,{style:{color:g?H.colors.primary:H.colors.hero}})}):c==0?n.jsxRuntimeExports.jsx(bd,{children:ks}):null})},xe);case"amount":{const _e=t.amountToString("0,0.[00]",o.amount,!0);return n.jsxRuntimeExports.jsx(Ye,{windowSize:d,style:{paddingRight:t.sp[4]},wrapperWidth:se.width,children:n.jsxRuntimeExports.jsx(_t,{windowSize:d,isLastItem:ve===dt.length-1,children:n.jsxRuntimeExports.jsx($n,{"data-testid":t.generateDataTestId("transaction-amount-field",xt(R,qe,c.toString())),style:{color:g?H.colors.primary:H.colors.hero},children:_e})})},xe)}}});return n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:Bt()})},Ts=({isEnabled:e,isReviewTab:s,isMisCategorized:l,hasRecommendations:a,isTooltipVisible:u=!1})=>e?s?u?n.jsxRuntimeExports.jsx(Td,{}):n.jsxRuntimeExports.jsx(Id,{}):u?n.jsxRuntimeExports.jsx(kd,{}):n.jsxRuntimeExports.jsx($d,{className:"ai-icon-selected-plain"}):!e&&l||a?u?n.jsxRuntimeExports.jsx(Ad,{}):n.jsxRuntimeExports.jsx(Ld,{}):null,$s=({isFirstColumn:e,children:s})=>n.jsxRuntimeExports.jsx(xo,{isFirstColumn:e,children:s}),mn=({recommendations:e,isCOTEnabled:s,type:l,isReviewTab:a,selectedValueLabel:u,isFirstColumn:p,isEnabled:o=!1,isMisCategorized:c=!1,selectedValue:r,existingOption:x,cotTracking:d,lineId:h,openTooltipId:g,transactionId:f,isAccountOptionDisabled:R,onRecommendationClick:y,setOpenTooltipId:v})=>{const j=m.useMemo(()=>`${f}:${h}:${l}`,[f,h,l]),w=g===j,$=t.useToolkitContext().analytics,{createAlternateRecommendationCallback:B}=t.useCOTAnalytics(),b=m.useCallback(_=>{const P=e[1],U=e[0];B(l,{currentValue:u??At,transactionCurrentStatus:a?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:d?{transactionId:f,lineId:h,onCOTView:(K,M,Q,Se)=>{d.onCOTView?.(K,M,Q,Se)}}:void 0},P,U)(_)},[B,e,u,a,l,d,h,f]),C=t.createCOTDataFromRecommendations(e,l,s,x,"list_page",a?"pending_review":"auto_categorized",y,b,r,R),I=t.hasRecommendationsForType(e,l),L=m.useCallback(()=>{v(j);const _=C?.recommendations[0]?.cot??[],P=C?.recommendations[1]?.cot??[],U=P.length>0;if($.trackTransactionCotView({recommendationFor:l,currentValue:u??At,recommendation:C?.recommendations[0]?.name??At,recommendationCot:_,isRecommendationCotAvailable:_.length>0,recommendationReason:C?.recommendations[0]?.reason??At,recommendationConfidencePercentage:C?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:t.toConfidenceLevelType(t.getConfidenceLevel(C?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:C?.recommendations[1]?.name??At,alternativeRecommendationCot:P,isAlternativeRecommendationCotAvailable:U,alternativeRecommendationReason:C?.recommendations[1]?.reason??At,alternativeRecommendationConfidencePercentage:C?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:U?t.toConfidenceLevelType(t.getConfidenceLevel(C?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:a?"pending_review":"auto_categorized",transactionPage:"list_page"}),d?.onCOTView!=null){const K=t.getCOTRecommendationSourceToTrack(C);K!=null&&d.onCOTView(h,f,l,K)}},[$,C,a,u,l,h,f,j,v]),W=m.useCallback(()=>{g===j&&v(void 0)},[g,j,v]),T=m.useMemo(()=>!r||!I?!1:e.some(_=>l==="vendor"&&_.vendor!=null?_.vendor.id===r||_.vendor.qboId===r:l==="category"&&_.account!=null?_.account.qboId===r||_.account.accountId===r:l==="class"&&_.class!=null?_.class.classId===r:!1),[r,I,e,l]);if(!I)return n.jsxRuntimeExports.jsx(xo,{isFirstColumn:p});const X=o||T;return C?n.jsxRuntimeExports.jsx($s,{isFirstColumn:p,children:n.jsxRuntimeExports.jsx(t.Tooltip,{variant:"chain-of-thought",data:C,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:w,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:L,onClose:W,children:n.jsxRuntimeExports.jsx(Od,{children:n.jsxRuntimeExports.jsx(Ts,{isEnabled:X,isReviewTab:a,isMisCategorized:c,hasRecommendations:I,isTooltipVisible:w})})})}):n.jsxRuntimeExports.jsx($s,{isFirstColumn:p,children:n.jsxRuntimeExports.jsx(Ts,{isEnabled:X,isReviewTab:a,isMisCategorized:c,hasRecommendations:I,isTooltipVisible:w})})},mo=()=>{const e=t.useWindowSizeContext(),s=m.useRef(null),[l,a]=m.useState(0);return m.useLayoutEffect(()=>{s.current&&a(s.current.offsetWidth)},[e]),n.jsxRuntimeExports.jsx(yd,{windowSize:e,ref:s,children:dt.map((u,p)=>{const o=`${p}${hd}${u.key}`;switch(u.key){case"vendor":return n.jsxRuntimeExports.jsx(Ye,{windowSize:e,wrapperWidth:u.width,children:n.jsxRuntimeExports.jsx(_t,{windowSize:e,isLastItem:p===dt.length-1,children:n.jsxRuntimeExports.jsxs($n,{children:[n.jsxRuntimeExports.jsx(t.CircularContentLoader,{width:t.sp[4],height:t.sp[4]}),n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:l*u.width.value(e)/100,height:t.sp[4],style:{display:"flex",alignItems:"center"}})]})})},o);default:return n.jsxRuntimeExports.jsx(Ye,{windowSize:e,wrapperWidth:u.width,children:n.jsxRuntimeExports.jsx(_t,{windowSize:e,isLastItem:p===dt.length-1,children:n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:l*u.width.value(e)/100,height:t.sp[4],style:{display:"flex",alignItems:"center"}})})},o)}})})},yd=i.div`
|
|
1223
|
-
display: flex;
|
|
1224
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1225
|
-
padding-left: ${e=>ht.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
1226
|
-
padding-right: ${e=>ht.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
1227
|
-
padding-top: ${e=>ht.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
|
|
1228
|
-
padding-bottom: ${e=>ht.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
|
|
1229
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
1230
|
-
box-shadow: ${e=>`${t.Space.sp0} 2px ${t.Space.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
1231
|
-
border-radius: ${t.Space.sp2};
|
|
1232
|
-
color: ${e=>e.theme.colors.hero};
|
|
1233
|
-
cursor: pointer;
|
|
1234
|
-
&:hover {
|
|
1235
|
-
border-color: ${e=>e.theme.colors.primary};
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
box-sizing: border-box;
|
|
1239
|
-
align-items: center;
|
|
1240
|
-
justify-content: space-between;
|
|
1241
|
-
`,Sd=i.div`
|
|
1242
|
-
display: flex;
|
|
1243
|
-
height: 100%;
|
|
1244
|
-
flex: 1;
|
|
1245
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1246
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
1247
|
-
box-shadow: ${e=>`${t.Space.sp0} 2px ${t.Space.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
1248
|
-
border-radius: ${t.Space.sp2};
|
|
1249
|
-
color: ${e=>e.theme.colors.hero};
|
|
1250
|
-
border-color: ${e=>e.isSelected?e.theme.colors.primary:"none"};
|
|
1251
|
-
cursor: pointer;
|
|
1252
|
-
&:hover {
|
|
1253
|
-
border-color: ${e=>e.theme.colors.primary};
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
box-sizing: border-box;
|
|
1257
|
-
align-items: center;
|
|
1258
|
-
justify-content: space-between;
|
|
1259
|
-
|
|
1260
|
-
.ai-icon-selected-plain {
|
|
1261
|
-
color: ${e=>e.theme.colors.hero};
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
${({isHovered:e,theme:s})=>e?Ne.css`
|
|
1265
|
-
.ai-icon-selected-plain {
|
|
1266
|
-
color: ${s.colors.primary};
|
|
1267
|
-
}
|
|
1268
|
-
`:null};
|
|
1269
|
-
`,Rd=i.div`
|
|
1270
|
-
display: flex;
|
|
1271
|
-
flex: 1;
|
|
1272
|
-
flex-direction: column;
|
|
1273
|
-
width: 100%;
|
|
1274
|
-
box-sizing: border-box;
|
|
1275
|
-
align-items: center;
|
|
1276
|
-
justify-content: space-around;
|
|
1277
|
-
`,Cd=i.div`
|
|
1278
|
-
display: flex;
|
|
1279
|
-
flex: 1;
|
|
1280
|
-
flex-direction: row;
|
|
1281
|
-
width: 100%;
|
|
1282
|
-
align-items: center;
|
|
1283
|
-
justify-content: space-between;
|
|
1284
|
-
height: ${t.Space.sp8};
|
|
1285
|
-
padding-top: ${e=>ht.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
1286
|
-
padding-bottom: ${e=>ht.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
1287
|
-
`,Ye=i.div`
|
|
1288
|
-
display: flex;
|
|
1289
|
-
align-items: center;
|
|
1290
|
-
flex-direction: row;
|
|
1291
|
-
position: relative;
|
|
1292
|
-
width: ${e=>`calc(${e.wrapperWidth.valuePercentage(e.windowSize)} - ${t.Space.sp4})`};
|
|
1293
|
-
min-width: ${e=>`calc(${e.wrapperWidth.valuePercentage(e.windowSize)} - ${t.Space.sp4})`};
|
|
1294
|
-
:last-of-type {
|
|
1295
|
-
padding-right: ${t.Space.sp0};
|
|
1296
|
-
}
|
|
1297
|
-
`,Ed=Ne.css`
|
|
1298
|
-
word-break: break-word;
|
|
1299
|
-
white-space: nowrap;
|
|
1300
|
-
-webkit-line-clamp: 1;
|
|
1301
|
-
-webkit-box-orient: vertical;
|
|
1302
|
-
overflow: hidden;
|
|
1303
|
-
text-overflow: ellipsis;
|
|
1304
|
-
display: -webkit-box;
|
|
1305
|
-
`,_t=i(t.StandardRegular)`
|
|
1306
|
-
overflow: hidden;
|
|
1307
|
-
justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
|
|
1308
|
-
display: flex;
|
|
1309
|
-
width: 100%;
|
|
1310
|
-
align-items: center;
|
|
1311
|
-
`,$n=i.div`
|
|
1312
|
-
display: flex;
|
|
1313
|
-
flex-direction: row;
|
|
1314
|
-
column-gap: ${t.Space.sp2};
|
|
1315
|
-
align-items: center;
|
|
1316
|
-
`,vd=i(t.StandardRegular)`
|
|
1317
|
-
${Ed};
|
|
1318
|
-
color: ${e=>e.theme.colors.hero};
|
|
1319
|
-
`,xn=i(t.StandardRegular)`
|
|
1320
|
-
color: ${e=>e.theme.colors.hero};
|
|
1321
|
-
`,hn=i(t.SvgAddRound)`
|
|
1322
|
-
width: ${t.Space.sp3};
|
|
1323
|
-
height: ${t.Space.sp3};
|
|
1324
|
-
margin: ${t.Space.sp1};
|
|
1325
|
-
`,bd=i.div`
|
|
1326
|
-
margin: ${t.Space.sp3};
|
|
1327
|
-
`,wd=i(xd)`
|
|
1328
|
-
width: ${t.Space.sp3};
|
|
1329
|
-
height: ${t.Space.sp3};
|
|
1330
|
-
margin-left: 10px;
|
|
1331
|
-
`,Id=i(t.SvgAiIconSelected)`
|
|
1332
|
-
width: ${t.Space.sp5};
|
|
1333
|
-
height: ${t.Space.sp5};
|
|
1334
|
-
`,kd=i(zt.SvgAiIconSelectedFilledPlain)`
|
|
1335
|
-
width: ${t.Space.sp5};
|
|
1336
|
-
height: ${t.Space.sp5};
|
|
1337
|
-
`,Td=i(t.SvgAiIconSelectedFilled)`
|
|
1338
|
-
width: ${t.Space.sp5};
|
|
1339
|
-
height: ${t.Space.sp5};
|
|
1340
|
-
`,$d=i(zt.SvgAiIconSelectedPlain)`
|
|
1341
|
-
width: ${t.Space.sp5};
|
|
1342
|
-
height: ${t.Space.sp5};
|
|
1343
|
-
`,Ld=i(t.SvgAiIcon)`
|
|
1344
|
-
width: ${t.Space.sp3};
|
|
1345
|
-
height: ${t.Space.sp3};
|
|
1346
|
-
path {
|
|
1347
|
-
stroke-width: 2;
|
|
1348
|
-
}
|
|
1349
|
-
`,Ad=i(t.SvgAiIconFilled)`
|
|
1350
|
-
width: ${t.Space.sp3};
|
|
1351
|
-
height: ${t.Space.sp3};
|
|
1352
|
-
`,xo=i.div`
|
|
1353
|
-
display: flex;
|
|
1354
|
-
align-items: center;
|
|
1355
|
-
justify-content: center;
|
|
1356
|
-
width: ${t.Space.sp5};
|
|
1357
|
-
margin-left: ${e=>e.isFirstColumn?t.Space.sp2:t.Space.sp0};
|
|
1358
|
-
height: 100%;
|
|
1359
|
-
`,Od=i.div`
|
|
1360
|
-
display: flex;
|
|
1361
|
-
align-items: center;
|
|
1362
|
-
justify-content: center;
|
|
1363
|
-
width: auto;
|
|
1364
|
-
cursor: pointer;
|
|
1365
|
-
`,Dd=i(t.StandardRegular)`
|
|
1366
|
-
display: flex;
|
|
1367
|
-
max-width: calc(100% - ${t.Space.sp6});
|
|
1368
|
-
flex: 1 1 auto;
|
|
1369
|
-
color: ${e=>e.theme.colors.primary};
|
|
1370
|
-
text-align: center;
|
|
1371
|
-
align-items: center;
|
|
1372
|
-
overflow: hidden;
|
|
1373
|
-
display: flex;
|
|
1374
|
-
`,Ls=i.div`
|
|
1375
|
-
display: flex;
|
|
1376
|
-
`,_d=i.div`
|
|
1377
|
-
width: 100%;
|
|
1378
|
-
padding-left: 10px;
|
|
1379
|
-
margin-left: ${t.Space.sp0};
|
|
1380
|
-
border-radius: ${t.Space.sp1};
|
|
1381
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1382
|
-
display: flex;
|
|
1383
|
-
align-items: center;
|
|
1384
|
-
flex-direction: row;
|
|
1385
|
-
`,gn=i.div`
|
|
1386
|
-
padding: ${t.Space.sp0} ${t.Space.sp2};
|
|
1387
|
-
border-radius: ${t.Space.sp1};
|
|
1388
|
-
margin-left: ${t.Space.sp0};
|
|
1389
|
-
width: 100%;
|
|
1390
|
-
background-color: ${e=>e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
|
|
1391
|
-
`,As=i.div`
|
|
1392
|
-
width: 100%;
|
|
1393
|
-
border-radius: ${t.Space.sp1};
|
|
1394
|
-
padding-left: 2px;
|
|
1395
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1396
|
-
background-color: ${e=>e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
|
|
1397
|
-
display: flex;
|
|
1398
|
-
align-items: center;
|
|
1399
|
-
flex-direction: row;
|
|
1400
|
-
`,Md=i(t.StandardRegular)``,Bd=i.div`
|
|
1401
|
-
width: 100%;
|
|
1402
|
-
display: flex;
|
|
1403
|
-
padding-left: ${t.Space.sp0};
|
|
1404
|
-
`,jn=i.div`
|
|
1405
|
-
width: 100%;
|
|
1406
|
-
display: flex;
|
|
1407
|
-
flex-direction: row;
|
|
1408
|
-
align-items: center;
|
|
1409
|
-
gap: ${t.Space.sp2};
|
|
1410
|
-
padding: ${t.Space.sp2};
|
|
1411
|
-
padding-left: ${t.Space.sp2};
|
|
1412
|
-
border-radius: ${t.Space.sp1};
|
|
1413
|
-
background-color: ${e=>e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
|
|
1414
|
-
outline: ${e=>e.showOutline?`1px dashed ${e.theme.colors.grey1}`:"none"};
|
|
1415
|
-
outline-color: ${e=>e.isHovered&&e.theme.colors.primary};
|
|
1416
|
-
`,Os=i.div``,fn=i.div`
|
|
1417
|
-
display: flex;
|
|
1418
|
-
align-items: center;
|
|
1419
|
-
width: calc(100% - ${t.Space.sp5});
|
|
1420
|
-
`,Nd=({sortConfig:e,fetchState:s,isDisabled:l,onColumnSortConfigChanged:a})=>{const u=t.useWindowSizeContext();return n.jsxRuntimeExports.jsxs(Pd,{windowSize:u,children:[n.jsxRuntimeExports.jsx(uo,{sortConfig:e,isDisabled:s==="In-Progress"?"readonly":l,onColumnSortConfigChanged:a,"data-testid":t.generateDataTestId("transaction-categorization-list-empty-table-header")}),n.jsxRuntimeExports.jsx(Fd,{windowSize:u,"data-testid":t.generateDataTestId("transaction-categorization-list-empty-rows-container"),children:[...Array(3)].map((p,o)=>n.jsxRuntimeExports.jsx(mo,{"data-testid":t.generateDataTestId("transaction-categorization-list-empty-row",o.toString())},o))})]})},Pd=i.div`
|
|
1421
|
-
display: block;
|
|
1422
|
-
min-height: 100%;
|
|
1423
|
-
flex-direction: column;
|
|
1424
|
-
width: 100%;
|
|
1425
|
-
padding-left: ${t.Space.sp8};
|
|
1426
|
-
padding-right: ${t.Space.sp8};
|
|
1427
|
-
`,Fd=i.div`
|
|
1428
|
-
display: flex;
|
|
1429
|
-
flex: 1;
|
|
1430
|
-
min-height: 100%;
|
|
1431
|
-
flex-direction: column;
|
|
1432
|
-
row-gap: ${t.Space.sp3};
|
|
1433
|
-
`,{common:zd,transactionDetail:{notCategorizedTooltipText:Hd}}=t.appLocale.getLocalizedStrings(),yn={rowGap:new t.ResponsiveSized(t.sp[0],t.sp[2],t.sp[3])},Wd=({selectedTab:e,transactionView:s,receiptUploadEndpoint:l,authParams:a,sectionId:u,isCOTEnabled:p,isDisabled:o,vendorSearchAutoCompleteActions:c,vendorSearchAutoCompleteData:r,setCurrentTransactionInAction:x,vendorLoadOptions:d,onTransactionCategorizationRowClick:h,onUpdateTransactionCategorizationUIState:g,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:R,containerRef:y,cotTracking:v,isUncategorizedExpenseCategoryEnabled:j})=>{const w=t.useWindowSizeContext(),[O,$]=m.useState(void 0),{fetchState:B,uiState:b,transactionLocalData:C,selectedCheckBoxTransactionIds:I,transactionIdsWithUnsavedData:L,transactions:W,uncategorizedAccounts:T}=s,X=m.useRef(null),_=m.useRef({}),{control:P}=n.useFormContext();m.useEffect(()=>{X.current?.resetAfterIndex(0,!0)},[w,X,C]),m.useEffect(()=>{X.current?.scrollTo(b.scrollPosition?.scrollTop??0)},[e]);const U=m.useCallback(D=>{if(_.current?.[D]!=null){const J=w==="small"&&b.pageToken==null&&D===C.length-1?yn.rowGap.value("medium-regular"):yn.rowGap.value(w);return _.current[D]+J}if(C[D]==null)return 0;const ee=C[D].transactionReviewLocalData,te=Object.keys(ee.lineItemById).length;return te!=null&&!isNaN(te)&&te>1?ws*te+yn.rowGap.value(w)*(te-1):ws},[C,w,b.pageToken,b.sortKey,b.sortOrder]),K=m.useCallback((D,ee)=>{_.current={..._.current,[D]:ee},X.current?.resetAfterIndex(0,!0)},[w,X,C,b.sortKey,b.sortOrder]),M=m.useCallback(()=>{(b.pageToken!=null&&s.refreshStatus.fetchState!=="In-Progress"||s.refreshStatus.fetchState==="Completed")&&R(e,b.searchString,!0,b.pageToken,!0,!1)},[s.refreshStatus.fetchState,R,e,b.pageToken,b.searchString,b.sortKey,b.sortOrder]),Q=m.useCallback(()=>{b.pageToken!=null&&M()},[M,b.pageToken,b.sortKey,b.sortOrder]),Se=n.debounce(D=>f(e,{scrollPosition:{scrollTop:D}}),1e3,{trailing:!0}),H=D=>D<s.transactionLocalData.length,he=(D,ee)=>{g(e,{sortOrder:ee,sortKey:D}),R(e,b.searchString,!1,null,!1,!0)},ge=D=>{if(e==="autoCategorized")return!I.includes(D);const ee=C.find(J=>J.transactionId===D)?.transactionReviewLocalData,te=W.find(J=>J.id===D);return te!=null&&ee!=null?V.checkIfAllLineItemsAreCategoryClassFilled(te,ee,T,j)?j===!0&&n.transactionCategorizationLocalDataHelperExports.isAnyItemWithUncategorizedExpenseAccount(T,ee.lineItemById,["expense"])?L.includes(D)===!1:!1:!0:I.length===0?!0:!I.includes(D)};let S=[],N=[];(B==="Completed"||s.transactionLocalData.length>0)&&(N=s.transactionLocalData.map((D,ee)=>{const te=ge(D.transactionId);let J=!1;j===!0&&te===!0&&n.transactionCategorizationLocalDataHelperExports.isAnyItemWithUncategorizedExpenseAccount(T,D.transactionReviewLocalData.lineItemById,["expense"])&&(J=!L.includes(D.transactionId));const je=D.transactionReviewLocalData;return{label:n.jsxRuntimeExports.jsx(jd,{transactionView:s,sectionId:`${u}.${ee}.${po}`,transaction:D,receiptUploadEndpoint:l,authParams:a,onTransactionCategorizationRowClick:h,vendorLoadOptions:d,setCurrentTransactionInAction:x,vendorSearchAutoCompleteActions:c,vendorSearchAutoCompleteData:r,selectedTab:e,containerRef:y,isCOTEnabled:p,cotTracking:v,openTooltipId:O,setOpenTooltipId:$,isUncategorizedExpenseCategoryEnabled:j},`${D.transactionId}.${je.transactionType}`),value:D.transactionId,defaultChecked:!1,groupLabel:!1,isException:J,exceptionMode:J===!0?"checked_or_hover":void 0,isSticky:!0,isDisabled:te===!0?"readonly":void 0,exceptionType:J===!0?"alert":void 0,exceptionInfo:J===!0?Hd:void 0}}),S=N.map(D=>D.value));const q={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:F,subTitle:z}=Fe("transaction_categorization").allDoneText,A=C.map(D=>D.transactionId),G=m.useMemo(()=>s.totalCountByTab[e],[e,s.totalCountByTab]),le=m.useMemo(()=>C.reduce((ee,te)=>{const J=Object.keys(te.transactionReviewLocalData.lineItemById).length;return ee+(J>0?J:1)},0)<s.totalCountByTab[e]?C.length+1:C.length,[C,s.totalCountByTab,e]);return n.jsxRuntimeExports.jsx(Kd,{windowSize:w,"data-testid":t.generateDataTestId("transaction-categorization-list-wrapper"),children:n.jsxRuntimeExports.jsx(Jd,{windowSize:w,"data-testid":t.generateDataTestId("transaction-categorization-list-container"),children:B==="Error"?n.jsxRuntimeExports.jsxs(Yd,{windowSize:w,"data-testid":t.generateDataTestId("transaction-categorization-reload-page"),children:[n.jsxRuntimeExports.jsx(Xd,{onClick:()=>R(e,void 0,!0,null,!1,!0),"data-testid":t.generateDataTestId("transaction-categorization-reload-icon"),children:n.jsxRuntimeExports.jsx(t.SvgReload,{})}),n.jsxRuntimeExports.jsx(Qd,{"data-testid":t.generateDataTestId("transaction-categorization-reload-label"),children:zd.reloadPage.label})]}):B==="Completed"&&C.length===0?n.jsxRuntimeExports.jsx(ut,{tab:"transaction_categorization",title:F,subTitle:z,"data-testid":t.generateDataTestId("transaction-categorization-empty-table-section")}):B==="Not-Started"||B==="In-Progress"&&C.length===0?n.jsxRuntimeExports.jsx(Nd,{sortConfig:{sortKey:b.sortKey,sortOrder:b.sortOrder},fetchState:B,onColumnSortConfigChanged:he,"data-testid":t.generateDataTestId("transaction-categorization-list-empty-table")}):n.jsxRuntimeExports.jsx(Zd,{windowSize:w,"data-testid":t.generateDataTestId("transaction-categorization-list-view"),children:n.jsxRuntimeExports.jsx(n.Controller,{control:P,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:D,ref:ee,onChange:te}})=>n.jsxRuntimeExports.jsx(ho.Provider,{value:{value:D,mode:"off",allCheckBoxValues:S,index:0,sortKey:b.sortKey,sortOrder:b.sortOrder,fetchState:B,isDisabled:o,groupLabelCheckBox:q,onColumnSortConfigChanged:he,ref:ee,onChange:te,selectedTab:e},children:n.jsxRuntimeExports.jsx(n.AutoSizer,{children:({height:J,width:je})=>n.jsxRuntimeExports.jsx(n.InfiniteLoader,{isItemLoaded:H,itemCount:G,loadMoreItems:Q,children:({onItemsRendered:Ce,ref:E})=>n.jsxRuntimeExports.jsx(n.VariableSizeList,{ref:Y=>{E(Y),X.current=Y},height:J,itemCount:le,itemKey:Y=>C[Y]?.transactionId,innerElementType:Vd,onItemsRendered:Ce,width:je,style:{willChange:"auto"},overscanCount:Pl,itemSize:U,itemData:{checkboxes:N,value:D,allCheckBoxValues:S,groupLabelCheckBox:q,categorizationGroupValue:A,transactionLocalData:C,mode:"always_on",setRowHeight:K,isItemLoaded:H,ref:E,onChange:te,selectedCheckBoxTransactionIds:I},initialScrollOffset:s.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:Y})=>{Se(Y)},children:Ud})})})})})})})})},Vd=e=>{const{value:s,allCheckBoxValues:l,groupLabelCheckBox:a,index:u,isDisabled:p,fetchState:o,sortKey:c,sortOrder:r,mode:x,ref:d,onChange:h,onColumnSortConfigChanged:g}=qd(),{children:f,style:R,...y}=e;return o==="Completed"?n.jsxRuntimeExports.jsxs(eu,{ref:d,style:{...R,width:"auto"},...y,children:[n.jsxRuntimeExports.jsx(tu,{children:n.jsxRuntimeExports.jsx(t.CheckBoxWithLabel,{selectionLimit:V.MAX_SELECTION_LIMIT,value:s,checkBox:{label:n.jsxRuntimeExports.jsx(Gd,{children:n.jsxRuntimeExports.jsx(uo,{sortConfig:{sortKey:c,sortOrder:r},isDisabled:p,onColumnSortConfigChanged:g})}),value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},isDisabled:"disabled",groupLabelCheckBox:a,allCheckBoxValues:l,mode:x,draggable:!1,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:t.Space.sp3},name:"transactionCategorizationHeader",index:u,onChangeHandler:v=>t.onChangeHandler({event:v,value:s,allCheckBoxValues:l,groupLabelCheckBox:a,onChange:h}),ref:d})}),n.jsxRuntimeExports.jsx(nu,{children:f})]},`${l[u]}-${u}`):null},ho=m.createContext(void 0),qd=()=>{const e=m.useContext(ho);if(!e)throw new Error("useStickyContext must be used within a StickyProvider");return e},Ud=({index:e,style:s,data:l})=>{const{checkboxes:a,value:u,groupLabelCheckBox:p,categorizationGroupValue:o,allCheckBoxValues:c,transactionLocalData:r,isItemLoaded:x,setRowHeight:d,ref:h,onChange:g,selectedCheckBoxTransactionIds:f}=l,R=m.useRef(null),y=t.useWindowSizeContext();if(m.useEffect(()=>{R.current?.firstElementChild!=null&&d(e,R.current.firstElementChild.clientHeight)},[e,R,y,r[e]?.transactionReviewLocalData]),x(e)===!0){const v=a[e];return n.jsxRuntimeExports.jsx(Ds,{style:{...s,paddingBottom:t.Space.sp0,paddingRight:t.Space.sp8,width:"100%",flex:"1"},ref:R,children:n.jsxRuntimeExports.jsx(t.CheckBoxWithLabel,{selectionLimit:V.MAX_SELECTION_LIMIT,checkBox:v,value:u,groupLabelCheckBox:p,allCheckBoxValues:c,mode:v.isDisabled==="readonly"||f.includes(v.value)===!1&&f.length>=V.MAX_SELECTION_LIMIT?"off":"always_on",draggable:!1,isDisabled:v.isDisabled,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:t.Space.sp3},infoIconContainerStyle:{padding:20},name:`${wt}.${u}`,ref:h,index:e,onChangeHandler:j=>t.onChangeHandler({event:j,value:u,allCheckBoxValues:c,groupLabelCheckBox:p,onChange:g})})},o[e])}else return n.jsxRuntimeExports.jsx(Ds,{style:{...s,paddingBottom:t.Space.sp0,paddingRight:t.Space.sp8,width:"100%",flex:"1"},ref:R,children:n.jsxRuntimeExports.jsx(su,{children:n.jsxRuntimeExports.jsx(mo,{})})},n.nanoid())},Gd=i.div`
|
|
1434
|
-
flex: 1;
|
|
1435
|
-
width: auto;
|
|
1436
|
-
padding-right: ${t.Space.sp8};
|
|
1437
|
-
`,Kd=i.div`
|
|
1438
|
-
width: 100%;
|
|
1439
|
-
height: 100%;
|
|
1440
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1441
|
-
`,Jd=i.div`
|
|
1442
|
-
height: 100%;
|
|
1443
|
-
`,Zd=i.div`
|
|
1444
|
-
height: 100%;
|
|
1445
|
-
display: flex;
|
|
1446
|
-
flex-direction: column;
|
|
1447
|
-
max-width: 99.9%;
|
|
1448
|
-
`,Yd=i.div`
|
|
1449
|
-
display: flex;
|
|
1450
|
-
width: 100%;
|
|
1451
|
-
height: ${e=>`calc(100% - ${t.navBarHeight.valuePx(e.windowSize)})`};
|
|
1452
|
-
flex-direction: column;
|
|
1453
|
-
justify-content: center;
|
|
1454
|
-
align-items: center;
|
|
1455
|
-
`,Xd=i.div`
|
|
1456
|
-
height: 96px;
|
|
1457
|
-
width: 96px;
|
|
1458
|
-
background: ${e=>e.theme.colors.background};
|
|
1459
|
-
border-radius: 50%;
|
|
1460
|
-
cursor: pointer;
|
|
1461
|
-
& svg {
|
|
1462
|
-
margin: ${t.Space.sp5};
|
|
1463
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1464
|
-
}
|
|
1465
|
-
&:hover {
|
|
1466
|
-
& svg {
|
|
1467
|
-
color: ${e=>e.theme.colors.primary};
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
`,Qd=i(t.SmallRegular)`
|
|
1471
|
-
margin-top: ${t.Space.sp3};
|
|
1472
|
-
color: ${e=>e.theme.colors.hero};
|
|
1473
|
-
`,Ds=i.div`
|
|
1474
|
-
top: ${t.Space.sp0};
|
|
1475
|
-
left: ${t.Space.sp0};
|
|
1476
|
-
padding-bottom: ${t.Space.sp3};
|
|
1477
|
-
box-sizing: border-box;
|
|
1478
|
-
`,eu=i.div`
|
|
1479
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1480
|
-
`,tu=i.div`
|
|
1481
|
-
top: 0;
|
|
1482
|
-
left: 0;
|
|
1483
|
-
width: 100%;
|
|
1484
|
-
min-width: 100%;
|
|
1485
|
-
z-index: 11;
|
|
1486
|
-
display: flex;
|
|
1487
|
-
align-items: center;
|
|
1488
|
-
position: sticky;
|
|
1489
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1490
|
-
`,nu=i.div`
|
|
1491
|
-
position: relative;
|
|
1492
|
-
width: auto;
|
|
1493
|
-
height: 100%;
|
|
1494
|
-
`,su=i.div`
|
|
1495
|
-
padding-left: ${t.Space.sp8};
|
|
1496
|
-
`,ou=({selectedTab:e,transactionView:s,receiptUploadEndpoint:l,authParams:a,sectionId:u,vendorSearchAutoCompleteData:p,vendorSearchAutoCompleteActions:o,isCOTEnabled:c,setCurrentFooterFormId:r,setLocalDataForCategoryAndClass:x,onTransactionCategorizationRowClick:d,onUpdateTransactionCategorizationUIState:h,onUpdateScrollYOffSetTransactionCategorizationUIState:g,onFetchTransactionCategorizationList:f,onSaveUpdateTransactionCategorization:R,onUpdateSelectedCheckboxTransactionIds:y,onFetchRecommendationsForEntityCategorization:v,onFetchRecommendationsForEntityCategorizationWithCustomer:j})=>{const[w,O]=m.useState({transactionId:void 0,lineItemId:void 0}),$=m.useRef(),B=m.useRef({}),{useDynamicConfig:b}=t.useZeniFeatureContext(),{configValue:C}=b(t.DynamicConfigNames.enableUncategorizedExpenseCategory),I=C?.uncategorized_expense_category_enabled===!0,L=(S,N,q,F)=>{const z={...B.current};z[N]==null&&(z[N]=[]);let A=z[N].findIndex(G=>G.lineId===S);if(A===-1){const G={lineId:S,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};z[N].push(G),A=z[N].length-1}else{const G=z[N][A];z[N][A]={...G,category:{...G.category,recommendationTypesViewed:[...G.category.recommendationTypesViewed]},class:{...G.class,recommendationTypesViewed:[...G.class.recommendationTypesViewed]},vendor:{...G.vendor,recommendationTypesViewed:[...G.vendor.recommendationTypesViewed]}}}F!=null&&F!==""&&!z[N][A][q].recommendationTypesViewed.includes(F)&&z[N][A][q].recommendationTypesViewed.push(F),B.current=z},{transactions:W,transactionLocalData:T,accountsHierarchyList:X,classHierarchyList:_,accountList:P,classList:U,selectedCheckBoxTransactionIds:K,uncategorizedAccounts:M}=s,Q=n.useForm({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>Ms(K,T,X,_,p.entityAutoCompleteView),[X,_,K,T,p.entityAutoCompleteView]),values:m.useMemo(()=>Ms(K,T,X,_,p.entityAutoCompleteView),[X,_,K,T,p.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});m.useEffect(()=>()=>{r("expenseAutomationPage")},[]),m.useEffect(()=>{K.length>0?r(pn):r("expenseAutomationPage")},[K,r]);const Se=Q.handleSubmit(S=>{const N=S[nn],q=B.current;R(e,N,q),N.forEach(F=>{delete B.current[F]})}),H=async(S,N)=>{if(S!=null){if(S===nn){const q=Q.getValues(nn);if(q.length<K.length){y(e,q);return}if(q.length===V.MAX_SELECTION_LIMIT){y(e,q);return}const F=q[q.length-1],z=N[wt].findIndex(G=>G.transactionId===F),A=Q.getValues(`${wt}.${z}.lineInfo`);if(A!=null){let G=!1;if(A.every(D=>(G=V.isAccountUncategorized(M,D[ke].selectedOption,I?["income"]:void 0),!!D[ke].selectedOption&&D[ke].selectedOption!=null&&!G&&!!D[qe].selectedOption&&!!D[Qe].selectedOption))===!0){y(e,q);return}else{const D=q.filter(ee=>ee!==F);y(e,D);return}}return}if(S.includes(ke)===!0||S.includes(qe)===!0){const q=parseInt(S.split(".")[1]),F=parseInt(S.split(".")[3]),z=Q.getValues(`${wt}.${q}.lineInfo`),A=z[F];if(S.includes(ke)||S.includes(qe)){const{transactionId:G,lineId:le,recommendations:D}=A;if(z!=null){const ee=A[ke].selectedOption,te=A[qe].selectedOption,J=A[Qe].selectedOption,je=A[Qe].selectedOption,Ce=A[Qe].defaultOptions,E=Ce?.find(re=>re.options?.find(Pe=>Pe.value===J))?.options?.find(re=>re.value===J)?.label,Y=Ce?.find(re=>re.options?.find(Pe=>Pe.value===je))?.options?.find(re=>re.value===je)?.label,me=p.entityAutoCompleteView.vendor.find(re=>re.qboId===J),Oe=p.entityAutoCompleteView.customer.find(re=>re.qboId===je),Be=D.find(re=>re.vendor?.qboId===J)?.vendor,be=J||me?.qboId||Be?.qboId?{id:J??me?.qboId??Be?.qboId??"",name:E??me?.name??Be?.name??"",logo:me?.logo??Be?.logo}:void 0,we=je||Oe?.qboId?{id:je??Oe?.qboId??"",name:Y??Oe?.name??"",logo:Oe?.logo}:void 0,de=P.find(re=>re.qboId===ee),Ue=U.find(re=>re.classId===te),We=s.transactionLocalData.find(re=>re.transactionId===G)?.transactionReviewLocalData.lineItemById[le].account,Ge=s.transactionLocalData.find(re=>re.transactionId===G)?.transactionReviewLocalData.lineItemById[le].class;x(e,G,le,W,be?.id,we?.id,S.includes(ke)&&de!=null?{...de,isPreFilled:!1}:We,S.includes(qe)&&Ue!=null?{...Ue,isPreFilled:!1}:Ge,void 0,D,I)}return}}if(S.includes(Qe)){const q=parseInt(S.split(".")[1]),F=parseInt(S.split(".")[3]),z=Q.getValues(`${wt}.${q}.lineInfo`);if(z!=null){const A=z[F],{transactionId:G,recommendations:le}=A,D=A[Qe].selectedOption,ee=A[Qe].selectedOption,te=A[Qe].defaultOptions,J=te?.flatMap(de=>de.options)?.find(de=>de.value===D)?.label,je=te?.flatMap(de=>de.options)?.find(de=>de.value===ee)?.label,Ce=p.entityAutoCompleteView.vendor.find(de=>de.qboId===D),E=p.entityAutoCompleteView.customer.find(de=>de.qboId===ee),Y=le.find(de=>de.vendor?.qboId===D)?.vendor,me=D!==""&&D!=null?D:J!==""&&J!=null?J:"",Oe=(Ce?.qboId!=null&&Ce.qboId!==""?Ce.qboId:null)??(Y?.qboId!=null&&Y.qboId!==""?Y.qboId:null)??(D!=null&&D!==""?D:null),Be={id:Oe??J??"",name:J??Ce?.name??Y?.name??"",logo:Ce?.logo??Y?.logo},be=E?.qboId!=null&&E.qboId!==""?{id:E.qboId??ee??"",name:je??E.name??"",logo:E.logo}:void 0,we=W.find(de=>de.id===G);if(we!=null){const de=s.transactionLocalData.find(Pe=>Pe.transactionId===we.id)?.transactionReviewLocalData,Ue=de?.lineItemById[A.lineId],We=V.isVendorTransaction(we)===!0?de?.selectedEntity:Ue?.selectedEntityLine,Ge=Be.id!==""?{id:me,name:J??me,type:"vendor",qboId:me,zeniId:me,logo:Be.logo,isPreFilled:We?.id===Oe&&We?.isPreFilled}:be?.id!=null&&be.id!==""?{id:be.id,name:be.name,type:"customer",qboId:be.id,zeniId:be.id,logo:be.logo}:void 0,re={transactionId:{id:we.id,type:we.type},transaction:we,lineIds:we.type!=="journal_entry"?we.lines?.map(Pe=>Pe.id)??[]:[A.lineId]};Ge?.type==="customer"?j(A.amount.amount,re,!1,e,Ge,be,I):v(A.amount.amount,re,!1,e,Ge,Be,I)}}o.onCancelAutoComplete?.();return}}};m.useEffect(()=>{const S=Q.watch((N,{name:q})=>{q!=null&&N!=null&&n.defer(()=>H(q,N))});return()=>{S.unsubscribe()}}),m.useEffect(()=>{if(p.entityAutoCompleteView.fetchState==="Completed"){const S=s.transactionLocalData.find(N=>N.transactionId===w.transactionId);if(S){const{transactionReviewLocalData:N}=S,{selectedEntity:q}=N,F=w?.lineItemId??N.sortedLineItems[0],z=N.lineItemById[F],A=z.selectedEntityLine;$.current?.(t.getGroupedForPayeeEntityOptionsWithCOT(p.entityAutoCompleteView,q??A,z?.recommendationsWithCOT??[]))}O({transactionId:void 0,lineItemId:void 0})}},[p.entityAutoCompleteView.fetchState]);const he=(S,N)=>{o.onAutoCompleteInputChange?.(S),$.current=N},ge=m.useRef(null);return n.jsxRuntimeExports.jsx(ru,{ref:ge,"data-testid":t.generateDataTestId("transaction-categorization-list-page"),children:n.jsxRuntimeExports.jsx(n.FormProvider,{...Q,children:n.jsxRuntimeExports.jsx("form",{id:_s(pn),onSubmit:Se,style:{height:"100%",width:"100%"},"data-testid":t.generateDataTestId(_s(pn)),children:n.jsxRuntimeExports.jsx(Wd,{selectedTab:e,sectionId:u,transactionView:s,receiptUploadEndpoint:l,authParams:a,setCurrentTransactionInAction:O,onUpdateTransactionCategorizationUIState:h,onUpdateScrollYOffSetTransactionCategorizationUIState:g,onFetchTransactionCategorizationList:f,onTransactionCategorizationRowClick:d,vendorLoadOptions:he,vendorSearchAutoCompleteData:p,vendorSearchAutoCompleteActions:o,containerRef:ge,isCOTEnabled:c,cotTracking:{onCOTView:L},isUncategorizedExpenseCategoryEnabled:I})})})})},_s=e=>`${e}_form`,Ms=(e,s,l,a,u)=>({[wt]:s.map(o=>iu(o.transactionId,o.transactionReviewLocalData,l,a,u)),[nn]:e}),iu=(e,s,l,a,u)=>{const{lineItemById:p,sortedLineItems:o,selectedEntity:c}=s,r=Object.values(p).sort((d,h)=>o.indexOf(d.lineId)-o.indexOf(h.lineId)),x=r[0]?.lineId;return{[po]:r.map(d=>{const h=d.account?.qboId??d.account?.accountId,g=d.class?.classId,f=d.selectedEntityLine;return{id:d.id,transactionId:d.transactionId,type:d.type,amount:d.amount,lineDetailType:d.lineDetailType,platformLineDetailType:d.platformLineDetailType,lineTransactionType:d.lineTransactionType,postingType:d.postingType,postingTypeName:d.postingTypeName,customer:d.customer,vendor:d.vendor,billable:d.billable,item:d.item,isCategoryMiscategorized:d.isCategoryMiscategorized,isClassMiscategorized:d.isClassMiscategorized,lineId:d.id,[ke]:{selectedOption:h,allOptions:t.getGroupedAccountOptionsWithCOT(l,d.recommendationsWithCOT)},[qe]:{selectedOption:g,allOptions:t.getGroupedClassOptionsWithCOT(a,d.recommendationsWithCOT)},[Qe]:{selectedOption:c?.id??f?.id??c?.name??f?.name,defaultOptions:t.getGroupedForPayeeEntityOptionsWithCOT(u,c??f,s.lineItemById[x]?.recommendationsWithCOT??[])},[dd]:d.lineEntity,[ud]:d.recommendationsWithCOT??[]}}),transactionId:e,[pd]:s.vendorDetails!=null&&s.vendorDetails.id!=null?{id:s.vendorDetails.id,qboId:s.vendorDetails.qboId,name:s.vendorDetails.name}:void 0,[md]:s.customerDetails!=null&&s.customerDetails.id!=null?{id:s.customerDetails.id,qboId:s.customerDetails.qboId,name:s.customerDetails.name}:void 0}},ru=i.div`
|
|
1497
|
-
display: flex;
|
|
1498
|
-
min-height: 100%;
|
|
1499
|
-
width: 100%;
|
|
1500
|
-
height: 100%;
|
|
1501
|
-
flex-direction: column;
|
|
1502
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1503
|
-
z-index: 2;
|
|
1504
|
-
`,Bs={subSectionContainerLeftRightPadding:new t.ResponsiveSized(t.sp[3],t.sp[6],t.sp[8])},au=i.div`
|
|
1505
|
-
width: 100%;
|
|
1506
|
-
display: flex;
|
|
1507
|
-
justify-content: center;
|
|
1508
|
-
align-items: center;
|
|
1509
|
-
flex: 1;
|
|
1510
|
-
background: ${e=>e.theme.colors.grey4};
|
|
1511
|
-
box-sizing: border-box;
|
|
1512
|
-
`,cu=i.div`
|
|
1513
|
-
display: flex;
|
|
1514
|
-
flex-direction: column;
|
|
1515
|
-
width: 100%;
|
|
1516
|
-
`,lu=e=>{const{currentFooterFormId:s,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:a,setResetJeAccountSettingsForm:u,expenseAutomationViewSelector:p,authParams:o,receiptUploadEndpoint:c,companyId:r,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d,enableMonthEndInsightsZeniGPTFeature:h,monthEndInsightsPreviewMode:g,monthEndInsightsCustomerRequestData:f,allThreadsSectionOpen:R,loggedInUser:y,isCOTEnabled:v,setCurrentFooterFormId:j,onFetchRecommendationsForEntityCategorization:w,onFetchRecommendationsForEntityCategorizationWithCustomer:O,onTransactionCategorizationRowClick:$,onFetchMissingReceiptsList:B,onMissingReceiptsRowClick:b,onUploadReceiptAttachment:C,onUploadReceiptComplete:I,onUploadReceiptFetchStatus:L,onReconTabColumnSortConfigChanged:W,onReloadReconciliationListPage:T,onUpdateReconcileTabLocalData:X,onUpdateMissingReceiptsUIState:_,onFetchTransactionCategorizationList:P,onUpdateTransactionCategorizationUIState:U,onUpdateScrollYOffSetTransactionCategorizationUIState:K,handleJeScheduleClick:M,ignoreRecommendedJeSchedule:Q,onJESchedulesFormDataChange:Se,onPostJESchedule:H,setLocalDataForCategoryAndClass:he,resetTransactionCategorizationLocalData:ge,updateSelectedVendorForTransaction:S,onSaveUpdateTransactionCategorization:N,onUpdateSelectedCheckboxTransactionIds:q,improveMonthEndInsightsUsingZeniGPTClick:F,onRemoveFileAttachment:z,onUpdateFileAttachment:A,onCloseAllThreadsSection:G,onEditMonthEndInsightsClick:le,previewMonthEndReport:D,saveMonthEndReport:ee,onOpenFileAttachmentSnackBar:te,onCloseFileAttachmentSnackBar:J,onClickCustomerRequest:je,sendMonthEndReport:Ce,markAsReview:E,onReloadPage:Y,onBackClick:me,updateOperatingExpensesIdsForReview:Oe,updateSectionCollapseStatus:Be,onFetchReimbursementView:be,redirectToVendorDetailPage:we,updateSectionIdsForReview:de,onUpdateFluxAnalysisUIState:Ue,fetchFluxViewOnScroll:We,onFetchFluxViewList:Ge,setIsJeAccountSettingsOpened:re,onReviewClicked:Pe,setOpenDrawerClicked:et,onEstablishConnectionClick:jt,onFetchLinkTokenClick:tt,updateReconReviewTabLocalData:pt,onReconReviewTabColumnSortConfigChanged:ft,onSaveReconciliation:yt,onSaveReconciliationReview:Ee,onReconMatchedTransactionClick:ae,onReconListPageScroll:ue,onAddStatementClick:Re}=e,{currentSelectedView:fe,missingReceipts:Ze,transactionView:De,selectedPeriod:nt,monthEndInsights:Ke,selectedTransactionCategorizationTab:It,reconciliation:Bt}=p;switch(fe){case"transaction_categorization":return De.fetchState==="Completed"&&De.transactionLocalData.length===0?n.jsxRuntimeExports.jsx(ut,{tab:fe,title:Fe(fe).allDoneText.title,subTitle:Fe(fe).allDoneText.subTitle}):n.jsxRuntimeExports.jsx(ou,{setCurrentFooterFormId:j,selectedPeriod:nt,selectedTab:It,sectionId:wt,transactionView:De,receiptUploadEndpoint:c,authParams:o,onUpdateTransactionCategorizationUIState:U,onUpdateScrollYOffSetTransactionCategorizationUIState:K,onFetchTransactionCategorizationList:P,onTransactionCategorizationRowClick:$,setLocalDataForCategoryAndClass:he,resetTransactionCategorizationLocalData:ge,updateSelectedVendorForTransaction:S,onSaveUpdateTransactionCategorization:N,onUpdateSelectedCheckboxTransactionIds:q,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d,onFetchRecommendationsForEntityCategorization:w,onFetchRecommendationsForEntityCategorizationWithCustomer:O,isCOTEnabled:v});case"je_schedules":return n.jsxRuntimeExports.jsx(Ec,{setIsJeAccountSettingsOpened:re,expenseAutomationViewSelector:p,setResetJeAccountSettingsForm:u,currentFooterFormId:s,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:a,setCurrentFooterFormId:j,handleJeScheduleClick:M,ignoreRecommendedJeSchedule:Q,onJESchedulesFormDataChange:Se,onPostJESchedule:H,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d});case"missing_receipts":return Ze.fetchState==="Completed"&&Ze.transactions.length===0?n.jsxRuntimeExports.jsx(ut,{tab:fe,title:Fe(fe).allDoneText.title,subTitle:Fe(fe).allDoneText.subTitle}):n.jsxRuntimeExports.jsx(dl,{onUpdateMissingReceiptsUIState:_,onFetchMissingReceiptsList:B,missingReceipts:Ze,receiptUploadEndpoint:c,authParams:o,selectedPeriod:nt,onMissingReceiptsRowClick:b,onUploadReceiptComplete:I,onUploadReceiptFetchStatus:L,onUploadReceiptAttachment:C});case"month_end_insights":if(Ke!=null&&p.monthEndCloseChecksView.monthEndCloseChecks!=null){if(Ke.fetchState==="Not-Started"||Ke.fetchState==="In-Progress"||Ke.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||Ke.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return n.jsxRuntimeExports.jsx(yo.BusyIndication,{fetchState:"In-Progress"});{const se={application:"cockpit",companyId:r,entityId:r,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:Ke.companyName,url:window.location.href},{url:ve,...xe}=se,_e={...xe};return n.jsxRuntimeExports.jsx(cu,{children:n.jsxRuntimeExports.jsx(Nl,{allThreadsSectionOpen:R,customerRequestData:f,companyId:r,enableZeniGPTFeature:h,filterMetaData:_e,selectedPeriod:p.selectedPeriod,improveUsingZeniGPTClick:F,isZeniUser:y.userEmail?.includes("zeni.ai")??!1,monthEndReportView:Ke,newThreadMetadata:se,onClickCustomerRequest:je,onCloseAllThreadsSection:G,onCloseFileAttachmentSnackBar:J,onOpenFileAttachmentSnackBar:te,onRemoveFileAttachment:z,onUpdateFileAttachment:A,previewMode:g,previewMonthEndReport:D,saveMonthEndReport:ee,onEditClick:le,sendMonthEndReport:Ce})})}}else return null;case"flux_analysis":return p.fluxAnalysis.fetchStatus.fetchState==="Completed"&&p.fluxAnalysis.sections.generalExpense.vendors.length===0&&p.fluxAnalysis.sections.reimbursement.vendors.length===0?n.jsxRuntimeExports.jsx(ut,{tab:fe,title:Fe(fe).allDoneText.title,subTitle:Fe(fe).allDoneText.subTitle}):n.jsxRuntimeExports.jsx(Qa,{fluxAnalysis:p.fluxAnalysis,selectedPeriod:p.selectedPeriod,markAsReview:E,onReloadPage:Y,onBackClick:me,updateOperatingExpensesIdsForReview:Oe,updateSectionIdsForReview:de,onUpdateFluxAnalysisUIState:Ue,setCurrentFooterFormId:j,fetchFluxViewOnScroll:We,onFetchFluxViewList:Ge,updateSectionCollapseStatus:Be,onFetchReimbursementView:be,redirectToVendorDetailPage:we});case"reconciliation":return n.jsxRuntimeExports.jsx(Ba,{onReconListPageScroll:ue,onReloadReconciliationListPage:T,currentFooterFormId:s,reconciliation:Bt,companyId:r,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d,onReviewClicked:Pe,setOpenDrawerClicked:et,setCurrentFooterFormId:j,onReconTabColumnSortConfigChanged:W,onUpdateReconcileTabLocalData:X,onEstablishConnectionClick:jt,onFetchLinkTokenClick:tt,updateReconReviewTabLocalData:pt,onReconReviewTabColumnSortConfigChanged:ft,onSaveReconciliation:yt,onSaveReconciliationReview:Ee,onReconMatchedTransactionClick:ae,onAddStatementClick:Re});default:return n.jsxRuntimeExports.jsx(ut,{tab:fe,title:Fe(fe).allDoneText.title,subTitle:Fe(fe).allDoneText.subTitle})}};function du(e){const s=t.useWindowSizeContext(),{currentSelectedView:l}=e.expenseAutomationViewSelector,a=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",u=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return n.jsxRuntimeExports.jsx(au,{windowSize:s,style:{...u===!0?{paddingLeft:Bs.subSectionContainerLeftRightPadding.value(s),paddingRight:Bs.subSectionContainerLeftRightPadding.value(s)}:{paddingLeft:t.sp[0],paddingRight:t.sp[0]},...a===!0||l==="reconciliation"?{paddingLeft:t.sp[0],paddingRight:t.sp[0]}:{}},children:n.jsxRuntimeExports.jsx(lu,{...e})})}const uu=e=>k.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("path",{d:"M22.9902 12.0403L1.12726 12.0403",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M7.68994 5.60718L1.00953 12.0402L7.68994 18.4732",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),pu=e=>k.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("path",{d:"M12 22.0619L11.4825 21.5444C9.66604 19.7284 7.20261 18.7082 4.63406 18.7084H2.17687C1.92268 18.7082 1.67898 18.607 1.49932 18.4272C1.31966 18.2474 1.21875 18.0036 1.21875 17.7494V2.89563C1.21875 2.64152 1.3197 2.39781 1.49938 2.21813C1.67906 2.03845 1.92276 1.9375 2.17687 1.9375H3.94219C5.53731 1.93666 7.10793 2.32989 8.51448 3.08223C9.92104 3.83457 11.12 4.92273 12.0047 6.25L12 22.0619Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M12 22.0619L12.5175 21.5444C14.334 19.7284 16.7974 18.7082 19.3659 18.7084H21.8231C22.0773 18.7082 22.321 18.607 22.5007 18.4272C22.6803 18.2474 22.7813 18.0036 22.7812 17.7494V2.89563C22.7812 2.64152 22.6803 2.39781 22.5006 2.21813C22.3209 2.03845 22.0772 1.9375 21.8231 1.9375H20.0625C18.4674 1.93666 16.8968 2.32989 15.4902 3.08223C14.0837 3.83457 12.8847 4.92273 12 6.25V22.0619Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M4.07031 6.47765C5.88047 6.33155 7.68276 6.84169 9.14781 7.91484",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M4.07031 10.3118C5.88051 10.1652 7.68295 10.6754 9.14781 11.7489",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M4.07031 14.1435C5.88058 13.9978 7.68285 14.5083 9.14781 15.5817",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M18.5882 8.40625H16.6392C16.3407 8.40684 16.0516 8.51125 15.8217 8.70157C15.5917 8.8919 15.4351 9.15629 15.3786 9.44943C15.3222 9.74258 15.3695 10.0462 15.5125 10.3083C15.6554 10.5704 15.885 10.7746 16.162 10.8859L18.1392 11.6762C18.4162 11.7876 18.6458 11.9918 18.7887 12.2539C18.9316 12.516 18.9789 12.8196 18.9225 13.1128C18.8661 13.4059 18.7095 13.6703 18.4795 13.8606C18.2495 14.0509 17.9605 14.1553 17.662 14.1559H15.7129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M17.1504 8.40656V7.6875",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M17.1504 14.8753V14.1562",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),mu=i.div`
|
|
1517
|
-
width: 100%;
|
|
1518
|
-
height: 100vh;
|
|
1519
|
-
display: flex;
|
|
1520
|
-
flex-direction: column;
|
|
1521
|
-
background: ${e=>e.theme.colors.grey4};
|
|
1522
|
-
box-shadow: ${e=>e.theme.colors.elevation1};
|
|
1523
|
-
`,xu=i.div`
|
|
1524
|
-
height: 100vh;
|
|
1525
|
-
|
|
1526
|
-
display: flex;
|
|
1527
|
-
flex-direction: column;
|
|
1528
|
-
align-items: center;
|
|
1529
|
-
min-width: 100%;
|
|
1530
|
-
flex: 1;
|
|
1531
|
-
|
|
1532
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
1533
|
-
width: 100%;
|
|
1534
|
-
padding-left: ${t.Space.sp0};
|
|
1535
|
-
}
|
|
1536
|
-
`,Ns=i(t.SvgArrowTailRight)`
|
|
1537
|
-
height: ${t.Space.sp3};
|
|
1538
|
-
width: ${t.Space.sp3};
|
|
1539
|
-
cursor: pointer;
|
|
1540
|
-
color: inherit;
|
|
1541
|
-
`,Ps=i(uu)`
|
|
1542
|
-
height: ${t.Space.sp3};
|
|
1543
|
-
width: ${t.Space.sp3};
|
|
1544
|
-
cursor: pointer;
|
|
1545
|
-
color: inherit;
|
|
1546
|
-
`,{common:{footer:Te,texts:{maxLimitReached:hu,confirmAction:gu},headers:ju,create:fu,strings:Pt,texts:Mt,cancel:yu,confirm:Su,monthsByIndex:Ru},dateFormat:{visual:{MMMDCommaYYYYformat:Fs}},expenseAutomation:Ft}=t.appLocale.getLocalizedStrings(),Cu=e=>{const{expenseAutomationViewSelector:s,isDisabled:l,isRealtimeInsightsFeatureEnabled:a,isUncategorizedExpenseCategoryEnabled:u,isCOTEnabled:p,onUpdateTab:o,onReconTabUpdate:c,onUpdateStep:r,onSearchTextChanged:x,onRefresh:d,onClose:h,onBack:g,resetTransactionCategorizationLocalData:f,updateOperatingExpensesIdsForReview:R,clearJeScheduleLocalData:y,onSaveReconciliation:v}=e,{currentSelectedView:j,allSteps:w,missingReceipts:O,jeSchedules:$,fluxAnalysis:B,monthEndInsights:b,transactionView:C,selectedTransactionCategorizationTab:I,reconciliation:L,selectedPeriod:W}=s,[T,X]=m.useState("expenseAutomationPage"),[_,P]=m.useState(()=>{}),[U,K]=m.useState(!1),M=t.useWindowSizeContext(),Q=!!e.loggedInUser.userEmail?.includes("zeni.ai"),Se=Q?t.ThreadsContext:t.NonZeniUsersThreadsContext,{openThread:H,setOpenThread:he}=m.useContext(Se),[ge,S]=m.useState(!1),[N,q]=m.useState(!1),F=w.find(ae=>ae.step===j),{nextStep:z,previousStep:A}=go(w,j),{uiState:{searchString:G,pageToken:le},totalCountByTab:D,transactions:ee,fetchStateByTransactionTabs:te,transactionLocalData:J}=C,{selectedReconAccount:je,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:Ce}}}}=L;let E="Not-Started",Y="complete";switch(j){case"missing_receipts":E=O.refreshStatus.fetchState,Y=O.completionStatus;break;case"je_schedules":E=$.refreshStatus.fetchState,Y=$.completionStatus;break;case"month_end_insights":b!=null&&(E=b?.fetchState);break;case"flux_analysis":E=B.refreshStatus.fetchState,Y=B.completionStatus;break;case"transaction_categorization":E=C.refreshStatus.fetchState,Y=C.completionStatus;break;case"reconciliation":je==null?(E=L.refreshStatus.fetchState,Y=L.completionStatus):(E=L.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",Y=L.completionStatus)}const me=()=>{_()},{saveStatus:Oe,selectedCheckBoxTransactionIds:Be}=C,be=()=>{const ae=so(s.fluxAnalysis.sections,s.fluxAnalysis.reviewOperatingExpensesIds),ue=V.dateNow(),{month:Re,year:fe}=W,De=V.dateNow().set("month",Re-1).set("year",fe).endOf("month");switch(T){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ae===!0?Te.markAsReviewed:Mt.undo,style:{justifyContent:"space-evenly"},isLoading:s.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:Sn(s.fluxAnalysis.reviewOperatingExpensesIds.length,Ae.FLUX_MAX_SELECTION_LIMIT,M,Mt.vendor,j),cancelBtn:{label:Te.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{R([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Te.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:Oe.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:Sn(Be.length,V.MAX_SELECTION_LIMIT,M,Mt.transaction,j),cancelBtn:{label:Te.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{f(I,ee.map(nt=>nt.id),W,!1,D[I],V.getLineItemsByTransactionIdsFromLocalData(J,I),u,le)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:Te.next,backBtnLabel:Te.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Te.next,style:{justifyContent:"space-evenly"},isDisabled:l||F?.isNextDisabled,suffixIcon:n.jsxRuntimeExports.jsx(Ns,{}),onClick:()=>{r(z.step)}},cancelBtn:{label:Te.back,isDisabled:l||F?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:n.jsxRuntimeExports.jsx(Ps,{}),onClick:()=>{r(A.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Te.reconcile,backBtnLabel:Te.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Te.reconcile,onClick:()=>{v({reconcileAction:"reconcile"})},isDisabled:!(L.reconciliationTabsState.balances.variance.amount===0&&ue.isAfter(De)),isLoading:L.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:Sn(Ce.length,1/0,M,Mt.transaction,j),cancelBtn:{onClick:()=>{v({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:L.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:Te.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:Te.save,backBtnLabel:Te.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Te.save,isLoading:$.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>me(),label:Te.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const nt=j==="reconciliation"&&s.reconciliation.selectedTab==="review"&&s.reconciliation.selectedAccountId!=null,Ke=j==="reconciliation"&&s.reconciliation.selectedAccountId==null,It=j==="reconciliation"&&s.reconciliation.selectedTab==="reconcile"&&s.reconciliation.selectedAccountId!=null,Bt=z.step==="month_end_insights"&&(j==="flux_analysis"&&(s.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||s.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||Ke),se=j==="transaction_categorization"&&s.selectedTransactionCategorizationTab==="review",ve=j==="transaction_categorization"&&s.selectedTransactionCategorizationTab==="autoCategorized",xe=s.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&(a||F?.isNextDisabled===!1),_e=z.step==="month_end_insights"&&(Ke||j==="flux_analysis")?!xe:F?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:Te.next,backBtnLabel:Te.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Bt===!0?vu(s.selectedPeriod.month):Te.next,style:{justifyContent:"space-evenly"},isDisabled:_e,suffixIcon:n.jsxRuntimeExports.jsx(Ns,{}),onClick:()=>{se?o("autoCategorized"):nt?c("reconcile"):r(z.step)}},cancelBtn:{label:Te.back,isDisabled:l||F?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:n.jsxRuntimeExports.jsx(Ps,{}),onClick:()=>{ve?o("review"):It?c("review"):nt?g():r(A.step)}}}}}},we=()=>{switch(T){case"expenseAutomationFluxPage":return{confirmAction:()=>{S(!1),R([]),h()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{S(!1),f(I,ee.map(ae=>ae.id),W,!1,D[I],V.getLineItemsByTransactionIdsFromLocalData(J,I),u,le),h()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{S(!1),y(),h()}};default:return{confirmAction:()=>{S(!1)},confirmationDescription:Pt.empty}}},de=()=>{T==="expenseAutomationFluxPage"||T==="expenseAutomationJESchedulePage"||T==="expenseAutomationTransactionsPage"?S(!0):h()},{primaryBtn:Ue,cancelBtn:We,leftSideComponent:Ge}=be(),{confirmAction:re}=we(),Pe=ae=>{if(j==="transaction_categorization"&&(ae==="autoCategorized"||ae==="review"))return{hideCountInTab:D[ae]>Ft.common.numbers.maximumCount,count:D[ae],isFetching:te[ae].fetchState==="In-Progress"};if(j==="reconciliation"){const{reconciliation:ue}=s,{selectedAccountId:Re}=ue;return Re==null?{count:0,isFetching:!1}:ae==="review"?{count:ue.accountReconciliationsByAccountID[Re]?.accountReconEntity?.transactionsToReview.length,isFetching:ue.accountReconciliationsByAccountID[Re]?.transactionFetchState.fetchState==="In-Progress"}:{count:ue.accountReconciliationsByAccountID[Re]?.accountReconEntity?.transactionsToReconcile.length,isFetching:ue.accountReconciliationsByAccountID[Re]?.transactionFetchState.fetchState==="In-Progress"}}},et=j==="reconciliation"&&L.selectedAccountId!=null&&L.selectedReconAccount!=null,{month:jt,year:tt}=W,pt=V.dateNow().set("month",jt-1).set("year",tt),ft=pt.startOf("month").format(Fs),yt=pt.endOf("month").format(Fs),Ee=`${ft} ${Pt.hyphen} ${yt}`;return n.jsxRuntimeExports.jsxs(mu,{children:[ge?n.jsxRuntimeExports.jsx(t.ConfirmationPopup,{containerStyle:{width:356},titleComponent:n.jsxRuntimeExports.jsx(fo,{children:gu}),primaryButtonText:Su,secondaryButtonText:yu,proceedButtonVariant:"danger",action:{onOkClick:()=>{re()},onCancelClick:()=>S(!1)},descriptionComponent:n.jsxRuntimeExports.jsx(Tu,{children:Ft.confirmationDescription})}):null,n.jsxRuntimeExports.jsxs(xu,{children:[n.jsxRuntimeExports.jsx(ti,{onBack:g,navBarCustomElement:j==="reconciliation"&&L.selectedAccountId!=null?n.jsxRuntimeExports.jsx(Eu,{reconciliation:L}):void 0,onReconTabUpdate:c,currentRecontab:L.selectedTab,reconcileDetailPageFetchState:L.selectedAccountId!=null?L.accountReconciliationsByAccountID[L.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:et?L.selectedAccountId:void 0,currentSelectedView:j,titleStyle:{justifyContent:"center",marginLeft:t.Space.sp0},headerData:Fe(j,D.autoCategorized,et?L.selectedAccountId:void 0,et?L.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,et?Ee:void 0),searchText:G,currentTab:I,getTabCountAndFetchState:Pe,completionStatus:Y,forceShowSubtitle:U===!0||j==="je_schedules"&&($.fetchState==="In-Progress"||$.accountSettingsView.fetchState==="In-Progress"),refreshStatus:E,companyId:e.companyId,companyName:s.monthEndInsights?.companyName??Pt.empty,isZeniUser:Q,onAllThreadsClick:()=>{H!=null&&he(null),q(!0)},onUpdateTab:o,onSearchTextChanged:x,onRefresh:d,onClose:de}),n.jsxRuntimeExports.jsx(du,{...e,isCOTEnabled:p,setIsJeAccountSettingsOpened:K,setResetJeAccountSettingsForm:P,allThreadsSectionOpen:N,setCurrentFooterFormId:X,currentFooterFormId:T,onCloseAllThreadsSection:()=>q(!1)}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:j!=="month_end_insights",children:n.jsxRuntimeExports.jsx(t.Footer,{style:{width:"-webkit-fill-available",maxHeight:t.sp[8]},formId:jo(T),primaryBtn:Ue,leftSideComponent:Ge,cancelBtn:We,separatorStyle:{marginRight:t.Space.sp4}})})]})]})},Eu=({reconciliation:e})=>{const s=n.useTheme(),{clearedBalance:l,variance:a,variancePercentage:u,deposits:p,payments:o}=e.reconciliationTabsState.balances,{balance:c}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:r}=e,{transactionFetchState:x}=r??{};return n.jsxRuntimeExports.jsx($u,{children:n.jsxRuntimeExports.jsxs(Lu,{children:[n.jsxRuntimeExports.jsxs(Rn,{style:{justifyContent:"flex-end",width:"50%"},children:[n.jsxRuntimeExports.jsx(Cn,{children:n.jsxRuntimeExports.jsx(Au,{})}),n.jsxRuntimeExports.jsx(En,{children:x?.fetchState==="In-Progress"?n.jsxRuntimeExports.jsxs(wn,{children:[n.jsxRuntimeExports.jsx(Dt,{height:25,width:120}),n.jsxRuntimeExports.jsx(Dt,{height:19,width:120})]}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(bn,{children:t.amountToString("0,0.00",c)}),n.jsxRuntimeExports.jsx(vn,{children:Ft.accountRecon.reconciliation.headers.bankBalance})]})})]}),n.jsxRuntimeExports.jsxs(Rn,{children:[n.jsxRuntimeExports.jsx(Cn,{children:n.jsxRuntimeExports.jsx(Du,{})}),n.jsxRuntimeExports.jsx(En,{children:x?.fetchState==="In-Progress"?n.jsxRuntimeExports.jsxs(wn,{children:[n.jsxRuntimeExports.jsx(Dt,{height:25,width:120}),n.jsxRuntimeExports.jsx(Dt,{height:19,width:120})]}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(bn,{children:t.amountToString("0,0.00",l)}),n.jsxRuntimeExports.jsxs(Mu,{children:[n.jsxRuntimeExports.jsx(vn,{children:Ft.accountRecon.reconciliation.headers.clearedBalance}),n.jsxRuntimeExports.jsx(t.Tooltip,{placement:"bottom",title:n.jsxRuntimeExports.jsxs(Bu,{children:[n.jsxRuntimeExports.jsxs(zs,{children:[n.jsxRuntimeExports.jsxs(Hs,{children:[o.count," ",Mt.payments]}),n.jsxRuntimeExports.jsx(Ws,{children:t.amountToString("0,0.[00]",o.totalAmount)})]}),n.jsxRuntimeExports.jsxs(zs,{children:[n.jsxRuntimeExports.jsxs(Hs,{children:[p.count," ",Mt.deposits]}),n.jsxRuntimeExports.jsx(Ws,{children:t.amountToString("0,0.[00]",p.totalAmount)})]})]}),display:"flex",children:n.jsxRuntimeExports.jsx(_u,{})})]})]})})]}),n.jsxRuntimeExports.jsxs(Rn,{style:{justifyContent:"flex-start",width:"50%"},children:[n.jsxRuntimeExports.jsx(Cn,{children:n.jsxRuntimeExports.jsx(Ou,{})}),n.jsxRuntimeExports.jsx(En,{children:x?.fetchState==="In-Progress"?n.jsxRuntimeExports.jsxs(wn,{children:[n.jsxRuntimeExports.jsx(Dt,{height:25,width:120}),n.jsxRuntimeExports.jsx(Dt,{height:19,width:120})]}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs(bn,{children:[n.jsxRuntimeExports.jsx("span",{style:{color:a.amount===0?s.colors.brandColorJadeDark:s.colors.primary},children:t.amountToString("0,0.00",a)}),u!=null&&a.amount!==0?n.jsxRuntimeExports.jsx("span",{style:{color:s.colors.primary,marginLeft:2},children:`(${u.toFixed(2)}%)`}):null]}),n.jsxRuntimeExports.jsx(vn,{children:Ft.accountRecon.reconciliation.headers.variance})]})})]})]})})},Sn=(e,s,l,a,u)=>{const p=a,o=(e>1?p+"s":p)+" selected";return e>0?n.jsxRuntimeExports.jsxs(bu,{currentView:u,style:l==="small"?{position:"absolute",top:t.Space.sp2,left:`-${t.Space.sp5}`}:{},children:[n.jsxRuntimeExports.jsx(wu,{multiDigit:e>=5,children:e}),n.jsxRuntimeExports.jsx(Iu,{children:o}),e===s?n.jsxRuntimeExports.jsx(ku,{children:`(${hu})`}):null]}):null},vu=e=>{const s=Ru[e];return`${fu}${Pt.space}${s}${Pt.space}${ju.insights}`};function go(e,s){const l=e.findIndex(c=>c.step===s);if(l===-1)throw new Error("currentStep not found in allSteps array");const a=(l+1)%e.length,u=(l-1+e.length)%e.length,p=e[a],o=e[u];return{nextStep:p,previousStep:o}}const jo=e=>`${e}_form`,bu=i.div`
|
|
1547
|
-
display: flex;
|
|
1548
|
-
justify-content: flex-start;
|
|
1549
|
-
align-items: center;
|
|
1550
|
-
gap: ${t.Space.sp2};
|
|
1551
|
-
margin-left: ${e=>e.currentView==="flux_analysis"?"36px":t.Space.sp8};
|
|
1552
|
-
`,wu=i(t.ExtraSmallRegular)`
|
|
1553
|
-
height: 18px;
|
|
1554
|
-
width: ${e=>e.multiDigit?"auto":"18px"};
|
|
1555
|
-
padding: ${t.Space.sp0} 6px;
|
|
1556
|
-
border-radius: ${t.Space.sp12};
|
|
1557
|
-
border: ${e=>`1px solid ${e.theme.colors.primary}`};
|
|
1558
|
-
display: flex;
|
|
1559
|
-
justify-content: center;
|
|
1560
|
-
align-items: center;
|
|
1561
|
-
`,Iu=i(t.StandardRegular)`
|
|
1562
|
-
color: ${e=>e.theme.colors.primary};
|
|
1563
|
-
`,ku=i(t.SmallRegular)`
|
|
1564
|
-
color: ${t.Colors.important};
|
|
1565
|
-
`,fo=i(t.H6Medium)`
|
|
1566
|
-
margin-top: ${t.Space.sp5};
|
|
1567
|
-
padding-left: ${t.Space.sp8};
|
|
1568
|
-
padding-right: ${t.Space.sp8};
|
|
1569
|
-
color: ${e=>e.theme.colors.primary};
|
|
1570
|
-
word-break: break-word;
|
|
1571
|
-
`,Tu=i(t.ConfirmationPopUpDescription)`
|
|
1572
|
-
color: ${e=>e.theme.colors.primary};
|
|
1573
|
-
margin-top: ${t.Space.sp2};
|
|
1574
|
-
margin-bottom: ${t.Space.sp2};
|
|
1575
|
-
`,$u=i.div`
|
|
1576
|
-
display: flex;
|
|
1577
|
-
justify-content: center;
|
|
1578
|
-
align-items: center;
|
|
1579
|
-
padding: ${t.Space.sp3} ${t.Space.sp0};
|
|
1580
|
-
`,Lu=i.div`
|
|
1581
|
-
width: 100%;
|
|
1582
|
-
display: flex;
|
|
1583
|
-
justify-content: center;
|
|
1584
|
-
align-items: center;
|
|
1585
|
-
gap: ${t.Space.sp1};
|
|
1586
|
-
`,Rn=i.div`
|
|
1587
|
-
display: flex;
|
|
1588
|
-
justify-content: center;
|
|
1589
|
-
align-items: center;
|
|
1590
|
-
gap: ${t.Space.sp3};
|
|
1591
|
-
`,Cn=i.div`
|
|
1592
|
-
width: ${t.Space.sp7};
|
|
1593
|
-
height: ${t.Space.sp7};
|
|
1594
|
-
border-radius: 50%;
|
|
1595
|
-
display: flex;
|
|
1596
|
-
justify-content: center;
|
|
1597
|
-
align-items: center;
|
|
1598
|
-
background-color: ${e=>e.theme.mode==="dark"?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJadeLight};
|
|
1599
|
-
`,En=i.div`
|
|
1600
|
-
display: flex;
|
|
1601
|
-
flex-direction: column;
|
|
1602
|
-
`,vn=i(t.SmallRegular)`
|
|
1603
|
-
color: ${e=>e.theme.colors.hero};
|
|
1604
|
-
`,bn=i(t.LargeSemiBold)`
|
|
1605
|
-
min-width: 180px;
|
|
1606
|
-
color: ${e=>e.theme.colors.primary};
|
|
1607
|
-
`,Au=i(t.SvgBankBuilding)`
|
|
1608
|
-
color: ${e=>e.theme.colors.primary};
|
|
1609
|
-
width: ${t.Space.sp4};
|
|
1610
|
-
height: ${t.Space.sp4};
|
|
1611
|
-
`,Ou=i(t.SvgCalculator)`
|
|
1612
|
-
color: ${e=>e.theme.colors.primary};
|
|
1613
|
-
width: ${t.Space.sp4};
|
|
1614
|
-
height: ${t.Space.sp4};
|
|
1615
|
-
`,Du=i(pu)`
|
|
1616
|
-
color: ${e=>e.theme.colors.primary};
|
|
1617
|
-
width: ${t.Space.sp4};
|
|
1618
|
-
height: ${t.Space.sp4};
|
|
1619
|
-
`,_u=i(t.SvgInfo)`
|
|
1620
|
-
width: ${t.Space.sp3};
|
|
1621
|
-
height: ${t.Space.sp3};
|
|
1622
|
-
color: ${e=>e.theme.colors.hero};
|
|
1623
|
-
:hover {
|
|
1624
|
-
color: ${e=>e.theme.colors.primary};
|
|
1625
|
-
}
|
|
1626
|
-
`,Mu=i.div`
|
|
1627
|
-
display: flex;
|
|
1628
|
-
align-items: center;
|
|
1629
|
-
gap: ${t.Space.sp1};
|
|
1630
|
-
`,Bu=i.div`
|
|
1631
|
-
background-color: ${t.Colors.overlayDark};
|
|
1632
|
-
padding: 2px ${t.Space.sp2};
|
|
1633
|
-
border-radius: ${t.Space.sp1};
|
|
1634
|
-
`,zs=i.div`
|
|
1635
|
-
display: flex;
|
|
1636
|
-
justify-content: space-between;
|
|
1637
|
-
gap: ${t.Space.sp2};
|
|
1638
|
-
`,Hs=i.div`
|
|
1639
|
-
text-transform: capitalize;
|
|
1640
|
-
`,Ws=i(t.SmallRegular)`
|
|
1641
|
-
color: ${t.Colors.primaryDark};
|
|
1642
|
-
align-self: "flex-end";
|
|
1643
|
-
`,Dt=i(t.RectangularContentLoader)`
|
|
1644
|
-
border-radius: ${t.Space.sp2};
|
|
1645
|
-
`,wn=i.div`
|
|
1646
|
-
display: flex;
|
|
1647
|
-
flex-direction: column;
|
|
1648
|
-
min-width: 180px;
|
|
1649
|
-
gap: ${t.Space.sp1};
|
|
1650
|
-
`;exports.ConfirmationPopUpTitle=fo;exports.default=Cu;exports.getNextAndPreviousSteps=go;exports.uniqueFormName=jo;
|