@zeniai/web-cockpit-ui 1.14.13-qa → 1.14.14-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 (250) hide show
  1. package/dist/assets/ACHDetailsPage-DzRJ2QAk-DvsByjsE.js +21 -0
  2. package/dist/assets/{AIPerformancePage-C-orwzaK-C6rbxEzb.js → AIPerformancePage-BFjLWbFj-Clm2qRBD.js} +44 -44
  3. package/dist/assets/{AccountInfoPage-DvhQOLM6-CX5o6Llb.js → AccountInfoPage-iz3OwpQ7-TJq-6cJ1.js} +3 -3
  4. package/dist/assets/{AccountInfoPageContent-B1BJnQNd-C74MLyxZ.js → AccountInfoPageContent-DqO5Kcep-dFhLo0ar.js} +18 -18
  5. package/dist/assets/{AccountReconDetailsDrawerPage-C8EtTwZE-Cmjy7UY9.js → AccountReconDetailsDrawerPage-kNZ0VZns-coqlqQ2C.js} +13 -13
  6. package/dist/assets/{AccountRow-m3N4T8ro-C0WA_XfX.js → AccountRow-CAXWtAin-BB54Lqef.js} +27 -27
  7. package/dist/assets/{AccountsPromoCardStack-DGHAcZ7D-Ce3ZBF_s.js → AccountsPromoCardStack-Dqrhr23F-CroWlBVf.js} +28 -28
  8. package/dist/assets/{AddAddressForCardDrawer-B_1jj1h7-gqd8s2Xm.js → AddAddressForCardDrawer-D2IMZgZa-xE__lTqS.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-DL1Bk4bd-DTEhx0Mb.js → AddToWalletPage-qgqXvx0C-CKm1Ldrx.js} +21 -21
  10. package/dist/assets/{AgingReportsPage-DQ4P7iSR-DRrTaXuT.js → AgingReportsPage-CNWj8sV2-jqLPsgQn.js} +8 -8
  11. package/dist/assets/{AllUserItems-BSWk_1pR-DI3PB0Ie.js → AllUserItems--netGz7H-Bnantk93.js} +13 -13
  12. package/dist/assets/{ApAgingDetailPage-0i8K1czh-BdP3zPvv.js → ApAgingDetailPage-CxLaoiqg-C-EmvhQs.js} +2 -2
  13. package/dist/assets/{AppBasePage-CV3kU-Ax-D761wqV3.js → AppBasePage-CbUMSiOb-C2Qhzc1Z.js} +7 -7
  14. package/dist/assets/{AppDrawerContent-DA8q-1_m-DY4TNtE3.js → AppDrawerContent-BNTS8MtE-Dc-K1QNS.js} +19 -19
  15. package/dist/assets/{ApprovalRulesSettingsPage-CRlqbhea-CDRK6CVR.js → ApprovalRulesSettingsPage-lFVUzKhw-CpEDBPBV.js} +7 -7
  16. package/dist/assets/{ArAgingChart-CiJNNObG-B2XrTnTz.js → ArAgingChart-BBavISMZ-BRq-xI7y.js} +6 -6
  17. package/dist/assets/{ArAgingDetailPage-2I9R_J97-CDktd7-L.js → ArAgingDetailPage-Bk49E_4I-BtplOHK3.js} +1 -1
  18. package/dist/assets/{AttachmentView-D0naVbDk-BwHrzCwR.js → AttachmentView-g756MrON-D9Kn72J1.js} +7 -7
  19. package/dist/assets/{BankAccountSection-CYYTnOEW-u_09M64L.js → BankAccountSection-C0U0fm6r-DlvauCZL.js} +6 -6
  20. package/dist/assets/BankAccountWarningSection-GcaV2hCI-D3Ca46bt.js +51 -0
  21. package/dist/assets/{BankConnectionsSettingsPage-BzwCu93j-BUFuHbUe.js → BankConnectionsSettingsPage-YwtSaNry-DRhjAjtE.js} +49 -49
  22. package/dist/assets/{BillDetailPage-OzI0RkQ_-BfKQOd2E.js → BillDetailPage-e0b0r_9U-yPEt29dp.js} +16 -16
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-DIQW7KY9-DJWja9k_.js → BillPayApprovalRuleDetailPage-DZNOlmqa-CLwguHOJ.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-BMmJ4cuT-__2Bsq1U.js → BillPayApprovalRulesPage-HvIHZYLp-DVLOehTT.js} +9 -9
  25. package/dist/assets/{BillPayPromoPage-CN5LKQzn-0JHpDPWr.js → BillPayPromoPage-BKRIBuWK-DP5dbDj_.js} +8 -8
  26. package/dist/assets/{BillPaySetUpPage-DMKmupPw-BLQDwDwf.js → BillPaySetUpPage-DVFYVrcF-D5-3Y6xe.js} +2 -2
  27. package/dist/assets/{BillingSettingsPage-Bt_0mrqR-BFb05sIp.js → BillingSettingsPage-Boq7QJuJ-MMRw9LV_.js} +8 -8
  28. package/dist/assets/{BillsBulkReviewDrawerPage-GFME_IXw-BiBj7sS4.js → BillsBulkReviewDrawerPage-DB1RnMx6-BMOFxqLf.js} +1 -1
  29. package/dist/assets/{BoxItem-nvtPdCwS-B3L2WvTD.js → BoxItem-C5PEWObZ-C1r9NNOq.js} +1 -1
  30. package/dist/assets/BusinessVerificationPage-JFwqav9V-Bf6JWYI7.js +140 -0
  31. package/dist/assets/{CardNumberSubText-DBpF1pjJ-BY_Eifxb.js → CardNumberSubText-Qd4Nl4Ie-CMfs42of.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-DrdbDPXK-CYepjX8S.js → CashbackDetailPage-pMaAPWGY-BU5YiPyR.js} +30 -30
  33. package/dist/assets/{ChargeCardDetailPage-DvY3CSB4-BOCLZ4ee.js → ChargeCardDetailPage-ZhB56XeA-yRngE5Q2.js} +54 -54
  34. package/dist/assets/{ChargeCardListPage-BE5yGbg8-rjnPyN2B.js → ChargeCardListPage-3k973dhm-CXGJrCSu.js} +14 -14
  35. package/dist/assets/{ChargeCardListTable-B-scLCAt-CkeriUJ9.js → ChargeCardListTable-aotBBLcN-DM0qvCiY.js} +37 -37
  36. package/dist/assets/ChargeCardPromoPage-D5h6LEV7-Ca2lkyXc.js +219 -0
  37. package/dist/assets/{ChargeCardSetupPage-FNCK1n4W-CmPQlH3j.js → ChargeCardSetupPage-DLhS4IXu-BTWinhYJ.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-1fuIth_h-COFasWWf.js → ChargeCardStatementsPage-C9JupC6z-Cl_Np1aF.js} +9 -9
  39. package/dist/assets/{ChargeCardUtils-CErWBcYS-CDDnXQPt.js → ChargeCardUtils-DlCRcsWm-C2oiv8yk.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-9_ms5LgM-DXC_zSYp.js → ChaseOverlay-Cpt5a98f-D5R6S2Uh.js} +7 -7
  41. package/dist/assets/CheckDepositDrawerPage-Nz2eeTkw-C6G5mb5T.js +206 -0
  42. package/dist/assets/{CollapsableReportTable-DX-FpwE7-BeBpL5MN.js → CollapsableReportTable-D_yuiPyJ-DhZJx5n7.js} +59 -59
  43. package/dist/assets/CompanyOfficerDetailsSection-C3yfgjGi-D1y_4iNp.js +232 -0
  44. package/dist/assets/{CompanyPassportCard-BZXE3iJL-DilKoEdI.js → CompanyPassportCard-yl1IgKFI-D5o4V1kY.js} +4 -4
  45. package/dist/assets/{CompanyPassportPage-BYZC3G4H-CVW8Rjjr.js → CompanyPassportPage-CVyMn0gX-B84l3k5M.js} +22 -22
  46. package/dist/assets/CompleteProfile-DzShtAr0-DgZZyN3N.js +36 -0
  47. package/dist/assets/{ConfettiBurst-BEoFHjQ0-DpE46940.js → ConfettiBurst-C47O0k3A-CgE-jS0G.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-6sohsdle-DA504h5F.js → CreateOrEditVendorPage-LadbvQ9C-BM9MXFCX.js} +11 -11
  49. package/dist/assets/{CreditCardPaymentDrawerPage-6oVDS3D8-C-M8T0xP.js → CreditCardPaymentDrawerPage-BQKmQNsf-D51SQtY9.js} +21 -21
  50. package/dist/assets/{CreditCardPaymentPlgSection-DX1BieKp-RRhQZkQz.js → CreditCardPaymentPlgSection-BKgF2tFu-B2qut9Kq.js} +12 -11
  51. package/dist/assets/{CurrencySelectField-F2P1iCLk-Bpmtm2da.js → CurrencySelectField-D_UXMdLl-3fWMP5Ut.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-CNJkyjta-BVYDPEX6.js → CustomerOnboardingActivationPage-DYDUNktm-VdMelZBk.js} +8 -8
  53. package/dist/assets/CustomerOnboardingContainerPage-D34Fz5xA-DtQjzx0f.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B_MgUg-5-Bsph6TlL.js → CustomerOnboardingDetailPageSkeleton-IwCrs_Ni-BU7FJV1W.js} +12 -12
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-B49-4wZk-D2RstZet.js → CustomerOnboardingNoStepsPage-BinWH6wJ-F7EZH_15.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingPage-4FPXG220-Lt3_K55_.js → CustomerOnboardingPage-mGYcMJc6-Cbh61qkc.js} +7 -7
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-cJPPvh-5-CUtKalOJ.js → CustomerOnboardingProductSuitePage-CMmP2rhp-C2ZiM9Vp.js} +9 -9
  58. package/dist/assets/{Dashboard-BBy_mQ8p-B5jdV4yq.js → Dashboard-B8ej675T-BQsqhmh7.js} +242 -260
  59. package/dist/assets/{DashboardReportPage-DYttySr4-CfmGOUcK.js → DashboardReportPage-D0g4Un-7-CpfFEkxQ.js} +6 -6
  60. package/dist/assets/{DepositAccTransactionItem-PNTL0e8v-BGmvjHCI.js → DepositAccTransactionItem-BiYFTagV-DKGpDZWk.js} +6 -6
  61. package/dist/assets/DepositAccTransactionListPage-B7seT4iQ-ETDHZpCZ.js +66 -0
  62. package/dist/assets/DocumentSecurityBanner-CQSsX1R1-CiqTL3oT.js +29 -0
  63. package/dist/assets/{DomesticWireDetailsPage-BhwTfZwI-DqDvFXEQ.js → DomesticWireDetailsPage-c2Omt2uV-BnfqYqal.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-CUbv29mo-Bw1IdF0e.js → DownloadOverlay-Ca73StXh-C_Z4Bo0m.js} +21 -21
  65. package/dist/assets/{DrawerPage-2_QOgQ1m-8yRdv53N.js → DrawerPage-DbQ3fJ0a-CKvwqNoK.js} +11 -11
  66. package/dist/assets/EditPeoplePage-BSGpToFc-CVz7ykg1.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-C_jRh7w0-JV95TM0u.js → EditReimbursementDetailPage-CF4ITGWS-BCshPTAR.js} +61 -61
  68. package/dist/assets/{EntityDetailPage-BhQsnCgQ-D4_NJ9nD.js → EntityDetailPage-CjjeYmrY-CKF8NzDY.js} +3 -3
  69. package/dist/assets/{EntitySummarySection-CKkXzM76-CapIMSuQ.js → EntitySummarySection-CATUFkYD-DImzYyVi.js} +12 -12
  70. package/dist/assets/{ExpenseAutomationOverviewPage-ZuB3Aiv2-qZiVh6s4.js → ExpenseAutomationOverviewPage-DZJM8s1B-CWuuVSRx.js} +26 -26
  71. package/dist/assets/{ExpenseAutomationPage-BUic8zfk-BHBJ9Z-T.js → ExpenseAutomationPage-CJcg4JEX-CfHRDYOm.js} +41 -41
  72. package/dist/assets/{ExpressPayPage-DEkJ_H0W-CaxLveLq.js → ExpressPayPage-DtAXlY7R-DmEs2VSF.js} +12 -12
  73. package/dist/assets/FeaturePreviewPage-BsLKydgB-BmJgHlv8.js +11 -0
  74. package/dist/assets/{FollowStepsSection-CWw764ZM-CGrm9Uf6.js → FollowStepsSection-CkJm4bPf-DSv54_x1.js} +9 -9
  75. package/dist/assets/{GlobalReviewListPage-CZctHM7r-D_9dJu1v.js → GlobalReviewListPage-DmxSD6UV-B6jMDpXK.js} +12 -12
  76. package/dist/assets/{HelpButton-Dpx0Yoel-CKsVdDSg.js → HelpButton-BFbQbBAV-B9TFt0c5.js} +4 -4
  77. package/dist/assets/{InformationCardStack-BGpHl4yb-lczsugqm.js → InformationCardStack-BMrkstMK-DbtAleoo.js} +5 -5
  78. package/dist/assets/InsightsCardStack-wYrlCPh0-C81zbfqn.js +79 -0
  79. package/dist/assets/InsightsSection-DncKJ7JM-Ch4ouwgi.js +27 -0
  80. package/dist/assets/{IntegrationsSettingsPage-CMjSCRm_-CgzYCQoS.js → IntegrationsSettingsPage-xySXq7aa-D_KPhG4o.js} +8 -8
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-BTbTUt8U-CYMokwYp.js → InternationalWireSwiftDetailsPage-CSqm7kj7-CBN5IgLs.js} +15 -15
  82. package/dist/assets/{InternationalWireVerificationPage-DAW2eMTg-ChJ3uDB8.js → InternationalWireVerificationPage-DUHW34SM-CtEEcP6x.js} +22 -22
  83. package/dist/assets/{InviteFormPage-CCbyacPR-Ckjr5NgF.js → InviteFormPage-FjAlfXw_-BJAcufzm.js} +20 -20
  84. package/dist/assets/{InvitePageListView-mHkALr5o-C7ylPhjm.js → InvitePageListView-PObzTGOB-GwMLzitg.js} +62 -62
  85. package/dist/assets/InvitePeoplePage-BuqTZXW2-BpTuQP9a.js +12 -0
  86. package/dist/assets/{InvoiceUploadSection-BsjeicP1-BP91ZU7m.js → InvoiceUploadSection-CZXO__Vx-Dmz2Yupy.js} +41 -41
  87. package/dist/assets/{IssueChargeCardPage-C3esnkQg-COG08kWF.js → IssueChargeCardPage-CjsftuWA-BDs_oaGQ.js} +33 -33
  88. package/dist/assets/{LabeledAddressValue-CeeoKoY4-CvQwJTu9.js → LabeledAddressValue-CfUYrlxS-CedyeSnW.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-B6eeRCSM-DWydrKZY.js → LabeledAddressValueField-B5z2zp_k-DSta9Thy.js} +3 -3
  90. package/dist/assets/{LabeledControlledCheckBoxField-CK8YBqJ7-B9saqU60.js → LabeledControlledCheckBoxField-CHl3uhk9-BG28gZFR.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-BSKL8pA3-DuFUXQMp.js → LabeledCreatableSingleSelectField-CP-IuKrc-DU5OIEj-.js} +6 -6
  92. package/dist/assets/LabeledDocumentField-DyMGgcCu-CO5ZlVGH.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-DikXPnxD-DSUeE__c.js → LabeledDropDownFormattedTextField-Bism2Slt-DwU7ZVVo.js} +7 -7
  94. package/dist/assets/{LabeledText-qSjyNZO1-DFoRQ0wb.js → LabeledText-RBbOYz7n-VgixWYEH.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-x87S_Azj-CVhA2Xgg.js → LabeledUserSingleSelectWithSubtitlesField-B9Mu2WJq-C8qMOZtd.js} +16 -16
  96. package/dist/assets/{LabeledZeniRolesDropDownField-nm5bG2up-C92IDjFa.js → LabeledZeniRolesDropDownField-BCvUNHGc-D_n3gvsf.js} +17 -17
  97. package/dist/assets/{LinkJETransactionPage-p7wdZbtp-CNwjLj8D.js → LinkJETransactionPage-C4JGb7aV-BXKelJUa.js} +13 -13
  98. package/dist/assets/{LowBalancePopup-DHk6xd2B-_aHCSs2W.js → LowBalancePopup-BeDr-jas-DddI_xZq.js} +7 -7
  99. package/dist/assets/{MagicLinkACHDetailsPage-DRQ8oej8-aUTlVnco.js → MagicLinkACHDetailsPage-B8zPEOQv-ELR3l9ZF.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-BxXU9Opg-CCiAW5vW.js → MagicLinkDomesticWireDetailsPage-CGdUqm2t-BERGcMoL.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DYN1baIc-BXA8gggA.js → MagicLinkInternationalWireDetailsPage-8hkLJ9A0-Bdoq1vuL.js} +1 -1
  102. package/dist/assets/MagicLinkSuccessPage-DWCZWHis-oQvPww9a.js +31 -0
  103. package/dist/assets/{MagicLinkTitleSection-K2cZQVzq-COa6ijtd.js → MagicLinkTitleSection-u5U6e-ve-MC7ZylHb.js} +4 -4
  104. package/dist/assets/MailingDetailsSection-nhPvZjVn-DTjLXXj3.js +21 -0
  105. package/dist/assets/{MeetingCalenderPopup-DbFlQ8Km-k4_LsMxX.js → MeetingCalenderPopup-CUA73Qvk-BpUub713.js} +1 -1
  106. package/dist/assets/{Menu-LLL9taEz-ipYxRwn_.js → Menu-D2zz2q9--BYfPpKNs.js} +2 -2
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BfDsHVZw-Bf1XYxr4.js → MyBankConnectionsSettingsPage-CGZMdkpt-CMgN8NUW.js} +15 -15
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-vag56A65-DF0R294m.js → MyPendingActivationChargeCardListPage-BKFgjKZX-B0scJUTA.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-DCKqWh-p-DaltQdCu.js → MyProfileSettingsPage-BMRJLHbT-DWg_-s2B.js} +8 -8
  110. package/dist/assets/NavBarWithPicker-BXotE7Lk-TYT-S2OK.js +30 -0
  111. package/dist/assets/{NavigationArrow-CHmddDC--eiR6ZCk2.js → NavigationArrow-D-l9zblc-CDQWgJ4Z.js} +2 -2
  112. package/dist/assets/NavigationDots-BXUbx14l-CApJ3xJB.js +14 -0
  113. package/dist/assets/{NewGlobalMerchantPage-B0FywA12-B-V71_-n.js → NewGlobalMerchantPage-DtDgNdr1-CYep7SJT.js} +13 -13
  114. package/dist/assets/{NoDataChart-D43mhDJW-DTKvzPZF.js → NoDataChart-Bve5zpXV-BwZ8IP-2.js} +1 -1
  115. package/dist/assets/{NoDataTable-BOfUxs9D-QmqUpJBd.js → NoDataTable-3ROU0Vbp-DDB9N5jJ.js} +1 -1
  116. package/dist/assets/{NotFoundPage-DFioH5Rt-Bajjj6H-.js → NotFoundPage-DAo53P_6-C9hdXZ2m.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-y4g1rAal-C1PlzWDQ.js → NotificationSettingsPage-DcGcigHn-D6yNtF8n.js} +13 -13
  118. package/dist/assets/{NotificationsListConfig-sybPesiv-CumSV_sP.js → NotificationsListConfig-oE-ICX7d-5IgMyIt2.js} +1 -1
  119. package/dist/assets/{NotificationsPage-C88YOjuY-DhlTuVRF.js → NotificationsPage-TCXj6rCg-BAkiHad7.js} +31 -31
  120. package/dist/assets/{OpExByVendorPage-qBWbJhv9-D6-ISC2Q.js → OpExByVendorPage-xWhiJMru-CimTVsCN.js} +7 -7
  121. package/dist/assets/{OverlayContainerPage-Dres4Grh-croSXpa_.js → OverlayContainerPage-GWXnlbZH-Ba8WO7ii.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-uiaHrci6-BmjV4SA8.js → PandLWithForecastPage-BamjcoA8-Dqt_Y0_I.js} +8 -8
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BepDUdA0--CI8uZ0q.js → PaymentAccountSetupBillingAddressSection-Byvw69gz-DLG3TH2B.js} +11 -11
  124. package/dist/assets/{PeoplePage-oF6C1uyM-BWPCN8nm.js → PeoplePage-BYeGKWDm-_j7LiItB.js} +20 -20
  125. package/dist/assets/{PortfolioAllocationFormPage-C5O3GLqz-B19kKoCk.js → PortfolioAllocationFormPage-C-l23Cwp-CQhAFF5j.js} +4 -4
  126. package/dist/assets/{PortfolioDetails-BkGNpmoO-kzJ3Imwc.js → PortfolioDetails-BRhzzSFg-_V6-SKu3.js} +31 -31
  127. package/dist/assets/{ProductsCarousel-C_tmo4EA-D4yVhWod.js → ProductsCarousel-CP6ldspb-CSPciYcm.js} +6 -6
  128. package/dist/assets/{PromoBaseCards-Bq5-q2ew-owkf4D4N.js → PromoBaseCards-Jze9Y7gb-CsB7qigX.js} +5 -5
  129. package/dist/assets/{QBOConnectionDialog-BXNWjeYB-CRDesbLh.js → QBOConnectionDialog-9VnW9Bu9-CH9vDAEy.js} +9 -9
  130. package/dist/assets/QBOSetupSection-B1rw0-Q--hYcWWcnn.js +79 -0
  131. package/dist/assets/ReimbursementApprovalRuleDetailPage-DEK0sHby-DxHQ3-r9.js +26 -0
  132. package/dist/assets/{ReimbursementApprovalRulesPage-hjja5JFq-CTbhiO4F.js → ReimbursementApprovalRulesPage-D7dRwcKc-BN8fEREe.js} +8 -8
  133. package/dist/assets/{ReimbursementDetailPage-sXYC_aoR-BRo3-ALl.js → ReimbursementDetailPage-ZwlUAEc8-DNQqyf9h.js} +19 -19
  134. package/dist/assets/{ReimbursementPromoPage-C9zs7VRV-DnF6fzbN.js → ReimbursementPromoPage-CKuYFvqQ-DefJnvBU.js} +24 -24
  135. package/dist/assets/{ReimbursementSetUpPage-Ban56LOC-BrQiTbjv.js → ReimbursementSetUpPage-Rn1i_Dc1-By597Y9p.js} +11 -11
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CsRwI-rl-D4GTWYie.js → ReimbursementsBulkReviewDrawerPage-BwVFxo9s-CrM2jFkj.js} +1 -1
  137. package/dist/assets/{ReloadCard-EBXtqdt5-CAR8znPg.js → ReloadCard-7VJ3paTm-PIZ4RaVw.js} +5 -5
  138. package/dist/assets/{ReportTableViewSelector-Ae5lGopA-CvE-ziP-.js → ReportTableViewSelector-BrPJNFJD-Bwujfsif.js} +10 -10
  139. package/dist/assets/{ReportsPage-Dh3DhbEK-CoCw1phe.js → ReportsPage-CCTvsUrL-BTO019Fz.js} +5 -5
  140. package/dist/assets/{RevenueChart-C5qfXMEg-BwhpmvbH.js → RevenueChart-CCWOE5TQ-DhmIgSkE.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-DjcJd2VM-DAK_gGD6.js → ReviewDetailsPage-Y6gEXgmb-DcY2sw3N.js} +17 -17
  142. package/dist/assets/{ReviewOverlay-Dmrea9EK-D-B16OuG.js → ReviewOverlay-CjSSDflN-KzsiV-Oa.js} +14 -14
  143. package/dist/assets/RoleWithToolTip-CFMnZiem-BIsCVqC3.js +22 -0
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CQGRrdSx-c5adP63r.js → ScheduleDetailsFixedAssetsPage-DVyLY2NJ-LtnowkYW.js} +8 -8
  145. package/dist/assets/{ScheduleDetailsPage-D5OBZ80r-CqH9UyRO.js → ScheduleDetailsPage-Dl76cUvA-CFqi1TDf.js} +3 -3
  146. package/dist/assets/{ScheduleSequenceTable-fgV8zz4I-CXk4n0ng.js → ScheduleSequenceTable-CrxRnZch-BuFVSySr.js} +49 -49
  147. package/dist/assets/{ScreenRoutes-N_UpMNzU.js → ScreenRoutes-uG3kevMC.js} +62 -62
  148. package/dist/assets/{SetUpAccountSection-4-gtB3I4-k7g8HAWY.js → SetUpAccountSection-Cv2os5ln-zptuzOwF.js} +24 -24
  149. package/dist/assets/{SetUpDefaultSection-DSslQOgJ-TSnCtHg5.js → SetUpDefaultSection-BX28nGOx-CTgAzb1p.js} +12 -12
  150. package/dist/assets/{SignIn-CgXxIawW-CGP7Bd8R.js → SignIn-Bu5OrOXS-DkCR4kwg.js} +17 -17
  151. package/dist/assets/{SignInScreen-B7sTBkoH.js → SignInScreen-BtGVE0r_.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-SkhzkIYZ-x5ZKENRb.js → SpendManagementListViewPage-C5e1RRp_-HAlYRuO6.js} +11 -11
  153. package/dist/assets/{SpendManagementPerTabPage-CofY1YYQ-Cjq2YocJ.js → SpendManagementPerTabPage-DZVY7vQ1-BCl0_VO2.js} +55 -55
  154. package/dist/assets/{SpendManagementSection-DbC93chQ-B2MPdvcw.js → SpendManagementSection-BJMJInkt-BUFNWRJA.js} +13 -13
  155. package/dist/assets/{SpendMgmtSetupAccountSection-_8G7bMAw-CDKk9cnv.js → SpendMgmtSetupAccountSection-chezHlCW-DkOog65L.js} +22 -22
  156. package/dist/assets/{StatementItem-7ezfuDl--D0Tjhaxh.js → StatementItem-BFkpLh_o-CquALDsz.js} +5 -5
  157. package/dist/assets/{StatementsPage-C4ziRzkU-BZb9wt_c.js → StatementsPage-DWVI5t34-Cxqi7UEv.js} +6 -6
  158. package/dist/assets/{StatusSwitcher-0rVfFE-a-CrRHYuTc.js → StatusSwitcher-LVFF4Wxb-B0jggpKX.js} +7 -7
  159. package/dist/assets/{SubTabSwitcher-aoWbkCmT-Bl_FPFwI.js → SubTabSwitcher-BCJ6BY1u-f0PPyWdH.js} +1 -1
  160. package/dist/assets/{SummaryCard-6V1G-Yln-C_HcAreF.js → SummaryCard-BauMuQ8s-BNd_V8Lq.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-DjQma5Cr-8a9vcAkZ.js → TaskManagementPage-vrN0Gf0_--prS4OGY.js} +18 -18
  162. package/dist/assets/{TimeRangeSwitcher-DeIRg5zY-woa5YXhO.js → TimeRangeSwitcher-CNA64z6j-Cd26VPvr.js} +5 -5
  163. package/dist/assets/{TimeframeSwitcher-Cop4G4gx-BkWg2DWR.js → TimeframeSwitcher-C1Yz0y7I-Cy-diIc-.js} +5 -5
  164. package/dist/assets/TimeframeSwitcherWithToggle-C_Ah5N3M-C9t5AFtP.js +31 -0
  165. package/dist/assets/{TopExCard-BKirBv7q-CUq_6F55.js → TopExCard-Jo-Rn1MM-D6E3Hi5w.js} +6 -6
  166. package/dist/assets/{TopExDetailPage-DcVunE8d-qEc0sA6B.js → TopExDetailPage-DDbJXH3w-CFeNp8T_.js} +11 -11
  167. package/dist/assets/{TransactionDetailPage-TJf3D0K6-BOXqbCEf.js → TransactionDetailPage-BuIbGizX-DpKJAZLT.js} +26 -26
  168. package/dist/assets/{TransactionList-fn6VXYIJ-DYk9Fe87.js → TransactionList-CLKRxE0g-BAsmWTvK.js} +4 -4
  169. package/dist/assets/{TransactionListBig-B_hNDFjS-CMjCzS-K.js → TransactionListBig-B5vQkCC2-B8EgQPCY.js} +25 -25
  170. package/dist/assets/{TransactionListPage-BbXZWbie-CDiciUHo.js → TransactionListPage-BqX_rZET-BgbyEEsX.js} +6 -6
  171. package/dist/assets/{TransactionVendorDetailPage-C6qJ5ncL-B1EVzM0Z.js → TransactionVendorDetailPage-DkTOdWyJ-BzkmZPzl.js} +6 -6
  172. package/dist/assets/TransferDrawerPage-BOGBvRan-Bpl8lBev.js +362 -0
  173. package/dist/assets/{TreasuryOverviewPage-DOV8Hanc-B1NNA_6U.js → TreasuryOverviewPage-DyhWQzuM-DsB8K2vJ.js} +53 -53
  174. package/dist/assets/{TreasuryPromoPage-C9O7G72q-DwRfBcK7.js → TreasuryPromoPage-DeahUeak-Bt4dIItF.js} +29 -30
  175. package/dist/assets/TreasurySetupPage-kCSON6p8-BAIMYuS4.js +152 -0
  176. package/dist/assets/{TreasuryStatementsPage-Ts6D6F-l-DoHTZ0q2.js → TreasuryStatementsPage-DjTS6UJU-CcrFtuZr.js} +5 -5
  177. package/dist/assets/{TreasuryTaxLetterPage-CM93_rS4-DP5U7gaM.js → TreasuryTaxLetterPage-B8-Rgr_d-BLPqqsbC.js} +5 -5
  178. package/dist/assets/TreasuryTransferOrReviewPage-CWMEjwJl-CrviYyrM.js +506 -0
  179. package/dist/assets/{TrendChart-BXjPAYgk-Cq_-iR7t.js → TrendChart-DZxa1hWw-B-nNq9QH.js} +5 -5
  180. package/dist/assets/{TrendWithTransactions-BlGX9aVa-CiPHs9MJ.js → TrendWithTransactions-DqF_gmA3-C3cM3seO.js} +8 -8
  181. package/dist/assets/{UncategorizedAccountsMappingPage--PnxDLIj-BIOyaxBg.js → UncategorizedAccountsMappingPage-BTMqGJ-S-Cf591JHO.js} +12 -12
  182. package/dist/assets/{UnitIntegrationPage-D5mzaVVL-BKJ8XltQ.js → UnitIntegrationPage-BypogBLd-BdjVHdC2.js} +4 -4
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-BXS2l5kF-BsMl2eZs.js → UploadAdditionalDocumentOverlay-BtjgWIt2-CJxagUDB.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-jXN-6kcB-BvuovkFO.js → Vendor2FAPopup-Cvht-fPJ-BerAc1Se.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-CHfX_7tk-BOp8BxY6.js → VendorACHDetailsPage-UxL2Rrtg-CYp_Tnh9.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-CZuQaTCe-BpPmRILB.js → VendorDetailPage-D1W5LzEm-BAT5CVI4.js} +13 -13
  187. package/dist/assets/{VendorDomesticWireDetailsPage-dBmyAkGL-62nIhkQn.js → VendorDomesticWireDetailsPage-42tTXqjf-CD4sZQzl.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-C6KWbHaM-DDK7H0rO.js → VendorFiling1099EditablePage-C-s1YZ6j-PSND-gNL.js} +7 -7
  189. package/dist/assets/{VendorFirstReviewPage-DLaCXLH8-BnWjhIdr.js → VendorFirstReviewPage-DNWyzefV-BFUkskK4.js} +30 -30
  190. package/dist/assets/{VendorInternationalWireDetailsPage-DgCH9Rad-CBW8_p_m.js → VendorInternationalWireDetailsPage-BLN_3qXP-DvvGYDz5.js} +10 -10
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CprymE3v-BNa75-ug.js → VendorInternationalWireSwiftDetailsPage-CK3lcupO-2PpWn4mj.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-CpkfwFDJ-BBaBcIhq.js → VendorsAccountsSection-DN_7lQ28-DdMelKjb.js} +15 -15
  193. package/dist/assets/{WarningsDrawerPage-DeqbJ2Le-C-k360lW.js → WarningsDrawerPage-BO2PAioX-BD7wt9-J.js} +12 -12
  194. package/dist/assets/{ZeniAccountDetailPage-kwKoeRAb-DmgmMSld.js → ZeniAccountDetailPage-yp-KTRnk-B3mSE0M7.js} +29 -29
  195. package/dist/assets/{ZeniAccountListViewPage-15LxhIiI-BTGCzvPZ.js → ZeniAccountListViewPage-D5aqQNtX-CPli23fR.js} +19 -19
  196. package/dist/assets/ZeniAccountNavBarPieces-VPw7D7l3-CCxmftfD.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-DvlAb5YA-C_whacZc.js → ZeniAccountPromoPage-wCKqqpXU-0L3bYfPA.js} +33 -33
  198. package/dist/assets/{ZeniAccountSetupPage-BjpvTfF5-D6d34LRw.js → ZeniAccountSetupPage-C9Huhxgd-BF9sZa0S.js} +3 -3
  199. package/dist/assets/{ZeniCopyright-BYJFIZ_X-BFrN8evs.js → ZeniCopyright-DFiO9ffO-Bp-C_pps.js} +1 -1
  200. package/dist/assets/ZeniTransferAmountSlider-CrkvbV6i-BhBxjPo4.js +63 -0
  201. package/dist/assets/{analyticsHelper-BRyA7WLX-DLSkErMx.js → analyticsHelper-CcOQPReQ-DZ5fxxuk.js} +1 -1
  202. package/dist/assets/{analyticsHelper-BwnF2PgM.js → analyticsHelper-zoqip0-C.js} +1 -1
  203. package/dist/assets/{chartTypes-CWEoqL4g-Cw3nMebw.js → chartTypes-COEFDZb5-DucaenQB.js} +1 -1
  204. package/dist/assets/{commonDimensions-UvndzJjv-Blvxf4Xv.js → commonDimensions-CP6T7HqS-BX01Lz5f.js} +1 -1
  205. package/dist/assets/{detailCommon-C3ymS8dg-BGRrtDwy.js → detailCommon-Ce5EinV2-BuHvMRYd.js} +2 -2
  206. package/dist/assets/{downloadPdf-CHwWcCR1-B6-X6iEo.js → downloadPdf-D5vJmVtA--yzU0Cnz.js} +1 -1
  207. package/dist/assets/{index-Dv7T7Q4q.js → index-CapQvjm9.js} +3984 -4129
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-BV9ky97n-DY-sQ7TV.js → mapLoadingInProgressToTreeNode-rI4nf6KS-CNoPmFuv.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-WivyN4Y7-BjYz9kWK.js → mapSectionWithAcOnlyToTreeNode-CQQ7dl1d-DPU0sPT_.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-AXNRptLX-By1nS5M2.js → mapSpacerToTreeNode-Br4381dY-Ct29eL9a.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-JTl35sFx-C5GE5hSl.js → mapTimeframeBalancesToTreeNode-B-Zn7TpW-SMvrvpz_.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-DUac2vK4-BY8WFMHX.js → mapTimeframeBalancesToTreeNode-CFc2Dxqu-D1jIXUn_.js} +1 -1
  213. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DtkeOXnf-CJT3cdBk.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DaXzy5qa-BOsBu2E5.js} +1 -1
  214. package/dist/assets/{play-icon-HSIOzxQm-CqRvnI3L.js → play-icon-nZkbdoFU-C5Wh5Bql.js} +1 -1
  215. package/dist/assets/{toCOABalancesWithID-CkjYSysY-CvnUvEoC.js → toCOABalancesWithID-COQYDD-b-BQqZQYQf.js} +1 -1
  216. package/dist/assets/{toChartData-BhKlnyso-lj3HQabg.js → toChartData-Djv4ERSl-DLhR9JKK.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-yIAXBrrM-3MHYMecV.js → treasuryColorHelper-D8HHUK60-Cfq8TI-i.js} +1 -1
  218. package/dist/assets/{uploadAttachment-CWaYLqwb-CVRH_3bI.js → uploadAttachment-BLy0prl2-B3IgXH7c.js} +32 -32
  219. package/dist/assets/{uploadReceipts-C6Ld_WLK-Dy2wrDVr.js → uploadReceipts-D80JLNY4-DWphWqez.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +4 -4
  222. package/dist/assets/ACHDetailsPage-DVi_fb5U-CGuPkBRY.js +0 -21
  223. package/dist/assets/BankAccountWarningSection--b6oxmO3-DKlzx_zh.js +0 -51
  224. package/dist/assets/BusinessVerificationPage-_E3jrLwS-B3aLGpDJ.js +0 -140
  225. package/dist/assets/ChargeCardPromoPage-2OheDHbA-BqDNYADI.js +0 -222
  226. package/dist/assets/CheckDepositDrawerPage-DEFEMwuI-CRMRTiml.js +0 -206
  227. package/dist/assets/CompanyOfficerDetailsSection-BEgNqg-b-CVHLWRNF.js +0 -260
  228. package/dist/assets/CompleteProfile-mCKLQjGe-CilcRs-S.js +0 -52
  229. package/dist/assets/CustomerOnboardingContainerPage-D6yeERaX-DZtJ8AkY.js +0 -1
  230. package/dist/assets/DepositAccTransactionListPage-DUwVnkwy-BEJAgywZ.js +0 -66
  231. package/dist/assets/EditPeoplePage-CtTYiqg3-BeUkYPWG.js +0 -55
  232. package/dist/assets/FeaturePreviewPage-CtK7L5vk-BUfvduBQ.js +0 -11
  233. package/dist/assets/InsightsCardStack-BbMJEahw-6ShmM6UA.js +0 -79
  234. package/dist/assets/InsightsSection-CYkuQHcj-Bf_S7jeP.js +0 -27
  235. package/dist/assets/InvitePeoplePage-r6PLBiEv-C_hZgPnI.js +0 -12
  236. package/dist/assets/LabeledDocumentField-BEyArLK3-yHmAGez6.js +0 -41
  237. package/dist/assets/MagicLinkSuccessPage-CX3bJ5_B-DBbTzFPV.js +0 -31
  238. package/dist/assets/MailingDetailsSection--zHyCquq-Crj-CQ_B.js +0 -21
  239. package/dist/assets/NavBarWithPicker-Cvi89wZV-qZCgoS6m.js +0 -30
  240. package/dist/assets/NavigationDots-1wpj484Z-CYA5PZFB.js +0 -15
  241. package/dist/assets/QBOSetupSection-D3sIWrh1-C8JJ9OyV.js +0 -79
  242. package/dist/assets/ReimbursementApprovalRuleDetailPage-ClgCUbVP-CI7DHlNJ.js +0 -26
  243. package/dist/assets/RoleWithToolTip-CqeM8Bh0-CP3lspGL.js +0 -22
  244. package/dist/assets/TimeframeSwitcherWithToggle-BhoniKOB-Cn9FIwDc.js +0 -31
  245. package/dist/assets/TransferDrawerPage-BtYoqKi--BpRIa0QV.js +0 -362
  246. package/dist/assets/TreasurySetupPage-CNzkkEjw-BgY_thiG.js +0 -146
  247. package/dist/assets/TreasuryTransferOrReviewPage-C8-tbCUQ-Ckqtt7Wk.js +0 -506
  248. package/dist/assets/VerifyDevice-CSIkEBig-Ddd729RU.js +0 -67
  249. package/dist/assets/ZeniAccountNavBarPieces-C0pq95hS-PD9j7rFy.js +0 -14
  250. package/dist/assets/ZeniTransferAmountSlider-Did4Chpj-DUNIonGt.js +0 -63
@@ -1,4 +1,4 @@
1
- import{u as Re,X as Q,B as H,a as Ke,a2 as De,c7 as Qe,l as O,j as t,aW as et,F as tt,a4 as it,C as x,o as n,kb as at,kc as nt,kd as lt,cd as ze,ca as ot,cD as rt,f7 as dt,f8 as st,cc as ke,fG as ct,ke as pt,cg as mt,cI as Ve,ch as ut,cJ as Ae,cS as Oe,v as ge,cW as ht,s as u,ap as yt,am as be,d as Ee,M as gt,t as We}from"./index-Dv7T7Q4q.js";import{b as X,n as d}from"./vendor-CnQcJ2Lu.js";import{Y as xt}from"./LabeledDocumentField-BEyArLK3-yHmAGez6.js";import{S as ie}from"./LabeledText-qSjyNZO1-DFoRQ0wb.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ft={progressBarWidth:new x(343,726)},bt=({pageIndex:e})=>{const i=Q(),a=Re(),s=H.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(Ct,{children:h.map((p,l)=>t.jsx($t,{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 ze,X as Q,M as U,a as Ke,a2 as De,c3 as Qe,l as O,j as t,aV as et,F as tt,a4 as it,C as x,o as n,k8 as at,k9 as nt,ka as lt,c9 as Re,c6 as ot,cz as rt,f4 as dt,f5 as st,c8 as ke,fD as ct,kb as pt,cc as mt,cE as Ve,cd as ut,cF as Ae,cO as Oe,f as ge,cS as ht,q as u,ap as yt,am as be,g as Ee,m as gt,s as We}from"./index-CapQvjm9.js";import{b as J,n as d}from"./vendor-CnQcJ2Lu.js";import{Y as xt}from"./LabeledDocumentField-DyMGgcCu-CO5ZlVGH.js";import{S as ie}from"./LabeledText-RBbOYz7n-VgixWYEH.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ft={progressBarWidth:new x(343,726)},bt=({pageIndex:e})=>{const i=Q(),a=ze(),s=U.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(Ct,{children:h.map((p,l)=>t.jsx($t,{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`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-top: ${n.sp3};
@@ -38,18 +38,18 @@ import{u as Re,X as Q,B as H,a as Ke,a2 as De,c7 as Qe,l as O,j as t,aW 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
- `,P={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}`,It=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:T,deleteFileStatusById:I,updateFileStatusById:f,onClickAddAccount:w})=>{const o=Q(),{spendManagement:D,dateFormat:y,common:C}=H.getLocalizedStrings(),$=D.billPay.billDetails,G=y.visual.defaultInput,re=D.zeniAccounts.expressPay,de=C.documents,Y=P.largeLabelWidth.value(o),[g,Z]=X.useState(!1),_=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=H.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(J=>t.jsxs(q,{children:[t.jsxs(E,{children:[J.name,j.paymentDetails.colon]}),t.jsx(W,{children:J.value})]},J.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(Pt,{children:$.paymentDetailsTitle}),t.jsxs(Tt,{windowSize:o,children:[t.jsx(rt,{label:{label:$.withdrawFrom,width:Y,style:{marginLeft:P.labelMarginLeftPicker.valuePx(o),marginTop:P.labelMarginTopPicker.valuePx(o),marginRight:P.labelMarginRightPicker.valuePx(o),width:P.largeLabelPickerWidth.value(o)}},style:{paddingTop:P.labeledFieldPaddingTop.valuePx(o),paddingBottom:P.labeledFieldPaddingBottom.valuePx(o),paddingLeft:P.labeledFieldPaddingLeft.valuePx(o),paddingRight:P.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:P.infoLabelPaddingRight.valuePx(o),marginTop:P.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:V(e,"withdrawFrom"),placeholder:ke($.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(U,{}),t.jsx(ct,{showAdditionalInfoLabel:!1,label:{label:$.amount,width:Y},formattedTextField:{type:"number",name:V(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:ke($.amount),returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:r=>r!=null&&r!==0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,shouldHighlightZeroAmount:!0},style:{width:"auto"}}),t.jsx(U,{}),t.jsx(pt,{label:{label:$.paymentMethod,width:P.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:V(e,"paymentMethod"),placeholder:$.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:_,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(U,{}),t.jsx(mt,{label:{label:$.paymentDate,width:P.labelWidth.value(o)},style:{paddingBottom:P.paddingBottom.valuePx(o),width:"auto"},dateField:{name:V(e,"paymentDate"),placeholder:$.paymentDate,dateFormat:G,autoComplete:"off",minDate:O.dateNow(),registerOptions:{required:!0}}}),t.jsx(U,{}),t.jsx(ze,{label:{label:$.paymentTo,width:Y},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:V(e,"paymentTo"),placeholder:$.selectAccount,getTooltipInfo:ce,menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:w,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:N},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?se():[]},registerOptions:{required:!0,validate:r=>r?.selectedOption!=null}}}),t.jsx(U,{}),t.jsx(xt,{name:V(e,"receipt"),sizeLimit:ut,deleteFileStatusById:I,updateFileStatusById:f,filesEndPoint:l.filesEndPoint,authParams:l.authParams,label:{label:re.reciept,width:Y},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(U,{})]})]})},Pt=d(be)`
41
+ `,T={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:I,deleteFileStatusById:P,updateFileStatusById:f,onClickAddAccount:w})=>{const o=Q(),{spendManagement:D,dateFormat:y,common:C}=U.getLocalizedStrings(),$=D.billPay.billDetails,X=y.visual.defaultInput,re=D.zeniAccounts.expressPay,de=C.documents,H=T.largeLabelWidth.value(o),[g,Z]=J.useState(!1),Y=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=U.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(_=>t.jsxs(q,{children:[t.jsxs(E,{children:[_.name,j.paymentDetails.colon]}),t.jsx(W,{children:_.value})]},_.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(Tt,{children:$.paymentDetailsTitle}),t.jsxs(It,{windowSize:o,children:[t.jsx(rt,{label:{label:$.withdrawFrom,width:H,style:{marginLeft:T.labelMarginLeftPicker.valuePx(o),marginTop:T.labelMarginTopPicker.valuePx(o),marginRight:T.labelMarginRightPicker.valuePx(o),width:T.largeLabelPickerWidth.value(o)}},style:{paddingTop:T.labeledFieldPaddingTop.valuePx(o),paddingBottom:T.labeledFieldPaddingBottom.valuePx(o),paddingLeft:T.labeledFieldPaddingLeft.valuePx(o),paddingRight:T.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:T.infoLabelPaddingRight.valuePx(o),marginTop:T.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:V(e,"withdrawFrom"),placeholder:ke($.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(G,{}),t.jsx(ct,{showAdditionalInfoLabel:!1,label:{label:$.amount,width:H},formattedTextField:{type:"number",name:V(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:ke($.amount),returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:r=>r!=null&&r!==0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,shouldHighlightZeroAmount:!0},style:{width:"auto"}}),t.jsx(G,{}),t.jsx(pt,{label:{label:$.paymentMethod,width:T.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:V(e,"paymentMethod"),placeholder:$.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:Y,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(G,{}),t.jsx(mt,{label:{label:$.paymentDate,width:T.labelWidth.value(o)},style:{paddingBottom:T.paddingBottom.valuePx(o),width:"auto"},dateField:{name:V(e,"paymentDate"),placeholder:$.paymentDate,dateFormat:X,autoComplete:"off",minDate:O.dateNow(),registerOptions:{required:!0}}}),t.jsx(G,{}),t.jsx(Re,{label:{label:$.paymentTo,width:H},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:V(e,"paymentTo"),placeholder:$.selectAccount,getTooltipInfo:ce,menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:w,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:N},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?se():[]},registerOptions:{required:!0,validate:r=>r?.selectedOption!=null}}}),t.jsx(G,{}),t.jsx(xt,{name:V(e,"receipt"),sizeLimit:ut,deleteFileStatusById:P,updateFileStatusById:f,filesEndPoint:l.filesEndPoint,authParams:l.authParams,label:{label:re.reciept,width:H},filemetadataPayload:{documentType:"id_document",purposeId:"business_verification_others",documentSide:"front"},file:I,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:I!=null?{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}:void 0},V(e,"receipt")),I==null?t.jsx(Ft,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(G,{})]})]})},Tt=d(be)`
42
42
  color: ${e=>e.theme.colors.primary};
43
43
  margin-bottom: ${n.sp3};
44
- `,Tt=d.div`
44
+ `,It=d.div`
45
45
  display: flex;
46
46
  flex-direction: column;
47
47
  background-color: ${e=>e.theme.colors.grey5};
48
48
  border: 1px solid ${e=>e.theme.colors.grey3};
49
49
  box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
50
50
  border-radius: ${n.sp2};
51
- width: ${e=>P.containerWidth.valuePx(e.windowSize)};
52
- `,U=d.div`
51
+ width: ${e=>T.containerWidth.valuePx(e.windowSize)};
52
+ `,G=d.div`
53
53
  display: flex;
54
54
  flex: 1;
55
55
  background-color: ${e=>e.theme.colors.grey3};
@@ -79,7 +79,7 @@ import{u as Re,X as Q,B as H,a as Ke,a2 as De,c7 as Qe,l as O,j as t,aW as et,F
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=H.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,T=Dt.largeLabelWidth.value(p),I=X.useRef();X.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&I.current?.(At(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const f={vendorSearchAutoCompleteData:s,loadOptions:(y,C)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),I.current=C}},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(C=>C.code===y)?.name??"",showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:a?.vendorType,allOptions:i.map(y=>y.code)},registerOptions:{required:!0,validate:y=>!!y.selectedOption}},isFunctional:!0}),t.jsx(Ne,{}),t.jsx(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
+ `,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=U.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,I=Dt.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,C)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),P.current=C}},w=f?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="Not-Started"),o={defaultOptions: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:I},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(Re,{label:{label:l.recipientType,width:I},singleSelectField:{singleSelect:{name:ae(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:y=>i.find(C=>C.code===y)?.name??"",showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:a?.vendorType,allOptions:i.map(y=>y.code)},registerOptions:{required:!0,validate:y=>!!y.selectedOption}},isFunctional:!0}),t.jsx(Ne,{}),t.jsx(ot,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:I},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)`
83
83
  color: ${e=>e.theme.colors.primary};
84
84
  margin-bottom: ${n.sp3};
85
85
  `,Lt=d.div`
@@ -98,11 +98,11 @@ import{u as Re,X as Q,B as H,a as Ke,a2 as De,c7 as Qe,l as O,j as t,aW 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}=H.getLocalizedStrings().spendManagement,{dateFormat:T,common:I}=H.getLocalizedStrings(),f=l.billDetails,w=i?.paymentType,o=T.visual.MMMDCommaYYYYformat,D={amount:i?.amount?.amount??0,currencyCode:I.currency.currencyCode,currencySymbol:I.currency.currencySymbol},y=Ve(a.find(G=>G.id===i?.paymentToAccountId)),C=i?.paymentDate,$=Ae(w?.method??"");return t.jsx(Wt,{children:t.jsxs(qt,{windowSize:h,style:s,children:[t.jsxs(Yt,{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(Ht,{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):I.strings.empty}),t.jsx(fe,{}),t.jsx(ie,{label:{label:f.paymentMethod,width:p},style:{width:"auto"},value:Ae(w?.method??"")}),t.jsx(fe,{}),C!=null?t.jsxs(t.Fragment,{children:[t.jsx(ie,{label:{label:f.paymentDate,width:p},style:{width:"auto"},value:C.format(o),additionalInfoLabel:`${f.estimatedArrival}${O.zeniDate(O.getNextNthWorkingDay(C.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${$.length>0?`${$} `:""}${f.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${f.deliveryTimeUnits})`}),t.jsx(fe,{})]}):null,t.jsx(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}=U.getLocalizedStrings().spendManagement,{dateFormat:I,common:P}=U.getLocalizedStrings(),f=l.billDetails,w=i?.paymentType,o=I.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)),C=i?.paymentDate,$=Ae(w?.method??"");return t.jsx(Wt,{children:t.jsxs(qt,{windowSize:h,style:s,children:[t.jsxs(Ht,{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(Ut,{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,{}),C!=null?t.jsxs(t.Fragment,{children:[t.jsx(ie,{label:{label:f.paymentDate,width:p},style:{width:"auto"},value:C.format(o),additionalInfoLabel:`${f.estimatedArrival}${O.zeniDate(O.getNextNthWorkingDay(C.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${$.length>0?`${$} `:""}${f.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${f.deliveryTimeUnits})`}),t.jsx(fe,{})]}):null,t.jsx(ie,{label:{label:f.paymentTo,width:p},style:{width:"auto"},value:y??""})]}),t.jsx(zt,{children:t.jsxs(Rt,{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``,zt=d.div`
102
102
  display: flex;
103
103
  width: 100%;
104
104
  box-sizing: border-box;
105
- `,zt=d.div`
105
+ `,Rt=d.div`
106
106
  width: 100%;
107
107
  padding: ${n.sp3};
108
108
  display: flex;
@@ -135,7 +135,7 @@ import{u as Re,X as Q,B as H,a as Ke,a2 as De,c7 as Qe,l as O,j as t,aW as et,F
135
135
  flex-direction: column;
136
136
  margin-left: ${e=>oe.reviewContainerMarginLeft.valuePx(e.windowSize)};
137
137
  margin-right: ${e=>oe.reviewContainerMarginRight.valuePx(e.windowSize)};
138
- `,Ht=d.div`
138
+ `,Ut=d.div`
139
139
  display: flex;
140
140
  flex-direction: column;
141
141
  background-color: ${e=>e.theme.colors.grey5};
@@ -151,13 +151,13 @@ import{u as Re,X as Q,B as H,a as Ke,a2 as De,c7 as Qe,l as O,j as t,aW as et,F
151
151
  background-color: ${e=>e.theme.colors.grey3};
152
152
  min-height: 1px;
153
153
  max-height: 1px;
154
- `,Yt=d.div`
154
+ `,Ht=d.div`
155
155
  display: flex;
156
156
  `,ne=d(be)`
157
157
  display: flex;
158
158
  color: ${e=>e.theme.colors.primary};
159
159
  margin-right: ${n.sp1};
160
- `,Me="expressPayPage",_t=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:I,saveVendorDetailLocalData:f,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:D,initializeVendorAddress:y,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$,onEditFileName:G,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:Y,expressPayLocalData:g,vendorTypeList:Z,allPaymentMethods:_,paymentToOptions:k,withdrawFromList:N,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:J}=e,[v,ee]=X.useState(0),He=Re(),K=Q(),{common:we,spendManagement:Ye}=H.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=Ye.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=Y,M=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,Ce=Object.assign({},Se??je),_e=M?.vendorName,$e=N.find(c=>c.id===s),te=Ke({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(Z,N,k,$e,_,M,g,j,C?.entityAutoCompleteView),values:Be(Z,N,k,$e,_,M,g,j,C?.entityAutoCompleteView)}),Ie=De(Ce.saveStatus?.fetchState),Pe=De(m);X.useEffect(()=>{const c=te.watch((S,{name:b})=>{b!=null&&S!=null&&Qe(()=>Je(b,S))});return()=>{c.unsubscribe()}}),X.useEffect(()=>{Ie==="In-Progress"&&J==="Completed"&&(v===0?(ee(1),o?.(g?.vendorId)):v===1&&ee(2)),Pe==="In-Progress"&&m==="Completed"&&I(g?.vendorId)},[Ie,J,v,o,g?.vendorId,Pe,m,I]);const Je=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[L].recipient.selectedOption,A=C?.entityAutoCompleteView.vendor.find(B=>B.zeniId===b);Ue(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)}},Ue=c=>{const S=c[L].recipient.selectedOption,b=C?.entityAutoCompleteView.vendor.find(A=>A.id===S)!=null;if(S!=null&&b===!0){T?.(S),he(c,!1,k,S);return}ue(c,!0)},ue=(c,S)=>{const b=M?.vendorId,A=C?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,B=Jt(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()}),Xe=()=>{v===2?ee(1):I(g?.vendorId)},Ge=()=>{v===0?I(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??_?.[0],recipientAmount:g?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(et,{title:me.pageTitle,onBackClick:Ge,backgroundColor:He.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Ut,{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:C,vendorSearchAutoCompleteActions:$}):v===1?t.jsx(It,{sectionId:F,paymentDetails:Fe,paymentToOptions:k,allPaymentMethods:_,withdrawFromList:N,internationalVerificationStatus:se,fileProps:{...i,onEditFileName:G,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:_e}):null})})]}),t.jsx(it,{formId:_t(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?Ce.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:Xe}})]})},Be=(e,i,a,s,h,p,l,T,I)=>{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,I),selectedOption:p?.vendorId??p?.vendorName??""},recipientEmail:p?.contacts?.[0]?.email??"",recipientName:p?.vendorName??"",recipientType:{allOptions:e.map(w=>w.code),selectedOption:p?.vendorType}},[F]:{paymentMethod:l?.paymentType??h?.[0],withdrawFrom:{selectedOption:l?.withdrawFrom?.id??s?.id??i[0]?.id,allOptions:i.map(w=>({label:w.label,value:w.id}))},amount:l?.amount.amount??0,paymentDate:l?.paymentDate?.toDate()??O.getNextNthWorkingDay(O.dateNow().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?f:[],selectedOption:l?.paymentToAccountId??f[0]},receipt:T}}};function Jt(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 Ut=d.div`
160
+ `,Me="expressPayPage",Yt=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:I,onBackClick:P,saveVendorDetailLocalData:f,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:D,initializeVendorAddress:y,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:H,expressPayLocalData:g,vendorTypeList:Z,allPaymentMethods:Y,paymentToOptions:k,withdrawFromList:N,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:_}=e,[v,ee]=J.useState(0),Ue=ze(),K=Q(),{common:we,spendManagement:He}=U.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=He.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=H,M=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,Ce=Object.assign({},Se??je),Ye=M?.vendorName,$e=N.find(c=>c.id===s),te=Ke({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(Z,N,k,$e,Y,M,g,j,C?.entityAutoCompleteView),values:Be(Z,N,k,$e,Y,M,g,j,C?.entityAutoCompleteView)}),Pe=De(Ce.saveStatus?.fetchState),Te=De(m);J.useEffect(()=>{const c=te.watch((S,{name:b})=>{b!=null&&S!=null&&Qe(()=>_e(b,S))});return()=>{c.unsubscribe()}}),J.useEffect(()=>{Pe==="In-Progress"&&_==="Completed"&&(v===0?(ee(1),o?.(g?.vendorId)):v===1&&ee(2)),Te==="In-Progress"&&m==="Completed"&&P(g?.vendorId)},[Pe,_,v,o,g?.vendorId,Te,m,P]);const _e=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[L].recipient.selectedOption,A=C?.entityAutoCompleteView.vendor.find(B=>B.zeniId===b);Ge(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)}},Ge=c=>{const S=c[L].recipient.selectedOption,b=C?.entityAutoCompleteView.vendor.find(A=>A.id===S)!=null;if(S!=null&&b===!0){I?.(S),he(c,!1,k,S);return}ue(c,!0)},ue=(c,S)=>{const b=M?.vendorId,A=C?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,B=_t(c,A===!0?b:void 0,M,S);f?.(B,b)},he=(c,S,b,A)=>{const B=(()=>{let z=[];return c[F].paymentMethod?.method.includes("wire")===!0?z=b.filter(R=>!!R.bankRoutingNumberWireTransfer).map(R=>R.id):z=b.filter(R=>!!R.bankRoutingNumberAch).map(R=>R.id),z})(),ye=b.find(z=>z.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(z=>z.id===c[F]?.withdrawFrom?.selectedOption),receiptFileId:c[F].receipt?.fileId};w?.(Ze)},Ie=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()}),Je=()=>{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??Y?.[0],recipientAmount:g?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(et,{title:me.pageTitle,onBackClick:Xe,backgroundColor:Ue.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Gt,{windowSize:K,children:[t.jsx(bt,{pageIndex:v}),t.jsx(tt,{...te,children:t.jsx("form",{id:Me,onSubmit:Ie,children:v===0?t.jsx(kt,{sectionId:L,vendorTypeList:Z,formLocalData:M,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$}):v===1?t.jsx(Pt,{sectionId:F,paymentDetails:Fe,paymentToOptions:k,allPaymentMethods:Y,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:Ye}):null})})]}),t.jsx(it,{formId:Yt(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?Ce.saveStatus?.fetchState==="In-Progress":m==="In-Progress",style:{width:v===2?le.largeButtonWidth.value(K):le.buttonWidth.value(K),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Ie()}},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,I,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:I}}};function _t(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 Gt=d.div`
161
161
  display: flex;
162
162
  flex-wrap: wrap;
163
163
  height: 100%;
@@ -165,4 +165,4 @@ import{u as Re,X as Q,B as H,a as Ke,a2 as De,c7 as Qe,l as O,j as t,aW as et,F
165
165
  align-items: center;
166
166
  background-color: ${e=>e.theme.colors.grey4};
167
167
  margin-top: ${e=>e.windowSize==="small"?n.sp3:0};
168
- `;export{oi as default,_t as formUniqueName};
168
+ `;export{oi as default,Yt as formUniqueName};
@@ -0,0 +1,11 @@
1
+ import{u as w,X as f,M as k,a8 as s,g as p,j as e,bO as y,C as n,bQ as x,bR as z,q as c}from"./index-CapQvjm9.js";import{n as l}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const i={popupWidth:new n(200,468,468,468),buttonWidth:new n(140,160,160,160),popupContainerLeft:new n(c[0],c[0],255),popupContainerWidth:new n(100,100,85)},_=l.div`
2
+ display: flex;
3
+ flex: 1 1 auto;
4
+ min-height: 100%;
5
+ width: 100%;
6
+ flex-direction: column;
7
+ background-color: ${t=>t.theme.colors.grey4};
8
+ `,C=l.img`
9
+ width: 100%;
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:"",overview:""},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:"",overview:""}};function O({menuItem:t,onDemoClick:g,onGoBack:d}){const a=w(),o=f(),u=`${W[o==="small"?"mobile":"normal"][t]}-${a.mode}.png`,{featurePreview:r}=k.getLocalizedStrings(),m=r.popups[t],h=a.mode==="light"?new s(p.backgroundGradient1Light):new s(p.backgroundGradient1Dark),b=a.mode==="light"?new s(p.backgroundGradient2Light):new s(p.backgroundGradient2Dark),v={onOkClick:()=>{g()},onCancelClick:()=>{d()}};return e.jsxs(_,{children:[e.jsx(C,{src:u,alt:"feature-preview",loading:"lazy"}),e.jsx(y,{titleComponent:e.jsx(z,{children:m.title}),descriptionComponent:e.jsx(x,{children:m.text}),primaryButtonText:r.scheduleDemo,secondaryButtonText:r.goBack,action:v,primaryButtonWidth:i.buttonWidth.value(o),secondaryButtonWidth:i.buttonWidth.value(o),style:{background:`radial-gradient(50% 50% at 50% 50%, ${h} 0%, ${b} 100%)`,backdropFilter:"blur(2px)",width:i.popupContainerWidth.valuePercentage(o),left:i.popupContainerLeft.value(o)},containerStyle:{border:`1px solid ${a.colors.grey1}`,minWidth:i.popupWidth.valuePx(o)}})]})}export{O as default};
@@ -1,4 +1,4 @@
1
- import{j as l,X as q,B as Y,ck as A,cs as G,u as ee,cq as K,C as S,fK as Z,o as i,$ as B,ei as ce,K as le,fD as pe,fE as ue,i as he,d as u,s as g,g4 as ge,cr as be,ct as ye,r as ve,b2 as we,v as _,dk as $e,b3 as me,b0 as ke}from"./index-Dv7T7Q4q.js";import{b as V,n as d}from"./vendor-CnQcJ2Lu.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=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":B("labeled-multi-text-field",t.name),children:[l.jsx(K,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(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`
1
+ import{j as l,X as q,M as Y,cg as A,co as G,u as ee,cm as J,C as S,fH as Z,o as i,_ as B,ee as ce,H as le,fA as pe,fB as ue,K as he,g as u,q as g,g1 as ge,cn as be,cp as ye,p as ve,b1 as we,f as _,dg as $e,b2 as me,a$ as ke}from"./index-CapQvjm9.js";import{b as V,n as d}from"./vendor-CnQcJ2Lu.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=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":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(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;
@@ -95,7 +95,7 @@ import{j as l,X as q,B as Y,ck as A,cs as G,u as ee,cq as K,C as S,fK 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=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(K,{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=q(),{formState:{errors:j}}=A(),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,X as q,B as Y,ck as A,cs as G,u as ee,cq as K,C as S,fK 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 Re=({allOptions:e,selectedValue:o,name:t,onSelectedValueChanged:p,valueToLabel:$,disable:k=!1,defaultMenuIsOpen:m,placeholderLabel:j})=>{const{formState:{errors:f}}=A(),T=G(f,t??""),r=ee(),[O,E]=V.useState(void 0),[b,H]=V.useState(m),z=n=>n.map(w=>R(w)),R=V.useCallback(n=>({value:n,label:$(n)}),[$]);V.useEffect(()=>{const n=o==null?void 0:R(o);E(n?.label===""?void 0:n)},[o,$,R]);const W=n=>{p(n)},I=r.colors.grey5,M=r.colors.grey5,N=_.smallRegular,D=_.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,..._.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:()=>{H(!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:Fe,DropdownIndicator:Ae,IndicatorSeparator:He,SingleValue:Ne},hideSelectedOptions:!1,styles:F,options:z(e),isClearable:!1,isSearchable:!1,isDisabled:k,defaultMenuIsOpen:b,"data-testid":B("single-select",t)},$e())})},Ne=({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 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=G(f,t??""),r=ee(),[O,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=_.smallRegular,D=_.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,..._.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,...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",..._.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:O,value:O,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`
202
202
  display: flex;
203
203
  flex-direction: row;
204
204
  align-items: center;
@@ -225,7 +225,7 @@ import{j as l,X as q,B as Y,ck as A,cs as G,u as ee,cq as K,C as S,fK as Z,o as
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(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":B("single-select-field",e),render:({field:{value:r,onChange:O}})=>l.jsx(Re,{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])},J=(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:H}){const z=q(),{commonSetUp:{approval:R}}=Y.getLocalizedStrings(),W=T.length+O.length,I=f.map(s=>s.user),{control:M,setValue:N}=A(),{fields:D,replace:F}=ce({name:t,control:M}),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}}));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(Ge,{size:z,style:p,isDisabled:!1,isError:!1,children:[l.jsx(K,{label:e.label,style:{marginRight:L.labelMarginRight.value(z),width:"auto"}}),b.map((s,h)=>l.jsxs(Ze,{labelWidth:e.width,children:[l.jsxs(Ye,{children:[h+1,"."]}),l.jsx(Qe,{children:l.jsx(fe,{name:J(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j})}),l.jsxs(Xe,{children:[l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,H);x.length>0&&y.push(x),c.accountingClassIDs.forEach(Q=>{const P=E.find(X=>X.classId===Q);P!=null&&P.className&&y.push(P.className)})}return y}}),s.stepIndex>0&&l.jsx(Je,{onClick:()=>w(h)})]})]},D[h]?.id||h)),l.jsx(Ke,{disabled:C,children:l.jsx(he,{onClick:n,style:{padding:`${i.sp1} ${i.sp2}`,borderRadius:i.sp1},label:R.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=Y.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(t=>({label:o[t].label,value:t,position:"top",subtitles:[o[t].subTitle]}))},re=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],Ge=d.div`
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(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":B("single-select-field",e),render:({field:{value:r,onChange:O}})=>l.jsx(Ne,{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:H}){const z=q(),{commonSetUp:{approval:N}}=Y.getLocalizedStrings(),W=T.length+O.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(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(Ye,{children:[h+1,"."]}),l.jsx(Xe,{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(Qe,{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(X=>{const P=E.find(Q=>Q.classId===X);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=Y.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(t=>({label:o[t].label,value:t,position:"top",subtitles:[o[t].subTitle]}))},re=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],Ge=d.div`
229
229
  display: flex;
230
230
  flex-direction: column;
231
231
  align-items: flex-start;
@@ -273,7 +273,7 @@ import{j as l,X as q,B as Y,ck as A,cs as G,u as ee,cq as K,C as S,fK as Z,o as
273
273
  align-items: baseline;
274
274
  flex-grow: 1;
275
275
  gap: ${i.sp3};
276
- `,Je=d(be)`
276
+ `,Ke=d(be)`
277
277
  width: ${i.sp3};
278
278
  height: ${i.sp3};
279
279
  cursor: pointer;
@@ -281,7 +281,7 @@ import{j as l,X as q,B as Y,ck as A,cs as G,u as ee,cq as K,C as S,fK as Z,o as
281
281
  &:hover {
282
282
  color: ${u.important};
283
283
  }
284
- `,Ke=d.div`
284
+ `,Je=d.div`
285
285
  width: 100%;
286
286
  display: flex;
287
287
  justify-content: flex-end;
@@ -290,11 +290,11 @@ import{j as l,X as q,B as Y,ck as A,cs as G,u as ee,cq as K,C as S,fK as Z,o as
290
290
  color: ${e=>e.disabled?e.theme.colors.grey1:e.theme.colors.primary};
291
291
  }
292
292
  }
293
- `,Qe=d.div`
293
+ `,Xe=d.div`
294
294
  display: flex;
295
295
  align-items: center;
296
296
  width: 174px;
297
- `,Xe=d.div`
297
+ `,Qe=d.div`
298
298
  flex: 2;
299
299
  display: flex;
300
300
  gap: ${i.sp3};
@@ -303,7 +303,7 @@ import{j as l,X as q,B as Y,ck as A,cs as G,u as ee,cq as K,C as S,fK as Z,o as
303
303
  `,Ye=d.div`
304
304
  width: ${i.sp5};
305
305
  color: ${e=>e.theme.colors.hero};
306
- `;function el({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:T,allAttributes:r,filteredAttributes:O,allAccountingClasses:E,stepsInfo:b,productType:H}){const z=q(),{commonSetUp:{approval:R}}=Y.getLocalizedStrings(),W=T.length+O.length,I=f.map(s=>s.user),{control:M,setValue:N}=A(),{fields:D,replace:F}=ce({name:t,control:M}),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}}));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(K,{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:J(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j}),l.jsxs(sl,{children:[l.jsx(ol,{children:l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,H);x.length>0&&y.push(x),c.accountingClassIDs.forEach(Q=>{const P=E.find(X=>X.classId===Q);P!=null&&P.className&&y.push(P.className)})}return y}})}),s.stepIndex>0&&l.jsx(rl,{onClick:()=>w(h),"data-testid":B("delete-step",h.toString())})]})]})]},D[h]?.id||h)),l.jsx(il,{disabled:C,children:l.jsx(he,{onClick:n,style:{width:"100%"},label:R.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:H}){const z=q(),{commonSetUp:{approval:N}}=Y.getLocalizedStrings(),W=T.length+O.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: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,H);x.length>0&&y.push(x),c.accountingClassIDs.forEach(X=>{const P=E.find(Q=>Q.classId===X);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`
307
307
  display: flex;
308
308
  flex-direction: column;
309
309
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{u as Ee,X as Y,a as _e,D as Ye,c7 as Je,j as t,B as ue,aW as Xe,F as Qe,bQ as Ce,o,i as je,$ as T,bf as Ze,bP as et,aj as tt,dm as lt,bX as ot,T as it,h as nt,cu as at,a_ as We,a6 as rt,C as N,l as Oe,bg as se,s as $,ds as Ie,w as we,c0 as st,c3 as dt,ck as ct,hG as ht,di as ye,cw as me,bx as E,es as ke,r as mt,hL as gt,m as pt,aB as ut,hM as Fe,bL as wt,aP as bt,d as De,hN as xt}from"./index-Dv7T7Q4q.js";import{b as C,n,j as Se}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.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,X as Y,a as _e,z as Ye,c3 as Je,j as t,M as ue,aV as Xe,F as Ze,bM as Ce,o,K as je,_ as T,be as Qe,bL as et,aj as tt,di as lt,bT as ot,T as it,c as nt,cq as at,aZ as We,a6 as rt,C as N,l as Oe,bf as se,q as $,dn as Ie,v as we,bY as st,b$ as dt,cg as ct,hC as ht,de as ye,cs as me,bs as E,eo as ke,p as mt,hH as gt,e as pt,aA as ut,hI as Fe,bH as wt,aO as bt,g as De,hJ as xt}from"./index-CapQvjm9.js";import{b as C,n,j as Se}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.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,X as Y,a as _e,D as Ye,c7 as Je,j as t,B as ue,aW as Xe,F as Qe,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,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`
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,zt=["action"],Ve=e=>Oe.stringToUnionStrict(e,zt),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(Gt,{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)})})},Gt=n.div`
24
24
  top: ${o.sp0};
25
25
  left: ${o.sp0};
26
26
  height: ${He}px;
@@ -75,7 +75,7 @@ import{u as Ee,X as Y,a as _e,D as Ye,c7 as Je,j as t,B as ue,aW as Xe,F as Qe,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(),[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:B}=e,{fetchState:K}=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=[];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(Xt,{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: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:K==="In-Progress",addIconInCreateLabel:!0,autoFocus:!0,isDisabled:g,style:{marginRight:o.sp4},menuIsOpen:L,loadOptions:w,customStyleConfig:{valueContainer:(r,b)=>({justifyContent:"flex-start",margin:`${o.sp0} ${b.selectProps.menuIsOpen===!1?o.sp0:o.sp3}`}),menu:()=>({width:"150%"}),singleValue:()=>({display:"flex",alignItems:"center",color:"inherit"})},onCreateOptionClick:r=>{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(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),[z,W]=i.split("."),O=parseInt(W),F=q.dirtyFields[z]?.[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(Ge,{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(Q,{children:u.globalMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Q,{children:u.globalMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(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(Ge,{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(Q,{children:p.tenantMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Q,{children:p.tenantMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(i,H,ge),checkBoxValue:ce(i,H,ge),defaultChecked:e.currentSelection==="requested"},tooltipProps:{text:t.jsx(Xt,{merchant:p}),maxWidth:"360px"}}:void 0;let D=p.oldMerchantName;e.currentSelection==="originalVendor"&&e.selectedMerchantId!=null&&(D=e.selectedMerchantId);const 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(Q,{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,X as Y,a as _e,D as Ye,c7 as Je,j as t,B as ue,aW as Xe,F as Qe,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``,Q=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"};
@@ -179,7 +179,7 @@ import{u as Ee,X as Y,a as _e,D as Ye,c7 as Je,j as t,B as ue,aW as Xe,F as Qe,b
179
179
  display: flex;
180
180
  align-items: center;
181
181
  cursor: pointer;
182
- `,Ge=n.div`
182
+ `,ze=n.div`
183
183
  display: flex;
184
184
  text-align: center;
185
185
  align-items: center;
@@ -187,7 +187,7 @@ import{u as Ee,X as Y,a as _e,D as Ye,c7 as Je,j as t,B as ue,aW as Xe,F as Qe,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"};
@@ -212,10 +212,10 @@ import{u as Ee,X as Y,a as _e,D as Ye,c7 as Je,j as t,B as ue,aW as Xe,F as Qe,b
212
212
  white-space: nowrap;
213
213
  `,_t=n.div`
214
214
  margin-right: ${e=>e.space};
215
- `,ze=n.div`
215
+ `,Ge=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(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(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]}),Xt=({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=Fe(l)??l,window.open(l,"_blank"))},"data-testid":T("global-review-list-row-website-url-tooltip"),children:l})]}):null]})},Qt=({sortConfig:e,fetchState:l,isDisabled:a,onColumnSortConfigChanged: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(ze,{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(ze,{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(Q,{children:h.name})})}),t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":T("global-review-list-row-edit-icon-tooltip")})}),m?t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(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]}),Xt=({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]})},Zt=({sortConfig:e,fetchState:l,isDisabled:a,onColumnSortConfigChanged:i})=>{const g=Y();return t.jsxs(Qt,{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))})]})},Qt=n.div`
219
219
  display: block;
220
220
  min-height: 100%;
221
221
  flex-direction: column;
@@ -224,7 +224,7 @@ import{u as Ee,X as Y,a as _e,D as Ye,c7 as Je,j as t,B as ue,aW as Xe,F as Qe,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: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)},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(Qt,{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: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`
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(),z=C.useRef(null),[W,O]=C.useState(!1);C.useEffect(()=>{z.current?.resetAfterIndex(0)},[I,z]),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(Qe,{})}),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(Zt,{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:z,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,X as Y,a as _e,D as Ye,c7 as Je,j as t,B as ue,aW as Xe,F as Qe,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 L=Ee(),I=Y(),{vendorGlobalReviewData:G,allGlobalMerchants:W,uiState:O,fetchState:F}=e,{globalMerchants:J,fetchState:p}=l,B=_e({mode:"all",reValidateMode:"onChange",defaultValues:Te(G,W),values:Te(G,W),resetOptions:{keepDirtyValues:!0}}),[K,oe]=C.useState(O.searchText),x=C.useRef(),v=r=>{y(r,!1,null)},D=r=>{const b=G.find(z=>z.merchant.tenantMerchantId===r);if(b!=null){const z=W.find(Q=>Q.globalMerchantId===b.selectedMerchantId),X=b.recommendations,{tenantName:re,oldMerchantName:ie,tenantMerchantName:ne}=b.merchant,R=z?.globalMerchantName??ne,A=X[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:X}=b,re=parseInt(r.split(".")[1]),ie=X[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],Q;R.merchantId!=null&&(r.includes(Re)?(A={recommendedFirst:R[H].recommendedFirst,recommendedSecond:!1,originalVendor:!1,requested:!1},Q=R[Re]?.globalMerchantId):r.includes(Ne)?(A={recommendedFirst:!1,recommendedSecond:R[H].recommendedSecond,originalVendor:!1,requested:!1},Q=R[Ne]?.globalMerchantId):r.includes(ge)?(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:R[H].requested},Q=R[ge]):r.includes(ve)&&(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!0,requested:!1})),g(ie,A,r.includes(ve)?X[re][ve].selectedOption:Q)}};C.useEffect(()=>{const r=B.watch((b,{name:z,type:X})=>{z!=null&&b!=null&&Je(()=>u(z,b,X))});return()=>{r.unsubscribe()}});const S=t.jsx(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(Xe,{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(Qe,{...B,children:t.jsx("form",{id:xl(ul),onSubmit:B.handleSubmit(xe),style:{width:"100%"},children:t.jsx(ll,{vendorGlobalReviewList:G,allGlobalMerchants:W,globalMerchantAutoCompleteView:l,uiState:{...O,searchText:K},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`
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:z,allGlobalMerchants:W,uiState:O,fetchState:F}=e,{globalMerchants:J,fetchState:p}=l,K=_e({mode:"all",reValidateMode:"onChange",defaultValues:Te(z,W),values:Te(z,W),resetOptions:{keepDirtyValues:!0}}),[B,oe]=C.useState(O.searchText),x=C.useRef(),v=r=>{y(r,!1,null)},D=r=>{const b=z.find(G=>G.merchant.tenantMerchantId===r);if(b!=null){const G=W.find(Z=>Z.globalMerchantId===b.selectedMerchantId),X=b.recommendations,{tenantName:re,oldMerchantName:ie,tenantMerchantName:ne}=b.merchant,R=G?.globalMerchantName??ne,A=X[0];a.trackVendorReviewApproveRequested({reviewSource:"global_review",tenantName:re,requestedVendorName:ne,originalVendorName:ie,approveVendorName:R,isGlobalVendorRequested:G!=null,isNewCreatedVendorRequested:!1,isVendorNameRecommendationSelected:b.currentSelection==="recommendedFirst"||b.currentSelection==="recommendedSecond",isVendorNameChangedAndSelected:R!==ne,wasRecommendationAvailable:!!A?.globalMerchantName,approveVendorReason:G?.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,G)=>{const{globalReviewListTable:X}=b,re=parseInt(r.split(".")[1]),ie=X[re].merchantId;if(G==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],Z;R.merchantId!=null&&(r.includes(Re)?(A={recommendedFirst:R[H].recommendedFirst,recommendedSecond:!1,originalVendor:!1,requested:!1},Z=R[Re]?.globalMerchantId):r.includes(Ne)?(A={recommendedFirst:!1,recommendedSecond:R[H].recommendedSecond,originalVendor:!1,requested:!1},Z=R[Ne]?.globalMerchantId):r.includes(ge)?(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:R[H].requested},Z=R[ge]):r.includes(ve)&&(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!0,requested:!1})),g(ie,A,r.includes(ve)?X[re][ve].selectedOption:Z)}};C.useEffect(()=>{const r=K.watch((b,{name:G,type:X})=>{G!=null&&b!=null&&Je(()=>u(G,b,X))});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(Xe,{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(Ze,{...K,children:t.jsx("form",{id:xl(ul),onSubmit:K.handleSubmit(xe),style:{width:"100%"},children:t.jsx(ll,{vendorGlobalReviewList:z,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,X as Y,a as _e,D as Ye,c7 as Je,j as t,B as ue,aW as Xe,F as Qe,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};
@@ -1,7 +1,7 @@
1
- import{X as $,j as t,$ as w,B as n,o,C as j,eE as S,ap as v,a7 as y}from"./index-Dv7T7Q4q.js";import{b as d,n as r}from"./vendor-CnQcJ2Lu.js";import{x as B}from"./MeetingCalenderPopup-DbFlQ8Km-k4_LsMxX.js";const z={helpButtonBottom:new j(138,96,96)};function L({isFooterRendered:e,meetingUrl:h,analytics:u,productType:s,setShowPopup:i}){const m=$(),[l,x]=d.useState(!1),[g,p]=d.useState(!1),a=()=>{x(f=>!f)};return t.jsxs(t.Fragment,{children:[g===!0?t.jsx(B,{onCancelClick:()=>{p(!1),i?.(!1)},meetingUrl:h}):null,t.jsxs(C,{"data-testid":w("help-button",s),isFooterRendered:e,windowSize:m,onMouseEnter:a,onMouseLeave:a,onClick:()=>{s!=null&&u?.trackNeedHelp(s),p(!0),i?.(!0)},children:[t.jsx(R,{}),t.jsx(H,{helpTextHover:l,children:l?t.jsxs(c,{children:[n.getLocalizedStrings().common.needHelp.hoverPrefix,t.jsx(b,{children:n.getLocalizedStrings().common.needHelp.hoverSuffix})]}):t.jsx(c,{children:n.getLocalizedStrings().common.needHelp.text})})]})]})}const C=r.div`
1
+ import{X as $,j as t,_ as w,M as n,o,C as j,eA as S,ap as v,a7 as y}from"./index-CapQvjm9.js";import{b as d,n as r}from"./vendor-CnQcJ2Lu.js";import{x as z}from"./MeetingCalenderPopup-CUA73Qvk-BpUub713.js";const C={helpButtonBottom:new j(138,96,96)};function L({isFooterRendered:e,meetingUrl:h,analytics:u,productType:s,setShowPopup:i}){const m=$(),[l,x]=d.useState(!1),[g,p]=d.useState(!1),a=()=>{x(f=>!f)};return t.jsxs(t.Fragment,{children:[g===!0?t.jsx(z,{onCancelClick:()=>{p(!1),i?.(!1)},meetingUrl:h}):null,t.jsxs(H,{"data-testid":w("help-button",s),isFooterRendered:e,windowSize:m,onMouseEnter:a,onMouseLeave:a,onClick:()=>{s!=null&&u?.trackNeedHelp(s),p(!0),i?.(!0)},children:[t.jsx(B,{}),t.jsx(M,{helpTextHover:l,children:l?t.jsxs(c,{children:[n.getLocalizedStrings().common.needHelp.hoverPrefix,t.jsx(b,{children:n.getLocalizedStrings().common.needHelp.hoverSuffix})]}):t.jsx(c,{children:n.getLocalizedStrings().common.needHelp.text})})]})]})}const H=r.div`
2
2
  position: fixed;
3
3
  right: ${o.sp4};
4
- bottom: ${e=>e.isFooterRendered?z.helpButtonBottom.valuePx(e.windowSize):o.sp4};
4
+ bottom: ${e=>e.isFooterRendered?C.helpButtonBottom.valuePx(e.windowSize):o.sp4};
5
5
  display: flex;
6
6
  justify-content: center;
7
7
  align-items: center;
@@ -9,7 +9,7 @@ import{X as $,j as t,$ as w,B as n,o,C as j,eE as S,ap as v,a7 as y}from"./index
9
9
  padding: ${o.sp2} ${o.sp3} ${o.sp2} ${o.sp2};
10
10
  border-radius: 20px;
11
11
  cursor: default;
12
- `,H=r.div`
12
+ `,M=r.div`
13
13
  width: ${e=>e.helpTextHover===!0?"265px":"75px"};
14
14
  transition: width 0.3s;
15
15
  padding-left: ${o.sp1};
@@ -20,7 +20,7 @@ import{X as $,j as t,$ as w,B as n,o,C as j,eE as S,ap as v,a7 as y}from"./index
20
20
  `,b=r(y)`
21
21
  color: ${e=>e.theme.colors.grey5};
22
22
  cursor: pointer;
23
- `,R=r(S)`
23
+ `,B=r(S)`
24
24
  cursor: pointer;
25
25
  width: ${o.sp3};
26
26
  height: ${o.sp3};