@zeniai/web-components 3.17.12 → 3.17.14
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-C-fT6_Bb.cjs +21 -0
- package/dist/ACHDetailsPage-DqgiPha4.js +160 -0
- package/dist/AIPerformancePage-DyQhM-i1.js +1345 -0
- package/dist/AIPerformancePage-vWkh4qV9.cjs +539 -0
- package/dist/AccountInfoPage-CAN9a0AM.cjs +18 -0
- package/dist/AccountInfoPage-CadjICQO.js +78 -0
- package/dist/AccountInfoPageContent-BNGORHoB.js +428 -0
- package/dist/AccountInfoPageContent-CYw44CtE.cjs +149 -0
- package/dist/AccountLockedInfoModal-CPgTA0hz.cjs +59 -0
- package/dist/AccountLockedInfoModal-ztQLVYye.js +125 -0
- package/dist/AccountReconDetailsDrawerPage-CLQYyAwh.cjs +239 -0
- package/dist/AccountReconDetailsDrawerPage-bZ2E_6HK.js +689 -0
- package/dist/AccountRow-BqIeXSM0.cjs +298 -0
- package/dist/AccountRow-RgUEMdWT.js +1014 -0
- package/dist/AccountsPromoCardStack-BIqm5Iyn.cjs +207 -0
- package/dist/AccountsPromoCardStack-CEF5rrTF.js +664 -0
- package/dist/AddAddressForCardDrawer-BJESzJGz.js +82 -0
- package/dist/AddAddressForCardDrawer-Dp915PH4.cjs +6 -0
- package/dist/AddToWalletPage-DbYky_Xr.cjs +344 -0
- package/dist/AddToWalletPage-DsvoKzuU.js +642 -0
- package/dist/AgingReportsPage-DbC8-x7r.cjs +79 -0
- package/dist/AgingReportsPage-s8LO6ua9.js +827 -0
- package/dist/AllUserItems-C7rSI-5t.js +979 -0
- package/dist/AllUserItems-CFhWmktT.cjs +192 -0
- package/dist/ApAgingDetailPage-BUr41oKC.cjs +46 -0
- package/dist/ApAgingDetailPage-cxD1gbz2.js +239 -0
- package/dist/AppBasePage-BFnW5Zg2.cjs +71 -0
- package/dist/AppBasePage-CG7b0y-H.js +120 -0
- package/dist/AppDrawerContent-BYTuuIVo.js +379 -0
- package/dist/AppDrawerContent-CLyS80zi.cjs +91 -0
- package/dist/ApprovalRulesSettingsPage-B0xBp2KU.js +145 -0
- package/dist/ApprovalRulesSettingsPage-DbGKkxGa.cjs +47 -0
- package/dist/ArAgingChart-B8Hqa1-h.cjs +24 -0
- package/dist/ArAgingChart-DUPR_QP8.js +530 -0
- package/dist/ArAgingDetailPage-DeUwH9v6.cjs +46 -0
- package/dist/ArAgingDetailPage-GLewtT5e.js +243 -0
- package/dist/AttachmentView-DcaW439r.js +260 -0
- package/dist/AttachmentView-u44_H-58.cjs +101 -0
- package/dist/BankAccountSection-CmUwXSlS.js +398 -0
- package/dist/BankAccountSection-DqSLoP2E.cjs +79 -0
- package/dist/BankAccountWarningSection--5Z7zjTQ.js +110 -0
- package/dist/BankAccountWarningSection-Ce2EbIXP.cjs +51 -0
- package/dist/BankConnectionsSettingsPage-Brz1gWb0.cjs +425 -0
- package/dist/BankConnectionsSettingsPage-DnQ2TNJK.js +1694 -0
- package/dist/BillDetailPage-71vSMtia.cjs +266 -0
- package/dist/BillDetailPage-sRg_LqUh.js +1806 -0
- package/dist/BillPayApprovalRuleDetailPage-B8zFj9U6.js +266 -0
- package/dist/BillPayApprovalRuleDetailPage-UbBIlAkB.cjs +27 -0
- package/dist/BillPayApprovalRulesPage-CLpy21Ck.cjs +241 -0
- package/dist/BillPayApprovalRulesPage-CfveXJ9t.js +431 -0
- package/dist/BillPayPromoPage-NvX_8AMK.cjs +84 -0
- package/dist/BillPayPromoPage-uoBWechB.js +292 -0
- package/dist/BillPaySetUpPage-DEdCaYsU.js +408 -0
- package/dist/BillPaySetUpPage-z-GZ60qi.cjs +42 -0
- package/dist/BillingSettingsPage-C8g56Z5F.cjs +44 -0
- package/dist/BillingSettingsPage-DqF3HmBv.js +336 -0
- package/dist/BillsBulkReviewDrawerPage-3dKAVJ29.cjs +1 -0
- package/dist/BillsBulkReviewDrawerPage-BkmbBpBl.js +216 -0
- package/dist/BoxItem-BkiHIeei.cjs +53 -0
- package/dist/BoxItem-D8nf0zrJ.js +118 -0
- package/dist/BusinessVerificationPage-DnW5WMEt.js +716 -0
- package/dist/BusinessVerificationPage-rTQvZ5SE.cjs +138 -0
- package/dist/BusyIndication-CRb810_U.js +19 -0
- package/dist/BusyIndication-s-L0dFxA.cjs +9 -0
- package/dist/CardNumberSubText-BDRQWSao.cjs +21 -0
- package/dist/CardNumberSubText-hI9B9Wzq.js +59 -0
- package/dist/CashbackDetailPage-D9DaTu3I.cjs +285 -0
- package/dist/CashbackDetailPage-zmYdsQbg.js +825 -0
- package/dist/ChargeCardDetailPage-4KGajRdB.cjs +1462 -0
- package/dist/ChargeCardDetailPage-CYiQCQzp.js +5454 -0
- package/dist/ChargeCardListPage-BDZn3-mc.js +1797 -0
- package/dist/ChargeCardListPage-CTOyNNf3.cjs +412 -0
- package/dist/ChargeCardListTable-Bm7IiksG.cjs +711 -0
- package/dist/ChargeCardListTable-DY8rqX5J.js +2901 -0
- package/dist/ChargeCardPromoPage-CCqMEuSL.cjs +222 -0
- package/dist/ChargeCardPromoPage-DzjEhTjl.js +816 -0
- package/dist/ChargeCardSetupPage-DQ6LnaYh.cjs +36 -0
- package/dist/ChargeCardSetupPage-M4sT3_IT.js +359 -0
- package/dist/ChargeCardStatementsPage-C9fcOBaz.js +243 -0
- package/dist/ChargeCardStatementsPage-cjdulVxM.cjs +60 -0
- package/dist/CheckDepositDrawerPage-BtI1fhCW.js +726 -0
- package/dist/CheckDepositDrawerPage-Bz99zbHI.cjs +206 -0
- package/dist/CollapsableReportTable-DqJOnyB4.cjs +2844 -0
- package/dist/CollapsableReportTable-vBrJ4n1o.js +11659 -0
- package/dist/CompanyOfficerDetailsSection-CM99dqeq.cjs +260 -0
- package/dist/CompanyOfficerDetailsSection-DmWOOhpC.js +1633 -0
- package/dist/CompanyPassportCard-BI5rpWFZ.js +146 -0
- package/dist/CompanyPassportCard-Cga_x6ex.cjs +42 -0
- package/dist/CompanyPassportPage-B_ajgKiq.js +2160 -0
- package/dist/CompanyPassportPage-tvG70_eF.cjs +574 -0
- package/dist/CompleteProfile-B3AlSRtF.cjs +52 -0
- package/dist/CompleteProfile-C2uiP34Z.js +301 -0
- package/dist/ConfettiBurst-DGW42Pr-.cjs +1 -0
- package/dist/ConfettiBurst-DqqLABU0.js +37 -0
- package/dist/CreateOrEditVendorPage-D36sja39.cjs +281 -0
- package/dist/CreateOrEditVendorPage-Dv1RMVXp.js +763 -0
- package/dist/CreditCardPaymentDrawerPage-CynMroi6.cjs +224 -0
- package/dist/CreditCardPaymentDrawerPage-cdcfwDQH.js +1170 -0
- package/dist/CurrencySelectField-BaPcppGv.cjs +139 -0
- package/dist/CurrencySelectField-WhKDYxfc.js +348 -0
- package/dist/CustomerOnboardingActivationPage-8L-BTqj9.cjs +88 -0
- package/dist/CustomerOnboardingActivationPage-jvZuRuut.js +143 -0
- package/dist/CustomerOnboardingContainerPage-Bvn3HuuI.cjs +1 -0
- package/dist/CustomerOnboardingContainerPage-CsvC4C7Y.js +7 -0
- package/dist/CustomerOnboardingDetailPageSkeleton-DPHF8_m_.cjs +162 -0
- package/dist/CustomerOnboardingDetailPageSkeleton-vuLRVmXo.js +434 -0
- package/dist/CustomerOnboardingNoStepsPage-BCoip9Bx.cjs +66 -0
- package/dist/CustomerOnboardingNoStepsPage-BvOXSYqw.js +424 -0
- package/dist/CustomerOnboardingPage-B5b3TqEF.cjs +107 -0
- package/dist/CustomerOnboardingPage-PLQTrdX1.js +1094 -0
- package/dist/CustomerOnboardingProductSuitePage-CJe4tEu5.js +348 -0
- package/dist/CustomerOnboardingProductSuitePage-DoCt_vGb.cjs +202 -0
- package/dist/Dashboard-QYbhnu23.js +5540 -0
- package/dist/Dashboard-lyQqenli.cjs +1551 -0
- package/dist/DashboardReportPage-Bb-nNSh_.js +2536 -0
- package/dist/DashboardReportPage-ItqTsySS.cjs +371 -0
- package/dist/DashboardSidebarBackgroundAnimation-BpxvjdrK.cjs +12 -0
- package/dist/DashboardSidebarBackgroundAnimation-x4AQXuT5.js +53 -0
- package/dist/DepositAccTransactionItem-BXTS97SS.cjs +76 -0
- package/dist/DepositAccTransactionItem-CemWEWbn.js +112 -0
- package/dist/DepositAccTransactionListPage-BfuxgpsT.js +152 -0
- package/dist/DepositAccTransactionListPage-D-i2GpV9.cjs +66 -0
- package/dist/DomesticWireDetailsPage-CAYUlM3u.cjs +21 -0
- package/dist/DomesticWireDetailsPage-DXB22uMY.js +189 -0
- package/dist/DownloadOverlay-Cy1uR5hx.cjs +439 -0
- package/dist/DownloadOverlay-D1ClvSAJ.js +2148 -0
- package/dist/DrawerPage-DCbPWudz.js +208 -0
- package/dist/DrawerPage-DxgnAe4W.cjs +118 -0
- package/dist/EditPeoplePage-B8UgwRRJ.cjs +55 -0
- package/dist/EditPeoplePage-CLbxzpSH.js +392 -0
- package/dist/EditReimbursementDetailPage-DUYvzrxu.js +4531 -0
- package/dist/EditReimbursementDetailPage-xD4oZMMV.cjs +865 -0
- package/dist/EmptySearchResults-DUIAIxJU.cjs +46 -0
- package/dist/EmptySearchResults-hVwqomgC.js +70 -0
- package/dist/EntityDetailPage-CUyGzy3b.cjs +18 -0
- package/dist/EntityDetailPage-DGcUO_gB.js +82 -0
- package/dist/EntitySummarySection-BF-84gMI.js +530 -0
- package/dist/EntitySummarySection-C7Zc3cTy.cjs +149 -0
- package/dist/ExpenseAutomationOverviewPage-AnpRxXHK.js +807 -0
- package/dist/ExpenseAutomationOverviewPage-CmA6Ktsa.cjs +281 -0
- package/dist/ExpenseAutomationPage-D5PRhXwc.js +11574 -0
- package/dist/ExpenseAutomationPage-aovfjOF0.cjs +1650 -0
- package/dist/ExpressPayPage-B6Qq5X5D.cjs +168 -0
- package/dist/ExpressPayPage-qo_c5A4j.js +1136 -0
- package/dist/FeaturePreviewPage-BkoI8Ffu.cjs +11 -0
- package/dist/FeaturePreviewPage-D6zin3PS.js +114 -0
- package/dist/FollowStepsSection-C47zIOQs.cjs +390 -0
- package/dist/FollowStepsSection-CaPzV5Fg.js +1313 -0
- package/dist/GlobalReviewListPage-3Ai-n2x3.js +1674 -0
- package/dist/GlobalReviewListPage-BZdmri4q.cjs +291 -0
- package/dist/InformationCardStack-DIHfNWdL.cjs +31 -0
- package/dist/InformationCardStack-DnvZllVl.js +219 -0
- package/dist/InsightsCardStack-BPo14kbr.cjs +79 -0
- package/dist/InsightsCardStack-CP1ASXTA.js +305 -0
- package/dist/InsightsSection-D-vGAoa5.js +97 -0
- package/dist/InsightsSection-tZ9VA-H5.cjs +27 -0
- package/dist/IntegrationsSettingsPage-1xkwLi5D.js +136 -0
- package/dist/IntegrationsSettingsPage-B5a2QnO-.cjs +57 -0
- package/dist/InternationalWireSwiftDetailsPage-CfluHMk3.js +753 -0
- package/dist/InternationalWireSwiftDetailsPage-DiehD75P.cjs +171 -0
- package/dist/InternationalWireVerificationPage-BDYVYLQh.js +877 -0
- package/dist/InternationalWireVerificationPage-BaLysWV3.cjs +292 -0
- package/dist/InviteFormPage-BdxRCHUA.cjs +312 -0
- package/dist/InviteFormPage-pYw_w98o.js +873 -0
- package/dist/InvitePageListView-DPYb9mv4.js +1764 -0
- package/dist/InvitePageListView-o5mt3t-S.cjs +739 -0
- package/dist/InvitePeoplePage-CHmqTa_n.js +286 -0
- package/dist/InvitePeoplePage-DOFyLE2A.cjs +12 -0
- package/dist/InvoiceUploadSection-RCXlK_x4.js +465 -0
- package/dist/InvoiceUploadSection-xF8sxa9Z.cjs +140 -0
- package/dist/IssueChargeCardPage-CgLkV06B.js +2880 -0
- package/dist/IssueChargeCardPage-DDGXUd_S.cjs +532 -0
- package/dist/LabeledAddressValue-Cu0Seo8K.cjs +49 -0
- package/dist/LabeledAddressValue-iVT4yl18.js +115 -0
- package/dist/LabeledAddressValueField-BRWp9O6G.cjs +45 -0
- package/dist/LabeledAddressValueField-MoIRh76u.js +130 -0
- package/dist/LabeledControlledCheckBoxField-CrkCwyn2.js +73 -0
- package/dist/LabeledControlledCheckBoxField-DNUAEXbD.cjs +16 -0
- package/dist/LabeledCreatableSingleSelectField-BSZK3Eeh.cjs +204 -0
- package/dist/LabeledCreatableSingleSelectField-C_aLsD-l.js +515 -0
- package/dist/LabeledDocumentField-CzxcCvah.js +147 -0
- package/dist/LabeledDocumentField-XYdGA5lf.cjs +41 -0
- package/dist/LabeledDropDownFormattedTextField-Dsj6EW5e.cjs +59 -0
- package/dist/LabeledDropDownFormattedTextField-lKviEBW7.js +163 -0
- package/dist/LabeledEmailInputField-Dbz2sYqA.cjs +182 -0
- package/dist/LabeledEmailInputField-n_0sWq9_.js +425 -0
- package/dist/LabeledItemWithButton-CYe0C72b.js +74 -0
- package/dist/LabeledItemWithButton-t13QQw9A.cjs +21 -0
- package/dist/LabeledNameField-CvNMzdEM.cjs +141 -0
- package/dist/LabeledNameField-roLM_DME.js +293 -0
- package/dist/LabeledSingleSelectField-CtIevinB.cjs +136 -0
- package/dist/LabeledSingleSelectField-D3FNTfW6.js +372 -0
- package/dist/LabeledSingleSelectWithoutClearableField-5xzayet7.cjs +38 -0
- package/dist/LabeledSingleSelectWithoutClearableField-DleiJlCf.js +103 -0
- package/dist/LabeledText-CQh0wY6p.js +103 -0
- package/dist/LabeledText-CS9-RILd.cjs +42 -0
- package/dist/LabeledUserSingleSelectWithSubtitlesField-Cz7TQk4v.cjs +229 -0
- package/dist/LabeledUserSingleSelectWithSubtitlesField-DF8Udu9k.js +572 -0
- package/dist/LabeledZeniRolesDropDownField-DGL8i_xp.js +975 -0
- package/dist/LabeledZeniRolesDropDownField-D_9Fz7mZ.cjs +297 -0
- package/dist/LinkJETransactionPage-DNvTOVdW.js +406 -0
- package/dist/LinkJETransactionPage-DygfFlj8.cjs +98 -0
- package/dist/LockCardPage-Bak-vCry.js +2032 -0
- package/dist/LockCardPage-r4VVKfHd.cjs +623 -0
- package/dist/LowBalancePopup-BRAs0q_f.js +219 -0
- package/dist/LowBalancePopup-BbLg5-Ml.cjs +34 -0
- package/dist/MagicLinkACHDetailsPage-B2Hh2qHZ.js +39 -0
- package/dist/MagicLinkACHDetailsPage-Bry3pWPa.cjs +1 -0
- package/dist/MagicLinkDomesticWireDetailsPage-Dab9vA1I.cjs +1 -0
- package/dist/MagicLinkDomesticWireDetailsPage-QUVXsDgS.js +44 -0
- package/dist/MagicLinkInternationalWireDetailsPage-BwTRPTJV.js +43 -0
- package/dist/MagicLinkInternationalWireDetailsPage-CwX6PNrH.cjs +1 -0
- package/dist/MagicLinkSuccessPage-C-aiUVVE.cjs +31 -0
- package/dist/MagicLinkSuccessPage-C5ZJkzmR.js +59 -0
- package/dist/MagicLinkTitleSection-3r9xd8tx.js +40 -0
- package/dist/MagicLinkTitleSection-Bd1K1H5R.cjs +17 -0
- package/dist/MailingDetailsSection-DFK3r8sI.js +74 -0
- package/dist/MailingDetailsSection-l2TuKWtu.cjs +21 -0
- package/dist/MatchingOperatorDropdown-C2j3blmE.js +572 -0
- package/dist/MatchingOperatorDropdown-Cqv_8igc.cjs +130 -0
- package/dist/Menu-qtYOJuIe.js +110 -0
- package/dist/Menu-sBX4tD9k.cjs +17 -0
- package/dist/MoreMenuButton-3bMIP0h0.cjs +167 -0
- package/dist/MoreMenuButton-D0KwAvrr.js +569 -0
- package/dist/MyBankConnectionsSettingsPage-CyBCdRns.cjs +110 -0
- package/dist/MyBankConnectionsSettingsPage-D_VymQAO.js +297 -0
- package/dist/MyPendingActivationChargeCardListPage-CUG44kR4.cjs +6 -0
- package/dist/MyPendingActivationChargeCardListPage-D3ErB95z.js +168 -0
- package/dist/MyProfileSettingsPage-BmAlTaGD.cjs +85 -0
- package/dist/MyProfileSettingsPage-Yk6WPsYg.js +641 -0
- package/dist/NavBarWithPicker-BzrLoxD1.js +106 -0
- package/dist/NavBarWithPicker-DyGPh8BL.cjs +30 -0
- package/dist/NavigationArrow-BgMNYLsI.js +88 -0
- package/dist/NavigationArrow-DBL1EZBC.cjs +47 -0
- package/dist/NavigationDots-BwwDPtMO.js +44 -0
- package/dist/NavigationDots-DgzWPK2q.cjs +15 -0
- package/dist/NewGlobalMerchantPage-BTTZ3huM.cjs +160 -0
- package/dist/NewGlobalMerchantPage-CzGT0kO0.js +543 -0
- package/dist/NoDataChart-Boe3ex5Q.js +58 -0
- package/dist/NoDataChart-RRVnzYZY.cjs +26 -0
- package/dist/NoDataTable-C78YezBm.js +27 -0
- package/dist/NoDataTable-QllsQCqp.cjs +8 -0
- package/dist/NotFoundPage-DCupP4L9.cjs +46 -0
- package/dist/NotFoundPage-DFR0dPcK.js +71 -0
- package/dist/NotificationSettingsPage-3s2oj__E.js +541 -0
- package/dist/NotificationSettingsPage-BhtFsv3q.cjs +163 -0
- package/dist/NotificationsListConfig-BpQqzLv5.cjs +1 -0
- package/dist/NotificationsListConfig-D7_a_nCI.js +10 -0
- package/dist/NotificationsPage-DQaMT5R4.cjs +685 -0
- package/dist/NotificationsPage-zgUWVEwo.js +2664 -0
- package/dist/OpExByVendorPage-BLLGeZjW.cjs +100 -0
- package/dist/OpExByVendorPage-Cg36Pk0S.js +1058 -0
- package/dist/PandLWithForecastPage-BndcKfTy.js +563 -0
- package/dist/PandLWithForecastPage-DCDGXZg_.cjs +107 -0
- package/dist/PaymentAccountSetupBillingAddressSection-BizrNIna.cjs +106 -0
- package/dist/PaymentAccountSetupBillingAddressSection-DmZpArin.js +623 -0
- package/dist/PeoplePage-BjQ62PGN.js +1994 -0
- package/dist/PeoplePage-_7HSlxs4.cjs +675 -0
- package/dist/ProductsCarousel-CAQtsSH-.js +309 -0
- package/dist/ProductsCarousel-DNH3aQCP.cjs +142 -0
- package/dist/PromoBaseCards-UHTbnv8U.cjs +218 -0
- package/dist/PromoBaseCards-uPuOl65-.js +356 -0
- package/dist/QBOConnectionDialog-B1f4FoSO.js +115 -0
- package/dist/QBOConnectionDialog-DzlQGDjB.cjs +51 -0
- package/dist/QBOSetupSection-D_UQEw7M.cjs +79 -0
- package/dist/QBOSetupSection-Da_Ef3Y2.js +167 -0
- package/dist/ReimbursementApprovalRuleDetailPage-CeRt0kHL.cjs +32 -0
- package/dist/ReimbursementApprovalRuleDetailPage-XLgkOuGo.js +272 -0
- package/dist/ReimbursementApprovalRulesPage-BSbNIcgq.js +429 -0
- package/dist/ReimbursementApprovalRulesPage-DYdN36M7.cjs +243 -0
- package/dist/ReimbursementDetailPage-CyxCiQA7.cjs +314 -0
- package/dist/ReimbursementDetailPage-DQ-c69rH.js +1514 -0
- package/dist/ReimbursementPromoPage-BYKud7gH.cjs +84 -0
- package/dist/ReimbursementPromoPage-C6lZF7pB.js +363 -0
- package/dist/ReimbursementSetUpPage-BjqL2nYV.js +663 -0
- package/dist/ReimbursementSetUpPage-BqN4pI5I.cjs +140 -0
- package/dist/ReimbursementsBulkReviewDrawerPage-CNyVdNjs.js +204 -0
- package/dist/ReimbursementsBulkReviewDrawerPage-Cm-D8txa.cjs +1 -0
- package/dist/ReloadCard-BJcjCLHT.js +137 -0
- package/dist/ReloadCard-C69aDHw4.cjs +26 -0
- package/dist/ReloadContainer-CjbPbMM3.cjs +596 -0
- package/dist/ReloadContainer-VJtyfLdC.js +2165 -0
- package/dist/ReportTableViewSelector-Cpbi_aUt.js +689 -0
- package/dist/ReportTableViewSelector-TG8hxpC-.cjs +150 -0
- package/dist/ReportsPage-BS9bIgsY.js +1315 -0
- package/dist/ReportsPage-BkIAf78M.cjs +121 -0
- package/dist/RevenueChart-BvX5n05z.js +2240 -0
- package/dist/RevenueChart-DDNb96YE.cjs +280 -0
- package/dist/ReviewDetailsPage-B1kZfLyy.cjs +290 -0
- package/dist/ReviewDetailsPage-DpNyHY7z.js +1073 -0
- package/dist/ReviewOverlay-BP59lcA0.cjs +152 -0
- package/dist/ReviewOverlay-FCNYOsB6.js +299 -0
- package/dist/RoleWithToolTip-Cnv5DcXK.cjs +22 -0
- package/dist/RoleWithToolTip-j8iGS3JX.js +72 -0
- package/dist/ScheduleDetailsFixedAssetsPage-BvY1wrID.js +806 -0
- package/dist/ScheduleDetailsFixedAssetsPage-DNkO22po.cjs +37 -0
- package/dist/ScheduleDetailsPage-C-prpB3g.js +726 -0
- package/dist/ScheduleDetailsPage-CBLuxu4x.cjs +37 -0
- package/dist/ScheduleSequenceTable-Cam-mXmc.js +1261 -0
- package/dist/ScheduleSequenceTable-D18ocuvI.cjs +324 -0
- package/dist/SetUpAccountSection-Ae0JN5Kn.js +1469 -0
- package/dist/SetUpAccountSection-D3ZQhnZS.cjs +378 -0
- package/dist/SignIn-CuCsynTU.js +1155 -0
- package/dist/SignIn-I2Gp3V-5.cjs +463 -0
- package/dist/SpendManagementListViewPage-BLqVPj9U.cjs +122 -0
- package/dist/SpendManagementListViewPage-CkX9SgsG.js +631 -0
- package/dist/SpendManagementPerTabPage-0UDNGXg5.js +2903 -0
- package/dist/SpendManagementPerTabPage-Cjai5u0U.cjs +785 -0
- package/dist/SpendManagementSection-BWNtPefV.cjs +230 -0
- package/dist/SpendManagementSection-CsioZc_9.js +1043 -0
- package/dist/StatementItem-9tv8OOL2.js +81 -0
- package/dist/StatementItem-frMHcay3.cjs +31 -0
- package/dist/StatementsPage-CVTfxsfA.cjs +58 -0
- package/dist/StatementsPage-DdcEzHdR.js +130 -0
- package/dist/StatusSwitcher-BGaS05FL.cjs +120 -0
- package/dist/StatusSwitcher-KXzKldyE.js +319 -0
- package/dist/SubTabSwitcher-bPpcfFmK.js +113 -0
- package/dist/SubTabSwitcher-r1VHNkwq.cjs +58 -0
- package/dist/SuccessAnimation-DhW_skuI.js +52 -0
- package/dist/SuccessAnimation-qJZuBNHD.cjs +13 -0
- package/dist/SummaryCard-BMnPnLuT.cjs +1 -0
- package/dist/SummaryCard-DxigF7_T.js +25 -0
- package/dist/TaskDetailPage-BlQrZH2a.cjs +775 -0
- package/dist/TaskDetailPage-C4uLwNF0.js +2533 -0
- package/dist/TaskListRow-BnlY1Rjv.cjs +556 -0
- package/dist/TaskListRow-DF0mOV3A.js +1950 -0
- package/dist/TaskManagementPage-Binio6wu.js +1935 -0
- package/dist/TaskManagementPage-DbDw0qk0.cjs +508 -0
- package/dist/TimeRangeSwitcher-CVeIdT1v.cjs +64 -0
- package/dist/TimeRangeSwitcher-DcDq_6pf.js +265 -0
- package/dist/TimeframeSwitcher-CAV8HFvG.js +103 -0
- package/dist/TimeframeSwitcher-OIL8AXGh.cjs +31 -0
- package/dist/TimeframeSwitcherWithToggle-BY4wkKLl.js +157 -0
- package/dist/TimeframeSwitcherWithToggle-Bk0Y5LkP.cjs +31 -0
- package/dist/TopExCard-CctAg_lJ.cjs +38 -0
- package/dist/TopExCard-JXq6eMME.js +569 -0
- package/dist/TopExDetailPage-6kQkW-pJ.cjs +132 -0
- package/dist/TopExDetailPage-C0QdKBFl.js +318 -0
- package/dist/TransactionDetailPage-BoaVrpu7.cjs +912 -0
- package/dist/TransactionDetailPage-DpAs0WRX.js +5238 -0
- package/dist/TransactionList-CCgdWhrj.js +558 -0
- package/dist/TransactionList-CPhShg7k.cjs +147 -0
- package/dist/TransactionListBig-DZHe6uqk.cjs +284 -0
- package/dist/TransactionListBig-Dd2Cji9S.js +658 -0
- package/dist/TransactionListPage-Uh0KWHwq.js +145 -0
- package/dist/TransactionListPage-ZgNF7ukC.cjs +35 -0
- package/dist/TransactionVendorDetailPage-CiyU1Qas.cjs +80 -0
- package/dist/TransactionVendorDetailPage-DYPQUcx-.js +425 -0
- package/dist/TransferDrawerPage-BQkZDgDY.cjs +362 -0
- package/dist/TransferDrawerPage-BkG0ulwx.js +1436 -0
- package/dist/TreasuryOverviewPage-CEyvYM0W.js +1890 -0
- package/dist/TreasuryOverviewPage-CmMbAjoz.cjs +708 -0
- package/dist/TreasuryPromoPage-BqQLBQxP.js +1123 -0
- package/dist/TreasuryPromoPage-DbjRLGk2.cjs +505 -0
- package/dist/TreasuryStatementsPage-BolMNiI3.cjs +58 -0
- package/dist/TreasuryStatementsPage-Br7c4xee.js +131 -0
- package/dist/TreasuryTaxLetterPage-DGsM845L.cjs +58 -0
- package/dist/TreasuryTaxLetterPage-iVR2_Dnj.js +131 -0
- package/dist/TrendChart-BU0wmfF9.cjs +16 -0
- package/dist/TrendChart-CYuDf4DK.js +334 -0
- package/dist/TrendWithTransactions-C7VvXV64.js +346 -0
- package/dist/TrendWithTransactions-CVT6Wy9V.cjs +116 -0
- package/dist/UncategorizedAccountsMappingPage-BDilT9fa.js +1159 -0
- package/dist/UncategorizedAccountsMappingPage-CnVkU2L5.cjs +244 -0
- package/dist/UnitIntegrationPage-DRP0s2FR.js +405 -0
- package/dist/UnitIntegrationPage-PtL3vWAz.cjs +67 -0
- package/dist/UploadAdditionalDocumentOverlay-BvrjrS4J.cjs +38 -0
- package/dist/UploadAdditionalDocumentOverlay-Cex2ZoTo.js +211 -0
- package/dist/Vendor2FAPopup-B48SYuVX.js +69 -0
- package/dist/Vendor2FAPopup-Cs2ygdLn.cjs +1 -0
- package/dist/VendorACHDetailsPage-BLblaVYM.cjs +1 -0
- package/dist/VendorACHDetailsPage-DshMGnXU.js +43 -0
- package/dist/VendorDetailPage-iMO1Gv82.cjs +257 -0
- package/dist/VendorDetailPage-oKYodo05.js +1236 -0
- package/dist/VendorDomesticWireDetailsPage-BSuM40TM.cjs +1 -0
- package/dist/VendorDomesticWireDetailsPage-D_3mFJU8.js +53 -0
- package/dist/VendorFiling1099EditablePage-2YBDRTnW.js +842 -0
- package/dist/VendorFiling1099EditablePage-BY5HJ9_3.cjs +175 -0
- package/dist/VendorFirstReviewPage-CewbycV_.cjs +730 -0
- package/dist/VendorFirstReviewPage-Cmiz_hTN.js +2748 -0
- package/dist/VendorInternationalWireDetailsPage-BQIOu0mx.cjs +152 -0
- package/dist/VendorInternationalWireDetailsPage-a5b8GG8_.js +968 -0
- package/dist/VendorInternationalWireSwiftDetailsPage-CV6bc1ya.cjs +1 -0
- package/dist/VendorInternationalWireSwiftDetailsPage-EzHtnVp8.js +52 -0
- package/dist/VendorsAccountsSection-DgFb5om_.js +279 -0
- package/dist/VendorsAccountsSection-TTtGeuLk.cjs +68 -0
- package/dist/VerifyDevice-BdRkStE6.js +298 -0
- package/dist/VerifyDevice-DAcOEvdZ.cjs +112 -0
- package/dist/VideoPlayer-7J-DSzJz.cjs +77 -0
- package/dist/VideoPlayer-Bkc9I7wn.js +170 -0
- package/dist/VideoPopup-Bnm-RZPy.js +60 -0
- package/dist/VideoPopup-DHJyoudi.cjs +31 -0
- package/dist/WarningsDrawerPage-CMhPUsQj.js +228 -0
- package/dist/WarningsDrawerPage-Dyoiv8wY.cjs +92 -0
- package/dist/ZeniAccountDetailPage-BmsYy9pn.js +908 -0
- package/dist/ZeniAccountDetailPage-DgWS7ASs.cjs +300 -0
- package/dist/ZeniAccountListViewPage-BMazZ3mn.cjs +441 -0
- package/dist/ZeniAccountListViewPage-DLIKC0Hy.js +1078 -0
- package/dist/ZeniAccountNavBarPieces-CWLH30WK.js +89 -0
- package/dist/ZeniAccountNavBarPieces-EG2p8yno.cjs +14 -0
- package/dist/ZeniAccountPromoPage-D-If15qc.js +522 -0
- package/dist/ZeniAccountPromoPage-DseZ3KeX.cjs +184 -0
- package/dist/ZeniAccountSetupPage-DmKJkm6Z.cjs +36 -0
- package/dist/ZeniAccountSetupPage-V2OLBys7.js +309 -0
- package/dist/ZeniAvatar-CegQkxmX.js +34 -0
- package/dist/ZeniAvatar-Dvmb9Qej.cjs +13 -0
- package/dist/ZeniCopyright-D9NeyfUG.js +9 -0
- package/dist/ZeniCopyright-Df4uQcr7.cjs +1 -0
- package/dist/ZeniDatePicker-BC57HqMC.cjs +187 -0
- package/dist/ZeniDatePicker-WwAMD_Os.js +386 -0
- package/dist/ZeniTransferAmountSlider-Ct6knyFf.js +215 -0
- package/dist/ZeniTransferAmountSlider-DwnVa2vL.cjs +63 -0
- package/dist/analyticsHelper-BiKORp8r.cjs +1 -0
- package/dist/analyticsHelper-CIWzMmpB.js +65 -0
- package/dist/appLocale.d.ts +4 -0
- package/dist/calculateSize-BPF1b7N6.js +22 -0
- package/dist/calculateSize-D3HgyySf.cjs +1 -0
- package/dist/chartTypes-BK16u4aH.js +47 -0
- package/dist/chartTypes-DsrwMSrh.cjs +1 -0
- package/dist/cockpit.cjs.js +2 -2
- package/dist/cockpit.esm.js +15 -15
- package/dist/common-BR_IpK5t.js +22 -0
- package/dist/common-DMucC229.cjs +1 -0
- package/dist/commonDimensions-0YFQ5-p7.cjs +1 -0
- package/dist/commonDimensions-C89FxP2E.js +13 -0
- package/dist/detailCommon-BiJW2kFD.cjs +38 -0
- package/dist/detailCommon-ClVI0tmF.js +124 -0
- package/dist/downloadPdf-DQCVx_2n.cjs +1 -0
- package/dist/downloadPdf-fjJt0F4y.js +32 -0
- package/dist/index-DHSetD4K.cjs +21200 -0
- package/dist/index-De4lhuEW.js +92404 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mapLoadingInProgressToTreeNode-BBoP6A52.js +25 -0
- package/dist/mapLoadingInProgressToTreeNode-DcH22R_N.cjs +1 -0
- package/dist/mapSectionWithAcOnlyToTreeNode-BDdiHxpJ.js +387 -0
- package/dist/mapSectionWithAcOnlyToTreeNode-BmxN9S36.cjs +1 -0
- package/dist/mapSpacerToTreeNode-CkCDNoeq.js +25 -0
- package/dist/mapSpacerToTreeNode-cEoiLwm0.cjs +1 -0
- package/dist/mapTimeframeBalancesToTreeNode-BVh2oTyz.js +24 -0
- package/dist/mapTimeframeBalancesToTreeNode-ByTtfguH.cjs +1 -0
- package/dist/mapTimeframeBalancesToTreeNode-C6ny81OB.cjs +1 -0
- package/dist/mapTimeframeBalancesToTreeNode-CQT-gk9M.js +24 -0
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-BaDZHVKC.js +32 -0
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-QVuFdzSP.cjs +1 -0
- package/dist/sectionColor-CXbZ3urT.cjs +1 -0
- package/dist/sectionColor-DzMXfaF2.js +32 -0
- package/dist/strings/strings-en-in.d.ts +4 -0
- package/dist/strings/strings.d.ts +4 -0
- package/dist/toCOABalancesWithID-B02CHf3E.js +8 -0
- package/dist/toCOABalancesWithID-CH-9k5Xa.cjs +1 -0
- package/dist/toChartData-CPCKJNrA.js +76 -0
- package/dist/toChartData-DBdfsMfK.cjs +1 -0
- package/dist/uploadAttachment-B_7I6EK5.js +952 -0
- package/dist/uploadAttachment-CgcI09wH.cjs +286 -0
- package/dist/zeniDatePicker.helpers-B0FocrGK.js +14 -0
- package/dist/zeniDatePicker.helpers-DmyVDuXa.cjs +1 -0
- package/package.json +1 -1
- package/dist/ACHDetailsPage-BZ460o0e.cjs +0 -21
- package/dist/ACHDetailsPage-C2CeBBx-.js +0 -160
- package/dist/AIPerformancePage-CNtEHhST.cjs +0 -539
- package/dist/AIPerformancePage-dAkQ2-Pd.js +0 -1345
- package/dist/AccountInfoPage-B-zrMcJf.js +0 -78
- package/dist/AccountInfoPage-BCz8Qz0s.cjs +0 -18
- package/dist/AccountInfoPageContent-C0RUvp2J.cjs +0 -149
- package/dist/AccountInfoPageContent-C6iRwz6I.js +0 -428
- package/dist/AccountLockedInfoModal-C6qEa-Ec.cjs +0 -59
- package/dist/AccountLockedInfoModal-D9AiCduN.js +0 -125
- package/dist/AccountReconDetailsDrawerPage-BYg-npMb.cjs +0 -239
- package/dist/AccountReconDetailsDrawerPage-CA4xyZdm.js +0 -689
- package/dist/AccountRow-B28-CTzA.cjs +0 -298
- package/dist/AccountRow-C0T_wYCA.js +0 -1014
- package/dist/AccountsPromoCardStack-BJoI-n5t.cjs +0 -207
- package/dist/AccountsPromoCardStack-D2w73qPm.js +0 -664
- package/dist/AddAddressForCardDrawer-BI-0ypfC.cjs +0 -6
- package/dist/AddAddressForCardDrawer-DcuyjPyb.js +0 -82
- package/dist/AddToWalletPage-aE6VR2QH.cjs +0 -344
- package/dist/AddToWalletPage-qGIgBJOf.js +0 -642
- package/dist/AgingReportsPage-B8JvsIkW.js +0 -827
- package/dist/AgingReportsPage-DcKv2NG9.cjs +0 -79
- package/dist/AllUserItems-BPmrzxDi.cjs +0 -192
- package/dist/AllUserItems-DI_SGWc0.js +0 -979
- package/dist/ApAgingDetailPage-C_TgK08j.js +0 -239
- package/dist/ApAgingDetailPage-DIdXAxKE.cjs +0 -46
- package/dist/AppBasePage-BPrX-hAg.cjs +0 -71
- package/dist/AppBasePage-BSQbO_Gd.js +0 -120
- package/dist/AppDrawerContent-DUWFmopf.cjs +0 -91
- package/dist/AppDrawerContent-DsJgbEPl.js +0 -379
- package/dist/ApprovalRulesSettingsPage-DKObd6p6.cjs +0 -47
- package/dist/ApprovalRulesSettingsPage-gY7Bt-8C.js +0 -145
- package/dist/ArAgingChart-BjzSyNNO.cjs +0 -24
- package/dist/ArAgingChart-C4a1KSaD.js +0 -530
- package/dist/ArAgingDetailPage-D8I9VxCX.cjs +0 -46
- package/dist/ArAgingDetailPage-DplAIXAe.js +0 -243
- package/dist/AttachmentView-BI3M5jTY.cjs +0 -101
- package/dist/AttachmentView-ELR2rAhi.js +0 -260
- package/dist/BankAccountSection-CUEcWOPO.js +0 -398
- package/dist/BankAccountSection-DLgqEH1Z.cjs +0 -79
- package/dist/BankAccountWarningSection-BLMWE4__.js +0 -110
- package/dist/BankAccountWarningSection-KvZva52q.cjs +0 -51
- package/dist/BankConnectionsSettingsPage-CFZPunG9.js +0 -1694
- package/dist/BankConnectionsSettingsPage-Ca2pBKfv.cjs +0 -425
- package/dist/BillDetailPage-BpNTPNyx.js +0 -1806
- package/dist/BillDetailPage-Dujhe7mM.cjs +0 -266
- package/dist/BillPayApprovalRuleDetailPage-Ceqek6vT.cjs +0 -27
- package/dist/BillPayApprovalRuleDetailPage-CrylOK_k.js +0 -266
- package/dist/BillPayApprovalRulesPage-C5wl8pOv.js +0 -431
- package/dist/BillPayApprovalRulesPage-Ck7Yf1pA.cjs +0 -241
- package/dist/BillPayPromoPage-Bv5EMYbg.cjs +0 -84
- package/dist/BillPayPromoPage-lKMeuiR5.js +0 -292
- package/dist/BillPaySetUpPage-CTyRe-vF.cjs +0 -42
- package/dist/BillPaySetUpPage-Cjl9SzAg.js +0 -408
- package/dist/BillingSettingsPage-B_3HAmJY.cjs +0 -44
- package/dist/BillingSettingsPage-DKZd3n75.js +0 -336
- package/dist/BillsBulkReviewDrawerPage-DDQxcTmv.js +0 -216
- package/dist/BillsBulkReviewDrawerPage-wUr5TZq4.cjs +0 -1
- package/dist/BoxItem-BVzkuYFq.js +0 -118
- package/dist/BoxItem-CX8mQW6h.cjs +0 -53
- package/dist/BusinessVerificationPage-B2ibHGBm.cjs +0 -138
- package/dist/BusinessVerificationPage-BZLeXO5x.js +0 -716
- package/dist/BusyIndication-CsyBYJPC.js +0 -19
- package/dist/BusyIndication-DGF5d74O.cjs +0 -9
- package/dist/CardNumberSubText-BodR0y4J.js +0 -59
- package/dist/CardNumberSubText-DHRv5oGK.cjs +0 -21
- package/dist/CashbackDetailPage-1FhjvhSS.js +0 -825
- package/dist/CashbackDetailPage-MWLvfTvy.cjs +0 -285
- package/dist/ChargeCardDetailPage-Bfg9stCk.cjs +0 -1462
- package/dist/ChargeCardDetailPage-VONct0gh.js +0 -5454
- package/dist/ChargeCardListPage-DrkYwC6H.cjs +0 -412
- package/dist/ChargeCardListPage-xv3ZA_Ko.js +0 -1797
- package/dist/ChargeCardListTable-7B4CZeoC.cjs +0 -711
- package/dist/ChargeCardListTable-C1bo43ei.js +0 -2901
- package/dist/ChargeCardPromoPage-BLi1FNUA.cjs +0 -222
- package/dist/ChargeCardPromoPage-BrrKYg8Z.js +0 -816
- package/dist/ChargeCardSetupPage-C4QHiIBn.cjs +0 -36
- package/dist/ChargeCardSetupPage-DvwHIBL7.js +0 -359
- package/dist/ChargeCardStatementsPage-bNxmGaXV.cjs +0 -60
- package/dist/ChargeCardStatementsPage-cb2OWyHT.js +0 -243
- package/dist/CheckDepositDrawerPage-D82ridxA.cjs +0 -206
- package/dist/CheckDepositDrawerPage-XzYl6FFM.js +0 -726
- package/dist/CollapsableReportTable-BpJZ4hcC.cjs +0 -2844
- package/dist/CollapsableReportTable-D815Q4zZ.js +0 -11659
- package/dist/CompanyOfficerDetailsSection-CUdWNGUM.js +0 -1633
- package/dist/CompanyOfficerDetailsSection-Cy-7Fvey.cjs +0 -260
- package/dist/CompanyPassportCard-Cfm26XwI.cjs +0 -42
- package/dist/CompanyPassportCard-kTFMfAud.js +0 -146
- package/dist/CompanyPassportPage-Dtj6qf3i.cjs +0 -574
- package/dist/CompanyPassportPage-DwPDYETd.js +0 -2160
- package/dist/CompleteProfile-D9m5ZyN3.js +0 -301
- package/dist/CompleteProfile-DEJNkwX3.cjs +0 -52
- package/dist/ConfettiBurst-TCb7Eka6.js +0 -37
- package/dist/ConfettiBurst-q0dEPC2g.cjs +0 -1
- package/dist/CreateOrEditVendorPage-D2hQPVJ-.cjs +0 -281
- package/dist/CreateOrEditVendorPage-kOS27AeD.js +0 -763
- package/dist/CreditCardPaymentDrawerPage-Dx2DxQsQ.js +0 -1170
- package/dist/CreditCardPaymentDrawerPage-nFF6mX3W.cjs +0 -224
- package/dist/CurrencySelectField-B3Byj9kI.js +0 -348
- package/dist/CurrencySelectField-C8SZ46qR.cjs +0 -139
- package/dist/CustomerOnboardingActivationPage-B0hcdNxV.js +0 -143
- package/dist/CustomerOnboardingActivationPage-C1J3P3K5.cjs +0 -88
- package/dist/CustomerOnboardingContainerPage-eGZw6nLP.js +0 -7
- package/dist/CustomerOnboardingContainerPage-eLVxGsZQ.cjs +0 -1
- package/dist/CustomerOnboardingDetailPageSkeleton-Cb_WlX41.js +0 -434
- package/dist/CustomerOnboardingDetailPageSkeleton-YkXpLnxJ.cjs +0 -162
- package/dist/CustomerOnboardingNoStepsPage-B0I0D0Yl.js +0 -424
- package/dist/CustomerOnboardingNoStepsPage-DiRs_2Ix.cjs +0 -66
- package/dist/CustomerOnboardingPage-B8pfIbZr.cjs +0 -107
- package/dist/CustomerOnboardingPage-BPZVrXst.js +0 -1094
- package/dist/CustomerOnboardingProductSuitePage-DNSN8lN-.cjs +0 -202
- package/dist/CustomerOnboardingProductSuitePage-DhxFMDMI.js +0 -348
- package/dist/Dashboard-BaB4YgDw.js +0 -5540
- package/dist/Dashboard-C3qmsKW0.cjs +0 -1551
- package/dist/DashboardReportPage-CKmhY9yj.cjs +0 -371
- package/dist/DashboardReportPage-Cfz9CKll.js +0 -2536
- package/dist/DashboardSidebarBackgroundAnimation-B7kd1Hln.js +0 -53
- package/dist/DashboardSidebarBackgroundAnimation-CWmOXh9I.cjs +0 -12
- package/dist/DepositAccTransactionItem-DY-jbfLu.js +0 -112
- package/dist/DepositAccTransactionItem-DvjVJFCx.cjs +0 -76
- package/dist/DepositAccTransactionListPage-BbIEMtID.cjs +0 -66
- package/dist/DepositAccTransactionListPage-CDYDdhBH.js +0 -152
- package/dist/DomesticWireDetailsPage-Bo4tzYuC.js +0 -189
- package/dist/DomesticWireDetailsPage-D7jCZHU2.cjs +0 -21
- package/dist/DownloadOverlay-B00Jz90K.js +0 -2148
- package/dist/DownloadOverlay-KeOZbfQ8.cjs +0 -439
- package/dist/DrawerPage-CIQ0jEKx.js +0 -208
- package/dist/DrawerPage-DPnLLuHC.cjs +0 -118
- package/dist/EditPeoplePage-C9urawWu.js +0 -392
- package/dist/EditPeoplePage-Cmmgf8SA.cjs +0 -55
- package/dist/EditReimbursementDetailPage-BsISjbXe.cjs +0 -865
- package/dist/EditReimbursementDetailPage-DPmIh_uq.js +0 -4531
- package/dist/EmptySearchResults-BsFN1BVu.js +0 -70
- package/dist/EmptySearchResults-ClfxIMH8.cjs +0 -46
- package/dist/EntityDetailPage-B6lIDB84.js +0 -82
- package/dist/EntityDetailPage-CAqf8p2M.cjs +0 -18
- package/dist/EntitySummarySection-B0ITjfoA.cjs +0 -149
- package/dist/EntitySummarySection-BuntRvYc.js +0 -530
- package/dist/ExpenseAutomationOverviewPage-BMlyyJKf.js +0 -807
- package/dist/ExpenseAutomationOverviewPage-C_nl8Y3c.cjs +0 -281
- package/dist/ExpenseAutomationPage-Ce2PMixM.cjs +0 -1650
- package/dist/ExpenseAutomationPage-DKrt-NRm.js +0 -11574
- package/dist/ExpressPayPage-BOmmCcsF.js +0 -1136
- package/dist/ExpressPayPage-DnmHSO5k.cjs +0 -168
- package/dist/FeaturePreviewPage-AwSEVKQV.cjs +0 -11
- package/dist/FeaturePreviewPage-YY-w-KAu.js +0 -114
- package/dist/FollowStepsSection-CE5ao4Zk.js +0 -1313
- package/dist/FollowStepsSection-CXsT3UyJ.cjs +0 -390
- package/dist/GlobalReviewListPage-CFRDU1x7.js +0 -1674
- package/dist/GlobalReviewListPage-Dp1jEPQT.cjs +0 -291
- package/dist/InformationCardStack-BeupO2ua.js +0 -219
- package/dist/InformationCardStack-D5fAqQMU.cjs +0 -31
- package/dist/InsightsCardStack-Cg03BOWq.js +0 -305
- package/dist/InsightsCardStack-lyaqUcVn.cjs +0 -79
- package/dist/InsightsSection-C1TGZK4P.js +0 -97
- package/dist/InsightsSection-CfAXhjQZ.cjs +0 -27
- package/dist/IntegrationsSettingsPage-BZSIZxn6.js +0 -136
- package/dist/IntegrationsSettingsPage-CKeQGvE7.cjs +0 -57
- package/dist/InternationalWireSwiftDetailsPage-DFbKRtaP.js +0 -753
- package/dist/InternationalWireSwiftDetailsPage-fpHA5RfO.cjs +0 -171
- package/dist/InternationalWireVerificationPage-B8VRmrYg.cjs +0 -292
- package/dist/InternationalWireVerificationPage-XGIfBjgj.js +0 -877
- package/dist/InviteFormPage-BfXBfSCQ.js +0 -873
- package/dist/InviteFormPage-CzBKSaGW.cjs +0 -312
- package/dist/InvitePageListView-Bf7iFELZ.js +0 -1764
- package/dist/InvitePageListView-ckFr8pzq.cjs +0 -739
- package/dist/InvitePeoplePage-Cr8RhtUI.cjs +0 -12
- package/dist/InvitePeoplePage-DRy1T2zx.js +0 -286
- package/dist/InvoiceUploadSection-BnJvmK58.js +0 -465
- package/dist/InvoiceUploadSection-CPVOTNjT.cjs +0 -140
- package/dist/IssueChargeCardPage-C9_fG44Z.cjs +0 -532
- package/dist/IssueChargeCardPage-jeXLxL2W.js +0 -2880
- package/dist/LabeledAddressValue-DUQtRgYt.js +0 -115
- package/dist/LabeledAddressValue-Ds1uU_Se.cjs +0 -49
- package/dist/LabeledAddressValueField-DmYBrq-_.cjs +0 -45
- package/dist/LabeledAddressValueField-XhjcDi6Y.js +0 -130
- package/dist/LabeledControlledCheckBoxField-CJT9TWve.cjs +0 -16
- package/dist/LabeledControlledCheckBoxField-DLuBaU0w.js +0 -73
- package/dist/LabeledCreatableSingleSelectField-CdISQmAn.cjs +0 -204
- package/dist/LabeledCreatableSingleSelectField-uOEbO6QL.js +0 -515
- package/dist/LabeledDocumentField-CW3hGZnp.js +0 -147
- package/dist/LabeledDocumentField-RR6g8dUp.cjs +0 -41
- package/dist/LabeledDropDownFormattedTextField-Ba_UQmHq.js +0 -163
- package/dist/LabeledDropDownFormattedTextField-DTrEANYp.cjs +0 -59
- package/dist/LabeledEmailInputField-CSEGwFiq.js +0 -425
- package/dist/LabeledEmailInputField-CZOI9ttp.cjs +0 -182
- package/dist/LabeledItemWithButton-D71dxZZu.cjs +0 -21
- package/dist/LabeledItemWithButton-DooDwQjc.js +0 -74
- package/dist/LabeledNameField-BxWBg7d4.cjs +0 -141
- package/dist/LabeledNameField-PdLPakWg.js +0 -293
- package/dist/LabeledSingleSelectField--guZmgTH.js +0 -372
- package/dist/LabeledSingleSelectField-g2xptRKq.cjs +0 -136
- package/dist/LabeledSingleSelectWithoutClearableField-DTmg3P5i.js +0 -103
- package/dist/LabeledSingleSelectWithoutClearableField-GNomjaKw.cjs +0 -38
- package/dist/LabeledText-CjRhF_-Z.js +0 -103
- package/dist/LabeledText-D47gT_UQ.cjs +0 -42
- package/dist/LabeledUserSingleSelectWithSubtitlesField-CiFCQ-hB.cjs +0 -229
- package/dist/LabeledUserSingleSelectWithSubtitlesField-ViKeC5bK.js +0 -572
- package/dist/LabeledZeniRolesDropDownField-BExwZAbJ.cjs +0 -297
- package/dist/LabeledZeniRolesDropDownField-By2VvU4k.js +0 -975
- package/dist/LinkJETransactionPage-CU0wMpni.js +0 -406
- package/dist/LinkJETransactionPage-DLlfphRK.cjs +0 -98
- package/dist/LockCardPage-DPrH6_Ty.js +0 -2032
- package/dist/LockCardPage-Dhh_ixsq.cjs +0 -623
- package/dist/LowBalancePopup-CQl67yMA.js +0 -219
- package/dist/LowBalancePopup-DxrLTB7O.cjs +0 -34
- package/dist/MagicLinkACHDetailsPage-Bjl4Dhfe.cjs +0 -1
- package/dist/MagicLinkACHDetailsPage-DVSpY6Js.js +0 -39
- package/dist/MagicLinkDomesticWireDetailsPage-BAAx0bDj.cjs +0 -1
- package/dist/MagicLinkDomesticWireDetailsPage-DXExhIv3.js +0 -44
- package/dist/MagicLinkInternationalWireDetailsPage-CbPP2qYn.cjs +0 -1
- package/dist/MagicLinkInternationalWireDetailsPage-CcuPW6Na.js +0 -43
- package/dist/MagicLinkSuccessPage-CKpWv5W6.cjs +0 -31
- package/dist/MagicLinkSuccessPage-DsLywTLa.js +0 -59
- package/dist/MagicLinkTitleSection-ACtSS16T.cjs +0 -17
- package/dist/MagicLinkTitleSection-CZ7CLpj3.js +0 -40
- package/dist/MailingDetailsSection-BsABGCNK.cjs +0 -21
- package/dist/MailingDetailsSection-DtydGEjC.js +0 -74
- package/dist/MatchingOperatorDropdown-C1TIRqOu.js +0 -572
- package/dist/MatchingOperatorDropdown-CMFzpi35.cjs +0 -130
- package/dist/Menu-CrAYxg3V.cjs +0 -17
- package/dist/Menu-iIAwnB2d.js +0 -110
- package/dist/MoreMenuButton-BdM-PMgd.cjs +0 -167
- package/dist/MoreMenuButton-Dsvh8J53.js +0 -569
- package/dist/MyBankConnectionsSettingsPage-CdwXQRIJ.cjs +0 -110
- package/dist/MyBankConnectionsSettingsPage-DEvNG0dg.js +0 -297
- package/dist/MyPendingActivationChargeCardListPage-C-M8mYEV.cjs +0 -6
- package/dist/MyPendingActivationChargeCardListPage-CcnAT-bU.js +0 -168
- package/dist/MyProfileSettingsPage-BIkFqjXG.js +0 -641
- package/dist/MyProfileSettingsPage-BaR3dWbs.cjs +0 -85
- package/dist/NavBarWithPicker-DdA7uWkV.cjs +0 -30
- package/dist/NavBarWithPicker-DtMiNQbo.js +0 -106
- package/dist/NavigationArrow-B_YEliYp.cjs +0 -47
- package/dist/NavigationArrow-iXBhHtCd.js +0 -88
- package/dist/NavigationDots-B2XJYi7r.js +0 -44
- package/dist/NavigationDots-BxBMWzh2.cjs +0 -15
- package/dist/NewGlobalMerchantPage-Bd8K9rro.js +0 -543
- package/dist/NewGlobalMerchantPage-DFt6OLM7.cjs +0 -160
- package/dist/NoDataChart-2flS3On1.cjs +0 -26
- package/dist/NoDataChart-g1s7t17a.js +0 -58
- package/dist/NoDataTable-BpBCZD2g.cjs +0 -8
- package/dist/NoDataTable-CZL2RsEO.js +0 -27
- package/dist/NotFoundPage-DtWPP9Nw.js +0 -71
- package/dist/NotFoundPage-Sc9Atc3l.cjs +0 -46
- package/dist/NotificationSettingsPage-DHrUw8rV.js +0 -541
- package/dist/NotificationSettingsPage-YdTDwRGq.cjs +0 -163
- package/dist/NotificationsListConfig-Bgf4NE0c.cjs +0 -1
- package/dist/NotificationsListConfig-DpRgkfQu.js +0 -10
- package/dist/NotificationsPage-Cz47z2p0.js +0 -2664
- package/dist/NotificationsPage-D58yxaan.cjs +0 -685
- package/dist/OpExByVendorPage-BC4wewmt.cjs +0 -100
- package/dist/OpExByVendorPage-Bnoz6mT_.js +0 -1058
- package/dist/PandLWithForecastPage-BXdQGyLb.js +0 -563
- package/dist/PandLWithForecastPage-DUWZ1XHQ.cjs +0 -107
- package/dist/PaymentAccountSetupBillingAddressSection-0aBpMIkT.js +0 -623
- package/dist/PaymentAccountSetupBillingAddressSection-y0XoWaiD.cjs +0 -106
- package/dist/PeoplePage-CnKWCkuC.js +0 -1994
- package/dist/PeoplePage-eM5Zc7IP.cjs +0 -675
- package/dist/ProductsCarousel-BRGlDVak.js +0 -309
- package/dist/ProductsCarousel-CIY6l-Pv.cjs +0 -142
- package/dist/PromoBaseCards-B2QWYKd6.js +0 -356
- package/dist/PromoBaseCards-Dub2YvT5.cjs +0 -218
- package/dist/QBOConnectionDialog-CI7SWwPW.js +0 -115
- package/dist/QBOConnectionDialog-DbnupFhh.cjs +0 -51
- package/dist/QBOSetupSection-DC7WGVh5.js +0 -167
- package/dist/QBOSetupSection-DbPNJpeI.cjs +0 -79
- package/dist/ReimbursementApprovalRuleDetailPage-B_Uwh9m2.cjs +0 -32
- package/dist/ReimbursementApprovalRuleDetailPage-C8QgFHjc.js +0 -272
- package/dist/ReimbursementApprovalRulesPage-C7vmjYO8.js +0 -429
- package/dist/ReimbursementApprovalRulesPage-XrnwM9Qh.cjs +0 -243
- package/dist/ReimbursementDetailPage-6oxKwuYO.js +0 -1514
- package/dist/ReimbursementDetailPage-Vnu5ozZG.cjs +0 -314
- package/dist/ReimbursementPromoPage-BWh2g_VD.js +0 -363
- package/dist/ReimbursementPromoPage-pfyATpfa.cjs +0 -84
- package/dist/ReimbursementSetUpPage-CXfhAbpB.js +0 -663
- package/dist/ReimbursementSetUpPage-QO1lQgLA.cjs +0 -140
- package/dist/ReimbursementsBulkReviewDrawerPage-Bp6Q-wnG.js +0 -204
- package/dist/ReimbursementsBulkReviewDrawerPage-C8GprYJo.cjs +0 -1
- package/dist/ReloadCard-DkXPTfad.js +0 -137
- package/dist/ReloadCard-DpH2Lcci.cjs +0 -26
- package/dist/ReloadContainer-CPrPeatr.cjs +0 -596
- package/dist/ReloadContainer-_Z_v2JhE.js +0 -2165
- package/dist/ReportTableViewSelector-DDRMuSRj.js +0 -689
- package/dist/ReportTableViewSelector-XZHclxTM.cjs +0 -150
- package/dist/ReportsPage-BiWsBcBN.js +0 -1315
- package/dist/ReportsPage-C5p4OwUU.cjs +0 -121
- package/dist/RevenueChart-BGuyayAC.js +0 -2240
- package/dist/RevenueChart-yQlDFCnW.cjs +0 -280
- package/dist/ReviewDetailsPage-CS3Mz0u_.cjs +0 -290
- package/dist/ReviewDetailsPage-DKCGeFiL.js +0 -1073
- package/dist/ReviewOverlay-BU0wJZOc.js +0 -299
- package/dist/ReviewOverlay-CB0A6PQ9.cjs +0 -152
- package/dist/RoleWithToolTip-D_ma_IZw.js +0 -72
- package/dist/RoleWithToolTip-DbTvj0RC.cjs +0 -22
- package/dist/ScheduleDetailsFixedAssetsPage-CWPJdu9I.js +0 -806
- package/dist/ScheduleDetailsFixedAssetsPage-Co_U6tNu.cjs +0 -37
- package/dist/ScheduleDetailsPage-B9ll0-aV.js +0 -726
- package/dist/ScheduleDetailsPage-D8IWuRhJ.cjs +0 -37
- package/dist/ScheduleSequenceTable-C72nfCjX.cjs +0 -324
- package/dist/ScheduleSequenceTable-CcLCOyMd.js +0 -1261
- package/dist/SetUpAccountSection-C2xDQ8Cl.cjs +0 -378
- package/dist/SetUpAccountSection-D-2V_068.js +0 -1469
- package/dist/SignIn-BC3nYAzF.cjs +0 -448
- package/dist/SignIn-DxIt6sBE.js +0 -1075
- package/dist/SpendManagementListViewPage-DsZD1PFZ.js +0 -631
- package/dist/SpendManagementListViewPage-eYlDiFGJ.cjs +0 -122
- package/dist/SpendManagementPerTabPage-BIgapYDM.js +0 -2903
- package/dist/SpendManagementPerTabPage-PYmb95eJ.cjs +0 -785
- package/dist/SpendManagementSection-C1u09bWA.js +0 -1043
- package/dist/SpendManagementSection-VO315kwP.cjs +0 -230
- package/dist/StatementItem-DPT_B_HE.cjs +0 -31
- package/dist/StatementItem-Zj0u5-VZ.js +0 -81
- package/dist/StatementsPage-BsJIa0Mx.js +0 -130
- package/dist/StatementsPage-D_xQ8Ezl.cjs +0 -58
- package/dist/StatusSwitcher-B9aFVFkL.cjs +0 -120
- package/dist/StatusSwitcher-DwKQCBy2.js +0 -319
- package/dist/SubTabSwitcher-BCDcE80x.js +0 -113
- package/dist/SubTabSwitcher-dlo1C3ND.cjs +0 -58
- package/dist/SuccessAnimation-BKeDJIjj.js +0 -52
- package/dist/SuccessAnimation-m36wj6br.cjs +0 -13
- package/dist/SummaryCard-Ru0lPj1W.cjs +0 -1
- package/dist/SummaryCard-wHOcQTk8.js +0 -25
- package/dist/TaskDetailPage-BShEq64o.js +0 -2533
- package/dist/TaskDetailPage-CizAraQf.cjs +0 -775
- package/dist/TaskListRow-BCPQOyoP.cjs +0 -556
- package/dist/TaskListRow-M2R8VYJb.js +0 -1950
- package/dist/TaskManagementPage-BhSOkkiQ.cjs +0 -508
- package/dist/TaskManagementPage-iuOmcGzW.js +0 -1935
- package/dist/TimeRangeSwitcher-DSICVfrc.cjs +0 -64
- package/dist/TimeRangeSwitcher-tgGmC0yL.js +0 -265
- package/dist/TimeframeSwitcher-Cvbhu9uo.cjs +0 -31
- package/dist/TimeframeSwitcher-D9dH7pPc.js +0 -103
- package/dist/TimeframeSwitcherWithToggle-BEpKaiil.cjs +0 -31
- package/dist/TimeframeSwitcherWithToggle-D_o1DUM2.js +0 -157
- package/dist/TopExCard-B_OG-Q7h.js +0 -569
- package/dist/TopExCard-BcR8o3D6.cjs +0 -38
- package/dist/TopExDetailPage-BNkhedqt.js +0 -318
- package/dist/TopExDetailPage-Bu3RGUh9.cjs +0 -132
- package/dist/TransactionDetailPage-DFrFxrcZ.cjs +0 -912
- package/dist/TransactionDetailPage-eBuaYPcO.js +0 -5238
- package/dist/TransactionList-CIasxOEj.cjs +0 -147
- package/dist/TransactionList-CNq9Fxgz.js +0 -558
- package/dist/TransactionListBig-DnxRWT0W.js +0 -658
- package/dist/TransactionListBig-l_KSDjS9.cjs +0 -284
- package/dist/TransactionListPage-C1OkQVEu.js +0 -145
- package/dist/TransactionListPage-Dt0m9GFD.cjs +0 -35
- package/dist/TransactionVendorDetailPage-BZp47jJT.js +0 -425
- package/dist/TransactionVendorDetailPage-CUIXLam5.cjs +0 -80
- package/dist/TransferDrawerPage-Bn6U8xnt.js +0 -1436
- package/dist/TransferDrawerPage-CT2uGYfr.cjs +0 -362
- package/dist/TreasuryOverviewPage-BbgfnpLR.cjs +0 -708
- package/dist/TreasuryOverviewPage-Db-XkYIX.js +0 -1890
- package/dist/TreasuryPromoPage-D2-i-Unc.cjs +0 -505
- package/dist/TreasuryPromoPage-sRRsMBt5.js +0 -1123
- package/dist/TreasuryStatementsPage-D4LMjHLj.cjs +0 -58
- package/dist/TreasuryStatementsPage-DFK8GihV.js +0 -131
- package/dist/TreasuryTaxLetterPage-B88LdJke.js +0 -131
- package/dist/TreasuryTaxLetterPage-CH2Fhtvw.cjs +0 -58
- package/dist/TrendChart-BeUIq4q5.cjs +0 -16
- package/dist/TrendChart-tFrOrhM-.js +0 -334
- package/dist/TrendWithTransactions-BFd2BRIb.cjs +0 -116
- package/dist/TrendWithTransactions-D8LaefwN.js +0 -346
- package/dist/UncategorizedAccountsMappingPage-Dg5rgVN0.js +0 -1159
- package/dist/UncategorizedAccountsMappingPage-gWUhODBc.cjs +0 -244
- package/dist/UnitIntegrationPage-Dn0lMbWe.cjs +0 -67
- package/dist/UnitIntegrationPage-QGcHBTor.js +0 -405
- package/dist/UploadAdditionalDocumentOverlay-VenWxF3P.js +0 -211
- package/dist/UploadAdditionalDocumentOverlay-bKGBNc9J.cjs +0 -38
- package/dist/Vendor2FAPopup-CfX92Spy.cjs +0 -1
- package/dist/Vendor2FAPopup-Cy3VIXmg.js +0 -69
- package/dist/VendorACHDetailsPage-CLfcCkN7.js +0 -43
- package/dist/VendorACHDetailsPage-CujExOxP.cjs +0 -1
- package/dist/VendorDetailPage-C6TkWvln.js +0 -1236
- package/dist/VendorDetailPage-pX1VGWD2.cjs +0 -257
- package/dist/VendorDomesticWireDetailsPage-yyH_34LS.js +0 -53
- package/dist/VendorDomesticWireDetailsPage-zDo7gFU0.cjs +0 -1
- package/dist/VendorFiling1099EditablePage-CX4cw28O.js +0 -842
- package/dist/VendorFiling1099EditablePage-zyu5yXzU.cjs +0 -175
- package/dist/VendorFirstReviewPage-BY82nY0P.cjs +0 -730
- package/dist/VendorFirstReviewPage-DXiw0ArN.js +0 -2748
- package/dist/VendorInternationalWireDetailsPage-bg34exm9.cjs +0 -152
- package/dist/VendorInternationalWireDetailsPage-ig2b1QCG.js +0 -968
- package/dist/VendorInternationalWireSwiftDetailsPage-CAH5oLc4.cjs +0 -1
- package/dist/VendorInternationalWireSwiftDetailsPage-DplJcn9q.js +0 -52
- package/dist/VendorsAccountsSection-CAlMPFeB.cjs +0 -68
- package/dist/VendorsAccountsSection-Ca_QZZsw.js +0 -279
- package/dist/VerifyDevice-BdU-_wSq.js +0 -298
- package/dist/VerifyDevice-CDz_GP95.cjs +0 -112
- package/dist/VideoPlayer-KbSpL4WA.js +0 -170
- package/dist/VideoPlayer-MaaAYgjC.cjs +0 -77
- package/dist/VideoPopup-D_KiaHeY.cjs +0 -31
- package/dist/VideoPopup-rFHZRIjJ.js +0 -60
- package/dist/WarningsDrawerPage-CIeLUshI.cjs +0 -92
- package/dist/WarningsDrawerPage-h54_kyDo.js +0 -228
- package/dist/ZeniAccountDetailPage-D6YVwgj0.cjs +0 -300
- package/dist/ZeniAccountDetailPage-DHc_KhYI.js +0 -908
- package/dist/ZeniAccountListViewPage-BQYZ3rSn.js +0 -1078
- package/dist/ZeniAccountListViewPage-DfGyahns.cjs +0 -441
- package/dist/ZeniAccountNavBarPieces-Bt5Xfm_l.js +0 -89
- package/dist/ZeniAccountNavBarPieces-sXVt1SZp.cjs +0 -14
- package/dist/ZeniAccountPromoPage-B37YC0FG.js +0 -522
- package/dist/ZeniAccountPromoPage-CIOcnyCo.cjs +0 -184
- package/dist/ZeniAccountSetupPage-BsQI7yYV.js +0 -309
- package/dist/ZeniAccountSetupPage-GXlXuVwY.cjs +0 -36
- package/dist/ZeniAvatar-CLwl0ADq.cjs +0 -13
- package/dist/ZeniAvatar-Cn-GL-GL.js +0 -34
- package/dist/ZeniCopyright-B7URM3jD.js +0 -9
- package/dist/ZeniCopyright-CsE-pgtB.cjs +0 -1
- package/dist/ZeniDatePicker-BYzcklpM.cjs +0 -187
- package/dist/ZeniDatePicker-DvKM4otn.js +0 -386
- package/dist/ZeniTransferAmountSlider-C9U7bRD7.cjs +0 -63
- package/dist/ZeniTransferAmountSlider-DAUlLWxR.js +0 -215
- package/dist/analyticsHelper-BC6gM9mY.js +0 -65
- package/dist/analyticsHelper-CSantQg2.cjs +0 -1
- package/dist/calculateSize-BzRtMlAv.cjs +0 -1
- package/dist/calculateSize-aQN0bHsy.js +0 -22
- package/dist/chartTypes-CFQRSp7P.cjs +0 -1
- package/dist/chartTypes-DSzSznOO.js +0 -47
- package/dist/common-BZYIkSpG.js +0 -22
- package/dist/common-Ccjw-xIO.cjs +0 -1
- package/dist/commonDimensions-BHIf5EV_.js +0 -13
- package/dist/commonDimensions-NSprtTYG.cjs +0 -1
- package/dist/detailCommon-BTDZZrKp.cjs +0 -38
- package/dist/detailCommon-Bu8STI8J.js +0 -124
- package/dist/downloadPdf-BY0Ja0lK.cjs +0 -1
- package/dist/downloadPdf-Bp5BmczQ.js +0 -32
- package/dist/index-CDBWihyC.cjs +0 -21200
- package/dist/index-HuMzFv1o.js +0 -92386
- package/dist/mapLoadingInProgressToTreeNode-BSbZI1Y9.js +0 -25
- package/dist/mapLoadingInProgressToTreeNode-BUAs4_YN.cjs +0 -1
- package/dist/mapSectionWithAcOnlyToTreeNode-BXK2HQzp.js +0 -387
- package/dist/mapSectionWithAcOnlyToTreeNode-C-AUZq-3.cjs +0 -1
- package/dist/mapSpacerToTreeNode-CKbT0JZL.js +0 -25
- package/dist/mapSpacerToTreeNode-DP0SIjZm.cjs +0 -1
- package/dist/mapTimeframeBalancesToTreeNode-6jYiywqc.js +0 -24
- package/dist/mapTimeframeBalancesToTreeNode-C6kldhnA.cjs +0 -1
- package/dist/mapTimeframeBalancesToTreeNode-CqrdqZgo.js +0 -24
- package/dist/mapTimeframeBalancesToTreeNode-DvIOKxW6.cjs +0 -1
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-BwKgwc5K.js +0 -32
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-DhfQWZQV.cjs +0 -1
- package/dist/sectionColor-COYw_sBK.cjs +0 -1
- package/dist/sectionColor-D5mSiicX.js +0 -32
- package/dist/toCOABalancesWithID-BqwwVVM3.js +0 -8
- package/dist/toCOABalancesWithID-CWEFl8ot.cjs +0 -1
- package/dist/toChartData-BrBeiHBz.js +0 -76
- package/dist/toChartData-D5mJ_qdq.cjs +0 -1
- package/dist/uploadAttachment-BiN5rzZ1.cjs +0 -286
- package/dist/uploadAttachment-NeaVu-4A.js +0 -952
- package/dist/zeniDatePicker.helpers-BkFDtUlK.cjs +0 -1
- package/dist/zeniDatePicker.helpers-DXQH-ANL.js +0 -14
|
@@ -1,1650 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./vendor-.pnpm-D0ILHvHB.cjs"),m=require("react"),i=require("@emotion/styled"),H=require("@zeniai/client-epic-state"),t=require("./index-CDBWihyC.cjs"),Be=require("@emotion/react"),vo=require("./BusyIndication-DGF5d74O.cjs"),bo=require("./common-Ccjw-xIO.cjs"),wo=require("react-plaid-link"),je=require("./ReloadContainer-CPrPeatr.cjs"),Ae=require("./CollapsableReportTable-BpJZ4hcC.cjs"),ln=require("./AccountRow-B28-CTzA.cjs"),Js=require("./mapTimeframeBalancesToTreeNode-C6kldhnA.cjs"),qn=require("./mapLoadingInProgressToTreeNode-BUAs4_YN.cjs"),Io=require("./VendorsAccountsSection-CAlMPFeB.cjs"),To=require("./SuccessAnimation-m36wj6br.cjs"),Ht=require("./uploadAttachment-BiN5rzZ1.cjs");function ko(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=ko(m),{common:{navBar:{back:$o},texts:{refresh:Lo,close:Ao,copy:Oo,copied:Do,open:_o}},expenseAutomation:{common:{numbers:{maximumCount:Bo}}}}=t.appLocale.getLocalizedStrings(),Mo=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
|
-
`,No=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
|
-
`,Po=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
|
-
`,Fo=i.div`
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
align-items: center;
|
|
31
|
-
padding-left: ${e=>Gn.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
|
|
32
|
-
padding-right: ${e=>Gn.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
|
|
33
|
-
`,zo=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
|
-
`,Ho=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
|
-
`,Wo=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
|
-
`,Vo=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
|
-
`,qo=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
|
-
`,Uo=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
|
-
`,Go=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?Be.css`
|
|
78
|
-
${Ko} 2s linear infinite;
|
|
79
|
-
`:"none"};
|
|
80
|
-
&:hover {
|
|
81
|
-
color: ${e=>e.theme.colors.primary};
|
|
82
|
-
}
|
|
83
|
-
`,Ko=Be.keyframes`
|
|
84
|
-
0% {
|
|
85
|
-
transform: rotate(0deg);
|
|
86
|
-
}
|
|
87
|
-
100% {
|
|
88
|
-
transform: rotate(360deg);
|
|
89
|
-
}
|
|
90
|
-
`,Jo=i.div`
|
|
91
|
-
padding-top: ${t.Space.sp0};
|
|
92
|
-
padding-bottom: ${t.Space.sp0};
|
|
93
|
-
`,Un=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
|
-
`,Yo=i.div`
|
|
102
|
-
display: flex;
|
|
103
|
-
`,Zo=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
|
-
`,Xo=i.div`
|
|
112
|
-
display: flex;
|
|
113
|
-
height: ${t.Space.sp4};
|
|
114
|
-
`,Qo=i.div`
|
|
115
|
-
text-align: center;
|
|
116
|
-
display: flex;
|
|
117
|
-
align-items: center;
|
|
118
|
-
justify-content: center;
|
|
119
|
-
flex-wrap: wrap;
|
|
120
|
-
`,ei=i.div`
|
|
121
|
-
display: flex;
|
|
122
|
-
flex-direction: column;
|
|
123
|
-
`,ti=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
|
-
`,qt=i.span`
|
|
131
|
-
font-weight: ${t.FontWeight.regular};
|
|
132
|
-
color: ${e=>e.theme.colors.primary};
|
|
133
|
-
`,ni=i.span`
|
|
134
|
-
font-weight: ${t.FontWeight.medium};
|
|
135
|
-
color: ${e=>e.theme.colors.primary};
|
|
136
|
-
`,si=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
|
-
`,Gn={subSectionContainerLeftRightPadding:new t.ResponsiveSized(t.sp[3],t.sp[6],t.sp[8])},oi=({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:p,...u}=a,o={...u},{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(No,{isDisabled:r,onClick:e,"data-testid":t.generateDataTestId("comment-icon"),children:[n.jsxRuntimeExports.jsx(t.CommentsAndNotesCount,{count:x.length,isLoading:r}),n.jsxRuntimeExports.jsx(Mo,{})]})},ii=({headerData:e,refreshStatus:s,searchText:l,companyName:a,companyId:p,isZeniUser:u,onAllThreadsClick:o,onClose:c,onRefresh:r,onSearchTextChanged:x})=>{const d=()=>{s!=="In-Progress"&&r()};return n.jsxRuntimeExports.jsx(zo,{children:e.rightSection.map((h,f)=>{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:y=>{x(y)},downloadPresent:!1},f+h);case"refresh":return n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:Lo,style:{marginTop:"2px"},enterDelay:600,children:n.jsxRuntimeExports.jsx(Go,{onClick:d,$spinning:s==="In-Progress","data-testid":t.generateDataTestId("refresh-icon")})},f+h);case"comment":return u===!1?null:n.jsxRuntimeExports.jsx(oi,{companyId:p,companyName:a,onAllThreadsClick:o});case"close":default:return n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:Ao,enterDelay:600,style:{marginTop:"2px"},children:n.jsxRuntimeExports.jsx(qo,{onClick:c,"data-testid":t.generateDataTestId("close-icon")})},f+h)}})})},ri=({headerData:e,onBack:s})=>n.jsxRuntimeExports.jsx(Ho,{children:e.leftSection.map((l,a)=>{switch(l){case"back":default:return n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:$o,enterDelay:600,style:{marginTop:"-14px"},children:n.jsxRuntimeExports.jsx(Uo,{onClick:s,"data-testid":t.generateDataTestId("back-button")})},a+l)}})}),Kn=({text:e,linkText:s,windowSize:l,isCopied:a,onLinkClick:p})=>{if(s==null||!s)return n.jsxRuntimeExports.jsxs(qt,{windowSize:l,children:[e," "]});const u=e.indexOf(s);if(u===-1)return n.jsxRuntimeExports.jsxs(qt,{windowSize:l,children:[e," "]});const o=e.substring(0,u),c=e.substring(u+s.length);return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[o?n.jsxRuntimeExports.jsxs(qt,{windowSize:l,children:[o.trim()," "]}):null,n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"right",title:t.ZENI_EMAIL_PATTERN.test(s)?a?Do:Oo:_o,enterTouchDelay:600,children:n.jsxRuntimeExports.jsxs(si,{onClick:()=>p?.(s),"data-testid":t.generateDataTestId("pre-link"),children:[s,a?n.jsxRuntimeExports.jsx(Vo,{className:"success-icon"}):n.jsxRuntimeExports.jsx(Wo,{className:"copy-icon"})]})}),c?n.jsxRuntimeExports.jsxs(qt,{windowSize:l,children:[c," "]}):null]})},Jn=({subTitles:e})=>{const s=t.useWindowSizeContext(),[,l]=t.useCopyToClipboard(),[a,p]=m.useState(!1),u=m.useRef(null),o=m.useCallback(c=>{t.ZENI_EMAIL_PATTERN.test(c)?(l(c),p(!0),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{p(!1)},2e3)):window.open(c,"_blank","noopener,noreferrer")},[l]);return m.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]),n.jsxRuntimeExports.jsx(ei,{children:e.map((c,r)=>n.jsxRuntimeExports.jsxs(Qo,{children:[c.pre?n.jsxRuntimeExports.jsx(Kn,{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(ti,{}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{})}):null,c.bold?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:n.jsxRuntimeExports.jsxs(ni,{windowSize:s,children:[c.bold," "]})}):null,c.post?n.jsxRuntimeExports.jsx(Kn,{text:c.post,linkText:c.postLink,windowSize:s,isCopied:a,onLinkClick:o}):null]},r+c.bold+c.pre+c.post))})};function ai(e){const{headerData:s,currentTab:l,completionStatus:a,onUpdateTab:p,selectedReconAccountId:u,getTabCountAndFetchState:o,reconcileDetailPageFetchState:c,forceShowSubtitle:r,currentSelectedView:x,onReconTabUpdate:d,currentRecontab:h,navBarCustomElement:f,titleStyle:y={}}=e,j=o("autoCategorized")?.count??0,C=o("review")?.count??0,b=o("reconcile")?.count??0,g=s.tabs.length>0||s.subTitle.length>0,w=x==="transaction_categorization"&&l==="autoCategorized",_=x==="reconciliation"&&h==="review"&&u!=null,$=x==="reconciliation"&&h==="reconcile"&&u!=null,v=w?j>0:_?c==="In-Progress"?!0:C>0:$?c==="In-Progress"?!0:b>0:a!=="complete",R=n.useTheme(),I=t.useWindowSizeContext();let A=[];return s.tabs.length>0&&(A=s.tabs.map(q=>({label:q.label,id:q.id,countDetails:o(q.id)}))),n.jsxRuntimeExports.jsxs(Po,{children:[n.jsxRuntimeExports.jsx(t.NavBar,{title:s.title,subTitle:s.subText,titleTextStyles:{flex:"1 1 0px"},backgroundColor:R.colors.grey4,onBackClick:()=>null,titleStyle:y,ignoreScrollAction:x!=="month_end_insights",keepBackgroundOnScroll:x!=="month_end_insights",leftSideComponent:n.jsxRuntimeExports.jsx(ri,{...e}),rightSideComponent:n.jsxRuntimeExports.jsx(ii,{...e}),source:"NavBarWithHeader"}),f??null,n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:g===!0,children:n.jsxRuntimeExports.jsx(Fo,{windowSize:I,children:s.tabs.length>0?n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(Jo,{windowSize:I,children:n.jsxRuntimeExports.jsx(t.TabSwitcher,{allTabs:A,selectedTab:x==="transaction_categorization"?l??A[0].id:h??A[0].id,onTabChange:q=>{if(x==="transaction_categorization"){const T=H.toExpenseAutomationTransactionsTabKey(q.id);T!=null&&p(T)}else if(x==="reconciliation"){const T=H.toReconciliationTabsType(q.id);T!=null&&d(T)}},maximumCountLimit:Bo})}),n.jsxRuntimeExports.jsx(Zo,{windowSize:I}),n.jsxRuntimeExports.jsx(Xo,{}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:v===!0||r===!0,children:n.jsxRuntimeExports.jsx(Un,{windowSize:I,children:s.tabs.map((q,T)=>(x==="reconciliation"?q.id===h:q.id===l)?n.jsxRuntimeExports.jsx(Yo,{children:n.jsxRuntimeExports.jsx(Jn,{subTitles:q.subTitle})},T+q.id):null)})})]}):n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:v===!0||r===!0,children:n.jsxRuntimeExports.jsx(Un,{windowSize:I,children:n.jsxRuntimeExports.jsx(Jn,{subTitles:s.subTitle})})})})})]})}const ci=1;function li({name:e,checkBoxes:s,mode:l,isDisabled:a,style:p,labelStyle:u,labelCheckBoxStyle:o,checkBoxStyle:c,width:r,registerOptions:x,checkedIconColor:d,checkBoxIconStyle:h,checkBoxContainerStyle:f,draggable:y=!1,selectionLimit:j,infoIconContainerStyle:C,onDragStart:b,rowHeight:g=40,initialScrollOffSet:w,onScroll:_}){const $=t.useWindowSizeContext(),B=m.useRef(null),{control:v}=n.useFormContext(),R=s.find(T=>T.groupLabel),I=s.filter(T=>!T.groupLabel),A=[];for(const T of I)if(T.isException||A.push(T.value),j!=null&&A.length===j+1)break;const q=s.filter(T=>T.defaultChecked).map(T=>T.value);return n.jsxRuntimeExports.jsx(n.Controller,{control:v,name:e,rules:x,defaultValue:q,render:({field:{value:T,ref:J,onChange:D}})=>{const V=K=>{ui({event:K,value:T,allCheckBoxValues:A,groupLabelCheckBox:R,onChange:D})};return n.jsxRuntimeExports.jsxs(pi,{style:p,windowSize:$,children:[R&&n.jsxRuntimeExports.jsx(Mn,{checkBox:R,index:0,value:T,allCheckBoxValues:A,mode:l,name:e,checkBoxContainerStyle:f,checkBoxIconStyle:h,checkBoxStyle:c,labelCheckBoxStyle:o,labelStyle:u,width:r,draggable:y,groupLabelCheckBox:R,infoIconContainerStyle:C,checkedIconColor:d,isDisabled:a,selectionLimit:j,onDragStart:b,ref:J,onChangeHandler:V}),n.jsxRuntimeExports.jsx(mi,{children:n.jsxRuntimeExports.jsx(n.AutoSizer,{style:{height:"100%",width:"100%"},children:({height:K,width:U})=>n.jsxRuntimeExports.jsx(n.VariableSizeList,{ref:B,height:K,width:U,itemCount:I.length,itemSize:()=>g,estimatedItemSize:g,initialScrollOffset:w??0,onScroll:({scrollOffset:M})=>{_?.(M)},overscanCount:ci,itemKey:M=>I[M].value,itemData:{checkBoxes:I,value:T,allCheckBoxValues:A,mode:l,name:e,checkBoxContainerStyle:f,checkBoxIconStyle:h,checkBoxStyle:c,labelCheckBoxStyle:o,labelStyle:u,width:r,draggable:y,groupLabelCheckBox:R,infoIconContainerStyle:C,checkedIconColor:d,isDisabled:a,selectionLimit:j,onDragStart:b,ref:J,onChange:D,handleChangeEvent:V,rowHeight:g},children:di})})})]})}})}const di=({index:e,style:s,data:l})=>{const a=m.useRef(null),{checkBoxes:p,value:u,allCheckBoxValues:o,mode:c,name:r,checkBoxContainerStyle:x,checkBoxIconStyle:d,checkBoxStyle:h,labelCheckBoxStyle:f,labelStyle:y,width:j,draggable:C,groupLabelCheckBox:b,infoIconContainerStyle:g,checkedIconColor:w,isDisabled:_,selectionLimit:$,onDragStart:B,ref:v,handleChangeEvent:R}=l,I=p[e];return n.jsxRuntimeExports.jsx(yi,{style:{...s,width:"100%"},ref:a,children:n.jsxRuntimeExports.jsx(Mn,{checkBox:I,index:e,value:u,allCheckBoxValues:o,mode:c,name:r,checkBoxContainerStyle:x,checkBoxIconStyle:d,checkBoxStyle:h,labelCheckBoxStyle:f,labelStyle:y,width:j,draggable:C,groupLabelCheckBox:b,infoIconContainerStyle:g,checkedIconColor:w,isDisabled:_,selectionLimit:$,onDragStart:B,ref:v,onChangeHandler:R})})},Mn=m.forwardRef((e,s)=>{const{value:l,checkBox:a,groupLabelCheckBox:p,allCheckBoxValues:u,selectionLimit:o,mode:c,checkBoxStyle:r,labelCheckBoxStyle:x,isDisabled:d,draggable:h,checkBoxContainerStyle:f,infoIconContainerStyle:y,name:j,index:C,width:b,checkedIconColor:g,checkBoxIconStyle:w,labelStyle:_,onDragStart:$,onChangeHandler:B}=e,v=t.useWindowSizeContext(),R=T=>{typeof s=="function"?s(T):s&&(s.current=T)};let I=l.includes(a.value);const A=Array.from(new Set([...l,a.value]));p?.value===a.value&&l.length>0&&(o!=null?I=A.length===u.length||A.length===o+1:I=u.every(T=>A.includes(T)===!0));const q=()=>c==="off"||a.isException?v==="small"?{display:"none",...r}:{visibility:"hidden",...r}:a.groupLabel?u.length===1&&u[0]===p?.value?{visibility:"hidden",...x}:x:r;return n.jsxRuntimeExports.jsxs(hi,{mode:c,draggable:h===!0,onDragStart:T=>{$?.(T,a.value)},style:f,isDisabled:d,isSelected:I,exceptionMode:a.exceptionMode,children:[a.prefix?n.jsxRuntimeExports.jsx(xi,{className:"prefix-box",children:a.prefix}):null,a.isException?n.jsxRuntimeExports.jsx(gi,{style:y,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(ji,{}):n.jsxRuntimeExports.jsx(fi,{})})}):n.jsxRuntimeExports.jsx(t.StyledCheckBox,{name:`${j}.${a.value}`,checkBoxValue:a.value,value:I,checkedIconColor:g,isDisabled:d||!a.groupLabel&&!I&&o!=null&&A.length===o+1?"disabled":void 0,checkBoxStyle:q(),checkBoxIconStyle:w,ref:R,onChange:B}),typeof a.label=="string"&&a.label?n.jsxRuntimeExports.jsx(t.Label,{isDisabled:d,label:a.label,labelStyle:_,htmlFor:`${j}.${a.value}`,style:{display:"flex",flex:1,minHeight:t.Space.sp4,marginLeft:t.Space.sp2,width:b,backgroundColor:"inherit",..._}}):a.label]},`${a.value}_${C}`)});Mn.displayName="CheckBoxWithLabel";const ui=({event:e,value:s,allCheckBoxValues:l,groupLabelCheckBox:a,onChange:p})=>{const u=e.currentTarget.value,o=e.currentTarget.checked,c=a?.value,r=new Set(s);if(u===c){p(o?Array.from(new Set([c,...l])):[]);return}o?r.add(u):r.delete(u);const x=l.every(d=>r.has(d));c!=null&&(x&&!r.has(c)?r.add(c):!x&&r.has(c)&&r.delete(c)),p(Array.from(r))},pi=i.div`
|
|
155
|
-
display: flex;
|
|
156
|
-
flex-direction: column;
|
|
157
|
-
width: 100%;
|
|
158
|
-
height: 100%;
|
|
159
|
-
`,mi=i.div`
|
|
160
|
-
flex: 1;
|
|
161
|
-
overflow: hidden;
|
|
162
|
-
`,xi=i.div`
|
|
163
|
-
opacity: 0;
|
|
164
|
-
`,hi=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"&&Be.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"&&Be.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"&&Be.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"&&Be.css`
|
|
213
|
-
:hover {
|
|
214
|
-
.checkbox-alert {
|
|
215
|
-
opacity: 1;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
`}
|
|
219
|
-
|
|
220
|
-
${e=>e.exceptionMode==="checked_or_hover"&&Be.css`
|
|
221
|
-
.checkbox-alert {
|
|
222
|
-
opacity: 1;
|
|
223
|
-
}
|
|
224
|
-
`}
|
|
225
|
-
`,gi=i.div`
|
|
226
|
-
cursor: pointer;
|
|
227
|
-
`,ji=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
|
-
`,fi=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
|
-
`,yi=i.div`
|
|
240
|
-
width: 100%;
|
|
241
|
-
box-sizing: border-box;
|
|
242
|
-
`,Si=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})),Ri=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})),Ci=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})),Ei=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"})),vi=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
|
-
`,bi=i(Ri)`
|
|
251
|
-
width: 90px;
|
|
252
|
-
height: 90px;
|
|
253
|
-
`,wi=i(Ci)`
|
|
254
|
-
width: 90px;
|
|
255
|
-
height: 90px;
|
|
256
|
-
`,Ii=i(Si)`
|
|
257
|
-
width: 90px;
|
|
258
|
-
height: 90px;
|
|
259
|
-
`,Ti=i(Ei)`
|
|
260
|
-
width: 90px;
|
|
261
|
-
height: 90px;
|
|
262
|
-
`,ki=i.div`
|
|
263
|
-
display: flex;
|
|
264
|
-
align-items: center;
|
|
265
|
-
justify-content: center;
|
|
266
|
-
flex-direction: column;
|
|
267
|
-
`,$i=i(t.H6Regular)`
|
|
268
|
-
margin-top: ${t.Space.sp2};
|
|
269
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
270
|
-
`,Li=i(t.LargeRegular)`
|
|
271
|
-
color: ${e=>e.theme.colors.primary};
|
|
272
|
-
`,Ai=e=>{const{tab:s}=e;switch(s){case"transaction_categorization":return n.jsxRuntimeExports.jsx(bi,{});case"je_schedules":case"reconciliation":return n.jsxRuntimeExports.jsx(Ti,{});case"flux_analysis":return n.jsxRuntimeExports.jsx(Ii,{});case"missing_receipts":default:return n.jsxRuntimeExports.jsx(wi,{})}};function dt(e){const{title:s,subTitle:l}=e;return n.jsxRuntimeExports.jsx(vi,{children:n.jsxRuntimeExports.jsxs(ki,{children:[n.jsxRuntimeExports.jsx(Ai,{...e}),n.jsxRuntimeExports.jsx($i,{children:s}),n.jsxRuntimeExports.jsx(Li,{children:l})]})})}const{common:{headers:{transactions:Oi,jeSchedules:Di,fluxAnalysis:_i,missingReceipts:Bi,insights:Mi,reconciliation:Yn},strings:{empty:Et}},expenseAutomation:{transactions:{tabs:Zn,subTitles:{review:{item1:Ut,item2:Gt},autoCategorized:{item1:Kt,item2:Ni}},searchPlaceholder:Pi,allDoneText:Fi},jeSchedules:{subTitles:{item1:zi,item2:Hi},searchPlaceholder:Wi,allDoneText:Vi},missingReceipts:{subTitles:qi,searchPlaceholder:Ui,allDoneText:Gi},fluxAnalysis:{subTitles:{item1:Ki,item2:Ji},searchPlaceholder:Yi,emptyPageTexts:{youDidIt:Zi,allReviewed:Xi}},accountRecon:{review:{allDoneText:Xn},reconcile:{allDoneText:Qi},tabs:Qn,titles:{item1:er,item2:tr},subTitles:{review:{item1:nr,item2:Jt},reconcile:{item1:Yt,item2:sr}}}}}=t.appLocale.getLocalizedStrings(),Ne=(e,s,l,a,p)=>{switch(e){case"transaction_categorization":return{key:"transaction_categorization",title:Oi,subTitle:[],tabs:[{label:Zn.review,id:"review",subTitle:[{pre:Ut.pre,bold:Ut.bold,prefixIconName:Ut.prefixIconName,post:Ut.post},{pre:Gt.pre,bold:Gt.bold,prefixIconName:Gt.prefixIconName,post:Gt.post}]},{label:Zn.autoCategorized,id:"autoCategorized",subTitle:[{pre:Kt.pre,bold:Kt.bold,prefixIconName:Kt.prefixIconName,post:Kt.post.replace("#number",s!=null&&s!=0?s.toString():"")},Ni]}],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Pi,allDoneText:Fi};case"je_schedules":return{key:"je_schedules",title:Di,subTitle:[zi,Hi],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Wi,allDoneText:Vi};case"missing_receipts":return{key:"missing_receipts",title:Bi,subTitle:[qi],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Ui,allDoneText:Gi};case"flux_analysis":return{key:"flux_analysis",title:_i,subTitle:[Ki,Ji],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Yi,allDoneText:{title:Zi,subTitle:Xi}};case"month_end_insights":return{key:"month_end_insights",title:Mi,subTitle:[],tabs:[],rightSection:["comment","refresh","close"],leftSection:[],searchPlaceholder:Et,allDoneText:{title:Et,subTitle:Et}};case"reconciliation":return l==null?{key:"reconciliation",title:Yn,subTitle:[er,tr],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Et,allDoneText:{title:Et,subTitle:Et}}:{key:"reconciliation",title:a??Yn,subText:p??void 0,subTitle:[],tabs:[{label:Qn.review,id:"review",subTitle:[nr,{pre:Jt.pre,bold:Jt.bold,prefixIconName:Jt.prefixIconName,post:Jt.post}],allDoneText:Xn},{label:Qn.reconcile,id:"reconcile",subTitle:[{pre:Yt.pre,bold:Yt.bold,prefixIconName:Yt.prefixIconName,post:Yt.post},sr],allDoneText:Qi}],rightSection:["refresh"],leftSection:["back"],searchPlaceholder:Et,allDoneText:Xn}}},{common:{strings:{empty:or}},expenseAutomation:{accountRecon:{reconcile:{header:yt}}}}=t.appLocale.getLocalizedStrings(),ir={key:"date",value:yt.date,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginLeft:t.sp[4],marginRight:t.sp[3]}},rr={key:"clearedDate",value:yt.clearedDate,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3],display:"none"}},ar={key:"type",value:yt.type,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},cr={key:"payee",value:yt.payee,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},lr={key:"account",value:yt.account,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},dr={key:"transactionDirection",value:yt.direction,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},ur={key:"memo",value:yt.memo,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},pr={key:"amount",value:yt.amount,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},mr={key:"recommended",value:or,sortOrder:"ascending",width:new t.ResponsiveSized(1.25,1.25,1.25),customStyle:{marginRight:t.sp[4],marginLeft:t.sp[0]}},$e=[ir,rr,ar,cr,lr,dr,ur,pr,mr],xr=50,Pt={sortKey:"date",sortOrder:"descending"};function hr({sortConfig:e,onReconTabColumnSortConfigChanged:s}){const l=t.useWindowSizeContext(),[a,p]=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";p(c)},[e.sortKey,e.sortOrder]);const u=(c,r)=>{let x=r;e.sortKey===c&&(x=r==="ascending"?"descending":"ascending"),s(c,x)},o=c=>{u(c.key,c.sortOrder)};return n.jsxRuntimeExports.jsx(yr,{headerHeight:xr,children:a.map(c=>n.jsxRuntimeExports.jsx(jr,{columnWidth:c.width,windowSize:l,sortDataValue:e.sortKey,actualDataValue:c.key,style:c.customStyle,children:n.jsxRuntimeExports.jsxs(vr,{isVisible:c.key!=="recommended",children:[n.jsxRuntimeExports.jsx(fr,{"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(Sr,{sortConfig:e,headerData:c,children:n.jsxRuntimeExports.jsx(Rr,{})}),n.jsxRuntimeExports.jsx(Cr,{isVisible:e.sortKey===c.key&&(e.sortKey!==Pt.sortKey||e.sortOrder!==Pt.sortOrder),children:n.jsxRuntimeExports.jsx(Er,{"data-testid":t.generateDataTestId("reconcile-tab-list-reset-sort",Pt.sortKey),onClick:()=>s(Pt.sortKey,Pt.sortOrder)})})]})},c.key))})}const gr=m.memo(hr),jr=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
|
-
`,fr=i.div`
|
|
286
|
-
display: flex;
|
|
287
|
-
gap: 5px;
|
|
288
|
-
cursor: pointer;
|
|
289
|
-
`,yr=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
|
-
`,Sr=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
|
-
`,Rr=i(t.SvgArrowTailTop)`
|
|
307
|
-
width: ${t.Space.sp2};
|
|
308
|
-
height: ${t.Space.sp2};
|
|
309
|
-
`,Cr=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
|
-
`,Er=i(t.SvgCloseRound)`
|
|
319
|
-
width: 12px;
|
|
320
|
-
height: 12px;
|
|
321
|
-
`,vr=i.div`
|
|
322
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
323
|
-
`,br=54,wr=72,{common:{strings:{hyphen:dn}}}=t.appLocale.getLocalizedStrings(),{dateFormat:es}=t.appLocale.getLocalizedStrings();function Ir({selectedTransactionIds:e,transaction:s,transactionId:l}){const a=t.useWindowSizeContext(),p=n.useTheme(),[u,o]=m.useState(!1),c=e.includes(l),r=u||c;return n.jsxRuntimeExports.jsx(Tr,{id:l,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:n.jsxRuntimeExports.jsxs(kr,{isSelected:r,totalHeight:br,children:[n.jsxRuntimeExports.jsx(rt,{windowSize:a,responsiveWidth:$e[0].width,style:$e[0].customStyle,children:n.jsxRuntimeExports.jsx(vt,{isSelected:r,children:s.date.format(es.visual.MMMDCommaYYYYformat)})}),$e[1].customStyle.display!=="none"?n.jsxRuntimeExports.jsx(rt,{windowSize:a,responsiveWidth:$e[1].width,style:$e[1].customStyle,children:n.jsxRuntimeExports.jsx(vt,{isSelected:r,children:s.clearedDate!=null?s.clearedDate.format(es.visual.MMMDCommaYYYYformat):n.jsxRuntimeExports.jsx("span",{children:dn})})}):null,n.jsxRuntimeExports.jsx(rt,{windowSize:a,style:$e[2].customStyle,responsiveWidth:$e[2].width,children:n.jsxRuntimeExports.jsx(Ar,{isSelected:r,children:n.jsxRuntimeExports.jsx($r,{isSelected:r,children:t.getStringForTransactionType(s.type)})})}),n.jsxRuntimeExports.jsx(rt,{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?p.colors.primary:p.colors.hero}}):n.jsxRuntimeExports.jsx(vt,{isSelected:r,children:n.jsxRuntimeExports.jsx("span",{children:dn})})}),n.jsxRuntimeExports.jsx(rt,{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?p.colors.primary:p.colors.hero}}):n.jsxRuntimeExports.jsx(vt,{isSelected:r,children:n.jsxRuntimeExports.jsx("span",{children:dn})})}),n.jsxRuntimeExports.jsx(rt,{windowSize:a,style:$e[5].customStyle,responsiveWidth:$e[5].width,children:n.jsxRuntimeExports.jsx(vt,{isSelected:r,style:{textTransform:"capitalize"},children:s.transactionDirection})}),n.jsxRuntimeExports.jsx(rt,{windowSize:a,style:$e[6].customStyle,responsiveWidth:$e[6].width,children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:s.memo,itemTextStyle:{color:r?p.colors.primary:p.colors.hero}})}),n.jsxRuntimeExports.jsx(rt,{windowSize:a,style:$e[7].customStyle,responsiveWidth:$e[7].width,children:n.jsxRuntimeExports.jsx(vt,{isSelected:r,children:t.amountToString("0,0.[00]",s.amount)})}),n.jsxRuntimeExports.jsx(rt,{windowSize:a,responsiveWidth:$e[8].width,style:$e[8].customStyle,children:n.jsxRuntimeExports.jsx(vt,{isSelected:r,children:s.isZeniRecommended?n.jsxRuntimeExports.jsx(Lr,{}):null})})]})})}const Tr=i.div`
|
|
324
|
-
box-sizing: border-box;
|
|
325
|
-
width: 100%;
|
|
326
|
-
display: flex;
|
|
327
|
-
padding-right: ${t.Space.sp8};
|
|
328
|
-
`,kr=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
|
-
`,rt=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
|
-
`,vt=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
|
-
`,$r=i(t.ExtraSmallRegular)`
|
|
356
|
-
text-transform: capitalize;
|
|
357
|
-
color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
358
|
-
`,Lr=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
|
-
`,Ar=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
|
-
`,Or=t.appLocale.getLocalizedStrings(),{common:{all:ts,strings:{empty:ns}}}=Or,ss="selectedTransactionIds",Dr="expenseAutomationBankReconReconcilePage",_r=e=>`${e}_form`;function Br({currentFooterFormId:e,localData:s,matchedTransactions:l,sortConfig:a,onSaveReconciliation:p,selectedAccountId:u,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(gr,{onReconTabColumnSortConfigChanged:o,sortConfig:a}),value:ts.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},h=l.map(C=>({label:n.jsxRuntimeExports.jsx(Ir,{transaction:C,selectedTransactionIds:s.selectedTransactionIds,transactionId:C.id}),value:C.id,defaultChecked:!1,groupLabel:!1})),f=[d,...h],y=async C=>{const g=C[ss].filter(w=>w!=ts.toLocaleLowerCase());c(g)};m.useEffect(()=>{const C=x.watch(b=>{b!=null&&n.defer(()=>y(b))});return()=>{C.unsubscribe()}}),m.useEffect(()=>(e!=="expenseAutomationBankReconReconcilePage"&&r("expenseAutomationBankReconReconcilePage"),()=>{r("expenseAutomationPage")}),[]);const j=m.useCallback(()=>{p({reconcileAction:"reconcile"})},[p]);if(l.length===0){const C=Ne("reconciliation",void 0,u).tabs.find(b=>b.id==="reconcile")?.allDoneText;return n.jsxRuntimeExports.jsx(Fr,{children:n.jsxRuntimeExports.jsx(dt,{tab:"missing_receipts",title:C?.title??ns,subTitle:C?.subTitle??ns})})}return n.jsxRuntimeExports.jsx(Mr,{children:n.jsxRuntimeExports.jsx(n.FormProvider,{...x,children:n.jsxRuntimeExports.jsx(Nr,{onSubmit:x.handleSubmit(j),id:_r(Dr),children:n.jsxRuntimeExports.jsx(Pr,{children:n.jsxRuntimeExports.jsx(li,{name:ss,checkBoxes:f,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:20},rowHeight:wr,mode:s.selectedTransactionIds.length>0?"always_on":"checked_or_hover",checkBoxContainerStyle:{boxSizing:"border-box"}})})})})})}const Mr=i.div``,Nr=i.form``,Pr=i.div`
|
|
370
|
-
height: calc(100vh - 350px);
|
|
371
|
-
`,Fr=i.div`
|
|
372
|
-
height: 100%;
|
|
373
|
-
display: flex;
|
|
374
|
-
justify-content: center;
|
|
375
|
-
align-items: center;
|
|
376
|
-
`,On=69,me={COLUMN_ONE:187,COLUMN_THREE:136,COLUMN_FOUR:240,COLUMN_FIVE:146},Ys=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
|
-
`,Zs=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
|
-
`,Xs=i.div`
|
|
393
|
-
width: 100%;
|
|
394
|
-
`,Qs=i.div`
|
|
395
|
-
width: 100%;
|
|
396
|
-
`,Nn=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
|
-
`,Pn=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
|
-
`,zr=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
|
-
`,Hr=i.div`
|
|
417
|
-
padding: ${t.Space.sp2} ${t.Space.sp3};
|
|
418
|
-
`,Fn=i.div`
|
|
419
|
-
display: flex;
|
|
420
|
-
`,Wr=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
|
-
`,zn=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
|
-
`,X=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
|
-
`,tt=i.div`
|
|
477
|
-
padding: ${t.Space.sp2} ${t.Space.sp3};
|
|
478
|
-
`,oe=i(t.ExtraSmallRegular)`
|
|
479
|
-
color: ${e=>e.theme.colors.hero};
|
|
480
|
-
`,de=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
|
-
`,ie=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
|
-
`,Hn=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
|
-
`,Wn=i.div`
|
|
511
|
-
flex: 1;
|
|
512
|
-
`,eo=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
|
-
`,sn=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
|
-
`,Fe=i(sn)`
|
|
524
|
-
padding: 2px ${t.Space.sp2};
|
|
525
|
-
`,$t=t.appLocale.getLocalizedStrings().expenseAutomation.accountRecon.review.header,ct=[{key:"date",value:$t.date,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),loaderWidth:120},{key:"payee",value:$t.payee,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),loaderWidth:212},{key:"memo",value:$t.memo,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),loaderWidth:192},{key:"direction",value:$t.direction,sortOrder:"ascending",width:new t.ResponsiveSized(15,15),loaderWidth:84},{key:"match",value:$t.match,sortOrder:"ascending",width:new t.ResponsiveSized(15,15),loaderWidth:152},{key:"amount",value:$t.amount,sortOrder:"ascending",width:new t.ResponsiveSized(10,10),loaderWidth:64}],Vr=e=>{const{sortConfig:s,onColumnSortConfigChanged:l}=e,a=t.useWindowSizeContext(),[p,u]=m.useState(n.cloneDeep(ct));m.useEffect(()=>{const c=[...p];for(const r of c)r.key===s.sortKey?r.sortOrder=s.sortOrder:r.sortOrder="ascending";u(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(Ur,{children:p.map(c=>n.jsxRuntimeExports.jsxs(Gr,{sortDataValue:s.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:a,isLastColumn:c.key==="amount",children:[n.jsxRuntimeExports.jsxs(Kr,{"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(Jr,{sortDataValue:s.sortKey,headerData:c,children:n.jsxRuntimeExports.jsx(Yr,{})})]}),n.jsxRuntimeExports.jsx(Zr,{sortDataValue:s.sortKey,windowSize:a,isVisible:s.sortKey===c.key&&(s.sortKey!=="date"||s.sortOrder==="ascending"),children:n.jsxRuntimeExports.jsx(Xr,{"data-testid":t.generateDataTestId("account-reconciliation-review-sort-by-date"),onClick:()=>o("date","ascending")})})]},c.key))})},qr=m.memo(Vr),Ur=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
|
-
`,Gr=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
|
-
`,Kr=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
|
-
`,Jr=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"?Be.css`
|
|
560
|
-
padding-top: 2px;
|
|
561
|
-
`:Be.css`
|
|
562
|
-
padding-bottom: 2px;
|
|
563
|
-
`}
|
|
564
|
-
`,Yr=i(t.SvgArrowTailTop)`
|
|
565
|
-
width: ${t.Space.sp2};
|
|
566
|
-
height: ${t.Space.sp2};
|
|
567
|
-
cursor: pointer;
|
|
568
|
-
color: inherit;
|
|
569
|
-
`,Zr=i.div`
|
|
570
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
571
|
-
align-items: center;
|
|
572
|
-
padding-top: 2px;
|
|
573
|
-
`,Xr=i(t.SvgCloseRound)`
|
|
574
|
-
width: 12px;
|
|
575
|
-
height: 12px;
|
|
576
|
-
cursor: pointer;
|
|
577
|
-
color: ${e=>e.theme.colors.hero};
|
|
578
|
-
`,Xe="accountReconReviewTableSection",{dateFormat:Qr,expenseAutomation:ea,common:st}=t.appLocale.getLocalizedStrings(),{visual:to}=Qr,{accountRecon:Se}=ea,no=e=>[{label:Se.review.formLabels.allBankAccounts,options:e.map(s=>({label:s.accountName,value:s.accountId}))}],so=e=>[{label:Se.review.formLabels.allCreditCards,options:e.map(s=>({label:s.accountName,value:s.accountId}))}],os=e=>`${Xe}_${e}_form`,ve=(e,s)=>`${Xe}.${e}.${s}`,ta=e=>{const{sortKey:s,sortOrder:l,accountReconEntity:a,entitySearchAutoCompleteActions:p,allAccountList:u,classList:o,localData:c,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:x,selectedAccountId:d,entitySearchAutoCompleteData:h,excludeFetchById:f,saveFetchById:y,reviewTabSelectedVendorByTransactionId:j,refreshStatus:C,updateLocalData:b,onColumnSortConfigChanged:g,onSaveReconciliation:w,onSaveReconciliationReview:_,onReconMatchedTransactionClick:$,bankAccounts:B,creditCards:v}=e,{transactionsToReview:R}=a,I=m.useRef(null),[A,q]=m.useState(null),T=D=>{const V=R[D],K=H.isReviewTransactionBillPaymentType(V),U=H.isReviewTransactionExpenseType(V),M=H.isReviewTransactionCreditCardPaymentType(V),te=H.isReviewTransactionBankTransferType(V),ge=H.isReviewTransactionDepositType(V),ne=H.isReviewTransactionCreditCardCreditType(V),Q=V.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return V.transactionId===A?U||M||te||ge||ne?275+(Q?25:0):K?185+V.recommendedAction.recommendedTransactions.length*40+(Q?25:0):146:72},J=m.useMemo(()=>({onColumnSortConfigChanged:g,sortConfig:{sortKey:s,sortOrder:l}}),[g,s,l]);if(m.useEffect(()=>{q(R[0]?.transactionId??null),I.current?.resetAfterIndex(0)},[s,l]),m.useEffect(()=>{I.current?.resetAfterIndex(0)},[A]),m.useEffect(()=>{I.current?.resetAfterIndex(0)},[R.length]),m.useEffect(()=>{C.fetchState==="Completed"&&I.current?.resetAfterIndex(0)},[C]),R.length===0){const D=Ne("reconciliation",void 0,d).tabs.find(V=>V.id==="review")?.allDoneText;return n.jsxRuntimeExports.jsx(Ea,{children:n.jsxRuntimeExports.jsx(dt,{tab:"reconciliation",title:D?.title??st.strings.empty,subTitle:D?.subTitle??st.strings.empty})})}return n.jsxRuntimeExports.jsx(la,{children:n.jsxRuntimeExports.jsx(oo.Provider,{value:J,children:n.jsxRuntimeExports.jsx(n.AutoSizer,{children:({height:D,width:V})=>n.jsxRuntimeExports.jsx(n.VariableSizeList,{width:V,height:D,innerElementType:io,ref:I,itemCount:R.length,itemSize:T,itemKey:K=>R[K].transactionId,overscanCount:bo.OVERSCAN_COUNT,itemData:{transactionsList:R,expandedRowId:A,allAccountList:u,classList:o,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:x,localData:c,entitySearchAutoCompleteData:h,entitySearchAutoCompleteActions:p,excludeFetchById:f,saveFetchById:y,reviewTabSelectedVendorByTransactionId:j,bankAccounts:B,creditCards:v,updateLocalData:b,setExpandedRowId:q,onSaveReconciliation:w,onSaveReconciliationReview:_,onReconMatchedTransactionClick:$},initialScrollOffset:0,children:na})})})})},oo=m.createContext(void 0),io=m.forwardRef((e,s)=>{const{children:l,style:a,...p}=e,{sortConfig:u,onColumnSortConfigChanged:o}=m.useContext(oo);return n.jsxRuntimeExports.jsxs(da,{ref:s,style:{...a,width:"auto",padding:`${t.Space.sp0} ${t.Space.sp8}`},...p,children:[n.jsxRuntimeExports.jsx(qr,{onColumnSortConfigChanged:o,sortConfig:u}),n.jsxRuntimeExports.jsx(ua,{children:l})]})});io.displayName="Account recon review table inner element type";const na=({index:e,style:s,data:l})=>{const{transactionsList:a,expandedRowId:p,setExpandedRowId:u,entitySearchAutoCompleteActions:o,allAccountList:c,classList:r,localData:x,updateLocalData:d,accountListNestedAccountHierarchy:h,classListNestedAccountHierarchy:f,entitySearchAutoCompleteData:y,onSaveReconciliation:j,onSaveReconciliationReview:C,onReconMatchedTransactionClick:b,excludeFetchById:g,saveFetchById:w,reviewTabSelectedVendorByTransactionId:_,bankAccounts:$,creditCards:B}=l,v=a[e];return n.jsxRuntimeExports.jsx(ca,{style:{...s,width:"100%"},children:n.jsxRuntimeExports.jsx(sa,{transaction:v,expandedRowId:p,setExpandedRowId:u,entitySearchAutoCompleteActions:o,accountListNestedAccountHierarchy:h,allAccountList:c,classList:r,localData:x,updateLocalData:d,entitySearchAutoCompleteData:y,classListNestedAccountHierarchy:f,onSaveReconciliation:j,onSaveReconciliationReview:C,onReconMatchedTransactionClick:b,excludeFetchById:g,saveFetchById:w,selectedVendor:_[v.transactionId],bankAccounts:$,creditCards:B})})},sa=({transaction:e,expandedRowId:s,accountListNestedAccountHierarchy:l,entitySearchAutoCompleteActions:a,allAccountList:p,classList:u,classListNestedAccountHierarchy:o,localData:c,entitySearchAutoCompleteData:r,excludeFetchById:x,saveFetchById:d,selectedVendor:h,bankAccounts:f,creditCards:y,setExpandedRowId:j,updateLocalData:C,onSaveReconciliation:b,onSaveReconciliationReview:g,onReconMatchedTransactionClick:w})=>{const _=s===e.transactionId,$=t.useWindowSizeContext(),B=c[e.transactionId],v=e.recommendedAction.action==="record_bill_payment",R=e.recommendedAction.action==="record_expense",I=H.isReviewTransactionCreditCardCreditType(e),A=p.find(J=>J.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),q=J=>J.recommendedAction.recommendedTransactions.length>0&&J.recommendedAction.recommendedTransactions[0].merchantName!=null?J.recommendedAction.recommendedTransactions[0].merchantName:st.strings.hyphen,T=e.recommendedAction.recommendedTransactions[0]?.merchantName;return n.jsxRuntimeExports.jsxs(ia,{isExpanded:_,children:[n.jsxRuntimeExports.jsxs(ra,{isExpanded:_,onClick:()=>j(e.transactionId),"data-testid":t.generateDataTestId("account-reconciliation-review-row",e.transactionId),children:[n.jsxRuntimeExports.jsx(At,{windowSize:$,responsiveWidth:ct[0].width,children:n.jsxRuntimeExports.jsx(Lt,{children:e.transactionDate.format(to.MMMDCommaYYYYformat)})}),n.jsxRuntimeExports.jsx(At,{windowSize:$,responsiveWidth:ct[1].width,children:n.jsxRuntimeExports.jsx(Lt,{children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"},text:q(e)})})}),n.jsxRuntimeExports.jsx(At,{windowSize:$,responsiveWidth:ct[2].width,children:n.jsxRuntimeExports.jsx(Lt,{children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),n.jsxRuntimeExports.jsx(At,{windowSize:$,responsiveWidth:ct[3].width,children:n.jsxRuntimeExports.jsx(Lt,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),n.jsxRuntimeExports.jsxs(At,{windowSize:$,responsiveWidth:ct[4].width,children:[n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:v,children:n.jsxRuntimeExports.jsx(va,{children:n.jsxRuntimeExports.jsx(ba,{children:Se.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:!v,children:n.jsxRuntimeExports.jsx(Lt,{children:A!=null?n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(ro,{}),n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"},text:A.accountName})]}):st.strings.hyphen})})]}),n.jsxRuntimeExports.jsx(At,{windowSize:$,isLastColumn:!0,responsiveWidth:ct[5].width,children:n.jsxRuntimeExports.jsx(Lt,{children:t.amountValueToString("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),n.jsxRuntimeExports.jsxs(t.ControlledComponent,{controller:_&&B!=null,children:[n.jsxRuntimeExports.jsx(oa,{onSaveReconciliation:b,onSaveReconciliationReview:g,updateLocalData:C,saveFetchById:d,excludeFetchById:x,localData:B,classListNestedAccountHierarchy:o,allAccountList:p,classList:u,transaction:e,accountListNestedAccountHierarchy:l,entitySearchAutoCompleteActions:a,entitySearchAutoCompleteData:r,selectedVendor:h,bankAccounts:f,creditCards:y,onReconMatchedTransactionClick:w}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:(v||R||I)&&T!=null,children:n.jsxRuntimeExports.jsx(Ia,{children:n.jsxRuntimeExports.jsxs(Ta,{children:[Se.review.bankDetail,st.strings.colon," ",T]})})})]})]})},oa=({transaction:e,accountListNestedAccountHierarchy:s,entitySearchAutoCompleteActions:l,allAccountList:a,classList:p,classListNestedAccountHierarchy:u,localData:o,entitySearchAutoCompleteData:c,excludeFetchById:r,saveFetchById:x,selectedVendor:d,bankAccounts:h,creditCards:f,updateLocalData:y,onSaveReconciliation:j,onSaveReconciliationReview:C,onReconMatchedTransactionClick:b})=>{const g=n.useTheme(),[w,_]=m.useState(!o.vendor?.id),[$,B]=m.useState(!o.customer?.id),[v,R]=m.useState(o.categoryId==null),[I,A]=m.useState(o.classId==null),[q,T]=m.useState(o.bankAccountId==null),[J,D]=m.useState(o.creditCardId==null),[V,K]=m.useState(!o.memo),U=H.isReviewTransactionBillPaymentType(e),M=H.isReviewTransactionExpenseType(e),te=H.isReviewTransactionBankTransferType(e),ge=H.isReviewTransactionCreditCardPaymentType(e),ne=H.isReviewTransactionDepositType(e),Q=H.isReviewTransactionCreditCardCreditType(e),ae=m.useMemo(()=>{if(!M&&!Q)return t.getGroupedAccountOptions(s);if(d!=null&&d.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return t.getGroupedAccountOptions(s,d?.recommendations);const S=a.find(ye=>ye.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),re=S!=null?{...S,reason:Se.review.zeniGptRecommendation,min:0,max:0}:void 0;return t.getGroupedAccountOptions(s,[{account:re}])},[M,Q,d,e.recommendedAction.recommendedTransactions,a,s]),z=m.useMemo(()=>{if(!M&&!Q)return t.getGroupedClassOptions(u);if(d!=null&&d.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return t.getGroupedClassOptions(u,d?.recommendations);const S=p.find(ye=>ye.classId===e.recommendedAction.recommendedTransactions[0]?.classId),re=S!=null?{...S,reason:Se.review.zeniGptRecommendation,min:0,max:0}:void 0;return t.getGroupedClassOptions(u,[{class:re}])},[M,Q,d,e.recommendedAction.recommendedTransactions,p,u]),L=n.useForm({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:m.useMemo(()=>is(e,o,ae,a,z,h,f,c),[e,o,z,a,ae,h,f,c]),values:m.useMemo(()=>is(e,o,ae,a,z,h,f,c),[e,o,z,a,ae,h,f,c])}),ee=async(S,re)=>{S.includes("memo")||y(rs(re,e,c,a),e.transactionId,S.includes("vendor"))};m.useEffect(()=>{const S=L.watch((re,{name:ye})=>{ye!=null&&re!=null&&n.defer(()=>ee(ye,re))});return()=>{S.unsubscribe()}});const N=m.useCallback(S=>{if(M||ne||Q){if((M||Q)&&o.vendor==null){_(!1),L.setError(ve(e.transactionId,"vendor"),{type:"required"});return}if(ne&&o.customer==null){B(!1),L.setError(ve(e.transactionId,"customer"),{type:"required"});return}if(o.categoryId==null){R(!1),L.setError(ve(e.transactionId,"category"),{type:"required"});return}}y(rs(S,e,c,a),e.transactionId,!1),C(e.transactionId)},[M,Q,ne,y,e,c,a,C,o.categoryId,o.vendor,o.customer]),P=L.watch(ve(e.transactionId,"vendor")),E=L.watch(ve(e.transactionId,"customer")),W=m.useRef(),Y=m.useMemo(()=>M||Q?"vendor":ne?"customer":null,[M,Q,ne]),O=(S,re)=>{Y!=null&&l.onAutoCompleteInputChange?.(S,Y),W.current=re};m.useEffect(()=>{c.entityAutoCompleteView.fetchState==="Completed"&&((M||Q)&&W.current?.(t.getVendorOptions(c.entityAutoCompleteView)),ne&&W.current?.(t.getCustomerOptions(c.entityAutoCompleteView)))},[c.entityAutoCompleteView,ne,M,Q]);const F=S=>p.filter(ye=>ye.classId===S)[0]?.accountingClassNumber??void 0,G=S=>a.filter(ye=>ye.qboId===S)[0]?.qboId,Z=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]),fe=()=>{R(!1)},Ee=()=>{T(!1)},ce=()=>{D(!1)};return m.useEffect(()=>{v===!1&&o.categoryId==null&&L.setFocus(ve(e.transactionId,"category"))},[v]),m.useEffect(()=>{I===!1&&o.classId==null&&L.setFocus(ve(e.transactionId,"class"))},[I]),m.useEffect(()=>{w===!1&&o.vendor==null&&L.setFocus(ve(e.transactionId,"vendor"))},[w]),m.useEffect(()=>{$===!1&&o.customer==null&&L.setFocus(ve(e.transactionId,"customer"))},[$]),m.useEffect(()=>{q===!1&&o.bankAccountId==null&&L.setFocus(ve(e.transactionId,"bankAccount"))},[q]),m.useEffect(()=>{J===!1&&o.creditCardId==null&&L.setFocus(ve(e.transactionId,"creditCard"))},[J]),n.jsxRuntimeExports.jsx(n.FormProvider,{...L,children:n.jsxRuntimeExports.jsx("form",{onSubmit:L.handleSubmit(N),id:os(e.transactionId),children:n.jsxRuntimeExports.jsxs(aa,{children:[n.jsxRuntimeExports.jsxs(pa,{children:[n.jsxRuntimeExports.jsxs(ha,{children:[n.jsxRuntimeExports.jsxs(ga,{children:[n.jsxRuntimeExports.jsx(ro,{}),n.jsxRuntimeExports.jsx(t.LabeledRadioField,{label:{label:U?Se.review.formLabels.match:Se.review.formLabels.categorize},radioField:{name:ve(e.transactionId,"match_radio"),id:U?"match":"categorize",value:U?"match":"categorize",checked:!0,style:{width:t.Space.sp3,height:t.Space.sp3,padding:"2px"}},style:{width:"auto"}})]}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:!U,children:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(as,{}),Z.map(S=>n.jsxRuntimeExports.jsx(t.LabeledRadioField,{label:{label:Se.review.formLabels[S]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:ve(e.transactionId,"recommendedActionType"),id:S,value:S,style:{width:t.Space.sp3,height:t.Space.sp3,padding:"2px"}}},S))]})})]}),n.jsxRuntimeExports.jsxs(xa,{children:[n.jsxRuntimeExports.jsx(t.Button,{variant:"secondary",size:"small",label:Se.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:()=>{j({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),n.jsxRuntimeExports.jsx(t.Button,{form:os(e.transactionId),"data-testid":t.generateDataTestId("account-reconciliation-review-save-button",e.transactionId),label:st.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||ne||Q,children:n.jsxRuntimeExports.jsxs(un,{children:[n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:M||Q,children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.vendor==null&&w===!1&&_(!0)},children:n.jsxRuntimeExports.jsx(X,{style:{flex:1,padding:t.sp[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",style:{padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:st.texts.vendor}),n.jsxRuntimeExports.jsx(ie,{style:{gap:t.sp[3]},className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:w===!0?n.jsxRuntimeExports.jsxs(de,{onClick:S=>{S.stopPropagation(),_(!1)},"data-testid":t.generateDataTestId("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:g.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(bt,{}),Se.review.formLabels.addVendor]}):n.jsxRuntimeExports.jsx(t.AutoCompleteSingleSelectField,{name:ve(e.transactionId,"vendor"),allowEmpty:!1,placeholder:Se.review.formLabels.addVendor,valueToId:S=>S,defaultValue:{selectedOption:P?.selectedOption,defaultOptions:P?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:t.Space.sp4})},registerOptions:{required:!0,validate:S=>!!S.selectedOption},loadOptions:O})})})]})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:ne,children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.customer==null&&$===!1&&B(!0)},children:n.jsxRuntimeExports.jsx(X,{style:{flex:1,padding:t.sp[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",style:{padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:st.texts.customer}),n.jsxRuntimeExports.jsx(ie,{style:{gap:t.sp[3]},className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:$===!0?n.jsxRuntimeExports.jsxs(de,{onClick:S=>{S.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:g.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(bt,{}),Se.review.formLabels.addCustomer]}):n.jsxRuntimeExports.jsx(t.AutoCompleteSingleSelectField,{name:ve(e.transactionId,"customer"),allowEmpty:!1,placeholder:Se.review.formLabels.addCustomer,valueToId:S=>S,defaultValue:{selectedOption:E?.selectedOption,defaultOptions:E?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:t.Space.sp4})},registerOptions:{required:!0,validate:S=>!!S.selectedOption},loadOptions:O})})})]})})})}),n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.categoryId==null&&v===!1&&R(!0)},children:n.jsxRuntimeExports.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:st.texts.category}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:v===!0?n.jsxRuntimeExports.jsxs(de,{onClick:S=>{S.stopPropagation(),fe()},"data-testid":t.generateDataTestId("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:g.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(bt,{}),Se.review.formLabels.addCategory]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:ve(e.transactionId,"category"),placeholder:Se.review.formLabels.addCategory,valueToId:S=>G(S),defaultValue:{allOptions:ae,selectedOption:a.find(S=>S.accountId===o.categoryId)?.qboId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Zt})})})]})})}),n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.classId==null&&I===!1&&A(!0)},children:n.jsxRuntimeExports.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:st.texts.class}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:I===!0?n.jsxRuntimeExports.jsxs(de,{onClick:S=>{S.stopPropagation(),A(!1)},"data-testid":t.generateDataTestId("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:g.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(bt,{}),Se.review.formLabels.addClass]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:ve(e.transactionId,"class"),placeholder:Se.review.formLabels.addClass,valueToId:S=>F(S),defaultValue:{allOptions:z,selectedOption:o.classId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Zt})})})]})})})]})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:U,children:n.jsxRuntimeExports.jsxs(ja,{children:[n.jsxRuntimeExports.jsxs(fa,{children:[n.jsxRuntimeExports.jsx("span",{className:"matched-text",children:`${Se.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),Se.review.matchesFoundFullInfo]}),n.jsxRuntimeExports.jsx(Sa,{children:e.recommendedAction.recommendedTransactions.map(S=>S.bookTransactionId!=null?n.jsxRuntimeExports.jsxs(Ra,{children:[n.jsxRuntimeExports.jsx(t.LabeledRadioField,{label:{label:n.jsxRuntimeExports.jsxs(ya,{children:[n.jsxRuntimeExports.jsx(t.StandardRegular,{children:S.date.format(to.MMMDCommaYYYYformat)}),n.jsxRuntimeExports.jsx(t.StandardRegular,{children:S.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:ve(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:S.bookTransactionId,value:S.bookTransactionId,style:{width:t.Space.sp3,height:t.Space.sp3,padding:"2px"}}}),n.jsxRuntimeExports.jsxs(wa,{"data-testid":t.generateDataTestId("account-reconciliation-review-matched-transaction-amount",S.bookTransactionId),onClick:()=>{S.bookTransactionId!=null&&b(S.bookTransactionId)},children:[n.jsxRuntimeExports.jsx(Ca,{children:t.amountValueToString("0,0.00",S.amount.amount,S.amount.currencySymbol)}),n.jsxRuntimeExports.jsx(as,{})]})]},S.bookTransactionId):null)})]})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:te,children:n.jsxRuntimeExports.jsx(un,{children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.bankAccountId==null&&q===!1&&T(!0)},children:n.jsxRuntimeExports.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:Se.review.formLabels.transferTo}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:q===!0?n.jsxRuntimeExports.jsxs(de,{onClick:S=>{S.stopPropagation(),Ee()},"data-testid":t.generateDataTestId("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:g.colors.brandColorGoldDark,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(bt,{}),Se.review.formLabels.selectAccount]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:ve(e.transactionId,"bankAccount"),placeholder:Se.review.formLabels.selectAccount,defaultValue:{allOptions:no(h),selectedOption:o.bankAccountId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Zt})})})]})})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:ge,children:n.jsxRuntimeExports.jsx(un,{children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.creditCardId==null&&J===!1&&D(!0)},children:n.jsxRuntimeExports.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:Se.review.formLabels.creditCard}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:J===!0?n.jsxRuntimeExports.jsxs(de,{onClick:S=>{S.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:g.colors.brandColorGoldDark,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(bt,{}),Se.review.formLabels.selectCard]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:ve(e.transactionId,"creditCard"),placeholder:Se.review.formLabels.selectCard,defaultValue:{allOptions:so(f),selectedOption:o.creditCardId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Zt})})})]})})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:!U,children:n.jsxRuntimeExports.jsx(ma,{children:n.jsxRuntimeExports.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:Se.review.header.memo}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:V===!0?n.jsxRuntimeExports.jsxs(de,{onClick:S=>{S.stopPropagation(),K(!1)},"data-testid":t.generateDataTestId("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:g.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(bt,{}),Se.review.formLabels.addMemo]}):n.jsxRuntimeExports.jsx(t.TextField,{name:ve(e.transactionId,"memo"),placeholder:Se.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},Zt={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}`})},is=(e,s,l,a,p,u,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:p},bankAccount:{selectedOption:s?.bankAccountId,allOptions:no(u)},creditCard:{selectedOption:s?.creditCardId,allOptions:so(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)}}}}},rs=(e,s,l,a)=>{const{vendor:p,customer:u}=e[Xe][s.transactionId];let o;if(p.selectedOption!=null){const x=p.defaultOptions.find(d=>d.value===p.selectedOption);if(x!=null)o={id:p.selectedOption,name:x.label};else{const d=l.entityAutoCompleteView.vendor.find(h=>h.id===p.selectedOption||h.zeniId===p.selectedOption);d!=null&&(o={id:d.zeniId,name:d.name})}}let c;if(u.selectedOption!=null){const x=u.defaultOptions.find(d=>d.value===u.selectedOption);if(x!=null)c={id:u.selectedOption,name:x.label};else{const d=l.entityAutoCompleteView.customer.find(h=>h.id===u.selectedOption||h.zeniId===u.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}},Lt=i(t.StandardRegular)`
|
|
579
|
-
display: flex;
|
|
580
|
-
align-items: center;
|
|
581
|
-
column-gap: ${t.Space.sp1};
|
|
582
|
-
`,At=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
|
-
`,ia=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
|
-
`,ra=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
|
-
`,aa=i.div`
|
|
611
|
-
padding: ${t.Space.sp2} ${t.Space.sp4};
|
|
612
|
-
display: flex;
|
|
613
|
-
flex-direction: column;
|
|
614
|
-
row-gap: ${t.Space.sp2};
|
|
615
|
-
`,ca=i.div`
|
|
616
|
-
top: ${t.Space.sp0};
|
|
617
|
-
left: ${t.Space.sp0};
|
|
618
|
-
box-sizing: border-box;
|
|
619
|
-
`,la=i.div`
|
|
620
|
-
height: calc(100vh - 350px);
|
|
621
|
-
max-width: 99.9%;
|
|
622
|
-
padding: ${t.Space.sp0};
|
|
623
|
-
`,da=i.div``,ua=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
|
-
`,pa=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
|
-
`,un=i.div`
|
|
639
|
-
display: flex;
|
|
640
|
-
flex-direction: row;
|
|
641
|
-
align-items: center;
|
|
642
|
-
column-gap: ${t.Space.sp3};
|
|
643
|
-
`,ma=i.div`
|
|
644
|
-
width: 100%;
|
|
645
|
-
`,xa=i.div`
|
|
646
|
-
display: flex;
|
|
647
|
-
flex-direction: row;
|
|
648
|
-
align-items: center;
|
|
649
|
-
column-gap: ${t.Space.sp3};
|
|
650
|
-
`,ha=i.div`
|
|
651
|
-
display: flex;
|
|
652
|
-
flex-direction: row;
|
|
653
|
-
align-items: center;
|
|
654
|
-
column-gap: ${t.Space.sp6};
|
|
655
|
-
`,ga=i.div`
|
|
656
|
-
display: flex;
|
|
657
|
-
flex-direction: row;
|
|
658
|
-
align-items: center;
|
|
659
|
-
column-gap: ${t.Space.sp1};
|
|
660
|
-
`,bt=i(t.SvgAddRound)`
|
|
661
|
-
width: ${t.Space.sp3};
|
|
662
|
-
height: ${t.Space.sp3};
|
|
663
|
-
`,as=i(t.SvgArrowRight)`
|
|
664
|
-
width: ${t.Space.sp3};
|
|
665
|
-
height: ${t.Space.sp3};
|
|
666
|
-
color: ${e=>e.theme.colors.hero};
|
|
667
|
-
`,ja=i.div`
|
|
668
|
-
display: flex;
|
|
669
|
-
flex-direction: column;
|
|
670
|
-
row-gap: ${t.Space.sp3};
|
|
671
|
-
padding: ${t.Space.sp0} 12px;
|
|
672
|
-
`,fa=i(t.StandardRegular)`
|
|
673
|
-
color: ${e=>e.theme.colors.primary};
|
|
674
|
-
|
|
675
|
-
.matched-text {
|
|
676
|
-
font-weight: ${t.FontWeight.bold};
|
|
677
|
-
}
|
|
678
|
-
`,ya=i.div`
|
|
679
|
-
display: flex;
|
|
680
|
-
align-items: center;
|
|
681
|
-
column-gap: ${t.Space.sp2};
|
|
682
|
-
`,Sa=i.div`
|
|
683
|
-
display: flex;
|
|
684
|
-
flex-direction: column;
|
|
685
|
-
row-gap: ${t.Space.sp2};
|
|
686
|
-
`,Ra=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
|
-
`,Ca=i(t.StandardRegular)`
|
|
694
|
-
color: ${e=>e.theme.colors.hero};
|
|
695
|
-
`,Ea=i.div`
|
|
696
|
-
height: 100%;
|
|
697
|
-
display: flex;
|
|
698
|
-
justify-content: center;
|
|
699
|
-
align-items: center;
|
|
700
|
-
`,va=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
|
-
`,ba=i(t.ExtraSmallRegular)`
|
|
705
|
-
color: ${e=>e.theme.colors.hero};
|
|
706
|
-
`,wa=i.div`
|
|
707
|
-
display: flex;
|
|
708
|
-
align-items: center;
|
|
709
|
-
column-gap: 20px;
|
|
710
|
-
cursor: pointer;
|
|
711
|
-
`,Ia=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
|
-
`,Ta=i(t.ExtraSmallRegular)`
|
|
716
|
-
color: ${e=>e.theme.colors.hero};
|
|
717
|
-
`,ro=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
|
-
`,ka=({reconciliation:e,entitySearchAutoCompleteData:s,selectedAccountId:l,currentFooterFormId:a,entitySearchAutoCompleteActions:p,onUpdateReconcileTabLocalData:u,setCurrentFooterFormId:o,onReconTabColumnSortConfigChanged:c,updateReviewTabLocalData:r,onReconReviewTabColumnSortConfigChanged:x,onSaveReconciliation:d,onSaveReconciliationReview:h,onReconMatchedTransactionClick:f})=>{const{accountReconciliationsByAccountID:y,reconciliationTabsState:{reconcile:{uiState:{sortKey:j,sortOrder:C}}},selectedReconAccount:b}=e,g=y[l],{transactionFetchState:w}=b??{};return w?.fetchState==="In-Progress"||w?.fetchState==="Not-Started"?n.jsxRuntimeExports.jsxs(cs,{style:{paddingLeft:t.sp[8],paddingRight:t.sp[8]},children:[n.jsxRuntimeExports.jsx($a,{children:ct.map(_=>n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:_.loaderWidth,height:18},_.key))}),n.jsxRuntimeExports.jsxs(Aa,{children:[...Array(3).fill(0).map((_,$)=>n.jsxRuntimeExports.jsx(La,{children:ct.map(B=>n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:B.loaderWidth,height:t.sp[4]},B.key))},`${$}_${_}`))]})]}):n.jsxRuntimeExports.jsx(cs,{children:e.selectedTab==="reconcile"?n.jsxRuntimeExports.jsx(Br,{selectedAccountId:l,currentFooterFormId:a,setCurrentFooterFormId:o,onUpdateReconcileTabLocalData:u,onReconTabColumnSortConfigChanged:c,onSaveReconciliation:d,sortConfig:{sortKey:j,sortOrder:C},localData:e.reconciliationTabsState.reconcile.localData,matchedTransactions:g?.accountReconEntity.transactionsToReconcile}):n.jsxRuntimeExports.jsx(ta,{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:p,onColumnSortConfigChanged:x,onSaveReconciliation:d,onSaveReconciliationReview:h,onReconMatchedTransactionClick:f,excludeFetchById:e.actionFetchStates.excludeFetchById,saveFetchById:e.actionFetchStates.saveReconciliationReviewFetch,selectedAccountId:l,sortKey:e.reconciliationTabsState.review.uiState.sortKey,sortOrder:e.reconciliationTabsState.review.uiState.sortOrder})})},cs=i.div`
|
|
725
|
-
width: 100%;
|
|
726
|
-
height: 100%;
|
|
727
|
-
`,$a=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
|
-
`,La=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
|
-
`,Aa=i.div`
|
|
742
|
-
display: flex;
|
|
743
|
-
gap: ${t.Space.sp3};
|
|
744
|
-
flex-direction: column;
|
|
745
|
-
`;function Oa({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 Da({account:e,numOfBalances:s,title:l,isLastNode:a,config:p}){const u=Ae.uniqueID("ac_group_report",[],l);return{children:[],id:u,isLastNode:a,reportElementData:{element:{kind:"ac_group_report",title:l,data:e,numOfBalances:s},config:p}}}function _a({title:e,section:s,config:l,numOfBalances:a,nodeId:p}){return{children:[],id:p??Ae.uniqueID("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:s,numOfBalances:a},config:l}}}function ls({section:e,allAccountReconciliations:s,title:l,subTitle:a,isLastNode:p,isTitleRowRequired:u,config:o}){const c=Ae.uniqueID("section",[],l),r={children:[],id:c,isLastNode:p,reportElementData:{element:{kind:"section",title:l,data:e,numOfBalances:0},config:o}};if(u){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=_a({title:a,section:e,config:o,numOfBalances:0});return r.children.push(x),e.accountIDs.forEach((d,h)=>{const f=s[d],y=Da({account:f,numOfBalances:0,title:f.accountReconEntity.account.accountName,isLastNode:h===e.accountIDs.length-1,config:o});r.children.push(y)}),r}function ao({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}}}function Ba(e,s){return s?ln.getDefaultNodeHeight("section")+ln.getDefaultNodeHeight("total")+e*ln.getDefaultNodeHeight("ac_group_report"):1/0}const Ma=(e,s,l,a,p=!0,u="assets")=>{const o=u==="liabilities"&&e.accountReconciliationBySectionID.liabilities.accountIDs.length>0?e.accountReconciliationBySectionID.liabilities:e.accountReconciliationBySectionID.assets,c=ao({config:s,accountReconForSection:o}),r=[];r.push(c);const x=Array.isArray(l[a])?l[a]:[],{expenseAutomation:{accountRecon:{reconciliation:d}},common:{loading:h}}=t.appLocale.getLocalizedStrings(),f=e.fetchStatus.fetchState==="Not-Started"||e.fetchStatus.fetchState==="In-Progress",y=j=>j.filter(C=>!x.includes(C));if(f)[...Array(3)].forEach((j,C)=>{r.push(Oa({title:`${C}+${h}`,config:s}))});else{const j=y(e.accountReconciliationBySectionID.assets.accountIDs),C=ls({section:{...e.accountReconciliationBySectionID.assets,accountIDs:j},allAccountReconciliations:e.accountReconciliationsByAccountID,title:d.headers.section.assets.title,subTitle:d.headers.section.assets.subTitle,isLastNode:!1,isTitleRowRequired:!1,config:s});if(r.push(C),e.accountReconciliationBySectionID.liabilities.accountIDs.length>0){const b=y(e.accountReconciliationBySectionID.liabilities.accountIDs),g=ls({section:{...e.accountReconciliationBySectionID.liabilities,accountIDs:b},allAccountReconciliations:e.accountReconciliationsByAccountID,title:d.headers.section.liabilities.title,subTitle:d.headers.section.liabilities.subTitle,isLastNode:!1,isTitleRowRequired:!0,config:s});r.push(g)}}return{config:s,headerNodes:p?[c]:[],contentNodes:r}};function Na(e,s,l,a=!1,p="assets"){Object.assign(e.config,l);const u=p==="liabilities"&&s.accountReconciliationBySectionID.liabilities.accountIDs.length>0?s.accountReconciliationBySectionID.liabilities:s.accountReconciliationBySectionID.assets,o=ao({config:l,accountReconForSection:u});return{config:l,headerNodes:a?[o]:[],contentNodes:[o,...e.contentNodes.slice(1)]}}const Dn={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])},Pa=i.div`
|
|
746
|
-
display: flex;
|
|
747
|
-
height: 100%;
|
|
748
|
-
width: 100%;
|
|
749
|
-
justify-content: center;
|
|
750
|
-
align-items: center;
|
|
751
|
-
`,Fa=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=>Dn.wrapperPadding.valuePx(e.windowSize)};
|
|
759
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
760
|
-
`,za=i.div`
|
|
761
|
-
width: 100%;
|
|
762
|
-
height: 100%;
|
|
763
|
-
`,{common:Ha}=t.appLocale.getLocalizedStrings();function Wa({reconciliation:e,companyId:s,onReload:l,onReviewClicked:a,setOpenDrawerClicked:p,onFetchLinkTokenClick:u,onEstablishConnectionClick:o,onAddStatementClick:c}){const[r,x]=m.useState(void 0),[d,h]=m.useState(void 0),f=e.plaidConnectionDetails.link_account_no_microdeposit,y=e.plaidConnectionDetails.update_account,j=d==="update_account"?y:f,[C,b]=m.useState(j.linkToken??null),[g,w]=m.useState(!1),{useDynamicConfig:_}=t.useZeniFeatureContext(),{configValue:$}=_(t.DynamicConfigNames.accountReconGLAccountsConfig),B=m.useCallback(F=>{x(F),h("link_account_no_microdeposit")},[]),v=m.useCallback(F=>{const G=q.current.accountReconciliationsByAccountID[F]?.paymentAccountId;x(F),h("update_account"),u("update_account",G)},[]),R=m.useCallback(F=>{p(F)},[]),I=m.useRef(r),A=m.useRef(d),q=m.useRef(e);m.useEffect(()=>{I.current=r},[r]),m.useEffect(()=>{A.current=d},[d]),m.useEffect(()=>{q.current=e},[e]);const T=m.useCallback(F=>{o(F,I.current??"",A.current),x(void 0),h(void 0),w(!1)},[o]),J=m.useCallback((F,G)=>{F!=null&&console.log("Plaid Connection Error",F,G),x(void 0),h(void 0),w(!1)},[]),{open:D,ready:V}=wo.usePlaidLink({token:C,onSuccess:T,onExit:J});m.useEffect(()=>{(H.zeniDate(new Date().toISOString()).isAfter(j.expiration)||j.linkToken==null)&&j.fetchStatus.fetchState==="Not-Started"&&u("link_account_no_microdeposit")},[j.fetchStatus.fetchState]),m.useEffect(()=>{!g&&d!=null&&j.linkToken===C&&j.fetchStatus.fetchState==="Completed"&&V&&w(!0)},[V,C,j.fetchStatus.fetchState,j.linkToken,d,g]),m.useEffect(()=>{j.fetchStatus.fetchState==="Completed"&&j.linkToken!=null&&j.linkToken!==C&&b(j.linkToken)},[j.fetchStatus.fetchState,j.linkToken,C]),m.useEffect(()=>{g&&D()},[g,D]);const[K,U]=m.useState(void 0),[M,te]=m.useState(void 0),[ge,ne]=m.useState("assets"),Q=H.zeniDate("2025-03-31"),ae=1,z="account_reconciliation",L=t.useWindowSizeContext(),ee=n.useTheme(),N=!0,P=Array.isArray($?.[s])?$[s]:[],E=e.accountReconciliationBySectionID.assets.accountIDs.filter(F=>!P.includes(F)).length,W=e.accountReconciliationBySectionID.liabilities.accountIDs.length>0,Y=Ba(E,W),O=m.useCallback(F=>{const G=F.scrollTop>=Y?"liabilities":"assets";G!==ge&&ne(G)},[Y,ge]);return m.useEffect(()=>{const F={reportId:z,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:Q,firstMonthOfFY:ae,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,dataAvailable:void 0,accountReconciliationConfig:{selectedDrawerAccountId:e.selectedDrawerAccountId,onReviewClicked:a,onConnectClicked:B,onReconnectClicked:v,onOpenDrawerClicked:R,onStatementAddClicked:c}};if(K==null||!n.isEqual(M,e)){const G=Ma(e,F,$,s,N,ge);te(e),U(G)}else{const G=Na(K,e,F,N,ge);U(G)}},[e,ge]),e.fetchStatus.fetchState==="Error"?n.jsxRuntimeExports.jsx(Pa,{children:n.jsxRuntimeExports.jsx(je.ReloadContainer,{onReload:l,message:Ha.errorMessage.somethingWentWrong})}):n.jsxRuntimeExports.jsx(Fa,{windowSize:L,children:K!=null?n.jsxRuntimeExports.jsx(za,{windowSize:L,children:n.jsxRuntimeExports.jsx(Ae.CollapsableReportTable,{backgroundColor:new n.Color(ee.colors.grey4),rootNodes:K,type:"name+balances_actual",compareMode:"compare_mode_percent",isSticky:{isStickyHeader:N,isStickyName:N},treeNodePadding:{left:Dn.contentPaddingLeft.value(L),right:Dn.contentPaddingRight.value(L)},nodeOpenStatus:{},scrollPosition:e.reconListUIState.scrollPosition,onCompareModeChanged:()=>{},onScroll:O})}):null})}function Va({currentFooterFormId:e,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:l,reconciliation:a,companyId:p,onReconTabColumnSortConfigChanged:u,updateReconReviewTabLocalData:o,onUpdateReconcileTabLocalData:c,setCurrentFooterFormId:r,onReloadReconciliationListPage:x,onReviewClicked:d,onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onAddStatementClick:y,onReconReviewTabColumnSortConfigChanged:j,onSaveReconciliation:C,onSaveReconciliationReview:b,setOpenDrawerClicked:g,onReconMatchedTransactionClick:w}){return a.selectedAccountId==null?n.jsxRuntimeExports.jsx(Wa,{companyId:p,reconciliation:a,onReload:x,onReviewClicked:d,onFetchLinkTokenClick:h,onEstablishConnectionClick:f,setOpenDrawerClicked:g,onAddStatementClick:y}):n.jsxRuntimeExports.jsx(ka,{currentFooterFormId:e,setCurrentFooterFormId:r,onUpdateReconcileTabLocalData:c,onReconTabColumnSortConfigChanged:u,reconciliation:a,updateReviewTabLocalData:o,entitySearchAutoCompleteActions:l,onReconReviewTabColumnSortConfigChanged:j,entitySearchAutoCompleteData:s,selectedAccountId:a.selectedAccountId,onSaveReconciliation:C,onSaveReconciliationReview:b,onReconMatchedTransactionClick:w})}function qa({accountAndClassReport:e,numOfBalances:s,title:l,isLastNode:a,isFirstNode:p,config:u,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:p,reportElementData:{element:{kind:"flux_vendor_account_class_row",title:l,data:e,metadata:c,numOfBalances:s},config:u}}}function Ua({vendorView:e,numOfBalances:s,title:l,isLastNode:a,config:p,parentNodeIDs:u}){const o=Ae.uniqueID("flux_vendor_row",u,e.vendor.id),c={children:[],id:o,isLastNode:a,reportElementData:{element:{kind:"flux_vendor_row",title:l,data:e,numOfBalances:s},config:p}},r=e.vendorAccountsAndClasses;return c.children=r.map((x,d)=>qa({accountAndClassReport:x,numOfBalances:s,title:x.accountBase?.accountName??"",config:p,isLastNode:d===r.length-1,isFirstNode:d===0,parentNodeIDs:[...u,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 Ga({section:e,numOfBalances:s,title:l,isLastNode:a,config:p}){const u=e.sectionId,o={children:[],id:u,isLastNode:a,reportElementData:{element:{kind:"section",title:l,data:e,numOfBalances:s,sectionType:e.sectionId},config:p}},c=(e.vendors??[]).map((r,x)=>Ua({vendorView:r,numOfBalances:s,title:r.vendor.name,isLastNode:x===e.vendors.length-1,config:p,parentNodeIDs:[u]}));return o.children.push(...c),o}function Ka({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 Ja({title:e,data:s,isLastNode:l,config:a,numOfBalances:p}){const u=Ae.uniqueID("total",[],e);return{children:[],id:u,isLastNode:l,reportElementData:{element:{kind:"total",title:e,data:s,numOfBalances:p},config:a}}}const{common:Xt,expenseAutomation:{fluxAnalysis:Ya}}=t.appLocale.getLocalizedStrings(),Za=(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,p=e.sections.generalExpense.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.sections.reimbursement.balancesByMonth):[],u=Js.mapTimeframeBalancesToTreeNode({balances:p,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(Ka({title:`${Xt.loading}`,balances:p,config:s})),[...Array(10)].forEach((x,d)=>{o.push(qn.mapLoadingInProgressToTreeNode({title:`${d}+${Xt.loading}`,balances:p,config:s}))});else{if(o.push(u),["generalExpense","reimbursement"].forEach(d=>{const h=e.sections[d];if(h.vendors.length>0||h.fetchStatus.fetchState==="Completed"){const f=Ae.mapFluxBalancesByMonthToBalances(h.balancesByMonth);o.push(Ga({section:{sectionId:d,reportId:"flux_analysis_operating_expense",balances:f,vendors:h.vendors,varianceAmount:h.varianceAmount,variancePercentage:h.variancePercentage,currency:e.currency},numOfBalances:a,title:Xa(d),isLastNode:!1,config:s}))}}),e.totalBalancesAndVariance){const d=e.totalBalancesAndVariance.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.totalBalancesAndVariance.balancesByMonth):[],h=Ja({title:Xt.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(qn.mapLoadingInProgressToTreeNode({title:`${h}+${Xt.loading}`,balances:p,config:s}))})}return{config:s,headerNodes:l&&!c?[u]:[],contentNodes:o}},Xa=e=>Ya.sectionTitle[e];function Qa(e,s,l,a=!0){Object.assign(e.config,s);const p=ec(l),u=Js.mapTimeframeBalancesToTreeNode({balances:p,config:s});return{config:s,headerNodes:a?[u]:[],contentNodes:[u,...e.contentNodes.slice(1)]}}const ec=e=>e.sections.generalExpense.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.sections.reimbursement.balancesByMonth):[],_n={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])},tc=i.div`
|
|
764
|
-
display: flex;
|
|
765
|
-
position: sticky;
|
|
766
|
-
width: 100%;
|
|
767
|
-
justify-content: center;
|
|
768
|
-
padding-top: ${e=>_n.wrapperPadding.valuePx(e.windowSize)};
|
|
769
|
-
padding-left: 20px;
|
|
770
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
771
|
-
`,nc=i.div`
|
|
772
|
-
width: 100%;
|
|
773
|
-
height: calc(100vh - ${t.Space.sp11});
|
|
774
|
-
`,sc=e=>{const{fluxView:s,handleRedirectToVendorDetailPage:l,updateOperatingExpensesIdsForReview:a,updateSectionIdsForReview:p,onSortOrderChanged:u,updateNodeCollapsableStatus:o,fetchReimbursementView:c,fetchGeneralExpenseView:r}=e,x=t.useWindowSizeContext(),d=n.useTheme(),[h,f]=m.useState(null),[y,j]=m.useState(null),[C,b]=m.useState(null),g=H.reduceAllFetchState([s.sections.generalExpense.fetchStatus,s.sections.reimbursement.fetchStatus]).fetchState,[w,_]=m.useState(!1),$=t.usePrevious(g),B=t.usePrevious(s.refreshStatus.fetchState),v=()=>{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)},R=()=>Object.keys(s.uiState.collapsableStatus).reduce((D,V)=>(D[V]=s.uiState.collapsableStatus[V],D),{}),I=m.useCallback(D=>{const V=!(s.uiState.collapsableStatus[D]??!0);o({...s.uiState.collapsableStatus,[D]:V})},[s.uiState.collapsableStatus,o]),A=m.useCallback((D,V)=>{let K=s.reviewOperatingExpensesIds;const U=[];let M=s.selectedSectionIds;const te=s.sections[D].vendors;U.push(...te.map(ne=>ne.fluxAnalysisEntityId));let ge=Ae.FLUX_MAX_SELECTION_LIMIT-K.length;V?(U.forEach(ne=>{!K.includes(ne)&&ge>0&&(K=[...K,ne],ge--)}),M=[...M,D]):(K=K.filter(ne=>!U.includes(ne)),M=M.filter(ne=>ne!==D)),a(K),p(M)},[s.reviewOperatingExpensesIds,s.selectedSectionIds,s.sections,a,p]),q=m.useCallback(D=>{const V=s.uiState.collapsableStatus[D]===!1;D==="generalExpense"&&!V&&s.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&c(s.uiState.paginationInfoByGroup.reimbursement.pageToken),I(D)},[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,J=D=>D<T;return m.useEffect(()=>{const D={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:_,onSectionRowClick:q,updateNodeCollapsableStatus:I,updateOperatingExpensesIdsForReview:a,handleRedirectToVendorDetailPage:l,onSectionCheckboxClick:A,onSortOrderChanged:u}};if(h==null||!n.isEqual(y,s)){const V=Za(s,D,!0);j(s),f(V)}else{const V=Qa(h,D,s,!0);f(V)}},[s,y,l,A,q,u,I,a]),n.jsxRuntimeExports.jsx(tc,{windowSize:x,children:n.jsxRuntimeExports.jsx(nc,{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:_n.contentPaddingLeft.value(x),right:_n.contentPaddingRight.value(x)},nodeOpenStatus:R(),compareMode:"compare_mode_amount",infiniteLoadingProps:{isItemLoaded:J,itemCount:T,loadMoreItems:v},variableNodeHeightTree:{prevFetchState:$??"Not-Started",fetchState:s.fetchStatus.fetchState,isSortApplied:w,setIsSortApplied:_,reducedFetchState:H.reduceAllFetchState([s.sections.generalExpense.fetchStatus,s.sections.reimbursement.fetchStatus]).fetchState,prevRefreshFetchState:B??"Not-Started",refreshFetchState:s.refreshStatus.fetchState},hoveredParentIdProps:{hoveredParentId:C,setHoveredParentId:b}}):null})})},oc="expenseAutomationFluxPage",{reports:{common:ic}}=t.appLocale.getLocalizedStrings(),rc=({selectedPeriod:e,fluxAnalysis:s,onFetchFluxViewList:l,markAsReview:a,onReloadPage:p,setCurrentFooterFormId:u,updateOperatingExpensesIdsForReview:o,updateSectionIdsForReview:c,onUpdateFluxAnalysisUIState:r,redirectToVendorDetailPage:x,fetchFluxViewOnScroll:d,onFetchReimbursementView:h})=>{const{fetchStatus:f,reviewOperatingExpensesIds:y,uiState:j}=s,C=m.useRef(null),b=m.useRef(!1),g=n.useForm({mode:"all",reValidateMode:"onChange",resetOptions:{keepDefaultValues:!0},defaultValues:ac(y)}),w=t.useWindowSizeContext();m.useEffect(()=>()=>{u("expenseAutomationPage")},[u]),m.useEffect(()=>{b.current&&C?.current?.scrollLeft!=null&&j.scrollPosition?.scrollLeft!==C.current.scrollLeft&&j.scrollPosition!=null&&r({scrollPosition:{scrollTop:j.scrollPosition?.scrollTop,scrollLeft:C.current.scrollLeft}})},[j.scrollPosition?.scrollLeft,C.current?.scrollLeft,j.scrollPosition,r]),m.useEffect(()=>{u(y.length>0?"expenseAutomationFluxPage":"expenseAutomationPage")},[y,u]);const _=R=>{x(R)},$=R=>{d(e,R)},B=(R,I)=>{r({sortOrder:R,sortKey:I}),l(),h(e,null,!1)},v=()=>{const R=co(s.sections,y);a(y,R===!0?"review":"unreview",e,!0)};if(f.fetchState==="Error")return n.jsxRuntimeExports.jsxs(lc,{children:[n.jsxRuntimeExports.jsx(dc,{onClick:p,children:n.jsxRuntimeExports.jsx(t.SvgReload,{})}),n.jsxRuntimeExports.jsx(uc,{children:ic.failed})]});{const R=A=>{r({collapsableStatus:A})},I=A=>{h(e,A,!0)};return n.jsxRuntimeExports.jsx(n.FormProvider,{...g,children:n.jsxRuntimeExports.jsx("form",{id:t.uniqueName$1(oc),onSubmit:g.handleSubmit(v),style:{height:"100%",width:"100%"},children:n.jsxRuntimeExports.jsx(cc,{windowSize:w,children:n.jsxRuntimeExports.jsx(sc,{fluxView:s,handleRedirectToVendorDetailPage:_,onSortOrderChanged:B,updateOperatingExpensesIdsForReview:o,updateNodeCollapsableStatus:R,fetchReimbursementView:I,updateSectionIdsForReview:c,fetchGeneralExpenseView:$,reportId:"flux_analysis_operating_expense"})})})})}},co=(e,s)=>{const a=[...e.generalExpense.vendors,...e.reimbursement.vendors].filter(u=>u.status==="Pending Review");let p;return a.forEach(u=>{s.includes(u.fluxAnalysisEntityId)&&(p=!0)}),p},ac=e=>({fluxAnalysisRowIds:e}),cc=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
|
-
`,lc=i.div`
|
|
802
|
-
display: flex;
|
|
803
|
-
width: 100%;
|
|
804
|
-
height: 100vh;
|
|
805
|
-
flex-direction: column;
|
|
806
|
-
justify-content: center;
|
|
807
|
-
align-items: center;
|
|
808
|
-
`,dc=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
|
-
`,uc=i(t.SmallRegular)`
|
|
824
|
-
margin-top: ${t.Space.sp3};
|
|
825
|
-
color: ${e=>e.theme.colors.hero};
|
|
826
|
-
`,pc="expenseAutomationJEAccountSettingsPage",lo="vendorsAccountSection",mc=e=>`${e}_form`;function xc({accountSettings:e,currentFooterFormId:s,onSaveJeAccountSettingsClick:l,setIsJeAccountSettingsOpened:a,onJeAccountSettingsChange:p,setResetJeAccountSettingsForm:u,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]),f=m.useMemo(()=>t.getGroupedAccountOptions(e.accruedExpensesAccountHierarchy,x,"Accounts"),[e.accruedExpensesAccountHierarchy,x]),y=m.useMemo(()=>gc(e,d,h,f),[e,d,h,f]),j=n.useForm({mode:"all",reValidateMode:"onBlur",defaultValues:y,values:y,resetOptions:{keepDefaultValues:!0}}),C=j.handleSubmit(g=>{l(g)}),b=async g=>{p(g)};return m.useEffect(()=>{const g=j.watch(w=>{w!=null&&n.defer(()=>b(w))});return()=>{g.unsubscribe()}}),m.useEffect(()=>(u(()=>j.reset),a(!0),()=>{o("expenseAutomationPage"),a(!1)}),[]),m.useEffect(()=>{const{selectedPrepaidExpensesAccountIds:g,previousPrepaidExpensesAccount:w,selectedFixedAssetsAccountIds:_,previousFixedAssetsAccount:$,selectedAccruedExpensesAccountIds:B,previousAccruedExpensesAccount:v}=e.accountSettingsLocalData,R=t.compareCurrentAndPreviousList(g,w)||t.compareCurrentAndPreviousList(_,$)||t.compareCurrentAndPreviousList(B,v);R===!0&&s!="expenseAutomationJEAccountSettingsPage"?o("expenseAutomationJEAccountSettingsPage"):R===!1&&s!=="expenseAutomationPage"&&o("expenseAutomationPage")},[e,s,o]),n.jsxRuntimeExports.jsx(hc,{children:n.jsxRuntimeExports.jsx(n.FormProvider,{...j,children:n.jsxRuntimeExports.jsx("form",{id:mc(pc),onSubmit:C,children:n.jsxRuntimeExports.jsx(Io.VendorsAccountsSection,{showTitle:!1,sectionId:lo,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 hc=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
|
-
`,gc=(e,s,l,a)=>{const p=e.prepaidExpensesAccountList.filter(d=>e.accountSettingsLocalData.selectedPrepaidExpensesAccountIds.includes(d.accountId)),u=e.fixedAssetsAccountList.filter(d=>e.accountSettingsLocalData.selectedFixedAssetsAccountIds.includes(d.accountId)),o=e.accruedExpensesAccountList.filter(d=>e.accountSettingsLocalData.selectedAccruedExpensesAccountIds.includes(d.accountId)),c=p.map(d=>d.qboId).filter(d=>d!=null),r=u.map(d=>d.qboId).filter(d=>d!=null),x=o.map(d=>d.qboId).filter(d=>d!=null);return{[lo]:{prepaidExpensesAccount:{selectedOptions:c,allOptions:s},fixedAssetsAccount:{selectedOptions:r,allOptions:l},accruedExpensesAccount:{selectedOptions:x,allOptions:a}}}},{expenseAutomation:{jeSchedules:ht},common:{currency:Qt,review:jc,ignore:fc,strings:{hyphen:at},texts:en},dateFormat:yc,timeframe:{month:ds}}=t.appLocale.getLocalizedStrings(),Sc=({draft:e,ignoreStatus:s,ignoreRecommendedJeSchedule:l,jeScheduleClickHandler:a,onReviewClickHandler:p})=>n.jsxRuntimeExports.jsxs(zn,{onClick:u=>{e.jeScheduleType!=null&&e.jeScheduleId!=null&&a(u,e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":t.generateDataTestId("je-schedule-draft-component",e.jeScheduleId),children:[n.jsxRuntimeExports.jsxs(Fn,{children:[n.jsxRuntimeExports.jsxs(Wn,{children:[n.jsxRuntimeExports.jsxs(Nn,{children:[n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{children:en.vendor}),n.jsxRuntimeExports.jsxs(ie,{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(Fe,{children:e.vendor.name}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.vendor.name??at})})]})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(oe,{children:ht.scheduleHeaders.scheduleCategory}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:e.baseTransaction.account.accountName!=null?n.jsxRuntimeExports.jsx(Fe,{children:e.baseTransaction.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.baseTransaction.account.accountName??at})})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:ht.scheduleHeaders.startMonth}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.startDate?.format(yc.visual.MMMCommaYYYYFormat)??at})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(oe,{children:ht.scheduleHeaders.period}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.period!=null?`${e.period} ${e.period===1?ds.slice(0,-1):ds}`:at})})]}),n.jsxRuntimeExports.jsxs(X,{style:{alignItems:"flex-end",width:me.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(oe,{children:en.totalAmount}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:n.jsxRuntimeExports.jsx(Fe,{children:t.amountToString("0,0.[00]",H.toAmount(e.baseTransaction.amount.amount,Qt.currencyCode,Qt.currencySymbol))??at}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:t.amountToString("0,0.[00]",H.toAmount(e.baseTransaction.amount.amount,Qt.currencyCode,Qt.currencySymbol))??at})})})]})]}),n.jsxRuntimeExports.jsxs(Pn,{children:[n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{children:en.category}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Fe,{children:e.jeDebit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.jeDebit.account?.accountName??at})})})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(oe,{children:en.classText}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.accountingClass?.className!=null?n.jsxRuntimeExports.jsx(Fe,{children:e.jeDebit.accountingClass.className}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.jeDebit.accountingClass?.className??at})})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:ht.scheduleHeaders.type}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",style:{width:"unset"},children:n.jsxRuntimeExports.jsx(eo,{children:ht.scheduleTypes[e.jeScheduleType??"prepaid_expenses"]})})})]}),e.jeScheduleType==="fixed_assets"?n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(oe,{children:ht.scheduleHeaders.accumulatedCategory}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:e.jeCredit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Fe,{children:e.jeCredit.account?.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.jeCredit.account?.accountName??at})})})]}):null,e.jeScheduleType!=="fixed_assets"?n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_FOUR}}):null,n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_FIVE}})]})]}),n.jsxRuntimeExports.jsxs(Hn,{children:[n.jsxRuntimeExports.jsx(t.Button,{onClick:()=>{e.jeScheduleId!=null&&e.jeScheduleType!=null&&p(e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":t.generateDataTestId("je-schedule-draft-component-review-button",e.jeScheduleId),label:jc,variant:"primary",size:"small",className:"item-value-container",style:{minWidth:On}}),n.jsxRuntimeExports.jsx(t.Button,{"data-testid":t.generateDataTestId("je-schedule-draft-component-ignore-button",e.jeScheduleId),className:"item-value-container",label:fc,size:"small",reverseSpinnerColor:!1,loading:s?.fetchState==="In-Progress",onClick:()=>{e.jeScheduleType!=null&&l(e.jeScheduleTransactionKey,e.jeScheduleType)},style:{minWidth:On}})]})]}),n.jsxRuntimeExports.jsxs(Wr,{children:[n.jsxRuntimeExports.jsx(Rc,{}),n.jsxRuntimeExports.jsx(Cc,{children:ht.aiAccountant}),n.jsxRuntimeExports.jsx(Ec,{children:ht.zeniGPTText})]})]}),Rc=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
|
-
`,Cc=i(t.StandardBold)`
|
|
842
|
-
color: ${e=>e.theme.colors.brandColorSapphire};
|
|
843
|
-
`,Ec=i(t.StandardRegular)`
|
|
844
|
-
color: ${e=>e.theme.colors.primary};
|
|
845
|
-
`,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:us}}},expenseAutomation:{jeSchedules:_e},common:{currency:et,retry:vc,strings:{hyphen:Pe,empty:ps},texts:Ot},dateFormat:ms}=t.appLocale.getLocalizedStrings(),{common:bc,timeframe:{month:xs}}=t.appLocale.getLocalizedStrings(),Ke="jeSchedulePage",hs=e=>`${e}_form`,Vn=(e,s)=>`${e}.${s}`,gs=Vn(Ke,"vendor"),js=Vn(Ke,"scheduleExpenseCategory"),fs=Vn(Ke,"accumulatedDepreciationCategory"),wc=({allAccountGroupedOptions:e,allAccountList:s,allClassGroupedOptions:l,allClassList:a,allDepAccountGroupedOptions:p,allDepAccountList:u,draft:o,localData:c,postStatus:r,uncategorizedAccounts:x,vendorSearchAutoCompleteActions:d,vendorSearchAutoCompleteData:h,jeScheduleClickHandler:f,onFormDataChange:y,onPostJESchedule:j})=>{const{updatedAccumulatedDepreciationCategoryID:C,updatedCategoryId:b,updatedVendor:g}=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"},_=m.useRef(),$=n.useForm({mode:"all",reValidateMode:"onChange",defaultValues:ys(c,e,l,p,s,a,u,h.entityAutoCompleteView),values:ys(c,e,l,p,s,a,u,h.entityAutoCompleteView)}),B={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:t.Space.sp4}),menu:()=>({width:300})},v={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:t.Space.sp4}),menu:()=>({width:350})},I=(o?.scheduledJournalEntry.error??[]).every(E=>{const W=w[E];return!(c!=null&&W&&(W==="updatedAccumulatedDepreciationCategoryID"&&c.updatedAccumulatedDepreciationCategoryID==null||W==="updatedCategoryId"&&c.updatedCategoryId==null||W==="updatedVendor"&&(c.updatedVendor?.id==null||c.updatedVendor?.id===""||c.updatedVendor?.name==null||c.updatedVendor?.name==="")))}),A=async(E,W)=>{if(E!=null){const Y=W[Ke],{scheduledJournalEntryID:O,vendor:F}=Y;if(E.includes("vendor")){const G=F?.defaultOptions.map(Z=>Z.value);if(F?.selectedOption!=null&&G?.includes(F.selectedOption)!==!0){const Z=h.entityAutoCompleteView.vendor.find(fe=>fe.id===F.selectedOption);Z!=null&&$.setValue(`${Ke}.vendor.defaultOptions`,[{label:Z.name??bc.strings.empty,value:Z.id}])}else F?.selectedOption==null&&F?.defaultOptions.length!==0&&$.setValue(`${Ke}.vendor`,{selectedOption:void 0,defaultOptions:[]})}y(O,{...Y,vendor:F})}};m.useEffect(()=>{const E=$.watch((W,{name:Y})=>{Y!=null&&W!=null&&n.defer(()=>A(Y,W))});return()=>{E.unsubscribe()}}),m.useEffect(()=>{h.entityAutoCompleteView.fetchState==="Completed"&&_.current?.(t.getVendorOptions(h.entityAutoCompleteView))},[h.entityAutoCompleteView.fetchState]);const q=$.handleSubmit(()=>{j(o.scheduledJournalEntry.scheduledJournalEntryID,o.jeScheduleTransactionKey)}),T=E=>s.filter(Y=>Y.qboId===E)[0]?.qboId,J=E=>u.filter(Y=>Y.qboId===E)[0]?.qboId,D=E=>[x.expense?.qboId,x.income?.qboId].includes(E),V=$.watch("jeSchedulePage.vendor"),K=(E,W)=>{d.onAutoCompleteInputChange?.(E,"vendor"),_.current=W},U=o.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,M=o.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,te=o.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,ge=o.vendor.name.split("(deleted)")[0]?.toString(),ne=o.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??ps,Q=o.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??ps,[ae,z]=m.useState(M===!0&&b==null),[L,ee]=m.useState(te===!0&&C==null),[N,P]=m.useState(U&&(g?.id==null||g?.id==""));return m.useEffect(()=>{ae===!1&&c.updatedCategoryId==null&&$.setFocus(js),L===!1&&c.updatedAccumulatedDepreciationCategoryID==null&&$.setFocus(fs),N===!1&&c.updatedVendor?.id==null&&$.setFocus(gs)},[ae,L,N,c,$]),n.jsxRuntimeExports.jsx(n.FormProvider,{...$,children:n.jsxRuntimeExports.jsx("form",{style:{width:"100%"},id:hs(`${Ke}_${o.jeScheduleId}`),onSubmit:q,children:n.jsxRuntimeExports.jsx(zn,{showBorder:I,onClick:E=>{o.jeScheduleType!=null&&o.jeScheduleId!=null&&f(E,o.jeScheduleId,o.jeScheduleTransactionKey,o.jeScheduleType)},"data-testid":t.generateDataTestId("je-schedule-resolve-component-schedule",`${Ke}_${o.jeScheduleId}`),children:n.jsxRuntimeExports.jsxs(Fn,{children:[n.jsxRuntimeExports.jsxs(Wn,{children:[n.jsxRuntimeExports.jsxs(Nn,{children:[U===!0?n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_ONE,padding:t.sp[0],justifyContent:"center"},showHoverEffect:U,forceHoverEffect:N===!1&&(c?.updatedVendor?.id==null||c?.updatedVendor?.id==""),children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",style:{padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsxs(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:[Ot.vendor,n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"top-start",title:n.jsxRuntimeExports.jsx(sn,{children:_e.tooltipText.missingVendor.replace("_deleted_vendor_",ge)}),children:n.jsxRuntimeExports.jsx(mn,{})})]}),n.jsxRuntimeExports.jsx(ie,{style:{gap:t.sp[3],marginLeft:-2},className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:N===!0?n.jsxRuntimeExports.jsxs(de,{onClick:E=>{E.stopPropagation(),P(!1)},"data-testid":t.generateDataTestId("je-schedule-resolve-component-add-vendor-button",`${Ke}_${o.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:t.sp[2],color:t.Colors.brandColorGoldDark,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(pn,{}),us]}):n.jsxRuntimeExports.jsx(t.AutoCompleteSingleSelectField,{name:gs,placeholder:us,valueToId:E=>E,defaultValue:{selectedOption:V?.selectedOption,defaultOptions:V?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:t.Space.sp4})},registerOptions:{required:!0,validate:E=>!!E.selectedOption},loadOptions:K})})})]})}):n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp0} ${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{children:Ot.vendor}),n.jsxRuntimeExports.jsx(ie,{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(Fe,{children:o.vendor.name}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.vendor.name??Pe})})]})})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(oe,{children:_e.scheduleHeaders.scheduleCategory}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.baseTransaction.account.accountName!=null?n.jsxRuntimeExports.jsx(Fe,{children:o.baseTransaction.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.baseTransaction.account.accountName??Pe})})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:_e.scheduleHeaders.startMonth}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.startDate?.format(ms.visual.MMMCommaYYYYFormat)??Pe})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(oe,{children:_e.scheduleHeaders.period}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.period!=null?`${o.period} ${o.period===1?xs.slice(0,-1):xs}`:Pe})})]}),n.jsxRuntimeExports.jsxs(X,{style:{alignItems:"flex-end",width:me.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(oe,{children:Ot.totalAmount}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:n.jsxRuntimeExports.jsx(Fe,{children:t.amountToString("0,0.[00]",H.toAmount(o.baseTransaction.amount.amount,et.currencyCode,et.currencySymbol))??Pe}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:t.amountToString("0,0.[00]",H.toAmount(o.baseTransaction.amount.amount,et.currencyCode,et.currencySymbol))??Pe})})})]})]}),n.jsxRuntimeExports.jsxs(Pn,{children:[M===!0?n.jsxRuntimeExports.jsx(X,{showHoverEffect:M===!0,forceHoverEffect:c?.updatedCategoryId==null&&ae===!1,style:{padding:"unset",justifyContent:"center",width:me.COLUMN_ONE},children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",children:[n.jsxRuntimeExports.jsxs(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:[Ot.category,M===!0?n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"top-start",title:n.jsxRuntimeExports.jsx(sn,{children:_e.tooltipText.missingCategory.replace("_deleted_category_",ne)}),children:n.jsxRuntimeExports.jsx(mn,{})}):null]}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",style:{marginLeft:M===!0?-2:0},children:M===!0?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:ae===!0?n.jsxRuntimeExports.jsxs(de,{onClick:E=>{E.stopPropagation(),z(!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",`${Ke}_${o.jeScheduleId}`),children:[n.jsxRuntimeExports.jsx(pn,{}),_e.addCategory]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,name:js,placeholder:_e.addCategory,valueToId:E=>T(E),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:E=>!!E.selectedOption},disableCurrentOption:D,customStyleConfig:B})}):n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Fe,{children:o.jeDebit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.jeDebit.account?.accountName??Pe})})})]})}):n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:Ot.category}),n.jsxRuntimeExports.jsx(ie,{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(Fe,{children:o.jeDebit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.jeDebit.account?.accountName??Pe})})})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:Ot.classText}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.accountingClass?.className!=null?n.jsxRuntimeExports.jsx(Fe,{children:o.jeDebit.accountingClass.className}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.jeDebit.accountingClass?.className??Pe})})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:_e.scheduleHeaders.type}),n.jsxRuntimeExports.jsx(ie,{className:"test",children:n.jsxRuntimeExports.jsx(de,{className:"highlight",style:{width:"unset"},children:n.jsxRuntimeExports.jsx(eo,{children:_e.scheduleTypes[o.jeScheduleType??"prepaid_expenses"]})})})]}),o.jeScheduleType==="fixed_assets"?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:te===!0?n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_FOUR,padding:"unset",justifyContent:"center"},showHoverEffect:te,forceHoverEffect:c.updatedAccumulatedDepreciationCategoryID==null&&L===!1,children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",style:{padding:t.sp[2],paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsxs(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:[_e.scheduleHeaders.accumulatedCategory,te===!0?n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"top-end",title:n.jsxRuntimeExports.jsx(sn,{children:_e.tooltipText.missingDepCategory.replace("_deleted_dep_category_",Q)}),children:n.jsxRuntimeExports.jsx(mn,{})}):null]}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",style:{marginLeft:te===!0?-2:0},children:te===!0?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:L===!0?n.jsxRuntimeExports.jsxs(de,{onClick:E=>{E.stopPropagation(),ee(!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",`${Ke}_${o.jeScheduleId}`),children:[n.jsxRuntimeExports.jsx(pn,{}),_e.addDepCategory]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:fs,placeholder:_e.addDepCategory,valueToId:E=>J(E),defaultValue:{allOptions:p},registerOptions:{required:!0,validate:E=>!!E.selectedOption},customStyleConfig:v,disableCurrentOption:D})}):n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:o.jeCredit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Fe,{children:o.jeCredit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.jeCredit.account?.accountName??Pe})})})]})}):n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_FOUR,padding:`${t.Space.sp2} ${t.Space.sp2} ${t.Space.sp2} ${t.Space.sp3}`,justifyContent:"center"},children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:_e.scheduleHeaders.accumulatedCategory}),n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:o.jeCredit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Fe,{children:o.jeCredit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.jeCredit.account?.accountName??Pe})})]})}):null,o.jeScheduleType!=="fixed_assets"?n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_FOUR}}):null,n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_FIVE}})]}),n.jsxRuntimeExports.jsxs(zr,{children:[n.jsxRuntimeExports.jsx(X,{style:{padding:"unset",width:me.COLUMN_ONE},children:n.jsxRuntimeExports.jsxs(Hr,{children:[n.jsxRuntimeExports.jsx(oe,{children:_e.scheduleHeaders.jePostingDate}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.scheduledJournalEntry.expectedPostDate.format(ms.visual.MMMDCommaYYFormat)??Pe})})]})}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(oe,{children:_e.scheduleHeaders.balance}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:n.jsxRuntimeExports.jsx(Fe,{children:t.amountToString("0,0.[00]",H.toAmount(o?.scheduledJournalEntry?.runningBalance?.amount??0,et.currencyCode,et.currencySymbol))??Pe}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:t.amountToString("0,0.[00]",H.toAmount(o?.scheduledJournalEntry?.runningBalance?.amount??0,et.currencyCode,et.currencySymbol))??Pe})})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:_e.scheduleHeaders.months}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsxs(de,{className:"highlight",children:[o.scheduledJournalEntry.expectedPostDate.diff(o.startDate,"month")+1,"/",o.period]})})]}),n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_FOUR}}),n.jsxRuntimeExports.jsxs(X,{style:{alignItems:"flex-end",width:me.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(oe,{children:_e.scheduleHeaders.amountForMonth}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:t.amountToString("0,0.[00]",H.toAmount(o.scheduledJournalEntry.amount?.amount??0,et.currencyCode,et.currencySymbol))??Pe})})]})]})]}),n.jsxRuntimeExports.jsx(Hn,{children:n.jsxRuntimeExports.jsx(t.Button,{form:hs(`${Ke}_${o.jeScheduleId}`),label:vc,variant:"primary",className:"item-value-container",type:"submit",loading:r?.fetchState==="In-Progress",size:"small",disabled:!I,style:{minWidth:On}})})]})})})})},ys=(e,s,l,a,p,u,o,c)=>{const r=e.updatedCategoryId,x=e.updatedVendor,d=x!=null?c.vendor.find(b=>b.zeniId===x.id):void 0,h=e.updatedAccumulatedDepreciationCategoryID,f=e.updatedClassId,y=r!=null?p.find(b=>b.accountId===r):void 0,j=h!=null?o.find(b=>b.accountId===h):void 0,C=f!=null?u.find(b=>b.classId===f):void 0;return{[Ke]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:y?.qboId,allOptions:s},accumulatedDepreciationCategory:{selectedOption:j?.qboId,allOptions:a},vendor:{selectedOption:d?.id??x?.id,defaultOptions:t.getDefaultVendorOptions$1(c,d??x)},scheduleClass:{selectedOption:C?.classId,allOptions:l}}}},pn=i(t.SvgAddRound)`
|
|
846
|
-
width: ${t.Space.sp3};
|
|
847
|
-
height: ${t.Space.sp3};
|
|
848
|
-
`,mn=i(t.SvgAlertRound)`
|
|
849
|
-
width: 12px;
|
|
850
|
-
height: 12px;
|
|
851
|
-
color: ${t.Colors.important};
|
|
852
|
-
`;function uo(){return n.jsxRuntimeExports.jsx(Ys,{children:n.jsxRuntimeExports.jsxs(Zs,{children:[n.jsxRuntimeExports.jsxs(Xs,{children:[n.jsxRuntimeExports.jsx(Le,{width:t.sp[9],height:27,style:{marginBottom:t.sp[2]}}),n.jsxRuntimeExports.jsx(Ss,{})]}),n.jsxRuntimeExports.jsxs(Qs,{children:[n.jsxRuntimeExports.jsx(Le,{width:t.sp[9],height:27,style:{marginBottom:t.sp[2]}}),n.jsxRuntimeExports.jsx(Ss,{})]})]})})}const Ss=()=>n.jsxRuntimeExports.jsx(zn,{style:{minWidth:1088},children:n.jsxRuntimeExports.jsxs(Fn,{children:[n.jsxRuntimeExports.jsxs(Wn,{children:[n.jsxRuntimeExports.jsxs(Nn,{children:[n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{width:t.sp[10],height:14})}),n.jsxRuntimeExports.jsxs(ie,{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(X,{children:[n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{width:101,height:14})}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:203})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{width:t.sp[9],height:14})}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:71})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{width:107,height:14})}),n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:68})]}),n.jsxRuntimeExports.jsxs(X,{style:{alignItems:"flex-end",width:me.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{width:73,height:14})}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:49})})]})]}),n.jsxRuntimeExports.jsxs(Pn,{children:[n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{width:49,height:14})}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:158})})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{width:36,height:14})}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:88})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{width:36,height:14})}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:100})})]}),n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_FOUR,paddingLeft:t.sp[3]}}),n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_FIVE}})]})]}),n.jsxRuntimeExports.jsxs(Hn,{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:Ic,resolve:Tc}}=t.appLocale.getLocalizedStrings();function kc({jeSchedules:e,vendorSearchAutoCompleteData:s,handleJeScheduleClick:l,onJESchedulesFormDataChange:a,onPostJESchedule:p,ignoreRecommendedJeSchedule:u,vendorSearchAutoCompleteActions:o,setCurrentFooterFormId:c}){const r=e.draftSchedules,x=e.jeScheduleLocalDataById,d=e.postStatusById,h=e.ignoreStatusById,f=e.resolveSchedules,y=e.uncategorizedAccounts,{allAccountList:j,allClassList:C,allDepreciationAccountList:b}=e,g=t.getGroupedAccountOptions(e.accountListNestedAccountHierarchy),w=t.getGroupedAccountOptions(e.allDepreciationAccountListNestedAccountHierarchy),_=t.getGroupedClassOptions(e.classListNestedAccountHierarchy),$=(v,R,I)=>{l(v,R,I)},B=(v,R,I,A)=>{let T=v.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(R,I,A)};return m.useEffect(()=>{if(f.length!==0){for(const v in x)if(Object.prototype.hasOwnProperty.call(x,v)){const{updatedAccumulatedDepreciationCategoryID:R,updatedCategoryId:I,updatedVendor:A}=x[v];if(R!=null||I!=null||A!=null&&A?.id!==""){c("expenseAutomationJESchedulePage");break}else c("expenseAutomationPage")}}else f.length===0&&c("expenseAutomationPage")}),m.useEffect(()=>()=>{c("expenseAutomationPage")},[]),e.fetchState==="In-Progress"?n.jsxRuntimeExports.jsx(uo,{}):r.length!==0||f.length!==0?n.jsxRuntimeExports.jsx(Ys,{children:n.jsxRuntimeExports.jsxs(Zs,{children:[r.length>0?n.jsxRuntimeExports.jsxs(Xs,{children:[n.jsxRuntimeExports.jsxs(Cs,{children:[Ic,n.jsxRuntimeExports.jsx(Es,{isCircular:r.length<10,children:n.jsxRuntimeExports.jsx(vs,{children:r.length})})]}),n.jsxRuntimeExports.jsx(Rs,{"data-testid":t.generateDataTestId("expense-automation","draft-je-schedules"),children:r.map((v,R)=>n.jsxRuntimeExports.jsx(Sc,{ignoreStatus:h[v.jeScheduleTransactionKey],ignoreRecommendedJeSchedule:u,onReviewClickHandler:$,jeScheduleClickHandler:B,draft:v},`${R}_${v.jeScheduleId}`))})]}):null,f.length>0?n.jsxRuntimeExports.jsxs(Qs,{children:[n.jsxRuntimeExports.jsxs(Cs,{children:[Tc,n.jsxRuntimeExports.jsx(Es,{isCircular:f.length<10,children:n.jsxRuntimeExports.jsx(vs,{children:f.length})})]}),n.jsxRuntimeExports.jsx(Rs,{"data-testid":t.generateDataTestId("expense-automation","resolve-je-schedules"),children:f.map((v,R)=>x[v.scheduledJournalEntry.scheduledJournalEntryID]==null?null:n.jsxRuntimeExports.jsx(wc,{vendorSearchAutoCompleteActions:o,vendorSearchAutoCompleteData:s,jeScheduleClickHandler:B,onPostJESchedule:p,uncategorizedAccounts:y,allAccountList:j,allAccountGroupedOptions:g,allClassGroupedOptions:_,allClassList:C,allDepAccountGroupedOptions:w,allDepAccountList:b,draft:v,postStatus:d[v.scheduledJournalEntry.scheduledJournalEntryID],localData:x[v.scheduledJournalEntry.scheduledJournalEntryID],onFormDataChange:a},`${R}_${v.jeScheduleTransactionKey}`))})]}):null]})}):null}const Rs=i.div`
|
|
855
|
-
display: flex;
|
|
856
|
-
flex-direction: column;
|
|
857
|
-
gap: ${t.Space.sp4};
|
|
858
|
-
min-width: 1088px;
|
|
859
|
-
`,Cs=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
|
-
`,Es=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?Be.css`
|
|
872
|
-
height: ${t.Space.sp3};
|
|
873
|
-
width: ${t.Space.sp3};
|
|
874
|
-
padding: ${t.Space.sp0};
|
|
875
|
-
`:Be.css`
|
|
876
|
-
height: 18px;
|
|
877
|
-
padding: ${t.customCountCapsulePadding.padding};
|
|
878
|
-
`}
|
|
879
|
-
`,vs=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 $c({expenseAutomationViewSelector:e,currentFooterFormId:s,setResetJeAccountSettingsForm:l,vendorSearchAutoCompleteData:a,onJESchedulesFormDataChange:p,onPostJESchedule:u,handleJeScheduleClick:o,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,ignoreRecommendedJeSchedule:x,vendorSearchAutoCompleteActions:d,setCurrentFooterFormId:h,setIsJeAccountSettingsOpened:f}){const{jeSchedules:y}=e;return y.fetchState==="In-Progress"||y.accountSettingsView.fetchState==="In-Progress"?n.jsxRuntimeExports.jsx(uo,{}):y.accountSettingsView.fetchState==="Completed"&&y.accountSettingsView.accountSettingsLocalData.previousPrepaidExpensesAccount.length===0&&y.accountSettingsView.accountSettingsLocalData.previousFixedAssetsAccount.length===0?n.jsxRuntimeExports.jsx(xc,{setIsJeAccountSettingsOpened:f,setResetJeAccountSettingsForm:l,currentFooterFormId:s,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,accountSettings:y.accountSettingsView,setCurrentFooterFormId:h}):y.fetchState==="Completed"&&y.draftSchedules.length===0&&y.resolveSchedules.length===0?n.jsxRuntimeExports.jsx(dt,{tab:e.currentSelectedView,title:Ne(e.currentSelectedView).allDoneText.title,subTitle:Ne(e.currentSelectedView).allDoneText.subTitle}):y.fetchState==="Completed"?n.jsxRuntimeExports.jsx(kc,{setCurrentFooterFormId:h,handleJeScheduleClick:o,ignoreRecommendedJeSchedule:x,jeSchedules:e.jeSchedules,onJESchedulesFormDataChange:p,onPostJESchedule:u,vendorSearchAutoCompleteActions:d,vendorSearchAutoCompleteData:a}):null}const Lc=72,po=50,Ac=1,Oc=["receipts"],bs=e=>H.stringToUnionStrict(e,Oc),{common:{texts:{vendor:Dc,amount:_c,receipts:Bc,category:Mc,classText:Nc,date:Pc}}}=t.appLocale.getLocalizedStrings(),Fc={key:"vendor",value:Dc,sortOrder:"ascending",width:new t.ResponsiveSized(18,18)},zc={key:"category",value:Mc,sortOrder:"ascending",width:new t.ResponsiveSized(18,18)},Hc={key:"class",value:Nc,sortOrder:"ascending",width:new t.ResponsiveSized(18,18)},Wc={key:"date",value:Pc,sortOrder:"descending",width:new t.ResponsiveSized(11,11)},Vc={key:"receipts",value:Bc,sortOrder:"descending",width:new t.ResponsiveSized(6,6)},qc={key:"amount",value:_c,sortOrder:"ascending",width:new t.ResponsiveSized(10,10)},nt=[Fc,zc,Hc,Wc,Vc,qc],xn={sortKey:"date",sortOrder:"descending"},ws={containerPaddingLeftRight:new t.ResponsiveSized(t.sp[3],t.sp[4])},mo=({sortConfig:e,isDisabled:s,onColumnSortConfigChanged:l})=>{const a=t.useWindowSizeContext(),[p,u]=m.useState(nt);m.useEffect(()=>{const r=[...p];for(const x of r)x.key===e.sortKey?x.sortOrder=e.sortOrder:x.sortOrder="ascending";u(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=>{bs(r.key)==null&&o(H.toExpenseAutomationMissingReceiptsSortKey(r.key),r.sortOrder)};return n.jsxRuntimeExports.jsx(Uc,{windowSize:a,children:p.map((r,x)=>{const d=s!=null||bs(r.key)!=null;return n.jsxRuntimeExports.jsxs(Gc,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,isSortDisabled:d,windowSize:a,isLastItem:x===p.length-1,style:r.key==="receipts"?{justifyContent:"center"}:void 0,children:[n.jsxRuntimeExports.jsxs(Xc,{onClick:()=>d?null:c(r),isSortDisabled:d,children:[n.jsxRuntimeExports.jsx(Qc,{children:r.value}),d?null:n.jsxRuntimeExports.jsx(Jc,{sortConfig:e,headerData:r,children:n.jsxRuntimeExports.jsx(Zc,{})})]}),d?null:n.jsxRuntimeExports.jsx(Yc,{isSortDisabled:d,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==xn.sortKey,children:n.jsxRuntimeExports.jsx(Kc,{onClick:()=>{d||o(xn.sortKey,xn.sortOrder)},"data-testid":t.generateDataTestId("missing-receipts-header-close-icon",r.key)})})]},r.key)})})},Uc=i.div`
|
|
888
|
-
top: ${t.Space.sp0};
|
|
889
|
-
left: ${t.Space.sp0};
|
|
890
|
-
height: ${po}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=>ws.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
899
|
-
padding-right: ${e=>ws.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
900
|
-
`,Gc=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
|
-
`,Kc=i(t.SvgCloseRound)`
|
|
914
|
-
width: ${t.Space.sp2};
|
|
915
|
-
height: ${t.Space.sp2};
|
|
916
|
-
cursor: pointer;
|
|
917
|
-
`,Jc=i.div`
|
|
918
|
-
display: flex;
|
|
919
|
-
align-items: center;
|
|
920
|
-
transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
921
|
-
`,Yc=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
|
-
`,Zc=i(t.SvgArrowTailTop)`
|
|
929
|
-
width: ${t.Space.sp2};
|
|
930
|
-
height: ${t.Space.sp2};
|
|
931
|
-
`,Xc=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
|
-
`,Qc=i(t.ExtraSmallRegular)`
|
|
939
|
-
display: flex;
|
|
940
|
-
`,{common:{strings:{underscore:xo,hyphen:hn,empty:Is},documents:{singleFileUploadSizeErrorMessage:el,multipleFileUploadSizeErrorMessage:tl},snackBar:{missing_receipts_attachment:{failed:nl}},tooltips:{addMissingReceipt:sl}},dateFormat:ol}=t.appLocale.getLocalizedStrings(),tn={containerPaddingLeftRight:new t.ResponsiveSized(t.sp[3],t.sp[4]),containerPaddingTopBottom:new t.ResponsiveSized(t.sp[2],t.sp[3])},il=({transaction:e,uploadReceiptsFetchState:s,receiptUploadEndpoint:l,authParams:a,selectedPeriod:p,onUploadReceiptComplete:u,onMissingReceiptsRowClick:o,onUploadReceiptFetchStatus:c,onUploadReceiptAttachment:r})=>{const x=t.useWindowSizeContext(),d=m.useRef(null),h=m.useCallback(async(j,C,b,g,w)=>{c(e.id,"In-Progress"),await Ht.uploadAttachment(j,C,b,g,w).then(({uploadResponse:_,errorMessage:$})=>{_!=null?_.transaction.attachments!=null&&(r(_.transaction),setTimeout(()=>u(_.transaction,p),2e3)):c(e.id,"Error",{code:500,message:nl},$)}).catch(_=>{c(e.id,"Error",_)})},[e.id,p,r,u,c]),f=m.useCallback(j=>{if(j.target.files!=null){const C=j.target.files,b=[],g=[];for(let w=0;w<C.length;w++)b.push(C[w].name),g.push(C[w]);h(l,a,C[0],C[0].name,{id:e.id,type:e.type})}},[a,h,l,e.id,e.type]),y=m.useCallback(()=>{d.current?.click()},[d]);return n.jsxRuntimeExports.jsx(ho,{windowSize:x,onClick:()=>o(e.id,e.type),"data-testid":t.generateDataTestId("missing-receipts-list-row",e.id),children:nt.map((j,C)=>{const b=`${e.id}${xo}${j.key}`;switch(j.key){case"vendor":default:return n.jsxRuntimeExports.jsx(wt,{windowSize:x,wrapperWidth:j.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:x,isLastItem:C===nt.length-1,children:n.jsxRuntimeExports.jsxs(on,{children:[n.jsxRuntimeExports.jsx(t.EntityLogoAvatarWithCustomFallback,{photoUrl:e.vendorId!=null?e.logo?.toString()??Is:Is,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(pl,{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"}})]})})},b);case"category":case"class":{const g=e.lines!=null&&e.lines.length>0&&e.lines[0]?.account!=null&&e.lines[0].account.accountName?e.lines[0].account.accountName:hn,w=e.lines!=null&&e.lines.length>0&&e.lines[0]?.class!=null&&e.lines[0].class.className?e.lines[0].class.className:hn,_=j.key==="category"?g:w;return n.jsxRuntimeExports.jsx(wt,{windowSize:x,wrapperWidth:j.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:x,isLastItem:C===nt.length-1,children:n.jsxRuntimeExports.jsx(on,{children:_!==hn?n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:_,itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}}):n.jsxRuntimeExports.jsx(ul,{children:_})})})},b)}case"date":return n.jsxRuntimeExports.jsx(wt,{windowSize:x,wrapperWidth:j.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:x,isLastItem:C===nt.length-1,children:n.jsxRuntimeExports.jsx(on,{children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:e.date.format(ol.visual.MMMDCommaYYYYformat),itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}})})})},b);case"receipts":return n.jsxRuntimeExports.jsx(wt,{windowSize:x,wrapperWidth:j.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:x,isLastItem:C===nt.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(To.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(dl,{onClick:g=>{g.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:[...H.SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES],onFileChange:f,onFileSizeError:(g,w)=>{g&&c(e.id,"Error",{code:500,message:w===!0?el.replace("__maxFileSize__",t.formatFileSize(t.SizeLimit32MB,0)):tl.replace("__maxFileSize__",t.formatFileSize(t.SizeLimit32MB,0))})}})}),n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"bottom",title:sl,enterDelay:600,children:n.jsxRuntimeExports.jsx(ll,{onClick:g=>{g.stopPropagation(),y()}})})]})})},b);case"amount":{const g=t.amountToString("0,0.[00]",e.amount);return n.jsxRuntimeExports.jsx(wt,{windowSize:x,wrapperWidth:j.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:x,isLastItem:C===nt.length-1,children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:e.amount.amount<0?`-${g}`:g,itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}})})},b)}}})})},rl=()=>{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(ho,{windowSize:e,ref:s,children:nt.map((p,u)=>{const o=`${u}${xo}${p.key}`;switch(p.key){case"vendor":return n.jsxRuntimeExports.jsx(wt,{windowSize:e,wrapperWidth:p.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:e,isLastItem:u===nt.length-1,children:n.jsxRuntimeExports.jsxs(on,{children:[n.jsxRuntimeExports.jsx(t.CircularContentLoader,{width:t.sp[4],height:t.sp[4]}),n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:l*p.width.value(e)/100,height:t.sp[4],style:{display:"flex",alignItems:"center"}})]})})},o);default:return n.jsxRuntimeExports.jsx(wt,{windowSize:e,wrapperWidth:p.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:e,isLastItem:u===nt.length-1,children:n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:l*p.width.value(e)/100,height:t.sp[4],style:{display:"flex",alignItems:"center"}})})},o)}})})},ho=i.div`
|
|
941
|
-
display: flex;
|
|
942
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
943
|
-
padding-left: ${e=>tn.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
944
|
-
padding-right: ${e=>tn.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
945
|
-
padding-top: ${e=>tn.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
946
|
-
padding-bottom: ${e=>tn.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
|
-
`,wt=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
|
-
`,al=Be.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
|
-
`,cl=Be.css`
|
|
978
|
-
height: ${t.Space.sp3};
|
|
979
|
-
width: ${t.Space.sp3};
|
|
980
|
-
cursor: pointer;
|
|
981
|
-
`,ll=i(t.SvgAddRound)`
|
|
982
|
-
${cl};
|
|
983
|
-
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
984
|
-
&:hover {
|
|
985
|
-
color: ${e=>e.theme.colors.primary};
|
|
986
|
-
}
|
|
987
|
-
`,It=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
|
-
`,dl=i.div``,on=i.div`
|
|
994
|
-
display: flex;
|
|
995
|
-
flex-direction: row;
|
|
996
|
-
column-gap: ${t.Space.sp2};
|
|
997
|
-
align-items: center;
|
|
998
|
-
`,ul=i(t.StandardRegular)`
|
|
999
|
-
${al};
|
|
1000
|
-
color: inherit;
|
|
1001
|
-
`,pl=i.div`
|
|
1002
|
-
display: flex;
|
|
1003
|
-
`,ml=({sortConfig:e,fetchState:s,isDisabled:l,onColumnSortConfigChanged:a})=>{const p=t.useWindowSizeContext();return n.jsxRuntimeExports.jsxs(xl,{windowSize:p,children:[n.jsxRuntimeExports.jsx(mo,{sortConfig:e,isDisabled:s==="In-Progress"?"readonly":l,onColumnSortConfigChanged:a}),n.jsxRuntimeExports.jsx(hl,{windowSize:p,children:[...Array(3)].map((u,o)=>n.jsxRuntimeExports.jsx(rl,{},o))})]})},xl=i.div`
|
|
1004
|
-
display: block;
|
|
1005
|
-
min-height: 100%;
|
|
1006
|
-
flex-direction: column;
|
|
1007
|
-
width: 100%;
|
|
1008
|
-
`,hl=i.div`
|
|
1009
|
-
display: flex;
|
|
1010
|
-
min-height: 100%;
|
|
1011
|
-
flex-direction: column;
|
|
1012
|
-
row-gap: ${t.Space.sp3};
|
|
1013
|
-
`,{common:gl}=t.appLocale.getLocalizedStrings(),jl=({missingReceipts:e,receiptUploadEndpoint:s,authParams:l,selectedPeriod:a,isDisabled:p,onMissingReceiptsRowClick:u,onUploadReceiptComplete:o,onUploadReceiptAttachment:c,onUploadReceiptFetchStatus:r,onUpdateMissingReceiptsUIState:x,onFetchMissingReceiptsList:d})=>{const h=t.useWindowSizeContext(),{fetchState:f,uiState:y,transactions:j}=e,C=m.useRef(null),[b,g]=m.useState(!1);m.useEffect(()=>{C.current?.resetAfterIndex(0)},[h,C]),m.useEffect(()=>{f==="Completed"&&g(!1)},[f]);const w=$=>Lc,_=($,B)=>{x({sortOrder:B,sortKey:$})};return n.jsxRuntimeExports.jsxs(Sl,{children:[n.jsxRuntimeExports.jsx(Rl,{windowSize:h,children:f==="Error"?n.jsxRuntimeExports.jsxs(El,{windowSize:h,children:[n.jsxRuntimeExports.jsx(vl,{onClick:()=>d(),"data-testid":t.generateDataTestId("missing-receipts-list-table-reload-button"),children:n.jsxRuntimeExports.jsx(t.SvgReload,{})}),n.jsxRuntimeExports.jsx(bl,{children:gl.reloadPage.label})]}):f==="Completed"&&j.length===0?n.jsxRuntimeExports.jsx(dt,{tab:"missing_receipts",title:Ne("missing_receipts").allDoneText.title,subTitle:Ne("missing_receipts").allDoneText.subTitle}):f==="Not-Started"||f==="In-Progress"&&j.length===0?n.jsxRuntimeExports.jsx(ml,{sortConfig:{sortKey:y.sortKey,sortOrder:y.sortOrder},fetchState:f,onColumnSortConfigChanged:_}):n.jsxRuntimeExports.jsx(Cl,{windowSize:h,children:n.jsxRuntimeExports.jsx(n.AutoSizer,{children:({height:$,width:B})=>n.jsxRuntimeExports.jsxs(Il,{style:{height:$,width:B},children:[n.jsxRuntimeExports.jsx(yl,{children:n.jsxRuntimeExports.jsx(mo,{sortConfig:{sortKey:y.sortKey,sortOrder:y.sortOrder},isDisabled:f==="In-Progress"?"readonly":p,onColumnSortConfigChanged:_})}),n.jsxRuntimeExports.jsx(n.VariableSizeList,{ref:C,height:$-po,itemCount:j.length,itemData:{missingReceipts:e,receiptUploadEndpoint:s,authParams:l,isDisabled:p,selectedPeriod:a,onMissingReceiptsRowClick:u,onUploadReceiptComplete:o,onUploadReceiptAttachment:c,onUploadReceiptFetchStatus:r},itemSize:w,width:B,style:{willChange:"auto"},overscanCount:Ac,onScroll:({scrollOffset:v})=>{x({scrollPosition:{scrollTop:v}})},initialScrollOffset:y.scrollPosition?.scrollTop,children:fl})]})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:b===!0,children:n.jsxRuntimeExports.jsx(Tl,{children:n.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"Small",start:!0})})})]})},fl=({index:e,style:s,data:l})=>{const{missingReceipts:a,receiptUploadEndpoint:p,authParams:u,onMissingReceiptsRowClick:o,onUploadReceiptComplete:c,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:x,selectedPeriod:d}=l,h=a.transactions[e];return n.jsxRuntimeExports.jsx(wl,{style:{...s,width:"100%"},children:n.jsxRuntimeExports.jsx(il,{transaction:h,receiptUploadEndpoint:p,authParams:u,selectedPeriod:d,onMissingReceiptsRowClick:o,onUploadReceiptComplete:c,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:x,uploadReceiptsFetchState:a.uploadReceiptStatusById[h.id]??{fetchState:"Not-Started",error:void 0}},h.id)})},yl=i.div`
|
|
1014
|
-
width: auto;
|
|
1015
|
-
`,Sl=i.div`
|
|
1016
|
-
width: 100%;
|
|
1017
|
-
height: 100%;
|
|
1018
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1019
|
-
`,Rl=i.div`
|
|
1020
|
-
height: 100%;
|
|
1021
|
-
`,Cl=i.div`
|
|
1022
|
-
height: 100%;
|
|
1023
|
-
display: flex;
|
|
1024
|
-
flex-direction: column;
|
|
1025
|
-
max-width: 99.9%;
|
|
1026
|
-
`,El=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
|
-
`,vl=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
|
-
`,bl=i(t.SmallRegularSp)`
|
|
1049
|
-
margin-top: ${t.Space.sp3};
|
|
1050
|
-
color: ${e=>e.theme.colors.hero};
|
|
1051
|
-
`,wl=i.div`
|
|
1052
|
-
top: ${t.Space.sp0};
|
|
1053
|
-
left: ${t.Space.sp0};
|
|
1054
|
-
padding-bottom: ${t.Space.sp3};
|
|
1055
|
-
box-sizing: border-box;
|
|
1056
|
-
`,Il=i.div`
|
|
1057
|
-
position: relative;
|
|
1058
|
-
`,Tl=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
|
-
`,kl=[...H.SUPPORTED_ATTACHMENT_FILE_TYPES],$l=7*1024*100,Ll=i.div`
|
|
1068
|
-
width: ${je.FORM_MINIMUM_WIDTH}px;
|
|
1069
|
-
`,gn=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
|
-
`,Al=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
|
-
#${je.MONTH_END_EMAIL_BODY_SECTION} img[alt*="company logo"],
|
|
1090
|
-
.attachFileSeparator {
|
|
1091
|
-
user-select: none;
|
|
1092
|
-
}
|
|
1093
|
-
`,Ol=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
|
-
`,Dl=i.div`
|
|
1100
|
-
position: relative;
|
|
1101
|
-
`,Ts=i(t.StandardRegular)`
|
|
1102
|
-
position: relative;
|
|
1103
|
-
`,_l=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
|
-
`,Bl=i.div`
|
|
1121
|
-
user-select: text;
|
|
1122
|
-
`,Ml=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
|
-
`,Nl=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
|
-
`,Pl=i(t.SmallRegular)`
|
|
1138
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1139
|
-
user-select: none;
|
|
1140
|
-
`,Fl=i(t.StandardBold)`
|
|
1141
|
-
color: ${e=>e.theme.colors.primary};
|
|
1142
|
-
`,zl=i.div`
|
|
1143
|
-
flex-direction: column;
|
|
1144
|
-
row-gap: ${t.Space.sp3};
|
|
1145
|
-
display: flex;
|
|
1146
|
-
`,Hl=Be.keyframes`
|
|
1147
|
-
0% {
|
|
1148
|
-
transform: translateX(100%);
|
|
1149
|
-
}
|
|
1150
|
-
100% {
|
|
1151
|
-
transform: translateX(0)
|
|
1152
|
-
}
|
|
1153
|
-
`,Wl=Be.keyframes`
|
|
1154
|
-
0% {
|
|
1155
|
-
transform: translateX(0)
|
|
1156
|
-
}
|
|
1157
|
-
100% {
|
|
1158
|
-
transform: translateX(100%)
|
|
1159
|
-
}
|
|
1160
|
-
`,Vl=i.div`
|
|
1161
|
-
animation: ${e=>e.allThreadsSectionOpen?Hl:Wl}
|
|
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: ${je.COMMENTS_SECTION_MINIMUM_WIDTH}px;
|
|
1169
|
-
max-width: ${je.COMMENTS_DRAWER_MAXIMUM_WIDTH}px;
|
|
1170
|
-
`,rn="monthEndReportFormSection",ks="monthEndReportPage",Ve=t.appLocale.getLocalizedStrings();function ql({companyId:e,enableZeniGPTFeature:s,monthEndReportView:l,previewMode:a,customerRequestData:p,allThreadsSectionOpen:u,filterMetaData:o,newThreadMetadata:c,isZeniUser:r,selectedPeriod:x,improveUsingZeniGPTClick:d,onRemoveFileAttachment:h,onUpdateFileAttachment:f,onCloseAllThreadsSection:y,previewMonthEndReport:j,saveMonthEndReport:C,onEditClick:b,onOpenFileAttachmentSnackBar:g,onClickCustomerRequest:w,sendMonthEndReport:_}){const $=n.useTheme(),[B,v]=m.useState(),[R,I]=m.useState(0),[A,q]=m.useState(0),T=m.useRef(),J=m.useRef(null),D=m.useRef(null),{html:V,subject:K,improveUsingZeniGPTStatus:U}=l,[M,te]=m.useState(),[ge,ne]=m.useState(!1),[Q,ae]=m.useState(!1),z=m.useRef(null),L=m.useRef(null),ee=je.useDelayUnmount(u,250),N=l.fetchState==="Not-Started"||l.fetchState==="In-Progress"||l.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||l.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:P,sortedThreads:E,threadsPositions:W,observer:Y,unresolvedThreadsMap:O,handleRemoveFloatingThread:F}=je.useFloatingThreads(o,z,!a,N,r),G=m.useCallback(()=>{u?L.current!=null&&q(Math.min((L.current.offsetWidth-je.FORM_MINIMUM_WIDTH-t.sp[4])/2,L.current.offsetWidth-je.FORM_MINIMUM_WIDTH-je.COMMENTS_DRAWER_MAXIMUM_WIDTH-t.sp[4])):L.current!=null&&I(Math.min((L.current.offsetWidth-je.FORM_MINIMUM_WIDTH-t.sp[4])/2,L.current.offsetWidth-je.FORM_MINIMUM_WIDTH-je.COMMENTS_SECTION_MINIMUM_WIDTH-t.sp[4]))},[u]);m.useEffect(()=>{G()},[u,G]),m.useEffect(()=>(window.addEventListener("resize",G),()=>{window.removeEventListener("resize",G)}),[G]);const Z=r?t.ThreadsContext:t.NonZeniUsersThreadsContext,{openThread:fe,addThread:Ee,setOpenThread:ce}=m.useContext(Z),S=je.useHandleSelection(je.MONTH_END_REPORT_CANVAS,!1,!a),re=z.current?.getBoundingClientRect(),ye=S!=null&&S.coords&&re?{left:S.coords.left-re.left,top:S.coords.top-re.top}:void 0,Oe=m.useCallback(()=>{const se=window.getSelection()?.getRangeAt(0),ue=je.getSelectionData();if(!se||ue==null)return;const Re={...c,...ue,startPath:ue.startPath.join(),endPath:ue.endPath.join()},he=`${n.nanoid()}${t.NEW_THREAD_SUFFIX}`,De=`cockpit_${e}`;Ee(he,{type:"thread",id:he,roomId:De,createdAt:new Date,comments:[],metadata:Re,updatedAt:new Date,resolved:!1}),ce(he)},[Ee,e,c,ce]);m.useEffect(()=>{fe!=null&&u&&y()},[u,fe,y]);const we=U.fetchState==="In-Progress",Ie=n.useForm({mode:"all",defaultValues:$s(l),values:$s(l)}),xe=Ie.handleSubmit(se=>{const{recipientEmailList:ue,subject:Re}=se[rn];if(a===!0)_?.(M?.id);else{const he=B?.replace(t.EMPTY_HTML_CHECKER,Ve.common.strings.empty);ue!=null&&Re!=null&&j(ue,Re,M?.id,he!=null&&he.length>0?B:void 0)}}),Ue=()=>{J.current!=null&&J.current.click()},ze=()=>{M!==void 0&&M!=null&&(h([M.id]),te(void 0),ne(!1))},He=se=>{const ue=se.target.files?se.target.files[0]:null;if(ue)if(!H.toSupportedAttachmentFileType(ue.type)||Q)console.warn("Please select a valid file.");else{const Re=new FileReader;Re.onload=function(he){const De=he.target?.result;if(typeof De=="string"){const mt={data:De.split(",")[1],name:ue.name,id:H.getAttachmentFileIdByFileName(e,ue.name)};te(mt),ne(!0),f([mt])}},Re.readAsDataURL(ue)}},le=()=>{D.current&&D.current.scrollIntoView({behavior:"smooth"})},Me=()=>{const se=Ie.getValues(),{recipientEmailList:ue,subject:Re}=se[rn];ue!=null&&Re!=null&&C(ue,Re,M?.id,B)};m.useEffect(()=>{v(l.zeniRequestsHtml)},[l.zeniRequestsHtml]),m.useEffect(()=>{T.current=M},[M]),m.useEffect(()=>{te(H.mapAttachmentFileToAttachmentFilePayload(l.attachmentFile)),ne(!1)},[l.attachmentFile]),m.useEffect(()=>{Q&&g()},[Q,g]);const St=H.zeniDate(`${x.year}-${x.month}-01`).format(Ve.dateFormat.visual.MMMMFormat),Ye=V!=null?V.split(je.MONTH_END_EDITOR_PLACEHOLDER):[],ot=l.concatenatedHtml,ut=()=>l.lastDraftSavedDate!=null&&a===!1?n.jsxRuntimeExports.jsx(je.UserWithTimestamp,{time:l.lastDraftSavedDate,user:l.reportLastSavedByUser,timeStampLabel:Ve.cockpit.monthEndReport.timeStampLabel}):null,Rt=()=>r===!0?ee?n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(Vl,{allThreadsSectionOpen:u,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:(se,ue)=>{ce(ue);const Re=E.findIndex(he=>he[0]===ue);y(),P.current?.[Re]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>y()})}),n.jsxRuntimeExports.jsx(gn,{availableWidth:R})]}):n.jsxRuntimeExports.jsx(je.FloatingThreads,{observer:Y,canvasContainerRef:z,sortedThreads:E,threadsPositions:W,threadsRefs:P,unresolvedThreadsMap:O,editorMode:!a,style:{minWidth:`${R}px`,position:"relative",height:"fit-content",top:`${z.current?.offsetTop}px`,minHeight:t.Space.sp12},handleRemoveFloatingThread:F}):n.jsxRuntimeExports.jsx(gn,{availableWidth:R}),pt=(l.zeniRequestsData??[]).length+t.getTemplatesFromTemplatedData(l.companyMonthEndReportTemplatesData).length;return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs(Al,{ref:L,children:[n.jsxRuntimeExports.jsx(gn,{availableWidth:u?A:R}),n.jsxRuntimeExports.jsxs(Ll,{children:[n.jsxRuntimeExports.jsx(n.FormProvider,{...Ie,children:n.jsxRuntimeExports.jsx("form",{id:Ls(ks),onSubmit:xe,children:n.jsxRuntimeExports.jsxs(zl,{children:[n.jsxRuntimeExports.jsx(je.MonthEndReportSection,{sectionId:rn,previewMode:a,subject:K}),!a&&pt>0?n.jsxRuntimeExports.jsx(je.MonthEndReportCustomerRequestSection,{totalItems:pt,onClickCustomerRequest:w}):null,n.jsxRuntimeExports.jsxs(_l,{id:je.MONTH_END_REPORT_CANVAS,ref:z,children:[n.jsxRuntimeExports.jsxs(Bl,{className:"monthEndReportCanvasWrapper",children:[M!=null||Q?n.jsxRuntimeExports.jsx(Ml,{"data-testid":t.generateDataTestId("email-attachment-container"),onClick:le,children:n.jsxRuntimeExports.jsx(je.CircleWithAttachmentSuccessIcon,{fileSizeError:Q,setFileSizeError:ae,loading:!1,showAnimation:!a&&ge})}):null,a?n.jsxRuntimeExports.jsx(Ts,{dangerouslySetInnerHTML:{__html:je.getHTMLWithCommentingSections(ot)}}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs(Dl,{id:je.MONTH_END_EMAIL_HEADER_SECTION,children:[n.jsxRuntimeExports.jsx(t.StandardRegular,{dangerouslySetInnerHTML:{__html:Ye[0]!=null?Ye[0]+"</body></html>":Ve.common.strings.empty}}),n.jsxRuntimeExports.jsxs(Ol,{children:[n.jsxRuntimeExports.jsx(Fl,{children:Ve.cockpit.monthEndReport.editorTitle}),n.jsxRuntimeExports.jsx(Pl,{children:Ve.cockpit.monthEndReport.editorNote})]})]}),n.jsxRuntimeExports.jsx(Nl,{id:je.MONTH_END_EMAIL_EDITOR_SECTION,children:n.jsxRuntimeExports.jsx(je.Editor,{handleFileInputClick:Ue,fileAttached:M!=null,enableZeniGPTFeature:s,isZeniGPTResponseLoading:we,initialHtmlString:l.zeniRequestsHtml,improveUsingZeniGPTClick:d,setZeniRequestsHtml:v,customerRequestData:p})}),n.jsxRuntimeExports.jsx(Ts,{id:je.MONTH_END_EMAIL_BODY_SECTION,dangerouslySetInnerHTML:{__html:Ye[1]!=null?"<html><body>"+Ye[1]:Ve.common.strings.empty}})]}),M!=null?n.jsxRuntimeExports.jsx(je.FileAttachment,{ref:D,fileName:M.name,fileSize:t.base64FileSize(M.data),onRemove:ze,isRemovable:!a}):null]}),ye?n.jsxRuntimeExports.jsx(je.AddThreadFloating,{style:{zIndex:15},coords:ye,alignment:S.alignment,onClick:Oe}):null,n.jsxRuntimeExports.jsx(je.TextHighlightSection,{canvasContainerRef:z,sortedThreads:E,editorMode:!a,isZeniUser:r})]})]})})}),n.jsxRuntimeExports.jsx(t.FileInputElement,{name:M?.name??Ve.common.strings.empty,fileRef:J,sizeLimit:$l,acceptableTypes:kl,onFileChange:async se=>{He(se)},onFileSizeError:se=>ae(se),multiple:!1})]}),Rt()]}),n.jsxRuntimeExports.jsx(t.Footer,{style:{zIndex:10},leftSideComponent:ut(),formId:Ls(ks),cancelBtn:{isDisabled:we,label:a===!0?Ve.cockpit.monthEndReport.editButtonLabel:Ve.cockpit.monthEndReport.saveChanges,onClick:a===!0?b:Me,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:we,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__",St):Ve.cockpit.monthEndReport.preview,size:"medium"}})]})}const $s=e=>({[rn]:{recipientEmailList:e.recipientEmailList,subject:e.subject??Ve.common.strings.empty}}),Ls=e=>`${e}_form`;t.sp[5];t.sp[5];t.textStyles.smallBold.lineHeightValue;const Ul=1,Gl=50,As=56,Kl=["memo"],Os=e=>H.stringToUnionStrict(e,Kl),{common:{strings:{empty:Jl}},expenseAutomation:{transactions:{header:{vendors:Yl,category:Zl,classText:Xl,date:Ql,type:ed,amount:td}}}}=t.appLocale.getLocalizedStrings(),nd={key:"vendor",value:Yl,sortOrder:"ascending",width:new t.ResponsiveSized(18,18),customStyle:{common:{paddingLeft:t.sp[7]}}},sd={key:"category",value:Zl,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),customStyle:{common:{paddingLeft:t.sp[7]}}},od={key:"class",value:Xl,sortOrder:"ascending",width:new t.ResponsiveSized(18,18),customStyle:{common:{paddingLeft:t.sp[7]}}},id={key:"date",value:Ql,sortOrder:"descending",width:new t.ResponsiveSized(11,11),customStyle:{common:{paddingLeft:12}}},rd={key:"transaction_type",value:ed,sortOrder:"descending",width:new t.ResponsiveSized(13,13),customStyle:{common:{paddingLeft:t.sp[3]}}},ad={key:"memo",value:Jl,sortOrder:"ascending",width:new t.ResponsiveSized(6,6),customStyle:{common:{}}},cd={key:"amount",value:td,sortOrder:"ascending",width:new t.ResponsiveSized(10,10),customStyle:{common:{paddingRight:t.sp[4]}}},lt=[nd,sd,od,id,rd,ad,cd],jn={sortKey:"date",sortOrder:"descending"},go=({sortConfig:e,isDisabled:s,onColumnSortConfigChanged:l})=>{const a=t.useWindowSizeContext(),[p,u]=m.useState(n.cloneDeep(lt));m.useEffect(()=>{const r=[...p];for(const x of r)x.key===e.sortKey?x.sortOrder=e.sortOrder:x.sortOrder="ascending";u(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=>{Os(r.key)==null&&o(H.toTransactionsSortKey(r.key),r.sortOrder)};return n.jsxRuntimeExports.jsx(ld,{windowSize:a,"data-testid":t.generateDataTestId("transaction-categorization-header-container"),children:p.map((r,x)=>{const d=s!=null||Os(r.key)!=null;return n.jsxRuntimeExports.jsxs(dd,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,style:r.customStyle?.common,isSortDisabled:d,windowSize:a,isLastItem:x===p.length-1,"data-testid":t.generateDataTestId("transaction-categorization-header-wrapper",r.key),children:[n.jsxRuntimeExports.jsxs(hd,{"data-testid":t.generateDataTestId("transaction-categorization-header",r.value?r.value:r.key),onClick:()=>c(r),isSortDisabled:d,children:[n.jsxRuntimeExports.jsx(gd,{children:r.value}),d?null:n.jsxRuntimeExports.jsx(pd,{sortConfig:e,headerData:r,"data-testid":t.generateDataTestId("transaction-categorization-sort-icon",r.key),children:n.jsxRuntimeExports.jsx(xd,{})})]}),d?null:n.jsxRuntimeExports.jsx(md,{isSortDisabled:d,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==jn.sortKey,"data-testid":t.generateDataTestId("transaction-categorization-close-icon",r.key),children:n.jsxRuntimeExports.jsx(ud,{onClick:()=>{o(jn.sortKey,jn.sortOrder)},"data-testid":t.generateDataTestId("transaction-categorization-close-icon-button",r.key)})})]},r.key)})})},ld=i.div`
|
|
1171
|
-
top: ${t.Space.sp0};
|
|
1172
|
-
left: ${t.Space.sp0};
|
|
1173
|
-
height: ${Gl}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
|
-
`,dd=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
|
-
`,ud=i(t.SvgCloseRound)`
|
|
1195
|
-
width: 12px;
|
|
1196
|
-
height: 12px;
|
|
1197
|
-
`,pd=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
|
-
`,md=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
|
-
`,xd=i(t.SvgArrowTailTop)`
|
|
1211
|
-
width: ${t.Space.sp2};
|
|
1212
|
-
height: ${t.Space.sp2};
|
|
1213
|
-
`,hd=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
|
-
`,gd=i(t.ExtraSmallRegular)`
|
|
1221
|
-
display: flex;
|
|
1222
|
-
`,fn="expenseAutomationTransactionsPage",Tt="transactionCategorizationListTable",be="account",qe="class",Qe="lineEntitySelection",jd="lineEntity",fd="recommendations",jo="lineInfo",yd="vendorDetails",Sd="customerDetails",an="selectedTransactionIds",gt=(e,s,l)=>`${e}.${l}.${s}`,Rd=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:Cd,hyphen:nn,empty:Dt}},expenseAutomation:{transactions:jt},dateFormat:Ed}=t.appLocale.getLocalizedStrings(),ft={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])},vd=({transactionView:e,transaction:s,sectionId:l,vendorSearchAutoCompleteData:a,vendorSearchAutoCompleteActions:p,selectedTab:u,containerRef:o,listContainerRef:c,isCOTEnabled:r,cotTracking:x,onTransactionCategorizationRowClick:d,setCurrentTransactionInAction:h,vendorLoadOptions:f,openTooltipId:y,setOpenTooltipId:j,isUncategorizedExpenseCategoryEnabled:C})=>{const b=t.useWindowSizeContext(),[g,w]=m.useState(!1),{lineItemById:_,sortedLineItems:$}=s.transactionReviewLocalData,B=s.transactionReviewLocalData.tabSpecificLineItems?.[u]||[],v=$.filter(N=>B.indexOf(N)!==-1),R=[];v.forEach(N=>{R.push(_[N])});const{accountList:I,accountsHierarchyList:A,classHierarchyList:q,classList:T,uncategorizedAccounts:J,transactions:D,selectedCheckBoxTransactionIds:V}=e,K=V.includes(s.transactionId),U=n.useTheme(),M={control:()=>({marginLeft:-2,backgroundColor:g?U.colors.background:U.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:t.sp[0]}),menu:()=>({width:"150%",background:U.colors.grey5}),singleValue:()=>({color:g||K?U.colors.primary:U.colors.hero,paddingLeft:t.sp[2]}),input:N=>({...N,color:g||K?U.colors.primary:U.colors.hero,textAlign:"left",paddingLeft:t.sp[2]}),menuPortal:N=>({...N,zIndex:10})},te={...M,singleValue:N=>({...N,color:g||K?U.colors.primary:U.colors.hero}),menu:()=>({marginTop:t.sp[1],marginLeft:-t.sp[2]}),input:N=>({...N,color:g||K?U.colors.primary:U.colors.hero,textAlign:"left"})},ge=D.find(N=>N.id===s.transactionId),ne=(N,P)=>{const{transactionType:E}=P.transactionReviewLocalData;let Y=N.target;for(;Y;){if(Y.classList.contains("select-value-container")||Y.classList.contains("item-value-container")||Y.classList.contains("grouped-single-select-field__value-container")||Y.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||Y.classList.contains("grouped-single-select-field__input")||Y.classList.contains("grouped-single-select-field__menu"))return;Y=Y.parentElement}E!=null&&d(P.transactionId,E)},Q=m.useRef(null),[ae,z]=m.useState(void 0),[L,ee]=m.useState("bottom");return m.useEffect(()=>{if(ae===void 0)return;const P=c?.current?._outerRef??null,E=()=>{const W=Q.current;if(W==null||P==null)return;const Y=W.getBoundingClientRect(),O=P.getBoundingClientRect(),F=P.scrollTop+(Y.bottom-O.top),G=P.scrollHeight-F;ee(G>=288?"bottom":"top")};return E(),window.addEventListener("resize",E),P?.addEventListener("scroll",E),()=>{window.removeEventListener("resize",E),P?.removeEventListener("scroll",E)}},[c,ae]),n.jsxRuntimeExports.jsx(Id,{onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),windowSize:b,isSelected:K,isHovered:g,children:n.jsxRuntimeExports.jsx(Td,{children:R.map((N,P)=>n.jsxRuntimeExports.jsx(kd,{ref:ae===P?Q:void 0,"data-testid":t.generateDataTestId("transaction-categorization-list-row",N.lineId),windowSize:b,onClick:E=>ne(E,s),children:n.jsxRuntimeExports.jsx(bd,{line:N,isHovered:g||K,isSelected:K,lineIndex:P,sectionId:l,transaction:s,currentTransaction:ge,windowSize:b,accountsHierarchyList:A,classHierarchyList:q,allAccountList:I,allClassList:T,uncategorizedAccounts:J,vendorSearchAutoCompleteData:a,vendorSearchAutoCompleteActions:p,setCurrentTransactionInAction:h,vendorLoadOptions:f,customStyle:M,customStyleAutoComplete:te,recommendations:N.recommendationsWithCOT,selectedTab:u,isCOTEnabled:r,menuPlacement:L,cotTracking:x,openTooltipId:y,setOpenTooltipId:j,isUncategorizedExpenseCategoryEnabled:C,onDropdownClose:()=>z(void 0),onDropdownOpen:()=>z(P)})},`${s.transactionId}.${N.lineId}`))},s.transactionId)},s.transactionId)},bd=({accountsHierarchyList:e,allAccountList:s,allClassList:l,classHierarchyList:a,customStyle:p,customStyleAutoComplete:u,line:o,lineIndex:c,transaction:r,currentTransaction:x,windowSize:d,uncategorizedAccounts:h,isHovered:f=!1,isSelected:y=!1,sectionId:j,recommendations:C,vendorSearchAutoCompleteData:b,selectedTab:g,isCOTEnabled:w,menuPlacement:_,cotTracking:$,openTooltipId:B,setCurrentTransactionInAction:v,vendorLoadOptions:R,setOpenTooltipId:I,isUncategorizedExpenseCategoryEnabled:A,onDropdownClose:q,onDropdownOpen:T})=>{const{transactionDate:J,transactionType:D,transactionTypeName:V,memo:K}=r.transactionReviewLocalData,{setValue:U}=n.useFormContext(),M=m.useCallback((pe,Te)=>{$?.onCOTView!=null&&$.onCOTView(o.lineId,r.transactionId,pe,Te)},[$,o.lineId,r.transactionId]),te=o.lineDescription,ge=m.useMemo(()=>{if(te||K)return[{title:jt.description,description:te||nn},{title:jt.header.memo,description:K||nn}]},[K,te]),ne=gt(j,Qe,c.toString()),Q=gt(j,be,c.toString()),ae=gt(j,qe,c.toString()),z=(pe,Te)=>{let Ce;switch(Te){case"vendor":Ce=ne;break;case"category":Ce=Q;break;case"class":Ce=ae;break;default:return}U(`${Ce}.selectedOption`,pe,{shouldValidate:!0,shouldDirty:!0})},L=n.useTheme(),ee=m.useMemo(()=>x!=null&&H.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]),N=m.useMemo(()=>x!=null&&H.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]),P=o[qe]?.classId,E=o[be]?.qboId??o[be]?.accountId,W=ee?.id,Y=N?.id,O=N?.name,[F,G]=m.useState(!P),[Z,fe]=m.useState(!E||o[be]?.qboId!=null&&H.isAccountUncategorized(h,o[be].qboId,A===!0?["income"]:void 0)===!0),[Ee,ce]=m.useState(!Y||!W),S=pe=>C?.find(Ce=>Ce.vendor?.qboId===pe||Ce.vendor?.id===pe||Ce.vendor?.name===pe)?.vendor?.reason??"",re=r.transactionReviewLocalData.lineItemById[o.lineId]?.recommendationsWithCOT||[],ye=t.getGroupedAccountOptionsWithCOT(e,re),Oe=t.getGroupedClassOptionsWithCOT(a,re),we=pe=>s.filter(Ce=>Ce.qboId===pe)[0]?.qboId,Ie=pe=>l.filter(Ce=>Ce.classId===pe)[0]?.accountingClassNumber??void 0,xe=m.useCallback(pe=>H.isAccountUncategorized(h,pe,A===!0?["income"]:void 0),[h,A]),[Ue,ze]=m.useState(!1),[He,le]=m.useState(!1),[Me,Je]=m.useState(!1),St=(pe,Te)=>{v({transactionId:r.transactionId,lineItemId:o.lineId}),R(pe,Te)},Ye=()=>{ce(!(Y||W)),ze(!1),q?.()},ot=()=>{E&&o[be]?.qboId!=null&&H.isAccountUncategorized(h,o[be].qboId,A===!0?["income"]:void 0)===!1?fe(!1):fe(!0),Je(!1),q?.()},ut=()=>{G(!P),le(!1),q?.()},Rt=()=>{(Y||W)&&(ze(!0),T?.())},pt=()=>{le(!0),T?.()},se=()=>{Je(!0),T?.()};m.useEffect(()=>{E&&o[be]?.qboId!=null&&H.isAccountUncategorized(h,o[be].qboId,A===!0?["income"]:void 0)===!1?fe(!1):fe(!0)},[E]),m.useEffect(()=>{G(!P)},[P]),m.useEffect(()=>{ce(!(Y||W))},[Y,W]);const ue=r.transactionReviewLocalData.selectedEntity,Re=r.transactionReviewLocalData.lineItemById[o.lineId].selectedEntityLine,he=x!=null&&H.isVendorTransaction(x)===!0?ue:Re,De=m.useMemo(()=>{const pe=r.transactionReviewLocalData.lineItemById[o.lineId]?.recommendationsWithCOT||[],Te=b.entityAutoCompleteView;return{selectedOption:he?.qboId??he?.id,defaultOptions:t.getGroupedForPayeeEntityOptionsWithCOT(Te,he,pe??[])}},[he,r.transactionReviewLocalData.lineItemById,o.lineId,b.entityAutoCompleteView]),mt=()=>he!=null&&he.logo!=null?n.jsxRuntimeExports.jsx(t.EntityLogoAvatarWithCustomFallback,{photoUrl:he.logo.toString(),styles:{width:ft.nameLogoWidth.valuePx(d),height:ft.nameLogoHeight.valuePx(d)},fallbackAvatar:n.jsxRuntimeExports.jsx(Bs,{children:n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:he.name,size:t.Space.sp4})})}):he!=null&&he.name!=null?n.jsxRuntimeExports.jsx(Bs,{children:n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:he.name,size:t.Space.sp4})}):null,it=(pe,Te)=>{if(Te==null||!Te)return;let Ce=[];return pe.forEach(We=>{Ce=Ce.concat(We.options)}),Ce.find(We=>We.value===Te)?.label??Te},xt=it(Oe,P),Nt=it(ye,E),Ge=g==="review",kt=t.isMiscategorizedField("vendor",De.defaultOptions,De.selectedOption),Wt=t.isMiscategorizedField("category",ye,E),Vt=t.isMiscategorizedField("class",Oe,P),cn=()=>lt.map((pe,Te)=>{const Ce=`${r.transactionId}_${pe.key}_${o.lineId}`;if(c>0&&x!=null&&H.isVendorTransaction(x)===!0&&pe.key==="vendor")return n.jsxRuntimeExports.jsx(Ze,{windowSize:d,wrapperWidth:pe.width},Ce);if(c>0&&pe.key==="transaction_type")return n.jsxRuntimeExports.jsx(Ze,{windowSize:d,wrapperWidth:pe.width},Ce);switch(pe.key){case"vendor":default:return n.jsxRuntimeExports.jsxs(Ze,{windowSize:d,wrapperWidth:pe.width,className:"item-value-container",children:[n.jsxRuntimeExports.jsx(yn,{isCOTEnabled:w,recommendations:re,type:"vendor",isFirstColumn:!0,isEnabled:!!he?.isPreFilled,isMisCategorized:kt,onRecommendationClick:z,selectedValue:Y,selectedValueLabel:O,isReviewTab:Ge,isAccountOptionDisabled:xe,existingOption:{label:x!=null&&H.isVendorTransaction(x)===!0?x?.vendor?.name:void 0,value:x!=null&&H.isVendorTransaction(x)===!0?x?.vendor?.id:void 0},cotTracking:$,lineId:o.lineId,transactionId:r.transactionId,openTooltipId:B,setOpenTooltipId:I}),n.jsxRuntimeExports.jsx(vn,{children:Ee===!0?n.jsxRuntimeExports.jsx(Cn,{isHovered:f,children:n.jsxRuntimeExports.jsxs(Sn,{onClick:We=>{We.stopPropagation(),T?.(),ce(!1),ze(!0)},"data-testid":t.generateDataTestId("add-vendor-button",j),style:{display:"inline-flex",alignItems:"center",color:t.Colors.brandColorGoldDark,cursor:"pointer",height:t.Space.sp6},children:[n.jsxRuntimeExports.jsx(Rn,{}),jt.addPayee]})}):Ue===!0?n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:Ye,children:n.jsxRuntimeExports.jsx(Hd,{"data-testid":t.generateDataTestId("vendor-selection-dropdown-container",gt(j,Qe,c.toString())),children:n.jsxRuntimeExports.jsx(t.AutoCompleteGroupedCreatableSingleSelectCustomGroupFieldWithCOT,{name:ne,placeholder:jt.addPayee,valueToInfo:S,defaultValue:{selectedOption:De.selectedOption,defaultOptions:De.defaultOptions},type:"vendor",autoFocus:!Ee,style:{width:"100%"},pageSource:"list_page",transactionStatus:Ge?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:u,menuIsOpen:Ue,onMenuClose:Ye,registerOptions:{required:!1},loadOptions:St,showCOT:w,onCOTView:M,menuPlacement:_})})}):n.jsxRuntimeExports.jsx(Vd,{children:n.jsxRuntimeExports.jsxs(En,{isHovered:f,showOutline:kt&&he?.isPreFilled!==!0&&!y&&Ge,children:[mt(),n.jsxRuntimeExports.jsx(zd,{onClick:Rt,"data-testid":t.generateDataTestId("vendor-name-text",j),children:he!=null&&he.name?n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:he.name,itemTextStyle:{color:f?L.colors.primary:L.colors.hero}}):n.jsxRuntimeExports.jsx(Wd,{children:nn})})]})})})]},Ce);case"category":{const We=x?.lines!=null?x?.lines[c]:void 0;return n.jsxRuntimeExports.jsxs(Ze,{windowSize:d,wrapperWidth:pe.width,className:"item-value-container",children:[n.jsxRuntimeExports.jsx(yn,{isCOTEnabled:w,recommendations:re,type:"category",isFirstColumn:!1,isReviewTab:Ge,isEnabled:!!o[be]?.isPreFilled,isAccountOptionDisabled:xe,isMisCategorized:Wt,onRecommendationClick:z,selectedValue:E,selectedValueLabel:Nt,existingOption:{label:We?.account?.accountName,value:We?.account?.qboId??We?.account?.accountId},cotTracking:$,lineId:o.lineId,transactionId:r.transactionId,openTooltipId:B,setOpenTooltipId:I}),n.jsxRuntimeExports.jsx(vn,{children:Z===!0?n.jsxRuntimeExports.jsx(Cn,{isHovered:f,children:n.jsxRuntimeExports.jsxs(Sn,{onClick:Ct=>{Ct.stopPropagation(),T?.(),fe(!1),Je(!0)},"data-testid":t.generateDataTestId("category-selection-field",Q),style:{display:"inline-flex",alignItems:"center",color:t.Colors.brandColorGoldDark,cursor:"pointer",height:t.Space.sp6},children:[n.jsxRuntimeExports.jsx(Rn,{}),jt.addCategory]})}):Me===!0?n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:ot,children:n.jsxRuntimeExports.jsx(Ms,{isHovered:f,"data-testid":t.generateDataTestId("category-selection-dropdown-container",Q),children:n.jsxRuntimeExports.jsx(Ht.GroupedSingleSelectFieldWithCOT,{name:Q,placeholder:jt.addCategory,valueToId:Ct=>we(Ct),type:"category",pageSource:"list_page",transactionStatus:Ge?"pending_review":"auto_categorized",showCOT:w,defaultValue:{selectedOption:E,allOptions:ye},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Me,autoFocus:!Z&&(!E||o[be]?.qboId!=null&&[h.expense?.qboId,h.income?.qboId].includes(o[be].qboId)),onMenuClose:ot,customStyleConfig:p,disableCurrentOption:xe,menuPlacement:_,onCOTView:M})})}):n.jsxRuntimeExports.jsx(En,{isHovered:f,showOutline:Wt&&o[be]?.isPreFilled!==!0&&!y&&Ge,children:n.jsxRuntimeExports.jsx(Ns,{onClick:se,"data-testid":t.generateDataTestId("category-label-text",Q),children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:Nt??"",itemTextStyle:{color:f?L.colors.primary:L.colors.hero}})})})})]},Ce)}case"class":{const We=x?.lines!=null?x?.lines[c]:void 0;return n.jsxRuntimeExports.jsxs(Ze,{windowSize:d,wrapperWidth:pe.width,className:"item-value-container",children:[n.jsxRuntimeExports.jsx(yn,{isCOTEnabled:w,recommendations:re,type:"class",isFirstColumn:!1,isReviewTab:Ge,isEnabled:!!o[qe]?.isPreFilled,isAccountOptionDisabled:xe,isMisCategorized:Vt,onRecommendationClick:z,selectedValue:P,selectedValueLabel:xt,existingOption:{label:We?.class?.className,value:We?.class?.classId},cotTracking:$,lineId:o.lineId,transactionId:r.transactionId,openTooltipId:B,setOpenTooltipId:I}),n.jsxRuntimeExports.jsx(vn,{children:F===!0?n.jsxRuntimeExports.jsx(Cn,{isHovered:f,children:n.jsxRuntimeExports.jsxs(Sn,{onClick:Ct=>{Ct.stopPropagation(),T?.(),G(!1),le(!0)},"data-testid":t.generateDataTestId("class-selection-field",ae),style:{display:"inline-flex",alignItems:"center",color:t.Colors.brandColorGoldDark,cursor:"pointer",height:t.Space.sp6},children:[n.jsxRuntimeExports.jsx(Rn,{}),jt.addClass]})}):He===!0?n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:ut,children:n.jsxRuntimeExports.jsx(Ms,{isHovered:f,"data-testid":t.generateDataTestId("class-selection-dropdown-container",ae),children:n.jsxRuntimeExports.jsx(Ht.GroupedSingleSelectFieldWithCOT,{name:ae,placeholder:jt.addClass,valueToId:Ct=>Ie(Ct),type:"class",showCOT:w,defaultValue:{selectedOption:P,allOptions:Oe},pageSource:"list_page",transactionStatus:Ge?"pending_review":"auto_categorized",menuIsOpen:He,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!F&&!P,customStyleConfig:p,onMenuClose:ut,menuPlacement:_,onCOTView:M})})}):n.jsxRuntimeExports.jsx(En,{isHovered:f,showOutline:Vt&&o[qe]?.isPreFilled!==!0&&!y&&Ge,children:n.jsxRuntimeExports.jsx(Ns,{"data-testid":t.generateDataTestId("class-selection-field",ae),onClick:pt,children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:xt??"",itemTextStyle:{color:f?L.colors.primary:L.colors.hero}})})})})]},Ce)}case"date":return n.jsxRuntimeExports.jsx(Ze,{windowSize:d,wrapperWidth:pe.width,children:n.jsxRuntimeExports.jsx(Bt,{windowSize:d,isLastItem:Te===lt.length-1,children:n.jsxRuntimeExports.jsx(Bn,{"data-testid":t.generateDataTestId("date-field",gt(j,qe,c.toString())),children:n.jsxRuntimeExports.jsx(Ld,{style:{color:f?L.colors.primary:L.colors.hero},children:J!=null?J.format(Ed.visual.MMMDCommaYYYYformat):null})})})},Ce);case"transaction_type":return n.jsxRuntimeExports.jsx(Ze,{windowSize:d,wrapperWidth:pe.width,children:n.jsxRuntimeExports.jsx(Bt,{windowSize:d,"data-testid":t.generateDataTestId("transaction-type-field",gt(j,qe,c.toString())),isLastItem:Te===lt.length-1,children:V!=null?n.jsxRuntimeExports.jsx(t.Tag,{textColor:f?new n.Color(L.colors.primary):t.getColorForTransactionType(void 0,L),text:V??D}):null})},Ce);case"memo":return n.jsxRuntimeExports.jsx(Ze,{windowSize:d,wrapperWidth:pe.width,children:n.jsxRuntimeExports.jsx(Bt,{style:{lineHeight:t.Space.sp3},windowSize:d,isLastItem:Te===lt.length-1,"data-testid":t.generateDataTestId("memo-field",gt(j,qe,c.toString())),children:ge!=null?n.jsxRuntimeExports.jsx(t.Tooltip,{placement:"bottom",data:ge,variant:"multi-information-points",children:n.jsxRuntimeExports.jsx(Od,{style:{color:f?L.colors.primary:L.colors.hero}})}):n.jsxRuntimeExports.jsx(Ad,{children:nn})})},Ce);case"amount":{const We=t.amountToString("0,0.[00]",o.amount,!0);return n.jsxRuntimeExports.jsx(Ze,{windowSize:d,style:{paddingRight:t.sp[4]},wrapperWidth:pe.width,children:n.jsxRuntimeExports.jsx(Bt,{windowSize:d,isLastItem:Te===lt.length-1,children:n.jsxRuntimeExports.jsx(Bn,{"data-testid":t.generateDataTestId("transaction-amount-field",gt(j,qe,c.toString())),style:{color:f?L.colors.primary:L.colors.hero},children:We})})},Ce)}}});return n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:cn()})},Ds=({isEnabled:e,isReviewTab:s,isMisCategorized:l,hasRecommendations:a,isTooltipVisible:p=!1})=>e?s?p?n.jsxRuntimeExports.jsx(Bd,{}):n.jsxRuntimeExports.jsx(Dd,{}):p?n.jsxRuntimeExports.jsx(_d,{}):n.jsxRuntimeExports.jsx(Md,{className:"ai-icon-selected-plain"}):!e&&l||a?p?n.jsxRuntimeExports.jsx(Pd,{}):n.jsxRuntimeExports.jsx(Nd,{}):null,_s=({isFirstColumn:e,children:s})=>n.jsxRuntimeExports.jsx(yo,{isFirstColumn:e,children:s}),yn=({recommendations:e,isCOTEnabled:s,type:l,isReviewTab:a,selectedValueLabel:p,isFirstColumn:u,isEnabled:o=!1,isMisCategorized:c=!1,selectedValue:r,existingOption:x,cotTracking:d,lineId:h,openTooltipId:f,transactionId:y,isAccountOptionDisabled:j,onRecommendationClick:C,setOpenTooltipId:b})=>{const g=m.useMemo(()=>`${y}:${h}:${l}`,[y,h,l]),w=f===g,$=t.useToolkitContext().analytics,{createAlternateRecommendationCallback:B}=t.useCOTAnalytics(),v=m.useCallback(D=>{const V=e[1],K=e[0];B(l,{currentValue:p??Dt,transactionCurrentStatus:a?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:d?{transactionId:y,lineId:h,onCOTView:(U,M,te,ge)=>{d.onCOTView?.(U,M,te,ge)}}:void 0},V,K)(D)},[B,e,p,a,l,d,h,y]),R=t.createCOTDataFromRecommendations(e,l,s,x,"list_page",a?"pending_review":"auto_categorized",C,v,r,j),I=t.hasRecommendationsForType(e,l),A=m.useCallback(()=>{b(g);const D=R?.recommendations[0]?.cot??[],V=R?.recommendations[1]?.cot??[],K=V.length>0;if($.trackTransactionCotView({recommendationFor:l,currentValue:p??Dt,recommendation:R?.recommendations[0]?.name??Dt,recommendationCot:D,isRecommendationCotAvailable:D.length>0,recommendationReason:R?.recommendations[0]?.reason??Dt,recommendationConfidencePercentage:R?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:t.toConfidenceLevelType(t.getConfidenceLevel(R?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:R?.recommendations[1]?.name??Dt,alternativeRecommendationCot:V,isAlternativeRecommendationCotAvailable:K,alternativeRecommendationReason:R?.recommendations[1]?.reason??Dt,alternativeRecommendationConfidencePercentage:R?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:K?t.toConfidenceLevelType(t.getConfidenceLevel(R?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:a?"pending_review":"auto_categorized",transactionPage:"list_page"}),d?.onCOTView!=null){const U=t.getCOTRecommendationSourceToTrack(R);U!=null&&d.onCOTView(h,y,l,U)}},[$,R,a,p,l,h,y,g,b]),q=m.useCallback(()=>{f===g&&b(void 0)},[f,g,b]),T=m.useMemo(()=>!r||!I?!1:e.some(D=>l==="vendor"&&D.vendor!=null?D.vendor.id===r||D.vendor.qboId===r:l==="category"&&D.account!=null?D.account.qboId===r||D.account.accountId===r:l==="class"&&D.class!=null?D.class.classId===r:!1),[r,I,e,l]);if(!I)return n.jsxRuntimeExports.jsx(yo,{isFirstColumn:u});const J=o||T;return R?n.jsxRuntimeExports.jsx(_s,{isFirstColumn:u,children:n.jsxRuntimeExports.jsx(t.Tooltip,{variant:"chain-of-thought",data:R,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:w,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:A,onClose:q,children:n.jsxRuntimeExports.jsx(Fd,{children:n.jsxRuntimeExports.jsx(Ds,{isEnabled:J,isReviewTab:a,isMisCategorized:c,hasRecommendations:I,isTooltipVisible:w})})})}):n.jsxRuntimeExports.jsx(_s,{isFirstColumn:u,children:n.jsxRuntimeExports.jsx(Ds,{isEnabled:J,isReviewTab:a,isMisCategorized:c,hasRecommendations:I,isTooltipVisible:w})})},fo=()=>{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(wd,{windowSize:e,ref:s,children:lt.map((p,u)=>{const o=`${u}${Cd}${p.key}`;switch(p.key){case"vendor":return n.jsxRuntimeExports.jsx(Ze,{windowSize:e,wrapperWidth:p.width,children:n.jsxRuntimeExports.jsx(Bt,{windowSize:e,isLastItem:u===lt.length-1,children:n.jsxRuntimeExports.jsxs(Bn,{children:[n.jsxRuntimeExports.jsx(t.CircularContentLoader,{width:t.sp[4],height:t.sp[4]}),n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:l*p.width.value(e)/100,height:t.sp[4],style:{display:"flex",alignItems:"center"}})]})})},o);default:return n.jsxRuntimeExports.jsx(Ze,{windowSize:e,wrapperWidth:p.width,children:n.jsxRuntimeExports.jsx(Bt,{windowSize:e,isLastItem:u===lt.length-1,children:n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:l*p.width.value(e)/100,height:t.sp[4],style:{display:"flex",alignItems:"center"}})})},o)}})})},wd=i.div`
|
|
1223
|
-
display: flex;
|
|
1224
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1225
|
-
padding-left: ${e=>ft.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
1226
|
-
padding-right: ${e=>ft.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
1227
|
-
padding-top: ${e=>ft.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
|
|
1228
|
-
padding-bottom: ${e=>ft.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
|
-
`,Id=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?Be.css`
|
|
1265
|
-
.ai-icon-selected-plain {
|
|
1266
|
-
color: ${s.colors.primary};
|
|
1267
|
-
}
|
|
1268
|
-
`:null};
|
|
1269
|
-
`,Td=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
|
-
`,kd=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=>ft.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
1286
|
-
padding-bottom: ${e=>ft.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
1287
|
-
`,Ze=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
|
-
`,$d=Be.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
|
-
`,Bt=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
|
-
`,Bn=i.div`
|
|
1312
|
-
display: flex;
|
|
1313
|
-
flex-direction: row;
|
|
1314
|
-
column-gap: ${t.Space.sp2};
|
|
1315
|
-
align-items: center;
|
|
1316
|
-
`,Ld=i(t.StandardRegular)`
|
|
1317
|
-
${$d};
|
|
1318
|
-
color: ${e=>e.theme.colors.hero};
|
|
1319
|
-
`,Sn=i(t.StandardRegular)`
|
|
1320
|
-
color: ${e=>e.theme.colors.hero};
|
|
1321
|
-
`,Rn=i(t.SvgAddRound)`
|
|
1322
|
-
width: ${t.Space.sp3};
|
|
1323
|
-
height: ${t.Space.sp3};
|
|
1324
|
-
margin: ${t.Space.sp1};
|
|
1325
|
-
`,Ad=i.div`
|
|
1326
|
-
margin: ${t.Space.sp3};
|
|
1327
|
-
`,Od=i(Rd)`
|
|
1328
|
-
width: ${t.Space.sp3};
|
|
1329
|
-
height: ${t.Space.sp3};
|
|
1330
|
-
margin-left: 10px;
|
|
1331
|
-
`,Dd=i(t.SvgAiIconSelected)`
|
|
1332
|
-
width: ${t.Space.sp5};
|
|
1333
|
-
height: ${t.Space.sp5};
|
|
1334
|
-
`,_d=i(Ht.SvgAiIconSelectedFilledPlain)`
|
|
1335
|
-
width: ${t.Space.sp5};
|
|
1336
|
-
height: ${t.Space.sp5};
|
|
1337
|
-
`,Bd=i(t.SvgAiIconSelectedFilled)`
|
|
1338
|
-
width: ${t.Space.sp5};
|
|
1339
|
-
height: ${t.Space.sp5};
|
|
1340
|
-
`,Md=i(Ht.SvgAiIconSelectedPlain)`
|
|
1341
|
-
width: ${t.Space.sp5};
|
|
1342
|
-
height: ${t.Space.sp5};
|
|
1343
|
-
`,Nd=i(t.SvgAiIcon)`
|
|
1344
|
-
width: ${t.Space.sp3};
|
|
1345
|
-
height: ${t.Space.sp3};
|
|
1346
|
-
path {
|
|
1347
|
-
stroke-width: 2;
|
|
1348
|
-
}
|
|
1349
|
-
`,Pd=i(t.SvgAiIconFilled)`
|
|
1350
|
-
width: ${t.Space.sp3};
|
|
1351
|
-
height: ${t.Space.sp3};
|
|
1352
|
-
`,yo=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
|
-
`,Fd=i.div`
|
|
1360
|
-
display: flex;
|
|
1361
|
-
align-items: center;
|
|
1362
|
-
justify-content: center;
|
|
1363
|
-
width: auto;
|
|
1364
|
-
cursor: pointer;
|
|
1365
|
-
`,zd=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
|
-
`,Bs=i.div`
|
|
1375
|
-
display: flex;
|
|
1376
|
-
`,Hd=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
|
-
`,Cn=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
|
-
`,Ms=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
|
-
`,Wd=i(t.StandardRegular)``,Vd=i.div`
|
|
1401
|
-
width: 100%;
|
|
1402
|
-
display: flex;
|
|
1403
|
-
padding-left: ${t.Space.sp0};
|
|
1404
|
-
`,En=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
|
-
`,Ns=i.div``,vn=i.div`
|
|
1417
|
-
display: flex;
|
|
1418
|
-
align-items: center;
|
|
1419
|
-
width: calc(100% - ${t.Space.sp5});
|
|
1420
|
-
`,qd=({sortConfig:e,fetchState:s,isDisabled:l,onColumnSortConfigChanged:a})=>{const p=t.useWindowSizeContext();return n.jsxRuntimeExports.jsxs(Ud,{windowSize:p,children:[n.jsxRuntimeExports.jsx(go,{sortConfig:e,isDisabled:s==="In-Progress"?"readonly":l,onColumnSortConfigChanged:a,"data-testid":t.generateDataTestId("transaction-categorization-list-empty-table-header")}),n.jsxRuntimeExports.jsx(Gd,{windowSize:p,"data-testid":t.generateDataTestId("transaction-categorization-list-empty-rows-container"),children:[...Array(3)].map((u,o)=>n.jsxRuntimeExports.jsx(fo,{"data-testid":t.generateDataTestId("transaction-categorization-list-empty-row",o.toString())},o))})]})},Ud=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
|
-
`,Gd=i.div`
|
|
1428
|
-
display: flex;
|
|
1429
|
-
flex: 1;
|
|
1430
|
-
min-height: 100%;
|
|
1431
|
-
flex-direction: column;
|
|
1432
|
-
row-gap: ${t.Space.sp3};
|
|
1433
|
-
`,{common:Kd,transactionDetail:{notCategorizedTooltipText:Jd}}=t.appLocale.getLocalizedStrings(),bn={rowGap:new t.ResponsiveSized(t.sp[0],t.sp[2],t.sp[3])},Yd=({selectedTab:e,transactionView:s,receiptUploadEndpoint:l,authParams:a,sectionId:p,isCOTEnabled:u,isDisabled:o,vendorSearchAutoCompleteActions:c,vendorSearchAutoCompleteData:r,setCurrentTransactionInAction:x,vendorLoadOptions:d,onTransactionCategorizationRowClick:h,onUpdateTransactionCategorizationUIState:f,onUpdateScrollYOffSetTransactionCategorizationUIState:y,onFetchTransactionCategorizationList:j,containerRef:C,cotTracking:b,isUncategorizedExpenseCategoryEnabled:g})=>{const w=t.useWindowSizeContext(),[_,$]=m.useState(void 0),{fetchState:B,uiState:v,transactionLocalData:R,selectedCheckBoxTransactionIds:I,transactionIdsWithUnsavedData:A,transactions:q,uncategorizedAccounts:T}=s,J=m.useRef(null),D=m.useRef({}),{control:V}=n.useFormContext();m.useEffect(()=>{J.current?.resetAfterIndex(0,!0)},[w,J,R]),m.useEffect(()=>{J.current?.scrollTo(v.scrollPosition?.scrollTop??0)},[e]);const K=m.useCallback(O=>{if(D.current?.[O]!=null){const Z=w==="small"&&v.pageToken==null&&O===R.length-1?bn.rowGap.value("medium-regular"):bn.rowGap.value(w);return D.current[O]+Z}if(R[O]==null)return 0;const F=R[O].transactionReviewLocalData,G=Object.keys(F.lineItemById).length;return G!=null&&!isNaN(G)&&G>1?As*G+bn.rowGap.value(w)*(G-1):As},[R,w,v.pageToken,v.sortKey,v.sortOrder]),U=m.useCallback((O,F)=>{D.current={...D.current,[O]:F},J.current?.resetAfterIndex(0,!0)},[w,J,R,v.sortKey,v.sortOrder]),M=m.useCallback(()=>{(v.pageToken!=null&&s.refreshStatus.fetchState!=="In-Progress"||s.refreshStatus.fetchState==="Completed")&&j(e,v.searchString,!0,v.pageToken,!0,!1)},[s.refreshStatus.fetchState,j,e,v.pageToken,v.searchString,v.sortKey,v.sortOrder]),te=m.useCallback(()=>{v.pageToken!=null&&M()},[M,v.pageToken,v.sortKey,v.sortOrder]),ge=n.debounce(O=>y(e,{scrollPosition:{scrollTop:O}}),1e3,{trailing:!0}),ne=O=>O<s.transactionLocalData.length,Q=(O,F)=>{f(e,{sortOrder:F,sortKey:O}),j(e,v.searchString,!1,null,!1,!0)},ae=O=>{if(e==="autoCategorized")return!I.includes(O);const F=R.find(Z=>Z.transactionId===O)?.transactionReviewLocalData,G=q.find(Z=>Z.id===O);return G!=null&&F!=null?H.checkIfAllLineItemsAreCategoryClassFilled(G,F,T,g)?g===!0&&H.isAnyItemWithUncategorizedExpenseAccount(T,F.lineItemById,["expense"])?A.includes(O)===!1:!1:!0:I.length===0?!0:!I.includes(O)};let z=[],L=[];(B==="Completed"||s.transactionLocalData.length>0)&&(L=s.transactionLocalData.map((O,F)=>{const G=ae(O.transactionId);let Z=!1;g===!0&&G===!0&&e==="review"&&H.isAnyItemWithUncategorizedExpenseAccount(T,O.transactionReviewLocalData.lineItemById,["expense"])&&(Z=!A.includes(O.transactionId));const fe=O.transactionReviewLocalData;return{label:n.jsxRuntimeExports.jsx(vd,{transactionView:s,sectionId:`${p}.${F}.${jo}`,transaction:O,receiptUploadEndpoint:l,authParams:a,onTransactionCategorizationRowClick:h,vendorLoadOptions:d,setCurrentTransactionInAction:x,vendorSearchAutoCompleteActions:c,vendorSearchAutoCompleteData:r,selectedTab:e,containerRef:C,listContainerRef:J,isCOTEnabled:u,cotTracking:b,openTooltipId:_,setOpenTooltipId:$,isUncategorizedExpenseCategoryEnabled:g},`${O.transactionId}.${fe.transactionType}`),value:O.transactionId,defaultChecked:!1,groupLabel:!1,isException:Z,exceptionMode:Z===!0?"checked_or_hover":void 0,isSticky:!0,isDisabled:G===!0?"readonly":void 0,exceptionType:Z===!0?"alert":void 0,exceptionInfo:Z===!0?Jd:void 0,exceptionTooltipStyle:{textAlign:"center",maxWidth:"250px",padding:`12px ${t.Space.sp2}`}}}),z=L.map(O=>O.value));const ee={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:N,subTitle:P}=Ne("transaction_categorization").allDoneText,E=R.map(O=>O.transactionId),W=m.useMemo(()=>s.totalCountByTab[e],[e,s.totalCountByTab]),Y=m.useMemo(()=>R.reduce((F,G)=>{const Z=Object.keys(G.transactionReviewLocalData.lineItemById).length;return F+(Z>0?Z:1)},0)<s.totalCountByTab[e]?R.length+1:R.length,[R,s.totalCountByTab,e]);return n.jsxRuntimeExports.jsx(tu,{windowSize:w,"data-testid":t.generateDataTestId("transaction-categorization-list-wrapper"),children:n.jsxRuntimeExports.jsx(nu,{windowSize:w,"data-testid":t.generateDataTestId("transaction-categorization-list-container"),children:B==="Error"?n.jsxRuntimeExports.jsxs(ou,{windowSize:w,"data-testid":t.generateDataTestId("transaction-categorization-reload-page"),children:[n.jsxRuntimeExports.jsx(iu,{onClick:()=>j(e,void 0,!0,null,!1,!0),"data-testid":t.generateDataTestId("transaction-categorization-reload-icon"),children:n.jsxRuntimeExports.jsx(t.SvgReload,{})}),n.jsxRuntimeExports.jsx(ru,{"data-testid":t.generateDataTestId("transaction-categorization-reload-label"),children:Kd.reloadPage.label})]}):B==="Completed"&&R.length===0?n.jsxRuntimeExports.jsx(dt,{tab:"transaction_categorization",title:N,subTitle:P,"data-testid":t.generateDataTestId("transaction-categorization-empty-table-section")}):B==="Not-Started"||B==="In-Progress"&&R.length===0?n.jsxRuntimeExports.jsx(qd,{sortConfig:{sortKey:v.sortKey,sortOrder:v.sortOrder},fetchState:B,onColumnSortConfigChanged:Q,"data-testid":t.generateDataTestId("transaction-categorization-list-empty-table")}):n.jsxRuntimeExports.jsx(su,{windowSize:w,"data-testid":t.generateDataTestId("transaction-categorization-list-view"),children:n.jsxRuntimeExports.jsx(n.Controller,{control:V,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:O,ref:F,onChange:G}})=>n.jsxRuntimeExports.jsx(So.Provider,{value:{value:O,mode:"off",allCheckBoxValues:z,index:0,sortKey:v.sortKey,sortOrder:v.sortOrder,fetchState:B,isDisabled:o,groupLabelCheckBox:ee,onColumnSortConfigChanged:Q,ref:F,onChange:G,selectedTab:e},children:n.jsxRuntimeExports.jsx(n.AutoSizer,{children:({height:Z,width:fe})=>n.jsxRuntimeExports.jsx(n.InfiniteLoader,{isItemLoaded:ne,itemCount:W,loadMoreItems:te,children:({onItemsRendered:Ee,ref:ce})=>n.jsxRuntimeExports.jsx(n.VariableSizeList,{ref:S=>{ce(S),J.current=S},height:Z,itemCount:Y,itemKey:S=>`${R[S]?.transactionId??""}-row-${S}`,innerElementType:Zd,onItemsRendered:Ee,width:fe,style:{willChange:"auto"},overscanCount:Ul,itemSize:K,itemData:{checkboxes:L,value:O,allCheckBoxValues:z,groupLabelCheckBox:ee,categorizationGroupValue:E,transactionLocalData:R,mode:"always_on",setRowHeight:U,isItemLoaded:ne,ref:ce,onChange:G,selectedCheckBoxTransactionIds:I},initialScrollOffset:s.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:S})=>{ge(S)},children:Qd})})})})})})})})},Zd=e=>{const{value:s,allCheckBoxValues:l,groupLabelCheckBox:a,index:p,isDisabled:u,fetchState:o,sortKey:c,sortOrder:r,mode:x,ref:d,onChange:h,onColumnSortConfigChanged:f}=Xd(),{children:y,style:j,...C}=e;return o==="Completed"?n.jsxRuntimeExports.jsxs(au,{ref:d,style:{...j,width:"auto"},...C,children:[n.jsxRuntimeExports.jsx(cu,{children:n.jsxRuntimeExports.jsx(t.CheckBoxWithLabel,{selectionLimit:H.MAX_SELECTION_LIMIT,value:s,checkBox:{label:n.jsxRuntimeExports.jsx(eu,{children:n.jsxRuntimeExports.jsx(go,{sortConfig:{sortKey:c,sortOrder:r},isDisabled:u,onColumnSortConfigChanged:f})}),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:p,onChangeHandler:b=>t.onChangeHandler({event:b,value:s,allCheckBoxValues:l,groupLabelCheckBox:a,onChange:h}),ref:d})}),n.jsxRuntimeExports.jsx(lu,{children:y})]},`${l[p]}-${p}`):null},So=m.createContext(void 0),Xd=()=>{const e=m.useContext(So);if(!e)throw new Error("useStickyContext must be used within a StickyProvider");return e},Qd=({index:e,style:s,data:l})=>{const{checkboxes:a,value:p,groupLabelCheckBox:u,categorizationGroupValue:o,allCheckBoxValues:c,transactionLocalData:r,isItemLoaded:x,setRowHeight:d,ref:h,onChange:f,selectedCheckBoxTransactionIds:y}=l,j=m.useRef(null),C=t.useWindowSizeContext();if(m.useEffect(()=>{j.current?.firstElementChild!=null&&d(e,j.current.firstElementChild.clientHeight)},[e,j,C,r[e]?.transactionReviewLocalData]),x(e)===!0){const b=a[e];return n.jsxRuntimeExports.jsx(Ps,{style:{...s,paddingBottom:t.Space.sp0,paddingRight:t.Space.sp8,width:"100%",flex:"1"},ref:j,children:n.jsxRuntimeExports.jsx(t.CheckBoxWithLabel,{selectionLimit:H.MAX_SELECTION_LIMIT,checkBox:b,value:p,groupLabelCheckBox:u,allCheckBoxValues:c,mode:b.isDisabled==="readonly"||y.includes(b.value)===!1&&y.length>=H.MAX_SELECTION_LIMIT?"off":"always_on",draggable:!1,isDisabled:b.isDisabled,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:t.Space.sp3},infoIconContainerStyle:{padding:20},name:`${Tt}.${p}`,ref:h,index:e,onChangeHandler:g=>t.onChangeHandler({event:g,value:p,allCheckBoxValues:c,groupLabelCheckBox:u,onChange:f})})},o[e])}else return n.jsxRuntimeExports.jsx(Ps,{style:{...s,paddingBottom:t.Space.sp0,paddingRight:t.Space.sp8,width:"100%",flex:"1"},ref:j,children:n.jsxRuntimeExports.jsx(du,{children:n.jsxRuntimeExports.jsx(fo,{})})},n.nanoid())},eu=i.div`
|
|
1434
|
-
flex: 1;
|
|
1435
|
-
width: auto;
|
|
1436
|
-
padding-right: ${t.Space.sp8};
|
|
1437
|
-
`,tu=i.div`
|
|
1438
|
-
width: 100%;
|
|
1439
|
-
height: 100%;
|
|
1440
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1441
|
-
`,nu=i.div`
|
|
1442
|
-
height: 100%;
|
|
1443
|
-
`,su=i.div`
|
|
1444
|
-
height: 100%;
|
|
1445
|
-
display: flex;
|
|
1446
|
-
flex-direction: column;
|
|
1447
|
-
max-width: 99.9%;
|
|
1448
|
-
`,ou=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
|
-
`,iu=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
|
-
`,ru=i(t.SmallRegular)`
|
|
1471
|
-
margin-top: ${t.Space.sp3};
|
|
1472
|
-
color: ${e=>e.theme.colors.hero};
|
|
1473
|
-
`,Ps=i.div`
|
|
1474
|
-
top: ${t.Space.sp0};
|
|
1475
|
-
left: ${t.Space.sp0};
|
|
1476
|
-
padding-bottom: ${t.Space.sp3};
|
|
1477
|
-
box-sizing: border-box;
|
|
1478
|
-
`,au=i.div`
|
|
1479
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1480
|
-
`,cu=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
|
-
`,lu=i.div`
|
|
1491
|
-
position: relative;
|
|
1492
|
-
width: auto;
|
|
1493
|
-
height: 100%;
|
|
1494
|
-
`,du=i.div`
|
|
1495
|
-
padding-left: ${t.Space.sp8};
|
|
1496
|
-
`,uu=({selectedTab:e,transactionView:s,receiptUploadEndpoint:l,authParams:a,sectionId:p,vendorSearchAutoCompleteData:u,vendorSearchAutoCompleteActions:o,isCOTEnabled:c,setCurrentFooterFormId:r,setLocalDataForCategoryAndClass:x,onTransactionCategorizationRowClick:d,onUpdateTransactionCategorizationUIState:h,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:y,onSaveUpdateTransactionCategorization:j,onUpdateSelectedCheckboxTransactionIds:C,onFetchRecommendationsForEntityCategorization:b,onFetchRecommendationsForEntityCategorizationWithCustomer:g})=>{const[w,_]=m.useState({transactionId:void 0,lineItemId:void 0}),$=m.useRef(),B=m.useRef({}),{useDynamicConfig:v}=t.useZeniFeatureContext(),{configValue:R}=v(t.DynamicConfigNames.enableUncategorizedExpenseCategory),I=R?.uncategorized_expense_category_enabled===!0,A=(z,L,ee,N)=>{const P={...B.current};P[L]==null&&(P[L]=[]);let E=P[L].findIndex(W=>W.lineId===z);if(E===-1){const W={lineId:z,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};P[L].push(W),E=P[L].length-1}else{const W=P[L][E];P[L][E]={...W,category:{...W.category,recommendationTypesViewed:[...W.category.recommendationTypesViewed]},class:{...W.class,recommendationTypesViewed:[...W.class.recommendationTypesViewed]},vendor:{...W.vendor,recommendationTypesViewed:[...W.vendor.recommendationTypesViewed]}}}N!=null&&N!==""&&!P[L][E][ee].recommendationTypesViewed.includes(N)&&P[L][E][ee].recommendationTypesViewed.push(N),B.current=P},{transactions:q,transactionLocalData:T,accountsHierarchyList:J,classHierarchyList:D,accountList:V,classList:K,selectedCheckBoxTransactionIds:U,uncategorizedAccounts:M}=s,te=n.useForm({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>zs(U,T,J,D,u.entityAutoCompleteView),[J,D,U,T,u.entityAutoCompleteView]),values:m.useMemo(()=>zs(U,T,J,D,u.entityAutoCompleteView),[J,D,U,T,u.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});m.useEffect(()=>()=>{r("expenseAutomationPage")},[]),m.useEffect(()=>{U.length>0?r(fn):r("expenseAutomationPage")},[U,r]);const ge=te.handleSubmit(z=>{const L=z[an],ee=B.current;j(e,L,ee),L.forEach(N=>{delete B.current[N]})}),ne=async(z,L)=>{if(z!=null){if(z===an){const ee=te.getValues(an);if(ee.length<U.length){C(e,ee);return}if(ee.length===H.MAX_SELECTION_LIMIT){C(e,ee);return}const N=ee[ee.length-1],P=L[Tt].findIndex(W=>W.transactionId===N),E=te.getValues(`${Tt}.${P}.lineInfo`);if(E!=null){let W=!1;if(E.every(O=>(W=H.isAccountUncategorized(M,O[be].selectedOption,I?["income"]:void 0),!!O[be].selectedOption&&O[be].selectedOption!=null&&!W&&!!O[qe].selectedOption&&!!O[Qe].selectedOption))===!0){C(e,ee);return}else{const O=ee.filter(F=>F!==N);C(e,O);return}}return}if(z.includes(be)===!0||z.includes(qe)===!0){const ee=parseInt(z.split(".")[1]),N=parseInt(z.split(".")[3]),P=te.getValues(`${Tt}.${ee}.lineInfo`),E=P[N];if(z.includes(be)||z.includes(qe)){const{transactionId:W,lineId:Y,recommendations:O}=E;if(P!=null){const F=E[be].selectedOption,G=E[qe].selectedOption,Z=E[Qe].selectedOption,fe=E[Qe].selectedOption,Ee=E[Qe].defaultOptions,ce=Ee?.find(le=>le.options?.find(Me=>Me.value===Z))?.options?.find(le=>le.value===Z)?.label,S=Ee?.find(le=>le.options?.find(Me=>Me.value===fe))?.options?.find(le=>le.value===fe)?.label,re=u.entityAutoCompleteView.vendor.find(le=>le.qboId===Z),ye=u.entityAutoCompleteView.customer.find(le=>le.qboId===fe),Oe=O.find(le=>le.vendor?.qboId===Z)?.vendor,we=Z||re?.qboId||Oe?.qboId?{id:Z??re?.qboId??Oe?.qboId??"",name:ce??re?.name??Oe?.name??"",logo:re?.logo??Oe?.logo}:void 0,Ie=fe||ye?.qboId?{id:fe??ye?.qboId??"",name:S??ye?.name??"",logo:ye?.logo}:void 0,xe=V.find(le=>le.qboId===F),Ue=K.find(le=>le.classId===G),ze=s.transactionLocalData.find(le=>le.transactionId===W)?.transactionReviewLocalData.lineItemById[Y].account,He=s.transactionLocalData.find(le=>le.transactionId===W)?.transactionReviewLocalData.lineItemById[Y].class;x(e,W,Y,q,we?.id,Ie?.id,z.includes(be)&&xe!=null?{...xe,isPreFilled:!1}:ze,z.includes(qe)&&Ue!=null?{...Ue,isPreFilled:!1}:He,void 0,O,I)}return}}if(z.includes(Qe)){const ee=parseInt(z.split(".")[1]),N=parseInt(z.split(".")[3]),P=te.getValues(`${Tt}.${ee}.lineInfo`);if(P!=null){const E=P[N],{transactionId:W,recommendations:Y}=E,O=E[Qe].selectedOption,F=E[Qe].selectedOption,G=E[Qe].defaultOptions,Z=G?.flatMap(xe=>xe.options)?.find(xe=>xe.value===O)?.label,fe=G?.flatMap(xe=>xe.options)?.find(xe=>xe.value===F)?.label,Ee=u.entityAutoCompleteView.vendor.find(xe=>xe.qboId===O),ce=u.entityAutoCompleteView.customer.find(xe=>xe.qboId===F),S=Y.find(xe=>xe.vendor?.qboId===O)?.vendor,re=O!==""&&O!=null?O:Z!==""&&Z!=null?Z:"",ye=(Ee?.qboId!=null&&Ee.qboId!==""?Ee.qboId:null)??(S?.qboId!=null&&S.qboId!==""?S.qboId:null)??(O!=null&&O!==""?O:null),Oe={id:ye??Z??"",name:Z??Ee?.name??S?.name??"",logo:Ee?.logo??S?.logo},we=ce?.qboId!=null&&ce.qboId!==""?{id:ce.qboId??F??"",name:fe??ce.name??"",logo:ce.logo}:void 0,Ie=q.find(xe=>xe.id===W);if(Ie!=null){const xe=s.transactionLocalData.find(Me=>Me.transactionId===Ie.id)?.transactionReviewLocalData,Ue=xe?.lineItemById[E.lineId],ze=H.isVendorTransaction(Ie)===!0?xe?.selectedEntity:Ue?.selectedEntityLine,He=we?.id!=null&&we.id!==""?{id:we.id,name:we.name,type:"customer",qboId:we.id,zeniId:we.id,logo:we.logo}:Oe.id!==""&&Oe.id!=null?{id:re,name:Z??re,type:"vendor",qboId:re,zeniId:re,logo:Oe.logo,isPreFilled:ze?.id===ye&&ze?.isPreFilled}:void 0,le={transactionId:{id:Ie.id,type:Ie.type},transaction:Ie,lineIds:Ie.type!=="journal_entry"?Ie.lines?.map(Me=>Me.id)??[]:[E.lineId]};He?.type==="customer"?g(E.amount.amount,le,!1,e,He,we,I):b(E.amount.amount,le,!1,e,He,Oe,I)}}o.onCancelAutoComplete?.();return}}};m.useEffect(()=>{const z=te.watch((L,{name:ee})=>{ee!=null&&L!=null&&n.defer(()=>ne(ee,L))});return()=>{z.unsubscribe()}}),m.useEffect(()=>{if(u.entityAutoCompleteView.fetchState==="Completed"){const z=s.transactionLocalData.find(L=>L.transactionId===w.transactionId);if(z){const{transactionReviewLocalData:L}=z,{selectedEntity:ee}=L,N=w?.lineItemId??L.sortedLineItems[0],P=L.lineItemById[N],E=P.selectedEntityLine;$.current?.(t.getGroupedForPayeeEntityOptionsWithCOT(u.entityAutoCompleteView,ee??E,P?.recommendationsWithCOT??[]))}_({transactionId:void 0,lineItemId:void 0})}},[u.entityAutoCompleteView.fetchState]);const Q=(z,L)=>{o.onAutoCompleteInputChange?.(z),$.current=L},ae=m.useRef(null);return n.jsxRuntimeExports.jsx(mu,{ref:ae,"data-testid":t.generateDataTestId("transaction-categorization-list-page"),children:n.jsxRuntimeExports.jsx(n.FormProvider,{...te,children:n.jsxRuntimeExports.jsx("form",{id:Fs(fn),onSubmit:ge,style:{height:"100%",width:"100%"},"data-testid":t.generateDataTestId(Fs(fn)),children:n.jsxRuntimeExports.jsx(Yd,{selectedTab:e,sectionId:p,transactionView:s,receiptUploadEndpoint:l,authParams:a,setCurrentTransactionInAction:_,onUpdateTransactionCategorizationUIState:h,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:y,onTransactionCategorizationRowClick:d,vendorLoadOptions:Q,vendorSearchAutoCompleteData:u,vendorSearchAutoCompleteActions:o,containerRef:ae,isCOTEnabled:c,cotTracking:{onCOTView:A},isUncategorizedExpenseCategoryEnabled:I})})})})},Fs=e=>`${e}_form`,zs=(e,s,l,a,p)=>({[Tt]:s.map(o=>pu(o.transactionId,o.transactionReviewLocalData,l,a,p)),[an]:e}),pu=(e,s,l,a,p)=>{const{lineItemById:u,sortedLineItems:o,selectedEntity:c}=s,r=Object.values(u).sort((d,h)=>o.indexOf(d.lineId)-o.indexOf(h.lineId)),x=r[0]?.lineId;return{[jo]:r.map(d=>{const h=d.account?.qboId??d.account?.accountId,f=d.class?.classId,y=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,[be]:{selectedOption:h,allOptions:t.getGroupedAccountOptionsWithCOT(l,d.recommendationsWithCOT)},[qe]:{selectedOption:f,allOptions:t.getGroupedClassOptionsWithCOT(a,d.recommendationsWithCOT)},[Qe]:{selectedOption:c?.id??y?.id??c?.name??y?.name,defaultOptions:t.getGroupedForPayeeEntityOptionsWithCOT(p,c??y,s.lineItemById[x]?.recommendationsWithCOT??[])},[jd]:d.lineEntity,[fd]:d.recommendationsWithCOT??[]}}),transactionId:e,[yd]:s.vendorDetails!=null&&s.vendorDetails.id!=null?{id:s.vendorDetails.id,qboId:s.vendorDetails.qboId,name:s.vendorDetails.name}:void 0,[Sd]:s.customerDetails!=null&&s.customerDetails.id!=null?{id:s.customerDetails.id,qboId:s.customerDetails.qboId,name:s.customerDetails.name}:void 0}},mu=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
|
-
`,Hs={subSectionContainerLeftRightPadding:new t.ResponsiveSized(t.sp[3],t.sp[6],t.sp[8])},xu=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
|
-
`,hu=i.div`
|
|
1513
|
-
display: flex;
|
|
1514
|
-
flex-direction: column;
|
|
1515
|
-
width: 100%;
|
|
1516
|
-
`,gu=e=>{const{currentFooterFormId:s,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:a,setResetJeAccountSettingsForm:p,expenseAutomationViewSelector:u,authParams:o,receiptUploadEndpoint:c,companyId:r,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d,enableMonthEndInsightsZeniGPTFeature:h,monthEndInsightsPreviewMode:f,monthEndInsightsCustomerRequestData:y,allThreadsSectionOpen:j,loggedInUser:C,isCOTEnabled:b,setCurrentFooterFormId:g,onFetchRecommendationsForEntityCategorization:w,onFetchRecommendationsForEntityCategorizationWithCustomer:_,onTransactionCategorizationRowClick:$,onFetchMissingReceiptsList:B,onMissingReceiptsRowClick:v,onUploadReceiptAttachment:R,onUploadReceiptComplete:I,onUploadReceiptFetchStatus:A,onReconTabColumnSortConfigChanged:q,onReloadReconciliationListPage:T,onUpdateReconcileTabLocalData:J,onUpdateMissingReceiptsUIState:D,onFetchTransactionCategorizationList:V,onUpdateTransactionCategorizationUIState:K,onUpdateScrollYOffSetTransactionCategorizationUIState:U,handleJeScheduleClick:M,ignoreRecommendedJeSchedule:te,onJESchedulesFormDataChange:ge,onPostJESchedule:ne,setLocalDataForCategoryAndClass:Q,resetTransactionCategorizationLocalData:ae,updateSelectedVendorForTransaction:z,onSaveUpdateTransactionCategorization:L,onUpdateSelectedCheckboxTransactionIds:ee,improveMonthEndInsightsUsingZeniGPTClick:N,onRemoveFileAttachment:P,onUpdateFileAttachment:E,onCloseAllThreadsSection:W,onEditMonthEndInsightsClick:Y,previewMonthEndReport:O,saveMonthEndReport:F,onOpenFileAttachmentSnackBar:G,onCloseFileAttachmentSnackBar:Z,onClickCustomerRequest:fe,sendMonthEndReport:Ee,markAsReview:ce,onReloadPage:S,updateOperatingExpensesIdsForReview:re,onFetchReimbursementView:ye,updateSectionIdsForReview:Oe,onUpdateFluxAnalysisUIState:we,fetchFluxViewOnScroll:Ie,onFetchFluxViewList:xe,setIsJeAccountSettingsOpened:Ue,onReviewClicked:ze,setOpenDrawerClicked:He,onEstablishConnectionClick:le,onFetchLinkTokenClick:Me,updateReconReviewTabLocalData:Je,onReconReviewTabColumnSortConfigChanged:St,onSaveReconciliation:Ye,onSaveReconciliationReview:ot,onReconMatchedTransactionClick:ut,onAddStatementClick:Rt,redirectToVendorDetailPage:pt}=e,{currentSelectedView:se,missingReceipts:ue,transactionView:Re,selectedPeriod:he,monthEndInsights:De,selectedTransactionCategorizationTab:mt,reconciliation:it}=u;switch(se){case"transaction_categorization":return Re.fetchState==="Completed"&&Re.transactionLocalData.length===0?n.jsxRuntimeExports.jsx(dt,{tab:se,title:Ne(se).allDoneText.title,subTitle:Ne(se).allDoneText.subTitle}):n.jsxRuntimeExports.jsx(uu,{setCurrentFooterFormId:g,selectedPeriod:he,selectedTab:mt,sectionId:Tt,transactionView:Re,receiptUploadEndpoint:c,authParams:o,onUpdateTransactionCategorizationUIState:K,onUpdateScrollYOffSetTransactionCategorizationUIState:U,onFetchTransactionCategorizationList:V,onTransactionCategorizationRowClick:$,setLocalDataForCategoryAndClass:Q,resetTransactionCategorizationLocalData:ae,updateSelectedVendorForTransaction:z,onSaveUpdateTransactionCategorization:L,onUpdateSelectedCheckboxTransactionIds:ee,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d,onFetchRecommendationsForEntityCategorization:w,onFetchRecommendationsForEntityCategorizationWithCustomer:_,isCOTEnabled:b});case"je_schedules":return n.jsxRuntimeExports.jsx($c,{setIsJeAccountSettingsOpened:Ue,expenseAutomationViewSelector:u,setResetJeAccountSettingsForm:p,currentFooterFormId:s,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:a,setCurrentFooterFormId:g,handleJeScheduleClick:M,ignoreRecommendedJeSchedule:te,onJESchedulesFormDataChange:ge,onPostJESchedule:ne,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d});case"missing_receipts":return ue.fetchState==="Completed"&&ue.transactions.length===0?n.jsxRuntimeExports.jsx(dt,{tab:se,title:Ne(se).allDoneText.title,subTitle:Ne(se).allDoneText.subTitle}):n.jsxRuntimeExports.jsx(jl,{onUpdateMissingReceiptsUIState:D,onFetchMissingReceiptsList:B,missingReceipts:ue,receiptUploadEndpoint:c,authParams:o,selectedPeriod:he,onMissingReceiptsRowClick:v,onUploadReceiptComplete:I,onUploadReceiptFetchStatus:A,onUploadReceiptAttachment:R});case"month_end_insights":if(De!=null&&u.monthEndCloseChecksView.monthEndCloseChecks!=null){if(De.fetchState==="Not-Started"||De.fetchState==="In-Progress"||De.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||De.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return n.jsxRuntimeExports.jsx(vo.BusyIndication,{fetchState:"In-Progress"});{const xt={application:"cockpit",companyId:r,entityId:r,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:De.companyName,url:window.location.href},{url:Nt,...Ge}=xt,kt={...Ge};return n.jsxRuntimeExports.jsx(hu,{children:n.jsxRuntimeExports.jsx(ql,{allThreadsSectionOpen:j,customerRequestData:y,companyId:r,enableZeniGPTFeature:h,filterMetaData:kt,selectedPeriod:u.selectedPeriod,improveUsingZeniGPTClick:N,isZeniUser:C?.userEmail?.includes("zeni.ai")??!1,monthEndReportView:De,newThreadMetadata:xt,onClickCustomerRequest:fe,onCloseAllThreadsSection:W,onCloseFileAttachmentSnackBar:Z,onOpenFileAttachmentSnackBar:G,onRemoveFileAttachment:P,onUpdateFileAttachment:E,previewMode:f,previewMonthEndReport:O,saveMonthEndReport:F,onEditClick:Y,sendMonthEndReport:Ee})})}}else return null;case"flux_analysis":return u.fluxAnalysis.fetchStatus.fetchState==="Completed"&&u.fluxAnalysis.sections.generalExpense.vendors.length===0&&u.fluxAnalysis.sections.reimbursement.vendors.length===0?n.jsxRuntimeExports.jsx(dt,{tab:se,title:Ne(se).allDoneText.title,subTitle:Ne(se).allDoneText.subTitle}):n.jsxRuntimeExports.jsx(rc,{fluxAnalysis:u.fluxAnalysis,selectedPeriod:u.selectedPeriod,markAsReview:ce,onReloadPage:S,updateOperatingExpensesIdsForReview:re,updateSectionIdsForReview:Oe,onUpdateFluxAnalysisUIState:we,setCurrentFooterFormId:g,fetchFluxViewOnScroll:Ie,onFetchFluxViewList:xe,onFetchReimbursementView:ye,redirectToVendorDetailPage:pt});case"reconciliation":return n.jsxRuntimeExports.jsx(Va,{onReloadReconciliationListPage:T,currentFooterFormId:s,reconciliation:it,companyId:r,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d,onReviewClicked:ze,setOpenDrawerClicked:He,setCurrentFooterFormId:g,onReconTabColumnSortConfigChanged:q,onUpdateReconcileTabLocalData:J,onEstablishConnectionClick:le,onFetchLinkTokenClick:Me,updateReconReviewTabLocalData:Je,onReconReviewTabColumnSortConfigChanged:St,onSaveReconciliation:Ye,onSaveReconciliationReview:ot,onReconMatchedTransactionClick:ut,onAddStatementClick:Rt});default:return n.jsxRuntimeExports.jsx(dt,{tab:se,title:Ne(se).allDoneText.title,subTitle:Ne(se).allDoneText.subTitle})}};function ju(e){const s=t.useWindowSizeContext(),{currentSelectedView:l}=e.expenseAutomationViewSelector,a=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",p=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return n.jsxRuntimeExports.jsx(xu,{windowSize:s,style:{...p===!0?{paddingLeft:Hs.subSectionContainerLeftRightPadding.value(s),paddingRight:Hs.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(gu,{...e})})}const fu=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"})),yu=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"})),Su=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
|
-
`,Ru=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
|
-
`,Ws=i(t.SvgArrowTailRight)`
|
|
1537
|
-
height: ${t.Space.sp3};
|
|
1538
|
-
width: ${t.Space.sp3};
|
|
1539
|
-
cursor: pointer;
|
|
1540
|
-
color: inherit;
|
|
1541
|
-
`,Vs=i(fu)`
|
|
1542
|
-
height: ${t.Space.sp3};
|
|
1543
|
-
width: ${t.Space.sp3};
|
|
1544
|
-
cursor: pointer;
|
|
1545
|
-
color: inherit;
|
|
1546
|
-
`,{common:{footer:ke,texts:{maxLimitReached:Cu,confirmAction:Eu},headers:vu,create:bu,strings:Ft,texts:Mt,cancel:wu,confirm:Iu,monthsByIndex:Tu},dateFormat:{visual:{MMMDCommaYYYYformat:qs}},expenseAutomation:zt}=t.appLocale.getLocalizedStrings(),ku=e=>{const{expenseAutomationViewSelector:s,isDisabled:l,isRealtimeInsightsFeatureEnabled:a,isUncategorizedExpenseCategoryEnabled:p,isCOTEnabled:u,onUpdateTab:o,onReconTabUpdate:c,onUpdateStep:r,onSearchTextChanged:x,onRefresh:d,onClose:h,onBack:f,resetTransactionCategorizationLocalData:y,updateOperatingExpensesIdsForReview:j,clearJeScheduleLocalData:C,onSaveReconciliation:b}=e,{currentSelectedView:g,allSteps:w,missingReceipts:_,jeSchedules:$,fluxAnalysis:B,monthEndInsights:v,transactionView:R,selectedTransactionCategorizationTab:I,reconciliation:A,selectedPeriod:q}=s,[T,J]=m.useState("expenseAutomationPage"),[D,V]=m.useState(()=>{}),[K,U]=m.useState(!1),M=t.useWindowSizeContext(),te=!!e.loggedInUser?.userEmail?.includes("zeni.ai"),ge=te?t.ThreadsContext:t.NonZeniUsersThreadsContext,{openThread:ne,setOpenThread:Q}=m.useContext(ge),[ae,z]=m.useState(!1),[L,ee]=m.useState(!1),N=w.find(se=>se.step===g),{nextStep:P,previousStep:E}=Ro(w,g),{uiState:{searchString:W,pageToken:Y},totalCountByTab:O,transactions:F,fetchStateByTransactionTabs:G,transactionLocalData:Z}=R,{selectedReconAccount:fe,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:Ee}}}}=A;let ce="Not-Started",S="complete";switch(g){case"missing_receipts":ce=_.refreshStatus.fetchState,S=_.completionStatus;break;case"je_schedules":ce=$.refreshStatus.fetchState,S=$.completionStatus;break;case"month_end_insights":v!=null&&(ce=v?.fetchState);break;case"flux_analysis":ce=B.refreshStatus.fetchState,S=B.completionStatus;break;case"transaction_categorization":ce=R.refreshStatus.fetchState,S=R.completionStatus;break;case"reconciliation":fe==null?(ce=A.refreshStatus.fetchState,S=A.completionStatus):(ce=A.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",S=A.completionStatus)}const re=()=>{D()},{saveStatus:ye,selectedCheckBoxTransactionIds:Oe}=R,we=()=>{const se=co(s.fluxAnalysis.sections,s.fluxAnalysis.reviewOperatingExpensesIds),ue=H.dateNow(),{month:Re,year:he}=q,mt=H.dateNow().set("month",Re-1).set("year",he).endOf("month");switch(T){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:se===!0?ke.markAsReviewed:Mt.undo,style:{justifyContent:"space-evenly"},isLoading:s.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:wn(s.fluxAnalysis.reviewOperatingExpensesIds.length,Ae.FLUX_MAX_SELECTION_LIMIT,M,Mt.vendor,g),cancelBtn:{label:ke.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{j([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ke.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:ye.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:wn(Oe.length,H.MAX_SELECTION_LIMIT,M,Mt.transaction,g),cancelBtn:{label:ke.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{y(I,F.map(it=>it.id),q,!1,O[I],H.getLineItemsByTransactionIdsFromLocalData(Z,I),p,Y)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:ke.next,backBtnLabel:ke.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ke.next,style:{justifyContent:"space-evenly"},isDisabled:l||N?.isNextDisabled,suffixIcon:n.jsxRuntimeExports.jsx(Ws,{}),onClick:()=>{r(P.step)}},cancelBtn:{label:ke.back,isDisabled:l||N?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:n.jsxRuntimeExports.jsx(Vs,{}),onClick:()=>{r(E.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:ke.reconcile,backBtnLabel:ke.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ke.reconcile,onClick:()=>{b({reconcileAction:"reconcile"})},isDisabled:!(A.reconciliationTabsState.balances.variance.amount===0&&ue.isAfter(mt)),isLoading:A.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:wn(Ee.length,1/0,M,Mt.transaction,g),cancelBtn:{onClick:()=>{b({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:A.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:ke.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:ke.save,backBtnLabel:ke.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ke.save,isLoading:$.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>re(),label:ke.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const it=g==="reconciliation"&&s.reconciliation.selectedTab==="review"&&s.reconciliation.selectedAccountId!=null,xt=g==="reconciliation"&&s.reconciliation.selectedAccountId==null,Nt=g==="reconciliation"&&s.reconciliation.selectedTab==="reconcile"&&s.reconciliation.selectedAccountId!=null,Ge=P.step==="month_end_insights"&&(g==="flux_analysis"&&(s.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||s.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||xt),kt=g==="transaction_categorization"&&s.selectedTransactionCategorizationTab==="review",Wt=g==="transaction_categorization"&&s.selectedTransactionCategorizationTab==="autoCategorized",Vt=s.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&(a||N?.isNextDisabled===!1),cn=P.step==="month_end_insights"&&(xt||g==="flux_analysis")?!Vt:N?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:ke.next,backBtnLabel:ke.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ge===!0?Lu(s.selectedPeriod.month):ke.next,style:{justifyContent:"space-evenly"},isDisabled:cn,suffixIcon:n.jsxRuntimeExports.jsx(Ws,{}),onClick:()=>{kt?o("autoCategorized"):it?c("reconcile"):r(P.step)}},cancelBtn:{label:ke.back,isDisabled:l||N?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:n.jsxRuntimeExports.jsx(Vs,{}),onClick:()=>{Wt?o("review"):Nt?c("review"):it?f():r(E.step)}}}}}},Ie=()=>{switch(T){case"expenseAutomationFluxPage":return{confirmAction:()=>{z(!1),j([]),h()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{z(!1),y(I,F.map(se=>se.id),q,!1,O[I],H.getLineItemsByTransactionIdsFromLocalData(Z,I),p,Y),h()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{z(!1),C(),h()}};default:return{confirmAction:()=>{z(!1)},confirmationDescription:Ft.empty}}},xe=()=>{T==="expenseAutomationFluxPage"||T==="expenseAutomationJESchedulePage"||T==="expenseAutomationTransactionsPage"?z(!0):h()},{primaryBtn:Ue,cancelBtn:ze,leftSideComponent:He}=we(),{confirmAction:le}=Ie(),Me=se=>{if(g==="transaction_categorization"&&(se==="autoCategorized"||se==="review"))return{hideCountInTab:O[se]>zt.common.numbers.maximumCount,count:O[se],isFetching:G[se].fetchState==="In-Progress"};if(g==="reconciliation"){const{reconciliation:ue}=s,{selectedAccountId:Re}=ue;return Re==null?{count:0,isFetching:!1}:se==="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"}}},Je=g==="reconciliation"&&A.selectedAccountId!=null&&A.selectedReconAccount!=null,{month:St,year:Ye}=q,ot=H.dateNow().set("month",St-1).set("year",Ye),ut=ot.startOf("month").format(qs),Rt=ot.endOf("month").format(qs),pt=`${ut} ${Ft.hyphen} ${Rt}`;return n.jsxRuntimeExports.jsxs(Su,{children:[ae?n.jsxRuntimeExports.jsx(t.ConfirmationPopup,{containerStyle:{width:356},titleComponent:n.jsxRuntimeExports.jsx(Eo,{children:Eu}),primaryButtonText:Iu,secondaryButtonText:wu,proceedButtonVariant:"danger",action:{onOkClick:()=>{le()},onCancelClick:()=>z(!1)},descriptionComponent:n.jsxRuntimeExports.jsx(Bu,{children:zt.confirmationDescription})}):null,n.jsxRuntimeExports.jsxs(Ru,{children:[n.jsxRuntimeExports.jsx(ai,{onBack:f,navBarCustomElement:g==="reconciliation"&&A.selectedAccountId!=null?n.jsxRuntimeExports.jsx($u,{reconciliation:A}):void 0,onReconTabUpdate:c,currentRecontab:A.selectedTab,reconcileDetailPageFetchState:A.selectedAccountId!=null?A.accountReconciliationsByAccountID[A.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:Je?A.selectedAccountId:void 0,currentSelectedView:g,titleStyle:{justifyContent:"center",marginLeft:t.Space.sp0},headerData:Ne(g,O.autoCategorized,Je?A.selectedAccountId:void 0,Je?A.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,Je?pt:void 0),searchText:W,currentTab:I,getTabCountAndFetchState:Me,completionStatus:S,forceShowSubtitle:K===!0||g==="je_schedules"&&($.fetchState==="In-Progress"||$.accountSettingsView.fetchState==="In-Progress"),refreshStatus:ce,companyId:e.companyId,companyName:s.monthEndInsights?.companyName??Ft.empty,isZeniUser:te,onAllThreadsClick:()=>{ne!=null&&Q(null),ee(!0)},onUpdateTab:o,onSearchTextChanged:x,onRefresh:d,onClose:xe}),n.jsxRuntimeExports.jsx(ju,{...e,isCOTEnabled:u,setIsJeAccountSettingsOpened:U,setResetJeAccountSettingsForm:V,allThreadsSectionOpen:L,setCurrentFooterFormId:J,currentFooterFormId:T,onCloseAllThreadsSection:()=>ee(!1)}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:g!=="month_end_insights",children:n.jsxRuntimeExports.jsx(t.Footer,{style:{width:"-webkit-fill-available",maxHeight:t.sp[8]},formId:Co(T),primaryBtn:Ue,leftSideComponent:He,cancelBtn:ze,separatorStyle:{marginRight:t.Space.sp4}})})]})]})},$u=({reconciliation:e})=>{const s=n.useTheme(),{clearedBalance:l,variance:a,variancePercentage:p,deposits:u,payments:o}=e.reconciliationTabsState.balances,{balance:c}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:r}=e,{transactionFetchState:x}=r??{};return n.jsxRuntimeExports.jsx(Mu,{children:n.jsxRuntimeExports.jsxs(Nu,{children:[n.jsxRuntimeExports.jsxs(In,{style:{justifyContent:"flex-end",width:"50%"},children:[n.jsxRuntimeExports.jsx(Tn,{children:n.jsxRuntimeExports.jsx(Pu,{})}),n.jsxRuntimeExports.jsx(kn,{children:x?.fetchState==="In-Progress"?n.jsxRuntimeExports.jsxs(An,{children:[n.jsxRuntimeExports.jsx(_t,{height:25,width:120}),n.jsxRuntimeExports.jsx(_t,{height:19,width:120})]}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(Ln,{children:t.amountToString("0,0.00",c)}),n.jsxRuntimeExports.jsx($n,{children:zt.accountRecon.reconciliation.headers.bankBalance})]})})]}),n.jsxRuntimeExports.jsxs(In,{children:[n.jsxRuntimeExports.jsx(Tn,{children:n.jsxRuntimeExports.jsx(zu,{})}),n.jsxRuntimeExports.jsx(kn,{children:x?.fetchState==="In-Progress"?n.jsxRuntimeExports.jsxs(An,{children:[n.jsxRuntimeExports.jsx(_t,{height:25,width:120}),n.jsxRuntimeExports.jsx(_t,{height:19,width:120})]}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(Ln,{children:t.amountToString("0,0.00",l)}),n.jsxRuntimeExports.jsxs(Wu,{children:[n.jsxRuntimeExports.jsx($n,{children:zt.accountRecon.reconciliation.headers.clearedBalance}),n.jsxRuntimeExports.jsx(t.Tooltip,{placement:"bottom",title:n.jsxRuntimeExports.jsxs(Vu,{children:[n.jsxRuntimeExports.jsxs(Us,{children:[n.jsxRuntimeExports.jsxs(Gs,{children:[o.count," ",Mt.payments]}),n.jsxRuntimeExports.jsx(Ks,{children:t.amountToString("0,0.[00]",o.totalAmount)})]}),n.jsxRuntimeExports.jsxs(Us,{children:[n.jsxRuntimeExports.jsxs(Gs,{children:[u.count," ",Mt.deposits]}),n.jsxRuntimeExports.jsx(Ks,{children:t.amountToString("0,0.[00]",u.totalAmount)})]})]}),display:"flex",children:n.jsxRuntimeExports.jsx(Hu,{})})]})]})})]}),n.jsxRuntimeExports.jsxs(In,{style:{justifyContent:"flex-start",width:"50%"},children:[n.jsxRuntimeExports.jsx(Tn,{children:n.jsxRuntimeExports.jsx(Fu,{})}),n.jsxRuntimeExports.jsx(kn,{children:x?.fetchState==="In-Progress"?n.jsxRuntimeExports.jsxs(An,{children:[n.jsxRuntimeExports.jsx(_t,{height:25,width:120}),n.jsxRuntimeExports.jsx(_t,{height:19,width:120})]}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs(Ln,{children:[n.jsxRuntimeExports.jsx("span",{style:{color:a.amount===0?s.colors.brandColorJadeDark:s.colors.primary},children:t.amountToString("0,0.00",a)}),p!=null&&a.amount!==0?n.jsxRuntimeExports.jsx("span",{style:{color:s.colors.primary,marginLeft:2},children:`(${p.toFixed(2)}%)`}):null]}),n.jsxRuntimeExports.jsx($n,{children:zt.accountRecon.reconciliation.headers.variance})]})})]})]})})},wn=(e,s,l,a,p)=>{const u=a,o=(e>1?u+"s":u)+" selected";return e>0?n.jsxRuntimeExports.jsxs(Au,{currentView:p,style:l==="small"?{position:"absolute",top:t.Space.sp2,left:`-${t.Space.sp5}`}:{},children:[n.jsxRuntimeExports.jsx(Ou,{multiDigit:e>=5,children:e}),n.jsxRuntimeExports.jsx(Du,{children:o}),e===s?n.jsxRuntimeExports.jsx(_u,{children:`(${Cu})`}):null]}):null},Lu=e=>{const s=Tu[e];return`${bu}${Ft.space}${s}${Ft.space}${vu.insights}`};function Ro(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,p=(l-1+e.length)%e.length,u=e[a],o=e[p];return{nextStep:u,previousStep:o}}const Co=e=>`${e}_form`,Au=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
|
-
`,Ou=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
|
-
`,Du=i(t.StandardRegular)`
|
|
1562
|
-
color: ${e=>e.theme.colors.primary};
|
|
1563
|
-
`,_u=i(t.SmallRegular)`
|
|
1564
|
-
color: ${t.Colors.important};
|
|
1565
|
-
`,Eo=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
|
-
`,Bu=i(t.ConfirmationPopUpDescription)`
|
|
1572
|
-
color: ${e=>e.theme.colors.primary};
|
|
1573
|
-
margin-top: ${t.Space.sp2};
|
|
1574
|
-
margin-bottom: ${t.Space.sp2};
|
|
1575
|
-
`,Mu=i.div`
|
|
1576
|
-
display: flex;
|
|
1577
|
-
justify-content: center;
|
|
1578
|
-
align-items: center;
|
|
1579
|
-
padding: ${t.Space.sp3} ${t.Space.sp0};
|
|
1580
|
-
`,Nu=i.div`
|
|
1581
|
-
width: 100%;
|
|
1582
|
-
display: flex;
|
|
1583
|
-
justify-content: center;
|
|
1584
|
-
align-items: center;
|
|
1585
|
-
gap: ${t.Space.sp1};
|
|
1586
|
-
`,In=i.div`
|
|
1587
|
-
display: flex;
|
|
1588
|
-
justify-content: center;
|
|
1589
|
-
align-items: center;
|
|
1590
|
-
gap: ${t.Space.sp3};
|
|
1591
|
-
`,Tn=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
|
-
`,kn=i.div`
|
|
1600
|
-
display: flex;
|
|
1601
|
-
flex-direction: column;
|
|
1602
|
-
`,$n=i(t.SmallRegular)`
|
|
1603
|
-
color: ${e=>e.theme.colors.hero};
|
|
1604
|
-
`,Ln=i(t.LargeSemiBold)`
|
|
1605
|
-
min-width: 180px;
|
|
1606
|
-
color: ${e=>e.theme.colors.primary};
|
|
1607
|
-
`,Pu=i(t.SvgBankBuilding)`
|
|
1608
|
-
color: ${e=>e.theme.colors.primary};
|
|
1609
|
-
width: ${t.Space.sp4};
|
|
1610
|
-
height: ${t.Space.sp4};
|
|
1611
|
-
`,Fu=i(t.SvgCalculator)`
|
|
1612
|
-
color: ${e=>e.theme.colors.primary};
|
|
1613
|
-
width: ${t.Space.sp4};
|
|
1614
|
-
height: ${t.Space.sp4};
|
|
1615
|
-
`,zu=i(yu)`
|
|
1616
|
-
color: ${e=>e.theme.colors.primary};
|
|
1617
|
-
width: ${t.Space.sp4};
|
|
1618
|
-
height: ${t.Space.sp4};
|
|
1619
|
-
`,Hu=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
|
-
`,Wu=i.div`
|
|
1627
|
-
display: flex;
|
|
1628
|
-
align-items: center;
|
|
1629
|
-
gap: ${t.Space.sp1};
|
|
1630
|
-
`,Vu=i.div`
|
|
1631
|
-
background-color: ${t.Colors.overlayDark};
|
|
1632
|
-
padding: 2px ${t.Space.sp2};
|
|
1633
|
-
border-radius: ${t.Space.sp1};
|
|
1634
|
-
`,Us=i.div`
|
|
1635
|
-
display: flex;
|
|
1636
|
-
justify-content: space-between;
|
|
1637
|
-
gap: ${t.Space.sp2};
|
|
1638
|
-
`,Gs=i.div`
|
|
1639
|
-
text-transform: capitalize;
|
|
1640
|
-
`,Ks=i(t.SmallRegular)`
|
|
1641
|
-
color: ${t.Colors.primaryDark};
|
|
1642
|
-
align-self: "flex-end";
|
|
1643
|
-
`,_t=i(t.RectangularContentLoader)`
|
|
1644
|
-
border-radius: ${t.Space.sp2};
|
|
1645
|
-
`,An=i.div`
|
|
1646
|
-
display: flex;
|
|
1647
|
-
flex-direction: column;
|
|
1648
|
-
min-width: 180px;
|
|
1649
|
-
gap: ${t.Space.sp1};
|
|
1650
|
-
`;exports.ConfirmationPopUpTitle=Eo;exports.default=ku;exports.getNextAndPreviousSteps=Ro;exports.uniqueFormName=Co;
|