@zeniai/web-cockpit-ui 1.15.18-dev → 1.15.19-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-BrjUad4D-BobK3aVB.js → ACHDetailsPage-Bj4J02PO-C4Q2xy4-.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-Dx1ituql-CUuKvJ8n.js → AIPerformancePage-kqP-8GTq-BJF4ETfH.js} +12 -12
  3. package/dist/assets/AccountInfoPage-Bl-lXVdR-BrlwC_GK.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-BQxwZcii-DAnRLliM.js → AccountInfoPageContent-BfoA1Gse-C7eC0yBE.js} +10 -10
  5. package/dist/assets/AccountLockedInfoModal-CapmN1xL-DmXdIqXb.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DuI7qAkr-CohDb_Vn.js → AccountReconDetailsDrawerPage-y7iV6_PQ-D_ojlIG6.js} +16 -16
  7. package/dist/assets/{AccountRow-D3aEGfjh-CGXQQRag.js → AccountRow-BNdGXZbT-B-w9AEY5.js} +11 -11
  8. package/dist/assets/{AccountsPromoCardStack-BrTIGRUz-SlTiOsFA.js → AccountsPromoCardStack-BxQc3Ksg-BEzuSdPZ.js} +35 -35
  9. package/dist/assets/AddAddressForCardDrawer-DAcT8-PD-oJwne3Gy.js +6 -0
  10. package/dist/assets/{AddToWalletPage-DWMdtsY0-CgmcM53j.js → AddToWalletPage-CY-2tfXj-D4kgZ0ls.js} +18 -18
  11. package/dist/assets/{AgingReportsPage-CeFWs8X1-rGaFbgkD.js → AgingReportsPage-DG-IzhqU-D5iQytZw.js} +4 -4
  12. package/dist/assets/{AllUserItems-PN_oWzOC-Cfg4W7I4.js → AllUserItems-BLdx0SLb-D35470or.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-CQtY9j4b-xFY56tWP.js → ApAgingDetailPage-UhXmkAke-DuPdvgym.js} +5 -5
  14. package/dist/assets/{AppBasePage-D0S7OYzO-CJcI9UYp.js → AppBasePage-BdqHkxAE-ClgCYonW.js} +11 -11
  15. package/dist/assets/{AppDrawerContent-TIRPcJoE-BOUb6qnD.js → AppDrawerContent-DLLABFVO-Z7eIU8wQ.js} +7 -7
  16. package/dist/assets/{ApprovalRulesSettingsPage-CosIHJ5R-BB8nW0VM.js → ApprovalRulesSettingsPage-2Xy362hA-lw7cG823.js} +3 -3
  17. package/dist/assets/{ArAgingChart-CiNirxU7-C_J23wNp.js → ArAgingChart-DUyxm4oV-BDzCa7w_.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-CKBOlCcF-B9yZn5Tp.js → ArAgingDetailPage-BtKh2Y7T-Befa7jSt.js} +4 -4
  19. package/dist/assets/{AttachmentView-MqDuu6PB-C1zlk39q.js → AttachmentView-gjYAbjdi-CLgD0hYn.js} +2 -2
  20. package/dist/assets/{BankAccountSection-DXFRyqzV-Bg8zqqhX.js → BankAccountSection-DQcfhQLN-Cf4CJKge.js} +3 -3
  21. package/dist/assets/{BankAccountWarningSection-DJhHTBuh-D20FRc-x.js → BankAccountWarningSection-XMpgCYBF-BD-ZRFYQ.js} +8 -8
  22. package/dist/assets/{BankConnectionsSettingsPage-CQe2upIp-Cv47vnoF.js → BankConnectionsSettingsPage-Bi5QjRHp-DZsjWuDY.js} +33 -33
  23. package/dist/assets/{BillDetailPage-B0ajOYxz-CTy3XK0i.js → BillDetailPage-CgEXd2T5-D3RRlJ_U.js} +9 -9
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BcWQYqjU-CZdskYSr.js → BillPayApprovalRuleDetailPage-CPKMjF0R-DkefuNtD.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-mS00kg1n-C05g3Cpf.js → BillPayApprovalRulesPage-CFJpmXE7-BS2SEmMd.js} +9 -9
  26. package/dist/assets/{BillPayPromoPage-tUxWWqMY-t6w7JDnT.js → BillPayPromoPage-nRHevclA-CJKWVsld.js} +7 -7
  27. package/dist/assets/{BillPaySetUpPage-w47HuYkp-CbWSaNcn.js → BillPaySetUpPage-ynmgaK8Y-CjnJEFzj.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-Bsm7ZzIW-BChNCOOo.js → BillingSettingsPage-BNEvt1HK-BaSsXKiI.js} +6 -6
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DdI0OCuE-DjrQvH-7.js → BillsBulkReviewDrawerPage-D6tbE3BQ-DocKjVGy.js} +1 -1
  30. package/dist/assets/BoxItem-BdgRTwgI-DiOTWl08.js +53 -0
  31. package/dist/assets/{BusinessVerificationPage-p1cUyL8l-DeaLZxZn.js → BusinessVerificationPage-CU38xCol-B4S_9jHP.js} +10 -10
  32. package/dist/assets/{CardNumberSubText-yVfOUJpr-DRIDUYcf.js → CardNumberSubText-g2_GoH9f-aD70vkbB.js} +7 -7
  33. package/dist/assets/{CashbackDetailPage-DAX8aTFq-CX_nfeg0.js → CashbackDetailPage-SvujpPEs-C8gXhM7B.js} +17 -17
  34. package/dist/assets/{ChargeCardDetailPage-CTdVu2LX-CXvKoTcM.js → ChargeCardDetailPage-oaVwvFKq-qgCXX26B.js} +35 -35
  35. package/dist/assets/{ChargeCardListPage-BTf2sf_r-BIeWCtwJ.js → ChargeCardListPage-CGyxQ8Dx-B1x8tEOp.js} +19 -19
  36. package/dist/assets/{ChargeCardListTable-DEYusOGZ-BR9KGK-S.js → ChargeCardListTable-DKQnkAJ7-CbA18PS4.js} +30 -30
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-BhIiSigy-CmcVMykk.js → ChargeCardPaymentHistoryPage-JxdV2F32-B8QxqdNq.js} +17 -17
  38. package/dist/assets/{ChargeCardPromoPage-SMg6Bkmx-BIBCjTA5.js → ChargeCardPromoPage-BM7oOdWh-cLjTbA-r.js} +10 -10
  39. package/dist/assets/{ChargeCardSetupPage-8jA-EjWA-SUTAHgR8.js → ChargeCardSetupPage-DqjFBKb_-D2isSGQZ.js} +4 -4
  40. package/dist/assets/{ChargeCardStatementsPage-CrsqrTNw-cq-ohGFk.js → ChargeCardStatementsPage-DKicQRml-DNQKyuH-.js} +4 -4
  41. package/dist/assets/{CheckDepositDrawerPage-BnMEa1gU-D4KA1YbO.js → CheckDepositDrawerPage-BoMMC-PD-BbZFeQ0t.js} +12 -12
  42. package/dist/assets/{CollapsableReportTable-BQsDuqwg-D4PksJ7s.js → CollapsableReportTable-CvAF66CY-D2P5-EVV.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-CxeWrQJH-XfC5iWX1.js → CompanyOfficerDetailsSection-ClnGjHwL-DjLuACPy.js} +7 -7
  44. package/dist/assets/{CompanyPassportCard-DUX32IvW-wDP-ayWY.js → CompanyPassportCard-De1ZqCMC-Co6Yn6Qv.js} +5 -5
  45. package/dist/assets/{CompanyPassportPage-Cp0oulai-BQFU8qYi.js → CompanyPassportPage-6281ivzv-B30kYLVx.js} +24 -24
  46. package/dist/assets/{CompleteProfile-BdeEu2dc-DABogw0l.js → CompleteProfile-C4YhvWhe-CIB56NG8.js} +2 -2
  47. package/dist/assets/ConfettiBurst-CR98FGfH-3rXf1OLF.js +1 -0
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-Cr0pUg_S.js → ConstrainedInnerElement-BeIpAPjB-JviWwDyz.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-iFE1nb0J-tpGth2AK.js → CreateOrEditVendorPage-Dfq0ydKc-fAmE7u3u.js} +6 -6
  50. package/dist/assets/{CreditCardPaymentDrawerPage-CaTanv1T-DKlglNsr.js → CreditCardPaymentDrawerPage-D8Rs6j9F-CECIifL2.js} +6 -6
  51. package/dist/assets/{CurrencySelectField-BNcLy0zv-DUL30Rmr.js → CurrencySelectField-dqih82Wa-Bf5oGIgX.js} +2 -2
  52. package/dist/assets/{CustomerOnboardingActivationPage-D_0kSaYs-DmoaOtfG.js → CustomerOnboardingActivationPage-CPhBnk1y-CsEDDRZo.js} +3 -3
  53. package/dist/assets/CustomerOnboardingContainerPage-Dn7vOa-2-acu82bx-.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B1jJ1XJX-Ec31gEaK.js → CustomerOnboardingDetailPageSkeleton-D92o0cYb-f4j90fLJ.js} +4 -4
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-CyxHQxxQ-B3uyPHi-.js → CustomerOnboardingNoStepsPage-D-TyXZjQ-1BbkgoBb.js} +2 -2
  56. package/dist/assets/{CustomerOnboardingPage-Cj_k0rfN-dr4fZ7As.js → CustomerOnboardingPage-D8s20fEH-Drh1St8-.js} +10 -10
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-BPRN6xyM-BLvLQxxG.js → CustomerOnboardingProductSuitePage-B7v5nYAw--BKM9prl.js} +4 -4
  58. package/dist/assets/{Dashboard-DYpE_H2b-WMqZzzuP.js → Dashboard-DLhx6D0s-A89AzrUL.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-BB6dW8kR-BVA8DQgX.js → DashboardReportPage-G-hbFFVd-duPSFRfE.js} +9 -9
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-DDLCSC57-BJ_WASPh.js → DashboardSidebarBackgroundAnimation-Dhb4iV2T-BYJc1IM0.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-CxXM_Pse-aMnsSeAe.js → DepositAccTransactionItem-6BPvYynA-D1Ju63qU.js} +2 -2
  62. package/dist/assets/DepositAccTransactionListPage-CYqVm1Rm-FhuWm2tm.js +66 -0
  63. package/dist/assets/{DomesticWireDetailsPage-CswDexXc-CwmUyTco.js → DomesticWireDetailsPage-BOza2O-8-CYD7ppA5.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-Ck84lTok-DoSlSguE.js → DownloadOverlay-cbNihDeI-BS6u10ct.js} +1 -1
  65. package/dist/assets/{DrawerPage-Ctqr9Qke-DbWbSJy7.js → DrawerPage-DhT58SBb-DaHEF-EV.js} +3 -3
  66. package/dist/assets/EditPeoplePage-BLNgVf-0-U2va95MO.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-DHIg51AQ-Du0u5yPi.js → EditReimbursementDetailPage-DmApxq-q-CyDk02YT.js} +61 -61
  68. package/dist/assets/{EntityDetailPage-BsCWH1Al-WFaE0WQF.js → EntityDetailPage-CvgcTamk-C6e8nDgM.js} +4 -4
  69. package/dist/assets/{EntitySummarySection-ntuao-VM-fobvDD6S.js → EntitySummarySection-C82U-rtJ-DmZyL6x2.js} +6 -6
  70. package/dist/assets/{ExpenseAutomationOverviewPage-lptxncga-rbFk8U51.js → ExpenseAutomationOverviewPage-Bgibjb2E-BaSAz2Y9.js} +10 -10
  71. package/dist/assets/{ExpenseAutomationPage-S1iaOuA5-DRC_L2v_.js → ExpenseAutomationPage-Be5-Yt8w-Cjj2nOen.js} +36 -36
  72. package/dist/assets/{ExpressPayPage-3UaLqRo7-BW2LLrbf.js → ExpressPayPage--mCSxEVH-BFs72UEO.js} +10 -10
  73. package/dist/assets/{FeaturePreviewPage-CLHp1LHp-eKI7eeEH.js → FeaturePreviewPage-CFVDZyby-CGtGECgw.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-BY0dw_SN-iqWfg0Bg.js → FollowStepsSection-CVWuuidV-DUG37jOA.js} +18 -18
  75. package/dist/assets/{GlobalReviewListPage-CltHFSzG-CQET8EIq.js → GlobalReviewListPage-vkNEl7d8-CiHg5TZf.js} +14 -14
  76. package/dist/assets/{InformationCardStack-CVoS_Bni-DRMXWlfL.js → InformationCardStack-LF_aKhhL-CKp0o9nn.js} +5 -5
  77. package/dist/assets/{InsightsCardStack-YcKupOZZ-BYS9QdSX.js → InsightsCardStack-BIcK-jeU-C5tLvdIq.js} +13 -13
  78. package/dist/assets/{InsightsSection-BuCEgcAh-DX4KP6Gi.js → InsightsSection-CIpbIEbv-CFt4IQKX.js} +1 -1
  79. package/dist/assets/{IntegrationsSettingsPage-r_VwvwxS-D2fIzpgb.js → IntegrationsSettingsPage-CjP_3pkI-CnkkLjlB.js} +3 -3
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-B2x6g-rb-BG86r2Q_.js → InternationalWireSwiftDetailsPage--xhtyYY7-D4zcriQW.js} +7 -7
  81. package/dist/assets/{InternationalWireVerificationPage-B-sxkGbq-BzbYdtzf.js → InternationalWireVerificationPage-BpvZr-WI-jxE-vB-G.js} +7 -7
  82. package/dist/assets/{InviteFormPage-CrFWGpJE-DomTNTMP.js → InviteFormPage-9NFX-MhQ-BgZ7muUE.js} +9 -9
  83. package/dist/assets/{InvitePageListView-BsGwCg5B-DlrJVwFE.js → InvitePageListView-B-cAYAEj-DdX2Vf2f.js} +40 -40
  84. package/dist/assets/{InvitePeoplePage-D0-MjKb2-B1ShEIts.js → InvitePeoplePage-_lENDcHE-Cs4JWgnf.js} +2 -2
  85. package/dist/assets/{InvoiceUploadSection-BUF7Ko_U-1xPxHQJp.js → InvoiceUploadSection-Md8EHqPI-B2FbeYFD.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-D5sn5jt4-BWcpzIYT.js → IssueChargeCardPage-DlBHg90l-CkIYZG8g.js} +14 -14
  87. package/dist/assets/{LabeledAddressValue-Ds1BeyG_-FoXd8L7U.js → LabeledAddressValue-BRVf6Gy8-DR_hCdER.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-D_Ztmm7--tsnB0bq1.js → LabeledAddressValueField-Dm962nbv-CJctT64I.js} +3 -3
  89. package/dist/assets/{LabeledControlledCheckBoxField-DGV1Bz6o-CCbHpDl4.js → LabeledControlledCheckBoxField-AuHfNy1--CYnnof78.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-CTmUlcyk-Dx11AHn5.js → LabeledCreatableSingleSelectField-CZzPQt4P-q5eFoS7_.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-BwHjf12U-ti56UUdB.js → LabeledDocumentField-Cj3wNN-j-DRfRBZq3.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-BaAHosJI-CDWZK3Xu.js → LabeledDropDownFormattedTextField-DKi8UjgP-vgVqFIrz.js} +2 -2
  93. package/dist/assets/{LabeledText-CVYTNBOt-LIAQJcbl.js → LabeledText-C-8itgDI-CUp_0u3s.js} +1 -1
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CnK0wLL0-CdsEapB3.js → LabeledUserSingleSelectWithSubtitlesField-CyEiLq7_-CyR9dVw4.js} +5 -5
  95. package/dist/assets/{LabeledZeniRolesDropDownField-B2eu9WQ_-CXTTkytl.js → LabeledZeniRolesDropDownField-CoQcMW_--ClLOgm0I.js} +8 -8
  96. package/dist/assets/{LinkJETransactionPage-DTU4Piv4-CzTizu8e.js → LinkJETransactionPage-aTmlEn-Z-x31yl_Si.js} +10 -10
  97. package/dist/assets/{LockCardPage-9rnmj-hG-Dgtzvq-m.js → LockCardPage-nJeB0vKv-D0hlcn6G.js} +45 -45
  98. package/dist/assets/{LowBalancePopup-CCl7fzh9-CRJeCFG3.js → LowBalancePopup-aFCQSDc_-C6y1E7C0.js} +1 -1
  99. package/dist/assets/MagicLinkACHDetailsPage-CkEC7bfy-BTcHRx9h.js +1 -0
  100. package/dist/assets/MagicLinkDomesticWireDetailsPage-DXqRDZvA-Cof2FQM6.js +1 -0
  101. package/dist/assets/MagicLinkInternationalWireDetailsPage-CegOSNsV-D9w4qClx.js +1 -0
  102. package/dist/assets/MagicLinkSuccessPage-RxCflvAg-z_sXnPco.js +31 -0
  103. package/dist/assets/{MagicLinkTitleSection-ClWFjqQr-B7_1AUkD.js → MagicLinkTitleSection-CYaOQsiQ-Bmr50Dux.js} +3 -3
  104. package/dist/assets/MailingDetailsSection-KUvjhmZC-BH5Oyyjr.js +21 -0
  105. package/dist/assets/{MyBankConnectionsSettingsPage-BC47a22v-9PSEA4Wu.js → MyBankConnectionsSettingsPage-SlfAD_ec-Cxn1_qTK.js} +7 -7
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-BJ_kQQGd-lBfLcXgn.js → MyPendingActivationChargeCardListPage-BShzFR0m-CvOtafM-.js} +1 -1
  107. package/dist/assets/{MyProfileSettingsPage-C70z69ea-CMxdjCdW.js → MyProfileSettingsPage-CzGU1Gx7-Dqk_FQO0.js} +11 -11
  108. package/dist/assets/{NavBarWithPicker-CRQ9DzK7-Cs0J7mYU.js → NavBarWithPicker-NJ3tm2MI-oOlPyLbT.js} +4 -4
  109. package/dist/assets/{NavigationArrow-CWRgkV1y-5nUqXc-t.js → NavigationArrow-B145tYV_-C_6ukSuK.js} +1 -1
  110. package/dist/assets/{NavigationDots-BDKBgUe6-CeOovYs1.js → NavigationDots-DaOFOsFA-BBWJs6hX.js} +1 -1
  111. package/dist/assets/{NewGlobalMerchantPage-B_mViG5F-TkGICDRh.js → NewGlobalMerchantPage-YTsNL6iu-Bz6Acdaw.js} +33 -33
  112. package/dist/assets/{NoDataChart-CJyaj_wD-Ceo15OJ6.js → NoDataChart-C7YUwwui-iNU45UoG.js} +2 -2
  113. package/dist/assets/NoDataTable-DolCx6QR-C89fB2OT.js +8 -0
  114. package/dist/assets/{NotFoundPage-B-CdwYLM-04zajBZ5.js → NotFoundPage-BBnisozE-ZTo3UmTG.js} +7 -7
  115. package/dist/assets/{NotificationSettingsPage-DrMp-0h0-CNJC7C_o.js → NotificationSettingsPage-DPg3FvvD-Bucvci8R.js} +21 -21
  116. package/dist/assets/{NotificationsListConfig-Cl713fZg-qRofkxh7.js → NotificationsListConfig-BkOX8iIv-DgCgfDhw.js} +1 -1
  117. package/dist/assets/{NotificationsPage-Dh4xulau-_5iAw31w.js → NotificationsPage-BUhLO_r9-37VbqnuY.js} +1 -1
  118. package/dist/assets/{OpExByVendorPage-BslfnDh3-53j8zSVl.js → OpExByVendorPage-CHY5zg69-DBOqA9P_.js} +20 -20
  119. package/dist/assets/OverlayContainerPage-D4QU0p4o-Bn1glMo5.js +11 -0
  120. package/dist/assets/{PandLWithForecastPage-BYnaGvO3-Bs93z5El.js → PandLWithForecastPage-CeQr3WjJ-CzbnzXa-.js} +3 -3
  121. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CR6xX1bB-BwbAQyjl.js → PaymentAccountSetupBillingAddressSection-B6xSczs6-BKvI8Xkx.js} +1 -1
  122. package/dist/assets/{PeoplePage-BRC7-Yol-C9rira3P.js → PeoplePage-fCF4vkUp-ufAU-1hs.js} +25 -25
  123. package/dist/assets/{Preview-BY6UeCTa.js → Preview-hLK8QRw8.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-BgltUKwq-Dj-tP9zJ.js → ProductsCarousel-rA-O8_7D-CY5GfBBq.js} +6 -6
  125. package/dist/assets/{PromoBaseCards-DMleWayu-BFTkh-l1.js → PromoBaseCards-C37GX90J-DqWlf7fN.js} +3 -3
  126. package/dist/assets/{QBOConnectionDialog-BSKkJDPD-CJILPjk5.js → QBOConnectionDialog-Dwog9AYZ-O8uWq45M.js} +4 -4
  127. package/dist/assets/{QBOSetupSection-YQ4TKOTA-B5TQNN0G.js → QBOSetupSection-uV3w7rHW-MEAdwA6a.js} +4 -4
  128. package/dist/assets/ReimbursementApprovalRuleDetailPage-CPZfTMx--hGh26AYS.js +32 -0
  129. package/dist/assets/{ReimbursementApprovalRulesPage-DQDbyY1K-B5lF3vkz.js → ReimbursementApprovalRulesPage-IGpmh9zA-Bx94q0Ic.js} +4 -4
  130. package/dist/assets/{ReimbursementDetailPage-gAg8C98b-DuQNQ-y5.js → ReimbursementDetailPage-CnzK17M4-DQC0uxdE.js} +3 -3
  131. package/dist/assets/{ReimbursementPromoPage-DtKtr2rP-C8cL3Mv7.js → ReimbursementPromoPage-DSfL54Md-1ZVBlDma.js} +4 -4
  132. package/dist/assets/{ReimbursementSetUpPage-BdUoR2HM-CIGHv-6r.js → ReimbursementSetUpPage-BoTn3JKw-CBdNL9HT.js} +8 -8
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BL6oI4fi-DUFvxQjQ.js → ReimbursementsBulkReviewDrawerPage-DBc7LS-n-Iqxb_53N.js} +1 -1
  134. package/dist/assets/{ReloadCard-B3OtOvVI-DVK4TeBa.js → ReloadCard-B5rmmfva-TUZ-Tkd2.js} +3 -3
  135. package/dist/assets/{ReportTableViewSelector-Cmv2xs7h-CJ6mu-Rp.js → ReportTableViewSelector-0OEScWmm-Hga5bKqy.js} +29 -29
  136. package/dist/assets/{ReportsPage-SWC6uIs--DupC08g-.js → ReportsPage-BTkakKPX-BSzPNOYj.js} +6 -6
  137. package/dist/assets/{RevenueChart-CZlAswBG-DPlV94YS.js → RevenueChart-Ba8ZLje8-Drb014Fl.js} +15 -15
  138. package/dist/assets/{ReviewDetailsPage-BW3pZ3ws-BH9zDrcw.js → ReviewDetailsPage-BQDrm2yR-Bz5FazaS.js} +17 -17
  139. package/dist/assets/{ReviewOverlay-BhFwGG6t-C0m5jD2s.js → ReviewOverlay-8tBBKn9R-BZESXqSp.js} +5 -5
  140. package/dist/assets/RoleWithToolTip-YZusZfiJ-BELittL3.js +22 -0
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CdmehDsJ-Dd48HqBm.js → ScheduleDetailsFixedAssetsPage-BN9hFnGC-I8BvJlgl.js} +13 -13
  142. package/dist/assets/{ScheduleDetailsPage-DA1eGkzI-a0yDswoo.js → ScheduleDetailsPage-DAr4tXe_-BZZ4Y69I.js} +3 -3
  143. package/dist/assets/{ScheduleSequenceTable-BvGIwZmi-Br-m9rdL.js → ScheduleSequenceTable-DUfu-c6e-DBFpgT6F.js} +12 -12
  144. package/dist/assets/{ScreenRoutes-D3PxnqOE.js → ScreenRoutes-RdWdKKFl.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-DM4CvIFN-CPQ8K94t.js → SetUpAccountSection-DqW4vmsx-CO06aLnp.js} +6 -6
  146. package/dist/assets/{SignIn-DU3HuwJr-CXMwOpi4.js → SignIn-CCqNj3tG-DRDC5Yhl.js} +17 -17
  147. package/dist/assets/{SignInScreen-PoBHP4-4.js → SignInScreen-BI4txts-.js} +1 -1
  148. package/dist/assets/{SpendManagementListViewPage-VR4dPKBw-DHyDM03E.js → SpendManagementListViewPage-s4dPd5hE-IanF8B1T.js} +11 -11
  149. package/dist/assets/{SpendManagementPerTabPage-CdYRrtcC-DFgavPhh.js → SpendManagementPerTabPage-NWc7uqw6-_rcGYzjd.js} +45 -45
  150. package/dist/assets/{SpendManagementSection-C2Uw6UXF-BRw2L3H1.js → SpendManagementSection-eYrLZK1E-KjAWYeIa.js} +17 -17
  151. package/dist/assets/StatementItem-CKK9vnC7-CB-e2CLd.js +31 -0
  152. package/dist/assets/StatementsPage-C0wI_tRw-BDtidNq4.js +58 -0
  153. package/dist/assets/{StatusSwitcher-RY35Qzlp-DPptYPVp.js → StatusSwitcher-DFluM61E-D9icc7U1.js} +1 -1
  154. package/dist/assets/{SubTabSwitcher-CIhSt1_V-BGyVDCoP.js → SubTabSwitcher-Cin8x7wg-Dcdm2qpz.js} +1 -1
  155. package/dist/assets/{SummaryCard-iIQISRZL-Cx0NyzVM.js → SummaryCard-Bcw6fQTD-Do950Kyf.js} +1 -1
  156. package/dist/assets/{TaskManagementPage-CCC1QlZS-BHBkMyad.js → TaskManagementPage-B9qW2lvP-CVsVNeeW.js} +9 -9
  157. package/dist/assets/{TimeRangeSwitcher-BIA3BW1g-Bty5Ch9x.js → TimeRangeSwitcher-u57rzf78-Bgi2Q6bp.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcher-BhV0yrj0-CbCl4A9y.js → TimeframeSwitcher-ClE4GOKf-CCgDF2y1.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcherWithToggle-CIAZXHb2-orP1uTMH.js → TimeframeSwitcherWithToggle-COre57iX-BQBghhwC.js} +2 -2
  160. package/dist/assets/{TopExCard-CPsxq74q-662cwF8z.js → TopExCard-DF3x7jLh-CRuE7H2y.js} +6 -6
  161. package/dist/assets/{TopExDetailPage-BGoq66Fs-0PJ8BVQb.js → TopExDetailPage-DmFsRNbY-CAPDLdK7.js} +5 -5
  162. package/dist/assets/{TransactionActivityLogPage-BW-qVpWu-D-8WEz2X.js → TransactionActivityLogPage-BJWKx4q0-BUpcnLzX.js} +3 -3
  163. package/dist/assets/{TransactionDetailPage-D0tW8GIH-C00b9e62.js → TransactionDetailPage-mtNlJQ2B-IRA0HZOa.js} +26 -26
  164. package/dist/assets/{TransactionList-T8gAOJc0-Dw9G55NV.js → TransactionList-CLb6vsAw-BNfVqp8k.js} +12 -12
  165. package/dist/assets/{TransactionListBig-CMjxUKt2-BhSVq9fm.js → TransactionListBig-BzBXZp6s-UPK6nK0b.js} +7 -7
  166. package/dist/assets/TransactionListPage-DoQrIKK0-cdAGgkOJ.js +35 -0
  167. package/dist/assets/{TransactionVendorDetailPage-Ca7bgryb-CmVBYko3.js → TransactionVendorDetailPage-D-wSEk3k-Bp7ZO9K6.js} +3 -3
  168. package/dist/assets/{TransferDrawerPage-DG6q94Ch-Cqord4XL.js → TransferDrawerPage-j8FDHpig-DvRwMkL8.js} +29 -29
  169. package/dist/assets/{TreasuryOverviewPage-YNlUL3px-B_35sSeA.js → TreasuryOverviewPage-2U807bhy-BY8VUFc9.js} +24 -24
  170. package/dist/assets/{TreasuryPromoPage-CBSYXvme-DpMWnl6i.js → TreasuryPromoPage-BYXuV9oH-vUIAQ6f4.js} +13 -13
  171. package/dist/assets/TreasuryStatementsPage-CeaExx3z-DsMw65vI.js +58 -0
  172. package/dist/assets/{TreasuryTaxLetterPage-Bln01PPe-DpJfleJK.js → TreasuryTaxLetterPage-BrBEeHG1-u74MPbjQ.js} +2 -2
  173. package/dist/assets/{TrendChart-DjKmnpsm-CS6VXx1C.js → TrendChart-D0GWCIs5-BdQ26pcI.js} +1 -1
  174. package/dist/assets/{TrendWithTransactions-D2CSrQJG-DdbpQrSL.js → TrendWithTransactions-DcCilwfx-_37SmAif.js} +3 -3
  175. package/dist/assets/{UncategorizedAccountsMappingPage-BhgJFJvY-Cs1YOJIy.js → UncategorizedAccountsMappingPage-D5oo8UHa-k_11pvpn.js} +13 -13
  176. package/dist/assets/{UnitIntegrationPage-CtNIGtOS-DZq9w7mC.js → UnitIntegrationPage-BQp7NQLB-CdKp5-34.js} +6 -6
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-D44jXTDW-DwZWfezE.js → UploadAdditionalDocumentOverlay-DvAwuTYB-DJVdyOgq.js} +1 -1
  178. package/dist/assets/Vendor2FAPopup-BVuTJ4jh-Dmi8LqgF.js +1 -0
  179. package/dist/assets/VendorACHDetailsPage-DkXoubZC-RuWRXgBi.js +1 -0
  180. package/dist/assets/{VendorDetailPage-DRr5ci0V-Du2p3ojh.js → VendorDetailPage-BNr0Z5jN-B5vvqHLt.js} +23 -23
  181. package/dist/assets/VendorDomesticWireDetailsPage-CaaOskIa-DGRBzFDy.js +1 -0
  182. package/dist/assets/{VendorFiling1099EditablePage-C6mptSEx-B_hdSwqB.js → VendorFiling1099EditablePage-D2_NM9OH-Cg7w3eGu.js} +38 -38
  183. package/dist/assets/{VendorFirstReviewPage-CLBTSreq-DCVG1u2-.js → VendorFirstReviewPage-DxhhgmEm-DydY5H1-.js} +17 -17
  184. package/dist/assets/{VendorInternationalWireDetailsPage-oMdWj41X-CmZF5xAN.js → VendorInternationalWireDetailsPage-CUIOT8vU-afAyjr3K.js} +9 -9
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Dq9K171L-CWe5L2D4.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-Cr_m8Jyi-CiH59Azu.js → VendorsAccountsSection-eef70mQn-_RCZqtQz.js} +1 -1
  187. package/dist/assets/{VerifyDevice-DrXK_7gG-CEX4QcR9.js → VerifyDevice-CMvsjley-rC4gKQeJ.js} +12 -12
  188. package/dist/assets/{VideoPlayer-BZe4PqnR-CX1XPKSp.js → VideoPlayer-DKSZUXeK-H0wCm76T.js} +2 -2
  189. package/dist/assets/{VideoPopup-BaEQAfak-DFKT4R55.js → VideoPopup-BG0G1trN-J1tFoUPS.js} +3 -3
  190. package/dist/assets/{WarningsDrawerPage-COJ1hjAD-BEWCjyIu.js → WarningsDrawerPage-g_KTQdH7-Br6CzJQ0.js} +8 -8
  191. package/dist/assets/{ZeniAccountDetailPage-Chx3JWsc-DUW0nJwl.js → ZeniAccountDetailPage-LkheAcW_-BBvGkAZe.js} +18 -18
  192. package/dist/assets/{ZeniAccountListViewPage-6RhsoQzy-B1q4otvI.js → ZeniAccountListViewPage-DVQHT8ma-B9oJhIl0.js} +1 -1
  193. package/dist/assets/{ZeniAccountNavBarPieces-10K_Qgxx-DnALebZP.js → ZeniAccountNavBarPieces-_Xr6q9sA-BmDV-yHS.js} +4 -4
  194. package/dist/assets/{ZeniAccountPromoPage-ClXA4h8f-BJADOlI6.js → ZeniAccountPromoPage-C3LR6klI-gvX4BiZe.js} +8 -8
  195. package/dist/assets/{ZeniAccountSetupPage-7YlBF0nq-BMd9Jfil.js → ZeniAccountSetupPage-BtWnNkH7-Bw5ifbpG.js} +2 -2
  196. package/dist/assets/{ZeniCopyright-k2F7p5Nn-CWJt4f_H.js → ZeniCopyright-D36dbFYs-DbL5X4NH.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-CJY_ei3T-BQBKQlY-.js → ZeniTransferAmountSlider-BYbDaVKJ-CzP9xAeJ.js} +1 -1
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-CNvnwL2z.js → add-to-wallet-DgdBD8_G-CjuRM598.js} +1 -1
  199. package/dist/assets/{analytics-rms9goNI.js → analytics-DH0nG_g5.js} +1 -1
  200. package/dist/assets/analyticsHelper-B_RV_zIh.js +1 -0
  201. package/dist/assets/{analyticsHelper-e2zBYls0-DsW-gRIg.js → analyticsHelper-C4PZ1Adh-DNHzQdSq.js} +1 -1
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-DpZb0ICZ.js → arrow-south-east-round-PEovUgvH-ezr-NUEt.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-CBISKKCi.js → auto-transfer-rule-mbafm5D3-DCTaBPDp.js} +1 -1
  204. package/dist/assets/{chartTypes-D0t0a86R-VgxTrMCK.js → chartTypes-Bf1-edD8-CV1yysKw.js} +1 -1
  205. package/dist/assets/{commonDimensions-BwCds81U-kEodPKRG.js → commonDimensions-B60Qkfnz-DxGoTy6S.js} +1 -1
  206. package/dist/assets/{constants-C3kp1fkP.js → constants-HPf8XA_c.js} +1 -1
  207. package/dist/assets/{core-B_30foAD.js → core-yiE_iOc0.js} +1 -1
  208. package/dist/assets/{dash.all.min-3-z_MPR8.js → dash.all.min-ZaNNnJRa.js} +1 -1
  209. package/dist/assets/{detailCommon-CFEglqRw-DcI3Dm8c.js → detailCommon-B4aI_98A-CEMaqjeK.js} +6 -6
  210. package/dist/assets/{downloadPdf-BfjQscZh-CeCugFTI.js → downloadPdf-DVqVkV_p-CELECDCw.js} +1 -1
  211. package/dist/assets/{empty-DyZfcN1I.js → empty-BOna3nXl.js} +1 -1
  212. package/dist/assets/{empty-BB-5X2tp.js → empty-Be-7ZZNG.js} +1 -1
  213. package/dist/assets/{epic-CXeU0a14.js → epic-CGLWHopS.js} +1 -1
  214. package/dist/assets/{gift-box-Cmt9OgIZ-tVleHIYS.js → gift-box-Cmt9OgIZ-yO9QG4ws.js} +1 -1
  215. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CYR0rF_u.js → graphic-no-data-l-DU4J8fDt-08AJBbmd.js} +1 -1
  216. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DI-E_991.js → graphic-no-data-net-burn-l-CzmycA0m-BCEcNSIc.js} +1 -1
  217. package/dist/assets/{handshake-BPg58FML-DRFlkqA2.js → handshake-BPg58FML-CS6zI2jd.js} +1 -1
  218. package/dist/assets/{index-BCh0qUkM.js → index-B05X8Jld.js} +1 -1
  219. package/dist/assets/{index-BoyomC_-.js → index-BQKUEYMa.js} +1 -1
  220. package/dist/assets/{index-DVfmIUIY.js → index-DADoWRMM.js} +1 -1
  221. package/dist/assets/{index-BhfvNbOl.js → index-DEPZWJ5u.js} +1 -1
  222. package/dist/assets/{index-4xstgUx1.js → index-JQjyoaIW.js} +1 -1
  223. package/dist/assets/{index-DgHTMbc3.js → index-V6G13z1s.js} +1 -1
  224. package/dist/assets/{index-BR9aIv1A.js → index-o0j-GZyM.js} +1919 -1951
  225. package/dist/assets/{lexical-CcL2Fd1i.js → lexical-DlAOaxF0.js} +1 -1
  226. package/dist/assets/{liveblocks-B8f0lmpe.js → liveblocks-BZyZbty1.js} +1 -1
  227. package/dist/assets/{lottie-CbICbNKh.js → lottie-HBX4-MpS.js} +1 -1
  228. package/dist/assets/mapLoadingInProgressToTreeNode-DuPcSiT5-DY73v-Wq.js +1 -0
  229. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-D84rlDgo-CA3ifSFr.js → mapSectionWithAcOnlyToTreeNode-BZsGUDKa-4VCnAicV.js} +1 -1
  230. package/dist/assets/mapSpacerToTreeNode-br_rslOm-BB79AXDK.js +1 -0
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-9dsEoKql-CTAmJm8r.js +1 -0
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-BpOPNyk--FPICGthL.js +1 -0
  233. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BMNyeJt9-CIYXC4NE.js +1 -0
  234. package/dist/assets/{mui-C7Q1opAD.js → mui-CAW43Z2L.js} +1 -1
  235. package/dist/assets/{page-detail-CWX5S47F-DfEuZBUZ.js → page-detail-CWX5S47F-Ga1rCJlu.js} +1 -1
  236. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-Udxivyx_.js → panelSelectedMixin-CzfD5-Zs-C9yV2YE9.js} +1 -1
  237. package/dist/assets/{radio-default-CiSgisfh-VWYNvRzB.js → radio-default-CiSgisfh-W2nwrqQ5.js} +1 -1
  238. package/dist/assets/{react-C5VDu1Xe.js → react-BURuhNYe.js} +1 -1
  239. package/dist/assets/{react-D-QPbFx5.js → react-BeHv7oF0.js} +1 -1
  240. package/dist/assets/{react-OE6vDDlS.js → react-C5kAuTha.js} +1 -1
  241. package/dist/assets/{react-CEhgfqKO.js → react-CkHAqWHd.js} +2 -2
  242. package/dist/assets/{react-B1skuV78.js → react-Cy_jHEin.js} +1 -1
  243. package/dist/assets/{react-DODYMrDc.js → react-D70Dpky3.js} +1 -1
  244. package/dist/assets/{react-zf2AM5gr.js → react-DFbroRVg.js} +1 -1
  245. package/dist/assets/{react-gaSEjZmU.js → react-QfjvWill.js} +1 -1
  246. package/dist/assets/{recharts-v_b66Qfi.js → recharts-Duslqfio.js} +1 -1
  247. package/dist/assets/{sentry-BwoJfpTa.js → sentry-DmQUfSE7.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-DlZ9ml05.js → shield-DOlUxcFf-BSj8Drkk.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-DOquK-Sn-1uwfHDc8.js +1 -0
  250. package/dist/assets/{toChartData-BVSCRQYT-CU2W4nbR.js → toChartData-CcG8i49E-invCvTu2.js} +1 -1
  251. package/dist/assets/{uploadAttachment-D3ybtHtR-D84dG_-j.js → uploadAttachment-B-y1--ww-BcIqRgDj.js} +19 -19
  252. package/dist/assets/{uploadReceipts-Dge0cNF1-C6WyXewN.js → uploadReceipts-Dge0cNF1-Df2fHyc-.js} +1 -1
  253. package/dist/assets/{url-o9j2r9Zq.js → url-R21EGndt.js} +1 -1
  254. package/dist/assets/{url-BcaeVwpg.js → url-hGfZCfig.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-CM12epgA.js → useLongPress-GCK2COYQ-DR25cb_3.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-Cyu4xp0r.js → usp-line-BBd1wKwW-D5-lu6m5.js} +1 -1
  257. package/dist/assets/{utils-C75CTJHa.js → utils-C-XuhdQM.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-Deo9yJpd.js → zeni-epic-state-C4Tt6Qhq.js} +3 -3
  259. package/dist/index.html +1 -1
  260. package/package.json +2 -2
  261. package/dist/assets/AccountInfoPage-BGcQ2kEJ-awOqo-nC.js +0 -18
  262. package/dist/assets/AccountLockedInfoModal-Q_WY8V5e-CDYJtJV8.js +0 -59
  263. package/dist/assets/AddAddressForCardDrawer-D12dN-9m-CqdZIDlk.js +0 -6
  264. package/dist/assets/BoxItem-BGrgQ_sW-cYQcyKu_.js +0 -53
  265. package/dist/assets/ConfettiBurst-C1IgWBaA-CL1o9dY6.js +0 -1
  266. package/dist/assets/CustomerOnboardingContainerPage-YZ4WpsDD-CT9Ps13n.js +0 -1
  267. package/dist/assets/DepositAccTransactionListPage-flz5jtjj-Tj1qKkuc.js +0 -66
  268. package/dist/assets/EditPeoplePage-BiGeDyr0-BP5iQ9eS.js +0 -55
  269. package/dist/assets/MagicLinkACHDetailsPage-B5oowluv-pi_Q89s3.js +0 -1
  270. package/dist/assets/MagicLinkDomesticWireDetailsPage-BohAWQ_F-BBgkEcbM.js +0 -1
  271. package/dist/assets/MagicLinkInternationalWireDetailsPage-CRx-EIj--rUZQXW3V.js +0 -1
  272. package/dist/assets/MagicLinkSuccessPage-q5XLFFKd-IcgduK3D.js +0 -31
  273. package/dist/assets/MailingDetailsSection-Dle_aLif-C9MEuFNg.js +0 -21
  274. package/dist/assets/NoDataTable-BroHHbsa-C2KBPOR3.js +0 -8
  275. package/dist/assets/OverlayContainerPage-D4QU0p4o-CW30kf30.js +0 -11
  276. package/dist/assets/ReimbursementApprovalRuleDetailPage-BFxCrrVt-CFZDA3-E.js +0 -32
  277. package/dist/assets/RoleWithToolTip-D74SWfZd-B2mOCrt1.js +0 -22
  278. package/dist/assets/StatementItem-CS0N92J0-BsnAviIB.js +0 -31
  279. package/dist/assets/StatementsPage-DL8W4WLu-BH9E8ATR.js +0 -58
  280. package/dist/assets/TransactionListPage-Bx6qszUl-B-5CDbC_.js +0 -35
  281. package/dist/assets/TreasuryStatementsPage-D0YaCwv3-PNzj_mHV.js +0 -58
  282. package/dist/assets/Vendor2FAPopup-BogFaSYy-BlnTHqfY.js +0 -1
  283. package/dist/assets/VendorACHDetailsPage-Di9QJ0hA-BNrZk8u_.js +0 -1
  284. package/dist/assets/VendorDomesticWireDetailsPage-DCdG-eGI-IQvY9pai.js +0 -1
  285. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CM2bFEbE-B7IN2oYH.js +0 -1
  286. package/dist/assets/analyticsHelper-DTNFmelW.js +0 -1
  287. package/dist/assets/mapLoadingInProgressToTreeNode-D-j3xrlE-C3TmZv3p.js +0 -1
  288. package/dist/assets/mapSpacerToTreeNode--_h7d27O-sxGNKTOK.js +0 -1
  289. package/dist/assets/mapTimeframeBalancesToTreeNode-BqoG_HF--CRhmAO8j.js +0 -1
  290. package/dist/assets/mapTimeframeBalancesToTreeNode-DPb6o33r-DFBVfNq3.js +0 -1
  291. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DAB0kK09-CTBKyUYq.js +0 -1
  292. package/dist/assets/toCOABalancesWithID-mNZ5ym9S-BQfS02g5.js +0 -1
@@ -1,10 +1,10 @@
1
- import{e as Ve,J as G,F as U,a9 as et,aQ as De,cF as tt,V as t,bC as it,ac as at,aR as nt,y as f,o as n,kV as lt,kW as ot,kX as rt,cL as Re,cI as dt,f0 as st,fE as ct,fF as pt,cK as ke,gc as mt,kY as ut,cO as ht,cP as yt,f7 as ze,f8 as Ae,fh as Oe,b as ge,u,fj as gt,ba as ft,b7 as be,p as Ee,am as xt,ar as We}from"./index-BR9aIv1A.js";import{a as J}from"./sentry-BwoJfpTa.js";import{n as d}from"./mui-C7Q1opAD.js";import{bL as Ue,bh as le,bP as qe,bH as bt,bo as wt}from"./zeni-epic-state-Deo9yJpd.js";import{Y as vt}from"./LabeledDocumentField-BwHjf12U-ti56UUdB.js";import{S as te}from"./LabeledText-CVYTNBOt-LIAQJcbl.js";import"./liveblocks-B8f0lmpe.js";import"./core-B_30foAD.js";import"./recharts-v_b66Qfi.js";import"./lottie-CbICbNKh.js";import"./analytics-rms9goNI.js";import"./lexical-CcL2Fd1i.js";import"./utils-C75CTJHa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="793ef76f-ce9b-4404-9e42-70d4f02245eb",e._sentryDebugIdIdentifier="sentry-dbid-793ef76f-ce9b-4404-9e42-70d4f02245eb")}catch{}})();const St={progressBarWidth:new f(343,726)},jt=({pageIndex:e})=>{const i=G(),a=Ve(),s=U.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(It,{children:h.map((p,l)=>t.jsx(Pt,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Le,{children:p})},p))})]})},Ct=d.div`
1
+ import{g as Ve,J as G,F as q,a9 as et,aQ as De,cF as tt,V as t,bC as it,ac as at,aR as nt,y as f,o as n,kV as lt,kW as ot,kX as rt,cL as Re,cI as dt,f0 as st,fE as ct,fF as pt,cK as ke,gc as mt,kY as ut,cO as ht,cP as yt,f7 as ze,f8 as Ae,fh as Oe,b as ge,u,fj as gt,ba as ft,b7 as be,p as Ee,am as xt,ar as We}from"./index-o0j-GZyM.js";import{a as J}from"./sentry-DmQUfSE7.js";import{n as d}from"./mui-CAW43Z2L.js";import{bL as qe,bh as le,bP as He,bH as bt,bo as wt}from"./zeni-epic-state-C4Tt6Qhq.js";import{Y as vt}from"./LabeledDocumentField-Cj3wNN-j-DRfRBZq3.js";import{S as te}from"./LabeledText-C-8itgDI-CUp_0u3s.js";import"./liveblocks-BZyZbty1.js";import"./core-yiE_iOc0.js";import"./recharts-Duslqfio.js";import"./lottie-HBX4-MpS.js";import"./analytics-DH0nG_g5.js";import"./lexical-DlAOaxF0.js";import"./utils-C-XuhdQM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="cd33e94e-ea75-40fa-8166-f75ca4210eb1",e._sentryDebugIdIdentifier="sentry-dbid-cd33e94e-ea75-40fa-8166-f75ca4210eb1")}catch{}})();const St={progressBarWidth:new f(343,726)},jt=({pageIndex:e})=>{const i=G(),a=Ve(),s=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs(It,{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($t,{children:h.map((p,l)=>t.jsx(Pt,{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};
5
5
  position: relative;
6
6
  width: ${e=>St.progressBarWidth.valuePx(e.windowSize)};
7
- `,$t=d.div`
7
+ `,It=d.div`
8
8
  display: flex;
9
9
  flex-direction: row;
10
10
  position: relative;
@@ -13,7 +13,7 @@ import{e as Ve,J as G,F as U,a9 as et,aQ as De,cF as tt,V as t,bC as it,ac as at
13
13
  margin-left: ${n.sp2};
14
14
  margin-bottom: ${n.sp5};
15
15
  align-self: flex-start;
16
- `,It=d.div`
16
+ `,$t=d.div`
17
17
  display: flex;
18
18
  margin: ${n.sp3} ${n.sp0};
19
19
  justify-content: space-between;
@@ -38,7 +38,7 @@ import{e as Ve,J as G,F as U,a9 as et,aQ as De,cF as tt,V as t,bC as it,ac as at
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
- `,P={containerWidth:new f(343,580,726),labelWidth:new f(120,160,160),largeLabelWidth:new f(150,228,228),largeLabelPickerWidth:new f(100,180,180),paddingBottom:new f(u[3],u[2]),labelMarginLeftPicker:new f(u[3],u[4]),labelMarginRightPicker:new f(u[3],u[4]),labelMarginTopPicker:new f(u[2],u[2]),labeledFieldPaddingLeft:new f(u[0],u[0]),labeledFieldPaddingRight:new f(u[2],u[2]),labeledFieldPaddingTop:new f(u[2],u[2]),labeledFieldPaddingBottom:new f(u[2],u[2]),infoLabelPaddingRight:new f(u[0],u[3]),infoLabelMarginTop:new f(u[1],u[0])},R=(e,i)=>`${e}.${i}`,Dt=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:T,deleteFileStatusById:I,updateFileStatusById:x,onClickAddAccount:w})=>{const o=G(),{spendManagement:D,dateFormat:y,common:C}=U.getLocalizedStrings(),$=D.billPay.billDetails,X=y.visual.defaultInput,re=D.zeniAccounts.expressPay,de=C.documents,q=P.largeLabelWidth.value(o),[g,Z]=J.useState(!1),H=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(bt)===!1),k=r=>s.find(m=>m.id===r),L=r=>ze(k(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=k(r),j=U.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(fe,{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(fe,{children:m?.piLabels.map(_=>t.jsxs(W,{children:[t.jsxs(z,{children:[_.name,j.paymentDetails.colon]}),t.jsx(E,{children:_.value})]},_.name))}):t.jsxs(fe,{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(kt,{children:$.paymentDetailsTitle}),t.jsxs(At,{windowSize:o,children:[t.jsx(st,{label:{label:$.withdrawFrom,width:q,style:{marginLeft:P.labelMarginLeftPicker.valuePx(o),marginTop:P.labelMarginTopPicker.valuePx(o),marginRight:P.labelMarginRightPicker.valuePx(o),width:P.largeLabelPickerWidth.value(o)}},style:{paddingTop:P.labeledFieldPaddingTop.valuePx(o),paddingBottom:P.labeledFieldPaddingBottom.valuePx(o),paddingLeft:P.labeledFieldPaddingLeft.valuePx(o),paddingRight:P.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:P.infoLabelPaddingRight.valuePx(o),marginTop:P.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:R(e,"withdrawFrom"),placeholder:ke($.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(Y,{}),t.jsx(mt,{showAdditionalInfoLabel:!1,label:{label:$.amount,width:q},formattedTextField:{type:"number",name:R(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:ke($.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(Y,{}),t.jsx(ut,{label:{label:$.paymentMethod,width:P.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(Y,{}),t.jsx(ht,{label:{label:$.paymentDate,width:P.labelWidth.value(o)},style:{paddingBottom:P.paddingBottom.valuePx(o),width:"auto"},dateField:{name:R(e,"paymentDate"),placeholder:$.paymentDate,dateFormat:X,autoComplete:"off",minDate:le(),registerOptions:{required:!0}}}),t.jsx(Y,{}),t.jsx(Re,{label:{label:$.paymentTo,width:q},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(Y,{}),t.jsx(vt,{name:R(e,"receipt"),sizeLimit:yt,deleteFileStatusById:I,updateFileStatusById:x,filesEndPoint:l.filesEndPoint,authParams:l.authParams,label:{label:re.reciept,width:q},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=>Z(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(Y,{})]})]})},kt=d(be)`
41
+ `,P={containerWidth:new f(343,580,726),labelWidth:new f(120,160,160),largeLabelWidth:new f(150,228,228),largeLabelPickerWidth:new f(100,180,180),paddingBottom:new f(u[3],u[2]),labelMarginLeftPicker:new f(u[3],u[4]),labelMarginRightPicker:new f(u[3],u[4]),labelMarginTopPicker:new f(u[2],u[2]),labeledFieldPaddingLeft:new f(u[0],u[0]),labeledFieldPaddingRight:new f(u[2],u[2]),labeledFieldPaddingTop:new f(u[2],u[2]),labeledFieldPaddingBottom:new f(u[2],u[2]),infoLabelPaddingRight:new f(u[0],u[3]),infoLabelMarginTop:new f(u[1],u[0])},R=(e,i)=>`${e}.${i}`,Dt=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:T,deleteFileStatusById:$,updateFileStatusById:x,onClickAddAccount:w})=>{const o=G(),{spendManagement:D,dateFormat:y,common:C}=q.getLocalizedStrings(),I=D.billPay.billDetails,X=y.visual.defaultInput,re=D.zeniAccounts.expressPay,de=C.documents,H=P.largeLabelWidth.value(o),[g,Z]=J.useState(!1),U=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(bt)===!1),k=r=>s.find(m=>m.id===r),L=r=>ze(k(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=k(r),j=q.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(fe,{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(fe,{children:m?.piLabels.map(_=>t.jsxs(W,{children:[t.jsxs(z,{children:[_.name,j.paymentDetails.colon]}),t.jsx(E,{children:_.value})]},_.name))}):t.jsxs(fe,{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(kt,{children:I.paymentDetailsTitle}),t.jsxs(At,{windowSize:o,children:[t.jsx(st,{label:{label:I.withdrawFrom,width:H,style:{marginLeft:P.labelMarginLeftPicker.valuePx(o),marginTop:P.labelMarginTopPicker.valuePx(o),marginRight:P.labelMarginRightPicker.valuePx(o),width:P.largeLabelPickerWidth.value(o)}},style:{paddingTop:P.labeledFieldPaddingTop.valuePx(o),paddingBottom:P.labeledFieldPaddingBottom.valuePx(o),paddingLeft:P.labeledFieldPaddingLeft.valuePx(o),paddingRight:P.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:P.infoLabelPaddingRight.valuePx(o),marginTop:P.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:R(e,"withdrawFrom"),placeholder:ke(I.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(Y,{}),t.jsx(mt,{showAdditionalInfoLabel:!1,label:{label:I.amount,width:H},formattedTextField:{type:"number",name:R(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:ke(I.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(Y,{}),t.jsx(ut,{label:{label:I.paymentMethod,width:P.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:R(e,"paymentMethod"),placeholder:I.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:U,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(Y,{}),t.jsx(ht,{label:{label:I.paymentDate,width:P.labelWidth.value(o)},style:{paddingBottom:P.paddingBottom.valuePx(o),width:"auto"},dateField:{name:R(e,"paymentDate"),placeholder:I.paymentDate,dateFormat:X,autoComplete:"off",minDate:le(),registerOptions:{required:!0}}}),t.jsx(Y,{}),t.jsx(Re,{label:{label:I.paymentTo,width:H},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:R(e,"paymentTo"),placeholder:I.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(Y,{}),t.jsx(vt,{name:R(e,"receipt"),sizeLimit:yt,deleteFileStatusById:$,updateFileStatusById:x,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=>Z(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(Y,{})]})]})},kt=d(be)`
42
42
  color: ${e=>e.theme.colors.primary};
43
43
  margin-bottom: ${n.sp3};
44
44
  `,At=d.div`
@@ -79,7 +79,7 @@ import{e as Ve,J as G,F as U,a9 as et,aQ as De,cF as tt,V as t,bC as it,ac as at
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 f(150,210,210)},ie=(e,i)=>`${e}.${i}`,Nt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=G(),l=U.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,T=Lt.largeLabelWidth.value(p),I=J.useRef();J.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&I.current?.(Mt(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const x={vendorSearchAutoCompleteData:s,loadOptions:(y,C)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),I.current=C}},w=x?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(x?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||x?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="Not-Started"),o={defaultOptions:He(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(Vt,{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:D,registerOptions:{required:!0,validate:y=>y!=null&&!!y.selectedOption},loadOptions:x?.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 f(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),$=J.useRef();J.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&$.current?.(Mt(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const x={vendorSearchAutoCompleteData:s,loadOptions:(y,C)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),$.current=C}},w=x?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(x?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||x?.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(Vt,{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:D,registerOptions:{required:!0,validate:y=>y!=null&&!!y.selectedOption},loadOptions:x?.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"}})]})})]})},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
85
  `,Vt=d.div`
@@ -98,11 +98,11 @@ import{e as Ve,J as G,F as U,a9 as et,aQ as De,cF as tt,V as t,bC as it,ac as at
98
98
  background-color: ${e=>e.theme.colors.grey3};
99
99
  min-height: 1px;
100
100
  max-height: 1px;
101
- `,oe={containerWidth:new f(343,580,726),largeLabelWidth:new f(150,215,215),reviewContainerMarginLeft:new f(u[3],u[6]),reviewContainerMarginRight:new f(u[3],u[8])},zt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=G(),p=oe.largeLabelWidth.value(h),{billPay:l}=U.getLocalizedStrings().spendManagement,{dateFormat:T,common:I}=U.getLocalizedStrings(),x=l.billDetails,w=i?.paymentType,o=T.visual.MMMDCommaYYYYformat,D={amount:i?.amount?.amount??0,currencyCode:I.currency.currencyCode,currencySymbol:I.currency.currencySymbol},y=ze(a.find(X=>X.id===i?.paymentToAccountId)),C=i?.paymentDate,$=Ae(w?.method??"");return t.jsx(_t,{children:t.jsxs(Yt,{windowSize:h,style:s,children:[t.jsxs(Xt,{children:[t.jsx(ae,{children:x.pay}),t.jsx(ae,{children:t.jsx(Oe,{amount:D,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ae,{children:x.to}),t.jsx(ae,{children:e})]}),t.jsxs(Jt,{windowSize:h,children:[t.jsx(te,{label:{label:x.withdrawFrom,width:p},style:{width:"auto",gap:u[3]},value:i?.withdrawFrom!=null?gt(i.withdrawFrom,h):I.strings.empty}),t.jsx(xe,{}),t.jsx(te,{label:{label:x.paymentMethod,width:p},style:{width:"auto"},value:Ae(w?.method??"")}),t.jsx(xe,{}),C!=null?t.jsxs(t.Fragment,{children:[t.jsx(te,{label:{label:x.paymentDate,width:p},style:{width:"auto"},value:C.format(o),additionalInfoLabel:`${x.estimatedArrival}${Ue(qe(C.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${$.length>0?`${$} `:""}${x.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${x.deliveryTimeUnits})`}),t.jsx(xe,{})]}):null,t.jsx(te,{label:{label:x.paymentTo,width:p},style:{width:"auto"},value:y??""})]}),t.jsx(Wt,{children:t.jsxs(Ut,{windowSize:h,children:[t.jsx(qt,{children:t.jsx(Et,{children:l.paymentDetails.total})}),t.jsx(Ht,{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`
101
+ `,oe={containerWidth:new f(343,580,726),largeLabelWidth:new f(150,215,215),reviewContainerMarginLeft:new f(u[3],u[6]),reviewContainerMarginRight:new f(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:$}=q.getLocalizedStrings(),x=l.billDetails,w=i?.paymentType,o=T.visual.MMMDCommaYYYYformat,D={amount:i?.amount?.amount??0,currencyCode:$.currency.currencyCode,currencySymbol:$.currency.currencySymbol},y=ze(a.find(X=>X.id===i?.paymentToAccountId)),C=i?.paymentDate,I=Ae(w?.method??"");return t.jsx(_t,{children:t.jsxs(Yt,{windowSize:h,style:s,children:[t.jsxs(Xt,{children:[t.jsx(ae,{children:x.pay}),t.jsx(ae,{children:t.jsx(Oe,{amount:D,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ae,{children:x.to}),t.jsx(ae,{children:e})]}),t.jsxs(Jt,{windowSize:h,children:[t.jsx(te,{label:{label:x.withdrawFrom,width:p},style:{width:"auto",gap:u[3]},value:i?.withdrawFrom!=null?gt(i.withdrawFrom,h):$.strings.empty}),t.jsx(xe,{}),t.jsx(te,{label:{label:x.paymentMethod,width:p},style:{width:"auto"},value:Ae(w?.method??"")}),t.jsx(xe,{}),C!=null?t.jsxs(t.Fragment,{children:[t.jsx(te,{label:{label:x.paymentDate,width:p},style:{width:"auto"},value:C.format(o),additionalInfoLabel:`${x.estimatedArrival}${qe(He(C.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${I.length>0?`${I} `:""}${x.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${x.deliveryTimeUnits})`}),t.jsx(xe,{})]}):null,t.jsx(te,{label:{label:x.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;
105
- `,Ut=d.div`
105
+ `,qt=d.div`
106
106
  width: 100%;
107
107
  padding: ${n.sp3};
108
108
  display: flex;
@@ -113,13 +113,13 @@ import{e as Ve,J as G,F as U,a9 as et,aQ as De,cF as tt,V as t,bC as it,ac as at
113
113
  border-radius: ${n.sp2};
114
114
  color: ${e=>e.theme.colors.hero};
115
115
  margin-bottom: ${n.sp2};
116
- `,qt=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;
@@ -157,7 +157,7 @@ import{e as Ve,J as G,F as U,a9 as et,aQ as De,cF as tt,V as t,bC as it,ac as at
157
157
  display: flex;
158
158
  color: ${e=>e.theme.colors.primary};
159
159
  margin-right: ${n.sp1};
160
- `,Me="expressPayPage",Zt=e=>`${e}_form`,O="recipientDetails",F="paymentDetails",ne={buttonWidth:new f(160,140),largeButtonWidth:new f(166,166)},mi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:T,onBackClick:I,saveVendorDetailLocalData:x,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:D,initializeVendorAddress:y,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:q,expressPayLocalData:g,vendorTypeList:Z,allPaymentMethods:H,paymentToOptions:k,withdrawFromList:L,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:_}=e,[v,Q]=J.useState(0),_e=Ve(),K=G(),{common:we,spendManagement:Ye}=U.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=Ye.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=q,N=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,Ce=Object.assign({},Se??je),Je=N?.vendorName,$e=L.find(c=>c.id===s),ee=et({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(Z,L,k,$e,H,N,g,j,C?.entityAutoCompleteView),values:Be(Z,L,k,$e,H,N,g,j,C?.entityAutoCompleteView)}),Ie=De(Ce.saveStatus?.fetchState),Pe=De(m);J.useEffect(()=>{const c=ee.watch((S,{name:b})=>{b!=null&&S!=null&&tt(()=>Xe(b,S))});return()=>{c.unsubscribe()}}),J.useEffect(()=>{Ie==="In-Progress"&&_==="Completed"&&(v===0?(Q(1),o?.(g?.vendorId)):v===1&&Q(2)),Pe==="In-Progress"&&m==="Completed"&&I(g?.vendorId)},[Ie,_,v,o,g?.vendorId,Pe,m,I]);const Xe=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[O].recipient.selectedOption,A=C?.entityAutoCompleteView.vendor.find(M=>M.zeniId===b);Ze(S),y(),N?.vendorId!==b&&A!=null&&(l?.(b),he(S,!1,k,b))}else if(c.includes("recipient"))ue(S);else{const b=S[F].paymentMethod?.method,A=g?.paymentType?.method,M=b!=null&&A!=null&&(b.toLowerCase().includes("ach")&&A.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&A.toLowerCase().includes("ach"));he(S,M,k,g?.vendorId)}},Ze=c=>{const S=c[O].recipient.selectedOption,b=C?.entityAutoCompleteView.vendor.find(A=>A.id===S)!=null;if(S!=null&&b===!0){T?.(S),he(c,!1,k,S);return}ue(c,!0)},ue=(c,S)=>{const b=N?.vendorId,A=C?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,M=Kt(c,A===!0?b:void 0,N,S);x?.(M,b)},he=(c,S,b,A)=>{const M=(()=>{let B=[];return c[F].paymentMethod?.method.includes("wire")===!0?B=b.filter(V=>!!V.bankRoutingNumberWireTransfer).map(V=>V.id):B=b.filter(V=>!!V.bankRoutingNumberAch).map(V=>V.id),B})(),ye=b.find(B=>B.id===c[F]?.paymentTo?.selectedOption),Qe={vendorId:A,amount:{amount:c[F].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[F].paymentDate?Ue(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()}),Ke=()=>{v===2?Q(1):I(g?.vendorId)},Ge=()=>{v===0?I(g?.vendorId):Q(v===1?0:1)},Fe={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?k.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:Ge,backgroundColor:_e.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Gt,{windowSize:K,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:Z,formLocalData:N,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$}):v===1?t.jsx(Dt,{sectionId:F,paymentDetails:Fe,paymentToOptions:k,allPaymentMethods:H,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:k,vendorName:Je}):null})})]}),t.jsx(nt,{formId:Zt(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(K):ne.buttonWidth.value(K),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Te()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?ne.largeButtonWidth.value(K):ne.buttonWidth.value(K),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Ke}})]})},Be=(e,i,a,s,h,p,l,T,I)=>{const x=(()=>{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,I),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()??qe(le().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?x:[],selectedOption:l?.paymentToAccountId??x[0]},receipt:T}}};function Kt(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`
160
+ `,Me="expressPayPage",Zt=e=>`${e}_form`,O="recipientDetails",F="paymentDetails",ne={buttonWidth:new f(160,140),largeButtonWidth:new f(166,166)},mi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:T,onBackClick:$,saveVendorDetailLocalData:x,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:D,initializeVendorAddress:y,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:I,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:H,expressPayLocalData:g,vendorTypeList:Z,allPaymentMethods:U,paymentToOptions:k,withdrawFromList:L,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:_}=e,[v,Q]=J.useState(0),_e=Ve(),K=G(),{common:we,spendManagement:Ye}=q.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=Ye.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=H,N=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,Ce=Object.assign({},Se??je),Je=N?.vendorName,Ie=L.find(c=>c.id===s),ee=et({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(Z,L,k,Ie,U,N,g,j,C?.entityAutoCompleteView),values:Be(Z,L,k,Ie,U,N,g,j,C?.entityAutoCompleteView)}),$e=De(Ce.saveStatus?.fetchState),Pe=De(m);J.useEffect(()=>{const c=ee.watch((S,{name:b})=>{b!=null&&S!=null&&tt(()=>Xe(b,S))});return()=>{c.unsubscribe()}}),J.useEffect(()=>{$e==="In-Progress"&&_==="Completed"&&(v===0?(Q(1),o?.(g?.vendorId)):v===1&&Q(2)),Pe==="In-Progress"&&m==="Completed"&&$(g?.vendorId)},[$e,_,v,o,g?.vendorId,Pe,m,$]);const Xe=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[O].recipient.selectedOption,A=C?.entityAutoCompleteView.vendor.find(M=>M.zeniId===b);Ze(S),y(),N?.vendorId!==b&&A!=null&&(l?.(b),he(S,!1,k,b))}else if(c.includes("recipient"))ue(S);else{const b=S[F].paymentMethod?.method,A=g?.paymentType?.method,M=b!=null&&A!=null&&(b.toLowerCase().includes("ach")&&A.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&A.toLowerCase().includes("ach"));he(S,M,k,g?.vendorId)}},Ze=c=>{const S=c[O].recipient.selectedOption,b=C?.entityAutoCompleteView.vendor.find(A=>A.id===S)!=null;if(S!=null&&b===!0){T?.(S),he(c,!1,k,S);return}ue(c,!0)},ue=(c,S)=>{const b=N?.vendorId,A=C?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,M=Kt(c,A===!0?b:void 0,N,S);x?.(M,b)},he=(c,S,b,A)=>{const M=(()=>{let B=[];return c[F].paymentMethod?.method.includes("wire")===!0?B=b.filter(V=>!!V.bankRoutingNumberWireTransfer).map(V=>V.id):B=b.filter(V=>!!V.bankRoutingNumberAch).map(V=>V.id),B})(),ye=b.find(B=>B.id===c[F]?.paymentTo?.selectedOption),Qe={vendorId:A,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()}),Ke=()=>{v===2?Q(1):$(g?.vendorId)},Ge=()=>{v===0?$(g?.vendorId):Q(v===1?0:1)},Fe={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?k.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:_e.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Gt,{windowSize:K,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:Z,formLocalData:N,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:I}):v===1?t.jsx(Dt,{sectionId:F,paymentDetails:Fe,paymentToOptions:k,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:k,vendorName:Je}):null})})]}),t.jsx(nt,{formId:Zt(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(K):ne.buttonWidth.value(K),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Te()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?ne.largeButtonWidth.value(K):ne.buttonWidth.value(K),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Ke}})]})},Be=(e,i,a,s,h,p,l,T,$)=>{const x=(()=>{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,$),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?x:[],selectedOption:l?.paymentToAccountId??x[0]},receipt:T}}};function Kt(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%;
@@ -1,4 +1,4 @@
1
- import{e as _,J as w,F as y,aV as n,p as r,V as i,cp as v,y as p,cq as k,cr as x,u as g}from"./index-BR9aIv1A.js";import{n as d}from"./mui-C7Q1opAD.js";import"./sentry-BwoJfpTa.js";import"./liveblocks-B8f0lmpe.js";import"./core-B_30foAD.js";import"./recharts-v_b66Qfi.js";import"./zeni-epic-state-Deo9yJpd.js";import"./lottie-CbICbNKh.js";import"./analytics-rms9goNI.js";import"./lexical-CcL2Fd1i.js";import"./utils-C75CTJHa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="0bea24aa-9ab8-49a7-9c2d-32f906421d93",e._sentryDebugIdIdentifier="sentry-dbid-0bea24aa-9ab8-49a7-9c2d-32f906421d93")}catch{}})();const t={popupWidth:new p(200,468,468,468),buttonWidth:new p(140,160,160,160),popupContainerLeft:new p(g[0],g[0],255),popupContainerWidth:new p(100,100,85)},z=d.div`
1
+ import{g as _,J as y,F as w,aV as n,p as r,V as i,cp as v,y as p,cq as k,cr as x,u as g}from"./index-o0j-GZyM.js";import{n as d}from"./mui-CAW43Z2L.js";import"./sentry-DmQUfSE7.js";import"./liveblocks-BZyZbty1.js";import"./core-yiE_iOc0.js";import"./recharts-Duslqfio.js";import"./zeni-epic-state-C4Tt6Qhq.js";import"./lottie-HBX4-MpS.js";import"./analytics-DH0nG_g5.js";import"./lexical-DlAOaxF0.js";import"./utils-C-XuhdQM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="82867b1c-93c8-41e9-a62f-af5cbf461bf1",e._sentryDebugIdIdentifier="sentry-dbid-82867b1c-93c8-41e9-a62f-af5cbf461bf1")}catch{}})();const t={popupWidth:new p(200,468,468,468),buttonWidth:new p(140,160,160,160),popupContainerLeft:new p(g[0],g[0],255),popupContainerWidth:new p(100,100,85)},z=d.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -8,4 +8,4 @@ import{e as _,J as w,F as y,aV as n,p as r,V as i,cp as v,y as p,cq as k,cr as x
8
8
  `,C=d.img`
9
9
  width: 100%;
10
10
  height: 100%;
11
- `,W={mobile:{home:"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",users_and_roles:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-mobile",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_settings:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_cfo:"",command_center:"",task_checklist:"",transaction_categorization:"",je_schedules:"",missing_receipts:"",flux_analysis:"",reconciliation:""},normal:{home:"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",users_and_roles:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-normal",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_settings:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_cfo:"",command_center:"",task_checklist:"",transaction_categorization:"",je_schedules:"",missing_receipts:"",flux_analysis:"",reconciliation:""}};function F({menuItem:e,onDemoClick:a,onGoBack:m}){const s=_(),o=w(),u=`${W[o==="small"?"mobile":"normal"][e]}-${s.mode}.png`,{featurePreview:c}=y.getLocalizedStrings(),l=c.popups[e],b=s.mode==="light"?new n(r.backgroundGradient1Light):new n(r.backgroundGradient1Dark),h=s.mode==="light"?new n(r.backgroundGradient2Light):new n(r.backgroundGradient2Dark),f={onOkClick:()=>{a()},onCancelClick:()=>{m()}};return i.jsxs(z,{children:[i.jsx(C,{src:u,alt:"feature-preview",loading:"lazy"}),i.jsx(v,{titleComponent:i.jsx(x,{children:l.title}),descriptionComponent:i.jsx(k,{children:l.text}),primaryButtonText:c.scheduleDemo,secondaryButtonText:c.goBack,action:f,primaryButtonWidth:t.buttonWidth.value(o),secondaryButtonWidth:t.buttonWidth.value(o),style:{background:`radial-gradient(50% 50% at 50% 50%, ${b} 0%, ${h} 100%)`,backdropFilter:"blur(2px)",width:t.popupContainerWidth.valuePercentage(o),left:t.popupContainerLeft.value(o)},containerStyle:{border:`1px solid ${s.colors.grey1}`,minWidth:t.popupWidth.valuePx(o)}})]})}export{F as default};
11
+ `,W={mobile:{home:"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",users_and_roles:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-mobile",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_settings:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_cfo:"",command_center:"",task_checklist:"",transaction_categorization:"",je_schedules:"",missing_receipts:"",flux_analysis:"",reconciliation:""},normal:{home:"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",users_and_roles:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-normal",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_settings:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_cfo:"",command_center:"",task_checklist:"",transaction_categorization:"",je_schedules:"",missing_receipts:"",flux_analysis:"",reconciliation:""}};function F({menuItem:e,onDemoClick:a,onGoBack:m}){const s=_(),o=y(),u=`${W[o==="small"?"mobile":"normal"][e]}-${s.mode}.png`,{featurePreview:c}=w.getLocalizedStrings(),l=c.popups[e],b=s.mode==="light"?new n(r.backgroundGradient1Light):new n(r.backgroundGradient1Dark),h=s.mode==="light"?new n(r.backgroundGradient2Light):new n(r.backgroundGradient2Dark),f={onOkClick:()=>{a()},onCancelClick:()=>{m()}};return i.jsxs(z,{children:[i.jsx(C,{src:u,alt:"feature-preview",loading:"lazy"}),i.jsx(v,{titleComponent:i.jsx(x,{children:l.title}),descriptionComponent:i.jsx(k,{children:l.text}),primaryButtonText:c.scheduleDemo,secondaryButtonText:c.goBack,action:f,primaryButtonWidth:t.buttonWidth.value(o),secondaryButtonWidth:t.buttonWidth.value(o),style:{background:`radial-gradient(50% 50% at 50% 50%, ${b} 0%, ${h} 100%)`,backdropFilter:"blur(2px)",width:t.popupContainerWidth.valuePercentage(o),left:t.popupContainerLeft.value(o)},containerStyle:{border:`1px solid ${s.colors.grey1}`,minWidth:t.popupWidth.valuePx(o)}})]})}export{F as default};
@@ -1,4 +1,4 @@
1
- import{J as H,V as l,F as X,cS as _,c_ as G,e as ee,cY as Q,y as I,gg as Z,o as i,aP as M,eo as ce,aD as le,g8 as pe,g9 as ue,r as he,p as u,u as g,gE as ge,cZ as be,c$ as ye,ao as ve,bH as we,b as W,dm as $e,bI as fe,bG as ke}from"./index-BR9aIv1A.js";import{n as d}from"./mui-C7Q1opAD.js";import{a as V}from"./sentry-BwoJfpTa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="b7048cfb-540e-421b-8523-444d47c4da82",e._sentryDebugIdIdentifier="sentry-dbid-b7048cfb-540e-421b-8523-444d47c4da82")}catch{}})();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:s,firstText:t,secondText:p,style:$,isFieldError:k}){const f=H(),{formState:{errors:j}}=_(),m=G(j,t.name),T=G(j,p.name),r=ee();return l.jsxs(Te,{size:f,style:$,isDisabled:e!=null,isErrorFirstText:m,isErrorSecondText:T,"data-testid":M("labeled-multi-text-field",t.name),children:[l.jsx(Q,{isDisabled:e,label:s.label,style:{marginRight:v.labelMarginRight.value(f),width:s.width??"auto",color:r.colors.champion}}),l.jsxs(Le,{labelWidth:s.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(f),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||m&&t.additionalErrorLabel?l.jsx(oe,{isError:m,children:m?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Oe,{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(f),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:T,children:p.additionalInfoLabel})]})]})]})]})}const Te=d.div`
1
+ import{J as H,V as l,F as X,cS as _,c_ as G,g as ee,cY as Q,y as I,gg as Z,o as i,aP as M,eo as ce,aD as le,g8 as pe,g9 as ue,r as he,p as u,u as g,gE as ge,cZ as be,c$ as ye,ao as ve,bH as we,b as W,dm as $e,bI as fe,bG as ke}from"./index-o0j-GZyM.js";import{n as d}from"./mui-CAW43Z2L.js";import{a as V}from"./sentry-DmQUfSE7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="5a6d5a03-5957-4704-93d6-43e70ee42281",e._sentryDebugIdIdentifier="sentry-dbid-5a6d5a03-5957-4704-93d6-43e70ee42281")}catch{}})();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:s,firstText:t,secondText:p,style:$,isFieldError:k}){const f=H(),{formState:{errors:j}}=_(),m=G(j,t.name),T=G(j,p.name),r=ee();return l.jsxs(Te,{size:f,style:$,isDisabled:e!=null,isErrorFirstText:m,isErrorSecondText:T,"data-testid":M("labeled-multi-text-field",t.name),children:[l.jsx(Q,{isDisabled:e,label:s.label,style:{marginRight:v.labelMarginRight.value(f),width:s.width??"auto",color:r.colors.champion}}),l.jsxs(Oe,{labelWidth:s.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(f),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||m&&t.additionalErrorLabel?l.jsx(oe,{isError:m,children:m?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(f),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:T,children:p.additionalInfoLabel})]})]})]})]})}const Te=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -65,7 +65,7 @@ import{J as H,V as l,F as X,cS as _,c_ as G,e as ee,cY as Q,y as I,gg as Z,o as
65
65
  }
66
66
  }
67
67
  }
68
- `,Le=d.div`
68
+ `,Oe=d.div`
69
69
  display: flex;
70
70
  width: 100%;
71
71
  align-items: baseline;
@@ -77,7 +77,7 @@ import{J as H,V as l,F as X,cS as _,c_ as G,e as ee,cY as Q,y as I,gg as Z,o as
77
77
  `,ie=d.div`
78
78
  width: inherit;
79
79
  position: relative;
80
- `,Oe=d.div`
80
+ `,Le=d.div`
81
81
  align-items: center;
82
82
  display: flex;
83
83
  justify-content: center;
@@ -198,7 +198,7 @@ import{J as H,V as l,F as X,cS as _,c_ as G,e as ee,cY as Q,y as I,gg 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:s,name:t,onSelectedValueChanged:p,valueToLabel:$,disable:k=!1,defaultMenuIsOpen:f,placeholderLabel:j})=>{const{formState:{errors:m}}=_(),T=G(m,t??""),r=ee(),[O,D]=V.useState(void 0),[b,q]=V.useState(f),C=n=>n.map(w=>N(w)),N=V.useCallback(n=>({value:n,label:$(n)}),[$]);V.useEffect(()=>{const n=s==null?void 0:N(s);D(n?.label===""?void 0:n)},[s,$,N]);const A=n=>{p(n)},S=r.colors.grey5,B=r.colors.grey5,F=W.smallRegular,E=W.extraSmallRegular,R={control:(n,{selectProps:w})=>({...n,border:0,height:g[6],backgroundColor:w.menuIsOpen===!0?r.colors.background:T===!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,...W.standardRegular.cssObject,width:"100%",textOverflow:"ellipsis"}),valueContainer:(n,{selectProps:w})=>({...n,maxWidth:"100%",cursor:"pointer",...E,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],...W.standardRegular.cssObject,color:T===!0?u.important:r.colors.grey1,display:"flex",justifyContent:"flex-start",alignItems:"center"}),option:(n,{isSelected:w,isFocused:U,isDisabled:z,data:o})=>({...n,...F,height:g[6],color:o.value==="require_approval"?u.alertDark:u.successDark,backgroundColor:w||U?r.colors.background:S,cursor:z?"not-allowed":"pointer",borderTop:o.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",...W.standardRegular.cssObject})};return l.jsx(ve,{onClickAway:()=>{q(!1)},children:l.jsx(we,{isMulti:!1,onChange:n=>{A(n)},minMenuHeight:208,menuPlacement:"auto",menuShouldScrollIntoView:!1,defaultValue:O,value:O,placeholder:j,components:{Option:Re,DropdownIndicator:_e,IndicatorSeparator:qe,SingleValue:Fe},hideSelectedOptions:!1,styles:R,options:C(e),isClearable:!1,isSearchable:!1,isDisabled:k,defaultMenuIsOpen:b,"data-testid":M("single-select",t)},$e())})},Fe=({children:e,...s})=>l.jsx(fe.SingleValue,{...s,children:e}),Re=e=>{const{data:s,options:t,isFocused:p,label:$,isSelected:k}=e,f=t.find(m=>m.value===s.value),j=typeof s.label=="string"?s.label:s.value;return l.jsxs(fe.Option,{...e,children:[l.jsxs(Pe,{"data-testid":M("single-select-option",j),children:[l.jsxs(Ve,{children:[l.jsx("label",{children:$}),p===!0&&f?.id!=null&&l.jsx(Me,{children:f.id})]}),k?l.jsx(Be,{children:l.jsx(He,{className:"tick-icon"})}):null]}),f.additionalInfo!==""&&l.jsx(l.Fragment,{children:f.additionalInfo})]})},Pe=d.div`
201
+ `;function ul(e){return H()==="small"?l.jsx(Se,{...e}):l.jsx(je,{...e})}const Ne=({allOptions:e,selectedValue:s,name:t,onSelectedValueChanged:p,valueToLabel:$,disable:k=!1,defaultMenuIsOpen:f,placeholderLabel:j})=>{const{formState:{errors:m}}=_(),T=G(m,t??""),r=ee(),[L,D]=V.useState(void 0),[b,q]=V.useState(f),C=n=>n.map(w=>N(w)),N=V.useCallback(n=>({value:n,label:$(n)}),[$]);V.useEffect(()=>{const n=s==null?void 0:N(s);D(n?.label===""?void 0:n)},[s,$,N]);const A=n=>{p(n)},S=r.colors.grey5,B=r.colors.grey5,F=W.smallRegular,E=W.extraSmallRegular,R={control:(n,{selectProps:w})=>({...n,border:0,height:g[6],backgroundColor:w.menuIsOpen===!0?r.colors.background:T===!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,...W.standardRegular.cssObject,width:"100%",textOverflow:"ellipsis"}),valueContainer:(n,{selectProps:w})=>({...n,maxWidth:"100%",cursor:"pointer",...E,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],...W.standardRegular.cssObject,color:T===!0?u.important:r.colors.grey1,display:"flex",justifyContent:"flex-start",alignItems:"center"}),option:(n,{isSelected:w,isFocused:U,isDisabled:z,data:o})=>({...n,...F,height:g[6],color:o.value==="require_approval"?u.alertDark:u.successDark,backgroundColor:w||U?r.colors.background:S,cursor:z?"not-allowed":"pointer",borderTop:o.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",...W.standardRegular.cssObject})};return l.jsx(ve,{onClickAway:()=>{q(!1)},children:l.jsx(we,{isMulti:!1,onChange:n=>{A(n)},minMenuHeight:208,menuPlacement:"auto",menuShouldScrollIntoView:!1,defaultValue:L,value:L,placeholder:j,components:{Option:Re,DropdownIndicator:_e,IndicatorSeparator:qe,SingleValue:Fe},hideSelectedOptions:!1,styles:R,options:C(e),isClearable:!1,isSearchable:!1,isDisabled:k,defaultMenuIsOpen:b,"data-testid":M("single-select",t)},$e())})},Fe=({children:e,...s})=>l.jsx(fe.SingleValue,{...s,children:e}),Re=e=>{const{data:s,options:t,isFocused:p,label:$,isSelected:k}=e,f=t.find(m=>m.value===s.value),j=typeof s.label=="string"?s.label:s.value;return l.jsxs(fe.Option,{...e,children:[l.jsxs(Pe,{"data-testid":M("single-select-option",j),children:[l.jsxs(Ve,{children:[l.jsx("label",{children:$}),p===!0&&f?.id!=null&&l.jsx(Me,{children:f.id})]}),k?l.jsx(Be,{children:l.jsx(He,{className:"tick-icon"})}):null]}),f.additionalInfo!==""&&l.jsx(l.Fragment,{children:f.additionalInfo})]})},Pe=d.div`
202
202
  display: flex;
203
203
  flex-direction: row;
204
204
  align-items: center;
@@ -225,17 +225,17 @@ import{J as H,V as l,F as X,cS as _,c_ as G,e as ee,cY as Q,y as I,gg as Z,o as
225
225
  height: ${i.sp3};
226
226
  cursor: pointer;
227
227
  color: ${e=>e.theme.colors.primary};
228
- `,_e=()=>null,qe=()=>null,Ae=({name:e,registerOptions:s,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:f}=_(),j=t.allOptions.map(r=>r.value??""),m=r=>t.allOptions.filter(O=>O.value===r)[0]?.label??"",T=r=>t.allOptions.find(O=>O.value===r.value)?.value;return l.jsx(ye,{name:e,control:f,defaultValue:t,rules:s,"data-testid":M("single-select-field",e),render:({field:{value:r,onChange:O}})=>l.jsx(Ne,{allOptions:j,onSelectedValueChanged:D=>{O({allOptions:t.allOptions,selectedOption:T(D)})},valueToLabel:D=>m(D),selectedValue:r.selectedOption,disable:p,name:e,defaultMenuIsOpen:$,placeholderLabel:k})})},me=V.memo(Ae,(e,s)=>le(e,s)),L={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,s)=>`${e}.${s}`;function We({label:e,isDisabled:s,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:f,approveNotifyPlaceholder:j,allUserWithRoles:m,filteredApprovers:T,allAttributes:r,filteredAttributes:O,allAccountingClasses:D,stepsInfo:b,productType:q}){const C=H(),{commonSetUp:{approval:N}}=X.getLocalizedStrings(),A=T.length+O.length,S=m.map(o=>o.user),{control:B,setValue:F}=_(),{fields:E,replace:R}=ce({name:t,control:B}),n=()=>{const o=b[b.length-1].stepIndex,h=xe(o+1,S,r);F(t,[...b,h])},w=o=>{const h=b.filter((a,c)=>c!==o);F(t,h)};V.useEffect(()=>{const o=E.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(o,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,E,R,r]);const U=b[b.length-1],z=s!=null||A===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(Ge,{size:C,style:p,isDisabled:!1,isError:!1,children:[l.jsx(Q,{label:e.label,style:{marginRight:L.labelMarginRight.value(C),width:"auto"}}),b.map((o,h)=>l.jsxs(Ze,{labelWidth:e.width,children:[l.jsxs(Xe,{children:[h+1,"."]}),l.jsx(Ye,{children:l.jsx(me,{name:J(`${t}.${o.stepIndex}`,"stepType"),value:o.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&o.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||s!=null},placeholderLabel:j})}),l.jsxs(Ke,{children:[l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:o.stepType.selectedOption==null?f:o.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${o.stepIndex}`,"actors"),value:o.actors,operator:o.stepType!=null&&o.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)||s!=null},valueToSubtitle:a=>{const c=m.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(Y=>{const P=D.find(K=>K.classId===Y);P!=null&&P.className&&y.push(P.className)})}return y}}),o.stepIndex>0&&l.jsx(Je,{onClick:()=>w(h)})]})]},E[h]?.id||h)),l.jsx(Qe,{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,s,t)=>({stepIndex:e,actors:{allUsers:s,selectedUsers:[],allNonUsers:te(t),selectedNonUsers:[]},stepType:{allOptions:re,selectedOption:void 0}}),te=e=>{const s=X.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(t=>({label:s[t].label,value:t,position:"top",subtitles:[s[t].subTitle]}))},re=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],Ge=d.div`
228
+ `,_e=()=>null,qe=()=>null,Ae=({name:e,registerOptions:s,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:f}=_(),j=t.allOptions.map(r=>r.value??""),m=r=>t.allOptions.filter(L=>L.value===r)[0]?.label??"",T=r=>t.allOptions.find(L=>L.value===r.value)?.value;return l.jsx(ye,{name:e,control:f,defaultValue:t,rules:s,"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:T(D)})},valueToLabel:D=>m(D),selectedValue:r.selectedOption,disable:p,name:e,defaultMenuIsOpen:$,placeholderLabel:k})})},me=V.memo(Ae,(e,s)=>le(e,s)),O={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,s)=>`${e}.${s}`;function We({label:e,isDisabled:s,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:f,approveNotifyPlaceholder:j,allUserWithRoles:m,filteredApprovers:T,allAttributes:r,filteredAttributes:L,allAccountingClasses:D,stepsInfo:b,productType:q}){const C=H(),{commonSetUp:{approval:N}}=X.getLocalizedStrings(),A=T.length+L.length,S=m.map(o=>o.user),{control:B,setValue:F}=_(),{fields:E,replace:R}=ce({name:t,control:B}),n=()=>{const o=b[b.length-1].stepIndex,h=xe(o+1,S,r);F(t,[...b,h])},w=o=>{const h=b.filter((a,c)=>c!==o);F(t,h)};V.useEffect(()=>{const o=E.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(o,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,E,R,r]);const U=b[b.length-1],z=s!=null||A===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(Ge,{size:C,style:p,isDisabled:!1,isError:!1,children:[l.jsx(Q,{label:e.label,style:{marginRight:O.labelMarginRight.value(C),width:"auto"}}),b.map((o,h)=>l.jsxs(Ze,{labelWidth:e.width,children:[l.jsxs(Xe,{children:[h+1,"."]}),l.jsx(Ye,{children:l.jsx(me,{name:J(`${t}.${o.stepIndex}`,"stepType"),value:o.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&o.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||s!=null},placeholderLabel:j})}),l.jsxs(Ke,{children:[l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:o.stepType.selectedOption==null?f:o.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${o.stepIndex}`,"actors"),value:o.actors,operator:o.stepType!=null&&o.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)||s!=null},valueToSubtitle:a=>{const c=m.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(Y=>{const P=D.find(K=>K.classId===Y);P!=null&&P.className&&y.push(P.className)})}return y}}),o.stepIndex>0&&l.jsx(Je,{onClick:()=>w(h)})]})]},E[h]?.id||h)),l.jsx(Qe,{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,s,t)=>({stepIndex:e,actors:{allUsers:s,selectedUsers:[],allNonUsers:te(t),selectedNonUsers:[]},stepType:{allOptions:re,selectedOption:void 0}}),te=e=>{const s=X.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(t=>({label:s[t].label,value:t,position:"top",subtitles:[s[t].subTitle]}))},re=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],Ge=d.div`
229
229
  display: flex;
230
230
  flex-direction: column;
231
231
  align-items: flex-start;
232
232
  background-color: ${e=>e.theme.colors.grey5};
233
- width: ${e=>L.width.valuePx(e.size)};
234
- min-height: ${e=>L.height.valuePx(e.size)};
235
- padding-left: ${e=>L.paddingLeftRight.valuePx(e.size)};
236
- padding-right: ${e=>L.paddingLeftRight.valuePx(e.size)};
237
- padding-top: ${e=>L.paddingTopBottom.valuePx(e.size)};
238
- padding-bottom: ${e=>L.paddingTopBottom.valuePx(e.size)};
233
+ width: ${e=>O.width.valuePx(e.size)};
234
+ min-height: ${e=>O.height.valuePx(e.size)};
235
+ padding-left: ${e=>O.paddingLeftRight.valuePx(e.size)};
236
+ padding-right: ${e=>O.paddingLeftRight.valuePx(e.size)};
237
+ padding-top: ${e=>O.paddingTopBottom.valuePx(e.size)};
238
+ padding-bottom: ${e=>O.paddingTopBottom.valuePx(e.size)};
239
239
  gap: ${i.sp3};
240
240
 
241
241
  :first-of-type {
@@ -303,17 +303,17 @@ import{J as H,V as l,F as X,cS as _,c_ as G,e as ee,cY as Q,y as I,gg as Z,o as
303
303
  `,Xe=d.div`
304
304
  width: ${i.sp5};
305
305
  color: ${e=>e.theme.colors.hero};
306
- `;function el({label:e,isDisabled:s,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:f,approveNotifyPlaceholder:j,allUserWithRoles:m,filteredApprovers:T,allAttributes:r,filteredAttributes:O,allAccountingClasses:D,stepsInfo:b,productType:q}){const C=H(),{commonSetUp:{approval:N}}=X.getLocalizedStrings(),A=T.length+O.length,S=m.map(o=>o.user),{control:B,setValue:F}=_(),{fields:E,replace:R}=ce({name:t,control:B}),n=()=>{const o=b[b.length-1].stepIndex,h=xe(o+1,S,r);F(t,[...b,h])},w=o=>{const h=b.filter((a,c)=>c!==o);F(t,h)};V.useEffect(()=>{const o=E.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(o,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,E,R,r]);const U=b[b.length-1],z=s!=null||A===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(ll,{size:C,style:p,isDisabled:!1,isError:!1,children:[l.jsx(Q,{label:e.label,style:{marginRight:L.labelMarginRight.value(C),width:"auto"}}),b.map((o,h)=>l.jsxs(tl,{labelWidth:e.width,children:[l.jsxs(dl,{children:[h+1,"."]}),l.jsxs(al,{children:[l.jsx(me,{name:J(`${t}.${o.stepIndex}`,"stepType"),value:o.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&o.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||s!=null},placeholderLabel:j}),l.jsxs(sl,{children:[l.jsx(ol,{children:l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:o.stepType.selectedOption==null?f:o.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${o.stepIndex}`,"actors"),value:o.actors,operator:o.stepType!=null&&o.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)||s!=null},valueToSubtitle:a=>{const c=m.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(Y=>{const P=D.find(K=>K.classId===Y);P!=null&&P.className&&y.push(P.className)})}return y}})}),o.stepIndex>0&&l.jsx(rl,{onClick:()=>w(h),"data-testid":M("delete-step",h.toString())})]})]})]},E[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`
306
+ `;function el({label:e,isDisabled:s,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:f,approveNotifyPlaceholder:j,allUserWithRoles:m,filteredApprovers:T,allAttributes:r,filteredAttributes:L,allAccountingClasses:D,stepsInfo:b,productType:q}){const C=H(),{commonSetUp:{approval:N}}=X.getLocalizedStrings(),A=T.length+L.length,S=m.map(o=>o.user),{control:B,setValue:F}=_(),{fields:E,replace:R}=ce({name:t,control:B}),n=()=>{const o=b[b.length-1].stepIndex,h=xe(o+1,S,r);F(t,[...b,h])},w=o=>{const h=b.filter((a,c)=>c!==o);F(t,h)};V.useEffect(()=>{const o=E.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(o,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,E,R,r]);const U=b[b.length-1],z=s!=null||A===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(ll,{size:C,style:p,isDisabled:!1,isError:!1,children:[l.jsx(Q,{label:e.label,style:{marginRight:O.labelMarginRight.value(C),width:"auto"}}),b.map((o,h)=>l.jsxs(tl,{labelWidth:e.width,children:[l.jsxs(dl,{children:[h+1,"."]}),l.jsxs(al,{children:[l.jsx(me,{name:J(`${t}.${o.stepIndex}`,"stepType"),value:o.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&o.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||s!=null},placeholderLabel:j}),l.jsxs(sl,{children:[l.jsx(ol,{children:l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:o.stepType.selectedOption==null?f:o.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${o.stepIndex}`,"actors"),value:o.actors,operator:o.stepType!=null&&o.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)||s!=null},valueToSubtitle:a=>{const c=m.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(Y=>{const P=D.find(K=>K.classId===Y);P!=null&&P.className&&y.push(P.className)})}return y}})}),o.stepIndex>0&&l.jsx(rl,{onClick:()=>w(h),"data-testid":M("delete-step",h.toString())})]})]})]},E[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;
310
310
  background-color: ${e=>e.theme.colors.grey5};
311
- width: ${e=>L.width.valuePx(e.size)};
312
- min-height: ${e=>L.height.valuePx(e.size)};
313
- padding-left: ${e=>L.paddingLeftRight.valuePx(e.size)};
314
- padding-right: ${e=>L.paddingLeftRight.valuePx(e.size)};
315
- padding-top: ${e=>L.paddingTopBottom.valuePx(e.size)};
316
- padding-bottom: ${e=>L.paddingTopBottom.valuePx(e.size)};
311
+ width: ${e=>O.width.valuePx(e.size)};
312
+ min-height: ${e=>O.height.valuePx(e.size)};
313
+ padding-left: ${e=>O.paddingLeftRight.valuePx(e.size)};
314
+ padding-right: ${e=>O.paddingLeftRight.valuePx(e.size)};
315
+ padding-top: ${e=>O.paddingTopBottom.valuePx(e.size)};
316
+ padding-bottom: ${e=>O.paddingTopBottom.valuePx(e.size)};
317
317
  gap: ${i.sp3};
318
318
 
319
319
  :first-of-type {
@@ -1,4 +1,4 @@
1
- import{e as Ke,J as Y,a9 as _e,ay as Ee,cF as Ye,V as t,bC as Je,ac as Xe,cn as Ce,o,r as ye,F as ue,bO as Qe,aP as P,cm as Ze,b3 as et,dp as tt,ct as lt,aa as ot,T as nt,d0 as it,bF as We,aT as at,y as N,bP as se,u as $,du as ke,ai as we,cz as rt,cC as st,cS as dt,dk as je,d2 as me,bT as _,ez as Ie,ao as ct,ik as ht,al as mt,bh as gt,ih as pt,il as Oe,ci as ut,bt as wt,p as De,im as bt}from"./index-BR9aIv1A.js";import{a as C}from"./sentry-BwoJfpTa.js";import{n as i,c as Se}from"./mui-C7Q1opAD.js";import{c4 as xt,G1 as vt}from"./zeni-epic-state-Deo9yJpd.js";import"./liveblocks-B8f0lmpe.js";import"./core-B_30foAD.js";import"./recharts-v_b66Qfi.js";import"./lottie-CbICbNKh.js";import"./analytics-rms9goNI.js";import"./lexical-CcL2Fd1i.js";import"./utils-C75CTJHa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="6f8cb576-ac73-400f-93d1-3c7959e0f964",e._sentryDebugIdIdentifier="sentry-dbid-6f8cb576-ac73-400f-93d1-3c7959e0f964")}catch{}})();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:n},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:n,label:a,size:"small",style:{marginLeft:o.sp3}})]})}const yt=i.div`
1
+ import{g as Ke,J,a9 as Ee,ay as _e,cF as Je,V as t,bC as Ye,ac as Xe,cn as Ce,o,r as ye,F as ue,bO as Qe,aP as T,cm as Ze,b3 as et,dp as tt,ct as lt,aa as ot,T as nt,d0 as it,bF as We,aT as at,y as N,bP as se,u as $,du as Ie,ai as we,cz as rt,cC as st,cS as dt,dk as je,d2 as me,bT as E,ez as ke,ao as ct,ik as ht,al as mt,bh as gt,ih as pt,il as Oe,ci as ut,bt as wt,p as De,im as bt}from"./index-o0j-GZyM.js";import{a as C}from"./sentry-DmQUfSE7.js";import{n as i,c as Se}from"./mui-CAW43Z2L.js";import{c4 as xt,G1 as vt}from"./zeni-epic-state-C4Tt6Qhq.js";import"./liveblocks-BZyZbty1.js";import"./core-yiE_iOc0.js";import"./recharts-Duslqfio.js";import"./lottie-HBX4-MpS.js";import"./analytics-DH0nG_g5.js";import"./lexical-DlAOaxF0.js";import"./utils-C-XuhdQM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="9ffc971b-d7a4-4248-b730-f41a6f9ac0dc",e._sentryDebugIdIdentifier="sentry-dbid-9ffc971b-d7a4-4248-b730-f41a6f9ac0dc")}catch{}})();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=J(),{button:{label:a,onClick:n},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:n,label:a,size:"small",style:{marginLeft:o.sp3}})]})}const yt=i.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  padding-right: ${o.sp0};
@@ -20,7 +20,7 @@ import{e as Ke,J as Y,a9 as _e,ay as Ee,cF as Ye,V as t,bC as Je,ac as Xe,cn as
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,Fe=53,Lt=1,zt=["action"],Ve=e=>xt(e,zt),He=({sortConfig:e,isDisabled:l,onColumnSortConfigChanged:a})=>{const n=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:n,children:g.map(c=>{const h=l!=null||Ve(c.key)!=null;return t.jsxs(Tt,{sortDataValue:e.sortKey,actualDataValue:c.key,wrapperWidth:c.width,isSortDisabled:h,windowSize:n,children:[t.jsxs(Ft,{onClick:()=>h?null:y(c),isSortDisabled:h,"data-testid":P("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(Dt,{})})]}),h?null:t.jsx(Ot,{isSortDisabled:h,sortDataValue:e.sortKey,isVisible:e.sortKey===c.key&&e.sortKey!==fe.sortKey,children:t.jsx(Pt,{onClick:()=>{h||w(fe.sortKey,fe.sortOrder)},"data-testid":P("global-review-list-header-close-icon")})})]},c.key)})})},At=i.div`
23
+ `,{headers:be,strings:Ct}=ue.getLocalizedStrings().common,It={key:"tenants",value:be.tenants,sortOrder:"ascending",width:new N(15,15)},kt={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=[It,Rt,Nt,kt,Vt],fe={sortKey:"tenants",sortOrder:"ascending"},Gt=88,Fe=53,Lt=1,zt=["action"],Ve=e=>xt(e,zt),He=({sortConfig:e,isDisabled:l,onColumnSortConfigChanged:a})=>{const n=J(),[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:n,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:n,children:[t.jsxs(Ft,{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(Dt,{})})]}),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=i.div`
24
24
  top: ${o.sp0};
25
25
  left: ${o.sp0};
26
26
  height: ${Fe}px;
@@ -33,7 +33,7 @@ import{e as Ke,J as Y,a9 as _e,ay as Ee,cF as Ye,V as t,bC as Je,ac as Xe,cn as
33
33
  background-color: ${e=>e.theme.colors.grey4};
34
34
  position: sticky;
35
35
  margin: ${o.sp0} ${o.sp8};
36
- `,Tt=i.div`
36
+ `,Pt=i.div`
37
37
  color: ${e=>e.sortDataValue===e.actualDataValue&&!e.isSortDisabled?e.theme.colors.primary:e.theme.colors.grey1};
38
38
 
39
39
  width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
@@ -47,7 +47,7 @@ import{e as Ke,J as Y,a9 as _e,ay as Ee,cF as Ye,V as t,bC as Je,ac as Xe,cn as
47
47
  position: static;
48
48
  z-index: 0;
49
49
  box-sizing: border-box;
50
- `,Pt=i(st)`
50
+ `,Tt=i(st)`
51
51
  width: 12px;
52
52
  height: 12px;
53
53
  `,Wt=i.div`
@@ -75,7 +75,7 @@ import{e as Ke,J as Y,a9 as _e,ay as Ee,cF as Ye,V as t,bC as Je,ac as Xe,cn as
75
75
  }
76
76
  `,Ht=i(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:n,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]=n.split("."),O=parseInt(W),D=q.dirtyFields[L]?.[O]?.originalVendor===!0&&e.selectedMerchantId!==e.merchant.tenantMerchantId,J=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${pt(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(n,H,r),checkBoxValue:ce(n,H,r),defaultChecked:e.currentSelection===r},tooltipProps:{text:t.jsx(Xt,{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(n,H,ge),checkBoxValue:ce(n,H,ge),defaultChecked:e.currentSelection==="requested"},tooltipProps:{text:t.jsx(Qt,{merchant:p}),maxWidth:"360px"}}:void 0;let F=p.oldMerchantName;e.currentSelection==="originalVendor"&&e.selectedMerchantId!=null&&(F=e.selectedMerchantId);const I=C.useMemo(()=>Be(F,e.merchant,l),[e,l]),ae=()=>{k(!1),j()},xe=()=>{U(n)};return t.jsx(Ue,{windowSize:d,isActiveField:D,children:V.map((u,S)=>{switch(u.key){case"originalVendor":return t.jsx(T,{windowSize:d,wrapperWidth:u.width,children:G===!0?t.jsx(ct,{onClickAway:ae,children:t.jsx(Et,{children:t.jsx(ht,{name:de(n,"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?Jt(I.selectedOption,p,l,d,S,D,k,xe):t.jsxs(M,{className:"global-review-row-item",windowSize:d,isLastItem:S===V.length-1,children:[Ut.selectPlaceholder,t.jsx(_,{display:"block",placement:"bottom",title:t.jsx(E,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{onClick:()=>k(!0),"data-testid":P("global-review-list-row-edit-icon")})})]})},de(n,"originalVendor"));case"recommended":return t.jsx(t.Fragment,{children:t.jsx(T,{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(T,{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:!J,loading:e.approveStatus.fetchState==="In-Progress",size:"small",variant:"primary"})]})},`${n}.${u.key}`);case"requestedVendor":return t.jsx(T,{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(n,"merchantId"));case"tenants":default:return t.jsx(T,{windowSize:d,wrapperWidth:u.width,children:t.jsx(_t,{className:"global-review-row-item",windowSize:d,isLastItem:S===V.length-1,children:t.jsx(_,{display:"block",placement:"bottom-start",title:t.jsx(E,{children:p.tenantName}),children:t.jsx(Z,{children:p.tenantName})})})},de(n,"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(T,{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(T,{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(T,{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(T,{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=i.div`
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:n,isDisabled:g,analytics:m,onLoadGlobalMerchants:w,onCreateGlobalMerchant:y,onApproveGlobalReview:c,onRejectGlobalReview:h,onClearGlobalMerchantAutoCompleteResults:j})=>{const d=J(),{resetField:U,formState:q}=dt(),[G,I]=C.useState(!1),[L,W]=n.split("."),O=parseInt(W),D=q.dirtyFields[L]?.[O]?.originalVendor===!0&&e.selectedMerchantId!==e.merchant.tenantMerchantId,Y=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${pt(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(n,H,r),checkBoxValue:ce(n,H,r),defaultChecked:e.currentSelection===r},tooltipProps:{text:t.jsx(Xt,{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(n,H,ge),checkBoxValue:ce(n,H,ge),defaultChecked:e.currentSelection==="requested"},tooltipProps:{text:t.jsx(Qt,{merchant:p}),maxWidth:"360px"}}:void 0;let F=p.oldMerchantName;e.currentSelection==="originalVendor"&&e.selectedMerchantId!=null&&(F=e.selectedMerchantId);const k=C.useMemo(()=>Be(F,e.merchant,l),[e,l]),ae=()=>{I(!1),j()},xe=()=>{U(n)};return t.jsx(Ue,{windowSize:d,isActiveField:D,children:V.map((u,S)=>{switch(u.key){case"originalVendor":return t.jsx(P,{windowSize:d,wrapperWidth:u.width,children:G===!0?t.jsx(ct,{onClickAway:ae,children:t.jsx(_t,{children:t.jsx(ht,{name:de(n,"originalVendor"),defaultValue:k,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})})}):k.selectedOption!=null?Yt(k.selectedOption,p,l,d,S,D,I,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:()=>I(!0),"data-testid":T("global-review-list-row-edit-icon")})})]})},de(n,"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(ke,{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(Jt,{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:!Y,loading:e.approveStatus.fetchState==="In-Progress",size:"small",variant:"primary"})]})},`${n}.${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(ke,{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(n,"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(n,"tenantId"))}})})},Bt=()=>{const e=J();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(Ie,{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(Ie,{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=i.div`
79
79
  display: flex;
80
80
  margin-bottom: ${o.sp3};
81
81
  background-color: ${e=>e.theme.colors.grey5};
@@ -126,7 +126,7 @@ import{e as Ke,J as Y,a9 as _e,ay as Ee,cF as Ye,V as t,bC as Je,ac as Xe,cn as
126
126
  box-sizing: border-box;
127
127
  align-items: center;
128
128
  justify-content: space-between;
129
- `,T=i.div`
129
+ `,P=i.div`
130
130
  display: flex;
131
131
  align-items: center;
132
132
  position: relative;
@@ -149,11 +149,11 @@ import{e as Ke,J as Y,a9 as _e,ay as Ee,cF as Ye,V as t,bC as Je,ac as Xe,cn as
149
149
  ${Me};
150
150
  justify-content: ${e=>e.isLastItem?"flex-end":"unset"};
151
151
  display: ${e=>e.isLastItem?"flex":"inline-block"};
152
- `,_t=i(ut)`
152
+ `,Et=i(ut)`
153
153
  ${Me};
154
154
  justify-content: ${e=>e.isLastItem?"flex-end":"unset"};
155
155
  display: ${e=>e.isLastItem?"flex":"inline-block"};
156
- `,E=i(we)`
156
+ `,_=i(we)`
157
157
  padding: 2px ${o.sp2};
158
158
  color: ${e=>e.theme.colors.hero};
159
159
  background: ${e=>e.theme.colors.overlayColor};
@@ -184,7 +184,7 @@ import{e as Ke,J as Y,a9 as _e,ay as Ee,cF as Ye,V as t,bC as Je,ac as Xe,cn as
184
184
  text-align: center;
185
185
  align-items: center;
186
186
  overflow: hidden;
187
- `,Et=i.div`
187
+ `,_t=i.div`
188
188
  display: flex;
189
189
  width: 100%;
190
190
  `,qe=i.div`
@@ -210,12 +210,12 @@ import{e as Ke,J as Y,a9 as _e,ay as Ee,cF as Ye,V as t,bC as Je,ac as Xe,cn as
210
210
  `,le=i(we)`
211
211
  color: ${De.heroDark};
212
212
  white-space: nowrap;
213
- `,Yt=i.div`
213
+ `,Jt=i.div`
214
214
  margin-right: ${e=>e.space};
215
215
  `,ze=i.div`
216
216
  display: flex;
217
217
  gap: ${o.sp2};
218
- `,Be=(e,l,a)=>{const n=a.find(m=>m.globalMerchantId===e),g=l.tenantMerchantId===e?{label:l.tenantMerchantName,value:l.tenantMerchantId}:n!=null?{label:n.globalMerchantName,value:n.globalMerchantId}:void 0;return g!=null?{defaultOptions:[g],selectedOption:e}:{defaultOptions:[],selectedOption:e}},Jt=(e,l,a,n,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:n,isLastItem:!1,children:f.strings.hyphen}),t.jsxs(Le,{children:[t.jsx(_,{display:"block",placement:"bottom",title:t.jsx(E,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":P("global-review-list-row-edit-icon")})}),m?t.jsx(_,{display:"block",placement:"bottom",title:t.jsx(E,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Ge,{className:"reset-icon",onClick:y,"data-testid":P("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(n),height:s.vendorNameLogoHeightAndWidth.valuePx(n),marginRight:s.logoToValueGap.valuePx(n)},placeholder:{width:s.vendorNameLogoHeightAndWidth.value(n),height:s.vendorNameLogoHeightAndWidth.value(n),style:{marginRight:s.logoToValueGap.valuePx(n)}},fallbackAvatar:t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(n)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(n)})})}):t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(n)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(n)})}),t.jsxs(Le,{children:[t.jsx(M,{className:"global-review-row-item",windowSize:n,isLastItem:g===V.length-1,children:t.jsx(_,{display:"block",placement:"bottom-start",title:t.jsx(E,{children:h.name}),children:t.jsx(Z,{children:h.name})})}),t.jsx(_,{display:"block",placement:"bottom",title:t.jsx(E,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":P("global-review-list-row-edit-icon-tooltip")})}),m?t.jsx(_,{display:"block",placement:"bottom",title:t.jsx(E,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Ge,{className:"reset-icon",onClick:y})}):null]})]})},Xt=({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":P("global-review-list-row-website-url-tooltip-website-url"),children:e.websiteUrl?.toString()})]}):null]}),Qt=({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":P("global-review-list-row-website-url-tooltip"),children:l})]}):null]})},Zt=({sortConfig:e,fetchState:l,isDisabled:a,onColumnSortConfigChanged:n})=>{const g=Y();return t.jsxs(el,{windowSize:g,children:[t.jsx(He,{sortConfig:e,isDisabled:l==="In-Progress"?"readonly":a,onColumnSortConfigChanged:n}),t.jsx(tl,{windowSize:g,children:[...Array(7)].map((m,w)=>t.jsx(Bt,{},w))})]})},el=i.div`
218
+ `,Be=(e,l,a)=>{const n=a.find(m=>m.globalMerchantId===e),g=l.tenantMerchantId===e?{label:l.tenantMerchantName,value:l.tenantMerchantId}:n!=null?{label:n.globalMerchantName,value:n.globalMerchantId}:void 0;return g!=null?{defaultOptions:[g],selectedOption:e}:{defaultOptions:[],selectedOption:e}},Yt=(e,l,a,n,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:n,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(n),height:s.vendorNameLogoHeightAndWidth.valuePx(n),marginRight:s.logoToValueGap.valuePx(n)},placeholder:{width:s.vendorNameLogoHeightAndWidth.value(n),height:s.vendorNameLogoHeightAndWidth.value(n),style:{marginRight:s.logoToValueGap.valuePx(n)}},fallbackAvatar:t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(n)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(n)})})}):t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(n)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(n)})}),t.jsxs(Le,{children:[t.jsx(M,{className:"global-review-row-item",windowSize:n,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]})]})},Xt=({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]}),Qt=({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:n})=>{const g=J();return t.jsxs(el,{windowSize:g,children:[t.jsx(He,{sortConfig:e,isDisabled:l==="In-Progress"?"readonly":a,onColumnSortConfigChanged:n}),t.jsx(tl,{windowSize:g,children:[...Array(7)].map((m,w)=>t.jsx(Bt,{},w))})]})},el=i.div`
219
219
  display: block;
220
220
  min-height: 100%;
221
221
  flex-direction: column;
@@ -224,7 +224,7 @@ import{e as Ke,J as Y,a9 as _e,ay as Ee,cF as Ye,V as t,bC as Je,ac as Xe,cn as
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:n,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(()=>{n==="Completed"&&O(!1)},[n]);const D=x=>Gt,J=(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&&n==="Completed"&&p()},oe=x=>{const v=e.find(I=>I.merchant.tenantMerchantId===x),F=l.find(I=>I.globalMerchantId===v?.selectedMerchantId);v?.currentSelection!="requested"||F!=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:n==="Error"?t.jsxs(dl,{windowSize:k,children:[t.jsx(cl,{"data-testid":P("global-review-list-table-reload-icon"),onClick:()=>j("",!1,null),children:t.jsx(Qe,{})}),t.jsx(hl,{children:ll.reloadPage.label})]}):n==="Completed"&&e.length===0?t.jsx(Ze,{message:m.searchText?Ae.noMatchedDataText:Ae.noDataText,style:{padding:o.sp0}}):n==="Not-Started"||n==="In-Progress"&&e.length===0?t.jsx(Zt,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:w,fetchState:n,onColumnSortConfigChanged:J}):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:F})=>t.jsxs(gl,{style:{height:x,width:v},children:[t.jsx(il,{children:t.jsx(He,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:n==="In-Progress"?"readonly":w,onColumnSortConfigChanged:J})}),t.jsx(lt,{ref:L,height:x-Fe,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:F,itemSize:D,width:v,style:{willChange:"auto"},overscanCount:Lt,onScroll:({scrollOffset:I})=>{h({scrollYOffset:I})},initialScrollOffset:m.scrollYOffset,children:nl})]})})})})}),t.jsx(ot,{controller:W===!0,children:t.jsx(pl,{children:t.jsx(nt,{size:"Small",start:!0})})})]})},nl=({index:e,style:l,data:a})=>{const{analytics:n,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:n},G.merchant.tenantMerchantId)})},il=i.div`
227
+ `,{common:ll,vendorReview:{globalReview:{globalMerchantList:Ae}}}=ue.getLocalizedStrings(),ol=({vendorGlobalReviewList:e,allGlobalMerchants:l,sectionId:a,listFetchState:n,globalMerchantAutoCompleteView:g,uiState:m,isDisabled:w,analytics:y,onLoadGlobalMerchants:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:j,onCreateGlobalMerchant:d,onApproveGlobalMerchantReview:U,onRejectGlobalMerchantReview:q,onClearGlobalMerchantAutoCompleteResults:G})=>{const I=J(),L=C.useRef(null),[W,O]=C.useState(!1);C.useEffect(()=>{L.current?.resetAfterIndex(0)},[I,L]),C.useEffect(()=>{n==="Completed"&&O(!1)},[n]);const D=x=>Gt,Y=(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&&n==="Completed"&&p()},oe=x=>{const v=e.find(k=>k.merchant.tenantMerchantId===x),F=l.find(k=>k.globalMerchantId===v?.selectedMerchantId);v?.currentSelection!="requested"||F!=null&&v?.currentSelection=="requested"?U(x):v!=null&&d(x,v.merchant.tenantMerchantName,v.merchant.websiteUrl)};return t.jsxs(al,{windowSize:I,children:[t.jsx(rl,{windowSize:I,children:n==="Error"?t.jsxs(dl,{windowSize:I,children:[t.jsx(cl,{"data-testid":T("global-review-list-table-reload-icon"),onClick:()=>j("",!1,null),children:t.jsx(Qe,{})}),t.jsx(hl,{children:ll.reloadPage.label})]}):n==="Completed"&&e.length===0?t.jsx(Ze,{message:m.searchText?Ae.noMatchedDataText:Ae.noDataText,style:{padding:o.sp0}}):n==="Not-Started"||n==="In-Progress"&&e.length===0?t.jsx(Zt,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:w,fetchState:n,onColumnSortConfigChanged:Y}):t.jsx(sl,{windowSize:I,children:t.jsx(et,{children:({height:x,width:v})=>t.jsx(tt,{isItemLoaded:B,itemCount:e.length+1,loadMoreItems:K,children:({onItemsRendered:F})=>t.jsxs(gl,{style:{height:x,width:v},children:[t.jsx(il,{children:t.jsx(He,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:n==="In-Progress"?"readonly":w,onColumnSortConfigChanged:Y})}),t.jsx(lt,{ref:L,height:x-Fe,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:F,itemSize:D,width:v,style:{willChange:"auto"},overscanCount:Lt,onScroll:({scrollOffset:k})=>{h({scrollYOffset:k})},initialScrollOffset:m.scrollYOffset,children:nl})]})})})})}),t.jsx(ot,{controller:W===!0,children:t.jsx(pl,{children:t.jsx(nt,{size:"Small",start:!0})})})]})},nl=({index:e,style:l,data:a})=>{const{analytics:n,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:n},G.merchant.tenantMerchantId)})},il=i.div`
228
228
  width: auto;
229
229
  `,al=i.div`
230
230
  display: block;
@@ -280,7 +280,7 @@ import{e as Ke,J as Y,a9 as _e,ay as Ee,cF as Ye,V as t,bC as Je,ac as Xe,cn as
280
280
  align-items: center;
281
281
  margin-top: ${o.sp3};
282
282
  margin-bottom: ${o.sp3};
283
- `,{common:{sectionTitles:ul},vendorReview:{globalReview:{globalMerchantList:Te}}}=ue.getLocalizedStrings(),wl="globalReviewListPage",he="globalReviewListTable",Gl=({vendorGlobalReviewView:e,globalMerchantAutoCompleteView:l,analytics:a,isDisabled:n,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:D}=e,{globalMerchants:J,fetchState:p}=l,B=_e({mode:"all",reValidateMode:"onChange",defaultValues:Pe(L,W),values:Pe(L,W),resetOptions:{keepDirtyValues:!0}}),[K,oe]=C.useState(O.searchText),x=C.useRef(),v=r=>{j(r,!1,null)},F=r=>{const b=L.find(z=>z.merchant.tenantMerchantId===r);if(b!=null){const z=W.find(Q=>Q.globalMerchantId===b.selectedMerchantId),X=b.recommendations,{tenantName:re,oldMerchantName:ne,tenantMerchantName:ie}=b.merchant,R=z?.globalMerchantName??ie,A=X[0];a.trackVendorReviewApproveRequested({reviewSource:"global_review",tenantName:re,requestedVendorName:ie,originalVendorName:ne,approveVendorName:R,isGlobalVendorRequested:z!=null,isNewCreatedVendorRequested:!1,isVendorNameRecommendationSelected:b.currentSelection==="recommendedFirst"||b.currentSelection==="recommendedSecond",isVendorNameChangedAndSelected:R!==ie,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(Ee(r=>v(r),500,{trailing:!0})).current;C.useEffect(()=>{D==="Completed"&&a.trackVendorReviewPage("global_review",O.totalCount)},[D]),C.useEffect(()=>{p==="Completed"&&x.current?.(fl(J))},[p]);const ae=(r,b)=>{c(r),x.current=b},xe=()=>{},u=async(r,b,z)=>{const{globalReviewListTable:X}=b,re=parseInt(r.split(".")[1]),ne=X[re].merchantId;if(z==null){g(ne,{recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:!1},ne);return}if(r.includes(he)){const ie=parseInt(r.split(".")[1]),R={...b[he][ie]};let A=R[H],Q;R.merchantId!=null&&(r.includes(Re)?(A={recommendedFirst:R[H].recommendedFirst,recommendedSecond:!1,originalVendor:!1,requested:!1},Q=R[Re]?.globalMerchantId):r.includes(Ne)?(A={recommendedFirst:!1,recommendedSecond:R[H].recommendedSecond,originalVendor:!1,requested:!1},Q=R[Ne]?.globalMerchantId):r.includes(ge)?(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:R[H].requested},Q=R[ge]):r.includes(ve)&&(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!0,requested:!1})),g(ne,A,r.includes(ve)?X[re][ve].selectedOption:Q)}};C.useEffect(()=>{const r=B.watch((b,{name:z,type:X})=>{z!=null&&b!=null&&Ye(()=>u(z,b,X))});return()=>{r.unsubscribe()}});const S=t.jsx(ft,{button:{label:ul.newVendor,onClick:()=>y()},search:{searchText:K,hide:!1,isOpen:K.length>0,placeHolder:Te.searchPlaceholder,onTextChange:r=>{oe(r),r.trim().length>=2?I(r):r.trim().length==0&&I("")}}});return t.jsxs(bl,{children:[t.jsx(Je,{title:Te.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(Xe,{...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:n,listFetchState:D,sectionId:he,onLoadGlobalMerchants:ae,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:j,onCreateGlobalMerchant:y,onApproveGlobalMerchantReview:F,onRejectGlobalMerchantReview:w,onClearGlobalMerchantAutoCompleteResults:d,analytics:a})})})})]})},bl=i.div`
283
+ `,{common:{sectionTitles:ul},vendorReview:{globalReview:{globalMerchantList:Pe}}}=ue.getLocalizedStrings(),wl="globalReviewListPage",he="globalReviewListTable",Gl=({vendorGlobalReviewView:e,globalMerchantAutoCompleteView:l,analytics:a,isDisabled:n,onUpdateSelectedGlobalMerchant:g,onApproveGlobalReview:m,onRejectGlobalReview:w,onCreateGlobalMerchant:y,onFetchGlobalMerchantAutoCompleteResults:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:j,onClearGlobalMerchantAutoCompleteResults:d,onBackClick:U,onClickMenuIcon:q})=>{const G=Ke(),I=J(),{vendorGlobalReviewData:L,allGlobalMerchants:W,uiState:O,fetchState:D}=e,{globalMerchants:Y,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)},F=r=>{const b=L.find(z=>z.merchant.tenantMerchantId===r);if(b!=null){const z=W.find(Q=>Q.globalMerchantId===b.selectedMerchantId),X=b.recommendations,{tenantName:re,oldMerchantName:ne,tenantMerchantName:ie}=b.merchant,R=z?.globalMerchantName??ie,A=X[0];a.trackVendorReviewApproveRequested({reviewSource:"global_review",tenantName:re,requestedVendorName:ie,originalVendorName:ne,approveVendorName:R,isGlobalVendorRequested:z!=null,isNewCreatedVendorRequested:!1,isVendorNameRecommendationSelected:b.currentSelection==="recommendedFirst"||b.currentSelection==="recommendedSecond",isVendorNameChangedAndSelected:R!==ie,wasRecommendationAvailable:!!A?.globalMerchantName,approveVendorReason:z?.reason??null,approveVendorNameSelectionSource:R===A?.globalMerchantName?"recommendation":"text_edit",recommendedVendorName:A?.globalMerchantName??null,recommendedVendorReason:A?.reason??null})}m(r)},k=C.useRef(_e(r=>v(r),500,{trailing:!0})).current;C.useEffect(()=>{D==="Completed"&&a.trackVendorReviewPage("global_review",O.totalCount)},[D]),C.useEffect(()=>{p==="Completed"&&x.current?.(fl(Y))},[p]);const ae=(r,b)=>{c(r),x.current=b},xe=()=>{},u=async(r,b,z)=>{const{globalReviewListTable:X}=b,re=parseInt(r.split(".")[1]),ne=X[re].merchantId;if(z==null){g(ne,{recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:!1},ne);return}if(r.includes(he)){const ie=parseInt(r.split(".")[1]),R={...b[he][ie]};let A=R[H],Q;R.merchantId!=null&&(r.includes(Re)?(A={recommendedFirst:R[H].recommendedFirst,recommendedSecond:!1,originalVendor:!1,requested:!1},Q=R[Re]?.globalMerchantId):r.includes(Ne)?(A={recommendedFirst:!1,recommendedSecond:R[H].recommendedSecond,originalVendor:!1,requested:!1},Q=R[Ne]?.globalMerchantId):r.includes(ge)?(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:R[H].requested},Q=R[ge]):r.includes(ve)&&(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!0,requested:!1})),g(ne,A,r.includes(ve)?X[re][ve].selectedOption:Q)}};C.useEffect(()=>{const r=B.watch((b,{name:z,type:X})=>{z!=null&&b!=null&&Je(()=>u(z,b,X))});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?k(r):r.trim().length==0&&k("")}}});return t.jsxs(bl,{children:[t.jsx(Ye,{title:Pe.navBarTitle,backgroundColor:G.colors.grey4,onBackClick:U,rightSideComponent:S,showMenuIcon:I==="medium-compact"||I==="small",onClickMenuIcon:q,source:"GlobalReviewListPage"}),t.jsx(xl,{children:t.jsx(Xe,{...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:n,listFetchState:D,sectionId:he,onLoadGlobalMerchants:ae,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:j,onCreateGlobalMerchant:y,onApproveGlobalMerchantReview:F,onRejectGlobalMerchantReview:w,onClearGlobalMerchantAutoCompleteResults:d,analytics:a})})})})]})},bl=i.div`
284
284
  display: flex;
285
285
  min-height: 100%;
286
286
  width: 100%;
@@ -288,4 +288,4 @@ import{e as Ke,J as Y,a9 as _e,ay as Ee,cF as Ye,V as t,bC as Je,ac as Xe,cn as
288
288
  background-color: ${e=>e.theme.colors.grey4};
289
289
  `,xl=i.div`
290
290
  display: flex;
291
- `,vl=e=>`${e}_form`,Pe=(e,l)=>({[he]:e.map(a=>{const{merchant:n}=a;let g=n.oldMerchantName;return a.currentSelection==="originalVendor"&&a.selectedMerchantId!=null&&(g=a.selectedMerchantId),{tenantId:n.tenantId,merchantId:n.tenantMerchantId,originalVendor:Be(g,n,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:n.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:n}=a;let g=n.oldMerchantName;return a.currentSelection==="originalVendor"&&a.selectedMerchantId!=null&&(g=a.selectedMerchantId),{tenantId:n.tenantId,merchantId:n.tenantMerchantId,originalVendor:Be(g,n,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:n.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};