@zeniai/web-cockpit-ui 1.14.19-qa → 1.14.20-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 (255) hide show
  1. package/dist/assets/{ACHDetailsPage-BahbefPk-J5el9V8C.js → ACHDetailsPage-CVBRtacz-BEkwx2cM.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-BuQApbEf-GygwxWAV.js → AIPerformancePage-DnOjd2BF-CRXsdl24.js} +32 -32
  3. package/dist/assets/{AccountInfoPage-TD30edES-ayWa9vvt.js → AccountInfoPage-Bt-jShgf-CCHYq--w.js} +2 -2
  4. package/dist/assets/{AccountInfoPageContent-DQJFmREl-DJbEuy4H.js → AccountInfoPageContent-Cc80eQeo-579rUIpL.js} +6 -6
  5. package/dist/assets/AccountLockedInfoModal-B-Hn6_hG-B-4Dg7na.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-D2B9Na3--BOg6bkeN.js → AccountReconDetailsDrawerPage-Bz1Sk2du-CwztkqDE.js} +7 -7
  7. package/dist/assets/{AccountRow-ZcS_RTJN-BR9_rLoN.js → AccountRow-D01C0A0f-QA2NRq7R.js} +20 -20
  8. package/dist/assets/{AccountsPromoCardStack-Bh2D-mXh-Bs4EYM2a.js → AccountsPromoCardStack-DsjFJ8gZ-DjW6RsEa.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-Ds2V5DyG-DVXVjy6o.js → AddAddressForCardDrawer-DnoYIvUp-DRozqjCP.js} +2 -2
  10. package/dist/assets/{AddToWalletPage-DQ_gwAcu-BJUo6mYt.js → AddToWalletPage-BIiW9JxG-D9CD9wND.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-BU_tqV13-BsnkvpaT.js → AgingReportsPage-WazD_3Z7-CoFeaJHD.js} +7 -7
  12. package/dist/assets/{AllUserItems-DBXzXO61-BTwofn85.js → AllUserItems-CTSy4oBh-COmuQZqb.js} +7 -7
  13. package/dist/assets/{ApAgingDetailPage-Crv9EDe5-PAcPKxo5.js → ApAgingDetailPage--NGBXWsy-C8HiqI6Z.js} +3 -3
  14. package/dist/assets/{AppBasePage-BK_b0fFf-CHlalUjf.js → AppBasePage-B5br9UXD-BXEvz6Z3.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-rw39Hn3s-DGkZVDxv.js → AppDrawerContent-vFeMNL3B-anFPhgeB.js} +59 -46
  16. package/dist/assets/{ApprovalRulesSettingsPage-C6jxuvhu-D5ZeFfm2.js → ApprovalRulesSettingsPage-6j7VBBZ6-D1yZE3mH.js} +2 -2
  17. package/dist/assets/{ArAgingChart-DVMlvNTF-ni7r1vai.js → ArAgingChart-BYWN3_Nl-CYX1U_rU.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-CbmOL5tx-DQdpeuHC.js → ArAgingDetailPage-B-hHa8A6-BrQATxNB.js} +1 -1
  19. package/dist/assets/{AttachmentView-BTAMhgXU-BhSl8K4J.js → AttachmentView-C2kWA5X5-XqMuBHHe.js} +2 -2
  20. package/dist/assets/{BankAccountSection-DVO3xzgl-CCZx3rs7.js → BankAccountSection-B20IwpOn-dEqA-3oX.js} +7 -7
  21. package/dist/assets/{BankAccountWarningSection-CQsqUFKg-05XikjyA.js → BankAccountWarningSection-GHO0P0IZ-jfpI3pUb.js} +3 -3
  22. package/dist/assets/{BankConnectionsSettingsPage-CEyhk8v--WB0uUoLR.js → BankConnectionsSettingsPage-Cpg1ObB6-DR3nDiYc.js} +30 -30
  23. package/dist/assets/{BillDetailPage-CP6QCrla-vmmuF3oo.js → BillDetailPage-DOF5ibT6-Bat6GtFx.js} +6 -6
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-Bem5LvtY-mygah7A2.js → BillPayApprovalRuleDetailPage-BI1R1zT_-D9iKVE5j.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DhDaCfQa-DAxnPtHS.js → BillPayApprovalRulesPage-B3x4So_i-B5TxdAS5.js} +7 -7
  26. package/dist/assets/{BillPayPromoPage-BjH9lvnR-DfHFrxb-.js → BillPayPromoPage-BqzH5AIp-Bcp4yJP9.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-X8X9gq1a-Oap0vh__.js → BillPaySetUpPage-DqiNMnRE-abIQ9Tkf.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-CyyR8GW1-k3cgjV3v.js → BillingSettingsPage-BOAAGOLs-CdPqd8Hl.js} +3 -3
  29. package/dist/assets/{BillsBulkReviewDrawerPage-D_xxZjcU-DTZsZg8z.js → BillsBulkReviewDrawerPage-B76xXQJ9-CbXzjgOR.js} +1 -1
  30. package/dist/assets/{BoxItem-BL-UVx2X-Chlftilo.js → BoxItem-DCsIK5bA-DrkhsCS_.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Tr-N_rHo-B5h3rNqu.js → BusinessVerificationPage-hSVDM_Bi-eN7TBacX.js} +7 -7
  32. package/dist/assets/{CardNumberSubText-CNMNL0y--C35fqYUk.js → CardNumberSubText-B_ZdgYVm-CRvH-CRy.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-Cj26I5CB-BotQ-1hR.js → CashbackDetailPage-CNeEt6aE-CsctITKU.js} +16 -16
  34. package/dist/assets/{ChargeCardDetailPage-herJK06r-BTMIHWV-.js → ChargeCardDetailPage-C0a8jqCD-CUfhgRr0.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-LYVKm-0u-bxw-Libg.js → ChargeCardListPage-_3lJqIYP-iewbQ3J2.js} +55 -55
  36. package/dist/assets/{ChargeCardListTable-DxE-nRR4-BZ_zecYA.js → ChargeCardListTable-Kx-_ZAZu-BvnPLhgK.js} +23 -23
  37. package/dist/assets/{ChargeCardPromoPage-LVuaSVsQ-DLq8eZoX.js → ChargeCardPromoPage-CKTkcQdI-B3wD2hqP.js} +5 -5
  38. package/dist/assets/{ChargeCardSetupPage-CWoHclOr-DyydyXV2.js → ChargeCardSetupPage-CGRMFERy-BQ8k2roy.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-DkCHd5c6-cX5JlZ7W.js → ChargeCardStatementsPage-B_7CdyKP-CMTrFXHN.js} +6 -6
  40. package/dist/assets/{ChargeCardUtils-6kq_92Ri-Dli-fqCF.js → ChargeCardUtils-BcwLwgz7-DrE0N0EF.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-N7gGQaMQ-DQdim44v.js → ChaseOverlay-ClcKUdpT-Buerorcp.js} +3 -3
  42. package/dist/assets/{CheckDepositDrawerPage-w7IziUHI-DVFTIQZX.js → CheckDepositDrawerPage-I3siSP2H-BrRdb26D.js} +15 -15
  43. package/dist/assets/{CollapsableReportTable-NSlKGCNZ-DKKIVw3S.js → CollapsableReportTable-ULd7PQST-DRS_mwem.js} +46 -46
  44. package/dist/assets/{CompanyOfficerDetailsSection-C1IpMsWw-D1LJtTPO.js → CompanyOfficerDetailsSection-DLaAmVLG-9U29EMpY.js} +30 -30
  45. package/dist/assets/{CompanyPassportCard-D5gkzDNU-YrDg6jQC.js → CompanyPassportCard-CZQuAyI2-Du4zK6a2.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-6_6yWHxX-CF_r79l3.js → CompanyPassportPage-DqoVJfO--BezYa4q3.js} +1 -1
  47. package/dist/assets/{CompleteProfile-1xeOWkGT-FRaqVJXW.js → CompleteProfile-BJV-xUlM-DoWTiT1k.js} +1 -1
  48. package/dist/assets/ConfettiBurst-D4ga9TRN-DITQey3L.js +1 -0
  49. package/dist/assets/{CreateOrEditVendorPage-DQW4Wobx-Dvll5UZ6.js → CreateOrEditVendorPage-C6efUMJu-BO_oyqIH.js} +9 -9
  50. package/dist/assets/{CreditCardPaymentDrawerPage-BEpQXn9g-ChE1dvw6.js → CreditCardPaymentDrawerPage-26ysDTts-B2nPMyDO.js} +1 -1
  51. package/dist/assets/{CreditCardPaymentPlgSection-BGh2TJeK-iEMZXSJH.js → CreditCardPaymentPlgSection-8NQI5gcx-CtF_TfUM.js} +3 -3
  52. package/dist/assets/{CurrencySelectField-C2if0NUa-5itJjf-l.js → CurrencySelectField-CVNn0XCq-DT36t2lI.js} +4 -4
  53. package/dist/assets/{CustomerOnboardingActivationPage-_zjv9RZY-mJqfERvY.js → CustomerOnboardingActivationPage-D0-sOxDl-Bm2kAKIU.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-DoibuhLN-8rsNTWNZ.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CXApNm6A-nctUkt8D.js → CustomerOnboardingDetailPageSkeleton-B7hkzgkV-BXEF9ppx.js} +8 -8
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-BaBxG1Yn-DVZXklmj.js → CustomerOnboardingNoStepsPage-CD1QldcG-CzeAfya1.js} +2 -2
  57. package/dist/assets/{CustomerOnboardingPage-CWpmMXrh-BXodyMV2.js → CustomerOnboardingPage-DB1gXgdD-CUHFehdd.js} +8 -8
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-CGYRoz3v-DUKyEfgU.js → CustomerOnboardingProductSuitePage-DGMmLmq8-Cbgji3lL.js} +5 -5
  59. package/dist/assets/{Dashboard-Dyt4nvyG-QlqN1FnF.js → Dashboard-CU3UQhxj-VVHJwggZ.js} +230 -230
  60. package/dist/assets/{DashboardReportPage-BSbTlRwW-B1vbOEGw.js → DashboardReportPage-DMdKWPtx-DkAIriFg.js} +1 -1
  61. package/dist/assets/DashboardSidebarBackgroundAnimation-BMEqBAyh-vfJQWz_r.js +12 -0
  62. package/dist/assets/{DepositAccTransactionItem-CuTp6qxI-83UpC9RP.js → DepositAccTransactionItem-C1-JGWD1-BMvGw-zQ.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-CrQrOyrm-SWt9-LCs.js → DepositAccTransactionListPage-CfwhQ7mC-B3prPdix.js} +2 -2
  64. package/dist/assets/{DomesticWireDetailsPage-C5hxxGsr-BGI0Q6wD.js → DomesticWireDetailsPage-D6fDbjcO-DHXj9Zdn.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-B9O7jf-4-DcPl1K2L.js → DownloadOverlay-CsX54puJ-DeWJ_bTZ.js} +6 -6
  66. package/dist/assets/{DrawerPage-Dpd6lRf7-XU_mVF4h.js → DrawerPage-xYwGDHR6-Ch0S05SG.js} +4 -4
  67. package/dist/assets/{EditPeoplePage-C7uOWg9F-XHgvFx-q.js → EditPeoplePage-9SmQtrJz-Cw0-GcjG.js} +6 -6
  68. package/dist/assets/{EditReimbursementDetailPage-BL-W1hPs-Cvem5pvL.js → EditReimbursementDetailPage-EUO0BoRp-EVPPjvHX.js} +57 -57
  69. package/dist/assets/EntityDetailPage-CF6LS35a-CeBa6jKf.js +18 -0
  70. package/dist/assets/{EntitySummarySection-eNxIwvHt-VuusTU29.js → EntitySummarySection-C0gR6pkr-AtoRf1sI.js} +6 -6
  71. package/dist/assets/{ExpenseAutomationOverviewPage-CKBACgsI-CHNuBdnj.js → ExpenseAutomationOverviewPage-B0I8v21w-C1ihD57y.js} +18 -18
  72. package/dist/assets/{ExpenseAutomationPage-LPWPrpwm-dGXlp7Wn.js → ExpenseAutomationPage-BorzJM7G-DFmLOpV0.js} +69 -69
  73. package/dist/assets/{ExpressPayPage-COQrt-KL-C3Su3pc-.js → ExpressPayPage-D0YWItIv-Bvps2LX7.js} +7 -7
  74. package/dist/assets/FeaturePreviewPage-yu8G5cHk-BxkuThqr.js +11 -0
  75. package/dist/assets/{FollowStepsSection-BJFJzQrz-BPLmYjf1.js → FollowStepsSection-DRDFxA8H-Dg1nQMTR.js} +6 -6
  76. package/dist/assets/{GlobalReviewListPage-DDQb-plt-GWioPE-8.js → GlobalReviewListPage-D80yv7U2-CfvcgDlu.js} +13 -13
  77. package/dist/assets/{HelpButton-BT_HyQ5k-L583ynk6.js → HelpButton-D9ONg6cm-CuNxHNm2.js} +2 -2
  78. package/dist/assets/{InformationCardStack-B9E29_zj-oBDdQQV7.js → InformationCardStack-CbKQwtHm-B7yYvAdF.js} +1 -1
  79. package/dist/assets/{InsightsCardStack-7XbkZ-A3-DAJvX00p.js → InsightsCardStack-BWsN9_G2-DemEieR0.js} +1 -1
  80. package/dist/assets/{InsightsSection-DtBq9eII-Dpm_kPOF.js → InsightsSection-WZo-AWJt-DohBwSi_.js} +1 -1
  81. package/dist/assets/{IntegrationsSettingsPage-TjdF0ahh-CLiKNfVQ.js → IntegrationsSettingsPage-BLjSJt9r-6t6Ass9f.js} +6 -6
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-BeSYu2Dm-CzOgaF0W.js → InternationalWireSwiftDetailsPage-BXNDZ1Mk-BO2f4UVV.js} +13 -13
  83. package/dist/assets/{InternationalWireVerificationPage-Ctcaggen-B6mWLRZN.js → InternationalWireVerificationPage-BLgPJ1NJ-CMky3KEh.js} +9 -9
  84. package/dist/assets/{InviteFormPage-DEDBu0OO-CbRBG8oQ.js → InviteFormPage-DPQ4vL9--DIhY9xxd.js} +1 -1
  85. package/dist/assets/{InvitePageListView-BMMOpM9O-CiVYjuPy.js → InvitePageListView-YUKxUGBn-CGJ_yirg.js} +41 -41
  86. package/dist/assets/{InvitePeoplePage-BzPRCgA6-CQ1Opb3h.js → InvitePeoplePage-C3vECRns-DBtYnb-4.js} +4 -4
  87. package/dist/assets/{InvoiceUploadSection-C6Dx8Web-BBk4Ja4L.js → InvoiceUploadSection-Cx6pXJiN-CgRQkeV5.js} +5 -5
  88. package/dist/assets/{IssueChargeCardPage-DWRhiOzj-CcGeSv03.js → IssueChargeCardPage-DZVtocCO-B49QpSq-.js} +33 -33
  89. package/dist/assets/{LabeledAddressValue-CSb0EGEx-CwfHtDm0.js → LabeledAddressValue-BrB2xQYz-B09yXjLA.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-_35LG3OI-C2eHerzm.js +45 -0
  91. package/dist/assets/{LabeledControlledCheckBoxField-rRmtlmRJ-C45YSN-M.js → LabeledControlledCheckBoxField-o0K1dba0-BZipP4yv.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-CTwToXIo-BL-7qWpY.js → LabeledCreatableSingleSelectField-DQwGH21a-D1Rth7u2.js} +7 -7
  93. package/dist/assets/{LabeledDocumentField-sIz4Fhet-BCtWDAeF.js → LabeledDocumentField-CfgzkjDY-CbC276Lv.js} +2 -2
  94. package/dist/assets/{LabeledDropDownFormattedTextField-mOxkCT-G-97yk9rN2.js → LabeledDropDownFormattedTextField-DdaTvUbM-C4uCaUJ3.js} +10 -10
  95. package/dist/assets/{LabeledText-CExeogkg-B87qiJpD.js → LabeledText-Hi4MixDN-n_lfAbe7.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DrloYoze-ChdXh6tK.js → LabeledUserSingleSelectWithSubtitlesField-BlVebvR7-CKRRo1Fi.js} +14 -14
  97. package/dist/assets/{LabeledZeniRolesDropDownField-BZKMSlzI-BfxjXxW8.js → LabeledZeniRolesDropDownField-Bm7Emr_n-JLIDvMIU.js} +6 -6
  98. package/dist/assets/{LinkJETransactionPage-D9Kae7Qd-CNnC6I7f.js → LinkJETransactionPage-ittEPbhi-BCWKpHna.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-DqY0lHvk-CVgmCk0Z.js → LowBalancePopup-ChA83eFW-dErt1yuL.js} +6 -6
  100. package/dist/assets/{MagicLinkACHDetailsPage-BctRnNGY-DsQ_Vr0G.js → MagicLinkACHDetailsPage-B4PPI06n-DFF50HiV.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-UjO7TGNI-DqUtPIYq.js → MagicLinkDomesticWireDetailsPage-DRK5ytSb-CTgdy9NG.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-ex7nPlxc-CynZ72OJ.js → MagicLinkInternationalWireDetailsPage-C2pn5xtm-DTn743zM.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-D3ORpbmL-D1tcTprK.js → MagicLinkSuccessPage-Bag5TE2J-DCGiU-tX.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-Di20DmsJ-U44nhhts.js → MagicLinkTitleSection-Ch72cLUN-CsTRlAex.js} +3 -3
  105. package/dist/assets/{MailingDetailsSection-D7d7fV5j-Cp7uqL5j.js → MailingDetailsSection-CrHHLtQN-loRqi7di.js} +1 -1
  106. package/dist/assets/{MeetingCalenderPopup-C-Ca0puH-CE3GtRxz.js → MeetingCalenderPopup-B_KRQLwc-CemZcgIl.js} +1 -1
  107. package/dist/assets/{Menu-FcKyIIWS-CsxddkDK.js → Menu-Czq7AdhP-C-oEbm2f.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-B4NuqJVI-tpOCMOiD.js → MyBankConnectionsSettingsPage-y3YOYnQr-BDn2GzBg.js} +6 -6
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-C4eMpxAr-D90MmLrN.js → MyPendingActivationChargeCardListPage-DJeYzaPj-Dm2kAILW.js} +2 -2
  110. package/dist/assets/{MyProfileSettingsPage-D0ALOEls-sjgoMLjt.js → MyProfileSettingsPage-hQvoACAQ-DxTxhxW-.js} +4 -4
  111. package/dist/assets/{NavBarWithPicker-Bu03gVw7-CXCT1AQF.js → NavBarWithPicker-DUaSGf4d-hMIZgUnq.js} +4 -4
  112. package/dist/assets/{NavigationArrow-D7Eb-FlF-CIlViwE5.js → NavigationArrow-ClEBtns--CBhi3Wa5.js} +5 -5
  113. package/dist/assets/{NavigationDots-CFjUchuX-CCsCkY6f.js → NavigationDots-BsJyQWOZ-DQaJD5qn.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-rhhm0o-f-Tif0VAaZ.js → NewGlobalMerchantPage-BKZGSrDk-Bj0fLOGG.js} +9 -9
  115. package/dist/assets/{NoDataChart-D5DKMqIS-yU_mZZgB.js → NoDataChart-Bk9eWo52-DbkTpf0E.js} +1 -1
  116. package/dist/assets/{NoDataTable-CPEKYH-4-DCggOQ1X.js → NoDataTable-DCQbtvPN-DkrWdcTk.js} +1 -1
  117. package/dist/assets/{NotFoundPage-Cfk62GPw-BF5rP4O6.js → NotFoundPage-CGx7FoiU-CZaJl2_e.js} +2 -2
  118. package/dist/assets/{NotificationSettingsPage-BZtsKPBO-DZmsk2cw.js → NotificationSettingsPage-CoD8eTUS-8OIZSyCr.js} +5 -5
  119. package/dist/assets/{NotificationsListConfig-DiJLl-YW-BOy_2Fl2.js → NotificationsListConfig-hyqVBWDA-BxI8wBvU.js} +1 -1
  120. package/dist/assets/{NotificationsPage-CgABP7O1-D8bdKO5u.js → NotificationsPage-BavPSx1H-CVEnlnNl.js} +1 -1
  121. package/dist/assets/{OpExByVendorPage-CMEokGbw-D-EhSgr7.js → OpExByVendorPage-DD8tCc8E-DObB3ZyW.js} +4 -4
  122. package/dist/assets/{OverlayContainerPage-9K5jaX8Z-CmMmKd0q.js → OverlayContainerPage-Dg-aOJQU-XdQCUH0G.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-IizA8WJN-Debywzdm.js → PandLWithForecastPage-bSkidYRR-D-Y5VMs1.js} +1 -1
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-D6cW0hFS-B6jN0swI.js → PaymentAccountSetupBillingAddressSection-CGIC_vLw-BIusm93k.js} +12 -12
  125. package/dist/assets/{PeoplePage-lD4QPAkF-BTkfD7Qn.js → PeoplePage-C-2NZJpQ-BbdMKhWr.js} +1 -1
  126. package/dist/assets/{PortfolioAllocationFormPage-pynkIQMX-D6bUfHMz.js → PortfolioAllocationFormPage-B6JOvEvW-BSgeoBob.js} +3 -3
  127. package/dist/assets/{PortfolioDetails-Cs8o8xzm-BZnvJKYS.js → PortfolioDetails-Cpv5bi4_-C3K7fsrr.js} +4 -4
  128. package/dist/assets/{ProductsCarousel-vPy7zk53-0jqchxQE.js → ProductsCarousel-WDd37Mjn-NLHTDL58.js} +7 -7
  129. package/dist/assets/{PromoBaseCards-CWGpTa57-CDWNrCuH.js → PromoBaseCards-BaFkKGkm-Bw-1QrdI.js} +1 -1
  130. package/dist/assets/{QBOConnectionDialog-66XnPKaW-DPJc3mi2.js → QBOConnectionDialog-l3ThoJCI-BaUAxpz_.js} +1 -1
  131. package/dist/assets/{QBOSetupSection-T0b8qjoq-CRwxhuhU.js → QBOSetupSection-DSrxcrXI-CnwGvTKQ.js} +3 -3
  132. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BSI9Lg6a-0RZNihPF.js → ReimbursementApprovalRuleDetailPage-hb8mPFw0-iXwT5wDy.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRulesPage-XxC6pXqt-Djs5LyQt.js → ReimbursementApprovalRulesPage-fs4WqNUv-BvFXhzka.js} +4 -4
  134. package/dist/assets/{ReimbursementDetailPage-BwtY21D5-CNiYkb_F.js → ReimbursementDetailPage-BYw6Mc2u-ZOQaZirb.js} +4 -4
  135. package/dist/assets/{ReimbursementPromoPage-CmO1DP-8-jueUg_Jg.js → ReimbursementPromoPage-DzDuwRxU-DEtJqrhv.js} +1 -1
  136. package/dist/assets/{ReimbursementSetUpPage-CrCsRxAy-DR7TDPIb.js → ReimbursementSetUpPage-DdT6uu1--I31J4BAO.js} +5 -5
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Ct-lvcR1-B7C3iSy7.js → ReimbursementsBulkReviewDrawerPage-CXvng56s-BxlZIO2c.js} +1 -1
  138. package/dist/assets/{ReloadCard-CJfjUA_Q-CSIpRTGt.js → ReloadCard-BPoOhxrs-D8lPs5qf.js} +1 -1
  139. package/dist/assets/{ReportTableViewSelector-CkuvvlJm-DviIVV1k.js → ReportTableViewSelector-CkZW5TtX-I9C4FHDc.js} +5 -5
  140. package/dist/assets/{ReportsPage-BJqldqjR-BiXbtcBq.js → ReportsPage-C-ARKbIQ-CCoiMwuP.js} +1 -1
  141. package/dist/assets/{RevenueChart-BUnSkoUN-OaNNpl8v.js → RevenueChart-CuqZW-Jr-B_s8E_iU.js} +1 -1
  142. package/dist/assets/{ReviewDetailsPage-8I09Puca-kSqQFBGv.js → ReviewDetailsPage-BVN_Uym2-d0L-TTpG.js} +11 -11
  143. package/dist/assets/{ReviewOverlay-Czmj4HG0-DGEdohoE.js → ReviewOverlay-CIgtaUn1-wggYVp0Q.js} +1 -1
  144. package/dist/assets/{RoleWithToolTip-CNQZHC7h-BWCgIab_.js → RoleWithToolTip-Dm4yIm31-3pGQtzkX.js} +2 -2
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-1Y1ZylI7-TF-lQK6Q.js → ScheduleDetailsFixedAssetsPage-Ce3z1VPg-SvqdKcr4.js} +3 -3
  146. package/dist/assets/{ScheduleDetailsPage-BcRuA_7y-DKC9xpZ-.js → ScheduleDetailsPage-O69iLj4h-CXnxPezp.js} +3 -3
  147. package/dist/assets/{ScheduleSequenceTable-DC75D2Dx-BlixJonK.js → ScheduleSequenceTable-DMIzc2zC-3WngbgQC.js} +15 -15
  148. package/dist/assets/{ScreenRoutes-Vxn_VgUc.js → ScreenRoutes-D3pC7BH7.js} +1 -1
  149. package/dist/assets/{SetUpAccountSection-CaLxl4l3-Hr6lKchX.js → SetUpAccountSection-C1_QjMwF-C_2yznzy.js} +11 -11
  150. package/dist/assets/{SetUpDefaultSection-a6NTauck-DWk4cHNK.js → SetUpDefaultSection-B-ZEHQUb-iLzGQnWH.js} +3 -3
  151. package/dist/assets/SignIn-CXQyYEJI-BbNAmrjc.js +408 -0
  152. package/dist/assets/{SignInScreen-BnDKcAsx.js → SignInScreen-DtWV87E_.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-Cvev9izU-CywIXocV.js → SpendManagementListViewPage-DEMLoStE-C1nPAYM8.js} +6 -6
  154. package/dist/assets/{SpendManagementPerTabPage-CbjC0IBF-BZmzopW1.js → SpendManagementPerTabPage-CLf-7YyR-60GdYb7a.js} +11 -11
  155. package/dist/assets/{SpendManagementSection-BKTkeRK6-BpVoD6ml.js → SpendManagementSection-DIVgOKWy-D35voP2u.js} +6 -6
  156. package/dist/assets/{SpendMgmtSetupAccountSection-D8Yv-Jng-DLg3IqDb.js → SpendMgmtSetupAccountSection-DFyUBsg3-DRIU7IWr.js} +10 -10
  157. package/dist/assets/{StatementItem-DSJvKpAv-CgQXd1HG.js → StatementItem-CSyEn4Pz-CIQDSk8U.js} +6 -6
  158. package/dist/assets/StatementsPage-D34J2aZa-9jSr3LU8.js +58 -0
  159. package/dist/assets/{StatusSwitcher-CTDNbKqC-BufOI7Uk.js → StatusSwitcher-B77NoO6o-CLTHQ9CP.js} +1 -1
  160. package/dist/assets/{SubTabSwitcher-D33kV-tw-BQGDLH02.js → SubTabSwitcher-baJGHUgJ-BPKK4q6_.js} +1 -1
  161. package/dist/assets/{SummaryCard-tsJZnge3-CDogfl9X.js → SummaryCard-BvuRZj8f-DCeFdYs2.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-BW9M6AQs-o0la5nop.js → TaskManagementPage-vG8GXEJA-DX4VWYkl.js} +25 -25
  163. package/dist/assets/{TimeRangeSwitcher-CkXysnFa-BziXH9A-.js → TimeRangeSwitcher-CnoZ9Rqp-QTEqL6la.js} +2 -2
  164. package/dist/assets/{TimeframeSwitcher-B-S09J4A-DXzIdqPI.js → TimeframeSwitcher-W5kHnuHI-B5U_sUAn.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcherWithToggle-B9Lo2-pD-E9Q-Xl1O.js → TimeframeSwitcherWithToggle-yLA5y4zJ-CFlsdObg.js} +1 -1
  166. package/dist/assets/{TopExCard-DwP8Cppq-BiAUZiUo.js → TopExCard-oyXmygm8-DV87vjZL.js} +1 -1
  167. package/dist/assets/{TopExDetailPage-CIMSDSxd-C3es4f9G.js → TopExDetailPage-4HMIURzm-ulBg6b5V.js} +1 -1
  168. package/dist/assets/{TransactionDetailPage-rwzAZT-Q-BNzn0dfK.js → TransactionDetailPage-CIw_7B72-CcQHWkUG.js} +15 -15
  169. package/dist/assets/TransactionList-B9M4ftBY-9Xoftl5l.js +147 -0
  170. package/dist/assets/{TransactionListBig-BidYBgz3-5Yl91ZX2.js → TransactionListBig-D5SRFdH7-CUrzZcWs.js} +1 -1
  171. package/dist/assets/TransactionListPage-DCiIH4ES-DulMTWBW.js +35 -0
  172. package/dist/assets/{TransactionVendorDetailPage-LzIzQGZ1-DhRVTfh8.js → TransactionVendorDetailPage-BNY3vBm0-Cw6AkzlK.js} +5 -5
  173. package/dist/assets/{TransferDrawerPage-CztFCYxm-A_gVbaFq.js → TransferDrawerPage-DdgfrrRM-BBEomNnq.js} +43 -43
  174. package/dist/assets/{TreasuryOverviewPage-E5E5Gr3g-BXlIIBea.js → TreasuryOverviewPage-COFbWN48-DSaB6zFu.js} +19 -19
  175. package/dist/assets/{TreasuryPromoPage-D2F4Y8gV-D4r4OVpG.js → TreasuryPromoPage-EYqV98OG-CvFj_oTJ.js} +18 -18
  176. package/dist/assets/{TreasurySetupPage-Dxa4l6Ec-C98zHjAP.js → TreasurySetupPage-DEz3fabz-BopnXkx6.js} +2 -2
  177. package/dist/assets/{TreasuryStatementsPage-DEhWu0S0-Cq8llxzq.js → TreasuryStatementsPage-JSf4JXXI-CSff_RYi.js} +2 -2
  178. package/dist/assets/{TreasuryTaxLetterPage-CEMU2CI9-CaMBHbid.js → TreasuryTaxLetterPage-Id6od0WY-D3YHLWYb.js} +3 -3
  179. package/dist/assets/{TreasuryTransferOrReviewPage-BfReLw_V-DlzqxUSw.js → TreasuryTransferOrReviewPage-D25tiep8-CregJCyC.js} +46 -46
  180. package/dist/assets/{TrendChart-D1gtjDe3-DgecHpjD.js → TrendChart-xBdkrxjQ-BHwV7FvD.js} +1 -1
  181. package/dist/assets/{TrendWithTransactions-BslpnJTN-DM_bUa3k.js → TrendWithTransactions-CQdqelNB-BxApJhmm.js} +7 -7
  182. package/dist/assets/{UncategorizedAccountsMappingPage-Brm7fcuy-Lq1gPvO_.js → UncategorizedAccountsMappingPage-DaSjSoeK-2h_6-Ko4.js} +10 -10
  183. package/dist/assets/{UnitIntegrationPage-DhiEmm9g-DvJDyLPM.js → UnitIntegrationPage-zM4qGyLV-CinH_PeY.js} +3 -3
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-Dq1ToFCn-BIAvqiTV.js → UploadAdditionalDocumentOverlay-Y64l7Rho-BebTHNkT.js} +2 -2
  185. package/dist/assets/{Vendor2FAPopup-Brg14-Cw-D6yUhffP.js → Vendor2FAPopup-DO-eL5Ot-DjhAlKT-.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-mk0vAyqE-BXjAbyW1.js → VendorACHDetailsPage-BDROr_dC-CAZxPDsT.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-CRhCXEsq-ByCD1QlC.js → VendorDetailPage-B8S-gV53-DaZx1eZP.js} +18 -18
  188. package/dist/assets/{VendorDomesticWireDetailsPage-DhWkYV9N-DytBbPSU.js → VendorDomesticWireDetailsPage-BrxQuXus-DYcgNh9D.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-Bp5FgSiJ-CQgouOQ1.js → VendorFiling1099EditablePage-BK-XGzxl-CVlxfcrS.js} +32 -32
  190. package/dist/assets/{VendorFirstReviewPage-XHOyQIOp-BcDyJnSm.js → VendorFirstReviewPage-CrSdEY-q-DsAt-Zva.js} +31 -31
  191. package/dist/assets/{VendorInternationalWireDetailsPage-B13qu8u3-Cr7Rw8Vd.js → VendorInternationalWireDetailsPage-DuE2n00d-C0HY8jsi.js} +9 -9
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Dtgusj3r-DSS2WNka.js → VendorInternationalWireSwiftDetailsPage-_0douojx-uTqjQvZ8.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-B-qorJ8x-BDTocsmP.js → VendorsAccountsSection-C2McA3-C-CAGlOz8b.js} +4 -4
  194. package/dist/assets/VerifyDevice-BOb4uKLq-B9iw9cGN.js +96 -0
  195. package/dist/assets/{WarningsDrawerPage-B4Nic3gX-D_tDlIsb.js → WarningsDrawerPage-f9lS8sCp-Yx0s05ZC.js} +7 -7
  196. package/dist/assets/{ZeniAccountDetailPage-IDGYSZVs-DHzL4YW_.js → ZeniAccountDetailPage-BnWDpR9g-BpHh2OhY.js} +17 -17
  197. package/dist/assets/{ZeniAccountListViewPage-IlPP8Yit-e7XViZS5.js → ZeniAccountListViewPage-D9ORn0_O-BQPutSAN.js} +16 -16
  198. package/dist/assets/{ZeniAccountNavBarPieces-2j-ZQRIF-C9FaUYbe.js → ZeniAccountNavBarPieces-4jG3uNmW-B7nBCOPn.js} +2 -2
  199. package/dist/assets/{ZeniAccountPromoPage-BhFf42Fz-CCcGWwVA.js → ZeniAccountPromoPage-CswETXvx-DfER_hgz.js} +1 -1
  200. package/dist/assets/{ZeniAccountSetupPage-DcYDO3x8-1dxj4hNi.js → ZeniAccountSetupPage-7B6Vgmg6-DsByA6Pf.js} +3 -3
  201. package/dist/assets/{ZeniCopyright-C4Ze2E8o-BF7Y_OhF.js → ZeniCopyright-DrkcGEYL-D8qMh6Rn.js} +1 -1
  202. package/dist/assets/{ZeniTransferAmountSlider-DFB0ntiR-DEw2G9RV.js → ZeniTransferAmountSlider-Bw5S2HTx-CfuKg8UT.js} +1 -1
  203. package/dist/assets/{add-to-wallet-DgdBD8_G-DcfyMc0W.js → add-to-wallet-DgdBD8_G-y8nGTHEa.js} +1 -1
  204. package/dist/assets/{analyticsHelper-Cfbkdlur.js → analyticsHelper-B46gu6zH.js} +1 -1
  205. package/dist/assets/{analyticsHelper-CsfdC0kT-CkpNzA-i.js → analyticsHelper-C37dCyKv-Ci3W403B.js} +1 -1
  206. package/dist/assets/{arrow-south-east-round-PEovUgvH-DBLhwZXJ.js → arrow-south-east-round-PEovUgvH-D6oVD1ix.js} +1 -1
  207. package/dist/assets/{auto-transfer-rule-mbafm5D3-D6YoufI_.js → auto-transfer-rule-mbafm5D3-DsDlaCxy.js} +1 -1
  208. package/dist/assets/{chartTypes-CPj7oOMJ-BdHmGEgv.js → chartTypes-Cknnnhq_-BKEap-MQ.js} +1 -1
  209. package/dist/assets/{commonDimensions-CKs-7p-V-2mIh0uhQ.js → commonDimensions-D0ovCC4N-B0G2UdHm.js} +1 -1
  210. package/dist/assets/{crypto-BURQLTgV.js → crypto-BDNqpTKX.js} +1 -1
  211. package/dist/assets/{detailCommon-BJ8iCchG-D9ueUtlf.js → detailCommon-CKa5_aP2-CTgqAfFe.js} +2 -2
  212. package/dist/assets/{downloadPdf-hPck-AA1-BRfoLwQe.js → downloadPdf-BJozh7zE-M2Rp1JlQ.js} +1 -1
  213. package/dist/assets/{gift-box-Cmt9OgIZ-DKWN92w0.js → gift-box-Cmt9OgIZ-BqWjP_Ex.js} +1 -1
  214. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BalbEtqQ.js → graphic-no-data-l-DU4J8fDt-BBc6l6Au.js} +1 -1
  215. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js → graphic-no-data-net-burn-l-CzmycA0m-DANomItj.js} +1 -1
  216. package/dist/assets/handshake-BPg58FML-CVKh3Eii.js +1 -0
  217. package/dist/assets/{index-DjfQ_8_G.js → index-Cnh9fv8f.js} +481 -473
  218. package/dist/assets/{liveblocks-DZpRS25q.js → liveblocks-CP09Cz-7.js} +1 -1
  219. package/dist/assets/{lodash-Dq_mKlGB.js → lodash-BWJmwMit.js} +1 -1
  220. package/dist/assets/{mapLoadingInProgressToTreeNode-R394S2in-yG54fD0k.js → mapLoadingInProgressToTreeNode-DttwbPj7-BWaq84fe.js} +1 -1
  221. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-B20NECa8-BFYhaGC6.js → mapSectionWithAcOnlyToTreeNode-CKUACdvT-96C16ahX.js} +1 -1
  222. package/dist/assets/{mapSpacerToTreeNode-CLYF1Foh-BjdisaSl.js → mapSpacerToTreeNode-CeH4tptC-BD7Zb85P.js} +1 -1
  223. package/dist/assets/{mapTimeframeBalancesToTreeNode-B-iRb2_j-DquYgMDw.js → mapTimeframeBalancesToTreeNode-CElz2Cb0-CuxVDYys.js} +1 -1
  224. package/dist/assets/{mapTimeframeBalancesToTreeNode-fLAswzPX-sXx3Rgkk.js → mapTimeframeBalancesToTreeNode-TLHaVbTv-OZW2z0IX.js} +1 -1
  225. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CTmIxkdn-Tzb1GX6L.js → mapTimeframeHeaderLoadingInProgressToTreeNode-D96sl236-Da50HxFS.js} +1 -1
  226. package/dist/assets/{mui-Bi8r7UDG.js → mui-C42whWwM.js} +1 -1
  227. package/dist/assets/{page-detail-CWX5S47F-B6DjZ3Gi.js → page-detail-CWX5S47F-BBa5wfAm.js} +1 -1
  228. package/dist/assets/{play-icon-BZYr9mDs-BdQoiOuZ.js → play-icon-XWt7iQeF-7dWJ4Dkg.js} +1 -1
  229. package/dist/assets/{radio-default-CiSgisfh-ub7QGXr8.js → radio-default-CiSgisfh-Z5w0WcFM.js} +1 -1
  230. package/dist/assets/{redux-CC-tnuv1.js → redux-2gfZRks6.js} +1 -1
  231. package/dist/assets/{routing-CxYXTKiv.js → routing-VwiwPky5.js} +1 -1
  232. package/dist/assets/{sentry-HDxG13yk.js → sentry-osuhWjvS.js} +1 -1
  233. package/dist/assets/{shield-DOlUxcFf-BCUrujod.js → shield-DOlUxcFf-bFVWRY1X.js} +1 -1
  234. package/dist/assets/{toCOABalancesWithID-Dsa-tGTi-sDqqdfBL.js → toCOABalancesWithID-DACfD5ZE-BgoTIDec.js} +1 -1
  235. package/dist/assets/{toChartData-Cp_80Bi6-DNhfaq63.js → toChartData-C6ap15NT-ByCawuJX.js} +1 -1
  236. package/dist/assets/{transaction-placeholder-CpOwZAMG-CJJQqrcA.js → transaction-placeholder-CpOwZAMG-DYG2_sCF.js} +1 -1
  237. package/dist/assets/{treasuryColorHelper-CnKoJBRW-C1sO9xUo.js → treasuryColorHelper-DmVCoHv9-Cx3TVoRp.js} +1 -1
  238. package/dist/assets/{uploadAttachment-Cx3LGzsg-BLoeW5Lc.js → uploadAttachment-D1XtO8---B9AANbCr.js} +23 -23
  239. package/dist/assets/{uploadReceipts-CwjPukNh-D57dKxMS.js → uploadReceipts-Cl7e8jci-C-56lzXC.js} +1 -1
  240. package/dist/assets/{useLongPress-GCK2COYQ-gxLtL5O4.js → useLongPress-GCK2COYQ-BoJXFS3o.js} +1 -1
  241. package/dist/assets/{usp-line-BBd1wKwW-CgKq8-Xn.js → usp-line-BBd1wKwW-u-VMxix8.js} +1 -1
  242. package/dist/assets/{vendor-CnQcJ2Lu.js → vendor-rkTZJa59.js} +7 -7
  243. package/dist/assets/{verification-CW6uEyev-DdkqedMU.js → verification-CW6uEyev-BVrJsi0i.js} +1 -1
  244. package/dist/index.html +1 -1
  245. package/package.json +3 -3
  246. package/dist/assets/ConfettiBurst-b1-NNKbl-CRZv8suA.js +0 -1
  247. package/dist/assets/CustomerOnboardingContainerPage-BXSxGbv8-yPFLkaH4.js +0 -1
  248. package/dist/assets/EntityDetailPage-BsQ9bSpC-Ccfh9SD-.js +0 -18
  249. package/dist/assets/FeaturePreviewPage-Coe53hoK-GblH5291.js +0 -11
  250. package/dist/assets/LabeledAddressValueField-DJHY_wPN-C8cLNKuC.js +0 -45
  251. package/dist/assets/SignIn-_ZPdER_K-iNnyyU-5.js +0 -408
  252. package/dist/assets/StatementsPage-Bhk6u845-DupKw2VZ.js +0 -58
  253. package/dist/assets/TransactionList-CFYj7bYL-CzoueHti.js +0 -147
  254. package/dist/assets/TransactionListPage-CImIYabg-nUJGuSyl.js +0 -35
  255. package/dist/assets/VerifyDevice-CBO1Uzra-BYrx8Dkz.js +0 -67
@@ -1,4 +1,4 @@
1
- import{a as Et,c7 as Nt,M as te,l as W,e as Z,kI as Mt,j as t,F as Ft,bS as Ot,bU as Vt,bV as Wt,a4 as Ut,o as i,bP as et,fB as Kt,aj as qt,bX as Gt,i7 as Ht,i8 as Yt,m as Jt,bx as J,bf as Qt,a6 as Zt,C as h,u as Ue,fC as Xt,kJ as ei,c as Q,cr as ti,B as U,n as F,d as se,kK as ii,cL as oi,kL as ni,kM as ut,kN as ht,ji as li,kO as ri,kP as si,bm as gt,v as je,_ as ee,Y as Ke,g8 as qe,d6 as Ge,fN as He,ck as yt,kQ as bt,kR as Ce,a0 as Be,kS as Ye,S as we,ib as xt,ic as wt,kT as ft,ia as $t,c0 as vt,c3 as St,kU as R,kV as kt,fZ as Tt,cp as Pt,du as Je,q as p}from"./index-DjfQ_8_G.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-CTDNbKqC-BufOI7Uk.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.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,c9 as Nt,M as te,l as W,e as Z,kJ as Mt,j as t,F as Ft,bU as Ot,bW as Vt,bX as Wt,a4 as Ut,o as i,bR as et,fD as Kt,aj as qt,bZ as Gt,i8 as Ht,i9 as Yt,m as Jt,bA as J,bf as Qt,a6 as Zt,C as h,u as Ue,fE as Xt,kK as ei,c as Q,ct as ti,B as U,n as F,d as se,kL as ii,cN as oi,kM as ni,kN as ut,kO as ht,jj as li,kP as ri,kQ as si,bm as gt,v as je,_ as ee,Y as Ke,ga as qe,d5 as Ge,fP as He,cm as yt,kR as bt,kS as Ce,a0 as Be,kT as Ye,S as we,ic as xt,id as wt,kU as ft,ib as $t,c2 as vt,c5 as St,kV as R,kW as kt,f$ as Tt,cr as Pt,dt as Je,q as p}from"./index-Cnh9fv8f.js";import{b as P,n as o,f as jt,j as Y}from"./vendor-rkTZJa59.js";import{d as Ct}from"./useLongPress-GCK2COYQ-BoJXFS3o.js";import{K as ai}from"./StatusSwitcher-B77NoO6o-CLTHQ9CP.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const ue=te.getLocalizedStrings().spendManagement.billPay.billsByTabs.header,_e={key:"name",value:ue.name,sortOrder:"ascending",width:new h(p[5],p[5])},Le={key:"invoiceDate",value:ue.invoiceDate,sortOrder:"ascending",width:new h(20,20)},di={key:"dueDate",value:ue.dueDate,sortOrder:"ascending",width:new h(20,20)},Qe={key:"dueDate",value:ue.paymentDate,sortOrder:"ascending",width:new h(20,20)},Ze={key:"status",value:ue.status,sortOrder:"ascending",width:new h(18,18)},ci={key:"paymentMethod",value:ue.paymentMethod,sortOrder:"ascending",width:new h(18,18)},ze={key:"amount",value:ue.amount,sortOrder:"ascending",width:new h(10,10)},be=[_e,Le,di,Ze,ze],pi=[_e,Le,Qe,Ze,ze],mi=[_e,Le,Qe,Ze,ze],ui=[_e,Le,Qe,ci,ze],ye={headerLastColumnTopPadding:new h(p[0],p[4]),headerLastColumnRightPadding:new h(p[3],p[11]),headerLastColumnBottomPadding:new h(p[0],p[4]),headerLastColumnLeftPadding:new h(p[0],p[4]),headerHeight:new h(xt,wt)};function hi({companyNameSticky:e,currentTab:n,onColumnSortConfigChanged:c,sortConfig:l}){const d=Ue(),g=Z(),[b,x]=P.useState(ki(n));P.useEffect(()=>{const a=[...b];for(const r of a)r.key===l.sortKey?r.sortOrder=l.sortOrder:r.sortOrder="ascending";x(a)},[l.sortKey,l.sortOrder]);const f=(a,r)=>{let $=r;l.sortKey===a&&($=r==="ascending"?"descending":"ascending"),c?.(a,$)},u=b.find(a=>a.key===l.sortKey)??b[0],y=a=>b.find(r=>r.key===a)?.value??"",m=b.map(a=>a.key),w=te.getLocalizedStrings().spendManagement.billPay.billsByTabs;return g==="small"?t.jsxs(tt,{windowSize:g,companyNameSticky:!1,children:[t.jsxs(xi,{children:[t.jsx(fi,{children:t.jsx(wi,{})}),t.jsx(gt,{title:w.sortBy,placeholder:w.sortBy,pickerValues:m,valueToLabel:y,selectedValue:l.sortKey,onPickerSelectionChanged:a=>{f(a,"ascending")},optionTextStyle:je.smallRegular,titleTextStyle:je.smallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.background})]}),t.jsxs(Si,{onClick:()=>f(u.key,u.sortOrder),"data-testid":ee("bill-pay-list-header-mobile",l.sortKey),children:[t.jsx(se,{children:u.value}),t.jsx(it,{sortDataValue:l.sortKey,headerdata:u,children:t.jsx(ot,{})})]})]}):t.jsx(tt,{companyNameSticky:e,windowSize:g,children:b.map(a=>t.jsxs(yi,{companyNameSticky:e&&a.key==="name",sortDataValue:l.sortKey,actualDataValue:a.key,wrapperWidth:a.width,windowSize:g,children:[t.jsxs(vi,{onClick:()=>f(a.key,a.sortOrder),"data-testid":ee("bill-pay-list-header",l.sortKey),children:[t.jsx(se,{children:a.value}),t.jsx(it,{sortDataValue:l.sortKey,headerdata:a,children:t.jsx(ot,{})})]}),t.jsx($i,{sortDataValue:l.sortKey,windowSize:g,isVisible:l.sortKey===a.key&&a.key!=="dueDate",children:t.jsx(bi,{onClick:()=>f("dueDate","ascending"),"data-testid":ee("bill-pay-list-header-sort-close",l.sortKey)})})]},a.key))})}const gi=jt.memo(hi),tt=o(se)`
2
2
  width: 100%;
3
3
  top: ${i.sp0};
4
4
  left: ${i.sp0};
@@ -69,7 +69,7 @@ import{a as Et,c7 as Nt,M as te,l as W,e as Z,kI as Mt,j as t,F as Ft,bS as Ot,b
69
69
  &:hover {
70
70
  color: ${e=>e.theme.colors.primary};
71
71
  }
72
- `,ki=e=>{switch(e){case"draft":return we(be);case"pending_approval":return we(pi);case"scheduled":return we(mi);case"paid":return we(ui)}},xe={containerPaddingLeft:new h(p[3],p[4]),containerPaddingRight:new h(p[3],p[4]),containerPaddingTop:new h(p[2],12),containerPaddingBottom:new h(p[2],12),containerMarginLeft:new h(p[4],p[8]),webkitLineClamp:new h(2,1,1,1,1)},{spendManagement:{billPay:{billDetails:ne}},common:{strings:{empty:Fe,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(),$=Ge().analytics,s=`dashboard_${a.currentTenant?.companyId}`,{threads:k,isLoading:B}=He({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??Fe,companyName:a.currentTenant?.companyName??Fe,entityType:"bill.details",entityId:e.id}),$.trackCommentActivity("bill","clicked",a.currentTenant?.companyName??Fe,a.controllersList.controllers.map(I=>Je(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(J,{title:E(),placement:"right",style:{padding:`2px ${i.sp2}`},children:t.jsx(Ni,{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(J,{title:b,placement:"bottom",display:"flex",style:{padding:`12px ${i.sp3}`},position:"relative",maxWidth:"311px",children:t.jsx(Fi,{})}):null]}),x!==void 0&&z.length>0?z.length>1?t.jsx(J,{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`
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:Fe,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(),$=Ge().analytics,s=`dashboard_${a.currentTenant?.companyId}`,{threads:k,isLoading:B}=He({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??Fe,companyName:a.currentTenant?.companyName??Fe,entityType:"bill.details",entityId:e.id}),$.trackCommentActivity("bill","clicked",a.currentTenant?.companyName??Fe,a.controllersList.controllers.map(D=>Je(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(J,{title:E(),placement:"right",style:{padding:`2px ${i.sp2}`},children:t.jsx(Ni,{isProcessing:g,children:t.jsx(Mi,{})})}):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(J,{title:b,placement:"bottom",display:"flex",style:{padding:`12px ${i.sp3}`},position:"relative",maxWidth:"311px",children:t.jsx(Fi,{})}):null]}),x!==void 0&&z.length>0?z.length>1?t.jsx(J,{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};
@@ -161,13 +161,13 @@ import{a as Et,c7 as Nt,M as te,l as W,e as Z,kI as Mt,j as t,F as Ft,bS as Ot,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;
@@ -221,7 +221,7 @@ import{a as Et,c7 as Nt,M as te,l as W,e as Z,kI as Mt,j as t,F as Ft,bS as Ot,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:Oe,space:ve}}}=te.getLocalizedStrings(),Oi=({transactionDetail:e,tagStatus:n,isProcessing:c,isSelected:l,isBillPayCommentingEnabled:d,bulkSelectFormId:g,isBulkSelectionLimitReached:b,isSelectionMode:x,reportTitleAdditionalInfo:f,lowBalanceAlert:u,approvers:y,deletionAdditionalInfo:m,paidAdditionalInfo:w,showLowBalanceTooltip:a,onTransactionRowClick:r})=>{const $=Z(),s=Ke(),k=qe(),B=Ge().analytics,L=`dashboard_${s.currentTenant?.companyId}`,{threads:j,isLoading:v}=He({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=>Je(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),X=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]),Ne=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,...Ne,"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(Gi,{windowSize:$,children:X}),e.isRecurring?t.jsx(J,{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(Xi,{children:[t.jsx(Hi,{children:Be("0,0[.]00",e.totalAmountInUSD)}),t.jsxs(Qi,{hasAlertIcon:u!=null,children:[t.jsxs(io,{children:[n!==void 0?t.jsx(Ji,{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(J,{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(J,{title:`${le.byText}${ve}${I.join(`${ve}${le.orText}${ve}`)}`,placement:"bottom-start",children:t.jsx(Te,{children:`${le.byText}${ve}${I[0]}${le.dots}`})}):t.jsx(Te,{children:`${le.byText}${ve}${I[0]}`}):null,m!=null?t.jsx(Te,{children:m}):null,w!=null?t.jsx(Te,{children:w}):null]})]})]})}),d&&z.length>0?t.jsx(Ye,{isLoading:v,count:z.length,style:{position:"absolute",float:"right",right:"6px",top:i.sp1},openThread:K}):null]})},Vi=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 $=Z(),s=Ke(),k=qe(),B=Ge().analytics,L=`dashboard_${s.currentTenant?.companyId}`,{threads:j,isLoading:v}=He({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=>Je(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),X=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]),Ne=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,...Ne,"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(Gi,{windowSize:$,children:X}),e.isRecurring?t.jsx(J,{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(Xi,{children:[t.jsx(Hi,{children:Be("0,0[.]00",e.totalAmountInUSD)}),t.jsxs(Qi,{hasAlertIcon:u!=null,children:[t.jsxs(io,{children:[n!==void 0?t.jsx(Ji,{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(J,{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(J,{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};
@@ -361,7 +361,7 @@ import{a as Et,c7 as Nt,M as te,l as W,e as Z,kI as Mt,j as t,F as Ft,bS as Ot,b
361
361
  :hover {
362
362
  color: ${e=>e.theme.colors.primary};
363
363
  }
364
- `,no=o.div``,ae=te.getLocalizedStrings().spendManagement.reimbursement.reimbursementByTabs.header,Ie={key:"reportName",value:ae.name,sortOrder:"ascending",width:new h(30,30)},De={key:"type",value:ae.type,sortOrder:"ascending",width:new h(20,20)},Ae={key:"status",value:ae.status,sortOrder:"ascending",width:new h(20,20)},Re={key:"amount",value:ae.amount,sortOrder:"ascending",width:new h(10,10)},ce=[Ie,{key:"submittedOn",value:ae.created,sortOrder:"ascending",width:new h(20,20)},De,Ae,Re],lo=[Ie,{key:"submittedOn",value:ae.submitted,sortOrder:"ascending",width:new h(20,20)},De,Ae,Re],ro=[Ie,{key:"submittedOn",value:ae.paymentDate,sortOrder:"ascending",width:new h(20,20)},De,Ae,Re],so=[Ie,{key:"submittedOn",value:ae.paidOn,sortOrder:"ascending",width:new h(20,20)},De,Ae,Re],Bt={draft:ce,pending_approval:lo,scheduled:ro,paid:so},Pe={headerLastColumnTopPadding:new h(p[0],p[4]),headerLastColumnRightPadding:new h(p[3],p[11]),headerLastColumnBottomPadding:new h(p[0],p[4]),headerLastColumnLeftPadding:new h(p[3],p[4])};function ao({companyNameSticky:e,currentTab:n,onColumnSortConfigChanged:c,sortConfig:l,analytics:d}){const g=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=Z(),b=Ue(),[x,f]=P.useState(we(Bt[n]));P.useEffect(()=>{const r=[...x];for(const $ of r)$.key===l.sortKey?$.sortOrder=l.sortOrder:$.sortOrder="ascending";f(r)},[l.sortKey,l.sortOrder]);const u=(r,$)=>{let s=$;l.sortKey===r&&(s=$==="ascending"?"descending":"ascending"),d?.trackReimbursementListSort(r,s),c?.(r,s)},y=x.find(r=>r.key===l.sortKey)??x[0],m=r=>x.find($=>$.key===r)?.value??"",w=x.map(r=>r.key),a=te.getLocalizedStrings().spendManagement.reimbursement.reimbursementByTabs;return g==="small"?t.jsxs(rt,{height:xt,windowSize:g,children:[t.jsx(mo,{children:t.jsx(uo,{})}),t.jsx(gt,{title:a.sortBy,placeholder:a.sortBy,pickerValues:w,valueToLabel:m,selectedValue:l.sortKey,onPickerSelectionChanged:r=>{u(r,"ascending")},optionTextStyle:je.smallRegular,titleTextStyle:je.smallRegular,titleColor:b.colors.primary,selectedOptionColor:b.colors.hero,optionBackgroundColor:"inherit",downChevronVisible:!1}),t.jsxs(bo,{onClick:()=>u(y.key,y.sortOrder),"data-testid":ee("remi-list-header-small",l.sortKey),children:[t.jsx(se,{children:y.value}),t.jsx(st,{sortDataValue:l.sortKey,headerdata:y,children:t.jsx(at,{})})]})]}):t.jsx(rt,{height:wt,windowSize:g,children:x.map(r=>t.jsxs(po,{companyNameSticky:e,sortDataValue:l.sortKey,actualDataValue:r.key,wrapperWidth:r.width,windowSize:g,children:[t.jsxs(yo,{onClick:()=>u(r.key,r.sortOrder),"data-testid":ee("remi-list-header",l.sortKey),children:[t.jsx(se,{children:r.value}),t.jsx(st,{sortDataValue:l.sortKey,headerdata:r,children:t.jsx(at,{})})]}),t.jsx(go,{sortDataValue:l.sortKey,windowSize:g,isVisible:l.sortKey===r.key&&r.key!=="submittedOn",children:t.jsx(ho,{onClick:()=>u("submittedOn","ascending"),"data-testid":ee("remi-list-close-sort",l.sortKey)})})]},r.key))})}const co=jt.memo(ao),rt=o(se)`
365
365
  width: 100%;
366
366
  top: 0;
367
367
  left: 0;
@@ -429,7 +429,7 @@ import{a as Et,c7 as Nt,M as te,l as W,e as Z,kI as Mt,j as t,F as Ft,bS as Ot,b
429
429
  color: ${e=>e.theme.colors.primary};
430
430
  }
431
431
  margin-left: auto;
432
- `,Se={containerPaddingLeft:new h(p[3],p[4]),containerPaddingRight:new h(p[3],p[4]),containerPaddingTop:new h(p[2],12),containerPaddingBottom:new h(p[2],12),containerMarginLeft:new h(p[4],p[8])},H=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 $=Ge().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}=He({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(X=>Je(X)),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??H.newReimbursementTitle}),d!=null&&t.jsx(ko,{children:`${H.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(J,{title:H.reimbursementType.both,placement:"bottom-start",display:"flex",children:H.reimbursementType.titleForBoth})}):t.jsx(dt,{windowSize:y,responsiveWidth:ce[2].width,children:H.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??H.hyphenText}):t.jsx(jo,{children:H.hyphenText}),b!==void 0&&j.length>0?j.length>1?t.jsx(J,{title:`${H.byText} `+j.join(` ${H.orText} `),placement:"bottom-start",children:t.jsx(Ve,{children:`${H.byText} `+j[0]+`${H.dots}`})}):t.jsx(Ve,{children:`${H.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`
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])},H=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 $=Ge().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}=He({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(X=>Je(X)),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??H.newReimbursementTitle}),d!=null&&t.jsx(ko,{children:`${H.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(J,{title:H.reimbursementType.both,placement:"bottom-start",display:"flex",children:H.reimbursementType.titleForBoth})}):t.jsx(dt,{windowSize:y,responsiveWidth:ce[2].width,children:H.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??H.hyphenText}):t.jsx(jo,{children:H.hyphenText}),b!==void 0&&j.length>0?j.length>1?t.jsx(J,{title:`${H.byText} `+j.join(` ${H.orText} `),placement:"bottom-start",children:t.jsx(Ve,{children:`${H.byText} `+j[0]+`${H.dots}`})}):t.jsx(Ve,{children:`${H.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};
@@ -547,7 +547,7 @@ import{a as Et,c7 as Nt,M as te,l as W,e as Z,kI as Mt,j as t,F as Ft,bS as Ot,b
547
547
  padding: 1px 6px 1px 6px;
548
548
  border: ${e=>`1px solid ${e.borderColor}`};
549
549
  border-radius: ${i.sp1};
550
- `,pe={containerPaddingLeft:new h(p[3],p[4]),containerPaddingRight:new h(p[3],p[4]),containerPaddingTop:new h(p[2],p[3]),containerPaddingBottom:new h(p[2],p[3]),containerMarginLeft:new h(p[3],p[8]),webkitLineClamp:new h(2,2,1,1,1)},V=te.getLocalizedStrings().spendManagement.reimbursement.reimbursementByTabs,_o=({reimbursementDetail:e,tagStatus:n,currentTab:c,isProcessing:l,isSelected:d,bulkSelectFormId:g,isBulkSelectionLimitReached:b,isSelectionMode:x,reportTitleAdditionalInfo:f,date:u,approvers:y,deletionAdditionalInfo:m,onTransactionRowClick:w})=>{const a=Z(),{getValues:r,setValue:$}=yt(),s=e.reimbursementTypesIncluded,k=Ce(y),B=we(Bt[c]),L=r(g),j=P.useCallback(()=>{!b&&e.bulkSelectInfo?.isSelectableForBulkAction&&!d&&$(g,[...L,e.id])},[g,b,d,$,e.bulkSelectInfo?.isSelectableForBulkAction,e.id,L]),v=P.useCallback(()=>{j()},[j]),z=P.useCallback(E=>{E.stopPropagation(),E.cancelable&&E.preventDefault(),x?j():w(e.id)},[j,x,w,e.id]),K=Ct({onLongPress:v},{shouldPreventDefault:!1,delay:1e3});return t.jsx(Lo,{windowSize:a,statusCode:n?.code??"",isProcessing:l,isSelected:d,children:t.jsx(zo,{onClick:z,...K,"data-testid":ee("remi-row-click-mobile",e.id),children:t.jsxs(Io,{children:[t.jsxs(Do,{children:[t.jsxs(Ro,{children:[t.jsx(Eo,{windowSize:a,children:e.reportTitle??V.newReimbursementTitle}),f!=null&&t.jsx(No,{children:`${V.byText} ${f?.firstName} ${f?.lastName}`})]}),t.jsxs(Fo,{children:[B[1].value+": ",u]}),s.length>1?t.jsx(J,{title:V.reimbursementType.both,placement:"bottom-start",display:"flex",children:t.jsxs(ct,{children:[V.reimbursementType.type+": ",V.reimbursementType.titleForBoth]})}):t.jsxs(ct,{children:[V.reimbursementType.type+": ",V.reimbursementType[s[0]]]})]}),t.jsxs(Ao,{children:[t.jsx(Mo,{children:Be("0,0[.]00",e.amount)}),t.jsxs(Oo,{children:[n!==void 0?t.jsx(Vo,{className:"statusTag",color:n.color,bgColor:n.bgColor,borderColor:n.borderColor,children:n.value??V.hyphenText}):t.jsx(t.Fragment,{children:V.hyphenText}),y!==void 0&&k.length>0?k.length>1?t.jsx(J,{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`
550
+ `,pe={containerPaddingLeft:new h(p[3],p[4]),containerPaddingRight:new h(p[3],p[4]),containerPaddingTop:new h(p[2],p[3]),containerPaddingBottom:new h(p[2],p[3]),containerMarginLeft:new h(p[3],p[8]),webkitLineClamp:new h(2,2,1,1,1)},V=te.getLocalizedStrings().spendManagement.reimbursement.reimbursementByTabs,_o=({reimbursementDetail:e,tagStatus:n,currentTab:c,isProcessing:l,isSelected:d,bulkSelectFormId:g,isBulkSelectionLimitReached:b,isSelectionMode:x,reportTitleAdditionalInfo:f,date:u,approvers:y,deletionAdditionalInfo:m,onTransactionRowClick:w})=>{const a=Z(),{getValues:r,setValue:$}=yt(),s=e.reimbursementTypesIncluded,k=Ce(y),B=we(Bt[c]),L=r(g),j=P.useCallback(()=>{!b&&e.bulkSelectInfo?.isSelectableForBulkAction&&!d&&$(g,[...L,e.id])},[g,b,d,$,e.bulkSelectInfo?.isSelectableForBulkAction,e.id,L]),v=P.useCallback(()=>{j()},[j]),z=P.useCallback(E=>{E.stopPropagation(),E.cancelable&&E.preventDefault(),x?j():w(e.id)},[j,x,w,e.id]),K=Ct({onLongPress:v},{shouldPreventDefault:!1,delay:1e3});return t.jsx(Lo,{windowSize:a,statusCode:n?.code??"",isProcessing:l,isSelected:d,children:t.jsx(zo,{onClick:z,...K,"data-testid":ee("remi-row-click-mobile",e.id),children:t.jsxs(Do,{children:[t.jsxs(Io,{children:[t.jsxs(Ro,{children:[t.jsx(Eo,{windowSize:a,children:e.reportTitle??V.newReimbursementTitle}),f!=null&&t.jsx(No,{children:`${V.byText} ${f?.firstName} ${f?.lastName}`})]}),t.jsxs(Fo,{children:[B[1].value+": ",u]}),s.length>1?t.jsx(J,{title:V.reimbursementType.both,placement:"bottom-start",display:"flex",children:t.jsxs(ct,{children:[V.reimbursementType.type+": ",V.reimbursementType.titleForBoth]})}):t.jsxs(ct,{children:[V.reimbursementType.type+": ",V.reimbursementType[s[0]]]})]}),t.jsxs(Ao,{children:[t.jsx(Mo,{children:Be("0,0[.]00",e.amount)}),t.jsxs(Oo,{children:[n!==void 0?t.jsx(Vo,{className:"statusTag",color:n.color,bgColor:n.bgColor,borderColor:n.borderColor,children:n.value??V.hyphenText}):t.jsx(t.Fragment,{children:V.hyphenText}),y!==void 0&&k.length>0?k.length>1?t.jsx(J,{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};
@@ -604,11 +604,11 @@ import{a as Et,c7 as Nt,M as te,l as W,e as Z,kI as Mt,j as t,F as Ft,bS as Ot,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`
@@ -663,7 +663,7 @@ import{a as Et,c7 as Nt,M as te,l as W,e as Z,kI as Mt,j as t,F as Ft,bS as Ot,b
663
663
  border: ${e=>`1px solid ${e.borderColor}`};
664
664
  border-radius: ${i.sp1};
665
665
  margin-left: auto;
666
- `,Wo={lastListItemHeight:new h(200,158)},T=te.getLocalizedStrings(),{common:{texts:{maxLimit:Uo}},spendManagement:{billPay:_t,reimbursement:Ko}}=T,G=_t.bulkActions,M=Ko.bulkActions,N=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??N:e[S].reportTitle??N;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:X,style:ie,...re}=S;return t.jsx(bn,{ref:I,style:{...ie,width:"auto"},...re,children:t.jsx(yn,{children:X})})});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!=N?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(Gt,{ref:K,height:S,itemCount:y==="bill_pay"||y==="reimbursement"?1:e.length,innerElementType:E,itemSize:z,estimatedItemSize:Yt,itemKey:X=>e[X].id,width:I,overscanCount:Ht,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:Go})})})})},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:X,onProceedForBulkActionClick:ie})=>{const re=Et({defaultValues:{bulkSelectIds:s},values:{bulkSelectIds:s}});P.useEffect(()=>{const _=re.watch((D,{name:C})=>{C!=null&&D!=null&&Nt(()=>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(),[Ne,O]=P.useState(!1),[q,Me]=P.useState({type:N,title:N,description:N,primaryButtonText:N,secondaryButtonText:N});P.useEffect(()=>{const _=Mt(d,u,m);z==="Completed"&&_!=null&&S?.trackPageLoaded(_,m==="bill_pay"?"Bills":"Reimbursements")},[S,d,u,m,z]);const zt=_=>{v(_)},It=P.useCallback(()=>{const{title:_,description:D}=ln(m,s.length,d,$);if(Me({type:"delete",title:_,description:D,primaryButtonText:T.common.texts.confirm,secondaryButtonText:T.common.texts.close}),m==="bill_pay"){const C=e.filter(oe=>s.includes(oe.id)),A=W.getBillListUniqueType(C);S?.trackBillPayBulkDeleted(s.length,d,u,A)}else{const C=e.filter(oe=>s.includes(oe.id)),A=W.getRemiListUniqueType(C.map(oe=>oe.reimbursementTypesIncluded));S?.trackReimbursementBulkDeleted(s.length,d,u,A)}O(!0)},[m,S,$,u,d,e,s]),Dt=P.useCallback(()=>{const{title:_,description:D}=nn(m,s.length);Me({type:"cancel",title:_,description:D,primaryButtonText:T.common.texts.confirm,secondaryButtonText:T.common.texts.close}),O(!0)},[m,s.length]),At={onOkClick:_=>{if(O(!1),m==="bill_pay"){const D=e.filter(A=>s.includes(A.id)),C=W.getBillListUniqueType(D);S?.trackBillPayBulkPopupConfirm(q.type,d,u,C)}else{const D=e.filter(A=>s.includes(A.id)),C=W.getRemiListUniqueType(D.map(A=>A.reimbursementTypesIncluded));S?.trackReimbursementBulkPopupConfirm(q.type,d,u,C)}q.type==="delete"?ie?.("delete",_):ie?.("cancel",_)},onCancelClick:()=>{X?.(),O(!1),Me({type:N,title:N,description:N,primaryButtonText:N,secondaryButtonText:N})}},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]),Xe=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(Ft,{...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}),Ne?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")&&Xe?i.sp7:i.sp0} ${i.sp2} ${i.sp0}`}:{},showPrimaryButton:Xe,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:X,style:on(k,ge)},leftSideComponent:Zo(s.length,a,m,ge),rightSideComponent:k.includes("delete")?Xo(s.length,q.type==="delete"&&B==="In-Progress",It,ge):null}):null]})})]})},Go=({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(Xt,{style:{width:"100%"},checkBoxContainerStyle:{gap:i.sp3,width:"auto",marginLeft:B==="small"?i.sp0:i.sp4},labelStyle:{width:"100%"},checkBoxStyle:Jo(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(Ho,{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)}))]})})},Ho=({transactionDetail:e,selectedTab:n,isShowDeletedBillsEnabled:c,billsSelectedForBulkAction:l,bulkSelectFormId:d,bulkSelectLimit:g,isBillPayCommentingEnabled:b,isSelectionMode:x,isDetectInsufficientFundsEnabled:f,onTransactionRowClick:u})=>{const y=Z()==="small"?Oi:Ti,m=ii(e,n),{bulkProcessingDetail:w}=e,a=W.isBulkProcessing(w?.type),r=()=>{const B=e.billPayInfo.outsideZeniTransactionPaymentMode;if(B==null||B==="other")return;const L=_t.billDetails.paymentOutsideZeni.paymentModeOptions.find(j=>j.value===B)?.label;return`${T.common.via} ${L}`},$=f&&e.billPayInfo.stage.code==="scheduled"&&!e.isDeleted&&e.totalAmountWithFeesInUSD!=null?oi(e.totalAmountWithFeesInUSD,e.withdrawFrom,e.billPayInfo.paymentDate):void 0,s=ni(e.billPayInfo,n,c,e.isDeleted,e.dueDate),k=$!=null&&s?.code!=="failed"&&s?.code!=="processing"&&s?.code!=="cancelled"&&s?.code!=="returned"&&s?.code!=="rejected"&&s?.code!=="paid";return t.jsx(Lt,{children:t.jsx(y,{reportTitleAdditionalInfo:m,transactionDetail:e,isBillPayCommentingEnabled:b,isSelected:l.includes(e.id),isProcessing:a,isBulkSelectionLimitReached:l.length===g,isSelectionMode:x,bulkSelectFormId:d,tagStatus:s,approvers:e.isDeleted===!0?void 0:ht(e,n),deletionAdditionalInfo:e.isDeleted===!0&&n!=="draft"?ut(e,n):void 0,onTransactionRowClick:a?()=>null:u,paidAdditionalInfo:n==="paid"&&!e.isDeleted?r():void 0,lowBalanceAlert:$,showLowBalanceTooltip:k})})},Yo=({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})})},Jo=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"?G.bill:M.report,g=(e>1?d+"s":d)+G.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},Xo=(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(Jt,{size:"Small",start:!0}):t.jsx(J,{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:G.popUps.cancel.title.replace("<_bill_>",T.drawerMenus.bills),description:G.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:G.popUps.cancel.title.replace("<_bill_>",G.bill),description:G.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 $=N;e==="bill_pay"?$=G.popUps.delete.title.replace("<_bill_>",r?G.bills:G.bill):$=M.popUps.delete.title.replace("__report__",r?M.reports:M.report);let s=N;return c==="draft"?e==="bill_pay"?s=G.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=G.popUps.delete.descriptionRecurring.replace("<_payment_>",r?b:x):e==="bill_pay"?s=G.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,G=_t.bulkActions,M=Ko.bulkActions,N=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 D=y==="bill_pay"?e[S].vendor?.name??e[S].candidateVendorName??N:e[S].reportTitle??N;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:X,style:ie,...re}=S;return t.jsx(bn,{ref:D,style:{...ie,width:"auto"},...re,children:t.jsx(yn,{children:X})})});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!=N?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(Gt,{ref:K,height:S,itemCount:y==="bill_pay"||y==="reimbursement"?1:e.length,innerElementType:E,itemSize:z,estimatedItemSize:Yt,itemKey:X=>e[X].id,width:D,overscanCount:Ht,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:Go})})})})},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:X,onProceedForBulkActionClick:ie})=>{const re=Et({defaultValues:{bulkSelectIds:s},values:{bulkSelectIds:s}});P.useEffect(()=>{const _=re.watch((I,{name:C})=>{C!=null&&I!=null&&Nt(()=>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=Z(),[Ne,O]=P.useState(!1),[q,Me]=P.useState({type:N,title:N,description:N,primaryButtonText:N,secondaryButtonText:N});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(_)},Dt=P.useCallback(()=>{const{title:_,description:I}=ln(m,s.length,d,$);if(Me({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);Me({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:()=>{X?.(),O(!1),Me({type:N,title:N,description:N,primaryButtonText:N,secondaryButtonText:N})}},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]),Xe=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(Ft,{...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}),Ne?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")&&Xe?i.sp7:i.sp0} ${i.sp2} ${i.sp0}`}:{},showPrimaryButton:Xe,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:X,style:on(k,ge)},leftSideComponent:Zo(s.length,a,m,ge),rightSideComponent:k.includes("delete")?Xo(s.length,q.type==="delete"&&B==="In-Progress",Dt,ge):null}):null]})})]})},Go=({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(Xt,{style:{width:"100%"},checkBoxContainerStyle:{gap:i.sp3,width:"auto",marginLeft:B==="small"?i.sp0:i.sp4},labelStyle:{width:"100%"},checkBoxStyle:Jo(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(Ho,{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)}))]})})},Ho=({transactionDetail:e,selectedTab:n,isShowDeletedBillsEnabled:c,billsSelectedForBulkAction:l,bulkSelectFormId:d,bulkSelectLimit:g,isBillPayCommentingEnabled:b,isSelectionMode:x,isDetectInsufficientFundsEnabled:f,onTransactionRowClick:u})=>{const y=Z()==="small"?Oi:Ti,m=ii(e,n),{bulkProcessingDetail:w}=e,a=W.isBulkProcessing(w?.type),r=()=>{const B=e.billPayInfo.outsideZeniTransactionPaymentMode;if(B==null||B==="other")return;const L=_t.billDetails.paymentOutsideZeni.paymentModeOptions.find(j=>j.value===B)?.label;return`${T.common.via} ${L}`},$=f&&e.billPayInfo.stage.code==="scheduled"&&!e.isDeleted&&e.totalAmountWithFeesInUSD!=null?oi(e.totalAmountWithFeesInUSD,e.withdrawFrom,e.billPayInfo.paymentDate):void 0,s=ni(e.billPayInfo,n,c,e.isDeleted,e.dueDate),k=$!=null&&s?.code!=="failed"&&s?.code!=="processing"&&s?.code!=="cancelled"&&s?.code!=="returned"&&s?.code!=="rejected"&&s?.code!=="paid";return t.jsx(Lt,{children:t.jsx(y,{reportTitleAdditionalInfo:m,transactionDetail:e,isBillPayCommentingEnabled:b,isSelected:l.includes(e.id),isProcessing:a,isBulkSelectionLimitReached:l.length===g,isSelectionMode:x,bulkSelectFormId:d,tagStatus:s,approvers:e.isDeleted===!0?void 0:ht(e,n),deletionAdditionalInfo:e.isDeleted===!0&&n!=="draft"?ut(e,n):void 0,onTransactionRowClick:a?()=>null:u,paidAdditionalInfo:n==="paid"&&!e.isDeleted?r():void 0,lowBalanceAlert:$,showLowBalanceTooltip:k})})},Yo=({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})})},Jo=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"?G.bill:M.report,g=(e>1?d+"s":d)+G.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},Xo=(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(Jt,{size:"Small",start:!0}):t.jsx(J,{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:G.popUps.cancel.title.replace("<_bill_>",T.drawerMenus.bills),description:G.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:G.popUps.cancel.title.replace("<_bill_>",G.bill),description:G.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 $=N;e==="bill_pay"?$=G.popUps.delete.title.replace("<_bill_>",r?G.bills:G.bill):$=M.popUps.delete.title.replace("__report__",r?M.reports:M.report);let s=N;return c==="draft"?e==="bill_pay"?s=G.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=G.popUps.delete.descriptionRecurring.replace("<_payment_>",r?b:x):e==="bill_pay"?s=G.popUps.delete.descriptionOther.replace("<_this_>",r?g:d).replace("<_bill_>",r?f:u).replace("<_it_>",r?w:a).replace("<_payment_>",r?x:b):s=M.popUps.delete.descriptionOther.replace("<_this_>",r?g:d).replace("__report__",r?m:y).replace("<_it_>",r?w:a).replace("<_payment_>",r?x:b),{title:$,description:s}},rn=(e,n)=>{const c=e.bulkSelectInfo?.bulkSelectExceptionInfo;return n.length===0&&c!=null&&(c==="bookCloseDateProcessing"||c==="noActionRecurring")?"hover_only":"checked_or_hover"},mt=e=>W.isBulkProcessing(e.bulkProcessingDetail?.type)?"info":"alert",sn=o.div`
667
667
  display: block;
668
668
  height: 100%;
669
669
  `,an=o.form`
@@ -1,4 +1,4 @@
1
- import{e as z,u as _,M as L,j as o,bQ as H,o as r,go as ie,q as B,k as ce,v as J,b2 as Z,C as ee,gp as de,gq as pe,cu as te,b3 as M,ap as ue,d as oe,gr as he,b0 as re,Y as ge,gs as me,gt as xe,n as N,ao as fe,l as A,gu as ye,y as Ce,gv as be,gw as ve,c as we,cr as $e,bf as Se,fv as je,m as ke,h as V,a3 as Le,fw as Oe,a6 as Ee}from"./index-DjfQ_8_G.js";import{b as a,n as l,k as Ie}from"./vendor-CnQcJ2Lu.js";const Ae=l.div`
1
+ import{e as z,u as _,M as L,j as o,bS as H,o as r,gq as ie,q as B,k as ce,v as Q,b2 as Z,C as ee,gr as de,gs as pe,cw as te,b3 as M,ap as ue,d as oe,gt as he,b0 as re,Y as ge,gu as me,gv as xe,n as N,ao as fe,l as A,gw as ye,y as Ce,gx as be,gy as ve,c as we,ct as $e,bf as Se,fx as je,m as ke,h as V,a3 as Le,fy as Oe,a6 as Ee}from"./index-Cnh9fv8f.js";import{b as a,n as l,k as Ie}from"./vendor-rkTZJa59.js";const Ae=l.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  align-items: center;
@@ -6,7 +6,7 @@ import{e as z,u as _,M as L,j as o,bQ as H,o as r,go as ie,q as B,k as ce,v as J
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=Re(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(M.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(M.Option,{...e,children:o.jsxs(Ae,{children:[o.jsx(oe,{children:i}),n?o.jsx(Me,{}):null]})})},Re=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}`})}),Be="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=Re(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(M.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(M.Option,{...e,children:o.jsxs(Ae,{children:[o.jsx(oe,{children:i}),n?o.jsx(Me,{}):null]})})},Re=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}`})}),Be="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.8999%205.04416L9.65575%2017.6653C9.48897%2017.8247%209.29152%2017.9484%209.07541%2018.0291C8.85929%2018.1097%208.62902%2018.1456%208.39862%2018.1345C8.17133%2018.1236%207.94853%2018.0673%207.7434%2017.9689C7.53827%2017.8704%207.35499%2017.7318%207.20439%2017.5612L1.17558%2010.7125'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ze=l.div`
10
10
  display: flex;
11
11
  align-items: flex-start;
12
12
  padding: ${r.sp2} ${r.sp3};
@@ -52,7 +52,7 @@ import{e as z,u as _,M as L,j as o,bQ as H,o as r,go as ie,q as B,k as ce,v as J
52
52
  `,Ye=l(Ee)`
53
53
  overflow: hidden;
54
54
  text-overflow: ellipsis;
55
- `,Ge=({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?qe(p?.entityAutoCompleteView):[]],"value"))},[p?.entityAutoCompleteView.fetchState]);const S=i==="searchAutocomplete"?t.map(d=>({label:d,value:d})):t.map(d=>b.find(f=>f.value===d)),v=a.useRef(Ce(d=>s?.onAutoCompleteInputChange?.(d),500,{trailing:!0})).current,j=p?.entityAutoCompleteView.fetchState,O={options:e,filterCategoryType:i,searchAutoCompleteStatus:j},$=L.getLocalizedStrings().common.filters;return o.jsx(ze,{children:i==="dateRange"?o.jsx(be,{onDateRangeChange:d=>{C([{label:$.startDate,value:d.startDate??""},{label:$.endDate,value:d.endDate??""}])},selectedDates:t}):o.jsxs(_e,{children:[S.length===0&&i==="user"&&o.jsx(Ve,{}),o.jsx(Z,{...O,isMulti:!0,hideSelectedOptions:!1,value:S,onInputChange:d=>{i==="searchAutocomplete"&&v(d)},onChange:d=>{C(d)},placeholder:n,options:b,styles:h,menuPosition:"fixed",components:{Option:Ke,MultiValueLabel:Xe,MultiValueRemove:Qe},filterOption:(d,f)=>Ze(d,f,i),noOptionsMessage:()=>Je(i,j)})]})})},qe=e=>(e?.vendor.map(t=>({label:t.name,value:t.name}))??[]).sort((t,n)=>(t.label??"").localeCompare(n.label??"")),Xe=e=>{const{selectProps:t}=e,{options:n,filterCategoryType:i}=t,p=n.findIndex(s=>s.value===e.data.value);return o.jsx(M.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(Ye,{children:e.children})]})})},Ke=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(M.Option,{...h,children:o.jsxs(He,{children:[o.jsxs(De,{children:[ne(e.data.photo,e.data.label.split(" ")[0],e.data.label.split(" ")[1]!=null?e.data.label.split(" ")[1]:"",y,C),o.jsx(oe,{children:e.label})]}),e.isSelected&&o.jsx(We,{})]})})},Qe=e=>o.jsx(M.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=Be},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 A.BILL_PAY_FILTER_CATEGORIES;case"reimbursement":return A.hideCreatedByFilter(t)?A.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED:A.REIMBURSEMENT_FILTER_CATEGORIES;case"task_management":return A.TASK_LIST_FILTER_CATEGORIES}},R=(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
+ `,Ge=({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?qe(p?.entityAutoCompleteView):[]],"value"))},[p?.entityAutoCompleteView.fetchState]);const S=i==="searchAutocomplete"?t.map(d=>({label:d,value:d})):t.map(d=>b.find(f=>f.value===d)),v=a.useRef(Ce(d=>s?.onAutoCompleteInputChange?.(d),500,{trailing:!0})).current,j=p?.entityAutoCompleteView.fetchState,O={options:e,filterCategoryType:i,searchAutoCompleteStatus:j},$=L.getLocalizedStrings().common.filters;return o.jsx(ze,{children:i==="dateRange"?o.jsx(be,{onDateRangeChange:d=>{C([{label:$.startDate,value:d.startDate??""},{label:$.endDate,value:d.endDate??""}])},selectedDates:t}):o.jsxs(_e,{children:[S.length===0&&i==="user"&&o.jsx(Ve,{}),o.jsx(Z,{...O,isMulti:!0,hideSelectedOptions:!1,value:S,onInputChange:d=>{i==="searchAutocomplete"&&v(d)},onChange:d=>{C(d)},placeholder:n,options:b,styles:h,menuPosition:"fixed",components:{Option:Ke,MultiValueLabel:Xe,MultiValueRemove:Je},filterOption:(d,f)=>Ze(d,f,i),noOptionsMessage:()=>Qe(i,j)})]})})},qe=e=>(e?.vendor.map(t=>({label:t.name,value:t.name}))??[]).sort((t,n)=>(t.label??"").localeCompare(n.label??"")),Xe=e=>{const{selectProps:t}=e,{options:n,filterCategoryType:i}=t,p=n.findIndex(s=>s.value===e.data.value);return o.jsx(M.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(Ye,{children:e.children})]})})},Ke=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(M.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(M.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(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=Be},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 A.BILL_PAY_FILTER_CATEGORIES;case"reimbursement":return A.hideCreatedByFilter(t)?A.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED:A.REIMBURSEMENT_FILTER_CATEGORIES;case"task_management":return A.TASK_LIST_FILTER_CATEGORIES}},R=(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{e as z,u as _,M as L,j as o,bQ as H,o as r,go as ie,q as B,k as ce,v as J
123
123
  width: ${e=>rt.width.valuePx(e.windowSize)};
124
124
  background: ${e=>e.theme.colors.background};
125
125
  border-radius: ${r.sp1};
126
- `,Q=l.div`
126
+ `,J=l.div`
127
127
  display: flex;
128
128
  align-items: center;
129
129
  column-gap: ${r.sp3};
@@ -139,7 +139,7 @@ import{e as z,u as _,M as L,j as o,bQ as H,o as r,go as ie,q as B,k as ce,v as J
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(X,{onClick:j,children:[o.jsx(nt,{}),o.jsx(N,{children:d.addFilterBtnText})]}),o.jsxs(X,{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(Y,{children:o.jsxs(Q,{children:[o.jsx(G,{children:o.jsx(K,{children:d.filterByLabel})}),o.jsx(q,{children:o.jsx(W,{defaultMenuIsOpen:!0,onChange:b,placeHolder:d.categoryPlaceholder,getOptionLabel:c=>R(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?R(n,g?.value):"";return o.jsxs(Y,{windowSize:h,children:[o.jsxs(Q,{children:[o.jsxs(G,{children:[u===0&&o.jsx(K,{children:d.filterByLabel}),u!==0?o.jsx(me,{categoryCombinationOperator:e.categoryCombinationOperator,onChange:S,buttonsDisabled:u>1}):null]}),o.jsx(q,{children:o.jsx(W,{value:c.field,placeHolder:d.categoryPlaceholder,onChange:w=>b(w,u),getOptionLabel:w=>R(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(Ge,{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(X,{onClick:j,children:[o.jsx(nt,{}),o.jsx(N,{children:d.addFilterBtnText})]}),o.jsxs(X,{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(Y,{children:o.jsxs(J,{children:[o.jsx(G,{children:o.jsx(K,{children:d.filterByLabel})}),o.jsx(q,{children:o.jsx(W,{defaultMenuIsOpen:!0,onChange:b,placeHolder:d.categoryPlaceholder,getOptionLabel:c=>R(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?R(n,g?.value):"";return o.jsxs(Y,{windowSize:h,children:[o.jsxs(J,{children:[o.jsxs(G,{children:[u===0&&o.jsx(K,{children:d.filterByLabel}),u!==0?o.jsx(me,{categoryCombinationOperator:e.categoryCombinationOperator,onChange:S,buttonsDisabled:u>1}):null]}),o.jsx(q,{children:o.jsx(W,{value:c.field,placeHolder:d.categoryPlaceholder,onChange:w=>b(w,u),getOptionLabel:w=>R(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(Ge,{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{e as z,u as _,M as L,j as o,bQ as H,o as r,go as ie,q as B,k as ce,v as J
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":B[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 Mt({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:B[0]}),valueContainer:()=>({display:"flex","#react-select-2-placeholder":{marginRight:B[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)`
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":B[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 Mt({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:B[0]}),valueContainer:()=>({display:"flex","#react-select-2-placeholder":{marginRight:B[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)`
161
161
  height: ${r.sp4};
162
162
  width: ${r.sp4};
163
163
  `,wt=l.div`
@@ -1,4 +1,4 @@
1
- import{e as Te,ck as qe,u as Ge,M as K,cs as Je,a2 as se,e_ as Ze,l as W,a8 as re,j as t,aS as Ye,C as d,f6 as Xe,f7 as Ke,f8 as Qe,bF as et,q as o,a0 as tt,e$ as ye,f0 as ve,o as i,_ as N,f9 as Le,m as pe,c as j,f1 as it,b as ze,fa as nt,f2 as at,d as ot,bx as $e,cD as lt,a7 as st,fb as rt,B as _e,af as Ae,fc as ct,cp as dt}from"./index-DjfQ_8_G.js";import{b as f,n}from"./vendor-CnQcJ2Lu.js";import{r as ut}from"./mui-Bi8r7UDG.js";import{S as pt}from"./ChargeCardUtils-6kq_92Ri-Dli-fqCF.js";import{Z as ht}from"./CreditCardPaymentPlgSection-BGh2TJeK-iEMZXSJH.js";import{M as gt}from"./ChaseOverlay-N7gGQaMQ-DQdim44v.js";import{J as mt}from"./SetUpDefaultSection-a6NTauck-DWk4cHNK.js";const Q={sectionWidth:new d(343,580,726),rowGap:new d(o[2],o[3]),footerPaddingLeftRight:new d(o[3],o[4])},ft={title:new ze("standardMedium","largeMedium")};function xt({plaidConnectionDetails:e,header:p,isAccountsEnabled:v=!0,analytics:x,pageName:b,accountsPromoConfig:$,style:A,onConnectClick:M,onSignUpClick:I}){const u=Te(),{setUp:r}=K.getLocalizedStrings().commonSetUp,m=e.link_account,P=m.fetchStatus.fetchState==="In-Progress"||m.updateStatus.fetchState==="In-Progress";return t.jsxs(St,{windowSize:u,style:A,"data-testid":N("default-account-section",b),children:[t.jsx(wt,{children:t.jsx(bt,{windowSize:u,children:p})}),t.jsxs(yt,{windowSize:u,width:A?.width,children:[t.jsx(Le,{heading:r.accountsPlg.heading,buttonText:r.accountsPlg.signUpButtonText,onSignUpClick:I,isAccountsEnabled:v,pageName:b,analytics:x,style:{borderTopLeftRadius:i.sp2,borderTopRightRadius:i.sp2},accountsPromoConfig:$}),t.jsxs($t,{windowSize:u,children:[t.jsxs(kt,{onClick:M,children:[t.jsx(Ct,{isLoading:P,children:r.connectExternalAccount}),P?null:t.jsx(jt,{className:"right-arrow"})]}),P?t.jsx(vt,{children:t.jsx(pe,{size:"ExtraSmall",start:!0,style:{display:"flex"}})}):null]})]})]})}const St=n.div`
1
+ import{e as Te,cm as qe,u as Ge,M as K,cu as Je,a2 as se,f0 as Ze,l as W,a8 as re,j as t,aS as Ye,C as d,f8 as Xe,f9 as Ke,fa as Qe,bt as et,q as o,a0 as tt,f1 as ye,f2 as ve,o as i,_ as V,fb as Le,m as pe,c as j,f3 as it,b as ze,fc as nt,f4 as at,d as ot,bA as $e,cF as lt,a7 as st,fd as rt,B as Ae,af as _e,fe as ct,cr as dt}from"./index-Cnh9fv8f.js";import{b as f,n}from"./vendor-rkTZJa59.js";import{r as ut}from"./mui-C42whWwM.js";import{S as pt}from"./ChargeCardUtils-BcwLwgz7-DrE0N0EF.js";import{Z as ht}from"./CreditCardPaymentPlgSection-8NQI5gcx-CtF_TfUM.js";import{M as gt}from"./ChaseOverlay-ClcKUdpT-Buerorcp.js";import{q as mt}from"./SetUpDefaultSection-B-ZEHQUb-iLzGQnWH.js";const Q={sectionWidth:new d(343,580,726),rowGap:new d(o[2],o[3]),footerPaddingLeftRight:new d(o[3],o[4])},ft={title:new ze("standardMedium","largeMedium")};function xt({plaidConnectionDetails:e,header:p,isAccountsEnabled:v=!0,analytics:x,pageName:b,accountsPromoConfig:$,style:_,onConnectClick:M,onSignUpClick:I}){const u=Te(),{setUp:r}=K.getLocalizedStrings().commonSetUp,m=e.link_account,P=m.fetchStatus.fetchState==="In-Progress"||m.updateStatus.fetchState==="In-Progress";return t.jsxs(St,{windowSize:u,style:_,"data-testid":V("default-account-section",b),children:[t.jsx(wt,{children:t.jsx(bt,{windowSize:u,children:p})}),t.jsxs(yt,{windowSize:u,width:_?.width,children:[t.jsx(Le,{heading:r.accountsPlg.heading,buttonText:r.accountsPlg.signUpButtonText,onSignUpClick:I,isAccountsEnabled:v,pageName:b,analytics:x,style:{borderTopLeftRadius:i.sp2,borderTopRightRadius:i.sp2},accountsPromoConfig:$}),t.jsxs($t,{windowSize:u,children:[t.jsxs(kt,{onClick:M,children:[t.jsx(Ct,{isLoading:P,children:r.connectExternalAccount}),P?null:t.jsx(jt,{className:"right-arrow"})]}),P?t.jsx(vt,{children:t.jsx(pe,{size:"ExtraSmall",start:!0,style:{display:"flex"}})}):null]})]})]})}const St=n.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${e=>Q.rowGap.valuePx(e.windowSize)};
@@ -24,7 +24,7 @@ import{e as Te,ck as qe,u as Ge,M as K,cs as Je,a2 as se,e_ as Ze,l as W,a8 as r
24
24
  align-items: center;
25
25
  justify-content: center;
26
26
  margin-left: ${i.sp2};
27
- `,$t=n(_e)`
27
+ `,$t=n(Ae)`
28
28
  display: flex;
29
29
  align-items: center;
30
30
  padding-top: ${i.sp1};
@@ -46,22 +46,22 @@ import{e as Te,ck as qe,u as Ge,M as K,cs as Je,a2 as se,e_ as Ze,l as W,a8 as r
46
46
  }
47
47
  `,Ct=n.span`
48
48
  pointer-events: ${e=>e.isLoading===!0?"none":"initial"};
49
- `,jt=n(Ae)`
49
+ `,jt=n(_e)`
50
50
  margin-left: ${i.sp1};
51
51
  width: 12px;
52
52
  height: 12px;
53
53
  cursor: pointer;
54
54
  color: ${e=>e.theme.colors.hero};
55
- `,s={labelWidth:new d(120,190,190),sectionWidth:new d(343,580,726),iconContainerMaxWidthHeight:new d(o[6],o[7]),iconPadding:new d(10,12),rowGap:new d(o[2],o[3]),elementsMarginLeftRight:new d(o[3],o[4]),labeledFieldPaddingLeft:new d(o[3],o[0]),labeledFieldPaddingRight:new d(o[3],o[2]),labeledFieldPaddingTop:new d(o[3],o[3]),labeledFieldPaddingBottom:new d(o[3],o[2]),labeleMarginLeft:new d(o[0],o[4]),labeleMarginBottom:new d(o[2],o[0]),infoLabelPaddingRight:new d(o[0],o[3]),infoLabelMarginTop:new d(o[1],o[0]),iconWidthHeight:new d(20,o[4])},Pt={title:new ze("standardSemiBold","largeSemiBold")};function si({primaryFundingAccount:e,allFundingAccounts:p,allBankAccounts:v,plaidConnectionDetails:x,sectionId:b,isDisabled:$,icon:A,sectionTitle:M,style:I,analytics:u,productType:r,referrer:m,accountSelectContainerStyle:P,connectedAccountProvider:te,isCompleted:H=!1,showCompletedIcon:q=!1,showZeniAccountSection:ie=!0,isAccountsEnabled:k,accountsPromoConfig:T,pageName:G,onFetchLinkTokenClick:L,onEstablishConnectionClick:J,onUpdatePaymentAccountStatus:E,onEstablishConnectionSuccess:D,onSignUpClick:ne,bottomComponent:Ie}){const a=Te(),{trigger:Ee,formState:{errors:Re}}=qe(),U=f.useRef(null),R=Ge(),{setUp:h}=K.getLocalizedStrings().commonSetUp,Z=K.getLocalizedStrings().spendManagement.chargeCard.payEarly;let y,he,c,S=!1;e!=null&&e.accType==="paymentAccount"&&(y=e.providerVerificationStatus,he=e?.institutionDetails,c=y?.code,S=e?.isLoginRequired??!1);const ae=ke(b,"account"),Be=Je(Re,ae),[z,Y]=f.useState(void 0),g=x.link_account,_=x.update_account,w=z==="update_account"?_:g,[B,ge]=f.useState(w.linkToken??null),[F,X]=f.useState(!1),[Me,me]=f.useState(!1),fe=se(g.updateStatus.fetchState),oe=se(_.updateStatus.fetchState),De=se(_.fetchStatus.fetchState),Ue=f.useCallback((l,C)=>{u.trackConnectBankSuccess(r,m);const be=C.accounts.find(He=>He.id===e?.providerAccountId)??C.accounts[0];e?.id!=null&&z==="update_account"&&be?.verification_status!=null&&!S?E(be?.verification_status,e.id,"update_account"):J(l,z),Y(void 0),X(!1)},[u,m,r,e?.id,e?.providerAccountId,z,S,E,J]),Fe=f.useCallback((l,C)=>{l!=null&&(u.trackConnectBankFailure(r,l.error_code+" "+l.error_message,m),l.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e?.id!=null&&E("verification_failed",e.id,"update_account"),console.log("Plaid Connection Error",l,C)),Y(void 0),X(!1)},[u,r,m,e?.id,E]),{open:O,ready:xe}=Ze({token:B,onSuccess:Ue,onExit:Fe});f.useEffect(()=>{(fe==="In-Progress"&&g.updateStatus.fetchState==="Completed"||oe==="In-Progress"&&_.updateStatus.fetchState==="Completed")&&(W.isVerifiedPaymentAccountProviderStatusCode(c??"")||(L("link_account"),D()))},[g.updateStatus.fetchState,D,L,e?.providerVerificationStatus?.code,e?.id,fe,oe,_.updateStatus.fetchState,c]),f.useEffect(()=>{(W.isVerifiedStatusCode(c??"")||c==="verification_failed")&&!F&&z!=null&&w.linkToken===B&&w.fetchStatus.fetchState==="Completed"&&xe&&X(!0)},[xe,B,w.fetchStatus.fetchState,w.linkToken,c,z,F]),f.useEffect(()=>{w.fetchStatus.fetchState==="Completed"&&w.linkToken!=null&&w.linkToken!==B&&ge(w.linkToken)},[w.fetchStatus.fetchState,w.linkToken,B]),f.useEffect(()=>{F&&O()},[F,O]),f.useEffect(()=>{!e?.zeniAccountId&&!Be&&Ee(ae)},[e?.id]),f.useEffect(()=>{(c==null||c==="verification_failed"||c==="verification_expired"||W.isVerifiedStatusCode(c))&&(W.zeniDate(new Date().toISOString()).isAfter(g.expiration)||g.linkToken==null)&&L("link_account")},[]);const Oe=()=>{u.trackConnectBankGetBalance(r,m),Y("update_account"),L("update_account",e?.id)},Se=`${e?.accountSubType?.name!=null?e?.accountSubType?.name.substring(0,1).toUpperCase().concat(e?.accountSubType?.name.substring(1)):""} ${e?.maskedAccountNumber??""}`.trim(),le=g.fetchStatus.fetchState==="In-Progress"||g.updateStatus.fetchState==="In-Progress",We=p.findIndex(l=>l.id===e?.id),Ve=()=>{me(!0)},Ne=R.mode==="light"?new re(R.colors.brandColorJadeLight):new re(R.colors.brandColorJadeDark);if(e==null&&p.length===0)return r==="zeni_accounts"?t.jsx(mt,{onClick:()=>{(c==null||c==="verification_failed"||c==="verification_expired")&&(u.trackConnectBank(r,m),O())},title:h.achTitle,subTitle:h.achSubTitle,header:h.paymentSource,isCompleted:H,showCompletedIcon:q,icon:{element:t.jsx(Ye,{width:s.iconWidthHeight.valuePx(a),height:s.iconWidthHeight.valuePx(a)}),color:new re(Ne)},isLoading:le,status:y}):t.jsx(Ce,{windowSize:a,style:I,children:t.jsx(xt,{header:h.paymentSource,plaidConnectionDetails:x,onConnectClick:()=>{(c==null||c==="verification_failed"||c==="verification_expired")&&(u.trackConnectBank(r,m),O())},onSignUpClick:ne,isAccountsEnabled:!1,analytics:u,pageName:G,accountsPromoConfig:T})});const we=he?.zeniInstitutionId.toLowerCase()==="chase";return t.jsxs(Ce,{windowSize:a,style:I,children:[Me===!0?ut.createPortal(t.jsx(gt,{connectedAccountProvider:te,action:{onBackClick:()=>me(!1)}}),document.body):null,t.jsxs(Wt,{children:[q===!0?t.jsx(Nt,{children:H?t.jsx(Ht,{}):t.jsx(qt,{})}):null,t.jsx(Vt,{windowSize:a,children:M??h.paymentSource})]}),t.jsxs(Ot,{windowSize:a,isDisabled:S,children:[t.jsxs(At,{windowSize:a,children:[t.jsxs(Bt,{children:[e!=null?t.jsx(Rt,{isDisabled:S,children:Tt(A,a,R.mode==="dark",e,We)}):null,t.jsxs(Xt,{children:[t.jsxs(Gt,{children:[t.jsx(Xe,{ref:U,style:{display:a==="small"?"block":"inherit",width:"-webkit-fill-available"},customStyleConfig:{menu:()=>({width:a==="small"?"100%":"510px"})},controlProperty:{controlHeight:o[4],fontWeight:et.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:a==="small"?240:300},customPlaceholder:{color:R.colors.hero,weight:500},name:ke(b,"fundingAccount"),placeholder:h.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(l,C)=>Qe(p,l,C),valueToSubLabels:(l,C)=>Ke(p,l,C,!1),defaultValue:{selectedOption:e?.id,allOptions:p.map(l=>({label:l.label,value:l.id,isRecommended:l.accType==="depositAccount"}))},textAlignment:"left",showDownChevronIcon:!0,showTickIcon:!1,isOptionRemovable:!1,registerOptions:{required:!1},showCreateOption:!0,isDisabled:le?"disabled":void 0,showLoadingIcon:le,onClickCreateOption:()=>{u.trackConnectBank(r,m),Y("link_account"),g.linkToken==null||W.zeniDate(new Date().toISOString()).isAfter(g.expiration)?L("link_account"):B!==g.linkToken?ge(g.linkToken):F?O():X(!0)}}),t.jsxs(Dt,{isDisabled:S,children:[Se?t.jsxs(t.Fragment,{children:[t.jsx(ee,{children:Se}),a!=="small"&&(c!=="verification_failed"&&e?.providerVerificationStatus?.code==="pending_manual_verification"||S||we||e?.accountBalance?.available)?t.jsx(Zt,{}):null]}):null,c!=="verification_failed"&&e?.providerVerificationStatus?.code==="pending_manual_verification"||S||we?t.jsx(Lt,{isUpdateLinkClicked:z==="update_account",isLoginRequired:S,isPendingVerification:c!=="verification_failed"&&e?.providerVerificationStatus?.code==="pending_manual_verification",productType:r,fetchAndUpdateStatues:{fetchStatus:_.fetchStatus,updateStatus:_.updateStatus,linkFetchStatus:g.fetchStatus,linkUpdateStatus:g.updateStatus,prevFetchState:De,prevUpdateState:oe},onUpdateLinkTokenClick:Oe,onChaseInfoClick:Ve}):e?.accountBalance?.available?t.jsx(ee,{children:tt("0,0[.]00",e?.accountBalance?.available)}):null]})]}),y!=null&&a==="small"?t.jsx(ye,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:y.name,textColor:ve(y.code)}):null]})]}),t.jsx(Mt,{children:y!=null&&a!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(ye,{style:{width:"max-content"},tagTitle:y.name,textColor:ve(y.code)}),t.jsx(Jt,{})]}):null})]}),ie?t.jsxs(It,{style:P,windowSize:a,isDisabled:S,onClick:l=>l.stopPropagation(),"data-testid":N("account-select-container",r),children:[t.jsx(Et,{isDisabled:S?"disabled":$,label:{label:h.zeniCashAccountLabel,width:a==="small"?void 0:s.labelWidth.value(a),style:{marginLeft:s.labeleMarginLeft.valuePx(a),marginBottom:s.labeleMarginBottom.valuePx(a)}},style:{paddingTop:s.labeledFieldPaddingTop.valuePx(a),paddingBottom:s.labeledFieldPaddingBottom.valuePx(a),paddingLeft:s.labeledFieldPaddingLeft.valuePx(a),paddingRight:s.labeledFieldPaddingRight.valuePx(a),borderRadius:i.sp2,border:`1px solid ${R.colors.grey3}`,width:"-webkit-fill-available",display:a==="small"?"block":"inherit"},infoLabelStyle:{textAlign:a==="small"?"left":"right",paddingRight:s.infoLabelPaddingRight.valuePx(a),marginTop:s.infoLabelMarginTop.valuePx(a)},singleSelectPickerField:{name:ae,placeholder:h.zeniCashAccountPlaceholder,style:{position:"relative"},defaultValue:{selectedOption:e?.zeniAccountId??"",allOptions:v.map(l=>({label:l.accountName,value:l.accountId}))},isOptionRemovable:!1,withBorder:a==="small",textAlignment:a==="small"?"left":"right",registerOptions:{required:!1}},valueToAdditionalLabel:()=>h.zeniCashAcoountInfo}),Ie]}):null,e?.accType==="paymentAccount"?r==="charge_cards"?t.jsx(ht,{style:{borderRadius:`${i.sp0} ${i.sp0} ${i.sp2} ${i.sp2}`},maxInsuredAmount:T.maxInsuredAmount,heading:t.jsxs(zt,{windowSize:a,children:[Z.earn,t.jsx(_t,{children:Z.percentageCashback.replace("__percentage__",pt)}),Z.whenYouPayViaZeniChecking]}),buttonText:k===!1?h.accountsPlg.signUpButtonText:h.accountsPlg.switchButtonText,isAccountsEnabled:k,pageName:Z.creditCardPayment,onSignUpClick:ne,onSwitchClick:()=>{U.current!=null&&U.current.focus()}}):r!=="zeni_accounts"?t.jsx(Le,{heading:h.accountsPlg.heading,style:{borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},isAccountsEnabled:k,buttonText:k===!1?h.accountsPlg.signUpButtonText:h.accountsPlg.switchButtonText,analytics:u,pageName:G,onSignUpClick:ne,onSwitchClick:()=>{U.current!=null&&U.current.focus()},accountsPromoConfig:T}):null:null]})]})}const Tt=(e,p,v,x,b,$)=>x?.accType==="depositAccount"?t.jsx(Kt,{isOptionSelected:!0,children:t.jsx(Qt,{color:nt(b??0)})}):x?.institutionDetails?.logo?.base64!=null?t.jsx(Yt,{windowSize:p,src:`${at}${x?.institutionDetails.logo?.base64.toString()}`,alt:x?.institutionDetails.institutionName,loading:"lazy"}):$===!0?e.element:t.jsx(Ft,{iconColor:e.color,windowSize:p,isDarkMode:v,children:e.element}),Lt=({productType:e,isLoginRequired:p,isUpdateLinkClicked:v,isPendingVerification:x,fetchAndUpdateStatues:b,onUpdateLinkTokenClick:$,onChaseInfoClick:A})=>{const{commonSetUp:M}=K.getLocalizedStrings(),{setUp:I}=M,{verifyAccount:u,verifyingAccount:r,verifyAccountError:m,reLogging:P,reLoginLabel:te,reLoginError:H,reLoginMessage:q,chaseLabel:ie}=I,{fetchStatus:k,updateStatus:T,linkFetchStatus:G,linkUpdateStatus:L,prevFetchState:J,prevUpdateState:E}=b,D=v&&J==="In-Progress"&&k?.fetchState==="Error"||E==="In-Progress"&&T?.fetchState==="Error";return p?v&&(k?.fetchState==="In-Progress"||T?.fetchState==="In-Progress"||G?.fetchState==="In-Progress"||L?.fetchState==="In-Progress")?t.jsxs(V,{style:{color:j.important},children:[t.jsx(ee,{children:P}),t.jsx(Pe,{children:t.jsx(pe,{size:"Small",start:!0,style:{display:"flex",color:j.important}})})]}):t.jsx(V,{style:{cursor:"pointer"},onClick:$,"data-testid":N("re-login-label-clicked"),children:t.jsx($e,{style:{padding:`12px ${i.sp3}`},title:q,placement:"bottom",maxWidth:"264px",children:t.jsxs(Ut,{children:[t.jsx(je,{style:{marginLeft:i.sp0,marginRight:i.sp1}}),t.jsx(ce,{isError:!0,style:{color:j.important},children:D?H:te}),t.jsx(de,{children:t.jsx(ue,{style:{color:j.important}})})]})})}):k?.fetchState==="In-Progress"||T?.fetchState==="In-Progress"?t.jsxs(V,{children:[t.jsx(ee,{children:r}),t.jsx(Pe,{children:t.jsx(pe,{size:"Small",start:!0,style:{display:"flex"}})})]}):x?t.jsxs(V,{onClick:$,"data-testid":N("verify-account-label-clicked",e),children:[t.jsx(ce,{isError:!1,children:u}),t.jsx(de,{children:t.jsx(ue,{})}),D?t.jsx($e,{maxWidth:"280px",style:{padding:`12px ${i.sp3}`,color:j.important},title:m,placement:"bottom",children:t.jsx(je,{})}):null]}):t.jsxs(V,{onClick:A,"data-testid":N("chase-info-label-clicked"),children:[t.jsx(ce,{isError:!1,children:ie}),t.jsx(de,{children:t.jsx(ue,{})})]})},ke=(e,p)=>`${e}.${p}`,zt=n(st)`
55
+ `,s={labelWidth:new d(120,190,190),sectionWidth:new d(343,580,726),iconContainerMaxWidthHeight:new d(o[6],o[7]),iconPadding:new d(10,12),rowGap:new d(o[2],o[3]),elementsMarginLeftRight:new d(o[3],o[4]),labeledFieldPaddingLeft:new d(o[3],o[0]),labeledFieldPaddingRight:new d(o[3],o[2]),labeledFieldPaddingTop:new d(o[3],o[3]),labeledFieldPaddingBottom:new d(o[3],o[2]),labeleMarginLeft:new d(o[0],o[4]),labeleMarginBottom:new d(o[2],o[0]),infoLabelPaddingRight:new d(o[0],o[3]),infoLabelMarginTop:new d(o[1],o[0]),iconWidthHeight:new d(20,o[4])},Pt={title:new ze("standardSemiBold","largeSemiBold")};function si({primaryFundingAccount:e,allFundingAccounts:p,allBankAccounts:v,plaidConnectionDetails:x,sectionId:b,isDisabled:$,icon:_,sectionTitle:M,style:I,analytics:u,productType:r,referrer:m,accountSelectContainerStyle:P,connectedAccountProvider:te,isCompleted:H=!1,showCompletedIcon:q=!1,showZeniAccountSection:ie=!0,isAccountsEnabled:k,accountsPromoConfig:T,pageName:G,onFetchLinkTokenClick:L,onEstablishConnectionClick:J,onUpdatePaymentAccountStatus:E,onEstablishConnectionSuccess:D,onSignUpClick:ne,bottomComponent:Ie}){const a=Te(),{trigger:Ee,formState:{errors:Re}}=qe(),U=f.useRef(null),R=Ge(),{setUp:h}=K.getLocalizedStrings().commonSetUp,Z=K.getLocalizedStrings().spendManagement.chargeCard.payEarly;let y,he,c,S=!1;e!=null&&e.accType==="paymentAccount"&&(y=e.providerVerificationStatus,he=e?.institutionDetails,c=y?.code,S=e?.isLoginRequired??!1);const ae=ke(b,"account"),Be=Je(Re,ae),[z,Y]=f.useState(void 0),g=x.link_account,A=x.update_account,w=z==="update_account"?A:g,[B,ge]=f.useState(w.linkToken??null),[F,X]=f.useState(!1),[Me,me]=f.useState(!1),fe=se(g.updateStatus.fetchState),oe=se(A.updateStatus.fetchState),De=se(A.fetchStatus.fetchState),Ue=f.useCallback((l,C)=>{u.trackConnectBankSuccess(r,m);const be=C.accounts.find(He=>He.id===e?.providerAccountId)??C.accounts[0];e?.id!=null&&z==="update_account"&&be?.verification_status!=null&&!S?E(be?.verification_status,e.id,"update_account"):J(l,z),Y(void 0),X(!1)},[u,m,r,e?.id,e?.providerAccountId,z,S,E,J]),Fe=f.useCallback((l,C)=>{l!=null&&(u.trackConnectBankFailure(r,l.error_code+" "+l.error_message,m),l.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e?.id!=null&&E("verification_failed",e.id,"update_account"),console.log("Plaid Connection Error",l,C)),Y(void 0),X(!1)},[u,r,m,e?.id,E]),{open:O,ready:xe}=Ze({token:B,onSuccess:Ue,onExit:Fe});f.useEffect(()=>{(fe==="In-Progress"&&g.updateStatus.fetchState==="Completed"||oe==="In-Progress"&&A.updateStatus.fetchState==="Completed")&&(W.isVerifiedPaymentAccountProviderStatusCode(c??"")||(L("link_account"),D()))},[g.updateStatus.fetchState,D,L,e?.providerVerificationStatus?.code,e?.id,fe,oe,A.updateStatus.fetchState,c]),f.useEffect(()=>{(W.isVerifiedStatusCode(c??"")||c==="verification_failed")&&!F&&z!=null&&w.linkToken===B&&w.fetchStatus.fetchState==="Completed"&&xe&&X(!0)},[xe,B,w.fetchStatus.fetchState,w.linkToken,c,z,F]),f.useEffect(()=>{w.fetchStatus.fetchState==="Completed"&&w.linkToken!=null&&w.linkToken!==B&&ge(w.linkToken)},[w.fetchStatus.fetchState,w.linkToken,B]),f.useEffect(()=>{F&&O()},[F,O]),f.useEffect(()=>{!e?.zeniAccountId&&!Be&&Ee(ae)},[e?.id]),f.useEffect(()=>{(c==null||c==="verification_failed"||c==="verification_expired"||W.isVerifiedStatusCode(c))&&(W.zeniDate(new Date().toISOString()).isAfter(g.expiration)||g.linkToken==null)&&L("link_account")},[]);const Oe=()=>{u.trackConnectBankGetBalance(r,m),Y("update_account"),L("update_account",e?.id)},Se=`${e?.accountSubType?.name!=null?e?.accountSubType?.name.substring(0,1).toUpperCase().concat(e?.accountSubType?.name.substring(1)):""} ${e?.maskedAccountNumber??""}`.trim(),le=g.fetchStatus.fetchState==="In-Progress"||g.updateStatus.fetchState==="In-Progress",We=p.findIndex(l=>l.id===e?.id),Ne=()=>{me(!0)},Ve=R.mode==="light"?new re(R.colors.brandColorJadeLight):new re(R.colors.brandColorJadeDark);if(e==null&&p.length===0)return r==="zeni_accounts"?t.jsx(mt,{onClick:()=>{(c==null||c==="verification_failed"||c==="verification_expired")&&(u.trackConnectBank(r,m),O())},title:h.achTitle,subTitle:h.achSubTitle,header:h.paymentSource,isCompleted:H,showCompletedIcon:q,icon:{element:t.jsx(Ye,{width:s.iconWidthHeight.valuePx(a),height:s.iconWidthHeight.valuePx(a)}),color:new re(Ve)},isLoading:le,status:y}):t.jsx(Ce,{windowSize:a,style:I,children:t.jsx(xt,{header:h.paymentSource,plaidConnectionDetails:x,onConnectClick:()=>{(c==null||c==="verification_failed"||c==="verification_expired")&&(u.trackConnectBank(r,m),O())},onSignUpClick:ne,isAccountsEnabled:!1,analytics:u,pageName:G,accountsPromoConfig:T})});const we=he?.zeniInstitutionId.toLowerCase()==="chase";return t.jsxs(Ce,{windowSize:a,style:I,children:[Me===!0?ut.createPortal(t.jsx(gt,{connectedAccountProvider:te,action:{onBackClick:()=>me(!1)}}),document.body):null,t.jsxs(Wt,{children:[q===!0?t.jsx(Vt,{children:H?t.jsx(Ht,{}):t.jsx(qt,{})}):null,t.jsx(Nt,{windowSize:a,children:M??h.paymentSource})]}),t.jsxs(Ot,{windowSize:a,isDisabled:S,children:[t.jsxs(_t,{windowSize:a,children:[t.jsxs(Bt,{children:[e!=null?t.jsx(Rt,{isDisabled:S,children:Tt(_,a,R.mode==="dark",e,We)}):null,t.jsxs(Xt,{children:[t.jsxs(Gt,{children:[t.jsx(Xe,{ref:U,style:{display:a==="small"?"block":"inherit",width:"-webkit-fill-available"},customStyleConfig:{menu:()=>({width:a==="small"?"100%":"510px"})},controlProperty:{controlHeight:o[4],fontWeight:et.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:a==="small"?240:300},customPlaceholder:{color:R.colors.hero,weight:500},name:ke(b,"fundingAccount"),placeholder:h.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(l,C)=>Qe(p,l,C),valueToSubLabels:(l,C)=>Ke(p,l,C,!1),defaultValue:{selectedOption:e?.id,allOptions:p.map(l=>({label:l.label,value:l.id,isRecommended:l.accType==="depositAccount"}))},textAlignment:"left",showDownChevronIcon:!0,showTickIcon:!1,isOptionRemovable:!1,registerOptions:{required:!1},showCreateOption:!0,isDisabled:le?"disabled":void 0,showLoadingIcon:le,onClickCreateOption:()=>{u.trackConnectBank(r,m),Y("link_account"),g.linkToken==null||W.zeniDate(new Date().toISOString()).isAfter(g.expiration)?L("link_account"):B!==g.linkToken?ge(g.linkToken):F?O():X(!0)}}),t.jsxs(Dt,{isDisabled:S,children:[Se?t.jsxs(t.Fragment,{children:[t.jsx(ee,{children:Se}),a!=="small"&&(c!=="verification_failed"&&e?.providerVerificationStatus?.code==="pending_manual_verification"||S||we||e?.accountBalance?.available)?t.jsx(Zt,{}):null]}):null,c!=="verification_failed"&&e?.providerVerificationStatus?.code==="pending_manual_verification"||S||we?t.jsx(Lt,{isUpdateLinkClicked:z==="update_account",isLoginRequired:S,isPendingVerification:c!=="verification_failed"&&e?.providerVerificationStatus?.code==="pending_manual_verification",productType:r,fetchAndUpdateStatues:{fetchStatus:A.fetchStatus,updateStatus:A.updateStatus,linkFetchStatus:g.fetchStatus,linkUpdateStatus:g.updateStatus,prevFetchState:De,prevUpdateState:oe},onUpdateLinkTokenClick:Oe,onChaseInfoClick:Ne}):e?.accountBalance?.available?t.jsx(ee,{children:tt("0,0[.]00",e?.accountBalance?.available)}):null]})]}),y!=null&&a==="small"?t.jsx(ye,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:y.name,textColor:ve(y.code)}):null]})]}),t.jsx(Mt,{children:y!=null&&a!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(ye,{style:{width:"max-content"},tagTitle:y.name,textColor:ve(y.code)}),t.jsx(Jt,{})]}):null})]}),ie?t.jsxs(It,{style:P,windowSize:a,isDisabled:S,onClick:l=>l.stopPropagation(),"data-testid":V("account-select-container",r),children:[t.jsx(Et,{isDisabled:S?"disabled":$,label:{label:h.zeniCashAccountLabel,width:a==="small"?void 0:s.labelWidth.value(a),style:{marginLeft:s.labeleMarginLeft.valuePx(a),marginBottom:s.labeleMarginBottom.valuePx(a)}},style:{paddingTop:s.labeledFieldPaddingTop.valuePx(a),paddingBottom:s.labeledFieldPaddingBottom.valuePx(a),paddingLeft:s.labeledFieldPaddingLeft.valuePx(a),paddingRight:s.labeledFieldPaddingRight.valuePx(a),borderRadius:i.sp2,border:`1px solid ${R.colors.grey3}`,width:"-webkit-fill-available",display:a==="small"?"block":"inherit"},infoLabelStyle:{textAlign:a==="small"?"left":"right",paddingRight:s.infoLabelPaddingRight.valuePx(a),marginTop:s.infoLabelMarginTop.valuePx(a)},singleSelectPickerField:{name:ae,placeholder:h.zeniCashAccountPlaceholder,style:{position:"relative"},defaultValue:{selectedOption:e?.zeniAccountId??"",allOptions:v.map(l=>({label:l.accountName,value:l.accountId}))},isOptionRemovable:!1,withBorder:a==="small",textAlignment:a==="small"?"left":"right",registerOptions:{required:!1}},valueToAdditionalLabel:()=>h.zeniCashAcoountInfo}),Ie]}):null,e?.accType==="paymentAccount"?r==="charge_cards"?t.jsx(ht,{style:{borderRadius:`${i.sp0} ${i.sp0} ${i.sp2} ${i.sp2}`},maxInsuredAmount:T.maxInsuredAmount,heading:t.jsxs(zt,{windowSize:a,children:[Z.earn,t.jsx(At,{children:Z.percentageCashback.replace("__percentage__",pt)}),Z.whenYouPayViaZeniChecking]}),buttonText:k===!1?h.accountsPlg.signUpButtonText:h.accountsPlg.switchButtonText,isAccountsEnabled:k,pageName:Z.creditCardPayment,onSignUpClick:ne,onSwitchClick:()=>{U.current!=null&&U.current.focus()}}):r!=="zeni_accounts"?t.jsx(Le,{heading:h.accountsPlg.heading,style:{borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},isAccountsEnabled:k,buttonText:k===!1?h.accountsPlg.signUpButtonText:h.accountsPlg.switchButtonText,analytics:u,pageName:G,onSignUpClick:ne,onSwitchClick:()=>{U.current!=null&&U.current.focus()},accountsPromoConfig:T}):null:null]})]})}const Tt=(e,p,v,x,b,$)=>x?.accType==="depositAccount"?t.jsx(Kt,{isOptionSelected:!0,children:t.jsx(Qt,{color:nt(b??0)})}):x?.institutionDetails?.logo?.base64!=null?t.jsx(Yt,{windowSize:p,src:`${at}${x?.institutionDetails.logo?.base64.toString()}`,alt:x?.institutionDetails.institutionName,loading:"lazy"}):$===!0?e.element:t.jsx(Ft,{iconColor:e.color,windowSize:p,isDarkMode:v,children:e.element}),Lt=({productType:e,isLoginRequired:p,isUpdateLinkClicked:v,isPendingVerification:x,fetchAndUpdateStatues:b,onUpdateLinkTokenClick:$,onChaseInfoClick:_})=>{const{commonSetUp:M}=K.getLocalizedStrings(),{setUp:I}=M,{verifyAccount:u,verifyingAccount:r,verifyAccountError:m,reLogging:P,reLoginLabel:te,reLoginError:H,reLoginMessage:q,chaseLabel:ie}=I,{fetchStatus:k,updateStatus:T,linkFetchStatus:G,linkUpdateStatus:L,prevFetchState:J,prevUpdateState:E}=b,D=v&&J==="In-Progress"&&k?.fetchState==="Error"||E==="In-Progress"&&T?.fetchState==="Error";return p?v&&(k?.fetchState==="In-Progress"||T?.fetchState==="In-Progress"||G?.fetchState==="In-Progress"||L?.fetchState==="In-Progress")?t.jsxs(N,{style:{color:j.important},children:[t.jsx(ee,{children:P}),t.jsx(Pe,{children:t.jsx(pe,{size:"Small",start:!0,style:{display:"flex",color:j.important}})})]}):t.jsx(N,{style:{cursor:"pointer"},onClick:$,"data-testid":V("re-login-label-clicked"),children:t.jsx($e,{style:{padding:`12px ${i.sp3}`},title:q,placement:"bottom",maxWidth:"264px",children:t.jsxs(Ut,{children:[t.jsx(je,{style:{marginLeft:i.sp0,marginRight:i.sp1}}),t.jsx(ce,{isError:!0,style:{color:j.important},children:D?H:te}),t.jsx(de,{children:t.jsx(ue,{style:{color:j.important}})})]})})}):k?.fetchState==="In-Progress"||T?.fetchState==="In-Progress"?t.jsxs(N,{children:[t.jsx(ee,{children:r}),t.jsx(Pe,{children:t.jsx(pe,{size:"Small",start:!0,style:{display:"flex"}})})]}):x?t.jsxs(N,{onClick:$,"data-testid":V("verify-account-label-clicked",e),children:[t.jsx(ce,{isError:!1,children:u}),t.jsx(de,{children:t.jsx(ue,{})}),D?t.jsx($e,{maxWidth:"280px",style:{padding:`12px ${i.sp3}`,color:j.important},title:m,placement:"bottom",children:t.jsx(je,{})}):null]}):t.jsxs(N,{onClick:_,"data-testid":V("chase-info-label-clicked"),children:[t.jsx(ce,{isError:!1,children:ie}),t.jsx(de,{children:t.jsx(ue,{})})]})},ke=(e,p)=>`${e}.${p}`,zt=n(st)`
56
56
  color: ${e=>e.theme.colors.primary};
57
57
  width: ${e=>e.windowSize==="small"?"80%":"100%"};
58
- `,_t=n(rt)`
58
+ `,At=n(rt)`
59
59
  color: ${e=>e.theme.colors.primary};
60
60
  `,Ce=n.div`
61
61
  display: flex;
62
62
  flex-direction: column;
63
63
  row-gap: ${e=>s.rowGap.valuePx(e.windowSize)};
64
- `,At=n.div`
64
+ `,_t=n.div`
65
65
  display: flex;
66
66
  align-items: center;
67
67
  flex-direction: row;
@@ -102,7 +102,7 @@ import{e as Te,ck as qe,u as Ge,M as K,cs as Je,a2 as se,e_ as Ze,l as W,a8 as r
102
102
  cursor: pointer;
103
103
  color: ${e=>e.isError?e.theme.colors.important:e.theme.colors.primary};
104
104
  }
105
- `,V=n(_e)`
105
+ `,N=n(Ae)`
106
106
  display: flex;
107
107
  align-items: center;
108
108
  `,Ut=n.div`
@@ -142,10 +142,10 @@ import{e as Te,ck as qe,u as Ge,M as K,cs as Je,a2 as se,e_ as Ze,l as W,a8 as r
142
142
  `,Wt=n.div`
143
143
  display: flex;
144
144
  align-items: center;
145
- `,Vt=n.div`
145
+ `,Nt=n.div`
146
146
  color: ${e=>e.theme.colors.primary};
147
147
  ${e=>`${Pt.title.style(e.windowSize)}`};
148
- `,Nt=n.div`
148
+ `,Vt=n.div`
149
149
  margin-right: ${i.sp2};
150
150
  `,Ht=n(it)`
151
151
  width: ${i.sp3};
@@ -180,7 +180,7 @@ import{e as Te,ck as qe,u as Ge,M as K,cs as Je,a2 as se,e_ as Ze,l as W,a8 as r
180
180
  display: flex;
181
181
  color: inherit;
182
182
  margin-left: ${i.sp1};
183
- `,ue=n(Ae)`
183
+ `,ue=n(_e)`
184
184
  width: 12px;
185
185
  height: 12px;
186
186
  `,je=n(dt)`
@@ -1,6 +1,6 @@
1
- import{e as y,M as S,h3 as b,j as o,m as g,o as a,n as j,C as v,bu as z,q as k}from"./index-DjfQ_8_G.js";import{b as P,n as i}from"./vendor-CnQcJ2Lu.js";import{g as C}from"./BoxItem-BL-UVx2X-Chlftilo.js";import{w as L}from"./downloadPdf-hPck-AA1-BRfoLwQe.js";const d=S.getLocalizedStrings().months,r={downloadButtonSize:new v(k[4],20)},B=i.div`
1
+ import{e as y,M as S,h5 as b,j as o,m as g,o as n,n as j,C as v,bx as z,q as k}from"./index-Cnh9fv8f.js";import{b as P,n as i}from"./vendor-rkTZJa59.js";import{g as C}from"./BoxItem-DCsIK5bA-DrkhsCS_.js";import{w as L}from"./downloadPdf-BJozh7zE-M2Rp1JlQ.js";const d=S.getLocalizedStrings().months,r={downloadButtonSize:new v(k[4],20)},B=i.div`
2
2
  display: flex;
3
- padding: ${a.sp3} ${a.sp4};
3
+ padding: ${n.sp3} ${n.sp4};
4
4
  flex-direction: row;
5
5
  width: 100%;
6
6
  `,T=i.div`
@@ -12,15 +12,15 @@ import{e as y,M as S,h3 as b,j as o,m as g,o as a,n as j,C as v,bu as z,q as k}f
12
12
  display: -webkit-box;
13
13
  -webkit-box-orient: vertical;
14
14
  -webkit-line-clamp: 1;
15
- margin-left: ${a.sp2};
16
- max-height: ${a.sp11};
15
+ margin-left: ${n.sp2};
16
+ max-height: ${n.sp11};
17
17
  text-overflow: ellipsis;
18
18
  word-break: break-word;
19
19
  text-align: left;
20
20
  overflow: hidden;
21
21
  `,E=i.div`
22
22
  cursor: pointer;
23
- `,N=i(z)`
23
+ `,M=i(z)`
24
24
  width: ${t=>r.downloadButtonSize.valuePx(t.windowSize)};
25
25
  height: ${t=>r.downloadButtonSize.valuePx(t.windowSize)};
26
26
  min-height: ${t=>r.downloadButtonSize.valuePx(t.windowSize)};
@@ -28,4 +28,4 @@ import{e as y,M as S,h3 as b,j as o,m as g,o as a,n as j,C as v,bu as z,q as k}f
28
28
  &:hover {
29
29
  color: ${t=>t.theme.colors.primary};
30
30
  }
31
- `;function A({accountLast4:t,currentTenantCompanyName:s,data:e,authParams:m,downloadEndPoint:l,documentType:n="statement",boxType:p}){const[c,w]=P.useState(!1),x=y(),h=n==="taxLetter"?`${e.title.year}`:`${d[e.title.month-1]} ${e.title.year}`,$=n==="taxLetter"?`${s}-treasury-tax-letter-${e.title.year}.pdf`:`${s}-${t}-monthly-statement-${d[e.title.month-1]}-${e.title.year}.pdf`,u={period:`${e.title.year}-${b(e.title.month)}`,format:"pdf"},f=o.jsx(B,{children:o.jsxs(T,{children:[o.jsx(q,{children:h}),o.jsx(E,{onClick:()=>L(n==="treasuryStatement"||n==="taxLetter"?`${l}/statements/${e.id}`:`${l}/statements?query=${encodeURIComponent(JSON.stringify(u))}`,$,m,w),children:c?o.jsx(g,{size:"Small",start:!0}):o.jsx(N,{windowSize:x})})]})});return o.jsx(C,{content:f,boxType:p,isDisabled:!1,isNotClickable:!0})}export{A as O};
31
+ `;function A({accountLast4:t,currentTenantCompanyName:s,data:e,authParams:m,downloadEndPoint:l,documentType:a="statement",boxType:p}){const[x,c]=P.useState(!1),w=y(),h=a==="taxLetter"?`${e.title.year}`:`${d[e.title.month-1]} ${e.title.year}`,$=a==="taxLetter"?`${s}-treasury-tax-letter-${e.title.year}.pdf`:`${s}-${t}-monthly-statement-${d[e.title.month-1]}-${e.title.year}.pdf`,u={period:`${e.title.year}-${b(e.title.month)}`,format:"pdf"},f=o.jsx(B,{children:o.jsxs(T,{children:[o.jsx(q,{children:h}),o.jsx(E,{onClick:()=>L(a==="treasuryStatement"||a==="taxLetter"?`${l}/statements/${e.id}`:`${l}/statements?query=${encodeURIComponent(JSON.stringify(u))}`,$,m,c),children:x?o.jsx(g,{size:"Small",start:!0}):o.jsx(M,{windowSize:w})})]})});return o.jsx(C,{content:f,boxType:p,isDisabled:!1,isNotClickable:!0})}export{A as M};