@zeniai/web-cockpit-ui 1.15.59-dev → 1.15.60-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 (284) hide show
  1. package/dist/assets/{ACHDetailsPage-CFhoboVe-NhNiWQoq.js → ACHDetailsPage-BO7lxW8c-B0_WsBb4.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DB-fTWME-C20PCC17.js → AIPerformancePage-SF-quMkk-D_TcV5rN.js} +1 -1
  3. package/dist/assets/AccountInfoPage-v8-NT3FJ-gaoEoT5g.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-eYEsv7ac-CxPwO1am.js → AccountInfoPageContent-DIWh6VaI-CcPRrUNm.js} +1 -1
  5. package/dist/assets/AccountLockedInfoModal-DloPB9vd-BOkxR2Sg.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-3Q0EPYhL-DhctK78k.js → AccountReconDetailsDrawerPage-BAgQsFiF-hVicxd_W.js} +49 -49
  7. package/dist/assets/{AccountRow-CdgvnPG8-BbJV8Q8M.js → AccountRow-Dczx5rSu-C_XsKKay.js} +10 -10
  8. package/dist/assets/{AccountsPromoCardStack-DHo59LLN-G_DVA-Yj.js → AccountsPromoCardStack-Ywhto4lV-C2VycrWJ.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-BzO1FXUa-kqMHH9Vt.js → AddAddressForCardDrawer-B8srmVT6-Co_HJf1Y.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-BfXFbHjk-QRigQSHV.js → AddToWalletPage-k__RW699-DBnalmZR.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-C1hFq4KH-COTxuu-2.js → AgingReportsPage-BuIXjljE-BrreoP_-.js} +1 -1
  12. package/dist/assets/{AllUserItems-B6pnKByY-BUdz_J3g.js → AllUserItems-BdgTe4WF-DQfYtDL3.js} +5 -5
  13. package/dist/assets/{ApAgingDetailPage-CxLVGnpY-OkmLiLaF.js → ApAgingDetailPage-6F47t31h-CB_PIykE.js} +3 -3
  14. package/dist/assets/{AppBasePage-DiVxF606-C03aQg1o.js → AppBasePage-DaTueT-x-BXKUSYxo.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-B_EWsf8O-16pnrlUd.js → AppDrawerContent-CtCI6jpp-CsPTIxrb.js} +22 -22
  16. package/dist/assets/{ApprovalRulesSettingsPage-HHjDp_NQ-CDZaolru.js → ApprovalRulesSettingsPage-BVxu4soW-Cx9W9VZb.js} +1 -1
  17. package/dist/assets/{ArAgingChart-Ba4A-i2N-Cm3Zb2-A.js → ArAgingChart-BK-JyW2V-CRC7GMeI.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-prgcvsS4-CC5CLIGP.js → ArAgingDetailPage-CvqLu3q8-BQd3HFeD.js} +4 -4
  19. package/dist/assets/{AttachmentView-SsWJw4A8-BGK1ntZP.js → AttachmentView-DQdb3v_e-CrflCKQW.js} +2 -2
  20. package/dist/assets/BalancesInsightWithToolTip-D4q45w1q-CGBLlxve.js +38 -0
  21. package/dist/assets/{BankAccountSection-B4jmT0lb-DzAFSATj.js → BankAccountSection-DgbfU8F--CkRwjy7A.js} +1 -1
  22. package/dist/assets/{BankAccountWarningSection-Bz2itMx0-BwlD2-aX.js → BankAccountWarningSection-litL0o_Z-DgHPj2Xz.js} +8 -8
  23. package/dist/assets/{BankConnectionsSettingsPage-BcVk7bTt-CT4jBj4R.js → BankConnectionsSettingsPage-bAj9uB9k-sPoCw_nL.js} +6 -6
  24. package/dist/assets/{BillDetailPage-Dkqmi4H1-BrWo4uGz.js → BillDetailPage-CiHal44n-B-pNvdK4.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRuleDetailPage-Blxlv3pa-CZSNHT3K.js → BillPayApprovalRuleDetailPage-CRBli7lk-C6KU9krq.js} +1 -1
  26. package/dist/assets/{BillPayApprovalRulesPage-B_QwggJS-LtyCS7v3.js → BillPayApprovalRulesPage-BTOmSLcs-DsHPwIyx.js} +1 -1
  27. package/dist/assets/{BillPayPromoPage-Bx2AXpWe-Du89a98b.js → BillPayPromoPage-B5gkQjT2-CDaCRy4j.js} +6 -6
  28. package/dist/assets/{BillPaySetUpPage-CM7_DkHC-CclJKf3M.js → BillPaySetUpPage-DM3r09by-ylftA-6O.js} +1 -1
  29. package/dist/assets/{BillingSettingsPage-DM0OIfxa-BuoiB9BU.js → BillingSettingsPage-CiTKyJeG-D7-iHgY4.js} +1 -1
  30. package/dist/assets/{BillsBulkReviewDrawerPage-C3xmQ7wz-Bwj3c210.js → BillsBulkReviewDrawerPage-B6ofRDkg-pxXiH1By.js} +1 -1
  31. package/dist/assets/{BoxItem-CvCo0wr6-DKAIvhWo.js → BoxItem-C39hQSVg-DygFSSe8.js} +3 -3
  32. package/dist/assets/{BusinessVerificationPage-BAZmkR4a-AnwjdvL9.js → BusinessVerificationPage-BiWEnJET-BH1PMwYP.js} +1 -1
  33. package/dist/assets/{CardNumberSubText-DHtSIcZZ-DL8DMs-k.js → CardNumberSubText-FNfrozX6-CY1gwPPP.js} +1 -1
  34. package/dist/assets/{CashbackDetailPage-CNS1FA6b-JWXE3hsL.js → CashbackDetailPage-DaLICa_v-BHVqJW_A.js} +6 -6
  35. package/dist/assets/{ChargeCardDetailPage-C4NeG7IM-CPxS6cRg.js → ChargeCardDetailPage-B0Aq7zO5-Bj_iPNHv.js} +34 -34
  36. package/dist/assets/{ChargeCardListPage-DNYiWaEf-DJhH9poc.js → ChargeCardListPage-CfRto2rQ-DUZeib3g.js} +1 -1
  37. package/dist/assets/{ChargeCardListTable-DdnyzdFf-BmYCmkcc.js → ChargeCardListTable-DMdC4lxo-70bPzG6D.js} +28 -28
  38. package/dist/assets/{ChargeCardPaymentHistoryPage-CXlqzaUt-BEtGgsbY.js → ChargeCardPaymentHistoryPage-BYTmtF_y-QaBsAk7f.js} +22 -22
  39. package/dist/assets/ChargeCardPromoPage-AI5bladj-CDTghnkA.js +222 -0
  40. package/dist/assets/{ChargeCardSetupPage-BtikPFOq-_QFEhM40.js → ChargeCardSetupPage-BjhqdubL-Bxyq0dEG.js} +1 -1
  41. package/dist/assets/{ChargeCardStatementsPage-RepWBbvJ-fE-f9dTt.js → ChargeCardStatementsPage-DCM92s6v-BgJV4ytL.js} +4 -4
  42. package/dist/assets/{CheckDepositDrawerPage-BCqg3irO-BNQC0cqt.js → CheckDepositDrawerPage-CkIxEqHU-Dod8HuuJ.js} +1 -1
  43. package/dist/assets/{CollapsableReportTable-gy7Ue_fk-D4P0G-Lp.js → CollapsableReportTable-ClHwXtCj-D8daRiWx.js} +43 -43
  44. package/dist/assets/{CompanyOfficerDetailsSection-BsCx7q-g-vYNOEpVO.js → CompanyOfficerDetailsSection-BY8hFQnp-CtC3dw7s.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard-BbUWOs1U-BLVqocbL.js → CompanyPassportCard-B3rZE3pg-CHku2Rtz.js} +2 -2
  46. package/dist/assets/{CompanyPassportPage-BnP2oA1U-zWSSW3Bs.js → CompanyPassportPage-4FXVf3EP-CYRMv_ux.js} +24 -24
  47. package/dist/assets/{CompleteProfile-TiRsm2Fm-CIjFxaAm.js → CompleteProfile-B1BoilWd-DIpcRO8q.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-D7J36hZf-BKlSjT6j.js → ConfettiBurst-CsbAGF65-DaE2G5iK.js} +1 -1
  49. package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-Bv_SCMJB.js → ConstrainedInnerElement-CgdnMeoA-D3ljsIVB.js} +1 -1
  50. package/dist/assets/{CreateOrEditVendorPage-Dihzr1D5-D9cB4SAg.js → CreateOrEditVendorPage-C50eYOFo-5jCRpD-i.js} +11 -11
  51. package/dist/assets/{CreditCardPaymentDrawerPage-CZGzDuxC-p3RWbIDE.js → CreditCardPaymentDrawerPage-Dxz_SY7N-CdO_tBcx.js} +5 -5
  52. package/dist/assets/{CurrencySelectField-BTAmIqPa-BqQ2_ci5.js → CurrencySelectField-D2Ogwvbr-DFlDNWit.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-MVI7kqIh-wst5cRj4.js → CustomerOnboardingActivationPage-5Sh7hmI9-BLHLFJqx.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-B5kVGk_V-Bb9r_J_O.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CaI_0pCb-CxQ8bQdr.js → CustomerOnboardingDetailPageSkeleton-CL-mOSUp-BYS-DtUM.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-CO_c2COV-pLp1hFCt.js → CustomerOnboardingNoStepsPage-CyL1AK78-Cy-eN1DF.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-BF0vuYaJ-JMRuse4Z.js → CustomerOnboardingPage-C8nxJPwo-CFmeBld-.js} +4 -4
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BGFdLX1i-DySt6BQg.js → CustomerOnboardingProductSuitePage-C7FbnHpU-Dxkjm06Q.js} +1 -1
  59. package/dist/assets/{Dashboard-Qjedd4r--DHZmjgJN.js → Dashboard-Bpu-6Sm5-BISIyFSl.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-Deith_ON-ChcA84Vk.js → DashboardReportPage-B1aAikQG-BdFbggI-.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-C7DfUDio-DPyKxS1U.js → DashboardSidebarBackgroundAnimation-C6xm-p2j-CVm6YwBC.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-7kYotKov-BnPXoaAG.js → DepositAccTransactionItem-DEU0DgtI-EQTbBfv8.js} +3 -3
  63. package/dist/assets/{DepositAccTransactionListPage-Bop4Uj5w-ZOaAmZOC.js → DepositAccTransactionListPage-Bh0dIkE9-CW5ttbou.js} +2 -2
  64. package/dist/assets/{DomesticWireDetailsPage-_TyXsqEx-cl5Mv1ja.js → DomesticWireDetailsPage-2WyD73c9-Ddu9-eO2.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-Cmd727bN-BHplNe_3.js → DownloadOverlay-B7M2VI7K-8UWWddqd.js} +18 -18
  66. package/dist/assets/{DrawerPage-DmGwfnGp-B5EgKZxZ.js → DrawerPage-DsQTxXa8-FNOF0T9x.js} +5 -5
  67. package/dist/assets/{EditPeoplePage-YyluIC6R-CQIl30sj.js → EditPeoplePage-fY0HXvVS-CPTN1GRB.js} +3 -3
  68. package/dist/assets/{EditReimbursementDetailPage-DeMid2Ko-BTURFjuA.js → EditReimbursementDetailPage-D7RUWSTZ-BNhqRuzG.js} +1 -1
  69. package/dist/assets/EntityDetailPage-BDyO7iLI-BQGDz9Ii.js +18 -0
  70. package/dist/assets/{EntitySummarySection-5NbutA8l-Z4HQfo2N.js → EntitySummarySection-0rRkC5V6-DX9oCnh6.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-CQ_3WluW-sBkDi2LJ.js → ExpenseAutomationOverviewPage-DOGAdZXV-Ott9us_6.js} +1 -1
  72. package/dist/assets/{ExpenseAutomationPage-VuU4acYd-DRu_62Rz.js → ExpenseAutomationPage-DOsIzX0P-DNfPXp6J.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-DhoNmyC2-Ixqn7FeR.js → ExpressPayPage-CIi6jM8Y-qFfOMk3w.js} +1 -1
  74. package/dist/assets/{FeaturePreviewPage-GSwhPxgP-C20k6nV5.js → FeaturePreviewPage-BVn6ZUOB-BcJD18O7.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-DaueHRo4-DdiQ4lOn.js → FollowStepsSection-CvWPHXDW-CayqdWAy.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-DG7_1HOT-mLv5NHYa.js → GlobalReviewListPage-CS_11bx0-sbF8FOmX.js} +1 -1
  77. package/dist/assets/{InformationCardStack-zc-BxR7F-B2cR2Vrc.js → InformationCardStack-B9g7W7Xx-BWV4DOrJ.js} +1 -1
  78. package/dist/assets/{InsightsCardStack-DxCA5sFh-CBXIO7T2.js → InsightsCardStack-mvzIc2uY-DntFQXQU.js} +3 -3
  79. package/dist/assets/{InsightsSection-BdFG3j3R-DpGjm8qb.js → InsightsSection-rGyA4lY9-B2pA29Jq.js} +4 -4
  80. package/dist/assets/{IntegrationsSettingsPage-CaiL3kqS-yWfc1-ip.js → IntegrationsSettingsPage-Dwz4ukHF-BDuIwaNQ.js} +2 -2
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-BrQVSzeS-DauYa5_z.js → InternationalWireSwiftDetailsPage-Cm0H9oyf-DfXMYL1d.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-NaLnhW9C-D3Wh10D9.js → InternationalWireVerificationPage-woIoME3I-CEoHufSE.js} +1 -1
  83. package/dist/assets/{InviteFormPage-fjqv2l7h-CoWToBnJ.js → InviteFormPage-DaZ-sJYV-Bag9I8OB.js} +17 -17
  84. package/dist/assets/{InvitePageListView-CQecQhxr-BNu8hXMY.js → InvitePageListView-Do7EVQrj-BrU-UxSb.js} +13 -13
  85. package/dist/assets/{InvitePeoplePage-DAEBuOnk-jK8Ueocl.js → InvitePeoplePage-CpD7YoC2-DLME90b_.js} +1 -1
  86. package/dist/assets/{InvoiceUploadSection-58l6ePuH-BuOyGSAC.js → InvoiceUploadSection-DOuTQPee-DKRpBgc2.js} +1 -1
  87. package/dist/assets/{IssueChargeCardPage-Bkxqsgax-BMc-YwRY.js → IssueChargeCardPage-ClMhr27d-Dvt3VEvl.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-CZfFV97h-DWDhZW5u.js → LabeledAddressValue-B6_PZDTO-BM9CuApr.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-D66XOhMx-Di6mjf7B.js → LabeledAddressValueField-Cz6tRMoW-wArjCe_0.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-BtnsqE4D-CLMK-CUC.js → LabeledControlledCheckBoxField-BEpAlnvo-BghNAEyy.js} +1 -1
  91. package/dist/assets/{LabeledCountryMultiSelectField-kopByxLB-CVecMMvH.js → LabeledCountryMultiSelectField-1kTcZMQW-BkvqWj3Y.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-B6An-cwq-DxTaWad8.js → LabeledCreatableSingleSelectField-PiLB1S77-D7JcIqjo.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-D_ZD8JTn-BbI3Z3Te.js → LabeledDocumentField-Cicw8ABs-BakwqLCx.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-CJ7ncCzH-CmOBBbLT.js → LabeledDropDownFormattedTextField-BEVVgIGK-CLPycccH.js} +2 -2
  95. package/dist/assets/{LabeledText-A1h_ionS-YHsepFfP.js → LabeledText-C56xvYuX-BJO8VuVp.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-IYaUvqgY-BQ0ZCt10.js → LabeledUserSingleSelectWithSubtitlesField-CF4oVI17-1aX-FRHw.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-DmynBXbJ-BkBy6SHA.js → LabeledZeniRolesDropDownField-B5rxYfam-B3apIRze.js} +1 -1
  98. package/dist/assets/{LinkJETransactionPage-D6-fL4a6-DPNZmHzv.js → LinkJETransactionPage-DbnaYlRA-4hyH1rgp.js} +9 -9
  99. package/dist/assets/{LockCardPage-BDlnh_zf-coxMaBNB.js → LockCardPage-XHbTmzq8-CfUgYvqO.js} +20 -20
  100. package/dist/assets/{LowBalancePopup-CBPl_udd-D2XBBf4O.js → LowBalancePopup-IF7NG9aL-CmWtcxy6.js} +2 -2
  101. package/dist/assets/MagicLinkACHDetailsPage-DbhqYo7W-DLN4BmVt.js +1 -0
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-BcNOhJgL-C8mUkiDX.js → MagicLinkDomesticWireDetailsPage-D0JDLfbz-CKYFGEdB.js} +1 -1
  103. package/dist/assets/MagicLinkInternationalWireDetailsPage-DChqrJN7-j39Z7g0H.js +1 -0
  104. package/dist/assets/{MagicLinkSuccessPage-Cl461HWp-CO6oeX5F.js → MagicLinkSuccessPage-Cyr3p_8a-DYu_aa7F.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-DoIMYrRv-BlE9zH37.js → MagicLinkTitleSection-A4zyF5bg-CuWJG08o.js} +1 -1
  106. package/dist/assets/MailingDetailsSection-DqSOlu2t-XHdrpb5B.js +21 -0
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BU6TBzI1-DN5Npe5i.js → MyBankConnectionsSettingsPage-DtTjhna--DxAAS5ce.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-DcunCDU6-gyBwBEb_.js → MyPendingActivationChargeCardListPage-CKSWf7I4-CVnClwp0.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-DF7ahyXE-B1LJnYuu.js → MyProfileSettingsPage-WF1pNlyU-C1ew1Kqs.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-D2v1fhLS-C3H8GgqL.js → NavBarWithPicker-DiCaJ8Qy-D9erSe1B.js} +3 -3
  111. package/dist/assets/{NavigationArrow-CWUL-6kN-BrqMd9Lj.js → NavigationArrow-f4Z3TuXg-DjAooGX3.js} +6 -6
  112. package/dist/assets/{NavigationDots-c-XSrFzE-Dxzsqafk.js → NavigationDots-WiVjbUsC-BSgmW_if.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-FGEO68I8-B7wryl8V.js → NewGlobalMerchantPage-kvjjwV8d-C-gYRU5V.js} +1 -1
  114. package/dist/assets/{NoDataChart-DJhSgtLu-B7rWK9ww.js → NoDataChart-DlSLTzZl-qjL1S4Ow.js} +1 -1
  115. package/dist/assets/{NoDataTable-BZiwo2qK-1fFq9QL7.js → NoDataTable-9vLoRpsR-NJzyakwC.js} +1 -1
  116. package/dist/assets/{NotFoundPage-BN5unYX8-RIPoUtcm.js → NotFoundPage-CFlNCHFs-CZtYv7Ed.js} +4 -4
  117. package/dist/assets/{NotificationSettingsPage-d8kHDj0M-BR4XfDGy.js → NotificationSettingsPage-KJzE9v4p-D_0qzf80.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-ThKLok_w-DiwvAaDh.js → NotificationsListConfig-6sXXtF_E-CjeFzlDg.js} +1 -1
  119. package/dist/assets/{NotificationsPage-Uvu6XESA-C7IDz_PV.js → NotificationsPage-D4AmPdo9-Lse12GIJ.js} +11 -11
  120. package/dist/assets/{OpExByVendorPage-QyqRkD2_-BZtZlU0k.js → OpExByVendorPage-B5Wtu3ww-DoL2G9-j.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-BG9y5C0t-B5Ccc20I.js → OverlayContainerPage-BG9y5C0t-B-_gIiaG.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-DJ2v5qbE-D34Zu7P_.js → PandLWithForecastPage-CjkaxTx7-hcg5r7tq.js} +2 -2
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-q5z8XZFC-BXoCztnc.js → PaymentAccountSetupBillingAddressSection-eeLSg7xb-BPuUddlR.js} +6 -6
  124. package/dist/assets/{PeoplePage-C5ZdpVyR-D5gb3H9N.js → PeoplePage-CQREy6SW-B0AK4Oec.js} +1 -1
  125. package/dist/assets/{Preview-M7TzJD6j.js → Preview-CZH7Vvu6.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-CXjLTOLy-qhgO5u3T.js → ProductsCarousel-COZZMTcH-CfEx379j.js} +3 -3
  127. package/dist/assets/{PromoBaseCards-CN9uZfG4-4ZG6rDcT.js → PromoBaseCards-Bmn6TN2k-B692-NLa.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-CXSi1Pd9-BlV5xAad.js → QBOConnectionDialog-DYxoiSkA-COoNZDfT.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-BrtLMvEP-CWf9qAKV.js → QBOSetupSection-Cdz2PDxV-1MtshN_P.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CS1BQ7pL-gwQi2ubd.js → ReimbursementApprovalRuleDetailPage-C-QEoqCw-DEqspRF0.js} +2 -2
  131. package/dist/assets/{ReimbursementApprovalRulesPage-aLRkhkZB-CtUN1jCI.js → ReimbursementApprovalRulesPage-Ch2sxTFV-CKSEAZRx.js} +9 -9
  132. package/dist/assets/{ReimbursementDetailPage-Dr5BTvEq-BkIwEWVX.js → ReimbursementDetailPage-DSF6SfKn-BbgmDgbl.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-C5Z0mVhQ-sIeJk3bD.js → ReimbursementPromoPage-F1ROFd63-Df7C1VVh.js} +4 -4
  134. package/dist/assets/{ReimbursementSetUpPage-CXhOBErm-DH5oFO_k.js → ReimbursementSetUpPage-l2mhLFuo-DfcOr7HI.js} +1 -1
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CA0n0mau-YPT0uXmT.js → ReimbursementsBulkReviewDrawerPage-DyPxPnlu-BUgOGjSI.js} +1 -1
  136. package/dist/assets/{ReloadCard-Bjp8ygC2-QCThgpLx.js → ReloadCard-CDcJMl9F-tXak7uFI.js} +1 -1
  137. package/dist/assets/{ReportTableViewSelector-DTk1dNWC-B6Y4EDN-.js → ReportTableViewSelector-DvCk55Hn-CTarIpK9.js} +1 -1
  138. package/dist/assets/{ReportsPage-DrjOGopt-DJaJ6UxU.js → ReportsPage-DfqqKSt3-BxlHe2bX.js} +49 -38
  139. package/dist/assets/{RevenueChart-CqGvXDr4-ls1jVoKH.js → RevenueChart-BONT9upM-Cun2QP3i.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-CWBP7FBN-BDBxmvOT.js → ReviewDetailsPage-857bVurA-D9gCRs9U.js} +1 -1
  141. package/dist/assets/{ReviewOverlay-Cxkp85Kw-C7d3vwBi.js → ReviewOverlay-ClQg7d2j-j91vCn0m.js} +1 -1
  142. package/dist/assets/RoleWithToolTip-C0G1Hgp_-BKrTDu8H.js +22 -0
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CYvlB3Nf-BjdxIH5b.js → ScheduleDetailsFixedAssetsPage-CJ_JBtxS-BCPY7QpL.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-CZXJ15tN-CjrCADWR.js → ScheduleDetailsPage-B1aEwPL--vu1ZFkSU.js} +3 -3
  145. package/dist/assets/{ScheduleSequenceTable-DNPID_7F-j2fgEjwp.js → ScheduleSequenceTable-DhU7PI91-BAKwnm-f.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-DJ_rUo9A.js → ScreenRoutes-B4US_7hw.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-_WPR-q2V-DrJlA8IQ.js → SetUpAccountSection-C8dulq9s-DDXcc18s.js} +11 -11
  148. package/dist/assets/{SignIn-CDEsZw_T-0YUs2QmP.js → SignIn-wDe7lbGR-dg2gJssp.js} +1 -1
  149. package/dist/assets/{SignInScreen-CUXsEOc0.js → SignInScreen-CnOpPKTK.js} +1 -1
  150. package/dist/assets/{SpendManagementListViewPage-MOCWuROI-DKR38Veg.js → SpendManagementListViewPage-BdddUHrW-CnqRniMi.js} +3 -3
  151. package/dist/assets/{SpendManagementPerTabPage-BeK0SCeE-D8khDgh_.js → SpendManagementPerTabPage-BBJm3884-DoJtdm-x.js} +18 -18
  152. package/dist/assets/{SpendManagementSection-DZFPfKNi-BUQ2S0Kz.js → SpendManagementSection-6R5y0Hy4-D5jOLcFY.js} +1 -1
  153. package/dist/assets/{StatementItem-DjvU5wiI-DHTNeSpB.js → StatementItem-qsoXKx_p-DBQZldZM.js} +1 -1
  154. package/dist/assets/{StatementsPage-DYLp_e7W-C5hw_hkQ.js → StatementsPage-Cn7WG5-S-AcQ1iHip.js} +1 -1
  155. package/dist/assets/{StatusSwitcher-jxaonB4S-Dw8Z5KsP.js → StatusSwitcher-D3qCg5J1-BZCFmoiB.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-CudjNlsi-Dk2m1EXt.js → SubTabSwitcher-BXajy75j-DZugBDGb.js} +1 -1
  157. package/dist/assets/{SummaryCard-DPOhBmkr-Cj1Lt-Mp.js → SummaryCard-B1d4_5lE-uu1gTNTh.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-CTMoHv0R-DzrReeZE.js → TaskManagementPage-h3Rb49Jj-Mtdf3ds1.js} +1 -1
  159. package/dist/assets/{TimeRangeSwitcher-SqY2MHGs-Bpa_mFEa.js → TimeRangeSwitcher-DpUOmqiR-DjFTIpwn.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcher-BlJ2fuHy-8yHS99Lr.js → TimeframeSwitcher-BKEtsv_r-DfkM31PQ.js} +1 -1
  161. package/dist/assets/{TimeframeSwitcherWithToggle-Dgc1odUH-CNwpIwWb.js → TimeframeSwitcherWithToggle-DECnQIMT-Cmt_c04c.js} +10 -10
  162. package/dist/assets/{TopExCard-CG8YLsYe-CsdBprjg.js → TopExCard-leQR29Sq-B0Y6UXAe.js} +3 -3
  163. package/dist/assets/{TopExDetailPage-TvYCbzSP-C1DN6y7-.js → TopExDetailPage-Dgg7Do6D-DdiiFE6N.js} +8 -8
  164. package/dist/assets/{TransactionActivityLogPage-BL3vEAdU-B_s3Ii9P.js → TransactionActivityLogPage-CU2pUJQL-CUfFmWBA.js} +6 -6
  165. package/dist/assets/{TransactionDetailPage-DUouBL0o-BwsVWjsw.js → TransactionDetailPage-FT2IPLH7-BTpqS69f.js} +17 -17
  166. package/dist/assets/{TransactionList-B16NONME-MhxbTKXX.js → TransactionList-C2MGkQYM-DYhz6ZPl.js} +1 -1
  167. package/dist/assets/{TransactionListBig-CItPbTRV-CTDy7YXE.js → TransactionListBig-CZ3jIxzR-CRCbDlw1.js} +4 -4
  168. package/dist/assets/{TransactionListPage-DNecYY8M-DvyKlW5R.js → TransactionListPage-PCa4exLO-BxsKDJxF.js} +1 -1
  169. package/dist/assets/{TransactionVendorDetailPage-DpqisXN8-BeIl3VIo.js → TransactionVendorDetailPage-BgcqndCu-JJLz26CY.js} +1 -1
  170. package/dist/assets/{TransferDrawerPage-Dsmbswu0-DuQeRo8o.js → TransferDrawerPage-SirvPH4z-I4L9iRhs.js} +28 -28
  171. package/dist/assets/{TreasuryOverviewPage-BcRpcYmB-B_2n4w_R.js → TreasuryOverviewPage-B_WK1aOv-CprBsLp-.js} +12 -12
  172. package/dist/assets/{TreasuryPromoPage-DOO_OMRa-Nn5daNmi.js → TreasuryPromoPage-B_D63Dr2-CnSqy837.js} +9 -9
  173. package/dist/assets/{TreasuryStatementsPage-A_U7bEy5-DdFUWuDa.js → TreasuryStatementsPage-BGe0fhBe-DTEczdhN.js} +2 -2
  174. package/dist/assets/TreasuryTaxLetterPage-9gNdkQZp-C1BQoAja.js +58 -0
  175. package/dist/assets/{TrendChart-GMMat-NG-CAc9nAfG.js → TrendChart-COItOWPp-BY69H27v.js} +1 -1
  176. package/dist/assets/{TrendWithTransactions-CrA4opNV-BTtTpjeg.js → TrendWithTransactions-DgAw_8CI-31-F3YNz.js} +1 -1
  177. package/dist/assets/{UncategorizedAccountsMappingPage-CrzbFGOi-B7V18O6N.js → UncategorizedAccountsMappingPage-B9EziB6Q-B5XRflrD.js} +5 -5
  178. package/dist/assets/{UnitIntegrationPage-XZY6zJa7-Cq4xbYW7.js → UnitIntegrationPage-DGWNyWV1-DDxjCVGo.js} +1 -1
  179. package/dist/assets/{UploadAdditionalDocumentOverlay-eqwSLigx-Ci9eqDqb.js → UploadAdditionalDocumentOverlay-DWmMz_8y-CvLWvP9X.js} +1 -1
  180. package/dist/assets/{Vendor2FAPopup-BHDivuPB-Cn8-yps4.js → Vendor2FAPopup-dh2g8kqu-CdLofAYR.js} +1 -1
  181. package/dist/assets/VendorACHDetailsPage-C0vIRpRW-Bl9ig0z-.js +1 -0
  182. package/dist/assets/{VendorDetailPage-DEu-yS8w-DNet96B_.js → VendorDetailPage-CGqoIODq-VSGzsMrn.js} +10 -10
  183. package/dist/assets/VendorDomesticWireDetailsPage-BVXSOMiH-B_RQPHLo.js +1 -0
  184. package/dist/assets/{VendorFiling1099EditablePage-C461SzO0-BVUWElpF.js → VendorFiling1099EditablePage-CsnlHrCl-AUunsfoG.js} +1 -1
  185. package/dist/assets/{VendorFirstReviewPage-klbCHS04-BFjy2m5_.js → VendorFirstReviewPage-DC1j2sO_-CtBZ5OYr.js} +1 -1
  186. package/dist/assets/{VendorInternationalWireDetailsPage-DY0V-VbO-C2xJ0CsJ.js → VendorInternationalWireDetailsPage-Drr00a6C-CQ1ZShGA.js} +8 -8
  187. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CZ5N8G2o-BqZ7DdzL.js +1 -0
  188. package/dist/assets/{VendorsAccountsSection-Cqcr-ArD-DAAwd5Iw.js → VendorsAccountsSection-BtdwR8u4-DTioiVZE.js} +1 -1
  189. package/dist/assets/{VerifyDevice-Dhu5iywf-HX-kw30c.js → VerifyDevice-Bhr_yHpE-BbGiRxv5.js} +3 -3
  190. package/dist/assets/{VideoPlayer-ZGjx_Hp7-Nomi0VD9.js → VideoPlayer-wlJX6lEq-D6dTvqn0.js} +2 -2
  191. package/dist/assets/{VideoPopup-R3u0N_if-DgVn2CAl.js → VideoPopup-BPptwR51-COhEr58N.js} +1 -1
  192. package/dist/assets/{WarningsDrawerPage-TerLFC4m-C5ptwy3N.js → WarningsDrawerPage-CHDMmfGz-BXafaQFq.js} +1 -1
  193. package/dist/assets/{ZeniAccountDetailPage-DQB7sXU9-CETOq0EN.js → ZeniAccountDetailPage-CSsu44ls-BwOj8KvI.js} +9 -9
  194. package/dist/assets/{ZeniAccountListViewPage-BwXKgf6g-DrDKS22-.js → ZeniAccountListViewPage-BZwGCrzx-Dpx7_w7g.js} +22 -22
  195. package/dist/assets/{ZeniAccountNavBarPieces-CHUTFAWG-DBX2rB9H.js → ZeniAccountNavBarPieces-CrNjnkNS-DjQVooJA.js} +5 -5
  196. package/dist/assets/{ZeniAccountPromoPage-BkfJuMNV-DSkmb6Z5.js → ZeniAccountPromoPage-CahV-Rmf-B4cDQ_nu.js} +1 -1
  197. package/dist/assets/{ZeniAccountSetupPage-C3drM4Zs-D-HaFV-S.js → ZeniAccountSetupPage-DSNDNKZr-CY5M0A2Q.js} +1 -1
  198. package/dist/assets/{ZeniCopyright-CznSgVJF-iBl18n1m.js → ZeniCopyright-BNGdkMOa-Bn4hiDwJ.js} +1 -1
  199. package/dist/assets/{ZeniTransferAmountSlider-C77DEl-C-CZljZWCZ.js → ZeniTransferAmountSlider-DuD1JtSv-FE9AJrcw.js} +1 -1
  200. package/dist/assets/{add-to-wallet-DgdBD8_G-CM6IrCpv.js → add-to-wallet-DgdBD8_G-OZ5gpoAM.js} +1 -1
  201. package/dist/assets/{analytics-B_VWX-BQ.js → analytics-TwdLweES.js} +1 -1
  202. package/dist/assets/{analyticsHelper-Bh8o1v3y-C4Sojiq_.js → analyticsHelper-DjQYjslY-DBXj-dJs.js} +1 -1
  203. package/dist/assets/{analyticsHelper-B8fd42um.js → analyticsHelper-iTM7ZfDG.js} +1 -1
  204. package/dist/assets/{arrow-south-east-round-PEovUgvH-CQGzMyhs.js → arrow-south-east-round-PEovUgvH-q2OU5IkV.js} +1 -1
  205. package/dist/assets/{auto-transfer-rule-mbafm5D3-Ba30im8q.js → auto-transfer-rule-mbafm5D3-BEBK8d08.js} +1 -1
  206. package/dist/assets/{chartTypes-C14YY2Rq-DHigu710.js → chartTypes-BGl-YMiu-WdB5HF6p.js} +1 -1
  207. package/dist/assets/{commonDimensions-CVpc-NCw-D6CVEqC_.js → commonDimensions-CuKo3wam-CITxsF7B.js} +1 -1
  208. package/dist/assets/{commonTypes-Ec-PxfpT-Dj2109B_.js → commonTypes-CfAg6Jvv-D6_uVQ3i.js} +1 -1
  209. package/dist/assets/{constants-DgwGHN1r.js → constants-BRyQqmbK.js} +1 -1
  210. package/dist/assets/{core-Cjh03OPu.js → core-C_RwbDgZ.js} +1 -1
  211. package/dist/assets/{dash.all.min-CCSNDyIp.js → dash.all.min-BXIjGNzm.js} +1 -1
  212. package/dist/assets/{downloadPdf-BuPJ6cfr-Dyz4TLVR.js → downloadPdf-Dcd8BY_9-DevbEgfI.js} +1 -1
  213. package/dist/assets/{empty-iTJcp-B8.js → empty-CN54c-dU.js} +1 -1
  214. package/dist/assets/{empty-DlGh28fD.js → empty-D7p7xixl.js} +1 -1
  215. package/dist/assets/{epic-hN0N_N79.js → epic-CThn8LAI.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-TbiyaSAn.js → gift-box-Cmt9OgIZ-oia6LvJT.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CxIH_dl6.js → graphic-no-data-l-DU4J8fDt-DCjrEnAk.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CUkTpFd-.js → graphic-no-data-net-burn-l-CzmycA0m-Db_-34x6.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-Dbtylvfc.js → handshake-BPg58FML-Dcowt3IG.js} +1 -1
  220. package/dist/assets/{helper-AgH8nJln-Bk3G7LVh.js → helper-DkzA3y2L-C_9Y7_ic.js} +1 -1
  221. package/dist/assets/{index-C4Fispms.js → index-B-ek68tb.js} +1 -1
  222. package/dist/assets/{index-aCBnCBoN.js → index-B8J3c9-k.js} +7 -7
  223. package/dist/assets/{index-ChCGry2d.js → index-BC4cjDzB.js} +1 -1
  224. package/dist/assets/{index-DAwCqq2t.js → index-C7AzBAhT.js} +1 -1
  225. package/dist/assets/{index-DFowIMIZ.js → index-CJXgYa1j.js} +1 -1
  226. package/dist/assets/{index-B5cuJQnR.js → index-DvYI3iXJ.js} +1 -1
  227. package/dist/assets/{index-Bk7UJBjY.js → index-hPlkpvne.js} +1 -1
  228. package/dist/assets/{lexical-9REae7LV.js → lexical-DZ4skawM.js} +1 -1
  229. package/dist/assets/{liveblocks-CEY7tsth.js → liveblocks-CN5hALk7.js} +1 -1
  230. package/dist/assets/{lottie-BmLFYENY.js → lottie-B-zs781A.js} +1 -1
  231. package/dist/assets/mapLoadingInProgressToTreeNode-lABm-2N9-B58RPCeu.js +1 -0
  232. package/dist/assets/mapSectionWithAcOnlyToTreeNode-COcUb2pF-kcDRUVhM.js +1 -0
  233. package/dist/assets/mapSpacerToTreeNode-BDjo5N-i-mJOJcAn8.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-CvVUjW74-DDD8EZiJ.js +1 -0
  235. package/dist/assets/{mapTimeframeBalancesToTreeNode-Drhl_lnP-CrhrR0QG.js → mapTimeframeBalancesToTreeNode-CwHF76sn-r5bNXF3q.js} +1 -1
  236. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-B7LYTZXQ-71mHcXTa.js +1 -0
  237. package/dist/assets/{mui-BosmckWV.js → mui-B_fu8zAT.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-C2A7RuXG.js → page-detail-CWX5S47F-CvAL0hAO.js} +1 -1
  239. package/dist/assets/{panelSelectedMixin-Cddsb26L-CWVsp72I.js → panelSelectedMixin-Cddsb26L-DRHuamSe.js} +1 -1
  240. package/dist/assets/{radio-default-CiSgisfh-Dhw9u_Vt.js → radio-default-CiSgisfh-BgsJfXrp.js} +1 -1
  241. package/dist/assets/{react-CLFAbS9n.js → react-B3oFwy7V.js} +2 -2
  242. package/dist/assets/{react-DT8qkoNX.js → react-BG0GUKse.js} +1 -1
  243. package/dist/assets/{react-ddvEC0y3.js → react-Bcm_MkQe.js} +1 -1
  244. package/dist/assets/{react-DSh5n3Dg.js → react-CWuBuyxj.js} +1 -1
  245. package/dist/assets/{react-DAXSMqh2.js → react-DJ0zzqQv.js} +1 -1
  246. package/dist/assets/{react-D8DqvAAs.js → react-PE1K_DTb.js} +1 -1
  247. package/dist/assets/{react-DxfKP-TY.js → react-rwxEP-9P.js} +1 -1
  248. package/dist/assets/{react-DTZ405nF.js → react-uUMjmJkq.js} +1 -1
  249. package/dist/assets/{recharts-CimMNwCJ.js → recharts-BkmpOx_p.js} +1 -1
  250. package/dist/assets/{sentry-DzaNjvx0.js → sentry-xNvKSthz.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-Cva3YFBn.js → shield-DOlUxcFf-BV2AyAgf.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-CGYYTIjt-D5mv6_v1.js +1 -0
  253. package/dist/assets/{toChartData-G5y-N82I-BBptd2Gk.js → toChartData-B4ligi4c-D4j3IIGd.js} +1 -1
  254. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-CMjD_kCZ.js → upload-reimbursement-receipt-O2N8vcO7-Deu8S236.js} +1 -1
  255. package/dist/assets/{uploadAttachment-RbkIBMGO-TVHnian4.js → uploadAttachment-DgPDimcm-DyuT8s2S.js} +5 -5
  256. package/dist/assets/{uploadReceipts-CIgkuVpu-Dil-Qv4Z.js → uploadReceipts-CIgkuVpu-CmRP4shz.js} +1 -1
  257. package/dist/assets/{url-ymOv7sCf.js → url-CPrPdBBS.js} +1 -1
  258. package/dist/assets/{url-KRGewpHH.js → url-DN9fcrN3.js} +1 -1
  259. package/dist/assets/{useLongPress-GCK2COYQ-BgaoTE4k.js → useLongPress-GCK2COYQ-DMOFKAWg.js} +1 -1
  260. package/dist/assets/{usp-line-BBd1wKwW-Bnk1sVWO.js → usp-line-BBd1wKwW-Bx4ltDgD.js} +1 -1
  261. package/dist/assets/{utils-THjX-QSp.js → utils-4bW-VyLb.js} +1 -1
  262. package/dist/assets/{zeni-epic-state-BNpJ2txa.js → zeni-epic-state-SAYXyeZn.js} +3 -3
  263. package/dist/index.html +1 -1
  264. package/package.json +2 -2
  265. package/dist/assets/AccountInfoPage-pEEhPqOb-CuwSCEbu.js +0 -18
  266. package/dist/assets/AccountLockedInfoModal-jYWr_8TD-BpvSTyB8.js +0 -59
  267. package/dist/assets/BalancesInsightWithToolTip-DE6gDjGA-D3lvmUPJ.js +0 -38
  268. package/dist/assets/ChargeCardPromoPage-D4canPX9-DuNs-QpK.js +0 -222
  269. package/dist/assets/CustomerOnboardingContainerPage-DV3z4pR--Dxqq0QJL.js +0 -1
  270. package/dist/assets/EntityDetailPage-DPTSSZdS-B-VW2ygZ.js +0 -18
  271. package/dist/assets/MagicLinkACHDetailsPage-eq8wlXQr-DtgQBKXr.js +0 -1
  272. package/dist/assets/MagicLinkInternationalWireDetailsPage-Df8XYlkg-BRWnjp0l.js +0 -1
  273. package/dist/assets/MailingDetailsSection-NdwWGQ88-D7MwCKtI.js +0 -21
  274. package/dist/assets/RoleWithToolTip-CqLxmtj6-BNUOWMRG.js +0 -22
  275. package/dist/assets/TreasuryTaxLetterPage-BsJn-BgX-CQZpySFF.js +0 -58
  276. package/dist/assets/VendorACHDetailsPage-DJ4Crnr0-adpyH1RD.js +0 -1
  277. package/dist/assets/VendorDomesticWireDetailsPage-WFcOmpiN-CHE49l9v.js +0 -1
  278. package/dist/assets/VendorInternationalWireSwiftDetailsPage-B8sx02I_-CE29O6S4.js +0 -1
  279. package/dist/assets/mapLoadingInProgressToTreeNode-DTyQHWMc-CfKVg64X.js +0 -1
  280. package/dist/assets/mapSectionWithAcOnlyToTreeNode-D7pjBGp6-Bef-KTrw.js +0 -1
  281. package/dist/assets/mapSpacerToTreeNode-Cd4FCXAf-BQ_XhzIu.js +0 -1
  282. package/dist/assets/mapTimeframeBalancesToTreeNode-UsawmMLa-_s__LV61.js +0 -1
  283. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-B-aNuSSK-BvCkLSPj.js +0 -1
  284. package/dist/assets/toCOABalancesWithID-wh35N3no-ClXxioRe.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as He,e as v,aG as Y,cT as Ye,V as t,bE as qe,ac as $,L as Ge,cy as ie,cz as se,cA as le,dd as Ke,aT as Je,x as q,O as x,cb as Qe,o,de as Ze,c0 as S,cq as ce,u as w,b9 as de,ak as pe,an as K,bv as Xe,da as me,df as et,d as z,dg as ue,d9 as he}from"./index-aCBnCBoN.js";import{a as g}from"./sentry-DzaNjvx0.js";import{n as r}from"./mui-BosmckWV.js";import"./liveblocks-CEY7tsth.js";import"./core-Cjh03OPu.js";import"./recharts-CimMNwCJ.js";import"./zeni-epic-state-BNpJ2txa.js";import"./lottie-BmLFYENY.js";import"./analytics-B_VWX-BQ.js";import"./lexical-9REae7LV.js";import"./utils-THjX-QSp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c6178c20-d640-4cc7-8fc2-1321d6fec87a",e._sentryDebugIdIdentifier="sentry-dbid-c6178c20-d640-4cc7-8fc2-1321d6fec87a")}catch{}})();const tt=({bankAccountNumberOrIban:e,accountNumberOrIbanLabel:n,accountTypeLabel:s,accountType:l,bankName:m,routingNumberOrSwiftCode:p,accountName:f,routingNumberOrSwiftCodeLabel:j,onDeleteClick:u})=>{const b=v(),h=x.getLocalizedStrings().spendManagement.billPay.vendorCreation,C=t.jsxs(ot,{children:[t.jsxs(I,{children:[t.jsx(N,{children:j}),t.jsx(T,{children:p})]}),t.jsxs(I,{children:[t.jsx(N,{children:h.achDetails.bankName}),t.jsx(T,{children:m})]}),t.jsxs(I,{children:[t.jsx(N,{children:n}),t.jsx(T,{children:e})]}),t.jsxs(I,{children:[t.jsx(N,{children:s}),t.jsx(T,{children:typeof l=="string"&&l!==""?et(l.toLowerCase()):l??""})]})]});return t.jsxs(it,{size:b,children:[t.jsxs(nt,{children:[t.jsxs(K,{children:[`${m} ${h.paymentAccountDetailConnector} ${e.slice(-4)}`,t.jsx(S,{title:C,placement:"top",children:t.jsx(lt,{children:t.jsx(ct,{})})})]}),t.jsx(rt,{children:f??h.emptyPlaceholderString})]}),t.jsx(at,{children:t.jsx(S,{enterDelay:600,display:"flex",title:h.deleteAccountTooltip,placement:"top",children:t.jsx(st,{onClick:k=>{k.stopPropagation(),u()},"data-testid":$("delete-vendor-account-section",f),children:t.jsx(dt,{})})})})]})},ot=r.div`
1
+ import{g as He,e as v,aG as q,cT as qe,V as t,bE as Ye,ac as $,L as Je,cy as ie,cz as se,cA as le,dd as Ge,aT as Ke,x as Y,O as x,cc as Qe,o,de as Ze,c1 as S,cq as de,u as w,b9 as ce,ak as pe,an as G,bv as Xe,da as me,df as et,d as z,dg as ue,d9 as he}from"./index-B8J3c9-k.js";import{a as g}from"./sentry-xNvKSthz.js";import{n as r}from"./mui-B_fu8zAT.js";import"./liveblocks-CN5hALk7.js";import"./core-C_RwbDgZ.js";import"./recharts-BkmpOx_p.js";import"./zeni-epic-state-SAYXyeZn.js";import"./lottie-B-zs781A.js";import"./analytics-TwdLweES.js";import"./lexical-DZ4skawM.js";import"./utils-4bW-VyLb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="73a31fbf-c45c-4630-826b-98f569824ac1",e._sentryDebugIdIdentifier="sentry-dbid-73a31fbf-c45c-4630-826b-98f569824ac1")}catch{}})();const tt=({bankAccountNumberOrIban:e,accountNumberOrIbanLabel:n,accountTypeLabel:s,accountType:l,bankName:m,routingNumberOrSwiftCode:p,accountName:f,routingNumberOrSwiftCodeLabel:j,onDeleteClick:u})=>{const b=v(),h=x.getLocalizedStrings().spendManagement.billPay.vendorCreation,C=t.jsxs(ot,{children:[t.jsxs(I,{children:[t.jsx(N,{children:j}),t.jsx(T,{children:p})]}),t.jsxs(I,{children:[t.jsx(N,{children:h.achDetails.bankName}),t.jsx(T,{children:m})]}),t.jsxs(I,{children:[t.jsx(N,{children:n}),t.jsx(T,{children:e})]}),t.jsxs(I,{children:[t.jsx(N,{children:s}),t.jsx(T,{children:typeof l=="string"&&l!==""?et(l.toLowerCase()):l??""})]})]});return t.jsxs(it,{size:b,children:[t.jsxs(nt,{children:[t.jsxs(G,{children:[`${m} ${h.paymentAccountDetailConnector} ${e.slice(-4)}`,t.jsx(S,{title:C,placement:"top",children:t.jsx(lt,{children:t.jsx(dt,{})})})]}),t.jsx(rt,{children:f??h.emptyPlaceholderString})]}),t.jsx(at,{children:t.jsx(S,{enterDelay:600,display:"flex",title:h.deleteAccountTooltip,placement:"top",children:t.jsx(st,{onClick:k=>{k.stopPropagation(),u()},"data-testid":$("delete-vendor-account-section",f),children:t.jsx(ct,{})})})})]})},ot=r.div`
2
2
  display: flex;
3
3
  flex-wrap: wrap;
4
4
  gap: ${o.sp1};
@@ -54,7 +54,7 @@ import{g as He,e as v,aG as Y,cT as Ye,V as t,bE as qe,ac as $,L as Ge,cy as ie,
54
54
  width: ${o.sp3};
55
55
  transform: translate(${o.sp2}, 2px);
56
56
  height: ${o.sp3};
57
- `,ct=r(ue)`
57
+ `,dt=r(ue)`
58
58
  cursor: pointer;
59
59
  height: ${o.sp3};
60
60
  width: ${o.sp3};
@@ -62,7 +62,7 @@ import{g as He,e as v,aG as Y,cT as Ye,V as t,bE as qe,ac as $,L as Ge,cy as ie,
62
62
  &:hover {
63
63
  color: ${e=>e.theme.colors.primary};
64
64
  }
65
- `,dt=r(he)`
65
+ `,ct=r(he)`
66
66
  width: ${o.sp3};
67
67
  height: ${o.sp3};
68
68
  cursor: pointer;
@@ -70,7 +70,7 @@ import{g as He,e as v,aG as Y,cT as Ye,V as t,bE as qe,ac as $,L as Ge,cy as ie,
70
70
  &:hover {
71
71
  color: ${z.important};
72
72
  }
73
- `,pt=({paymentInstrument:e,onDeleteClick:n})=>{const s=v(),l=x.getLocalizedStrings().spendManagement.billPay.vendorCreation,m=t.jsx(mt,{children:e.piLabels.map(p=>t.jsxs(ut,{children:[t.jsxs(ht,{children:[p.name,l.colon]}),t.jsx(xt,{children:p.value})]},p.name))});return t.jsxs(yt,{size:s,children:[t.jsx(gt,{children:t.jsxs(K,{children:[e.displayText,t.jsx(S,{title:m,placement:"top",children:t.jsx(ft,{children:t.jsx(wt,{})})})]})}),t.jsx(bt,{children:t.jsx(S,{enterDelay:600,display:"flex",title:l.deleteAccountTooltip,placement:"top",children:t.jsx($t,{onClick:p=>{p.stopPropagation(),n()},"data-testid":$("delete-vendor-international-account-section",e.paymentInstrumentId),children:t.jsx(vt,{})})})})]})},mt=r.div`
73
+ `,pt=({paymentInstrument:e,onDeleteClick:n})=>{const s=v(),l=x.getLocalizedStrings().spendManagement.billPay.vendorCreation,m=t.jsx(mt,{children:e.piLabels.map(p=>t.jsxs(ut,{children:[t.jsxs(ht,{children:[p.name,l.colon]}),t.jsx(xt,{children:p.value})]},p.name))});return t.jsxs(yt,{size:s,children:[t.jsx(gt,{children:t.jsxs(G,{children:[e.displayText,t.jsx(S,{title:m,placement:"top",children:t.jsx(ft,{children:t.jsx(wt,{})})})]})}),t.jsx(bt,{children:t.jsx(S,{enterDelay:600,display:"flex",title:l.deleteAccountTooltip,placement:"top",children:t.jsx($t,{onClick:p=>{p.stopPropagation(),n()},"data-testid":$("delete-vendor-international-account-section",e.paymentInstrumentId),children:t.jsx(vt,{})})})})]})},mt=r.div`
74
74
  display: flex;
75
75
  flex-wrap: wrap;
76
76
  gap: ${o.sp1};
@@ -140,7 +140,7 @@ import{g as He,e as v,aG as Y,cT as Ye,V as t,bE as qe,ac as $,L as Ge,cy as ie,
140
140
  &:hover {
141
141
  color: ${z.important};
142
142
  }
143
- `,xe=(e,n)=>{const s=x.getLocalizedStrings().spendManagement.billPay.vendorCreation;switch(e){case"ach":return s.achDetails.ach;case"wire":switch(n){case"us-domestic":return s.wireDetails.domestic.domestic;case"international":return s.wireDetails.international.international;default:return""}default:return""}},G=({type:e,subType:n,vendorAccountDetails:s,vendorAccountDetailsInternational:l,onRemoveBankAccount:m,onAddNewAccountDetailClick:p})=>{const f=v(),[j,u]=g.useState(!1),[b,h]=g.useState(""),[C,k]=g.useState(!1),d=x.getLocalizedStrings().spendManagement.billPay.vendorCreation,A=i=>{h(i),u(!0)},B={onOkClick:()=>{u(!1),m(b,C)},onCancelClick:()=>{u(!1),h("")}},V=i=>e==="ach"||e==="wire"&&n==="us-domestic"?i.bankAccountNumber:e==="wire"&&n==="international"?i.bankAccountIban??"":"",E=i=>e==="ach"?i.bankRoutingNumberAch:e==="wire"&&n==="us-domestic"?i.bankRoutingNumberWireTransfer:e==="wire"&&n==="international"?i.bankSwiftCode??"":"",F=()=>e==="ach"?d.achDetails.bankRoutingNumber:e==="wire"&&n==="us-domestic"?d.wireDetails.bankRoutingNumber:e==="wire"&&n==="international"?d.wireDetails.international.swiftCode:"",O=()=>e==="ach"?d.achDetails.bankAccountNumber:e==="wire"&&n==="us-domestic"?d.wireDetails.accountNumber:e==="wire"&&n==="international"?d.wireDetails.international.iban:"",R=()=>e==="ach"||e==="wire"&&n==="us-domestic"?d.achDetails.accountTypeLabel:"";return t.jsxs(St,{children:[j===!0?t.jsx(ie,{titleComponent:t.jsx(le,{children:d.areYOuSure}),descriptionComponent:t.jsx(se,{children:d.ifYouSubmit}),primaryButtonText:d.delete,secondaryButtonText:d.cancel,action:B,isEditPopup:!0,proceedButtonVariant:"danger"}):null,t.jsx(Dt,{windowSize:f,children:`${xe(e,n)} ${d.accountsLabel}`}),s?.map(i=>t.jsx(oe,{children:t.jsx(tt,{bankName:i.bankName,accountType:i.bankAccountType??"",bankAccountNumberOrIban:V(i),routingNumberOrSwiftCode:E(i),routingNumberOrSwiftCodeLabel:F(),accountNumberOrIbanLabel:O(),accountTypeLabel:R(),accountName:i.bankAccountName,onDeleteClick:()=>A(i.bankAccountId)})},i.bankAccountId)),l?.map(i=>t.jsx(oe,{children:t.jsx(pt,{paymentInstrument:i,onDeleteClick:()=>{k(!0),A(i.paymentInstrumentId)}})},i.paymentInstrumentId)),t.jsx(jt,{onAddAccountDetailsSection:p,type:e,subType:n})]})},jt=({onAddAccountDetailsSection:e,type:n,subType:s})=>{const l=v(),m=x.getLocalizedStrings().spendManagement.billPay;return t.jsx(t.Fragment,{children:t.jsxs(kt,{windowSize:l,onClick:e,"data-testid":$("add-vendor-account",n),children:[t.jsx(Ct,{}),t.jsx(ce,{children:`${m.vendorCreation.addPrefix} ${xe(n,s)}`})]})})},Ct=r(me)`
143
+ `,xe=(e,n)=>{const s=x.getLocalizedStrings().spendManagement.billPay.vendorCreation;switch(e){case"ach":return s.achDetails.ach;case"wire":switch(n){case"us-domestic":return s.wireDetails.domestic.domestic;case"international":return s.wireDetails.international.international;default:return""}default:return""}},J=({type:e,subType:n,vendorAccountDetails:s,vendorAccountDetailsInternational:l,onRemoveBankAccount:m,onAddNewAccountDetailClick:p})=>{const f=v(),[j,u]=g.useState(!1),[b,h]=g.useState(""),[C,k]=g.useState(!1),c=x.getLocalizedStrings().spendManagement.billPay.vendorCreation,A=i=>{h(i),u(!0)},B={onOkClick:()=>{u(!1),m(b,C)},onCancelClick:()=>{u(!1),h("")}},V=i=>e==="ach"||e==="wire"&&n==="us-domestic"?i.bankAccountNumber:e==="wire"&&n==="international"?i.bankAccountIban??"":"",E=i=>e==="ach"?i.bankRoutingNumberAch:e==="wire"&&n==="us-domestic"?i.bankRoutingNumberWireTransfer:e==="wire"&&n==="international"?i.bankSwiftCode??"":"",F=()=>e==="ach"?c.achDetails.bankRoutingNumber:e==="wire"&&n==="us-domestic"?c.wireDetails.bankRoutingNumber:e==="wire"&&n==="international"?c.wireDetails.international.swiftCode:"",O=()=>e==="ach"?c.achDetails.bankAccountNumber:e==="wire"&&n==="us-domestic"?c.wireDetails.accountNumber:e==="wire"&&n==="international"?c.wireDetails.international.iban:"",R=()=>e==="ach"||e==="wire"&&n==="us-domestic"?c.achDetails.accountTypeLabel:"";return t.jsxs(St,{children:[j===!0?t.jsx(ie,{titleComponent:t.jsx(le,{children:c.areYOuSure}),descriptionComponent:t.jsx(se,{children:c.ifYouSubmit}),primaryButtonText:c.delete,secondaryButtonText:c.cancel,action:B,isEditPopup:!0,proceedButtonVariant:"danger"}):null,t.jsx(Dt,{windowSize:f,children:`${xe(e,n)} ${c.accountsLabel}`}),s?.map(i=>t.jsx(oe,{children:t.jsx(tt,{bankName:i.bankName,accountType:i.bankAccountType??"",bankAccountNumberOrIban:V(i),routingNumberOrSwiftCode:E(i),routingNumberOrSwiftCodeLabel:F(),accountNumberOrIbanLabel:O(),accountTypeLabel:R(),accountName:i.bankAccountName,onDeleteClick:()=>A(i.bankAccountId)})},i.bankAccountId)),l?.map(i=>t.jsx(oe,{children:t.jsx(pt,{paymentInstrument:i,onDeleteClick:()=>{k(!0),A(i.paymentInstrumentId)}})},i.paymentInstrumentId)),t.jsx(jt,{onAddAccountDetailsSection:p,type:e,subType:n})]})},jt=({onAddAccountDetailsSection:e,type:n,subType:s})=>{const l=v(),m=x.getLocalizedStrings().spendManagement.billPay;return t.jsx(t.Fragment,{children:t.jsxs(kt,{windowSize:l,onClick:e,"data-testid":$("add-vendor-account",n),children:[t.jsx(Ct,{}),t.jsx(de,{children:`${m.vendorCreation.addPrefix} ${xe(n,s)}`})]})})},Ct=r(me)`
144
144
  margin-right: ${o.sp2};
145
145
  width: ${o.sp3};
146
146
  height: ${o.sp3};
@@ -160,7 +160,7 @@ import{g as He,e as v,aG as Y,cT as Ye,V as t,bE as qe,ac as $,L as Ge,cy as ie,
160
160
  color: ${e=>e.theme.colors.primary};
161
161
  border: 1px solid ${e=>e.theme.colors.primary};
162
162
  }
163
- `,Dt=r(de)`
163
+ `,Dt=r(ce)`
164
164
  color: ${e=>e.theme.colors.primary};
165
165
  margin-bottom: ${o.sp2};
166
166
  `,oe=r.div``,St=r.div`
@@ -170,7 +170,7 @@ import{g as He,e as v,aG as Y,cT as Ye,V as t,bE as qe,ac as $,L as Ge,cy as ie,
170
170
  padding-bottom: ${o.sp2};
171
171
  margin-top: ${o.sp3};
172
172
  margin-bottom: ${o.sp3};
173
- `,At=({addressState:e,onUpdateMailingAddress:n})=>{const s=v(),l=x.getLocalizedStrings().spendManagement.billPay.vendorCreation;return t.jsxs(Et,{children:[t.jsxs(Vt,{windowSize:s,children:[`${l.mailingAddressLabel}`,t.jsx(Bt,{children:`${l.mailingAddressPlaceholder}`})]}),e!=null?t.jsxs(zt,{children:[Lt(e),t.jsx(S,{enterDelay:600,display:"flex",title:l.editMailingAddressTooltip,placement:"top",children:t.jsx(It,{"data-testid":$("edit-vendor-mailing-address"),onClick:()=>n("vendor_address"),children:t.jsx(Nt,{})})})]}):t.jsx(t.Fragment,{children:t.jsxs(Pt,{windowSize:s,"data-testid":$("add-vendor-mailing-address"),onClick:()=>n("vendor_address"),children:[t.jsx(Tt,{}),t.jsx(ce,{children:l.addMailingAddress})]})})]})},Lt=e=>[e.street[2],e.street[0],e.street[1],e.city,`${e.state} ${e.postalCode}`.trim(),e.countryCode??e.country].filter(Boolean).join(", "),It=r.div`
173
+ `,At=({addressState:e,onUpdateMailingAddress:n})=>{const s=v(),l=x.getLocalizedStrings().spendManagement.billPay.vendorCreation;return t.jsxs(Et,{children:[t.jsxs(Vt,{windowSize:s,children:[`${l.mailingAddressLabel}`,t.jsx(Bt,{children:`${l.mailingAddressPlaceholder}`})]}),e!=null?t.jsxs(zt,{children:[Lt(e),t.jsx(S,{enterDelay:600,display:"flex",title:l.editMailingAddressTooltip,placement:"top",children:t.jsx(It,{"data-testid":$("edit-vendor-mailing-address"),onClick:()=>n("vendor_address"),children:t.jsx(Nt,{})})})]}):t.jsx(t.Fragment,{children:t.jsxs(Pt,{windowSize:s,"data-testid":$("add-vendor-mailing-address"),onClick:()=>n("vendor_address"),children:[t.jsx(Tt,{}),t.jsx(de,{children:l.addMailingAddress})]})})]})},Lt=e=>[e.street[2],e.street[0],e.street[1],e.city,`${e.state} ${e.postalCode}`.trim(),e.countryCode??e.country].filter(Boolean).join(", "),It=r.div`
174
174
  width: ${o.sp3};
175
175
  svg {
176
176
  display: none;
@@ -203,7 +203,7 @@ import{g as He,e as v,aG as Y,cT as Ye,V as t,bE as qe,ac as $,L as Ge,cy as ie,
203
203
  color: ${e=>e.theme.colors.primary};
204
204
  border: 1px solid ${e=>e.theme.colors.primary};
205
205
  }
206
- `,zt=r(K)`
206
+ `,zt=r(G)`
207
207
  margin-top: ${o.sp2};
208
208
  padding: ${o.sp3} ${o.sp4};
209
209
  background-color: ${e=>e.theme.colors.grey5};
@@ -226,7 +226,7 @@ import{g as He,e as v,aG as Y,cT as Ye,V as t,bE as qe,ac as $,L as Ge,cy as ie,
226
226
  `,Bt=r(pe)`
227
227
  color: ${e=>e.theme.colors.grey1};
228
228
  transform: translateY(${o.sp1});
229
- `,Vt=r(de)`
229
+ `,Vt=r(ce)`
230
230
  color: ${e=>e.theme.colors.primary};
231
231
  margin-bottom: ${o.sp2};
232
232
  display: flex;
@@ -240,7 +240,7 @@ import{g as He,e as v,aG as Y,cT as Ye,V as t,bE as qe,ac as $,L as Ge,cy as ie,
240
240
  padding-bottom: ${o.sp2};
241
241
  margin-top: ${o.sp3};
242
242
  margin-bottom: ${o.sp3};
243
- `,re="createVendorPage",ne=e=>`${e}_form`,P={containerPaddingLeft:new q(w[3],w[6],w[6]),containerPaddingRight:new q(w[3],w[6],w[8]),buttonWidth:new q(125,125)},Ft=r.div`
243
+ `,re="createVendorPage",ne=e=>`${e}_form`,P={containerPaddingLeft:new Y(w[3],w[6],w[6]),containerPaddingRight:new Y(w[3],w[6],w[8]),buttonWidth:new Y(125,125)},Ft=r.div`
244
244
  display: flex;
245
245
  flex-direction: column;
246
246
  overflow: auto;
@@ -278,4 +278,4 @@ import{g as He,e as v,aG as Y,cT as Ye,V as t,bE as qe,ac as $,L as Ge,cy as ie,
278
278
  display: flex;
279
279
  flex-direction: column;
280
280
  padding-top: ${o.sp11};
281
- `,y=x.getLocalizedStrings().spendManagement.billPay.vendorCreation,_t=x.getLocalizedStrings().common.footer,ae=x.getLocalizedStrings().common.currency,oo=({vendorViewDetails:e,vendorId:n,screenType:s,analytics:l,filesEndPoint:m,authParams:p,vendorSearchAutoCompleteData:f,vendorSearchAutoCompleteActions:j,isLocalCurrencyEnabled:u,onBackClick:b,onVendorSelected:h,navigateToBankDetailPage:C,updateSelectedVendorForCreate:k,onRemoveBankAccount:d,updateSaveFetchState:A,onSaveVendor:B,navigateToMailingAddressPage:V,saveVendorDetailLocalData:E,resetVendorDetailLocalData:F,saveContactsInVendorDetailLocalData:O,updateFilesEntity:R,onEditFileName:i,onFetchAndUpdateVendorRecommendations:ge})=>{const{accountList:{accounts:be},classList:{classes:ye},vendorTypeList:$e,ownerList:fe,editVendorState:J,newVendorState:Q,fetchState:we,hasWireTransfer:Z,hasInternationalWireTransfer:M,deleteFileStatusById:ve,updateFileStatusById:je,accountsHierarchyList:Ce,classHierarchyList:ke}=e,L=n!=null?J?.vendorDetailLocalData:Q?.vendorDetailLocalData,c=Object.assign({},J??Q),De=He(),D=v(),[Se,U]=g.useState(!1),[Ae,W]=g.useState(!1),X=s==="create"?y.newVendorTitle:y.editVendor,Le=(c.bankAccountsUpdated??[]).map(a=>a.bankAccountId).sort(),Ie=(c.vendorBasic?.bankAccounts??[]).map(a=>a.bankAccountId).sort(),Ne=!Y(Le,Ie),Te=(c.paymentInstrumentsUpdated??[]).map(a=>a.paymentInstrumentId).sort(),Pe=(c.vendorBasic?.paymentInstruments??[]).map(a=>a.paymentInstrumentId).sort(),ze=!Y(Te,Pe),Be=(L?.contacts??[]).filter(a=>a.email!==""||a.fullName!==""||a.phone!=="").map(a=>Ye(a,"contactInfoType")),Ve=c.vendorBasic?.contacts??[],Ee=!Y(Be,Ve),Fe=c.bankAccountsUpdated.filter(a=>!!a.bankRoutingNumberAch),Oe=c.bankAccountsUpdated.filter(a=>!!a.bankRoutingNumberWireTransfer),Re=c.paymentInstrumentsUpdated.filter(a=>!!a.piNumber),ee=()=>{W(!0)},Me=a=>{U(a)},Ue={onOkClick:()=>{W(!1),U(!1),F?.(),b()},onCancelClick:()=>{W(!1),U(!1)}},_=g.useRef(null),We=a=>{_.current?.syncFormData(),V(a)},H=(a,_e)=>{_.current?.syncFormData(),C(a,_e)};g.useEffect(()=>{c?.saveStatus?.fetchState==="Completed"&&(A(),b())},[c]);const te=g.useRef(null);return t.jsxs(Ft,{windowSize:D,children:[t.jsx(qe,{"data-testid":$("vendor-detail-container-nav-bar"),title:X,backgroundColor:De.colors.grey4,leftSideComponent:t.jsx(Ut,{onClick:ee,"data-testid":$("create-edit-vendor-nav-bar-back")}),enableTitleOnScroll:!0,scrollableContent:te,source:"CreateOrEditVendorPage"}),t.jsxs(Ot,{windowSize:D,ref:te,children:[we==="In-Progress"?t.jsx(Rt,{children:t.jsx(Ge,{size:"ExtraLarge",start:!0})}):t.jsxs(t.Fragment,{children:[Se===!0?t.jsx(ie,{titleComponent:t.jsx(le,{children:y.discardTitle}),descriptionComponent:t.jsx(se,{children:y.discardDescription}),primaryButtonText:y.discard,secondaryButtonText:y.cancel,action:Ue}):null,D!=="small"?t.jsx(Mt,{children:X}):null,t.jsx(Ke,{ref:_,id:ne(re),allAccounts:be,allClasses:ye,accountsHierarchyList:Ce,classHierarchyList:ke,vendorTypeList:$e,allOwners:fe,vendorSearchAutoCompleteData:f,vendorSearchAutoCompleteActions:j,onVendorSelected:h,screenType:s,hasInternationalWireTransfer:M,selectedVendor:c,formLocalData:L,isBankAccountChanged:Ne,isContactListChanged:Ee,isPaymentInstrumentChanged:ze,analytics:l,pageBackBtnClicked:Ae,onBackClick:b,onSaveVendor:B,saveContactsInVendorDetailLocalData:O,updateSelectedVendorForCreate:k,saveVendorDetailLocalData:E,updateFilesEntity:R,toggleConfirmationPopup:Me,filesEndPoint:m,authParams:p,onEditFileName:i,deleteFileStatusById:ve,updateFileStatusById:je,onFetchAndUpdateVendorRecommendations:ge,isLocalCurrencyEnabled:u}),Z||M?t.jsx(At,{addressState:c.vendorNewAddressStatus?.addressToCreate,onUpdateMailingAddress:We}):null,c.vendorDetailLocalData?.currencyCode==null||c.vendorDetailLocalData?.currencyCode===ae.currencyCode?t.jsx(G,{type:"ach",vendorAccountDetails:Fe,onAddNewAccountDetailClick:()=>H("ach","standard"),onRemoveBankAccount:d}):null,Z&&(c.vendorDetailLocalData?.currencyCode==null||c.vendorDetailLocalData?.currencyCode===ae.currencyCode)?t.jsx(G,{type:"wire",subType:"us-domestic",vendorAccountDetails:Oe,onAddNewAccountDetailClick:()=>H("wire","us-domestic"),onRemoveBankAccount:d}):null,M&&(L?.countryCode!=null&&L.countryCode!=="US"||u)?t.jsx(G,{type:"wire",subType:"international",vendorAccountDetailsInternational:Re,isLocalCurrencyEnabled:u,onAddNewAccountDetailClick:()=>H("wire","international"),onRemoveBankAccount:d}):null]}),t.jsx(Wt,{})]}),t.jsx(Je,{formId:ne(re),primaryBtn:{label:y.saveDetails,isLoading:c.saveStatus?.fetchState==="In-Progress",style:{width:P.buttonWidth.value(D)},isDisabled:!1},cancelBtn:{label:_t.cancel,style:{width:P.buttonWidth.value(D)},shouldResetOnCancel:!1,onClick:ee}})]})};export{oo as default,ne as formUniqueName};
281
+ `,y=x.getLocalizedStrings().spendManagement.billPay.vendorCreation,_t=x.getLocalizedStrings().common.footer,ae=x.getLocalizedStrings().common.currency,oo=({vendorViewDetails:e,vendorId:n,screenType:s,analytics:l,filesEndPoint:m,authParams:p,vendorSearchAutoCompleteData:f,vendorSearchAutoCompleteActions:j,isLocalCurrencyEnabled:u,onBackClick:b,onVendorSelected:h,navigateToBankDetailPage:C,updateSelectedVendorForCreate:k,onRemoveBankAccount:c,updateSaveFetchState:A,onSaveVendor:B,navigateToMailingAddressPage:V,saveVendorDetailLocalData:E,resetVendorDetailLocalData:F,saveContactsInVendorDetailLocalData:O,updateFilesEntity:R,onEditFileName:i,onFetchAndUpdateVendorRecommendations:ge})=>{const{accountList:{accounts:be},classList:{classes:ye},vendorTypeList:$e,ownerList:fe,editVendorState:K,newVendorState:Q,fetchState:we,hasWireTransfer:Z,hasInternationalWireTransfer:M,deleteFileStatusById:ve,updateFileStatusById:je,accountsHierarchyList:Ce,classHierarchyList:ke}=e,L=n!=null?K?.vendorDetailLocalData:Q?.vendorDetailLocalData,d=Object.assign({},K??Q),De=He(),D=v(),[Se,U]=g.useState(!1),[Ae,W]=g.useState(!1),X=s==="create"?y.newVendorTitle:y.editVendor,Le=(d.bankAccountsUpdated??[]).map(a=>a.bankAccountId).sort(),Ie=(d.vendorBasic?.bankAccounts??[]).map(a=>a.bankAccountId).sort(),Ne=!q(Le,Ie),Te=(d.paymentInstrumentsUpdated??[]).map(a=>a.paymentInstrumentId).sort(),Pe=(d.vendorBasic?.paymentInstruments??[]).map(a=>a.paymentInstrumentId).sort(),ze=!q(Te,Pe),Be=(L?.contacts??[]).filter(a=>a.email!==""||a.fullName!==""||a.phone!=="").map(a=>qe(a,"contactInfoType")),Ve=d.vendorBasic?.contacts??[],Ee=!q(Be,Ve),Fe=d.bankAccountsUpdated.filter(a=>!!a.bankRoutingNumberAch),Oe=d.bankAccountsUpdated.filter(a=>!!a.bankRoutingNumberWireTransfer),Re=d.paymentInstrumentsUpdated.filter(a=>!!a.piNumber),ee=()=>{W(!0)},Me=a=>{U(a)},Ue={onOkClick:()=>{W(!1),U(!1),F?.(),b()},onCancelClick:()=>{W(!1),U(!1)}},_=g.useRef(null),We=a=>{_.current?.syncFormData(),V(a)},H=(a,_e)=>{_.current?.syncFormData(),C(a,_e)};g.useEffect(()=>{d?.saveStatus?.fetchState==="Completed"&&(A(),b())},[d]);const te=g.useRef(null);return t.jsxs(Ft,{windowSize:D,children:[t.jsx(Ye,{"data-testid":$("vendor-detail-container-nav-bar"),title:X,backgroundColor:De.colors.grey4,leftSideComponent:t.jsx(Ut,{onClick:ee,"data-testid":$("create-edit-vendor-nav-bar-back")}),enableTitleOnScroll:!0,scrollableContent:te,source:"CreateOrEditVendorPage"}),t.jsxs(Ot,{windowSize:D,ref:te,children:[we==="In-Progress"?t.jsx(Rt,{children:t.jsx(Je,{size:"ExtraLarge",start:!0})}):t.jsxs(t.Fragment,{children:[Se===!0?t.jsx(ie,{titleComponent:t.jsx(le,{children:y.discardTitle}),descriptionComponent:t.jsx(se,{children:y.discardDescription}),primaryButtonText:y.discard,secondaryButtonText:y.cancel,action:Ue}):null,D!=="small"?t.jsx(Mt,{children:X}):null,t.jsx(Ge,{ref:_,id:ne(re),allAccounts:be,allClasses:ye,accountsHierarchyList:Ce,classHierarchyList:ke,vendorTypeList:$e,allOwners:fe,vendorSearchAutoCompleteData:f,vendorSearchAutoCompleteActions:j,onVendorSelected:h,screenType:s,hasInternationalWireTransfer:M,selectedVendor:d,formLocalData:L,isBankAccountChanged:Ne,isContactListChanged:Ee,isPaymentInstrumentChanged:ze,analytics:l,pageBackBtnClicked:Ae,onBackClick:b,onSaveVendor:B,saveContactsInVendorDetailLocalData:O,updateSelectedVendorForCreate:k,saveVendorDetailLocalData:E,updateFilesEntity:R,toggleConfirmationPopup:Me,filesEndPoint:m,authParams:p,onEditFileName:i,deleteFileStatusById:ve,updateFileStatusById:je,onFetchAndUpdateVendorRecommendations:ge,isLocalCurrencyEnabled:u}),Z||M?t.jsx(At,{addressState:d.vendorNewAddressStatus?.addressToCreate,onUpdateMailingAddress:We}):null,d.vendorDetailLocalData?.currencyCode==null||d.vendorDetailLocalData?.currencyCode===ae.currencyCode?t.jsx(J,{type:"ach",vendorAccountDetails:Fe,onAddNewAccountDetailClick:()=>H("ach","standard"),onRemoveBankAccount:c}):null,Z&&(d.vendorDetailLocalData?.currencyCode==null||d.vendorDetailLocalData?.currencyCode===ae.currencyCode)?t.jsx(J,{type:"wire",subType:"us-domestic",vendorAccountDetails:Oe,onAddNewAccountDetailClick:()=>H("wire","us-domestic"),onRemoveBankAccount:c}):null,M&&(L?.countryCode!=null&&L.countryCode!=="US"||u)?t.jsx(J,{type:"wire",subType:"international",vendorAccountDetailsInternational:Re,isLocalCurrencyEnabled:u,onAddNewAccountDetailClick:()=>H("wire","international"),onRemoveBankAccount:c}):null]}),t.jsx(Wt,{})]}),t.jsx(Ke,{formId:ne(re),primaryBtn:{label:y.saveDetails,isLoading:d.saveStatus?.fetchState==="In-Progress",style:{width:P.buttonWidth.value(D)},isDisabled:!1},cancelBtn:{label:_t.cancel,style:{width:P.buttonWidth.value(D)},shouldResetOnCancel:!1,onClick:ee}})]})};export{oo as default,ne as formUniqueName};
@@ -1,4 +1,4 @@
1
- import{V as t,e as he,a9 as ge,ac as ae,hJ as ea,aQ as aa,a as ta,L as na,aT as ze,o as a,O as K,x as m,b as Me,n as oa,aj as ia,g as Be,c0 as ra,fx as _e,N as H,d as J,gC as ce,w as la,as as Oe,c as ca,aS as we,aa as sa,fO as da,cQ as ma,ae as pa,fg as ua,fS as ha,cX as ga,hX as De,hY as ya,gq as fa,u as r,cb as Ca,bb as ba,fC as xa,cq as wa,an as Ne,h9 as Da,c9 as Sa,aW as $a,hZ as ka,da as Aa,ha as La,g2 as va,f_ as Ia}from"./index-aCBnCBoN.js";import{n as i}from"./mui-BosmckWV.js";import{a as p}from"./sentry-DzaNjvx0.js";import{bL as pe,bZ as Fa,bh as Se,bJ as Ra,bK as $e,bI as Ta}from"./zeni-epic-state-BNpJ2txa.js";import{x as Pa}from"./LabeledControlledCheckBoxField-BtnsqE4D-CLMK-CUC.js";import"./liveblocks-CEY7tsth.js";import"./core-Cjh03OPu.js";import"./recharts-CimMNwCJ.js";import"./lottie-BmLFYENY.js";import"./analytics-B_VWX-BQ.js";import"./lexical-9REae7LV.js";import"./utils-THjX-QSp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="3f7873f2-8161-43c1-b80e-339f14bf3460",e._sentryDebugIdIdentifier="sentry-dbid-3f7873f2-8161-43c1-b80e-339f14bf3460")}catch{}})();const te={largeLabelWidth:new m(120,120,160),navBarContainerPaddingXaxis:new m(10,19),containerPaddingLeft:new m(r[3],r[6],r[8]),containerPaddingRight:new m(r[3],r[6],r[8]),reviewContentWrapperPaddingBottom:new m(r[5],r[8])},ue={pageTitle:new H("h6Regular","h5Regular"),integerAmountInput:new H("h5Regular","largeMedium"),decimalAmountInput:new H("largeSemiBold","largeMedium")},{dateFormat:{visual:{MMMDCommaYYYYformat:ke}},common:{edit:ja,labels:se,navBar:{back:Ea},to:za,zeniInc:Ma},spendManagement:{zeniAccounts:{zeniAccountList:{transferDrawer:Ba}},chargeCard:{payEarly:z}}}=K.getLocalizedStrings(),_a=({paymentDetails:e,isCashbackInfoFetchStateCompleted:o,isCreditCardInfoFetchStateCompleted:h,isDebitCardInfoFetchStateCompleted:n,controllerEmails:f,productInformation:c,cashbackInformation:g,paymentSourceInformation:L,creditAccountInformation:C,debitAccountInformation:y,setShowReviewContent:x,onTransferClick:b})=>{const d=he(),S=Be(),v=ge().analytics,[B,I]=p.useState(!1);p.useEffect(()=>{e.error!=null?I(!0):I(!1)},[e.error]);const F=te.largeLabelWidth.value(d),R=e.chargeCardRepaymentDetailLocalData.transferFrom?.accType==="depositAccount",T=R?1:3,P=pe(Fa(Se().toDate(),[0,6],T).toDateString()).format(ke),_=R?z.timeline01BusinessDay:z.timeline23BusinessDays,O=R?z.estimatedPaymentCompleteWithoutTimeline.replace("__date__",P):z.estimatedPaymentCompleteWithTimeline.replace("__date__",P).replace("__timeline__",_);return t.jsxs(t.Fragment,{children:[t.jsxs(Ga,{windowSize:d,children:[t.jsx(tt,{windowSize:d,children:t.jsx(ra,{title:Ea,enterTouchDelay:600,placement:"bottom",display:"flex",children:t.jsx(at,{"data-testid":ae("nav-bar-back-credit-card-payment-review"),onClick:()=>{o&&h&&n&&g!=null&&v.trackCardsPayEarlyFormClick(f,c,g,"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},L,C,y),x(!1)}})})}),t.jsx(nt,{windowSize:d,children:Ba.reviewAndConfirm}),t.jsxs(Na,{children:[z.pay," ",t.jsx(Ae,{children:t.jsx(_e,{amount:e.chargeCardRepaymentDetailLocalData.amount,integerStyles:ue.integerAmountInput.styleObject(d),decimalStyles:ue.decimalAmountInput.styleObject(d),style:{display:"inline-flex"}})})," ",za," ",t.jsx(Ae,{children:Ma})]}),B?t.jsx(Xa,{children:t.jsxs(Ya,{children:[t.jsxs(Ha,{children:[t.jsx(Ja,{}),t.jsxs(Va,{children:[t.jsx(qa,{children:e.error?.title}),t.jsx(Za,{children:e.error?.message})]})]}),t.jsx(Ka,{children:t.jsx(Qa,{"data-testid":ae("close-error-credit-card-payment-review"),onClick:()=>{I(!1)},style:{width:a.sp3,height:a.sp3,color:J.heroLight}})})]})}):null,t.jsx(et,{windowSize:d,children:t.jsxs(Ua,{children:[t.jsx(ce,{label:{label:se.paymentMethod,width:F},text:t.jsx(de,{windowSize:d,children:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType==="depositAccount"?z.bookPayment:z.sameDayACH}),style:{width:"auto"}}),t.jsx(Le,{}),t.jsx(ce,{label:{label:se.sourceAccount,width:F},text:t.jsxs(de,{windowSize:d,children:[We(e.transferFromAccounts,e.chargeCardRepaymentDetailLocalData.transferFrom?.id??"",!0),t.jsxs(Wa,{windowSize:d,children:[e.chargeCardRepaymentDetailLocalData.transferFrom?.label,e.chargeCardRepaymentDetailLocalData.transferFrom?.maskedAccountNumber!=null?` ${e.chargeCardRepaymentDetailLocalData.transferFrom.maskedAccountNumber}`:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4!=null?` •••• ${e.chargeCardRepaymentDetailLocalData.transferFrom.accountLast4}`:null]})]}),style:{width:"auto"}}),t.jsx(Le,{}),t.jsx(ce,{label:{label:se.paymentDate,width:F},showAdditionalInfoLabel:!0,additionalInfoLabel:O,additionalInfoLabelStyles:{color:S.colors.hero,...la.smallRegular.cssObject},text:t.jsx(de,{windowSize:d,children:Se().format(ke)}),style:{width:"auto"}})]})})]}),t.jsx(ze,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp0},helperText:z.byClickingPayNowIAuthorizeZeniToInitiateThePayment,helperStyle:{padding:`${a.sp0} ${a.sp0} ${a.sp3} ${a.sp0}`},cancelBtn:{label:ja,onClick:()=>{o&&h&&n&&g!=null&&v.trackCardsPayEarlyFormClick(f,c,g,"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},L,C,y),x(!1)},style:{minWidth:94}},primaryBtn:{label:z.payNow,onClick:b,isLoading:e.updateStatus==="In-Progress",style:{minWidth:94}}})]})},We=(e,o,h)=>{if(o==="")return t.jsx(st,{});const n=e.find(c=>c.id===o),f=e.findIndex(c=>c.id===o);if(n!=null){if(n.accType==="depositAccount")return t.jsx(lt,{isOptionSelected:h,children:t.jsx(ct,{color:Da(f)})});if(n.accType==="paymentAccount")return n.logo!==void 0&&(n.logo.base64||n.logo.url)?t.jsx(ot,{src:Oa(n.logo),isOptionSelected:h,loading:"lazy"}):t.jsx(it,{isOptionSelected:h,children:t.jsx(rt,{})})}return null},Oa=e=>e.base64!==void 0?`${va}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Na=i(ba)`
1
+ import{V as t,e as he,a9 as ge,ac as ae,hJ as ea,aQ as aa,a as ta,L as na,aT as ze,o as a,O as K,x as m,b as Me,n as oa,aj as ia,g as Be,c1 as ra,fx as _e,N as H,d as J,gC as ce,w as la,as as Oe,c as ca,aS as we,aa as sa,fO as da,cQ as ma,ae as pa,fg as ua,fS as ha,cX as ga,hX as De,hY as ya,gq as fa,u as r,cc as Ca,bb as ba,fC as xa,cq as wa,an as Ne,h9 as Da,ca as Sa,aW as $a,hZ as ka,da as Aa,ha as La,g2 as va,f_ as Ia}from"./index-B8J3c9-k.js";import{n as i}from"./mui-B_fu8zAT.js";import{a as p}from"./sentry-xNvKSthz.js";import{bL as pe,bZ as Fa,bh as Se,bJ as Ra,bK as $e,bI as Ta}from"./zeni-epic-state-SAYXyeZn.js";import{x as Pa}from"./LabeledControlledCheckBoxField-BEpAlnvo-BghNAEyy.js";import"./liveblocks-CN5hALk7.js";import"./core-C_RwbDgZ.js";import"./recharts-BkmpOx_p.js";import"./lottie-B-zs781A.js";import"./analytics-TwdLweES.js";import"./lexical-DZ4skawM.js";import"./utils-4bW-VyLb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="6856dd29-6e2c-403b-b336-c11c8c0a1d25",e._sentryDebugIdIdentifier="sentry-dbid-6856dd29-6e2c-403b-b336-c11c8c0a1d25")}catch{}})();const te={largeLabelWidth:new m(120,120,160),navBarContainerPaddingXaxis:new m(10,19),containerPaddingLeft:new m(r[3],r[6],r[8]),containerPaddingRight:new m(r[3],r[6],r[8]),reviewContentWrapperPaddingBottom:new m(r[5],r[8])},ue={pageTitle:new H("h6Regular","h5Regular"),integerAmountInput:new H("h5Regular","largeMedium"),decimalAmountInput:new H("largeSemiBold","largeMedium")},{dateFormat:{visual:{MMMDCommaYYYYformat:ke}},common:{edit:ja,labels:se,navBar:{back:Ea},to:za,zeniInc:Ma},spendManagement:{zeniAccounts:{zeniAccountList:{transferDrawer:Ba}},chargeCard:{payEarly:z}}}=K.getLocalizedStrings(),_a=({paymentDetails:e,isCashbackInfoFetchStateCompleted:o,isCreditCardInfoFetchStateCompleted:h,isDebitCardInfoFetchStateCompleted:n,controllerEmails:f,productInformation:c,cashbackInformation:g,paymentSourceInformation:L,creditAccountInformation:C,debitAccountInformation:y,setShowReviewContent:x,onTransferClick:b})=>{const d=he(),S=Be(),v=ge().analytics,[B,I]=p.useState(!1);p.useEffect(()=>{e.error!=null?I(!0):I(!1)},[e.error]);const F=te.largeLabelWidth.value(d),R=e.chargeCardRepaymentDetailLocalData.transferFrom?.accType==="depositAccount",T=R?1:3,P=pe(Fa(Se().toDate(),[0,6],T).toDateString()).format(ke),_=R?z.timeline01BusinessDay:z.timeline23BusinessDays,O=R?z.estimatedPaymentCompleteWithoutTimeline.replace("__date__",P):z.estimatedPaymentCompleteWithTimeline.replace("__date__",P).replace("__timeline__",_);return t.jsxs(t.Fragment,{children:[t.jsxs(Ga,{windowSize:d,children:[t.jsx(tt,{windowSize:d,children:t.jsx(ra,{title:Ea,enterTouchDelay:600,placement:"bottom",display:"flex",children:t.jsx(at,{"data-testid":ae("nav-bar-back-credit-card-payment-review"),onClick:()=>{o&&h&&n&&g!=null&&v.trackCardsPayEarlyFormClick(f,c,g,"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},L,C,y),x(!1)}})})}),t.jsx(nt,{windowSize:d,children:Ba.reviewAndConfirm}),t.jsxs(Na,{children:[z.pay," ",t.jsx(Ae,{children:t.jsx(_e,{amount:e.chargeCardRepaymentDetailLocalData.amount,integerStyles:ue.integerAmountInput.styleObject(d),decimalStyles:ue.decimalAmountInput.styleObject(d),style:{display:"inline-flex"}})})," ",za," ",t.jsx(Ae,{children:Ma})]}),B?t.jsx(Xa,{children:t.jsxs(Ya,{children:[t.jsxs(Ha,{children:[t.jsx(Ja,{}),t.jsxs(Va,{children:[t.jsx(Za,{children:e.error?.title}),t.jsx(qa,{children:e.error?.message})]})]}),t.jsx(Ka,{children:t.jsx(Qa,{"data-testid":ae("close-error-credit-card-payment-review"),onClick:()=>{I(!1)},style:{width:a.sp3,height:a.sp3,color:J.heroLight}})})]})}):null,t.jsx(et,{windowSize:d,children:t.jsxs(Ua,{children:[t.jsx(ce,{label:{label:se.paymentMethod,width:F},text:t.jsx(de,{windowSize:d,children:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType==="depositAccount"?z.bookPayment:z.sameDayACH}),style:{width:"auto"}}),t.jsx(Le,{}),t.jsx(ce,{label:{label:se.sourceAccount,width:F},text:t.jsxs(de,{windowSize:d,children:[We(e.transferFromAccounts,e.chargeCardRepaymentDetailLocalData.transferFrom?.id??"",!0),t.jsxs(Wa,{windowSize:d,children:[e.chargeCardRepaymentDetailLocalData.transferFrom?.label,e.chargeCardRepaymentDetailLocalData.transferFrom?.maskedAccountNumber!=null?` ${e.chargeCardRepaymentDetailLocalData.transferFrom.maskedAccountNumber}`:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4!=null?` •••• ${e.chargeCardRepaymentDetailLocalData.transferFrom.accountLast4}`:null]})]}),style:{width:"auto"}}),t.jsx(Le,{}),t.jsx(ce,{label:{label:se.paymentDate,width:F},showAdditionalInfoLabel:!0,additionalInfoLabel:O,additionalInfoLabelStyles:{color:S.colors.hero,...la.smallRegular.cssObject},text:t.jsx(de,{windowSize:d,children:Se().format(ke)}),style:{width:"auto"}})]})})]}),t.jsx(ze,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp0},helperText:z.byClickingPayNowIAuthorizeZeniToInitiateThePayment,helperStyle:{padding:`${a.sp0} ${a.sp0} ${a.sp3} ${a.sp0}`},cancelBtn:{label:ja,onClick:()=>{o&&h&&n&&g!=null&&v.trackCardsPayEarlyFormClick(f,c,g,"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},L,C,y),x(!1)},style:{minWidth:94}},primaryBtn:{label:z.payNow,onClick:b,isLoading:e.updateStatus==="In-Progress",style:{minWidth:94}}})]})},We=(e,o,h)=>{if(o==="")return t.jsx(st,{});const n=e.find(c=>c.id===o),f=e.findIndex(c=>c.id===o);if(n!=null){if(n.accType==="depositAccount")return t.jsx(lt,{isOptionSelected:h,children:t.jsx(ct,{color:Da(f)})});if(n.accType==="paymentAccount")return n.logo!==void 0&&(n.logo.base64||n.logo.url)?t.jsx(ot,{src:Oa(n.logo),isOptionSelected:h,loading:"lazy"}):t.jsx(it,{isOptionSelected:h,children:t.jsx(rt,{})})}return null},Oa=e=>e.base64!==void 0?`${va}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Na=i(ba)`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  padding-top: ${a.sp3};
4
4
  white-space: nowrap;
@@ -29,9 +29,9 @@ import{V as t,e as he,a9 as ge,ac as ae,hJ as ea,aQ as aa,a as ta,L as na,aT as
29
29
  display: flex;
30
30
  flex-direction: column;
31
31
  margin-left: ${a.sp2};
32
- `,qa=i(wa)`
32
+ `,Za=i(wa)`
33
33
  color: ${J.important};
34
- `,Za=i(Ne)`
34
+ `,qa=i(Ne)`
35
35
  color: ${J.important};
36
36
  `,Xa=i.div`
37
37
  margin-top: ${a.sp3};
@@ -129,7 +129,7 @@ import{V as t,e as he,a9 as ge,ac as ae,hJ as ea,aQ as aa,a as ta,L as na,aT as
129
129
  margin-right: 12px;
130
130
  margin-left: ${a.sp1};
131
131
  color: ${e=>e.theme.colors.hero};
132
- `,{common:me,spendManagement:{zeniAccounts:{zeniAccountList:dt},billPay:{insufficientFunds:mt},chargeCard:{payEarly:G}},commonSetUp:{setUp:{accountsPlg:ie}}}=K.getLocalizedStrings(),Ue="amount",pt="withdrawFrom",Y="paymentDetails",Ye="creditCardPaymentPage",re=(e,o)=>`${e}.${o}`,Ve=e=>`${e}_form`,D={largeLabelWidth:new m(120,120,160),labelMarginLeftPicker:new m(r[3],r[4]),labelMarginRightPicker:new m(r[3],r[4]),labelMarginTopPicker:new m(r[2],r[2]),labeledFieldPaddingLeft:new m(r[2],r[0]),labeledFieldPaddingRight:new m(r[2],r[2]),labeledFieldPaddingTop:new m(r[2],r[2]),labeledFieldPaddingBottom:new m(r[2],r[2]),infoLabelPaddingRight:new m(r[0],r[3]),infoLabelMarginTop:new m(r[1],r[0]),checkBoxTop:new m(r[1],r[0])},ve={integerAmountInput:new H("h5Regular","h2Regular"),decimalAmountInput:new H("largeSemiBold","h5Medium")};function ut({autoPayThreshold:e,plaidConnectionDetails:o,maxInsuredAmount:h,paymentDetails:n,lowBalanceAdditionalInfo:f,paymentAccount:c,isAccountsEnabled:g,onSaveChangesToLocalStore:L,onUpdatePaymentAccountStatus:C,onEstablishConnectionClick:y,onEstablishConnectionSuccess:x,onFetchLinkTokenClick:b,setShowReviewLoading:d,onSignUpAccountClick:S,onMoveMoneyClick:v,isCashbackInfoFetchStateCompleted:B,isCreditCardInfoFetchStateCompleted:I,isDebitCardInfoFetchStateCompleted:F,controllerEmails:R,productInformation:T,cashbackInformation:P,paymentSourceInformation:_,creditAccountInformation:O,debitAccountInformation:Q}){const s=he(),ee=Be(),oe=D.largeLabelWidth.value(s),$=ge().analytics,N=p.useRef(null),[W,U]=p.useState(!1),[A,V]=p.useState(void 0),w=o.link_account,q=o.update_account,k=A==="update_account"?q:w,[Z,ye]=p.useState(k.linkToken??null),fe=we(w.updateStatus.fetchState),X=sa({mode:"all",reValidateMode:"onBlur",defaultValues:p.useMemo(()=>Ie(n),[n]),values:p.useMemo(()=>Ie(n),[n])}),Ce=c?.isLoginRequired??!1,j=c?.providerVerificationStatus?.code,be=we(q.updateStatus.fetchState),qe=p.useCallback((l,u)=>{const E=u.accounts.find(Qe=>Qe.id===c?.providerAccountId)??u.accounts[0];c?.paymentAccountId!=null&&A==="update_account"&&E?.verification_status!=null&&!Ce?C(E?.verification_status,c.paymentAccountId,"update_account"):y?.(l,A),V(void 0),U(!1)},[c?.paymentAccountId,c?.providerAccountId,A,Ce,C,y]),Ze=p.useCallback((l,u)=>{l!=null&&(l.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&c?.paymentAccountId!=null&&C("verification_failed",c.paymentAccountId,"update_account"),console.log("Plaid Connection Error",l,u)),V(void 0),U(!1)},[c?.paymentAccountId,C]),{open:le,ready:xe}=da({token:Z,onSuccess:qe,onExit:Ze});p.useEffect(()=>{(fe==="In-Progress"&&w.updateStatus.fetchState==="Completed"||be==="In-Progress"&&q.updateStatus.fetchState==="Completed")&&(Ra(j??"")||(b?.("link_account"),x()))},[w.updateStatus.fetchState,x,b,fe,be,q.updateStatus.fetchState,j]),p.useEffect(()=>{($e(j??"")||j==="verification_failed")&&!W&&A!=null&&k.linkToken===Z&&k.fetchStatus.fetchState==="Completed"&&xe&&U(!0)},[xe,Z,k.fetchStatus.fetchState,k.linkToken,j,A,W]),p.useEffect(()=>{k.fetchStatus.fetchState==="Completed"&&k.linkToken!=null&&k.linkToken!==Z&&ye(k.linkToken)},[k.fetchStatus.fetchState,k.linkToken,Z]),p.useEffect(()=>{W&&le()},[W,le]),p.useEffect(()=>{(j==null||j==="verification_failed"||j==="verification_expired"||$e(j))&&(pe(new Date().toISOString()).isAfter(w.expiration)||w.linkToken==null)&&b?.("link_account")},[]);const{isValid:Xe}=X.formState,Ge=async(l,u)=>{if(l!=null){if(l.includes("amount"))return;const E=Fe(u,n.transferFromAccounts,n.chargeCardRepaymentDetailLocalData.idempotencyKey);L(E)}},He=l=>{if(f!=null)return f;const u=n.transferFromAccounts.find(E=>E.id===l);return u?.accountBalance?.available!=null&&Ta(n.chargeCardRepaymentDetailLocalData.amount,u?.accountBalance?.available)?mt.addMoney:""};p.useEffect(()=>{const l=X.watch((u,{name:E})=>{E!=null&&u!=null&&ma(()=>Ge(E,u))});return()=>{l.unsubscribe()}});const Ke=X.watch("paymentDetails.amount"),Je=X.handleSubmit(()=>{if(Xe){const l=X.getValues(),u=Fe(l,n.transferFromAccounts,n.chargeCardRepaymentDetailLocalData.idempotencyKey);L(u),d(!0),B&&I&&F&&P!=null&&$.trackCardsPayEarlyFormClick(R,T,P,"Review",n.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:n.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:n.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:n.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:n.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},_,O,Q)}});return t.jsxs(t.Fragment,{children:[t.jsx(Ct,{children:t.jsx(_e,{amount:{amount:Ke??0,currencyCode:n.chargeCardRepaymentDetailLocalData.amount.currencyCode,currencySymbol:n.chargeCardRepaymentDetailLocalData.amount.currencySymbol},integerStyles:ve.integerAmountInput.styleObject(s),decimalStyles:ve.decimalAmountInput.styleObject(s)})}),t.jsx(pa,{...X,children:t.jsx(ft,{id:Ve(Ye),onSubmit:Je,children:t.jsxs(bt,{children:[t.jsx(ua,{selectRef:N,label:{label:me.labels.transferFrom,width:oe,style:{marginLeft:D.labelMarginLeftPicker.valuePx(s),marginTop:D.labelMarginTopPicker.valuePx(s),marginRight:D.labelMarginRightPicker.valuePx(s),width:D.largeLabelWidth.value(s)}},style:{paddingTop:D.labeledFieldPaddingTop.valuePx(s),paddingBottom:D.labeledFieldPaddingBottom.valuePx(s),paddingLeft:D.labeledFieldPaddingLeft.valuePx(s),paddingRight:D.labeledFieldPaddingRight.valuePx(s),border:"none",width:"auto",display:"flex"},infoLabelStyle:{textAlign:"right",paddingRight:D.infoLabelPaddingRight.valuePx(s),marginTop:D.infoLabelMarginTop.valuePx(s),color:J.brandColorGoldDark},bottomComponent:t.jsx(Pa,{label:{label:G.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{textAlign:s==="small"?"end":"center",color:ee.colors.primary}},style:{width:"unset",marginRight:a.sp3,alignItems:s==="small"?"flex-start":"center"},checkBoxField:{name:re(Y,"enableAutoPay"),checkBoxValue:re(Y,"enableAutoPay"),defaultChecked:n.chargeCardRepaymentDetailLocalData.isAutoRepayment,style:{top:D.checkBoxTop.valuePx(s)}}}),singleSelectPickerField:{name:re(Y,pt),placeholder:ga(me.labels.transferFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(l,u)=>We(n.transferFromAccounts,l,u),valueToSubLabels:(l,u)=>ha(n.transferFromAccounts,l,u,!0),defaultValue:{selectedOption:n.chargeCardRepaymentDetailLocalData.transferFrom?.id,allOptions:n.transferFromAccounts.map(l=>({label:l.label,value:l.id,isRecommended:l.accType==="depositAccount"}))},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption},showCreateOption:!0,onClickCreateOption:()=>{V("link_account"),w.linkToken==null||pe(new Date().toISOString()).isAfter(w.expiration)?b?.("link_account"):Z!==w.linkToken?ye(w.linkToken):W?le():U(!0)}},valueToAdditionalLabel:He}),n?.chargeCardRepaymentDetailLocalData.transferFrom==null||n?.chargeCardRepaymentDetailLocalData.transferFrom?.accType==="paymentAccount"?t.jsx(De,{maxInsuredAmount:h,heading:t.jsxs(ht,{windowSize:s,children:[G.earn,t.jsx(gt,{children:G.percentageCashback.replace("__percentage__",ya)}),G.whenYouPayViaZeniChecking]}),buttonText:g?ie.switchButtonText:ie.signUpButtonText,isAccountsEnabled:g,pageName:G.creditCardPayment,onSignUpClick:S,onSwitchClick:()=>{N.current!=null&&N.current.focus()}}):n?.chargeCardRepaymentDetailLocalData.transferFrom?.accType==="depositAccount"&&n?.chargeCardRepaymentDetailLocalData.transferFrom.accountBalance!=null&&n.chargeCardRepaymentDetailLocalData.transferFrom.accountBalance.available!=null&&n.chargeCardRepaymentDetailLocalData.transferFrom.accountBalance.available.amount<n.chargeCardRepaymentDetailLocalData.amount.amount?t.jsx(De,{maxInsuredAmount:h,heading:ie.moveMoneyHeading,buttonText:ie.moveMoneyButtonText,isAccountsEnabled:g,pageName:G.creditCardPayment,onMoveMoneyClick:v}):t.jsx(yt,{}),t.jsx(fa,{showAdditionalInfoLabel:!1,label:{label:me.labels.amount,width:oe},formattedTextField:{type:"number",name:re(Y,Ue),defaultValue:n.chargeCardRepaymentDetailLocalData.amount.amount===0?void 0:n.chargeCardRepaymentDetailLocalData.amount.amount,placeholder:dt.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:l=>!!l&&l>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto",paddingLeft:D.labeledFieldPaddingLeft.valuePx(s)}})]})})})]})}const ht=i($a)`
132
+ `,{common:me,spendManagement:{zeniAccounts:{zeniAccountList:dt},billPay:{insufficientFunds:mt},chargeCard:{payEarly:G}},commonSetUp:{setUp:{accountsPlg:ie}}}=K.getLocalizedStrings(),Ue="amount",pt="withdrawFrom",Y="paymentDetails",Ye="creditCardPaymentPage",re=(e,o)=>`${e}.${o}`,Ve=e=>`${e}_form`,D={largeLabelWidth:new m(120,120,160),labelMarginLeftPicker:new m(r[3],r[4]),labelMarginRightPicker:new m(r[3],r[4]),labelMarginTopPicker:new m(r[2],r[2]),labeledFieldPaddingLeft:new m(r[2],r[0]),labeledFieldPaddingRight:new m(r[2],r[2]),labeledFieldPaddingTop:new m(r[2],r[2]),labeledFieldPaddingBottom:new m(r[2],r[2]),infoLabelPaddingRight:new m(r[0],r[3]),infoLabelMarginTop:new m(r[1],r[0]),checkBoxTop:new m(r[1],r[0])},ve={integerAmountInput:new H("h5Regular","h2Regular"),decimalAmountInput:new H("largeSemiBold","h5Medium")};function ut({autoPayThreshold:e,plaidConnectionDetails:o,maxInsuredAmount:h,paymentDetails:n,lowBalanceAdditionalInfo:f,paymentAccount:c,isAccountsEnabled:g,onSaveChangesToLocalStore:L,onUpdatePaymentAccountStatus:C,onEstablishConnectionClick:y,onEstablishConnectionSuccess:x,onFetchLinkTokenClick:b,setShowReviewLoading:d,onSignUpAccountClick:S,onMoveMoneyClick:v,isCashbackInfoFetchStateCompleted:B,isCreditCardInfoFetchStateCompleted:I,isDebitCardInfoFetchStateCompleted:F,controllerEmails:R,productInformation:T,cashbackInformation:P,paymentSourceInformation:_,creditAccountInformation:O,debitAccountInformation:Q}){const s=he(),ee=Be(),oe=D.largeLabelWidth.value(s),$=ge().analytics,N=p.useRef(null),[W,U]=p.useState(!1),[A,V]=p.useState(void 0),w=o.link_account,Z=o.update_account,k=A==="update_account"?Z:w,[q,ye]=p.useState(k.linkToken??null),fe=we(w.updateStatus.fetchState),X=sa({mode:"all",reValidateMode:"onBlur",defaultValues:p.useMemo(()=>Ie(n),[n]),values:p.useMemo(()=>Ie(n),[n])}),Ce=c?.isLoginRequired??!1,j=c?.providerVerificationStatus?.code,be=we(Z.updateStatus.fetchState),Ze=p.useCallback((l,u)=>{const E=u.accounts.find(Qe=>Qe.id===c?.providerAccountId)??u.accounts[0];c?.paymentAccountId!=null&&A==="update_account"&&E?.verification_status!=null&&!Ce?C(E?.verification_status,c.paymentAccountId,"update_account"):y?.(l,A),V(void 0),U(!1)},[c?.paymentAccountId,c?.providerAccountId,A,Ce,C,y]),qe=p.useCallback((l,u)=>{l!=null&&(l.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&c?.paymentAccountId!=null&&C("verification_failed",c.paymentAccountId,"update_account"),console.log("Plaid Connection Error",l,u)),V(void 0),U(!1)},[c?.paymentAccountId,C]),{open:le,ready:xe}=da({token:q,onSuccess:Ze,onExit:qe});p.useEffect(()=>{(fe==="In-Progress"&&w.updateStatus.fetchState==="Completed"||be==="In-Progress"&&Z.updateStatus.fetchState==="Completed")&&(Ra(j??"")||(b?.("link_account"),x()))},[w.updateStatus.fetchState,x,b,fe,be,Z.updateStatus.fetchState,j]),p.useEffect(()=>{($e(j??"")||j==="verification_failed")&&!W&&A!=null&&k.linkToken===q&&k.fetchStatus.fetchState==="Completed"&&xe&&U(!0)},[xe,q,k.fetchStatus.fetchState,k.linkToken,j,A,W]),p.useEffect(()=>{k.fetchStatus.fetchState==="Completed"&&k.linkToken!=null&&k.linkToken!==q&&ye(k.linkToken)},[k.fetchStatus.fetchState,k.linkToken,q]),p.useEffect(()=>{W&&le()},[W,le]),p.useEffect(()=>{(j==null||j==="verification_failed"||j==="verification_expired"||$e(j))&&(pe(new Date().toISOString()).isAfter(w.expiration)||w.linkToken==null)&&b?.("link_account")},[]);const{isValid:Xe}=X.formState,Ge=async(l,u)=>{if(l!=null){if(l.includes("amount"))return;const E=Fe(u,n.transferFromAccounts,n.chargeCardRepaymentDetailLocalData.idempotencyKey);L(E)}},He=l=>{if(f!=null)return f;const u=n.transferFromAccounts.find(E=>E.id===l);return u?.accountBalance?.available!=null&&Ta(n.chargeCardRepaymentDetailLocalData.amount,u?.accountBalance?.available)?mt.addMoney:""};p.useEffect(()=>{const l=X.watch((u,{name:E})=>{E!=null&&u!=null&&ma(()=>Ge(E,u))});return()=>{l.unsubscribe()}});const Ke=X.watch("paymentDetails.amount"),Je=X.handleSubmit(()=>{if(Xe){const l=X.getValues(),u=Fe(l,n.transferFromAccounts,n.chargeCardRepaymentDetailLocalData.idempotencyKey);L(u),d(!0),B&&I&&F&&P!=null&&$.trackCardsPayEarlyFormClick(R,T,P,"Review",n.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:n.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:n.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:n.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:n.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},_,O,Q)}});return t.jsxs(t.Fragment,{children:[t.jsx(Ct,{children:t.jsx(_e,{amount:{amount:Ke??0,currencyCode:n.chargeCardRepaymentDetailLocalData.amount.currencyCode,currencySymbol:n.chargeCardRepaymentDetailLocalData.amount.currencySymbol},integerStyles:ve.integerAmountInput.styleObject(s),decimalStyles:ve.decimalAmountInput.styleObject(s)})}),t.jsx(pa,{...X,children:t.jsx(ft,{id:Ve(Ye),onSubmit:Je,children:t.jsxs(bt,{children:[t.jsx(ua,{selectRef:N,label:{label:me.labels.transferFrom,width:oe,style:{marginLeft:D.labelMarginLeftPicker.valuePx(s),marginTop:D.labelMarginTopPicker.valuePx(s),marginRight:D.labelMarginRightPicker.valuePx(s),width:D.largeLabelWidth.value(s)}},style:{paddingTop:D.labeledFieldPaddingTop.valuePx(s),paddingBottom:D.labeledFieldPaddingBottom.valuePx(s),paddingLeft:D.labeledFieldPaddingLeft.valuePx(s),paddingRight:D.labeledFieldPaddingRight.valuePx(s),border:"none",width:"auto",display:"flex"},infoLabelStyle:{textAlign:"right",paddingRight:D.infoLabelPaddingRight.valuePx(s),marginTop:D.infoLabelMarginTop.valuePx(s),color:J.brandColorGoldDark},bottomComponent:t.jsx(Pa,{label:{label:G.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{textAlign:s==="small"?"end":"center",color:ee.colors.primary}},style:{width:"unset",marginRight:a.sp3,alignItems:s==="small"?"flex-start":"center"},checkBoxField:{name:re(Y,"enableAutoPay"),checkBoxValue:re(Y,"enableAutoPay"),defaultChecked:n.chargeCardRepaymentDetailLocalData.isAutoRepayment,style:{top:D.checkBoxTop.valuePx(s)}}}),singleSelectPickerField:{name:re(Y,pt),placeholder:ga(me.labels.transferFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(l,u)=>We(n.transferFromAccounts,l,u),valueToSubLabels:(l,u)=>ha(n.transferFromAccounts,l,u,!0),defaultValue:{selectedOption:n.chargeCardRepaymentDetailLocalData.transferFrom?.id,allOptions:n.transferFromAccounts.map(l=>({label:l.label,value:l.id,isRecommended:l.accType==="depositAccount"}))},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption},showCreateOption:!0,onClickCreateOption:()=>{V("link_account"),w.linkToken==null||pe(new Date().toISOString()).isAfter(w.expiration)?b?.("link_account"):q!==w.linkToken?ye(w.linkToken):W?le():U(!0)}},valueToAdditionalLabel:He}),n?.chargeCardRepaymentDetailLocalData.transferFrom==null||n?.chargeCardRepaymentDetailLocalData.transferFrom?.accType==="paymentAccount"?t.jsx(De,{maxInsuredAmount:h,heading:t.jsxs(ht,{windowSize:s,children:[G.earn,t.jsx(gt,{children:G.percentageCashback.replace("__percentage__",ya)}),G.whenYouPayViaZeniChecking]}),buttonText:g?ie.switchButtonText:ie.signUpButtonText,isAccountsEnabled:g,pageName:G.creditCardPayment,onSignUpClick:S,onSwitchClick:()=>{N.current!=null&&N.current.focus()}}):n?.chargeCardRepaymentDetailLocalData.transferFrom?.accType==="depositAccount"&&n?.chargeCardRepaymentDetailLocalData.transferFrom.accountBalance!=null&&n.chargeCardRepaymentDetailLocalData.transferFrom.accountBalance.available!=null&&n.chargeCardRepaymentDetailLocalData.transferFrom.accountBalance.available.amount<n.chargeCardRepaymentDetailLocalData.amount.amount?t.jsx(De,{maxInsuredAmount:h,heading:ie.moveMoneyHeading,buttonText:ie.moveMoneyButtonText,isAccountsEnabled:g,pageName:G.creditCardPayment,onMoveMoneyClick:v}):t.jsx(yt,{}),t.jsx(fa,{showAdditionalInfoLabel:!1,label:{label:me.labels.amount,width:oe},formattedTextField:{type:"number",name:re(Y,Ue),defaultValue:n.chargeCardRepaymentDetailLocalData.amount.amount===0?void 0:n.chargeCardRepaymentDetailLocalData.amount.amount,placeholder:dt.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:l=>!!l&&l>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto",paddingLeft:D.labeledFieldPaddingLeft.valuePx(s)}})]})})})]})}const ht=i($a)`
133
133
  color: ${e=>e.theme.colors.primary};
134
134
  width: ${e=>e.windowSize==="small"?"80%":"100%"};
135
135
  `,gt=i(ka)`
@@ -157,7 +157,7 @@ import{V as t,e as he,a9 as ge,ac as ae,hJ as ea,aQ as aa,a as ta,L as na,aT as
157
157
  border: 1px solid ${e=>e.theme.colors.grey3};
158
158
  box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
159
159
  border-radius: ${a.sp2};
160
- `,Fe=(e,o,h)=>({amount:{amount:e[Y].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:o.find(n=>n.id===e[Y].withdrawFrom.selectedOption),isAutoRepayment:e[Y].enableAutoPay,idempotencyKey:h}),ne={navBarContainerPaddingXaxis:new m(10,19),containerPaddingLeft:new m(16,40,56),containerPaddingRight:new m(16,40,56),successContentMargin:new m(r[3],r[12]),buttonTrayGap:new m(r[4],r[5])},xt={sectionTitle:new H("h6Regular","h5Regular")},Re=K.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList,M=K.getLocalizedStrings().spendManagement.chargeCard.payEarly,{dateFormat:Te}=K.getLocalizedStrings(),wt=({autoPayThreshold:e,paymentDetails:o,maxInsuredAmount:h,isAccountsEnabled:n,productInformation:f,controllerEmails:c,creditAccountInformation:g,creditAccountSpentAmount:L,debitAccountInformation:C,cashbackInformation:y,paymentSourceInformation:x,isCashbackInfoFetchStateCompleted:b,isCreditCardInfoFetchStateCompleted:d,isDebitCardInfoFetchStateCompleted:S,paymentInitiatedDate:v,onSaveChangesToLocalStore:B,onTransferClick:I,sourcePage:F,onBackNavigation:R,onDismissClick:T,onEstablishConnectionClick:P,onFetchLinkTokenClick:_,plaidConnectionDetails:O,onSignUpAccountClick:Q,onMoveMoneyClick:s,onUpdatePaymentAccountStatus:ee,onEstablishConnectionSuccess:oe})=>{const $=he(),N=ge().analytics,[W,U]=p.useState(!1),[A,V]=p.useState(!1);p.useEffect(()=>{A&&setTimeout(()=>{V(!1),U(!0)},1e3)},[A]);const w=o.chargeCardRepaymentDetailLocalData.amount.amount===L,q=o.chargeCardRepaymentDetailLocalData.transferFrom?.accType==="depositAccount";return t.jsx(Dt,{windowSize:$,children:o.updateStatus==="Completed"?t.jsxs(Pe,{windowSize:$,isTransferCompleted:!0,children:[t.jsx(je,{windowSize:$,children:t.jsx(Ee,{"data-testid":ae("cross-credit-card-payment-success-close-button"),onClick:()=>{b&&d&&S&&y!=null&&N.trackCardsPayEarlyFormClick(c,f,y,"Cross Icon",o.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:o.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:o.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:o.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:o.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},x,g,C),T?.()}})}),t.jsxs(At,{windowSize:$,children:[t.jsx(ea,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),t.jsx(St,{children:t.jsxs(t.Fragment,{children:[M.youvePaid,t.jsx($t,{children:aa("0,0.[00]",o.chargeCardRepaymentDetailLocalData.amount)}),Re.transferDrawer.internal.transferSuccessMsgMidfix,`"${o.chargeCardRepaymentDetailLocalData.transferFrom?.label}".`,q?w?M.theCreditLimitWillResetWithin1BusinessDay:M.theCreditLimitWillUpdateWithin1BusinessDay:w?M.theCreditLimitWillResetWithin23BusinessDays:M.theCreditLimitWillUpdateWithin23BusinessDays]})}),t.jsx(kt,{windowSize:$,children:t.jsx(ta,{variant:"primary",label:F==="cardPaymentHistory"?M.goToPaymentHistory:M.goToCards,"data-testid":ae("back-to-cards-button"),onClick:R})})]})]}):W?t.jsx(_a,{paymentDetails:o,setShowReviewContent:U,onTransferClick:I,isCashbackInfoFetchStateCompleted:b,isCreditCardInfoFetchStateCompleted:d,isDebitCardInfoFetchStateCompleted:S,controllerEmails:c,productInformation:f,cashbackInformation:y,paymentSourceInformation:x,creditAccountInformation:g,debitAccountInformation:C}):t.jsxs(t.Fragment,{children:[t.jsxs(Pe,{windowSize:$,isTransferCompleted:!1,children:[t.jsx(je,{windowSize:$,children:t.jsx(Ee,{"data-testid":ae("cross-amount-details-close-button"),onClick:()=>{b&&d&&S&&y!=null&&N.trackCardsPayEarlyFormClick(c,f,y,"Cross Icon",o.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:o.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:o.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:o.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:o.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:v?.add(3,"day").format(Te.visual.MMMDCommaYYYYformat),paymentInitiatedDate:v?.format(Te.visual.MMMDCommaYYYYformat)},x,g,C),T?.()}})}),$==="small"?t.jsx(Lt,{windowSize:$,children:M.payCreditCardBalance}):t.jsx(vt,{children:M.payCreditCardBalance}),o.fetchState==="Completed"?t.jsx(ut,{autoPayThreshold:e,maxInsuredAmount:h,onSaveChangesToLocalStore:B,plaidConnectionDetails:O,paymentDetails:o,setShowReviewLoading:V,onEstablishConnectionSuccess:oe,isAccountsEnabled:n,onFetchLinkTokenClick:_,onUpdatePaymentAccountStatus:ee,onEstablishConnectionClick:P,onSignUpAccountClick:Q,onMoveMoneyClick:s,isCashbackInfoFetchStateCompleted:b,isCreditCardInfoFetchStateCompleted:d,isDebitCardInfoFetchStateCompleted:S,controllerEmails:c,productInformation:f,cashbackInformation:y,paymentSourceInformation:x,creditAccountInformation:g,debitAccountInformation:C}):t.jsx(na,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),t.jsx(ze,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp3},formId:Ve(Ye),helperStyle:{paddingTop:a.sp0,paddingBottom:a.sp0},primaryBtn:{label:K.getLocalizedStrings().common.review,isLoading:A},cancelBtn:{label:Re.transferDrawer.cancelBtn,onClick:()=>{b&&d&&S&&y!=null&&N.trackCardsPayEarlyFormClick(c,f,y,"Cancel",o.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:o.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:o.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:o.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:o.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},x,g,C),T?.()}}})]})})},Dt=i.div`
160
+ `,Fe=(e,o,h)=>({amount:{amount:e[Y].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:o.find(n=>n.id===e[Y].withdrawFrom.selectedOption),isAutoRepayment:e[Y].enableAutoPay,idempotencyKey:h}),ne={navBarContainerPaddingXaxis:new m(10,19),containerPaddingLeft:new m(16,40,56),containerPaddingRight:new m(16,40,56),successContentMargin:new m(r[3],r[12]),buttonTrayGap:new m(r[4],r[5])},xt={sectionTitle:new H("h6Regular","h5Regular")},Re=K.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList,M=K.getLocalizedStrings().spendManagement.chargeCard.payEarly,{dateFormat:Te}=K.getLocalizedStrings(),wt=({autoPayThreshold:e,paymentDetails:o,maxInsuredAmount:h,isAccountsEnabled:n,productInformation:f,controllerEmails:c,creditAccountInformation:g,creditAccountSpentAmount:L,debitAccountInformation:C,cashbackInformation:y,paymentSourceInformation:x,isCashbackInfoFetchStateCompleted:b,isCreditCardInfoFetchStateCompleted:d,isDebitCardInfoFetchStateCompleted:S,paymentInitiatedDate:v,onSaveChangesToLocalStore:B,onTransferClick:I,sourcePage:F,onBackNavigation:R,onDismissClick:T,onEstablishConnectionClick:P,onFetchLinkTokenClick:_,plaidConnectionDetails:O,onSignUpAccountClick:Q,onMoveMoneyClick:s,onUpdatePaymentAccountStatus:ee,onEstablishConnectionSuccess:oe})=>{const $=he(),N=ge().analytics,[W,U]=p.useState(!1),[A,V]=p.useState(!1);p.useEffect(()=>{A&&setTimeout(()=>{V(!1),U(!0)},1e3)},[A]);const w=o.chargeCardRepaymentDetailLocalData.amount.amount===L,Z=o.chargeCardRepaymentDetailLocalData.transferFrom?.accType==="depositAccount";return t.jsx(Dt,{windowSize:$,children:o.updateStatus==="Completed"?t.jsxs(Pe,{windowSize:$,isTransferCompleted:!0,children:[t.jsx(je,{windowSize:$,children:t.jsx(Ee,{"data-testid":ae("cross-credit-card-payment-success-close-button"),onClick:()=>{b&&d&&S&&y!=null&&N.trackCardsPayEarlyFormClick(c,f,y,"Cross Icon",o.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:o.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:o.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:o.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:o.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},x,g,C),T?.()}})}),t.jsxs(At,{windowSize:$,children:[t.jsx(ea,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),t.jsx(St,{children:t.jsxs(t.Fragment,{children:[M.youvePaid,t.jsx($t,{children:aa("0,0.[00]",o.chargeCardRepaymentDetailLocalData.amount)}),Re.transferDrawer.internal.transferSuccessMsgMidfix,`"${o.chargeCardRepaymentDetailLocalData.transferFrom?.label}".`,Z?w?M.theCreditLimitWillResetWithin1BusinessDay:M.theCreditLimitWillUpdateWithin1BusinessDay:w?M.theCreditLimitWillResetWithin23BusinessDays:M.theCreditLimitWillUpdateWithin23BusinessDays]})}),t.jsx(kt,{windowSize:$,children:t.jsx(ta,{variant:"primary",label:F==="cardPaymentHistory"?M.goToPaymentHistory:M.goToCards,"data-testid":ae("back-to-cards-button"),onClick:R})})]})]}):W?t.jsx(_a,{paymentDetails:o,setShowReviewContent:U,onTransferClick:I,isCashbackInfoFetchStateCompleted:b,isCreditCardInfoFetchStateCompleted:d,isDebitCardInfoFetchStateCompleted:S,controllerEmails:c,productInformation:f,cashbackInformation:y,paymentSourceInformation:x,creditAccountInformation:g,debitAccountInformation:C}):t.jsxs(t.Fragment,{children:[t.jsxs(Pe,{windowSize:$,isTransferCompleted:!1,children:[t.jsx(je,{windowSize:$,children:t.jsx(Ee,{"data-testid":ae("cross-amount-details-close-button"),onClick:()=>{b&&d&&S&&y!=null&&N.trackCardsPayEarlyFormClick(c,f,y,"Cross Icon",o.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:o.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:o.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:o.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:o.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:v?.add(3,"day").format(Te.visual.MMMDCommaYYYYformat),paymentInitiatedDate:v?.format(Te.visual.MMMDCommaYYYYformat)},x,g,C),T?.()}})}),$==="small"?t.jsx(Lt,{windowSize:$,children:M.payCreditCardBalance}):t.jsx(vt,{children:M.payCreditCardBalance}),o.fetchState==="Completed"?t.jsx(ut,{autoPayThreshold:e,maxInsuredAmount:h,onSaveChangesToLocalStore:B,plaidConnectionDetails:O,paymentDetails:o,setShowReviewLoading:V,onEstablishConnectionSuccess:oe,isAccountsEnabled:n,onFetchLinkTokenClick:_,onUpdatePaymentAccountStatus:ee,onEstablishConnectionClick:P,onSignUpAccountClick:Q,onMoveMoneyClick:s,isCashbackInfoFetchStateCompleted:b,isCreditCardInfoFetchStateCompleted:d,isDebitCardInfoFetchStateCompleted:S,controllerEmails:c,productInformation:f,cashbackInformation:y,paymentSourceInformation:x,creditAccountInformation:g,debitAccountInformation:C}):t.jsx(na,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),t.jsx(ze,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp3},formId:Ve(Ye),helperStyle:{paddingTop:a.sp0,paddingBottom:a.sp0},primaryBtn:{label:K.getLocalizedStrings().common.review,isLoading:A},cancelBtn:{label:Re.transferDrawer.cancelBtn,onClick:()=>{b&&d&&S&&y!=null&&N.trackCardsPayEarlyFormClick(c,f,y,"Cancel",o.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:o.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:o.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:o.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:o.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},x,g,C),T?.()}}})]})})},Dt=i.div`
161
161
  display: flex;
162
162
  flex-direction: column;
163
163
  background-color: ${e=>e.theme.colors.grey4};
@@ -1,4 +1,4 @@
1
- import{cU as M,g as N,eJ as _,O as P,V as l,eS as H,bJ as L,o,dx as z,ac as x,cC as X,bK as b,an as B,w,fh as J,fi as Q,fj as T,ak as K,bI as U,b as W,d as m}from"./index-aCBnCBoN.js";import{a as v}from"./sentry-DzaNjvx0.js";import{n}from"./mui-BosmckWV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="17aab05b-6e1f-48a6-85af-19bd3d4973bb",e._sentryDebugIdIdentifier="sentry-dbid-17aab05b-6e1f-48a6-85af-19bd3d4973bb")}catch{}})();const $e=({name:e,registerOptions:r,defaultValue:t,isDisabled:a,style:c,placeholder:d,isOptionRemovable:i=!0,menuItemHeight:u=40,controlStyle:p})=>{const{control:f,formState:{errors:y}}=M(),g=N(),[j,k]=v.useState(!1),C=_(y,e??""),I=P.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??I.countryCode}},V={container:s=>({...s,width:"100%",...c}),menu:s=>({...s,backgroundColor:g.colors.grey5,borderRadius:o.sp1,boxShadow:`${o.sp0} 2px ${o.sp2} ${g.colors.dropShadowHover}`,border:`1px solid ${g.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:g.colors.primary,margin:0}),singleValue:s=>({...s,margin:0,position:"absolute"})},F={hasError:C,menuItemHeight:u,controlStyle:p,isOptionRemovable:i};return l.jsx(H,{name:e,control:f,defaultValue:t,rules:r,"data-testid":x("currency-select-field",e),render:({field:{onChange:s,onBlur:h,value:E,ref:R}})=>{const S=E;return v.createElement(L,{...F,ref:R,isMulti:!1,isSearchable:!0,isClearable:i,autoFocus:j===!0,openMenuOnClick:!0,controlShouldRenderValue:!0,placeholder:d,value:D(S.selectedOption),options:t.allOptions,"data-testid":x("currency-select",e),onChange:$=>{i&&$?.value!=null&&S?.selectedOption===$.value?s({selectedOption:void 0,allOptions:t.allOptions}):s({selectedOption:$?.value,allOptions:t.allOptions})},onMenuClose:()=>k(!1),key:z(),tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"currency-select-field",onBlur:h,menuPlacement:"auto",maxMenuHeight:240,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:Y,Option:Z,Input:G,SingleValue:ee,ValueContainer:A,DropdownIndicator:he,IndicatorSeparator:me,Placeholder:oe,ClearIndicator:be,MenuList:q},hideSelectedOptions:!1,styles:V,isDisabled:a!=null})}})},Y=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(b.Control,{...e,className:"select-control",children:e.children})})},Z=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(b.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]})})})},q=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(X,{height:t.length>7?a:t.length*i,width:"100%",itemCount:t.length,itemSize:()=>i,initialScrollOffset:p,children:({index:f,style:y})=>l.jsx(ce,{style:y,children:t[f]})})},A=e=>l.jsx(b.ValueContainer,{...e,className:"select-value-container",children:e.children}),G=e=>{const{selectProps:r}=e,{placeholder:t,value:a}=r;return l.jsx(O,{children:l.jsx(b.Input,{...e,autoComplete:"new-password",placeholder:a==null?t:void 0,children:e.children})})},ee=e=>{const{data:r}=e;return l.jsx(b.SingleValue,{...e,children:l.jsx(O,{children:r.label})})},O=n(B)`
1
+ import{cU as M,g as N,eJ as _,O as P,V as l,eS as H,bJ as L,o,dx as z,ac as x,cC as X,bK as b,an as B,w,fh as J,fi as Q,fj as T,ak as K,bI as U,b as W,d as m}from"./index-B8J3c9-k.js";import{a as v}from"./sentry-xNvKSthz.js";import{n}from"./mui-B_fu8zAT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="17aab05b-6e1f-48a6-85af-19bd3d4973bb",e._sentryDebugIdIdentifier="sentry-dbid-17aab05b-6e1f-48a6-85af-19bd3d4973bb")}catch{}})();const $e=({name:e,registerOptions:r,defaultValue:t,isDisabled:a,style:c,placeholder:d,isOptionRemovable:i=!0,menuItemHeight:u=40,controlStyle:p})=>{const{control:f,formState:{errors:y}}=M(),g=N(),[j,k]=v.useState(!1),C=_(y,e??""),I=P.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??I.countryCode}},V={container:s=>({...s,width:"100%",...c}),menu:s=>({...s,backgroundColor:g.colors.grey5,borderRadius:o.sp1,boxShadow:`${o.sp0} 2px ${o.sp2} ${g.colors.dropShadowHover}`,border:`1px solid ${g.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:g.colors.primary,margin:0}),singleValue:s=>({...s,margin:0,position:"absolute"})},F={hasError:C,menuItemHeight:u,controlStyle:p,isOptionRemovable:i};return l.jsx(H,{name:e,control:f,defaultValue:t,rules:r,"data-testid":x("currency-select-field",e),render:({field:{onChange:s,onBlur:h,value:E,ref:R}})=>{const S=E;return v.createElement(L,{...F,ref:R,isMulti:!1,isSearchable:!0,isClearable:i,autoFocus:j===!0,openMenuOnClick:!0,controlShouldRenderValue:!0,placeholder:d,value:D(S.selectedOption),options:t.allOptions,"data-testid":x("currency-select",e),onChange:$=>{i&&$?.value!=null&&S?.selectedOption===$.value?s({selectedOption:void 0,allOptions:t.allOptions}):s({selectedOption:$?.value,allOptions:t.allOptions})},onMenuClose:()=>k(!1),key:z(),tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"currency-select-field",onBlur:h,menuPlacement:"auto",maxMenuHeight:240,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:Y,Option:Z,Input:G,SingleValue:ee,ValueContainer:A,DropdownIndicator:he,IndicatorSeparator:me,Placeholder:oe,ClearIndicator:be,MenuList:q},hideSelectedOptions:!1,styles:V,isDisabled:a!=null})}})},Y=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(b.Control,{...e,className:"select-control",children:e.children})})},Z=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(b.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]})})})},q=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(X,{height:t.length>7?a:t.length*i,width:"100%",itemCount:t.length,itemSize:()=>i,initialScrollOffset:p,children:({index:f,style:y})=>l.jsx(ce,{style:y,children:t[f]})})},A=e=>l.jsx(b.ValueContainer,{...e,className:"select-value-container",children:e.children}),G=e=>{const{selectProps:r}=e,{placeholder:t,value:a}=r;return l.jsx(O,{children:l.jsx(b.Input,{...e,autoComplete:"new-password",placeholder:a==null?t:void 0,children:e.children})})},ee=e=>{const{data:r}=e;return l.jsx(b.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&&J(e)===!1)return l.jsx(l.Fragment,{});{const r=Q[`${T(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{e as u,V as t,O as c,aS as l,ac as p,L as g,o as i,ah as h,c as x,n as m}from"./index-aCBnCBoN.js";import{a as f}from"./sentry-DzaNjvx0.js";import{n as o}from"./mui-BosmckWV.js";import"./liveblocks-CEY7tsth.js";import"./core-Cjh03OPu.js";import"./recharts-CimMNwCJ.js";import"./zeni-epic-state-BNpJ2txa.js";import"./lottie-BmLFYENY.js";import"./analytics-B_VWX-BQ.js";import"./lexical-9REae7LV.js";import"./utils-THjX-QSp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="6241ea81-1a52-432d-9f67-58930b8f85a4",e._sentryDebugIdIdentifier="sentry-dbid-6241ea81-1a52-432d-9f67-58930b8f85a4")}catch{}})();const b=o.div`
1
+ import{e as u,V as t,O as c,aS as l,ac as p,L as g,o as i,ah as h,c as x,n as m}from"./index-B8J3c9-k.js";import{a as f}from"./sentry-xNvKSthz.js";import{n as o}from"./mui-B_fu8zAT.js";import"./liveblocks-CN5hALk7.js";import"./core-C_RwbDgZ.js";import"./recharts-BkmpOx_p.js";import"./zeni-epic-state-SAYXyeZn.js";import"./lottie-B-zs781A.js";import"./analytics-TwdLweES.js";import"./lexical-DZ4skawM.js";import"./utils-4bW-VyLb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="6241ea81-1a52-432d-9f67-58930b8f85a4",e._sentryDebugIdIdentifier="sentry-dbid-6241ea81-1a52-432d-9f67-58930b8f85a4")}catch{}})();const b=o.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  flex-direction: column;
@@ -0,0 +1 @@
1
+ import{V as o}from"./index-B8J3c9-k.js";import i from"./CustomerOnboardingNoStepsPage-CyL1AK78-Cy-eN1DF.js";import e from"./CustomerOnboardingPage-C8nxJPwo-CFmeBld-.js";import"./sentry-xNvKSthz.js";import"./liveblocks-CN5hALk7.js";import"./core-C_RwbDgZ.js";import"./recharts-BkmpOx_p.js";import"./zeni-epic-state-SAYXyeZn.js";import"./mui-B_fu8zAT.js";import"./lottie-B-zs781A.js";import"./analytics-TwdLweES.js";import"./lexical-DZ4skawM.js";import"./utils-4bW-VyLb.js";import"./PaymentAccountSetupBillingAddressSection-eeLSg7xb-BPuUddlR.js";import"./commonTypes-CfAg6Jvv-D6_uVQ3i.js";import"./SetUpAccountSection-C8dulq9s-DDXcc18s.js";import"./CustomerOnboardingDetailPageSkeleton-CL-mOSUp-BYS-DtUM.js";import"./CompanyOfficerDetailsSection-BY8hFQnp-CtC3dw7s.js";import"./helper-DkzA3y2L-C_9Y7_ic.js";import"./LabeledAddressValueField-Cz6tRMoW-wArjCe_0.js";import"./LabeledCountryMultiSelectField-1kTcZMQW-BkvqWj3Y.js";import"./LabeledCreatableSingleSelectField-PiLB1S77-D7JcIqjo.js";import"./LabeledDocumentField-Cicw8ABs-BakwqLCx.js";import"./QBOSetupSection-Cdz2PDxV-1MtshN_P.js";import"./QBOConnectionDialog-DYxoiSkA-COoNZDfT.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="33c2d8cc-126a-406b-a1c9-db413a70f6c0",t._sentryDebugIdIdentifier="sentry-dbid-33c2d8cc-126a-406b-a1c9-db413a70f6c0")}catch{}})();const P=t=>t.currentTenant?.productSettings.isOtherProductsEnabled===!0?o.jsx(i,{...t}):o.jsx(e,{...t});export{P as default};
@@ -1,4 +1,4 @@
1
- import{V as s,ac as v,bp as E,g as f,e as I,bW as b,o as t,u as T,x as $,ah as R,O as N,d as u,p as P,i3 as U,g1 as W,au as L,ao as O,i4 as _}from"./index-aCBnCBoN.js";import{n as r}from"./mui-BosmckWV.js";import{P as S}from"./sentry-DzaNjvx0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="2962b87d-f762-4cee-8288-f89dc5bb226a",e._sentryDebugIdIdentifier="sentry-dbid-2962b87d-f762-4cee-8288-f89dc5bb226a")}catch{}})();const V=r(_)`
1
+ import{V as s,ac as v,bp as E,g as f,e as I,bW as b,o as t,u as T,x as $,ah as R,O as N,d as u,p as P,i3 as U,g1 as W,au as L,ao as O,i4 as _}from"./index-B8J3c9-k.js";import{n as r}from"./mui-B_fu8zAT.js";import{P as S}from"./sentry-xNvKSthz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="cc1c3514-a28c-4c9d-b7a9-26c83f4e1558",e._sentryDebugIdIdentifier="sentry-dbid-cc1c3514-a28c-4c9d-b7a9-26c83f4e1558")}catch{}})();const V=r(_)`
2
2
  /* Size is controlled by styles.root prop */
3
3
  `,F=r.div`
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{a9 as se,V as o,fL as Ce,e as be,g as Pe,aa as we,aS as xe,cQ as ke,bE as Ie,o as i,ac as Ae,ae as $e,aT as ve,bp as Oe,i1 as Ve,O as Te,fd as je,fe as oe,ah as Le,x as Q,an as Ee,u as A}from"./index-aCBnCBoN.js";import{n as c}from"./mui-BosmckWV.js";import{a as $}from"./sentry-DzaNjvx0.js";import{r as Ue,t as _e}from"./PaymentAccountSetupBillingAddressSection-q5z8XZFC-BXoCztnc.js";import{f as ze}from"./CustomerOnboardingDetailPageSkeleton-CaI_0pCb-CxQ8bQdr.js";import"./liveblocks-CEY7tsth.js";import"./core-Cjh03OPu.js";import"./recharts-CimMNwCJ.js";import"./zeni-epic-state-BNpJ2txa.js";import"./lottie-BmLFYENY.js";import"./analytics-B_VWX-BQ.js";import"./lexical-9REae7LV.js";import"./utils-THjX-QSp.js";import"./commonTypes-Ec-PxfpT-Dj2109B_.js";import"./SetUpAccountSection-_WPR-q2V-DrJlA8IQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new e.Error().stack;u&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[u]="1eb7a48d-53c9-40f7-840b-61b064cfc157",e._sentryDebugIdIdentifier="sentry-dbid-1eb7a48d-53c9-40f7-840b-61b064cfc157")}catch{}})();const q="onboardingPaymentAccountSetupSection",ie="customerOnboardingNoStepsDetailPage",n="onboardingSubscriptionBillingAddress",J={titleWidth:new Q(343,580,726,826),subTitlePaddingTop:new Q(A[3],A[3]),subTitlePaddingBottom:new Q(A[3],A[3])},Be=e=>`${e}_form`,De=Te.getLocalizedStrings(),Fe=({onboardingCustomerView:e,connectedAccountProvider:u,cardPaymentView:p,stripeKey:O,googleAPIKey:V,signedInUser:b,currentTenant:T,onUpdateStep:j,handleCreateCardSetupIntent:L,handleConfirmCardSetupIntent:E,updateCardPaymentModalState:P,handleAddCardPaymentSource:U,resetCardPaymentViewState:_,handleResetCardPaymentErrorStatuses:z,redirectToProductSuitePage:w,onUpdateCustomerView:B,...D})=>{const m=be(),F=se(),{analytics:h}=F,{onFetchLinkTokenClick:K,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:S,onEstablishConnectionSuccess:N,handleLogOutClick:G,onZeniLogoClick:W,onAddressEditHandler:x}=D,Z=Pe(),r=we({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:v(e),values:v(e),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),{companyOfficerLocalData:re,saveStatus:g,paymentAccount:k,paymentAccountStatus:de,plaidConnectionDetails:X,uiState:le,allNationalityCountries:Y,subscriptionBillingAddress:y}=e,{customerOnboardingPage:ce,common:f}=De,{footer:ue,steps:pe}=ce,{buttons:H}=ue,ee=pe.link_payment_account,I=xe(g.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,C=je(l?.country);d={street:a[n].street??f.strings.empty,city:l?.locality??f.strings.empty,state:l?.administrativeAreaLevel1??f.strings.empty,country:C,countryCode:l?.countryCode??f.strings.empty,postalCode:l?.postalCode??f.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},s.selectedOption!==C.selectedOption&&(d={...d,country:C})}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)}};$.useEffect(()=>{const t=r.watch((a,{name:s})=>{s!=null&&a!=null&&ke(()=>ge(s,a))});return()=>{t.unsubscribe()}}),$.useEffect(()=>{I==="In-Progress"&&g.fetchState==="Completed"&&r.reset(v(e),{keepDirtyValues:!1})},[r,e,I,g.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??f.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=p.cardsList.length>0,d=p.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return t&&a||!a&&!k&&s||!s&&!k&&d};function fe(){if(r.getFieldState(n).error)return!1;const t=r.getValues(n),a=y?.street.join("").trim(),s=y?.city,d=y?.state,l=y?.country,C=y?.postalCode!=null&&y.postalCode||t.postalCode||f.strings.empty;return!!a&&!!s&&!!d&&!!l&&!!C}const he=async()=>{const t=await r.trigger(n),a=await r.trigger(q);t&&a&&(ye(),j("link_payment_account"),B(me,!1,!0))};$.useEffect(()=>{I==="In-Progress"&&g.fetchState==="Completed"&&(r.reset(v(e),{keepDirtyValues:!1}),w())},[r,e,I,g.fetchState,Y,w]);const[ae,Se]=$.useState(!1);return o.jsxs(Ke,{children:[o.jsxs(Me,{windowSize:m,children:[o.jsx(Ie,{title:ee.sectionTitle,showBackButton:!1,backgroundColor:Z.colors.grey4,style:{zIndex:4},source:"CustomerOnboardingPaymentAddressDetailPage",showLeftSection:m!=="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($e,{...r,children:o.jsx(Ne,{id:Be(ie),children:o.jsxs(Re,{children:[o.jsx(He,{windowSize:m,children:ee.sectionSubTitle}),o.jsx(Ue,{connectedAccountProvider:u,paymentAccount:k,accountStatus:de,plaidConnectionDetails:X,subscriptionBillingAddressSectionId:n,sectionId:q,analytics:h,isValid:ne(),onFetchLinkTokenClick:K,onEstablishConnectionClick:S,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionSuccess:N,updateCardPaymentModalState:P,cardPaymentView:p,resetCardPaymentViewState:_,cardSetupInProgress:ae,googleAPIKey:V,subscriptionBillingAddress:y})]},"link_payment_account")})}),o.jsx(ve,{formId:`${ie}`,leftSideComponent:o.jsx(Ge,{windowSize:m,children:o.jsx(Oe,{signedInUser:b,currentTenant:T,onLogOutClick:G})}),style:{width:m==="small"?"auto":"100%",padding:i.sp0,rowGap:i.sp1},helperContainerStyle:{width:"100%",rowGap:i.sp1,marginTop:"12px",marginBottom:i.sp2},primaryBtn:{onClick:he,label:H.submit,isLoading:g.fetchState==="In-Progress",isDisabled:g.fetchState==="In-Progress"||!(fe()&&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(_e,{handleConfirmCardSetupIntent:E,updateCardPaymentModalState:P,handleCreateCardSetupIntent:L,handleAddCardPaymentSource:U,cardPaymentView:p,stripeKey:O,isCardPaymentOpen:le.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:z,cardSetupInProgress:ae,setCardSetupInProgress:Se})]})},Ke=c.div`
1
+ import{a9 as se,V as o,fL as Ce,e as be,g as Pe,aa as we,aS as xe,cQ as ke,bE as Ie,o as i,ac as Ae,ae as $e,aT as ve,bp as Oe,i1 as Ve,O as Te,fd as je,fe as oe,ah as Le,x as Q,an as Ee,u as A}from"./index-B8J3c9-k.js";import{n as c}from"./mui-B_fu8zAT.js";import{a as $}from"./sentry-xNvKSthz.js";import{r as Ue,t as _e}from"./PaymentAccountSetupBillingAddressSection-eeLSg7xb-BPuUddlR.js";import{f as ze}from"./CustomerOnboardingDetailPageSkeleton-CL-mOSUp-BYS-DtUM.js";import"./liveblocks-CN5hALk7.js";import"./core-C_RwbDgZ.js";import"./recharts-BkmpOx_p.js";import"./zeni-epic-state-SAYXyeZn.js";import"./lottie-B-zs781A.js";import"./analytics-TwdLweES.js";import"./lexical-DZ4skawM.js";import"./utils-4bW-VyLb.js";import"./commonTypes-CfAg6Jvv-D6_uVQ3i.js";import"./SetUpAccountSection-C8dulq9s-DDXcc18s.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new e.Error().stack;u&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[u]="349bcb2f-37f8-4d48-9f2a-1449d80b5b57",e._sentryDebugIdIdentifier="sentry-dbid-349bcb2f-37f8-4d48-9f2a-1449d80b5b57")}catch{}})();const q="onboardingPaymentAccountSetupSection",ie="customerOnboardingNoStepsDetailPage",n="onboardingSubscriptionBillingAddress",J={titleWidth:new Q(343,580,726,826),subTitlePaddingTop:new Q(A[3],A[3]),subTitlePaddingBottom:new Q(A[3],A[3])},Be=e=>`${e}_form`,De=Te.getLocalizedStrings(),Fe=({onboardingCustomerView:e,connectedAccountProvider:u,cardPaymentView:p,stripeKey:O,googleAPIKey:V,signedInUser:b,currentTenant:T,onUpdateStep:j,handleCreateCardSetupIntent:L,handleConfirmCardSetupIntent:E,updateCardPaymentModalState:P,handleAddCardPaymentSource:U,resetCardPaymentViewState:_,handleResetCardPaymentErrorStatuses:z,redirectToProductSuitePage:w,onUpdateCustomerView:B,...D})=>{const m=be(),F=se(),{analytics:h}=F,{onFetchLinkTokenClick:K,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:S,onEstablishConnectionSuccess:N,handleLogOutClick:G,onZeniLogoClick:W,onAddressEditHandler:x}=D,Z=Pe(),r=we({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:v(e),values:v(e),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),{companyOfficerLocalData:re,saveStatus:g,paymentAccount:k,paymentAccountStatus:de,plaidConnectionDetails:X,uiState:le,allNationalityCountries:Y,subscriptionBillingAddress:y}=e,{customerOnboardingPage:ce,common:f}=De,{footer:ue,steps:pe}=ce,{buttons:H}=ue,ee=pe.link_payment_account,I=xe(g.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,C=je(l?.country);d={street:a[n].street??f.strings.empty,city:l?.locality??f.strings.empty,state:l?.administrativeAreaLevel1??f.strings.empty,country:C,countryCode:l?.countryCode??f.strings.empty,postalCode:l?.postalCode??f.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},s.selectedOption!==C.selectedOption&&(d={...d,country:C})}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)}};$.useEffect(()=>{const t=r.watch((a,{name:s})=>{s!=null&&a!=null&&ke(()=>ge(s,a))});return()=>{t.unsubscribe()}}),$.useEffect(()=>{I==="In-Progress"&&g.fetchState==="Completed"&&r.reset(v(e),{keepDirtyValues:!1})},[r,e,I,g.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??f.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=p.cardsList.length>0,d=p.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return t&&a||!a&&!k&&s||!s&&!k&&d};function fe(){if(r.getFieldState(n).error)return!1;const t=r.getValues(n),a=y?.street.join("").trim(),s=y?.city,d=y?.state,l=y?.country,C=y?.postalCode!=null&&y.postalCode||t.postalCode||f.strings.empty;return!!a&&!!s&&!!d&&!!l&&!!C}const he=async()=>{const t=await r.trigger(n),a=await r.trigger(q);t&&a&&(ye(),j("link_payment_account"),B(me,!1,!0))};$.useEffect(()=>{I==="In-Progress"&&g.fetchState==="Completed"&&(r.reset(v(e),{keepDirtyValues:!1}),w())},[r,e,I,g.fetchState,Y,w]);const[ae,Se]=$.useState(!1);return o.jsxs(Ke,{children:[o.jsxs(Me,{windowSize:m,children:[o.jsx(Ie,{title:ee.sectionTitle,showBackButton:!1,backgroundColor:Z.colors.grey4,style:{zIndex:4},source:"CustomerOnboardingPaymentAddressDetailPage",showLeftSection:m!=="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($e,{...r,children:o.jsx(Ne,{id:Be(ie),children:o.jsxs(Re,{children:[o.jsx(He,{windowSize:m,children:ee.sectionSubTitle}),o.jsx(Ue,{connectedAccountProvider:u,paymentAccount:k,accountStatus:de,plaidConnectionDetails:X,subscriptionBillingAddressSectionId:n,sectionId:q,analytics:h,isValid:ne(),onFetchLinkTokenClick:K,onEstablishConnectionClick:S,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionSuccess:N,updateCardPaymentModalState:P,cardPaymentView:p,resetCardPaymentViewState:_,cardSetupInProgress:ae,googleAPIKey:V,subscriptionBillingAddress:y})]},"link_payment_account")})}),o.jsx(ve,{formId:`${ie}`,leftSideComponent:o.jsx(Ge,{windowSize:m,children:o.jsx(Oe,{signedInUser:b,currentTenant:T,onLogOutClick:G})}),style:{width:m==="small"?"auto":"100%",padding:i.sp0,rowGap:i.sp1},helperContainerStyle:{width:"100%",rowGap:i.sp1,marginTop:"12px",marginBottom:i.sp2},primaryBtn:{onClick:he,label:H.submit,isLoading:g.fetchState==="In-Progress",isDisabled:g.fetchState==="In-Progress"||!(fe()&&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(_e,{handleConfirmCardSetupIntent:E,updateCardPaymentModalState:P,handleCreateCardSetupIntent:L,handleAddCardPaymentSource:U,cardPaymentView:p,stripeKey:O,isCardPaymentOpen:le.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:z,cardSetupInProgress:ae,setCardSetupInProgress:Se})]})},Ke=c.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,8 +1,8 @@
1
- import{V as l,fL as tn,e as Qe,g as nn,aa as an,cQ as me,aS as We,K as yt,aG as Ke,bE as on,o as re,ae as sn,u as M,aT as rn,i1 as ln,gp as cn,fM as ft,fd as Pt,O as Ye,fe as gt,x as ye,gs as fe,cU as dn,an as pn,i2 as ht,af as St,d2 as un,gr as mn}from"./index-aCBnCBoN.js";import{a as m}from"./sentry-DzaNjvx0.js";import{n as O,k as wt}from"./mui-BosmckWV.js";import{bi as j,Gc as yn,Gd as fn}from"./zeni-epic-state-BNpJ2txa.js";import{r as Ct,t as gn}from"./PaymentAccountSetupBillingAddressSection-q5z8XZFC-BXoCztnc.js";import{b as bt,f as hn,a as It}from"./CustomerOnboardingDetailPageSkeleton-CaI_0pCb-CxQ8bQdr.js";import{z as Sn,r as Cn}from"./CompanyOfficerDetailsSection-BsCx7q-g-vYNOEpVO.js";import{t as bn}from"./QBOSetupSection-BrtLMvEP-CWf9qAKV.js";import"./liveblocks-CEY7tsth.js";import"./core-Cjh03OPu.js";import"./recharts-CimMNwCJ.js";import"./lottie-BmLFYENY.js";import"./analytics-B_VWX-BQ.js";import"./lexical-9REae7LV.js";import"./utils-THjX-QSp.js";import"./commonTypes-Ec-PxfpT-Dj2109B_.js";import"./SetUpAccountSection-_WPR-q2V-DrJlA8IQ.js";import"./helper-AgH8nJln-Bk3G7LVh.js";import"./LabeledAddressValueField-D66XOhMx-Di6mjf7B.js";import"./LabeledCountryMultiSelectField-kopByxLB-CVecMMvH.js";import"./LabeledCreatableSingleSelectField-B6An-cwq-DxTaWad8.js";import"./LabeledDocumentField-D_ZD8JTn-BbI3Z3Te.js";import"./QBOConnectionDialog-CXSi1Pd9-BlV5xAad.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new n.Error().stack;C&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[C]="22b8c944-e454-4040-a554-2018e7e60ffa",n._sentryDebugIdIdentifier="sentry-dbid-22b8c944-e454-4040-a554-2018e7e60ffa")}catch{}})();const In=({companyView:n,companyOfficerLocalData:C,allNationalityCountries:i,isVerificationPopupOpen:g,setIsVerificationPopupOpen:_,verifiedPhoneNumber:P,onPhoneVerified:h,...w})=>{const f=Qe(),V=n?.companyOfficers.slice(0,10).sort((I,ee)=>I.user.createTime?.isAfter(ee.user.createTime)===!0?1:-1)?.map(I=>I.user),{company_officer:c}=Ye.getLocalizedStrings().customerOnboardingPage.sections,{title:v}=c,D=n?.company.company.featuresActivationInfo.connectedAccountProvider;return l.jsx(On,{children:l.jsx(Cn,{companyOfficerData:C,allOfficers:V??[],allNationalityCountries:i,sectionHeader:v,isPopupOpen:g,productType:"onboarding",connectedAccountProvider:D,showInfoTooltip:f!=="small",showCompletedIcon:f==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:P,onPhoneVerified:h,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:_,...w})})},On=O.div`
1
+ import{V as l,fL as tn,e as Qe,g as nn,aa as an,cQ as me,aS as We,K as ft,aG as Ke,bE as on,o as re,ae as sn,u as M,aT as rn,i1 as ln,gp as cn,fM as yt,fd as Pt,O as Ye,fe as gt,x as fe,gs as ye,cU as dn,an as pn,i2 as ht,af as St,d2 as un,gr as mn}from"./index-B8J3c9-k.js";import{a as m}from"./sentry-xNvKSthz.js";import{n as O,k as wt}from"./mui-B_fu8zAT.js";import{bi as j,Gc as fn,Gd as yn}from"./zeni-epic-state-SAYXyeZn.js";import{r as Ct,t as gn}from"./PaymentAccountSetupBillingAddressSection-eeLSg7xb-BPuUddlR.js";import{b as bt,f as hn,a as It}from"./CustomerOnboardingDetailPageSkeleton-CL-mOSUp-BYS-DtUM.js";import{z as Sn,r as Cn}from"./CompanyOfficerDetailsSection-BY8hFQnp-CtC3dw7s.js";import{t as bn}from"./QBOSetupSection-Cdz2PDxV-1MtshN_P.js";import"./liveblocks-CN5hALk7.js";import"./core-C_RwbDgZ.js";import"./recharts-BkmpOx_p.js";import"./lottie-B-zs781A.js";import"./analytics-TwdLweES.js";import"./lexical-DZ4skawM.js";import"./utils-4bW-VyLb.js";import"./commonTypes-CfAg6Jvv-D6_uVQ3i.js";import"./SetUpAccountSection-C8dulq9s-DDXcc18s.js";import"./helper-DkzA3y2L-C_9Y7_ic.js";import"./LabeledAddressValueField-Cz6tRMoW-wArjCe_0.js";import"./LabeledCountryMultiSelectField-1kTcZMQW-BkvqWj3Y.js";import"./LabeledCreatableSingleSelectField-PiLB1S77-D7JcIqjo.js";import"./LabeledDocumentField-Cicw8ABs-BakwqLCx.js";import"./QBOConnectionDialog-DYxoiSkA-COoNZDfT.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new n.Error().stack;C&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[C]="21831fa4-d8bf-4672-862d-9c0c31bdb0f6",n._sentryDebugIdIdentifier="sentry-dbid-21831fa4-d8bf-4672-862d-9c0c31bdb0f6")}catch{}})();const In=({companyView:n,companyOfficerLocalData:C,allNationalityCountries:i,isVerificationPopupOpen:g,setIsVerificationPopupOpen:_,verifiedPhoneNumber:P,onPhoneVerified:h,...w})=>{const y=Qe(),V=n?.companyOfficers.slice(0,10).sort((I,ee)=>I.user.createTime?.isAfter(ee.user.createTime)===!0?1:-1)?.map(I=>I.user),{company_officer:c}=Ye.getLocalizedStrings().customerOnboardingPage.sections,{title:v}=c,D=n?.company.company.featuresActivationInfo.connectedAccountProvider;return l.jsx(On,{children:l.jsx(Cn,{companyOfficerData:C,allOfficers:V??[],allNationalityCountries:i,sectionHeader:v,isPopupOpen:g,productType:"onboarding",connectedAccountProvider:D,showInfoTooltip:y!=="small",showCompletedIcon:y==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:P,onPhoneVerified:h,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:_,...w})})},On=O.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
5
- `,Pn=({allNationalityCountries:n,fileProps:C,companyDetails:i,companyIndustries:g,sectionId:_,isCompleted:P,isDisabled:h,style:w,onCompanyAddressClick:f,onRegisteredAddressClick:V})=>{const c=Qe(),{company_details:v}=Ye.getLocalizedStrings().customerOnboardingPage.sections,{title:D}=v;return l.jsx(wn,{children:l.jsx(Sn,{fileProps:C,companyDetails:i,sectionId:_,isDisabled:h,style:w,sectionHeader:D,productType:"onboarding",showInfoTooltip:c!=="small",showCompletedIcon:c==="small",isCompleted:P,allIndustries:g,allNationalityCountries:n,optionalFields:["companyLegalName","companyDescription","companyAddress","companyIndustry","typeOfIncorporation","stateOfIncorporation","countriesOfOperations","incDate","certificateOfIncorporation","ein","companyPhone","primaryContactName"],onCompanyAddressClick:f,onRegisteredAddressClick:V})})},wn=O.div`
5
+ `,Pn=({allNationalityCountries:n,fileProps:C,companyDetails:i,companyIndustries:g,sectionId:_,isCompleted:P,isDisabled:h,style:w,onCompanyAddressClick:y,onRegisteredAddressClick:V})=>{const c=Qe(),{company_details:v}=Ye.getLocalizedStrings().customerOnboardingPage.sections,{title:D}=v;return l.jsx(wn,{children:l.jsx(Sn,{fileProps:C,companyDetails:i,sectionId:_,isDisabled:h,style:w,sectionHeader:D,productType:"onboarding",showInfoTooltip:c!=="small",showCompletedIcon:c==="small",isCompleted:P,allIndustries:g,allNationalityCountries:n,optionalFields:["companyLegalName","companyDescription","companyAddress","companyIndustry","typeOfIncorporation","stateOfIncorporation","countriesOfOperations","incDate","certificateOfIncorporation","ein","companyPhone","primaryContactName"],onCompanyAddressClick:y,onRegisteredAddressClick:V})})},wn=O.div`
6
6
  display: flex;
7
7
  align-items: center;
8
8
  justify-content: center;
@@ -10,7 +10,7 @@ import{V as l,fL as tn,e as Qe,g as nn,aa as an,cQ as me,aS as We,K as yt,aG as
10
10
  display: flex;
11
11
  `,kn=O.input`
12
12
  display: none;
13
- `,_n=({isValid:n,sectionId:C="onboardingQboConnection",...i})=>{const{register:g}=dn();return l.jsxs(xn,{children:[l.jsx(kn,{type:"hidden",...g(`${C}.connected`,{validate:_=>_==="true"}),value:n?"true":"false"}),l.jsx(bn,{isValid:n,...i})]})},B="companyDetails",b="companyOfficer",Z="onboardingPaymentAccountSetupSection",Ot="customerOnboardingDetailPage",y="onboardingSubscriptionBillingAddress",ge="onboardingQboConnection",he={titleWidth:new ye(343,580,726,826),topNavBarHeight:new ye(52,52,63),topNavBarLeftRightSpace:new ye(M[5],M[9],112),subTitlePaddingTop:new ye(M[3],M[3]),subTitlePaddingBottom:new ye(M[3],M[3])},Nn=n=>`${n}_form`,le=Ye.getLocalizedStrings(),vn=({fileProps:n,isRefreshingViewInBackground:C,isAdmin:i,onboardingCustomerView:g,companyTitles:_,connectedAccountProvider:P,analytics:h,cardPaymentView:w,stripeKey:f,googleAPIKey:V,handleCreateCardSetupIntent:c,handleConfirmCardSetupIntent:v,updateCardPaymentModalState:D,handleAddCardPaymentSource:I,resetCardPaymentViewState:ee,handleResetCardPaymentErrorStatuses:Ne,redirectToProductSuitePage:Se,onFormErrorsChange:T,...ve})=>{const R=Qe(),De=m.useRef(null),Ae=m.useRef(null),Q=m.useRef(null),Ve=m.useRef(null),[Ce,z]=m.useState(!1),[U,q]=m.useState("next"),[F,be]=m.useState(!1),[ce,Ie]=m.useState(!1),[te,Y]=m.useState(null),{onAddressClick:ne,onCompanyDetailsChanged:Oe,onCompanyOfficerUpdated:A,onFetchLinkTokenClick:Pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:oe,onDeleteFile:N,onEditFileName:Ge,updateFilesEntity:Je,onGetOtp:xt,onSkipSetupClick:Te,onUpdateCustomerView:$e,updateStepHandler:H,onVerifyOtp:kt,onResendOtp:_t,handleOnConnectClick:Nt,updateQBOPopupState:vt,onUpdateStep:Fe,onAddressEditHandler:Dt}=ve,At=nn(),s=an({mode:"onSubmit",reValidateMode:"onChange",defaultValues:Me(g,g.allNationalityCountries),values:Me(g,g.allNationalityCountries),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),W=m.useCallback(()=>{const e=[];return(s.getFieldState(Z).error!=null||s.getFieldState(y).error!=null)&&e.push("link_payment_account"),s.getFieldState(ge).error!=null&&e.push("qbo_connection"),e},[s]);m.useEffect(()=>{const e=W();T?.(e)},[W,T]),m.useEffect(()=>{const e=s.watch((t,{name:a,type:r})=>{a!=null&&(r==="change"||r==="blur")&&me(()=>{const u=W();T?.(u)})});return()=>e.unsubscribe()},[s,W,T]);const Xe=e=>{tt(e)},{companyView:se,companyDetailsLocalData:d,companyOfficerLocalData:E,currentStep:o,completedSteps:Ze,saveStatus:x,allSteps:S,allRequiredStepsCompleted:Ee,paymentAccount:K,paymentAccountStatus:et,externalConnections:Le,plaidConnectionDetails:je,uiState:Be,allNationalityCountries:we,pendingSaveDetails:{companyDetails:Vt,officer:Tt},subscriptionBillingAddress:G}=g,xe=m.useRef(""),$t=e=>{xe.current=e;const t=Object.values(g.companyOfficerLocalData).findIndex(r=>r?.isSelectedForVerification===!0)??0,a=t<0?0:t;s.clearErrors(`${b}.${a}.phone`)},tt=e=>{e!=null&&!fe(e)?s.trigger(`${b}.${J}.phone`):xt(e)},J=Object.values(E).findIndex(e=>e?.isSelectedForVerification===!0)??0,$=`Officer_${J<0?1:J+1}`,Ft=se?.companyOfficers.slice(0,10).sort((e,t)=>e.user.createTime?.isAfter(t.user.createTime)===!0?1:-1),Re=E[$]?.userId!=null?Ft?.find(e=>e.user.userId===E[$]?.userId)?.address:null,nt=E[$]?.addressStatus?.addressToCreate,ke=se?.companyAddress,at=d?.addressStatus?.addressToCreate,ze=se?.registeredAddress,ot=d?.registeredAddressStatus?.addressToCreate,{customerOnboardingPage:Et,common:p}=le,{footer:Lt,steps:jt}=Et,{buttons:st}=Lt,it=jt[o],Ue=S.length,ie=We(x.fetchState),L=We(o);function Bt(){return Le?.accounting[0]?.isValid??!1}const ue=()=>{const e=Object.values(je).some(u=>u.fetchStatus.fetchState==="Completed"),t=K?.providerVerificationStatus?.code?.includes("verified")??!1,a=w.cardsList.length>0,r=w.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return e&&t||!t&&!K&&a||!a&&!K&&r};function rt(){if(s.getFieldState(y).error)return!1;const e=s.getValues(y),t=G?.street.join("").trim(),a=G?.city,r=G?.state,u=G?.country,k=G?.postalCode!=null&&G.postalCode||e.postalCode||p.strings.empty;return!!t&&!!a&&!!r&&!!u&&!!k}const lt=We(K?.providerVerificationStatus?.code),Rt=()=>{const e=d,t=[];return e?.companyLegalName!=null&&t.push("legal_name"),e?.companyDescription!=null&&e?.companyDescription!==p.strings.empty&&t.push("company_description"),e?.addressStatus?.addressToCreate!=null&&t.push("company_address"),e?.registeredAddressStatus?.addressToCreate!=null&&t.push("registered_address"),e?.website!=null&&t.push("website"),e?.companyIndustry!=null&&e?.companyIndustry!==p.strings.empty&&t.push("industry"),e?.typeOfIncorporation!=null&&e?.typeOfIncorporation!==p.strings.empty&&t.push("type_of_incorporation"),e?.incDate!=null&&t.push("inc_date"),e?.phone!=null&&t.push("phone"),e?.primaryContactLocalData?.firstName!=null&&e?.primaryContactLocalData?.lastName!=null&&t.push("primary_contact_name"),e?.primaryContactLocalData?.email!=null&&t.push("primary_contact_email"),e?.taxIdOrEIN!=null&&t.push("tax_id_or_ein"),e?.companyFiles.find(a=>a.documentType==="certificate_of_incorporation")!=null&&t.push("certificate_of_incorporation"),e?.companyFiles.find(a=>a.documentType==="tax_ein")!=null&&t.push("ein"),{completedFields:t,status:t.length===14?"complete":t.length>0?"partially_complete":"incomplete"}},zt=()=>{const e=E[$],t=[];return e?.firstName!=null&&e.firstName!==p.strings.empty&&t.push("first_name"),e?.lastName!=null&&e.lastName!==p.strings.empty&&t.push("last_name"),e?.birthday!=null&&t.push("dob"),e?.nationalityCountryCode!=null&&t.push("nationality"),e?.addressStatus?.addressToCreate!=null&&t.push("address"),e?.phone!=null&&e.phone!==p.strings.empty&&e.isPhoneVerified===!0&&t.push("phone"),e?.titleAtCompany!=null&&e.titleAtCompany!==p.strings.empty&&t.push("company_role"),e?.ownershipInCompany!=null&&t.push("ownership"),e?.ssn!=null&&e.ssn!==p.strings.empty&&t.push("ssn"),e?.documentTypeSelectedForVerification!=null&&t.push("document_type"),e?.fileIds!=null&&e.fileIds.length>0&&t.push("document_uploaded"),{completedFields:t,status:t.length===11?"complete":t.length>0?"partially_complete":"incomplete"}};m.useEffect(()=>{lt==="pending_manual_verification"&&K?.providerVerificationStatus?.code==="manually_verified"&&h.trackOnboardingBankAccountVerified("manual")},[h,K?.providerVerificationStatus?.code,lt]);const Ut=async(e,t)=>{if(e.includes(B))Oe?.(t[B]);else if(e.includes(b))A?.(t[b]);else if(e.includes(y)&&t[y]!=null){const a=s.getValues(`${y}`).country;let r=t[y];if(e.includes(`${y}.street`)&&t[y].street!=null){const{addressValue:u}=t[y].street,k=Pt(u?.country);r={street:t[y].street??p.strings.empty,city:u?.locality??p.strings.empty,state:u?.administrativeAreaLevel1??p.strings.empty,country:k,countryCode:u?.countryCode??p.strings.empty,postalCode:u?.postalCode??p.strings.empty,secondaryInfo:t[y].secondaryInfo,suite:t[y].suite},a.selectedOption!==k.selectedOption&&(r={...r,country:k})}else e===`${y}.country`&&a.selectedOption!=null?r={...r,countryCode:gt(a.selectedOption)}:a.selectedOption!=null&&e.includes(`${y}.street`)===!1&&(r={...r,countryCode:gt(a.selectedOption)});Dt(r)}};m.useEffect(()=>{const e=s.watch((t,{name:a})=>{a!=null&&t!=null&&me(()=>Ut(a,t))});return()=>{e.unsubscribe()}}),m.useEffect(()=>{ie==="In-Progress"&&x.fetchState==="Completed"&&(s.reset(Me(g,we),{keepDirtyValues:!1}),L==="company_details"&&o==="link_payment_account"&&!S.includes("qbo_connection")&&!g.qboConnected&&Se())},[s,g,ie,x.fetchState,we,L,o,S,Se]),m.useEffect(()=>{Ce&&ie==="In-Progress"&&x.fetchState==="Completed"&&(Te(),h.track(yt.Event.onboardingSkipAndSave))},[ie,Ce,x.fetchState,Te]),m.useEffect(()=>{te?.shouldNavigate===!0&&ie==="In-Progress"&&x.fetchState==="Completed"&&(Y(null),H(te.fromStep,te.stepDirection,!0))},[te,ie,x.fetchState,H]),m.useLayoutEffect(()=>{L!=null&&L!==o&&(S.indexOf(L)===S.indexOf(o)-1||S.indexOf(L)===Ue-1&&S.indexOf(o)===0?U!=="next"&&q("next"):(S.indexOf(L)-1===S.indexOf(o)||S.indexOf(L)===0&&S.indexOf(o)===Ue-1)&&U!=="previous"&&q("previous"))},[S,o,L,U,Ue]);const ct=()=>{const e=E[$];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},qt=!Ke(nt!=null?j(nt):null,Re!=null?j(Re):null),Ht=!Ke(at!=null?j(at):null,ke!=null?j(ke):null),Wt=!Ke(ot!=null?j(ot):null,ze!=null?j(ze):null),Kt=s.getFieldState(B).isDirty||Ht||Wt||Vt,qe=s.getFieldState(b).isDirty&&ct()||qt||Tt,dt=s.getFieldState(`${y}`).isDirty,_e=d?.primaryContactLocalData,Mt=()=>{H(o,"previous",!0)},Qt=()=>{const e=s.getValues(y),t={street:e.street.addressString,suite:e.suite,city:e.city,state:e.state,postalCode:e.postalCode,country:e.country.selectedOption??p.strings.empty,secondaryInfo:e.secondaryInfo};h.trackOnboardingBillingAddressSave(t)},Yt=()=>{switch(Ie(!1),o){case"link_payment_account":dt?setTimeout(()=>{const e=W();T?.(e),rt()&&dt?(Qt(),$e($,!1,!0),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"})):H(o,"next",!0)},200):H(o,"next",!0);break;case"qbo_connection":H(o,"next",!0);break;case"company_officer":if(qe){const e=pt();if(me(()=>{const t=W();T?.(t)}),e.needsOtp&&e.phoneNumber&&fe(e.phoneNumber)){const t=s.formState.errors[b]?.[J<0?0:J],a=t?.phone,r=t!=null&&Object.keys(t).some(u=>u!=="phone"&&t[u]!=null);if(a!=null&&!r){Xe(e.phoneNumber);return}}e.isValid&&($e($,!1,!1),h.trackOnboardingCompanyOfficerSave(ut(),{legalName:d?.companyLegalName},zt()),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"}))}else H(o,"next",!0);break;case"company_details":Ie(!0);{const e=!(rt()&&ue()),t=!Bt()&&S.includes("qbo_connection");if(e||t){e&&(s.trigger(`${Z}`),s.trigger(`${y}`)),t&&s.trigger(ge),me(()=>{const a=W();T?.(a)}),e?Fe("link_payment_account"):t&&Fe("qbo_connection");return}}if(Kt||qe||!_e?.email){const e=Jt(),t=qe?pt():{isValid:!0};me(()=>{const a=W();T?.(a)}),e&&t.isValid?(Ee&&(z(!0),Xt()),$e($,!Ee,!1),h.trackOnboardingCompanyDetailsSave({companyDescription:d?.companyDescription,legalName:d?.companyLegalName,industry:d?.companyIndustry??p.strings.empty,incDate:d?.incDate?.toString(),phone:d?.phone,website:d?.website?.toString(),formattedAddress:d?.addressStatus?.addressToCreate!=null?j(d?.addressStatus?.addressToCreate):void 0},Rt(),{firstName:_e?.firstName,lastName:_e?.lastName,email:_e?.email}),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"})):t.isValid||Fe("company_officer")}else Ee?Gt():H(o,"next",!0);break}},Gt=()=>{x.fetchState!=="In-Progress"&&(Te(),h.track(yt.Event.onboardingSkipAndSave))},pt=()=>{const e=E[$],t=e?.email??p.strings.empty,a=e?.phone??p.strings.empty,r=e?.ssn??p.strings.empty,u=e?.ownershipInCompany,k=J<0?0:J,en=!!e?.firstName&&!!e?.lastName;let X=!0,mt=!1;return t&&!en&&(s.trigger([`${b}.${k}.name.firstName`,`${b}.${k}.name.lastName`],{shouldFocus:o==="company_officer"}),X=!1),(!t&&ct()||St.test(t)===!1)&&(s.trigger(`${b}.${k}.email`,{shouldFocus:o==="company_officer"}),X=!1),a&&fe(a)===!1&&(s.trigger(`${b}.${k}.phone`,{shouldFocus:o==="company_officer"}),X=!1),a&&fe(a)===!0&&P==="unit"&&(xe.current!==""&&a===xe.current||(mt=!0,s.setError(`${b}.${k}.phone`,{type:"custom",message:le.commonSetUp.businessVerification.phoneValidationError},{shouldFocus:o==="company_officer"}),X=!1)),u!=null&&u>100&&(s.trigger(`${b}.${k}.ownership`,{shouldFocus:o==="company_officer"}),X=!1),r&&mn.test(r)===!1&&(s.trigger(`${b}.${k}.ssn`,{shouldFocus:o==="company_officer"}),X=!1),{isValid:X,needsOtp:mt,phoneNumber:a}},Jt=()=>{const e=d?.website?.toString()??p.strings.empty,t=d?.phone??p.strings.empty,a=d?.taxIdOrEIN??p.strings.empty,r=d?.primaryContactLocalData?.email??p.strings.empty;let u=!0;return e&&ht.test(e)===!1&&(s.trigger(`${B}.companyWebsite`,{shouldFocus:o==="company_details"}),u=!1),ht.lastIndex=0,t&&fe(t)===!1&&(s.trigger(`${B}.companyPhone`,{shouldFocus:o==="company_details"}),u=!1),(!r||St.test(r)===!1)&&(s.trigger(`${B}.primaryContactEmail`,{shouldFocus:o==="company_details"}),u=!1),a&&un.test(a)===!1&&(s.trigger(`${B}.companyTaxId`,{shouldFocus:o==="company_details"}),u=!1),u},ut=()=>{const e=E[$];return{email:e?.email??p.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?j(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification}},Xt=()=>{const e=d?.primaryContactLocalData;h.trackBusinessVerificationSave(ut(),{companyDescription:d?.companyDescription,legalName:d?.companyLegalName,phone:d?.phone,website:d?.website?.toString(),industry:d?.companyIndustry??p.strings.empty,formattedAddress:d?.addressStatus?.addressToCreate!=null?j(d?.addressStatus?.addressToCreate):void 0},{firstName:e?.firstName,lastName:e?.lastName,email:e?.email},"onboarding")},[He,Zt]=m.useState(!1);return l.jsxs(Vn,{children:[l.jsxs(Tn,{windowSize:R,children:[S.indexOf(o)>=0?l.jsx(on,{title:it.sectionTitle,showBackButton:!1,backgroundColor:At.colors.grey4,style:{zIndex:4},showLeftSection:R!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:re.sp0,paddingBottom:re.sp0},source:"CustomerOnboardingDetailPage"}):l.jsx($n,{windowSize:R,children:l.jsx(En,{windowSize:R,children:l.jsx(Fn,{})})}),l.jsx(sn,{...s,children:l.jsx(jn,{id:Nn(Ot),children:S.map(e=>{let t;t=l.jsx(Ct,{connectedAccountProvider:P,paymentAccount:K,accountStatus:et,plaidConnectionDetails:je,sectionId:Z,hasError:s.getFieldState(Z).error!=null||ce&&!ue(),isValid:ue(),analytics:h,onFetchLinkTokenClick:Pe,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,cardPaymentView:w,resetCardPaymentViewState:ee,updateCardPaymentModalState:D,cardSetupInProgress:He,subscriptionBillingAddressSectionId:y});let a=De;switch(e){case"link_payment_account":t=l.jsx(Ct,{connectedAccountProvider:P,paymentAccount:K,accountStatus:et,plaidConnectionDetails:je,subscriptionBillingAddressSectionId:y,sectionId:Z,hasError:s.getFieldState(Z).error!=null||ce&&!ue(),isValid:ue(),analytics:h,onFetchLinkTokenClick:Pe,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,updateCardPaymentModalState:D,cardPaymentView:w,resetCardPaymentViewState:ee,cardSetupInProgress:He,googleAPIKey:V,subscriptionBillingAddress:G});break;case"qbo_connection":t=l.jsx(_n,{sectionId:ge,hasError:s.getFieldState(ge).error!=null,isAdmin:i,isValid:Le?.accounting[0]?.isValid??!1,companyName:se?.company.company.companyInfo.companyLegalName,saveConnectionState:Le?.saveConnectionState,isQBOPopupOpen:Be.isQBOPopupOpen,handleOnConnectClick:Nt,updateQBOPopupState:vt}),a=Ae;break;case"company_officer":t=l.jsx(In,{companyOfficerLocalData:E,allNationalityCountries:we,isCompleted:Ze.includes("company_officer"),companyView:se,sectionId:b,filesEndPoint:n.filesEndPoint,authParams:n.authParams,isRefreshingViewInBackground:C,companyTitles:_,isVerificationPopupOpen:F,setIsVerificationPopupOpen:be,onGetOtp:Xe,onVerifyOtp:kt,onResendOtp:_t,onOfficerAddressClick:r=>ne(r,Re?.addressId),updateFilesEntity:Je,onEditFileName:Ge,onDeleteFile:N,verifiedPhoneNumber:xe.current,onPhoneVerified:$t,isDisabled:x.fetchState==="In-Progress"?"readonly":void 0,triggerError:tt}),a=Ve;break;case"company_details":t=l.jsx(Pn,{fileProps:{...n,onEditFileName:Ge,onDeleteFile:N,updateFilesEntity:Je},allNationalityCountries:we,sectionId:B,companyIndustries:g.companyIndustries,companyDetails:d,isDisabled:x.fetchState==="In-Progress"?"readonly":void 0,isCompleted:Ze.includes("company_details"),onCompanyAddressClick:r=>{const u=se?.company.company.companyOnboardingInfo.subscriptionBillingAddressId;ke?.addressId==null&&u!=null?ne(r,u):ne(r,ke?.addressId)},onRegisteredAddressClick:r=>ne(r,ze?.addressId)}),a=Q;break}return l.jsxs(Ln,{ref:a,isVisible:o===e,includeAnimation:o==="link_payment_account"||o==="qbo_connection"?!Be.isQBOPopupOpen:o==="company_officer"?!F:!0,paddingBottom:e==="company_details"||e==="company_officer"?M[6]:M[0],stepAnimationDirection:U,children:[S.indexOf(o)>=0?l.jsx(Bn,{windowSize:R,children:it.sectionSubTitle}):null,t]},e)})})}),l.jsx(rn,{formId:`${Ot}`,style:{width:R==="small"?"auto":"100%",paddingTop:re.sp2,paddingBottom:re.sp2},primaryBtn:{onClick:Yt,label:o==="company_details"?p.footer.submit:st.next,isLoading:x.fetchState==="In-Progress",isDisabled:x.fetchState==="In-Progress"},cancelBtn:{onClick:Mt,label:st.back,isDisabled:x.fetchState==="In-Progress"||S.indexOf(o)===0},containerStyle:{width:"auto",justifyContent:"center"},showCancel:!0})]}),l.jsx(gn,{handleConfirmCardSetupIntent:v,updateCardPaymentModalState:D,handleCreateCardSetupIntent:c,handleAddCardPaymentSource:I,cardPaymentView:w,stripeKey:f,isCardPaymentOpen:Be.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:Ne,cardSetupInProgress:He,setCardSetupInProgress:Zt})]})},Dn=wt`
13
+ `,_n=({isValid:n,sectionId:C="onboardingQboConnection",...i})=>{const{register:g}=dn();return l.jsxs(xn,{children:[l.jsx(kn,{type:"hidden",...g(`${C}.connected`,{validate:_=>_==="true"}),value:n?"true":"false"}),l.jsx(bn,{isValid:n,...i})]})},B="companyDetails",b="companyOfficer",Z="onboardingPaymentAccountSetupSection",Ot="customerOnboardingDetailPage",f="onboardingSubscriptionBillingAddress",ge="onboardingQboConnection",he={titleWidth:new fe(343,580,726,826),topNavBarHeight:new fe(52,52,63),topNavBarLeftRightSpace:new fe(M[5],M[9],112),subTitlePaddingTop:new fe(M[3],M[3]),subTitlePaddingBottom:new fe(M[3],M[3])},Nn=n=>`${n}_form`,le=Ye.getLocalizedStrings(),vn=({fileProps:n,isRefreshingViewInBackground:C,isAdmin:i,onboardingCustomerView:g,companyTitles:_,connectedAccountProvider:P,analytics:h,cardPaymentView:w,stripeKey:y,googleAPIKey:V,handleCreateCardSetupIntent:c,handleConfirmCardSetupIntent:v,updateCardPaymentModalState:D,handleAddCardPaymentSource:I,resetCardPaymentViewState:ee,handleResetCardPaymentErrorStatuses:Ne,redirectToProductSuitePage:Se,onFormErrorsChange:T,...ve})=>{const R=Qe(),De=m.useRef(null),Ae=m.useRef(null),Q=m.useRef(null),Ve=m.useRef(null),[Ce,z]=m.useState(!1),[U,q]=m.useState("next"),[F,be]=m.useState(!1),[ce,Ie]=m.useState(!1),[te,Y]=m.useState(null),{onAddressClick:ne,onCompanyDetailsChanged:Oe,onCompanyOfficerUpdated:A,onFetchLinkTokenClick:Pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:oe,onDeleteFile:N,onEditFileName:Ge,updateFilesEntity:Je,onGetOtp:xt,onSkipSetupClick:Te,onUpdateCustomerView:$e,updateStepHandler:H,onVerifyOtp:kt,onResendOtp:_t,handleOnConnectClick:Nt,updateQBOPopupState:vt,onUpdateStep:Fe,onAddressEditHandler:Dt}=ve,At=nn(),s=an({mode:"onSubmit",reValidateMode:"onChange",defaultValues:Me(g,g.allNationalityCountries),values:Me(g,g.allNationalityCountries),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),W=m.useCallback(()=>{const e=[];return(s.getFieldState(Z).error!=null||s.getFieldState(f).error!=null)&&e.push("link_payment_account"),s.getFieldState(ge).error!=null&&e.push("qbo_connection"),e},[s]);m.useEffect(()=>{const e=W();T?.(e)},[W,T]),m.useEffect(()=>{const e=s.watch((t,{name:a,type:r})=>{a!=null&&(r==="change"||r==="blur")&&me(()=>{const u=W();T?.(u)})});return()=>e.unsubscribe()},[s,W,T]);const Xe=e=>{tt(e)},{companyView:se,companyDetailsLocalData:d,companyOfficerLocalData:E,currentStep:o,completedSteps:Ze,saveStatus:x,allSteps:S,allRequiredStepsCompleted:Ee,paymentAccount:K,paymentAccountStatus:et,externalConnections:Le,plaidConnectionDetails:je,uiState:Be,allNationalityCountries:we,pendingSaveDetails:{companyDetails:Vt,officer:Tt},subscriptionBillingAddress:G}=g,xe=m.useRef(""),$t=e=>{xe.current=e;const t=Object.values(g.companyOfficerLocalData).findIndex(r=>r?.isSelectedForVerification===!0)??0,a=t<0?0:t;s.clearErrors(`${b}.${a}.phone`)},tt=e=>{e!=null&&!ye(e)?s.trigger(`${b}.${J}.phone`):xt(e)},J=Object.values(E).findIndex(e=>e?.isSelectedForVerification===!0)??0,$=`Officer_${J<0?1:J+1}`,Ft=se?.companyOfficers.slice(0,10).sort((e,t)=>e.user.createTime?.isAfter(t.user.createTime)===!0?1:-1),Re=E[$]?.userId!=null?Ft?.find(e=>e.user.userId===E[$]?.userId)?.address:null,nt=E[$]?.addressStatus?.addressToCreate,ke=se?.companyAddress,at=d?.addressStatus?.addressToCreate,ze=se?.registeredAddress,ot=d?.registeredAddressStatus?.addressToCreate,{customerOnboardingPage:Et,common:p}=le,{footer:Lt,steps:jt}=Et,{buttons:st}=Lt,it=jt[o],Ue=S.length,ie=We(x.fetchState),L=We(o);function Bt(){return Le?.accounting[0]?.isValid??!1}const ue=()=>{const e=Object.values(je).some(u=>u.fetchStatus.fetchState==="Completed"),t=K?.providerVerificationStatus?.code?.includes("verified")??!1,a=w.cardsList.length>0,r=w.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return e&&t||!t&&!K&&a||!a&&!K&&r};function rt(){if(s.getFieldState(f).error)return!1;const e=s.getValues(f),t=G?.street.join("").trim(),a=G?.city,r=G?.state,u=G?.country,k=G?.postalCode!=null&&G.postalCode||e.postalCode||p.strings.empty;return!!t&&!!a&&!!r&&!!u&&!!k}const lt=We(K?.providerVerificationStatus?.code),Rt=()=>{const e=d,t=[];return e?.companyLegalName!=null&&t.push("legal_name"),e?.companyDescription!=null&&e?.companyDescription!==p.strings.empty&&t.push("company_description"),e?.addressStatus?.addressToCreate!=null&&t.push("company_address"),e?.registeredAddressStatus?.addressToCreate!=null&&t.push("registered_address"),e?.website!=null&&t.push("website"),e?.companyIndustry!=null&&e?.companyIndustry!==p.strings.empty&&t.push("industry"),e?.typeOfIncorporation!=null&&e?.typeOfIncorporation!==p.strings.empty&&t.push("type_of_incorporation"),e?.incDate!=null&&t.push("inc_date"),e?.phone!=null&&t.push("phone"),e?.primaryContactLocalData?.firstName!=null&&e?.primaryContactLocalData?.lastName!=null&&t.push("primary_contact_name"),e?.primaryContactLocalData?.email!=null&&t.push("primary_contact_email"),e?.taxIdOrEIN!=null&&t.push("tax_id_or_ein"),e?.companyFiles.find(a=>a.documentType==="certificate_of_incorporation")!=null&&t.push("certificate_of_incorporation"),e?.companyFiles.find(a=>a.documentType==="tax_ein")!=null&&t.push("ein"),{completedFields:t,status:t.length===14?"complete":t.length>0?"partially_complete":"incomplete"}},zt=()=>{const e=E[$],t=[];return e?.firstName!=null&&e.firstName!==p.strings.empty&&t.push("first_name"),e?.lastName!=null&&e.lastName!==p.strings.empty&&t.push("last_name"),e?.birthday!=null&&t.push("dob"),e?.nationalityCountryCode!=null&&t.push("nationality"),e?.addressStatus?.addressToCreate!=null&&t.push("address"),e?.phone!=null&&e.phone!==p.strings.empty&&e.isPhoneVerified===!0&&t.push("phone"),e?.titleAtCompany!=null&&e.titleAtCompany!==p.strings.empty&&t.push("company_role"),e?.ownershipInCompany!=null&&t.push("ownership"),e?.ssn!=null&&e.ssn!==p.strings.empty&&t.push("ssn"),e?.documentTypeSelectedForVerification!=null&&t.push("document_type"),e?.fileIds!=null&&e.fileIds.length>0&&t.push("document_uploaded"),{completedFields:t,status:t.length===11?"complete":t.length>0?"partially_complete":"incomplete"}};m.useEffect(()=>{lt==="pending_manual_verification"&&K?.providerVerificationStatus?.code==="manually_verified"&&h.trackOnboardingBankAccountVerified("manual")},[h,K?.providerVerificationStatus?.code,lt]);const Ut=async(e,t)=>{if(e.includes(B))Oe?.(t[B]);else if(e.includes(b))A?.(t[b]);else if(e.includes(f)&&t[f]!=null){const a=s.getValues(`${f}`).country;let r=t[f];if(e.includes(`${f}.street`)&&t[f].street!=null){const{addressValue:u}=t[f].street,k=Pt(u?.country);r={street:t[f].street??p.strings.empty,city:u?.locality??p.strings.empty,state:u?.administrativeAreaLevel1??p.strings.empty,country:k,countryCode:u?.countryCode??p.strings.empty,postalCode:u?.postalCode??p.strings.empty,secondaryInfo:t[f].secondaryInfo,suite:t[f].suite},a.selectedOption!==k.selectedOption&&(r={...r,country:k})}else e===`${f}.country`&&a.selectedOption!=null?r={...r,countryCode:gt(a.selectedOption)}:a.selectedOption!=null&&e.includes(`${f}.street`)===!1&&(r={...r,countryCode:gt(a.selectedOption)});Dt(r)}};m.useEffect(()=>{const e=s.watch((t,{name:a})=>{a!=null&&t!=null&&me(()=>Ut(a,t))});return()=>{e.unsubscribe()}}),m.useEffect(()=>{ie==="In-Progress"&&x.fetchState==="Completed"&&(s.reset(Me(g,we),{keepDirtyValues:!1}),L==="company_details"&&o==="link_payment_account"&&!S.includes("qbo_connection")&&!g.qboConnected&&Se())},[s,g,ie,x.fetchState,we,L,o,S,Se]),m.useEffect(()=>{Ce&&ie==="In-Progress"&&x.fetchState==="Completed"&&(Te(),h.track(ft.Event.onboardingSkipAndSave))},[ie,Ce,x.fetchState,Te]),m.useEffect(()=>{te?.shouldNavigate===!0&&ie==="In-Progress"&&x.fetchState==="Completed"&&(Y(null),H(te.fromStep,te.stepDirection,!0))},[te,ie,x.fetchState,H]),m.useLayoutEffect(()=>{L!=null&&L!==o&&(S.indexOf(L)===S.indexOf(o)-1||S.indexOf(L)===Ue-1&&S.indexOf(o)===0?U!=="next"&&q("next"):(S.indexOf(L)-1===S.indexOf(o)||S.indexOf(L)===0&&S.indexOf(o)===Ue-1)&&U!=="previous"&&q("previous"))},[S,o,L,U,Ue]);const ct=()=>{const e=E[$];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},qt=!Ke(nt!=null?j(nt):null,Re!=null?j(Re):null),Ht=!Ke(at!=null?j(at):null,ke!=null?j(ke):null),Wt=!Ke(ot!=null?j(ot):null,ze!=null?j(ze):null),Kt=s.getFieldState(B).isDirty||Ht||Wt||Vt,qe=s.getFieldState(b).isDirty&&ct()||qt||Tt,dt=s.getFieldState(`${f}`).isDirty,_e=d?.primaryContactLocalData,Mt=()=>{H(o,"previous",!0)},Qt=()=>{const e=s.getValues(f),t={street:e.street.addressString,suite:e.suite,city:e.city,state:e.state,postalCode:e.postalCode,country:e.country.selectedOption??p.strings.empty,secondaryInfo:e.secondaryInfo};h.trackOnboardingBillingAddressSave(t)},Yt=()=>{switch(Ie(!1),o){case"link_payment_account":dt?setTimeout(()=>{const e=W();T?.(e),rt()&&dt?(Qt(),$e($,!1,!0),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"})):H(o,"next",!0)},200):H(o,"next",!0);break;case"qbo_connection":H(o,"next",!0);break;case"company_officer":if(qe){const e=pt();if(me(()=>{const t=W();T?.(t)}),e.needsOtp&&e.phoneNumber&&ye(e.phoneNumber)){const t=s.formState.errors[b]?.[J<0?0:J],a=t?.phone,r=t!=null&&Object.keys(t).some(u=>u!=="phone"&&t[u]!=null);if(a!=null&&!r){Xe(e.phoneNumber);return}}e.isValid&&($e($,!1,!1),h.trackOnboardingCompanyOfficerSave(ut(),{legalName:d?.companyLegalName},zt()),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"}))}else H(o,"next",!0);break;case"company_details":Ie(!0);{const e=!(rt()&&ue()),t=!Bt()&&S.includes("qbo_connection");if(e||t){e&&(s.trigger(`${Z}`),s.trigger(`${f}`)),t&&s.trigger(ge),me(()=>{const a=W();T?.(a)}),e?Fe("link_payment_account"):t&&Fe("qbo_connection");return}}if(Kt||qe||!_e?.email){const e=Jt(),t=qe?pt():{isValid:!0};me(()=>{const a=W();T?.(a)}),e&&t.isValid?(Ee&&(z(!0),Xt()),$e($,!Ee,!1),h.trackOnboardingCompanyDetailsSave({companyDescription:d?.companyDescription,legalName:d?.companyLegalName,industry:d?.companyIndustry??p.strings.empty,incDate:d?.incDate?.toString(),phone:d?.phone,website:d?.website?.toString(),formattedAddress:d?.addressStatus?.addressToCreate!=null?j(d?.addressStatus?.addressToCreate):void 0},Rt(),{firstName:_e?.firstName,lastName:_e?.lastName,email:_e?.email}),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"})):t.isValid||Fe("company_officer")}else Ee?Gt():H(o,"next",!0);break}},Gt=()=>{x.fetchState!=="In-Progress"&&(Te(),h.track(ft.Event.onboardingSkipAndSave))},pt=()=>{const e=E[$],t=e?.email??p.strings.empty,a=e?.phone??p.strings.empty,r=e?.ssn??p.strings.empty,u=e?.ownershipInCompany,k=J<0?0:J,en=!!e?.firstName&&!!e?.lastName;let X=!0,mt=!1;return t&&!en&&(s.trigger([`${b}.${k}.name.firstName`,`${b}.${k}.name.lastName`],{shouldFocus:o==="company_officer"}),X=!1),(!t&&ct()||St.test(t)===!1)&&(s.trigger(`${b}.${k}.email`,{shouldFocus:o==="company_officer"}),X=!1),a&&ye(a)===!1&&(s.trigger(`${b}.${k}.phone`,{shouldFocus:o==="company_officer"}),X=!1),a&&ye(a)===!0&&P==="unit"&&(xe.current!==""&&a===xe.current||(mt=!0,s.setError(`${b}.${k}.phone`,{type:"custom",message:le.commonSetUp.businessVerification.phoneValidationError},{shouldFocus:o==="company_officer"}),X=!1)),u!=null&&u>100&&(s.trigger(`${b}.${k}.ownership`,{shouldFocus:o==="company_officer"}),X=!1),r&&mn.test(r)===!1&&(s.trigger(`${b}.${k}.ssn`,{shouldFocus:o==="company_officer"}),X=!1),{isValid:X,needsOtp:mt,phoneNumber:a}},Jt=()=>{const e=d?.website?.toString()??p.strings.empty,t=d?.phone??p.strings.empty,a=d?.taxIdOrEIN??p.strings.empty,r=d?.primaryContactLocalData?.email??p.strings.empty;let u=!0;return e&&ht.test(e)===!1&&(s.trigger(`${B}.companyWebsite`,{shouldFocus:o==="company_details"}),u=!1),ht.lastIndex=0,t&&ye(t)===!1&&(s.trigger(`${B}.companyPhone`,{shouldFocus:o==="company_details"}),u=!1),(!r||St.test(r)===!1)&&(s.trigger(`${B}.primaryContactEmail`,{shouldFocus:o==="company_details"}),u=!1),a&&un.test(a)===!1&&(s.trigger(`${B}.companyTaxId`,{shouldFocus:o==="company_details"}),u=!1),u},ut=()=>{const e=E[$];return{email:e?.email??p.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?j(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification}},Xt=()=>{const e=d?.primaryContactLocalData;h.trackBusinessVerificationSave(ut(),{companyDescription:d?.companyDescription,legalName:d?.companyLegalName,phone:d?.phone,website:d?.website?.toString(),industry:d?.companyIndustry??p.strings.empty,formattedAddress:d?.addressStatus?.addressToCreate!=null?j(d?.addressStatus?.addressToCreate):void 0},{firstName:e?.firstName,lastName:e?.lastName,email:e?.email},"onboarding")},[He,Zt]=m.useState(!1);return l.jsxs(Vn,{children:[l.jsxs(Tn,{windowSize:R,children:[S.indexOf(o)>=0?l.jsx(on,{title:it.sectionTitle,showBackButton:!1,backgroundColor:At.colors.grey4,style:{zIndex:4},showLeftSection:R!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:re.sp0,paddingBottom:re.sp0},source:"CustomerOnboardingDetailPage"}):l.jsx($n,{windowSize:R,children:l.jsx(En,{windowSize:R,children:l.jsx(Fn,{})})}),l.jsx(sn,{...s,children:l.jsx(jn,{id:Nn(Ot),children:S.map(e=>{let t;t=l.jsx(Ct,{connectedAccountProvider:P,paymentAccount:K,accountStatus:et,plaidConnectionDetails:je,sectionId:Z,hasError:s.getFieldState(Z).error!=null||ce&&!ue(),isValid:ue(),analytics:h,onFetchLinkTokenClick:Pe,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,cardPaymentView:w,resetCardPaymentViewState:ee,updateCardPaymentModalState:D,cardSetupInProgress:He,subscriptionBillingAddressSectionId:f});let a=De;switch(e){case"link_payment_account":t=l.jsx(Ct,{connectedAccountProvider:P,paymentAccount:K,accountStatus:et,plaidConnectionDetails:je,subscriptionBillingAddressSectionId:f,sectionId:Z,hasError:s.getFieldState(Z).error!=null||ce&&!ue(),isValid:ue(),analytics:h,onFetchLinkTokenClick:Pe,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,updateCardPaymentModalState:D,cardPaymentView:w,resetCardPaymentViewState:ee,cardSetupInProgress:He,googleAPIKey:V,subscriptionBillingAddress:G});break;case"qbo_connection":t=l.jsx(_n,{sectionId:ge,hasError:s.getFieldState(ge).error!=null,isAdmin:i,isValid:Le?.accounting[0]?.isValid??!1,companyName:se?.company.company.companyInfo.companyLegalName,saveConnectionState:Le?.saveConnectionState,isQBOPopupOpen:Be.isQBOPopupOpen,handleOnConnectClick:Nt,updateQBOPopupState:vt}),a=Ae;break;case"company_officer":t=l.jsx(In,{companyOfficerLocalData:E,allNationalityCountries:we,isCompleted:Ze.includes("company_officer"),companyView:se,sectionId:b,filesEndPoint:n.filesEndPoint,authParams:n.authParams,isRefreshingViewInBackground:C,companyTitles:_,isVerificationPopupOpen:F,setIsVerificationPopupOpen:be,onGetOtp:Xe,onVerifyOtp:kt,onResendOtp:_t,onOfficerAddressClick:r=>ne(r,Re?.addressId),updateFilesEntity:Je,onEditFileName:Ge,onDeleteFile:N,verifiedPhoneNumber:xe.current,onPhoneVerified:$t,isDisabled:x.fetchState==="In-Progress"?"readonly":void 0,triggerError:tt}),a=Ve;break;case"company_details":t=l.jsx(Pn,{fileProps:{...n,onEditFileName:Ge,onDeleteFile:N,updateFilesEntity:Je},allNationalityCountries:we,sectionId:B,companyIndustries:g.companyIndustries,companyDetails:d,isDisabled:x.fetchState==="In-Progress"?"readonly":void 0,isCompleted:Ze.includes("company_details"),onCompanyAddressClick:r=>{const u=se?.company.company.companyOnboardingInfo.subscriptionBillingAddressId;ke?.addressId==null&&u!=null?ne(r,u):ne(r,ke?.addressId)},onRegisteredAddressClick:r=>ne(r,ze?.addressId)}),a=Q;break}return l.jsxs(Ln,{ref:a,isVisible:o===e,includeAnimation:o==="link_payment_account"||o==="qbo_connection"?!Be.isQBOPopupOpen:o==="company_officer"?!F:!0,paddingBottom:e==="company_details"||e==="company_officer"?M[6]:M[0],stepAnimationDirection:U,children:[S.indexOf(o)>=0?l.jsx(Bn,{windowSize:R,children:it.sectionSubTitle}):null,t]},e)})})}),l.jsx(rn,{formId:`${Ot}`,style:{width:R==="small"?"auto":"100%",paddingTop:re.sp2,paddingBottom:re.sp2},primaryBtn:{onClick:Yt,label:o==="company_details"?p.footer.submit:st.next,isLoading:x.fetchState==="In-Progress",isDisabled:x.fetchState==="In-Progress"},cancelBtn:{onClick:Mt,label:st.back,isDisabled:x.fetchState==="In-Progress"||S.indexOf(o)===0},containerStyle:{width:"auto",justifyContent:"center"},showCancel:!0})]}),l.jsx(gn,{handleConfirmCardSetupIntent:v,updateCardPaymentModalState:D,handleCreateCardSetupIntent:c,handleAddCardPaymentSource:I,cardPaymentView:w,stripeKey:y,isCardPaymentOpen:Be.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:Ne,cardSetupInProgress:He,setCardSetupInProgress:Zt})]})},Dn=wt`
14
14
  from {
15
15
  transform: translateY(100%);
16
16
  opacity: 0;
@@ -94,7 +94,7 @@ import{V as l,fL as tn,e as Qe,g as nn,aa as an,cQ as me,aS as We,K as yt,aG as
94
94
  text-align: ${n=>n.windowSize==="small"?"initial":"center"};
95
95
  width: 100%;
96
96
  white-space: pre-line;
97
- `,Me=(n,C)=>{const{companyDetailsLocalData:i,companyOfficerLocalData:g,companyView:_}=n,P=le.commonSetUp.businessVerification,h=le.companyPassport,w=_?.companyOfficers!=null&&_?.companyOfficers.length>0;return{[B]:{companyDescription:i?.companyDescription??le.common.strings.empty,ein:i?.companyFiles.find(f=>f.documentType==="tax_ein"),companyId:i?.companyId,syncToken:i?.syncToken,companyLegalName:i?.companyLegalName,companyWebsite:i?.website?.toString()??le.common.strings.empty,companyAddress:i?.addressStatus?.addressToCreate,registeredAddress:i?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:i?.companyIndustry,allOptions:n.companyIndustries.map(f=>f.code)},companyIndustryType:{selectedOption:i?.companyIndustryType,allOptions:[...yn]},companySubIndustry:{selectedOption:i?.companySubIndustry,allOptions:fn(i?.companyIndustryType)},companyPhone:i?.phone,companyTaxId:i?.taxIdOrEIN,primaryContactName:{firstName:i?.primaryContactLocalData?.firstName,lastName:i?.primaryContactLocalData?.lastName},primaryContactEmail:i?.primaryContactLocalData?.email,primaryContactUserId:i?.primaryContactLocalData?.userId,primaryContactSyncToken:i?.primaryContactLocalData?.syncToken,fileIds:i?.companyFiles.map(f=>f.fileId)??[],certificateOfIncorporation:i?.companyFiles.find(f=>f.documentType==="certificate_of_incorporation"),incDate:i?.incDate?.toDate(),typeOfIncorporation:{selectedOption:i?.typeOfIncorporation,allOptions:h.companyIncInfo.allTypesOfIncorporation}},[b]:Object.values(g).map((f,V)=>{const c=f,v=cn(c?.documentTypeSelectedForVerification);return{userId:c?.userId,officerType:c?.officerType??`Officer_${V+1}`,name:{firstName:c?.firstName,lastName:c?.lastName},email:c?.email,fileIds:c?.fileIds??[],dob:c?.birthday?.toDate(),nationalityCountryCode:Pt(c?.nationalityCountryCode,C.map(D=>D.countryCode)),ssn:c?.ssn,role:{selectedOption:c?.titleAtCompany,allOptions:P.allTypesOfRoles},phone:c?.phone,ownership:c?.ownershipInCompany,officerAddress:c?.addressStatus?.addressToCreate,selectDocument:{front:ft(!0,c?.userFiles??[],v),back:ft(!1,c?.userFiles??[],v),selectDocumentType:v},isSelectedForVerification:!w&&V===0?!0:c?.isSelectedForVerification??!1,userVerificationStatus:c?.userVerificationStatus,syncToken:c?.syncToken,isPhoneVerified:c?.isPhoneVerified,otpChallenge:c?.otpChallenge}}),[Z]:{account:{allOptions:[],selectedOption:void 0}},[y]:ln(y,n?.subscriptionBillingAddress)[y],[ge]:{connected:n.externalConnections?.accounting[0]?.isValid??!1}}},pa=n=>{const{onboardingCustomerView:C,cardPaymentView:i,signedInUser:g,currentTenant:_,isOnAddressPage:P,stripeKey:h,googleAPIKey:w,onUpdateStep:f,onZeniLogoClick:V,handleLogOutClick:c,handleCockpitClick:v,meetingUrl:D,analytics:I,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:Ne,handleFetchPaymentSources:Se,updateCardPaymentModalState:T,resetCardPaymentViewState:ve,handleResetCardPaymentErrorStatuses:R,redirectToProductSuitePage:De,...Ae}=n,{allSteps:Q,completedSteps:Ve,halfCompletedSteps:Ce,currentStep:z,fetchStatus:U}=C,q=m.useRef(z),F=m.useRef(Q),[be,ce]=m.useState(!1),[Ie,te]=m.useState([]),Y={allSteps:Q,isOnAddressPage:P,completedSteps:Ve,halfCompletedSteps:Ce,errorSteps:Ie,currentStep:z,fetchStatus:U,signedInUser:g,currentTenant:_,onUpdateStep:A=>{f(A)},onZeniLogoClick:V,handleLogOutClick:c,handleCockpitClick:v,setIsStepClicked:ce};m.useEffect(()=>{if(q.current!==z){const A=q.current;be===!0&&(I?.trackOnboardingCurrentStep(z,A),ce(!1)),q.current=z}},[z,be,I]),m.useEffect(()=>{Q.length!==F.current.length&&(F.current=Q)},[Q]);const ne=(A,Pe,de)=>{const ae=F.current.length,pe=F.current.indexOf(A);switch(Pe){case"next":{const oe=(pe+1)%ae,N=F.current[oe];q.current=N,f(N),de===!0?I.trackOnboardingNext(A,N):I.trackOnboardingCurrentStep(N,A);break}case"previous":{const oe=(pe+ae-1)%ae,N=F.current[oe];q.current=N,f(N),de===!0?I.trackOnboardingBack(A,N):I.trackOnboardingCurrentStep(N,A);break}}},Oe=U.fetchState==="In-Progress"||U.fetchState==="Not-Started";return l.jsx(Rn,{isOnAddressPage:P,children:P?l.jsx(bt,{...Y}):l.jsxs(zn,{children:[l.jsx(bt,{...Y}),Oe?l.jsx(hn,{isNoStepsPage:!1}):l.jsx(vn,{onboardingCustomerView:C,analytics:I,updateStepHandler:ne,onUpdateStep:f,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:Ne,updateCardPaymentModalState:T,handleFetchPaymentSources:Se,cardPaymentView:i,resetCardPaymentViewState:ve,stripeKey:h,googleAPIKey:w,handleResetCardPaymentErrorStatuses:R,redirectToProductSuitePage:De,onFormErrorsChange:te,...Ae}),Oe?null:l.jsx(tn,{isFooterRendered:!0,meetingUrl:D,analytics:I,productType:"onboarding"})]})})},Rn=O.div`
97
+ `,Me=(n,C)=>{const{companyDetailsLocalData:i,companyOfficerLocalData:g,companyView:_}=n,P=le.commonSetUp.businessVerification,h=le.companyPassport,w=_?.companyOfficers!=null&&_?.companyOfficers.length>0;return{[B]:{companyDescription:i?.companyDescription??le.common.strings.empty,ein:i?.companyFiles.find(y=>y.documentType==="tax_ein"),companyId:i?.companyId,syncToken:i?.syncToken,companyLegalName:i?.companyLegalName,companyWebsite:i?.website?.toString()??le.common.strings.empty,companyAddress:i?.addressStatus?.addressToCreate,registeredAddress:i?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:i?.companyIndustry,allOptions:n.companyIndustries.map(y=>y.code)},companyIndustryType:{selectedOption:i?.companyIndustryType,allOptions:[...fn]},companySubIndustry:{selectedOption:i?.companySubIndustry,allOptions:yn(i?.companyIndustryType)},companyPhone:i?.phone,companyTaxId:i?.taxIdOrEIN,primaryContactName:{firstName:i?.primaryContactLocalData?.firstName,lastName:i?.primaryContactLocalData?.lastName},primaryContactEmail:i?.primaryContactLocalData?.email,primaryContactUserId:i?.primaryContactLocalData?.userId,primaryContactSyncToken:i?.primaryContactLocalData?.syncToken,fileIds:i?.companyFiles.map(y=>y.fileId)??[],certificateOfIncorporation:i?.companyFiles.find(y=>y.documentType==="certificate_of_incorporation"),incDate:i?.incDate?.toDate(),typeOfIncorporation:{selectedOption:i?.typeOfIncorporation,allOptions:h.companyIncInfo.allTypesOfIncorporation}},[b]:Object.values(g).map((y,V)=>{const c=y,v=cn(c?.documentTypeSelectedForVerification);return{userId:c?.userId,officerType:c?.officerType??`Officer_${V+1}`,name:{firstName:c?.firstName,lastName:c?.lastName},email:c?.email,fileIds:c?.fileIds??[],dob:c?.birthday?.toDate(),nationalityCountryCode:Pt(c?.nationalityCountryCode,C.map(D=>D.countryCode)),ssn:c?.ssn,role:{selectedOption:c?.titleAtCompany,allOptions:P.allTypesOfRoles},phone:c?.phone,ownership:c?.ownershipInCompany,officerAddress:c?.addressStatus?.addressToCreate,selectDocument:{front:yt(!0,c?.userFiles??[],v),back:yt(!1,c?.userFiles??[],v),selectDocumentType:v},isSelectedForVerification:!w&&V===0?!0:c?.isSelectedForVerification??!1,userVerificationStatus:c?.userVerificationStatus,syncToken:c?.syncToken,isPhoneVerified:c?.isPhoneVerified,otpChallenge:c?.otpChallenge}}),[Z]:{account:{allOptions:[],selectedOption:void 0}},[f]:ln(f,n?.subscriptionBillingAddress)[f],[ge]:{connected:n.externalConnections?.accounting[0]?.isValid??!1}}},pa=n=>{const{onboardingCustomerView:C,cardPaymentView:i,signedInUser:g,currentTenant:_,isOnAddressPage:P,stripeKey:h,googleAPIKey:w,onUpdateStep:y,onZeniLogoClick:V,handleLogOutClick:c,handleCockpitClick:v,meetingUrl:D,analytics:I,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:Ne,handleFetchPaymentSources:Se,updateCardPaymentModalState:T,resetCardPaymentViewState:ve,handleResetCardPaymentErrorStatuses:R,redirectToProductSuitePage:De,...Ae}=n,{allSteps:Q,completedSteps:Ve,halfCompletedSteps:Ce,currentStep:z,fetchStatus:U}=C,q=m.useRef(z),F=m.useRef(Q),[be,ce]=m.useState(!1),[Ie,te]=m.useState([]),Y={allSteps:Q,isOnAddressPage:P,completedSteps:Ve,halfCompletedSteps:Ce,errorSteps:Ie,currentStep:z,fetchStatus:U,signedInUser:g,currentTenant:_,onUpdateStep:A=>{y(A)},onZeniLogoClick:V,handleLogOutClick:c,handleCockpitClick:v,setIsStepClicked:ce};m.useEffect(()=>{if(q.current!==z){const A=q.current;be===!0&&(I?.trackOnboardingCurrentStep(z,A),ce(!1)),q.current=z}},[z,be,I]),m.useEffect(()=>{Q.length!==F.current.length&&(F.current=Q)},[Q]);const ne=(A,Pe,de)=>{const ae=F.current.length,pe=F.current.indexOf(A);switch(Pe){case"next":{const oe=(pe+1)%ae,N=F.current[oe];q.current=N,y(N),de===!0?I.trackOnboardingNext(A,N):I.trackOnboardingCurrentStep(N,A);break}case"previous":{const oe=(pe+ae-1)%ae,N=F.current[oe];q.current=N,y(N),de===!0?I.trackOnboardingBack(A,N):I.trackOnboardingCurrentStep(N,A);break}}},Oe=U.fetchState==="In-Progress"||U.fetchState==="Not-Started";return l.jsx(Rn,{isOnAddressPage:P,children:P?l.jsx(bt,{...Y}):l.jsxs(zn,{children:[l.jsx(bt,{...Y}),Oe?l.jsx(hn,{isNoStepsPage:!1}):l.jsx(vn,{onboardingCustomerView:C,analytics:I,updateStepHandler:ne,onUpdateStep:y,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:Ne,updateCardPaymentModalState:T,handleFetchPaymentSources:Se,cardPaymentView:i,resetCardPaymentViewState:ve,stripeKey:h,googleAPIKey:w,handleResetCardPaymentErrorStatuses:R,redirectToProductSuitePage:De,onFormErrorsChange:te,...Ae}),Oe?null:l.jsx(tn,{isFooterRendered:!0,meetingUrl:D,analytics:I,productType:"onboarding"})]})})},Rn=O.div`
98
98
  display: flex;
99
99
  flex-direction: column;
100
100
  width: ${n=>n.isOnAddressPage?"fit-content":"100%"};
@@ -1,4 +1,4 @@
1
- import{e as F,a9 as I,ay as M,g as U,V as e,bE as _,o as t,ac as k,bp as W,fL as V,O as A,an as H,ah as N,d as l,w as b,ai as R,n as J,c as Z,as as G,b1 as q}from"./index-aCBnCBoN.js";import{a as n}from"./sentry-DzaNjvx0.js";import{n as o}from"./mui-BosmckWV.js";import{GP as K}from"./zeni-epic-state-BNpJ2txa.js";import Q from"./ConfettiBurst-D7J36hZf-BKlSjT6j.js";import{T as X}from"./ProductsCarousel-CXjLTOLy-qhgO5u3T.js";import"./liveblocks-CEY7tsth.js";import"./core-Cjh03OPu.js";import"./recharts-CimMNwCJ.js";import"./lottie-BmLFYENY.js";import"./analytics-B_VWX-BQ.js";import"./lexical-9REae7LV.js";import"./utils-THjX-QSp.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new i.Error().stack;p&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[p]="c27f0528-ead8-4aa4-8f69-7f6591b80ac6",i._sentryDebugIdIdentifier="sentry-dbid-c27f0528-ead8-4aa4-8f69-7f6591b80ac6")}catch{}})();const Y=i=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},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(),Me=({hasVerifiedBankAccount:i,meetingUrl:p,showUpdatePaymentDetailButton:f=!1,isVisitingFirstTime:$=!1,handleUpdatePaymentAddressDetailClick:v,...L})=>{const d=F(),x=I().analytics,w=M(),S=w.loggedInUser,a=w.currentTenant,[y,P]=n.useState(!1),{handleLogOutClick:T,onZeniLogoClick:z,handleCockpitClick:E}=L,D=U(),{customerOnboardingPage:c}=ee,h=s=>{const r=c.productSuite.messageBox;if(!s)return[r.withTaxAndPayroll,r.withCFO];const{productSettings:B}=s,{isPayrollEnabled:g,isCfoEnabled:u,isTaxEnabled:m}=B;return g&&u&&m?[r.withTaxAndPayroll,r.withCFO]:g&&u?[r.withPayroll,r.withCFO]:g&&m?[r.taxAndPayroll]:u&&m?[r.withTax,r.withCFO]:g?[r.onlyPayroll]:u?[r.onlyCFO]:m?[r.onlyTax]:[r.default]},O=s=>{if(v(),!s)return;let r="";i?r="bank_account":r="credit_card",x.trackOnboardingClickUpdatePaymentDetails(r,K(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(_,{title:c.productSuite.navTitle,showBackButton:!1,backgroundColor:D.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(ye,{"data-testid":k("zeni-logo-customer-onboarding-product-suite"),onClick:z})}),rightSideComponent:f?e.jsxs(be,{"data-testid":k("update-to-payment-address-details"),onClick:()=>O(a),children:[e.jsx(ke,{}),e.jsx(Ce,{className:"btnText",children:c.productSuite.updatePaymentDetails})]}):e.jsx(je,{})})}),e.jsxs(re,{windowSize:d,children:[e.jsx(ne,{style:{gap:h(a).length>1?t.sp2:t.sp1,padding:h(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:h(a)[0]})]}),e.jsx(C,{children:h(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(X,{scale:1,showUpdatePaymentDetailButton:f,stopCarousel:y})}),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(fe,{children:[e.jsx(xe,{windowSize:d,children:e.jsx(W,{signedInUser:S,currentTenant:a,onLogOutClick:T,onCockpitClick:E})}),e.jsx(V,{isFooterRendered:!1,meetingUrl:p,analytics:x,productType:"onboarding_interim",showPopup:y,setShowPopup:P})]})})]})}),e.jsx(Q,{showConfetti:$})]})},te=o.div`
1
+ import{e as F,a9 as I,ay as M,g as U,V as e,bE as _,o as t,ac as k,bp as W,fL as V,O as A,an as H,ah as N,d as l,w as b,ai as R,n as J,c as Z,as as G,b1 as q}from"./index-B8J3c9-k.js";import{a as n}from"./sentry-xNvKSthz.js";import{n as o}from"./mui-B_fu8zAT.js";import{GP as K}from"./zeni-epic-state-SAYXyeZn.js";import Q from"./ConfettiBurst-CsbAGF65-DaE2G5iK.js";import{T as X}from"./ProductsCarousel-COZZMTcH-CfEx379j.js";import"./liveblocks-CN5hALk7.js";import"./core-C_RwbDgZ.js";import"./recharts-BkmpOx_p.js";import"./lottie-B-zs781A.js";import"./analytics-TwdLweES.js";import"./lexical-DZ4skawM.js";import"./utils-4bW-VyLb.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new i.Error().stack;p&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[p]="94d3611e-df4f-4094-8b7c-d997a70d26c9",i._sentryDebugIdIdentifier="sentry-dbid-94d3611e-df4f-4094-8b7c-d997a70d26c9")}catch{}})();const Y=i=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},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(),Me=({hasVerifiedBankAccount:i,meetingUrl:p,showUpdatePaymentDetailButton:f=!1,isVisitingFirstTime:$=!1,handleUpdatePaymentAddressDetailClick:v,...L})=>{const d=F(),x=I().analytics,w=M(),S=w.loggedInUser,a=w.currentTenant,[y,P]=n.useState(!1),{handleLogOutClick:T,onZeniLogoClick:z,handleCockpitClick:E}=L,D=U(),{customerOnboardingPage:c}=ee,h=s=>{const r=c.productSuite.messageBox;if(!s)return[r.withTaxAndPayroll,r.withCFO];const{productSettings:B}=s,{isPayrollEnabled:g,isCfoEnabled:u,isTaxEnabled:m}=B;return g&&u&&m?[r.withTaxAndPayroll,r.withCFO]:g&&u?[r.withPayroll,r.withCFO]:g&&m?[r.taxAndPayroll]:u&&m?[r.withTax,r.withCFO]:g?[r.onlyPayroll]:u?[r.onlyCFO]:m?[r.onlyTax]:[r.default]},O=s=>{if(v(),!s)return;let r="";i?r="bank_account":r="credit_card",x.trackOnboardingClickUpdatePaymentDetails(r,K(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(_,{title:c.productSuite.navTitle,showBackButton:!1,backgroundColor:D.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(ye,{"data-testid":k("zeni-logo-customer-onboarding-product-suite"),onClick:z})}),rightSideComponent:f?e.jsxs(be,{"data-testid":k("update-to-payment-address-details"),onClick:()=>O(a),children:[e.jsx(ke,{}),e.jsx(Ce,{className:"btnText",children:c.productSuite.updatePaymentDetails})]}):e.jsx(je,{})})}),e.jsxs(re,{windowSize:d,children:[e.jsx(ne,{style:{gap:h(a).length>1?t.sp2:t.sp1,padding:h(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:h(a)[0]})]}),e.jsx(C,{children:h(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(X,{scale:1,showUpdatePaymentDetailButton:f,stopCarousel:y})}),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(fe,{children:[e.jsx(xe,{windowSize:d,children:e.jsx(W,{signedInUser:S,currentTenant:a,onLogOutClick:T,onCockpitClick:E})}),e.jsx(V,{isFooterRendered:!1,meetingUrl:p,analytics:x,productType:"onboarding_interim",showPopup:y,setShowPopup:P})]})})]})}),e.jsx(Q,{showConfetti:$})]})},te=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;