@zeniai/web-cockpit-ui 1.15.25-dev → 1.15.26-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 (323) hide show
  1. package/dist/assets/ACHDetailsPage-CxpLuJpQ-oljmG-aN.js +21 -0
  2. package/dist/assets/{AIPerformancePage-BXF0kUqR-BgyTM2y7.js → AIPerformancePage-BtDuOBey-B5mBQCVW.js} +104 -104
  3. package/dist/assets/AccountInfoPage-DkpBGfrR-BAuNBIod.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-QMyPHCdY-DP0akuHx.js → AccountInfoPageContent-BLF92_vF-CW7wtofP.js} +15 -15
  5. package/dist/assets/AccountLockedInfoModal-AsMkXu1I-CUepwrH5.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CoXPQka7-DFQZksfD.js → AccountReconDetailsDrawerPage-CkaBrm5K-KV-fem_5.js} +10 -10
  7. package/dist/assets/AccountRow-aEmcYP8T-NzxiJ7E0.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-Dkz2VyEk-BJf7WrAq.js → AccountsPromoCardStack-C0At5pn8-BVyntxD9.js} +22 -22
  9. package/dist/assets/AddAddressForCardDrawer-CbjThbsA-DCBhdPbu.js +6 -0
  10. package/dist/assets/{AddToWalletPage-p0T8VFfo-WTTL1b0G.js → AddToWalletPage-CMJwUbgf-CbZx4F8y.js} +47 -47
  11. package/dist/assets/{AgingReportsPage-CTzjRkV2-CkKYMdrC.js → AgingReportsPage-B_BSfude-DZk6eQ7D.js} +15 -15
  12. package/dist/assets/{AllUserItems-Dt9rMGJk-D2oOTLOS.js → AllUserItems-CGlWa60t-Bsvj0Bul.js} +13 -13
  13. package/dist/assets/{ApAgingDetailPage-71VQk7px-BPdIn6ZS.js → ApAgingDetailPage-DT3vkmLG-hWexPQ-R.js} +7 -7
  14. package/dist/assets/AppBasePage-CDy7wPlv-BdtLe6Er.js +71 -0
  15. package/dist/assets/{AppDrawerContent-ULUH1WZ3-CblzrDc2.js → AppDrawerContent-CEsXm_i6-DvQRPFBq.js} +4 -4
  16. package/dist/assets/{ApprovalRulesSettingsPage-Ciz-iaE5-ghG5WVzt.js → ApprovalRulesSettingsPage-CB2_4-2f-DqEewSSN.js} +1 -1
  17. package/dist/assets/{ArAgingChart-DcwM2rpv-C36SsOV8.js → ArAgingChart-qxhWsIQb-BR0MyGhc.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-eGCSFdAM-BJk9vCxH.js → ArAgingDetailPage-BbzQryp_-si9TyFWf.js} +4 -4
  19. package/dist/assets/{AttachmentView-CA6PRg4p-DDr9TCOl.js → AttachmentView-duTVxc9g-Cx51cWLo.js} +4 -4
  20. package/dist/assets/{BankAccountSection-mWUT-G8y-2k5xTeyX.js → BankAccountSection-CAwAf9xK-dEu3iigm.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-IMtILLfL-BhKJ6bLn.js → BankAccountWarningSection-CaDnP9_--B_s5lRpF.js} +11 -11
  22. package/dist/assets/{BankConnectionsSettingsPage-COyH3rdC-Be8G7lph.js → BankConnectionsSettingsPage-CDV7O8cl-CKVB9msh.js} +10 -10
  23. package/dist/assets/{BillDetailPage-BR_9uHRC-mLWBTrh1.js → BillDetailPage-DJxh2CIc-BDq5xtCx.js} +13 -13
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-cRAudMvm-CWVbYb1D.js → BillPayApprovalRuleDetailPage-B2ZPbqtr-DoqAcsu7.js} +2 -2
  25. package/dist/assets/{BillPayApprovalRulesPage-Cd0aJtip-BTxbg4yL.js → BillPayApprovalRulesPage-MM7v8ZMx-BqexuGBp.js} +8 -8
  26. package/dist/assets/{BillPayPromoPage-BYW097HT-D4YnpN75.js → BillPayPromoPage-JK-VOx4W-CHt5RuWY.js} +8 -8
  27. package/dist/assets/{BillPaySetUpPage-BahrLUn4-CqC29kIw.js → BillPaySetUpPage-h0uoCWMl-B3vp9xYH.js} +2 -2
  28. package/dist/assets/BillingSettingsPage-gJG9OxD6-sAZcxvhc.js +44 -0
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CJ-GbBhL-B7DfrKfl.js → BillsBulkReviewDrawerPage-CPPDFsZt-D7n_HeTo.js} +1 -1
  30. package/dist/assets/{BoxItem-CvhcNreT-DxmoznPD.js → BoxItem-CYe_gTmA-3TpRGAgq.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-Dos8Bnvb-tV078-eh.js +138 -0
  32. package/dist/assets/{CardNumberSubText-CfoSPAZU-BdVhRiwJ.js → CardNumberSubText-CFDhtij8-Dsv6kEZQ.js} +3 -3
  33. package/dist/assets/{CashbackDetailPage-CWlaZrqz-DvIAxVRW.js → CashbackDetailPage-BBGGzKh7-DUHJlZVl.js} +13 -13
  34. package/dist/assets/{ChargeCardDetailPage-BNNbd3G1-BtUCuJum.js → ChargeCardDetailPage-BQhago53-wjHuLhkC.js} +35 -35
  35. package/dist/assets/{ChargeCardListPage-BzIvl8RY-Ncd3QF6u.js → ChargeCardListPage-B0E-C3RH-B7k2t4T5.js} +16 -16
  36. package/dist/assets/{ChargeCardListTable-D-uQKI4t-lkMdiYYu.js → ChargeCardListTable-ByGv0xWl-DMSCDnKA.js} +46 -46
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-DmzlfD-l-OAmKFjuL.js → ChargeCardPaymentHistoryPage-LCY9rFqO-BkZDtpLS.js} +12 -12
  38. package/dist/assets/{ChargeCardPromoPage-DOYqOs6K-xBYShKSz.js → ChargeCardPromoPage-CKEnOseD-C5Oe_CBA.js} +11 -11
  39. package/dist/assets/{ChargeCardSetupPage-CSnLMycu-BkjYVqCn.js → ChargeCardSetupPage-BHv2VOdc-7YAt9Um1.js} +3 -3
  40. package/dist/assets/ChargeCardStatementsPage-UpRXyPTS-DMihpC1F.js +60 -0
  41. package/dist/assets/{CheckDepositDrawerPage-DN5Ok0Y6-DOjKYa5p.js → CheckDepositDrawerPage-0zbTQ3Fa-BLYoChOi.js} +21 -21
  42. package/dist/assets/{CollapsableReportTable-CncMWpFI-CnBbDhbn.js → CollapsableReportTable-DlYIKSlQ-CcB96aJz.js} +93 -93
  43. package/dist/assets/CompanyOfficerDetailsSection-Ck0xqZ0d-BRXSA5bv.js +260 -0
  44. package/dist/assets/{CompanyPassportCard-Ccw8l9iz-CwNj32nj.js → CompanyPassportCard-DeVPuuje-pYw0P8-e.js} +3 -3
  45. package/dist/assets/CompanyPassportPage-F_GUET9a-DyWAWfST.js +574 -0
  46. package/dist/assets/{CompleteProfile-CQUDJ-nI-DJVg2OT2.js → CompleteProfile-Y6HwKtpz-CAD13Y73.js} +2 -2
  47. package/dist/assets/ConfettiBurst-BGE3Okwr-BH3P6Vot.js +1 -0
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-BVda4Dj4.js → ConstrainedInnerElement-BeIpAPjB-BElBEfq9.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-DM90rr4S-BcABoxWR.js → CreateOrEditVendorPage-BlZe6gmh-CQZW25xI.js} +16 -16
  50. package/dist/assets/{CreditCardPaymentDrawerPage-Bh0QdxXh-Dti2BnoN.js → CreditCardPaymentDrawerPage-flPmyCaF-BN_zrabq.js} +11 -11
  51. package/dist/assets/{CurrencySelectField-BDfEzwpU-4zlCOdOf.js → CurrencySelectField-RiKAivD8-Men9-Qs8.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-CJGtq19l-BpCso2Fz.js → CustomerOnboardingActivationPage-B7dLMk4g-9XWjuxWa.js} +3 -3
  53. package/dist/assets/CustomerOnboardingContainerPage-BHPDhC3d-CAVfCCXg.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DSqc1_bS-CATYZXta.js → CustomerOnboardingDetailPageSkeleton-AWsst0XH-Dm9ock3U.js} +14 -14
  55. package/dist/assets/CustomerOnboardingNoStepsPage-Bqid4-rH-1Q4j5GPR.js +66 -0
  56. package/dist/assets/CustomerOnboardingPage-B5LrMzZS-C9Fs1CgW.js +107 -0
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-CZDipU2j-BbQ2Iy2J.js → CustomerOnboardingProductSuitePage-DqgoBLWp-CqOyrhHJ.js} +6 -6
  58. package/dist/assets/{Dashboard-DyQZQS2X-mxU1Jkng.js → Dashboard-D0KlujCx-DnjbaQQd.js} +66 -66
  59. package/dist/assets/{DashboardReportPage-Dn7pVdG9-DtcRvxDO.js → DashboardReportPage-bxKyMsG7-D9LgF6Vc.js} +13 -13
  60. package/dist/assets/DashboardSidebarBackgroundAnimation-Ch0OiH1g-8bPW9HsA.js +12 -0
  61. package/dist/assets/{DepositAccTransactionItem-DDdkQsmn-B5pGW8gX.js → DepositAccTransactionItem-BdZVCAx--B5mbkfQv.js} +6 -6
  62. package/dist/assets/{DepositAccTransactionListPage-BHdmR6m5-7yonpKjA.js → DepositAccTransactionListPage-LU0QMdSV-BPGsYfzN.js} +7 -7
  63. package/dist/assets/{DomesticWireDetailsPage-CpwSOc_0-CElrVONi.js → DomesticWireDetailsPage-CFt5GgZ1-DPIozVv0.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-Dhib22Hz-D3Lt9Smx.js → DownloadOverlay-CH_bA3On-JFXgpsko.js} +11 -11
  65. package/dist/assets/{DrawerPage-nxxj86nQ-CJOa9BEO.js → DrawerPage-Cpdp-IFb-6O8ALZwh.js} +14 -14
  66. package/dist/assets/EditPeoplePage-BYnuNojX-COJTJTYl.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-C2kqq9QP-Bbzp1pVf.js → EditReimbursementDetailPage-DnyyPZ26-CW_m0PAT.js} +73 -73
  68. package/dist/assets/EntityDetailPage-DSfZZ1JW-NbMT0IAK.js +18 -0
  69. package/dist/assets/{EntitySummarySection-C29GLBzF-CWqpKadr.js → EntitySummarySection-BFpgAYAM-CKlhnXLV.js} +8 -8
  70. package/dist/assets/{ExpenseAutomationOverviewPage-B4kcx-VG-CGPR3A1h.js → ExpenseAutomationOverviewPage-YjOVm_Bw-BDJuPgHE.js} +22 -22
  71. package/dist/assets/{ExpenseAutomationPage-DNwnoyPg-DCSz-PUa.js → ExpenseAutomationPage-DlhH-R-e-DCW88pdW.js} +285 -295
  72. package/dist/assets/{ExpressPayPage-K-InpYtZ-DIVfrk0c.js → ExpressPayPage-CKqPEfbR-pk0o4BxB.js} +21 -21
  73. package/dist/assets/{FeaturePreviewPage-IsRBHkoD-e3f7mixU.js → FeaturePreviewPage-Cs1Y3nP0-BgQT4DqF.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-ClyCs5f_-Dx038WgT.js → FollowStepsSection-BCyL8Jdr-CPpGgHn-.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-n8XrBXXp-BZl-OsOG.js → GlobalReviewListPage-CBQFcVHd-XH4CFBRM.js} +16 -16
  76. package/dist/assets/{InformationCardStack-BnOF2kCh-C7gNsonq.js → InformationCardStack-nFMetrAy-CMfT3sbg.js} +6 -6
  77. package/dist/assets/{InsightsCardStack-Bgzkang3-CA8GAaRZ.js → InsightsCardStack-CEMeGJXy-DkdJ-vVc.js} +9 -9
  78. package/dist/assets/InsightsSection-BYiN2xB7-Tq3IZNKc.js +27 -0
  79. package/dist/assets/{IntegrationsSettingsPage-D1QWrVQw-BXx7A_Fv.js → IntegrationsSettingsPage-BQ7g3a3K-BdOaL4VS.js} +3 -3
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-DNNEqdWS-B78a52iW.js → InternationalWireSwiftDetailsPage-BHRYsZgm-DSuBLSD4.js} +20 -20
  81. package/dist/assets/InternationalWireVerificationPage-tJbVtzQP-CQvYGebF.js +292 -0
  82. package/dist/assets/{InviteFormPage-C-Io8wxr-DZ679TjD.js → InviteFormPage-BVXte8w8-MDAVTXGi.js} +21 -21
  83. package/dist/assets/{InvitePageListView-B1PLdKSn-3WJcdIb9.js → InvitePageListView-DFPyLLrA-CONqmQCs.js} +55 -55
  84. package/dist/assets/InvitePeoplePage-B-uxjkke-6b_Qz0Yf.js +12 -0
  85. package/dist/assets/InvoiceUploadSection-B9q7nIs0-DhF51Ukp.js +140 -0
  86. package/dist/assets/{IssueChargeCardPage-CC6D-uPl-dzV4_AJm.js → IssueChargeCardPage-BuLj1bOl-DtlAMUV4.js} +15 -15
  87. package/dist/assets/{LabeledAddressValue-CKZJgaV5-cxiw5XUU.js → LabeledAddressValue-D2t8ti-C-Z0RI74Eh.js} +2 -2
  88. package/dist/assets/LabeledAddressValueField-DMcor_I8-C6G1J4Y2.js +45 -0
  89. package/dist/assets/LabeledControlledCheckBoxField-B6w2HGJK-6LsZxWHa.js +16 -0
  90. package/dist/assets/{LabeledCreatableSingleSelectField-N1wb0l0p-Dc3bkr-e.js → LabeledCreatableSingleSelectField-DHNAX5Pu-BPIIBKMF.js} +13 -17
  91. package/dist/assets/LabeledDocumentField-Bx1u7vv_-DaqPO373.js +41 -0
  92. package/dist/assets/LabeledDropDownFormattedTextField-BBS4da2b-Pp7kOChU.js +59 -0
  93. package/dist/assets/{LabeledText-DiJE8avC-CseM5wCJ.js → LabeledText-zjKn4Cw--WpJNibWz.js} +5 -5
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CLup6THe-B8wjUmse.js → LabeledUserSingleSelectWithSubtitlesField-CIofqRT6-l_A9LTk7.js} +20 -20
  95. package/dist/assets/{LabeledZeniRolesDropDownField-CVg9PTpl-CmXvnZ1S.js → LabeledZeniRolesDropDownField-DiBtAWQ3-_N52HAlB.js} +33 -33
  96. package/dist/assets/{LinkJETransactionPage-DaGHGCIJ-ZPmKuaes.js → LinkJETransactionPage-D66bzDh_-B4JreFf6.js} +8 -8
  97. package/dist/assets/{LockCardPage-CGYlmPkB-BpMPFgRW.js → LockCardPage-B1g2TZWL-hWz0sEAN.js} +22 -22
  98. package/dist/assets/{LowBalancePopup-YJW7eKud-C5-4WX6d.js → LowBalancePopup-DbtHeVY--8cU4w1E0.js} +6 -6
  99. package/dist/assets/MagicLinkACHDetailsPage-X1pXkZYT-7knh_ltw.js +1 -0
  100. package/dist/assets/MagicLinkDomesticWireDetailsPage-BDl8k_bB-ESO2QI-z.js +1 -0
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-COXCHYYI-DrkXHgBT.js → MagicLinkInternationalWireDetailsPage-Q4lIsHtG-J3sKHPD3.js} +1 -1
  102. package/dist/assets/MagicLinkSuccessPage-BkxuITX--B7psstiC.js +31 -0
  103. package/dist/assets/{MagicLinkTitleSection-CCF7Ahgh-BraYyP_S.js → MagicLinkTitleSection-CqkZ9wOf-BR_t9OGm.js} +4 -4
  104. package/dist/assets/MailingDetailsSection-DRFGCM2W-D_ajBet8.js +21 -0
  105. package/dist/assets/{MyBankConnectionsSettingsPage-BJi0owDl-C6fsBM4C.js → MyBankConnectionsSettingsPage-CE2ZqHBJ-DRRK16jW.js} +9 -9
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-BWIla-hh-BQ4ym9Ei.js → MyPendingActivationChargeCardListPage-BffxXDZg-DDMywOmd.js} +2 -2
  107. package/dist/assets/MyProfileSettingsPage-DrsAlesY-CW5UQDbf.js +85 -0
  108. package/dist/assets/{NavBarWithPicker-BGZvvByA-4hcBX9YX.js → NavBarWithPicker-C4VfP_Kw-BlN6D07W.js} +5 -5
  109. package/dist/assets/{NavigationArrow-C3pN6F3u-tAd2nukx.js → NavigationArrow-DCCxx6H7-HhnIS8HH.js} +7 -7
  110. package/dist/assets/{NavigationDots-D1rJnVkZ-DI_AwSe8.js → NavigationDots-tWCw6Bpk-Mo0z1mhF.js} +4 -4
  111. package/dist/assets/{NewGlobalMerchantPage-DU2Z_NYb-CczYC_Cy.js → NewGlobalMerchantPage-UIA8zAjd-D_Ilslhf.js} +12 -12
  112. package/dist/assets/{NoDataChart-DuEsebs4-BQTTXvg9.js → NoDataChart-Bvetk9za-Dz6Kgiua.js} +2 -2
  113. package/dist/assets/NoDataTable-9xF1_3XS-gmK0ApJv.js +8 -0
  114. package/dist/assets/{NotFoundPage-DLtikmoi-CJn1LsuA.js → NotFoundPage-CdH-3upl-BWvfv-me.js} +6 -6
  115. package/dist/assets/{NotificationSettingsPage-DwsCKyVM-AIL1SOh9.js → NotificationSettingsPage-DP2gGIz1-CAx-Ob95.js} +12 -12
  116. package/dist/assets/{NotificationsListConfig-CMtBeX4D-Dg29H_7b.js → NotificationsListConfig-DG-DH2Aj-B1EWk1B7.js} +1 -1
  117. package/dist/assets/{NotificationsPage-CZrXzWli-9C2iwOMz.js → NotificationsPage-CgFMmR2X-DW2MYafR.js} +24 -24
  118. package/dist/assets/{OpExByVendorPage-0PLAOQu5-DLLDMhgS.js → OpExByVendorPage-eUvIAWzt-J9dFs64l.js} +20 -20
  119. package/dist/assets/OverlayContainerPage-D4QU0p4o-CRh-4TRn.js +11 -0
  120. package/dist/assets/{PandLWithForecastPage-PkrBqcAR-Djqg6ntv.js → PandLWithForecastPage-8S06Nyi5-Bs1OiKUY.js} +11 -11
  121. package/dist/assets/PaymentAccountSetupBillingAddressSection-DQtrANhI-CgW6kWBO.js +107 -0
  122. package/dist/assets/PeoplePage-D1BLHtO0-Cm2cmSqy.js +675 -0
  123. package/dist/assets/{Preview-DaDKYAzg.js → Preview-CyX-vurX.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-fMS3PJAc-r1K9Xxoj.js → ProductsCarousel-BKSXWnFR-BT4vvSaJ.js} +5 -5
  125. package/dist/assets/{PromoBaseCards-HY42c1kU-DSpx7Fy3.js → PromoBaseCards-BYT9nEJT-1c2PW57m.js} +17 -17
  126. package/dist/assets/{QBOConnectionDialog-B_AOC_hG-BSWcu79k.js → QBOConnectionDialog-C2-omQMZ-CW3-Jgl1.js} +3 -3
  127. package/dist/assets/{QBOSetupSection-CQHdqpJF-CH_S6Ewi.js → QBOSetupSection-lgv5wVlg-Db43UmDc.js} +16 -16
  128. package/dist/assets/{ReimbursementApprovalRuleDetailPage-D0oeO5MZ-95x-7hZW.js → ReimbursementApprovalRuleDetailPage-CbJViS3x-DEQyVs-F.js} +2 -2
  129. package/dist/assets/{ReimbursementApprovalRulesPage-Beg7ljMA-Cr4MOQVc.js → ReimbursementApprovalRulesPage-BuNt-Bmb-qkoyA-iD.js} +8 -8
  130. package/dist/assets/{ReimbursementDetailPage-DBxKNhum-DE3tfEga.js → ReimbursementDetailPage-CK3-Jqkd-ComGCWG4.js} +8 -8
  131. package/dist/assets/{ReimbursementPromoPage-DxZeTOQW-CNGgL2HL.js → ReimbursementPromoPage-fptOAJna-UPQyz9k9.js} +20 -20
  132. package/dist/assets/{ReimbursementSetUpPage-CN4LhFrS-BfRZlJ5w.js → ReimbursementSetUpPage-CidrpT2g-C4LYSo0t.js} +10 -10
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage--6OUmjzW-D3GoPfdC.js → ReimbursementsBulkReviewDrawerPage-Cy_Hediw-DbKZBLTq.js} +1 -1
  134. package/dist/assets/{ReloadCard-BluhBNO--D0eilzgR.js → ReloadCard-C81rGzOp-DY4k84ea.js} +5 -5
  135. package/dist/assets/{ReportTableViewSelector-8KYimU0G-YYB33_Xu.js → ReportTableViewSelector-neRSjrhV-C6WBlOcq.js} +9 -9
  136. package/dist/assets/{ReportsPage-D-UfdQ34-CNx_b_ly.js → ReportsPage-BhzQVaer-B4A4M4e5.js} +1 -1
  137. package/dist/assets/{RevenueChart-C9EztEKi-BbW9YFNy.js → RevenueChart-x7uTbFlm-CNwMod8g.js} +18 -18
  138. package/dist/assets/{ReviewDetailsPage-B6SYtYUA-d0bXCGW4.js → ReviewDetailsPage-jXZCylzg-BIFUDhZH.js} +31 -31
  139. package/dist/assets/{ReviewOverlay-C2enVZqt-C_vH9CpL.js → ReviewOverlay-nlm2HnGw-9bQU05T1.js} +18 -18
  140. package/dist/assets/RoleWithToolTip-C29QOzxS-BIz3hnmq.js +22 -0
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DmBVVX79-6-1NS4t6.js → ScheduleDetailsFixedAssetsPage-CkPzofLN-BgCHEx2z.js} +8 -8
  142. package/dist/assets/{ScheduleDetailsPage-Bp3d9tdD-Ct_0Fci8.js → ScheduleDetailsPage-BSZefKOh-6HOYgX85.js} +8 -8
  143. package/dist/assets/ScheduleSequenceTable-BW5M7Zfq-Cc7Psi6L.js +324 -0
  144. package/dist/assets/{ScreenRoutes-CvjimsD0.js → ScreenRoutes-DOxgrmyz.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-DiEFZwFL-DC1aQ-pj.js → SetUpAccountSection-C703iFL6-DWHc95vH.js} +5 -5
  146. package/dist/assets/SignIn-D9K5FklU-C-Fq_guN.js +491 -0
  147. package/dist/assets/SignInScreen-pGoo9woj.js +1 -0
  148. package/dist/assets/{SpendManagementListViewPage-BoWIPx5V-DXR-HLOL.js → SpendManagementListViewPage-CBNtC74m-DqpxdGQ6.js} +13 -13
  149. package/dist/assets/{SpendManagementPerTabPage-DRrECrxC-dCEqiObE.js → SpendManagementPerTabPage-D_sa7WRd-CzMD5xEZ.js} +25 -25
  150. package/dist/assets/{SpendManagementSection-xoH8d-PB-6nPhw1xu.js → SpendManagementSection-DpZUTV6m-Dyv3RP83.js} +23 -23
  151. package/dist/assets/StatementItem-DvdSsb8I-4NJSevH0.js +31 -0
  152. package/dist/assets/StatementsPage-73jGj5P2-DfWSq1-t.js +58 -0
  153. package/dist/assets/{StatusSwitcher-C-2QxP_3-DVOlvAn4.js → StatusSwitcher-hKYgwNLC-CE1foddz.js} +2 -2
  154. package/dist/assets/{SubTabSwitcher-D3iTZY-F-CSjMFn8K.js → SubTabSwitcher-aeDd9xiF-D4uOjs0t.js} +2 -2
  155. package/dist/assets/{SummaryCard-BbzDLzif-jCXiXuPT.js → SummaryCard-CK8Gxbiu-DemkEVCq.js} +1 -1
  156. package/dist/assets/{TaskManagementPage-DI_lMbra-CdUdFSOY.js → TaskManagementPage-D2Ooq8DR-DrMY4gdr.js} +15 -15
  157. package/dist/assets/{TimeRangeSwitcher-C3mH2YE7-CZoVUBkm.js → TimeRangeSwitcher-DEqlZxa6-BNFFHAst.js} +11 -11
  158. package/dist/assets/{TimeframeSwitcher-C8iVJfJz-B35AQLzW.js → TimeframeSwitcher-BppC6giF-D-wC9bQx.js} +6 -6
  159. package/dist/assets/TimeframeSwitcherWithToggle-CbX9ElMN-Txpnr2g5.js +31 -0
  160. package/dist/assets/{TopExCard-DlberdWy-AXYKUOGt.js → TopExCard-Cy6tPVSx-B-keVDu8.js} +6 -6
  161. package/dist/assets/{TopExDetailPage-DZyUPQ9i-kejvgUv1.js → TopExDetailPage-Rtrcdkcp-BJDfbujg.js} +11 -11
  162. package/dist/assets/{TransactionActivityLogPage-Bpdbc21v-DQ1FP9jB.js → TransactionActivityLogPage-DbwSsjPJ-BIwIVqy-.js} +15 -15
  163. package/dist/assets/TransactionDetailPage-D-vXAAB7-Bzb02Sjl.js +903 -0
  164. package/dist/assets/TransactionList-BruCNjQg-CPy3bOrg.js +153 -0
  165. package/dist/assets/{TransactionListBig-D6Q9QimF-DjvcRG58.js → TransactionListBig-bp7q3prH-B3o9La4k.js} +13 -13
  166. package/dist/assets/TransactionListPage-ZfJsaVb8--vXsSJCl.js +35 -0
  167. package/dist/assets/{TransactionVendorDetailPage-B4A4amjV-rbnaqzN7.js → TransactionVendorDetailPage-CldkuO2--QReUEWYz.js} +7 -7
  168. package/dist/assets/{TransferDrawerPage-Dfhpu5Yd-D-lZQHfG.js → TransferDrawerPage-DswS6KZf-BpK3RBCC.js} +27 -27
  169. package/dist/assets/{TreasuryOverviewPage-B6WhqRDb-BYZSOn3C.js → TreasuryOverviewPage-DWo7iRpO-gYNjYUSH.js} +1 -1
  170. package/dist/assets/{TreasuryPromoPage-C5DXueHJ-DvuJR2wv.js → TreasuryPromoPage-DQxCF3-4-BI9m1Cpo.js} +131 -131
  171. package/dist/assets/{TreasuryStatementsPage-8qXJLq1U-C7VbrxO2.js → TreasuryStatementsPage-CYkPtmaT-BgyV-fq7.js} +2 -2
  172. package/dist/assets/TreasuryTaxLetterPage-DH3su_rX-Dyk_wpPB.js +58 -0
  173. package/dist/assets/{TrendChart-FPLC1aMv-BpKn1lA4.js → TrendChart-BMHDaOeh-DUFeSEwp.js} +3 -3
  174. package/dist/assets/{TrendWithTransactions-_O4Fz3pt-B_P0jc9Y.js → TrendWithTransactions-DDLrmIrt-D7YkaYJE.js} +3 -3
  175. package/dist/assets/{UncategorizedAccountsMappingPage-rdMygvxx-CB5luTSv.js → UncategorizedAccountsMappingPage-3SW8Gj0Z-DxcmP_9M.js} +22 -22
  176. package/dist/assets/{UnitIntegrationPage-WfFukh9_-Db1kSxll.js → UnitIntegrationPage-DPMy8dXP-Ds2V7iqZ.js} +11 -11
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-xiqklxM_-C-ghpumD.js → UploadAdditionalDocumentOverlay-BHpT2al--Bh-cR8rL.js} +1 -1
  178. package/dist/assets/Vendor2FAPopup-C6gEOhUv-DnLG0jax.js +1 -0
  179. package/dist/assets/VendorACHDetailsPage-LNCcubjL-BnzYtLeS.js +1 -0
  180. package/dist/assets/{VendorDetailPage-Cexet52V-fximdJ6Q.js → VendorDetailPage-BC1FhaQA-BTYI8FHa.js} +25 -25
  181. package/dist/assets/{VendorDomesticWireDetailsPage-DbhChvIp-Cn8HKuB3.js → VendorDomesticWireDetailsPage-CLudahOt-DWedRRGC.js} +1 -1
  182. package/dist/assets/{VendorFiling1099EditablePage-Bnwp2JiZ-B1voyhYV.js → VendorFiling1099EditablePage-DYyPOA8D-SaXokDu7.js} +38 -38
  183. package/dist/assets/{VendorFirstReviewPage-C_xSf47L-YlGbjVwi.js → VendorFirstReviewPage-Cpmk7rDk-CLDuk2Z1.js} +37 -37
  184. package/dist/assets/{VendorInternationalWireDetailsPage-DVuenbq8-CpmeIHQG.js → VendorInternationalWireDetailsPage-CWAWq6kq-BqWv0FEj.js} +9 -9
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CUtums8t-Cnhhvl1i.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-DYSlIqnJ-D8aKvLQv.js → VendorsAccountsSection-CGQ35Mhp-CZRiYNTG.js} +2 -2
  187. package/dist/assets/{VerifyDevice-MbuunHNJ-0NsL1ICM.js → VerifyDevice-CfMJW1Vh-CQyEdsek.js} +9 -9
  188. package/dist/assets/{VideoPlayer-B-oV4gcS-IlmjYyud.js → VideoPlayer-BNBpjXJk-S1NV6cBn.js} +2 -2
  189. package/dist/assets/{VideoPopup-DFfn4tne-e-69xGLM.js → VideoPopup-BF6lmB7l-C8AjwQYx.js} +5 -5
  190. package/dist/assets/{WarningsDrawerPage-C_nKfBpS-CgVWLVpY.js → WarningsDrawerPage-Crj70lnR-CqPc_yNz.js} +3 -3
  191. package/dist/assets/{ZeniAccountDetailPage-jYwDoLiN-C9ExO4Jo.js → ZeniAccountDetailPage-CaA6m3tQ-BxjiYTPx.js} +12 -12
  192. package/dist/assets/{ZeniAccountListViewPage-CWiWh2ld-BsZ-NitY.js → ZeniAccountListViewPage-x_51gDs1-BURzAUSX.js} +9 -9
  193. package/dist/assets/ZeniAccountNavBarPieces-Csr24dri-Dtq04dNH.js +14 -0
  194. package/dist/assets/{ZeniAccountPromoPage-DPab5PDZ-CdBoWbQ6.js → ZeniAccountPromoPage-lxKBk2r5-B3car8p6.js} +13 -13
  195. package/dist/assets/{ZeniAccountSetupPage-Dbqa1LpU-DR-JNx31.js → ZeniAccountSetupPage-DUI4-2Zw-CqTcY3yC.js} +1 -1
  196. package/dist/assets/{ZeniCopyright-SDIPg48K-6zG7DJUz.js → ZeniCopyright-DxEZ4DiK-Bx5L4V4v.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-Bg59KBt9-PXMuIYqh.js → ZeniTransferAmountSlider-4Nq4Sm9J-CWNMmcE5.js} +11 -11
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-4MTVGYLk.js → add-to-wallet-DgdBD8_G-Ckn7-tS3.js} +1 -1
  199. package/dist/assets/{analytics-DkApCpAh.js → analytics-DgE91yP9.js} +1 -1
  200. package/dist/assets/{analyticsHelper-DfCXurTN-CSH8s8BS.js → analyticsHelper-CL-t3Y2i-DqLgDKAm.js} +1 -1
  201. package/dist/assets/analyticsHelper-qCgSbR3t.js +1 -0
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-sjXlUHVP.js → arrow-south-east-round-PEovUgvH-6_ok8u4n.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-8P5UKTjR.js → auto-transfer-rule-mbafm5D3-DaMjzKK3.js} +1 -1
  204. package/dist/assets/{chartTypes-H306f0ce-DSh0OTeZ.js → chartTypes-B3501CSI-Eia1dEGg.js} +1 -1
  205. package/dist/assets/{commonDimensions-CWffpElu-DyTXC1xY.js → commonDimensions-YcBBlmYP-HRUAmifl.js} +1 -1
  206. package/dist/assets/{constants-42un7CRh.js → constants-DU2Tv8MD.js} +1 -1
  207. package/dist/assets/{core-DQ8U4CJb.js → core-CEu4PzGb.js} +1 -1
  208. package/dist/assets/{dash.all.min-xDoItceu.js → dash.all.min-wN4tXsVF.js} +1 -1
  209. package/dist/assets/{detailCommon-CfrL4ryy-K2hvWKyD.js → detailCommon-C19MYPnq-B5eEk_1Z.js} +2 -2
  210. package/dist/assets/downloadPdf-DPAqxw6u-DccTm81d.js +1 -0
  211. package/dist/assets/{empty-DBMIDect.js → empty-CarmpCiV.js} +1 -1
  212. package/dist/assets/{empty-DMdKDWd5.js → empty-SBaJLmT7.js} +1 -1
  213. package/dist/assets/epic-jB8ji6P2.js +2 -0
  214. package/dist/assets/{gift-box-Cmt9OgIZ-CKZgCX5V.js → gift-box-Cmt9OgIZ-Cfao5pzw.js} +1 -1
  215. package/dist/assets/{graphic-no-data-l-DU4J8fDt-B74xUk4A.js → graphic-no-data-l-DU4J8fDt-CtMgv3E2.js} +1 -1
  216. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CY998Ry-.js → graphic-no-data-net-burn-l-CzmycA0m-CxhhGXfI.js} +1 -1
  217. package/dist/assets/{handshake-BPg58FML-ci6EVnAm.js → handshake-BPg58FML-Cr0KvGET.js} +1 -1
  218. package/dist/assets/{index-DlHdI3-w.js → index-C65pc_ms.js} +1 -1
  219. package/dist/assets/{index-Ci8_ElRT.js → index-CM4tXRl_.js} +1 -1
  220. package/dist/assets/{index-uFwLgEj2.js → index-CTIRcS5n.js} +1 -1
  221. package/dist/assets/{index-CP7n6qbn.js → index-DdSqYqAO.js} +1 -1
  222. package/dist/assets/{index-MLR605z1.js → index-DotN2qpo.js} +1 -1
  223. package/dist/assets/{index-BIYLqgct.js → index-GSKpJ8ET.js} +4076 -4065
  224. package/dist/assets/{index-C-yZdmSC.js → index-qEET5oej.js} +1 -1
  225. package/dist/assets/{lexical-CvUIM9vD.js → lexical-CnqcqOEB.js} +1 -1
  226. package/dist/assets/{liveblocks-DXGUxn7J.js → liveblocks-D1OOExFG.js} +1 -1
  227. package/dist/assets/{lottie-C1yptpVV.js → lottie-fNTw06NH.js} +1 -1
  228. package/dist/assets/mapLoadingInProgressToTreeNode-D2u9MDI--Bj-YdG55.js +1 -0
  229. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CH8Zwu7Z-DxWz5zBn.js → mapSectionWithAcOnlyToTreeNode-BDWD3x8r-CFpEHrc_.js} +1 -1
  230. package/dist/assets/mapSpacerToTreeNode-Blr3egSm-C65_6eW3.js +1 -0
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-3Hd8QHr2-D-fvMaDb.js +1 -0
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-D-LTfKnD-D-V0iqTB.js +1 -0
  233. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CffU-RPP-Cn_Z85da.js +1 -0
  234. package/dist/assets/{mui-rLvQ8A4a.js → mui-DenpH-hx.js} +1 -1
  235. package/dist/assets/{page-detail-CWX5S47F-DxBKGqnW.js → page-detail-CWX5S47F-CMu9po0A.js} +1 -1
  236. package/dist/assets/panelSelectedMixin-CzfD5-Zs-Z09J1JBQ.js +4 -0
  237. package/dist/assets/{radio-default-CiSgisfh-D50TMWyl.js → radio-default-CiSgisfh--A7TRB5H.js} +1 -1
  238. package/dist/assets/{react-CD-rvAYw.js → react-B5LP5NK7.js} +1 -1
  239. package/dist/assets/{react-XCvfp0dN.js → react-BGO_hhif.js} +1 -1
  240. package/dist/assets/{react-BGRcEI9e.js → react-BNXAqjdV.js} +1 -1
  241. package/dist/assets/{react-CeXW-10t.js → react-BbEkWrBm.js} +1 -1
  242. package/dist/assets/{react-D5l7wk4q.js → react-BbsHWhNi.js} +2 -2
  243. package/dist/assets/{react-CKPzfXiX.js → react-CX4zcxjw.js} +1 -1
  244. package/dist/assets/{react-CaPJ_R38.js → react-D97zLppZ.js} +2 -2
  245. package/dist/assets/{react-BFvwO_Qx.js → react-DvuAhc__.js} +1 -1
  246. package/dist/assets/{recharts-BYppTjSs.js → recharts-9NtTDQfo.js} +1 -1
  247. package/dist/assets/{sentry-DhNwX3jk.js → sentry-BZBky1_g.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-1dcmCA6e.js → shield-DOlUxcFf-DnxNebOP.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-D35Fk0m2-dL9iDsOU.js +1 -0
  250. package/dist/assets/{toChartData-ILqaSUrn-x9ixmlfa.js → toChartData-DzatRnt8-Cq2-M4CL.js} +1 -1
  251. package/dist/assets/{uploadAttachment-BO1VJaKW-DrgLpT8c.js → uploadAttachment-Bq8dk-Sm-DirS4o1A.js} +18 -18
  252. package/dist/assets/{uploadReceipts-Dge0cNF1-BX-9R6_Z.js → uploadReceipts-Dge0cNF1-BKdcUL2b.js} +1 -1
  253. package/dist/assets/{url-DrmuGGE4.js → url-0W_uXmZ-.js} +1 -1
  254. package/dist/assets/{url-C7FJoqre.js → url-Z1gMB4SW.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-nce713S8.js → useLongPress-GCK2COYQ-B8bxkfF-.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-BIn3NV9C.js → usp-line-BBd1wKwW-BPsPtX_C.js} +1 -1
  257. package/dist/assets/{utils-BdIPH7k8.js → utils-CHibiken.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-DwkN4IvA.js → zeni-epic-state-BKgIzPpM.js} +18 -18
  259. package/dist/index.html +1 -1
  260. package/package.json +4 -4
  261. package/dist/assets/ACHDetailsPage-Davpg8eW-BWDILC-H.js +0 -21
  262. package/dist/assets/AccountInfoPage-Cefnidcc-Bp5rUTr8.js +0 -18
  263. package/dist/assets/AccountLockedInfoModal-BdFY6p56-RTWbIB_l.js +0 -59
  264. package/dist/assets/AccountRow-DHB-ETil-0INUiG8Z.js +0 -298
  265. package/dist/assets/AddAddressForCardDrawer-CUKknbhJ-CnCLxax6.js +0 -6
  266. package/dist/assets/AppBasePage-tDs92z31-B3gR6k96.js +0 -71
  267. package/dist/assets/BillingSettingsPage-BjMeQKM0-CpnNOiGS.js +0 -44
  268. package/dist/assets/BusinessVerificationPage-LKrdd6Ej-BKb49OWB.js +0 -138
  269. package/dist/assets/ChargeCardStatementsPage-C82CsaNY-DzvzbShn.js +0 -60
  270. package/dist/assets/CompanyOfficerDetailsSection-5Gmlo5HX-mf8toy40.js +0 -331
  271. package/dist/assets/CompanyPassportPage-IjpU53y_-BF5RjsoV.js +0 -417
  272. package/dist/assets/ConfettiBurst-C_6Uy7eR-Np_3vQFo.js +0 -1
  273. package/dist/assets/CustomerOnboardingContainerPage-CP6DdMkC-CnaDFGWF.js +0 -1
  274. package/dist/assets/CustomerOnboardingNoStepsPage-BuWnQGPi-BSZV9BI0.js +0 -66
  275. package/dist/assets/CustomerOnboardingPage-Bl2oAvin-B7GmsFRo.js +0 -107
  276. package/dist/assets/DashboardSidebarBackgroundAnimation-iiFGhvRQ-y0LRofZR.js +0 -12
  277. package/dist/assets/EditPeoplePage-CG5gmNTR-CH2Xt3X8.js +0 -55
  278. package/dist/assets/EntityDetailPage-CL0FCU_m-BGtD2JCX.js +0 -18
  279. package/dist/assets/InsightsSection-C16f1RZL-BLvjZ1kW.js +0 -27
  280. package/dist/assets/InternationalWireVerificationPage-xmHZ6XN7-DwVwtiyi.js +0 -65
  281. package/dist/assets/InvitePeoplePage-BArxsNxE-BXI3n59t.js +0 -12
  282. package/dist/assets/InvoiceUploadSection-Eo7dq75t-C9QkPoGX.js +0 -140
  283. package/dist/assets/LabeledAddressValueField-DNGOSAvq-BXE6xS8k.js +0 -45
  284. package/dist/assets/LabeledControlledCheckBoxField-CR2DslKs-Cl2J9WYt.js +0 -16
  285. package/dist/assets/LabeledCountryMultiSelectField-B8Lbv837-DgWr30M7.js +0 -237
  286. package/dist/assets/LabeledDocumentField-vSq1xSUM-C_0QT0Hr.js +0 -41
  287. package/dist/assets/LabeledDropDownFormattedTextField-CqDEmdfe-DrhnwOAX.js +0 -59
  288. package/dist/assets/MagicLinkACHDetailsPage-C3TnWCqC-ByYEbu_t.js +0 -1
  289. package/dist/assets/MagicLinkDomesticWireDetailsPage-BUjap5Q7-Bvcp-odv.js +0 -1
  290. package/dist/assets/MagicLinkSuccessPage-CdHOdUZ5-CSa0Vcf2.js +0 -31
  291. package/dist/assets/MailingDetailsSection-WMvjKFiS-C1_EkXyZ.js +0 -21
  292. package/dist/assets/MyProfileSettingsPage-B0uYhezS-DbNVKwps.js +0 -85
  293. package/dist/assets/NoDataTable-B7LkfAQX-CdTNbZgo.js +0 -8
  294. package/dist/assets/OverlayContainerPage-D4QU0p4o-D2G-CVv7.js +0 -11
  295. package/dist/assets/PaymentAccountSetupBillingAddressSection-C026Xg59-Du1LULBI.js +0 -107
  296. package/dist/assets/PeoplePage-PyWOVc5M-DILaV4hT.js +0 -727
  297. package/dist/assets/RoleWithToolTip-DA3BIg5j-DG-Lih0N.js +0 -22
  298. package/dist/assets/ScheduleSequenceTable-B1fJ-_4f-VSvFhL5f.js +0 -324
  299. package/dist/assets/SignIn-T74bkrxk-ptxkK8PP.js +0 -491
  300. package/dist/assets/SignInScreen-BYcec7re.js +0 -1
  301. package/dist/assets/StatementItem-BthXwXFQ-j2l7jY5v.js +0 -31
  302. package/dist/assets/StatementsPage-FmjXzQ3g-oWNeSYKv.js +0 -58
  303. package/dist/assets/TimeframeSwitcherWithToggle-CdFx3214-DF2bdFav.js +0 -31
  304. package/dist/assets/TransactionDetailPage-CaRcJukf-CnifEZvn.js +0 -903
  305. package/dist/assets/TransactionList-BAziC6eS-6qNOgl8E.js +0 -153
  306. package/dist/assets/TransactionListPage-Ce_lSS6C-YqGl74XY.js +0 -35
  307. package/dist/assets/TreasuryTaxLetterPage-ClJA2mWI-xsnS5RHz.js +0 -58
  308. package/dist/assets/Vendor2FAPopup-DK98Bntc-CHLdTtz5.js +0 -1
  309. package/dist/assets/VendorACHDetailsPage-Bxo11l9N-DiVKko5M.js +0 -1
  310. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BNySLbxk-CvXAX7v6.js +0 -1
  311. package/dist/assets/ZeniAccountNavBarPieces-BK32R48c-BhUfl-Q9.js +0 -14
  312. package/dist/assets/analyticsHelper-DAh0LrcL.js +0 -1
  313. package/dist/assets/commonTypes-DP3nDhtI-D-fLD29s.js +0 -1
  314. package/dist/assets/downloadPdf-C1zKY9Rq-Bj2M-x0n.js +0 -1
  315. package/dist/assets/epic-av5bi8Jm.js +0 -2
  316. package/dist/assets/helper-Byvbf3nO-BTmT7Zux.js +0 -223
  317. package/dist/assets/mapLoadingInProgressToTreeNode-9Rpdq0ZF-lTETWBpR.js +0 -1
  318. package/dist/assets/mapSpacerToTreeNode-BCRaNO17-Byu958vH.js +0 -1
  319. package/dist/assets/mapTimeframeBalancesToTreeNode-Cc1RpGkM-aNtvWBak.js +0 -1
  320. package/dist/assets/mapTimeframeBalancesToTreeNode-DRCseSgo-Bs0MPeVL.js +0 -1
  321. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BnHYlJ_0-DmtLnyQB.js +0 -1
  322. package/dist/assets/panelSelectedMixin-Cddsb26L-CUpBjaaO.js +0 -3
  323. package/dist/assets/toCOABalancesWithID-BDzeodcz-CM7cQRcs.js +0 -1
@@ -1,4 +1,4 @@
1
- import{d as Re,J as Q,F as _,a9 as et,aR as Fe,cH as tt,V as t,bD as it,ad as at,aS as nt,y as f,o as n,kW as lt,kX as ot,kY as rt,cP as Ve,cM as dt,f4 as st,fI as ct,fJ as pt,cO as Oe,gg as mt,kZ as ut,cT as ht,cU as yt,fb as ze,fc as ke,fl as Ae,b as ge,u,fn as gt,bb as ft,b8 as xe,p as Ee,an as bt,as as We}from"./index-BIYLqgct.js";import{a as U}from"./sentry-DhNwX3jk.js";import{n as d}from"./mui-rLvQ8A4a.js";import{bL as _e,bh as le,bP as He,bH as xt,bo as wt}from"./zeni-epic-state-DwkN4IvA.js";import{Y as vt}from"./LabeledDocumentField-vSq1xSUM-C_0QT0Hr.js";import{S as te}from"./LabeledText-DiJE8avC-CseM5wCJ.js";import"./liveblocks-DXGUxn7J.js";import"./core-DQ8U4CJb.js";import"./recharts-BYppTjSs.js";import"./lottie-C1yptpVV.js";import"./analytics-DkApCpAh.js";import"./lexical-CvUIM9vD.js";import"./utils-BdIPH7k8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="6021b482-0b25-4f29-90ba-d7f89dd73db3",e._sentryDebugIdIdentifier="sentry-dbid-6021b482-0b25-4f29-90ba-d7f89dd73db3")}catch{}})();const St={progressBarWidth:new f(343,726)},jt=({pageIndex:e})=>{const i=Q(),a=Re(),s=_.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs($t,{children:[t.jsx(lt,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx(Pt,{children:h.map((p,l)=>t.jsx(Dt,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Le,{children:p})},l))})]}):t.jsxs(Ct,{windowSize:i,children:[t.jsx(ot,{coloredSectionCount:e,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1}),t.jsx(It,{children:h.map((p,l)=>t.jsx(Tt,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Le,{children:p})},p))})]})},Ct=d.div`
1
+ import{e as Re,J as K,F as H,a9 as et,aR as Fe,cG as tt,V as t,bD as it,ac as at,aS as nt,y as f,o as n,kW as lt,kX as ot,kY as rt,cM as Ve,cJ as dt,f1 as st,fF as ct,fG as pt,cL as ke,gd as mt,kZ as ut,cP as ht,cQ as yt,f8 as ze,f9 as Ae,fi as Oe,b as ge,u,fk as gt,bb as ft,b8 as be,p as Ee,am as xt,ar as We}from"./index-GSKpJ8ET.js";import{a as J}from"./sentry-BZBky1_g.js";import{n as d}from"./mui-DenpH-hx.js";import{bL as He,bh as le,bP as qe,bH as bt,bo as wt}from"./zeni-epic-state-BKgIzPpM.js";import{Y as vt}from"./LabeledDocumentField-Bx1u7vv_-DaqPO373.js";import{S as te}from"./LabeledText-zjKn4Cw--WpJNibWz.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./recharts-9NtTDQfo.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="0ccd9392-a0b5-47ca-8814-4a87fda75f97",e._sentryDebugIdIdentifier="sentry-dbid-0ccd9392-a0b5-47ca-8814-4a87fda75f97")}catch{}})();const St={progressBarWidth:new f(343,726)},jt=({pageIndex:e})=>{const i=K(),a=Re(),s=H.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs($t,{children:[t.jsx(lt,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx(Tt,{children:h.map((p,l)=>t.jsx(Dt,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Le,{children:p})},l))})]}):t.jsxs(Ct,{windowSize:i,children:[t.jsx(ot,{coloredSectionCount:e,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1}),t.jsx(It,{children:h.map((p,l)=>t.jsx(Pt,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Le,{children:p})},p))})]})},Ct=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-top: ${n.sp3};
@@ -18,13 +18,13 @@ import{d as Re,J as Q,F as _,a9 as et,aR as Fe,cH as tt,V as t,bD as it,ad as at
18
18
  margin: ${n.sp3} ${n.sp0};
19
19
  justify-content: space-between;
20
20
  height: ${n.sp6};
21
- `,Tt=d.div`
21
+ `,Pt=d.div`
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  align-items: center;
25
25
  text-align: ${e=>e.stateIndex===0?"left":e.stateIndex===1?"center":"right"};
26
26
  color: ${e=>e.isRelevant?e.theme.colors.primary:e.theme.colors.grey2};
27
- `,Le=d(ft)``,Pt=d.div`
27
+ `,Le=d(ft)``,Tt=d.div`
28
28
  display: flex;
29
29
  flex-direction: column;
30
30
  width: 100%;
@@ -38,18 +38,18 @@ import{d as Re,J as Q,F as _,a9 as et,aR as Fe,cH as tt,V as t,bD as it,ad as at
38
38
  position: relative;
39
39
  height: ${e=>`${e.perSectionHeight}%`};
40
40
  color: ${e=>e.isRelevant?e.theme.colors.primary:e.theme.colors.grey2};
41
- `,T={containerWidth:new f(343,580,726),labelWidth:new f(120,160,160),largeLabelWidth:new f(150,228,228),largeLabelPickerWidth:new f(100,180,180),paddingBottom:new f(u[3],u[2]),labelMarginLeftPicker:new f(u[3],u[4]),labelMarginRightPicker:new f(u[3],u[4]),labelMarginTopPicker:new f(u[2],u[2]),labeledFieldPaddingLeft:new f(u[0],u[0]),labeledFieldPaddingRight:new f(u[2],u[2]),labeledFieldPaddingTop:new f(u[2],u[2]),labeledFieldPaddingBottom:new f(u[2],u[2]),infoLabelPaddingRight:new f(u[0],u[3]),infoLabelMarginTop:new f(u[1],u[0])},V=(e,i)=>`${e}.${i}`,Ft=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:P,deleteFileStatusById:I,updateFileStatusById:b,onClickAddAccount:w})=>{const o=Q(),{spendManagement:F,dateFormat:y,common:C}=_.getLocalizedStrings(),$=F.billPay.billDetails,X=y.visual.defaultInput,re=F.zeniAccounts.expressPay,de=C.documents,H=T.largeLabelWidth.value(o),[g,Z]=U.useState(!1),q=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(xt)===!1),O=r=>s.find(m=>m.id===r),L=r=>ze(O(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=O(r),j=_.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(fe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberAch??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankAccountNumber}),t.jsx(E,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):i?.paymentType?.method.includes("wire")===!0?i.paymentType?.method.includes("international")===!0?t.jsx(fe,{children:m?.piLabels.map(Y=>t.jsxs(W,{children:[t.jsxs(z,{children:[Y.name,j.paymentDetails.colon]}),t.jsx(E,{children:Y.value})]},Y.name))}):t.jsxs(fe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.wireDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberWireTransfer??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.wireDetails.accountNumber}),t.jsx(E,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):""};return t.jsxs(t.Fragment,{children:[t.jsx(Ot,{children:$.paymentDetailsTitle}),t.jsxs(kt,{windowSize:o,children:[t.jsx(st,{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:Oe($.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(r,m)=>pt(h,r,m),valueToSubLabels:(r,m)=>ct(h,r,m,!1),defaultValue:{selectedOption:i?.withdrawFrom?.id,allOptions:h.map(r=>({label:r.label,value:r.id}))},textAlignment:"right",registerOptions:{required:!0,validate:r=>r!=null&&!!r.selectedOption}}}),t.jsx(J,{}),t.jsx(mt,{showAdditionalInfoLabel:!1,label:{label:$.amount,width:H},formattedTextField:{type:"number",name:V(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:Oe($.amount),returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:r=>r!=null&&r!==0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,shouldHighlightZeroAmount:!0},style:{width:"auto"}}),t.jsx(J,{}),t.jsx(ut,{label:{label:$.paymentMethod,width:T.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:V(e,"paymentMethod"),placeholder:$.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:q,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(J,{}),t.jsx(ht,{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:le(),registerOptions:{required:!0}}}),t.jsx(J,{}),t.jsx(Ve,{label:{label:$.paymentTo,width:H},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:V(e,"paymentTo"),placeholder:$.selectAccount,getTooltipInfo:ce,menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:w,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:L},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?se():[]},registerOptions:{required:!0,validate:r=>r?.selectedOption!=null}}}),t.jsx(J,{}),t.jsx(vt,{name:V(e,"receipt"),sizeLimit:yt,deleteFileStatusById:I,updateFileStatusById:b,filesEndPoint:l.filesEndPoint,authParams:l.authParams,label:{label:re.reciept,width:H},filemetadataPayload:{documentType:"id_document",purposeId:"business_verification_others",documentSide:"front"},file:P,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:P!=null?{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}:void 0},V(e,"receipt")),P==null?t.jsx(At,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(J,{})]})]})},Ot=d(xe)`
41
+ `,P={containerWidth:new f(343,580,726),labelWidth:new f(120,160,160),largeLabelWidth:new f(150,228,228),largeLabelPickerWidth:new f(100,180,180),paddingBottom:new f(u[3],u[2]),labelMarginLeftPicker:new f(u[3],u[4]),labelMarginRightPicker:new f(u[3],u[4]),labelMarginTopPicker:new f(u[2],u[2]),labeledFieldPaddingLeft:new f(u[0],u[0]),labeledFieldPaddingRight:new f(u[2],u[2]),labeledFieldPaddingTop:new f(u[2],u[2]),labeledFieldPaddingBottom:new f(u[2],u[2]),infoLabelPaddingRight:new f(u[0],u[3]),infoLabelMarginTop:new f(u[1],u[0])},V=(e,i)=>`${e}.${i}`,Ft=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:T,deleteFileStatusById:I,updateFileStatusById:x,onClickAddAccount:w})=>{const o=K(),{spendManagement:F,dateFormat:y,common:C}=H.getLocalizedStrings(),$=F.billPay.billDetails,Z=y.visual.defaultInput,re=F.zeniAccounts.expressPay,de=C.documents,q=P.largeLabelWidth.value(o),[g,X]=J.useState(!1),_=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(bt)===!1),k=r=>s.find(m=>m.id===r),L=r=>ze(k(r)),se=()=>{let r=[];return i?.paymentType?.method.includes("wire")===!0?r=s.filter(m=>!!m.bankRoutingNumberWireTransfer).map(m=>m.id):r=s.filter(m=>!!m.bankRoutingNumberAch).map(m=>m.id),r},ce=r=>{const m=k(r),j=H.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(fe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberAch??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankAccountNumber}),t.jsx(E,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):i?.paymentType?.method.includes("wire")===!0?i.paymentType?.method.includes("international")===!0?t.jsx(fe,{children:m?.piLabels.map(U=>t.jsxs(W,{children:[t.jsxs(z,{children:[U.name,j.paymentDetails.colon]}),t.jsx(E,{children:U.value})]},U.name))}):t.jsxs(fe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.wireDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberWireTransfer??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.wireDetails.accountNumber}),t.jsx(E,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):""};return t.jsxs(t.Fragment,{children:[t.jsx(kt,{children:$.paymentDetailsTitle}),t.jsxs(At,{windowSize:o,children:[t.jsx(st,{label:{label:$.withdrawFrom,width:q,style:{marginLeft:P.labelMarginLeftPicker.valuePx(o),marginTop:P.labelMarginTopPicker.valuePx(o),marginRight:P.labelMarginRightPicker.valuePx(o),width:P.largeLabelPickerWidth.value(o)}},style:{paddingTop:P.labeledFieldPaddingTop.valuePx(o),paddingBottom:P.labeledFieldPaddingBottom.valuePx(o),paddingLeft:P.labeledFieldPaddingLeft.valuePx(o),paddingRight:P.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:P.infoLabelPaddingRight.valuePx(o),marginTop:P.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:V(e,"withdrawFrom"),placeholder:ke($.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(r,m)=>pt(h,r,m),valueToSubLabels:(r,m)=>ct(h,r,m,!1),defaultValue:{selectedOption:i?.withdrawFrom?.id,allOptions:h.map(r=>({label:r.label,value:r.id}))},textAlignment:"right",registerOptions:{required:!0,validate:r=>r!=null&&!!r.selectedOption}}}),t.jsx(Y,{}),t.jsx(mt,{showAdditionalInfoLabel:!1,label:{label:$.amount,width:q},formattedTextField:{type:"number",name: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(Y,{}),t.jsx(ut,{label:{label:$.paymentMethod,width:P.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:V(e,"paymentMethod"),placeholder:$.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:_,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(Y,{}),t.jsx(ht,{label:{label:$.paymentDate,width:P.labelWidth.value(o)},style:{paddingBottom:P.paddingBottom.valuePx(o),width:"auto"},dateField:{name:V(e,"paymentDate"),placeholder:$.paymentDate,dateFormat:Z,autoComplete:"off",minDate:le(),registerOptions:{required:!0}}}),t.jsx(Y,{}),t.jsx(Ve,{label:{label:$.paymentTo,width:q},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:V(e,"paymentTo"),placeholder:$.selectAccount,getTooltipInfo:ce,menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:w,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:L},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?se():[]},registerOptions:{required:!0,validate:r=>r?.selectedOption!=null}}}),t.jsx(Y,{}),t.jsx(vt,{name:V(e,"receipt"),sizeLimit:yt,deleteFileStatusById:I,updateFileStatusById:x,filesEndPoint:l.filesEndPoint,authParams:l.authParams,label:{label:re.reciept,width:q},filemetadataPayload:{documentType:"id_document",purposeId:"business_verification_others",documentSide:"front"},file:T,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:g,updateFilesEntity:l.updateFilesEntity,onEditFileName:l.onEditFileName,onDeleteFile:l.onDeleteFile,onFileSizeError:r=>X(r),isOptional:!0,style:T!=null?{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}:void 0},V(e,"receipt")),T==null?t.jsx(Ot,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(Y,{})]})]})},kt=d(be)`
42
42
  color: ${e=>e.theme.colors.primary};
43
43
  margin-bottom: ${n.sp3};
44
- `,kt=d.div`
44
+ `,At=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=>T.containerWidth.valuePx(e.windowSize)};
52
- `,J=d.div`
51
+ width: ${e=>P.containerWidth.valuePx(e.windowSize)};
52
+ `,Y=d.div`
53
53
  display: flex;
54
54
  flex: 1;
55
55
  background-color: ${e=>e.theme.colors.grey3};
@@ -73,13 +73,13 @@ import{d as Re,J as Q,F as _,a9 as et,aR as Fe,cH as tt,V as t,bD as it,ad as at
73
73
  display: flex;
74
74
  justify-content: space-between;
75
75
  width: 100%;
76
- `,At=d(bt)`
76
+ `,Ot=d(xt)`
77
77
  padding: ${n.sp1} ${n.sp4};
78
78
  background: ${e=>e.theme.colors.grey4};
79
79
  border-radius: ${n.sp0} ${n.sp0} ${n.sp2} ${n.sp2};
80
80
  text-align: ${e=>e.windowSize==="small"?"initial":"right"};
81
81
  color: ${e=>e.isError?Ee.important:e.theme.colors.grey1};
82
- `,Lt={largeLabelWidth:new f(150,210,210)},ie=(e,i)=>`${e}.${i}`,Nt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=Q(),l=_.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,P=Lt.largeLabelWidth.value(p),I=U.useRef();U.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&I.current?.(Mt(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const b={vendorSearchAutoCompleteData:s,loadOptions:(y,C)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),I.current=C}},w=b?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(b?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||b?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="Not-Started"),o={defaultOptions:qe(a?.vendorId,a?.vendorName,s?.entityAutoCompleteView),selectedOption:a?.vendorId??a?.vendorName??""},F={valueContainer:y=>({...y,padding:`2px ${p==="small"?n.sp2:n.sp3} !important`,overflow:"unset"}),singleValue:y=>({...y,margin:0}),placeholder:y=>({...y,fontWeight:"normal"})};return t.jsxs(t.Fragment,{children:[t.jsx(Bt,{children:l.recipientSectionTitle}),t.jsx(Rt,{children:t.jsxs(Vt,{children:[t.jsx(rt,{label:{label:l.recipientName,width:P},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ie(e,"recipient"),placeholder:p==="small"?l.placeholders.recipientNameMobile:l.placeholders.recipientName,valueToId:y=>y,defaultValue:{...o},style:{width:"100%"},customStyleConfig:F,registerOptions:{required:!0,validate:y=>y!=null&&!!y.selectedOption},loadOptions:b?.loadOptions,isOptionsLoading:w,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ie(e,"recipient")),t.jsx(Ne,{}),t.jsx(Ve,{label:{label:l.recipientType,width:P},singleSelectField:{singleSelect:{name:ie(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:y=>i.find(C=>C.code===y)?.name??"",showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:a?.vendorType,allOptions:i.map(y=>y.code)},registerOptions:{required:!0,validate:y=>!!y.selectedOption}},isFunctional:!0}),t.jsx(Ne,{}),t.jsx(dt,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:P},text:{type:"email",name:ie(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??""}]:[]},Mt=e=>e?.vendor.map(i=>({label:i.name,value:i.zeniId,zeniId:i.zeniId}))??[],Bt=d(xe)`
82
+ `,Lt={largeLabelWidth:new f(150,210,210)},ie=(e,i)=>`${e}.${i}`,Nt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=K(),l=H.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,T=Lt.largeLabelWidth.value(p),I=J.useRef();J.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&I.current?.(Mt(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const x={vendorSearchAutoCompleteData:s,loadOptions:(y,C)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),I.current=C}},w=x?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(x?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||x?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="Not-Started"),o={defaultOptions:_e(a?.vendorId,a?.vendorName,s?.entityAutoCompleteView),selectedOption:a?.vendorId??a?.vendorName??""},F={valueContainer:y=>({...y,padding:`2px ${p==="small"?n.sp2:n.sp3} !important`,overflow:"unset"}),singleValue:y=>({...y,margin:0}),placeholder:y=>({...y,fontWeight:"normal"})};return t.jsxs(t.Fragment,{children:[t.jsx(Bt,{children:l.recipientSectionTitle}),t.jsx(Rt,{children:t.jsxs(Vt,{children:[t.jsx(rt,{label:{label:l.recipientName,width:T},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ie(e,"recipient"),placeholder:p==="small"?l.placeholders.recipientNameMobile:l.placeholders.recipientName,valueToId:y=>y,defaultValue:{...o},style:{width:"100%"},customStyleConfig:F,registerOptions:{required:!0,validate:y=>y!=null&&!!y.selectedOption},loadOptions:x?.loadOptions,isOptionsLoading:w,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ie(e,"recipient")),t.jsx(Ne,{}),t.jsx(Ve,{label:{label:l.recipientType,width:T},singleSelectField:{singleSelect:{name:ie(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:y=>i.find(C=>C.code===y)?.name??"",showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:a?.vendorType,allOptions:i.map(y=>y.code)},registerOptions:{required:!0,validate:y=>!!y.selectedOption}},isFunctional:!0}),t.jsx(Ne,{}),t.jsx(dt,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:T},text:{type:"email",name:ie(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},_e=(e,i,a)=>{if(e==null)return[];const s=a?.vendor?.find(h=>h.id===e);return s!=null||e!=null?[{label:s?.name??i??e??"",value:e??i??""}]:[]},Mt=e=>e?.vendor.map(i=>({label:i.name,value:i.zeniId,zeniId:i.zeniId}))??[],Bt=d(be)`
83
83
  color: ${e=>e.theme.colors.primary};
84
84
  margin-bottom: ${n.sp3};
85
85
  `,Rt=d.div`
@@ -98,11 +98,11 @@ import{d as Re,J as Q,F as _,a9 as et,aR as Fe,cH as tt,V as t,bD as it,ad as at
98
98
  background-color: ${e=>e.theme.colors.grey3};
99
99
  min-height: 1px;
100
100
  max-height: 1px;
101
- `,oe={containerWidth:new f(343,580,726),largeLabelWidth:new f(150,215,215),reviewContainerMarginLeft:new f(u[3],u[6]),reviewContainerMarginRight:new f(u[3],u[8])},zt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=Q(),p=oe.largeLabelWidth.value(h),{billPay:l}=_.getLocalizedStrings().spendManagement,{dateFormat:P,common:I}=_.getLocalizedStrings(),b=l.billDetails,w=i?.paymentType,o=P.visual.MMMDCommaYYYYformat,F={amount:i?.amount?.amount??0,currencyCode:I.currency.currencyCode,currencySymbol:I.currency.currencySymbol},y=ze(a.find(X=>X.id===i?.paymentToAccountId)),C=i?.paymentDate,$=ke(w?.method??"");return t.jsx(Yt,{children:t.jsxs(Jt,{windowSize:h,style:s,children:[t.jsxs(Xt,{children:[t.jsx(ae,{children:b.pay}),t.jsx(ae,{children:t.jsx(Ae,{amount:F,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ae,{children:b.to}),t.jsx(ae,{children:e})]}),t.jsxs(Ut,{windowSize:h,children:[t.jsx(te,{label:{label:b.withdrawFrom,width:p},style:{width:"auto",gap:u[3]},value:i?.withdrawFrom!=null?gt(i.withdrawFrom,h):I.strings.empty}),t.jsx(be,{}),t.jsx(te,{label:{label:b.paymentMethod,width:p},style:{width:"auto"},value:ke(w?.method??"")}),t.jsx(be,{}),C!=null?t.jsxs(t.Fragment,{children:[t.jsx(te,{label:{label:b.paymentDate,width:p},style:{width:"auto"},value:C.format(o),additionalInfoLabel:`${b.estimatedArrival}${_e(He(C.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${$.length>0?`${$} `:""}${b.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${b.deliveryTimeUnits})`}),t.jsx(be,{})]}):null,t.jsx(te,{label:{label:b.paymentTo,width:p},style:{width:"auto"},value:y??""})]}),t.jsx(Wt,{children:t.jsxs(_t,{windowSize:h,children:[t.jsx(Ht,{children:t.jsx(Et,{children:l.paymentDetails.total})}),t.jsx(qt,{children:t.jsx(Ae,{amount:wt(F.amount,F.currencyCode,F.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},Et=d.div``,Wt=d.div`
101
+ `,oe={containerWidth:new f(343,580,726),largeLabelWidth:new f(150,215,215),reviewContainerMarginLeft:new f(u[3],u[6]),reviewContainerMarginRight:new f(u[3],u[8])},zt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=K(),p=oe.largeLabelWidth.value(h),{billPay:l}=H.getLocalizedStrings().spendManagement,{dateFormat:T,common:I}=H.getLocalizedStrings(),x=l.billDetails,w=i?.paymentType,o=T.visual.MMMDCommaYYYYformat,F={amount:i?.amount?.amount??0,currencyCode:I.currency.currencyCode,currencySymbol:I.currency.currencySymbol},y=ze(a.find(Z=>Z.id===i?.paymentToAccountId)),C=i?.paymentDate,$=Ae(w?.method??"");return t.jsx(Ut,{children:t.jsxs(Yt,{windowSize:h,style:s,children:[t.jsxs(Zt,{children:[t.jsx(ae,{children:x.pay}),t.jsx(ae,{children:t.jsx(Oe,{amount:F,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ae,{children:x.to}),t.jsx(ae,{children:e})]}),t.jsxs(Jt,{windowSize:h,children:[t.jsx(te,{label:{label:x.withdrawFrom,width:p},style:{width:"auto",gap:u[3]},value:i?.withdrawFrom!=null?gt(i.withdrawFrom,h):I.strings.empty}),t.jsx(xe,{}),t.jsx(te,{label:{label:x.paymentMethod,width:p},style:{width:"auto"},value:Ae(w?.method??"")}),t.jsx(xe,{}),C!=null?t.jsxs(t.Fragment,{children:[t.jsx(te,{label:{label:x.paymentDate,width:p},style:{width:"auto"},value:C.format(o),additionalInfoLabel:`${x.estimatedArrival}${He(qe(C.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${$.length>0?`${$} `:""}${x.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${x.deliveryTimeUnits})`}),t.jsx(xe,{})]}):null,t.jsx(te,{label:{label:x.paymentTo,width:p},style:{width:"auto"},value:y??""})]}),t.jsx(Wt,{children:t.jsxs(Ht,{windowSize:h,children:[t.jsx(qt,{children:t.jsx(Et,{children:l.paymentDetails.total})}),t.jsx(_t,{children:t.jsx(Oe,{amount:wt(F.amount,F.currencyCode,F.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},Et=d.div``,Wt=d.div`
102
102
  display: flex;
103
103
  width: 100%;
104
104
  box-sizing: border-box;
105
- `,_t=d.div`
105
+ `,Ht=d.div`
106
106
  width: 100%;
107
107
  padding: ${n.sp3};
108
108
  display: flex;
@@ -113,29 +113,29 @@ import{d as Re,J as Q,F as _,a9 as et,aR as Fe,cH as tt,V as t,bD as it,ad as at
113
113
  border-radius: ${n.sp2};
114
114
  color: ${e=>e.theme.colors.hero};
115
115
  margin-bottom: ${n.sp2};
116
- `,Ht=d(We)`
116
+ `,qt=d(We)`
117
117
  gap: ${n.sp1};
118
118
  display: flex;
119
119
  width: 100%;
120
120
  color: ${e=>e.theme.colors.primary};
121
121
  align-items: center;
122
- `,qt=d(We)`
122
+ `,_t=d(We)`
123
123
  display: flex;
124
124
  width: calc(100% - 176px);
125
125
  justify-content: flex-end;
126
126
  color: ${e=>e.theme.colors.primary};
127
- `,Yt=d.div`
127
+ `,Ut=d.div`
128
128
  display: flex;
129
129
  flex-direction: column;
130
130
  width: 100%;
131
131
  height: 100%;
132
- `,Jt=d.div`
132
+ `,Yt=d.div`
133
133
  display: flex;
134
134
  flex-grow: 1;
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
- `,Ut=d.div`
138
+ `,Jt=d.div`
139
139
  display: flex;
140
140
  flex-direction: column;
141
141
  background-color: ${e=>e.theme.colors.grey5};
@@ -145,19 +145,19 @@ import{d as Re,J as Q,F as _,a9 as et,aR as Fe,cH as tt,V as t,bD as it,ad as at
145
145
  margin-bottom: ${n.sp3};
146
146
  margin-top: ${n.sp3};
147
147
  width: ${e=>oe.containerWidth.valuePx(e.windowSize)};
148
- `,be=d.div`
148
+ `,xe=d.div`
149
149
  display: flex;
150
150
  flex: 1;
151
151
  background-color: ${e=>e.theme.colors.grey3};
152
152
  min-height: 1px;
153
153
  max-height: 1px;
154
- `,Xt=d.div`
154
+ `,Zt=d.div`
155
155
  display: flex;
156
- `,ae=d(xe)`
156
+ `,ae=d(be)`
157
157
  display: flex;
158
158
  color: ${e=>e.theme.colors.primary};
159
159
  margin-right: ${n.sp1};
160
- `,Me="expressPayPage",Zt=e=>`${e}_form`,A="recipientDetails",D="paymentDetails",ne={buttonWidth:new f(160,140),largeButtonWidth:new f(166,166)},mi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:P,onBackClick:I,saveVendorDetailLocalData:b,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:F,initializeVendorAddress:y,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:H,expressPayLocalData:g,vendorTypeList:Z,allPaymentMethods:q,paymentToOptions:O,withdrawFromList:L,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:Y}=e,[v,G]=U.useState(0),Ye=Re(),K=Q(),{common:we,spendManagement:Je}=_.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=Je.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=H,N=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,Ce=Object.assign({},Se??je),Ue=N?.vendorName,$e=L.find(c=>c.id===s),ee=et({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(Z,L,O,$e,q,N,g,j,C?.entityAutoCompleteView),values:Be(Z,L,O,$e,q,N,g,j,C?.entityAutoCompleteView)}),Ie=Fe(Ce.saveStatus?.fetchState),Te=Fe(m);U.useEffect(()=>{const c=ee.watch((S,{name:x})=>{x!=null&&S!=null&&tt(()=>Xe(x,S))});return()=>{c.unsubscribe()}}),U.useEffect(()=>{Ie==="In-Progress"&&Y==="Completed"&&(v===0?(G(1),o?.(g?.vendorId)):v===1&&G(2)),Te==="In-Progress"&&m==="Completed"&&I(g?.vendorId)},[Ie,Y,v,o,g?.vendorId,Te,m,I]);const Xe=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const x=S[A].recipient.selectedOption,k=C?.entityAutoCompleteView.vendor.find(M=>M.zeniId===x);Ze(S),y(),N?.vendorId!==x&&k!=null&&(l?.(x),he(S,!1,O,x))}else if(c.includes("recipient"))ue(S);else{const x=S[D].paymentMethod?.method,k=g?.paymentType?.method,M=x!=null&&k!=null&&(x.toLowerCase().includes("ach")&&k.toLowerCase().includes("wire")||x.toLowerCase().includes("wire")&&k.toLowerCase().includes("ach"));he(S,M,O,g?.vendorId)}},Ze=c=>{const S=c[A].recipient.selectedOption,x=C?.entityAutoCompleteView.vendor.find(k=>k.id===S)!=null;if(S!=null&&x===!0){P?.(S),he(c,!1,O,S);return}ue(c,!0)},ue=(c,S)=>{const x=N?.vendorId,k=C?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===x)!=null,M=Kt(c,k===!0?x:void 0,N,S);b?.(M,x)},he=(c,S,x,k)=>{const M=(()=>{let B=[];return c[D].paymentMethod?.method.includes("wire")===!0?B=x.filter(R=>!!R.bankRoutingNumberWireTransfer).map(R=>R.id):B=x.filter(R=>!!R.bankRoutingNumberAch).map(R=>R.id),B})(),ye=x.find(B=>B.id===c[D]?.paymentTo?.selectedOption),Ge={vendorId:k,amount:{amount:c[D].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[D].paymentDate?_e(c[D].paymentDate.toString()):le(),paymentType:c[D]?.paymentMethod!=null?c[D]?.paymentMethod:void 0,paymentToAccountId:S?M[0]:ye?.id,withdrawFrom:L.find(B=>B.id===c[D]?.withdrawFrom?.selectedOption),receiptFileId:c[D].receipt?.fileId};w?.(Ge)},Pe=ee.handleSubmit(()=>{if(v===0||v===1){a.trackExpressPayNextClick(v===0?"Recipient Details":"Payment Details");const c=ee.getValues();ue(c),p(g?.vendorId)}else a.trackExpressPayScheduleClick(),F()}),Ke=()=>{v===2?G(1):I(g?.vendorId)},Qe=()=>{v===0?I(g?.vendorId):G(v===1?0:1)},De={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?O.find(c=>c.id===g?.paymentToAccountId):void 0,paymentDate:g?.paymentDate,paymentType:g?.paymentType??q?.[0],recipientAmount:g?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(it,{title:me.pageTitle,onBackClick:Qe,backgroundColor:Ye.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Qt,{windowSize:K,children:[t.jsx(jt,{pageIndex:v}),t.jsx(at,{...ee,children:t.jsx("form",{id:Me,onSubmit:Pe,children:v===0?t.jsx(Nt,{sectionId:A,vendorTypeList:Z,formLocalData:N,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$}):v===1?t.jsx(Ft,{sectionId:D,paymentDetails:De,paymentToOptions:O,allPaymentMethods:q,withdrawFromList:L,internationalVerificationStatus:se,fileProps:{...i,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de},deleteFileStatusById:ce,updateFileStatusById:r,receiptFile:j,onClickAddAccount:()=>{const c=De?.paymentType;c!=null&&h(c)}}):v===2?t.jsx(zt,{reviewDetails:g,paymentToOptions:O,vendorName:Ue}):null})})]}),t.jsx(nt,{formId:Zt(Me),style:{width:"100%"},primaryBtn:{label:v===2?le().isSame(g?.paymentDate,"date")?me.sendMoney:me.schedulePayment:pe.next,isLoading:v===0||v===1?Ce.saveStatus?.fetchState==="In-Progress":m==="In-Progress",style:{width:v===2?ne.largeButtonWidth.value(K):ne.buttonWidth.value(K),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Pe()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?ne.largeButtonWidth.value(K):ne.buttonWidth.value(K),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Ke}})]})},Be=(e,i,a,s,h,p,l,P,I)=>{const b=(()=>{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{[A]:{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}},[D]:{paymentMethod:l?.paymentType??h?.[0],withdrawFrom:{selectedOption:l?.withdrawFrom?.id??s?.id??i[0]?.id,allOptions:i.map(w=>({label:w.label,value:w.id}))},amount:l?.amount.amount??0,paymentDate:l?.paymentDate?.toDate()??He(le().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?b:[],selectedOption:l?.paymentToAccountId??b[0]},receipt:P}}};function Kt(e,i,a,s){const h=e[A].recipient.defaultOptions.find(p=>p.value===e[A].recipient.selectedOption);return{vendorType:s===!0?void 0:e[A].recipientType.selectedOption,vendorId:i,vendorName:h?.label??a?.vendorName,contacts:s===!0?[]:[{fullName:"",email:e[A].recipientEmail,phone:""}],bankAccountIds:s===!0?[]:a?.bankAccountIds??[],paymentInstrumentIds:s===!0?[]:a?.paymentInstrumentIds??[],vendorOwner:s===!0?void 0:a?.vendorOwner,isVendor1099:a?.isVendor1099,documentIds:a?.documentIds??[],fileIdsToBeDeleted:a?.fileIdsToBeDeleted??[],countryCode:s===!0?void 0:a?.countryCode,currencyCode:a?.currencyCode,currencySymbol:s===!0?void 0:a?.currencySymbol,deleteFileStatusById:a?.deleteFileStatusById??{},updateFileStatusById:a?.updateFileStatusById??{},recommendedCategory:a?.recommendedCategory,recommendedClass:a?.recommendedClass,isCategoryUpdateSelected:a?.isCategoryUpdateSelected??!1,isClassUpdateSelected:a?.isClassUpdateSelected??!1,isCategoryRecommendationPrefilled:a?.isCategoryRecommendationPrefilled??!0,isClassRecommendationPrefilled:a?.isClassRecommendationPrefilled??!0}}const Qt=d.div`
160
+ `,Me="expressPayPage",Xt=e=>`${e}_form`,O="recipientDetails",D="paymentDetails",ne={buttonWidth:new f(160,140),largeButtonWidth:new f(166,166)},mi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:T,onBackClick:I,saveVendorDetailLocalData:x,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:F,initializeVendorAddress:y,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$,onEditFileName:Z,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:q,expressPayLocalData:g,vendorTypeList:X,allPaymentMethods:_,paymentToOptions:k,withdrawFromList:L,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:U}=e,[v,Q]=J.useState(0),Ue=Re(),G=K(),{common:we,spendManagement:Ye}=H.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=Ye.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=q,N=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,Ce=Object.assign({},Se??je),Je=N?.vendorName,$e=L.find(c=>c.id===s),ee=et({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(X,L,k,$e,_,N,g,j,C?.entityAutoCompleteView),values:Be(X,L,k,$e,_,N,g,j,C?.entityAutoCompleteView)}),Ie=Fe(Ce.saveStatus?.fetchState),Pe=Fe(m);J.useEffect(()=>{const c=ee.watch((S,{name:b})=>{b!=null&&S!=null&&tt(()=>Ze(b,S))});return()=>{c.unsubscribe()}}),J.useEffect(()=>{Ie==="In-Progress"&&U==="Completed"&&(v===0?(Q(1),o?.(g?.vendorId)):v===1&&Q(2)),Pe==="In-Progress"&&m==="Completed"&&I(g?.vendorId)},[Ie,U,v,o,g?.vendorId,Pe,m,I]);const Ze=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[O].recipient.selectedOption,A=C?.entityAutoCompleteView.vendor.find(M=>M.zeniId===b);Xe(S),y(),N?.vendorId!==b&&A!=null&&(l?.(b),he(S,!1,k,b))}else if(c.includes("recipient"))ue(S);else{const b=S[D].paymentMethod?.method,A=g?.paymentType?.method,M=b!=null&&A!=null&&(b.toLowerCase().includes("ach")&&A.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&A.toLowerCase().includes("ach"));he(S,M,k,g?.vendorId)}},Xe=c=>{const S=c[O].recipient.selectedOption,b=C?.entityAutoCompleteView.vendor.find(A=>A.id===S)!=null;if(S!=null&&b===!0){T?.(S),he(c,!1,k,S);return}ue(c,!0)},ue=(c,S)=>{const b=N?.vendorId,A=C?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,M=Gt(c,A===!0?b:void 0,N,S);x?.(M,b)},he=(c,S,b,A)=>{const M=(()=>{let B=[];return c[D].paymentMethod?.method.includes("wire")===!0?B=b.filter(R=>!!R.bankRoutingNumberWireTransfer).map(R=>R.id):B=b.filter(R=>!!R.bankRoutingNumberAch).map(R=>R.id),B})(),ye=b.find(B=>B.id===c[D]?.paymentTo?.selectedOption),Qe={vendorId:A,amount:{amount:c[D].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[D].paymentDate?He(c[D].paymentDate.toString()):le(),paymentType:c[D]?.paymentMethod!=null?c[D]?.paymentMethod:void 0,paymentToAccountId:S?M[0]:ye?.id,withdrawFrom:L.find(B=>B.id===c[D]?.withdrawFrom?.selectedOption),receiptFileId:c[D].receipt?.fileId};w?.(Qe)},Te=ee.handleSubmit(()=>{if(v===0||v===1){a.trackExpressPayNextClick(v===0?"Recipient Details":"Payment Details");const c=ee.getValues();ue(c),p(g?.vendorId)}else a.trackExpressPayScheduleClick(),F()}),Ge=()=>{v===2?Q(1):I(g?.vendorId)},Ke=()=>{v===0?I(g?.vendorId):Q(v===1?0:1)},De={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?k.find(c=>c.id===g?.paymentToAccountId):void 0,paymentDate:g?.paymentDate,paymentType:g?.paymentType??_?.[0],recipientAmount:g?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(it,{title:me.pageTitle,onBackClick:Ke,backgroundColor:Ue.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Kt,{windowSize:G,children:[t.jsx(jt,{pageIndex:v}),t.jsx(at,{...ee,children:t.jsx("form",{id:Me,onSubmit:Te,children:v===0?t.jsx(Nt,{sectionId:O,vendorTypeList:X,formLocalData:N,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$}):v===1?t.jsx(Ft,{sectionId:D,paymentDetails:De,paymentToOptions:k,allPaymentMethods:_,withdrawFromList:L,internationalVerificationStatus:se,fileProps:{...i,onEditFileName:Z,onDeleteFile:re,updateFilesEntity:de},deleteFileStatusById:ce,updateFileStatusById:r,receiptFile:j,onClickAddAccount:()=>{const c=De?.paymentType;c!=null&&h(c)}}):v===2?t.jsx(zt,{reviewDetails:g,paymentToOptions:k,vendorName:Je}):null})})]}),t.jsx(nt,{formId:Xt(Me),style:{width:"100%"},primaryBtn:{label:v===2?le().isSame(g?.paymentDate,"date")?me.sendMoney:me.schedulePayment:pe.next,isLoading:v===0||v===1?Ce.saveStatus?.fetchState==="In-Progress":m==="In-Progress",style:{width:v===2?ne.largeButtonWidth.value(G):ne.buttonWidth.value(G),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Te()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?ne.largeButtonWidth.value(G):ne.buttonWidth.value(G),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Ge}})]})},Be=(e,i,a,s,h,p,l,T,I)=>{const x=(()=>{let w=[];return l?.paymentType?.method.includes("wire")===!0?w=a.filter(o=>!!o.bankRoutingNumberWireTransfer).map(o=>o.id):w=a.filter(o=>!!o.bankRoutingNumberAch).map(o=>o.id),w})();return{[O]:{recipient:{defaultOptions:_e(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}},[D]:{paymentMethod:l?.paymentType??h?.[0],withdrawFrom:{selectedOption:l?.withdrawFrom?.id??s?.id??i[0]?.id,allOptions:i.map(w=>({label:w.label,value:w.id}))},amount:l?.amount.amount??0,paymentDate:l?.paymentDate?.toDate()??qe(le().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?x:[],selectedOption:l?.paymentToAccountId??x[0]},receipt:T}}};function Gt(e,i,a,s){const h=e[O].recipient.defaultOptions.find(p=>p.value===e[O].recipient.selectedOption);return{vendorType:s===!0?void 0:e[O].recipientType.selectedOption,vendorId:i,vendorName:h?.label??a?.vendorName,contacts:s===!0?[]:[{fullName:"",email:e[O].recipientEmail,phone:""}],bankAccountIds:s===!0?[]:a?.bankAccountIds??[],paymentInstrumentIds:s===!0?[]:a?.paymentInstrumentIds??[],vendorOwner:s===!0?void 0:a?.vendorOwner,isVendor1099:a?.isVendor1099,documentIds:a?.documentIds??[],fileIdsToBeDeleted:a?.fileIdsToBeDeleted??[],countryCode:s===!0?void 0:a?.countryCode,currencyCode:a?.currencyCode,currencySymbol:s===!0?void 0:a?.currencySymbol,deleteFileStatusById:a?.deleteFileStatusById??{},updateFileStatusById:a?.updateFileStatusById??{},recommendedCategory:a?.recommendedCategory,recommendedClass:a?.recommendedClass,isCategoryUpdateSelected:a?.isCategoryUpdateSelected??!1,isClassUpdateSelected:a?.isClassUpdateSelected??!1,isCategoryRecommendationPrefilled:a?.isCategoryRecommendationPrefilled??!0,isClassRecommendationPrefilled:a?.isClassRecommendationPrefilled??!0}}const Kt=d.div`
161
161
  display: flex;
162
162
  flex-wrap: wrap;
163
163
  height: 100%;
@@ -165,4 +165,4 @@ import{d as Re,J as Q,F as _,a9 as et,aR as Fe,cH as tt,V as t,bD as it,ad as at
165
165
  align-items: center;
166
166
  background-color: ${e=>e.theme.colors.grey4};
167
167
  margin-top: ${e=>e.windowSize==="small"?n.sp3:0};
168
- `;export{mi as default,Zt as formUniqueName};
168
+ `;export{mi as default,Xt as formUniqueName};
@@ -1,4 +1,4 @@
1
- import{d as _,J as y,F as w,aW as n,p as r,V as i,cr as v,y as p,cs as k,ct as x,u as g}from"./index-BIYLqgct.js";import{n as d}from"./mui-rLvQ8A4a.js";import"./sentry-DhNwX3jk.js";import"./liveblocks-DXGUxn7J.js";import"./core-DQ8U4CJb.js";import"./recharts-BYppTjSs.js";import"./zeni-epic-state-DwkN4IvA.js";import"./lottie-C1yptpVV.js";import"./analytics-DkApCpAh.js";import"./lexical-CvUIM9vD.js";import"./utils-BdIPH7k8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="3dcad1fc-16d3-406e-825e-ff193bf3a32d",e._sentryDebugIdIdentifier="sentry-dbid-3dcad1fc-16d3-406e-825e-ff193bf3a32d")}catch{}})();const t={popupWidth:new p(200,468,468,468),buttonWidth:new p(140,160,160,160),popupContainerLeft:new p(g[0],g[0],255),popupContainerWidth:new p(100,100,85)},z=d.div`
1
+ import{e as _,J as y,F as w,aW as n,p as r,V as i,cq as v,y as p,cr as k,cs as x,u as g}from"./index-GSKpJ8ET.js";import{n as d}from"./mui-DenpH-hx.js";import"./sentry-BZBky1_g.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./recharts-9NtTDQfo.js";import"./zeni-epic-state-BKgIzPpM.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="7019351b-3b5b-4a1d-9602-3a1f4157e561",e._sentryDebugIdIdentifier="sentry-dbid-7019351b-3b5b-4a1d-9602-3a1f4157e561")}catch{}})();const t={popupWidth:new p(200,468,468,468),buttonWidth:new p(140,160,160,160),popupContainerLeft:new p(g[0],g[0],255),popupContainerWidth:new p(100,100,85)},z=d.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -8,4 +8,4 @@ import{d as _,J as y,F as w,aW as n,p as r,V as i,cr as v,y as p,cs as k,ct as x
8
8
  `,W=d.img`
9
9
  width: 100%;
10
10
  height: 100%;
11
- `,C={mobile:{home:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-mobile",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-mobile",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-mobile",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-mobile",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-mobile",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-mobile",users_and_roles:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-mobile",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_settings:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_cfo:"",command_center:"",task_checklist:"",transaction_categorization:"",je_schedules:"",missing_receipts:"",flux_analysis:"",reconciliation:""},normal:{home:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-normal",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-normal",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-normal",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-normal",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-normal",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-normal",users_and_roles:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-normal",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_settings:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_cfo:"",command_center:"",task_checklist:"",transaction_categorization:"",je_schedules:"",missing_receipts:"",flux_analysis:"",reconciliation:""}};function V({menuItem:e,onDemoClick:a,onGoBack:m}){const s=_(),o=y(),u=`${C[o==="small"?"mobile":"normal"][e]}-${s.mode}.png`,{featurePreview:c}=w.getLocalizedStrings(),l=c.popups[e],h=s.mode==="light"?new n(r.backgroundGradient1Light):new n(r.backgroundGradient1Dark),b=s.mode==="light"?new n(r.backgroundGradient2Light):new n(r.backgroundGradient2Dark),f={onOkClick:()=>{a()},onCancelClick:()=>{m()}};return i.jsxs(z,{children:[i.jsx(W,{src:u,alt:"feature-preview",loading:"lazy"}),i.jsx(v,{titleComponent:i.jsx(x,{children:l.title}),descriptionComponent:i.jsx(k,{children:l.text}),primaryButtonText:c.scheduleDemo,secondaryButtonText:c.goBack,action:f,primaryButtonWidth:t.buttonWidth.value(o),secondaryButtonWidth:t.buttonWidth.value(o),style:{background:`radial-gradient(50% 50% at 50% 50%, ${h} 0%, ${b} 100%)`,backdropFilter:"blur(2px)",width:t.popupContainerWidth.valuePercentage(o),left:t.popupContainerLeft.value(o)},containerStyle:{border:`1px solid ${s.colors.grey1}`,minWidth:t.popupWidth.valuePx(o)}})]})}export{V as default};
11
+ `,C={mobile:{home:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-mobile",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-mobile",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-mobile",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-mobile",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-mobile",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-mobile",users_and_roles:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-mobile",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_settings:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_cfo:"",command_center:"",task_checklist:"",transaction_categorization:"",je_schedules:"",missing_receipts:"",flux_analysis:"",reconciliation:""},normal:{home:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-normal",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-normal",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-normal",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-normal",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-normal",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-normal",users_and_roles:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-normal",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_settings:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_cfo:"",command_center:"",task_checklist:"",transaction_categorization:"",je_schedules:"",missing_receipts:"",flux_analysis:"",reconciliation:""}};function V({menuItem:e,onDemoClick:a,onGoBack:m}){const s=_(),o=y(),u=`${C[o==="small"?"mobile":"normal"][e]}-${s.mode}.png`,{featurePreview:c}=w.getLocalizedStrings(),l=c.popups[e],b=s.mode==="light"?new n(r.backgroundGradient1Light):new n(r.backgroundGradient1Dark),h=s.mode==="light"?new n(r.backgroundGradient2Light):new n(r.backgroundGradient2Dark),f={onOkClick:()=>{a()},onCancelClick:()=>{m()}};return i.jsxs(z,{children:[i.jsx(W,{src:u,alt:"feature-preview",loading:"lazy"}),i.jsx(v,{titleComponent:i.jsx(x,{children:l.title}),descriptionComponent:i.jsx(k,{children:l.text}),primaryButtonText:c.scheduleDemo,secondaryButtonText:c.goBack,action:f,primaryButtonWidth:t.buttonWidth.value(o),secondaryButtonWidth:t.buttonWidth.value(o),style:{background:`radial-gradient(50% 50% at 50% 50%, ${b} 0%, ${h} 100%)`,backdropFilter:"blur(2px)",width:t.popupContainerWidth.valuePercentage(o),left:t.popupContainerLeft.value(o)},containerStyle:{border:`1px solid ${s.colors.grey1}`,minWidth:t.popupWidth.valuePx(o)}})]})}export{V as default};
@@ -1,4 +1,4 @@
1
- import{J as H,V as l,F as Y,cL as _,ex as G,d as ee,cQ as Q,y as L,gk as Z,o as i,ab as M,ep as ce,aF as le,gc as pe,gd as ue,i as he,p as u,u as g,gI as ge,d0 as be,eG as ye,ap as ve,bI as we,b as W,dn as $e,bJ as fe,bH as ke}from"./index-BIYLqgct.js";import{n as d}from"./mui-rLvQ8A4a.js";import{a as V}from"./sentry-DhNwX3jk.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="5f6f14a1-0ef9-4554-ac17-ac08ab0a2b5c",e._sentryDebugIdIdentifier="sentry-dbid-5f6f14a1-0ef9-4554-ac17-ac08ab0a2b5c")}catch{}})();const v={width:new L(343,580,726),height:new L(g[6],g[6]),controlHeight:new L(g[6],g[6]),paddingLeftRight:new L(g[3],g[4]),paddingTop:new L(g[3],g[3]),paddingBottom:new L(g[3],g[2]),labelMarginRight:new L(g[3],g[4])};function je({isDisabled:e,label:s,firstText:t,secondText:p,style:$,isFieldError:k}){const f=H(),{formState:{errors:j}}=_(),m=G(j,t.name),T=G(j,p.name),r=ee();return l.jsxs(Te,{size:f,style:$,isDisabled:e!=null,isErrorFirstText:m,isErrorSecondText:T,"data-testid":M("labeled-multi-text-field",t.name),children:[l.jsx(Q,{isDisabled:e,label:s.label,style:{marginRight:v.labelMarginRight.value(f),width:s.width??"auto",color:r.colors.champion}}),l.jsxs(Oe,{labelWidth:s.width,children:[l.jsxs(ie,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||m&&t.additionalErrorLabel?l.jsx(oe,{isError:m,children:m?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Ie,{children:[l.jsx(se,{}),l.jsx(Le,{}),l.jsx(se,{})]}),l.jsxs(ie,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(oe,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const Te=d.div`
1
+ import{J as H,V as l,F as Y,cT as _,c$ as G,e as ee,cZ as Q,y as L,gh as Z,o as i,aQ as M,ep as ce,aE as le,g9 as pe,ga as ue,i as he,p as u,u as g,gF as ge,c_ as be,d0 as ye,ao as ve,bI as we,b as W,dn as $e,bJ as fe,bH as ke}from"./index-GSKpJ8ET.js";import{n as d}from"./mui-DenpH-hx.js";import{a as V}from"./sentry-BZBky1_g.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="8e0b77fa-f878-47b1-881f-a88e14d0e00b",e._sentryDebugIdIdentifier="sentry-dbid-8e0b77fa-f878-47b1-881f-a88e14d0e00b")}catch{}})();const v={width:new L(343,580,726),height:new L(g[6],g[6]),controlHeight:new L(g[6],g[6]),paddingLeftRight:new L(g[3],g[4]),paddingTop:new L(g[3],g[3]),paddingBottom:new L(g[3],g[2]),labelMarginRight:new L(g[3],g[4])};function je({isDisabled:e,label:s,firstText:t,secondText:p,style:$,isFieldError:k}){const f=H(),{formState:{errors:j}}=_(),m=G(j,t.name),T=G(j,p.name),r=ee();return l.jsxs(Te,{size:f,style:$,isDisabled:e!=null,isErrorFirstText:m,isErrorSecondText:T,"data-testid":M("labeled-multi-text-field",t.name),children:[l.jsx(Q,{isDisabled:e,label:s.label,style:{marginRight:v.labelMarginRight.value(f),width:s.width??"auto",color:r.colors.champion}}),l.jsxs(Oe,{labelWidth:s.width,children:[l.jsxs(ie,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||m&&t.additionalErrorLabel?l.jsx(oe,{isError:m,children:m?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Ie,{children:[l.jsx(se,{}),l.jsx(Le,{}),l.jsx(se,{})]}),l.jsxs(ie,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(oe,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const Te=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{d as Ke,J,a9 as _e,az as Ee,cH as Je,V as t,bD as Qe,ad as Xe,cp as Ce,o,i as ye,F as ue,bP as Ye,ab as T,cn as Ze,b4 as et,dq as tt,cv as lt,aa as ot,T as it,d1 as nt,bG as De,aU as at,y as N,bQ as se,u as $,co as Ie,aj as we,cB as rt,cE as st,cL as dt,dl as je,d3 as me,bU as _,eB as ke,ap as ct,io as ht,am as mt,bi as gt,ik as pt,ip as We,cj as ut,bu as wt,p as Oe,iq as bt}from"./index-BIYLqgct.js";import{a as C}from"./sentry-DhNwX3jk.js";import{n,c as Se}from"./mui-rLvQ8A4a.js";import{c4 as xt,G7 as vt}from"./zeni-epic-state-DwkN4IvA.js";import"./liveblocks-DXGUxn7J.js";import"./core-DQ8U4CJb.js";import"./recharts-BYppTjSs.js";import"./lottie-C1yptpVV.js";import"./analytics-DkApCpAh.js";import"./lexical-CvUIM9vD.js";import"./utils-BdIPH7k8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="f13f0679-769f-4262-8785-92fd274eea55",e._sentryDebugIdIdentifier="sentry-dbid-f13f0679-769f-4262-8785-92fd274eea55")}catch{}})();const Re="recommendedFirst",Ne="recommendedSecond",H="currentSelection",ve="originalVendor",ge="requested",de=(e,l)=>`${e}.${l}`,ce=(e,l,a)=>a!=null?`${e}.${l}.${a}`:`${e}.${l}`;function ft(e){const l=J(),{button:{label:a,onClick:i},search:{isOpen:g,placeHolder:m,searchText:w,onTextChange:y}}=e;return t.jsxs(yt,{children:[t.jsx(jt,{isSearchOpen:g&&l==="small",windowsize:l,children:l!=="small"?t.jsx(Ce,{style:{position:"absolute",left:"unset",right:o.sp0},placeholder:m,searchText:w,onSearchTextChanged:y}):null}),l==="small"?t.jsx(Ce,{style:{position:"absolute",left:"5px",right:"unset",top:"44px",width:"98%"},placeholder:m,searchText:w,onSearchTextChanged:y,keepSearchBoxOpen:!0}):null,l==="small"?t.jsx(St,{style:{marginLeft:o.sp5}}):t.jsx(ye,{variant:"primary",onClick:i,label:a,size:"small",style:{marginLeft:o.sp3}})]})}const yt=n.div`
1
+ import{e as Be,J as Y,a9 as _e,ay as Ee,cG as Ye,V as t,bD as Qe,ac as Je,co as Ce,o,i as ye,F as ue,bP as Xe,aQ as P,cn as Ze,b4 as et,dq as tt,cu as lt,aa as ot,T as it,d1 as nt,bG as We,aU as at,y as N,bQ as se,u as $,dv as Ie,ai as we,cA as rt,cD as st,cT as dt,dl as je,d3 as me,bU as _,eA as ke,ao as ct,il as ht,al as mt,bi as gt,ii as pt,im as De,cj as ut,bu as wt,p as Oe,io as bt}from"./index-GSKpJ8ET.js";import{a as C}from"./sentry-BZBky1_g.js";import{n,c as Se}from"./mui-DenpH-hx.js";import{c4 as xt,G1 as vt}from"./zeni-epic-state-BKgIzPpM.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./recharts-9NtTDQfo.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="efbb3be7-b30b-42d6-ab9f-4ff7e0c938da",e._sentryDebugIdIdentifier="sentry-dbid-efbb3be7-b30b-42d6-ab9f-4ff7e0c938da")}catch{}})();const Re="recommendedFirst",Ne="recommendedSecond",H="currentSelection",ve="originalVendor",ge="requested",de=(e,l)=>`${e}.${l}`,ce=(e,l,a)=>a!=null?`${e}.${l}.${a}`:`${e}.${l}`;function ft(e){const l=Y(),{button:{label:a,onClick:i},search:{isOpen:g,placeHolder:m,searchText:w,onTextChange:y}}=e;return t.jsxs(yt,{children:[t.jsx(jt,{isSearchOpen:g&&l==="small",windowsize:l,children:l!=="small"?t.jsx(Ce,{style:{position:"absolute",left:"unset",right:o.sp0},placeholder:m,searchText:w,onSearchTextChanged:y}):null}),l==="small"?t.jsx(Ce,{style:{position:"absolute",left:"5px",right:"unset",top:"44px",width:"98%"},placeholder:m,searchText:w,onSearchTextChanged:y,keepSearchBoxOpen:!0}):null,l==="small"?t.jsx(St,{style:{marginLeft:o.sp5}}):t.jsx(ye,{variant:"primary",onClick:i,label:a,size:"small",style:{marginLeft:o.sp3}})]})}const yt=n.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  padding-right: ${o.sp0};
@@ -20,7 +20,7 @@ import{d as Ke,J,a9 as _e,az as Ee,cH as Je,V as t,bD as Qe,ad as Xe,cp as Ce,o,
20
20
  color: ${e=>e.theme.colors.brandColorJade};
21
21
  width: ${o.sp3};
22
22
  height: ${o.sp3};
23
- `,{headers:be,strings:Ct}=ue.getLocalizedStrings().common,It={key:"tenants",value:be.tenants,sortOrder:"ascending",width:new N(15,15)},kt={key:"requestedVendor",value:be.requestedVendor,sortOrder:"ascending",width:new N(28,28)},Rt={key:"originalVendor",value:be.originalVendor,sortOrder:"ascending",width:new N(15,15)},Nt={key:"recommended",value:be.recommended,sortOrder:"ascending",width:new N(30,30),icon:t.jsx($t,{children:t.jsx(Mt,{})})},Vt={key:"action",value:Ct.empty,sortOrder:"ascending",width:new N(12,12)},V=[It,Rt,Nt,kt,Vt],fe={sortKey:"tenants",sortOrder:"ascending"},Gt=88,Fe=53,Lt=1,zt=["action"],Ve=e=>xt(e,zt),He=({sortConfig:e,isDisabled:l,onColumnSortConfigChanged:a})=>{const i=J(),[g,m]=C.useState(V);C.useEffect(()=>{const c=[...g];for(const h of c)h.key===e.sortKey?h.sortOrder=e.sortOrder:h.sortOrder="ascending";m(c)},[e.sortKey,e.sortOrder]);const w=(c,h)=>{let j=h;e.sortKey===c&&(j=h==="ascending"?"descending":"ascending"),a?.(c,j)},y=c=>{Ve(c.key)==null&&w(vt(c.key),c.sortOrder)};return t.jsx(At,{windowSize:i,children:g.map(c=>{const h=l!=null||Ve(c.key)!=null;return t.jsxs(Pt,{sortDataValue:e.sortKey,actualDataValue:c.key,wrapperWidth:c.width,isSortDisabled:h,windowSize:i,children:[t.jsxs(Ft,{onClick:()=>h?null:y(c),isSortDisabled:h,"data-testid":T("global-review-list-header-name-wrapper",c.value),children:[c.icon,t.jsx(Ht,{children:c.value}),h?null:t.jsx(Dt,{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(Tt,{onClick:()=>{h||w(fe.sortKey,fe.sortOrder)},"data-testid":T("global-review-list-header-close-icon",c.value)})})]},c.key)})})},At=n.div`
23
+ `,{headers:be,strings:Ct}=ue.getLocalizedStrings().common,It={key:"tenants",value:be.tenants,sortOrder:"ascending",width:new N(15,15)},kt={key:"requestedVendor",value:be.requestedVendor,sortOrder:"ascending",width:new N(28,28)},Rt={key:"originalVendor",value:be.originalVendor,sortOrder:"ascending",width:new N(15,15)},Nt={key:"recommended",value:be.recommended,sortOrder:"ascending",width:new N(30,30),icon:t.jsx($t,{children:t.jsx(Mt,{})})},Vt={key:"action",value:Ct.empty,sortOrder:"ascending",width:new N(12,12)},V=[It,Rt,Nt,kt,Vt],fe={sortKey:"tenants",sortOrder:"ascending"},Gt=88,Fe=53,Lt=1,zt=["action"],Ve=e=>xt(e,zt),He=({sortConfig:e,isDisabled:l,onColumnSortConfigChanged:a})=>{const i=Y(),[g,m]=C.useState(V);C.useEffect(()=>{const c=[...g];for(const h of c)h.key===e.sortKey?h.sortOrder=e.sortOrder:h.sortOrder="ascending";m(c)},[e.sortKey,e.sortOrder]);const w=(c,h)=>{let j=h;e.sortKey===c&&(j=h==="ascending"?"descending":"ascending"),a?.(c,j)},y=c=>{Ve(c.key)==null&&w(vt(c.key),c.sortOrder)};return t.jsx(At,{windowSize:i,children:g.map(c=>{const h=l!=null||Ve(c.key)!=null;return t.jsxs(Tt,{sortDataValue:e.sortKey,actualDataValue:c.key,wrapperWidth:c.width,isSortDisabled:h,windowSize:i,children:[t.jsxs(Ft,{onClick:()=>h?null:y(c),isSortDisabled:h,"data-testid":P("global-review-list-header-name-wrapper"),children:[c.icon,t.jsx(Ht,{children:c.value}),h?null:t.jsx(Wt,{sortConfig:e,headerdata:c,children:t.jsx(Ot,{})})]}),h?null:t.jsx(Dt,{isSortDisabled:h,sortDataValue:e.sortKey,isVisible:e.sortKey===c.key&&e.sortKey!==fe.sortKey,children:t.jsx(Pt,{onClick:()=>{h||w(fe.sortKey,fe.sortOrder)},"data-testid":P("global-review-list-header-close-icon")})})]},c.key)})})},At=n.div`
24
24
  top: ${o.sp0};
25
25
  left: ${o.sp0};
26
26
  height: ${Fe}px;
@@ -33,7 +33,7 @@ import{d as Ke,J,a9 as _e,az as Ee,cH as Je,V as t,bD as Qe,ad as Xe,cp as Ce,o,
33
33
  background-color: ${e=>e.theme.colors.grey4};
34
34
  position: sticky;
35
35
  margin: ${o.sp0} ${o.sp8};
36
- `,Pt=n.div`
36
+ `,Tt=n.div`
37
37
  color: ${e=>e.sortDataValue===e.actualDataValue&&!e.isSortDisabled?e.theme.colors.primary:e.theme.colors.grey1};
38
38
 
39
39
  width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
@@ -47,15 +47,15 @@ import{d as Ke,J,a9 as _e,az as Ee,cH as Je,V as t,bD as Qe,ad as Xe,cp as Ce,o,
47
47
  position: static;
48
48
  z-index: 0;
49
49
  box-sizing: border-box;
50
- `,Tt=n(st)`
50
+ `,Pt=n(st)`
51
51
  width: 12px;
52
52
  height: 12px;
53
- `,Dt=n.div`
53
+ `,Wt=n.div`
54
54
  display: flex;
55
55
  align-items: center;
56
56
  transform: ${e=>e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
57
57
  ${e=>e.headerdata.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
58
- `,Wt=n.div`
58
+ `,Dt=n.div`
59
59
  display: ${e=>e.isVisible?"flex":"none"};
60
60
  align-items: center;
61
61
  padding-top: 2px;
@@ -75,7 +75,7 @@ import{d as Ke,J,a9 as _e,az as Ee,cH as Je,V as t,bD as Qe,ad as Xe,cp as Ce,o,
75
75
  }
76
76
  `,Ht=n(we)`
77
77
  display: flex;
78
- `,{common:f,vendorReview:{globalReview:{globalMerchantList:Ut}}}=ue.getLocalizedStrings(),s={containerPaddingLeftRight:new N($[3],$[4]),containerPaddingTopBottom:new N($[2],$[3]),logoHeightAndWidth:new N($[3],$[4]),vendorNameLogoHeightAndWidth:new N($[4],$[6]),logoToValueGap:new N($[2],$[2]),smallLogoToValueGap:new N($[1],$[1])},qt=({vendorGlobalReviewData:e,allGlobalMerchants:l,globalMerchantAutoCompleteView:a,sectionId:i,isDisabled:g,analytics:m,onLoadGlobalMerchants:w,onCreateGlobalMerchant:y,onApproveGlobalReview:c,onRejectGlobalReview:h,onClearGlobalMerchantAutoCompleteResults:j})=>{const d=J(),{resetField:U,formState:q}=dt(),[G,I]=C.useState(!1),[L,W]=i.split("."),z=parseInt(W),O=q.dirtyFields[L]?.[z]?.originalVendor===!0&&e.selectedMerchantId!==e.merchant.tenantMerchantId,Q=e.currentSelection!=null,{merchant:p,recommendations:B}=e,{fetchState:K}=a,oe=u=>{let S=u.websiteUrl?.toString();if(S){if(S=We(S)??S,e.selectedMerchantId!=null){const r=u.globalMerchantName??null;m.trackVendorReviewWebsiteOpened({reviewSource:"global_review",vendorName:e.merchant.tenantMerchantName,wasRecommendationAvailable:!!r,recommendedVendorName:r,recommendedVendorReason:u.reason??null,vendorWebsite:S})}window.open(S,"_blank")}},x=[];B.forEach((u,S)=>{const r=`recommended${pt(S)}`;x.push({label:{label:t.jsx(t.Fragment,{children:u.logo!=null?t.jsxs(ze,{children:[t.jsx(je,{photoUrl:u.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(d),height:s.logoHeightAndWidth.valuePx(d)},placeholder:{width:s.logoHeightAndWidth.value(d),height:s.logoHeightAndWidth.value(d)},fallbackAvatar:t.jsx(pe,{children:t.jsx(me,{name:u.globalMerchantName,size:s.logoHeightAndWidth.valuePx(d)})})}),t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:u.globalMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:u.globalMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(i,H,r),checkBoxValue:ce(i,H,r),defaultChecked:e.currentSelection===r},tooltipProps:{text:t.jsx(Xt,{recommendation:u,onRedirectionToRecommendedMerchantWebsiteUrl:()=>oe(u)}),maxWidth:"360px"},fieldName:r})});const v=p!=null?{label:{label:t.jsx(t.Fragment,{children:p.logo!=null?t.jsxs(ze,{children:[t.jsx(je,{photoUrl:p.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(d),height:s.logoHeightAndWidth.valuePx(d)},placeholder:{width:s.logoHeightAndWidth.value(d),height:s.logoHeightAndWidth.value(d)},fallbackAvatar:t.jsx(pe,{children:t.jsx(me,{name:p.tenantMerchantName,size:s.logoHeightAndWidth.valuePx(d)})})}),t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:p.tenantMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:p.tenantMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(i,H,ge),checkBoxValue:ce(i,H,ge),defaultChecked:e.currentSelection==="requested"},tooltipProps:{text:t.jsx(Yt,{merchant:p}),maxWidth:"360px"}}:void 0;let F=p.oldMerchantName;e.currentSelection==="originalVendor"&&e.selectedMerchantId!=null&&(F=e.selectedMerchantId);const k=C.useMemo(()=>Be(F,e.merchant,l),[e,l]),ae=()=>{I(!1),j()},xe=()=>{U(i)};return t.jsx(Ue,{windowSize:d,isActiveField:O,children:V.map((u,S)=>{switch(u.key){case"originalVendor":return t.jsx(D,{windowSize:d,wrapperWidth:u.width,children:G===!0?t.jsx(ct,{onClickAway:ae,children:t.jsx(Et,{children:t.jsx(ht,{name:de(i,"originalVendor"),defaultValue:k,isOptionsLoading:K==="In-Progress",addIconInCreateLabel:!0,autoFocus:!0,isDisabled:g,style:{marginRight:o.sp4},menuIsOpen:G,loadOptions:w,customStyleConfig:{valueContainer:(r,b)=>({justifyContent:"flex-start",margin:`${o.sp0} ${b.selectProps.menuIsOpen===!1?o.sp0:o.sp3}`}),menu:()=>({width:"150%"}),singleValue:()=>({display:"flex",alignItems:"center",color:"inherit"})},onCreateOptionClick:r=>{y(p.tenantMerchantId,r,p.websiteUrl)},onMenuClose:ae})})}):k.selectedOption!=null?Qt(k.selectedOption,p,l,d,S,O,I,xe):t.jsxs(M,{className:"global-review-row-item",windowSize:d,isLastItem:S===V.length-1,children:[Ut.selectPlaceholder,t.jsx(_,{display:"block",placement:"bottom",title:t.jsx(E,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{onClick:()=>I(!0),"data-testid":T("global-review-list-row-edit-icon",z.toString())})})]})},de(i,"originalVendor"));case"recommended":return t.jsx(t.Fragment,{children:t.jsx(D,{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","data-testid":T("global-review-list-row-recommended-item",`${z}-${b}`),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(D,{windowSize:d,wrapperWidth:u.width,gap:s.smallLogoToValueGap,children:t.jsxs(M,{className:"global-review-row-button",windowSize:d,isLastItem:S===V.length-1,children:[t.jsx(ye,{variant:"light_transparent",label:f.footer.reject,onClick:()=>h(p.tenantMerchantId),loading:e.rejectStatus.fetchState==="In-Progress",size:"small",style:{height:"100%"}}),t.jsx(Jt,{space:o.sp0,style:{display:"flex",alignItems:"center",height:o.sp4,width:o.sp3}}),t.jsx(ye,{label:f.footer.approve,onClick:()=>c(p.tenantMerchantId),disabled:!Q,loading:e.approveStatus.fetchState==="In-Progress",size:"small",variant:"primary"})]})},`${i}.${u.key}`);case"requestedVendor":return t.jsx(D,{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(D,{windowSize:d,wrapperWidth:u.width,children:t.jsx(_t,{className:"global-review-row-item",windowSize:d,isLastItem:S===V.length-1,children:t.jsx(_,{display:"block",placement:"bottom-start",title:t.jsx(E,{children:p.tenantName}),children:t.jsx(Z,{children:p.tenantName})})})},de(i,"tenantId"))}})})},Bt=()=>{const e=J();return t.jsx(Ue,{windowSize:e,isActiveField:!1,children:V.map((l,a)=>{switch(l.key){case"originalVendor":case"recommended":return t.jsxs(D,{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(D,{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(D,{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(D,{windowSize:e,wrapperWidth:l.width,children:t.jsx(M,{windowSize:e,isLastItem:a===V.length-1,children:t.jsx(se,{width:$[11],height:$[5],style:{display:"flex",alignItems:"center"}})})},l.key)}})})},Ue=n.div`
78
+ `,{common:f,vendorReview:{globalReview:{globalMerchantList:Ut}}}=ue.getLocalizedStrings(),s={containerPaddingLeftRight:new N($[3],$[4]),containerPaddingTopBottom:new N($[2],$[3]),logoHeightAndWidth:new N($[3],$[4]),vendorNameLogoHeightAndWidth:new N($[4],$[6]),logoToValueGap:new N($[2],$[2]),smallLogoToValueGap:new N($[1],$[1])},qt=({vendorGlobalReviewData:e,allGlobalMerchants:l,globalMerchantAutoCompleteView:a,sectionId:i,isDisabled:g,analytics:m,onLoadGlobalMerchants:w,onCreateGlobalMerchant:y,onApproveGlobalReview:c,onRejectGlobalReview:h,onClearGlobalMerchantAutoCompleteResults:j})=>{const d=Y(),{resetField:U,formState:q}=dt(),[G,I]=C.useState(!1),[L,W]=i.split("."),D=parseInt(W),O=q.dirtyFields[L]?.[D]?.originalVendor===!0&&e.selectedMerchantId!==e.merchant.tenantMerchantId,Q=e.currentSelection!=null,{merchant:p,recommendations:K}=e,{fetchState:B}=a,oe=u=>{let S=u.websiteUrl?.toString();if(S){if(S=De(S)??S,e.selectedMerchantId!=null){const r=u.globalMerchantName??null;m.trackVendorReviewWebsiteOpened({reviewSource:"global_review",vendorName:e.merchant.tenantMerchantName,wasRecommendationAvailable:!!r,recommendedVendorName:r,recommendedVendorReason:u.reason??null,vendorWebsite:S})}window.open(S,"_blank")}},x=[];K.forEach((u,S)=>{const r=`recommended${pt(S)}`;x.push({label:{label:t.jsx(t.Fragment,{children:u.logo!=null?t.jsxs(ze,{children:[t.jsx(je,{photoUrl:u.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(d),height:s.logoHeightAndWidth.valuePx(d)},placeholder:{width:s.logoHeightAndWidth.value(d),height:s.logoHeightAndWidth.value(d)},fallbackAvatar:t.jsx(pe,{children:t.jsx(me,{name:u.globalMerchantName,size:s.logoHeightAndWidth.valuePx(d)})})}),t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:u.globalMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:u.globalMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(i,H,r),checkBoxValue:ce(i,H,r),defaultChecked:e.currentSelection===r},tooltipProps:{text:t.jsx(Jt,{recommendation:u,onRedirectionToRecommendedMerchantWebsiteUrl:()=>oe(u)}),maxWidth:"360px"},fieldName:r})});const v=p!=null?{label:{label:t.jsx(t.Fragment,{children:p.logo!=null?t.jsxs(ze,{children:[t.jsx(je,{photoUrl:p.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(d),height:s.logoHeightAndWidth.valuePx(d)},placeholder:{width:s.logoHeightAndWidth.value(d),height:s.logoHeightAndWidth.value(d)},fallbackAvatar:t.jsx(pe,{children:t.jsx(me,{name:p.tenantMerchantName,size:s.logoHeightAndWidth.valuePx(d)})})}),t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:p.tenantMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:p.tenantMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(i,H,ge),checkBoxValue:ce(i,H,ge),defaultChecked:e.currentSelection==="requested"},tooltipProps:{text:t.jsx(Xt,{merchant:p}),maxWidth:"360px"}}:void 0;let F=p.oldMerchantName;e.currentSelection==="originalVendor"&&e.selectedMerchantId!=null&&(F=e.selectedMerchantId);const k=C.useMemo(()=>Ke(F,e.merchant,l),[e,l]),ae=()=>{I(!1),j()},xe=()=>{U(i)};return t.jsx(Ue,{windowSize:d,isActiveField:O,children:V.map((u,S)=>{switch(u.key){case"originalVendor":return t.jsx(T,{windowSize:d,wrapperWidth:u.width,children:G===!0?t.jsx(ct,{onClickAway:ae,children:t.jsx(Et,{children:t.jsx(ht,{name:de(i,"originalVendor"),defaultValue:k,isOptionsLoading:B==="In-Progress",addIconInCreateLabel:!0,autoFocus:!0,isDisabled:g,style:{marginRight:o.sp4},menuIsOpen:G,loadOptions:w,customStyleConfig:{valueContainer:(r,b)=>({justifyContent:"flex-start",margin:`${o.sp0} ${b.selectProps.menuIsOpen===!1?o.sp0:o.sp3}`}),menu:()=>({width:"150%"}),singleValue:()=>({display:"flex",alignItems:"center",color:"inherit"})},onCreateOptionClick:r=>{y(p.tenantMerchantId,r,p.websiteUrl)},onMenuClose:ae})})}):k.selectedOption!=null?Qt(k.selectedOption,p,l,d,S,O,I,xe):t.jsxs(M,{className:"global-review-row-item",windowSize:d,isLastItem:S===V.length-1,children:[Ut.selectPlaceholder,t.jsx(_,{display:"block",placement:"bottom",title:t.jsx(E,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{onClick:()=>I(!0),"data-testid":P("global-review-list-row-edit-icon")})})]})},de(i,"originalVendor"));case"recommended":return t.jsx(t.Fragment,{children:t.jsx(T,{windowSize:d,wrapperWidth:u.width,gap:s.logoToValueGap,children:x.map((r,b)=>t.jsxs(t.Fragment,{children:[t.jsx(M,{windowSize:d,className:"vendor-global-review-row-item",isLastItem:!1,children:t.jsx(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(T,{windowSize:d,wrapperWidth:u.width,gap:s.smallLogoToValueGap,children:t.jsxs(M,{className:"global-review-row-button",windowSize:d,isLastItem:S===V.length-1,children:[t.jsx(ye,{variant:"light_transparent",label:f.footer.reject,onClick:()=>h(p.tenantMerchantId),loading:e.rejectStatus.fetchState==="In-Progress",size:"small",style:{height:"100%"}}),t.jsx(Yt,{space:o.sp0,style:{display:"flex",alignItems:"center",height:o.sp4,width:o.sp3}}),t.jsx(ye,{label:f.footer.approve,onClick:()=>c(p.tenantMerchantId),disabled:!Q,loading:e.approveStatus.fetchState==="In-Progress",size:"small",variant:"primary"})]})},`${i}.${u.key}`);case"requestedVendor":return t.jsx(T,{windowSize:d,wrapperWidth:u.width,gap:s.smallLogoToValueGap,children:p.tenantMerchantName&&v!=null?t.jsx(M,{windowSize:d,className:"vendor-global-review-row-item",isLastItem:!1,children:t.jsx(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(T,{windowSize:d,wrapperWidth:u.width,children:t.jsx(_t,{className:"global-review-row-item",windowSize:d,isLastItem:S===V.length-1,children:t.jsx(_,{display:"block",placement:"bottom-start",title:t.jsx(E,{children:p.tenantName}),children:t.jsx(Z,{children:p.tenantName})})})},de(i,"tenantId"))}})})},Kt=()=>{const e=Y();return t.jsx(Ue,{windowSize:e,isActiveField:!1,children:V.map((l,a)=>{switch(l.key){case"originalVendor":case"recommended":return t.jsxs(T,{windowSize:e,wrapperWidth:l.width,gap:s.smallLogoToValueGap,children:[t.jsx(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(T,{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(T,{windowSize:e,wrapperWidth:l.width,children:t.jsx(M,{windowSize:e,isLastItem:a===V.length-1,children:t.jsx(se,{width:100,height:$[4],style:{display:"flex",alignItems:"center"}})})},l.key);case"action":default:return t.jsx(T,{windowSize:e,wrapperWidth:l.width,children:t.jsx(M,{windowSize:e,isLastItem:a===V.length-1,children:t.jsx(se,{width:$[11],height:$[5],style:{display:"flex",alignItems:"center"}})})},l.key)}})})},Ue=n.div`
79
79
  display: flex;
80
80
  margin-bottom: ${o.sp3};
81
81
  background-color: ${e=>e.theme.colors.grey5};
@@ -126,7 +126,7 @@ import{d as Ke,J,a9 as _e,az as Ee,cH as Je,V as t,bD as Qe,ad as Xe,cp as Ce,o,
126
126
  box-sizing: border-box;
127
127
  align-items: center;
128
128
  justify-content: space-between;
129
- `,D=n.div`
129
+ `,T=n.div`
130
130
  display: flex;
131
131
  align-items: center;
132
132
  position: relative;
@@ -143,7 +143,7 @@ import{d as Ke,J,a9 as _e,az as Ee,cH as Je,V as t,bD as Qe,ad as Xe,cp as Ce,o,
143
143
  -webkit-box-orient: vertical;
144
144
  overflow: hidden;
145
145
  text-overflow: ellipsis;
146
- `,Kt=n.div``,Z=n.div`
146
+ `,Bt=n.div``,Z=n.div`
147
147
  ${Me};
148
148
  `,M=n(mt)`
149
149
  ${Me};
@@ -210,12 +210,12 @@ import{d as Ke,J,a9 as _e,az as Ee,cH as Je,V as t,bD as Qe,ad as Xe,cp as Ce,o,
210
210
  `,le=n(we)`
211
211
  color: ${Oe.heroDark};
212
212
  white-space: nowrap;
213
- `,Jt=n.div`
213
+ `,Yt=n.div`
214
214
  margin-right: ${e=>e.space};
215
215
  `,ze=n.div`
216
216
  display: flex;
217
217
  gap: ${o.sp2};
218
- `,Be=(e,l,a)=>{const i=a.find(m=>m.globalMerchantId===e),g=l.tenantMerchantId===e?{label:l.tenantMerchantName,value:l.tenantMerchantId}:i!=null?{label:i.globalMerchantName,value:i.globalMerchantId}:void 0;return g!=null?{defaultOptions:[g],selectedOption:e}:{defaultOptions:[],selectedOption:e}},Qt=(e,l,a,i,g,m,w,y)=>{const c=a.find(j=>j.globalMerchantId===e),h=l.tenantMerchantId===e?{logo:l.logo,name:l.tenantMerchantName}:c!=null?{logo:c.logo,name:c.globalMerchantName}:e.length>0?{logo:void 0,name:e}:void 0;return h==null?t.jsxs(t.Fragment,{children:[t.jsx(M,{className:"vendor-global-review-row-item",windowSize:i,isLastItem:!1,children:f.strings.hyphen}),t.jsxs(Le,{children:[t.jsx(_,{display:"block",placement:"bottom",title:t.jsx(E,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":T("global-review-list-row-edit-icon")})}),m?t.jsx(_,{display:"block",placement:"bottom",title:t.jsx(E,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Ge,{className:"reset-icon",onClick:y,"data-testid":T("global-review-list-row-undo-icon")})}):null]})]}):t.jsxs(t.Fragment,{children:[h.logo!=null?t.jsx(je,{photoUrl:h.logo.toString(),styles:{width:s.vendorNameLogoHeightAndWidth.valuePx(i),height:s.vendorNameLogoHeightAndWidth.valuePx(i),marginRight:s.logoToValueGap.valuePx(i)},placeholder:{width:s.vendorNameLogoHeightAndWidth.value(i),height:s.vendorNameLogoHeightAndWidth.value(i),style:{marginRight:s.logoToValueGap.valuePx(i)}},fallbackAvatar:t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(i)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(i)})})}):t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(i)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(i)})}),t.jsxs(Le,{children:[t.jsx(M,{className:"global-review-row-item",windowSize:i,isLastItem:g===V.length-1,children:t.jsx(_,{display:"block",placement:"bottom-start",title:t.jsx(E,{children:h.name}),children:t.jsx(Z,{children:h.name})})}),t.jsx(_,{display:"block",placement:"bottom",title:t.jsx(E,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":T("global-review-list-row-edit-icon-tooltip")})}),m?t.jsx(_,{display:"block",placement:"bottom",title:t.jsx(E,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Ge,{className:"reset-icon",onClick:y})}):null]})]})},Xt=({recommendation:e,onRedirectionToRecommendedMerchantWebsiteUrl:l})=>t.jsxs(qe,{setMaxHeight:!0,children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.vendor}),t.jsx(te,{children:e.globalMerchantName})]}),e.websiteUrl?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>l(e),"data-testid":T("global-review-list-row-website-url-tooltip-website-url"),children:e.websiteUrl?.toString()})]}):null]}),Yt=({merchant:e})=>{let l=e.websiteUrl?.toString()??f.strings.empty;return t.jsxs(qe,{children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.name}),t.jsx(te,{children:e.tenantMerchantName})]}),e.accountName.length?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.category}),t.jsx(te,{children:e.accountName})]}):null,e.accountName.length?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.class}),t.jsx(te,{children:e.className})]}):null,l?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>{l&&(l=We(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=J();return t.jsxs(el,{windowSize:g,children:[t.jsx(He,{sortConfig:e,isDisabled:l==="In-Progress"?"readonly":a,onColumnSortConfigChanged:i}),t.jsx(tl,{windowSize:g,children:[...Array(7)].map((m,w)=>t.jsx(Bt,{},w))})]})},el=n.div`
218
+ `,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}},Qt=(e,l,a,i,g,m,w,y)=>{const c=a.find(j=>j.globalMerchantId===e),h=l.tenantMerchantId===e?{logo:l.logo,name:l.tenantMerchantName}:c!=null?{logo:c.logo,name:c.globalMerchantName}:e.length>0?{logo:void 0,name:e}:void 0;return h==null?t.jsxs(t.Fragment,{children:[t.jsx(M,{className:"vendor-global-review-row-item",windowSize:i,isLastItem:!1,children:f.strings.hyphen}),t.jsxs(Le,{children:[t.jsx(_,{display:"block",placement:"bottom",title:t.jsx(E,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":P("global-review-list-row-edit-icon")})}),m?t.jsx(_,{display:"block",placement:"bottom",title:t.jsx(E,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Ge,{className:"reset-icon",onClick:y,"data-testid":P("global-review-list-row-undo-icon")})}):null]})]}):t.jsxs(t.Fragment,{children:[h.logo!=null?t.jsx(je,{photoUrl:h.logo.toString(),styles:{width:s.vendorNameLogoHeightAndWidth.valuePx(i),height:s.vendorNameLogoHeightAndWidth.valuePx(i),marginRight:s.logoToValueGap.valuePx(i)},placeholder:{width:s.vendorNameLogoHeightAndWidth.value(i),height:s.vendorNameLogoHeightAndWidth.value(i),style:{marginRight:s.logoToValueGap.valuePx(i)}},fallbackAvatar:t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(i)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(i)})})}):t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(i)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(i)})}),t.jsxs(Le,{children:[t.jsx(M,{className:"global-review-row-item",windowSize:i,isLastItem:g===V.length-1,children:t.jsx(_,{display:"block",placement:"bottom-start",title:t.jsx(E,{children:h.name}),children:t.jsx(Z,{children:h.name})})}),t.jsx(_,{display:"block",placement:"bottom",title:t.jsx(E,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":P("global-review-list-row-edit-icon-tooltip")})}),m?t.jsx(_,{display:"block",placement:"bottom",title:t.jsx(E,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Ge,{className:"reset-icon",onClick:y})}):null]})]})},Jt=({recommendation:e,onRedirectionToRecommendedMerchantWebsiteUrl:l})=>t.jsxs(qe,{setMaxHeight:!0,children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.vendor}),t.jsx(te,{children:e.globalMerchantName})]}),e.websiteUrl?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>l(e),"data-testid":P("global-review-list-row-website-url-tooltip-website-url"),children:e.websiteUrl?.toString()})]}):null]}),Xt=({merchant:e})=>{let l=e.websiteUrl?.toString()??f.strings.empty;return t.jsxs(qe,{children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.name}),t.jsx(te,{children:e.tenantMerchantName})]}),e.accountName.length?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.category}),t.jsx(te,{children:e.accountName})]}):null,e.accountName.length?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.class}),t.jsx(te,{children:e.className})]}):null,l?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>{l&&(l=De(l)??l,window.open(l,"_blank"))},"data-testid":P("global-review-list-row-website-url-tooltip"),children:l})]}):null]})},Zt=({sortConfig:e,fetchState:l,isDisabled:a,onColumnSortConfigChanged:i})=>{const g=Y();return t.jsxs(el,{windowSize:g,children:[t.jsx(He,{sortConfig:e,isDisabled:l==="In-Progress"?"readonly":a,onColumnSortConfigChanged:i}),t.jsx(tl,{windowSize:g,children:[...Array(7)].map((m,w)=>t.jsx(Kt,{},w))})]})},el=n.div`
219
219
  display: block;
220
220
  min-height: 100%;
221
221
  flex-direction: column;
@@ -224,12 +224,12 @@ import{d as Ke,J,a9 as _e,az as Ee,cH as Je,V as t,bD as Qe,ad as Xe,cp as Ce,o,
224
224
  display: flex;
225
225
  min-height: 100%;
226
226
  flex-direction: column;
227
- `,{common:ll,vendorReview:{globalReview:{globalMerchantList:Ae}}}=ue.getLocalizedStrings(),ol=({vendorGlobalReviewList:e,allGlobalMerchants:l,sectionId:a,listFetchState:i,globalMerchantAutoCompleteView:g,uiState:m,isDisabled:w,analytics:y,onLoadGlobalMerchants:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:j,onCreateGlobalMerchant:d,onApproveGlobalMerchantReview:U,onRejectGlobalMerchantReview:q,onClearGlobalMerchantAutoCompleteResults:G})=>{const I=J(),L=C.useRef(null),[W,z]=C.useState(!1);C.useEffect(()=>{L.current?.resetAfterIndex(0)},[I,L]),C.useEffect(()=>{i==="Completed"&&z(!1)},[i]);const O=x=>Gt,Q=(x,v)=>{h({sortOrder:v,sortKey:x}),j(m.searchText,!1,null)},p=()=>{z(!0),j(m.searchText,!0,m.pageToken)},B=x=>x<e.length,K=()=>{m.pageToken!=null&&i==="Completed"&&p()},oe=x=>{const v=e.find(k=>k.merchant.tenantMerchantId===x),F=l.find(k=>k.globalMerchantId===v?.selectedMerchantId);v?.currentSelection!="requested"||F!=null&&v?.currentSelection=="requested"?U(x):v!=null&&d(x,v.merchant.tenantMerchantName,v.merchant.websiteUrl)};return t.jsxs(al,{windowSize:I,children:[t.jsx(rl,{windowSize:I,children:i==="Error"?t.jsxs(dl,{windowSize:I,children:[t.jsx(cl,{"data-testid":T("global-review-list-table-reload-icon"),onClick:()=>j("",!1,null),children:t.jsx(Ye,{})}),t.jsx(hl,{children:ll.reloadPage.label})]}):i==="Completed"&&e.length===0?t.jsx(Ze,{message:m.searchText?Ae.noMatchedDataText:Ae.noDataText,style:{padding:o.sp0}}):i==="Not-Started"||i==="In-Progress"&&e.length===0?t.jsx(Zt,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:w,fetchState:i,onColumnSortConfigChanged:Q}):t.jsx(sl,{windowSize:I,children:t.jsx(et,{children:({height:x,width:v})=>t.jsx(tt,{isItemLoaded:B,itemCount:e.length+1,loadMoreItems:K,children:({onItemsRendered:F})=>t.jsxs(gl,{style:{height:x,width:v},children:[t.jsx(nl,{children:t.jsx(He,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:i==="In-Progress"?"readonly":w,onColumnSortConfigChanged:Q})}),t.jsx(lt,{ref:L,height:x-Fe,itemCount:e.length,itemData:{analytics:y,vendorGlobalReviewList:e,sectionId:a,allGlobalMerchants:l,globalMerchantAutoCompleteView:g,isDisabled:w,onLoadGlobalMerchants:c,onApproveGlobalReview:oe,onRejectGlobalMerchantReview:q,onCreateGlobalMerchant:d,onClearGlobalMerchantAutoCompleteResults:G},onItemsRendered:F,itemSize:O,width:v,style:{willChange:"auto"},overscanCount:Lt,onScroll:({scrollOffset:k})=>{h({scrollYOffset:k})},initialScrollOffset:m.scrollYOffset,children:il})]})})})})}),t.jsx(ot,{controller:W===!0,children:t.jsx(pl,{children:t.jsx(it,{size:"Small",start:!0})})})]})},il=({index:e,style:l,data:a})=>{const{analytics:i,vendorGlobalReviewList:g,allGlobalMerchants:m,globalMerchantAutoCompleteView:w,sectionId:y,isDisabled:c,onLoadGlobalMerchants:h,onCreateGlobalMerchant:j,onApproveGlobalReview:d,onRejectGlobalMerchantReview:U,onClearGlobalMerchantAutoCompleteResults:q}=a,G=g[e];return t.jsx(ml,{style:{...l,width:"100%"},className:"global-review-list-item",children:t.jsx(qt,{sectionId:`${y}.${e}`,isDisabled:G.approveStatus.fetchState==="In-Progress"?"readonly":c,globalMerchantAutoCompleteView:w,vendorGlobalReviewData:G,allGlobalMerchants:m,onLoadGlobalMerchants:h,onCreateGlobalMerchant:j,onApproveGlobalReview:d,onRejectGlobalReview:U,onClearGlobalMerchantAutoCompleteResults:q,analytics:i},G.merchant.tenantMerchantId)})},nl=n.div`
227
+ `,{common:ll,vendorReview:{globalReview:{globalMerchantList:Ae}}}=ue.getLocalizedStrings(),ol=({vendorGlobalReviewList:e,allGlobalMerchants:l,sectionId:a,listFetchState:i,globalMerchantAutoCompleteView:g,uiState:m,isDisabled:w,analytics:y,onLoadGlobalMerchants:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:j,onCreateGlobalMerchant:d,onApproveGlobalMerchantReview:U,onRejectGlobalMerchantReview:q,onClearGlobalMerchantAutoCompleteResults:G})=>{const I=Y(),L=C.useRef(null),[W,D]=C.useState(!1);C.useEffect(()=>{L.current?.resetAfterIndex(0)},[I,L]),C.useEffect(()=>{i==="Completed"&&D(!1)},[i]);const O=x=>Gt,Q=(x,v)=>{h({sortOrder:v,sortKey:x}),j(m.searchText,!1,null)},p=()=>{D(!0),j(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),F=l.find(k=>k.globalMerchantId===v?.selectedMerchantId);v?.currentSelection!="requested"||F!=null&&v?.currentSelection=="requested"?U(x):v!=null&&d(x,v.merchant.tenantMerchantName,v.merchant.websiteUrl)};return t.jsxs(al,{windowSize:I,children:[t.jsx(rl,{windowSize:I,children:i==="Error"?t.jsxs(dl,{windowSize:I,children:[t.jsx(cl,{"data-testid":P("global-review-list-table-reload-icon"),onClick:()=>j("",!1,null),children:t.jsx(Xe,{})}),t.jsx(hl,{children:ll.reloadPage.label})]}):i==="Completed"&&e.length===0?t.jsx(Ze,{message:m.searchText?Ae.noMatchedDataText:Ae.noDataText,style:{padding:o.sp0}}):i==="Not-Started"||i==="In-Progress"&&e.length===0?t.jsx(Zt,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:w,fetchState:i,onColumnSortConfigChanged:Q}):t.jsx(sl,{windowSize:I,children:t.jsx(et,{children:({height:x,width:v})=>t.jsx(tt,{isItemLoaded:K,itemCount:e.length+1,loadMoreItems:B,children:({onItemsRendered:F})=>t.jsxs(gl,{style:{height:x,width:v},children:[t.jsx(nl,{children:t.jsx(He,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:i==="In-Progress"?"readonly":w,onColumnSortConfigChanged:Q})}),t.jsx(lt,{ref:L,height:x-Fe,itemCount:e.length,itemData:{analytics:y,vendorGlobalReviewList:e,sectionId:a,allGlobalMerchants:l,globalMerchantAutoCompleteView:g,isDisabled:w,onLoadGlobalMerchants:c,onApproveGlobalReview:oe,onRejectGlobalMerchantReview:q,onCreateGlobalMerchant:d,onClearGlobalMerchantAutoCompleteResults:G},onItemsRendered:F,itemSize:O,width:v,style:{willChange:"auto"},overscanCount:Lt,onScroll:({scrollOffset:k})=>{h({scrollYOffset:k})},initialScrollOffset:m.scrollYOffset,children:il})]})})})})}),t.jsx(ot,{controller:W===!0,children:t.jsx(pl,{children:t.jsx(it,{size:"Small",start:!0})})})]})},il=({index:e,style:l,data:a})=>{const{analytics:i,vendorGlobalReviewList:g,allGlobalMerchants:m,globalMerchantAutoCompleteView:w,sectionId:y,isDisabled:c,onLoadGlobalMerchants:h,onCreateGlobalMerchant:j,onApproveGlobalReview:d,onRejectGlobalMerchantReview:U,onClearGlobalMerchantAutoCompleteResults:q}=a,G=g[e];return t.jsx(ml,{style:{...l,width:"100%"},className:"global-review-list-item",children:t.jsx(qt,{sectionId:`${y}.${e}`,isDisabled:G.approveStatus.fetchState==="In-Progress"?"readonly":c,globalMerchantAutoCompleteView:w,vendorGlobalReviewData:G,allGlobalMerchants:m,onLoadGlobalMerchants:h,onCreateGlobalMerchant:j,onApproveGlobalReview:d,onRejectGlobalReview:U,onClearGlobalMerchantAutoCompleteResults:q,analytics:i},G.merchant.tenantMerchantId)})},nl=n.div`
228
228
  width: auto;
229
229
  `,al=n.div`
230
230
  display: block;
231
231
  background-color: ${e=>e.theme.colors.grey4};
232
- height: ${e=>`calc(100vh - ${De.valuePx(e.windowSize)} - ${o.sp4})`};
232
+ height: ${e=>`calc(100vh - ${We.valuePx(e.windowSize)} - ${o.sp4})`};
233
233
  width: 100%;
234
234
  margin-top: ${o.sp4};
235
235
  `,rl=n.div`
@@ -242,7 +242,7 @@ import{d as Ke,J,a9 as _e,az as Ee,cH as Je,V as t,bD as Qe,ad as Xe,cp as Ce,o,
242
242
  `,dl=n.div`
243
243
  display: flex;
244
244
  width: 100%;
245
- height: ${e=>`calc(100% - ${De.valuePx(e.windowSize)})`};
245
+ height: ${e=>`calc(100% - ${We.valuePx(e.windowSize)})`};
246
246
  flex-direction: column;
247
247
  justify-content: center;
248
248
  align-items: center;
@@ -280,7 +280,7 @@ import{d as Ke,J,a9 as _e,az as Ee,cH as Je,V as t,bD as Qe,ad as Xe,cp as Ce,o,
280
280
  align-items: center;
281
281
  margin-top: ${o.sp3};
282
282
  margin-bottom: ${o.sp3};
283
- `,{common:{sectionTitles:ul},vendorReview:{globalReview:{globalMerchantList:Pe}}}=ue.getLocalizedStrings(),wl="globalReviewListPage",he="globalReviewListTable",Gl=({vendorGlobalReviewView:e,globalMerchantAutoCompleteView:l,analytics:a,isDisabled:i,onUpdateSelectedGlobalMerchant:g,onApproveGlobalReview:m,onRejectGlobalReview:w,onCreateGlobalMerchant:y,onFetchGlobalMerchantAutoCompleteResults:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:j,onClearGlobalMerchantAutoCompleteResults:d,onBackClick:U,onClickMenuIcon:q})=>{const G=Ke(),I=J(),{vendorGlobalReviewData:L,allGlobalMerchants:W,uiState:z,fetchState:O}=e,{globalMerchants:Q,fetchState:p}=l,B=_e({mode:"all",reValidateMode:"onChange",defaultValues:Te(L,W),values:Te(L,W),resetOptions:{keepDirtyValues:!0}}),[K,oe]=C.useState(z.searchText),x=C.useRef(),v=r=>{j(r,!1,null)},F=r=>{const b=L.find(A=>A.merchant.tenantMerchantId===r);if(b!=null){const A=W.find(Y=>Y.globalMerchantId===b.selectedMerchantId),X=b.recommendations,{tenantName:re,oldMerchantName:ie,tenantMerchantName:ne}=b.merchant,R=A?.globalMerchantName??ne,P=X[0];a.trackVendorReviewApproveRequested({reviewSource:"global_review",tenantName:re,requestedVendorName:ne,originalVendorName:ie,approveVendorName:R,isGlobalVendorRequested:A!=null,isNewCreatedVendorRequested:!1,isVendorNameRecommendationSelected:b.currentSelection==="recommendedFirst"||b.currentSelection==="recommendedSecond",isVendorNameChangedAndSelected:R!==ne,wasRecommendationAvailable:!!P?.globalMerchantName,approveVendorReason:A?.reason??null,approveVendorNameSelectionSource:R===P?.globalMerchantName?"recommendation":"text_edit",recommendedVendorName:P?.globalMerchantName??null,recommendedVendorReason:P?.reason??null})}m(r)},k=C.useRef(Ee(r=>v(r),500,{trailing:!0})).current;C.useEffect(()=>{O==="Completed"&&a.trackVendorReviewPage("global_review",z.totalCount)},[O]),C.useEffect(()=>{p==="Completed"&&x.current?.(fl(Q))},[p]);const ae=(r,b)=>{c(r),x.current=b},xe=()=>{},u=async(r,b,A)=>{const{globalReviewListTable:X}=b,re=parseInt(r.split(".")[1]),ie=X[re].merchantId;if(A==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 P=R[H],Y;R.merchantId!=null&&(r.includes(Re)?(P={recommendedFirst:R[H].recommendedFirst,recommendedSecond:!1,originalVendor:!1,requested:!1},Y=R[Re]?.globalMerchantId):r.includes(Ne)?(P={recommendedFirst:!1,recommendedSecond:R[H].recommendedSecond,originalVendor:!1,requested:!1},Y=R[Ne]?.globalMerchantId):r.includes(ge)?(P={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:R[H].requested},Y=R[ge]):r.includes(ve)&&(P={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!0,requested:!1})),g(ie,P,r.includes(ve)?X[re][ve].selectedOption:Y)}};C.useEffect(()=>{const r=B.watch((b,{name:A,type:X})=>{A!=null&&b!=null&&Je(()=>u(A,b,X))});return()=>{r.unsubscribe()}});const S=t.jsx(ft,{button:{label:ul.newVendor,onClick:()=>y()},search:{searchText:K,hide:!1,isOpen:K.length>0,placeHolder:Pe.searchPlaceholder,onTextChange:r=>{oe(r),r.trim().length>=2?k(r):r.trim().length==0&&k("")}}});return t.jsxs(bl,{children:[t.jsx(Qe,{title:Pe.navBarTitle,backgroundColor:G.colors.grey4,onBackClick:U,rightSideComponent:S,showMenuIcon:I==="medium-compact"||I==="small",onClickMenuIcon:q,source:"GlobalReviewListPage"}),t.jsx(xl,{children:t.jsx(Xe,{...B,children:t.jsx("form",{id:vl(wl),onSubmit:B.handleSubmit(xe),style:{width:"100%"},children:t.jsx(ol,{vendorGlobalReviewList:L,allGlobalMerchants:W,globalMerchantAutoCompleteView:l,uiState:{...z,searchText:K},isDisabled:i,listFetchState:O,sectionId:he,onLoadGlobalMerchants:ae,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:j,onCreateGlobalMerchant:y,onApproveGlobalMerchantReview:F,onRejectGlobalMerchantReview:w,onClearGlobalMerchantAutoCompleteResults:d,analytics:a})})})})]})},bl=n.div`
283
+ `,{common:{sectionTitles:ul},vendorReview:{globalReview:{globalMerchantList:Te}}}=ue.getLocalizedStrings(),wl="globalReviewListPage",he="globalReviewListTable",Gl=({vendorGlobalReviewView:e,globalMerchantAutoCompleteView:l,analytics:a,isDisabled:i,onUpdateSelectedGlobalMerchant:g,onApproveGlobalReview:m,onRejectGlobalReview:w,onCreateGlobalMerchant:y,onFetchGlobalMerchantAutoCompleteResults:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:j,onClearGlobalMerchantAutoCompleteResults:d,onBackClick:U,onClickMenuIcon:q})=>{const G=Be(),I=Y(),{vendorGlobalReviewData:L,allGlobalMerchants:W,uiState:D,fetchState:O}=e,{globalMerchants:Q,fetchState:p}=l,K=_e({mode:"all",reValidateMode:"onChange",defaultValues:Pe(L,W),values:Pe(L,W),resetOptions:{keepDirtyValues:!0}}),[B,oe]=C.useState(D.searchText),x=C.useRef(),v=r=>{j(r,!1,null)},F=r=>{const b=L.find(z=>z.merchant.tenantMerchantId===r);if(b!=null){const z=W.find(X=>X.globalMerchantId===b.selectedMerchantId),J=b.recommendations,{tenantName:re,oldMerchantName:ie,tenantMerchantName:ne}=b.merchant,R=z?.globalMerchantName??ne,A=J[0];a.trackVendorReviewApproveRequested({reviewSource:"global_review",tenantName:re,requestedVendorName:ne,originalVendorName:ie,approveVendorName:R,isGlobalVendorRequested:z!=null,isNewCreatedVendorRequested:!1,isVendorNameRecommendationSelected:b.currentSelection==="recommendedFirst"||b.currentSelection==="recommendedSecond",isVendorNameChangedAndSelected:R!==ne,wasRecommendationAvailable:!!A?.globalMerchantName,approveVendorReason:z?.reason??null,approveVendorNameSelectionSource:R===A?.globalMerchantName?"recommendation":"text_edit",recommendedVendorName:A?.globalMerchantName??null,recommendedVendorReason:A?.reason??null})}m(r)},k=C.useRef(Ee(r=>v(r),500,{trailing:!0})).current;C.useEffect(()=>{O==="Completed"&&a.trackVendorReviewPage("global_review",D.totalCount)},[O]),C.useEffect(()=>{p==="Completed"&&x.current?.(fl(Q))},[p]);const ae=(r,b)=>{c(r),x.current=b},xe=()=>{},u=async(r,b,z)=>{const{globalReviewListTable:J}=b,re=parseInt(r.split(".")[1]),ie=J[re].merchantId;if(z==null){g(ie,{recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:!1},ie);return}if(r.includes(he)){const ne=parseInt(r.split(".")[1]),R={...b[he][ne]};let A=R[H],X;R.merchantId!=null&&(r.includes(Re)?(A={recommendedFirst:R[H].recommendedFirst,recommendedSecond:!1,originalVendor:!1,requested:!1},X=R[Re]?.globalMerchantId):r.includes(Ne)?(A={recommendedFirst:!1,recommendedSecond:R[H].recommendedSecond,originalVendor:!1,requested:!1},X=R[Ne]?.globalMerchantId):r.includes(ge)?(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:R[H].requested},X=R[ge]):r.includes(ve)&&(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!0,requested:!1})),g(ie,A,r.includes(ve)?J[re][ve].selectedOption:X)}};C.useEffect(()=>{const r=K.watch((b,{name:z,type:J})=>{z!=null&&b!=null&&Ye(()=>u(z,b,J))});return()=>{r.unsubscribe()}});const S=t.jsx(ft,{button:{label:ul.newVendor,onClick:()=>y()},search:{searchText:B,hide:!1,isOpen:B.length>0,placeHolder:Te.searchPlaceholder,onTextChange:r=>{oe(r),r.trim().length>=2?k(r):r.trim().length==0&&k("")}}});return t.jsxs(bl,{children:[t.jsx(Qe,{title:Te.navBarTitle,backgroundColor:G.colors.grey4,onBackClick:U,rightSideComponent:S,showMenuIcon:I==="medium-compact"||I==="small",onClickMenuIcon:q,source:"GlobalReviewListPage"}),t.jsx(xl,{children:t.jsx(Je,{...K,children:t.jsx("form",{id:vl(wl),onSubmit:K.handleSubmit(xe),style:{width:"100%"},children:t.jsx(ol,{vendorGlobalReviewList:L,allGlobalMerchants:W,globalMerchantAutoCompleteView:l,uiState:{...D,searchText:B},isDisabled:i,listFetchState:O,sectionId:he,onLoadGlobalMerchants:ae,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:j,onCreateGlobalMerchant:y,onApproveGlobalMerchantReview:F,onRejectGlobalMerchantReview:w,onClearGlobalMerchantAutoCompleteResults:d,analytics:a})})})})]})},bl=n.div`
284
284
  display: flex;
285
285
  min-height: 100%;
286
286
  width: 100%;
@@ -288,4 +288,4 @@ import{d as Ke,J,a9 as _e,az as Ee,cH as Je,V as t,bD as Qe,ad as Xe,cp as Ce,o,
288
288
  background-color: ${e=>e.theme.colors.grey4};
289
289
  `,xl=n.div`
290
290
  display: flex;
291
- `,vl=e=>`${e}_form`,Te=(e,l)=>({[he]:e.map(a=>{const{merchant:i}=a;let g=i.oldMerchantName;return a.currentSelection==="originalVendor"&&a.selectedMerchantId!=null&&(g=a.selectedMerchantId),{tenantId:i.tenantId,merchantId:i.tenantMerchantId,originalVendor:Be(g,i,l),recommendedFirst:a.recommendations[0],recommendedSecond:a.recommendations[1],currentSelection:{recommendedFirst:a.currentSelection==="recommendedFirst",recommendedSecond:a.currentSelection==="recommendedSecond",requested:a.currentSelection==="requested",originalVendor:a.currentSelection==="originalVendor"},requested:i.tenantMerchantId}})}),fl=e=>e.map(l=>({label:l.globalMerchantName,value:l.globalMerchantId})).sort((l,a)=>l.label.localeCompare(a.label));export{Gl as default,vl as uniqueFormName};
291
+ `,vl=e=>`${e}_form`,Pe=(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}})}),fl=e=>e.map(l=>({label:l.globalMerchantName,value:l.globalMerchantId})).sort((l,a)=>l.label.localeCompare(a.label));export{Gl as default,vl as uniqueFormName};