@zeniai/web-cockpit-ui 1.13.93-qa → 1.13.94-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 (239) hide show
  1. package/dist/assets/{ACHDetailsPage-B7Osqlyb-B_Z7r9BP.js → ACHDetailsPage-C77hriAS-Bp9UERQr.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-CEGqk2vj-DPbJQcO4.js → AIPerformancePage-DWLZz5fl-xe6YeuvR.js} +23 -23
  3. package/dist/assets/{AccountInfoPage-Dsi_xY1U-57CoJCvB.js → AccountInfoPage-CHH8xpX7-OTuTPmWc.js} +5 -5
  4. package/dist/assets/AccountInfoPageContent-CslCCxyA-CKIHtSb5.js +149 -0
  5. package/dist/assets/{AccountReconDetailsDrawerPage-Bwc-VZmp-9tNR08JA.js → AccountReconDetailsDrawerPage-Bg65723V-z_C0MUXO.js} +15 -15
  6. package/dist/assets/{AccountRow-DMeCdEPJ-BTasbb-7.js → AccountRow-CBhTc-CO-BhHbolQV.js} +24 -24
  7. package/dist/assets/{AccountsPromoCardStack-NYQHh0uE-KwuGDIiT.js → AccountsPromoCardStack-C1FN6ldb-CTHlY162.js} +28 -28
  8. package/dist/assets/{AddAddressForCardDrawer-3WPrDfNL-fOwdSnNu.js → AddAddressForCardDrawer-DKbwVrFG-IuCuUpQj.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-IjvBXyuu-KvZO3w5z.js → AddToWalletPage-BLH7hMIs-p7f4w_jj.js} +11 -11
  10. package/dist/assets/{AgingReportsPage-CIJTKbrN-Brsc1odM.js → AgingReportsPage-iXp5N9xa-BuwByTSa.js} +6 -6
  11. package/dist/assets/{AllUserItems-BuX43aPo-DioQ0mzE.js → AllUserItems-SiwAGR6X-CB3qDmMz.js} +12 -12
  12. package/dist/assets/{ApAgingDetailPage-02ejdrQy-BvI-rm07.js → ApAgingDetailPage-CSv-Yx3u-CQfdnkLR.js} +3 -3
  13. package/dist/assets/{AppBasePage-CC3bbnnu-DsRrQjex.js → AppBasePage-BVhJh2iM-DhwgHBUl.js} +1 -1
  14. package/dist/assets/{AppDrawerContent-B_EAPC9w-Dvsq28k3.js → AppDrawerContent-TBHNokFo-a7xFQjLd.js} +5 -5
  15. package/dist/assets/ApprovalRulesSettingsPage-DmPsbDZd-DdnQZTKs.js +47 -0
  16. package/dist/assets/ArAgingChart-CPyAljB5-C1xslsyT.js +24 -0
  17. package/dist/assets/{ArAgingDetailPage-CMUpR-2N-BRTN7gMO.js → ArAgingDetailPage-BLc5FDm2-BOdfR_tV.js} +1 -1
  18. package/dist/assets/{AttachmentView-sbbFtu9R-Izzia16X.js → AttachmentView-sMKTopf8-CQuqGqLW.js} +5 -5
  19. package/dist/assets/{BankAccountSection-BJPkV-qV-CzS6kxRW.js → BankAccountSection-DoGfRREZ-B2ezqzYk.js} +2 -2
  20. package/dist/assets/{BankAccountWarningSection-D9R1VhzE-V6Y4aUEl.js → BankAccountWarningSection-BhSSRCzK-DNfJcwlK.js} +8 -8
  21. package/dist/assets/BankConnectionsSettingsPage-DIKMwQoQ-OeAXgZvH.js +425 -0
  22. package/dist/assets/{BillDetailPage-C_JDjRL0-B8Sa9pQS.js → BillDetailPage-DSYeib0o-BwJVgfN9.js} +8 -8
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-B_XMuvzZ-gu71vbc9.js → BillPayApprovalRuleDetailPage-DDFr9CL_-CYlqmWUc.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-CyZjNIsQ-DKZ0FGH6.js → BillPayApprovalRulesPage-3Yak-MB--CaAqhGEn.js} +1 -1
  25. package/dist/assets/{BillPayPromoPage-ByDsqYfw-iMNoM9Kg.js → BillPayPromoPage-nRvSJMZU-aGHL9LIB.js} +2 -2
  26. package/dist/assets/{BillPaySetUpPage-yTO-xwRJ-DiUozoOu.js → BillPaySetUpPage-BWrp4v6b-DQFkIYKy.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-BIAy1QHr-C5IDBl0Y.js → BillingSettingsPage-DtBZmdxq-BCytA-g_.js} +1 -1
  28. package/dist/assets/{BillsBulkReviewDrawerPage-Cw1XCs0q-C5g5voDh.js → BillsBulkReviewDrawerPage-DCz41OgH-BEoVAqH0.js} +1 -1
  29. package/dist/assets/{BoxItem-UCX7eqiN-CxXWJqhl.js → BoxItem-DBi8kqn3-BDAOAuEh.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-CSsout2C-zWzxb-1t.js → BusinessVerificationPage-BfPqcCH3-Dr7d8VRo.js} +9 -9
  31. package/dist/assets/{CardNumberSubText-DuTv0ip1-BnZjxVHu.js → CardNumberSubText-CkmaTF_l-Kwic4R2k.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-KdHf-_ZF-DZ-5eozY.js → CashbackDetailPage-BlcEXdet-B9yAfRkP.js} +19 -19
  33. package/dist/assets/ChargeCardDetailPage-BARovLsv-j69HZx4R.js +1447 -0
  34. package/dist/assets/ChargeCardListPage-C1XbbZJ2-BE2YBCij.js +355 -0
  35. package/dist/assets/{ChargeCardListTable-B1a9-RYl-C_trAFfC.js → ChargeCardListTable-HXAc8Lqx-wKEbgM6d.js} +21 -21
  36. package/dist/assets/ChargeCardPromoPage-B8aTlJ8l-5K-z8G1R.js +219 -0
  37. package/dist/assets/{ChargeCardSetupPage-DOrs_Bw8-DvKjxZsP.js → ChargeCardSetupPage-XI-WplXI-vUgUcPsh.js} +2 -2
  38. package/dist/assets/{ChargeCardStatementsPage-xvq2HeEr-DIPvFYAp.js → ChargeCardStatementsPage-CYopWAg4-fr_o5tML.js} +4 -4
  39. package/dist/assets/{ChargeCardUtils-Dt303NN_-BJthP303.js → ChargeCardUtils-BEtXxds6-iY4L_brM.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-BK2ISNjj-DZnlqtpO.js → ChaseOverlay-BySoceqB-DYKQzq4d.js} +6 -6
  41. package/dist/assets/CheckDepositDrawerPage-DOyXGzFg-BAQPRuRk.js +206 -0
  42. package/dist/assets/{CollapsableReportTable-D5D0ufUn-ghspgAwM.js → CollapsableReportTable-FShSCFEn-62FniBRb.js} +29 -29
  43. package/dist/assets/{CompanyOfficerDetailsSection-C7fuDGQk-gQYRZKRE.js → CompanyOfficerDetailsSection-QQIIHW41-xH4MKkl5.js} +25 -25
  44. package/dist/assets/{CompanyPassportCard-DwUqLcAr-BFBYLv_8.js → CompanyPassportCard-D2b6Ztes-ot6tMI66.js} +2 -2
  45. package/dist/assets/{CompanyPassportPage-ClToBIAw-BeY6Jzwo.js → CompanyPassportPage-Bkd2l8Xj-psAfEsoz.js} +10 -10
  46. package/dist/assets/{CompleteProfile-CLDWG3QK-TwaY_UV5.js → CompleteProfile-DYv1reCa-3AIo6bvw.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-DoZB9Us7-DkYeJgKW.js → ConfettiBurst-CDUVssuw-hjqW22eh.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-B837xw8A-D4X9dHl7.js → CreateOrEditVendorPage-mlx8B4Jv-DUHw5PtN.js} +10 -10
  49. package/dist/assets/{CreditCardPaymentDrawerPage-zGaAOnnB-B0aHCgrm.js → CreditCardPaymentDrawerPage-DBTT4Ptu-Dc8GvYzf.js} +6 -6
  50. package/dist/assets/{CreditCardPaymentPlgSection-BLbZFCcL-BKv30VTO.js → CreditCardPaymentPlgSection-CH8Ic2sK-CXQECn24.js} +7 -7
  51. package/dist/assets/{CurrencySelectField-DS3dOR3F-DfDyF-bz.js → CurrencySelectField-BpuAi_Wp-COgh-Qif.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-WWVaQenb-CqYIrAsU.js → CustomerOnboardingActivationPage-CJn_cLk6-D6OFbgAy.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-Dln-_Yb0-BjXolAob.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BSXKMQ77-5cFdc0uI.js → CustomerOnboardingDetailPageSkeleton-Cr10sdrX-B55KDkTQ.js} +10 -10
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-Dd5kCuRE-B1UHu9bc.js → CustomerOnboardingNoStepsPage-9Jl0VpUx-BiS5ICyP.js} +5 -5
  56. package/dist/assets/{CustomerOnboardingPage-CGJpD875-Dw-iXvXQ.js → CustomerOnboardingPage-OCG7AjuD-DJnYkmg8.js} +5 -5
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-BFmVLk0l-BJFTzvmu.js → CustomerOnboardingProductSuitePage-vXKRghjP-hldhfPSg.js} +2 -2
  58. package/dist/assets/Dashboard-BOJNXopc-byUhih3W.js +1253 -0
  59. package/dist/assets/{DashboardReportPage-BbYtKYEH-Bu7QpJ1d.js → DashboardReportPage-Cuiynx8W-ac_35yhz.js} +8 -8
  60. package/dist/assets/{DepositAccTransactionItem-BMXQpKVB-CkyUtSxG.js → DepositAccTransactionItem-BVGKoyyZ-CtkDwopW.js} +2 -2
  61. package/dist/assets/{DepositAccTransactionListPage-bwEdSihi-CohU_Y5O.js → DepositAccTransactionListPage-kkdrU5Mo-3snjZA89.js} +8 -8
  62. package/dist/assets/{DocumentSecurityBanner-DV9HE3MK-DHA392ey.js → DocumentSecurityBanner-C_LxmFZ8-Bt6Lz_p3.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-OI-gqVNE-FukCXOQC.js → DomesticWireDetailsPage-BhE0GcbL-CklyzXqp.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-De5uIGOt-fe6EK_62.js → DownloadOverlay-LH6MXphu-kt8sJEjY.js} +16 -16
  65. package/dist/assets/{DrawerPage-n421ewDm-V0Ldc4CU.js → DrawerPage-C3wbST4Q-CLJNN7bG.js} +8 -8
  66. package/dist/assets/{EditPeoplePage-sO1qN6Uw-ChlFb2l3.js → EditPeoplePage-C53vRVhe-BSK-mQZ3.js} +15 -15
  67. package/dist/assets/{EditReimbursementDetailPage-D5iKVGl3-D6axPaby.js → EditReimbursementDetailPage-BBQIYJrj-a2qRFgyX.js} +60 -60
  68. package/dist/assets/{EntityDetailPage-CDk-oyYB-DUNhaeNM.js → EntityDetailPage-Ba0fzVNR-DpkKGCO_.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-C4cC9rOJ-BbOIRL3t.js → EntitySummarySection-DA6Vsjwj-DPw5fEaJ.js} +9 -9
  70. package/dist/assets/{ExpenseAutomationOverviewPage-BojhuW5i-DndVOG_2.js → ExpenseAutomationOverviewPage-glEgQT6c-Dj_Wb6rt.js} +19 -19
  71. package/dist/assets/{ExpenseAutomationPage-D0BViJ7J-CVjlySFW.js → ExpenseAutomationPage-CsJiE1ap-BnkOrNDa.js} +73 -73
  72. package/dist/assets/{ExpressPayPage-DdgtFYep-rsUEwVea.js → ExpressPayPage-i9LGeqy_-wmqq-4AX.js} +7 -7
  73. package/dist/assets/{FeaturePreviewPage-CW0YmOgl-CZs71GTx.js → FeaturePreviewPage-Bl2C_tQd-DJQ0amFl.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-BfnTsu_D-JwuskYSG.js → FollowStepsSection-KcgZahKS-BPKITv3B.js} +12 -12
  75. package/dist/assets/{GlobalReviewListPage-C0U7Y6dI-hBZ0JIdn.js → GlobalReviewListPage-D2NH1omi-CTNsB5Nb.js} +11 -11
  76. package/dist/assets/HelpButton-YqQNv-UM-CruBHlAV.js +28 -0
  77. package/dist/assets/{InformationCardStack-6BD3n76T-C6n7H91r.js → InformationCardStack-OhjUoNBj-DBwYrPQy.js} +5 -5
  78. package/dist/assets/{InsightsCardStack-CwxJP-ic-HgjLIYZH.js → InsightsCardStack-CDrOBeoJ-DTHqugyU.js} +10 -10
  79. package/dist/assets/{InsightsSection-DYyHpcUE-CVS4D7Rl.js → InsightsSection-CBaItqYN-Dz4Ilz30.js} +3 -3
  80. package/dist/assets/{IntegrationsSettingsPage-ZkvKZqwD-Dh9_Y5r9.js → IntegrationsSettingsPage-CuPS5otW-BirDKZz3.js} +2 -2
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-D3nyRM06-Bvm0rISQ.js → InternationalWireSwiftDetailsPage-DQsW7Uzb-CUGMa7hJ.js} +6 -6
  82. package/dist/assets/{InternationalWireVerificationPage-BOdAP6dN-BRgvAPQo.js → InternationalWireVerificationPage-BE1xcmQo-s1fsXNah.js} +15 -15
  83. package/dist/assets/{InviteFormPage-HJMhfa_f-7mLTKV2K.js → InviteFormPage-CUDsc0Y3-BT3er91i.js} +21 -21
  84. package/dist/assets/{InvitePageListView-CjneWRfJ-Do8_-Wzf.js → InvitePageListView-DJildrs1-BRenHpuK.js} +31 -31
  85. package/dist/assets/InvitePeoplePage-6upCRZjT-Cy37Dy58.js +12 -0
  86. package/dist/assets/{InvoiceUploadSection-CfAnZsV9-CXlIUrR5.js → InvoiceUploadSection-CyacFv78-bjw3W0fU.js} +3 -3
  87. package/dist/assets/{IssueChargeCardPage-pKF4dRNw-BtTzBIAW.js → IssueChargeCardPage-6iTrYJEM-BjNouHGB.js} +25 -25
  88. package/dist/assets/{LabeledAddressValue-UYEy_1W0-BrLnlk5a.js → LabeledAddressValue-CDy1Q4J--CkXQxeFy.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-BmSVDTMx-Jv07dYGB.js → LabeledAddressValueField-DbR_ehJJ-kXFBzBc8.js} +2 -2
  90. package/dist/assets/{LabeledControlledCheckBoxField-BFnLx9E0-DltjlqGq.js → LabeledControlledCheckBoxField-CXNDX5oe-Cc00saAR.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-Bh-cfR9F-BSOcL1XZ.js → LabeledCreatableSingleSelectField-B_TreAUT-DzJBfD6q.js} +3 -3
  92. package/dist/assets/{LabeledDocumentField-YBoeNDoD-CyLWW2Xq.js → LabeledDocumentField-CUTXDuQL-CB7-inDg.js} +5 -5
  93. package/dist/assets/{LabeledDropDownFormattedTextField-jrOUW9Ig-Cb_hd6Cs.js → LabeledDropDownFormattedTextField-yPu_zrn8-f9OAJ2TU.js} +2 -2
  94. package/dist/assets/{LabeledText-BqO1wHro-yEfY3Vib.js → LabeledText-gvxUV2ku-Cf06N418.js} +2 -2
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DiWgp4aE-GkGK06mY.js → LabeledUserSingleSelectWithSubtitlesField-Bh1Ts3Yn-DTgSGsxS.js} +3 -3
  96. package/dist/assets/{LabeledZeniRolesDropDownField-Cgy0v5oD-CE6fgMqo.js → LabeledZeniRolesDropDownField-xA0_8wFb-Dd3nBqBN.js} +24 -24
  97. package/dist/assets/{LinkJETransactionPage-PZAQ79zW-Be0NFT0x.js → LinkJETransactionPage-f4-YwvQe-D8ooeWsr.js} +10 -10
  98. package/dist/assets/{LowBalancePopup-BYeSnxBp-CWB9fGay.js → LowBalancePopup-C7oCDqcx-2Rje4uhG.js} +6 -6
  99. package/dist/assets/{MagicLinkACHDetailsPage-D_FaPCmn-C524CU_C.js → MagicLinkACHDetailsPage-Bqe3RDsV-CZa4p9hj.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-rnZdulCr-BIvVFjqJ.js → MagicLinkDomesticWireDetailsPage-DPU-8FAH-CSBTwaek.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-B7ScwCJc-CedT3IVK.js → MagicLinkInternationalWireDetailsPage-DeXZfP0h-D3k-uGEY.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-DVhVWuCR-C6_bXRZW.js → MagicLinkSuccessPage-CArToNjz-DqyiFP-T.js} +4 -4
  103. package/dist/assets/{MagicLinkTitleSection-CjV-_WEQ-DLRFZKyQ.js → MagicLinkTitleSection-CP0OhLNZ-BeBei-_2.js} +3 -3
  104. package/dist/assets/{MailingDetailsSection-CW6ShqHJ-D8V4HzFw.js → MailingDetailsSection-TgN7VRhK-CYe74YT_.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-BhC8pSjM-Dwxk7RjP.js → MeetingCalenderPopup-vr7DE2aj-DAZs4R6M.js} +3 -3
  106. package/dist/assets/{Menu-LDwLOgxI-DlYH_4Kt.js → Menu-DNn9-W-C-DaYpba-h.js} +4 -4
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BzxtuXEu-CJN51V3R.js → MyBankConnectionsSettingsPage-TawXQ1Zb-BllmvVI4.js} +14 -14
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-9jGJWmds-D9P1jnqV.js → MyPendingActivationChargeCardListPage-CPgV9E8n-BAkl0Cop.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-9yk4H_yu-G514pPEm.js → MyProfileSettingsPage-DuXTV0pM-5CplCRBg.js} +7 -7
  110. package/dist/assets/{NavBarWithPicker-DUpJ0EXp-DsJc75Xr.js → NavBarWithPicker-Cdali7jG-B142_aE-.js} +4 -4
  111. package/dist/assets/{NavigationArrow-lL3Ug8Mk-CFERmT7S.js → NavigationArrow-DaoZtCA8-BHc3euQ9.js} +9 -6
  112. package/dist/assets/{NavigationDots-6Q5ZVqKl-Bii0GTV2.js → NavigationDots-BhF2AV0Y-DUHF5KEe.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-nrWvsRy4-B2bsxNA0.js → NewGlobalMerchantPage-BaoJ7yB8-BF04eMSd.js} +8 -8
  114. package/dist/assets/{NoDataChart-DGbfWo33-lORHrY9i.js → NoDataChart-IPJ1xGPZ-BKJQDDL9.js} +1 -1
  115. package/dist/assets/{NoDataTable-CsvWc_ok-Bsp9MWne.js → NoDataTable-D5U81gbD-BirLBEpp.js} +1 -1
  116. package/dist/assets/{NotFoundPage-CzfiPkml-B4WoheH3.js → NotFoundPage-C7BswX2A-DQWUyCMU.js} +4 -4
  117. package/dist/assets/{NotificationSettingsPage-Dmfqzy1H-7Yghyu9r.js → NotificationSettingsPage-BQyqFWby-GjMlWRuD.js} +13 -13
  118. package/dist/assets/NotificationsListConfig-kLqWFg2Q-DecPdYAb.js +1 -0
  119. package/dist/assets/{NotificationsPage-BAj5p1zx-DVMRgL-y.js → NotificationsPage-DjRkTZVT-udgcPcnZ.js} +12 -12
  120. package/dist/assets/{OpExByVendorPage-CRt-VUTi-Co9wh_XC.js → OpExByVendorPage-CSasi7Uo-CoBJ4a1U.js} +7 -7
  121. package/dist/assets/{OverlayContainerPage-C0rUb6-5-ARc4wBU5.js → OverlayContainerPage-C0rUb6-5-CokciX1J.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-lT9GgcG2-Dup1SAcO.js → PandLWithForecastPage-D8YwSYiz-BlQ8i7AP.js} +7 -7
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DY4eeS5C-BT81M9QN.js → PaymentAccountSetupBillingAddressSection-BWwcQZfk-DK-YnIzr.js} +7 -7
  124. package/dist/assets/{PeoplePage-CDQl7HVr-BcsR0YPU.js → PeoplePage-mrXiZ4VG-Cp2NcBr2.js} +14 -14
  125. package/dist/assets/PortfolioAllocationFormPage-DAFisXnQ-DjoPfEuL.js +207 -0
  126. package/dist/assets/{PortfolioDetails-Dk_IIRuG-By4sZlSG.js → PortfolioDetails-BBOVIetI-BvRwtbCV.js} +12 -12
  127. package/dist/assets/{ProductsCarousel-0-ksFQos-Cboqtj5A.js → ProductsCarousel-DpevGHyq-M7sMCRPA.js} +6 -6
  128. package/dist/assets/{PromoBaseCards-DNSnqS61-RNj48nzF.js → PromoBaseCards-BreO0rHq-CmneT-LE.js} +23 -23
  129. package/dist/assets/{QBOConnectionDialog-BmIUfW_i-BTfGqMCC.js → QBOConnectionDialog-BCWc6AK--ExlTvgR6.js} +7 -7
  130. package/dist/assets/{QBOSetupSection-BaNFiEPB-Dd4E79Yb.js → QBOSetupSection-D_doa7hh-C2_irMwi.js} +11 -11
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CtTk4HV2-B_OXotse.js → ReimbursementApprovalRuleDetailPage-BSFxsbcx-5oswA6u0.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-IhKSiGK_-CJ28iUD0.js → ReimbursementApprovalRulesPage-X9bJFM6L-DS04bVT9.js} +29 -29
  133. package/dist/assets/{ReimbursementDetailPage-B2rT1dKM-B4mKbjVG.js → ReimbursementDetailPage-BJmSB65P-B9Io-y6T.js} +11 -11
  134. package/dist/assets/{ReimbursementPromoPage-d7XBUzip-BPhyjPfw.js → ReimbursementPromoPage-DO7dI9S7-IIxWWc2q.js} +9 -9
  135. package/dist/assets/{ReimbursementSetUpPage-DWCUtN5c-B9oGu4ct.js → ReimbursementSetUpPage-Wjj6aNpc-BXv92xHK.js} +9 -9
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-ByNvcTCn-CrVDh7-F.js → ReimbursementsBulkReviewDrawerPage-GPuEjGqi-qY4F19Li.js} +1 -1
  137. package/dist/assets/{ReloadCard-DZy28iWR-jty26kIg.js → ReloadCard-cApojDpl-BTIiWZRj.js} +5 -5
  138. package/dist/assets/{ReportTableViewSelector-DdZm4cOJ-2EdstowW.js → ReportTableViewSelector-BVUqQ9hl-WfosyobX.js} +5 -5
  139. package/dist/assets/{ReportsPage-CJDkY9FT-9nMZ-tT_.js → ReportsPage-CdiHHtXH-B1iwxprE.js} +1 -1
  140. package/dist/assets/{RevenueChart-B_jdFFPm-DtuAQXDC.js → RevenueChart-xoOc_3W3-Dzhhcd2T.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-DjPVGzeL-xNY3UvCJ.js → ReviewDetailsPage-CF-R6wwN-BMnS8ktk.js} +10 -10
  142. package/dist/assets/{ReviewOverlay-DGYnF07r-DCUh9U9_.js → ReviewOverlay-Bora7h_H-BkZGLYKt.js} +10 -10
  143. package/dist/assets/{RoleWithToolTip-VlYG_GPv-teaAu_UP.js → RoleWithToolTip-k62RaqAZ-Bav1TewG.js} +7 -7
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-oPFQEE8g-5R4xRxD7.js → ScheduleDetailsFixedAssetsPage-Bd6qfpob-BxOEwKtI.js} +8 -8
  145. package/dist/assets/{ScheduleDetailsPage-BdBgJEAl-DzgQbYnG.js → ScheduleDetailsPage-scOS36lS-CAMrRW5Y.js} +4 -4
  146. package/dist/assets/{ScheduleSequenceTable-Ncft3mZN-B-_JYZVo.js → ScheduleSequenceTable-BIhbFnjb-DCpkIU0H.js} +51 -51
  147. package/dist/assets/{ScreenRoutes-D25ajt3P.js → ScreenRoutes-C1ZbXccz.js} +35 -35
  148. package/dist/assets/{SetUpAccountSection-BrYiljyO-CSo_3my8.js → SetUpAccountSection-ehZfUFEf-BgFNCBNu.js} +17 -17
  149. package/dist/assets/{SetUpDefaultSection-B361ojb9-NxiVWfIP.js → SetUpDefaultSection-DnYtx3XN-CNoT73Ow.js} +16 -16
  150. package/dist/assets/{SignIn-B_-FUZwZ-CHisArfT.js → SignIn-k9MFplB1-eud7vdJb.js} +14 -14
  151. package/dist/assets/{SignInScreen-Uf5HkVEL.js → SignInScreen-CqP6hQef.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-XbjqwHXx-D5vMfDvw.js → SpendManagementListViewPage-B11exjM8-CE2MaiYn.js} +12 -12
  153. package/dist/assets/{SpendManagementPerTabPage-D-4W-Ru9-Bl38LM1S.js → SpendManagementPerTabPage-ByXU-omE-DWwC2JuF.js} +34 -34
  154. package/dist/assets/{SpendManagementSection-B7pMvj7Z-nyvHm07T.js → SpendManagementSection-CAewVL0Z-GsJe1fhq.js} +8 -8
  155. package/dist/assets/{SpendMgmtSetupAccountSection-DdUs96r9-IQ5cFujk.js → SpendMgmtSetupAccountSection-BY2LT0qv-CgVflLnR.js} +11 -11
  156. package/dist/assets/StatementItem-BJoMxmJY-BVhb_2i3.js +31 -0
  157. package/dist/assets/StatementsPage-C_O76V3t-DoehdMaa.js +58 -0
  158. package/dist/assets/{StatusSwitcher-DGOwA8qO-CCwch543.js → StatusSwitcher-39NGxygM-8g3Kr8Ie.js} +5 -5
  159. package/dist/assets/{SubTabSwitcher-Be-6o_mE-DpR4kDa2.js → SubTabSwitcher-BcL8UKX8-CtPS6-C1.js} +1 -1
  160. package/dist/assets/{SummaryCard-CD1amg78-D7-gBvS2.js → SummaryCard-VT7YJ6jy-DeCNM95f.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-C2UYhTtL-BS6ZhKAX.js → TaskManagementPage-p-3BLn0_-TCdTn4Be.js} +30 -30
  162. package/dist/assets/{TimeRangeSwitcher-DxAmlHGP-DP9j4Y0h.js → TimeRangeSwitcher-Cjs5znYy-Dn_2XKTn.js} +2 -2
  163. package/dist/assets/{TimeframeSwitcher-ndYSpUa6-JIaAkiT0.js → TimeframeSwitcher-BJrFD5A7-CapG6nwB.js} +5 -5
  164. package/dist/assets/TimeframeSwitcherWithToggle-CrWRqA_S-Bvp4VoyC.js +31 -0
  165. package/dist/assets/{TopExCard-CcpyunQ3-D5X1AP2D.js → TopExCard-DAwlJbbc-Ch08mChi.js} +5 -5
  166. package/dist/assets/{TopExDetailPage-C_B0c8iP-DT-CcqaQ.js → TopExDetailPage-BgUJytuV-V8CGIoou.js} +1 -1
  167. package/dist/assets/{TransactionDetailPage-DVPGLobu-Cg4nJAIA.js → TransactionDetailPage-C8yIuCvF-lo-j_-eB.js} +20 -20
  168. package/dist/assets/{TransactionList-CvGyadHZ-CzScKnWB.js → TransactionList-DG-KZUjZ-CV9wox71.js} +12 -12
  169. package/dist/assets/{TransactionListBig-BeZjYsO0-BowcwIlG.js → TransactionListBig-iGiOjwVK-Dc9vBqnr.js} +16 -16
  170. package/dist/assets/{TransactionListPage-C8h-sa3V-BI2zdvtJ.js → TransactionListPage-C9Z_z4mC-UBhyOHuK.js} +3 -3
  171. package/dist/assets/{TransactionVendorDetailPage-BcV8h3xR-Br1j6Ll5.js → TransactionVendorDetailPage-5uo1FPul-BOddX9Sk.js} +5 -5
  172. package/dist/assets/{TransferDrawerPage-B_AJgZWp-Yyh6CuZY.js → TransferDrawerPage-BKzo-4Wj-D-t2nTop.js} +32 -32
  173. package/dist/assets/{TreasuryOverviewPage-kG1jZF28-DHtmQ0RS.js → TreasuryOverviewPage-C6kTg0L3-DDk4OCh2.js} +32 -32
  174. package/dist/assets/{TreasuryPromoPage-Dy3ExIiy-gkUV5xBf.js → TreasuryPromoPage-CAS0pdES-D8v7EASC.js} +11 -11
  175. package/dist/assets/{TreasurySetupPage-Cjr-dp6O-BEQP_lhU.js → TreasurySetupPage-CcLiQWOT-B7yrMsSh.js} +2 -2
  176. package/dist/assets/TreasuryStatementsPage-Dm-3SPtA-C2bOR_YK.js +58 -0
  177. package/dist/assets/{TreasuryTaxLetterPage-CWLf1Zxq-DbsCHDsw.js → TreasuryTaxLetterPage-0RsINpqA-DJWdIr-H.js} +7 -7
  178. package/dist/assets/{TreasuryTransferOrReviewPage-C5F3fmoI-DNtPmYKq.js → TreasuryTransferOrReviewPage-C_4CQVIe-BOkn6wNn.js} +21 -21
  179. package/dist/assets/{TrendChart-CtjfgQ9g-DPYHbjBV.js → TrendChart-CkPRxjLa-ClAmXRdb.js} +3 -3
  180. package/dist/assets/{TrendWithTransactions-SmcM2UIp-DTMdisoH.js → TrendWithTransactions-DJYMqIOI-wnxxIB4C.js} +2 -2
  181. package/dist/assets/{UncategorizedAccountsMappingPage-CXoadwja-BcH1WDHa.js → UncategorizedAccountsMappingPage-BapLceo--CgdItlB5.js} +15 -15
  182. package/dist/assets/{UnitIntegrationPage-wYQVQqP7-xfmP0ZaV.js → UnitIntegrationPage-C9zNzH3B-gVQYcxZB.js} +3 -3
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-8_c7UpvB-CAx-wuMo.js → UploadAdditionalDocumentOverlay-BNaV6i2S-BuH4CmLJ.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-DtNSOXbK-CcK6Drxw.js → Vendor2FAPopup-_Cn9FJ7D-cKAPYes9.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-zNbGGe4q--raVyiyg.js → VendorACHDetailsPage-B1vHY6rG-VScnw-FL.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-Cv-MG9iR-YJohQISw.js → VendorDetailPage-Dkl7AlIZ-5XPeaOqt.js} +9 -9
  187. package/dist/assets/{VendorDomesticWireDetailsPage-BkqtoYAw-CueaVPRI.js → VendorDomesticWireDetailsPage-Co8Uc_OS-I5CTiy_-.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-DYJudj3c-DtjWMkp6.js → VendorFiling1099EditablePage-M0gQJLkE-DzG8EXIY.js} +7 -7
  189. package/dist/assets/{VendorFirstReviewPage-BNFIAB9n-CRV8hhmi.js → VendorFirstReviewPage-Bte87pqn-DeG8_h9I.js} +46 -46
  190. package/dist/assets/{VendorInternationalWireDetailsPage-DHa8JoNl-CB0R2wQi.js → VendorInternationalWireDetailsPage-DdfkKEFx-sHwHhQTJ.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-a5nSOMXK-ZmWLuE7C.js → VendorInternationalWireSwiftDetailsPage-CtQifsRT-BsMO6lfl.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-DwDGbjey-BapIbdiL.js → VendorsAccountsSection-CxyObm3T-BgRsSYOY.js} +13 -13
  193. package/dist/assets/{WarningsDrawerPage-CaSTx_8h-06WKhZXP.js → WarningsDrawerPage-D5nPLGJh-5sMWIR75.js} +5 -5
  194. package/dist/assets/{ZeniAccountDetailPage-BSOpxKiJ-By7m3S08.js → ZeniAccountDetailPage-CKS9mcn3-BBMilYy5.js} +34 -34
  195. package/dist/assets/{ZeniAccountListViewPage-CZM1ODEE-Cc-U9qmc.js → ZeniAccountListViewPage-CORl7azj-By_13T1c.js} +18 -18
  196. package/dist/assets/{ZeniAccountNavBarPieces-CjNAr1N9-RsiaZAh1.js → ZeniAccountNavBarPieces-88z7CFPI-kEgSzIRo.js} +1 -1
  197. package/dist/assets/{ZeniAccountPromoPage-PcyNGe7A-D6DBVv8X.js → ZeniAccountPromoPage-Car62P8Q-Bdd82q-1.js} +11 -11
  198. package/dist/assets/{ZeniAccountSetupPage-DhJ2zm6A-DdBOSG23.js → ZeniAccountSetupPage-B5uOzSDL-B_JyTC9y.js} +5 -5
  199. package/dist/assets/{ZeniCopyright-CSUSID-7-D956iA9P.js → ZeniCopyright-BcMyDAdQ-B3RH4DR7.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-DPl7porw-DozHMrHt.js → ZeniTransferAmountSlider-Css3_ojA-DueYRoaC.js} +1 -1
  201. package/dist/assets/analytics-CBL_L82S.js +7 -0
  202. package/dist/assets/{analyticsHelper-D6tpOug6.js → analyticsHelper-DsBQxHgn.js} +1 -1
  203. package/dist/assets/{analyticsHelper-Cex5LOMD-C4BwPSdy.js → analyticsHelper-X-GRY9hH-MGNhQKMp.js} +1 -1
  204. package/dist/assets/{chartTypes-Df8u7la0-Brzx7O5o.js → chartTypes-C5XZr0AA-C8J0rp67.js} +1 -1
  205. package/dist/assets/{commonDimensions-OJhakpB_-DiUt9j4S.js → commonDimensions-DBedC6J7-SSiZbAOc.js} +1 -1
  206. package/dist/assets/{detailCommon-4wAnHr6n-Bingj457.js → detailCommon-CIjWXBC2-K-4pS5u-.js} +6 -6
  207. package/dist/assets/{downloadPdf-D02UNVHu-C-bMa4LF.js → downloadPdf-B21yi0DO-ZMTPTkC7.js} +1 -1
  208. package/dist/assets/{index-CKO1Ko85.js → index-ji6aa7AC.js} +3296 -3257
  209. package/dist/assets/{mapLoadingInProgressToTreeNode-HsZI6Bdg-p8sExms0.js → mapLoadingInProgressToTreeNode-CPDYMovk-DjQU3oZy.js} +1 -1
  210. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-B9KMXCTi-Cj1lgpjj.js → mapSectionWithAcOnlyToTreeNode-XPbCtxen-DAUQseD_.js} +1 -1
  211. package/dist/assets/{mapSpacerToTreeNode-BIZ_jwXi-CLKBLO3f.js → mapSpacerToTreeNode-CJ13HyFX-D7QAWDUL.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-BOFrVlzJ-F8pebh8y.js → mapTimeframeBalancesToTreeNode-D8UCPznF-C5zbYkry.js} +1 -1
  213. package/dist/assets/{play-icon-BDRoJBSV-BPJEHfZz.js → play-icon-D7s0M2vV-zKqEqpdy.js} +3 -3
  214. package/dist/assets/{toCOABalancesWithID-RJhTPgAt-CfuoDOsP.js → toCOABalancesWithID-CWk-QcRU-Db3b2mU1.js} +1 -1
  215. package/dist/assets/{toChartData-K68FB3Iy-Ds_boAOT.js → toChartData-BMMsnVqz-Cij6F0sj.js} +1 -1
  216. package/dist/assets/{treasuryColorHelper-DjASf5JB-Clmu45xq.js → treasuryColorHelper-CDRG_Dxk-BbsHEkM1.js} +1 -1
  217. package/dist/assets/{uploadAttachment-D7Rju7jS-BbgF_xIh.js → uploadAttachment-5FffgOcW-DgFFpcCF.js} +25 -25
  218. package/dist/assets/{uploadReceipts-Buvz7DfG-BpsqF6VB.js → uploadReceipts-Buvz7DfG-Dl3fgjOi.js} +1 -1
  219. package/dist/index.html +1 -1
  220. package/package.json +4 -4
  221. package/dist/assets/AccountInfoPageContent-CmRpq4eF-DDfUCfgt.js +0 -149
  222. package/dist/assets/ApprovalRulesSettingsPage-1AQm08qF-DSSyDlgY.js +0 -47
  223. package/dist/assets/ArAgingChart-UnY648RV-BOEQqhql.js +0 -24
  224. package/dist/assets/BankConnectionsSettingsPage-BG99PtV_-CepU1gQp.js +0 -379
  225. package/dist/assets/ChargeCardDetailPage-DYGcQs0M-NBwd05Wz.js +0 -1447
  226. package/dist/assets/ChargeCardListPage-CNrRrNbd-Db66aANm.js +0 -355
  227. package/dist/assets/ChargeCardPromoPage-DZ1f8Sus-CBXiRWXX.js +0 -175
  228. package/dist/assets/CheckDepositDrawerPage-CbsRUWnx-CNd5wiU_.js +0 -206
  229. package/dist/assets/CustomerOnboardingContainerPage-BmFfAaO1-B6jyQS1g.js +0 -1
  230. package/dist/assets/Dashboard-BLIK_ZsD-DLzG8p7Y.js +0 -778
  231. package/dist/assets/HelpButton-DXFYhUL5-DrvcpPIO.js +0 -28
  232. package/dist/assets/InvitePeoplePage-By6TWsVZ-DAOsQYGZ.js +0 -12
  233. package/dist/assets/NotificationsListConfig-Cc3hEei0-CMelH0ma.js +0 -1
  234. package/dist/assets/PortfolioAllocationFormPage-StMDGc2G-CenaxepD.js +0 -207
  235. package/dist/assets/StatementItem-B4DJRmwy-NoG4m8iV.js +0 -31
  236. package/dist/assets/StatementsPage-DzFEOmFA-oaH9OYzs.js +0 -58
  237. package/dist/assets/TimeframeSwitcherWithToggle-B3bxr-_s-28Eu1Q5j.js +0 -31
  238. package/dist/assets/TreasuryStatementsPage-CzOSIKGQ-BjAps3jh.js +0 -58
  239. package/dist/assets/analytics-DThoELaW.js +0 -7
@@ -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-CKO1Ko85.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-DGOwA8qO-CCwch543.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ue=te.getLocalizedStrings().spendManagement.billPay.billsByTabs.header,_e={key:"name",value:ue.name,sortOrder:"ascending",width:new h(p[5],p[5])},Le={key:"invoiceDate",value:ue.invoiceDate,sortOrder:"ascending",width:new h(20,20)},di={key:"dueDate",value:ue.dueDate,sortOrder:"ascending",width:new h(20,20)},Qe={key:"dueDate",value:ue.paymentDate,sortOrder:"ascending",width:new h(20,20)},Ze={key:"status",value:ue.status,sortOrder:"ascending",width:new h(18,18)},ci={key:"paymentMethod",value:ue.paymentMethod,sortOrder:"ascending",width:new h(18,18)},ze={key:"amount",value:ue.amount,sortOrder:"ascending",width:new h(10,10)},be=[_e,Le,di,Ze,ze],pi=[_e,Le,Qe,Ze,ze],mi=[_e,Le,Qe,Ze,ze],ui=[_e,Le,Qe,ci,ze],ye={headerLastColumnTopPadding:new h(p[0],p[4]),headerLastColumnRightPadding:new h(p[3],p[11]),headerLastColumnBottomPadding:new h(p[0],p[4]),headerLastColumnLeftPadding:new h(p[0],p[4]),headerHeight:new h(xt,wt)};function hi({companyNameSticky:e,currentTab:n,onColumnSortConfigChanged:c,sortConfig:l}){const d=Ue(),g=Z(),[b,x]=P.useState(ki(n));P.useEffect(()=>{const a=[...b];for(const r of a)r.key===l.sortKey?r.sortOrder=l.sortOrder:r.sortOrder="ascending";x(a)},[l.sortKey,l.sortOrder]);const f=(a,r)=>{let $=r;l.sortKey===a&&($=r==="ascending"?"descending":"ascending"),c?.(a,$)},u=b.find(a=>a.key===l.sortKey)??b[0],y=a=>b.find(r=>r.key===a)?.value??"",m=b.map(a=>a.key),w=te.getLocalizedStrings().spendManagement.billPay.billsByTabs;return g==="small"?t.jsxs(tt,{windowSize:g,companyNameSticky:!1,children:[t.jsxs(xi,{children:[t.jsx(fi,{children:t.jsx(wi,{})}),t.jsx(gt,{title:w.sortBy,placeholder:w.sortBy,pickerValues:m,valueToLabel:y,selectedValue:l.sortKey,onPickerSelectionChanged:a=>{f(a,"ascending")},optionTextStyle:je.smallRegular,titleTextStyle:je.smallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.background})]}),t.jsxs(Si,{onClick:()=>f(u.key,u.sortOrder),"data-testid":ee("bill-pay-list-header-mobile",l.sortKey),children:[t.jsx(se,{children:u.value}),t.jsx(it,{sortDataValue:l.sortKey,headerdata:u,children:t.jsx(ot,{})})]})]}):t.jsx(tt,{companyNameSticky:e,windowSize:g,children:b.map(a=>t.jsxs(yi,{companyNameSticky:e&&a.key==="name",sortDataValue:l.sortKey,actualDataValue:a.key,wrapperWidth:a.width,windowSize:g,children:[t.jsxs(vi,{onClick:()=>f(a.key,a.sortOrder),"data-testid":ee("bill-pay-list-header",l.sortKey),children:[t.jsx(se,{children:a.value}),t.jsx(it,{sortDataValue:l.sortKey,headerdata:a,children:t.jsx(ot,{})})]}),t.jsx($i,{sortDataValue:l.sortKey,windowSize:g,isVisible:l.sortKey===a.key&&a.key!=="dueDate",children:t.jsx(bi,{onClick:()=>f("dueDate","ascending"),"data-testid":ee("bill-pay-list-header-sort-close",l.sortKey)})})]},a.key))})}const gi=jt.memo(hi),tt=o(se)`
1
+ import{a as Et,c3 as Mt,M as te,l as W,X,kM as Ft,j as t,F as Nt,bO as Ot,bQ as Vt,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,d as Zt,bs as Z,be as Qt,a5 as Xt,C as h,u as Ue,fz as Jt,kN as ei,g as Q,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-ji6aa7AC.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-39NGxygM-8g3Kr8Ie.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)},Xe={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,Xe,ze],pi=[_e,Le,Qe,Xe,ze],mi=[_e,Le,Qe,Xe,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=X(),[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=X(),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(D=>Ze(D)),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(Mi,{isProcessing:g,children:t.jsx(Fi,{})})}):null]}),t.jsx(Di,{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(Ii,{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};
@@ -82,7 +82,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
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};
@@ -161,13 +161,13 @@ 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
161
161
  color: ${e=>e.theme.colors.hero};
162
162
  justify-content: flex-end;
163
163
  width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
164
- `,Ii=o.div`
164
+ `,Di=o.div`
165
165
  color: ${e=>e.theme.colors.grey1};
166
166
  overflow: hidden;
167
167
  text-overflow: ellipsis;
168
168
  width: 90%;
169
169
  white-space: nowrap;
170
- `,Di=o(U)`
170
+ `,Ii=o(U)`
171
171
  display: flex;
172
172
  color: ${e=>e.color};
173
173
  height: 20px;
@@ -206,11 +206,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
206
206
  position: relative;
207
207
  top: 1px;
208
208
  color: ${e=>e.theme.colors.grey1};
209
- `,Fi=o.div`
209
+ `,Mi=o.div`
210
210
  display: flex;
211
211
  align-items: center;
212
212
  color: ${e=>e.isProcessing?e.theme.colors.grey2:e.theme.colors.primary};
213
- `,Mi=o(Tt)`
213
+ `,Fi=o(Tt)`
214
214
  width: 12px;
215
215
  height: 12px;
216
216
  color: inherit;
@@ -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:Oe,space:ve}}}=te.getLocalizedStrings(),Oi=({transactionDetail:e,tagStatus:n,isProcessing:c,isSelected:l,isBillPayCommentingEnabled:d,bulkSelectFormId:g,isBulkSelectionLimitReached:b,isSelectionMode:x,reportTitleAdditionalInfo:f,lowBalanceAlert:u,approvers:y,deletionAdditionalInfo:m,paidAdditionalInfo:w,showLowBalanceTooltip:a,onTransactionRowClick:r})=>{const $=X(),s=Ke(),k=qe(),B=He().analytics,L=`dashboard_${s.currentTenant?.companyId}`,{threads:j,isLoading:v}=Ge({application:"dashboard",companyId:s.currentTenant?.companyId,tab:"bill",entityId:e.id,isGlobalComment:!1},"both",!1),z=P.useMemo(()=>j.filter(O=>O.resolved===!1),[j]),K=O=>{O.stopPropagation(),k?.sharedFunctions?.subtreeFunctions.openAllThreadsDrawer({roomId:L,companyId:s.currentTenant?.companyId??Oe,companyName:s.currentTenant?.companyName??Oe,entityType:"bill.details",entityId:e.id}),B.trackCommentActivity("bill","clicked",s.currentTenant?.companyName??Oe,s.controllersList.controllers.map(q=>Ze(q)),void 0,void 0,"comment on field")},{getValues:E,setValue:S}=yt(),D=W.isAwaitingMarkAsPaid(e.billPayInfo.billPaymentStatus.code)?bt(e.createdByUser):Ce(y),J=e.vendor?.name!=null?e.vendor.name:e.candidateVendorName!=""?e.candidateVendorName:le.newBillTitle,ie=()=>`${le.recurringBill.recurring} ${e.recurringBillInstance}/${e.recurringBillConfig?.totalPaymentCycles}`,re=E(g),he=P.useCallback(()=>{!b&&e.bulkSelectInfo?.isSelectableForBulkAction&&!l&&S(g,[...re,e.id])},[g,b,l,S,e.bulkSelectInfo?.isSelectableForBulkAction,e.id,re]),Ee=P.useCallback(()=>{he()},[he]),ge=P.useCallback(O=>{O.stopPropagation(),O.cancelable&&O.preventDefault(),x?he():r(e.id)},[he,x,r,e.id]),Me=Ct({onLongPress:Ee},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(Vi,{windowSize:$,statusCode:n?.code??"",isSelected:l,isProcessing:c,children:[t.jsx(Wi,{onClick:ge,...Me,"data-testid":ee("bill-pay-trxn-row-small",e.id),children:t.jsxs(Ui,{children:[t.jsxs(Xi,{children:[t.jsxs(Ki,{children:[t.jsxs(qi,{children:[t.jsx(Hi,{windowSize:$,children:J}),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(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(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:O=>O.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&&D.length>0?D.length>1?t.jsx(Z,{title:`${le.byText}${ve}${D.join(`${ve}${le.orText}${ve}`)}`,placement:"bottom-start",children:t.jsx(Te,{children:`${le.byText}${ve}${D[0]}${le.dots}`})}):t.jsx(Te,{children:`${le.byText}${ve}${D[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]})},Vi=o.div`
225
225
  display: flex;
226
226
  margin-bottom: ${i.sp3};
227
227
  background-color: ${e=>e.isProcessing?"transparent":e.theme.colors.grey5};
@@ -233,7 +233,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
233
233
  box-shadow: ${e=>e.isProcessing?"none":e.theme.mode==="dark"?`${Q.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${Q.dropShadowNormalLight}`};
234
234
  border-radius: ${i.sp2};
235
235
  cursor: ${e=>e.isProcessing?"initial":"pointer"};
236
- ${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;
@@ -336,7 +336,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
336
336
  justify-content: center;
337
337
  `,Te=o(U)`
338
338
  color: ${e=>e.theme.colors.grey1};
339
- `,Zi=o.div`
339
+ `,Xi=o.div`
340
340
  display: flex;
341
341
  flex-direction: column;
342
342
  `,Ji=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,De={key:"reportName",value:ae.name,sortOrder:"ascending",width:new h(30,30)},Ie={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=[De,{key:"submittedOn",value:ae.created,sortOrder:"ascending",width:new h(20,20)},Ie,Ae,Re],lo=[De,{key:"submittedOn",value:ae.submitted,sortOrder:"ascending",width:new h(20,20)},Ie,Ae,Re],ro=[De,{key:"submittedOn",value:ae.paymentDate,sortOrder:"ascending",width:new h(20,20)},Ie,Ae,Re],so=[De,{key:"submittedOn",value:ae.paidOn,sortOrder:"ascending",width:new h(20,20)},Ie,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=X(),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=X(),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(D=>D.resolved===!1),[z]),S=D=>{D.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=>Ze(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(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(Ve,{children:`${G.byText} `+j[0]+`${G.dots}`})}):t.jsx(Ve,{children:`${G.byText} `+j[0]}):null,x!=null?t.jsx(Ve,{children:x}):null]}),t.jsx(To,{windowSize:y,responsiveWidth:ce[4].width,children:Be("0,0[.]00",e.amount)})]})}),f&&E.length>0?t.jsx(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};
@@ -442,7 +442,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
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};
@@ -535,7 +535,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
535
535
  flex-direction: column;
536
536
  align-items: flex-start;
537
537
  justify-content: center;
538
- `,Oe=o(U)`
538
+ `,Ve=o(U)`
539
539
  position: relative;
540
540
  top: 1px;
541
541
  color: ${e=>e.theme.colors.grey1};
@@ -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)},V=te.getLocalizedStrings().spendManagement.reimbursement.reimbursementByTabs,_o=({reimbursementDetail:e,tagStatus:n,currentTab:c,isProcessing:l,isSelected:d,bulkSelectFormId:g,isBulkSelectionLimitReached:b,isSelectionMode:x,reportTitleAdditionalInfo:f,date:u,approvers:y,deletionAdditionalInfo:m,onTransactionRowClick:w})=>{const a=X(),{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(Do,{children:[t.jsxs(Io,{children:[t.jsxs(Ro,{children:[t.jsx(Eo,{windowSize:a,children:e.reportTitle??V.newReimbursementTitle}),f!=null&&t.jsx(Mo,{children:`${V.byText} ${f?.firstName} ${f?.lastName}`})]}),t.jsxs(No,{children:[B[1].value+": ",u]}),s.length>1?t.jsx(Z,{title:V.reimbursementType.both,placement:"bottom-start",display:"flex",children:t.jsxs(ct,{children:[V.reimbursementType.type+": ",V.reimbursementType.titleForBoth]})}):t.jsxs(ct,{children:[V.reimbursementType.type+": ",V.reimbursementType[s[0]]]})]}),t.jsxs(Ao,{children:[t.jsx(Fo,{children:Be("0,0[.]00",e.amount)}),t.jsxs(Oo,{children:[n!==void 0?t.jsx(Vo,{className:"statusTag",color:n.color,bgColor:n.bgColor,borderColor:n.borderColor,children:n.value??V.hyphenText}):t.jsx(t.Fragment,{children:V.hyphenText}),y!==void 0&&k.length>0?k.length>1?t.jsx(Z,{title:`${V.byText} `+k.join(` ${V.orText} `),placement:"bottom-start",children:t.jsx(We,{style:{marginLeft:"auto"},children:`${V.byText} `+k[0]+`${V.dots}`})}):t.jsx(We,{style:{marginLeft:"auto"},children:`${V.byText} `+k[0]}):null,m!=null?t.jsx(We,{children:m}):null]})]})]})})})},Lo=o.div`
551
551
  display: flex;
552
552
  margin-bottom: ${i.sp3};
553
553
  background-color: ${e=>e.theme.colors.grey5};
@@ -559,7 +559,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
559
559
  box-shadow: ${e=>e.isProcessing?"none":e.theme.mode==="dark"?`${Q.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${Q.boxShadowElevation}`};
560
560
  border-radius: ${i.sp2};
561
561
  cursor: ${e=>e.isProcessing?"initial":"pointer"};
562
- ${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};
@@ -604,11 +604,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
604
604
  `,zo=o.div`
605
605
  display: flex;
606
606
  width: 100%;
607
- `,Io=o.div`
607
+ `,Do=o.div`
608
608
  display: flex;
609
609
  width: 100%;
610
610
  justify-content: space-between;
611
- `,Do=o.div`
611
+ `,Io=o.div`
612
612
  display: flex;
613
613
  flex-direction: column;
614
614
  `,Ao=o.div`
@@ -630,9 +630,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
630
630
  overflow: hidden;
631
631
  text-overflow: ellipsis;
632
632
  max-width: ${e=>e.windowSize==="small"?`${kt}px`:"initial"};
633
- `,Fo=o(U)`
633
+ `,Mo=o(U)`
634
634
  color: ${e=>e.theme.colors.grey1};
635
- `,Mo=o(N)`
635
+ `,Fo=o(N)`
636
636
  display: flex;
637
637
  margin-left: auto;
638
638
  color: ${e=>e.theme.colors.hero};
@@ -646,14 +646,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
646
646
  box-sizing: border-box;
647
647
  display: flex;
648
648
  align-items: center;
649
- `,Vo=o.div`
649
+ `,Oo=o.div`
650
650
  color: ${e=>e.theme.colors.hero};
651
651
  box-sizing: border-box;
652
652
  display: flex;
653
653
  flex-direction: column;
654
654
  `,We=o(U)`
655
655
  color: ${e=>e.theme.colors.grey1};
656
- `,Oo=o(U)`
656
+ `,Vo=o(U)`
657
657
  display: flex;
658
658
  color: ${e=>e.color};
659
659
  height: 20px;
@@ -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,F=Ko.bulkActions,M=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=X(),z=S=>{const D=y==="bill_pay"?e[S].vendor?.name??e[S].candidateVendorName??M:e[S].reportTitle??M;return ei(D,v)},K=P.useRef(null);P.useEffect(()=>{K.current?.resetAfterIndex(0)},[v,K,c,l]);const E=P.forwardRef((S,D)=>{const{children:J,style:ie,...re}=S;return t.jsx(bn,{ref:D,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!=M?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:D})=>t.jsx(Ht,{ref:K,height:S,itemCount:y==="bill_pay"||y==="reimbursement"?1:e.length,innerElementType:E,itemSize:z,estimatedItemSize:Yt,itemKey:J=>e[J].id,width:D,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:D,removeAllTransactionsFromBulkActionList:J,onProceedForBulkActionClick:ie})=>{const re=Et({defaultValues:{bulkSelectIds:s},values:{bulkSelectIds:s}});P.useEffect(()=>{const _=re.watch((I,{name:C})=>{C!=null&&I!=null&&Mt(()=>he(C,I))});return()=>{_.unsubscribe()}});const he=async(_,I)=>{if(_===me){let C=[];if(I[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=I[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=I[me];D?.(C)}},Ee=()=>{k.includes("cancel")?It():Rt()},ge=X(),[Me,O]=P.useState(!1),[q,Fe]=P.useState({type:M,title:M,description:M,primaryButtonText:M,secondaryButtonText:M});P.useEffect(()=>{const _=Ft(d,u,m);z==="Completed"&&_!=null&&S?.trackPageLoaded(_,m==="bill_pay"?"Bills":"Reimbursements")},[S,d,u,m,z]);const zt=_=>{v(_)},Dt=P.useCallback(()=>{const{title:_,description:I}=ln(m,s.length,d,$);if(Fe({type:"delete",title:_,description:I,primaryButtonText:T.common.texts.confirm,secondaryButtonText:T.common.texts.close}),m==="bill_pay"){const C=e.filter(oe=>s.includes(oe.id)),A=W.getBillListUniqueType(C);S?.trackBillPayBulkDeleted(s.length,d,u,A)}else{const C=e.filter(oe=>s.includes(oe.id)),A=W.getRemiListUniqueType(C.map(oe=>oe.reimbursementTypesIncluded));S?.trackReimbursementBulkDeleted(s.length,d,u,A)}O(!0)},[m,S,$,u,d,e,s]),It=P.useCallback(()=>{const{title:_,description:I}=nn(m,s.length);Fe({type:"cancel",title:_,description:I,primaryButtonText:T.common.texts.confirm,secondaryButtonText:T.common.texts.close}),O(!0)},[m,s.length]),At={onOkClick:_=>{if(O(!1),m==="bill_pay"){const I=e.filter(A=>s.includes(A.id)),C=W.getBillListUniqueType(I);S?.trackBillPayBulkPopupConfirm(q.type,d,u,C)}else{const I=e.filter(A=>s.includes(A.id)),C=W.getRemiListUniqueType(I.map(A=>A.reimbursementTypesIncluded));S?.trackReimbursementBulkPopupConfirm(q.type,d,u,C)}q.type==="delete"?ie?.("delete",_):ie?.("cancel",_)},onCancelClick:()=>{J?.(),O(!1),Fe({type:M,title:M,description:M,primaryButtonText:M,secondaryButtonText:M})}},Rt=P.useCallback(()=>{if(m==="bill_pay"){const _=e.filter(C=>s.includes(C.id)),I=W.getBillListUniqueType(_);S?.trackBillPayBulkSelection(s.length,d,u,I)}else{const _=e.filter(C=>s.includes(C.id)),I=W.getRemiListUniqueType(_.map(C=>C.reimbursementTypesIncluded));S?.trackReimbursementBulkSelection(s.length,d,u,I)}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}),Me?t.jsx(Ot,{titleComponent:t.jsx(Wt,{children:q.title}),descriptionComponent:t.jsx(Vt,{children:q.description}),primaryButtonText:q.primaryButtonText,proceedButtonVariant:q.type==="delete"?"danger":"primary",secondaryButtonText:q.secondaryButtonText,action:At,isNotesIncluded:d!=="draft",isEditPopup:!0}):null,s.length>0?t.jsx(Ut,{helperContainerStyle:ge==="small"?{margin:`${i.sp5} ${k.includes("delete")&&Je?i.sp7:i.sp0} ${i.sp2} ${i.sp0}`}:{},showPrimaryButton:Je,primaryBtn:{label:en(m,k,s.length),isLoading:q.type!=="delete"&&B==="In-Progress",isDisabled:q.type==="delete"&&B==="In-Progress",type:"submit",style:tn(k)},cancelBtn:{label:T.common.texts.goBack,isDisabled:B==="In-Progress",onClick:J,style:on(k,ge)},leftSideComponent:Xo(s.length,a,m,ge),rightSideComponent:k.includes("delete")?Jo(s.length,q.type==="delete"&&B==="In-Progress",Dt,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=X(),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:Zo(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(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=X()==="small"?Oi:Ti,m=ii(e,n),{bulkProcessingDetail:w}=e,a=W.isBulkProcessing(w?.type),r=()=>{const B=e.billPayInfo.outsideZeniTransactionPaymentMode;if(B==null||B==="other")return;const L=_t.billDetails.paymentOutsideZeni.paymentModeOptions.find(j=>j.value===B)?.label;return`${T.common.via} ${L}`},$=f&&e.billPayInfo.stage.code==="scheduled"&&!e.isDeleted&&e.totalAmountWithFeesInUSD!=null?oi(e.totalAmountWithFeesInUSD,e.withdrawFrom,e.billPayInfo.paymentDate):void 0,s=ni(e.billPayInfo,n,c,e.isDeleted,e.dueDate),k=$!=null&&s?.code!=="failed"&&s?.code!=="processing"&&s?.code!=="cancelled"&&s?.code!=="returned"&&s?.code!=="rejected"&&s?.code!=="paid";return t.jsx(Lt,{children:t.jsx(y,{reportTitleAdditionalInfo:m,transactionDetail:e,isBillPayCommentingEnabled:b,isSelected:l.includes(e.id),isProcessing:a,isBulkSelectionLimitReached:l.length===g,isSelectionMode:x,bulkSelectFormId:d,tagStatus:s,approvers:e.isDeleted===!0?void 0:ht(e,n),deletionAdditionalInfo:e.isDeleted===!0&&n!=="draft"?ut(e,n):void 0,onTransactionRowClick:a?()=>null:u,paidAdditionalInfo:n==="paid"&&!e.isDeleted?r():void 0,lowBalanceAlert:$,showLowBalanceTooltip:k})})},Yo=({transactionDetail:e,selectedTab:n,isAdmin:c,isShowDeletedReimbursementEnabled:l,isReimbursementCommentingEnabled:d,remisSelectedForBulkAction:g,bulkSelectFormId:b,bulkSelectLimit:x,isSelectionMode:f,onTransactionRowClick:u})=>{const y=X()==="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},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},Xo=(e,n,c,l)=>{const d=c==="bill_pay"?H.bill:F.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(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"?F.popUps.cancel.title.replace("__report__",c>1?F.reports:F.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:F.popUps.cancel.title.replace("__report__",F.reports),description:F.popUps.cancel.description.replace("<_this_>",l).replace("__report__",f).replace("<_it_>",y).replace("<_payment_>",g)}:e==="reimbursement"?{title:F.popUps.cancel.title.replace("__report__",F.report),description:F.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 $=M;e==="bill_pay"?$=H.popUps.delete.title.replace("<_bill_>",r?H.bills:H.bill):$=F.popUps.delete.title.replace("__report__",r?F.reports:F.report);let s=M;return c==="draft"?e==="bill_pay"?s=H.popUps.delete.descriptionDraft.replace("<_this_>",r?g:d).replace("<_bill_>",r?f:u):s=F.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=F.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`
@@ -694,7 +694,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
694
694
  &:hover {
695
695
  color: ${e=>e.theme.colors.primary};
696
696
  }
697
- `,un=o(Zt)`
697
+ `,un=o(Xt)`
698
698
  margin-top: ${i.sp3};
699
699
  color: ${e=>e.theme.colors.hero};
700
700
  `,hn=o.div`
@@ -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-CKO1Ko85.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,d as ke,h as V,a2 as Le,ft as Oe,a5 as Ee}from"./index-ji6aa7AC.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`