@zeniai/web-cockpit-ui 1.14.24-qa → 1.14.25-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 (242) hide show
  1. package/dist/assets/{ACHDetailsPage-DZv7I3Jm-YQnMOYp1.js → ACHDetailsPage-Dnaajiit-DPQvVIrY.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DCq95N_N-CXDNIqrC.js → AIPerformancePage-Daw-cRXC-BnOl0sSl.js} +24 -24
  3. package/dist/assets/{AccountInfoPage-wfDS5ToF-Dk38sAxC.js → AccountInfoPage-Dr_EV68J-Dy7B8Ixb.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-dgeBtGlm-D-b-iQe0.js → AccountInfoPageContent-CC5MUG47-DaadDuh7.js} +15 -15
  5. package/dist/assets/{AccountLockedInfoModal-CqjvVPUE-DQpjXn2Q.js → AccountLockedInfoModal-wwzfemk2-D_gLp3zY.js} +2 -2
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BJ1TTvni-CcW2jKAi.js → AccountReconDetailsDrawerPage-CxLOKPZL-DXp_tiIi.js} +5 -5
  7. package/dist/assets/{AccountRow-99zfxKet-C9Nd9F1S.js → AccountRow-CE24vibs-BeG7a0dl.js} +31 -31
  8. package/dist/assets/{AccountsPromoCardStack-CZwrQBcr-CmN3crLg.js → AccountsPromoCardStack-DIj8Lzw_-D6FaQOg3.js} +25 -25
  9. package/dist/assets/{AddAddressForCardDrawer-BcOX27nY-CtiOCTsA.js → AddAddressForCardDrawer-DkS25_j--r1d3UvOC.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CoW0Ppg4-J2VnTm3x.js → AddToWalletPage-Dea21gHA-Bp4QNxQm.js} +17 -17
  11. package/dist/assets/{AgingReportsPage-Dgi5oFl4-Ce7bMUR6.js → AgingReportsPage-B0QeJFi3-sZ5UMlim.js} +1 -1
  12. package/dist/assets/{AllUserItems-6iESftSq-CsmBRymW.js → AllUserItems-B4hCDMjV-gKfLm3-3.js} +7 -7
  13. package/dist/assets/{ApAgingDetailPage-jEL75hOV-JTEWmEwV.js → ApAgingDetailPage-DaJoS0dH-DfkxWfAu.js} +3 -3
  14. package/dist/assets/{AppBasePage-CMHbFdBh-Bo2XhsLy.js → AppBasePage-DssduDyW-DFTlQl-q.js} +5 -5
  15. package/dist/assets/{AppDrawerContent-NAyrnDCL-zWt12xZ6.js → AppDrawerContent-CbbgZnfp-DzI9LWAe.js} +6 -6
  16. package/dist/assets/{ApprovalRulesSettingsPage-BWraRVsT-sq_E7aI8.js → ApprovalRulesSettingsPage-BXmqQlwD-CWFKCLKr.js} +3 -3
  17. package/dist/assets/{ArAgingChart-DPrIHwSE-C_2WpeiM.js → ArAgingChart-D6JqUDEG-AFSroOat.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-CdNiD7uR-CME9SOhC.js → ArAgingDetailPage-DsmlwAqB--L9cmpiU.js} +1 -1
  19. package/dist/assets/{AttachmentView-Cmh726Zl-CgfzBbdX.js → AttachmentView-C1-yT0s8-CT_a09u3.js} +6 -6
  20. package/dist/assets/{BankAccountSection-jRnEB-Ut-5BYJoDk4.js → BankAccountSection-Cb6aph-a-DuZ4WmNC.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-KznYA-cf-DOVsFGdl.js → BankAccountWarningSection-EhX6uury-BPk65Kcm.js} +18 -18
  22. package/dist/assets/{BankConnectionsSettingsPage-BXrsOxcg-DTzvfI-B.js → BankConnectionsSettingsPage-CM5grE5E-kW8remzx.js} +9 -9
  23. package/dist/assets/{BillDetailPage-glKjF2MJ-D3l7IvWg.js → BillDetailPage-BK_uvtAn-1i2teGn-.js} +7 -7
  24. package/dist/assets/BillPayApprovalRuleDetailPage-9iw179oG-DBwy8M8j.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-jctlpXwj-CmhRHJvR.js → BillPayApprovalRulesPage-CodIhk9Z-BxI29Egp.js} +7 -7
  26. package/dist/assets/BillPayPromoPage-CmIXJyPx-qo9MiUmN.js +84 -0
  27. package/dist/assets/{BillPaySetUpPage-UfM6FOqW-DiGKIWDe.js → BillPaySetUpPage-A_oRpNoW-CzrXD8De.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-BfMIxeqM-1cKvDtpW.js → BillingSettingsPage-BEDmZgpH-CExdBU0e.js} +5 -5
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DhoLC2aT-D0k9QhkW.js → BillsBulkReviewDrawerPage-BZhQ9qq5-CCCPnCXA.js} +1 -1
  30. package/dist/assets/{BoxItem-CIOib-WX-DEJIIppW.js → BoxItem-7efiVHrX-gIWD7SzU.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Czf-y16x-CBCn2hfu.js → BusinessVerificationPage-CGyAMZF_-M7hgZV6x.js} +8 -8
  32. package/dist/assets/CardNumberSubText-DWvfR19t-DE7est1t.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-BOTxd8DW-CmEQ1WEw.js → CashbackDetailPage-CtUV5555-CGUzig_d.js} +19 -19
  34. package/dist/assets/{ChargeCardDetailPage-DbtvRfDc-xzBtT-ID.js → ChargeCardDetailPage-DDh9vz3a-Cnl8i_PL.js} +23 -23
  35. package/dist/assets/{ChargeCardListPage-Q1zat_TQ-0_0FZfyS.js → ChargeCardListPage-D8cV_Pir-Cr7nCz19.js} +18 -18
  36. package/dist/assets/{ChargeCardListTable-CKH-EZW4-Cd1KUnIO.js → ChargeCardListTable-DHS1cdle-DAwaOV_c.js} +19 -19
  37. package/dist/assets/ChargeCardPromoPage-CpOdwFtx-W_T6Yn6m.js +222 -0
  38. package/dist/assets/{ChargeCardSetupPage-DM15gWD1-WcsJHEqP.js → ChargeCardSetupPage-sV183SET-D5ryWFlf.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-xedf3XEE-DXuw1yy7.js → ChargeCardStatementsPage-C5VALN0g-DYKxahz3.js} +6 -6
  40. package/dist/assets/ChargeCardUtils-aPC5GoNp-DNIL0uw_.js +1 -0
  41. package/dist/assets/{ChaseOverlay-IbWtzNzT-DyjXkZNO.js → ChaseOverlay-De4Qu9qP-B6ZR5Jtp.js} +7 -7
  42. package/dist/assets/CheckDepositDrawerPage-Bf9BNkbA-DtOLd0xX.js +206 -0
  43. package/dist/assets/{CollapsableReportTable-jOFcWQi9-D9Cn8RFJ.js → CollapsableReportTable-C4NioPjf-CL8A5qpd.js} +109 -109
  44. package/dist/assets/{CompanyOfficerDetailsSection-DMCZTk1e-CdzOYXTm.js → CompanyOfficerDetailsSection-BjkrtiV9-wJhKxYTD.js} +14 -14
  45. package/dist/assets/{CompanyPassportCard-BbJLMFqe-CFYXrwOI.js → CompanyPassportCard-CXFn-wF8-DFs13HCt.js} +6 -6
  46. package/dist/assets/{CompanyPassportPage-BwCMcjB9-EhkSO3MY.js → CompanyPassportPage-BDB3rjFV-q4ymY5oH.js} +9 -9
  47. package/dist/assets/{CompleteProfile-Dz4laW45-t2WOdgnE.js → CompleteProfile-trSw9pbM-C9tjupH9.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-B2j3QxzW-C7Hrv_Rv.js → ConfettiBurst-DGVvcZr3-C4LVa8Qf.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-z2chPZUl-Bt138LfS.js → CreateOrEditVendorPage-C9Mf_ICr-Gp1eqMoH.js} +8 -8
  50. package/dist/assets/{CreditCardPaymentDrawerPage-Z9RiL1h7-9F216iMd.js → CreditCardPaymentDrawerPage-DWLfJzPP-Bux3br_f.js} +21 -21
  51. package/dist/assets/{CreditCardPaymentPlgSection-Cg-oo7DU-Br5JMnsp.js → CreditCardPaymentPlgSection-BDA8jYAa-Dyv79lbf.js} +13 -13
  52. package/dist/assets/{CurrencySelectField-CxNprN2u-CL181MHj.js → CurrencySelectField-BwDZkugY-CnGwREoZ.js} +5 -5
  53. package/dist/assets/{CustomerOnboardingActivationPage-diAJ07bX-CsQ5TTri.js → CustomerOnboardingActivationPage-B5MfS1sv-Baeo1JJB.js} +7 -7
  54. package/dist/assets/CustomerOnboardingContainerPage-udfu9eI--BS2ZxOvL.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton--8DBjaCm-DGUaOh56.js → CustomerOnboardingDetailPageSkeleton-CMo7leFT-AMqD-6Q4.js} +11 -11
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-Ccq8kI-v-D8yRunsk.js → CustomerOnboardingNoStepsPage-DRJaAZhA-iimuZEwJ.js} +2 -2
  57. package/dist/assets/{CustomerOnboardingPage-s3GNwP8c-CPXa6rx2.js → CustomerOnboardingPage-BKk_PDqM-D-4x8Jow.js} +3 -3
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-C-tToXNK-D-oPzPaT.js → CustomerOnboardingProductSuitePage-_Vl2g0gl-10ZLiwPM.js} +7 -7
  59. package/dist/assets/{Dashboard-BtcnzaY6-p3zeHNmW.js → Dashboard-els5FzHO-Dh7hNslD.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-C6jLfLtF-B5G4HLsH.js → DashboardReportPage-BkqXGUF0-DT4CcRgQ.js} +27 -27
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-s8Nl8CmH-zwQVOM7e.js → DashboardSidebarBackgroundAnimation-yg8GX_hV-CX2KQ6LO.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-Bm63W_1e-DVqMxFEK.js → DepositAccTransactionItem-CjHyYNYu-RBBjBoNW.js} +3 -3
  63. package/dist/assets/DepositAccTransactionListPage-B1rERpKn-DzZA-c5-.js +66 -0
  64. package/dist/assets/{DomesticWireDetailsPage-DX0BA5i3-amEgmkhH.js → DomesticWireDetailsPage-CoKdnOHK-BHUXWz4M.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-BcH72YTL-B62Er70B.js → DownloadOverlay-F_OSkI0t-BVAyHat1.js} +6 -6
  66. package/dist/assets/{DrawerPage-CzHhh0IP-Be7m4gY2.js → DrawerPage-CKRgC8zD-D0TMwLtR.js} +10 -10
  67. package/dist/assets/{EditPeoplePage-Z5btEDax-BebZCzVz.js → EditPeoplePage-CbHzmCDq-DfkIM-kP.js} +5 -5
  68. package/dist/assets/{EditReimbursementDetailPage-D_FsqRgU-BhAW7PtZ.js → EditReimbursementDetailPage-ChXC9rfg-5j-r9uid.js} +17 -17
  69. package/dist/assets/{EntityDetailPage-Bc4YVpPC-D4GtCT9-.js → EntityDetailPage-427PoMHb-DugrODtd.js} +3 -3
  70. package/dist/assets/{EntitySummarySection-Ba6AWxNi-L5EN9bhV.js → EntitySummarySection-bVBpyGBB-B2MApz9k.js} +9 -9
  71. package/dist/assets/ExpenseAutomationOverviewPage-DuVNFnJ1-DKgdA2WQ.js +222 -0
  72. package/dist/assets/{ExpenseAutomationPage-EjI20a6v-D5pEVPH_.js → ExpenseAutomationPage-Btw1vMsR-CWjy7SIj.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-562vstqT-CCL9eF19.js → ExpressPayPage-dxAJ34CZ-CQbAjueg.js} +8 -8
  74. package/dist/assets/{FeaturePreviewPage-eUvRNjsx-B0l2W-9A.js → FeaturePreviewPage-DV9L7b41-XD4D9byb.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-D60JM8h_-CckSxC9O.js → FollowStepsSection-DrwqT5qI-DLguenxm.js} +11 -11
  76. package/dist/assets/{GlobalReviewListPage-BpXEtrb4-DQ6Mw89s.js → GlobalReviewListPage-B8GTsN3z-DEt1AOjp.js} +7 -7
  77. package/dist/assets/{HelpButton-hflpTkYP-BPMkeu0J.js → HelpButton-BdkhmROe-Bd84gRvW.js} +4 -4
  78. package/dist/assets/{InformationCardStack-BsxmscQq-BVYoOHQR.js → InformationCardStack-B4kayaXA-jbXyNSEh.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-5JDl2mCA-D8idgd3z.js → InsightsCardStack-CtGUwH8B-C93opeZu.js} +9 -9
  80. package/dist/assets/InsightsSection-DLeJHy_5-CQC3yXku.js +27 -0
  81. package/dist/assets/{IntegrationsSettingsPage-MQDeidS6-j6Ew3-s2.js → IntegrationsSettingsPage-V5CRVTE7-CujfgQ2i.js} +5 -5
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-CpT4WPn3-emHrkTKE.js → InternationalWireSwiftDetailsPage-YScZkZ3T-B4isfB0V.js} +14 -14
  83. package/dist/assets/{InternationalWireVerificationPage-DlBFLwxy-laRMBnc9.js → InternationalWireVerificationPage-CU7nDSLB-57YsQsYb.js} +7 -7
  84. package/dist/assets/{InviteFormPage-D0QCEMkX-BO-lOazV.js → InviteFormPage-CuKrTHPL-D0pCRRCl.js} +17 -17
  85. package/dist/assets/{InvitePageListView-CVf8HrhY-mqZvxSGz.js → InvitePageListView-UnErwZjA-B6fQ6u5F.js} +24 -24
  86. package/dist/assets/{InvitePeoplePage-Dg7iuq2i-vvepYHu_.js → InvitePeoplePage-2Wt38URi-BnjdFSAB.js} +2 -2
  87. package/dist/assets/{InvoiceUploadSection-BuwWumE2-COAgE2f8.js → InvoiceUploadSection-DBeEv7pl-D7U5cZZb.js} +6 -6
  88. package/dist/assets/{IssueChargeCardPage-DL23WAiQ-BGDsNpha.js → IssueChargeCardPage-CtOVKu2u-BaMeYx1Q.js} +9 -9
  89. package/dist/assets/{LabeledAddressValue-CnL_9Mgq-CVpIDtQa.js → LabeledAddressValue-fMxbPIcj-L294sEHK.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-DLou-2Lm-hN3Yi48B.js → LabeledAddressValueField-DlUmtYXY-Cs_gnXQQ.js} +2 -2
  91. package/dist/assets/{LabeledControlledCheckBoxField-DqrqiFhz-Bu5rppjm.js → LabeledControlledCheckBoxField-zGMeMXy8-CgAXI_Cv.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-CxnC4AFe-D-JkO1RP.js → LabeledCreatableSingleSelectField-B2tnkBes-WTYRlYy4.js} +2 -2
  93. package/dist/assets/LabeledDocumentField-DIZb6TGh-BGGslw6p.js +41 -0
  94. package/dist/assets/{LabeledDropDownFormattedTextField-BF37XlAJ-BaQcEb_i.js → LabeledDropDownFormattedTextField-g9EUyLAN-C6fgQW4J.js} +5 -5
  95. package/dist/assets/{LabeledText-D4fC1Hz2-VzfyK_lh.js → LabeledText-DpHcCRTu-D7mPb_6F.js} +2 -2
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DMxSLbjX-CJztlZ6l.js → LabeledUserSingleSelectWithSubtitlesField-CxqD4p8b-D40nlXRv.js} +10 -10
  97. package/dist/assets/{LabeledZeniRolesDropDownField-CTA3JLz4-BjYewmih.js → LabeledZeniRolesDropDownField-CCEWFs00-DoEA7vPs.js} +5 -5
  98. package/dist/assets/{LinkJETransactionPage-CLAyFAJh-BRCeFYVj.js → LinkJETransactionPage-CHRrLxA5-DUc0uYck.js} +8 -8
  99. package/dist/assets/{LowBalancePopup-TCSP5zrD-C-mSPg9_.js → LowBalancePopup-Ciah5OLh-BrGyf1Jf.js} +2 -2
  100. package/dist/assets/{MagicLinkACHDetailsPage-C9sNEDPT-LvQ8f8NK.js → MagicLinkACHDetailsPage-DS3oJgLQ-V288YZUD.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-D4C-a5QY-BaQEjwuD.js → MagicLinkDomesticWireDetailsPage-DKtf0MEV-Kf5NpYu0.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-oKAXWkRz-C3YaWr8p.js → MagicLinkInternationalWireDetailsPage-CyrBo1eH-BQjhU1d6.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-DTKe1Hxk-C9A401Wb.js → MagicLinkSuccessPage-Clyl0DAk-CRKqo-oj.js} +1 -1
  104. package/dist/assets/MagicLinkTitleSection-BVmJnjIM-CauR-pM0.js +17 -0
  105. package/dist/assets/{MailingDetailsSection-DOuPh_kK-BSVwPRCr.js → MailingDetailsSection-Gr8nHYJX-Bb0nQJ4z.js} +1 -1
  106. package/dist/assets/{MeetingCalenderPopup-Bn5picNg-BBLVilIj.js → MeetingCalenderPopup-Z8cw7xGj-CwGNacrF.js} +1 -1
  107. package/dist/assets/{Menu-D_vf2LDo-BFcfUwqs.js → Menu-DdtklnLU-BpofGVyT.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-DJZVD_j4-4y7IMDFB.js → MyBankConnectionsSettingsPage-6XMaaONC-CvUmwJnE.js} +14 -14
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-DyhXBMCi-D4oC_o0x.js → MyPendingActivationChargeCardListPage-CycEPGif-BJj28ies.js} +2 -2
  110. package/dist/assets/{MyProfileSettingsPage-gPNoKP10-DiBey7CP.js → MyProfileSettingsPage-FPXg5BVk-DGPfsKal.js} +7 -7
  111. package/dist/assets/{NavBarWithPicker-BlYfbDi0-BnGgNUZt.js → NavBarWithPicker-C1RdmaCB-C8vggXa3.js} +3 -3
  112. package/dist/assets/{NavigationArrow-CQ_K0Bon-CawXlbrW.js → NavigationArrow-BddVpdpR-DbkdAJbG.js} +1 -1
  113. package/dist/assets/{NavigationDots-CI0cjpQA-DLC_4Z2x.js → NavigationDots-XsH5foe--BOOtSigy.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-BHQiRWO8-CkuCSAal.js → NewGlobalMerchantPage-BDl4sMXs-CBuZEijk.js} +4 -4
  115. package/dist/assets/{NoDataChart-Dg1_sU_O-BSOy8Xqm.js → NoDataChart-DWgj32LB-BPsCyU00.js} +3 -3
  116. package/dist/assets/{NoDataTable-qTYBbL2H-DM9qxqvN.js → NoDataTable-CLJr9bOe-BrdyVD6V.js} +1 -1
  117. package/dist/assets/{NotFoundPage-DYjrSF7l-CQN0tUCx.js → NotFoundPage-UJYxc5Cc-D4p8kfwg.js} +1 -1
  118. package/dist/assets/{NotificationSettingsPage-DZHlnrbH-QzcGE4E_.js → NotificationSettingsPage-CrHnNMcu-Bg6vV-Qh.js} +11 -11
  119. package/dist/assets/NotificationsListConfig-BvqX-YNT-C3lBLq2n.js +1 -0
  120. package/dist/assets/{NotificationsPage-QgnztPHs-Dl0evqI4.js → NotificationsPage-z6CyuWlj-BwW1gi3t.js} +21 -21
  121. package/dist/assets/{OpExByVendorPage-_AMvFFwS-BI72ljun.js → OpExByVendorPage-imk8yOJ3-TtSwFlGK.js} +6 -6
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-DEiBNUrj.js → OverlayContainerPage-Bmu909Fo-BZWOYlah.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-D_3EfFjd-B-t4XzLD.js → PandLWithForecastPage-DDS9ThKq-Df5zmkm_.js} +7 -7
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Ch5yJBuG-DHGF0FaM.js → PaymentAccountSetupBillingAddressSection-Dtd3PnbX-DSXMtbLs.js} +8 -8
  125. package/dist/assets/{PeoplePage-DZr3Lusf-hEmQAyog.js → PeoplePage-x1LDFwDQ-Zd_bqkIV.js} +19 -19
  126. package/dist/assets/{PortfolioAllocationFormPage-Byu_8Js7-DS7y6gw-.js → PortfolioAllocationFormPage-hSjTvk25-ZQESLZ6G.js} +6 -6
  127. package/dist/assets/{PortfolioDetails-BH-sfG9j-DxGBZzz0.js → PortfolioDetails-B1dQC_Xa-ByVcQSW7.js} +5 -5
  128. package/dist/assets/{ProductsCarousel-C4J19mb--CD1XfI-1.js → ProductsCarousel-D9cvenZp-BWJI4cxP.js} +5 -5
  129. package/dist/assets/{PromoBaseCards-Bj4SLu8_-BIrkv3Tm.js → PromoBaseCards-nzemBKyd-CNE70VVz.js} +1 -1
  130. package/dist/assets/{QBOConnectionDialog-Bx6ZDEvY-BMKA6Yj_.js → QBOConnectionDialog-Cdh8vSaY-COlqnmsO.js} +7 -7
  131. package/dist/assets/{QBOSetupSection-BCdoUjwK-DBDhCM3w.js → QBOSetupSection-BWcvYjNb-nke4kL0N.js} +14 -14
  132. package/dist/assets/ReimbursementApprovalRuleDetailPage-C_oUUTHb-Cq_kOO5b.js +26 -0
  133. package/dist/assets/{ReimbursementApprovalRulesPage-CJLcH9Ov-Cig3L3Bd.js → ReimbursementApprovalRulesPage-CMmYiBA--CrdMeZfY.js} +33 -33
  134. package/dist/assets/{ReimbursementDetailPage-Ctgt3Dcz-f6KrZU7c.js → ReimbursementDetailPage-DHuJHhx2-BOxHjSFr.js} +10 -10
  135. package/dist/assets/{ReimbursementPromoPage-DCmevd5G-wQNAiqBv.js → ReimbursementPromoPage-DyMGQ-p6-BrIO-u3b.js} +7 -7
  136. package/dist/assets/{ReimbursementSetUpPage-Dc9xJUbM-BR8GmF7i.js → ReimbursementSetUpPage-h61-hzK3-BiumEfPp.js} +2 -2
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CKjHGxjw-CDUlYRNg.js → ReimbursementsBulkReviewDrawerPage-Dwx-V4Bz-DvuE1U30.js} +1 -1
  138. package/dist/assets/{ReloadCard-DxJMY9If-nW7iK9Fy.js → ReloadCard-DHExBNFX-DM0aXM9S.js} +5 -5
  139. package/dist/assets/{ReportTableViewSelector-lMBROmrI-N5GobH7z.js → ReportTableViewSelector-I-E8djHt-8CU2obFL.js} +8 -8
  140. package/dist/assets/{ReportsPage-DMYLnwc7-DCYlz8or.js → ReportsPage-BME0CMeV-Bmq0qbx4.js} +5 -5
  141. package/dist/assets/{RevenueChart-DD8vb3zi-C_UY7ZQL.js → RevenueChart-0Wc-f_WH-DcVxD5xk.js} +15 -15
  142. package/dist/assets/{ReviewDetailsPage-C-6hNb3q-KrkMkA8R.js → ReviewDetailsPage-BmGAqycE-in95VKyl.js} +15 -15
  143. package/dist/assets/{ReviewOverlay-sqbjCjkE-snBZ7y9m.js → ReviewOverlay-NgbFy65i-DibK2Nxh.js} +7 -7
  144. package/dist/assets/{RoleWithToolTip-BpMhPbAJ-DWdyATom.js → RoleWithToolTip-EJik-IDk-BzPBZfqT.js} +5 -5
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-D1uRcS4p-DVQ50rIP.js → ScheduleDetailsFixedAssetsPage-D3gHdT8C-BJd1IKXv.js} +8 -8
  146. package/dist/assets/{ScheduleDetailsPage-D8Cvxd7m-BnOiYhbP.js → ScheduleDetailsPage-OwtRLzyh-DW6B52KA.js} +3 -3
  147. package/dist/assets/{ScheduleSequenceTable-CvqXlh31-CwVMjXUG.js → ScheduleSequenceTable-TPeNlVLG-ChBzLHB_.js} +50 -50
  148. package/dist/assets/{ScreenRoutes-CI0AzXAT.js → ScreenRoutes-DzY9NZif.js} +1 -1
  149. package/dist/assets/{SetUpAccountSection-CDXmRiGQ-HkusFLSS.js → SetUpAccountSection-Cs6puvUd-Dhlo8Ufa.js} +16 -16
  150. package/dist/assets/{SetUpDefaultSection-VPie4JZS-4qiMaYlL.js → SetUpDefaultSection-B3K4uwNR-B18eEgx5.js} +4 -4
  151. package/dist/assets/{SignIn-9DfCxy9Q-D4JpW9pe.js → SignIn-waypOYzb-C46Nnd60.js} +7 -7
  152. package/dist/assets/{SignInScreen-BbLwe7Jj.js → SignInScreen-CYIRNr4n.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-Q5bQb3hk-DfgpHKj_.js → SpendManagementListViewPage-DSgh7ish-BAVvhcJ2.js} +3 -3
  154. package/dist/assets/{SpendManagementPerTabPage-CD-kDdxa-Dy7S4NDC.js → SpendManagementPerTabPage-DFR_RubK-CDWi9rmQ.js} +14 -14
  155. package/dist/assets/{SpendManagementSection-DGGOMGEz-pjZ87EhJ.js → SpendManagementSection-OISpkX-z-BJ53j2-y.js} +10 -10
  156. package/dist/assets/{SpendMgmtSetupAccountSection-CjqaRCUW-CRO2vJ11.js → SpendMgmtSetupAccountSection-jAvWpgvm-CJIvPJ3w.js} +12 -12
  157. package/dist/assets/{StatementItem-1vBLASxl-DdTLs-OC.js → StatementItem-GW12r1Iw-CJvbUqer.js} +5 -5
  158. package/dist/assets/StatementsPage-C7fma8fv-M1h2v7ej.js +58 -0
  159. package/dist/assets/{StatusSwitcher-efLzDuyw-xo5uppxy.js → StatusSwitcher-DFTN_Xis-BPYWMG2w.js} +7 -7
  160. package/dist/assets/{SubTabSwitcher-BfYlJKJ6-B-F59cPN.js → SubTabSwitcher-BZxGbsNY-DslvQO7v.js} +7 -7
  161. package/dist/assets/{SummaryCard-BsPejHZG-Brt0nr39.js → SummaryCard-BNLe-1HR-C_RfG6jc.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-CkdITpbn-CxUxcnHV.js → TaskManagementPage-9ZENc76E-CE4s9qMu.js} +11 -11
  163. package/dist/assets/{TimeRangeSwitcher-DVB0vP5W-WYEIuuWg.js → TimeRangeSwitcher-Ccz3adIk-CsyW9hcg.js} +2 -2
  164. package/dist/assets/{TimeframeSwitcher-BmhH741X-DEVymh4n.js → TimeframeSwitcher-kDwlck-n-DwbTkb9h.js} +5 -5
  165. package/dist/assets/TimeframeSwitcherWithToggle-DGsAhHA2-B5P9Cxhq.js +31 -0
  166. package/dist/assets/{TopExCard-DBuo1QUF-DOV-VWcR.js → TopExCard-D_qKivD5-DDImpDJG.js} +7 -7
  167. package/dist/assets/{TopExDetailPage-CGPgaWRb-BdIi4GHq.js → TopExDetailPage-Diptq28B-D5TEFrQN.js} +7 -7
  168. package/dist/assets/TransactionDetailPage-6PT_A8cy-BA99-Eyl.js +912 -0
  169. package/dist/assets/{TransactionList-DP9cEVya-BXcbKAlV.js → TransactionList-B5HwjwQ_-CXKBG0MM.js} +10 -10
  170. package/dist/assets/{TransactionListBig-B_s15U1P-B6nmm19w.js → TransactionListBig-DIJl_L0P-B6wBk0g5.js} +16 -16
  171. package/dist/assets/{TransactionListPage-DpYLFl8A-CG4bgQSq.js → TransactionListPage-CLY5ad85-BnXLO91d.js} +4 -4
  172. package/dist/assets/{TransactionVendorDetailPage-DqqSV533-ClW_Ym1b.js → TransactionVendorDetailPage-Bm1jseAb-SlaBV7lN.js} +4 -4
  173. package/dist/assets/{TransferDrawerPage-CxdQzo0m-DJdXjena.js → TransferDrawerPage-C376Jj1t-CTODsEty.js} +31 -31
  174. package/dist/assets/{TreasuryOverviewPage-D7vqj60i-DqlHCc2-.js → TreasuryOverviewPage-9i9ft-2g-DXeo8ZrJ.js} +21 -21
  175. package/dist/assets/{TreasuryPromoPage-BuxEHMpT-CoWfKW9J.js → TreasuryPromoPage-CKUSAyi9-CWpKX4Ov.js} +10 -10
  176. package/dist/assets/{TreasurySetupPage-BIfbbeL3-D1Mjek99.js → TreasurySetupPage-Cor8zLR3-CBLdmPc2.js} +5 -5
  177. package/dist/assets/{TreasuryStatementsPage-BeUdQZBc-Byh46stc.js → TreasuryStatementsPage-CteWlPmm-gyjWv12T.js} +3 -3
  178. package/dist/assets/{TreasuryTaxLetterPage-uFRMjqLn-DqSDq6k1.js → TreasuryTaxLetterPage-CBeQAQFE-BUwspbw-.js} +3 -3
  179. package/dist/assets/{TreasuryTransferOrReviewPage-BWybwqhc-C3uU9hVX.js → TreasuryTransferOrReviewPage-CgochQAe-bc5ZSOJG.js} +37 -37
  180. package/dist/assets/{TrendChart-7kPgcETh-BaCfzFDE.js → TrendChart-BNjNpGGV-DeJ54QC4.js} +3 -3
  181. package/dist/assets/{TrendWithTransactions-DPby1I5u-DuRZBcAW.js → TrendWithTransactions-DLq6FRIX-CmF8BV30.js} +5 -5
  182. package/dist/assets/{UncategorizedAccountsMappingPage-DEkSWWRY-Dv2mcgjG.js → UncategorizedAccountsMappingPage-CfRZdUo4-D3rE1qoU.js} +8 -8
  183. package/dist/assets/{UnitIntegrationPage-B5yzIJDg-CjDfkeUr.js → UnitIntegrationPage-DmWneokh-DK7To6Ke.js} +3 -3
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-Deu0hM2I-DMqRpRdl.js → UploadAdditionalDocumentOverlay-Ck3jSIy3-B5jtbgfv.js} +8 -8
  185. package/dist/assets/{Vendor2FAPopup-DUyiI_-r-5dHx30Bc.js → Vendor2FAPopup-CpVKMC-V-DzVTm8mc.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-DycUU3MN-mmDLeV3K.js → VendorACHDetailsPage-CGZq9rHs-Cb3Eg4e2.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-B9pWIvXP-BYqLZBRP.js → VendorDetailPage-DjbJdkG0-BD_TM_IR.js} +17 -17
  188. package/dist/assets/{VendorDomesticWireDetailsPage-Cs35uQOp-Cg9TxdaS.js → VendorDomesticWireDetailsPage-D-m_AY6V-DSr1i1UN.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-BeuSWFCY-FB3D0rN0.js → VendorFiling1099EditablePage-BBQUHvZF-CQkAcjv9.js} +6 -6
  190. package/dist/assets/{VendorFirstReviewPage-ANhBsl69-DvP6Pv5V.js → VendorFirstReviewPage-BKiSfhh5-D6n53p2q.js} +12 -12
  191. package/dist/assets/{VendorInternationalWireDetailsPage-BShiEKaz-DZwsuWAH.js → VendorInternationalWireDetailsPage-CbiTxo4--51iz2iZc.js} +8 -8
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-B_NlK1ak-fUcmsjpu.js → VendorInternationalWireSwiftDetailsPage-gRVzJ9zM-BqqvVE2d.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-BclWgEaB-Dx-ETZud.js → VendorsAccountsSection-BvY35sKD-PIKLHY63.js} +2 -2
  194. package/dist/assets/{VerifyDevice-CRrOo66b-Bqzt75Zy.js → VerifyDevice-DvG46tbP-C_qTlqhh.js} +4 -4
  195. package/dist/assets/{VideoPopup-qS-ig_U0-CFnqbh5J.js → VideoPopup-BTi1tNaK-DDZF4fDp.js} +3 -3
  196. package/dist/assets/{WarningsDrawerPage-DgRtxLoa-BtAoBPQW.js → WarningsDrawerPage-CrY3Lv_X-CyET4uGb.js} +21 -21
  197. package/dist/assets/{ZeniAccountDetailPage-B66nIr0V-D0Vvqj6R.js → ZeniAccountDetailPage-D0Sp-9r0-BxhU3RD9.js} +24 -24
  198. package/dist/assets/{ZeniAccountListViewPage-CWhZKmoP-UtAi1p2f.js → ZeniAccountListViewPage-DE2S97vd-Cci7TkWe.js} +12 -12
  199. package/dist/assets/ZeniAccountNavBarPieces-D3E4bGUf-v477yzXX.js +14 -0
  200. package/dist/assets/{ZeniAccountPromoPage-C-oF3-HO-Dhnar7Lt.js → ZeniAccountPromoPage-qk4MGE20-D8g-1o6A.js} +21 -21
  201. package/dist/assets/{ZeniAccountSetupPage-DY-nCuiT-gbHJrTbG.js → ZeniAccountSetupPage-BvCOc6V4-SXAof7Nr.js} +3 -3
  202. package/dist/assets/{ZeniCopyright-rY1T9xhh-DuSeCVwe.js → ZeniCopyright-DZEJD4DK-DFCIndJ-.js} +1 -1
  203. package/dist/assets/ZeniTransferAmountSlider-CGrjDEO_-DqBN-dZT.js +63 -0
  204. package/dist/assets/{analyticsHelper-DUPAuOy2.js → analyticsHelper-BxXohuM3.js} +1 -1
  205. package/dist/assets/{analyticsHelper-BcJgRhqY-CuYHNkab.js → analyticsHelper-C4OJsqY1-DEUl6kM9.js} +1 -1
  206. package/dist/assets/{chartTypes-BoblEsVF-XjODWukX.js → chartTypes-4WPzsIf3-TZwbMJ8c.js} +1 -1
  207. package/dist/assets/{commonDimensions-CFd7y7qU-DRU-Xx_W.js → commonDimensions-Btr3Ruk2--EjhN8RD.js} +1 -1
  208. package/dist/assets/{detailCommon-MYixZ3RD-BU_WVLw2.js → detailCommon-BffITRe2-DyxxqlhA.js} +5 -5
  209. package/dist/assets/{downloadPdf-CgupyHRa-23YMr18r.js → downloadPdf-EaFUuw1_-CTrXJ5wG.js} +1 -1
  210. package/dist/assets/{index-Dg4A8nvL.js → index-B9FgmOrh.js} +1347 -1347
  211. package/dist/assets/{mapLoadingInProgressToTreeNode-B8Y_euQR-Lurb19iR.js → mapLoadingInProgressToTreeNode-Nh09VvTY-7rzf-GR1.js} +1 -1
  212. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-jBSc45Na-BxkTVZ8G.js → mapSectionWithAcOnlyToTreeNode-CqrS4-sA--1xO43Gq.js} +1 -1
  213. package/dist/assets/{mapSpacerToTreeNode-COy8gZAM-COWpkVf-.js → mapSpacerToTreeNode-BVsiguz2-Dg8tyVW2.js} +1 -1
  214. package/dist/assets/{mapTimeframeBalancesToTreeNode-BodkMcFj-B7W1kIkp.js → mapTimeframeBalancesToTreeNode-C6LIzL1r-CL44LvLk.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-DXla81BF-Cx9i4sqP.js → mapTimeframeBalancesToTreeNode-CHMw_ZJj-Bp4XrEqv.js} +1 -1
  216. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-XVJ2Hm74-DfeVdWNH.js → mapTimeframeHeaderLoadingInProgressToTreeNode-vhz8vVqo-Bzd7AJ3d.js} +1 -1
  217. package/dist/assets/{toCOABalancesWithID-CndsNNsv-CKK4tSuL.js → toCOABalancesWithID-vlVs7Gn4-ccOvypAU.js} +1 -1
  218. package/dist/assets/{toChartData-B9eYLI57-CNEoJSOd.js → toChartData-nXazR01S-D88QfXJq.js} +1 -1
  219. package/dist/assets/{treasuryColorHelper-D4iDeX95-D0czat0Y.js → treasuryColorHelper-DqciQwbz-CiEpGb56.js} +1 -1
  220. package/dist/assets/{uploadAttachment-C2I6mBBB-BB5ap_aT.js → uploadAttachment-BQCLr45m-C_KMpfLC.js} +9 -9
  221. package/dist/assets/{uploadReceipts-dxsKhm9I-f6XSvbix.js → uploadReceipts-dxsKhm9I-kOCmsgfk.js} +1 -1
  222. package/dist/index.html +1 -1
  223. package/package.json +3 -3
  224. package/dist/assets/BillPayApprovalRuleDetailPage-DyH2jp6G-DBnZXx-2.js +0 -27
  225. package/dist/assets/BillPayPromoPage-DGyWwW1t-BAGJEnpn.js +0 -84
  226. package/dist/assets/CardNumberSubText-B8CivrXd-Bv0oLYl_.js +0 -21
  227. package/dist/assets/ChargeCardPromoPage-BRkny-dl-D9_i54WA.js +0 -222
  228. package/dist/assets/ChargeCardUtils-D4KmVUMt-CZbHQ6K3.js +0 -1
  229. package/dist/assets/CheckDepositDrawerPage-BCIvt4pQ-Ds9p--_E.js +0 -206
  230. package/dist/assets/CustomerOnboardingContainerPage-BZzvupuA-KOUquQmH.js +0 -1
  231. package/dist/assets/DepositAccTransactionListPage-D4QcTw4n-8VgPk6Ib.js +0 -66
  232. package/dist/assets/ExpenseAutomationOverviewPage-Cg0sM_PI-94AIzN51.js +0 -222
  233. package/dist/assets/InsightsSection-DsO5tfQL-BFXwjc-s.js +0 -27
  234. package/dist/assets/LabeledDocumentField-By7zV2VD-DNFqIRCg.js +0 -41
  235. package/dist/assets/MagicLinkTitleSection-BZ9PbTY5-CljXn46a.js +0 -17
  236. package/dist/assets/NotificationsListConfig-BSBZHM3y--H3hUPl8.js +0 -1
  237. package/dist/assets/ReimbursementApprovalRuleDetailPage-DsTMXav9-CvbEeovQ.js +0 -26
  238. package/dist/assets/StatementsPage-cCluGN33-BaiT4gPd.js +0 -58
  239. package/dist/assets/TimeframeSwitcherWithToggle-B1bMIGal-BfV_webc.js +0 -31
  240. package/dist/assets/TransactionDetailPage-BUP-dxVE-BaqindUV.js +0 -912
  241. package/dist/assets/ZeniAccountNavBarPieces-C6MQhfnU-DOLMr0pF.js +0 -14
  242. package/dist/assets/ZeniTransferAmountSlider-Bh5zkWst-BY8RrzMr.js +0 -63
@@ -1,4 +1,4 @@
1
- import{a2 as b,j as t,hk as R,hl as _,e as F,M as O,bV as U,c as C,bX as N,bY as z,a as M,F as H,cj as J,m as T,cf as D,C as g,cg as G,g as A,q as X,n as Y,J as K,o as i,p as Q,s as B,t as Z,ap as ee}from"./index-Dg4A8nvL.js";import{b as c,n as f}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(B[3],B[2]),width:new g(300,420,420)},te=f.div`
1
+ import{a2 as b,j as t,hk as R,hl as _,e as F,B as O,bV as U,c as C,bX as N,bY as z,a as H,F as M,cj as G,l as T,cf as D,C as g,cg as K,g as A,p as J,m as X,K as Y,o as i,s as Q,q as B,r as Z,ap as ee}from"./index-B9FgmOrh.js";import{b as c,n as f}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(B[3],B[2]),width:new g(300,420,420)},te=f.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -12,7 +12,7 @@ import{a2 as b,j as t,hk as R,hl as _,e as F,M as O,bV as U,c as C,bX as N,bY as
12
12
  background-color: ${e=>e.theme.colors.grey3};
13
13
  min-height: 1px;
14
14
  max-height: 1px;
15
- `;function se({selectedIndustry:e,allIndustries:l,saveDetailsFetchState:o,incDate:n,onSubmitBusinessInfo:u,onCancel:s}){const{companyPassport:a,dateFormat:m,commonSetUp:{twoFactorAuthentication:d}}=O.getLocalizedStrings(),k=d.businessInfoTitle,I=d.businessInfoDescription,p=F(),v="business-info-form",x="companyIndustry",w="incDate",h=M({mode:"all",values:{[x]:{selectedOption:e,allOptions:l.map(r=>r.code)},[w]:n?.toDate()}}),$=h.handleSubmit(r=>{u?.(r[x].selectedOption??"",r[w])}),S=r=>l.find(y=>y.code===r)?.name??r;return t.jsx(H,{...h,children:t.jsx("form",{id:v,onSubmit:$,children:t.jsx(U,{formId:v,titleComponent:t.jsx(z,{children:k}),descriptionComponent:t.jsx(N,{children:I}),primaryButtonText:d.submit,secondaryButtonText:d.cancel,isLoading:o==="In-Progress",isEditPopup:!0,action:{onOkClick:()=>console.log(""),onCancelClick:s},children:t.jsxs(te,{windowSize:p,children:[t.jsx(J,{label:{label:a.companyIncInfo.incDate,width:V.labelWidth.value(p)},style:{paddingBottom:V.paddingBottom.valuePx(p),width:V.width.valuePx(p)},dateField:{name:w,placeholder:D(a.companyIncInfo.incDate),defaultValue:n,dateFormat:m.visual.defaultInput,maxDate:T.dateNow(),minDate:T.zeniDate("01 Jan 1900"),autoComplete:"off",registerOptions:{required:!0}},additionalInfoLabel:d.requireIncDate}),t.jsx(ie,{}),t.jsx(G,{label:{label:a.companyInfo.industry,width:V.smallLabelWidth.value(p)},style:{width:V.width.valuePx(p)},singleSelectField:{singleSelect:{getLabelForId:S,showTickMark:!1,alwaysShowEyeTooltip:!1,name:x,placeholder:D(a.companyInfo.industry),showValueEyeIcon:!1,showEyeIconOnSelect:!1},defaultValue:{selectedOption:e,allOptions:l?.map(r=>r.code)??[]},registerOptions:{required:!0,validate:r=>!!(r!=null&&r.selectedOption)}},errorInfoLabel:d.requireIndustry,isFunctional:!0})]})})})})}const ne=f(Q)`
15
+ `;function se({selectedIndustry:e,allIndustries:l,saveDetailsFetchState:o,incDate:n,onSubmitBusinessInfo:u,onCancel:s}){const{companyPassport:a,dateFormat:m,commonSetUp:{twoFactorAuthentication:d}}=O.getLocalizedStrings(),k=d.businessInfoTitle,I=d.businessInfoDescription,p=F(),v="business-info-form",x="companyIndustry",w="incDate",h=H({mode:"all",values:{[x]:{selectedOption:e,allOptions:l.map(r=>r.code)},[w]:n?.toDate()}}),$=h.handleSubmit(r=>{u?.(r[x].selectedOption??"",r[w])}),S=r=>l.find(y=>y.code===r)?.name??r;return t.jsx(M,{...h,children:t.jsx("form",{id:v,onSubmit:$,children:t.jsx(U,{formId:v,titleComponent:t.jsx(z,{children:k}),descriptionComponent:t.jsx(N,{children:I}),primaryButtonText:d.submit,secondaryButtonText:d.cancel,isLoading:o==="In-Progress",isEditPopup:!0,action:{onOkClick:()=>console.log(""),onCancelClick:s},children:t.jsxs(te,{windowSize:p,children:[t.jsx(G,{label:{label:a.companyIncInfo.incDate,width:V.labelWidth.value(p)},style:{paddingBottom:V.paddingBottom.valuePx(p),width:V.width.valuePx(p)},dateField:{name:w,placeholder:D(a.companyIncInfo.incDate),defaultValue:n,dateFormat:m.visual.defaultInput,maxDate:T.dateNow(),minDate:T.zeniDate("01 Jan 1900"),autoComplete:"off",registerOptions:{required:!0}},additionalInfoLabel:d.requireIncDate}),t.jsx(ie,{}),t.jsx(K,{label:{label:a.companyInfo.industry,width:V.smallLabelWidth.value(p)},style:{width:V.width.valuePx(p)},singleSelectField:{singleSelect:{getLabelForId:S,showTickMark:!1,alwaysShowEyeTooltip:!1,name:x,placeholder:D(a.companyInfo.industry),showValueEyeIcon:!1,showEyeIconOnSelect:!1},defaultValue:{selectedOption:e,allOptions:l?.map(r=>r.code)??[]},registerOptions:{required:!0,validate:r=>!!(r!=null&&r.selectedOption)}},errorInfoLabel:d.requireIndustry,isFunctional:!0})]})})})})}const ne=f(Q)`
16
16
  color: ${e=>e.theme.colors.hero};
17
17
  padding: 9px;
18
18
  margin: ${e=>e.windowSize==="small"?`${i.sp0} ${i.sp3} ${i.sp7} ${i.sp3}`:`${i.sp0} ${i.sp8} ${i.sp7} ${i.sp8}`};
@@ -64,4 +64,4 @@ import{a2 as b,j as t,hk as R,hl as _,e as F,M as O,bV as U,c as C,bX as N,bY as
64
64
  padding-top: ${i.sp3};
65
65
  position: absolute;
66
66
  bottom: 0;
67
- `;function de(e){const l=F(),o=O.getLocalizedStrings().commonSetUp.twoFactorAuthentication,n=e.businessVerificationSubmitState!=="In-Progress"&&(e.businessVerificationSubmitState==="Error"||e.businessVerificationStatus==="require_info"||e.businessVerificationStatus==null),u=n===!0?o.verificationFailed:o.verificationInProgress,s=n===!0?o.verificationError:e.businessVerificationSubmitState==="In-Progress"?"":o.submissionSuccessful,a=n?o.goToSettings:o.understood,m=()=>{n?e.action.onNavigateToSettings():e.action.onBackClick()};return t.jsx(re,{windowSize:l,role:"presentation",style:{background:A.overlayDark,...e.style},children:t.jsx(X,{onClickAway:()=>e.action.onCancelClick?.(),children:t.jsxs(ae,{windowSize:l,isEditPopup:!1,children:[t.jsx(ce,{isError:n,children:u}),s!==""?t.jsx(le,{children:s}):null,e.businessVerificationSubmitState==="In-Progress"?t.jsx(Y,{size:"Standard",start:!0,style:{marginTop:84}}):null,e.businessVerificationSubmitState!=="In-Progress"?t.jsxs(t.Fragment,{children:[t.jsx(ue,{}),t.jsx(L,{children:t.jsx(K,{variant:e.proceedButtonVariant??"primary",label:a,onClick:m,style:{width:134,whiteSpace:"nowrap"},loading:e.isLoading})})]}):t.jsx(L,{})]})})})}const ye=e=>{const{isUnitMigrationTOSRequired:l,isUnitMigrationRequired:o,officer:n,setupDetailsFetchState:u,onVerifyOtpSuccess:s}=e,a=b(e.setupDetailsFetchState),m=b(e.acceptUpdatedTOSFetchState.fetchState),d=b(n?.otpverificationStatus?.fetchState),k=b(e.businessVerificationSubmitState),I=b(e.businessVerificationStatus),p=b(e.officer?.sendOtpStatus.fetchState),[v,x]=c.useState(l===!0),[w,h]=c.useState(e.isListPage&&u==="Completed"&&(e.businessVerificationStatus==null||e.businessVerificationStatus==="pending_review"||e.businessVerificationStatus==="require_info")),[$,S]=c.useState(n?.isPhoneVerified===!1),[r,y]=c.useState(!1),[q,j]=c.useState(e.isNewCompanyIndustryVerified!==!0||e.incDate==null);return c.useEffect(()=>{m==="In-Progress"&&e.acceptUpdatedTOSFetchState?.fetchState==="Completed"&&(n?.isPhoneVerified===!1?S(!0):(e.isNewCompanyIndustryVerified!==!0||e.incDate==null)&&j(!0),x(!1))},[m,e.acceptUpdatedTOSFetchState,n,e.isNewCompanyIndustryVerified,e.incDate]),c.useEffect(()=>{d==="In-Progress"&&n?.otpverificationStatus?.fetchState==="Completed"&&(s?.(n?.officerType,n?.phone+""),e.isNewCompanyIndustryVerified!==!0||e.incDate==null?j(!0):h(!0),y(!1))},[d,s,n,e.isNewCompanyIndustryVerified,e.incDate]),c.useEffect(()=>{!e.isListPage&&k==="In-Progress"&&(e.businessVerificationSubmitState==="Completed"||e.businessVerificationSubmitState==="Error")&&h(!1)},[k,e.businessVerificationSubmitState,e.isListPage]),c.useEffect(()=>{I==="pending_review"&&e.businessVerificationStatus==="verified"&&h(!1)},[I,e.businessVerificationStatus]),c.useEffect(()=>{a==="In-Progress"&&u==="Completed"&&(n?.isPhoneVerified===!1&&S(!0),e.isListPage&&(e.businessVerificationStatus==null||e.businessVerificationStatus==="pending_review"||e.businessVerificationStatus==="require_info")&&h(!0))},[a,u,n,e.businessVerificationStatus,e.isListPage]),c.useEffect(()=>{p==="In-Progress"&&e.officer?.sendOtpStatus.fetchState==="Completed"&&(y(!0),S(!1))},[p,e.officer?.sendOtpStatus]),t.jsx(t.Fragment,{children:v===!0?t.jsx(oe,{...e}):o===!0&&r===!0?t.jsx(R,{showHelperText:!0,verifyOtpFetchState:e.officer?.otpverificationStatus.fetchState??"Not-Started",phoneNumber:e.officer?.phone??"",otpChallenge:e.officer?.otpChallenge,action:{onVerifyClick:e.onVerifyOtp,onCancelClick:()=>e.onBackClick(),onResendOtp:e.onResendOtp,onEditButtonClick:()=>{S(!0),y(!1)}}}):o===!0&&$===!0?t.jsx(_,{showHelperText:!0,phoneNumber:e.officer?.phone??"",sendOtpFetchState:e.officer?.sendOtpStatus.fetchState??"Not-Started",action:{onCancelClick:e.onBackClick,onGetCodeClick:P=>e.onGetOtp?.(P,e.officer?.officerType)}}):o===!0&&q===!0?t.jsx(se,{incDate:e.incDate,allIndustries:e.allIndustries??[],selectedIndustry:e.companyIndustry,saveDetailsFetchState:e.companyDetailsSaveState,onCancel:e.onBackClick,onSubmitBusinessInfo:(P,W)=>{e.officer!=null&&h(!0),e.onSubmitBusinessInfo?.(P,W,n?.officerType),j(!1)}}):w===!0?t.jsx(de,{businessVerificationStatus:e.businessVerificationStatus,businessVerificationSubmitState:e.businessVerificationSubmitState,action:{onNavigateToSettings:e.onNavigateToSettings,onBackClick:e.onBackClick}}):null})};export{ye as default};
67
+ `;function de(e){const l=F(),o=O.getLocalizedStrings().commonSetUp.twoFactorAuthentication,n=e.businessVerificationSubmitState!=="In-Progress"&&(e.businessVerificationSubmitState==="Error"||e.businessVerificationStatus==="require_info"||e.businessVerificationStatus==null),u=n===!0?o.verificationFailed:o.verificationInProgress,s=n===!0?o.verificationError:e.businessVerificationSubmitState==="In-Progress"?"":o.submissionSuccessful,a=n?o.goToSettings:o.understood,m=()=>{n?e.action.onNavigateToSettings():e.action.onBackClick()};return t.jsx(re,{windowSize:l,role:"presentation",style:{background:A.overlayDark,...e.style},children:t.jsx(J,{onClickAway:()=>e.action.onCancelClick?.(),children:t.jsxs(ae,{windowSize:l,isEditPopup:!1,children:[t.jsx(ce,{isError:n,children:u}),s!==""?t.jsx(le,{children:s}):null,e.businessVerificationSubmitState==="In-Progress"?t.jsx(X,{size:"Standard",start:!0,style:{marginTop:84}}):null,e.businessVerificationSubmitState!=="In-Progress"?t.jsxs(t.Fragment,{children:[t.jsx(ue,{}),t.jsx(L,{children:t.jsx(Y,{variant:e.proceedButtonVariant??"primary",label:a,onClick:m,style:{width:134,whiteSpace:"nowrap"},loading:e.isLoading})})]}):t.jsx(L,{})]})})})}const ye=e=>{const{isUnitMigrationTOSRequired:l,isUnitMigrationRequired:o,officer:n,setupDetailsFetchState:u,onVerifyOtpSuccess:s}=e,a=b(e.setupDetailsFetchState),m=b(e.acceptUpdatedTOSFetchState.fetchState),d=b(n?.otpverificationStatus?.fetchState),k=b(e.businessVerificationSubmitState),I=b(e.businessVerificationStatus),p=b(e.officer?.sendOtpStatus.fetchState),[v,x]=c.useState(l===!0),[w,h]=c.useState(e.isListPage&&u==="Completed"&&(e.businessVerificationStatus==null||e.businessVerificationStatus==="pending_review"||e.businessVerificationStatus==="require_info")),[$,S]=c.useState(n?.isPhoneVerified===!1),[r,y]=c.useState(!1),[q,j]=c.useState(e.isNewCompanyIndustryVerified!==!0||e.incDate==null);return c.useEffect(()=>{m==="In-Progress"&&e.acceptUpdatedTOSFetchState?.fetchState==="Completed"&&(n?.isPhoneVerified===!1?S(!0):(e.isNewCompanyIndustryVerified!==!0||e.incDate==null)&&j(!0),x(!1))},[m,e.acceptUpdatedTOSFetchState,n,e.isNewCompanyIndustryVerified,e.incDate]),c.useEffect(()=>{d==="In-Progress"&&n?.otpverificationStatus?.fetchState==="Completed"&&(s?.(n?.officerType,n?.phone+""),e.isNewCompanyIndustryVerified!==!0||e.incDate==null?j(!0):h(!0),y(!1))},[d,s,n,e.isNewCompanyIndustryVerified,e.incDate]),c.useEffect(()=>{!e.isListPage&&k==="In-Progress"&&(e.businessVerificationSubmitState==="Completed"||e.businessVerificationSubmitState==="Error")&&h(!1)},[k,e.businessVerificationSubmitState,e.isListPage]),c.useEffect(()=>{I==="pending_review"&&e.businessVerificationStatus==="verified"&&h(!1)},[I,e.businessVerificationStatus]),c.useEffect(()=>{a==="In-Progress"&&u==="Completed"&&(n?.isPhoneVerified===!1&&S(!0),e.isListPage&&(e.businessVerificationStatus==null||e.businessVerificationStatus==="pending_review"||e.businessVerificationStatus==="require_info")&&h(!0))},[a,u,n,e.businessVerificationStatus,e.isListPage]),c.useEffect(()=>{p==="In-Progress"&&e.officer?.sendOtpStatus.fetchState==="Completed"&&(y(!0),S(!1))},[p,e.officer?.sendOtpStatus]),t.jsx(t.Fragment,{children:v===!0?t.jsx(oe,{...e}):o===!0&&r===!0?t.jsx(R,{showHelperText:!0,verifyOtpFetchState:e.officer?.otpverificationStatus.fetchState??"Not-Started",phoneNumber:e.officer?.phone??"",otpChallenge:e.officer?.otpChallenge,action:{onVerifyClick:e.onVerifyOtp,onCancelClick:()=>e.onBackClick(),onResendOtp:e.onResendOtp,onEditButtonClick:()=>{S(!0),y(!1)}}}):o===!0&&$===!0?t.jsx(_,{showHelperText:!0,phoneNumber:e.officer?.phone??"",sendOtpFetchState:e.officer?.sendOtpStatus.fetchState??"Not-Started",action:{onCancelClick:e.onBackClick,onGetCodeClick:P=>e.onGetOtp?.(P,e.officer?.officerType)}}):o===!0&&q===!0?t.jsx(se,{incDate:e.incDate,allIndustries:e.allIndustries??[],selectedIndustry:e.companyIndustry,saveDetailsFetchState:e.companyDetailsSaveState,onCancel:e.onBackClick,onSubmitBusinessInfo:(P,W)=>{e.officer!=null&&h(!0),e.onSubmitBusinessInfo?.(P,W,n?.officerType),j(!1)}}):w===!0?t.jsx(de,{businessVerificationStatus:e.businessVerificationStatus,businessVerificationSubmitState:e.businessVerificationSubmitState,action:{onNavigateToSettings:e.onNavigateToSettings,onBackClick:e.onBackClick}}):null})};export{ye as default};
@@ -1,22 +1,22 @@
1
- import{a as R,fg as x,a2 as U,m as A,e as W,M as _,j as i,ca as q,F as G,$ as J,fh as H,o as a,g as K,ck as Q,a4 as X,C as y,a3 as Y,c7 as Z,ap as ee,ao as te,s as c}from"./index-Dg4A8nvL.js";import{b as m,n as o}from"./vendor-rkTZJa59.js";const F={marginRight:new y(c[3],c[8]),marginLeft:new y(c[3],c[8]),height:new y(c[5],62)},u="additionalDocumentsForm",s="ssnCard";function ue(e){const{filesEndPoint:w,authParams:E,companyOfficer:t,updateStatus:f,onClose:$,onEditFileName:I,onDeleteFile:v,updateFilesEntity:D,onSendForVerificationClick:P,onCompanyOfficerUpdated:C}=e,n=R({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[z,S]=m.useState(!1),[N,O]=m.useState(!1),b=U(f.fetchState),j=t?.deleteFileStatusById??{},B=t?.updateFileStatusById??{},T=Object.values(j??{}).filter(l=>l!=null),L=A.reduceAllFetchState(T);m.useEffect(()=>{b==="In-Progress"&&f.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}})},[b,f,n,t?.additionalFiles]);const r=W(),h=_.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=h,V=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,k=n.handleSubmit(()=>{L.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),M=async(l,p)=>{const d=p[u].front;l.includes("front")&&d?.fileId!=null?(C?.(t?.officerType??"Officer_1",[d?.fileId]),S(!0)):S(!1)};return m.useEffect(()=>{const l=n.watch((p,{name:d})=>{d!=null&&p!=null&&q(()=>M(d,p))});return()=>{l.unsubscribe()}}),i.jsx(G,{...n,children:i.jsxs("form",{id:u,onSubmit:k,children:[i.jsxs(re,{size:r,children:[i.jsx(le,{size:r,children:i.jsx(ne,{size:r,onClick:$,"data-testid":J("upload-additional-documents-close",u)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(oe,{children:i.jsx(se,{children:V})}),i.jsx(H,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:Q,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${K.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:x(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:B,filesEndPoint:w,authParams:E,hasError:N,onEditFileName:I,onDeleteFile:v,updateFilesEntity:D,onFileSizeError:l=>O(l),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),z?i.jsx(X,{formId:u,primaryBtn:{label:h.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:f.fetchState==="In-Progress"},cancelBtn:{label:h.cancel,style:{width:r==="small"?"auto":"181px"},onClick:$},style:{position:"absolute",width:"100%"}}):null]})})}const ie=o(Z)`
1
+ import{a as M,fg as x,a2 as U,l as q,e as A,B as W,j as i,ca as _,F as G,$ as Q,fh as H,o as a,g as J,ck as K,a4 as X,C as y,a3 as Y,c7 as Z,ap as ee,ao as te,q as c}from"./index-B9FgmOrh.js";import{b as m,n as l}from"./vendor-rkTZJa59.js";const F={marginRight:new y(c[3],c[8]),marginLeft:new y(c[3],c[8]),height:new y(c[5],62)},u="additionalDocumentsForm",s="ssnCard";function ue(e){const{filesEndPoint:w,authParams:E,companyOfficer:t,updateStatus:f,onClose:$,onEditFileName:I,onDeleteFile:v,updateFilesEntity:D,onSendForVerificationClick:P,onCompanyOfficerUpdated:C}=e,n=M({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[z,S]=m.useState(!1),[N,B]=m.useState(!1),b=U(f.fetchState),j=t?.deleteFileStatusById??{},O=t?.updateFileStatusById??{},T=Object.values(j??{}).filter(o=>o!=null),L=q.reduceAllFetchState(T);m.useEffect(()=>{b==="In-Progress"&&f.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}})},[b,f,n,t?.additionalFiles]);const r=A(),h=W.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=h,V=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,k=n.handleSubmit(()=>{L.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),R=async(o,p)=>{const d=p[u].front;o.includes("front")&&d?.fileId!=null?(C?.(t?.officerType??"Officer_1",[d?.fileId]),S(!0)):S(!1)};return m.useEffect(()=>{const o=n.watch((p,{name:d})=>{d!=null&&p!=null&&_(()=>R(d,p))});return()=>{o.unsubscribe()}}),i.jsx(G,{...n,children:i.jsxs("form",{id:u,onSubmit:k,children:[i.jsxs(re,{size:r,children:[i.jsx(oe,{size:r,children:i.jsx(ne,{size:r,onClick:$,"data-testid":Q("upload-additional-documents-close",u)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(le,{children:i.jsx(se,{children:V})}),i.jsx(H,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:K,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${J.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:x(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:O,filesEndPoint:w,authParams:E,hasError:N,onEditFileName:I,onDeleteFile:v,updateFilesEntity:D,onFileSizeError:o=>B(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),z?i.jsx(X,{formId:u,primaryBtn:{label:h.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:f.fetchState==="In-Progress"},cancelBtn:{label:h.cancel,style:{width:r==="small"?"auto":"181px"},onClick:$},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(Z)`
2
2
  margin-top: 19px;
3
3
  color: ${e=>e.theme.colors.primary};
4
4
  margin-bottom: ${a.sp2};
5
5
  display: flex;
6
6
  justify-content: flex-start;
7
- `,ae=o(ee)`
7
+ `,ae=l(ee)`
8
8
  color: ${e=>e.theme.colors.hero};
9
9
  white-space: pre-line;
10
10
  display: flex;
11
11
  justify-content: flex-start;
12
- `,se=o(te)`
12
+ `,se=l(te)`
13
13
  color: ${e=>e.theme.colors.primary};
14
14
  white-space: pre-line;
15
- `,oe=o.div`
15
+ `,le=l.div`
16
16
  padding: ${a.sp3} ${a.sp0};
17
- `,le=o.div`
17
+ `,oe=l.div`
18
18
  height: ${e=>F.height.valuePx(e.size)};
19
- `,ne=o(Y)`
19
+ `,ne=l(Y)`
20
20
  cursor: pointer;
21
21
  width: ${a.sp4};
22
22
  height: ${a.sp4};
@@ -27,10 +27,10 @@ import{a as R,fg as x,a2 as U,m as A,e as W,M as _,j as i,ca as q,F as G,$ as J,
27
27
  &:hover {
28
28
  color: ${e=>e.theme.colors.primary};
29
29
  }
30
- `,re=o.div`
30
+ `,re=l.div`
31
31
  margin-right: ${e=>F.marginRight.valuePx(e.size)};
32
32
  margin-left: ${e=>F.marginLeft.valuePx(e.size)};
33
- `,de=o.div`
33
+ `,de=l.div`
34
34
  padding: ${a.sp3} ${a.sp0};
35
35
  display: flex;
36
36
  flex-direction: column;
@@ -1 +1 @@
1
- import{a2 as o,M as k,j as i,hk as v,hl as y}from"./index-Dg4A8nvL.js";import{b as e}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const G=({vendorViewDetails:S,isExpressPayPage:n,onSaveVendor:l,onGetOtp:h,onResendOtp:d,onVerifyOtp:m,onVerifyOtpSuccess:c})=>{const{loggedInUserVerification:t,editVendorState:g,newVendorState:V}=S,r=Object.assign({},g??V),[C,s]=e.useState(!1),[O,a]=e.useState(t.initiateVerification===!0),p=o(r?.saveStatus?.fetchState),x=o(t.userVerificationStatus.fetchState),f=o(t.otpVerificationStatus?.fetchState),u=o(t.sendOtpStatus.fetchState),E=k.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return e.useEffect(()=>{p==="In-Progress"&&r?.saveStatus?.fetchState==="Error"&&t.initiateVerification===!0&&a(!0)},[r,t,p]),e.useEffect(()=>{x==="In-Progress"&&t.userVerificationStatus.fetchState==="Completed"&&(s(!1),l())},[t.userVerificationStatus]),e.useEffect(()=>{f==="In-Progress"&&t.otpVerificationStatus?.fetchState==="Completed"&&c?.(t.userId??"",t.phone??"",t.otpChallenge??"")},[f,t,c]),e.useEffect(()=>{u==="In-Progress"&&t.sendOtpStatus.fetchState==="Completed"&&(s(!0),a(!1))},[u,t.sendOtpStatus.fetchState]),i.jsx(i.Fragment,{children:C===!0?i.jsx(v,{showHelperText:!n,verifyOtpFetchState:t.otpVerificationStatus.fetchState,phoneNumber:t.phone??"",otpChallenge:t.otpChallenge,action:{onVerifyClick:m,onCancelClick:()=>s(!1),onResendOtp:d,onEditButtonClick:()=>{a(!0),s(!1)}}}):O===!0?i.jsx(y,{showHelperText:!n,phoneNumber:t.phone??"",sendOtpFetchState:t.sendOtpStatus.fetchState,description:n?E:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:P=>h?.(P)}}):null})};export{G as default};
1
+ import{a2 as o,B as k,j as i,hk as v,hl as y}from"./index-B9FgmOrh.js";import{b as e}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const B=({vendorViewDetails:S,isExpressPayPage:n,onSaveVendor:l,onGetOtp:h,onResendOtp:d,onVerifyOtp:m,onVerifyOtpSuccess:c})=>{const{loggedInUserVerification:t,editVendorState:g,newVendorState:V}=S,r=Object.assign({},g??V),[C,s]=e.useState(!1),[O,a]=e.useState(t.initiateVerification===!0),p=o(r?.saveStatus?.fetchState),x=o(t.userVerificationStatus.fetchState),f=o(t.otpVerificationStatus?.fetchState),u=o(t.sendOtpStatus.fetchState),E=k.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return e.useEffect(()=>{p==="In-Progress"&&r?.saveStatus?.fetchState==="Error"&&t.initiateVerification===!0&&a(!0)},[r,t,p]),e.useEffect(()=>{x==="In-Progress"&&t.userVerificationStatus.fetchState==="Completed"&&(s(!1),l())},[t.userVerificationStatus]),e.useEffect(()=>{f==="In-Progress"&&t.otpVerificationStatus?.fetchState==="Completed"&&c?.(t.userId??"",t.phone??"",t.otpChallenge??"")},[f,t,c]),e.useEffect(()=>{u==="In-Progress"&&t.sendOtpStatus.fetchState==="Completed"&&(s(!0),a(!1))},[u,t.sendOtpStatus.fetchState]),i.jsx(i.Fragment,{children:C===!0?i.jsx(v,{showHelperText:!n,verifyOtpFetchState:t.otpVerificationStatus.fetchState,phoneNumber:t.phone??"",otpChallenge:t.otpChallenge,action:{onVerifyClick:m,onCancelClick:()=>s(!1),onResendOtp:d,onEditButtonClick:()=>{a(!0),s(!1)}}}):O===!0?i.jsx(y,{showHelperText:!n,phoneNumber:t.phone??"",sendOtpFetchState:t.sendOtpStatus.fetchState,description:n?E:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:P=>h?.(P)}}):null})};export{B as default};
@@ -1 +1 @@
1
- import{j as u}from"./index-Dg4A8nvL.js";import{b as d}from"./vendor-rkTZJa59.js";import{f as k}from"./ACHDetailsPage-DZv7I3Jm-YQnMOYp1.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./BankAccountWarningSection-KznYA-cf-DOVsFGdl.js";import"./MagicLinkTitleSection-BZ9PbTY5-CljXn46a.js";import"./BankAccountSection-jRnEB-Ut-5BYJoDk4.js";const R=({vendorViewDetails:t,bankAccountContext:e,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})=>{const{bankAccountCreationState:o,bankNameByRouting:c,bankAccountToCreate:m,fetchBankNameByRoutingStatus:p}=t;return d.useEffect(()=>{(e==="vendor"&&o?.fetchState==="Completed"||t.editVendorState?.saveStatus.fetchState==="Completed"&&e!=="express-pay")&&a()},[o,t.editVendorState?.saveStatus.fetchState,e,a]),u.jsx(k,{bankAccountToCreate:m,bankAccountCreationState:o,bankNameByRouting:c,fetchBankNameByRoutingStatus:p,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})};export{R as default};
1
+ import{j as u}from"./index-B9FgmOrh.js";import{b as d}from"./vendor-rkTZJa59.js";import{f as k}from"./ACHDetailsPage-Dnaajiit-DPQvVIrY.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./BankAccountWarningSection-EhX6uury-BPk65Kcm.js";import"./MagicLinkTitleSection-BVmJnjIM-CauR-pM0.js";import"./BankAccountSection-Cb6aph-a-DuZ4WmNC.js";const R=({vendorViewDetails:t,bankAccountContext:e,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})=>{const{bankAccountCreationState:o,bankNameByRouting:c,bankAccountToCreate:m,fetchBankNameByRoutingStatus:p}=t;return d.useEffect(()=>{(e==="vendor"&&o?.fetchState==="Completed"||t.editVendorState?.saveStatus.fetchState==="Completed"&&e!=="express-pay")&&a()},[o,t.editVendorState?.saveStatus.fetchState,e,a]),u.jsx(k,{bankAccountToCreate:m,bankAccountCreationState:o,bankNameByRouting:c,fetchBankNameByRoutingStatus:p,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})};export{R as default};
@@ -1,4 +1,4 @@
1
- import{M as N,u as Re,e as ne,C as g,N as be,m as se,cc as xt,a as yt,gA as Ae,gB as Be,gC as Ee,gD as fe,gE as bt,a8 as ft,ca as wt,j as t,aX as Ct,F as $t,gF as St,gG as ue,s as l,cb as Dt,a4 as jt,o,bh as S,cn as Lt,ge as we,gH as Tt,cd as Vt,ce as kt,cf as Ot,gI as It,fK as Pt,cl as Ft,gJ as Mt,gK as zt,g as z,dr as Nt,dq as _t,cz as Wt,ab as de,am as Ue,i as qe,ds as Ht,af as Rt,gL as At,gM as Bt,p as Et,gN as Ut,bO as Ye,gO as qt,X as Ce,h as Xe}from"./index-Dg4A8nvL.js";import{b as $,n as a,j as Yt}from"./vendor-rkTZJa59.js";import{k as Xt}from"./SubTabSwitcher-BfYlJKJ6-B-F59cPN.js";import{f as Gt}from"./TransactionList-DP9cEVya-BXcbKAlV.js";import{R as Jt}from"./TrendWithTransactions-DPby1I5u-DuRZBcAW.js";import{o as Kt,t as Qt}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import{C as Zt}from"./LabeledAddressValueField-DLou-2Lm-hN3Yi48B.js";import{Y as es}from"./LabeledDropDownFormattedTextField-BF37XlAJ-BaQcEb_i.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./BoxItem-CIOib-WX-DEJIIppW.js";import"./commonDimensions-CFd7y7qU-DRU-Xx_W.js";import"./TrendChart-7kPgcETh-BaCfzFDE.js";import"./chartTypes-BoblEsVF-XjODWukX.js";import"./toCOABalancesWithID-CndsNNsv-CKK4tSuL.js";import"./toChartData-B9eYLI57-CNEoJSOd.js";import"./NoDataChart-Dg1_sU_O-BSOy8Xqm.js";import"./InsightsSection-DsO5tfQL-BFXwjc-s.js";import"./NavigationDots-CI0cjpQA-DLC_4Z2x.js";const ts=a.div`
1
+ import{B as N,u as Re,e as ne,C as g,O as fe,l as se,cc as xt,a as yt,gA as Ae,gB as Be,gC as Ee,gD as be,gE as ft,a8 as bt,ca as wt,j as t,aX as Ct,F as $t,gF as St,gG as ue,q as l,cb as Dt,a4 as jt,o,bh as S,cn as Lt,ge as we,gH as Tt,cd as Vt,ce as kt,cf as Ot,gI as It,fK as Pt,cl as Ft,gJ as zt,gK as Mt,g as M,dr as Nt,dq as _t,cz as Wt,ab as de,am as Ue,w as qe,ds as Ht,af as Rt,gL as At,gM as Bt,s as Et,gN as Ut,bO as Ye,gO as qt,J as Ce,y as Je}from"./index-B9FgmOrh.js";import{b as $,n as a,j as Yt}from"./vendor-rkTZJa59.js";import{k as Jt}from"./SubTabSwitcher-BZxGbsNY-DslvQO7v.js";import{f as Gt}from"./TransactionList-B5HwjwQ_-CXKBG0MM.js";import{R as Kt}from"./TrendWithTransactions-DLq6FRIX-CmF8BV30.js";import{o as Qt,t as Xt}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import{C as Zt}from"./LabeledAddressValueField-DlUmtYXY-Cs_gnXQQ.js";import{Y as es}from"./LabeledDropDownFormattedTextField-g9EUyLAN-C6fgQW4J.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./BoxItem-7efiVHrX-gIWD7SzU.js";import"./commonDimensions-Btr3Ruk2--EjhN8RD.js";import"./TrendChart-BNjNpGGV-DeJ54QC4.js";import"./chartTypes-4WPzsIf3-TZwbMJ8c.js";import"./toCOABalancesWithID-vlVs7Gn4-ccOvypAU.js";import"./toChartData-nXazR01S-D88QfXJq.js";import"./NoDataChart-DWgj32LB-BPsCyU00.js";import"./InsightsSection-DLeJHy_5-CQC3yXku.js";import"./NavigationDots-XsH5foe--BOOtSigy.js";const ts=a.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: center;
@@ -37,7 +37,7 @@ import{M as N,u as Re,e as ne,C as g,N as be,m as se,cc as xt,a as yt,gA as Ae,g
37
37
  padding: ${e=>`${O.pageHeaderVerticalPadding.valuePx(e.size)} ${O.pageHeaderHorizontalPadding.valuePx(e.size)}`};
38
38
  display: flex;
39
39
  justify-content: space-between;
40
- box-shadow: ${o.sp0} 2px ${o.sp1} ${z.boxShadowElevation};
40
+ box-shadow: ${o.sp0} 2px ${o.sp1} ${M.boxShadowElevation};
41
41
  flex-direction: ${e=>e.isMobile===!0?"column":"row"};
42
42
  align-items: ${e=>e.isMobile?"flex-start":"center"};
43
43
  row-gap: ${o.sp3};
@@ -54,16 +54,16 @@ import{M as N,u as Re,e as ne,C as g,N as be,m as se,cc as xt,a as yt,gA as Ae,g
54
54
  column-gap: ${o.sp3};
55
55
  align-items: center;
56
56
  max-width: ${e=>e.isMobile===!1?"50%":"unset"};
57
- `,ce=a(Xe)`
57
+ `,ce=a(Je)`
58
58
  ${e=>`${Ge.spendDuration.style(e.windowSize)}`};
59
59
  color: ${e=>e.theme.colors.hero};
60
- `,pe=a(Xe)`
60
+ `,pe=a(Je)`
61
61
  ${e=>`${Ge.spendValue.style(e.windowSize)}`};
62
62
  color: ${e=>e.theme.colors.primary};
63
63
  text-align: ${e=>e.isMobile===!0?"left":"right"};
64
64
  `,cs=a.div`
65
65
  background-color: ${e=>e.theme.colors.graphColor34Light};
66
- color: ${z.importantDark};
66
+ color: ${M.importantDark};
67
67
  padding: ${o.sp1} 12px;
68
68
  border-radius: 50px;
69
69
  display: flex;
@@ -71,11 +71,11 @@ import{M as N,u as Re,e as ne,C as g,N as be,m as se,cc as xt,a as yt,gA as Ae,g
71
71
  column-gap: ${o.sp1};
72
72
  cursor: pointer;
73
73
  svg {
74
- color: ${z.importantDark};
74
+ color: ${M.importantDark};
75
75
  }
76
76
  `,ps=a.div`
77
- background-color: ${z.successLight};
78
- color: ${z.successDark};
77
+ background-color: ${M.successLight};
78
+ color: ${M.successDark};
79
79
  padding: ${o.sp1} 12px;
80
80
  border-radius: 50px;
81
81
  display: flex;
@@ -84,7 +84,7 @@ import{M as N,u as Re,e as ne,C as g,N as be,m as se,cc as xt,a as yt,gA as Ae,g
84
84
  cursor: pointer;
85
85
 
86
86
  svg {
87
- color: ${z.successDark};
87
+ color: ${M.successDark};
88
88
  }
89
89
  `,ms=a.div`
90
90
  background-color: ${e=>e.theme.colors.grey3};
@@ -112,16 +112,16 @@ import{M as N,u as Re,e as ne,C as g,N as be,m as se,cc as xt,a as yt,gA as Ae,g
112
112
  `,gs=a.div`
113
113
  display: flex;
114
114
  justify-content: ${e=>e.isMobile?"flex-start":"flex-end"};
115
- `,he=a.div``,us=({spend:e,vendorName:s,vendorLogo:c,isPageLoading:i,isSpendTrendLoading:n,onPercentChangeClick:p})=>{const m=ne(),f=N.getLocalizedStrings().spendManagement.billPay.vendorCreation.vendorDetails.spends,h=m==="small"||m==="medium-compact",w=(D,u)=>u==null?null:D==="increased"?t.jsxs(cs,{onClick:p,children:[t.jsx(Kt,{width:o.sp3,height:o.sp3}),t.jsx(me,{children:u})]}):D==="decreased"?t.jsxs(ps,{onClick:p,children:[t.jsx(Qt,{width:o.sp3,height:o.sp3}),t.jsx(me,{children:u})]}):t.jsx(ms,{onClick:p,children:t.jsxs(me,{children:[u,"%"]})}),R=()=>i===!0?t.jsxs(Se,{isMobile:h,children:[t.jsx(Nt,{width:l[6],height:l[6]}),t.jsx(S,{width:140,height:l[6]}),t.jsx(S,{width:70,height:l[5]})]}):t.jsxs(Se,{isMobile:h,children:[c!=null?t.jsxs(Le,{children:[t.jsx(_t,{photoUrl:c.toString(),styles:{width:O.logoWidth.valuePx(m),height:O.logoHeight.valuePx(m)}}),h?t.jsx(je,{children:s}):t.jsx(De,{children:s})]}):t.jsxs(Le,{children:[t.jsx(Wt,{name:s,size:o.sp6}),h?t.jsx(je,{children:s}):t.jsx(De,{children:s})]}),w(e.changeType,e.percentChange)]}),A=()=>n||i?t.jsx($e,{size:m,isMobile:h,children:[...Array(3)].map((D,u)=>t.jsxs(hs,{children:[t.jsx(S,{width:O.spendTrendHeadingSkeletonWidth.value(m),height:l[4]}),t.jsx(gs,{isMobile:h,children:t.jsx(S,{width:O.spendTrendHeadingSkeletonWidth.value(m)/2,height:l[4]})})]},u))}):t.jsxs($e,{size:m,isMobile:h,children:[t.jsxs(he,{children:[t.jsx(ce,{windowSize:m,isMobile:h,children:f.last30Days}),t.jsx(pe,{windowSize:m,isMobile:h,children:de("0,0.[00]",e.last30DaysSpend,e.currencySymbol)})]}),t.jsxs(he,{children:[t.jsx(ce,{windowSize:m,isMobile:h,children:f.last90Days}),t.jsx(pe,{windowSize:m,isMobile:h,children:de("0,0.[00]",e.last90DaysSpend,e.currencySymbol)})]}),t.jsxs(he,{children:[t.jsx(ce,{windowSize:m,isMobile:h,children:f.ytdSpend}),t.jsx(pe,{windowSize:m,isMobile:h,children:de("0,0.[00]",e.yearToDateSpend,e.currencySymbol)})]})]});return t.jsxs(ds,{isMobile:h,size:m,children:[R(),A()]})},I={labelWidth:new g(120,145,270),largeLabelWidth:new g(130,200,332),largeTinLabelWidth:new g(130,200,276),controlWidth:new g(110,145,160),labelMarginLeft:new g(l[3],l[4]),labelMarginTop:new g(l[2],l[3]),labelMarginBottom:new g(l[2],l[3])},U=(e,s)=>`${e}.${s}`,vs=N.getLocalizedStrings().spendManagement,oe=N.getLocalizedStrings().companyPassport,q=vs.billPay.vendorCreation,L=N.getLocalizedStrings().common,xs=({vendorTypeList:e=[],isDisabled:s,sectionId:c,selectedVendorDetails:i,onAddressClick:n})=>{const p=ne(),m=I.labelWidth.value(p),f=I.largeLabelWidth.value(p),h=I.largeTinLabelWidth.value(p),w=I.controlWidth.value(p);return t.jsxs(ys,{children:[t.jsx(bs,{children:q.vendorDetails.titleFor1099Section}),t.jsxs(fs,{children:[t.jsx(Vt,{isDisabled:s,label:{label:oe.companyInfo.legalName,width:m},text:{type:"text",style:{width:w},name:U(c,"legalName"),placeholder:Ot(oe.companyInfo.legalName),defaultValue:i.vendorBasic.legalName,autoComplete:"new-password",options:{required:!!i.vendorBasic.legalName,pattern:kt}},style:{width:"100%"}}),t.jsx(ge,{}),t.jsxs(Te,{children:[t.jsx(Cs,{width:f,windowSize:p,children:q.vendorDetails.vendorType}),t.jsx(ws,{size:p,children:t.jsx(It,{name:U(c,"vendorType"),value:{allTypes:e,selectedType:i.vendorDetailLocalData?.vendorType},placeholderLabel:q.placeholders.type})})]}),t.jsx(ge,{}),t.jsx(Te,{children:t.jsx(es,{name:U(c,"tinType"),menuPlacement:"auto",style:{height:o.sp6,width:"100%",marginLeft:o.sp4},dropdownStyle:{width:"40%"},defaultValue:{dropDownValue:i.vendorDetailLocalData?.tin?.type??L.strings.empty,dropDownList:[{code:L.texts.ein,label:L.texts.ein.toUpperCase()},{code:L.texts.ssn,label:L.texts.ssn.toUpperCase()}]},registerOptions:{required:!1},label:{width:h},placeholderLabel:q.placeholders.tinType,formattedText:{type:"text",name:U(c,"tinValue"),placeholder:q.placeholders.tinValue,format:i.vendorDetailLocalData?.tin?.type===L.texts.ssn?Mt:zt,registerOptions:{required:!!i.vendorDetailLocalData?.tin?.type,pattern:i.vendorDetailLocalData?.tin?.type===L.texts.ssn?Pt:Ft},style:{width:"100%",height:o.sp6},defaultValue:i.vendorDetailLocalData?.tin?.value??L.strings.empty,maxLength:9,allowLeadingZeros:!0,autoComplete:"new-password",isDisabled:i.vendorDetailLocalData?.tin?.type===null?"disabled":void 0}})}),t.jsx(ge,{}),t.jsx(Zt,{isDisabled:s,label:{label:oe.companyInfo.address,width:m},addressValueField:{name:U(c,"address"),placeholder:oe.address.titleAdd,defaultValue:i.vendorNewAddressStatus?.addressToCreate,onClick:()=>n("vendor_address",i.vendorAddress?.addressId)},showAdditionalInfoLabel:!1,style:{width:"100%"}})]})]})},ys=a.div`
115
+ `,he=a.div``,us=({spend:e,vendorName:s,vendorLogo:c,isPageLoading:i,isSpendTrendLoading:n,onPercentChangeClick:p})=>{const m=ne(),b=N.getLocalizedStrings().spendManagement.billPay.vendorCreation.vendorDetails.spends,h=m==="small"||m==="medium-compact",w=(D,u)=>u==null?null:D==="increased"?t.jsxs(cs,{onClick:p,children:[t.jsx(Qt,{width:o.sp3,height:o.sp3}),t.jsx(me,{children:u})]}):D==="decreased"?t.jsxs(ps,{onClick:p,children:[t.jsx(Xt,{width:o.sp3,height:o.sp3}),t.jsx(me,{children:u})]}):t.jsx(ms,{onClick:p,children:t.jsxs(me,{children:[u,"%"]})}),R=()=>i===!0?t.jsxs(Se,{isMobile:h,children:[t.jsx(Nt,{width:l[6],height:l[6]}),t.jsx(S,{width:140,height:l[6]}),t.jsx(S,{width:70,height:l[5]})]}):t.jsxs(Se,{isMobile:h,children:[c!=null?t.jsxs(Le,{children:[t.jsx(_t,{photoUrl:c.toString(),styles:{width:O.logoWidth.valuePx(m),height:O.logoHeight.valuePx(m)}}),h?t.jsx(je,{children:s}):t.jsx(De,{children:s})]}):t.jsxs(Le,{children:[t.jsx(Wt,{name:s,size:o.sp6}),h?t.jsx(je,{children:s}):t.jsx(De,{children:s})]}),w(e.changeType,e.percentChange)]}),A=()=>n||i?t.jsx($e,{size:m,isMobile:h,children:[...Array(3)].map((D,u)=>t.jsxs(hs,{children:[t.jsx(S,{width:O.spendTrendHeadingSkeletonWidth.value(m),height:l[4]}),t.jsx(gs,{isMobile:h,children:t.jsx(S,{width:O.spendTrendHeadingSkeletonWidth.value(m)/2,height:l[4]})})]},u))}):t.jsxs($e,{size:m,isMobile:h,children:[t.jsxs(he,{children:[t.jsx(ce,{windowSize:m,isMobile:h,children:b.last30Days}),t.jsx(pe,{windowSize:m,isMobile:h,children:de("0,0.[00]",e.last30DaysSpend,e.currencySymbol)})]}),t.jsxs(he,{children:[t.jsx(ce,{windowSize:m,isMobile:h,children:b.last90Days}),t.jsx(pe,{windowSize:m,isMobile:h,children:de("0,0.[00]",e.last90DaysSpend,e.currencySymbol)})]}),t.jsxs(he,{children:[t.jsx(ce,{windowSize:m,isMobile:h,children:b.ytdSpend}),t.jsx(pe,{windowSize:m,isMobile:h,children:de("0,0.[00]",e.yearToDateSpend,e.currencySymbol)})]})]});return t.jsxs(ds,{isMobile:h,size:m,children:[R(),A()]})},I={labelWidth:new g(120,145,270),largeLabelWidth:new g(130,200,332),largeTinLabelWidth:new g(130,200,276),controlWidth:new g(110,145,160),labelMarginLeft:new g(l[3],l[4]),labelMarginTop:new g(l[2],l[3]),labelMarginBottom:new g(l[2],l[3])},U=(e,s)=>`${e}.${s}`,vs=N.getLocalizedStrings().spendManagement,oe=N.getLocalizedStrings().companyPassport,q=vs.billPay.vendorCreation,L=N.getLocalizedStrings().common,xs=({vendorTypeList:e=[],isDisabled:s,sectionId:c,selectedVendorDetails:i,onAddressClick:n})=>{const p=ne(),m=I.labelWidth.value(p),b=I.largeLabelWidth.value(p),h=I.largeTinLabelWidth.value(p),w=I.controlWidth.value(p);return t.jsxs(ys,{children:[t.jsx(fs,{children:q.vendorDetails.titleFor1099Section}),t.jsxs(bs,{children:[t.jsx(Vt,{isDisabled:s,label:{label:oe.companyInfo.legalName,width:m},text:{type:"text",style:{width:w},name:U(c,"legalName"),placeholder:Ot(oe.companyInfo.legalName),defaultValue:i.vendorBasic.legalName,autoComplete:"new-password",options:{required:!!i.vendorBasic.legalName,pattern:kt}},style:{width:"100%"}}),t.jsx(ge,{}),t.jsxs(Te,{children:[t.jsx(Cs,{width:b,windowSize:p,children:q.vendorDetails.vendorType}),t.jsx(ws,{size:p,children:t.jsx(It,{name:U(c,"vendorType"),value:{allTypes:e,selectedType:i.vendorDetailLocalData?.vendorType},placeholderLabel:q.placeholders.type})})]}),t.jsx(ge,{}),t.jsx(Te,{children:t.jsx(es,{name:U(c,"tinType"),menuPlacement:"auto",style:{height:o.sp6,width:"100%",marginLeft:o.sp4},dropdownStyle:{width:"40%"},defaultValue:{dropDownValue:i.vendorDetailLocalData?.tin?.type??L.strings.empty,dropDownList:[{code:L.texts.ein,label:L.texts.ein.toUpperCase()},{code:L.texts.ssn,label:L.texts.ssn.toUpperCase()}]},registerOptions:{required:!1},label:{width:h},placeholderLabel:q.placeholders.tinType,formattedText:{type:"text",name:U(c,"tinValue"),placeholder:q.placeholders.tinValue,format:i.vendorDetailLocalData?.tin?.type===L.texts.ssn?zt:Mt,registerOptions:{required:!!i.vendorDetailLocalData?.tin?.type,pattern:i.vendorDetailLocalData?.tin?.type===L.texts.ssn?Pt:Ft},style:{width:"100%",height:o.sp6},defaultValue:i.vendorDetailLocalData?.tin?.value??L.strings.empty,maxLength:9,allowLeadingZeros:!0,autoComplete:"new-password",isDisabled:i.vendorDetailLocalData?.tin?.type===null?"disabled":void 0}})}),t.jsx(ge,{}),t.jsx(Zt,{isDisabled:s,label:{label:oe.companyInfo.address,width:m},addressValueField:{name:U(c,"address"),placeholder:oe.address.titleAdd,defaultValue:i.vendorNewAddressStatus?.addressToCreate,onClick:()=>n("vendor_address",i.vendorAddress?.addressId)},showAdditionalInfoLabel:!1,style:{width:"100%"}})]})]})},ys=a.div`
116
116
  display: flex;
117
117
  flex-direction: column;
118
118
  padding-top: ${o.sp5};
119
119
  padding-bottom: ${o.sp5};
120
- `,bs=a(Ue)`
120
+ `,fs=a(Ue)`
121
121
  color: ${e=>e.theme.colors.primary};
122
122
  margin-bottom: ${o.sp3};
123
123
  margin-right: ${o.sp6};
124
- `,fs=a.div`
124
+ `,bs=a.div`
125
125
  display: flex;
126
126
  flex-direction: column;
127
127
  background-color: ${e=>e.theme.colors.grey5};
@@ -168,7 +168,7 @@ import{M as N,u as Re,e as ne,C as g,N as be,m as se,cc as xt,a as yt,gA as Ae,g
168
168
  width: ${e=>e.width}px;
169
169
  color: ${e=>e.theme.colors.hero};
170
170
  margin: ${e=>`${I.labelMarginTop.valuePx(e.windowSize)} ${I.labelMarginLeft.valuePx(e.windowSize)} ${I.labelMarginBottom.valuePx(e.windowSize)} ${I.labelMarginLeft.valuePx(e.windowSize)}`};
171
- `,Ve=N.getLocalizedStrings().vendors.common.transactionTabTitles,$s=()=>Ss,Ss=[{id:"spend_transactions",label:Ve.spendTransactions,leftMargin:!1,style:{width:136,left:2}},{id:"all_transactions",label:Ve.allTransactions,leftMargin:!0,style:{width:122,left:60}}],ke={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},M=(e,s)=>`${e}.${s}`,Je=N.getLocalizedStrings(),{common:ae,cockpit:Oe}=Je,T=Je.spendManagement.billPay.vendorCreation,Ds=({accountsHierarchyList:e,allAccounts:s,allClasses:c,allOwners:i,classHierarchyList:n,enableRecommendationUpdateCheckbox:p,readOnlyMode:m,isDisabled:f,recommendations:h,sectionId:w,selectedAccountId:R,selectedClassId:A,selectedOwnerId:D,selectedVendorDetails:u,uiState:B,isFiling1099FeatureEnabled:Y,onClickShowMoreOrLess:le})=>{const X=ne(),G=Re(),{getValues:J}=Lt(),_=ke.labelWidth.value(X),W=ke.controlWidth.value(X),P=r=>s.filter(b=>b.accountId===r)[0]?.coaId??"",E=r=>c.filter(b=>b.classId===r)[0]?.accountingClassNumber??"",K=r=>{const b=s.find(H=>H.accountId===r)?.accountName;return[At,Bt].includes(b??"")},Q=T.vendorDetails.recommendation.tooltip,ie=Q.category.replace("__based__",u?.vendorDetailLocalData?.recommendedCategory?.reason?.toLocaleLowerCase()??""),re=Q.class.replace("__based__",u?.vendorDetailLocalData?.recommendedClass?.reason?.toLocaleLowerCase()??""),Z=u?.vendorDetailLocalData?.recommendedCategory!=null&&!!p,ee=u?.vendorDetailLocalData?.recommendedClass!=null&&!!p;return t.jsxs(js,{children:[t.jsxs(Ls,{children:[t.jsx(Ts,{children:T.vendorDetails.title}),Y?t.jsxs(ks,{onClick:()=>le(),children:[B?.collapsableStatus==="expand"?`${ae.show}${ae.strings.space}${Oe.subscription.lessBtnText}`:`${ae.show}${ae.strings.space}${Oe.subscription.moreBtnText}`,B?.collapsableStatus==="expand"?t.jsx(Os,{}):t.jsx(Is,{})]}):null]}),t.jsxs(Vs,{children:[t.jsx(we,{isLoading:!1,label:{label:T.vendorDetails.category,width:_},groupedSingleSelectField:{name:M(w,"vendorCategory"),placeholder:T.placeholders.category,valueToInfo:r=>P(r),defaultValue:{selectedOption:R,allOptions:Be(e,h)},style:{width:"auto"},registerOptions:{required:!1},shouldShowChevronIcon:Z},additionalLabelInfo:void 0,style:{borderBottom:`1px solid ${G.colors.grey3}`},isDisabled:m?"readonly":f,disableCurrentOption:K,fullWidthSelect:!1,zIndexOnFocus:!0,recommendationCheckboxField:u?.vendorDetailLocalData?.recommendedCategory!=null&&p?{tooltipProps:{text:ie},label:{label:u?.vendorDetailLocalData?.recommendedCategory?.accountName},checkBoxField:{name:M(w,"isRecommendedCategorySelected"),defaultChecked:J(M(w,"isRecommendedCategorySelected"))}}:void 0}),t.jsx(we,{isLoading:!1,label:{label:T.vendorDetails.class,width:_},zIndexOnFocus:!0,groupedSingleSelectField:{name:M(w,"vendorClass"),placeholder:T.placeholders.class,valueToInfo:r=>E(r),defaultValue:{selectedOption:A,allOptions:Ae(n,h)},registerOptions:{required:!1},style:{width:"auto"},shouldShowChevronIcon:ee},additionalLabelInfo:void 0,style:{borderBottom:`1px solid ${G.colors.grey3}`},isDisabled:m===!0?"readonly":f,fullWidthSelect:!1,recommendationCheckboxField:u?.vendorDetailLocalData?.recommendedClass!=null&&p?{tooltipProps:{text:re},label:{label:u?.vendorDetailLocalData?.recommendedClass?.className},checkBoxField:{name:M(w,"isRecommendedClassSelected"),defaultChecked:J(M(w,"isRecommendedClassSelected"))}}:void 0}),t.jsx(Tt,{label:{label:T.vendorDetails.vendorOwner,width:_},userSingleSelectField:{name:M(w,"vendorOwner"),placeholder:T.placeholders.owner,defaultValue:{allOptions:Ee(i),selectedOption:D},registerOptions:{required:!1},style:{width:"auto"}},isDisabled:m===!0?"readonly":f,style:{justifyContent:"space-between"},controlWidth:W,fullWidthSelect:!1})]})]})},js=a.div`
171
+ `,Ve=N.getLocalizedStrings().vendors.common.transactionTabTitles,$s=()=>Ss,Ss=[{id:"spend_transactions",label:Ve.spendTransactions,leftMargin:!1,style:{width:136,left:2}},{id:"all_transactions",label:Ve.allTransactions,leftMargin:!0,style:{width:122,left:60}}],ke={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},z=(e,s)=>`${e}.${s}`,Ke=N.getLocalizedStrings(),{common:ae,cockpit:Oe}=Ke,T=Ke.spendManagement.billPay.vendorCreation,Ds=({accountsHierarchyList:e,allAccounts:s,allClasses:c,allOwners:i,classHierarchyList:n,enableRecommendationUpdateCheckbox:p,readOnlyMode:m,isDisabled:b,recommendations:h,sectionId:w,selectedAccountId:R,selectedClassId:A,selectedOwnerId:D,selectedVendorDetails:u,uiState:B,isFiling1099FeatureEnabled:Y,onClickShowMoreOrLess:le})=>{const J=ne(),G=Re(),{getValues:K}=Lt(),_=ke.labelWidth.value(J),W=ke.controlWidth.value(J),P=r=>s.filter(f=>f.accountId===r)[0]?.coaId??"",E=r=>c.filter(f=>f.classId===r)[0]?.accountingClassNumber??"",Q=r=>{const f=s.find(H=>H.accountId===r)?.accountName;return[At,Bt].includes(f??"")},X=T.vendorDetails.recommendation.tooltip,ie=X.category.replace("__based__",u?.vendorDetailLocalData?.recommendedCategory?.reason?.toLocaleLowerCase()??""),re=X.class.replace("__based__",u?.vendorDetailLocalData?.recommendedClass?.reason?.toLocaleLowerCase()??""),Z=u?.vendorDetailLocalData?.recommendedCategory!=null&&!!p,ee=u?.vendorDetailLocalData?.recommendedClass!=null&&!!p;return t.jsxs(js,{children:[t.jsxs(Ls,{children:[t.jsx(Ts,{children:T.vendorDetails.title}),Y?t.jsxs(ks,{onClick:()=>le(),children:[B?.collapsableStatus==="expand"?`${ae.show}${ae.strings.space}${Oe.subscription.lessBtnText}`:`${ae.show}${ae.strings.space}${Oe.subscription.moreBtnText}`,B?.collapsableStatus==="expand"?t.jsx(Os,{}):t.jsx(Is,{})]}):null]}),t.jsxs(Vs,{children:[t.jsx(we,{isLoading:!1,label:{label:T.vendorDetails.category,width:_},groupedSingleSelectField:{name:z(w,"vendorCategory"),placeholder:T.placeholders.category,valueToInfo:r=>P(r),defaultValue:{selectedOption:R,allOptions:Be(e,h)},style:{width:"auto"},registerOptions:{required:!1},shouldShowChevronIcon:Z},additionalLabelInfo:void 0,style:{borderBottom:`1px solid ${G.colors.grey3}`},isDisabled:m?"readonly":b,disableCurrentOption:Q,fullWidthSelect:!1,zIndexOnFocus:!0,recommendationCheckboxField:u?.vendorDetailLocalData?.recommendedCategory!=null&&p?{tooltipProps:{text:ie},label:{label:u?.vendorDetailLocalData?.recommendedCategory?.accountName},checkBoxField:{name:z(w,"isRecommendedCategorySelected"),defaultChecked:K(z(w,"isRecommendedCategorySelected"))}}:void 0}),t.jsx(we,{isLoading:!1,label:{label:T.vendorDetails.class,width:_},zIndexOnFocus:!0,groupedSingleSelectField:{name:z(w,"vendorClass"),placeholder:T.placeholders.class,valueToInfo:r=>E(r),defaultValue:{selectedOption:A,allOptions:Ae(n,h)},registerOptions:{required:!1},style:{width:"auto"},shouldShowChevronIcon:ee},additionalLabelInfo:void 0,style:{borderBottom:`1px solid ${G.colors.grey3}`},isDisabled:m===!0?"readonly":b,fullWidthSelect:!1,recommendationCheckboxField:u?.vendorDetailLocalData?.recommendedClass!=null&&p?{tooltipProps:{text:re},label:{label:u?.vendorDetailLocalData?.recommendedClass?.className},checkBoxField:{name:z(w,"isRecommendedClassSelected"),defaultChecked:K(z(w,"isRecommendedClassSelected"))}}:void 0}),t.jsx(Tt,{label:{label:T.vendorDetails.vendorOwner,width:_},userSingleSelectField:{name:z(w,"vendorOwner"),placeholder:T.placeholders.owner,defaultValue:{allOptions:Ee(i),selectedOption:D},registerOptions:{required:!1},style:{width:"auto"}},isDisabled:m===!0?"readonly":b,style:{justifyContent:"space-between"},controlWidth:W,fullWidthSelect:!1})]})]})},js=a.div`
172
172
  display: flex;
173
173
  flex-direction: column;
174
174
  padding-top: ${o.sp3};
@@ -215,7 +215,7 @@ import{M as N,u as Re,e as ne,C as g,N as be,m as se,cc as xt,a as yt,gA as Ae,g
215
215
  `,Pe=a.div`
216
216
  border: 1px solid ${e=>e.theme.colors.grey3};
217
217
  filter: drop-shadow(
218
- ${o.sp0} 2px ${o.sp1} ${z.boxShadowElevation}
218
+ ${o.sp0} 2px ${o.sp1} ${M.boxShadowElevation}
219
219
  );
220
220
  border-radius: ${o.sp2};
221
221
  background: ${e=>e.theme.colors.grey5};
@@ -224,7 +224,7 @@ import{M as N,u as Re,e as ne,C as g,N as be,m as se,cc as xt,a as yt,gA as Ae,g
224
224
  display: flex;
225
225
  justify-content: space-between;
226
226
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
227
- `,Fs=()=>t.jsxs(Ps,{children:[[...Array(1)].map((e,s)=>t.jsxs(Ie,{children:[t.jsx(S,{width:120,height:l[4]}),t.jsx(Pe,{children:[...Array(3)].map((c,i)=>t.jsxs(Fe,{children:[t.jsx(S,{width:70,height:l[4]}),t.jsx(S,{width:140,height:l[4]})]},i))})]},s)),[...Array(1)].map((e,s)=>t.jsxs(Ie,{children:[t.jsx(S,{width:120,height:l[4]}),t.jsx(Pe,{children:[...Array(4)].map((c,i)=>t.jsxs(Fe,{children:[t.jsx(S,{width:70,height:l[4]}),t.jsx(S,{width:140,height:l[4]})]},i))})]},s))]}),x=N.getLocalizedStrings(),{vendors:{vendorDetailPage:V},common:{footer:Me}}=x,k={transactionListHeight:new g(325,275,225),formContainerHorizontalPadding:new g(l[3],l[3],l[8]),buttonWidth:new g(85,85),navbarHeight:63},ze=e=>`${e}_form`,y="vendorDetails",ve="vendor1099Details",Ne="vendorDetailPage",Ms=a.div`
227
+ `,Fs=()=>t.jsxs(Ps,{children:[[...Array(1)].map((e,s)=>t.jsxs(Ie,{children:[t.jsx(S,{width:120,height:l[4]}),t.jsx(Pe,{children:[...Array(3)].map((c,i)=>t.jsxs(Fe,{children:[t.jsx(S,{width:70,height:l[4]}),t.jsx(S,{width:140,height:l[4]})]},i))})]},s)),[...Array(1)].map((e,s)=>t.jsxs(Ie,{children:[t.jsx(S,{width:120,height:l[4]}),t.jsx(Pe,{children:[...Array(4)].map((c,i)=>t.jsxs(Fe,{children:[t.jsx(S,{width:70,height:l[4]}),t.jsx(S,{width:140,height:l[4]})]},i))})]},s))]}),x=N.getLocalizedStrings(),{vendors:{vendorDetailPage:V},common:{footer:ze}}=x,k={transactionListHeight:new g(325,275,225),formContainerHorizontalPadding:new g(l[3],l[3],l[8]),buttonWidth:new g(85,85),navbarHeight:63},Me=e=>`${e}_form`,y="vendorDetails",ve="vendor1099Details",Ne="vendorDetailPage",zs=a.div`
228
228
  display: flex;
229
229
  flex: 1 1 auto;
230
230
  min-height: 100%;
@@ -238,7 +238,7 @@ import{M as N,u as Re,e as ne,C as g,N as be,m as se,cc as xt,a as yt,gA as Ae,g
238
238
  `,We=a.div`
239
239
  background-color: ${e=>e.theme.colors.grey4};
240
240
  padding-top: ${e=>e.isPageLoading?o.sp3:o.sp0};
241
- `,zs=a.div`
241
+ `,Ms=a.div`
242
242
  display: flex;
243
243
  flex: 1 1 auto;
244
244
  height: 100%;
@@ -254,4 +254,4 @@ import{M as N,u as Re,e as ne,C as g,N as be,m as se,cc as xt,a as yt,gA as Ae,g
254
254
  display: flex;
255
255
  flex-direction: column;
256
256
  transition: ${e=>e.collapsableStatus==="collapse"?"height 400ms ease-out":"height 200ms ease-in"};
257
- `,Rs=[{label:V.vendorSpendTrendFilterLabels.last_30_days,id:"last_30_days"},{label:V.vendorSpendTrendFilterLabels.last_90_days,id:"last_90_days"},{label:V.vendorSpendTrendFilterLabels.YTD_spend,id:"YTD_spend"},{label:V.vendorSpendTrendFilterLabels.last_month,id:"last_month"},{label:V.vendorSpendTrendFilterLabels.last_3_months,id:"last_3_months"},{label:V.vendorSpendTrendFilterLabels.last_6_months,id:"last_6_months"},{label:V.vendorSpendTrendFilterLabels.last_12_months,id:"last_12_months"},{label:V.vendorSpendTrendFilterLabels.last_year,id:"last_year"}],go=({isFiling1099FeatureEnabled:e,vendorDetailView:s,firstMonthOfFY:c,vendorLogo:i,readOnlyMode:n,isDisabled:p,scrollToTrend:m,allTransactionsTabData:f,onVendorTabSelectionChanged:h,onLoadPreviousTransactionsClick:w,onSaveSuccess:R,saveVendorDetailLocalData:A,onCancelClick:D,onTrendSelectedPeriodChange:u,onTransactionItemClick:B,onSpendTrendPercentChangeClick:Y,onSaveVendor:le,onVendorSpendTrendFilterTabClick:X,onAddressClick:G,saveContactsInVendorTabDetailLocalData:J,onVendorDetailUIChange:_})=>{const W=Re(),P=ne(),E=$.useRef(null),[K,Q]=$.useState(!1),[ie,re]=$.useState(k.transactionListHeight.value()),Z=s?.selectedTabType,ee=$s(),r=Object.assign({},s?.vendorViewDetails?.vendorView),b=s?.vendorViewDetails.vendorView?.vendorDetailLocalData,H=s?.uiState,Ke=!be(r!=null&&r.vendorAddress!=null?se.getFormattedAddress(r.vendorAddress):r.vendorAddress,r.vendorNewAddressStatus?.addressToCreate!=null?se.getFormattedAddress(r.vendorNewAddressStatus?.addressToCreate):r.vendorNewAddressStatus?.addressToCreate),Qe=(r?.vendorDetailLocalData?.contacts??[]).filter(d=>d.email!==x.common.strings.empty||d.fullName!==x.common.strings.empty||d.phone!==x.common.strings.empty).map(d=>xt(d,"contactInfoType")),xe=$.useMemo(()=>r.vendorBasic?.contacts??[],[r.vendorBasic?.contacts]),Ze=!be(Qe,xe),te=yt({mode:"all",defaultValues:He(s?.vendorViewDetails.accountsHierarchyList??[],s?.vendorViewDetails.classHierarchyList??[],s?.vendorViewDetails.vendorTypeList??[],s?.vendorViewDetails.vendorView?.vendorNewAddressStatus?.addressToCreate,s?.vendorViewDetails.vendorView?.vendorDetailLocalData,s?.vendorViewDetails.ownerList),values:He(s?.vendorViewDetails.accountsHierarchyList??[],s?.vendorViewDetails.classHierarchyList??[],s?.vendorViewDetails.vendorTypeList??[],s?.vendorViewDetails.vendorView?.vendorNewAddressStatus?.addressToCreate,s?.vendorViewDetails.vendorView?.vendorDetailLocalData,s?.vendorViewDetails.ownerList),resetOptions:{keepDirtyValues:!0}}),[et,tt]=$.useState(-1),st=r.vendorDetailLocalData?.contacts!=null&&r.vendorDetailLocalData?.contacts.length>0?r.vendorDetailLocalData?.contacts:fe,[ot,at]=$.useState(bt(st)),nt=d=>{at(d),J?.(b?.vendorId??x.common.strings.empty,d)};$.useEffect(()=>{m===!0&&K===!1&&s?.trendWithTransactions.trendReport?.fetchState==="Completed"&&s?.trendWithTransactions.transactionView?.fetchState==="Completed"&&(window.scrollTo({top:(E.current?.offsetTop??0)+k.navbarHeight,behavior:"smooth"}),Q(!0))},[m,K,s?.trendWithTransactions.trendReport?.fetchState,s?.trendWithTransactions.transactionView?.fetchState]);const lt=new ft(W.colors.graphColor12),j=s?.fetchState==="Not-Started"||s?.fetchState==="In-Progress",it=s?.vendorViewDetails.vendorView?.saveStatus.fetchState==="In-Progress",rt=s?.trendWithTransactions.trendReport?.fetchState==="In-Progress",dt=(d,v)=>{u?.(v)};$.useEffect(()=>{s?.vendorViewDetails.vendorView?.saveStatus?.fetchState==="Completed"&&R?.()},[r]);const ct=$.useCallback(()=>{window.scrollTo({top:(E.current?.offsetTop??0)+k.navbarHeight,behavior:"smooth"}),Y?.()},[Y]),pt=async(d,v)=>{const C=v;if(d.includes("isRecommendedCategorySelected")){const F=v[y].isRecommendedCategorySelected===!0?r?.vendorDetailLocalData?.recommendedCategory?.accountId:r?.vendorBasic?.account?.accountId;C[y].vendorCategory={selectedOption:F,allOptions:v[y].vendorCategory.allOptions}}if(d.includes("isRecommendedClassSelected")){const F=v[y].isRecommendedClassSelected===!0?r.vendorDetailLocalData?.recommendedClass?.classId:r?.vendorBasic?.class?.classId;C[y].vendorClass={selectedOption:F,allOptions:v[y].vendorClass.allOptions}}if(d.includes("vendorCategory")){const F=C[y].vendorCategory.selectedOption===C[y].recommendedCategory?.accountId;C[y].isRecommendedCategorySelected=F}if(d.includes("vendorClass")){const F=C[y].vendorClass.selectedOption===C[y].recommendedClass?.classId;C[y].isRecommendedClassSelected=F}mt(C)};$.useEffect(()=>{const d=te.watch((v,{name:C})=>{C!=null&&v!=null&&wt(()=>pt(C,v))});return()=>{d.unsubscribe()}});const mt=d=>{const v=As(d,r.vendorBasic?.id,b);A?.(v)},ht=d=>{h(se.toVendorDetailTabsType(d.id))},gt={isLoading:s?.allVendorTransactionsView?.fetchState==="In-Progress"||s?.allVendorTransactionsView?.fetchState==="Not-Started",onLoadPreviousClick:(d,v)=>{w(d,(f?.numberOfQuartersFetched??0)+1)}},ut=()=>{switch(Z){case"all_transactions":return t.jsx(zs,{height:ie,children:j===!1&&f?.timePeriod!=null?t.jsx(Gt,{firstMonthOfFY:c,timeframe:"quarter",timePeriod:f.timePeriod,transactions:s?.allVendorTransactionsView?.transactions??[],isFirstLotLoading:j,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:B,onListInnerElementHeightChanged:d=>{re(d)},showLoadPrevious:gt}):null});case"spend_transactions":default:return s?.trendWithTransactions!=null?t.jsxs(t.Fragment,{children:[t.jsx(Xt,{allTabs:Rs,selectedTab:s.vendorSpendTrendFilterTabValue,onTabChange:d=>{const v=se.toVendorSpendTrendFilterTabsTypeStrict(d.id);v!=null&&X(v)},containerStyle:{marginLeft:l[8],marginRight:l[8]}}),t.jsx(_s,{ref:E,children:t.jsx(Jt,{firstMonthOfFY:c,trendWithTransactionsReport:s?.trendWithTransactions,isDetailPage:!1,graphColor:lt,initialTransactionListHeight:k.transactionListHeight.value(P),page:"vendorDetailPage",onTimePeriodChange:dt,onTransactionItemClick:B})})]}):null}},vt=()=>{H?.collapsableStatus==="expand"?_?.("collapse"):_?.("expand")},ye=ee.find(d=>Z===d.id);return t.jsxs(Ms,{children:[t.jsx(Ct,{onBackClick:D,title:r.vendorBasic?.name??x.common.strings.empty,style:{zIndex:3},hideSearchBtn:!0,backgroundColor:W.colors.grey5,enableTitleOnScroll:!0,source:"VendorDetailPage"}),s?.vendorSpend!=null?t.jsx(us,{isPageLoading:j,vendorName:r.vendorBasic?.name??x.common.strings.empty,spend:s?.vendorSpend,vendorLogo:i,isSpendTrendLoading:rt,onPercentChangeClick:ct}):null,j===!0&&t.jsx(We,{isPageLoading:j,children:t.jsx(_e,{size:P,children:t.jsx(Fs,{})})}),j===!1&&r.vendorDetailLocalData!=null&&t.jsxs(We,{isPageLoading:j,children:[t.jsx(_e,{size:P,children:t.jsx($t,{...te,children:t.jsxs("form",{id:ze(Ne),onSubmit:te.handleSubmit(le),children:[t.jsx(Ds,{sectionId:y,selectedVendorId:b?.vendorId,selectedVendorDetails:r,selectedAccountId:b?.vendorCategory,selectedClassId:b?.vendorClass,selectedOwnerId:b?.vendorOwner,recommendations:b?.recommendations??[],allAccounts:s?.vendorViewDetails.accountList.accounts??[],allClasses:s?.vendorViewDetails.classList.classes??[],screenType:"edit",selectedVendorName:b?.vendorName,allOwners:s?.vendorViewDetails.ownerList??[],readOnlyMode:n,isDisabled:p,accountsHierarchyList:s?.vendorViewDetails.accountsHierarchyList??[],classHierarchyList:s?.vendorViewDetails.classHierarchyList??[],enableRecommendationUpdateCheckbox:!0,uiState:H,isFiling1099FeatureEnabled:e,onClickShowMoreOrLess:vt}),e&&H?.collapsableStatus==="expand"?t.jsxs(Hs,{collapsableStatus:H?.collapsableStatus??"expand",children:[t.jsx(xs,{selectedVendorDetails:r,isDisabled:p,onAddressClick:G,sectionId:ve,vendorTypeList:s?.vendorViewDetails.vendorTypeList??[]}),t.jsx(St,{emailRequired:!1,vendorContactInfos:fe,sectionId:ue,vendorContactInfoWithType:ot,setVendorContactInfoWithType:nt,deleteContactConfirmationIndex:et,updateContactDeleteConfirmationIndex:tt,initialContactList:xe})]}):null]})})}),ye!=null?t.jsxs(Ns,{children:[t.jsx(Ws,{children:t.jsx(rs,{allTabs:ee,containerStyle:{marginLeft:l[8],marginRight:l[8],borderBottom:`1px solid ${W.colors.grey3}`,backgroundColor:W.colors.grey4,justifyContent:"left"},selectedTab:ye,onOptionSelectionChanged:ht})}),ut()]}):null]}),!j&&n!==!0&&(Dt(te.formState.dirtyFields)||Ke||Ze)?t.jsx(jt,{formId:ze(Ne),primaryBtn:{label:Me.save,isLoading:it,style:{width:k.buttonWidth.value(P)},isDisabled:!1},cancelBtn:{label:Me.cancel,style:{width:k.buttonWidth.value(P)},onClick:D}}):null]})},He=(e,s,c,i,n,p)=>({[y]:{vendorName:n?.vendorName??x.common.strings.empty,vendorOwner:{allOptions:Ee(p),selectedOption:n?.vendorOwner},vendorCategory:{allOptions:Be(e,n?.recommendations),selectedOption:n?.vendorCategory},vendorClass:{allOptions:Ae(s,n?.recommendations),selectedOption:n?.vendorClass},recommendedCategory:n?.recommendedCategory,recommendedClass:n?.recommendedClass,isRecommendedCategorySelected:n?.isCategoryUpdateSelected??!1,isRecommendedClassSelected:n?.isClassUpdateSelected??!1},[ve]:{legalName:n?.legalName??x.common.strings.empty,email:n?.vendorEmail??x.common.strings.empty,phone:n?.vendorPhone??x.common.strings.empty,vendorType:{allTypes:c,selectedType:n?.vendorType},tinType:n?.tin?.type??null,tinValue:n?.tin?.value??null,address:i},[ue]:n!=null&&n?.contacts!=null&&n?.contacts.length!==0?n.contacts:[{fullName:x.common.strings.empty,email:x.common.strings.empty,phone:x.common.strings.empty,id:x.common.strings.empty}]}),As=(e,s,c)=>{const i=e?.[y],n=e?.[ve];return{vendorCategory:i.vendorCategory.selectedOption,vendorClass:i.vendorClass.selectedOption,vendorId:s,recommendations:c?.recommendations,vendorName:i.vendorName,legalName:n.legalName,vendorOwner:i.vendorOwner?.selectedOption,recommendedCategory:i.recommendedCategory,recommendedClass:i.recommendedClass,isCategoryUpdateSelected:i.isRecommendedCategorySelected??!1,isClassUpdateSelected:i.isRecommendedClassSelected??!1,vendorEmail:n.email,vendorPhone:n.phone,vendorType:n.vendorType.selectedType,tin:{type:n.tinType??null,value:n.tinValue!=null?n.tinValue.replace(Ut,x.common.strings.empty):null},address:n.address,contacts:e?.[ue]}};export{go as default,ze as formUniqueName,ve as vendor1099DetailsSectionId,y as vendorDetailsSectionId,Rs as vendorSpendTrendFilterTabs};
257
+ `,Rs=[{label:V.vendorSpendTrendFilterLabels.last_30_days,id:"last_30_days"},{label:V.vendorSpendTrendFilterLabels.last_90_days,id:"last_90_days"},{label:V.vendorSpendTrendFilterLabels.YTD_spend,id:"YTD_spend"},{label:V.vendorSpendTrendFilterLabels.last_month,id:"last_month"},{label:V.vendorSpendTrendFilterLabels.last_3_months,id:"last_3_months"},{label:V.vendorSpendTrendFilterLabels.last_6_months,id:"last_6_months"},{label:V.vendorSpendTrendFilterLabels.last_12_months,id:"last_12_months"},{label:V.vendorSpendTrendFilterLabels.last_year,id:"last_year"}],go=({isFiling1099FeatureEnabled:e,vendorDetailView:s,firstMonthOfFY:c,vendorLogo:i,readOnlyMode:n,isDisabled:p,scrollToTrend:m,allTransactionsTabData:b,onVendorTabSelectionChanged:h,onLoadPreviousTransactionsClick:w,onSaveSuccess:R,saveVendorDetailLocalData:A,onCancelClick:D,onTrendSelectedPeriodChange:u,onTransactionItemClick:B,onSpendTrendPercentChangeClick:Y,onSaveVendor:le,onVendorSpendTrendFilterTabClick:J,onAddressClick:G,saveContactsInVendorTabDetailLocalData:K,onVendorDetailUIChange:_})=>{const W=Re(),P=ne(),E=$.useRef(null),[Q,X]=$.useState(!1),[ie,re]=$.useState(k.transactionListHeight.value()),Z=s?.selectedTabType,ee=$s(),r=Object.assign({},s?.vendorViewDetails?.vendorView),f=s?.vendorViewDetails.vendorView?.vendorDetailLocalData,H=s?.uiState,Qe=!fe(r!=null&&r.vendorAddress!=null?se.getFormattedAddress(r.vendorAddress):r.vendorAddress,r.vendorNewAddressStatus?.addressToCreate!=null?se.getFormattedAddress(r.vendorNewAddressStatus?.addressToCreate):r.vendorNewAddressStatus?.addressToCreate),Xe=(r?.vendorDetailLocalData?.contacts??[]).filter(d=>d.email!==x.common.strings.empty||d.fullName!==x.common.strings.empty||d.phone!==x.common.strings.empty).map(d=>xt(d,"contactInfoType")),xe=$.useMemo(()=>r.vendorBasic?.contacts??[],[r.vendorBasic?.contacts]),Ze=!fe(Xe,xe),te=yt({mode:"all",defaultValues:He(s?.vendorViewDetails.accountsHierarchyList??[],s?.vendorViewDetails.classHierarchyList??[],s?.vendorViewDetails.vendorTypeList??[],s?.vendorViewDetails.vendorView?.vendorNewAddressStatus?.addressToCreate,s?.vendorViewDetails.vendorView?.vendorDetailLocalData,s?.vendorViewDetails.ownerList),values:He(s?.vendorViewDetails.accountsHierarchyList??[],s?.vendorViewDetails.classHierarchyList??[],s?.vendorViewDetails.vendorTypeList??[],s?.vendorViewDetails.vendorView?.vendorNewAddressStatus?.addressToCreate,s?.vendorViewDetails.vendorView?.vendorDetailLocalData,s?.vendorViewDetails.ownerList),resetOptions:{keepDirtyValues:!0}}),[et,tt]=$.useState(-1),st=r.vendorDetailLocalData?.contacts!=null&&r.vendorDetailLocalData?.contacts.length>0?r.vendorDetailLocalData?.contacts:be,[ot,at]=$.useState(ft(st)),nt=d=>{at(d),K?.(f?.vendorId??x.common.strings.empty,d)};$.useEffect(()=>{m===!0&&Q===!1&&s?.trendWithTransactions.trendReport?.fetchState==="Completed"&&s?.trendWithTransactions.transactionView?.fetchState==="Completed"&&(window.scrollTo({top:(E.current?.offsetTop??0)+k.navbarHeight,behavior:"smooth"}),X(!0))},[m,Q,s?.trendWithTransactions.trendReport?.fetchState,s?.trendWithTransactions.transactionView?.fetchState]);const lt=new bt(W.colors.graphColor12),j=s?.fetchState==="Not-Started"||s?.fetchState==="In-Progress",it=s?.vendorViewDetails.vendorView?.saveStatus.fetchState==="In-Progress",rt=s?.trendWithTransactions.trendReport?.fetchState==="In-Progress",dt=(d,v)=>{u?.(v)};$.useEffect(()=>{s?.vendorViewDetails.vendorView?.saveStatus?.fetchState==="Completed"&&R?.()},[r]);const ct=$.useCallback(()=>{window.scrollTo({top:(E.current?.offsetTop??0)+k.navbarHeight,behavior:"smooth"}),Y?.()},[Y]),pt=async(d,v)=>{const C=v;if(d.includes("isRecommendedCategorySelected")){const F=v[y].isRecommendedCategorySelected===!0?r?.vendorDetailLocalData?.recommendedCategory?.accountId:r?.vendorBasic?.account?.accountId;C[y].vendorCategory={selectedOption:F,allOptions:v[y].vendorCategory.allOptions}}if(d.includes("isRecommendedClassSelected")){const F=v[y].isRecommendedClassSelected===!0?r.vendorDetailLocalData?.recommendedClass?.classId:r?.vendorBasic?.class?.classId;C[y].vendorClass={selectedOption:F,allOptions:v[y].vendorClass.allOptions}}if(d.includes("vendorCategory")){const F=C[y].vendorCategory.selectedOption===C[y].recommendedCategory?.accountId;C[y].isRecommendedCategorySelected=F}if(d.includes("vendorClass")){const F=C[y].vendorClass.selectedOption===C[y].recommendedClass?.classId;C[y].isRecommendedClassSelected=F}mt(C)};$.useEffect(()=>{const d=te.watch((v,{name:C})=>{C!=null&&v!=null&&wt(()=>pt(C,v))});return()=>{d.unsubscribe()}});const mt=d=>{const v=As(d,r.vendorBasic?.id,f);A?.(v)},ht=d=>{h(se.toVendorDetailTabsType(d.id))},gt={isLoading:s?.allVendorTransactionsView?.fetchState==="In-Progress"||s?.allVendorTransactionsView?.fetchState==="Not-Started",onLoadPreviousClick:(d,v)=>{w(d,(b?.numberOfQuartersFetched??0)+1)}},ut=()=>{switch(Z){case"all_transactions":return t.jsx(Ms,{height:ie,children:j===!1&&b?.timePeriod!=null?t.jsx(Gt,{firstMonthOfFY:c,timeframe:"quarter",timePeriod:b.timePeriod,transactions:s?.allVendorTransactionsView?.transactions??[],isFirstLotLoading:j,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:B,onListInnerElementHeightChanged:d=>{re(d)},showLoadPrevious:gt}):null});case"spend_transactions":default:return s?.trendWithTransactions!=null?t.jsxs(t.Fragment,{children:[t.jsx(Jt,{allTabs:Rs,selectedTab:s.vendorSpendTrendFilterTabValue,onTabChange:d=>{const v=se.toVendorSpendTrendFilterTabsTypeStrict(d.id);v!=null&&J(v)},containerStyle:{marginLeft:l[8],marginRight:l[8]}}),t.jsx(_s,{ref:E,children:t.jsx(Kt,{firstMonthOfFY:c,trendWithTransactionsReport:s?.trendWithTransactions,isDetailPage:!1,graphColor:lt,initialTransactionListHeight:k.transactionListHeight.value(P),page:"vendorDetailPage",onTimePeriodChange:dt,onTransactionItemClick:B})})]}):null}},vt=()=>{H?.collapsableStatus==="expand"?_?.("collapse"):_?.("expand")},ye=ee.find(d=>Z===d.id);return t.jsxs(zs,{children:[t.jsx(Ct,{onBackClick:D,title:r.vendorBasic?.name??x.common.strings.empty,style:{zIndex:3},hideSearchBtn:!0,backgroundColor:W.colors.grey5,enableTitleOnScroll:!0,source:"VendorDetailPage"}),s?.vendorSpend!=null?t.jsx(us,{isPageLoading:j,vendorName:r.vendorBasic?.name??x.common.strings.empty,spend:s?.vendorSpend,vendorLogo:i,isSpendTrendLoading:rt,onPercentChangeClick:ct}):null,j===!0&&t.jsx(We,{isPageLoading:j,children:t.jsx(_e,{size:P,children:t.jsx(Fs,{})})}),j===!1&&r.vendorDetailLocalData!=null&&t.jsxs(We,{isPageLoading:j,children:[t.jsx(_e,{size:P,children:t.jsx($t,{...te,children:t.jsxs("form",{id:Me(Ne),onSubmit:te.handleSubmit(le),children:[t.jsx(Ds,{sectionId:y,selectedVendorId:f?.vendorId,selectedVendorDetails:r,selectedAccountId:f?.vendorCategory,selectedClassId:f?.vendorClass,selectedOwnerId:f?.vendorOwner,recommendations:f?.recommendations??[],allAccounts:s?.vendorViewDetails.accountList.accounts??[],allClasses:s?.vendorViewDetails.classList.classes??[],screenType:"edit",selectedVendorName:f?.vendorName,allOwners:s?.vendorViewDetails.ownerList??[],readOnlyMode:n,isDisabled:p,accountsHierarchyList:s?.vendorViewDetails.accountsHierarchyList??[],classHierarchyList:s?.vendorViewDetails.classHierarchyList??[],enableRecommendationUpdateCheckbox:!0,uiState:H,isFiling1099FeatureEnabled:e,onClickShowMoreOrLess:vt}),e&&H?.collapsableStatus==="expand"?t.jsxs(Hs,{collapsableStatus:H?.collapsableStatus??"expand",children:[t.jsx(xs,{selectedVendorDetails:r,isDisabled:p,onAddressClick:G,sectionId:ve,vendorTypeList:s?.vendorViewDetails.vendorTypeList??[]}),t.jsx(St,{emailRequired:!1,vendorContactInfos:be,sectionId:ue,vendorContactInfoWithType:ot,setVendorContactInfoWithType:nt,deleteContactConfirmationIndex:et,updateContactDeleteConfirmationIndex:tt,initialContactList:xe})]}):null]})})}),ye!=null?t.jsxs(Ns,{children:[t.jsx(Ws,{children:t.jsx(rs,{allTabs:ee,containerStyle:{marginLeft:l[8],marginRight:l[8],borderBottom:`1px solid ${W.colors.grey3}`,backgroundColor:W.colors.grey4,justifyContent:"left"},selectedTab:ye,onOptionSelectionChanged:ht})}),ut()]}):null]}),!j&&n!==!0&&(Dt(te.formState.dirtyFields)||Qe||Ze)?t.jsx(jt,{formId:Me(Ne),primaryBtn:{label:ze.save,isLoading:it,style:{width:k.buttonWidth.value(P)},isDisabled:!1},cancelBtn:{label:ze.cancel,style:{width:k.buttonWidth.value(P)},onClick:D}}):null]})},He=(e,s,c,i,n,p)=>({[y]:{vendorName:n?.vendorName??x.common.strings.empty,vendorOwner:{allOptions:Ee(p),selectedOption:n?.vendorOwner},vendorCategory:{allOptions:Be(e,n?.recommendations),selectedOption:n?.vendorCategory},vendorClass:{allOptions:Ae(s,n?.recommendations),selectedOption:n?.vendorClass},recommendedCategory:n?.recommendedCategory,recommendedClass:n?.recommendedClass,isRecommendedCategorySelected:n?.isCategoryUpdateSelected??!1,isRecommendedClassSelected:n?.isClassUpdateSelected??!1},[ve]:{legalName:n?.legalName??x.common.strings.empty,email:n?.vendorEmail??x.common.strings.empty,phone:n?.vendorPhone??x.common.strings.empty,vendorType:{allTypes:c,selectedType:n?.vendorType},tinType:n?.tin?.type??null,tinValue:n?.tin?.value??null,address:i},[ue]:n!=null&&n?.contacts!=null&&n?.contacts.length!==0?n.contacts:[{fullName:x.common.strings.empty,email:x.common.strings.empty,phone:x.common.strings.empty,id:x.common.strings.empty}]}),As=(e,s,c)=>{const i=e?.[y],n=e?.[ve];return{vendorCategory:i.vendorCategory.selectedOption,vendorClass:i.vendorClass.selectedOption,vendorId:s,recommendations:c?.recommendations,vendorName:i.vendorName,legalName:n.legalName,vendorOwner:i.vendorOwner?.selectedOption,recommendedCategory:i.recommendedCategory,recommendedClass:i.recommendedClass,isCategoryUpdateSelected:i.isRecommendedCategorySelected??!1,isClassUpdateSelected:i.isRecommendedClassSelected??!1,vendorEmail:n.email,vendorPhone:n.phone,vendorType:n.vendorType.selectedType,tin:{type:n.tinType??null,value:n.tinValue!=null?n.tinValue.replace(Ut,x.common.strings.empty):null},address:n.address,contacts:e?.[ue]}};export{go as default,Me as formUniqueName,ve as vendor1099DetailsSectionId,y as vendorDetailsSectionId,Rs as vendorSpendTrendFilterTabs};
@@ -1 +1 @@
1
- import{j as S}from"./index-Dg4A8nvL.js";import{b as C}from"./vendor-rkTZJa59.js";import{y as b}from"./DomesticWireDetailsPage-DX0BA5i3-amEgmkhH.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./BankAccountSection-jRnEB-Ut-5BYJoDk4.js";import"./MagicLinkTitleSection-BZ9PbTY5-CljXn46a.js";import"./BankAccountWarningSection-KznYA-cf-DOVsFGdl.js";import"./MailingDetailsSection-DOuPh_kK-BSVwPRCr.js";import"./LabeledAddressValueField-DLou-2Lm-hN3Yi48B.js";const V=({vendorViewDetails:r,bankAccountContext:t,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onFetchBankName:d,onAddressClick:c})=>{const{bankAccountCreationState:o,editVendorState:m,newVendorState:p,bankNameByRouting:u,bankAccountToCreate:k,fetchBankNameByRoutingStatus:l}=r,e=Object.assign({},m??p);return C.useEffect(()=>{(t==="vendor"&&o?.fetchState==="Completed"||e?.saveStatus?.fetchState==="Completed"&&t!=="express-pay")&&a()},[o,e?.saveStatus?.fetchState,a,t]),S.jsx(b,{bankAccountToCreate:k,bankAccountCreationState:o,bankNameByRouting:u,addressToEdit:e?.vendorNewAddressStatus?.addressToCreate,mailingAddress:e?.vendorAddress,addressType:"vendor_address",fetchBankNameByRoutingStatus:l,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onAddressClick:c,onFetchBankName:d})};export{V as default};
1
+ import{j as S}from"./index-B9FgmOrh.js";import{b as C}from"./vendor-rkTZJa59.js";import{y as b}from"./DomesticWireDetailsPage-CoKdnOHK-BHUXWz4M.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./BankAccountSection-Cb6aph-a-DuZ4WmNC.js";import"./MagicLinkTitleSection-BVmJnjIM-CauR-pM0.js";import"./BankAccountWarningSection-EhX6uury-BPk65Kcm.js";import"./MailingDetailsSection-Gr8nHYJX-Bb0nQJ4z.js";import"./LabeledAddressValueField-DlUmtYXY-Cs_gnXQQ.js";const V=({vendorViewDetails:r,bankAccountContext:t,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onFetchBankName:d,onAddressClick:c})=>{const{bankAccountCreationState:o,editVendorState:m,newVendorState:p,bankNameByRouting:u,bankAccountToCreate:k,fetchBankNameByRoutingStatus:l}=r,e=Object.assign({},m??p);return C.useEffect(()=>{(t==="vendor"&&o?.fetchState==="Completed"||e?.saveStatus?.fetchState==="Completed"&&t!=="express-pay")&&a()},[o,e?.saveStatus?.fetchState,a,t]),S.jsx(b,{bankAccountToCreate:k,bankAccountCreationState:o,bankNameByRouting:u,addressToEdit:e?.vendorNewAddressStatus?.addressToCreate,mailingAddress:e?.vendorAddress,addressType:"vendor_address",fetchBankNameByRoutingStatus:l,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onAddressClick:c,onFetchBankName:d})};export{V as default};
@@ -1,4 +1,4 @@
1
- import{e as oe,u as Ne,M as ne,a as ke,cD as K,gP as de,ca as Ae,C as w,j as t,aX as Be,$ as Ee,F as Re,cd as C,o as s,ch as Oe,gI as We,fK as qe,cl as Me,gJ as He,gK as Ue,ct as Ke,a4 as Ge,cv as Ze,cE as Je,s as c,a3 as Ye,bh as D,c8 as _e,gQ as Qe,g as I,eV as Xe,bO as et,p as ce,eE as tt,gR as st,gS as lt,gT as M,cF as it}from"./index-Dg4A8nvL.js";import{b as y,n as a}from"./vendor-rkTZJa59.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-BF37XlAJ-BaQcEb_i.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const 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:g,style:O}){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:O,children:t.jsxs(dt,{children:[t.jsx(st,{isDisabled:g,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:g,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:g,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:g,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:g,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:g,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:g,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 Ne,B as ne,a as ke,cD as U,gP as de,ca as Ae,C as w,j as t,aX as Be,$ as Ee,F as Re,cd as C,o as s,ch as Oe,gI as We,fK as qe,cl as Me,gJ as He,gK as Ke,ct as Ue,a4 as Ge,cv as Ye,cE as Ze,q as c,a3 as Qe,bh as D,c8 as _e,gQ as Je,g as I,eV as Xe,bO as et,s as ce,eE as tt,gR as st,gS as lt,gT as M,cF as it}from"./index-B9FgmOrh.js";import{b as y,n as a}from"./vendor-rkTZJa59.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-g9EUyLAN-C6fgQW4J.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const 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:O}){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:O,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:U(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};
@@ -26,14 +26,14 @@ import{e as oe,u as Ne,M as ne,a as ke,cD as K,gP as de,ca as Ae,C as w,j as t,a
26
26
  );
27
27
  border-radius: ${s.sp2};
28
28
  background: ${e=>e.theme.colors.grey5};
29
- `,ht=a.div`
29
+ `,gt=a.div`
30
30
  margin-left: ${s.sp3};
31
31
  `,H=a.div`
32
32
  padding: ${s.sp3};
33
33
  display: flex;
34
34
  justify-content: space-between;
35
35
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
36
- `,gt=()=>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,g)=>t.jsxs(H,{children:[t.jsx(D,{width:70,height:c[4]}),t.jsx(D,{width:140,height:c[4]})]},g)),t.jsx(H,{children:t.jsx(D,{width:120,height:c[4]})}),t.jsx(ht,{children:[...Array(7)].map((o,g)=>t.jsxs(H,{children:[t.jsx(D,{width:70,height:c[4]}),t.jsx(D,{width:140,height:c[4]})]},g))})]})]},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",he="phone",ge="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`,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,g=Ne(),O=o.signal,{onVendorFiling1099UploadDetailsSave:E,vendorId:u,vendorFiling1099UploadDetailsViewState:p,onSaveChangesToLocalStore:v,vendorFiling1099UploadDetails:V,fetchVendorFetchStatus:G,onAddressEditHandler:ye,goBackToListPage:Z,onResetVendorFiling1099FormStatus:fe,googleAPIKey:be}=e,{vendor1099DetailsSaveStatus:T,vendor1099DetailsLocalData:d,w9FormUploadStatus:J}=p,[Y,_]=y.useState(V.addressStatus?.addressToCreate??{street:[],city:"",state:"",country:"",countryCode:"",postalCode:""}),Q=y.useRef(null),{vendorTypeList:W}=V,z=y.useRef(null),N=y.useRef(null),X=y.useRef(!1);y.useEffect(()=>{N.current===null&&d.legalName!=r.strings.empty&&p.vendor1099DetailsAutoFilledValues?.legalName===!0&&(N.current=d.legalName)},[d.legalName]),y.useEffect(()=>{z.current===null&&d.legalName!==r.strings.empty&&(z.current=d.legalName)},[d.legalName]),y.useEffect(()=>{V?.addressStatus?.addressToCreate&&p.vendor1099DetailsAutoFilledValues?.address===!0&&X.current===!1&&(_(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,O))}),{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 h={...n},Fe=h[l].legalName,Le=h[l].email,De=h[l].phone,Pe=h[l].taxClassification,Ie=h[l].tinType,ee=h[l].tinValue,Te={legalName:Fe??r.strings.empty,vendorId:u,contact:{email:Le??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(x.includes(`${l}.street`)&&n.vendor1099FilingSectionId.street!=null){const{addressValue:L}=n.vendor1099FilingSectionId.street,ze=m.getValues(`${l}.country`),q=K(L?.country);m.setValue(l,{...n[l],street:n.vendor1099FilingSectionId.street,city:L?.locality??"",state:L?.administrativeAreaLevel1??"",country:q,countryCode:L?.countryCode??"",postalCode:L?.postalCode??"",secondaryInfo:n.vendor1099FilingSectionId.secondaryInfo??"",suite:n.vendor1099FilingSectionId.suite??""}),Ze(m.formState.errors,`${l}.city`)&&L?.locality&&m.trigger(`${l}.city`),ze.selectedOption!==q.selectedOption&&m.setValue(`${l}.country`,q)}else x==="vendor1099FilingSectionId.country"&&n[l].country.selectedOption!=null&&m.setValue(`${l}.countryCode`,Je(n[l].country.selectedOption));v(Te)}};y.useEffect(()=>{const x=m.watch((n,{name:h})=>{h!=null&&n!=null&&((h.startsWith(`${l}.street`)||h.startsWith(`${l}.city`)||h.startsWith(`${l}.state`)||h.startsWith(`${l}.country`)||h.startsWith(`${l}.postalCode`))&&n[l]!=null&&_({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(h,n)))});return()=>{x.unsubscribe()}});const F=$.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"||J?.fetchState==="In-Progress",b=G?.fetchState==="In-Progress"||J?.fetchState==="In-Progress";return y.useEffect(()=>()=>{o.abort(),fe()},[]),t.jsx(Vt,{windowSize:i,children:t.jsxs(Ct,{windowSize:i,children:[t.jsxs(Ft,{windowSize:i,ref:Q,children:[t.jsx(Be,{title:(p.vendor1099DetailsAutoFilledValues?.legalName===!0?N.current:z.current)??r.strings.empty,backgroundColor:g.colors.grey4,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:t.jsx(Dt,{windowSize:i,onClick:Z,"data-testid":Ee("vendor-filling-1099-details-editable-page-close-icon")}),scrollableContent:Q,enableTitleOnScroll:!0,scrollThreshold:50,source:"VendorFiling1099EditablePage"}),b===!0?t.jsx(ie,{windowSize:i,isLoading:b,children:t.jsx(gt,{})}):t.jsxs(ie,{windowSize:i,isLoading:b,children:[i==="small"?t.jsx(Pt,{windowSize:i,children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?N.current:z.current}):t.jsx(It,{children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?N.current:z.current}),T.fetchState==="Error"?t.jsxs(Tt,{children:[t.jsx(At,{}),t.jsxs(zt,{children:[t.jsx(Nt,{children:Ce}),t.jsx(kt,{children:Se})]})]}):null,ve()&&t.jsxs(Rt,{children:[t.jsx(B,{}),t.jsx(Ot,{children:S.vendorDetails.banner})]}),t.jsx(Re,{...m,children:t.jsx("form",{id:U(l),onSubmit:$e,children:t.jsxs(Lt,{isLoading:b,children:[t.jsx(R,{children:f?.legalName===!0&&!b?t.jsx(B,{}):null}),t.jsx(C,{label:{label:k.legalName,width:F,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:x=>x!==r.strings.empty}}}),t.jsx(A,{}),t.jsxs(t.Fragment,{children:[t.jsx(C,{label:{label:k.email,width:F,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(Oe,{label:{label:k.phone,width:F,style:{marginLeft:s.sp4}},text:{name:P(l,he),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(R,{children:f?.taxClassification===!0&&!b?t.jsx(B,{}):null}),t.jsxs(re,{children:[t.jsx(Bt,{width:F,windowSize:i,children:k.taxClassification}),t.jsx(Et,{size:i,labelWidth:F,children:t.jsx(We,{name:P(l,ge),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(R,{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:F},placeholderLabel:S.placeholders.tinType,formattedText:{type:"text",name:P(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(R,{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:Z},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",xe="tinValue",xt="street",yt="suite",ft="city",bt="state",wt="country",$t="countryCode",vt="postalCode",jt="secondaryInfo",K=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=Ne(),O=o.signal,{onVendorFiling1099UploadDetailsSave:E,vendorId:u,vendorFiling1099UploadDetailsViewState:p,onSaveChangesToLocalStore:v,vendorFiling1099UploadDetails:V,fetchVendorFetchStatus:G,onAddressEditHandler:ye,goBackToListPage:Y,onResetVendorFiling1099FormStatus:fe,googleAPIKey:be}=e,{vendor1099DetailsSaveStatus:T,vendor1099DetailsLocalData:d,w9FormUploadStatus:Z}=p,[Q,_]=y.useState(V.addressStatus?.addressToCreate??{street:[],city:"",state:"",country:"",countryCode:"",postalCode:""}),J=y.useRef(null),{vendorTypeList:W}=V,z=y.useRef(null),N=y.useRef(null),X=y.useRef(!1);y.useEffect(()=>{N.current===null&&d.legalName!=r.strings.empty&&p.vendor1099DetailsAutoFilledValues?.legalName===!0&&(N.current=d.legalName)},[d.legalName]),y.useEffect(()=>{z.current===null&&d.legalName!==r.strings.empty&&(z.current=d.legalName)},[d.legalName]),y.useEffect(()=>{V?.addressStatus?.addressToCreate&&p.vendor1099DetailsAutoFilledValues?.address===!0&&X.current===!1&&(_(V.addressStatus.addressToCreate),X.current=!0)},[V,p.vendor1099DetailsAutoFilledValues?.address]);const m=ke({mode:"onSubmit",defaultValues:ae(d,W??[],Q),values:ae(d,W??[],Q)}),{isValid:we}=m.formState,$e=m.handleSubmit(()=>{we&&(ye(m.getValues()),E(u,O))}),{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},Fe=g[l].legalName,Le=g[l].email,De=g[l].phone,Pe=g[l].taxClassification,Ie=g[l].tinType,ee=g[l].tinValue,Te={legalName:Fe??r.strings.empty,vendorId:u,contact:{email:Le??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(x.includes(`${l}.street`)&&n.vendor1099FilingSectionId.street!=null){const{addressValue:L}=n.vendor1099FilingSectionId.street,ze=m.getValues(`${l}.country`),q=U(L?.country);m.setValue(l,{...n[l],street:n.vendor1099FilingSectionId.street,city:L?.locality??"",state:L?.administrativeAreaLevel1??"",country:q,countryCode:L?.countryCode??"",postalCode:L?.postalCode??"",secondaryInfo:n.vendor1099FilingSectionId.secondaryInfo??"",suite:n.vendor1099FilingSectionId.suite??""}),Ye(m.formState.errors,`${l}.city`)&&L?.locality&&m.trigger(`${l}.city`),ze.selectedOption!==q.selectedOption&&m.setValue(`${l}.country`,q)}else x==="vendor1099FilingSectionId.country"&&n[l].country.selectedOption!=null&&m.setValue(`${l}.countryCode`,Ze(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&&_({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 F=$.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"||Z?.fetchState==="In-Progress",b=G?.fetchState==="In-Progress"||Z?.fetchState==="In-Progress";return y.useEffect(()=>()=>{o.abort(),fe()},[]),t.jsx(Vt,{windowSize:i,children:t.jsxs(Ct,{windowSize:i,children:[t.jsxs(Ft,{windowSize:i,ref:J,children:[t.jsx(Be,{title:(p.vendor1099DetailsAutoFilledValues?.legalName===!0?N.current:z.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: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(Pt,{windowSize:i,children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?N.current:z.current}):t.jsx(It,{children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?N.current:z.current}),T.fetchState==="Error"?t.jsxs(Tt,{children:[t.jsx(At,{}),t.jsxs(zt,{children:[t.jsx(Nt,{children:Ce}),t.jsx(kt,{children:Se})]})]}):null,ve()&&t.jsxs(Rt,{children:[t.jsx(B,{}),t.jsx(Ot,{children:S.vendorDetails.banner})]}),t.jsx(Re,{...m,children:t.jsx("form",{id:K(l),onSubmit:$e,children:t.jsxs(Lt,{isLoading:b,children:[t.jsx(R,{children:f?.legalName===!0&&!b?t.jsx(B,{}):null}),t.jsx(C,{label:{label:k.legalName,width:F,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:x=>x!==r.strings.empty}}}),t.jsx(A,{}),t.jsxs(t.Fragment,{children:[t.jsx(C,{label:{label:k.email,width:F,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(Oe,{label:{label:k.phone,width:F,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(Wt,{isLoading:b,children:[t.jsx(R,{children:f?.taxClassification===!0&&!b?t.jsx(B,{}):null}),t.jsxs(re,{children:[t.jsx(Bt,{width:F,windowSize:i,children:k.taxClassification}),t.jsx(Et,{size:i,labelWidth:F,children:t.jsx(We,{name:P(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(R,{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:F},placeholderLabel:S.placeholders.tinType,formattedText:{type:"text",name:P(l,xe),placeholder:S.placeholders.tinValue,format:d.tin?.type===r.texts.ssn?He:Ke,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(R,{children:f?.address===!0&&!b?t.jsx(B,{}):null}),t.jsx(Ue,{label:k.address,style:{marginLeft:s.sp4,marginTop:$.labelMarginTop.value(i),marginBottom:s.sp2}}),t.jsx(at,{googleAPIKey:be,formId:K(l),addressToEdit:V?.addressStatus?.addressToCreate,sectionId:l})]})]})})})]})]}),t.jsx(Ge,{separatorStyle:{marginRight:s.sp4},formId:K(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%;
@@ -66,7 +66,7 @@ import{e as oe,u as Ne,M as ne,a as ke,cD as K,gP as de,ca 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(Qe)`
70
70
  cursor: pointer;
71
71
  color: ${e=>e.theme.colors.hero};
72
72
  width: ${s.sp4};
@@ -79,7 +79,7 @@ import{e as oe,u as Ne,M as ne,a as ke,cD as K,gP as de,ca as Ae,C as w,j as t,a
79
79
  color: ${e=>e.theme.colors.primary};
80
80
  margin-bottom: ${s.sp0};
81
81
  margin-right: ${s.sp3};
82
- `,It=a(Qe)`
82
+ `,It=a(Je)`
83
83
  color: ${e=>e.theme.colors.primary};
84
84
  margin-bottom: ${s.sp4};
85
85
  `,Tt=a.div`
@@ -172,4 +172,4 @@ import{e as oe,u as Ne,M as ne,a as ke,cD as K,gP as de,ca 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,[he]:e.contact?.phone??r.strings.empty,[ge]:{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,[xe]:e.tin?.value??null,[xt]:{addressString:o?.street[0]??"",addressValue:o!=null?de(o):void 0},[ft]:o?.city??"",[bt]:o?.state??"",[wt]:U(o?.country),[$t]:o?.countryCode??"",[vt]:o?.postalCode??"",[jt]:o?.street[2]??"",[yt]:o?.street[1]??""}});export{Xt as default,K as uniqueFormName};