@zeniai/web-cockpit-ui 1.14.99-qa → 1.15.0-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 (326) hide show
  1. package/dist/assets/ACHDetailsPage-DYlcHRQe-lxtPXqrl.js +21 -0
  2. package/dist/assets/{AIPerformancePage-4v4Fkm9f-DUcsUVHO.js → AIPerformancePage-DpXZ7sco-B8d5E6QI.js} +107 -107
  3. package/dist/assets/AccountInfoPage-BEOrrVQS-L5aJOIaA.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-Dv1IPcdF-wIa9sgDk.js → AccountInfoPageContent-BJkLJK6O-CmMcM25y.js} +23 -23
  5. package/dist/assets/AccountLockedInfoModal-BeLLlH_Y-DAQUptbF.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DYKjrPwN-CVe_BGr2.js → AccountReconDetailsDrawerPage-D2Hx_l3u-BYxEEZJn.js} +12 -12
  7. package/dist/assets/{AccountRow-BM3xLbeh-C9nPMFva.js → AccountRow-B0gU16A_-Ks_Pft1z.js} +25 -25
  8. package/dist/assets/{AccountsPromoCardStack-CTkwARBJ-DDt_Zemi.js → AccountsPromoCardStack-CuLhbb_W-BwlxSNV8.js} +28 -28
  9. package/dist/assets/AddAddressForCardDrawer-CNkdq378-DvUXwFrO.js +6 -0
  10. package/dist/assets/{AddToWalletPage-OJBvAKUj-XVOfQuES.js → AddToWalletPage-DNPLnpTq-CxRyEwld.js} +23 -23
  11. package/dist/assets/{AgingReportsPage-n-UKn3Ei-CjF9jy-F.js → AgingReportsPage-Bff4u7T1-DOBvEqCj.js} +10 -10
  12. package/dist/assets/{AllUserItems-BsvKEVcx-vYDMuwob.js → AllUserItems-D8zdAu_1-C-zZqgmo.js} +10 -10
  13. package/dist/assets/ApAgingDetailPage-2NsAj3gO-DfogwLMb.js +46 -0
  14. package/dist/assets/{AppBasePage-DoCF494Z-BRxN6hsW.js → AppBasePage-Uyk9GOud-D7f8hWuo.js} +8 -8
  15. package/dist/assets/{AppDrawerContent-DM1t0oLS--F7ZXSDX.js → AppDrawerContent-RX7rx40V-DlBxQF_L.js} +6 -6
  16. package/dist/assets/{ApprovalRulesSettingsPage-GZCo6_i2-NDfqC6oW.js → ApprovalRulesSettingsPage-BKxa78xI-BrpnOxmu.js} +6 -6
  17. package/dist/assets/{ArAgingChart-CsFDVdeO-_8aNigLw.js → ArAgingChart-BxTkvrC9-BgC5YBPR.js} +4 -4
  18. package/dist/assets/ArAgingDetailPage-CnUgFF1M-Bb_-bJZp.js +46 -0
  19. package/dist/assets/{AttachmentView-B0d42oAf-Dwm5X4k6.js → AttachmentView-zHGhIkWo-C64qXCAp.js} +6 -6
  20. package/dist/assets/{BankAccountSection-Bgdk93V0-Chzpiy1x.js → BankAccountSection-HRSyjIxV-CV6PAaFg.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-DMRmF2yM-BdJjldMh.js → BankAccountWarningSection-CNusQFRM-4Y94-VD5.js} +7 -7
  22. package/dist/assets/{BankConnectionsSettingsPage-BpwKq93l-BN6MQ3Wf.js → BankConnectionsSettingsPage-CzumYsEx-f1xJXYSm.js} +22 -22
  23. package/dist/assets/BillDetailPage-CgCMZFw1-pAtGUG0W.js +266 -0
  24. package/dist/assets/BillPayApprovalRuleDetailPage-DnhdBw3a-BtwlYdoz.js +27 -0
  25. package/dist/assets/BillPayApprovalRulesPage-S80WUW0f-Cw75zLq9.js +241 -0
  26. package/dist/assets/BillPayPromoPage-DOEbuNgH-BglT_61W.js +84 -0
  27. package/dist/assets/{BillPaySetUpPage-DRCjyEfB-CPwXijdB.js → BillPaySetUpPage-Tb-gBoFT-Po5Zl1ZL.js} +4 -4
  28. package/dist/assets/BillingSettingsPage-ZupDcNHz-B6O6l_7B.js +44 -0
  29. package/dist/assets/{BillsBulkReviewDrawerPage-D8EGfY5P-CpoIPy5L.js → BillsBulkReviewDrawerPage-CJrUtHKz-B78eSann.js} +1 -1
  30. package/dist/assets/{BoxItem-WOrvBzns-CXp5-zCF.js → BoxItem-42doFhpg-BDC_fDqi.js} +5 -5
  31. package/dist/assets/BusinessVerificationPage-De9zCAm7-geq4Sk8A.js +138 -0
  32. package/dist/assets/CardNumberSubText-C6jdBRC2-YbNbzp0H.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-D-kXy6LW-CVfqswmT.js → CashbackDetailPage-B2drd1Nz-BAvHe1xx.js} +27 -27
  34. package/dist/assets/{ChargeCardDetailPage-BQnJsfn5-nORZSqLY.js → ChargeCardDetailPage-bk-pzoDR-DTGxBulo.js} +254 -254
  35. package/dist/assets/ChargeCardListPage-DlI8ZfB0-CMLNFzih.js +412 -0
  36. package/dist/assets/{ChargeCardListTable-EGkwcy7i-L1WMinl5.js → ChargeCardListTable-CooASbVZ-CSvbg9sF.js} +71 -71
  37. package/dist/assets/ChargeCardPaymentHistoryPage-DnxJwv-T-SsEma55z.js +553 -0
  38. package/dist/assets/{ChargeCardPromoPage-BwqrXrY--Cc4CzTaW.js → ChargeCardPromoPage-DBSmL-ms-DBZo83zK.js} +38 -38
  39. package/dist/assets/{ChargeCardSetupPage-DRzB7Rt4-Dp9uDn2Z.js → ChargeCardSetupPage-cou3N3Iv-BSBfzNx6.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-C3NxKjmB-jXnZgPWF.js → ChargeCardStatementsPage-Z05M_t51-O2I36ZAe.js} +9 -9
  41. package/dist/assets/{CheckDepositDrawerPage-ClxKj2js-BOtwhkHh.js → CheckDepositDrawerPage-B-bTb9ct-CleglNSV.js} +18 -18
  42. package/dist/assets/{CollapsableReportTable-xkNXkjfh-fTkLh_hx.js → CollapsableReportTable-DLOi0feI-SZFbl9NV.js} +41 -41
  43. package/dist/assets/CompanyOfficerDetailsSection-DVpqCb72-DOikAEBj.js +330 -0
  44. package/dist/assets/{CompanyPassportCard-BOxM716U-C-8IS15c.js → CompanyPassportCard-B8PLT6MG-BUc5HZU7.js} +7 -7
  45. package/dist/assets/CompanyPassportPage-CQZPgrNF-KJN_fT4M.js +347 -0
  46. package/dist/assets/{CompleteProfile-BjGSPASa-BJc80ypG.js → CompleteProfile-fNSWTbef-pSYliRNx.js} +3 -3
  47. package/dist/assets/ConfettiBurst-B6ej_xoO-BzptsIBR.js +1 -0
  48. package/dist/assets/{CreateOrEditVendorPage-WQeDCj-E-BNAzVQDc.js → CreateOrEditVendorPage-BO4_TNWg-EUNhPwxD.js} +17 -17
  49. package/dist/assets/CreditCardPaymentDrawerPage-CsHjU-sm-BX_z_XTl.js +227 -0
  50. package/dist/assets/{CurrencySelectField-AjAWhg6e-XBhQHgG3.js → CurrencySelectField-DsZTOj_T-DmNXNRTP.js} +5 -5
  51. package/dist/assets/{CustomerOnboardingActivationPage-BJhw-PvI-DiGnLxj5.js → CustomerOnboardingActivationPage-Cvdehiay-Ci2xJTUc.js} +29 -29
  52. package/dist/assets/CustomerOnboardingContainerPage-ZVvSCumS-nk4WVXpw.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-mvqO2b3D.js → CustomerOnboardingDetailPageSkeleton-DrfNm65u-Bi4SumgH.js} +14 -14
  54. package/dist/assets/CustomerOnboardingNoStepsPage-CtIWYEfR-CA6QH1RJ.js +66 -0
  55. package/dist/assets/CustomerOnboardingPage-Db6sGSGl-C--ab3S1.js +107 -0
  56. package/dist/assets/CustomerOnboardingProductSuitePage-DHSPLF5F-BeorfiRM.js +202 -0
  57. package/dist/assets/{Dashboard-_o0Ftdv8-CDqjjP2e.js → Dashboard-cbXIPzMy-DLCpLMr4.js} +21 -21
  58. package/dist/assets/{DashboardReportPage-Cu5wqWkj-DFUvXwPl.js → DashboardReportPage-Pc0G2Tok-BRmpg3ok.js} +28 -28
  59. package/dist/assets/DashboardSidebarBackgroundAnimation-CSzhyK4K-DW7vdml5.js +12 -0
  60. package/dist/assets/{DepositAccTransactionItem-BOPK7-7P-DMX2MMgq.js → DepositAccTransactionItem-XvCjkHDS-DQ2tNEjM.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-oj9tntbI-9RjTUtB-.js → DepositAccTransactionListPage-DqPIPHi9-DnAhb4M6.js} +2 -2
  62. package/dist/assets/{DomesticWireDetailsPage-FGdEilUB--8ykG62O.js → DomesticWireDetailsPage-DjUvG0tD-BhbPV8HA.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-c57lEf_V-bd6stznG.js → DownloadOverlay-C7r6PAam-BvXPoC9j.js} +25 -25
  64. package/dist/assets/{DrawerPage-inbhWwND-T1v5rbMQ.js → DrawerPage-BEV7nWrL-CqfdeYhP.js} +18 -18
  65. package/dist/assets/EditPeoplePage-BnQqStEx-Cbm0H-hi.js +55 -0
  66. package/dist/assets/EditReimbursementDetailPage-DLjRDR48-DAmxctvz.js +865 -0
  67. package/dist/assets/{EntityDetailPage-DbTiF9Hs-BDSzDuf0.js → EntityDetailPage-BaKoO9FG-BDiZrnyD.js} +2 -2
  68. package/dist/assets/{EntitySummarySection-CHgrPo86-DCLGdQrf.js → EntitySummarySection-C361-4tS-UJPRLBoI.js} +13 -13
  69. package/dist/assets/{ExpenseAutomationOverviewPage-QZT_UFXf-PT7ngRRs.js → ExpenseAutomationOverviewPage-BLvAzAmO-JyE5jYzJ.js} +30 -30
  70. package/dist/assets/{ExpenseAutomationPage-Y7V_Z8rd-C6AraAtl.js → ExpenseAutomationPage-CE_qMXSG-DlDCSSSs.js} +58 -58
  71. package/dist/assets/{ExpressPayPage-CIp_R6ZQ-CBlwPWei.js → ExpressPayPage-CDowSjHC-DolGHHJS.js} +14 -14
  72. package/dist/assets/{FeaturePreviewPage-qsUO3mUu-Rwf8tTxB.js → FeaturePreviewPage-DsJEfObK-B9lh1mEQ.js} +2 -2
  73. package/dist/assets/{FollowStepsSection-ebmR-eLP-DoIxQlf0.js → FollowStepsSection-h449vQkQ-BXixJ0VK.js} +8 -8
  74. package/dist/assets/{GlobalReviewListPage-9V-xoqvs-VS2DUZKK.js → GlobalReviewListPage-DGOKRsKI-CAnqX1u0.js} +18 -18
  75. package/dist/assets/{InformationCardStack-DnB7TmOk-Cw6GDJcT.js → InformationCardStack-xhdujEcL-COTShhF9.js} +9 -9
  76. package/dist/assets/{InsightsCardStack-BBczCYEz-c7iZPQzY.js → InsightsCardStack-zRynyTFj-CqnhwImM.js} +9 -9
  77. package/dist/assets/InsightsSection-C4fMfxQ4-BGGNiljS.js +27 -0
  78. package/dist/assets/{IntegrationsSettingsPage-CByj2tO4-Cu1qCaSF.js → IntegrationsSettingsPage-fqQsGUmw-CRKZpnAv.js} +5 -5
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-4-pl1ozv-FMNGU2_9.js → InternationalWireSwiftDetailsPage-CIMxKADX-CYl4ll0M.js} +22 -22
  80. package/dist/assets/InternationalWireVerificationPage-DpmSzzre-gDdhOqko.js +65 -0
  81. package/dist/assets/{InviteFormPage-XsnZcAvb-C7pXISKZ.js → InviteFormPage-C7fxnyMS-ChsV2A2J.js} +37 -37
  82. package/dist/assets/{InvitePageListView-HfsehyxK-B0_zaBFS.js → InvitePageListView-ktOXziSw-ClMd1Rgx.js} +67 -67
  83. package/dist/assets/InvitePeoplePage-C_4adNch-DPbyAjsn.js +12 -0
  84. package/dist/assets/{InvoiceUploadSection-DPd4VmqZ-CRiQw4ob.js → InvoiceUploadSection-W4vdQGvo-DAuF5vcp.js} +5 -5
  85. package/dist/assets/{IssueChargeCardPage-xbfFhV0O-CwB3p9IN.js → IssueChargeCardPage-CdV757XH-B0b8pyku.js} +19 -19
  86. package/dist/assets/{LabeledAddressValue-CB_KH7v5-CTa2kSF8.js → LabeledAddressValue-Ce_wDml5-CoYtFscl.js} +2 -2
  87. package/dist/assets/{LabeledAddressValueField-Bt41wdNQ-CaMqjCgZ.js → LabeledAddressValueField-BrYbXck--8qVwdGMU.js} +5 -5
  88. package/dist/assets/LabeledControlledCheckBoxField-f2c-AeS4-DagKbuzo.js +16 -0
  89. package/dist/assets/LabeledCountryMultiSelectField-BLOMdq_H-CLNHA2Sp.js +234 -0
  90. package/dist/assets/{LabeledCreatableSingleSelectField-fycRE7PX-BMOfzbkc.js → LabeledCreatableSingleSelectField-BWuogpe6-DITM3Hn0.js} +4 -4
  91. package/dist/assets/LabeledDocumentField-Ch2zD7s7-Nw7bBUJi.js +41 -0
  92. package/dist/assets/{LabeledDropDownFormattedTextField-DGb_bDyp-GLWqacX3.js → LabeledDropDownFormattedTextField-BA8tzPzQ-Big6_AMJ.js} +8 -8
  93. package/dist/assets/LabeledMultiSelectField-CA9PUCf3-CGx9bMTu.js +220 -0
  94. package/dist/assets/{LabeledText-yhm8qxrA-CAV7zkMz.js → LabeledText-D7eLbH80-Bs-kfAE-.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-DaFuaU2w.js → LabeledUserSingleSelectWithSubtitlesField-CleX9Raw-CCmlbQ1T.js} +25 -25
  96. package/dist/assets/{LabeledZeniRolesDropDownField-DGkU72cd-CfX5Nizk.js → LabeledZeniRolesDropDownField-Cte6kRTw-CB2TIDv8.js} +28 -28
  97. package/dist/assets/LinkJETransactionPage-DicS5kKg-DOb356xm.js +98 -0
  98. package/dist/assets/{LockCardPage-DaVzuRMw-WfXdd7GO.js → LockCardPage-DRYg_fxU-CFGUEJ0X.js} +76 -76
  99. package/dist/assets/{LowBalancePopup-Dd9HLWlh-CzozjvI8.js → LowBalancePopup-BJfagMN7-DFWlKz1e.js} +4 -4
  100. package/dist/assets/MagicLinkACHDetailsPage-BeUu65LP-h79CD54_.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-CO7IswK8-3R9uoHM3.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-bKdrX7dk-BH9XfZTx.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-DbhdGmhh-Co-KdioC.js → MagicLinkSuccessPage-BRWymdWH-suMYBps1.js} +5 -5
  104. package/dist/assets/{MagicLinkTitleSection-Bx92291D-Cip3RyJg.js → MagicLinkTitleSection-D5ORaO0D-oMV_fYKL.js} +4 -4
  105. package/dist/assets/{MailingDetailsSection-D-tnK244-iwYcV_GF.js → MailingDetailsSection-B_0EH3Eh-Dx6cptzU.js} +1 -1
  106. package/dist/assets/{Menu-0YHUdU0n-ykadCuU8.js → Menu-C9v-W9TY-DRVyGpH4.js} +3 -3
  107. package/dist/assets/{MyBankConnectionsSettingsPage-Dn9AT8p1-CMJSje5O.js → MyBankConnectionsSettingsPage-C4YJleyg-DKQ0iSMd.js} +5 -5
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-DrQu6s7j-lkcW7KY-.js → MyPendingActivationChargeCardListPage-D-6TnbYs-g9LqO-rS.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-CBvjEd7r-ClGN_Ywf.js → MyProfileSettingsPage-BMNBcdq8-CzuZjUxB.js} +9 -9
  110. package/dist/assets/{NavBarWithPicker-aXn2QYh1-EJKdDhD-.js → NavBarWithPicker-Cv7tOmjd-BXBZWsng.js} +5 -5
  111. package/dist/assets/{NavigationArrow-JLUXaIrz-DTB6lnvW.js → NavigationArrow-DAs7ECFZ-rFu_aZmo.js} +8 -8
  112. package/dist/assets/{NavigationDots-B0_dDbgu-C1OUFooh.js → NavigationDots-DISWi4Mq-BdTnuTup.js} +4 -4
  113. package/dist/assets/{NewGlobalMerchantPage-B_019EtP-DQaHcEZD.js → NewGlobalMerchantPage-DGFtrDg1-BDtdrE9G.js} +7 -7
  114. package/dist/assets/{NoDataChart-DLKHNXD4-CZveDZyz.js → NoDataChart-gfqauMvY-CAbYCdyQ.js} +1 -1
  115. package/dist/assets/NoDataTable-C1_gqVi7-D4ANXF0d.js +8 -0
  116. package/dist/assets/{NotFoundPage-BEya4LS2-CeoKWJuY.js → NotFoundPage-CdWhiWjz-DDjAX_Ng.js} +3 -3
  117. package/dist/assets/{NotificationSettingsPage-C9SjRKCu-F18qKnKq.js → NotificationSettingsPage-C4SZ6Qwg-DbitLXBD.js} +23 -23
  118. package/dist/assets/{NotificationsListConfig-OCeJNw1G-DGmqr_WZ.js → NotificationsListConfig-B-g9kb6x-CND-RON9.js} +1 -1
  119. package/dist/assets/{NotificationsPage-FJHx_WBG-DuB0DLNl.js → NotificationsPage-jxpX3iRG-UGS5Y_9i.js} +29 -29
  120. package/dist/assets/{OpExByVendorPage-Dxk68R6U-BqVDaMyS.js → OpExByVendorPage-B13tAq03-Dd8cq0hz.js} +24 -24
  121. package/dist/assets/{OverlayContainerPage-Daz3A7cI-j7YCqph9.js → OverlayContainerPage-Daz3A7cI-DlMlal7_.js} +1 -1
  122. package/dist/assets/PandLWithForecastPage-D3kcPKd0-sYhFB1EB.js +107 -0
  123. package/dist/assets/PaymentAccountSetupBillingAddressSection-DjdhL9mT-4CseF2mz.js +107 -0
  124. package/dist/assets/{PeoplePage-DN5VtG7Q-nYdb8W0g.js → PeoplePage-Du_TRX4h-C2Rmmn5d.js} +18 -18
  125. package/dist/assets/Preview-CSeZ_uBx.js +1 -0
  126. package/dist/assets/{ProductsCarousel-6gthLCkf-Csrsm4r_.js → ProductsCarousel-y6q9BbqK-B9m9tH0o.js} +12 -12
  127. package/dist/assets/{PromoBaseCards-CzPzj69A-BfaxdPQK.js → PromoBaseCards-CLQMN7aT-BxeQG0rP.js} +8 -8
  128. package/dist/assets/{QBOConnectionDialog-BFy0lMZd-C1tu8oqS.js → QBOConnectionDialog-R4ZWjJsY-DNCk7fny.js} +6 -6
  129. package/dist/assets/{QBOSetupSection-DcLYyQ5m-D0DkS0no.js → QBOSetupSection-D--nxfIh-Difre144.js} +16 -16
  130. package/dist/assets/ReimbursementApprovalRuleDetailPage-OXenWhiy-Cj4gr0h0.js +32 -0
  131. package/dist/assets/ReimbursementApprovalRulesPage-BJaSXRQF-DF9kihjD.js +243 -0
  132. package/dist/assets/ReimbursementDetailPage-BeFEzgmP-DZ-1wgaR.js +314 -0
  133. package/dist/assets/{ReimbursementPromoPage-MweW-4DO-DmsMevam.js → ReimbursementPromoPage-C0sHIJm4-YN1RP5MA.js} +6 -6
  134. package/dist/assets/{ReimbursementSetUpPage-BD2LWlbW-2g5gata7.js → ReimbursementSetUpPage-C85Q6ZnB-DbK7lPyD.js} +13 -13
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DV_PLm_g-KY60bbA9.js → ReimbursementsBulkReviewDrawerPage-B5RzRA4c-PwRYjy1t.js} +1 -1
  136. package/dist/assets/{ReloadCard-9KpQCrce-DSFKeIcW.js → ReloadCard-BT0lSFUP-CF34SUO7.js} +5 -5
  137. package/dist/assets/{ReportTableViewSelector-BPliEsuo-C5akejbK.js → ReportTableViewSelector-rl6XGWA_-CSxPHelL.js} +5 -5
  138. package/dist/assets/{ReportsPage-h2DAaQfK-rm8V3hZY.js → ReportsPage-DV0bbi_D-1o0LJL4r.js} +10 -10
  139. package/dist/assets/{RevenueChart-DY2s_upY-BteR_6zS.js → RevenueChart-CxvHfkxr-BmSB0A7U.js} +14 -14
  140. package/dist/assets/{ReviewDetailsPage-BiYxRnvA-BdMJ-sdU.js → ReviewDetailsPage-CX2XB44j-BHiKofo4.js} +52 -52
  141. package/dist/assets/{ReviewOverlay-BvPN7IKD-BXG7ADPa.js → ReviewOverlay-DdOo3pcK-BVp3d9bK.js} +9 -9
  142. package/dist/assets/RoleWithToolTip-C08wfnGb-CFjb8VCB.js +22 -0
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DlXqz1QQ-KB7qB_BG.js → ScheduleDetailsFixedAssetsPage-BmZgiTVc-C4es4cDL.js} +13 -13
  144. package/dist/assets/{ScheduleDetailsPage-DebosLND-BrNQar2A.js → ScheduleDetailsPage-BqX1EZGE-B4pi2I25.js} +3 -3
  145. package/dist/assets/{ScheduleSequenceTable-Dd4Ep_c0-QwBSHiHh.js → ScheduleSequenceTable-DU3dXX6V-BMdU_3TL.js} +50 -50
  146. package/dist/assets/ScreenRoutes-BOb1-zin.js +201 -0
  147. package/dist/assets/{SetUpAccountSection-Dhb8A0Oe-BE16TcfB.js → SetUpAccountSection-Clz60vjw-CDcwloM0.js} +15 -15
  148. package/dist/assets/SignIn-B79R5ayU-BtVW5pl0.js +491 -0
  149. package/dist/assets/SignInScreen-CsaRmLqD.js +1 -0
  150. package/dist/assets/SpendManagementListViewPage-C3gJ8vag-CRVtgLhw.js +134 -0
  151. package/dist/assets/SpendManagementPerTabPage-DmCZhFWY-Dsjzi1bn.js +785 -0
  152. package/dist/assets/SpendManagementSection-mtTZeiX8-DB_R_dFU.js +246 -0
  153. package/dist/assets/StatementItem-C9KsTdoM-CvW9SwJx.js +31 -0
  154. package/dist/assets/{StatementsPage-DVR5LhTi-CK4DNN1F.js → StatementsPage-DgoXqABR-NsGiWIFr.js} +3 -3
  155. package/dist/assets/{StatusSwitcher-Cy5ITFgi-WNbBQL_H.js → StatusSwitcher-DRDFuzoj-DFWyQSIu.js} +2 -2
  156. package/dist/assets/{SubTabSwitcher-DhsES2OW-Ba9WstlT.js → SubTabSwitcher-Bj1N3zLn-DocBm2NX.js} +3 -3
  157. package/dist/assets/{SummaryCard-Byv4Hw8Q-Cya4iYRL.js → SummaryCard-BNrPt21W-z-I2nOL_.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-CVXMOPf2-Cj3it9IL.js → TaskManagementPage-svW7FNT3-CdR83JXD.js} +27 -27
  159. package/dist/assets/{TimeRangeSwitcher-jct2_5PE-jdBQXqjL.js → TimeRangeSwitcher-wio5OjI3-BFQK4ykL.js} +4 -4
  160. package/dist/assets/{TimeframeSwitcher-BK-qliOX-D6zGRAVk.js → TimeframeSwitcher-234cbGUX-GrV_gRdd.js} +6 -6
  161. package/dist/assets/TimeframeSwitcherWithToggle-B65LibQx-O8FBApDz.js +31 -0
  162. package/dist/assets/{TopExCard-o4Q3ze1b-DaQrihbx.js → TopExCard-DFm0V6Sa-CuS6D-g2.js} +7 -7
  163. package/dist/assets/{TopExDetailPage-BsCwwwDi-CoRmHcau.js → TopExDetailPage-B4UamIS--DvTevd6J.js} +11 -11
  164. package/dist/assets/{TransactionDetailPage-rpCG65yC-pn0dPq-f.js → TransactionDetailPage-BiGPVM2O-BIqR8D1A.js} +23 -23
  165. package/dist/assets/{TransactionList-YI4oZaim-BeW25N4W.js → TransactionList-BQ2dvALf-DExPb7_Y.js} +15 -15
  166. package/dist/assets/{TransactionListBig-D_Jw9Ip2-DUthp3Uu.js → TransactionListBig-Ca4yYTqY-DpBtFr0L.js} +10 -10
  167. package/dist/assets/{TransactionListPage-B2yWm7eA-DoyaJLS9.js → TransactionListPage-CaSfmS5A-B8TNgEwP.js} +6 -6
  168. package/dist/assets/{TransactionVendorDetailPage-Dr5C4-7q-LcfF0abM.js → TransactionVendorDetailPage-CH7qHDUF-CdstXkoA.js} +4 -4
  169. package/dist/assets/{TransferDrawerPage-BnEVH7Mc-Cc2Z_6P5.js → TransferDrawerPage-5IgzdfVN-CuTPVgyu.js} +41 -41
  170. package/dist/assets/{TreasuryOverviewPage-C927Rdkg-mfpMLnDZ.js → TreasuryOverviewPage-CyMGJE8x-BqzDON9-.js} +43 -43
  171. package/dist/assets/{TreasuryPromoPage-C6D3bF2f-CzyRKa5_.js → TreasuryPromoPage-DQabp_BI-lYWtZagK.js} +15 -15
  172. package/dist/assets/TreasuryStatementsPage-DyJbkTPX-DQbO4X2A.js +58 -0
  173. package/dist/assets/{TreasuryTaxLetterPage-BaHut8Wc-CskcJOaK.js → TreasuryTaxLetterPage-BSIqzP7E-BachcLIH.js} +3 -3
  174. package/dist/assets/{TrendChart-BI4Tz813-PlKdXGQX.js → TrendChart-DLlQzxzM-PPRPEN_l.js} +4 -4
  175. package/dist/assets/{TrendWithTransactions-BicIDSlC-Bhg4sKIS.js → TrendWithTransactions-CjGbUTLS-CZ3CCR3q.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-sbn4Sdr2-BfCTTems.js → UncategorizedAccountsMappingPage-CgJuXRnT-4h1DDmrY.js} +9 -9
  177. package/dist/assets/{UnitIntegrationPage-CZUyjeh5-3UKmMNlz.js → UnitIntegrationPage-Dew9WP2L-B7QG_5u7.js} +10 -10
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-4AWDV_HK-fyZHHxgB.js → UploadAdditionalDocumentOverlay-CoO-S_pc-DdAruGua.js} +8 -8
  179. package/dist/assets/{Vendor2FAPopup-C_PmEAQ7-CN2t48ys.js → Vendor2FAPopup-2JZx7Ouz-DmIxVSxV.js} +1 -1
  180. package/dist/assets/VendorACHDetailsPage-DVqS0EVe-BvHJQnhv.js +1 -0
  181. package/dist/assets/{VendorDetailPage-CLFKkF8I-C1IdXHu1.js → VendorDetailPage-DcpigP-V-CLpuuI3V.js} +86 -86
  182. package/dist/assets/VendorDomesticWireDetailsPage-BrvN0BZx-Cb_0-TC6.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-CrWrhHZl-B1pRF1hT.js → VendorFiling1099EditablePage-BK_AfMvG-BcMvx9ZT.js} +17 -17
  184. package/dist/assets/{VendorFirstReviewPage-C6MnbIan-SeG_ubbN.js → VendorFirstReviewPage-BnGpb03v-CQ1grmaD.js} +61 -61
  185. package/dist/assets/{VendorInternationalWireDetailsPage-CzPRK4E2-r_6eJH9r.js → VendorInternationalWireDetailsPage-Bs_MIbDV-D_-xScY6.js} +20 -20
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CJMBOb8y-CNYkR-9e.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-CVh1n81R-BiCjwBhE.js → VendorsAccountsSection-V7IwNhkN-D-eiPu30.js} +4 -4
  188. package/dist/assets/{VerifyDevice-BHocExfO-DjIMPNA8.js → VerifyDevice-Dc3oeJbw-D5d8Wn7A.js} +7 -7
  189. package/dist/assets/{VideoPlayer-9rYRtSLf-BjvT2OMT.js → VideoPlayer-XU1YwohK-BaDXYiVP.js} +2 -2
  190. package/dist/assets/{VideoPopup-D1o92dj6-CD3Smh1W.js → VideoPopup-BKLcIVcV-C8tsI7gn.js} +4 -4
  191. package/dist/assets/{WarningsDrawerPage-CzufXgaN-BMm0pY72.js → WarningsDrawerPage-DE6hNSem-DTjl6BDC.js} +3 -3
  192. package/dist/assets/{ZeniAccountDetailPage-ZZ3Ra-Jf-Ge7VgWuS.js → ZeniAccountDetailPage-B3txxml4-BrnXOri_.js} +38 -38
  193. package/dist/assets/{ZeniAccountListViewPage-Cxid0mfh-DvSsusPJ.js → ZeniAccountListViewPage-D8AbqSI--lXEmxuQ-.js} +17 -17
  194. package/dist/assets/ZeniAccountNavBarPieces-CNM-e6b3-CrP6I6p5.js +14 -0
  195. package/dist/assets/{ZeniAccountPromoPage-YIYFkPIB-D5lVCJaq.js → ZeniAccountPromoPage-CcZOtFpv-D5dUYpiY.js} +20 -20
  196. package/dist/assets/{ZeniAccountSetupPage-BJ9UJ0dP-C1Wgqq9R.js → ZeniAccountSetupPage-COA09GMm-BsBo4Yw_.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-CztmWsFm-Bq1pkV4V.js → ZeniCopyright-DqbjGQWk-D3uyyuTN.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-g9qU5Lsq-bFllmPoH.js → ZeniTransferAmountSlider-NJ7GeTlf-DqVr8V-Q.js} +7 -7
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-Bk9iUnjH.js → add-to-wallet-DgdBD8_G-CF63trjm.js} +1 -1
  200. package/dist/assets/{analytics-BUkj7jvZ.js → analytics-D0z7Cz17.js} +1 -1
  201. package/dist/assets/{analyticsHelper-D4lKCWjQ-DwDJBUY0.js → analyticsHelper-C2PAija--B2XRbUD9.js} +1 -1
  202. package/dist/assets/{analyticsHelper-B4bPMH3g.js → analyticsHelper-D1UvETVa.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-D6-JBGih.js → arrow-south-east-round-PEovUgvH-Cun1Cxd1.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-DyrE-vz9.js → auto-transfer-rule-mbafm5D3-DPk-N0wE.js} +1 -1
  205. package/dist/assets/{chartTypes-BPPSjkhb-qpDZo76P.js → chartTypes-B9jQTJLQ-B-uICCus.js} +1 -1
  206. package/dist/assets/{commonDimensions-Ds75pRzR-CknYEsxH.js → commonDimensions-BgvFMAEM-jw0M4GDE.js} +1 -1
  207. package/dist/assets/commonTypes-PtDfk70--ByVvU-Tm.js +1 -0
  208. package/dist/assets/{constants-e1joQwxq.js → constants-DleDZ7Hr.js} +1 -1
  209. package/dist/assets/{core-DSEA1DeO.js → core-9PMMelIA.js} +2 -2
  210. package/dist/assets/{dash.all.min-ErqzSjBm.js → dash.all.min-ClWxXI22.js} +1 -1
  211. package/dist/assets/{detailCommon-DdZdfmYT-BGt3SMo9.js → detailCommon-BjRXEZFj-BMuJy_GS.js} +7 -7
  212. package/dist/assets/downloadPdf-ZSABdzxr-CSS_LmUU.js +1 -0
  213. package/dist/assets/empty-Bp9uyDV_.js +1 -0
  214. package/dist/assets/{empty-C0VR_6w-.js → empty-D5Zf29Ub.js} +1 -1
  215. package/dist/assets/epic-Di7g1fbQ.js +2 -0
  216. package/dist/assets/{gift-box-Cmt9OgIZ-CpWMLhiV.js → gift-box-Cmt9OgIZ-m0hJlqL5.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-Ck-UlMHZ.js → graphic-no-data-l-DU4J8fDt-cg6FAACa.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-B0NcDeLD.js → graphic-no-data-net-burn-l-CzmycA0m-qDT1cGx5.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-BKg5Zl7K.js → handshake-BPg58FML-DFhtOw8z.js} +1 -1
  220. package/dist/assets/{index-CrF-DUPb.js → index-0WIxY_w_.js} +1 -1
  221. package/dist/assets/{index-CzZbMptt.js → index-4hZvJwkO.js} +1 -1
  222. package/dist/assets/{index-L_AK35Oo.js → index-BLOmj_st.js} +1 -1
  223. package/dist/assets/{index-DKQM71dS.js → index-Bs2B-MQ4.js} +4523 -4511
  224. package/dist/assets/{empty-BC8tDj-C.js → index-CbXRL6aP.js} +1 -1
  225. package/dist/assets/index-DNxMom6d.js +1 -0
  226. package/dist/assets/{index-BpWgzcsf.js → index-DW6fMwk4.js} +1 -1
  227. package/dist/assets/{lexical-D8ee32sQ.js → lexical-CaQwXIc3.js} +1 -1
  228. package/dist/assets/{liveblocks-Bth6iRPZ.js → liveblocks-48Yy2aTy.js} +1 -1
  229. package/dist/assets/{lottie-BcjGrMJ9.js → lottie-ChwWMuYN.js} +2 -2
  230. package/dist/assets/mapLoadingInProgressToTreeNode-ilouYnTd-DoZ0huih.js +1 -0
  231. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-rrJBbsC8--SbDIUwj.js → mapSectionWithAcOnlyToTreeNode-DCsXPZ77-B7l0JH-0.js} +1 -1
  232. package/dist/assets/mapSpacerToTreeNode-CEKoJAIb-Ca0optUS.js +1 -0
  233. package/dist/assets/mapTimeframeBalancesToTreeNode-Cki-np8X-STcH44eC.js +1 -0
  234. package/dist/assets/{mapTimeframeBalancesToTreeNode-DfQk4Tsr-UXPU4xby.js → mapTimeframeBalancesToTreeNode-q_WorOhv-vY1YncA0.js} +1 -1
  235. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-C_x9HXWn.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DFZvknEc-BH5TYlER.js} +1 -1
  236. package/dist/assets/{mui-Bm7nuuAo.js → mui-snKYaegN.js} +1 -1
  237. package/dist/assets/{page-detail-CWX5S47F-Cdu8-KMO.js → page-detail-CWX5S47F-D1nl1r9M.js} +1 -1
  238. package/dist/assets/{radio-default-CiSgisfh-Bl0MojvA.js → radio-default-CiSgisfh-BY9nqKUM.js} +1 -1
  239. package/dist/assets/{react-nT9GYl0Y.js → react-B2deW7HO.js} +1 -1
  240. package/dist/assets/{react-3iEIv6n1.js → react-BNn_K56n.js} +2 -2
  241. package/dist/assets/{react-BN52OPO2.js → react-BddMC_36.js} +3 -3
  242. package/dist/assets/{react-CkNFk2ew.js → react-BpEW9tPq.js} +2 -2
  243. package/dist/assets/{react-jcR3ufXW.js → react-C-MrqhIX.js} +2 -2
  244. package/dist/assets/{react-D6HVaxcq.js → react-CiQEdtzT.js} +2 -2
  245. package/dist/assets/{react-CybtaVCD.js → react-DHTHtXgj.js} +1 -1
  246. package/dist/assets/{react-Cq1uO9gu.js → react-o70ZlKb0.js} +1 -1
  247. package/dist/assets/{recharts-sqzNidKh.js → recharts-DGmpNqLb.js} +1 -1
  248. package/dist/assets/{sentry-3Q4-6z2o.js → sentry-gm2R3TtK.js} +2 -2
  249. package/dist/assets/{shield-DOlUxcFf-BkG4GSM2.js → shield-DOlUxcFf-DNx-Nq5U.js} +1 -1
  250. package/dist/assets/toCOABalancesWithID-CcsM8Vr1-Ca_vxtPe.js +1 -0
  251. package/dist/assets/toChartData-CVxc3i6E-Jb1kbIeZ.js +1 -0
  252. package/dist/assets/{uploadAttachment-B4ddYCCL-Cj9tfjtm.js → uploadAttachment-CBATb9_e-Bf8RMkbX.js} +22 -22
  253. package/dist/assets/{uploadReceipts-CPw64UYa-BgpQylmh.js → uploadReceipts-CPw64UYa-DwtdWb2a.js} +1 -1
  254. package/dist/assets/{url-Dvga04s1.js → url-B3spPAaB.js} +1 -1
  255. package/dist/assets/{url-Cenve78-.js → url-CsktLD4A.js} +1 -1
  256. package/dist/assets/{useLongPress-GCK2COYQ-usvVYHad.js → useLongPress-GCK2COYQ-5GfLl0ml.js} +1 -1
  257. package/dist/assets/{usp-line-BBd1wKwW-ByjIwRIy.js → usp-line-BBd1wKwW-DO5-Shw0.js} +1 -1
  258. package/dist/assets/{utils-gMT26ExF.js → utils-C7Aiy3iw.js} +1 -1
  259. package/dist/assets/{zeni-epic-state-1LR8oCdb.js → zeni-epic-state-D2RxwWrl.js} +32 -32
  260. package/dist/index.html +1 -1
  261. package/package.json +4 -4
  262. package/dist/assets/ACHDetailsPage-BRWOdhMx-B5vqTcQC.js +0 -21
  263. package/dist/assets/AccountInfoPage-Ca_vKG58-CmolE_M0.js +0 -18
  264. package/dist/assets/AccountLockedInfoModal-CEk5d9hq--KHKaMTx.js +0 -59
  265. package/dist/assets/AddAddressForCardDrawer-DfOyebHX-tEW9jx2i.js +0 -6
  266. package/dist/assets/ApAgingDetailPage-Duu2uAEr-CHYiB4_n.js +0 -46
  267. package/dist/assets/ArAgingDetailPage-CaOr6vAU-DExwExvL.js +0 -46
  268. package/dist/assets/BillDetailPage-BG7FhHEq-BJc5bg2f.js +0 -266
  269. package/dist/assets/BillPayApprovalRuleDetailPage-BAK1Gfko-BxxZuroQ.js +0 -27
  270. package/dist/assets/BillPayApprovalRulesPage-DiCNUU-G-D3Z89838.js +0 -235
  271. package/dist/assets/BillPayPromoPage-aGKOv8Ur-DyPqmebu.js +0 -84
  272. package/dist/assets/BillingSettingsPage-CdYb74V7-C_ZbNI2K.js +0 -44
  273. package/dist/assets/BusinessVerificationPage-CbqJIVpz-D5Pnrd4V.js +0 -138
  274. package/dist/assets/CardNumberSubText-DBOH0_yP-NStUUB4L.js +0 -21
  275. package/dist/assets/ChargeCardListPage-130ILwkr-Bn2UNOpv.js +0 -412
  276. package/dist/assets/CompanyOfficerDetailsSection-BtUBatbQ-BgEQYkh1.js +0 -260
  277. package/dist/assets/CompanyPassportPage-DzE7sm8S-F-LnGTlT.js +0 -574
  278. package/dist/assets/ConfettiBurst-1rYKpbAj-7_ntB1dO.js +0 -1
  279. package/dist/assets/CreditCardPaymentDrawerPage-Q12y6HMX-DWTS2vWG.js +0 -224
  280. package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-FKs-62hv.js +0 -1
  281. package/dist/assets/CustomerOnboardingNoStepsPage-CNni6chX-eoICSPrF.js +0 -66
  282. package/dist/assets/CustomerOnboardingPage-CvN9Jrdy-TK7lm7QW.js +0 -107
  283. package/dist/assets/CustomerOnboardingProductSuitePage-CZkX9ur7-DLYrpbnI.js +0 -202
  284. package/dist/assets/DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-B8QX9JeN.js +0 -12
  285. package/dist/assets/EditPeoplePage-DJthuIP4-DFiVe4fX.js +0 -55
  286. package/dist/assets/EditReimbursementDetailPage-Bt7XKq5h-oGYtPUJx.js +0 -865
  287. package/dist/assets/InsightsSection-BTXj5WUe-Dnd7T8n1.js +0 -27
  288. package/dist/assets/InternationalWireVerificationPage-kIajgPZt-BCl1VoBc.js +0 -292
  289. package/dist/assets/InvitePeoplePage-DrBtwpMH-jVWIt_-k.js +0 -12
  290. package/dist/assets/LabeledControlledCheckBoxField-Btw_zwzy-FQPDCWhk.js +0 -16
  291. package/dist/assets/LabeledDocumentField-C73vQNgq-ClbLbe81.js +0 -41
  292. package/dist/assets/LinkJETransactionPage-C0onrP5t-qiX2Dqs6.js +0 -98
  293. package/dist/assets/MagicLinkACHDetailsPage-Cpde2XoD-DW1n8bX2.js +0 -1
  294. package/dist/assets/MagicLinkDomesticWireDetailsPage-DQYH52_8-DHDPluRy.js +0 -1
  295. package/dist/assets/MagicLinkInternationalWireDetailsPage-DwBUSxwe-BcWdztI5.js +0 -1
  296. package/dist/assets/NoDataTable-BMD2qygC-D3zLqMv-.js +0 -8
  297. package/dist/assets/PandLWithForecastPage-Bu49FbWD-B1CQW0Ds.js +0 -107
  298. package/dist/assets/PaymentAccountSetupBillingAddressSection-s9EEHxoG-4TpDZPEe.js +0 -107
  299. package/dist/assets/Preview-a-JlTlEm.js +0 -1
  300. package/dist/assets/ReimbursementApprovalRuleDetailPage-0o5lDuM2-DfP6S3rb.js +0 -26
  301. package/dist/assets/ReimbursementApprovalRulesPage-D5ZMrrmO-BDz7EXy3.js +0 -237
  302. package/dist/assets/ReimbursementDetailPage-DatcF8rt-CXM71NE4.js +0 -314
  303. package/dist/assets/RoleWithToolTip-aW95rpRe-BrXKfiz8.js +0 -22
  304. package/dist/assets/ScreenRoutes-C3DV_-a8.js +0 -201
  305. package/dist/assets/SignIn-DQBJB5ad-D2MMlFVA.js +0 -448
  306. package/dist/assets/SignInScreen-B7P5eb-y.js +0 -1
  307. package/dist/assets/SpendManagementListViewPage-Ac-9u-X2-BO9QxuYF.js +0 -123
  308. package/dist/assets/SpendManagementPerTabPage-DgrMAQ8l-BQjpDK4V.js +0 -754
  309. package/dist/assets/SpendManagementSection-Ci2yOCJ9-HulA5gL6.js +0 -230
  310. package/dist/assets/StatementItem-hcBoe79o-Du93pBl-.js +0 -31
  311. package/dist/assets/TimeframeSwitcherWithToggle-Cl6ISBIz-Do0VDrMC.js +0 -31
  312. package/dist/assets/TreasuryStatementsPage-BE54gWl6-BmltGAJ9.js +0 -58
  313. package/dist/assets/VendorACHDetailsPage-DMMoCytX-XMV6oQdd.js +0 -1
  314. package/dist/assets/VendorDomesticWireDetailsPage-WxmpwlTS-1eo_KTtv.js +0 -1
  315. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BBYmlLxN-Bp91Qzlg.js +0 -1
  316. package/dist/assets/ZeniAccountNavBarPieces-DDc-xph4-sO3GACzv.js +0 -14
  317. package/dist/assets/downloadPdf-B8UMaJCC-BFUHIY4h.js +0 -1
  318. package/dist/assets/epic-ChbeUbgS.js +0 -2
  319. package/dist/assets/index-BBszPXVa.js +0 -1
  320. package/dist/assets/index-BjHrSGfO.js +0 -1
  321. package/dist/assets/mapLoadingInProgressToTreeNode-DGRrn6kh-C9B3pLm1.js +0 -1
  322. package/dist/assets/mapSpacerToTreeNode-CWvamMX2-BXiUP_C8.js +0 -1
  323. package/dist/assets/mapTimeframeBalancesToTreeNode-_jEVk1uh-CsmN8zhY.js +0 -1
  324. package/dist/assets/toCOABalancesWithID-CkjRB0sJ-CHosyNVt.js +0 -1
  325. package/dist/assets/toChartData-CMi2WgAy-C7CbsXKi.js +0 -1
  326. package/dist/assets/transaction-placeholder-CpOwZAMG-D5UmMc1z.js +0 -1
@@ -1,10 +1,10 @@
1
- import{d as Re,q as K,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at,aO as nt,y as f,o as n,kL as lt,kM as ot,kN as rt,cH as Ve,cE as dt,eX as st,fz as ct,fA as pt,cG as Ae,g7 as mt,kO as ut,cK as ht,cL as yt,f2 as ze,f3 as ke,fc as Oe,b as ge,c as u,fe as gt,b8 as ft,b5 as be,p as Ee,al as xt,aq as We}from"./index-DKQM71dS.js";import{a as J}from"./sentry-3Q4-6z2o.js";import{n as d}from"./mui-Bm7nuuAo.js";import{bL as qe,bh as le,bP as _e,bH as bt,bo as wt}from"./zeni-epic-state-1LR8oCdb.js";import{Y as vt}from"./LabeledDocumentField-C73vQNgq-ClbLbe81.js";import{S as te}from"./LabeledText-yhm8qxrA-CAV7zkMz.js";import"./liveblocks-Bth6iRPZ.js";import"./core-DSEA1DeO.js";import"./recharts-sqzNidKh.js";import"./lottie-BcjGrMJ9.js";import"./analytics-BUkj7jvZ.js";import"./lexical-D8ee32sQ.js";import"./utils-gMT26ExF.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]="904e9f75-6865-455a-82ef-f3db65c3833e",e._sentryDebugIdIdentifier="sentry-dbid-904e9f75-6865-455a-82ef-f3db65c3833e")}catch{}})();const St={progressBarWidth:new f(343,726)},jt=({pageIndex:e})=>{const i=K(),a=Re(),s=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs($t,{children:[t.jsx(lt,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx(Tt,{children:h.map((p,l)=>t.jsx(Ft,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Le,{children:p})},l))})]}):t.jsxs(Ct,{windowSize:i,children:[t.jsx(ot,{coloredSectionCount:e,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1}),t.jsx(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{d as Re,q as G,F as q,a9 as et,aO as De,cC as tt,V as t,bA as it,ac as at,aP as nt,y as f,o as n,kP as lt,kQ as ot,kR as rt,cI as Ve,cF as dt,eY as st,fA as ct,fB as pt,cH as Ae,g8 as mt,kS as ut,cL as ht,cM as yt,f3 as ze,f4 as ke,fd as Oe,b as ge,c as u,ff as gt,b9 as ft,b6 as be,p as Ee,am as xt,ar as We}from"./index-Bs2B-MQ4.js";import{a as J}from"./sentry-gm2R3TtK.js";import{n as d}from"./mui-snKYaegN.js";import{bL as qe,bh as le,bP as He,bH as bt,bo as wt}from"./zeni-epic-state-D2RxwWrl.js";import{Y as vt}from"./LabeledDocumentField-Ch2zD7s7-Nw7bBUJi.js";import{S as te}from"./LabeledText-D7eLbH80-Bs-kfAE-.js";import"./liveblocks-48Yy2aTy.js";import"./core-9PMMelIA.js";import"./recharts-DGmpNqLb.js";import"./lottie-ChwWMuYN.js";import"./analytics-D0z7Cz17.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.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]="1b307086-40ca-46ee-890c-120a17b11015",e._sentryDebugIdIdentifier="sentry-dbid-1b307086-40ca-46ee-890c-120a17b11015")}catch{}})();const St={progressBarWidth:new f(343,726)},jt=({pageIndex:e})=>{const i=G(),a=Re(),s=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs(Pt,{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(It,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Le,{children:p})},p))})]})},Ct=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-top: ${n.sp3};
5
5
  position: relative;
6
6
  width: ${e=>St.progressBarWidth.valuePx(e.windowSize)};
7
- `,$t=d.div`
7
+ `,Pt=d.div`
8
8
  display: flex;
9
9
  flex-direction: row;
10
10
  position: relative;
@@ -13,12 +13,12 @@ import{d as Re,q as K,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab 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;
20
20
  height: ${n.sp6};
21
- `,Pt=d.div`
21
+ `,It=d.div`
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  align-items: center;
@@ -38,7 +38,7 @@ import{d as Re,q as K,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab 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])},V=(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=K(),{spendManagement:D,dateFormat:y,common:C}=q.getLocalizedStrings(),$=D.billPay.billDetails,X=y.visual.defaultInput,re=D.zeniAccounts.expressPay,de=C.documents,_=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),A=r=>s.find(m=>m.id===r),L=r=>ze(A(r)),se=()=>{let r=[];return i?.paymentType?.method.includes("wire")===!0?r=s.filter(m=>!!m.bankRoutingNumberWireTransfer).map(m=>m.id):r=s.filter(m=>!!m.bankRoutingNumberAch).map(m=>m.id),r},ce=r=>{const m=A(r),j=q.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(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(U=>t.jsxs(W,{children:[t.jsxs(z,{children:[U.name,j.paymentDetails.colon]}),t.jsx(E,{children:U.value})]},U.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(At,{children:$.paymentDetailsTitle}),t.jsxs(kt,{windowSize:o,children:[t.jsx(st,{label:{label:$.withdrawFrom,width:_,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:V(e,"withdrawFrom"),placeholder:Ae($.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(r,m)=>pt(h,r,m),valueToSubLabels:(r,m)=>ct(h,r,m,!1),defaultValue:{selectedOption:i?.withdrawFrom?.id,allOptions:h.map(r=>({label:r.label,value:r.id}))},textAlignment:"right",registerOptions:{required:!0,validate:r=>r!=null&&!!r.selectedOption}}}),t.jsx(Y,{}),t.jsx(mt,{showAdditionalInfoLabel:!1,label:{label:$.amount,width:_},formattedTextField:{type:"number",name:V(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:Ae($.amount),returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:r=>r!=null&&r!==0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,shouldHighlightZeroAmount:!0},style:{width:"auto"}}),t.jsx(Y,{}),t.jsx(ut,{label:{label:$.paymentMethod,width:P.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:V(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:V(e,"paymentDate"),placeholder:$.paymentDate,dateFormat:X,autoComplete:"off",minDate:le(),registerOptions:{required:!0}}}),t.jsx(Y,{}),t.jsx(Ve,{label:{label:$.paymentTo,width:_},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:V(e,"paymentTo"),placeholder:$.selectAccount,getTooltipInfo:ce,menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:w,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:L},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?se():[]},registerOptions:{required:!0,validate:r=>r?.selectedOption!=null}}}),t.jsx(Y,{}),t.jsx(vt,{name:V(e,"receipt"),sizeLimit:yt,deleteFileStatusById:I,updateFileStatusById:x,filesEndPoint:l.filesEndPoint,authParams:l.authParams,label:{label:re.reciept,width:_},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},V(e,"receipt")),T==null?t.jsx(Ot,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(Y,{})]})]})},At=d(be)`
41
+ `,I={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])},V=(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(),P=D.billPay.billDetails,X=y.visual.defaultInput,re=D.zeniAccounts.expressPay,de=C.documents,H=I.largeLabelWidth.value(o),[g,Z]=J.useState(!1),Y=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(bt)===!1),A=r=>s.find(m=>m.id===r),L=r=>ze(A(r)),se=()=>{let r=[];return i?.paymentType?.method.includes("wire")===!0?r=s.filter(m=>!!m.bankRoutingNumberWireTransfer).map(m=>m.id):r=s.filter(m=>!!m.bankRoutingNumberAch).map(m=>m.id),r},ce=r=>{const m=A(r),j=q.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(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(At,{children:P.paymentDetailsTitle}),t.jsxs(kt,{windowSize:o,children:[t.jsx(st,{label:{label:P.withdrawFrom,width:H,style:{marginLeft:I.labelMarginLeftPicker.valuePx(o),marginTop:I.labelMarginTopPicker.valuePx(o),marginRight:I.labelMarginRightPicker.valuePx(o),width:I.largeLabelPickerWidth.value(o)}},style:{paddingTop:I.labeledFieldPaddingTop.valuePx(o),paddingBottom:I.labeledFieldPaddingBottom.valuePx(o),paddingLeft:I.labeledFieldPaddingLeft.valuePx(o),paddingRight:I.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:I.infoLabelPaddingRight.valuePx(o),marginTop:I.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:V(e,"withdrawFrom"),placeholder:Ae(P.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(U,{}),t.jsx(mt,{showAdditionalInfoLabel:!1,label:{label:P.amount,width:H},formattedTextField:{type:"number",name:V(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:Ae(P.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(U,{}),t.jsx(ut,{label:{label:P.paymentMethod,width:I.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:V(e,"paymentMethod"),placeholder:P.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:Y,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(U,{}),t.jsx(ht,{label:{label:P.paymentDate,width:I.labelWidth.value(o)},style:{paddingBottom:I.paddingBottom.valuePx(o),width:"auto"},dateField:{name:V(e,"paymentDate"),placeholder:P.paymentDate,dateFormat:X,autoComplete:"off",minDate:le(),registerOptions:{required:!0}}}),t.jsx(U,{}),t.jsx(Ve,{label:{label:P.paymentTo,width:H},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:V(e,"paymentTo"),placeholder:P.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(U,{}),t.jsx(vt,{name:V(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},V(e,"receipt")),T==null?t.jsx(Ot,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(U,{})]})]})},At=d(be)`
42
42
  color: ${e=>e.theme.colors.primary};
43
43
  margin-bottom: ${n.sp3};
44
44
  `,kt=d.div`
@@ -48,8 +48,8 @@ import{d as Re,q as K,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at
48
48
  border: 1px solid ${e=>e.theme.colors.grey3};
49
49
  box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
50
50
  border-radius: ${n.sp2};
51
- width: ${e=>P.containerWidth.valuePx(e.windowSize)};
52
- `,Y=d.div`
51
+ width: ${e=>I.containerWidth.valuePx(e.windowSize)};
52
+ `,U=d.div`
53
53
  display: flex;
54
54
  flex: 1;
55
55
  background-color: ${e=>e.theme.colors.grey3};
@@ -79,7 +79,7 @@ import{d as Re,q as K,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab 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=K(),l=q.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(Rt,{children:t.jsxs(Vt,{children:[t.jsx(rt,{label:{label:l.recipientName,width:T},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ie(e,"recipient"),placeholder:p==="small"?l.placeholders.recipientNameMobile:l.placeholders.recipientName,valueToId:y=>y,defaultValue:{...o},style:{width:"100%"},customStyleConfig:D,registerOptions:{required:!0,validate:y=>y!=null&&!!y.selectedOption},loadOptions:x?.loadOptions,isOptionsLoading:w,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ie(e,"recipient")),t.jsx(Ne,{}),t.jsx(Ve,{label:{label:l.recipientType,width:T},singleSelectField:{singleSelect:{name:ie(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:y=>i.find(C=>C.code===y)?.name??"",showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:a?.vendorType,allOptions:i.map(y=>y.code)},registerOptions:{required:!0,validate:y=>!!y.selectedOption}},isFunctional:!0}),t.jsx(Ne,{}),t.jsx(dt,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:T},text:{type:"email",name:ie(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},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:Ye(a?.vendorId,a?.vendorName,s?.entityAutoCompleteView),selectedOption:a?.vendorId??a?.vendorName??""},D={valueContainer:y=>({...y,padding:`2px ${p==="small"?n.sp2:n.sp3} !important`,overflow:"unset"}),singleValue:y=>({...y,margin:0}),placeholder:y=>({...y,fontWeight:"normal"})};return t.jsxs(t.Fragment,{children:[t.jsx(Bt,{children:l.recipientSectionTitle}),t.jsx(Rt,{children:t.jsxs(Vt,{children:[t.jsx(rt,{label:{label:l.recipientName,width:T},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ie(e,"recipient"),placeholder:p==="small"?l.placeholders.recipientNameMobile:l.placeholders.recipientName,valueToId:y=>y,defaultValue:{...o},style:{width:"100%"},customStyleConfig:D,registerOptions:{required:!0,validate:y=>y!=null&&!!y.selectedOption},loadOptions:x?.loadOptions,isOptionsLoading:w,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ie(e,"recipient")),t.jsx(Ne,{}),t.jsx(Ve,{label:{label:l.recipientType,width:T},singleSelectField:{singleSelect:{name:ie(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:y=>i.find(C=>C.code===y)?.name??"",showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:a?.vendorType,allOptions:i.map(y=>y.code)},registerOptions:{required:!0,validate:y=>!!y.selectedOption}},isFunctional:!0}),t.jsx(Ne,{}),t.jsx(dt,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:T},text:{type:"email",name:ie(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},Ye=(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
  `,Rt=d.div`
@@ -98,7 +98,7 @@ import{d as Re,q as K,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab 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=K(),p=oe.largeLabelWidth.value(h),{billPay:l}=q.getLocalizedStrings().spendManagement,{dateFormat:T,common:I}=q.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,$=ke(w?.method??"");return t.jsx(Ut,{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:ke(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(_e(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(qt,{windowSize:h,children:[t.jsx(_t,{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,P=ke(w?.method??"");return t.jsx(_t,{children:t.jsxs(Ut,{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:ke(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)} - (${P.length>0?`${P} `:""}${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(Yt,{children:t.jsx(Oe,{amount:wt(D.amount,D.currencyCode,D.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},Et=d.div``,Wt=d.div`
102
102
  display: flex;
103
103
  width: 100%;
104
104
  box-sizing: border-box;
@@ -113,23 +113,23 @@ import{d as Re,q as K,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at
113
113
  border-radius: ${n.sp2};
114
114
  color: ${e=>e.theme.colors.hero};
115
115
  margin-bottom: ${n.sp2};
116
- `,_t=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
+ `,Yt=d(We)`
123
123
  display: flex;
124
124
  width: calc(100% - 176px);
125
125
  justify-content: flex-end;
126
126
  color: ${e=>e.theme.colors.primary};
127
- `,Ut=d.div`
127
+ `,_t=d.div`
128
128
  display: flex;
129
129
  flex-direction: column;
130
130
  width: 100%;
131
131
  height: 100%;
132
- `,Yt=d.div`
132
+ `,Ut=d.div`
133
133
  display: flex;
134
134
  flex-grow: 1;
135
135
  flex-direction: column;
@@ -157,7 +157,7 @@ import{d as Re,q as K,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab 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:_,expressPayLocalData:g,vendorTypeList:Z,allPaymentMethods:H,paymentToOptions:A,withdrawFromList:L,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:U}=e,[v,Q]=J.useState(0),Ue=Re(),G=K(),{common:we,spendManagement:Ye}=q.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=Ye.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=_,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,A,$e,H,N,g,j,C?.entityAutoCompleteView),values:Be(Z,L,A,$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"&&U==="Completed"&&(v===0?(Q(1),o?.(g?.vendorId)):v===1&&Q(2)),Pe==="In-Progress"&&m==="Completed"&&I(g?.vendorId)},[Ie,U,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,k=C?.entityAutoCompleteView.vendor.find(M=>M.zeniId===b);Ze(S),y(),N?.vendorId!==b&&k!=null&&(l?.(b),he(S,!1,A,b))}else if(c.includes("recipient"))ue(S);else{const b=S[F].paymentMethod?.method,k=g?.paymentType?.method,M=b!=null&&k!=null&&(b.toLowerCase().includes("ach")&&k.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&k.toLowerCase().includes("ach"));he(S,M,A,g?.vendorId)}},Ze=c=>{const S=c[O].recipient.selectedOption,b=C?.entityAutoCompleteView.vendor.find(k=>k.id===S)!=null;if(S!=null&&b===!0){T?.(S),he(c,!1,A,S);return}ue(c,!0)},ue=(c,S)=>{const b=N?.vendorId,k=C?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,M=Gt(c,k===!0?b:void 0,N,S);x?.(M,b)},he=(c,S,b,k)=>{const M=(()=>{let B=[];return c[F].paymentMethod?.method.includes("wire")===!0?B=b.filter(R=>!!R.bankRoutingNumberWireTransfer).map(R=>R.id):B=b.filter(R=>!!R.bankRoutingNumberAch).map(R=>R.id),B})(),ye=b.find(B=>B.id===c[F]?.paymentTo?.selectedOption),Qe={vendorId:k,amount:{amount:c[F].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[F].paymentDate?qe(c[F].paymentDate.toString()):le(),paymentType:c[F]?.paymentMethod!=null?c[F]?.paymentMethod:void 0,paymentToAccountId:S?M[0]:ye?.id,withdrawFrom:L.find(B=>B.id===c[F]?.withdrawFrom?.selectedOption),receiptFileId:c[F].receipt?.fileId};w?.(Qe)},Te=ee.handleSubmit(()=>{if(v===0||v===1){a.trackExpressPayNextClick(v===0?"Recipient Details":"Payment Details");const c=ee.getValues();ue(c),p(g?.vendorId)}else a.trackExpressPayScheduleClick(),D()}),Ge=()=>{v===2?Q(1):I(g?.vendorId)},Ke=()=>{v===0?I(g?.vendorId):Q(v===1?0:1)},Fe={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?A.find(c=>c.id===g?.paymentToAccountId):void 0,paymentDate:g?.paymentDate,paymentType:g?.paymentType??H?.[0],recipientAmount:g?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(it,{title:me.pageTitle,onBackClick:Ke,backgroundColor:Ue.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Kt,{windowSize:G,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:A,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:A,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(G):ne.buttonWidth.value(G),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Te()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?ne.largeButtonWidth.value(G):ne.buttonWidth.value(G),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Ge}})]})},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()??_e(le().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?x:[],selectedOption:l?.paymentToAccountId??x[0]},receipt:T}}};function Gt(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 Kt=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:P,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:H,expressPayLocalData:g,vendorTypeList:Z,allPaymentMethods:Y,paymentToOptions:A,withdrawFromList:L,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:_}=e,[v,Q]=J.useState(0),_e=Re(),K=G(),{common:we,spendManagement:Ue}=q.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=Ue.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=H,N=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,Ce=Object.assign({},Se??je),Je=N?.vendorName,Pe=L.find(c=>c.id===s),ee=et({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(Z,L,A,Pe,Y,N,g,j,C?.entityAutoCompleteView),values:Be(Z,L,A,Pe,Y,N,g,j,C?.entityAutoCompleteView)}),$e=De(Ce.saveStatus?.fetchState),Ie=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)),Ie==="In-Progress"&&m==="Completed"&&$(g?.vendorId)},[$e,_,v,o,g?.vendorId,Ie,m,$]);const Xe=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[O].recipient.selectedOption,k=C?.entityAutoCompleteView.vendor.find(M=>M.zeniId===b);Ze(S),y(),N?.vendorId!==b&&k!=null&&(l?.(b),he(S,!1,A,b))}else if(c.includes("recipient"))ue(S);else{const b=S[F].paymentMethod?.method,k=g?.paymentType?.method,M=b!=null&&k!=null&&(b.toLowerCase().includes("ach")&&k.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&k.toLowerCase().includes("ach"));he(S,M,A,g?.vendorId)}},Ze=c=>{const S=c[O].recipient.selectedOption,b=C?.entityAutoCompleteView.vendor.find(k=>k.id===S)!=null;if(S!=null&&b===!0){T?.(S),he(c,!1,A,S);return}ue(c,!0)},ue=(c,S)=>{const b=N?.vendorId,k=C?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,M=Kt(c,k===!0?b:void 0,N,S);x?.(M,b)},he=(c,S,b,k)=>{const M=(()=>{let B=[];return c[F].paymentMethod?.method.includes("wire")===!0?B=b.filter(R=>!!R.bankRoutingNumberWireTransfer).map(R=>R.id):B=b.filter(R=>!!R.bankRoutingNumberAch).map(R=>R.id),B})(),ye=b.find(B=>B.id===c[F]?.paymentTo?.selectedOption),Qe={vendorId:k,amount:{amount:c[F].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[F].paymentDate?qe(c[F].paymentDate.toString()):le(),paymentType:c[F]?.paymentMethod!=null?c[F]?.paymentMethod:void 0,paymentToAccountId:S?M[0]:ye?.id,withdrawFrom:L.find(B=>B.id===c[F]?.withdrawFrom?.selectedOption),receiptFileId:c[F].receipt?.fileId};w?.(Qe)},Te=ee.handleSubmit(()=>{if(v===0||v===1){a.trackExpressPayNextClick(v===0?"Recipient Details":"Payment Details");const c=ee.getValues();ue(c),p(g?.vendorId)}else a.trackExpressPayScheduleClick(),D()}),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?A.find(c=>c.id===g?.paymentToAccountId):void 0,paymentDate:g?.paymentDate,paymentType:g?.paymentType??Y?.[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:P}):v===1?t.jsx(Dt,{sectionId:F,paymentDetails:Fe,paymentToOptions:A,allPaymentMethods:Y,withdrawFromList:L,internationalVerificationStatus:se,fileProps:{...i,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de},deleteFileStatusById:ce,updateFileStatusById:r,receiptFile:j,onClickAddAccount:()=>{const c=Fe?.paymentType;c!=null&&h(c)}}):v===2?t.jsx(zt,{reviewDetails:g,paymentToOptions:A,vendorName: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:Ye(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{d as w,q as v,F as y,aS as n,p,V as i,cm as _,y as r,cn as k,co as x,c as g}from"./index-DKQM71dS.js";import{n as d}from"./mui-Bm7nuuAo.js";import"./sentry-3Q4-6z2o.js";import"./liveblocks-Bth6iRPZ.js";import"./core-DSEA1DeO.js";import"./recharts-sqzNidKh.js";import"./zeni-epic-state-1LR8oCdb.js";import"./lottie-BcjGrMJ9.js";import"./analytics-BUkj7jvZ.js";import"./lexical-D8ee32sQ.js";import"./utils-gMT26ExF.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]="8b341dea-3692-4c30-bea0-3d3be7c574fc",e._sentryDebugIdIdentifier="sentry-dbid-8b341dea-3692-4c30-bea0-3d3be7c574fc")}catch{}})();const t={popupWidth:new r(200,468,468,468),buttonWidth:new r(140,160,160,160),popupContainerLeft:new r(g[0],g[0],255),popupContainerWidth:new r(100,100,85)},z=d.div`
1
+ import{d as w,q as y,F as v,aT as n,p,V as i,cn as _,y as r,co as k,cp as x,c as g}from"./index-Bs2B-MQ4.js";import{n as d}from"./mui-snKYaegN.js";import"./sentry-gm2R3TtK.js";import"./liveblocks-48Yy2aTy.js";import"./core-9PMMelIA.js";import"./recharts-DGmpNqLb.js";import"./zeni-epic-state-D2RxwWrl.js";import"./lottie-ChwWMuYN.js";import"./analytics-D0z7Cz17.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.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]="7062b7ed-42ff-47f3-baed-52b07bd23c93",e._sentryDebugIdIdentifier="sentry-dbid-7062b7ed-42ff-47f3-baed-52b07bd23c93")}catch{}})();const t={popupWidth:new r(200,468,468,468),buttonWidth:new r(140,160,160,160),popupContainerLeft:new r(g[0],g[0],255),popupContainerWidth:new r(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{d as w,q as v,F as y,aS as n,p,V as i,cm as _,y as r,cn as k,co as x,c as
8
8
  `,W=d.img`
9
9
  width: 100%;
10
10
  height: 100%;
11
- `,C={mobile:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-mobile",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-mobile",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-mobile",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-mobile",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-mobile",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-mobile",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-mobile",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""},normal:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-normal",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-normal",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-normal",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-normal",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-normal",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-normal",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-normal",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""}};function F({menuItem:e,onDemoClick:a,onGoBack:m}){const s=w(),o=v(),u=`${C[o==="small"?"mobile":"normal"][e]}-${s.mode}.png`,{featurePreview:c}=y.getLocalizedStrings(),l=c.popups[e],b=s.mode==="light"?new n(p.backgroundGradient1Light):new n(p.backgroundGradient1Dark),h=s.mode==="light"?new n(p.backgroundGradient2Light):new n(p.backgroundGradient2Dark),f={onOkClick:()=>{a()},onCancelClick:()=>{m()}};return i.jsxs(z,{children:[i.jsx(W,{src:u,alt:"feature-preview",loading:"lazy"}),i.jsx(_,{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
+ `,C={mobile:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-mobile",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-mobile",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-mobile",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-mobile",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-mobile",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-mobile",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-mobile",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""},normal:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-normal",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-normal",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-normal",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-normal",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-normal",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-normal",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-normal",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""}};function V({menuItem:e,onDemoClick:a,onGoBack:m}){const s=w(),o=y(),u=`${C[o==="small"?"mobile":"normal"][e]}-${s.mode}.png`,{featurePreview:c}=v.getLocalizedStrings(),l=c.popups[e],b=s.mode==="light"?new n(p.backgroundGradient1Light):new n(p.backgroundGradient1Dark),h=s.mode==="light"?new n(p.backgroundGradient2Light):new n(p.backgroundGradient2Dark),f={onOkClick:()=>{a()},onCancelClick:()=>{m()}};return i.jsxs(z,{children:[i.jsx(W,{src:u,alt:"feature-preview",loading:"lazy"}),i.jsx(_,{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{V as default};
@@ -1,4 +1,4 @@
1
- import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as i,aM as M,eh as ce,aA as le,g3 as pe,g4 as ue,n as he,p as u,c as g,gy as ge,cV as be,cX as ye,an as ve,bE as we,b as W,dh as $e,bF as fe,bD as ke}from"./index-DKQM71dS.js";import{n as d}from"./mui-Bm7nuuAo.js";import{a as V}from"./sentry-3Q4-6z2o.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]="fed26e7a-fe25-4cc9-a3b6-4bd31a38230b",e._sentryDebugIdIdentifier="sentry-dbid-fed26e7a-fe25-4cc9-a3b6-4bd31a38230b")}catch{}})();const v={width:new L(343,580,726),height:new L(g[6],g[6]),controlHeight:new L(g[6],g[6]),paddingLeftRight:new L(g[3],g[4]),paddingTop:new L(g[3],g[3]),paddingBottom:new L(g[3],g[2]),labelMarginRight:new L(g[3],g[4])};function je({isDisabled:e,label:s,firstText:t,secondText:p,style:$,isFieldError:k}){const f=H(),{formState:{errors:j}}=q(),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(Ie,{children:[l.jsx(se,{}),l.jsx(Le,{}),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{q as H,V as l,F as X,cP as q,eo as G,d as ee,cV as Q,y as L,ge as Z,o as i,aN as B,eg as ce,aB as le,g4 as pe,g5 as ue,n as he,p as u,c as g,gB as ge,cW as be,ex as ye,ao as ve,bF as we,b as W,dg as $e,bG as fe,bE as ke}from"./index-Bs2B-MQ4.js";import{n as d}from"./mui-snKYaegN.js";import{a as V}from"./sentry-gm2R3TtK.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]="a8664450-d950-4f1c-93ce-3c65bf42d30d",e._sentryDebugIdIdentifier="sentry-dbid-a8664450-d950-4f1c-93ce-3c65bf42d30d")}catch{}})();const v={width:new L(343,580,726),height:new L(g[6],g[6]),controlHeight:new L(g[6],g[6]),paddingLeftRight:new L(g[3],g[4]),paddingTop:new L(g[3],g[3]),paddingBottom:new L(g[3],g[2]),labelMarginRight:new L(g[3],g[4])};function je({isDisabled:e,label:s,firstText:t,secondText:p,style:$,isFieldError:k}){const f=H(),{formState:{errors:j}}=q(),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":B("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(Ie,{children:[l.jsx(se,{}),l.jsx(Le,{}),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;
@@ -198,7 +198,7 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
198
198
  color: ${e=>e.isError?u.important:e.theme.colors.hero};
199
199
  white-space: pre-line;
200
200
  margin-top: ${i.sp1};
201
- `;function ul(e){return H()==="small"?l.jsx(Se,{...e}):l.jsx(je,{...e})}const Fe=({allOptions:e,selectedValue:s,name:t,onSelectedValueChanged:p,valueToLabel:$,disable:k=!1,defaultMenuIsOpen:f,placeholderLabel:j})=>{const{formState:{errors:m}}=q(),T=G(m,t??""),r=ee(),[I,D]=V.useState(void 0),[b,A]=V.useState(f),C=n=>n.map(w=>F(w)),F=V.useCallback(n=>({value:n,label:$(n)}),[$]);V.useEffect(()=>{const n=s==null?void 0:F(s);D(n?.label===""?void 0:n)},[s,$,F]);const _=n=>{p(n)},S=r.colors.grey5,B=r.colors.grey5,N=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,...N,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:()=>{A(!1)},children:l.jsx(we,{isMulti:!1,onChange:n=>{_(n)},minMenuHeight:208,menuPlacement:"auto",menuShouldScrollIntoView:!1,defaultValue:I,value:I,placeholder:j,components:{Option:Re,DropdownIndicator:qe,IndicatorSeparator:Ae,SingleValue:Ne},hideSelectedOptions:!1,styles:R,options:C(e),isClearable:!1,isSearchable:!1,isDisabled:k,defaultMenuIsOpen:b,"data-testid":M("single-select",t)},$e())})},Ne=({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}}=q(),T=G(m,t??""),r=ee(),[I,D]=V.useState(void 0),[b,A]=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 _=n=>{p(n)},S=r.colors.grey5,M=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:M,":hover":{fill:r.colors.primary,backgroundColor:r.colors.background,borderColor:"none"},width:"auto",minHeight:"auto",cursor:"pointer"}),container:n=>({...n,backgroundColor:M,width:"100%"}),singleValue:(n,{data:w})=>({...n,alignItems:"center",margin:`${i.sp0}`,height:`${i.sp4}`,color:w.value==="require_approval"?u.alertDark:u.successDark,...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:()=>{A(!1)},children:l.jsx(we,{isMulti:!1,onChange:n=>{_(n)},minMenuHeight:208,menuPlacement:"auto",menuShouldScrollIntoView:!1,defaultValue:I,value:I,placeholder:j,components:{Option:Re,DropdownIndicator:qe,IndicatorSeparator:Ae,SingleValue:Fe},hideSelectedOptions:!1,styles:R,options:C(e),isClearable:!1,isSearchable:!1,isDisabled:k,defaultMenuIsOpen:b,"data-testid":B("single-select",t)},$e())})},Fe=({children:e,...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":B("single-select-option",j),children:[l.jsxs(Ve,{children:[l.jsx("label",{children:$}),p===!0&&f?.id!=null&&l.jsx(Be,{children:f.id})]}),k?l.jsx(Me,{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;
@@ -207,7 +207,7 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
207
207
  width: 100%;
208
208
  display: flex;
209
209
  align-items: center;
210
- `,Me=d.div`
210
+ `,Be=d.div`
211
211
  display: flex;
212
212
  color: ${e=>e.theme.colors.primary};
213
213
  align-items: center;
@@ -218,14 +218,14 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
218
218
  border: 1px solid ${e=>e.theme.colors.primary};
219
219
  border-radius: ${i.sp1};
220
220
  margin: 0 ${i.sp5} 0 ${i.sp3};
221
- `,Be=d.div`
221
+ `,Me=d.div`
222
222
  display: flex;
223
223
  `,He=d(ke)`
224
224
  width: ${i.sp3};
225
225
  height: ${i.sp3};
226
226
  cursor: pointer;
227
227
  color: ${e=>e.theme.colors.primary};
228
- `,qe=()=>null,Ae=()=>null,_e=({name:e,registerOptions:s,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:f}=q(),j=t.allOptions.map(r=>r.value??""),m=r=>t.allOptions.filter(I=>I.value===r)[0]?.label??"",T=r=>t.allOptions.find(I=>I.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:I}})=>l.jsx(Fe,{allOptions:j,onSelectedValueChanged:D=>{I({allOptions:t.allOptions,selectedOption:T(D)})},valueToLabel:D=>m(D),selectedValue:r.selectedOption,disable:p,name:e,defaultMenuIsOpen:$,placeholderLabel:k})})},me=V.memo(_e,(e,s)=>le(e,s)),O={width:new L(343,580,726),height:new L(g[6],g[6]),paddingLeftRight:new L(g[3],g[4]),paddingTopBottom:new L(g[3],g[3]),labelMarginRight:new L(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:I,allAccountingClasses:D,stepsInfo:b,productType:A}){const C=H(),{commonSetUp:{approval:F}}=Y.getLocalizedStrings(),_=T.length+I.length,S=m.map(o=>o.user),{control:B,setValue:N}=q(),{fields:E,replace:R}=ce({name:t,control:B}),n=()=>{const o=b[b.length-1].stepIndex,h=xe(o+1,S,r);N(t,[...b,h])},w=o=>{const h=b.filter((a,c)=>c!==o);N(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||_===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(Ye,{children:[h+1,"."]}),l.jsx(Xe,{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,A);x.length>0&&y.push(x),c.accountingClassIDs.forEach(X=>{const P=D.find(K=>K.classId===X);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:F.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=Y.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
+ `,qe=()=>null,Ae=()=>null,_e=({name:e,registerOptions:s,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:f}=q(),j=t.allOptions.map(r=>r.value??""),m=r=>t.allOptions.filter(I=>I.value===r)[0]?.label??"",T=r=>t.allOptions.find(I=>I.value===r.value)?.value;return l.jsx(ye,{name:e,control:f,defaultValue:t,rules:s,"data-testid":B("single-select-field",e),render:({field:{value:r,onChange:I}})=>l.jsx(Ne,{allOptions:j,onSelectedValueChanged:D=>{I({allOptions:t.allOptions,selectedOption:T(D)})},valueToLabel:D=>m(D),selectedValue:r.selectedOption,disable:p,name:e,defaultMenuIsOpen:$,placeholderLabel:k})})},me=V.memo(_e,(e,s)=>le(e,s)),O={width:new L(343,580,726),height:new L(g[6],g[6]),paddingLeftRight:new L(g[3],g[4]),paddingTopBottom:new L(g[3],g[3]),labelMarginRight:new L(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:I,allAccountingClasses:D,stepsInfo:b,productType:A}){const C=H(),{commonSetUp:{approval:N}}=X.getLocalizedStrings(),_=T.length+I.length,S=m.map(o=>o.user),{control:M,setValue:F}=q(),{fields:E,replace:R}=ce({name:t,control:M}),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||_===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,A);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":B("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;
@@ -290,7 +290,7 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
290
290
  color: ${e=>e.disabled?e.theme.colors.grey1:e.theme.colors.primary};
291
291
  }
292
292
  }
293
- `,Xe=d.div`
293
+ `,Ye=d.div`
294
294
  display: flex;
295
295
  align-items: center;
296
296
  width: 174px;
@@ -300,10 +300,10 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
300
300
  gap: ${i.sp3};
301
301
  align-items: baseline;
302
302
  max-height: 300px;
303
- `,Ye=d.div`
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:I,allAccountingClasses:D,stepsInfo:b,productType:A}){const C=H(),{commonSetUp:{approval:F}}=Y.getLocalizedStrings(),_=T.length+I.length,S=m.map(o=>o.user),{control:B,setValue:N}=q(),{fields:E,replace:R}=ce({name:t,control:B}),n=()=>{const o=b[b.length-1].stepIndex,h=xe(o+1,S,r);N(t,[...b,h])},w=o=>{const h=b.filter((a,c)=>c!==o);N(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||_===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,A);x.length>0&&y.push(x),c.accountingClassIDs.forEach(X=>{const P=D.find(K=>K.classId===X);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:F.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:I,allAccountingClasses:D,stepsInfo:b,productType:A}){const C=H(),{commonSetUp:{approval:N}}=X.getLocalizedStrings(),_=T.length+I.length,S=m.map(o=>o.user),{control:M,setValue:F}=q(),{fields:E,replace:R}=ce({name:t,control:M}),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||_===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,A);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":B("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":B("add-step-button-small")})})]})}const ll=d.div`
307
307
  display: flex;
308
308
  flex-direction: column;
309
309
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{d as Ke,q as Y,a8 as _e,ax as Ee,cB as Ye,V as t,bz as Qe,ab as Ze,ck as Ce,o,n as ye,F as ue,bL as Je,aM as T,cj as Xe,b1 as et,dj as tt,cq as lt,a9 as ot,m as nt,cY as it,bC as We,aQ as at,y as N,bM as se,c as $,dp as Ie,ag as we,cv as rt,cy as st,cO as dt,df as je,c_ as me,bQ as _,es as ke,an as ct,ic as ht,ak as mt,bf as gt,i9 as pt,id as Oe,cf as ut,br as wt,p as De,ie as bt}from"./index-DKQM71dS.js";import{a as C}from"./sentry-3Q4-6z2o.js";import{n as i,c as Se}from"./mui-Bm7nuuAo.js";import{c4 as xt,FS as vt}from"./zeni-epic-state-1LR8oCdb.js";import"./liveblocks-Bth6iRPZ.js";import"./core-DSEA1DeO.js";import"./recharts-sqzNidKh.js";import"./lottie-BcjGrMJ9.js";import"./analytics-BUkj7jvZ.js";import"./lexical-D8ee32sQ.js";import"./utils-gMT26ExF.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]="ff257372-5d4a-427d-b836-e5770b741589",e._sentryDebugIdIdentifier="sentry-dbid-ff257372-5d4a-427d-b836-e5770b741589")}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{d as Ke,q as Y,a9 as Ee,ay as _e,cC as Ye,V as t,bA as Ze,ac as Je,cl as Ce,o,n as ye,F as ue,bM as Xe,aN as T,ck as Qe,b2 as et,di as tt,cr as lt,aa as ot,k as nt,cX as it,bD as We,aR as at,y as N,bN as se,c as $,dn as Ie,ai as we,cw as rt,cz as st,cP as dt,de as je,cZ as me,bR as E,es as ke,ao as ct,ig as ht,al as mt,bg as gt,ic as pt,ih as De,cg as ut,bs as wt,p as Oe,ii as bt}from"./index-Bs2B-MQ4.js";import{a as C}from"./sentry-gm2R3TtK.js";import{n as i,c as Se}from"./mui-snKYaegN.js";import{c4 as xt,FZ as vt}from"./zeni-epic-state-D2RxwWrl.js";import"./liveblocks-48Yy2aTy.js";import"./core-9PMMelIA.js";import"./recharts-DGmpNqLb.js";import"./lottie-ChwWMuYN.js";import"./analytics-D0z7Cz17.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.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]="3265da3c-ef6f-4266-892b-94384d5f1d08",e._sentryDebugIdIdentifier="sentry-dbid-3265da3c-ef6f-4266-892b-94384d5f1d08")}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`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  padding-right: ${o.sp0};
@@ -20,7 +20,7 @@ import{d as Ke,q as Y,a8 as _e,ax as Ee,cB as Ye,V as t,bz as Qe,ab as Ze,ck 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,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"},Lt=88,Fe=53,Gt=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(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`
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=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(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(Ot,{})})]}),h?null:t.jsx(Dt,{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;
@@ -55,7 +55,7 @@ import{d as Ke,q as Y,a8 as _e,ax as Ee,cB as Ye,V as t,bz as Qe,ab as Ze,ck as
55
55
  align-items: center;
56
56
  transform: ${e=>e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
57
57
  ${e=>e.headerdata.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
58
- `,Ot=i.div`
58
+ `,Dt=i.div`
59
59
  display: ${e=>e.isVisible?"flex":"none"};
60
60
  align-items: center;
61
61
  padding-top: 2px;
@@ -63,7 +63,7 @@ import{d as Ke,q as Y,a8 as _e,ax as Ee,cB as Ye,V as t,bz as Qe,ab as Ze,ck as
63
63
  &:hover {
64
64
  color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
65
65
  }
66
- `,Dt=i(rt)`
66
+ `,Ot=i(rt)`
67
67
  width: 12px;
68
68
  height: 12px;
69
69
  `,Ft=i.div`
@@ -75,7 +75,7 @@ import{d as Ke,q as Y,a8 as _e,ax as Ee,cB as Ye,V as t,bz as Qe,ab as Ze,ck as
75
75
  }
76
76
  `,Ht=i(we)`
77
77
  display: flex;
78
- `,{common:f,vendorReview:{globalReview:{globalMerchantList:qt}}}=ue.getLocalizedStrings(),s={containerPaddingLeftRight:new N($[3],$[4]),containerPaddingTopBottom:new N($[2],$[3]),logoHeightAndWidth:new N($[3],$[4]),vendorNameLogoHeightAndWidth:new N($[4],$[6]),logoToValueGap:new N($[2],$[2]),smallLogoToValueGap:new N($[1],$[1])},Ut=({vendorGlobalReviewData:e,allGlobalMerchants:l,globalMerchantAutoCompleteView:a,sectionId:n,isDisabled:g,analytics:m,onLoadGlobalMerchants:w,onCreateGlobalMerchant:y,onApproveGlobalReview:c,onRejectGlobalReview:h,onClearGlobalMerchantAutoCompleteResults:j})=>{const d=Y(),{resetField:q,formState:U}=dt(),[L,I]=C.useState(!1),[G,W]=n.split("."),O=parseInt(W),D=U.dirtyFields[G]?.[O]?.originalVendor===!0&&e.selectedMerchantId!==e.merchant.tenantMerchantId,Q=e.currentSelection!=null,{merchant:p,recommendations:B}=e,{fetchState:K}=a,oe=u=>{let S=u.websiteUrl?.toString();if(S){if(S=Oe(S)??S,e.selectedMerchantId!=null){const r=u.globalMerchantName??null;m.trackVendorReviewWebsiteOpened({reviewSource:"global_review",vendorName:e.merchant.tenantMerchantName,wasRecommendationAvailable:!!r,recommendedVendorName:r,recommendedVendorReason:u.reason??null,vendorWebsite:S})}window.open(S,"_blank")}},x=[];B.forEach((u,S)=>{const r=`recommended${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(X,{children:u.globalMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(X,{children:u.globalMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(n,H,r),checkBoxValue:ce(n,H,r),defaultChecked:e.currentSelection===r},tooltipProps:{text:t.jsx(Zt,{recommendation:u,onRedirectionToRecommendedMerchantWebsiteUrl:()=>oe(u)}),maxWidth:"360px"},fieldName:r})});const v=p!=null?{label:{label:t.jsx(t.Fragment,{children:p.logo!=null?t.jsxs(ze,{children:[t.jsx(je,{photoUrl:p.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(d),height:s.logoHeightAndWidth.valuePx(d)},placeholder:{width:s.logoHeightAndWidth.value(d),height:s.logoHeightAndWidth.value(d)},fallbackAvatar:t.jsx(pe,{children:t.jsx(me,{name:p.tenantMerchantName,size:s.logoHeightAndWidth.valuePx(d)})})}),t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(X,{children:p.tenantMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(X,{children:p.tenantMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(n,H,ge),checkBoxValue:ce(n,H,ge),defaultChecked:e.currentSelection==="requested"},tooltipProps:{text:t.jsx(Jt,{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=()=>{q(n)};return t.jsx(qe,{windowSize:d,isActiveField:D,children:V.map((u,S)=>{switch(u.key){case"originalVendor":return t.jsx(P,{windowSize:d,wrapperWidth:u.width,children:L===!0?t.jsx(ct,{onClickAway:ae,children:t.jsx(Et,{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:L,loadOptions:w,customStyleConfig:{valueContainer:(r,b)=>({justifyContent:"flex-start",margin:`${o.sp0} ${b.selectProps.menuIsOpen===!1?o.sp0:o.sp3}`}),menu:()=>({width:"150%"}),singleValue:()=>({display:"flex",alignItems:"center",color:"inherit"})},onCreateOptionClick:r=>{y(p.tenantMerchantId,r,p.websiteUrl)},onMenuClose:ae})})}):k.selectedOption!=null?Qt(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:[qt.selectPlaceholder,t.jsx(_,{display:"block",placement:"bottom",title:t.jsx(E,{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(Yt,{space:o.sp0,style:{display:"flex",alignItems:"center",height:o.sp4,width:o.sp3}}),t.jsx(ye,{label:f.footer.approve,onClick:()=>c(p.tenantMerchantId),disabled:!Q,loading:e.approveStatus.fetchState==="In-Progress",size:"small",variant:"primary"})]})},`${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(_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(X,{children:p.tenantName})})})},de(n,"tenantId"))}})})},Bt=()=>{const e=Y();return t.jsx(qe,{windowSize:e,isActiveField:!1,children:V.map((l,a)=>{switch(l.key){case"originalVendor":case"recommended":return t.jsxs(P,{windowSize:e,wrapperWidth:l.width,gap:s.smallLogoToValueGap,children:[t.jsx(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)}})})},qe=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=Y(),{resetField:U,formState:q}=dt(),[G,I]=C.useState(!1),[L,W]=n.split("."),D=parseInt(W),O=q.dirtyFields[L]?.[D]?.originalVendor===!0&&e.selectedMerchantId!==e.merchant.tenantMerchantId,Z=e.currentSelection!=null,{merchant:p,recommendations:B}=e,{fetchState:K}=a,oe=u=>{let S=u.websiteUrl?.toString();if(S){if(S=De(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(Q,{children:u.globalMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Q,{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(Jt,{recommendation:u,onRedirectionToRecommendedMerchantWebsiteUrl:()=>oe(u)}),maxWidth:"360px"},fieldName:r})});const v=p!=null?{label:{label:t.jsx(t.Fragment,{children:p.logo!=null?t.jsxs(ze,{children:[t.jsx(je,{photoUrl:p.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(d),height:s.logoHeightAndWidth.valuePx(d)},placeholder:{width:s.logoHeightAndWidth.value(d),height:s.logoHeightAndWidth.value(d)},fallbackAvatar:t.jsx(pe,{children:t.jsx(me,{name:p.tenantMerchantName,size:s.logoHeightAndWidth.valuePx(d)})})}),t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Q,{children:p.tenantMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Q,{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(Xt,{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:O,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?Zt(k.selectedOption,p,l,d,S,O,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(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:!Z,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(Q,{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(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};
@@ -143,17 +143,17 @@ import{d as Ke,q as Y,a8 as _e,ax as Ee,cB as Ye,V as t,bz as Qe,ab as Ze,ck as
143
143
  -webkit-box-orient: vertical;
144
144
  overflow: hidden;
145
145
  text-overflow: ellipsis;
146
- `,Kt=i.div``,X=i.div`
146
+ `,Kt=i.div``,Q=i.div`
147
147
  ${Me};
148
148
  `,M=i(mt)`
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};
@@ -170,7 +170,7 @@ import{d as Ke,q as Y,a8 as _e,ax as Ee,cB as Ye,V as t,bz as Qe,ab as Ze,ck as
170
170
  align-items: center;
171
171
  visibility: hidden;
172
172
  cursor: pointer;
173
- `,Le=i(bt)`
173
+ `,Ge=i(bt)`
174
174
  color: ${e=>e.theme.colors.hero};
175
175
  align-items: center;
176
176
  height: ${o.sp3};
@@ -179,15 +179,15 @@ import{d as Ke,q as Y,a8 as _e,ax as Ee,cB as Ye,V as t,bz as Qe,ab as Ze,ck as
179
179
  display: flex;
180
180
  align-items: center;
181
181
  cursor: pointer;
182
- `,Ge=i.div`
182
+ `,Le=i.div`
183
183
  display: flex;
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
- `,Ue=i.div`
190
+ `,qe=i.div`
191
191
  width: auto;
192
192
  box-sizing: border-box;
193
193
  max-height: ${e=>e.setMaxHeight===!0?o.sp10:"none"};
@@ -203,19 +203,19 @@ import{d as Ke,q as Y,a8 as _e,ax as Ee,cB as Ye,V as t,bz as Qe,ab as Ze,ck as
203
203
  gap: ${o.sp3};
204
204
  justify-content: space-between;
205
205
  `,te=i(we)`
206
- color: ${De.primaryDark};
206
+ color: ${Oe.primaryDark};
207
207
  overflow: hidden;
208
208
  word-wrap: break-word;
209
209
  white-space: initial;
210
210
  `,le=i(we)`
211
- color: ${De.heroDark};
211
+ color: ${Oe.heroDark};
212
212
  white-space: nowrap;
213
213
  `,Yt=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}},Qt=(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(Ge,{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":T("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(Le,{className:"reset-icon",onClick:y,"data-testid":T("global-review-list-row-undo-icon")})}):null]})]}):t.jsxs(t.Fragment,{children:[h.logo!=null?t.jsx(je,{photoUrl:h.logo.toString(),styles:{width:s.vendorNameLogoHeightAndWidth.valuePx(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(Ge,{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(X,{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":T("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(Le,{className:"reset-icon",onClick:y})}):null]})]})},Zt=({recommendation:e,onRedirectionToRecommendedMerchantWebsiteUrl:l})=>t.jsxs(Ue,{setMaxHeight:!0,children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.vendor}),t.jsx(te,{children:e.globalMerchantName})]}),e.websiteUrl?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>l(e),"data-testid":T("global-review-list-row-website-url-tooltip-website-url"),children:e.websiteUrl?.toString()})]}):null]}),Jt=({merchant:e})=>{let l=e.websiteUrl?.toString()??f.strings.empty;return t.jsxs(Ue,{children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.name}),t.jsx(te,{children:e.tenantMerchantName})]}),e.accountName.length?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.category}),t.jsx(te,{children:e.accountName})]}):null,e.accountName.length?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.class}),t.jsx(te,{children:e.className})]}):null,l?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>{l&&(l=Oe(l)??l,window.open(l,"_blank"))},"data-testid":T("global-review-list-row-website-url-tooltip"),children:l})]}):null]})},Xt=({sortConfig:e,fetchState:l,isDisabled:a,onColumnSortConfigChanged: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}},Zt=(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(Q,{children:h.name})})}),t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":T("global-review-list-row-edit-icon-tooltip")})}),m?t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Ge,{className:"reset-icon",onClick:y})}):null]})]})},Jt=({recommendation:e,onRedirectionToRecommendedMerchantWebsiteUrl:l})=>t.jsxs(qe,{setMaxHeight:!0,children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.vendor}),t.jsx(te,{children:e.globalMerchantName})]}),e.websiteUrl?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>l(e),"data-testid":T("global-review-list-row-website-url-tooltip-website-url"),children:e.websiteUrl?.toString()})]}):null]}),Xt=({merchant:e})=>{let l=e.websiteUrl?.toString()??f.strings.empty;return t.jsxs(qe,{children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.name}),t.jsx(te,{children:e.tenantMerchantName})]}),e.accountName.length?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.category}),t.jsx(te,{children:e.accountName})]}):null,e.accountName.length?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.class}),t.jsx(te,{children:e.className})]}):null,l?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>{l&&(l=De(l)??l,window.open(l,"_blank"))},"data-testid":T("global-review-list-row-website-url-tooltip"),children:l})]}):null]})},Qt=({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`
219
219
  display: block;
220
220
  min-height: 100%;
221
221
  flex-direction: column;
@@ -224,7 +224,7 @@ import{d as Ke,q as Y,a8 as _e,ax as Ee,cB as Ye,V as t,bz as Qe,ab as Ze,ck 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:q,onRejectGlobalMerchantReview:U,onClearGlobalMerchantAutoCompleteResults:L})=>{const I=Y(),G=C.useRef(null),[W,O]=C.useState(!1);C.useEffect(()=>{G.current?.resetAfterIndex(0)},[I,G]),C.useEffect(()=>{n==="Completed"&&O(!1)},[n]);const D=x=>Lt,Q=(x,v)=>{h({sortOrder:v,sortKey:x}),j(m.searchText,!1,null)},p=()=>{O(!0),j(m.searchText,!0,m.pageToken)},B=x=>x<e.length,K=()=>{m.pageToken!=null&&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"?q(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(Je,{})}),t.jsx(hl,{children:ll.reloadPage.label})]}):n==="Completed"&&e.length===0?t.jsx(Xe,{message:m.searchText?Ae.noMatchedDataText:Ae.noDataText,style:{padding:o.sp0}}):n==="Not-Started"||n==="In-Progress"&&e.length===0?t.jsx(Xt,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:w,fetchState:n,onColumnSortConfigChanged:Q}):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:Q})}),t.jsx(lt,{ref:G,height:x-Fe,itemCount:e.length,itemData:{analytics:y,vendorGlobalReviewList:e,sectionId:a,allGlobalMerchants:l,globalMerchantAutoCompleteView:g,isDisabled:w,onLoadGlobalMerchants:c,onApproveGlobalReview:oe,onRejectGlobalMerchantReview:U,onCreateGlobalMerchant:d,onClearGlobalMerchantAutoCompleteResults:L},onItemsRendered:F,itemSize:D,width:v,style:{willChange:"auto"},overscanCount:Gt,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:q,onClearGlobalMerchantAutoCompleteResults:U}=a,L=g[e];return t.jsx(ml,{style:{...l,width:"100%"},className:"global-review-list-item",children:t.jsx(Ut,{sectionId:`${y}.${e}`,isDisabled:L.approveStatus.fetchState==="In-Progress"?"readonly":c,globalMerchantAutoCompleteView:w,vendorGlobalReviewData:L,allGlobalMerchants:m,onLoadGlobalMerchants:h,onCreateGlobalMerchant:j,onApproveGlobalReview:d,onRejectGlobalReview:q,onClearGlobalMerchantAutoCompleteResults:U,analytics:n},L.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=Y(),L=C.useRef(null),[W,D]=C.useState(!1);C.useEffect(()=>{L.current?.resetAfterIndex(0)},[I,L]),C.useEffect(()=>{n==="Completed"&&D(!1)},[n]);const O=x=>Gt,Z=(x,v)=>{h({sortOrder:v,sortKey:x}),j(m.searchText,!1,null)},p=()=>{D(!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(Xe,{})}),t.jsx(hl,{children:ll.reloadPage.label})]}):n==="Completed"&&e.length===0?t.jsx(Qe,{message:m.searchText?Ae.noMatchedDataText:Ae.noDataText,style:{padding:o.sp0}}):n==="Not-Started"||n==="In-Progress"&&e.length===0?t.jsx(Qt,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:w,fetchState:n,onColumnSortConfigChanged:Z}):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:Z})}),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:O,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{d as Ke,q as Y,a8 as _e,ax as Ee,cB as Ye,V as t,bz as Qe,ab as Ze,ck 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:Pe}}}=ue.getLocalizedStrings(),wl="globalReviewListPage",he="globalReviewListTable",Ll=({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:q,onClickMenuIcon:U})=>{const L=Ke(),I=Y(),{vendorGlobalReviewData:G,allGlobalMerchants:W,uiState:O,fetchState:D}=e,{globalMerchants:Q,fetchState:p}=l,B=_e({mode:"all",reValidateMode:"onChange",defaultValues:Te(G,W),values:Te(G,W),resetOptions:{keepDirtyValues:!0}}),[K,oe]=C.useState(O.searchText),x=C.useRef(),v=r=>{j(r,!1,null)},F=r=>{const b=G.find(z=>z.merchant.tenantMerchantId===r);if(b!=null){const z=W.find(J=>J.globalMerchantId===b.selectedMerchantId),Z=b.recommendations,{tenantName:re,oldMerchantName:ne,tenantMerchantName:ie}=b.merchant,R=z?.globalMerchantName??ie,A=Z[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(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(Q))},[p]);const ae=(r,b)=>{c(r),x.current=b},xe=()=>{},u=async(r,b,z)=>{const{globalReviewListTable:Z}=b,re=parseInt(r.split(".")[1]),ne=Z[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],J;R.merchantId!=null&&(r.includes(Re)?(A={recommendedFirst:R[H].recommendedFirst,recommendedSecond:!1,originalVendor:!1,requested:!1},J=R[Re]?.globalMerchantId):r.includes(Ne)?(A={recommendedFirst:!1,recommendedSecond:R[H].recommendedSecond,originalVendor:!1,requested:!1},J=R[Ne]?.globalMerchantId):r.includes(ge)?(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:R[H].requested},J=R[ge]):r.includes(ve)&&(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!0,requested:!1})),g(ne,A,r.includes(ve)?Z[re][ve].selectedOption:J)}};C.useEffect(()=>{const r=B.watch((b,{name:z,type:Z})=>{z!=null&&b!=null&&Ye(()=>u(z,b,Z))});return()=>{r.unsubscribe()}});const S=t.jsx(ft,{button:{label:ul.newVendor,onClick:()=>y()},search:{searchText:K,hide:!1,isOpen:K.length>0,placeHolder:Pe.searchPlaceholder,onTextChange:r=>{oe(r),r.trim().length>=2?k(r):r.trim().length==0&&k("")}}});return t.jsxs(bl,{children:[t.jsx(Qe,{title:Pe.navBarTitle,backgroundColor:L.colors.grey4,onBackClick:q,rightSideComponent:S,showMenuIcon:I==="medium-compact"||I==="small",onClickMenuIcon:U,source:"GlobalReviewListPage"}),t.jsx(xl,{children:t.jsx(Ze,{...B,children:t.jsx("form",{id:vl(wl),onSubmit:B.handleSubmit(xe),style:{width:"100%"},children:t.jsx(ol,{vendorGlobalReviewList:G,allGlobalMerchants:W,globalMerchantAutoCompleteView:l,uiState:{...O,searchText:K},isDisabled: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=Y(),{vendorGlobalReviewData:L,allGlobalMerchants:W,uiState:D,fetchState:O}=e,{globalMerchants:Z,fetchState:p}=l,B=Ee({mode:"all",reValidateMode:"onChange",defaultValues:Te(L,W),values:Te(L,W),resetOptions:{keepDirtyValues:!0}}),[K,oe]=C.useState(D.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(X=>X.globalMerchantId===b.selectedMerchantId),J=b.recommendations,{tenantName:re,oldMerchantName:ne,tenantMerchantName:ie}=b.merchant,R=z?.globalMerchantName??ie,A=J[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(()=>{O==="Completed"&&a.trackVendorReviewPage("global_review",D.totalCount)},[O]),C.useEffect(()=>{p==="Completed"&&x.current?.(fl(Z))},[p]);const ae=(r,b)=>{c(r),x.current=b},xe=()=>{},u=async(r,b,z)=>{const{globalReviewListTable:J}=b,re=parseInt(r.split(".")[1]),ne=J[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],X;R.merchantId!=null&&(r.includes(Re)?(A={recommendedFirst:R[H].recommendedFirst,recommendedSecond:!1,originalVendor:!1,requested:!1},X=R[Re]?.globalMerchantId):r.includes(Ne)?(A={recommendedFirst:!1,recommendedSecond:R[H].recommendedSecond,originalVendor:!1,requested:!1},X=R[Ne]?.globalMerchantId):r.includes(ge)?(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:R[H].requested},X=R[ge]):r.includes(ve)&&(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!0,requested:!1})),g(ne,A,r.includes(ve)?J[re][ve].selectedOption:X)}};C.useEffect(()=>{const r=B.watch((b,{name:z,type:J})=>{z!=null&&b!=null&&Ye(()=>u(z,b,J))});return()=>{r.unsubscribe()}});const S=t.jsx(ft,{button:{label:ul.newVendor,onClick:()=>y()},search:{searchText:K,hide:!1,isOpen:K.length>0,placeHolder:Pe.searchPlaceholder,onTextChange:r=>{oe(r),r.trim().length>=2?k(r):r.trim().length==0&&k("")}}});return t.jsxs(bl,{children:[t.jsx(Ze,{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(Je,{...B,children:t.jsx("form",{id:vl(wl),onSubmit:B.handleSubmit(xe),style:{width:"100%"},children:t.jsx(ol,{vendorGlobalReviewList:L,allGlobalMerchants:W,globalMerchantAutoCompleteView:l,uiState:{...D,searchText:K},isDisabled:n,listFetchState:O,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{d as Ke,q as Y,a8 as _e,ax as Ee,cB as Ye,V as t,bz as Qe,ab as Ze,ck as
288
288
  background-color: ${e=>e.theme.colors.grey4};
289
289
  `,xl=i.div`
290
290
  display: flex;
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{Ll 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};