@zeniai/web-components 3.16.92 → 3.16.93
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-DZAhdHlC.cjs +21 -0
- package/dist/ACHDetailsPage-Dzk7YdoJ.js +160 -0
- package/dist/AIPerformancePage-DBCH9dJi.js +1345 -0
- package/dist/AIPerformancePage-Yj78EYeJ.cjs +539 -0
- package/dist/AccountInfoPage-C8NJ-Nvg.cjs +18 -0
- package/dist/AccountInfoPage-Mzw-22d_.js +78 -0
- package/dist/AccountInfoPageContent-Bjp81drF.js +428 -0
- package/dist/AccountInfoPageContent-SNhACFkg.cjs +149 -0
- package/dist/AccountLockedInfoModal-DtfXdnNt.cjs +59 -0
- package/dist/AccountLockedInfoModal-Zg2PAu1o.js +125 -0
- package/dist/AccountReconDetailsDrawerPage-BTkrwp4Q.js +687 -0
- package/dist/AccountReconDetailsDrawerPage-CUzunYxk.cjs +239 -0
- package/dist/AccountRow-CIsbwvGp.js +1014 -0
- package/dist/AccountRow-DmfqwsKu.cjs +298 -0
- package/dist/AccountsPromoCardStack-DrElZh-K.js +664 -0
- package/dist/AccountsPromoCardStack-ciMlYoMr.cjs +207 -0
- package/dist/AddAddressForCardDrawer-D5Kqxx0c.js +82 -0
- package/dist/AddAddressForCardDrawer-S3ApNRiS.cjs +6 -0
- package/dist/AddToWalletPage-68rWu1tw.cjs +344 -0
- package/dist/AddToWalletPage-B68eBsAU.js +642 -0
- package/dist/AgingReportsPage-BlQHxYjL.js +827 -0
- package/dist/AgingReportsPage-sqpAPqGy.cjs +79 -0
- package/dist/AllUserItems-Brw9F8Wb.cjs +192 -0
- package/dist/AllUserItems-DsECKAGD.js +979 -0
- package/dist/ApAgingDetailPage-Bg0ZrGXm.js +239 -0
- package/dist/ApAgingDetailPage-DfJ7_AB-.cjs +46 -0
- package/dist/AppBasePage-BaLR6lmB.cjs +71 -0
- package/dist/AppBasePage-tPaBc2ei.js +120 -0
- package/dist/AppDrawerContent-21QbDnL-.cjs +91 -0
- package/dist/AppDrawerContent-Cx4zDKi_.js +379 -0
- package/dist/ApprovalRulesSettingsPage-B-bAvYxw.cjs +47 -0
- package/dist/ApprovalRulesSettingsPage-BcRZvSQH.js +145 -0
- package/dist/ArAgingChart-Bce9G3aV.cjs +24 -0
- package/dist/ArAgingChart-RdGwOP5k.js +530 -0
- package/dist/ArAgingDetailPage-Bh7NAVZf.js +243 -0
- package/dist/ArAgingDetailPage-CcLZ4unL.cjs +46 -0
- package/dist/AttachmentView-CE3MY5xN.cjs +101 -0
- package/dist/AttachmentView-ClnTjRCg.js +260 -0
- package/dist/BankAccountSection-Cgc7mExz.cjs +79 -0
- package/dist/BankAccountSection-D3sQOQ-c.js +398 -0
- package/dist/BankAccountWarningSection-BdrglxXk.cjs +51 -0
- package/dist/BankAccountWarningSection-CxLBPI_P.js +110 -0
- package/dist/BankConnectionsSettingsPage-BicqZMNf.cjs +425 -0
- package/dist/BankConnectionsSettingsPage-Bsix2nzV.js +1694 -0
- package/dist/BillDetailPage-B52FZrvM.js +1798 -0
- package/dist/BillDetailPage-Eql9e7cQ.cjs +266 -0
- package/dist/BillPayApprovalRuleDetailPage-C8S2g0eC.cjs +27 -0
- package/dist/BillPayApprovalRuleDetailPage-CswUbxdi.js +247 -0
- package/dist/BillPayApprovalRulesPage-B-8sIYjs.js +415 -0
- package/dist/BillPayApprovalRulesPage-DJN703Qy.cjs +235 -0
- package/dist/BillPayPromoPage-B6jW_8rf.js +292 -0
- package/dist/BillPayPromoPage-BanfoPsG.cjs +84 -0
- package/dist/BillPaySetUpPage-BhRTyKpF.cjs +42 -0
- package/dist/BillPaySetUpPage-Rqxy02BM.js +408 -0
- package/dist/BillingSettingsPage-BKzlt1MN.cjs +44 -0
- package/dist/BillingSettingsPage-CPs5zrIc.js +336 -0
- package/dist/BillsBulkReviewDrawerPage-BDIESFdM.cjs +1 -0
- package/dist/BillsBulkReviewDrawerPage-DLQsxJi8.js +216 -0
- package/dist/BoxItem-CP9cPZQd.js +118 -0
- package/dist/BoxItem-DBUw6CmO.cjs +53 -0
- package/dist/BusinessVerificationPage-BHjap89g.cjs +138 -0
- package/dist/BusinessVerificationPage-Cayj-kYe.js +716 -0
- package/dist/BusyIndication-BKHAFH5D.cjs +9 -0
- package/dist/BusyIndication-CD2XLOYO.js +19 -0
- package/dist/CardNumberSubText-FdCtSIHd.js +59 -0
- package/dist/CardNumberSubText-VpkiedcA.cjs +21 -0
- package/dist/CashbackDetailPage-CZICE37r.js +825 -0
- package/dist/CashbackDetailPage-J4ZXmXTz.cjs +285 -0
- package/dist/ChargeCardDetailPage-Be2X4Rx8.js +5454 -0
- package/dist/ChargeCardDetailPage-DZyOSfY_.cjs +1462 -0
- package/dist/ChargeCardListPage-CjcL-inS.cjs +412 -0
- package/dist/ChargeCardListPage-DzfBzM8o.js +1797 -0
- package/dist/ChargeCardListTable-Bc-4mcCz.js +2901 -0
- package/dist/ChargeCardListTable-Br8ErSa0.cjs +711 -0
- package/dist/ChargeCardPromoPage-CjvCgST7.cjs +222 -0
- package/dist/ChargeCardPromoPage-D_C7hXGy.js +816 -0
- package/dist/ChargeCardSetupPage-BwNi9-pq.js +359 -0
- package/dist/ChargeCardSetupPage-CUvCqWTG.cjs +36 -0
- package/dist/ChargeCardStatementsPage-Bf04MOoK.js +243 -0
- package/dist/ChargeCardStatementsPage-i3cJm8UB.cjs +60 -0
- package/dist/CheckDepositDrawerPage-B-A9fkGZ.js +726 -0
- package/dist/CheckDepositDrawerPage-Drh8EirV.cjs +206 -0
- package/dist/CollapsableReportTable-DdMyzUD0.js +11659 -0
- package/dist/CollapsableReportTable-Dra50qBW.cjs +2844 -0
- package/dist/CompanyOfficerDetailsSection-CdMCmqHk.cjs +260 -0
- package/dist/CompanyOfficerDetailsSection-kRtuUd2c.js +1633 -0
- package/dist/CompanyPassportCard-BAExOrbF.cjs +42 -0
- package/dist/CompanyPassportCard-KhSJJMcy.js +146 -0
- package/dist/CompanyPassportPage--ckOuqML.js +2160 -0
- package/dist/CompanyPassportPage-CT52jNjA.cjs +574 -0
- package/dist/CompleteProfile-D8egRg8d.js +301 -0
- package/dist/CompleteProfile-joqW2Fjp.cjs +52 -0
- package/dist/ConfettiBurst-C0nZeYiu.cjs +1 -0
- package/dist/ConfettiBurst-CvRhNEAY.js +37 -0
- package/dist/CreateOrEditVendorPage-CJiZ-hEC.cjs +281 -0
- package/dist/CreateOrEditVendorPage-DrZh60Xs.js +763 -0
- package/dist/CreditCardPaymentDrawerPage-B7ssB1GM.js +1170 -0
- package/dist/CreditCardPaymentDrawerPage-C5hhjtAh.cjs +224 -0
- package/dist/CurrencySelectField-Ac3IdwQO.cjs +139 -0
- package/dist/CurrencySelectField-BXp2mtZ7.js +348 -0
- package/dist/CustomerOnboardingActivationPage-BX7STQsk.js +143 -0
- package/dist/CustomerOnboardingActivationPage-Dlr-n1mP.cjs +88 -0
- package/dist/CustomerOnboardingContainerPage-BkPTeV9_.js +7 -0
- package/dist/CustomerOnboardingContainerPage-DUDQHo-7.cjs +1 -0
- package/dist/CustomerOnboardingDetailPageSkeleton-9agjhGnI.cjs +162 -0
- package/dist/CustomerOnboardingDetailPageSkeleton-C5tSpmSB.js +434 -0
- package/dist/CustomerOnboardingNoStepsPage-CQUQlLbj.js +424 -0
- package/dist/CustomerOnboardingNoStepsPage-CYto1L2Z.cjs +66 -0
- package/dist/CustomerOnboardingPage-BxaZRw3t.cjs +107 -0
- package/dist/CustomerOnboardingPage-D0p8khnC.js +1094 -0
- package/dist/CustomerOnboardingProductSuitePage-BRk3TA9f.js +348 -0
- package/dist/CustomerOnboardingProductSuitePage-xbRmKpBR.cjs +202 -0
- package/dist/Dashboard-BmoVeoeI.cjs +1551 -0
- package/dist/Dashboard-CBOma7mv.js +5540 -0
- package/dist/DashboardReportPage-CeE9AN61.cjs +371 -0
- package/dist/DashboardReportPage-DRYx3AOy.js +2536 -0
- package/dist/DashboardSidebarBackgroundAnimation-BbKeOvDx.cjs +12 -0
- package/dist/DashboardSidebarBackgroundAnimation-DYsp7Imm.js +53 -0
- package/dist/DepositAccTransactionItem-BQU7vZKr.js +112 -0
- package/dist/DepositAccTransactionItem-BcuJMd8A.cjs +76 -0
- package/dist/DepositAccTransactionListPage-CwBnNUIj.cjs +66 -0
- package/dist/DepositAccTransactionListPage-DQDt_2kb.js +152 -0
- package/dist/DomesticWireDetailsPage-B0KbC9m8.js +189 -0
- package/dist/DomesticWireDetailsPage-BrYMJZLl.cjs +21 -0
- package/dist/DownloadOverlay-CD89D0EE.cjs +439 -0
- package/dist/DownloadOverlay-D2vm9EYI.js +2148 -0
- package/dist/DrawerPage-Bw_N2SXI.cjs +118 -0
- package/dist/DrawerPage-DHIaNEwf.js +208 -0
- package/dist/EditPeoplePage-B4OaKX89.js +392 -0
- package/dist/EditPeoplePage-DT3GaNaY.cjs +55 -0
- package/dist/EditReimbursementDetailPage-CAQ17be-.cjs +865 -0
- package/dist/EditReimbursementDetailPage-C_JOnUnR.js +4531 -0
- package/dist/EmptySearchResults-DDRNqRC-.js +70 -0
- package/dist/EmptySearchResults-DOMU5DP1.cjs +46 -0
- package/dist/EntityDetailPage-DGq_Sr4I.js +82 -0
- package/dist/EntityDetailPage-DZrO7kMO.cjs +18 -0
- package/dist/EntitySummarySection-CAKPRhm9.js +530 -0
- package/dist/EntitySummarySection-ZXiJDmjD.cjs +149 -0
- package/dist/ExpenseAutomationOverviewPage-c4H81maP.js +807 -0
- package/dist/ExpenseAutomationOverviewPage-xohtIkfw.cjs +281 -0
- package/dist/ExpenseAutomationPage-CH8IQWN3.cjs +1650 -0
- package/dist/ExpenseAutomationPage-DoI_XKeY.js +11583 -0
- package/dist/ExpressPayPage-BwDxid49.cjs +168 -0
- package/dist/ExpressPayPage-CjhXfVeX.js +1136 -0
- package/dist/FeaturePreviewPage-CwrW_5lN.js +114 -0
- package/dist/FeaturePreviewPage-gs7KwLmV.cjs +11 -0
- package/dist/FollowStepsSection-BBMnNmg7.cjs +390 -0
- package/dist/FollowStepsSection-DwVibYwI.js +1313 -0
- package/dist/GlobalReviewListPage-JUSXRKq4.js +1674 -0
- package/dist/GlobalReviewListPage-NYfI7qF2.cjs +291 -0
- package/dist/InformationCardStack-CK1Ztw1n.js +219 -0
- package/dist/InformationCardStack-b9JGyIEc.cjs +31 -0
- package/dist/InsightsCardStack-BKAezFjz.js +305 -0
- package/dist/InsightsCardStack-vqw4R0bp.cjs +79 -0
- package/dist/InsightsSection-Bauri5yR.js +97 -0
- package/dist/InsightsSection-CeFYSdwJ.cjs +27 -0
- package/dist/IntegrationsSettingsPage-CnRe_xH3.js +136 -0
- package/dist/IntegrationsSettingsPage-DuLhZ7KD.cjs +57 -0
- package/dist/InternationalWireSwiftDetailsPage-BJkaLuNw.js +753 -0
- package/dist/InternationalWireSwiftDetailsPage-CdB8L31o.cjs +171 -0
- package/dist/InternationalWireVerificationPage-D5CPFG6s.cjs +292 -0
- package/dist/InternationalWireVerificationPage-pPH2bNM7.js +877 -0
- package/dist/InviteFormPage-BUB1_gEV.cjs +312 -0
- package/dist/InviteFormPage-CsL2egNG.js +873 -0
- package/dist/InvitePageListView-DRrXAsc0.cjs +739 -0
- package/dist/InvitePageListView-rt3KC_c5.js +1764 -0
- package/dist/InvitePeoplePage-BRyC8kc4.cjs +12 -0
- package/dist/InvitePeoplePage-Cdr0dhtJ.js +286 -0
- package/dist/InvoiceUploadSection-C8aUUsBJ.cjs +140 -0
- package/dist/InvoiceUploadSection-NVvtQvoL.js +465 -0
- package/dist/IssueChargeCardPage-B-TaVJ9L.cjs +532 -0
- package/dist/IssueChargeCardPage-D5KenKnm.js +2875 -0
- package/dist/LabeledAddressValue-Bwkw-Ez_.js +115 -0
- package/dist/LabeledAddressValue-CRZcQpcH.cjs +49 -0
- package/dist/LabeledAddressValueField-BgkRIdwJ.js +130 -0
- package/dist/LabeledAddressValueField-DSNjAlNG.cjs +45 -0
- package/dist/LabeledControlledCheckBoxField-B1ktfy8c.cjs +16 -0
- package/dist/LabeledControlledCheckBoxField-RzyuT5ZX.js +73 -0
- package/dist/LabeledCreatableSingleSelectField-BP_p62Nk.js +515 -0
- package/dist/LabeledCreatableSingleSelectField-CoPds8o4.cjs +204 -0
- package/dist/LabeledDocumentField-DGncRe-Q.js +147 -0
- package/dist/LabeledDocumentField-dpZLEvvP.cjs +41 -0
- package/dist/LabeledDropDownFormattedTextField-AY936jUj.cjs +59 -0
- package/dist/LabeledDropDownFormattedTextField-DWUVcIR8.js +163 -0
- package/dist/LabeledEmailInputField-CUwwCB_a.cjs +182 -0
- package/dist/LabeledEmailInputField-DVbkArLk.js +425 -0
- package/dist/LabeledItemWithButton-BLWtsYdm.cjs +21 -0
- package/dist/LabeledItemWithButton-D3eEyvpq.js +74 -0
- package/dist/LabeledNameField-DwkoE-hq.js +293 -0
- package/dist/LabeledNameField-pNrgMg1p.cjs +141 -0
- package/dist/LabeledSingleSelectField-Dqa_KKMU.js +372 -0
- package/dist/LabeledSingleSelectField-ERgMpxa9.cjs +136 -0
- package/dist/LabeledSingleSelectWithoutClearableField-D33G2o_z.js +103 -0
- package/dist/LabeledSingleSelectWithoutClearableField-WPGQxZ8t.cjs +38 -0
- package/dist/LabeledText-BzD_-lgI.js +103 -0
- package/dist/LabeledText-VqhOQ1I5.cjs +42 -0
- package/dist/LabeledUserSingleSelectWithSubtitlesField-D3kjxF9V.js +572 -0
- package/dist/LabeledUserSingleSelectWithSubtitlesField-DqjPKRq2.cjs +229 -0
- package/dist/LabeledZeniRolesDropDownField-BlmybTGB.js +975 -0
- package/dist/LabeledZeniRolesDropDownField-C5ZTK6oU.cjs +297 -0
- package/dist/LinkJETransactionPage-BBS2FWdF.cjs +98 -0
- package/dist/LinkJETransactionPage-CUnfHHeT.js +406 -0
- package/dist/LockCardPage-2jOFCVkW.js +2032 -0
- package/dist/LockCardPage-Dli26ZH9.cjs +623 -0
- package/dist/LowBalancePopup-BZFYr3DM.cjs +34 -0
- package/dist/LowBalancePopup-Du0kX_mJ.js +219 -0
- package/dist/MagicLinkACHDetailsPage-CkbNMu7Z.js +39 -0
- package/dist/MagicLinkACHDetailsPage-DIVQGVr9.cjs +1 -0
- package/dist/MagicLinkDomesticWireDetailsPage-BmSXCSlA.cjs +1 -0
- package/dist/MagicLinkDomesticWireDetailsPage-D0XBf5_X.js +44 -0
- package/dist/MagicLinkInternationalWireDetailsPage-Bl93T-SF.js +43 -0
- package/dist/MagicLinkInternationalWireDetailsPage-DPJ3RHNk.cjs +1 -0
- package/dist/MagicLinkSuccessPage-BYiaTszm.cjs +31 -0
- package/dist/MagicLinkSuccessPage-C26glp7T.js +59 -0
- package/dist/MagicLinkTitleSection-B4nxLzap.js +40 -0
- package/dist/MagicLinkTitleSection-BYD6BunI.cjs +17 -0
- package/dist/MailingDetailsSection-BQtbdDm4.cjs +21 -0
- package/dist/MailingDetailsSection-Cou_W8JF.js +74 -0
- package/dist/MatchingOperatorDropdown-B771006L.cjs +130 -0
- package/dist/MatchingOperatorDropdown-wAX2nzu9.js +572 -0
- package/dist/Menu-B4XJuuAC.cjs +17 -0
- package/dist/Menu-CdF7UWPF.js +110 -0
- package/dist/MoreMenuButton-DUyMHpfm.cjs +167 -0
- package/dist/MoreMenuButton-R5Py4_U-.js +569 -0
- package/dist/MyBankConnectionsSettingsPage-BAjjxA98.js +297 -0
- package/dist/MyBankConnectionsSettingsPage-DVTUnM8l.cjs +110 -0
- package/dist/MyPendingActivationChargeCardListPage-BhflSb_M.cjs +6 -0
- package/dist/MyPendingActivationChargeCardListPage-DsRGcA8F.js +168 -0
- package/dist/MyProfileSettingsPage-DB1h3Sj2.cjs +85 -0
- package/dist/MyProfileSettingsPage-y-iZgUqL.js +641 -0
- package/dist/NavBarWithPicker-Demddf-8.cjs +30 -0
- package/dist/NavBarWithPicker-ph4heJns.js +106 -0
- package/dist/NavigationArrow-BojAUI53.js +88 -0
- package/dist/NavigationArrow-rhViEc7W.cjs +47 -0
- package/dist/NavigationDots-Bf66leAL.js +44 -0
- package/dist/NavigationDots-Dqjo7-Mm.cjs +15 -0
- package/dist/NewGlobalMerchantPage-BVTegOiz.cjs +160 -0
- package/dist/NewGlobalMerchantPage-D43XJhIa.js +543 -0
- package/dist/NoDataChart-6R5pxJVo.js +58 -0
- package/dist/NoDataChart-Bbw3hY7B.cjs +26 -0
- package/dist/NoDataTable-BXXAc_L7.cjs +8 -0
- package/dist/NoDataTable-CNx0KCKn.js +27 -0
- package/dist/NotFoundPage-CE9BW_aV.js +71 -0
- package/dist/NotFoundPage-DG3NiAsj.cjs +46 -0
- package/dist/NotificationSettingsPage-DPuBtoQq.cjs +163 -0
- package/dist/NotificationSettingsPage-etN6HEwO.js +541 -0
- package/dist/NotificationsListConfig-15ae4nik.js +10 -0
- package/dist/NotificationsListConfig-DM0FdS6M.cjs +1 -0
- package/dist/NotificationsPage-BwbxqKxd.js +2664 -0
- package/dist/NotificationsPage-DY3u4B7m.cjs +685 -0
- package/dist/OpExByVendorPage-7k2JM-8_.cjs +100 -0
- package/dist/OpExByVendorPage-FR3oloXp.js +1058 -0
- package/dist/PandLWithForecastPage-Bx3ZyA3l.js +563 -0
- package/dist/PandLWithForecastPage-z2LizVZM.cjs +107 -0
- package/dist/PaymentAccountSetupBillingAddressSection-BwTidj8L.cjs +106 -0
- package/dist/PaymentAccountSetupBillingAddressSection-R1O20DhA.js +623 -0
- package/dist/PeoplePage-B3HRaJWz.js +1994 -0
- package/dist/PeoplePage-BFp8cJVT.cjs +675 -0
- package/dist/ProductsCarousel-BT6gjtio.cjs +142 -0
- package/dist/ProductsCarousel-Dn4vuZwM.js +309 -0
- package/dist/PromoBaseCards-BKo4wO-U.js +356 -0
- package/dist/PromoBaseCards-VgfqN_BL.cjs +218 -0
- package/dist/QBOConnectionDialog-CPq0aUew.js +115 -0
- package/dist/QBOConnectionDialog-Ce-ojdwg.cjs +51 -0
- package/dist/QBOSetupSection-BjImTh7O.js +167 -0
- package/dist/QBOSetupSection-D6w3xt2a.cjs +79 -0
- package/dist/ReimbursementApprovalRuleDetailPage-DD1HwLO0.js +247 -0
- package/dist/ReimbursementApprovalRuleDetailPage-TLJi0WUL.cjs +26 -0
- package/dist/ReimbursementApprovalRulesPage-DFLHMQK2.cjs +237 -0
- package/dist/ReimbursementApprovalRulesPage-DHQHS0eD.js +410 -0
- package/dist/ReimbursementDetailPage-BKhGBzIa.cjs +314 -0
- package/dist/ReimbursementDetailPage-DiMXs0_o.js +1514 -0
- package/dist/ReimbursementPromoPage-BinqJ3lR.js +363 -0
- package/dist/ReimbursementPromoPage-CvYLtqH7.cjs +84 -0
- package/dist/ReimbursementSetUpPage-BD6B-0CO.js +663 -0
- package/dist/ReimbursementSetUpPage-DFPNPoCi.cjs +140 -0
- package/dist/ReimbursementsBulkReviewDrawerPage-BpBhnRKG.cjs +1 -0
- package/dist/ReimbursementsBulkReviewDrawerPage-DK-nCoay.js +204 -0
- package/dist/ReloadCard-Bt8qxAUx.js +137 -0
- package/dist/ReloadCard-DKeQg4CL.cjs +26 -0
- package/dist/ReloadContainer-DFgNxGK3.js +2165 -0
- package/dist/ReloadContainer-lVJ6xsvt.cjs +596 -0
- package/dist/ReportTableViewSelector-0DAVQnO4.cjs +150 -0
- package/dist/ReportTableViewSelector-Dv7BwM1q.js +679 -0
- package/dist/ReportsPage-BOY8oCAr.js +1315 -0
- package/dist/ReportsPage-c_1xR_O-.cjs +121 -0
- package/dist/RevenueChart-B3_eo48T.cjs +280 -0
- package/dist/RevenueChart-D_yexiAR.js +2240 -0
- package/dist/ReviewDetailsPage-CzjrbETD.cjs +290 -0
- package/dist/ReviewDetailsPage-Czrlb8BL.js +1073 -0
- package/dist/ReviewOverlay-BHUy3fWf.js +299 -0
- package/dist/ReviewOverlay-DEM3obXE.cjs +152 -0
- package/dist/RoleWithToolTip-BxI2nAro.js +72 -0
- package/dist/RoleWithToolTip-DoOgFzdk.cjs +22 -0
- package/dist/ScheduleDetailsFixedAssetsPage-DUDEoaIo.cjs +37 -0
- package/dist/ScheduleDetailsFixedAssetsPage-DsNhFGrc.js +806 -0
- package/dist/ScheduleDetailsPage-Bu4Z-fUL.cjs +37 -0
- package/dist/ScheduleDetailsPage-Dy2poGsp.js +726 -0
- package/dist/ScheduleSequenceTable-Bv1feMZc.js +1261 -0
- package/dist/ScheduleSequenceTable-CBPCIQAg.cjs +324 -0
- package/dist/SetUpAccountSection-DSgFlQ-4.cjs +378 -0
- package/dist/SetUpAccountSection-SSkLhU2W.js +1469 -0
- package/dist/SignIn-C9HgUmSo.cjs +448 -0
- package/dist/SignIn-Chuf9_2E.js +1075 -0
- package/dist/SpendManagementListViewPage-BpCZzQ7I.js +627 -0
- package/dist/SpendManagementListViewPage-CWGR-MiQ.cjs +122 -0
- package/dist/SpendManagementPerTabPage-CipQlc4R.cjs +754 -0
- package/dist/SpendManagementPerTabPage-DbXTM50B.js +2735 -0
- package/dist/SpendManagementSection-BMU1BTEo.js +1043 -0
- package/dist/SpendManagementSection-BdmHz6Vl.cjs +230 -0
- package/dist/StatementItem-BkovJaHB.cjs +31 -0
- package/dist/StatementItem-qLZEMVrM.js +81 -0
- package/dist/StatementsPage-B3qY1D4K.js +130 -0
- package/dist/StatementsPage-CoVggbWl.cjs +58 -0
- package/dist/StatusSwitcher-BcXGVM61.cjs +120 -0
- package/dist/StatusSwitcher-xQ_AW7ze.js +319 -0
- package/dist/SubTabSwitcher-DIx2AarH.cjs +58 -0
- package/dist/SubTabSwitcher-w8vLc-35.js +113 -0
- package/dist/SuccessAnimation-BAOUQFyI.js +52 -0
- package/dist/SuccessAnimation-D7rkmU7F.cjs +13 -0
- package/dist/SummaryCard-CTq_yqTg.js +25 -0
- package/dist/SummaryCard-LDkBrUAi.cjs +1 -0
- package/dist/TaskDetailPage-C4SIhO68.cjs +775 -0
- package/dist/TaskDetailPage-CliIl9An.js +2533 -0
- package/dist/TaskListRow-BBEY07yD.cjs +556 -0
- package/dist/TaskListRow-Dg13z3PQ.js +1950 -0
- package/dist/TaskManagementPage-Cfefh9HF.cjs +508 -0
- package/dist/TaskManagementPage-keXFNmIv.js +1935 -0
- package/dist/TimeRangeSwitcher-C4Tph63B.js +265 -0
- package/dist/TimeRangeSwitcher-C8i-_LPp.cjs +64 -0
- package/dist/TimeframeSwitcher-ChlzrFIQ.cjs +31 -0
- package/dist/TimeframeSwitcher-LLgotbh8.js +103 -0
- package/dist/TimeframeSwitcherWithToggle-BQR2xbFo.cjs +31 -0
- package/dist/TimeframeSwitcherWithToggle-Cw3a9d0I.js +157 -0
- package/dist/TopExCard-D2lVJUMs.cjs +38 -0
- package/dist/TopExCard-Dj0wtF6g.js +569 -0
- package/dist/TopExDetailPage-Ba0y-Zk1.cjs +132 -0
- package/dist/TopExDetailPage-JutaMmtR.js +318 -0
- package/dist/TransactionDetailPage-BdFHqSCv.js +5238 -0
- package/dist/TransactionDetailPage-DyKb6mAZ.cjs +912 -0
- package/dist/TransactionList-BECc08zS.cjs +147 -0
- package/dist/TransactionList-C85wyFeI.js +558 -0
- package/dist/TransactionListBig-BGctaY-R.cjs +284 -0
- package/dist/TransactionListBig-DPev2-Mm.js +658 -0
- package/dist/TransactionListPage-CEWvjh5T.cjs +35 -0
- package/dist/TransactionListPage-D127NU4T.js +145 -0
- package/dist/TransactionVendorDetailPage-BGoHmn0Y.cjs +80 -0
- package/dist/TransactionVendorDetailPage-BJ1YnPif.js +425 -0
- package/dist/TransferDrawerPage-Bl11ydP0.cjs +362 -0
- package/dist/TransferDrawerPage-DcrfmXH1.js +1436 -0
- package/dist/TreasuryOverviewPage-BjQRTJyE.cjs +708 -0
- package/dist/TreasuryOverviewPage-D-Zw4Npq.js +1890 -0
- package/dist/TreasuryPromoPage-2cAQWhr_.cjs +505 -0
- package/dist/TreasuryPromoPage-BhBPhhbb.js +1123 -0
- package/dist/TreasuryStatementsPage-C-W0mgZK.cjs +58 -0
- package/dist/TreasuryStatementsPage-Dxjg_QN7.js +131 -0
- package/dist/TreasuryTaxLetterPage-Dm552RDZ.js +131 -0
- package/dist/TreasuryTaxLetterPage-Dxf-TtBv.cjs +58 -0
- package/dist/TrendChart-5bkRD59B.cjs +16 -0
- package/dist/TrendChart-_c8z5Kxm.js +334 -0
- package/dist/TrendWithTransactions-B2rde1MW.js +346 -0
- package/dist/TrendWithTransactions-DBCIS09H.cjs +116 -0
- package/dist/UncategorizedAccountsMappingPage-77nkQFar.js +1159 -0
- package/dist/UncategorizedAccountsMappingPage-BZMisSi4.cjs +244 -0
- package/dist/UnitIntegrationPage-3_YMV_f4.js +405 -0
- package/dist/UnitIntegrationPage-Cp7w8HKP.cjs +67 -0
- package/dist/UploadAdditionalDocumentOverlay-C2_WynUY.cjs +38 -0
- package/dist/UploadAdditionalDocumentOverlay-D72fkcgM.js +211 -0
- package/dist/Vendor2FAPopup-912qN1o5.cjs +1 -0
- package/dist/Vendor2FAPopup-DLbGF5_q.js +69 -0
- package/dist/VendorACHDetailsPage-CaNQylEA.js +43 -0
- package/dist/VendorACHDetailsPage-CnLK1MQ9.cjs +1 -0
- package/dist/VendorDetailPage-DDgE-16h.cjs +257 -0
- package/dist/VendorDetailPage-DqdH4UMj.js +1236 -0
- package/dist/VendorDomesticWireDetailsPage-9pyV_r_g.js +53 -0
- package/dist/VendorDomesticWireDetailsPage-DIr-5npj.cjs +1 -0
- package/dist/VendorFiling1099EditablePage-SToW5JIh.cjs +175 -0
- package/dist/VendorFiling1099EditablePage-nb9_V73Z.js +842 -0
- package/dist/VendorFirstReviewPage-C2RjaA8x.js +2748 -0
- package/dist/VendorFirstReviewPage-bFXjM89r.cjs +730 -0
- package/dist/VendorInternationalWireDetailsPage-DptkcP2w.cjs +152 -0
- package/dist/VendorInternationalWireDetailsPage-VOAgofls.js +968 -0
- package/dist/VendorInternationalWireSwiftDetailsPage-CcRuLO-_.js +52 -0
- package/dist/VendorInternationalWireSwiftDetailsPage-CvJtvrYC.cjs +1 -0
- package/dist/VendorsAccountsSection-CfDkyxWT.cjs +68 -0
- package/dist/VendorsAccountsSection-RzVUJ8IV.js +279 -0
- package/dist/VerifyDevice-CvpVGzfX.cjs +112 -0
- package/dist/VerifyDevice-DUxQHfLf.js +298 -0
- package/dist/VideoPlayer-BGmAa5K0.cjs +77 -0
- package/dist/VideoPlayer-BxuhQQfM.js +170 -0
- package/dist/VideoPopup-BSoME1Bt.cjs +31 -0
- package/dist/VideoPopup-DdtmLcPB.js +60 -0
- package/dist/WarningsDrawerPage-DC5ophK0.js +228 -0
- package/dist/WarningsDrawerPage-knH25NBo.cjs +92 -0
- package/dist/ZeniAccountDetailPage-C1KKeyYC.js +908 -0
- package/dist/ZeniAccountDetailPage-CFPcROaK.cjs +300 -0
- package/dist/ZeniAccountListViewPage-BK8CpX9W.cjs +441 -0
- package/dist/ZeniAccountListViewPage-Bw5_2Q-c.js +1078 -0
- package/dist/ZeniAccountNavBarPieces-DTheWynN.cjs +14 -0
- package/dist/ZeniAccountNavBarPieces-DlfwFtOB.js +89 -0
- package/dist/ZeniAccountPromoPage-B8cXf7Ni.js +522 -0
- package/dist/ZeniAccountPromoPage-CFKctCrV.cjs +184 -0
- package/dist/ZeniAccountSetupPage-2-Y92flU.cjs +36 -0
- package/dist/ZeniAccountSetupPage-Cae0pB-b.js +309 -0
- package/dist/ZeniAvatar-B744fPUL.js +34 -0
- package/dist/ZeniAvatar-D4Izl51w.cjs +13 -0
- package/dist/ZeniCopyright-CnTWLugt.cjs +1 -0
- package/dist/ZeniCopyright-gTS4uZlF.js +9 -0
- package/dist/ZeniDatePicker-Bw5_UPw-.cjs +187 -0
- package/dist/ZeniDatePicker-DRD1Krpq.js +386 -0
- package/dist/ZeniTransferAmountSlider-17kY7kNO.js +215 -0
- package/dist/ZeniTransferAmountSlider-K0Re3Q-7.cjs +63 -0
- package/dist/analyticsHelper-DXVBA0aW.js +65 -0
- package/dist/analyticsHelper-v5n1YGT2.cjs +1 -0
- package/dist/calculateSize-BPCOqzEg.js +22 -0
- package/dist/calculateSize-By4-nx8e.cjs +1 -0
- package/dist/chartTypes-BXBHlosV.js +47 -0
- package/dist/chartTypes-Dd8pl6nm.cjs +1 -0
- package/dist/cockpit.cjs.js +2 -2
- package/dist/cockpit.esm.js +15 -15
- package/dist/common-COfaxAld.cjs +1 -0
- package/dist/common-spU034hK.js +22 -0
- package/dist/commonDimensions-Bm2CSHrw.js +13 -0
- package/dist/commonDimensions-CUojcSpQ.cjs +1 -0
- package/dist/components/expenseAutomation/sections/transactionCategorization/listRow/TransactionCategorizationListRow.d.ts +4 -4
- package/dist/components/expenseAutomation/sections/transactionCategorization/transactionCategorizationTypes.d.ts +4 -1
- package/dist/detailCommon-D2pu94Nq.cjs +38 -0
- package/dist/detailCommon-VW4xegQy.js +124 -0
- package/dist/downloadPdf-BSG76tOl.cjs +1 -0
- package/dist/downloadPdf-DUAAPKqC.js +32 -0
- package/dist/index-CwWJYVG_.cjs +21111 -0
- package/dist/index-l08vvOmt.js +92167 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mapLoadingInProgressToTreeNode-D5WZ1WGx.js +25 -0
- package/dist/mapLoadingInProgressToTreeNode-xHr-3KHj.cjs +1 -0
- package/dist/mapSectionWithAcOnlyToTreeNode-BxzLwMCb.js +387 -0
- package/dist/mapSectionWithAcOnlyToTreeNode-D6TT5ckr.cjs +1 -0
- package/dist/mapSpacerToTreeNode-CScyNZ9s.js +25 -0
- package/dist/mapSpacerToTreeNode-DdU383ha.cjs +1 -0
- package/dist/mapTimeframeBalancesToTreeNode-Bm9tz1my.cjs +1 -0
- package/dist/mapTimeframeBalancesToTreeNode-CQAQhz-j.cjs +1 -0
- package/dist/mapTimeframeBalancesToTreeNode-Caj8eqsL.js +24 -0
- package/dist/mapTimeframeBalancesToTreeNode-CdVqeC27.js +24 -0
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-CAF71q1h.cjs +1 -0
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-CUFXYz6j.js +32 -0
- package/dist/sectionColor-Bv9kEiCi.js +32 -0
- package/dist/sectionColor-CqSihH6n.cjs +1 -0
- package/dist/toCOABalancesWithID-CqzWoD-C.js +8 -0
- package/dist/toCOABalancesWithID-kVrEfd7z.cjs +1 -0
- package/dist/toChartData-K6sJY6z8.cjs +1 -0
- package/dist/toChartData-X878W8tN.js +76 -0
- package/dist/uploadAttachment-DNKgJox4.js +952 -0
- package/dist/uploadAttachment-Dn8P1LaN.cjs +286 -0
- package/dist/zeniDatePicker.helpers-B7xxt_BV.cjs +1 -0
- package/dist/zeniDatePicker.helpers-BNND3BX5.js +14 -0
- package/package.json +1 -1
- package/dist/ACHDetailsPage-BJescJR8.cjs +0 -21
- package/dist/ACHDetailsPage-CHDvXwCf.js +0 -160
- package/dist/AIPerformancePage-B09k5sLi.cjs +0 -539
- package/dist/AIPerformancePage-CKhRLWNp.js +0 -1345
- package/dist/AccountInfoPage-C-O1r1It.js +0 -78
- package/dist/AccountInfoPage-DkSf6Itf.cjs +0 -18
- package/dist/AccountInfoPageContent-BxxwqYsJ.js +0 -428
- package/dist/AccountInfoPageContent-DkP1RRRD.cjs +0 -149
- package/dist/AccountLockedInfoModal-Dt7sI_Ov.cjs +0 -59
- package/dist/AccountLockedInfoModal-DvZJIG8A.js +0 -125
- package/dist/AccountReconDetailsDrawerPage-CARGnRB8.js +0 -687
- package/dist/AccountReconDetailsDrawerPage-CGlrqjrk.cjs +0 -239
- package/dist/AccountRow-CHY3Rel4.js +0 -1014
- package/dist/AccountRow-DrgP7IFZ.cjs +0 -298
- package/dist/AccountsPromoCardStack-DbravWQB.cjs +0 -207
- package/dist/AccountsPromoCardStack-e-3oOcrm.js +0 -664
- package/dist/AddAddressForCardDrawer-CQJMjNQm.cjs +0 -6
- package/dist/AddAddressForCardDrawer-ItLbr-54.js +0 -82
- package/dist/AddToWalletPage-DSV2Z0rM.js +0 -642
- package/dist/AddToWalletPage-M716wX95.cjs +0 -344
- package/dist/AgingReportsPage-B9yKHmIi.js +0 -827
- package/dist/AgingReportsPage-CHbGTVnI.cjs +0 -79
- package/dist/AllUserItems-D2oB4oCJ.js +0 -979
- package/dist/AllUserItems-wVNCCHLV.cjs +0 -192
- package/dist/ApAgingDetailPage-DDQ_sFs2.js +0 -239
- package/dist/ApAgingDetailPage-tv9ezEal.cjs +0 -46
- package/dist/AppBasePage-B-NSGFyE.cjs +0 -71
- package/dist/AppBasePage-Cnt8dfTv.js +0 -120
- package/dist/AppDrawerContent-CQNnYASq.js +0 -379
- package/dist/AppDrawerContent-DQ2Csisl.cjs +0 -91
- package/dist/ApprovalRulesSettingsPage-C5YIWEuJ.cjs +0 -47
- package/dist/ApprovalRulesSettingsPage-D1WFibHA.js +0 -145
- package/dist/ArAgingChart-DMdzbUCY.cjs +0 -24
- package/dist/ArAgingChart-DNh1Sc2O.js +0 -530
- package/dist/ArAgingDetailPage-CknqNvNR.js +0 -243
- package/dist/ArAgingDetailPage-DVqni64T.cjs +0 -46
- package/dist/AttachmentView-COtp55Bu.js +0 -260
- package/dist/AttachmentView-DcKeybhq.cjs +0 -101
- package/dist/BankAccountSection-Bmjg80M_.js +0 -398
- package/dist/BankAccountSection-DSuCqEVc.cjs +0 -79
- package/dist/BankAccountWarningSection-Cozbb9Qe.js +0 -110
- package/dist/BankAccountWarningSection-vOD7WxNB.cjs +0 -51
- package/dist/BankConnectionsSettingsPage-BTgUwcSW.cjs +0 -425
- package/dist/BankConnectionsSettingsPage-BpNV5Cfb.js +0 -1694
- package/dist/BillDetailPage-DZXm3ltk.js +0 -1798
- package/dist/BillDetailPage-DiXuGzZr.cjs +0 -266
- package/dist/BillPayApprovalRuleDetailPage-BaqakUO5.js +0 -247
- package/dist/BillPayApprovalRuleDetailPage-pAODt2m3.cjs +0 -27
- package/dist/BillPayApprovalRulesPage-CwnD8Rmy.cjs +0 -235
- package/dist/BillPayApprovalRulesPage-DVdjFbD1.js +0 -415
- package/dist/BillPayPromoPage-CbrDa0XJ.js +0 -292
- package/dist/BillPayPromoPage-qfYSgBlV.cjs +0 -84
- package/dist/BillPaySetUpPage-AwK2lB48.cjs +0 -42
- package/dist/BillPaySetUpPage-D38NEVPT.js +0 -408
- package/dist/BillingSettingsPage-CNnd2OJY.cjs +0 -44
- package/dist/BillingSettingsPage-DoYZPPFI.js +0 -336
- package/dist/BillsBulkReviewDrawerPage-DKRIIrA4.js +0 -216
- package/dist/BillsBulkReviewDrawerPage-Dr90vxeS.cjs +0 -1
- package/dist/BoxItem-CA7rg0qT.cjs +0 -53
- package/dist/BoxItem-i_X_8QxH.js +0 -118
- package/dist/BusinessVerificationPage-CcCSXdHR.cjs +0 -138
- package/dist/BusinessVerificationPage-DEXYYXxg.js +0 -716
- package/dist/BusyIndication-7lWtd-fP.js +0 -19
- package/dist/BusyIndication-CwqMyx63.cjs +0 -9
- package/dist/CardNumberSubText-BZIVE4Vv.js +0 -59
- package/dist/CardNumberSubText-CrzNY031.cjs +0 -21
- package/dist/CashbackDetailPage-Bb2wNPLA.js +0 -825
- package/dist/CashbackDetailPage-yBf89TIp.cjs +0 -285
- package/dist/ChargeCardDetailPage-B1zNZpYH.js +0 -5454
- package/dist/ChargeCardDetailPage-kcJwPE_h.cjs +0 -1462
- package/dist/ChargeCardListPage-C6LZWeGM.cjs +0 -412
- package/dist/ChargeCardListPage-rK3WwnqR.js +0 -1797
- package/dist/ChargeCardListTable-CsZHrDgH.js +0 -2901
- package/dist/ChargeCardListTable-i5o_MwzD.cjs +0 -711
- package/dist/ChargeCardPromoPage-gOlcLcHU.cjs +0 -222
- package/dist/ChargeCardPromoPage-sEdagg6K.js +0 -816
- package/dist/ChargeCardSetupPage-BZDidJV3.cjs +0 -36
- package/dist/ChargeCardSetupPage-MwUi4tc1.js +0 -359
- package/dist/ChargeCardStatementsPage-52hvPi6H.cjs +0 -60
- package/dist/ChargeCardStatementsPage-Dh0-tdI4.js +0 -243
- package/dist/CheckDepositDrawerPage-BpA6zo7n.js +0 -726
- package/dist/CheckDepositDrawerPage-EbuWX0Ow.cjs +0 -206
- package/dist/CollapsableReportTable-CCU3DR86.cjs +0 -2844
- package/dist/CollapsableReportTable-EATPwMmh.js +0 -11659
- package/dist/CompanyOfficerDetailsSection-ZosizL3P.js +0 -1633
- package/dist/CompanyOfficerDetailsSection-rnAF1S-E.cjs +0 -260
- package/dist/CompanyPassportCard-BvDbiTMS.cjs +0 -42
- package/dist/CompanyPassportCard-OiHJWV83.js +0 -146
- package/dist/CompanyPassportPage-C5H0n01Z.cjs +0 -574
- package/dist/CompanyPassportPage-DX3TKuVA.js +0 -2160
- package/dist/CompleteProfile-B0dUNH9e.cjs +0 -52
- package/dist/CompleteProfile-DPOygzbF.js +0 -301
- package/dist/ConfettiBurst-DW8Ebtmb.js +0 -37
- package/dist/ConfettiBurst-SY28knP0.cjs +0 -1
- package/dist/CreateOrEditVendorPage-C8t5CEt2.cjs +0 -281
- package/dist/CreateOrEditVendorPage-CEm7w2HD.js +0 -763
- package/dist/CreditCardPaymentDrawerPage-C1jcGJ7n.js +0 -1170
- package/dist/CreditCardPaymentDrawerPage-DGXrlJ_r.cjs +0 -224
- package/dist/CurrencySelectField-BnMa_5zb.cjs +0 -139
- package/dist/CurrencySelectField-FUG8f12W.js +0 -348
- package/dist/CustomerOnboardingActivationPage-0YDibCWG.js +0 -143
- package/dist/CustomerOnboardingActivationPage-CobZ-8vg.cjs +0 -88
- package/dist/CustomerOnboardingContainerPage-CXEJOac1.js +0 -7
- package/dist/CustomerOnboardingContainerPage-wAH_fKIv.cjs +0 -1
- package/dist/CustomerOnboardingDetailPageSkeleton-CSypCHx6.cjs +0 -162
- package/dist/CustomerOnboardingDetailPageSkeleton-CtKEyxpZ.js +0 -434
- package/dist/CustomerOnboardingNoStepsPage-6oAtw50z.cjs +0 -66
- package/dist/CustomerOnboardingNoStepsPage-Cbm9CXKX.js +0 -424
- package/dist/CustomerOnboardingPage-B4wbQR0i.js +0 -1094
- package/dist/CustomerOnboardingPage-D9MWMGhM.cjs +0 -107
- package/dist/CustomerOnboardingProductSuitePage-BDoW7kTC.cjs +0 -202
- package/dist/CustomerOnboardingProductSuitePage-CN55g5VJ.js +0 -348
- package/dist/Dashboard-OXsItDUY.cjs +0 -1551
- package/dist/Dashboard-pDbryNgP.js +0 -5540
- package/dist/DashboardReportPage-BA1DHAl5.js +0 -2536
- package/dist/DashboardReportPage-CZ3hmpHG.cjs +0 -371
- package/dist/DashboardSidebarBackgroundAnimation-BwZ6BUF5.cjs +0 -12
- package/dist/DashboardSidebarBackgroundAnimation-DPlYwMdy.js +0 -53
- package/dist/DepositAccTransactionItem-ZoGQdedo.js +0 -112
- package/dist/DepositAccTransactionItem-vvHmf9bt.cjs +0 -76
- package/dist/DepositAccTransactionListPage-COyQf_l9.cjs +0 -66
- package/dist/DepositAccTransactionListPage-DeJGcCE1.js +0 -152
- package/dist/DomesticWireDetailsPage-7eW2Bsqc.cjs +0 -21
- package/dist/DomesticWireDetailsPage-CyVlwaJL.js +0 -189
- package/dist/DownloadOverlay-C_f1qfAg.js +0 -2148
- package/dist/DownloadOverlay-DDhpWd3J.cjs +0 -439
- package/dist/DrawerPage-B4xMKqmt.cjs +0 -118
- package/dist/DrawerPage-C7hj5lqH.js +0 -208
- package/dist/EditPeoplePage-BDTJ7Hw7.js +0 -392
- package/dist/EditPeoplePage-BOcwWkBn.cjs +0 -55
- package/dist/EditReimbursementDetailPage-BzIQwST9.cjs +0 -865
- package/dist/EditReimbursementDetailPage-HfrcDO2x.js +0 -4531
- package/dist/EmptySearchResults-Bfa5fIPL.cjs +0 -46
- package/dist/EmptySearchResults-Db8IDryk.js +0 -70
- package/dist/EntityDetailPage-BHxXZ3n4.cjs +0 -18
- package/dist/EntityDetailPage-Bzjav_mS.js +0 -82
- package/dist/EntitySummarySection-CnQg6392.cjs +0 -149
- package/dist/EntitySummarySection-D8JvaDOm.js +0 -530
- package/dist/ExpenseAutomationOverviewPage-B2zCxaWw.js +0 -807
- package/dist/ExpenseAutomationOverviewPage-DJnX_VTQ.cjs +0 -281
- package/dist/ExpenseAutomationPage-DVAU_mBS.cjs +0 -1650
- package/dist/ExpenseAutomationPage-DrpzkKbf.js +0 -11580
- package/dist/ExpressPayPage-BZIltRZ7.cjs +0 -168
- package/dist/ExpressPayPage-CB2EC606.js +0 -1136
- package/dist/FeaturePreviewPage-DybxJe0Y.cjs +0 -11
- package/dist/FeaturePreviewPage-QsQgPLlG.js +0 -114
- package/dist/FollowStepsSection-BUNC4f7d.js +0 -1313
- package/dist/FollowStepsSection-Cno82Ph5.cjs +0 -390
- package/dist/GlobalReviewListPage-BxtiaFsC.cjs +0 -291
- package/dist/GlobalReviewListPage-Dh0bZZF7.js +0 -1674
- package/dist/InformationCardStack-DIvO1XaE.cjs +0 -31
- package/dist/InformationCardStack-QdPW7ji5.js +0 -219
- package/dist/InsightsCardStack-0HzIkrId.cjs +0 -79
- package/dist/InsightsCardStack-DDG61SaY.js +0 -305
- package/dist/InsightsSection-Bh0CbtL7.cjs +0 -27
- package/dist/InsightsSection-CocGvpW5.js +0 -97
- package/dist/IntegrationsSettingsPage-CNInGpHf.cjs +0 -57
- package/dist/IntegrationsSettingsPage-DmGBWzP6.js +0 -136
- package/dist/InternationalWireSwiftDetailsPage-BVCtw50B.cjs +0 -171
- package/dist/InternationalWireSwiftDetailsPage-EINLFkyG.js +0 -753
- package/dist/InternationalWireVerificationPage-DuMdQut0.js +0 -877
- package/dist/InternationalWireVerificationPage-LDHmjXZx.cjs +0 -292
- package/dist/InviteFormPage-DCy33nj6.js +0 -873
- package/dist/InviteFormPage-yuqyD6_0.cjs +0 -312
- package/dist/InvitePageListView-C22DsQ0T.cjs +0 -739
- package/dist/InvitePageListView-D_4SP_tv.js +0 -1764
- package/dist/InvitePeoplePage-CXjNbeU9.js +0 -286
- package/dist/InvitePeoplePage-DNOB9J5l.cjs +0 -12
- package/dist/InvoiceUploadSection-D3LQ8R4-.js +0 -465
- package/dist/InvoiceUploadSection-iJf1zDSj.cjs +0 -140
- package/dist/IssueChargeCardPage-i6S0lIBk.js +0 -2875
- package/dist/IssueChargeCardPage-xTr2Ahwc.cjs +0 -532
- package/dist/LabeledAddressValue-CXmq1DnZ.js +0 -115
- package/dist/LabeledAddressValue-iS0QdUIl.cjs +0 -49
- package/dist/LabeledAddressValueField-BLL04mSr.js +0 -130
- package/dist/LabeledAddressValueField-BmOJgOYv.cjs +0 -45
- package/dist/LabeledControlledCheckBoxField-BVxyX_6-.js +0 -73
- package/dist/LabeledControlledCheckBoxField-CfP3crcN.cjs +0 -16
- package/dist/LabeledCreatableSingleSelectField-CB5Oqi8r.cjs +0 -204
- package/dist/LabeledCreatableSingleSelectField-CRM0KgmE.js +0 -515
- package/dist/LabeledDocumentField-CovUps5E.cjs +0 -41
- package/dist/LabeledDocumentField-D4I3YXOy.js +0 -147
- package/dist/LabeledDropDownFormattedTextField-BxrmuQgD.cjs +0 -59
- package/dist/LabeledDropDownFormattedTextField-DaW_TPi1.js +0 -163
- package/dist/LabeledEmailInputField-B-9zmTEl.cjs +0 -182
- package/dist/LabeledEmailInputField-BEJQ8J01.js +0 -425
- package/dist/LabeledItemWithButton-C74niGcd.cjs +0 -21
- package/dist/LabeledItemWithButton-DWKkdvJL.js +0 -74
- package/dist/LabeledNameField-B--ICe4F.js +0 -293
- package/dist/LabeledNameField-C4ACl7i-.cjs +0 -141
- package/dist/LabeledSingleSelectField-DWgGdmqH.js +0 -372
- package/dist/LabeledSingleSelectField-QT-kTAS7.cjs +0 -136
- package/dist/LabeledSingleSelectWithoutClearableField-CTB0ozQP.js +0 -103
- package/dist/LabeledSingleSelectWithoutClearableField-FVkyzVo0.cjs +0 -38
- package/dist/LabeledText-BsX0SfEi.cjs +0 -42
- package/dist/LabeledText-Dw-5v7lD.js +0 -103
- package/dist/LabeledUserSingleSelectWithSubtitlesField-8dIVtfTm.cjs +0 -229
- package/dist/LabeledUserSingleSelectWithSubtitlesField-BGamxotP.js +0 -572
- package/dist/LabeledZeniRolesDropDownField-AUG0tAQv.cjs +0 -297
- package/dist/LabeledZeniRolesDropDownField-BV1g6-FT.js +0 -975
- package/dist/LinkJETransactionPage-BGYzb7a1.js +0 -406
- package/dist/LinkJETransactionPage-BjGIs4HJ.cjs +0 -98
- package/dist/LockCardPage-BjbMpLIz.js +0 -2032
- package/dist/LockCardPage-DUdKJN40.cjs +0 -623
- package/dist/LowBalancePopup-ChM1UTHD.cjs +0 -34
- package/dist/LowBalancePopup-e4M9kUU3.js +0 -219
- package/dist/MagicLinkACHDetailsPage-C6-Mqj92.cjs +0 -1
- package/dist/MagicLinkACHDetailsPage-DtZM773b.js +0 -39
- package/dist/MagicLinkDomesticWireDetailsPage-BG7eswIa.cjs +0 -1
- package/dist/MagicLinkDomesticWireDetailsPage-DGJFApYM.js +0 -44
- package/dist/MagicLinkInternationalWireDetailsPage-BCQFzIxL.cjs +0 -1
- package/dist/MagicLinkInternationalWireDetailsPage-RvdzvIE1.js +0 -43
- package/dist/MagicLinkSuccessPage-D3O5K5pW.cjs +0 -31
- package/dist/MagicLinkSuccessPage-Dn03eKQa.js +0 -59
- package/dist/MagicLinkTitleSection-Bisfpdol.js +0 -40
- package/dist/MagicLinkTitleSection-CpgU2Uxp.cjs +0 -17
- package/dist/MailingDetailsSection-BVgzgDnY.cjs +0 -21
- package/dist/MailingDetailsSection-jhL1aT92.js +0 -74
- package/dist/MatchingOperatorDropdown-Bp5KvrzI.js +0 -572
- package/dist/MatchingOperatorDropdown-D67c_Yle.cjs +0 -130
- package/dist/Menu-CXLK1CLP.js +0 -110
- package/dist/Menu-CbhR-0lp.cjs +0 -17
- package/dist/MoreMenuButton-CBys69SI.js +0 -569
- package/dist/MoreMenuButton-DMGs9wbE.cjs +0 -167
- package/dist/MyBankConnectionsSettingsPage-8pxwAQIv.js +0 -297
- package/dist/MyBankConnectionsSettingsPage-CEnZoubj.cjs +0 -110
- package/dist/MyPendingActivationChargeCardListPage-7OlKrfN1.js +0 -168
- package/dist/MyPendingActivationChargeCardListPage-BevHIw3F.cjs +0 -6
- package/dist/MyProfileSettingsPage-DeupLTC5.js +0 -641
- package/dist/MyProfileSettingsPage-Dq9CM428.cjs +0 -85
- package/dist/NavBarWithPicker-O1GEqmtU.cjs +0 -30
- package/dist/NavBarWithPicker-_agyhWgB.js +0 -106
- package/dist/NavigationArrow-BHwRsOkJ.cjs +0 -47
- package/dist/NavigationArrow-CXvMveRY.js +0 -88
- package/dist/NavigationDots-B6EqaD7p.cjs +0 -15
- package/dist/NavigationDots-wBCZ8GoT.js +0 -44
- package/dist/NewGlobalMerchantPage-Cz6kS_9K.cjs +0 -160
- package/dist/NewGlobalMerchantPage-rbO5F5YV.js +0 -543
- package/dist/NoDataChart-BtzsXOER.cjs +0 -26
- package/dist/NoDataChart-D6wQl-Sq.js +0 -58
- package/dist/NoDataTable-C8o-D_nQ.js +0 -27
- package/dist/NoDataTable-DW4nusWL.cjs +0 -8
- package/dist/NotFoundPage-BQisOTuV.js +0 -71
- package/dist/NotFoundPage-DDCCizRK.cjs +0 -46
- package/dist/NotificationSettingsPage-CI8EPaKu.js +0 -541
- package/dist/NotificationSettingsPage-CWRX_7Fx.cjs +0 -163
- package/dist/NotificationsListConfig-BOOMMfOG.cjs +0 -1
- package/dist/NotificationsListConfig-BgBdmQtZ.js +0 -10
- package/dist/NotificationsPage-Dmq64qqo.js +0 -2664
- package/dist/NotificationsPage-OKhrnD7q.cjs +0 -685
- package/dist/OpExByVendorPage-Bmxw607R.js +0 -1058
- package/dist/OpExByVendorPage-CbDIIAKw.cjs +0 -100
- package/dist/PandLWithForecastPage-9DFW-1d9.cjs +0 -107
- package/dist/PandLWithForecastPage-O0MU1SvD.js +0 -563
- package/dist/PaymentAccountSetupBillingAddressSection-B8GLWoUA.cjs +0 -106
- package/dist/PaymentAccountSetupBillingAddressSection-CIphitJ_.js +0 -623
- package/dist/PeoplePage-CBfwfKNY.cjs +0 -675
- package/dist/PeoplePage-CHgfUbHT.js +0 -1994
- package/dist/ProductsCarousel-BETiMbAk.cjs +0 -142
- package/dist/ProductsCarousel-Be2diRML.js +0 -309
- package/dist/PromoBaseCards-CcjFKpD7.cjs +0 -218
- package/dist/PromoBaseCards-S4Xb5J7A.js +0 -356
- package/dist/QBOConnectionDialog-BPbyvFxf.cjs +0 -51
- package/dist/QBOConnectionDialog-D5_UPRMh.js +0 -115
- package/dist/QBOSetupSection-BsPYtIah.cjs +0 -79
- package/dist/QBOSetupSection-DfiyK2ov.js +0 -167
- package/dist/ReimbursementApprovalRuleDetailPage-CfrWTmNa.js +0 -247
- package/dist/ReimbursementApprovalRuleDetailPage-S0S6p3EL.cjs +0 -26
- package/dist/ReimbursementApprovalRulesPage-4khDDDPG.js +0 -410
- package/dist/ReimbursementApprovalRulesPage-CXXVxG2k.cjs +0 -237
- package/dist/ReimbursementDetailPage-B8RyRuAm.js +0 -1514
- package/dist/ReimbursementDetailPage-Rd8ymiVo.cjs +0 -314
- package/dist/ReimbursementPromoPage-CBKUf39r.js +0 -363
- package/dist/ReimbursementPromoPage-CaosNyu-.cjs +0 -84
- package/dist/ReimbursementSetUpPage-C4dU2EPo.cjs +0 -140
- package/dist/ReimbursementSetUpPage-Dg3o5WT4.js +0 -663
- package/dist/ReimbursementsBulkReviewDrawerPage-BMJnNqTa.js +0 -204
- package/dist/ReimbursementsBulkReviewDrawerPage-DmSr0LM7.cjs +0 -1
- package/dist/ReloadCard-D_zIThxd.js +0 -137
- package/dist/ReloadCard-sK3YqLIg.cjs +0 -26
- package/dist/ReloadContainer-B9yUH1_h.js +0 -2165
- package/dist/ReloadContainer-CySb-x59.cjs +0 -596
- package/dist/ReportTableViewSelector-6UggzGls.js +0 -679
- package/dist/ReportTableViewSelector-Cbk5lKHA.cjs +0 -150
- package/dist/ReportsPage-CrQSow0a.cjs +0 -121
- package/dist/ReportsPage-DE5d98NC.js +0 -1315
- package/dist/RevenueChart-DPbWaOsn.cjs +0 -280
- package/dist/RevenueChart-DTCL4ZH2.js +0 -2240
- package/dist/ReviewDetailsPage-Ck6VpEDV.cjs +0 -290
- package/dist/ReviewDetailsPage-XS6whpgN.js +0 -1073
- package/dist/ReviewOverlay-BRTGhRrL.cjs +0 -152
- package/dist/ReviewOverlay-BSql9hNx.js +0 -299
- package/dist/RoleWithToolTip-DT8Qwr08.js +0 -72
- package/dist/RoleWithToolTip-_u__BBUg.cjs +0 -22
- package/dist/ScheduleDetailsFixedAssetsPage-IHxCfhPr.cjs +0 -37
- package/dist/ScheduleDetailsFixedAssetsPage-q375MDaU.js +0 -806
- package/dist/ScheduleDetailsPage-BeTI1rQ5.cjs +0 -37
- package/dist/ScheduleDetailsPage-yTJYRef7.js +0 -726
- package/dist/ScheduleSequenceTable-Oabvynrs.cjs +0 -324
- package/dist/ScheduleSequenceTable-SavQ_F0r.js +0 -1261
- package/dist/SetUpAccountSection-BdiQmt0P.cjs +0 -378
- package/dist/SetUpAccountSection-DmqXQGav.js +0 -1469
- package/dist/SignIn-CbUYeFMp.js +0 -1075
- package/dist/SignIn-flQVXE45.cjs +0 -448
- package/dist/SpendManagementListViewPage-DG67ytQq.js +0 -627
- package/dist/SpendManagementListViewPage-sbf4hjvd.cjs +0 -122
- package/dist/SpendManagementPerTabPage-BLVv5V3_.js +0 -2735
- package/dist/SpendManagementPerTabPage-mAoiOZzm.cjs +0 -754
- package/dist/SpendManagementSection-BT-0vVhb.cjs +0 -230
- package/dist/SpendManagementSection-l67rzoDZ.js +0 -1043
- package/dist/StatementItem-CgCjX5Z7.js +0 -81
- package/dist/StatementItem-xAPykB73.cjs +0 -31
- package/dist/StatementsPage-Tkuhhi3Q.cjs +0 -58
- package/dist/StatementsPage-Uq_XYJ1O.js +0 -130
- package/dist/StatusSwitcher-BXAJ6Ax7.cjs +0 -120
- package/dist/StatusSwitcher-C4lhudsm.js +0 -319
- package/dist/SubTabSwitcher-B-zrrOtX.cjs +0 -58
- package/dist/SubTabSwitcher-B18zX9Gm.js +0 -113
- package/dist/SuccessAnimation-BbWWfRki.cjs +0 -13
- package/dist/SuccessAnimation-Cv5DxaO5.js +0 -52
- package/dist/SummaryCard-BklHYrXj.js +0 -25
- package/dist/SummaryCard-CMMSGymc.cjs +0 -1
- package/dist/TaskDetailPage-Cu-PFNPb.cjs +0 -775
- package/dist/TaskDetailPage-Ddui5MbY.js +0 -2533
- package/dist/TaskListRow-BdrWFu69.js +0 -1950
- package/dist/TaskListRow-DQJns6Ob.cjs +0 -556
- package/dist/TaskManagementPage-BMS34nsg.cjs +0 -508
- package/dist/TaskManagementPage-BuTSoKKu.js +0 -1935
- package/dist/TimeRangeSwitcher-BHxa5XJj.cjs +0 -64
- package/dist/TimeRangeSwitcher-lNZfqFl7.js +0 -265
- package/dist/TimeframeSwitcher-DRN8aAcF.cjs +0 -31
- package/dist/TimeframeSwitcher-GOR97lqs.js +0 -103
- package/dist/TimeframeSwitcherWithToggle-BBeCwQkl.cjs +0 -31
- package/dist/TimeframeSwitcherWithToggle-G_TVa2pi.js +0 -157
- package/dist/TopExCard-Cx-xPHDg.cjs +0 -38
- package/dist/TopExCard-DXFHhwQc.js +0 -569
- package/dist/TopExDetailPage-0tKleuT7.cjs +0 -132
- package/dist/TopExDetailPage-hwZiUoXq.js +0 -318
- package/dist/TransactionDetailPage-BXdEqarV.cjs +0 -912
- package/dist/TransactionDetailPage-CbfaqjaN.js +0 -5238
- package/dist/TransactionList-BsAMvsOK.cjs +0 -147
- package/dist/TransactionList-X-6-ohWo.js +0 -558
- package/dist/TransactionListBig-Bfhd2EvS.js +0 -658
- package/dist/TransactionListBig-BvTtzQfP.cjs +0 -284
- package/dist/TransactionListPage-9MLmFUxU.js +0 -145
- package/dist/TransactionListPage-DV0lLcBA.cjs +0 -35
- package/dist/TransactionVendorDetailPage-CLaq9K79.js +0 -425
- package/dist/TransactionVendorDetailPage-naDUw2gO.cjs +0 -80
- package/dist/TransferDrawerPage-BPocMDcY.js +0 -1436
- package/dist/TransferDrawerPage-CHc8JVl0.cjs +0 -362
- package/dist/TreasuryOverviewPage-Ct677wDt.js +0 -1890
- package/dist/TreasuryOverviewPage-DTHptP0j.cjs +0 -708
- package/dist/TreasuryPromoPage-BbJE-X6e.cjs +0 -505
- package/dist/TreasuryPromoPage-DYR4-Qge.js +0 -1123
- package/dist/TreasuryStatementsPage-C9Ogzv2N.cjs +0 -58
- package/dist/TreasuryStatementsPage-DSsB3omH.js +0 -131
- package/dist/TreasuryTaxLetterPage-BzG9wwez.js +0 -131
- package/dist/TreasuryTaxLetterPage-CNH-4C_0.cjs +0 -58
- package/dist/TrendChart-Bu2Ynzgp.cjs +0 -16
- package/dist/TrendChart-CU4NNxoF.js +0 -334
- package/dist/TrendWithTransactions-Cmre-sgm.cjs +0 -116
- package/dist/TrendWithTransactions-DvRAlFj-.js +0 -346
- package/dist/UncategorizedAccountsMappingPage-fbiSA8j9.js +0 -1159
- package/dist/UncategorizedAccountsMappingPage-jnTbq9Y9.cjs +0 -244
- package/dist/UnitIntegrationPage-CPDk6nUl.js +0 -405
- package/dist/UnitIntegrationPage-Cw7eTXw1.cjs +0 -67
- package/dist/UploadAdditionalDocumentOverlay-CexRRuSv.js +0 -211
- package/dist/UploadAdditionalDocumentOverlay-HQMMeRfc.cjs +0 -38
- package/dist/Vendor2FAPopup-BE5MbM7Q.js +0 -69
- package/dist/Vendor2FAPopup-Dnfznk8S.cjs +0 -1
- package/dist/VendorACHDetailsPage-BlZ1Npjb.cjs +0 -1
- package/dist/VendorACHDetailsPage-Dy9i7Ojd.js +0 -43
- package/dist/VendorDetailPage-B1uJVL2c.js +0 -1236
- package/dist/VendorDetailPage-CX0EhUZA.cjs +0 -257
- package/dist/VendorDomesticWireDetailsPage-BJj13lza.js +0 -53
- package/dist/VendorDomesticWireDetailsPage-CtHwwmf1.cjs +0 -1
- package/dist/VendorFiling1099EditablePage-CPGHxcqe.js +0 -842
- package/dist/VendorFiling1099EditablePage-DglDZmN9.cjs +0 -175
- package/dist/VendorFirstReviewPage-CPJZZcmI.js +0 -2748
- package/dist/VendorFirstReviewPage-D4afqr8h.cjs +0 -730
- package/dist/VendorInternationalWireDetailsPage-BRy8TuIt.cjs +0 -152
- package/dist/VendorInternationalWireDetailsPage-CHGIT6N5.js +0 -968
- package/dist/VendorInternationalWireSwiftDetailsPage-B1GNHTMx.js +0 -52
- package/dist/VendorInternationalWireSwiftDetailsPage-wHm1GzdB.cjs +0 -1
- package/dist/VendorsAccountsSection-BG4eA5Gn.cjs +0 -68
- package/dist/VendorsAccountsSection-DXrfnkkK.js +0 -279
- package/dist/VerifyDevice-DYrOe-9Y.js +0 -298
- package/dist/VerifyDevice-gXz6q0Gx.cjs +0 -112
- package/dist/VideoPlayer-CBhT0phL.cjs +0 -77
- package/dist/VideoPlayer-D1ADub-O.js +0 -170
- package/dist/VideoPopup-BFqpNu29.js +0 -60
- package/dist/VideoPopup-Cz6uSBLh.cjs +0 -31
- package/dist/WarningsDrawerPage-BjgR3-M6.cjs +0 -92
- package/dist/WarningsDrawerPage-EMibH1z2.js +0 -228
- package/dist/ZeniAccountDetailPage-Cv1EOImV.cjs +0 -300
- package/dist/ZeniAccountDetailPage-DEeJ1Fo9.js +0 -908
- package/dist/ZeniAccountListViewPage-BIkLkVwt.cjs +0 -441
- package/dist/ZeniAccountListViewPage-DF3Dj-RQ.js +0 -1078
- package/dist/ZeniAccountNavBarPieces-Chwq6Du7.cjs +0 -14
- package/dist/ZeniAccountNavBarPieces-DnvCdkoT.js +0 -89
- package/dist/ZeniAccountPromoPage-3RC4DxYx.js +0 -522
- package/dist/ZeniAccountPromoPage-BY6_MQOU.cjs +0 -184
- package/dist/ZeniAccountSetupPage-BvAAifp7.cjs +0 -36
- package/dist/ZeniAccountSetupPage-DN0aGrqr.js +0 -309
- package/dist/ZeniAvatar-CiuSlmWJ.cjs +0 -13
- package/dist/ZeniAvatar-DztqcUzv.js +0 -34
- package/dist/ZeniCopyright-BmHHmjRP.cjs +0 -1
- package/dist/ZeniCopyright-CWD0WOng.js +0 -9
- package/dist/ZeniDatePicker-BVh7dyFj.cjs +0 -187
- package/dist/ZeniDatePicker-CCW0riSr.js +0 -386
- package/dist/ZeniTransferAmountSlider-74ZRaNmi.js +0 -215
- package/dist/ZeniTransferAmountSlider-CvCbHieQ.cjs +0 -63
- package/dist/analyticsHelper-ClSrtMQO.cjs +0 -1
- package/dist/analyticsHelper-x2rC1gNt.js +0 -65
- package/dist/calculateSize-Cni0gOJ-.js +0 -22
- package/dist/calculateSize-D39gFcZH.cjs +0 -1
- package/dist/chartTypes-DxIeA_2j.js +0 -47
- package/dist/chartTypes-JeXIk12G.cjs +0 -1
- package/dist/common-D9LGdcMr.js +0 -22
- package/dist/common-DbNO2ldb.cjs +0 -1
- package/dist/commonDimensions-Cy8RO5OG.cjs +0 -1
- package/dist/commonDimensions-jC1Pd3Ai.js +0 -13
- package/dist/detailCommon-D6Up0E5I.js +0 -124
- package/dist/detailCommon-e2eqnMQ7.cjs +0 -38
- package/dist/downloadPdf-ChW6yv1l.js +0 -32
- package/dist/downloadPdf-Dc6tQrZe.cjs +0 -1
- package/dist/index-8M9nU4Oy.cjs +0 -21111
- package/dist/index-B_vMG-7O.js +0 -92167
- package/dist/mapLoadingInProgressToTreeNode-CXwAUKF6.js +0 -25
- package/dist/mapLoadingInProgressToTreeNode-CvWLRiaE.cjs +0 -1
- package/dist/mapSectionWithAcOnlyToTreeNode-C1j8jMAg.js +0 -387
- package/dist/mapSectionWithAcOnlyToTreeNode-C4A0zcRX.cjs +0 -1
- package/dist/mapSpacerToTreeNode-DNGSQ2pT.cjs +0 -1
- package/dist/mapSpacerToTreeNode-nMLJfJ6U.js +0 -25
- package/dist/mapTimeframeBalancesToTreeNode-BHzOi5WX.cjs +0 -1
- package/dist/mapTimeframeBalancesToTreeNode-BlA11pxm.cjs +0 -1
- package/dist/mapTimeframeBalancesToTreeNode-BvZFFEfa.js +0 -24
- package/dist/mapTimeframeBalancesToTreeNode-CEOaaqia.js +0 -24
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-BBg7kklO.cjs +0 -1
- package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-Cx-aUc0S.js +0 -32
- package/dist/sectionColor-BrlF2OJO.cjs +0 -1
- package/dist/sectionColor-vxXMmNXz.js +0 -32
- package/dist/toCOABalancesWithID-Bqo2b56P.js +0 -8
- package/dist/toCOABalancesWithID-D-ztOT13.cjs +0 -1
- package/dist/toChartData-B2102EXM.cjs +0 -1
- package/dist/toChartData-jR2IxmG5.js +0 -76
- package/dist/uploadAttachment-D8vjhtsO.js +0 -952
- package/dist/uploadAttachment-jpDWM33P.cjs +0 -286
- package/dist/zeniDatePicker.helpers--T9Criu8.cjs +0 -1
- package/dist/zeniDatePicker.helpers-eG1lIr1a.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"),W=require("@zeniai/client-epic-state"),t=require("./index-8M9nU4Oy.cjs"),_e=require("@emotion/react"),vo=require("./BusyIndication-CwqMyx63.cjs"),bo=require("./common-DbNO2ldb.cjs"),wo=require("react-plaid-link"),he=require("./ReloadContainer-CySb-x59.cjs"),Ae=require("./CollapsableReportTable-CCU3DR86.cjs"),ln=require("./AccountRow-DrgP7IFZ.cjs"),Js=require("./mapTimeframeBalancesToTreeNode-BlA11pxm.cjs"),qn=require("./mapLoadingInProgressToTreeNode-CvWLRiaE.cjs"),Io=require("./VendorsAccountsSection-BG4eA5Gn.cjs"),ko=require("./SuccessAnimation-BbWWfRki.cjs"),qt=require("./uploadAttachment-jpDWM33P.cjs");function To(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=To(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?_e.css`
|
|
78
|
-
${Ko} 2s linear infinite;
|
|
79
|
-
`:"none"};
|
|
80
|
-
&:hover {
|
|
81
|
-
color: ${e=>e.theme.colors.primary};
|
|
82
|
-
}
|
|
83
|
-
`,Ko=_e.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
|
-
`,Ut=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,j)=>{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},j+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")})},j+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")})},j+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(Ut,{windowSize:l,children:[e," "]});const u=e.indexOf(s);if(u===-1)return n.jsxRuntimeExports.jsxs(Ut,{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(Ut,{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(Ut,{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:j,titleStyle:y={}}=e,S=o("autoCategorized")?.count??0,f=o("review")?.count??0,E=o("reconcile")?.count??0,g=s.tabs.length>0||s.subTitle.length>0,w=x==="transaction_categorization"&&l==="autoCategorized",O=x==="reconciliation"&&h==="review"&&u!=null,$=x==="reconciliation"&&h==="reconcile"&&u!=null,v=w?S>0:O?c==="In-Progress"?!0:f>0:$?c==="In-Progress"?!0:E>0:a!=="complete",C=n.useTheme(),I=t.useWindowSizeContext();let L=[];return s.tabs.length>0&&(L=s.tabs.map(U=>({label:U.label,id:U.id,countDetails:o(U.id)}))),n.jsxRuntimeExports.jsxs(Po,{children:[n.jsxRuntimeExports.jsx(t.NavBar,{title:s.title,subTitle:s.subText,titleTextStyles:{flex:"1 1 0px"},backgroundColor:C.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"}),j??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:L,selectedTab:x==="transaction_categorization"?l??L[0].id:h??L[0].id,onTabChange:U=>{if(x==="transaction_categorization"){const T=W.toExpenseAutomationTransactionsTabKey(U.id);T!=null&&p(T)}else if(x==="reconciliation"){const T=W.toReconciliationTabsType(U.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((U,T)=>(x==="reconciliation"?U.id===h:U.id===l)?n.jsxRuntimeExports.jsx(Yo,{children:n.jsxRuntimeExports.jsx(Jn,{subTitles:U.subTitle})},T+U.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:j,draggable:y=!1,selectionLimit:S,infoIconContainerStyle:f,onDragStart:E,rowHeight:g=40,initialScrollOffSet:w,onScroll:O}){const $=t.useWindowSizeContext(),B=m.useRef(null),{control:v}=n.useFormContext(),C=s.find(T=>T.groupLabel),I=s.filter(T=>!T.groupLabel),L=[];for(const T of I)if(T.isException||L.push(T.value),S!=null&&L.length===S+1)break;const U=s.filter(T=>T.defaultChecked).map(T=>T.value);return n.jsxRuntimeExports.jsx(n.Controller,{control:v,name:e,rules:x,defaultValue:U,render:({field:{value:T,ref:K,onChange:_}})=>{const F=G=>{ui({event:G,value:T,allCheckBoxValues:L,groupLabelCheckBox:C,onChange:_})};return n.jsxRuntimeExports.jsxs(pi,{style:p,windowSize:$,children:[C&&n.jsxRuntimeExports.jsx(Mn,{checkBox:C,index:0,value:T,allCheckBoxValues:L,mode:l,name:e,checkBoxContainerStyle:j,checkBoxIconStyle:h,checkBoxStyle:c,labelCheckBoxStyle:o,labelStyle:u,width:r,draggable:y,groupLabelCheckBox:C,infoIconContainerStyle:f,checkedIconColor:d,isDisabled:a,selectionLimit:S,onDragStart:E,ref:K,onChangeHandler:F}),n.jsxRuntimeExports.jsx(mi,{children:n.jsxRuntimeExports.jsx(n.AutoSizer,{style:{height:"100%",width:"100%"},children:({height:G,width:J})=>n.jsxRuntimeExports.jsx(n.VariableSizeList,{ref:B,height:G,width:J,itemCount:I.length,itemSize:()=>g,estimatedItemSize:g,initialScrollOffset:w??0,onScroll:({scrollOffset:N})=>{O?.(N)},overscanCount:ci,itemKey:N=>I[N].value,itemData:{checkBoxes:I,value:T,allCheckBoxValues:L,mode:l,name:e,checkBoxContainerStyle:j,checkBoxIconStyle:h,checkBoxStyle:c,labelCheckBoxStyle:o,labelStyle:u,width:r,draggable:y,groupLabelCheckBox:C,infoIconContainerStyle:f,checkedIconColor:d,isDisabled:a,selectionLimit:S,onDragStart:E,ref:K,onChange:_,handleChangeEvent:F,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:j,labelStyle:y,width:S,draggable:f,groupLabelCheckBox:E,infoIconContainerStyle:g,checkedIconColor:w,isDisabled:O,selectionLimit:$,onDragStart:B,ref:v,handleChangeEvent:C}=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:j,labelStyle:y,width:S,draggable:f,groupLabelCheckBox:E,infoIconContainerStyle:g,checkedIconColor:w,isDisabled:O,selectionLimit:$,onDragStart:B,ref:v,onChangeHandler:C})})},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:j,infoIconContainerStyle:y,name:S,index:f,width:E,checkedIconColor:g,checkBoxIconStyle:w,labelStyle:O,onDragStart:$,onChangeHandler:B}=e,v=t.useWindowSizeContext(),C=T=>{typeof s=="function"?s(T):s&&(s.current=T)};let I=l.includes(a.value);const L=Array.from(new Set([...l,a.value]));p?.value===a.value&&l.length>0&&(o!=null?I=L.length===u.length||L.length===o+1:I=u.every(T=>L.includes(T)===!0));const U=()=>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:j,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:`${S}.${a.value}`,checkBoxValue:a.value,value:I,checkedIconColor:g,isDisabled:d||!a.groupLabel&&!I&&o!=null&&L.length===o+1?"disabled":void 0,checkBoxStyle:U(),checkBoxIconStyle:w,ref:C,onChange:B}),typeof a.label=="string"&&a.label?n.jsxRuntimeExports.jsx(t.Label,{isDisabled:d,label:a.label,labelStyle:O,htmlFor:`${S}.${a.value}`,style:{display:"flex",flex:1,minHeight:t.Space.sp4,marginLeft:t.Space.sp2,width:E,backgroundColor:"inherit",...O}}):a.label]},`${a.value}_${f}`)});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"&&_e.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"&&_e.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"&&_e.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"&&_e.css`
|
|
213
|
-
:hover {
|
|
214
|
-
.checkbox-alert {
|
|
215
|
-
opacity: 1;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
`}
|
|
219
|
-
|
|
220
|
-
${e=>e.exceptionMode==="checked_or_hover"&&_e.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
|
-
`,ki=i(Ei)`
|
|
260
|
-
width: 90px;
|
|
261
|
-
height: 90px;
|
|
262
|
-
`,Ti=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(ki,{});case"flux_analysis":return n.jsxRuntimeExports.jsx(Ii,{});case"missing_receipts":default:return n.jsxRuntimeExports.jsx(wi,{})}};function pt(e){const{title:s,subTitle:l}=e;return n.jsxRuntimeExports.jsx(vi,{children:n.jsxRuntimeExports.jsxs(Ti,{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:vt}},expenseAutomation:{transactions:{tabs:Zn,subTitles:{review:{item1:Gt,item2:Kt},autoCategorized:{item1:Jt,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:Yt},reconcile:{item1:Zt,item2:sr}}}}}=t.appLocale.getLocalizedStrings(),Me=(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:Gt.pre,bold:Gt.bold,prefixIconName:Gt.prefixIconName,post:Gt.post},{pre:Kt.pre,bold:Kt.bold,prefixIconName:Kt.prefixIconName,post:Kt.post}]},{label:Zn.autoCategorized,id:"autoCategorized",subTitle:[{pre:Jt.pre,bold:Jt.bold,prefixIconName:Jt.prefixIconName,post:Jt.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:vt,allDoneText:{title:vt,subTitle:vt}};case"reconciliation":return l==null?{key:"reconciliation",title:Yn,subTitle:[er,tr],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:vt,allDoneText:{title:vt,subTitle:vt}}:{key:"reconciliation",title:a??Yn,subText:p??void 0,subTitle:[],tabs:[{label:Qn.review,id:"review",subTitle:[nr,{pre:Yt.pre,bold:Yt.bold,prefixIconName:Yt.prefixIconName,post:Yt.post}],allDoneText:Xn},{label:Qn.reconcile,id:"reconcile",subTitle:[{pre:Zt.pre,bold:Zt.bold,prefixIconName:Zt.prefixIconName,post:Zt.post},sr],allDoneText:Qi}],rightSection:["refresh"],leftSection:["back"],searchPlaceholder:vt,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,Ht={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!==Ht.sortKey||e.sortOrder!==Ht.sortOrder),children:n.jsxRuntimeExports.jsx(Er,{"data-testid":t.generateDataTestId("reconcile-tab-list-reset-sort",Ht.sortKey),onClick:()=>s(Ht.sortKey,Ht.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(kr,{id:l,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:n.jsxRuntimeExports.jsxs(Tr,{isSelected:r,totalHeight:br,children:[n.jsxRuntimeExports.jsx(ct,{windowSize:a,responsiveWidth:$e[0].width,style:$e[0].customStyle,children:n.jsxRuntimeExports.jsx(bt,{isSelected:r,children:s.date.format(es.visual.MMMDCommaYYYYformat)})}),$e[1].customStyle.display!=="none"?n.jsxRuntimeExports.jsx(ct,{windowSize:a,responsiveWidth:$e[1].width,style:$e[1].customStyle,children:n.jsxRuntimeExports.jsx(bt,{isSelected:r,children:s.clearedDate!=null?s.clearedDate.format(es.visual.MMMDCommaYYYYformat):n.jsxRuntimeExports.jsx("span",{children:dn})})}):null,n.jsxRuntimeExports.jsx(ct,{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(ct,{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(bt,{isSelected:r,children:n.jsxRuntimeExports.jsx("span",{children:dn})})}),n.jsxRuntimeExports.jsx(ct,{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(bt,{isSelected:r,children:n.jsxRuntimeExports.jsx("span",{children:dn})})}),n.jsxRuntimeExports.jsx(ct,{windowSize:a,style:$e[5].customStyle,responsiveWidth:$e[5].width,children:n.jsxRuntimeExports.jsx(bt,{isSelected:r,style:{textTransform:"capitalize"},children:s.transactionDirection})}),n.jsxRuntimeExports.jsx(ct,{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(ct,{windowSize:a,style:$e[7].customStyle,responsiveWidth:$e[7].width,children:n.jsxRuntimeExports.jsx(bt,{isSelected:r,children:t.amountToString("0,0.[00]",s.amount)})}),n.jsxRuntimeExports.jsx(ct,{windowSize:a,responsiveWidth:$e[8].width,style:$e[8].customStyle,children:n.jsxRuntimeExports.jsx(bt,{isSelected:r,children:s.isZeniRecommended?n.jsxRuntimeExports.jsx(Lr,{}):null})})]})})}const kr=i.div`
|
|
324
|
-
box-sizing: border-box;
|
|
325
|
-
width: 100%;
|
|
326
|
-
display: flex;
|
|
327
|
-
padding-right: ${t.Space.sp8};
|
|
328
|
-
`,Tr=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
|
-
`,ct=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
|
-
`,bt=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(f=>({label:n.jsxRuntimeExports.jsx(Ir,{transaction:f,selectedTransactionIds:s.selectedTransactionIds,transactionId:f.id}),value:f.id,defaultChecked:!1,groupLabel:!1})),j=[d,...h],y=async f=>{const g=f[ss].filter(w=>w!=ts.toLocaleLowerCase());c(g)};m.useEffect(()=>{const f=x.watch(E=>{E!=null&&n.defer(()=>y(E))});return()=>{f.unsubscribe()}}),m.useEffect(()=>(e!=="expenseAutomationBankReconReconcilePage"&&r("expenseAutomationBankReconReconcilePage"),()=>{r("expenseAutomationPage")}),[]);const S=m.useCallback(()=>{p({reconcileAction:"reconcile"})},[p]);if(l.length===0){const f=Me("reconciliation",void 0,u).tabs.find(E=>E.id==="reconcile")?.allDoneText;return n.jsxRuntimeExports.jsx(Fr,{children:n.jsxRuntimeExports.jsx(pt,{tab:"missing_receipts",title:f?.title??ns,subTitle:f?.subTitle??ns})})}return n.jsxRuntimeExports.jsx(Mr,{children:n.jsxRuntimeExports.jsx(n.FormProvider,{...x,children:n.jsxRuntimeExports.jsx(Nr,{onSubmit:x.handleSubmit(S),id:_r(Dr),children:n.jsxRuntimeExports.jsx(Pr,{children:n.jsxRuntimeExports.jsx(li,{name:ss,checkBoxes:j,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,pe={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
|
-
`,ot=i.div`
|
|
477
|
-
padding: ${t.Space.sp2} ${t.Space.sp3};
|
|
478
|
-
`,se=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
|
-
`,oe=i.div`
|
|
487
|
-
display: flex;
|
|
488
|
-
gap: ${t.Space.sp1};
|
|
489
|
-
color: ${e=>e.theme.colors.primary};
|
|
490
|
-
.select-value-container {
|
|
491
|
-
.auto-complete-single-select-field__input-container {
|
|
492
|
-
.auto-complete-single-select-field__input {
|
|
493
|
-
text-align: left;
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
.grouped-single-select-field__input-container {
|
|
497
|
-
.grouped-single-select-field__input {
|
|
498
|
-
text-align: left;
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
`,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
|
-
`,on=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
|
-
`,Pe=i(on)`
|
|
524
|
-
padding: 2px ${t.Space.sp2};
|
|
525
|
-
`,At=t.appLocale.getLocalizedStrings().expenseAutomation.accountRecon.review.header,dt=[{key:"date",value:At.date,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),loaderWidth:120},{key:"payee",value:At.payee,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),loaderWidth:212},{key:"memo",value:At.memo,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),loaderWidth:192},{key:"direction",value:At.direction,sortOrder:"ascending",width:new t.ResponsiveSized(15,15),loaderWidth:84},{key:"match",value:At.match,sortOrder:"ascending",width:new t.ResponsiveSized(15,15),loaderWidth:152},{key:"amount",value:At.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(dt));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"?_e.css`
|
|
560
|
-
padding-top: 2px;
|
|
561
|
-
`:_e.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
|
-
`,Qe="accountReconReviewTableSection",{dateFormat:Qr,expenseAutomation:ea,common:rt}=t.appLocale.getLocalizedStrings(),{visual:to}=Qr,{accountRecon:ye}=ea,no=e=>[{label:ye.review.formLabels.allBankAccounts,options:e.map(s=>({label:s.accountName,value:s.accountId}))}],so=e=>[{label:ye.review.formLabels.allCreditCards,options:e.map(s=>({label:s.accountName,value:s.accountId}))}],os=e=>`${Qe}_${e}_form`,ve=(e,s)=>`${Qe}.${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:j,saveFetchById:y,reviewTabSelectedVendorByTransactionId:S,refreshStatus:f,updateLocalData:E,onColumnSortConfigChanged:g,onSaveReconciliation:w,onSaveReconciliationReview:O,onReconMatchedTransactionClick:$,bankAccounts:B,creditCards:v}=e,{transactionsToReview:C}=a,I=m.useRef(null),[L,U]=m.useState(null),T=_=>{const F=C[_],G=W.isReviewTransactionBillPaymentType(F),J=W.isReviewTransactionExpenseType(F),N=W.isReviewTransactionCreditCardPaymentType(F),ne=W.isReviewTransactionBankTransferType(F),Se=W.isReviewTransactionDepositType(F),Z=W.isReviewTransactionCreditCardCreditType(F),Q=F.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return F.transactionId===L?J||N||ne||Se||Z?275+(Q?25:0):G?185+F.recommendedAction.recommendedTransactions.length*40+(Q?25:0):146:72},K=m.useMemo(()=>({onColumnSortConfigChanged:g,sortConfig:{sortKey:s,sortOrder:l}}),[g,s,l]);if(m.useEffect(()=>{U(C[0]?.transactionId??null),I.current?.resetAfterIndex(0)},[s,l]),m.useEffect(()=>{I.current?.resetAfterIndex(0)},[L]),m.useEffect(()=>{I.current?.resetAfterIndex(0)},[C.length]),m.useEffect(()=>{f.fetchState==="Completed"&&I.current?.resetAfterIndex(0)},[f]),C.length===0){const _=Me("reconciliation",void 0,d).tabs.find(F=>F.id==="review")?.allDoneText;return n.jsxRuntimeExports.jsx(Ea,{children:n.jsxRuntimeExports.jsx(pt,{tab:"reconciliation",title:_?.title??rt.strings.empty,subTitle:_?.subTitle??rt.strings.empty})})}return n.jsxRuntimeExports.jsx(la,{children:n.jsxRuntimeExports.jsx(oo.Provider,{value:K,children:n.jsxRuntimeExports.jsx(n.AutoSizer,{children:({height:_,width:F})=>n.jsxRuntimeExports.jsx(n.VariableSizeList,{width:F,height:_,innerElementType:io,ref:I,itemCount:C.length,itemSize:T,itemKey:G=>C[G].transactionId,overscanCount:bo.OVERSCAN_COUNT,itemData:{transactionsList:C,expandedRowId:L,allAccountList:u,classList:o,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:x,localData:c,entitySearchAutoCompleteData:h,entitySearchAutoCompleteActions:p,excludeFetchById:j,saveFetchById:y,reviewTabSelectedVendorByTransactionId:S,bankAccounts:B,creditCards:v,updateLocalData:E,setExpandedRowId:U,onSaveReconciliation:w,onSaveReconciliationReview:O,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:j,entitySearchAutoCompleteData:y,onSaveReconciliation:S,onSaveReconciliationReview:f,onReconMatchedTransactionClick:E,excludeFetchById:g,saveFetchById:w,reviewTabSelectedVendorByTransactionId:O,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:j,onSaveReconciliation:S,onSaveReconciliationReview:f,onReconMatchedTransactionClick:E,excludeFetchById:g,saveFetchById:w,selectedVendor:O[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:j,creditCards:y,setExpandedRowId:S,updateLocalData:f,onSaveReconciliation:E,onSaveReconciliationReview:g,onReconMatchedTransactionClick:w})=>{const O=s===e.transactionId,$=t.useWindowSizeContext(),B=c[e.transactionId],v=e.recommendedAction.action==="record_bill_payment",C=e.recommendedAction.action==="record_expense",I=W.isReviewTransactionCreditCardCreditType(e),L=p.find(K=>K.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),U=K=>K.recommendedAction.recommendedTransactions.length>0&&K.recommendedAction.recommendedTransactions[0].merchantName!=null?K.recommendedAction.recommendedTransactions[0].merchantName:rt.strings.hyphen,T=e.recommendedAction.recommendedTransactions[0]?.merchantName;return n.jsxRuntimeExports.jsxs(ia,{isExpanded:O,children:[n.jsxRuntimeExports.jsxs(ra,{isExpanded:O,onClick:()=>S(e.transactionId),"data-testid":t.generateDataTestId("account-reconciliation-review-row",e.transactionId),children:[n.jsxRuntimeExports.jsx(Dt,{windowSize:$,responsiveWidth:dt[0].width,children:n.jsxRuntimeExports.jsx(Ot,{children:e.transactionDate.format(to.MMMDCommaYYYYformat)})}),n.jsxRuntimeExports.jsx(Dt,{windowSize:$,responsiveWidth:dt[1].width,children:n.jsxRuntimeExports.jsx(Ot,{children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"},text:U(e)})})}),n.jsxRuntimeExports.jsx(Dt,{windowSize:$,responsiveWidth:dt[2].width,children:n.jsxRuntimeExports.jsx(Ot,{children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),n.jsxRuntimeExports.jsx(Dt,{windowSize:$,responsiveWidth:dt[3].width,children:n.jsxRuntimeExports.jsx(Ot,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),n.jsxRuntimeExports.jsxs(Dt,{windowSize:$,responsiveWidth:dt[4].width,children:[n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:v,children:n.jsxRuntimeExports.jsx(va,{children:n.jsxRuntimeExports.jsx(ba,{children:ye.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:!v,children:n.jsxRuntimeExports.jsx(Ot,{children:L!=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:L.accountName})]}):rt.strings.hyphen})})]}),n.jsxRuntimeExports.jsx(Dt,{windowSize:$,isLastColumn:!0,responsiveWidth:dt[5].width,children:n.jsxRuntimeExports.jsx(Ot,{children:t.amountValueToString("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),n.jsxRuntimeExports.jsxs(t.ControlledComponent,{controller:O&&B!=null,children:[n.jsxRuntimeExports.jsx(oa,{onSaveReconciliation:E,onSaveReconciliationReview:g,updateLocalData:f,saveFetchById:d,excludeFetchById:x,localData:B,classListNestedAccountHierarchy:o,allAccountList:p,classList:u,transaction:e,accountListNestedAccountHierarchy:l,entitySearchAutoCompleteActions:a,entitySearchAutoCompleteData:r,selectedVendor:h,bankAccounts:j,creditCards:y,onReconMatchedTransactionClick:w}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:(v||C||I)&&T!=null,children:n.jsxRuntimeExports.jsx(Ia,{children:n.jsxRuntimeExports.jsxs(ka,{children:[ye.review.bankDetail,rt.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:j,updateLocalData:y,onSaveReconciliation:S,onSaveReconciliationReview:f,onReconMatchedTransactionClick:E})=>{const g=n.useTheme(),[w,O]=m.useState(!o.vendor?.id),[$,B]=m.useState(!o.customer?.id),[v,C]=m.useState(o.categoryId==null),[I,L]=m.useState(o.classId==null),[U,T]=m.useState(o.bankAccountId==null),[K,_]=m.useState(o.creditCardId==null),[F,G]=m.useState(!o.memo),J=W.isReviewTransactionBillPaymentType(e),N=W.isReviewTransactionExpenseType(e),ne=W.isReviewTransactionBankTransferType(e),Se=W.isReviewTransactionCreditCardPaymentType(e),Z=W.isReviewTransactionDepositType(e),Q=W.isReviewTransactionCreditCardCreditType(e),ae=m.useMemo(()=>{if(!N&&!Q)return t.getGroupedAccountOptions(s);if(d!=null&&d.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return t.getGroupedAccountOptions(s,d?.recommendations);const R=a.find(fe=>fe.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),re=R!=null?{...R,reason:ye.review.zeniGptRecommendation,min:0,max:0}:void 0;return t.getGroupedAccountOptions(s,[{account:re}])},[N,Q,d,e.recommendedAction.recommendedTransactions,a,s]),z=m.useMemo(()=>{if(!N&&!Q)return t.getGroupedClassOptions(u);if(d!=null&&d.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return t.getGroupedClassOptions(u,d?.recommendations);const R=p.find(fe=>fe.classId===e.recommendedAction.recommendedTransactions[0]?.classId),re=R!=null?{...R,reason:ye.review.zeniGptRecommendation,min:0,max:0}:void 0;return t.getGroupedClassOptions(u,[{class:re}])},[N,Q,d,e.recommendedAction.recommendedTransactions,p,u]),A=n.useForm({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:m.useMemo(()=>is(e,o,ae,a,z,h,j,c),[e,o,z,a,ae,h,j,c]),values:m.useMemo(()=>is(e,o,ae,a,z,h,j,c),[e,o,z,a,ae,h,j,c])}),M=async(R,re)=>{R.includes("memo")||y(rs(re,e,c,a),e.transactionId,R.includes("vendor"))};m.useEffect(()=>{const R=A.watch((re,{name:fe})=>{fe!=null&&re!=null&&n.defer(()=>M(fe,re))});return()=>{R.unsubscribe()}});const Y=m.useCallback(R=>{if(N||Z||Q){if((N||Q)&&o.vendor==null){O(!1),A.setError(ve(e.transactionId,"vendor"),{type:"required"});return}if(Z&&o.customer==null){B(!1),A.setError(ve(e.transactionId,"customer"),{type:"required"});return}if(o.categoryId==null){C(!1),A.setError(ve(e.transactionId,"category"),{type:"required"});return}}y(rs(R,e,c,a),e.transactionId,!1),f(e.transactionId)},[N,Q,Z,y,e,c,a,f,o.categoryId,o.vendor,o.customer]),V=A.watch(ve(e.transactionId,"vendor")),b=A.watch(ve(e.transactionId,"customer")),P=m.useRef(),ie=m.useMemo(()=>N||Q?"vendor":Z?"customer":null,[N,Q,Z]),D=(R,re)=>{ie!=null&&l.onAutoCompleteInputChange?.(R,ie),P.current=re};m.useEffect(()=>{c.entityAutoCompleteView.fetchState==="Completed"&&((N||Q)&&P.current?.(t.getVendorOptions(c.entityAutoCompleteView)),Z&&P.current?.(t.getCustomerOptions(c.entityAutoCompleteView)))},[c.entityAutoCompleteView,Z,N,Q]);const ee=R=>p.filter(fe=>fe.classId===R)[0]?.accountingClassNumber??void 0,H=R=>a.filter(fe=>fe.qboId===R)[0]?.qboId,q=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]),je=()=>{C(!1)},Ee=()=>{T(!1)},ce=()=>{_(!1)};return m.useEffect(()=>{v===!1&&o.categoryId==null&&A.setFocus(ve(e.transactionId,"category"))},[v]),m.useEffect(()=>{I===!1&&o.classId==null&&A.setFocus(ve(e.transactionId,"class"))},[I]),m.useEffect(()=>{w===!1&&o.vendor==null&&A.setFocus(ve(e.transactionId,"vendor"))},[w]),m.useEffect(()=>{$===!1&&o.customer==null&&A.setFocus(ve(e.transactionId,"customer"))},[$]),m.useEffect(()=>{U===!1&&o.bankAccountId==null&&A.setFocus(ve(e.transactionId,"bankAccount"))},[U]),m.useEffect(()=>{K===!1&&o.creditCardId==null&&A.setFocus(ve(e.transactionId,"creditCard"))},[K]),n.jsxRuntimeExports.jsx(n.FormProvider,{...A,children:n.jsxRuntimeExports.jsx("form",{onSubmit:A.handleSubmit(Y),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:J?ye.review.formLabels.match:ye.review.formLabels.categorize},radioField:{name:ve(e.transactionId,"match_radio"),id:J?"match":"categorize",value:J?"match":"categorize",checked:!0,style:{width:t.Space.sp3,height:t.Space.sp3,padding:"2px"}},style:{width:"auto"}})]}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:!J,children:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(as,{}),q.map(R=>n.jsxRuntimeExports.jsx(t.LabeledRadioField,{label:{label:ye.review.formLabels[R]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:ve(e.transactionId,"recommendedActionType"),id:R,value:R,style:{width:t.Space.sp3,height:t.Space.sp3,padding:"2px"}}},R))]})})]}),n.jsxRuntimeExports.jsxs(xa,{children:[n.jsxRuntimeExports.jsx(t.Button,{variant:"secondary",size:"small",label:ye.review.formLabels.exclude,loading:r[e.transactionId]?.fetchState==="In-Progress","data-testid":t.generateDataTestId("account-reconciliation-review-exclude-button",e.transactionId),style:{width:t.Space.sp10},reverseSpinnerColor:!1,onClick:()=>{S({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:rt.footer.save,style:{width:t.Space.sp10},variant:"primary",size:"small",type:"submit",loading:x[e.transactionId]?.fetchState==="In-Progress"})]})]}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:N||Z||Q,children:n.jsxRuntimeExports.jsxs(un,{children:[n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:N||Q,children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.vendor==null&&w===!1&&O(!0)},children:n.jsxRuntimeExports.jsx(X,{style:{flex:1,padding:t.sp[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",style:{padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(se,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:rt.texts.vendor}),n.jsxRuntimeExports.jsx(oe,{style:{gap:t.sp[3]},className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:w===!0?n.jsxRuntimeExports.jsxs(de,{onClick:R=>{R.stopPropagation(),O(!1)},"data-testid":t.generateDataTestId("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:g.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(wt,{}),ye.review.formLabels.addVendor]}):n.jsxRuntimeExports.jsx(t.AutoCompleteSingleSelectField,{name:ve(e.transactionId,"vendor"),allowEmpty:!1,placeholder:ye.review.formLabels.addVendor,valueToId:R=>R,defaultValue:{selectedOption:V?.selectedOption,defaultOptions:V?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:t.Space.sp4})},registerOptions:{required:!0,validate:R=>!!R.selectedOption},loadOptions:D})})})]})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:Z,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(ot,{className:"hover-background",style:{padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(se,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:rt.texts.customer}),n.jsxRuntimeExports.jsx(oe,{style:{gap:t.sp[3]},className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:$===!0?n.jsxRuntimeExports.jsxs(de,{onClick:R=>{R.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(wt,{}),ye.review.formLabels.addCustomer]}):n.jsxRuntimeExports.jsx(t.AutoCompleteSingleSelectField,{name:ve(e.transactionId,"customer"),allowEmpty:!1,placeholder:ye.review.formLabels.addCustomer,valueToId:R=>R,defaultValue:{selectedOption:b?.selectedOption,defaultOptions:b?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:t.Space.sp4})},registerOptions:{required:!0,validate:R=>!!R.selectedOption},loadOptions:D})})})]})})})}),n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.categoryId==null&&v===!1&&C(!0)},children:n.jsxRuntimeExports.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(se,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:rt.texts.category}),n.jsxRuntimeExports.jsx(oe,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:v===!0?n.jsxRuntimeExports.jsxs(de,{onClick:R=>{R.stopPropagation(),je()},"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(wt,{}),ye.review.formLabels.addCategory]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:ve(e.transactionId,"category"),placeholder:ye.review.formLabels.addCategory,valueToId:R=>H(R),defaultValue:{allOptions:ae,selectedOption:a.find(R=>R.accountId===o.categoryId)?.qboId},registerOptions:{required:!0,validate:R=>!!R.selectedOption},customStyleConfig:Xt})})})]})})}),n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.classId==null&&I===!1&&L(!0)},children:n.jsxRuntimeExports.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(se,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:rt.texts.class}),n.jsxRuntimeExports.jsx(oe,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:I===!0?n.jsxRuntimeExports.jsxs(de,{onClick:R=>{R.stopPropagation(),L(!1)},"data-testid":t.generateDataTestId("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:g.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(wt,{}),ye.review.formLabels.addClass]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:ve(e.transactionId,"class"),placeholder:ye.review.formLabels.addClass,valueToId:R=>ee(R),defaultValue:{allOptions:z,selectedOption:o.classId},registerOptions:{required:!0,validate:R=>!!R.selectedOption},customStyleConfig:Xt})})})]})})})]})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:J,children:n.jsxRuntimeExports.jsxs(ja,{children:[n.jsxRuntimeExports.jsxs(fa,{children:[n.jsxRuntimeExports.jsx("span",{className:"matched-text",children:`${ye.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),ye.review.matchesFoundFullInfo]}),n.jsxRuntimeExports.jsx(Sa,{children:e.recommendedAction.recommendedTransactions.map(R=>R.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:R.date.format(to.MMMDCommaYYYYformat)}),n.jsxRuntimeExports.jsx(t.StandardRegular,{children:R.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:ve(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:R.bookTransactionId,value:R.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",R.bookTransactionId),onClick:()=>{R.bookTransactionId!=null&&E(R.bookTransactionId)},children:[n.jsxRuntimeExports.jsx(Ca,{children:t.amountValueToString("0,0.00",R.amount.amount,R.amount.currencySymbol)}),n.jsxRuntimeExports.jsx(as,{})]})]},R.bookTransactionId):null)})]})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:ne,children:n.jsxRuntimeExports.jsx(un,{children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.bankAccountId==null&&U===!1&&T(!0)},children:n.jsxRuntimeExports.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(se,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:ye.review.formLabels.transferTo}),n.jsxRuntimeExports.jsx(oe,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:U===!0?n.jsxRuntimeExports.jsxs(de,{onClick:R=>{R.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(wt,{}),ye.review.formLabels.selectAccount]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:ve(e.transactionId,"bankAccount"),placeholder:ye.review.formLabels.selectAccount,defaultValue:{allOptions:no(h),selectedOption:o.bankAccountId},registerOptions:{required:!0,validate:R=>!!R.selectedOption},customStyleConfig:Xt})})})]})})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:Se,children:n.jsxRuntimeExports.jsx(un,{children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.creditCardId==null&&K===!1&&_(!0)},children:n.jsxRuntimeExports.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(se,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:ye.review.formLabels.creditCard}),n.jsxRuntimeExports.jsx(oe,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:K===!0?n.jsxRuntimeExports.jsxs(de,{onClick:R=>{R.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(wt,{}),ye.review.formLabels.selectCard]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:ve(e.transactionId,"creditCard"),placeholder:ye.review.formLabels.selectCard,defaultValue:{allOptions:so(j),selectedOption:o.creditCardId},registerOptions:{required:!0,validate:R=>!!R.selectedOption},customStyleConfig:Xt})})})]})})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:!J,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(ot,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(se,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:ye.review.header.memo}),n.jsxRuntimeExports.jsx(oe,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:F===!0?n.jsxRuntimeExports.jsxs(de,{onClick:R=>{R.stopPropagation(),G(!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(wt,{}),ye.review.formLabels.addMemo]}):n.jsxRuntimeExports.jsx(t.TextField,{name:ve(e.transactionId,"memo"),placeholder:ye.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},Xt={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{[Qe]:{[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[Qe][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[Qe][s.transactionId].category.selectedOption)?.accountId??e[Qe][s.transactionId].category.selectedOption,classId:e[Qe][s.transactionId].class.selectedOption,memo:e[Qe][s.transactionId].memo,matchedTransactionId:e[Qe][s.transactionId].matchedTransaction,vendor:o,bankAccountId:e[Qe][s.transactionId].bankAccount.selectedOption,creditCardId:e[Qe][s.transactionId].creditCard.selectedOption,customer:c}},Ot=i(t.StandardRegular)`
|
|
579
|
-
display: flex;
|
|
580
|
-
align-items: center;
|
|
581
|
-
column-gap: ${t.Space.sp1};
|
|
582
|
-
`,Dt=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
|
-
`,wt=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
|
-
`,ka=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
|
-
`,Ta=({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:j})=>{const{accountReconciliationsByAccountID:y,reconciliationTabsState:{reconcile:{uiState:{sortKey:S,sortOrder:f}}},selectedReconAccount:E}=e,g=y[l],{transactionFetchState:w}=E??{};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:dt.map(O=>n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:O.loaderWidth,height:18},O.key))}),n.jsxRuntimeExports.jsxs(Aa,{children:[...Array(3).fill(0).map((O,$)=>n.jsxRuntimeExports.jsx(La,{children:dt.map(B=>n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:B.loaderWidth,height:t.sp[4]},B.key))},`${$}_${O}`))]})]}):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:S,sortOrder:f},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:j,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 j=s[d],y=Da({account:j,numOfBalances:0,title:j.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(),j=e.fetchStatus.fetchState==="Not-Started"||e.fetchStatus.fetchState==="In-Progress",y=S=>S.filter(f=>!x.includes(f));if(j)[...Array(3)].forEach((S,f)=>{r.push(Oa({title:`${f}+${h}`,config:s}))});else{const S=y(e.accountReconciliationBySectionID.assets.accountIDs),f=ls({section:{...e.accountReconciliationBySectionID.assets,accountIDs:S},allAccountReconciliations:e.accountReconciliationsByAccountID,title:d.headers.section.assets.title,subTitle:d.headers.section.assets.subTitle,isLastNode:!1,isTitleRowRequired:!1,config:s});if(r.push(f),e.accountReconciliationBySectionID.liabilities.accountIDs.length>0){const E=y(e.accountReconciliationBySectionID.liabilities.accountIDs),g=ls({section:{...e.accountReconciliationBySectionID.liabilities,accountIDs:E},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,onScroll:l,onReload:a,onReviewClicked:p,setOpenDrawerClicked:u,onFetchLinkTokenClick:o,onEstablishConnectionClick:c,onAddStatementClick:r}){const[x,d]=m.useState(void 0),[h,j]=m.useState(void 0),y=e.plaidConnectionDetails.link_account_no_microdeposit,S=e.plaidConnectionDetails.update_account,f=h==="update_account"?S:y,[E,g]=m.useState(f.linkToken??null),[w,O]=m.useState(!1),{useDynamicConfig:$}=t.useZeniFeatureContext(),{configValue:B}=$(t.DynamicConfigNames.accountReconGLAccountsConfig),v=m.useCallback(H=>{d(H),j("link_account_no_microdeposit")},[]),C=m.useCallback(H=>{const q=T.current.accountReconciliationsByAccountID[H]?.paymentAccountId;d(H),j("update_account"),o("update_account",q)},[]),I=m.useCallback(H=>{u(H)},[]),L=m.useRef(x),U=m.useRef(h),T=m.useRef(e);m.useEffect(()=>{L.current=x},[x]),m.useEffect(()=>{U.current=h},[h]),m.useEffect(()=>{T.current=e},[e]);const K=m.useCallback(H=>{c(H,L.current??"",U.current),d(void 0),j(void 0),O(!1)},[c]),_=m.useCallback((H,q)=>{H!=null&&console.log("Plaid Connection Error",H,q),d(void 0),j(void 0),O(!1)},[]),{open:F,ready:G}=wo.usePlaidLink({token:E,onSuccess:K,onExit:_});m.useEffect(()=>{(W.zeniDate(new Date().toISOString()).isAfter(f.expiration)||f.linkToken==null)&&f.fetchStatus.fetchState==="Not-Started"&&o("link_account_no_microdeposit")},[f.fetchStatus.fetchState]),m.useEffect(()=>{!w&&h!=null&&f.linkToken===E&&f.fetchStatus.fetchState==="Completed"&&G&&O(!0)},[G,E,f.fetchStatus.fetchState,f.linkToken,h,w]),m.useEffect(()=>{f.fetchStatus.fetchState==="Completed"&&f.linkToken!=null&&f.linkToken!==E&&g(f.linkToken)},[f.fetchStatus.fetchState,f.linkToken,E]),m.useEffect(()=>{w&&F()},[w,F]);const[J,N]=m.useState(void 0),[ne,Se]=m.useState(void 0),[Z,Q]=m.useState("assets"),ae=W.zeniDate("2025-03-31"),z=1,A="account_reconciliation",M=t.useWindowSizeContext(),Y=n.useTheme(),V=!0,b=Array.isArray(B?.[s])?B[s]:[],P=e.accountReconciliationBySectionID.assets.accountIDs.filter(H=>!b.includes(H)).length,ie=e.accountReconciliationBySectionID.liabilities.accountIDs.length>0,D=Ba(P,ie),ee=m.useCallback(H=>{const q=H.scrollTop>=D?"liabilities":"assets";q!==Z&&Q(q),l?.(H)},[D,Z,l]);return m.useEffect(()=>{const H={reportId:A,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:ae,firstMonthOfFY:z,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,dataAvailable:void 0,accountReconciliationConfig:{selectedDrawerAccountId:e.selectedDrawerAccountId,onReviewClicked:p,onConnectClicked:v,onReconnectClicked:C,onOpenDrawerClicked:I,onStatementAddClicked:r}};if(J==null||!n.isEqual(ne,e)){const q=Ma(e,H,B,s,V,Z);Se(e),N(q)}else{const q=Na(J,e,H,V,Z);N(q)}},[e,Z]),e.fetchStatus.fetchState==="Error"?n.jsxRuntimeExports.jsx(Pa,{children:n.jsxRuntimeExports.jsx(he.ReloadContainer,{onReload:a,message:Ha.errorMessage.somethingWentWrong})}):n.jsxRuntimeExports.jsx(Fa,{windowSize:M,children:J!=null?n.jsxRuntimeExports.jsx(za,{windowSize:M,children:n.jsxRuntimeExports.jsx(Ae.CollapsableReportTable,{backgroundColor:new n.Color(Y.colors.grey4),rootNodes:J,type:"name+balances_actual",compareMode:"compare_mode_percent",isSticky:{isStickyHeader:V,isStickyName:V},treeNodePadding:{left:Dn.contentPaddingLeft.value(M),right:Dn.contentPaddingRight.value(M)},nodeOpenStatus:{},scrollPosition:e.reconListUIState.scrollPosition,onCompareModeChanged:()=>{},onScroll:ee})}):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:j,onAddStatementClick:y,onReconReviewTabColumnSortConfigChanged:S,onSaveReconciliation:f,onSaveReconciliationReview:E,setOpenDrawerClicked:g,onReconMatchedTransactionClick:w,onReconListPageScroll:O}){return a.selectedAccountId==null?n.jsxRuntimeExports.jsx(Wa,{companyId:p,onScroll:O,reconciliation:a,onReload:x,onReviewClicked:d,onFetchLinkTokenClick:h,onEstablishConnectionClick:j,setOpenDrawerClicked:g,onAddStatementClick:y}):n.jsxRuntimeExports.jsx(Ta,{currentFooterFormId:e,setCurrentFooterFormId:r,onUpdateReconcileTabLocalData:c,onReconTabColumnSortConfigChanged:u,reconciliation:a,updateReviewTabLocalData:o,entitySearchAutoCompleteActions:l,onReconReviewTabColumnSortConfigChanged:S,entitySearchAutoCompleteData:s,selectedAccountId:a.selectedAccountId,onSaveReconciliation:f,onSaveReconciliationReview:E,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:Qt,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:`${Qt.loading}`,balances:p,config:s})),[...Array(10)].forEach((x,d)=>{o.push(qn.mapLoadingInProgressToTreeNode({title:`${d}+${Qt.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 j=Ae.mapFluxBalancesByMonthToBalances(h.balancesByMonth);o.push(Ga({section:{sectionId:d,reportId:"flux_analysis_operating_expense",balances:j,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:Qt.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}+${Qt.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,j]=m.useState(null),[y,S]=m.useState(null),[f,E]=m.useState(null),g=W.reduceAllFetchState([s.sections.generalExpense.fetchStatus,s.sections.reimbursement.fetchStatus]).fetchState,[w,O]=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)},C=()=>Object.keys(s.uiState.collapsableStatus).reduce((_,F)=>(_[F]=s.uiState.collapsableStatus[F],_),{}),I=m.useCallback(_=>{const F=!(s.uiState.collapsableStatus[_]??!0);o({...s.uiState.collapsableStatus,[_]:F})},[s.uiState.collapsableStatus,o]),L=m.useCallback((_,F)=>{let G=s.reviewOperatingExpensesIds;const J=[];let N=s.selectedSectionIds;const ne=s.sections[_].vendors;J.push(...ne.map(Z=>Z.fluxAnalysisEntityId));let Se=Ae.FLUX_MAX_SELECTION_LIMIT-G.length;F?(J.forEach(Z=>{!G.includes(Z)&&Se>0&&(G=[...G,Z],Se--)}),N=[...N,_]):(G=G.filter(Z=>!J.includes(Z)),N=N.filter(Z=>Z!==_)),a(G),p(N)},[s.reviewOperatingExpensesIds,s.selectedSectionIds,s.sections,a,p]),U=m.useCallback(_=>{const F=s.uiState.collapsableStatus[_]===!1;_==="generalExpense"&&!F&&s.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&c(s.uiState.paginationInfoByGroup.reimbursement.pageToken),I(_)},[s.uiState.collapsableStatus,s.sections.reimbursement.fetchStatus.fetchState,s.uiState.paginationInfoByGroup.reimbursement.pageToken,c,I]),T=s.sections.generalExpense.vendors.length+s.sections.reimbursement.vendors.length,K=_=>_<T;return m.useEffect(()=>{const _={reportId:"flux_analysis_operating_expense",mode:"none",displayOrder:"ascending_date",reportFormat:"summary",firstMonthOfFY:1,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,fluxAnalysisConfig:{sortOrder:s.uiState.sortOrder,sortKey:s.uiState.sortKey,sortOrSearchInProgress:!1,reviewOpExIds:s.reviewOperatingExpensesIds,reviewSectionIds:s.selectedSectionIds,fetchStatus:s.fetchStatus.fetchState,setIsSortApplied:O,onSectionRowClick:U,updateNodeCollapsableStatus:I,updateOperatingExpensesIdsForReview:a,handleRedirectToVendorDetailPage:l,onSectionCheckboxClick:L,onSortOrderChanged:u}};if(h==null||!n.isEqual(y,s)){const F=Za(s,_,!0);S(s),j(F)}else{const F=Qa(h,_,s,!0);j(F)}},[s,y,l,L,U,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:C(),compareMode:"compare_mode_amount",infiniteLoadingProps:{isItemLoaded:K,itemCount:T,loadMoreItems:v},variableNodeHeightTree:{prevFetchState:$??"Not-Started",fetchState:s.fetchStatus.fetchState,isSortApplied:w,setIsSortApplied:O,reducedFetchState:W.reduceAllFetchState([s.sections.generalExpense.fetchStatus,s.sections.reimbursement.fetchStatus]).fetchState,prevRefreshFetchState:B??"Not-Started",refreshFetchState:s.refreshStatus.fetchState},hoveredParentIdProps:{hoveredParentId:f,setHoveredParentId:E}}):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:j,reviewOperatingExpensesIds:y,uiState:S}=s,f=m.useRef(null),E=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(()=>{E.current&&f?.current?.scrollLeft!=null&&S.scrollPosition?.scrollLeft!==f.current.scrollLeft&&S.scrollPosition!=null&&r({scrollPosition:{scrollTop:S.scrollPosition?.scrollTop,scrollLeft:f.current.scrollLeft}})},[S.scrollPosition?.scrollLeft,f.current?.scrollLeft,S.scrollPosition,r]),m.useEffect(()=>{u(y.length>0?"expenseAutomationFluxPage":"expenseAutomationPage")},[y,u]);const O=C=>{x(C)},$=C=>{d(e,C)},B=(C,I)=>{r({sortOrder:C,sortKey:I}),l(),h(e,null,!1)},v=()=>{const C=co(s.sections,y);a(y,C===!0?"review":"unreview",e,!0)};if(j.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 C=L=>{r({collapsableStatus:L})},I=L=>{h(e,L,!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:O,onSortOrderChanged:B,updateOperatingExpensesIdsForReview:o,updateNodeCollapsableStatus:C,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]),j=m.useMemo(()=>t.getGroupedAccountOptions(e.accruedExpensesAccountHierarchy,x,"Accounts"),[e.accruedExpensesAccountHierarchy,x]),y=m.useMemo(()=>gc(e,d,h,j),[e,d,h,j]),S=n.useForm({mode:"all",reValidateMode:"onBlur",defaultValues:y,values:y,resetOptions:{keepDefaultValues:!0}}),f=S.handleSubmit(g=>{l(g)}),E=async g=>{p(g)};return m.useEffect(()=>{const g=S.watch(w=>{w!=null&&n.defer(()=>E(w))});return()=>{g.unsubscribe()}}),m.useEffect(()=>(u(()=>S.reset),a(!0),()=>{o("expenseAutomationPage"),a(!1)}),[]),m.useEffect(()=>{const{selectedPrepaidExpensesAccountIds:g,previousPrepaidExpensesAccount:w,selectedFixedAssetsAccountIds:O,previousFixedAssetsAccount:$,selectedAccruedExpensesAccountIds:B,previousAccruedExpensesAccount:v}=e.accountSettingsLocalData,C=t.compareCurrentAndPreviousList(g,w)||t.compareCurrentAndPreviousList(O,$)||t.compareCurrentAndPreviousList(B,v);C===!0&&s!="expenseAutomationJEAccountSettingsPage"?o("expenseAutomationJEAccountSettingsPage"):C===!1&&s!=="expenseAutomationPage"&&o("expenseAutomationPage")},[e,s,o]),n.jsxRuntimeExports.jsx(hc,{children:n.jsxRuntimeExports.jsx(n.FormProvider,{...S,children:n.jsxRuntimeExports.jsx("form",{id:mc(pc),onSubmit:f,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:en,review:jc,ignore:fc,strings:{hyphen:lt},texts:tn},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:pe.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(se,{children:tn.vendor}),n.jsxRuntimeExports.jsxs(oe,{style:{gap:t.sp[2]},children:[e.vendor.logo!=null?n.jsxRuntimeExports.jsx(t.EntityLogoAvatar,{photoUrl:e.vendor.logo.href,styles:{width:t.sp[4],height:t.sp[4]}}):n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:e.vendor.name}),n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:e.vendor.name!=null?n.jsxRuntimeExports.jsx(Pe,{children:e.vendor.name}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.vendor.name??lt})})]})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(se,{children:ht.scheduleHeaders.scheduleCategory}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:e.baseTransaction.account.accountName!=null?n.jsxRuntimeExports.jsx(Pe,{children:e.baseTransaction.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.baseTransaction.account.accountName??lt})})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:pe.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(se,{children:ht.scheduleHeaders.startMonth}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.startDate?.format(yc.visual.MMMCommaYYYYFormat)??lt})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:pe.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(se,{children:ht.scheduleHeaders.period}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.period!=null?`${e.period} ${e.period===1?ds.slice(0,-1):ds}`:lt})})]}),n.jsxRuntimeExports.jsxs(X,{style:{alignItems:"flex-end",width:pe.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(se,{children:tn.totalAmount}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:n.jsxRuntimeExports.jsx(Pe,{children:t.amountToString("0,0.[00]",W.toAmount(e.baseTransaction.amount.amount,en.currencyCode,en.currencySymbol))??lt}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:t.amountToString("0,0.[00]",W.toAmount(e.baseTransaction.amount.amount,en.currencyCode,en.currencySymbol))??lt})})})]})]}),n.jsxRuntimeExports.jsxs(Pn,{children:[n.jsxRuntimeExports.jsxs(X,{style:{width:pe.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(se,{children:tn.category}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Pe,{children:e.jeDebit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.jeDebit.account?.accountName??lt})})})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(se,{children:tn.classText}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.accountingClass?.className!=null?n.jsxRuntimeExports.jsx(Pe,{children:e.jeDebit.accountingClass.className}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.jeDebit.accountingClass?.className??lt})})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:pe.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(se,{children:ht.scheduleHeaders.type}),n.jsxRuntimeExports.jsx(oe,{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:pe.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(se,{children:ht.scheduleHeaders.accumulatedCategory}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:e.jeCredit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Pe,{children:e.jeCredit.account?.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.jeCredit.account?.accountName??lt})})})]}):null,e.jeScheduleType!=="fixed_assets"?n.jsxRuntimeExports.jsx(X,{style:{width:pe.COLUMN_FOUR}}):null,n.jsxRuntimeExports.jsx(X,{style:{width:pe.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:De},common:{currency:st,retry:vc,strings:{hyphen:Ne,empty:ps},texts:_t},dateFormat:ms}=t.appLocale.getLocalizedStrings(),{common:bc,timeframe:{month:xs}}=t.appLocale.getLocalizedStrings(),Je="jeSchedulePage",hs=e=>`${e}_form`,Vn=(e,s)=>`${e}.${s}`,gs=Vn(Je,"vendor"),js=Vn(Je,"scheduleExpenseCategory"),fs=Vn(Je,"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:j,onFormDataChange:y,onPostJESchedule:S})=>{const{updatedAccumulatedDepreciationCategoryID:f,updatedCategoryId:E,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"},O=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(b=>{const P=w[b];return!(c!=null&&P&&(P==="updatedAccumulatedDepreciationCategoryID"&&c.updatedAccumulatedDepreciationCategoryID==null||P==="updatedCategoryId"&&c.updatedCategoryId==null||P==="updatedVendor"&&(c.updatedVendor?.id==null||c.updatedVendor?.id===""||c.updatedVendor?.name==null||c.updatedVendor?.name==="")))}),L=async(b,P)=>{if(b!=null){const ie=P[Je],{scheduledJournalEntryID:D,vendor:ee}=ie;if(b.includes("vendor")){const H=ee?.defaultOptions.map(q=>q.value);if(ee?.selectedOption!=null&&H?.includes(ee.selectedOption)!==!0){const q=h.entityAutoCompleteView.vendor.find(je=>je.id===ee.selectedOption);q!=null&&$.setValue(`${Je}.vendor.defaultOptions`,[{label:q.name??bc.strings.empty,value:q.id}])}else ee?.selectedOption==null&&ee?.defaultOptions.length!==0&&$.setValue(`${Je}.vendor`,{selectedOption:void 0,defaultOptions:[]})}y(D,{...ie,vendor:ee})}};m.useEffect(()=>{const b=$.watch((P,{name:ie})=>{ie!=null&&P!=null&&n.defer(()=>L(ie,P))});return()=>{b.unsubscribe()}}),m.useEffect(()=>{h.entityAutoCompleteView.fetchState==="Completed"&&O.current?.(t.getVendorOptions(h.entityAutoCompleteView))},[h.entityAutoCompleteView.fetchState]);const U=$.handleSubmit(()=>{S(o.scheduledJournalEntry.scheduledJournalEntryID,o.jeScheduleTransactionKey)}),T=b=>s.filter(ie=>ie.qboId===b)[0]?.qboId,K=b=>u.filter(ie=>ie.qboId===b)[0]?.qboId,_=b=>[x.expense?.qboId,x.income?.qboId].includes(b),F=$.watch("jeSchedulePage.vendor"),G=(b,P)=>{d.onAutoCompleteInputChange?.(b,"vendor"),O.current=P},J=o.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,N=o.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,ne=o.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,Se=o.vendor.name.split("(deleted)")[0]?.toString(),Z=o.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??ps,Q=o.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??ps,[ae,z]=m.useState(N===!0&&E==null),[A,M]=m.useState(ne===!0&&f==null),[Y,V]=m.useState(J&&(g?.id==null||g?.id==""));return m.useEffect(()=>{ae===!1&&c.updatedCategoryId==null&&$.setFocus(js),A===!1&&c.updatedAccumulatedDepreciationCategoryID==null&&$.setFocus(fs),Y===!1&&c.updatedVendor?.id==null&&$.setFocus(gs)},[ae,A,Y,c,$]),n.jsxRuntimeExports.jsx(n.FormProvider,{...$,children:n.jsxRuntimeExports.jsx("form",{style:{width:"100%"},id:hs(`${Je}_${o.jeScheduleId}`),onSubmit:U,children:n.jsxRuntimeExports.jsx(zn,{showBorder:I,onClick:b=>{o.jeScheduleType!=null&&o.jeScheduleId!=null&&j(b,o.jeScheduleId,o.jeScheduleTransactionKey,o.jeScheduleType)},"data-testid":t.generateDataTestId("je-schedule-resolve-component-schedule",`${Je}_${o.jeScheduleId}`),children:n.jsxRuntimeExports.jsxs(Fn,{children:[n.jsxRuntimeExports.jsxs(Wn,{children:[n.jsxRuntimeExports.jsxs(Nn,{children:[J===!0?n.jsxRuntimeExports.jsx(X,{style:{width:pe.COLUMN_ONE,padding:t.sp[0],justifyContent:"center"},showHoverEffect:J,forceHoverEffect:Y===!1&&(c?.updatedVendor?.id==null||c?.updatedVendor?.id==""),children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",style:{padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsxs(se,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:[_t.vendor,n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"top-start",title:n.jsxRuntimeExports.jsx(on,{children:De.tooltipText.missingVendor.replace("_deleted_vendor_",Se)}),children:n.jsxRuntimeExports.jsx(mn,{})})]}),n.jsxRuntimeExports.jsx(oe,{style:{gap:t.sp[3],marginLeft:-2},className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:Y===!0?n.jsxRuntimeExports.jsxs(de,{onClick:b=>{b.stopPropagation(),V(!1)},"data-testid":t.generateDataTestId("je-schedule-resolve-component-add-vendor-button",`${Je}_${o.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:t.sp[2],color:t.Colors.brandColorGoldDark,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(pn,{}),us]}):n.jsxRuntimeExports.jsx(t.AutoCompleteSingleSelectField,{name:gs,placeholder:us,valueToId:b=>b,defaultValue:{selectedOption:F?.selectedOption,defaultOptions:F?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:t.Space.sp4})},registerOptions:{required:!0,validate:b=>!!b.selectedOption},loadOptions:G})})})]})}):n.jsxRuntimeExports.jsxs(X,{style:{width:pe.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp0} ${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(se,{children:_t.vendor}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[o.vendor.logo?.href!=null?n.jsxRuntimeExports.jsx(t.EntityLogoAvatar,{photoUrl:o.vendor.logo.href,styles:{width:t.sp[4],height:t.sp[4]}}):n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:o.vendor.name}),n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.vendor.name!==null?n.jsxRuntimeExports.jsx(Pe,{children:o.vendor.name}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.vendor.name??Ne})})]})})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(se,{children:De.scheduleHeaders.scheduleCategory}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.baseTransaction.account.accountName!=null?n.jsxRuntimeExports.jsx(Pe,{children:o.baseTransaction.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.baseTransaction.account.accountName??Ne})})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:pe.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(se,{children:De.scheduleHeaders.startMonth}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.startDate?.format(ms.visual.MMMCommaYYYYFormat)??Ne})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:pe.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(se,{children:De.scheduleHeaders.period}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.period!=null?`${o.period} ${o.period===1?xs.slice(0,-1):xs}`:Ne})})]}),n.jsxRuntimeExports.jsxs(X,{style:{alignItems:"flex-end",width:pe.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(se,{children:_t.totalAmount}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:n.jsxRuntimeExports.jsx(Pe,{children:t.amountToString("0,0.[00]",W.toAmount(o.baseTransaction.amount.amount,st.currencyCode,st.currencySymbol))??Ne}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:t.amountToString("0,0.[00]",W.toAmount(o.baseTransaction.amount.amount,st.currencyCode,st.currencySymbol))??Ne})})})]})]}),n.jsxRuntimeExports.jsxs(Pn,{children:[N===!0?n.jsxRuntimeExports.jsx(X,{showHoverEffect:N===!0,forceHoverEffect:c?.updatedCategoryId==null&&ae===!1,style:{padding:"unset",justifyContent:"center",width:pe.COLUMN_ONE},children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",children:[n.jsxRuntimeExports.jsxs(se,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:[_t.category,N===!0?n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"top-start",title:n.jsxRuntimeExports.jsx(on,{children:De.tooltipText.missingCategory.replace("_deleted_category_",Z)}),children:n.jsxRuntimeExports.jsx(mn,{})}):null]}),n.jsxRuntimeExports.jsx(oe,{className:"item-value-container",style:{marginLeft:N===!0?-2:0},children:N===!0?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:ae===!0?n.jsxRuntimeExports.jsxs(de,{onClick:b=>{b.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",`${Je}_${o.jeScheduleId}`),children:[n.jsxRuntimeExports.jsx(pn,{}),De.addCategory]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,name:js,placeholder:De.addCategory,valueToId:b=>T(b),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:b=>!!b.selectedOption},disableCurrentOption:_,customStyleConfig:B})}):n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Pe,{children:o.jeDebit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.jeDebit.account?.accountName??Ne})})})]})}):n.jsxRuntimeExports.jsxs(X,{style:{width:pe.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(se,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:_t.category}),n.jsxRuntimeExports.jsx(oe,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Pe,{children:o.jeDebit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.jeDebit.account?.accountName??Ne})})})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(se,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:_t.classText}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.accountingClass?.className!=null?n.jsxRuntimeExports.jsx(Pe,{children:o.jeDebit.accountingClass.className}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.jeDebit.accountingClass?.className??Ne})})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:pe.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(se,{children:De.scheduleHeaders.type}),n.jsxRuntimeExports.jsx(oe,{className:"test",children:n.jsxRuntimeExports.jsx(de,{className:"highlight",style:{width:"unset"},children:n.jsxRuntimeExports.jsx(eo,{children:De.scheduleTypes[o.jeScheduleType??"prepaid_expenses"]})})})]}),o.jeScheduleType==="fixed_assets"?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:ne===!0?n.jsxRuntimeExports.jsx(X,{style:{width:pe.COLUMN_FOUR,padding:"unset",justifyContent:"center"},showHoverEffect:ne,forceHoverEffect:c.updatedAccumulatedDepreciationCategoryID==null&&A===!1,children:n.jsxRuntimeExports.jsxs(ot,{className:"hover-background",style:{padding:t.sp[2],paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsxs(se,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:[De.scheduleHeaders.accumulatedCategory,ne===!0?n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"top-end",title:n.jsxRuntimeExports.jsx(on,{children:De.tooltipText.missingDepCategory.replace("_deleted_dep_category_",Q)}),children:n.jsxRuntimeExports.jsx(mn,{})}):null]}),n.jsxRuntimeExports.jsx(oe,{className:"item-value-container",style:{marginLeft:ne===!0?-2:0},children:ne===!0?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:A===!0?n.jsxRuntimeExports.jsxs(de,{onClick:b=>{b.stopPropagation(),M(!1)},style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:t.Colors.brandColorGoldDark,cursor:"pointer"},"data-testid":t.generateDataTestId("je-schedule-resolve-component-add-depreciation-category-button",`${Je}_${o.jeScheduleId}`),children:[n.jsxRuntimeExports.jsx(pn,{}),De.addDepCategory]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:fs,placeholder:De.addDepCategory,valueToId:b=>K(b),defaultValue:{allOptions:p},registerOptions:{required:!0,validate:b=>!!b.selectedOption},customStyleConfig:v,disableCurrentOption:_})}):n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:o.jeCredit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Pe,{children:o.jeCredit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.jeCredit.account?.accountName??Ne})})})]})}):n.jsxRuntimeExports.jsxs(X,{style:{width:pe.COLUMN_FOUR,padding:`${t.Space.sp2} ${t.Space.sp2} ${t.Space.sp2} ${t.Space.sp3}`,justifyContent:"center"},children:[n.jsxRuntimeExports.jsx(se,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:De.scheduleHeaders.accumulatedCategory}),n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:o.jeCredit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Pe,{children:o.jeCredit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.jeCredit.account?.accountName??Ne})})]})}):null,o.jeScheduleType!=="fixed_assets"?n.jsxRuntimeExports.jsx(X,{style:{width:pe.COLUMN_FOUR}}):null,n.jsxRuntimeExports.jsx(X,{style:{width:pe.COLUMN_FIVE}})]}),n.jsxRuntimeExports.jsxs(zr,{children:[n.jsxRuntimeExports.jsx(X,{style:{padding:"unset",width:pe.COLUMN_ONE},children:n.jsxRuntimeExports.jsxs(Hr,{children:[n.jsxRuntimeExports.jsx(se,{children:De.scheduleHeaders.jePostingDate}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.scheduledJournalEntry.expectedPostDate.format(ms.visual.MMMDCommaYYFormat)??Ne})})]})}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(se,{children:De.scheduleHeaders.balance}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:n.jsxRuntimeExports.jsx(Pe,{children:t.amountToString("0,0.[00]",W.toAmount(o?.scheduledJournalEntry?.runningBalance?.amount??0,st.currencyCode,st.currencySymbol))??Ne}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:t.amountToString("0,0.[00]",W.toAmount(o?.scheduledJournalEntry?.runningBalance?.amount??0,st.currencyCode,st.currencySymbol))??Ne})})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:pe.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(se,{children:De.scheduleHeaders.months}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsxs(de,{className:"highlight",children:[o.scheduledJournalEntry.expectedPostDate.diff(o.startDate,"month")+1,"/",o.period]})})]}),n.jsxRuntimeExports.jsx(X,{style:{width:pe.COLUMN_FOUR}}),n.jsxRuntimeExports.jsxs(X,{style:{alignItems:"flex-end",width:pe.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(se,{children:De.scheduleHeaders.amountForMonth}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:t.amountToString("0,0.[00]",W.toAmount(o.scheduledJournalEntry.amount?.amount??0,st.currencyCode,st.currencySymbol))??Ne})})]})]})]}),n.jsxRuntimeExports.jsx(Hn,{children:n.jsxRuntimeExports.jsx(t.Button,{form:hs(`${Je}_${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(E=>E.zeniId===x.id):void 0,h=e.updatedAccumulatedDepreciationCategoryID,j=e.updatedClassId,y=r!=null?p.find(E=>E.accountId===r):void 0,S=h!=null?o.find(E=>E.accountId===h):void 0,f=j!=null?u.find(E=>E.classId===j):void 0;return{[Je]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:y?.qboId,allOptions:s},accumulatedDepreciationCategory:{selectedOption:S?.qboId,allOptions:a},vendor:{selectedOption:d?.id??x?.id,defaultOptions:t.getDefaultVendorOptions$1(c,d??x)},scheduleClass:{selectedOption:f?.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:pe.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(se,{children:n.jsxRuntimeExports.jsx(Le,{width:t.sp[10],height:14})}),n.jsxRuntimeExports.jsxs(oe,{style:{gap:t.sp[2]},children:[n.jsxRuntimeExports.jsx(t.CircularContentLoader,{height:t.sp[4],width:t.sp[4]}),n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:t.sp[10]})]})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(se,{children:n.jsxRuntimeExports.jsx(Le,{width:101,height:14})}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:203})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:pe.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(se,{children:n.jsxRuntimeExports.jsx(Le,{width:t.sp[9],height:14})}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:71})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:pe.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(se,{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:pe.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(se,{children:n.jsxRuntimeExports.jsx(Le,{width:73,height:14})}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:49})})]})]}),n.jsxRuntimeExports.jsxs(Pn,{children:[n.jsxRuntimeExports.jsxs(X,{style:{width:pe.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(se,{children:n.jsxRuntimeExports.jsx(Le,{width:49,height:14})}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:158})})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(se,{children:n.jsxRuntimeExports.jsx(Le,{width:36,height:14})}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:88})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:pe.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(se,{children:n.jsxRuntimeExports.jsx(Le,{width:36,height:14})}),n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:100})})]}),n.jsxRuntimeExports.jsx(X,{style:{width:pe.COLUMN_FOUR,paddingLeft:t.sp[3]}}),n.jsxRuntimeExports.jsx(X,{style:{width:pe.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:kc}}=t.appLocale.getLocalizedStrings();function Tc({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,j=e.resolveSchedules,y=e.uncategorizedAccounts,{allAccountList:S,allClassList:f,allDepreciationAccountList:E}=e,g=t.getGroupedAccountOptions(e.accountListNestedAccountHierarchy),w=t.getGroupedAccountOptions(e.allDepreciationAccountListNestedAccountHierarchy),O=t.getGroupedClassOptions(e.classListNestedAccountHierarchy),$=(v,C,I)=>{l(v,C,I)},B=(v,C,I,L)=>{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(C,I,L)};return m.useEffect(()=>{if(j.length!==0){for(const v in x)if(Object.prototype.hasOwnProperty.call(x,v)){const{updatedAccumulatedDepreciationCategoryID:C,updatedCategoryId:I,updatedVendor:L}=x[v];if(C!=null||I!=null||L!=null&&L?.id!==""){c("expenseAutomationJESchedulePage");break}else c("expenseAutomationPage")}}else j.length===0&&c("expenseAutomationPage")}),m.useEffect(()=>()=>{c("expenseAutomationPage")},[]),e.fetchState==="In-Progress"?n.jsxRuntimeExports.jsx(uo,{}):r.length!==0||j.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,C)=>n.jsxRuntimeExports.jsx(Sc,{ignoreStatus:h[v.jeScheduleTransactionKey],ignoreRecommendedJeSchedule:u,onReviewClickHandler:$,jeScheduleClickHandler:B,draft:v},`${C}_${v.jeScheduleId}`))})]}):null,j.length>0?n.jsxRuntimeExports.jsxs(Qs,{children:[n.jsxRuntimeExports.jsxs(Cs,{children:[kc,n.jsxRuntimeExports.jsx(Es,{isCircular:j.length<10,children:n.jsxRuntimeExports.jsx(vs,{children:j.length})})]}),n.jsxRuntimeExports.jsx(Rs,{"data-testid":t.generateDataTestId("expense-automation","resolve-je-schedules"),children:j.map((v,C)=>x[v.scheduledJournalEntry.scheduledJournalEntryID]==null?null:n.jsxRuntimeExports.jsx(wc,{vendorSearchAutoCompleteActions:o,vendorSearchAutoCompleteData:s,jeScheduleClickHandler:B,onPostJESchedule:p,uncategorizedAccounts:y,allAccountList:S,allAccountGroupedOptions:g,allClassGroupedOptions:O,allClassList:f,allDepAccountGroupedOptions:w,allDepAccountList:E,draft:v,postStatus:d[v.scheduledJournalEntry.scheduledJournalEntryID],localData:x[v.scheduledJournalEntry.scheduledJournalEntryID],onFormDataChange:a},`${C}_${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?_e.css`
|
|
872
|
-
height: ${t.Space.sp3};
|
|
873
|
-
width: ${t.Space.sp3};
|
|
874
|
-
padding: ${t.Space.sp0};
|
|
875
|
-
`:_e.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:j}){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:j,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(pt,{tab:e.currentSelectedView,title:Me(e.currentSelectedView).allDoneText.title,subTitle:Me(e.currentSelectedView).allDoneText.subTitle}):y.fetchState==="Completed"?n.jsxRuntimeExports.jsx(Tc,{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=>W.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)},it=[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(it);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(W.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(),nn={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(S,f,E,g,w)=>{c(e.id,"In-Progress"),await qt.uploadAttachment(S,f,E,g,w).then(({uploadResponse:O,errorMessage:$})=>{O!=null?O.transaction.attachments!=null&&(r(O.transaction),setTimeout(()=>u(O.transaction,p),2e3)):c(e.id,"Error",{code:500,message:nl},$)}).catch(O=>{c(e.id,"Error",O)})},[e.id,p,r,u,c]),j=m.useCallback(S=>{if(S.target.files!=null){const f=S.target.files,E=[],g=[];for(let w=0;w<f.length;w++)E.push(f[w].name),g.push(f[w]);h(l,a,f[0],f[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:it.map((S,f)=>{const E=`${e.id}${xo}${S.key}`;switch(S.key){case"vendor":default:return n.jsxRuntimeExports.jsx(It,{windowSize:x,wrapperWidth:S.width,children:n.jsxRuntimeExports.jsx(kt,{windowSize:x,isLastItem:f===it.length-1,children:n.jsxRuntimeExports.jsxs(rn,{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"}})]})})},E);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,O=S.key==="category"?g:w;return n.jsxRuntimeExports.jsx(It,{windowSize:x,wrapperWidth:S.width,children:n.jsxRuntimeExports.jsx(kt,{windowSize:x,isLastItem:f===it.length-1,children:n.jsxRuntimeExports.jsx(rn,{children:O!==hn?n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:O,itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}}):n.jsxRuntimeExports.jsx(ul,{children:O})})})},E)}case"date":return n.jsxRuntimeExports.jsx(It,{windowSize:x,wrapperWidth:S.width,children:n.jsxRuntimeExports.jsx(kt,{windowSize:x,isLastItem:f===it.length-1,children:n.jsxRuntimeExports.jsx(rn,{children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:e.date.format(ol.visual.MMMDCommaYYYYformat),itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}})})})},E);case"receipts":return n.jsxRuntimeExports.jsx(It,{windowSize:x,wrapperWidth:S.width,children:n.jsxRuntimeExports.jsx(kt,{windowSize:x,isLastItem:f===it.length-1,style:{justifyContent:"center"},children:s.fetchState==="In-Progress"?n.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"Small",style:{display:"flex"},start:!0}):s.fetchState==="Completed"||e.attachments!=null&&e.attachments.length>0?n.jsxRuntimeExports.jsx(ko.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:[...W.SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES],onFileChange:j,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()}})})]})})},E);case"amount":{const g=t.amountToString("0,0.[00]",e.amount);return n.jsxRuntimeExports.jsx(It,{windowSize:x,wrapperWidth:S.width,children:n.jsxRuntimeExports.jsx(kt,{windowSize:x,isLastItem:f===it.length-1,children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:e.amount.amount<0?`-${g}`:g,itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}})})},E)}}})})},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:it.map((p,u)=>{const o=`${u}${xo}${p.key}`;switch(p.key){case"vendor":return n.jsxRuntimeExports.jsx(It,{windowSize:e,wrapperWidth:p.width,children:n.jsxRuntimeExports.jsx(kt,{windowSize:e,isLastItem:u===it.length-1,children:n.jsxRuntimeExports.jsxs(rn,{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(It,{windowSize:e,wrapperWidth:p.width,children:n.jsxRuntimeExports.jsx(kt,{windowSize:e,isLastItem:u===it.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=>nn.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
944
|
-
padding-right: ${e=>nn.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
945
|
-
padding-top: ${e=>nn.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
946
|
-
padding-bottom: ${e=>nn.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
|
-
`,It=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=_e.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=_e.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
|
-
`,kt=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``,rn=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:j,uiState:y,transactions:S}=e,f=m.useRef(null),[E,g]=m.useState(!1);m.useEffect(()=>{f.current?.resetAfterIndex(0)},[h,f]),m.useEffect(()=>{j==="Completed"&&g(!1)},[j]);const w=$=>Lc,O=($,B)=>{x({sortOrder:B,sortKey:$})};return n.jsxRuntimeExports.jsxs(Sl,{children:[n.jsxRuntimeExports.jsx(Rl,{windowSize:h,children:j==="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})]}):j==="Completed"&&S.length===0?n.jsxRuntimeExports.jsx(pt,{tab:"missing_receipts",title:Me("missing_receipts").allDoneText.title,subTitle:Me("missing_receipts").allDoneText.subTitle}):j==="Not-Started"||j==="In-Progress"&&S.length===0?n.jsxRuntimeExports.jsx(ml,{sortConfig:{sortKey:y.sortKey,sortOrder:y.sortOrder},fetchState:j,onColumnSortConfigChanged:O}):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:j==="In-Progress"?"readonly":p,onColumnSortConfigChanged:O})}),n.jsxRuntimeExports.jsx(n.VariableSizeList,{ref:f,height:$-po,itemCount:S.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:E===!0,children:n.jsxRuntimeExports.jsx(kl,{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
|
-
`,kl=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
|
-
`,Tl=[...W.SUPPORTED_ATTACHMENT_FILE_TYPES],$l=7*1024*100,Ll=i.div`
|
|
1068
|
-
width: ${he.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
|
-
#${he.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
|
-
`,ks=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=_e.keyframes`
|
|
1147
|
-
0% {
|
|
1148
|
-
transform: translateX(100%);
|
|
1149
|
-
}
|
|
1150
|
-
100% {
|
|
1151
|
-
transform: translateX(0)
|
|
1152
|
-
}
|
|
1153
|
-
`,Wl=_e.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: ${he.COMMENTS_SECTION_MINIMUM_WIDTH}px;
|
|
1169
|
-
max-width: ${he.COMMENTS_DRAWER_MAXIMUM_WIDTH}px;
|
|
1170
|
-
`,an="monthEndReportFormSection",Ts="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:j,onCloseAllThreadsSection:y,previewMonthEndReport:S,saveMonthEndReport:f,onEditClick:E,onOpenFileAttachmentSnackBar:g,onClickCustomerRequest:w,sendMonthEndReport:O}){const $=n.useTheme(),[B,v]=m.useState(),[C,I]=m.useState(0),[L,U]=m.useState(0),T=m.useRef(),K=m.useRef(null),_=m.useRef(null),{html:F,subject:G,improveUsingZeniGPTStatus:J}=l,[N,ne]=m.useState(),[Se,Z]=m.useState(!1),[Q,ae]=m.useState(!1),z=m.useRef(null),A=m.useRef(null),M=he.useDelayUnmount(u,250),Y=l.fetchState==="Not-Started"||l.fetchState==="In-Progress"||l.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||l.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:V,sortedThreads:b,threadsPositions:P,observer:ie,unresolvedThreadsMap:D,handleRemoveFloatingThread:ee}=he.useFloatingThreads(o,z,!a,Y,r),H=m.useCallback(()=>{u?A.current!=null&&U(Math.min((A.current.offsetWidth-he.FORM_MINIMUM_WIDTH-t.sp[4])/2,A.current.offsetWidth-he.FORM_MINIMUM_WIDTH-he.COMMENTS_DRAWER_MAXIMUM_WIDTH-t.sp[4])):A.current!=null&&I(Math.min((A.current.offsetWidth-he.FORM_MINIMUM_WIDTH-t.sp[4])/2,A.current.offsetWidth-he.FORM_MINIMUM_WIDTH-he.COMMENTS_SECTION_MINIMUM_WIDTH-t.sp[4]))},[u]);m.useEffect(()=>{H()},[u,H]),m.useEffect(()=>(window.addEventListener("resize",H),()=>{window.removeEventListener("resize",H)}),[H]);const q=r?t.ThreadsContext:t.NonZeniUsersThreadsContext,{openThread:je,addThread:Ee,setOpenThread:ce}=m.useContext(q),R=he.useHandleSelection(he.MONTH_END_REPORT_CANVAS,!1,!a),re=z.current?.getBoundingClientRect(),fe=R!=null&&R.coords&&re?{left:R.coords.left-re.left,top:R.coords.top-re.top}:void 0,Oe=m.useCallback(()=>{const ge=window.getSelection()?.getRangeAt(0),xe=he.getSelectionData();if(!ge||xe==null)return;const Ce={...c,...xe,startPath:xe.startPath.join(),endPath:xe.endPath.join()},te=`${n.nanoid()}${t.NEW_THREAD_SUFFIX}`,He=`cockpit_${e}`;Ee(te,{type:"thread",id:te,roomId:He,createdAt:new Date,comments:[],metadata:Ce,updatedAt:new Date,resolved:!1}),ce(te)},[Ee,e,c,ce]);m.useEffect(()=>{je!=null&&u&&y()},[u,je,y]);const we=J.fetchState==="In-Progress",Ie=n.useForm({mode:"all",defaultValues:$s(l),values:$s(l)}),me=Ie.handleSubmit(ge=>{const{recipientEmailList:xe,subject:Ce}=ge[an];if(a===!0)O?.(N?.id);else{const te=B?.replace(t.EMPTY_HTML_CHECKER,Ve.common.strings.empty);xe!=null&&Ce!=null&&S(xe,Ce,N?.id,te!=null&&te.length>0?B:void 0)}}),Ue=()=>{K.current!=null&&K.current.click()},Fe=()=>{N!==void 0&&N!=null&&(h([N.id]),ne(void 0),Z(!1))},ze=ge=>{const xe=ge.target.files?ge.target.files[0]:null;if(xe)if(!W.toSupportedAttachmentFileType(xe.type)||Q)console.warn("Please select a valid file.");else{const Ce=new FileReader;Ce.onload=function(te){const He=te.target?.result;if(typeof He=="string"){const tt={data:He.split(",")[1],name:xe.name,id:W.getAttachmentFileIdByFileName(e,xe.name)};ne(tt),Z(!0),j([tt])}},Ce.readAsDataURL(xe)}},le=()=>{_.current&&_.current.scrollIntoView({behavior:"smooth"})},Be=()=>{const ge=Ie.getValues(),{recipientEmailList:xe,subject:Ce}=ge[an];xe!=null&&Ce!=null&&f(xe,Ce,N?.id,B)};m.useEffect(()=>{v(l.zeniRequestsHtml)},[l.zeniRequestsHtml]),m.useEffect(()=>{T.current=N},[N]),m.useEffect(()=>{ne(W.mapAttachmentFileToAttachmentFilePayload(l.attachmentFile)),Z(!1)},[l.attachmentFile]),m.useEffect(()=>{Q&&g()},[Q,g]);const St=W.zeniDate(`${x.year}-${x.month}-01`).format(Ve.dateFormat.visual.MMMMFormat),Ze=F!=null?F.split(he.MONTH_END_EDITOR_PLACEHOLDER):[],at=l.concatenatedHtml,mt=()=>l.lastDraftSavedDate!=null&&a===!1?n.jsxRuntimeExports.jsx(he.UserWithTimestamp,{time:l.lastDraftSavedDate,user:l.reportLastSavedByUser,timeStampLabel:Ve.cockpit.monthEndReport.timeStampLabel}):null,Rt=()=>r===!0?M?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:(ge,xe)=>{ce(xe);const Ce=b.findIndex(te=>te[0]===xe);y(),V.current?.[Ce]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>y()})}),n.jsxRuntimeExports.jsx(gn,{availableWidth:C})]}):n.jsxRuntimeExports.jsx(he.FloatingThreads,{observer:ie,canvasContainerRef:z,sortedThreads:b,threadsPositions:P,threadsRefs:V,unresolvedThreadsMap:D,editorMode:!a,style:{minWidth:`${C}px`,position:"relative",height:"fit-content",top:`${z.current?.offsetTop}px`,minHeight:t.Space.sp12},handleRemoveFloatingThread:ee}):n.jsxRuntimeExports.jsx(gn,{availableWidth:C}),xt=(l.zeniRequestsData??[]).length+t.getTemplatesFromTemplatedData(l.companyMonthEndReportTemplatesData).length;return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs(Al,{ref:A,children:[n.jsxRuntimeExports.jsx(gn,{availableWidth:u?L:C}),n.jsxRuntimeExports.jsxs(Ll,{children:[n.jsxRuntimeExports.jsx(n.FormProvider,{...Ie,children:n.jsxRuntimeExports.jsx("form",{id:Ls(Ts),onSubmit:me,children:n.jsxRuntimeExports.jsxs(zl,{children:[n.jsxRuntimeExports.jsx(he.MonthEndReportSection,{sectionId:an,previewMode:a,subject:G}),!a&&xt>0?n.jsxRuntimeExports.jsx(he.MonthEndReportCustomerRequestSection,{totalItems:xt,onClickCustomerRequest:w}):null,n.jsxRuntimeExports.jsxs(_l,{id:he.MONTH_END_REPORT_CANVAS,ref:z,children:[n.jsxRuntimeExports.jsxs(Bl,{className:"monthEndReportCanvasWrapper",children:[N!=null||Q?n.jsxRuntimeExports.jsx(Ml,{"data-testid":t.generateDataTestId("email-attachment-container"),onClick:le,children:n.jsxRuntimeExports.jsx(he.CircleWithAttachmentSuccessIcon,{fileSizeError:Q,setFileSizeError:ae,loading:!1,showAnimation:!a&&Se})}):null,a?n.jsxRuntimeExports.jsx(ks,{dangerouslySetInnerHTML:{__html:he.getHTMLWithCommentingSections(at)}}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs(Dl,{id:he.MONTH_END_EMAIL_HEADER_SECTION,children:[n.jsxRuntimeExports.jsx(t.StandardRegular,{dangerouslySetInnerHTML:{__html:Ze[0]!=null?Ze[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:he.MONTH_END_EMAIL_EDITOR_SECTION,children:n.jsxRuntimeExports.jsx(he.Editor,{handleFileInputClick:Ue,fileAttached:N!=null,enableZeniGPTFeature:s,isZeniGPTResponseLoading:we,initialHtmlString:l.zeniRequestsHtml,improveUsingZeniGPTClick:d,setZeniRequestsHtml:v,customerRequestData:p})}),n.jsxRuntimeExports.jsx(ks,{id:he.MONTH_END_EMAIL_BODY_SECTION,dangerouslySetInnerHTML:{__html:Ze[1]!=null?"<html><body>"+Ze[1]:Ve.common.strings.empty}})]}),N!=null?n.jsxRuntimeExports.jsx(he.FileAttachment,{ref:_,fileName:N.name,fileSize:t.base64FileSize(N.data),onRemove:Fe,isRemovable:!a}):null]}),fe?n.jsxRuntimeExports.jsx(he.AddThreadFloating,{style:{zIndex:15},coords:fe,alignment:R.alignment,onClick:Oe}):null,n.jsxRuntimeExports.jsx(he.TextHighlightSection,{canvasContainerRef:z,sortedThreads:b,editorMode:!a,isZeniUser:r})]})]})})}),n.jsxRuntimeExports.jsx(t.FileInputElement,{name:N?.name??Ve.common.strings.empty,fileRef:K,sizeLimit:$l,acceptableTypes:Tl,onFileChange:async ge=>{ze(ge)},onFileSizeError:ge=>ae(ge),multiple:!1})]}),Rt()]}),n.jsxRuntimeExports.jsx(t.Footer,{style:{zIndex:10},leftSideComponent:mt(),formId:Ls(Ts),cancelBtn:{isDisabled:we,label:a===!0?Ve.cockpit.monthEndReport.editButtonLabel:Ve.cockpit.monthEndReport.saveChanges,onClick:a===!0?E:Be,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=>({[an]:{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=>W.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]}}},ut=[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(ut));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(W.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",et="lineEntitySelection",jd="lineEntity",fd="recommendations",jo="lineInfo",yd="vendorDetails",Sd="customerDetails",cn="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:sn,empty:Bt}},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,isCOTEnabled:c,cotTracking:r,onTransactionCategorizationRowClick:x,setCurrentTransactionInAction:d,vendorLoadOptions:h,openTooltipId:j,setOpenTooltipId:y,isUncategorizedExpenseCategoryEnabled:S})=>{const f=t.useWindowSizeContext(),[E,g]=m.useState(!1),{lineItemById:w,sortedLineItems:O}=s.transactionReviewLocalData,$=s.transactionReviewLocalData.tabSpecificLineItems?.[u]||[],B=O.filter(M=>$.indexOf(M)!==-1),v=[];B.forEach(M=>{v.push(w[M])});const{accountList:C,accountsHierarchyList:I,classHierarchyList:L,classList:U,uncategorizedAccounts:T,transactions:K,selectedCheckBoxTransactionIds:_}=e,F=_.includes(s.transactionId),G=n.useTheme(),J={control:()=>({marginLeft:-2,backgroundColor:E?G.colors.background:G.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:t.sp[0]}),menu:()=>({width:"150%",background:G.colors.grey5}),singleValue:()=>({color:E||F?G.colors.primary:G.colors.hero,paddingLeft:t.sp[2]}),input:M=>({...M,color:E||F?G.colors.primary:G.colors.hero,textAlign:"left",paddingLeft:t.sp[2]}),menuPortal:M=>({...M,zIndex:10})},N={...J,singleValue:M=>({...M,color:E||F?G.colors.primary:G.colors.hero}),menu:()=>({marginTop:t.sp[1],marginLeft:-t.sp[2]}),input:M=>({...M,color:E||F?G.colors.primary:G.colors.hero,textAlign:"left"})},ne=K.find(M=>M.id===s.transactionId),Se=(M,Y)=>{const{transactionType:V}=Y.transactionReviewLocalData;let P=M.target;for(;P;){if(P.classList.contains("select-value-container")||P.classList.contains("item-value-container")||P.classList.contains("grouped-single-select-field__value-container")||P.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||P.classList.contains("grouped-single-select-field__input")||P.classList.contains("grouped-single-select-field__menu"))return;P=P.parentElement}V!=null&&x(Y.transactionId,V)},Z=m.useRef(null),[Q,ae]=m.useState(void 0),[z,A]=m.useState("auto");return m.useEffect(()=>{if(Q===void 0)return;const M=()=>{if(Z.current==null)return;const Y=Z.current.getBoundingClientRect(),V=window.innerHeight-Y.bottom,b=Y.top;A(V>=b?"bottom":"top")};return M(),window.addEventListener("resize",M),window.addEventListener("scroll",M),()=>{window.removeEventListener("resize",M),window.removeEventListener("scroll",M)}},[Q]),n.jsxRuntimeExports.jsx(Id,{onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),windowSize:f,isSelected:F,isHovered:E,children:n.jsxRuntimeExports.jsx(kd,{children:v.map((M,Y)=>n.jsxRuntimeExports.jsx(Td,{ref:Q===Y?Z:void 0,"data-testid":t.generateDataTestId("transaction-categorization-list-row",M.lineId),windowSize:f,onClick:V=>Se(V,s),children:n.jsxRuntimeExports.jsx(bd,{line:M,isHovered:E||F,isSelected:F,lineIndex:Y,sectionId:l,transaction:s,currentTransaction:ne,windowSize:f,accountsHierarchyList:I,classHierarchyList:L,allAccountList:C,allClassList:U,uncategorizedAccounts:T,vendorSearchAutoCompleteData:a,vendorSearchAutoCompleteActions:p,setCurrentTransactionInAction:d,vendorLoadOptions:h,customStyle:J,customStyleAutoComplete:N,recommendations:M.recommendationsWithCOT,selectedTab:u,isCOTEnabled:c,menuPlacement:z,cotTracking:r,openTooltipId:j,setOpenTooltipId:y,isUncategorizedExpenseCategoryEnabled:S,onVendorDropdownClose:()=>ae(void 0),onVendorDropdownOpen:()=>ae(Y)})},`${s.transactionId}.${M.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:j=!1,isSelected:y=!1,sectionId:S,recommendations:f,vendorSearchAutoCompleteData:E,selectedTab:g,isCOTEnabled:w,menuPlacement:O,cotTracking:$,openTooltipId:B,setCurrentTransactionInAction:v,vendorLoadOptions:C,setOpenTooltipId:I,isUncategorizedExpenseCategoryEnabled:L,onVendorDropdownClose:U,onVendorDropdownOpen:T})=>{const{transactionDate:K,transactionType:_,transactionTypeName:F,memo:G}=r.transactionReviewLocalData,{setValue:J}=n.useFormContext(),N=m.useCallback((ue,ke)=>{$?.onCOTView!=null&&$.onCOTView(o.lineId,r.transactionId,ue,ke)},[$,o.lineId,r.transactionId]),ne=o.lineDescription,Se=m.useMemo(()=>{if(ne||G)return[{title:jt.description,description:ne||sn},{title:jt.header.memo,description:G||sn}]},[G,ne]),Z=gt(S,et,c.toString()),Q=gt(S,be,c.toString()),ae=gt(S,qe,c.toString()),z=(ue,ke)=>{let Re;switch(ke){case"vendor":Re=Z;break;case"category":Re=Q;break;case"class":Re=ae;break;default:return}J(`${Re}.selectedOption`,ue,{shouldValidate:!0,shouldDirty:!0})},A=n.useTheme(),M=m.useMemo(()=>x!=null&&W.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]),Y=m.useMemo(()=>x!=null&&W.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]),V=o[qe]?.classId,b=o[be]?.qboId??o[be]?.accountId,P=M?.id,ie=Y?.id,D=Y?.name,[ee,H]=m.useState(!V),[q,je]=m.useState(!b||o[be]?.qboId!=null&&W.isAccountUncategorized(h,o[be].qboId,L===!0?["income"]:void 0)===!0),[Ee,ce]=m.useState(!ie||!P),R=ue=>f?.find(Re=>Re.vendor?.qboId===ue||Re.vendor?.id===ue||Re.vendor?.name===ue)?.vendor?.reason??"",re=r.transactionReviewLocalData.lineItemById[o.lineId]?.recommendationsWithCOT||[],fe=t.getGroupedAccountOptionsWithCOT(e,re),Oe=t.getGroupedClassOptionsWithCOT(a,re),we=ue=>s.filter(Re=>Re.qboId===ue)[0]?.qboId,Ie=ue=>l.filter(Re=>Re.classId===ue)[0]?.accountingClassNumber??void 0,me=m.useCallback(ue=>W.isAccountUncategorized(h,ue,L===!0?["income"]:void 0),[h,L]),[Ue,Fe]=m.useState(!1),[ze,le]=m.useState(!1),[Be,Ye]=m.useState(!1),St=(ue,ke)=>{v({transactionId:r.transactionId,lineItemId:o.lineId}),C(ue,ke)},Ze=()=>{ce(!(ie||P)),Fe(!1),U?.()},at=()=>{b&&o[be]?.qboId!=null&&W.isAccountUncategorized(h,o[be].qboId,L===!0?["income"]:void 0)===!1?je(!1):je(!0),Ye(!1)},mt=()=>{H(!V),le(!1)},Rt=()=>{(ie||P)&&(Fe(!0),T?.())},xt=()=>{le(!0)},ge=()=>{Ye(!0)};m.useEffect(()=>{b&&o[be]?.qboId!=null&&W.isAccountUncategorized(h,o[be].qboId,L===!0?["income"]:void 0)===!1?je(!1):je(!0)},[b]),m.useEffect(()=>{H(!V)},[V]),m.useEffect(()=>{ce(!(ie||P))},[ie,P]);const xe=r.transactionReviewLocalData.selectedEntity,Ce=r.transactionReviewLocalData.lineItemById[o.lineId].selectedEntityLine,te=x!=null&&W.isVendorTransaction(x)===!0?xe:Ce,He=m.useMemo(()=>{const ue=r.transactionReviewLocalData.lineItemById[o.lineId]?.recommendationsWithCOT||[],ke=E.entityAutoCompleteView;return{selectedOption:te?.qboId??te?.id,defaultOptions:t.getGroupedForPayeeEntityOptionsWithCOT(ke,te,ue??[])}},[te,r.transactionReviewLocalData.lineItemById,o.lineId,E.entityAutoCompleteView]),tt=()=>te!=null&&te.logo!=null?n.jsxRuntimeExports.jsx(t.EntityLogoAvatarWithCustomFallback,{photoUrl:te.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:te.name,size:t.Space.sp4})})}):te!=null&&te.name!=null?n.jsxRuntimeExports.jsx(Bs,{children:n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:te.name,size:t.Space.sp4})}):null,nt=(ue,ke)=>{if(ke==null||!ke)return;let Re=[];return ue.forEach(We=>{Re=Re.concat(We.options)}),Re.find(We=>We.value===ke)?.label??ke},Ge=nt(Oe,V),$t=nt(fe,b),Ke=g==="review",Ct=t.isMiscategorizedField("vendor",He.defaultOptions,He.selectedOption),Ft=t.isMiscategorizedField("category",fe,b),Lt=t.isMiscategorizedField("class",Oe,V),zt=()=>ut.map((ue,ke)=>{const Re=`${r.transactionId}_${ue.key}_${o.lineId}`;if(c>0&&x!=null&&W.isVendorTransaction(x)===!0&&ue.key==="vendor")return n.jsxRuntimeExports.jsx(Xe,{windowSize:d,wrapperWidth:ue.width},Re);if(c>0&&ue.key==="transaction_type")return n.jsxRuntimeExports.jsx(Xe,{windowSize:d,wrapperWidth:ue.width},Re);switch(ue.key){case"vendor":default:return n.jsxRuntimeExports.jsxs(Xe,{windowSize:d,wrapperWidth:ue.width,className:"item-value-container",children:[n.jsxRuntimeExports.jsx(yn,{isCOTEnabled:w,recommendations:re,type:"vendor",isFirstColumn:!0,isEnabled:!!te?.isPreFilled,isMisCategorized:Ct,onRecommendationClick:z,selectedValue:ie,selectedValueLabel:D,isReviewTab:Ke,isAccountOptionDisabled:me,existingOption:{label:x!=null&&W.isVendorTransaction(x)===!0?x?.vendor?.name:void 0,value:x!=null&&W.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:j,children:n.jsxRuntimeExports.jsxs(Sn,{onClick:We=>{We.stopPropagation(),ce(!1),Fe(!0),T?.()},"data-testid":t.generateDataTestId("add-vendor-button",S),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:Ze,children:n.jsxRuntimeExports.jsx(Hd,{"data-testid":t.generateDataTestId("vendor-selection-dropdown-container",gt(S,et,c.toString())),children:n.jsxRuntimeExports.jsx(t.AutoCompleteGroupedCreatableSingleSelectCustomGroupFieldWithCOT,{name:Z,placeholder:jt.addPayee,valueToInfo:R,defaultValue:{selectedOption:He.selectedOption,defaultOptions:He.defaultOptions},type:"vendor",autoFocus:!Ee,style:{width:"100%"},pageSource:"list_page",transactionStatus:Ke?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:u,menuIsOpen:Ue,onMenuClose:Ze,registerOptions:{required:!1},loadOptions:St,showCOT:w,onCOTView:N,menuPlacement:O})})}):n.jsxRuntimeExports.jsx(Vd,{children:n.jsxRuntimeExports.jsxs(En,{isHovered:j,showOutline:Ct&&te?.isPreFilled!==!0&&!y&&Ke,children:[tt(),n.jsxRuntimeExports.jsx(zd,{onClick:Rt,"data-testid":t.generateDataTestId("vendor-name-text",S),children:te!=null&&te.name?n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:te.name,itemTextStyle:{color:j?A.colors.primary:A.colors.hero}}):n.jsxRuntimeExports.jsx(Wd,{children:sn})})]})})})]},Re);case"category":{const We=x?.lines!=null?x?.lines[c]:void 0;return n.jsxRuntimeExports.jsxs(Xe,{windowSize:d,wrapperWidth:ue.width,className:"item-value-container",children:[n.jsxRuntimeExports.jsx(yn,{isCOTEnabled:w,recommendations:re,type:"category",isFirstColumn:!1,isReviewTab:Ke,isEnabled:!!o[be]?.isPreFilled,isAccountOptionDisabled:me,isMisCategorized:Ft,onRecommendationClick:z,selectedValue:b,selectedValueLabel:$t,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:q===!0?n.jsxRuntimeExports.jsx(Cn,{isHovered:j,children:n.jsxRuntimeExports.jsxs(Sn,{onClick:Et=>{Et.stopPropagation(),je(!1),Ye(!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]})}):Be===!0?n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:at,children:n.jsxRuntimeExports.jsx(Ms,{isHovered:j,"data-testid":t.generateDataTestId("category-selection-dropdown-container",Q),children:n.jsxRuntimeExports.jsx(qt.GroupedSingleSelectFieldWithCOT,{name:Q,placeholder:jt.addCategory,valueToId:Et=>we(Et),type:"category",pageSource:"list_page",transactionStatus:Ke?"pending_review":"auto_categorized",showCOT:w,defaultValue:{selectedOption:b,allOptions:fe},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Be,autoFocus:!q&&(!b||o[be]?.qboId!=null&&[h.expense?.qboId,h.income?.qboId].includes(o[be].qboId)),onMenuClose:at,customStyleConfig:p,disableCurrentOption:me,menuPlacement:O,onCOTView:N})})}):n.jsxRuntimeExports.jsx(En,{isHovered:j,showOutline:Ft&&o[be]?.isPreFilled!==!0&&!y&&Ke,children:n.jsxRuntimeExports.jsx(Ns,{onClick:ge,"data-testid":t.generateDataTestId("category-label-text",Q),children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:$t??"",itemTextStyle:{color:j?A.colors.primary:A.colors.hero}})})})})]},Re)}case"class":{const We=x?.lines!=null?x?.lines[c]:void 0;return n.jsxRuntimeExports.jsxs(Xe,{windowSize:d,wrapperWidth:ue.width,className:"item-value-container",children:[n.jsxRuntimeExports.jsx(yn,{isCOTEnabled:w,recommendations:re,type:"class",isFirstColumn:!1,isReviewTab:Ke,isEnabled:!!o[qe]?.isPreFilled,isAccountOptionDisabled:me,isMisCategorized:Lt,onRecommendationClick:z,selectedValue:V,selectedValueLabel:Ge,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:ee===!0?n.jsxRuntimeExports.jsx(Cn,{isHovered:j,children:n.jsxRuntimeExports.jsxs(Sn,{onClick:Et=>{Et.stopPropagation(),H(!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]})}):ze===!0?n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:mt,children:n.jsxRuntimeExports.jsx(Ms,{isHovered:j,"data-testid":t.generateDataTestId("class-selection-dropdown-container",ae),children:n.jsxRuntimeExports.jsx(qt.GroupedSingleSelectFieldWithCOT,{name:ae,placeholder:jt.addClass,valueToId:Et=>Ie(Et),type:"class",showCOT:w,defaultValue:{selectedOption:V,allOptions:Oe},pageSource:"list_page",transactionStatus:Ke?"pending_review":"auto_categorized",menuIsOpen:ze,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!ee&&!V,customStyleConfig:p,onMenuClose:mt,menuPlacement:O,onCOTView:N})})}):n.jsxRuntimeExports.jsx(En,{isHovered:j,showOutline:Lt&&o[qe]?.isPreFilled!==!0&&!y&&Ke,children:n.jsxRuntimeExports.jsx(Ns,{"data-testid":t.generateDataTestId("class-selection-field",ae),onClick:xt,children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:Ge??"",itemTextStyle:{color:j?A.colors.primary:A.colors.hero}})})})})]},Re)}case"date":return n.jsxRuntimeExports.jsx(Xe,{windowSize:d,wrapperWidth:ue.width,children:n.jsxRuntimeExports.jsx(Nt,{windowSize:d,isLastItem:ke===ut.length-1,children:n.jsxRuntimeExports.jsx(Bn,{"data-testid":t.generateDataTestId("date-field",gt(S,qe,c.toString())),children:n.jsxRuntimeExports.jsx(Ld,{style:{color:j?A.colors.primary:A.colors.hero},children:K!=null?K.format(Ed.visual.MMMDCommaYYYYformat):null})})})},Re);case"transaction_type":return n.jsxRuntimeExports.jsx(Xe,{windowSize:d,wrapperWidth:ue.width,children:n.jsxRuntimeExports.jsx(Nt,{windowSize:d,"data-testid":t.generateDataTestId("transaction-type-field",gt(S,qe,c.toString())),isLastItem:ke===ut.length-1,children:F!=null?n.jsxRuntimeExports.jsx(t.Tag,{textColor:j?new n.Color(A.colors.primary):t.getColorForTransactionType(void 0,A),text:F??_}):null})},Re);case"memo":return n.jsxRuntimeExports.jsx(Xe,{windowSize:d,wrapperWidth:ue.width,children:n.jsxRuntimeExports.jsx(Nt,{style:{lineHeight:t.Space.sp3},windowSize:d,isLastItem:ke===ut.length-1,"data-testid":t.generateDataTestId("memo-field",gt(S,qe,c.toString())),children:Se!=null?n.jsxRuntimeExports.jsx(t.Tooltip,{placement:"bottom",data:Se,variant:"multi-information-points",children:n.jsxRuntimeExports.jsx(Od,{style:{color:j?A.colors.primary:A.colors.hero}})}):n.jsxRuntimeExports.jsx(Ad,{children:sn})})},Re);case"amount":{const We=t.amountToString("0,0.[00]",o.amount,!0);return n.jsxRuntimeExports.jsx(Xe,{windowSize:d,style:{paddingRight:t.sp[4]},wrapperWidth:ue.width,children:n.jsxRuntimeExports.jsx(Nt,{windowSize:d,isLastItem:ke===ut.length-1,children:n.jsxRuntimeExports.jsx(Bn,{"data-testid":t.generateDataTestId("transaction-amount-field",gt(S,qe,c.toString())),style:{color:j?A.colors.primary:A.colors.hero},children:We})})},Re)}}});return n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:zt()})},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:j,transactionId:y,isAccountOptionDisabled:S,onRecommendationClick:f,setOpenTooltipId:E})=>{const g=m.useMemo(()=>`${y}:${h}:${l}`,[y,h,l]),w=j===g,$=t.useToolkitContext().analytics,{createAlternateRecommendationCallback:B}=t.useCOTAnalytics(),v=m.useCallback(_=>{const F=e[1],G=e[0];B(l,{currentValue:p??Bt,transactionCurrentStatus:a?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:d?{transactionId:y,lineId:h,onCOTView:(J,N,ne,Se)=>{d.onCOTView?.(J,N,ne,Se)}}:void 0},F,G)(_)},[B,e,p,a,l,d,h,y]),C=t.createCOTDataFromRecommendations(e,l,s,x,"list_page",a?"pending_review":"auto_categorized",f,v,r,S),I=t.hasRecommendationsForType(e,l),L=m.useCallback(()=>{E(g);const _=C?.recommendations[0]?.cot??[],F=C?.recommendations[1]?.cot??[],G=F.length>0;if($.trackTransactionCotView({recommendationFor:l,currentValue:p??Bt,recommendation:C?.recommendations[0]?.name??Bt,recommendationCot:_,isRecommendationCotAvailable:_.length>0,recommendationReason:C?.recommendations[0]?.reason??Bt,recommendationConfidencePercentage:C?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:t.toConfidenceLevelType(t.getConfidenceLevel(C?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:C?.recommendations[1]?.name??Bt,alternativeRecommendationCot:F,isAlternativeRecommendationCotAvailable:G,alternativeRecommendationReason:C?.recommendations[1]?.reason??Bt,alternativeRecommendationConfidencePercentage:C?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:G?t.toConfidenceLevelType(t.getConfidenceLevel(C?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:a?"pending_review":"auto_categorized",transactionPage:"list_page"}),d?.onCOTView!=null){const J=t.getCOTRecommendationSourceToTrack(C);J!=null&&d.onCOTView(h,y,l,J)}},[$,C,a,p,l,h,y,g,E]),U=m.useCallback(()=>{j===g&&E(void 0)},[j,g,E]),T=m.useMemo(()=>!r||!I?!1:e.some(_=>l==="vendor"&&_.vendor!=null?_.vendor.id===r||_.vendor.qboId===r:l==="category"&&_.account!=null?_.account.qboId===r||_.account.accountId===r:l==="class"&&_.class!=null?_.class.classId===r:!1),[r,I,e,l]);if(!I)return n.jsxRuntimeExports.jsx(yo,{isFirstColumn:u});const K=o||T;return C?n.jsxRuntimeExports.jsx(_s,{isFirstColumn:u,children:n.jsxRuntimeExports.jsx(t.Tooltip,{variant:"chain-of-thought",data:C,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:w,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:L,onClose:U,children:n.jsxRuntimeExports.jsx(Fd,{children:n.jsxRuntimeExports.jsx(Ds,{isEnabled:K,isReviewTab:a,isMisCategorized:c,hasRecommendations:I,isTooltipVisible:w})})})}):n.jsxRuntimeExports.jsx(_s,{isFirstColumn:u,children:n.jsxRuntimeExports.jsx(Ds,{isEnabled:K,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:ut.map((p,u)=>{const o=`${u}${Cd}${p.key}`;switch(p.key){case"vendor":return n.jsxRuntimeExports.jsx(Xe,{windowSize:e,wrapperWidth:p.width,children:n.jsxRuntimeExports.jsx(Nt,{windowSize:e,isLastItem:u===ut.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(Xe,{windowSize:e,wrapperWidth:p.width,children:n.jsxRuntimeExports.jsx(Nt,{windowSize:e,isLastItem:u===ut.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?_e.css`
|
|
1265
|
-
.ai-icon-selected-plain {
|
|
1266
|
-
color: ${s.colors.primary};
|
|
1267
|
-
}
|
|
1268
|
-
`:null};
|
|
1269
|
-
`,kd=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
|
-
`,Td=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
|
-
`,Xe=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=_e.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
|
-
`,Nt=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(qt.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(qt.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:j,onUpdateScrollYOffSetTransactionCategorizationUIState:y,onFetchTransactionCategorizationList:S,containerRef:f,cotTracking:E,isUncategorizedExpenseCategoryEnabled:g})=>{const w=t.useWindowSizeContext(),[O,$]=m.useState(void 0),{fetchState:B,uiState:v,transactionLocalData:C,selectedCheckBoxTransactionIds:I,transactionIdsWithUnsavedData:L,transactions:U,uncategorizedAccounts:T}=s,K=m.useRef(null),_=m.useRef({}),{control:F}=n.useFormContext();m.useEffect(()=>{K.current?.resetAfterIndex(0,!0)},[w,K,C]),m.useEffect(()=>{K.current?.scrollTo(v.scrollPosition?.scrollTop??0)},[e]);const G=m.useCallback(D=>{if(_.current?.[D]!=null){const q=w==="small"&&v.pageToken==null&&D===C.length-1?bn.rowGap.value("medium-regular"):bn.rowGap.value(w);return _.current[D]+q}if(C[D]==null)return 0;const ee=C[D].transactionReviewLocalData,H=Object.keys(ee.lineItemById).length;return H!=null&&!isNaN(H)&&H>1?As*H+bn.rowGap.value(w)*(H-1):As},[C,w,v.pageToken,v.sortKey,v.sortOrder]),J=m.useCallback((D,ee)=>{_.current={..._.current,[D]:ee},K.current?.resetAfterIndex(0,!0)},[w,K,C,v.sortKey,v.sortOrder]),N=m.useCallback(()=>{(v.pageToken!=null&&s.refreshStatus.fetchState!=="In-Progress"||s.refreshStatus.fetchState==="Completed")&&S(e,v.searchString,!0,v.pageToken,!0,!1)},[s.refreshStatus.fetchState,S,e,v.pageToken,v.searchString,v.sortKey,v.sortOrder]),ne=m.useCallback(()=>{v.pageToken!=null&&N()},[N,v.pageToken,v.sortKey,v.sortOrder]),Se=n.debounce(D=>y(e,{scrollPosition:{scrollTop:D}}),1e3,{trailing:!0}),Z=D=>D<s.transactionLocalData.length,Q=(D,ee)=>{j(e,{sortOrder:ee,sortKey:D}),S(e,v.searchString,!1,null,!1,!0)},ae=D=>{if(e==="autoCategorized")return!I.includes(D);const ee=C.find(q=>q.transactionId===D)?.transactionReviewLocalData,H=U.find(q=>q.id===D);return H!=null&&ee!=null?W.checkIfAllLineItemsAreCategoryClassFilled(H,ee,T,g)?g===!0&&W.isAnyItemWithUncategorizedExpenseAccount(T,ee.lineItemById,["expense"])?L.includes(D)===!1:!1:!0:I.length===0?!0:!I.includes(D)};let z=[],A=[];(B==="Completed"||s.transactionLocalData.length>0)&&(A=s.transactionLocalData.map((D,ee)=>{const H=ae(D.transactionId);let q=!1;g===!0&&H===!0&&e==="review"&&W.isAnyItemWithUncategorizedExpenseAccount(T,D.transactionReviewLocalData.lineItemById,["expense"])&&(q=!L.includes(D.transactionId));const je=D.transactionReviewLocalData;return{label:n.jsxRuntimeExports.jsx(vd,{transactionView:s,sectionId:`${p}.${ee}.${jo}`,transaction:D,receiptUploadEndpoint:l,authParams:a,onTransactionCategorizationRowClick:h,vendorLoadOptions:d,setCurrentTransactionInAction:x,vendorSearchAutoCompleteActions:c,vendorSearchAutoCompleteData:r,selectedTab:e,containerRef:f,isCOTEnabled:u,cotTracking:E,openTooltipId:O,setOpenTooltipId:$,isUncategorizedExpenseCategoryEnabled:g},`${D.transactionId}.${je.transactionType}`),value:D.transactionId,defaultChecked:!1,groupLabel:!1,isException:q,exceptionMode:q===!0?"checked_or_hover":void 0,isSticky:!0,isDisabled:H===!0?"readonly":void 0,exceptionType:q===!0?"alert":void 0,exceptionInfo:q===!0?Jd:void 0,exceptionTooltipStyle:{textAlign:"center",maxWidth:"250px",padding:`12px ${t.Space.sp2}`}}}),z=A.map(D=>D.value));const M={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:Y,subTitle:V}=Me("transaction_categorization").allDoneText,b=C.map(D=>D.transactionId),P=m.useMemo(()=>s.totalCountByTab[e],[e,s.totalCountByTab]),ie=m.useMemo(()=>C.reduce((ee,H)=>{const q=Object.keys(H.transactionReviewLocalData.lineItemById).length;return ee+(q>0?q:1)},0)<s.totalCountByTab[e]?C.length+1:C.length,[C,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:()=>S(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"&&C.length===0?n.jsxRuntimeExports.jsx(pt,{tab:"transaction_categorization",title:Y,subTitle:V,"data-testid":t.generateDataTestId("transaction-categorization-empty-table-section")}):B==="Not-Started"||B==="In-Progress"&&C.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:F,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:D,ref:ee,onChange:H}})=>n.jsxRuntimeExports.jsx(So.Provider,{value:{value:D,mode:"off",allCheckBoxValues:z,index:0,sortKey:v.sortKey,sortOrder:v.sortOrder,fetchState:B,isDisabled:o,groupLabelCheckBox:M,onColumnSortConfigChanged:Q,ref:ee,onChange:H,selectedTab:e},children:n.jsxRuntimeExports.jsx(n.AutoSizer,{children:({height:q,width:je})=>n.jsxRuntimeExports.jsx(n.InfiniteLoader,{isItemLoaded:Z,itemCount:P,loadMoreItems:ne,children:({onItemsRendered:Ee,ref:ce})=>n.jsxRuntimeExports.jsx(n.VariableSizeList,{ref:R=>{ce(R),K.current=R},height:q,itemCount:ie,itemKey:R=>C[R]?.transactionId,innerElementType:Zd,onItemsRendered:Ee,width:je,style:{willChange:"auto"},overscanCount:Ul,itemSize:G,itemData:{checkboxes:A,value:D,allCheckBoxValues:z,groupLabelCheckBox:M,categorizationGroupValue:b,transactionLocalData:C,mode:"always_on",setRowHeight:J,isItemLoaded:Z,ref:ce,onChange:H,selectedCheckBoxTransactionIds:I},initialScrollOffset:s.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:R})=>{Se(R)},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:j}=Xd(),{children:y,style:S,...f}=e;return o==="Completed"?n.jsxRuntimeExports.jsxs(au,{ref:d,style:{...S,width:"auto"},...f,children:[n.jsxRuntimeExports.jsx(cu,{children:n.jsxRuntimeExports.jsx(t.CheckBoxWithLabel,{selectionLimit:W.MAX_SELECTION_LIMIT,value:s,checkBox:{label:n.jsxRuntimeExports.jsx(eu,{children:n.jsxRuntimeExports.jsx(go,{sortConfig:{sortKey:c,sortOrder:r},isDisabled:u,onColumnSortConfigChanged:j})}),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:E=>t.onChangeHandler({event:E,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:j,selectedCheckBoxTransactionIds:y}=l,S=m.useRef(null),f=t.useWindowSizeContext();if(m.useEffect(()=>{S.current?.firstElementChild!=null&&d(e,S.current.firstElementChild.clientHeight)},[e,S,f,r[e]?.transactionReviewLocalData]),x(e)===!0){const E=a[e];return n.jsxRuntimeExports.jsx(Ps,{style:{...s,paddingBottom:t.Space.sp0,paddingRight:t.Space.sp8,width:"100%",flex:"1"},ref:S,children:n.jsxRuntimeExports.jsx(t.CheckBoxWithLabel,{selectionLimit:W.MAX_SELECTION_LIMIT,checkBox:E,value:p,groupLabelCheckBox:u,allCheckBoxValues:c,mode:E.isDisabled==="readonly"||y.includes(E.value)===!1&&y.length>=W.MAX_SELECTION_LIMIT?"off":"always_on",draggable:!1,isDisabled:E.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:j})})},o[e])}else return n.jsxRuntimeExports.jsx(Ps,{style:{...s,paddingBottom:t.Space.sp0,paddingRight:t.Space.sp8,width:"100%",flex:"1"},ref:S,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:j,onFetchTransactionCategorizationList:y,onSaveUpdateTransactionCategorization:S,onUpdateSelectedCheckboxTransactionIds:f,onFetchRecommendationsForEntityCategorization:E,onFetchRecommendationsForEntityCategorizationWithCustomer:g})=>{const[w,O]=m.useState({transactionId:void 0,lineItemId:void 0}),$=m.useRef(),B=m.useRef({}),{useDynamicConfig:v}=t.useZeniFeatureContext(),{configValue:C}=v(t.DynamicConfigNames.enableUncategorizedExpenseCategory),I=C?.uncategorized_expense_category_enabled===!0,L=(z,A,M,Y)=>{const V={...B.current};V[A]==null&&(V[A]=[]);let b=V[A].findIndex(P=>P.lineId===z);if(b===-1){const P={lineId:z,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};V[A].push(P),b=V[A].length-1}else{const P=V[A][b];V[A][b]={...P,category:{...P.category,recommendationTypesViewed:[...P.category.recommendationTypesViewed]},class:{...P.class,recommendationTypesViewed:[...P.class.recommendationTypesViewed]},vendor:{...P.vendor,recommendationTypesViewed:[...P.vendor.recommendationTypesViewed]}}}Y!=null&&Y!==""&&!V[A][b][M].recommendationTypesViewed.includes(Y)&&V[A][b][M].recommendationTypesViewed.push(Y),B.current=V},{transactions:U,transactionLocalData:T,accountsHierarchyList:K,classHierarchyList:_,accountList:F,classList:G,selectedCheckBoxTransactionIds:J,uncategorizedAccounts:N}=s,ne=n.useForm({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>zs(J,T,K,_,u.entityAutoCompleteView),[K,_,J,T,u.entityAutoCompleteView]),values:m.useMemo(()=>zs(J,T,K,_,u.entityAutoCompleteView),[K,_,J,T,u.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});m.useEffect(()=>()=>{r("expenseAutomationPage")},[]),m.useEffect(()=>{J.length>0?r(fn):r("expenseAutomationPage")},[J,r]);const Se=ne.handleSubmit(z=>{const A=z[cn],M=B.current;S(e,A,M),A.forEach(Y=>{delete B.current[Y]})}),Z=async(z,A)=>{if(z!=null){if(z===cn){const M=ne.getValues(cn);if(M.length<J.length){f(e,M);return}if(M.length===W.MAX_SELECTION_LIMIT){f(e,M);return}const Y=M[M.length-1],V=A[Tt].findIndex(P=>P.transactionId===Y),b=ne.getValues(`${Tt}.${V}.lineInfo`);if(b!=null){let P=!1;if(b.every(D=>(P=W.isAccountUncategorized(N,D[be].selectedOption,I?["income"]:void 0),!!D[be].selectedOption&&D[be].selectedOption!=null&&!P&&!!D[qe].selectedOption&&!!D[et].selectedOption))===!0){f(e,M);return}else{const D=M.filter(ee=>ee!==Y);f(e,D);return}}return}if(z.includes(be)===!0||z.includes(qe)===!0){const M=parseInt(z.split(".")[1]),Y=parseInt(z.split(".")[3]),V=ne.getValues(`${Tt}.${M}.lineInfo`),b=V[Y];if(z.includes(be)||z.includes(qe)){const{transactionId:P,lineId:ie,recommendations:D}=b;if(V!=null){const ee=b[be].selectedOption,H=b[qe].selectedOption,q=b[et].selectedOption,je=b[et].selectedOption,Ee=b[et].defaultOptions,ce=Ee?.find(le=>le.options?.find(Be=>Be.value===q))?.options?.find(le=>le.value===q)?.label,R=Ee?.find(le=>le.options?.find(Be=>Be.value===je))?.options?.find(le=>le.value===je)?.label,re=u.entityAutoCompleteView.vendor.find(le=>le.qboId===q),fe=u.entityAutoCompleteView.customer.find(le=>le.qboId===je),Oe=D.find(le=>le.vendor?.qboId===q)?.vendor,we=q||re?.qboId||Oe?.qboId?{id:q??re?.qboId??Oe?.qboId??"",name:ce??re?.name??Oe?.name??"",logo:re?.logo??Oe?.logo}:void 0,Ie=je||fe?.qboId?{id:je??fe?.qboId??"",name:R??fe?.name??"",logo:fe?.logo}:void 0,me=F.find(le=>le.qboId===ee),Ue=G.find(le=>le.classId===H),Fe=s.transactionLocalData.find(le=>le.transactionId===P)?.transactionReviewLocalData.lineItemById[ie].account,ze=s.transactionLocalData.find(le=>le.transactionId===P)?.transactionReviewLocalData.lineItemById[ie].class;x(e,P,ie,U,we?.id,Ie?.id,z.includes(be)&&me!=null?{...me,isPreFilled:!1}:Fe,z.includes(qe)&&Ue!=null?{...Ue,isPreFilled:!1}:ze,void 0,D,I)}return}}if(z.includes(et)){const M=parseInt(z.split(".")[1]),Y=parseInt(z.split(".")[3]),V=ne.getValues(`${Tt}.${M}.lineInfo`);if(V!=null){const b=V[Y],{transactionId:P,recommendations:ie}=b,D=b[et].selectedOption,ee=b[et].selectedOption,H=b[et].defaultOptions,q=H?.flatMap(me=>me.options)?.find(me=>me.value===D)?.label,je=H?.flatMap(me=>me.options)?.find(me=>me.value===ee)?.label,Ee=u.entityAutoCompleteView.vendor.find(me=>me.qboId===D),ce=u.entityAutoCompleteView.customer.find(me=>me.qboId===ee),R=ie.find(me=>me.vendor?.qboId===D)?.vendor,re=D!==""&&D!=null?D:q!==""&&q!=null?q:"",fe=(Ee?.qboId!=null&&Ee.qboId!==""?Ee.qboId:null)??(R?.qboId!=null&&R.qboId!==""?R.qboId:null)??(D!=null&&D!==""?D:null),Oe={id:fe??q??"",name:q??Ee?.name??R?.name??"",logo:Ee?.logo??R?.logo},we=ce?.qboId!=null&&ce.qboId!==""?{id:ce.qboId??ee??"",name:je??ce.name??"",logo:ce.logo}:void 0,Ie=U.find(me=>me.id===P);if(Ie!=null){const me=s.transactionLocalData.find(Be=>Be.transactionId===Ie.id)?.transactionReviewLocalData,Ue=me?.lineItemById[b.lineId],Fe=W.isVendorTransaction(Ie)===!0?me?.selectedEntity:Ue?.selectedEntityLine,ze=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:q??re,type:"vendor",qboId:re,zeniId:re,logo:Oe.logo,isPreFilled:Fe?.id===fe&&Fe?.isPreFilled}:void 0,le={transactionId:{id:Ie.id,type:Ie.type},transaction:Ie,lineIds:Ie.type!=="journal_entry"?Ie.lines?.map(Be=>Be.id)??[]:[b.lineId]};ze?.type==="customer"?g(b.amount.amount,le,!1,e,ze,we,I):E(b.amount.amount,le,!1,e,ze,Oe,I)}}o.onCancelAutoComplete?.();return}}};m.useEffect(()=>{const z=ne.watch((A,{name:M})=>{M!=null&&A!=null&&n.defer(()=>Z(M,A))});return()=>{z.unsubscribe()}}),m.useEffect(()=>{if(u.entityAutoCompleteView.fetchState==="Completed"){const z=s.transactionLocalData.find(A=>A.transactionId===w.transactionId);if(z){const{transactionReviewLocalData:A}=z,{selectedEntity:M}=A,Y=w?.lineItemId??A.sortedLineItems[0],V=A.lineItemById[Y],b=V.selectedEntityLine;$.current?.(t.getGroupedForPayeeEntityOptionsWithCOT(u.entityAutoCompleteView,M??b,V?.recommendationsWithCOT??[]))}O({transactionId:void 0,lineItemId:void 0})}},[u.entityAutoCompleteView.fetchState]);const Q=(z,A)=>{o.onAutoCompleteInputChange?.(z),$.current=A},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,{...ne,children:n.jsxRuntimeExports.jsx("form",{id:Fs(fn),onSubmit:Se,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:O,onUpdateTransactionCategorizationUIState:h,onUpdateScrollYOffSetTransactionCategorizationUIState:j,onFetchTransactionCategorizationList:y,onTransactionCategorizationRowClick:d,vendorLoadOptions:Q,vendorSearchAutoCompleteData:u,vendorSearchAutoCompleteActions:o,containerRef:ae,isCOTEnabled:c,cotTracking:{onCOTView:L},isUncategorizedExpenseCategoryEnabled:I})})})})},Fs=e=>`${e}_form`,zs=(e,s,l,a,p)=>({[Tt]:s.map(o=>pu(o.transactionId,o.transactionReviewLocalData,l,a,p)),[cn]: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,j=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:j,allOptions:t.getGroupedClassOptionsWithCOT(a,d.recommendationsWithCOT)},[et]:{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:j,monthEndInsightsCustomerRequestData:y,allThreadsSectionOpen:S,loggedInUser:f,isCOTEnabled:E,setCurrentFooterFormId:g,onFetchRecommendationsForEntityCategorization:w,onFetchRecommendationsForEntityCategorizationWithCustomer:O,onTransactionCategorizationRowClick:$,onFetchMissingReceiptsList:B,onMissingReceiptsRowClick:v,onUploadReceiptAttachment:C,onUploadReceiptComplete:I,onUploadReceiptFetchStatus:L,onReconTabColumnSortConfigChanged:U,onReloadReconciliationListPage:T,onUpdateReconcileTabLocalData:K,onUpdateMissingReceiptsUIState:_,onFetchTransactionCategorizationList:F,onUpdateTransactionCategorizationUIState:G,onUpdateScrollYOffSetTransactionCategorizationUIState:J,handleJeScheduleClick:N,ignoreRecommendedJeSchedule:ne,onJESchedulesFormDataChange:Se,onPostJESchedule:Z,setLocalDataForCategoryAndClass:Q,resetTransactionCategorizationLocalData:ae,updateSelectedVendorForTransaction:z,onSaveUpdateTransactionCategorization:A,onUpdateSelectedCheckboxTransactionIds:M,improveMonthEndInsightsUsingZeniGPTClick:Y,onRemoveFileAttachment:V,onUpdateFileAttachment:b,onCloseAllThreadsSection:P,onEditMonthEndInsightsClick:ie,previewMonthEndReport:D,saveMonthEndReport:ee,onOpenFileAttachmentSnackBar:H,onCloseFileAttachmentSnackBar:q,onClickCustomerRequest:je,sendMonthEndReport:Ee,markAsReview:ce,onReloadPage:R,onBackClick:re,updateOperatingExpensesIdsForReview:fe,updateSectionCollapseStatus:Oe,onFetchReimbursementView:we,redirectToVendorDetailPage:Ie,updateSectionIdsForReview:me,onUpdateFluxAnalysisUIState:Ue,fetchFluxViewOnScroll:Fe,onFetchFluxViewList:ze,setIsJeAccountSettingsOpened:le,onReviewClicked:Be,setOpenDrawerClicked:Ye,onEstablishConnectionClick:St,onFetchLinkTokenClick:Ze,updateReconReviewTabLocalData:at,onReconReviewTabColumnSortConfigChanged:mt,onSaveReconciliation:Rt,onSaveReconciliationReview:xt,onReconMatchedTransactionClick:ge,onReconListPageScroll:xe,onAddStatementClick:Ce}=e,{currentSelectedView:te,missingReceipts:He,transactionView:tt,selectedPeriod:nt,monthEndInsights:Ge,selectedTransactionCategorizationTab:$t,reconciliation:Ke}=u;switch(te){case"transaction_categorization":return tt.fetchState==="Completed"&&tt.transactionLocalData.length===0?n.jsxRuntimeExports.jsx(pt,{tab:te,title:Me(te).allDoneText.title,subTitle:Me(te).allDoneText.subTitle}):n.jsxRuntimeExports.jsx(uu,{setCurrentFooterFormId:g,selectedPeriod:nt,selectedTab:$t,sectionId:Tt,transactionView:tt,receiptUploadEndpoint:c,authParams:o,onUpdateTransactionCategorizationUIState:G,onUpdateScrollYOffSetTransactionCategorizationUIState:J,onFetchTransactionCategorizationList:F,onTransactionCategorizationRowClick:$,setLocalDataForCategoryAndClass:Q,resetTransactionCategorizationLocalData:ae,updateSelectedVendorForTransaction:z,onSaveUpdateTransactionCategorization:A,onUpdateSelectedCheckboxTransactionIds:M,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d,onFetchRecommendationsForEntityCategorization:w,onFetchRecommendationsForEntityCategorizationWithCustomer:O,isCOTEnabled:E});case"je_schedules":return n.jsxRuntimeExports.jsx($c,{setIsJeAccountSettingsOpened:le,expenseAutomationViewSelector:u,setResetJeAccountSettingsForm:p,currentFooterFormId:s,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:a,setCurrentFooterFormId:g,handleJeScheduleClick:N,ignoreRecommendedJeSchedule:ne,onJESchedulesFormDataChange:Se,onPostJESchedule:Z,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d});case"missing_receipts":return He.fetchState==="Completed"&&He.transactions.length===0?n.jsxRuntimeExports.jsx(pt,{tab:te,title:Me(te).allDoneText.title,subTitle:Me(te).allDoneText.subTitle}):n.jsxRuntimeExports.jsx(jl,{onUpdateMissingReceiptsUIState:_,onFetchMissingReceiptsList:B,missingReceipts:He,receiptUploadEndpoint:c,authParams:o,selectedPeriod:nt,onMissingReceiptsRowClick:v,onUploadReceiptComplete:I,onUploadReceiptFetchStatus:L,onUploadReceiptAttachment:C});case"month_end_insights":if(Ge!=null&&u.monthEndCloseChecksView.monthEndCloseChecks!=null){if(Ge.fetchState==="Not-Started"||Ge.fetchState==="In-Progress"||Ge.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||Ge.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return n.jsxRuntimeExports.jsx(vo.BusyIndication,{fetchState:"In-Progress"});{const Ct={application:"cockpit",companyId:r,entityId:r,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:Ge.companyName,url:window.location.href},{url:Ft,...Lt}=Ct,zt={...Lt};return n.jsxRuntimeExports.jsx(hu,{children:n.jsxRuntimeExports.jsx(ql,{allThreadsSectionOpen:S,customerRequestData:y,companyId:r,enableZeniGPTFeature:h,filterMetaData:zt,selectedPeriod:u.selectedPeriod,improveUsingZeniGPTClick:Y,isZeniUser:f.userEmail?.includes("zeni.ai")??!1,monthEndReportView:Ge,newThreadMetadata:Ct,onClickCustomerRequest:je,onCloseAllThreadsSection:P,onCloseFileAttachmentSnackBar:q,onOpenFileAttachmentSnackBar:H,onRemoveFileAttachment:V,onUpdateFileAttachment:b,previewMode:j,previewMonthEndReport:D,saveMonthEndReport:ee,onEditClick:ie,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(pt,{tab:te,title:Me(te).allDoneText.title,subTitle:Me(te).allDoneText.subTitle}):n.jsxRuntimeExports.jsx(rc,{fluxAnalysis:u.fluxAnalysis,selectedPeriod:u.selectedPeriod,markAsReview:ce,onReloadPage:R,onBackClick:re,updateOperatingExpensesIdsForReview:fe,updateSectionIdsForReview:me,onUpdateFluxAnalysisUIState:Ue,setCurrentFooterFormId:g,fetchFluxViewOnScroll:Fe,onFetchFluxViewList:ze,updateSectionCollapseStatus:Oe,onFetchReimbursementView:we,redirectToVendorDetailPage:Ie});case"reconciliation":return n.jsxRuntimeExports.jsx(Va,{onReconListPageScroll:xe,onReloadReconciliationListPage:T,currentFooterFormId:s,reconciliation:Ke,companyId:r,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d,onReviewClicked:Be,setOpenDrawerClicked:Ye,setCurrentFooterFormId:g,onReconTabColumnSortConfigChanged:U,onUpdateReconcileTabLocalData:K,onEstablishConnectionClick:St,onFetchLinkTokenClick:Ze,updateReconReviewTabLocalData:at,onReconReviewTabColumnSortConfigChanged:mt,onSaveReconciliation:Rt,onSaveReconciliationReview:xt,onReconMatchedTransactionClick:ge,onAddStatementClick:Ce});default:return n.jsxRuntimeExports.jsx(pt,{tab:te,title:Me(te).allDoneText.title,subTitle:Me(te).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:Te,texts:{maxLimitReached:Cu,confirmAction:Eu},headers:vu,create:bu,strings:Wt,texts:Pt,cancel:wu,confirm:Iu,monthsByIndex:ku},dateFormat:{visual:{MMMDCommaYYYYformat:qs}},expenseAutomation:Vt}=t.appLocale.getLocalizedStrings(),Tu=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:j,resetTransactionCategorizationLocalData:y,updateOperatingExpensesIdsForReview:S,clearJeScheduleLocalData:f,onSaveReconciliation:E}=e,{currentSelectedView:g,allSteps:w,missingReceipts:O,jeSchedules:$,fluxAnalysis:B,monthEndInsights:v,transactionView:C,selectedTransactionCategorizationTab:I,reconciliation:L,selectedPeriod:U}=s,[T,K]=m.useState("expenseAutomationPage"),[_,F]=m.useState(()=>{}),[G,J]=m.useState(!1),N=t.useWindowSizeContext(),ne=!!e.loggedInUser.userEmail?.includes("zeni.ai"),Se=ne?t.ThreadsContext:t.NonZeniUsersThreadsContext,{openThread:Z,setOpenThread:Q}=m.useContext(Se),[ae,z]=m.useState(!1),[A,M]=m.useState(!1),Y=w.find(ge=>ge.step===g),{nextStep:V,previousStep:b}=Ro(w,g),{uiState:{searchString:P,pageToken:ie},totalCountByTab:D,transactions:ee,fetchStateByTransactionTabs:H,transactionLocalData:q}=C,{selectedReconAccount:je,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:Ee}}}}=L;let ce="Not-Started",R="complete";switch(g){case"missing_receipts":ce=O.refreshStatus.fetchState,R=O.completionStatus;break;case"je_schedules":ce=$.refreshStatus.fetchState,R=$.completionStatus;break;case"month_end_insights":v!=null&&(ce=v?.fetchState);break;case"flux_analysis":ce=B.refreshStatus.fetchState,R=B.completionStatus;break;case"transaction_categorization":ce=C.refreshStatus.fetchState,R=C.completionStatus;break;case"reconciliation":je==null?(ce=L.refreshStatus.fetchState,R=L.completionStatus):(ce=L.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",R=L.completionStatus)}const re=()=>{_()},{saveStatus:fe,selectedCheckBoxTransactionIds:Oe}=C,we=()=>{const ge=co(s.fluxAnalysis.sections,s.fluxAnalysis.reviewOperatingExpensesIds),xe=W.dateNow(),{month:Ce,year:te}=U,tt=W.dateNow().set("month",Ce-1).set("year",te).endOf("month");switch(T){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ge===!0?Te.markAsReviewed:Pt.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,N,Pt.vendor,g),cancelBtn:{label:Te.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{S([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Te.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:fe.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:wn(Oe.length,W.MAX_SELECTION_LIMIT,N,Pt.transaction,g),cancelBtn:{label:Te.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{y(I,ee.map(nt=>nt.id),U,!1,D[I],W.getLineItemsByTransactionIdsFromLocalData(q,I),p,ie)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:Te.next,backBtnLabel:Te.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Te.next,style:{justifyContent:"space-evenly"},isDisabled:l||Y?.isNextDisabled,suffixIcon:n.jsxRuntimeExports.jsx(Ws,{}),onClick:()=>{r(V.step)}},cancelBtn:{label:Te.back,isDisabled:l||Y?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:n.jsxRuntimeExports.jsx(Vs,{}),onClick:()=>{r(b.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Te.reconcile,backBtnLabel:Te.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Te.reconcile,onClick:()=>{E({reconcileAction:"reconcile"})},isDisabled:!(L.reconciliationTabsState.balances.variance.amount===0&&xe.isAfter(tt)),isLoading:L.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:wn(Ee.length,1/0,N,Pt.transaction,g),cancelBtn:{onClick:()=>{E({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:L.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:Te.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:Te.save,backBtnLabel:Te.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Te.save,isLoading:$.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>re(),label:Te.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const nt=g==="reconciliation"&&s.reconciliation.selectedTab==="review"&&s.reconciliation.selectedAccountId!=null,Ge=g==="reconciliation"&&s.reconciliation.selectedAccountId==null,$t=g==="reconciliation"&&s.reconciliation.selectedTab==="reconcile"&&s.reconciliation.selectedAccountId!=null,Ke=V.step==="month_end_insights"&&(g==="flux_analysis"&&(s.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||s.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||Ge),Ct=g==="transaction_categorization"&&s.selectedTransactionCategorizationTab==="review",Ft=g==="transaction_categorization"&&s.selectedTransactionCategorizationTab==="autoCategorized",Lt=s.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&(a||Y?.isNextDisabled===!1),zt=V.step==="month_end_insights"&&(Ge||g==="flux_analysis")?!Lt:Y?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:Te.next,backBtnLabel:Te.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ke===!0?Lu(s.selectedPeriod.month):Te.next,style:{justifyContent:"space-evenly"},isDisabled:zt,suffixIcon:n.jsxRuntimeExports.jsx(Ws,{}),onClick:()=>{Ct?o("autoCategorized"):nt?c("reconcile"):r(V.step)}},cancelBtn:{label:Te.back,isDisabled:l||Y?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:n.jsxRuntimeExports.jsx(Vs,{}),onClick:()=>{Ft?o("review"):$t?c("review"):nt?j():r(b.step)}}}}}},Ie=()=>{switch(T){case"expenseAutomationFluxPage":return{confirmAction:()=>{z(!1),S([]),h()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{z(!1),y(I,ee.map(ge=>ge.id),U,!1,D[I],W.getLineItemsByTransactionIdsFromLocalData(q,I),p,ie),h()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{z(!1),f(),h()}};default:return{confirmAction:()=>{z(!1)},confirmationDescription:Wt.empty}}},me=()=>{T==="expenseAutomationFluxPage"||T==="expenseAutomationJESchedulePage"||T==="expenseAutomationTransactionsPage"?z(!0):h()},{primaryBtn:Ue,cancelBtn:Fe,leftSideComponent:ze}=we(),{confirmAction:le}=Ie(),Be=ge=>{if(g==="transaction_categorization"&&(ge==="autoCategorized"||ge==="review"))return{hideCountInTab:D[ge]>Vt.common.numbers.maximumCount,count:D[ge],isFetching:H[ge].fetchState==="In-Progress"};if(g==="reconciliation"){const{reconciliation:xe}=s,{selectedAccountId:Ce}=xe;return Ce==null?{count:0,isFetching:!1}:ge==="review"?{count:xe.accountReconciliationsByAccountID[Ce]?.accountReconEntity?.transactionsToReview.length,isFetching:xe.accountReconciliationsByAccountID[Ce]?.transactionFetchState.fetchState==="In-Progress"}:{count:xe.accountReconciliationsByAccountID[Ce]?.accountReconEntity?.transactionsToReconcile.length,isFetching:xe.accountReconciliationsByAccountID[Ce]?.transactionFetchState.fetchState==="In-Progress"}}},Ye=g==="reconciliation"&&L.selectedAccountId!=null&&L.selectedReconAccount!=null,{month:St,year:Ze}=U,at=W.dateNow().set("month",St-1).set("year",Ze),mt=at.startOf("month").format(qs),Rt=at.endOf("month").format(qs),xt=`${mt} ${Wt.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:Vt.confirmationDescription})}):null,n.jsxRuntimeExports.jsxs(Ru,{children:[n.jsxRuntimeExports.jsx(ai,{onBack:j,navBarCustomElement:g==="reconciliation"&&L.selectedAccountId!=null?n.jsxRuntimeExports.jsx($u,{reconciliation:L}):void 0,onReconTabUpdate:c,currentRecontab:L.selectedTab,reconcileDetailPageFetchState:L.selectedAccountId!=null?L.accountReconciliationsByAccountID[L.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:Ye?L.selectedAccountId:void 0,currentSelectedView:g,titleStyle:{justifyContent:"center",marginLeft:t.Space.sp0},headerData:Me(g,D.autoCategorized,Ye?L.selectedAccountId:void 0,Ye?L.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,Ye?xt:void 0),searchText:P,currentTab:I,getTabCountAndFetchState:Be,completionStatus:R,forceShowSubtitle:G===!0||g==="je_schedules"&&($.fetchState==="In-Progress"||$.accountSettingsView.fetchState==="In-Progress"),refreshStatus:ce,companyId:e.companyId,companyName:s.monthEndInsights?.companyName??Wt.empty,isZeniUser:ne,onAllThreadsClick:()=>{Z!=null&&Q(null),M(!0)},onUpdateTab:o,onSearchTextChanged:x,onRefresh:d,onClose:me}),n.jsxRuntimeExports.jsx(ju,{...e,isCOTEnabled:u,setIsJeAccountSettingsOpened:J,setResetJeAccountSettingsForm:F,allThreadsSectionOpen:A,setCurrentFooterFormId:K,currentFooterFormId:T,onCloseAllThreadsSection:()=>M(!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:ze,cancelBtn:Fe,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(kn,{children:n.jsxRuntimeExports.jsx(Pu,{})}),n.jsxRuntimeExports.jsx(Tn,{children:x?.fetchState==="In-Progress"?n.jsxRuntimeExports.jsxs(An,{children:[n.jsxRuntimeExports.jsx(Mt,{height:25,width:120}),n.jsxRuntimeExports.jsx(Mt,{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:Vt.accountRecon.reconciliation.headers.bankBalance})]})})]}),n.jsxRuntimeExports.jsxs(In,{children:[n.jsxRuntimeExports.jsx(kn,{children:n.jsxRuntimeExports.jsx(zu,{})}),n.jsxRuntimeExports.jsx(Tn,{children:x?.fetchState==="In-Progress"?n.jsxRuntimeExports.jsxs(An,{children:[n.jsxRuntimeExports.jsx(Mt,{height:25,width:120}),n.jsxRuntimeExports.jsx(Mt,{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:Vt.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," ",Pt.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," ",Pt.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(kn,{children:n.jsxRuntimeExports.jsx(Fu,{})}),n.jsxRuntimeExports.jsx(Tn,{children:x?.fetchState==="In-Progress"?n.jsxRuntimeExports.jsxs(An,{children:[n.jsxRuntimeExports.jsx(Mt,{height:25,width:120}),n.jsxRuntimeExports.jsx(Mt,{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:Vt.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=ku[e];return`${bu}${Wt.space}${s}${Wt.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
|
-
`,kn=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
|
-
`,Tn=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
|
-
`,Mt=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=Tu;exports.getNextAndPreviousSteps=Ro;exports.uniqueFormName=Co;
|