@zeniai/web-cockpit-ui 1.13.97-qa → 1.13.98-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.
Files changed (248) hide show
  1. package/dist/assets/{ACHDetailsPage-Cwc2nmvY-DQ16IU5r.js → ACHDetailsPage-C_NL9J0X-DQ3wv9Rt.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-CK4ZdUEb-fJZXFPPa.js → AIPerformancePage-DyiOQxOC-Deykua_G.js} +21 -21
  3. package/dist/assets/{AccountInfoPage-LiZYkJMA-D7v8XtXB.js → AccountInfoPage-xglon85A-yRVQMsLQ.js} +5 -5
  4. package/dist/assets/AccountInfoPageContent-BtMF3gSM-CwB-GVxY.js +149 -0
  5. package/dist/assets/{AccountReconDetailsDrawerPage-CBOR2m1X-itmjhcPW.js → AccountReconDetailsDrawerPage-DJ9x8tbi-LYKktAAO.js} +17 -17
  6. package/dist/assets/{AccountRow--5DnpNqk-C6gOEeWO.js → AccountRow-CP7Tu1pO-VLQJgkE6.js} +23 -23
  7. package/dist/assets/{AccountsPromoCardStack-DCI8_ihc-CZreK5jG.js → AccountsPromoCardStack-1elvD1M0-GOX35w9m.js} +22 -22
  8. package/dist/assets/{AddAddressForCardDrawer-C_RALUZ7-C2wla-3g.js → AddAddressForCardDrawer-C8-wy-3B-di9k1XXJ.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-7sC3Q2Pb-TioJ0o_r.js → AddToWalletPage-DsqplF5y-BOnzBTtb.js} +19 -19
  10. package/dist/assets/{AgingReportsPage-PrvYryW8-ClQ8Euxf.js → AgingReportsPage-DClcRhxg-CS8rEKD_.js} +6 -6
  11. package/dist/assets/{AllUserItems-DlTukPhY-377gtzJq.js → AllUserItems-BOwAIYTQ-ikKyJOZ6.js} +7 -7
  12. package/dist/assets/{ApAgingDetailPage-BVciGQma-NVEgOPKU.js → ApAgingDetailPage-CcU6Hz-o-C9CP7TBd.js} +4 -4
  13. package/dist/assets/{AppBasePage-uJGLWCbr-B_okH7tb.js → AppBasePage-C7kCz0qg-gwqzuxWV.js} +2 -2
  14. package/dist/assets/{AppDrawerContent-SD57OqHe-DBC1ZQdx.js → AppDrawerContent-B63CbHT7-CTgXtY-R.js} +7 -7
  15. package/dist/assets/ApprovalRulesSettingsPage-D6XZafBq-BQyA8PhX.js +47 -0
  16. package/dist/assets/ArAgingChart-D-Z3jfGt-DS-oqmcQ.js +24 -0
  17. package/dist/assets/{ArAgingDetailPage-CoFL0N3--Dnd2wPCh.js → ArAgingDetailPage-AiwyJUwp-CLdUA32y.js} +1 -1
  18. package/dist/assets/{AttachmentView-C3xQE0te-BFkbocnS.js → AttachmentView-wIV1i6gf-__2UovKF.js} +5 -5
  19. package/dist/assets/{BankAccountSection-Bi3uoDPa-DlE9WCjC.js → BankAccountSection-cVBEl5IN-DpEdLEP3.js} +2 -2
  20. package/dist/assets/{BankAccountWarningSection-DKdgmMHQ-Df__wM_b.js → BankAccountWarningSection-Ce5s962S-Dy-_2VlU.js} +8 -8
  21. package/dist/assets/{BankConnectionsSettingsPage-1zM9RKRI-BKlHDYsy.js → BankConnectionsSettingsPage-Cgp8M98A-D84-x80q.js} +33 -33
  22. package/dist/assets/{BillDetailPage-BoxJCC9n-dUgWZp0T.js → BillDetailPage-C9NC9kTK-BYRIHiN2.js} +11 -11
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-BW3sj5ug-F8EHl6ns.js → BillPayApprovalRuleDetailPage-yKPMorLd-DWM3MQMK.js} +2 -2
  24. package/dist/assets/{BillPayApprovalRulesPage-DLA6R7dC-CNDK6deM.js → BillPayApprovalRulesPage-DmMqDFmk-B8Cg6Nn6.js} +6 -6
  25. package/dist/assets/{BillPayPromoPage--BGTNJhm-DrmzLzpj.js → BillPayPromoPage-CWGX6uCi--607mHc3.js} +4 -4
  26. package/dist/assets/BillPaySetUpPage-B-DHUIqu-DsqPk0zS.js +42 -0
  27. package/dist/assets/{BillingSettingsPage-DgbRhg-m-CRqpdOiy.js → BillingSettingsPage-Bx7lHgIy-CyArwb3F.js} +5 -5
  28. package/dist/assets/{BillsBulkReviewDrawerPage-CKspyZz7-DFQ7kKFj.js → BillsBulkReviewDrawerPage-Bf5MKQ-f-5iZSFdzE.js} +1 -1
  29. package/dist/assets/{BoxItem-BHtgE0KL-BJPg4xAk.js → BoxItem-DX1sag1G-C0OcCbod.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-CpfsllRZ-CnaBfa3b.js → BusinessVerificationPage-DXh-11f9-BWywYgcT.js} +14 -14
  31. package/dist/assets/{CardNumberSubText-BHe1nqr7-BRmm9g1p.js → CardNumberSubText-iYF6MLsf-BnbFJt1d.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-C9RhIR0R-CyQle5Hi.js → CashbackDetailPage-DVsCU69u-iWc1QiKl.js} +24 -24
  33. package/dist/assets/ChargeCardDetailPage-D5bwvNOM-CT3hMXCY.js +1447 -0
  34. package/dist/assets/ChargeCardListPage-rY7_MoJ5-CzPbszY2.js +355 -0
  35. package/dist/assets/{ChargeCardListTable-C2nnAxo5-Bk77oToU.js → ChargeCardListTable-PTRaj9T6-GxUnY44G.js} +18 -18
  36. package/dist/assets/ChargeCardPromoPage-BUtD2JQ4-Bh59RQEl.js +219 -0
  37. package/dist/assets/ChargeCardSetupPage-CIRcLLnB-Cefuwkkm.js +36 -0
  38. package/dist/assets/{ChargeCardStatementsPage-DK-pEljz-CxNbElz7.js → ChargeCardStatementsPage-uRlTsfDI-DztC0UAp.js} +3 -3
  39. package/dist/assets/{ChargeCardUtils-BxyMuU6--CHwiPaoq.js → ChargeCardUtils-BvVm2SMq-B6pl3c2F.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-CRiYxWuZ-BZR-S0kG.js → ChaseOverlay-CI8lEzod-DNTlxx9v.js} +5 -5
  41. package/dist/assets/{CheckDepositDrawerPage-WYiirlL8-DMNFGunZ.js → CheckDepositDrawerPage-Czpxz6Mz-gcS4-F7d.js} +16 -16
  42. package/dist/assets/CollapsableReportTable-BBGdC6Ii-N5Ehkf8R.js +2932 -0
  43. package/dist/assets/{CompanyOfficerDetailsSection-BPZU90Im-ClsfMHMl.js → CompanyOfficerDetailsSection-BrsHy7MO-Cl-BM3f0.js} +35 -35
  44. package/dist/assets/{CompanyPassportCard-PXdmJC_B-SLgfN-m9.js → CompanyPassportCard-P0g_DRwA-XRQTRVQK.js} +2 -2
  45. package/dist/assets/{CompanyPassportPage-MxIwsh3W-CUmwVoPG.js → CompanyPassportPage-CH8El0Nl-CrZI1ceZ.js} +37 -37
  46. package/dist/assets/{CompleteProfile-Bd9xEPVl-Cy044ZoG.js → CompleteProfile-DTSAIKgF-WX_HRfP5.js} +4 -4
  47. package/dist/assets/{ConfettiBurst-CMpZ2feY-D-Nq3IFV.js → ConfettiBurst-CjONFCxD-BbasMJ1h.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-DgHvZfWv-Bm6layyi.js → CreateOrEditVendorPage-CDVjGotR-BX0RU8Lc.js} +13 -13
  49. package/dist/assets/{CreditCardPaymentDrawerPage-C2ikLG7P-DestrVrL.js → CreditCardPaymentDrawerPage-CsyNRmxp-J9Q1Nire.js} +15 -15
  50. package/dist/assets/{CreditCardPaymentPlgSection-M69ECpN9-CGQ3HY5T.js → CreditCardPaymentPlgSection-BhHsjqZA-DtxErSDc.js} +8 -8
  51. package/dist/assets/{CurrencySelectField-B3AvTbkp-CwUBnsMJ.js → CurrencySelectField-BRkdK9Tx-DZlSSgUd.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-C7eddGoB-DW4jRuae.js → CustomerOnboardingActivationPage-DnVXw5Ok-CF7wqV2h.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-wmVbYxdI-BLfm1bGE.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BIAeoXCV-DB7HhB_G.js → CustomerOnboardingDetailPageSkeleton-C95eWcqa-DW8DNI2i.js} +11 -11
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-BzO6XZ0H-1xoJMSMy.js → CustomerOnboardingNoStepsPage-OKbEl9Bp-Dy87ha3L.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingPage-7yWIaJvU-C3VBP6CL.js → CustomerOnboardingPage-D9jqUudS-BpBvjqe9.js} +6 -6
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-Tvyrs9Cm-B0r6GvUF.js → CustomerOnboardingProductSuitePage-DK_FKVS2-Dz81TViz.js} +5 -5
  58. package/dist/assets/Dashboard-CsuzQbH0-B5Hgiilv.js +1254 -0
  59. package/dist/assets/DashboardReportPage-BCkrfj3P-CIFdRg6l.js +370 -0
  60. package/dist/assets/{DepositAccTransactionItem-CiRcbfmm-ChlbIcLT.js → DepositAccTransactionItem-B55LUfPM-Bsnh-Dnt.js} +2 -2
  61. package/dist/assets/{DepositAccTransactionListPage-DsNLDlHv-MYnNFw-s.js → DepositAccTransactionListPage-CKBZEDvI-CFszcDp5.js} +7 -7
  62. package/dist/assets/{DocumentSecurityBanner-CIWoR_yI-Dhftz0pA.js → DocumentSecurityBanner-B5e6-zfE-B8VQ-eGv.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-C6x8Gz4g-DwUa3Xkf.js → DomesticWireDetailsPage--MU9IKKz-CI-n4FxD.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-D1kGkMFo-DOkMNDuh.js → DownloadOverlay-CVay7PEO-C-BIaHoh.js} +12 -12
  65. package/dist/assets/{DrawerPage-CQkJW5hg-DkryY6SR.js → DrawerPage-BtsjUVWT-DKZ4-9Rc.js} +3 -3
  66. package/dist/assets/{EditPeoplePage-m2qls8hv-BZd-DWw-.js → EditPeoplePage-q8Se6bGZ-Cx2X58jF.js} +17 -17
  67. package/dist/assets/{EditReimbursementDetailPage-IlSyu79B-jE0h2JRZ.js → EditReimbursementDetailPage-DJxpU-hz-dhF_OPbV.js} +72 -72
  68. package/dist/assets/{EntityDetailPage-CcJJwGo7-DCvr4KdD.js → EntityDetailPage-Bux6DlIw-CDR-iDms.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-JxKHehL1-CtvARgSu.js → EntitySummarySection-D8dz1hFt-Bakc19a1.js} +13 -13
  70. package/dist/assets/{ExpenseAutomationOverviewPage-iAUtjSnw-C1CSJZ5E.js → ExpenseAutomationOverviewPage-CdJQtc-4-WoBW313I.js} +26 -26
  71. package/dist/assets/{ExpenseAutomationPage-B0f86olm-wJehtW2E.js → ExpenseAutomationPage-aNc126hN-DZa4KtXO.js} +74 -74
  72. package/dist/assets/{ExpressPayPage-B-at6uDS-BEaELiUG.js → ExpressPayPage-CWVGXvfN-Bzdld5fx.js} +7 -7
  73. package/dist/assets/{FeaturePreviewPage-gSb_rct_-C-KQutKv.js → FeaturePreviewPage-C0nvVXP--BF6s18r5.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-eedORgku-FnBhDPYP.js → FollowStepsSection-Cf0s1DGX-BFVvc78r.js} +12 -12
  75. package/dist/assets/{GlobalReviewListPage-BfPwveCc-ftKEGRYk.js → GlobalReviewListPage-aY4rHJVr-DzNSgRAM.js} +10 -10
  76. package/dist/assets/HelpButton-Dv3nbc1Z-CHaoZd0g.js +28 -0
  77. package/dist/assets/{InformationCardStack-DPaZz4XW-BZPDjtdj.js → InformationCardStack-BALkGk48-BWmXScs3.js} +5 -5
  78. package/dist/assets/{InsightsCardStack-sKUFRR0H-BiHLZWGW.js → InsightsCardStack-D52CCSVO-CezeuABJ.js} +10 -10
  79. package/dist/assets/{InsightsSection-Corx5iDh-fVbgdM2i.js → InsightsSection-D_wtVtVg-5rPDOiJT.js} +3 -3
  80. package/dist/assets/{IntegrationsSettingsPage-DTWoUi2e-YCv3GRpa.js → IntegrationsSettingsPage-DxjbW311-BrvXi8hE.js} +7 -7
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-B441GUkh-D_QVeJ7p.js → InternationalWireSwiftDetailsPage-24NSHzu1-CRaVhxIk.js} +14 -14
  82. package/dist/assets/{InternationalWireVerificationPage-DjpWjFSe-CaUlPKN_.js → InternationalWireVerificationPage-B1jvCUkw-Ld5IAzwh.js} +18 -18
  83. package/dist/assets/{InviteFormPage-BRb4jyp_-BuUalkW4.js → InviteFormPage-C9fNxGsi-CRksfDku.js} +19 -19
  84. package/dist/assets/{InvitePageListView-Bb_Q_xqJ-BhN72Smm.js → InvitePageListView-DSWZ2SPi-B4SFh7Xp.js} +49 -49
  85. package/dist/assets/InvitePeoplePage-DaN4NSHW-CydccedW.js +12 -0
  86. package/dist/assets/{InvoiceUploadSection-BE4ZqriT-CfpM2_BI.js → InvoiceUploadSection-D0CgJxyu-9_MCn8Y6.js} +7 -7
  87. package/dist/assets/{IssueChargeCardPage-BIFpAcrl-DZwnseyQ.js → IssueChargeCardPage-dYu9VLy4-YHkYWF3X.js} +22 -22
  88. package/dist/assets/{LabeledAddressValue-D2vDF5sP-BZfqDHMl.js → LabeledAddressValue-DtmZ5htg-OjX3rrF7.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-BMdJsw3x-CnFfe2I5.js → LabeledAddressValueField-C2LEKAwf-BQxD3J4c.js} +4 -4
  90. package/dist/assets/{LabeledControlledCheckBoxField-CHRGFyHl-T4ZnES5i.js → LabeledControlledCheckBoxField-Ds3mSsWy-DNoefl6y.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-qwQPyqDC-D7x9KNC-.js → LabeledCreatableSingleSelectField-DW8jVgaN-BEmOmz9t.js} +8 -8
  92. package/dist/assets/{LabeledDocumentField-Cdd8oj5z-BoWCxP7J.js → LabeledDocumentField-Ce2A0qNH-CSvl2QNP.js} +5 -5
  93. package/dist/assets/{LabeledDropDownFormattedTextField-CSEioH8A-DiLPLUt5.js → LabeledDropDownFormattedTextField-DWlfmICB-Diz5afTR.js} +5 -5
  94. package/dist/assets/{LabeledText-CqZ-udSP-CWd8HtpU.js → LabeledText-bruKdeAH-E98_Q-Ht.js} +2 -2
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DTmijO10-D909IgWp.js → LabeledUserSingleSelectWithSubtitlesField-CfzUlgs3-BKnteQzK.js} +5 -5
  96. package/dist/assets/{LabeledZeniRolesDropDownField-DSIWuFix-CIXw0_yv.js → LabeledZeniRolesDropDownField-CGSgg1Zl-M-Z5Kz_3.js} +22 -22
  97. package/dist/assets/{LinkJETransactionPage-C5V1HfGb-BEAJlnvQ.js → LinkJETransactionPage-DjNutEvf-sKN4Are7.js} +10 -10
  98. package/dist/assets/{LowBalancePopup-BLfeh0xm-C28uSa7K.js → LowBalancePopup-CwcYMtuk-B-vSGd6a.js} +7 -7
  99. package/dist/assets/{MagicLinkACHDetailsPage-DGR7VcHs-D2IBl0qY.js → MagicLinkACHDetailsPage-Ddhg3i45-DAcpfJH2.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-BOu5verB-Bhh7qXWp.js → MagicLinkDomesticWireDetailsPage-QzsSuMOz-D-Sj2Twf.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-elijVpdq-Cq0leSr_.js → MagicLinkInternationalWireDetailsPage-BsLlhkuO-cmHC5izc.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-C6-JVGAQ-DQTEmgea.js → MagicLinkSuccessPage-COpDxIAb-BaiQCbjC.js} +4 -4
  103. package/dist/assets/{MagicLinkTitleSection-CCjLimcL-Ip3y0PNU.js → MagicLinkTitleSection-Oa8Szvl2-DvY3D69u.js} +3 -3
  104. package/dist/assets/{MailingDetailsSection-CJhcwaGu-BAyX38PR.js → MailingDetailsSection-BycONjR9-Dhu_6L_d.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-DKBH6wSs-Cn-ByIyB.js → MeetingCalenderPopup-D_WPTVKr-DYqVpuuh.js} +3 -3
  106. package/dist/assets/{Menu-D-Gk-Xfo-DBDtrJ_2.js → Menu-B6Fh2Mf9-B_ofMkAs.js} +2 -2
  107. package/dist/assets/{MyBankConnectionsSettingsPage-CBxa9AUT-BCb7NWFw.js → MyBankConnectionsSettingsPage-jWuBarzg-DszKEiXJ.js} +18 -18
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-DBr5htlO-CKJew--2.js → MyPendingActivationChargeCardListPage-_wuCCZ2J-Cbj97sd-.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-DKUX_nTz-BI1Cjccg.js → MyProfileSettingsPage-ChyYrCir-Dq1dhgqM.js} +8 -8
  110. package/dist/assets/{NavBarWithPicker-CXyMHDUO-FwAGF1cV.js → NavBarWithPicker-D4jJGXZB-BJWr2BT1.js} +4 -4
  111. package/dist/assets/{NavigationArrow-Bv-PvnhZ-BqeVWU8r.js → NavigationArrow-DlUdvmV7-iugv9ZVE.js} +10 -7
  112. package/dist/assets/{NavigationDots-DJkiFidH-5V7knboW.js → NavigationDots-CFJt-T5J-B9PAzC5S.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-CmJjl9S1-k-LUtUto.js → NewGlobalMerchantPage-DhYni-in-Diwu92Go.js} +8 -8
  114. package/dist/assets/{NoDataChart-Bsj1HEPq-CTuuS1jm.js → NoDataChart-CvGbQO4j-B5z4vqWb.js} +1 -1
  115. package/dist/assets/{NoDataTable-6vR2vOMI-C3_Xw78i.js → NoDataTable-EKtYZwcL-XyHu2gAL.js} +1 -1
  116. package/dist/assets/{NotFoundPage-SRxATfaW-y-aOb1MC.js → NotFoundPage-D5SHSQLS-0U7pTJ8G.js} +4 -4
  117. package/dist/assets/{NotificationSettingsPage-Bko3CBmW-_bWFzZ7l.js → NotificationSettingsPage-CjJw9Atb-BmSbhipZ.js} +33 -33
  118. package/dist/assets/NotificationsListConfig-BL_MxKXF-CvqrsVs-.js +1 -0
  119. package/dist/assets/{NotificationsPage-DMfBgh2w-1OVVoKkc.js → NotificationsPage-bGvx2yV6-C4p8pfzZ.js} +12 -12
  120. package/dist/assets/{OpExByVendorPage-DOkwCGkr-DKAYXBt6.js → OpExByVendorPage-BE_NnQzd-DQnxoqWx.js} +7 -7
  121. package/dist/assets/{OverlayContainerPage-C0rUb6-5-BEYdjpiV.js → OverlayContainerPage-GWXnlbZH-D2VSw_RI.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-DCJ3QTuj-SrjsP3F-.js → PandLWithForecastPage-D-000kuR-BW5fUkac.js} +11 -11
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CaZETrGz-De6JzHBj.js → PaymentAccountSetupBillingAddressSection-CwbX_znq-C6WVSYgS.js} +8 -8
  124. package/dist/assets/{PeoplePage-PvOhX-gy-bUl8LV-N.js → PeoplePage-MwM0lFB9-B0wgHwI1.js} +14 -14
  125. package/dist/assets/PortfolioAllocationFormPage-C3a4MQzW-CQIA3SiA.js +207 -0
  126. package/dist/assets/PortfolioDetails-BMJ6PGMP-DtrA52bw.js +218 -0
  127. package/dist/assets/{ProductsCarousel-qzlVuyK5-BlxLSS9s.js → ProductsCarousel-D2wC3sC--BKh2AE5P.js} +9 -9
  128. package/dist/assets/{PromoBaseCards-26GOEn3a-DaZDnJ-z.js → PromoBaseCards-Ddumul2a-BrEDd739.js} +23 -23
  129. package/dist/assets/{QBOConnectionDialog-CZQE3Tjs-Da8BEmHP.js → QBOConnectionDialog-DszSpNdI-DwqHmKSk.js} +7 -7
  130. package/dist/assets/{QBOSetupSection-u1sJhV67-3guqHTYH.js → QBOSetupSection-BNF-BUu5-B_yCc7Df.js} +13 -13
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-vRiO7G_7-BtkXAaTL.js → ReimbursementApprovalRuleDetailPage-Myone4-k-B9H3tR1_.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-kEmFNXtg-tWOcEiR-.js → ReimbursementApprovalRulesPage-DFhp0GGU-p0zWXuJ6.js} +35 -35
  133. package/dist/assets/{ReimbursementDetailPage-ChyRg0eX-Claybyvt.js → ReimbursementDetailPage-BAEddssC-DcJfByf4.js} +10 -10
  134. package/dist/assets/{ReimbursementPromoPage-BWsOD49o-D82HFW_4.js → ReimbursementPromoPage-D4u3SX8R-ByzJ_1Sx.js} +7 -7
  135. package/dist/assets/ReimbursementSetUpPage-B9ByGW3n-Bt2Z4PCD.js +140 -0
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CgRo7VeI-w-iFb9QJ.js → ReimbursementsBulkReviewDrawerPage-CAo_NjTX-O9TR0kFt.js} +1 -1
  137. package/dist/assets/{ReloadCard-CpauR6-c-3e4dg5U2.js → ReloadCard-BA_JCHcV-DL7NGQyj.js} +5 -5
  138. package/dist/assets/ReportTableViewSelector-D7B88kS6-BrGIUsj4.js +150 -0
  139. package/dist/assets/ReportsPage-BzMzH-I3-BKZoRCt6.js +121 -0
  140. package/dist/assets/{RevenueChart-JdtvK4L6-CpCUlh1v.js → RevenueChart-D33p-PFq-CGRJwc_N.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-BwQoOV2Q-BSoqdtJl.js → ReviewDetailsPage-D35NcQnx-Cbn86Yy5.js} +15 -15
  142. package/dist/assets/{ReviewOverlay-BLxhto7d-Ote-FEid.js → ReviewOverlay-BYJdokfW-C97jtxei.js} +10 -10
  143. package/dist/assets/{RoleWithToolTip-BRSx6yqP-Dj7TwZqE.js → RoleWithToolTip-B3hm-1rz-OZzvKPZJ.js} +7 -7
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CH84DI7F-DS2nwC6-.js → ScheduleDetailsFixedAssetsPage-BVnISMKW-BILZO4Rn.js} +8 -8
  145. package/dist/assets/{ScheduleDetailsPage-CMunoow5-Kl0jdvn6.js → ScheduleDetailsPage-BibWPOxC-DZMtTy3C.js} +4 -4
  146. package/dist/assets/{ScheduleSequenceTable-CQVHkQ0e-Dw2nQmil.js → ScheduleSequenceTable-DcQmeKyc-JMxQ5IZq.js} +49 -49
  147. package/dist/assets/{ScreenRoutes-C5pHLsYO.js → ScreenRoutes-iE9-v0dJ.js} +35 -35
  148. package/dist/assets/{SetUpAccountSection-CyyxtFvK-Bjoxqucl.js → SetUpAccountSection-BEJy78G6-Do1X3vVo.js} +24 -24
  149. package/dist/assets/{SetUpDefaultSection-Bdw_aWMY-C7l-ATBb.js → SetUpDefaultSection-ul-q6U3w-CKVV_QFK.js} +16 -16
  150. package/dist/assets/{SignIn-Gw75P03k-B_X_KXq6.js → SignIn-BC8yop4g-CznicFTu.js} +17 -17
  151. package/dist/assets/{SignInScreen-CU1N7put.js → SignInScreen-k0dvslKE.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-BccaMtyd-shshvd9r.js → SpendManagementListViewPage-aZljA388--EEskYb2.js} +10 -10
  153. package/dist/assets/{SpendManagementPerTabPage-D-YqqUsz-DyRQAFsg.js → SpendManagementPerTabPage-BU1ai2M8-DkMZQMfc.js} +33 -33
  154. package/dist/assets/{SpendManagementSection-CdH1r1Vw-C3epoUbW.js → SpendManagementSection-DMw8NFvN-Cpy4Blf3.js} +8 -8
  155. package/dist/assets/SpendMgmtSetupAccountSection-BtcwTlJT-Bsya0Qr3.js +206 -0
  156. package/dist/assets/{StatementItem-BW9HKaf9-CsEdfyzn.js → StatementItem-CKTGWEW_-d6SqxmfH.js} +3 -3
  157. package/dist/assets/{StatementsPage-CXawS1th-D6ifdlgD.js → StatementsPage-CjR4AlPy-BQRlcz37.js} +6 -6
  158. package/dist/assets/{StatusSwitcher-oC-AP25Z-D-8kVIuC.js → StatusSwitcher-5CZzUYJE-qZVSFmES.js} +5 -5
  159. package/dist/assets/{SubTabSwitcher-DXWQMf7B-D5NgssDf.js → SubTabSwitcher-a38_U4dN-BfyQ4BdY.js} +1 -1
  160. package/dist/assets/{SummaryCard-C3zjN-kT-DVcdP-G4.js → SummaryCard-XbFHvHx9-CTqdwSSS.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-BGDJNpe_-BGexoSAd.js → TaskManagementPage-Oct77yO--igT2quo0.js} +31 -31
  162. package/dist/assets/{TimeRangeSwitcher-BJfy3akS-o2HcwGW6.js → TimeRangeSwitcher-C4mpBnQl-CaG6dXuN.js} +3 -3
  163. package/dist/assets/{TimeframeSwitcher-M9tK6u0Y-C6JeMzJ1.js → TimeframeSwitcher-CnLEHYWD-BW9vKcLS.js} +5 -5
  164. package/dist/assets/TimeframeSwitcherWithToggle-Bc-Y5Hwv-0uMnBILy.js +31 -0
  165. package/dist/assets/{TopExCard-BD9Ehuw_-BEZAD6RQ.js → TopExCard-CaR8tsug-DnQ2eFWB.js} +5 -5
  166. package/dist/assets/{TopExDetailPage-3HoXp_6D-C4AntCB3.js → TopExDetailPage-C4QeWe92-vjJ7ZG8N.js} +10 -10
  167. package/dist/assets/{TransactionDetailPage-CbnGQ8bn-D1kf6rih.js → TransactionDetailPage-BoxnNYXX-2QwooFWS.js} +26 -26
  168. package/dist/assets/TransactionList-IjM4ABdF-DZ9PEfgX.js +147 -0
  169. package/dist/assets/{TransactionListBig-5aenxEn4-DbuGNI6-.js → TransactionListBig-B0FG0-BM-Br0wUjP3.js} +18 -18
  170. package/dist/assets/TransactionListPage-1dwu-ZT2-vlIbHO3m.js +35 -0
  171. package/dist/assets/{TransactionVendorDetailPage-Yi7SmsyK-pIrKO6zm.js → TransactionVendorDetailPage-gBr8kX0F-BE5xJ4Iy.js} +5 -5
  172. package/dist/assets/{TransferDrawerPage-2P1mhp1M-DQ83dYHD.js → TransferDrawerPage-BJVanLzC-BZZsX7dv.js} +11 -11
  173. package/dist/assets/{TreasuryOverviewPage-CkCBcBQK-CKBjtsts.js → TreasuryOverviewPage-DGJnHyrO-BPZDM1DN.js} +34 -34
  174. package/dist/assets/{TreasuryPromoPage-v-g4ZAdk-BPgVXnPP.js → TreasuryPromoPage-CblUabA3-CO5CaCN_.js} +14 -14
  175. package/dist/assets/{TreasurySetupPage-B7va2-fJ-CAJ9u8aR.js → TreasurySetupPage-CuROk6il-7kJUNajN.js} +2 -2
  176. package/dist/assets/{TreasuryStatementsPage-BEJsQ-Oz-DHPONp68.js → TreasuryStatementsPage-DfB0yrzC-osurk-aq.js} +10 -10
  177. package/dist/assets/{TreasuryTaxLetterPage-CpTpM1mx-Ba1IA2xd.js → TreasuryTaxLetterPage-CRoLpeXm-g70lefJl.js} +4 -4
  178. package/dist/assets/{TreasuryTransferOrReviewPage-BRPFympA-6Ds9mHlo.js → TreasuryTransferOrReviewPage-QMDAFbkh-CUXJN-eh.js} +77 -77
  179. package/dist/assets/{TrendChart-DRNocU0p-B5zGJHBv.js → TrendChart-D3_4i3qH-wYUerKRk.js} +3 -3
  180. package/dist/assets/{TrendWithTransactions-CldwGpXX-C-miaXCt.js → TrendWithTransactions-KkV2_0Uh-D0lwZdhf.js} +5 -5
  181. package/dist/assets/{UncategorizedAccountsMappingPage-2C5qEhte-D_ahOlGs.js → UncategorizedAccountsMappingPage-kKq-jvPY-CF6bAw3X.js} +1 -1
  182. package/dist/assets/{UnitIntegrationPage--cDHqgXs-CzBp1mNW.js → UnitIntegrationPage-CZS0yjHf-2PLtjCjv.js} +3 -3
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-D85ML8-_-p_x3eEON.js → UploadAdditionalDocumentOverlay-KkO_TLUT-n0LOLnpS.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-vdFWf98b-D5sSolYh.js → Vendor2FAPopup-wnVnkHOg-DABVEKDS.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-D7ImMabh-ChqR1RaR.js → VendorACHDetailsPage-nuzdr69i-pgOa8d0q.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-BOeEd9pX-C40iOslI.js → VendorDetailPage-ClmL_1FB-Cz0Favu8.js} +14 -14
  187. package/dist/assets/{VendorDomesticWireDetailsPage-CXFrYPn8-o64Pt2o2.js → VendorDomesticWireDetailsPage-DEK3jdYu-StHUbnc9.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-CZFErJ91-Dq9to1zv.js → VendorFiling1099EditablePage-KMOY10Xr-C-_0rtWP.js} +9 -9
  189. package/dist/assets/{VendorFirstReviewPage-BHzDUMKu-DpG7tqKb.js → VendorFirstReviewPage-CLF3qT17-D1oHFEVR.js} +75 -75
  190. package/dist/assets/{VendorInternationalWireDetailsPage-j4j5irzH-CT3rN25J.js → VendorInternationalWireDetailsPage-C5JXqVVq-DdhMyWB0.js} +8 -8
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DM4jC7wD-0NWOAHYt.js → VendorInternationalWireSwiftDetailsPage-7KrBqEWb-D_WpQwvk.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-BTRiZlIa-D2xftT7n.js → VendorsAccountsSection-fcURK7tv-BOScGj67.js} +13 -13
  193. package/dist/assets/{WarningsDrawerPage-ZgfQEBme-BogIku8q.js → WarningsDrawerPage-Bnd_CdR9-B2JqHi6z.js} +10 -10
  194. package/dist/assets/{ZeniAccountDetailPage-xrq0Ez6S-5Y9wWxKq.js → ZeniAccountDetailPage-DRDCdFW7-D8o4Z2Hy.js} +40 -40
  195. package/dist/assets/{ZeniAccountListViewPage-BwXfELGd-CMYKhLC-.js → ZeniAccountListViewPage-ZPWww_Go-HRp0ORwg.js} +5 -5
  196. package/dist/assets/{ZeniAccountNavBarPieces-xpHuuPSD-CQw7XfH0.js → ZeniAccountNavBarPieces-DFivFXxa-rHFaK51E.js} +1 -1
  197. package/dist/assets/{ZeniAccountPromoPage-BvSwPEk7-sx8wuksr.js → ZeniAccountPromoPage-D1oJNoqy-C6ZFb72_.js} +18 -18
  198. package/dist/assets/{ZeniAccountSetupPage-yCkiopeU-oXKMyUZt.js → ZeniAccountSetupPage-DITu6ztK-Fgis_UYm.js} +3 -3
  199. package/dist/assets/{ZeniCopyright-BAbOOFg9-CEbrOROr.js → ZeniCopyright-DoA2I5zj-CPBH_zf-.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-C1sl8ZNj-C6racrVi.js → ZeniTransferAmountSlider-amszUh1p-Wx5VV7C8.js} +1 -1
  201. package/dist/assets/{analyticsHelper-j8smtjIR.js → analyticsHelper-BbcCIpO1.js} +1 -1
  202. package/dist/assets/{analyticsHelper-CkzpobMi-DnjY1jLw.js → analyticsHelper-DPbbQVAO-ChPUlKK7.js} +1 -1
  203. package/dist/assets/{chartTypes-JD2mR9iq-B-Dqgpc8.js → chartTypes-qpvW4LwC-4Ag0mdD1.js} +1 -1
  204. package/dist/assets/{commonDimensions-DRfDJ_wQ-DeEC_LLv.js → commonDimensions-DAvj4Il1-Chc9ZQai.js} +1 -1
  205. package/dist/assets/{detailCommon-BbKkY_46-DwHUZLAg.js → detailCommon-jP1ggD3g-CQiTz4E7.js} +5 -5
  206. package/dist/assets/{downloadPdf-D7ANJLK4-BVhr8pTH.js → downloadPdf-LAHtgcHF-B9uNpNRf.js} +1 -1
  207. package/dist/assets/{index-Dr7k10Ge.js → index-DyBH5SZv.js} +3543 -3520
  208. package/dist/assets/mapLoadingInProgressToTreeNode-CjvJKOzk-DeuVFxVw.js +1 -0
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-caUW45t5-Cd4Vndkt.js → mapSectionWithAcOnlyToTreeNode-Dr43nOGj-FSgubQ7E.js} +1 -1
  210. package/dist/assets/mapSpacerToTreeNode-COsnfFtf-DI0OXEqQ.js +1 -0
  211. package/dist/assets/mapTimeframeBalancesToTreeNode-BnpqSOA6-DAD3sG8g.js +1 -0
  212. package/dist/assets/mapTimeframeBalancesToTreeNode-DFanhVY8-Cl8Oktyg.js +1 -0
  213. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-D2xlqc6w-BjPO7Xb1.js +1 -0
  214. package/dist/assets/{play-icon-BbWpG2oG-CGqef6-e.js → play-icon-D3OSczih-8eMagn70.js} +3 -3
  215. package/dist/assets/{toCOABalancesWithID-DOgHiMwn-C3l_klRD.js → toCOABalancesWithID-DeWKaovX-C_3xC96w.js} +1 -1
  216. package/dist/assets/{toChartData-CNfdaXyM-Cc0Cbk9b.js → toChartData-Dkp488IJ-Cg1gF7al.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-JBMxqa9X-CRkfUPI_.js → treasuryColorHelper-BibNNRS5-DCmyWsB-.js} +1 -1
  218. package/dist/assets/{uploadAttachment-BGZjtYkJ-DDuM3kuv.js → uploadAttachment-BjJ8_wDA-22p019X4.js} +25 -25
  219. package/dist/assets/{uploadReceipts-Buvz7DfG-CEx_e_oz.js → uploadReceipts-D80JLNY4-sjevKwVl.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +4 -4
  222. package/dist/assets/AccountInfoPageContent-BTk2gRyM-D5sd4ymJ.js +0 -149
  223. package/dist/assets/ApprovalRulesSettingsPage-CXh9tY6X-DzKaycYf.js +0 -47
  224. package/dist/assets/ArAgingChart-GL4vkypx-BDoyqmzK.js +0 -24
  225. package/dist/assets/BillPaySetUpPage-_s4R537_-DvISkevy.js +0 -42
  226. package/dist/assets/ChargeCardDetailPage-Kygr13jR-CNZ8Sj5E.js +0 -1447
  227. package/dist/assets/ChargeCardListPage-BnzdzSXW-C9n9iaEp.js +0 -355
  228. package/dist/assets/ChargeCardPromoPage-CSNn9X5i-Ca7vMfka.js +0 -175
  229. package/dist/assets/ChargeCardSetupPage-DE1pK_7F-BNJjwg-b.js +0 -36
  230. package/dist/assets/CollapsableReportTable-BGT77T9W-DWoWj-VL.js +0 -2860
  231. package/dist/assets/CustomerOnboardingContainerPage-9UTLABZ0-DmivhYy_.js +0 -1
  232. package/dist/assets/Dashboard-CA9685lJ-B_5dmcrq.js +0 -778
  233. package/dist/assets/DashboardReportPage-DQoFWd5C-D6uulgOO.js +0 -349
  234. package/dist/assets/HelpButton-DvD6UJq--aZr7WRfd.js +0 -28
  235. package/dist/assets/InvitePeoplePage-BKEDAnQ4-ByvIsC8W.js +0 -12
  236. package/dist/assets/NotificationsListConfig-ChVd_Bek-CKniSs8p.js +0 -1
  237. package/dist/assets/PortfolioAllocationFormPage-DsCeagnu-DFOtswbp.js +0 -207
  238. package/dist/assets/PortfolioDetails-BEa4kwk8-CITW78cn.js +0 -218
  239. package/dist/assets/ReimbursementSetUpPage-DO_dBP9N-CDR1Iktq.js +0 -140
  240. package/dist/assets/ReportTableViewSelector-D6DHFt_R-CzdBaV93.js +0 -150
  241. package/dist/assets/ReportsPage-D4mI3T0w-DX_lYTCz.js +0 -120
  242. package/dist/assets/SpendMgmtSetupAccountSection-nryeZQ0T-2tO4d4y_.js +0 -206
  243. package/dist/assets/TimeframeSwitcherWithToggle-L1nNDGOE-jeHox6-x.js +0 -31
  244. package/dist/assets/TransactionList-BBjiP2Nf-CVZYe7YT.js +0 -147
  245. package/dist/assets/TransactionListPage-BeVkiwkg-BwC4l02u.js +0 -35
  246. package/dist/assets/mapLoadingInProgressToTreeNode-e8JhfflK-BBSz2yuD.js +0 -1
  247. package/dist/assets/mapSpacerToTreeNode-C692pbYW-BJLTFMw5.js +0 -1
  248. package/dist/assets/mapTimeframeBalancesToTreeNode-DKrYq4x5-CLuyCBzc.js +0 -1
@@ -1,4 +1,4 @@
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 Vt,bQ as Ot,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,V 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,P 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-Dr7k10Ge.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-oC-AP25Z-D-8kVIuC.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.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)`
1
+ import{a as Et,c3 as Ft,M as te,l as W,X as J,kM as Mt,j as t,F as Nt,bO as Vt,bQ as Ot,bR as Wt,a3 as Ut,o as i,bL as et,fy as Kt,ai as qt,bT as Ht,ia as Gt,ib as Yt,c as Zt,bs as Z,be as Xt,a5 as Jt,C as h,u as Ue,fz as Qt,kN as ei,g as X,cn as ti,f as U,q as N,w as se,kO as ii,cH as oi,kP as ni,kQ as ut,kR as ht,jl as li,kS as ri,kT as si,bl as gt,v as je,Y as ee,t as Ke,g5 as qe,d2 as He,fK as Ge,cg as yt,kU as bt,kV as Ce,_ as Be,kW as Ye,S as we,ie as xt,ig as wt,kX as ft,id as $t,bY as vt,b$ as St,kY as R,kZ as kt,fW as Tt,cl as Pt,dq as Ze,n as p}from"./index-DyBH5SZv.js";import{b as P,n as o,f as jt,j as Y}from"./vendor-CnQcJ2Lu.js";import{d as Ct}from"./useLongPress-GCK2COYQ-gxLtL5O4.js";import{K as ai}from"./StatusSwitcher-5CZzUYJE-qZVSFmES.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.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)},Xe={key:"dueDate",value:ue.paymentDate,sortOrder:"ascending",width:new h(20,20)},Je={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,Je,ze],pi=[_e,Le,Xe,Je,ze],mi=[_e,Le,Xe,Je,ze],ui=[_e,Le,Xe,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=J(),[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 Z,kP as Mt,j as t,F as Nt,bO as Vt,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: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`
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=J(),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=>Ze(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(Z,{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(Z,{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(Z,{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(Ye,{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,11 +78,11 @@ 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 Vt,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"?`${Q.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${Q.dropShadowNormalLight}`};
81
+ box-shadow: ${e=>e.isProcessing?"none":e.theme.mode==="dark"?`${X.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${X.dropShadowNormalLight}`};
82
82
  border-radius: ${i.sp2};
83
83
  cursor: ${e=>e.isProcessing?"initial":"pointer"};
84
84
 
85
- ${e=>e.isProcessing?X`
85
+ ${e=>e.isProcessing?Y`
86
86
  color: ${e.theme.colors.grey2};
87
87
  border-color: ${e.theme.colors.grey2};
88
88
  div {
@@ -94,7 +94,7 @@ 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 Vt,b
94
94
  color: ${e.theme.colors.grey2};
95
95
  border-color: ${e.theme.colors.grey2};
96
96
  }
97
- `:e.isSelected?X`
97
+ `:e.isSelected?Y`
98
98
  color: ${e.theme.colors.primary};
99
99
  border-color: ${e.theme.colors.primary};
100
100
  div {
@@ -106,7 +106,7 @@ 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 Vt,b
106
106
  color: ${R.includes(e.statusCode)?e.theme.colors.primary:void 0};
107
107
  border-color: ${R.includes(e.statusCode)?e.theme.colors.primary:void 0};
108
108
  }
109
- `:X`
109
+ `:Y`
110
110
  &:hover {
111
111
  color: ${e.theme.colors.primary};
112
112
  border-color: ${e.theme.colors.primary};
@@ -221,7 +221,7 @@ 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 Vt,b
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:Ve,space:ve}}}=te.getLocalizedStrings(),Vi=({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(V=>V.resolved===!1),[j]),K=V=>{V.stopPropagation(),k?.sharedFunctions?.subtreeFunctions.openAllThreadsDrawer({roomId:L,companyId:s.currentTenant?.companyId??Ve,companyName:s.currentTenant?.companyName??Ve,entityType:"bill.details",entityId:e.id}),B.trackCommentActivity("bill","clicked",s.currentTenant?.companyName??Ve,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(V=>{V.stopPropagation(),V.cancelable&&V.preventDefault(),x?he():r(e.id)},[he,x,r,e.id]),Fe=Ct({onLongPress:Ee},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(Oi,{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:V=>V.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]})},Oi=o.div`
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:Ve,space:ve}}}=te.getLocalizedStrings(),Vi=({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 $=J(),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(V=>V.resolved===!1),[j]),K=V=>{V.stopPropagation(),k?.sharedFunctions?.subtreeFunctions.openAllThreadsDrawer({roomId:L,companyId:s.currentTenant?.companyId??Ve,companyName:s.currentTenant?.companyName??Ve,entityType:"bill.details",entityId:e.id}),B.trackCommentActivity("bill","clicked",s.currentTenant?.companyName??Ve,s.controllersList.controllers.map(q=>Ze(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),Q=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(V=>{V.stopPropagation(),V.cancelable&&V.preventDefault(),x?he():r(e.id)},[he,x,r,e.id]),Fe=Ct({onLongPress:Ee},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(Oi,{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(Ji,{children:[t.jsxs(Ki,{children:[t.jsxs(qi,{children:[t.jsx(Hi,{windowSize:$,children:Q}),e.isRecurring?t.jsx(Z,{title:ie(),placement:"right",style:{padding:`2px ${i.sp2}`},children:t.jsx(eo,{isProcessing:c,children:t.jsx(to,{})})}):null]}),t.jsx(Yi,{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(Qi,{children:[t.jsx(Gi,{children:Be("0,0[.]00",e.totalAmountInUSD)}),t.jsxs(Xi,{hasAlertIcon:u!=null,children:[t.jsxs(io,{children:[n!==void 0?t.jsx(Zi,{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:V=>V.stopPropagation(),children:t.jsx(Z,{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(Z,{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(Ye,{isLoading:v,count:z.length,style:{position:"absolute",float:"right",right:"6px",top:i.sp1},openThread:K}):null]})},Oi=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,10 +230,10 @@ 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 Vt,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"?`${Q.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${Q.dropShadowNormalLight}`};
233
+ box-shadow: ${e=>e.isProcessing?"none":e.theme.mode==="dark"?`${X.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${X.dropShadowNormalLight}`};
234
234
  border-radius: ${i.sp2};
235
235
  cursor: ${e=>e.isProcessing?"initial":"pointer"};
236
- ${e=>e.isProcessing?X`
236
+ ${e=>e.isProcessing?Y`
237
237
  color: ${e.theme.colors.grey2};
238
238
  border-color: ${e.theme.colors.grey2};
239
239
  div {
@@ -245,7 +245,7 @@ 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 Vt,b
245
245
  color: ${e.theme.colors.grey2};
246
246
  border-color: ${e.theme.colors.grey2};
247
247
  }
248
- `:e.isSelected?X`
248
+ `:e.isSelected?Y`
249
249
  color: ${e.theme.colors.primary};
250
250
  border-color: ${e.theme.colors.primary};
251
251
  div {
@@ -257,7 +257,7 @@ 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 Vt,b
257
257
  color: ${R.includes(e.statusCode)?e.theme.colors.primary:void 0};
258
258
  border-color: ${R.includes(e.statusCode)?e.theme.colors.primary:void 0};
259
259
  }
260
- `:X`
260
+ `:Y`
261
261
  &:hover {
262
262
  color: ${e.theme.colors.primary};
263
263
  border-color: ${e.theme.colors.primary};
@@ -307,9 +307,9 @@ 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 Vt,b
307
307
  display: flex;
308
308
  color: ${e=>e.theme.colors.hero};
309
309
  justify-content: flex-end;
310
- `,Xi=o(U)`
311
- color: ${e=>e.theme.colors.grey1};
312
310
  `,Yi=o(U)`
311
+ color: ${e=>e.theme.colors.grey1};
312
+ `,Zi=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 Z,kP as Mt,j as t,F as Nt,bO as Vt,b
327
327
  box-sizing: border-box;
328
328
  display: flex;
329
329
  align-items: center;
330
- `,Qi=o.div`
330
+ `,Xi=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 Z,kP as Mt,j as t,F as Nt,bO as Vt,b
336
336
  justify-content: center;
337
337
  `,Te=o(U)`
338
338
  color: ${e=>e.theme.colors.grey1};
339
- `,Zi=o.div`
339
+ `,Ji=o.div`
340
340
  display: flex;
341
341
  flex-direction: column;
342
- `,Ji=o.div`
342
+ `,Qi=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 Z,kP as Mt,j as t,F as Nt,bO as Vt,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=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)`
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=J(),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 Z,kP as Mt,j as t,F as Nt,bO as Vt,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=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(Oe,{children:`${G.byText} `+j[0]+`${G.dots}`})}):t.jsx(Oe,{children:`${G.byText} `+j[0]}):null,x!=null?t.jsx(Oe,{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`
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=J(),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(Q=>Ze(Q)),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(Z,{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(Z,{title:`${G.byText} `+j.join(` ${G.orText} `),placement:"bottom-start",children:t.jsx(Oe,{children:`${G.byText} `+j[0]+`${G.dots}`})}):t.jsx(Oe,{children:`${G.byText} `+j[0]}):null,x!=null?t.jsx(Oe,{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(Ye,{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,11 +438,11 @@ 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 Vt,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"?`${Q.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${Q.boxShadowElevation}`};
441
+ box-shadow: ${e=>e.isProcessing?"none":e.theme.mode==="dark"?`${X.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${X.boxShadowElevation}`};
442
442
  border-radius: ${i.sp2};
443
443
  cursor: ${e=>e.isProcessing?"initial":"pointer"};
444
444
 
445
- ${e=>e.isProcessing?X`
445
+ ${e=>e.isProcessing?Y`
446
446
  color: ${e.theme.colors.grey2};
447
447
  border-color: ${e.theme.colors.grey2};
448
448
  div {
@@ -454,7 +454,7 @@ 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 Vt,b
454
454
  color: ${e.theme.colors.grey2};
455
455
  border-color: ${e.theme.colors.grey2};
456
456
  }
457
- `:e.isSelected?X`
457
+ `:e.isSelected?Y`
458
458
  color: ${e.theme.colors.primary};
459
459
  border-color: ${e.theme.colors.primary};
460
460
  div {
@@ -466,7 +466,7 @@ 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 Vt,b
466
466
  color: ${R.includes(e.statusCode)?e.theme.colors.primary:void 0};
467
467
  border-color: ${R.includes(e.statusCode)?e.theme.colors.primary:void 0};
468
468
  }
469
- `:X`
469
+ `:Y`
470
470
  &:hover {
471
471
  color: ${e.theme.colors.primary};
472
472
  border-color: ${e.theme.colors.primary};
@@ -547,7 +547,7 @@ 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 Vt,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)},O=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??O.newReimbursementTitle}),f!=null&&t.jsx(Fo,{children:`${O.byText} ${f?.firstName} ${f?.lastName}`})]}),t.jsxs(No,{children:[B[1].value+": ",u]}),s.length>1?t.jsx(Y,{title:O.reimbursementType.both,placement:"bottom-start",display:"flex",children:t.jsxs(ct,{children:[O.reimbursementType.type+": ",O.reimbursementType.titleForBoth]})}):t.jsxs(ct,{children:[O.reimbursementType.type+": ",O.reimbursementType[s[0]]]})]}),t.jsxs(Ao,{children:[t.jsx(Mo,{children:Be("0,0[.]00",e.amount)}),t.jsxs(Vo,{children:[n!==void 0?t.jsx(Oo,{className:"statusTag",color:n.color,bgColor:n.bgColor,borderColor:n.borderColor,children:n.value??O.hyphenText}):t.jsx(t.Fragment,{children:O.hyphenText}),y!==void 0&&k.length>0?k.length>1?t.jsx(Y,{title:`${O.byText} `+k.join(` ${O.orText} `),placement:"bottom-start",children:t.jsx(We,{style:{marginLeft:"auto"},children:`${O.byText} `+k[0]+`${O.dots}`})}):t.jsx(We,{style:{marginLeft:"auto"},children:`${O.byText} `+k[0]}):null,m!=null?t.jsx(We,{children:m}):null]})]})]})})})},Lo=o.div`
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)},O=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=J(),{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??O.newReimbursementTitle}),f!=null&&t.jsx(Fo,{children:`${O.byText} ${f?.firstName} ${f?.lastName}`})]}),t.jsxs(No,{children:[B[1].value+": ",u]}),s.length>1?t.jsx(Z,{title:O.reimbursementType.both,placement:"bottom-start",display:"flex",children:t.jsxs(ct,{children:[O.reimbursementType.type+": ",O.reimbursementType.titleForBoth]})}):t.jsxs(ct,{children:[O.reimbursementType.type+": ",O.reimbursementType[s[0]]]})]}),t.jsxs(Ao,{children:[t.jsx(Mo,{children:Be("0,0[.]00",e.amount)}),t.jsxs(Vo,{children:[n!==void 0?t.jsx(Oo,{className:"statusTag",color:n.color,bgColor:n.bgColor,borderColor:n.borderColor,children:n.value??O.hyphenText}):t.jsx(t.Fragment,{children:O.hyphenText}),y!==void 0&&k.length>0?k.length>1?t.jsx(Z,{title:`${O.byText} `+k.join(` ${O.orText} `),placement:"bottom-start",children:t.jsx(We,{style:{marginLeft:"auto"},children:`${O.byText} `+k[0]+`${O.dots}`})}):t.jsx(We,{style:{marginLeft:"auto"},children:`${O.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,10 +556,10 @@ 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 Vt,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"?`${Q.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${Q.boxShadowElevation}`};
559
+ box-shadow: ${e=>e.isProcessing?"none":e.theme.mode==="dark"?`${X.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${X.boxShadowElevation}`};
560
560
  border-radius: ${i.sp2};
561
561
  cursor: ${e=>e.isProcessing?"initial":"pointer"};
562
- ${e=>e.isProcessing?X`
562
+ ${e=>e.isProcessing?Y`
563
563
  color: ${e.theme.colors.grey2};
564
564
  border-color: ${e.theme.colors.grey2};
565
565
  div {
@@ -571,7 +571,7 @@ 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 Vt,b
571
571
  color: ${e.theme.colors.grey2};
572
572
  border-color: ${e.theme.colors.grey2};
573
573
  }
574
- `:e.isSelected?X`
574
+ `:e.isSelected?Y`
575
575
  color: ${e.theme.colors.primary};
576
576
  border-color: ${e.theme.colors.primary};
577
577
  div {
@@ -583,7 +583,7 @@ 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 Vt,b
583
583
  color: ${R.includes(e.statusCode)?e.theme.colors.primary:void 0};
584
584
  border-color: ${R.includes(e.statusCode)?e.theme.colors.primary:void 0};
585
585
  }
586
- `:X`
586
+ `:Y`
587
587
  &:hover {
588
588
  color: ${e.theme.colors.primary};
589
589
  border-color: ${e.theme.colors.primary};
@@ -663,7 +663,7 @@ 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 Vt,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,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,V]=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)}V(!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}),V(!0)},[m,s.length]),At={onOkClick:_=>{if(V(!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?.(),V(!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(Vt,{titleComponent:t.jsx(Wt,{children:q.title}),descriptionComponent:t.jsx(Ot,{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"?Vi: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`
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=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:Yt,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,V]=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)}V(!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}),V(!0)},[m,s.length]),At={onOkClick:_=>{if(V(!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?.(),V(!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]),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(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(Vt,{titleComponent:t.jsx(Wt,{children:q.title}),descriptionComponent:t.jsx(Ot,{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:Xo(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(Yo,{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"?Vi: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})})},Yo=({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},Xo=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: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},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"?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 Z,kP as Mt,j as t,F as Nt,bO as Vt,b
687
687
  background: ${e=>e.theme.colors.background};
688
688
  border-radius: 50%;
689
689
  cursor: pointer;
690
- `,mn=o(Qt)`
690
+ `,mn=o(Xt)`
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(Zt)`
697
+ `,un=o(Jt)`
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 Z,kP as Mt,j as t,F as Nt,bO as Vt,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"?Q.important:e.theme.colors.grey1};
726
+ color: ${e=>e.windowSize==="small"?X.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: ${Q.important};
733
+ color: ${X.important};
734
734
  }
735
735
  `,$n=o.div`
736
736
  display: flex;
@@ -750,5 +750,5 @@ 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 Vt,b
750
750
  `,Sn=o(N)`
751
751
  color: ${e=>e.theme.colors.primary};
752
752
  `,kn=o(se)`
753
- color: ${Q.important};
753
+ color: ${X.important};
754
754
  `;export{Rn as default};
@@ -1,4 +1,4 @@
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 Q,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,V as ge,gq as me,gr as xe,t as V,as as fe,l as M,gs as ye,z 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 N,a6 as Le,fv as Oe,a9 as Ee}from"./index-Dr7k10Ge.js";import{b as a,n as l,k as Ie}from"./vendor-CnQcJ2Lu.js";const Me=l.div`
1
+ import{X as z,u as _,M as L,j as o,bM as H,o as r,gk as ie,n as R,K as ce,v as J,b1 as Q,C as ee,gl as de,gm as pe,cq as te,b2 as A,ao as ue,w as oe,gn as he,a$ as re,t as ge,go as me,gp as xe,q as N,an as fe,l as M,gq as ye,z as Ce,gr as be,gs as ve,g as we,cn as $e,be as Se,fs as je,c as ke,h as V,a2 as Le,ft as Oe,a5 as Ee}from"./index-DyBH5SZv.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,bM as H,o as r,gm as ie,q as R,K as ce,r 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=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,...Q.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`
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(Q,{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};
@@ -31,13 +31,13 @@ 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 Q
31
31
  align-items: center;
32
32
  column-gap: ${r.sp3};
33
33
  justify-content: space-between;
34
- `,Ve=l.img`
34
+ `,Ne=l.img`
35
35
  height: ${r.sp3};
36
36
  width: ${r.sp3};
37
37
  border-radius: 50%;
38
38
  justify-content: center;
39
39
  color: ${e=>e.theme.colors.hero};
40
- `,Ne=l(je)`
40
+ `,Ve=l(je)`
41
41
  color: ${e=>e.theme.colors.hero};
42
42
  height: ${r.sp4};
43
43
  width: ${r.sp4};
@@ -52,7 +52,7 @@ 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 Q
52
52
  `,qe=l(Ee)`
53
53
  overflow: hidden;
54
54
  text-overflow: ellipsis;
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(Ne,{}),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:Je},filterOption:(d,f)=>Ze(d,f,i),noOptionsMessage:()=>Qe(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,{})]})})},Je=e=>o.jsx(A.MultiValueRemove,{...e,children:o.jsx(Ue,{})}),Qe=(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(N,{children:n.noMatchesFound})}return o.jsx(N,{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(Ve,{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`
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(Q,{...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:Ze},filterOption:(d,f)=>Qe(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,{})]})})},Ze=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"}),Qe=(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};
@@ -123,7 +123,7 @@ 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 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
- `,J=l.div`
126
+ `,Z=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,bM as H,o as r,gm as ie,q as R,K as ce,r 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(K,{onClick:j,children:[o.jsx(nt,{}),o.jsx(V,{children:d.addFilterBtnText})]}),o.jsxs(K,{onClick:O,children:[o.jsx(lt,{}),o.jsx(V,{children:d.clearAllBtnText})]})]}):null,E=()=>e.categories==null||e.categories.length===0?o.jsx(U,{children:o.jsx(q,{children:o.jsxs(J,{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(J,{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`
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(Z,{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(Z,{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,bM as H,o as r,gm as ie,q as R,K as ce,r 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":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",...Q.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)`
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`