@zeniai/web-cockpit-ui 1.14.35-prod → 1.14.36-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 (244) hide show
  1. package/dist/assets/{ACHDetailsPage-MP6kdpXK-mXgY4FoK.js → ACHDetailsPage-3oKbHC1_-Qn9d1Xyv.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BhOaFmfv-Ck2Vsrs_.js → AIPerformancePage-Cn2skpeY-BNc-HLpr.js} +26 -26
  3. package/dist/assets/{AccountInfoPage-D9Ft_CT9-UBKCGyV1.js → AccountInfoPage-Dxnr3s2C-ByHNSUfv.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-DvWx52e0-DBXpP6e6.js → AccountInfoPageContent-CMT1vJ_n-DgA1oKva.js} +30 -30
  5. package/dist/assets/{AccountLockedInfoModal-B1_3C1ER-CCpUHHDw.js → AccountLockedInfoModal-2GuYlOQJ-Cb5egJeS.js} +4 -4
  6. package/dist/assets/{AccountReconDetailsDrawerPage-D9e7qhm0-BcLmhY6M.js → AccountReconDetailsDrawerPage-Cu_lsw9T-Ct4NG0ON.js} +13 -13
  7. package/dist/assets/{AccountRow-CiIWoLq3-DnETnEs8.js → AccountRow-BcSPuOPF-R9MJWqpQ.js} +14 -14
  8. package/dist/assets/{AccountsPromoCardStack-CC72plKm-eywwRX88.js → AccountsPromoCardStack-Ch88Cvn8-B36ZrxM-.js} +30 -30
  9. package/dist/assets/{AddAddressForCardDrawer-CIj76DoU-CDnmuMpI.js → AddAddressForCardDrawer-Df4OROTJ-Ccg4Z6Tb.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-B3vdkyWl-BpwvV_Yt.js → AddToWalletPage-DgVLkIkz-CQF3I5rp.js} +19 -19
  11. package/dist/assets/{AgingReportsPage-CbkMxxO_-Cfk5vpwm.js → AgingReportsPage-M1xr5QPt-DB06_ukJ.js} +15 -15
  12. package/dist/assets/{AllUserItems-DJo9kLSI-woqaTiN-.js → AllUserItems-CzMARJS5-DMwRKAgK.js} +11 -11
  13. package/dist/assets/{ApAgingDetailPage-DcAh6DLg-B3pFO6wY.js → ApAgingDetailPage-C3YN724_-CRhegmmd.js} +3 -3
  14. package/dist/assets/{AppBasePage-DztnPkfs-BDuARS-8.js → AppBasePage-CP4BX_QO-B6mlxKAR.js} +16 -16
  15. package/dist/assets/{AppDrawerContent-DDmKn21i-H0Rqcj5H.js → AppDrawerContent-Dc3UorVz-DdpZ1z1h.js} +8 -8
  16. package/dist/assets/{ApprovalRulesSettingsPage-Di8tAJ8K-DUHTdTXW.js → ApprovalRulesSettingsPage-DHw_cGEb-DsqpcHH3.js} +1 -1
  17. package/dist/assets/ArAgingChart-D6396NAQ-B7eZ8sbL.js +24 -0
  18. package/dist/assets/{ArAgingDetailPage-B3JQ08nH-CrkQ4R8k.js → ArAgingDetailPage-BU6gubOU-BkAN4ZrM.js} +1 -1
  19. package/dist/assets/{AttachmentView-p8mBqYjm-D-KAfu7b.js → AttachmentView-Cjq9bT2R-B9cOvAgG.js} +6 -6
  20. package/dist/assets/{BankAccountSection-AuQLRvdb-DQoUiHyf.js → BankAccountSection-DcBAe_nk-Cj8Y52AW.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-HvUMABu0-DER3zfEz.js → BankAccountWarningSection-CgdNj2lq-DoFj2r_M.js} +19 -19
  22. package/dist/assets/{BankConnectionsSettingsPage-D61w90F9-Cbu8rTGU.js → BankConnectionsSettingsPage-DN-l_MKN-CZ9NiTex.js} +10 -10
  23. package/dist/assets/{BillDetailPage-nqHoph6T-omHRYVvP.js → BillDetailPage-DSNj9dZa-GtcAJ7zm.js} +11 -11
  24. package/dist/assets/BillPayApprovalRuleDetailPage-Bn_93mxC-PbuiMjZ5.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-Bd87v4ca-CjXiDgsw.js → BillPayApprovalRulesPage-3E7Zb7Tv-8xvci8F-.js} +7 -7
  26. package/dist/assets/{BillPayPromoPage-CNiTD_mM-CL0u9OKF.js → BillPayPromoPage-iqi-3PsJ-BJG1XRwv.js} +32 -32
  27. package/dist/assets/{BillPaySetUpPage-BUSwkzqv-Dxo0A25E.js → BillPaySetUpPage-DkBnCNVT-DuhN0B9J.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-aPRvtlqA-DtkoBYtr.js → BillingSettingsPage-Bxl_rTxp-CiR8VS-8.js} +4 -4
  29. package/dist/assets/{BillsBulkReviewDrawerPage-BU3VuxEm-C7NN2Xmz.js → BillsBulkReviewDrawerPage-BAQfge2H-BRM7aN30.js} +1 -1
  30. package/dist/assets/{BoxItem-CZKWkdxd-Dfy_6ZAY.js → BoxItem-BiXktaUJ-Cfy2EaaH.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-CeDGi-RH-Cp7o4xxw.js → BusinessVerificationPage-BvtQdbIO-BG9aG986.js} +7 -7
  32. package/dist/assets/CardNumberSubText-usoiubBx-JT9ehyHX.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-V-W_U5k1-doC9RVzZ.js → CashbackDetailPage-CKSxtvZL-C5tKHPnX.js} +17 -17
  34. package/dist/assets/{ChargeCardDetailPage-BP-zAMYI-4zwKmLMd.js → ChargeCardDetailPage-Dwb3MwPx-DGZ2FMyW.js} +40 -40
  35. package/dist/assets/{ChargeCardListPage-DORW9YE4-goCliHtX.js → ChargeCardListPage-CQ3lUqTC-ClOjN4Tj.js} +27 -27
  36. package/dist/assets/{ChargeCardListTable-C32mZrwY-DoEvYUTO.js → ChargeCardListTable-B2MUmgfU-D_6CnuuE.js} +14 -14
  37. package/dist/assets/{ChargeCardPromoPage-CE4kH4Js-B567yD1E.js → ChargeCardPromoPage-DNZ_qrk1-Ckodpm9A.js} +14 -14
  38. package/dist/assets/{ChargeCardSetupPage-CumpB2GQ-Bsg7iGla.js → ChargeCardSetupPage-DX4VlcBt-9AzPA1m8.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-DPIAjww0-BuEYST8n.js → ChargeCardStatementsPage-DlVfCfY8-Ciq-TW-L.js} +6 -6
  40. package/dist/assets/ChargeCardUtils-i4In9Us5-BeJKYV4x.js +1 -0
  41. package/dist/assets/{ChaseOverlay-BGZfbx0H-CBapYrmC.js → ChaseOverlay-DYQYE0RM-Cl7PDEtm.js} +8 -8
  42. package/dist/assets/{CheckDepositDrawerPage-Bl52b4SW-DFeEOElA.js → CheckDepositDrawerPage-C653BICE-BliVsvVN.js} +11 -11
  43. package/dist/assets/{CollapsableReportTable-B0wI9SM1-CXZN1jAY.js → CollapsableReportTable-KGZROyWO-BB5JbMLM.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-DyOVRvtQ-rXFLr0Cj.js → CompanyOfficerDetailsSection-WlKm-fM0-DT0aWaVM.js} +30 -30
  45. package/dist/assets/{CompanyPassportCard-C_YUK3R3-C8J9LZbt.js → CompanyPassportCard-BXQt77bL-CgrFJoow.js} +5 -5
  46. package/dist/assets/{CompanyPassportPage-QFJ0G7X7-CWAUYaTd.js → CompanyPassportPage-CdM9x1g7-DHJ-ptII.js} +29 -29
  47. package/dist/assets/{CompleteProfile-DVE16v3y-Cdj1Hud-.js → CompleteProfile-g0ErQlZA-BaxE51VT.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-BA8BvtO--D7FhGSOU.js → ConfettiBurst-Cu0ce9ZQ-B47uGNY_.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-ncBGwfXK-Bf68hRSy.js → CreateOrEditVendorPage-Zn--1Mu0-xtwEugAO.js} +8 -8
  50. package/dist/assets/{CreditCardPaymentDrawerPage-DqEVQgMx-DTCA8s7f.js → CreditCardPaymentDrawerPage-BSS4YcVE-BNPDfaX6.js} +19 -19
  51. package/dist/assets/{CreditCardPaymentPlgSection-vmErttTD-ClWPQ0Nj.js → CreditCardPaymentPlgSection-QKLSnyR5-DUyvaz3Z.js} +8 -8
  52. package/dist/assets/{CurrencySelectField-BEb19UaA-DWrGWLIz.js → CurrencySelectField-DxrwSaJK-Cu5VbUzb.js} +4 -4
  53. package/dist/assets/{CustomerOnboardingActivationPage-L4l1ybmh-CMM9TmPz.js → CustomerOnboardingActivationPage-BbfI4g9k-bQf7ee-N.js} +2 -2
  54. package/dist/assets/CustomerOnboardingContainerPage-DkXWw44M-DCp1xd8r.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-D3Zm658F-4fgjGvwb.js → CustomerOnboardingDetailPageSkeleton-DyIeAi4x-Ciojhx6k.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-BXsJFpEX-BEe2mOi9.js → CustomerOnboardingNoStepsPage-BbHZQvuH-pcu4RngU.js} +2 -2
  57. package/dist/assets/{CustomerOnboardingPage-D3zpI1df-DRSAEmH8.js → CustomerOnboardingPage-BGKjRruK-C_-kvbjL.js} +6 -6
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-DjVZfC2C-C37I17XQ.js → CustomerOnboardingProductSuitePage-Cmwfbh1x-D3ospPa7.js} +1 -1
  59. package/dist/assets/{Dashboard-wY0FneRs-BRbJ1E7T.js → Dashboard-DCbGYUNO-CggBXce9.js} +114 -114
  60. package/dist/assets/{DashboardReportPage-CMgr0CSc-DXWUQa9u.js → DashboardReportPage-7sacscjb-CCrnEMLn.js} +19 -19
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-B73UBY5T-BeDJlsLk.js → DashboardSidebarBackgroundAnimation-CcQR2lMq-Cf2eLsVD.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-DrqBG940-C_r0wIek.js → DepositAccTransactionItem-u7kiVxu3-Cq_mC_h_.js} +3 -3
  63. package/dist/assets/DepositAccTransactionListPage-BTMDl7KO-CkFA5sso.js +66 -0
  64. package/dist/assets/{DomesticWireDetailsPage-vRHD5DmW-BZeLAjFc.js → DomesticWireDetailsPage-CjliTPRp-Cxo45rzx.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-D_UoB4Xy-CcwTPDuA.js → DownloadOverlay-LzyYQ7X7-Cqsz6Go0.js} +1 -1
  66. package/dist/assets/{DrawerPage-ijHe0bCp-DULxNxlZ.js → DrawerPage-DVu3OGym-ELFavZIA.js} +5 -5
  67. package/dist/assets/{EditPeoplePage-BehcmP1s-Boo5nqYn.js → EditPeoplePage-COZuksUu-BAJ712Zd.js} +5 -5
  68. package/dist/assets/{EditReimbursementDetailPage-Cz82Vz26-NCJTUn5q.js → EditReimbursementDetailPage-P7gybbTe-DhmHzkez.js} +59 -59
  69. package/dist/assets/{EntityDetailPage-CN-ewzjy-DVhK4H42.js → EntityDetailPage-CMAFiXng-EHp1vVUv.js} +2 -2
  70. package/dist/assets/{EntitySummarySection-B4ozhtlU-Qstf5tMS.js → EntitySummarySection-BezHSTT7-CA4YQ14w.js} +5 -5
  71. package/dist/assets/{ExpenseAutomationOverviewPage-BmNuSoUs-uSONJ6IL.js → ExpenseAutomationOverviewPage-CX5wpbbp-BxzSM0jW.js} +17 -17
  72. package/dist/assets/ExpenseAutomationPage-CaeVli6J-DwDyMFlL.js +1650 -0
  73. package/dist/assets/{ExpressPayPage-CgrGtZ4F-_3daDdkj.js → ExpressPayPage-KpzY-AC4-B3x4TcSO.js} +9 -9
  74. package/dist/assets/{FeaturePreviewPage-Dk_c37Rm-BDCzjePu.js → FeaturePreviewPage-T7VgNi57-XquGM-uR.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-BVi7m38_-jyY18IU_.js → FollowStepsSection-BffVXexb-Wb7yroWy.js} +23 -23
  76. package/dist/assets/{GlobalReviewListPage-DiZGC9B1-lXguPNuY.js → GlobalReviewListPage-DPJug-7p-FbhUXbzf.js} +14 -14
  77. package/dist/assets/{HelpButton-DiIoYeXn-B9pTtXAF.js → HelpButton-BkxT0f9t-DltO0YWd.js} +4 -4
  78. package/dist/assets/{InformationCardStack-C8-4dhWR-BdQjjZMr.js → InformationCardStack-CiO7p4bX-Ca7THwnz.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-BKm0dSeJ-NwmRr3b6.js → InsightsCardStack-CCx4eRv0-BoXCNjZt.js} +9 -9
  80. package/dist/assets/{InsightsSection-C9MHOCQd-Dl6BNsPa.js → InsightsSection-CQRpIy9c-BVaWF-TR.js} +4 -4
  81. package/dist/assets/{IntegrationsSettingsPage-4qlL5Dsx-CBAx1IhA.js → IntegrationsSettingsPage-CDHIF3ky-BZdWjiMh.js} +3 -3
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-DqCtPykV-BP7AtPOL.js → InternationalWireSwiftDetailsPage-BTB0YTLP-Fw5hYyJd.js} +13 -13
  83. package/dist/assets/{InternationalWireVerificationPage-Cl-p0inO-CU9U1hDc.js → InternationalWireVerificationPage-DZAa5CXK-CShVs05a.js} +10 -10
  84. package/dist/assets/{InviteFormPage-L6j0rOBW-Bkkgowwi.js → InviteFormPage-CVIA_4cc-xvdMmRWy.js} +20 -20
  85. package/dist/assets/{InvitePageListView-KYjMIc4q-CxtFMX57.js → InvitePageListView-BapkK9dR-CMoNigd7.js} +40 -40
  86. package/dist/assets/InvitePeoplePage-ChM26gAd-3PSfXhTf.js +12 -0
  87. package/dist/assets/{InvoiceUploadSection-DZC4oscG-B4YE5xNw.js → InvoiceUploadSection-CfoxMKse-CDgcPY9V.js} +6 -6
  88. package/dist/assets/{IssueChargeCardPage-DMdZCfqA-DBP896EY.js → IssueChargeCardPage-DoNxoxCV-BuHBJdzr.js} +22 -22
  89. package/dist/assets/{LabeledAddressValue-CBOrzSsG-CM0OlDqv.js → LabeledAddressValue-DzKLuwO0-Dbmo8xwC.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-C-fJPbDr-BL1p3tu1.js +45 -0
  91. package/dist/assets/{LabeledControlledCheckBoxField-BoXsUqpR-DLWp6dS8.js → LabeledControlledCheckBoxField-BsXmJGaz-B9D7gdxU.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-CQPkrdRe-D2aM_mQ3.js → LabeledCreatableSingleSelectField-CNcoKtBi-DbNXS5w-.js} +2 -2
  93. package/dist/assets/{LabeledDocumentField-DEeeTuVw-DtYK1IoZ.js → LabeledDocumentField-DB-XX9hy-ARW_yKHV.js} +3 -3
  94. package/dist/assets/{LabeledDropDownFormattedTextField-DYRkxlY--BuLzW0MX.js → LabeledDropDownFormattedTextField-ChF-tfZl-CoOdklmM.js} +3 -3
  95. package/dist/assets/{LabeledText-DQiR_FIX-lqG2eZSL.js → LabeledText-DQjY46zj-CJXj8rFi.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-dgPgTmNg-6WGH99sZ.js → LabeledUserSingleSelectWithSubtitlesField-Dg_jyvIT-BII3s1HZ.js} +7 -7
  97. package/dist/assets/{LabeledZeniRolesDropDownField-azPB8idg-DSebK6bp.js → LabeledZeniRolesDropDownField-qeHXm7K1-iR_szjxt.js} +6 -6
  98. package/dist/assets/{LinkJETransactionPage-Ct0HcxvN-CrWgQPVX.js → LinkJETransactionPage-DWq96C-C-BScn3NVF.js} +6 -6
  99. package/dist/assets/{LowBalancePopup-Zvy2iURT-Be93-biw.js → LowBalancePopup-DIu4EJtv-FHHWLFWk.js} +4 -4
  100. package/dist/assets/{MagicLinkACHDetailsPage-BY6pEieF-SL-tIHm4.js → MagicLinkACHDetailsPage-0uTQmYPp-CFGb5gZH.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-BK5RZSiS-bzoMX_4e.js → MagicLinkDomesticWireDetailsPage-CtkSDg_U-DqPdzilp.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-hK5cNiNB-eGjgXzGf.js → MagicLinkInternationalWireDetailsPage-qNEvVVcm-C2m2KEe0.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-Drn_p982-Dd2HDoOF.js → MagicLinkSuccessPage-D4C3XF4W-EgVx2lLe.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-DRMHVOzF-fsnIT9fi.js → MagicLinkTitleSection-DXZCLfIM-2GWQnCnZ.js} +9 -9
  105. package/dist/assets/{MailingDetailsSection-DgdAYgpS-CpK2Zius.js → MailingDetailsSection-7_w5PfFQ-C9R3FLGa.js} +6 -6
  106. package/dist/assets/{MeetingCalenderPopup-CAh7iae0-CeH05vu8.js → MeetingCalenderPopup-2P6uhLqh-CkyOJaM-.js} +1 -1
  107. package/dist/assets/{Menu-bleLgSLu-CWe46wAv.js → Menu-Ya9EH9T1-XEx08cqQ.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-DRxmQCbq-DIkyF-zq.js → MyBankConnectionsSettingsPage-Bz9BP12B-B0raEGfA.js} +11 -11
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-BYLhb47G-nGsEvhoC.js → MyPendingActivationChargeCardListPage-BxFFCBYU-CmVzmveh.js} +2 -2
  110. package/dist/assets/{MyProfileSettingsPage-eVfCRTfx-jn-p1GeP.js → MyProfileSettingsPage-BRTEYBf1-BuzCCWQu.js} +11 -11
  111. package/dist/assets/{NavBarWithPicker-BE2MW7hB-DCPdpAcW.js → NavBarWithPicker-Cx1ldzdT-ByHGGAzI.js} +4 -4
  112. package/dist/assets/{NavigationArrow-eEaMttBX-Db8RfAC0.js → NavigationArrow-Cic_S7sL-CafjbEnx.js} +1 -1
  113. package/dist/assets/{NavigationDots-CNwL0a7I-Bu8Q_lGW.js → NavigationDots-BnqdhDar-BHuykGzD.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-CSWqCqAC-_iGexdlz.js → NewGlobalMerchantPage-BMLnV68V-Df2U2-Pi.js} +11 -11
  115. package/dist/assets/{NoDataChart-DNmdY5gQ-DtmYfS5g.js → NoDataChart-CyIzcvzb-CVVPhPRo.js} +3 -3
  116. package/dist/assets/{NoDataTable-DW2wAX3o-BpxgsISd.js → NoDataTable-Cf9Qv-ms-BIxVQmVT.js} +1 -1
  117. package/dist/assets/{NotFoundPage-BMJTG-tj-B4dub16Q.js → NotFoundPage-BP2jA51O-DvlpUk9Z.js} +4 -4
  118. package/dist/assets/{NotificationSettingsPage-Vd3UvdLu-DWC95tuC.js → NotificationSettingsPage-Bhj72XzL-DgHNUBYw.js} +17 -17
  119. package/dist/assets/NotificationsListConfig-BcRqz3T--CwofCBLm.js +1 -0
  120. package/dist/assets/{NotificationsPage-BaekDEw7-DQUXKS-e.js → NotificationsPage-DEQ0muyV-AFyu-A1B.js} +29 -29
  121. package/dist/assets/{OpExByVendorPage-DNyTA9nx-D4UEuNv3.js → OpExByVendorPage-BPvIdjMh-GjqInlE8.js} +6 -6
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-DbGdhTg8.js → OverlayContainerPage-Bmu909Fo-B4CijHVT.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-DbP4ybN4-CKFQr6An.js → PandLWithForecastPage-CgMYDel--CrwH5GHU.js} +6 -6
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Dd4Aen8j-BD8kr9-Q.js → PaymentAccountSetupBillingAddressSection-CfUpfrt6-DiMg5_6V.js} +12 -12
  125. package/dist/assets/{PeoplePage-B3n7ek2h-DHll679W.js → PeoplePage-BrL4O-03-BHA1i9-R.js} +18 -18
  126. package/dist/assets/{PortfolioAllocationFormPage-CzA_c7hR-DiZUSmD8.js → PortfolioAllocationFormPage-C24sa7Lv-D7dV2koR.js} +7 -7
  127. package/dist/assets/{PortfolioDetails-Drgv4Osg-Dgvv0ZCZ.js → PortfolioDetails-wAtPiO4w-C8Xq6LTb.js} +23 -23
  128. package/dist/assets/{ProductsCarousel-BnnfJR0o-BHYmKMl-.js → ProductsCarousel-B8KxzJsX-BAeIItJs.js} +5 -5
  129. package/dist/assets/{PromoBaseCards-BGHJivI8-Ch_pM2QM.js → PromoBaseCards-DKu8lmMb-CbitZiAU.js} +3 -3
  130. package/dist/assets/{QBOConnectionDialog-uiW9eeZu-BD1JBgoK.js → QBOConnectionDialog-CSRVcpvB-DsmFVlUU.js} +9 -9
  131. package/dist/assets/{QBOSetupSection-DPb0VAii-DxUqn74l.js → QBOSetupSection-CwO2OwTA-DfOK3FQy.js} +10 -10
  132. package/dist/assets/ReimbursementApprovalRuleDetailPage-DWAgRWah-DAeIJHt1.js +26 -0
  133. package/dist/assets/{ReimbursementApprovalRulesPage-C1AFF_DM-DXf_rFdp.js → ReimbursementApprovalRulesPage-CWZIqbqf-2nP7no61.js} +32 -32
  134. package/dist/assets/{ReimbursementDetailPage-Du6R1zje-CSDUqdF0.js → ReimbursementDetailPage-DaiOed8i-t4bX9i7-.js} +8 -8
  135. package/dist/assets/{ReimbursementPromoPage-CW9eyjp9-nAKl1tS9.js → ReimbursementPromoPage-CTpCa9C7-WAySoU1n.js} +6 -6
  136. package/dist/assets/{ReimbursementSetUpPage-CbPwgIqt-D2_CC-ZO.js → ReimbursementSetUpPage-Cd0w6zdZ-CapxuQlm.js} +3 -3
  137. package/dist/assets/ReimbursementsBulkReviewDrawerPage-D_IG6Yzl-B2GWCVK0.js +1 -0
  138. package/dist/assets/{ReloadCard-Dvn17Oxl-g6WmGwNe.js → ReloadCard-D8XT-nw--BGnVgOtj.js} +5 -5
  139. package/dist/assets/{ReportTableViewSelector-C5_qr5qe-CkGEy7jp.js → ReportTableViewSelector-kf12PTIw-_koMJS6q.js} +10 -10
  140. package/dist/assets/{ReportsPage-BNcymVwf-B4kpec4N.js → ReportsPage-D0dEACVc-CgqzQVRZ.js} +9 -9
  141. package/dist/assets/{RevenueChart-DILkui6c-CXkve67m.js → RevenueChart-D67Egnoj-B0BJYpf4.js} +14 -14
  142. package/dist/assets/{ReviewDetailsPage-ZYzvK95X-6VV1mxx9.js → ReviewDetailsPage-DX3JdY2D-BVW8q6gp.js} +5 -5
  143. package/dist/assets/{ReviewOverlay-DhUFI1ES-CEW_vmrb.js → ReviewOverlay-BUmIoEZp-D3xvXshe.js} +4 -4
  144. package/dist/assets/{RoleWithToolTip-_W95JBwt-BwsUqYYm.js → RoleWithToolTip-QUDWRgyn-DzrP2xLD.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-iQXV-V_H-CgwvY879.js → ScheduleDetailsFixedAssetsPage-ffFbqWqR-mWiNohG4.js} +4 -4
  146. package/dist/assets/{ScheduleDetailsPage-KgHwQGrw-zxlEzZA4.js → ScheduleDetailsPage-Btyinpxx-TW4CABi6.js} +3 -3
  147. package/dist/assets/{ScheduleSequenceTable-Bixq8Q7W-CVtRbbOD.js → ScheduleSequenceTable-nubG9ZPF-CmzJbQeN.js} +17 -17
  148. package/dist/assets/{ScreenRoutes-C9jejgZm.js → ScreenRoutes-BC18Q4eZ.js} +1 -1
  149. package/dist/assets/SetUpAccountSection-C9PPpmcc-puvAr14h.js +378 -0
  150. package/dist/assets/{SetUpDefaultSection-CI0mxu3H-BYUaSUWi.js → SetUpDefaultSection-D54P9sLQ-DIoImqvg.js} +9 -9
  151. package/dist/assets/{SignIn-DslenepV-Brtvbq9M.js → SignIn-DQERofSd-BPkKMSDj.js} +11 -11
  152. package/dist/assets/{SignInScreen-FXLaio9F.js → SignInScreen-BbeWg9hl.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-D7SzmCmM-BmkfIUQC.js → SpendManagementListViewPage-B9iJVZhK-Dd5zS51l.js} +10 -10
  154. package/dist/assets/{SpendManagementPerTabPage-DKaDr4mu-BnAetJZy.js → SpendManagementPerTabPage-DiduNPFx-BvN2qFiJ.js} +12 -12
  155. package/dist/assets/{SpendManagementSection-Ddfq2u6H-CJT5q3F6.js → SpendManagementSection-BPJDk9AQ-DNTgKL_h.js} +5 -5
  156. package/dist/assets/{SpendMgmtSetupAccountSection-CPnNzjr--DwOx73Ij.js → SpendMgmtSetupAccountSection-BVOwbOVv-BbEelpUf.js} +6 -6
  157. package/dist/assets/StatementItem-DPiBruWm-BTp46EGg.js +31 -0
  158. package/dist/assets/{StatementsPage-o7MvNKvd-DZTp-bUD.js → StatementsPage-BzG0fWr9-B7zKsVpb.js} +6 -6
  159. package/dist/assets/{StatusSwitcher-kWLQCCwS-DhdTyoS-.js → StatusSwitcher-aZiGS6I4-CW57CAir.js} +4 -4
  160. package/dist/assets/{SubTabSwitcher-BKm9FxhL-DTzufkEo.js → SubTabSwitcher-BPzCR9_G-CKWRfEmM.js} +1 -1
  161. package/dist/assets/{SummaryCard-DBMfNfN2-DoMsjoBW.js → SummaryCard-DE3DiW4z-DCcTNI78.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-D_wjK-S2-CzH2gZdk.js → TaskManagementPage-bmYzZzlx-BQOYF4T3.js} +14 -14
  163. package/dist/assets/{TimeRangeSwitcher-2vDR_AEV-DSoFwTB2.js → TimeRangeSwitcher-D10b_iT0-B6MHaMu9.js} +3 -3
  164. package/dist/assets/{TimeframeSwitcher-BB3_i5V0-DzvaUBYM.js → TimeframeSwitcher-w4308CL0-B-m8rZcD.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcherWithToggle-CdP0ViK8-Da6suGXu.js → TimeframeSwitcherWithToggle-DP7dCTZ--Dr3OM9sZ.js} +1 -1
  166. package/dist/assets/{TopExCard-BGgGFzmK-DUAgrWaA.js → TopExCard-C9Dwe5gi-HuLCC_VB.js} +6 -6
  167. package/dist/assets/{TopExDetailPage-CbzYG54M-BLhnnftr.js → TopExDetailPage-Ch4gEAFc-CW6a2lM7.js} +14 -14
  168. package/dist/assets/TransactionDetailPage-y3Jwxln6-CGGNkWbu.js +912 -0
  169. package/dist/assets/{TransactionList-C0xK6_zI-V0PqCTtq.js → TransactionList-Dy4LSOLF-DLQzM8h7.js} +5 -5
  170. package/dist/assets/{TransactionListBig-CIX6CdX--g3sGBymu.js → TransactionListBig-BOmqcsRt-CoBJs1L1.js} +13 -13
  171. package/dist/assets/{TransactionListPage-B7ppBJig-BHPhgPik.js → TransactionListPage-D1XobIP_-CQ1XF-sO.js} +4 -4
  172. package/dist/assets/TransactionVendorDetailPage-DNbFFCAy-DiSmfMU1.js +80 -0
  173. package/dist/assets/{TransferDrawerPage-DerGmul8-CSsNuNkb.js → TransferDrawerPage-DEK-tLwC-CMAkImaq.js} +19 -19
  174. package/dist/assets/{TreasuryOverviewPage-DW2gZwip-Dw5IScse.js → TreasuryOverviewPage-Bv8YOcOu-DgYbKZRI.js} +45 -45
  175. package/dist/assets/TreasuryPromoPage-BpJ4G2tW-wrKqn45d.js +477 -0
  176. package/dist/assets/{TreasurySetupPage-Bo0HQeeU-or7EVJcf.js → TreasurySetupPage-DmXhUnJ2-CTKxmbjB.js} +2 -2
  177. package/dist/assets/{TreasuryStatementsPage-DS_VK4WN-Djy_7rtt.js → TreasuryStatementsPage-iOhX7bQX-C-86zNAp.js} +3 -3
  178. package/dist/assets/{TreasuryTaxLetterPage-DgwqyL6v-DTOb7qDc.js → TreasuryTaxLetterPage-SKYFef4J-CxXJUgOP.js} +3 -3
  179. package/dist/assets/{TreasuryTransferOrReviewPage-ZrSACgLJ-B2exNOGA.js → TreasuryTransferOrReviewPage-BAQy6UbF-5smN8wwG.js} +42 -42
  180. package/dist/assets/{TrendChart-D07k3uRr-BizV2Doj.js → TrendChart-DrNmAOxp-D32D_fQx.js} +4 -4
  181. package/dist/assets/{TrendWithTransactions-ibwuOssC-DEIyFLX7.js → TrendWithTransactions-CFapbjqF-Tluomzgb.js} +5 -5
  182. package/dist/assets/{UncategorizedAccountsMappingPage-D1m2Ok2e-D-M_NIFe.js → UncategorizedAccountsMappingPage-BjyEIyD--q-mXglLO.js} +15 -15
  183. package/dist/assets/{UnitIntegrationPage-BJxRjjfK-8XeAb4ey.js → UnitIntegrationPage-CMRuNXKH-W-172t0m.js} +2 -2
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-DI_GZA8A-C0HW1ZE2.js → UploadAdditionalDocumentOverlay-BJNFsBN7-CW3s6tmn.js} +2 -2
  185. package/dist/assets/{Vendor2FAPopup-80vvc7gE-VuU8TUPK.js → Vendor2FAPopup-Dk_XUHkP-BfvRXa0R.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-CQcuiNPr-Y799WSgz.js → VendorACHDetailsPage-DS1-IldK-BBUTN6DM.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-Dx_yfZDH-BV9MTsdg.js → VendorDetailPage-CzECD1Tt-BxCeFQBa.js} +8 -8
  188. package/dist/assets/{VendorDomesticWireDetailsPage-DN5x3F_Z-DwYK3lBf.js → VendorDomesticWireDetailsPage-Bd-dOP2Q-B1c_niFG.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-8Jz187lD-CD8Sjk1O.js → VendorFiling1099EditablePage-C7D_fWCV-ar_0EIM_.js} +14 -14
  190. package/dist/assets/{VendorFirstReviewPage-CokvYaRq-COLCPdNO.js → VendorFirstReviewPage-B4YffYJO-BW-F4-km.js} +10 -10
  191. package/dist/assets/{VendorInternationalWireDetailsPage-lo9l2Q88-CVlhIT2D.js → VendorInternationalWireDetailsPage-D1i4RwUe-BBAccWWe.js} +7 -7
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CPj3zrDk-BL1wN9Up.js → VendorInternationalWireSwiftDetailsPage-QqA8DADQ-CetqwMx2.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-BqoW4DlP-DbQ0LHxR.js → VendorsAccountsSection-C8qo0vKx-DOST9l3F.js} +2 -2
  194. package/dist/assets/{VerifyDevice-D8iPRJ3k-DSuAMuQv.js → VerifyDevice-Cku9_tdW-BTj-mHAb.js} +1 -1
  195. package/dist/assets/VideoPlayer-DqxblGWn-BXG0P4e3.js +38 -0
  196. package/dist/assets/VideoPopup-8253nBrT-DoJHFZMN.js +31 -0
  197. package/dist/assets/{WarningsDrawerPage-qYWFsE3s-CYfk6-4G.js → WarningsDrawerPage-B08Au4yQ-B9IzdYhz.js} +7 -7
  198. package/dist/assets/{ZeniAccountDetailPage-BL2a5Dmz-C1StQxM9.js → ZeniAccountDetailPage-Dx-w2w6D-4cfDv73S.js} +16 -16
  199. package/dist/assets/{ZeniAccountListViewPage-CWqzDWcO-DWbBDvt7.js → ZeniAccountListViewPage-DH4BnQ7k-CHjigIuG.js} +13 -13
  200. package/dist/assets/ZeniAccountNavBarPieces-ce5jAGIl-DVfSolpZ.js +14 -0
  201. package/dist/assets/{ZeniAccountPromoPage-CBm3w0kN-BE1XLlB5.js → ZeniAccountPromoPage-D4J2Yoil-BDHpq4Eb.js} +9 -9
  202. package/dist/assets/{ZeniAccountSetupPage-C5VzT9lH-D-R3XfH4.js → ZeniAccountSetupPage-DTkO1ASr-1XYqtTaw.js} +3 -3
  203. package/dist/assets/{ZeniCopyright-BUctH39C-Bm9h8mC0.js → ZeniCopyright-BiSq0yhI-CQbT1WRc.js} +1 -1
  204. package/dist/assets/ZeniTransferAmountSlider-B-iWjIM--_5mAEjc_.js +63 -0
  205. package/dist/assets/{analyticsHelper-B3uAu0es-DeP2G2Ik.js → analyticsHelper-Dc3DtVTm-Y5fPzPLq.js} +1 -1
  206. package/dist/assets/{analyticsHelper-BYK4WyNL.js → analyticsHelper-lnjVamrT.js} +1 -1
  207. package/dist/assets/{chartTypes-CJmQ6FtI-CvvCwGfo.js → chartTypes-C7uaeRCc-CtqAquQd.js} +1 -1
  208. package/dist/assets/{commonDimensions-WRL2ZVK_-DmUd7tEJ.js → commonDimensions-MaxjMSVa-n5Ul9FT7.js} +1 -1
  209. package/dist/assets/{detailCommon-Dfxas1Kf-KP_O7bXD.js → detailCommon-OK9JA2hc-EAouVA2X.js} +6 -6
  210. package/dist/assets/{downloadPdf-B1f0mDl2-OM_u0J6Y.js → downloadPdf-QtapKpnq-D53WP2BZ.js} +1 -1
  211. package/dist/assets/{index-BniN3Vor.js → index-4y_mNX1u.js} +3415 -3415
  212. package/dist/assets/{mapLoadingInProgressToTreeNode-BG784RuM-Wbre_Hl-.js → mapLoadingInProgressToTreeNode-pvoDlh5w-BH0I_ZXQ.js} +1 -1
  213. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CtIgxsPZ-DYIAdHUn.js → mapSectionWithAcOnlyToTreeNode-CVUpGQKE-B2Y7wF15.js} +1 -1
  214. package/dist/assets/{mapSpacerToTreeNode-CcgVbOH5-CjwEwDzY.js → mapSpacerToTreeNode-P_HzYMUQ-T8bNyKbZ.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-CU583ICK-CIqsRXJ6.js → mapTimeframeBalancesToTreeNode-B8xJouuF-0J2xTAj5.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-DTlwFauL-B6siwyjX.js → mapTimeframeBalancesToTreeNode-CB6RE8w9-CAzsziRN.js} +1 -1
  217. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-B_n9jWVz-CRbQQm43.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BAAatv-Y-C-hpmEKv.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-DTfegixr-CpjReCGZ.js → toCOABalancesWithID-JkvOa9nR-BuY_FDkW.js} +1 -1
  219. package/dist/assets/{toChartData-CH5DcWUY-PR9QaIUj.js → toChartData-CEfu5Lvp-ztIWW0aM.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-BdPkQoh7-D4MVhsbu.js → treasuryColorHelper-Bvcahv9r-CJj1lXeK.js} +1 -1
  221. package/dist/assets/{uploadAttachment-COwu5Mqo-DugifZEA.js → uploadAttachment-DNrYcaTL-7XpOhOp_.js} +14 -14
  222. package/dist/assets/{uploadReceipts-dxsKhm9I-sfR1TpBq.js → uploadReceipts-dxsKhm9I-Dv2hG-YC.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +4 -4
  225. package/dist/assets/ArAgingChart-tm5ZiNuY-CuZe4uOg.js +0 -24
  226. package/dist/assets/BillPayApprovalRuleDetailPage-fZnmOmyN-BLBpoheC.js +0 -27
  227. package/dist/assets/CardNumberSubText-1BRQQyfd-DZzrWvjT.js +0 -21
  228. package/dist/assets/ChargeCardUtils-Wp4Ko18L-CJSY7Dbi.js +0 -1
  229. package/dist/assets/CustomerOnboardingContainerPage-BB4D77z8-C7BS9mq1.js +0 -1
  230. package/dist/assets/DepositAccTransactionListPage-2xDjOUwm-tV7Tpf2Y.js +0 -66
  231. package/dist/assets/ExpenseAutomationPage-Cz3JsW-E-CUtMz5u1.js +0 -1650
  232. package/dist/assets/InvitePeoplePage-CbZqVsTp-fnBnGPLF.js +0 -12
  233. package/dist/assets/LabeledAddressValueField-YuLcra47-c2Miur6B.js +0 -45
  234. package/dist/assets/NotificationsListConfig-DbHYPEWZ-DsOA0hcX.js +0 -1
  235. package/dist/assets/ReimbursementApprovalRuleDetailPage-Cvok7KBA-B5vRXui9.js +0 -26
  236. package/dist/assets/ReimbursementsBulkReviewDrawerPage-DmRIywf6-DFws7cUz.js +0 -1
  237. package/dist/assets/SetUpAccountSection-D8FMVhkL-CXn_wRED.js +0 -378
  238. package/dist/assets/StatementItem-B2uPIFUk-DW6LPk9K.js +0 -31
  239. package/dist/assets/TransactionDetailPage-C-CfEtCO-Ca6Qq7Yb.js +0 -912
  240. package/dist/assets/TransactionVendorDetailPage---HGdQiZ--z0wQoiv.js +0 -80
  241. package/dist/assets/TreasuryPromoPage-DzqdEmPJ-DORtHtoQ.js +0 -439
  242. package/dist/assets/VideoPopup-SdlRHLkM-C8u22oza.js +0 -31
  243. package/dist/assets/ZeniAccountNavBarPieces-C0MyICK2-CNlrzs66.js +0 -14
  244. package/dist/assets/ZeniTransferAmountSlider-q37z6XvR-DEgZ2UH_.js +0 -63
@@ -1,4 +1,4 @@
1
- import{u as Re,e as Q,B as Y,a as Ke,a2 as De,ca as Qe,l as O,j as t,aX as et,F as tt,a4 as it,C as x,o as n,k6 as at,k7 as nt,k8 as lt,cg as ze,cd as ot,cG as rt,fa as dt,fb as st,cf as ke,fJ as ct,k9 as pt,cj as mt,cL as Ve,ck as ut,cM as Ae,cV as Oe,v as ge,cZ as ht,q as u,ap as yt,am as be,g as Ee,n as gt,s as We}from"./index-BniN3Vor.js";import{b as G,n as d}from"./vendor-rkTZJa59.js";import{Y as xt}from"./LabeledDocumentField-DEeeTuVw-DtYK1IoZ.js";import{S as ie}from"./LabeledText-DQiR_FIX-lqG2eZSL.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const ft={progressBarWidth:new x(343,726)},bt=({pageIndex:e})=>{const i=Q(),a=Re(),s=Y.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs(vt,{children:[t.jsx(at,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx($t,{children:h.map((p,l)=>t.jsx(Ct,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Le,{children:p})},l))})]}):t.jsxs(wt,{windowSize:i,children:[t.jsx(nt,{coloredSectionCount:e,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1}),t.jsx(St,{children:h.map((p,l)=>t.jsx(jt,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Le,{children:p})},p))})]})},wt=d.div`
1
+ import{u as Re,e as Q,M as Y,a as Ke,a2 as Fe,ca as Qe,l as L,j as t,aX as et,F as tt,a4 as it,C as x,o as n,k6 as at,k7 as nt,k8 as lt,cg as ze,cd as ot,cG as rt,fb as dt,fc as st,cf as ke,fK as ct,k9 as pt,cj as mt,cL as Ve,ck as ut,cM as Ae,cV as Le,v as ge,cZ as ht,r as u,ap as yt,am as be,f as Ee,B as gt,t as We}from"./index-4y_mNX1u.js";import{b as J,n as d}from"./vendor-rkTZJa59.js";import{Y as xt}from"./LabeledDocumentField-DB-XX9hy-ARW_yKHV.js";import{S as ie}from"./LabeledText-DQjY46zj-CJXj8rFi.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const ft={progressBarWidth:new x(343,726)},bt=({pageIndex:e})=>{const i=Q(),a=Re(),s=Y.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs(vt,{children:[t.jsx(at,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx($t,{children:h.map((p,l)=>t.jsx(Ct,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Oe,{children:p})},l))})]}):t.jsxs(wt,{windowSize:i,children:[t.jsx(nt,{coloredSectionCount:e,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1}),t.jsx(St,{children:h.map((p,l)=>t.jsx(jt,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Oe,{children:p})},p))})]})},wt=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-top: ${n.sp3};
@@ -24,7 +24,7 @@ import{u as Re,e as Q,B as Y,a as Ke,a2 as De,ca as Qe,l as O,j as t,aX as et,F
24
24
  align-items: center;
25
25
  text-align: ${e=>e.stateIndex===0?"left":e.stateIndex===1?"center":"right"};
26
26
  color: ${e=>e.isRelevant?e.theme.colors.primary:e.theme.colors.grey2};
27
- `,Le=d(yt)``,$t=d.div`
27
+ `,Oe=d(yt)``,$t=d.div`
28
28
  display: flex;
29
29
  flex-direction: column;
30
30
  width: 100%;
@@ -38,7 +38,7 @@ import{u as Re,e as Q,B as Y,a as Ke,a2 as De,ca as Qe,l as O,j as t,aX as et,F
38
38
  position: relative;
39
39
  height: ${e=>`${e.perSectionHeight}%`};
40
40
  color: ${e=>e.isRelevant?e.theme.colors.primary:e.theme.colors.grey2};
41
- `,I={containerWidth:new x(343,580,726),labelWidth:new x(120,160,160),largeLabelWidth:new x(150,228,228),largeLabelPickerWidth:new x(100,180,180),paddingBottom:new x(u[3],u[2]),labelMarginLeftPicker:new x(u[3],u[4]),labelMarginRightPicker:new x(u[3],u[4]),labelMarginTopPicker:new x(u[2],u[2]),labeledFieldPaddingLeft:new x(u[0],u[0]),labeledFieldPaddingRight:new x(u[2],u[2]),labeledFieldPaddingTop:new x(u[2],u[2]),labeledFieldPaddingBottom:new x(u[2],u[2]),infoLabelPaddingRight:new x(u[0],u[3]),infoLabelMarginTop:new x(u[1],u[0])},V=(e,i)=>`${e}.${i}`,Pt=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:T,deleteFileStatusById:P,updateFileStatusById:f,onClickAddAccount:w})=>{const o=Q(),{spendManagement:D,dateFormat:y,common:$}=Y.getLocalizedStrings(),C=D.billPay.billDetails,X=y.visual.defaultInput,re=D.zeniAccounts.expressPay,de=$.documents,_=I.largeLabelWidth.value(o),[g,Z]=G.useState(!1),H=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(O.NEW_INTERNATIONAL_METHOD_SUBTEXT)===!1),k=r=>s.find(m=>m.id===r),N=r=>Ve(k(r)),se=()=>{let r=[];return i?.paymentType?.method.includes("wire")===!0?r=s.filter(m=>!!m.bankRoutingNumberWireTransfer).map(m=>m.id):r=s.filter(m=>!!m.bankRoutingNumberAch).map(m=>m.id),r},ce=r=>{const m=k(r),j=Y.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(xe,{children:[t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankRoutingNumber}),t.jsx(W,{children:m?.bankRoutingNumberAch??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankName}),t.jsx(W,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankAccountNumber}),t.jsx(W,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):i?.paymentType?.method.includes("wire")===!0?i.paymentType?.method.includes("international")===!0?t.jsx(xe,{children:m?.piLabels.map(U=>t.jsxs(q,{children:[t.jsxs(E,{children:[U.name,j.paymentDetails.colon]}),t.jsx(W,{children:U.value})]},U.name))}):t.jsxs(xe,{children:[t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.wireDetails.bankRoutingNumber}),t.jsx(W,{children:m?.bankRoutingNumberWireTransfer??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankName}),t.jsx(W,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.wireDetails.accountNumber}),t.jsx(W,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):""};return t.jsxs(t.Fragment,{children:[t.jsx(It,{children:C.paymentDetailsTitle}),t.jsxs(Tt,{windowSize:o,children:[t.jsx(rt,{label:{label:C.withdrawFrom,width:_,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:ke(C.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(r,m)=>st(h,r,m),valueToSubLabels:(r,m)=>dt(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(J,{}),t.jsx(ct,{showAdditionalInfoLabel:!1,label:{label:C.amount,width:_},formattedTextField:{type:"number",name:V(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:ke(C.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(J,{}),t.jsx(pt,{label:{label:C.paymentMethod,width:I.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:V(e,"paymentMethod"),placeholder:C.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:H,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(J,{}),t.jsx(mt,{label:{label:C.paymentDate,width:I.labelWidth.value(o)},style:{paddingBottom:I.paddingBottom.valuePx(o),width:"auto"},dateField:{name:V(e,"paymentDate"),placeholder:C.paymentDate,dateFormat:X,autoComplete:"off",minDate:O.dateNow(),registerOptions:{required:!0}}}),t.jsx(J,{}),t.jsx(ze,{label:{label:C.paymentTo,width:_},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:V(e,"paymentTo"),placeholder:C.selectAccount,getTooltipInfo:ce,menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:w,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:N},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?se():[]},registerOptions:{required:!0,validate:r=>r?.selectedOption!=null}}}),t.jsx(J,{}),t.jsx(xt,{name:V(e,"receipt"),sizeLimit:ut,deleteFileStatusById:P,updateFileStatusById:f,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(Ft,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(J,{})]})]})},It=d(be)`
41
+ `,I={containerWidth:new x(343,580,726),labelWidth:new x(120,160,160),largeLabelWidth:new x(150,228,228),largeLabelPickerWidth:new x(100,180,180),paddingBottom:new x(u[3],u[2]),labelMarginLeftPicker:new x(u[3],u[4]),labelMarginRightPicker:new x(u[3],u[4]),labelMarginTopPicker:new x(u[2],u[2]),labeledFieldPaddingLeft:new x(u[0],u[0]),labeledFieldPaddingRight:new x(u[2],u[2]),labeledFieldPaddingTop:new x(u[2],u[2]),labeledFieldPaddingBottom:new x(u[2],u[2]),infoLabelPaddingRight:new x(u[0],u[3]),infoLabelMarginTop:new x(u[1],u[0])},V=(e,i)=>`${e}.${i}`,Pt=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:T,deleteFileStatusById:P,updateFileStatusById:f,onClickAddAccount:w})=>{const o=Q(),{spendManagement:F,dateFormat:y,common:$}=Y.getLocalizedStrings(),C=F.billPay.billDetails,X=y.visual.defaultInput,re=F.zeniAccounts.expressPay,de=$.documents,_=I.largeLabelWidth.value(o),[g,G]=J.useState(!1),H=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(L.NEW_INTERNATIONAL_METHOD_SUBTEXT)===!1),k=r=>s.find(m=>m.id===r),N=r=>Ve(k(r)),se=()=>{let r=[];return i?.paymentType?.method.includes("wire")===!0?r=s.filter(m=>!!m.bankRoutingNumberWireTransfer).map(m=>m.id):r=s.filter(m=>!!m.bankRoutingNumberAch).map(m=>m.id),r},ce=r=>{const m=k(r),j=Y.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(xe,{children:[t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankRoutingNumber}),t.jsx(W,{children:m?.bankRoutingNumberAch??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankName}),t.jsx(W,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankAccountNumber}),t.jsx(W,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):i?.paymentType?.method.includes("wire")===!0?i.paymentType?.method.includes("international")===!0?t.jsx(xe,{children:m?.piLabels.map(U=>t.jsxs(q,{children:[t.jsxs(E,{children:[U.name,j.paymentDetails.colon]}),t.jsx(W,{children:U.value})]},U.name))}):t.jsxs(xe,{children:[t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.wireDetails.bankRoutingNumber}),t.jsx(W,{children:m?.bankRoutingNumberWireTransfer??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankName}),t.jsx(W,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.wireDetails.accountNumber}),t.jsx(W,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):""};return t.jsxs(t.Fragment,{children:[t.jsx(It,{children:C.paymentDetailsTitle}),t.jsxs(Tt,{windowSize:o,children:[t.jsx(rt,{label:{label:C.withdrawFrom,width:_,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:ke(C.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(r,m)=>st(h,r,m),valueToSubLabels:(r,m)=>dt(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(Z,{}),t.jsx(ct,{showAdditionalInfoLabel:!1,label:{label:C.amount,width:_},formattedTextField:{type:"number",name:V(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:ke(C.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(Z,{}),t.jsx(pt,{label:{label:C.paymentMethod,width:I.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:V(e,"paymentMethod"),placeholder:C.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:H,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(Z,{}),t.jsx(mt,{label:{label:C.paymentDate,width:I.labelWidth.value(o)},style:{paddingBottom:I.paddingBottom.valuePx(o),width:"auto"},dateField:{name:V(e,"paymentDate"),placeholder:C.paymentDate,dateFormat:X,autoComplete:"off",minDate:L.dateNow(),registerOptions:{required:!0}}}),t.jsx(Z,{}),t.jsx(ze,{label:{label:C.paymentTo,width:_},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:V(e,"paymentTo"),placeholder:C.selectAccount,getTooltipInfo:ce,menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:w,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:N},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?se():[]},registerOptions:{required:!0,validate:r=>r?.selectedOption!=null}}}),t.jsx(Z,{}),t.jsx(xt,{name:V(e,"receipt"),sizeLimit:ut,deleteFileStatusById:P,updateFileStatusById:f,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=>G(r),isOptional:!0,style:T!=null?{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}:void 0},V(e,"receipt")),T==null?t.jsx(Dt,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(Z,{})]})]})},It=d(be)`
42
42
  color: ${e=>e.theme.colors.primary};
43
43
  margin-bottom: ${n.sp3};
44
44
  `,Tt=d.div`
@@ -49,7 +49,7 @@ import{u as Re,e as Q,B as Y,a as Ke,a2 as De,ca as Qe,l as O,j as t,aX as et,F
49
49
  box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
50
50
  border-radius: ${n.sp2};
51
51
  width: ${e=>I.containerWidth.valuePx(e.windowSize)};
52
- `,J=d.div`
52
+ `,Z=d.div`
53
53
  display: flex;
54
54
  flex: 1;
55
55
  background-color: ${e=>e.theme.colors.grey3};
@@ -73,16 +73,16 @@ import{u as Re,e as Q,B as Y,a as Ke,a2 as De,ca as Qe,l as O,j as t,aX as et,F
73
73
  display: flex;
74
74
  justify-content: space-between;
75
75
  width: 100%;
76
- `,Ft=d(gt)`
76
+ `,Dt=d(gt)`
77
77
  padding: ${n.sp1} ${n.sp4};
78
78
  background: ${e=>e.theme.colors.grey4};
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
- `,Dt={largeLabelWidth:new x(150,210,210)},ae=(e,i)=>`${e}.${i}`,kt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=Q(),l=Y.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,T=Dt.largeLabelWidth.value(p),P=G.useRef();G.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&P.current?.(At(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const f={vendorSearchAutoCompleteData:s,loadOptions:(y,$)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),P.current=$}},w=f?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="Not-Started"),o={defaultOptions:qe(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(Ot,{children:l.recipientSectionTitle}),t.jsx(Lt,{children:t.jsxs(Nt,{children:[t.jsx(lt,{label:{label:l.recipientName,width:T},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ae(e,"recipient"),placeholder:p==="small"?l.placeholders.recipientNameMobile:l.placeholders.recipientName,valueToId:y=>y,defaultValue:{...o},style:{width:"100%"},customStyleConfig:D,registerOptions:{required:!0,validate:y=>y!=null&&!!y.selectedOption},loadOptions:f?.loadOptions,isOptionsLoading:w,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ae(e,"recipient")),t.jsx(Ne,{}),t.jsx(ze,{label:{label:l.recipientType,width:T},singleSelectField:{singleSelect:{name:ae(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:y=>i.find($=>$.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(ot,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:T},text:{type:"email",name:ae(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},qe=(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??""}]:[]},At=e=>e?.vendor.map(i=>({label:i.name,value:i.zeniId,zeniId:i.zeniId}))??[],Ot=d(be)`
82
+ `,Ft={largeLabelWidth:new x(150,210,210)},ae=(e,i)=>`${e}.${i}`,kt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=Q(),l=Y.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,T=Ft.largeLabelWidth.value(p),P=J.useRef();J.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&P.current?.(At(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const f={vendorSearchAutoCompleteData:s,loadOptions:(y,$)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),P.current=$}},w=f?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="Not-Started"),o={defaultOptions:qe(a?.vendorId,a?.vendorName,s?.entityAutoCompleteView),selectedOption:a?.vendorId??a?.vendorName??""},F={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(Lt,{children:l.recipientSectionTitle}),t.jsx(Ot,{children:t.jsxs(Nt,{children:[t.jsx(lt,{label:{label:l.recipientName,width:T},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ae(e,"recipient"),placeholder:p==="small"?l.placeholders.recipientNameMobile:l.placeholders.recipientName,valueToId:y=>y,defaultValue:{...o},style:{width:"100%"},customStyleConfig:F,registerOptions:{required:!0,validate:y=>y!=null&&!!y.selectedOption},loadOptions:f?.loadOptions,isOptionsLoading:w,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ae(e,"recipient")),t.jsx(Ne,{}),t.jsx(ze,{label:{label:l.recipientType,width:T},singleSelectField:{singleSelect:{name:ae(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:y=>i.find($=>$.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(ot,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:T},text:{type:"email",name:ae(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},qe=(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??""}]:[]},At=e=>e?.vendor.map(i=>({label:i.name,value:i.zeniId,zeniId:i.zeniId}))??[],Lt=d(be)`
83
83
  color: ${e=>e.theme.colors.primary};
84
84
  margin-bottom: ${n.sp3};
85
- `,Lt=d.div`
85
+ `,Ot=d.div`
86
86
  display: flex;
87
87
  flex-direction: column;
88
88
  `,Nt=d.div`
@@ -98,7 +98,7 @@ import{u as Re,e as Q,B as Y,a as Ke,a2 as De,ca as Qe,l as O,j as t,aX as et,F
98
98
  background-color: ${e=>e.theme.colors.grey3};
99
99
  min-height: 1px;
100
100
  max-height: 1px;
101
- `,oe={containerWidth:new x(343,580,726),largeLabelWidth:new x(150,215,215),reviewContainerMarginLeft:new x(u[3],u[6]),reviewContainerMarginRight:new x(u[3],u[8])},Mt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=Q(),p=oe.largeLabelWidth.value(h),{billPay:l}=Y.getLocalizedStrings().spendManagement,{dateFormat:T,common:P}=Y.getLocalizedStrings(),f=l.billDetails,w=i?.paymentType,o=T.visual.MMMDCommaYYYYformat,D={amount:i?.amount?.amount??0,currencyCode:P.currency.currencyCode,currencySymbol:P.currency.currencySymbol},y=Ve(a.find(X=>X.id===i?.paymentToAccountId)),$=i?.paymentDate,C=Ae(w?.method??"");return t.jsx(Wt,{children:t.jsxs(qt,{windowSize:h,style:s,children:[t.jsxs(_t,{children:[t.jsx(ne,{children:f.pay}),t.jsx(ne,{children:t.jsx(Oe,{amount:D,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ne,{children:f.to}),t.jsx(ne,{children:e})]}),t.jsxs(Yt,{windowSize:h,children:[t.jsx(ie,{label:{label:f.withdrawFrom,width:p},style:{width:"auto",gap:u[3]},value:i?.withdrawFrom!=null?ht(i.withdrawFrom,h):P.strings.empty}),t.jsx(fe,{}),t.jsx(ie,{label:{label:f.paymentMethod,width:p},style:{width:"auto"},value:Ae(w?.method??"")}),t.jsx(fe,{}),$!=null?t.jsxs(t.Fragment,{children:[t.jsx(ie,{label:{label:f.paymentDate,width:p},style:{width:"auto"},value:$.format(o),additionalInfoLabel:`${f.estimatedArrival}${O.zeniDate(O.getNextNthWorkingDay($.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${C.length>0?`${C} `:""}${f.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${f.deliveryTimeUnits})`}),t.jsx(fe,{})]}):null,t.jsx(ie,{label:{label:f.paymentTo,width:p},style:{width:"auto"},value:y??""})]}),t.jsx(Rt,{children:t.jsxs(zt,{windowSize:h,children:[t.jsx(Vt,{children:t.jsx(Bt,{children:l.paymentDetails.total})}),t.jsx(Et,{children:t.jsx(Oe,{amount:O.toAmount(D.amount,D.currencyCode,D.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},Bt=d.div``,Rt=d.div`
101
+ `,oe={containerWidth:new x(343,580,726),largeLabelWidth:new x(150,215,215),reviewContainerMarginLeft:new x(u[3],u[6]),reviewContainerMarginRight:new x(u[3],u[8])},Mt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=Q(),p=oe.largeLabelWidth.value(h),{billPay:l}=Y.getLocalizedStrings().spendManagement,{dateFormat:T,common:P}=Y.getLocalizedStrings(),f=l.billDetails,w=i?.paymentType,o=T.visual.MMMDCommaYYYYformat,F={amount:i?.amount?.amount??0,currencyCode:P.currency.currencyCode,currencySymbol:P.currency.currencySymbol},y=Ve(a.find(X=>X.id===i?.paymentToAccountId)),$=i?.paymentDate,C=Ae(w?.method??"");return t.jsx(Wt,{children:t.jsxs(qt,{windowSize:h,style:s,children:[t.jsxs(_t,{children:[t.jsx(ne,{children:f.pay}),t.jsx(ne,{children:t.jsx(Le,{amount:F,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ne,{children:f.to}),t.jsx(ne,{children:e})]}),t.jsxs(Yt,{windowSize:h,children:[t.jsx(ie,{label:{label:f.withdrawFrom,width:p},style:{width:"auto",gap:u[3]},value:i?.withdrawFrom!=null?ht(i.withdrawFrom,h):P.strings.empty}),t.jsx(fe,{}),t.jsx(ie,{label:{label:f.paymentMethod,width:p},style:{width:"auto"},value:Ae(w?.method??"")}),t.jsx(fe,{}),$!=null?t.jsxs(t.Fragment,{children:[t.jsx(ie,{label:{label:f.paymentDate,width:p},style:{width:"auto"},value:$.format(o),additionalInfoLabel:`${f.estimatedArrival}${L.zeniDate(L.getNextNthWorkingDay($.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${C.length>0?`${C} `:""}${f.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${f.deliveryTimeUnits})`}),t.jsx(fe,{})]}):null,t.jsx(ie,{label:{label:f.paymentTo,width:p},style:{width:"auto"},value:y??""})]}),t.jsx(Rt,{children:t.jsxs(zt,{windowSize:h,children:[t.jsx(Vt,{children:t.jsx(Bt,{children:l.paymentDetails.total})}),t.jsx(Et,{children:t.jsx(Le,{amount:L.toAmount(F.amount,F.currencyCode,F.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},Bt=d.div``,Rt=d.div`
102
102
  display: flex;
103
103
  width: 100%;
104
104
  box-sizing: border-box;
@@ -157,7 +157,7 @@ import{u as Re,e as Q,B as Y,a as Ke,a2 as De,ca as Qe,l as O,j as t,aX as et,F
157
157
  display: flex;
158
158
  color: ${e=>e.theme.colors.primary};
159
159
  margin-right: ${n.sp1};
160
- `,Me="expressPayPage",Ht=e=>`${e}_form`,L="recipientDetails",F="paymentDetails",le={buttonWidth:new x(160,140),largeButtonWidth:new x(166,166)},oi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:T,onBackClick:P,saveVendorDetailLocalData:f,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:D,initializeVendorAddress:y,vendorSearchAutoCompleteData:$,vendorSearchAutoCompleteActions:C,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:_,expressPayLocalData:g,vendorTypeList:Z,allPaymentMethods:H,paymentToOptions:k,withdrawFromList:N,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:U}=e,[v,ee]=G.useState(0),Ye=Re(),K=Q(),{common:we,spendManagement:_e}=Y.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=_e.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=_,M=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,$e=Object.assign({},Se??je),He=M?.vendorName,Ce=N.find(c=>c.id===s),te=Ke({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(Z,N,k,Ce,H,M,g,j,$?.entityAutoCompleteView),values:Be(Z,N,k,Ce,H,M,g,j,$?.entityAutoCompleteView)}),Pe=De($e.saveStatus?.fetchState),Ie=De(m);G.useEffect(()=>{const c=te.watch((S,{name:b})=>{b!=null&&S!=null&&Qe(()=>Ue(b,S))});return()=>{c.unsubscribe()}}),G.useEffect(()=>{Pe==="In-Progress"&&U==="Completed"&&(v===0?(ee(1),o?.(g?.vendorId)):v===1&&ee(2)),Ie==="In-Progress"&&m==="Completed"&&P(g?.vendorId)},[Pe,U,v,o,g?.vendorId,Ie,m,P]);const Ue=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[L].recipient.selectedOption,A=$?.entityAutoCompleteView.vendor.find(B=>B.zeniId===b);Je(S),y(),M?.vendorId!==b&&A!=null&&(l?.(b),he(S,!1,k,b))}else if(c.includes("recipient"))ue(S);else{const b=S[F].paymentMethod?.method,A=g?.paymentType?.method,B=b!=null&&A!=null&&(b.toLowerCase().includes("ach")&&A.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&A.toLowerCase().includes("ach"));he(S,B,k,g?.vendorId)}},Je=c=>{const S=c[L].recipient.selectedOption,b=$?.entityAutoCompleteView.vendor.find(A=>A.id===S)!=null;if(S!=null&&b===!0){T?.(S),he(c,!1,k,S);return}ue(c,!0)},ue=(c,S)=>{const b=M?.vendorId,A=$?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,B=Ut(c,A===!0?b:void 0,M,S);f?.(B,b)},he=(c,S,b,A)=>{const B=(()=>{let R=[];return c[F].paymentMethod?.method.includes("wire")===!0?R=b.filter(z=>!!z.bankRoutingNumberWireTransfer).map(z=>z.id):R=b.filter(z=>!!z.bankRoutingNumberAch).map(z=>z.id),R})(),ye=b.find(R=>R.id===c[F]?.paymentTo?.selectedOption),Ze={vendorId:A,amount:{amount:c[F].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[F].paymentDate?O.zeniDate(c[F].paymentDate.toString()):O.dateNow(),paymentType:c[F]?.paymentMethod!=null?c[F]?.paymentMethod:void 0,paymentToAccountId:S?B[0]:ye?.id,withdrawFrom:N.find(R=>R.id===c[F]?.withdrawFrom?.selectedOption),receiptFileId:c[F].receipt?.fileId};w?.(Ze)},Te=te.handleSubmit(()=>{if(v===0||v===1){a.trackExpressPayNextClick(v===0?"Recipient Details":"Payment Details");const c=te.getValues();ue(c),p(g?.vendorId)}else a.trackExpressPayScheduleClick(),D()}),Ge=()=>{v===2?ee(1):P(g?.vendorId)},Xe=()=>{v===0?P(g?.vendorId):ee(v===1?0:1)},Fe={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?k.find(c=>c.id===g?.paymentToAccountId):void 0,paymentDate:g?.paymentDate,paymentType:g?.paymentType??H?.[0],recipientAmount:g?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(et,{title:me.pageTitle,onBackClick:Xe,backgroundColor:Ye.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Jt,{windowSize:K,children:[t.jsx(bt,{pageIndex:v}),t.jsx(tt,{...te,children:t.jsx("form",{id:Me,onSubmit:Te,children:v===0?t.jsx(kt,{sectionId:L,vendorTypeList:Z,formLocalData:M,vendorSearchAutoCompleteData:$,vendorSearchAutoCompleteActions:C}):v===1?t.jsx(Pt,{sectionId:F,paymentDetails:Fe,paymentToOptions:k,allPaymentMethods:H,withdrawFromList:N,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(Mt,{reviewDetails:g,paymentToOptions:k,vendorName:He}):null})})]}),t.jsx(it,{formId:Ht(Me),style:{width:"100%"},primaryBtn:{label:v===2?O.dateNow().isSame(g?.paymentDate,"date")?me.sendMoney:me.schedulePayment:pe.next,isLoading:v===0||v===1?$e.saveStatus?.fetchState==="In-Progress":m==="In-Progress",style:{width:v===2?le.largeButtonWidth.value(K):le.buttonWidth.value(K),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Te()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?le.largeButtonWidth.value(K):le.buttonWidth.value(K),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Ge}})]})},Be=(e,i,a,s,h,p,l,T,P)=>{const f=(()=>{let w=[];return l?.paymentType?.method.includes("wire")===!0?w=a.filter(o=>!!o.bankRoutingNumberWireTransfer).map(o=>o.id):w=a.filter(o=>!!o.bankRoutingNumberAch).map(o=>o.id),w})();return{[L]:{recipient:{defaultOptions:qe(p?.vendorId,p?.vendorName,P),selectedOption:p?.vendorId??p?.vendorName??""},recipientEmail:p?.contacts?.[0]?.email??"",recipientName:p?.vendorName??"",recipientType:{allOptions:e.map(w=>w.code),selectedOption:p?.vendorType}},[F]:{paymentMethod:l?.paymentType??h?.[0],withdrawFrom:{selectedOption:l?.withdrawFrom?.id??s?.id??i[0]?.id,allOptions:i.map(w=>({label:w.label,value:w.id}))},amount:l?.amount.amount??0,paymentDate:l?.paymentDate?.toDate()??O.getNextNthWorkingDay(O.dateNow().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?f:[],selectedOption:l?.paymentToAccountId??f[0]},receipt:T}}};function Ut(e,i,a,s){const h=e[L].recipient.defaultOptions.find(p=>p.value===e[L].recipient.selectedOption);return{vendorType:s===!0?void 0:e[L].recipientType.selectedOption,vendorId:i,vendorName:h?.label??a?.vendorName,contacts:s===!0?[]:[{fullName:"",email:e[L].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 Jt=d.div`
160
+ `,Me="expressPayPage",Ht=e=>`${e}_form`,O="recipientDetails",D="paymentDetails",le={buttonWidth:new x(160,140),largeButtonWidth:new x(166,166)},oi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:T,onBackClick:P,saveVendorDetailLocalData:f,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:F,initializeVendorAddress:y,vendorSearchAutoCompleteData:$,vendorSearchAutoCompleteActions:C,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:_,expressPayLocalData:g,vendorTypeList:G,allPaymentMethods:H,paymentToOptions:k,withdrawFromList:N,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:U}=e,[v,ee]=J.useState(0),Ye=Re(),K=Q(),{common:we,spendManagement:_e}=Y.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=_e.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=_,M=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,$e=Object.assign({},Se??je),He=M?.vendorName,Ce=N.find(c=>c.id===s),te=Ke({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(G,N,k,Ce,H,M,g,j,$?.entityAutoCompleteView),values:Be(G,N,k,Ce,H,M,g,j,$?.entityAutoCompleteView)}),Pe=Fe($e.saveStatus?.fetchState),Ie=Fe(m);J.useEffect(()=>{const c=te.watch((S,{name:b})=>{b!=null&&S!=null&&Qe(()=>Ue(b,S))});return()=>{c.unsubscribe()}}),J.useEffect(()=>{Pe==="In-Progress"&&U==="Completed"&&(v===0?(ee(1),o?.(g?.vendorId)):v===1&&ee(2)),Ie==="In-Progress"&&m==="Completed"&&P(g?.vendorId)},[Pe,U,v,o,g?.vendorId,Ie,m,P]);const Ue=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[O].recipient.selectedOption,A=$?.entityAutoCompleteView.vendor.find(B=>B.zeniId===b);Ze(S),y(),M?.vendorId!==b&&A!=null&&(l?.(b),he(S,!1,k,b))}else if(c.includes("recipient"))ue(S);else{const b=S[D].paymentMethod?.method,A=g?.paymentType?.method,B=b!=null&&A!=null&&(b.toLowerCase().includes("ach")&&A.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&A.toLowerCase().includes("ach"));he(S,B,k,g?.vendorId)}},Ze=c=>{const S=c[O].recipient.selectedOption,b=$?.entityAutoCompleteView.vendor.find(A=>A.id===S)!=null;if(S!=null&&b===!0){T?.(S),he(c,!1,k,S);return}ue(c,!0)},ue=(c,S)=>{const b=M?.vendorId,A=$?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,B=Ut(c,A===!0?b:void 0,M,S);f?.(B,b)},he=(c,S,b,A)=>{const B=(()=>{let R=[];return c[D].paymentMethod?.method.includes("wire")===!0?R=b.filter(z=>!!z.bankRoutingNumberWireTransfer).map(z=>z.id):R=b.filter(z=>!!z.bankRoutingNumberAch).map(z=>z.id),R})(),ye=b.find(R=>R.id===c[D]?.paymentTo?.selectedOption),Ge={vendorId:A,amount:{amount:c[D].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[D].paymentDate?L.zeniDate(c[D].paymentDate.toString()):L.dateNow(),paymentType:c[D]?.paymentMethod!=null?c[D]?.paymentMethod:void 0,paymentToAccountId:S?B[0]:ye?.id,withdrawFrom:N.find(R=>R.id===c[D]?.withdrawFrom?.selectedOption),receiptFileId:c[D].receipt?.fileId};w?.(Ge)},Te=te.handleSubmit(()=>{if(v===0||v===1){a.trackExpressPayNextClick(v===0?"Recipient Details":"Payment Details");const c=te.getValues();ue(c),p(g?.vendorId)}else a.trackExpressPayScheduleClick(),F()}),Je=()=>{v===2?ee(1):P(g?.vendorId)},Xe=()=>{v===0?P(g?.vendorId):ee(v===1?0:1)},De={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?k.find(c=>c.id===g?.paymentToAccountId):void 0,paymentDate:g?.paymentDate,paymentType:g?.paymentType??H?.[0],recipientAmount:g?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(et,{title:me.pageTitle,onBackClick:Xe,backgroundColor:Ye.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Zt,{windowSize:K,children:[t.jsx(bt,{pageIndex:v}),t.jsx(tt,{...te,children:t.jsx("form",{id:Me,onSubmit:Te,children:v===0?t.jsx(kt,{sectionId:O,vendorTypeList:G,formLocalData:M,vendorSearchAutoCompleteData:$,vendorSearchAutoCompleteActions:C}):v===1?t.jsx(Pt,{sectionId:D,paymentDetails:De,paymentToOptions:k,allPaymentMethods:H,withdrawFromList:N,internationalVerificationStatus:se,fileProps:{...i,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de},deleteFileStatusById:ce,updateFileStatusById:r,receiptFile:j,onClickAddAccount:()=>{const c=De?.paymentType;c!=null&&h(c)}}):v===2?t.jsx(Mt,{reviewDetails:g,paymentToOptions:k,vendorName:He}):null})})]}),t.jsx(it,{formId:Ht(Me),style:{width:"100%"},primaryBtn:{label:v===2?L.dateNow().isSame(g?.paymentDate,"date")?me.sendMoney:me.schedulePayment:pe.next,isLoading:v===0||v===1?$e.saveStatus?.fetchState==="In-Progress":m==="In-Progress",style:{width:v===2?le.largeButtonWidth.value(K):le.buttonWidth.value(K),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Te()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?le.largeButtonWidth.value(K):le.buttonWidth.value(K),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Je}})]})},Be=(e,i,a,s,h,p,l,T,P)=>{const f=(()=>{let w=[];return l?.paymentType?.method.includes("wire")===!0?w=a.filter(o=>!!o.bankRoutingNumberWireTransfer).map(o=>o.id):w=a.filter(o=>!!o.bankRoutingNumberAch).map(o=>o.id),w})();return{[O]:{recipient:{defaultOptions:qe(p?.vendorId,p?.vendorName,P),selectedOption:p?.vendorId??p?.vendorName??""},recipientEmail:p?.contacts?.[0]?.email??"",recipientName:p?.vendorName??"",recipientType:{allOptions:e.map(w=>w.code),selectedOption:p?.vendorType}},[D]:{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()??L.getNextNthWorkingDay(L.dateNow().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?f:[],selectedOption:l?.paymentToAccountId??f[0]},receipt:T}}};function Ut(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 Zt=d.div`
161
161
  display: flex;
162
162
  flex-wrap: wrap;
163
163
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{u as v,e as f,B as k,a8 as s,g as n,j as e,bV as y,C as p,bX as _,bY as x,q as c}from"./index-BniN3Vor.js";import{n as l}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const i={popupWidth:new p(200,468,468,468),buttonWidth:new p(140,160,160,160),popupContainerLeft:new p(c[0],c[0],255),popupContainerWidth:new p(100,100,85)},z=l.div`
1
+ import{u as v,e as f,M as k,a8 as s,f as n,j as e,bV as y,C as p,bX as _,bY as x,r as c}from"./index-4y_mNX1u.js";import{n as l}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const i={popupWidth:new p(200,468,468,468),buttonWidth:new p(140,160,160,160),popupContainerLeft:new p(c[0],c[0],255),popupContainerWidth:new p(100,100,85)},z=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -8,4 +8,4 @@ import{u as v,e as f,B as k,a8 as s,g as n,j as e,bV as y,C as p,bX as _,bY as x
8
8
  `,C=l.img`
9
9
  width: 100%;
10
10
  height: 100%;
11
- `,W={mobile:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-mobile",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-mobile",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-mobile",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-mobile",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-mobile",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-mobile",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-mobile",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""},normal:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-normal",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-normal",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-normal",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-normal",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-normal",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-normal",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-normal",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""}};function q({menuItem:a,onDemoClick:g,onGoBack:d}){const t=v(),o=f(),u=`${W[o==="small"?"mobile":"normal"][a]}-${t.mode}.png`,{featurePreview:r}=k.getLocalizedStrings(),m=r.popups[a],h=t.mode==="light"?new s(n.backgroundGradient1Light):new s(n.backgroundGradient1Dark),b=t.mode==="light"?new s(n.backgroundGradient2Light):new s(n.backgroundGradient2Dark),w={onOkClick:()=>{g()},onCancelClick:()=>{d()}};return e.jsxs(z,{children:[e.jsx(C,{src:u,alt:"feature-preview",loading:"lazy"}),e.jsx(y,{titleComponent:e.jsx(x,{children:m.title}),descriptionComponent:e.jsx(_,{children:m.text}),primaryButtonText:r.scheduleDemo,secondaryButtonText:r.goBack,action:w,primaryButtonWidth:i.buttonWidth.value(o),secondaryButtonWidth:i.buttonWidth.value(o),style:{background:`radial-gradient(50% 50% at 50% 50%, ${h} 0%, ${b} 100%)`,backdropFilter:"blur(2px)",width:i.popupContainerWidth.valuePercentage(o),left:i.popupContainerLeft.value(o)},containerStyle:{border:`1px solid ${t.colors.grey1}`,minWidth:i.popupWidth.valuePx(o)}})]})}export{q as default};
11
+ `,W={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 E({menuItem:a,onDemoClick:g,onGoBack:d}){const t=v(),o=f(),u=`${W[o==="small"?"mobile":"normal"][a]}-${t.mode}.png`,{featurePreview:r}=k.getLocalizedStrings(),m=r.popups[a],h=t.mode==="light"?new s(n.backgroundGradient1Light):new s(n.backgroundGradient1Dark),b=t.mode==="light"?new s(n.backgroundGradient2Light):new s(n.backgroundGradient2Dark),w={onOkClick:()=>{g()},onCancelClick:()=>{d()}};return e.jsxs(z,{children:[e.jsx(C,{src:u,alt:"feature-preview",loading:"lazy"}),e.jsx(y,{titleComponent:e.jsx(x,{children:m.title}),descriptionComponent:e.jsx(_,{children:m.text}),primaryButtonText:r.scheduleDemo,secondaryButtonText:r.goBack,action:w,primaryButtonWidth:i.buttonWidth.value(o),secondaryButtonWidth:i.buttonWidth.value(o),style:{background:`radial-gradient(50% 50% at 50% 50%, ${h} 0%, ${b} 100%)`,backdropFilter:"blur(2px)",width:i.popupContainerWidth.valuePercentage(o),left:i.popupContainerLeft.value(o)},containerStyle:{border:`1px solid ${t.colors.grey1}`,minWidth:i.popupWidth.valuePx(o)}})]})}export{E as default};
@@ -1,4 +1,4 @@
1
- import{j as l,e as q,B as X,cn as A,cv as _,u as ee,ct as J,C as S,fN as Z,o as i,$ as B,ej as ce,O as le,fG as pe,fH as ue,K as he,g as u,q as g,g7 as ge,cu as be,cw as ye,p as ve,b3 as we,v as G,dj as $e,b4 as me,b1 as ke}from"./index-BniN3Vor.js";import{b as V,n as d}from"./vendor-rkTZJa59.js";const v={width:new S(343,580,726),height:new S(g[6],g[6]),controlHeight:new S(g[6],g[6]),paddingLeftRight:new S(g[3],g[4]),paddingTop:new S(g[3],g[3]),paddingBottom:new S(g[3],g[2]),labelMarginRight:new S(g[3],g[4])};function je({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=q(),{formState:{errors:j}}=A(),f=_(j,t.name),T=_(j,p.name),r=ee();return l.jsxs(Te,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:T,"data-testid":B("labeled-multi-text-field",t.name),children:[l.jsx(J,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(Oe,{labelWidth:o.width,children:[l.jsxs(ie,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||f&&t.additionalErrorLabel?l.jsx(oe,{isError:f,children:f?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Le,{children:[l.jsx(se,{}),l.jsx(Se,{}),l.jsx(se,{})]}),l.jsxs(ie,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(oe,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const Te=d.div`
1
+ import{j as l,e as H,M as X,cn as q,cv as G,u as ee,ct as J,C as S,fO as Z,o as i,_ as M,ek as ce,L as le,fH as pe,fI as ue,K as he,f as u,r as g,g8 as ge,cu as be,cw as ye,q as ve,b3 as we,v as _,dj as $e,b4 as me,b1 as ke}from"./index-4y_mNX1u.js";import{b as V,n as d}from"./vendor-rkTZJa59.js";const v={width:new S(343,580,726),height:new S(g[6],g[6]),controlHeight:new S(g[6],g[6]),paddingLeftRight:new S(g[3],g[4]),paddingTop:new S(g[3],g[3]),paddingBottom:new S(g[3],g[2]),labelMarginRight:new S(g[3],g[4])};function je({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=H(),{formState:{errors:j}}=q(),f=G(j,t.name),T=G(j,p.name),r=ee();return l.jsxs(Te,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:T,"data-testid":M("labeled-multi-text-field",t.name),children:[l.jsx(J,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(Le,{labelWidth:o.width,children:[l.jsxs(ie,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||f&&t.additionalErrorLabel?l.jsx(oe,{isError:f,children:f?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Oe,{children:[l.jsx(se,{}),l.jsx(Se,{}),l.jsx(se,{})]}),l.jsxs(ie,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(oe,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const Te=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -65,7 +65,7 @@ import{j as l,e as q,B as X,cn as A,cv as _,u as ee,ct as J,C as S,fN as Z,o as
65
65
  }
66
66
  }
67
67
  }
68
- `,Oe=d.div`
68
+ `,Le=d.div`
69
69
  display: flex;
70
70
  width: 100%;
71
71
  align-items: baseline;
@@ -77,7 +77,7 @@ import{j as l,e as q,B as X,cn as A,cv as _,u as ee,ct as J,C as S,fN as Z,o as
77
77
  `,ie=d.div`
78
78
  width: inherit;
79
79
  position: relative;
80
- `,Le=d.div`
80
+ `,Oe=d.div`
81
81
  align-items: center;
82
82
  display: flex;
83
83
  justify-content: center;
@@ -95,7 +95,7 @@ import{j as l,e as q,B as X,cn as A,cv as _,u as ee,ct as J,C as S,fN as Z,o as
95
95
  color: ${e=>e.isError?u.important:e.theme.colors.hero};
96
96
  white-space: pre-line;
97
97
  margin-top: ${i.sp1};
98
- `;function Ie({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=q(),{formState:{errors:j}}=A(),f=_(j,t.name),T=_(j,p.name),r=ee();return l.jsxs(Ee,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:T,children:[l.jsx(J,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(De,{labelWidth:o.width,children:[p.hideField?null:l.jsxs(Ce,{children:[l.jsx(de,{}),l.jsx(ze,{isAdditionalLabel:(!!t.additionalInfoLabel&&t.isDisabled)===!0}),l.jsx(de,{})]}),l.jsxs(Ue,{children:[l.jsxs(ae,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||f&&t.additionalErrorLabel?l.jsx(ne,{isError:f,children:f?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(ae,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(ne,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const Ee=d.div`
98
+ `;function Ie({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=H(),{formState:{errors:j}}=q(),f=G(j,t.name),T=G(j,p.name),r=ee();return l.jsxs(Ee,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:T,children:[l.jsx(J,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(De,{labelWidth:o.width,children:[p.hideField?null:l.jsxs(Ce,{children:[l.jsx(de,{}),l.jsx(ze,{isAdditionalLabel:(!!t.additionalInfoLabel&&t.isDisabled)===!0}),l.jsx(de,{})]}),l.jsxs(Ue,{children:[l.jsxs(ae,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||f&&t.additionalErrorLabel?l.jsx(ne,{isError:f,children:f?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(ae,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(ne,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const Ee=d.div`
99
99
  display: flex;
100
100
  flex-direction: column;
101
101
  align-items: flex-start;
@@ -198,7 +198,7 @@ import{j as l,e as q,B as X,cn as A,cv as _,u as ee,ct as J,C as S,fN 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 pl(e){return q()==="small"?l.jsx(Ie,{...e}):l.jsx(je,{...e})}const Ne=({allOptions:e,selectedValue:o,name:t,onSelectedValueChanged:p,valueToLabel:$,disable:k=!1,defaultMenuIsOpen:m,placeholderLabel:j})=>{const{formState:{errors:f}}=A(),T=_(f,t??""),r=ee(),[L,E]=V.useState(void 0),[b,H]=V.useState(m),z=n=>n.map(w=>N(w)),N=V.useCallback(n=>({value:n,label:$(n)}),[$]);V.useEffect(()=>{const n=o==null?void 0:N(o);E(n?.label===""?void 0:n)},[o,$,N]);const W=n=>{p(n)},I=r.colors.grey5,M=r.colors.grey5,R=G.smallRegular,D=G.extraSmallRegular,F={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,...G.standardRegular.cssObject,width:"100%",textOverflow:"ellipsis"}),valueContainer:(n,{selectProps:w})=>({...n,maxWidth:"100%",cursor:"pointer",...D,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:I,borderRadius:4,boxShadow:`${i.sp0} 2px ${i.sp2} ${r.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:10,margin:0,width:"100%",WebkitJustifyContent:"unset",overflow:"hidden"}),menuList:n=>({...n,borderRadius:10}),placeholder:n=>({...n,width:"100%",height:g[4],...G.standardRegular.cssObject,color:T===!0?u.important:r.colors.grey1,display:"flex",justifyContent:"flex-start",alignItems:"center"}),option:(n,{isSelected:w,isFocused:U,isDisabled:C,data:s})=>({...n,...R,height:g[6],color:s.value==="require_approval"?u.alertDark:u.successDark,backgroundColor:w||U?r.colors.background:I,cursor:C?"not-allowed":"pointer",borderTop:s.topBorder===!0?`1px solid ${u.optionBorderLight}`:"none",":hover":{backgroundColor:r.colors.background},":first-div":{width:"100%"},"& label":{flex:1,paddingRight:"10px",cursor:C?"not-allowed":w?"default":"pointer"},zIndex:2}),input:(n,w)=>({color:r.colors.primary,overflow:"hidden",zIndex:2,height:g[4],width:w.selectProps.menuIsOpen?"auto":"0",position:"absolute",display:"flex",alignItems:"center",...G.standardRegular.cssObject})};return l.jsx(ve,{onClickAway:()=>{H(!1)},children:l.jsx(we,{isMulti:!1,onChange:n=>{W(n)},minMenuHeight:208,menuPlacement:"auto",menuShouldScrollIntoView:!1,defaultValue:L,value:L,placeholder:j,components:{Option:Fe,DropdownIndicator:Ae,IndicatorSeparator:He,SingleValue:Re},hideSelectedOptions:!1,styles:F,options:z(e),isClearable:!1,isSearchable:!1,isDisabled:k,defaultMenuIsOpen:b,"data-testid":B("single-select",t)},$e())})},Re=({children:e,...o})=>l.jsx(me.SingleValue,{...o,children:e}),Fe=e=>{const{data:o,options:t,isFocused:p,label:$,isSelected:k}=e,m=t.find(f=>f.value===o.value),j=typeof o.label=="string"?o.label:o.value;return l.jsxs(me.Option,{...e,children:[l.jsxs(Pe,{"data-testid":B("single-select-option",j),children:[l.jsxs(Ve,{children:[l.jsx("label",{children:$}),p===!0&&m?.id!=null&&l.jsx(Be,{children:m.id})]}),k?l.jsx(Me,{children:l.jsx(qe,{className:"tick-icon"})}):null]}),m.additionalInfo!==""&&l.jsx(l.Fragment,{children:m.additionalInfo})]})},Pe=d.div`
201
+ `;function pl(e){return H()==="small"?l.jsx(Ie,{...e}):l.jsx(je,{...e})}const Fe=({allOptions:e,selectedValue:o,name:t,onSelectedValueChanged:p,valueToLabel:$,disable:k=!1,defaultMenuIsOpen:m,placeholderLabel:j})=>{const{formState:{errors:f}}=q(),T=G(f,t??""),r=ee(),[O,E]=V.useState(void 0),[b,A]=V.useState(m),z=n=>n.map(w=>F(w)),F=V.useCallback(n=>({value:n,label:$(n)}),[$]);V.useEffect(()=>{const n=o==null?void 0:F(o);E(n?.label===""?void 0:n)},[o,$,F]);const W=n=>{p(n)},I=r.colors.grey5,B=r.colors.grey5,N=_.smallRegular,D=_.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,..._.standardRegular.cssObject,width:"100%",textOverflow:"ellipsis"}),valueContainer:(n,{selectProps:w})=>({...n,maxWidth:"100%",cursor:"pointer",...D,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:I,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],..._.standardRegular.cssObject,color:T===!0?u.important:r.colors.grey1,display:"flex",justifyContent:"flex-start",alignItems:"center"}),option:(n,{isSelected:w,isFocused:U,isDisabled:C,data:s})=>({...n,...N,height:g[6],color:s.value==="require_approval"?u.alertDark:u.successDark,backgroundColor:w||U?r.colors.background:I,cursor:C?"not-allowed":"pointer",borderTop:s.topBorder===!0?`1px solid ${u.optionBorderLight}`:"none",":hover":{backgroundColor:r.colors.background},":first-div":{width:"100%"},"& label":{flex:1,paddingRight:"10px",cursor:C?"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",..._.standardRegular.cssObject})};return l.jsx(ve,{onClickAway:()=>{A(!1)},children:l.jsx(we,{isMulti:!1,onChange:n=>{W(n)},minMenuHeight:208,menuPlacement:"auto",menuShouldScrollIntoView:!1,defaultValue:O,value:O,placeholder:j,components:{Option:Re,DropdownIndicator:qe,IndicatorSeparator:Ae,SingleValue:Ne},hideSelectedOptions:!1,styles:R,options:z(e),isClearable:!1,isSearchable:!1,isDisabled:k,defaultMenuIsOpen:b,"data-testid":M("single-select",t)},$e())})},Ne=({children:e,...o})=>l.jsx(me.SingleValue,{...o,children:e}),Re=e=>{const{data:o,options:t,isFocused:p,label:$,isSelected:k}=e,m=t.find(f=>f.value===o.value),j=typeof o.label=="string"?o.label:o.value;return l.jsxs(me.Option,{...e,children:[l.jsxs(Pe,{"data-testid":M("single-select-option",j),children:[l.jsxs(Ve,{children:[l.jsx("label",{children:$}),p===!0&&m?.id!=null&&l.jsx(Me,{children:m.id})]}),k?l.jsx(Be,{children:l.jsx(He,{className:"tick-icon"})}):null]}),m.additionalInfo!==""&&l.jsx(l.Fragment,{children:m.additionalInfo})]})},Pe=d.div`
202
202
  display: flex;
203
203
  flex-direction: row;
204
204
  align-items: center;
@@ -207,7 +207,7 @@ import{j as l,e as q,B as X,cn as A,cv as _,u as ee,ct as J,C as S,fN as Z,o as
207
207
  width: 100%;
208
208
  display: flex;
209
209
  align-items: center;
210
- `,Be=d.div`
210
+ `,Me=d.div`
211
211
  display: flex;
212
212
  color: ${e=>e.theme.colors.primary};
213
213
  align-items: center;
@@ -218,24 +218,24 @@ import{j as l,e as q,B as X,cn as A,cv as _,u as ee,ct as J,C as S,fN as Z,o as
218
218
  border: 1px solid ${e=>e.theme.colors.primary};
219
219
  border-radius: ${i.sp1};
220
220
  margin: 0 ${i.sp5} 0 ${i.sp3};
221
- `,Me=d.div`
221
+ `,Be=d.div`
222
222
  display: flex;
223
- `,qe=d(ke)`
223
+ `,He=d(ke)`
224
224
  width: ${i.sp3};
225
225
  height: ${i.sp3};
226
226
  cursor: pointer;
227
227
  color: ${e=>e.theme.colors.primary};
228
- `,Ae=()=>null,He=()=>null,We=({name:e,registerOptions:o,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:m}=A(),j=t.allOptions.map(r=>r.value??""),f=r=>t.allOptions.filter(L=>L.value===r)[0]?.label??"",T=r=>t.allOptions.find(L=>L.value===r.value)?.value;return l.jsx(ye,{name:e,control:m,defaultValue:t,rules:o,"data-testid":B("single-select-field",e),render:({field:{value:r,onChange:L}})=>l.jsx(Ne,{allOptions:j,onSelectedValueChanged:E=>{L({allOptions:t.allOptions,selectedOption:T(E)})},valueToLabel:E=>f(E),selectedValue:r.selectedOption,disable:p,name:e,defaultMenuIsOpen:$,placeholderLabel:k})})},fe=V.memo(We,(e,o)=>le(e,o)),O={width:new S(343,580,726),height:new S(g[6],g[6]),paddingLeftRight:new S(g[3],g[4]),paddingTopBottom:new S(g[3],g[3]),labelMarginRight:new S(g[3],g[4])},K=(e,o)=>`${e}.${o}`;function Ge({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:T,allAttributes:r,filteredAttributes:L,allAccountingClasses:E,stepsInfo:b,productType:H}){const z=q(),{commonSetUp:{approval:N}}=X.getLocalizedStrings(),W=T.length+L.length,I=f.map(s=>s.user),{control:M,setValue:R}=A(),{fields:D,replace:F}=ce({name:t,control:M}),n=()=>{const s=b[b.length-1].stepIndex,h=xe(s+1,I,r);R(t,[...b,h])},w=s=>{const h=b.filter((a,c)=>c!==s);R(t,h)};V.useEffect(()=>{const s=D.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(s,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:I,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));F(a)}},[I,b,D,F,r]);const U=b[b.length-1],C=o!=null||W===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(_e,{size:z,style:p,isDisabled:!1,isError:!1,children:[l.jsx(J,{label:e.label,style:{marginRight:O.labelMarginRight.value(z),width:"auto"}}),b.map((s,h)=>l.jsxs(Ze,{labelWidth:e.width,children:[l.jsxs(Xe,{children:[h+1,"."]}),l.jsx(Qe,{children:l.jsx(fe,{name:K(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j})}),l.jsxs(Ye,{children:[l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:K(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,H);x.length>0&&y.push(x),c.accountingClassIDs.forEach(Q=>{const P=E.find(Y=>Y.classId===Q);P!=null&&P.className&&y.push(P.className)})}return y}}),s.stepIndex>0&&l.jsx(Ke,{onClick:()=>w(h)})]})]},D[h]?.id||h)),l.jsx(Je,{disabled:C,children:l.jsx(he,{onClick:n,style:{padding:`${i.sp1} ${i.sp2}`,borderRadius:i.sp1},label:N.addStep,size:"small",disabled:C,"data-testid":B("add-step-button-web")})})]})}const xe=(e,o,t)=>({stepIndex:e,actors:{allUsers:o,selectedUsers:[],allNonUsers:te(t),selectedNonUsers:[]},stepType:{allOptions:re,selectedOption:void 0}}),te=e=>{const o=X.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(t=>({label:o[t].label,value:t,position:"top",subtitles:[o[t].subTitle]}))},re=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],_e=d.div`
228
+ `,qe=()=>null,Ae=()=>null,We=({name:e,registerOptions:o,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:m}=q(),j=t.allOptions.map(r=>r.value??""),f=r=>t.allOptions.filter(O=>O.value===r)[0]?.label??"",T=r=>t.allOptions.find(O=>O.value===r.value)?.value;return l.jsx(ye,{name:e,control:m,defaultValue:t,rules:o,"data-testid":M("single-select-field",e),render:({field:{value:r,onChange:O}})=>l.jsx(Fe,{allOptions:j,onSelectedValueChanged:E=>{O({allOptions:t.allOptions,selectedOption:T(E)})},valueToLabel:E=>f(E),selectedValue:r.selectedOption,disable:p,name:e,defaultMenuIsOpen:$,placeholderLabel:k})})},fe=V.memo(We,(e,o)=>le(e,o)),L={width:new S(343,580,726),height:new S(g[6],g[6]),paddingLeftRight:new S(g[3],g[4]),paddingTopBottom:new S(g[3],g[3]),labelMarginRight:new S(g[3],g[4])},K=(e,o)=>`${e}.${o}`;function _e({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:T,allAttributes:r,filteredAttributes:O,allAccountingClasses:E,stepsInfo:b,productType:A}){const z=H(),{commonSetUp:{approval:F}}=X.getLocalizedStrings(),W=T.length+O.length,I=f.map(s=>s.user),{control:B,setValue:N}=q(),{fields:D,replace:R}=ce({name:t,control:B}),n=()=>{const s=b[b.length-1].stepIndex,h=xe(s+1,I,r);N(t,[...b,h])},w=s=>{const h=b.filter((a,c)=>c!==s);N(t,h)};V.useEffect(()=>{const s=D.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(s,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:I,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));R(a)}},[I,b,D,R,r]);const U=b[b.length-1],C=o!=null||W===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(Ge,{size:z,style:p,isDisabled:!1,isError:!1,children:[l.jsx(J,{label:e.label,style:{marginRight:L.labelMarginRight.value(z),width:"auto"}}),b.map((s,h)=>l.jsxs(Ze,{labelWidth:e.width,children:[l.jsxs(Xe,{children:[h+1,"."]}),l.jsx(Qe,{children:l.jsx(fe,{name:K(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j})}),l.jsxs(Ye,{children:[l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:K(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,A);x.length>0&&y.push(x),c.accountingClassIDs.forEach(Q=>{const P=E.find(Y=>Y.classId===Q);P!=null&&P.className&&y.push(P.className)})}return y}}),s.stepIndex>0&&l.jsx(Ke,{onClick:()=>w(h)})]})]},D[h]?.id||h)),l.jsx(Je,{disabled:C,children:l.jsx(he,{onClick:n,style:{padding:`${i.sp1} ${i.sp2}`,borderRadius:i.sp1},label:F.addStep,size:"small",disabled:C,"data-testid":M("add-step-button-web")})})]})}const xe=(e,o,t)=>({stepIndex:e,actors:{allUsers:o,selectedUsers:[],allNonUsers:te(t),selectedNonUsers:[]},stepType:{allOptions:re,selectedOption:void 0}}),te=e=>{const o=X.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(t=>({label:o[t].label,value:t,position:"top",subtitles:[o[t].subTitle]}))},re=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],Ge=d.div`
229
229
  display: flex;
230
230
  flex-direction: column;
231
231
  align-items: flex-start;
232
232
  background-color: ${e=>e.theme.colors.grey5};
233
- width: ${e=>O.width.valuePx(e.size)};
234
- min-height: ${e=>O.height.valuePx(e.size)};
235
- padding-left: ${e=>O.paddingLeftRight.valuePx(e.size)};
236
- padding-right: ${e=>O.paddingLeftRight.valuePx(e.size)};
237
- padding-top: ${e=>O.paddingTopBottom.valuePx(e.size)};
238
- padding-bottom: ${e=>O.paddingTopBottom.valuePx(e.size)};
233
+ width: ${e=>L.width.valuePx(e.size)};
234
+ min-height: ${e=>L.height.valuePx(e.size)};
235
+ padding-left: ${e=>L.paddingLeftRight.valuePx(e.size)};
236
+ padding-right: ${e=>L.paddingLeftRight.valuePx(e.size)};
237
+ padding-top: ${e=>L.paddingTopBottom.valuePx(e.size)};
238
+ padding-bottom: ${e=>L.paddingTopBottom.valuePx(e.size)};
239
239
  gap: ${i.sp3};
240
240
 
241
241
  :first-of-type {
@@ -303,17 +303,17 @@ import{j as l,e as q,B as X,cn as A,cv as _,u as ee,ct as J,C as S,fN as Z,o as
303
303
  `,Xe=d.div`
304
304
  width: ${i.sp5};
305
305
  color: ${e=>e.theme.colors.hero};
306
- `;function el({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:T,allAttributes:r,filteredAttributes:L,allAccountingClasses:E,stepsInfo:b,productType:H}){const z=q(),{commonSetUp:{approval:N}}=X.getLocalizedStrings(),W=T.length+L.length,I=f.map(s=>s.user),{control:M,setValue:R}=A(),{fields:D,replace:F}=ce({name:t,control:M}),n=()=>{const s=b[b.length-1].stepIndex,h=xe(s+1,I,r);R(t,[...b,h])},w=s=>{const h=b.filter((a,c)=>c!==s);R(t,h)};V.useEffect(()=>{const s=D.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(s,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:I,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));F(a)}},[I,b,D,F,r]);const U=b[b.length-1],C=o!=null||W===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(ll,{size:z,style:p,isDisabled:!1,isError:!1,children:[l.jsx(J,{label:e.label,style:{marginRight:O.labelMarginRight.value(z),width:"auto"}}),b.map((s,h)=>l.jsxs(tl,{labelWidth:e.width,children:[l.jsxs(dl,{children:[h+1,"."]}),l.jsxs(al,{children:[l.jsx(fe,{name:K(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j}),l.jsxs(sl,{children:[l.jsx(ol,{children:l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:K(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,H);x.length>0&&y.push(x),c.accountingClassIDs.forEach(Q=>{const P=E.find(Y=>Y.classId===Q);P!=null&&P.className&&y.push(P.className)})}return y}})}),s.stepIndex>0&&l.jsx(rl,{onClick:()=>w(h),"data-testid":B("delete-step",h.toString())})]})]})]},D[h]?.id||h)),l.jsx(il,{disabled:C,children:l.jsx(he,{onClick:n,style:{width:"100%"},label:N.addStep,size:"standard",variant:"light_transparent",disabled:C,"data-testid":B("add-step-button-small")})})]})}const ll=d.div`
306
+ `;function el({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:T,allAttributes:r,filteredAttributes:O,allAccountingClasses:E,stepsInfo:b,productType:A}){const z=H(),{commonSetUp:{approval:F}}=X.getLocalizedStrings(),W=T.length+O.length,I=f.map(s=>s.user),{control:B,setValue:N}=q(),{fields:D,replace:R}=ce({name:t,control:B}),n=()=>{const s=b[b.length-1].stepIndex,h=xe(s+1,I,r);N(t,[...b,h])},w=s=>{const h=b.filter((a,c)=>c!==s);N(t,h)};V.useEffect(()=>{const s=D.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(s,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:I,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));R(a)}},[I,b,D,R,r]);const U=b[b.length-1],C=o!=null||W===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(ll,{size:z,style:p,isDisabled:!1,isError:!1,children:[l.jsx(J,{label:e.label,style:{marginRight:L.labelMarginRight.value(z),width:"auto"}}),b.map((s,h)=>l.jsxs(tl,{labelWidth:e.width,children:[l.jsxs(dl,{children:[h+1,"."]}),l.jsxs(al,{children:[l.jsx(fe,{name:K(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j}),l.jsxs(sl,{children:[l.jsx(ol,{children:l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:K(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,A);x.length>0&&y.push(x),c.accountingClassIDs.forEach(Q=>{const P=E.find(Y=>Y.classId===Q);P!=null&&P.className&&y.push(P.className)})}return y}})}),s.stepIndex>0&&l.jsx(rl,{onClick:()=>w(h),"data-testid":M("delete-step",h.toString())})]})]})]},D[h]?.id||h)),l.jsx(il,{disabled:C,children:l.jsx(he,{onClick:n,style:{width:"100%"},label:F.addStep,size:"standard",variant:"light_transparent",disabled:C,"data-testid":M("add-step-button-small")})})]})}const ll=d.div`
307
307
  display: flex;
308
308
  flex-direction: column;
309
309
  align-items: flex-start;
310
310
  background-color: ${e=>e.theme.colors.grey5};
311
- width: ${e=>O.width.valuePx(e.size)};
312
- min-height: ${e=>O.height.valuePx(e.size)};
313
- padding-left: ${e=>O.paddingLeftRight.valuePx(e.size)};
314
- padding-right: ${e=>O.paddingLeftRight.valuePx(e.size)};
315
- padding-top: ${e=>O.paddingTopBottom.valuePx(e.size)};
316
- padding-bottom: ${e=>O.paddingTopBottom.valuePx(e.size)};
311
+ width: ${e=>L.width.valuePx(e.size)};
312
+ min-height: ${e=>L.height.valuePx(e.size)};
313
+ padding-left: ${e=>L.paddingLeftRight.valuePx(e.size)};
314
+ padding-right: ${e=>L.paddingLeftRight.valuePx(e.size)};
315
+ padding-top: ${e=>L.paddingTopBottom.valuePx(e.size)};
316
+ padding-bottom: ${e=>L.paddingTopBottom.valuePx(e.size)};
317
317
  gap: ${i.sp3};
318
318
 
319
319
  :first-of-type {
@@ -387,4 +387,4 @@ import{j as l,e as q,B as X,cn as A,cv as _,u as ee,ct as J,C as S,fN as Z,o as
387
387
  `,dl=d.div`
388
388
  width: ${i.sp4};
389
389
  color: ${e=>e.theme.colors.hero};
390
- `;function ul(e){return q()==="small"?l.jsx(el,{...e}):l.jsx(Ge,{...e})}export{pl as b,ul as f,re as l,te as o};
390
+ `;function ul(e){return H()==="small"?l.jsx(el,{...e}):l.jsx(_e,{...e})}export{pl as b,ul as f,re as l,te as o};
@@ -1,4 +1,4 @@
1
- import{u as Ee,e as Y,a as _e,H as Ye,ca as Je,j as t,B as ue,aX as Qe,F as Xe,bT as Ce,o,K as je,$ as T,bg as Ze,bS as et,aj as tt,dl as lt,b_ as ot,b as it,m as nt,cx as at,a$ as We,a6 as rt,C as N,l as Fe,bh as se,q as $,dr as Ie,w as we,c3 as st,c6 as dt,cn as ct,hB as ht,dh as ye,cz as me,bp as E,et as ke,p as mt,hG as gt,t as pt,aB as ut,hH as Oe,bO as wt,aP as bt,g as De,hI as xt}from"./index-BniN3Vor.js";import{b as C,n,j as Se}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const Re="recommendedFirst",Ne="recommendedSecond",H="currentSelection",ve="originalVendor",ge="requested",de=(e,l)=>`${e}.${l}`,ce=(e,l,a)=>a!=null?`${e}.${l}.${a}`:`${e}.${l}`;function vt(e){const l=Y(),{button:{label:a,onClick:i},search:{isOpen:g,placeHolder:m,searchText:w,onTextChange:j}}=e;return t.jsxs(ft,{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:j}):null}),l==="small"?t.jsx(Ce,{style:{position:"absolute",left:"5px",right:"unset",top:"44px",width:"98%"},placeholder:m,searchText:w,onSearchTextChanged:j,keepSearchBoxOpen:!0}):null,l==="small"?t.jsx(yt,{style:{marginLeft:o.sp5}}):t.jsx(je,{variant:"primary",onClick:i,label:a,size:"small",style:{marginLeft:o.sp3}})]})}const ft=n.div`
1
+ import{u as Ee,e as Y,a as _e,A as Ye,ca as Je,j as t,M as ue,aX as Qe,F as Xe,bT as Ce,o,K as je,_ as T,bg as Ze,bS as et,aj as tt,dl as lt,b_ as ot,b as it,m as nt,cx as at,a$ as We,a6 as rt,C as N,l as Oe,bh as se,r as $,dr as Ie,w as we,c3 as st,c6 as dt,cn as ct,hC as ht,dh as ye,cz as me,bp as E,eu as ke,q as mt,hH as gt,y as pt,aB as ut,hI as Fe,bO as wt,aP as bt,f as De,hJ as xt}from"./index-4y_mNX1u.js";import{b as C,n,j as Se}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const Re="recommendedFirst",Ne="recommendedSecond",H="currentSelection",ve="originalVendor",ge="requested",de=(e,l)=>`${e}.${l}`,ce=(e,l,a)=>a!=null?`${e}.${l}.${a}`:`${e}.${l}`;function vt(e){const l=Y(),{button:{label:a,onClick:i},search:{isOpen:g,placeHolder:m,searchText:w,onTextChange:j}}=e;return t.jsxs(ft,{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:j}):null}),l==="small"?t.jsx(Ce,{style:{position:"absolute",left:"5px",right:"unset",top:"44px",width:"98%"},placeholder:m,searchText:w,onSearchTextChanged:j,keepSearchBoxOpen:!0}):null,l==="small"?t.jsx(yt,{style:{marginLeft:o.sp5}}):t.jsx(je,{variant:"primary",onClick:i,label:a,size:"small",style:{marginLeft:o.sp3}})]})}const ft=n.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  padding-right: ${o.sp0};
@@ -20,7 +20,7 @@ import{u as Ee,e as Y,a as _e,H as Ye,ca as Je,j as t,B as ue,aX as Qe,F as Xe,b
20
20
  color: ${e=>e.theme.colors.brandColorJade};
21
21
  width: ${o.sp3};
22
22
  height: ${o.sp3};
23
- `,{headers:be,strings:Mt}=ue.getLocalizedStrings().common,Ct={key:"tenants",value:be.tenants,sortOrder:"ascending",width:new N(15,15)},It={key:"requestedVendor",value:be.requestedVendor,sortOrder:"ascending",width:new N(28,28)},kt={key:"originalVendor",value:be.originalVendor,sortOrder:"ascending",width:new N(15,15)},Rt={key:"recommended",value:be.recommended,sortOrder:"ascending",width:new N(30,30),icon:t.jsx(St,{children:t.jsx($t,{})})},Nt={key:"action",value:Mt.empty,sortOrder:"ascending",width:new N(12,12)},V=[Ct,kt,Rt,It,Nt],fe={sortKey:"tenants",sortOrder:"ascending"},Vt=88,He=53,Gt=1,Lt=["action"],Ve=e=>Fe.stringToUnionStrict(e,Lt),Ue=({sortConfig:e,isDisabled:l,onColumnSortConfigChanged:a})=>{const i=Y(),[g,m]=C.useState(V);C.useEffect(()=>{const c=[...g];for(const h of c)h.key===e.sortKey?h.sortOrder=e.sortOrder:h.sortOrder="ascending";m(c)},[e.sortKey,e.sortOrder]);const w=(c,h)=>{let y=h;e.sortKey===c&&(y=h==="ascending"?"descending":"ascending"),a?.(c,y)},j=c=>{Ve(c.key)==null&&w(Fe.toVendorGlobalReviewColumnSortKeyType(c.key),c.sortOrder)};return t.jsx(zt,{windowSize:i,children:g.map(c=>{const h=l!=null||Ve(c.key)!=null;return t.jsxs(At,{sortDataValue:e.sortKey,actualDataValue:c.key,wrapperWidth:c.width,isSortDisabled:h,windowSize:i,children:[t.jsxs(Ot,{onClick:()=>h?null:j(c),isSortDisabled:h,"data-testid":T("global-review-list-header-name-wrapper"),children:[c.icon,t.jsx(Dt,{children:c.value}),h?null:t.jsx(Tt,{sortConfig:e,headerdata:c,children:t.jsx(Ft,{})})]}),h?null:t.jsx(Wt,{isSortDisabled:h,sortDataValue:e.sortKey,isVisible:e.sortKey===c.key&&e.sortKey!==fe.sortKey,children:t.jsx(Pt,{onClick:()=>{h||w(fe.sortKey,fe.sortOrder)},"data-testid":T("global-review-list-header-close-icon")})})]},c.key)})})},zt=n.div`
23
+ `,{headers:be,strings:Mt}=ue.getLocalizedStrings().common,Ct={key:"tenants",value:be.tenants,sortOrder:"ascending",width:new N(15,15)},It={key:"requestedVendor",value:be.requestedVendor,sortOrder:"ascending",width:new N(28,28)},kt={key:"originalVendor",value:be.originalVendor,sortOrder:"ascending",width:new N(15,15)},Rt={key:"recommended",value:be.recommended,sortOrder:"ascending",width:new N(30,30),icon:t.jsx(St,{children:t.jsx($t,{})})},Nt={key:"action",value:Mt.empty,sortOrder:"ascending",width:new N(12,12)},V=[Ct,kt,Rt,It,Nt],fe={sortKey:"tenants",sortOrder:"ascending"},Vt=88,He=53,Lt=1,Gt=["action"],Ve=e=>Oe.stringToUnionStrict(e,Gt),Ue=({sortConfig:e,isDisabled:l,onColumnSortConfigChanged:a})=>{const i=Y(),[g,m]=C.useState(V);C.useEffect(()=>{const c=[...g];for(const h of c)h.key===e.sortKey?h.sortOrder=e.sortOrder:h.sortOrder="ascending";m(c)},[e.sortKey,e.sortOrder]);const w=(c,h)=>{let y=h;e.sortKey===c&&(y=h==="ascending"?"descending":"ascending"),a?.(c,y)},j=c=>{Ve(c.key)==null&&w(Oe.toVendorGlobalReviewColumnSortKeyType(c.key),c.sortOrder)};return t.jsx(zt,{windowSize:i,children:g.map(c=>{const h=l!=null||Ve(c.key)!=null;return t.jsxs(At,{sortDataValue:e.sortKey,actualDataValue:c.key,wrapperWidth:c.width,isSortDisabled:h,windowSize:i,children:[t.jsxs(Ft,{onClick:()=>h?null:j(c),isSortDisabled:h,"data-testid":T("global-review-list-header-name-wrapper"),children:[c.icon,t.jsx(Dt,{children:c.value}),h?null:t.jsx(Tt,{sortConfig:e,headerdata:c,children:t.jsx(Ot,{})})]}),h?null:t.jsx(Wt,{isSortDisabled:h,sortDataValue:e.sortKey,isVisible:e.sortKey===c.key&&e.sortKey!==fe.sortKey,children:t.jsx(Pt,{onClick:()=>{h||w(fe.sortKey,fe.sortOrder)},"data-testid":T("global-review-list-header-close-icon")})})]},c.key)})})},zt=n.div`
24
24
  top: ${o.sp0};
25
25
  left: ${o.sp0};
26
26
  height: ${He}px;
@@ -63,10 +63,10 @@ import{u as Ee,e as Y,a as _e,H as Ye,ca as Je,j as t,B as ue,aX as Qe,F as Xe,b
63
63
  &:hover {
64
64
  color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
65
65
  }
66
- `,Ft=n(st)`
66
+ `,Ot=n(st)`
67
67
  width: 12px;
68
68
  height: 12px;
69
- `,Ot=n.div`
69
+ `,Ft=n.div`
70
70
  display: flex;
71
71
  cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
72
72
  gap: 6px;
@@ -75,7 +75,7 @@ import{u as Ee,e as Y,a as _e,H as Ye,ca as Je,j as t,B as ue,aX as Qe,F as Xe,b
75
75
  }
76
76
  `,Dt=n(we)`
77
77
  display: flex;
78
- `,{common:f,vendorReview:{globalReview:{globalMerchantList:Ht}}}=ue.getLocalizedStrings(),s={containerPaddingLeftRight:new N($[3],$[4]),containerPaddingTopBottom:new N($[2],$[3]),logoHeightAndWidth:new N($[3],$[4]),vendorNameLogoHeightAndWidth:new N($[4],$[6]),logoToValueGap:new N($[2],$[2]),smallLogoToValueGap:new N($[1],$[1])},Ut=({vendorGlobalReviewData:e,allGlobalMerchants:l,globalMerchantAutoCompleteView:a,sectionId:i,isDisabled:g,analytics:m,onLoadGlobalMerchants:w,onCreateGlobalMerchant:j,onApproveGlobalReview:c,onRejectGlobalReview:h,onClearGlobalMerchantAutoCompleteResults:y})=>{const d=Y(),{resetField:U,formState:q}=ct(),[G,I]=C.useState(!1),[L,W]=i.split("."),F=parseInt(W),O=q.dirtyFields[L]?.[F]?.originalVendor===!0&&e.selectedMerchantId!==e.merchant.tenantMerchantId,J=e.currentSelection!=null,{merchant:p,recommendations:B}=e,{fetchState:K}=a,oe=u=>{let S=u.websiteUrl?.toString();if(S){if(S=Oe(S)??S,e.selectedMerchantId!=null){const r=u.globalMerchantName??null;m.trackVendorReviewWebsiteOpened({reviewSource:"global_review",vendorName:e.merchant.tenantMerchantName,wasRecommendationAvailable:!!r,recommendedVendorName:r,recommendedVendorReason:u.reason??null,vendorWebsite:S})}window.open(S,"_blank")}},x=[];B.forEach((u,S)=>{const r=`recommended${ht(S)}`;x.push({label:{label:t.jsx(t.Fragment,{children:u.logo!=null?t.jsxs(ze,{children:[t.jsx(ye,{photoUrl:u.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(d),height:s.logoHeightAndWidth.valuePx(d)},placeholder:{width:s.logoHeightAndWidth.value(d),height:s.logoHeightAndWidth.value(d)},fallbackAvatar:t.jsx(pe,{children:t.jsx(me,{name:u.globalMerchantName,size:s.logoHeightAndWidth.valuePx(d)})})}),t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:u.globalMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:u.globalMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(i,H,r),checkBoxValue:ce(i,H,r),defaultChecked:e.currentSelection===r},tooltipProps:{text:t.jsx(Jt,{recommendation:u,onRedirectionToRecommendedMerchantWebsiteUrl:()=>oe(u)}),maxWidth:"360px"},fieldName:r})});const v=p!=null?{label:{label:t.jsx(t.Fragment,{children:p.logo!=null?t.jsxs(ze,{children:[t.jsx(ye,{photoUrl:p.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(d),height:s.logoHeightAndWidth.valuePx(d)},placeholder:{width:s.logoHeightAndWidth.value(d),height:s.logoHeightAndWidth.value(d)},fallbackAvatar:t.jsx(pe,{children:t.jsx(me,{name:p.tenantMerchantName,size:s.logoHeightAndWidth.valuePx(d)})})}),t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:p.tenantMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:p.tenantMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(i,H,ge),checkBoxValue:ce(i,H,ge),defaultChecked:e.currentSelection==="requested"},tooltipProps:{text:t.jsx(Qt,{merchant:p}),maxWidth:"360px"}}:void 0;let D=p.oldMerchantName;e.currentSelection==="originalVendor"&&e.selectedMerchantId!=null&&(D=e.selectedMerchantId);const k=C.useMemo(()=>Ke(D,e.merchant,l),[e,l]),ae=()=>{I(!1),y()},xe=()=>{U(i)};return t.jsx(qe,{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(mt,{onClickAway:ae,children:t.jsx(Et,{children:t.jsx(gt,{name:de(i,"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=>{j(p.tenantMerchantId,r,p.websiteUrl)},onMenuClose:ae})})}):k.selectedOption!=null?Yt(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:[Ht.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(i,"originalVendor"));case"recommended":return t.jsx(t.Fragment,{children:t.jsx(P,{windowSize:d,wrapperWidth:u.width,gap:s.logoToValueGap,children:x.map((r,b)=>t.jsxs(t.Fragment,{children:[t.jsx(M,{windowSize:d,className:"vendor-global-review-row-item",isLastItem:!1,children:t.jsx(ke,{isHighlighted:!0,label:r.label,checkBoxField:r.checkBoxField,tooltipProps:r.tooltipProps,defaultChecked:e.currentSelection===r.fieldName})},b),b<x.length-1?t.jsxs(Bt,{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(je,{variant:"light_transparent",label:f.footer.reject,onClick:()=>h(p.tenantMerchantId),loading:e.rejectStatus.fetchState==="In-Progress",size:"small",style:{height:"100%"}}),t.jsx(_t,{space:o.sp0,style:{display:"flex",alignItems:"center",height:o.sp4,width:o.sp3}}),t.jsx(je,{label:f.footer.approve,onClick:()=>c(p.tenantMerchantId),disabled:!J,loading:e.approveStatus.fetchState==="In-Progress",size:"small",variant:"primary"})]})},`${i}.${u.key}`);case"requestedVendor":return t.jsx(P,{windowSize:d,wrapperWidth:u.width,gap:s.smallLogoToValueGap,children:p.tenantMerchantName&&v!=null?t.jsx(M,{windowSize:d,className:"vendor-global-review-row-item",isLastItem:!1,children:t.jsx(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(i,"merchantId"));case"tenants":default:return t.jsx(P,{windowSize:d,wrapperWidth:u.width,children:t.jsx(Kt,{className:"global-review-row-item",windowSize:d,isLastItem:S===V.length-1,children:t.jsx(E,{display:"block",placement:"bottom-start",title:t.jsx(_,{children:p.tenantName}),children:t.jsx(Z,{children:p.tenantName})})})},de(i,"tenantId"))}})})},qt=()=>{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=n.div`
78
+ `,{common:f,vendorReview:{globalReview:{globalMerchantList:Ht}}}=ue.getLocalizedStrings(),s={containerPaddingLeftRight:new N($[3],$[4]),containerPaddingTopBottom:new N($[2],$[3]),logoHeightAndWidth:new N($[3],$[4]),vendorNameLogoHeightAndWidth:new N($[4],$[6]),logoToValueGap:new N($[2],$[2]),smallLogoToValueGap:new N($[1],$[1])},Ut=({vendorGlobalReviewData:e,allGlobalMerchants:l,globalMerchantAutoCompleteView:a,sectionId:i,isDisabled:g,analytics:m,onLoadGlobalMerchants:w,onCreateGlobalMerchant:j,onApproveGlobalReview:c,onRejectGlobalReview:h,onClearGlobalMerchantAutoCompleteResults:y})=>{const d=Y(),{resetField:U,formState:q}=ct(),[L,I]=C.useState(!1),[G,W]=i.split("."),O=parseInt(W),F=q.dirtyFields[G]?.[O]?.originalVendor===!0&&e.selectedMerchantId!==e.merchant.tenantMerchantId,J=e.currentSelection!=null,{merchant:p,recommendations:K}=e,{fetchState:B}=a,oe=u=>{let S=u.websiteUrl?.toString();if(S){if(S=Fe(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=[];K.forEach((u,S)=>{const r=`recommended${ht(S)}`;x.push({label:{label:t.jsx(t.Fragment,{children:u.logo!=null?t.jsxs(ze,{children:[t.jsx(ye,{photoUrl:u.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(d),height:s.logoHeightAndWidth.valuePx(d)},placeholder:{width:s.logoHeightAndWidth.value(d),height:s.logoHeightAndWidth.value(d)},fallbackAvatar:t.jsx(pe,{children:t.jsx(me,{name:u.globalMerchantName,size:s.logoHeightAndWidth.valuePx(d)})})}),t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:u.globalMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:u.globalMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(i,H,r),checkBoxValue:ce(i,H,r),defaultChecked:e.currentSelection===r},tooltipProps:{text:t.jsx(Jt,{recommendation:u,onRedirectionToRecommendedMerchantWebsiteUrl:()=>oe(u)}),maxWidth:"360px"},fieldName:r})});const v=p!=null?{label:{label:t.jsx(t.Fragment,{children:p.logo!=null?t.jsxs(ze,{children:[t.jsx(ye,{photoUrl:p.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(d),height:s.logoHeightAndWidth.valuePx(d)},placeholder:{width:s.logoHeightAndWidth.value(d),height:s.logoHeightAndWidth.value(d)},fallbackAvatar:t.jsx(pe,{children:t.jsx(me,{name:p.tenantMerchantName,size:s.logoHeightAndWidth.valuePx(d)})})}),t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:p.tenantMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:p.tenantMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(i,H,ge),checkBoxValue:ce(i,H,ge),defaultChecked:e.currentSelection==="requested"},tooltipProps:{text:t.jsx(Qt,{merchant:p}),maxWidth:"360px"}}:void 0;let D=p.oldMerchantName;e.currentSelection==="originalVendor"&&e.selectedMerchantId!=null&&(D=e.selectedMerchantId);const k=C.useMemo(()=>Be(D,e.merchant,l),[e,l]),ae=()=>{I(!1),y()},xe=()=>{U(i)};return t.jsx(qe,{windowSize:d,isActiveField:F,children:V.map((u,S)=>{switch(u.key){case"originalVendor":return t.jsx(P,{windowSize:d,wrapperWidth:u.width,children:L===!0?t.jsx(mt,{onClickAway:ae,children:t.jsx(Et,{children:t.jsx(gt,{name:de(i,"originalVendor"),defaultValue:k,isOptionsLoading:B==="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=>{j(p.tenantMerchantId,r,p.websiteUrl)},onMenuClose:ae})})}):k.selectedOption!=null?Yt(k.selectedOption,p,l,d,S,F,I,xe):t.jsxs(M,{className:"global-review-row-item",windowSize:d,isLastItem:S===V.length-1,children:[Ht.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(i,"originalVendor"));case"recommended":return t.jsx(t.Fragment,{children:t.jsx(P,{windowSize:d,wrapperWidth:u.width,gap:s.logoToValueGap,children:x.map((r,b)=>t.jsxs(t.Fragment,{children:[t.jsx(M,{windowSize:d,className:"vendor-global-review-row-item",isLastItem:!1,children:t.jsx(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(je,{variant:"light_transparent",label:f.footer.reject,onClick:()=>h(p.tenantMerchantId),loading:e.rejectStatus.fetchState==="In-Progress",size:"small",style:{height:"100%"}}),t.jsx(_t,{space:o.sp0,style:{display:"flex",alignItems:"center",height:o.sp4,width:o.sp3}}),t.jsx(je,{label:f.footer.approve,onClick:()=>c(p.tenantMerchantId),disabled:!J,loading:e.approveStatus.fetchState==="In-Progress",size:"small",variant:"primary"})]})},`${i}.${u.key}`);case"requestedVendor":return t.jsx(P,{windowSize:d,wrapperWidth:u.width,gap:s.smallLogoToValueGap,children:p.tenantMerchantName&&v!=null?t.jsx(M,{windowSize:d,className:"vendor-global-review-row-item",isLastItem:!1,children:t.jsx(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(i,"merchantId"));case"tenants":default:return t.jsx(P,{windowSize:d,wrapperWidth:u.width,children:t.jsx(Bt,{className:"global-review-row-item",windowSize:d,isLastItem:S===V.length-1,children:t.jsx(E,{display:"block",placement:"bottom-start",title:t.jsx(_,{children:p.tenantName}),children:t.jsx(Z,{children:p.tenantName})})})},de(i,"tenantId"))}})})},qt=()=>{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=n.div`
79
79
  display: flex;
80
80
  margin-bottom: ${o.sp3};
81
81
  background-color: ${e=>e.theme.colors.grey5};
@@ -143,13 +143,13 @@ import{u as Ee,e as Y,a as _e,H as Ye,ca as Je,j as t,B as ue,aX as Qe,F as Xe,b
143
143
  -webkit-box-orient: vertical;
144
144
  overflow: hidden;
145
145
  text-overflow: ellipsis;
146
- `,Bt=n.div``,Z=n.div`
146
+ `,Kt=n.div``,Z=n.div`
147
147
  ${Me};
148
148
  `,M=n(pt)`
149
149
  ${Me};
150
150
  justify-content: ${e=>e.isLastItem?"flex-end":"unset"};
151
151
  display: ${e=>e.isLastItem?"flex":"inline-block"};
152
- `,Kt=n(wt)`
152
+ `,Bt=n(wt)`
153
153
  ${Me};
154
154
  justify-content: ${e=>e.isLastItem?"flex-end":"unset"};
155
155
  display: ${e=>e.isLastItem?"flex":"inline-block"};
@@ -170,7 +170,7 @@ import{u as Ee,e as Y,a as _e,H as Ye,ca as Je,j as t,B as ue,aX as Qe,F as Xe,b
170
170
  align-items: center;
171
171
  visibility: hidden;
172
172
  cursor: pointer;
173
- `,Ge=n(xt)`
173
+ `,Le=n(xt)`
174
174
  color: ${e=>e.theme.colors.hero};
175
175
  align-items: center;
176
176
  height: ${o.sp3};
@@ -179,7 +179,7 @@ import{u as Ee,e as Y,a as _e,H as Ye,ca as Je,j as t,B as ue,aX as Qe,F as Xe,b
179
179
  display: flex;
180
180
  align-items: center;
181
181
  cursor: pointer;
182
- `,Le=n.div`
182
+ `,Ge=n.div`
183
183
  display: flex;
184
184
  text-align: center;
185
185
  align-items: center;
@@ -187,7 +187,7 @@ import{u as Ee,e as Y,a as _e,H as Ye,ca as Je,j as t,B as ue,aX as Qe,F as Xe,b
187
187
  `,Et=n.div`
188
188
  display: flex;
189
189
  width: 100%;
190
- `,Be=n.div`
190
+ `,Ke=n.div`
191
191
  width: auto;
192
192
  box-sizing: border-box;
193
193
  max-height: ${e=>e.setMaxHeight===!0?o.sp10:"none"};
@@ -215,7 +215,7 @@ import{u as Ee,e as Y,a as _e,H as Ye,ca as Je,j as t,B as ue,aX as Qe,F as Xe,b
215
215
  `,ze=n.div`
216
216
  display: flex;
217
217
  gap: ${o.sp2};
218
- `,Ke=(e,l,a)=>{const i=a.find(m=>m.globalMerchantId===e),g=l.tenantMerchantId===e?{label:l.tenantMerchantName,value:l.tenantMerchantId}:i!=null?{label:i.globalMerchantName,value:i.globalMerchantId}:void 0;return g!=null?{defaultOptions:[g],selectedOption:e}:{defaultOptions:[],selectedOption:e}},Yt=(e,l,a,i,g,m,w,j)=>{const c=a.find(y=>y.globalMerchantId===e),h=l.tenantMerchantId===e?{logo:l.logo,name:l.tenantMerchantName}:c!=null?{logo:c.logo,name:c.globalMerchantName}:e.length>0?{logo:void 0,name:e}:void 0;return h==null?t.jsxs(t.Fragment,{children:[t.jsx(M,{className:"vendor-global-review-row-item",windowSize:i,isLastItem:!1,children:f.strings.hyphen}),t.jsxs(Le,{children:[t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":T("global-review-list-row-edit-icon")})}),m?t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Ge,{className:"reset-icon",onClick:j,"data-testid":T("global-review-list-row-undo-icon")})}):null]})]}):t.jsxs(t.Fragment,{children:[h.logo!=null?t.jsx(ye,{photoUrl:h.logo.toString(),styles:{width:s.vendorNameLogoHeightAndWidth.valuePx(i),height:s.vendorNameLogoHeightAndWidth.valuePx(i),marginRight:s.logoToValueGap.valuePx(i)},placeholder:{width:s.vendorNameLogoHeightAndWidth.value(i),height:s.vendorNameLogoHeightAndWidth.value(i),style:{marginRight:s.logoToValueGap.valuePx(i)}},fallbackAvatar:t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(i)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(i)})})}):t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(i)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(i)})}),t.jsxs(Le,{children:[t.jsx(M,{className:"global-review-row-item",windowSize:i,isLastItem:g===V.length-1,children:t.jsx(E,{display:"block",placement:"bottom-start",title:t.jsx(_,{children:h.name}),children:t.jsx(Z,{children:h.name})})}),t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":T("global-review-list-row-edit-icon-tooltip")})}),m?t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Ge,{className:"reset-icon",onClick:j})}):null]})]})},Jt=({recommendation:e,onRedirectionToRecommendedMerchantWebsiteUrl:l})=>t.jsxs(Be,{setMaxHeight:!0,children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.vendor}),t.jsx(te,{children:e.globalMerchantName})]}),e.websiteUrl?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>l(e),"data-testid":T("global-review-list-row-website-url-tooltip-website-url"),children:e.websiteUrl?.toString()})]}):null]}),Qt=({merchant:e})=>{let l=e.websiteUrl?.toString()??f.strings.empty;return t.jsxs(Be,{children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.name}),t.jsx(te,{children:e.tenantMerchantName})]}),e.accountName.length?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.category}),t.jsx(te,{children:e.accountName})]}):null,e.accountName.length?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.class}),t.jsx(te,{children:e.className})]}):null,l?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>{l&&(l=Oe(l)??l,window.open(l,"_blank"))},"data-testid":T("global-review-list-row-website-url-tooltip"),children:l})]}):null]})},Xt=({sortConfig:e,fetchState:l,isDisabled:a,onColumnSortConfigChanged:i})=>{const g=Y();return t.jsxs(Zt,{windowSize:g,children:[t.jsx(Ue,{sortConfig:e,isDisabled:l==="In-Progress"?"readonly":a,onColumnSortConfigChanged:i}),t.jsx(el,{windowSize:g,children:[...Array(7)].map((m,w)=>t.jsx(qt,{},w))})]})},Zt=n.div`
218
+ `,Be=(e,l,a)=>{const i=a.find(m=>m.globalMerchantId===e),g=l.tenantMerchantId===e?{label:l.tenantMerchantName,value:l.tenantMerchantId}:i!=null?{label:i.globalMerchantName,value:i.globalMerchantId}:void 0;return g!=null?{defaultOptions:[g],selectedOption:e}:{defaultOptions:[],selectedOption:e}},Yt=(e,l,a,i,g,m,w,j)=>{const c=a.find(y=>y.globalMerchantId===e),h=l.tenantMerchantId===e?{logo:l.logo,name:l.tenantMerchantName}:c!=null?{logo:c.logo,name:c.globalMerchantName}:e.length>0?{logo:void 0,name:e}:void 0;return h==null?t.jsxs(t.Fragment,{children:[t.jsx(M,{className:"vendor-global-review-row-item",windowSize:i,isLastItem:!1,children:f.strings.hyphen}),t.jsxs(Ge,{children:[t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":T("global-review-list-row-edit-icon")})}),m?t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Le,{className:"reset-icon",onClick:j,"data-testid":T("global-review-list-row-undo-icon")})}):null]})]}):t.jsxs(t.Fragment,{children:[h.logo!=null?t.jsx(ye,{photoUrl:h.logo.toString(),styles:{width:s.vendorNameLogoHeightAndWidth.valuePx(i),height:s.vendorNameLogoHeightAndWidth.valuePx(i),marginRight:s.logoToValueGap.valuePx(i)},placeholder:{width:s.vendorNameLogoHeightAndWidth.value(i),height:s.vendorNameLogoHeightAndWidth.value(i),style:{marginRight:s.logoToValueGap.valuePx(i)}},fallbackAvatar:t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(i)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(i)})})}):t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(i)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(i)})}),t.jsxs(Ge,{children:[t.jsx(M,{className:"global-review-row-item",windowSize:i,isLastItem:g===V.length-1,children:t.jsx(E,{display:"block",placement:"bottom-start",title:t.jsx(_,{children:h.name}),children:t.jsx(Z,{children:h.name})})}),t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":T("global-review-list-row-edit-icon-tooltip")})}),m?t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Le,{className:"reset-icon",onClick:j})}):null]})]})},Jt=({recommendation:e,onRedirectionToRecommendedMerchantWebsiteUrl:l})=>t.jsxs(Ke,{setMaxHeight:!0,children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.vendor}),t.jsx(te,{children:e.globalMerchantName})]}),e.websiteUrl?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>l(e),"data-testid":T("global-review-list-row-website-url-tooltip-website-url"),children:e.websiteUrl?.toString()})]}):null]}),Qt=({merchant:e})=>{let l=e.websiteUrl?.toString()??f.strings.empty;return t.jsxs(Ke,{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=Fe(l)??l,window.open(l,"_blank"))},"data-testid":T("global-review-list-row-website-url-tooltip"),children:l})]}):null]})},Xt=({sortConfig:e,fetchState:l,isDisabled:a,onColumnSortConfigChanged:i})=>{const g=Y();return t.jsxs(Zt,{windowSize:g,children:[t.jsx(Ue,{sortConfig:e,isDisabled:l==="In-Progress"?"readonly":a,onColumnSortConfigChanged:i}),t.jsx(el,{windowSize:g,children:[...Array(7)].map((m,w)=>t.jsx(qt,{},w))})]})},Zt=n.div`
219
219
  display: block;
220
220
  min-height: 100%;
221
221
  flex-direction: column;
@@ -224,7 +224,7 @@ import{u as Ee,e as Y,a as _e,H as Ye,ca as Je,j as t,B as ue,aX as Qe,F as Xe,b
224
224
  display: flex;
225
225
  min-height: 100%;
226
226
  flex-direction: column;
227
- `,{common:tl,vendorReview:{globalReview:{globalMerchantList:Ae}}}=ue.getLocalizedStrings(),ll=({vendorGlobalReviewList:e,allGlobalMerchants:l,sectionId:a,listFetchState:i,globalMerchantAutoCompleteView:g,uiState:m,isDisabled:w,analytics:j,onLoadGlobalMerchants:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:y,onCreateGlobalMerchant:d,onApproveGlobalMerchantReview:U,onRejectGlobalMerchantReview:q,onClearGlobalMerchantAutoCompleteResults:G})=>{const I=Y(),L=C.useRef(null),[W,F]=C.useState(!1);C.useEffect(()=>{L.current?.resetAfterIndex(0)},[I,L]),C.useEffect(()=>{i==="Completed"&&F(!1)},[i]);const O=x=>Vt,J=(x,v)=>{h({sortOrder:v,sortKey:x}),y(m.searchText,!1,null)},p=()=>{F(!0),y(m.searchText,!0,m.pageToken)},B=x=>x<e.length,K=()=>{m.pageToken!=null&&i==="Completed"&&p()},oe=x=>{const v=e.find(k=>k.merchant.tenantMerchantId===x),D=l.find(k=>k.globalMerchantId===v?.selectedMerchantId);v?.currentSelection!="requested"||D!=null&&v?.currentSelection=="requested"?U(x):v!=null&&d(x,v.merchant.tenantMerchantName,v.merchant.websiteUrl)};return t.jsxs(nl,{windowSize:I,children:[t.jsx(al,{windowSize:I,children:i==="Error"?t.jsxs(sl,{windowSize:I,children:[t.jsx(dl,{"data-testid":T("global-review-list-table-reload-icon"),onClick:()=>y("",!1,null),children:t.jsx(Ze,{})}),t.jsx(cl,{children:tl.reloadPage.label})]}):i==="Completed"&&e.length===0?t.jsx(et,{message:m.searchText?Ae.noMatchedDataText:Ae.noDataText,style:{padding:o.sp0}}):i==="Not-Started"||i==="In-Progress"&&e.length===0?t.jsx(Xt,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:w,fetchState:i,onColumnSortConfigChanged:J}):t.jsx(rl,{windowSize:I,children:t.jsx(tt,{children:({height:x,width:v})=>t.jsx(lt,{isItemLoaded:B,itemCount:e.length+1,loadMoreItems:K,children:({onItemsRendered:D})=>t.jsxs(ml,{style:{height:x,width:v},children:[t.jsx(il,{children:t.jsx(Ue,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:i==="In-Progress"?"readonly":w,onColumnSortConfigChanged:J})}),t.jsx(ot,{ref:L,height:x-He,itemCount:e.length,itemData:{analytics:j,vendorGlobalReviewList:e,sectionId:a,allGlobalMerchants:l,globalMerchantAutoCompleteView:g,isDisabled:w,onLoadGlobalMerchants:c,onApproveGlobalReview:oe,onRejectGlobalMerchantReview:q,onCreateGlobalMerchant:d,onClearGlobalMerchantAutoCompleteResults:G},onItemsRendered:D,itemSize:O,width:v,style:{willChange:"auto"},overscanCount:Gt,onScroll:({scrollOffset:k})=>{h({scrollYOffset:k})},initialScrollOffset:m.scrollYOffset,children:ol})]})})})})}),t.jsx(it,{controller:W===!0,children:t.jsx(gl,{children:t.jsx(nt,{size:"Small",start:!0})})})]})},ol=({index:e,style:l,data:a})=>{const{analytics:i,vendorGlobalReviewList:g,allGlobalMerchants:m,globalMerchantAutoCompleteView:w,sectionId:j,isDisabled:c,onLoadGlobalMerchants:h,onCreateGlobalMerchant:y,onApproveGlobalReview:d,onRejectGlobalMerchantReview:U,onClearGlobalMerchantAutoCompleteResults:q}=a,G=g[e];return t.jsx(hl,{style:{...l,width:"100%"},className:"global-review-list-item",children:t.jsx(Ut,{sectionId:`${j}.${e}`,isDisabled:G.approveStatus.fetchState==="In-Progress"?"readonly":c,globalMerchantAutoCompleteView:w,vendorGlobalReviewData:G,allGlobalMerchants:m,onLoadGlobalMerchants:h,onCreateGlobalMerchant:y,onApproveGlobalReview:d,onRejectGlobalReview:U,onClearGlobalMerchantAutoCompleteResults:q,analytics:i},G.merchant.tenantMerchantId)})},il=n.div`
227
+ `,{common:tl,vendorReview:{globalReview:{globalMerchantList:Ae}}}=ue.getLocalizedStrings(),ll=({vendorGlobalReviewList:e,allGlobalMerchants:l,sectionId:a,listFetchState:i,globalMerchantAutoCompleteView:g,uiState:m,isDisabled:w,analytics:j,onLoadGlobalMerchants:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:y,onCreateGlobalMerchant:d,onApproveGlobalMerchantReview:U,onRejectGlobalMerchantReview:q,onClearGlobalMerchantAutoCompleteResults:L})=>{const I=Y(),G=C.useRef(null),[W,O]=C.useState(!1);C.useEffect(()=>{G.current?.resetAfterIndex(0)},[I,G]),C.useEffect(()=>{i==="Completed"&&O(!1)},[i]);const F=x=>Vt,J=(x,v)=>{h({sortOrder:v,sortKey:x}),y(m.searchText,!1,null)},p=()=>{O(!0),y(m.searchText,!0,m.pageToken)},K=x=>x<e.length,B=()=>{m.pageToken!=null&&i==="Completed"&&p()},oe=x=>{const v=e.find(k=>k.merchant.tenantMerchantId===x),D=l.find(k=>k.globalMerchantId===v?.selectedMerchantId);v?.currentSelection!="requested"||D!=null&&v?.currentSelection=="requested"?U(x):v!=null&&d(x,v.merchant.tenantMerchantName,v.merchant.websiteUrl)};return t.jsxs(nl,{windowSize:I,children:[t.jsx(al,{windowSize:I,children:i==="Error"?t.jsxs(sl,{windowSize:I,children:[t.jsx(dl,{"data-testid":T("global-review-list-table-reload-icon"),onClick:()=>y("",!1,null),children:t.jsx(Ze,{})}),t.jsx(cl,{children:tl.reloadPage.label})]}):i==="Completed"&&e.length===0?t.jsx(et,{message:m.searchText?Ae.noMatchedDataText:Ae.noDataText,style:{padding:o.sp0}}):i==="Not-Started"||i==="In-Progress"&&e.length===0?t.jsx(Xt,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:w,fetchState:i,onColumnSortConfigChanged:J}):t.jsx(rl,{windowSize:I,children:t.jsx(tt,{children:({height:x,width:v})=>t.jsx(lt,{isItemLoaded:K,itemCount:e.length+1,loadMoreItems:B,children:({onItemsRendered:D})=>t.jsxs(ml,{style:{height:x,width:v},children:[t.jsx(il,{children:t.jsx(Ue,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:i==="In-Progress"?"readonly":w,onColumnSortConfigChanged:J})}),t.jsx(ot,{ref:G,height:x-He,itemCount:e.length,itemData:{analytics:j,vendorGlobalReviewList:e,sectionId:a,allGlobalMerchants:l,globalMerchantAutoCompleteView:g,isDisabled:w,onLoadGlobalMerchants:c,onApproveGlobalReview:oe,onRejectGlobalMerchantReview:q,onCreateGlobalMerchant:d,onClearGlobalMerchantAutoCompleteResults:L},onItemsRendered:D,itemSize:F,width:v,style:{willChange:"auto"},overscanCount:Lt,onScroll:({scrollOffset:k})=>{h({scrollYOffset:k})},initialScrollOffset:m.scrollYOffset,children:ol})]})})})})}),t.jsx(it,{controller:W===!0,children:t.jsx(gl,{children:t.jsx(nt,{size:"Small",start:!0})})})]})},ol=({index:e,style:l,data:a})=>{const{analytics:i,vendorGlobalReviewList:g,allGlobalMerchants:m,globalMerchantAutoCompleteView:w,sectionId:j,isDisabled:c,onLoadGlobalMerchants:h,onCreateGlobalMerchant:y,onApproveGlobalReview:d,onRejectGlobalMerchantReview:U,onClearGlobalMerchantAutoCompleteResults:q}=a,L=g[e];return t.jsx(hl,{style:{...l,width:"100%"},className:"global-review-list-item",children:t.jsx(Ut,{sectionId:`${j}.${e}`,isDisabled:L.approveStatus.fetchState==="In-Progress"?"readonly":c,globalMerchantAutoCompleteView:w,vendorGlobalReviewData:L,allGlobalMerchants:m,onLoadGlobalMerchants:h,onCreateGlobalMerchant:y,onApproveGlobalReview:d,onRejectGlobalReview:U,onClearGlobalMerchantAutoCompleteResults:q,analytics:i},L.merchant.tenantMerchantId)})},il=n.div`
228
228
  width: auto;
229
229
  `,nl=n.div`
230
230
  display: block;
@@ -280,7 +280,7 @@ import{u as Ee,e as Y,a as _e,H as Ye,ca as Je,j as t,B as ue,aX as Qe,F as Xe,b
280
280
  align-items: center;
281
281
  margin-top: ${o.sp3};
282
282
  margin-bottom: ${o.sp3};
283
- `,{common:{sectionTitles:pl},vendorReview:{globalReview:{globalMerchantList:Pe}}}=ue.getLocalizedStrings(),ul="globalReviewListPage",he="globalReviewListTable",Rl=({vendorGlobalReviewView:e,globalMerchantAutoCompleteView:l,analytics:a,isDisabled:i,onUpdateSelectedGlobalMerchant:g,onApproveGlobalReview:m,onRejectGlobalReview:w,onCreateGlobalMerchant:j,onFetchGlobalMerchantAutoCompleteResults:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:y,onClearGlobalMerchantAutoCompleteResults:d,onBackClick:U,onClickMenuIcon:q})=>{const G=Ee(),I=Y(),{vendorGlobalReviewData:L,allGlobalMerchants:W,uiState:F,fetchState:O}=e,{globalMerchants:J,fetchState:p}=l,B=_e({mode:"all",reValidateMode:"onChange",defaultValues:Te(L,W),values:Te(L,W),resetOptions:{keepDirtyValues:!0}}),[K,oe]=C.useState(F.searchText),x=C.useRef(),v=r=>{y(r,!1,null)},D=r=>{const b=L.find(z=>z.merchant.tenantMerchantId===r);if(b!=null){const z=W.find(X=>X.globalMerchantId===b.selectedMerchantId),Q=b.recommendations,{tenantName:re,oldMerchantName:ie,tenantMerchantName:ne}=b.merchant,R=z?.globalMerchantName??ne,A=Q[0];a.trackVendorReviewApproveRequested({reviewSource:"global_review",tenantName:re,requestedVendorName:ne,originalVendorName:ie,approveVendorName:R,isGlobalVendorRequested:z!=null,isNewCreatedVendorRequested:!1,isVendorNameRecommendationSelected:b.currentSelection==="recommendedFirst"||b.currentSelection==="recommendedSecond",isVendorNameChangedAndSelected:R!==ne,wasRecommendationAvailable:!!A?.globalMerchantName,approveVendorReason:z?.reason??null,approveVendorNameSelectionSource:R===A?.globalMerchantName?"recommendation":"text_edit",recommendedVendorName:A?.globalMerchantName??null,recommendedVendorReason:A?.reason??null})}m(r)},k=C.useRef(Ye(r=>v(r),500,{trailing:!0})).current;C.useEffect(()=>{O==="Completed"&&a.trackVendorReviewPage("global_review",F.totalCount)},[O]),C.useEffect(()=>{p==="Completed"&&x.current?.(vl(J))},[p]);const ae=(r,b)=>{c(r),x.current=b},xe=()=>{},u=async(r,b,z)=>{const{globalReviewListTable:Q}=b,re=parseInt(r.split(".")[1]),ie=Q[re].merchantId;if(z==null){g(ie,{recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:!1},ie);return}if(r.includes(he)){const ne=parseInt(r.split(".")[1]),R={...b[he][ne]};let A=R[H],X;R.merchantId!=null&&(r.includes(Re)?(A={recommendedFirst:R[H].recommendedFirst,recommendedSecond:!1,originalVendor:!1,requested:!1},X=R[Re]?.globalMerchantId):r.includes(Ne)?(A={recommendedFirst:!1,recommendedSecond:R[H].recommendedSecond,originalVendor:!1,requested:!1},X=R[Ne]?.globalMerchantId):r.includes(ge)?(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:R[H].requested},X=R[ge]):r.includes(ve)&&(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!0,requested:!1})),g(ie,A,r.includes(ve)?Q[re][ve].selectedOption:X)}};C.useEffect(()=>{const r=B.watch((b,{name:z,type:Q})=>{z!=null&&b!=null&&Je(()=>u(z,b,Q))});return()=>{r.unsubscribe()}});const S=t.jsx(vt,{button:{label:pl.newVendor,onClick:()=>j()},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(wl,{children:[t.jsx(Qe,{title:Pe.navBarTitle,backgroundColor:G.colors.grey4,onBackClick:U,rightSideComponent:S,showMenuIcon:I==="medium-compact"||I==="small",onClickMenuIcon:q,source:"GlobalReviewListPage"}),t.jsx(bl,{children:t.jsx(Xe,{...B,children:t.jsx("form",{id:xl(ul),onSubmit:B.handleSubmit(xe),style:{width:"100%"},children:t.jsx(ll,{vendorGlobalReviewList:L,allGlobalMerchants:W,globalMerchantAutoCompleteView:l,uiState:{...F,searchText:K},isDisabled:i,listFetchState:O,sectionId:he,onLoadGlobalMerchants:ae,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:y,onCreateGlobalMerchant:j,onApproveGlobalMerchantReview:D,onRejectGlobalMerchantReview:w,onClearGlobalMerchantAutoCompleteResults:d,analytics:a})})})})]})},wl=n.div`
283
+ `,{common:{sectionTitles:pl},vendorReview:{globalReview:{globalMerchantList:Pe}}}=ue.getLocalizedStrings(),ul="globalReviewListPage",he="globalReviewListTable",Rl=({vendorGlobalReviewView:e,globalMerchantAutoCompleteView:l,analytics:a,isDisabled:i,onUpdateSelectedGlobalMerchant:g,onApproveGlobalReview:m,onRejectGlobalReview:w,onCreateGlobalMerchant:j,onFetchGlobalMerchantAutoCompleteResults:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:y,onClearGlobalMerchantAutoCompleteResults:d,onBackClick:U,onClickMenuIcon:q})=>{const L=Ee(),I=Y(),{vendorGlobalReviewData:G,allGlobalMerchants:W,uiState:O,fetchState:F}=e,{globalMerchants:J,fetchState:p}=l,K=_e({mode:"all",reValidateMode:"onChange",defaultValues:Te(G,W),values:Te(G,W),resetOptions:{keepDirtyValues:!0}}),[B,oe]=C.useState(O.searchText),x=C.useRef(),v=r=>{y(r,!1,null)},D=r=>{const b=G.find(z=>z.merchant.tenantMerchantId===r);if(b!=null){const z=W.find(X=>X.globalMerchantId===b.selectedMerchantId),Q=b.recommendations,{tenantName:re,oldMerchantName:ie,tenantMerchantName:ne}=b.merchant,R=z?.globalMerchantName??ne,A=Q[0];a.trackVendorReviewApproveRequested({reviewSource:"global_review",tenantName:re,requestedVendorName:ne,originalVendorName:ie,approveVendorName:R,isGlobalVendorRequested:z!=null,isNewCreatedVendorRequested:!1,isVendorNameRecommendationSelected:b.currentSelection==="recommendedFirst"||b.currentSelection==="recommendedSecond",isVendorNameChangedAndSelected:R!==ne,wasRecommendationAvailable:!!A?.globalMerchantName,approveVendorReason:z?.reason??null,approveVendorNameSelectionSource:R===A?.globalMerchantName?"recommendation":"text_edit",recommendedVendorName:A?.globalMerchantName??null,recommendedVendorReason:A?.reason??null})}m(r)},k=C.useRef(Ye(r=>v(r),500,{trailing:!0})).current;C.useEffect(()=>{F==="Completed"&&a.trackVendorReviewPage("global_review",O.totalCount)},[F]),C.useEffect(()=>{p==="Completed"&&x.current?.(vl(J))},[p]);const ae=(r,b)=>{c(r),x.current=b},xe=()=>{},u=async(r,b,z)=>{const{globalReviewListTable:Q}=b,re=parseInt(r.split(".")[1]),ie=Q[re].merchantId;if(z==null){g(ie,{recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:!1},ie);return}if(r.includes(he)){const ne=parseInt(r.split(".")[1]),R={...b[he][ne]};let A=R[H],X;R.merchantId!=null&&(r.includes(Re)?(A={recommendedFirst:R[H].recommendedFirst,recommendedSecond:!1,originalVendor:!1,requested:!1},X=R[Re]?.globalMerchantId):r.includes(Ne)?(A={recommendedFirst:!1,recommendedSecond:R[H].recommendedSecond,originalVendor:!1,requested:!1},X=R[Ne]?.globalMerchantId):r.includes(ge)?(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:R[H].requested},X=R[ge]):r.includes(ve)&&(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!0,requested:!1})),g(ie,A,r.includes(ve)?Q[re][ve].selectedOption:X)}};C.useEffect(()=>{const r=K.watch((b,{name:z,type:Q})=>{z!=null&&b!=null&&Je(()=>u(z,b,Q))});return()=>{r.unsubscribe()}});const S=t.jsx(vt,{button:{label:pl.newVendor,onClick:()=>j()},search:{searchText:B,hide:!1,isOpen:B.length>0,placeHolder:Pe.searchPlaceholder,onTextChange:r=>{oe(r),r.trim().length>=2?k(r):r.trim().length==0&&k("")}}});return t.jsxs(wl,{children:[t.jsx(Qe,{title:Pe.navBarTitle,backgroundColor:L.colors.grey4,onBackClick:U,rightSideComponent:S,showMenuIcon:I==="medium-compact"||I==="small",onClickMenuIcon:q,source:"GlobalReviewListPage"}),t.jsx(bl,{children:t.jsx(Xe,{...K,children:t.jsx("form",{id:xl(ul),onSubmit:K.handleSubmit(xe),style:{width:"100%"},children:t.jsx(ll,{vendorGlobalReviewList:G,allGlobalMerchants:W,globalMerchantAutoCompleteView:l,uiState:{...O,searchText:B},isDisabled:i,listFetchState:F,sectionId:he,onLoadGlobalMerchants:ae,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:y,onCreateGlobalMerchant:j,onApproveGlobalMerchantReview:D,onRejectGlobalMerchantReview:w,onClearGlobalMerchantAutoCompleteResults:d,analytics:a})})})})]})},wl=n.div`
284
284
  display: flex;
285
285
  min-height: 100%;
286
286
  width: 100%;
@@ -288,4 +288,4 @@ import{u as Ee,e as Y,a as _e,H as Ye,ca as Je,j as t,B as ue,aX as Qe,F as Xe,b
288
288
  background-color: ${e=>e.theme.colors.grey4};
289
289
  `,bl=n.div`
290
290
  display: flex;
291
- `,xl=e=>`${e}_form`,Te=(e,l)=>({[he]:e.map(a=>{const{merchant:i}=a;let g=i.oldMerchantName;return a.currentSelection==="originalVendor"&&a.selectedMerchantId!=null&&(g=a.selectedMerchantId),{tenantId:i.tenantId,merchantId:i.tenantMerchantId,originalVendor:Ke(g,i,l),recommendedFirst:a.recommendations[0],recommendedSecond:a.recommendations[1],currentSelection:{recommendedFirst:a.currentSelection==="recommendedFirst",recommendedSecond:a.currentSelection==="recommendedSecond",requested:a.currentSelection==="requested",originalVendor:a.currentSelection==="originalVendor"},requested:i.tenantMerchantId}})}),vl=e=>e.map(l=>({label:l.globalMerchantName,value:l.globalMerchantId})).sort((l,a)=>l.label.localeCompare(a.label));export{Rl as default,xl as uniqueFormName};
291
+ `,xl=e=>`${e}_form`,Te=(e,l)=>({[he]:e.map(a=>{const{merchant:i}=a;let g=i.oldMerchantName;return a.currentSelection==="originalVendor"&&a.selectedMerchantId!=null&&(g=a.selectedMerchantId),{tenantId:i.tenantId,merchantId:i.tenantMerchantId,originalVendor:Be(g,i,l),recommendedFirst:a.recommendations[0],recommendedSecond:a.recommendations[1],currentSelection:{recommendedFirst:a.currentSelection==="recommendedFirst",recommendedSecond:a.currentSelection==="recommendedSecond",requested:a.currentSelection==="requested",originalVendor:a.currentSelection==="originalVendor"},requested:i.tenantMerchantId}})}),vl=e=>e.map(l=>({label:l.globalMerchantName,value:l.globalMerchantId})).sort((l,a)=>l.label.localeCompare(a.label));export{Rl as default,xl as uniqueFormName};