@zeniai/web-cockpit-ui 1.14.33-qa → 1.14.34-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 (239) hide show
  1. package/dist/assets/{ACHDetailsPage-BeF1WMnC-BWTFW_6p.js → ACHDetailsPage-MP6kdpXK-Cin5vYxN.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-CxD_UAbI-fpnYflEr.js → AIPerformancePage-BhOaFmfv-DCRtVIyb.js} +26 -26
  3. package/dist/assets/{AccountInfoPage-DcY-ZzlZ-FJ-oHq0G.js → AccountInfoPage-D9Ft_CT9-CUD4qbPd.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CaoKCM-U-OO81J74X.js → AccountInfoPageContent-DvWx52e0-D9gXo091.js} +30 -30
  5. package/dist/assets/{AccountLockedInfoModal-CJmhyeRY--53RI3ma.js → AccountLockedInfoModal-B1_3C1ER-DGCTA7OW.js} +4 -4
  6. package/dist/assets/{AccountReconDetailsDrawerPage-sSMPfl5H-Cm3BYdgG.js → AccountReconDetailsDrawerPage-D9e7qhm0-B1t_x7P2.js} +13 -13
  7. package/dist/assets/{AccountRow-Buzf5t6f-etnrcHrJ.js → AccountRow-CiIWoLq3-F6m6e5Xn.js} +14 -14
  8. package/dist/assets/{AccountsPromoCardStack-Dlcbuic0-DRWRcJqq.js → AccountsPromoCardStack-CC72plKm-DV-DNWnY.js} +30 -30
  9. package/dist/assets/{AddAddressForCardDrawer-BLTkxUcq-B7vSwKJ4.js → AddAddressForCardDrawer-CIj76DoU-BugVt0Ax.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-B5LKICXr-DfBDWY3N.js → AddToWalletPage-B3vdkyWl-C3sTnRDu.js} +17 -17
  11. package/dist/assets/{AgingReportsPage-_hwnvPm7-D_aTfDR9.js → AgingReportsPage-CbkMxxO_-bDdYzvvz.js} +15 -15
  12. package/dist/assets/{AllUserItems-DohW-333-CUu4xgSa.js → AllUserItems-DJo9kLSI-aOrBm21L.js} +11 -11
  13. package/dist/assets/{ApAgingDetailPage-CfzCrv7O-RqAF3Vu6.js → ApAgingDetailPage-DcAh6DLg-YRnOeaE1.js} +3 -3
  14. package/dist/assets/{AppBasePage-Nz4YL7cO-BsmPZ1Al.js → AppBasePage-DztnPkfs-_Sh0VXAS.js} +16 -16
  15. package/dist/assets/{AppDrawerContent-DipGyZ1n-CCl34G60.js → AppDrawerContent-DDmKn21i-C68rKgNZ.js} +8 -8
  16. package/dist/assets/{ApprovalRulesSettingsPage-CDJ2Pb6i-CcP0ubc3.js → ApprovalRulesSettingsPage-Di8tAJ8K-CDv_E-0W.js} +1 -1
  17. package/dist/assets/ArAgingChart-tm5ZiNuY-C229BTlQ.js +24 -0
  18. package/dist/assets/{ArAgingDetailPage-hLTSTpD2-Dg69wqux.js → ArAgingDetailPage-B3JQ08nH-C3xUIMRe.js} +1 -1
  19. package/dist/assets/{AttachmentView-BMvudk_o-BvnNjIGX.js → AttachmentView-p8mBqYjm-BaF-qc0k.js} +6 -6
  20. package/dist/assets/{BankAccountSection-BKK0TqfR-iktNn3d0.js → BankAccountSection-AuQLRvdb-Bwa0DuGQ.js} +6 -6
  21. package/dist/assets/{BankAccountWarningSection-DvJdsXOf-DX0Kkmja.js → BankAccountWarningSection-HvUMABu0-DrqrNnez.js} +19 -19
  22. package/dist/assets/{BankConnectionsSettingsPage-jdyMMWYg-7sjYy26b.js → BankConnectionsSettingsPage-D61w90F9-DCAF3Rvl.js} +8 -8
  23. package/dist/assets/{BillDetailPage-BAc9ZaEX-DiuazQaS.js → BillDetailPage-nqHoph6T-BaIucFqg.js} +7 -7
  24. package/dist/assets/BillPayApprovalRuleDetailPage-fZnmOmyN-BE94bEje.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-ycrs-KJM-CJpx4ouQ.js → BillPayApprovalRulesPage-Bd87v4ca-D8uVymLg.js} +7 -7
  26. package/dist/assets/{BillPayPromoPage-B3cmYoMb-DSMVy0gV.js → BillPayPromoPage-CNiTD_mM-Dj_ToxT_.js} +6 -6
  27. package/dist/assets/{BillPaySetUpPage-Fs62VXvw-D8p1-eX3.js → BillPaySetUpPage-BUSwkzqv-0u4Y1nRn.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-Dt9jBMTF-C295NK9o.js → BillingSettingsPage-aPRvtlqA-D2cPcuYt.js} +4 -4
  29. package/dist/assets/{BillsBulkReviewDrawerPage-Qcl9aUuk-_YOWCRG0.js → BillsBulkReviewDrawerPage-BU3VuxEm-ByErXz92.js} +1 -1
  30. package/dist/assets/{BoxItem-BYcXwroy-DxqwCE3J.js → BoxItem-CZKWkdxd-BeOlY6b0.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-il8wYjJ_-CT3C0oTK.js → BusinessVerificationPage-CeDGi-RH-DBq4N4qO.js} +5 -5
  32. package/dist/assets/CardNumberSubText-1BRQQyfd-DTVfoanD.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-Dv5Z7Tvy-Bfso-Y3l.js → CashbackDetailPage-V-W_U5k1-BFabFlQi.js} +17 -17
  34. package/dist/assets/{ChargeCardDetailPage-CGTduWWN-BkYrdXDY.js → ChargeCardDetailPage-BP-zAMYI-CpMkI6_j.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-DNLZxp9I-hEX4MRS2.js → ChargeCardListPage-DORW9YE4-C9A5hHUd.js} +16 -16
  36. package/dist/assets/{ChargeCardListTable-BnHOs06b-Bept2oom.js → ChargeCardListTable-C32mZrwY-C-_ZN5EL.js} +14 -14
  37. package/dist/assets/{ChargeCardPromoPage-C9ByS2z5-ZBsmIOzb.js → ChargeCardPromoPage-CE4kH4Js-C0K_9IRw.js} +13 -13
  38. package/dist/assets/{ChargeCardSetupPage-Baw4VtU6-whYjNQ5s.js → ChargeCardSetupPage-CumpB2GQ-D9_LS2bE.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-D0nZbDIZ-CqoukG-c.js → ChargeCardStatementsPage-DPIAjww0-qtfYIF5i.js} +6 -6
  40. package/dist/assets/ChargeCardUtils-Wp4Ko18L-zmLd-lJK.js +1 -0
  41. package/dist/assets/{ChaseOverlay-2qpcZYP8-DZC2amkp.js → ChaseOverlay-BGZfbx0H-Cy6SXtpe.js} +8 -8
  42. package/dist/assets/CheckDepositDrawerPage-Bl52b4SW-D474gpb4.js +206 -0
  43. package/dist/assets/{CollapsableReportTable-CPOIqiL0-CeOTbT0I.js → CollapsableReportTable-B0wI9SM1-DLN2kcqg.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-D1BmCIsK-Cg7hHlgd.js → CompanyOfficerDetailsSection-DyOVRvtQ-D3TSBaYy.js} +33 -33
  45. package/dist/assets/{CompanyPassportCard-B9fOwnpa-DsuUYKGw.js → CompanyPassportCard-C_YUK3R3-Tw3Mhb57.js} +5 -5
  46. package/dist/assets/{CompanyPassportPage-BzDOHw_n-BFDOwRWJ.js → CompanyPassportPage-QFJ0G7X7-9FRZMTlm.js} +29 -29
  47. package/dist/assets/{CompleteProfile-BTqueNNu-C0IgFiTo.js → CompleteProfile-DVE16v3y-JdgrMYZk.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-BlFjJIUj-D3PzCoP-.js → ConfettiBurst-BA8BvtO--ChjQJAxk.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-DAGCdI1c-mmdPlAVt.js → CreateOrEditVendorPage-ncBGwfXK-DYgCQOxT.js} +8 -8
  50. package/dist/assets/{CreditCardPaymentDrawerPage-KsuS7yuN-DA_e7yg1.js → CreditCardPaymentDrawerPage-DqEVQgMx-DmTsuXGo.js} +16 -16
  51. package/dist/assets/{CreditCardPaymentPlgSection-BfhV7QBL-GxG2RoKF.js → CreditCardPaymentPlgSection-vmErttTD-BxhyQLa5.js} +8 -8
  52. package/dist/assets/{CurrencySelectField-oVIC5R45-DO0BaMPk.js → CurrencySelectField-BEb19UaA-ayd8ypxk.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-6I-6xoA6-BvOS7YcY.js → CustomerOnboardingActivationPage-L4l1ybmh-CjOAphEc.js} +2 -2
  54. package/dist/assets/CustomerOnboardingContainerPage-BB4D77z8-22xRu68e.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DYXcx90D-Cjqv90OE.js → CustomerOnboardingDetailPageSkeleton-D3Zm658F-BjyCIV27.js} +11 -11
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-DEUNNIB_-xCnv_1xo.js → CustomerOnboardingNoStepsPage-BXsJFpEX-BO1c66C-.js} +2 -2
  57. package/dist/assets/{CustomerOnboardingPage-kAcxVmRC-Dng6IoBs.js → CustomerOnboardingPage-D3zpI1df-BpsmxlbR.js} +2 -2
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BbRqtmnL-BumjYc1t.js → CustomerOnboardingProductSuitePage-DjVZfC2C-rASo3ZM3.js} +1 -1
  59. package/dist/assets/{Dashboard-usLyPMhz-T83f6_ic.js → Dashboard-wY0FneRs-K0H1LO4c.js} +114 -114
  60. package/dist/assets/{DashboardReportPage-CoozPVLS-CfCi-7lF.js → DashboardReportPage-CMgr0CSc-CTqQy7Z3.js} +19 -19
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-BNQW5HZE-B5t6wuDS.js → DashboardSidebarBackgroundAnimation-B73UBY5T-DxfAcbVQ.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-CsLHfDqr-CC_1ybiy.js → DepositAccTransactionItem-DrqBG940-U_s0mHE8.js} +3 -3
  63. package/dist/assets/DepositAccTransactionListPage-2xDjOUwm-CmHU0p_6.js +66 -0
  64. package/dist/assets/{DomesticWireDetailsPage-CwYc-sKw-XNW-idse.js → DomesticWireDetailsPage-vRHD5DmW-v4Oe5SWK.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-ttUEv-XY-vEcCF5hB.js → DownloadOverlay-D_UoB4Xy-DPm0LxIQ.js} +1 -1
  66. package/dist/assets/{DrawerPage-5dnYzzvI-C-zfRz8P.js → DrawerPage-ijHe0bCp-CyRbPalv.js} +5 -5
  67. package/dist/assets/{EditPeoplePage-DUr2MZOG-CWSHHw-m.js → EditPeoplePage-BehcmP1s-CtCgWObL.js} +5 -5
  68. package/dist/assets/{EditReimbursementDetailPage-Byuxh0RG-CIXuQ0er.js → EditReimbursementDetailPage-Cz82Vz26-BkH-yQZq.js} +51 -51
  69. package/dist/assets/{EntityDetailPage-DBjBJovr-GAvyHnKI.js → EntityDetailPage-CN-ewzjy-D8rWv-Yn.js} +2 -2
  70. package/dist/assets/{EntitySummarySection-NvNokzqb-atl44xa1.js → EntitySummarySection-B4ozhtlU-BbJmZsFm.js} +5 -5
  71. package/dist/assets/{ExpenseAutomationOverviewPage-Cc7NPgFU-DDwBfHGE.js → ExpenseAutomationOverviewPage-BmNuSoUs-B4ZMF43g.js} +12 -12
  72. package/dist/assets/{ExpenseAutomationPage-zQeR27lq-rCLHkoiU.js → ExpenseAutomationPage-Cz3JsW-E-Cz15ZpzI.js} +30 -30
  73. package/dist/assets/{ExpressPayPage-P0p3Ao-R-i9gfNImU.js → ExpressPayPage-CgrGtZ4F-BicqIV-J.js} +9 -9
  74. package/dist/assets/{FeaturePreviewPage-CbR7b5uO-0LIj_UpA.js → FeaturePreviewPage-Dk_c37Rm-CXHB1WFu.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-9Kfkt8Hp-CoGOQM-s.js → FollowStepsSection-BVi7m38_-C99RMZ_B.js} +22 -22
  76. package/dist/assets/{GlobalReviewListPage-B3b-DcRO-DmpyBeU0.js → GlobalReviewListPage-DiZGC9B1-DIzsLBmo.js} +14 -14
  77. package/dist/assets/{HelpButton-3gV_f3S3-BNW7ywMF.js → HelpButton-DiIoYeXn-FbkReN34.js} +4 -4
  78. package/dist/assets/{InformationCardStack-B67nQ7o3-Cl5LgXZR.js → InformationCardStack-C8-4dhWR-Bdte_JFA.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-BLuzgFq1-ChqYsKwx.js → InsightsCardStack-BKm0dSeJ-YxbfeRpK.js} +9 -9
  80. package/dist/assets/{InsightsSection-B95Utg4C-D7fPPHgQ.js → InsightsSection-C9MHOCQd-B3v5Vy0i.js} +4 -4
  81. package/dist/assets/{IntegrationsSettingsPage-Cj9RN4lm-CSLCHkMN.js → IntegrationsSettingsPage-4qlL5Dsx-NL-7Vuhq.js} +3 -3
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-CnvGCMx6--PeOQhJI.js → InternationalWireSwiftDetailsPage-DqCtPykV-BUWM-1ua.js} +9 -9
  83. package/dist/assets/{InternationalWireVerificationPage-BO-9Inma-BWHslahx.js → InternationalWireVerificationPage-Cl-p0inO-BPrmH8Q-.js} +10 -10
  84. package/dist/assets/{InviteFormPage-BcKX87YR-DV5_crlj.js → InviteFormPage-L6j0rOBW-DZzXMjr6.js} +20 -20
  85. package/dist/assets/{InvitePageListView-pwXs_uWn-Z97ORdSb.js → InvitePageListView-KYjMIc4q-LkWl7l25.js} +34 -34
  86. package/dist/assets/{InvitePeoplePage-DyqidszV-nOc3GIdz.js → InvitePeoplePage-CbZqVsTp-CPZYz4n0.js} +4 -4
  87. package/dist/assets/{InvoiceUploadSection-Bwx4jgsp-D9TPwHrf.js → InvoiceUploadSection-DZC4oscG-DoaD8XBg.js} +6 -6
  88. package/dist/assets/{IssueChargeCardPage-B4uzwROv-Bk2Fezky.js → IssueChargeCardPage-DMdZCfqA-2_AAwzJw.js} +16 -16
  89. package/dist/assets/{LabeledAddressValue-_1wNunap-nTViFxi6.js → LabeledAddressValue-CBOrzSsG-zl4Cn7F6.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-YuLcra47-D1rCVkct.js +45 -0
  91. package/dist/assets/{LabeledControlledCheckBoxField-DUmCd9rT-BMEF7Bdb.js → LabeledControlledCheckBoxField-BoXsUqpR-BDprT0oc.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-Ca24Ziei-CBC6Lsco.js → LabeledCreatableSingleSelectField-CQPkrdRe-BP0IH1kb.js} +2 -2
  93. package/dist/assets/{LabeledDocumentField-DtGNCNrD-BmU3HUR-.js → LabeledDocumentField-DEeeTuVw-DjAbPGjO.js} +3 -3
  94. package/dist/assets/{LabeledDropDownFormattedTextField-CEhwMb_t-DelBUgv4.js → LabeledDropDownFormattedTextField-DYRkxlY--C9ZM89bQ.js} +1 -1
  95. package/dist/assets/{LabeledText-DR7J2Gsy-BXmYVhAs.js → LabeledText-DQiR_FIX-Co4J3TbF.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DdWbwo9k-B_izL22O.js → LabeledUserSingleSelectWithSubtitlesField-dgPgTmNg-CjWMU4DS.js} +7 -7
  97. package/dist/assets/{LabeledZeniRolesDropDownField-CmUbFFow-C71nvk8D.js → LabeledZeniRolesDropDownField-azPB8idg-BmyhVq5l.js} +1 -1
  98. package/dist/assets/{LinkJETransactionPage-oW3lDkXa-pDAZrnuw.js → LinkJETransactionPage-Ct0HcxvN-C9ALJkXZ.js} +5 -5
  99. package/dist/assets/{LowBalancePopup-C5KvkK3M-BJ53QfOd.js → LowBalancePopup-Zvy2iURT-BHU6RUxm.js} +4 -4
  100. package/dist/assets/{MagicLinkACHDetailsPage-BVWg6hrX-Dqp8qscs.js → MagicLinkACHDetailsPage-BY6pEieF-BnE5qaIA.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-S1k7ze9H-BD9CxLYS.js → MagicLinkDomesticWireDetailsPage-BK5RZSiS-DZf3dWg8.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DpzfQbRD-Czk6cq3a.js → MagicLinkInternationalWireDetailsPage-hK5cNiNB-B4J-Gaxj.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-m9Kweywk-BK-TFI1J.js → MagicLinkSuccessPage-Drn_p982-z_mnlocR.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-BPRyg1HR-D82FSUKq.js → MagicLinkTitleSection-DRMHVOzF-vSOOyfRm.js} +9 -9
  105. package/dist/assets/{MailingDetailsSection-BX5rIuJZ-8h9F_QfJ.js → MailingDetailsSection-DgdAYgpS-CzYOsfT_.js} +6 -6
  106. package/dist/assets/{MeetingCalenderPopup-CCW2D5Ua-AdsUfqxp.js → MeetingCalenderPopup-CAh7iae0-BpiINuek.js} +1 -1
  107. package/dist/assets/{Menu-CD6YLYW5-xYOZpEb0.js → Menu-bleLgSLu-Ccrr2YDB.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-DBU4_Dkv-CJUGJFn3.js → MyBankConnectionsSettingsPage-DRxmQCbq-7MgmeMyL.js} +11 -11
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-0eqXgmvH-CHdZhWCy.js → MyPendingActivationChargeCardListPage-BYLhb47G-DdwAZhiS.js} +2 -2
  110. package/dist/assets/{MyProfileSettingsPage-D1sATCot-BFxBz8wl.js → MyProfileSettingsPage-eVfCRTfx-BNmP0sTQ.js} +11 -11
  111. package/dist/assets/{NavBarWithPicker-BcrWHAVt-Bp97Wb_6.js → NavBarWithPicker-BE2MW7hB-DXAufzd3.js} +5 -5
  112. package/dist/assets/{NavigationArrow-DTaeLGbL-Rg77_mEU.js → NavigationArrow-eEaMttBX-B_OAAp0o.js} +1 -1
  113. package/dist/assets/{NavigationDots-D5YXMwOb-DwbgBSQV.js → NavigationDots-CNwL0a7I-CifVGTqc.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-CN03ui3Y-C7Wnlo8N.js → NewGlobalMerchantPage-CSWqCqAC-CM5vKN1K.js} +9 -9
  115. package/dist/assets/{NoDataChart-DUJ9H-CB-CJSw-339.js → NoDataChart-DNmdY5gQ-I17nHhNI.js} +3 -3
  116. package/dist/assets/{NoDataTable-D5EYJl2y-Bt6-luGg.js → NoDataTable-DW2wAX3o-CmvIHNA2.js} +1 -1
  117. package/dist/assets/{NotFoundPage-C2-zYoie-Dqz-wiMB.js → NotFoundPage-BMJTG-tj-KX8Yl0C8.js} +4 -4
  118. package/dist/assets/{NotificationSettingsPage-Cb4Zozvx-D0BMc4CK.js → NotificationSettingsPage-Vd3UvdLu-CYwoglab.js} +11 -11
  119. package/dist/assets/NotificationsListConfig-DbHYPEWZ-CWezw8M_.js +1 -0
  120. package/dist/assets/{NotificationsPage-AZg3QlbQ-BHdpJes9.js → NotificationsPage-BaekDEw7-DM6qz84i.js} +7 -7
  121. package/dist/assets/{OpExByVendorPage-BdIQF_eO-omQlG_Ls.js → OpExByVendorPage-DNyTA9nx-AqH3jm4s.js} +6 -6
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-eL-vIEjp.js → OverlayContainerPage-Bmu909Fo-D0brL_nl.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-Cmvdl5M2-BhFSUFSZ.js → PandLWithForecastPage-DbP4ybN4-CjX2B57O.js} +6 -6
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-B8u08pzI-DmEmzort.js → PaymentAccountSetupBillingAddressSection-Dd4Aen8j-DhFeVMmy.js} +7 -7
  125. package/dist/assets/{PeoplePage-DUgY9uhQ-Cr96soIc.js → PeoplePage-B3n7ek2h-Bozbjh3K.js} +18 -18
  126. package/dist/assets/{PortfolioAllocationFormPage-8W6M--6J-DR9Ndj0M.js → PortfolioAllocationFormPage-CzA_c7hR-CWaP7kP_.js} +7 -7
  127. package/dist/assets/{PortfolioDetails-Cgsx9aCA-DeeNxIS6.js → PortfolioDetails-Drgv4Osg-n5MRYPkF.js} +23 -23
  128. package/dist/assets/{ProductsCarousel-Bm2Y2y3o-BXHDZ7Bz.js → ProductsCarousel-BnnfJR0o-69mJVwF1.js} +5 -5
  129. package/dist/assets/{PromoBaseCards-B8vPeDYr-DKbnXhuy.js → PromoBaseCards-BGHJivI8-iKisrOi3.js} +3 -3
  130. package/dist/assets/{QBOConnectionDialog-i-PJJPa4-B0SC4TfV.js → QBOConnectionDialog-uiW9eeZu-BUSCcjkj.js} +6 -6
  131. package/dist/assets/{QBOSetupSection-CRrnYKUh-BbRn7wM8.js → QBOSetupSection-DPb0VAii-CawJiqRt.js} +9 -9
  132. package/dist/assets/ReimbursementApprovalRuleDetailPage-Cvok7KBA-CNtIL-aY.js +26 -0
  133. package/dist/assets/{ReimbursementApprovalRulesPage-Chrc3t9S-DT2ivR9l.js → ReimbursementApprovalRulesPage-C1AFF_DM-JcrRx1zz.js} +32 -32
  134. package/dist/assets/{ReimbursementDetailPage-DGNdthlv-LfuXXHFQ.js → ReimbursementDetailPage-Du6R1zje-DFFAPJro.js} +7 -7
  135. package/dist/assets/{ReimbursementPromoPage-BvFwudpI-Cv-4tXUE.js → ReimbursementPromoPage-CW9eyjp9-D3Pfks5-.js} +9 -9
  136. package/dist/assets/{ReimbursementSetUpPage-Cbax1ApT-E7Ui2lvq.js → ReimbursementSetUpPage-CbPwgIqt-DD9o1r2m.js} +3 -3
  137. package/dist/assets/ReimbursementsBulkReviewDrawerPage-DmRIywf6-CkqM4nh9.js +1 -0
  138. package/dist/assets/{ReloadCard-7jt7MZTY-lIyJZnnS.js → ReloadCard-Dvn17Oxl-CBzKop0_.js} +5 -5
  139. package/dist/assets/{ReportTableViewSelector-BiBxQPuW-CLgWnlTn.js → ReportTableViewSelector-C5_qr5qe-lIXMBIXQ.js} +10 -10
  140. package/dist/assets/{ReportsPage-DFob2c55-D23AFFaM.js → ReportsPage-BNcymVwf-ClQkz7Qq.js} +9 -9
  141. package/dist/assets/{RevenueChart-ClhUfdMh-DYskvLwM.js → RevenueChart-DILkui6c-Bn7jhZor.js} +14 -14
  142. package/dist/assets/{ReviewDetailsPage-FQiCTlke-Q5authsi.js → ReviewDetailsPage-ZYzvK95X-CostS9P2.js} +5 -5
  143. package/dist/assets/{ReviewOverlay-CfF_qd7Q-qDrq1AtB.js → ReviewOverlay-DhUFI1ES-LUmDitH1.js} +4 -4
  144. package/dist/assets/{RoleWithToolTip-BF8jX30M-C92wOLzi.js → RoleWithToolTip-_W95JBwt-D4GQ0PLV.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-C_eajy25-B_Z0JCSO.js → ScheduleDetailsFixedAssetsPage-iQXV-V_H-BVQFXrep.js} +4 -4
  146. package/dist/assets/{ScheduleDetailsPage-CEyK426x-nrWcby4m.js → ScheduleDetailsPage-KgHwQGrw-DNkLJeLN.js} +3 -3
  147. package/dist/assets/{ScheduleSequenceTable-CzCC1xOo-D8B0ej3Q.js → ScheduleSequenceTable-Bixq8Q7W-DZJIVO-x.js} +12 -12
  148. package/dist/assets/{ScreenRoutes-Dikl0nac.js → ScreenRoutes-Ce8X3bBt.js} +1 -1
  149. package/dist/assets/SetUpAccountSection-D8FMVhkL-0Pe99EFt.js +378 -0
  150. package/dist/assets/{SetUpDefaultSection-BbQ_Qx2--C5lXu4vU.js → SetUpDefaultSection-CI0mxu3H-DcvSJDVc.js} +4 -4
  151. package/dist/assets/{SignIn-DTytMyjr-BxhE66O7.js → SignIn-DslenepV-CPPxlLcj.js} +11 -11
  152. package/dist/assets/{SignInScreen-DKV5tLc9.js → SignInScreen-B1GYtWiH.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-CD0Beu1e-DaoCCXM5.js → SpendManagementListViewPage-D7SzmCmM-BJf-og4i.js} +3 -3
  154. package/dist/assets/{SpendManagementPerTabPage-ILwwf3e3-CE45DDqu.js → SpendManagementPerTabPage-DKaDr4mu-DxptYFft.js} +20 -20
  155. package/dist/assets/{SpendManagementSection-o0Xvlal3-C0zjrllO.js → SpendManagementSection-Ddfq2u6H-DmMZ9eyK.js} +5 -5
  156. package/dist/assets/{SpendMgmtSetupAccountSection-DkUfJ6ei-oFxBfg7R.js → SpendMgmtSetupAccountSection-CPnNzjr--B78i6hxA.js} +6 -6
  157. package/dist/assets/StatementItem-B2uPIFUk-BwrPLJ8M.js +31 -0
  158. package/dist/assets/StatementsPage-o7MvNKvd-C1dFevGn.js +58 -0
  159. package/dist/assets/{StatusSwitcher-u6thj-sM-8T1PWXo9.js → StatusSwitcher-kWLQCCwS-BcuNtj6J.js} +4 -4
  160. package/dist/assets/{SubTabSwitcher-B9ILKi1e-DAbNMl3T.js → SubTabSwitcher-BKm9FxhL-euRzTmRU.js} +1 -1
  161. package/dist/assets/{SummaryCard-Drap3bb1-nVRx_VJE.js → SummaryCard-DBMfNfN2-plAS3Det.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-DoT0Xz7g-DMFrchv7.js → TaskManagementPage-D_wjK-S2-ckyJVLkK.js} +1 -1
  163. package/dist/assets/{TimeRangeSwitcher-DbGrn4DP-BT1wbdLA.js → TimeRangeSwitcher-2vDR_AEV-D-I6mwQS.js} +3 -3
  164. package/dist/assets/{TimeframeSwitcher-sbgG6A6l-gjTqG61O.js → TimeframeSwitcher-BB3_i5V0-DSWHJLc3.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcherWithToggle-arAZfZIA-BY46uNld.js → TimeframeSwitcherWithToggle-CdP0ViK8-CSTf2noq.js} +1 -1
  166. package/dist/assets/{TopExCard-97hb0R08-DsF24-mR.js → TopExCard-BGgGFzmK-Bh9OLnE6.js} +6 -6
  167. package/dist/assets/{TopExDetailPage-CoLyDCB7-D8kHhqmk.js → TopExDetailPage-CbzYG54M-DO9gCz75.js} +14 -14
  168. package/dist/assets/{TransactionDetailPage-q5aE5bnJ-jYWbJJ_Z.js → TransactionDetailPage-C-CfEtCO-BGrY5UL4.js} +36 -36
  169. package/dist/assets/{TransactionList-C8S87idW-CkmfZ-_y.js → TransactionList-C0xK6_zI-BWkO5U-i.js} +5 -5
  170. package/dist/assets/{TransactionListBig-B0GroSXv-Bt_lEoX-.js → TransactionListBig-CIX6CdX--LTkFgM7t.js} +13 -13
  171. package/dist/assets/{TransactionListPage-CP6h2Q1r-CJzCvI7Q.js → TransactionListPage-B7ppBJig-uGcfhXLt.js} +4 -4
  172. package/dist/assets/{TransactionVendorDetailPage-Cgsraa0T-Bvuj8pKB.js → TransactionVendorDetailPage---HGdQiZ-CZOQ9lvG.js} +5 -5
  173. package/dist/assets/{TransferDrawerPage-0MWoLTHi-BGT-JW0Z.js → TransferDrawerPage-DerGmul8-62lI-YY8.js} +19 -19
  174. package/dist/assets/{TreasuryOverviewPage-CaP2pdVj-CEEbDthH.js → TreasuryOverviewPage-DW2gZwip-DVFW4hhW.js} +26 -26
  175. package/dist/assets/{TreasuryPromoPage-CjCAsIAs-DVDda824.js → TreasuryPromoPage-DzqdEmPJ-CoyHUnTy.js} +13 -13
  176. package/dist/assets/{TreasurySetupPage-zxxClgmz-B49PuUcQ.js → TreasurySetupPage-Bo0HQeeU-A0y2k-4p.js} +2 -2
  177. package/dist/assets/{TreasuryStatementsPage-BCDakhB_-BFM4MV11.js → TreasuryStatementsPage-DS_VK4WN-DmTwCwC0.js} +3 -3
  178. package/dist/assets/{TreasuryTaxLetterPage-Bq3Zcz28-CaeCwr68.js → TreasuryTaxLetterPage-DgwqyL6v-B7MPhwnZ.js} +3 -3
  179. package/dist/assets/{TreasuryTransferOrReviewPage-C8OGAEPm-MHGVeol0.js → TreasuryTransferOrReviewPage-ZrSACgLJ-CShzQj1Z.js} +41 -41
  180. package/dist/assets/{TrendChart-BVaBWGSG-Bsmd11nW.js → TrendChart-D07k3uRr-DkExi6rv.js} +4 -4
  181. package/dist/assets/{TrendWithTransactions-wA_XpWa7-CiZEQQ3v.js → TrendWithTransactions-ibwuOssC-C0qp9MFm.js} +5 -5
  182. package/dist/assets/{UncategorizedAccountsMappingPage-CZyZ7HgM-Cfcp8jrs.js → UncategorizedAccountsMappingPage-D1m2Ok2e-DbU6jOlH.js} +12 -12
  183. package/dist/assets/{UnitIntegrationPage-ahzf74jD-BhU3F_FY.js → UnitIntegrationPage-BJxRjjfK-DtvhQiip.js} +2 -2
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-DT_NocG4-Bq1bl1aO.js → UploadAdditionalDocumentOverlay-DI_GZA8A-DOiCRzdE.js} +2 -2
  185. package/dist/assets/{Vendor2FAPopup-_SmOnjiJ-Bzcvad4z.js → Vendor2FAPopup-80vvc7gE-CZyjqzsA.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-qP4fOIER-DjK69kdl.js → VendorACHDetailsPage-CQcuiNPr-ZTYmcvJP.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-BKztI9LK-BWXxargk.js → VendorDetailPage-Dx_yfZDH-Dm378Xm3.js} +8 -8
  188. package/dist/assets/{VendorDomesticWireDetailsPage-CcIVgYDR-AxQuezcA.js → VendorDomesticWireDetailsPage-DN5x3F_Z-XOWyPxP1.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-j3wx_7VO-DhWyFbHa.js → VendorFiling1099EditablePage-8Jz187lD-0m7mNuWb.js} +10 -10
  190. package/dist/assets/{VendorFirstReviewPage-Tael17gH-DhgjGUhL.js → VendorFirstReviewPage-CokvYaRq-Cb9NI798.js} +10 -10
  191. package/dist/assets/{VendorInternationalWireDetailsPage-CQU1yW6x-D9yyy6s6.js → VendorInternationalWireDetailsPage-lo9l2Q88-DFczs5XD.js} +7 -7
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-YdTFG4UK-BmTkjHNI.js → VendorInternationalWireSwiftDetailsPage-CPj3zrDk-DRMFLwZ9.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-DA43fzxN-C-aSfcSH.js → VendorsAccountsSection-BqoW4DlP-K9mGVuVh.js} +2 -2
  194. package/dist/assets/{VerifyDevice-qwJe3UlY-C8JhMBq8.js → VerifyDevice-D8iPRJ3k-Didr6pca.js} +1 -1
  195. package/dist/assets/{VideoPopup-DjHyf6Dq-Caoe-41_.js → VideoPopup-SdlRHLkM-0X18VPqO.js} +5 -5
  196. package/dist/assets/{WarningsDrawerPage-B3y_Dk0z-BDJbRvuV.js → WarningsDrawerPage-qYWFsE3s-PgntUxKS.js} +3 -3
  197. package/dist/assets/{ZeniAccountDetailPage-3Rwc-ka_-CZGU5GGZ.js → ZeniAccountDetailPage-BL2a5Dmz-iag3jdsk.js} +9 -9
  198. package/dist/assets/{ZeniAccountListViewPage-Dz4Ts37w-C7bBnvjh.js → ZeniAccountListViewPage-CWqzDWcO-BoCUgkRw.js} +14 -14
  199. package/dist/assets/ZeniAccountNavBarPieces-C0MyICK2-D9pY_iW0.js +14 -0
  200. package/dist/assets/{ZeniAccountPromoPage-BdOMtMQi-eO57NyVA.js → ZeniAccountPromoPage-CBm3w0kN-ZGm0kki_.js} +7 -7
  201. package/dist/assets/{ZeniAccountSetupPage-BaAbcpDN-Dz74SoJa.js → ZeniAccountSetupPage-C5VzT9lH-CmNUeSAP.js} +3 -3
  202. package/dist/assets/{ZeniCopyright-CDUB4TcP-GE4oQ9V1.js → ZeniCopyright-BUctH39C-DplfFfSP.js} +1 -1
  203. package/dist/assets/ZeniTransferAmountSlider-q37z6XvR-Baob6Y6l.js +63 -0
  204. package/dist/assets/{analyticsHelper-BvNZGrlc-BJa5RIFt.js → analyticsHelper-B3uAu0es-QTXf1Ev3.js} +1 -1
  205. package/dist/assets/{analyticsHelper-Dx5oOGyQ.js → analyticsHelper-CXIp8rdA.js} +1 -1
  206. package/dist/assets/{chartTypes-eIJ-SPRj-DNmHJom3.js → chartTypes-CJmQ6FtI-XyTHIuvE.js} +1 -1
  207. package/dist/assets/{commonDimensions-BhQMg8M1-BL_2J79f.js → commonDimensions-WRL2ZVK_-BkSU0Zqq.js} +1 -1
  208. package/dist/assets/{detailCommon--19QlDMD-CzDyWg-5.js → detailCommon-Dfxas1Kf-Cs5j6wK3.js} +6 -6
  209. package/dist/assets/{downloadPdf-CdQzDva3-8WZMObW_.js → downloadPdf-B1f0mDl2-DR3N1swU.js} +1 -1
  210. package/dist/assets/{index-tsOp9BQk.js → index-C3eIsUEB.js} +3415 -3415
  211. package/dist/assets/{mapLoadingInProgressToTreeNode-5V5katgj-CVFQIMUP.js → mapLoadingInProgressToTreeNode-BG784RuM-D-SsN93J.js} +1 -1
  212. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BJxygmqD-h90lXkUP.js → mapSectionWithAcOnlyToTreeNode-CtIgxsPZ-DFzyPyCl.js} +1 -1
  213. package/dist/assets/{mapSpacerToTreeNode-D64394wQ-pSHkWnxf.js → mapSpacerToTreeNode-CcgVbOH5-C822drj0.js} +1 -1
  214. package/dist/assets/{mapTimeframeBalancesToTreeNode-n7enawjr-B0jvlyrF.js → mapTimeframeBalancesToTreeNode-CU583ICK-BsI9dw9j.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-DCKSi6a2-DS9WQRVo.js → mapTimeframeBalancesToTreeNode-DTlwFauL-BnT0AYvx.js} +1 -1
  216. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-B_QU_sNV-BAbZgSg9.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B_n9jWVz-CxzLxNpV.js} +1 -1
  217. package/dist/assets/{toCOABalancesWithID-BzuCDtG--VHioxKWJ.js → toCOABalancesWithID-DTfegixr-INQY6aSS.js} +1 -1
  218. package/dist/assets/{toChartData-CYJPtvhS-C0w2egjH.js → toChartData-CH5DcWUY-CUE_ejao.js} +1 -1
  219. package/dist/assets/{treasuryColorHelper-BKdnWQWY-D8OCa9aZ.js → treasuryColorHelper-BdPkQoh7-DNZcPnEX.js} +1 -1
  220. package/dist/assets/{uploadAttachment-joBVPGv5-gtEaySAh.js → uploadAttachment-COwu5Mqo-5xUhTy_F.js} +13 -13
  221. package/dist/assets/{uploadReceipts-dxsKhm9I-Cn41OXkr.js → uploadReceipts-dxsKhm9I-BfDIlt9K.js} +1 -1
  222. package/dist/index.html +1 -1
  223. package/package.json +2 -2
  224. package/dist/assets/ArAgingChart-C2EOYS7A-HVEaEPzA.js +0 -24
  225. package/dist/assets/BillPayApprovalRuleDetailPage-C8VknJRe-DRpgLYbu.js +0 -27
  226. package/dist/assets/CardNumberSubText-Cz8Y1Z97-LpaJD4_Y.js +0 -21
  227. package/dist/assets/ChargeCardUtils-CTnXnilO-DMAAzxCn.js +0 -1
  228. package/dist/assets/CheckDepositDrawerPage-C78K4Qka-BgHYkZOt.js +0 -206
  229. package/dist/assets/CustomerOnboardingContainerPage-BXvzWHpN-CpyPZ7nS.js +0 -1
  230. package/dist/assets/DepositAccTransactionListPage-CgNs2M1G-Jw4rbr_L.js +0 -66
  231. package/dist/assets/LabeledAddressValueField-CLeHoJsD-lkNMl3uF.js +0 -45
  232. package/dist/assets/NotificationsListConfig-BjKpPm-b-CViXYy_9.js +0 -1
  233. package/dist/assets/ReimbursementApprovalRuleDetailPage-DfsK1S1y-wuwm32sm.js +0 -26
  234. package/dist/assets/ReimbursementsBulkReviewDrawerPage-vhtiYbWq-D8igsH6s.js +0 -1
  235. package/dist/assets/SetUpAccountSection-nOqMRPh8-DaY9rNyz.js +0 -378
  236. package/dist/assets/StatementItem-GyeTS2vu-C7aG3yI8.js +0 -31
  237. package/dist/assets/StatementsPage-DU5Dhq7q-11U-8ioz.js +0 -58
  238. package/dist/assets/ZeniAccountNavBarPieces-DOWoY-ph-CzwV0Amu.js +0 -14
  239. package/dist/assets/ZeniTransferAmountSlider-BvyfsZDl-BfSyc7LO.js +0 -63
@@ -1,4 +1,4 @@
1
- import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as J,M as q,a as nn,hc as tn,hd as Te,ca as on,j as t,aX as cn,bV as sn,bX as ln,bY as an,F as rn,l as U,he as dn,m as un,hf as Z,hg as pn,a4 as mn,hh as Ve,C as u,y as gn,o as l,cn as fe,a8 as W,ge as oe,hi as ie,r as d,J as Ae,f as $e,fD as _e,w as Se,aC as xn}from"./index-tsOp9BQk.js";import{b as X,n as s}from"./vendor-rkTZJa59.js";import{D as hn}from"./HelpButton-3gV_f3S3-BNW7ywMF.js";import{h as wn}from"./VendorsAccountsSection-DA43fzxN-C-aSfcSH.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"./MeetingCalenderPopup-CCW2D5Ua-AdsUfqxp.js";const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(d[6],d[7]),iconContainerMarginRight:new u(12,d[3]),iconPadding:new u(10,12),rowGap:new u(d[2],d[3]),elementsMarginLeftRight:new u(d[3],d[4])},He={title:new Ae("standardMedium","largeMedium")},bn=s.div`
1
+ import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as J,B as H,a as nn,hc as tn,hd as Te,ca as on,j as t,aX as cn,bV as sn,bX as ln,bY as an,F as rn,l as U,he as dn,m as un,hf as Z,hg as pn,a4 as mn,hh as Ve,C as u,t as gn,o as l,cn as fe,a8 as W,ge as oe,hi as ie,q as d,J as Ae,g as $e,fD as _e,w as Se,aC as xn}from"./index-C3eIsUEB.js";import{b as X,n as s}from"./vendor-rkTZJa59.js";import{D as hn}from"./HelpButton-DiIoYeXn-FbkReN34.js";import{h as wn}from"./VendorsAccountsSection-BqoW4DlP-K9mGVuVh.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"./MeetingCalenderPopup-CAh7iae0-BpiINuek.js";const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(d[6],d[7]),iconContainerMarginRight:new u(12,d[3]),iconPadding:new u(10,12),rowGap:new u(d[2],d[3]),elementsMarginLeftRight:new u(d[3],d[4])},qe={title:new Ae("standardMedium","largeMedium")},bn=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${e=>C.rowGap.valuePx(e.windowSize)};
@@ -27,7 +27,7 @@ import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as J,M as q,a as nn,hc as tn,
27
27
  margin-bottom: ${l.sp0};
28
28
  `,An=s.div`
29
29
  color: ${e=>e.theme.colors.primary};
30
- ${e=>`${He.title.style(e.windowSize)}`};
30
+ ${e=>`${qe.title.style(e.windowSize)}`};
31
31
  `,$n=s.div`
32
32
  display: flex;
33
33
  flex-direction: column;
@@ -45,7 +45,7 @@ import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as J,M as q,a as nn,hc as tn,
45
45
  max-height: ${e=>C.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
46
46
  margin-right: ${e=>C.iconContainerMarginRight.valuePx(e.windowSize)};
47
47
  `,Rn=s.div`
48
- ${e=>`${He.title.style(e.windowSize)}`};
48
+ ${e=>`${qe.title.style(e.windowSize)}`};
49
49
  color: ${e=>e.theme.colors.primary};
50
50
  `,In=s(Se)`
51
51
  color: ${e=>e.theme.colors.hero};
@@ -65,7 +65,7 @@ import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as J,M as q,a as nn,hc as tn,
65
65
  background-color: ${e=>e.theme.colors.grey5};
66
66
  border: 1px solid ${e=>e.theme.colors.grey3};
67
67
  border-radius: ${l.sp2};
68
- `,K=(e,n)=>`${e}.${n}`;function Ln({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=q.getLocalizedStrings().uncategorizedAccountsMapping,M=C.labelWidth.value(a),z=o.billPayRecommendation!=null?[o.billPayRecommendation]:[],I=R(o.billPayAccountHierarchy,z,"Accounts"),O=o.billPayRecommendation?.account?.reason??"",k=c.tooltip.replace("__based__",O).replace("__account__",c.billsSection.billPayExpenseAccount),$=o.billPayAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedBillPayAccountId),S={valueContainer:h=>({...h,padding:`2px ${l.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:r}=fe(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(bn,{windowSize:a,children:[t.jsx(An,{windowSize:a,children:c.billsSection.heading}),t.jsxs(yn,{windowSize:a,children:[t.jsxs(fn,{windowSize:a,children:[t.jsx(Sn,{windowSize:a,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(vn,{})}),t.jsxs($n,{children:[t.jsx(Rn,{windowSize:a,children:c.billsSection.title}),t.jsx(In,{children:c.billsSection.subTitle})]})]}),t.jsx(Cn,{children:t.jsx(Pn,{windowSize:a,children:t.jsx(oe,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.billsSection.bankChargesAndFeesLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.billPayRecommendation!=null,name:K(e,"billPayAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>ie(h,o.billPayAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:I},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.billPayRecommendation!=null?{tooltipProps:{text:k},label:{label:o.billPayRecommendation?.account?.accountName??q.getLocalizedStrings().common.strings.empty},checkBoxField:{name:K(e,"isRecommendedBillPayAccountChecked"),defaultChecked:r(K(e,"isRecommendedBillPayAccountChecked"))}}:void 0},K(e,"billPayAccount"))})})]})]})}const P={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(d[6],d[7]),iconContainerMarginRight:new u(12,d[3]),iconPadding:new u(10,12),rowGap:new u(d[2],d[3]),elementsMarginLeftRight:new u(d[3],d[4])},qe={title:new Ae("standardMedium","largeMedium")},Mn=s.div`
68
+ `,K=(e,n)=>`${e}.${n}`;function Ln({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=C.labelWidth.value(a),z=o.billPayRecommendation!=null?[o.billPayRecommendation]:[],I=R(o.billPayAccountHierarchy,z,"Accounts"),O=o.billPayRecommendation?.account?.reason??"",k=c.tooltip.replace("__based__",O).replace("__account__",c.billsSection.billPayExpenseAccount),$=o.billPayAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedBillPayAccountId),S={valueContainer:h=>({...h,padding:`2px ${l.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:r}=fe(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(bn,{windowSize:a,children:[t.jsx(An,{windowSize:a,children:c.billsSection.heading}),t.jsxs(yn,{windowSize:a,children:[t.jsxs(fn,{windowSize:a,children:[t.jsx(Sn,{windowSize:a,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(vn,{})}),t.jsxs($n,{children:[t.jsx(Rn,{windowSize:a,children:c.billsSection.title}),t.jsx(In,{children:c.billsSection.subTitle})]})]}),t.jsx(Cn,{children:t.jsx(Pn,{windowSize:a,children:t.jsx(oe,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.billsSection.bankChargesAndFeesLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.billPayRecommendation!=null,name:K(e,"billPayAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>ie(h,o.billPayAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:I},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.billPayRecommendation!=null?{tooltipProps:{text:k},label:{label:o.billPayRecommendation?.account?.accountName??H.getLocalizedStrings().common.strings.empty},checkBoxField:{name:K(e,"isRecommendedBillPayAccountChecked"),defaultChecked:r(K(e,"isRecommendedBillPayAccountChecked"))}}:void 0},K(e,"billPayAccount"))})})]})]})}const P={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(d[6],d[7]),iconContainerMarginRight:new u(12,d[3]),iconPadding:new u(10,12),rowGap:new u(d[2],d[3]),elementsMarginLeftRight:new u(d[3],d[4])},He={title:new Ae("standardMedium","largeMedium")},Mn=s.div`
69
69
  display: flex;
70
70
  flex-direction: column;
71
71
  row-gap: ${e=>P.rowGap.valuePx(e.windowSize)};
@@ -94,7 +94,7 @@ import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as J,M as q,a as nn,hc as tn,
94
94
  margin-bottom: ${l.sp0};
95
95
  `,kn=s.div`
96
96
  color: ${e=>e.theme.colors.primary};
97
- ${e=>`${qe.title.style(e.windowSize)}`};
97
+ ${e=>`${He.title.style(e.windowSize)}`};
98
98
  `,En=s.div`
99
99
  display: flex;
100
100
  flex-direction: column;
@@ -112,7 +112,7 @@ import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as J,M as q,a as nn,hc as tn,
112
112
  max-height: ${e=>P.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
113
113
  margin-right: ${e=>P.iconContainerMarginRight.valuePx(e.windowSize)};
114
114
  `,Tn=s.div`
115
- ${e=>`${qe.title.style(e.windowSize)}`};
115
+ ${e=>`${He.title.style(e.windowSize)}`};
116
116
  color: ${e=>e.theme.colors.primary};
117
117
  `,Dn=s(Se)`
118
118
  color: ${e=>e.theme.colors.hero};
@@ -132,11 +132,11 @@ import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as J,M as q,a as nn,hc as tn,
132
132
  background-color: ${e=>e.theme.colors.grey5};
133
133
  border: 1px solid ${e=>e.theme.colors.grey3};
134
134
  border-radius: ${l.sp2};
135
- `,ee=(e,n)=>`${e}.${n}`;function _n({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=q.getLocalizedStrings().uncategorizedAccountsMapping,M=P.labelWidth.value(a),z=o.reimbursementsRecommendation!=null?[o.reimbursementsRecommendation]:[],I=R(o.reimbursementsAccountHierarchy,z,"Accounts"),O=o.reimbursementsRecommendation?.account?.reason??"",k=c.tooltip.replace("__based__",O).replace("__account__",c.reimbursementsSection.reimbursementsExpenseAccount),$=o.reimbursementsAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedReimbursementsAccountId),S={valueContainer:h=>({...h,padding:`2px ${l.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:r}=fe(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(Mn,{windowSize:a,children:[t.jsx(kn,{windowSize:a,children:c.reimbursementsSection.heading}),t.jsxs(zn,{windowSize:a,children:[t.jsxs(On,{windowSize:a,children:[t.jsx(jn,{windowSize:a,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(Fn,{})}),t.jsxs(En,{children:[t.jsx(Tn,{windowSize:a,children:c.reimbursementsSection.title}),t.jsx(Dn,{children:c.reimbursementsSection.subTitle})]})]}),t.jsx(Bn,{children:t.jsx(Vn,{windowSize:a,children:t.jsx(oe,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.reimbursementsSection.mileageLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.reimbursementsRecommendation!=null,name:ee(e,"reimbursementsAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>ie(h,o.reimbursementsAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:I},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.reimbursementsRecommendation!=null?{tooltipProps:{text:k},label:{label:o.reimbursementsRecommendation?.account?.accountName??q.getLocalizedStrings().common.strings.empty},checkBoxField:{name:ee(e,"isRecommendedReimbursementsAccountChecked"),defaultChecked:r(ee(e,"isRecommendedReimbursementsAccountChecked"))}}:void 0},ee(e,"reimbursementsAccount"))})})]})]})}const L={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(d[6],d[7]),iconContainerMarginRight:new u(12,d[3]),iconPadding:new u(10,12),rowGap:new u(d[2],d[3]),elementsMarginLeftRight:new u(d[3],d[4])},We={title:new Ae("standardMedium","largeMedium")},Hn=s.div`
135
+ `,ee=(e,n)=>`${e}.${n}`;function _n({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=P.labelWidth.value(a),z=o.reimbursementsRecommendation!=null?[o.reimbursementsRecommendation]:[],I=R(o.reimbursementsAccountHierarchy,z,"Accounts"),O=o.reimbursementsRecommendation?.account?.reason??"",k=c.tooltip.replace("__based__",O).replace("__account__",c.reimbursementsSection.reimbursementsExpenseAccount),$=o.reimbursementsAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedReimbursementsAccountId),S={valueContainer:h=>({...h,padding:`2px ${l.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:r}=fe(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(Mn,{windowSize:a,children:[t.jsx(kn,{windowSize:a,children:c.reimbursementsSection.heading}),t.jsxs(zn,{windowSize:a,children:[t.jsxs(On,{windowSize:a,children:[t.jsx(jn,{windowSize:a,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(Fn,{})}),t.jsxs(En,{children:[t.jsx(Tn,{windowSize:a,children:c.reimbursementsSection.title}),t.jsx(Dn,{children:c.reimbursementsSection.subTitle})]})]}),t.jsx(Bn,{children:t.jsx(Vn,{windowSize:a,children:t.jsx(oe,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.reimbursementsSection.mileageLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.reimbursementsRecommendation!=null,name:ee(e,"reimbursementsAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>ie(h,o.reimbursementsAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:I},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.reimbursementsRecommendation!=null?{tooltipProps:{text:k},label:{label:o.reimbursementsRecommendation?.account?.accountName??H.getLocalizedStrings().common.strings.empty},checkBoxField:{name:ee(e,"isRecommendedReimbursementsAccountChecked"),defaultChecked:r(ee(e,"isRecommendedReimbursementsAccountChecked"))}}:void 0},ee(e,"reimbursementsAccount"))})})]})]})}const L={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(d[6],d[7]),iconContainerMarginRight:new u(12,d[3]),iconPadding:new u(10,12),rowGap:new u(d[2],d[3]),elementsMarginLeftRight:new u(d[3],d[4])},We={title:new Ae("standardMedium","largeMedium")},qn=s.div`
136
136
  display: flex;
137
137
  flex-direction: column;
138
138
  row-gap: ${e=>L.rowGap.valuePx(e.windowSize)};
139
- `,qn=s.div`
139
+ `,Hn=s.div`
140
140
  display: flex;
141
141
  flex-direction: column;
142
142
  width: ${e=>L.sectionWidth.valuePx(e.windowSize)};
@@ -159,10 +159,10 @@ import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as J,M as q,a as nn,hc as tn,
159
159
  margin-right: ${e=>L.elementsMarginLeftRight.valuePx(e.windowSize)};
160
160
  margin-top: ${l.sp4};
161
161
  margin-bottom: ${l.sp0};
162
- `,Nn=s.div`
162
+ `,Gn=s.div`
163
163
  color: ${e=>e.theme.colors.primary};
164
164
  ${e=>`${We.title.style(e.windowSize)}`};
165
- `,Gn=s.div`
165
+ `,Nn=s.div`
166
166
  display: flex;
167
167
  flex-direction: column;
168
168
  `,Jn=s.div`
@@ -199,7 +199,7 @@ import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as J,M as q,a as nn,hc as tn,
199
199
  background-color: ${e=>e.theme.colors.grey5};
200
200
  border: 1px solid ${e=>e.theme.colors.grey3};
201
201
  border-radius: ${l.sp2};
202
- `,D=(e,n)=>`${e}.${n}`;function Kn({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=q.getLocalizedStrings().uncategorizedAccountsMapping,M=L.labelWidth.value(a),z=o.incomeRecommendation!=null?[o.incomeRecommendation]:[],I=R(o.incomeAccountHierachy,z),O=o.expenseRecommendation!=null?[o.expenseRecommendation]:[],k=R(o.expenseAccountHierarchy,O),$=o.incomeRecommendation?.account?.reason??"",S=c.tooltip.replace("__based__",$).replace("__account__",c.uncategorizedSection.incomeAccount),r=o.expenseRecommendation?.account?.reason??"",v=c.tooltip.replace("__based__",r).replace("__account__",c.uncategorizedSection.expenseAccount),h=o.incomeAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedIncomeAccountId),E=o.expenseAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedExpenseAccountId),F={valueContainer:f=>({...f,padding:`2px ${l.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:B}=fe(),_=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(Hn,{windowSize:a,children:[t.jsx(Nn,{windowSize:a,children:c.uncategorizedSection.heading}),t.jsxs(qn,{windowSize:a,children:[t.jsxs(Wn,{windowSize:a,children:[t.jsx(Jn,{windowSize:a,iconColor:_,isDarkMode:p.mode==="dark",children:t.jsx(Yn,{})}),t.jsxs(Gn,{children:[t.jsx(Un,{windowSize:a,children:c.uncategorizedSection.title}),t.jsx(Qn,{children:c.uncategorizedSection.subTitle})]})]}),t.jsx(Zn,{children:t.jsxs(Xn,{windowSize:a,children:[t.jsx(oe,{isLoading:!1,label:{label:c.uncategorizedSection.incomeLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.incomeRecommendation!=null,name:D(e,"incomeAccount"),placeholder:c.placeholder.incomePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:f=>ie(f,o.incomeAccountList),defaultValue:{selectedOption:h?.qboId,allOptions:I},style:{width:"100%"},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.incomeRecommendation!=null?{tooltipProps:{text:S},label:{label:o.incomeRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedIncomeAccountChecked"),defaultChecked:B(D(e,"isRecommendedIncomeAccountChecked"))}}:void 0},D(e,"incomeAccount")),t.jsx(oe,{isLoading:!1,label:{label:c.uncategorizedSection.expenseLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.expenseRecommendation!=null,name:D(e,"expenseAccount"),placeholder:c.placeholder.expensePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:f=>ie(f,o.expenseAccountList),defaultValue:{selectedOption:E?.qboId,allOptions:k},style:{borderBottom:`1px solid ${p.colors.grey3}`},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.expenseRecommendation!=null?{tooltipProps:{text:v},label:{label:o.expenseRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedExpenseAccountChecked"),defaultChecked:B(D(e,"isRecommendedExpenseAccountChecked"))}}:void 0},D(e,"expenseAccount"))]})})]})]})}const Q={titleWidth:new u(343,580,826,1048),setupDetailsRowGap:new u(12,d[5],d[5]),sectionsRowGap:new u(12,d[7],d[7]),subTitlePaddingTop:new u(12,d[3]),subTitlePaddingBottom:new u(d[3],d[3])},{common:m,uncategorizedAccountsMapping:V}=q.getLocalizedStrings(),De="uncategorizedAccountsMappingPage",H="uncategorizedAccountSection",x="filing1099Section",ne="billsAccountSection",te="reimbursementsAccountSection",Ne="vendorsAccountSection",et=s.div`
202
+ `,D=(e,n)=>`${e}.${n}`;function Kn({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=L.labelWidth.value(a),z=o.incomeRecommendation!=null?[o.incomeRecommendation]:[],I=R(o.incomeAccountHierachy,z),O=o.expenseRecommendation!=null?[o.expenseRecommendation]:[],k=R(o.expenseAccountHierarchy,O),$=o.incomeRecommendation?.account?.reason??"",S=c.tooltip.replace("__based__",$).replace("__account__",c.uncategorizedSection.incomeAccount),r=o.expenseRecommendation?.account?.reason??"",v=c.tooltip.replace("__based__",r).replace("__account__",c.uncategorizedSection.expenseAccount),h=o.incomeAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedIncomeAccountId),E=o.expenseAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedExpenseAccountId),F={valueContainer:f=>({...f,padding:`2px ${l.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:B}=fe(),_=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(qn,{windowSize:a,children:[t.jsx(Gn,{windowSize:a,children:c.uncategorizedSection.heading}),t.jsxs(Hn,{windowSize:a,children:[t.jsxs(Wn,{windowSize:a,children:[t.jsx(Jn,{windowSize:a,iconColor:_,isDarkMode:p.mode==="dark",children:t.jsx(Yn,{})}),t.jsxs(Nn,{children:[t.jsx(Un,{windowSize:a,children:c.uncategorizedSection.title}),t.jsx(Qn,{children:c.uncategorizedSection.subTitle})]})]}),t.jsx(Zn,{children:t.jsxs(Xn,{windowSize:a,children:[t.jsx(oe,{isLoading:!1,label:{label:c.uncategorizedSection.incomeLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.incomeRecommendation!=null,name:D(e,"incomeAccount"),placeholder:c.placeholder.incomePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:f=>ie(f,o.incomeAccountList),defaultValue:{selectedOption:h?.qboId,allOptions:I},style:{width:"100%"},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.incomeRecommendation!=null?{tooltipProps:{text:S},label:{label:o.incomeRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedIncomeAccountChecked"),defaultChecked:B(D(e,"isRecommendedIncomeAccountChecked"))}}:void 0},D(e,"incomeAccount")),t.jsx(oe,{isLoading:!1,label:{label:c.uncategorizedSection.expenseLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.expenseRecommendation!=null,name:D(e,"expenseAccount"),placeholder:c.placeholder.expensePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:f=>ie(f,o.expenseAccountList),defaultValue:{selectedOption:E?.qboId,allOptions:k},style:{borderBottom:`1px solid ${p.colors.grey3}`},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.expenseRecommendation!=null?{tooltipProps:{text:v},label:{label:o.expenseRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedExpenseAccountChecked"),defaultChecked:B(D(e,"isRecommendedExpenseAccountChecked"))}}:void 0},D(e,"expenseAccount"))]})})]})]})}const Q={titleWidth:new u(343,580,826,1048),setupDetailsRowGap:new u(12,d[5],d[5]),sectionsRowGap:new u(12,d[7],d[7]),subTitlePaddingTop:new u(12,d[3]),subTitlePaddingBottom:new u(d[3],d[3])},{common:m,uncategorizedAccountsMapping:V}=H.getLocalizedStrings(),De="uncategorizedAccountsMappingPage",q="uncategorizedAccountSection",x="filing1099Section",ne="billsAccountSection",te="reimbursementsAccountSection",Ge="vendorsAccountSection",et=s.div`
203
203
  display: flex;
204
204
  height: 100vh;
205
205
  width: 100%;
@@ -241,4 +241,4 @@ import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as J,M as q,a as nn,hc as tn,
241
241
  padding-top: ${e=>Q.subTitlePaddingTop.valuePx(e.windowSize)};
242
242
  padding-bottom: ${e=>Q.subTitlePaddingBottom.valuePx(e.windowSize)};
243
243
  text-align: ${e=>e.windowSize==="small"?"initial":"center"};
244
- `;function wt({currentTenant:e,accountMappingView:n,isFiling1099FeatureEnabled:o,isAccruedExpensesFeatureEnabled:a,meetingUrl:p,isSettings:c=!1,onAccountMappingChange:M,onSaveClick:z,onBackClick:I,onClickMenuIcon:O}){const k=ce(),$=se(),S=Ke(),[r,v]=X.useState(!1),h=en(n.saveState.fetchState),E=X.useRef(null),{incomeRecommendation:F,expenseRecommendation:B,billPayRecommendation:_,reimbursementsRecommendation:f,prepaidExpensesRecommendation:le,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:re}=n,de=F!=null?[F]:[],ue=B!=null?[B]:[],pe=_!=null?[_]:[],me=f!=null?[f]:[],ge=le,xe=ae,he=re,i=R(n.incomeAccountHierachy,de,"Accounts"),N=R(n.expenseAccountHierarchy,ue,"Accounts"),we=R(n.billPayAccountHierarchy,pe,"Accounts"),be=R(n.reimbursementsAccountHierarchy,me,"Accounts"),Re=R(n.prepaidExpensesAccountHierarchy,ge,"Accounts"),Ie=R(n.fixedAssetsAccountHierarchy,xe,"Accounts"),ve=R(n.accruedExpensesAccountHierarchy,he,"Accounts"),Ce=R(n.bankAccounts1099FilingAccountHierarchy,[],"Accounts"),Pe=R(n.expenseAccounts1099FilingAccountHierarchy,[],"Categories"),Le=J(n.expenseTypeList,V.filing1099Section.allExpenseTypes),Me=J(n.expense1099TypeList,V.filing1099Section.all1099Types),Ge=J(n.boxTypesList.int,V.filing1099Section.allBoxes),Je=J(n.boxTypesList.misc,V.filing1099Section.allBoxes),Ue=J(n.boxTypesList.nec,V.filing1099Section.allBoxes),ye={int:Ge,misc:Je,nec:Ue},b=nn({mode:"all",defaultValues:Be(n,i,N,we,be,Re,Ie,ve,Ce,Pe,Le,Me,ye),resetOptions:{keepDirtyValues:!0},values:Be(n,i,N,we,be,Re,Ie,ve,Ce,Pe,Le,Me,ye)}),Qe=b.handleSubmit(w=>{const A=w[x].bankAccount.selectedOptions.length,g=w[x].expenseCategory1099.length,y=A===0&&g===1&&tn(w[x].expenseCategory1099[0]),j=w[x].expenseCategory1099,G=[];j.forEach((Y,T)=>{if(!y){const Oe=Y.accountId?.selectedOption,ke=Y.expenseType?.selectedOption,Ee=Y.type1099?.selectedOption,je=Y.boxType?.selectedOption;(Oe==null||Oe==="")&&(b.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),G.push(`${T}.accountId`)),(ke==null||ke==="")&&(b.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),G.push(`${T}.expenseType`)),(Ee==null||Ee==="")&&(b.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),G.push(`${T}.type1099`)),(je==null||je==="")&&(b.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),G.push(`${T}.boxType`))}}),G.length===0&&(A>0&&g>1&&Te(w[x].expenseCategory1099[0])||A>0&&g===1&&Te(w[x].expenseCategory1099[0])||y)&&z(w)}),Ye=async(w,A)=>{if(w.includes("isRecommendedIncomeAccountChecked")){const g=A[H].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;b.setValue(`${H}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(w.includes("isRecommendedExpenseAccountChecked")){const g=A[H].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;b.setValue(`${H}.expenseAccount`,{selectedOption:g,allOptions:N},{shouldValidate:!0})}if(w.includes("isRecommendedBillPayAccountChecked")){const g=A[ne].isRecommendedBillPayAccountChecked===!0?n.billPayRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousBillPayAccount?.qboId;b.setValue(`${ne}.billPayAccount`,{selectedOption:g,allOptions:we},{shouldValidate:!0})}if(w.includes("isRecommendedReimbursementsAccountChecked")){const g=A[te].isRecommendedReimbursementsAccountChecked===!0?n.reimbursementsRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousReimbursementsAccount?.qboId;b.setValue(`${te}.reimbursementsAccount`,{selectedOption:g,allOptions:be},{shouldValidate:!0})}if(w.includes("filing1099Section.expenseCategory1099")){const g=w.split(".").find(y=>!isNaN(Number(y)));if(g!==void 0){const y=parseInt(g,10),j=A[x].expenseCategory1099[y];j.accountId?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.accountId`),j.expenseType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.expenseType`),j.type1099?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.type1099`),j.boxType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.boxType`)}}if(w.includes("type1099")){const g=w?.split(".")?.find(y=>!isNaN(Number(y)));if(g!=null){const y=parseInt(g,10),j=A[x].expenseCategory1099[y].type1099?.selectedOption;b.setValue(`${x}.expenseCategory1099.${y}.boxType`,{selectedOption:m.strings.empty,allOptions:Ve(j??m.strings.empty,ye)},{shouldValidate:!0})}}M(A)};X.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&I?.()},[h,n.saveState.fetchState,I]),X.useEffect(()=>{const w=b.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Ye(g,A))});return()=>{w.unsubscribe()}});const ze=()=>n.fetchState==="Completed"&&(n.accountMappingLocalData?.selectedExpenseAccountId!==n.accountMappingLocalData?.previousExpenseAccount?.accountId||n.accountMappingLocalData?.selectedIncomeAccountId!==n.accountMappingLocalData?.previousIncomeAccount?.accountId||n.accountMappingLocalData?.selectedBillPayAccountId!==n.accountMappingLocalData?.previousBillPayAccount?.accountId||n.accountMappingLocalData?.selectedReimbursementsAccountId!==n.accountMappingLocalData?.previousReimbursementsAccount?.accountId||Z(n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds,n.accountMappingLocalData?.previousPrepaidExpensesAccount)||Z(n.accountMappingLocalData?.selectedFixedAssetsAccountIds,n.accountMappingLocalData?.previousFixedAssetsAccount)||Z(n.accountMappingLocalData?.selectedAccruedExpensesAccountIds,n.accountMappingLocalData?.previousAccruedExpensesAccount)||Z(n.accountMappingLocalData?.selectedBankAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousBankAccounts1099FilingAccount)||pn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Ze=n.fetchState!=="Completed",Xe={onOkClick:()=>{v(!1),I?.(),b.reset()},onCancelClick:()=>{v(!1)}};return t.jsxs(et,{ref:E,children:[t.jsx(cn,{title:c?m.settings.title.accounting:V.title,onBackClick:I,backgroundColor:k.colors.grey4,showBackButton:!c,showMenuIcon:c?$==="medium-compact"||$==="small":!1,onClickMenuIcon:O,source:"UncategorizedAccountsMappingPage"}),r===!0?t.jsx(sn,{titleComponent:t.jsx(an,{children:m.confirmationPopup.discardTitle}),descriptionComponent:t.jsx(ln,{children:m.confirmationPopup.discardDescription}),primaryButtonText:m.confirmationPopup.discard,secondaryButtonText:m.confirmationPopup.cancel,action:Xe,proceedButtonVariant:"danger"}):null,t.jsxs(nt,{windowSize:$,children:[t.jsx(it,{windowSize:$,children:V.subTitle}),Ze===!1?t.jsx(rn,{...b,children:t.jsx("form",{id:Fe(De),onSubmit:Qe,children:t.jsxs(tt,{windowSize:$,children:[U.hasFullOrAdminLevelAccess(S.loggedInUserRole??[])?t.jsx(Kn,{sectionId:H,containerRef:E.current,accountMappingView:n}):null,U.hasBillPayAccessible(e,S.loggedInUserRoleMap)?t.jsx(Ln,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,U.hasReimbursementAccessible(e,S.loggedInUserRoleMap)?t.jsx(_n,{sectionId:te,containerRef:E.current,accountMappingView:n}):null,U.hasFullOrAdminLevelAccess(S.loggedInUserRole??[])?t.jsx(wn,{sectionId:Ne,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:n.accruedExpensesAccountHierarchy,accruedExpensesAccountList:n.accruedExpensesAccountList,accruedExpensesRecommendations:n.accruedExpensesRecommendation,fixedAssetsAccountHierarchy:n.fixedAssetsAccountHierarchy,fixedAssetsAccountList:n.fixedAssetsAccountList,fixedAssetsRecommendations:n.fixedAssetsRecommendation,prepaidExpensesAccountHierarchy:n.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:n.prepaidExpensesAccountList,prepaidExpensesRecommendations:n.prepaidExpensesRecommendation,selectedAccruedExpensesAccountIds:n.accountMappingLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:n.accountMappingLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:a}):null,o&&U.isVendorsTabVisible(S.loggedInUserRoleMap)?t.jsx(dn,{sectionId:x,accountMappingView:n,containerRef:E.current,isSettingsPage:!0}):null]})})}):t.jsx(ot,{children:t.jsx(un,{size:"ExtraLarge",start:!0})})]}),ze()===!0?t.jsx(mn,{formId:Fe(De),primaryBtn:{label:m.footer.save,style:{width:"82px"},isLoading:n.saveState.fetchState==="In-Progress",isDisabled:n.saveState.fetchState==="In-Progress"},cancelBtn:{label:m.footer.cancel,style:{width:"82px"},shouldResetOnCancel:!0,onClick:()=>{v(!0)}}}):null,c?null:t.jsx(hn,{isFooterRendered:ze(),meetingUrl:p})]})}const Fe=e=>`${e}_form`,Be=(e,n,o,a,p,c,M,z,I,O,k,$,S)=>{const{accountMappingLocalData:r,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:F}=e,B=r?.selectedIncomeAccountId===v?.account?.accountId,_=r?.selectedExpenseAccountId===h?.account?.accountId,f=r?.selectedBillPayAccountId===E?.account?.accountId,le=r?.selectedReimbursementsAccountId===F?.account?.accountId,ae=r?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===r.selectedIncomeAccountId):void 0,re=r?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===r.selectedExpenseAccountId):void 0,de=r?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===r.selectedBillPayAccountId):void 0,ue=r?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===r.selectedReimbursementsAccountId):void 0,pe=r?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>r.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],me=r?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>r.selectedFixedAssetsAccountIds.includes(i.accountId)):[],ge=r?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>r.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],xe=r?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>r.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],he=r?.selectedExpenseAccounts1099FilingAccountIds!=null?r.selectedExpenseAccounts1099FilingAccountIds.map(i=>({accountId:i.accountId??m.strings.empty,tax1099Config:{expenseType1099:i.expenseType??m.strings.empty,type1099:i.type1099??m.strings.empty,boxType:i.boxType??m.strings.empty}})):[];return{[x]:{bankAccount:{selectedOptions:xe.map(i=>i.qboId).filter(i=>i!=null),allOptions:I},expenseCategory1099:he.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(N=>N.accountId===i.accountId)?.qboId??m.strings.empty,allOptions:O},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:k},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:Ve(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[H]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:B,expenseAccount:{selectedOption:re?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:_},[ne]:{billPayAccount:{selectedOption:de?.qboId,allOptions:a},isRecommendedBillPayAccountChecked:f},[te]:{reimbursementsAccount:{selectedOption:ue?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:le},[Ne]:{prepaidExpensesAccount:{selectedOptions:pe.map(i=>i.qboId).filter(i=>i!=null),allOptions:c},fixedAssetsAccount:{selectedOptions:me.map(i=>i.qboId).filter(i=>i!=null),allOptions:M},accruedExpensesAccount:{selectedOptions:ge.map(i=>i.qboId).filter(i=>i!=null),allOptions:z}}}};export{wt as default};
244
+ `;function wt({currentTenant:e,accountMappingView:n,isFiling1099FeatureEnabled:o,isAccruedExpensesFeatureEnabled:a,meetingUrl:p,isSettings:c=!1,onAccountMappingChange:M,onSaveClick:z,onBackClick:I,onClickMenuIcon:O}){const k=ce(),$=se(),S=Ke(),[r,v]=X.useState(!1),h=en(n.saveState.fetchState),E=X.useRef(null),{incomeRecommendation:F,expenseRecommendation:B,billPayRecommendation:_,reimbursementsRecommendation:f,prepaidExpensesRecommendation:le,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:re}=n,de=F!=null?[F]:[],ue=B!=null?[B]:[],pe=_!=null?[_]:[],me=f!=null?[f]:[],ge=le,xe=ae,he=re,i=R(n.incomeAccountHierachy,de,"Accounts"),G=R(n.expenseAccountHierarchy,ue,"Accounts"),we=R(n.billPayAccountHierarchy,pe,"Accounts"),be=R(n.reimbursementsAccountHierarchy,me,"Accounts"),Re=R(n.prepaidExpensesAccountHierarchy,ge,"Accounts"),Ie=R(n.fixedAssetsAccountHierarchy,xe,"Accounts"),ve=R(n.accruedExpensesAccountHierarchy,he,"Accounts"),Ce=R(n.bankAccounts1099FilingAccountHierarchy,[],"Accounts"),Pe=R(n.expenseAccounts1099FilingAccountHierarchy,[],"Categories"),Le=J(n.expenseTypeList,V.filing1099Section.allExpenseTypes),Me=J(n.expense1099TypeList,V.filing1099Section.all1099Types),Ne=J(n.boxTypesList.int,V.filing1099Section.allBoxes),Je=J(n.boxTypesList.misc,V.filing1099Section.allBoxes),Ue=J(n.boxTypesList.nec,V.filing1099Section.allBoxes),ye={int:Ne,misc:Je,nec:Ue},b=nn({mode:"all",defaultValues:Be(n,i,G,we,be,Re,Ie,ve,Ce,Pe,Le,Me,ye),resetOptions:{keepDirtyValues:!0},values:Be(n,i,G,we,be,Re,Ie,ve,Ce,Pe,Le,Me,ye)}),Qe=b.handleSubmit(w=>{const A=w[x].bankAccount.selectedOptions.length,g=w[x].expenseCategory1099.length,y=A===0&&g===1&&tn(w[x].expenseCategory1099[0]),j=w[x].expenseCategory1099,N=[];j.forEach((Y,T)=>{if(!y){const Oe=Y.accountId?.selectedOption,ke=Y.expenseType?.selectedOption,Ee=Y.type1099?.selectedOption,je=Y.boxType?.selectedOption;(Oe==null||Oe==="")&&(b.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),N.push(`${T}.accountId`)),(ke==null||ke==="")&&(b.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),N.push(`${T}.expenseType`)),(Ee==null||Ee==="")&&(b.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),N.push(`${T}.type1099`)),(je==null||je==="")&&(b.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),N.push(`${T}.boxType`))}}),N.length===0&&(A>0&&g>1&&Te(w[x].expenseCategory1099[0])||A>0&&g===1&&Te(w[x].expenseCategory1099[0])||y)&&z(w)}),Ye=async(w,A)=>{if(w.includes("isRecommendedIncomeAccountChecked")){const g=A[q].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;b.setValue(`${q}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(w.includes("isRecommendedExpenseAccountChecked")){const g=A[q].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;b.setValue(`${q}.expenseAccount`,{selectedOption:g,allOptions:G},{shouldValidate:!0})}if(w.includes("isRecommendedBillPayAccountChecked")){const g=A[ne].isRecommendedBillPayAccountChecked===!0?n.billPayRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousBillPayAccount?.qboId;b.setValue(`${ne}.billPayAccount`,{selectedOption:g,allOptions:we},{shouldValidate:!0})}if(w.includes("isRecommendedReimbursementsAccountChecked")){const g=A[te].isRecommendedReimbursementsAccountChecked===!0?n.reimbursementsRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousReimbursementsAccount?.qboId;b.setValue(`${te}.reimbursementsAccount`,{selectedOption:g,allOptions:be},{shouldValidate:!0})}if(w.includes("filing1099Section.expenseCategory1099")){const g=w.split(".").find(y=>!isNaN(Number(y)));if(g!==void 0){const y=parseInt(g,10),j=A[x].expenseCategory1099[y];j.accountId?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.accountId`),j.expenseType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.expenseType`),j.type1099?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.type1099`),j.boxType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.boxType`)}}if(w.includes("type1099")){const g=w?.split(".")?.find(y=>!isNaN(Number(y)));if(g!=null){const y=parseInt(g,10),j=A[x].expenseCategory1099[y].type1099?.selectedOption;b.setValue(`${x}.expenseCategory1099.${y}.boxType`,{selectedOption:m.strings.empty,allOptions:Ve(j??m.strings.empty,ye)},{shouldValidate:!0})}}M(A)};X.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&I?.()},[h,n.saveState.fetchState,I]),X.useEffect(()=>{const w=b.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Ye(g,A))});return()=>{w.unsubscribe()}});const ze=()=>n.fetchState==="Completed"&&(n.accountMappingLocalData?.selectedExpenseAccountId!==n.accountMappingLocalData?.previousExpenseAccount?.accountId||n.accountMappingLocalData?.selectedIncomeAccountId!==n.accountMappingLocalData?.previousIncomeAccount?.accountId||n.accountMappingLocalData?.selectedBillPayAccountId!==n.accountMappingLocalData?.previousBillPayAccount?.accountId||n.accountMappingLocalData?.selectedReimbursementsAccountId!==n.accountMappingLocalData?.previousReimbursementsAccount?.accountId||Z(n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds,n.accountMappingLocalData?.previousPrepaidExpensesAccount)||Z(n.accountMappingLocalData?.selectedFixedAssetsAccountIds,n.accountMappingLocalData?.previousFixedAssetsAccount)||Z(n.accountMappingLocalData?.selectedAccruedExpensesAccountIds,n.accountMappingLocalData?.previousAccruedExpensesAccount)||Z(n.accountMappingLocalData?.selectedBankAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousBankAccounts1099FilingAccount)||pn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Ze=n.fetchState!=="Completed",Xe={onOkClick:()=>{v(!1),I?.(),b.reset()},onCancelClick:()=>{v(!1)}};return t.jsxs(et,{ref:E,children:[t.jsx(cn,{title:c?m.settings.title.accounting:V.title,onBackClick:I,backgroundColor:k.colors.grey4,showBackButton:!c,showMenuIcon:c?$==="medium-compact"||$==="small":!1,onClickMenuIcon:O,source:"UncategorizedAccountsMappingPage"}),r===!0?t.jsx(sn,{titleComponent:t.jsx(an,{children:m.confirmationPopup.discardTitle}),descriptionComponent:t.jsx(ln,{children:m.confirmationPopup.discardDescription}),primaryButtonText:m.confirmationPopup.discard,secondaryButtonText:m.confirmationPopup.cancel,action:Xe,proceedButtonVariant:"danger"}):null,t.jsxs(nt,{windowSize:$,children:[t.jsx(it,{windowSize:$,children:V.subTitle}),Ze===!1?t.jsx(rn,{...b,children:t.jsx("form",{id:Fe(De),onSubmit:Qe,children:t.jsxs(tt,{windowSize:$,children:[U.hasFullOrAdminLevelAccess(S.loggedInUserRole??[])?t.jsx(Kn,{sectionId:q,containerRef:E.current,accountMappingView:n}):null,U.hasBillPayAccessible(e,S.loggedInUserRoleMap)?t.jsx(Ln,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,U.hasReimbursementAccessible(e,S.loggedInUserRoleMap)?t.jsx(_n,{sectionId:te,containerRef:E.current,accountMappingView:n}):null,U.hasFullOrAdminLevelAccess(S.loggedInUserRole??[])?t.jsx(wn,{sectionId:Ge,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:n.accruedExpensesAccountHierarchy,accruedExpensesAccountList:n.accruedExpensesAccountList,accruedExpensesRecommendations:n.accruedExpensesRecommendation,fixedAssetsAccountHierarchy:n.fixedAssetsAccountHierarchy,fixedAssetsAccountList:n.fixedAssetsAccountList,fixedAssetsRecommendations:n.fixedAssetsRecommendation,prepaidExpensesAccountHierarchy:n.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:n.prepaidExpensesAccountList,prepaidExpensesRecommendations:n.prepaidExpensesRecommendation,selectedAccruedExpensesAccountIds:n.accountMappingLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:n.accountMappingLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:a}):null,o&&U.isVendorsTabVisible(S.loggedInUserRoleMap)?t.jsx(dn,{sectionId:x,accountMappingView:n,containerRef:E.current,isSettingsPage:!0}):null]})})}):t.jsx(ot,{children:t.jsx(un,{size:"ExtraLarge",start:!0})})]}),ze()===!0?t.jsx(mn,{formId:Fe(De),primaryBtn:{label:m.footer.save,style:{width:"82px"},isLoading:n.saveState.fetchState==="In-Progress",isDisabled:n.saveState.fetchState==="In-Progress"},cancelBtn:{label:m.footer.cancel,style:{width:"82px"},shouldResetOnCancel:!0,onClick:()=>{v(!0)}}}):null,c?null:t.jsx(hn,{isFooterRendered:ze(),meetingUrl:p})]})}const Fe=e=>`${e}_form`,Be=(e,n,o,a,p,c,M,z,I,O,k,$,S)=>{const{accountMappingLocalData:r,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:F}=e,B=r?.selectedIncomeAccountId===v?.account?.accountId,_=r?.selectedExpenseAccountId===h?.account?.accountId,f=r?.selectedBillPayAccountId===E?.account?.accountId,le=r?.selectedReimbursementsAccountId===F?.account?.accountId,ae=r?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===r.selectedIncomeAccountId):void 0,re=r?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===r.selectedExpenseAccountId):void 0,de=r?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===r.selectedBillPayAccountId):void 0,ue=r?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===r.selectedReimbursementsAccountId):void 0,pe=r?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>r.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],me=r?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>r.selectedFixedAssetsAccountIds.includes(i.accountId)):[],ge=r?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>r.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],xe=r?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>r.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],he=r?.selectedExpenseAccounts1099FilingAccountIds!=null?r.selectedExpenseAccounts1099FilingAccountIds.map(i=>({accountId:i.accountId??m.strings.empty,tax1099Config:{expenseType1099:i.expenseType??m.strings.empty,type1099:i.type1099??m.strings.empty,boxType:i.boxType??m.strings.empty}})):[];return{[x]:{bankAccount:{selectedOptions:xe.map(i=>i.qboId).filter(i=>i!=null),allOptions:I},expenseCategory1099:he.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(G=>G.accountId===i.accountId)?.qboId??m.strings.empty,allOptions:O},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:k},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:Ve(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[q]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:B,expenseAccount:{selectedOption:re?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:_},[ne]:{billPayAccount:{selectedOption:de?.qboId,allOptions:a},isRecommendedBillPayAccountChecked:f},[te]:{reimbursementsAccount:{selectedOption:ue?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:le},[Ge]:{prepaidExpensesAccount:{selectedOptions:pe.map(i=>i.qboId).filter(i=>i!=null),allOptions:c},fixedAssetsAccount:{selectedOptions:me.map(i=>i.qboId).filter(i=>i!=null),allOptions:M},accruedExpensesAccount:{selectedOptions:ge.map(i=>i.qboId).filter(i=>i!=null),allOptions:z}}}};export{wt as default};
@@ -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 K,l as T,cf as D,C as g,cg as G,f as A,q as J,m as X,K as Y,o as i,y as Q,r as B,s as Z,ap as ee}from"./index-tsOp9BQk.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,t as Q,q as B,r as Z,ap as ee}from"./index-C3eIsUEB.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(K,{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}`};
@@ -1,4 +1,4 @@
1
- import{a as R,fg as x,a2 as U,l as _,e as A,M as W,j as i,ca as q,F as G,_ as Q,fh as H,o as a,f as J,ck as K,a4 as X,C as y,a3 as Y,c7 as Z,ap as ee,ao as te,r as c}from"./index-tsOp9BQk.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)},f="additionalDocumentsForm",s="ssnCard";function fe(e){const{filesEndPoint:w,authParams:E,companyOfficer:t,updateStatus:u,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,B]=m.useState(!1),b=U(u.fetchState),j=t?.deleteFileStatusById??{},O=t?.updateFileStatusById??{},T=Object.values(j??{}).filter(o=>o!=null),L=_.reduceAllFetchState(T);m.useEffect(()=>{b==="In-Progress"&&u.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}})},[b,u,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")}),M=async(o,p)=>{const d=p[f].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&&q(()=>M(d,p))});return()=>{o.unsubscribe()}}),i.jsx(G,{...n,children:i.jsxs("form",{id:f,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",f)})}),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:f,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:f,primaryBtn:{label:h.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:u.fetchState==="In-Progress"},cancelBtn:{label:h.cancel,style:{width:r==="small"?"auto":"181px"},onClick:$},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(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-C3eIsUEB.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};
@@ -35,4 +35,4 @@ import{a as R,fg as x,a2 as U,l as _,e as A,M as W,j as i,ca as q,F as G,_ as Q,
35
35
  display: flex;
36
36
  flex-direction: column;
37
37
  justify-content: center;
38
- `;export{fe as g};
38
+ `;export{ue as g};
@@ -1 +1 @@
1
- import{a2 as o,M as k,j as i,hk as v,hl as y}from"./index-tsOp9BQk.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-C3eIsUEB.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-tsOp9BQk.js";import{b as d}from"./vendor-rkTZJa59.js";import{f as k}from"./ACHDetailsPage-BeF1WMnC-BWTFW_6p.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-DvJdsXOf-DX0Kkmja.js";import"./MagicLinkTitleSection-BPRyg1HR-D82FSUKq.js";import"./BankAccountSection-BKK0TqfR-iktNn3d0.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-C3eIsUEB.js";import{b as d}from"./vendor-rkTZJa59.js";import{f as k}from"./ACHDetailsPage-MP6kdpXK-Cin5vYxN.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-HvUMABu0-DrqrNnez.js";import"./MagicLinkTitleSection-DRMHVOzF-vSOOyfRm.js";import"./BankAccountSection-AuQLRvdb-Bwa0DuGQ.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,L 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 St,gF as $t,gG as ue,r as l,cb as Dt,a4 as jt,o,bh as $,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 zt,gJ as Ft,gK as Mt,f 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,y as Et,gN as Ut,bO as Ye,gO as qt,J as Ce,g as Je}from"./index-tsOp9BQk.js";import{b as S,n as a,j as Yt}from"./vendor-rkTZJa59.js";import{k as Jt}from"./SubTabSwitcher-B9ILKi1e-DAbNMl3T.js";import{f as Gt}from"./TransactionList-C8S87idW-CkmfZ-_y.js";import{R as Kt}from"./TrendWithTransactions-wA_XpWa7-CiZEQQ3v.js";import{o as Qt,t as Xt}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import{C as Zt}from"./LabeledAddressValueField-CLeHoJsD-lkNMl3uF.js";import{Y as es}from"./LabeledDropDownFormattedTextField-CEhwMb_t-DelBUgv4.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-BYcXwroy-DxqwCE3J.js";import"./commonDimensions-BhQMg8M1-BL_2J79f.js";import"./TrendChart-BVaBWGSG-Bsmd11nW.js";import"./chartTypes-eIJ-SPRj-DNmHJom3.js";import"./toCOABalancesWithID-BzuCDtG--VHioxKWJ.js";import"./toChartData-CYJPtvhS-C0w2egjH.js";import"./NoDataChart-DUJ9H-CB-CJSw-339.js";import"./InsightsSection-B95Utg4C-D7fPPHgQ.js";import"./NavigationDots-D5YXMwOb-DwbgBSQV.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,t as Et,gN as Ut,bO as Ye,gO as qt,J as Ce,y as Je}from"./index-C3eIsUEB.js";import{b as $,n as a,j as Yt}from"./vendor-rkTZJa59.js";import{k as Jt}from"./SubTabSwitcher-BKm9FxhL-euRzTmRU.js";import{f as Gt}from"./TransactionList-C0xK6_zI-BWkO5U-i.js";import{R as Kt}from"./TrendWithTransactions-ibwuOssC-C0qp9MFm.js";import{o as Qt,t as Xt}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import{C as Zt}from"./LabeledAddressValueField-YuLcra47-D1rCVkct.js";import{Y as es}from"./LabeledDropDownFormattedTextField-DYRkxlY--C9ZM89bQ.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-CZKWkdxd-BeOlY6b0.js";import"./commonDimensions-WRL2ZVK_-BkSU0Zqq.js";import"./TrendChart-D07k3uRr-DkExi6rv.js";import"./chartTypes-CJmQ6FtI-XyTHIuvE.js";import"./toCOABalancesWithID-DTfegixr-INQY6aSS.js";import"./toChartData-CH5DcWUY-CUE_ejao.js";import"./NoDataChart-DNmdY5gQ-I17nHhNI.js";import"./InsightsSection-C9MHOCQd-B3v5Vy0i.js";import"./NavigationDots-CNwL0a7I-CifVGTqc.js";const ts=a.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: center;
@@ -43,13 +43,13 @@ import{M as N,u as Re,e as ne,C as g,L as fe,l as se,cc as xt,a as yt,gA as Ae,g
43
43
  row-gap: ${o.sp3};
44
44
  margin-bottom: ${e=>O.spendTrendsMarginBottom.valuePx(e.size)};
45
45
  background-color: ${e=>e.theme.colors.grey5};
46
- `,Se=a.div`
46
+ `,$e=a.div`
47
47
  display: flex;
48
48
  column-gap: ${e=>e.isMobile===!0?"unset":O.spendTrendsColumnGap.valuePx(e.size)};
49
49
  justify-content: space-between;
50
50
  width: ${e=>e.isMobile===!0?"100%":"unset"};
51
51
  align-items: center;
52
- `,$e=a.div`
52
+ `,Se=a.div`
53
53
  display: flex;
54
54
  column-gap: ${o.sp3};
55
55
  align-items: center;
@@ -112,7 +112,7 @@ import{M as N,u as Re,e as ne,C as g,L as fe,l 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(),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($e,{isMobile:h,children:[t.jsx(Nt,{width:l[6],height:l[6]}),t.jsx($,{width:140,height:l[6]}),t.jsx($,{width:70,height:l[5]})]}):t.jsxs($e,{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(Se,{size:m,isMobile:h,children:[...Array(3)].map((D,u)=>t.jsxs(hs,{children:[t.jsx($,{width:O.spendTrendHeadingSkeletonWidth.value(m),height:l[4]}),t.jsx(gs,{isMobile:h,children:t.jsx($,{width:O.spendTrendHeadingSkeletonWidth.value(m)/2,height:l[4]})})]},u))}):t.jsxs(Se,{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?Ft:Mt,registerOptions:{required:!!i.vendorDetailLocalData?.tin?.type,pattern:i.vendorDetailLocalData?.tin?.type===L.texts.ssn?Pt:zt},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};
@@ -168,7 +168,7 @@ import{M as N,u as Re,e as ne,C as g,L as fe,l 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,Ss=()=>$s,$s=[{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)},F=(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:F(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:F(w,"isRecommendedCategorySelected"),defaultChecked:K(F(w,"isRecommendedCategorySelected"))}}:void 0}),t.jsx(we,{isLoading:!1,label:{label:T.vendorDetails.class,width:_},zIndexOnFocus:!0,groupedSingleSelectField:{name:F(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:F(w,"isRecommendedClassSelected"),defaultChecked:K(F(w,"isRecommendedClassSelected"))}}:void 0}),t.jsx(Tt,{label:{label:T.vendorDetails.vendorOwner,width:_},userSingleSelectField:{name:F(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`
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};
@@ -219,12 +219,12 @@ import{M as N,u as Re,e as ne,C as g,L as fe,l as se,cc as xt,a as yt,gA as Ae,g
219
219
  );
220
220
  border-radius: ${o.sp2};
221
221
  background: ${e=>e.theme.colors.grey5};
222
- `,ze=a.div`
222
+ `,Fe=a.div`
223
223
  padding: ${o.sp3};
224
224
  display: flex;
225
225
  justify-content: space-between;
226
226
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
227
- `,zs=()=>t.jsxs(Ps,{children:[[...Array(1)].map((e,s)=>t.jsxs(Ie,{children:[t.jsx($,{width:120,height:l[4]}),t.jsx(Pe,{children:[...Array(3)].map((c,i)=>t.jsxs(ze,{children:[t.jsx($,{width:70,height:l[4]}),t.jsx($,{width:140,height:l[4]})]},i))})]},s)),[...Array(1)].map((e,s)=>t.jsxs(Ie,{children:[t.jsx($,{width:120,height:l[4]}),t.jsx(Pe,{children:[...Array(4)].map((c,i)=>t.jsxs(ze,{children:[t.jsx($,{width:70,height:l[4]}),t.jsx($,{width:140,height:l[4]})]},i))})]},s))]}),x=N.getLocalizedStrings(),{vendors:{vendorDetailPage:V},common:{footer:Fe}}=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",Fs=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%;
@@ -254,4 +254,4 @@ import{M as N,u as Re,e as ne,C as g,L as fe,l 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: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=S.useRef(null),[Q,X]=S.useState(!1),[ie,re]=S.useState(k.transactionListHeight.value()),Z=s?.selectedTabType,ee=Ss(),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=S.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]=S.useState(-1),st=r.vendorDetailLocalData?.contacts!=null&&r.vendorDetailLocalData?.contacts.length>0?r.vendorDetailLocalData?.contacts:be,[ot,at]=S.useState(ft(st)),nt=d=>{at(d),K?.(f?.vendorId??x.common.strings.empty,d)};S.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)};S.useEffect(()=>{s?.vendorViewDetails.vendorView?.saveStatus?.fetchState==="Completed"&&R?.()},[r]);const ct=S.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 z=v[y].isRecommendedCategorySelected===!0?r?.vendorDetailLocalData?.recommendedCategory?.accountId:r?.vendorBasic?.account?.accountId;C[y].vendorCategory={selectedOption:z,allOptions:v[y].vendorCategory.allOptions}}if(d.includes("isRecommendedClassSelected")){const z=v[y].isRecommendedClassSelected===!0?r.vendorDetailLocalData?.recommendedClass?.classId:r?.vendorBasic?.class?.classId;C[y].vendorClass={selectedOption:z,allOptions:v[y].vendorClass.allOptions}}if(d.includes("vendorCategory")){const z=C[y].vendorCategory.selectedOption===C[y].recommendedCategory?.accountId;C[y].isRecommendedCategorySelected=z}if(d.includes("vendorClass")){const z=C[y].vendorClass.selectedOption===C[y].recommendedClass?.classId;C[y].isRecommendedClassSelected=z}mt(C)};S.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(Fs,{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(zs,{})})}),j===!1&&r.vendorDetailLocalData!=null&&t.jsxs(We,{isPageLoading:j,children:[t.jsx(_e,{size:P,children:t.jsx(St,{...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($t,{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:Fe.save,isLoading:it,style:{width:k.buttonWidth.value(P)},isDisabled:!1},cancelBtn:{label:Fe.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};
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-tsOp9BQk.js";import{b as C}from"./vendor-rkTZJa59.js";import{y as b}from"./DomesticWireDetailsPage-CwYc-sKw-XNW-idse.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-BKK0TqfR-iktNn3d0.js";import"./MagicLinkTitleSection-BPRyg1HR-D82FSUKq.js";import"./BankAccountWarningSection-DvJdsXOf-DX0Kkmja.js";import"./MailingDetailsSection-BX5rIuJZ-8h9F_QfJ.js";import"./LabeledAddressValueField-CLeHoJsD-lkNMl3uF.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-C3eIsUEB.js";import{b as C}from"./vendor-rkTZJa59.js";import{y as b}from"./DomesticWireDetailsPage-vRHD5DmW-v4Oe5SWK.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-AuQLRvdb-Bwa0DuGQ.js";import"./MagicLinkTitleSection-DRMHVOzF-vSOOyfRm.js";import"./BankAccountWarningSection-HvUMABu0-DrqrNnez.js";import"./MailingDetailsSection-DgdAYgpS-CzYOsfT_.js";import"./LabeledAddressValueField-YuLcra47-D1rCVkct.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 ze,M 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 Oe,cd as C,o as s,ch as Re,gI as We,fK as qe,cl as He,gJ as Me,gK as Ke,ct as Ue,a4 as Ge,cv as Ye,cE as Ze,r as c,a3 as Qe,bh as P,c8 as _e,gQ as Je,f as I,eV as Xe,bO as et,y as ce,eE as tt,gR as st,gS as lt,gT as H,cF as it}from"./index-tsOp9BQk.js";import{b as y,n as a}from"./vendor-rkTZJa59.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-CEhwMb_t-DelBUgv4.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:R}){const E=oe(),u=ne.getLocalizedStrings().companyPassport,p=te.largeLabelWidth.value(E);return t.jsxs(t.Fragment,{children:[t.jsx(se,{type:"hidden",value:"noAutoFill"}),t.jsx(nt,{style:R,children:t.jsxs(dt,{children:[t.jsx(st,{isDisabled:h,label:{label:u.address.street,width:p,showBullet:!0},addressField:{name:j(o,"street"),defaultValue:{addressString:i?.street[0]??"",addressValue:i!=null?de(i):void 0},placeholder:H(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:H(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:H(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`
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,t as ce,eE as tt,gR as st,gS as lt,gT as M,cF as it}from"./index-C3eIsUEB.js";import{b as y,n as a}from"./vendor-rkTZJa59.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-DYRkxlY--C9ZM89bQ.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};
@@ -28,12 +28,12 @@ import{e as oe,u as ze,M as ne,a as ke,cD as U,gP as de,ca as Ae,C as w,j as t,a
28
28
  background: ${e=>e.theme.colors.grey5};
29
29
  `,gt=a.div`
30
30
  margin-left: ${s.sp3};
31
- `,M=a.div`
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
- `,ht=()=>t.jsx(ct,{children:[...Array(1)].map((e,i)=>t.jsxs(ut,{children:[t.jsx(P,{style:{marginBottom:s.sp4},width:120,height:c[4]}),t.jsxs(pt,{children:[[...Array(5)].map((o,h)=>t.jsxs(M,{children:[t.jsx(P,{width:70,height:c[4]}),t.jsx(P,{width:140,height:c[4]})]},h)),t.jsx(M,{children:t.jsx(P,{width:120,height:c[4]})}),t.jsx(gt,{children:[...Array(7)].map((o,h)=>t.jsxs(M,{children:[t.jsx(P,{width:70,height:c[4]}),t.jsx(P,{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`,D=(e,i)=>`${e}.${i}`,{spendManagement:St,common:r}=ne.getLocalizedStrings(),S=St.billPay.vendorCreation,k=r.labels,le=r.footer,Xt=e=>{const i=oe(),o=new AbortController,h=ze(),R=o.signal,{onVendorFiling1099UploadDetailsSave:E,vendorId:u,vendorFiling1099UploadDetailsViewState:p,onSaveChangesToLocalStore:v,vendorFiling1099UploadDetails:V,fetchVendorFetchStatus:G,onAddressEditHandler:ye,goBackToListPage: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,N=y.useRef(null),z=y.useRef(null),X=y.useRef(!1);y.useEffect(()=>{z.current===null&&d.legalName!=r.strings.empty&&p.vendor1099DetailsAutoFilledValues?.legalName===!0&&(z.current=d.legalName)},[d.legalName]),y.useEffect(()=>{N.current===null&&d.legalName!==r.strings.empty&&(N.current=d.legalName)},[d.legalName]),y.useEffect(()=>{V?.addressStatus?.addressToCreate&&p.vendor1099DetailsAutoFilledValues?.address===!0&&X.current===!1&&(_(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,R))}),{vendor1099DetailsAutoFilledValues:f}=p,ve=()=>f?.tin.type===!0||f?.tin.value===!0||f?.legalName===!0||f?.taxClassification===!0,je=async(x,n)=>{if(x!=null){const g={...n},Fe=g[l].legalName,Le=g[l].email,Pe=g[l].phone,De=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:Pe??r.strings.empty,fullName:d.contact?.fullName??r.strings.empty,id:d.contact?.id??r.strings.empty},taxClassification:De.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,Ne=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`),Ne.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?z.current:N.current)??r.strings.empty,backgroundColor:h.colors.grey4,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:t.jsx(Pt,{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(Dt,{windowSize:i,children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?z.current:N.current}):t.jsx(It,{children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?z.current:N.current}),T.fetchState==="Error"?t.jsxs(Tt,{children:[t.jsx(At,{}),t.jsxs(Nt,{children:[t.jsx(zt,{children:Ce}),t.jsx(kt,{children:Se})]})]}):null,ve()&&t.jsxs(Ot,{children:[t.jsx(B,{}),t.jsx(Rt,{children:S.vendorDetails.banner})]}),t.jsx(Oe,{...m,children:t.jsx("form",{id:K(l),onSubmit:$e,children:t.jsxs(Lt,{isLoading:b,children:[t.jsx(O,{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:D(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:D(l,pe),defaultValue:d.contact?.email,placeholder:S.vendorDetails.emailPlaceHolder,options:{required:!1}}}),t.jsx(A,{}),t.jsx(Re,{label:{label:k.phone,width:F,style:{marginLeft:s.sp4}},text:{name:D(l,ge),placeholder:S.vendorDetails.phonePlaceHolder,defaultValue:d.contact?.phone,autoComplete:"off",options:{required:!1}},style:{width:"auto"}}),t.jsx(A,{})]}),t.jsxs(Wt,{isLoading:b,children:[t.jsx(O,{children:f?.taxClassification===!0&&!b?t.jsx(B,{}):null}),t.jsxs(re,{children:[t.jsx(Bt,{width:F,windowSize:i,children:k.taxClassification}),t.jsx(Et,{size:i,labelWidth:F,children:t.jsx(We,{name:D(l,he),value:{allTypes:W?.map(x=>({code:x.code,name:x.name,label:x.name}))??[],selectedType:d.taxClassification},placeholderLabel:S.vendorDetails.taxClassificationPlaceHolder})})]})]}),t.jsx(A,{}),t.jsx(O,{children:(f?.tin.type===!0||f?.tin.value===!0)&&!b?t.jsx(B,{}):null}),t.jsx(re,{children:t.jsx(rt,{name:D(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:D(l,xe),placeholder:S.placeholders.tinValue,format:d.tin?.type===r.texts.ssn?Me:Ke,registerOptions:{required:!!d?.tin?.type,pattern:d.tin?.type===r.texts.ssn?qe:He},style:{width:"100%",height:s.sp6},defaultValue:d.tin?.value??r.strings.empty,maxLength:9,allowLeadingZeros:!0,autoComplete:"new-password",isDisabled:d.tin?.type===null?"disabled":void 0}})}),t.jsx(A,{}),t.jsxs(qt,{children:[t.jsx(O,{children:f?.address===!0&&!b?t.jsx(B,{}):null}),t.jsx(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`
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 ze,M as ne,a as ke,cD as U,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
- `,Pt=a(Qe)`
69
+ `,Dt=a(Qe)`
70
70
  cursor: pointer;
71
71
  color: ${e=>e.theme.colors.hero};
72
72
  width: ${s.sp4};
@@ -75,7 +75,7 @@ import{e as oe,u as ze,M as ne,a as ke,cD as U,gP as de,ca as Ae,C as w,j as t,a
75
75
  &:hover {
76
76
  color: ${e=>e.theme.colors.primary};
77
77
  }
78
- `,Dt=a(_e)`
78
+ `,Pt=a(_e)`
79
79
  color: ${e=>e.theme.colors.primary};
80
80
  margin-bottom: ${s.sp0};
81
81
  margin-right: ${s.sp3};
@@ -90,10 +90,10 @@ import{e as oe,u as ze,M as ne,a as ke,cD as U,gP as de,ca as Ae,C as w,j as t,a
90
90
  gap: ${s.sp2};
91
91
  padding: ${s.sp3} ${s.sp4};
92
92
  margin-bottom: ${s.sp3};
93
- `,Nt=a.div`
93
+ `,zt=a.div`
94
94
  display: flex;
95
95
  flex-direction: column;
96
- `,zt=a(et)`
96
+ `,Nt=a(et)`
97
97
  color: ${I.brandColorGoldDark};
98
98
  `,kt=a(ce)`
99
99
  color: ${I.brandColorGoldDark};
@@ -142,7 +142,7 @@ import{e as oe,u as ze,M as ne,a as ke,cD as U,gP as de,ca as Ae,C as w,j as t,a
142
142
  color: ${e=>e.theme.colors.primary};
143
143
  width: ${s.sp3};
144
144
  height: ${s.sp3};
145
- `,Ot=a.div`
145
+ `,Rt=a.div`
146
146
  display: flex;
147
147
  gap: ${s.sp2};
148
148
  border: 1px solid ${e=>e.theme.colors.grey3};
@@ -152,11 +152,11 @@ import{e as oe,u as ze,M as ne,a as ke,cD as U,gP as de,ca as Ae,C as w,j as t,a
152
152
  margin: ${s.sp3};
153
153
  margin-left: ${s.sp0};
154
154
  margin-right: ${s.sp0};
155
- `,Rt=a.span`
155
+ `,Ot=a.span`
156
156
  color: ${e=>e.theme.colors.hero};
157
157
  `,Wt=a.div`
158
158
  position: relative;
159
- `,O=a.div`
159
+ `,R=a.div`
160
160
  position: absolute;
161
161
  top: 20px;
162
162
  left: -${s.sp4};