@zeniai/web-cockpit-ui 1.14.14-qa → 1.14.15-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 (225) hide show
  1. package/dist/assets/{ACHDetailsPage-DzRJ2QAk-CD7bvBrj.js → ACHDetailsPage-DyEK-yAb-CR1iB_xc.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BFjLWbFj-B8php81u.js → AIPerformancePage-Do5bswa_-CdgPK33C.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-iz3OwpQ7-C_rGxBXY.js → AccountInfoPage-BBhgLi_k-BrzJFlaA.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-DqO5Kcep-Hi_ZRI3e.js → AccountInfoPageContent-BJqXMkH6-BzGTbIN9.js} +1 -1
  5. package/dist/assets/{AccountReconDetailsDrawerPage-kNZ0VZns-bS4LQ1sQ.js → AccountReconDetailsDrawerPage-CV09UnoU-l4pTZ2vA.js} +1 -1
  6. package/dist/assets/{AccountRow-CAXWtAin-BGG9HEwp.js → AccountRow-TlJ0aU9H-BM9KA8Rp.js} +1 -1
  7. package/dist/assets/{AccountsPromoCardStack-Dqrhr23F-C910Mcf5.js → AccountsPromoCardStack-D8Y5MNXA-C4cMa-NA.js} +1 -1
  8. package/dist/assets/{AddAddressForCardDrawer-D2IMZgZa-B-aO9Stn.js → AddAddressForCardDrawer-DKJpGW7r-0F7SORv2.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-qgqXvx0C-CiPgkIQp.js → AddToWalletPage-1gMvHWq2-CbJs4xPg.js} +1 -1
  10. package/dist/assets/{AgingReportsPage-CNWj8sV2-CLLqpf6D.js → AgingReportsPage-Bzn9xmRs-DzMv0HiR.js} +1 -1
  11. package/dist/assets/{AllUserItems--netGz7H-CJzpZ7a6.js → AllUserItems-BPSpj-dO-3CLmRBZX.js} +1 -1
  12. package/dist/assets/{ApAgingDetailPage-CxLaoiqg-BsazbW1l.js → ApAgingDetailPage-C2HUvxWk-DFYdmJfh.js} +1 -1
  13. package/dist/assets/{AppBasePage-CbUMSiOb-CrwHY3Fg.js → AppBasePage-C63xauck-BWBOM_23.js} +1 -1
  14. package/dist/assets/{AppDrawerContent-BNTS8MtE-DGIlwro-.js → AppDrawerContent-Cq8GkRBD-DMx8Mcso.js} +1 -1
  15. package/dist/assets/{ApprovalRulesSettingsPage-lFVUzKhw-BtcvSbhM.js → ApprovalRulesSettingsPage-zKh1CLv3-BIYZpY6g.js} +1 -1
  16. package/dist/assets/{ArAgingChart-BBavISMZ-Bg2WSdl_.js → ArAgingChart-Bs2fblA6-BsbEizCk.js} +1 -1
  17. package/dist/assets/{ArAgingDetailPage-Bk49E_4I-B9ITkdyZ.js → ArAgingDetailPage-BWsV1tQP-D86I5PY2.js} +1 -1
  18. package/dist/assets/{AttachmentView-g756MrON-Dx8kJ_wk.js → AttachmentView-BDkq5i_5-BO6ipJLN.js} +1 -1
  19. package/dist/assets/{BankAccountSection-C0U0fm6r-DEPr81SF.js → BankAccountSection-DL-Qgypb-qVlfhNvY.js} +1 -1
  20. package/dist/assets/{BankAccountWarningSection-GcaV2hCI-BQKm1Ol8.js → BankAccountWarningSection-PFOmZUmz-Bqvid317.js} +1 -1
  21. package/dist/assets/{BankConnectionsSettingsPage-YwtSaNry-Bd_-Nk2r.js → BankConnectionsSettingsPage-BiPEOltR-i9HyK4Qm.js} +1 -1
  22. package/dist/assets/{BillDetailPage-e0b0r_9U-C7RrAILe.js → BillDetailPage-nUoy5Pib-SqAso5S8.js} +1 -1
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-DZNOlmqa-vJ0wioqn.js → BillPayApprovalRuleDetailPage-uCd9CD_--DRTBOlZT.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-HvIHZYLp-DRglk4Bn.js → BillPayApprovalRulesPage-BsvzOO92-DBBsEfq5.js} +1 -1
  25. package/dist/assets/{BillPayPromoPage-BKRIBuWK-BqkTD413.js → BillPayPromoPage-D9tHxFrw-DLOlbZMx.js} +1 -1
  26. package/dist/assets/{BillPaySetUpPage-DVFYVrcF-CaXLevRO.js → BillPaySetUpPage-Ci__X7jC-CQdjr8_2.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-Boq7QJuJ-B5yYk5Zb.js → BillingSettingsPage-JcOqMK9G-B8TUnhBr.js} +1 -1
  28. package/dist/assets/{BillsBulkReviewDrawerPage-DB1RnMx6-CkQIDNyM.js → BillsBulkReviewDrawerPage-FeZEMsS6-Ce-L5sMw.js} +1 -1
  29. package/dist/assets/{BoxItem-C5PEWObZ-CeuLKKcA.js → BoxItem-BcQH7ATF-CgWI28ii.js} +1 -1
  30. package/dist/assets/BusinessVerificationPage-ClBQ39GB-Dp7StxAv.js +140 -0
  31. package/dist/assets/{CardNumberSubText-Qd4Nl4Ie-BDRMn3jX.js → CardNumberSubText-CRythvN3-BPNRschq.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-pMaAPWGY-D9Y3IKTQ.js → CashbackDetailPage-CDa_GOsq-D-9-JqVH.js} +1 -1
  33. package/dist/assets/{ChargeCardDetailPage-ZhB56XeA-D-PHMtiH.js → ChargeCardDetailPage-BVxvmvYF-Dz3Dkcri.js} +1 -1
  34. package/dist/assets/{ChargeCardListPage-3k973dhm-2eKPtsLs.js → ChargeCardListPage-Dk_9p-sM-CLfdE6hG.js} +1 -1
  35. package/dist/assets/{ChargeCardListTable-aotBBLcN-BjoQ3nLG.js → ChargeCardListTable-DLAZTf8n-CNRNdnEB.js} +1 -1
  36. package/dist/assets/{ChargeCardPromoPage-D5h6LEV7-CtqHAn85.js → ChargeCardPromoPage-COA7csMK-CXI_5Tho.js} +1 -1
  37. package/dist/assets/{ChargeCardSetupPage-DLhS4IXu-ClI3TH91.js → ChargeCardSetupPage-QPLpJN2z-BC_NFJKr.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-C9JupC6z-DmxpqXJ6.js → ChargeCardStatementsPage-DwJYJjcf-DEvRTjh8.js} +1 -1
  39. package/dist/assets/{ChargeCardUtils-DlCRcsWm-D__qzTWb.js → ChargeCardUtils-BbByGmi9-DEgVq9Nd.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-Cpt5a98f-dacal49t.js → ChaseOverlay-CvXMdD8r-BjJFL-eT.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-Nz2eeTkw-BpYeX6Ap.js → CheckDepositDrawerPage-Cfdkbh0L-DFqxsNxb.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-D_yuiPyJ-DvwXVdxx.js → CollapsableReportTable-BptltmMq-DGFCje0J.js} +1 -1
  43. package/dist/assets/CompanyOfficerDetailsSection-DTbhxCCJ-uAcyCJzT.js +260 -0
  44. package/dist/assets/{CompanyPassportCard-yl1IgKFI-PAYHKbkv.js → CompanyPassportCard-CRgbazO4-DnDR61ME.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-CVyMn0gX-B5YsJ6DE.js → CompanyPassportPage-wdWKvOuO-UVTXarrj.js} +1 -1
  46. package/dist/assets/{CompleteProfile-DzShtAr0-lZLdASXR.js → CompleteProfile-Cp_nXCBI-D_xHWKd0.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-C47O0k3A-DgYPkzlU.js → ConfettiBurst-tf23hrA_-CQK1q6oq.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-LadbvQ9C-BUhpPwKd.js → CreateOrEditVendorPage-DTbrZv48-UgMANJA2.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-BQKmQNsf-I4kqkHCD.js → CreditCardPaymentDrawerPage-CGGM52ND-gsvEVx3R.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentPlgSection-BKgF2tFu-DparH7B9.js → CreditCardPaymentPlgSection-BS99Rbz7-D3hONmqh.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-D_UXMdLl-CNFJ6MOy.js → CurrencySelectField-Cz1ZFZNL-Do8LBYx6.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-DYDUNktm-Cuul6Xm-.js → CustomerOnboardingActivationPage-Bw2z91CF-CXlsYQiE.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-DXWtttsb-CkJ9yVd4.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-IwCrs_Ni-BwoSRsex.js → CustomerOnboardingDetailPageSkeleton-BY4rv3eB-CqGuM0YC.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-BinWH6wJ-CzTA-Ar-.js → CustomerOnboardingNoStepsPage-ByTpLszW-NQIzex-L.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-mGYcMJc6-B5TFAAVl.js → CustomerOnboardingPage-eyRDjOy--Cv80zIzo.js} +4 -4
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-CMmP2rhp-sRUh6iMf.js → CustomerOnboardingProductSuitePage-C_GOhUsC-C7NxSpR8.js} +1 -1
  58. package/dist/assets/{Dashboard-B8ej675T-BXfFBFZn.js → Dashboard-DXTfxwrE-Df2X5_2C.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-D0g4Un-7-Bm03Ezvt.js → DashboardReportPage-C7LmV0rQ-DqW7yfxe.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-BiYFTagV-COtoJPkR.js → DepositAccTransactionItem-BH6np-wq-pvmH9-13.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-B7seT4iQ-DcnxHPIM.js → DepositAccTransactionListPage-BTZovTIK-dLGcWM1z.js} +1 -1
  62. package/dist/assets/{DomesticWireDetailsPage-c2Omt2uV-DlmFY2Kw.js → DomesticWireDetailsPage-DhM2CLtr-DepJOUT4.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-Ca73StXh-D0NZgBgD.js → DownloadOverlay-CwqxQGbr-CGdDh008.js} +1 -1
  64. package/dist/assets/{DrawerPage-DbQ3fJ0a-DXEqv1MQ.js → DrawerPage-C3k5XFW6-D1QbIJ62.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-BSGpToFc-CchXHa_A.js → EditPeoplePage-D2zQG-_T-BY4H9at4.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-CF4ITGWS-6ZvkVOwA.js → EditReimbursementDetailPage-DXLAtkkp-Cb7fe5V0.js} +1 -1
  67. package/dist/assets/{EntityDetailPage-CjjeYmrY-bmebsPCj.js → EntityDetailPage-_060OpVJ-Dl6JyUuQ.js} +1 -1
  68. package/dist/assets/{EntitySummarySection-CATUFkYD-CbbHQNn7.js → EntitySummarySection-0QXWkpbX-B1FOGhKX.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-DZJM8s1B-D66s2e8m.js → ExpenseAutomationOverviewPage-GPO42_rS-DYsIHfpN.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationPage-CJcg4JEX-BIBOqZFd.js → ExpenseAutomationPage-BQArYLAG-D24JhqEL.js} +1 -1
  71. package/dist/assets/{ExpressPayPage-DtAXlY7R-Ba2dQlX0.js → ExpressPayPage-DacK02lD-CBLCoj0U.js} +1 -1
  72. package/dist/assets/{FeaturePreviewPage-BsLKydgB-BPHzHuJw.js → FeaturePreviewPage-Bv0D92ik-F_nngpEs.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-CkJm4bPf-CPlDdB_W.js → FollowStepsSection-CMTo4gYl-U-WQSPk0.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-DmxSD6UV-BUfgnFpU.js → GlobalReviewListPage-BbI2YDxl-BJZeR8WE.js} +1 -1
  75. package/dist/assets/{HelpButton-BFbQbBAV-BQPDLXHd.js → HelpButton-Coe4ii48-CP7NC72-.js} +1 -1
  76. package/dist/assets/{InformationCardStack-BMrkstMK-C8LTAHrF.js → InformationCardStack-BIumm5SJ-1AXNePG9.js} +1 -1
  77. package/dist/assets/{InsightsCardStack-wYrlCPh0-D2rKcLyu.js → InsightsCardStack-nndLG-Gx-CPrz5cnd.js} +1 -1
  78. package/dist/assets/{InsightsSection-DncKJ7JM-ChN_oqlZ.js → InsightsSection-CSG5sVaE-B6JiP7yi.js} +1 -1
  79. package/dist/assets/{IntegrationsSettingsPage-xySXq7aa-C58pEBs2.js → IntegrationsSettingsPage-BRH3t6mo-DdFh5Rf1.js} +1 -1
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-CSqm7kj7-CiFzXT35.js → InternationalWireSwiftDetailsPage-vgA7iek9-DBrrwazq.js} +1 -1
  81. package/dist/assets/{InternationalWireVerificationPage-DUHW34SM-DlE-Wsjz.js → InternationalWireVerificationPage-DEIs1ydr-0N725pEo.js} +1 -1
  82. package/dist/assets/{InviteFormPage-FjAlfXw_-Dh7IBTtO.js → InviteFormPage-Bowy0arK-BdVkelsH.js} +1 -1
  83. package/dist/assets/{InvitePageListView-PObzTGOB-Df4c2HGS.js → InvitePageListView-DuXb15Ll-C1oqEYaE.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-BuqTZXW2-DraxkQIU.js → InvitePeoplePage-By3sTPj1-YDstidmS.js} +1 -1
  85. package/dist/assets/{InvoiceUploadSection-CZXO__Vx-BgqHdBYt.js → InvoiceUploadSection-B8OA6oqe-2tj6XHC5.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-CjsftuWA-CIBGJvCn.js → IssueChargeCardPage-BIL4e5I_-4QbaL8H_.js} +1 -1
  87. package/dist/assets/{LabeledAddressValue-CfUYrlxS-B7W2Dek5.js → LabeledAddressValue-BJ1dXCb1-KlPGwEsa.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-B5z2zp_k-CGSpumtp.js → LabeledAddressValueField-DZCn1w6m-DlnblRke.js} +1 -1
  89. package/dist/assets/{LabeledControlledCheckBoxField-CHl3uhk9-BFLBybV4.js → LabeledControlledCheckBoxField-CwiyOI1Z-D7LWnjIE.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-CP-IuKrc-DjM8Weti.js → LabeledCreatableSingleSelectField-yLzlQU6_-DKdnF88p.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-DyMGgcCu-Bgxu4H6-.js → LabeledDocumentField-gxNaFx2j-qq-lZmSF.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-Bism2Slt-BWwjKMX5.js → LabeledDropDownFormattedTextField-M_7KWHOd-hGN1wwbj.js} +1 -1
  93. package/dist/assets/{LabeledText-RBbOYz7n-DBpZsWkU.js → LabeledText-CO_4w9Rx-BHaswoQg.js} +1 -1
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B9Mu2WJq-Di4MWf5A.js → LabeledUserSingleSelectWithSubtitlesField-zPoNOgP7-Coi1U77m.js} +1 -1
  95. package/dist/assets/{LabeledZeniRolesDropDownField-BCvUNHGc-CO5qR-vY.js → LabeledZeniRolesDropDownField-C8-KfR-4-Bo19dflJ.js} +1 -1
  96. package/dist/assets/{LinkJETransactionPage-C4JGb7aV-328UsU_k.js → LinkJETransactionPage-CZVlsT4d-DWiZb23z.js} +1 -1
  97. package/dist/assets/{LowBalancePopup-BeDr-jas-CZ5XIvfc.js → LowBalancePopup-Dl5IXVvh-CJcvyvoh.js} +1 -1
  98. package/dist/assets/{MagicLinkACHDetailsPage-B8zPEOQv-Dla85qjg.js → MagicLinkACHDetailsPage-CP6ti0Ic-DSdPwaam.js} +1 -1
  99. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CGdUqm2t-or9ptgFU.js → MagicLinkDomesticWireDetailsPage-BhpSDeQW-Dfr8KlVS.js} +1 -1
  100. package/dist/assets/{MagicLinkInternationalWireDetailsPage-8hkLJ9A0-B0cV-OxG.js → MagicLinkInternationalWireDetailsPage-BXxTeh0G-CtvniFoq.js} +1 -1
  101. package/dist/assets/{MagicLinkSuccessPage-DWCZWHis-BetY1CoQ.js → MagicLinkSuccessPage-Bix48QB5-BI2C-LU1.js} +1 -1
  102. package/dist/assets/{MagicLinkTitleSection-u5U6e-ve-CH9mVJpo.js → MagicLinkTitleSection-DdTLuD-8-D3POGhAB.js} +1 -1
  103. package/dist/assets/{MailingDetailsSection-nhPvZjVn-sir6Tfnb.js → MailingDetailsSection-Bo_v3Gp2-KQtMHUYs.js} +1 -1
  104. package/dist/assets/{MeetingCalenderPopup-CUA73Qvk-DoxrAhy8.js → MeetingCalenderPopup-DlnppXL_-CUHiDz63.js} +1 -1
  105. package/dist/assets/{Menu-D2zz2q9--B_AhVrPl.js → Menu-B_GJLZiP-BW2ajxXL.js} +1 -1
  106. package/dist/assets/{MyBankConnectionsSettingsPage-CGZMdkpt-DdZf0Y6A.js → MyBankConnectionsSettingsPage-2DAYVmHh-GUdcUjZQ.js} +1 -1
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-BKFgjKZX-BF7kPRDf.js → MyPendingActivationChargeCardListPage-CWQq9D2t-ErEXa5Ab.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-BMRJLHbT-DBXZ0zCZ.js → MyProfileSettingsPage-imD_-Umc-QbWQNe6Z.js} +1 -1
  109. package/dist/assets/{NavBarWithPicker-BXotE7Lk-S3JyXTjR.js → NavBarWithPicker-D0Bv9P4m-CbuI_X1k.js} +1 -1
  110. package/dist/assets/{NavigationArrow-D-l9zblc-REpeCLdo.js → NavigationArrow-De1st3tA-D1UxRic2.js} +1 -1
  111. package/dist/assets/{NavigationDots-BXUbx14l-6QIteFmi.js → NavigationDots-BfJxPG2K-BkZqVum6.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-DtDgNdr1-LA7e2sKB.js → NewGlobalMerchantPage-euJK3CXB-saCWbHbN.js} +1 -1
  113. package/dist/assets/{NoDataChart-Bve5zpXV-CWu45raX.js → NoDataChart-D_S6Pfkm-C2Kc7qtF.js} +1 -1
  114. package/dist/assets/{NoDataTable-3ROU0Vbp-CI99S85V.js → NoDataTable-CLwNCXFE-D3npQzLx.js} +1 -1
  115. package/dist/assets/{NotFoundPage-DAo53P_6-Dftm7F3Z.js → NotFoundPage-JfbMP3OG-CXI7bNdG.js} +1 -1
  116. package/dist/assets/{NotificationSettingsPage-DcGcigHn-aQqj0_Qj.js → NotificationSettingsPage-YBgrQBb2-CFbgdfVP.js} +1 -1
  117. package/dist/assets/{NotificationsListConfig-oE-ICX7d-BF8EQwxW.js → NotificationsListConfig-TCmn6L9k-nr6vflWI.js} +1 -1
  118. package/dist/assets/{NotificationsPage-TCXj6rCg-BaNkn_3l.js → NotificationsPage-C3pnQT-K-DzeH8fmd.js} +1 -1
  119. package/dist/assets/{OpExByVendorPage-xWhiJMru-CE1GX5w_.js → OpExByVendorPage-7FEOhvd--CM9TYAHU.js} +1 -1
  120. package/dist/assets/{OverlayContainerPage-GWXnlbZH-BbWbCUrG.js → OverlayContainerPage-GWXnlbZH-LIk5K9-C.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-BamjcoA8-Bx0wvTBG.js → PandLWithForecastPage-D0f5zvhp-B7mneOVq.js} +1 -1
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Byvw69gz-mE6MxWqh.js → PaymentAccountSetupBillingAddressSection-CBvjcBEH-CXrtDUXk.js} +1 -1
  123. package/dist/assets/{PeoplePage-BYeGKWDm-C03lvJfM.js → PeoplePage-B-j04rvc-B9Gs58fo.js} +1 -1
  124. package/dist/assets/{PortfolioAllocationFormPage-C-l23Cwp-cpiqeU3l.js → PortfolioAllocationFormPage-yvAHgF_R-DmHT3I_l.js} +1 -1
  125. package/dist/assets/{PortfolioDetails-BRhzzSFg-DO-1SFen.js → PortfolioDetails-C-YfZonF-Di6ScpkZ.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-CP6ldspb-C0Np0Gj6.js → ProductsCarousel-9USsVLuf-A8Pb9na8.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-Jze9Y7gb-D1gxtikT.js → PromoBaseCards-OKpdHchW-i4Aus_7s.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-9VnW9Bu9-H93cd5b5.js → QBOConnectionDialog-BUr2NQiK-Aqi4uG-w.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-B1rw0-Q--zMoFTXwP.js → QBOSetupSection-Cmf7-3wv-a5e4QtQ4.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DEK0sHby-DrT2jHvA.js → ReimbursementApprovalRuleDetailPage-Dev4FHVt-C92gnL5H.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-D7dRwcKc-CLGfbhLw.js → ReimbursementApprovalRulesPage-BLMJY7El-CiLtyPS5.js} +1 -1
  132. package/dist/assets/{ReimbursementDetailPage-ZwlUAEc8-BqgpWdW7.js → ReimbursementDetailPage-BIyq0BC0-6zfZQkfP.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-CKuYFvqQ-DPri4GXp.js → ReimbursementPromoPage-Dox8Q_BC-sIFfcJ7t.js} +1 -1
  134. package/dist/assets/{ReimbursementSetUpPage-Rn1i_Dc1-CMeSSlT5.js → ReimbursementSetUpPage-VKXRSodl-BJwVjHfr.js} +1 -1
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BwVFxo9s-D9yi3bRo.js → ReimbursementsBulkReviewDrawerPage-BmUcVSjU-5gKW2h5e.js} +1 -1
  136. package/dist/assets/{ReloadCard-7VJ3paTm-CAZ4QKCl.js → ReloadCard-DZhxB7Ar-3pX1Dvm4.js} +1 -1
  137. package/dist/assets/{ReportTableViewSelector-BrPJNFJD-BCUhxgyI.js → ReportTableViewSelector-DSfx5ZD--DVGbGr0z.js} +1 -1
  138. package/dist/assets/{ReportsPage-CCTvsUrL-DQ0C9QaF.js → ReportsPage-CLH0u0Bh-DDZqu2t3.js} +1 -1
  139. package/dist/assets/{RevenueChart-CCWOE5TQ-CdghIL8Z.js → RevenueChart-BeqQveLu-BLMOp8Ij.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-Y6gEXgmb-DEYn6MSL.js → ReviewDetailsPage-Dq7hRX5W-Dpl9KJkf.js} +1 -1
  141. package/dist/assets/{ReviewOverlay-CjSSDflN-CPgx4xba.js → ReviewOverlay-BNHqYk2g-D0iT-J9q.js} +1 -1
  142. package/dist/assets/{RoleWithToolTip-CFMnZiem-C4TYM06A.js → RoleWithToolTip-Cob2-Ppj-C_s6kG4X.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DVyLY2NJ-BsTj20p_.js → ScheduleDetailsFixedAssetsPage-QE0wa196-BDGpj2am.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-Dl76cUvA-Fycb4MqL.js → ScheduleDetailsPage-BVyX-Z0H-DEBuXdBs.js} +1 -1
  145. package/dist/assets/{ScheduleSequenceTable-CrxRnZch-BOdDiuzm.js → ScheduleSequenceTable-D1FYbPfU-DU9S07xt.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-wx53GRGK.js → ScreenRoutes-Xcu_dsY9.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-Cv2os5ln-DPXBfr4R.js → SetUpAccountSection-CYn2o43t-Bpg0pToC.js} +1 -1
  148. package/dist/assets/{SetUpDefaultSection-BX28nGOx-BuMe3hLW.js → SetUpDefaultSection-C0-L2ZyA-COKZA6T-.js} +1 -1
  149. package/dist/assets/{SignIn-Bu5OrOXS-wy_xaGKY.js → SignIn-BIxTodeo-BLdheQTi.js} +1 -1
  150. package/dist/assets/{SignInScreen-JF_uZaEa.js → SignInScreen-BM8ypOO4.js} +1 -1
  151. package/dist/assets/{SpendManagementListViewPage-C5e1RRp_-BVnkblC5.js → SpendManagementListViewPage-DXtvYcrg-iTUPRfV0.js} +3 -3
  152. package/dist/assets/{SpendManagementPerTabPage-DZVY7vQ1-0CpCBBdQ.js → SpendManagementPerTabPage-Cn-UsxaR-C3J9zkot.js} +1 -1
  153. package/dist/assets/{SpendManagementSection-BJMJInkt-B5d_jbBf.js → SpendManagementSection-BBR4aFIT-JT9BxyTy.js} +1 -1
  154. package/dist/assets/{SpendMgmtSetupAccountSection-chezHlCW-BQkEXaOg.js → SpendMgmtSetupAccountSection-DedLETSm-D7MuWTH4.js} +1 -1
  155. package/dist/assets/{StatementItem-BFkpLh_o-y7ZGW1Vq.js → StatementItem-CnpTW8qb-BYZ_h7VG.js} +1 -1
  156. package/dist/assets/{StatementsPage-DWVI5t34-C9LKXGoX.js → StatementsPage-Pdhh6wDA-D6S4uOd7.js} +1 -1
  157. package/dist/assets/{StatusSwitcher-LVFF4Wxb-KYvjAXRF.js → StatusSwitcher-CY3fhZpk-CRtOh969.js} +1 -1
  158. package/dist/assets/{SubTabSwitcher-BCJ6BY1u-CWKSNIjs.js → SubTabSwitcher-BgzS4on6-mKZmBEH_.js} +1 -1
  159. package/dist/assets/{SummaryCard-BauMuQ8s-Cp_w4Wqg.js → SummaryCard-DB_r9qW_-CTe61HcF.js} +1 -1
  160. package/dist/assets/{TaskManagementPage-vrN0Gf0_-BQxIgTC4.js → TaskManagementPage-B0gR2j1v-CS51JkmU.js} +1 -1
  161. package/dist/assets/{TimeRangeSwitcher-CNA64z6j-BjqPYk8T.js → TimeRangeSwitcher-BbdpFsMU-BPeXdkc0.js} +1 -1
  162. package/dist/assets/{TimeframeSwitcher-C1Yz0y7I-CSIg0wbX.js → TimeframeSwitcher-CUpsv6b1-L84OUMou.js} +1 -1
  163. package/dist/assets/{TimeframeSwitcherWithToggle-C_Ah5N3M-BY1ssq39.js → TimeframeSwitcherWithToggle-DZbOWm8e-BWeA2PCI.js} +1 -1
  164. package/dist/assets/{TopExCard-Jo-Rn1MM-C8jicn1C.js → TopExCard-Bn5xXUvj-D1V8RPTg.js} +1 -1
  165. package/dist/assets/{TopExDetailPage-DDbJXH3w-CD_BWdGs.js → TopExDetailPage-DRjO-pGo-B7tFNTC-.js} +1 -1
  166. package/dist/assets/{TransactionDetailPage-BuIbGizX-F9O378Ra.js → TransactionDetailPage-L-yLO1SI-CIWP2d9W.js} +1 -1
  167. package/dist/assets/{TransactionList-CLKRxE0g-DNe71eGT.js → TransactionList-CSb5yqQj-DuZWKirU.js} +1 -1
  168. package/dist/assets/{TransactionListBig-B5vQkCC2-a4zGr6G6.js → TransactionListBig-f2x4xrky-DwUpevlR.js} +1 -1
  169. package/dist/assets/{TransactionListPage-BqX_rZET-CUMQNYL_.js → TransactionListPage-XP6Axg1M-BXMcfFNW.js} +1 -1
  170. package/dist/assets/{TransactionVendorDetailPage-DkTOdWyJ-CKBEI1cd.js → TransactionVendorDetailPage-CY9kUYZc-Lru4_qR4.js} +1 -1
  171. package/dist/assets/{TransferDrawerPage-BOGBvRan-CjFpKlV5.js → TransferDrawerPage-DOMX4_HE-C4a3FolX.js} +1 -1
  172. package/dist/assets/{TreasuryOverviewPage-DyhWQzuM-fH7XT1iO.js → TreasuryOverviewPage-B01cSfUQ-CzhZxZKn.js} +2 -2
  173. package/dist/assets/{TreasuryPromoPage-DeahUeak-CT1FYSVG.js → TreasuryPromoPage-DC46ObGy-CFm5vR7T.js} +1 -1
  174. package/dist/assets/TreasurySetupPage-CiIqfQLR-CejuLzZM.js +146 -0
  175. package/dist/assets/{TreasuryStatementsPage-DjTS6UJU-v5QihWpg.js → TreasuryStatementsPage-C_pfPvgz-DmI7EzSk.js} +1 -1
  176. package/dist/assets/{TreasuryTaxLetterPage-B8-Rgr_d-DzbjM2nz.js → TreasuryTaxLetterPage-D-4Ntky2-xZV4fXfv.js} +1 -1
  177. package/dist/assets/{TreasuryTransferOrReviewPage-CWMEjwJl-D0XGTiiK.js → TreasuryTransferOrReviewPage-CjxiFUqO-JJCQbqAN.js} +1 -1
  178. package/dist/assets/{TrendChart-DZxa1hWw-DQJyr6Gq.js → TrendChart-DKIa4o8k-CoNPqTlA.js} +1 -1
  179. package/dist/assets/{TrendWithTransactions-DqF_gmA3-OahVeCao.js → TrendWithTransactions-BumhCIjm-gZh4UsjF.js} +1 -1
  180. package/dist/assets/{UncategorizedAccountsMappingPage-BTMqGJ-S-CIMe5xBe.js → UncategorizedAccountsMappingPage-C4Njvj_H-DztroIrS.js} +1 -1
  181. package/dist/assets/{UnitIntegrationPage-BypogBLd-DWGWwZzF.js → UnitIntegrationPage-D_tfUXdS-B3x8_h1N.js} +1 -1
  182. package/dist/assets/{UploadAdditionalDocumentOverlay-BtjgWIt2-TPUqMBUX.js → UploadAdditionalDocumentOverlay-CSdTPTA3-X7rEur2Q.js} +1 -1
  183. package/dist/assets/{Vendor2FAPopup-Cvht-fPJ-C_7afR47.js → Vendor2FAPopup-DgKVft1G-Bh4gZ5wc.js} +1 -1
  184. package/dist/assets/{VendorACHDetailsPage-UxL2Rrtg-DTdzfYXL.js → VendorACHDetailsPage-DdAbrbpS-CfYbL_d6.js} +1 -1
  185. package/dist/assets/{VendorDetailPage-D1W5LzEm-QwipvyBw.js → VendorDetailPage-CSPbUx-h-C1LwTfnG.js} +1 -1
  186. package/dist/assets/{VendorDomesticWireDetailsPage-42tTXqjf-6mVdshAx.js → VendorDomesticWireDetailsPage-GODvpEne-g15gbymX.js} +1 -1
  187. package/dist/assets/{VendorFiling1099EditablePage-C-s1YZ6j-sTOOAgLc.js → VendorFiling1099EditablePage-ByfEwSZJ-Dnk9uxWt.js} +1 -1
  188. package/dist/assets/{VendorFirstReviewPage-DNWyzefV-DvCg1v5F.js → VendorFirstReviewPage-B2-UtNMO-B9gZuu-S.js} +1 -1
  189. package/dist/assets/{VendorInternationalWireDetailsPage-BLN_3qXP-CM_mA6aB.js → VendorInternationalWireDetailsPage-DSziQ0jO-BQin9ttL.js} +1 -1
  190. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CK3lcupO-BMWjw1KX.js → VendorInternationalWireSwiftDetailsPage-Dqc7XLbW-WHIhq_gs.js} +1 -1
  191. package/dist/assets/{VendorsAccountsSection-DN_7lQ28-cEhDobar.js → VendorsAccountsSection-BLwMi5AB-Bd-223-b.js} +1 -1
  192. package/dist/assets/{WarningsDrawerPage-BO2PAioX-BhdINS-A.js → WarningsDrawerPage-3h7UME3Y-CKPc_4w8.js} +1 -1
  193. package/dist/assets/{ZeniAccountDetailPage-yp-KTRnk-Do84GYYz.js → ZeniAccountDetailPage-Dn70Xhjm-Bm3fagRu.js} +1 -1
  194. package/dist/assets/{ZeniAccountListViewPage-D5aqQNtX-BB0gnGLd.js → ZeniAccountListViewPage-C7CX6-Bl-CdiM8oGr.js} +1 -1
  195. package/dist/assets/{ZeniAccountNavBarPieces-VPw7D7l3-C2OS1zdz.js → ZeniAccountNavBarPieces-Cl1zQVNd-BoOmxgUm.js} +1 -1
  196. package/dist/assets/{ZeniAccountPromoPage-wCKqqpXU-Xl62BzvW.js → ZeniAccountPromoPage-CLufbB-B-CxZ93-O_.js} +1 -1
  197. package/dist/assets/{ZeniAccountSetupPage-C9Huhxgd-ClP-TxFI.js → ZeniAccountSetupPage-rLdRA3Ld-0f1innhT.js} +1 -1
  198. package/dist/assets/{ZeniCopyright-DFiO9ffO-CdZ1GVnQ.js → ZeniCopyright-BItiuePl-DMGV7d5T.js} +1 -1
  199. package/dist/assets/{ZeniTransferAmountSlider-CrkvbV6i-Ckvq_hVC.js → ZeniTransferAmountSlider-DYCK5UWr-pLWKMQLD.js} +1 -1
  200. package/dist/assets/{analyticsHelper-CcOQPReQ-Bxil0fX9.js → analyticsHelper-D4zFEqKN-Cv-Rt4Wa.js} +1 -1
  201. package/dist/assets/{analyticsHelper-DdGBglEP.js → analyticsHelper-D_rWzdzn.js} +1 -1
  202. package/dist/assets/{chartTypes-COEFDZb5-DwGNA7GB.js → chartTypes-yiqF7w9Y-C7Vh16CR.js} +1 -1
  203. package/dist/assets/{commonDimensions-CP6T7HqS-D48QOLbv.js → commonDimensions-PPvas5dK-BI_doeoz.js} +1 -1
  204. package/dist/assets/{detailCommon-Ce5EinV2-CYS83M8u.js → detailCommon-mCAXI64G-gkKdDA26.js} +1 -1
  205. package/dist/assets/{downloadPdf-D5vJmVtA-B3Fqszb0.js → downloadPdf-C3XpsGeN-BXwAdg40.js} +1 -1
  206. package/dist/assets/{index-Cvfy0zsh.js → index-DR9vSgqx.js} +6 -6
  207. package/dist/assets/{mapLoadingInProgressToTreeNode-rI4nf6KS-CK98QO6t.js → mapLoadingInProgressToTreeNode-7wU2HX2P-DM7OpgTV.js} +1 -1
  208. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CQQ7dl1d-uEBESQE9.js → mapSectionWithAcOnlyToTreeNode-dSxF1sWM-9rR9XYui.js} +1 -1
  209. package/dist/assets/{mapSpacerToTreeNode-Br4381dY-DvCypDQ4.js → mapSpacerToTreeNode-1mXbBuNs-D0-H7nmE.js} +1 -1
  210. package/dist/assets/{mapTimeframeBalancesToTreeNode-CFc2Dxqu-D_L54Bbm.js → mapTimeframeBalancesToTreeNode-DXVQrusd-BdiZmBVF.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-B-Zn7TpW-BH302By2.js → mapTimeframeBalancesToTreeNode-DtAULIDB-CEdGFH8Q.js} +1 -1
  212. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DaXzy5qa-Crsiejrh.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DAqn8gdX-BFVS7nhC.js} +1 -1
  213. package/dist/assets/{play-icon-nZkbdoFU-DLANNZGF.js → play-icon-NvLdXSYk-BtJZRy06.js} +1 -1
  214. package/dist/assets/{toCOABalancesWithID-COQYDD-b-D2r9WVRN.js → toCOABalancesWithID-C9fWPLt9-OoFxmlBV.js} +1 -1
  215. package/dist/assets/{toChartData-Djv4ERSl-BDHZyRCT.js → toChartData-BMDCuCgs-pMvlI-3e.js} +1 -1
  216. package/dist/assets/{treasuryColorHelper-D8HHUK60-C135QZF4.js → treasuryColorHelper-COfuUI3C-DV_5mX3C.js} +1 -1
  217. package/dist/assets/{uploadAttachment-BLy0prl2-WutsqSlB.js → uploadAttachment-DSku547V-Dvu5JOyk.js} +1 -1
  218. package/dist/assets/{uploadReceipts-D80JLNY4-CM61PF-k.js → uploadReceipts-D80JLNY4-jTx9mqdq.js} +1 -1
  219. package/dist/index.html +1 -1
  220. package/package.json +4 -4
  221. package/dist/assets/BusinessVerificationPage-JFwqav9V-DcT8aYGJ.js +0 -140
  222. package/dist/assets/CompanyOfficerDetailsSection-C3yfgjGi-Bd3_muTE.js +0 -232
  223. package/dist/assets/CustomerOnboardingContainerPage-D34Fz5xA-C6h4Jblo.js +0 -1
  224. package/dist/assets/DocumentSecurityBanner-CQSsX1R1-B63qiUpU.js +0 -29
  225. package/dist/assets/TreasurySetupPage-kCSON6p8-DfPMx5Ua.js +0 -152
@@ -1,4 +1,4 @@
1
- import{a as R,ge as M,M as $,j as e,F as T,T as f,c6 as q,cf as z,cc as G,l as K,o as a,ca as _,gf as H,a4 as W,c0 as Y,bo as Z,gg as J}from"./index-Cvfy0zsh.js";import{b as g,f as b,n}from"./vendor-CnQcJ2Lu.js";import{$ as Q}from"./LabeledAddressValue-CfUYrlxS-B7W2Dek5.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const t=$.getLocalizedStrings(),x="completeProfilePage",r="basicDetailsSection",y="addressSection",d=(o,m)=>`${o}.${m}`,he=({userEmail:o,googleAPIKey:m,otpChallenge:j,sendOtpStatus:v,verifyOtpStatus:h,saveStatus:w,onSave:u,onGetOtp:P,onVerifyOtp:S,onResendOtp:O})=>{const[s,c]=g.useState(!1),[V,C]=g.useState(!1),i=R({mode:"onChange",reValidateMode:"onChange",defaultValues:{basicDetailsSection:{name:{firstName:"",lastName:""},email:o,dateOfBirth:void 0,phone:"",address:void 0}}}),F=M({control:i.control,name:`${r}.address`}),{dateFormat:I}=$.getLocalizedStrings(),N=i.handleSubmit(l=>{u&&u(l)}),L=()=>{const l=i.getValues(`${r}.phone`);l!=null&&l.trim().length>0&&P(l)},k=(l,p)=>{S(l,p)},D=l=>{l!=null&&l.trim().length>0&&O(l)},B=()=>{c(!0)},E=()=>{c(!1)},A=()=>{const l=i.getValues(`${y}`);if(l!=null){const p=J(l);i.setValue(`${r}.address`,p)}c(!1)};return e.jsxs(U,{children:[e.jsxs(X,{children:[e.jsxs(ee,{children:[s&&e.jsx(oe,{onClick:E}),t.completeProfile.title]}),e.jsx(te,{children:e.jsx(T,{...i,children:e.jsxs("form",{id:`${x}_form`,onSubmit:N,children:[e.jsx(f,{controller:s===!1,children:e.jsxs(b.Fragment,{children:[e.jsx(q,{isDisabled:"disabled",showAdditionalInfoLabel:!1,label:{label:t.common.labels.email,width:168},style:{width:"100%"},text:{type:"text",name:d(r,"email")}}),e.jsx(z,{isDisabled:void 0,label:{label:t.common.labels.name,width:168},style:{width:"100%"},nameField:{name:d(r,"name"),placeHolder:{firstName:t.common.placeholder.firstNamePlaceholder,lastName:t.common.placeholder.lastNamePlaceholder,name:t.common.placeholder.namePlaceholder},showFullNameError:!0,registerOptions:{required:!0}},errorInfoLabel:""}),e.jsx(G,{isOptional:!0,label:{label:t.common.labels.dob,width:168},style:{width:"100%"},isDisabled:void 0,dateField:{name:d(r,"dateOfBirth"),placeholder:t.common.placeholder.dobPlaceholder,dateFormat:I.visual.defaultInput,autoComplete:"off",maxDate:K.dateNow().subtract(18,"year")}}),e.jsx(Q,{isOptional:!0,label:{label:t.common.labels.address,width:168},addressValue:{placeholder:t.common.placeholder.addressPlaceholder,address:F,onClick:B},style:{width:"100%",padding:`${a.sp2} ${a.sp2} ${a.sp2} ${a.sp0}`}}),e.jsx(_,{isOptional:!0,label:{label:t.common.labels.phone,width:168},style:{width:"100%"},text:{name:d(r,"phone"),placeholder:t.common.placeholder.phonePlaceholder,defaultValue:"",autoComplete:"new-password"},errorInfoLabel:"",verificationErrorInfoLabel:t.common.errorMessage.invalidPhoneNumber,isPopupOpen:V,phoneVerifyButtonProps:{otpChallenge:j,showOtpButton:!0,onGetOtp:L,onVerifyOtp:k,onResendOtp:D,isPhoneVerified:h.fetchState==="Completed",phoneVerificationStatus:h,getOtpStatus:v,openPopup:()=>{C(!0)},focusNotRequired:!0}})]})}),e.jsx(f,{controller:s===!0,children:e.jsx(b.Fragment,{children:e.jsx(H,{sectionId:y,googleAPIKey:m,isSubPage:!0})})})]})})})]}),e.jsx(W,{formId:s?void 0:`${x}_form`,primaryBtn:{label:s?t.companyPassport.address.saveAddress:t.common.footer.save,type:s?"button":"submit",onClick:s?A:void 0,isLoading:w.fetchState==="In-Progress"},showCancel:!1})]})},U=n.div`
1
+ import{a as R,ge as M,M as $,j as e,F as T,T as f,c6 as q,cf as z,cc as G,l as K,o as a,ca as _,gf as H,a4 as W,c0 as Y,bo as Z,gg as J}from"./index-DR9vSgqx.js";import{b as g,f as b,n}from"./vendor-CnQcJ2Lu.js";import{$ as Q}from"./LabeledAddressValue-BJ1dXCb1-KlPGwEsa.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const t=$.getLocalizedStrings(),x="completeProfilePage",r="basicDetailsSection",y="addressSection",d=(o,m)=>`${o}.${m}`,he=({userEmail:o,googleAPIKey:m,otpChallenge:j,sendOtpStatus:v,verifyOtpStatus:h,saveStatus:w,onSave:u,onGetOtp:P,onVerifyOtp:S,onResendOtp:O})=>{const[s,c]=g.useState(!1),[V,C]=g.useState(!1),i=R({mode:"onChange",reValidateMode:"onChange",defaultValues:{basicDetailsSection:{name:{firstName:"",lastName:""},email:o,dateOfBirth:void 0,phone:"",address:void 0}}}),F=M({control:i.control,name:`${r}.address`}),{dateFormat:I}=$.getLocalizedStrings(),N=i.handleSubmit(l=>{u&&u(l)}),L=()=>{const l=i.getValues(`${r}.phone`);l!=null&&l.trim().length>0&&P(l)},k=(l,p)=>{S(l,p)},D=l=>{l!=null&&l.trim().length>0&&O(l)},B=()=>{c(!0)},E=()=>{c(!1)},A=()=>{const l=i.getValues(`${y}`);if(l!=null){const p=J(l);i.setValue(`${r}.address`,p)}c(!1)};return e.jsxs(U,{children:[e.jsxs(X,{children:[e.jsxs(ee,{children:[s&&e.jsx(oe,{onClick:E}),t.completeProfile.title]}),e.jsx(te,{children:e.jsx(T,{...i,children:e.jsxs("form",{id:`${x}_form`,onSubmit:N,children:[e.jsx(f,{controller:s===!1,children:e.jsxs(b.Fragment,{children:[e.jsx(q,{isDisabled:"disabled",showAdditionalInfoLabel:!1,label:{label:t.common.labels.email,width:168},style:{width:"100%"},text:{type:"text",name:d(r,"email")}}),e.jsx(z,{isDisabled:void 0,label:{label:t.common.labels.name,width:168},style:{width:"100%"},nameField:{name:d(r,"name"),placeHolder:{firstName:t.common.placeholder.firstNamePlaceholder,lastName:t.common.placeholder.lastNamePlaceholder,name:t.common.placeholder.namePlaceholder},showFullNameError:!0,registerOptions:{required:!0}},errorInfoLabel:""}),e.jsx(G,{isOptional:!0,label:{label:t.common.labels.dob,width:168},style:{width:"100%"},isDisabled:void 0,dateField:{name:d(r,"dateOfBirth"),placeholder:t.common.placeholder.dobPlaceholder,dateFormat:I.visual.defaultInput,autoComplete:"off",maxDate:K.dateNow().subtract(18,"year")}}),e.jsx(Q,{isOptional:!0,label:{label:t.common.labels.address,width:168},addressValue:{placeholder:t.common.placeholder.addressPlaceholder,address:F,onClick:B},style:{width:"100%",padding:`${a.sp2} ${a.sp2} ${a.sp2} ${a.sp0}`}}),e.jsx(_,{isOptional:!0,label:{label:t.common.labels.phone,width:168},style:{width:"100%"},text:{name:d(r,"phone"),placeholder:t.common.placeholder.phonePlaceholder,defaultValue:"",autoComplete:"new-password"},errorInfoLabel:"",verificationErrorInfoLabel:t.common.errorMessage.invalidPhoneNumber,isPopupOpen:V,phoneVerifyButtonProps:{otpChallenge:j,showOtpButton:!0,onGetOtp:L,onVerifyOtp:k,onResendOtp:D,isPhoneVerified:h.fetchState==="Completed",phoneVerificationStatus:h,getOtpStatus:v,openPopup:()=>{C(!0)},focusNotRequired:!0}})]})}),e.jsx(f,{controller:s===!0,children:e.jsx(b.Fragment,{children:e.jsx(H,{sectionId:y,googleAPIKey:m,isSubPage:!0})})})]})})})]}),e.jsx(W,{formId:s?void 0:`${x}_form`,primaryBtn:{label:s?t.companyPassport.address.saveAddress:t.common.footer.save,type:s?"button":"submit",onClick:s?A:void 0,isLoading:w.fetchState==="In-Progress"},showCancel:!1})]})},U=n.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  min-height: 100vh;
@@ -1 +1 @@
1
- import{d1 as m,ac as l,j as a,ak as f,o as n}from"./index-Cvfy0zsh.js";import{b as i}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const c="https://storage.googleapis.com/zeni-apis.appspot.com/data/confetti_sfx.mp3",b=({showConfetti:t})=>{const[e,p]=i.useState(t),[o,s]=m(c),[r]=l("ConfettiSuccess");return i.useEffect(()=>{t&&p(!0)},[t]),i.useEffect(()=>{e&&o===!1&&s(!0)},[e,o,s]),a.jsx(a.Fragment,{children:e&&o&&r!=null?a.jsx(f,{style:{position:"absolute",width:"100%",height:"100vh",top:n.sp0,left:n.sp0,zIndex:5},onComplete:()=>{s(!1),p(!1)},animationData:r,loop:0,play:!0,goTo:0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null})};export{b as default};
1
+ import{d1 as m,ac as l,j as a,ak as f,o as n}from"./index-DR9vSgqx.js";import{b as i}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const c="https://storage.googleapis.com/zeni-apis.appspot.com/data/confetti_sfx.mp3",b=({showConfetti:t})=>{const[e,p]=i.useState(t),[o,s]=m(c),[r]=l("ConfettiSuccess");return i.useEffect(()=>{t&&p(!0)},[t]),i.useEffect(()=>{e&&o===!1&&s(!0)},[e,o,s]),a.jsx(a.Fragment,{children:e&&o&&r!=null?a.jsx(f,{style:{position:"absolute",width:"100%",height:"100vh",top:n.sp0,left:n.sp0,zIndex:5},onComplete:()=>{s(!1),p(!1)},animationData:r,loop:0,play:!0,goTo:0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null})};export{b as default};
@@ -1,4 +1,4 @@
1
- import{u as qe,X as v,M as h,H as U,c5 as _e,j as t,aV as Ye,_ as b,c as Ke,bO as ae,bQ as ie,bR as se,ct as Ge,a4 as Qe,C as W,bo as Xe,o,cu as Ze,bs as k,bH as le,q as f,am as de,v as ce,e as K,aO as Je,cq as pe,g as L,cv as me,cn as ue}from"./index-Cvfy0zsh.js";import{b as x,n as r}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const et=({bankAccountNumberOrIban:e,accountNumberOrIbanLabel:a,bankName:s,routingNumberOrSwiftCode:d,accountName:u,routingNumberOrSwiftCodeLabel:m,onDeleteClick:w})=>{const j=v(),p=h.getLocalizedStrings().spendManagement.billPay.vendorCreation,g=t.jsxs(tt,{children:[t.jsxs(H,{children:[t.jsx(q,{children:m}),t.jsx(_,{children:d})]}),t.jsxs(H,{children:[t.jsx(q,{children:p.achDetails.bankName}),t.jsx(_,{children:s})]}),t.jsxs(H,{children:[t.jsx(q,{children:a}),t.jsx(_,{children:e})]})]});return t.jsxs(at,{size:j,children:[t.jsxs(rt,{children:[t.jsxs(K,{children:[`${s} ${p.paymentAccountDetailConnector} ${e.slice(-4)}`,t.jsx(k,{title:g,placement:"top",children:t.jsx(st,{children:t.jsx(lt,{})})})]}),t.jsx(ot,{children:u??p.emptyPlaceholderString})]}),t.jsx(nt,{children:t.jsx(k,{enterDelay:600,display:"flex",title:p.deleteAccountTooltip,placement:"top",children:t.jsx(it,{onClick:y=>{y.stopPropagation(),w()},"data-testid":b("delete-vendor-account-section",u),children:t.jsx(dt,{})})})})]})},tt=r.div`
1
+ import{u as qe,X as v,M as h,H as U,c5 as _e,j as t,aV as Ye,_ as b,c as Ke,bO as ae,bQ as ie,bR as se,ct as Ge,a4 as Qe,C as W,bo as Xe,o,cu as Ze,bs as k,bH as le,q as f,am as de,v as ce,e as K,aO as Je,cq as pe,g as L,cv as me,cn as ue}from"./index-DR9vSgqx.js";import{b as x,n as r}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const et=({bankAccountNumberOrIban:e,accountNumberOrIbanLabel:a,bankName:s,routingNumberOrSwiftCode:d,accountName:u,routingNumberOrSwiftCodeLabel:m,onDeleteClick:w})=>{const j=v(),p=h.getLocalizedStrings().spendManagement.billPay.vendorCreation,g=t.jsxs(tt,{children:[t.jsxs(H,{children:[t.jsx(q,{children:m}),t.jsx(_,{children:d})]}),t.jsxs(H,{children:[t.jsx(q,{children:p.achDetails.bankName}),t.jsx(_,{children:s})]}),t.jsxs(H,{children:[t.jsx(q,{children:a}),t.jsx(_,{children:e})]})]});return t.jsxs(at,{size:j,children:[t.jsxs(rt,{children:[t.jsxs(K,{children:[`${s} ${p.paymentAccountDetailConnector} ${e.slice(-4)}`,t.jsx(k,{title:g,placement:"top",children:t.jsx(st,{children:t.jsx(lt,{})})})]}),t.jsx(ot,{children:u??p.emptyPlaceholderString})]}),t.jsx(nt,{children:t.jsx(k,{enterDelay:600,display:"flex",title:p.deleteAccountTooltip,placement:"top",children:t.jsx(it,{onClick:y=>{y.stopPropagation(),w()},"data-testid":b("delete-vendor-account-section",u),children:t.jsx(dt,{})})})})]})},tt=r.div`
2
2
  display: flex;
3
3
  flex-wrap: wrap;
4
4
  gap: ${o.sp1};
@@ -1,4 +1,4 @@
1
- import{j as a,X as me,d2 as pe,_ as te,gN as Je,M as W,a0 as Te,K as He,c as et,a4 as Pe,o as t,C as d,a3 as je,k as tt,O as at,u as ze,bs as nt,cO as Ee,Q as V,g as Z,fQ as Ce,f as ot,l as T,Z as Me,c0 as it,a2 as be,a as rt,eX as lt,c3 as ct,F as st,cz as dt,f4 as mt,c8 as pt,fD as ut,q as r,bo as ht,bm as Be,cW as gt,bH as yt,e as Oe,f7 as ft,e$ as Ct,a7 as bt,f8 as xt,cq as St,f9 as wt,fi as Dt}from"./index-Cvfy0zsh.js";import{n as o,b as p}from"./vendor-CnQcJ2Lu.js";import{x as $t}from"./LabeledControlledCheckBoxField-CHl3uhk9-BFLBybV4.js";import{v as kt}from"./ChargeCardUtils-DlCRcsWm-D__qzTWb.js";import{Y as xe}from"./CreditCardPaymentPlgSection-BKgF2tFu-DparH7B9.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ae={largeLabelWidth:new d(120,120,160),navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(r[3],r[6],r[8]),containerPaddingRight:new d(r[3],r[6],r[8]),reviewContentWrapperPaddingBottom:new d(r[5],r[8])},de={pageTitle:new V("h6Regular","h5Regular"),integerAmountInput:new V("h5Regular","h2Regular"),decimalAmountInput:new V("largeSemiBold","h5Medium")},{dateFormat:{visual:{MMMDCommaYYYYformat:At}},common:{edit:vt,labels:Se,currency:we,navBar:{back:Lt}},spendManagement:{zeniAccounts:{zeniAccountList:{transferDrawer:It}},chargeCard:{payEarly:ee}}}=W.getLocalizedStrings(),Ft=({paymentDetails:e,isCashbackInfoFetchStateCompleted:i,isCreditCardInfoFetchStateCompleted:h,isDebitCardInfoFetchStateCompleted:n,controllerEmails:g,productInformation:c,cashbackInformation:f,paymentSourceInformation:v,creditAccountInformation:y,debitAccountInformation:b,setShowReviewContent:x,onTransferClick:C,isCompleteOutstandingBalanceBeingPaid:D})=>{const m=me(),P=ze(),j=pe().analytics,[M,L]=p.useState(!1);p.useEffect(()=>{e.error!=null?L(!0):L(!1)},[e.error]);const k=ae.largeLabelWidth.value(m);return a.jsxs(a.Fragment,{children:[a.jsxs(_t,{windowSize:m,children:[a.jsx(Kt,{windowSize:m,children:a.jsx(nt,{title:Lt,enterTouchDelay:600,placement:"bottom",children:a.jsx(qt,{"data-testid":te("nav-bar-back-credit-card-payment-review"),onClick:()=>{i&&h&&n&&j.trackCardsPayEarlyFormClick(g,c,f,"Back",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},v,y,b),x(!1)}})})}),a.jsx(Xt,{windowSize:m,children:It.reviewAndConfirm}),a.jsx(Tt,{children:a.jsx(Ee,{amount:e.chargeCardRepaymentDetailLocalData.amount,integerStyles:de.integerAmountInput.styleObject(m),decimalStyles:de.decimalAmountInput.styleObject(m)})}),M?a.jsx(Ot,{children:a.jsxs(zt,{children:[a.jsxs(Nt,{children:[a.jsx(Yt,{}),a.jsxs(Et,{children:[a.jsx(Mt,{children:e.error?.title}),a.jsx(Bt,{children:e.error?.message})]})]}),a.jsx(Ut,{children:a.jsx(Vt,{"data-testid":te("close-error-credit-card-payment-review"),onClick:()=>{L(!1)},style:{width:t.sp3,height:t.sp3,color:Z.heroLight}})})]})}):null,a.jsx(Zt,{windowSize:m,children:a.jsxs(jt,{children:[a.jsx(Ce,{label:{label:Se.transferFrom,width:k},text:a.jsxs(De,{windowSize:m,children:[_e(e.transferFromAccounts,e.chargeCardRepaymentDetailLocalData.transferFrom?.id??"",!0),a.jsx(Pt,{windowSize:m,children:e.chargeCardRepaymentDetailLocalData.transferFrom?.label})]}),style:{width:"auto"}}),a.jsx(Wt,{}),a.jsx(Ce,{label:{label:Se.amount,width:k},showAdditionalInfoLabel:!0,additionalInfoLabel:`${D?ee.creditLimitReset:ee.creditLimitUpdate} ${T.zeniDate(T.getNextNthWorkingDay(T.dateNow().toDate(),[0,6],3).toDateString()).format(At)} ${ee.business23Days}`,additionalInfoLabelStyles:{color:P.colors.hero,...ot.smallRegular.cssObject},text:a.jsx(De,{windowSize:m,children:Te("0,0.[00]",{amount:e.chargeCardRepaymentDetailLocalData.amount.amount,currencyCode:we.currencyCode,currencySymbol:we.currencySymbol})}),style:{width:"auto"}})]})})]}),a.jsx(Pe,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:ee.byClickingPayNowIAuthorizeZeniToInitiateThePayment,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:vt,onClick:()=>{i&&h&&n&&j.trackCardsPayEarlyFormClick(g,c,f,"Edit",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},v,y,b),x(!1)},style:{minWidth:94}},primaryBtn:{label:ee.payNow,onClick:C,isLoading:e.updateStatus==="In-Progress",style:{minWidth:94}}})]})},_e=(e,i,h)=>{if(i==="")return a.jsx(ta,{});const n=e.find(c=>c.id===i),g=e.findIndex(c=>c.id===i);if(n!=null){if(n.accType==="depositAccount")return a.jsx(Ht,{isOptionSelected:h,children:a.jsx(ea,{color:ft(g)})});if(n.accType==="paymentAccount")return n.logo!==void 0&&(n.logo.base64||n.logo.url)?a.jsx(Qt,{src:Rt(n.logo),isOptionSelected:h,loading:"lazy"}):a.jsx(Gt,{isOptionSelected:h,children:a.jsx(Jt,{})})}return null},Rt=e=>e.base64!==void 0?`${Ct}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Tt=o(Be)`
1
+ import{j as a,X as me,d2 as pe,_ as te,gN as Je,M as W,a0 as Te,K as He,c as et,a4 as Pe,o as t,C as d,a3 as je,k as tt,O as at,u as ze,bs as nt,cO as Ee,Q as V,g as Z,fQ as Ce,f as ot,l as T,Z as Me,c0 as it,a2 as be,a as rt,eX as lt,c3 as ct,F as st,cz as dt,f4 as mt,c8 as pt,fD as ut,q as r,bo as ht,bm as Be,cW as gt,bH as yt,e as Oe,f7 as ft,e$ as Ct,a7 as bt,f8 as xt,cq as St,f9 as wt,fi as Dt}from"./index-DR9vSgqx.js";import{n as o,b as p}from"./vendor-CnQcJ2Lu.js";import{x as $t}from"./LabeledControlledCheckBoxField-CwiyOI1Z-D7LWnjIE.js";import{v as kt}from"./ChargeCardUtils-BbByGmi9-DEgVq9Nd.js";import{Y as xe}from"./CreditCardPaymentPlgSection-BS99Rbz7-D3hONmqh.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ae={largeLabelWidth:new d(120,120,160),navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(r[3],r[6],r[8]),containerPaddingRight:new d(r[3],r[6],r[8]),reviewContentWrapperPaddingBottom:new d(r[5],r[8])},de={pageTitle:new V("h6Regular","h5Regular"),integerAmountInput:new V("h5Regular","h2Regular"),decimalAmountInput:new V("largeSemiBold","h5Medium")},{dateFormat:{visual:{MMMDCommaYYYYformat:At}},common:{edit:vt,labels:Se,currency:we,navBar:{back:Lt}},spendManagement:{zeniAccounts:{zeniAccountList:{transferDrawer:It}},chargeCard:{payEarly:ee}}}=W.getLocalizedStrings(),Ft=({paymentDetails:e,isCashbackInfoFetchStateCompleted:i,isCreditCardInfoFetchStateCompleted:h,isDebitCardInfoFetchStateCompleted:n,controllerEmails:g,productInformation:c,cashbackInformation:f,paymentSourceInformation:v,creditAccountInformation:y,debitAccountInformation:b,setShowReviewContent:x,onTransferClick:C,isCompleteOutstandingBalanceBeingPaid:D})=>{const m=me(),P=ze(),j=pe().analytics,[M,L]=p.useState(!1);p.useEffect(()=>{e.error!=null?L(!0):L(!1)},[e.error]);const k=ae.largeLabelWidth.value(m);return a.jsxs(a.Fragment,{children:[a.jsxs(_t,{windowSize:m,children:[a.jsx(Kt,{windowSize:m,children:a.jsx(nt,{title:Lt,enterTouchDelay:600,placement:"bottom",children:a.jsx(qt,{"data-testid":te("nav-bar-back-credit-card-payment-review"),onClick:()=>{i&&h&&n&&j.trackCardsPayEarlyFormClick(g,c,f,"Back",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},v,y,b),x(!1)}})})}),a.jsx(Xt,{windowSize:m,children:It.reviewAndConfirm}),a.jsx(Tt,{children:a.jsx(Ee,{amount:e.chargeCardRepaymentDetailLocalData.amount,integerStyles:de.integerAmountInput.styleObject(m),decimalStyles:de.decimalAmountInput.styleObject(m)})}),M?a.jsx(Ot,{children:a.jsxs(zt,{children:[a.jsxs(Nt,{children:[a.jsx(Yt,{}),a.jsxs(Et,{children:[a.jsx(Mt,{children:e.error?.title}),a.jsx(Bt,{children:e.error?.message})]})]}),a.jsx(Ut,{children:a.jsx(Vt,{"data-testid":te("close-error-credit-card-payment-review"),onClick:()=>{L(!1)},style:{width:t.sp3,height:t.sp3,color:Z.heroLight}})})]})}):null,a.jsx(Zt,{windowSize:m,children:a.jsxs(jt,{children:[a.jsx(Ce,{label:{label:Se.transferFrom,width:k},text:a.jsxs(De,{windowSize:m,children:[_e(e.transferFromAccounts,e.chargeCardRepaymentDetailLocalData.transferFrom?.id??"",!0),a.jsx(Pt,{windowSize:m,children:e.chargeCardRepaymentDetailLocalData.transferFrom?.label})]}),style:{width:"auto"}}),a.jsx(Wt,{}),a.jsx(Ce,{label:{label:Se.amount,width:k},showAdditionalInfoLabel:!0,additionalInfoLabel:`${D?ee.creditLimitReset:ee.creditLimitUpdate} ${T.zeniDate(T.getNextNthWorkingDay(T.dateNow().toDate(),[0,6],3).toDateString()).format(At)} ${ee.business23Days}`,additionalInfoLabelStyles:{color:P.colors.hero,...ot.smallRegular.cssObject},text:a.jsx(De,{windowSize:m,children:Te("0,0.[00]",{amount:e.chargeCardRepaymentDetailLocalData.amount.amount,currencyCode:we.currencyCode,currencySymbol:we.currencySymbol})}),style:{width:"auto"}})]})})]}),a.jsx(Pe,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:ee.byClickingPayNowIAuthorizeZeniToInitiateThePayment,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:vt,onClick:()=>{i&&h&&n&&j.trackCardsPayEarlyFormClick(g,c,f,"Edit",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},v,y,b),x(!1)},style:{minWidth:94}},primaryBtn:{label:ee.payNow,onClick:C,isLoading:e.updateStatus==="In-Progress",style:{minWidth:94}}})]})},_e=(e,i,h)=>{if(i==="")return a.jsx(ta,{});const n=e.find(c=>c.id===i),g=e.findIndex(c=>c.id===i);if(n!=null){if(n.accType==="depositAccount")return a.jsx(Ht,{isOptionSelected:h,children:a.jsx(ea,{color:ft(g)})});if(n.accType==="paymentAccount")return n.logo!==void 0&&(n.logo.base64||n.logo.url)?a.jsx(Qt,{src:Rt(n.logo),isOptionSelected:h,loading:"lazy"}):a.jsx(Gt,{isOptionSelected:h,children:a.jsx(Jt,{})})}return null},Rt=e=>e.base64!==void 0?`${Ct}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Tt=o(Be)`
2
2
  color: ${e=>e.theme.colors.primary};
3
3
  padding-top: ${t.sp3};
4
4
  `,Pt=o.div`
@@ -1,4 +1,4 @@
1
- import{X as j,u as M,M as L,ab as R,a1 as T,j as i,_ as b,K as U,bB as H,o as l,g as n,C as a,aR as W,bH as B,ay as G,v as _,q as o}from"./index-Cvfy0zsh.js";import{n as t}from"./vendor-CnQcJ2Lu.js";const r={iconContainerMaxWidthHeight:new a(o[6],o[7]),iconContainerMarginRight:new a(o[3],o[3]),iconWidthHeight:new a(20,o[4]),iconPadding:new a(10,12),containerPaddingTopBottom:new a(o[4],o[4]),containerPaddingLeftRight:new a(o[3],o[4]),buttonLeftMargin:new a(o[8],o[0]),buttonTopMargin:new a(o[4],o[2]),buttonRightMargin:new a(o[0],20)};function Y({heading:e,buttonText:c,analytics:g,maxInsuredAmount:u,pageName:h,style:x,onSignUpClick:y,onSwitchClick:S,onMoveMoneyClick:$}){const d=j(),f=M(),{common:v,commonSetUp:P}=L.getLocalizedStrings(),s=P.setUp.accountsPlg,z=()=>{switch(c){case s.signUpButtonText:g?.trackPlgPromoClicked(h,"Sign Up for Free"),y?.();break;case s.switchButtonText:g?.trackPlgPromoClicked(h,"Switch Now"),S?.();break;default:g?.trackPlgPromoClicked(h,"Move Money"),$?.()}},k=R(T(u),u,v.currency.currencySymbol).toUpperCase();return i.jsxs(E,{windowSize:d,width:x?.width,style:x,"data-testid":b("credit-card-payment-plg-section"),children:[i.jsxs(D,{children:[i.jsx(A,{windowSize:d,isDarkMode:f.mode==="dark",children:i.jsx(O,{windowSize:d,children:i.jsx(q,{})})}),i.jsx(F,{children:i.jsxs(I,{children:[i.jsx(J,{windowSize:d,children:e}),i.jsxs(N,{windowSize:d,children:[i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(m,{children:s.bulletPoints.two.replace("__amount__",k)})]}),i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(m,{children:s.bulletPoints.three})]}),i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(m,{children:s.bulletPoints.four})]})]})]})})]}),i.jsx(K,{windowSize:d,children:i.jsx(U,{label:c,"data-testid":b("accounts-plg-button",c),onClick:C=>{C.stopPropagation(),z()},buttonColors:{borderColor:{default:n.brandColorSapphire,hover:n.brandColorSapphire,disabled:n.brandColorSapphire},backgroundColor:{default:n.brandColorSapphire,hover:n.brandColorSapphire,disabled:n.brandColorSapphire},textColor:{default:n.neutralGrey5Light,hover:n.neutralGrey5Light,disabled:n.neutralGrey5Light}},size:"small",style:{padding:`6px ${l.sp3}`,borderRadius:"6px"},textStyle:{fontWeight:H.regular}})})]})}const D=t.div`
1
+ import{X as j,u as M,M as L,ab as R,a1 as T,j as i,_ as b,K as U,bB as H,o as l,g as n,C as a,aR as W,bH as B,ay as G,v as _,q as o}from"./index-DR9vSgqx.js";import{n as t}from"./vendor-CnQcJ2Lu.js";const r={iconContainerMaxWidthHeight:new a(o[6],o[7]),iconContainerMarginRight:new a(o[3],o[3]),iconWidthHeight:new a(20,o[4]),iconPadding:new a(10,12),containerPaddingTopBottom:new a(o[4],o[4]),containerPaddingLeftRight:new a(o[3],o[4]),buttonLeftMargin:new a(o[8],o[0]),buttonTopMargin:new a(o[4],o[2]),buttonRightMargin:new a(o[0],20)};function Y({heading:e,buttonText:c,analytics:g,maxInsuredAmount:u,pageName:h,style:x,onSignUpClick:y,onSwitchClick:S,onMoveMoneyClick:$}){const d=j(),f=M(),{common:v,commonSetUp:P}=L.getLocalizedStrings(),s=P.setUp.accountsPlg,z=()=>{switch(c){case s.signUpButtonText:g?.trackPlgPromoClicked(h,"Sign Up for Free"),y?.();break;case s.switchButtonText:g?.trackPlgPromoClicked(h,"Switch Now"),S?.();break;default:g?.trackPlgPromoClicked(h,"Move Money"),$?.()}},k=R(T(u),u,v.currency.currencySymbol).toUpperCase();return i.jsxs(E,{windowSize:d,width:x?.width,style:x,"data-testid":b("credit-card-payment-plg-section"),children:[i.jsxs(D,{children:[i.jsx(A,{windowSize:d,isDarkMode:f.mode==="dark",children:i.jsx(O,{windowSize:d,children:i.jsx(q,{})})}),i.jsx(F,{children:i.jsxs(I,{children:[i.jsx(J,{windowSize:d,children:e}),i.jsxs(N,{windowSize:d,children:[i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(m,{children:s.bulletPoints.two.replace("__amount__",k)})]}),i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(m,{children:s.bulletPoints.three})]}),i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(m,{children:s.bulletPoints.four})]})]})]})})]}),i.jsx(K,{windowSize:d,children:i.jsx(U,{label:c,"data-testid":b("accounts-plg-button",c),onClick:C=>{C.stopPropagation(),z()},buttonColors:{borderColor:{default:n.brandColorSapphire,hover:n.brandColorSapphire,disabled:n.brandColorSapphire},backgroundColor:{default:n.brandColorSapphire,hover:n.brandColorSapphire,disabled:n.brandColorSapphire},textColor:{default:n.neutralGrey5Light,hover:n.neutralGrey5Light,disabled:n.neutralGrey5Light}},size:"small",style:{padding:`6px ${l.sp3}`,borderRadius:"6px"},textStyle:{fontWeight:H.regular}})})]})}const D=t.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  `,J=t(B)`
@@ -1,4 +1,4 @@
1
- import{cg as M,u as N,co as P,M as H,j as l,cp as L,_ as x,b1 as _,o,dg as z,bT as T,b2 as g,e as B,f as S,eT as U,eU as A,eV as K,v as X,a$ as Y,a3 as Z,g as m}from"./index-Cvfy0zsh.js";import{b as w,n}from"./vendor-CnQcJ2Lu.js";const fe=({name:e,registerOptions:r,defaultValue:t,isDisabled:a,style:c,placeholder:d,isOptionRemovable:i=!0,menuItemHeight:u=40,controlStyle:p})=>{const{control:y,formState:{errors:f}}=M(),b=N(),[j,C]=w.useState(!1),k=P(f,e??""),V=H.getLocalizedStrings().common.currency,D=s=>{if(!(s==null||!s))return{value:s,label:t.allOptions.find(h=>h.value===s)?.label??s,countryCode:t.allOptions.find(h=>h.value===s)?.countryCode??V.countryCode}},I={container:s=>({...s,width:"100%",...c}),menu:s=>({...s,backgroundColor:b.colors.grey5,borderRadius:o.sp1,boxShadow:`${o.sp0} 2px ${o.sp2} ${b.colors.dropShadowHover}`,border:`1px solid ${b.colors.grey3}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:`1px ${o.sp0} ${o.sp0} ${o.sp0}`,overflow:"hidden"}),menuList:s=>({...s,borderRadius:o.sp1}),input:()=>({color:b.colors.primary,margin:0}),singleValue:s=>({...s,margin:0,position:"absolute"})},F={hasError:k,menuItemHeight:u,controlStyle:p,isOptionRemovable:i};return l.jsx(L,{name:e,control:y,defaultValue:t,rules:r,"data-testid":x("currency-select-field",e),render:({field:{onChange:s,onBlur:h,value:R,ref:E}})=>{const v=R;return w.createElement(_,{...F,ref:E,isMulti:!1,isSearchable:!0,isClearable:i,autoFocus:j===!0,openMenuOnClick:!0,controlShouldRenderValue:!0,placeholder:d,value:D(v.selectedOption),options:t.allOptions,"data-testid":x("currency-select",e),onChange:$=>{i&&$?.value!=null&&v?.selectedOption===$.value?s({selectedOption:void 0,allOptions:t.allOptions}):s({selectedOption:$?.value,allOptions:t.allOptions})},onMenuClose:()=>C(!1),key:z(),tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"currency-select-field",onBlur:h,menuPlacement:"auto",maxMenuHeight:240,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:q,Option:G,Input:W,SingleValue:ee,ValueContainer:Q,DropdownIndicator:he,IndicatorSeparator:me,Placeholder:oe,ClearIndicator:ge,MenuList:J},hideSelectedOptions:!1,styles:I,isDisabled:a!=null})}})},q=e=>{const{menuIsOpen:r,isFocused:t,isDisabled:a,selectProps:c}=e,{value:d,hasError:i,controlStyle:u}=c;return l.jsx(te,{controlStyle:u,menuIsOpen:r,isFocused:t,isDisabled:a,selectedValue:d,hasError:i,children:l.jsx(g.Control,{...e,className:"select-control",children:e.children})})},G=e=>{const{data:r,isSelected:t,isDisabled:a,isFocused:c,selectProps:d}=e,{isOptionRemovable:i}=d,u=r.countryCode,p=typeof r.label=="string"?r.label:r.value;return l.jsx(re,{isOptionRemovable:i,className:"select-option-wrapper",isFocused:c,isSelected:t,isDisabled:a,"data-testid":x("currency-select-field-option",p),children:l.jsx(g.Option,{...e,className:"select-option",children:l.jsxs(se,{children:[l.jsx(le,{countryCode:u}),l.jsx(ae,{isSelected:t,children:l.jsx(ne,{isSelected:t,isDisabled:a,children:r.label})}),t?l.jsxs(de,{children:[l.jsx(ue,{className:"right-tick-icon"}),l.jsx(pe,{className:"close-tick-icon"})]}):null]})})})},J=e=>{const{options:r,children:t,maxHeight:a,getValue:c,selectProps:d}=e,{menuItemHeight:i}=d,[u]=c(),p=r.indexOf(u)*i;return l.jsx(T,{height:t.length>7?a:t.length*i,width:"100%",itemCount:t.length,itemSize:()=>i,initialScrollOffset:p,children:({index:y,style:f})=>l.jsx(ce,{style:f,children:t[y]})})},Q=e=>l.jsx(g.ValueContainer,{...e,className:"select-value-container",children:e.children}),W=e=>{const{selectProps:r}=e,{placeholder:t,value:a}=r;return l.jsx(O,{children:l.jsx(g.Input,{...e,autoComplete:"new-password",placeholder:a==null?t:void 0,children:e.children})})},ee=e=>{const{data:r}=e;return l.jsx(g.SingleValue,{...e,children:l.jsx(O,{children:r.label})})},O=n(B)`
1
+ import{cg as M,u as N,co as P,M as H,j as l,cp as L,_ as x,b1 as _,o,dg as z,bT as T,b2 as g,e as B,f as S,eT as U,eU as A,eV as K,v as X,a$ as Y,a3 as Z,g as m}from"./index-DR9vSgqx.js";import{b as w,n}from"./vendor-CnQcJ2Lu.js";const fe=({name:e,registerOptions:r,defaultValue:t,isDisabled:a,style:c,placeholder:d,isOptionRemovable:i=!0,menuItemHeight:u=40,controlStyle:p})=>{const{control:y,formState:{errors:f}}=M(),b=N(),[j,C]=w.useState(!1),k=P(f,e??""),V=H.getLocalizedStrings().common.currency,D=s=>{if(!(s==null||!s))return{value:s,label:t.allOptions.find(h=>h.value===s)?.label??s,countryCode:t.allOptions.find(h=>h.value===s)?.countryCode??V.countryCode}},I={container:s=>({...s,width:"100%",...c}),menu:s=>({...s,backgroundColor:b.colors.grey5,borderRadius:o.sp1,boxShadow:`${o.sp0} 2px ${o.sp2} ${b.colors.dropShadowHover}`,border:`1px solid ${b.colors.grey3}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:`1px ${o.sp0} ${o.sp0} ${o.sp0}`,overflow:"hidden"}),menuList:s=>({...s,borderRadius:o.sp1}),input:()=>({color:b.colors.primary,margin:0}),singleValue:s=>({...s,margin:0,position:"absolute"})},F={hasError:k,menuItemHeight:u,controlStyle:p,isOptionRemovable:i};return l.jsx(L,{name:e,control:y,defaultValue:t,rules:r,"data-testid":x("currency-select-field",e),render:({field:{onChange:s,onBlur:h,value:R,ref:E}})=>{const v=R;return w.createElement(_,{...F,ref:E,isMulti:!1,isSearchable:!0,isClearable:i,autoFocus:j===!0,openMenuOnClick:!0,controlShouldRenderValue:!0,placeholder:d,value:D(v.selectedOption),options:t.allOptions,"data-testid":x("currency-select",e),onChange:$=>{i&&$?.value!=null&&v?.selectedOption===$.value?s({selectedOption:void 0,allOptions:t.allOptions}):s({selectedOption:$?.value,allOptions:t.allOptions})},onMenuClose:()=>C(!1),key:z(),tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"currency-select-field",onBlur:h,menuPlacement:"auto",maxMenuHeight:240,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:q,Option:G,Input:W,SingleValue:ee,ValueContainer:Q,DropdownIndicator:he,IndicatorSeparator:me,Placeholder:oe,ClearIndicator:ge,MenuList:J},hideSelectedOptions:!1,styles:I,isDisabled:a!=null})}})},q=e=>{const{menuIsOpen:r,isFocused:t,isDisabled:a,selectProps:c}=e,{value:d,hasError:i,controlStyle:u}=c;return l.jsx(te,{controlStyle:u,menuIsOpen:r,isFocused:t,isDisabled:a,selectedValue:d,hasError:i,children:l.jsx(g.Control,{...e,className:"select-control",children:e.children})})},G=e=>{const{data:r,isSelected:t,isDisabled:a,isFocused:c,selectProps:d}=e,{isOptionRemovable:i}=d,u=r.countryCode,p=typeof r.label=="string"?r.label:r.value;return l.jsx(re,{isOptionRemovable:i,className:"select-option-wrapper",isFocused:c,isSelected:t,isDisabled:a,"data-testid":x("currency-select-field-option",p),children:l.jsx(g.Option,{...e,className:"select-option",children:l.jsxs(se,{children:[l.jsx(le,{countryCode:u}),l.jsx(ae,{isSelected:t,children:l.jsx(ne,{isSelected:t,isDisabled:a,children:r.label})}),t?l.jsxs(de,{children:[l.jsx(ue,{className:"right-tick-icon"}),l.jsx(pe,{className:"close-tick-icon"})]}):null]})})})},J=e=>{const{options:r,children:t,maxHeight:a,getValue:c,selectProps:d}=e,{menuItemHeight:i}=d,[u]=c(),p=r.indexOf(u)*i;return l.jsx(T,{height:t.length>7?a:t.length*i,width:"100%",itemCount:t.length,itemSize:()=>i,initialScrollOffset:p,children:({index:y,style:f})=>l.jsx(ce,{style:f,children:t[y]})})},Q=e=>l.jsx(g.ValueContainer,{...e,className:"select-value-container",children:e.children}),W=e=>{const{selectProps:r}=e,{placeholder:t,value:a}=r;return l.jsx(O,{children:l.jsx(g.Input,{...e,autoComplete:"new-password",placeholder:a==null?t:void 0,children:e.children})})},ee=e=>{const{data:r}=e;return l.jsx(g.SingleValue,{...e,children:l.jsx(O,{children:r.label})})},O=n(B)`
2
2
  color: ${e=>e.theme.colors.primary};
3
3
  `,oe=()=>null,le=({countryCode:e})=>{if(e!=null&&U(e)===!1)return l.jsx(l.Fragment,{});{const r=A[`${K(e??"")}`];return l.jsx(ie,{children:l.jsx(r,{width:o.sp4,height:o.sp3})})}},te=n.span`
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{j as t,X as b,M as d,a2 as l,_ as p,c as x,o as i,$ as g,c0 as h,k as m}from"./index-Cvfy0zsh.js";import{b as u,n as o}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const $=o.div`
1
+ import{j as t,X as b,M as d,a2 as l,_ as p,c as x,o as i,$ as g,c0 as h,k as m}from"./index-DR9vSgqx.js";import{b as u,n as o}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const $=o.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  flex-direction: column;
@@ -0,0 +1 @@
1
+ import{j as r}from"./index-DR9vSgqx.js";import o from"./CustomerOnboardingNoStepsPage-ByTpLszW-NQIzex-L.js";import i from"./CustomerOnboardingPage-eyRDjOy--Cv80zIzo.js";import"./mui-C5LQ0bMa.js";import"./vendor-CnQcJ2Lu.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./HelpButton-Coe4ii48-CP7NC72-.js";import"./MeetingCalenderPopup-DlnppXL_-CUHiDz63.js";import"./PaymentAccountSetupBillingAddressSection-CBvjcBEH-CXrtDUXk.js";import"./SetUpAccountSection-CYn2o43t-Bpg0pToC.js";import"./SetUpDefaultSection-C0-L2ZyA-COKZA6T-.js";import"./ChaseOverlay-CvXMdD8r-BjJFL-eT.js";import"./CustomerOnboardingDetailPageSkeleton-BY4rv3eB-CqGuM0YC.js";import"./CompanyOfficerDetailsSection-DTbhxCCJ-uAcyCJzT.js";import"./LabeledAddressValueField-DZCn1w6m-DlnblRke.js";import"./LabeledCreatableSingleSelectField-yLzlQU6_-DKdnF88p.js";import"./LabeledDocumentField-gxNaFx2j-qq-lZmSF.js";import"./QBOSetupSection-Cmf7-3wv-a5e4QtQ4.js";import"./QBOConnectionDialog-BUr2NQiK-Aqi4uG-w.js";const v=t=>t.currentTenant?.productSettings.isOtherProductsEnabled===!0?r.jsx(o,{...t}):r.jsx(i,{...t});export{v as default};
@@ -1,4 +1,4 @@
1
- import{j as s,_ as y,aI as E,u as f,X as T,bf as x,o as t,q as R,C as $,$ as I,M as N,g as u,eQ as U,h9 as P,e_ as L,aC as W,m as M,ha as O}from"./index-Cvfy0zsh.js";import{n as r,f as S}from"./vendor-CnQcJ2Lu.js";const X=r(O)`
1
+ import{j as s,_ as y,aI as E,u as f,X as T,bf as x,o as t,q as R,C as $,$ as I,M as N,g as u,eQ as U,h9 as P,e_ as L,aC as W,m as M,ha as O}from"./index-DR9vSgqx.js";import{n as r,f as S}from"./vendor-CnQcJ2Lu.js";const X=r(O)`
2
2
  /* Size is controlled by styles.root prop */
3
3
  `,Y=r.div`
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{d2 as se,j as o,X as Ce,u as Pe,a as we,h0 as be,M as xe,a2 as ke,c3 as Ie,aV as $e,o as i,_ as Ae,F as ve,a4 as Oe,aI as Ve,cw as je,cx as oe,$ as Te,C as Q,e as Le,q as $}from"./index-Cvfy0zsh.js";import{n as c,b as A}from"./vendor-CnQcJ2Lu.js";import{D as Ue}from"./HelpButton-BFbQbBAV-BQPDLXHd.js";import{t as ze,e as Ee}from"./PaymentAccountSetupBillingAddressSection-Byvw69gz-mE6MxWqh.js";import{f as Be}from"./CustomerOnboardingDetailPageSkeleton-IwCrs_Ni-BwoSRsex.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-CUA73Qvk-DoxrAhy8.js";import"./SetUpAccountSection-Cv2os5ln-DPXBfr4R.js";import"./SetUpDefaultSection-BX28nGOx-BuMe3hLW.js";import"./ChaseOverlay-Cpt5a98f-dacal49t.js";const J="onboardingPaymentAccountSetupSection",ie="customerOnboardingNoStepsDetailPage",n="onboardingSubscriptionBillingAddress",q={titleWidth:new Q(343,580,726,826),subTitlePaddingTop:new Q($[3],$[3]),subTitlePaddingBottom:new Q($[3],$[3])},_e=e=>`${e}_form`,Fe=xe.getLocalizedStrings(),De=({onboardingCustomerView:e,connectedAccountProvider:C,cardPaymentView:y,stripeKey:O,googleAPIKey:V,signedInUser:P,currentTenant:j,onUpdateStep:T,handleCreateCardSetupIntent:L,handleConfirmCardSetupIntent:U,updateCardPaymentModalState:w,handleAddCardPaymentSource:z,resetCardPaymentViewState:E,handleResetCardPaymentErrorStatuses:B,redirectToProductSuitePage:b,onUpdateCustomerView:_,...F})=>{const u=Ce(),D=se(),{analytics:h}=D,{onFetchLinkTokenClick:K,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:S,onEstablishConnectionSuccess:N,handleLogOutClick:G,onZeniLogoClick:W,onAddressEditHandler:x}=F,Z=Pe(),r=we({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:v(e),values:v(e),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),{companyOfficerLocalData:re,saveStatus:p,paymentAccount:k,paymentAccountStatus:de,plaidConnectionDetails:X,uiState:le,allNationalityCountries:Y,subscriptionBillingAddress:m}=e,{customerOnboardingPage:ce,common:g}=Fe,{footer:ue,steps:pe}=ce,{buttons:H}=ue,ee=pe.link_payment_account,I=ke(p.fetchState),te=Object.values(re).findIndex(t=>t?.isSelectedForVerification===!0)??0,me=`Officer_${te<0?1:te+1}`,ge=async(t,a)=>{if(t.includes(n)&&a[n]!=null){const s=r.getValues(`${n}`).country;let d=a[n];if(t.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:l}=a[n].street,f=je(l?.country);d={street:a[n].street??g.strings.empty,city:l?.locality??g.strings.empty,state:l?.administrativeAreaLevel1??g.strings.empty,country:f,countryCode:l?.countryCode??g.strings.empty,postalCode:l?.postalCode??g.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},s.selectedOption!==f.selectedOption&&(d={...d,country:f})}else t===`${n}.country`&&s.selectedOption!=null?d={...d,countryCode:oe(s.selectedOption)}:s.selectedOption!=null&&t.includes(`${n}.street`)===!1&&(d={...d,countryCode:oe(s.selectedOption)});x(d)}};A.useEffect(()=>{const t=r.watch((a,{name:s})=>{s!=null&&a!=null&&Ie(()=>ge(s,a))});return()=>{t.unsubscribe()}}),A.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&r.reset(v(e),{keepDirtyValues:!1})},[r,e,I,p.fetchState,Y]);const ye=()=>{const t=r.getValues(n),a={street:t.street.addressString,suite:t.suite,city:t.city,state:t.state,postalCode:t.postalCode,country:t.country.selectedOption??g.strings.empty,secondaryInfo:t.secondaryInfo};h.trackOnboardingBillingAddressSave(a)},ne=()=>{const t=Object.values(X).some(l=>l.fetchStatus.fetchState==="Completed"),a=k?.providerVerificationStatus?.code?.includes("verified")??!1,s=y.cardsList.length>0,d=y.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return t&&a||!a&&!k&&s||!s&&!k&&d};function he(){if(r.getFieldState(n).error)return!1;const t=r.getValues(n),a=m?.street.join("").trim(),s=m?.city,d=m?.state,l=m?.country,f=m?.postalCode!=null&&m.postalCode||t.postalCode||g.strings.empty;return!!a&&!!s&&!!d&&!!l&&!!f}const Se=async()=>{const t=await r.trigger(n),a=await r.trigger(J);t&&a&&(ye(),T("link_payment_account"),_(me,!1,!0))};A.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&(r.reset(v(e),{keepDirtyValues:!1}),b())},[r,e,I,p.fetchState,Y,b]);const[ae,fe]=A.useState(!1);return o.jsxs(Ke,{children:[o.jsxs(Me,{windowSize:u,children:[o.jsx($e,{title:ee.sectionTitle,showBackButton:!1,backgroundColor:Z.colors.grey4,style:{zIndex:4},source:"CustomerOnboardingPaymentAddressDetailPage",showLeftSection:u!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:i.sp0,paddingBottom:i.sp0},leftSideComponent:o.jsx(We,{children:o.jsx(Ze,{"data-testid":Ae("zeni-logo-customer-onboarding-payment-address-detail-page"),onClick:W})})}),o.jsx(ve,{...r,children:o.jsx(Ne,{id:_e(ie),children:o.jsxs(Re,{children:[o.jsx(He,{windowSize:u,children:ee.sectionSubTitle}),o.jsx(ze,{connectedAccountProvider:C,paymentAccount:k,accountStatus:de,plaidConnectionDetails:X,subscriptionBillingAddressSectionId:n,sectionId:J,analytics:h,isValid:ne(),onFetchLinkTokenClick:K,onEstablishConnectionClick:S,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionSuccess:N,updateCardPaymentModalState:w,cardPaymentView:y,resetCardPaymentViewState:E,cardSetupInProgress:ae,googleAPIKey:V,subscriptionBillingAddress:m})]},"link_payment_account")})}),o.jsx(Oe,{formId:`${ie}`,leftSideComponent:o.jsx(Ge,{windowSize:u,children:o.jsx(Ve,{signedInUser:P,currentTenant:j,onLogOutClick:G})}),style:{width:u==="small"?"auto":"100%",padding:i.sp0,rowGap:i.sp1},helperContainerStyle:{width:"100%",rowGap:i.sp1,marginTop:"12px",marginBottom:i.sp2},primaryBtn:{onClick:Se,label:H.submit,isLoading:p.fetchState==="In-Progress",isDisabled:p.fetchState==="In-Progress"||!(he()&&ne())},containerStyle:{width:"auto",justifyContent:"center"},helperText:H.submitText.replace("__action__",H.submit),helperStyle:{width:"auto",padding:i.sp0,rowGap:i.sp0,textAlign:"center"}})]}),o.jsx(Ee,{handleConfirmCardSetupIntent:U,updateCardPaymentModalState:w,handleCreateCardSetupIntent:L,handleAddCardPaymentSource:z,cardPaymentView:y,stripeKey:O,isCardPaymentOpen:le.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:B,cardSetupInProgress:ae,setCardSetupInProgress:fe})]})},Ke=c.div`
1
+ import{d2 as se,j as o,X as Ce,u as Pe,a as we,h0 as be,M as xe,a2 as ke,c3 as Ie,aV as $e,o as i,_ as Ae,F as ve,a4 as Oe,aI as Ve,cw as je,cx as oe,$ as Te,C as Q,e as Le,q as $}from"./index-DR9vSgqx.js";import{n as c,b as A}from"./vendor-CnQcJ2Lu.js";import{D as Ue}from"./HelpButton-Coe4ii48-CP7NC72-.js";import{t as ze,e as Ee}from"./PaymentAccountSetupBillingAddressSection-CBvjcBEH-CXrtDUXk.js";import{f as Be}from"./CustomerOnboardingDetailPageSkeleton-BY4rv3eB-CqGuM0YC.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-DlnppXL_-CUHiDz63.js";import"./SetUpAccountSection-CYn2o43t-Bpg0pToC.js";import"./SetUpDefaultSection-C0-L2ZyA-COKZA6T-.js";import"./ChaseOverlay-CvXMdD8r-BjJFL-eT.js";const J="onboardingPaymentAccountSetupSection",ie="customerOnboardingNoStepsDetailPage",n="onboardingSubscriptionBillingAddress",q={titleWidth:new Q(343,580,726,826),subTitlePaddingTop:new Q($[3],$[3]),subTitlePaddingBottom:new Q($[3],$[3])},_e=e=>`${e}_form`,Fe=xe.getLocalizedStrings(),De=({onboardingCustomerView:e,connectedAccountProvider:C,cardPaymentView:y,stripeKey:O,googleAPIKey:V,signedInUser:P,currentTenant:j,onUpdateStep:T,handleCreateCardSetupIntent:L,handleConfirmCardSetupIntent:U,updateCardPaymentModalState:w,handleAddCardPaymentSource:z,resetCardPaymentViewState:E,handleResetCardPaymentErrorStatuses:B,redirectToProductSuitePage:b,onUpdateCustomerView:_,...F})=>{const u=Ce(),D=se(),{analytics:h}=D,{onFetchLinkTokenClick:K,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:S,onEstablishConnectionSuccess:N,handleLogOutClick:G,onZeniLogoClick:W,onAddressEditHandler:x}=F,Z=Pe(),r=we({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:v(e),values:v(e),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),{companyOfficerLocalData:re,saveStatus:p,paymentAccount:k,paymentAccountStatus:de,plaidConnectionDetails:X,uiState:le,allNationalityCountries:Y,subscriptionBillingAddress:m}=e,{customerOnboardingPage:ce,common:g}=Fe,{footer:ue,steps:pe}=ce,{buttons:H}=ue,ee=pe.link_payment_account,I=ke(p.fetchState),te=Object.values(re).findIndex(t=>t?.isSelectedForVerification===!0)??0,me=`Officer_${te<0?1:te+1}`,ge=async(t,a)=>{if(t.includes(n)&&a[n]!=null){const s=r.getValues(`${n}`).country;let d=a[n];if(t.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:l}=a[n].street,f=je(l?.country);d={street:a[n].street??g.strings.empty,city:l?.locality??g.strings.empty,state:l?.administrativeAreaLevel1??g.strings.empty,country:f,countryCode:l?.countryCode??g.strings.empty,postalCode:l?.postalCode??g.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},s.selectedOption!==f.selectedOption&&(d={...d,country:f})}else t===`${n}.country`&&s.selectedOption!=null?d={...d,countryCode:oe(s.selectedOption)}:s.selectedOption!=null&&t.includes(`${n}.street`)===!1&&(d={...d,countryCode:oe(s.selectedOption)});x(d)}};A.useEffect(()=>{const t=r.watch((a,{name:s})=>{s!=null&&a!=null&&Ie(()=>ge(s,a))});return()=>{t.unsubscribe()}}),A.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&r.reset(v(e),{keepDirtyValues:!1})},[r,e,I,p.fetchState,Y]);const ye=()=>{const t=r.getValues(n),a={street:t.street.addressString,suite:t.suite,city:t.city,state:t.state,postalCode:t.postalCode,country:t.country.selectedOption??g.strings.empty,secondaryInfo:t.secondaryInfo};h.trackOnboardingBillingAddressSave(a)},ne=()=>{const t=Object.values(X).some(l=>l.fetchStatus.fetchState==="Completed"),a=k?.providerVerificationStatus?.code?.includes("verified")??!1,s=y.cardsList.length>0,d=y.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return t&&a||!a&&!k&&s||!s&&!k&&d};function he(){if(r.getFieldState(n).error)return!1;const t=r.getValues(n),a=m?.street.join("").trim(),s=m?.city,d=m?.state,l=m?.country,f=m?.postalCode!=null&&m.postalCode||t.postalCode||g.strings.empty;return!!a&&!!s&&!!d&&!!l&&!!f}const Se=async()=>{const t=await r.trigger(n),a=await r.trigger(J);t&&a&&(ye(),T("link_payment_account"),_(me,!1,!0))};A.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&(r.reset(v(e),{keepDirtyValues:!1}),b())},[r,e,I,p.fetchState,Y,b]);const[ae,fe]=A.useState(!1);return o.jsxs(Ke,{children:[o.jsxs(Me,{windowSize:u,children:[o.jsx($e,{title:ee.sectionTitle,showBackButton:!1,backgroundColor:Z.colors.grey4,style:{zIndex:4},source:"CustomerOnboardingPaymentAddressDetailPage",showLeftSection:u!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:i.sp0,paddingBottom:i.sp0},leftSideComponent:o.jsx(We,{children:o.jsx(Ze,{"data-testid":Ae("zeni-logo-customer-onboarding-payment-address-detail-page"),onClick:W})})}),o.jsx(ve,{...r,children:o.jsx(Ne,{id:_e(ie),children:o.jsxs(Re,{children:[o.jsx(He,{windowSize:u,children:ee.sectionSubTitle}),o.jsx(ze,{connectedAccountProvider:C,paymentAccount:k,accountStatus:de,plaidConnectionDetails:X,subscriptionBillingAddressSectionId:n,sectionId:J,analytics:h,isValid:ne(),onFetchLinkTokenClick:K,onEstablishConnectionClick:S,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionSuccess:N,updateCardPaymentModalState:w,cardPaymentView:y,resetCardPaymentViewState:E,cardSetupInProgress:ae,googleAPIKey:V,subscriptionBillingAddress:m})]},"link_payment_account")})}),o.jsx(Oe,{formId:`${ie}`,leftSideComponent:o.jsx(Ge,{windowSize:u,children:o.jsx(Ve,{signedInUser:P,currentTenant:j,onLogOutClick:G})}),style:{width:u==="small"?"auto":"100%",padding:i.sp0,rowGap:i.sp1},helperContainerStyle:{width:"100%",rowGap:i.sp1,marginTop:"12px",marginBottom:i.sp2},primaryBtn:{onClick:Se,label:H.submit,isLoading:p.fetchState==="In-Progress",isDisabled:p.fetchState==="In-Progress"||!(he()&&ne())},containerStyle:{width:"auto",justifyContent:"center"},helperText:H.submitText.replace("__action__",H.submit),helperStyle:{width:"auto",padding:i.sp0,rowGap:i.sp0,textAlign:"center"}})]}),o.jsx(Ee,{handleConfirmCardSetupIntent:U,updateCardPaymentModalState:w,handleCreateCardSetupIntent:L,handleAddCardPaymentSource:z,cardPaymentView:y,stripeKey:O,isCardPaymentOpen:le.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:B,cardSetupInProgress:ae,setCardSetupInProgress:fe})]})},Ke=c.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{j as r,X as Ke,u as Zt,a as en,c3 as me,M as We,a2 as He,D as mt,H as Qe,l as M,aV as tn,o as re,F as nn,q as K,a4 as an,h0 as on,fC as sn,fa as ft,cw as xt,cx as yt,C as fe,fF as ye,cg as rn,e as cn,h1 as gt,E as ht,ce as ln,fE as dn}from"./index-Cvfy0zsh.js";import{b as p,n as P,k as It}from"./vendor-CnQcJ2Lu.js";import{D as pn}from"./HelpButton-BFbQbBAV-BQPDLXHd.js";import{t as St,e as un}from"./PaymentAccountSetupBillingAddressSection-Byvw69gz-mE6MxWqh.js";import{b as Ct,f as mn,a as bt}from"./CustomerOnboardingDetailPageSkeleton-IwCrs_Ni-BwoSRsex.js";import{G as fn,o as yn}from"./CompanyOfficerDetailsSection-C3yfgjGi-Bd3_muTE.js";import{o as gn}from"./QBOSetupSection-B1rw0-Q--zMoFTXwP.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-CUA73Qvk-DoxrAhy8.js";import"./SetUpAccountSection-Cv2os5ln-DPXBfr4R.js";import"./SetUpDefaultSection-BX28nGOx-BuMe3hLW.js";import"./ChaseOverlay-Cpt5a98f-dacal49t.js";import"./LabeledAddressValueField-B5z2zp_k-CGSpumtp.js";import"./LabeledCreatableSingleSelectField-CP-IuKrc-DjM8Weti.js";import"./LabeledDocumentField-DyMGgcCu-Bgxu4H6-.js";import"./DocumentSecurityBanner-CQSsX1R1-B63qiUpU.js";import"./QBOConnectionDialog-9VnW9Bu9-H93cd5b5.js";const hn=({companyView:t,companyOfficerLocalData:w,allNationalityCountries:c,isVerificationPopupOpen:f,setIsVerificationPopupOpen:v,verifiedPhoneNumber:x,onPhoneVerified:y,...I})=>{const m=Ke(),V=t?.companyOfficers.slice(0,10).sort((b,ee)=>b.user.createTime?.isAfter(ee.user.createTime)===!0?1:-1)?.map(b=>b.user),{company_officer:l}=We.getLocalizedStrings().customerOnboardingPage.sections,{title:D}=l,N=t?.company.company.featuresActivationInfo.connectedAccountProvider;return r.jsx(Sn,{children:r.jsx(yn,{companyOfficerData:w,allOfficers:V??[],allNationalityCountries:c,sectionHeader:D,isPopupOpen:f,productType:"onboarding",connectedAccountProvider:N,showInfoTooltip:m!=="small",showCompletedIcon:m==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:x,onPhoneVerified:y,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:v,...I})})},Sn=P.div`
1
+ import{j as r,X as Ke,u as Zt,a as en,c3 as me,M as We,a2 as He,D as mt,H as Qe,l as M,aV as tn,o as re,F as nn,q as K,a4 as an,h0 as on,fC as sn,fa as ft,cw as xt,cx as yt,C as fe,fF as ye,cg as rn,e as cn,h1 as gt,E as ht,ce as ln,fE as dn}from"./index-DR9vSgqx.js";import{b as p,n as P,k as It}from"./vendor-CnQcJ2Lu.js";import{D as pn}from"./HelpButton-Coe4ii48-CP7NC72-.js";import{t as St,e as un}from"./PaymentAccountSetupBillingAddressSection-CBvjcBEH-CXrtDUXk.js";import{b as Ct,f as mn,a as bt}from"./CustomerOnboardingDetailPageSkeleton-BY4rv3eB-CqGuM0YC.js";import{s as fn,x as yn}from"./CompanyOfficerDetailsSection-DTbhxCCJ-uAcyCJzT.js";import{o as gn}from"./QBOSetupSection-Cmf7-3wv-a5e4QtQ4.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-DlnppXL_-CUHiDz63.js";import"./SetUpAccountSection-CYn2o43t-Bpg0pToC.js";import"./SetUpDefaultSection-C0-L2ZyA-COKZA6T-.js";import"./ChaseOverlay-CvXMdD8r-BjJFL-eT.js";import"./LabeledAddressValueField-DZCn1w6m-DlnblRke.js";import"./LabeledCreatableSingleSelectField-yLzlQU6_-DKdnF88p.js";import"./LabeledDocumentField-gxNaFx2j-qq-lZmSF.js";import"./QBOConnectionDialog-BUr2NQiK-Aqi4uG-w.js";const hn=({companyView:t,companyOfficerLocalData:w,allNationalityCountries:c,isVerificationPopupOpen:f,setIsVerificationPopupOpen:v,verifiedPhoneNumber:x,onPhoneVerified:y,...I})=>{const m=Ke(),V=t?.companyOfficers.slice(0,10).sort((b,ee)=>b.user.createTime?.isAfter(ee.user.createTime)===!0?1:-1)?.map(b=>b.user),{company_officer:l}=We.getLocalizedStrings().customerOnboardingPage.sections,{title:D}=l,N=t?.company.company.featuresActivationInfo.connectedAccountProvider;return r.jsx(Sn,{children:r.jsx(yn,{companyOfficerData:w,allOfficers:V??[],allNationalityCountries:c,sectionHeader:D,isPopupOpen:f,productType:"onboarding",connectedAccountProvider:N,showInfoTooltip:m!=="small",showCompletedIcon:m==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:x,onPhoneVerified:y,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:v,...I})})},Sn=P.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -10,7 +10,7 @@ import{j as r,X as Ke,u as Zt,a as en,c3 as me,M as We,a2 as He,D as mt,H as Qe,
10
10
  display: flex;
11
11
  `,xn=P.input`
12
12
  display: none;
13
- `,In=({isValid:t,sectionId:w="onboardingQboConnection",...c})=>{const{register:f}=rn();return r.jsxs(Pn,{children:[r.jsx(xn,{type:"hidden",...f(`${w}.connected`,{validate:v=>v==="true"}),value:t?"true":"false"}),r.jsx(gn,{isValid:t,...c})]})},j="companyDetails",C="companyOfficer",Z="onboardingPaymentAccountSetupSection",Pt="customerOnboardingDetailPage",u="onboardingSubscriptionBillingAddress",ge="onboardingQboConnection",he={titleWidth:new fe(343,580,726,826),topNavBarHeight:new fe(52,52,63),topNavBarLeftRightSpace:new fe(K[5],K[9],112),subTitlePaddingTop:new fe(K[3],K[3]),subTitlePaddingBottom:new fe(K[3],K[3])},On=t=>`${t}_form`,ce=We.getLocalizedStrings(),kn=({fileProps:t,isRefreshingViewInBackground:w,isAdmin:c,onboardingCustomerView:f,companyTitles:v,connectedAccountProvider:x,analytics:y,cardPaymentView:I,stripeKey:m,googleAPIKey:V,handleCreateCardSetupIntent:l,handleConfirmCardSetupIntent:D,updateCardPaymentModalState:N,handleAddCardPaymentSource:b,resetCardPaymentViewState:ee,handleResetCardPaymentErrorStatuses:we,redirectToProductSuitePage:Se,onFormErrorsChange:F,...ve})=>{const L=Ke(),Ae=p.useRef(null),Ve=p.useRef(null),W=p.useRef(null),De=p.useRef(null),[Ce,B]=p.useState(!1),[R,z]=p.useState("next"),[T,be]=p.useState(!1),[le,Pe]=p.useState(!1),[te,G]=p.useState(null),{onAddressClick:ne,onCompanyDetailsChanged:xe,onCompanyOfficerUpdated:$,onFetchLinkTokenClick:Ie,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:oe,onDeleteFile:A,onEditFileName:Ge,updateFilesEntity:Ye,onGetOtp:Ot,onSkipSetupClick:$e,onUpdateCustomerView:Fe,updateStepHandler:U,onVerifyOtp:kt,onResendOtp:wt,handleOnConnectClick:vt,updateQBOPopupState:At,onUpdateStep:Ne,onAddressEditHandler:Vt}=ve,Dt=Zt(),i=en({mode:"onSubmit",reValidateMode:"onChange",defaultValues:Me(f,f.allNationalityCountries),values:Me(f,f.allNationalityCountries),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),q=p.useCallback(()=>{const e=[];return(i.getFieldState(Z).error!=null||i.getFieldState(u).error!=null)&&e.push("link_payment_account"),i.getFieldState(ge).error!=null&&e.push("qbo_connection"),e},[i]);p.useEffect(()=>{const e=q();F?.(e)},[q,F]),p.useEffect(()=>{const e=i.watch((n,{name:o,type:s})=>{o!=null&&(s==="change"||s==="blur")&&me(()=>{const d=q();F?.(d)})});return()=>e.unsubscribe()},[i,q,F]);const Xe=e=>{Je(e)},Oe=p.useRef(""),$t=e=>{Oe.current=e;const n=Object.values(f.companyOfficerLocalData).findIndex(s=>s?.isSelectedForVerification===!0)??0,o=n<0?0:n;i.clearErrors(`${C}.${o}.phone`)},Je=e=>{e!=null&&!ye(e)?i.trigger(`${C}.${X}.phone`):Ot(e)},{companyView:ie,companyDetailsLocalData:g,companyOfficerLocalData:H,currentStep:a,completedSteps:Ze,saveStatus:O,allSteps:h,allRequiredStepsCompleted:Te,paymentAccount:Q,paymentAccountStatus:et,externalConnections:_e,plaidConnectionDetails:Ee,uiState:je,allNationalityCountries:Le,pendingSaveDetails:{companyDetails:Ft,officer:Nt},subscriptionBillingAddress:Y}=f,X=Object.values(H).findIndex(e=>e?.isSelectedForVerification===!0)??0,_=`Officer_${X<0?1:X+1}`,Tt=ie?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Be=H[_]?.userId!=null?Tt?.find(e=>e.user.userId===H[_]?.userId)?.address:null,tt=H[_]?.addressStatus?.addressToCreate,ke=ie?.companyAddress,nt=g?.addressStatus?.addressToCreate,Re=ie?.registeredAddress,at=g?.registeredAddressStatus?.addressToCreate,{customerOnboardingPage:_t,common:S}=ce,{footer:Et,steps:jt}=_t,{buttons:ot}=Et,it=jt[a],ze=h.length,se=He(O.fetchState),E=He(a);function Lt(){return _e?.accounting[0]?.isValid??!1}const ue=()=>{const e=Object.values(Ee).some(d=>d.fetchStatus.fetchState==="Completed"),n=Q?.providerVerificationStatus?.code?.includes("verified")??!1,o=I.cardsList.length>0,s=I.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return e&&n||!n&&!Q&&o||!o&&!Q&&s};function st(){if(i.getFieldState(u).error)return!1;const e=i.getValues(u),n=Y?.street.join("").trim(),o=Y?.city,s=Y?.state,d=Y?.country,k=Y?.postalCode!=null&&Y.postalCode||e.postalCode||S.strings.empty;return!!n&&!!o&&!!s&&!!d&&!!k}const rt=He(Q?.providerVerificationStatus?.code);p.useEffect(()=>{rt==="pending_manual_verification"&&Q?.providerVerificationStatus?.code==="manually_verified"&&y.trackOnboardingBankAccountVerified("manual")},[y,Q?.providerVerificationStatus?.code,rt]);const Bt=async(e,n)=>{if(e.includes(j))xe?.(n[j]);else if(e.includes(C))$?.(n[C]);else if(e.includes(u)&&n[u]!=null){const o=i.getValues(`${u}`).country;let s=n[u];if(e.includes(`${u}.street`)&&n[u].street!=null){const{addressValue:d}=n[u].street,k=xt(d?.country);s={street:n[u].street??S.strings.empty,city:d?.locality??S.strings.empty,state:d?.administrativeAreaLevel1??S.strings.empty,country:k,countryCode:d?.countryCode??S.strings.empty,postalCode:d?.postalCode??S.strings.empty,secondaryInfo:n[u].secondaryInfo,suite:n[u].suite},o.selectedOption!==k.selectedOption&&(s={...s,country:k})}else e===`${u}.country`&&o.selectedOption!=null?s={...s,countryCode:yt(o.selectedOption)}:o.selectedOption!=null&&e.includes(`${u}.street`)===!1&&(s={...s,countryCode:yt(o.selectedOption)});Vt(s)}};p.useEffect(()=>{const e=i.watch((n,{name:o})=>{o!=null&&n!=null&&me(()=>Bt(o,n))});return()=>{e.unsubscribe()}}),p.useEffect(()=>{se==="In-Progress"&&O.fetchState==="Completed"&&(i.reset(Me(f,Le),{keepDirtyValues:!1}),E==="company_details"&&a==="link_payment_account"&&!h.includes("qbo_connection")&&!f.qboConnected&&Se())},[i,f,se,O.fetchState,Le,E,a,h,Se]),p.useEffect(()=>{Ce&&se==="In-Progress"&&O.fetchState==="Completed"&&($e(),y.track(mt.Event.onboardingSkipAndSave))},[se,Ce,O.fetchState,$e]),p.useEffect(()=>{te?.shouldNavigate===!0&&se==="In-Progress"&&O.fetchState==="Completed"&&(U(te.fromStep,te.stepDirection,!0),G(null))},[te,se,O.fetchState,U]),p.useLayoutEffect(()=>{E!=null&&E!==a&&(h.indexOf(E)===h.indexOf(a)-1||h.indexOf(E)===ze-1&&h.indexOf(a)===0?R!=="next"&&z("next"):(h.indexOf(E)-1===h.indexOf(a)||h.indexOf(E)===0&&h.indexOf(a)===ze-1)&&R!=="previous"&&z("previous"))},[h,a,E,R,ze]);const ct=()=>{const e=H[_];return!!e?.firstName||!!e?.lastName||!!e?.email||!!e?.nationalityCountryCode||!!e?.birthday||!!e?.ownershipInCompany||!!e?.phone||!!e?.ssn||!!e?.titleAtCompany||!!e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0},Rt=!Qe(tt!=null?M.getFormattedAddress(tt):null,Be!=null?M.getFormattedAddress(Be):null),zt=!Qe(nt!=null?M.getFormattedAddress(nt):null,ke!=null?M.getFormattedAddress(ke):null),Ut=!Qe(at!=null?M.getFormattedAddress(at):null,Re!=null?M.getFormattedAddress(Re):null),qt=i.getFieldState(j).isDirty||zt||Ut||Ft,Ue=i.getFieldState(C).isDirty&&ct()||Rt||Nt,lt=i.getFieldState(`${u}`).isDirty,Ht=g?.primaryContactLocalData,Qt=()=>{U(a,"previous",!0)},Mt=()=>{const e=i.getValues(u),n={street:e.street.addressString,suite:e.suite,city:e.city,state:e.state,postalCode:e.postalCode,country:e.country.selectedOption??S.strings.empty,secondaryInfo:e.secondaryInfo};y.trackOnboardingBillingAddressSave(n)},Kt=()=>{switch(Pe(!1),a){case"link_payment_account":lt?setTimeout(()=>{const e=q();F?.(e),st()&&lt?(Mt(),Fe(_,!1,!0),G({fromStep:a,shouldNavigate:!0,stepDirection:"next"})):U(a,"next",!0)},200):U(a,"next",!0);break;case"qbo_connection":U(a,"next",!0);break;case"company_officer":if(Ue){const e=dt();if(me(()=>{const n=q();F?.(n)}),e.needsOtp&&e.phoneNumber&&ye(e.phoneNumber)){const n=i.formState.errors[C]?.[X<0?0:X],o=n?.phone,s=n!=null&&Object.keys(n).some(d=>d!=="phone"&&n[d]!=null);if(o!=null&&!s){Xe(e.phoneNumber);return}}e.isValid&&(Fe(_,!1,!1),y.trackOnboardingCompanyOfficerSave(pt(),{legalName:g?.companyLegalName}),G({fromStep:a,shouldNavigate:!0,stepDirection:"next"}))}else U(a,"next",!0);break;case"company_details":Pe(!0);{const e=!(st()&&ue()),n=!Lt()&&h.includes("qbo_connection");if(e||n){e&&(i.trigger(`${Z}`),i.trigger(`${u}`)),n&&i.trigger(ge),me(()=>{const o=q();F?.(o)}),e?Ne("link_payment_account"):n&&Ne("qbo_connection");return}}if(qt||Ue||!Ht?.email){const e=Gt(),n=Ue?dt():{isValid:!0};me(()=>{const o=q();F?.(o)}),e&&n.isValid?(Te&&(B(!0),Yt()),Fe(_,!Te,!1),G({fromStep:a,shouldNavigate:!0,stepDirection:"next"})):n.isValid||Ne("company_officer")}else Te?Wt():U(a,"next",!0);break}},Wt=()=>{O.fetchState!=="In-Progress"&&($e(),y.track(mt.Event.onboardingSkipAndSave))},dt=()=>{const e=H[_],n=e?.email??S.strings.empty,o=e?.phone??S.strings.empty,s=e?.ssn??S.strings.empty,d=e?.ownershipInCompany,k=X<0?0:X,Jt=!!e?.firstName&&!!e?.lastName;let J=!0,ut=!1;return n&&!Jt&&(i.trigger([`${C}.${k}.name.firstName`,`${C}.${k}.name.lastName`],{shouldFocus:a==="company_officer"}),J=!1),(!n&&ct()||ht.test(n)===!1)&&(i.trigger(`${C}.${k}.email`,{shouldFocus:a==="company_officer"}),J=!1),o&&ye(o)===!1&&(i.trigger(`${C}.${k}.phone`,{shouldFocus:a==="company_officer"}),J=!1),o&&ye(o)===!0&&x==="unit"&&(Oe.current!==""&&o===Oe.current||(ut=!0,i.setError(`${C}.${k}.phone`,{type:"custom",message:ce.commonSetUp.businessVerification.phoneValidationError},{shouldFocus:a==="company_officer"}),J=!1)),d!=null&&d>100&&(i.trigger(`${C}.${k}.ownership`,{shouldFocus:a==="company_officer"}),J=!1),s&&dn.test(s)===!1&&(i.trigger(`${C}.${k}.ssn`,{shouldFocus:a==="company_officer"}),J=!1),{isValid:J,needsOtp:ut,phoneNumber:o}},Gt=()=>{const e=g?.website?.toString()??S.strings.empty,n=g?.phone??S.strings.empty,o=g?.taxIdOrEIN??S.strings.empty,s=g?.primaryContactLocalData?.email??S.strings.empty;let d=!0;return e&&gt.test(e)===!1&&(i.trigger(`${j}.companyWebsite`,{shouldFocus:a==="company_details"}),d=!1),gt.lastIndex=0,n&&ye(n)===!1&&(i.trigger(`${j}.companyPhone`,{shouldFocus:a==="company_details"}),d=!1),(!s||ht.test(s)===!1)&&(i.trigger(`${j}.primaryContactEmail`,{shouldFocus:a==="company_details"}),d=!1),o&&ln.test(o)===!1&&(i.trigger(`${j}.companyTaxId`,{shouldFocus:a==="company_details"}),d=!1),d},pt=()=>{const e=H[_];return{email:e?.email??S.strings.empty,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?M.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification}},Yt=()=>{const e=g?.primaryContactLocalData;y.trackBusinessVerificationSave(pt(),{companyDescription:g?.companyDescription,legalName:g?.companyLegalName,phone:g?.phone,website:g?.website?.toString(),industry:g?.companyIndustry??S.strings.empty,formattedAddress:g?.addressStatus?.addressToCreate!=null?M.getFormattedAddress(g?.addressStatus?.addressToCreate):void 0},{firstName:e?.firstName,lastName:e?.lastName,email:e?.email},"onboarding")},[qe,Xt]=p.useState(!1);return r.jsxs(An,{children:[r.jsxs(Vn,{windowSize:L,children:[h.indexOf(a)>=0?r.jsx(tn,{title:it.sectionTitle,showBackButton:!1,backgroundColor:Dt.colors.grey4,style:{zIndex:4},showLeftSection:L!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:re.sp0,paddingBottom:re.sp0},source:"CustomerOnboardingDetailPage"}):r.jsx(Dn,{windowSize:L,children:r.jsx(Fn,{windowSize:L,children:r.jsx($n,{})})}),r.jsx(nn,{...i,children:r.jsx(Tn,{id:On(Pt),children:h.map(e=>{let n;n=r.jsx(St,{connectedAccountProvider:x,paymentAccount:Q,accountStatus:et,plaidConnectionDetails:Ee,sectionId:Z,hasError:i.getFieldState(Z).error!=null||le&&!ue(),isValid:ue(),analytics:y,onFetchLinkTokenClick:Ie,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,cardPaymentView:I,resetCardPaymentViewState:ee,updateCardPaymentModalState:N,cardSetupInProgress:qe,subscriptionBillingAddressSectionId:u});let o=Ae;switch(e){case"link_payment_account":n=r.jsx(St,{connectedAccountProvider:x,paymentAccount:Q,accountStatus:et,plaidConnectionDetails:Ee,subscriptionBillingAddressSectionId:u,sectionId:Z,hasError:i.getFieldState(Z).error!=null||le&&!ue(),isValid:ue(),analytics:y,onFetchLinkTokenClick:Ie,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,updateCardPaymentModalState:N,cardPaymentView:I,resetCardPaymentViewState:ee,cardSetupInProgress:qe,googleAPIKey:V,subscriptionBillingAddress:Y});break;case"qbo_connection":n=r.jsx(In,{sectionId:ge,hasError:i.getFieldState(ge).error!=null,isAdmin:c,isValid:_e?.accounting[0]?.isValid??!1,companyName:ie?.company.company.companyInfo.companyLegalName,saveConnectionState:_e?.saveConnectionState,isQBOPopupOpen:je.isQBOPopupOpen,handleOnConnectClick:vt,updateQBOPopupState:At}),o=Ve;break;case"company_officer":n=r.jsx(hn,{companyOfficerLocalData:H,allNationalityCountries:Le,isCompleted:Ze.includes("company_officer"),companyView:ie,sectionId:C,filesEndPoint:t.filesEndPoint,authParams:t.authParams,isRefreshingViewInBackground:w,companyTitles:v,isVerificationPopupOpen:T,setIsVerificationPopupOpen:be,onGetOtp:Xe,onVerifyOtp:kt,onResendOtp:wt,onOfficerAddressClick:s=>ne(s,Be?.addressId),updateFilesEntity:Ye,onEditFileName:Ge,onDeleteFile:A,verifiedPhoneNumber:Oe.current,onPhoneVerified:$t,isDisabled:O.fetchState==="In-Progress"?"readonly":void 0,triggerError:Je}),o=De;break;case"company_details":n=r.jsx(Cn,{fileProps:{...t,onEditFileName:Ge,onDeleteFile:A,updateFilesEntity:Ye},sectionId:j,companyIndustries:f.companyIndustries,companyDetails:g,isDisabled:O.fetchState==="In-Progress"?"readonly":void 0,isCompleted:Ze.includes("company_details"),onCompanyAddressClick:s=>{const d=ie?.company.company.companyOnboardingInfo.subscriptionBillingAddressId;ke?.addressId==null&&d!=null?ne(s,d):ne(s,ke?.addressId)},onRegisteredAddressClick:s=>ne(s,Re?.addressId)}),o=W;break}return r.jsxs(Nn,{ref:o,isVisible:a===e,includeAnimation:a==="link_payment_account"||a==="qbo_connection"?!je.isQBOPopupOpen:a==="company_officer"?!T:!0,paddingBottom:e==="company_details"||e==="company_officer"?K[6]:K[0],stepAnimationDirection:R,children:[h.indexOf(a)>=0?r.jsx(_n,{windowSize:L,children:it.sectionSubTitle}):null,n]},e)})})}),r.jsx(an,{formId:`${Pt}`,style:{width:L==="small"?"auto":"100%",paddingTop:re.sp2,paddingBottom:re.sp2},primaryBtn:{onClick:Kt,label:a==="company_details"?S.footer.submit:ot.next,isLoading:O.fetchState==="In-Progress",isDisabled:O.fetchState==="In-Progress"},cancelBtn:{onClick:Qt,label:ot.back,isDisabled:O.fetchState==="In-Progress"||h.indexOf(a)===0},containerStyle:{width:"auto",justifyContent:"center"},showCancel:!0})]}),r.jsx(un,{handleConfirmCardSetupIntent:D,updateCardPaymentModalState:N,handleCreateCardSetupIntent:l,handleAddCardPaymentSource:b,cardPaymentView:I,stripeKey:m,isCardPaymentOpen:je.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:we,cardSetupInProgress:qe,setCardSetupInProgress:Xt})]})},wn=It`
13
+ `,In=({isValid:t,sectionId:w="onboardingQboConnection",...c})=>{const{register:f}=rn();return r.jsxs(Pn,{children:[r.jsx(xn,{type:"hidden",...f(`${w}.connected`,{validate:v=>v==="true"}),value:t?"true":"false"}),r.jsx(gn,{isValid:t,...c})]})},j="companyDetails",C="companyOfficer",Z="onboardingPaymentAccountSetupSection",Pt="customerOnboardingDetailPage",u="onboardingSubscriptionBillingAddress",ge="onboardingQboConnection",he={titleWidth:new fe(343,580,726,826),topNavBarHeight:new fe(52,52,63),topNavBarLeftRightSpace:new fe(K[5],K[9],112),subTitlePaddingTop:new fe(K[3],K[3]),subTitlePaddingBottom:new fe(K[3],K[3])},On=t=>`${t}_form`,ce=We.getLocalizedStrings(),kn=({fileProps:t,isRefreshingViewInBackground:w,isAdmin:c,onboardingCustomerView:f,companyTitles:v,connectedAccountProvider:x,analytics:y,cardPaymentView:I,stripeKey:m,googleAPIKey:V,handleCreateCardSetupIntent:l,handleConfirmCardSetupIntent:D,updateCardPaymentModalState:N,handleAddCardPaymentSource:b,resetCardPaymentViewState:ee,handleResetCardPaymentErrorStatuses:we,redirectToProductSuitePage:Se,onFormErrorsChange:F,...ve})=>{const L=Ke(),Ae=p.useRef(null),Ve=p.useRef(null),W=p.useRef(null),De=p.useRef(null),[Ce,B]=p.useState(!1),[R,z]=p.useState("next"),[T,be]=p.useState(!1),[le,Pe]=p.useState(!1),[te,Y]=p.useState(null),{onAddressClick:ne,onCompanyDetailsChanged:xe,onCompanyOfficerUpdated:$,onFetchLinkTokenClick:Ie,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:oe,onDeleteFile:A,onEditFileName:Ye,updateFilesEntity:Xe,onGetOtp:Ot,onSkipSetupClick:$e,onUpdateCustomerView:Fe,updateStepHandler:U,onVerifyOtp:kt,onResendOtp:wt,handleOnConnectClick:vt,updateQBOPopupState:At,onUpdateStep:Ne,onAddressEditHandler:Vt}=ve,Dt=Zt(),i=en({mode:"onSubmit",reValidateMode:"onChange",defaultValues:Me(f,f.allNationalityCountries),values:Me(f,f.allNationalityCountries),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),q=p.useCallback(()=>{const e=[];return(i.getFieldState(Z).error!=null||i.getFieldState(u).error!=null)&&e.push("link_payment_account"),i.getFieldState(ge).error!=null&&e.push("qbo_connection"),e},[i]);p.useEffect(()=>{const e=q();F?.(e)},[q,F]),p.useEffect(()=>{const e=i.watch((n,{name:o,type:s})=>{o!=null&&(s==="change"||s==="blur")&&me(()=>{const d=q();F?.(d)})});return()=>e.unsubscribe()},[i,q,F]);const Ge=e=>{Je(e)},Oe=p.useRef(""),$t=e=>{Oe.current=e;const n=Object.values(f.companyOfficerLocalData).findIndex(s=>s?.isSelectedForVerification===!0)??0,o=n<0?0:n;i.clearErrors(`${C}.${o}.phone`)},Je=e=>{e!=null&&!ye(e)?i.trigger(`${C}.${G}.phone`):Ot(e)},{companyView:ie,companyDetailsLocalData:g,companyOfficerLocalData:H,currentStep:a,completedSteps:Ze,saveStatus:O,allSteps:h,allRequiredStepsCompleted:Te,paymentAccount:Q,paymentAccountStatus:et,externalConnections:_e,plaidConnectionDetails:Ee,uiState:je,allNationalityCountries:Le,pendingSaveDetails:{companyDetails:Ft,officer:Nt},subscriptionBillingAddress:X}=f,G=Object.values(H).findIndex(e=>e?.isSelectedForVerification===!0)??0,_=`Officer_${G<0?1:G+1}`,Tt=ie?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Be=H[_]?.userId!=null?Tt?.find(e=>e.user.userId===H[_]?.userId)?.address:null,tt=H[_]?.addressStatus?.addressToCreate,ke=ie?.companyAddress,nt=g?.addressStatus?.addressToCreate,Re=ie?.registeredAddress,at=g?.registeredAddressStatus?.addressToCreate,{customerOnboardingPage:_t,common:S}=ce,{footer:Et,steps:jt}=_t,{buttons:ot}=Et,it=jt[a],ze=h.length,se=He(O.fetchState),E=He(a);function Lt(){return _e?.accounting[0]?.isValid??!1}const ue=()=>{const e=Object.values(Ee).some(d=>d.fetchStatus.fetchState==="Completed"),n=Q?.providerVerificationStatus?.code?.includes("verified")??!1,o=I.cardsList.length>0,s=I.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return e&&n||!n&&!Q&&o||!o&&!Q&&s};function st(){if(i.getFieldState(u).error)return!1;const e=i.getValues(u),n=X?.street.join("").trim(),o=X?.city,s=X?.state,d=X?.country,k=X?.postalCode!=null&&X.postalCode||e.postalCode||S.strings.empty;return!!n&&!!o&&!!s&&!!d&&!!k}const rt=He(Q?.providerVerificationStatus?.code);p.useEffect(()=>{rt==="pending_manual_verification"&&Q?.providerVerificationStatus?.code==="manually_verified"&&y.trackOnboardingBankAccountVerified("manual")},[y,Q?.providerVerificationStatus?.code,rt]);const Bt=async(e,n)=>{if(e.includes(j))xe?.(n[j]);else if(e.includes(C))$?.(n[C]);else if(e.includes(u)&&n[u]!=null){const o=i.getValues(`${u}`).country;let s=n[u];if(e.includes(`${u}.street`)&&n[u].street!=null){const{addressValue:d}=n[u].street,k=xt(d?.country);s={street:n[u].street??S.strings.empty,city:d?.locality??S.strings.empty,state:d?.administrativeAreaLevel1??S.strings.empty,country:k,countryCode:d?.countryCode??S.strings.empty,postalCode:d?.postalCode??S.strings.empty,secondaryInfo:n[u].secondaryInfo,suite:n[u].suite},o.selectedOption!==k.selectedOption&&(s={...s,country:k})}else e===`${u}.country`&&o.selectedOption!=null?s={...s,countryCode:yt(o.selectedOption)}:o.selectedOption!=null&&e.includes(`${u}.street`)===!1&&(s={...s,countryCode:yt(o.selectedOption)});Vt(s)}};p.useEffect(()=>{const e=i.watch((n,{name:o})=>{o!=null&&n!=null&&me(()=>Bt(o,n))});return()=>{e.unsubscribe()}}),p.useEffect(()=>{se==="In-Progress"&&O.fetchState==="Completed"&&(i.reset(Me(f,Le),{keepDirtyValues:!1}),E==="company_details"&&a==="link_payment_account"&&!h.includes("qbo_connection")&&!f.qboConnected&&Se())},[i,f,se,O.fetchState,Le,E,a,h,Se]),p.useEffect(()=>{Ce&&se==="In-Progress"&&O.fetchState==="Completed"&&($e(),y.track(mt.Event.onboardingSkipAndSave))},[se,Ce,O.fetchState,$e]),p.useEffect(()=>{te?.shouldNavigate===!0&&se==="In-Progress"&&O.fetchState==="Completed"&&(U(te.fromStep,te.stepDirection,!0),Y(null))},[te,se,O.fetchState,U]),p.useLayoutEffect(()=>{E!=null&&E!==a&&(h.indexOf(E)===h.indexOf(a)-1||h.indexOf(E)===ze-1&&h.indexOf(a)===0?R!=="next"&&z("next"):(h.indexOf(E)-1===h.indexOf(a)||h.indexOf(E)===0&&h.indexOf(a)===ze-1)&&R!=="previous"&&z("previous"))},[h,a,E,R,ze]);const ct=()=>{const e=H[_];return!!e?.firstName||!!e?.lastName||!!e?.email||!!e?.nationalityCountryCode||!!e?.birthday||!!e?.ownershipInCompany||!!e?.phone||!!e?.ssn||!!e?.titleAtCompany||!!e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0},Rt=!Qe(tt!=null?M.getFormattedAddress(tt):null,Be!=null?M.getFormattedAddress(Be):null),zt=!Qe(nt!=null?M.getFormattedAddress(nt):null,ke!=null?M.getFormattedAddress(ke):null),Ut=!Qe(at!=null?M.getFormattedAddress(at):null,Re!=null?M.getFormattedAddress(Re):null),qt=i.getFieldState(j).isDirty||zt||Ut||Ft,Ue=i.getFieldState(C).isDirty&&ct()||Rt||Nt,lt=i.getFieldState(`${u}`).isDirty,Ht=g?.primaryContactLocalData,Qt=()=>{U(a,"previous",!0)},Mt=()=>{const e=i.getValues(u),n={street:e.street.addressString,suite:e.suite,city:e.city,state:e.state,postalCode:e.postalCode,country:e.country.selectedOption??S.strings.empty,secondaryInfo:e.secondaryInfo};y.trackOnboardingBillingAddressSave(n)},Kt=()=>{switch(Pe(!1),a){case"link_payment_account":lt?setTimeout(()=>{const e=q();F?.(e),st()&&lt?(Mt(),Fe(_,!1,!0),Y({fromStep:a,shouldNavigate:!0,stepDirection:"next"})):U(a,"next",!0)},200):U(a,"next",!0);break;case"qbo_connection":U(a,"next",!0);break;case"company_officer":if(Ue){const e=dt();if(me(()=>{const n=q();F?.(n)}),e.needsOtp&&e.phoneNumber&&ye(e.phoneNumber)){const n=i.formState.errors[C]?.[G<0?0:G],o=n?.phone,s=n!=null&&Object.keys(n).some(d=>d!=="phone"&&n[d]!=null);if(o!=null&&!s){Ge(e.phoneNumber);return}}e.isValid&&(Fe(_,!1,!1),y.trackOnboardingCompanyOfficerSave(pt(),{legalName:g?.companyLegalName}),Y({fromStep:a,shouldNavigate:!0,stepDirection:"next"}))}else U(a,"next",!0);break;case"company_details":Pe(!0);{const e=!(st()&&ue()),n=!Lt()&&h.includes("qbo_connection");if(e||n){e&&(i.trigger(`${Z}`),i.trigger(`${u}`)),n&&i.trigger(ge),me(()=>{const o=q();F?.(o)}),e?Ne("link_payment_account"):n&&Ne("qbo_connection");return}}if(qt||Ue||!Ht?.email){const e=Yt(),n=Ue?dt():{isValid:!0};me(()=>{const o=q();F?.(o)}),e&&n.isValid?(Te&&(B(!0),Xt()),Fe(_,!Te,!1),Y({fromStep:a,shouldNavigate:!0,stepDirection:"next"})):n.isValid||Ne("company_officer")}else Te?Wt():U(a,"next",!0);break}},Wt=()=>{O.fetchState!=="In-Progress"&&($e(),y.track(mt.Event.onboardingSkipAndSave))},dt=()=>{const e=H[_],n=e?.email??S.strings.empty,o=e?.phone??S.strings.empty,s=e?.ssn??S.strings.empty,d=e?.ownershipInCompany,k=G<0?0:G,Jt=!!e?.firstName&&!!e?.lastName;let J=!0,ut=!1;return n&&!Jt&&(i.trigger([`${C}.${k}.name.firstName`,`${C}.${k}.name.lastName`],{shouldFocus:a==="company_officer"}),J=!1),(!n&&ct()||ht.test(n)===!1)&&(i.trigger(`${C}.${k}.email`,{shouldFocus:a==="company_officer"}),J=!1),o&&ye(o)===!1&&(i.trigger(`${C}.${k}.phone`,{shouldFocus:a==="company_officer"}),J=!1),o&&ye(o)===!0&&x==="unit"&&(Oe.current!==""&&o===Oe.current||(ut=!0,i.setError(`${C}.${k}.phone`,{type:"custom",message:ce.commonSetUp.businessVerification.phoneValidationError},{shouldFocus:a==="company_officer"}),J=!1)),d!=null&&d>100&&(i.trigger(`${C}.${k}.ownership`,{shouldFocus:a==="company_officer"}),J=!1),s&&dn.test(s)===!1&&(i.trigger(`${C}.${k}.ssn`,{shouldFocus:a==="company_officer"}),J=!1),{isValid:J,needsOtp:ut,phoneNumber:o}},Yt=()=>{const e=g?.website?.toString()??S.strings.empty,n=g?.phone??S.strings.empty,o=g?.taxIdOrEIN??S.strings.empty,s=g?.primaryContactLocalData?.email??S.strings.empty;let d=!0;return e&&gt.test(e)===!1&&(i.trigger(`${j}.companyWebsite`,{shouldFocus:a==="company_details"}),d=!1),gt.lastIndex=0,n&&ye(n)===!1&&(i.trigger(`${j}.companyPhone`,{shouldFocus:a==="company_details"}),d=!1),(!s||ht.test(s)===!1)&&(i.trigger(`${j}.primaryContactEmail`,{shouldFocus:a==="company_details"}),d=!1),o&&ln.test(o)===!1&&(i.trigger(`${j}.companyTaxId`,{shouldFocus:a==="company_details"}),d=!1),d},pt=()=>{const e=H[_];return{email:e?.email??S.strings.empty,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?M.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification}},Xt=()=>{const e=g?.primaryContactLocalData;y.trackBusinessVerificationSave(pt(),{companyDescription:g?.companyDescription,legalName:g?.companyLegalName,phone:g?.phone,website:g?.website?.toString(),industry:g?.companyIndustry??S.strings.empty,formattedAddress:g?.addressStatus?.addressToCreate!=null?M.getFormattedAddress(g?.addressStatus?.addressToCreate):void 0},{firstName:e?.firstName,lastName:e?.lastName,email:e?.email},"onboarding")},[qe,Gt]=p.useState(!1);return r.jsxs(An,{children:[r.jsxs(Vn,{windowSize:L,children:[h.indexOf(a)>=0?r.jsx(tn,{title:it.sectionTitle,showBackButton:!1,backgroundColor:Dt.colors.grey4,style:{zIndex:4},showLeftSection:L!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:re.sp0,paddingBottom:re.sp0},source:"CustomerOnboardingDetailPage"}):r.jsx(Dn,{windowSize:L,children:r.jsx(Fn,{windowSize:L,children:r.jsx($n,{})})}),r.jsx(nn,{...i,children:r.jsx(Tn,{id:On(Pt),children:h.map(e=>{let n;n=r.jsx(St,{connectedAccountProvider:x,paymentAccount:Q,accountStatus:et,plaidConnectionDetails:Ee,sectionId:Z,hasError:i.getFieldState(Z).error!=null||le&&!ue(),isValid:ue(),analytics:y,onFetchLinkTokenClick:Ie,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,cardPaymentView:I,resetCardPaymentViewState:ee,updateCardPaymentModalState:N,cardSetupInProgress:qe,subscriptionBillingAddressSectionId:u});let o=Ae;switch(e){case"link_payment_account":n=r.jsx(St,{connectedAccountProvider:x,paymentAccount:Q,accountStatus:et,plaidConnectionDetails:Ee,subscriptionBillingAddressSectionId:u,sectionId:Z,hasError:i.getFieldState(Z).error!=null||le&&!ue(),isValid:ue(),analytics:y,onFetchLinkTokenClick:Ie,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,updateCardPaymentModalState:N,cardPaymentView:I,resetCardPaymentViewState:ee,cardSetupInProgress:qe,googleAPIKey:V,subscriptionBillingAddress:X});break;case"qbo_connection":n=r.jsx(In,{sectionId:ge,hasError:i.getFieldState(ge).error!=null,isAdmin:c,isValid:_e?.accounting[0]?.isValid??!1,companyName:ie?.company.company.companyInfo.companyLegalName,saveConnectionState:_e?.saveConnectionState,isQBOPopupOpen:je.isQBOPopupOpen,handleOnConnectClick:vt,updateQBOPopupState:At}),o=Ve;break;case"company_officer":n=r.jsx(hn,{companyOfficerLocalData:H,allNationalityCountries:Le,isCompleted:Ze.includes("company_officer"),companyView:ie,sectionId:C,filesEndPoint:t.filesEndPoint,authParams:t.authParams,isRefreshingViewInBackground:w,companyTitles:v,isVerificationPopupOpen:T,setIsVerificationPopupOpen:be,onGetOtp:Ge,onVerifyOtp:kt,onResendOtp:wt,onOfficerAddressClick:s=>ne(s,Be?.addressId),updateFilesEntity:Xe,onEditFileName:Ye,onDeleteFile:A,verifiedPhoneNumber:Oe.current,onPhoneVerified:$t,isDisabled:O.fetchState==="In-Progress"?"readonly":void 0,triggerError:Je}),o=De;break;case"company_details":n=r.jsx(Cn,{fileProps:{...t,onEditFileName:Ye,onDeleteFile:A,updateFilesEntity:Xe},sectionId:j,companyIndustries:f.companyIndustries,companyDetails:g,isDisabled:O.fetchState==="In-Progress"?"readonly":void 0,isCompleted:Ze.includes("company_details"),onCompanyAddressClick:s=>{const d=ie?.company.company.companyOnboardingInfo.subscriptionBillingAddressId;ke?.addressId==null&&d!=null?ne(s,d):ne(s,ke?.addressId)},onRegisteredAddressClick:s=>ne(s,Re?.addressId)}),o=W;break}return r.jsxs(Nn,{ref:o,isVisible:a===e,includeAnimation:a==="link_payment_account"||a==="qbo_connection"?!je.isQBOPopupOpen:a==="company_officer"?!T:!0,paddingBottom:e==="company_details"||e==="company_officer"?K[6]:K[0],stepAnimationDirection:R,children:[h.indexOf(a)>=0?r.jsx(_n,{windowSize:L,children:it.sectionSubTitle}):null,n]},e)})})}),r.jsx(an,{formId:`${Pt}`,style:{width:L==="small"?"auto":"100%",paddingTop:re.sp2,paddingBottom:re.sp2},primaryBtn:{onClick:Kt,label:a==="company_details"?S.footer.submit:ot.next,isLoading:O.fetchState==="In-Progress",isDisabled:O.fetchState==="In-Progress"},cancelBtn:{onClick:Qt,label:ot.back,isDisabled:O.fetchState==="In-Progress"||h.indexOf(a)===0},containerStyle:{width:"auto",justifyContent:"center"},showCancel:!0})]}),r.jsx(un,{handleConfirmCardSetupIntent:D,updateCardPaymentModalState:N,handleCreateCardSetupIntent:l,handleAddCardPaymentSource:b,cardPaymentView:I,stripeKey:m,isCardPaymentOpen:je.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:we,cardSetupInProgress:qe,setCardSetupInProgress:Gt})]})},wn=It`
14
14
  from {
15
15
  transform: translateY(100%);
16
16
  opacity: 0;
@@ -94,7 +94,7 @@ import{j as r,X as Ke,u as Zt,a as en,c3 as me,M as We,a2 as He,D as mt,H as Qe,
94
94
  text-align: ${t=>t.windowSize==="small"?"initial":"center"};
95
95
  width: 100%;
96
96
  white-space: pre-line;
97
- `,Me=(t,w)=>{const{companyDetailsLocalData:c,companyOfficerLocalData:f,companyView:v}=t,x=ce.commonSetUp.businessVerification,y=ce.companyPassport,I=v?.companyOfficers!=null&&v?.companyOfficers.length>0;return{[j]:{companyDescription:c?.companyDescription??ce.common.strings.empty,ein:c?.companyFiles.find(m=>m.documentType==="tax_ein"),companyId:c?.companyId,syncToken:c?.syncToken,companyLegalName:c?.companyLegalName,companyWebsite:c?.website?.toString()??ce.common.strings.empty,companyAddress:c?.addressStatus?.addressToCreate,registeredAddress:c?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:c?.companyIndustry,allOptions:t.companyIndustries.map(m=>m.code)},companyPhone:c?.phone,companyTaxId:c?.taxIdOrEIN,primaryContactName:{firstName:c?.primaryContactLocalData?.firstName,lastName:c?.primaryContactLocalData?.lastName},primaryContactEmail:c?.primaryContactLocalData?.email,primaryContactUserId:c?.primaryContactLocalData?.userId,primaryContactSyncToken:c?.primaryContactLocalData?.syncToken,fileIds:c?.companyFiles.map(m=>m.fileId)??[],certificateOfIncorporation:c?.companyFiles.find(m=>m.documentType==="certificate_of_incorporation"),incDate:c?.incDate?.toDate(),typeOfIncorporation:{selectedOption:c?.typeOfIncorporation,allOptions:y.companyIncInfo.allTypesOfIncorporation}},[C]:Object.values(f).map((m,V)=>{const l=m,D=sn(l?.documentTypeSelectedForVerification);return{userId:l?.userId,officerType:l?.officerType??`Officer_${V+1}`,name:{firstName:l?.firstName,lastName:l?.lastName},email:l?.email,fileIds:l?.fileIds??[],dob:l?.birthday?.toDate(),nationalityCountryCode:xt(l?.nationalityCountryCode,w.map(N=>N.countryCode)),ssn:l?.ssn,role:{selectedOption:l?.titleAtCompany,allOptions:x.allTypesOfRoles},phone:l?.phone,ownership:l?.ownershipInCompany,officerAddress:l?.addressStatus?.addressToCreate,selectDocument:{front:ft(!0,l?.userFiles??[],D),back:ft(!1,l?.userFiles??[],D),selectDocumentType:D},isSelectedForVerification:!I&&V===0?!0:l?.isSelectedForVerification??!1,userVerificationStatus:l?.userVerificationStatus,syncToken:l?.syncToken,isPhoneVerified:l?.isPhoneVerified,otpChallenge:l?.otpChallenge}}),[Z]:{account:{allOptions:[],selectedOption:void 0}},[u]:on(u,t?.subscriptionBillingAddress)[u],[ge]:{connected:t.externalConnections?.accounting[0]?.isValid??!1}}},ra=t=>{const{onboardingCustomerView:w,cardPaymentView:c,signedInUser:f,currentTenant:v,isOnAddressPage:x,stripeKey:y,googleAPIKey:I,onUpdateStep:m,onZeniLogoClick:V,handleLogOutClick:l,handleCockpitClick:D,meetingUrl:N,analytics:b,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:we,handleFetchPaymentSources:Se,updateCardPaymentModalState:F,resetCardPaymentViewState:ve,handleResetCardPaymentErrorStatuses:L,redirectToProductSuitePage:Ae,...Ve}=t,{allSteps:W,completedSteps:De,halfCompletedSteps:Ce,currentStep:B,fetchStatus:R}=w,z=p.useRef(B),T=p.useRef(W),[be,le]=p.useState(!1),[Pe,te]=p.useState([]),G={allSteps:W,isOnAddressPage:x,completedSteps:De,halfCompletedSteps:Ce,errorSteps:Pe,currentStep:B,fetchStatus:R,signedInUser:f,currentTenant:v,onUpdateStep:$=>{m($)},onZeniLogoClick:V,handleLogOutClick:l,handleCockpitClick:D,setIsStepClicked:le};p.useEffect(()=>{if(z.current!==B){const $=z.current;be===!0&&(b?.trackOnboardingCurrentStep(B,$),le(!1)),z.current=B}},[B,be,b]),p.useEffect(()=>{W.length!==T.current.length&&(T.current=W)},[W]);const ne=($,Ie,de)=>{const ae=T.current.length,pe=T.current.indexOf($);switch(Ie){case"next":{const oe=(pe+1)%ae,A=T.current[oe];z.current=A,m(A),de===!0?b.trackOnboardingNext($,A):b.trackOnboardingCurrentStep(A,$);break}case"previous":{const oe=(pe+ae-1)%ae,A=T.current[oe];z.current=A,m(A),de===!0?b.trackOnboardingBack($,A):b.trackOnboardingCurrentStep(A,$);break}}},xe=R.fetchState==="In-Progress"||R.fetchState==="Not-Started";return r.jsx(En,{isOnAddressPage:x,children:x?r.jsx(Ct,{...G}):r.jsxs(jn,{children:[r.jsx(Ct,{...G}),xe?r.jsx(mn,{isNoStepsPage:!1}):r.jsx(kn,{onboardingCustomerView:w,analytics:b,updateStepHandler:ne,onUpdateStep:m,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:we,updateCardPaymentModalState:F,handleFetchPaymentSources:Se,cardPaymentView:c,resetCardPaymentViewState:ve,stripeKey:y,googleAPIKey:I,handleResetCardPaymentErrorStatuses:L,redirectToProductSuitePage:Ae,onFormErrorsChange:te,...Ve}),xe?null:r.jsx(pn,{isFooterRendered:!0,meetingUrl:N,analytics:b,productType:"onboarding"})]})})},En=P.div`
97
+ `,Me=(t,w)=>{const{companyDetailsLocalData:c,companyOfficerLocalData:f,companyView:v}=t,x=ce.commonSetUp.businessVerification,y=ce.companyPassport,I=v?.companyOfficers!=null&&v?.companyOfficers.length>0;return{[j]:{companyDescription:c?.companyDescription??ce.common.strings.empty,ein:c?.companyFiles.find(m=>m.documentType==="tax_ein"),companyId:c?.companyId,syncToken:c?.syncToken,companyLegalName:c?.companyLegalName,companyWebsite:c?.website?.toString()??ce.common.strings.empty,companyAddress:c?.addressStatus?.addressToCreate,registeredAddress:c?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:c?.companyIndustry,allOptions:t.companyIndustries.map(m=>m.code)},companyPhone:c?.phone,companyTaxId:c?.taxIdOrEIN,primaryContactName:{firstName:c?.primaryContactLocalData?.firstName,lastName:c?.primaryContactLocalData?.lastName},primaryContactEmail:c?.primaryContactLocalData?.email,primaryContactUserId:c?.primaryContactLocalData?.userId,primaryContactSyncToken:c?.primaryContactLocalData?.syncToken,fileIds:c?.companyFiles.map(m=>m.fileId)??[],certificateOfIncorporation:c?.companyFiles.find(m=>m.documentType==="certificate_of_incorporation"),incDate:c?.incDate?.toDate(),typeOfIncorporation:{selectedOption:c?.typeOfIncorporation,allOptions:y.companyIncInfo.allTypesOfIncorporation}},[C]:Object.values(f).map((m,V)=>{const l=m,D=sn(l?.documentTypeSelectedForVerification);return{userId:l?.userId,officerType:l?.officerType??`Officer_${V+1}`,name:{firstName:l?.firstName,lastName:l?.lastName},email:l?.email,fileIds:l?.fileIds??[],dob:l?.birthday?.toDate(),nationalityCountryCode:xt(l?.nationalityCountryCode,w.map(N=>N.countryCode)),ssn:l?.ssn,role:{selectedOption:l?.titleAtCompany,allOptions:x.allTypesOfRoles},phone:l?.phone,ownership:l?.ownershipInCompany,officerAddress:l?.addressStatus?.addressToCreate,selectDocument:{front:ft(!0,l?.userFiles??[],D),back:ft(!1,l?.userFiles??[],D),selectDocumentType:D},isSelectedForVerification:!I&&V===0?!0:l?.isSelectedForVerification??!1,userVerificationStatus:l?.userVerificationStatus,syncToken:l?.syncToken,isPhoneVerified:l?.isPhoneVerified,otpChallenge:l?.otpChallenge}}),[Z]:{account:{allOptions:[],selectedOption:void 0}},[u]:on(u,t?.subscriptionBillingAddress)[u],[ge]:{connected:t.externalConnections?.accounting[0]?.isValid??!1}}},sa=t=>{const{onboardingCustomerView:w,cardPaymentView:c,signedInUser:f,currentTenant:v,isOnAddressPage:x,stripeKey:y,googleAPIKey:I,onUpdateStep:m,onZeniLogoClick:V,handleLogOutClick:l,handleCockpitClick:D,meetingUrl:N,analytics:b,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:we,handleFetchPaymentSources:Se,updateCardPaymentModalState:F,resetCardPaymentViewState:ve,handleResetCardPaymentErrorStatuses:L,redirectToProductSuitePage:Ae,...Ve}=t,{allSteps:W,completedSteps:De,halfCompletedSteps:Ce,currentStep:B,fetchStatus:R}=w,z=p.useRef(B),T=p.useRef(W),[be,le]=p.useState(!1),[Pe,te]=p.useState([]),Y={allSteps:W,isOnAddressPage:x,completedSteps:De,halfCompletedSteps:Ce,errorSteps:Pe,currentStep:B,fetchStatus:R,signedInUser:f,currentTenant:v,onUpdateStep:$=>{m($)},onZeniLogoClick:V,handleLogOutClick:l,handleCockpitClick:D,setIsStepClicked:le};p.useEffect(()=>{if(z.current!==B){const $=z.current;be===!0&&(b?.trackOnboardingCurrentStep(B,$),le(!1)),z.current=B}},[B,be,b]),p.useEffect(()=>{W.length!==T.current.length&&(T.current=W)},[W]);const ne=($,Ie,de)=>{const ae=T.current.length,pe=T.current.indexOf($);switch(Ie){case"next":{const oe=(pe+1)%ae,A=T.current[oe];z.current=A,m(A),de===!0?b.trackOnboardingNext($,A):b.trackOnboardingCurrentStep(A,$);break}case"previous":{const oe=(pe+ae-1)%ae,A=T.current[oe];z.current=A,m(A),de===!0?b.trackOnboardingBack($,A):b.trackOnboardingCurrentStep(A,$);break}}},xe=R.fetchState==="In-Progress"||R.fetchState==="Not-Started";return r.jsx(En,{isOnAddressPage:x,children:x?r.jsx(Ct,{...Y}):r.jsxs(jn,{children:[r.jsx(Ct,{...Y}),xe?r.jsx(mn,{isNoStepsPage:!1}):r.jsx(kn,{onboardingCustomerView:w,analytics:b,updateStepHandler:ne,onUpdateStep:m,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:we,updateCardPaymentModalState:F,handleFetchPaymentSources:Se,cardPaymentView:c,resetCardPaymentViewState:ve,stripeKey:y,googleAPIKey:I,handleResetCardPaymentErrorStatuses:L,redirectToProductSuitePage:Ae,onFormErrorsChange:te,...Ve}),xe?null:r.jsx(pn,{isFooterRendered:!0,meetingUrl:N,analytics:b,productType:"onboarding"})]})})},En=P.div`
98
98
  display: flex;
99
99
  flex-direction: column;
100
100
  width: ${t=>t.isOnAddressPage?"fit-content":"100%"};
@@ -104,4 +104,4 @@ import{j as r,X as Ke,u as Zt,a as en,c3 as me,M as We,a2 as He,D as mt,H as Qe,
104
104
  flex-direction: column;
105
105
  width: 100%;
106
106
  height: 100vh;
107
- `;export{ra as default};
107
+ `;export{sa as default};
@@ -1,4 +1,4 @@
1
- import{X as M,d2 as U,w as D,u as W,M as A,j as e,aV as V,o as t,_ as k,aI as I,l as _,e as H,$ as R,g as l,f as y,r as Z,k as N,c0 as J,Z as K,af as X}from"./index-Cvfy0zsh.js";import{b as n,n as i}from"./vendor-CnQcJ2Lu.js";import Y from"./ConfettiBurst-C47O0k3A-DgYPkzlU.js";import{D as q}from"./HelpButton-BFbQbBAV-BQPDLXHd.js";import{S as G}from"./ProductsCarousel-CP6ldspb-C0Np0Gj6.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-CUA73Qvk-DoxrAhy8.js";const Q=o=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},n.createElement("path",{d:"M9.88423 20.4894C8.54548 20.3068 6.19267 19.6022 4.33971 17.8674C2.48676 16.1326 1.39881 13.7328 1.31521 11.1959C1.23161 8.65899 2.15921 6.19276 3.89394 4.33977C5.62866 2.48678 8.02843 1.39882 10.5653 1.31522C13.1022 1.23161 15.5684 2.15923 17.4213 3.89399C19.2743 5.62875 20.1176 7.48634 20.4166 9.67794",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.5596 7.50903H10.7439C10.39 7.50916 10.0465 7.62876 9.76901 7.84845C9.49152 8.06815 9.29632 8.37508 9.21501 8.71955C9.1337 9.06401 9.17105 9.42584 9.321 9.74644C9.47096 10.067 9.72474 10.3276 10.0412 10.486L11.6941 11.3133C12.0107 11.4717 12.2644 11.7323 12.4144 12.0529C12.5643 12.3735 12.6017 12.7353 12.5204 13.0798C12.4391 13.4242 12.2439 13.7312 11.9664 13.9509C11.6889 14.1706 11.3454 14.2902 10.9915 14.2903H9.16902",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.4437 14.2906V15.5621",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M11.2918 6.23773V7.50922",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M15.5285 21.8743L12 22.8825L13.0081 19.3539L20.2143 12.1476C20.3088 12.0531 20.437 12 20.5707 12C20.7044 12 20.8325 12.0531 20.9271 12.1476L22.7347 13.9542C22.7816 14.001 22.8189 14.0567 22.8443 14.1179C22.8697 14.1791 22.8828 14.2448 22.8828 14.3111C22.8828 14.3774 22.8697 14.4431 22.8443 14.5043C22.8189 14.5655 22.7816 14.6212 22.7347 14.668L15.5285 21.8743Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M18.5536 13.8079L21.074 16.3283",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.6133 18.7533L16.1337 21.2737",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ee=A.getLocalizedStrings(),De=({hasVerifiedBankAccount:o,meetingUrl:$,showUpdatePaymentDetailButton:m=!1,isVisitingFirstTime:b=!1,handleUpdatePaymentAddressDetailClick:v,...S})=>{const d=M(),x=U().analytics,f=D(),L=f.loggedInUser,a=f.currentTenant,[w,P]=n.useState(!1),{handleLogOutClick:z,onZeniLogoClick:T,handleCockpitClick:E}=S,O=W(),{customerOnboardingPage:c}=ee,p=s=>{const r=c.productSuite.messageBox;if(!s)return[r.withTaxAndPayroll,r.withCFO];const{productSettings:F}=s,{isPayrollEnabled:h,isCfoEnabled:g,isTaxEnabled:u}=F;return h&&g&&u?[r.withTaxAndPayroll,r.withCFO]:h&&g?[r.withPayroll,r.withCFO]:h&&u?[r.taxAndPayroll]:g&&u?[r.withTax,r.withCFO]:h?[r.onlyPayroll]:g?[r.onlyCFO]:u?[r.onlyTax]:[r.default]},B=s=>{if(v(),!s)return;let r="";o?r="bank_account":r="credit_card",x.trackOnboardingClickUpdatePaymentDetails(r,_.getProductSettingsString(s.productSettings))};return e.jsxs(e.Fragment,{children:[e.jsx(te,{children:e.jsxs(ie,{windowSize:d,children:[e.jsx(oe,{windowSize:d,children:e.jsx(V,{title:c.productSuite.navTitle,showBackButton:!1,backgroundColor:O.colors.grey4,style:{zIndex:5},source:"CustomerOnboardingProductSuitePage",showLeftSection:d!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:t.sp0,paddingBottom:t.sp0},leftSideComponent:e.jsx(we,{children:e.jsx(ke,{"data-testid":k("zeni-logo-customer-onboarding-product-suite"),onClick:T})}),rightSideComponent:m?e.jsxs(Ce,{"data-testid":k("update-to-payment-address-details"),onClick:()=>B(a),children:[e.jsx(ye,{}),e.jsx(je,{className:"btnText",children:c.productSuite.updatePaymentDetails})]}):e.jsx($e,{})})}),e.jsxs(re,{windowSize:d,children:[e.jsx(ne,{style:{gap:p(a).length>1?t.sp2:t.sp1,padding:p(a).length>1?`12px ${t.sp4} 12px ${t.sp4}`:`12px ${t.sp3} 12px ${t.sp3}`},children:e.jsxs(se,{children:[e.jsxs(C,{children:[e.jsx(ae,{children:e.jsx(le,{})}),e.jsx(j,{children:p(a)[0]})]}),e.jsx(C,{children:p(a).slice(1).map(s=>e.jsx(j,{children:s},s))})]})}),e.jsx(de,{children:e.jsx(ce,{children:c.productSuite.sectionTitle})}),e.jsx(pe,{children:e.jsx(G,{scale:1,showUpdatePaymentDetailButton:m,stopCarousel:w,useFixedArrowPosition:!0})}),e.jsxs(he,{href:"https://www.zeni.ai",target:"_blank",rel:"noopener noreferrer",children:[e.jsx(ge,{className:"discover-class",children:c.productSuite.sectionFooter}),e.jsx(ue,{className:"discover-class"})]})]}),e.jsx(me,{children:e.jsxs(xe,{children:[e.jsx(fe,{windowSize:d,children:e.jsx(I,{signedInUser:L,currentTenant:a,onLogOutClick:z,onCockpitClick:E})}),e.jsx(q,{isFooterRendered:!1,meetingUrl:$,analytics:x,productType:"onboarding_interim",showPopup:w,setShowPopup:P})]})})]})}),e.jsx(Y,{showConfetti:b})]})},te=i.div`
1
+ import{X as M,d2 as U,w as D,u as W,M as A,j as e,aV as V,o as t,_ as k,aI as I,l as _,e as H,$ as R,g as l,f as y,r as Z,k as N,c0 as J,Z as K,af as X}from"./index-DR9vSgqx.js";import{b as n,n as i}from"./vendor-CnQcJ2Lu.js";import Y from"./ConfettiBurst-tf23hrA_-CQK1q6oq.js";import{D as q}from"./HelpButton-Coe4ii48-CP7NC72-.js";import{S as G}from"./ProductsCarousel-9USsVLuf-A8Pb9na8.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-DlnppXL_-CUHiDz63.js";const Q=o=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},n.createElement("path",{d:"M9.88423 20.4894C8.54548 20.3068 6.19267 19.6022 4.33971 17.8674C2.48676 16.1326 1.39881 13.7328 1.31521 11.1959C1.23161 8.65899 2.15921 6.19276 3.89394 4.33977C5.62866 2.48678 8.02843 1.39882 10.5653 1.31522C13.1022 1.23161 15.5684 2.15923 17.4213 3.89399C19.2743 5.62875 20.1176 7.48634 20.4166 9.67794",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.5596 7.50903H10.7439C10.39 7.50916 10.0465 7.62876 9.76901 7.84845C9.49152 8.06815 9.29632 8.37508 9.21501 8.71955C9.1337 9.06401 9.17105 9.42584 9.321 9.74644C9.47096 10.067 9.72474 10.3276 10.0412 10.486L11.6941 11.3133C12.0107 11.4717 12.2644 11.7323 12.4144 12.0529C12.5643 12.3735 12.6017 12.7353 12.5204 13.0798C12.4391 13.4242 12.2439 13.7312 11.9664 13.9509C11.6889 14.1706 11.3454 14.2902 10.9915 14.2903H9.16902",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.4437 14.2906V15.5621",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M11.2918 6.23773V7.50922",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M15.5285 21.8743L12 22.8825L13.0081 19.3539L20.2143 12.1476C20.3088 12.0531 20.437 12 20.5707 12C20.7044 12 20.8325 12.0531 20.9271 12.1476L22.7347 13.9542C22.7816 14.001 22.8189 14.0567 22.8443 14.1179C22.8697 14.1791 22.8828 14.2448 22.8828 14.3111C22.8828 14.3774 22.8697 14.4431 22.8443 14.5043C22.8189 14.5655 22.7816 14.6212 22.7347 14.668L15.5285 21.8743Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M18.5536 13.8079L21.074 16.3283",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.6133 18.7533L16.1337 21.2737",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ee=A.getLocalizedStrings(),De=({hasVerifiedBankAccount:o,meetingUrl:$,showUpdatePaymentDetailButton:m=!1,isVisitingFirstTime:b=!1,handleUpdatePaymentAddressDetailClick:v,...S})=>{const d=M(),x=U().analytics,f=D(),L=f.loggedInUser,a=f.currentTenant,[w,P]=n.useState(!1),{handleLogOutClick:z,onZeniLogoClick:T,handleCockpitClick:E}=S,O=W(),{customerOnboardingPage:c}=ee,p=s=>{const r=c.productSuite.messageBox;if(!s)return[r.withTaxAndPayroll,r.withCFO];const{productSettings:F}=s,{isPayrollEnabled:h,isCfoEnabled:g,isTaxEnabled:u}=F;return h&&g&&u?[r.withTaxAndPayroll,r.withCFO]:h&&g?[r.withPayroll,r.withCFO]:h&&u?[r.taxAndPayroll]:g&&u?[r.withTax,r.withCFO]:h?[r.onlyPayroll]:g?[r.onlyCFO]:u?[r.onlyTax]:[r.default]},B=s=>{if(v(),!s)return;let r="";o?r="bank_account":r="credit_card",x.trackOnboardingClickUpdatePaymentDetails(r,_.getProductSettingsString(s.productSettings))};return e.jsxs(e.Fragment,{children:[e.jsx(te,{children:e.jsxs(ie,{windowSize:d,children:[e.jsx(oe,{windowSize:d,children:e.jsx(V,{title:c.productSuite.navTitle,showBackButton:!1,backgroundColor:O.colors.grey4,style:{zIndex:5},source:"CustomerOnboardingProductSuitePage",showLeftSection:d!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:t.sp0,paddingBottom:t.sp0},leftSideComponent:e.jsx(we,{children:e.jsx(ke,{"data-testid":k("zeni-logo-customer-onboarding-product-suite"),onClick:T})}),rightSideComponent:m?e.jsxs(Ce,{"data-testid":k("update-to-payment-address-details"),onClick:()=>B(a),children:[e.jsx(ye,{}),e.jsx(je,{className:"btnText",children:c.productSuite.updatePaymentDetails})]}):e.jsx($e,{})})}),e.jsxs(re,{windowSize:d,children:[e.jsx(ne,{style:{gap:p(a).length>1?t.sp2:t.sp1,padding:p(a).length>1?`12px ${t.sp4} 12px ${t.sp4}`:`12px ${t.sp3} 12px ${t.sp3}`},children:e.jsxs(se,{children:[e.jsxs(C,{children:[e.jsx(ae,{children:e.jsx(le,{})}),e.jsx(j,{children:p(a)[0]})]}),e.jsx(C,{children:p(a).slice(1).map(s=>e.jsx(j,{children:s},s))})]})}),e.jsx(de,{children:e.jsx(ce,{children:c.productSuite.sectionTitle})}),e.jsx(pe,{children:e.jsx(G,{scale:1,showUpdatePaymentDetailButton:m,stopCarousel:w,useFixedArrowPosition:!0})}),e.jsxs(he,{href:"https://www.zeni.ai",target:"_blank",rel:"noopener noreferrer",children:[e.jsx(ge,{className:"discover-class",children:c.productSuite.sectionFooter}),e.jsx(ue,{className:"discover-class"})]})]}),e.jsx(me,{children:e.jsxs(xe,{children:[e.jsx(fe,{windowSize:d,children:e.jsx(I,{signedInUser:L,currentTenant:a,onLogOutClick:z,onCockpitClick:E})}),e.jsx(q,{isFooterRendered:!1,meetingUrl:$,analytics:x,productType:"onboarding_interim",showPopup:w,setShowPopup:P})]})})]})}),e.jsx(Y,{showConfetti:b})]})},te=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{w as zA,l as uA,j as e,y as wt,z as xt,A as ft,o as r,B as kt,D as mA,H as Dt,I as Ae,J as yt,L as Mt,N as jt,P as vt,R as bt,S as Rt,U as F,M as d,X as V,W as H,_ as x,a0 as P,a1 as G,q as b,a as St,a2 as ye,a3 as Lt,F as Ft,a4 as Jt,C as z,a5 as T,a6 as W,m as Z,a7 as Me,a8 as R,a9 as L,aa as WA,u as rA,ab as Ut,ac as qA,ad as Pt,g as f,ae as Ot,af as Ht,v as J,ag as vA,Z as XA,e as VA,ah as je,ai as ve,aj as be,ak as ZA,Q as Tt,h as Yt,al as Kt,am as Re,an as Gt,ao as Nt,ap as bA,aq as zt,ar as Wt,as as qt,at as Xt,au as Vt,av as Zt,aw as $t,c as Se,f as _t,ax as Ar,ay as er,az as Le,aA as tr,n as rr,aB as gr,r as ar,aC as Fe}from"./index-Cvfy0zsh.js";import{b as o,n as C,f as D,k as S,j as pA}from"./vendor-CnQcJ2Lu.js";import{L as or,k as Cr}from"./ArAgingChart-BBavISMZ-Bg2WSdl_.js";import{E as ir,T as $A,I as Je}from"./ReloadCard-7VJ3paTm-CAZ4QKCl.js";import{L as nr,O as wA,c as gA}from"./TopExCard-Jo-Rn1MM-C8jicn1C.js";import{H as Er,Y as Br,P as Qr,G as sr,N as Ir}from"./RevenueChart-CCWOE5TQ-CdghIL8Z.js";import dr from"./InsightsCardStack-wYrlCPh0-D2rKcLyu.js";import{a as lr}from"./AccountsPromoCardStack-Dqrhr23F-C910Mcf5.js";import{c as q}from"./SummaryCard-BauMuQ8s-Cp_w4Wqg.js";import{t as cr,o as hr}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.js";import{x as EA}from"./NavigationArrow-D-l9zblc-REpeCLdo.js";import{f as _A}from"./NavigationDots-BXUbx14l-6QIteFmi.js";import mr from"./CompanyPassportCard-yl1IgKFI-PAYHKbkv.js";import{C as pr}from"./gift-box-Cmt9OgIZ-DKWN92w0.js";import ur from"./InformationCardStack-BMrkstMK-C8LTAHrF.js";import{p as Ue}from"./chartTypes-COEFDZb5-DwGNA7GB.js";import{h as wr}from"./toCOABalancesWithID-COQYDD-b-D2r9WVRN.js";import{V as xr}from"./toChartData-Djv4ERSl-BDHZyRCT.js";import{r as fr,i as kr}from"./graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js";import{N as Dr,J as yr}from"./PromoBaseCards-Jze9Y7gb-D1gxtikT.js";import Mr from"./ConfettiBurst-C47O0k3A-DgYPkzlU.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const jr=C(W)`
1
+ import{w as zA,l as uA,j as e,y as wt,z as xt,A as ft,o as r,B as kt,D as mA,H as Dt,I as Ae,J as yt,L as Mt,N as jt,P as vt,R as bt,S as Rt,U as F,M as d,X as V,W as H,_ as x,a0 as P,a1 as G,q as b,a as St,a2 as ye,a3 as Lt,F as Ft,a4 as Jt,C as z,a5 as T,a6 as W,m as Z,a7 as Me,a8 as R,a9 as L,aa as WA,u as rA,ab as Ut,ac as qA,ad as Pt,g as f,ae as Ot,af as Ht,v as J,ag as vA,Z as XA,e as VA,ah as je,ai as ve,aj as be,ak as ZA,Q as Tt,h as Yt,al as Kt,am as Re,an as Gt,ao as Nt,ap as bA,aq as zt,ar as Wt,as as qt,at as Xt,au as Vt,av as Zt,aw as $t,c as Se,f as _t,ax as Ar,ay as er,az as Le,aA as tr,n as rr,aB as gr,r as ar,aC as Fe}from"./index-DR9vSgqx.js";import{b as o,n as C,f as D,k as S,j as pA}from"./vendor-CnQcJ2Lu.js";import{L as or,k as Cr}from"./ArAgingChart-Bs2fblA6-BsbEizCk.js";import{E as ir,T as $A,I as Je}from"./ReloadCard-DZhxB7Ar-3pX1Dvm4.js";import{L as nr,O as wA,c as gA}from"./TopExCard-Bn5xXUvj-D1V8RPTg.js";import{H as Er,Y as Br,P as Qr,G as sr,N as Ir}from"./RevenueChart-BeqQveLu-BLMOp8Ij.js";import dr from"./InsightsCardStack-nndLG-Gx-CPrz5cnd.js";import{a as lr}from"./AccountsPromoCardStack-D8Y5MNXA-C4cMa-NA.js";import{c as q}from"./SummaryCard-DB_r9qW_-CTe61HcF.js";import{t as cr,o as hr}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.js";import{x as EA}from"./NavigationArrow-De1st3tA-D1UxRic2.js";import{f as _A}from"./NavigationDots-BfJxPG2K-BkZqVum6.js";import mr from"./CompanyPassportCard-CRgbazO4-DnDR61ME.js";import{C as pr}from"./gift-box-Cmt9OgIZ-DKWN92w0.js";import ur from"./InformationCardStack-BIumm5SJ-1AXNePG9.js";import{p as Ue}from"./chartTypes-yiqF7w9Y-C7Vh16CR.js";import{h as wr}from"./toCOABalancesWithID-C9fWPLt9-OoFxmlBV.js";import{V as xr}from"./toChartData-BMDCuCgs-pMvlI-3e.js";import{r as fr,i as kr}from"./graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js";import{N as Dr,J as yr}from"./PromoBaseCards-OKpdHchW-i4Aus_7s.js";import Mr from"./ConfettiBurst-tf23hrA_-CQK1q6oq.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const jr=C(W)`
2
2
  color: ${A=>A.theme.colors.champion};
3
3
  `,ee=C.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{X as B,u as q,M as _,w as Oe,l as D,j as s,aV as Ke,c as Qe,D as Xe,aX as Je,o as d,C as L,H as J,aY as et,aZ as tt,v as ae,q as j,aj as st,a8 as ot,a_ as at,a3 as Be,K as Pe,g as T,Z as Ne,a7 as nt,ap as it,n as rt,a$ as ct,b0 as lt,b1 as dt,b2 as ie,b3 as pt,aC as ut,m as gt,b4 as ht}from"./index-Cvfy0zsh.js";import{b as y,f as ee,n as u,k as Le}from"./vendor-CnQcJ2Lu.js";import{m as U,l as oe}from"./analyticsHelper-CcOQPReQ-Bxil0fX9.js";import{c as mt,h as ft}from"./ReportTableViewSelector-BrPJNFJD-BCUhxgyI.js";import{B as bt}from"./InsightsSection-DncKJ7JM-ChN_oqlZ.js";import{N as _e,q as xt,G as _t,H as te,k as ue}from"./detailCommon-Ce5EinV2-CYS83M8u.js";import{N as wt,G as St,H as we,Y as Se,P as ye}from"./RevenueChart-CCWOE5TQ-CdghIL8Z.js";import{C as yt}from"./NoDataChart-Bve5zpXV-CWu45raX.js";import{n as R}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{p as vt}from"./TimeRangeSwitcher-CNA64z6j-BjqPYk8T.js";import{b as Ie}from"./TimeframeSwitcher-C1Yz0y7I-CSIg0wbX.js";import{R as $t,W as V,x as Ct,l as ge,D as jt}from"./CollapsableReportTable-D_yuiPyJ-DvwXVdxx.js";import{S as kt,M as Ot,g as Bt,L as se,D as Re,T as De,I as Te}from"./mapSectionWithAcOnlyToTreeNode-CQQ7dl1d-uEBESQE9.js";import{d as Pt}from"./NoDataTable-3ROU0Vbp-CI99S85V.js";import{d as he,l as me}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-DaXzy5qa-Crsiejrh.js";import{d as fe}from"./mapLoadingInProgressToTreeNode-rI4nf6KS-CK98QO6t.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-BXUbx14l-6QIteFmi.js";import"./chartTypes-COEFDZb5-DwGNA7GB.js";import"./toCOABalancesWithID-COQYDD-b-D2r9WVRN.js";import"./toChartData-Djv4ERSl-BDHZyRCT.js";import"./AccountRow-CAXWtAin-BGG9HEwp.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const Nt=e=>y.createElement("svg",{viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{opacity:.2,d:"M105.021 115.208C105.021 116.479 104.516 117.698 103.617 118.596C102.718 119.495 101.5 120 100.229 120H28.3539C27.083 120 25.8643 119.495 24.9656 118.596C24.067 117.698 23.5622 116.479 23.5622 115.208V14.5832C23.5622 13.3123 24.067 12.0936 24.9656 11.195C25.8643 10.2963 27.083 9.7915 28.3539 9.7915H71.4789L105.021 43.3332V115.208Z",fill:"#97C3B9"}),y.createElement("path",{opacity:.2,d:"M71.4785 9.7915V38.5415C71.4785 39.8123 71.9834 41.0311 72.882 41.9297C73.7806 42.8283 74.9994 43.3332 76.2702 43.3332H105.02",fill:"#97C3B9"}),y.createElement("path",{d:"M33.6636 70.0449H37.2636",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 81.2539H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 92.4626H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 103.671H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 70.0449L80.6987 70.0449",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 81.2539L80.6987 81.2539",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 92.4626L80.6987 92.4626",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.6084 103.671L81.2084 103.671",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M100.729 110.313C100.729 111.583 100.224 112.802 99.3258 113.701C98.4272 114.6 97.2084 115.104 95.9375 115.104H24.0625C22.7917 115.104 21.5729 114.6 20.6743 113.701C19.7757 112.802 19.2709 111.583 19.2709 110.313V9.68766C19.2709 8.41683 19.7757 7.19805 20.6743 6.29944C21.5729 5.40083 22.7917 4.896 24.0625 4.896H67.1875L100.729 38.4377V110.313Z",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M67.1872 4.896V33.646C67.1872 34.9168 67.692 36.1356 68.5906 37.0342C69.4893 37.9328 70.708 38.4377 71.9789 38.4377H100.729",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M43.4564 21.9438V17.5398",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),y.createElement("path",{d:"M43.4564 54.3497V50.1257",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),y.createElement("path",{d:"M33.6635 40.7779C33.6635 42.8599 34.1555 45.0139 35.3975 46.7239C36.7415 48.5719 38.8595 49.5619 41.0735 49.9339C43.1375 50.2819 45.2855 50.1499 47.3135 49.6759C51.5135 48.6979 54.5675 44.3959 52.6955 40.1179C51.5795 37.5619 48.8855 36.4219 46.2635 36.1699C44.3675 35.9899 42.4294 35.9779 40.5334 35.7079C38.9374 35.4799 37.3475 34.9459 36.1895 33.7819C35.0315 32.6179 34.3895 30.8599 34.4495 29.1619C34.5335 26.6359 35.9915 24.4999 38.2415 23.3959C40.5995 22.2379 43.4675 22.1839 46.0115 22.6219C47.6855 22.9099 49.3294 23.6119 50.4994 24.8419C51.9694 26.3899 52.4555 28.5019 52.5275 30.5719",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"})),Lt=u.div`
1
+ import{X as B,u as q,M as _,w as Oe,l as D,j as s,aV as Ke,c as Qe,D as Xe,aX as Je,o as d,C as L,H as J,aY as et,aZ as tt,v as ae,q as j,aj as st,a8 as ot,a_ as at,a3 as Be,K as Pe,g as T,Z as Ne,a7 as nt,ap as it,n as rt,a$ as ct,b0 as lt,b1 as dt,b2 as ie,b3 as pt,aC as ut,m as gt,b4 as ht}from"./index-DR9vSgqx.js";import{b as y,f as ee,n as u,k as Le}from"./vendor-CnQcJ2Lu.js";import{m as U,l as oe}from"./analyticsHelper-D4zFEqKN-Cv-Rt4Wa.js";import{c as mt,h as ft}from"./ReportTableViewSelector-DSfx5ZD--DVGbGr0z.js";import{B as bt}from"./InsightsSection-CSG5sVaE-B6JiP7yi.js";import{N as _e,q as xt,G as _t,H as te,k as ue}from"./detailCommon-mCAXI64G-gkKdDA26.js";import{N as wt,G as St,H as we,Y as Se,P as ye}from"./RevenueChart-BeqQveLu-BLMOp8Ij.js";import{C as yt}from"./NoDataChart-D_S6Pfkm-C2Kc7qtF.js";import{n as R}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{p as vt}from"./TimeRangeSwitcher-BbdpFsMU-BPeXdkc0.js";import{b as Ie}from"./TimeframeSwitcher-CUpsv6b1-L84OUMou.js";import{R as $t,W as V,x as Ct,l as ge,D as jt}from"./CollapsableReportTable-BptltmMq-DGFCje0J.js";import{S as kt,M as Ot,g as Bt,L as se,D as Re,T as De,I as Te}from"./mapSectionWithAcOnlyToTreeNode-dSxF1sWM-9rR9XYui.js";import{d as Pt}from"./NoDataTable-CLwNCXFE-D3npQzLx.js";import{d as he,l as me}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-DAqn8gdX-BFVS7nhC.js";import{d as fe}from"./mapLoadingInProgressToTreeNode-7wU2HX2P-DM7OpgTV.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-BfJxPG2K-BkZqVum6.js";import"./chartTypes-yiqF7w9Y-C7Vh16CR.js";import"./toCOABalancesWithID-C9fWPLt9-OoFxmlBV.js";import"./toChartData-BMDCuCgs-pMvlI-3e.js";import"./AccountRow-TlJ0aU9H-BM9KA8Rp.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const Nt=e=>y.createElement("svg",{viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{opacity:.2,d:"M105.021 115.208C105.021 116.479 104.516 117.698 103.617 118.596C102.718 119.495 101.5 120 100.229 120H28.3539C27.083 120 25.8643 119.495 24.9656 118.596C24.067 117.698 23.5622 116.479 23.5622 115.208V14.5832C23.5622 13.3123 24.067 12.0936 24.9656 11.195C25.8643 10.2963 27.083 9.7915 28.3539 9.7915H71.4789L105.021 43.3332V115.208Z",fill:"#97C3B9"}),y.createElement("path",{opacity:.2,d:"M71.4785 9.7915V38.5415C71.4785 39.8123 71.9834 41.0311 72.882 41.9297C73.7806 42.8283 74.9994 43.3332 76.2702 43.3332H105.02",fill:"#97C3B9"}),y.createElement("path",{d:"M33.6636 70.0449H37.2636",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 81.2539H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 92.4626H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 103.671H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 70.0449L80.6987 70.0449",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 81.2539L80.6987 81.2539",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 92.4626L80.6987 92.4626",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.6084 103.671L81.2084 103.671",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M100.729 110.313C100.729 111.583 100.224 112.802 99.3258 113.701C98.4272 114.6 97.2084 115.104 95.9375 115.104H24.0625C22.7917 115.104 21.5729 114.6 20.6743 113.701C19.7757 112.802 19.2709 111.583 19.2709 110.313V9.68766C19.2709 8.41683 19.7757 7.19805 20.6743 6.29944C21.5729 5.40083 22.7917 4.896 24.0625 4.896H67.1875L100.729 38.4377V110.313Z",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M67.1872 4.896V33.646C67.1872 34.9168 67.692 36.1356 68.5906 37.0342C69.4893 37.9328 70.708 38.4377 71.9789 38.4377H100.729",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M43.4564 21.9438V17.5398",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),y.createElement("path",{d:"M43.4564 54.3497V50.1257",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),y.createElement("path",{d:"M33.6635 40.7779C33.6635 42.8599 34.1555 45.0139 35.3975 46.7239C36.7415 48.5719 38.8595 49.5619 41.0735 49.9339C43.1375 50.2819 45.2855 50.1499 47.3135 49.6759C51.5135 48.6979 54.5675 44.3959 52.6955 40.1179C51.5795 37.5619 48.8855 36.4219 46.2635 36.1699C44.3675 35.9899 42.4294 35.9779 40.5334 35.7079C38.9374 35.4799 37.3475 34.9459 36.1895 33.7819C35.0315 32.6179 34.3895 30.8599 34.4495 29.1619C34.5335 26.6359 35.9915 24.4999 38.2415 23.3959C40.5995 22.2379 43.4675 22.1839 46.0115 22.6219C47.6855 22.9099 49.3294 23.6119 50.4994 24.8419C51.9694 26.3899 52.4555 28.5019 52.5275 30.5719",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"})),Lt=u.div`
2
2
  justify-content: center;
3
3
  align-items: center;
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{a0 as $,gU as u,X as y,j as l,o as i,e as d,m as c}from"./index-Cvfy0zsh.js";import{n as t}from"./vendor-CnQcJ2Lu.js";import{g as k}from"./BoxItem-C5PEWObZ-CeuLKKcA.js";import{o as v}from"./commonDimensions-CP6T7HqS-D48QOLbv.js";function U({data:e,boxType:w}){const{counterParty:r,typeName:s,amount:x,logo:p,summary:m,direction:b,status:g}=e,f=r.length>0?r:m,a=$("0,0.00",x),n=u(g),o=y(),h=l.jsxs(N,{children:[l.jsx(C,{src:p?.toString(),loading:"lazy"}),l.jsx(T,{children:l.jsxs(E,{windowSize:o,children:[l.jsx(D,{children:f}),n!=null?l.jsxs(P,{windowSize:o,children:[l.jsx(A,{windowSize:o}),l.jsx(R,{color:n?.color,children:n?.value})]}):null]})}),l.jsxs(j,{windowSize:o,children:[s!=null?l.jsx(z,{children:l.jsx(S,{className:"tag",children:s})}):null,l.jsx(B,{windowSize:o,children:b==="debit"?`-${a}`:a})]})]});return l.jsx(k,{content:h,boxType:w,isDisabled:!1,isNotClickable:!0})}const j=t.div`
1
+ import{a0 as $,gU as u,X as y,j as l,o as i,e as d,m as c}from"./index-DR9vSgqx.js";import{n as t}from"./vendor-CnQcJ2Lu.js";import{g as k}from"./BoxItem-BcQH7ATF-CgWI28ii.js";import{o as v}from"./commonDimensions-PPvas5dK-BI_doeoz.js";function U({data:e,boxType:w}){const{counterParty:r,typeName:s,amount:x,logo:p,summary:m,direction:b,status:g}=e,f=r.length>0?r:m,a=$("0,0.00",x),n=u(g),o=y(),h=l.jsxs(N,{children:[l.jsx(C,{src:p?.toString(),loading:"lazy"}),l.jsx(T,{children:l.jsxs(E,{windowSize:o,children:[l.jsx(D,{children:f}),n!=null?l.jsxs(P,{windowSize:o,children:[l.jsx(A,{windowSize:o}),l.jsx(R,{color:n?.color,children:n?.value})]}):null]})}),l.jsxs(j,{windowSize:o,children:[s!=null?l.jsx(z,{children:l.jsx(S,{className:"tag",children:s})}):null,l.jsx(B,{windowSize:o,children:b==="debit"?`-${a}`:a})]})]});return l.jsx(k,{content:h,boxType:w,isDisabled:!1,isNotClickable:!0})}const j=t.div`
2
2
  display: flex;
3
3
  flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
4
4
  align-items: ${e=>e.windowSize==="small"?"flex-end":"center"};
@@ -1,4 +1,4 @@
1
- import{u as S,X as z,g_ as C,j as e,aV as D,M as Y,aj as B,o as r,g,bT as F,l as L,C as R,v as T,e as A,q as b,db as I,dc as V,d6 as E,dd as N}from"./index-Cvfy0zsh.js";import{b as f,n as a}from"./vendor-CnQcJ2Lu.js";import{$ as O}from"./BoxItem-C5PEWObZ-CeuLKKcA.js";import{o as P}from"./commonDimensions-CP6T7HqS-D48QOLbv.js";import{H as X}from"./DepositAccTransactionItem-BiYFTagV-COtoJPkR.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const n=Y.getLocalizedStrings(),q={listItemMargin:new R(b[3],b[8])};function H(t){const d=I(t,o=>o.transactionDate.format(n.dateFormat.visual.MMMDCommaYYYYformat)),m=V(d,o=>o.length>0);return E(m,o=>({date:o[0].transactionDate,transactions:N(o,h=>h.transactionDate,"desc")}))}const _=C(H),mt=({transactionListView:t,onBackClick:d})=>{const m=S(),o=z(),h=f.createRef(),p=f.useRef(null),l=_(t.transactions),j=t.depositAccountName,x=l.length===0,k=i=>x===!1?l[i].transactions.length*P.transactionItemHeightResponsive.value(o)+45:24,v=({index:i,style:c})=>{if(x===!1){const s=l[i];return e.jsx(w,{style:{...c},children:e.jsx($,{windowSize:o,children:e.jsxs(y,{children:[e.jsx(Q,{children:L.dateNow().year()===s.date.year()?s.date.format(n.dateFormat.visual.MMMDFormat):s.date.format(n.dateFormat.visual.MMMDCommaYYYYformat)}),e.jsx(U,{children:s.transactions.map((M,u)=>e.jsx(X,{data:M,boxType:O(u,s.transactions.length)},u))})]})})})}else return e.jsx(w,{style:{...c},children:e.jsx(G,{children:e.jsx($,{windowSize:o,children:e.jsx(K,{children:n.transactionList.noTransactionsFoundForPrefix})})})})};return e.jsxs(J,{children:[e.jsx(D,{title:`${j} ${n.spendManagement.zeniAccounts.transactionList.title}`,backgroundColor:m.colors.grey4,style:{zIndex:3},onBackClick:d,scrollableContent:p.current!=null?p:void 0,source:"DepositAccTransactionListPage"}),e.jsx(y,{children:e.jsx(B,{children:({height:i,width:c})=>e.jsx(Z,{ref:h,height:i,width:c,outerRef:p,itemKey:s=>s,itemCount:l.length,itemSize:k,initialScrollOffset:0,children:v})})})]})},w=a.div``,$=a.div`
1
+ import{u as S,X as z,g_ as C,j as e,aV as D,M as Y,aj as B,o as r,g,bT as F,l as L,C as R,v as T,e as A,q as b,db as I,dc as V,d6 as E,dd as N}from"./index-DR9vSgqx.js";import{b as f,n as a}from"./vendor-CnQcJ2Lu.js";import{$ as O}from"./BoxItem-BcQH7ATF-CgWI28ii.js";import{o as P}from"./commonDimensions-PPvas5dK-BI_doeoz.js";import{H as X}from"./DepositAccTransactionItem-BH6np-wq-pvmH9-13.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const n=Y.getLocalizedStrings(),q={listItemMargin:new R(b[3],b[8])};function H(t){const d=I(t,o=>o.transactionDate.format(n.dateFormat.visual.MMMDCommaYYYYformat)),m=V(d,o=>o.length>0);return E(m,o=>({date:o[0].transactionDate,transactions:N(o,h=>h.transactionDate,"desc")}))}const _=C(H),mt=({transactionListView:t,onBackClick:d})=>{const m=S(),o=z(),h=f.createRef(),p=f.useRef(null),l=_(t.transactions),j=t.depositAccountName,x=l.length===0,k=i=>x===!1?l[i].transactions.length*P.transactionItemHeightResponsive.value(o)+45:24,v=({index:i,style:c})=>{if(x===!1){const s=l[i];return e.jsx(w,{style:{...c},children:e.jsx($,{windowSize:o,children:e.jsxs(y,{children:[e.jsx(Q,{children:L.dateNow().year()===s.date.year()?s.date.format(n.dateFormat.visual.MMMDFormat):s.date.format(n.dateFormat.visual.MMMDCommaYYYYformat)}),e.jsx(U,{children:s.transactions.map((M,u)=>e.jsx(X,{data:M,boxType:O(u,s.transactions.length)},u))})]})})})}else return e.jsx(w,{style:{...c},children:e.jsx(G,{children:e.jsx($,{windowSize:o,children:e.jsx(K,{children:n.transactionList.noTransactionsFoundForPrefix})})})})};return e.jsxs(J,{children:[e.jsx(D,{title:`${j} ${n.spendManagement.zeniAccounts.transactionList.title}`,backgroundColor:m.colors.grey4,style:{zIndex:3},onBackClick:d,scrollableContent:p.current!=null?p:void 0,source:"DepositAccTransactionListPage"}),e.jsx(y,{children:e.jsx(B,{children:({height:i,width:c})=>e.jsx(Z,{ref:h,height:i,width:c,outerRef:p,itemKey:s=>s,itemCount:l.length,itemSize:k,initialScrollOffset:0,children:v})})})]})},w=a.div``,$=a.div`
2
2
  margin: ${t=>`${r.sp0} ${q.listItemMargin.valuePx(t.windowSize)}`};
3
3
  `,G=a.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{X as H,a as U,M as $,c3 as V,H as G,l as j,j as n,bO as Q,bQ as X,bR as Y,F as _,a4 as J,C as u,eP as K,o as Z,ao as ee,q as a}from"./index-Cvfy0zsh.js";import{b as N,n as h}from"./vendor-CnQcJ2Lu.js";import{e as ne}from"./BankAccountSection-C0U0fm6r-DEPr81SF.js";import{M as te}from"./MagicLinkTitleSection-u5U6e-ve-CH9mVJpo.js";import{W as ae,A as oe}from"./BankAccountWarningSection-GcaV2hCI-BQKm1Ol8.js";import{T as ie}from"./MailingDetailsSection-nhPvZjVn-sir6Tfnb.js";const i={paddingTopBottom:new u(a[3],a[3]),paddingRight:new u(a[3],a[8]),paddingLeft:new u(a[3],a[6]),buttonWidth:new u(140,140),marginLeft:new u(a[4],a[6])},B="domesticWireDetailsPage",f="bankAccountSection",w="mailingAddressSection",T=e=>`${e}_form`,he=e=>{const{bankAccountCreationState:o,fetchBankNameByRoutingStatus:b,addressType:x,bankAccountToCreate:s,addressToEdit:r,mailingAddress:y,isDisabled:A,companyName:v,isMagicLink:g,currencySymbol:D,amount:P,onSaveHandler:R,onWireDetailsUpdated:z,onFetchBankName:E,onAddressClick:L,onBackClick:C}=e,l=H(),c=U({mode:"onBlur",reValidateMode:"onChange",defaultValues:N.useMemo(()=>se(s,r),[s,r])}),[M,p]=N.useState(!1),t=$.getLocalizedStrings().spendManagement.billPay.vendorCreation,W=$.getLocalizedStrings().common.footer,F=t.wireDetails.domestic,I={onOkClick:()=>{p(!1),c.reset(),C?.()},onCancelClick:()=>{p(!1)}},O=async(k,m)=>{const d=m[f].bankRoutingNumber;z(m),k===`${f}.bankRoutingNumber`&&d?.length===9&&K.test(d)===!0&&E?.(d)};N.useEffect(()=>{const k=c.watch((m,{name:d})=>{d!=null&&m!=null&&V(()=>O(d,m))});return()=>{k.unsubscribe()}});const q=c.handleSubmit(k=>{b.fetchState!=="In-Progress"&&R("wire")}),S=!G(y!=null?j.getFormattedAddress(y):y,r!=null?j.getFormattedAddress(r):r)||re(s)||c.formState.isDirty;return n.jsxs(me,{children:[n.jsxs(le,{size:l,children:[M===!0?n.jsx(Q,{titleComponent:n.jsx(Y,{children:t.discardTitle}),descriptionComponent:n.jsx(X,{children:t.discardDescription}),primaryButtonText:t.discard,secondaryButtonText:t.cancel,action:I}):null,n.jsx(ae,{header:g?n.jsx(te,{companyName:v??"",currencySymbol:D??"",amount:P??0}):F.addWireDetails,isMagicLink:g,isDirty:S,onBackClick:C,setShowConfirmationPopup:p}),o?.fetchState==="Error"&&o.error?.code===409?n.jsx(oe,{warningText:t.bankAccountCommon.accountExistWarning}):null,n.jsx(de,{size:l,children:t.bankAccountCommon.accountDetailsTitle}),n.jsx(_,{...c,children:n.jsxs("form",{id:T(B),onSubmit:q,children:[n.jsx(ce,{size:l,children:n.jsx(ne,{bankAccountToCreate:s,fetchBankNameByRoutingStatus:b,sectionId:f,isDisabled:A})}),n.jsx(ie,{sectionId:w,isDisabled:A,addressType:x,addressToEdit:r,onAddressClick:L})]})})]}),n.jsx(J,{formId:T(B),primaryBtn:{label:g?t.bankAccountCommon.submitDetails:t.bankAccountCommon.saveAccount,isLoading:o.fetchState==="In-Progress",style:{width:i.buttonWidth.value(l)},isDisabled:A!=null},showCancel:!g,cancelBtn:{label:W.cancel,style:{width:i.buttonWidth.value(l)},shouldResetOnCancel:!1,onClick:()=>{S?p(!0):(c.reset(),C?.())}}})]})},se=(e,o)=>({[f]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,bankAccountType:e?.bankAccountType,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName},[w]:{mailingAddress:o}}),re=e=>{if(e==null)return!1;const{bankAccountName:o,bankAccountNumber:b,bankName:x,bankRoutingNumber:s}=e;return!!o||!!b||!!x||!!s},ce=h.div`
1
+ import{X as H,a as U,M as $,c3 as V,H as G,l as j,j as n,bO as Q,bQ as X,bR as Y,F as _,a4 as J,C as u,eP as K,o as Z,ao as ee,q as a}from"./index-DR9vSgqx.js";import{b as N,n as h}from"./vendor-CnQcJ2Lu.js";import{e as ne}from"./BankAccountSection-DL-Qgypb-qVlfhNvY.js";import{M as te}from"./MagicLinkTitleSection-DdTLuD-8-D3POGhAB.js";import{W as ae,A as oe}from"./BankAccountWarningSection-PFOmZUmz-Bqvid317.js";import{T as ie}from"./MailingDetailsSection-Bo_v3Gp2-KQtMHUYs.js";const i={paddingTopBottom:new u(a[3],a[3]),paddingRight:new u(a[3],a[8]),paddingLeft:new u(a[3],a[6]),buttonWidth:new u(140,140),marginLeft:new u(a[4],a[6])},B="domesticWireDetailsPage",f="bankAccountSection",w="mailingAddressSection",T=e=>`${e}_form`,he=e=>{const{bankAccountCreationState:o,fetchBankNameByRoutingStatus:b,addressType:x,bankAccountToCreate:s,addressToEdit:r,mailingAddress:y,isDisabled:A,companyName:v,isMagicLink:g,currencySymbol:D,amount:P,onSaveHandler:R,onWireDetailsUpdated:z,onFetchBankName:E,onAddressClick:L,onBackClick:C}=e,l=H(),c=U({mode:"onBlur",reValidateMode:"onChange",defaultValues:N.useMemo(()=>se(s,r),[s,r])}),[M,p]=N.useState(!1),t=$.getLocalizedStrings().spendManagement.billPay.vendorCreation,W=$.getLocalizedStrings().common.footer,F=t.wireDetails.domestic,I={onOkClick:()=>{p(!1),c.reset(),C?.()},onCancelClick:()=>{p(!1)}},O=async(k,m)=>{const d=m[f].bankRoutingNumber;z(m),k===`${f}.bankRoutingNumber`&&d?.length===9&&K.test(d)===!0&&E?.(d)};N.useEffect(()=>{const k=c.watch((m,{name:d})=>{d!=null&&m!=null&&V(()=>O(d,m))});return()=>{k.unsubscribe()}});const q=c.handleSubmit(k=>{b.fetchState!=="In-Progress"&&R("wire")}),S=!G(y!=null?j.getFormattedAddress(y):y,r!=null?j.getFormattedAddress(r):r)||re(s)||c.formState.isDirty;return n.jsxs(me,{children:[n.jsxs(le,{size:l,children:[M===!0?n.jsx(Q,{titleComponent:n.jsx(Y,{children:t.discardTitle}),descriptionComponent:n.jsx(X,{children:t.discardDescription}),primaryButtonText:t.discard,secondaryButtonText:t.cancel,action:I}):null,n.jsx(ae,{header:g?n.jsx(te,{companyName:v??"",currencySymbol:D??"",amount:P??0}):F.addWireDetails,isMagicLink:g,isDirty:S,onBackClick:C,setShowConfirmationPopup:p}),o?.fetchState==="Error"&&o.error?.code===409?n.jsx(oe,{warningText:t.bankAccountCommon.accountExistWarning}):null,n.jsx(de,{size:l,children:t.bankAccountCommon.accountDetailsTitle}),n.jsx(_,{...c,children:n.jsxs("form",{id:T(B),onSubmit:q,children:[n.jsx(ce,{size:l,children:n.jsx(ne,{bankAccountToCreate:s,fetchBankNameByRoutingStatus:b,sectionId:f,isDisabled:A})}),n.jsx(ie,{sectionId:w,isDisabled:A,addressType:x,addressToEdit:r,onAddressClick:L})]})})]}),n.jsx(J,{formId:T(B),primaryBtn:{label:g?t.bankAccountCommon.submitDetails:t.bankAccountCommon.saveAccount,isLoading:o.fetchState==="In-Progress",style:{width:i.buttonWidth.value(l)},isDisabled:A!=null},showCancel:!g,cancelBtn:{label:W.cancel,style:{width:i.buttonWidth.value(l)},shouldResetOnCancel:!1,onClick:()=>{S?p(!0):(c.reset(),C?.())}}})]})},se=(e,o)=>({[f]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,bankAccountType:e?.bankAccountType,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName},[w]:{mailingAddress:o}}),re=e=>{if(e==null)return!1;const{bankAccountName:o,bankAccountNumber:b,bankName:x,bankRoutingNumber:s}=e;return!!o||!!b||!!x||!!s},ce=h.div`
2
2
  padding-left: ${e=>i.paddingLeft.valuePx(e.size)};
3
3
  padding-right: ${e=>i.paddingRight.valuePx(e.size)};
4
4
  padding-top: ${e=>i.paddingTopBottom.valuePx(e.size)};
@@ -1,4 +1,4 @@
1
- import{j as t,bp as Je,o as a,X as le,bq as et,n as Le,l as d,g as de,C as H,a3 as tt,M as Y,br as rt,be as ze,q as z,ao as Be,e as T,bl as we,f as G,m as ce,K as ee,u as Ne,bs as at,bt as me,bu as pe,c as Ee,bv as Qe,p as fe,bw as q,bc as ot,ap as st,bx as it,by as nt,b4 as lt,bz as dt,Z as ct,bA as mt,bB as pt,b0 as ft}from"./index-Cvfy0zsh.js";import{b as u,n,k as Ve,f as he}from"./vendor-CnQcJ2Lu.js";import{m as ht}from"./analyticsHelper-CcOQPReQ-Bxil0fX9.js";import{c as ut,h as bt}from"./ReportTableViewSelector-BrPJNFJD-BCUhxgyI.js";import{t as gt}from"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./CollapsableReportTable-D_yuiPyJ-DvwXVdxx.js";import"./AccountRow-CAXWtAin-BGG9HEwp.js";const xt=["profit_and_loss","profit_and_loss_by_classes","balance_sheet","cash_flow","cover_page","operating_expenses","revenue","net_burn_or_income","cash_position","cash_in_cash_out"];function te(e,o,r,s){let i=0;if(!(e!==1&&(o==="quarter"||o==="year")))i=r.endDate.endOf(o).diff(r.startDate.startOf(o),o)+1;else switch(o){case"quarter":{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"quarter"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"quarter");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/3);break}case"year":{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"year"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"year");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/12);break}}return s!=null?Math.min(i,s):i}function J(e,o,r,s=1){if(s>1){const i=d.subtractPeriod(r,e,s-1,o),{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(i,e,o);return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:l,endDate:r}}}else return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:r,endDate:r}}}class Ye{_firstMonthOfFY;_timeframe;_dataAvailable;_endDate;_numberOfPeriods;_maxNumberOfPeriods;constructor(o,r,s,i,l,p=s.endDate){if(s.endDate.isBefore(s.startDate))throw Error(`Invalid data available period ${JSON.stringify(s)}`);this._firstMonthOfFY=o,this._timeframe=r,this._dataAvailable=s,this._numberOfPeriods=i,this._maxNumberOfPeriods=l,this._endDate=p}get value(){return J(this.firstMonthOfFY,this.timeframe,this.endDate,this.numberOfPeriods)}get dataAvailable(){return this._dataAvailable}get firstMonthOfFY(){return this._firstMonthOfFY}get timeframe(){return this._timeframe}set timeframe(o){this._timeframe=o}get numberOfPeriods(){return this._numberOfPeriods}get maxNumberOfPeriods(){return this._maxNumberOfPeriods}set maxNumberOfPeriods(o){if(o<=0)throw Error(`Invalid maxNumberOfPeriods ${this.maxNumberOfPeriods}`);this._maxNumberOfPeriods=o}get startDate(){return this.value.dateRange.startDate}get endDate(){return this._endDate}getValidCalendarPeriod(){const o=d.addPeriod(this.startDate,this.firstMonthOfFY,this.maxNumberOfPeriods-1,this.timeframe);let{endOfTimeframeFY:r}=d.getStartOfAndEndOfTimeframeForFY(o,this.firstMonthOfFY,this.timeframe);return r.isAfter(this.dataAvailable.endDate)&&(r=this.dataAvailable.endDate),{startDate:this.startDate,endDate:r}}canUpdateToPeriod(o,r){if(this.firstMonthOfFY===1||this.timeframe==="month")return o.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]")&&r.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]");{const{startOfTimeframeFY:s}=d.getStartOfAndEndOfTimeframeForFY(this.dataAvailable.startDate,this.firstMonthOfFY,this.timeframe),{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(this.dataAvailable.endDate,this.firstMonthOfFY,this.timeframe);return o.isBetween(s,i,null,"[]")&&r.isBetween(s,i,null,"[]")}}updatePeriod(o,r){if(!this.canUpdateToPeriod(o,r))return!1;let s=te(this.firstMonthOfFY,this.timeframe,{startDate:o,endDate:r});if(s>this.maxNumberOfPeriods){s=this._numberOfPeriods;const{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(d.addPeriod(o,this.firstMonthOfFY,this._numberOfPeriods-1,this.timeframe),this.firstMonthOfFY,this.timeframe);this._endDate=i}else if(o.isAfter(r)){s=1;const{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(o,this.firstMonthOfFY,this.timeframe);this._endDate=i}else this._endDate=r;return this._endDate.isAfter(this.dataAvailable.endDate)&&(this._endDate=this.dataAvailable.endDate),this._numberOfPeriods=s,!0}updateStartDate(o){return this.updatePeriod(o,this.endDate)}updateEndDate(o){return this.updatePeriod(this.startDate,o)}}const ae=["1","2","3","4"],oe=d.dateNow().localeData().monthsShort(),P={pdf:12,excel:100,csv:100},N=(e,o,r)=>{const s=Y.getLocalizedStrings().dateFormat.analytics.YYYYFormat,i=[];if(e===1||o==="month"){const{startDate:l,endDate:p}=r;let f=l;for(;f.isSameOrBefore(p,"year");)i.push(f.format(s)),f=d.addPeriod(f,e,1,"year")}else{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"year"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"year");let{fyYear:f}=d.getFYQuarterAndYear(l,e);const{fyYear:b}=d.getFYQuarterAndYear(p,e);for(;f<=b;)i.push(`${f}`),f++}return i},yt=n.div`
1
+ import{j as t,bp as Je,o as a,X as le,bq as et,n as Le,l as d,g as de,C as H,a3 as tt,M as Y,br as rt,be as ze,q as z,ao as Be,e as T,bl as we,f as G,m as ce,K as ee,u as Ne,bs as at,bt as me,bu as pe,c as Ee,bv as Qe,p as fe,bw as q,bc as ot,ap as st,bx as it,by as nt,b4 as lt,bz as dt,Z as ct,bA as mt,bB as pt,b0 as ft}from"./index-DR9vSgqx.js";import{b as u,n,k as Ve,f as he}from"./vendor-CnQcJ2Lu.js";import{m as ht}from"./analyticsHelper-D4zFEqKN-Cv-Rt4Wa.js";import{c as ut,h as bt}from"./ReportTableViewSelector-DSfx5ZD--DVGbGr0z.js";import{t as gt}from"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./CollapsableReportTable-BptltmMq-DGFCje0J.js";import"./AccountRow-TlJ0aU9H-BM9KA8Rp.js";const xt=["profit_and_loss","profit_and_loss_by_classes","balance_sheet","cash_flow","cover_page","operating_expenses","revenue","net_burn_or_income","cash_position","cash_in_cash_out"];function te(e,o,r,s){let i=0;if(!(e!==1&&(o==="quarter"||o==="year")))i=r.endDate.endOf(o).diff(r.startDate.startOf(o),o)+1;else switch(o){case"quarter":{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"quarter"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"quarter");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/3);break}case"year":{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"year"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"year");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/12);break}}return s!=null?Math.min(i,s):i}function J(e,o,r,s=1){if(s>1){const i=d.subtractPeriod(r,e,s-1,o),{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(i,e,o);return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:l,endDate:r}}}else return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:r,endDate:r}}}class Ye{_firstMonthOfFY;_timeframe;_dataAvailable;_endDate;_numberOfPeriods;_maxNumberOfPeriods;constructor(o,r,s,i,l,p=s.endDate){if(s.endDate.isBefore(s.startDate))throw Error(`Invalid data available period ${JSON.stringify(s)}`);this._firstMonthOfFY=o,this._timeframe=r,this._dataAvailable=s,this._numberOfPeriods=i,this._maxNumberOfPeriods=l,this._endDate=p}get value(){return J(this.firstMonthOfFY,this.timeframe,this.endDate,this.numberOfPeriods)}get dataAvailable(){return this._dataAvailable}get firstMonthOfFY(){return this._firstMonthOfFY}get timeframe(){return this._timeframe}set timeframe(o){this._timeframe=o}get numberOfPeriods(){return this._numberOfPeriods}get maxNumberOfPeriods(){return this._maxNumberOfPeriods}set maxNumberOfPeriods(o){if(o<=0)throw Error(`Invalid maxNumberOfPeriods ${this.maxNumberOfPeriods}`);this._maxNumberOfPeriods=o}get startDate(){return this.value.dateRange.startDate}get endDate(){return this._endDate}getValidCalendarPeriod(){const o=d.addPeriod(this.startDate,this.firstMonthOfFY,this.maxNumberOfPeriods-1,this.timeframe);let{endOfTimeframeFY:r}=d.getStartOfAndEndOfTimeframeForFY(o,this.firstMonthOfFY,this.timeframe);return r.isAfter(this.dataAvailable.endDate)&&(r=this.dataAvailable.endDate),{startDate:this.startDate,endDate:r}}canUpdateToPeriod(o,r){if(this.firstMonthOfFY===1||this.timeframe==="month")return o.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]")&&r.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]");{const{startOfTimeframeFY:s}=d.getStartOfAndEndOfTimeframeForFY(this.dataAvailable.startDate,this.firstMonthOfFY,this.timeframe),{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(this.dataAvailable.endDate,this.firstMonthOfFY,this.timeframe);return o.isBetween(s,i,null,"[]")&&r.isBetween(s,i,null,"[]")}}updatePeriod(o,r){if(!this.canUpdateToPeriod(o,r))return!1;let s=te(this.firstMonthOfFY,this.timeframe,{startDate:o,endDate:r});if(s>this.maxNumberOfPeriods){s=this._numberOfPeriods;const{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(d.addPeriod(o,this.firstMonthOfFY,this._numberOfPeriods-1,this.timeframe),this.firstMonthOfFY,this.timeframe);this._endDate=i}else if(o.isAfter(r)){s=1;const{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(o,this.firstMonthOfFY,this.timeframe);this._endDate=i}else this._endDate=r;return this._endDate.isAfter(this.dataAvailable.endDate)&&(this._endDate=this.dataAvailable.endDate),this._numberOfPeriods=s,!0}updateStartDate(o){return this.updatePeriod(o,this.endDate)}updateEndDate(o){return this.updatePeriod(this.startDate,o)}}const ae=["1","2","3","4"],oe=d.dateNow().localeData().monthsShort(),P={pdf:12,excel:100,csv:100},N=(e,o,r)=>{const s=Y.getLocalizedStrings().dateFormat.analytics.YYYYFormat,i=[];if(e===1||o==="month"){const{startDate:l,endDate:p}=r;let f=l;for(;f.isSameOrBefore(p,"year");)i.push(f.format(s)),f=d.addPeriod(f,e,1,"year")}else{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"year"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"year");let{fyYear:f}=d.getFYQuarterAndYear(l,e);const{fyYear:b}=d.getFYQuarterAndYear(p,e);for(;f<=b;)i.push(`${f}`),f++}return i},yt=n.div`
2
2
  padding: ${a.sp3};
3
3
  border: 1px solid ${e=>e.borderColor.default};
4
4
  border-radius: ${a.sp1};
@@ -1,4 +1,4 @@
1
- import{X as a,j as i,bs as P,o,M as h,C as s,bo as y,Q as c,h as g,a3 as b,q as t,a0 as L,ja as k,jb as C,jc as R}from"./index-Cvfy0zsh.js";import{n}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const l={drawerItemPadding:new s(t[3],t[3],t[4]),styledDivMarginLeft:new s(t[6],t[7]),verticalLineLeftMargin:new s(32,42),iconWidth:new s(t[5],t[6]),iconHeight:new s(t[5],t[6]),iconSize:new s(20,t[4])},v={title:new c("standardRegular","largeRegular"),content:new c("smallRegular","standardRegular")},x=h.getLocalizedStrings().rewardsPage.drawerPage,D=({rewardsPlan:e})=>{const r=[M(),_(),H({rewardsPlan:e})],d=a();return i.jsx(A,{children:r.map((f,j)=>i.jsxs(W,{children:[i.jsx(I,{children:f}),j<r.length-1?i.jsx(E,{windowSize:d}):null]},`step_${j}`))})},M=()=>{const e=a(),r=x.item1;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:e,icon:"link",children:i.jsx(X,{windowSize:e})}),i.jsx(S,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},_=()=>{const e=a(),r=x.item2;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:e,icon:"user",children:i.jsx(B,{windowSize:e})}),i.jsx(S,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},H=({rewardsPlan:e})=>{const r=a(),d=x.item3;return i.jsxs(p,{windowSize:r,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:r,icon:"money",children:i.jsx(N,{windowSize:r})}),i.jsx(S,{windowSize:r,children:d.title[e.planName]})]}),i.jsx($,{windowSize:r,children:i.jsx(u,{windowSize:r,children:d.content[e.planName].replace("__reward-amount__",L("0,0",e.referrerAmount))})})]})},p=n.div`
1
+ import{X as a,j as i,bs as P,o,M as h,C as s,bo as y,Q as c,h as g,a3 as b,q as t,a0 as L,ja as k,jb as C,jc as R}from"./index-DR9vSgqx.js";import{n}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const l={drawerItemPadding:new s(t[3],t[3],t[4]),styledDivMarginLeft:new s(t[6],t[7]),verticalLineLeftMargin:new s(32,42),iconWidth:new s(t[5],t[6]),iconHeight:new s(t[5],t[6]),iconSize:new s(20,t[4])},v={title:new c("standardRegular","largeRegular"),content:new c("smallRegular","standardRegular")},x=h.getLocalizedStrings().rewardsPage.drawerPage,D=({rewardsPlan:e})=>{const r=[M(),_(),H({rewardsPlan:e})],d=a();return i.jsx(A,{children:r.map((f,j)=>i.jsxs(W,{children:[i.jsx(I,{children:f}),j<r.length-1?i.jsx(E,{windowSize:d}):null]},`step_${j}`))})},M=()=>{const e=a(),r=x.item1;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:e,icon:"link",children:i.jsx(X,{windowSize:e})}),i.jsx(S,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},_=()=>{const e=a(),r=x.item2;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:e,icon:"user",children:i.jsx(B,{windowSize:e})}),i.jsx(S,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},H=({rewardsPlan:e})=>{const r=a(),d=x.item3;return i.jsxs(p,{windowSize:r,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:r,icon:"money",children:i.jsx(N,{windowSize:r})}),i.jsx(S,{windowSize:r,children:d.title[e.planName]})]}),i.jsx($,{windowSize:r,children:i.jsx(u,{windowSize:r,children:d.content[e.planName].replace("__reward-amount__",L("0,0",e.referrerAmount))})})]})},p=n.div`
2
2
  border: 1px solid ${e=>e.theme.colors.grey3};
3
3
  border-radius: ${o.sp2};
4
4
  box-shadow: ${e=>`${o.sp0} 1px 2px ${o.sp0} ${e.theme.colors.dropShadowNormal}`};
@@ -1,4 +1,4 @@
1
- import{X as ae,M as de,fj as pe,u as ce,a as ue,a2 as me,j as t,bO as ge,bP as he,bQ as fe,bR as ye,gb as ve,_ as B,bV as xe,o,bs as be,F as $e,a4 as we,C as I,fm as Re,fn as Ce,fo as je,b_ as Oe,l as Q,ao as Pe,g as W,cn as ke,q as c}from"./index-Cvfy0zsh.js";import{b as $,n as r}from"./vendor-CnQcJ2Lu.js";import{x as _e}from"./AllUserItems--netGz7H-CJzpZ7a6.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledUserSingleSelectWithSubtitlesField-B9Mu2WJq-Di4MWf5A.js";import"./RoleWithToolTip-CFMnZiem-C4TYM06A.js";import"./LabeledZeniRolesDropDownField-BCvUNHGc-CO5qR-vY.js";const j={containerPaddingTop:new I(c[3],c[3]),containerPaddingLeft:new I(c[3],c[6],c[6]),containerPaddingRight:new I(c[3],c[6],c[8]),buttonWidth:new I(85,85)},X="editPeoplePage",w="userItems",a=de.getLocalizedStrings().peoplePage,He=({peopleDetails:e,managersList:u,classList:R,controllersList:O,mode:d,isZeniTenant:T,onCloseClick:P,onResetClick:k,onSaveClick:m,onDeleteUser:Y,onPeopleLocalDataUpdated:G,analytics:U,isReimbursementDisabled:D,isZeniAccountsDisabled:N,isChargeCardDisabled:Z,isTreasuryDisabled:q,isBankingOnlyTenant:y,isCardsOnlyTenant:v,isLiteRoleDisabled:F})=>{const C=ae(),[J,E]=$.useState(!1),[H,ee]=$.useState(-1),te=d==="zeni_only"?a.invitePage.editZeniTitle:a.invitePage.editTitle,se=$.useRef(null),S=$.useMemo(()=>pe(D,N,Z,y,v,F,q),[D,N,Z,y,v,F,q]),A=ce(),l=ue({mode:"onBlur",reValidateMode:"onChange",defaultValues:K(e.people,u,R,d,S,y,v),values:K(e.people,u,R,d,S,y,v)}),oe=l.handleSubmit(()=>{V()&&m()},()=>{V(),console.warn("Edit Profile form error")}),V=()=>{const g=l.getValues();let n=!0;return g.userItems.forEach((h,x)=>{const{role:z,department:i,nonZeniRole:f,manager:p}=h;if(d==="zeni_only"){const s=z.selectedOptions;(!s?.length||s?.length===1&&s?.includes("company_officer"))&&(l.setError(`${w}.${x}.role`,{type:"required"}),n=!1)}else{const s=f?.userRole.selectedRole;(s!=null&&f!=null?f.productsByUserRole[s].map(b=>b.selectedOption).filter(b=>b!=null):[]).length<1&&(l.setError(`${w}.${x}.nonZeniRole.userRole.selectedRole`,{type:"required"}),n=!1),s!=="investor_or_banker"&&i?.selectedOption==null&&(y||v||(l.setError(`${w}.${x}.department`,{type:"required"}),n=!1)),p?.selectedUser==null&&s!=="investor_or_banker"&&(l.setError(`${w}.${x}.manager`,{type:"required"}),n=!1)}}),n},ne=async(g,n)=>{const h=[],{userItems:x}=n,z=e.person?.userRole?.userRoleId;x.forEach(i=>{let f={};if(z!=null){if(d==="zeni_only")f={email:i.email,role:i.role.selectedOptions};else{const p=i.nonZeniRole?.userRole.selectedRole;let s=[];p==="admin"||p==="investor_or_banker"?s.push(p):s=p!=null?(i.nonZeniRole?.productsByUserRole[p]??[]).map(L=>Q.toUserRoleTypeStrict(L.selectedOption?.value)).filter(L=>L!=null):[],p==="employee"&&s.length===0&&s.push("reimbursements_user");const b=Q.hasInvestorBankerLevelAccess(s);f={email:i.email,role:s,departmentId:b?void 0:i.department?.selectedOption?.value,managerId:b?void 0:i.manager?.selectedUser}}h.push(f)}}),G(h)};$.useEffect(()=>{const g=l.watch((n,{name:h})=>{h!=null&&n!=null&&ne(h,n)});return()=>{g.unsubscribe()}});const re=()=>{E(!0)},le={onOkClick:()=>{const g=e.person;U?.trackRemoveUserAccess(g.userRole.userRoles,g.userRole.userEmail),Y?.(e.person)},onCancelClick:()=>{E(!1)}},M=me(e.person?.update),_=e.person?.update,ie=a.deleteOverlay.description.replace("‘_user-name_’",`"${e.person?.user?.firstName} ${e.person?.user?.lastName}"`);return $.useEffect(()=>{_==null&&M==="removeUsers"&&(E(!1),k?.())},[_,M]),t.jsxs(t.Fragment,{children:[J===!0?t.jsx(ge,{titleComponent:t.jsx(ye,{children:a.deleteOverlay.title}),descriptionComponent:t.jsx(fe,{children:ie}),primaryButtonText:a.deleteOverlay.remove,secondaryButtonText:a.deleteOverlay.cancel,action:le,proceedButtonVariant:"danger",isLoading:_==="removeUsers",isDisabled:_==="removeUsers",style:{background:A.colors.overlayColor},children:e.person?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{}),t.jsx(Le,{children:t.jsx(Be,{src:e.person?.user.photo?.toString()??he,alt:e.person?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(ve,{title:te,backgroundColor:A.colors.grey4,style:{zIndex:4},onCloseClick:P,isTitleAlignLeft:C==="small"}),t.jsxs(Ie,{"data-testid":B("edit-people-page-container"),windowSize:C,ref:se,children:[t.jsxs(ze,{children:[t.jsx(xe,{personBasic:e.person?.user,styles:{height:o.sp6,width:o.sp6}}),t.jsxs(Te,{children:[t.jsx(Ee,{children:e.person?.user?.firstName?t.jsxs(Se,{children:[e.person?.user?.firstName??""," ",e.person?.user?.lastName??""]}):null}),t.jsx(Ne,{className:"delete-icon-wrapper","data-testid":B("edit-people-page-delete-icon-wrapper"),onClick:re,children:t.jsx(be,{style:{padding:"2px 5px"},enterDelay:600,title:a.deleteOverlay.title,placement:"top",children:t.jsx(De,{windowsize:C})})})]})]}),t.jsx($e,{...l,children:t.jsx("form",{id:`${X}_form`,onSubmit:oe,children:t.jsx(_e,{control:l.control,sectionId:w,deleteConfirmationIndex:H,updateDeleteConfirmationIndex:ee,mode:d,isZeniTenant:T,classList:R,managersList:u,controllersList:O,customerRoleOptions:S,isBankingOnlyTenant:y,isCardsOnlyTenant:v,isEdit:!0,person:e.person,analytics:U})})})]}),t.jsx(we,{formId:`${X}_form`,"data-testid":B("edit-people-page-footer"),primaryBtn:{label:a.invitePage.update,style:{width:j.buttonWidth.value(C)},isLoading:e.updatePersonState.fetchState==="In-Progress",isDisabled:e.updatePersonState.fetchState==="In-Progress"},showCancel:!0,cancelBtn:{label:a.invitePage.cancel,style:{width:j.buttonWidth.value(C)},shouldResetOnCancel:!1,onClick:P},separatorStyle:{marginRight:o.sp4}})]})},K=(e,u,R,O,d,T,P)=>{const k=R.map(m=>({label:m.fullyQualifiedAccountingClassName??"",value:m.classId,hoverText:m.accountingClassNumber}));return{[w]:[{userIndex:0,email:e[0].email,role:O==="zeni_only"?{allOptions:Oe.roles,selectedOptions:e[0]?.role}:void 0,nonZeniRole:O!=="zeni_only"?{userRole:{selectedRole:je(e[0]?.role),allRootRole:Ce(T,P)},productsByUserRole:Re(e[0]?.role,d)}:void 0,manager:{allUsers:u,selectedUser:e[0]?.managerId?e[0]?.managerId:"no_manager"},department:{allOptions:k,selectedOption:k.find(m=>m.value===e[0]?.departmentId)}}]}},et=(e,u)=>`${e}.${u}`,Ie=r.div`
1
+ import{X as ae,M as de,fj as pe,u as ce,a as ue,a2 as me,j as t,bO as ge,bP as he,bQ as fe,bR as ye,gb as ve,_ as B,bV as xe,o,bs as be,F as $e,a4 as we,C as I,fm as Re,fn as Ce,fo as je,b_ as Oe,l as Q,ao as Pe,g as W,cn as ke,q as c}from"./index-DR9vSgqx.js";import{b as $,n as r}from"./vendor-CnQcJ2Lu.js";import{x as _e}from"./AllUserItems-BPSpj-dO-3CLmRBZX.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledUserSingleSelectWithSubtitlesField-zPoNOgP7-Coi1U77m.js";import"./RoleWithToolTip-Cob2-Ppj-C_s6kG4X.js";import"./LabeledZeniRolesDropDownField-C8-KfR-4-Bo19dflJ.js";const j={containerPaddingTop:new I(c[3],c[3]),containerPaddingLeft:new I(c[3],c[6],c[6]),containerPaddingRight:new I(c[3],c[6],c[8]),buttonWidth:new I(85,85)},X="editPeoplePage",w="userItems",a=de.getLocalizedStrings().peoplePage,He=({peopleDetails:e,managersList:u,classList:R,controllersList:O,mode:d,isZeniTenant:T,onCloseClick:P,onResetClick:k,onSaveClick:m,onDeleteUser:Y,onPeopleLocalDataUpdated:G,analytics:U,isReimbursementDisabled:D,isZeniAccountsDisabled:N,isChargeCardDisabled:Z,isTreasuryDisabled:q,isBankingOnlyTenant:y,isCardsOnlyTenant:v,isLiteRoleDisabled:F})=>{const C=ae(),[J,E]=$.useState(!1),[H,ee]=$.useState(-1),te=d==="zeni_only"?a.invitePage.editZeniTitle:a.invitePage.editTitle,se=$.useRef(null),S=$.useMemo(()=>pe(D,N,Z,y,v,F,q),[D,N,Z,y,v,F,q]),A=ce(),l=ue({mode:"onBlur",reValidateMode:"onChange",defaultValues:K(e.people,u,R,d,S,y,v),values:K(e.people,u,R,d,S,y,v)}),oe=l.handleSubmit(()=>{V()&&m()},()=>{V(),console.warn("Edit Profile form error")}),V=()=>{const g=l.getValues();let n=!0;return g.userItems.forEach((h,x)=>{const{role:z,department:i,nonZeniRole:f,manager:p}=h;if(d==="zeni_only"){const s=z.selectedOptions;(!s?.length||s?.length===1&&s?.includes("company_officer"))&&(l.setError(`${w}.${x}.role`,{type:"required"}),n=!1)}else{const s=f?.userRole.selectedRole;(s!=null&&f!=null?f.productsByUserRole[s].map(b=>b.selectedOption).filter(b=>b!=null):[]).length<1&&(l.setError(`${w}.${x}.nonZeniRole.userRole.selectedRole`,{type:"required"}),n=!1),s!=="investor_or_banker"&&i?.selectedOption==null&&(y||v||(l.setError(`${w}.${x}.department`,{type:"required"}),n=!1)),p?.selectedUser==null&&s!=="investor_or_banker"&&(l.setError(`${w}.${x}.manager`,{type:"required"}),n=!1)}}),n},ne=async(g,n)=>{const h=[],{userItems:x}=n,z=e.person?.userRole?.userRoleId;x.forEach(i=>{let f={};if(z!=null){if(d==="zeni_only")f={email:i.email,role:i.role.selectedOptions};else{const p=i.nonZeniRole?.userRole.selectedRole;let s=[];p==="admin"||p==="investor_or_banker"?s.push(p):s=p!=null?(i.nonZeniRole?.productsByUserRole[p]??[]).map(L=>Q.toUserRoleTypeStrict(L.selectedOption?.value)).filter(L=>L!=null):[],p==="employee"&&s.length===0&&s.push("reimbursements_user");const b=Q.hasInvestorBankerLevelAccess(s);f={email:i.email,role:s,departmentId:b?void 0:i.department?.selectedOption?.value,managerId:b?void 0:i.manager?.selectedUser}}h.push(f)}}),G(h)};$.useEffect(()=>{const g=l.watch((n,{name:h})=>{h!=null&&n!=null&&ne(h,n)});return()=>{g.unsubscribe()}});const re=()=>{E(!0)},le={onOkClick:()=>{const g=e.person;U?.trackRemoveUserAccess(g.userRole.userRoles,g.userRole.userEmail),Y?.(e.person)},onCancelClick:()=>{E(!1)}},M=me(e.person?.update),_=e.person?.update,ie=a.deleteOverlay.description.replace("‘_user-name_’",`"${e.person?.user?.firstName} ${e.person?.user?.lastName}"`);return $.useEffect(()=>{_==null&&M==="removeUsers"&&(E(!1),k?.())},[_,M]),t.jsxs(t.Fragment,{children:[J===!0?t.jsx(ge,{titleComponent:t.jsx(ye,{children:a.deleteOverlay.title}),descriptionComponent:t.jsx(fe,{children:ie}),primaryButtonText:a.deleteOverlay.remove,secondaryButtonText:a.deleteOverlay.cancel,action:le,proceedButtonVariant:"danger",isLoading:_==="removeUsers",isDisabled:_==="removeUsers",style:{background:A.colors.overlayColor},children:e.person?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{}),t.jsx(Le,{children:t.jsx(Be,{src:e.person?.user.photo?.toString()??he,alt:e.person?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(ve,{title:te,backgroundColor:A.colors.grey4,style:{zIndex:4},onCloseClick:P,isTitleAlignLeft:C==="small"}),t.jsxs(Ie,{"data-testid":B("edit-people-page-container"),windowSize:C,ref:se,children:[t.jsxs(ze,{children:[t.jsx(xe,{personBasic:e.person?.user,styles:{height:o.sp6,width:o.sp6}}),t.jsxs(Te,{children:[t.jsx(Ee,{children:e.person?.user?.firstName?t.jsxs(Se,{children:[e.person?.user?.firstName??""," ",e.person?.user?.lastName??""]}):null}),t.jsx(Ne,{className:"delete-icon-wrapper","data-testid":B("edit-people-page-delete-icon-wrapper"),onClick:re,children:t.jsx(be,{style:{padding:"2px 5px"},enterDelay:600,title:a.deleteOverlay.title,placement:"top",children:t.jsx(De,{windowsize:C})})})]})]}),t.jsx($e,{...l,children:t.jsx("form",{id:`${X}_form`,onSubmit:oe,children:t.jsx(_e,{control:l.control,sectionId:w,deleteConfirmationIndex:H,updateDeleteConfirmationIndex:ee,mode:d,isZeniTenant:T,classList:R,managersList:u,controllersList:O,customerRoleOptions:S,isBankingOnlyTenant:y,isCardsOnlyTenant:v,isEdit:!0,person:e.person,analytics:U})})})]}),t.jsx(we,{formId:`${X}_form`,"data-testid":B("edit-people-page-footer"),primaryBtn:{label:a.invitePage.update,style:{width:j.buttonWidth.value(C)},isLoading:e.updatePersonState.fetchState==="In-Progress",isDisabled:e.updatePersonState.fetchState==="In-Progress"},showCancel:!0,cancelBtn:{label:a.invitePage.cancel,style:{width:j.buttonWidth.value(C)},shouldResetOnCancel:!1,onClick:P},separatorStyle:{marginRight:o.sp4}})]})},K=(e,u,R,O,d,T,P)=>{const k=R.map(m=>({label:m.fullyQualifiedAccountingClassName??"",value:m.classId,hoverText:m.accountingClassNumber}));return{[w]:[{userIndex:0,email:e[0].email,role:O==="zeni_only"?{allOptions:Oe.roles,selectedOptions:e[0]?.role}:void 0,nonZeniRole:O!=="zeni_only"?{userRole:{selectedRole:je(e[0]?.role),allRootRole:Ce(T,P)},productsByUserRole:Re(e[0]?.role,d)}:void 0,manager:{allUsers:u,selectedUser:e[0]?.managerId?e[0]?.managerId:"no_manager"},department:{allOptions:k,selectedOption:k.find(m=>m.value===e[0]?.departmentId)}}]}},et=(e,u)=>`${e}.${u}`,Ie=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};