@zeniai/web-cockpit-ui 1.14.16-qa → 1.14.17-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 (258) hide show
  1. package/dist/assets/ACHDetailsPage-BwrF_fEr-DkyA5i2K.js +21 -0
  2. package/dist/assets/{AIPerformancePage-Do5bswa_-DAoOPzHS.js → AIPerformancePage-4oC8MJWN-DKgtdhwX.js} +44 -44
  3. package/dist/assets/{AccountInfoPage-BBhgLi_k-BDnk8wRY.js → AccountInfoPage-mOPytffA-CHwRigZs.js} +3 -3
  4. package/dist/assets/{AccountInfoPageContent-BJqXMkH6-270w5YXI.js → AccountInfoPageContent-VULusDEd-6lGswsvl.js} +14 -14
  5. package/dist/assets/{AccountReconDetailsDrawerPage-CV09UnoU-CHsOQmxO.js → AccountReconDetailsDrawerPage-89APlrhb-BX-kF9hA.js} +18 -18
  6. package/dist/assets/{AccountRow-TlJ0aU9H-BlwEdN_G.js → AccountRow-DJd-IAIl-CfLQe7at.js} +33 -33
  7. package/dist/assets/{AccountsPromoCardStack-D8Y5MNXA-CaIaUzET.js → AccountsPromoCardStack-DE39TpIu-DvYK9R7k.js} +33 -33
  8. package/dist/assets/{AddAddressForCardDrawer-DKJpGW7r-BpMaf86Y.js → AddAddressForCardDrawer-CKdcU_pi-IPZLStMw.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-1gMvHWq2-B8vVBjjQ.js → AddToWalletPage-DPXW2fbY-CNPYHMH9.js} +24 -24
  10. package/dist/assets/{AgingReportsPage-Bzn9xmRs-apdo7hGo.js → AgingReportsPage--CLUwcIa-DcSCN91R.js} +17 -17
  11. package/dist/assets/{AllUserItems-BPSpj-dO-ClBbyfzH.js → AllUserItems-CC9l-O5G-DJbAuU58.js} +11 -11
  12. package/dist/assets/ApAgingDetailPage-CsQ3DujX-DWGGqNtg.js +46 -0
  13. package/dist/assets/AppBasePage-CgHKYFmd-Bs3-qi9M.js +68 -0
  14. package/dist/assets/{AppDrawerContent-Cq8GkRBD-CRks4KWi.js → AppDrawerContent-Cofo0-5p-DYgesCt7.js} +19 -19
  15. package/dist/assets/{ApprovalRulesSettingsPage-zKh1CLv3-3l0xvat6.js → ApprovalRulesSettingsPage-DsshEbzW-DLpKueGV.js} +7 -7
  16. package/dist/assets/{ArAgingChart-Bs2fblA6-_eY76mOu.js → ArAgingChart-K2LSe8mo-CcrD54Kp.js} +1 -1
  17. package/dist/assets/{ArAgingDetailPage-BWsV1tQP-BBPHFjg6.js → ArAgingDetailPage-DCFL9YAy-Cw3hCUfd.js} +4 -4
  18. package/dist/assets/{AttachmentView-BDkq5i_5-BDwPiUBQ.js → AttachmentView-Cn3VnVyO-BPJCq-4t.js} +9 -9
  19. package/dist/assets/{BankAccountSection-DL-Qgypb-DCyiZiMb.js → BankAccountSection-Au9_D0Ji-bmPPOv5B.js} +8 -8
  20. package/dist/assets/{BankAccountWarningSection-PFOmZUmz-jyv_7HW8.js → BankAccountWarningSection-927iR_QB-BLBTF_Hr.js} +7 -7
  21. package/dist/assets/{BankConnectionsSettingsPage-BiPEOltR-BEX0B3Xt.js → BankConnectionsSettingsPage-CXab8fzD-0RsCLwrp.js} +49 -49
  22. package/dist/assets/{BillDetailPage-nUoy5Pib-B9OAwnY8.js → BillDetailPage-yIdrE7YG-CO1_hc0X.js} +21 -21
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-uCd9CD_--CPg3Wdw0.js → BillPayApprovalRuleDetailPage-BJl_-eJN-DcYLdRk3.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-BsvzOO92-CCSqA2Ff.js → BillPayApprovalRulesPage-rXaFCSLp-DOP05VDc.js} +8 -8
  25. package/dist/assets/{BillPayPromoPage-D9tHxFrw-BDsnH40Y.js → BillPayPromoPage-BLi_wIbj-CZGLSHx_.js} +10 -10
  26. package/dist/assets/{BillPaySetUpPage-Ci__X7jC-BU_eTkYb.js → BillPaySetUpPage-BFmpWT_x-zTzNnL_X.js} +2 -2
  27. package/dist/assets/{BillingSettingsPage-JcOqMK9G-C2bvM8Au.js → BillingSettingsPage-Da01aYql-DLGfaRzo.js} +5 -5
  28. package/dist/assets/{BillsBulkReviewDrawerPage-FeZEMsS6-CjecTcPw.js → BillsBulkReviewDrawerPage-J2kO9_8C-B_ZetdEJ.js} +1 -1
  29. package/dist/assets/{BoxItem-BcQH7ATF-CU__oRAt.js → BoxItem-CQlEDklH-QYh8SK8x.js} +4 -4
  30. package/dist/assets/BusinessVerificationPage-DWhXCuG5-BlJy48X_.js +140 -0
  31. package/dist/assets/{CardNumberSubText-CRythvN3-DSiQJr5y.js → CardNumberSubText-BTjxrF3b-CNbVWSfp.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-CDa_GOsq-CJAMDrPJ.js → CashbackDetailPage-qcMtGUQ0-ClM0O4ek.js} +22 -22
  33. package/dist/assets/{ChargeCardDetailPage-BVxvmvYF-wsGLJRVi.js → ChargeCardDetailPage-BurpUHl9-ks5Ylh0a.js} +32 -32
  34. package/dist/assets/{ChargeCardListPage-Dk_9p-sM-DVvAu4yD.js → ChargeCardListPage-CBIYOllB-hsormxMA.js} +22 -22
  35. package/dist/assets/{ChargeCardListTable-DLAZTf8n-BSGVLMaS.js → ChargeCardListTable-BTZu7ldI-Dtf0dVvX.js} +104 -104
  36. package/dist/assets/ChargeCardPromoPage-us_v89rV-C0HHgs2t.js +222 -0
  37. package/dist/assets/{ChargeCardSetupPage-QPLpJN2z-gogu-vKD.js → ChargeCardSetupPage-QOdjFcsr-C35vd8Nk.js} +3 -3
  38. package/dist/assets/{ChargeCardStatementsPage-DwJYJjcf-B6wqaac-.js → ChargeCardStatementsPage-C1UmjyIW-CQoBe4qC.js} +8 -8
  39. package/dist/assets/{ChargeCardUtils-BbByGmi9-idcYoFNG.js → ChargeCardUtils-C3fhOMpV-CuPIdUk0.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-CvXMdD8r-DVeLI7lR.js → ChaseOverlay-RPex2o5e-Smu9780P.js} +6 -6
  41. package/dist/assets/CheckDepositDrawerPage-XZJ1F0aC-kws9zCak.js +206 -0
  42. package/dist/assets/{CollapsableReportTable-BptltmMq-BOVY7pY_.js → CollapsableReportTable-Ds0h8x1N-DplOjSEj.js} +93 -93
  43. package/dist/assets/{CompanyOfficerDetailsSection-DTbhxCCJ-DSPRT4ko.js → CompanyOfficerDetailsSection-B8yGAFVj-BXFGaLke.js} +24 -24
  44. package/dist/assets/{CompanyPassportCard-CRgbazO4-BVLaJrBi.js → CompanyPassportCard-BDei9Pfp-eYqW_Kg9.js} +6 -6
  45. package/dist/assets/{CompanyPassportPage-wdWKvOuO-uEEF_NAz.js → CompanyPassportPage-DFA733vS-D6CEIM7b.js} +32 -32
  46. package/dist/assets/CompleteProfile-BpX6H4vJ-BVnH0M9g.js +52 -0
  47. package/dist/assets/ConfettiBurst-97CCPVCH-9-b-8JXj.js +1 -0
  48. package/dist/assets/{CreateOrEditVendorPage-DTbrZv48-DfbqQuzn.js → CreateOrEditVendorPage-BSi6pOXN-DT6XT0bI.js} +10 -10
  49. package/dist/assets/{CreditCardPaymentDrawerPage-CGGM52ND-DRUZYfAF.js → CreditCardPaymentDrawerPage-ZletyeGG-umQmaf0k.js} +17 -17
  50. package/dist/assets/{CreditCardPaymentPlgSection-BS99Rbz7-CTrSYAEg.js → CreditCardPaymentPlgSection-BE982atG-B6gcx6zm.js} +13 -14
  51. package/dist/assets/{CurrencySelectField-Cz1ZFZNL-rp7RZiQz.js → CurrencySelectField-cnP09xH2-COp3JBgC.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-Bw2z91CF-CXbTMafe.js → CustomerOnboardingActivationPage-DhcKiTJ_-B4Bo0l5a.js} +9 -9
  53. package/dist/assets/CustomerOnboardingContainerPage-C1higvpq-CPTgkuej.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BY4rv3eB-6NFXmXrK.js → CustomerOnboardingDetailPageSkeleton-jguCmaVx-CPLJBFIe.js} +9 -9
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-ByTpLszW-OlEfdwKj.js → CustomerOnboardingNoStepsPage-xakP7IDr-j9vb9__e.js} +2 -2
  56. package/dist/assets/{CustomerOnboardingPage-eyRDjOy--DJuua0xj.js → CustomerOnboardingPage-Ct5YbyHs-BO0Sy5Lx.js} +9 -9
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-C_GOhUsC-DsH2SPww.js → CustomerOnboardingProductSuitePage-CugfvMkw-B6aWX1Xf.js} +11 -11
  58. package/dist/assets/{Dashboard-DXTfxwrE-CisGpCCo.js → Dashboard-XbVGCnvI-Cwm6wdq7.js} +260 -242
  59. package/dist/assets/{DashboardReportPage-C7LmV0rQ-D73sqjmR.js → DashboardReportPage-OeEPg2kx-DUWAiMA5.js} +21 -21
  60. package/dist/assets/{DepositAccTransactionItem-BH6np-wq-C9S2eFCv.js → DepositAccTransactionItem-Dy6qzuSL-bj1K9hi4.js} +10 -10
  61. package/dist/assets/DepositAccTransactionListPage-BisaE6sH-CXEjoVG5.js +66 -0
  62. package/dist/assets/{DomesticWireDetailsPage-DhM2CLtr-s-sXaI-h.js → DomesticWireDetailsPage-B0tbjNLO-ByvPg7x-.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-CwqxQGbr-Ae7vpc4V.js → DownloadOverlay-BKKO1nm1-BQ5P_IH7.js} +15 -15
  64. package/dist/assets/{DrawerPage-C3k5XFW6-BcQ5z47A.js → DrawerPage-osM8gPVn-2LgFt42m.js} +10 -10
  65. package/dist/assets/EditPeoplePage-ixJkT03_-nZc9QeAd.js +55 -0
  66. package/dist/assets/{EditReimbursementDetailPage-DXLAtkkp-DnXcCwZz.js → EditReimbursementDetailPage-DvLeCixY-TeZdMP4Z.js} +23 -23
  67. package/dist/assets/{EntityDetailPage-_060OpVJ-D5TJErzM.js → EntityDetailPage-BzJbAOSj-9yzQeWus.js} +3 -3
  68. package/dist/assets/{EntitySummarySection-0QXWkpbX-D_GUS2WS.js → EntitySummarySection-Drj07P9h-6nsX9189.js} +13 -13
  69. package/dist/assets/{ExpenseAutomationOverviewPage-GPO42_rS-DQOlB6qp.js → ExpenseAutomationOverviewPage-BQ9dwGkq-BSO9oU-G.js} +23 -23
  70. package/dist/assets/{ExpenseAutomationPage-BQArYLAG-CHnCd6t8.js → ExpenseAutomationPage-DLld6Lux-C9UiIoPt.js} +56 -56
  71. package/dist/assets/{ExpressPayPage-DacK02lD-Dq4EbXyn.js → ExpressPayPage-QBNV0dC8-pBCRR5Rb.js} +12 -12
  72. package/dist/assets/FeaturePreviewPage-CpBX-Xic-BYSOYP2k.js +11 -0
  73. package/dist/assets/{FollowStepsSection-CMTo4gYl-CwkCaSv0.js → FollowStepsSection-1RCO2W7K-C-MoCYne.js} +25 -25
  74. package/dist/assets/{GlobalReviewListPage-BbI2YDxl-Cps6LriT.js → GlobalReviewListPage-ByMZFe7Y-CdorqsTM.js} +14 -14
  75. package/dist/assets/{HelpButton-Coe4ii48-CvuplgJt.js → HelpButton-CzTfBZQj-DZRTwrFl.js} +2 -2
  76. package/dist/assets/{InformationCardStack-BIumm5SJ-6MHSuSeN.js → InformationCardStack-C0AmMOu2-RArJXysN.js} +6 -6
  77. package/dist/assets/{InsightsCardStack-nndLG-Gx-C0PariBK.js → InsightsCardStack-BiIDBYY8-5lf82tLY.js} +7 -7
  78. package/dist/assets/InsightsSection-C-kpIvRH-CdqlGqmg.js +27 -0
  79. package/dist/assets/{IntegrationsSettingsPage-BRH3t6mo-DO-LHaxh.js → IntegrationsSettingsPage-7wAnV8kG-PXEXvEB6.js} +8 -8
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-vgA7iek9-ChmwO1by.js → InternationalWireSwiftDetailsPage-C7D15jtK-Li0eKKsY.js} +16 -16
  81. package/dist/assets/{InternationalWireVerificationPage-DEIs1ydr-DKS197rw.js → InternationalWireVerificationPage-GDKPXtU--j4IpooKm.js} +20 -20
  82. package/dist/assets/{InviteFormPage-Bowy0arK-DpBZL_pL.js → InviteFormPage-CKGJHYWa-DWj-EAub.js} +20 -20
  83. package/dist/assets/{InvitePageListView-DuXb15Ll-BQK3BFW6.js → InvitePageListView-CWXyDZU2-DCU4lB3m.js} +54 -54
  84. package/dist/assets/InvitePeoplePage-CPBMZNa--DlK3foAM.js +12 -0
  85. package/dist/assets/InvoiceUploadSection-C0WzT0uv-Cn2JF08l.js +140 -0
  86. package/dist/assets/{IssueChargeCardPage-BIL4e5I_-CXGJBU9x.js → IssueChargeCardPage-DLX44XaR-CcflhM3M.js} +31 -31
  87. package/dist/assets/LabeledAddressValue-B8awEVKI-DfzIlkwb.js +49 -0
  88. package/dist/assets/LabeledAddressValueField-Dl5yKg2N-CzXWQu_Y.js +45 -0
  89. package/dist/assets/{LabeledControlledCheckBoxField-CwiyOI1Z-M-tLAb4Z.js → LabeledControlledCheckBoxField-B6cLYSmS-taSeLw3M.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-yLzlQU6_-Bfeib5XV.js → LabeledCreatableSingleSelectField-CV4GQQ7F-G2kg_Moc.js} +8 -8
  91. package/dist/assets/LabeledDocumentField-BFhyNqP8-B0rZURtH.js +41 -0
  92. package/dist/assets/{LabeledDropDownFormattedTextField-M_7KWHOd-D-fZzHek.js → LabeledDropDownFormattedTextField-gE3aWP_T-BOWWoTF_.js} +6 -6
  93. package/dist/assets/{LabeledText-CO_4w9Rx-DJRQWqFp.js → LabeledText-0pRIcJw5-Bl9-fI1Z.js} +2 -2
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-zPoNOgP7-j7Lks93T.js → LabeledUserSingleSelectWithSubtitlesField-C-32ySGI-DFmPy8AM.js} +17 -17
  95. package/dist/assets/{LabeledZeniRolesDropDownField-C8-KfR-4-CdARW5vH.js → LabeledZeniRolesDropDownField--l6D29VX-CyvURl9h.js} +11 -11
  96. package/dist/assets/{LinkJETransactionPage-CZVlsT4d-Bn-cESFA.js → LinkJETransactionPage-DLcpx9ns-AgvCjDXO.js} +10 -10
  97. package/dist/assets/{LowBalancePopup-Dl5IXVvh-ZOyts8_X.js → LowBalancePopup-BuelKDeS-DZAUOSm3.js} +6 -6
  98. package/dist/assets/{MagicLinkACHDetailsPage-CP6ti0Ic-8tcSYl4a.js → MagicLinkACHDetailsPage-NIkquHvv-CI7Zc7xz.js} +1 -1
  99. package/dist/assets/{MagicLinkDomesticWireDetailsPage-BhpSDeQW-IeQp4QdV.js → MagicLinkDomesticWireDetailsPage-CdaNz396-BGT3axjJ.js} +1 -1
  100. package/dist/assets/{MagicLinkInternationalWireDetailsPage-BXxTeh0G-gQ2fUGnD.js → MagicLinkInternationalWireDetailsPage-CnEhS5PP-DPChbPBR.js} +1 -1
  101. package/dist/assets/{MagicLinkSuccessPage-Bix48QB5-5BLIJX_g.js → MagicLinkSuccessPage-D_VJZV0O-FtY4wcd1.js} +2 -2
  102. package/dist/assets/MagicLinkTitleSection-tHh2d5Ld-_QN59pd4.js +17 -0
  103. package/dist/assets/MailingDetailsSection-CTrx1xoB-By7vG4Hi.js +21 -0
  104. package/dist/assets/{MeetingCalenderPopup-DlnppXL_-BsJ0aU_e.js → MeetingCalenderPopup-DWvpTRQJ-Bt4xdKnr.js} +1 -1
  105. package/dist/assets/{Menu-B_GJLZiP-mNj9dFun.js → Menu-CbQ6Zkdp-B0rPvp7W.js} +2 -2
  106. package/dist/assets/{MyBankConnectionsSettingsPage-2DAYVmHh-fUm8E92x.js → MyBankConnectionsSettingsPage-9dQLb8iw-C8Rj57bA.js} +17 -17
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-CWQq9D2t-Da8VyALM.js → MyPendingActivationChargeCardListPage-B2-YthuF-cm2yxhR4.js} +2 -2
  108. package/dist/assets/{MyProfileSettingsPage-imD_-Umc-DKjDOanW.js → MyProfileSettingsPage-CfmYPv4_-aC1znwk8.js} +5 -5
  109. package/dist/assets/NavBarWithPicker-Bzkl4W0x-CDy3Aggh.js +30 -0
  110. package/dist/assets/{NavigationArrow-De1st3tA-BAPoCX85.js → NavigationArrow-9pvhzLz8-DNW8ChSX.js} +1 -1
  111. package/dist/assets/NavigationDots-CXPwKFh1-CN4i4rO7.js +15 -0
  112. package/dist/assets/{NewGlobalMerchantPage-euJK3CXB-sukBYO3J.js → NewGlobalMerchantPage-D6ZpP6J1-D56cB-sU.js} +12 -12
  113. package/dist/assets/{NoDataChart-D_S6Pfkm-C3JVPSeM.js → NoDataChart-BUR7CF8w-JBqV9jC1.js} +1 -1
  114. package/dist/assets/{NoDataTable-CLwNCXFE-rGXp6Upe.js → NoDataTable-3L4pbKR0-B7fSM3B6.js} +1 -1
  115. package/dist/assets/{NotFoundPage-JfbMP3OG-CdLC4JTC.js → NotFoundPage-CgZfmKbj-BRxQmcCY.js} +1 -1
  116. package/dist/assets/{NotificationSettingsPage-YBgrQBb2-Cpy35xKn.js → NotificationSettingsPage-BwYT3Tdc-D89puZca.js} +14 -14
  117. package/dist/assets/NotificationsListConfig-CeeJpJ2p-8AiJrLfH.js +1 -0
  118. package/dist/assets/{NotificationsPage-C3pnQT-K-CVRF5kRL.js → NotificationsPage-6qNQYQK4-DLvnPKkn.js} +39 -39
  119. package/dist/assets/{OpExByVendorPage-7FEOhvd--RHaoySaH.js → OpExByVendorPage-C28MBvmW-CYPqi7IY.js} +6 -6
  120. package/dist/assets/{OverlayContainerPage-GWXnlbZH-CVXBjiin.js → OverlayContainerPage-9K5jaX8Z-BZxsFO4t.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-D0f5zvhp-DcJszdXh.js → PandLWithForecastPage-onJJ3Fh4-_QaDHG-Z.js} +12 -12
  122. package/dist/assets/PaymentAccountSetupBillingAddressSection-nGuJ5fbq-D3E47Aos.js +107 -0
  123. package/dist/assets/{PeoplePage-B-j04rvc-CCfL9FKm.js → PeoplePage-CKzezKqB-ByzrDmy1.js} +33 -33
  124. package/dist/assets/PortfolioAllocationFormPage-28Rg5Um0-BlYwyLHy.js +207 -0
  125. package/dist/assets/{PortfolioDetails-C-YfZonF-CLSJrpEX.js → PortfolioDetails-CIv1yXo2-BXO78bZH.js} +34 -34
  126. package/dist/assets/{ProductsCarousel-9USsVLuf-Dx3uyiaJ.js → ProductsCarousel-CSUQ6rVw-BjLG54WQ.js} +7 -7
  127. package/dist/assets/{PromoBaseCards-OKpdHchW-DlAtXYPN.js → PromoBaseCards-2L1JfY-v-8Fx_ViSz.js} +5 -5
  128. package/dist/assets/{QBOConnectionDialog-BUr2NQiK-W-7dllOf.js → QBOConnectionDialog-DNP_b7aK-BzvUOq7o.js} +5 -5
  129. package/dist/assets/{QBOSetupSection-Cmf7-3wv-qvwzEewL.js → QBOSetupSection-CGrGCC2j-CuJwLC6X.js} +11 -11
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-Dev4FHVt-D88aB6v1.js → ReimbursementApprovalRuleDetailPage-DqxyCfuQ-BcbdBa6J.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-BLMJY7El-e_ujsVQc.js → ReimbursementApprovalRulesPage-D_RMSSoW-DW4d-zUH.js} +33 -33
  132. package/dist/assets/{ReimbursementDetailPage-BIyq0BC0-CB2Fd2bq.js → ReimbursementDetailPage-BkT7zJoE-BUepvklz.js} +20 -20
  133. package/dist/assets/ReimbursementPromoPage-DQsLI50f-DvpBhx7F.js +112 -0
  134. package/dist/assets/{ReimbursementSetUpPage-VKXRSodl-D7JcNewb.js → ReimbursementSetUpPage-lH4Z7Lqi-C3uS6udC.js} +15 -15
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BmUcVSjU-BLnUm02Q.js → ReimbursementsBulkReviewDrawerPage-Bvh4mRws-DVwJvL8d.js} +1 -1
  136. package/dist/assets/{ReloadCard-DZhxB7Ar-hF1gT-u0.js → ReloadCard-BQKVLlzZ-CTM6ZQom.js} +5 -5
  137. package/dist/assets/{ReportTableViewSelector-DSfx5ZD--Dci-a61G.js → ReportTableViewSelector-Cvk4LxRf-eJ2TbRx4.js} +10 -10
  138. package/dist/assets/{ReportsPage-CLH0u0Bh-C1MJTTfa.js → ReportsPage-C2cIfu51-BxZnm0Ag.js} +5 -5
  139. package/dist/assets/{RevenueChart-BeqQveLu-DeA8SaiY.js → RevenueChart-ByCekdyG-8uQwfY47.js} +17 -17
  140. package/dist/assets/{ReviewDetailsPage-Dq7hRX5W-O_RQR1-u.js → ReviewDetailsPage-DGyfz9q5-BKYXEzMr.js} +25 -25
  141. package/dist/assets/{ReviewOverlay-BNHqYk2g-GkMrLGZt.js → ReviewOverlay-Dp5yLAdR-BtQ_1SYB.js} +24 -24
  142. package/dist/assets/RoleWithToolTip-B7xRZ-3a-DOUAAL_V.js +22 -0
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-QE0wa196-BAk-TXp_.js → ScheduleDetailsFixedAssetsPage-BvJX-G-F-EcV0Ga4I.js} +8 -8
  144. package/dist/assets/{ScheduleDetailsPage-BVyX-Z0H-BlUtpB7o.js → ScheduleDetailsPage-CNpkuW7O-B_ravSuG.js} +3 -3
  145. package/dist/assets/{ScheduleSequenceTable-D1FYbPfU-Ch0thzHH.js → ScheduleSequenceTable-B_90qPjE-CouAcwmm.js} +16 -16
  146. package/dist/assets/{ScreenRoutes-DE3IzrIT.js → ScreenRoutes-AFpRn9FR.js} +62 -62
  147. package/dist/assets/{SetUpAccountSection-CYn2o43t-Cyl8tfm8.js → SetUpAccountSection-D5x8PZG1-DygZSmwk.js} +17 -17
  148. package/dist/assets/{SetUpDefaultSection-C0-L2ZyA-BVH3L8he.js → SetUpDefaultSection-BsOdnADR-CaLnvPCj.js} +10 -10
  149. package/dist/assets/{SignIn-BIxTodeo-CKTRpX1-.js → SignIn-Bt7hCYjV-EKx-pTxB.js} +20 -20
  150. package/dist/assets/{SignInScreen-BiA-KBBQ.js → SignInScreen-rurSzHF5.js} +1 -1
  151. package/dist/assets/{SpendManagementListViewPage-DXtvYcrg-CdBfKQlr.js → SpendManagementListViewPage-C5cJKuRq-BvXZ8iTI.js} +12 -12
  152. package/dist/assets/{SpendManagementPerTabPage-Cn-UsxaR-D2WwRrYC.js → SpendManagementPerTabPage-IBAw8wc4-CqequpCF.js} +45 -45
  153. package/dist/assets/{SpendManagementSection-BBR4aFIT-DzW24Skc.js → SpendManagementSection-yNP3swb6-CDpN_vFS.js} +14 -14
  154. package/dist/assets/{SpendMgmtSetupAccountSection-DedLETSm-YLSeERft.js → SpendMgmtSetupAccountSection-CYxt9dN8-jE6ury5g.js} +19 -19
  155. package/dist/assets/{StatementItem-CnpTW8qb-D17PfvTr.js → StatementItem-q9U89Htr-Dnon4hoE.js} +9 -9
  156. package/dist/assets/{StatementsPage-Pdhh6wDA-jwcjw1WZ.js → StatementsPage-BM5Glizw-CQVS_jKg.js} +6 -6
  157. package/dist/assets/{StatusSwitcher-CY3fhZpk-DDb6KoNb.js → StatusSwitcher-CtuL5COG-G6MVUY78.js} +1 -1
  158. package/dist/assets/{SubTabSwitcher-BgzS4on6-Dwoyfu-k.js → SubTabSwitcher-DHiC-mOv-DT2nPRyj.js} +3 -3
  159. package/dist/assets/{SummaryCard-DB_r9qW_-DWYafO_s.js → SummaryCard-D4Me-qWU-DQUY-zeO.js} +1 -1
  160. package/dist/assets/{TaskManagementPage-B0gR2j1v-COQTSpG8.js → TaskManagementPage-D-F7ufTD-e1fJ4aPt.js} +34 -34
  161. package/dist/assets/{TimeRangeSwitcher-BbdpFsMU-BLzIMI-C.js → TimeRangeSwitcher-CGN9Hq2L-r0shmfu7.js} +2 -2
  162. package/dist/assets/{TimeframeSwitcher-CUpsv6b1-DSn3wgUk.js → TimeframeSwitcher-BN4-ACoQ-D22kJoI6.js} +1 -1
  163. package/dist/assets/{TimeframeSwitcherWithToggle-DZbOWm8e-yKyY1kGN.js → TimeframeSwitcherWithToggle-BkzCFclG-CPGMypUZ.js} +2 -2
  164. package/dist/assets/{TopExCard-Bn5xXUvj-CEaRP9sl.js → TopExCard-Wuzj4gLV-Dr3lX9dX.js} +5 -5
  165. package/dist/assets/{TopExDetailPage-DRjO-pGo-C3d4g0dQ.js → TopExDetailPage-DMYNc-gj-DbGIeoCc.js} +10 -10
  166. package/dist/assets/{TransactionDetailPage-L-yLO1SI-DqT88RlY.js → TransactionDetailPage-CcryBjJ4-DTQbu83x.js} +43 -43
  167. package/dist/assets/{TransactionList-CSb5yqQj-D5O9i1eU.js → TransactionList-BrOpzi25-Db-4cinW.js} +9 -9
  168. package/dist/assets/{TransactionListBig-f2x4xrky-DSDJ_EXD.js → TransactionListBig-D6QMNaV6-CAdEtJgN.js} +26 -26
  169. package/dist/assets/TransactionListPage-BB_LkPKR-hsIp58b2.js +35 -0
  170. package/dist/assets/TransactionVendorDetailPage-RajWBB1I-BdySPl7M.js +80 -0
  171. package/dist/assets/TransferDrawerPage-D-KFK0BM-lEsdgmBR.js +362 -0
  172. package/dist/assets/{TreasuryOverviewPage-B01cSfUQ-kSH9i23n.js → TreasuryOverviewPage-EDaXKMNQ-CrrmzIet.js} +59 -59
  173. package/dist/assets/{TreasuryPromoPage-DC46ObGy-6BFpTzC9.js → TreasuryPromoPage-Brja4nGR-DglH7Il8.js} +26 -25
  174. package/dist/assets/{TreasurySetupPage-CiIqfQLR-Zvu7PlM8.js → TreasurySetupPage-8ZXXBvyU-l9-yURTU.js} +9 -9
  175. package/dist/assets/{TreasuryStatementsPage-C_pfPvgz-CvRKmTd0.js → TreasuryStatementsPage-BjT1FVfa-wIBwl3Q0.js} +5 -5
  176. package/dist/assets/{TreasuryTaxLetterPage-D-4Ntky2-CbNYYuLW.js → TreasuryTaxLetterPage-Cxk8TjrI-DPLTc42N.js} +5 -5
  177. package/dist/assets/TreasuryTransferOrReviewPage-DrNld8H2-DCvG8LPc.js +506 -0
  178. package/dist/assets/{TrendChart-DKIa4o8k-VO_JzwoY.js → TrendChart-D2B0mwGW-BG_v97N6.js} +5 -5
  179. package/dist/assets/{TrendWithTransactions-BumhCIjm-Yg7fpcN4.js → TrendWithTransactions-Ch8smOOz-jen0aqye.js} +6 -6
  180. package/dist/assets/{UncategorizedAccountsMappingPage-C4Njvj_H-DLrR6DBY.js → UncategorizedAccountsMappingPage-CCIn9g7v-pUmVA_Xq.js} +8 -8
  181. package/dist/assets/{UnitIntegrationPage-D_tfUXdS-Cl4gvNRF.js → UnitIntegrationPage-SY0L_D7Z-Cbnt8xFH.js} +5 -5
  182. package/dist/assets/{UploadAdditionalDocumentOverlay-CSdTPTA3-D_QTNdVG.js → UploadAdditionalDocumentOverlay-BowxerPw-ByoVxHT3.js} +2 -2
  183. package/dist/assets/{Vendor2FAPopup-DgKVft1G-BbWcKAyH.js → Vendor2FAPopup-DvWVDx58-nCTKo0G7.js} +1 -1
  184. package/dist/assets/{VendorACHDetailsPage-DdAbrbpS-CaSYamcy.js → VendorACHDetailsPage-Ba1oMHkp-BxaJZz_l.js} +1 -1
  185. package/dist/assets/{VendorDetailPage-CSPbUx-h-BA4BV8lD.js → VendorDetailPage-CjBeVAkw-CNG6GTiT.js} +12 -12
  186. package/dist/assets/{VendorDomesticWireDetailsPage-GODvpEne-B7JWdU5P.js → VendorDomesticWireDetailsPage-DJcyNUun-B_mMtp62.js} +1 -1
  187. package/dist/assets/{VendorFiling1099EditablePage-ByfEwSZJ-3EJs6Pdf.js → VendorFiling1099EditablePage-CUWkLY0f-CFmjh1GG.js} +10 -10
  188. package/dist/assets/{VendorFirstReviewPage-B2-UtNMO-BpFbEEFE.js → VendorFirstReviewPage-XUgEai-M-DTz6r_sf.js} +14 -14
  189. package/dist/assets/{VendorInternationalWireDetailsPage-DSziQ0jO-JD1dzlHt.js → VendorInternationalWireDetailsPage-BgHCBv0S-CqCl2AuO.js} +11 -11
  190. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Dqc7XLbW-XxvhKcbT.js → VendorInternationalWireSwiftDetailsPage-axseacZL-DJ6kdu0R.js} +1 -1
  191. package/dist/assets/{VendorsAccountsSection-BLwMi5AB-CCLynqTL.js → VendorsAccountsSection-oYghWvs6-YBKazVEG.js} +4 -4
  192. package/dist/assets/VerifyDevice-XUExnmR9-Dvl0QizA.js +67 -0
  193. package/dist/assets/{WarningsDrawerPage-3h7UME3Y-DNttzlAa.js → WarningsDrawerPage-B1his2AN-wDPc6ygf.js} +11 -11
  194. package/dist/assets/{ZeniAccountDetailPage-Dn70Xhjm-D4MEKJZT.js → ZeniAccountDetailPage-B21kawRR-cYQnKtb2.js} +26 -26
  195. package/dist/assets/{ZeniAccountListViewPage-C7CX6-Bl-CV3TlLO2.js → ZeniAccountListViewPage-D9lefqbT-BqcU0pmn.js} +26 -26
  196. package/dist/assets/ZeniAccountNavBarPieces-5yZFq-zt-jLGGdcn1.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-CLufbB-B-BJ_7DF1e.js → ZeniAccountPromoPage-B8aWqCOQ-CKv07I8x.js} +21 -21
  198. package/dist/assets/{ZeniAccountSetupPage-rLdRA3Ld--977FCkZ.js → ZeniAccountSetupPage-BmFF5yvk-D-AdXd5I.js} +3 -3
  199. package/dist/assets/{ZeniCopyright-BItiuePl-C7k-X__M.js → ZeniCopyright-eQoaUH08-BVCPJkWr.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-DYCK5UWr-DVAoQDrm.js → ZeniTransferAmountSlider-B6ftMZ_m-C-6X1EH-.js} +2 -2
  201. package/dist/assets/{analyticsHelper-D4zFEqKN-DzUQzUlK.js → analyticsHelper-Bns4muDg-CtVpldLz.js} +1 -1
  202. package/dist/assets/{analyticsHelper-ClYKq5_x.js → analyticsHelper-u4uoMPvS.js} +1 -1
  203. package/dist/assets/{chartTypes-yiqF7w9Y-BGOhcpTx.js → chartTypes-ZJYcsh-k-BCVVPSGZ.js} +1 -1
  204. package/dist/assets/{commonDimensions-PPvas5dK-BGZQSqLq.js → commonDimensions-NUQEpowf-g8lux_Te.js} +1 -1
  205. package/dist/assets/{detailCommon-mCAXI64G-BAwUCtmX.js → detailCommon-DMKakaa6-DVMNrgCv.js} +7 -7
  206. package/dist/assets/{downloadPdf-C3XpsGeN-DqiveqBb.js → downloadPdf-CNrmv_yZ-BgWfIYNz.js} +1 -1
  207. package/dist/assets/{index-BS9BhstZ.js → index-CnrHU8WN.js} +4373 -4206
  208. package/dist/assets/{liveblocks-sSQ9JElv.js → liveblocks-DZpRS25q.js} +1 -1
  209. package/dist/assets/{mapLoadingInProgressToTreeNode-7wU2HX2P-Dj0X-cbJ.js → mapLoadingInProgressToTreeNode-CwLhcXcQ-nJqrr22I.js} +1 -1
  210. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-dSxF1sWM-BmY0ko4z.js → mapSectionWithAcOnlyToTreeNode-D8iLkGEE-Bl5usORJ.js} +1 -1
  211. package/dist/assets/{mapSpacerToTreeNode-1mXbBuNs-BE-8149w.js → mapSpacerToTreeNode-CF_gEYDy-aRE98CQL.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-DXVQrusd-BAb1FqOY.js → mapTimeframeBalancesToTreeNode-B672MK55-v1Bjh3U8.js} +1 -1
  213. package/dist/assets/{mapTimeframeBalancesToTreeNode-DtAULIDB-B4AiSiuC.js → mapTimeframeBalancesToTreeNode-Dp2QmYvb-Cr-c38Jl.js} +1 -1
  214. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DAqn8gdX-DPgokZ5l.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BaEMd-vj-CsyeIH1c.js} +1 -1
  215. package/dist/assets/mui-Bi8r7UDG.js +25 -0
  216. package/dist/assets/{play-icon-NvLdXSYk-BXzTREV-.js → play-icon-CgWP2Myd-BVsSsxSg.js} +1 -1
  217. package/dist/assets/{redux-ByjIRbhZ.js → redux-CC-tnuv1.js} +1 -1
  218. package/dist/assets/{routing-Cpaypegg.js → routing-CxYXTKiv.js} +1 -1
  219. package/dist/assets/{toCOABalancesWithID-C9fWPLt9-B2HBMv4h.js → toCOABalancesWithID-DJNZCEmi-D5UU_YFX.js} +1 -1
  220. package/dist/assets/{toChartData-BMDCuCgs-CEUldhRx.js → toChartData-HYsxUPzh-De2YqXiL.js} +1 -1
  221. package/dist/assets/{treasuryColorHelper-COfuUI3C-D6JaGfR1.js → treasuryColorHelper-BgV2H9Kv-BBqEUahx.js} +1 -1
  222. package/dist/assets/{uploadAttachment-DSku547V-Dfv7WcEs.js → uploadAttachment-BgjFjkkw-DJYt86D-.js} +34 -34
  223. package/dist/assets/{uploadReceipts-D80JLNY4-B-E7WYbX.js → uploadReceipts-CwjPukNh-SrJVbi2t.js} +1 -1
  224. package/dist/index.html +1 -1
  225. package/package.json +4 -4
  226. package/dist/assets/ACHDetailsPage-DyEK-yAb-CYzjb0P6.js +0 -21
  227. package/dist/assets/ApAgingDetailPage-C2HUvxWk-CmXftBCt.js +0 -46
  228. package/dist/assets/AppBasePage-C63xauck-B7uL-jnJ.js +0 -68
  229. package/dist/assets/BusinessVerificationPage-ClBQ39GB-lK0gfMrq.js +0 -140
  230. package/dist/assets/ChargeCardPromoPage-COA7csMK-Dhz6qtv_.js +0 -219
  231. package/dist/assets/CheckDepositDrawerPage-Cfdkbh0L-Cng8frow.js +0 -206
  232. package/dist/assets/CompleteProfile-Cp_nXCBI-BE9X5-eY.js +0 -36
  233. package/dist/assets/ConfettiBurst-tf23hrA_-zNQ15guQ.js +0 -1
  234. package/dist/assets/CustomerOnboardingContainerPage-DXWtttsb-B7v6_HN6.js +0 -1
  235. package/dist/assets/DepositAccTransactionListPage-BTZovTIK-DGF3gicj.js +0 -66
  236. package/dist/assets/EditPeoplePage-D2zQG-_T-BitbZ9jO.js +0 -55
  237. package/dist/assets/FeaturePreviewPage-Bv0D92ik-C-aLsKYk.js +0 -11
  238. package/dist/assets/InsightsSection-CSG5sVaE-CIf6iKuS.js +0 -27
  239. package/dist/assets/InvitePeoplePage-By3sTPj1-D6QvW3zn.js +0 -12
  240. package/dist/assets/InvoiceUploadSection-B8OA6oqe-BVyTHteY.js +0 -140
  241. package/dist/assets/LabeledAddressValue-BJ1dXCb1-xOyKePQ9.js +0 -49
  242. package/dist/assets/LabeledAddressValueField-DZCn1w6m-DYHHw-KS.js +0 -45
  243. package/dist/assets/LabeledDocumentField-gxNaFx2j-B3wJNd8f.js +0 -41
  244. package/dist/assets/MagicLinkTitleSection-DdTLuD-8-2eGCS_tx.js +0 -17
  245. package/dist/assets/MailingDetailsSection-Bo_v3Gp2-BGvmU6P-.js +0 -21
  246. package/dist/assets/NavBarWithPicker-D0Bv9P4m-BQsnrfPP.js +0 -30
  247. package/dist/assets/NavigationDots-BfJxPG2K-CpLLe-k9.js +0 -14
  248. package/dist/assets/NotificationsListConfig-TCmn6L9k-LI7EhO_K.js +0 -1
  249. package/dist/assets/PaymentAccountSetupBillingAddressSection-CBvjcBEH-CfnKIIUr.js +0 -106
  250. package/dist/assets/PortfolioAllocationFormPage-yvAHgF_R-D9k2f595.js +0 -207
  251. package/dist/assets/ReimbursementPromoPage-Dox8Q_BC-BCFx3nzd.js +0 -112
  252. package/dist/assets/RoleWithToolTip-Cob2-Ppj-Chor2yuB.js +0 -22
  253. package/dist/assets/TransactionListPage-XP6Axg1M-41ODaIRL.js +0 -35
  254. package/dist/assets/TransactionVendorDetailPage-CY9kUYZc-DGMwaOvo.js +0 -80
  255. package/dist/assets/TransferDrawerPage-DOMX4_HE-BJbzuBja.js +0 -362
  256. package/dist/assets/TreasuryTransferOrReviewPage-CjxiFUqO-CkGSBfSi.js +0 -506
  257. package/dist/assets/ZeniAccountNavBarPieces-Cl1zQVNd-Hw2Z1YcK.js +0 -14
  258. package/dist/assets/mui-C5LQ0bMa.js +0 -25
@@ -1,4 +1,4 @@
1
- import{X as oe,u as ze,M as ne,a as ke,cw as K,gI as de,c3 as Ae,C as w,j as t,aV as Be,_ as Ee,F as Oe,c6 as C,o as s,ca as Re,gB as We,fE as qe,ce as Me,gC as He,gD as Ue,cm as Ke,a4 as Ge,co as _e,cx as Qe,q as c,a3 as Ye,bf as D,c1 as Ze,gJ as Je,g as I,eQ as Xe,bH as et,e as ce,ez as tt,gK as st,gL as lt,gM as M,cy as it}from"./index-BS9BhstZ.js";import{b as y,n as a}from"./vendor-CnQcJ2Lu.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-M_7KWHOd-D-fZzHek.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const te={largeLabelWidth:new w(160,210,230),paddingBottom:new w(c[3],c[2])},j=(e,i)=>`${e}.${i}`;function at(e){const{loadingState:i}=e;return t.jsx(ot,{...e,isDisabled:e.isDisabled||i==="In-Progress"?"disabled":void 0})}function ot({googleAPIKey:e,addressToEdit:i,sectionId:o,isDisabled:h,style:R}){const E=oe(),u=ne.getLocalizedStrings().companyPassport,p=te.largeLabelWidth.value(E);return t.jsxs(t.Fragment,{children:[t.jsx(se,{type:"hidden",value:"noAutoFill"}),t.jsx(nt,{style:R,children:t.jsxs(dt,{children:[t.jsx(st,{isDisabled:h,label:{label:u.address.street,width:p,showBullet:!0},addressField:{name:j(o,"street"),defaultValue:{addressString:i?.street[0]??"",addressValue:i!=null?de(i):void 0},placeholder:M(u.address.street),registerOptions:{required:!0,validate:v=>v!=null?!!v.addressString:!1},autoComplete:"new-password",googleAPIKey:e,addressFormatter:lt},style:{border:"none",width:"100%",outline:"none"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.suite,width:p,showBullet:!0},style:{wordBreak:"break-word",width:"100%",outline:"none"},text:{type:"text",name:j(o,"suite"),defaultValue:i?.street[1],placeholder:u.address.suitePlaceholder,autoComplete:"new-password"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.city,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"city"),defaultValue:i?.city,placeholder:M(u.address.city),autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.state,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"state"),defaultValue:i?.state,placeholder:M(u.address.state),autoComplete:"new-password",options:{required:!0}}}),t.jsx(se,{readOnly:!0,value:"noAutoFill"}),t.jsx(it,{isDisabled:h,label:{label:u.address.country,width:p,showBullet:!0},style:{width:"100%",outline:"none"},countrySelectField:{name:j(o,"country"),placeholder:u.address.countryPlaceholder,defaultValue:K(i?.country),registerOptions:{validate:v=>!!(v!=null&&v.selectedOption)}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.zipCode,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"postalCode"),defaultValue:i?.postalCode,placeholder:u.address.zipCodePlaceHolder,autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.secondaryInfo,width:p,showBullet:!0},style:{paddingBottom:te.paddingBottom.valuePx(E),width:"100%",outline:"none"},text:{type:"text",name:j(o,"secondaryInfo"),defaultValue:i?.street[2],placeholder:u.address.secondaryInfoPlaceholder,autoComplete:"new-password"}})]})})]})}const nt=a.div`
1
+ import{e as oe,u as ze,M as ne,a as ke,cA as G,gM as de,c7 as Ae,C as w,j as t,aW as Be,$ as Ee,F as Oe,ca as C,o as s,ce as We,gF as qe,fH as Me,ci as Re,gG as He,gH as Ue,cq as Ge,a4 as Ke,cs as Ye,cB as Qe,q as c,a3 as Je,bg as D,c5 as Ze,gN as _e,g as I,eU as Xe,bL as et,n as ce,eD as tt,gO as st,gP as lt,gQ as R,cC as it}from"./index-CnrHU8WN.js";import{b as x,n as a}from"./vendor-CnQcJ2Lu.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-gE3aWP_T-BOWWoTF_.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";const te={largeLabelWidth:new w(160,210,230),paddingBottom:new w(c[3],c[2])},j=(e,i)=>`${e}.${i}`;function at(e){const{loadingState:i}=e;return t.jsx(ot,{...e,isDisabled:e.isDisabled||i==="In-Progress"?"disabled":void 0})}function ot({googleAPIKey:e,addressToEdit:i,sectionId:o,isDisabled:h,style:W}){const E=oe(),u=ne.getLocalizedStrings().companyPassport,p=te.largeLabelWidth.value(E);return t.jsxs(t.Fragment,{children:[t.jsx(se,{type:"hidden",value:"noAutoFill"}),t.jsx(nt,{style:W,children:t.jsxs(dt,{children:[t.jsx(st,{isDisabled:h,label:{label:u.address.street,width:p,showBullet:!0},addressField:{name:j(o,"street"),defaultValue:{addressString:i?.street[0]??"",addressValue:i!=null?de(i):void 0},placeholder:R(u.address.street),registerOptions:{required:!0,validate:v=>v!=null?!!v.addressString:!1},autoComplete:"new-password",googleAPIKey:e,addressFormatter:lt},style:{border:"none",width:"100%",outline:"none"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.suite,width:p,showBullet:!0},style:{wordBreak:"break-word",width:"100%",outline:"none"},text:{type:"text",name:j(o,"suite"),defaultValue:i?.street[1],placeholder:u.address.suitePlaceholder,autoComplete:"new-password"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.city,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"city"),defaultValue:i?.city,placeholder:R(u.address.city),autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.state,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"state"),defaultValue:i?.state,placeholder:R(u.address.state),autoComplete:"new-password",options:{required:!0}}}),t.jsx(se,{readOnly:!0,value:"noAutoFill"}),t.jsx(it,{isDisabled:h,label:{label:u.address.country,width:p,showBullet:!0},style:{width:"100%",outline:"none"},countrySelectField:{name:j(o,"country"),placeholder:u.address.countryPlaceholder,defaultValue:G(i?.country),registerOptions:{validate:v=>!!(v!=null&&v.selectedOption)}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.zipCode,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"postalCode"),defaultValue:i?.postalCode,placeholder:u.address.zipCodePlaceHolder,autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.secondaryInfo,width:p,showBullet:!0},style:{paddingBottom:te.paddingBottom.valuePx(E),width:"100%",outline:"none"},text:{type:"text",name:j(o,"secondaryInfo"),defaultValue:i?.street[2],placeholder:u.address.secondaryInfoPlaceholder,autoComplete:"new-password"}})]})})]})}const nt=a.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-left: ${s.sp3};
@@ -33,7 +33,7 @@ import{X as oe,u as ze,M as ne,a as ke,cw as K,gI as de,c3 as Ae,C as w,j as t,a
33
33
  display: flex;
34
34
  justify-content: space-between;
35
35
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
36
- `,ht=()=>t.jsx(ct,{children:[...Array(1)].map((e,i)=>t.jsxs(ut,{children:[t.jsx(D,{style:{marginBottom:s.sp4},width:120,height:c[4]}),t.jsxs(pt,{children:[[...Array(5)].map((o,h)=>t.jsxs(H,{children:[t.jsx(D,{width:70,height:c[4]}),t.jsx(D,{width:140,height:c[4]})]},h)),t.jsx(H,{children:t.jsx(D,{width:120,height:c[4]})}),t.jsx(gt,{children:[...Array(7)].map((o,h)=>t.jsxs(H,{children:[t.jsx(D,{width:70,height:c[4]}),t.jsx(D,{width:140,height:c[4]})]},h))})]})]},i))}),$={largeLabelWidth:new w(130,200,300),labelMarginLeft:new w(c[3],c[4]),labelMarginTop:new w(c[2],c[3]),labelMarginBottom:new w(c[2],c[3]),containerPaddingLeft:new w(c[3],c[6],c[8]),containerPaddingRight:new w(c[3],c[6],c[8])},mt={zIndex:2,minHeight:62},l="vendor1099FilingSectionId",ue="legalName",pe="email",ge="phone",he="taxClassification",me="tinType",xe="tinValue",xt="street",yt="suite",ft="city",bt="state",wt="country",$t="countryCode",vt="postalCode",jt="secondaryInfo",U=e=>`${e}_form`,F=(e,i)=>`${e}.${i}`,{spendManagement:St,common:r}=ne.getLocalizedStrings(),S=St.billPay.vendorCreation,k=r.labels,le=r.footer,Xt=e=>{const i=oe(),o=new AbortController,h=ze(),R=o.signal,{onVendorFiling1099UploadDetailsSave:E,vendorId:u,vendorFiling1099UploadDetailsViewState:p,onSaveChangesToLocalStore:v,vendorFiling1099UploadDetails:V,fetchVendorFetchStatus:G,onAddressEditHandler:ye,goBackToListPage:_,onResetVendorFiling1099FormStatus:fe,googleAPIKey:be}=e,{vendor1099DetailsSaveStatus:T,vendor1099DetailsLocalData:d,w9FormUploadStatus:Q}=p,[Y,Z]=y.useState(V.addressStatus?.addressToCreate??{street:[],city:"",state:"",country:"",countryCode:"",postalCode:""}),J=y.useRef(null),{vendorTypeList:W}=V,N=y.useRef(null),z=y.useRef(null),X=y.useRef(!1);y.useEffect(()=>{z.current===null&&d.legalName!=r.strings.empty&&p.vendor1099DetailsAutoFilledValues?.legalName===!0&&(z.current=d.legalName)},[d.legalName]),y.useEffect(()=>{N.current===null&&d.legalName!==r.strings.empty&&(N.current=d.legalName)},[d.legalName]),y.useEffect(()=>{V?.addressStatus?.addressToCreate&&p.vendor1099DetailsAutoFilledValues?.address===!0&&X.current===!1&&(Z(V.addressStatus.addressToCreate),X.current=!0)},[V,p.vendor1099DetailsAutoFilledValues?.address]);const m=ke({mode:"onSubmit",defaultValues:ae(d,W??[],Y),values:ae(d,W??[],Y)}),{isValid:we}=m.formState,$e=m.handleSubmit(()=>{we&&(ye(m.getValues()),E(u,R))}),{vendor1099DetailsAutoFilledValues:f}=p,ve=()=>f?.tin.type===!0||f?.tin.value===!0||f?.legalName===!0||f?.taxClassification===!0,je=async(x,n)=>{if(x!=null){const g={...n},Le=g[l].legalName,Pe=g[l].email,De=g[l].phone,Fe=g[l].taxClassification,Ie=g[l].tinType,ee=g[l].tinValue,Te={legalName:Le??r.strings.empty,vendorId:u,contact:{email:Pe??r.strings.empty,phone:De??r.strings.empty,fullName:d.contact?.fullName??r.strings.empty,id:d.contact?.id??r.strings.empty},taxClassification:Fe.selectedType??r.strings.empty,tin:{type:Ie??null,value:ee??null},tinValue:ee??null};if(x.includes(`${l}.street`)&&n.vendor1099FilingSectionId.street!=null){const{addressValue:P}=n.vendor1099FilingSectionId.street,Ne=m.getValues(`${l}.country`),q=K(P?.country);m.setValue(l,{...n[l],street:n.vendor1099FilingSectionId.street,city:P?.locality??"",state:P?.administrativeAreaLevel1??"",country:q,countryCode:P?.countryCode??"",postalCode:P?.postalCode??"",secondaryInfo:n.vendor1099FilingSectionId.secondaryInfo??"",suite:n.vendor1099FilingSectionId.suite??""}),_e(m.formState.errors,`${l}.city`)&&P?.locality&&m.trigger(`${l}.city`),Ne.selectedOption!==q.selectedOption&&m.setValue(`${l}.country`,q)}else x==="vendor1099FilingSectionId.country"&&n[l].country.selectedOption!=null&&m.setValue(`${l}.countryCode`,Qe(n[l].country.selectedOption));v(Te)}};y.useEffect(()=>{const x=m.watch((n,{name:g})=>{g!=null&&n!=null&&((g.startsWith(`${l}.street`)||g.startsWith(`${l}.city`)||g.startsWith(`${l}.state`)||g.startsWith(`${l}.country`)||g.startsWith(`${l}.postalCode`))&&n[l]!=null&&Z({street:[n[l].street?.addressString??r.strings.empty,n[l].suite??r.strings.empty,n[l].secondaryInfo??r.strings.empty],city:n[l].city??r.strings.empty,state:n[l].state??r.strings.empty,country:n[l].country?.selectedOption??r.strings.empty,countryCode:n[l].countryCode,postalCode:n[l].postalCode??r.strings.empty}),Ae(()=>je(g,n)))});return()=>{x.unsubscribe()}});const L=$.largeLabelWidth.value(i),Se=T.error?.message??r.strings.empty,Ce=T.error?.title??r.strings.empty,Ve=()=>T?.fetchState==="In-Progress"||G?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",b=G?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress";return y.useEffect(()=>()=>{o.abort(),fe()},[]),t.jsx(Vt,{windowSize:i,children:t.jsxs(Ct,{windowSize:i,children:[t.jsxs(Lt,{windowSize:i,ref:J,children:[t.jsx(Be,{title:(p.vendor1099DetailsAutoFilledValues?.legalName===!0?z.current:N.current)??r.strings.empty,backgroundColor:h.colors.grey4,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:t.jsx(Dt,{windowSize:i,onClick:_,"data-testid":Ee("vendor-filling-1099-details-editable-page-close-icon")}),scrollableContent:J,enableTitleOnScroll:!0,scrollThreshold:50,source:"VendorFiling1099EditablePage"}),b===!0?t.jsx(ie,{windowSize:i,isLoading:b,children:t.jsx(ht,{})}):t.jsxs(ie,{windowSize:i,isLoading:b,children:[i==="small"?t.jsx(Ft,{windowSize:i,children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?z.current:N.current}):t.jsx(It,{children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?z.current:N.current}),T.fetchState==="Error"?t.jsxs(Tt,{children:[t.jsx(At,{}),t.jsxs(Nt,{children:[t.jsx(zt,{children:Ce}),t.jsx(kt,{children:Se})]})]}):null,ve()&&t.jsxs(Ot,{children:[t.jsx(B,{}),t.jsx(Rt,{children:S.vendorDetails.banner})]}),t.jsx(Oe,{...m,children:t.jsx("form",{id:U(l),onSubmit:$e,children:t.jsxs(Pt,{isLoading:b,children:[t.jsx(O,{children:f?.legalName===!0&&!b?t.jsx(B,{}):null}),t.jsx(C,{label:{label:k.legalName,width:L,style:{marginLeft:s.sp4}},style:{width:"auto",borderTopLeftRadius:s.sp2,borderTopRightRadius:s.sp2},text:{type:"text",name:F(l,ue),defaultValue:d.legalName,placeholder:S.vendorDetails.legalNamePlaceHolder,options:{required:!0,validate:x=>x!==r.strings.empty}}}),t.jsx(A,{}),t.jsxs(t.Fragment,{children:[t.jsx(C,{label:{label:k.email,width:L,style:{marginLeft:s.sp4}},style:{width:"auto"},text:{type:"email",name:F(l,pe),defaultValue:d.contact?.email,placeholder:S.vendorDetails.emailPlaceHolder,options:{required:!1}}}),t.jsx(A,{}),t.jsx(Re,{label:{label:k.phone,width:L,style:{marginLeft:s.sp4}},text:{name:F(l,ge),placeholder:S.vendorDetails.phonePlaceHolder,defaultValue:d.contact?.phone,autoComplete:"off",options:{required:!1}},style:{width:"auto"}}),t.jsx(A,{})]}),t.jsxs(Wt,{isLoading:b,children:[t.jsx(O,{children:f?.taxClassification===!0&&!b?t.jsx(B,{}):null}),t.jsxs(re,{children:[t.jsx(Bt,{width:L,windowSize:i,children:k.taxClassification}),t.jsx(Et,{size:i,labelWidth:L,children:t.jsx(We,{name:F(l,he),value:{allTypes:W?.map(x=>({code:x.code,name:x.name,label:x.name}))??[],selectedType:d.taxClassification},placeholderLabel:S.vendorDetails.taxClassificationPlaceHolder})})]})]}),t.jsx(A,{}),t.jsx(O,{children:(f?.tin.type===!0||f?.tin.value===!0)&&!b?t.jsx(B,{}):null}),t.jsx(re,{children:t.jsx(rt,{name:F(l,me),menuPlacement:"auto",style:{height:s.sp6,width:"100%",marginLeft:s.sp4},dropdownStyle:{width:"40%"},defaultValue:{dropDownValue:d.tin?.type??r.strings.empty,dropDownList:[{code:r.texts.ein,label:r.texts.ein.toUpperCase()},{code:r.texts.ssn,label:r.texts.ssn.toUpperCase()}]},registerOptions:{required:!1},label:{width:L},placeholderLabel:S.placeholders.tinType,formattedText:{type:"text",name:F(l,xe),placeholder:S.placeholders.tinValue,format:d.tin?.type===r.texts.ssn?He:Ue,registerOptions:{required:!!d?.tin?.type,pattern:d.tin?.type===r.texts.ssn?qe:Me},style:{width:"100%",height:s.sp6},defaultValue:d.tin?.value??r.strings.empty,maxLength:9,allowLeadingZeros:!0,autoComplete:"new-password",isDisabled:d.tin?.type===null?"disabled":void 0}})}),t.jsx(A,{}),t.jsxs(qt,{children:[t.jsx(O,{children:f?.address===!0&&!b?t.jsx(B,{}):null}),t.jsx(Ke,{label:k.address,style:{marginLeft:s.sp4,marginTop:$.labelMarginTop.value(i),marginBottom:s.sp2}}),t.jsx(at,{googleAPIKey:be,formId:U(l),addressToEdit:V?.addressStatus?.addressToCreate,sectionId:l})]})]})})})]})]}),t.jsx(Ge,{separatorStyle:{marginRight:s.sp4},formId:U(l),cancelBtn:{label:le.cancel,style:{width:"83px"},onClick:_},primaryBtn:{label:le.save,isLoading:T.fetchState==="In-Progress",style:{width:"83px"},isDisabled:Ve()},style:mt})]})})},Ct=a.div`
36
+ `,ht=()=>t.jsx(ct,{children:[...Array(1)].map((e,i)=>t.jsxs(ut,{children:[t.jsx(D,{style:{marginBottom:s.sp4},width:120,height:c[4]}),t.jsxs(pt,{children:[[...Array(5)].map((o,h)=>t.jsxs(H,{children:[t.jsx(D,{width:70,height:c[4]}),t.jsx(D,{width:140,height:c[4]})]},h)),t.jsx(H,{children:t.jsx(D,{width:120,height:c[4]})}),t.jsx(gt,{children:[...Array(7)].map((o,h)=>t.jsxs(H,{children:[t.jsx(D,{width:70,height:c[4]}),t.jsx(D,{width:140,height:c[4]})]},h))})]})]},i))}),$={largeLabelWidth:new w(130,200,300),labelMarginLeft:new w(c[3],c[4]),labelMarginTop:new w(c[2],c[3]),labelMarginBottom:new w(c[2],c[3]),containerPaddingLeft:new w(c[3],c[6],c[8]),containerPaddingRight:new w(c[3],c[6],c[8])},mt={zIndex:2,minHeight:62},l="vendor1099FilingSectionId",ue="legalName",pe="email",ge="phone",he="taxClassification",me="tinType",ye="tinValue",yt="street",xt="suite",ft="city",bt="state",wt="country",$t="countryCode",vt="postalCode",jt="secondaryInfo",U=e=>`${e}_form`,P=(e,i)=>`${e}.${i}`,{spendManagement:St,common:r}=ne.getLocalizedStrings(),S=St.billPay.vendorCreation,k=r.labels,le=r.footer,Xt=e=>{const i=oe(),o=new AbortController,h=ze(),W=o.signal,{onVendorFiling1099UploadDetailsSave:E,vendorId:u,vendorFiling1099UploadDetailsViewState:p,onSaveChangesToLocalStore:v,vendorFiling1099UploadDetails:V,fetchVendorFetchStatus:K,onAddressEditHandler:xe,goBackToListPage:Y,onResetVendorFiling1099FormStatus:fe,googleAPIKey:be}=e,{vendor1099DetailsSaveStatus:T,vendor1099DetailsLocalData:d,w9FormUploadStatus:Q}=p,[J,Z]=x.useState(V.addressStatus?.addressToCreate??{street:[],city:"",state:"",country:"",countryCode:"",postalCode:""}),_=x.useRef(null),{vendorTypeList:q}=V,N=x.useRef(null),z=x.useRef(null),X=x.useRef(!1);x.useEffect(()=>{z.current===null&&d.legalName!=r.strings.empty&&p.vendor1099DetailsAutoFilledValues?.legalName===!0&&(z.current=d.legalName)},[d.legalName]),x.useEffect(()=>{N.current===null&&d.legalName!==r.strings.empty&&(N.current=d.legalName)},[d.legalName]),x.useEffect(()=>{V?.addressStatus?.addressToCreate&&p.vendor1099DetailsAutoFilledValues?.address===!0&&X.current===!1&&(Z(V.addressStatus.addressToCreate),X.current=!0)},[V,p.vendor1099DetailsAutoFilledValues?.address]);const m=ke({mode:"onSubmit",defaultValues:ae(d,q??[],J),values:ae(d,q??[],J)}),{isValid:we}=m.formState,$e=m.handleSubmit(()=>{we&&(xe(m.getValues()),E(u,W))}),{vendor1099DetailsAutoFilledValues:f}=p,ve=()=>f?.tin.type===!0||f?.tin.value===!0||f?.legalName===!0||f?.taxClassification===!0,je=async(y,n)=>{if(y!=null){const g={...n},Le=g[l].legalName,Fe=g[l].email,De=g[l].phone,Pe=g[l].taxClassification,Ie=g[l].tinType,ee=g[l].tinValue,Te={legalName:Le??r.strings.empty,vendorId:u,contact:{email:Fe??r.strings.empty,phone:De??r.strings.empty,fullName:d.contact?.fullName??r.strings.empty,id:d.contact?.id??r.strings.empty},taxClassification:Pe.selectedType??r.strings.empty,tin:{type:Ie??null,value:ee??null},tinValue:ee??null};if(y.includes(`${l}.street`)&&n.vendor1099FilingSectionId.street!=null){const{addressValue:F}=n.vendor1099FilingSectionId.street,Ne=m.getValues(`${l}.country`),M=G(F?.country);m.setValue(l,{...n[l],street:n.vendor1099FilingSectionId.street,city:F?.locality??"",state:F?.administrativeAreaLevel1??"",country:M,countryCode:F?.countryCode??"",postalCode:F?.postalCode??"",secondaryInfo:n.vendor1099FilingSectionId.secondaryInfo??"",suite:n.vendor1099FilingSectionId.suite??""}),Ye(m.formState.errors,`${l}.city`)&&F?.locality&&m.trigger(`${l}.city`),Ne.selectedOption!==M.selectedOption&&m.setValue(`${l}.country`,M)}else y==="vendor1099FilingSectionId.country"&&n[l].country.selectedOption!=null&&m.setValue(`${l}.countryCode`,Qe(n[l].country.selectedOption));v(Te)}};x.useEffect(()=>{const y=m.watch((n,{name:g})=>{g!=null&&n!=null&&((g.startsWith(`${l}.street`)||g.startsWith(`${l}.city`)||g.startsWith(`${l}.state`)||g.startsWith(`${l}.country`)||g.startsWith(`${l}.postalCode`))&&n[l]!=null&&Z({street:[n[l].street?.addressString??r.strings.empty,n[l].suite??r.strings.empty,n[l].secondaryInfo??r.strings.empty],city:n[l].city??r.strings.empty,state:n[l].state??r.strings.empty,country:n[l].country?.selectedOption??r.strings.empty,countryCode:n[l].countryCode,postalCode:n[l].postalCode??r.strings.empty}),Ae(()=>je(g,n)))});return()=>{y.unsubscribe()}});const L=$.largeLabelWidth.value(i),Se=T.error?.message??r.strings.empty,Ce=T.error?.title??r.strings.empty,Ve=()=>T?.fetchState==="In-Progress"||K?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",b=K?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress";return x.useEffect(()=>()=>{o.abort(),fe()},[]),t.jsx(Vt,{windowSize:i,children:t.jsxs(Ct,{windowSize:i,children:[t.jsxs(Lt,{windowSize:i,ref:_,children:[t.jsx(Be,{title:(p.vendor1099DetailsAutoFilledValues?.legalName===!0?z.current:N.current)??r.strings.empty,backgroundColor:h.colors.grey4,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:t.jsx(Dt,{windowSize:i,onClick:Y,"data-testid":Ee("vendor-filling-1099-details-editable-page-close-icon")}),scrollableContent:_,enableTitleOnScroll:!0,scrollThreshold:50,source:"VendorFiling1099EditablePage"}),b===!0?t.jsx(ie,{windowSize:i,isLoading:b,children:t.jsx(ht,{})}):t.jsxs(ie,{windowSize:i,isLoading:b,children:[i==="small"?t.jsx(Pt,{windowSize:i,children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?z.current:N.current}):t.jsx(It,{children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?z.current:N.current}),T.fetchState==="Error"?t.jsxs(Tt,{children:[t.jsx(At,{}),t.jsxs(Nt,{children:[t.jsx(zt,{children:Ce}),t.jsx(kt,{children:Se})]})]}):null,ve()&&t.jsxs(Ot,{children:[t.jsx(B,{}),t.jsx(Wt,{children:S.vendorDetails.banner})]}),t.jsx(Oe,{...m,children:t.jsx("form",{id:U(l),onSubmit:$e,children:t.jsxs(Ft,{isLoading:b,children:[t.jsx(O,{children:f?.legalName===!0&&!b?t.jsx(B,{}):null}),t.jsx(C,{label:{label:k.legalName,width:L,style:{marginLeft:s.sp4}},style:{width:"auto",borderTopLeftRadius:s.sp2,borderTopRightRadius:s.sp2},text:{type:"text",name:P(l,ue),defaultValue:d.legalName,placeholder:S.vendorDetails.legalNamePlaceHolder,options:{required:!0,validate:y=>y!==r.strings.empty}}}),t.jsx(A,{}),t.jsxs(t.Fragment,{children:[t.jsx(C,{label:{label:k.email,width:L,style:{marginLeft:s.sp4}},style:{width:"auto"},text:{type:"email",name:P(l,pe),defaultValue:d.contact?.email,placeholder:S.vendorDetails.emailPlaceHolder,options:{required:!1}}}),t.jsx(A,{}),t.jsx(We,{label:{label:k.phone,width:L,style:{marginLeft:s.sp4}},text:{name:P(l,ge),placeholder:S.vendorDetails.phonePlaceHolder,defaultValue:d.contact?.phone,autoComplete:"off",options:{required:!1}},style:{width:"auto"}}),t.jsx(A,{})]}),t.jsxs(qt,{isLoading:b,children:[t.jsx(O,{children:f?.taxClassification===!0&&!b?t.jsx(B,{}):null}),t.jsxs(re,{children:[t.jsx(Bt,{width:L,windowSize:i,children:k.taxClassification}),t.jsx(Et,{size:i,labelWidth:L,children:t.jsx(qe,{name:P(l,he),value:{allTypes:q?.map(y=>({code:y.code,name:y.name,label:y.name}))??[],selectedType:d.taxClassification},placeholderLabel:S.vendorDetails.taxClassificationPlaceHolder})})]})]}),t.jsx(A,{}),t.jsx(O,{children:(f?.tin.type===!0||f?.tin.value===!0)&&!b?t.jsx(B,{}):null}),t.jsx(re,{children:t.jsx(rt,{name:P(l,me),menuPlacement:"auto",style:{height:s.sp6,width:"100%",marginLeft:s.sp4},dropdownStyle:{width:"40%"},defaultValue:{dropDownValue:d.tin?.type??r.strings.empty,dropDownList:[{code:r.texts.ein,label:r.texts.ein.toUpperCase()},{code:r.texts.ssn,label:r.texts.ssn.toUpperCase()}]},registerOptions:{required:!1},label:{width:L},placeholderLabel:S.placeholders.tinType,formattedText:{type:"text",name:P(l,ye),placeholder:S.placeholders.tinValue,format:d.tin?.type===r.texts.ssn?He:Ue,registerOptions:{required:!!d?.tin?.type,pattern:d.tin?.type===r.texts.ssn?Me:Re},style:{width:"100%",height:s.sp6},defaultValue:d.tin?.value??r.strings.empty,maxLength:9,allowLeadingZeros:!0,autoComplete:"new-password",isDisabled:d.tin?.type===null?"disabled":void 0}})}),t.jsx(A,{}),t.jsxs(Mt,{children:[t.jsx(O,{children:f?.address===!0&&!b?t.jsx(B,{}):null}),t.jsx(Ge,{label:k.address,style:{marginLeft:s.sp4,marginTop:$.labelMarginTop.value(i),marginBottom:s.sp2}}),t.jsx(at,{googleAPIKey:be,formId:U(l),addressToEdit:V?.addressStatus?.addressToCreate,sectionId:l})]})]})})})]})]}),t.jsx(Ke,{separatorStyle:{marginRight:s.sp4},formId:U(l),cancelBtn:{label:le.cancel,style:{width:"83px"},onClick:Y},primaryBtn:{label:le.save,isLoading:T.fetchState==="In-Progress",style:{width:"83px"},isDisabled:Ve()},style:mt})]})})},Ct=a.div`
37
37
  display: flex;
38
38
  flex-direction: column;
39
39
  height: 100%;
@@ -52,7 +52,7 @@ import{X as oe,u as ze,M as ne,a as ke,cw as K,gI as de,c3 as Ae,C as w,j as t,a
52
52
  overflow-x: hidden;
53
53
  height: 100%;
54
54
  width: 100%;
55
- `,Pt=a.div`
55
+ `,Ft=a.div`
56
56
  display: flex;
57
57
  flex-direction: column;
58
58
  background-color: ${e=>e.isLoading?void 0:e.theme.colors.grey5};
@@ -66,7 +66,7 @@ import{X as oe,u as ze,M as ne,a as ke,cw as K,gI as de,c3 as Ae,C as w,j as t,a
66
66
  background-color: ${e=>e.theme.colors.grey3};
67
67
  min-height: 1px;
68
68
  max-height: 1px;
69
- `,Dt=a(Ye)`
69
+ `,Dt=a(Je)`
70
70
  cursor: pointer;
71
71
  color: ${e=>e.theme.colors.hero};
72
72
  width: ${s.sp4};
@@ -75,11 +75,11 @@ import{X as oe,u as ze,M as ne,a as ke,cw as K,gI as de,c3 as Ae,C as w,j as t,a
75
75
  &:hover {
76
76
  color: ${e=>e.theme.colors.primary};
77
77
  }
78
- `,Ft=a(Ze)`
78
+ `,Pt=a(Ze)`
79
79
  color: ${e=>e.theme.colors.primary};
80
80
  margin-bottom: ${s.sp0};
81
81
  margin-right: ${s.sp3};
82
- `,It=a(Je)`
82
+ `,It=a(_e)`
83
83
  color: ${e=>e.theme.colors.primary};
84
84
  margin-bottom: ${s.sp4};
85
85
  `,Tt=a.div`
@@ -152,15 +152,15 @@ import{X as oe,u as ze,M as ne,a as ke,cw as K,gI as de,c3 as Ae,C as w,j as t,a
152
152
  margin: ${s.sp3};
153
153
  margin-left: ${s.sp0};
154
154
  margin-right: ${s.sp0};
155
- `,Rt=a.span`
155
+ `,Wt=a.span`
156
156
  color: ${e=>e.theme.colors.hero};
157
- `,Wt=a.div`
157
+ `,qt=a.div`
158
158
  position: relative;
159
159
  `,O=a.div`
160
160
  position: absolute;
161
161
  top: 20px;
162
162
  left: -${s.sp4};
163
- `,qt=a.div`
163
+ `,Mt=a.div`
164
164
  display: flex;
165
165
  position: relative;
166
166
  width: 100%;
@@ -172,4 +172,4 @@ import{X as oe,u as ze,M as ne,a as ke,cw as K,gI as de,c3 as Ae,C as w,j as t,a
172
172
  border-bottom-left-radius: inherit;
173
173
  border-bottom-right-radius: inherit;
174
174
  }
175
- `,ae=(e,i,o)=>({[l]:{[ue]:e.legalName??r.strings.empty,[pe]:e.contact?.email??r.strings.empty,[ge]:e.contact?.phone??r.strings.empty,[he]:{selectedType:e.taxClassification,allTypes:i},[me]:e.tin?.type??null,[xe]:e.tin?.value??null,[xt]:{addressString:o?.street[0]??"",addressValue:o!=null?de(o):void 0},[ft]:o?.city??"",[bt]:o?.state??"",[wt]:K(o?.country),[$t]:o?.countryCode??"",[vt]:o?.postalCode??"",[jt]:o?.street[2]??"",[yt]:o?.street[1]??""}});export{Xt as default,U as uniqueFormName};
175
+ `,ae=(e,i,o)=>({[l]:{[ue]:e.legalName??r.strings.empty,[pe]:e.contact?.email??r.strings.empty,[ge]:e.contact?.phone??r.strings.empty,[he]:{selectedType:e.taxClassification,allTypes:i},[me]:e.tin?.type??null,[ye]:e.tin?.value??null,[yt]:{addressString:o?.street[0]??"",addressValue:o!=null?de(o):void 0},[ft]:o?.city??"",[bt]:o?.state??"",[wt]:G(o?.country),[$t]:o?.countryCode??"",[vt]:o?.postalCode??"",[jt]:o?.street[2]??"",[xt]:o?.street[1]??""}});export{Xt as default,U as uniqueFormName};
@@ -1,4 +1,4 @@
1
- import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as ve,hz as fe,hA as be,hB as me,M as je,j as n,hs as ot,F as rt,aV as it,T as st,bO as at,bQ as lt,bR as dt,eW as ct,_ as J,be as mt,bL as pt,aj as ut,di as ht,bT as gt,C as w,c as wt,D as Ne,o as t,a7 as In,e as De,a6 as xt,q as c,v as Re,bY as vt,l as Pn,dn as Tn,bf as Pe,aA as zn,b$ as ft,bB as bt,c$ as $t,ap as Je,aO as pn,g as F,ay as Dn,fe as St,de as wn,cs as rn,hC as yt,hD as sn,p as jt,bs as Fe,c_ as Rt,eo as xn,b4 as Ct,dq as Vt,K as vn,hE as kt,cg as Mt,co as Nt,cp as Ot,et as It,m as Ln,hF as Pt,b2 as se,hG as fn,ga as Tt,b0 as zt,aC as Dt,dp as Lt,f as _n,Q as _t,eA as At,a9 as dn}from"./index-BS9BhstZ.js";import{b as f,n as o,j as cn}from"./vendor-CnQcJ2Lu.js";import{r as Bt}from"./mui-C5LQ0bMa.js";import{R as Ft}from"./Menu-B_GJLZiP-mNj9dFun.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const An=({steps:e})=>{const s=ae();return n.jsx(Ut,{windowSize:s,children:e.map((m,d)=>n.jsxs(Et,{children:[n.jsx(qt,{children:d!==e.length-1?d+1:n.jsx(Ht,{})}),n.jsx(Gt,{children:m}),d<e.length-1?n.jsx(Wt,{}):null]},`step_${d}`))})},Et=o.div`
1
+ import{e as ae,Y as Nn,u as mn,a as nt,ht as Te,c7 as tt,y as On,hu as ie,hv as ve,hw as fe,hx as be,hy as me,M as je,j as n,hp as ot,F as rt,aW as it,T as st,bS as at,bU as lt,bV as dt,bq as ct,$ as X,bf as mt,bP as pt,aj as ut,dm as ht,bX as gt,C as w,m as wt,H as Ne,o as t,a7 as In,n as De,a6 as xt,q as c,d as Re,c0 as vt,l as Pn,ds as Tn,bg as Pe,aB as zn,c3 as ft,bF as bt,d3 as $t,ap as Xe,aP as pn,g as F,az as Dn,fh as St,di as wn,cw as rn,hz as yt,hA as sn,p as jt,bx as Fe,d2 as Rt,es as xn,b5 as Ct,du as Vt,J as vn,hB as kt,ck as Mt,cs as Nt,ct as Ot,ex as It,B as Ln,hC as Pt,b3 as se,hD as fn,gd as Tt,b1 as zt,aD as Dt,dt as Lt,v as _n,X as _t,eE as At,a9 as dn}from"./index-CnrHU8WN.js";import{b as f,n as o,j as cn}from"./vendor-CnQcJ2Lu.js";import{r as Bt}from"./mui-Bi8r7UDG.js";import{R as Ft}from"./Menu-CbQ6Zkdp-B0rPvp7W.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";const An=({steps:e})=>{const s=ae();return n.jsx(Ut,{windowSize:s,children:e.map((m,d)=>n.jsxs(Et,{children:[n.jsx(qt,{children:d!==e.length-1?d+1:n.jsx(Ht,{})}),n.jsx(Gt,{children:m}),d<e.length-1?n.jsx(Wt,{}):null]},`step_${d}`))})},Et=o.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  position: relative;
@@ -32,7 +32,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
32
32
  `,Ht=o($t)`
33
33
  width: ${t.sp3};
34
34
  height: ${t.sp3};
35
- `,M=je.getLocalizedStrings(),Qt=()=>n.jsx(An,{steps:[Kt(),Yt(),Jt(),Xt(),Zt()]}),Kt=()=>{const e=M.vendorReview.firstReview.popupMessages.mergeInQBOSteppedContent.step1;return n.jsxs(Ee,{children:[e.navigateTo,n.jsx(ye,{children:e.expenses}),e.andSelectThe,n.jsx(ye,{children:e.vendors}),e.tab]})},Yt=()=>{const e=M.vendorReview.firstReview.popupMessages.mergeInQBOSteppedContent.step2;return n.jsxs(Ee,{children:[e.lineText,n.jsxs(ye,{children:[n.jsx(Bn,{}),M.common.edit]}),e.andCopy,n.jsxs(eo,{children:[n.jsx(no,{}),n.jsx(bn,{children:e.company}),M.common.and,n.jsx(bn,{children:e.display}),M.common.texts.name.toLowerCase(),M.common.strings.space,n.jsx(to,{})]})]})},Jt=()=>{const e=M.vendorReview.firstReview.popupMessages.mergeInQBOSteppedContent.step3;return n.jsxs(Ee,{children:[e.goBackTo,n.jsx(ye,{children:M.common.headers.vendors}),e.lineText,n.jsxs(ye,{children:[n.jsx(Bn,{}),M.common.edit]})]})},Xt=()=>{const e=M.vendorReview.firstReview.popupMessages.mergeInQBOSteppedContent.step4;return n.jsx(Ee,{children:e.lineText})},Zt=()=>{const e=M.vendorReview.firstReview.popupMessages.mergeInQBOSteppedContent.step5;return n.jsxs(Ee,{children:[M.common.texts.select,M.common.strings.space,n.jsx(ye,{children:M.common.footer.save}),e.andThen,n.jsx(ye,{children:M.common.yes}),M.common.strings.space,M.common.to,M.common.texts.confirm.toLowerCase(),M.common.strings.dot]})},Ee=o(Je)`
35
+ `,M=je.getLocalizedStrings(),Qt=()=>n.jsx(An,{steps:[Kt(),Jt(),Xt(),Yt(),Zt()]}),Kt=()=>{const e=M.vendorReview.firstReview.popupMessages.mergeInQBOSteppedContent.step1;return n.jsxs(Ee,{children:[e.navigateTo,n.jsx(ye,{children:e.expenses}),e.andSelectThe,n.jsx(ye,{children:e.vendors}),e.tab]})},Jt=()=>{const e=M.vendorReview.firstReview.popupMessages.mergeInQBOSteppedContent.step2;return n.jsxs(Ee,{children:[e.lineText,n.jsxs(ye,{children:[n.jsx(Bn,{}),M.common.edit]}),e.andCopy,n.jsxs(eo,{children:[n.jsx(no,{}),n.jsx(bn,{children:e.company}),M.common.and,n.jsx(bn,{children:e.display}),M.common.texts.name.toLowerCase(),M.common.strings.space,n.jsx(to,{})]})]})},Xt=()=>{const e=M.vendorReview.firstReview.popupMessages.mergeInQBOSteppedContent.step3;return n.jsxs(Ee,{children:[e.goBackTo,n.jsx(ye,{children:M.common.headers.vendors}),e.lineText,n.jsxs(ye,{children:[n.jsx(Bn,{}),M.common.edit]})]})},Yt=()=>{const e=M.vendorReview.firstReview.popupMessages.mergeInQBOSteppedContent.step4;return n.jsx(Ee,{children:e.lineText})},Zt=()=>{const e=M.vendorReview.firstReview.popupMessages.mergeInQBOSteppedContent.step5;return n.jsxs(Ee,{children:[M.common.texts.select,M.common.strings.space,n.jsx(ye,{children:M.common.footer.save}),e.andThen,n.jsx(ye,{children:M.common.yes}),M.common.strings.space,M.common.to,M.common.texts.confirm.toLowerCase(),M.common.strings.dot]})},Ee=o(Xe)`
36
36
  color: ${e=>e.theme.colors.hero};
37
37
  `,eo=o.div`
38
38
  display: flex;
@@ -56,7 +56,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
56
56
  &:hover {
57
57
  color: ${e=>e.theme.colors.primary};
58
58
  }
59
- `,ye=o(Je)`
59
+ `,ye=o(Xe)`
60
60
  color: ${e=>e.theme.colors.primary};
61
61
  border-radius: ${t.sp1};
62
62
  border: 1px solid ${e=>e.theme.colors.grey3};
@@ -68,7 +68,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
68
68
  color: ${e=>e.theme.colors.primary};
69
69
  margin-left: ${t.sp1};
70
70
  margin-right: ${t.sp1};
71
- `,X=je.getLocalizedStrings(),oo=()=>n.jsx(An,{steps:[ro(),io(),so(),ao(),lo(),co(),mo(),po(),uo(),ho()]}),ro=()=>{const e=X.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step1;return n.jsxs(Z,{children:[e.goTo,n.jsx(z,{children:e.lists}),e.then,n.jsx(z,{children:e.relationships}),e.then2,n.jsx(z,{children:e.vendors})]})},io=()=>{const e=X.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step2;return n.jsxs(Z,{children:[e.click,n.jsxs(z,{children:[n.jsx(go,{}),e.edit]}),e.next,n.jsx(z,{children:e.vendor}),e.sourceInfo]})},so=()=>{const e=X.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step3;return n.jsxs(Z,{children:[e.onThe,n.jsx(z,{children:e.vendor}),e.page,n.jsx(z,{children:e.actions}),e.click,n.jsx(z,{children:e.merge})]})},ao=()=>{const e=X.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step4;return n.jsxs(Z,{children:[e.onThe,n.jsx(z,{children:e.mergeVendor}),e.endText]})},lo=()=>{const e=X.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step5;return n.jsx(Z,{children:e.text})},co=()=>{const e=X.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step6;return n.jsxs(Z,{children:[e.click,n.jsx(z,{children:e.merge}),e.text,n.jsx(z,{children:e.ok})]})},mo=()=>{const e=X.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step7;return n.jsxs(Z,{children:[e.onThe,n.jsx(z,{children:e.duplicateResolution}),e.text]})},po=()=>{const e=X.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step8;return n.jsxs(Z,{children:[e.click,n.jsx(z,{children:e.refresh}),e.processText,n.jsx(z,{children:e.cancel}),e.haltText]})},uo=()=>{const e=X.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step9;return n.jsxs(Z,{children:[e.the,n.jsx(z,{children:e.status}),e.text]})},ho=()=>{const e=X.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step10;return n.jsxs(Z,{children:[e.text,n.jsx(wo,{})]})},Z=o(Je)`
71
+ `,Y=je.getLocalizedStrings(),oo=()=>n.jsx(An,{steps:[ro(),io(),so(),ao(),lo(),co(),mo(),po(),uo(),ho()]}),ro=()=>{const e=Y.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step1;return n.jsxs(Z,{children:[e.goTo,n.jsx(z,{children:e.lists}),e.then,n.jsx(z,{children:e.relationships}),e.then2,n.jsx(z,{children:e.vendors})]})},io=()=>{const e=Y.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step2;return n.jsxs(Z,{children:[e.click,n.jsxs(z,{children:[n.jsx(go,{}),e.edit]}),e.next,n.jsx(z,{children:e.vendor}),e.sourceInfo]})},so=()=>{const e=Y.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step3;return n.jsxs(Z,{children:[e.onThe,n.jsx(z,{children:e.vendor}),e.page,n.jsx(z,{children:e.actions}),e.click,n.jsx(z,{children:e.merge})]})},ao=()=>{const e=Y.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step4;return n.jsxs(Z,{children:[e.onThe,n.jsx(z,{children:e.mergeVendor}),e.endText]})},lo=()=>{const e=Y.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step5;return n.jsx(Z,{children:e.text})},co=()=>{const e=Y.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step6;return n.jsxs(Z,{children:[e.click,n.jsx(z,{children:e.merge}),e.text,n.jsx(z,{children:e.ok})]})},mo=()=>{const e=Y.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step7;return n.jsxs(Z,{children:[e.onThe,n.jsx(z,{children:e.duplicateResolution}),e.text]})},po=()=>{const e=Y.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step8;return n.jsxs(Z,{children:[e.click,n.jsx(z,{children:e.refresh}),e.processText,n.jsx(z,{children:e.cancel}),e.haltText]})},uo=()=>{const e=Y.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step9;return n.jsxs(Z,{children:[e.the,n.jsx(z,{children:e.status}),e.text]})},ho=()=>{const e=Y.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step10;return n.jsxs(Z,{children:[e.text,n.jsx(wo,{})]})},Z=o(Xe)`
72
72
  color: ${e=>e.theme.colors.hero};
73
73
  `,go=o(pn)`
74
74
  width: ${t.sp3};
@@ -81,7 +81,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
81
81
  vertical-align: middle;
82
82
  margin-right: ${t.sp2};
83
83
  color: ${F.success};
84
- `,z=o(Je)`
84
+ `,z=o(Xe)`
85
85
  color: ${e=>e.theme.colors.primary};
86
86
  border-radius: ${t.sp1};
87
87
  border: 1px solid ${e=>e.theme.colors.grey3};
@@ -141,7 +141,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
141
141
  max-width: ${e=>e.windowSize==="small"?"200px":"initial"};
142
142
  display: "inline-block";
143
143
  margin-right: ${t.sp4};
144
- `,$o=88,So=156,Fn=58,yo=45,un=je.getLocalizedStrings(),Xe=un.vendors.reviewVendorList.header,En={key:"vendor",value:Xe.vendors,sortOrder:"ascending",width:25},Un={key:"updateTo",value:Xe.updateTo,sortOrder:"ascending",width:27},jo={key:"retain",value:Xe.retain,sortOrder:"ascending",width:20},Wn={key:"status",value:Xe.status,sortOrder:"ascending",width:10},Ro={key:"action",value:un.common.strings.empty,sortOrder:"ascending",width:15},Co={key:"viewTenantInvoice",value:un.common.strings.empty,sortOrder:"ascending",width:c[1]},Vo=[En,Co,Un,jo,Wn,Ro],$n=[En.key,Un.key,Wn.key],an={sortKey:"ytd",sortOrder:"descending"},Oe={headerLastColumnTopPadding:new w(c[0],c[4]),headerLastColumnRightPadding:new w(c[3],c[11]),headerLastColumnBottomPadding:new w(c[0],c[4]),headerLastColumnLeftPadding:new w(c[3],c[11]),headerHeight:new w(yo,Fn)},qn=({sortConfig:e,disableClick:s=!1,onColumnSortConfigChanged:m})=>{const d=ae(),[r,V]=f.useState(Vo);f.useEffect(()=>{const g=[...r];for(const k of g)k.key===e.sortKey?k.sortOrder=e.sortOrder:k.sortOrder="ascending";V(g)},[e.sortKey,e.sortOrder]);const S=(g,k)=>{let D=k;e.sortKey===g&&(D=k==="ascending"?"descending":"ascending"),m(g,D)},R=g=>{s===!1&&g.key!=null&&$n.includes(g.key)&&S(Pn.toVendorFirstReviewViewColumnKeyType(g.key),g.sortOrder)};return n.jsx(ko,{windowSize:d,children:r.map(g=>n.jsxs(Mo,{sortDataValue:e.sortKey,actualDataValue:g.key,wrapperWidth:g.width,isClickDisabled:s,windowSize:d,children:[n.jsx(Po,{onClick:()=>R(g),isClickDisabled:s,isSortingDisabled:g.key==="retain","data-testid":J("vendor-first-review-page-header-name-wrapper"),children:n.jsxs(n.Fragment,{children:[g.key==="updateTo"?n.jsx(To,{children:n.jsx(zo,{})}):null,n.jsx(Re,{children:g.value}),$n.includes(g.key)?n.jsx(Oo,{sortConfig:e,headerdata:g,children:n.jsx(vt,{width:12,height:12})}):null]})}),n.jsx(Io,{isClickDisabled:s,sortDataValue:e.sortKey,isVisible:e.sortKey===g.key&&g.key!==an.sortKey,children:n.jsx(No,{onClick:()=>{s===!1&&S(an.sortKey,an.sortOrder)},"data-testid":J("vendor-first-review-page-header-sort-cancel-icon")})})]},g.key))})},ko=o.div`
144
+ `,$o=88,So=156,Fn=58,yo=45,un=je.getLocalizedStrings(),Ye=un.vendors.reviewVendorList.header,En={key:"vendor",value:Ye.vendors,sortOrder:"ascending",width:25},Un={key:"updateTo",value:Ye.updateTo,sortOrder:"ascending",width:27},jo={key:"retain",value:Ye.retain,sortOrder:"ascending",width:20},Wn={key:"status",value:Ye.status,sortOrder:"ascending",width:10},Ro={key:"action",value:un.common.strings.empty,sortOrder:"ascending",width:15},Co={key:"viewTenantInvoice",value:un.common.strings.empty,sortOrder:"ascending",width:c[1]},Vo=[En,Co,Un,jo,Wn,Ro],$n=[En.key,Un.key,Wn.key],an={sortKey:"ytd",sortOrder:"descending"},Oe={headerLastColumnTopPadding:new w(c[0],c[4]),headerLastColumnRightPadding:new w(c[3],c[11]),headerLastColumnBottomPadding:new w(c[0],c[4]),headerLastColumnLeftPadding:new w(c[3],c[11]),headerHeight:new w(yo,Fn)},qn=({sortConfig:e,disableClick:s=!1,onColumnSortConfigChanged:m})=>{const d=ae(),[r,V]=f.useState(Vo);f.useEffect(()=>{const g=[...r];for(const k of g)k.key===e.sortKey?k.sortOrder=e.sortOrder:k.sortOrder="ascending";V(g)},[e.sortKey,e.sortOrder]);const S=(g,k)=>{let D=k;e.sortKey===g&&(D=k==="ascending"?"descending":"ascending"),m(g,D)},R=g=>{s===!1&&g.key!=null&&$n.includes(g.key)&&S(Pn.toVendorFirstReviewViewColumnKeyType(g.key),g.sortOrder)};return n.jsx(ko,{windowSize:d,children:r.map(g=>n.jsxs(Mo,{sortDataValue:e.sortKey,actualDataValue:g.key,wrapperWidth:g.width,isClickDisabled:s,windowSize:d,children:[n.jsx(Po,{onClick:()=>R(g),isClickDisabled:s,isSortingDisabled:g.key==="retain","data-testid":X("vendor-first-review-page-header-name-wrapper"),children:n.jsxs(n.Fragment,{children:[g.key==="updateTo"?n.jsx(To,{children:n.jsx(zo,{})}):null,n.jsx(Re,{children:g.value}),$n.includes(g.key)?n.jsx(Oo,{sortConfig:e,headerdata:g,children:n.jsx(vt,{width:12,height:12})}):null]})}),n.jsx(Io,{isClickDisabled:s,sortDataValue:e.sortKey,isVisible:e.sortKey===g.key&&g.key!==an.sortKey,children:n.jsx(No,{onClick:()=>{s===!1&&S(an.sortKey,an.sortOrder)},"data-testid":X("vendor-first-review-page-header-sort-cancel-icon")})})]},g.key))})},ko=o.div`
145
145
  top: ${t.sp0};
146
146
  left: ${t.sp0};
147
147
  min-height: ${e=>Oe.headerHeight.valuePx(e.windowSize)};
@@ -208,10 +208,10 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
208
208
  display: flex;
209
209
  min-height: 100%;
210
210
  flex-direction: column;
211
- `,pe={autocompleteEmptyPaddingTop:new w(0,c[1]),autocompleteEmptyPaddingBottom:new w(0,c[1]),loadingStateOptionTopMargin:new w(9.5,9.5),loadingStateOptionBottomMargin:new w(9.5,9.5),loadingStateOptionLeftMargin:new w(16,16),loadingStateOptionRightMargin:new w(19,19),loadingStateOptionRowGap:new w(19,19),loadingStateRowGap:new w(10,10)},Ao={selectFieldInput:new _t("smallRegular","standardRegular")},Bo=({name:e,registerOptions:s,menuIsOpen:m,defaultValue:d,isDisabled:r,style:V,placeholder:S,customStyleConfig:R,showDownChevronWithValue:g,isOptionRemovable:k=!0,autoFocus:D=!1,getRenameOptionText:le,onClickRenameOption:ee,onMenuClose:b,valueToInfo:G,valueToId:ne,loadOptions:L})=>{const{control:Ue,formState:{errors:Ce}}=Mt(),Ve=mn(),[ue,_]=f.useState(null),W=Nt(Ce,e),Le=f.useCallback(u=>({value:u.value,label:u.label,info:G?.(u.value)??"",id:ne?.(u.value)??null,isDisabled:u.isDisabled,isOptionRecommended:u.isOptionRecommended}),[G,ne]),te=u=>u.map(y=>({label:y.label,options:y.options.map(q=>Le(q))})),C=u=>{if(u==null||!u)return;let y=[];return d.defaultOptions.forEach(q=>{y=y.concat(q.options)}),{value:u,label:y.find(q=>q.value===u)?.label??u,info:G?.(u)??""}},ke=u=>{_(u)},H={...R,container:u=>({...u,width:"100%",...V}),valueContainer:(u,y)=>({...u,justifyContent:y.selectProps.menuIsOpen===!1?"flex-end":"flex-start",...R?.valueContainer?.(u,y)}),menu:u=>({...u,backgroundColor:Ve.colors.grey5,borderRadius:t.sp1,boxShadow:`${t.sp0} 2px ${t.sp2} ${Ve.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:0}),menuList:u=>({...u,borderRadius:t.sp1})},P={hasError:W,showDownChevronWithValue:g,customFirstGroup:ue,updateCustomFirstGroup:ke,getRenameOptionText:le,onClickRenameOption:ee},N=je.getLocalizedStrings().autoComplete,E=ae(),x=u=>u.inputValue.trim().length<2?null:n.jsxs(vr,{windowSize:E,children:[n.jsx(fr,{}),n.jsx(br,{children:N.input.noMatches})]}),de=(u,y)=>{L(u,y)},he=f.useRef(On((u,y)=>de(u,y),500,{trailing:!0})).current,Q=(u,y)=>{if(u.trim().length<2)return y([]);he(u,y)};return n.jsx(Ot,{name:e,control:Ue,defaultValue:d,rules:s,render:({field:{onChange:u,onBlur:y,value:q,ref:ge}})=>{const K=q;return n.jsx(It,{...P,menuIsOpen:m,autoFocus:D,ref:ge,cacheOptions:!1,isMulti:!1,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:S,noOptionsMessage:x,value:C(K.selectedOption),defaultOptions:te(K.defaultOptions),loadOptions:Q,onChange:ce=>{ce==null||ce.value!=null&&K?.selectedOption===ce.value?k===!0&&u({selectedOption:void 0,defaultOptions:K.defaultOptions}):u({selectedOption:ce.value,defaultOptions:K.defaultOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,onMenuClose:b,classNamePrefix:"auto-complete-grouped-single-select-field",onBlur:y,menuPlacement:"auto",maxMenuHeight:288,menuShouldScrollIntoView:!0,closeMenuOnSelect:!0,components:{Control:Fo,Option:Ko,Input:Uo,Group:qo,GroupHeading:Go,SingleValue:Ho,ValueContainer:Eo,MenuList:Wo,LoadingIndicator:jr,DropdownIndicator:$r,IndicatorSeparator:Sr,Placeholder:Qo,ClearIndicator:yr},hideSelectedOptions:!1,styles:H,isDisabled:r!=null})}})},Fo=e=>{const{menuIsOpen:s,isFocused:m,isDisabled:d,selectProps:r,options:V}=e,{value:S,hasError:R}=r;let g=[];V.forEach(D=>{g=g.concat(D.options)});const k=ae();return n.jsx(er,{windowSize:k,menuIsOpen:s,isFocused:m,isDisabled:d,selectedValue:S,hasError:R,children:n.jsx(se.Control,{...e,className:"select-control",children:e.children})})},Eo=e=>{const{selectProps:s,children:m}=e,{showDownChevronWithValue:d}=s;return n.jsxs(se.ValueContainer,{...e,className:"select-value-container",children:[m,d===!0?n.jsx(De,{children:n.jsx(nr,{})}):null]})},Uo=e=>{const{selectProps:s}=e,{placeholder:m,value:d}=s;return n.jsx(se.Input,{...e,autoComplete:"off",placeholder:d==null?m:void 0,children:e.children})},Wo=e=>{const{children:s,selectProps:m}=e,{customFirstGroup:d,updateCustomFirstGroup:r,getRenameOptionText:V,onClickRenameOption:S}=m,R=ae(),g=V?.(e.selectProps.inputValue);return f.useEffect(()=>{d==null&&r(s[0])},[d,r,s]),n.jsx(n.Fragment,{children:e.isLoading===!0?n.jsxs(se.MenuList,{...e,children:[d,n.jsx(cr,{windowSize:R,children:[...Array(2)].map((k,D)=>n.jsxs(mr,{windowSize:R,children:[n.jsx(Tn,{width:c[4],height:c[4]}),n.jsx(Pe,{width:218,height:c[4]})]},D))})]}):n.jsxs(se.MenuList,{...e,children:[s,g!=null&&g.length>0?n.jsxs(pr,{onClick:()=>{S?.(e.selectProps.inputValue)},children:[n.jsx(hr,{children:n.jsx(ur,{})}),n.jsx(gr,{children:g})]}):null]})})},qo=e=>n.jsx(se.Group,{...e,children:e.children}),Go=e=>{const[s,m]=f.useState(!0);return n.jsx(ar,{className:"group-heading-container",isGroupOpen:s,onClick:()=>m(!s),children:n.jsxs(se.GroupHeading,{...e,children:[n.jsx(lr,{isGroupOpen:s,children:n.jsx(dr,{className:"close-tick-icon"})}),e.children]})})},Ho=({children:e,...s},m)=>{const d=m==null||s.selectProps.menuIsOpen===!0?e:m.sticky===!0?n.jsx(Yo,{title:m.text,children:e}):n.jsx(Fe,{style:{padding:t.sp3},title:m.text,placement:"top",children:e});return n.jsx(se.SingleValue,{...s,children:d})},Qo=()=>null,Ko=e=>{const{data:s,isSelected:m,isDisabled:d,isFocused:r}=e;return n.jsx(tr,{className:"select-option-wrapper",isFocused:r,isSelected:m,isDisabled:d,isOptionRecommended:s.isOptionRecommended===!0,showBottomBorder:s.info==null||s.isOptionRecommended===!1,children:n.jsx(se.Option,{...e,className:"select-option",children:n.jsxs(or,{isOptionRecommended:s.isOptionRecommended,children:[s.isOptionRecommended===!0?n.jsx(wr,{children:n.jsx(xr,{})}):null,n.jsxs(sr,{isSelected:m,isOptionRecommended:s.isOptionRecommended,children:[n.jsx(rr,{isSelected:m,isDisabled:d,children:s.label}),s.isOptionRecommended===!0&&s.info!=null?n.jsx(ir,{isSelected:m,isDisabled:d,children:s.info}):null]})]})})})},Yo=({children:e,title:s})=>n.jsxs(Jo,{children:[n.jsxs(Xo,{children:[s,n.jsx(Zo,{})]}),e]}),Jo=o.div`
211
+ `,pe={autocompleteEmptyPaddingTop:new w(0,c[1]),autocompleteEmptyPaddingBottom:new w(0,c[1]),loadingStateOptionTopMargin:new w(9.5,9.5),loadingStateOptionBottomMargin:new w(9.5,9.5),loadingStateOptionLeftMargin:new w(16,16),loadingStateOptionRightMargin:new w(19,19),loadingStateOptionRowGap:new w(19,19),loadingStateRowGap:new w(10,10)},Ao={selectFieldInput:new _t("smallRegular","standardRegular")},Bo=({name:e,registerOptions:s,menuIsOpen:m,defaultValue:d,isDisabled:r,style:V,placeholder:S,customStyleConfig:R,showDownChevronWithValue:g,isOptionRemovable:k=!0,autoFocus:D=!1,getRenameOptionText:le,onClickRenameOption:ee,onMenuClose:b,valueToInfo:G,valueToId:ne,loadOptions:L})=>{const{control:Ue,formState:{errors:Ce}}=Mt(),Ve=mn(),[ue,_]=f.useState(null),W=Nt(Ce,e),Le=f.useCallback(u=>({value:u.value,label:u.label,info:G?.(u.value)??"",id:ne?.(u.value)??null,isDisabled:u.isDisabled,isOptionRecommended:u.isOptionRecommended}),[G,ne]),te=u=>u.map(y=>({label:y.label,options:y.options.map(q=>Le(q))})),C=u=>{if(u==null||!u)return;let y=[];return d.defaultOptions.forEach(q=>{y=y.concat(q.options)}),{value:u,label:y.find(q=>q.value===u)?.label??u,info:G?.(u)??""}},ke=u=>{_(u)},H={...R,container:u=>({...u,width:"100%",...V}),valueContainer:(u,y)=>({...u,justifyContent:y.selectProps.menuIsOpen===!1?"flex-end":"flex-start",...R?.valueContainer?.(u,y)}),menu:u=>({...u,backgroundColor:Ve.colors.grey5,borderRadius:t.sp1,boxShadow:`${t.sp0} 2px ${t.sp2} ${Ve.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:0}),menuList:u=>({...u,borderRadius:t.sp1})},P={hasError:W,showDownChevronWithValue:g,customFirstGroup:ue,updateCustomFirstGroup:ke,getRenameOptionText:le,onClickRenameOption:ee},N=je.getLocalizedStrings().autoComplete,E=ae(),x=u=>u.inputValue.trim().length<2?null:n.jsxs(vr,{windowSize:E,children:[n.jsx(fr,{}),n.jsx(br,{children:N.input.noMatches})]}),de=(u,y)=>{L(u,y)},he=f.useRef(On((u,y)=>de(u,y),500,{trailing:!0})).current,Q=(u,y)=>{if(u.trim().length<2)return y([]);he(u,y)};return n.jsx(Ot,{name:e,control:Ue,defaultValue:d,rules:s,render:({field:{onChange:u,onBlur:y,value:q,ref:ge}})=>{const K=q;return n.jsx(It,{...P,menuIsOpen:m,autoFocus:D,ref:ge,cacheOptions:!1,isMulti:!1,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:S,noOptionsMessage:x,value:C(K.selectedOption),defaultOptions:te(K.defaultOptions),loadOptions:Q,onChange:ce=>{ce==null||ce.value!=null&&K?.selectedOption===ce.value?k===!0&&u({selectedOption:void 0,defaultOptions:K.defaultOptions}):u({selectedOption:ce.value,defaultOptions:K.defaultOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,onMenuClose:b,classNamePrefix:"auto-complete-grouped-single-select-field",onBlur:y,menuPlacement:"auto",maxMenuHeight:288,menuShouldScrollIntoView:!0,closeMenuOnSelect:!0,components:{Control:Fo,Option:Ko,Input:Uo,Group:qo,GroupHeading:Go,SingleValue:Ho,ValueContainer:Eo,MenuList:Wo,LoadingIndicator:jr,DropdownIndicator:$r,IndicatorSeparator:Sr,Placeholder:Qo,ClearIndicator:yr},hideSelectedOptions:!1,styles:H,isDisabled:r!=null})}})},Fo=e=>{const{menuIsOpen:s,isFocused:m,isDisabled:d,selectProps:r,options:V}=e,{value:S,hasError:R}=r;let g=[];V.forEach(D=>{g=g.concat(D.options)});const k=ae();return n.jsx(er,{windowSize:k,menuIsOpen:s,isFocused:m,isDisabled:d,selectedValue:S,hasError:R,children:n.jsx(se.Control,{...e,className:"select-control",children:e.children})})},Eo=e=>{const{selectProps:s,children:m}=e,{showDownChevronWithValue:d}=s;return n.jsxs(se.ValueContainer,{...e,className:"select-value-container",children:[m,d===!0?n.jsx(De,{children:n.jsx(nr,{})}):null]})},Uo=e=>{const{selectProps:s}=e,{placeholder:m,value:d}=s;return n.jsx(se.Input,{...e,autoComplete:"off",placeholder:d==null?m:void 0,children:e.children})},Wo=e=>{const{children:s,selectProps:m}=e,{customFirstGroup:d,updateCustomFirstGroup:r,getRenameOptionText:V,onClickRenameOption:S}=m,R=ae(),g=V?.(e.selectProps.inputValue);return f.useEffect(()=>{d==null&&r(s[0])},[d,r,s]),n.jsx(n.Fragment,{children:e.isLoading===!0?n.jsxs(se.MenuList,{...e,children:[d,n.jsx(cr,{windowSize:R,children:[...Array(2)].map((k,D)=>n.jsxs(mr,{windowSize:R,children:[n.jsx(Tn,{width:c[4],height:c[4]}),n.jsx(Pe,{width:218,height:c[4]})]},D))})]}):n.jsxs(se.MenuList,{...e,children:[s,g!=null&&g.length>0?n.jsxs(pr,{onClick:()=>{S?.(e.selectProps.inputValue)},children:[n.jsx(hr,{children:n.jsx(ur,{})}),n.jsx(gr,{children:g})]}):null]})})},qo=e=>n.jsx(se.Group,{...e,children:e.children}),Go=e=>{const[s,m]=f.useState(!0);return n.jsx(ar,{className:"group-heading-container",isGroupOpen:s,onClick:()=>m(!s),children:n.jsxs(se.GroupHeading,{...e,children:[n.jsx(lr,{isGroupOpen:s,children:n.jsx(dr,{className:"close-tick-icon"})}),e.children]})})},Ho=({children:e,...s},m)=>{const d=m==null||s.selectProps.menuIsOpen===!0?e:m.sticky===!0?n.jsx(Jo,{title:m.text,children:e}):n.jsx(Fe,{style:{padding:t.sp3},title:m.text,placement:"top",children:e});return n.jsx(se.SingleValue,{...s,children:d})},Qo=()=>null,Ko=e=>{const{data:s,isSelected:m,isDisabled:d,isFocused:r}=e;return n.jsx(tr,{className:"select-option-wrapper",isFocused:r,isSelected:m,isDisabled:d,isOptionRecommended:s.isOptionRecommended===!0,showBottomBorder:s.info==null||s.isOptionRecommended===!1,children:n.jsx(se.Option,{...e,className:"select-option",children:n.jsxs(or,{isOptionRecommended:s.isOptionRecommended,children:[s.isOptionRecommended===!0?n.jsx(wr,{children:n.jsx(xr,{})}):null,n.jsxs(sr,{isSelected:m,isOptionRecommended:s.isOptionRecommended,children:[n.jsx(rr,{isSelected:m,isDisabled:d,children:s.label}),s.isOptionRecommended===!0&&s.info!=null?n.jsx(ir,{isSelected:m,isDisabled:d,children:s.info}):null]})]})})})},Jo=({children:e,title:s})=>n.jsxs(Xo,{children:[n.jsxs(Yo,{children:[s,n.jsx(Zo,{})]}),e]}),Xo=o.div`
212
212
  position: relative;
213
213
  display: none;
214
- `,Xo=o.div`
214
+ `,Yo=o.div`
215
215
  position: absolute;
216
216
  background: ${dn.primary};
217
217
  color: ${dn.grey5};
@@ -440,7 +440,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
440
440
  overflow-wrap: break-word;
441
441
  white-space: normal;
442
442
  word-break: break-all;
443
- `,$r=()=>null,Sr=()=>null,yr=()=>null,jr=()=>null,hn=(e,s,m,d,r)=>{const V=je.getLocalizedStrings().vendorReview.firstReview,S=[];return m.length>0&&S.push({label:V.vendorDropdown.recommendedVendor,options:[]}),m.forEach(R=>{S[0].options.push({label:R.globalMerchantName,value:R.globalMerchantId??R.globalMerchantName,isVisible:!0,isDisabled:s,info:R.reason,isOptionRecommended:!0})}),S.length&&S[0].options.length===0&&S.pop(),S.push({label:V.vendorDropdown.allVendors,options:e.map(R=>({label:R.globalMerchantName,value:R.globalMerchantId,isVisible:!0}))}),d!=null&&S[S.length-1].options.push({label:d.name,value:d.id,isVisible:!1,isDisabled:s}),r!=null&&S[S.length-1].options.push({label:r.name,value:r.id,isVisible:!1}),S},T={containerPaddingLeft:new w(c[3],c[4]),containerPaddingRight:new w(c[3],c[4]),containerPaddingTop:new w(c[2],c[3]),containerPaddingBottom:new w(c[2],c[3]),containerMarginLeft:new w(c[4],c[8]),nameLogoWidth:new w(c[6],c[6]),nameLogoHeight:new w(c[6],c[6]),logoToValueGap:new w(c[2],c[2]),logoHeightAndWidth:new w(c[3],c[4]),webkitLineClamp:new w(2,2,1,1,1)},{common:U,vendorReview:{firstReview:Se}}=je.getLocalizedStrings(),Rr=({analytics:e,authParams:s,attachmentEndpoint:m,sectionId:d,rowData:r,searchAutoComplete:V,setCurrentVendorInAction:S,onClickRenameOption:R,onVendorNameClick:g,onClickSave:k,onClickCancel:D,onClearGlobalMerchantAutoCompleteResults:le})=>{const ee=mn(),b=ae(),G=Nn(),[ne,L]=f.useState(!1),[Ue,Ce]=f.useState(0),[Ve,ue]=f.useState(!1),{globalMerchantAutoCompleteView:_}=V.autoCompleteData,W=r.currentSelection!=null,[Le,te]=f.useState(!1),{transactionAttachments:C}=r,[ke,H]=f.useState([]),[P,N]=f.useState(null),[E,x]=f.useState(0),[de,he]=f.useState(0),[Q,u]=f.useState(0),y=a=>{u(a),te(!0),we(C[a]),N(ke[a])};function q(a){x(a.targetTouches[0].clientX)}function ge(a){he(a.targetTouches[0].clientX)}function K(a){return a<0?C.length+a:a%C.length}function ce(){E-de>50&&de!==0&&Q<C.length-1?(y(K(Q+1)),x(0),he(0)):E-de<-50&&de!==0&&Q>0&&(y(K(Q-1)),x(0),he(0))}const[_e,we]=f.useState(C[0]),Ze=()=>{te(!1),N(null),H([]),C.length>0&&we(C[0])},en=()=>{H([]),Ce(a=>{const $=a<C.length-1?a+1:0;return Ge(r.vendorId,$),$})},nn=()=>{H([]),Ce(a=>{const $=a>0?a-1:C.length-1;return Ge(r.vendorId,$),$})},We=C.length===0,qe=C.map(a=>a.id),Ge=(a,$)=>{te(!0);async function A(Qe){return await fn(m,s,Qe)}const oe=[qe[$]];A({vendorId:a,attachmentIds:oe}).then(Qe=>{H(Qe),we(C[$]),C.length>0&&N(Qe[0])})},tn=a=>{te(!0);async function $(A){return await fn(m,s,A)}$({vendorId:a,attachmentIds:qe}).then(A=>{H(A),C.length>0&&N(A[0])})},He=f.useMemo(()=>r.currentSelection==="customMerchant"&&r.selectedVendor.id!=null&&r.selectedVendor.name!=null?{id:r.selectedVendor.id,name:r.selectedVendor.name}:void 0,[r]),xe=r.status.code==="under_review"||r.saveStatus.fetchState==="In-Progress",O=r.status.code==="merge_in_qbo"||r.status.code==="merge_in_netsuite",Me=O||xe,i=a=>{let $=a.websiteUrl?.toString();if($){if($.includes("http")||($="https://".concat($)),r.currentVendor!=null){const A=a?.globalMerchantName??null;e.trackVendorReviewWebsiteOpened({reviewSource:"tenant_review",vendorName:r.currentVendor.name,wasRecommendationAvailable:!!A,recommendedVendorName:A,recommendedVendorReason:a.reason??null,vendorWebsite:$})}window.open($,"_blank")}},h=r.currentVendor!=null?{label:{label:r.currentVendor?.name,style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:sn(d,ie,"retain"),defaultChecked:r.currentSelection==="retain"},tooltipProps:{text:r.currentVendor?.name},isDisabled:Me}:void 0,v=f.useCallback(a=>a.logo!=null?n.jsxs(Dr,{children:[n.jsx(wn,{photoUrl:a.logo.toString(),styles:{width:T.logoHeightAndWidth.valuePx(b),height:T.logoHeightAndWidth.valuePx(b)},placeholder:{width:T.logoHeightAndWidth.value(b),height:T.logoHeightAndWidth.value(b)},fallbackAvatar:n.jsx(ln,{children:n.jsx(rn,{name:a.globalMerchantName,size:T.logoHeightAndWidth.valuePx(b)})})}),n.jsx($e,{windowSize:b,isLastItem:!1,children:n.jsx(kn,{children:a.globalMerchantName})})]}):n.jsx($e,{windowSize:b,isLastItem:!1,children:n.jsx(kn,{children:a.globalMerchantName})}),[b]),l=r.recommendations.map((a,$)=>{const A=v(a),oe=`recommended${yt($)}`;return{label:{label:A,style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:sn(d,ie,oe),defaultChecked:r.currentSelection===oe},tooltipProps:{text:a.websiteUrl?.toString().length?n.jsx(Cr,{recommendation:a,onRedirectionToRecommendedMerchantWebsiteUrl:()=>i(a)}):a.globalMerchantName,maxWidth:"360px"},isDisabled:Me,fieldName:oe}}),p=f.useMemo(()=>({defaultOptions:hn(_.globalMerchants,O,r.recommendations,r.currentVendor,He),selectedOption:r.selectedVendor.id}),[_,r,He,O]),j=()=>{L(!1),le()},Y=a=>{const $=r.currentVendor?.name,A=[..._.globalMerchants.map(oe=>oe.globalMerchantName),...r.recommendations.map(oe=>oe.globalMerchantName)];return r.currentVendor==null||A.includes(a)||$===a?null:a.trim().length>0?Se.vendorDropdown.fromOldName.replace("__old_name__",$??"")+" "+Se.vendorDropdown.toNewName.replace("__new_name__",a??""):null},on=a=>{a.stopPropagation(),k(r.vendorId)},Hn=a=>{a.stopPropagation(),D(d)},Qn=a=>{a.stopPropagation(),L(!0)},Kn=()=>{r.selectedVendor.id!=null&&r.vendorQboId!=null&&g(r.vendorId,r.vendorQboId)},Yn=a=>{r.selectedVendor.id!=null&&R(r.selectedVendor.id,a),L(!1)},Jn=(a,$)=>{S(r.vendorId),V.loadOptions(a,$)},Xn=a=>r.recommendations.find($=>$.globalMerchantId===a||$.globalMerchantName===a)?.reason??"",Zn=()=>{k(r.vendorId,!0)},et=()=>{k(r.vendorId,!1,!0)};return n.jsxs(kr,{windowSize:b,isDisabled:xe,isRowActive:W,children:[n.jsx(Ie,{windowSize:b,width:25,isDisabled:xe,gap:T.logoToValueGap,children:n.jsx(n.Fragment,{children:ne===!0?n.jsx(jt,{onClickAway:j,children:n.jsx(Pr,{windowSize:b,children:n.jsx(Bo,{name:sn(d,me),placeholder:U.strings.empty,defaultValue:p,autoFocus:!0,customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start",margin:`${t.sp0} ${t.sp3}`}),singleValue:()=>({display:"flex",alignItems:"center",color:ee.colors.hero,"&:hover":{color:ee.colors.primary}})},style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:"20px",cursor:"inherit",alignItems:"center"},valueToInfo:Xn,menuIsOpen:ne,getRenameOptionText:Y,onMenuClose:j,loadOptions:Jn,isOptionRemovable:!1,onClickRenameOption:Yn})})}):n.jsxs(n.Fragment,{children:[r.selectedVendor?.logo!=null&&r.selectedVendor.name!=null?n.jsx(wn,{photoUrl:r.selectedVendor.logo.toString(),styles:{width:T.nameLogoWidth.valuePx(b),height:T.nameLogoHeight.valuePx(b)},fallbackAvatar:n.jsx(ln,{children:n.jsx(rn,{name:r.selectedVendor.name,size:t.sp6})})}):r.selectedVendor.name!=null?n.jsx(ln,{children:n.jsx(rn,{name:r.selectedVendor.name,size:t.sp6})}):null,n.jsx(Nr,{onClick:Kn,"data-testid":J("vendor-first-review-row-vendor-name-text"),children:n.jsxs(Or,{children:[r.selectedVendor.name?n.jsx(Fe,{enterDelay:600,display:"block",placement:"bottom",title:r.selectedVendor.name,children:n.jsx(jn,{children:r.selectedVendor.name})}):n.jsx(jn,{children:U.strings.hyphen}),n.jsx(Fe,{display:"block",placement:"bottom",title:U.tooltips.editName,enterDelay:600,children:n.jsx(Ir,{onClick:Qn,"data-testid":J("vendor-first-review-row-edit-icon")})})]})})]})})}),n.jsx(Ie,{windowSize:b,width:c[1],isDisabled:!1,children:C.length>0?n.jsx($e,{windowSize:b,className:"vendor-first-review-row-item",children:n.jsx(Lr,{isDisabled:We,onClick:()=>We===!1?tn(r.vendorId):null,"data-testid":J("vendor-first-review-row-attachment-tag-box"),children:n.jsx(Fe,{display:"block",placement:"top",title:Se.viewRecipts,enterDelay:600,children:n.jsx(_r,{children:n.jsx(Rt,{width:t.sp3,height:t.sp3})})})})}):n.jsx($e,{className:"vendor-first-review-row-item",windowSize:b,children:U.strings.hyphen})}),n.jsx(Ie,{windowSize:b,width:25,isDisabled:Me,gap:T.logoToValueGap,children:l.map((a,$)=>n.jsxs(n.Fragment,{children:[n.jsx($e,{windowSize:b,className:"vendor-first-review-row-item",children:n.jsx(xn,{isHighlighted:!0,defaultChecked:r.currentSelection===a.fieldName,label:a.label,checkBoxField:a.checkBoxField,isDisabled:a.isDisabled,tooltipProps:a.tooltipProps})}),$<l.length-1?n.jsxs(Vn,{children:[" ",U.texts.or]}):null]}))}),n.jsx(Ie,{windowSize:b,width:20,isDisabled:Me,children:r.currentVendor!=null&&h!=null?n.jsx($e,{windowSize:b,className:"vendor-first-review-row-item",children:n.jsx(xn,{defaultChecked:r.currentSelection==="retain",label:h.label,checkBoxField:h.checkBoxField,isDisabled:h.isDisabled,tooltipProps:h.tooltipProps,backgroundDefaultColor:ee.colors.grey5})}):null}),n.jsx(Ie,{windowSize:b,"data-currentVendorName":r.currentVendor?.name,"data-mergeVendorName":r.mergeVendorName,"data-testid":J("vendor-first-review-row-status-tag"),width:W?10:25,isDisabled:xe,children:n.jsxs($e,{windowSize:b,className:"vendor-first-review-row-item",children:[n.jsxs(Vn,{children:[n.jsx(Mr,{isDisabled:!1,clickable:!1,statusMergeInQBO:O,children:n.jsx(Sn,{children:r.status.name})}),O&&r.currentVendor!=null&&r.mergeVendorName!=null?n.jsx(Fe,{title:n.jsx(Vr,{vendorName:r.currentVendor.name,mergeVendorName:r.mergeVendorName,statusCode:r.status}),maxWidth:"312px",children:n.jsx(Ct,{width:t.sp3,height:t.sp3})}):null]}),r.lastUpdatedVendorNameByUser!=null&&O?n.jsx(Sn,{children:`${U.by} ${Vt(r.lastUpdatedVendorNameByUser)}`}):null]})}),n.jsxs(Ie,{windowSize:b,width:W?15:0,isDisabled:xe,className:"vendor-first-review-action-items",children:[n.jsx(vn,{variant:"light_transparent",label:U.footer.cancel,onClick:Hn,size:"small",style:{height:"100%"},disabled:!W}),n.jsx(yn,{space:t.sp0}),n.jsx(vn,{variant:"primary",loading:r.saveStatus.fetchState==="In-Progress",label:U.texts.confirm,onClick:on,size:"small",style:{height:"100%"},disabled:!W}),n.jsx(yn,{space:t.sp0}),n.jsx(Tr,{children:r.currentSelection==null?n.jsx(Ft,{menuItems:n.jsxs(zr,{children:[n.jsxs(Rn,{onClick:()=>{ue(!1),Zn()},"data-testid":J("vendor-first-review-row-mark-as-employee-menu-item"),children:[n.jsx(Cn,{}),Se.rowMoreActions.markAsEmployee]}),n.jsxs(Rn,{onClick:()=>{ue(!1),et()},"data-testid":J("vendor-first-review-row-mark-as-contractor-menu-item"),children:[n.jsx(Cn,{}),Se.rowMoreActions.markAsLocalContractor]})]}),setIsMenuOpen:ue,isMenuOpen:Ve}):null})]}),Le&&C.length>0?Bt.createPortal(n.jsx(kt,{allFiles:ke,fileSource:P,file:_e,title:_e.fileName,attachments:C,showNavigation:G.connectionName==="netsuite",setFileSource:N,setShowFullScreenView:te,onCrossClick:Ze,onNextClick:en,onPreviousClick:nn,setSelectedFileAttachment:we,handleTouchStart:q,handleTouchMove:ge,handleTouchEnd:ce}),document.body):null]})},Cr=({recommendation:e,onRedirectionToRecommendedMerchantWebsiteUrl:s})=>n.jsxs(Gn,{setMaxHeight:!0,children:[n.jsxs(Ke,{children:[n.jsx(ze,{children:U.labels.name}),n.jsx(Ye,{children:e.globalMerchantName})]}),n.jsxs(Ke,{children:[n.jsx(ze,{children:U.labels.websiteURL}),n.jsx(Ye,{className:"websiteUrlTooltipText",onClick:s,"data-testid":J("vendor-first-review-row-website-url-tooltip-content"),children:e.websiteUrl?.toString()})]})]}),Vr=({vendorName:e,mergeVendorName:s,statusCode:m})=>n.jsxs(Gn,{setMaxHeight:!1,children:[m.code==="merge_in_qbo"?n.jsx(ze,{children:Se.tooltip.mergeInQBOText}):null,m.code==="merge_in_netsuite"?n.jsx(ze,{children:Se.tooltip.mergeInNetSuiteText}):null,n.jsxs(Ke,{children:[n.jsx(ze,{children:U.labels.vendor}),n.jsx(Ye,{children:e})]}),n.jsxs(Ke,{children:[n.jsx(ze,{children:U.labels.mergedTo}),n.jsx(Ye,{children:s})]})]}),kr=o.div`
443
+ `,$r=()=>null,Sr=()=>null,yr=()=>null,jr=()=>null,hn=(e,s,m,d,r)=>{const V=je.getLocalizedStrings().vendorReview.firstReview,S=[];return m.length>0&&S.push({label:V.vendorDropdown.recommendedVendor,options:[]}),m.forEach(R=>{S[0].options.push({label:R.globalMerchantName,value:R.globalMerchantId??R.globalMerchantName,isVisible:!0,isDisabled:s,info:R.reason,isOptionRecommended:!0})}),S.length&&S[0].options.length===0&&S.pop(),S.push({label:V.vendorDropdown.allVendors,options:e.map(R=>({label:R.globalMerchantName,value:R.globalMerchantId,isVisible:!0}))}),d!=null&&S[S.length-1].options.push({label:d.name,value:d.id,isVisible:!1,isDisabled:s}),r!=null&&S[S.length-1].options.push({label:r.name,value:r.id,isVisible:!1}),S},T={containerPaddingLeft:new w(c[3],c[4]),containerPaddingRight:new w(c[3],c[4]),containerPaddingTop:new w(c[2],c[3]),containerPaddingBottom:new w(c[2],c[3]),containerMarginLeft:new w(c[4],c[8]),nameLogoWidth:new w(c[6],c[6]),nameLogoHeight:new w(c[6],c[6]),logoToValueGap:new w(c[2],c[2]),logoHeightAndWidth:new w(c[3],c[4]),webkitLineClamp:new w(2,2,1,1,1)},{common:U,vendorReview:{firstReview:Se}}=je.getLocalizedStrings(),Rr=({analytics:e,authParams:s,attachmentEndpoint:m,sectionId:d,rowData:r,searchAutoComplete:V,setCurrentVendorInAction:S,onClickRenameOption:R,onVendorNameClick:g,onClickSave:k,onClickCancel:D,onClearGlobalMerchantAutoCompleteResults:le})=>{const ee=mn(),b=ae(),G=Nn(),[ne,L]=f.useState(!1),[Ue,Ce]=f.useState(0),[Ve,ue]=f.useState(!1),{globalMerchantAutoCompleteView:_}=V.autoCompleteData,W=r.currentSelection!=null,[Le,te]=f.useState(!1),{transactionAttachments:C}=r,[ke,H]=f.useState([]),[P,N]=f.useState(null),[E,x]=f.useState(0),[de,he]=f.useState(0),[Q,u]=f.useState(0),y=a=>{u(a),te(!0),we(C[a]),N(ke[a])};function q(a){x(a.targetTouches[0].clientX)}function ge(a){he(a.targetTouches[0].clientX)}function K(a){return a<0?C.length+a:a%C.length}function ce(){E-de>50&&de!==0&&Q<C.length-1?(y(K(Q+1)),x(0),he(0)):E-de<-50&&de!==0&&Q>0&&(y(K(Q-1)),x(0),he(0))}const[_e,we]=f.useState(C[0]),Ze=()=>{te(!1),N(null),H([]),C.length>0&&we(C[0])},en=()=>{H([]),Ce(a=>{const $=a<C.length-1?a+1:0;return Ge(r.vendorId,$),$})},nn=()=>{H([]),Ce(a=>{const $=a>0?a-1:C.length-1;return Ge(r.vendorId,$),$})},We=C.length===0,qe=C.map(a=>a.id),Ge=(a,$)=>{te(!0);async function A(Qe){return await fn(m,s,Qe)}const oe=[qe[$]];A({vendorId:a,attachmentIds:oe}).then(Qe=>{H(Qe),we(C[$]),C.length>0&&N(Qe[0])})},tn=a=>{te(!0);async function $(A){return await fn(m,s,A)}$({vendorId:a,attachmentIds:qe}).then(A=>{H(A),C.length>0&&N(A[0])})},He=f.useMemo(()=>r.currentSelection==="customMerchant"&&r.selectedVendor.id!=null&&r.selectedVendor.name!=null?{id:r.selectedVendor.id,name:r.selectedVendor.name}:void 0,[r]),xe=r.status.code==="under_review"||r.saveStatus.fetchState==="In-Progress",O=r.status.code==="merge_in_qbo"||r.status.code==="merge_in_netsuite",Me=O||xe,i=a=>{let $=a.websiteUrl?.toString();if($){if($.includes("http")||($="https://".concat($)),r.currentVendor!=null){const A=a?.globalMerchantName??null;e.trackVendorReviewWebsiteOpened({reviewSource:"tenant_review",vendorName:r.currentVendor.name,wasRecommendationAvailable:!!A,recommendedVendorName:A,recommendedVendorReason:a.reason??null,vendorWebsite:$})}window.open($,"_blank")}},h=r.currentVendor!=null?{label:{label:r.currentVendor?.name,style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:sn(d,ie,"retain"),defaultChecked:r.currentSelection==="retain"},tooltipProps:{text:r.currentVendor?.name},isDisabled:Me}:void 0,v=f.useCallback(a=>a.logo!=null?n.jsxs(Dr,{children:[n.jsx(wn,{photoUrl:a.logo.toString(),styles:{width:T.logoHeightAndWidth.valuePx(b),height:T.logoHeightAndWidth.valuePx(b)},placeholder:{width:T.logoHeightAndWidth.value(b),height:T.logoHeightAndWidth.value(b)},fallbackAvatar:n.jsx(ln,{children:n.jsx(rn,{name:a.globalMerchantName,size:T.logoHeightAndWidth.valuePx(b)})})}),n.jsx($e,{windowSize:b,isLastItem:!1,children:n.jsx(kn,{children:a.globalMerchantName})})]}):n.jsx($e,{windowSize:b,isLastItem:!1,children:n.jsx(kn,{children:a.globalMerchantName})}),[b]),l=r.recommendations.map((a,$)=>{const A=v(a),oe=`recommended${yt($)}`;return{label:{label:A,style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:sn(d,ie,oe),defaultChecked:r.currentSelection===oe},tooltipProps:{text:a.websiteUrl?.toString().length?n.jsx(Cr,{recommendation:a,onRedirectionToRecommendedMerchantWebsiteUrl:()=>i(a)}):a.globalMerchantName,maxWidth:"360px"},isDisabled:Me,fieldName:oe}}),p=f.useMemo(()=>({defaultOptions:hn(_.globalMerchants,O,r.recommendations,r.currentVendor,He),selectedOption:r.selectedVendor.id}),[_,r,He,O]),j=()=>{L(!1),le()},J=a=>{const $=r.currentVendor?.name,A=[..._.globalMerchants.map(oe=>oe.globalMerchantName),...r.recommendations.map(oe=>oe.globalMerchantName)];return r.currentVendor==null||A.includes(a)||$===a?null:a.trim().length>0?Se.vendorDropdown.fromOldName.replace("__old_name__",$??"")+" "+Se.vendorDropdown.toNewName.replace("__new_name__",a??""):null},on=a=>{a.stopPropagation(),k(r.vendorId)},Hn=a=>{a.stopPropagation(),D(d)},Qn=a=>{a.stopPropagation(),L(!0)},Kn=()=>{r.selectedVendor.id!=null&&r.vendorQboId!=null&&g(r.vendorId,r.vendorQboId)},Jn=a=>{r.selectedVendor.id!=null&&R(r.selectedVendor.id,a),L(!1)},Xn=(a,$)=>{S(r.vendorId),V.loadOptions(a,$)},Yn=a=>r.recommendations.find($=>$.globalMerchantId===a||$.globalMerchantName===a)?.reason??"",Zn=()=>{k(r.vendorId,!0)},et=()=>{k(r.vendorId,!1,!0)};return n.jsxs(kr,{windowSize:b,isDisabled:xe,isRowActive:W,children:[n.jsx(Ie,{windowSize:b,width:25,isDisabled:xe,gap:T.logoToValueGap,children:n.jsx(n.Fragment,{children:ne===!0?n.jsx(jt,{onClickAway:j,children:n.jsx(Pr,{windowSize:b,children:n.jsx(Bo,{name:sn(d,me),placeholder:U.strings.empty,defaultValue:p,autoFocus:!0,customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start",margin:`${t.sp0} ${t.sp3}`}),singleValue:()=>({display:"flex",alignItems:"center",color:ee.colors.hero,"&:hover":{color:ee.colors.primary}})},style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:"20px",cursor:"inherit",alignItems:"center"},valueToInfo:Yn,menuIsOpen:ne,getRenameOptionText:J,onMenuClose:j,loadOptions:Xn,isOptionRemovable:!1,onClickRenameOption:Jn})})}):n.jsxs(n.Fragment,{children:[r.selectedVendor?.logo!=null&&r.selectedVendor.name!=null?n.jsx(wn,{photoUrl:r.selectedVendor.logo.toString(),styles:{width:T.nameLogoWidth.valuePx(b),height:T.nameLogoHeight.valuePx(b)},fallbackAvatar:n.jsx(ln,{children:n.jsx(rn,{name:r.selectedVendor.name,size:t.sp6})})}):r.selectedVendor.name!=null?n.jsx(ln,{children:n.jsx(rn,{name:r.selectedVendor.name,size:t.sp6})}):null,n.jsx(Nr,{onClick:Kn,"data-testid":X("vendor-first-review-row-vendor-name-text"),children:n.jsxs(Or,{children:[r.selectedVendor.name?n.jsx(Fe,{enterDelay:600,display:"block",placement:"bottom",title:r.selectedVendor.name,children:n.jsx(jn,{children:r.selectedVendor.name})}):n.jsx(jn,{children:U.strings.hyphen}),n.jsx(Fe,{display:"block",placement:"bottom",title:U.tooltips.editName,enterDelay:600,children:n.jsx(Ir,{onClick:Qn,"data-testid":X("vendor-first-review-row-edit-icon")})})]})})]})})}),n.jsx(Ie,{windowSize:b,width:c[1],isDisabled:!1,children:C.length>0?n.jsx($e,{windowSize:b,className:"vendor-first-review-row-item",children:n.jsx(Lr,{isDisabled:We,onClick:()=>We===!1?tn(r.vendorId):null,"data-testid":X("vendor-first-review-row-attachment-tag-box"),children:n.jsx(Fe,{display:"block",placement:"top",title:Se.viewRecipts,enterDelay:600,children:n.jsx(_r,{children:n.jsx(Rt,{width:t.sp3,height:t.sp3})})})})}):n.jsx($e,{className:"vendor-first-review-row-item",windowSize:b,children:U.strings.hyphen})}),n.jsx(Ie,{windowSize:b,width:25,isDisabled:Me,gap:T.logoToValueGap,children:l.map((a,$)=>n.jsxs(n.Fragment,{children:[n.jsx($e,{windowSize:b,className:"vendor-first-review-row-item",children:n.jsx(xn,{isHighlighted:!0,defaultChecked:r.currentSelection===a.fieldName,label:a.label,checkBoxField:a.checkBoxField,isDisabled:a.isDisabled,tooltipProps:a.tooltipProps})}),$<l.length-1?n.jsxs(Vn,{children:[" ",U.texts.or]}):null]}))}),n.jsx(Ie,{windowSize:b,width:20,isDisabled:Me,children:r.currentVendor!=null&&h!=null?n.jsx($e,{windowSize:b,className:"vendor-first-review-row-item",children:n.jsx(xn,{defaultChecked:r.currentSelection==="retain",label:h.label,checkBoxField:h.checkBoxField,isDisabled:h.isDisabled,tooltipProps:h.tooltipProps,backgroundDefaultColor:ee.colors.grey5})}):null}),n.jsx(Ie,{windowSize:b,"data-currentVendorName":r.currentVendor?.name,"data-mergeVendorName":r.mergeVendorName,"data-testid":X("vendor-first-review-row-status-tag"),width:W?10:25,isDisabled:xe,children:n.jsxs($e,{windowSize:b,className:"vendor-first-review-row-item",children:[n.jsxs(Vn,{children:[n.jsx(Mr,{isDisabled:!1,clickable:!1,statusMergeInQBO:O,children:n.jsx(Sn,{children:r.status.name})}),O&&r.currentVendor!=null&&r.mergeVendorName!=null?n.jsx(Fe,{title:n.jsx(Vr,{vendorName:r.currentVendor.name,mergeVendorName:r.mergeVendorName,statusCode:r.status}),maxWidth:"312px",children:n.jsx(Ct,{width:t.sp3,height:t.sp3})}):null]}),r.lastUpdatedVendorNameByUser!=null&&O?n.jsx(Sn,{children:`${U.by} ${Vt(r.lastUpdatedVendorNameByUser)}`}):null]})}),n.jsxs(Ie,{windowSize:b,width:W?15:0,isDisabled:xe,className:"vendor-first-review-action-items",children:[n.jsx(vn,{variant:"light_transparent",label:U.footer.cancel,onClick:Hn,size:"small",style:{height:"100%"},disabled:!W}),n.jsx(yn,{space:t.sp0}),n.jsx(vn,{variant:"primary",loading:r.saveStatus.fetchState==="In-Progress",label:U.texts.confirm,onClick:on,size:"small",style:{height:"100%"},disabled:!W}),n.jsx(yn,{space:t.sp0}),n.jsx(Tr,{children:r.currentSelection==null?n.jsx(Ft,{menuItems:n.jsxs(zr,{children:[n.jsxs(Rn,{onClick:()=>{ue(!1),Zn()},"data-testid":X("vendor-first-review-row-mark-as-employee-menu-item"),children:[n.jsx(Cn,{}),Se.rowMoreActions.markAsEmployee]}),n.jsxs(Rn,{onClick:()=>{ue(!1),et()},"data-testid":X("vendor-first-review-row-mark-as-contractor-menu-item"),children:[n.jsx(Cn,{}),Se.rowMoreActions.markAsLocalContractor]})]}),setIsMenuOpen:ue,isMenuOpen:Ve}):null})]}),Le&&C.length>0?Bt.createPortal(n.jsx(kt,{allFiles:ke,fileSource:P,file:_e,title:_e.fileName,attachments:C,showNavigation:G.connectionName==="netsuite",setFileSource:N,setShowFullScreenView:te,onCrossClick:Ze,onNextClick:en,onPreviousClick:nn,setSelectedFileAttachment:we,handleTouchStart:q,handleTouchMove:ge,handleTouchEnd:ce}),document.body):null]})},Cr=({recommendation:e,onRedirectionToRecommendedMerchantWebsiteUrl:s})=>n.jsxs(Gn,{setMaxHeight:!0,children:[n.jsxs(Ke,{children:[n.jsx(ze,{children:U.labels.name}),n.jsx(Je,{children:e.globalMerchantName})]}),n.jsxs(Ke,{children:[n.jsx(ze,{children:U.labels.websiteURL}),n.jsx(Je,{className:"websiteUrlTooltipText",onClick:s,"data-testid":X("vendor-first-review-row-website-url-tooltip-content"),children:e.websiteUrl?.toString()})]})]}),Vr=({vendorName:e,mergeVendorName:s,statusCode:m})=>n.jsxs(Gn,{setMaxHeight:!1,children:[m.code==="merge_in_qbo"?n.jsx(ze,{children:Se.tooltip.mergeInQBOText}):null,m.code==="merge_in_netsuite"?n.jsx(ze,{children:Se.tooltip.mergeInNetSuiteText}):null,n.jsxs(Ke,{children:[n.jsx(ze,{children:U.labels.vendor}),n.jsx(Je,{children:e})]}),n.jsxs(Ke,{children:[n.jsx(ze,{children:U.labels.mergedTo}),n.jsx(Je,{children:s})]})]}),kr=o.div`
444
444
  display: flex;
445
445
  margin-bottom: ${t.sp3};
446
446
  background-color: ${e=>e.theme.colors.grey5};
@@ -593,7 +593,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
593
593
  display: flex;
594
594
  gap: ${t.sp3};
595
595
  justify-content: space-between;
596
- `,Ye=o(Re)`
596
+ `,Je=o(Re)`
597
597
  color: ${F.primaryDark};
598
598
  overflow: hidden;
599
599
  word-wrap: break-word;
@@ -655,7 +655,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
655
655
  max-width: 100%;
656
656
  `,kn=o.div`
657
657
  ${Ar};
658
- `,Br=e=>n.jsx(Rr,{...e}),gn={listContainerMarginTop:new w(c[3],c[3]),itemHeight:new w(So,$o),vendorListWrapperContainerMarginTop:new w(c[4],0)},{common:re,vendorReview:{firstReview:I}}=je.getLocalizedStrings(),hi=({vendorFirstReviewView:e,globalMerchantAutoCompleteData:s,analytics:m,authParams:d,attachmentEndpoint:r,onBackClick:V,onVendorNameClick:S,onGlobalMerchantAutoCompleteInputChange:R,onUpdateLocalData:g,onFetchVendorReviewView:k,onUpdateScrollYOffset:D,onUpdatePageToken:le,onUpdateSortUiState:ee,onClickSave:b,updateVendorDetailLocalData:G,onReloadList:ne,onClickCancelPopup:L,onClickRedirectToQBO:Ue,onClearGlobalMerchantAutoCompleteResults:Ce,onResetVendorLocalData:Ve,onClickMenuIcon:ue})=>{const _=ae(),W=Nn(),Le=mn(),[te,C]=f.useState(!1),[ke,H]=f.useState(null),{uiState:P,fetchState:N,vendorReviewView:E,recentlySavedErroredVendorView:x}=e,[de,he]=f.useState(P.searchText),Q=f.useRef(null),u=f.useRef(),y=nt({mode:"all",reValidateMode:"onChange",defaultValues:Mn(E,s.globalMerchantAutoCompleteView),values:Mn(E,s.globalMerchantAutoCompleteView),resetOptions:{keepDirtyValues:!0}});f.useEffect(()=>{if(s.globalMerchantAutoCompleteView.fetchState==="Completed"){const i=e.vendorReviewView.find(v=>v.vendorId===ke);let h;i!=null&&(h=i?.recommendations),u.current?.(hn(s.globalMerchantAutoCompleteView.globalMerchants,i?.status.code==="merge_in_qbo",h??[])),H(null)}},[s.globalMerchantAutoCompleteView.fetchState]),f.useEffect(()=>{Q.current?.resetAfterIndex(0)},[_,Q]),f.useEffect(()=>{N==="Completed"&&C(!1)},[N]),f.useEffect(()=>{const i=y.watch((h,{name:v,type:l})=>{v!=null&&h[Te]!=null&&tt(()=>Ze(v,h,l))});return()=>{i.unsubscribe()}}),f.useEffect(()=>{N==="Completed"&&m.trackVendorReviewPage("tenant_review",P.totalCount)},[N]);const q=i=>gn.itemHeight.value(_),ge=(i,h,v)=>{k(v??null,i,h)},K=i=>{le(null),ge(i,!1,null)},ce=(i,h)=>{u.current=h,R(i,"vendor")},_e=f.useRef(On(i=>K(i),500,{trailing:!0})).current,we=(i,h)=>{ee(h,i),le(null),ge(P.searchText,!1,null)},Ze=(i,h,v)=>{if(i.includes(Te)){const l=parseInt(i.split(".")[1]),p=Object.assign(h[Te][l]);let j=p[ie];if(p[ve]!=null){let Y;if(i.includes(`${ie}.${fe}`)&&(p[fe]?.globalMerchantId!=null||p[fe]?.globalMerchantName!=null)?(j={retain:!1,recommendedFirst:p[ie].recommendedFirst,recommendedSecond:!1,rename:!1,customMerchant:!1},Y=p[fe].globalMerchantId??p[fe].globalMerchantName):i.includes(`${ie}.${be}`)&&(p[be]?.globalMerchantId!=null||p[be]?.globalMerchantName!=null)?(j={retain:!1,recommendedFirst:!1,recommendedSecond:p[ie].recommendedSecond,rename:!1,customMerchant:!1},Y=p[be].globalMerchantId??p[be].globalMerchantName):i.includes(`${ie}.retain`)&&p[ve]!=null&&(j={retain:p[ie].retain,recommendedFirst:!1,recommendedSecond:!1,rename:!1,customMerchant:!1},Y=p[ve]),i.includes(me)&&(Y=p[me].selectedOption,p[me].selectedOption===p[fe]?.globalMerchantId||p[me].selectedOption===p[fe]?.globalMerchantName?j={retain:!1,recommendedFirst:!0,recommendedSecond:!1,rename:!1,customMerchant:!0}:p[me].selectedOption===p[be]?.globalMerchantId||p[me].selectedOption===p[be]?.globalMerchantName?j={retain:!1,recommendedFirst:!1,recommendedSecond:!0,rename:!1,customMerchant:!0}:p[me].selectedOption===p[ve]?j={retain:!0,recommendedFirst:!1,recommendedSecond:!1,rename:!1,customMerchant:!0}:j={retain:!1,recommendedFirst:!1,recommendedSecond:!1,rename:!1,customMerchant:!0}),v==null){Ve(p[ve]);return}g(p[ve],j,Y??p[ve])}}},en=()=>{C(!0),ge(P.searchText,!0,P.pageToken)},nn=i=>i<E.length,We=()=>{P.pageToken!=null&&N==="Completed"&&en()},qe=(i,h)=>{const v=e.vendorReviewView.find(l=>l.vendorId===i);v!=null&&g(v.vendorId,{retain:!1,recommendedFirst:!1,recommendedSecond:!1,rename:!0,customMerchant:!1},v.vendorId,h)},Ge=i=>{const h=parseInt(i.split(".")[1]),v=e.vendorReviewView[h];if(v?.currentVendor!=null){const l=v.recommendations[0]?.globalMerchantName??null;m.trackVendorReviewUpdateVendorCanceled({reviewSource:"tenant_review",vendorName:v.currentVendor.name,vendorReviewStatus:v.status.code??null,wasRecommendationAvailable:!!l,recommendedVendorName:l,recommendedVendorReason:v.recommendations[0]?.reason??null})}y.resetField(`${Te}.${h}`)},tn=y.handleSubmit(i=>{}),He=(i,h,v)=>{const l=e.vendorReviewView.find(p=>p.vendorId===i);if(l?.currentVendor!=null){const p=[];l.recommendations.forEach(j=>{j.globalMerchantId!=null&&p.push(j.globalMerchantId)}),(l?.currentSelection==="retain"||l?.currentSelection==="rename")&&l?.isWebsiteUrlSaved===!1&&G({id:i,name:l.currentVendor.name,qboId:l.vendorQboId??i,websiteUrl:Pn.toZeniUrlWithoutBaseURL(l.currentVendor.websiteUrl.toString())})}if(l?.currentSelection!=="retain"&&l?.currentSelection!=="rename"||l?.isWebsiteUrlSaved===!0){if(l?.currentVendor!=null){const p=l.selectedVendor.name,j=l.recommendations[0]?.globalMerchantName??null,Y=l.currentSelection,on=l.recommendations[0]?.globalMerchantId===l.selectedVendor.id||l.recommendations[0]?.globalMerchantName===p?l.recommendations[0]:void 0;m.trackVendorReviewSaveVendorRequested({reviewSource:"tenant_review",vendorName:l.currentVendor.name,vendorReviewStatus:l.status.code??null,saveRequestedVendorSource:Y,saveRequestedVendorName:p,saveRequestedVendorReason:on?.reason??null,isGlobalVendorRequested:l.currentSelection==="customMerchant",isVendorNameRecommendationSelected:j===p,isVendorNameChangedAndSelected:l.currentSelection==="rename",isVendorNameRetainSelected:Y==="retain",recommendedVendorName:j,wasRecommendationAvailable:!!j,recommendedVendorReason:l.recommendations[0]?.reason??null,isVendorNameMarkedAsEmployee:h??!1,isVendorNameMarkedAsLocalContractor:v??!1})}b(i,h,v)}},xe={onOkClick:()=>{if(W.connectionName==="netsuite")L();else if(x!=null){const i=e.vendorReviewView.find(h=>h.vendorId===x.vendorId);if(i?.currentVendor!=null){const h=i.selectedVendor.name,v=i.recommendations[0]?.globalMerchantId===i.selectedVendor.id||i.recommendations[0]?.globalMerchantName===h?i.recommendations[0]:void 0,l=i.currentSelection??(x.newRecommendedVendor!=null?"recommendedFirst":null),p=i.recommendations[0]?.globalMerchantName??null;if(x.oldRecommendedVendor!=null||x.newRecommendedVendor!=null){const j={vendorName:i.currentVendor.name,saveRequestedVendorName:h,saveRequestedVendorReason:v?.reason??null,isVendorNameRecommendationSelected:l==="recommendedFirst"||l==="recommendedSecond",isVendorNameRetainSelected:l==="retain",isVendorNameChangedAndSelected:l==="rename",wasRecommendationAvailable:!!p,recommendedVendorName:p,recommendedVendorReason:i.recommendations[0]?.reason??null};x.newRecommendedVendor!=null?(m.trackVendorReviewRecommendationUpdateContinuedOrCanceled({...j,reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantRecommendationUpdateContinue,saveRequestedVendorSource:l,vendorReviewStatus:i.status.code??null,updatedRecommendedVendorName:x.newRecommendedVendor.globalMerchantName,updatedRecommendedVendorReason:x.newRecommendedVendor.reason??null}),b(x.vendorId)):m.trackVendorReviewRecommendationUpdateContinuedOrCanceled({...j,reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantRecommendationUpdateCancel,saveRequestedVendorSource:l,vendorReviewStatus:i.status.code??null,updatedRecommendedVendorName:null,updatedRecommendedVendorReason:null}),L()}else m.trackVendorReviewMergeInQBORedirectedOrCanceled({reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantMergeInQBORedirect,vendorName:i.currentVendor.name,vendorReviewStatus:i.status.code??null,saveRequestedVendorSource:l,saveRequestedVendorName:h,saveRequestedVendorReason:v?.reason??null,isVendorNameRecommendationSelected:l==="recommendedFirst"||l==="recommendedSecond",isVendorNameRetainSelected:l==="retain",isVendorNameChangedAndSelected:l==="rename",wasRecommendationAvailable:!!p,recommendedVendorName:p,recommendedVendorReason:i.recommendations[0]?.reason??null}),Ue(),L()}}},onCancelClick:()=>{if(x!=null){const i=e.vendorReviewView.find(h=>h.vendorId===x.vendorId);if(i?.currentVendor!=null){const h=i.selectedVendor.name,v=i.recommendations[0]?.globalMerchantId===i.selectedVendor.id||i.recommendations[0]?.globalMerchantName===h?i.recommendations[0]:void 0,l=i.currentSelection,p=i.recommendations[0]?.globalMerchantName??null;if(x.oldRecommendedVendor!=null||x.newRecommendedVendor!=null){const j={vendorName:i.currentVendor.name,saveRequestedVendorName:h,saveRequestedVendorReason:v?.reason??null,isVendorNameRecommendationSelected:l==="recommendedFirst"||l==="recommendedSecond",isVendorNameRetainSelected:l==="retain",isVendorNameChangedAndSelected:l==="rename",wasRecommendationAvailable:!!p,recommendedVendorName:p,recommendedVendorReason:i.recommendations[0]?.reason??null};x.newRecommendedVendor!=null?m.trackVendorReviewRecommendationUpdateContinuedOrCanceled({...j,reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantRecommendationUpdateCancel,saveRequestedVendorSource:l,vendorReviewStatus:i.status.code??null,updatedRecommendedVendorName:x.newRecommendedVendor.globalMerchantName,updatedRecommendedVendorReason:x.newRecommendedVendor.reason??null}):m.trackVendorReviewRecommendationUpdateContinuedOrCanceled({...j,reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantRecommendationUpdateCancel,saveRequestedVendorSource:l,vendorReviewStatus:i.status.code??null,updatedRecommendedVendorName:null,updatedRecommendedVendorReason:null})}else m.trackVendorReviewMergeInQBORedirectedOrCanceled({reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantMergeInQBOCancel,vendorName:i.currentVendor.name,vendorReviewStatus:i.status.code??null,saveRequestedVendorSource:l,saveRequestedVendorName:h,saveRequestedVendorReason:v?.reason??null,isVendorNameRecommendationSelected:l==="recommendedFirst"||l==="recommendedSecond",isVendorNameRetainSelected:l==="retain",isVendorNameChangedAndSelected:l==="rename",wasRecommendationAvailable:!!p,recommendedVendorName:p,recommendedVendorReason:i.recommendations[0]?.reason??null})}L()}}},O=(()=>{if(x!=null)if(x.newRecommendedVendor!=null&&x.oldRecommendedVendor!=null){const i=I.popupMessages.zeniUpdatedRecommendationPopupTitle.replace("_vendor_name_",x.vendorName).replace("_old_recommendation_",x.oldRecommendedVendor.globalMerchantName).replace("_new_recommendation_",x.newRecommendedVendor.globalMerchantName);return{description:I.popupMessages.zeniUpdatedRecommendationPopupMsg,title:i,secondaryButtonText:re.cancel,primaryButtonText:re.continue}}else if(x.newRecommendedVendor!=null){const i=I.popupMessages.zeniNewRecommendationPopupTitle.replace("_vendor_name_",x.vendorName).replace("_new_recommendation_",x.newRecommendedVendor.globalMerchantName);return{description:I.popupMessages.zeniNewRecommendationPopupMsg,title:i,secondaryButtonText:re.cancel,primaryButtonText:re.continue}}else if(x.oldRecommendedVendor!=null){const i=I.popupMessages.zeniNewRecommendationNotAvailablePopupTitle.replace("_vendor_name_",x.vendorName);return{description:I.popupMessages.zeniNewRecommendationNotAvailablePopupMsg,title:i,primaryButtonText:re.gotIt}}else return W.connectionName==="netsuite"?{descriptionHeader:I.popupMessages.netsuiteLinkPopupMsgHeader,title:I.popupMessages.netsuiteLinkPopupTitle.replace("_vendor_name_",x.vendorName),subTitle:I.popupMessages.netsuiteLinkPopupSubTitle,description:I.popupMessages.netsuiteLinkPopupDescription,primaryButtonText:re.texts.close}:{descriptionHeader:I.popupMessages.qboLinkPopupMsgHeader,title:I.popupMessages.qboLinkPopupTitle.replace("_vendor_name_",x.vendorName),subTitle:I.popupMessages.qboLinkPopupSubTitle,secondaryButtonText:re.cancel,primaryButtonText:I.popupMessages.redirectToQBO}})(),Me=n.jsx(ot,{isSearchOpen:P.searchText.length>0,searchPlaceHolder:I.searchPlaceholder,searchText:de,onSearchTextChanged:i=>{he(i),i.trim().length>=2?_e(i):i.trim().length==0&&_e("")}});return n.jsx(Er,{windowSize:_,children:n.jsxs(rt,{...y,children:[n.jsx(it,{title:I.title,backgroundColor:Le.colors.grey4,onBackClick:V,rightSideComponent:Me,showMenuIcon:_==="medium-compact"||_==="small",onClickMenuIcon:ue,source:"VendorFirstReviewPage"}),n.jsx("form",{onSubmit:tn,children:n.jsxs(Ur,{windowSize:_,children:[n.jsx(st,{controller:!!x?.vendorId&&!!O,children:n.jsx(at,{titleComponent:n.jsx(dt,{children:n.jsxs(ei,{children:[n.jsx(ct,{children:O?.title}),O?.subTitle!=null?n.jsx(ni,{children:O.subTitle}):null]})}),descriptionComponent:n.jsxs(lt,{style:{textAlign:O?.description==null?"left":"unset"},children:[O?.descriptionHeader!=null?n.jsx(ti,{children:O.descriptionHeader}):null,O?.description!=null?n.jsx(oi,{children:O.description}):W.connectionName==="netsuite"?n.jsx(oo,{}):n.jsx(Qt,{})]}),primaryButtonText:O?.primaryButtonText??re.continue,secondaryButtonText:O?.secondaryButtonText,containerStyle:{maxWidth:"624px"},action:xe,primaryButtonWidth:148,secondaryButtonWidth:148})}),n.jsx(Wr,{windowSize:_,children:N==="Error"?n.jsxs(Gr,{children:[n.jsx(Hr,{onClick:ne,"data-testid":J("vendor-first-review-page-reload-icon"),children:n.jsx(mt,{})}),n.jsx(Kr,{children:re.reloadPage.label})]}):N==="Completed"&&E.length===0?n.jsx(pt,{message:P.searchText?I.noMatchedDataText:I.noDataText}):N==="Not-Started"||N==="In-Progress"&&E.length===0?n.jsx(Do,{sortConfig:{sortKey:P.sortKey,sortOrder:P.sortOrder},onColumnSortConfigChanged:we,disableClick:!0}):n.jsx(qr,{windowSize:_,children:n.jsx(ut,{children:({height:i,width:h})=>n.jsx(ht,{isItemLoaded:nn,itemCount:E.length+1,loadMoreItems:We,children:({onItemsRendered:v})=>n.jsxs(Zr,{style:{height:i,width:h},children:[n.jsx(Xr,{style:{width:"auto"},children:n.jsx(qn,{sortConfig:{sortKey:P.sortKey,sortOrder:P.sortOrder},disableClick:N!=="Completed",onColumnSortConfigChanged:we})}),n.jsx(gt,{height:i-Fn,itemSize:q,width:h,ref:Q,overscanCount:1,itemCount:E.length,onItemsRendered:v,onScroll:({scrollOffset:l})=>{D(l)},initialScrollOffset:P.scrollYOffset,itemData:{vendorFirstReviewView:e,analytics:m,authParams:d,attachmentEndpoint:r,globalMerchantAutoCompleteView:s.globalMerchantAutoCompleteView,searchAutoComplete:{autoCompleteData:s,loadOptions:ce},setCurrentVendorInAction:H,onClickVendorName:S,onClickVendorRename:qe,onClickCancel:Ge,onClickSave:He,onClearGlobalMerchantAutoCompleteResults:Ce},children:Fr})]})})})})}),te===!0?n.jsx(Jr,{children:n.jsx(wt,{size:"Small",start:!0})}):null]})})]})})},Fr=({index:e,style:s,data:m})=>{const{analytics:d,authParams:r,attachmentEndpoint:V,vendorFirstReviewView:S,searchAutoComplete:R,setCurrentVendorInAction:g,onClickVendorName:k,onClickVendorRename:D,onClickCancel:le,onClickSave:ee,onClearGlobalMerchantAutoCompleteResults:b}=m,{vendorReviewView:G,fetchState:ne}=S,L=G[e];return e<G.length&&L.selectedVendor!=null?n.jsx(Yr,{style:{...s,width:"100%"},className:"vendor-list-item",children:n.jsx(Qr,{children:n.jsx(Br,{fetchState:ne,analytics:d,authParams:r,attachmentEndpoint:V,sectionId:`${Te}.${e}`,vendorId:L.currentVendor?.id,rowData:L,setCurrentVendorInAction:g,searchAutoComplete:R,onVendorNameClick:k,onClickCancel:le,onClickSave:ee,onClickRenameOption:D,onClearGlobalMerchantAutoCompleteResults:b},e)},`sub-container-${e}`)}):null},Mn=(e,s)=>{const m=e.map(d=>{const r=d.currentSelection==="customMerchant"&&d.selectedVendor?.id!=null&&d.selectedVendor.name!=null?{id:d.selectedVendor.id,name:d.selectedVendor.name}:void 0,V=d.recommendations;return{selectedVendor:{defaultOptions:hn(s.globalMerchants,d.status.code==="merge_in_qbo",V,d.currentVendor,r),selectedOption:d.selectedVendor.id??d.vendorRenamedText},recommendedFirst:d.recommendations[0],recommendedSecond:d.recommendations[1],currentSelection:{retain:d.currentSelection==="retain",recommendedFirst:d.currentSelection==="recommendedFirst",recommendedSecond:d.currentSelection==="recommendedSecond",rename:d.currentSelection==="rename",customMerchant:d.currentSelection==="customMerchant"},retainVendorId:d.currentVendor?.id,status:d.status,lastUpdatedVendorNameByUser:d.lastUpdatedVendorNameByUser}});return{[Te]:m}},Er=o.div`
658
+ `,Br=e=>n.jsx(Rr,{...e}),gn={listContainerMarginTop:new w(c[3],c[3]),itemHeight:new w(So,$o),vendorListWrapperContainerMarginTop:new w(c[4],0)},{common:re,vendorReview:{firstReview:I}}=je.getLocalizedStrings(),hi=({vendorFirstReviewView:e,globalMerchantAutoCompleteData:s,analytics:m,authParams:d,attachmentEndpoint:r,onBackClick:V,onVendorNameClick:S,onGlobalMerchantAutoCompleteInputChange:R,onUpdateLocalData:g,onFetchVendorReviewView:k,onUpdateScrollYOffset:D,onUpdatePageToken:le,onUpdateSortUiState:ee,onClickSave:b,updateVendorDetailLocalData:G,onReloadList:ne,onClickCancelPopup:L,onClickRedirectToQBO:Ue,onClearGlobalMerchantAutoCompleteResults:Ce,onResetVendorLocalData:Ve,onClickMenuIcon:ue})=>{const _=ae(),W=Nn(),Le=mn(),[te,C]=f.useState(!1),[ke,H]=f.useState(null),{uiState:P,fetchState:N,vendorReviewView:E,recentlySavedErroredVendorView:x}=e,[de,he]=f.useState(P.searchText),Q=f.useRef(null),u=f.useRef(),y=nt({mode:"all",reValidateMode:"onChange",defaultValues:Mn(E,s.globalMerchantAutoCompleteView),values:Mn(E,s.globalMerchantAutoCompleteView),resetOptions:{keepDirtyValues:!0}});f.useEffect(()=>{if(s.globalMerchantAutoCompleteView.fetchState==="Completed"){const i=e.vendorReviewView.find(v=>v.vendorId===ke);let h;i!=null&&(h=i?.recommendations),u.current?.(hn(s.globalMerchantAutoCompleteView.globalMerchants,i?.status.code==="merge_in_qbo",h??[])),H(null)}},[s.globalMerchantAutoCompleteView.fetchState]),f.useEffect(()=>{Q.current?.resetAfterIndex(0)},[_,Q]),f.useEffect(()=>{N==="Completed"&&C(!1)},[N]),f.useEffect(()=>{const i=y.watch((h,{name:v,type:l})=>{v!=null&&h[Te]!=null&&tt(()=>Ze(v,h,l))});return()=>{i.unsubscribe()}}),f.useEffect(()=>{N==="Completed"&&m.trackVendorReviewPage("tenant_review",P.totalCount)},[N]);const q=i=>gn.itemHeight.value(_),ge=(i,h,v)=>{k(v??null,i,h)},K=i=>{le(null),ge(i,!1,null)},ce=(i,h)=>{u.current=h,R(i,"vendor")},_e=f.useRef(On(i=>K(i),500,{trailing:!0})).current,we=(i,h)=>{ee(h,i),le(null),ge(P.searchText,!1,null)},Ze=(i,h,v)=>{if(i.includes(Te)){const l=parseInt(i.split(".")[1]),p=Object.assign(h[Te][l]);let j=p[ie];if(p[ve]!=null){let J;if(i.includes(`${ie}.${fe}`)&&(p[fe]?.globalMerchantId!=null||p[fe]?.globalMerchantName!=null)?(j={retain:!1,recommendedFirst:p[ie].recommendedFirst,recommendedSecond:!1,rename:!1,customMerchant:!1},J=p[fe].globalMerchantId??p[fe].globalMerchantName):i.includes(`${ie}.${be}`)&&(p[be]?.globalMerchantId!=null||p[be]?.globalMerchantName!=null)?(j={retain:!1,recommendedFirst:!1,recommendedSecond:p[ie].recommendedSecond,rename:!1,customMerchant:!1},J=p[be].globalMerchantId??p[be].globalMerchantName):i.includes(`${ie}.retain`)&&p[ve]!=null&&(j={retain:p[ie].retain,recommendedFirst:!1,recommendedSecond:!1,rename:!1,customMerchant:!1},J=p[ve]),i.includes(me)&&(J=p[me].selectedOption,p[me].selectedOption===p[fe]?.globalMerchantId||p[me].selectedOption===p[fe]?.globalMerchantName?j={retain:!1,recommendedFirst:!0,recommendedSecond:!1,rename:!1,customMerchant:!0}:p[me].selectedOption===p[be]?.globalMerchantId||p[me].selectedOption===p[be]?.globalMerchantName?j={retain:!1,recommendedFirst:!1,recommendedSecond:!0,rename:!1,customMerchant:!0}:p[me].selectedOption===p[ve]?j={retain:!0,recommendedFirst:!1,recommendedSecond:!1,rename:!1,customMerchant:!0}:j={retain:!1,recommendedFirst:!1,recommendedSecond:!1,rename:!1,customMerchant:!0}),v==null){Ve(p[ve]);return}g(p[ve],j,J??p[ve])}}},en=()=>{C(!0),ge(P.searchText,!0,P.pageToken)},nn=i=>i<E.length,We=()=>{P.pageToken!=null&&N==="Completed"&&en()},qe=(i,h)=>{const v=e.vendorReviewView.find(l=>l.vendorId===i);v!=null&&g(v.vendorId,{retain:!1,recommendedFirst:!1,recommendedSecond:!1,rename:!0,customMerchant:!1},v.vendorId,h)},Ge=i=>{const h=parseInt(i.split(".")[1]),v=e.vendorReviewView[h];if(v?.currentVendor!=null){const l=v.recommendations[0]?.globalMerchantName??null;m.trackVendorReviewUpdateVendorCanceled({reviewSource:"tenant_review",vendorName:v.currentVendor.name,vendorReviewStatus:v.status.code??null,wasRecommendationAvailable:!!l,recommendedVendorName:l,recommendedVendorReason:v.recommendations[0]?.reason??null})}y.resetField(`${Te}.${h}`)},tn=y.handleSubmit(i=>{}),He=(i,h,v)=>{const l=e.vendorReviewView.find(p=>p.vendorId===i);if(l?.currentVendor!=null){const p=[];l.recommendations.forEach(j=>{j.globalMerchantId!=null&&p.push(j.globalMerchantId)}),(l?.currentSelection==="retain"||l?.currentSelection==="rename")&&l?.isWebsiteUrlSaved===!1&&G({id:i,name:l.currentVendor.name,qboId:l.vendorQboId??i,websiteUrl:Pn.toZeniUrlWithoutBaseURL(l.currentVendor.websiteUrl.toString())})}if(l?.currentSelection!=="retain"&&l?.currentSelection!=="rename"||l?.isWebsiteUrlSaved===!0){if(l?.currentVendor!=null){const p=l.selectedVendor.name,j=l.recommendations[0]?.globalMerchantName??null,J=l.currentSelection,on=l.recommendations[0]?.globalMerchantId===l.selectedVendor.id||l.recommendations[0]?.globalMerchantName===p?l.recommendations[0]:void 0;m.trackVendorReviewSaveVendorRequested({reviewSource:"tenant_review",vendorName:l.currentVendor.name,vendorReviewStatus:l.status.code??null,saveRequestedVendorSource:J,saveRequestedVendorName:p,saveRequestedVendorReason:on?.reason??null,isGlobalVendorRequested:l.currentSelection==="customMerchant",isVendorNameRecommendationSelected:j===p,isVendorNameChangedAndSelected:l.currentSelection==="rename",isVendorNameRetainSelected:J==="retain",recommendedVendorName:j,wasRecommendationAvailable:!!j,recommendedVendorReason:l.recommendations[0]?.reason??null,isVendorNameMarkedAsEmployee:h??!1,isVendorNameMarkedAsLocalContractor:v??!1})}b(i,h,v)}},xe={onOkClick:()=>{if(W.connectionName==="netsuite")L();else if(x!=null){const i=e.vendorReviewView.find(h=>h.vendorId===x.vendorId);if(i?.currentVendor!=null){const h=i.selectedVendor.name,v=i.recommendations[0]?.globalMerchantId===i.selectedVendor.id||i.recommendations[0]?.globalMerchantName===h?i.recommendations[0]:void 0,l=i.currentSelection??(x.newRecommendedVendor!=null?"recommendedFirst":null),p=i.recommendations[0]?.globalMerchantName??null;if(x.oldRecommendedVendor!=null||x.newRecommendedVendor!=null){const j={vendorName:i.currentVendor.name,saveRequestedVendorName:h,saveRequestedVendorReason:v?.reason??null,isVendorNameRecommendationSelected:l==="recommendedFirst"||l==="recommendedSecond",isVendorNameRetainSelected:l==="retain",isVendorNameChangedAndSelected:l==="rename",wasRecommendationAvailable:!!p,recommendedVendorName:p,recommendedVendorReason:i.recommendations[0]?.reason??null};x.newRecommendedVendor!=null?(m.trackVendorReviewRecommendationUpdateContinuedOrCanceled({...j,reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantRecommendationUpdateContinue,saveRequestedVendorSource:l,vendorReviewStatus:i.status.code??null,updatedRecommendedVendorName:x.newRecommendedVendor.globalMerchantName,updatedRecommendedVendorReason:x.newRecommendedVendor.reason??null}),b(x.vendorId)):m.trackVendorReviewRecommendationUpdateContinuedOrCanceled({...j,reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantRecommendationUpdateCancel,saveRequestedVendorSource:l,vendorReviewStatus:i.status.code??null,updatedRecommendedVendorName:null,updatedRecommendedVendorReason:null}),L()}else m.trackVendorReviewMergeInQBORedirectedOrCanceled({reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantMergeInQBORedirect,vendorName:i.currentVendor.name,vendorReviewStatus:i.status.code??null,saveRequestedVendorSource:l,saveRequestedVendorName:h,saveRequestedVendorReason:v?.reason??null,isVendorNameRecommendationSelected:l==="recommendedFirst"||l==="recommendedSecond",isVendorNameRetainSelected:l==="retain",isVendorNameChangedAndSelected:l==="rename",wasRecommendationAvailable:!!p,recommendedVendorName:p,recommendedVendorReason:i.recommendations[0]?.reason??null}),Ue(),L()}}},onCancelClick:()=>{if(x!=null){const i=e.vendorReviewView.find(h=>h.vendorId===x.vendorId);if(i?.currentVendor!=null){const h=i.selectedVendor.name,v=i.recommendations[0]?.globalMerchantId===i.selectedVendor.id||i.recommendations[0]?.globalMerchantName===h?i.recommendations[0]:void 0,l=i.currentSelection,p=i.recommendations[0]?.globalMerchantName??null;if(x.oldRecommendedVendor!=null||x.newRecommendedVendor!=null){const j={vendorName:i.currentVendor.name,saveRequestedVendorName:h,saveRequestedVendorReason:v?.reason??null,isVendorNameRecommendationSelected:l==="recommendedFirst"||l==="recommendedSecond",isVendorNameRetainSelected:l==="retain",isVendorNameChangedAndSelected:l==="rename",wasRecommendationAvailable:!!p,recommendedVendorName:p,recommendedVendorReason:i.recommendations[0]?.reason??null};x.newRecommendedVendor!=null?m.trackVendorReviewRecommendationUpdateContinuedOrCanceled({...j,reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantRecommendationUpdateCancel,saveRequestedVendorSource:l,vendorReviewStatus:i.status.code??null,updatedRecommendedVendorName:x.newRecommendedVendor.globalMerchantName,updatedRecommendedVendorReason:x.newRecommendedVendor.reason??null}):m.trackVendorReviewRecommendationUpdateContinuedOrCanceled({...j,reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantRecommendationUpdateCancel,saveRequestedVendorSource:l,vendorReviewStatus:i.status.code??null,updatedRecommendedVendorName:null,updatedRecommendedVendorReason:null})}else m.trackVendorReviewMergeInQBORedirectedOrCanceled({reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantMergeInQBOCancel,vendorName:i.currentVendor.name,vendorReviewStatus:i.status.code??null,saveRequestedVendorSource:l,saveRequestedVendorName:h,saveRequestedVendorReason:v?.reason??null,isVendorNameRecommendationSelected:l==="recommendedFirst"||l==="recommendedSecond",isVendorNameRetainSelected:l==="retain",isVendorNameChangedAndSelected:l==="rename",wasRecommendationAvailable:!!p,recommendedVendorName:p,recommendedVendorReason:i.recommendations[0]?.reason??null})}L()}}},O=(()=>{if(x!=null)if(x.newRecommendedVendor!=null&&x.oldRecommendedVendor!=null){const i=I.popupMessages.zeniUpdatedRecommendationPopupTitle.replace("_vendor_name_",x.vendorName).replace("_old_recommendation_",x.oldRecommendedVendor.globalMerchantName).replace("_new_recommendation_",x.newRecommendedVendor.globalMerchantName);return{description:I.popupMessages.zeniUpdatedRecommendationPopupMsg,title:i,secondaryButtonText:re.cancel,primaryButtonText:re.continue}}else if(x.newRecommendedVendor!=null){const i=I.popupMessages.zeniNewRecommendationPopupTitle.replace("_vendor_name_",x.vendorName).replace("_new_recommendation_",x.newRecommendedVendor.globalMerchantName);return{description:I.popupMessages.zeniNewRecommendationPopupMsg,title:i,secondaryButtonText:re.cancel,primaryButtonText:re.continue}}else if(x.oldRecommendedVendor!=null){const i=I.popupMessages.zeniNewRecommendationNotAvailablePopupTitle.replace("_vendor_name_",x.vendorName);return{description:I.popupMessages.zeniNewRecommendationNotAvailablePopupMsg,title:i,primaryButtonText:re.gotIt}}else return W.connectionName==="netsuite"?{descriptionHeader:I.popupMessages.netsuiteLinkPopupMsgHeader,title:I.popupMessages.netsuiteLinkPopupTitle.replace("_vendor_name_",x.vendorName),subTitle:I.popupMessages.netsuiteLinkPopupSubTitle,description:I.popupMessages.netsuiteLinkPopupDescription,primaryButtonText:re.texts.close}:{descriptionHeader:I.popupMessages.qboLinkPopupMsgHeader,title:I.popupMessages.qboLinkPopupTitle.replace("_vendor_name_",x.vendorName),subTitle:I.popupMessages.qboLinkPopupSubTitle,secondaryButtonText:re.cancel,primaryButtonText:I.popupMessages.redirectToQBO}})(),Me=n.jsx(ot,{isSearchOpen:P.searchText.length>0,searchPlaceHolder:I.searchPlaceholder,searchText:de,onSearchTextChanged:i=>{he(i),i.trim().length>=2?_e(i):i.trim().length==0&&_e("")}});return n.jsx(Er,{windowSize:_,children:n.jsxs(rt,{...y,children:[n.jsx(it,{title:I.title,backgroundColor:Le.colors.grey4,onBackClick:V,rightSideComponent:Me,showMenuIcon:_==="medium-compact"||_==="small",onClickMenuIcon:ue,source:"VendorFirstReviewPage"}),n.jsx("form",{onSubmit:tn,children:n.jsxs(Ur,{windowSize:_,children:[n.jsx(st,{controller:!!x?.vendorId&&!!O,children:n.jsx(at,{titleComponent:n.jsx(dt,{children:n.jsxs(ei,{children:[n.jsx(ct,{children:O?.title}),O?.subTitle!=null?n.jsx(ni,{children:O.subTitle}):null]})}),descriptionComponent:n.jsxs(lt,{style:{textAlign:O?.description==null?"left":"unset"},children:[O?.descriptionHeader!=null?n.jsx(ti,{children:O.descriptionHeader}):null,O?.description!=null?n.jsx(oi,{children:O.description}):W.connectionName==="netsuite"?n.jsx(oo,{}):n.jsx(Qt,{})]}),primaryButtonText:O?.primaryButtonText??re.continue,secondaryButtonText:O?.secondaryButtonText,containerStyle:{maxWidth:"624px"},action:xe,primaryButtonWidth:148,secondaryButtonWidth:148})}),n.jsx(Wr,{windowSize:_,children:N==="Error"?n.jsxs(Gr,{children:[n.jsx(Hr,{onClick:ne,"data-testid":X("vendor-first-review-page-reload-icon"),children:n.jsx(mt,{})}),n.jsx(Kr,{children:re.reloadPage.label})]}):N==="Completed"&&E.length===0?n.jsx(pt,{message:P.searchText?I.noMatchedDataText:I.noDataText}):N==="Not-Started"||N==="In-Progress"&&E.length===0?n.jsx(Do,{sortConfig:{sortKey:P.sortKey,sortOrder:P.sortOrder},onColumnSortConfigChanged:we,disableClick:!0}):n.jsx(qr,{windowSize:_,children:n.jsx(ut,{children:({height:i,width:h})=>n.jsx(ht,{isItemLoaded:nn,itemCount:E.length+1,loadMoreItems:We,children:({onItemsRendered:v})=>n.jsxs(Zr,{style:{height:i,width:h},children:[n.jsx(Yr,{style:{width:"auto"},children:n.jsx(qn,{sortConfig:{sortKey:P.sortKey,sortOrder:P.sortOrder},disableClick:N!=="Completed",onColumnSortConfigChanged:we})}),n.jsx(gt,{height:i-Fn,itemSize:q,width:h,ref:Q,overscanCount:1,itemCount:E.length,onItemsRendered:v,onScroll:({scrollOffset:l})=>{D(l)},initialScrollOffset:P.scrollYOffset,itemData:{vendorFirstReviewView:e,analytics:m,authParams:d,attachmentEndpoint:r,globalMerchantAutoCompleteView:s.globalMerchantAutoCompleteView,searchAutoComplete:{autoCompleteData:s,loadOptions:ce},setCurrentVendorInAction:H,onClickVendorName:S,onClickVendorRename:qe,onClickCancel:Ge,onClickSave:He,onClearGlobalMerchantAutoCompleteResults:Ce},children:Fr})]})})})})}),te===!0?n.jsx(Xr,{children:n.jsx(wt,{size:"Small",start:!0})}):null]})})]})})},Fr=({index:e,style:s,data:m})=>{const{analytics:d,authParams:r,attachmentEndpoint:V,vendorFirstReviewView:S,searchAutoComplete:R,setCurrentVendorInAction:g,onClickVendorName:k,onClickVendorRename:D,onClickCancel:le,onClickSave:ee,onClearGlobalMerchantAutoCompleteResults:b}=m,{vendorReviewView:G,fetchState:ne}=S,L=G[e];return e<G.length&&L.selectedVendor!=null?n.jsx(Jr,{style:{...s,width:"100%"},className:"vendor-list-item",children:n.jsx(Qr,{children:n.jsx(Br,{fetchState:ne,analytics:d,authParams:r,attachmentEndpoint:V,sectionId:`${Te}.${e}`,vendorId:L.currentVendor?.id,rowData:L,setCurrentVendorInAction:g,searchAutoComplete:R,onVendorNameClick:k,onClickCancel:le,onClickSave:ee,onClickRenameOption:D,onClearGlobalMerchantAutoCompleteResults:b},e)},`sub-container-${e}`)}):null},Mn=(e,s)=>{const m=e.map(d=>{const r=d.currentSelection==="customMerchant"&&d.selectedVendor?.id!=null&&d.selectedVendor.name!=null?{id:d.selectedVendor.id,name:d.selectedVendor.name}:void 0,V=d.recommendations;return{selectedVendor:{defaultOptions:hn(s.globalMerchants,d.status.code==="merge_in_qbo",V,d.currentVendor,r),selectedOption:d.selectedVendor.id??d.vendorRenamedText},recommendedFirst:d.recommendations[0],recommendedSecond:d.recommendations[1],currentSelection:{retain:d.currentSelection==="retain",recommendedFirst:d.currentSelection==="recommendedFirst",recommendedSecond:d.currentSelection==="recommendedSecond",rename:d.currentSelection==="rename",customMerchant:d.currentSelection==="customMerchant"},retainVendorId:d.currentVendor?.id,status:d.status,lastUpdatedVendorNameByUser:d.lastUpdatedVendorNameByUser}});return{[Te]:m}},Er=o.div`
659
659
  display: flex;
660
660
  min-height: 100%;
661
661
  flex-direction: column;
@@ -702,12 +702,12 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
702
702
  `,Kr=o(xt)`
703
703
  margin-top: ${t.sp3};
704
704
  color: ${e=>e.theme.colors.hero};
705
- `,Yr=o.div`
705
+ `,Jr=o.div`
706
706
  top: ${t.sp0};
707
707
  left: ${t.sp0};
708
708
  padding-bottom: ${t.sp3};
709
709
  box-sizing: border-box;
710
- `,Jr=o.div`
710
+ `,Xr=o.div`
711
711
  display: flex;
712
712
  width: 100%;
713
713
  height: ${t.sp3};
@@ -716,7 +716,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
716
716
  align-items: center;
717
717
  margin-top: ${t.sp3};
718
718
  margin-bottom: ${t.sp3};
719
- `,Xr=o.div``,Zr=o.div`
719
+ `,Yr=o.div``,Zr=o.div`
720
720
  position: relative;
721
721
  `,ei=o.div`
722
722
  display: flex;
@@ -1,4 +1,4 @@
1
- import{j as t,X as G,a as he,M as U,c3 as ye,H as ge,l as K,bO as be,bQ as fe,bR as xe,F as ve,a4 as we,C as p,cw as le,cx as Ce,o as y,ao as $e,cg as oe,u as ne,cy as je,cz as X,cm as Q,ah as q,c6 as De,cA as Te,q as a,co as Se,_ as ke,g as V,c as Fe,Q as Oe,bs as Ae,v as Le,b4 as ze}from"./index-BS9BhstZ.js";import{b as I,n as g}from"./vendor-CnQcJ2Lu.js";import{W as We,A as Re}from"./BankAccountWarningSection-PFOmZUmz-jyv_7HW8.js";import{T as Ie}from"./MailingDetailsSection-Bo_v3Gp2-BGvmU6P-.js";import{S as Pe}from"./CurrencySelectField-Cz1ZFZNL-rp7RZiQz.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-DZCn1w6m-DYHHw-KS.js";const O={width:new p(343,580,726),height:new p(a[6],a[6]),controlHeight:new p(a[6],a[6]),paddingTopBottom:new p(a[2],a[2]),marginRight:new p(a[2],a[2]),labelMarginLeft:new p(a[3],a[4]),labelMarginRight:new p(a[3],a[4]),labelMarginTop:new p(a[2],a[2])},ae={infoLabel:new Oe("extraSmallRegular","smallRegular")};function _e({isDisabled:e,label:i,currencySelectField:l,style:f,errorInfoLabel:u,isAdditionalInfoLabelLoading:n=!1,showAdditionalLabelTooltip:o=!1,additionalLabelTooltip:w,additionalInfoLabel:D,showAdditionalInfoLabel:k=!0}){const C=G(),{formState:{errors:b}}=oe(),$=ne(),j=Se(b,l.name),m=()=>{if(n===!0)return t.jsx(qe,{children:t.jsx(Fe,{size:"Small",start:!0})});if(k&&D||j){let c=null;return o===!0&&k&&w&&(c=t.jsx(Ae,{placement:C==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Ve,{children:w}),children:t.jsx(Ne,{children:t.jsx(Ue,{})})})),t.jsxs(He,{size:C,isError:j,hasToolTip:o,isDisabled:e!=null,children:[c,D]})}};return t.jsxs(Ee,{size:C,style:f,isDisabled:e!=null,isError:j,"data-testid":ke("labeled-currency-field",l.name),children:[t.jsx(Q,{isDisabled:e,label:i.label,htmlFor:l.name,style:{marginLeft:O.labelMarginLeft.value(C),marginRight:O.labelMarginRight.value(C),marginTop:O.labelMarginTop.value(C),width:i.width??"auto",color:e==="disabled"?$.colors.grey2:$.colors.hero}}),t.jsxs(Be,{labelWidth:i.width,children:[t.jsx(Pe,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,height:O.controlHeight.value(C)}}),j?t.jsx(Me,{windowSize:C,hasError:j,children:u}):null,m()]})]})}const Ee=g.div`
1
+ import{j as t,e as X,a as he,M as N,c7 as ye,I as ge,l as Y,bS as be,bU as fe,bV as xe,F as ve,a4 as we,C as p,cA as le,cB as Ce,o as y,ao as $e,ck as oe,u as ne,cC as je,cD as J,cq as G,ah as q,ca as De,cE as Te,q as a,cs as Se,$ as ke,g as V,m as Fe,X as Oe,bx as Ae,d as Le,b5 as We}from"./index-CnrHU8WN.js";import{b as R,n as g}from"./vendor-CnQcJ2Lu.js";import{W as ze,A as Ie}from"./BankAccountWarningSection-927iR_QB-BLBTF_Hr.js";import{T as Re}from"./MailingDetailsSection-CTrx1xoB-By7vG4Hi.js";import{S as Pe}from"./CurrencySelectField-cnP09xH2-COp3JBgC.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-Dl5yKg2N-CzXWQu_Y.js";const O={width:new p(343,580,726),height:new p(a[6],a[6]),controlHeight:new p(a[6],a[6]),paddingTopBottom:new p(a[2],a[2]),marginRight:new p(a[2],a[2]),labelMarginLeft:new p(a[3],a[4]),labelMarginRight:new p(a[3],a[4]),labelMarginTop:new p(a[2],a[2])},ae={infoLabel:new Oe("extraSmallRegular","smallRegular")};function Ee({isDisabled:e,label:i,currencySelectField:l,style:f,errorInfoLabel:u,isAdditionalInfoLabelLoading:n=!1,showAdditionalLabelTooltip:o=!1,additionalLabelTooltip:w,additionalInfoLabel:D,showAdditionalInfoLabel:k=!0}){const C=X(),{formState:{errors:b}}=oe(),$=ne(),j=Se(b,l.name),m=()=>{if(n===!0)return t.jsx(qe,{children:t.jsx(Fe,{size:"Small",start:!0})});if(k&&D||j){let c=null;return o===!0&&k&&w&&(c=t.jsx(Ae,{placement:C==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Ve,{children:w}),children:t.jsx(Ue,{children:t.jsx(Ne,{})})})),t.jsxs(He,{size:C,isError:j,hasToolTip:o,isDisabled:e!=null,children:[c,D]})}};return t.jsxs(_e,{size:C,style:f,isDisabled:e!=null,isError:j,"data-testid":ke("labeled-currency-field",l.name),children:[t.jsx(G,{isDisabled:e,label:i.label,htmlFor:l.name,style:{marginLeft:O.labelMarginLeft.value(C),marginRight:O.labelMarginRight.value(C),marginTop:O.labelMarginTop.value(C),width:i.width??"auto",color:e==="disabled"?$.colors.grey2:$.colors.hero}}),t.jsxs(Be,{labelWidth:i.width,children:[t.jsx(Pe,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,height:O.controlHeight.value(C)}}),j?t.jsx(Me,{windowSize:C,hasError:j,children:u}):null,m()]})]})}const _e=g.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: flex-start;
@@ -77,32 +77,32 @@ import{j as t,X as G,a as he,M as U,c3 as ye,H as ge,l as K,bO as be,bQ as fe,bR
77
77
  padding-right: ${y.sp3};
78
78
  text-align: right;
79
79
  margin-top: ${e=>e.hasToolTip===!0?y.sp1:y.sp0};
80
- `,Ne=g.div`
80
+ `,Ue=g.div`
81
81
  display: flex;
82
82
  margin-right: ${y.sp2};
83
83
  margin-top: 2px;
84
84
  align-items: center;
85
- `,Ue=g(ze)`
85
+ `,Ne=g(We)`
86
86
  width: ${y.sp3};
87
87
  height: ${y.sp3};
88
88
  color: inherit;
89
- `,S={largeLabelWidth:new p(120,140,220),paddingTopBottom:new p(a[3],a[3]),labelHeight:new p(a[6],a[6]),labelMarginLeft:new p(a[3],a[4]),labelMarginRight:new p(a[3],a[4]),labelMarginTop:new p(a[2],a[2]),controlHeight:new p(a[6],a[6]),toolTipWidth:new p(60,150)},Qe=({dynamicFormFetchState:e,dynamicFormConfig:i,supportedAccountTypes:l,supportedCountries:f,supportedCurrencies:u,wireAccountToCreate:n,sectionId:o,isCountryDropdownReadonly:w,isCurrencyDropdownReadonly:D,isDisabled:k,style:C})=>{const b=G(),{getValues:$}=oe(),j=ne(),m=U.getLocalizedStrings().spendManagement.billPay.vendorCreation.wireDetails,{international:c}=m,x=S.largeLabelWidth.value(b),z=n?.accountType?.type,T=n?.countryCode==null,E=n?.currencyCode==null,F=["phone","email","other"];return t.jsx(Ge,{style:C,children:t.jsxs(Ke,{children:[t.jsx(je,{isDisabled:w===!0?"readonly":void 0,label:{label:c.country,width:x},style:{width:"auto"},countrySelectField:{name:L(o,"vendorCountry"),placeholder:c.countryPlaceholder,defaultValue:le(n?.countryCode,f.map(s=>s.countryCode)),registerOptions:{validate:s=>!!(s!=null&&s.selectedOption)}},additionalInfoLabel:m.international.countryAdditionalInfo}),t.jsx(R,{}),t.jsx(_e,{isDisabled:T===!0?"disabled":D===!0?"readonly":void 0,label:{label:c.currency,width:x},style:{width:"auto"},currencySelectField:{name:L(o,"vendorCurrency"),placeholder:c.currencyPlaceholder,defaultValue:{allOptions:u.map(s=>({label:`${s.currencySymbol} - ${s.currencyName}`,value:s.currencyCode,countryCode:s.countryCode,currency:s.currencyName})),selectedOption:n?.currencyCode},registerOptions:{validate:s=>!!(s!=null&&s.selectedOption)}},additionalInfoLabel:m.international.currencyAdditionalInfo}),t.jsx(R,{}),E!==!0&&e==="Completed"?t.jsxs(t.Fragment,{children:[t.jsx(X,{isDisabled:void 0,label:{label:c.typeOfAccount,width:x},style:{width:"auto"},singleSelectPickerField:{name:L(o,"typeOfAccount"),placeholder:c.typeOfAccountPlaceholder,defaultValue:{selectedOption:n?.accountType?.type,allOptions:l.map(s=>({label:s.title,value:s.type}))},registerOptions:{validate:s=>!!(s!=null&&s.selectedOption)}}}),t.jsx(R,{})]}):null,n!=null&&z!=null&&n.dynamicForm[z]!=null&&i.length>0?Object.keys(n.dynamicForm[z]).map(s=>{const r=i.filter(_=>_.name===s)[0],h=n.accountType?.type;if(h!=null&&r!=null){const _=n.dynamicForm[h][s];switch(r.fieldType){case"text":return t.jsxs(t.Fragment,{children:[t.jsx(De,{label:{label:r.label+c.colon,width:x},text:{type:"text",name:W(o,"dynamicForm",h,r.name),placeholder:r.placeholder,defaultValue:_,options:{required:r.required,pattern:r.validationRegex!=null?new RegExp(r.validationRegex):void 0,maxLength:r.maxLength,minLength:r.minLength}},isDisabled:k,style:{width:"auto"},showAdditionalInfoLabel:!1},W(o,"dynamicForm",h,r.name)),t.jsx(R,{})]});case"select":return t.jsxs(t.Fragment,{children:[t.jsx(X,{isDisabled:void 0,label:{label:r.label+c.colon,width:x},style:{width:"auto"},singleSelectPickerField:{name:W(o,"dynamicForm",h,r.name),placeholder:r.placeholder,defaultValue:{selectedOption:_,allOptions:r.valuesAllowed??[]}}},W(o,"dynamicForm",h,r.name)),t.jsx(R,{})]});case"radio":return t.jsxs(t.Fragment,{children:[t.jsxs(Y,{size:b,children:[t.jsx(Q,{label:r.label+c.colon,htmlFor:W(o,"dynamicForm",h,r.name),style:{marginLeft:S.labelMarginLeft.value(b),marginRight:S.labelMarginRight.value(b),width:x}}),t.jsx(Z,{labelWidth:x,size:b,children:r.valuesAllowed?.map(M=>t.jsx(q,{label:{label:M.label},style:{paddingRight:`${y.sp4}`,width:"auto"},radioField:{name:W(o,"dynamicForm",h,r.name),id:r.name,value:M.value,registerOptions:{required:!0}}},M.value))})]},W(o,"dynamicForm",h,r.name)),t.jsx(R,{})]});default:return null}}else return null}):null,t.jsxs(Xe,{size:b,children:[t.jsxs(Y,{size:b,children:[t.jsx(Q,{label:c.addSource,htmlFor:L(o,"source"),style:{marginLeft:S.labelMarginLeft.value(b),marginRight:S.labelMarginRight.value(b),width:x},showTooltip:!0,tooltipTitle:c.sourceTooltip,toolTipWidth:S.toolTipWidth.valuePx(b)}),t.jsxs(Z,{labelWidth:x,size:b,children:[t.jsx(q,{label:{label:c.phone},style:{paddingRight:`${y.sp4}`,width:"auto"},isContainerClickable:!0,radioField:{name:L(o,"source"),id:F[0],value:F[0],registerOptions:{required:!0},radioSize:"small"}}),t.jsx(q,{label:{label:c.email},style:{paddingRight:`${y.sp4}`,width:"auto"},isContainerClickable:!0,radioField:{name:L(o,"source"),id:F[1],value:F[1],registerOptions:{required:!0},radioSize:"small"}}),t.jsx(q,{label:{label:c.other},style:{width:"auto"},isContainerClickable:!0,radioField:{name:L(o,"source"),id:F[2],value:F[2],registerOptions:{required:!0},radioSize:"small"}})]})]}),$(`${o}.source`)==="other"?t.jsx(Te,{type:"text",name:L(o,"otherSource"),placeholder:c.sourcePlaceholder,style:{display:"flex",flexGrow:1,cursor:"inherit",height:y.sp7,width:"calc(100% - largeLabelWidth)",background:j.colors.background,border:`1px solid ${j.colors.background}`,marginLeft:x},registerOptions:{required:!0,validate:s=>$(`${o}.source`)==="other"&&!!s}}):null]}),t.jsx(R,{})]})})},L=(e,i)=>`${e}.${i}`,W=(e,i,l,f)=>`${e}.${i}.${l}.${f}`,Ge=g.div`
89
+ `,S={largeLabelWidth:new p(120,140,220),paddingTopBottom:new p(a[3],a[3]),labelHeight:new p(a[6],a[6]),labelMarginLeft:new p(a[3],a[4]),labelMarginRight:new p(a[3],a[4]),labelMarginTop:new p(a[2],a[2]),controlHeight:new p(a[6],a[6]),toolTipWidth:new p(60,150)},Ge=({dynamicFormFetchState:e,dynamicFormConfig:i,supportedAccountTypes:l,supportedCountries:f,supportedCurrencies:u,wireAccountToCreate:n,sectionId:o,isCountryDropdownReadonly:w,isCurrencyDropdownReadonly:D,isDisabled:k,style:C})=>{const b=X(),{getValues:$}=oe(),j=ne(),m=N.getLocalizedStrings().spendManagement.billPay.vendorCreation.wireDetails,{international:c}=m,x=S.largeLabelWidth.value(b),W=n?.accountType?.type,T=n?.countryCode==null,_=n?.currencyCode==null,F=["phone","email","other"];return t.jsx(Xe,{style:C,children:t.jsxs(Ye,{children:[t.jsx(je,{isDisabled:w===!0?"readonly":void 0,label:{label:c.country,width:x},style:{width:"auto"},countrySelectField:{name:L(o,"vendorCountry"),placeholder:c.countryPlaceholder,defaultValue:le(n?.countryCode,f.map(s=>s.countryCode)),registerOptions:{validate:s=>!!(s!=null&&s.selectedOption)}},additionalInfoLabel:m.international.countryAdditionalInfo}),t.jsx(I,{}),t.jsx(Ee,{isDisabled:T===!0?"disabled":D===!0?"readonly":void 0,label:{label:c.currency,width:x},style:{width:"auto"},currencySelectField:{name:L(o,"vendorCurrency"),placeholder:c.currencyPlaceholder,defaultValue:{allOptions:u.map(s=>({label:`${s.currencySymbol} - ${s.currencyName}`,value:s.currencyCode,countryCode:s.countryCode,currency:s.currencyName})),selectedOption:n?.currencyCode},registerOptions:{validate:s=>!!(s!=null&&s.selectedOption)}},additionalInfoLabel:m.international.currencyAdditionalInfo}),t.jsx(I,{}),_!==!0&&e==="Completed"?t.jsxs(t.Fragment,{children:[t.jsx(J,{isDisabled:void 0,label:{label:c.typeOfAccount,width:x},style:{width:"auto"},singleSelectPickerField:{name:L(o,"typeOfAccount"),placeholder:c.typeOfAccountPlaceholder,defaultValue:{selectedOption:n?.accountType?.type,allOptions:l.map(s=>({label:s.title,value:s.type}))},registerOptions:{validate:s=>!!(s!=null&&s.selectedOption)}}}),t.jsx(I,{})]}):null,n!=null&&W!=null&&n.dynamicForm[W]!=null&&i.length>0?Object.keys(n.dynamicForm[W]).map(s=>{const r=i.filter(E=>E.name===s)[0],h=n.accountType?.type;if(h!=null&&r!=null){const E=n.dynamicForm[h][s];switch(r.fieldType){case"text":return t.jsxs(t.Fragment,{children:[t.jsx(De,{label:{label:r.label+c.colon,width:x},text:{type:"text",name:z(o,"dynamicForm",h,r.name),placeholder:r.placeholder,defaultValue:E,options:{required:r.required,pattern:r.validationRegex!=null?new RegExp(r.validationRegex):void 0,maxLength:r.maxLength,minLength:r.minLength}},isDisabled:k,style:{width:"auto"},showAdditionalInfoLabel:!1},z(o,"dynamicForm",h,r.name)),t.jsx(I,{})]});case"select":return t.jsxs(t.Fragment,{children:[t.jsx(J,{isDisabled:void 0,label:{label:r.label+c.colon,width:x},style:{width:"auto"},singleSelectPickerField:{name:z(o,"dynamicForm",h,r.name),placeholder:r.placeholder,defaultValue:{selectedOption:E,allOptions:r.valuesAllowed??[]}}},z(o,"dynamicForm",h,r.name)),t.jsx(I,{})]});case"radio":return t.jsxs(t.Fragment,{children:[t.jsxs(Z,{size:b,children:[t.jsx(G,{label:r.label+c.colon,htmlFor:z(o,"dynamicForm",h,r.name),style:{marginLeft:S.labelMarginLeft.value(b),marginRight:S.labelMarginRight.value(b),width:x}}),t.jsx(K,{labelWidth:x,size:b,children:r.valuesAllowed?.map(M=>t.jsx(q,{label:{label:M.label},style:{paddingRight:`${y.sp4}`,width:"auto"},radioField:{name:z(o,"dynamicForm",h,r.name),id:r.name,value:M.value,registerOptions:{required:!0}}},M.value))})]},z(o,"dynamicForm",h,r.name)),t.jsx(I,{})]});default:return null}}else return null}):null,t.jsxs(Je,{size:b,children:[t.jsxs(Z,{size:b,children:[t.jsx(G,{label:c.addSource,htmlFor:L(o,"source"),style:{marginLeft:S.labelMarginLeft.value(b),marginRight:S.labelMarginRight.value(b),width:x},showTooltip:!0,tooltipTitle:c.sourceTooltip,toolTipWidth:S.toolTipWidth.valuePx(b)}),t.jsxs(K,{labelWidth:x,size:b,children:[t.jsx(q,{label:{label:c.phone},style:{paddingRight:`${y.sp4}`,width:"auto"},isContainerClickable:!0,radioField:{name:L(o,"source"),id:F[0],value:F[0],registerOptions:{required:!0},radioSize:"small"}}),t.jsx(q,{label:{label:c.email},style:{paddingRight:`${y.sp4}`,width:"auto"},isContainerClickable:!0,radioField:{name:L(o,"source"),id:F[1],value:F[1],registerOptions:{required:!0},radioSize:"small"}}),t.jsx(q,{label:{label:c.other},style:{width:"auto"},isContainerClickable:!0,radioField:{name:L(o,"source"),id:F[2],value:F[2],registerOptions:{required:!0},radioSize:"small"}})]})]}),$(`${o}.source`)==="other"?t.jsx(Te,{type:"text",name:L(o,"otherSource"),placeholder:c.sourcePlaceholder,style:{display:"flex",flexGrow:1,cursor:"inherit",height:y.sp7,width:"calc(100% - largeLabelWidth)",background:j.colors.background,border:`1px solid ${j.colors.background}`,marginLeft:x},registerOptions:{required:!0,validate:s=>$(`${o}.source`)==="other"&&!!s}}):null]}),t.jsx(I,{})]})})},L=(e,i)=>`${e}.${i}`,z=(e,i,l,f)=>`${e}.${i}.${l}.${f}`,Xe=g.div`
90
90
  display: flex;
91
91
  flex-direction: column;
92
- `,Ke=g.div`
92
+ `,Ye=g.div`
93
93
  display: flex;
94
94
  flex-direction: column;
95
95
  background-color: ${e=>e.theme.colors.grey5};
96
96
  border: 1px solid ${e=>e.theme.colors.grey3};
97
97
  box-shadow: ${e=>`${y.sp0} 2px ${y.sp1} ${e.theme.colors.dropShadowNormal}`};
98
98
  border-radius: ${y.sp2};
99
- `,R=g.div`
99
+ `,I=g.div`
100
100
  display: flex;
101
101
  flex: 1;
102
102
  background-color: ${e=>e.theme.colors.grey3};
103
103
  min-height: 1px;
104
104
  max-height: 1px;
105
- `,Xe=g.div`
105
+ `,Je=g.div`
106
106
  display: flex;
107
107
  flex-direction: column;
108
108
  align-items: flex-start;
@@ -113,7 +113,7 @@ import{j as t,X as G,a as he,M as U,c3 as ye,H as ge,l as K,bO as be,bQ as fe,bR
113
113
  z-index: 1;
114
114
  outline: 1px solid ${e=>e.theme.colors.primary};
115
115
  }
116
- `,Y=g.div`
116
+ `,Z=g.div`
117
117
  display: flex;
118
118
  flex-direction: row;
119
119
  width: 100%;
@@ -121,7 +121,7 @@ import{j as t,X as G,a as he,M as U,c3 as ye,H as ge,l as K,bO as be,bQ as fe,bR
121
121
  background-color: ${e=>e.theme.colors.grey5};
122
122
  min-height: ${e=>S.labelHeight.valuePx(e.size)};
123
123
  align-items: center;
124
- `,Z=g.div`
124
+ `,K=g.div`
125
125
  display: flex;
126
126
  flex-direction: row;
127
127
  width: ${e=>`calc(100% - ${e.labelWidth}px)`};
@@ -130,7 +130,7 @@ import{j as t,X as G,a as he,M as U,c3 as ye,H as ge,l as K,bO as be,bQ as fe,bR
130
130
  flex-grow: 1;
131
131
  height: ${e=>S.controlHeight.valuePx(e.size)};
132
132
  align-items: center;
133
- `,P={paddingTopBottomContainer:new p(a[3],a[3]),paddingLeftContainer:new p(a[3],a[6]),paddingRightContainer:new p(a[3],a[8]),marginLeft:new p(a[4],a[6]),buttonWidth:new p(140,140)},J="internationalDetailsPage",v="internationalWireSection",Ye="mailingAddressSection",ee=e=>`${e}_form`,Ze=({internationalWireView:e,vendorType:i,isCountryDropdownReadonly:l=!1,isCurrencyDropdownReadonly:f=!1,isDisabled:u,addressType:n,addressToEdit:o,mailingAddress:w,billAmount:D,onAccountDetailsUpdated:k,onCurrencyUpdated:C,onSaveHandler:b,onBackClick:$,onAddressClick:j})=>{const m=G(),c=e.createInternationalWireDetails.localData,x=e.createInternationalWireDetails.createStatus,z=e.fetchState,T=he({mode:"all",reValidateMode:"onChange",defaultValues:I.useMemo(()=>te(e),[e]),values:te(e)}),[E,F]=I.useState(!1),[s,r]=I.useState(!1),h=U.getLocalizedStrings().spendManagement.billPay.vendorCreation,_=U.getLocalizedStrings().common.footer,{international:M}=h.wireDetails,re={onOkClick:()=>{r(!1),T.reset(),$()},onCancelClick:()=>{r(!1)}},se=(d,A)=>{if(d.includes("account_holder_name")||d.includes("bank_account_iban")||d.includes("bank_swift_code")||d.includes("account_number")||d.includes("sort_code")||d.includes("ifsc_code")||d.includes("upi_id")||d.includes("contact_no")||d.includes("bank_code")||d.includes("institution_number")||d.includes("transit_number")||d.includes("identification_value")||d.includes("branch_code")||d.includes("clabe")||d.includes("bsb_code")||d.includes("proxy_value")||d.includes("php_e_wallet_no")){F(!0);return}const B=d===`${v}.vendorCountry`,N=d===`${v}.vendorCurrency`;N&&A[v].vendorCurrency.selectedOption!=null&&C(A[v].vendorCurrency.selectedOption,D,i);const pe={...A},me=ie(pe,e,B,N,f);k(me,D,i,N||B)};I.useEffect(()=>{const d=T.watch((A,{name:B})=>{B!=null&&A!=null&&ye(()=>se(B,A))});return()=>{d.unsubscribe()}});const H=I.useCallback(()=>{const d=T.getValues(),A=ie(d,e,!1,!1,f);k(A,D,i,!1),F(!1)},[T,e,f,k,D,i]),de=I.useCallback(()=>{E&&H(),j(n)},[E,H,j,n]),ce=T.handleSubmit(d=>{E&&H(),b()}),ue=!ge(w!=null?K.getFormattedAddress(w):w,o!=null?K.getFormattedAddress(o):o)||T.formState.isDirty;return t.jsxs(it,{children:[t.jsxs(lt,{size:m,children:[s===!0?t.jsx(be,{titleComponent:t.jsx(xe,{children:h.discardTitle}),descriptionComponent:t.jsx(fe,{children:h.discardDescription}),primaryButtonText:h.discard,secondaryButtonText:h.cancel,action:re}):null,t.jsx(We,{header:M.addInternationalWireDetails,isDirty:ue,onBackClick:$,setShowConfirmationPopup:r}),x?.fetchState==="Error"&&x.error?.code===409?t.jsx(Re,{warningText:h.bankAccountCommon.accountExistWarning}):null,t.jsx(ot,{size:m,children:h.bankAccountCommon.accountDetailsTitle}),t.jsx(ve,{...T,children:t.jsxs("form",{id:ee(J),onSubmit:ce,children:[t.jsx(tt,{size:m,children:t.jsx(Qe,{wireAccountToCreate:c,dynamicFormFetchState:z,supportedAccountTypes:e.supportedAccountTypes,supportedCountries:e.supportedCountries,supportedCurrencies:e.supportedCurrencies,dynamicFormConfig:e.dynamicForm,sectionId:v,isDisabled:u,isCountryDropdownReadonly:l,isCurrencyDropdownReadonly:f})}),t.jsx(Ie,{sectionId:Ye,isDisabled:u,addressType:n,addressToEdit:o,onAddressClick:de})]})})]}),t.jsx(we,{formId:ee(J),primaryBtn:{label:h.bankAccountCommon.saveAccount,isLoading:x.fetchState==="In-Progress",style:{width:P.buttonWidth.value(m)},isDisabled:u!=null},cancelBtn:{label:_.cancel,style:{width:P.buttonWidth.value(m)},shouldResetOnCancel:!1,onClick:()=>{T.formState.isDirty?r(!0):(T.reset(),$())}}})]})},Je=e=>{const i=e.dynamicForm,l=e.createInternationalWireDetails.localData?.dynamicForm,f=e.createInternationalWireDetails.localData?.accountType?.type;let u={};return l!=null&&i.length>0?(Object.keys(l).forEach(n=>{n===f?(u={...u,[n]:{}},Object.keys(l[n]).forEach(o=>{i.find(w=>w.name===o)?.fieldType==="select"?u[n]={...u[n],[o]:{selectedOption:l[n][o],allOptions:i.find(w=>w.name===o)?.valuesAllowed??[]}}:u[n]={...u[n],[o]:l[n][o]}})):u={...u,[n]:{}}}),u):{}},te=e=>{const i=e.createInternationalWireDetails.localData?.source;return{[v]:{vendorCountry:le(e.createInternationalWireDetails.localData?.countryCode,e.supportedCountries.map(l=>l.countryCode)),vendorCurrency:{allOptions:e.supportedCurrencies.map(l=>({label:`${l.currencyCode} - ${l.currencyName}`,value:l.currencyCode,countryCode:l.currencySymbol,currency:l.currencyName})),selectedOption:e.createInternationalWireDetails.localData?.currencyCode},typeOfAccount:{allOptions:e.supportedAccountTypes.map(l=>({label:l.title,value:l.type})),selectedOption:e.createInternationalWireDetails.localData?.accountType?.type},dynamicForm:Je(e),source:i!=null&&i!=="phone"&&i!=="email"?"other":i,otherSource:i!=null&&i!=="phone"&&i!=="email"?i:void 0}}},et=e=>{let i={};return Object.keys(e).forEach(l=>{i={...i,[l]:typeof e[l]=="string"?e[l]:e[l].selectedOption}}),i},ie=(e,i,l,f,u)=>{const n=i.createInternationalWireDetails.localData?.accountType?.type;return{dynamicForm:n!=null?{...i.createInternationalWireDetails.localData?.dynamicForm,[n]:et(e[v].dynamicForm?.[n]??{})}:i.createInternationalWireDetails.localData?.dynamicForm??{},source:e[v].source==="other"?e[v].otherSource??"":e[v].source,countryCode:e[v].vendorCountry.selectedOption!=null?Ce(e[v].vendorCountry.selectedOption):void 0,currencyCode:l&&!u?void 0:e[v].vendorCurrency.selectedOption,accountType:f||e[v].typeOfAccount.selectedOption==null?void 0:{type:e[v].typeOfAccount.selectedOption,title:i.supportedAccountTypes.filter(o=>o.type===e[v].typeOfAccount.selectedOption)[0].title}}},tt=g.div`
133
+ `,P={paddingTopBottomContainer:new p(a[3],a[3]),paddingLeftContainer:new p(a[3],a[6]),paddingRightContainer:new p(a[3],a[8]),marginLeft:new p(a[4],a[6]),buttonWidth:new p(140,140)},Q="internationalDetailsPage",v="internationalWireSection",Ze="mailingAddressSection",ee=e=>`${e}_form`,Ke=({internationalWireView:e,vendorType:i,isCountryDropdownReadonly:l=!1,isCurrencyDropdownReadonly:f=!1,isDisabled:u,addressType:n,addressToEdit:o,mailingAddress:w,billAmount:D,onAccountDetailsUpdated:k,onCurrencyUpdated:C,onSaveHandler:b,onBackClick:$,onAddressClick:j})=>{const m=X(),c=e.createInternationalWireDetails.localData,x=e.createInternationalWireDetails.createStatus,W=e.fetchState,T=he({mode:"all",reValidateMode:"onChange",defaultValues:R.useMemo(()=>te(e),[e]),values:te(e)}),[_,F]=R.useState(!1),[s,r]=R.useState(!1),h=N.getLocalizedStrings().spendManagement.billPay.vendorCreation,E=N.getLocalizedStrings().common.footer,{international:M}=h.wireDetails,re={onOkClick:()=>{r(!1),T.reset(),$()},onCancelClick:()=>{r(!1)}},se=(d,A)=>{if(d.includes("account_holder_name")||d.includes("bank_account_iban")||d.includes("bank_swift_code")||d.includes("account_number")||d.includes("sort_code")||d.includes("ifsc_code")||d.includes("upi_id")||d.includes("contact_no")||d.includes("bank_code")||d.includes("institution_number")||d.includes("transit_number")||d.includes("identification_value")||d.includes("branch_code")||d.includes("clabe")||d.includes("bsb_code")||d.includes("proxy_value")||d.includes("php_e_wallet_no")){F(!0);return}const B=d===`${v}.vendorCountry`,U=d===`${v}.vendorCurrency`;U&&A[v].vendorCurrency.selectedOption!=null&&C(A[v].vendorCurrency.selectedOption,D,i);const pe={...A},me=ie(pe,e,B,U,f);k(me,D,i,U||B)};R.useEffect(()=>{const d=T.watch((A,{name:B})=>{B!=null&&A!=null&&ye(()=>se(B,A))});return()=>{d.unsubscribe()}});const H=R.useCallback(()=>{const d=T.getValues(),A=ie(d,e,!1,!1,f);k(A,D,i,!1),F(!1)},[T,e,f,k,D,i]),de=R.useCallback(()=>{_&&H(),j(n)},[_,H,j,n]),ce=T.handleSubmit(d=>{_&&H(),b()}),ue=!ge(w!=null?Y.getFormattedAddress(w):w,o!=null?Y.getFormattedAddress(o):o)||T.formState.isDirty;return t.jsxs(it,{children:[t.jsxs(lt,{size:m,children:[s===!0?t.jsx(be,{titleComponent:t.jsx(xe,{children:h.discardTitle}),descriptionComponent:t.jsx(fe,{children:h.discardDescription}),primaryButtonText:h.discard,secondaryButtonText:h.cancel,action:re}):null,t.jsx(ze,{header:M.addInternationalWireDetails,isDirty:ue,onBackClick:$,setShowConfirmationPopup:r}),x?.fetchState==="Error"&&x.error?.code===409?t.jsx(Ie,{warningText:h.bankAccountCommon.accountExistWarning}):null,t.jsx(ot,{size:m,children:h.bankAccountCommon.accountDetailsTitle}),t.jsx(ve,{...T,children:t.jsxs("form",{id:ee(Q),onSubmit:ce,children:[t.jsx(tt,{size:m,children:t.jsx(Ge,{wireAccountToCreate:c,dynamicFormFetchState:W,supportedAccountTypes:e.supportedAccountTypes,supportedCountries:e.supportedCountries,supportedCurrencies:e.supportedCurrencies,dynamicFormConfig:e.dynamicForm,sectionId:v,isDisabled:u,isCountryDropdownReadonly:l,isCurrencyDropdownReadonly:f})}),t.jsx(Re,{sectionId:Ze,isDisabled:u,addressType:n,addressToEdit:o,onAddressClick:de})]})})]}),t.jsx(we,{formId:ee(Q),primaryBtn:{label:h.bankAccountCommon.saveAccount,isLoading:x.fetchState==="In-Progress",style:{width:P.buttonWidth.value(m)},isDisabled:u!=null},cancelBtn:{label:E.cancel,style:{width:P.buttonWidth.value(m)},shouldResetOnCancel:!1,onClick:()=>{T.formState.isDirty?r(!0):(T.reset(),$())}}})]})},Qe=e=>{const i=e.dynamicForm,l=e.createInternationalWireDetails.localData?.dynamicForm,f=e.createInternationalWireDetails.localData?.accountType?.type;let u={};return l!=null&&i.length>0?(Object.keys(l).forEach(n=>{n===f?(u={...u,[n]:{}},Object.keys(l[n]).forEach(o=>{i.find(w=>w.name===o)?.fieldType==="select"?u[n]={...u[n],[o]:{selectedOption:l[n][o],allOptions:i.find(w=>w.name===o)?.valuesAllowed??[]}}:u[n]={...u[n],[o]:l[n][o]}})):u={...u,[n]:{}}}),u):{}},te=e=>{const i=e.createInternationalWireDetails.localData?.source;return{[v]:{vendorCountry:le(e.createInternationalWireDetails.localData?.countryCode,e.supportedCountries.map(l=>l.countryCode)),vendorCurrency:{allOptions:e.supportedCurrencies.map(l=>({label:`${l.currencyCode} - ${l.currencyName}`,value:l.currencyCode,countryCode:l.currencySymbol,currency:l.currencyName})),selectedOption:e.createInternationalWireDetails.localData?.currencyCode},typeOfAccount:{allOptions:e.supportedAccountTypes.map(l=>({label:l.title,value:l.type})),selectedOption:e.createInternationalWireDetails.localData?.accountType?.type},dynamicForm:Qe(e),source:i!=null&&i!=="phone"&&i!=="email"?"other":i,otherSource:i!=null&&i!=="phone"&&i!=="email"?i:void 0}}},et=e=>{let i={};return Object.keys(e).forEach(l=>{i={...i,[l]:typeof e[l]=="string"?e[l]:e[l].selectedOption}}),i},ie=(e,i,l,f,u)=>{const n=i.createInternationalWireDetails.localData?.accountType?.type;return{dynamicForm:n!=null?{...i.createInternationalWireDetails.localData?.dynamicForm,[n]:et(e[v].dynamicForm?.[n]??{})}:i.createInternationalWireDetails.localData?.dynamicForm??{},source:e[v].source==="other"?e[v].otherSource??"":e[v].source,countryCode:e[v].vendorCountry.selectedOption!=null?Ce(e[v].vendorCountry.selectedOption):void 0,currencyCode:l&&!u?void 0:e[v].vendorCurrency.selectedOption,accountType:f||e[v].typeOfAccount.selectedOption==null?void 0:{type:e[v].typeOfAccount.selectedOption,title:i.supportedAccountTypes.filter(o=>o.type===e[v].typeOfAccount.selectedOption)[0].title}}},tt=g.div`
134
134
  padding-left: ${e=>P.paddingLeftContainer.valuePx(e.size)};
135
135
  padding-right: ${e=>P.paddingRightContainer.valuePx(e.size)};
136
136
  padding-top: ${e=>P.paddingTopBottomContainer.valuePx(e.size)};
@@ -149,4 +149,4 @@ import{j as t,X as G,a as he,M as U,c3 as ye,H as ge,l as K,bO as be,bQ as fe,bR
149
149
  color: ${e=>e.theme.colors.champion};
150
150
  margin-left: ${e=>P.marginLeft.valuePx(e.size)};
151
151
  margin-top: ${y.sp3};
152
- `,ft=({internationalWireView:e,vendorViewDetails:i,bankAccountContext:l,vendorType:f,addressType:u,isDisabled:n,addressToEdit:o,mailingAddress:w,billAmount:D,onAccountDetailsUpdated:k,onCurrencyUpdated:C,onSaveHandler:b,onBackClick:$,onAddressClick:j})=>{const m={...i.editVendorState??i.newVendorState},c=m.vendorDetailLocalData?.paymentInstrumentIds!=null&&m.vendorDetailLocalData?.paymentInstrumentIds.length>0,x=m.vendorBasic?.countryCode!=null||c,z=m.vendorBasic?.currencyCode!=null||c;return I.useEffect(()=>{(l==="vendor"&&e.createInternationalWireDetails.createStatus.fetchState==="Completed"||m?.saveStatus?.fetchState==="Completed")&&$()},[m?.saveStatus?.fetchState,$,l,e.createInternationalWireDetails.createStatus]),t.jsx(Ze,{internationalWireView:e,addressToEdit:o,mailingAddress:w,addressType:u,billAmount:D,isDisabled:n,onSaveHandler:b,onBackClick:$,onAddressClick:j,onAccountDetailsUpdated:k,onCurrencyUpdated:C,vendorType:f,isCountryDropdownReadonly:x,isCurrencyDropdownReadonly:z})};export{ft as default};
152
+ `,ft=({internationalWireView:e,vendorViewDetails:i,bankAccountContext:l,vendorType:f,addressType:u,isDisabled:n,addressToEdit:o,mailingAddress:w,billAmount:D,onAccountDetailsUpdated:k,onCurrencyUpdated:C,onSaveHandler:b,onBackClick:$,onAddressClick:j})=>{const m={...i.editVendorState??i.newVendorState},c=m.vendorDetailLocalData?.paymentInstrumentIds!=null&&m.vendorDetailLocalData?.paymentInstrumentIds.length>0,x=m.vendorBasic?.countryCode!=null||c,W=m.vendorBasic?.currencyCode!=null||c;return R.useEffect(()=>{(l==="vendor"&&e.createInternationalWireDetails.createStatus.fetchState==="Completed"||m?.saveStatus?.fetchState==="Completed")&&$()},[m?.saveStatus?.fetchState,$,l,e.createInternationalWireDetails.createStatus]),t.jsx(Ke,{internationalWireView:e,addressToEdit:o,mailingAddress:w,addressType:u,billAmount:D,isDisabled:n,onSaveHandler:b,onBackClick:$,onAddressClick:j,onAccountDetailsUpdated:k,onCurrencyUpdated:C,vendorType:f,isCountryDropdownReadonly:x,isCurrencyDropdownReadonly:W})};export{ft as default};
@@ -1 +1 @@
1
- import{j as l}from"./index-BS9BhstZ.js";import{b as B}from"./vendor-CnQcJ2Lu.js";import{f as u}from"./InternationalWireSwiftDetailsPage-vgA7iek9-ChmwO1by.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./BankAccountWarningSection-PFOmZUmz-jyv_7HW8.js";import"./MailingDetailsSection-Bo_v3Gp2-BGvmU6P-.js";import"./LabeledAddressValueField-DZCn1w6m-DYHHw-KS.js";import"./MagicLinkTitleSection-DdTLuD-8-2eGCS_tx.js";const F=({vendorViewDetails:n,bankAccountContext:o,isDisabled:r,onSaveHandler:s,onBankDetailsUpdated:i,onBackClick:e,onFetchBankNameBySwift:d,onAddressClick:c})=>{const{internationalBankAccountCreateStatus:a,internationalBankAccountToCreate:m,editVendorState:p,newVendorState:S,bankNameBySwift:f,fetchBankNameBySwiftStatus:k}=n,t={...p??S};return B.useEffect(()=>{(o==="vendor"&&a.fetchState==="Completed"||t?.saveStatus?.fetchState==="Completed")&&e()},[a,t?.saveStatus?.fetchState,e,o]),l.jsx(u,{bankAccountToCreate:m,bankAccountCreationState:a,bankNameBySwift:f,addressToEdit:t?.vendorNewAddressStatus?.addressToCreate,mailingAddress:t?.vendorAddress,addressType:"vendor_address",fetchBankNameBySwiftStatus:k,isDisabled:r,onSaveHandler:s,onBankDetailsUpdated:i,onBackClick:e,onAddressClick:c,onFetchBankNameBySwift:d})};export{F as default};
1
+ import{j as l}from"./index-CnrHU8WN.js";import{b as B}from"./vendor-CnQcJ2Lu.js";import{f as u}from"./InternationalWireSwiftDetailsPage-C7D15jtK-Li0eKKsY.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";import"./BankAccountWarningSection-927iR_QB-BLBTF_Hr.js";import"./MailingDetailsSection-CTrx1xoB-By7vG4Hi.js";import"./LabeledAddressValueField-Dl5yKg2N-CzXWQu_Y.js";import"./MagicLinkTitleSection-tHh2d5Ld-_QN59pd4.js";const F=({vendorViewDetails:n,bankAccountContext:o,isDisabled:r,onSaveHandler:s,onBankDetailsUpdated:i,onBackClick:e,onFetchBankNameBySwift:d,onAddressClick:c})=>{const{internationalBankAccountCreateStatus:a,internationalBankAccountToCreate:m,editVendorState:p,newVendorState:S,bankNameBySwift:f,fetchBankNameBySwiftStatus:k}=n,t={...p??S};return B.useEffect(()=>{(o==="vendor"&&a.fetchState==="Completed"||t?.saveStatus?.fetchState==="Completed")&&e()},[a,t?.saveStatus?.fetchState,e,o]),l.jsx(u,{bankAccountToCreate:m,bankAccountCreationState:a,bankNameBySwift:f,addressToEdit:t?.vendorNewAddressStatus?.addressToCreate,mailingAddress:t?.vendorAddress,addressType:"vendor_address",fetchBankNameBySwiftStatus:k,isDisabled:r,onSaveHandler:s,onBankDetailsUpdated:i,onBackClick:e,onAddressClick:c,onFetchBankNameBySwift:d})};export{F as default};