@zeniai/web-cockpit-ui 1.14.95-qa → 1.14.96-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.
- package/dist/assets/{ACHDetailsPage-OhfwzmDP-DdD4zL4Q.js → ACHDetailsPage-BRWOdhMx-lCkplz0-.js} +1 -1
- package/dist/assets/{AIPerformancePage-9OxanlvK-BXX9Wvwc.js → AIPerformancePage-4v4Fkm9f-BqYLGo1s.js} +1 -1
- package/dist/assets/AccountInfoPage-Ca_vKG58-pmVk2hiY.js +18 -0
- package/dist/assets/{AccountInfoPageContent-Bu-ZFVKf-C4GdgvFu.js → AccountInfoPageContent-Dv1IPcdF-ChZIyLOA.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-BqLkGmTA-jm18L80A.js → AccountLockedInfoModal-CEk5d9hq-BU7zCzNG.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CyQ13mJl-BmO7CG_D.js → AccountReconDetailsDrawerPage-DYKjrPwN-BReGAKzb.js} +4 -4
- package/dist/assets/{AccountRow-pJ59k4-J-CoAUicOO.js → AccountRow-BM3xLbeh-DwBWMEiu.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-Ukdm1VDj-BGFwsHLX.js → AccountsPromoCardStack-CTkwARBJ-Dqd8qLkS.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-CZ9kZK-_-BiAGImzE.js → AddAddressForCardDrawer-DfOyebHX-BnGN6mbi.js} +1 -1
- package/dist/assets/{AddToWalletPage-Bc0GY8mw-C3cfLG4q.js → AddToWalletPage-OJBvAKUj-CKSRCSe6.js} +1 -1
- package/dist/assets/{AgingReportsPage-Cam_Ox67-hs97KmMl.js → AgingReportsPage-n-UKn3Ei-CfeYGvlE.js} +1 -1
- package/dist/assets/{AllUserItems-CEBWfFac-4rlDHZMd.js → AllUserItems-BsvKEVcx-Ckn7N6Nq.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-uy2AK45a-CTpXB5_8.js → ApAgingDetailPage-Duu2uAEr-CuSndO2U.js} +2 -2
- package/dist/assets/{AppBasePage-BBolfeYB-Bc5lER_U.js → AppBasePage-DoCF494Z-BPFvSn_P.js} +1 -1
- package/dist/assets/{AppDrawerContent-Df0b3OK2-DN73Je8o.js → AppDrawerContent-DM1t0oLS-DX8gDdRy.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-ChI1Wnf--CzUIs_AI.js → ApprovalRulesSettingsPage-GZCo6_i2-ClrA48La.js} +1 -1
- package/dist/assets/{ArAgingChart-PIQ_BFy4-DHDBdROC.js → ArAgingChart-CsFDVdeO-C-RKv3GM.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-DpdUPb6--CCRjmOiM.js → ArAgingDetailPage-CaOr6vAU-Dju9MqE9.js} +1 -1
- package/dist/assets/{AttachmentView-mC246Bpw-DrGTpDW1.js → AttachmentView-B0d42oAf-CFenLcCO.js} +1 -1
- package/dist/assets/{BankAccountSection-DehqZ04x-41W2QzAN.js → BankAccountSection-Bgdk93V0-DEu58Lvd.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-WkczfI75-CqYt_OOR.js → BankAccountWarningSection-DMRmF2yM-Bdqe05tT.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-CCEKqkfW-tod9UikO.js → BankConnectionsSettingsPage-BpwKq93l-yFMdYswL.js} +1 -1
- package/dist/assets/{BillDetailPage-DA1djKtd-Bb1MMBA5.js → BillDetailPage-BG7FhHEq-CI73yv-V.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-CLkMLaIk-8cuF8pgJ.js → BillPayApprovalRuleDetailPage-BAK1Gfko-DXu3RSd8.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CZnYZ8cn-1-rKDuyB.js → BillPayApprovalRulesPage-DiCNUU-G-CN0GV9DL.js} +1 -1
- package/dist/assets/{BillPayPromoPage-M3bRYehy-Dgm-_rq6.js → BillPayPromoPage-aGKOv8Ur-59DxEGOU.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-CJyPhrld-DTmdlbKG.js → BillPaySetUpPage-DRCjyEfB-CkG4ce3e.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CQngU3lq-BRQCM3uz.js → BillingSettingsPage-CdYb74V7-D26O7kQD.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DlAOz-SY-B79KXwJ2.js → BillsBulkReviewDrawerPage-D8EGfY5P-BpW4NDmq.js} +1 -1
- package/dist/assets/{BoxItem-Cb4_ZBkK-B6f6pk_I.js → BoxItem-WOrvBzns-DD4R649W.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-D7btikKT-pxQtYA8X.js → BusinessVerificationPage-CbqJIVpz-BiQu25FO.js} +1 -1
- package/dist/assets/{CardNumberSubText-DQ6T2OKm-DCKs4uKc.js → CardNumberSubText-DBOH0_yP-Be1TwMNo.js} +1 -1
- package/dist/assets/{CashbackDetailPage-ToN5ueBt-C2Y15BH8.js → CashbackDetailPage-D-kXy6LW-DDN4yxLo.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-BYNjlLQX-DJNjaSTs.js → ChargeCardDetailPage-BQnJsfn5-D6Qm3_DY.js} +21 -21
- package/dist/assets/{ChargeCardListPage-CTG6bNbA-DaP6v7BG.js → ChargeCardListPage-130ILwkr-xWvWRUI-.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BRAAvmWW-JH6rpzV1.js → ChargeCardListTable-EGkwcy7i-Gk77wXoS.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-xhEvT_sU-CmxB4aQB.js → ChargeCardPromoPage-BwqrXrY--B5or9kQv.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-Be89R3A7-DUNuTFF_.js → ChargeCardSetupPage-DRzB7Rt4-SAR76aeK.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CFNCOiLr-b2E65UDG.js → ChargeCardStatementsPage-C3NxKjmB-Bqdh-I41.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-Cy0NVgKc-Zp4oes8b.js → CheckDepositDrawerPage-ClxKj2js-BOLtAKO1.js} +1 -1
- package/dist/assets/{CollapsableReportTable-CrR91Kpi-Dy9cAsrx.js → CollapsableReportTable-xkNXkjfh-CuBOzrbM.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-4FjXy6T9-B3cS-sQk.js → CompanyOfficerDetailsSection-BtUBatbQ-CS2katNY.js} +1 -1
- package/dist/assets/{CompanyPassportCard-Bv6Aws7i-B_fOwuri.js → CompanyPassportCard-BOxM716U-DxvRrHgL.js} +2 -2
- package/dist/assets/{CompanyPassportPage-DRhnOgdd-T5m8ah8o.js → CompanyPassportPage-DzE7sm8S-ZZY5euQN.js} +13 -13
- package/dist/assets/{CompleteProfile-CdVQdaB0-Ci5MS1RB.js → CompleteProfile-BjGSPASa-Bfp0I59Q.js} +1 -1
- package/dist/assets/{ConfettiBurst-Cygb8bhF-BkyBmjib.js → ConfettiBurst-1rYKpbAj-DHWZb_DF.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-_jZBL7C2-Bwa8TxOQ.js → CreateOrEditVendorPage-WQeDCj-E-ZLNX3FBX.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CWF47Q9G-BEbpjMeo.js → CreditCardPaymentDrawerPage-Q12y6HMX-CRUPlZFr.js} +101 -101
- package/dist/assets/{CurrencySelectField-ppkSKTpN-CCfN6HCM.js → CurrencySelectField-AjAWhg6e-h8iODRHM.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DbaC9Uy1-DT9KZwZx.js → CustomerOnboardingActivationPage-BJhw-PvI-DfxjHeaa.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-D7esgWyy.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-5PeyznvM-BHgacpb2.js → CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-A_sh3_b9.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CWvaI2vY-Bpy9JGfY.js → CustomerOnboardingNoStepsPage-CNni6chX-DEHNST6I.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DWmMR5Ke-CYuQWfOJ.js → CustomerOnboardingPage-CvN9Jrdy-BbxW7een.js} +4 -4
- package/dist/assets/CustomerOnboardingProductSuitePage-CZkX9ur7-CVf3ueoc.js +202 -0
- package/dist/assets/{Dashboard-CJSMYKO7-BwYJYHtS.js → Dashboard-_o0Ftdv8-B4FMEqu7.js} +1 -1
- package/dist/assets/{DashboardReportPage-CcY-7-W_-cqT3B1yF.js → DashboardReportPage-Cu5wqWkj-BjOABFkU.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-D3qI_q0a-B-0syXtH.js → DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-1uwRQXQg.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BpbS0SRE-CHj8YEEp.js → DepositAccTransactionItem-BOPK7-7P-CmYSzV4w.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-C1EuUbFg-BSNLRrDu.js → DepositAccTransactionListPage-oj9tntbI-CMORNmGB.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-DTrY_uHQ-DCWcJ9yJ.js → DomesticWireDetailsPage-FGdEilUB-BIDfGIPL.js} +1 -1
- package/dist/assets/{DownloadOverlay-gRH0FIa6-BNbk0uP9.js → DownloadOverlay-c57lEf_V-BH-A5hnp.js} +1 -1
- package/dist/assets/{DrawerPage-gsfboWa--BzijVXgI.js → DrawerPage-inbhWwND-BaLC0Hdr.js} +1 -1
- package/dist/assets/{EditPeoplePage-D3GenIke-BGFZN7wJ.js → EditPeoplePage-DJthuIP4-Ccr8TbIs.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-CC4JbXua-eK3THW2u.js → EditReimbursementDetailPage-Bt7XKq5h-BcSPiJVn.js} +1 -1
- package/dist/assets/{EntityDetailPage-dZ-H_-kO-DfN0Mx9T.js → EntityDetailPage-DbTiF9Hs-DOWN_WQU.js} +1 -1
- package/dist/assets/{EntitySummarySection-BaSzuw3T-BHZTMsNc.js → EntitySummarySection-CHgrPo86-C_DZGpt7.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-CtBVIXza-BCSEKrJ1.js → ExpenseAutomationOverviewPage-QZT_UFXf-Q6Yezq8W.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BByZfMUo-CI-PIApx.js → ExpenseAutomationPage-Y7V_Z8rd-Nz-tHH0P.js} +36 -36
- package/dist/assets/{ExpressPayPage-Dx4Cc9w2-b1gTuuNh.js → ExpressPayPage-CIp_R6ZQ-SvQXytoV.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-Us5W5Wo9-CMiSss7O.js → FeaturePreviewPage-qsUO3mUu-CQPzEAZz.js} +1 -1
- package/dist/assets/{FollowStepsSection-DDXRZdXi-CIURJ8Ij.js → FollowStepsSection-ebmR-eLP-CCCIBkct.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-Ou4B6O28-CvU3fSOy.js → GlobalReviewListPage-9V-xoqvs-O56nx8QU.js} +1 -1
- package/dist/assets/{InformationCardStack-DEj81xCg-CpQfwwkr.js → InformationCardStack-DnB7TmOk-BJQfDBIj.js} +1 -1
- package/dist/assets/{InsightsCardStack-BSigEuRs-sVjB45UN.js → InsightsCardStack-BBczCYEz-CM9k6Dqk.js} +5 -5
- package/dist/assets/{InsightsSection-BrjpMz4X-DhT6u3Y9.js → InsightsSection-BTXj5WUe-BehAISJe.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-BEBtsJ8z-fhMp19Tb.js → IntegrationsSettingsPage-CByj2tO4-zF-3f5Vb.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-DqTA5UPe-CyJj8LGm.js → InternationalWireSwiftDetailsPage-4-pl1ozv-BL59ObmT.js} +4 -4
- package/dist/assets/{InternationalWireVerificationPage-CGLyTJOX-DYoqilx4.js → InternationalWireVerificationPage-kIajgPZt-Cim3HMUE.js} +1 -1
- package/dist/assets/{InviteFormPage-CHZVhrof-CmLLm3nY.js → InviteFormPage-XsnZcAvb-F0roB33R.js} +1 -1
- package/dist/assets/{InvitePageListView-B0aN2fz0-CN5UK10L.js → InvitePageListView-HfsehyxK-ADhebkRn.js} +1 -1
- package/dist/assets/{InvitePeoplePage-DLPupvdi-CZAzyY3m.js → InvitePeoplePage-DrBtwpMH-D70ug1bL.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-COIpUGEB-QBqQhsQX.js → InvoiceUploadSection-DPd4VmqZ-BLpPijn4.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-6LWMwuaq-wAGsjX-3.js → IssueChargeCardPage-xbfFhV0O-D87TKikm.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BOPQCQtK-BGuz_b6Q.js → LabeledAddressValue-CB_KH7v5-DhXcxbM6.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DxybAWPO-BwY94g69.js → LabeledAddressValueField-Bt41wdNQ-CdN5suyF.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-BSciMX7_-DPxXu2WP.js → LabeledControlledCheckBoxField-Btw_zwzy-I7spg7Dx.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-q23ARfG8-AevFfTj2.js → LabeledCreatableSingleSelectField-fycRE7PX-BLM_4t-_.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Icg5_obX-BbKKTiN8.js → LabeledDocumentField-C73vQNgq-xVgwP02Y.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BiJOzT5B-CLqsiSO6.js → LabeledDropDownFormattedTextField-DGb_bDyp-DbOxXrX_.js} +1 -1
- package/dist/assets/{LabeledText-Tn7u-Ek3-xseE37h-.js → LabeledText-yhm8qxrA-B5O06POj.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B_MWazM_-B9DZ0EPe.js → LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-BYzGVtZI.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-DyCxNVQD-5GagGrrx.js → LabeledZeniRolesDropDownField-DGkU72cd-iMLOxXqS.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-NXVaaeQn-SZ9zUkD-.js → LinkJETransactionPage-C0onrP5t-DohOtG77.js} +1 -1
- package/dist/assets/{LockCardPage-DFFQF_XE-BklOvQzD.js → LockCardPage-DaVzuRMw-C59qINIA.js} +1 -1
- package/dist/assets/{LowBalancePopup-T5Ms2v-E-BYNteSIy.js → LowBalancePopup-Dd9HLWlh-qIEjt8fN.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-Cpde2XoD-JoGWlKNi.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-DQYH52_8-Clx_7zaI.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DwBUSxwe-x_28I9nn.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-BU8oXuny-DSh7042d.js → MagicLinkSuccessPage-DbhdGmhh-DNYzgAJU.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-kbY8yTTa-aBbWmPX8.js → MagicLinkTitleSection-Bx92291D-D9nsnbMt.js} +1 -1
- package/dist/assets/MailingDetailsSection-D-tnK244-BXHufBP2.js +21 -0
- package/dist/assets/{Menu-DTdVYIrC-D0Ommq2i.js → Menu-0YHUdU0n-12P5RljB.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-B67G0-7Z-CiJI1eZj.js → MyBankConnectionsSettingsPage-Dn9AT8p1-BbviCBBU.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-Cbap6Vpr-BswK6x6q.js → MyPendingActivationChargeCardListPage-DrQu6s7j-DI8j4Roq.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-TqtGXk0G-BCdFssyr.js → MyProfileSettingsPage-CBvjEd7r-B3f0C00b.js} +1 -1
- package/dist/assets/{NavBarWithPicker-C4_SW0nA-CJkGj3be.js → NavBarWithPicker-aXn2QYh1-CB_AN-HG.js} +1 -1
- package/dist/assets/{NavigationArrow-6jp6I9fp-pb2zk4A2.js → NavigationArrow-JLUXaIrz-BZffLUxV.js} +1 -1
- package/dist/assets/{NavigationDots-BSjG6OlY-Bmp_8_u3.js → NavigationDots-B0_dDbgu-D1euhRa0.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BXM36kwh-BLKAA2k3.js → NewGlobalMerchantPage-B_019EtP-Cnin4QvT.js} +1 -1
- package/dist/assets/{NoDataChart-CRhOisS1-NaiacaKQ.js → NoDataChart-DLKHNXD4-CdqcDLeH.js} +1 -1
- package/dist/assets/{NoDataTable-bIZY56VS-BkYRa670.js → NoDataTable-BMD2qygC-4Ck98ufk.js} +1 -1
- package/dist/assets/{NotFoundPage-Y4UqiUrL-BRe0cl3a.js → NotFoundPage-BEya4LS2-BrCuBa4j.js} +3 -3
- package/dist/assets/{NotificationSettingsPage-Ct1wYM98-BFwx1CLp.js → NotificationSettingsPage-C9SjRKCu-Du1Cf4y_.js} +1 -1
- package/dist/assets/{NotificationsListConfig-tD8IFVDs-CkNEmokw.js → NotificationsListConfig-OCeJNw1G-DxjI9EUe.js} +1 -1
- package/dist/assets/{NotificationsPage-C8PlG40Q-Da-4Xy6C.js → NotificationsPage-FJHx_WBG-TAfeF35H.js} +1 -1
- package/dist/assets/{OpExByVendorPage-B5dz3g_I-I8GN1geI.js → OpExByVendorPage-Dxk68R6U-TSpF0BZT.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-LeGwVBLx.js → OverlayContainerPage-Daz3A7cI-BG61qzjJ.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BzeV5E9J-CGbeCgje.js → PandLWithForecastPage-Bu49FbWD-DV8somvz.js} +4 -4
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-C7ucXP-C-C4Z-AXyF.js → PaymentAccountSetupBillingAddressSection-s9EEHxoG-Ccng4Jbq.js} +1 -1
- package/dist/assets/{PeoplePage-Di9LbUPG-B2_EnKkr.js → PeoplePage-DN5VtG7Q-CKG_6p7l.js} +1 -1
- package/dist/assets/{Preview-2erNF8iT.js → Preview-8iqIdVv4.js} +1 -1
- package/dist/assets/{ProductsCarousel-IX34mwaP-Dgu35i1y.js → ProductsCarousel-6gthLCkf-RpcyX94H.js} +1 -1
- package/dist/assets/{PromoBaseCards-DKl5hmY7-DM44dVRO.js → PromoBaseCards-CzPzj69A-DGTVwpLe.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CFgV4ltt-CU_bh6gZ.js → QBOConnectionDialog-BFy0lMZd-D5AhMSo8.js} +1 -1
- package/dist/assets/{QBOSetupSection-3Igwysxj-BOJfRwXo.js → QBOSetupSection-DcLYyQ5m-DYCAROkc.js} +7 -7
- package/dist/assets/ReimbursementApprovalRuleDetailPage-0o5lDuM2-Cr0TZK-s.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-CUQt2z6s-v84qs-bq.js → ReimbursementApprovalRulesPage-D5ZMrrmO-CIYzhtUg.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-CgwRpLnh-BLKwr6Bo.js → ReimbursementDetailPage-DatcF8rt-B5PSoIBr.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-BxBAhFM1-CM1ElVPd.js → ReimbursementPromoPage-MweW-4DO-BO5Os0EF.js} +4 -4
- package/dist/assets/{ReimbursementSetUpPage-CP8WtKvQ-C6xTJtS6.js → ReimbursementSetUpPage-BD2LWlbW-YI084Mlh.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Ir7LV3Qg-CK8nkU7y.js → ReimbursementsBulkReviewDrawerPage-DV_PLm_g-CdjeW3Za.js} +1 -1
- package/dist/assets/{ReloadCard-DLKVg3Sx-BfmOPc30.js → ReloadCard-9KpQCrce-Y78Zw9cJ.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-BlpUjTMl-DG4HSeeh.js → ReportTableViewSelector-BPliEsuo-CZegsDsW.js} +1 -1
- package/dist/assets/{ReportsPage-D-4SKTVF-B_IcEd1t.js → ReportsPage-h2DAaQfK-Dj7aDDw4.js} +5 -5
- package/dist/assets/{RevenueChart-C3cckydL-HMVSEsH-.js → RevenueChart-DY2s_upY-DFXm-6Am.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-Df882foz-2IjUdS2F.js → ReviewDetailsPage-BiYxRnvA-cVXSS1nN.js} +1 -1
- package/dist/assets/{ReviewOverlay-n3lZIztC-C_xzfTZz.js → ReviewOverlay-BvPN7IKD-BVyGsnOK.js} +1 -1
- package/dist/assets/{RoleWithToolTip-jGxjGCFo-CJeRZvIG.js → RoleWithToolTip-aW95rpRe-D_rCTb4X.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-cVGyXDC1-BemuysVZ.js → ScheduleDetailsFixedAssetsPage-DlXqz1QQ-CI8b87nD.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-Dcl5GREY-n05gOA_6.js → ScheduleDetailsPage-DebosLND-CytjKLyD.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-CkqvmnzR-CgqDzdt0.js → ScheduleSequenceTable-Dd4Ep_c0-CndtHY8m.js} +1 -1
- package/dist/assets/{ScreenRoutes-C_RcXQE-.js → ScreenRoutes-CrZHoFIY.js} +1 -1
- package/dist/assets/{SetUpAccountSection-bKk_0Pau-CBb_-oPn.js → SetUpAccountSection-Dhb8A0Oe-CHZzV0W4.js} +1 -1
- package/dist/assets/{SignIn-BZXzRb1K-C4ACmYg1.js → SignIn-DQBJB5ad-yHNBe1dm.js} +1 -1
- package/dist/assets/{SignInScreen-CumaU6fi.js → SignInScreen-B08t21nJ.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-jdvSYQ4J-h2d8ojs4.js → SpendManagementListViewPage-Ac-9u-X2-ConJ7IhF.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-BlyFIn6o-C62jIBSs.js → SpendManagementPerTabPage-DgrMAQ8l-CwC7irjo.js} +1 -1
- package/dist/assets/{SpendManagementSection-Dzlokoym-BKWHzE7C.js → SpendManagementSection-Ci2yOCJ9-DUAKhgdu.js} +1 -1
- package/dist/assets/StatementItem-hcBoe79o-BTjI_1ZK.js +31 -0
- package/dist/assets/{StatementsPage-Cw6GRd81-pUZcYMzs.js → StatementsPage-DVR5LhTi-ldyTOd7O.js} +1 -1
- package/dist/assets/{StatusSwitcher-CcLiXtx4-Cm5XOAhs.js → StatusSwitcher-Cy5ITFgi-DNMieZwF.js} +1 -1
- package/dist/assets/{SubTabSwitcher-zpnLoSBy-DBbitq63.js → SubTabSwitcher-DhsES2OW-DrYqVYfO.js} +1 -1
- package/dist/assets/{SummaryCard-C2KHXXwg-BERge4v0.js → SummaryCard-Byv4Hw8Q-CEnhPnYc.js} +1 -1
- package/dist/assets/{TaskManagementPage-C3M_HCXR-Bm1qiwRz.js → TaskManagementPage-CVXMOPf2-q63kh_yR.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-COHAPH9b-BUBsu8kU.js → TimeRangeSwitcher-jct2_5PE-DPu4jgs4.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-5ql0bSzz-DssdQ-CA.js → TimeframeSwitcher-BK-qliOX-BjbSBToW.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-BXSkHN5Y-CtFyS3nB.js → TimeframeSwitcherWithToggle-Cl6ISBIz-3_smJQH4.js} +2 -2
- package/dist/assets/{TopExCard-BrodwfJq-CtCcUhXs.js → TopExCard-o4Q3ze1b-CQFtRtLu.js} +1 -1
- package/dist/assets/{TopExDetailPage-B8-Zzr1B-CVUhORwE.js → TopExDetailPage-BsCwwwDi-CdmjqJ_1.js} +5 -5
- package/dist/assets/{TransactionDetailPage-D8v3KPrb-5EhZ4YRg.js → TransactionDetailPage-rpCG65yC-CLh205i5.js} +1 -1
- package/dist/assets/{TransactionList-DMb2xYOV-CURTWhIN.js → TransactionList-YI4oZaim-xbjxS_zo.js} +1 -1
- package/dist/assets/{TransactionListBig-dUBjAacV-CkCO2tWc.js → TransactionListBig-D_Jw9Ip2-Bz8jw08Q.js} +5 -5
- package/dist/assets/{TransactionListPage-x0r04hx4-Di8xAckw.js → TransactionListPage-B2yWm7eA-DCySOEer.js} +2 -2
- package/dist/assets/{TransactionVendorDetailPage-BqjeDf6Q--U9ko7oz.js → TransactionVendorDetailPage-Dr5C4-7q-BPGPWJM6.js} +1 -1
- package/dist/assets/{TransferDrawerPage-LppLtT6A-4A7bI8rn.js → TransferDrawerPage-BnEVH7Mc-C6QWMjAo.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DNoQLXPn-DcaXjmOK.js → TreasuryOverviewPage-C927Rdkg-PWkTzy8N.js} +1 -1
- package/dist/assets/{TreasuryPromoPage--MgysW-J-Dj3s0PKI.js → TreasuryPromoPage-C6D3bF2f-xmypxDfH.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-DRPB8HzF-BC388rcs.js → TreasuryStatementsPage-BE54gWl6-BusQnftI.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-BeeNFRtm-2bz_AQ-0.js → TreasuryTaxLetterPage-BaHut8Wc-DaO1lvfz.js} +2 -2
- package/dist/assets/{TrendChart-C7DgNHh6-BQX-LQlK.js → TrendChart-BI4Tz813-BMzjSOb0.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CpQPkCN4-BsbzS6I7.js → TrendWithTransactions-BicIDSlC-GPxD5Pyy.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-f9xrtur3-2mDu3l63.js → UncategorizedAccountsMappingPage-sbn4Sdr2-CCtQxv0E.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-SiS8CA0g-DMaIVrfP.js → UnitIntegrationPage-CZUyjeh5-DYAwrSQY.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-Djnl6dYH-RPaF9yZM.js → UploadAdditionalDocumentOverlay-4AWDV_HK-CxD_HluI.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-CYwD3yQ8-DLGv5yTH.js → Vendor2FAPopup-C_PmEAQ7-BaU4ZlJ1.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-ChZp1Db0-BO4gSA1P.js → VendorACHDetailsPage-DMMoCytX-D-f3jOPl.js} +1 -1
- package/dist/assets/{VendorDetailPage-CG0SxxIa-qSAiJOjE.js → VendorDetailPage-CLFKkF8I-DlccPRJ1.js} +1 -1
- package/dist/assets/VendorDomesticWireDetailsPage-WxmpwlTS-CXFWxa5o.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-DQs8RP_2-BwweNk99.js → VendorFiling1099EditablePage-CrWrhHZl-MLHVoFXe.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-XaE6ddOQ-DpTvYM7B.js → VendorFirstReviewPage-C6MnbIan-CvuNZRdM.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CT75sZ0O-BB3EKzVu.js → VendorInternationalWireDetailsPage-CzPRK4E2-DP27a23P.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BBYmlLxN-CGwvkONg.js +1 -0
- package/dist/assets/{VendorsAccountsSection-C9NkRN0p-P_PN7VmQ.js → VendorsAccountsSection-CVh1n81R-CZE2h2vy.js} +1 -1
- package/dist/assets/{VerifyDevice-c6uTgDIl-C_mIC1W1.js → VerifyDevice-BHocExfO-CXvB8GAp.js} +1 -1
- package/dist/assets/{VideoPlayer-BgTXP1p7-QMbp4b9s.js → VideoPlayer-9rYRtSLf-C_MG4aUQ.js} +2 -2
- package/dist/assets/VideoPopup-D1o92dj6-Dti5suvC.js +31 -0
- package/dist/assets/{WarningsDrawerPage-BS-TFvBs-BK0syg3H.js → WarningsDrawerPage-CzufXgaN-BVjYF7DU.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CSVQF6vO-BLiPE2TJ.js → ZeniAccountDetailPage-ZZ3Ra-Jf-_49Q_UUx.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-BVGsjSB2-KguVRtzk.js → ZeniAccountListViewPage-Cxid0mfh-Bo45T4Gx.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-B1l8Hjdg-BpjKHJ6-.js → ZeniAccountNavBarPieces-DDc-xph4-CzcxivOl.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-s-QGT-pZ-BjD9rvVp.js → ZeniAccountPromoPage-YIYFkPIB-YhnencbA.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-CqXokSq4-CsQdsk_F.js → ZeniAccountSetupPage-BJ9UJ0dP-yNigxq0M.js} +1 -1
- package/dist/assets/{ZeniCopyright-_f5jw1U0-DOqMEDGM.js → ZeniCopyright-CztmWsFm-x7y7hEtI.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-yvd98l69-5MOeCpj6.js → ZeniTransferAmountSlider-g9qU5Lsq-BdpWeRuR.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-OiVI7bJB.js → add-to-wallet-DgdBD8_G-CnbN5S25.js} +1 -1
- package/dist/assets/{analytics-8Xbq3yYL.js → analytics-C6bOaJY9.js} +1 -1
- package/dist/assets/{analyticsHelper-BvohFLdK-CyK6ylOF.js → analyticsHelper-D4lKCWjQ-7uZfvraO.js} +1 -1
- package/dist/assets/{analyticsHelper-o1rjDPED.js → analyticsHelper-Dyr99-JR.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-DQgxhSrh.js → arrow-south-east-round-PEovUgvH-D0tcq0ac.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-2oXIVweK.js → auto-transfer-rule-mbafm5D3-C5MrpFJF.js} +1 -1
- package/dist/assets/{chartTypes-h1GkAvwh-DVHQunLU.js → chartTypes-BPPSjkhb-H7A_cnp3.js} +1 -1
- package/dist/assets/{commonDimensions-7B20r1RL-DX4q8TH6.js → commonDimensions-Ds75pRzR-DJ4H9OI5.js} +1 -1
- package/dist/assets/{constants-CWLYV7Ge.js → constants-DNQWEIo3.js} +1 -1
- package/dist/assets/{core-CAJzT_Z5.js → core-BiYEzgTE.js} +1 -1
- package/dist/assets/{dash.all.min-nyIOerV_.js → dash.all.min-CNiNGlQC.js} +1 -1
- package/dist/assets/{detailCommon-C28aeDGm-DrEhEwef.js → detailCommon-DdZdfmYT-DWQ_1h8d.js} +5 -5
- package/dist/assets/{downloadPdf-D1MhyCE3-DSprID13.js → downloadPdf-B8UMaJCC-BA2fFFfC.js} +1 -1
- package/dist/assets/{empty-Bn55JOQP.js → empty-B0QxjPHg.js} +1 -1
- package/dist/assets/{empty-Dikea5lg.js → empty-D0VQVmJ6.js} +1 -1
- package/dist/assets/{epic-BTKjB1TW.js → epic-BPfIZ-JM.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-D_-9uaV1.js → gift-box-Cmt9OgIZ-DZtTQChg.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-g9Z3xxM5.js → graphic-no-data-l-DU4J8fDt-D9COe3MR.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CAQX-F-U.js → graphic-no-data-net-burn-l-CzmycA0m-CnFblD9c.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-CWemP6h4.js → handshake-BPg58FML-Dk4MbD0e.js} +1 -1
- package/dist/assets/{index-8Oyhb03N.js → index-BBJ8MbHB.js} +561 -561
- package/dist/assets/{index--sZMP6f2.js → index-BLOT0kav.js} +1 -1
- package/dist/assets/{index-D6TvziCS.js → index-BWdq4kfG.js} +1 -1
- package/dist/assets/{index-cpz_GAtD.js → index-Bl0eTNht.js} +1 -1
- package/dist/assets/{index-DQuqKPcY.js → index-CmMi38cf.js} +1 -1
- package/dist/assets/{index-CV2gkqvP.js → index-D66eZF3S.js} +1 -1
- package/dist/assets/{index-CoHJqiJH.js → index-QkeEXb1H.js} +1 -1
- package/dist/assets/{lexical-Dn8yVWzX.js → lexical-Cbl76XZt.js} +1 -1
- package/dist/assets/{liveblocks-Cv4_XqIL.js → liveblocks-BstIT-4Z.js} +1 -1
- package/dist/assets/{lottie-CHtoTuG1.js → lottie-Dcr3TlBE.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DGRrn6kh-B7ARKarP.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DtwKYRnC-DDTcgYDR.js → mapSectionWithAcOnlyToTreeNode-rrJBbsC8-DldkvgD3.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-CWvamMX2-8qhsm047.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DfQk4Tsr-CLPrV0Gx.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-_jEVk1uh-Dt-fMHUy.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Dscp66eK-Bx0yi6rH.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-BVNM6n_o.js} +1 -1
- package/dist/assets/{mui-g2D8ciyb.js → mui-CqcpY1UR.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-CqgkwkEL.js → page-detail-CWX5S47F-KNgKNFoz.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-CJW6suVR.js → radio-default-CiSgisfh-yEV1b0CM.js} +1 -1
- package/dist/assets/{react-CJI2jrH1.js → react-4Ya91sN5.js} +1 -1
- package/dist/assets/{react-CPIaawZG.js → react-B4eK6Gcb.js} +1 -1
- package/dist/assets/{react-DzTjK2ko.js → react-BPBfJ6wZ.js} +1 -1
- package/dist/assets/{react-BqnZnr-V.js → react-BR4cTFeR.js} +1 -1
- package/dist/assets/{react-Cu4WA0Dh.js → react-CAF4_aM2.js} +1 -1
- package/dist/assets/{react-CTCtOz3j.js → react-CG2AEOc2.js} +1 -1
- package/dist/assets/{react-DK6VUiop.js → react-CHCFBd-l.js} +2 -2
- package/dist/assets/{react-DRqNydaO.js → react-COBWBcIx.js} +1 -1
- package/dist/assets/{recharts-D25xpbsw.js → recharts-bDaLwU4I.js} +1 -1
- package/dist/assets/{sentry-DlgT2cdq.js → sentry-CTfRDee5.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-D7jPBNjK.js → shield-DOlUxcFf-CaZu4NEg.js} +1 -1
- package/dist/assets/toCOABalancesWithID-CkjRB0sJ-DDXgenlP.js +1 -0
- package/dist/assets/{toChartData-BYQCR1Q4-BauxqVGI.js → toChartData-CMi2WgAy-Bk_h1ue0.js} +1 -1
- package/dist/assets/{transaction-placeholder-CpOwZAMG-RkVgOUGZ.js → transaction-placeholder-CpOwZAMG-DpKoIbbu.js} +1 -1
- package/dist/assets/{uploadAttachment-Cs2BAs2F-D_sz5Hgk.js → uploadAttachment-B4ddYCCL-B4kq7cBL.js} +1 -1
- package/dist/assets/{uploadReceipts-CPw64UYa-DNXk-kYS.js → uploadReceipts-CPw64UYa-DdOlSolA.js} +1 -1
- package/dist/assets/{url-BHclSfSS.js → url-BPLyW2rO.js} +1 -1
- package/dist/assets/{url-DXCCmxc2.js → url-DI6ZTkbp.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-BpmPST0N.js → useLongPress-GCK2COYQ-DwbMzQIX.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-DO1kFPHu.js → usp-line-BBd1wKwW-CG6D_gsM.js} +1 -1
- package/dist/assets/{utils-6fMPdJur.js → utils-BI6ira9J.js} +1 -1
- package/dist/assets/{zeni-epic-state-C06d6qPM.js → zeni-epic-state-n7oqKrUc.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AccountInfoPage-CDn5K_o2-Cwv_HO0S.js +0 -18
- package/dist/assets/CustomerOnboardingContainerPage-qmrLtjkH-DQJmN93N.js +0 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-CEOJEMdY-DT18GfmQ.js +0 -202
- package/dist/assets/MagicLinkACHDetailsPage-DtxKOlmX-CpqgcNTX.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-C7DsI3GD-BlJhnU2E.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-BQtq93Cv-BHKRiqEV.js +0 -1
- package/dist/assets/MailingDetailsSection-CMekdUCQ-CQsTvQzd.js +0 -21
- package/dist/assets/ReimbursementApprovalRuleDetailPage-gUzCi41q-BI6k8ONl.js +0 -24
- package/dist/assets/StatementItem-BMV39A0D-p14qABNB.js +0 -31
- package/dist/assets/VendorDomesticWireDetailsPage-Dfawpwuo-B0pR4aPO.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CBKqnkvK-DG06lBBL.js +0 -1
- package/dist/assets/VideoPopup-BD0vmbkL-CgJvMaZi.js +0 -31
- package/dist/assets/mapLoadingInProgressToTreeNode-B5fs_QGb-BYjU1VJl.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-BufNagSk-5rdxQyBh.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BHbBvkxK-COO9Ixh2.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BOahnk__-DNxDGSc8.js +0 -1
- package/dist/assets/toCOABalancesWithID-DScSc4rG-2ZhnxEpw.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{V as
|
|
1
|
+
import{V as l,fs as tn,q as We,d as nn,a8 as an,cB as me,aN as He,C as ft,aA as Ke,bz as on,o as re,ab as sn,c as Q,aO as rn,hF as ln,g6 as cn,ft as yt,eU as Ot,F as Ye,eV as gt,y as fe,g9 as ye,cO as dn,ak as pn,hG as ht,ac as St,cM as un,g8 as mn}from"./index-BBJ8MbHB.js";import{a as m}from"./sentry-CTfRDee5.js";import{n as P,k as wt}from"./mui-CqcpY1UR.js";import{bi as j}from"./zeni-epic-state-n7oqKrUc.js";import{s as Ct,o as fn}from"./PaymentAccountSetupBillingAddressSection-s9EEHxoG-Ccng4Jbq.js";import{b as bt,f as yn,a as It}from"./CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-A_sh3_b9.js";import{s as gn,S as hn}from"./CompanyOfficerDetailsSection-BtUBatbQ-CS2katNY.js";import{t as Sn}from"./QBOSetupSection-DcLYyQ5m-DYCAROkc.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";import"./SetUpAccountSection-Dhb8A0Oe-CHZzV0W4.js";import"./LabeledAddressValueField-Bt41wdNQ-CdN5suyF.js";import"./LabeledCreatableSingleSelectField-fycRE7PX-BLM_4t-_.js";import"./LabeledDocumentField-C73vQNgq-xVgwP02Y.js";import"./QBOConnectionDialog-BFy0lMZd-D5AhMSo8.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]="123fe9f6-0901-4bba-a4c8-3f62a038fe2d",n._sentryDebugIdIdentifier="sentry-dbid-123fe9f6-0901-4bba-a4c8-3f62a038fe2d")}catch{}})();const Cn=({companyView:n,companyOfficerLocalData:C,allNationalityCountries:r,isVerificationPopupOpen:g,setIsVerificationPopupOpen:v,verifiedPhoneNumber:O,onPhoneVerified:h,...w})=>{const y=We(),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:_}=c,$=n?.company.company.featuresActivationInfo.connectedAccountProvider;return l.jsx(bn,{children:l.jsx(hn,{companyOfficerData:C,allOfficers:V??[],allNationalityCountries:r,sectionHeader:_,isPopupOpen:g,productType:"onboarding",connectedAccountProvider:$,showInfoTooltip:y!=="small",showCompletedIcon:y==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:O,onPhoneVerified:h,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:v,...w})})},bn=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
|
5
|
-
`,In=({fileProps:n,companyDetails:C,companyIndustries:r,sectionId:g,isCompleted:v,isDisabled:O,style:h,onCompanyAddressClick:w,onRegisteredAddressClick:y})=>{const V=We(),{company_details:
|
|
5
|
+
`,In=({fileProps:n,companyDetails:C,companyIndustries:r,sectionId:g,isCompleted:v,isDisabled:O,style:h,onCompanyAddressClick:w,onRegisteredAddressClick:y})=>{const V=We(),{company_details:c}=Ye.getLocalizedStrings().customerOnboardingPage.sections,{title:_}=c;return l.jsx(Pn,{children:l.jsx(gn,{fileProps:n,companyDetails:C,sectionId:g,isDisabled:O,style:h,sectionHeader:_,productType:"onboarding",showInfoTooltip:V!=="small",showCompletedIcon:V==="small",isCompleted:v,allIndustries:r,optionalFields:["companyLegalName","companyDescription","companyAddress","companyIndustry","typeOfIncorporation","incDate","certificateOfIncorporation","ein","companyPhone","primaryContactName"],onCompanyAddressClick:w,onRegisteredAddressClick:y})})},Pn=P.div`
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
justify-content: center;
|
|
@@ -10,7 +10,7 @@ import{V as c,fs as tn,q as We,d as nn,a8 as an,cB as me,aN as He,C as ft,aA as
|
|
|
10
10
|
display: flex;
|
|
11
11
|
`,wn=P.input`
|
|
12
12
|
display: none;
|
|
13
|
-
`,xn=({isValid:n,sectionId:C="onboardingQboConnection",...r})=>{const{register:g}=dn();return c.jsxs(On,{children:[c.jsx(wn,{type:"hidden",...g(`${C}.connected`,{validate:v=>v==="true"}),value:n?"true":"false"}),c.jsx(Sn,{isValid:n,...r})]})},B="companyDetails",b="companyOfficer",J="onboardingPaymentAccountSetupSection",Pt="customerOnboardingDetailPage",f="onboardingSubscriptionBillingAddress",ge="onboardingQboConnection",he={titleWidth:new fe(343,580,726,826),topNavBarHeight:new fe(52,52,63),topNavBarLeftRightSpace:new fe(Q[5],Q[9],112),subTitlePaddingTop:new fe(Q[3],Q[3]),subTitlePaddingBottom:new fe(Q[3],Q[3])},kn=n=>`${n}_form`,ce=Ye.getLocalizedStrings(),vn=({fileProps:n,isRefreshingViewInBackground:C,isAdmin:r,onboardingCustomerView:g,companyTitles:v,connectedAccountProvider:O,analytics:h,cardPaymentView:w,stripeKey:y,googleAPIKey:V,handleCreateCardSetupIntent:l,handleConfirmCardSetupIntent:_,updateCardPaymentModalState:$,handleAddCardPaymentSource:I,resetCardPaymentViewState:ee,handleResetCardPaymentErrorStatuses:ve,redirectToProductSuitePage:Se,onFormErrorsChange:D,...Ne})=>{const R=We(),Ve=m.useRef(null),_e=m.useRef(null),W=m.useRef(null),Ae=m.useRef(null),[Ce,z]=m.useState(!1),[U,q]=m.useState("next"),[F,be]=m.useState(!1),[le,Ie]=m.useState(!1),[te,Y]=m.useState(null),{onAddressClick:ne,onCompanyDetailsChanged:Pe,onCompanyOfficerUpdated:A,onFetchLinkTokenClick:Oe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:oe,onDeleteFile:N,onEditFileName:Ge,updateFilesEntity:Ze,onGetOtp:xt,onSkipSetupClick:De,onUpdateCustomerView:Te,updateStepHandler:M,onVerifyOtp:kt,onResendOtp:vt,handleOnConnectClick:Nt,updateQBOPopupState:Vt,onUpdateStep:$e,onAddressEditHandler:_t}=Ne,At=nn(),s=an({mode:"onSubmit",reValidateMode:"onChange",defaultValues:Qe(g,g.allNationalityCountries),values:Qe(g,g.allNationalityCountries),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),H=m.useCallback(()=>{const e=[];return(s.getFieldState(J).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=H();D?.(e)},[H,D]),m.useEffect(()=>{const e=s.watch((t,{name:a,type:i})=>{a!=null&&(i==="change"||i==="blur")&&me(()=>{const u=H();D?.(u)})});return()=>e.unsubscribe()},[s,H,D]);const Xe=e=>{tt(e)},{companyView:se,companyDetailsLocalData:d,companyOfficerLocalData:E,currentStep:o,completedSteps:Je,saveStatus:x,allSteps:S,allRequiredStepsCompleted:Fe,paymentAccount:K,paymentAccountStatus:et,externalConnections:Ee,plaidConnectionDetails:Le,uiState:je,allNationalityCountries:Be,pendingSaveDetails:{companyDetails:Dt,officer:Tt},subscriptionBillingAddress:G}=g,we=m.useRef(""),$t=e=>{we.current=e;const t=Object.values(g.companyOfficerLocalData).findIndex(i=>i?.isSelectedForVerification===!0)??0,a=t<0?0:t;s.clearErrors(`${b}.${a}.phone`)},tt=e=>{e!=null&&!ye(e)?s.trigger(`${b}.${Z}.phone`):xt(e)},Z=Object.values(E).findIndex(e=>e?.isSelectedForVerification===!0)??0,T=`Officer_${Z<0?1:Z+1}`,Ft=se?.companyOfficers.slice(0,10).sort((e,t)=>e.user.createTime?.isAfter(t.user.createTime)===!0?1:-1),Re=E[T]?.userId!=null?Ft?.find(e=>e.user.userId===E[T]?.userId)?.address:null,nt=E[T]?.addressStatus?.addressToCreate,xe=se?.companyAddress,at=d?.addressStatus?.addressToCreate,ze=se?.registeredAddress,ot=d?.registeredAddressStatus?.addressToCreate,{customerOnboardingPage:Et,common:p}=ce,{footer:Lt,steps:jt}=Et,{buttons:st}=Lt,it=jt[o],Ue=S.length,ie=He(x.fetchState),L=He(o);function Bt(){return Ee?.accounting[0]?.isValid??!1}const ue=()=>{const e=Object.values(Le).some(u=>u.fetchStatus.fetchState==="Completed"),t=K?.providerVerificationStatus?.code?.includes("verified")??!1,a=w.cardsList.length>0,i=w.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return e&&t||!t&&!K&&a||!a&&!K&&i};function rt(){if(s.getFieldState(f).error)return!1;const e=s.getValues(f),t=G?.street.join("").trim(),a=G?.city,i=G?.state,u=G?.country,k=G?.postalCode!=null&&G.postalCode||e.postalCode||p.strings.empty;return!!t&&!!a&&!!i&&!!u&&!!k}const ct=He(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],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(()=>{ct==="pending_manual_verification"&&K?.providerVerificationStatus?.code==="manually_verified"&&h.trackOnboardingBankAccountVerified("manual")},[h,K?.providerVerificationStatus?.code,ct]);const Ut=async(e,t)=>{if(e.includes(B))Pe?.(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 i=t[f];if(e.includes(`${f}.street`)&&t[f].street!=null){const{addressValue:u}=t[f].street,k=Ot(u?.country);i={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&&(i={...i,country:k})}else e===`${f}.country`&&a.selectedOption!=null?i={...i,countryCode:gt(a.selectedOption)}:a.selectedOption!=null&&e.includes(`${f}.street`)===!1&&(i={...i,countryCode:gt(a.selectedOption)});_t(i)}};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(Qe(g,Be),{keepDirtyValues:!1}),L==="company_details"&&o==="link_payment_account"&&!S.includes("qbo_connection")&&!g.qboConnected&&Se())},[s,g,ie,x.fetchState,Be,L,o,S,Se]),m.useEffect(()=>{Ce&&ie==="In-Progress"&&x.fetchState==="Completed"&&(De(),h.track(ft.Event.onboardingSkipAndSave))},[ie,Ce,x.fetchState,De]),m.useEffect(()=>{te?.shouldNavigate===!0&&ie==="In-Progress"&&x.fetchState==="Completed"&&(Y(null),M(te.fromStep,te.stepDirection,!0))},[te,ie,x.fetchState,M]),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 lt=()=>{const e=E[T];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),Mt=!Ke(at!=null?j(at):null,xe!=null?j(xe):null),Ht=!Ke(ot!=null?j(ot):null,ze!=null?j(ze):null),Kt=s.getFieldState(B).isDirty||Mt||Ht||Dt,qe=s.getFieldState(b).isDirty&<()||qt||Tt,dt=s.getFieldState(`${f}`).isDirty,ke=d?.primaryContactLocalData,Qt=()=>{M(o,"previous",!0)},Wt=()=>{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=H();D?.(e),rt()&&dt?(Wt(),Te(T,!1,!0),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"})):M(o,"next",!0)},200):M(o,"next",!0);break;case"qbo_connection":M(o,"next",!0);break;case"company_officer":if(qe){const e=pt();if(me(()=>{const t=H();D?.(t)}),e.needsOtp&&e.phoneNumber&&ye(e.phoneNumber)){const t=s.formState.errors[b]?.[Z<0?0:Z],a=t?.phone,i=t!=null&&Object.keys(t).some(u=>u!=="phone"&&t[u]!=null);if(a!=null&&!i){Xe(e.phoneNumber);return}}e.isValid&&(Te(T,!1,!1),h.trackOnboardingCompanyOfficerSave(ut(),{legalName:d?.companyLegalName},zt()),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"}))}else M(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(`${J}`),s.trigger(`${f}`)),t&&s.trigger(ge),me(()=>{const a=H();D?.(a)}),e?$e("link_payment_account"):t&&$e("qbo_connection");return}}if(Kt||qe||!ke?.email){const e=Zt(),t=qe?pt():{isValid:!0};me(()=>{const a=H();D?.(a)}),e&&t.isValid?(Fe&&(z(!0),Xt()),Te(T,!Fe,!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:ke?.firstName,lastName:ke?.lastName,email:ke?.email}),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"})):t.isValid||$e("company_officer")}else Fe?Gt():M(o,"next",!0);break}},Gt=()=>{x.fetchState!=="In-Progress"&&(De(),h.track(ft.Event.onboardingSkipAndSave))},pt=()=>{const e=E[T],t=e?.email??p.strings.empty,a=e?.phone??p.strings.empty,i=e?.ssn??p.strings.empty,u=e?.ownershipInCompany,k=Z<0?0:Z,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&<()||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&&O==="unit"&&(we.current!==""&&a===we.current||(mt=!0,s.setError(`${b}.${k}.phone`,{type:"custom",message:ce.commonSetUp.businessVerification.phoneValidationError},{shouldFocus:o==="company_officer"}),X=!1)),u!=null&&u>100&&(s.trigger(`${b}.${k}.ownership`,{shouldFocus:o==="company_officer"}),X=!1),i&&mn.test(i)===!1&&(s.trigger(`${b}.${k}.ssn`,{shouldFocus:o==="company_officer"}),X=!1),{isValid:X,needsOtp:mt,phoneNumber:a}},Zt=()=>{const e=d?.website?.toString()??p.strings.empty,t=d?.phone??p.strings.empty,a=d?.taxIdOrEIN??p.strings.empty,i=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),(!i||St.test(i)===!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[T];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")},[Me,Jt]=m.useState(!1);return c.jsxs(_n,{children:[c.jsxs(An,{windowSize:R,children:[S.indexOf(o)>=0?c.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"}):c.jsx(Dn,{windowSize:R,children:c.jsx($n,{windowSize:R,children:c.jsx(Tn,{})})}),c.jsx(sn,{...s,children:c.jsx(En,{id:kn(Pt),children:S.map(e=>{let t;t=c.jsx(Ct,{connectedAccountProvider:O,paymentAccount:K,accountStatus:et,plaidConnectionDetails:Le,sectionId:J,hasError:s.getFieldState(J).error!=null||le&&!ue(),isValid:ue(),analytics:h,onFetchLinkTokenClick:Oe,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,cardPaymentView:w,resetCardPaymentViewState:ee,updateCardPaymentModalState:$,cardSetupInProgress:Me,subscriptionBillingAddressSectionId:f});let a=Ve;switch(e){case"link_payment_account":t=c.jsx(Ct,{connectedAccountProvider:O,paymentAccount:K,accountStatus:et,plaidConnectionDetails:Le,subscriptionBillingAddressSectionId:f,sectionId:J,hasError:s.getFieldState(J).error!=null||le&&!ue(),isValid:ue(),analytics:h,onFetchLinkTokenClick:Oe,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,updateCardPaymentModalState:$,cardPaymentView:w,resetCardPaymentViewState:ee,cardSetupInProgress:Me,googleAPIKey:V,subscriptionBillingAddress:G});break;case"qbo_connection":t=c.jsx(xn,{sectionId:ge,hasError:s.getFieldState(ge).error!=null,isAdmin:r,isValid:Ee?.accounting[0]?.isValid??!1,companyName:se?.company.company.companyInfo.companyLegalName,saveConnectionState:Ee?.saveConnectionState,isQBOPopupOpen:je.isQBOPopupOpen,handleOnConnectClick:Nt,updateQBOPopupState:Vt}),a=_e;break;case"company_officer":t=c.jsx(Cn,{companyOfficerLocalData:E,allNationalityCountries:Be,isCompleted:Je.includes("company_officer"),companyView:se,sectionId:b,filesEndPoint:n.filesEndPoint,authParams:n.authParams,isRefreshingViewInBackground:C,companyTitles:v,isVerificationPopupOpen:F,setIsVerificationPopupOpen:be,onGetOtp:Xe,onVerifyOtp:kt,onResendOtp:vt,onOfficerAddressClick:i=>ne(i,Re?.addressId),updateFilesEntity:Ze,onEditFileName:Ge,onDeleteFile:N,verifiedPhoneNumber:we.current,onPhoneVerified:$t,isDisabled:x.fetchState==="In-Progress"?"readonly":void 0,triggerError:tt}),a=Ae;break;case"company_details":t=c.jsx(In,{fileProps:{...n,onEditFileName:Ge,onDeleteFile:N,updateFilesEntity:Ze},sectionId:B,companyIndustries:g.companyIndustries,companyDetails:d,isDisabled:x.fetchState==="In-Progress"?"readonly":void 0,isCompleted:Je.includes("company_details"),onCompanyAddressClick:i=>{const u=se?.company.company.companyOnboardingInfo.subscriptionBillingAddressId;xe?.addressId==null&&u!=null?ne(i,u):ne(i,xe?.addressId)},onRegisteredAddressClick:i=>ne(i,ze?.addressId)}),a=W;break}return c.jsxs(Fn,{ref:a,isVisible:o===e,includeAnimation:o==="link_payment_account"||o==="qbo_connection"?!je.isQBOPopupOpen:o==="company_officer"?!F:!0,paddingBottom:e==="company_details"||e==="company_officer"?Q[6]:Q[0],stepAnimationDirection:U,children:[S.indexOf(o)>=0?c.jsx(Ln,{windowSize:R,children:it.sectionSubTitle}):null,t]},e)})})}),c.jsx(rn,{formId:`${Pt}`,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:Qt,label:st.back,isDisabled:x.fetchState==="In-Progress"||S.indexOf(o)===0},containerStyle:{width:"auto",justifyContent:"center"},showCancel:!0})]}),c.jsx(fn,{handleConfirmCardSetupIntent:_,updateCardPaymentModalState:$,handleCreateCardSetupIntent:l,handleAddCardPaymentSource:I,cardPaymentView:w,stripeKey:y,isCardPaymentOpen:je.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ve,cardSetupInProgress:Me,setCardSetupInProgress:Jt})]})},Nn=wt`
|
|
13
|
+
`,xn=({isValid:n,sectionId:C="onboardingQboConnection",...r})=>{const{register:g}=dn();return l.jsxs(On,{children:[l.jsx(wn,{type:"hidden",...g(`${C}.connected`,{validate:v=>v==="true"}),value:n?"true":"false"}),l.jsx(Sn,{isValid:n,...r})]})},B="companyDetails",b="companyOfficer",J="onboardingPaymentAccountSetupSection",Pt="customerOnboardingDetailPage",f="onboardingSubscriptionBillingAddress",ge="onboardingQboConnection",he={titleWidth:new fe(343,580,726,826),topNavBarHeight:new fe(52,52,63),topNavBarLeftRightSpace:new fe(Q[5],Q[9],112),subTitlePaddingTop:new fe(Q[3],Q[3]),subTitlePaddingBottom:new fe(Q[3],Q[3])},kn=n=>`${n}_form`,le=Ye.getLocalizedStrings(),vn=({fileProps:n,isRefreshingViewInBackground:C,isAdmin:r,onboardingCustomerView:g,companyTitles:v,connectedAccountProvider:O,analytics:h,cardPaymentView:w,stripeKey:y,googleAPIKey:V,handleCreateCardSetupIntent:c,handleConfirmCardSetupIntent:_,updateCardPaymentModalState:$,handleAddCardPaymentSource:I,resetCardPaymentViewState:ee,handleResetCardPaymentErrorStatuses:ve,redirectToProductSuitePage:Se,onFormErrorsChange:D,...Ne})=>{const R=We(),Ve=m.useRef(null),_e=m.useRef(null),W=m.useRef(null),Ae=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:Pe,onCompanyOfficerUpdated:A,onFetchLinkTokenClick:Oe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:oe,onDeleteFile:N,onEditFileName:Ge,updateFilesEntity:Ze,onGetOtp:xt,onSkipSetupClick:De,onUpdateCustomerView:Te,updateStepHandler:M,onVerifyOtp:kt,onResendOtp:vt,handleOnConnectClick:Nt,updateQBOPopupState:Vt,onUpdateStep:$e,onAddressEditHandler:_t}=Ne,At=nn(),s=an({mode:"onSubmit",reValidateMode:"onChange",defaultValues:Qe(g,g.allNationalityCountries),values:Qe(g,g.allNationalityCountries),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),H=m.useCallback(()=>{const e=[];return(s.getFieldState(J).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=H();D?.(e)},[H,D]),m.useEffect(()=>{const e=s.watch((t,{name:a,type:i})=>{a!=null&&(i==="change"||i==="blur")&&me(()=>{const u=H();D?.(u)})});return()=>e.unsubscribe()},[s,H,D]);const Xe=e=>{tt(e)},{companyView:se,companyDetailsLocalData:d,companyOfficerLocalData:E,currentStep:o,completedSteps:Je,saveStatus:x,allSteps:S,allRequiredStepsCompleted:Fe,paymentAccount:K,paymentAccountStatus:et,externalConnections:Ee,plaidConnectionDetails:Le,uiState:je,allNationalityCountries:Be,pendingSaveDetails:{companyDetails:Dt,officer:Tt},subscriptionBillingAddress:G}=g,we=m.useRef(""),$t=e=>{we.current=e;const t=Object.values(g.companyOfficerLocalData).findIndex(i=>i?.isSelectedForVerification===!0)??0,a=t<0?0:t;s.clearErrors(`${b}.${a}.phone`)},tt=e=>{e!=null&&!ye(e)?s.trigger(`${b}.${Z}.phone`):xt(e)},Z=Object.values(E).findIndex(e=>e?.isSelectedForVerification===!0)??0,T=`Officer_${Z<0?1:Z+1}`,Ft=se?.companyOfficers.slice(0,10).sort((e,t)=>e.user.createTime?.isAfter(t.user.createTime)===!0?1:-1),Re=E[T]?.userId!=null?Ft?.find(e=>e.user.userId===E[T]?.userId)?.address:null,nt=E[T]?.addressStatus?.addressToCreate,xe=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=He(x.fetchState),L=He(o);function Bt(){return Ee?.accounting[0]?.isValid??!1}const ue=()=>{const e=Object.values(Le).some(u=>u.fetchStatus.fetchState==="Completed"),t=K?.providerVerificationStatus?.code?.includes("verified")??!1,a=w.cardsList.length>0,i=w.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return e&&t||!t&&!K&&a||!a&&!K&&i};function rt(){if(s.getFieldState(f).error)return!1;const e=s.getValues(f),t=G?.street.join("").trim(),a=G?.city,i=G?.state,u=G?.country,k=G?.postalCode!=null&&G.postalCode||e.postalCode||p.strings.empty;return!!t&&!!a&&!!i&&!!u&&!!k}const lt=He(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],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))Pe?.(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 i=t[f];if(e.includes(`${f}.street`)&&t[f].street!=null){const{addressValue:u}=t[f].street,k=Ot(u?.country);i={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&&(i={...i,country:k})}else e===`${f}.country`&&a.selectedOption!=null?i={...i,countryCode:gt(a.selectedOption)}:a.selectedOption!=null&&e.includes(`${f}.street`)===!1&&(i={...i,countryCode:gt(a.selectedOption)});_t(i)}};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(Qe(g,Be),{keepDirtyValues:!1}),L==="company_details"&&o==="link_payment_account"&&!S.includes("qbo_connection")&&!g.qboConnected&&Se())},[s,g,ie,x.fetchState,Be,L,o,S,Se]),m.useEffect(()=>{Ce&&ie==="In-Progress"&&x.fetchState==="Completed"&&(De(),h.track(ft.Event.onboardingSkipAndSave))},[ie,Ce,x.fetchState,De]),m.useEffect(()=>{te?.shouldNavigate===!0&&ie==="In-Progress"&&x.fetchState==="Completed"&&(Y(null),M(te.fromStep,te.stepDirection,!0))},[te,ie,x.fetchState,M]),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[T];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),Mt=!Ke(at!=null?j(at):null,xe!=null?j(xe):null),Ht=!Ke(ot!=null?j(ot):null,ze!=null?j(ze):null),Kt=s.getFieldState(B).isDirty||Mt||Ht||Dt,qe=s.getFieldState(b).isDirty&&ct()||qt||Tt,dt=s.getFieldState(`${f}`).isDirty,ke=d?.primaryContactLocalData,Qt=()=>{M(o,"previous",!0)},Wt=()=>{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=H();D?.(e),rt()&&dt?(Wt(),Te(T,!1,!0),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"})):M(o,"next",!0)},200):M(o,"next",!0);break;case"qbo_connection":M(o,"next",!0);break;case"company_officer":if(qe){const e=pt();if(me(()=>{const t=H();D?.(t)}),e.needsOtp&&e.phoneNumber&&ye(e.phoneNumber)){const t=s.formState.errors[b]?.[Z<0?0:Z],a=t?.phone,i=t!=null&&Object.keys(t).some(u=>u!=="phone"&&t[u]!=null);if(a!=null&&!i){Xe(e.phoneNumber);return}}e.isValid&&(Te(T,!1,!1),h.trackOnboardingCompanyOfficerSave(ut(),{legalName:d?.companyLegalName},zt()),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"}))}else M(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(`${J}`),s.trigger(`${f}`)),t&&s.trigger(ge),me(()=>{const a=H();D?.(a)}),e?$e("link_payment_account"):t&&$e("qbo_connection");return}}if(Kt||qe||!ke?.email){const e=Zt(),t=qe?pt():{isValid:!0};me(()=>{const a=H();D?.(a)}),e&&t.isValid?(Fe&&(z(!0),Xt()),Te(T,!Fe,!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:ke?.firstName,lastName:ke?.lastName,email:ke?.email}),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"})):t.isValid||$e("company_officer")}else Fe?Gt():M(o,"next",!0);break}},Gt=()=>{x.fetchState!=="In-Progress"&&(De(),h.track(ft.Event.onboardingSkipAndSave))},pt=()=>{const e=E[T],t=e?.email??p.strings.empty,a=e?.phone??p.strings.empty,i=e?.ssn??p.strings.empty,u=e?.ownershipInCompany,k=Z<0?0:Z,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&&O==="unit"&&(we.current!==""&&a===we.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),i&&mn.test(i)===!1&&(s.trigger(`${b}.${k}.ssn`,{shouldFocus:o==="company_officer"}),X=!1),{isValid:X,needsOtp:mt,phoneNumber:a}},Zt=()=>{const e=d?.website?.toString()??p.strings.empty,t=d?.phone??p.strings.empty,a=d?.taxIdOrEIN??p.strings.empty,i=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),(!i||St.test(i)===!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[T];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")},[Me,Jt]=m.useState(!1);return l.jsxs(_n,{children:[l.jsxs(An,{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(Dn,{windowSize:R,children:l.jsx($n,{windowSize:R,children:l.jsx(Tn,{})})}),l.jsx(sn,{...s,children:l.jsx(En,{id:kn(Pt),children:S.map(e=>{let t;t=l.jsx(Ct,{connectedAccountProvider:O,paymentAccount:K,accountStatus:et,plaidConnectionDetails:Le,sectionId:J,hasError:s.getFieldState(J).error!=null||ce&&!ue(),isValid:ue(),analytics:h,onFetchLinkTokenClick:Oe,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,cardPaymentView:w,resetCardPaymentViewState:ee,updateCardPaymentModalState:$,cardSetupInProgress:Me,subscriptionBillingAddressSectionId:f});let a=Ve;switch(e){case"link_payment_account":t=l.jsx(Ct,{connectedAccountProvider:O,paymentAccount:K,accountStatus:et,plaidConnectionDetails:Le,subscriptionBillingAddressSectionId:f,sectionId:J,hasError:s.getFieldState(J).error!=null||ce&&!ue(),isValid:ue(),analytics:h,onFetchLinkTokenClick:Oe,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,updateCardPaymentModalState:$,cardPaymentView:w,resetCardPaymentViewState:ee,cardSetupInProgress:Me,googleAPIKey:V,subscriptionBillingAddress:G});break;case"qbo_connection":t=l.jsx(xn,{sectionId:ge,hasError:s.getFieldState(ge).error!=null,isAdmin:r,isValid:Ee?.accounting[0]?.isValid??!1,companyName:se?.company.company.companyInfo.companyLegalName,saveConnectionState:Ee?.saveConnectionState,isQBOPopupOpen:je.isQBOPopupOpen,handleOnConnectClick:Nt,updateQBOPopupState:Vt}),a=_e;break;case"company_officer":t=l.jsx(Cn,{companyOfficerLocalData:E,allNationalityCountries:Be,isCompleted:Je.includes("company_officer"),companyView:se,sectionId:b,filesEndPoint:n.filesEndPoint,authParams:n.authParams,isRefreshingViewInBackground:C,companyTitles:v,isVerificationPopupOpen:F,setIsVerificationPopupOpen:be,onGetOtp:Xe,onVerifyOtp:kt,onResendOtp:vt,onOfficerAddressClick:i=>ne(i,Re?.addressId),updateFilesEntity:Ze,onEditFileName:Ge,onDeleteFile:N,verifiedPhoneNumber:we.current,onPhoneVerified:$t,isDisabled:x.fetchState==="In-Progress"?"readonly":void 0,triggerError:tt}),a=Ae;break;case"company_details":t=l.jsx(In,{fileProps:{...n,onEditFileName:Ge,onDeleteFile:N,updateFilesEntity:Ze},sectionId:B,companyIndustries:g.companyIndustries,companyDetails:d,isDisabled:x.fetchState==="In-Progress"?"readonly":void 0,isCompleted:Je.includes("company_details"),onCompanyAddressClick:i=>{const u=se?.company.company.companyOnboardingInfo.subscriptionBillingAddressId;xe?.addressId==null&&u!=null?ne(i,u):ne(i,xe?.addressId)},onRegisteredAddressClick:i=>ne(i,ze?.addressId)}),a=W;break}return l.jsxs(Fn,{ref:a,isVisible:o===e,includeAnimation:o==="link_payment_account"||o==="qbo_connection"?!je.isQBOPopupOpen:o==="company_officer"?!F:!0,paddingBottom:e==="company_details"||e==="company_officer"?Q[6]:Q[0],stepAnimationDirection:U,children:[S.indexOf(o)>=0?l.jsx(Ln,{windowSize:R,children:it.sectionSubTitle}):null,t]},e)})})}),l.jsx(rn,{formId:`${Pt}`,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:Qt,label:st.back,isDisabled:x.fetchState==="In-Progress"||S.indexOf(o)===0},containerStyle:{width:"auto",justifyContent:"center"},showCancel:!0})]}),l.jsx(fn,{handleConfirmCardSetupIntent:_,updateCardPaymentModalState:$,handleCreateCardSetupIntent:c,handleAddCardPaymentSource:I,cardPaymentView:w,stripeKey:y,isCardPaymentOpen:je.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ve,cardSetupInProgress:Me,setCardSetupInProgress:Jt})]})},Nn=wt`
|
|
14
14
|
from {
|
|
15
15
|
transform: translateY(100%);
|
|
16
16
|
opacity: 0;
|
|
@@ -94,7 +94,7 @@ import{V as c,fs as tn,q as We,d as nn,a8 as an,cB as me,aN as He,C as ft,aA as
|
|
|
94
94
|
text-align: ${n=>n.windowSize==="small"?"initial":"center"};
|
|
95
95
|
width: 100%;
|
|
96
96
|
white-space: pre-line;
|
|
97
|
-
`,Qe=(n,C)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:g,companyView:v}=n,O=
|
|
97
|
+
`,Qe=(n,C)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:g,companyView:v}=n,O=le.commonSetUp.businessVerification,h=le.companyPassport,w=v?.companyOfficers!=null&&v?.companyOfficers.length>0;return{[B]:{companyDescription:r?.companyDescription??le.common.strings.empty,ein:r?.companyFiles.find(y=>y.documentType==="tax_ein"),companyId:r?.companyId,syncToken:r?.syncToken,companyLegalName:r?.companyLegalName,companyWebsite:r?.website?.toString()??le.common.strings.empty,companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:n.companyIndustries.map(y=>y.code)},companyPhone:r?.phone,companyTaxId:r?.taxIdOrEIN,primaryContactName:{firstName:r?.primaryContactLocalData?.firstName,lastName:r?.primaryContactLocalData?.lastName},primaryContactEmail:r?.primaryContactLocalData?.email,primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(y=>y.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(y=>y.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:h.companyIncInfo.allTypesOfIncorporation}},[b]:Object.values(g).map((y,V)=>{const c=y,_=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:Ot(c?.nationalityCountryCode,C.map($=>$.countryCode)),ssn:c?.ssn,role:{selectedOption:c?.titleAtCompany,allOptions:O.allTypesOfRoles},phone:c?.phone,ownership:c?.ownershipInCompany,officerAddress:c?.addressStatus?.addressToCreate,selectDocument:{front:yt(!0,c?.userFiles??[],_),back:yt(!1,c?.userFiles??[],_),selectDocumentType:_},isSelectedForVerification:!w&&V===0?!0:c?.isSelectedForVerification??!1,userVerificationStatus:c?.userVerificationStatus,syncToken:c?.syncToken,isPhoneVerified:c?.isPhoneVerified,otpChallenge:c?.otpChallenge}}),[J]:{account:{allOptions:[],selectedOption:void 0}},[f]:ln(f,n?.subscriptionBillingAddress)[f],[ge]:{connected:n.externalConnections?.accounting[0]?.isValid??!1}}},ia=n=>{const{onboardingCustomerView:C,cardPaymentView:r,signedInUser:g,currentTenant:v,isOnAddressPage:O,stripeKey:h,googleAPIKey:w,onUpdateStep:y,onZeniLogoClick:V,handleLogOutClick:c,handleCockpitClick:_,meetingUrl:$,analytics:I,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:ve,handleFetchPaymentSources:Se,updateCardPaymentModalState:D,resetCardPaymentViewState:Ne,handleResetCardPaymentErrorStatuses:R,redirectToProductSuitePage:Ve,..._e}=n,{allSteps:W,completedSteps:Ae,halfCompletedSteps:Ce,currentStep:z,fetchStatus:U}=C,q=m.useRef(z),F=m.useRef(W),[be,ce]=m.useState(!1),[Ie,te]=m.useState([]),Y={allSteps:W,isOnAddressPage:O,completedSteps:Ae,halfCompletedSteps:Ce,errorSteps:Ie,currentStep:z,fetchStatus:U,signedInUser:g,currentTenant:v,onUpdateStep:A=>{y(A)},onZeniLogoClick:V,handleLogOutClick:c,handleCockpitClick:_,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(()=>{W.length!==F.current.length&&(F.current=W)},[W]);const ne=(A,Oe,de)=>{const ae=F.current.length,pe=F.current.indexOf(A);switch(Oe){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}}},Pe=U.fetchState==="In-Progress"||U.fetchState==="Not-Started";return l.jsx(jn,{isOnAddressPage:O,children:O?l.jsx(bt,{...Y}):l.jsxs(Bn,{children:[l.jsx(bt,{...Y}),Pe?l.jsx(yn,{isNoStepsPage:!1}):l.jsx(vn,{onboardingCustomerView:C,analytics:I,updateStepHandler:ne,onUpdateStep:y,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:ve,updateCardPaymentModalState:D,handleFetchPaymentSources:Se,cardPaymentView:r,resetCardPaymentViewState:Ne,stripeKey:h,googleAPIKey:w,handleResetCardPaymentErrorStatuses:R,redirectToProductSuitePage:Ve,onFormErrorsChange:te,..._e}),Pe?null:l.jsx(tn,{isFooterRendered:!0,meetingUrl:$,analytics:I,productType:"onboarding"})]})})},jn=P.div`
|
|
98
98
|
display: flex;
|
|
99
99
|
flex-direction: column;
|
|
100
100
|
width: ${n=>n.isOnAddressPage?"fit-content":"100%"};
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import{q as M,a7 as B,av as I,d as _,V as e,bz as U,o as t,aM as k,bl as W,fs as V,F as A,ak as H,ae as N,p as l,b,ah as R,l as Z,D as J,ap as q,aZ as G}from"./index-BBJ8MbHB.js";import{a as n}from"./sentry-CTfRDee5.js";import{n as o}from"./mui-CqcpY1UR.js";import{FM as K}from"./zeni-epic-state-n7oqKrUc.js";import Q from"./ConfettiBurst-1rYKpbAj-DHWZb_DF.js";import{T as X}from"./ProductsCarousel-6gthLCkf-RpcyX94H.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.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]="1dd3cba2-ee73-44ee-a852-e4d75758cecf",i._sentryDebugIdIdentifier="sentry-dbid-1dd3cba2-ee73-44ee-a852-e4d75758cecf")}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(),Ie=({hasVerifiedBankAccount:i,meetingUrl:p,showUpdatePaymentDetailButton:f=!1,isVisitingFirstTime:$=!1,handleUpdatePaymentAddressDetailClick:v,...S})=>{const d=M(),x=B().analytics,w=I(),L=w.loggedInUser,a=w.currentTenant,[y,P]=n.useState(!1),{handleLogOutClick:z,onZeniLogoClick:T,handleCockpitClick:E}=S,O=_(),{customerOnboardingPage:c}=ee,h=s=>{const r=c.productSuite.messageBox;if(!s)return[r.withTaxAndPayroll,r.withCFO];const{productSettings:F}=s,{isPayrollEnabled:g,isCfoEnabled:u,isTaxEnabled:m}=F;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]},D=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(U,{title:c.productSuite.navTitle,showBackButton:!1,backgroundColor:O.colors.grey4,style:{zIndex:5},source:"CustomerOnboardingProductSuitePage",showLeftSection:d!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:t.sp0,paddingBottom:t.sp0},leftSideComponent:e.jsx(we,{children:e.jsx(ye,{"data-testid":k("zeni-logo-customer-onboarding-product-suite"),onClick:T})}),rightSideComponent:f?e.jsxs(be,{"data-testid":k("update-to-payment-address-details"),onClick:()=>D(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:L,currentTenant:a,onLogOutClick:z,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
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
min-width: 100%;
|
|
6
|
+
overflow: visible;
|
|
7
|
+
`,ie=o.div`
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
align-items: center;
|
|
11
|
+
flex: 1;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
min-height: 100vh;
|
|
15
|
+
background-image: ${i=>`url(https://storage.googleapis.com/zeni-apis.appspot.com/images/signin-background-${i.windowSize==="small"?"m":"w"}-${i.theme.mode==="dark"?"d":"l"}.svg)`};
|
|
16
|
+
background-color: ${i=>i.theme.colors.grey4};
|
|
17
|
+
background-size: inherit;
|
|
18
|
+
background-attachment: fixed;
|
|
19
|
+
background-position: ${i=>i.windowSize==="small"?"center center":"right center"};
|
|
20
|
+
background-repeat: no-repeat;
|
|
21
|
+
|
|
22
|
+
${i=>i.theme.breakpoints.down("lg")} {
|
|
23
|
+
background-size: cover;
|
|
24
|
+
}
|
|
25
|
+
`,oe=o.div`
|
|
26
|
+
position: fixed;
|
|
27
|
+
width: 100%;
|
|
28
|
+
top: ${t.sp0};
|
|
29
|
+
left: 0;
|
|
30
|
+
right: 0;
|
|
31
|
+
height: 62px;
|
|
32
|
+
padding: 0 ${t.sp2};
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: space-between;
|
|
36
|
+
z-index: 3;
|
|
37
|
+
`,re=o.div`
|
|
38
|
+
display: flex;
|
|
39
|
+
position: relative;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
width: 100%;
|
|
44
|
+
margin: 86px 0 0 0;
|
|
45
|
+
`,ne=o.div`
|
|
46
|
+
position: relative;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
width: fit-content;
|
|
51
|
+
border-radius: 50px;
|
|
52
|
+
margin-bottom: ${t.sp7};
|
|
53
|
+
cursor: default;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
|
|
56
|
+
&::before {
|
|
57
|
+
content: "";
|
|
58
|
+
position: absolute;
|
|
59
|
+
top: 0;
|
|
60
|
+
right: 0;
|
|
61
|
+
bottom: 0;
|
|
62
|
+
left: 0;
|
|
63
|
+
background-color: ${l.brandColorJadeLight};
|
|
64
|
+
opacity: 0.5;
|
|
65
|
+
z-index: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
> * {
|
|
69
|
+
position: relative;
|
|
70
|
+
z-index: 1;
|
|
71
|
+
}
|
|
72
|
+
`,se=o.div`
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
width: 100%;
|
|
77
|
+
height: 100%;
|
|
78
|
+
`,C=o.div`
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: flex-start;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
`,ae=o.div`
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
width: ${b.largeRegular.lineHeight};
|
|
87
|
+
height: ${b.largeRegular.lineHeight};
|
|
88
|
+
border-radius: 50%;
|
|
89
|
+
outline: 1px solid ${l.brandColorJadeDark};
|
|
90
|
+
background-color: ${l.brandColorPearl};
|
|
91
|
+
`,le=o(R)`
|
|
92
|
+
width: ${t.sp3};
|
|
93
|
+
height: ${t.sp3};
|
|
94
|
+
color: ${l.brandColorSapphire};
|
|
95
|
+
`,j=o(Z)`
|
|
96
|
+
color: ${l.brandColorSapphire};
|
|
97
|
+
text-align: center;
|
|
98
|
+
margin-left: ${t.sp2};
|
|
99
|
+
`,de=o.div`
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
width: 100%;
|
|
104
|
+
margin-bottom: ${t.sp4};
|
|
105
|
+
cursor: default;
|
|
106
|
+
`,ce=o(J)`
|
|
107
|
+
color: ${i=>i.theme.colors.primary};
|
|
108
|
+
text-align: center;
|
|
109
|
+
margin-left: ${t.sp2};
|
|
110
|
+
margin-right: ${t.sp2};
|
|
111
|
+
`,pe=o.div`
|
|
112
|
+
width: 1328px;
|
|
113
|
+
height: 512px;
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
overflow: visible;
|
|
118
|
+
margin-bottom: ${t.sp4};
|
|
119
|
+
`,he=o.a`
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
justify-content: center;
|
|
123
|
+
text-decoration: none;
|
|
124
|
+
width: 100%;
|
|
125
|
+
cursor: pointer;
|
|
126
|
+
color: ${l.brandColorSapphire};
|
|
127
|
+
&:hover {
|
|
128
|
+
.discover-class {
|
|
129
|
+
color: ${i=>i.theme.colors.primary};
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
`,ge=o(q)`
|
|
133
|
+
color: inherit;
|
|
134
|
+
text-align: center;
|
|
135
|
+
`,ue=o(G)`
|
|
136
|
+
width: ${t.sp3};
|
|
137
|
+
height: ${t.sp3};
|
|
138
|
+
color: inherit;
|
|
139
|
+
margin-left: 6px;
|
|
140
|
+
margin-top: ${t.sp1};
|
|
141
|
+
`,me=o.div`
|
|
142
|
+
width: 100%;
|
|
143
|
+
padding: 10px ${t.sp3};
|
|
144
|
+
position: sticky;
|
|
145
|
+
bottom: 0;
|
|
146
|
+
left: 0;
|
|
147
|
+
right: 0;
|
|
148
|
+
z-index: 3;
|
|
149
|
+
display: flex;
|
|
150
|
+
justify-content: space-between;
|
|
151
|
+
align-items: center;
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
`,fe=o.div`
|
|
154
|
+
display: flex;
|
|
155
|
+
position: relative;
|
|
156
|
+
justify-content: space-between;
|
|
157
|
+
width: 100%;
|
|
158
|
+
align-items: center;
|
|
159
|
+
`,xe=o.div`
|
|
160
|
+
display: flex;
|
|
161
|
+
left: ${t.sp4};
|
|
162
|
+
bottom: ${t.sp3};
|
|
163
|
+
position: fixed;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
align-items: center;
|
|
166
|
+
cursor: default;
|
|
167
|
+
`,we=o.div`
|
|
168
|
+
display: flex;
|
|
169
|
+
`,ye=o(N)`
|
|
170
|
+
height: ${t.sp4};
|
|
171
|
+
width: 102px;
|
|
172
|
+
color: ${i=>i.theme.colors.primary};
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
flex-shrink: 0;
|
|
175
|
+
margin-left: -${t.sp5};
|
|
176
|
+
`,ke=o(Y)`
|
|
177
|
+
width: ${t.sp4};
|
|
178
|
+
min-width: ${t.sp4};
|
|
179
|
+
height: ${t.sp4};
|
|
180
|
+
`,be=o.div`
|
|
181
|
+
display: flex;
|
|
182
|
+
flex-direction: row;
|
|
183
|
+
align-items: center;
|
|
184
|
+
width: fit-content;
|
|
185
|
+
white-space: nowrap;
|
|
186
|
+
cursor: pointer;
|
|
187
|
+
color: ${i=>i.theme.colors.hero};
|
|
188
|
+
&:hover {
|
|
189
|
+
.btnText {
|
|
190
|
+
color: ${i=>i.theme.colors.primary};
|
|
191
|
+
}
|
|
192
|
+
svg {
|
|
193
|
+
color: ${i=>i.theme.colors.primary};
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
margin-right: ${t.sp2};
|
|
197
|
+
`,Ce=o(H)`
|
|
198
|
+
margin-left: ${t.sp2};
|
|
199
|
+
`,je=o.div`
|
|
200
|
+
width: 200px;
|
|
201
|
+
height: ${t.sp4};
|
|
202
|
+
`;export{Ie as CustomerOnboardingProductSuitePage,Ie as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as ge,V as e,aw as Pt,ax as Ut,ay as Ot,o as a,az as Tt,C as MA,aA as Ht,aB as se,aC as Yt,aD as Kt,aE as Nt,aF as Gt,aG as zt,aH as Wt,aI as P,F as I,q as $,aJ as Y,aK as H,aL as q,aM as y,a8 as qt,aN as Te,L as He,ab as Xt,aO as Vt,y as Z,aP as K,aQ as _,al as AA,aR as Ye,aS as J,aT as U,aU as HA,p as f,an as Zt,d as iA,aV as $t,aW as YA,aX as _t,aY as Ar,aZ as er,ag as F,a_ as SA,c as S,ap as KA,ak as RA,a$ as Ke,b0 as Ne,b1 as Ge,b2 as tr,b3 as NA,a as rr,B as or,b4 as ar,b5 as ze,b6 as ir,b7 as gr,b8 as GA,b9 as nr,ba as Cr,bb as sr,bc as Er,m as We,b as dr,bd as Br,u as lr,be as qe,bf as Xe,am as Qr,bg as Ir,ah as cr,as as Ve}from"./index-
|
|
1
|
+
import{av as ge,V as e,aw as Pt,ax as Ut,ay as Ot,o as a,az as Tt,C as MA,aA as Ht,aB as se,aC as Yt,aD as Kt,aE as Nt,aF as Gt,aG as zt,aH as Wt,aI as P,F as I,q as $,aJ as Y,aK as H,aL as q,aM as y,a8 as qt,aN as Te,L as He,ab as Xt,aO as Vt,y as Z,aP as K,aQ as _,al as AA,aR as Ye,aS as J,aT as U,aU as HA,p as f,an as Zt,d as iA,aV as $t,aW as YA,aX as _t,aY as Ar,aZ as er,ag as F,a_ as SA,c as S,ap as KA,ak as RA,a$ as Ke,b0 as Ne,b1 as Ge,b2 as tr,b3 as NA,a as rr,B as or,b4 as ar,b5 as ze,b6 as ir,b7 as gr,b8 as GA,b9 as nr,ba as Cr,bb as sr,bc as Er,m as We,b as dr,bd as Br,u as lr,be as qe,bf as Xe,am as Qr,bg as Ir,ah as cr,as as Ve}from"./index-BBJ8MbHB.js";import{a as t,w as k}from"./sentry-CTfRDee5.js";import{n as g,a as hr,c as pA,k as R}from"./mui-CqcpY1UR.js";import{bg as pr,bh as Ze,EF as $e}from"./zeni-epic-state-n7oqKrUc.js";import{v as mr}from"./DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-1uwRQXQg.js";import{L as ur,k as xr}from"./ArAgingChart-CsFDVdeO-C-RKv3GM.js";import{E as fr,T as ne,I as _e}from"./ReloadCard-9KpQCrce-Y78Zw9cJ.js";import{L as wr,O as LA,c as dA}from"./TopExCard-o4Q3ze1b-CQFtRtLu.js";import{X as kr,Y as Dr,H as yr,P as jr,G as vr}from"./RevenueChart-DY2s_upY-DFXm-6Am.js";import br from"./InsightsCardStack-BBczCYEz-CM9k6Dqk.js";import{a as Mr}from"./AccountsPromoCardStack-CTkwARBJ-Dqd8qLkS.js";import{c as X}from"./SummaryCard-Byv4Hw8Q-CEnhPnYc.js";import{t as Sr,o as Rr}from"./arrow-south-east-round-PEovUgvH-D0tcq0ac.js";import{N as aA}from"./NavigationArrow-JLUXaIrz-BZffLUxV.js";import{k as zA}from"./NavigationDots-B0_dDbgu-D1euhRa0.js";import Lr from"./CompanyPassportCard-BOxM716U-DxvRrHgL.js";import{C as Fr}from"./gift-box-Cmt9OgIZ-DZtTQChg.js";import Jr from"./InformationCardStack-DnB7TmOk-BJQfDBIj.js";import{p as At}from"./chartTypes-BPPSjkhb-H7A_cnp3.js";import{h as Pr}from"./toCOABalancesWithID-CkjRB0sJ-DDXgenlP.js";import{V as Ur}from"./toChartData-CMi2WgAy-Bk_h1ue0.js";import{r as Or,i as Tr}from"./graphic-no-data-net-burn-l-CzmycA0m-CnFblD9c.js";import{N as Hr,J as Yr}from"./PromoBaseCards-CzPzj69A-DGTVwpLe.js";import{r as Kr}from"./core-BiYEzgTE.js";import{N as Nr,I as Gr}from"./VideoPlayer-9rYRtSLf-C_MG4aUQ.js";import zr from"./ConfettiBurst-1rYKpbAj-DHWZb_DF.js";import{F as Wr,G as qr,Y as Xr,X as Vr,R as Zr}from"./recharts-bDaLwU4I.js";import"./liveblocks-BstIT-4Z.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";import"./graphic-no-data-l-DU4J8fDt-D9COe3MR.js";(function(){try{var A=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new A.Error().stack;o&&(A._sentryDebugIds=A._sentryDebugIds||{},A._sentryDebugIds[o]="f72289e9-8ea7-4926-8f23-fb2eb5ed993b",A._sentryDebugIdIdentifier="sentry-dbid-f72289e9-8ea7-4926-8f23-fb2eb5ed993b")}catch{}})();const $r=g(_)`
|
|
2
2
|
color: ${A=>A.theme.colors.champion};
|
|
3
3
|
`,Ee=g.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as B,d as Z,F as _,av as ke,V as s,bz as qe,m as Je,C as Qe,bA as Xe,o as d,y as L,aA as X,bB as Ke,bC as et,ag as oe,c as $,b1 as tt,aS as st,L as Oe,n as Be,p as D,ap as Pe,aR as ot,b8 as at,am as nt,bD as it,at as rt,bE as ct,bF as ne,bG as lt,as as dt,al as pt,bH as ut,bI as gt}from"./index-
|
|
1
|
+
import{q as B,d as Z,F as _,av as ke,V as s,bz as qe,m as Je,C as Qe,bA as Xe,o as d,y as L,aA as X,bB as Ke,bC as et,ag as oe,c as $,b1 as tt,aS as st,L as Oe,n as Be,p as D,ap as Pe,aR as ot,b8 as at,am as nt,bD as it,at as rt,bE as ct,bF as ne,bG as lt,as as dt,al as pt,bH as ut,bI as gt}from"./index-BBJ8MbHB.js";import{a as S,w as K}from"./sentry-CTfRDee5.js";import{n as u,k as Ie}from"./mui-CqcpY1UR.js";import{bg as mt,EH as ht,E1 as ft,EI as bt,EJ as xt,EK as _t,EL as wt,EM as yt,EN as St,EO as vt,EP as Ct}from"./zeni-epic-state-n7oqKrUc.js";import{m as G,l as se}from"./analyticsHelper-D4lKCWjQ-7uZfvraO.js";import{g as jt,x as $t}from"./ReportTableViewSelector-BPliEsuo-CZegsDsW.js";import{q as kt}from"./InsightsSection-BTXj5WUe-BehAISJe.js";import{q as Ot,G as Bt,k as xe,H as ee,N as pe}from"./detailCommon-DdZdfmYT-DWQ_1h8d.js";import{G as Pt,P as It,X as _e,Y as we,H as ye}from"./RevenueChart-DY2s_upY-DFXm-6Am.js";import{C as Lt}from"./NoDataChart-DLKHNXD4-CdqcDLeH.js";import{n as R}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{p as Nt}from"./TimeRangeSwitcher-jct2_5PE-DPu4jgs4.js";import{b as Le}from"./TimeframeSwitcher-BK-qliOX-BjbSBToW.js";import{I as Rt,R as F,x as Dt,l as ue,D as Tt}from"./CollapsableReportTable-xkNXkjfh-CuBOzrbM.js";import{S as zt,M as At,g as Mt,C as te,L as Ne,D as Re,T as De}from"./mapSectionWithAcOnlyToTreeNode-rrJBbsC8-DldkvgD3.js";import{d as Et}from"./NoDataTable-BMD2qygC-4Ck98ufk.js";import{d as ge,l as me}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-BVNM6n_o.js";import{d as he}from"./mapLoadingInProgressToTreeNode-DGRrn6kh-B7ARKarP.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";import"./NavigationDots-B0_dDbgu-D1euhRa0.js";import"./chartTypes-BPPSjkhb-H7A_cnp3.js";import"./toCOABalancesWithID-CkjRB0sJ-DDXgenlP.js";import"./toChartData-CMi2WgAy-Bk_h1ue0.js";import"./AccountRow-BM3xLbeh-DwBWMEiu.js";import"./graphic-no-data-l-DU4J8fDt-D9COe3MR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a5ed3c0f-aa27-4049-8bce-021c4993e65d",e._sentryDebugIdIdentifier="sentry-dbid-a5ed3c0f-aa27-4049-8bce-021c4993e65d")}catch{}})();const Ft=e=>S.createElement("svg",{viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{opacity:.2,d:"M105.021 115.208C105.021 116.479 104.516 117.698 103.617 118.596C102.718 119.495 101.5 120 100.229 120H28.3539C27.083 120 25.8643 119.495 24.9656 118.596C24.067 117.698 23.5622 116.479 23.5622 115.208V14.5832C23.5622 13.3123 24.067 12.0936 24.9656 11.195C25.8643 10.2963 27.083 9.7915 28.3539 9.7915H71.4789L105.021 43.3332V115.208Z",fill:"#97C3B9"}),S.createElement("path",{opacity:.2,d:"M71.4785 9.7915V38.5415C71.4785 39.8123 71.9834 41.0311 72.882 41.9297C73.7806 42.8283 74.9994 43.3332 76.2702 43.3332H105.02",fill:"#97C3B9"}),S.createElement("path",{d:"M33.6636 70.0449H37.2636",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M33.6635 81.2539H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M33.6635 92.4626H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M33.6635 103.671H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M47.0987 70.0449L80.6987 70.0449",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M47.0987 81.2539L80.6987 81.2539",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M47.0987 92.4626L80.6987 92.4626",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M47.6084 103.671L81.2084 103.671",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M100.729 110.313C100.729 111.583 100.224 112.802 99.3258 113.701C98.4272 114.6 97.2084 115.104 95.9375 115.104H24.0625C22.7917 115.104 21.5729 114.6 20.6743 113.701C19.7757 112.802 19.2709 111.583 19.2709 110.313V9.68766C19.2709 8.41683 19.7757 7.19805 20.6743 6.29944C21.5729 5.40083 22.7917 4.896 24.0625 4.896H67.1875L100.729 38.4377V110.313Z",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M67.1872 4.896V33.646C67.1872 34.9168 67.692 36.1356 68.5906 37.0342C69.4893 37.9328 70.708 38.4377 71.9789 38.4377H100.729",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M43.4564 21.9438V17.5398",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),S.createElement("path",{d:"M43.4564 54.3497V50.1257",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),S.createElement("path",{d:"M33.6635 40.7779C33.6635 42.8599 34.1555 45.0139 35.3975 46.7239C36.7415 48.5719 38.8595 49.5619 41.0735 49.9339C43.1375 50.2819 45.2855 50.1499 47.3135 49.6759C51.5135 48.6979 54.5675 44.3959 52.6955 40.1179C51.5795 37.5619 48.8855 36.4219 46.2635 36.1699C44.3675 35.9899 42.4294 35.9779 40.5334 35.7079C38.9374 35.4799 37.3475 34.9459 36.1895 33.7819C35.0315 32.6179 34.3895 30.8599 34.4495 29.1619C34.5335 26.6359 35.9915 24.4999 38.2415 23.3959C40.5995 22.2379 43.4675 22.1839 46.0115 22.6219C47.6855 22.9099 49.3294 23.6119 50.4994 24.8419C51.9694 26.3899 52.4555 28.5019 52.5275 30.5719",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"})),Vt=u.div`
|
|
2
2
|
justify-content: center;
|
|
3
3
|
align-items: center;
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aW as f,V as o,b3 as u,o as p}from"./index-
|
|
1
|
+
import{aW as f,V as o,b3 as u,o as p}from"./index-BBJ8MbHB.js";import{a as s}from"./sentry-CTfRDee5.js";import{a as h,n as m}from"./mui-CqcpY1UR.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]="cf6d9dbe-fbdd-4e83-babb-65c30678c404",e._sentryDebugIdIdentifier="sentry-dbid-cf6d9dbe-fbdd-4e83-babb-65c30678c404")}catch{}})();const D=s.memo(function({christmasAnimationEnabled:e=!1,newYearAnimationEnabled:n=!1}){const i=h(),d=e||n,r=n?"DashboardNewYearShow":"DashboardChristmasSnow",[a,l]=f(r,d),[t,b]=s.useState(null);a!=null&&t==null&&!l&&b(a);const c=e&&i.mode==="light"?.7:.2;return(e||n)&&t!=null?o.jsx(y,{contextWiseOpacity:c,newYearAnimationEnabled:n,children:o.jsx(u,{style:{width:"inherit",height:"inherit",display:"block"},animationData:t,play:!0,loop:n?5:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),y=m.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aK as u,hu as y,q as $,V as l,o as i,ak as c,al as w}from"./index-
|
|
1
|
+
import{aK as u,hu as y,q as $,V as l,o as i,ak as c,al as w}from"./index-BBJ8MbHB.js";import{n as t}from"./mui-CqcpY1UR.js";import{g as k}from"./BoxItem-WOrvBzns-DD4R649W.js";import{o as v}from"./commonDimensions-Ds75pRzR-DJ4H9OI5.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]="c0dbf8a1-ce23-4690-bc05-ad61ee62141e",e._sentryDebugIdIdentifier="sentry-dbid-c0dbf8a1-ce23-4690-bc05-ad61ee62141e")}catch{}})();function H({data:e,boxType:n}){const{counterParty:r,typeName:d,amount:p,logo:x,summary:b,direction:f,status:m}=e,g=r.length>0?r:b,a=u("0,0.00",p),s=y(m),o=$(),h=l.jsxs(D,{children:[l.jsx(T,{src:x?.toString(),loading:"lazy"}),l.jsx(I,{children:l.jsxs(_,{windowSize:o,children:[l.jsx(N,{children:g}),s!=null?l.jsxs(q,{windowSize:o,children:[l.jsx(E,{windowSize:o}),l.jsx(C,{color:s?.color,children:s?.value})]}):null]})}),l.jsxs(j,{windowSize:o,children:[d!=null?l.jsx(z,{children:l.jsx(S,{className:"tag",children:d})}):null,l.jsx(P,{windowSize:o,children:f==="debit"?`-${a}`:a})]})]});return l.jsx(k,{content:h,boxType:n,isDisabled:!1,isNotClickable:!0})}const j=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
|
|
4
4
|
align-items: ${e=>e.windowSize==="small"?"flex-end":"center"};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as M,q as S,V as t,bz as I,b1 as z,hD as F,o as r,F as Y,p as u,cq as C,dc as E,dd as L,d7 as _,de as T,y as q,ag as B,ak as R,c as g}from"./index-
|
|
1
|
+
import{d as M,q as S,V as t,bz as I,b1 as z,hD as F,o as r,F as Y,p as u,cq as C,dc as E,dd as L,d7 as _,de as T,y as q,ag as B,ak as R,c as g}from"./index-BBJ8MbHB.js";import{a as x}from"./sentry-CTfRDee5.js";import{n as a}from"./mui-CqcpY1UR.js";import{bh as V}from"./zeni-epic-state-n7oqKrUc.js";import{$ as A}from"./BoxItem-WOrvBzns-DD4R649W.js";import{o as N}from"./commonDimensions-Ds75pRzR-DJ4H9OI5.js";import{H as P}from"./DepositAccTransactionItem-BOPK7-7P-CmYSzV4w.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.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]="1017044b-1ecd-49ae-9649-009d55103bc9",e._sentryDebugIdIdentifier="sentry-dbid-1017044b-1ecd-49ae-9649-009d55103bc9")}catch{}})();const l=Y.getLocalizedStrings(),H={listItemMargin:new q(g[3],g[8])};function X(e){const i=E(e,o=>o.transactionDate.format(l.dateFormat.visual.MMMDCommaYYYYformat)),d=L(i,o=>o.length>0);return _(d,o=>({date:o[0].transactionDate,transactions:T(o,m=>m.transactionDate,"desc")}))}const G=F(X),pe=({transactionListView:e,onBackClick:i})=>{const d=M(),o=S(),m=x.createRef(),p=x.useRef(null),c=G(e.transactions),k=e.depositAccountName,b=c.length===0,j=n=>b===!1?c[n].transactions.length*N.transactionItemHeightResponsive.value(o)+45:24,v=({index:n,style:h})=>{if(b===!1){const s=c[n];return t.jsx(w,{style:{...h},children:t.jsx(y,{windowSize:o,children:t.jsxs($,{children:[t.jsx(Q,{children:V().year()===s.date.year()?s.date.format(l.dateFormat.visual.MMMDFormat):s.date.format(l.dateFormat.visual.MMMDCommaYYYYformat)}),t.jsx(U,{children:s.transactions.map((D,f)=>t.jsx(P,{data:D,boxType:A(f,s.transactions.length)},f))})]})})})}else return t.jsx(w,{style:{...h},children:t.jsx(J,{children:t.jsx(y,{windowSize:o,children:t.jsx(O,{children:l.transactionList.noTransactionsFoundForPrefix})})})})};return t.jsxs(K,{children:[t.jsx(I,{title:`${k} ${l.spendManagement.zeniAccounts.transactionList.title}`,backgroundColor:d.colors.grey4,style:{zIndex:3},onBackClick:i,scrollableContent:p.current!=null?p:void 0,source:"DepositAccTransactionListPage"}),t.jsx($,{children:t.jsx(z,{children:({height:n,width:h})=>t.jsx(Z,{ref:m,height:n,width:h,outerRef:p,itemKey:s=>s,itemCount:c.length,itemSize:j,initialScrollOffset:0,children:v})})})]})},w=a.div``,y=a.div`
|
|
2
2
|
margin: ${e=>`${r.sp0} ${H.listItemMargin.valuePx(e.windowSize)}`};
|
|
3
3
|
`,J=a.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as O,a8 as U,F as S,cB as q,aA as H,V as n,cm as Q,cn as X,co as Z,ab as G,aO as J,y as b,eR as K,o as Y,b7 as ee,c as o}from"./index-
|
|
1
|
+
import{q as O,a8 as U,F as S,cB as q,aA as H,V as n,cm as Q,cn as X,co as Z,ab as G,aO as J,y as b,eR as K,o as Y,b7 as ee,c as o}from"./index-BBJ8MbHB.js";import{a as C}from"./sentry-CTfRDee5.js";import{n as h}from"./mui-CqcpY1UR.js";import{bi as T}from"./zeni-epic-state-n7oqKrUc.js";import{e as ne}from"./BankAccountSection-Bgdk93V0-DEu58Lvd.js";import{M as te}from"./MagicLinkTitleSection-Bx92291D-D9nsnbMt.js";import{W as ae,A as oe}from"./BankAccountWarningSection-DMRmF2yM-Bdqe05tT.js";import{T as ie}from"./MailingDetailsSection-D-tnK244-BXHufBP2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="88ea16f8-82aa-4b49-b5da-b9083c87530d",e._sentryDebugIdIdentifier="sentry-dbid-88ea16f8-82aa-4b49-b5da-b9083c87530d")}catch{}})();const i={paddingTopBottom:new b(o[3],o[3]),paddingRight:new b(o[3],o[8]),paddingLeft:new b(o[3],o[6]),buttonWidth:new b(140,140),marginLeft:new b(o[4],o[6])},B="domesticWireDetailsPage",k="bankAccountSection",$="mailingAddressSection",D=e=>`${e}_form`,xe=e=>{const{bankAccountCreationState:t,fetchBankNameByRoutingStatus:l,addressType:y,bankAccountToCreate:s,addressToEdit:r,mailingAddress:x,isDisabled:A,companyName:j,isMagicLink:g,currencySymbol:v,amount:R,onSaveHandler:z,onWireDetailsUpdated:I,onFetchBankName:P,onAddressClick:L,onBackClick:w}=e,u=O(),c=U({mode:"onBlur",reValidateMode:"onChange",defaultValues:C.useMemo(()=>se(s,r),[s,r])}),[E,f]=C.useState(!1),a=S.getLocalizedStrings().spendManagement.billPay.vendorCreation,W=S.getLocalizedStrings().common.footer,M=a.wireDetails.domestic,F={onOkClick:()=>{f(!1),c.reset(),w?.()},onCancelClick:()=>{f(!1)}},_=async(p,m)=>{const d=m[k].bankRoutingNumber;I(m),p===`${k}.bankRoutingNumber`&&d?.length===9&&K.test(d)===!0&&P?.(d)};C.useEffect(()=>{const p=c.watch((m,{name:d})=>{d!=null&&m!=null&&q(()=>_(d,m))});return()=>{p.unsubscribe()}});const V=c.handleSubmit(p=>{l.fetchState!=="In-Progress"&&z("wire")}),N=!H(x!=null?T(x):x,r!=null?T(r):r)||re(s)||c.formState.isDirty;return n.jsxs(ue,{children:[n.jsxs(le,{size:u,children:[E===!0?n.jsx(Q,{titleComponent:n.jsx(Z,{children:a.discardTitle}),descriptionComponent:n.jsx(X,{children:a.discardDescription}),primaryButtonText:a.discard,secondaryButtonText:a.cancel,action:F}):null,n.jsx(ae,{header:g?n.jsx(te,{companyName:j??"",currencySymbol:v??"",amount:R??0}):M.addWireDetails,isMagicLink:g,isDirty:N,onBackClick:w,setShowConfirmationPopup:f}),t?.fetchState==="Error"&&t.error?.code===409?n.jsx(oe,{warningText:a.bankAccountCommon.accountExistWarning}):null,n.jsx(de,{size:u,children:a.bankAccountCommon.accountDetailsTitle}),n.jsx(G,{...c,children:n.jsxs("form",{id:D(B),onSubmit:V,children:[n.jsx(ce,{size:u,children:n.jsx(ne,{bankAccountToCreate:s,fetchBankNameByRoutingStatus:l,sectionId:k,isDisabled:A})}),n.jsx(ie,{sectionId:$,isDisabled:A,addressType:y,addressToEdit:r,onAddressClick:L})]})})]}),n.jsx(J,{formId:D(B),primaryBtn:{label:g?a.bankAccountCommon.submitDetails:a.bankAccountCommon.saveAccount,isLoading:t.fetchState==="In-Progress",style:{width:i.buttonWidth.value(u)},isDisabled:A!=null},showCancel:!g,cancelBtn:{label:W.cancel,style:{width:i.buttonWidth.value(u)},shouldResetOnCancel:!1,onClick:()=>{N?f(!0):(c.reset(),w?.())}}})]})},se=(e,t)=>({[k]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,bankAccountType:e?.bankAccountType,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName},[$]:{mailingAddress:t}}),re=e=>{if(e==null)return!1;const{bankAccountName:t,bankAccountNumber:l,bankName:y,bankRoutingNumber:s}=e;return!!t||!!l||!!y||!!s},ce=h.div`
|
|
2
2
|
padding-left: ${e=>i.paddingLeft.valuePx(e.size)};
|
|
3
3
|
padding-right: ${e=>i.paddingRight.valuePx(e.size)};
|
|
4
4
|
padding-top: ${e=>i.paddingTopBottom.valuePx(e.size)};
|
package/dist/assets/{DownloadOverlay-gRH0FIa6-BNbk0uP9.js → DownloadOverlay-c57lEf_V-BH-A5hnp.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as t,c0 as it,o as s,q as he,c1 as nt,am as He,p as ue,y as W,L as lt,F,c2 as dt,bL as Ue,c as B,b7 as qe,ak as L,bO as _e,b as te,al as be,n as ae,d as We,bQ as ct,c3 as xe,c4 as ge,m as Ge,c5 as Ze,bJ as pt,b8 as mt,an as ye,c6 as Z,c7 as ft,c8 as ht,bH as ut,bP as bt,ap as xt,c9 as gt,bY as yt,at as $t}from"./index-
|
|
1
|
+
import{V as t,c0 as it,o as s,q as he,c1 as nt,am as He,p as ue,y as W,L as lt,F,c2 as dt,bL as Ue,c as B,b7 as qe,ak as L,bO as _e,b as te,al as be,n as ae,d as We,bQ as ct,c3 as xe,c4 as ge,m as Ge,c5 as Ze,bJ as pt,b8 as mt,an as ye,c6 as Z,c7 as ft,c8 as ht,bH as ut,bP as bt,ap as xt,c9 as gt,bY as yt,at as $t}from"./index-BBJ8MbHB.js";import{a as h,w as $e}from"./sentry-CTfRDee5.js";import{n,k as Je}from"./mui-CqcpY1UR.js";import{E_ as me,E$ as C,F0 as J,bL as P,F1 as K,F2 as we,F3 as U,bh as wt,F4 as _,F5 as Ft,F6 as jt,F7 as vt,F8 as Ot,F9 as Yt}from"./zeni-epic-state-n7oqKrUc.js";import{m as Dt}from"./analyticsHelper-D4lKCWjQ-7uZfvraO.js";import{g as kt,x as _t}from"./ReportTableViewSelector-BPliEsuo-CZegsDsW.js";import{t as Ct}from"./page-detail-CWX5S47F-KNgKNFoz.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";import"./CollapsableReportTable-xkNXkjfh-CuBOzrbM.js";import"./AccountRow-BM3xLbeh-DwBWMEiu.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]="fa15a3e6-4aa4-4941-8a2d-4a318e6b294d",e._sentryDebugIdIdentifier="sentry-dbid-fa15a3e6-4aa4-4941-8a2d-4a318e6b294d")}catch{}})();const Pt=["profit_and_loss","profit_and_loss_by_classes","balance_sheet","cash_flow","cover_page","operating_expenses","revenue","net_burn_or_income","cash_position","cash_in_cash_out"];function ie(e,o,r,a){let i=0;if(!(e!==1&&(o==="quarter"||o==="year")))i=r.endDate.endOf(o).diff(r.startDate.startOf(o),o)+1;else switch(o){case"quarter":{const{startOfTimeframeFY:l}=C(r.startDate,e,"quarter"),{endOfTimeframeFY:p}=C(r.endDate,e,"quarter");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/3);break}case"year":{const{startOfTimeframeFY:l}=C(r.startDate,e,"year"),{endOfTimeframeFY:p}=C(r.endDate,e,"year");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/12);break}}return a!=null?Math.min(i,a):i}function oe(e,o,r,a=1){if(a>1){const i=J(r,e,a-1,o),{startOfTimeframeFY:l}=C(i,e,o);return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:l,endDate:r}}}else return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:r,endDate:r}}}class Ce{_firstMonthOfFY;_timeframe;_dataAvailable;_endDate;_numberOfPeriods;_maxNumberOfPeriods;constructor(o,r,a,i,l,p=a.endDate){if(a.endDate.isBefore(a.startDate))throw Error(`Invalid data available period ${JSON.stringify(a)}`);this._firstMonthOfFY=o,this._timeframe=r,this._dataAvailable=a,this._numberOfPeriods=i,this._maxNumberOfPeriods=l,this._endDate=p}get value(){return oe(this.firstMonthOfFY,this.timeframe,this.endDate,this.numberOfPeriods)}get dataAvailable(){return this._dataAvailable}get firstMonthOfFY(){return this._firstMonthOfFY}get timeframe(){return this._timeframe}set timeframe(o){this._timeframe=o}get numberOfPeriods(){return this._numberOfPeriods}get maxNumberOfPeriods(){return this._maxNumberOfPeriods}set maxNumberOfPeriods(o){if(o<=0)throw Error(`Invalid maxNumberOfPeriods ${this.maxNumberOfPeriods}`);this._maxNumberOfPeriods=o}get startDate(){return this.value.dateRange.startDate}get endDate(){return this._endDate}getValidCalendarPeriod(){const o=me(this.startDate,this.firstMonthOfFY,this.maxNumberOfPeriods-1,this.timeframe);let{endOfTimeframeFY:r}=C(o,this.firstMonthOfFY,this.timeframe);return r.isAfter(this.dataAvailable.endDate)&&(r=this.dataAvailable.endDate),{startDate:this.startDate,endDate:r}}canUpdateToPeriod(o,r){if(this.firstMonthOfFY===1||this.timeframe==="month")return o.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]")&&r.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]");{const{startOfTimeframeFY:a}=C(this.dataAvailable.startDate,this.firstMonthOfFY,this.timeframe),{endOfTimeframeFY:i}=C(this.dataAvailable.endDate,this.firstMonthOfFY,this.timeframe);return o.isBetween(a,i,null,"[]")&&r.isBetween(a,i,null,"[]")}}updatePeriod(o,r){if(!this.canUpdateToPeriod(o,r))return!1;let a=ie(this.firstMonthOfFY,this.timeframe,{startDate:o,endDate:r});if(a>this.maxNumberOfPeriods){a=this._numberOfPeriods;const{endOfTimeframeFY:i}=C(me(o,this.firstMonthOfFY,this._numberOfPeriods-1,this.timeframe),this.firstMonthOfFY,this.timeframe);this._endDate=i}else if(o.isAfter(r)){a=1;const{endOfTimeframeFY:i}=C(o,this.firstMonthOfFY,this.timeframe);this._endDate=i}else this._endDate=r;return this._endDate.isAfter(this.dataAvailable.endDate)&&(this._endDate=this.dataAvailable.endDate),this._numberOfPeriods=a,!0}updateStartDate(o){return this.updatePeriod(o,this.endDate)}updateEndDate(o){return this.updatePeriod(this.startDate,o)}}const le=["1","2","3","4"],de=wt().localeData().monthsShort(),A={pdf:12,excel:100,csv:100},E=(e,o,r)=>{const a=F.getLocalizedStrings().dateFormat.analytics.YYYYFormat,i=[];if(e===1||o==="month"){const{startDate:l,endDate:p}=r;let m=l;for(;m.isSameOrBefore(p,"year");)i.push(m.format(a)),m=me(m,e,1,"year")}else{const{startOfTimeframeFY:l}=C(r.startDate,e,"year"),{endOfTimeframeFY:p}=C(r.endDate,e,"year");let{fyYear:m}=_(l,e);const{fyYear:u}=_(p,e);for(;m<=u;)i.push(`${m}`),m++}return i},St=n.div`
|
|
2
2
|
padding: ${s.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.borderColor.default};
|
|
4
4
|
border-radius: ${s.sp1};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as a,V as i,bQ as y,o as r,y as s,F as h,b$ as P,a as c,B as g,L as b,c as t,aK as L,jT as k,jU as D,jV as C}from"./index-
|
|
1
|
+
import{q as a,V as i,bQ as y,o as r,y as s,F as h,b$ as P,a as c,B as g,L as b,c as t,aK as L,jT as k,jU as D,jV as C}from"./index-BBJ8MbHB.js";import{n as o}from"./mui-CqcpY1UR.js";import"./sentry-CTfRDee5.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./zeni-epic-state-n7oqKrUc.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.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]="ba5f1078-dc3f-413b-8fef-66ef3c7b989a",e._sentryDebugIdIdentifier="sentry-dbid-ba5f1078-dc3f-413b-8fef-66ef3c7b989a")}catch{}})();const l={drawerItemPadding:new s(t[3],t[3],t[4]),styledDivMarginLeft:new s(t[6],t[7]),verticalLineLeftMargin:new s(32,42),iconWidth:new s(t[5],t[6]),iconHeight:new s(t[5],t[6]),iconSize:new s(20,t[4])},j={title:new c("standardRegular","largeRegular"),content:new c("smallRegular","standardRegular")},p=h.getLocalizedStrings().rewardsPage.drawerPage,_=({rewardsPlan:e})=>{const n=[I(),R(),B({rewardsPlan:e})],d=a();return i.jsx(q,{children:n.map((v,S)=>i.jsxs(V,{children:[i.jsx(E,{children:v}),S<n.length-1?i.jsx(A,{windowSize:d}):null]},`step_${S}`))})},I=()=>{const e=a(),n=p.item1;return i.jsxs(x,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(u,{windowSize:e,icon:"link",children:i.jsx(M,{windowSize:e})}),i.jsx(f,{windowSize:e,children:n.title})]}),i.jsx($,{windowSize:e,children:i.jsx(z,{windowSize:e,children:n.content})})]})},R=()=>{const e=a(),n=p.item2;return i.jsxs(x,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(u,{windowSize:e,icon:"user",children:i.jsx(N,{windowSize:e})}),i.jsx(f,{windowSize:e,children:n.title})]}),i.jsx($,{windowSize:e,children:i.jsx(z,{windowSize:e,children:n.content})})]})},B=({rewardsPlan:e})=>{const n=a(),d=p.item3;return i.jsxs(x,{windowSize:n,children:[i.jsxs(m,{children:[i.jsx(u,{windowSize:n,icon:"money",children:i.jsx(T,{windowSize:n})}),i.jsx(f,{windowSize:n,children:d.title[e.planName]})]}),i.jsx($,{windowSize:n,children:i.jsx(z,{windowSize:n,children:d.content[e.planName].replace("__reward-amount__",L("0,0",e.referrerAmount))})})]})},x=o.div`
|
|
2
2
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
3
3
|
border-radius: ${r.sp2};
|
|
4
4
|
box-shadow: ${e=>`${r.sp0} 1px 2px ${r.sp0} ${e.theme.colors.dropShadowNormal}`};
|
package/dist/assets/{EditPeoplePage-D3GenIke-BGFZN7wJ.js → EditPeoplePage-DJthuIP4-Ccr8TbIs.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as ie,fO as ae,d as de,a8 as pe,aN as ce,V as t,cm as ue,ao as me,cn as ge,co as fe,gJ as he,cs as ye,o as n,bQ as be,aM as U,ab as ve,aO as xe,y as k,F as $e,cx as we,fR as Re,fS as Ce,fT as Ie,b7 as Oe,p as M,cV as je,c as u}from"./index-
|
|
1
|
+
import{q as ie,fO as ae,d as de,a8 as pe,aN as ce,V as t,cm as ue,ao as me,cn as ge,co as fe,gJ as he,cs as ye,o as n,bQ as be,aM as U,ab as ve,aO as xe,y as k,F as $e,cx as we,fR as Re,fS as Ce,fT as Ie,b7 as Oe,p as M,cV as je,c as u}from"./index-BBJ8MbHB.js";import{a as w}from"./sentry-CTfRDee5.js";import{n as l}from"./mui-CqcpY1UR.js";import{Fv as _e,bg as Te}from"./zeni-epic-state-n7oqKrUc.js";import{f as ke}from"./AllUserItems-BsvKEVcx-Ckn7N6Nq.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";import"./LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-BYzGVtZI.js";import"./RoleWithToolTip-aW95rpRe-D_rCTb4X.js";import"./LabeledZeniRolesDropDownField-DGkU72cd-iMLOxXqS.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]="51f72577-2528-468b-a021-115cc36d6a72",e._sentryDebugIdIdentifier="sentry-dbid-51f72577-2528-468b-a021-115cc36d6a72")}catch{}})();const I={containerPaddingTop:new k(u[3],u[3]),containerPaddingLeft:new k(u[3],u[6],u[6]),containerPaddingRight:new k(u[3],u[6],u[8]),buttonWidth:new k(85,85)},Q="editPeoplePage",R="userItems",d=$e.getLocalizedStrings().peoplePage,st=({peopleDetails:e,managersList:o,classList:y,controllersList:O,mode:p,isZeniTenant:P,onCloseClick:j,onResetClick:_,onSaveClick:m,onDeleteUser:J,onPeopleLocalDataUpdated:X,analytics:z,isReimbursementDisabled:B,isZeniAccountsDisabled:N,isChargeCardDisabled:Z,isTreasuryDisabled:q,isBankingOnlyTenant:b,isCardsOnlyTenant:v,isLiteRoleDisabled:V})=>{const C=ie(),[Y,S]=w.useState(!1),[K,H]=w.useState(-1),ee=p==="zeni_only"?d.invitePage.editZeniTitle:d.invitePage.editTitle,te=w.useRef(null),D=w.useMemo(()=>ae(B,N,Z,b,v,V,q),[B,N,Z,b,v,V,q]),A=de(),i=pe({mode:"onBlur",reValidateMode:"onChange",defaultValues:W(e.people,o,y,p,D,b,v),values:W(e.people,o,y,p,D,b,v)}),se=i.handleSubmit(()=>{G()&&m()},()=>{G(),console.warn("Edit Profile form error")}),G=()=>{const g=i.getValues();let r=!0;return g.userItems.forEach((f,x)=>{const{role:E,department:a,nonZeniRole:h,manager:c}=f;if(p==="zeni_only"){const s=E.selectedOptions;(!s?.length||s?.length===1&&s?.includes("company_officer"))&&(i.setError(`${R}.${x}.role`,{type:"required"}),r=!1)}else{const s=h?.userRole.selectedRole;(s!=null&&h!=null?h.productsByUserRole[s].map($=>$.selectedOption).filter($=>$!=null):[]).length<1&&(i.setError(`${R}.${x}.nonZeniRole.userRole.selectedRole`,{type:"required"}),r=!1),s!=="investor_or_banker"&&a?.selectedOption==null&&(b||v||(i.setError(`${R}.${x}.department`,{type:"required"}),r=!1)),c?.selectedUser==null&&s!=="investor_or_banker"&&(i.setError(`${R}.${x}.manager`,{type:"required"}),r=!1)}}),r},ne=async(g,r)=>{const f=[],{userItems:x}=r,E=e.person?.userRole?.userRoleId;x.forEach(a=>{let h={};if(E!=null){if(p==="zeni_only")h={email:a.email,role:a.role.selectedOptions};else{const c=a.nonZeniRole?.userRole.selectedRole;let s=[];c==="admin"||c==="investor_or_banker"?s.push(c):s=c!=null?(a.nonZeniRole?.productsByUserRole[c]??[]).map(L=>_e(L.selectedOption?.value)).filter(L=>L!=null):[],c==="employee"&&s.length===0&&s.push("reimbursements_user");const $=Te(s);h={email:a.email,role:s,departmentId:$?void 0:a.department?.selectedOption?.value,managerId:$?void 0:a.manager?.selectedUser}}f.push(h)}}),X(f)};w.useEffect(()=>{const g=i.watch((r,{name:f})=>{f!=null&&r!=null&&ne(f,r)});return()=>{g.unsubscribe()}});const oe=()=>{S(!0)},re={onOkClick:()=>{const g=e.person;z?.trackRemoveUserAccess(g.userRole.userRoles,g.userRole.userEmail),J?.(e.person)},onCancelClick:()=>{S(!1)}},F=ce(e.person?.update),T=e.person?.update,le=d.deleteOverlay.description.replace("‘_user-name_’",`"${e.person?.user?.firstName} ${e.person?.user?.lastName}"`);return w.useEffect(()=>{T==null&&F==="removeUsers"&&(S(!1),_?.())},[T,F]),t.jsxs(t.Fragment,{children:[Y===!0?t.jsx(ue,{titleComponent:t.jsx(fe,{children:d.deleteOverlay.title}),descriptionComponent:t.jsx(ge,{children:le}),primaryButtonText:d.deleteOverlay.remove,secondaryButtonText:d.deleteOverlay.cancel,action:re,proceedButtonVariant:"danger",isLoading:T==="removeUsers",isDisabled:T==="removeUsers",style:{background:A.colors.overlayColor},children:e.person?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(Be,{}),t.jsx(Ue,{children:t.jsx(ze,{src:e.person?.user.photo?.toString()??me,alt:e.person?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(he,{title:ee,backgroundColor:A.colors.grey4,style:{zIndex:4},onCloseClick:j,isTitleAlignLeft:C==="small"}),t.jsxs(Pe,{"data-testid":U("edit-people-page-container"),windowSize:C,ref:te,children:[t.jsxs(Le,{children:[t.jsx(ye,{personBasic:e.person?.user,styles:{height:n.sp6,width:n.sp6}}),t.jsxs(Se,{children:[t.jsx(De,{children:e.person?.user?.firstName?t.jsxs(Ee,{children:[e.person?.user?.firstName??""," ",e.person?.user?.lastName??""]}):null}),t.jsx(Ze,{className:"delete-icon-wrapper","data-testid":U("edit-people-page-delete-icon-wrapper"),onClick:oe,children:t.jsx(be,{style:{padding:"2px 5px"},enterDelay:600,title:d.deleteOverlay.title,placement:"top",children:t.jsx(Ne,{windowsize:C})})})]})]}),t.jsx(ve,{...i,children:t.jsx("form",{id:`${Q}_form`,onSubmit:se,children:t.jsx(ke,{control:i.control,sectionId:R,deleteConfirmationIndex:K,updateDeleteConfirmationIndex:H,mode:p,isZeniTenant:P,classList:y,managersList:o,controllersList:O,customerRoleOptions:D,isBankingOnlyTenant:b,isCardsOnlyTenant:v,isEdit:!0,person:e.person,analytics:z})})})]}),t.jsx(xe,{formId:`${Q}_form`,"data-testid":U("edit-people-page-footer"),primaryBtn:{label:d.invitePage.update,style:{width:I.buttonWidth.value(C)},isLoading:e.updatePersonState.fetchState==="In-Progress",isDisabled:e.updatePersonState.fetchState==="In-Progress"},showCancel:!0,cancelBtn:{label:d.invitePage.cancel,style:{width:I.buttonWidth.value(C)},shouldResetOnCancel:!1,onClick:j},separatorStyle:{marginRight:n.sp4}})]})},W=(e,o,y,O,p,P,j)=>{const _=y.map(m=>({label:m.fullyQualifiedAccountingClassName??"",value:m.classId,hoverText:m.accountingClassNumber}));return{[R]:[{userIndex:0,email:e[0].email,role:O==="zeni_only"?{allOptions:we.roles,selectedOptions:e[0]?.role}:void 0,nonZeniRole:O!=="zeni_only"?{userRole:{selectedRole:Ie(e[0]?.role),allRootRole:Ce(P,j)},productsByUserRole:Re(e[0]?.role,p)}:void 0,manager:{allUsers:o,selectedUser:e[0]?.managerId?e[0]?.managerId:"no_manager"},department:{allOptions:_,selectedOption:_.find(m=>m.value===e[0]?.departmentId)}}]}},nt=(e,o)=>`${e}.${o}`,Pe=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|