@zeniai/web-cockpit-ui 1.14.89-prod → 1.14.90-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 (292) hide show
  1. package/dist/assets/{ACHDetailsPage-BBq7KpbY-CpL5U89v.js → ACHDetailsPage-BUP-_2-W-BxsdzxJg.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-Djq6mgKa-BXUkte6G.js → AIPerformancePage-DHF_70JI-BB0m0Wmb.js} +22 -22
  3. package/dist/assets/AccountInfoPage-pmUIckJ9-ClFTcWKH.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-DO6aVqBW-CcG81fXf.js → AccountInfoPageContent-DLSL1NNm-ysW8pq2z.js} +9 -9
  5. package/dist/assets/AccountLockedInfoModal-Bq3y0K0F-DT_bUQ3U.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DEKzSPCP-s5lyisHF.js → AccountReconDetailsDrawerPage-CGcZO_qz-Cy1Ijv5f.js} +16 -16
  7. package/dist/assets/{AccountRow-Ck53DDbT-DgVym5NM.js → AccountRow-D2Ypckgj-DU9kFXuE.js} +26 -26
  8. package/dist/assets/{AccountsPromoCardStack-BYjuB-4I-DdN6kRaj.js → AccountsPromoCardStack-BVVDCW1H-DJjdfLGW.js} +23 -23
  9. package/dist/assets/AddAddressForCardDrawer-C8aENofu-DA1NQK9C.js +6 -0
  10. package/dist/assets/{AddToWalletPage-DA6AmuaY-BQi9MsaD.js → AddToWalletPage-CmT5jSb5-D2YVbVt5.js} +11 -11
  11. package/dist/assets/{AgingReportsPage-B_Hhl_Is-DGuqbTZb.js → AgingReportsPage-BeUGvj3b-CHP-b-K4.js} +6 -6
  12. package/dist/assets/{AllUserItems-BV22Ibpn-D4sEkFpc.js → AllUserItems-CmlMyz-f-C0puagwR.js} +11 -11
  13. package/dist/assets/{ApAgingDetailPage-DqV1vOVH-C05RVobp.js → ApAgingDetailPage-Dz1_N0Yw-iyEKxxlG.js} +3 -3
  14. package/dist/assets/{AppBasePage-LrgCcvIv-Ch9LW15t.js → AppBasePage-DX4EGGcT-DxyBlsaI.js} +11 -11
  15. package/dist/assets/{AppDrawerContent-aZG5Qc_X-DEDViUw7.js → AppDrawerContent-Brg3Rw4K-DWiehP3E.js} +5 -5
  16. package/dist/assets/ApprovalRulesSettingsPage-Bn7KrUl2-CvKRvgo_.js +47 -0
  17. package/dist/assets/{ArAgingChart-Am7LTkqG-B6qiKVZ7.js → ArAgingChart-DQZtCsHS-CSTDLkfC.js} +4 -4
  18. package/dist/assets/ArAgingDetailPage-BtF6K5dA-VZeY_ZUJ.js +46 -0
  19. package/dist/assets/{AttachmentView-Bujbmx1d-DqiQcBPx.js → AttachmentView-DgPySmB8-B0CUUwUu.js} +8 -8
  20. package/dist/assets/{BankAccountSection-C5rYUW3V-Bq5OdcQr.js → BankAccountSection-BVZK5jmO-oboSifeA.js} +7 -7
  21. package/dist/assets/{BankAccountWarningSection-DakysSbk-DtGHGGlf.js → BankAccountWarningSection-DHdeDi15-DsdgRhNS.js} +8 -8
  22. package/dist/assets/{BankConnectionsSettingsPage-BjZDNgZG-CzKGiQZr.js → BankConnectionsSettingsPage-BN3lAARB-UlnRR8CQ.js} +31 -31
  23. package/dist/assets/{BillDetailPage-DYc_nZRU-Bfft4Wvj.js → BillDetailPage-BuUm6vdf-DEUKUhee.js} +13 -13
  24. package/dist/assets/BillPayApprovalRuleDetailPage-BXSdsF2E-CYUFVErE.js +27 -0
  25. package/dist/assets/BillPayApprovalRulesPage-B8HbVvc9-DpzHPmZp.js +241 -0
  26. package/dist/assets/{BillPayPromoPage-BK2J56U5-Dr_7W8ch.js → BillPayPromoPage-DkoqXDNt-FNHctwfQ.js} +7 -7
  27. package/dist/assets/{BillPaySetUpPage-Jic5E25q-ByxpO-dO.js → BillPaySetUpPage-BommXkLS-DOKgmPVm.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-CKZVChEm-DCpRgyWO.js → BillingSettingsPage-gHbc5Kq3-CFDIJf8G.js} +10 -10
  29. package/dist/assets/{BillsBulkReviewDrawerPage-C4Ra5e82-pr6_FYet.js → BillsBulkReviewDrawerPage-C541rBnx-DPMvwxh2.js} +1 -1
  30. package/dist/assets/{BoxItem-8PfNfaHq-B3NqjMnf.js → BoxItem-usHxaONy-BSYmkNdH.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-JGge-Iiw-CDuaPB9j.js → BusinessVerificationPage-CLsxXy9d-ClcyVS-f.js} +10 -10
  32. package/dist/assets/{CardNumberSubText-W81SQ4GF-D9TP2ZHa.js → CardNumberSubText-D_fWhc_K-BxJ3GoBc.js} +2 -2
  33. package/dist/assets/{CashbackDetailPage-DnOcmx2i-BC6CYrJs.js → CashbackDetailPage-D3WylWVP-CydwwFdH.js} +19 -19
  34. package/dist/assets/{ChargeCardDetailPage-DNVMsxzE-BSQk_5-_.js → ChargeCardDetailPage-BUsGBwBf-DhD5ouX9.js} +27 -27
  35. package/dist/assets/{ChargeCardListPage-Dgj-WWWI-w23hoUyI.js → ChargeCardListPage-Jhx05dVV-DjDdThgH.js} +24 -24
  36. package/dist/assets/{ChargeCardListTable-uJZKWoh7-C3O6hd1k.js → ChargeCardListTable-D-eYWaxh-CZeSVtIX.js} +26 -26
  37. package/dist/assets/ChargeCardPromoPage-CzR82VtA-DoVVgv51.js +222 -0
  38. package/dist/assets/{ChargeCardSetupPage-BDbJU-vm-lGDN0gVp.js → ChargeCardSetupPage-Ctz8PCuu-Dmh0C1fi.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-DImRqpH1-BOXYEkI8.js → ChargeCardStatementsPage-EUtRTAX2-CIQRTxBN.js} +6 -6
  40. package/dist/assets/{CheckDepositDrawerPage-BVtOOPoa-BIViF4jr.js → CheckDepositDrawerPage-B7DC0HAi-DPwOJJS7.js} +17 -17
  41. package/dist/assets/{CollapsableReportTable-Crihcv_z-1kvNpwNO.js → CollapsableReportTable-I40BZv7o-RBVPkQ58.js} +233 -233
  42. package/dist/assets/{CompanyOfficerDetailsSection-CNxtAkKM-85Q00Xll.js → CompanyOfficerDetailsSection-ChsNKXbx-Dk7vpi01.js} +24 -24
  43. package/dist/assets/{CompanyPassportCard-DMRQkRPb-Da9mkNtI.js → CompanyPassportCard-82bbFwk--C3mnYk4t.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-D3XvbSF_-CYpevto3.js → CompanyPassportPage-DG1Fa_Uw-B4wsnqA2.js} +18 -18
  45. package/dist/assets/{CompleteProfile-BqjXO5ze-Ctdetiwt.js → CompleteProfile-B7bQqLQH-DwtJrHr4.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-DtwLo4WZ-C2L-ZVQE.js → ConfettiBurst-DUyIBnw4-BZY51mbD.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-FrGRJxMy-CD1A265s.js → CreateOrEditVendorPage-DVzMO96w-CjeOn0Zu.js} +6 -6
  48. package/dist/assets/CreditCardPaymentDrawerPage-C03hfKGc-BI7dTqV7.js +224 -0
  49. package/dist/assets/{CurrencySelectField-ClOg6nnS-kGQo9dVf.js → CurrencySelectField-2hU3oIp_-CnccIVlk.js} +3 -3
  50. package/dist/assets/{CustomerOnboardingActivationPage-Du-zzeL2-DcQOmDTQ.js → CustomerOnboardingActivationPage-Dt-Nml2t-CQyv3wO4.js} +8 -8
  51. package/dist/assets/CustomerOnboardingContainerPage-Dt-_tVOQ-B7ffmmrc.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BgY95XeU-CxxSHxC_.js → CustomerOnboardingDetailPageSkeleton-C4Z1pDVe-CS261SSd.js} +11 -11
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-BsKoqUta-Dc6IfrxS.js → CustomerOnboardingNoStepsPage-CwI8nL61-Xg6qQ6Ku.js} +4 -4
  54. package/dist/assets/CustomerOnboardingPage-C3FgZjAN-C75cnlLW.js +107 -0
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-DGVV8Tkk-CYHRi8SS.js → CustomerOnboardingProductSuitePage-BOYu-82S-uR17VQjV.js} +4 -4
  56. package/dist/assets/{Dashboard-CdYlvep--BGWE43Rb.js → Dashboard-D_oTtu1--CP9XS1zf.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-c6q027Qp-DuE_OhrG.js → DashboardReportPage-Dprj3eUQ-BK5e1r9g.js} +20 -20
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-BdDVYK19-CxxrP75O.js → DashboardSidebarBackgroundAnimation-C6SQaB7q-C2qHBViE.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-D8kL8enp-Dq5wJete.js → DepositAccTransactionItem-C2oP415b-B5ygx6vl.js} +6 -6
  60. package/dist/assets/DepositAccTransactionListPage-DCvdqAz1-Df_FOAOf.js +66 -0
  61. package/dist/assets/{DomesticWireDetailsPage-CjM1DXnn-f9WMmV-Y.js → DomesticWireDetailsPage-Da_3EveP-Bjb9K-P-.js} +2 -2
  62. package/dist/assets/{DownloadOverlay-Dr4uLNpZ-DONqYIqe.js → DownloadOverlay-BwddFmV2-BqOR54wm.js} +26 -26
  63. package/dist/assets/{DrawerPage-CbKBsc7w-SC5EmQrv.js → DrawerPage-CGrnrvf2-BvrxfWnf.js} +12 -12
  64. package/dist/assets/EditPeoplePage-DMgxG2Gd-C3BsPnxU.js +55 -0
  65. package/dist/assets/{EditReimbursementDetailPage-BTrwOX_s-CLWs3phi.js → EditReimbursementDetailPage-DwCiVkeu-B4w5FVLx.js} +25 -25
  66. package/dist/assets/EntityDetailPage-BcRVEfi5-Cnj_gM9q.js +18 -0
  67. package/dist/assets/{EntitySummarySection-BIV9aAq2-gyi2P83i.js → EntitySummarySection-BaHHLLkE-D3Ip19-Y.js} +28 -28
  68. package/dist/assets/{ExpenseAutomationOverviewPage-B5MtjO2p-CJFA1E0S.js → ExpenseAutomationOverviewPage-hl_3Pc0g-gY12ACUr.js} +27 -27
  69. package/dist/assets/ExpenseAutomationPage-D70ghitX-EafeQT3m.js +1650 -0
  70. package/dist/assets/{ExpressPayPage-DnpQuDmt-B1wqsfAL.js → ExpressPayPage-BpfkmJ_I-B4izq8YR.js} +13 -13
  71. package/dist/assets/{FeaturePreviewPage-BmwBZ7ZP-B0W4Ko3A.js → FeaturePreviewPage-Bzi8Bpk3-DtSpKYbK.js} +3 -3
  72. package/dist/assets/{FollowStepsSection-B2I9SddL-0icECvY3.js → FollowStepsSection-Bu3RG_GH-DmaIgxgE.js} +10 -10
  73. package/dist/assets/{GlobalReviewListPage-D3GCP5Xd-DDpKubDJ.js → GlobalReviewListPage-D4BD7q-I-BHZQG-gN.js} +11 -11
  74. package/dist/assets/{InformationCardStack-mEhasBqu-Cby7NjOe.js → InformationCardStack-B9wnkR3p-CjpaX6cg.js} +3 -3
  75. package/dist/assets/{InsightsCardStack-Mj7QcQnH-9E267zSA.js → InsightsCardStack-C1_rd2Sb-uYkz47Dy.js} +11 -11
  76. package/dist/assets/InsightsSection-7-T67WeF-BlMRO9Ba.js +27 -0
  77. package/dist/assets/{IntegrationsSettingsPage-CsI_agJB-BC2VX2XQ.js → IntegrationsSettingsPage-C9YpvDgg-DjW-A2Ra.js} +11 -11
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-Dszmi69h-kUzCnm4M.js → InternationalWireSwiftDetailsPage-C5mI8dEh-MFTemI3R.js} +12 -12
  79. package/dist/assets/{InternationalWireVerificationPage-DG9Enrpo-B4oK9pjT.js → InternationalWireVerificationPage-B8AOwcSX-HJr1qwVZ.js} +23 -23
  80. package/dist/assets/{InviteFormPage-DK6X9Zwi-B6zDF_N3.js → InviteFormPage-DuBhhnre-DKK8UkI0.js} +22 -22
  81. package/dist/assets/{InvitePageListView-CwKbcKlM-BpKjoalu.js → InvitePageListView-Dw8kwEFd-zXFzVUiq.js} +41 -41
  82. package/dist/assets/InvitePeoplePage-BI_vd7xw-BSlMVd1C.js +12 -0
  83. package/dist/assets/{InvoiceUploadSection-CokNNkKu-LMnKce0C.js → InvoiceUploadSection-9DaovMq8-DOf6F-xG.js} +3 -3
  84. package/dist/assets/IssueChargeCardPage-fumweN4Y-Ie_niRER.js +532 -0
  85. package/dist/assets/{LabeledAddressValue-BhwrrtZX-Dtm3Vn-k.js → LabeledAddressValue-cNf6hI1l-C1IgZGiS.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-DzmwP7hP-DTG2n0wD.js → LabeledAddressValueField-CoTtV0RQ-CTJHm8Dm.js} +8 -8
  87. package/dist/assets/{LabeledControlledCheckBoxField-B6ndrF2e-DY1ubvCV.js → LabeledControlledCheckBoxField-DQwUvKR2-BFeYWYOG.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-CfzLlkho-BHPGlraH.js → LabeledCreatableSingleSelectField-CnQsTYWe-BxSldgLD.js} +7 -7
  89. package/dist/assets/LabeledDocumentField-MkryOLQ8-ZmKcbrkd.js +41 -0
  90. package/dist/assets/{LabeledDropDownFormattedTextField-oQX33Fim-BfNjnfMR.js → LabeledDropDownFormattedTextField-B-yUtgxR-CkZPhULB.js} +7 -7
  91. package/dist/assets/{LabeledText-Db46hFZY-BVLwPpan.js → LabeledText-BJ3Zvb5p-yc50ilCa.js} +2 -2
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-BVcg7w-8.js → LabeledUserSingleSelectWithSubtitlesField-CSEiKb8M-B7kyEAM_.js} +17 -17
  93. package/dist/assets/{LabeledZeniRolesDropDownField-Docjgj8Y-C1lu43_h.js → LabeledZeniRolesDropDownField-CS_oKjBG-CatyVbOL.js} +11 -11
  94. package/dist/assets/{LinkJETransactionPage-BZSRaZqY-CJzDRMx9.js → LinkJETransactionPage-BsszwFNq-BtKpHm2U.js} +10 -10
  95. package/dist/assets/{LockCardPage-KTyESoXL-BEIak2Ih.js → LockCardPage-DqQGGac2-Bntrtxvn.js} +42 -42
  96. package/dist/assets/{LowBalancePopup-B0BDCEui-imBShbhH.js → LowBalancePopup-BFo5zRk3-BLFy36gu.js} +6 -6
  97. package/dist/assets/MagicLinkACHDetailsPage-wYa3cyyZ-Cn9Ml7SS.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-CW4RNKOV-Bj3CP8hj.js +1 -0
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-C2kxncrD-Ce8g6h3x.js → MagicLinkInternationalWireDetailsPage-CX9SeCLl-Bato55Wl.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-DNVe2qMu-CdrXg-uF.js → MagicLinkSuccessPage-Dipq1-St-C4ZMZxw5.js} +2 -2
  101. package/dist/assets/{MagicLinkTitleSection-CWw516D8-pIsP-hCT.js → MagicLinkTitleSection-DnN52Uwb-aNaCMrDN.js} +7 -7
  102. package/dist/assets/{MailingDetailsSection-CugAM90r-1QhNZBqO.js → MailingDetailsSection-DwNF-L2Y-DJJZ9RqI.js} +1 -1
  103. package/dist/assets/{Menu-CGN2qO6T-C4Fa3L7f.js → Menu-D0jF6uaE-AMW53cTN.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-CQUfVa0r-qcVSSqGc.js → MyBankConnectionsSettingsPage-DpM6MKBq-CmnrHUZV.js} +7 -7
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-TOQWRGjp-C-dJs3xW.js → MyPendingActivationChargeCardListPage-BaT55Pwg-BdKjhqSf.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-lCG03Uoh-DVrg-p-V.js → MyProfileSettingsPage-kD1dY6P6-BAgE1Tqp.js} +6 -6
  107. package/dist/assets/{NavBarWithPicker-DLLvivn4-BzT_Crvs.js → NavBarWithPicker-D-WQJ-tG-C6mGlKIr.js} +4 -4
  108. package/dist/assets/{NavigationArrow-B4j2t8Qu-hrsh9ohB.js → NavigationArrow-Z9PgxZ-c-DrPA9Vgt.js} +1 -1
  109. package/dist/assets/{NavigationDots-DyMqwpgy-JfxKvmss.js → NavigationDots-BT-m0FmS-CJdtX5bS.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-Bx7iBsCP-BFKhG52x.js → NewGlobalMerchantPage-YsnX4uQU-7PwHdB8y.js} +36 -36
  111. package/dist/assets/{NoDataChart-Ce1_TZ5w-DDbLlhh6.js → NoDataChart-DMivligx-DVgr9SAl.js} +1 -1
  112. package/dist/assets/{NoDataTable-l2T5Hw3t-BXRvsSzg.js → NoDataTable-DwOJY23X-BMIpXvJR.js} +1 -1
  113. package/dist/assets/{NotFoundPage-msdN-Eu6-C6ZelS6k.js → NotFoundPage-DuKXpHos-BIXgl60z.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-_ovcjr8E-CGt9EpNU.js → NotificationSettingsPage-DlU2NxiC-DDx7Rraa.js} +22 -22
  115. package/dist/assets/NotificationsListConfig-BQCb9x9X-C3jJIn48.js +1 -0
  116. package/dist/assets/{NotificationsPage-Ddxb5kE0-D6sdzZ5M.js → NotificationsPage-q0bK_5gs-C_zZBYkJ.js} +37 -37
  117. package/dist/assets/{OpExByVendorPage-BLAHey0l-BlNwZbg2.js → OpExByVendorPage-Boc7U8eu-BxBRsCtx.js} +24 -24
  118. package/dist/assets/OverlayContainerPage-CrZuT2Jj-DDO8EgYZ.js +11 -0
  119. package/dist/assets/{PandLWithForecastPage-B7Z73Sq--CNDc-1lT.js → PandLWithForecastPage-B2eGvFPp-CEl0eyCC.js} +10 -10
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-pL7omrJk-2WYjNORF.js → PaymentAccountSetupBillingAddressSection-BP-_59EO-KoltH9y1.js} +9 -9
  121. package/dist/assets/{PeoplePage-BHRFiM0D-DRMll50T.js → PeoplePage-YMfZIga6-BPMCy-eb.js} +23 -23
  122. package/dist/assets/{Preview-Bnbo8Nq1.js → Preview-BszQHI_F.js} +1 -1
  123. package/dist/assets/{ProductsCarousel-D2bf_6Gb-TEfA4CrL.js → ProductsCarousel-CUaU5-V7-CFq7I05R.js} +6 -6
  124. package/dist/assets/{PromoBaseCards-CI7UOpeY-B1evZov_.js → PromoBaseCards-CmOYEhSO-D3yPErwW.js} +2 -2
  125. package/dist/assets/{QBOConnectionDialog-D7MeKn1t-B2w1QKzx.js → QBOConnectionDialog-BNiXUEAk-B55AIWRo.js} +3 -3
  126. package/dist/assets/{QBOSetupSection-DWhfA4Xv-qK0GI5W7.js → QBOSetupSection-CjjNFfgF-CIhiV9Dd.js} +9 -9
  127. package/dist/assets/ReimbursementApprovalRuleDetailPage-tP7WcKvd-CCMfftol.js +26 -0
  128. package/dist/assets/ReimbursementApprovalRulesPage-BkuYJ6qb-BIx385RC.js +243 -0
  129. package/dist/assets/{ReimbursementDetailPage-COIRwy7i-CGhFzpju.js → ReimbursementDetailPage-D5IzqJS5-BklJr7jT.js} +13 -13
  130. package/dist/assets/ReimbursementPromoPage-D7n6lZNo-BpT8Ss67.js +84 -0
  131. package/dist/assets/{ReimbursementSetUpPage-CMYR8CcH-dSx9uq0k.js → ReimbursementSetUpPage-E1elWU5Z-VC2DwUtC.js} +15 -15
  132. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BDdhVfaz-CHho_I4c.js → ReimbursementsBulkReviewDrawerPage-HzYNji-G-DGG79plx.js} +1 -1
  133. package/dist/assets/{ReloadCard-B2sJR97f-BCtofZlK.js → ReloadCard-DMWwNZ1z-CIbg2f6Q.js} +3 -3
  134. package/dist/assets/{ReportTableViewSelector-_IO343vS-Czn5ein5.js → ReportTableViewSelector-EU36E1lv-XPDH-qLc.js} +11 -11
  135. package/dist/assets/{ReportsPage-C-aQ1bdd-CGJdsE_g.js → ReportsPage-iJDifG6q-BnnQKn2l.js} +4 -4
  136. package/dist/assets/{RevenueChart-Bgq6My4J-CVvgi3IE.js → RevenueChart-BbOK-HCB-UtcLA02J.js} +22 -22
  137. package/dist/assets/ReviewDetailsPage-Bk2vvBn3-C2KvPaPZ.js +290 -0
  138. package/dist/assets/{ReviewOverlay-CPU7RPiJ-Boo32wAd.js → ReviewOverlay-CJlk2MNH-s-FncxF6.js} +14 -14
  139. package/dist/assets/{RoleWithToolTip-DSSGBzvw-LpQZuizj.js → RoleWithToolTip-B7woUKhj-CCCbdbHN.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DKGBfhAM-_HxIg-El.js → ScheduleDetailsFixedAssetsPage-B-WjqQN_-BZxRVl4y.js} +3 -3
  141. package/dist/assets/{ScheduleDetailsPage-B-fKJ7Ct-D7Ghhz-Q.js → ScheduleDetailsPage-ocFBINM3-BwGXsqpK.js} +4 -4
  142. package/dist/assets/{ScheduleSequenceTable-Dh_aT47H-CH4pWS8t.js → ScheduleSequenceTable-Bb7MJ-zJ-GmSlZz8a.js} +24 -24
  143. package/dist/assets/{ScreenRoutes-CAl3Z8kZ.js → ScreenRoutes-Bs2X1R3V.js} +42 -42
  144. package/dist/assets/{SetUpAccountSection-DrMCC1IY-DKdlON5F.js → SetUpAccountSection-9zELif-q-xWCkQEz2.js} +4 -4
  145. package/dist/assets/{SignIn-Ij6tlYI5-W_hhag2x.js → SignIn-BHHUcLal-BDutKsDY.js} +17 -17
  146. package/dist/assets/{SignInScreen-C1qvvdaH.js → SignInScreen-DqJeiieA.js} +1 -1
  147. package/dist/assets/SpendManagementListViewPage-BAdSW-49-C0b0e4ib.js +123 -0
  148. package/dist/assets/SpendManagementPerTabPage-HzCmGr0--BrKmnwTS.js +785 -0
  149. package/dist/assets/{SpendManagementSection-BqWbsmBW-DdAcoAqN.js → SpendManagementSection-LzT-Bnhy-DcyEJGSm.js} +15 -15
  150. package/dist/assets/StatementItem-BnxTFgdM-ncI51LoG.js +31 -0
  151. package/dist/assets/{StatementsPage-BG_pNQzc-C5W9jefo.js → StatementsPage-B8X2un5p-CiIvEzAF.js} +4 -4
  152. package/dist/assets/{StatusSwitcher-DYRXaLvx-C8j2Xkv0.js → StatusSwitcher-BPKr5BUW-lb0m6Cbr.js} +1 -1
  153. package/dist/assets/{SubTabSwitcher-C75XU1EG-Bq01jAuq.js → SubTabSwitcher-4dvyyQSv-BdqA6ZlC.js} +1 -1
  154. package/dist/assets/{SummaryCard-DEnzgi31-uIlH28-c.js → SummaryCard-CiNkV7uy-BHimAYKo.js} +1 -1
  155. package/dist/assets/{TaskManagementPage-BacWm0wS-3n2EdCaU.js → TaskManagementPage-BiyyDIWi-DCcTniX2.js} +15 -15
  156. package/dist/assets/{TimeRangeSwitcher-BOzR-0O6-xiPqTTPj.js → TimeRangeSwitcher-DEEhq2Us-D64DWBCZ.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcher-BVgI_VZw-Dr2i-g4z.js → TimeframeSwitcher-u606tI8Z-DKc_Ov1z.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcherWithToggle-CPVSAvFa-CkdcdrPb.js → TimeframeSwitcherWithToggle-D2sBGHXQ-Dp4KGiW_.js} +1 -1
  159. package/dist/assets/{TopExCard-ImUx-vXr-RGtoQGSt.js → TopExCard-DbPlohSJ-YKd6FEuQ.js} +4 -4
  160. package/dist/assets/{TopExDetailPage-Dg_8DQk8-C4FAKt7P.js → TopExDetailPage-Cla8Hd-1-1fpYe-lT.js} +9 -9
  161. package/dist/assets/{TransactionDetailPage-BzaDB50S-5UQplDsu.js → TransactionDetailPage-BbjtQvBr-DNyUqobk.js} +45 -45
  162. package/dist/assets/{TransactionList-DMd3dgoK-GAchYYqt.js → TransactionList-BRiHadkm-BVpjF8up.js} +14 -14
  163. package/dist/assets/{TransactionListBig-BxHqh8u6-x9Ey0UsD.js → TransactionListBig-BOeu4-R4-Cua70V6_.js} +20 -20
  164. package/dist/assets/TransactionListPage-ByVvx6ON-C32shKZQ.js +35 -0
  165. package/dist/assets/TransactionVendorDetailPage-DMweGn3b-CelejD-M.js +80 -0
  166. package/dist/assets/{TransferDrawerPage-oV7ickRP-D-sipkzC.js → TransferDrawerPage-BTqCR3Hb-CYdeK3jF.js} +12 -12
  167. package/dist/assets/{TreasuryOverviewPage-CECDKjNn-DafLwMhl.js → TreasuryOverviewPage-CDJtsQsC-ns0b2xlD.js} +42 -42
  168. package/dist/assets/{TreasuryPromoPage-Bgt7uGAE-Iq5Spa9l.js → TreasuryPromoPage-Bqt6DcqL-DbWZMgaj.js} +131 -131
  169. package/dist/assets/TreasuryStatementsPage-2PsC-PWa-MMDwIX2Z.js +58 -0
  170. package/dist/assets/TreasuryTaxLetterPage-D6MoHMAo-MFFnXqVo.js +58 -0
  171. package/dist/assets/{TrendChart-C_6ob-SX-UqLmUzGG.js → TrendChart-DiutckSt-CgHLzJj6.js} +4 -4
  172. package/dist/assets/{TrendWithTransactions-lMD2sZ-C-CwJLlCAn.js → TrendWithTransactions-rPwZKHfV-DNKy45Dj.js} +9 -9
  173. package/dist/assets/{UncategorizedAccountsMappingPage-DEgz17_R-BI_hO66l.js → UncategorizedAccountsMappingPage-CFx4P194-CH9WyFGN.js} +11 -11
  174. package/dist/assets/{UnitIntegrationPage-D9Pzxqju-DEb5YSJD.js → UnitIntegrationPage-DO8dMzVg-DvbEuGmN.js} +6 -6
  175. package/dist/assets/UploadAdditionalDocumentOverlay-Ug3kL02_-B3G6i9sn.js +38 -0
  176. package/dist/assets/{Vendor2FAPopup-D-r0NVE--Cj-W5XDH.js → Vendor2FAPopup-BdG-Ywma-QkJvZ609.js} +1 -1
  177. package/dist/assets/{VendorACHDetailsPage-Dv6bTD6Y-Bs2SlaRU.js → VendorACHDetailsPage-BUNmE_s6-5dZ0tO5y.js} +1 -1
  178. package/dist/assets/{VendorDetailPage-BhfawsBd-B6AIf-oM.js → VendorDetailPage-Dy9McuGu-BueeE3oi.js} +19 -19
  179. package/dist/assets/{VendorDomesticWireDetailsPage-BjmlrfTQ-BBrkrthi.js → VendorDomesticWireDetailsPage-DvACrh7C-fv6qIbh-.js} +1 -1
  180. package/dist/assets/{VendorFiling1099EditablePage-glvi0GTU-NorBD_dQ.js → VendorFiling1099EditablePage-Y0hGO4RH-Bkykk5NB.js} +21 -21
  181. package/dist/assets/{VendorFirstReviewPage-DUuUM8ZT-v0NQaBfE.js → VendorFirstReviewPage-C-pT1M36-D21-SWZN.js} +50 -50
  182. package/dist/assets/{VendorInternationalWireDetailsPage--Lb-TviQ-RCdBVGb0.js → VendorInternationalWireDetailsPage-CCMramET-CvrUOrMX.js} +15 -15
  183. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C6KviV2Z-BcKJJc7Z.js → VendorInternationalWireSwiftDetailsPage-lxD_Z5W--BAaZ1iJw.js} +1 -1
  184. package/dist/assets/{VendorsAccountsSection-EmHO3wQ0-CCWdfZ9i.js → VendorsAccountsSection-D-3fhQvy-ODF-nF1J.js} +2 -2
  185. package/dist/assets/{VerifyDevice-DE3UbLEe-xqLTy9aT.js → VerifyDevice-DDZdWfa8-C2_zooti.js} +7 -7
  186. package/dist/assets/{VideoPlayer-Gw_PLr8F-LYtV3YjE.js → VideoPlayer-D0GZ_Yml-CzUqkm8K.js} +2 -2
  187. package/dist/assets/{VideoPopup-DPZYhLgy-BO96yEx0.js → VideoPopup-CEdhfU31-CRc_PqEa.js} +1 -1
  188. package/dist/assets/{WarningsDrawerPage-CZvToguS-ZmIZ7qVV.js → WarningsDrawerPage-CIK9lkT2-4Dbh3gee.js} +7 -7
  189. package/dist/assets/{ZeniAccountDetailPage-CQhqngBz-C7s0f_Qs.js → ZeniAccountDetailPage-BF8cg2oa-D23upslb.js} +36 -36
  190. package/dist/assets/{ZeniAccountListViewPage-CpX8vqYa-D69L6A9u.js → ZeniAccountListViewPage-BkdkYY8j-BsJgCgRQ.js} +9 -9
  191. package/dist/assets/{ZeniAccountNavBarPieces-DsUwG15z-B89t8_rk.js → ZeniAccountNavBarPieces-FAxN1QDY-BljetA4S.js} +3 -3
  192. package/dist/assets/{ZeniAccountPromoPage-DA611IgH-CDNeuQb5.js → ZeniAccountPromoPage-COAOIU03-Bkst1764.js} +31 -31
  193. package/dist/assets/{ZeniAccountSetupPage-CJv2Fk1i-DgoWwbJ9.js → ZeniAccountSetupPage-QMBiVius-DdJzbNoZ.js} +6 -6
  194. package/dist/assets/{ZeniCopyright-FFqiWypL-jhRC6VHA.js → ZeniCopyright-CgfP-kcy-BQ8g3w-z.js} +1 -1
  195. package/dist/assets/{ZeniTransferAmountSlider-DSrBZUbA-B8KinheN.js → ZeniTransferAmountSlider-B1fmc3f9-BXoBksgM.js} +3 -3
  196. package/dist/assets/{add-to-wallet-DgdBD8_G-CmJT13gp.js → add-to-wallet-DgdBD8_G-BctcirlU.js} +1 -1
  197. package/dist/assets/{analytics-XaDXTZcq.js → analytics-DGBWhVbe.js} +1 -1
  198. package/dist/assets/{analyticsHelper-CczQLvkM-CJFzfxe1.js → analyticsHelper-BKtlFOJm-DFeq4K6y.js} +1 -1
  199. package/dist/assets/analyticsHelper-BY515BEN.js +1 -0
  200. package/dist/assets/{arrow-south-east-round-PEovUgvH-7DsZUZDF.js → arrow-south-east-round-PEovUgvH-DFZl4BUT.js} +1 -1
  201. package/dist/assets/{auto-transfer-rule-mbafm5D3-iFkTgScT.js → auto-transfer-rule-mbafm5D3-BCnmjSj0.js} +1 -1
  202. package/dist/assets/{chartTypes-CwQl8aoN-mEF0MFro.js → chartTypes-BZYC5y5J-fsutalT0.js} +1 -1
  203. package/dist/assets/{commonDimensions-B1u_MhON-DBkNP1J8.js → commonDimensions-B-aZt-hB-CyMsSMR_.js} +1 -1
  204. package/dist/assets/{core-3dlyNYRL.js → core-B-FNbYlu.js} +12 -12
  205. package/dist/assets/{dash.all.min-DBAY9LgI.js → dash.all.min-BBsvkPzr.js} +1 -1
  206. package/dist/assets/{detailCommon-nYxvvV_i-Can4Gb-c.js → detailCommon-DCtkwfR8-BBwf5Sk5.js} +2 -2
  207. package/dist/assets/{downloadPdf-yGlKpV2--fFgmg-2D.js → downloadPdf-BhQlJMh0-BaxCiwAc.js} +1 -1
  208. package/dist/assets/{empty-DeBX16Fq.js → empty-TjEo4rDg.js} +1 -1
  209. package/dist/assets/epic-DMZtehrN.js +2 -0
  210. package/dist/assets/{gift-box-Cmt9OgIZ-CvUdutGd.js → gift-box-Cmt9OgIZ-aujv_noX.js} +1 -1
  211. package/dist/assets/{graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js → graphic-no-data-l-DU4J8fDt-DTSR9TM8.js} +1 -1
  212. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js → graphic-no-data-net-burn-l-CzmycA0m-Bw4ambPw.js} +1 -1
  213. package/dist/assets/{handshake-BPg58FML-D7G7L1P7.js → handshake-BPg58FML-BjSDfVm7.js} +1 -1
  214. package/dist/assets/{index-DcV3YN51.js → index-BhteR_e0.js} +3325 -3235
  215. package/dist/assets/{index-DYDdrdFx.js → index-CFi0iD-l.js} +1 -1
  216. package/dist/assets/{index-CEtuJXY3.js → index-CL_7G35J.js} +1 -1
  217. package/dist/assets/{index-DrmeEdvK.js → index-DdJI4MMd.js} +1 -1
  218. package/dist/assets/{index-CdTBIE6I.js → index-dPPP2cWo.js} +1 -1
  219. package/dist/assets/{index-DQmBF4-D.js → index-piC0sJHK.js} +1 -1
  220. package/dist/assets/{liveblocks-CNYVvsag.js → liveblocks-BBTLClA6.js} +1 -1
  221. package/dist/assets/{lottie-22bRan8M.js → lottie-gmZDfwf4.js} +2 -2
  222. package/dist/assets/{mapLoadingInProgressToTreeNode-DIAuL28N-Bvp61kW7.js → mapLoadingInProgressToTreeNode-B8iO-fIh-RTAx_JGt.js} +1 -1
  223. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DRSmQ56_-CVFismWT.js → mapSectionWithAcOnlyToTreeNode-PLUfKBDd-B2JV3NdC.js} +1 -1
  224. package/dist/assets/{mapSpacerToTreeNode-DOEVwUIo-1MsMz7Z4.js → mapSpacerToTreeNode-BPbkmHFY-Ce33KPvG.js} +1 -1
  225. package/dist/assets/{mapTimeframeBalancesToTreeNode-DbnAvW1M-DsWNrW_e.js → mapTimeframeBalancesToTreeNode-B-kK0AfR-BuUApKLg.js} +1 -1
  226. package/dist/assets/{mapTimeframeBalancesToTreeNode-DkrEWOxt-D-u3haR2.js → mapTimeframeBalancesToTreeNode-BvN4m9TA-kT_avyio.js} +1 -1
  227. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-CQahu__z.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BiRfdc4g-CoGG1EsI.js} +1 -1
  228. package/dist/assets/{mui-bYXq4XMS.js → mui-DLNyBjYF.js} +1 -1
  229. package/dist/assets/{page-detail-CWX5S47F-Bc8Xpsuq.js → page-detail-CWX5S47F-Dn7FEY9U.js} +1 -1
  230. package/dist/assets/{radio-default-CiSgisfh-Clpw2LWj.js → radio-default-CiSgisfh-B6CtarQ8.js} +1 -1
  231. package/dist/assets/{react-BpmEXSTM.js → react-2VG2yH4x.js} +1 -1
  232. package/dist/assets/{react-B84192hO.js → react-BiH01iGK.js} +2 -2
  233. package/dist/assets/{react-BvHTyLQY.js → react-Bqj7JUF5.js} +1 -1
  234. package/dist/assets/{react-Egsc5mMa.js → react-CeCWo9lx.js} +3 -3
  235. package/dist/assets/{react-BUQtf2po.js → react-CwPTei9W.js} +2 -2
  236. package/dist/assets/{react-CA3XI5Yc.js → react-CxPSrq5B.js} +1 -1
  237. package/dist/assets/{react-BuvI16A0.js → react-VfkIuzgx.js} +1 -1
  238. package/dist/assets/{react-Cz0zQhlY.js → react-sPv488Z5.js} +1 -1
  239. package/dist/assets/{recharts-h5iNQbFd.js → recharts-Cnl2EvUV.js} +1 -1
  240. package/dist/assets/{sentry-cYFeB6Pw.js → sentry-EYLV4XmG.js} +1 -1
  241. package/dist/assets/{shield-DOlUxcFf-BXuToJ7O.js → shield-DOlUxcFf-DYYbm8md.js} +1 -1
  242. package/dist/assets/{toCOABalancesWithID-rZFEkHuM-CcmAJqxc.js → toCOABalancesWithID-ChMShONK-DKVddnaL.js} +1 -1
  243. package/dist/assets/{toChartData-C-dHC-Oz-CP4vBFhW.js → toChartData-BUweupH8-9P9fGujj.js} +1 -1
  244. package/dist/assets/{transaction-placeholder-CpOwZAMG-0pwHfQC6.js → transaction-placeholder-CpOwZAMG-R9RAntKW.js} +1 -1
  245. package/dist/assets/{uploadAttachment-D3clfqPu-R41YBfbA.js → uploadAttachment-CeUHLpzO-CvskAe_e.js} +23 -23
  246. package/dist/assets/{uploadReceipts-Bkf_PaOH-BpDx2Xyf.js → uploadReceipts-Bkf_PaOH-B-Qf32vH.js} +1 -1
  247. package/dist/assets/{url-DPKHmOp_.js → url-DzcuVjHh.js} +1 -1
  248. package/dist/assets/{url-B-8T_WZb.js → url-dmxYLsoS.js} +1 -1
  249. package/dist/assets/{useLongPress-GCK2COYQ-8uipnze8.js → useLongPress-GCK2COYQ-BC43nxgO.js} +1 -1
  250. package/dist/assets/{usp-line-BBd1wKwW-ClwDS-nj.js → usp-line-BBd1wKwW-_aHpaGit.js} +1 -1
  251. package/dist/assets/utils-D1zwltK3.js +70 -0
  252. package/dist/assets/{zeni-epic-state-BwKvATgd.js → zeni-epic-state-HWtMOH-U.js} +3 -3
  253. package/dist/index.html +1 -1
  254. package/package.json +4 -4
  255. package/dist/assets/AccountInfoPage-CxWBk_t_-C853qZJF.js +0 -18
  256. package/dist/assets/AccountLockedInfoModal-DVvzKHJQ-BNuMKDDn.js +0 -59
  257. package/dist/assets/AddAddressForCardDrawer-e8qbO2Y5-DvtRki6M.js +0 -6
  258. package/dist/assets/ApprovalRulesSettingsPage-DQQw30S5-Cxbiv_Ie.js +0 -47
  259. package/dist/assets/ArAgingDetailPage-BEKsyA9Q-DYnsL3vQ.js +0 -46
  260. package/dist/assets/BillPayApprovalRuleDetailPage-ppU1Epmy-wt7XFnWO.js +0 -27
  261. package/dist/assets/BillPayApprovalRulesPage-UblNi2mR-Cy8f-c8U.js +0 -235
  262. package/dist/assets/ChargeCardPromoPage-uqT96W3_-BnyG_G4H.js +0 -222
  263. package/dist/assets/CreditCardPaymentDrawerPage-BvifQpD3-CNzp5-gT.js +0 -224
  264. package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-Cjd_r5yY.js +0 -1
  265. package/dist/assets/CustomerOnboardingPage-DUMQKVfM-grMFHxOC.js +0 -107
  266. package/dist/assets/DepositAccTransactionListPage-BS-OReem-BilXaW65.js +0 -66
  267. package/dist/assets/EditPeoplePage-BgsR09q8-Clk10Ml0.js +0 -55
  268. package/dist/assets/EntityDetailPage-Cvd4MG0F-BwgJTkQo.js +0 -18
  269. package/dist/assets/ExpenseAutomationPage-DW6Pxoah-DEkIGTkH.js +0 -1650
  270. package/dist/assets/InsightsSection-B3xD0SZ9-D-qnLmvb.js +0 -27
  271. package/dist/assets/InvitePeoplePage-BqzJOjVI-jVQ9WiMY.js +0 -12
  272. package/dist/assets/IssueChargeCardPage-CRtJDmrZ-BSgoE7Zm.js +0 -532
  273. package/dist/assets/LabeledDocumentField-p3pI5qLu-DGU5hH4V.js +0 -41
  274. package/dist/assets/MagicLinkACHDetailsPage-DwFvuGwG-D28XX0Mk.js +0 -1
  275. package/dist/assets/MagicLinkDomesticWireDetailsPage-CDB2igue-93p71ZIQ.js +0 -1
  276. package/dist/assets/NotificationsListConfig-BJm7A9Mz-BFc01g7L.js +0 -1
  277. package/dist/assets/OverlayContainerPage-CrZuT2Jj-Dr75-ri4.js +0 -11
  278. package/dist/assets/ReimbursementApprovalRuleDetailPage-C_dTOk5P-b8CZcjjJ.js +0 -26
  279. package/dist/assets/ReimbursementApprovalRulesPage-B5lca4qx-BsFO_SEH.js +0 -237
  280. package/dist/assets/ReimbursementPromoPage-Bjm0UHcm-OX27QZ1k.js +0 -84
  281. package/dist/assets/ReviewDetailsPage-COx9R71r-88bs-gXn.js +0 -290
  282. package/dist/assets/SpendManagementListViewPage-AI676Urw-BtTyp4PL.js +0 -123
  283. package/dist/assets/SpendManagementPerTabPage-D79c3Xqh-lldxOES4.js +0 -754
  284. package/dist/assets/StatementItem-Aal79YaO-6BMegZOO.js +0 -31
  285. package/dist/assets/TransactionListPage-CN9fZznd-BrDL89Z5.js +0 -35
  286. package/dist/assets/TransactionVendorDetailPage-CykcquSh-B4MWnYyc.js +0 -80
  287. package/dist/assets/TreasuryStatementsPage-QyWxshsI-NmuXI2Gt.js +0 -58
  288. package/dist/assets/TreasuryTaxLetterPage-BLmfU0VD-CtEdSJnO.js +0 -58
  289. package/dist/assets/UploadAdditionalDocumentOverlay-CJYvOjh0-CyuAR94x.js +0 -38
  290. package/dist/assets/analyticsHelper-DP2qtYwK.js +0 -1
  291. package/dist/assets/epic-BLwHhkRJ.js +0 -2
  292. package/dist/assets/utils-fBOyu0sO.js +0 -70
@@ -1,4 +1,4 @@
1
- import{d as ze,Q,F as q,a8 as et,aN as Ae,cB as tt,V as t,bz as it,ab as at,aO as nt,y as x,o as n,kK as lt,kL as ot,kM as rt,cH as Re,cE as dt,eX as st,fz as ct,fA as pt,cG as De,g7 as mt,kN as ut,cK as ht,f2 as Ve,cL as yt,f3 as ke,fc as Oe,b as ge,fg as gt,u,b8 as xt,b5 as be,p as Ee,al as ft,aq as We}from"./index-DcV3YN51.js";import{a as G}from"./core-3dlyNYRL.js";import{n as d}from"./mui-bYXq4XMS.js";import{bO as qe,bj as le,bS as Ue,bK as bt,bp as wt}from"./zeni-epic-state-BwKvATgd.js";import{Y as vt}from"./LabeledDocumentField-p3pI5qLu-DGU5hH4V.js";import{S as te}from"./LabeledText-Db46hFZY-BVLwPpan.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const St={progressBarWidth:new x(343,726)},jt=({pageIndex:e})=>{const i=Q(),a=ze(),s=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs($t,{children:[t.jsx(lt,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx(Tt,{children:h.map((p,l)=>t.jsx(Ft,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Le,{children:p})},l))})]}):t.jsxs(Ct,{windowSize:i,children:[t.jsx(ot,{coloredSectionCount:e,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1}),t.jsx(Pt,{children:h.map((p,l)=>t.jsx(It,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Le,{children:p})},p))})]})},Ct=d.div`
1
+ import{e as Re,q as G,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at,aO as nt,y as x,o as n,kK as lt,kL as ot,kM as rt,cH as Ve,cE as dt,eX as st,fz as ct,fA as pt,cG as Ae,g7 as mt,kN as ut,cK as ht,f2 as ze,cL as yt,f3 as ke,fc as Oe,b as ge,fg as gt,d as u,b8 as xt,b5 as be,p as Ee,al as ft,aq as We}from"./index-BhteR_e0.js";import{a as K}from"./core-B-FNbYlu.js";import{n as d}from"./mui-DLNyBjYF.js";import{bO as qe,bj as le,bS as He,bK as bt,bp as wt}from"./zeni-epic-state-HWtMOH-U.js";import{Y as vt}from"./LabeledDocumentField-MkryOLQ8-ZmKcbrkd.js";import{S as te}from"./LabeledText-BJ3Zvb5p-yc50ilCa.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const St={progressBarWidth:new x(343,726)},jt=({pageIndex:e})=>{const i=G(),a=Re(),s=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs($t,{children:[t.jsx(lt,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx(Tt,{children:h.map((p,l)=>t.jsx(Ft,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Le,{children:p})},l))})]}):t.jsxs(Ct,{windowSize:i,children:[t.jsx(ot,{coloredSectionCount:e,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1}),t.jsx(Pt,{children:h.map((p,l)=>t.jsx(It,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Le,{children:p})},p))})]})},Ct=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-top: ${n.sp3};
@@ -38,7 +38,7 @@ import{d as ze,Q,F as q,a8 as et,aN as Ae,cB as tt,V as t,bz as it,ab as at,aO a
38
38
  position: relative;
39
39
  height: ${e=>`${e.perSectionHeight}%`};
40
40
  color: ${e=>e.isRelevant?e.theme.colors.primary:e.theme.colors.grey2};
41
- `,I={containerWidth:new x(343,580,726),labelWidth:new x(120,160,160),largeLabelWidth:new x(150,228,228),largeLabelPickerWidth:new x(100,180,180),paddingBottom:new x(u[3],u[2]),labelMarginLeftPicker:new x(u[3],u[4]),labelMarginRightPicker:new x(u[3],u[4]),labelMarginTopPicker:new x(u[2],u[2]),labeledFieldPaddingLeft:new x(u[0],u[0]),labeledFieldPaddingRight:new x(u[2],u[2]),labeledFieldPaddingTop:new x(u[2],u[2]),labeledFieldPaddingBottom:new x(u[2],u[2]),infoLabelPaddingRight:new x(u[0],u[3]),infoLabelMarginTop:new x(u[1],u[0])},R=(e,i)=>`${e}.${i}`,At=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:T,deleteFileStatusById:P,updateFileStatusById:f,onClickAddAccount:w})=>{const o=Q(),{spendManagement:A,dateFormat:y,common:C}=q.getLocalizedStrings(),$=A.billPay.billDetails,J=y.visual.defaultInput,re=A.zeniAccounts.expressPay,de=C.documents,U=I.largeLabelWidth.value(o),[g,K]=G.useState(!1),H=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(bt)===!1),D=r=>s.find(m=>m.id===r),L=r=>Ve(D(r)),se=()=>{let r=[];return i?.paymentType?.method.includes("wire")===!0?r=s.filter(m=>!!m.bankRoutingNumberWireTransfer).map(m=>m.id):r=s.filter(m=>!!m.bankRoutingNumberAch).map(m=>m.id),r},ce=r=>{const m=D(r),j=q.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(xe,{children:[t.jsxs(W,{children:[t.jsx(V,{children:j.vendorCreation.achDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberAch??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(V,{children:j.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(V,{children:j.vendorCreation.achDetails.bankAccountNumber}),t.jsx(E,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):i?.paymentType?.method.includes("wire")===!0?i.paymentType?.method.includes("international")===!0?t.jsx(xe,{children:m?.piLabels.map(Y=>t.jsxs(W,{children:[t.jsxs(V,{children:[Y.name,j.paymentDetails.colon]}),t.jsx(E,{children:Y.value})]},Y.name))}):t.jsxs(xe,{children:[t.jsxs(W,{children:[t.jsx(V,{children:j.vendorCreation.wireDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberWireTransfer??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(V,{children:j.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(V,{children:j.vendorCreation.wireDetails.accountNumber}),t.jsx(E,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):""};return t.jsxs(t.Fragment,{children:[t.jsx(Dt,{children:$.paymentDetailsTitle}),t.jsxs(kt,{windowSize:o,children:[t.jsx(st,{label:{label:$.withdrawFrom,width:U,style:{marginLeft:I.labelMarginLeftPicker.valuePx(o),marginTop:I.labelMarginTopPicker.valuePx(o),marginRight:I.labelMarginRightPicker.valuePx(o),width:I.largeLabelPickerWidth.value(o)}},style:{paddingTop:I.labeledFieldPaddingTop.valuePx(o),paddingBottom:I.labeledFieldPaddingBottom.valuePx(o),paddingLeft:I.labeledFieldPaddingLeft.valuePx(o),paddingRight:I.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:I.infoLabelPaddingRight.valuePx(o),marginTop:I.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:R(e,"withdrawFrom"),placeholder:De($.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(r,m)=>pt(h,r,m),valueToSubLabels:(r,m)=>ct(h,r,m,!1),defaultValue:{selectedOption:i?.withdrawFrom?.id,allOptions:h.map(r=>({label:r.label,value:r.id}))},textAlignment:"right",registerOptions:{required:!0,validate:r=>r!=null&&!!r.selectedOption}}}),t.jsx(_,{}),t.jsx(mt,{showAdditionalInfoLabel:!1,label:{label:$.amount,width:U},formattedTextField:{type:"number",name:R(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:De($.amount),returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:r=>r!=null&&r!==0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,shouldHighlightZeroAmount:!0},style:{width:"auto"}}),t.jsx(_,{}),t.jsx(ut,{label:{label:$.paymentMethod,width:I.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:R(e,"paymentMethod"),placeholder:$.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:H,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(_,{}),t.jsx(ht,{label:{label:$.paymentDate,width:I.labelWidth.value(o)},style:{paddingBottom:I.paddingBottom.valuePx(o),width:"auto"},dateField:{name:R(e,"paymentDate"),placeholder:$.paymentDate,dateFormat:J,autoComplete:"off",minDate:le(),registerOptions:{required:!0}}}),t.jsx(_,{}),t.jsx(Re,{label:{label:$.paymentTo,width:U},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:R(e,"paymentTo"),placeholder:$.selectAccount,getTooltipInfo:ce,menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:w,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:L},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?se():[]},registerOptions:{required:!0,validate:r=>r?.selectedOption!=null}}}),t.jsx(_,{}),t.jsx(vt,{name:R(e,"receipt"),sizeLimit:yt,deleteFileStatusById:P,updateFileStatusById:f,filesEndPoint:l.filesEndPoint,authParams:l.authParams,label:{label:re.reciept,width:U},filemetadataPayload:{documentType:"id_document",purposeId:"business_verification_others",documentSide:"front"},file:T,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:g,updateFilesEntity:l.updateFilesEntity,onEditFileName:l.onEditFileName,onDeleteFile:l.onDeleteFile,onFileSizeError:r=>K(r),isOptional:!0,style:T!=null?{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}:void 0},R(e,"receipt")),T==null?t.jsx(Ot,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(_,{})]})]})},Dt=d(be)`
41
+ `,I={containerWidth:new x(343,580,726),labelWidth:new x(120,160,160),largeLabelWidth:new x(150,228,228),largeLabelPickerWidth:new x(100,180,180),paddingBottom:new x(u[3],u[2]),labelMarginLeftPicker:new x(u[3],u[4]),labelMarginRightPicker:new x(u[3],u[4]),labelMarginTopPicker:new x(u[2],u[2]),labeledFieldPaddingLeft:new x(u[0],u[0]),labeledFieldPaddingRight:new x(u[2],u[2]),labeledFieldPaddingTop:new x(u[2],u[2]),labeledFieldPaddingBottom:new x(u[2],u[2]),infoLabelPaddingRight:new x(u[0],u[3]),infoLabelMarginTop:new x(u[1],u[0])},V=(e,i)=>`${e}.${i}`,Dt=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:T,deleteFileStatusById:P,updateFileStatusById:f,onClickAddAccount:w})=>{const o=G(),{spendManagement:D,dateFormat:y,common:C}=q.getLocalizedStrings(),$=D.billPay.billDetails,X=y.visual.defaultInput,re=D.zeniAccounts.expressPay,de=C.documents,H=I.largeLabelWidth.value(o),[g,J]=K.useState(!1),U=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(bt)===!1),A=r=>s.find(m=>m.id===r),L=r=>ze(A(r)),se=()=>{let r=[];return i?.paymentType?.method.includes("wire")===!0?r=s.filter(m=>!!m.bankRoutingNumberWireTransfer).map(m=>m.id):r=s.filter(m=>!!m.bankRoutingNumberAch).map(m=>m.id),r},ce=r=>{const m=A(r),j=q.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(xe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberAch??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankAccountNumber}),t.jsx(E,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):i?.paymentType?.method.includes("wire")===!0?i.paymentType?.method.includes("international")===!0?t.jsx(xe,{children:m?.piLabels.map(Y=>t.jsxs(W,{children:[t.jsxs(z,{children:[Y.name,j.paymentDetails.colon]}),t.jsx(E,{children:Y.value})]},Y.name))}):t.jsxs(xe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.wireDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberWireTransfer??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.wireDetails.accountNumber}),t.jsx(E,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):""};return t.jsxs(t.Fragment,{children:[t.jsx(At,{children:$.paymentDetailsTitle}),t.jsxs(kt,{windowSize:o,children:[t.jsx(st,{label:{label:$.withdrawFrom,width:H,style:{marginLeft:I.labelMarginLeftPicker.valuePx(o),marginTop:I.labelMarginTopPicker.valuePx(o),marginRight:I.labelMarginRightPicker.valuePx(o),width:I.largeLabelPickerWidth.value(o)}},style:{paddingTop:I.labeledFieldPaddingTop.valuePx(o),paddingBottom:I.labeledFieldPaddingBottom.valuePx(o),paddingLeft:I.labeledFieldPaddingLeft.valuePx(o),paddingRight:I.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:I.infoLabelPaddingRight.valuePx(o),marginTop:I.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:V(e,"withdrawFrom"),placeholder:Ae($.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(r,m)=>pt(h,r,m),valueToSubLabels:(r,m)=>ct(h,r,m,!1),defaultValue:{selectedOption:i?.withdrawFrom?.id,allOptions:h.map(r=>({label:r.label,value:r.id}))},textAlignment:"right",registerOptions:{required:!0,validate:r=>r!=null&&!!r.selectedOption}}}),t.jsx(_,{}),t.jsx(mt,{showAdditionalInfoLabel:!1,label:{label:$.amount,width:H},formattedTextField:{type:"number",name:V(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:Ae($.amount),returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:r=>r!=null&&r!==0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,shouldHighlightZeroAmount:!0},style:{width:"auto"}}),t.jsx(_,{}),t.jsx(ut,{label:{label:$.paymentMethod,width:I.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:V(e,"paymentMethod"),placeholder:$.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:U,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(_,{}),t.jsx(ht,{label:{label:$.paymentDate,width:I.labelWidth.value(o)},style:{paddingBottom:I.paddingBottom.valuePx(o),width:"auto"},dateField:{name:V(e,"paymentDate"),placeholder:$.paymentDate,dateFormat:X,autoComplete:"off",minDate:le(),registerOptions:{required:!0}}}),t.jsx(_,{}),t.jsx(Ve,{label:{label:$.paymentTo,width:H},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:V(e,"paymentTo"),placeholder:$.selectAccount,getTooltipInfo:ce,menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:w,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:L},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?se():[]},registerOptions:{required:!0,validate:r=>r?.selectedOption!=null}}}),t.jsx(_,{}),t.jsx(vt,{name:V(e,"receipt"),sizeLimit:yt,deleteFileStatusById:P,updateFileStatusById:f,filesEndPoint:l.filesEndPoint,authParams:l.authParams,label:{label:re.reciept,width:H},filemetadataPayload:{documentType:"id_document",purposeId:"business_verification_others",documentSide:"front"},file:T,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:g,updateFilesEntity:l.updateFilesEntity,onEditFileName:l.onEditFileName,onDeleteFile:l.onDeleteFile,onFileSizeError:r=>J(r),isOptional:!0,style:T!=null?{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}:void 0},V(e,"receipt")),T==null?t.jsx(Ot,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(_,{})]})]})},At=d(be)`
42
42
  color: ${e=>e.theme.colors.primary};
43
43
  margin-bottom: ${n.sp3};
44
44
  `,kt=d.div`
@@ -55,7 +55,7 @@ import{d as ze,Q,F as q,a8 as et,aN as Ae,cB as tt,V as t,bz as it,ab as at,aO a
55
55
  background-color: ${e=>e.theme.colors.grey3};
56
56
  min-height: 1px;
57
57
  max-height: 1px;
58
- `,V=d.div`
58
+ `,z=d.div`
59
59
  box-sizing: border-box;
60
60
  text-align: left;
61
61
  flex: 1 0 50%;
@@ -79,13 +79,13 @@ import{d as ze,Q,F as q,a8 as et,aN as Ae,cB as tt,V as t,bz as it,ab as at,aO a
79
79
  border-radius: ${n.sp0} ${n.sp0} ${n.sp2} ${n.sp2};
80
80
  text-align: ${e=>e.windowSize==="small"?"initial":"right"};
81
81
  color: ${e=>e.isError?Ee.important:e.theme.colors.grey1};
82
- `,Lt={largeLabelWidth:new x(150,210,210)},ie=(e,i)=>`${e}.${i}`,Nt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=Q(),l=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,T=Lt.largeLabelWidth.value(p),P=G.useRef();G.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&P.current?.(Mt(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const f={vendorSearchAutoCompleteData:s,loadOptions:(y,C)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),P.current=C}},w=f?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="Not-Started"),o={defaultOptions:He(a?.vendorId,a?.vendorName,s?.entityAutoCompleteView),selectedOption:a?.vendorId??a?.vendorName??""},A={valueContainer:y=>({...y,padding:`2px ${p==="small"?n.sp2:n.sp3} !important`,overflow:"unset"}),singleValue:y=>({...y,margin:0}),placeholder:y=>({...y,fontWeight:"normal"})};return t.jsxs(t.Fragment,{children:[t.jsx(Bt,{children:l.recipientSectionTitle}),t.jsx(zt,{children:t.jsxs(Rt,{children:[t.jsx(rt,{label:{label:l.recipientName,width:T},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ie(e,"recipient"),placeholder:p==="small"?l.placeholders.recipientNameMobile:l.placeholders.recipientName,valueToId:y=>y,defaultValue:{...o},style:{width:"100%"},customStyleConfig:A,registerOptions:{required:!0,validate:y=>y!=null&&!!y.selectedOption},loadOptions:f?.loadOptions,isOptionsLoading:w,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ie(e,"recipient")),t.jsx(Ne,{}),t.jsx(Re,{label:{label:l.recipientType,width:T},singleSelectField:{singleSelect:{name:ie(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:y=>i.find(C=>C.code===y)?.name??"",showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:a?.vendorType,allOptions:i.map(y=>y.code)},registerOptions:{required:!0,validate:y=>!!y.selectedOption}},isFunctional:!0}),t.jsx(Ne,{}),t.jsx(dt,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:T},text:{type:"email",name:ie(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},He=(e,i,a)=>{if(e==null)return[];const s=a?.vendor?.find(h=>h.id===e);return s!=null||e!=null?[{label:s?.name??i??e??"",value:e??i??""}]:[]},Mt=e=>e?.vendor.map(i=>({label:i.name,value:i.zeniId,zeniId:i.zeniId}))??[],Bt=d(be)`
82
+ `,Lt={largeLabelWidth:new x(150,210,210)},ie=(e,i)=>`${e}.${i}`,Nt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=G(),l=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,T=Lt.largeLabelWidth.value(p),P=K.useRef();K.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&P.current?.(Mt(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const f={vendorSearchAutoCompleteData:s,loadOptions:(y,C)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),P.current=C}},w=f?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="Not-Started"),o={defaultOptions:Ue(a?.vendorId,a?.vendorName,s?.entityAutoCompleteView),selectedOption:a?.vendorId??a?.vendorName??""},D={valueContainer:y=>({...y,padding:`2px ${p==="small"?n.sp2:n.sp3} !important`,overflow:"unset"}),singleValue:y=>({...y,margin:0}),placeholder:y=>({...y,fontWeight:"normal"})};return t.jsxs(t.Fragment,{children:[t.jsx(Bt,{children:l.recipientSectionTitle}),t.jsx(Rt,{children:t.jsxs(Vt,{children:[t.jsx(rt,{label:{label:l.recipientName,width:T},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ie(e,"recipient"),placeholder:p==="small"?l.placeholders.recipientNameMobile:l.placeholders.recipientName,valueToId:y=>y,defaultValue:{...o},style:{width:"100%"},customStyleConfig:D,registerOptions:{required:!0,validate:y=>y!=null&&!!y.selectedOption},loadOptions:f?.loadOptions,isOptionsLoading:w,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ie(e,"recipient")),t.jsx(Ne,{}),t.jsx(Ve,{label:{label:l.recipientType,width:T},singleSelectField:{singleSelect:{name:ie(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:y=>i.find(C=>C.code===y)?.name??"",showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:a?.vendorType,allOptions:i.map(y=>y.code)},registerOptions:{required:!0,validate:y=>!!y.selectedOption}},isFunctional:!0}),t.jsx(Ne,{}),t.jsx(dt,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:T},text:{type:"email",name:ie(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},Ue=(e,i,a)=>{if(e==null)return[];const s=a?.vendor?.find(h=>h.id===e);return s!=null||e!=null?[{label:s?.name??i??e??"",value:e??i??""}]:[]},Mt=e=>e?.vendor.map(i=>({label:i.name,value:i.zeniId,zeniId:i.zeniId}))??[],Bt=d(be)`
83
83
  color: ${e=>e.theme.colors.primary};
84
84
  margin-bottom: ${n.sp3};
85
- `,zt=d.div`
85
+ `,Rt=d.div`
86
86
  display: flex;
87
87
  flex-direction: column;
88
- `,Rt=d.div`
88
+ `,Vt=d.div`
89
89
  display: flex;
90
90
  flex-direction: column;
91
91
  background-color: ${e=>e.theme.colors.grey5};
@@ -98,7 +98,7 @@ import{d as ze,Q,F as q,a8 as et,aN as Ae,cB as tt,V as t,bz as it,ab as at,aO a
98
98
  background-color: ${e=>e.theme.colors.grey3};
99
99
  min-height: 1px;
100
100
  max-height: 1px;
101
- `,oe={containerWidth:new x(343,580,726),largeLabelWidth:new x(150,215,215),reviewContainerMarginLeft:new x(u[3],u[6]),reviewContainerMarginRight:new x(u[3],u[8])},Vt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=Q(),p=oe.largeLabelWidth.value(h),{billPay:l}=q.getLocalizedStrings().spendManagement,{dateFormat:T,common:P}=q.getLocalizedStrings(),f=l.billDetails,w=i?.paymentType,o=T.visual.MMMDCommaYYYYformat,A={amount:i?.amount?.amount??0,currencyCode:P.currency.currencyCode,currencySymbol:P.currency.currencySymbol},y=Ve(a.find(J=>J.id===i?.paymentToAccountId)),C=i?.paymentDate,$=ke(w?.method??"");return t.jsx(Yt,{children:t.jsxs(_t,{windowSize:h,style:s,children:[t.jsxs(Jt,{children:[t.jsx(ae,{children:f.pay}),t.jsx(ae,{children:t.jsx(Oe,{amount:A,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ae,{children:f.to}),t.jsx(ae,{children:e})]}),t.jsxs(Gt,{windowSize:h,children:[t.jsx(te,{label:{label:f.withdrawFrom,width:p},style:{width:"auto",gap:u[3]},value:i?.withdrawFrom!=null?gt(i.withdrawFrom,h):P.strings.empty}),t.jsx(fe,{}),t.jsx(te,{label:{label:f.paymentMethod,width:p},style:{width:"auto"},value:ke(w?.method??"")}),t.jsx(fe,{}),C!=null?t.jsxs(t.Fragment,{children:[t.jsx(te,{label:{label:f.paymentDate,width:p},style:{width:"auto"},value:C.format(o),additionalInfoLabel:`${f.estimatedArrival}${qe(Ue(C.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${$.length>0?`${$} `:""}${f.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${f.deliveryTimeUnits})`}),t.jsx(fe,{})]}):null,t.jsx(te,{label:{label:f.paymentTo,width:p},style:{width:"auto"},value:y??""})]}),t.jsx(Wt,{children:t.jsxs(qt,{windowSize:h,children:[t.jsx(Ut,{children:t.jsx(Et,{children:l.paymentDetails.total})}),t.jsx(Ht,{children:t.jsx(Oe,{amount:wt(A.amount,A.currencyCode,A.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},Et=d.div``,Wt=d.div`
101
+ `,oe={containerWidth:new x(343,580,726),largeLabelWidth:new x(150,215,215),reviewContainerMarginLeft:new x(u[3],u[6]),reviewContainerMarginRight:new x(u[3],u[8])},zt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=G(),p=oe.largeLabelWidth.value(h),{billPay:l}=q.getLocalizedStrings().spendManagement,{dateFormat:T,common:P}=q.getLocalizedStrings(),f=l.billDetails,w=i?.paymentType,o=T.visual.MMMDCommaYYYYformat,D={amount:i?.amount?.amount??0,currencyCode:P.currency.currencyCode,currencySymbol:P.currency.currencySymbol},y=ze(a.find(X=>X.id===i?.paymentToAccountId)),C=i?.paymentDate,$=ke(w?.method??"");return t.jsx(Yt,{children:t.jsxs(_t,{windowSize:h,style:s,children:[t.jsxs(Xt,{children:[t.jsx(ae,{children:f.pay}),t.jsx(ae,{children:t.jsx(Oe,{amount:D,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ae,{children:f.to}),t.jsx(ae,{children:e})]}),t.jsxs(Kt,{windowSize:h,children:[t.jsx(te,{label:{label:f.withdrawFrom,width:p},style:{width:"auto",gap:u[3]},value:i?.withdrawFrom!=null?gt(i.withdrawFrom,h):P.strings.empty}),t.jsx(fe,{}),t.jsx(te,{label:{label:f.paymentMethod,width:p},style:{width:"auto"},value:ke(w?.method??"")}),t.jsx(fe,{}),C!=null?t.jsxs(t.Fragment,{children:[t.jsx(te,{label:{label:f.paymentDate,width:p},style:{width:"auto"},value:C.format(o),additionalInfoLabel:`${f.estimatedArrival}${qe(He(C.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${$.length>0?`${$} `:""}${f.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${f.deliveryTimeUnits})`}),t.jsx(fe,{})]}):null,t.jsx(te,{label:{label:f.paymentTo,width:p},style:{width:"auto"},value:y??""})]}),t.jsx(Wt,{children:t.jsxs(qt,{windowSize:h,children:[t.jsx(Ht,{children:t.jsx(Et,{children:l.paymentDetails.total})}),t.jsx(Ut,{children:t.jsx(Oe,{amount:wt(D.amount,D.currencyCode,D.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},Et=d.div``,Wt=d.div`
102
102
  display: flex;
103
103
  width: 100%;
104
104
  box-sizing: border-box;
@@ -113,13 +113,13 @@ import{d as ze,Q,F as q,a8 as et,aN as Ae,cB as tt,V as t,bz as it,ab as at,aO a
113
113
  border-radius: ${n.sp2};
114
114
  color: ${e=>e.theme.colors.hero};
115
115
  margin-bottom: ${n.sp2};
116
- `,Ut=d(We)`
116
+ `,Ht=d(We)`
117
117
  gap: ${n.sp1};
118
118
  display: flex;
119
119
  width: 100%;
120
120
  color: ${e=>e.theme.colors.primary};
121
121
  align-items: center;
122
- `,Ht=d(We)`
122
+ `,Ut=d(We)`
123
123
  display: flex;
124
124
  width: calc(100% - 176px);
125
125
  justify-content: flex-end;
@@ -135,7 +135,7 @@ import{d as ze,Q,F as q,a8 as et,aN as Ae,cB as tt,V as t,bz as it,ab as at,aO a
135
135
  flex-direction: column;
136
136
  margin-left: ${e=>oe.reviewContainerMarginLeft.valuePx(e.windowSize)};
137
137
  margin-right: ${e=>oe.reviewContainerMarginRight.valuePx(e.windowSize)};
138
- `,Gt=d.div`
138
+ `,Kt=d.div`
139
139
  display: flex;
140
140
  flex-direction: column;
141
141
  background-color: ${e=>e.theme.colors.grey5};
@@ -151,13 +151,13 @@ import{d as ze,Q,F as q,a8 as et,aN as Ae,cB as tt,V as t,bz as it,ab as at,aO a
151
151
  background-color: ${e=>e.theme.colors.grey3};
152
152
  min-height: 1px;
153
153
  max-height: 1px;
154
- `,Jt=d.div`
154
+ `,Xt=d.div`
155
155
  display: flex;
156
156
  `,ae=d(be)`
157
157
  display: flex;
158
158
  color: ${e=>e.theme.colors.primary};
159
159
  margin-right: ${n.sp1};
160
- `,Me="expressPayPage",Kt=e=>`${e}_form`,O="recipientDetails",F="paymentDetails",ne={buttonWidth:new x(160,140),largeButtonWidth:new x(166,166)},mi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:T,onBackClick:P,saveVendorDetailLocalData:f,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:A,initializeVendorAddress:y,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$,onEditFileName:J,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:U,expressPayLocalData:g,vendorTypeList:K,allPaymentMethods:H,paymentToOptions:D,withdrawFromList:L,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:Y}=e,[v,Z]=G.useState(0),Ye=ze(),X=Q(),{common:we,spendManagement:_e}=q.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=_e.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=U,N=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,Ce=Object.assign({},Se??je),Ge=N?.vendorName,$e=L.find(c=>c.id===s),ee=et({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(K,L,D,$e,H,N,g,j,C?.entityAutoCompleteView),values:Be(K,L,D,$e,H,N,g,j,C?.entityAutoCompleteView)}),Pe=Ae(Ce.saveStatus?.fetchState),Ie=Ae(m);G.useEffect(()=>{const c=ee.watch((S,{name:b})=>{b!=null&&S!=null&&tt(()=>Je(b,S))});return()=>{c.unsubscribe()}}),G.useEffect(()=>{Pe==="In-Progress"&&Y==="Completed"&&(v===0?(Z(1),o?.(g?.vendorId)):v===1&&Z(2)),Ie==="In-Progress"&&m==="Completed"&&P(g?.vendorId)},[Pe,Y,v,o,g?.vendorId,Ie,m,P]);const Je=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[O].recipient.selectedOption,k=C?.entityAutoCompleteView.vendor.find(M=>M.zeniId===b);Ke(S),y(),N?.vendorId!==b&&k!=null&&(l?.(b),he(S,!1,D,b))}else if(c.includes("recipient"))ue(S);else{const b=S[F].paymentMethod?.method,k=g?.paymentType?.method,M=b!=null&&k!=null&&(b.toLowerCase().includes("ach")&&k.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&k.toLowerCase().includes("ach"));he(S,M,D,g?.vendorId)}},Ke=c=>{const S=c[O].recipient.selectedOption,b=C?.entityAutoCompleteView.vendor.find(k=>k.id===S)!=null;if(S!=null&&b===!0){T?.(S),he(c,!1,D,S);return}ue(c,!0)},ue=(c,S)=>{const b=N?.vendorId,k=C?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,M=Xt(c,k===!0?b:void 0,N,S);f?.(M,b)},he=(c,S,b,k)=>{const M=(()=>{let B=[];return c[F].paymentMethod?.method.includes("wire")===!0?B=b.filter(z=>!!z.bankRoutingNumberWireTransfer).map(z=>z.id):B=b.filter(z=>!!z.bankRoutingNumberAch).map(z=>z.id),B})(),ye=b.find(B=>B.id===c[F]?.paymentTo?.selectedOption),Ze={vendorId:k,amount:{amount:c[F].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[F].paymentDate?qe(c[F].paymentDate.toString()):le(),paymentType:c[F]?.paymentMethod!=null?c[F]?.paymentMethod:void 0,paymentToAccountId:S?M[0]:ye?.id,withdrawFrom:L.find(B=>B.id===c[F]?.withdrawFrom?.selectedOption),receiptFileId:c[F].receipt?.fileId};w?.(Ze)},Te=ee.handleSubmit(()=>{if(v===0||v===1){a.trackExpressPayNextClick(v===0?"Recipient Details":"Payment Details");const c=ee.getValues();ue(c),p(g?.vendorId)}else a.trackExpressPayScheduleClick(),A()}),Xe=()=>{v===2?Z(1):P(g?.vendorId)},Qe=()=>{v===0?P(g?.vendorId):Z(v===1?0:1)},Fe={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?D.find(c=>c.id===g?.paymentToAccountId):void 0,paymentDate:g?.paymentDate,paymentType:g?.paymentType??H?.[0],recipientAmount:g?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(it,{title:me.pageTitle,onBackClick:Qe,backgroundColor:Ye.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Qt,{windowSize:X,children:[t.jsx(jt,{pageIndex:v}),t.jsx(at,{...ee,children:t.jsx("form",{id:Me,onSubmit:Te,children:v===0?t.jsx(Nt,{sectionId:O,vendorTypeList:K,formLocalData:N,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$}):v===1?t.jsx(At,{sectionId:F,paymentDetails:Fe,paymentToOptions:D,allPaymentMethods:H,withdrawFromList:L,internationalVerificationStatus:se,fileProps:{...i,onEditFileName:J,onDeleteFile:re,updateFilesEntity:de},deleteFileStatusById:ce,updateFileStatusById:r,receiptFile:j,onClickAddAccount:()=>{const c=Fe?.paymentType;c!=null&&h(c)}}):v===2?t.jsx(Vt,{reviewDetails:g,paymentToOptions:D,vendorName:Ge}):null})})]}),t.jsx(nt,{formId:Kt(Me),style:{width:"100%"},primaryBtn:{label:v===2?le().isSame(g?.paymentDate,"date")?me.sendMoney:me.schedulePayment:pe.next,isLoading:v===0||v===1?Ce.saveStatus?.fetchState==="In-Progress":m==="In-Progress",style:{width:v===2?ne.largeButtonWidth.value(X):ne.buttonWidth.value(X),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Te()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?ne.largeButtonWidth.value(X):ne.buttonWidth.value(X),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Xe}})]})},Be=(e,i,a,s,h,p,l,T,P)=>{const f=(()=>{let w=[];return l?.paymentType?.method.includes("wire")===!0?w=a.filter(o=>!!o.bankRoutingNumberWireTransfer).map(o=>o.id):w=a.filter(o=>!!o.bankRoutingNumberAch).map(o=>o.id),w})();return{[O]:{recipient:{defaultOptions:He(p?.vendorId,p?.vendorName,P),selectedOption:p?.vendorId??p?.vendorName??""},recipientEmail:p?.contacts?.[0]?.email??"",recipientName:p?.vendorName??"",recipientType:{allOptions:e.map(w=>w.code),selectedOption:p?.vendorType}},[F]:{paymentMethod:l?.paymentType??h?.[0],withdrawFrom:{selectedOption:l?.withdrawFrom?.id??s?.id??i[0]?.id,allOptions:i.map(w=>({label:w.label,value:w.id}))},amount:l?.amount.amount??0,paymentDate:l?.paymentDate?.toDate()??Ue(le().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?f:[],selectedOption:l?.paymentToAccountId??f[0]},receipt:T}}};function Xt(e,i,a,s){const h=e[O].recipient.defaultOptions.find(p=>p.value===e[O].recipient.selectedOption);return{vendorType:s===!0?void 0:e[O].recipientType.selectedOption,vendorId:i,vendorName:h?.label??a?.vendorName,contacts:s===!0?[]:[{fullName:"",email:e[O].recipientEmail,phone:""}],bankAccountIds:s===!0?[]:a?.bankAccountIds??[],paymentInstrumentIds:s===!0?[]:a?.paymentInstrumentIds??[],vendorOwner:s===!0?void 0:a?.vendorOwner,isVendor1099:a?.isVendor1099,documentIds:a?.documentIds??[],fileIdsToBeDeleted:a?.fileIdsToBeDeleted??[],countryCode:s===!0?void 0:a?.countryCode,currencyCode:a?.currencyCode,currencySymbol:s===!0?void 0:a?.currencySymbol,deleteFileStatusById:a?.deleteFileStatusById??{},updateFileStatusById:a?.updateFileStatusById??{},recommendedCategory:a?.recommendedCategory,recommendedClass:a?.recommendedClass,isCategoryUpdateSelected:a?.isCategoryUpdateSelected??!1,isClassUpdateSelected:a?.isClassUpdateSelected??!1,isCategoryRecommendationPrefilled:a?.isCategoryRecommendationPrefilled??!0,isClassRecommendationPrefilled:a?.isClassRecommendationPrefilled??!0}}const Qt=d.div`
160
+ `,Me="expressPayPage",Jt=e=>`${e}_form`,O="recipientDetails",F="paymentDetails",ne={buttonWidth:new x(160,140),largeButtonWidth:new x(166,166)},mi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:T,onBackClick:P,saveVendorDetailLocalData:f,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:D,initializeVendorAddress:y,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:H,expressPayLocalData:g,vendorTypeList:J,allPaymentMethods:U,paymentToOptions:A,withdrawFromList:L,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:Y}=e,[v,Q]=K.useState(0),Ye=Re(),Z=G(),{common:we,spendManagement:_e}=q.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=_e.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=H,N=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,Ce=Object.assign({},Se??je),Ke=N?.vendorName,$e=L.find(c=>c.id===s),ee=et({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(J,L,A,$e,U,N,g,j,C?.entityAutoCompleteView),values:Be(J,L,A,$e,U,N,g,j,C?.entityAutoCompleteView)}),Pe=De(Ce.saveStatus?.fetchState),Ie=De(m);K.useEffect(()=>{const c=ee.watch((S,{name:b})=>{b!=null&&S!=null&&tt(()=>Xe(b,S))});return()=>{c.unsubscribe()}}),K.useEffect(()=>{Pe==="In-Progress"&&Y==="Completed"&&(v===0?(Q(1),o?.(g?.vendorId)):v===1&&Q(2)),Ie==="In-Progress"&&m==="Completed"&&P(g?.vendorId)},[Pe,Y,v,o,g?.vendorId,Ie,m,P]);const Xe=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[O].recipient.selectedOption,k=C?.entityAutoCompleteView.vendor.find(M=>M.zeniId===b);Je(S),y(),N?.vendorId!==b&&k!=null&&(l?.(b),he(S,!1,A,b))}else if(c.includes("recipient"))ue(S);else{const b=S[F].paymentMethod?.method,k=g?.paymentType?.method,M=b!=null&&k!=null&&(b.toLowerCase().includes("ach")&&k.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&k.toLowerCase().includes("ach"));he(S,M,A,g?.vendorId)}},Je=c=>{const S=c[O].recipient.selectedOption,b=C?.entityAutoCompleteView.vendor.find(k=>k.id===S)!=null;if(S!=null&&b===!0){T?.(S),he(c,!1,A,S);return}ue(c,!0)},ue=(c,S)=>{const b=N?.vendorId,k=C?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,M=Zt(c,k===!0?b:void 0,N,S);f?.(M,b)},he=(c,S,b,k)=>{const M=(()=>{let B=[];return c[F].paymentMethod?.method.includes("wire")===!0?B=b.filter(R=>!!R.bankRoutingNumberWireTransfer).map(R=>R.id):B=b.filter(R=>!!R.bankRoutingNumberAch).map(R=>R.id),B})(),ye=b.find(B=>B.id===c[F]?.paymentTo?.selectedOption),Qe={vendorId:k,amount:{amount:c[F].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[F].paymentDate?qe(c[F].paymentDate.toString()):le(),paymentType:c[F]?.paymentMethod!=null?c[F]?.paymentMethod:void 0,paymentToAccountId:S?M[0]:ye?.id,withdrawFrom:L.find(B=>B.id===c[F]?.withdrawFrom?.selectedOption),receiptFileId:c[F].receipt?.fileId};w?.(Qe)},Te=ee.handleSubmit(()=>{if(v===0||v===1){a.trackExpressPayNextClick(v===0?"Recipient Details":"Payment Details");const c=ee.getValues();ue(c),p(g?.vendorId)}else a.trackExpressPayScheduleClick(),D()}),Ze=()=>{v===2?Q(1):P(g?.vendorId)},Ge=()=>{v===0?P(g?.vendorId):Q(v===1?0:1)},Fe={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?A.find(c=>c.id===g?.paymentToAccountId):void 0,paymentDate:g?.paymentDate,paymentType:g?.paymentType??U?.[0],recipientAmount:g?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(it,{title:me.pageTitle,onBackClick:Ge,backgroundColor:Ye.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Gt,{windowSize:Z,children:[t.jsx(jt,{pageIndex:v}),t.jsx(at,{...ee,children:t.jsx("form",{id:Me,onSubmit:Te,children:v===0?t.jsx(Nt,{sectionId:O,vendorTypeList:J,formLocalData:N,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$}):v===1?t.jsx(Dt,{sectionId:F,paymentDetails:Fe,paymentToOptions:A,allPaymentMethods:U,withdrawFromList:L,internationalVerificationStatus:se,fileProps:{...i,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de},deleteFileStatusById:ce,updateFileStatusById:r,receiptFile:j,onClickAddAccount:()=>{const c=Fe?.paymentType;c!=null&&h(c)}}):v===2?t.jsx(zt,{reviewDetails:g,paymentToOptions:A,vendorName:Ke}):null})})]}),t.jsx(nt,{formId:Jt(Me),style:{width:"100%"},primaryBtn:{label:v===2?le().isSame(g?.paymentDate,"date")?me.sendMoney:me.schedulePayment:pe.next,isLoading:v===0||v===1?Ce.saveStatus?.fetchState==="In-Progress":m==="In-Progress",style:{width:v===2?ne.largeButtonWidth.value(Z):ne.buttonWidth.value(Z),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Te()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?ne.largeButtonWidth.value(Z):ne.buttonWidth.value(Z),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Ze}})]})},Be=(e,i,a,s,h,p,l,T,P)=>{const f=(()=>{let w=[];return l?.paymentType?.method.includes("wire")===!0?w=a.filter(o=>!!o.bankRoutingNumberWireTransfer).map(o=>o.id):w=a.filter(o=>!!o.bankRoutingNumberAch).map(o=>o.id),w})();return{[O]:{recipient:{defaultOptions:Ue(p?.vendorId,p?.vendorName,P),selectedOption:p?.vendorId??p?.vendorName??""},recipientEmail:p?.contacts?.[0]?.email??"",recipientName:p?.vendorName??"",recipientType:{allOptions:e.map(w=>w.code),selectedOption:p?.vendorType}},[F]:{paymentMethod:l?.paymentType??h?.[0],withdrawFrom:{selectedOption:l?.withdrawFrom?.id??s?.id??i[0]?.id,allOptions:i.map(w=>({label:w.label,value:w.id}))},amount:l?.amount.amount??0,paymentDate:l?.paymentDate?.toDate()??He(le().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?f:[],selectedOption:l?.paymentToAccountId??f[0]},receipt:T}}};function Zt(e,i,a,s){const h=e[O].recipient.defaultOptions.find(p=>p.value===e[O].recipient.selectedOption);return{vendorType:s===!0?void 0:e[O].recipientType.selectedOption,vendorId:i,vendorName:h?.label??a?.vendorName,contacts:s===!0?[]:[{fullName:"",email:e[O].recipientEmail,phone:""}],bankAccountIds:s===!0?[]:a?.bankAccountIds??[],paymentInstrumentIds:s===!0?[]:a?.paymentInstrumentIds??[],vendorOwner:s===!0?void 0:a?.vendorOwner,isVendor1099:a?.isVendor1099,documentIds:a?.documentIds??[],fileIdsToBeDeleted:a?.fileIdsToBeDeleted??[],countryCode:s===!0?void 0:a?.countryCode,currencyCode:a?.currencyCode,currencySymbol:s===!0?void 0:a?.currencySymbol,deleteFileStatusById:a?.deleteFileStatusById??{},updateFileStatusById:a?.updateFileStatusById??{},recommendedCategory:a?.recommendedCategory,recommendedClass:a?.recommendedClass,isCategoryUpdateSelected:a?.isCategoryUpdateSelected??!1,isClassUpdateSelected:a?.isClassUpdateSelected??!1,isCategoryRecommendationPrefilled:a?.isCategoryRecommendationPrefilled??!0,isClassRecommendationPrefilled:a?.isClassRecommendationPrefilled??!0}}const Gt=d.div`
161
161
  display: flex;
162
162
  flex-wrap: wrap;
163
163
  height: 100%;
@@ -165,4 +165,4 @@ import{d as ze,Q,F as q,a8 as et,aN as Ae,cB as tt,V as t,bz as it,ab as at,aO a
165
165
  align-items: center;
166
166
  background-color: ${e=>e.theme.colors.grey4};
167
167
  margin-top: ${e=>e.windowSize==="small"?n.sp3:0};
168
- `;export{mi as default,Kt as formUniqueName};
168
+ `;export{mi as default,Jt as formUniqueName};
@@ -1,11 +1,11 @@
1
- import{d as v,Q as f,F as k,aS as s,p,V as e,cm as y,y as n,cn as _,co as x,u as c}from"./index-DcV3YN51.js";import{n as l}from"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-cYFeB6Pw.js";import"./zeni-epic-state-BwKvATgd.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const i={popupWidth:new n(200,468,468,468),buttonWidth:new n(140,160,160,160),popupContainerLeft:new n(c[0],c[0],255),popupContainerWidth:new n(100,100,85)},z=l.div`
1
+ import{e as v,q as f,F as k,aS as s,p,V as e,cm as y,y as n,cn as _,co as x,d as c}from"./index-BhteR_e0.js";import{n as l}from"./mui-DLNyBjYF.js";import"./core-B-FNbYlu.js";import"./sentry-EYLV4XmG.js";import"./zeni-epic-state-HWtMOH-U.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const i={popupWidth:new n(200,468,468,468),buttonWidth:new n(140,160,160,160),popupContainerLeft:new n(c[0],c[0],255),popupContainerWidth:new n(100,100,85)},z=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
5
5
  width: 100%;
6
6
  flex-direction: column;
7
- background-color: ${t=>t.theme.colors.grey4};
7
+ background-color: ${a=>a.theme.colors.grey4};
8
8
  `,W=l.img`
9
9
  width: 100%;
10
10
  height: 100%;
11
- `,C={mobile:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-mobile",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-mobile",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-mobile",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-mobile",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-mobile",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-mobile",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-mobile",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""},normal:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-normal",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-normal",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-normal",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-normal",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-normal",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-normal",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-normal",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""}};function I({menuItem:t,onDemoClick:g,onGoBack:d}){const a=v(),o=f(),u=`${C[o==="small"?"mobile":"normal"][t]}-${a.mode}.png`,{featurePreview:r}=k.getLocalizedStrings(),m=r.popups[t],h=a.mode==="light"?new s(p.backgroundGradient1Light):new s(p.backgroundGradient1Dark),b=a.mode==="light"?new s(p.backgroundGradient2Light):new s(p.backgroundGradient2Dark),w={onOkClick:()=>{g()},onCancelClick:()=>{d()}};return e.jsxs(z,{children:[e.jsx(W,{src:u,alt:"feature-preview",loading:"lazy"}),e.jsx(y,{titleComponent:e.jsx(x,{children:m.title}),descriptionComponent:e.jsx(_,{children:m.text}),primaryButtonText:r.scheduleDemo,secondaryButtonText:r.goBack,action:w,primaryButtonWidth:i.buttonWidth.value(o),secondaryButtonWidth:i.buttonWidth.value(o),style:{background:`radial-gradient(50% 50% at 50% 50%, ${h} 0%, ${b} 100%)`,backdropFilter:"blur(2px)",width:i.popupContainerWidth.valuePercentage(o),left:i.popupContainerLeft.value(o)},containerStyle:{border:`1px solid ${a.colors.grey1}`,minWidth:i.popupWidth.valuePx(o)}})]})}export{I as default};
11
+ `,C={mobile:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-mobile",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-mobile",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-mobile",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-mobile",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-mobile",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-mobile",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-mobile",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""},normal:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-normal",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-normal",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-normal",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-normal",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-normal",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-normal",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-normal",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""}};function q({menuItem:a,onDemoClick:g,onGoBack:d}){const t=v(),o=f(),u=`${C[o==="small"?"mobile":"normal"][a]}-${t.mode}.png`,{featurePreview:r}=k.getLocalizedStrings(),m=r.popups[a],h=t.mode==="light"?new s(p.backgroundGradient1Light):new s(p.backgroundGradient1Dark),b=t.mode==="light"?new s(p.backgroundGradient2Light):new s(p.backgroundGradient2Dark),w={onOkClick:()=>{g()},onCancelClick:()=>{d()}};return e.jsxs(z,{children:[e.jsx(W,{src:u,alt:"feature-preview",loading:"lazy"}),e.jsx(y,{titleComponent:e.jsx(x,{children:m.title}),descriptionComponent:e.jsx(_,{children:m.text}),primaryButtonText:r.scheduleDemo,secondaryButtonText:r.goBack,action:w,primaryButtonWidth:i.buttonWidth.value(o),secondaryButtonWidth:i.buttonWidth.value(o),style:{background:`radial-gradient(50% 50% at 50% 50%, ${h} 0%, ${b} 100%)`,backdropFilter:"blur(2px)",width:i.popupContainerWidth.valuePercentage(o),left:i.popupContainerLeft.value(o)},containerStyle:{border:`1px solid ${t.colors.grey1}`,minWidth:i.popupWidth.valuePx(o)}})]})}export{q as default};
@@ -1,4 +1,4 @@
1
- import{V as l,Q as H,F as Y,cO as A,cW as _,d as ee,cU as J,y as I,gb as Z,o as i,aK as B,eh as ce,aA as le,g3 as pe,g4 as ue,n as he,p as u,u as g,gx as ge,cV as be,cX as ye,an as ve,bF as we,b as G,dh as $e,bG as me,bE as ke}from"./index-DcV3YN51.js";import{n as d}from"./mui-bYXq4XMS.js";import{a as V}from"./core-3dlyNYRL.js";const v={width:new I(343,580,726),height:new I(g[6],g[6]),controlHeight:new I(g[6],g[6]),paddingLeftRight:new I(g[3],g[4]),paddingTop:new I(g[3],g[3]),paddingBottom:new I(g[3],g[2]),labelMarginRight:new I(g[3],g[4])};function je({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=H(),{formState:{errors:j}}=A(),f=_(j,t.name),O=_(j,p.name),r=ee();return l.jsxs(Oe,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:O,"data-testid":B("labeled-multi-text-field",t.name),children:[l.jsx(J,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(Te,{labelWidth:o.width,children:[l.jsxs(ie,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||f&&t.additionalErrorLabel?l.jsx(oe,{isError:f,children:f?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Le,{children:[l.jsx(se,{}),l.jsx(Ie,{}),l.jsx(se,{})]}),l.jsxs(ie,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(oe,{isError:O,children:p.additionalInfoLabel})]})]})]})]})}const Oe=d.div`
1
+ import{V as l,q as H,F as Y,cO as q,cW as _,e as ee,cU as K,y as I,gb as Z,o as i,aK as M,eh as ce,aA as le,g3 as pe,g4 as ue,n as he,p as u,d as g,gx as ge,cV as be,cX as ye,an as ve,bF as we,b as G,dh as $e,bG as me,bE as ke}from"./index-BhteR_e0.js";import{n as d}from"./mui-DLNyBjYF.js";import{a as V}from"./core-B-FNbYlu.js";const v={width:new I(343,580,726),height:new I(g[6],g[6]),controlHeight:new I(g[6],g[6]),paddingLeftRight:new I(g[3],g[4]),paddingTop:new I(g[3],g[3]),paddingBottom:new I(g[3],g[2]),labelMarginRight:new I(g[3],g[4])};function je({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=H(),{formState:{errors:j}}=q(),f=_(j,t.name),O=_(j,p.name),r=ee();return l.jsxs(Oe,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:O,"data-testid":M("labeled-multi-text-field",t.name),children:[l.jsx(K,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(Te,{labelWidth:o.width,children:[l.jsxs(ie,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||f&&t.additionalErrorLabel?l.jsx(oe,{isError:f,children:f?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Le,{children:[l.jsx(se,{}),l.jsx(Ie,{}),l.jsx(se,{})]}),l.jsxs(ie,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(oe,{isError:O,children:p.additionalInfoLabel})]})]})]})]})}const Oe=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -95,7 +95,7 @@ import{V as l,Q as H,F as Y,cO as A,cW as _,d as ee,cU as J,y as I,gb as Z,o as
95
95
  color: ${e=>e.isError?u.important:e.theme.colors.hero};
96
96
  white-space: pre-line;
97
97
  margin-top: ${i.sp1};
98
- `;function Se({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=H(),{formState:{errors:j}}=A(),f=_(j,t.name),O=_(j,p.name),r=ee();return l.jsxs(De,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:O,children:[l.jsx(J,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(Ue,{labelWidth:o.width,children:[p.hideField?null:l.jsxs(ze,{children:[l.jsx(de,{}),l.jsx(Ce,{isAdditionalLabel:(!!t.additionalInfoLabel&&t.isDisabled)===!0}),l.jsx(de,{})]}),l.jsxs(Ee,{children:[l.jsxs(ae,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||f&&t.additionalErrorLabel?l.jsx(ne,{isError:f,children:f?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(ae,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(ne,{isError:O,children:p.additionalInfoLabel})]})]})]})]})}const De=d.div`
98
+ `;function Se({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=H(),{formState:{errors:j}}=q(),f=_(j,t.name),O=_(j,p.name),r=ee();return l.jsxs(De,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:O,children:[l.jsx(K,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(Ue,{labelWidth:o.width,children:[p.hideField?null:l.jsxs(ze,{children:[l.jsx(de,{}),l.jsx(Ce,{isAdditionalLabel:(!!t.additionalInfoLabel&&t.isDisabled)===!0}),l.jsx(de,{})]}),l.jsxs(Ee,{children:[l.jsxs(ae,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||f&&t.additionalErrorLabel?l.jsx(ne,{isError:f,children:f?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(ae,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(ne,{isError:O,children:p.additionalInfoLabel})]})]})]})]})}const De=d.div`
99
99
  display: flex;
100
100
  flex-direction: column;
101
101
  align-items: flex-start;
@@ -198,7 +198,7 @@ import{V as l,Q as H,F as Y,cO as A,cW as _,d as ee,cU as J,y as I,gb as Z,o as
198
198
  color: ${e=>e.isError?u.important:e.theme.colors.hero};
199
199
  white-space: pre-line;
200
200
  margin-top: ${i.sp1};
201
- `;function ul(e){return H()==="small"?l.jsx(Se,{...e}):l.jsx(je,{...e})}const Ne=({allOptions:e,selectedValue:o,name:t,onSelectedValueChanged:p,valueToLabel:$,disable:k=!1,defaultMenuIsOpen:m,placeholderLabel:j})=>{const{formState:{errors:f}}=A(),O=_(f,t??""),r=ee(),[L,D]=V.useState(void 0),[b,q]=V.useState(m),C=n=>n.map(w=>N(w)),N=V.useCallback(n=>({value:n,label:$(n)}),[$]);V.useEffect(()=>{const n=o==null?void 0:N(o);D(n?.label===""?void 0:n)},[o,$,N]);const W=n=>{p(n)},S=r.colors.grey5,M=r.colors.grey5,F=G.smallRegular,U=G.extraSmallRegular,R={control:(n,{selectProps:w})=>({...n,border:0,height:g[6],backgroundColor:w.menuIsOpen===!0?r.colors.background:O===!0?u.importantLight:r.colors.background,boxShadow:M,":hover":{fill:r.colors.primary,backgroundColor:r.colors.background,borderColor:"none"},width:"auto",minHeight:"auto",cursor:"pointer"}),container:n=>({...n,backgroundColor:M,width:"100%"}),singleValue:(n,{data:w})=>({...n,alignItems:"center",margin:`${i.sp0}`,height:`${i.sp4}`,color:w.value==="require_approval"?u.alertDark:u.successDark,...G.standardRegular.cssObject,width:"100%",textOverflow:"ellipsis"}),valueContainer:(n,{selectProps:w})=>({...n,maxWidth:"100%",cursor:"pointer",...U,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:w.menuIsOpen===!1?"flex-end":"flex-start",alignItems:"center",flexWrap:"nowrap",paddingLeft:i.sp3,marginRight:i.sp3,width:" -webkit-fill-available"}),menu:n=>({...n,backgroundColor:S,borderRadius:4,boxShadow:`${i.sp0} 2px ${i.sp2} ${r.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:10,margin:0,width:"100%",WebkitJustifyContent:"unset",overflow:"hidden"}),menuList:n=>({...n,borderRadius:10}),placeholder:n=>({...n,width:"100%",height:g[4],...G.standardRegular.cssObject,color:O===!0?u.important:r.colors.grey1,display:"flex",justifyContent:"flex-start",alignItems:"center"}),option:(n,{isSelected:w,isFocused:E,isDisabled:z,data:s})=>({...n,...F,height:g[6],color:s.value==="require_approval"?u.alertDark:u.successDark,backgroundColor:w||E?r.colors.background:S,cursor:z?"not-allowed":"pointer",borderTop:s.topBorder===!0?`1px solid ${u.optionBorderLight}`:"none",":hover":{backgroundColor:r.colors.background},":first-div":{width:"100%"},"& label":{flex:1,paddingRight:"10px",cursor:z?"not-allowed":w?"default":"pointer"},zIndex:2}),input:(n,w)=>({color:r.colors.primary,overflow:"hidden",zIndex:2,height:g[4],width:w.selectProps.menuIsOpen?"auto":"0",position:"absolute",display:"flex",alignItems:"center",...G.standardRegular.cssObject})};return l.jsx(ve,{onClickAway:()=>{q(!1)},children:l.jsx(we,{isMulti:!1,onChange:n=>{W(n)},minMenuHeight:208,menuPlacement:"auto",menuShouldScrollIntoView:!1,defaultValue:L,value:L,placeholder:j,components:{Option:Re,DropdownIndicator:Ae,IndicatorSeparator:qe,SingleValue:Fe},hideSelectedOptions:!1,styles:R,options:C(e),isClearable:!1,isSearchable:!1,isDisabled:k,defaultMenuIsOpen:b,"data-testid":B("single-select",t)},$e())})},Fe=({children:e,...o})=>l.jsx(me.SingleValue,{...o,children:e}),Re=e=>{const{data:o,options:t,isFocused:p,label:$,isSelected:k}=e,m=t.find(f=>f.value===o.value),j=typeof o.label=="string"?o.label:o.value;return l.jsxs(me.Option,{...e,children:[l.jsxs(Pe,{"data-testid":B("single-select-option",j),children:[l.jsxs(Ve,{children:[l.jsx("label",{children:$}),p===!0&&m?.id!=null&&l.jsx(Be,{children:m.id})]}),k?l.jsx(Me,{children:l.jsx(He,{className:"tick-icon"})}):null]}),m.additionalInfo!==""&&l.jsx(l.Fragment,{children:m.additionalInfo})]})},Pe=d.div`
201
+ `;function ul(e){return H()==="small"?l.jsx(Se,{...e}):l.jsx(je,{...e})}const Ne=({allOptions:e,selectedValue:o,name:t,onSelectedValueChanged:p,valueToLabel:$,disable:k=!1,defaultMenuIsOpen:m,placeholderLabel:j})=>{const{formState:{errors:f}}=q(),O=_(f,t??""),r=ee(),[L,D]=V.useState(void 0),[b,A]=V.useState(m),C=n=>n.map(w=>N(w)),N=V.useCallback(n=>({value:n,label:$(n)}),[$]);V.useEffect(()=>{const n=o==null?void 0:N(o);D(n?.label===""?void 0:n)},[o,$,N]);const W=n=>{p(n)},S=r.colors.grey5,B=r.colors.grey5,R=G.smallRegular,U=G.extraSmallRegular,F={control:(n,{selectProps:w})=>({...n,border:0,height:g[6],backgroundColor:w.menuIsOpen===!0?r.colors.background:O===!0?u.importantLight:r.colors.background,boxShadow:B,":hover":{fill:r.colors.primary,backgroundColor:r.colors.background,borderColor:"none"},width:"auto",minHeight:"auto",cursor:"pointer"}),container:n=>({...n,backgroundColor:B,width:"100%"}),singleValue:(n,{data:w})=>({...n,alignItems:"center",margin:`${i.sp0}`,height:`${i.sp4}`,color:w.value==="require_approval"?u.alertDark:u.successDark,...G.standardRegular.cssObject,width:"100%",textOverflow:"ellipsis"}),valueContainer:(n,{selectProps:w})=>({...n,maxWidth:"100%",cursor:"pointer",...U,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:w.menuIsOpen===!1?"flex-end":"flex-start",alignItems:"center",flexWrap:"nowrap",paddingLeft:i.sp3,marginRight:i.sp3,width:" -webkit-fill-available"}),menu:n=>({...n,backgroundColor:S,borderRadius:4,boxShadow:`${i.sp0} 2px ${i.sp2} ${r.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:10,margin:0,width:"100%",WebkitJustifyContent:"unset",overflow:"hidden"}),menuList:n=>({...n,borderRadius:10}),placeholder:n=>({...n,width:"100%",height:g[4],...G.standardRegular.cssObject,color:O===!0?u.important:r.colors.grey1,display:"flex",justifyContent:"flex-start",alignItems:"center"}),option:(n,{isSelected:w,isFocused:E,isDisabled:z,data:s})=>({...n,...R,height:g[6],color:s.value==="require_approval"?u.alertDark:u.successDark,backgroundColor:w||E?r.colors.background:S,cursor:z?"not-allowed":"pointer",borderTop:s.topBorder===!0?`1px solid ${u.optionBorderLight}`:"none",":hover":{backgroundColor:r.colors.background},":first-div":{width:"100%"},"& label":{flex:1,paddingRight:"10px",cursor:z?"not-allowed":w?"default":"pointer"},zIndex:2}),input:(n,w)=>({color:r.colors.primary,overflow:"hidden",zIndex:2,height:g[4],width:w.selectProps.menuIsOpen?"auto":"0",position:"absolute",display:"flex",alignItems:"center",...G.standardRegular.cssObject})};return l.jsx(ve,{onClickAway:()=>{A(!1)},children:l.jsx(we,{isMulti:!1,onChange:n=>{W(n)},minMenuHeight:208,menuPlacement:"auto",menuShouldScrollIntoView:!1,defaultValue:L,value:L,placeholder:j,components:{Option:Fe,DropdownIndicator:qe,IndicatorSeparator:Ae,SingleValue:Re},hideSelectedOptions:!1,styles:F,options:C(e),isClearable:!1,isSearchable:!1,isDisabled:k,defaultMenuIsOpen:b,"data-testid":M("single-select",t)},$e())})},Re=({children:e,...o})=>l.jsx(me.SingleValue,{...o,children:e}),Fe=e=>{const{data:o,options:t,isFocused:p,label:$,isSelected:k}=e,m=t.find(f=>f.value===o.value),j=typeof o.label=="string"?o.label:o.value;return l.jsxs(me.Option,{...e,children:[l.jsxs(Pe,{"data-testid":M("single-select-option",j),children:[l.jsxs(Ve,{children:[l.jsx("label",{children:$}),p===!0&&m?.id!=null&&l.jsx(Me,{children:m.id})]}),k?l.jsx(Be,{children:l.jsx(He,{className:"tick-icon"})}):null]}),m.additionalInfo!==""&&l.jsx(l.Fragment,{children:m.additionalInfo})]})},Pe=d.div`
202
202
  display: flex;
203
203
  flex-direction: row;
204
204
  align-items: center;
@@ -207,7 +207,7 @@ import{V as l,Q as H,F as Y,cO as A,cW as _,d as ee,cU as J,y as I,gb as Z,o as
207
207
  width: 100%;
208
208
  display: flex;
209
209
  align-items: center;
210
- `,Be=d.div`
210
+ `,Me=d.div`
211
211
  display: flex;
212
212
  color: ${e=>e.theme.colors.primary};
213
213
  align-items: center;
@@ -218,14 +218,14 @@ import{V as l,Q as H,F as Y,cO as A,cW as _,d as ee,cU as J,y as I,gb as Z,o as
218
218
  border: 1px solid ${e=>e.theme.colors.primary};
219
219
  border-radius: ${i.sp1};
220
220
  margin: 0 ${i.sp5} 0 ${i.sp3};
221
- `,Me=d.div`
221
+ `,Be=d.div`
222
222
  display: flex;
223
223
  `,He=d(ke)`
224
224
  width: ${i.sp3};
225
225
  height: ${i.sp3};
226
226
  cursor: pointer;
227
227
  color: ${e=>e.theme.colors.primary};
228
- `,Ae=()=>null,qe=()=>null,We=({name:e,registerOptions:o,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:m}=A(),j=t.allOptions.map(r=>r.value??""),f=r=>t.allOptions.filter(L=>L.value===r)[0]?.label??"",O=r=>t.allOptions.find(L=>L.value===r.value)?.value;return l.jsx(ye,{name:e,control:m,defaultValue:t,rules:o,"data-testid":B("single-select-field",e),render:({field:{value:r,onChange:L}})=>l.jsx(Ne,{allOptions:j,onSelectedValueChanged:D=>{L({allOptions:t.allOptions,selectedOption:O(D)})},valueToLabel:D=>f(D),selectedValue:r.selectedOption,disable:p,name:e,defaultMenuIsOpen:$,placeholderLabel:k})})},fe=V.memo(We,(e,o)=>le(e,o)),T={width:new I(343,580,726),height:new I(g[6],g[6]),paddingLeftRight:new I(g[3],g[4]),paddingTopBottom:new I(g[3],g[3]),labelMarginRight:new I(g[3],g[4])},Q=(e,o)=>`${e}.${o}`;function Ge({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:O,allAttributes:r,filteredAttributes:L,allAccountingClasses:D,stepsInfo:b,productType:q}){const C=H(),{commonSetUp:{approval:N}}=Y.getLocalizedStrings(),W=O.length+L.length,S=f.map(s=>s.user),{control:M,setValue:F}=A(),{fields:U,replace:R}=ce({name:t,control:M}),n=()=>{const s=b[b.length-1].stepIndex,h=xe(s+1,S,r);F(t,[...b,h])},w=s=>{const h=b.filter((a,c)=>c!==s);F(t,h)};V.useEffect(()=>{const s=U.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(s,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:S,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));R(a)}},[S,b,U,R,r]);const E=b[b.length-1],z=o!=null||W===0||E.actors.selectedUsers.length+E.actors.selectedNonUsers.length===0||!E.stepType.selectedOption;return l.jsxs(_e,{size:C,style:p,isDisabled:!1,isError:!1,children:[l.jsx(J,{label:e.label,style:{marginRight:T.labelMarginRight.value(C),width:"auto"}}),b.map((s,h)=>l.jsxs(Ze,{labelWidth:e.width,children:[l.jsxs(Ye,{children:[h+1,"."]}),l.jsx(Ke,{children:l.jsx(fe,{name:Q(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j})}),l.jsxs(Xe,{children:[l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:Q(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,q);x.length>0&&y.push(x),c.accountingClassIDs.forEach(K=>{const P=D.find(X=>X.classId===K);P!=null&&P.className&&y.push(P.className)})}return y}}),s.stepIndex>0&&l.jsx(Qe,{onClick:()=>w(h)})]})]},U[h]?.id||h)),l.jsx(Je,{disabled:z,children:l.jsx(he,{onClick:n,style:{padding:`${i.sp1} ${i.sp2}`,borderRadius:i.sp1},label:N.addStep,size:"small",disabled:z,"data-testid":B("add-step-button-web")})})]})}const xe=(e,o,t)=>({stepIndex:e,actors:{allUsers:o,selectedUsers:[],allNonUsers:te(t),selectedNonUsers:[]},stepType:{allOptions:re,selectedOption:void 0}}),te=e=>{const o=Y.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(t=>({label:o[t].label,value:t,position:"top",subtitles:[o[t].subTitle]}))},re=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],_e=d.div`
228
+ `,qe=()=>null,Ae=()=>null,We=({name:e,registerOptions:o,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:m}=q(),j=t.allOptions.map(r=>r.value??""),f=r=>t.allOptions.filter(L=>L.value===r)[0]?.label??"",O=r=>t.allOptions.find(L=>L.value===r.value)?.value;return l.jsx(ye,{name:e,control:m,defaultValue:t,rules:o,"data-testid":M("single-select-field",e),render:({field:{value:r,onChange:L}})=>l.jsx(Ne,{allOptions:j,onSelectedValueChanged:D=>{L({allOptions:t.allOptions,selectedOption:O(D)})},valueToLabel:D=>f(D),selectedValue:r.selectedOption,disable:p,name:e,defaultMenuIsOpen:$,placeholderLabel:k})})},fe=V.memo(We,(e,o)=>le(e,o)),T={width:new I(343,580,726),height:new I(g[6],g[6]),paddingLeftRight:new I(g[3],g[4]),paddingTopBottom:new I(g[3],g[3]),labelMarginRight:new I(g[3],g[4])},J=(e,o)=>`${e}.${o}`;function Ge({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:O,allAttributes:r,filteredAttributes:L,allAccountingClasses:D,stepsInfo:b,productType:A}){const C=H(),{commonSetUp:{approval:N}}=Y.getLocalizedStrings(),W=O.length+L.length,S=f.map(s=>s.user),{control:B,setValue:R}=q(),{fields:U,replace:F}=ce({name:t,control:B}),n=()=>{const s=b[b.length-1].stepIndex,h=xe(s+1,S,r);R(t,[...b,h])},w=s=>{const h=b.filter((a,c)=>c!==s);R(t,h)};V.useEffect(()=>{const s=U.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(s,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:S,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));F(a)}},[S,b,U,F,r]);const E=b[b.length-1],z=o!=null||W===0||E.actors.selectedUsers.length+E.actors.selectedNonUsers.length===0||!E.stepType.selectedOption;return l.jsxs(_e,{size:C,style:p,isDisabled:!1,isError:!1,children:[l.jsx(K,{label:e.label,style:{marginRight:T.labelMarginRight.value(C),width:"auto"}}),b.map((s,h)=>l.jsxs(Ze,{labelWidth:e.width,children:[l.jsxs(Ye,{children:[h+1,"."]}),l.jsx(Qe,{children:l.jsx(fe,{name:J(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j})}),l.jsxs(Xe,{children:[l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,A);x.length>0&&y.push(x),c.accountingClassIDs.forEach(Q=>{const P=D.find(X=>X.classId===Q);P!=null&&P.className&&y.push(P.className)})}return y}}),s.stepIndex>0&&l.jsx(Je,{onClick:()=>w(h)})]})]},U[h]?.id||h)),l.jsx(Ke,{disabled:z,children:l.jsx(he,{onClick:n,style:{padding:`${i.sp1} ${i.sp2}`,borderRadius:i.sp1},label:N.addStep,size:"small",disabled:z,"data-testid":M("add-step-button-web")})})]})}const xe=(e,o,t)=>({stepIndex:e,actors:{allUsers:o,selectedUsers:[],allNonUsers:te(t),selectedNonUsers:[]},stepType:{allOptions:re,selectedOption:void 0}}),te=e=>{const o=Y.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(t=>({label:o[t].label,value:t,position:"top",subtitles:[o[t].subTitle]}))},re=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],_e=d.div`
229
229
  display: flex;
230
230
  flex-direction: column;
231
231
  align-items: flex-start;
@@ -273,7 +273,7 @@ import{V as l,Q as H,F as Y,cO as A,cW as _,d as ee,cU as J,y as I,gb as Z,o as
273
273
  align-items: baseline;
274
274
  flex-grow: 1;
275
275
  gap: ${i.sp3};
276
- `,Qe=d(be)`
276
+ `,Je=d(be)`
277
277
  width: ${i.sp3};
278
278
  height: ${i.sp3};
279
279
  cursor: pointer;
@@ -281,7 +281,7 @@ import{V as l,Q as H,F as Y,cO as A,cW as _,d as ee,cU as J,y as I,gb as Z,o as
281
281
  &:hover {
282
282
  color: ${u.important};
283
283
  }
284
- `,Je=d.div`
284
+ `,Ke=d.div`
285
285
  width: 100%;
286
286
  display: flex;
287
287
  justify-content: flex-end;
@@ -290,7 +290,7 @@ import{V as l,Q as H,F as Y,cO as A,cW as _,d as ee,cU as J,y as I,gb as Z,o as
290
290
  color: ${e=>e.disabled?e.theme.colors.grey1:e.theme.colors.primary};
291
291
  }
292
292
  }
293
- `,Ke=d.div`
293
+ `,Qe=d.div`
294
294
  display: flex;
295
295
  align-items: center;
296
296
  width: 174px;
@@ -303,7 +303,7 @@ import{V as l,Q as H,F as Y,cO as A,cW as _,d as ee,cU as J,y as I,gb as Z,o as
303
303
  `,Ye=d.div`
304
304
  width: ${i.sp5};
305
305
  color: ${e=>e.theme.colors.hero};
306
- `;function el({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:O,allAttributes:r,filteredAttributes:L,allAccountingClasses:D,stepsInfo:b,productType:q}){const C=H(),{commonSetUp:{approval:N}}=Y.getLocalizedStrings(),W=O.length+L.length,S=f.map(s=>s.user),{control:M,setValue:F}=A(),{fields:U,replace:R}=ce({name:t,control:M}),n=()=>{const s=b[b.length-1].stepIndex,h=xe(s+1,S,r);F(t,[...b,h])},w=s=>{const h=b.filter((a,c)=>c!==s);F(t,h)};V.useEffect(()=>{const s=U.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(s,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:S,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));R(a)}},[S,b,U,R,r]);const E=b[b.length-1],z=o!=null||W===0||E.actors.selectedUsers.length+E.actors.selectedNonUsers.length===0||!E.stepType.selectedOption;return l.jsxs(ll,{size:C,style:p,isDisabled:!1,isError:!1,children:[l.jsx(J,{label:e.label,style:{marginRight:T.labelMarginRight.value(C),width:"auto"}}),b.map((s,h)=>l.jsxs(tl,{labelWidth:e.width,children:[l.jsxs(dl,{children:[h+1,"."]}),l.jsxs(al,{children:[l.jsx(fe,{name:Q(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j}),l.jsxs(sl,{children:[l.jsx(ol,{children:l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:Q(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,q);x.length>0&&y.push(x),c.accountingClassIDs.forEach(K=>{const P=D.find(X=>X.classId===K);P!=null&&P.className&&y.push(P.className)})}return y}})}),s.stepIndex>0&&l.jsx(rl,{onClick:()=>w(h),"data-testid":B("delete-step",h.toString())})]})]})]},U[h]?.id||h)),l.jsx(il,{disabled:z,children:l.jsx(he,{onClick:n,style:{width:"100%"},label:N.addStep,size:"standard",variant:"light_transparent",disabled:z,"data-testid":B("add-step-button-small")})})]})}const ll=d.div`
306
+ `;function el({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:O,allAttributes:r,filteredAttributes:L,allAccountingClasses:D,stepsInfo:b,productType:A}){const C=H(),{commonSetUp:{approval:N}}=Y.getLocalizedStrings(),W=O.length+L.length,S=f.map(s=>s.user),{control:B,setValue:R}=q(),{fields:U,replace:F}=ce({name:t,control:B}),n=()=>{const s=b[b.length-1].stepIndex,h=xe(s+1,S,r);R(t,[...b,h])},w=s=>{const h=b.filter((a,c)=>c!==s);R(t,h)};V.useEffect(()=>{const s=U.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(s,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:S,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));F(a)}},[S,b,U,F,r]);const E=b[b.length-1],z=o!=null||W===0||E.actors.selectedUsers.length+E.actors.selectedNonUsers.length===0||!E.stepType.selectedOption;return l.jsxs(ll,{size:C,style:p,isDisabled:!1,isError:!1,children:[l.jsx(K,{label:e.label,style:{marginRight:T.labelMarginRight.value(C),width:"auto"}}),b.map((s,h)=>l.jsxs(tl,{labelWidth:e.width,children:[l.jsxs(dl,{children:[h+1,"."]}),l.jsxs(al,{children:[l.jsx(fe,{name:J(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j}),l.jsxs(sl,{children:[l.jsx(ol,{children:l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,A);x.length>0&&y.push(x),c.accountingClassIDs.forEach(Q=>{const P=D.find(X=>X.classId===Q);P!=null&&P.className&&y.push(P.className)})}return y}})}),s.stepIndex>0&&l.jsx(rl,{onClick:()=>w(h),"data-testid":M("delete-step",h.toString())})]})]})]},U[h]?.id||h)),l.jsx(il,{disabled:z,children:l.jsx(he,{onClick:n,style:{width:"100%"},label:N.addStep,size:"standard",variant:"light_transparent",disabled:z,"data-testid":M("add-step-button-small")})})]})}const ll=d.div`
307
307
  display: flex;
308
308
  flex-direction: column;
309
309
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{d as Ke,Q as Y,a8 as Ee,ax as _e,cB as Ye,V as t,F as ue,bz as Qe,ab as Je,ck as Ce,o,n as ye,aK as T,bL as Xe,cj as Ze,b1 as et,dj as tt,cq as lt,a9 as ot,A as it,cY as nt,bC as We,aQ as at,y as N,bM as se,u as $,dp as ke,ag as we,cv as rt,cy as st,cO as dt,i6 as ct,df as je,c_ as me,bQ as E,es as Ie,an as ht,ib as mt,ak as gt,bf as pt,ic as Oe,cf as ut,br as wt,p as Fe,id as bt}from"./index-DcV3YN51.js";import{a as C}from"./core-3dlyNYRL.js";import{n,b as Se}from"./mui-bYXq4XMS.js";import{c3 as xt,FE as vt}from"./zeni-epic-state-BwKvATgd.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const Re="recommendedFirst",Ne="recommendedSecond",H="currentSelection",ve="originalVendor",ge="requested",de=(e,l)=>`${e}.${l}`,ce=(e,l,a)=>a!=null?`${e}.${l}.${a}`:`${e}.${l}`;function ft(e){const l=Y(),{button:{label:a,onClick:i},search:{isOpen:g,placeHolder:m,searchText:w,onTextChange:y}}=e;return t.jsxs(yt,{children:[t.jsx(jt,{isSearchOpen:g&&l==="small",windowsize:l,children:l!=="small"?t.jsx(Ce,{style:{position:"absolute",left:"unset",right:o.sp0},placeholder:m,searchText:w,onSearchTextChanged:y}):null}),l==="small"?t.jsx(Ce,{style:{position:"absolute",left:"5px",right:"unset",top:"44px",width:"98%"},placeholder:m,searchText:w,onSearchTextChanged:y,keepSearchBoxOpen:!0}):null,l==="small"?t.jsx(St,{style:{marginLeft:o.sp5}}):t.jsx(ye,{variant:"primary",onClick:i,label:a,size:"small",style:{marginLeft:o.sp3}})]})}const yt=n.div`
1
+ import{e as Ke,q as Y,a8 as Ee,ax as _e,cB as Ye,V as t,F as ue,bz as Qe,ab as Ze,ck as Ce,o,n as ye,aK as T,bL as Je,cj as Xe,b1 as et,dj as tt,cq as lt,a9 as ot,m as it,cY as nt,bC as We,aQ as at,y as N,bM as se,d as $,dp as ke,ag as we,cv as rt,cy as st,cO as dt,i6 as ct,df as je,c_ as me,bQ as E,es as Ie,an as ht,ib as mt,ak as gt,bf as pt,ic as Oe,cf as ut,br as wt,p as Fe,id as bt}from"./index-BhteR_e0.js";import{a as C}from"./core-B-FNbYlu.js";import{n,b as Se}from"./mui-DLNyBjYF.js";import{c3 as xt,FE as vt}from"./zeni-epic-state-HWtMOH-U.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const Re="recommendedFirst",Ne="recommendedSecond",H="currentSelection",ve="originalVendor",ge="requested",de=(e,l)=>`${e}.${l}`,ce=(e,l,a)=>a!=null?`${e}.${l}.${a}`:`${e}.${l}`;function ft(e){const l=Y(),{button:{label:a,onClick:i},search:{isOpen:g,placeHolder:m,searchText:w,onTextChange:y}}=e;return t.jsxs(yt,{children:[t.jsx(jt,{isSearchOpen:g&&l==="small",windowsize:l,children:l!=="small"?t.jsx(Ce,{style:{position:"absolute",left:"unset",right:o.sp0},placeholder:m,searchText:w,onSearchTextChanged:y}):null}),l==="small"?t.jsx(Ce,{style:{position:"absolute",left:"5px",right:"unset",top:"44px",width:"98%"},placeholder:m,searchText:w,onSearchTextChanged:y,keepSearchBoxOpen:!0}):null,l==="small"?t.jsx(St,{style:{marginLeft:o.sp5}}):t.jsx(ye,{variant:"primary",onClick:i,label:a,size:"small",style:{marginLeft:o.sp3}})]})}const yt=n.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  padding-right: ${o.sp0};
@@ -20,7 +20,7 @@ import{d as Ke,Q as Y,a8 as Ee,ax as _e,cB as Ye,V as t,F as ue,bz as Qe,ab as J
20
20
  color: ${e=>e.theme.colors.brandColorJade};
21
21
  width: ${o.sp3};
22
22
  height: ${o.sp3};
23
- `,{headers:be,strings:Ct}=ue.getLocalizedStrings().common,kt={key:"tenants",value:be.tenants,sortOrder:"ascending",width:new N(15,15)},It={key:"requestedVendor",value:be.requestedVendor,sortOrder:"ascending",width:new N(28,28)},Rt={key:"originalVendor",value:be.originalVendor,sortOrder:"ascending",width:new N(15,15)},Nt={key:"recommended",value:be.recommended,sortOrder:"ascending",width:new N(30,30),icon:t.jsx($t,{children:t.jsx(Mt,{})})},Vt={key:"action",value:Ct.empty,sortOrder:"ascending",width:new N(12,12)},V=[kt,Rt,Nt,It,Vt],fe={sortKey:"tenants",sortOrder:"ascending"},Gt=88,De=53,Lt=1,zt=["action"],Ve=e=>xt(e,zt),He=({sortConfig:e,isDisabled:l,onColumnSortConfigChanged:a})=>{const i=Y(),[g,m]=C.useState(V);C.useEffect(()=>{const c=[...g];for(const h of c)h.key===e.sortKey?h.sortOrder=e.sortOrder:h.sortOrder="ascending";m(c)},[e.sortKey,e.sortOrder]);const w=(c,h)=>{let j=h;e.sortKey===c&&(j=h==="ascending"?"descending":"ascending"),a?.(c,j)},y=c=>{Ve(c.key)==null&&w(vt(c.key),c.sortOrder)};return t.jsx(At,{windowSize:i,children:g.map(c=>{const h=l!=null||Ve(c.key)!=null;return t.jsxs(Pt,{sortDataValue:e.sortKey,actualDataValue:c.key,wrapperWidth:c.width,isSortDisabled:h,windowSize:i,children:[t.jsxs(Dt,{onClick:()=>h?null:y(c),isSortDisabled:h,"data-testid":T("global-review-list-header-name-wrapper"),children:[c.icon,t.jsx(Ht,{children:c.value}),h?null:t.jsx(Wt,{sortConfig:e,headerdata:c,children:t.jsx(Ft,{})})]}),h?null:t.jsx(Ot,{isSortDisabled:h,sortDataValue:e.sortKey,isVisible:e.sortKey===c.key&&e.sortKey!==fe.sortKey,children:t.jsx(Tt,{onClick:()=>{h||w(fe.sortKey,fe.sortOrder)},"data-testid":T("global-review-list-header-close-icon")})})]},c.key)})})},At=n.div`
23
+ `,{headers:be,strings:Ct}=ue.getLocalizedStrings().common,kt={key:"tenants",value:be.tenants,sortOrder:"ascending",width:new N(15,15)},It={key:"requestedVendor",value:be.requestedVendor,sortOrder:"ascending",width:new N(28,28)},Rt={key:"originalVendor",value:be.originalVendor,sortOrder:"ascending",width:new N(15,15)},Nt={key:"recommended",value:be.recommended,sortOrder:"ascending",width:new N(30,30),icon:t.jsx($t,{children:t.jsx(Mt,{})})},Vt={key:"action",value:Ct.empty,sortOrder:"ascending",width:new N(12,12)},V=[kt,Rt,Nt,It,Vt],fe={sortKey:"tenants",sortOrder:"ascending"},Lt=88,De=53,Gt=1,zt=["action"],Ve=e=>xt(e,zt),He=({sortConfig:e,isDisabled:l,onColumnSortConfigChanged:a})=>{const i=Y(),[g,m]=C.useState(V);C.useEffect(()=>{const c=[...g];for(const h of c)h.key===e.sortKey?h.sortOrder=e.sortOrder:h.sortOrder="ascending";m(c)},[e.sortKey,e.sortOrder]);const w=(c,h)=>{let j=h;e.sortKey===c&&(j=h==="ascending"?"descending":"ascending"),a?.(c,j)},y=c=>{Ve(c.key)==null&&w(vt(c.key),c.sortOrder)};return t.jsx(At,{windowSize:i,children:g.map(c=>{const h=l!=null||Ve(c.key)!=null;return t.jsxs(Pt,{sortDataValue:e.sortKey,actualDataValue:c.key,wrapperWidth:c.width,isSortDisabled:h,windowSize:i,children:[t.jsxs(Dt,{onClick:()=>h?null:y(c),isSortDisabled:h,"data-testid":T("global-review-list-header-name-wrapper"),children:[c.icon,t.jsx(Ht,{children:c.value}),h?null:t.jsx(Wt,{sortConfig:e,headerdata:c,children:t.jsx(Ft,{})})]}),h?null:t.jsx(Ot,{isSortDisabled:h,sortDataValue:e.sortKey,isVisible:e.sortKey===c.key&&e.sortKey!==fe.sortKey,children:t.jsx(Tt,{onClick:()=>{h||w(fe.sortKey,fe.sortOrder)},"data-testid":T("global-review-list-header-close-icon")})})]},c.key)})})},At=n.div`
24
24
  top: ${o.sp0};
25
25
  left: ${o.sp0};
26
26
  height: ${De}px;
@@ -75,7 +75,7 @@ import{d as Ke,Q as Y,a8 as Ee,ax as _e,cB as Ye,V as t,F as ue,bz as Qe,ab as J
75
75
  }
76
76
  `,Ht=n(we)`
77
77
  display: flex;
78
- `,{common:f,vendorReview:{globalReview:{globalMerchantList:Ut}}}=ue.getLocalizedStrings(),s={containerPaddingLeftRight:new N($[3],$[4]),containerPaddingTopBottom:new N($[2],$[3]),logoHeightAndWidth:new N($[3],$[4]),vendorNameLogoHeightAndWidth:new N($[4],$[6]),logoToValueGap:new N($[2],$[2]),smallLogoToValueGap:new N($[1],$[1])},qt=({vendorGlobalReviewData:e,allGlobalMerchants:l,globalMerchantAutoCompleteView:a,sectionId:i,isDisabled:g,analytics:m,onLoadGlobalMerchants:w,onCreateGlobalMerchant:y,onApproveGlobalReview:c,onRejectGlobalReview:h,onClearGlobalMerchantAutoCompleteResults:j})=>{const d=Y(),{resetField:U,formState:q}=dt(),[G,k]=C.useState(!1),[L,W]=i.split("."),O=parseInt(W),F=q.dirtyFields[L]?.[O]?.originalVendor===!0&&e.selectedMerchantId!==e.merchant.tenantMerchantId,Q=e.currentSelection!=null,{merchant:p,recommendations:B}=e,{fetchState:K}=a,oe=u=>{let S=u.websiteUrl?.toString();if(S){if(S=Oe(S)??S,e.selectedMerchantId!=null){const r=u.globalMerchantName??null;m.trackVendorReviewWebsiteOpened({reviewSource:"global_review",vendorName:e.merchant.tenantMerchantName,wasRecommendationAvailable:!!r,recommendedVendorName:r,recommendedVendorReason:u.reason??null,vendorWebsite:S})}window.open(S,"_blank")}},x=[];B.forEach((u,S)=>{const r=`recommended${ct(S)}`;x.push({label:{label:t.jsx(t.Fragment,{children:u.logo!=null?t.jsxs(ze,{children:[t.jsx(je,{photoUrl:u.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(d),height:s.logoHeightAndWidth.valuePx(d)},placeholder:{width:s.logoHeightAndWidth.value(d),height:s.logoHeightAndWidth.value(d)},fallbackAvatar:t.jsx(pe,{children:t.jsx(me,{name:u.globalMerchantName,size:s.logoHeightAndWidth.valuePx(d)})})}),t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:u.globalMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:u.globalMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(i,H,r),checkBoxValue:ce(i,H,r),defaultChecked:e.currentSelection===r},tooltipProps:{text:t.jsx(Jt,{recommendation:u,onRedirectionToRecommendedMerchantWebsiteUrl:()=>oe(u)}),maxWidth:"360px"},fieldName:r})});const v=p!=null?{label:{label:t.jsx(t.Fragment,{children:p.logo!=null?t.jsxs(ze,{children:[t.jsx(je,{photoUrl:p.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(d),height:s.logoHeightAndWidth.valuePx(d)},placeholder:{width:s.logoHeightAndWidth.value(d),height:s.logoHeightAndWidth.value(d)},fallbackAvatar:t.jsx(pe,{children:t.jsx(me,{name:p.tenantMerchantName,size:s.logoHeightAndWidth.valuePx(d)})})}),t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:p.tenantMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:p.tenantMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(i,H,ge),checkBoxValue:ce(i,H,ge),defaultChecked:e.currentSelection==="requested"},tooltipProps:{text:t.jsx(Xt,{merchant:p}),maxWidth:"360px"}}:void 0;let D=p.oldMerchantName;e.currentSelection==="originalVendor"&&e.selectedMerchantId!=null&&(D=e.selectedMerchantId);const I=C.useMemo(()=>Be(D,e.merchant,l),[e,l]),ae=()=>{k(!1),j()},xe=()=>{U(i)};return t.jsx(Ue,{windowSize:d,isActiveField:F,children:V.map((u,S)=>{switch(u.key){case"originalVendor":return t.jsx(P,{windowSize:d,wrapperWidth:u.width,children:G===!0?t.jsx(ht,{onClickAway:ae,children:t.jsx(_t,{children:t.jsx(mt,{name:de(i,"originalVendor"),defaultValue:I,isOptionsLoading:K==="In-Progress",addIconInCreateLabel:!0,autoFocus:!0,isDisabled:g,style:{marginRight:o.sp4},menuIsOpen:G,loadOptions:w,customStyleConfig:{valueContainer:(r,b)=>({justifyContent:"flex-start",margin:`${o.sp0} ${b.selectProps.menuIsOpen===!1?o.sp0:o.sp3}`}),menu:()=>({width:"150%"}),singleValue:()=>({display:"flex",alignItems:"center",color:"inherit"})},onCreateOptionClick:r=>{y(p.tenantMerchantId,r,p.websiteUrl)},onMenuClose:ae})})}):I.selectedOption!=null?Qt(I.selectedOption,p,l,d,S,F,k,xe):t.jsxs(M,{className:"global-review-row-item",windowSize:d,isLastItem:S===V.length-1,children:[Ut.selectPlaceholder,t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{onClick:()=>k(!0),"data-testid":T("global-review-list-row-edit-icon")})})]})},de(i,"originalVendor"));case"recommended":return t.jsx(t.Fragment,{children:t.jsx(P,{windowSize:d,wrapperWidth:u.width,gap:s.logoToValueGap,children:x.map((r,b)=>t.jsxs(t.Fragment,{children:[t.jsx(M,{windowSize:d,className:"vendor-global-review-row-item",isLastItem:!1,children:t.jsx(Ie,{isHighlighted:!0,label:r.label,checkBoxField:r.checkBoxField,tooltipProps:r.tooltipProps,defaultChecked:e.currentSelection===r.fieldName})},b),b<x.length-1?t.jsxs(Kt,{children:[" ",f.texts.or]}):null]}))})});case"action":return t.jsx(P,{windowSize:d,wrapperWidth:u.width,gap:s.smallLogoToValueGap,children:t.jsxs(M,{className:"global-review-row-button",windowSize:d,isLastItem:S===V.length-1,children:[t.jsx(ye,{variant:"light_transparent",label:f.footer.reject,onClick:()=>h(p.tenantMerchantId),loading:e.rejectStatus.fetchState==="In-Progress",size:"small",style:{height:"100%"}}),t.jsx(Yt,{space:o.sp0,style:{display:"flex",alignItems:"center",height:o.sp4,width:o.sp3}}),t.jsx(ye,{label:f.footer.approve,onClick:()=>c(p.tenantMerchantId),disabled:!Q,loading:e.approveStatus.fetchState==="In-Progress",size:"small",variant:"primary"})]})},`${i}.${u.key}`);case"requestedVendor":return t.jsx(P,{windowSize:d,wrapperWidth:u.width,gap:s.smallLogoToValueGap,children:p.tenantMerchantName&&v!=null?t.jsx(M,{windowSize:d,className:"vendor-global-review-row-item",isLastItem:!1,children:t.jsx(Ie,{isHighlighted:!0,label:v.label,checkBoxField:v.checkBoxField,tooltipProps:v.tooltipProps,defaultChecked:e.currentSelection==="requested"})}):t.jsx(M,{className:"vendor-global-review-row-item",windowSize:d,isLastItem:!1,children:f.strings.hyphen})},de(i,"merchantId"));case"tenants":default:return t.jsx(P,{windowSize:d,wrapperWidth:u.width,children:t.jsx(Et,{className:"global-review-row-item",windowSize:d,isLastItem:S===V.length-1,children:t.jsx(E,{display:"block",placement:"bottom-start",title:t.jsx(_,{children:p.tenantName}),children:t.jsx(Z,{children:p.tenantName})})})},de(i,"tenantId"))}})})},Bt=()=>{const e=Y();return t.jsx(Ue,{windowSize:e,isActiveField:!1,children:V.map((l,a)=>{switch(l.key){case"originalVendor":case"recommended":return t.jsxs(P,{windowSize:e,wrapperWidth:l.width,gap:s.smallLogoToValueGap,children:[t.jsx(ke,{width:s.logoHeightAndWidth.value(e),height:s.logoHeightAndWidth.value(e)}),t.jsx(M,{windowSize:e,isLastItem:a===V.length-1,children:t.jsx(se,{width:120,height:s.logoHeightAndWidth.value(e),style:{display:"flex",alignItems:"center"}})})]},l.key);case"requestedVendor":return t.jsxs(P,{windowSize:e,wrapperWidth:l.width,gap:s.logoToValueGap,children:[t.jsx(ke,{width:s.vendorNameLogoHeightAndWidth.value(e),height:s.vendorNameLogoHeightAndWidth.value(e)}),t.jsx(M,{windowSize:e,isLastItem:a===V.length-1,children:t.jsx(se,{width:120,height:s.vendorNameLogoHeightAndWidth.value(e),style:{display:"flex",alignItems:"center"}})})]},l.key);case"tenants":return t.jsx(P,{windowSize:e,wrapperWidth:l.width,children:t.jsx(M,{windowSize:e,isLastItem:a===V.length-1,children:t.jsx(se,{width:100,height:$[4],style:{display:"flex",alignItems:"center"}})})},l.key);case"action":default:return t.jsx(P,{windowSize:e,wrapperWidth:l.width,children:t.jsx(M,{windowSize:e,isLastItem:a===V.length-1,children:t.jsx(se,{width:$[11],height:$[5],style:{display:"flex",alignItems:"center"}})})},l.key)}})})},Ue=n.div`
78
+ `,{common:f,vendorReview:{globalReview:{globalMerchantList:qt}}}=ue.getLocalizedStrings(),s={containerPaddingLeftRight:new N($[3],$[4]),containerPaddingTopBottom:new N($[2],$[3]),logoHeightAndWidth:new N($[3],$[4]),vendorNameLogoHeightAndWidth:new N($[4],$[6]),logoToValueGap:new N($[2],$[2]),smallLogoToValueGap:new N($[1],$[1])},Ut=({vendorGlobalReviewData:e,allGlobalMerchants:l,globalMerchantAutoCompleteView:a,sectionId:i,isDisabled:g,analytics:m,onLoadGlobalMerchants:w,onCreateGlobalMerchant:y,onApproveGlobalReview:c,onRejectGlobalReview:h,onClearGlobalMerchantAutoCompleteResults:j})=>{const d=Y(),{resetField:q,formState:U}=dt(),[L,k]=C.useState(!1),[G,W]=i.split("."),O=parseInt(W),F=U.dirtyFields[G]?.[O]?.originalVendor===!0&&e.selectedMerchantId!==e.merchant.tenantMerchantId,Q=e.currentSelection!=null,{merchant:p,recommendations:B}=e,{fetchState:K}=a,oe=u=>{let S=u.websiteUrl?.toString();if(S){if(S=Oe(S)??S,e.selectedMerchantId!=null){const r=u.globalMerchantName??null;m.trackVendorReviewWebsiteOpened({reviewSource:"global_review",vendorName:e.merchant.tenantMerchantName,wasRecommendationAvailable:!!r,recommendedVendorName:r,recommendedVendorReason:u.reason??null,vendorWebsite:S})}window.open(S,"_blank")}},x=[];B.forEach((u,S)=>{const r=`recommended${ct(S)}`;x.push({label:{label:t.jsx(t.Fragment,{children:u.logo!=null?t.jsxs(ze,{children:[t.jsx(je,{photoUrl:u.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(d),height:s.logoHeightAndWidth.valuePx(d)},placeholder:{width:s.logoHeightAndWidth.value(d),height:s.logoHeightAndWidth.value(d)},fallbackAvatar:t.jsx(pe,{children:t.jsx(me,{name:u.globalMerchantName,size:s.logoHeightAndWidth.valuePx(d)})})}),t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(X,{children:u.globalMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(X,{children:u.globalMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(i,H,r),checkBoxValue:ce(i,H,r),defaultChecked:e.currentSelection===r},tooltipProps:{text:t.jsx(Zt,{recommendation:u,onRedirectionToRecommendedMerchantWebsiteUrl:()=>oe(u)}),maxWidth:"360px"},fieldName:r})});const v=p!=null?{label:{label:t.jsx(t.Fragment,{children:p.logo!=null?t.jsxs(ze,{children:[t.jsx(je,{photoUrl:p.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(d),height:s.logoHeightAndWidth.valuePx(d)},placeholder:{width:s.logoHeightAndWidth.value(d),height:s.logoHeightAndWidth.value(d)},fallbackAvatar:t.jsx(pe,{children:t.jsx(me,{name:p.tenantMerchantName,size:s.logoHeightAndWidth.valuePx(d)})})}),t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(X,{children:p.tenantMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(X,{children:p.tenantMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(i,H,ge),checkBoxValue:ce(i,H,ge),defaultChecked:e.currentSelection==="requested"},tooltipProps:{text:t.jsx(Jt,{merchant:p}),maxWidth:"360px"}}:void 0;let D=p.oldMerchantName;e.currentSelection==="originalVendor"&&e.selectedMerchantId!=null&&(D=e.selectedMerchantId);const I=C.useMemo(()=>Be(D,e.merchant,l),[e,l]),ae=()=>{k(!1),j()},xe=()=>{q(i)};return t.jsx(qe,{windowSize:d,isActiveField:F,children:V.map((u,S)=>{switch(u.key){case"originalVendor":return t.jsx(P,{windowSize:d,wrapperWidth:u.width,children:L===!0?t.jsx(ht,{onClickAway:ae,children:t.jsx(_t,{children:t.jsx(mt,{name:de(i,"originalVendor"),defaultValue:I,isOptionsLoading:K==="In-Progress",addIconInCreateLabel:!0,autoFocus:!0,isDisabled:g,style:{marginRight:o.sp4},menuIsOpen:L,loadOptions:w,customStyleConfig:{valueContainer:(r,b)=>({justifyContent:"flex-start",margin:`${o.sp0} ${b.selectProps.menuIsOpen===!1?o.sp0:o.sp3}`}),menu:()=>({width:"150%"}),singleValue:()=>({display:"flex",alignItems:"center",color:"inherit"})},onCreateOptionClick:r=>{y(p.tenantMerchantId,r,p.websiteUrl)},onMenuClose:ae})})}):I.selectedOption!=null?Qt(I.selectedOption,p,l,d,S,F,k,xe):t.jsxs(M,{className:"global-review-row-item",windowSize:d,isLastItem:S===V.length-1,children:[qt.selectPlaceholder,t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{onClick:()=>k(!0),"data-testid":T("global-review-list-row-edit-icon")})})]})},de(i,"originalVendor"));case"recommended":return t.jsx(t.Fragment,{children:t.jsx(P,{windowSize:d,wrapperWidth:u.width,gap:s.logoToValueGap,children:x.map((r,b)=>t.jsxs(t.Fragment,{children:[t.jsx(M,{windowSize:d,className:"vendor-global-review-row-item",isLastItem:!1,children:t.jsx(Ie,{isHighlighted:!0,label:r.label,checkBoxField:r.checkBoxField,tooltipProps:r.tooltipProps,defaultChecked:e.currentSelection===r.fieldName})},b),b<x.length-1?t.jsxs(Kt,{children:[" ",f.texts.or]}):null]}))})});case"action":return t.jsx(P,{windowSize:d,wrapperWidth:u.width,gap:s.smallLogoToValueGap,children:t.jsxs(M,{className:"global-review-row-button",windowSize:d,isLastItem:S===V.length-1,children:[t.jsx(ye,{variant:"light_transparent",label:f.footer.reject,onClick:()=>h(p.tenantMerchantId),loading:e.rejectStatus.fetchState==="In-Progress",size:"small",style:{height:"100%"}}),t.jsx(Yt,{space:o.sp0,style:{display:"flex",alignItems:"center",height:o.sp4,width:o.sp3}}),t.jsx(ye,{label:f.footer.approve,onClick:()=>c(p.tenantMerchantId),disabled:!Q,loading:e.approveStatus.fetchState==="In-Progress",size:"small",variant:"primary"})]})},`${i}.${u.key}`);case"requestedVendor":return t.jsx(P,{windowSize:d,wrapperWidth:u.width,gap:s.smallLogoToValueGap,children:p.tenantMerchantName&&v!=null?t.jsx(M,{windowSize:d,className:"vendor-global-review-row-item",isLastItem:!1,children:t.jsx(Ie,{isHighlighted:!0,label:v.label,checkBoxField:v.checkBoxField,tooltipProps:v.tooltipProps,defaultChecked:e.currentSelection==="requested"})}):t.jsx(M,{className:"vendor-global-review-row-item",windowSize:d,isLastItem:!1,children:f.strings.hyphen})},de(i,"merchantId"));case"tenants":default:return t.jsx(P,{windowSize:d,wrapperWidth:u.width,children:t.jsx(Et,{className:"global-review-row-item",windowSize:d,isLastItem:S===V.length-1,children:t.jsx(E,{display:"block",placement:"bottom-start",title:t.jsx(_,{children:p.tenantName}),children:t.jsx(X,{children:p.tenantName})})})},de(i,"tenantId"))}})})},Bt=()=>{const e=Y();return t.jsx(qe,{windowSize:e,isActiveField:!1,children:V.map((l,a)=>{switch(l.key){case"originalVendor":case"recommended":return t.jsxs(P,{windowSize:e,wrapperWidth:l.width,gap:s.smallLogoToValueGap,children:[t.jsx(ke,{width:s.logoHeightAndWidth.value(e),height:s.logoHeightAndWidth.value(e)}),t.jsx(M,{windowSize:e,isLastItem:a===V.length-1,children:t.jsx(se,{width:120,height:s.logoHeightAndWidth.value(e),style:{display:"flex",alignItems:"center"}})})]},l.key);case"requestedVendor":return t.jsxs(P,{windowSize:e,wrapperWidth:l.width,gap:s.logoToValueGap,children:[t.jsx(ke,{width:s.vendorNameLogoHeightAndWidth.value(e),height:s.vendorNameLogoHeightAndWidth.value(e)}),t.jsx(M,{windowSize:e,isLastItem:a===V.length-1,children:t.jsx(se,{width:120,height:s.vendorNameLogoHeightAndWidth.value(e),style:{display:"flex",alignItems:"center"}})})]},l.key);case"tenants":return t.jsx(P,{windowSize:e,wrapperWidth:l.width,children:t.jsx(M,{windowSize:e,isLastItem:a===V.length-1,children:t.jsx(se,{width:100,height:$[4],style:{display:"flex",alignItems:"center"}})})},l.key);case"action":default:return t.jsx(P,{windowSize:e,wrapperWidth:l.width,children:t.jsx(M,{windowSize:e,isLastItem:a===V.length-1,children:t.jsx(se,{width:$[11],height:$[5],style:{display:"flex",alignItems:"center"}})})},l.key)}})})},qe=n.div`
79
79
  display: flex;
80
80
  margin-bottom: ${o.sp3};
81
81
  background-color: ${e=>e.theme.colors.grey5};
@@ -143,7 +143,7 @@ import{d as Ke,Q as Y,a8 as Ee,ax as _e,cB as Ye,V as t,F as ue,bz as Qe,ab as J
143
143
  -webkit-box-orient: vertical;
144
144
  overflow: hidden;
145
145
  text-overflow: ellipsis;
146
- `,Kt=n.div``,Z=n.div`
146
+ `,Kt=n.div``,X=n.div`
147
147
  ${Me};
148
148
  `,M=n(gt)`
149
149
  ${Me};
@@ -170,7 +170,7 @@ import{d as Ke,Q as Y,a8 as Ee,ax as _e,cB as Ye,V as t,F as ue,bz as Qe,ab as J
170
170
  align-items: center;
171
171
  visibility: hidden;
172
172
  cursor: pointer;
173
- `,Ge=n(bt)`
173
+ `,Le=n(bt)`
174
174
  color: ${e=>e.theme.colors.hero};
175
175
  align-items: center;
176
176
  height: ${o.sp3};
@@ -179,7 +179,7 @@ import{d as Ke,Q as Y,a8 as Ee,ax as _e,cB as Ye,V as t,F as ue,bz as Qe,ab as J
179
179
  display: flex;
180
180
  align-items: center;
181
181
  cursor: pointer;
182
- `,Le=n.div`
182
+ `,Ge=n.div`
183
183
  display: flex;
184
184
  text-align: center;
185
185
  align-items: center;
@@ -187,7 +187,7 @@ import{d as Ke,Q as Y,a8 as Ee,ax as _e,cB as Ye,V as t,F as ue,bz as Qe,ab as J
187
187
  `,_t=n.div`
188
188
  display: flex;
189
189
  width: 100%;
190
- `,qe=n.div`
190
+ `,Ue=n.div`
191
191
  width: auto;
192
192
  box-sizing: border-box;
193
193
  max-height: ${e=>e.setMaxHeight===!0?o.sp10:"none"};
@@ -215,7 +215,7 @@ import{d as Ke,Q as Y,a8 as Ee,ax as _e,cB as Ye,V as t,F as ue,bz as Qe,ab as J
215
215
  `,ze=n.div`
216
216
  display: flex;
217
217
  gap: ${o.sp2};
218
- `,Be=(e,l,a)=>{const i=a.find(m=>m.globalMerchantId===e),g=l.tenantMerchantId===e?{label:l.tenantMerchantName,value:l.tenantMerchantId}:i!=null?{label:i.globalMerchantName,value:i.globalMerchantId}:void 0;return g!=null?{defaultOptions:[g],selectedOption:e}:{defaultOptions:[],selectedOption:e}},Qt=(e,l,a,i,g,m,w,y)=>{const c=a.find(j=>j.globalMerchantId===e),h=l.tenantMerchantId===e?{logo:l.logo,name:l.tenantMerchantName}:c!=null?{logo:c.logo,name:c.globalMerchantName}:e.length>0?{logo:void 0,name:e}:void 0;return h==null?t.jsxs(t.Fragment,{children:[t.jsx(M,{className:"vendor-global-review-row-item",windowSize:i,isLastItem:!1,children:f.strings.hyphen}),t.jsxs(Le,{children:[t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":T("global-review-list-row-edit-icon")})}),m?t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Ge,{className:"reset-icon",onClick:y,"data-testid":T("global-review-list-row-undo-icon")})}):null]})]}):t.jsxs(t.Fragment,{children:[h.logo!=null?t.jsx(je,{photoUrl:h.logo.toString(),styles:{width:s.vendorNameLogoHeightAndWidth.valuePx(i),height:s.vendorNameLogoHeightAndWidth.valuePx(i),marginRight:s.logoToValueGap.valuePx(i)},placeholder:{width:s.vendorNameLogoHeightAndWidth.value(i),height:s.vendorNameLogoHeightAndWidth.value(i),style:{marginRight:s.logoToValueGap.valuePx(i)}},fallbackAvatar:t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(i)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(i)})})}):t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(i)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(i)})}),t.jsxs(Le,{children:[t.jsx(M,{className:"global-review-row-item",windowSize:i,isLastItem:g===V.length-1,children:t.jsx(E,{display:"block",placement:"bottom-start",title:t.jsx(_,{children:h.name}),children:t.jsx(Z,{children:h.name})})}),t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":T("global-review-list-row-edit-icon-tooltip")})}),m?t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Ge,{className:"reset-icon",onClick:y})}):null]})]})},Jt=({recommendation:e,onRedirectionToRecommendedMerchantWebsiteUrl:l})=>t.jsxs(qe,{setMaxHeight:!0,children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.vendor}),t.jsx(te,{children:e.globalMerchantName})]}),e.websiteUrl?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>l(e),"data-testid":T("global-review-list-row-website-url-tooltip-website-url"),children:e.websiteUrl?.toString()})]}):null]}),Xt=({merchant:e})=>{let l=e.websiteUrl?.toString()??f.strings.empty;return t.jsxs(qe,{children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.name}),t.jsx(te,{children:e.tenantMerchantName})]}),e.accountName.length?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.category}),t.jsx(te,{children:e.accountName})]}):null,e.accountName.length?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.class}),t.jsx(te,{children:e.className})]}):null,l?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>{l&&(l=Oe(l)??l,window.open(l,"_blank"))},"data-testid":T("global-review-list-row-website-url-tooltip"),children:l})]}):null]})},Zt=({sortConfig:e,fetchState:l,isDisabled:a,onColumnSortConfigChanged:i})=>{const g=Y();return t.jsxs(el,{windowSize:g,children:[t.jsx(He,{sortConfig:e,isDisabled:l==="In-Progress"?"readonly":a,onColumnSortConfigChanged:i}),t.jsx(tl,{windowSize:g,children:[...Array(7)].map((m,w)=>t.jsx(Bt,{},w))})]})},el=n.div`
218
+ `,Be=(e,l,a)=>{const i=a.find(m=>m.globalMerchantId===e),g=l.tenantMerchantId===e?{label:l.tenantMerchantName,value:l.tenantMerchantId}:i!=null?{label:i.globalMerchantName,value:i.globalMerchantId}:void 0;return g!=null?{defaultOptions:[g],selectedOption:e}:{defaultOptions:[],selectedOption:e}},Qt=(e,l,a,i,g,m,w,y)=>{const c=a.find(j=>j.globalMerchantId===e),h=l.tenantMerchantId===e?{logo:l.logo,name:l.tenantMerchantName}:c!=null?{logo:c.logo,name:c.globalMerchantName}:e.length>0?{logo:void 0,name:e}:void 0;return h==null?t.jsxs(t.Fragment,{children:[t.jsx(M,{className:"vendor-global-review-row-item",windowSize:i,isLastItem:!1,children:f.strings.hyphen}),t.jsxs(Ge,{children:[t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":T("global-review-list-row-edit-icon")})}),m?t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Le,{className:"reset-icon",onClick:y,"data-testid":T("global-review-list-row-undo-icon")})}):null]})]}):t.jsxs(t.Fragment,{children:[h.logo!=null?t.jsx(je,{photoUrl:h.logo.toString(),styles:{width:s.vendorNameLogoHeightAndWidth.valuePx(i),height:s.vendorNameLogoHeightAndWidth.valuePx(i),marginRight:s.logoToValueGap.valuePx(i)},placeholder:{width:s.vendorNameLogoHeightAndWidth.value(i),height:s.vendorNameLogoHeightAndWidth.value(i),style:{marginRight:s.logoToValueGap.valuePx(i)}},fallbackAvatar:t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(i)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(i)})})}):t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(i)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(i)})}),t.jsxs(Ge,{children:[t.jsx(M,{className:"global-review-row-item",windowSize:i,isLastItem:g===V.length-1,children:t.jsx(E,{display:"block",placement:"bottom-start",title:t.jsx(_,{children:h.name}),children:t.jsx(X,{children:h.name})})}),t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":T("global-review-list-row-edit-icon-tooltip")})}),m?t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Le,{className:"reset-icon",onClick:y})}):null]})]})},Zt=({recommendation:e,onRedirectionToRecommendedMerchantWebsiteUrl:l})=>t.jsxs(Ue,{setMaxHeight:!0,children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.vendor}),t.jsx(te,{children:e.globalMerchantName})]}),e.websiteUrl?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>l(e),"data-testid":T("global-review-list-row-website-url-tooltip-website-url"),children:e.websiteUrl?.toString()})]}):null]}),Jt=({merchant:e})=>{let l=e.websiteUrl?.toString()??f.strings.empty;return t.jsxs(Ue,{children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.name}),t.jsx(te,{children:e.tenantMerchantName})]}),e.accountName.length?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.category}),t.jsx(te,{children:e.accountName})]}):null,e.accountName.length?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.class}),t.jsx(te,{children:e.className})]}):null,l?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>{l&&(l=Oe(l)??l,window.open(l,"_blank"))},"data-testid":T("global-review-list-row-website-url-tooltip"),children:l})]}):null]})},Xt=({sortConfig:e,fetchState:l,isDisabled:a,onColumnSortConfigChanged:i})=>{const g=Y();return t.jsxs(el,{windowSize:g,children:[t.jsx(He,{sortConfig:e,isDisabled:l==="In-Progress"?"readonly":a,onColumnSortConfigChanged:i}),t.jsx(tl,{windowSize:g,children:[...Array(7)].map((m,w)=>t.jsx(Bt,{},w))})]})},el=n.div`
219
219
  display: block;
220
220
  min-height: 100%;
221
221
  flex-direction: column;
@@ -224,7 +224,7 @@ import{d as Ke,Q as Y,a8 as Ee,ax as _e,cB as Ye,V as t,F as ue,bz as Qe,ab as J
224
224
  display: flex;
225
225
  min-height: 100%;
226
226
  flex-direction: column;
227
- `,{common:ll,vendorReview:{globalReview:{globalMerchantList:Ae}}}=ue.getLocalizedStrings(),ol=({vendorGlobalReviewList:e,allGlobalMerchants:l,sectionId:a,listFetchState:i,globalMerchantAutoCompleteView:g,uiState:m,isDisabled:w,analytics:y,onLoadGlobalMerchants:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:j,onCreateGlobalMerchant:d,onApproveGlobalMerchantReview:U,onRejectGlobalMerchantReview:q,onClearGlobalMerchantAutoCompleteResults:G})=>{const k=Y(),L=C.useRef(null),[W,O]=C.useState(!1);C.useEffect(()=>{L.current?.resetAfterIndex(0)},[k,L]),C.useEffect(()=>{i==="Completed"&&O(!1)},[i]);const F=x=>Gt,Q=(x,v)=>{h({sortOrder:v,sortKey:x}),j(m.searchText,!1,null)},p=()=>{O(!0),j(m.searchText,!0,m.pageToken)},B=x=>x<e.length,K=()=>{m.pageToken!=null&&i==="Completed"&&p()},oe=x=>{const v=e.find(I=>I.merchant.tenantMerchantId===x),D=l.find(I=>I.globalMerchantId===v?.selectedMerchantId);v?.currentSelection!="requested"||D!=null&&v?.currentSelection=="requested"?U(x):v!=null&&d(x,v.merchant.tenantMerchantName,v.merchant.websiteUrl)};return t.jsxs(al,{windowSize:k,children:[t.jsx(rl,{windowSize:k,children:i==="Error"?t.jsxs(dl,{windowSize:k,children:[t.jsx(cl,{"data-testid":T("global-review-list-table-reload-icon"),onClick:()=>j("",!1,null),children:t.jsx(Xe,{})}),t.jsx(hl,{children:ll.reloadPage.label})]}):i==="Completed"&&e.length===0?t.jsx(Ze,{message:m.searchText?Ae.noMatchedDataText:Ae.noDataText,style:{padding:o.sp0}}):i==="Not-Started"||i==="In-Progress"&&e.length===0?t.jsx(Zt,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:w,fetchState:i,onColumnSortConfigChanged:Q}):t.jsx(sl,{windowSize:k,children:t.jsx(et,{children:({height:x,width:v})=>t.jsx(tt,{isItemLoaded:B,itemCount:e.length+1,loadMoreItems:K,children:({onItemsRendered:D})=>t.jsxs(gl,{style:{height:x,width:v},children:[t.jsx(nl,{children:t.jsx(He,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:i==="In-Progress"?"readonly":w,onColumnSortConfigChanged:Q})}),t.jsx(lt,{ref:L,height:x-De,itemCount:e.length,itemData:{analytics:y,vendorGlobalReviewList:e,sectionId:a,allGlobalMerchants:l,globalMerchantAutoCompleteView:g,isDisabled:w,onLoadGlobalMerchants:c,onApproveGlobalReview:oe,onRejectGlobalMerchantReview:q,onCreateGlobalMerchant:d,onClearGlobalMerchantAutoCompleteResults:G},onItemsRendered:D,itemSize:F,width:v,style:{willChange:"auto"},overscanCount:Lt,onScroll:({scrollOffset:I})=>{h({scrollYOffset:I})},initialScrollOffset:m.scrollYOffset,children:il})]})})})})}),t.jsx(ot,{controller:W===!0,children:t.jsx(pl,{children:t.jsx(it,{size:"Small",start:!0})})})]})},il=({index:e,style:l,data:a})=>{const{analytics:i,vendorGlobalReviewList:g,allGlobalMerchants:m,globalMerchantAutoCompleteView:w,sectionId:y,isDisabled:c,onLoadGlobalMerchants:h,onCreateGlobalMerchant:j,onApproveGlobalReview:d,onRejectGlobalMerchantReview:U,onClearGlobalMerchantAutoCompleteResults:q}=a,G=g[e];return t.jsx(ml,{style:{...l,width:"100%"},className:"global-review-list-item",children:t.jsx(qt,{sectionId:`${y}.${e}`,isDisabled:G.approveStatus.fetchState==="In-Progress"?"readonly":c,globalMerchantAutoCompleteView:w,vendorGlobalReviewData:G,allGlobalMerchants:m,onLoadGlobalMerchants:h,onCreateGlobalMerchant:j,onApproveGlobalReview:d,onRejectGlobalReview:U,onClearGlobalMerchantAutoCompleteResults:q,analytics:i},G.merchant.tenantMerchantId)})},nl=n.div`
227
+ `,{common:ll,vendorReview:{globalReview:{globalMerchantList:Ae}}}=ue.getLocalizedStrings(),ol=({vendorGlobalReviewList:e,allGlobalMerchants:l,sectionId:a,listFetchState:i,globalMerchantAutoCompleteView:g,uiState:m,isDisabled:w,analytics:y,onLoadGlobalMerchants:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:j,onCreateGlobalMerchant:d,onApproveGlobalMerchantReview:q,onRejectGlobalMerchantReview:U,onClearGlobalMerchantAutoCompleteResults:L})=>{const k=Y(),G=C.useRef(null),[W,O]=C.useState(!1);C.useEffect(()=>{G.current?.resetAfterIndex(0)},[k,G]),C.useEffect(()=>{i==="Completed"&&O(!1)},[i]);const F=x=>Lt,Q=(x,v)=>{h({sortOrder:v,sortKey:x}),j(m.searchText,!1,null)},p=()=>{O(!0),j(m.searchText,!0,m.pageToken)},B=x=>x<e.length,K=()=>{m.pageToken!=null&&i==="Completed"&&p()},oe=x=>{const v=e.find(I=>I.merchant.tenantMerchantId===x),D=l.find(I=>I.globalMerchantId===v?.selectedMerchantId);v?.currentSelection!="requested"||D!=null&&v?.currentSelection=="requested"?q(x):v!=null&&d(x,v.merchant.tenantMerchantName,v.merchant.websiteUrl)};return t.jsxs(al,{windowSize:k,children:[t.jsx(rl,{windowSize:k,children:i==="Error"?t.jsxs(dl,{windowSize:k,children:[t.jsx(cl,{"data-testid":T("global-review-list-table-reload-icon"),onClick:()=>j("",!1,null),children:t.jsx(Je,{})}),t.jsx(hl,{children:ll.reloadPage.label})]}):i==="Completed"&&e.length===0?t.jsx(Xe,{message:m.searchText?Ae.noMatchedDataText:Ae.noDataText,style:{padding:o.sp0}}):i==="Not-Started"||i==="In-Progress"&&e.length===0?t.jsx(Xt,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:w,fetchState:i,onColumnSortConfigChanged:Q}):t.jsx(sl,{windowSize:k,children:t.jsx(et,{children:({height:x,width:v})=>t.jsx(tt,{isItemLoaded:B,itemCount:e.length+1,loadMoreItems:K,children:({onItemsRendered:D})=>t.jsxs(gl,{style:{height:x,width:v},children:[t.jsx(nl,{children:t.jsx(He,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:i==="In-Progress"?"readonly":w,onColumnSortConfigChanged:Q})}),t.jsx(lt,{ref:G,height:x-De,itemCount:e.length,itemData:{analytics:y,vendorGlobalReviewList:e,sectionId:a,allGlobalMerchants:l,globalMerchantAutoCompleteView:g,isDisabled:w,onLoadGlobalMerchants:c,onApproveGlobalReview:oe,onRejectGlobalMerchantReview:U,onCreateGlobalMerchant:d,onClearGlobalMerchantAutoCompleteResults:L},onItemsRendered:D,itemSize:F,width:v,style:{willChange:"auto"},overscanCount:Gt,onScroll:({scrollOffset:I})=>{h({scrollYOffset:I})},initialScrollOffset:m.scrollYOffset,children:il})]})})})})}),t.jsx(ot,{controller:W===!0,children:t.jsx(pl,{children:t.jsx(it,{size:"Small",start:!0})})})]})},il=({index:e,style:l,data:a})=>{const{analytics:i,vendorGlobalReviewList:g,allGlobalMerchants:m,globalMerchantAutoCompleteView:w,sectionId:y,isDisabled:c,onLoadGlobalMerchants:h,onCreateGlobalMerchant:j,onApproveGlobalReview:d,onRejectGlobalMerchantReview:q,onClearGlobalMerchantAutoCompleteResults:U}=a,L=g[e];return t.jsx(ml,{style:{...l,width:"100%"},className:"global-review-list-item",children:t.jsx(Ut,{sectionId:`${y}.${e}`,isDisabled:L.approveStatus.fetchState==="In-Progress"?"readonly":c,globalMerchantAutoCompleteView:w,vendorGlobalReviewData:L,allGlobalMerchants:m,onLoadGlobalMerchants:h,onCreateGlobalMerchant:j,onApproveGlobalReview:d,onRejectGlobalReview:q,onClearGlobalMerchantAutoCompleteResults:U,analytics:i},L.merchant.tenantMerchantId)})},nl=n.div`
228
228
  width: auto;
229
229
  `,al=n.div`
230
230
  display: block;
@@ -280,7 +280,7 @@ import{d as Ke,Q as Y,a8 as Ee,ax as _e,cB as Ye,V as t,F as ue,bz as Qe,ab as J
280
280
  align-items: center;
281
281
  margin-top: ${o.sp3};
282
282
  margin-bottom: ${o.sp3};
283
- `,{common:{sectionTitles:ul},vendorReview:{globalReview:{globalMerchantList:Pe}}}=ue.getLocalizedStrings(),wl="globalReviewListPage",he="globalReviewListTable",Gl=({vendorGlobalReviewView:e,globalMerchantAutoCompleteView:l,analytics:a,isDisabled:i,onUpdateSelectedGlobalMerchant:g,onApproveGlobalReview:m,onRejectGlobalReview:w,onCreateGlobalMerchant:y,onFetchGlobalMerchantAutoCompleteResults:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:j,onClearGlobalMerchantAutoCompleteResults:d,onBackClick:U,onClickMenuIcon:q})=>{const G=Ke(),k=Y(),{vendorGlobalReviewData:L,allGlobalMerchants:W,uiState:O,fetchState:F}=e,{globalMerchants:Q,fetchState:p}=l,B=Ee({mode:"all",reValidateMode:"onChange",defaultValues:Te(L,W),values:Te(L,W),resetOptions:{keepDirtyValues:!0}}),[K,oe]=C.useState(O.searchText),x=C.useRef(),v=r=>{j(r,!1,null)},D=r=>{const b=L.find(z=>z.merchant.tenantMerchantId===r);if(b!=null){const z=W.find(X=>X.globalMerchantId===b.selectedMerchantId),J=b.recommendations,{tenantName:re,oldMerchantName:ie,tenantMerchantName:ne}=b.merchant,R=z?.globalMerchantName??ne,A=J[0];a.trackVendorReviewApproveRequested({reviewSource:"global_review",tenantName:re,requestedVendorName:ne,originalVendorName:ie,approveVendorName:R,isGlobalVendorRequested:z!=null,isNewCreatedVendorRequested:!1,isVendorNameRecommendationSelected:b.currentSelection==="recommendedFirst"||b.currentSelection==="recommendedSecond",isVendorNameChangedAndSelected:R!==ne,wasRecommendationAvailable:!!A?.globalMerchantName,approveVendorReason:z?.reason??null,approveVendorNameSelectionSource:R===A?.globalMerchantName?"recommendation":"text_edit",recommendedVendorName:A?.globalMerchantName??null,recommendedVendorReason:A?.reason??null})}m(r)},I=C.useRef(_e(r=>v(r),500,{trailing:!0})).current;C.useEffect(()=>{F==="Completed"&&a.trackVendorReviewPage("global_review",O.totalCount)},[F]),C.useEffect(()=>{p==="Completed"&&x.current?.(fl(Q))},[p]);const ae=(r,b)=>{c(r),x.current=b},xe=()=>{},u=async(r,b,z)=>{const{globalReviewListTable:J}=b,re=parseInt(r.split(".")[1]),ie=J[re].merchantId;if(z==null){g(ie,{recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:!1},ie);return}if(r.includes(he)){const ne=parseInt(r.split(".")[1]),R={...b[he][ne]};let A=R[H],X;R.merchantId!=null&&(r.includes(Re)?(A={recommendedFirst:R[H].recommendedFirst,recommendedSecond:!1,originalVendor:!1,requested:!1},X=R[Re]?.globalMerchantId):r.includes(Ne)?(A={recommendedFirst:!1,recommendedSecond:R[H].recommendedSecond,originalVendor:!1,requested:!1},X=R[Ne]?.globalMerchantId):r.includes(ge)?(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:R[H].requested},X=R[ge]):r.includes(ve)&&(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!0,requested:!1})),g(ie,A,r.includes(ve)?J[re][ve].selectedOption:X)}};C.useEffect(()=>{const r=B.watch((b,{name:z,type:J})=>{z!=null&&b!=null&&Ye(()=>u(z,b,J))});return()=>{r.unsubscribe()}});const S=t.jsx(ft,{button:{label:ul.newVendor,onClick:()=>y()},search:{searchText:K,hide:!1,isOpen:K.length>0,placeHolder:Pe.searchPlaceholder,onTextChange:r=>{oe(r),r.trim().length>=2?I(r):r.trim().length==0&&I("")}}});return t.jsxs(bl,{children:[t.jsx(Qe,{title:Pe.navBarTitle,backgroundColor:G.colors.grey4,onBackClick:U,rightSideComponent:S,showMenuIcon:k==="medium-compact"||k==="small",onClickMenuIcon:q,source:"GlobalReviewListPage"}),t.jsx(xl,{children:t.jsx(Je,{...B,children:t.jsx("form",{id:vl(wl),onSubmit:B.handleSubmit(xe),style:{width:"100%"},children:t.jsx(ol,{vendorGlobalReviewList:L,allGlobalMerchants:W,globalMerchantAutoCompleteView:l,uiState:{...O,searchText:K},isDisabled:i,listFetchState:F,sectionId:he,onLoadGlobalMerchants:ae,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:j,onCreateGlobalMerchant:y,onApproveGlobalMerchantReview:D,onRejectGlobalMerchantReview:w,onClearGlobalMerchantAutoCompleteResults:d,analytics:a})})})})]})},bl=n.div`
283
+ `,{common:{sectionTitles:ul},vendorReview:{globalReview:{globalMerchantList:Pe}}}=ue.getLocalizedStrings(),wl="globalReviewListPage",he="globalReviewListTable",Ll=({vendorGlobalReviewView:e,globalMerchantAutoCompleteView:l,analytics:a,isDisabled:i,onUpdateSelectedGlobalMerchant:g,onApproveGlobalReview:m,onRejectGlobalReview:w,onCreateGlobalMerchant:y,onFetchGlobalMerchantAutoCompleteResults:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:j,onClearGlobalMerchantAutoCompleteResults:d,onBackClick:q,onClickMenuIcon:U})=>{const L=Ke(),k=Y(),{vendorGlobalReviewData:G,allGlobalMerchants:W,uiState:O,fetchState:F}=e,{globalMerchants:Q,fetchState:p}=l,B=Ee({mode:"all",reValidateMode:"onChange",defaultValues:Te(G,W),values:Te(G,W),resetOptions:{keepDirtyValues:!0}}),[K,oe]=C.useState(O.searchText),x=C.useRef(),v=r=>{j(r,!1,null)},D=r=>{const b=G.find(z=>z.merchant.tenantMerchantId===r);if(b!=null){const z=W.find(J=>J.globalMerchantId===b.selectedMerchantId),Z=b.recommendations,{tenantName:re,oldMerchantName:ie,tenantMerchantName:ne}=b.merchant,R=z?.globalMerchantName??ne,A=Z[0];a.trackVendorReviewApproveRequested({reviewSource:"global_review",tenantName:re,requestedVendorName:ne,originalVendorName:ie,approveVendorName:R,isGlobalVendorRequested:z!=null,isNewCreatedVendorRequested:!1,isVendorNameRecommendationSelected:b.currentSelection==="recommendedFirst"||b.currentSelection==="recommendedSecond",isVendorNameChangedAndSelected:R!==ne,wasRecommendationAvailable:!!A?.globalMerchantName,approveVendorReason:z?.reason??null,approveVendorNameSelectionSource:R===A?.globalMerchantName?"recommendation":"text_edit",recommendedVendorName:A?.globalMerchantName??null,recommendedVendorReason:A?.reason??null})}m(r)},I=C.useRef(_e(r=>v(r),500,{trailing:!0})).current;C.useEffect(()=>{F==="Completed"&&a.trackVendorReviewPage("global_review",O.totalCount)},[F]),C.useEffect(()=>{p==="Completed"&&x.current?.(fl(Q))},[p]);const ae=(r,b)=>{c(r),x.current=b},xe=()=>{},u=async(r,b,z)=>{const{globalReviewListTable:Z}=b,re=parseInt(r.split(".")[1]),ie=Z[re].merchantId;if(z==null){g(ie,{recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:!1},ie);return}if(r.includes(he)){const ne=parseInt(r.split(".")[1]),R={...b[he][ne]};let A=R[H],J;R.merchantId!=null&&(r.includes(Re)?(A={recommendedFirst:R[H].recommendedFirst,recommendedSecond:!1,originalVendor:!1,requested:!1},J=R[Re]?.globalMerchantId):r.includes(Ne)?(A={recommendedFirst:!1,recommendedSecond:R[H].recommendedSecond,originalVendor:!1,requested:!1},J=R[Ne]?.globalMerchantId):r.includes(ge)?(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:R[H].requested},J=R[ge]):r.includes(ve)&&(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!0,requested:!1})),g(ie,A,r.includes(ve)?Z[re][ve].selectedOption:J)}};C.useEffect(()=>{const r=B.watch((b,{name:z,type:Z})=>{z!=null&&b!=null&&Ye(()=>u(z,b,Z))});return()=>{r.unsubscribe()}});const S=t.jsx(ft,{button:{label:ul.newVendor,onClick:()=>y()},search:{searchText:K,hide:!1,isOpen:K.length>0,placeHolder:Pe.searchPlaceholder,onTextChange:r=>{oe(r),r.trim().length>=2?I(r):r.trim().length==0&&I("")}}});return t.jsxs(bl,{children:[t.jsx(Qe,{title:Pe.navBarTitle,backgroundColor:L.colors.grey4,onBackClick:q,rightSideComponent:S,showMenuIcon:k==="medium-compact"||k==="small",onClickMenuIcon:U,source:"GlobalReviewListPage"}),t.jsx(xl,{children:t.jsx(Ze,{...B,children:t.jsx("form",{id:vl(wl),onSubmit:B.handleSubmit(xe),style:{width:"100%"},children:t.jsx(ol,{vendorGlobalReviewList:G,allGlobalMerchants:W,globalMerchantAutoCompleteView:l,uiState:{...O,searchText:K},isDisabled:i,listFetchState:F,sectionId:he,onLoadGlobalMerchants:ae,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:j,onCreateGlobalMerchant:y,onApproveGlobalMerchantReview:D,onRejectGlobalMerchantReview:w,onClearGlobalMerchantAutoCompleteResults:d,analytics:a})})})})]})},bl=n.div`
284
284
  display: flex;
285
285
  min-height: 100%;
286
286
  width: 100%;
@@ -288,4 +288,4 @@ import{d as Ke,Q as Y,a8 as Ee,ax as _e,cB as Ye,V as t,F as ue,bz as Qe,ab as J
288
288
  background-color: ${e=>e.theme.colors.grey4};
289
289
  `,xl=n.div`
290
290
  display: flex;
291
- `,vl=e=>`${e}_form`,Te=(e,l)=>({[he]:e.map(a=>{const{merchant:i}=a;let g=i.oldMerchantName;return a.currentSelection==="originalVendor"&&a.selectedMerchantId!=null&&(g=a.selectedMerchantId),{tenantId:i.tenantId,merchantId:i.tenantMerchantId,originalVendor:Be(g,i,l),recommendedFirst:a.recommendations[0],recommendedSecond:a.recommendations[1],currentSelection:{recommendedFirst:a.currentSelection==="recommendedFirst",recommendedSecond:a.currentSelection==="recommendedSecond",requested:a.currentSelection==="requested",originalVendor:a.currentSelection==="originalVendor"},requested:i.tenantMerchantId}})}),fl=e=>e.map(l=>({label:l.globalMerchantName,value:l.globalMerchantId})).sort((l,a)=>l.label.localeCompare(a.label));export{Gl as default,vl as uniqueFormName};
291
+ `,vl=e=>`${e}_form`,Te=(e,l)=>({[he]:e.map(a=>{const{merchant:i}=a;let g=i.oldMerchantName;return a.currentSelection==="originalVendor"&&a.selectedMerchantId!=null&&(g=a.selectedMerchantId),{tenantId:i.tenantId,merchantId:i.tenantMerchantId,originalVendor:Be(g,i,l),recommendedFirst:a.recommendations[0],recommendedSecond:a.recommendations[1],currentSelection:{recommendedFirst:a.currentSelection==="recommendedFirst",recommendedSecond:a.currentSelection==="recommendedSecond",requested:a.currentSelection==="requested",originalVendor:a.currentSelection==="originalVendor"},requested:i.tenantMerchantId}})}),fl=e=>e.map(l=>({label:l.globalMerchantName,value:l.globalMerchantId})).sort((l,a)=>l.label.localeCompare(a.label));export{Ll as default,vl as uniqueFormName};