@zeniai/web-cockpit-ui 1.13.91-prod → 1.13.92-dev
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/assets/{ACHDetailsPage---jqahtW-DnJlZXJA.js → ACHDetailsPage-DSxVnTLA-DXaPhpBb.js} +1 -1
- package/dist/assets/{AIPerformancePage-CqtdCyg8-CEIQfHdy.js → AIPerformancePage-DpJmdFIS-DdYjoAnf.js} +36 -36
- package/dist/assets/{AccountInfoPage-Bj1CYa-r-C5F-Leu2.js → AccountInfoPage-UxE6vaxM-CTCDVeHj.js} +2 -2
- package/dist/assets/AccountInfoPageContent-B8luWP8D-BvO-xoVa.js +149 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-B4UwcNN9-DTaBhUge.js → AccountReconDetailsDrawerPage-CRuSLa04-C6RSAAh5.js} +18 -18
- package/dist/assets/AccountRow-DVnBiB7_-BUb357r1.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-DJRAw09x-CDwLvvA4.js → AccountsPromoCardStack-oPvi6hmo-Cb1NCYmc.js} +26 -26
- package/dist/assets/{AddAddressForCardDrawer-C16ksTIf-B6JjehbJ.js → AddAddressForCardDrawer-Bl8FShie-B0Exe6lR.js} +1 -1
- package/dist/assets/{AddToWalletPage-CDP1oPrv-CxCKIfKE.js → AddToWalletPage-BykgUTfa-Cb4sl07y.js} +22 -22
- package/dist/assets/{AgingReportsPage-BE4plS7V-3TKSPA3a.js → AgingReportsPage-CtpuS77Y-CRkQ2tHo.js} +7 -7
- package/dist/assets/{AllUserItems-hoI2_gnV-BLP0YBON.js → AllUserItems-zqRosy03-ampV7sMY.js} +8 -8
- package/dist/assets/{ApAgingDetailPage-Lxprtz8c-BEC8jKJb.js → ApAgingDetailPage-B4dHhJE1-DX7CQmyB.js} +2 -2
- package/dist/assets/{AppBasePage-DNOkJf4q--8-X2sXp.js → AppBasePage-ntAldChd-Da_5AGnO.js} +1 -1
- package/dist/assets/{AppDrawerContent-DG2Jr298-CbWkIlEM.js → AppDrawerContent-LRG0OW3a-BgVe2pK0.js} +11 -11
- package/dist/assets/{ApprovalRulesSettingsPage-DnKXln0A-Zj5-kWYr.js → ApprovalRulesSettingsPage-CFCbNOcB-CE0uOkBi.js} +1 -1
- package/dist/assets/ArAgingChart-BmfMCB8_-Bg3m3QlY.js +24 -0
- package/dist/assets/{ArAgingDetailPage-Djsocm6M-C26Jn884.js → ArAgingDetailPage-C2lhYsGV-BhHfiwwM.js} +3 -3
- package/dist/assets/{AttachmentView-C3AzH7cN-BUOusCJ1.js → AttachmentView-CQlsMYN3-DG4dPEyp.js} +8 -8
- package/dist/assets/{BankAccountSection-6zosSfPV-_bfleBk6.js → BankAccountSection-D1tQzNSO-piXQT6-V.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-CWeN3me0-CDpqfTVJ.js → BankAccountWarningSection-Dj_S6brX-2DYBSMY8.js} +8 -8
- package/dist/assets/{BankConnectionsSettingsPage-C6e0pgD4-0H1TdsJc.js → BankConnectionsSettingsPage-UQAJXShM-C8thl88u.js} +22 -22
- package/dist/assets/{BillDetailPage-DyIokQbf-DgpBGeoJ.js → BillDetailPage-BOy1MkMT-CTieBS_0.js} +8 -8
- package/dist/assets/{BillPayApprovalRuleDetailPage-BOhQfwEj-BCMyOQcf.js → BillPayApprovalRuleDetailPage-C7c04fyW-D_3vBsw2.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-CSua3b4v-BNVDIyiJ.js → BillPayApprovalRulesPage-D7vn36vA-CcaFc_r3.js} +7 -7
- package/dist/assets/{BillPayPromoPage-CtenNypw-BC9LkoWX.js → BillPayPromoPage-VCQ0v0Ko-_chCPS2P.js} +2 -2
- package/dist/assets/{BillPaySetUpPage-CAnvQ_-Q-CbyucZLN.js → BillPaySetUpPage-MD1PbTMB-DAVLcuLh.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CjSAhEFl-BzqmoSoH.js → BillingSettingsPage-B0U9RKLC-CSDiDt5p.js} +4 -4
- package/dist/assets/{BillsBulkReviewDrawerPage-B62rj2kN-DhbxqMjq.js → BillsBulkReviewDrawerPage-CStmvhgL-CRjbCjmC.js} +1 -1
- package/dist/assets/{BoxItem-Cqmd_7h4-Dv6Gxo6e.js → BoxItem-D3v5T6bP-DCh7smhZ.js} +1 -1
- package/dist/assets/BusinessVerificationPage-BIba2-zs-BbKHm-00.js +140 -0
- package/dist/assets/{CardNumberSubText-DszoXtgg-DZyC1JnT.js → CardNumberSubText-DoWj5vAy-CUdY7eYA.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DAwARNZD-7CF1-wWW.js → CashbackDetailPage-CPz0J2HA-mlCo9BqT.js} +9 -9
- package/dist/assets/{ChargeCardDetailPage-BzbR-Z63-B8EROlnT.js → ChargeCardDetailPage-DxE5h1S5-_Ar3evhS.js} +29 -29
- package/dist/assets/{ChargeCardListPage-DSOp7sFg-BUxYEe2Y.js → ChargeCardListPage-fXayrykw-DfSXe2y4.js} +10 -10
- package/dist/assets/{ChargeCardListTable-BE4it4le-DayjC6nz.js → ChargeCardListTable-C-WxFg6W-ZTAQI24j.js} +103 -103
- package/dist/assets/ChargeCardPromoPage-CiwWzvym-CQS1Kn9Z.js +175 -0
- package/dist/assets/{ChargeCardSetupPage-Dm_N5oDM-Dwe310b8.js → ChargeCardSetupPage-ByLkUH5I-CAqoYnxa.js} +2 -2
- package/dist/assets/{ChargeCardStatementsPage-Dhqs5CF4-De2hPf6C.js → ChargeCardStatementsPage-Dsv5AXrZ-DLsXp3ds.js} +2 -2
- package/dist/assets/{ChargeCardUtils-oF0M6Gmc-C7CbDHyH.js → ChargeCardUtils-CVC43_6w-DTPKdzGf.js} +1 -1
- package/dist/assets/{ChaseOverlay-DPgGIuyV-CJPjKqgA.js → ChaseOverlay-CHWBgNa9-BGn2Q_2a.js} +7 -7
- package/dist/assets/CheckDepositDrawerPage-DySu5_BH-zAFSAP0i.js +206 -0
- package/dist/assets/{CollapsableReportTable-DMr2UDgH-BRQiHTxy.js → CollapsableReportTable-ZObwzBbY-BfOvomCm.js} +29 -29
- package/dist/assets/{CompanyOfficerDetailsSection-B_cIues7-Cxl-k5rk.js → CompanyOfficerDetailsSection-DVG0lvX--Dfy9v0Wy.js} +19 -19
- package/dist/assets/{CompanyPassportCard-CHF83hfN-Co_424o0.js → CompanyPassportCard-DBZRV0g0-BA5CzU7Q.js} +2 -2
- package/dist/assets/{CompanyPassportPage-C5W3KcDY-9FetRhxp.js → CompanyPassportPage-BoaNol0L-DnxxOJfB.js} +17 -17
- package/dist/assets/CompleteProfile-nkRKLJTF-D06O2tPg.js +36 -0
- package/dist/assets/{ConfettiBurst-DVT9EpwF-DojTLrIM.js → ConfettiBurst-BYoGZ66F-DY-7GLNq.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DVbYQaWM-CbAPJPq5.js → CreateOrEditVendorPage-C1Yx8t4M-BzNtZfYl.js} +10 -10
- package/dist/assets/{CreditCardPaymentDrawerPage-D2qT7vsE-6HiNR28B.js → CreditCardPaymentDrawerPage-DlnR16jr-Cp09nlhb.js} +10 -10
- package/dist/assets/{CreditCardPaymentPlgSection-7cmMRTQm-ByUK3A64.js → CreditCardPaymentPlgSection-CZ2vyMiF-CAkrDs6q.js} +9 -9
- package/dist/assets/{CurrencySelectField-ClhIJFVw-Cuj7jFbB.js → CurrencySelectField-vH1oB0K8-B5AHvAUJ.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-D-Ihd-H0-C2bq2dEV.js → CustomerOnboardingActivationPage-rpZmgNZo-CwICpwxp.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DEDQrgtq-a_kK-7zZ.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CUxNOK4z-DK4_uIa1.js → CustomerOnboardingDetailPageSkeleton-CFIeHxxw-SHM_Ui8B.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-B9ts3Tla-DKUZswXj.js → CustomerOnboardingNoStepsPage-BueMiyFl-46-BK9fl.js} +7 -7
- package/dist/assets/CustomerOnboardingPage-CmHXtB9v-BJU0moTi.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-iSJtAhvu-BHz78EGH.js → CustomerOnboardingProductSuitePage-I9pftf_j-DOK-Bf5L.js} +5 -5
- package/dist/assets/{Dashboard-SKeHZ5QY-DF211AQA.js → Dashboard-DcfkiicK-D3UJUCYb.js} +38 -38
- package/dist/assets/DashboardReportPage-B7J8yZR6-B09J8zzA.js +349 -0
- package/dist/assets/{DepositAccTransactionItem-DJNio75H-Dxf2gNvA.js → DepositAccTransactionItem-CP_2AL3M-BdaPu6PV.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-DTIjlF2l-BfQK5oMo.js → DepositAccTransactionListPage-C4o1y1mJ-KyIyoawm.js} +4 -4
- package/dist/assets/{DocumentSecurityBanner-CVNWDvAg-BtG0xkpK.js → DocumentSecurityBanner-C5w0d_S8-DMiwYsyK.js} +1 -1
- package/dist/assets/DomesticWireDetailsPage-t0Ebo518-CZtrAoDV.js +21 -0
- package/dist/assets/{DownloadOverlay-BLj0xso_-C6DwpnXr.js → DownloadOverlay-CPW9ebxu-B84vZ8Vf.js} +1 -1
- package/dist/assets/{DrawerPage-CEetzMMx-IRv71ZvX.js → DrawerPage-Xc2rQipJ-CbzWMzby.js} +1 -1
- package/dist/assets/{EditPeoplePage-DDUuO0Nh-DqRnFx-k.js → EditPeoplePage-CF5UleI0-DHfURipS.js} +8 -8
- package/dist/assets/{EditReimbursementDetailPage-CT8mqYr5-BidGZIIe.js → EditReimbursementDetailPage-DGCkOykv-BxliJYVA.js} +24 -24
- package/dist/assets/{EntityDetailPage-DMh6o0bo-pHSPNKBZ.js → EntityDetailPage-BykQZo8S-TLciQOdt.js} +1 -1
- package/dist/assets/{EntitySummarySection-tK_X4uAf-Dp0ODS-o.js → EntitySummarySection-Dw4PBcg_-D8XPKjkN.js} +5 -5
- package/dist/assets/{ExpenseAutomationOverviewPage-CLUiYjKg-29WBaTXV.js → ExpenseAutomationOverviewPage-BwAaZVq3-DULdspcH.js} +17 -17
- package/dist/assets/{ExpenseAutomationPage-C9biTgak-CqBGDzCQ.js → ExpenseAutomationPage-Cqiyk-AY-Cbn2hM3p.js} +82 -82
- package/dist/assets/{ExpressPayPage-DpAixmcQ-DRJERqMh.js → ExpressPayPage-D0lCczvw-DeekuCPU.js} +8 -8
- package/dist/assets/{FeaturePreviewPage-BohUqOFz-C7UREL2T.js → FeaturePreviewPage-CxZIUB8l-xGc8umN-.js} +1 -1
- package/dist/assets/{FollowStepsSection-BAUXUzTr-Bt6EnCL_.js → FollowStepsSection-CILr1_vc-DOHzLCEi.js} +10 -10
- package/dist/assets/{GlobalReviewListPage-BxYHNkut-YQAMqbD_.js → GlobalReviewListPage-DL6H7PZG-CcFAQ4Jd.js} +8 -8
- package/dist/assets/{HelpButton-8AQIbLQM-BGmSYuu4.js → HelpButton-CkSfhBfN-BCuT-w0J.js} +2 -2
- package/dist/assets/{InformationCardStack-76GlZ-Bq-D2NuF640.js → InformationCardStack-i76c5dym-B_ZpROXq.js} +2 -2
- package/dist/assets/{InsightsCardStack-CvOFi2Uu-CMXkT3ON.js → InsightsCardStack-wcWhovKK-DSw729j8.js} +9 -9
- package/dist/assets/{InsightsSection-DyF8JZIR-Ba4Edr3x.js → InsightsSection-CCzgI0uK-wk2msd_s.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-mys0-i40-D6hpCjXM.js → IntegrationsSettingsPage-B2CDE2Xd-D7F50RmA.js} +4 -4
- package/dist/assets/{InternationalWireSwiftDetailsPage-km4qEcXH-BNeowmSn.js → InternationalWireSwiftDetailsPage-DNT75nXv-Ugsofr3W.js} +7 -7
- package/dist/assets/{InternationalWireVerificationPage-DauhGM3c-FV1PNbfL.js → InternationalWireVerificationPage-BDxujQK--CFeRgIkU.js} +5 -5
- package/dist/assets/{InviteFormPage-FSL8fEXT-DcCB77N5.js → InviteFormPage-BnLBPR7X-QQpB8eQo.js} +16 -16
- package/dist/assets/{InvitePageListView-zaQ1xEHJ-bdUJ0_yl.js → InvitePageListView-7mhz_Fyy-D6doua_f.js} +32 -32
- package/dist/assets/{InvitePeoplePage-BNB36i8Y-fBOLcBoL.js → InvitePeoplePage-B8gb9N_8-DX1GZlvh.js} +2 -2
- package/dist/assets/{InvoiceUploadSection-FXrB92T6-Ee1Ti_S1.js → InvoiceUploadSection-Bes1nCJn-Be4DogKt.js} +6 -6
- package/dist/assets/{IssueChargeCardPage-D3cUp2DE-BtI5RGZ7.js → IssueChargeCardPage-DC3yIsQd-D0BAohGU.js} +21 -21
- package/dist/assets/{LabeledAddressValue-BF6r800B-_Leb_eWa.js → LabeledAddressValue-Dtw8vM0g-D81z6ltq.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DYelJL4d-B8hx-xCL.js → LabeledAddressValueField-D72yUpQl-C0ZR7mu4.js} +3 -3
- package/dist/assets/{LabeledControlledCheckBoxField-B2ATKJBH-BJtdB2bJ.js → LabeledControlledCheckBoxField-BFaru2xf-AfZiR_o0.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-B9zUAA6L-D7rl6n6N.js → LabeledCreatableSingleSelectField-CCXfjgxP-BI63rs1t.js} +6 -6
- package/dist/assets/LabeledDocumentField-aYYBY16j-D9fngETw.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-Co7u6hHL-Cpugeu34.js +59 -0
- package/dist/assets/{LabeledText-C34I_iEo-CF4V70ja.js → LabeledText-BrOLGzO5-CQVuQAJd.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B6aVL-fb-Ce6EEFHl.js → LabeledUserSingleSelectWithSubtitlesField-D-Huhkbq-B8_Gy80w.js} +5 -5
- package/dist/assets/{LabeledZeniRolesDropDownField-Caj0_1zM-C242ITAr.js → LabeledZeniRolesDropDownField-WXH8xLJq-Bz0_UVs1.js} +12 -12
- package/dist/assets/{LinkJETransactionPage-DLmZGscZ-zCMuKt6w.js → LinkJETransactionPage-NFV4Vo3i-Dh75sd9Q.js} +12 -12
- package/dist/assets/{LowBalancePopup-ll1SesgY-B6jGvSbo.js → LowBalancePopup-Bxkd2pBR-DnLeMaGm.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-DXzjYrdU-Bp3Pui0J.js → MagicLinkACHDetailsPage-BJFlUq7i-CR2iAlWE.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CUwp46Wf-D6GYUui4.js → MagicLinkDomesticWireDetailsPage-CTuaNol6-CwHBeiVQ.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-B_h0EHoZ-CNTurwbH.js → MagicLinkInternationalWireDetailsPage-L2dPsfWM-jS2Sj2EL.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BX4E-l5M-DcLhDo6l.js → MagicLinkSuccessPage-DutanrSJ-BcHGJ4_T.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DHe9TfVe-BOSN41pz.js → MagicLinkTitleSection-5B8jYoBn-ChnkNHHY.js} +2 -2
- package/dist/assets/MailingDetailsSection-DwWeiSC0-CYpVyPYc.js +21 -0
- package/dist/assets/{MeetingCalenderPopup-D4tz-H5i-DRJag4hu.js → MeetingCalenderPopup-rC3PQdjG-DZoBtMzd.js} +3 -3
- package/dist/assets/{Menu-C9u3eDJk-B6BTFoM9.js → Menu-CrSQ1yNo-Cx3bEBb1.js} +2 -2
- package/dist/assets/{MyBankConnectionsSettingsPage-DVp3h4c0-DektOgAW.js → MyBankConnectionsSettingsPage-CJjW9ymP-BqJ36Kdj.js} +8 -8
- package/dist/assets/{MyPendingActivationChargeCardListPage-BTk8mY7B-C0Py-Esb.js → MyPendingActivationChargeCardListPage-CvxqOjc7-DSUp87U3.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BdcDAwKZ-CUpx3w30.js → MyProfileSettingsPage-BX5dXulH-rLCsz38p.js} +9 -9
- package/dist/assets/{NavBarWithPicker-DbSWvh0o-CjlAab2L.js → NavBarWithPicker-CuVAj7o5-QRyCYrfU.js} +4 -4
- package/dist/assets/{NavigationArrow-BP8cU19I-B-iknftj.js → NavigationArrow-BPQ9vRqR-CA2ua3KM.js} +1 -1
- package/dist/assets/{NavigationDots-nvOimTil-DT9B51FC.js → NavigationDots-Toh5TKEv-D4TuvGNx.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-D-imjD0M-DTBK5g17.js → NewGlobalMerchantPage-B4r1haCm-V82_isUI.js} +6 -6
- package/dist/assets/NoDataChart-CVM-QPHf-C-oyhVAy.js +26 -0
- package/dist/assets/{NoDataTable-d0_62BR0-CxXAVuhp.js → NoDataTable-CM-tApqo-CD71WwmK.js} +1 -1
- package/dist/assets/{NotFoundPage-BydQGX11-Dq8fbiEG.js → NotFoundPage-I-EBmx2b-H5l_OBUP.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-BIzaZFzy-JxZ4N9IZ.js → NotificationSettingsPage-CtZ7hdMN-D-_tIuJn.js} +6 -6
- package/dist/assets/NotificationsListConfig-BAKipCDG-DNDbmhPU.js +1 -0
- package/dist/assets/{NotificationsPage-BdI4E6uL-Dtdtsrxb.js → NotificationsPage-xyLmK3l7-D0WoPK5r.js} +21 -21
- package/dist/assets/{OpExByVendorPage-Dm90CRYi-CRnxfwgA.js → OpExByVendorPage-B63DEuJM-BARCJc78.js} +5 -5
- package/dist/assets/{OverlayContainerPage-nhe7xtoR-B2VuCGmE.js → OverlayContainerPage-C0rUb6-5-BDWmQRwQ.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DhbFHH25-B_jOsETc.js → PandLWithForecastPage-uY-ajYp4-Lez30LQU.js} +6 -6
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-Debi_lWf-DgZH-stN.js → PaymentAccountSetupBillingAddressSection-DM9NYbmX-C_WC5GD-.js} +6 -6
- package/dist/assets/{PeoplePage-BACu55RO-Pf-QB0XE.js → PeoplePage-DPZj6XeQ-87NclcP_.js} +24 -24
- package/dist/assets/{PortfolioAllocationFormPage-Cjz_E3BK-0agDNn7e.js → PortfolioAllocationFormPage-De56plDa-D_5OdoiP.js} +3 -3
- package/dist/assets/{PortfolioDetails-CS2st-Mx-CqOAHDDP.js → PortfolioDetails-DiITguNZ-C9ff3dxU.js} +9 -9
- package/dist/assets/{ProductsCarousel-TB4uKZbg-jHCmwr3_.js → ProductsCarousel-BojgZxY7-C7ixhh1B.js} +9 -9
- package/dist/assets/{PromoBaseCards-BMPp9RNQ-CfCVTYBz.js → PromoBaseCards-DPAkjdDp-BSbN47iG.js} +5 -5
- package/dist/assets/{QBOConnectionDialog-B1b1wGeq-Bv09ZJ5Q.js → QBOConnectionDialog-CzuH4c1o-CmxBeQPY.js} +9 -9
- package/dist/assets/{QBOSetupSection-Bj_y0Lo2-i5olJfVN.js → QBOSetupSection-DJBfLeXn-CaDVg5Hs.js} +9 -9
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cz4RtqYb-BkpvBSQs.js → ReimbursementApprovalRuleDetailPage-CAcLCt68-CHZOZjbd.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DJlNT4Ov-Bl6ySL6S.js → ReimbursementApprovalRulesPage-edz_6MDX-C6mJ2DuI.js} +43 -43
- package/dist/assets/ReimbursementDetailPage-DD_GbfiV-DO_TXxDc.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-ppaPJby5-COCfOhRQ.js → ReimbursementPromoPage-B_HZWdXi-ujWpRxU3.js} +6 -6
- package/dist/assets/{ReimbursementSetUpPage-B6mZrzQB-Fiw0qBGy.js → ReimbursementSetUpPage-C0SNbg5D-CMixW-_k.js} +5 -5
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DS55QesG-B74D85P7.js → ReimbursementsBulkReviewDrawerPage-NOK5jPjr-DI2xKDYj.js} +1 -1
- package/dist/assets/{ReloadCard-DDDYlCsI-uet9tXMw.js → ReloadCard-CqyGWGqs-B2pPTz9i.js} +3 -3
- package/dist/assets/ReportTableViewSelector-B8ZW0kxU-_1sW9OpN.js +150 -0
- package/dist/assets/ReportsPage-DdqQgvJt-pEgVGJHX.js +120 -0
- package/dist/assets/{RevenueChart-DPkxzWaE-DuQQfz8T.js → RevenueChart-QoBLII7z-Brgj42T7.js} +15 -15
- package/dist/assets/{ReviewDetailsPage-CyF2YP3t-qsNy7OU7.js → ReviewDetailsPage-BVoI7xF7--oTVBYBc.js} +14 -14
- package/dist/assets/{ReviewOverlay-AoSgYufX-dwAI_sdq.js → ReviewOverlay-CbpylyCx-CRT_fGNL.js} +10 -10
- package/dist/assets/{RoleWithToolTip-aoWU03so-Dwlqauj8.js → RoleWithToolTip-TxLTa63q-S46u0htc.js} +4 -4
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Bfj3vclV-Bh0VQjus.js → ScheduleDetailsFixedAssetsPage-CuwxZJjj-CbljEJHF.js} +4 -4
- package/dist/assets/{ScheduleDetailsPage-B30aUjKr-yo5UZBZa.js → ScheduleDetailsPage-u0VNz7hA-DBA6XeYX.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-CStdRSyQ-DoVYhvfX.js → ScheduleSequenceTable-usJjTfAn-CsILXb5x.js} +19 -19
- package/dist/assets/{ScreenRoutes-BUy9Iwzd.js → ScreenRoutes-DfucM-A_.js} +1 -1
- package/dist/assets/{SetUpAccountSection-nul4pyeP-DU6cZy0a.js → SetUpAccountSection-DDe06VBR--XDyyAq7.js} +103 -103
- package/dist/assets/{SetUpDefaultSection-ByW3h9zl-DGn4f3RC.js → SetUpDefaultSection-B6pcOXMO-DgPwbXlv.js} +8 -8
- package/dist/assets/{SignIn-R1Rsh38G-F9AuCIeN.js → SignIn-BdhV8PbY-BEcS89H3.js} +16 -16
- package/dist/assets/{SignInScreen-Zt_tSoMj.js → SignInScreen-CQe6jUnb.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BqOQ7NY_-b4Sdc3rB.js → SpendManagementListViewPage-DNgC__pX-CtNBT1Yc.js} +4 -4
- package/dist/assets/{SpendManagementPerTabPage--2EC1Oz4-h4ycN1O9.js → SpendManagementPerTabPage-BkiWOMch-DNxdfM54.js} +36 -36
- package/dist/assets/{SpendManagementSection-COMVry1E-BWp0dXiq.js → SpendManagementSection-DuR3sx7V-wtusVJD4.js} +9 -9
- package/dist/assets/{SpendMgmtSetupAccountSection-fV4qxxEy-CCp-swkD.js → SpendMgmtSetupAccountSection-DoUKX4Sf-BWt9unUe.js} +8 -8
- package/dist/assets/{StatementItem-BksIBztP-B831iK9_.js → StatementItem-VYK0Vtgt-CDJF9Bdy.js} +8 -8
- package/dist/assets/{StatementsPage-DnAoeqze-DA62l4Hk.js → StatementsPage-CLxned7l-kbRne1uO.js} +1 -1
- package/dist/assets/{StatusSwitcher-b1A9RnRP-DAlRwEN4.js → StatusSwitcher-Jqpvk1VX-KiHu5pz2.js} +2 -2
- package/dist/assets/{SubTabSwitcher-CgJW4ZXd-DJMKxW1_.js → SubTabSwitcher-C7_JB54g-TfIjK1e4.js} +1 -1
- package/dist/assets/{SummaryCard-sEKhcIH5-5V5OHe0n.js → SummaryCard-oqK_zyxl-DP8NWbIJ.js} +1 -1
- package/dist/assets/TaskManagementPage-BDOhB7Ny-0hkaxI_I.js +508 -0
- package/dist/assets/{TimeRangeSwitcher-DQ-u6pKk-C9r3FAYu.js → TimeRangeSwitcher-AWKZ7PNb-CoqhGH2B.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-B0yxn0SJ-BcwixCzj.js → TimeframeSwitcher-BlL5woGb-Cmk__EzQ.js} +1 -1
- package/dist/assets/TimeframeSwitcherWithToggle-CRnWI6xW-CcO9Smot.js +31 -0
- package/dist/assets/{TopExCard-CTjfWfCk-C3i8kmEM.js → TopExCard-B4T3kqhZ-Boo9L6AS.js} +4 -4
- package/dist/assets/{TopExDetailPage-CdpvcVME-2JDis9q2.js → TopExDetailPage-Cx9T3i9O-Dego-R-_.js} +11 -11
- package/dist/assets/{TransactionDetailPage-DdF9FS4b-DZnceplN.js → TransactionDetailPage-CAGxHcQ9-D2MX0HZx.js} +46 -46
- package/dist/assets/{TransactionList-CHq3WONc-6OKHlFEQ.js → TransactionList-CVrK_-YB-DNCdrvzR.js} +5 -5
- package/dist/assets/{TransactionListBig-D-Gxd5n0-DanPN3il.js → TransactionListBig-BnI6EofP-_rQrLZ8Q.js} +12 -12
- package/dist/assets/{TransactionListPage-DK9-YK_1-BXggWvxO.js → TransactionListPage-vK6DdhrP-BFxBj0Xu.js} +5 -5
- package/dist/assets/{TransactionVendorDetailPage-Cc9pTpTw-B-XpZb7b.js → TransactionVendorDetailPage-IyAfkyMv-DMgJng31.js} +6 -6
- package/dist/assets/{TransferDrawerPage-DoDTECI8-BIlT9f80.js → TransferDrawerPage-Bp0TG8fm-BrYG-dvh.js} +28 -28
- package/dist/assets/{TreasuryOverviewPage-wlfReqPJ-COqPP-C6.js → TreasuryOverviewPage-Cr1liTpc-DUvbI9m6.js} +12 -12
- package/dist/assets/{TreasuryPromoPage-C9WNRb2_-D68uCH9T.js → TreasuryPromoPage-Da7l7gv8-BI2e-RBa.js} +7 -7
- package/dist/assets/{TreasurySetupPage-CjV0cOq9-Dj6kRagu.js → TreasurySetupPage-DLNsPnS8-CsV7YDNa.js} +2 -2
- package/dist/assets/TreasuryStatementsPage-CNXxykvB-Xo9bsOcj.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-BWGHcQ-i-BKMewaZO.js → TreasuryTaxLetterPage-DUbt8ItG-Bx6VQjMk.js} +2 -2
- package/dist/assets/{TreasuryTransferOrReviewPage-CgL8K7N9-BU_JpBeT.js → TreasuryTransferOrReviewPage-qxabbCrK-Cn6E59-e.js} +19 -19
- package/dist/assets/TrendChart-SOAxSpv2-C2I66UL7.js +16 -0
- package/dist/assets/{TrendWithTransactions-B_fJTS4m-DhL_ksp6.js → TrendWithTransactions-BSQ2TJvu-CXRyOB__.js} +2 -2
- package/dist/assets/{UncategorizedAccountsMappingPage-DpY1kK_K-Tyh7I9oQ.js → UncategorizedAccountsMappingPage-Caf242zp-C8p8QWva.js} +13 -13
- package/dist/assets/{UnitIntegrationPage-BTJI7fx3-ArXBm5Pc.js → UnitIntegrationPage-Bvc4wx_r-CxpS2DzG.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BH3bRKoG-BcpVEL9h.js → UploadAdditionalDocumentOverlay-BTEhwmVL-Bv1cJYiQ.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-4-XtZDNS-yXogm4Uf.js → Vendor2FAPopup-DimcegQ_-DbqY7M5C.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-B2knDl4H-C8LDkjOw.js → VendorACHDetailsPage-BOIRRgCy-3ls1AaMO.js} +1 -1
- package/dist/assets/{VendorDetailPage-w-tghGpI-COTucAdG.js → VendorDetailPage-CWcqMMpT-CUN694wM.js} +17 -17
- package/dist/assets/{VendorDomesticWireDetailsPage-BXCCdTjh-D1sSssE6.js → VendorDomesticWireDetailsPage-9C2CIkhB-CIWMgQrd.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-DGQO9Qqj-doeBi57Q.js → VendorFiling1099EditablePage-Crz_WLRG-C1B5bpoY.js} +7 -7
- package/dist/assets/{VendorFirstReviewPage-Lblb6X1V-DDX-EnPi.js → VendorFirstReviewPage-hQ0U61KD-DXRFO6yh.js} +44 -44
- package/dist/assets/{VendorInternationalWireDetailsPage-Bi5RBKxI-d7yVndnc.js → VendorInternationalWireDetailsPage-mm1qIXTf-CIqQKpow.js} +7 -7
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CBZmsXnL-oKquyl5C.js → VendorInternationalWireSwiftDetailsPage-BaOsJGNO-DJWhQcKK.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-JI0e3gKo-DV7qAVgA.js → VendorsAccountsSection-CGbDIAMd-CpNcTh0l.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-BQzUQ5-l-eGPm8ckX.js → WarningsDrawerPage-7DzlUfv7-BkCPq2fE.js} +5 -5
- package/dist/assets/{ZeniAccountDetailPage-DPJ4mWoO-CDV8kX3d.js → ZeniAccountDetailPage-B_U4d2iv-CeotXzaF.js} +32 -32
- package/dist/assets/{ZeniAccountListViewPage-iHMJ7FU7-DsSrfvmu.js → ZeniAccountListViewPage-C2Yej3tG-5nEB_ziW.js} +23 -23
- package/dist/assets/ZeniAccountNavBarPieces-DsWyZL7N-DfzfZF8w.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-OxQ03DtJ-DuTzzMXB.js → ZeniAccountPromoPage-D6S3o6xA-Bi4N8dmb.js} +11 -11
- package/dist/assets/{ZeniAccountSetupPage-BahzDcmm-CkQD3H0K.js → ZeniAccountSetupPage-YpW9LEB1-BJ2MLgxE.js} +1 -1
- package/dist/assets/{ZeniCopyright-Dpqdxu7f-DENyHxGI.js → ZeniCopyright-Buv4_0jF-CqCj0NE5.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DwC6pXnb-D2__V8HO.js → ZeniTransferAmountSlider-CvuOgkEg-CuXG6PC2.js} +1 -1
- package/dist/assets/analytics-DThoELaW.js +7 -0
- package/dist/assets/{analyticsHelper-CZ8c8du5-BYQerWlM.js → analyticsHelper-B3QVnfWf-Ii66sXHH.js} +1 -1
- package/dist/assets/{analyticsHelper-BqDRiuen.js → analyticsHelper-ej1xHeXQ.js} +1 -1
- package/dist/assets/{chartTypes-CWLOazD0-DQIU7DHt.js → chartTypes-DYAHlgKd-DnqAO3Rp.js} +1 -1
- package/dist/assets/{commonDimensions-Cg7EWgSP-CvVryzw_.js → commonDimensions-Pkc8qIrn-B-bjjlb8.js} +1 -1
- package/dist/assets/{detailCommon-Cp4eknjq-BH10rVqU.js → detailCommon-CsukAL3T-lIItUxyr.js} +7 -7
- package/dist/assets/{downloadPdf-f3F0OqWf-BOFdFlm6.js → downloadPdf-DlKRXI5W-DoYYMEWD.js} +1 -1
- package/dist/assets/{index-Bh_1R5Ob.js → index-DEtloYMb.js} +3142 -3141
- package/dist/assets/{liveblocks-BUGn2yQ6.js → liveblocks-sSQ9JElv.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DCLD3rcY-DQE4Fmbr.js → mapLoadingInProgressToTreeNode-KYsp1YPe-CdYtsyMK.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C-VOXE5I-IEIwZ2Vf.js → mapSectionWithAcOnlyToTreeNode-t5fK12Uc-CbMkSgtE.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DlDwFA_F-adHbwg_D.js → mapSpacerToTreeNode-1YBqnFwa-K_d13sRq.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-EEyJwCnX-DL3MQtPA.js → mapTimeframeBalancesToTreeNode-DD1v-gTG-9n0fkm_w.js} +1 -1
- package/dist/assets/mui-C5LQ0bMa.js +25 -0
- package/dist/assets/{play-icon-CFa9Uibr-CFpLGFU1.js → play-icon-19dLaWkG-CvLTbZAK.js} +3 -3
- package/dist/assets/{redux-DmDqXYej.js → redux-ByjIRbhZ.js} +1 -1
- package/dist/assets/{routing-BNz5gZgX.js → routing-Cpaypegg.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DT8-C5u1-B1FoouwO.js → toCOABalancesWithID-B8NxsLlK-741DYvDg.js} +1 -1
- package/dist/assets/{toChartData-63e3B91H-ZtR5NJvP.js → toChartData-CxZEcdj_-B9fAXWHm.js} +1 -1
- package/dist/assets/{treasuryColorHelper-BGGfolJy-CWl7jTQi.js → treasuryColorHelper-BqwCUN2u-C54KKUXs.js} +1 -1
- package/dist/assets/{uploadAttachment-YcPIDoZ--toOwAw7L.js → uploadAttachment-CHFo3qZI-fjIbqTID.js} +21 -21
- package/dist/assets/{uploadReceipts-BH9fi3Vt-CMw2oH6c.js → uploadReceipts-Buvz7DfG-BUbqoJXB.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +5 -5
- package/dist/assets/AccountInfoPageContent-qqbfRfuR-C7-_5sOr.js +0 -149
- package/dist/assets/AccountRow-CPX-627p-DXjzC4oo.js +0 -298
- package/dist/assets/ArAgingChart-BRcy3--o-CVhUhHyt.js +0 -24
- package/dist/assets/BusinessVerificationPage-DT24fycp-C-SVysZz.js +0 -140
- package/dist/assets/ChargeCardPromoPage-DOibcN9n-CE5UscbC.js +0 -175
- package/dist/assets/CheckDepositDrawerPage-DaaWfNin-DQUFbJAl.js +0 -206
- package/dist/assets/CompleteProfile-MP9AF8Iu-Dltf62Ac.js +0 -36
- package/dist/assets/CustomerOnboardingContainerPage-C9jXmYuH-DZXeTXsZ.js +0 -1
- package/dist/assets/CustomerOnboardingPage-DJbFeXms-uTvDgNTn.js +0 -107
- package/dist/assets/DashboardReportPage-3X6wpJL2-BK7Yd62F.js +0 -349
- package/dist/assets/DomesticWireDetailsPage-D-qwPVDs-YqgObZaE.js +0 -21
- package/dist/assets/LabeledDocumentField-DORRl3DI-BiJSEJu5.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-FpRJ9tiX-D495n-7f.js +0 -59
- package/dist/assets/MailingDetailsSection-D8CZart4-Bbi4CmcC.js +0 -21
- package/dist/assets/NoDataChart-VE4W-RUu-D223toQY.js +0 -26
- package/dist/assets/NotificationsListConfig-DVBOQJZq-DD4o-ZVG.js +0 -1
- package/dist/assets/ReimbursementDetailPage-BQiu7Gts-zt4bAw_Z.js +0 -314
- package/dist/assets/ReportTableViewSelector-Bss4AtF1-Y5yDfA7f.js +0 -133
- package/dist/assets/ReportsPage-C-g9588h-CalWBFdb.js +0 -120
- package/dist/assets/TaskManagementPage-z5uvcy81-DXWG5Ln7.js +0 -508
- package/dist/assets/TimeframeSwitcherWithToggle-BlbY3qcY-bVTDjcsV.js +0 -31
- package/dist/assets/TreasuryStatementsPage-DqOWNGB_-CL_O8Dxf.js +0 -58
- package/dist/assets/TrendChart-76tuu9Dr-CtZTTvAn.js +0 -16
- package/dist/assets/ZeniAccountNavBarPieces-D1g1REsS-D5-Eit3W.js +0 -14
- package/dist/assets/analytics-BSSiLa6f.js +0 -7
- package/dist/assets/mui-BgvZYSo0.js +0 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Et,c3 as Ft,M as te,l as W,X as
|
|
1
|
+
import{a as Et,c3 as Ft,M as te,l as W,X as Z,kP as Mt,j as t,F as Nt,bO as Ot,bQ as Vt,bR as Wt,a7 as Ut,o as i,bL as et,fA as Kt,ao as qt,bT as Ht,ic as Gt,id as Xt,e as Yt,bt as Y,bf as Qt,a9 as Zt,C as h,u as Ue,fB as Jt,kQ as ei,g as Q,cn as ti,m as U,t as N,v as se,kR as ii,cH as oi,kS as ni,kT as ut,kU as ht,jn as li,kV as ri,kW as si,bm as gt,r as je,Y as ee,y as Ke,g7 as qe,d3 as He,fM as Ge,cg as yt,kX as bt,kY as Ce,_ as Be,kZ as Xe,R as we,ih as xt,ii as wt,k_ as ft,ig as $t,bY as vt,b$ as St,k$ as R,l0 as kt,fY as Tt,cl as Pt,dr as Ye,q as p}from"./index-DEtloYMb.js";import{b as P,n as o,f as jt,j as X}from"./vendor-CnQcJ2Lu.js";import{d as Ct}from"./useLongPress-GCK2COYQ-gxLtL5O4.js";import{K as ai}from"./StatusSwitcher-Jqpvk1VX-KiHu5pz2.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ue=te.getLocalizedStrings().spendManagement.billPay.billsByTabs.header,_e={key:"name",value:ue.name,sortOrder:"ascending",width:new h(p[5],p[5])},Le={key:"invoiceDate",value:ue.invoiceDate,sortOrder:"ascending",width:new h(20,20)},di={key:"dueDate",value:ue.dueDate,sortOrder:"ascending",width:new h(20,20)},Qe={key:"dueDate",value:ue.paymentDate,sortOrder:"ascending",width:new h(20,20)},Ze={key:"status",value:ue.status,sortOrder:"ascending",width:new h(18,18)},ci={key:"paymentMethod",value:ue.paymentMethod,sortOrder:"ascending",width:new h(18,18)},ze={key:"amount",value:ue.amount,sortOrder:"ascending",width:new h(10,10)},be=[_e,Le,di,Ze,ze],pi=[_e,Le,Qe,Ze,ze],mi=[_e,Le,Qe,Ze,ze],ui=[_e,Le,Qe,ci,ze],ye={headerLastColumnTopPadding:new h(p[0],p[4]),headerLastColumnRightPadding:new h(p[3],p[11]),headerLastColumnBottomPadding:new h(p[0],p[4]),headerLastColumnLeftPadding:new h(p[0],p[4]),headerHeight:new h(xt,wt)};function hi({companyNameSticky:e,currentTab:n,onColumnSortConfigChanged:c,sortConfig:l}){const d=Ue(),g=Z(),[b,x]=P.useState(ki(n));P.useEffect(()=>{const a=[...b];for(const r of a)r.key===l.sortKey?r.sortOrder=l.sortOrder:r.sortOrder="ascending";x(a)},[l.sortKey,l.sortOrder]);const f=(a,r)=>{let $=r;l.sortKey===a&&($=r==="ascending"?"descending":"ascending"),c?.(a,$)},u=b.find(a=>a.key===l.sortKey)??b[0],y=a=>b.find(r=>r.key===a)?.value??"",m=b.map(a=>a.key),w=te.getLocalizedStrings().spendManagement.billPay.billsByTabs;return g==="small"?t.jsxs(tt,{windowSize:g,companyNameSticky:!1,children:[t.jsxs(xi,{children:[t.jsx(fi,{children:t.jsx(wi,{})}),t.jsx(gt,{title:w.sortBy,placeholder:w.sortBy,pickerValues:m,valueToLabel:y,selectedValue:l.sortKey,onPickerSelectionChanged:a=>{f(a,"ascending")},optionTextStyle:je.smallRegular,titleTextStyle:je.smallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.background})]}),t.jsxs(Si,{onClick:()=>f(u.key,u.sortOrder),"data-testid":ee("bill-pay-list-header-mobile",l.sortKey),children:[t.jsx(se,{children:u.value}),t.jsx(it,{sortDataValue:l.sortKey,headerdata:u,children:t.jsx(ot,{})})]})]}):t.jsx(tt,{companyNameSticky:e,windowSize:g,children:b.map(a=>t.jsxs(yi,{companyNameSticky:e&&a.key==="name",sortDataValue:l.sortKey,actualDataValue:a.key,wrapperWidth:a.width,windowSize:g,children:[t.jsxs(vi,{onClick:()=>f(a.key,a.sortOrder),"data-testid":ee("bill-pay-list-header",l.sortKey),children:[t.jsx(se,{children:a.value}),t.jsx(it,{sortDataValue:l.sortKey,headerdata:a,children:t.jsx(ot,{})})]}),t.jsx($i,{sortDataValue:l.sortKey,windowSize:g,isVisible:l.sortKey===a.key&&a.key!=="dueDate",children:t.jsx(bi,{onClick:()=>f("dueDate","ascending"),"data-testid":ee("bill-pay-list-header-sort-close",l.sortKey)})})]},a.key))})}const gi=jt.memo(hi),tt=o(se)`
|
|
2
2
|
width: 100%;
|
|
3
3
|
top: ${i.sp0};
|
|
4
4
|
left: ${i.sp0};
|
|
@@ -69,7 +69,7 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
69
69
|
&:hover {
|
|
70
70
|
color: ${e=>e.theme.colors.primary};
|
|
71
71
|
}
|
|
72
|
-
`,ki=e=>{switch(e){case"draft":return we(be);case"pending_approval":return we(pi);case"scheduled":return we(mi);case"paid":return we(ui)}},xe={containerPaddingLeft:new h(p[3],p[4]),containerPaddingRight:new h(p[3],p[4]),containerPaddingTop:new h(p[2],12),containerPaddingBottom:new h(p[2],12),containerMarginLeft:new h(p[4],p[8]),webkitLineClamp:new h(2,1,1,1,1)},{spendManagement:{billPay:{billDetails:ne}},common:{strings:{empty:
|
|
72
|
+
`,ki=e=>{switch(e){case"draft":return we(be);case"pending_approval":return we(pi);case"scheduled":return we(mi);case"paid":return we(ui)}},xe={containerPaddingLeft:new h(p[3],p[4]),containerPaddingRight:new h(p[3],p[4]),containerPaddingTop:new h(p[2],12),containerPaddingBottom:new h(p[2],12),containerMarginLeft:new h(p[4],p[8]),webkitLineClamp:new h(2,1,1,1,1)},{spendManagement:{billPay:{billDetails:ne}},common:{strings:{empty:Ne,space:$e}}}=te.getLocalizedStrings(),Ti=({transactionDetail:e,tagStatus:n,reportTitleAdditionalInfo:c,isSelected:l,isBillPayCommentingEnabled:d,isProcessing:g,lowBalanceAlert:b,approvers:x,deletionAdditionalInfo:f,paidAdditionalInfo:u,showLowBalanceTooltip:y,onTransactionRowClick:m})=>{const w=Z(),a=Ke(),r=qe(),$=He().analytics,s=`dashboard_${a.currentTenant?.companyId}`,{threads:k,isLoading:B}=Ge({application:"dashboard",companyId:a.currentTenant?.companyId,tab:"bill",entityId:e.id,isGlobalComment:!1},"both",!1),L=P.useMemo(()=>k.filter(S=>S.resolved===!1),[k]),j=S=>{S.stopPropagation(),r?.sharedFunctions?.subtreeFunctions.openAllThreadsDrawer({roomId:s,companyId:a.currentTenant?.companyId??Ne,companyName:a.currentTenant?.companyName??Ne,entityType:"bill.details",entityId:e.id}),$.trackCommentActivity("bill","clicked",a.currentTenant?.companyName??Ne,a.controllersList.controllers.map(I=>Ye(I)),void 0,void 0,"comment on field")},v=P.useCallback(()=>{m(e.id)},[e.id]),z=W.isAwaitingMarkAsPaid(e.billPayInfo.billPaymentStatus.code)?bt(e.createdByUser):Ce(x),K=e.vendor?.name!=null?e.vendor.name:e.candidateVendorName!=""?e.candidateVendorName:ne.newBillTitle,E=()=>`${ne.recurringBill.recurring} ${e.recurringBillInstance}/${e.recurringBillConfig?.totalPaymentCycles}`;return t.jsxs(Pi,{windowSize:w,statusCode:n?.code??"",isSelected:l,isProcessing:g,children:[t.jsx(ji,{onClick:v,"data-testid":ee("bill-pay-transaction-row",e.id),children:t.jsxs(Ci,{children:[t.jsxs(Bi,{windowSize:w,responsiveWidth:be[0].width,children:[t.jsxs(_i,{children:[t.jsx(Li,{windowSize:w,children:K}),e.isRecurring?t.jsx(Y,{title:E(),placement:"right",style:{padding:`2px ${i.sp2}`},children:t.jsx(Fi,{isProcessing:g,children:t.jsx(Mi,{})})}):null]}),t.jsx(Ii,{children:`${c[0].label} ${c[0].value}`})]}),t.jsx(nt,{windowSize:w,responsiveWidth:be[1].width,children:c[1].value}),t.jsx(nt,{windowSize:w,responsiveWidth:be[2].width,children:c[2].value}),t.jsxs(Ei,{windowSize:w,responsiveWidth:be[3].width,children:[t.jsxs(Ri,{children:[n!==void 0?t.jsx(Di,{className:"statusTag",color:n.color,bgColor:n.bgColor,borderColor:n.borderColor,children:n.value??ne.hyphenText}):t.jsx(Ai,{children:ne.hyphenText}),y===!0&&b!=null&&b.length>0?t.jsx(Y,{title:b,placement:"bottom",display:"flex",style:{padding:`12px ${i.sp3}`},position:"relative",maxWidth:"311px",children:t.jsx(Ni,{})}):null]}),x!==void 0&&z.length>0?z.length>1?t.jsx(Y,{style:{padding:"2px 5px"},title:`${ne.byText}${$e}${z.join(`${$e}${ne.orText}${$e}`)}`,placement:"bottom-start",children:t.jsx(ke,{children:`${ne.byText}${$e}${z[0]}${ne.dots}`})}):t.jsx(ke,{children:`${ne.byText}${$e}${z[0]}`}):null,f!=null?t.jsx(ke,{children:f}):null,u!=null?t.jsx(ke,{children:u}):null]}),t.jsx(zi,{windowSize:w,responsiveWidth:be[4].width,children:Be("0,0[.]00",e.totalAmountInUSD)})]})}),d&&L.length>0?t.jsx(Xe,{isLoading:B,count:L.length,style:{position:"absolute",float:"right",right:"44px",top:i.sp1},openThread:j}):null]})},Pi=o.div`
|
|
73
73
|
display: flex;
|
|
74
74
|
margin-bottom: ${i.sp3};
|
|
75
75
|
background-color: ${e=>e.isProcessing?"transparent":e.theme.colors.grey5};
|
|
@@ -78,7 +78,7 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
78
78
|
padding-top: ${e=>xe.containerPaddingTop.valuePx(e.windowSize)};
|
|
79
79
|
padding-bottom: ${e=>xe.containerPaddingBottom.valuePx(e.windowSize)};
|
|
80
80
|
border: ${e=>` 1px solid ${e.isProcessing?e.theme.colors.grey2:e.isSelected?e.theme.colors.primary:e.theme.colors.grey3}`};
|
|
81
|
-
box-shadow: ${e=>e.isProcessing?"none":e.theme.mode==="dark"?`${
|
|
81
|
+
box-shadow: ${e=>e.isProcessing?"none":e.theme.mode==="dark"?`${Q.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${Q.dropShadowNormalLight}`};
|
|
82
82
|
border-radius: ${i.sp2};
|
|
83
83
|
cursor: ${e=>e.isProcessing?"initial":"pointer"};
|
|
84
84
|
|
|
@@ -146,7 +146,7 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
146
146
|
align-items: center;
|
|
147
147
|
margin-right: ${i.sp3};
|
|
148
148
|
color: ${e=>e.theme.colors.hero};
|
|
149
|
-
`,Li=o(
|
|
149
|
+
`,Li=o(N)`
|
|
150
150
|
flex-grow: 1;
|
|
151
151
|
word-break: break-word;
|
|
152
152
|
display: -webkit-box;
|
|
@@ -155,7 +155,7 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
155
155
|
overflow: hidden;
|
|
156
156
|
text-overflow: ellipsis;
|
|
157
157
|
max-width: ${e=>e.windowSize==="small"?"200px":"initial"};
|
|
158
|
-
`,zi=o(
|
|
158
|
+
`,zi=o(N)`
|
|
159
159
|
display: flex;
|
|
160
160
|
align-items: ${e=>e.windowSize==="small"||e.windowSize==="medium-compact"?"flex-start":"center"};
|
|
161
161
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -181,7 +181,7 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
181
181
|
display: inline-block;
|
|
182
182
|
border: ${e=>`1px solid ${e.borderColor}`};
|
|
183
183
|
border-radius: ${i.sp1};
|
|
184
|
-
`,Ai=o(
|
|
184
|
+
`,Ai=o(N)``,nt=o(N)`
|
|
185
185
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
186
186
|
color: ${e=>e.theme.colors.hero};
|
|
187
187
|
box-sizing: border-box;
|
|
@@ -210,18 +210,18 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
210
210
|
display: flex;
|
|
211
211
|
align-items: center;
|
|
212
212
|
color: ${e=>e.isProcessing?e.theme.colors.grey2:e.theme.colors.primary};
|
|
213
|
-
`,
|
|
213
|
+
`,Mi=o(Tt)`
|
|
214
214
|
width: 12px;
|
|
215
215
|
height: 12px;
|
|
216
216
|
color: inherit;
|
|
217
|
-
`,
|
|
217
|
+
`,Ni=o(Pt)`
|
|
218
218
|
width: ${i.sp3};
|
|
219
219
|
height: ${i.sp3};
|
|
220
220
|
color: ${e=>e.theme.colors.hero};
|
|
221
221
|
:hover {
|
|
222
222
|
color: ${e=>e.theme.colors.primary};
|
|
223
223
|
}
|
|
224
|
-
`,de={containerPaddingLeft:new h(p[3],p[4]),containerPaddingRight:new h(p[3],p[4]),containerPaddingTop:new h(p[2],p[3]),containerPaddingBottom:new h(p[2],p[3]),containerMarginLeft:new h(p[3],p[8]),webkitLineClamp:new h(2,2,1,1,1)},{spendManagement:{billPay:{billDetails:le}},common:{strings:{empty:Oe,space:ve}}}=te.getLocalizedStrings(),Oi=({transactionDetail:e,tagStatus:n,isProcessing:c,isSelected:l,isBillPayCommentingEnabled:d,bulkSelectFormId:g,isBulkSelectionLimitReached:b,isSelectionMode:x,reportTitleAdditionalInfo:f,lowBalanceAlert:u,approvers:y,deletionAdditionalInfo:m,paidAdditionalInfo:w,showLowBalanceTooltip:a,onTransactionRowClick:r})=>{const $=
|
|
224
|
+
`,de={containerPaddingLeft:new h(p[3],p[4]),containerPaddingRight:new h(p[3],p[4]),containerPaddingTop:new h(p[2],p[3]),containerPaddingBottom:new h(p[2],p[3]),containerMarginLeft:new h(p[3],p[8]),webkitLineClamp:new h(2,2,1,1,1)},{spendManagement:{billPay:{billDetails:le}},common:{strings:{empty:Oe,space:ve}}}=te.getLocalizedStrings(),Oi=({transactionDetail:e,tagStatus:n,isProcessing:c,isSelected:l,isBillPayCommentingEnabled:d,bulkSelectFormId:g,isBulkSelectionLimitReached:b,isSelectionMode:x,reportTitleAdditionalInfo:f,lowBalanceAlert:u,approvers:y,deletionAdditionalInfo:m,paidAdditionalInfo:w,showLowBalanceTooltip:a,onTransactionRowClick:r})=>{const $=Z(),s=Ke(),k=qe(),B=He().analytics,L=`dashboard_${s.currentTenant?.companyId}`,{threads:j,isLoading:v}=Ge({application:"dashboard",companyId:s.currentTenant?.companyId,tab:"bill",entityId:e.id,isGlobalComment:!1},"both",!1),z=P.useMemo(()=>j.filter(O=>O.resolved===!1),[j]),K=O=>{O.stopPropagation(),k?.sharedFunctions?.subtreeFunctions.openAllThreadsDrawer({roomId:L,companyId:s.currentTenant?.companyId??Oe,companyName:s.currentTenant?.companyName??Oe,entityType:"bill.details",entityId:e.id}),B.trackCommentActivity("bill","clicked",s.currentTenant?.companyName??Oe,s.controllersList.controllers.map(q=>Ye(q)),void 0,void 0,"comment on field")},{getValues:E,setValue:S}=yt(),I=W.isAwaitingMarkAsPaid(e.billPayInfo.billPaymentStatus.code)?bt(e.createdByUser):Ce(y),J=e.vendor?.name!=null?e.vendor.name:e.candidateVendorName!=""?e.candidateVendorName:le.newBillTitle,ie=()=>`${le.recurringBill.recurring} ${e.recurringBillInstance}/${e.recurringBillConfig?.totalPaymentCycles}`,re=E(g),he=P.useCallback(()=>{!b&&e.bulkSelectInfo?.isSelectableForBulkAction&&!l&&S(g,[...re,e.id])},[g,b,l,S,e.bulkSelectInfo?.isSelectableForBulkAction,e.id,re]),Ee=P.useCallback(()=>{he()},[he]),ge=P.useCallback(O=>{O.stopPropagation(),O.cancelable&&O.preventDefault(),x?he():r(e.id)},[he,x,r,e.id]),Fe=Ct({onLongPress:Ee},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(Vi,{windowSize:$,statusCode:n?.code??"",isSelected:l,isProcessing:c,children:[t.jsx(Wi,{onClick:ge,...Fe,"data-testid":ee("bill-pay-trxn-row-small",e.id),children:t.jsxs(Ui,{children:[t.jsxs(Zi,{children:[t.jsxs(Ki,{children:[t.jsxs(qi,{children:[t.jsx(Hi,{windowSize:$,children:J}),e.isRecurring?t.jsx(Y,{title:ie(),placement:"right",style:{padding:`2px ${i.sp2}`},children:t.jsx(eo,{isProcessing:c,children:t.jsx(to,{})})}):null]}),t.jsx(Xi,{children:`${f[0].label} ${f[0].value}`})]}),t.jsx(lt,{children:`${f[1].label} ${f[1].value}`}),t.jsx(lt,{children:`${f[2].label} ${f[2].value}`})]}),t.jsxs(Ji,{children:[t.jsx(Gi,{children:Be("0,0[.]00",e.totalAmountInUSD)}),t.jsxs(Qi,{hasAlertIcon:u!=null,children:[t.jsxs(io,{children:[n!==void 0?t.jsx(Yi,{className:"statusTag",color:n.color,bgColor:n.bgColor,borderColor:n.borderColor,children:n.value??le.hyphenText}):t.jsx(t.Fragment,{children:le.hyphenText}),a===!0&&u!=null&&u.length>0?t.jsx(no,{onClick:O=>O.stopPropagation(),children:t.jsx(Y,{title:u,placement:"bottom",display:"flex",style:{padding:`12px ${i.sp3}`},position:"relative",maxWidth:"311px",enterDelay:600,children:t.jsx(oo,{})})}):null]}),y!==void 0&&I.length>0?I.length>1?t.jsx(Y,{title:`${le.byText}${ve}${I.join(`${ve}${le.orText}${ve}`)}`,placement:"bottom-start",children:t.jsx(Te,{children:`${le.byText}${ve}${I[0]}${le.dots}`})}):t.jsx(Te,{children:`${le.byText}${ve}${I[0]}`}):null,m!=null?t.jsx(Te,{children:m}):null,w!=null?t.jsx(Te,{children:w}):null]})]})]})}),d&&z.length>0?t.jsx(Xe,{isLoading:v,count:z.length,style:{position:"absolute",float:"right",right:"6px",top:i.sp1},openThread:K}):null]})},Vi=o.div`
|
|
225
225
|
display: flex;
|
|
226
226
|
margin-bottom: ${i.sp3};
|
|
227
227
|
background-color: ${e=>e.isProcessing?"transparent":e.theme.colors.grey5};
|
|
@@ -230,7 +230,7 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
230
230
|
padding-top: ${e=>de.containerPaddingTop.valuePx(e.windowSize)};
|
|
231
231
|
padding-bottom: ${e=>de.containerPaddingBottom.valuePx(e.windowSize)};
|
|
232
232
|
border: ${e=>` 1px solid ${e.isProcessing?e.theme.colors.grey2:e.isSelected?e.theme.colors.primary:e.theme.colors.grey3}`};
|
|
233
|
-
box-shadow: ${e=>e.isProcessing?"none":e.theme.mode==="dark"?`${
|
|
233
|
+
box-shadow: ${e=>e.isProcessing?"none":e.theme.mode==="dark"?`${Q.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${Q.dropShadowNormalLight}`};
|
|
234
234
|
border-radius: ${i.sp2};
|
|
235
235
|
cursor: ${e=>e.isProcessing?"initial":"pointer"};
|
|
236
236
|
${e=>e.isProcessing?X`
|
|
@@ -293,7 +293,7 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
293
293
|
align-items: center;
|
|
294
294
|
margin-right: ${i.sp3};
|
|
295
295
|
color: ${e=>e.theme.colors.hero};
|
|
296
|
-
`,Hi=o(
|
|
296
|
+
`,Hi=o(N)`
|
|
297
297
|
color: ${e=>e.theme.colors.hero};
|
|
298
298
|
flex-grow: 1;
|
|
299
299
|
word-break: break-word;
|
|
@@ -303,13 +303,13 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
303
303
|
overflow: hidden;
|
|
304
304
|
text-overflow: ellipsis;
|
|
305
305
|
max-width: ${e=>e.windowSize==="small"?`${kt}px`:"initial"};
|
|
306
|
-
`,Gi=o(
|
|
306
|
+
`,Gi=o(N)`
|
|
307
307
|
display: flex;
|
|
308
308
|
color: ${e=>e.theme.colors.hero};
|
|
309
309
|
justify-content: flex-end;
|
|
310
310
|
`,Xi=o(U)`
|
|
311
311
|
color: ${e=>e.theme.colors.grey1};
|
|
312
|
-
`,
|
|
312
|
+
`,Yi=o(U)`
|
|
313
313
|
color: ${e=>e.color};
|
|
314
314
|
height: 20px;
|
|
315
315
|
align-items: center;
|
|
@@ -327,7 +327,7 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
327
327
|
box-sizing: border-box;
|
|
328
328
|
display: flex;
|
|
329
329
|
align-items: center;
|
|
330
|
-
`,
|
|
330
|
+
`,Qi=o.div`
|
|
331
331
|
color: ${e=>e.theme.colors.hero};
|
|
332
332
|
box-sizing: border-box;
|
|
333
333
|
display: flex;
|
|
@@ -336,10 +336,10 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
336
336
|
justify-content: center;
|
|
337
337
|
`,Te=o(U)`
|
|
338
338
|
color: ${e=>e.theme.colors.grey1};
|
|
339
|
-
`,
|
|
339
|
+
`,Zi=o.div`
|
|
340
340
|
display: flex;
|
|
341
341
|
flex-direction: column;
|
|
342
|
-
`,
|
|
342
|
+
`,Ji=o.div`
|
|
343
343
|
display: flex;
|
|
344
344
|
flex-direction: column;
|
|
345
345
|
`,eo=o.div`
|
|
@@ -361,7 +361,7 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
361
361
|
:hover {
|
|
362
362
|
color: ${e=>e.theme.colors.primary};
|
|
363
363
|
}
|
|
364
|
-
`,no=o.div``,ae=te.getLocalizedStrings().spendManagement.reimbursement.reimbursementByTabs.header,Ie={key:"reportName",value:ae.name,sortOrder:"ascending",width:new h(30,30)},De={key:"type",value:ae.type,sortOrder:"ascending",width:new h(20,20)},Ae={key:"status",value:ae.status,sortOrder:"ascending",width:new h(20,20)},Re={key:"amount",value:ae.amount,sortOrder:"ascending",width:new h(10,10)},ce=[Ie,{key:"submittedOn",value:ae.created,sortOrder:"ascending",width:new h(20,20)},De,Ae,Re],lo=[Ie,{key:"submittedOn",value:ae.submitted,sortOrder:"ascending",width:new h(20,20)},De,Ae,Re],ro=[Ie,{key:"submittedOn",value:ae.paymentDate,sortOrder:"ascending",width:new h(20,20)},De,Ae,Re],so=[Ie,{key:"submittedOn",value:ae.paidOn,sortOrder:"ascending",width:new h(20,20)},De,Ae,Re],Bt={draft:ce,pending_approval:lo,scheduled:ro,paid:so},Pe={headerLastColumnTopPadding:new h(p[0],p[4]),headerLastColumnRightPadding:new h(p[3],p[11]),headerLastColumnBottomPadding:new h(p[0],p[4]),headerLastColumnLeftPadding:new h(p[3],p[4])};function ao({companyNameSticky:e,currentTab:n,onColumnSortConfigChanged:c,sortConfig:l,analytics:d}){const g=
|
|
364
|
+
`,no=o.div``,ae=te.getLocalizedStrings().spendManagement.reimbursement.reimbursementByTabs.header,Ie={key:"reportName",value:ae.name,sortOrder:"ascending",width:new h(30,30)},De={key:"type",value:ae.type,sortOrder:"ascending",width:new h(20,20)},Ae={key:"status",value:ae.status,sortOrder:"ascending",width:new h(20,20)},Re={key:"amount",value:ae.amount,sortOrder:"ascending",width:new h(10,10)},ce=[Ie,{key:"submittedOn",value:ae.created,sortOrder:"ascending",width:new h(20,20)},De,Ae,Re],lo=[Ie,{key:"submittedOn",value:ae.submitted,sortOrder:"ascending",width:new h(20,20)},De,Ae,Re],ro=[Ie,{key:"submittedOn",value:ae.paymentDate,sortOrder:"ascending",width:new h(20,20)},De,Ae,Re],so=[Ie,{key:"submittedOn",value:ae.paidOn,sortOrder:"ascending",width:new h(20,20)},De,Ae,Re],Bt={draft:ce,pending_approval:lo,scheduled:ro,paid:so},Pe={headerLastColumnTopPadding:new h(p[0],p[4]),headerLastColumnRightPadding:new h(p[3],p[11]),headerLastColumnBottomPadding:new h(p[0],p[4]),headerLastColumnLeftPadding:new h(p[3],p[4])};function ao({companyNameSticky:e,currentTab:n,onColumnSortConfigChanged:c,sortConfig:l,analytics:d}){const g=Z(),b=Ue(),[x,f]=P.useState(we(Bt[n]));P.useEffect(()=>{const r=[...x];for(const $ of r)$.key===l.sortKey?$.sortOrder=l.sortOrder:$.sortOrder="ascending";f(r)},[l.sortKey,l.sortOrder]);const u=(r,$)=>{let s=$;l.sortKey===r&&(s=$==="ascending"?"descending":"ascending"),d?.trackReimbursementListSort(r,s),c?.(r,s)},y=x.find(r=>r.key===l.sortKey)??x[0],m=r=>x.find($=>$.key===r)?.value??"",w=x.map(r=>r.key),a=te.getLocalizedStrings().spendManagement.reimbursement.reimbursementByTabs;return g==="small"?t.jsxs(rt,{height:xt,windowSize:g,children:[t.jsx(mo,{children:t.jsx(uo,{})}),t.jsx(gt,{title:a.sortBy,placeholder:a.sortBy,pickerValues:w,valueToLabel:m,selectedValue:l.sortKey,onPickerSelectionChanged:r=>{u(r,"ascending")},optionTextStyle:je.smallRegular,titleTextStyle:je.smallRegular,titleColor:b.colors.primary,selectedOptionColor:b.colors.hero,optionBackgroundColor:"inherit",downChevronVisible:!1}),t.jsxs(bo,{onClick:()=>u(y.key,y.sortOrder),"data-testid":ee("remi-list-header-small",l.sortKey),children:[t.jsx(se,{children:y.value}),t.jsx(st,{sortDataValue:l.sortKey,headerdata:y,children:t.jsx(at,{})})]})]}):t.jsx(rt,{height:wt,windowSize:g,children:x.map(r=>t.jsxs(po,{companyNameSticky:e,sortDataValue:l.sortKey,actualDataValue:r.key,wrapperWidth:r.width,windowSize:g,children:[t.jsxs(yo,{onClick:()=>u(r.key,r.sortOrder),"data-testid":ee("remi-list-header",l.sortKey),children:[t.jsx(se,{children:r.value}),t.jsx(st,{sortDataValue:l.sortKey,headerdata:r,children:t.jsx(at,{})})]}),t.jsx(go,{sortDataValue:l.sortKey,windowSize:g,isVisible:l.sortKey===r.key&&r.key!=="submittedOn",children:t.jsx(ho,{onClick:()=>u("submittedOn","ascending"),"data-testid":ee("remi-list-close-sort",l.sortKey)})})]},r.key))})}const co=jt.memo(ao),rt=o(se)`
|
|
365
365
|
width: 100%;
|
|
366
366
|
top: 0;
|
|
367
367
|
left: 0;
|
|
@@ -429,7 +429,7 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
429
429
|
color: ${e=>e.theme.colors.primary};
|
|
430
430
|
}
|
|
431
431
|
margin-left: auto;
|
|
432
|
-
`,Se={containerPaddingLeft:new h(p[3],p[4]),containerPaddingRight:new h(p[3],p[4]),containerPaddingTop:new h(p[2],12),containerPaddingBottom:new h(p[2],12),containerMarginLeft:new h(p[4],p[8])},G=te.getLocalizedStrings().spendManagement.reimbursement.reimbursementByTabs,xo=({reimbursementDetail:e,tagStatus:n,isProcessing:c,isSelected:l,reportTitleAdditionalInfo:d,date:g,approvers:b,deletionAdditionalInfo:x,isReimbursementCommentingEnabled:f,onTransactionRowClick:u})=>{const y=
|
|
432
|
+
`,Se={containerPaddingLeft:new h(p[3],p[4]),containerPaddingRight:new h(p[3],p[4]),containerPaddingTop:new h(p[2],12),containerPaddingBottom:new h(p[2],12),containerMarginLeft:new h(p[4],p[8])},G=te.getLocalizedStrings().spendManagement.reimbursement.reimbursementByTabs,xo=({reimbursementDetail:e,tagStatus:n,isProcessing:c,isSelected:l,reportTitleAdditionalInfo:d,date:g,approvers:b,deletionAdditionalInfo:x,isReimbursementCommentingEnabled:f,onTransactionRowClick:u})=>{const y=Z(),m=Ke(),w=P.useRef(null),[a,r]=P.useState(0);P.useLayoutEffect(()=>{w.current&&r(w.current.offsetWidth*ft)},[y]);const $=He().analytics,s=qe(),k=`dashboard_${m.currentTenant?.companyId}`,B=()=>{u(e.id)},L=e.reimbursementTypesIncluded,j=Ce(b),v=te.getLocalizedStrings().common.strings.empty,{threads:z,isLoading:K}=Ge({application:"dashboard",companyId:m.currentTenant?.companyId,tab:"reimbursement",entityId:e.id,isGlobalComment:!1},"both",!1),E=P.useMemo(()=>z.filter(I=>I.resolved===!1),[z]),S=I=>{I.stopPropagation(),s?.sharedFunctions?.subtreeFunctions.openAllThreadsDrawer({roomId:k,companyId:m.currentTenant?.companyId??v,companyName:m.currentTenant?.companyName??v,entityType:"reimbursement.details",entityId:e.id??v}),$.trackCommentActivity("reimbursement","clicked",m.currentTenant?.companyName??v,m.controllersList.controllers.map(J=>Ye(J)),void 0,void 0,"comment on field")};return t.jsxs(wo,{windowSize:y,onClick:B,isProcessing:c,isSelected:l,statusCode:n?.code??v,"data-testid":ee("remi-row-click",e.id),children:[t.jsx(fo,{children:t.jsxs($o,{children:[t.jsxs(vo,{windowSize:y,responsiveWidth:ce[0].width,ref:w,children:[t.jsx(So,{windowSize:y,reportNameWidth:a,children:e.reportTitle??G.newReimbursementTitle}),d!=null&&t.jsx(ko,{children:`${G.byText} ${d?.firstName} ${d?.lastName}`})]}),t.jsx(Po,{windowSize:y,responsiveWidth:ce[1].width,children:g}),L.length>1?t.jsx(dt,{windowSize:y,responsiveWidth:ce[2].width,children:t.jsx(Y,{title:G.reimbursementType.both,placement:"bottom-start",display:"flex",children:G.reimbursementType.titleForBoth})}):t.jsx(dt,{windowSize:y,responsiveWidth:ce[2].width,children:G.reimbursementType[L[0]]}),t.jsxs(Co,{windowSize:y,responsiveWidth:ce[3].width,children:[n!==void 0?t.jsx(Bo,{className:"statusTag",color:n.color,bgColor:n.bgColor,borderColor:n.borderColor,children:n.value??G.hyphenText}):t.jsx(jo,{children:G.hyphenText}),b!==void 0&&j.length>0?j.length>1?t.jsx(Y,{title:`${G.byText} `+j.join(` ${G.orText} `),placement:"bottom-start",children:t.jsx(Ve,{children:`${G.byText} `+j[0]+`${G.dots}`})}):t.jsx(Ve,{children:`${G.byText} `+j[0]}):null,x!=null?t.jsx(Ve,{children:x}):null]}),t.jsx(To,{windowSize:y,responsiveWidth:ce[4].width,children:Be("0,0[.]00",e.amount)})]})}),f&&E.length>0?t.jsx(Xe,{isLoading:K,count:E.length,style:{position:"absolute",float:"right",right:`calc(${i.sp6} + ${i.sp1})`,top:i.sp1},openThread:S}):null]})},wo=o.div`
|
|
433
433
|
display: flex;
|
|
434
434
|
margin-bottom: ${i.sp3};
|
|
435
435
|
background-color: ${e=>e.isProcessing?"transparent":e.theme.colors.grey5};
|
|
@@ -438,7 +438,7 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
438
438
|
padding-top: ${e=>Se.containerPaddingTop.valuePx(e.windowSize)};
|
|
439
439
|
padding-bottom: ${e=>Se.containerPaddingBottom.valuePx(e.windowSize)};
|
|
440
440
|
border: ${e=>` 1px solid ${e.isProcessing?e.theme.colors.grey2:e.isSelected?e.theme.colors.primary:e.theme.colors.grey3}`};
|
|
441
|
-
box-shadow: ${e=>e.isProcessing?"none":e.theme.mode==="dark"?`${
|
|
441
|
+
box-shadow: ${e=>e.isProcessing?"none":e.theme.mode==="dark"?`${Q.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${Q.boxShadowElevation}`};
|
|
442
442
|
border-radius: ${i.sp2};
|
|
443
443
|
cursor: ${e=>e.isProcessing?"initial":"pointer"};
|
|
444
444
|
|
|
@@ -498,7 +498,7 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
498
498
|
column-gap: 12px;
|
|
499
499
|
align-items: flex-start;
|
|
500
500
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
501
|
-
`,So=o(
|
|
501
|
+
`,So=o(N)`
|
|
502
502
|
color: ${e=>e.theme.colors.hero};
|
|
503
503
|
align-items: center;
|
|
504
504
|
white-space: nowrap;
|
|
@@ -507,25 +507,25 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
507
507
|
width: ${e=>e.reportNameWidth!=null&&e.reportNameWidth>0?`${e.reportNameWidth}px`:`${ft*100}%`};
|
|
508
508
|
`,ko=o(se)`
|
|
509
509
|
color: ${e=>e.theme.colors.grey1};
|
|
510
|
-
`,To=o(
|
|
510
|
+
`,To=o(N)`
|
|
511
511
|
display: flex;
|
|
512
512
|
align-items: ${e=>e.windowSize==="small"||e.windowSize==="medium-compact"?"flex-start":"center"};
|
|
513
513
|
color: ${e=>e.theme.colors.hero};
|
|
514
514
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
515
515
|
justify-content: flex-end;
|
|
516
|
-
`,Po=o(
|
|
516
|
+
`,Po=o(N)`
|
|
517
517
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
518
518
|
color: ${e=>e.theme.colors.hero};
|
|
519
519
|
box-sizing: border-box;
|
|
520
520
|
display: flex;
|
|
521
521
|
align-items: center;
|
|
522
|
-
`,jo=o(
|
|
522
|
+
`,jo=o(N)``,dt=o(N)`
|
|
523
523
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
524
524
|
color: ${e=>e.theme.colors.hero};
|
|
525
525
|
box-sizing: border-box;
|
|
526
526
|
display: flex;
|
|
527
527
|
align-items: center;
|
|
528
|
-
`,Co=o(
|
|
528
|
+
`,Co=o(N)`
|
|
529
529
|
position: relative;
|
|
530
530
|
top: 2px;
|
|
531
531
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
@@ -547,7 +547,7 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
547
547
|
padding: 1px 6px 1px 6px;
|
|
548
548
|
border: ${e=>`1px solid ${e.borderColor}`};
|
|
549
549
|
border-radius: ${i.sp1};
|
|
550
|
-
`,pe={containerPaddingLeft:new h(p[3],p[4]),containerPaddingRight:new h(p[3],p[4]),containerPaddingTop:new h(p[2],p[3]),containerPaddingBottom:new h(p[2],p[3]),containerMarginLeft:new h(p[3],p[8]),webkitLineClamp:new h(2,2,1,1,1)},V=te.getLocalizedStrings().spendManagement.reimbursement.reimbursementByTabs,_o=({reimbursementDetail:e,tagStatus:n,currentTab:c,isProcessing:l,isSelected:d,bulkSelectFormId:g,isBulkSelectionLimitReached:b,isSelectionMode:x,reportTitleAdditionalInfo:f,date:u,approvers:y,deletionAdditionalInfo:m,onTransactionRowClick:w})=>{const a=
|
|
550
|
+
`,pe={containerPaddingLeft:new h(p[3],p[4]),containerPaddingRight:new h(p[3],p[4]),containerPaddingTop:new h(p[2],p[3]),containerPaddingBottom:new h(p[2],p[3]),containerMarginLeft:new h(p[3],p[8]),webkitLineClamp:new h(2,2,1,1,1)},V=te.getLocalizedStrings().spendManagement.reimbursement.reimbursementByTabs,_o=({reimbursementDetail:e,tagStatus:n,currentTab:c,isProcessing:l,isSelected:d,bulkSelectFormId:g,isBulkSelectionLimitReached:b,isSelectionMode:x,reportTitleAdditionalInfo:f,date:u,approvers:y,deletionAdditionalInfo:m,onTransactionRowClick:w})=>{const a=Z(),{getValues:r,setValue:$}=yt(),s=e.reimbursementTypesIncluded,k=Ce(y),B=we(Bt[c]),L=r(g),j=P.useCallback(()=>{!b&&e.bulkSelectInfo?.isSelectableForBulkAction&&!d&&$(g,[...L,e.id])},[g,b,d,$,e.bulkSelectInfo?.isSelectableForBulkAction,e.id,L]),v=P.useCallback(()=>{j()},[j]),z=P.useCallback(E=>{E.stopPropagation(),E.cancelable&&E.preventDefault(),x?j():w(e.id)},[j,x,w,e.id]),K=Ct({onLongPress:v},{shouldPreventDefault:!1,delay:1e3});return t.jsx(Lo,{windowSize:a,statusCode:n?.code??"",isProcessing:l,isSelected:d,children:t.jsx(zo,{onClick:z,...K,"data-testid":ee("remi-row-click-mobile",e.id),children:t.jsxs(Io,{children:[t.jsxs(Do,{children:[t.jsxs(Ro,{children:[t.jsx(Eo,{windowSize:a,children:e.reportTitle??V.newReimbursementTitle}),f!=null&&t.jsx(Fo,{children:`${V.byText} ${f?.firstName} ${f?.lastName}`})]}),t.jsxs(No,{children:[B[1].value+": ",u]}),s.length>1?t.jsx(Y,{title:V.reimbursementType.both,placement:"bottom-start",display:"flex",children:t.jsxs(ct,{children:[V.reimbursementType.type+": ",V.reimbursementType.titleForBoth]})}):t.jsxs(ct,{children:[V.reimbursementType.type+": ",V.reimbursementType[s[0]]]})]}),t.jsxs(Ao,{children:[t.jsx(Mo,{children:Be("0,0[.]00",e.amount)}),t.jsxs(Oo,{children:[n!==void 0?t.jsx(Vo,{className:"statusTag",color:n.color,bgColor:n.bgColor,borderColor:n.borderColor,children:n.value??V.hyphenText}):t.jsx(t.Fragment,{children:V.hyphenText}),y!==void 0&&k.length>0?k.length>1?t.jsx(Y,{title:`${V.byText} `+k.join(` ${V.orText} `),placement:"bottom-start",children:t.jsx(We,{style:{marginLeft:"auto"},children:`${V.byText} `+k[0]+`${V.dots}`})}):t.jsx(We,{style:{marginLeft:"auto"},children:`${V.byText} `+k[0]}):null,m!=null?t.jsx(We,{children:m}):null]})]})]})})})},Lo=o.div`
|
|
551
551
|
display: flex;
|
|
552
552
|
margin-bottom: ${i.sp3};
|
|
553
553
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -556,7 +556,7 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
556
556
|
padding-top: ${e=>pe.containerPaddingTop.valuePx(e.windowSize)};
|
|
557
557
|
padding-bottom: ${e=>pe.containerPaddingBottom.valuePx(e.windowSize)};
|
|
558
558
|
border: ${e=>` 1px solid ${e.isProcessing?e.theme.colors.grey2:e.isSelected?e.theme.colors.primary:e.theme.colors.grey3}`};
|
|
559
|
-
box-shadow: ${e=>e.isProcessing?"none":e.theme.mode==="dark"?`${
|
|
559
|
+
box-shadow: ${e=>e.isProcessing?"none":e.theme.mode==="dark"?`${Q.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${Q.boxShadowElevation}`};
|
|
560
560
|
border-radius: ${i.sp2};
|
|
561
561
|
cursor: ${e=>e.isProcessing?"initial":"pointer"};
|
|
562
562
|
${e=>e.isProcessing?X`
|
|
@@ -620,7 +620,7 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
620
620
|
flex-direction: column;
|
|
621
621
|
column-gap: 12px;
|
|
622
622
|
align-items: flex-start;
|
|
623
|
-
`,Eo=o(
|
|
623
|
+
`,Eo=o(N)`
|
|
624
624
|
color: ${e=>e.theme.colors.hero};
|
|
625
625
|
flex-grow: 1;
|
|
626
626
|
word-break: break-word;
|
|
@@ -632,11 +632,11 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
632
632
|
max-width: ${e=>e.windowSize==="small"?`${kt}px`:"initial"};
|
|
633
633
|
`,Fo=o(U)`
|
|
634
634
|
color: ${e=>e.theme.colors.grey1};
|
|
635
|
-
`,
|
|
635
|
+
`,Mo=o(N)`
|
|
636
636
|
display: flex;
|
|
637
637
|
margin-left: auto;
|
|
638
638
|
color: ${e=>e.theme.colors.hero};
|
|
639
|
-
`,
|
|
639
|
+
`,No=o(U)`
|
|
640
640
|
color: ${e=>e.theme.colors.grey1};
|
|
641
641
|
box-sizing: border-box;
|
|
642
642
|
display: flex;
|
|
@@ -663,7 +663,7 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
663
663
|
border: ${e=>`1px solid ${e.borderColor}`};
|
|
664
664
|
border-radius: ${i.sp1};
|
|
665
665
|
margin-left: auto;
|
|
666
|
-
`,Wo={lastListItemHeight:new h(200,158)},T=te.getLocalizedStrings(),{common:{texts:{maxLimit:Uo}},spendManagement:{billPay:_t,reimbursement:Ko}}=T,H=_t.bulkActions,N=Ko.bulkActions,F=T.common.strings.empty,me="bulkSelectIds",qo=({transactionList:e,botEmail:n,selectedTab:c,selectedSubTab:l,isShowDeletedBillsEnabled:d,isShowDeletedReimbursementEnabled:g,isBillPayCommentingEnabled:b,isReimbursementCommentingEnabled:x,searchText:f,isAdmin:u,entity:y,uiState:m,bulkSubmissionLimit:w,isBulkActionAllowed:a,transactionsSelectedForBulkAction:r,isDetectInsufficientFundsEnabled:$,fetchState:s,analytics:k,onTransactionRowClick:B,onReloadTransactions:L,onColumnSortConfigChanged:j})=>{const v=J(),z=S=>{const I=y==="bill_pay"?e[S].vendor?.name??e[S].candidateVendorName??F:e[S].reportTitle??F;return ei(I,v)},K=P.useRef(null);P.useEffect(()=>{K.current?.resetAfterIndex(0)},[v,K,c,l]);const E=P.forwardRef((S,I)=>{const{children:Q,style:ie,...re}=S;return t.jsx(bn,{ref:I,style:{...ie,width:"auto"},...re,children:t.jsx(yn,{children:Q})})});return E.displayName=T.spendManagement.billPay.billsByTabs.headerElementDisplayName,t.jsx(sn,{children:s==="Error"?t.jsxs(cn,{children:[t.jsx(pn,{onClick:L,children:t.jsx(mn,{})}),t.jsx(un,{children:T.peoplePage.reloadPage.label})]}):s==="Completed"&&e.length===0&&f!=F?t.jsx(et,{message:y==="bill_pay"?T.spendManagement.billPay.billsByTabs.noDataWithFilterText:T.spendManagement.reimbursement.reimbursementByTabs.noDataWithFilterText}):s==="Completed"&&e.length===0?t.jsx(et,{message:y==="bill_pay"?T.spendManagement.billPay.billsByTabs.noDataText:T.spendManagement.reimbursement.reimbursementByTabs.noDataText,orMessage:y==="bill_pay"?T.spendManagement.billPay.billsByTabs.noDataTextViaMail:T.spendManagement.reimbursement.reimbursementByTabs.noDataTextViaMail,emailTextPrefix:y==="bill_pay"?void 0:T.spendManagement.reimbursement.reimbursementByTabs.receiptTo,botEmail:n}):s==="Not-Started"||s==="In-Progress"?t.jsx(Kt,{fetchState:s,styles:{margin:"auto"}}):t.jsx(hn,{windowSize:v,children:t.jsx(qt,{children:({height:S,width:I})=>t.jsx(Ht,{ref:K,height:S,itemCount:y==="bill_pay"||y==="reimbursement"?1:e.length,innerElementType:E,itemSize:z,estimatedItemSize:Xt,itemKey:Q=>e[Q].id,width:I,overscanCount:Gt,itemData:{entity:y,isBulkActionAllowed:a,isShowDeletedBillsEnabled:d,isShowDeletedReimbursementEnabled:g,isBillPayCommentingEnabled:b,isReimbursementCommentingEnabled:x,transactionList:e,isAdmin:u,selectedTab:c,transactionsSelectedForBulkAction:r,bulkSubmissionLimit:w,uiState:m,analytics:k,isDetectInsufficientFundsEnabled:$,onTransactionRowClick:B,onColumnSortConfigChanged:j},initialScrollOffset:0,children:Ho})})})})},Rn=({transactionList:e,botEmail:n,allSubTabs:c,isAdmin:l,selectedTab:d,isShowDeletedBillsEnabled:g,isShowDeletedReimbursementEnabled:b,isBillPayCommentingEnabled:x,isReimbursementCommentingEnabled:f,selectedSubTab:u,searchText:y,entity:m,uiState:w,bulkSubmissionLimit:a,isBulkActionAllowed:r,isRecurringBillInBulkActionList:$,transactionsSelectedForBulkAction:s,allowedBulkActions:k,bulkSubmissionFetchState:B,isDetectInsufficientFundsEnabled:L,onTransactionRowClick:j,onSubtabChange:v,fetchState:z,onReloadTransactions:K,onColumnSortConfigChanged:E,analytics:S,updateBulkActionList:I,removeAllTransactionsFromBulkActionList:Q,onProceedForBulkActionClick:ie})=>{const re=Et({defaultValues:{bulkSelectIds:s},values:{bulkSelectIds:s}});P.useEffect(()=>{const _=re.watch((D,{name:C})=>{C!=null&&D!=null&&Ft(()=>he(C,D))});return()=>{_.unsubscribe()}});const he=async(_,D)=>{if(_===me){let C=[];if(D[me].includes(T.common.all.toLowerCase())){if(d==="scheduled"&&s.length===0){C=[];for(const A of e)if(A.bulkSelectInfo?.isSelectableForBulkActionSelectAll&&C.push(A.id),C.length===a)break}else C=D[me].filter(A=>A!==T.common.all.toLowerCase());if(m==="bill_pay"){const A=e.filter(fe=>C.includes(fe.id)),oe=W.getBillListUniqueType(A);S?.trackBillPayBulkSelectAll(d,u,oe)}else{const A=e.filter(fe=>C.includes(fe.id)),oe=W.getRemiListUniqueType(A.map(fe=>fe.reimbursementTypesIncluded));S?.trackReimbursementBulkSelectAll(d,u,oe)}}else C=D[me];I?.(C)}},Ee=()=>{k.includes("cancel")?Dt():Rt()},ge=J(),[Fe,O]=P.useState(!1),[q,Ne]=P.useState({type:F,title:F,description:F,primaryButtonText:F,secondaryButtonText:F});P.useEffect(()=>{const _=Nt(d,u,m);z==="Completed"&&_!=null&&S?.trackPageLoaded(_,m==="bill_pay"?"Bills":"Reimbursements")},[S,d,u,m,z]);const zt=_=>{v(_)},It=P.useCallback(()=>{const{title:_,description:D}=ln(m,s.length,d,$);if(Ne({type:"delete",title:_,description:D,primaryButtonText:T.common.texts.confirm,secondaryButtonText:T.common.texts.close}),m==="bill_pay"){const C=e.filter(oe=>s.includes(oe.id)),A=W.getBillListUniqueType(C);S?.trackBillPayBulkDeleted(s.length,d,u,A)}else{const C=e.filter(oe=>s.includes(oe.id)),A=W.getRemiListUniqueType(C.map(oe=>oe.reimbursementTypesIncluded));S?.trackReimbursementBulkDeleted(s.length,d,u,A)}O(!0)},[m,S,$,u,d,e,s]),Dt=P.useCallback(()=>{const{title:_,description:D}=nn(m,s.length);Ne({type:"cancel",title:_,description:D,primaryButtonText:T.common.texts.confirm,secondaryButtonText:T.common.texts.close}),O(!0)},[m,s.length]),At={onOkClick:_=>{if(O(!1),m==="bill_pay"){const D=e.filter(A=>s.includes(A.id)),C=W.getBillListUniqueType(D);S?.trackBillPayBulkPopupConfirm(q.type,d,u,C)}else{const D=e.filter(A=>s.includes(A.id)),C=W.getRemiListUniqueType(D.map(A=>A.reimbursementTypesIncluded));S?.trackReimbursementBulkPopupConfirm(q.type,d,u,C)}q.type==="delete"?ie?.("delete",_):ie?.("cancel",_)},onCancelClick:()=>{Q?.(),O(!1),Ne({type:F,title:F,description:F,primaryButtonText:F,secondaryButtonText:F})}},Rt=P.useCallback(()=>{if(m==="bill_pay"){const _=e.filter(C=>s.includes(C.id)),D=W.getBillListUniqueType(_);S?.trackBillPayBulkSelection(s.length,d,u,D)}else{const _=e.filter(C=>s.includes(C.id)),D=W.getRemiListUniqueType(_.map(C=>C.reimbursementTypesIncluded));S?.trackReimbursementBulkSelection(s.length,d,u,D)}k.includes("send_for_approval")?ie?.("send_for_approval"):ie?.(L?"approve":"review")},[m,k,e,S,s,d,u,ie,L]),Qe=k.filter(_=>_!=="delete").length>0;return t.jsxs(dn,{children:[t.jsx(ai,{tabIds:c,selectedTab:u,hasSubTabs:c.length>0,entity:m,enablePerformanceTracking:!1,onTabSelectedChange:zt,isSwitcherLeftAlign:!0}),t.jsx(Mt,{...re,children:t.jsxs(an,{onSubmit:re.handleSubmit(Ee),children:[t.jsx(qo,{botEmail:n,selectedTab:d,selectedSubTab:u,searchText:y,transactionList:e,fetchState:z,onReloadTransactions:K,onTransactionRowClick:j,entity:m,uiState:w,isAdmin:l,onColumnSortConfigChanged:E,analytics:S,isShowDeletedBillsEnabled:g,isShowDeletedReimbursementEnabled:b,isBillPayCommentingEnabled:x,isReimbursementCommentingEnabled:f,bulkSubmissionLimit:a,isBulkActionAllowed:r,transactionsSelectedForBulkAction:s,isDetectInsufficientFundsEnabled:L}),Fe?t.jsx(Ot,{titleComponent:t.jsx(Wt,{children:q.title}),descriptionComponent:t.jsx(Vt,{children:q.description}),primaryButtonText:q.primaryButtonText,proceedButtonVariant:q.type==="delete"?"danger":"primary",secondaryButtonText:q.secondaryButtonText,action:At,isNotesIncluded:d!=="draft",isEditPopup:!0}):null,s.length>0?t.jsx(Ut,{helperContainerStyle:ge==="small"?{margin:`${i.sp5} ${k.includes("delete")&&Qe?i.sp7:i.sp0} ${i.sp2} ${i.sp0}`}:{},showPrimaryButton:Qe,primaryBtn:{label:en(m,k,s.length),isLoading:q.type!=="delete"&&B==="In-Progress",isDisabled:q.type==="delete"&&B==="In-Progress",type:"submit",style:tn(k)},cancelBtn:{label:T.common.texts.goBack,isDisabled:B==="In-Progress",onClick:Q,style:on(k,ge)},leftSideComponent:Jo(s.length,a,m,ge),rightSideComponent:k.includes("delete")?Qo(s.length,q.type==="delete"&&B==="In-Progress",It,ge):null}):null]})})]})},Ho=({style:e,data:n})=>{const{entity:c,transactionList:l,transactionsSelectedForBulkAction:d,isAdmin:g,isBulkActionAllowed:b,isShowDeletedBillsEnabled:x,isShowDeletedReimbursementEnabled:f,isBillPayCommentingEnabled:u,isReimbursementCommentingEnabled:y,bulkSubmissionLimit:m,selectedTab:w,uiState:a,analytics:r,isDetectInsufficientFundsEnabled:$,onTransactionRowClick:s,onColumnSortConfigChanged:k}=n,B=J(),L=Ue(),j=b?d.length>0?"always_on":"checked_or_hover":"off";return t.jsx(gn,{style:{...e,width:"100%"},className:"spend-management-list-item",children:t.jsx(Qt,{style:{width:"100%"},checkBoxContainerStyle:{gap:i.sp3,width:"auto",marginLeft:B==="small"?i.sp0:i.sp4},labelStyle:{width:"100%"},checkBoxStyle:Zo(B),labelCheckBoxStyle:{marginLeft:B==="small"?i.sp2:i.sp0},checkBoxIconStyle:{backgroundColor:L.colors.grey4},infoIconContainerStyle:Yo(B),name:me,mode:j,selectionLimit:m,checkBoxes:c==="bill_pay"?[{label:t.jsx(gi,{companyNameSticky:!1,currentTab:w,onColumnSortConfigChanged:k,sortConfig:{sortKey:a.sortKey,sortOrder:a.sortOrder}}),defaultChecked:!1,groupLabel:!0,value:T.common.all.toLowerCase(),isException:!1},...l.map(v=>({label:t.jsx(Go,{transactionDetail:v,selectedTab:w,isBillPayCommentingEnabled:u,isShowDeletedBillsEnabled:x,onTransactionRowClick:s,billsSelectedForBulkAction:d,bulkSelectFormId:me,bulkSelectLimit:m,isSelectionMode:j==="always_on",isDetectInsufficientFundsEnabled:$}),value:v.id,groupLabel:!1,defaultChecked:!1,isException:v.bulkSelectInfo?.isSelectableForBulkAction===!1,exceptionMode:rn(v,d),exceptionInfo:pt(c,v),exceptionType:mt(v)}))]:[{label:t.jsx(co,{companyNameSticky:!1,currentTab:w,onColumnSortConfigChanged:k,analytics:r,sortConfig:{sortKey:a.sortKey,sortOrder:a.sortOrder}}),defaultChecked:!1,groupLabel:!0,value:T.common.all.toLowerCase(),isException:!1},...l.map(v=>({label:t.jsx(Xo,{transactionDetail:v,isShowDeletedReimbursementEnabled:f,isReimbursementCommentingEnabled:y,selectedTab:w,isAdmin:g,onTransactionRowClick:s,remisSelectedForBulkAction:d,bulkSelectFormId:me,bulkSelectLimit:m,isSelectionMode:j==="always_on"}),value:v.id,groupLabel:!1,defaultChecked:!1,isException:v.bulkSelectInfo?.isSelectableForBulkAction===!1,exceptionMode:"checked_or_hover",exceptionInfo:pt(c,v),exceptionType:mt(v)}))]})})},Go=({transactionDetail:e,selectedTab:n,isShowDeletedBillsEnabled:c,billsSelectedForBulkAction:l,bulkSelectFormId:d,bulkSelectLimit:g,isBillPayCommentingEnabled:b,isSelectionMode:x,isDetectInsufficientFundsEnabled:f,onTransactionRowClick:u})=>{const y=J()==="small"?Oi:Ti,m=ii(e,n),{bulkProcessingDetail:w}=e,a=W.isBulkProcessing(w?.type),r=()=>{const B=e.billPayInfo.outsideZeniTransactionPaymentMode;if(B==null||B==="other")return;const L=_t.billDetails.paymentOutsideZeni.paymentModeOptions.find(j=>j.value===B)?.label;return`${T.common.via} ${L}`},$=f&&e.billPayInfo.stage.code==="scheduled"&&!e.isDeleted&&e.totalAmountWithFeesInUSD!=null?oi(e.totalAmountWithFeesInUSD,e.withdrawFrom,e.billPayInfo.paymentDate):void 0,s=ni(e.billPayInfo,n,c,e.isDeleted,e.dueDate),k=$!=null&&s?.code!=="failed"&&s?.code!=="processing"&&s?.code!=="cancelled"&&s?.code!=="returned"&&s?.code!=="rejected"&&s?.code!=="paid";return t.jsx(Lt,{children:t.jsx(y,{reportTitleAdditionalInfo:m,transactionDetail:e,isBillPayCommentingEnabled:b,isSelected:l.includes(e.id),isProcessing:a,isBulkSelectionLimitReached:l.length===g,isSelectionMode:x,bulkSelectFormId:d,tagStatus:s,approvers:e.isDeleted===!0?void 0:ht(e,n),deletionAdditionalInfo:e.isDeleted===!0&&n!=="draft"?ut(e,n):void 0,onTransactionRowClick:a?()=>null:u,paidAdditionalInfo:n==="paid"&&!e.isDeleted?r():void 0,lowBalanceAlert:$,showLowBalanceTooltip:k})})},Xo=({transactionDetail:e,selectedTab:n,isAdmin:c,isShowDeletedReimbursementEnabled:l,isReimbursementCommentingEnabled:d,remisSelectedForBulkAction:g,bulkSelectFormId:b,bulkSelectLimit:x,isSelectionMode:f,onTransactionRowClick:u})=>{const y=J()==="small"?_o:xo,m=li(c,e.submittedBy),{bulkProcessingDetail:w}=e,a=W.isBulkProcessing(w?.type);return t.jsx(Lt,{children:t.jsx(y,{reportTitleAdditionalInfo:m,reimbursementDetail:e,isReimbursementCommentingEnabled:d,isSelected:g.includes(e.id),isProcessing:a,isBulkSelectionLimitReached:g.length===x,isSelectionMode:f,bulkSelectFormId:b,currentTab:n,date:si(e,n),approvers:e.isDeleted===!0?void 0:ht(e,n),tagStatus:ri(e,n,l),deletionAdditionalInfo:e.isDeleted===!0&&n!=="draft"?ut(e,n):void 0,onTransactionRowClick:a?()=>null:u})})},Zo=e=>{let n={zIndex:1,marginBottom:i.sp3,backgroundColor:"inherit"};return e==="small"&&(n={...n,position:"absolute",left:i.sp1,width:i.sp4,height:i.sp4}),n},Yo=e=>{let n={zIndex:1,marginBottom:i.sp2};return e==="small"&&(n={...n,position:"absolute",left:i.sp2,marginBottom:i.sp1,width:i.sp4,height:i.sp4}),n},Jo=(e,n,c,l)=>{const d=c==="bill_pay"?H.bill:N.report,g=(e>1?d+"s":d)+H.selected;return e>0?t.jsxs($n,{style:l==="small"?{position:"absolute",top:i.sp2,left:`-${i.sp5}`}:{},children:[t.jsx(vn,{multiDigit:e>=10,children:e}),t.jsx(Sn,{children:g}),e===n?t.jsx(kn,{children:Uo}):null]}):null},Qo=(e,n,c,l)=>e>0?t.jsx(xn,{style:l==="small"?{position:"absolute",top:i.sp7,right:`-${i.sp5}`}:{},children:t.jsx(wn,{isLoading:n,windowSize:l,className:"delete-icon-wrapper",onClick:n?()=>null:c,children:n?t.jsx(Zt,{size:"Small",start:!0}):t.jsx(Z,{enterDelay:600,title:T.common.delete,placement:"top",children:t.jsx(fn,{})})})}):null,pt=(e,n)=>{const{bulkProcessingDetail:c,bulkSelectInfo:l}=n,d=W.isBulkProcessing(c?.type),g=c?.type==="error";let b;if(d)b=c?.inProgressMessage;else if(g)b=c.error?.message;else if(l?.bulkSelectExceptionInfo!=null)if(e==="bill_pay"){const{exceptions:x}=T.spendManagement.billPay.bulkActions;b=x[l.bulkSelectExceptionInfo]}else{const{exceptions:x}=T.spendManagement.reimbursement.bulkActions;b=x[l.bulkSelectExceptionInfo]}return b},en=(e,n,c)=>{const{billPay:l}=T.spendManagement;return n.includes("cancel")?e==="reimbursement"?N.popUps.cancel.title.replace("__report__",c>1?N.reports:N.report):l.bulkActions.popUps.cancel.title.replace("<_bill_>",c>1?l.bulkActions.bills:l.bulkActions.bill):n.includes("send_for_approval")?l.billDetails.sendForApproval:T.common.review},tn=e=>{let n;return e.includes("cancel")===!1&&e.includes("send_for_approval")===!1&&(n={minWidth:"92px"}),n},on=(e,n)=>{let c;return n!=="small"&&(e.includes("cancel")?c={minWidth:"116px"}:e.includes("send_for_approval")&&(c={minWidth:"160px"})),c},nn=(e,n)=>{const{this_:c,these:l,payment:d,payments:g,bills:b,bill:x,reports:f,report:u,they:y,it:m}=T.common.texts;return n>1?e==="bill_pay"?{title:H.popUps.cancel.title.replace("<_bill_>",T.drawerMenus.bills),description:H.popUps.cancel.description.replace("<_this_>",l).replace("<_bill_>",b).replace("<_it_>",y).replace("<_payment_>",g)}:{title:N.popUps.cancel.title.replace("__report__",N.reports),description:N.popUps.cancel.description.replace("<_this_>",l).replace("__report__",f).replace("<_it_>",y).replace("<_payment_>",g)}:e==="reimbursement"?{title:N.popUps.cancel.title.replace("__report__",N.report),description:N.popUps.cancel.description.replace("<_this_>",c).replace("__report__",u).replace("<_it_>",m).replace("<_payment_>",d)}:{title:H.popUps.cancel.title.replace("<_bill_>",H.bill),description:H.popUps.cancel.description.replace("<_this_>",c).replace("<_bill_>",x).replace("<_it_>",m).replace("<_payment_>",d)}},ln=(e,n,c,l)=>{const{this_:d,these:g,payment:b,payments:x,bills:f,bill:u,report:y,reports:m,they:w,it:a}=T.common.texts,r=n>1;let $=F;e==="bill_pay"?$=H.popUps.delete.title.replace("<_bill_>",r?H.bills:H.bill):$=N.popUps.delete.title.replace("__report__",r?N.reports:N.report);let s=F;return c==="draft"?e==="bill_pay"?s=H.popUps.delete.descriptionDraft.replace("<_this_>",r?g:d).replace("<_bill_>",r?f:u):s=N.popUps.delete.descriptionDraft.replace("<_this_>",r?g:d).replace("__report__",r?m:y):l?s=H.popUps.delete.descriptionRecurring.replace("<_payment_>",r?b:x):e==="bill_pay"?s=H.popUps.delete.descriptionOther.replace("<_this_>",r?g:d).replace("<_bill_>",r?f:u).replace("<_it_>",r?w:a).replace("<_payment_>",r?x:b):s=N.popUps.delete.descriptionOther.replace("<_this_>",r?g:d).replace("__report__",r?m:y).replace("<_it_>",r?w:a).replace("<_payment_>",r?x:b),{title:$,description:s}},rn=(e,n)=>{const c=e.bulkSelectInfo?.bulkSelectExceptionInfo;return n.length===0&&c!=null&&(c==="bookCloseDateProcessing"||c==="noActionRecurring")?"hover_only":"checked_or_hover"},mt=e=>W.isBulkProcessing(e.bulkProcessingDetail?.type)?"info":"alert",sn=o.div`
|
|
666
|
+
`,Wo={lastListItemHeight:new h(200,158)},T=te.getLocalizedStrings(),{common:{texts:{maxLimit:Uo}},spendManagement:{billPay:_t,reimbursement:Ko}}=T,H=_t.bulkActions,M=Ko.bulkActions,F=T.common.strings.empty,me="bulkSelectIds",qo=({transactionList:e,botEmail:n,selectedTab:c,selectedSubTab:l,isShowDeletedBillsEnabled:d,isShowDeletedReimbursementEnabled:g,isBillPayCommentingEnabled:b,isReimbursementCommentingEnabled:x,searchText:f,isAdmin:u,entity:y,uiState:m,bulkSubmissionLimit:w,isBulkActionAllowed:a,transactionsSelectedForBulkAction:r,isDetectInsufficientFundsEnabled:$,fetchState:s,analytics:k,onTransactionRowClick:B,onReloadTransactions:L,onColumnSortConfigChanged:j})=>{const v=Z(),z=S=>{const I=y==="bill_pay"?e[S].vendor?.name??e[S].candidateVendorName??F:e[S].reportTitle??F;return ei(I,v)},K=P.useRef(null);P.useEffect(()=>{K.current?.resetAfterIndex(0)},[v,K,c,l]);const E=P.forwardRef((S,I)=>{const{children:J,style:ie,...re}=S;return t.jsx(bn,{ref:I,style:{...ie,width:"auto"},...re,children:t.jsx(yn,{children:J})})});return E.displayName=T.spendManagement.billPay.billsByTabs.headerElementDisplayName,t.jsx(sn,{children:s==="Error"?t.jsxs(cn,{children:[t.jsx(pn,{onClick:L,children:t.jsx(mn,{})}),t.jsx(un,{children:T.peoplePage.reloadPage.label})]}):s==="Completed"&&e.length===0&&f!=F?t.jsx(et,{message:y==="bill_pay"?T.spendManagement.billPay.billsByTabs.noDataWithFilterText:T.spendManagement.reimbursement.reimbursementByTabs.noDataWithFilterText}):s==="Completed"&&e.length===0?t.jsx(et,{message:y==="bill_pay"?T.spendManagement.billPay.billsByTabs.noDataText:T.spendManagement.reimbursement.reimbursementByTabs.noDataText,orMessage:y==="bill_pay"?T.spendManagement.billPay.billsByTabs.noDataTextViaMail:T.spendManagement.reimbursement.reimbursementByTabs.noDataTextViaMail,emailTextPrefix:y==="bill_pay"?void 0:T.spendManagement.reimbursement.reimbursementByTabs.receiptTo,botEmail:n}):s==="Not-Started"||s==="In-Progress"?t.jsx(Kt,{fetchState:s,styles:{margin:"auto"}}):t.jsx(hn,{windowSize:v,children:t.jsx(qt,{children:({height:S,width:I})=>t.jsx(Ht,{ref:K,height:S,itemCount:y==="bill_pay"||y==="reimbursement"?1:e.length,innerElementType:E,itemSize:z,estimatedItemSize:Xt,itemKey:J=>e[J].id,width:I,overscanCount:Gt,itemData:{entity:y,isBulkActionAllowed:a,isShowDeletedBillsEnabled:d,isShowDeletedReimbursementEnabled:g,isBillPayCommentingEnabled:b,isReimbursementCommentingEnabled:x,transactionList:e,isAdmin:u,selectedTab:c,transactionsSelectedForBulkAction:r,bulkSubmissionLimit:w,uiState:m,analytics:k,isDetectInsufficientFundsEnabled:$,onTransactionRowClick:B,onColumnSortConfigChanged:j},initialScrollOffset:0,children:Ho})})})})},Rn=({transactionList:e,botEmail:n,allSubTabs:c,isAdmin:l,selectedTab:d,isShowDeletedBillsEnabled:g,isShowDeletedReimbursementEnabled:b,isBillPayCommentingEnabled:x,isReimbursementCommentingEnabled:f,selectedSubTab:u,searchText:y,entity:m,uiState:w,bulkSubmissionLimit:a,isBulkActionAllowed:r,isRecurringBillInBulkActionList:$,transactionsSelectedForBulkAction:s,allowedBulkActions:k,bulkSubmissionFetchState:B,isDetectInsufficientFundsEnabled:L,onTransactionRowClick:j,onSubtabChange:v,fetchState:z,onReloadTransactions:K,onColumnSortConfigChanged:E,analytics:S,updateBulkActionList:I,removeAllTransactionsFromBulkActionList:J,onProceedForBulkActionClick:ie})=>{const re=Et({defaultValues:{bulkSelectIds:s},values:{bulkSelectIds:s}});P.useEffect(()=>{const _=re.watch((D,{name:C})=>{C!=null&&D!=null&&Ft(()=>he(C,D))});return()=>{_.unsubscribe()}});const he=async(_,D)=>{if(_===me){let C=[];if(D[me].includes(T.common.all.toLowerCase())){if(d==="scheduled"&&s.length===0){C=[];for(const A of e)if(A.bulkSelectInfo?.isSelectableForBulkActionSelectAll&&C.push(A.id),C.length===a)break}else C=D[me].filter(A=>A!==T.common.all.toLowerCase());if(m==="bill_pay"){const A=e.filter(fe=>C.includes(fe.id)),oe=W.getBillListUniqueType(A);S?.trackBillPayBulkSelectAll(d,u,oe)}else{const A=e.filter(fe=>C.includes(fe.id)),oe=W.getRemiListUniqueType(A.map(fe=>fe.reimbursementTypesIncluded));S?.trackReimbursementBulkSelectAll(d,u,oe)}}else C=D[me];I?.(C)}},Ee=()=>{k.includes("cancel")?Dt():Rt()},ge=Z(),[Fe,O]=P.useState(!1),[q,Me]=P.useState({type:F,title:F,description:F,primaryButtonText:F,secondaryButtonText:F});P.useEffect(()=>{const _=Mt(d,u,m);z==="Completed"&&_!=null&&S?.trackPageLoaded(_,m==="bill_pay"?"Bills":"Reimbursements")},[S,d,u,m,z]);const zt=_=>{v(_)},It=P.useCallback(()=>{const{title:_,description:D}=ln(m,s.length,d,$);if(Me({type:"delete",title:_,description:D,primaryButtonText:T.common.texts.confirm,secondaryButtonText:T.common.texts.close}),m==="bill_pay"){const C=e.filter(oe=>s.includes(oe.id)),A=W.getBillListUniqueType(C);S?.trackBillPayBulkDeleted(s.length,d,u,A)}else{const C=e.filter(oe=>s.includes(oe.id)),A=W.getRemiListUniqueType(C.map(oe=>oe.reimbursementTypesIncluded));S?.trackReimbursementBulkDeleted(s.length,d,u,A)}O(!0)},[m,S,$,u,d,e,s]),Dt=P.useCallback(()=>{const{title:_,description:D}=nn(m,s.length);Me({type:"cancel",title:_,description:D,primaryButtonText:T.common.texts.confirm,secondaryButtonText:T.common.texts.close}),O(!0)},[m,s.length]),At={onOkClick:_=>{if(O(!1),m==="bill_pay"){const D=e.filter(A=>s.includes(A.id)),C=W.getBillListUniqueType(D);S?.trackBillPayBulkPopupConfirm(q.type,d,u,C)}else{const D=e.filter(A=>s.includes(A.id)),C=W.getRemiListUniqueType(D.map(A=>A.reimbursementTypesIncluded));S?.trackReimbursementBulkPopupConfirm(q.type,d,u,C)}q.type==="delete"?ie?.("delete",_):ie?.("cancel",_)},onCancelClick:()=>{J?.(),O(!1),Me({type:F,title:F,description:F,primaryButtonText:F,secondaryButtonText:F})}},Rt=P.useCallback(()=>{if(m==="bill_pay"){const _=e.filter(C=>s.includes(C.id)),D=W.getBillListUniqueType(_);S?.trackBillPayBulkSelection(s.length,d,u,D)}else{const _=e.filter(C=>s.includes(C.id)),D=W.getRemiListUniqueType(_.map(C=>C.reimbursementTypesIncluded));S?.trackReimbursementBulkSelection(s.length,d,u,D)}k.includes("send_for_approval")?ie?.("send_for_approval"):ie?.(L?"approve":"review")},[m,k,e,S,s,d,u,ie,L]),Je=k.filter(_=>_!=="delete").length>0;return t.jsxs(dn,{children:[t.jsx(ai,{tabIds:c,selectedTab:u,hasSubTabs:c.length>0,entity:m,enablePerformanceTracking:!1,onTabSelectedChange:zt,isSwitcherLeftAlign:!0}),t.jsx(Nt,{...re,children:t.jsxs(an,{onSubmit:re.handleSubmit(Ee),children:[t.jsx(qo,{botEmail:n,selectedTab:d,selectedSubTab:u,searchText:y,transactionList:e,fetchState:z,onReloadTransactions:K,onTransactionRowClick:j,entity:m,uiState:w,isAdmin:l,onColumnSortConfigChanged:E,analytics:S,isShowDeletedBillsEnabled:g,isShowDeletedReimbursementEnabled:b,isBillPayCommentingEnabled:x,isReimbursementCommentingEnabled:f,bulkSubmissionLimit:a,isBulkActionAllowed:r,transactionsSelectedForBulkAction:s,isDetectInsufficientFundsEnabled:L}),Fe?t.jsx(Ot,{titleComponent:t.jsx(Wt,{children:q.title}),descriptionComponent:t.jsx(Vt,{children:q.description}),primaryButtonText:q.primaryButtonText,proceedButtonVariant:q.type==="delete"?"danger":"primary",secondaryButtonText:q.secondaryButtonText,action:At,isNotesIncluded:d!=="draft",isEditPopup:!0}):null,s.length>0?t.jsx(Ut,{helperContainerStyle:ge==="small"?{margin:`${i.sp5} ${k.includes("delete")&&Je?i.sp7:i.sp0} ${i.sp2} ${i.sp0}`}:{},showPrimaryButton:Je,primaryBtn:{label:en(m,k,s.length),isLoading:q.type!=="delete"&&B==="In-Progress",isDisabled:q.type==="delete"&&B==="In-Progress",type:"submit",style:tn(k)},cancelBtn:{label:T.common.texts.goBack,isDisabled:B==="In-Progress",onClick:J,style:on(k,ge)},leftSideComponent:Zo(s.length,a,m,ge),rightSideComponent:k.includes("delete")?Jo(s.length,q.type==="delete"&&B==="In-Progress",It,ge):null}):null]})})]})},Ho=({style:e,data:n})=>{const{entity:c,transactionList:l,transactionsSelectedForBulkAction:d,isAdmin:g,isBulkActionAllowed:b,isShowDeletedBillsEnabled:x,isShowDeletedReimbursementEnabled:f,isBillPayCommentingEnabled:u,isReimbursementCommentingEnabled:y,bulkSubmissionLimit:m,selectedTab:w,uiState:a,analytics:r,isDetectInsufficientFundsEnabled:$,onTransactionRowClick:s,onColumnSortConfigChanged:k}=n,B=Z(),L=Ue(),j=b?d.length>0?"always_on":"checked_or_hover":"off";return t.jsx(gn,{style:{...e,width:"100%"},className:"spend-management-list-item",children:t.jsx(Jt,{style:{width:"100%"},checkBoxContainerStyle:{gap:i.sp3,width:"auto",marginLeft:B==="small"?i.sp0:i.sp4},labelStyle:{width:"100%"},checkBoxStyle:Yo(B),labelCheckBoxStyle:{marginLeft:B==="small"?i.sp2:i.sp0},checkBoxIconStyle:{backgroundColor:L.colors.grey4},infoIconContainerStyle:Qo(B),name:me,mode:j,selectionLimit:m,checkBoxes:c==="bill_pay"?[{label:t.jsx(gi,{companyNameSticky:!1,currentTab:w,onColumnSortConfigChanged:k,sortConfig:{sortKey:a.sortKey,sortOrder:a.sortOrder}}),defaultChecked:!1,groupLabel:!0,value:T.common.all.toLowerCase(),isException:!1},...l.map(v=>({label:t.jsx(Go,{transactionDetail:v,selectedTab:w,isBillPayCommentingEnabled:u,isShowDeletedBillsEnabled:x,onTransactionRowClick:s,billsSelectedForBulkAction:d,bulkSelectFormId:me,bulkSelectLimit:m,isSelectionMode:j==="always_on",isDetectInsufficientFundsEnabled:$}),value:v.id,groupLabel:!1,defaultChecked:!1,isException:v.bulkSelectInfo?.isSelectableForBulkAction===!1,exceptionMode:rn(v,d),exceptionInfo:pt(c,v),exceptionType:mt(v)}))]:[{label:t.jsx(co,{companyNameSticky:!1,currentTab:w,onColumnSortConfigChanged:k,analytics:r,sortConfig:{sortKey:a.sortKey,sortOrder:a.sortOrder}}),defaultChecked:!1,groupLabel:!0,value:T.common.all.toLowerCase(),isException:!1},...l.map(v=>({label:t.jsx(Xo,{transactionDetail:v,isShowDeletedReimbursementEnabled:f,isReimbursementCommentingEnabled:y,selectedTab:w,isAdmin:g,onTransactionRowClick:s,remisSelectedForBulkAction:d,bulkSelectFormId:me,bulkSelectLimit:m,isSelectionMode:j==="always_on"}),value:v.id,groupLabel:!1,defaultChecked:!1,isException:v.bulkSelectInfo?.isSelectableForBulkAction===!1,exceptionMode:"checked_or_hover",exceptionInfo:pt(c,v),exceptionType:mt(v)}))]})})},Go=({transactionDetail:e,selectedTab:n,isShowDeletedBillsEnabled:c,billsSelectedForBulkAction:l,bulkSelectFormId:d,bulkSelectLimit:g,isBillPayCommentingEnabled:b,isSelectionMode:x,isDetectInsufficientFundsEnabled:f,onTransactionRowClick:u})=>{const y=Z()==="small"?Oi:Ti,m=ii(e,n),{bulkProcessingDetail:w}=e,a=W.isBulkProcessing(w?.type),r=()=>{const B=e.billPayInfo.outsideZeniTransactionPaymentMode;if(B==null||B==="other")return;const L=_t.billDetails.paymentOutsideZeni.paymentModeOptions.find(j=>j.value===B)?.label;return`${T.common.via} ${L}`},$=f&&e.billPayInfo.stage.code==="scheduled"&&!e.isDeleted&&e.totalAmountWithFeesInUSD!=null?oi(e.totalAmountWithFeesInUSD,e.withdrawFrom,e.billPayInfo.paymentDate):void 0,s=ni(e.billPayInfo,n,c,e.isDeleted,e.dueDate),k=$!=null&&s?.code!=="failed"&&s?.code!=="processing"&&s?.code!=="cancelled"&&s?.code!=="returned"&&s?.code!=="rejected"&&s?.code!=="paid";return t.jsx(Lt,{children:t.jsx(y,{reportTitleAdditionalInfo:m,transactionDetail:e,isBillPayCommentingEnabled:b,isSelected:l.includes(e.id),isProcessing:a,isBulkSelectionLimitReached:l.length===g,isSelectionMode:x,bulkSelectFormId:d,tagStatus:s,approvers:e.isDeleted===!0?void 0:ht(e,n),deletionAdditionalInfo:e.isDeleted===!0&&n!=="draft"?ut(e,n):void 0,onTransactionRowClick:a?()=>null:u,paidAdditionalInfo:n==="paid"&&!e.isDeleted?r():void 0,lowBalanceAlert:$,showLowBalanceTooltip:k})})},Xo=({transactionDetail:e,selectedTab:n,isAdmin:c,isShowDeletedReimbursementEnabled:l,isReimbursementCommentingEnabled:d,remisSelectedForBulkAction:g,bulkSelectFormId:b,bulkSelectLimit:x,isSelectionMode:f,onTransactionRowClick:u})=>{const y=Z()==="small"?_o:xo,m=li(c,e.submittedBy),{bulkProcessingDetail:w}=e,a=W.isBulkProcessing(w?.type);return t.jsx(Lt,{children:t.jsx(y,{reportTitleAdditionalInfo:m,reimbursementDetail:e,isReimbursementCommentingEnabled:d,isSelected:g.includes(e.id),isProcessing:a,isBulkSelectionLimitReached:g.length===x,isSelectionMode:f,bulkSelectFormId:b,currentTab:n,date:si(e,n),approvers:e.isDeleted===!0?void 0:ht(e,n),tagStatus:ri(e,n,l),deletionAdditionalInfo:e.isDeleted===!0&&n!=="draft"?ut(e,n):void 0,onTransactionRowClick:a?()=>null:u})})},Yo=e=>{let n={zIndex:1,marginBottom:i.sp3,backgroundColor:"inherit"};return e==="small"&&(n={...n,position:"absolute",left:i.sp1,width:i.sp4,height:i.sp4}),n},Qo=e=>{let n={zIndex:1,marginBottom:i.sp2};return e==="small"&&(n={...n,position:"absolute",left:i.sp2,marginBottom:i.sp1,width:i.sp4,height:i.sp4}),n},Zo=(e,n,c,l)=>{const d=c==="bill_pay"?H.bill:M.report,g=(e>1?d+"s":d)+H.selected;return e>0?t.jsxs($n,{style:l==="small"?{position:"absolute",top:i.sp2,left:`-${i.sp5}`}:{},children:[t.jsx(vn,{multiDigit:e>=10,children:e}),t.jsx(Sn,{children:g}),e===n?t.jsx(kn,{children:Uo}):null]}):null},Jo=(e,n,c,l)=>e>0?t.jsx(xn,{style:l==="small"?{position:"absolute",top:i.sp7,right:`-${i.sp5}`}:{},children:t.jsx(wn,{isLoading:n,windowSize:l,className:"delete-icon-wrapper",onClick:n?()=>null:c,children:n?t.jsx(Yt,{size:"Small",start:!0}):t.jsx(Y,{enterDelay:600,title:T.common.delete,placement:"top",children:t.jsx(fn,{})})})}):null,pt=(e,n)=>{const{bulkProcessingDetail:c,bulkSelectInfo:l}=n,d=W.isBulkProcessing(c?.type),g=c?.type==="error";let b;if(d)b=c?.inProgressMessage;else if(g)b=c.error?.message;else if(l?.bulkSelectExceptionInfo!=null)if(e==="bill_pay"){const{exceptions:x}=T.spendManagement.billPay.bulkActions;b=x[l.bulkSelectExceptionInfo]}else{const{exceptions:x}=T.spendManagement.reimbursement.bulkActions;b=x[l.bulkSelectExceptionInfo]}return b},en=(e,n,c)=>{const{billPay:l}=T.spendManagement;return n.includes("cancel")?e==="reimbursement"?M.popUps.cancel.title.replace("__report__",c>1?M.reports:M.report):l.bulkActions.popUps.cancel.title.replace("<_bill_>",c>1?l.bulkActions.bills:l.bulkActions.bill):n.includes("send_for_approval")?l.billDetails.sendForApproval:T.common.review},tn=e=>{let n;return e.includes("cancel")===!1&&e.includes("send_for_approval")===!1&&(n={minWidth:"92px"}),n},on=(e,n)=>{let c;return n!=="small"&&(e.includes("cancel")?c={minWidth:"116px"}:e.includes("send_for_approval")&&(c={minWidth:"160px"})),c},nn=(e,n)=>{const{this_:c,these:l,payment:d,payments:g,bills:b,bill:x,reports:f,report:u,they:y,it:m}=T.common.texts;return n>1?e==="bill_pay"?{title:H.popUps.cancel.title.replace("<_bill_>",T.drawerMenus.bills),description:H.popUps.cancel.description.replace("<_this_>",l).replace("<_bill_>",b).replace("<_it_>",y).replace("<_payment_>",g)}:{title:M.popUps.cancel.title.replace("__report__",M.reports),description:M.popUps.cancel.description.replace("<_this_>",l).replace("__report__",f).replace("<_it_>",y).replace("<_payment_>",g)}:e==="reimbursement"?{title:M.popUps.cancel.title.replace("__report__",M.report),description:M.popUps.cancel.description.replace("<_this_>",c).replace("__report__",u).replace("<_it_>",m).replace("<_payment_>",d)}:{title:H.popUps.cancel.title.replace("<_bill_>",H.bill),description:H.popUps.cancel.description.replace("<_this_>",c).replace("<_bill_>",x).replace("<_it_>",m).replace("<_payment_>",d)}},ln=(e,n,c,l)=>{const{this_:d,these:g,payment:b,payments:x,bills:f,bill:u,report:y,reports:m,they:w,it:a}=T.common.texts,r=n>1;let $=F;e==="bill_pay"?$=H.popUps.delete.title.replace("<_bill_>",r?H.bills:H.bill):$=M.popUps.delete.title.replace("__report__",r?M.reports:M.report);let s=F;return c==="draft"?e==="bill_pay"?s=H.popUps.delete.descriptionDraft.replace("<_this_>",r?g:d).replace("<_bill_>",r?f:u):s=M.popUps.delete.descriptionDraft.replace("<_this_>",r?g:d).replace("__report__",r?m:y):l?s=H.popUps.delete.descriptionRecurring.replace("<_payment_>",r?b:x):e==="bill_pay"?s=H.popUps.delete.descriptionOther.replace("<_this_>",r?g:d).replace("<_bill_>",r?f:u).replace("<_it_>",r?w:a).replace("<_payment_>",r?x:b):s=M.popUps.delete.descriptionOther.replace("<_this_>",r?g:d).replace("__report__",r?m:y).replace("<_it_>",r?w:a).replace("<_payment_>",r?x:b),{title:$,description:s}},rn=(e,n)=>{const c=e.bulkSelectInfo?.bulkSelectExceptionInfo;return n.length===0&&c!=null&&(c==="bookCloseDateProcessing"||c==="noActionRecurring")?"hover_only":"checked_or_hover"},mt=e=>W.isBulkProcessing(e.bulkProcessingDetail?.type)?"info":"alert",sn=o.div`
|
|
667
667
|
display: block;
|
|
668
668
|
height: 100%;
|
|
669
669
|
`,an=o.form`
|
|
@@ -687,14 +687,14 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
687
687
|
background: ${e=>e.theme.colors.background};
|
|
688
688
|
border-radius: 50%;
|
|
689
689
|
cursor: pointer;
|
|
690
|
-
`,mn=o(
|
|
690
|
+
`,mn=o(Qt)`
|
|
691
691
|
height: ${i.sp5};
|
|
692
692
|
width: ${i.sp5};
|
|
693
693
|
color: ${e=>e.theme.colors.grey1};
|
|
694
694
|
&:hover {
|
|
695
695
|
color: ${e=>e.theme.colors.primary};
|
|
696
696
|
}
|
|
697
|
-
`,un=o(
|
|
697
|
+
`,un=o(Zt)`
|
|
698
698
|
margin-top: ${i.sp3};
|
|
699
699
|
color: ${e=>e.theme.colors.hero};
|
|
700
700
|
`,hn=o.div`
|
|
@@ -723,14 +723,14 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
723
723
|
`,wn=o.div`
|
|
724
724
|
margin-right: ${i.sp8};
|
|
725
725
|
cursor: ${e=>e.isLoading?"initial":"pointer"};
|
|
726
|
-
color: ${e=>e.windowSize==="small"?
|
|
726
|
+
color: ${e=>e.windowSize==="small"?Q.important:e.theme.colors.grey1};
|
|
727
727
|
`,fn=o(ti)`
|
|
728
728
|
width: ${i.sp4};
|
|
729
729
|
height: ${i.sp4};
|
|
730
730
|
cursor: pointer;
|
|
731
731
|
color: inherit;
|
|
732
732
|
&:hover {
|
|
733
|
-
color: ${
|
|
733
|
+
color: ${Q.important};
|
|
734
734
|
}
|
|
735
735
|
`,$n=o.div`
|
|
736
736
|
display: flex;
|
|
@@ -747,8 +747,8 @@ import{a as Et,c3 as Ft,M as te,l as W,X as J,kQ as Nt,j as t,F as Mt,bN as Ot,b
|
|
|
747
747
|
display: flex;
|
|
748
748
|
justify-content: center;
|
|
749
749
|
align-items: center;
|
|
750
|
-
`,Sn=o(
|
|
750
|
+
`,Sn=o(N)`
|
|
751
751
|
color: ${e=>e.theme.colors.primary};
|
|
752
752
|
`,kn=o(se)`
|
|
753
|
-
color: ${
|
|
753
|
+
color: ${Q.important};
|
|
754
754
|
`;export{Rn as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as z,u as _,M as L,j as o,
|
|
1
|
+
import{X as z,u as _,M as L,j as o,bM as H,o as r,gm as ie,q as R,K as ce,r as J,b1 as Z,C as ee,gn as de,go as pe,cq as te,b2 as A,av as ue,v as oe,gp as he,a$ as re,y as ge,gq as me,gr as xe,t as N,as as fe,l as M,gs as ye,A as Ce,gt as be,gu as ve,g as we,cn as $e,bf as Se,fu as je,e as ke,h as V,a6 as Le,fv as Oe,a9 as Ee}from"./index-DEtloYMb.js";import{b as a,n as l,k as Ie}from"./vendor-CnQcJ2Lu.js";const Me=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
align-items: center;
|
|
@@ -6,7 +6,7 @@ import{X as z,u as _,M as L,j as o,bL as H,o as r,gn as ie,p as B,K as ce,q as Q
|
|
|
6
6
|
color: ${e=>e.theme.colors.primary};
|
|
7
7
|
width: ${r.sp3};
|
|
8
8
|
height: ${r.sp3};
|
|
9
|
-
`,W=({value:e,defaultMenuIsOpen:t=!1,options:n,placeHolder:i,onChange:p,getOptionLabel:s})=>{const C=_(),y=a.useRef(null),h=
|
|
9
|
+
`,W=({value:e,defaultMenuIsOpen:t=!1,options:n,placeHolder:i,onChange:p,getOptionLabel:s})=>{const C=_(),y=a.useRef(null),h=Be(C),b=n.find(x=>x.value===e);return a.useEffect(()=>{const x=setTimeout(()=>{y.current!=null&&t&&y.current.focus()},300);return()=>{clearTimeout(x)}},[t]),o.jsx(Z,{ref:y,isMulti:!1,value:b,onChange:x=>{p(x)},placeholder:i,options:n,styles:h,openMenuOnFocus:!0,components:{Option:x=>Fe(x,s),SingleValue:x=>Te(x,s)}})},Te=(e,t)=>{const n=t?.(e.data.value)??e.data.label;return o.jsx(A.SingleValue,{...e,children:o.jsx(ue,{children:n})})},Fe=(e,t)=>{const{isSelected:n}=e,i=t?.(e.data.value)??e.data.label;return o.jsx(A.Option,{...e,children:o.jsxs(Me,{children:[o.jsx(oe,{children:i}),n?o.jsx(Ae,{}):null]})})},Be=e=>({placeholder:t=>({...t,color:e.colors.grey1,...J.standardRegular.cssObject}),input:t=>({...t,color:e.colors.primary,margin:0,padding:0}),control:t=>({...t,backgroundColor:e.colors.background,border:"none",boxShadow:"none",height:r.sp6,cursor:"pointer"}),valueContainer:t=>({...t,height:"100%",padding:`${r.sp2} ${r.sp3}`}),indicatorSeparator:t=>({...t,display:"none"}),indicatorsContainer:t=>({...t,display:"none"}),option:(t,n)=>({...t,padding:`${r.sp2} ${r.sp3}`,cursor:"pointer",color:n.isSelected||n.isFocused?e.colors.primary:e.colors.hero,background:n.isSelected||n.isFocused?e.colors.background:e.colors.grey5,":hover":{color:e.colors.primary,backgroundColor:e.colors.background}}),singleValue:t=>({...t,color:e.colors.primary,margin:0}),menuList:t=>({...t,backgroundColor:e.colors.grey5,maxHeight:"320px"}),menu:t=>({...t,boxShadow:`${r.sp0} 2px ${r.sp2} ${e.colors.dropShadowHover}`})}),Re="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.8999%205.04416L9.65575%2017.6653C9.48897%2017.8247%209.29152%2017.9484%209.07541%2018.0291C8.85929%2018.1097%208.62902%2018.1456%208.39862%2018.1345C8.17133%2018.1236%207.94853%2018.0673%207.7434%2017.9689C7.53827%2017.8704%207.35499%2017.7318%207.20439%2017.5612L1.17558%2010.7125'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ze=l.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: flex-start;
|
|
12
12
|
padding: ${r.sp2} ${r.sp3};
|
|
@@ -52,7 +52,7 @@ import{X as z,u as _,M as L,j as o,bL as H,o as r,gn as ie,p as B,K as ce,q as Q
|
|
|
52
52
|
`,qe=l(Ee)`
|
|
53
53
|
overflow: hidden;
|
|
54
54
|
text-overflow: ellipsis;
|
|
55
|
-
`,
|
|
55
|
+
`,Ye=({options:e,value:t,placeHolder:n,filterCategoryType:i,searchAutoCompleteData:p,searchAutoCompleteActions:s,onChange:C})=>{const y=_(),h=ve(y),[b,x]=a.useState(e);a.useEffect(()=>{i==="searchAutocomplete"&&p?.entityAutoCompleteView.fetchState==="Completed"&&x(d=>ye([...d,...p?.entityAutoCompleteView!=null?Ge(p?.entityAutoCompleteView):[]],"value"))},[p?.entityAutoCompleteView.fetchState]);const S=i==="searchAutocomplete"?t.map(d=>({label:d,value:d})):t.map(d=>b.find(f=>f.value===d)),v=a.useRef(Ce(d=>s?.onAutoCompleteInputChange?.(d),500,{trailing:!0})).current,j=p?.entityAutoCompleteView.fetchState,O={options:e,filterCategoryType:i,searchAutoCompleteStatus:j},$=L.getLocalizedStrings().common.filters;return o.jsx(ze,{children:i==="dateRange"?o.jsx(be,{onDateRangeChange:d=>{C([{label:$.startDate,value:d.startDate??""},{label:$.endDate,value:d.endDate??""}])},selectedDates:t}):o.jsxs(_e,{children:[S.length===0&&i==="user"&&o.jsx(Ve,{}),o.jsx(Z,{...O,isMulti:!0,hideSelectedOptions:!1,value:S,onInputChange:d=>{i==="searchAutocomplete"&&v(d)},onChange:d=>{C(d)},placeholder:n,options:b,styles:h,menuPosition:"fixed",components:{Option:Xe,MultiValueLabel:Ke,MultiValueRemove:Qe},filterOption:(d,f)=>Ze(d,f,i),noOptionsMessage:()=>Je(i,j)})]})})},Ge=e=>(e?.vendor.map(t=>({label:t.name,value:t.name}))??[]).sort((t,n)=>(t.label??"").localeCompare(n.label??"")),Ke=e=>{const{selectProps:t}=e,{options:n,filterCategoryType:i}=t,p=n.findIndex(s=>s.value===e.data.value);return o.jsx(A.MultiValueLabel,{...e,children:o.jsxs(Pe,{children:[ne(e.data.photo,e.data.label.split(" ")[0],e.data.label.split(" ")[1]!=null?e.data.label.split(" ")[1]:"",p,i),o.jsx(qe,{children:e.children})]})})},Xe=e=>{const{onMouseMove:t,onMouseOver:n,isSelected:i,...p}=e.innerProps,{options:s,filterCategoryType:C}=e.selectProps,y=s.findIndex(b=>b.value===e.data.value),h={...e,innerProps:p};return o.jsx(A.Option,{...h,children:o.jsxs(He,{children:[o.jsxs(De,{children:[ne(e.data.photo,e.data.label.split(" ")[0],e.data.label.split(" ")[1]!=null?e.data.label.split(" ")[1]:"",y,C),o.jsx(oe,{children:e.label})]}),e.isSelected&&o.jsx(We,{})]})})},Qe=e=>o.jsx(A.MultiValueRemove,{...e,children:o.jsx(Ue,{})}),Je=(e,t)=>{const n=L.getLocalizedStrings().common.filters;if(e==="searchAutocomplete"){if(t==="In-Progress")return o.jsx(ke,{size:"Small-Compact",start:!0});if(t==="Not-Started")return null;if(t==="Completed")return o.jsx(V,{children:n.noMatchesFound})}return o.jsx(V,{children:n.noOptions})},ne=(e,t,n,i,p)=>p!=="user"?null:e==null?o.jsx(Oe,{firstName:t,lastName:n,size:`${r.sp3}`,index:i,fontSize:"9px"}):o.jsx(Ne,{src:e.href,alt:L.getLocalizedStrings().common.filters.userProfileAltText,onError:({currentTarget:s})=>{s.onerror=null,s.src=Re},loading:"lazy"}),Ze=(e,t,n)=>n==="user"&&e.data.email!=null?e.data.label.toLowerCase().includes(t.toLowerCase())||e.data.email.toLowerCase().includes(t.toLowerCase()):e.data.label.toLowerCase().includes(t.toLowerCase()),T={categoryCombinationOperator:"AND",categories:[]},le={valuesCombinationOperator:"ANY",values:[],matchingOperator:"equal"},F=(e,t)=>{switch(e){case"bill_pay":return M.BILL_PAY_FILTER_CATEGORIES;case"reimbursement":return M.hideCreatedByFilter(t)?M.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED:M.REIMBURSEMENT_FILTER_CATEGORIES;case"task_management":return M.TASK_LIST_FILTER_CATEGORIES}},B=(e,t)=>{if(e==="bill_pay"){const n=t;return L.getLocalizedStrings().spendManagement.filters.filterCategories.bills[n]}if(e==="reimbursement"){const n=t;return L.getLocalizedStrings().spendManagement.filters.filterCategories.reimbursements[n]}if(e==="task_management"){const n=t;return L.getLocalizedStrings().spendManagement.filters.filterCategories.taskManagement[n]}return""},et=({currentFilters:e,selectedOption:t,categoryIndex:n})=>e.categories==null||e.categories.length===0?{categoryCombinationOperator:"AND",categories:[{...le,field:t.value}]}:{...e,categories:e.categories.map((i,p)=>p!==n?i:{...i,field:t.value,values:[]})},tt=({currentFilters:e,selectedOption:t,categoryIndex:n})=>e.categories==null||e.categories.length===0?e:{...e,categories:e.categories.map((i,p)=>p!==n?i:{...i,matchingOperator:t.value})},ot=({currentFilters:e,selectedOptions:t,categoryIndex:n})=>e.categories==null||e.categories.length===0?e:{...e,categories:e.categories.map((i,p)=>p!==n?i:{...i,values:t.map(s=>s.value)})},rt={width:new ee(215,315)},U=l.div`
|
|
56
56
|
display: flex;
|
|
57
57
|
flex-direction: column;
|
|
58
58
|
row-gap: ${r.sp4};
|
|
@@ -62,12 +62,12 @@ import{X as z,u as _,M as L,j as o,bL as H,o as r,gn as ie,p as B,K as ce,q as Q
|
|
|
62
62
|
align-items: flex-start;
|
|
63
63
|
flex-wrap: ${e=>e.windowSize==="small"?"wrap":"nowrap"};
|
|
64
64
|
row-gap: ${e=>e.windowSize==="small"?r.sp3:r.sp0};
|
|
65
|
-
`,
|
|
65
|
+
`,Y=l.div`
|
|
66
66
|
width: 90px;
|
|
67
67
|
color: ${e=>e.theme.colors.primary};
|
|
68
|
-
`,
|
|
68
|
+
`,G=l.div`
|
|
69
69
|
width: 194px;
|
|
70
|
-
`,
|
|
70
|
+
`,K=l.button`
|
|
71
71
|
display: flex;
|
|
72
72
|
align-items: center;
|
|
73
73
|
column-gap: ${r.sp1};
|
|
@@ -123,7 +123,7 @@ import{X as z,u as _,M as L,j as o,bL as H,o as r,gn as ie,p as B,K as ce,q as Q
|
|
|
123
123
|
width: ${e=>rt.width.valuePx(e.windowSize)};
|
|
124
124
|
background: ${e=>e.theme.colors.background};
|
|
125
125
|
border-radius: ${r.sp1};
|
|
126
|
-
`,
|
|
126
|
+
`,Q=l.div`
|
|
127
127
|
display: flex;
|
|
128
128
|
align-items: center;
|
|
129
129
|
column-gap: ${r.sp3};
|
|
@@ -139,7 +139,7 @@ import{X as z,u as _,M as L,j as o,bL as H,o as r,gn as ie,p as B,K as ce,q as Q
|
|
|
139
139
|
align-items: flex-start;
|
|
140
140
|
column-gap: ${r.sp3};
|
|
141
141
|
animation: ${ut} 0.4s;
|
|
142
|
-
`,ae=a.forwardRef(({filters:e,filterValues:t,selectedEntity:n,vendorSearchAutoCompleteData:i,vendorSearchAutoCompleteActions:p,onFiltersChange:s},C)=>{const y=ge(),h=z(),b=a.useCallback((c,u)=>{const g=et({currentFilters:e,selectedOption:c,categoryIndex:u});s(g)},[e,s]),x=a.useCallback((c,u)=>{const g=tt({currentFilters:e,selectedOption:c,categoryIndex:u});s(g)},[e,s]),S=a.useCallback(c=>{if(e!=null){const u={...e,categoryCombinationOperator:c};s(u)}},[e,s]),v=a.useCallback(c=>{if(c===0&&e.categories!=null&&e.categories.length===1){s(T);return}if(e.categories!=null&&e.categories.length!==0){if([...e.categories.slice(0,c),...e.categories.slice(c+1)].filter(u=>u.field!=null).length){const u={...e,categories:[...e.categories.slice(0,c),...e.categories.slice(c+1)]};s(u);return}s(T)}},[s,e]),j=()=>{e.categories!=null&&e.categories.length&&s({...e,categories:[...e.categories,{...le}]})},O=()=>{s(T)},$=a.useCallback((c,u)=>{const g=ot({currentFilters:e,selectedOptions:c,categoryIndex:u});s(g)},[e,s]),d=L.getLocalizedStrings().spendManagement.filters,f=()=>e.categories!=null&&e.categories.length!==0?o.jsxs(st,{children:[o.jsxs(
|
|
142
|
+
`,ae=a.forwardRef(({filters:e,filterValues:t,selectedEntity:n,vendorSearchAutoCompleteData:i,vendorSearchAutoCompleteActions:p,onFiltersChange:s},C)=>{const y=ge(),h=z(),b=a.useCallback((c,u)=>{const g=et({currentFilters:e,selectedOption:c,categoryIndex:u});s(g)},[e,s]),x=a.useCallback((c,u)=>{const g=tt({currentFilters:e,selectedOption:c,categoryIndex:u});s(g)},[e,s]),S=a.useCallback(c=>{if(e!=null){const u={...e,categoryCombinationOperator:c};s(u)}},[e,s]),v=a.useCallback(c=>{if(c===0&&e.categories!=null&&e.categories.length===1){s(T);return}if(e.categories!=null&&e.categories.length!==0){if([...e.categories.slice(0,c),...e.categories.slice(c+1)].filter(u=>u.field!=null).length){const u={...e,categories:[...e.categories.slice(0,c),...e.categories.slice(c+1)]};s(u);return}s(T)}},[s,e]),j=()=>{e.categories!=null&&e.categories.length&&s({...e,categories:[...e.categories,{...le}]})},O=()=>{s(T)},$=a.useCallback((c,u)=>{const g=ot({currentFilters:e,selectedOptions:c,categoryIndex:u});s(g)},[e,s]),d=L.getLocalizedStrings().spendManagement.filters,f=()=>e.categories!=null&&e.categories.length!==0?o.jsxs(st,{children:[o.jsxs(K,{onClick:j,children:[o.jsx(nt,{}),o.jsx(N,{children:d.addFilterBtnText})]}),o.jsxs(K,{onClick:O,children:[o.jsx(lt,{}),o.jsx(N,{children:d.clearAllBtnText})]})]}):null,E=()=>e.categories==null||e.categories.length===0?o.jsx(U,{children:o.jsx(q,{children:o.jsxs(Q,{children:[o.jsx(Y,{children:o.jsx(X,{children:d.filterByLabel})}),o.jsx(G,{children:o.jsx(W,{defaultMenuIsOpen:!0,onChange:b,placeHolder:d.categoryPlaceholder,getOptionLabel:c=>B(n,c),options:F(n,y.loggedInUserRole)})})]})})}):o.jsx(a.Fragment,{children:e.categories.map((c,u)=>{const g=F(n,y.loggedInUserRole??[]).find(w=>w.value===c.field),k=g?.type,m=g!=null?B(n,g?.value):"";return o.jsxs(q,{windowSize:h,children:[o.jsxs(Q,{children:[o.jsxs(Y,{children:[u===0&&o.jsx(X,{children:d.filterByLabel}),u!==0?o.jsx(me,{categoryCombinationOperator:e.categoryCombinationOperator,onChange:S,buttonsDisabled:u>1}):null]}),o.jsx(G,{children:o.jsx(W,{value:c.field,placeHolder:d.categoryPlaceholder,onChange:w=>b(w,u),getOptionLabel:w=>B(n,w),options:F(n,y.loggedInUserRole??[])})})]}),c.field?o.jsxs(ht,{children:[o.jsx(at,{children:o.jsx(xe,{categoryIndex:u,value:c.matchingOperator,onChange:x})}),o.jsxs(dt,{children:[o.jsx(pt,{windowSize:h,children:o.jsx(Ye,{options:t[c.field]!=null?t[c.field]:[],placeHolder:k==="searchAutocomplete"?d.searchPlaceholder:`${d.select} ${m}`,value:c.values,filterCategoryType:k??"dropdown",onChange:w=>$(w,u),valuesCombinationOperator:c.valuesCombinationOperator,searchAutoCompleteData:i,searchAutoCompleteActions:p})}),o.jsx(it,{onClick:()=>v(u),windowSize:h,children:o.jsx(ct,{})})]})]}):null]},c.field?c.field+u:u)})});return o.jsxs(U,{ref:C,children:[E(),f()]})});ae.displayName="FiltersSelection";const gt=l.div`
|
|
143
143
|
padding-top: ${r.sp4};
|
|
144
144
|
padding-bottom: ${r.sp4};
|
|
145
145
|
box-sizing: border-box;
|
|
@@ -157,7 +157,7 @@ import{X as z,u as _,M as L,j as o,bL as H,o as r,gn as ie,p as B,K as ce,q as Q
|
|
|
157
157
|
`,xt=l.div`
|
|
158
158
|
padding-left: ${r.sp4};
|
|
159
159
|
padding-right: ${r.sp4};
|
|
160
|
-
`,ft=({entity:e,filters:t,vendorSearchAutoCompleteData:n,vendorSearchAutoCompleteActions:i,disableFilters:p=!1,transactionsLoaded:s=!0,createdByUserListLoaded:C=!0,analytics:y,groupByFiltersComponent:h,onFiltersChange:b,getCategoryWiseOptions:x})=>{const S=a.useRef(null),[v,j]=a.useState(!1),O=a.useRef(!1),[$,d]=a.useState({bill_pay:{},reimbursement:{},task_management:{}}),[f,E]=a.useState("auto"),c=a.useRef(null),u=z(),g=a.useCallback(()=>{j(!1)},[]),k=L.getLocalizedStrings().common.strings.empty,m=a.useCallback(()=>{e!=="task_management"&&y?.trackSpendManagmentFilterClick(e),p===!1&&j(!0)},[p,y,e]);a.useEffect(()=>{x&&Object.keys($[e]).length===0&&C&&s&&d(I=>({...I,[e]:x()}))},[e,$,s,C]);const w=a.useCallback(()=>{if(t?.categories==null||t.categories.length===0)return h!=null?88+h.height:88;const I=c.current,D=I!=null?I.clientHeight:0;return u==="small"?"auto":
|
|
160
|
+
`,ft=({entity:e,filters:t,vendorSearchAutoCompleteData:n,vendorSearchAutoCompleteActions:i,disableFilters:p=!1,transactionsLoaded:s=!0,createdByUserListLoaded:C=!0,analytics:y,groupByFiltersComponent:h,onFiltersChange:b,getCategoryWiseOptions:x})=>{const S=a.useRef(null),[v,j]=a.useState(!1),O=a.useRef(!1),[$,d]=a.useState({bill_pay:{},reimbursement:{},task_management:{}}),[f,E]=a.useState("auto"),c=a.useRef(null),u=z(),g=a.useCallback(()=>{j(!1)},[]),k=L.getLocalizedStrings().common.strings.empty,m=a.useCallback(()=>{e!=="task_management"&&y?.trackSpendManagmentFilterClick(e),p===!1&&j(!0)},[p,y,e]);a.useEffect(()=>{x&&Object.keys($[e]).length===0&&C&&s&&d(I=>({...I,[e]:x()}))},[e,$,s,C]);const w=a.useCallback(()=>{if(t?.categories==null||t.categories.length===0)return h!=null?88+h.height:88;const I=c.current,D=I!=null?I.clientHeight:0;return u==="small"?"auto":R[7]+(D>0?D:88)+(h!=null?h.height:0)},[t,u,h]);a.useEffect(()=>{if(v!==O.current){E("auto");return}E(w())},[w,v]),a.useEffect(()=>{O.current=v},[v]),a.useEffect(()=>{f==="auto"&&E(w())},[f,w]);const se=()=>o.jsx(he,{anchorEl:S.current,open:v,onClose:g,paperStyle:{overflow:"visible"},children:o.jsxs(gt,{height:f,windowSize:u,children:[h!=null?o.jsx(mt,{children:h?.component}):null,o.jsx(xt,{children:o.jsx(ae,{filters:t,onFiltersChange:b,filterValues:$[e],selectedEntity:e,ref:c,vendorSearchAutoCompleteActions:i,vendorSearchAutoCompleteData:n})})]})},t?.categories==null||t.categories.length===0?"smallBox":"largeBox"),P=t?.categories==null||t?.categories.length===0?0:t.categories.filter(I=>I.field!=null&&I.values.length>0).length;return o.jsxs(a.Fragment,{children:[o.jsx(de,{searchPlaceholder:k,isFilterBtnActive:v||P>0,ref:S,isFilterDisabled:p,onFilterButtonClick:m,filtersCount:P,includeSearch:!1,filterText:k}),p!=!0&&se()]})},yt=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M18.8447 9.03137L22.4962 11.5418V21.127C22.4962 21.4902 22.3519 21.8385 22.0951 22.0953C21.8383 22.3521 21.4901 22.4963 21.1269 22.4963H2.86932C2.50615 22.4963 2.15786 22.3521 1.90106 22.0953C1.64427 21.8385 1.5 21.4902 1.5 21.127V11.5418L5.15151 9.03137",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M4.24207 19.7577L8.80646 16.1062H15.1966L19.761 19.7577",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M22.5 11.5416L17.0227 15.1931",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M1.50378 11.5416L6.98105 15.1931",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M18.8446 13.9754V2.41288C18.8446 2.17077 18.7484 1.93857 18.5772 1.76738C18.406 1.59618 18.1738 1.5 17.9317 1.5H6.06431C5.8222 1.5 5.59 1.59618 5.4188 1.76738C5.24761 1.93857 5.15143 2.17077 5.15143 2.41288V13.9754",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M9.23108 5.55005H14.7654",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M9.23108 8.83069H13.3818",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M9.23108 12.0398H10.9606",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{spendManagement:Ct}=L.getLocalizedStrings(),bt={filterIconContainerPaddingRight:new ee(18,10)};function At({spendManagementSectionProps:e}){const{entity:t,moreIconContainerStyle:n,searchTextBoxStyle:i,disableDownloadButton:p,filters:s,searchText:C,downloadParams:y,downloadState:h,showSettingsIcon:b=!0,showSettingsIconOnNavbar:x,showDownloadButtonOnNavbar:S,showStatementButtonOnNavbar:v,showPayEarlyButtonOnNavbar:j,groupByFiltersComponent:O,updateDownloadStateHandler:$,onMenuOpen:d}=e,f=z(),E=_(),[c,u]=a.useState(void 0);a.useEffect(()=>{h!=="Error"&&u(!1)},[h]);let g=Ct.moreMenuOptions;x||(g=g.filter(m=>m.value!=="settings")),v||(g=g.filter(m=>m.value!=="statements")),j||(g=g.filter(m=>m.value!=="payEarly")),S||(g=g.filter(m=>m.value!=="download"));const k={};return e.entity==="charge_cards"?k.width="275px":e.entity==="reimbursement"&&(k.width="208px"),o.jsxs($t,{children:[o.jsxs(wt,{isSearchOpen:e.isSearchOpen&&f==="small",windowsize:f,children:[f!=="small"&&!e.hideSearchBtn?o.jsx(H,{style:{position:"absolute",left:"unset",...i},placeholder:e.searchPlaceHolder,searchText:e.searchText,onSearchTextChanged:m=>{e.onSearchTextChanged?.(m)},onSearchOpen:e.onSearchOpen,inputWrapperStyle:k,searchIconMarginRight:e.entity==="charge_cards"?r.sp4:"10px"}):null,(e.entity==="bill_pay"||e.entity==="reimbursement"||e.entity==="task_management")&&e.onFiltersChange!=null?o.jsx(kt,{size:f,children:o.jsx(ft,{entity:e.entity,groupByFiltersComponent:O,onFiltersChange:e.onFiltersChange,filters:e.filters,getCategoryWiseOptions:e.getFilterOptions,vendorSearchAutoCompleteData:e.vendorSearchAutoCompleteData,vendorSearchAutoCompleteActions:e.vendorSearchAutoCompleteActions,createdByUserListLoaded:e.createdByUserListLoaded,analytics:e.analytics})}):null,e.showEntityEmailInfoIconOnNavbar===!0?o.jsx(jt,{onClick:e.onClickEmailInfoIcon,children:o.jsx(vt,{})}):null,b?o.jsx(St,{onClick:()=>u(void 0),style:n,children:t==="bill_pay"||t==="reimbursement"||t==="charge_cards"?o.jsx(ie,{entity:t,isMoreOption:!0,closeMenuOnSelect:!1,isMenuOpen:f!=="small"?c:void 0,options:g,onMenuOpen:d,customStyleConfig:{control:()=>({backgroundColor:"inherit",cursor:"pointer",border:"none",":hover":{backgroundColor:"inherit"}}),menu:m=>({...m,left:"23px",top:"29px",transform:"translateX(-100%)",width:"auto",backgroundColor:E.colors.grey5,borderRadius:r.sp1,boxShadow:`${r.sp0} 2px ${r.sp2} ${E.colors.dropShadowHover}`,whiteSpace:"nowrap"}),container:()=>({marginLeft:R[0]}),valueContainer:()=>({display:"flex","#react-select-2-placeholder":{marginRight:R[0],marginLeft:-1}})},onOptionSelection:m=>{m==="settings"?e.onClickSetupIcon?.():m==="statements"?e.onClickStatementsIcon?.():m==="payEarly"&&e.onClickPayEarlyIcon?.()},downloadProps:(t==="bill_pay"||t==="reimbursement")&&y!=null?{entity:t,isDisabled:p,filter:{filters:s,searchText:C},downloadParams:y,downloadState:h,updateDownloadStateHandler:$}:void 0}):o.jsx(Ot,{onClick:e.onClickSetupIcon})}):null,e.showNewButtonOnNavbar===!0?o.jsx(o.Fragment,{children:f==="small"?o.jsx(Lt,{onClick:e.onNewButtonClick,children:o.jsx(Et,{})}):o.jsx(ce,{variant:"primary",onClick:e.onNewButtonClick,label:e.newButtonLabel??"",size:"small",style:{height:"29px",paddingLeft:"12px",paddingRight:"12px",...J.extraSmallRegular.cssObject,whiteSpace:"nowrap",display:"flex",alignItems:"center"}})}):null]}),f==="small"&&!e.hideSearchBtn?o.jsx(H,{style:{position:"absolute",left:"5px",right:f!=="small"?"120px":"unset",top:r.sp6,width:"98%"},placeholder:e.searchPlaceHolder,searchText:e.searchText,onSearchTextChanged:m=>{e.onSearchTextChanged?.(m)},onSearchOpen:e.onSearchOpen,keepSearchBoxOpen:!0,inputWrapperStyle:e.entity==="charge_cards"?{width:270}:{}}):null]})}const vt=l(yt)`
|
|
161
161
|
height: ${r.sp4};
|
|
162
162
|
width: ${r.sp4};
|
|
163
163
|
`,wt=l.div`
|